1(self.webpackChunkdspace_angular=self.webpackChunkdspace_angular||[]).push([[179],{92414:(R,c,e)=>{"use strict";e.d(c,{EP:()=>d,EV:()=>p,b6:()=>i,fN:()=>a,sC:()=>o,y9:()=>r});var t=e(23631),n=e(50503);const o="epeople";function i(){return new t.R((0,n.sr)(),o).toString()}function d(h){return new t.R(i(),h,"edit").toString()}const r="groups";function a(){return new t.R((0,n.sr)(),r).toString()}function p(h){return new t.R(a(),h,"edit").toString()}},92513:(R,c,e)=>{"use strict";e.d(c,{y:()=>mo});var t=e(34793),n=e(61135),o=e(39841),i=e(63900),d=e(54004),r=e(95698),a=e(24789),p=e(45061),h=e(24702),m=e(46418),_=e(4177);class v{}var E=e(47235),O=e(19937),b=e(68285),M=e(18916),P=e(31241),D=e(62713),l=e(77467),C=e(83616),I=e(92414),g=e(94650),B=e(89383),L=e(24006),V=e(9769),Y=e(36895),X=e(48106),te=e(62697);function K(ft,_n){1&ft&&g.\u0275\u0275element(0,"ds-themed-loading")}const ee=function(ft){return{name:ft}};function ae(ft,_n){if(1&ft){const Re=g.\u0275\u0275getCurrentView();g.\u0275\u0275elementStart(0,"button",33),g.\u0275\u0275listener("click",function(){g.\u0275\u0275restoreView(Re);const jt=g.\u0275\u0275nextContext().$implicit,Pn=g.\u0275\u0275nextContext(2);return g.\u0275\u0275resetView(Pn.deleteEPerson(jt.eperson))}),g.\u0275\u0275pipe(1,"translate"),g.\u0275\u0275element(2,"i",34),g.\u0275\u0275elementEnd()}if(2&ft){const Re=g.\u0275\u0275nextContext().$implicit,Ye=g.\u0275\u0275nextContext(2);g.\u0275\u0275propertyInterpolate("title",g.\u0275\u0275pipeBind2(1,1,Ye.labelPrefix+"table.edit.buttons.remove",g.\u0275\u0275pureFunction1(4,ee,Ye.dsoNameService.getName(Re.eperson))))}}const Q=function(ft){return{"table-primary":ft}};function j(ft,_n){if(1&ft&&(g.\u0275\u0275elementStart(0,"tr",28),g.\u0275\u0275pipe(1,"async"),g.\u0275\u0275elementStart(2,"td"),g.\u0275\u0275text(3),g.\u0275\u0275elementEnd(),g.\u0275\u0275elementStart(4,"td"),g.\u0275\u0275text(5),g.\u0275\u0275elementEnd(),g.\u0275\u0275elementStart(6,"td"),g.\u0275\u0275text(7),g.\u0275\u0275elementEnd(),g.\u0275\u0275elementStart(8,"td")(9,"div",29)(10,"button",30),g.\u0275\u0275pipe(11,"translate"),g.\u0275\u0275element(12,"i",31),g.\u0275\u0275elementEnd(),g.\u0275\u0275template(13,ae,3,6,"button",32),g.\u0275\u0275elementEnd()()()),2&ft){const Re=_n.$implicit,Ye=g.\u0275\u0275nextContext(2);g.\u0275\u0275property("ngClass",g.\u0275\u0275pureFunction1(12,Q,g.\u0275\u0275pipeBind1(1,7,Ye.activeEPerson$)===Re.eperson)),g.\u0275\u0275advance(3),g.\u0275\u0275textInterpolate(Re.eperson.id),g.\u0275\u0275advance(2),g.\u0275\u0275textInterpolate(Ye.dsoNameService.getName(Re.eperson)),g.\u0275\u0275advance(2),g.\u0275\u0275textInterpolate(Re.eperson.email),g.\u0275\u0275advance(3),g.\u0275\u0275propertyInterpolate("title",g.\u0275\u0275pipeBind2(11,9,Ye.labelPrefix+"table.edit.buttons.edit",g.\u0275\u0275pureFunction1(14,ee,Ye.dsoNameService.getName(Re.eperson)))),g.\u0275\u0275property("routerLink",Ye.getEditEPeoplePage(Re.eperson.id)),g.\u0275\u0275advance(3),g.\u0275\u0275property("ngIf",Re.ableToDelete)}}function k(ft,_n){if(1&ft&&(g.\u0275\u0275elementStart(0,"ds-pagination",23),g.\u0275\u0275pipe(1,"async"),g.\u0275\u0275elementStart(2,"div",24)(3,"table",25)(4,"thead")(5,"tr")(6,"th",26),g.\u0275\u0275text(7),g.\u0275\u0275pipe(8,"translate"),g.\u0275\u0275elementEnd(),g.\u0275\u0275elementStart(9,"th",26),g.\u0275\u0275text(10),g.\u0275\u0275pipe(11,"translate"),g.\u0275\u0275elementEnd(),g.\u0275\u0275elementStart(12,"th",26),g.\u0275\u0275text(13),g.\u0275\u0275pipe(14,"translate"),g.\u0275\u0275elementEnd(),g.\u0275\u0275elementStart(15,"th"),g.\u0275\u0275text(16),g.\u0275\u0275pipe(17,"translate"),g.\u0275\u0275elementEnd()()(),g.\u0275\u0275elementStart(18,"tbody"),g.\u0275\u0275template(19,j,14,16,"tr",27),g.\u0275\u0275pipe(20,"async"),g.\u0275\u0275elementEnd()()()()),2&ft){const Re=g.\u0275\u0275nextContext();let Ye,jt;g.\u0275\u0275property("paginationOptions",Re.config)("collectionSize",null==(Ye=g.\u0275\u0275pipeBind1(1,9,Re.pageInfoState$))?null:Ye.totalElements)("hideGear",!0)("hidePagerWhenSinglePage",!0),g.\u0275\u0275advance(7),g.\u0275\u0275textInterpolate(g.\u0275\u0275pipeBind1(8,11,Re.labelPrefix+"table.id")),g.\u0275\u0275advance(3),g.\u0275\u0275textInterpolate(g.\u0275\u0275pipeBind1(11,13,Re.labelPrefix+"table.name")),g.\u0275\u0275advance(3),g.\u0275\u0275textInterpolate(g.\u0275\u0275pipeBind1(14,15,Re.labelPrefix+"table.email")),g.\u0275\u0275advance(3),g.\u0275\u0275textInterpolate(g.\u0275\u0275pipeBind1(17,17,Re.labelPrefix+"table.edit")),g.\u0275\u0275advance(3),g.\u0275\u0275property("ngForOf",null==(jt=g.\u0275\u0275pipeBind1(20,19,Re.ePeopleDto$))?null:jt.page)}}
1function G(ft,_n){if(1&ft&&(g.\u0275\u0275elementStart(0,"div",35),g.\u0275\u0275text(1),g.\u0275\u0275pipe(2,"translate"),g.\u0275\u0275elementEnd()),2&ft){const Re=g.\u0275\u0275nextContext();g.\u0275\u0275advance(1),g.\u0275\u0275textInterpolate1(" ",g.\u0275\u0275pipeBind1(2,1,Re.labelPrefix+"no-items")," ")}}let ie=(()=>{class ft{constructor(Re,Ye,jt,Pn,pr,pi,xi,bi,Hi,Fi){this.epersonService=Re,this.translateService=Ye,this.notificationsService=jt,this.authorizationService=Pn,this.formBuilder=pr,this.router=pi,this.modalService=xi,this.paginationService=bi,this.requestService=Hi,this.dsoNameService=Fi,this.labelPrefix="admin.access-control.epeople.",this.ePeople$=new n.X((0,a.b)(new D.S,[])),this.ePeopleDto$=new n.X({}),this.pageInfoState$=new n.X(void 0),this.searching$=new n.X(!1),this.config=Object.assign(new _.r,{id:"elp",pageSize:5,currentPage:1}),this.subs=[],this.currentSearchQuery="",this.currentSearchScope="metadata",this.searchForm=this.formBuilder.group({scope:"metadata",query:""})}ngOnInit(){this.initialisePage()}initialisePage(){this.searching$.next(!0),this.search({scope:this.currentSearchScope,query:this.currentSearchQuery}),this.activeEPerson$=this.epersonService.getActiveEPerson(),this.subs.push(this.ePeople$.pipe((0,i.w)(Re=>Re.pageInfo.totalElements>0?(0,o.a)(Re.page.map(Ye=>this.authorizationService.isAuthorized(E.i.CanDelete,(0,h.Uh)(Ye)?Ye.self:void 0).pipe((0,d.U)(jt=>{const Pn=new v;return Pn.ableToDelete=jt,Pn.eperson=Ye,Pn})))).pipe((0,d.U)(Ye=>(0,a.b)(Re.pageInfo,Ye))):[Re])).subscribe(Re=>{this.searching$.next(!1),this.ePeopleDto$.next(Re),this.pageInfoState$.next(Re.pageInfo)}))}search(Re){this.searching$.next(!0),(0,h.Uh)(this.findListOptionsSub)&&this.findListOptionsSub.unsubscribe(),this.findListOptionsSub=this.paginationService.getCurrentPagination(this.config.id,this.config).pipe((0,i.w)(Ye=>{const jt=Re.query,Pn=Re.scope;return null!=jt&&this.currentSearchQuery!==jt&&(this.router.navigate([(0,I.b6)()],{queryParamsHandling:"merge"}),this.currentSearchQuery=jt,this.paginationService.resetPage(this.config.id)),null!=Pn&&this.currentSearchScope!==Pn&&(this.router.navigate([(0,I.b6)()],{queryParamsHandling:"merge"}),this.currentSearchScope=Pn,this.paginationService.resetPage(this.config.id)),this.epersonService.searchByScope(this.currentSearchScope,this.currentSearchQuery,{currentPage:Ye.currentPage,elementsPerPage:Ye.pageSize})}),(0,b.g1)()).subscribe(Ye=>{this.ePeople$.next(Ye.payload),this.pageInfoState$.next(Ye.payload.pageInfo)})}deleteEPerson(Re){if((0,h.Uh)(Re.id)){const Ye=this.modalService.open(M.Y);Ye.componentInstance.dso=Re,Ye.componentInstance.headerLabel="confirmation-modal.delete-eperson.header",Ye.componentInstance.infoLabel="confirmation-modal.delete-eperson.info",Ye.componentInstance.cancelLabel="confirmation-modal.delete-eperson.cancel",Ye.componentInstance.confirmLabel="confirmation-modal.delete-eperson.confirm",Ye.componentInstance.brandColor="danger",Ye.componentInstance.confirmIcon="fas fa-trash",Ye.componentInstance.response.pipe((0,r.q)(1)).subscribe(jt=>{jt&&(0,h.Uh)(Re.id)&&this.epersonService.deleteEPerson(Re).pipe((0,b.hC)()).subscribe(Pn=>{Pn.hasSucceeded?this.notificationsService.success(this.translateService.get(this.labelPrefix+"notification.deleted.success",{name:this.dsoNameService.getName(Re)})):this.notificationsService.error(this.translateService.get(this.labelPrefix+"notification.deleted.success",{id:Re.id,statusCode:Pn.statusCode,errorMessage:Pn.errorMessage}))})})}}ngOnDestroy(){this.cleanupSubscribes(),this.paginationService.clearPagination(this.config.id)}cleanupSubscribes(){this.subs.filter(Re=>(0,h.Uh)(Re)).forEach(Re=>Re.unsubscribe())}clearFormAndResetResult(){this.searchForm.patchValue({query:""}),this.search({query:""})}getEditEPeoplePage(Re){return(0,I.EP)(Re)}}return ft.\u0275fac=function(Re){return new(Re||ft)(g.\u0275\u0275directiveInject(p.k),g.\u0275\u0275directiveInject(B.sK),g.\u0275\u0275directiveInject(m.T),g.\u0275\u0275directiveInject(O._),g.\u0275\u0275directiveInject(L.QS),g.\u0275\u0275directiveInject(t.F0),g.\u0275\u0275directiveInject(V.FF),g.\u0275\u0275directiveInject(l.N),g.\u0275\u0275directiveInject(P.s),g.\u0275\u0275directiveInject(C._))},ft.\u0275cmp=g.\u0275\u0275defineComponent({type:ft,selectors:[["ds-epeople-registry"]],decls:46,vars:40,consts:[[1,"container"],[1,"epeople-registry","row"],[1,"col-12"],[1,"d-flex","justify-content-between","border-bottom","mb-3"],["id","header",1,"pb-2"],[1,"mr-auto","btn","btn-success","addEPerson-button",3,"routerLink"],[1,"fas","fa-plus"],[1,"d-none","d-sm-inline","ml-1"],["id","search",1,"border-bottom","pb-2"],[1,"d-flex","justify-content-between",3,"formGroup","ngSubmit"],["name","scope","id","scope","formControlName","scope","aria-label","Search scope",1,"form-control"],["value","metadata"],["value","email"],[1,"flex-grow-1","mr-3","ml-3"],[1,"form-group","input-group"],["type","text","name","query","id","query","formControlName","query",1,"form-control",3,"placeholder"],[1,"input-group-append"],["type","submit",1,"search-button","btn","btn-primary"],[1,"fas","fa-search"],[1,"search-button","btn","btn-secondary",3,"click"],[4,"ngIf"],[3,"paginationOptions","collectionSize","hideGear","hidePagerWhenSinglePage",4,"ngIf"],["class","alert alert-info w-100 mb-2","role","alert",4,"ngIf"],[3,"paginationOptions","collectionSize","hideGear","hidePagerWhenSinglePage"],[1,"table-responsive"],["id","epeople",1,"table","table-striped","table-hover","table-bordered"],["scope","col"],[3,"ngClass",4,"ngFor","ngForOf"],[3,"ngClass"],[1,"btn-group","edit-field"],[1,"btn","btn-outline-primary","btn-sm","access-control-editEPersonButton",3,"routerLink","title"],[1,"fas","fa-edit","fa-fw"],["class","delete-button btn btn-outline-danger btn-sm access-control-deleteEPersonButton",3,"title","click",4,"ngIf"],[1,"delete-button","btn","btn-outline-danger","btn-sm","access-control-deleteEPersonButton",3,"title","click"],[1,"fas","fa-tras
1h-alt","fa-fw"],["role","alert",1,"alert","alert-info","w-100","mb-2"]],template:function(Re,Ye){if(1&Re&&(g.\u0275\u0275elementStart(0,"div",0)(1,"div",1)(2,"div",2)(3,"div",3)(4,"h1",4),g.\u0275\u0275text(5),g.\u0275\u0275pipe(6,"translate"),g.\u0275\u0275elementEnd(),g.\u0275\u0275elementStart(7,"div")(8,"button",5),g.\u0275\u0275element(9,"i",6),g.\u0275\u0275elementStart(10,"span",7),g.\u0275\u0275text(11),g.\u0275\u0275pipe(12,"translate"),g.\u0275\u0275elementEnd()()()(),g.\u0275\u0275elementStart(13,"h2",8),g.\u0275\u0275text(14),g.\u0275\u0275pipe(15,"translate"),g.\u0275\u0275elementEnd(),g.\u0275\u0275elementStart(16,"form",9),g.\u0275\u0275listener("ngSubmit",function(){return Ye.search(Ye.searchForm.value)}),g.\u0275\u0275elementStart(17,"div")(18,"select",10)(19,"option",11),g.\u0275\u0275text(20),g.\u0275\u0275pipe(21,"translate"),g.\u0275\u0275elementEnd(),g.\u0275\u0275elementStart(22,"option",12),g.\u0275\u0275text(23),g.\u0275\u0275pipe(24,"translate"),g.\u0275\u0275elementEnd()()(),g.\u0275\u0275elementStart(25,"div",13)(26,"div",14),g.\u0275\u0275element(27,"input",15),g.\u0275\u0275pipe(28,"translate"),g.\u0275\u0275pipe(29,"translate"),g.\u0275\u0275elementStart(30,"span",16)(31,"button",17),g.\u0275\u0275element(32,"i",18),g.\u0275\u0275text(33),g.\u0275\u0275pipe(34,"translate"),g.\u0275\u0275elementEnd()()()(),g.\u0275\u0275elementStart(35,"div")(36,"button",19),g.\u0275\u0275listener("click",function(){return Ye.clearFormAndResetResult()}),g.\u0275\u0275text(37),g.\u0275\u0275pipe(38,"translate"),g.\u0275\u0275elementEnd()()(),g.\u0275\u0275template(39,K,1,0,"ds-themed-loading",20),g.\u0275\u0275pipe(40,"async"),g.\u0275\u0275template(41,k,21,21,"ds-pagination",21),g.\u0275\u0275pipe(42,"async"),g.\u0275\u0275pipe(43,"async"),g.\u0275\u0275template(44,G,3,3,"div",22),g.\u0275\u0275pipe(45,"async"),g.\u0275\u0275elementEnd()()()),2&Re){let jt,Pn;g.\u0275\u0275advance(5),g.\u0275\u0275textInterpolate(g.\u0275\u0275pipeBind1(6,14,Ye.labelPrefix+"head")),g.\u0275\u0275advance(3),g.\u0275\u0275property("routerLink","create"),g.\u0275\u0275advance(3),g.\u0275\u0275textInterpolate(g.\u0275\u0275pipeBind1(12,16,Ye.labelPrefix+"button.add")),g.\u0275\u0275advance(3),g.\u0275\u0275textInterpolate1(" ",g.\u0275\u0275pipeBind1(15,18,Ye.labelPrefix+"search.head")," "),g.\u0275\u0275advance(2),g.\u0275\u0275property("formGroup",Ye.searchForm),g.\u0275\u0275advance(4),g.\u0275\u0275textInterpolate(g.\u0275\u0275pipeBind1(21,20,Ye.labelPrefix+"search.scope.metadata")),g.\u0275\u0275advance(3),g.\u0275\u0275textInterpolate(g.\u0275\u0275pipeBind1(24,22,Ye.labelPrefix+"search.scope.email")),g.\u0275\u0275advance(4),g.\u0275\u0275property("placeholder",g.\u0275\u0275pipeBind1(29,26,Ye.labelPrefix+"search.placeholder")),g.\u0275\u0275attribute("aria-label",g.\u0275\u0275pipeBind1(28,24,Ye.labelPrefix+"search.placeholder")),g.\u0275\u0275advance(6),g.\u0275\u0275textInterpolate1(" ",g.\u0275\u0275pipeBind1(34,28,Ye.labelPrefix+"search.button")," "),g.\u0275\u0275advance(4),g.\u0275\u0275textInterpolate(g.\u0275\u0275pipeBind1(38,30,Ye.labelPrefix+"button.see-all")),g.\u0275\u0275advance(2),g.\u0275\u0275property("ngIf",g.\u0275\u0275pipeBind1(40,32,Ye.searching$)),g.\u0275\u0275advance(2),g.\u0275\u0275property("ngIf",(null==(jt=g.\u0275\u0275pipeBind1(42,34,Ye.pageInfoState$))?null:jt.totalElements)>0&&!g.\u0275\u0275pipeBind1(43,36,Ye.searching$)),g.\u0275\u0275advance(3),g.\u0275\u0275property("ngIf",0==(null==(Pn=g.\u0275\u0275pipeBind1(45,38,Ye.pageInfoState$))?null:Pn.totalElements))}},dependencies:[Y.mk,Y.sg,Y.O5,L._Y,L.YN,L.Kr,L.Fj,L.EJ,L.JJ,L.JL,L.sg,L.u,t.rH,X.Z,te.Q,Y.Ov,B.X$],encapsulation:2}),ft})();var ne=e(19672),q=e(78372),oe=e(95376),ce=e(43438),ye=e(83360),Me=e(43499),Ee=e(13748),Ae=e(22979),Je=e(21721),_t=e(92849),It=e(33036),it=e(93369);class Be{static createValidator(_n){return Re=>_n.searchGroups(Re.value,{currentPage:1,elementsPerPage:100}).pipe((0,b.LQ)(),(0,d.U)(Ye=>Ye.filter(jt=>jt.name===Re.value)),(0,d.U)(Ye=>Ye.length>0?{groupExists:!0}:null))}}var Xe=e(21540),pt=e(38605),Mt=e(92911),Yt=e(63311);const nt=function(ft){return[ft]},mt=function(ft){return{name:ft}};
1function en(ft,_n){if(1&ft){const Re=g.\u0275\u0275getCurrentView();g.\u0275\u0275elementStart(0,"tr")(1,"td",18),g.\u0275\u0275text(2),g.\u0275\u0275elementEnd(),g.\u0275\u0275elementStart(3,"td",18)(4,"a",19),g.\u0275\u0275listener("click",function(){const Pn=g.\u0275\u0275restoreView(Re).$implicit,pr=g.\u0275\u0275nextContext(2);return g.\u0275\u0275resetView(pr.groupDataService.startEditingNewGroup(Pn))}),g.\u0275\u0275text(5),g.\u0275\u0275elementEnd()(),g.\u0275\u0275elementStart(6,"td",18),g.\u0275\u0275text(7),g.\u0275\u0275pipe(8,"async"),g.\u0275\u0275elementEnd(),g.\u0275\u0275elementStart(9,"td",18)(10,"div",20)(11,"button",21),g.\u0275\u0275listener("click",function(){const Pn=g.\u0275\u0275restoreView(Re).$implicit,pr=g.\u0275\u0275nextContext(2);return g.\u0275\u0275resetView(pr.deleteSubgroupFromGroup(Pn))}),g.\u0275\u0275pipe(12,"translate"),g.\u0275\u0275element(13,"i",22),g.\u0275\u0275elementEnd()()()()}if(2&ft){const Re=_n.$implicit,Ye=g.\u0275\u0275nextContext(2);let jt;g.\u0275\u0275advance(2),g.\u0275\u0275textInterpolate(Re.id),g.\u0275\u0275advance(2),g.\u0275\u0275property("routerLink",g.\u0275\u0275pureFunction1(10,nt,Ye.groupDataService.getGroupEditPageRouterLink(Re))),g.\u0275\u0275advance(1),g.\u0275\u0275textInterpolate1(" ",Ye.dsoNameService.getName(Re)," "),g.\u0275\u0275advance(2),g.\u0275\u0275textInterpolate(Ye.dsoNameService.getName(null==(jt=g.\u0275\u0275pipeBind1(8,5,Re.object))?null:jt.payload)),g.\u0275\u0275advance(4),g.\u0275\u0275propertyInterpolate("title",g.\u0275\u0275pipeBind2(12,7,Ye.messagePrefix+".table.edit.buttons.remove",g.\u0275\u0275pureFunction1(12,mt,Ye.dsoNameService.getName(Re))))}}function pn(ft,_n){if(1&ft&&(g.\u0275\u0275elementStart(0,"ds-pagination",13),g.\u0275\u0275pipe(1,"async"),g.\u0275\u0275elementStart(2,"div",14)(3,"table",15)(4,"thead")(5,"tr")(6,"th",16),g.\u0275\u0275text(7),g.\u0275\u0275pipe(8,"translate"),g.\u0275\u0275elementEnd(),g.\u0275\u0275elementStart(9,"th",16),g.\u0275\u0275text(10),g.\u0275\u0275pipe(11,"translate"),g.\u0275\u0275elementEnd(),g.\u0275\u0275elementStart(12,"th",16),g.\u0275\u0275text(13),g.\u0275\u0275pipe(14,"translate"),g.\u0275\u0275elementEnd(),g.\u0275\u0275elementStart(15,"th"),g.\u0275\u0275text(16),g.\u0275\u0275pipe(17,"translate"),g.\u0275\u0275elementEnd()()(),g.\u0275\u0275elementStart(18,"tbody"),g.\u0275\u0275template(19,en,14,14,"tr",17),g.\u0275\u0275pipe(20,"async"),g.\u0275\u0275elementEnd()()()()),2&ft){const Re=g.\u0275\u0275nextContext();let Ye,jt;g.\u0275\u0275property("paginationOptions",Re.config)("collectionSize",null==(Ye=g.\u0275\u0275pipeBind1(1,9,Re.subGroups$))||null==Ye.payload?null:Ye.payload.totalElements)("hideGear",!0)("hidePagerWhenSinglePage",!0),g.\u0275\u0275advance(7),g.\u0275\u0275textInterpolate(g.\u0275\u0275pipeBind1(8,11,Re.messagePrefix+".table.id")),g.\u0275\u0275advance(3),g.\u0275\u0275textInterpolate(g.\u0275\u0275pipeBind1(11,13,Re.messagePrefix+".table.name")),g.\u0275\u0275advance(3),g.\u0275\u0275textInterpolate(g.\u0275\u0275pipeBind1(14,15,Re.messagePrefix+".table.collectionOrCommunity")),g.\u0275\u0275advance(3),g.\u0275\u0275textInterpolate(g.\u0275\u0275pipeBind1(17,17,Re.messagePrefix+".table.edit")),g.\u0275\u0275advance(3),g.\u0275\u0275property("ngForOf",null==(jt=g.\u0275\u0275pipeBind1(20,19,Re.subGroups$))||null==jt.payload?null:jt.payload.page)}}function tt(ft,_n){if(1&ft&&(g.\u0275\u0275elementStart(0,"div",23),g.\u0275\u0275text(1),g.\u0275\u0275pipe(2,"translate"),g.\u0275\u0275elementEnd()),2&ft){const Re=g.\u0275\u0275nextContext();g.\u0275\u0275advance(1),g.\u0275\u0275textInterpolate1(" ",g.\u0275\u0275pipeBind1(2,1,Re.messagePrefix+".no-subgroups-yet")," ")}}function Tt(ft,_n){if(1&ft&&(g.\u0275\u0275elementStart(0,"span"),g.\u0275\u0275text(1),g.\u0275\u0275pipe(2,"translate"),g.\u0275\u0275elementEnd()),2&ft){const Re=g.\u0275\u0275nextContext();g.\u0275\u0275advance(1),g.\u0275\u0275textInterpolate1(" ",g.\u0275\u0275pipeBind1(2,1,Re.messagePrefix+".search.head")," ")}}function At(ft,_n){if(1&ft){const Re=g.\u0275\u0275getCurrentView();g.\u0275\u0275elementStart(0,"tr")(1,"td",18),g.\u0275\u0275text(2),g.\u0275\u0275elementEnd(),g.\u0275\u0275elementStart(3,"td",18)(4,"a",19),g.\u0275\u0275listener("click",function(){const Pn=g.\u0275\u0275restoreView(Re).$implicit,pr=g.\u0275\u0275nextContext(2);
1return g.\u0275\u0275resetView(pr.groupDataService.startEditingNewGroup(Pn))}),g.\u0275\u0275text(5),g.\u0275\u0275elementEnd()(),g.\u0275\u0275elementStart(6,"td",18),g.\u0275\u0275text(7),g.\u0275\u0275pipe(8,"async"),g.\u0275\u0275elementEnd(),g.\u0275\u0275elementStart(9,"td",18)(10,"div",20)(11,"button",25),g.\u0275\u0275listener("click",function(){const Pn=g.\u0275\u0275restoreView(Re).$implicit,pr=g.\u0275\u0275nextContext(2);return g.\u0275\u0275resetView(pr.addSubgroupToGroup(Pn))}),g.\u0275\u0275pipe(12,"translate"),g.\u0275\u0275element(13,"i",26),g.\u0275\u0275elementEnd()()()()}if(2&ft){const Re=_n.$implicit,Ye=g.\u0275\u0275nextContext(2);let jt;g.\u0275\u0275advance(2),g.\u0275\u0275textInterpolate(Re.id),g.\u0275\u0275advance(2),g.\u0275\u0275property("routerLink",g.\u0275\u0275pureFunction1(10,nt,Ye.groupDataService.getGroupEditPageRouterLink(Re))),g.\u0275\u0275advance(1),g.\u0275\u0275textInterpolate1(" ",Ye.dsoNameService.getName(Re)," "),g.\u0275\u0275advance(2),g.\u0275\u0275textInterpolate(Ye.dsoNameService.getName(null==(jt=g.\u0275\u0275pipeBind1(8,5,Re.object))?null:jt.payload)),g.\u0275\u0275advance(4),g.\u0275\u0275propertyInterpolate("title",g.\u0275\u0275pipeBind2(12,7,Ye.messagePrefix+".table.edit.buttons.add",g.\u0275\u0275pureFunction1(12,mt,Ye.dsoNameService.getName(Re))))}}
1function Rt(ft,_n){if(1&ft&&(g.\u0275\u0275elementStart(0,"ds-pagination",13),g.\u0275\u0275pipe(1,"async"),g.\u0275\u0275elementStart(2,"div",14)(3,"table",24)(4,"thead")(5,"tr")(6,"th",16),g.\u0275\u0275text(7),g.\u0275\u0275pipe(8,"translate"),g.\u0275\u0275elementEnd(),g.\u0275\u0275elementStart(9,"th",16),g.\u0275\u0275text(10),g.\u0275\u0275pipe(11,"translate"),g.\u0275\u0275elementEnd(),g.\u0275\u0275elementStart(12,"th",16),g.\u0275\u0275text(13),g.\u0275\u0275pipe(14,"translate"),g.\u0275\u0275elementEnd(),g.\u0275\u0275elementStart(15,"th",18),g.\u0275\u0275text(16),g.\u0275\u0275pipe(17,"translate"),g.\u0275\u0275elementEnd()()(),g.\u0275\u0275elementStart(18,"tbody"),g.\u0275\u0275template(19,At,14,14,"tr",17),g.\u0275\u0275pipe(20,"async"),g.\u0275\u0275elementEnd()()()()),2&ft){const Re=g.\u0275\u0275nextContext();let Ye,jt;g.\u0275\u0275property("paginationOptions",Re.configSearch)("collectionSize",null==(Ye=g.\u0275\u0275pipeBind1(1,9,Re.searchResults$))||null==Ye.payload?null:Ye.payload.totalElements)("hideGear",!0)("hidePagerWhenSinglePage",!0),g.\u0275\u0275advance(7),g.\u0275\u0275textInterpolate(g.\u0275\u0275pipeBind1(8,11,Re.messagePrefix+".table.id")),g.\u0275\u0275advance(3),g.\u0275\u0275textInterpolate(g.\u0275\u0275pipeBind1(11,13,Re.messagePrefix+".table.name")),g.\u0275\u0275advance(3),g.\u0275\u0275textInterpolate(g.\u0275\u0275pipeBind1(14,15,Re.messagePrefix+".table.collectionOrCommunity")),g.\u0275\u0275advance(3),g.\u0275\u0275textInterpolate(g.\u0275\u0275pipeBind1(17,17,Re.messagePrefix+".table.edit")),g.\u0275\u0275advance(3),g.\u0275\u0275property("ngForOf",null==(jt=g.\u0275\u0275pipeBind1(20,19,Re.searchResults$))||null==jt.payload?null:jt.payload.page)}}function Pt(ft,_n){if(1&ft&&(g.\u0275\u0275elementStart(0,"div",23),g.\u0275\u0275text(1),g.\u0275\u0275pipe(2,"translate"),g.\u0275\u0275elementEnd()),2&ft){const Re=g.\u0275\u0275nextContext();g.\u0275\u0275advance(1),g.\u0275\u0275textInterpolate1(" ",g.\u0275\u0275pipeBind1(2,1,Re.messagePrefix+".no-items")," ")}}const xt=function(){return["top","right","bottom"]},Ut=function(ft){return{content:"admin.access-control.groups.form.tooltip.editGroup.addSubgroups",id:"edit-group-add-subgroups",iconPlacement:"right",tooltipPlacement:ft}};var ke=(()=>{return(ft=ke||(ke={}))[ft.Members=0]="Members",ft[ft.ActiveGroup=1]="ActiveGroup",ft[ft.SearchResults=2]="SearchResults",ke;var ft})();let ot=(()=>{class ft{constructor(Re,Ye,jt,Pn,pr,pi,xi){this.groupDataService=Re,this.translateService=Ye,this.notificationsService=jt,this.formBuilder=Pn,this.paginationService=pr,this.router=pi,this.dsoNameService=xi,this.searchResults$=new n.X(void 0),this.subGroups$=new n.X(void 0),this.subs=new Map,this.configSearch=Object.assign(new _.r,{id:"ssgl",pageSize:5,currentPage:1}),this.config=Object.assign(new _.r,{id:"sgl",pageSize:5,currentPage:1}),this.currentSearchQuery=""}ngOnInit(){this.searchForm=this.formBuilder.group({query:""}),this.subs.set(ke.ActiveGroup,this.groupDataService.getActiveGroup().subscribe(Re=>{null!=Re&&(this.groupBeingEdited=Re,this.retrieveSubGroups(),this.search({query:""}))}))}retrieveSubGroups(){this.unsubFrom(ke.Members),this.subs.set(ke.Members,this.paginationService.getCurrentPagination(this.config.id,this.config).pipe((0,i.w)(Re=>this.groupDataService.findListByHref(this.groupBeingEdited._links.subgroups.href,{currentPage:Re.currentPage,elementsPerPage:Re.pageSize},!0,!0,(0,it.l)("object")))).subscribe(Re=>{this.subGroups$.next(Re)}))}deleteSubgroupFromGroup(Re){this.groupDataService.getActiveGroup().pipe((0,r.q)(1)).subscribe(Ye=>{if(null!=Ye){const jt=this.groupDataService.deleteSubGroupFromGroup(Ye,Re);this.showNotifications("deleteSubgroup",jt,this.dsoNameService.getName(Re),Ye),null!=this.currentSearchQuery&&this.search({query:this.currentSearchQuery})}else this.notificationsService.error(this.translateService.get(this.messagePrefix+".notification.failure.noActiveGroup"))})}addSubgroupToGroup(Re){this.groupDataService.getActiveGroup().pipe((0,r.q)(1)).subscribe(Ye=>{if(null!=Ye)if(Ye.uuid!==Re.uuid){const jt=this.groupDataService.addSubGroupToGroup(Ye,Re);this.showNotifications("addSubgroup",jt,this.dsoNameService.getName(Re),Ye),null!=this.currentSearchQuery&&this.search({query:this.currentSearchQuery})}else this.notificationsService.error(this.translateService.get(this.messagePrefix+".notification.failure.subgroupToAddIsActiveGroup"));else this.notificationsService.error(this.translateService.get(this.messagePrefix+".notification.failure.noActiveGroup"))})}search(Re){this.unsubFrom(ke.SearchResults),this.subs.set(ke.SearchResults,this.paginationService.getCurrentPagination(this.configSearch.id,this.configSearch).pipe((0,i.w)(Ye=>{const jt=Re.query;return null!=jt&&this.currentSearchQuery!==jt&&this.groupBeingEdited&&(this.currentSearchQuery=jt,this.paginationService.resetPage(this.configSearch.id)),this.searchDone=!0,this.groupDataService.searchNonMemberGroups(this.currentSearchQuery,this.groupBeingEdited.id,{currentPage:Ye.currentPage,elementsPerPage:Ye.pageSize},!1,!0,(0,it.l)("object"))}),(0,b.f1)(),(0,d.U)(Ye=>{if(!Ye.hasFailed)return Ye;this.notificationsService.error(this.translateService.get(this.messagePrefix+".notification.failure",{cause:Ye.errorMessage}))})).subscribe(Ye=>{this.searchResults$.next(Ye)}))}unsubFrom(Re){this.subs.has(Re)&&(this.subs.get(Re).unsubscribe(),this.subs.delete(Re))}ngOnDestroy(){for(const Re of this.subs.keys())this.unsubFrom(Re);this.paginationService.clearPagination(this.config.id),this.paginationService.clearPagination(this.configSearch.id)}showNotifications(Re,Ye,jt,Pn){Ye.pipe((0,b.hC)()).subscribe(pr=>{pr.hasSucceeded?(this.notificationsService.success(this.translateService.get(this.messagePrefix+".notification.success."+Re,{name:jt})),this.groupDataService.clearGroupLinkRequests(Pn._links.subgroups.href)):this.notificationsService.error(this.translateService.get(this.messagePrefix+".notification.failure."+Re,{name:jt}))})}clearFormAndResetResult(){this.searchForm.patchValue({query:""}),this.search({query:""})}}return ft.\u0275fac=function(Re){return new(Re||ft)(g.\u0275\u0275directiveInject(Me.O),g.\u0275\u0275directiveInject(B.sK),g.\u0275\u0275directiveInject(m.T),g.\u0275\u0275directiveInject(L.QS),g.\u0275\u0275directiveInject(l.N),g.\u0275\u0275directiveInject(t.F0),g.\u0275\u0275directiveInject(C._))},ft.\u0275cmp=g.\u0275\u0275defineComponent({type:ft,selectors:[["ds-subgroups-list"]],inputs:{messagePrefix:"messagePrefix"},decls:30,vars:29,consts:[[1,"border-bottom","pb-2"],[3,"paginationOptions","collectionSize","hideGear","hidePagerWhenSinglePage",4,"ngIf"],["class","alert alert-info w-100 mb-2","role","alert",4,"ngIf"],["id","search",1,"border-bottom","pb-2"],[4,"dsContextHelp"],[1,"d-flex","justify-content-between",3,"formGroup","ngSubmit"],[1,"flex-grow-1","mr-3"],[1,"form-group","input-group","mr-3"],["type","text","name","query","id","query","formControlName","query","aria-label","Search input",1,"form-control"],[1,"input-group-append"],["type","submit",1,"search-button","btn","btn-primary"],[1,"fas","fa-search"],[1,"btn","btn-secondary","float-right",3,"click"],[3,"paginationOptions","collectionSize","hideGear","hidePagerWhenSinglePage"],[1,"table-responsive"],["id","subgroupsOfGroup",1,"table","table-striped","table-hover","table-bordered"],["scope","col",1,"align-middle"],[4,"ngFor","ngForOf"],[1,"align-middle"],[3,"routerLink","click"],[1,"btn-group","edit-field"],[1,"btn","btn-outline-danger","btn-sm","deleteButton",3,"title","click"],[1,"fas","fa-tras
1h-alt","fa-fw"],["role","alert",1,"alert","alert-info","w-100","mb-2"],["id","groupsSearch",1,"table","table-striped","table-hover","table-bordered"],[1,"btn","btn-outline-primary","btn-sm","addButton",3,"title","click"],[1,"fas","fa-plus","fa-fw"]],template:function(Re,Ye){if(1&Re&&(g.\u0275\u0275elementContainerStart(0),g.\u0275\u0275elementStart(1,"h3",0),g.\u0275\u0275text(2),g.\u0275\u0275pipe(3,"translate"),g.\u0275\u0275elementEnd(),g.\u0275\u0275elementStart(4,"h4"),g.\u0275\u0275text(5),g.\u0275\u0275pipe(6,"translate"),g.\u0275\u0275elementEnd(),g.\u0275\u0275template(7,pn,21,21,"ds-pagination",1),g.\u0275\u0275pipe(8,"async"),g.\u0275\u0275template(9,tt,3,3,"div",2),g.\u0275\u0275pipe(10,"async"),g.\u0275\u0275elementStart(11,"h4",3),g.\u0275\u0275template(12,Tt,3,3,"span",4),g.\u0275\u0275elementEnd(),g.\u0275\u0275elementStart(13,"form",5),g.\u0275\u0275listener("ngSubmit",function(){return Ye.search(Ye.searchForm.value)}),g.\u0275\u0275elementStart(14,"div",6)(15,"div",7),g.\u0275\u0275element(16,"input",8),g.\u0275\u0275elementStart(17,"span",9)(18,"button",10),g.\u0275\u0275element(19,"i",11),g.\u0275\u0275text(20),g.\u0275\u0275pipe(21,"translate"),g.\u0275\u0275elementEnd()()()(),g.\u0275\u0275elementStart(22,"div")(23,"button",12),g.\u0275\u0275listener("click",function(){return Ye.clearFormAndResetResult()}),g.\u0275\u0275text(24),g.\u0275\u0275pipe(25,"translate"),g.\u0275\u0275elementEnd()()(),g.\u0275\u0275template(26,Rt,21,21,"ds-pagination",1),g.\u0275\u0275pipe(27,"async"),g.\u0275\u0275template(28,Pt,3,3,"div",2),g.\u0275\u0275pipe(29,"async"),g.\u0275\u0275elementContainerEnd()),2&Re){let jt,Pn,pr,pi;g.\u0275\u0275advance(2),g.\u0275\u0275textInterpolate(g.\u0275\u0275pipeBind1(3,10,Ye.messagePrefix+".head")),g.\u0275\u0275advance(3),g.\u0275\u0275textInterpolate(g.\u0275\u0275pipeBind1(6,12,Ye.messagePrefix+".headSubgroups")),g.\u0275\u0275advance(2),g.\u0275\u0275property("ngIf",(null==(jt=g.\u0275\u0275pipeBind1(8,14,Ye.subGroups$))||null==jt.payload?null:jt.payload.totalElements)>0),g.\u0275\u0275advance(2),g.\u0275\u0275property("ngIf",0==(null==(Pn=g.\u0275\u0275pipeBind1(10,16,Ye.subGroups$))||null==Pn.payload?null:Pn.payload.totalElements)),g.\u0275\u0275advance(3),g.\u0275\u0275property("dsContextHelp",g.\u0275\u0275pureFunction1(27,Ut,g.\u0275\u0275pureFunction0(26,xt))),g.\u0275\u0275advance(1),g.\u0275\u0275property("formGroup",Ye.searchForm),g.\u0275\u0275advance(7),g.\u0275\u0275textInterpolate1(" ",g.\u0275\u0275pipeBind1(21,18,Ye.messagePrefix+".search.button")," "),g.\u0275\u0275advance(4),g.\u0275\u0275textInterpolate1(" ",g.\u0275\u0275pipeBind1(25,20,Ye.messagePrefix+".button.see-all")," "),g.\u0275\u0275advance(2),g.\u0275\u0275property("ngIf",(null==(pr=g.\u0275\u0275pipeBind1(27,22,Ye.searchResults$))||null==pr.payload?null:pr.payload.totalElements)>0),g.\u0275\u0275advance(2),g.\u0275\u0275property("ngIf",0==(null==(pi=g.\u0275\u0275pipeBind1(29,24,Ye.searchResults$))||null==pi.payload?null:pi.payload.totalElements)&&Ye.searchDone)}},dependencies:[Y.sg,Y.O5,L._Y,L.Fj,L.JJ,L.JL,L.sg,L.u,t.rH,te.Q,Mt.A,Y.Ov,B.X$],encapsulation:2}),ft})();var gt=e(49102);function zt(ft,_n){1&ft&&g.\u0275\u0275element(0,"div")}function hn(ft,_n){if(1&ft&&(g.\u0275\u0275elementStart(0,"h1",12),g.\u0275\u0275text(1),g.\u0275\u0275pipe(2,"translate"),g.\u0275\u0275elementEnd()),2&ft){const Re=g.\u0275\u0275nextContext();g.\u0275\u0275advance(1),g.\u0275\u0275textInterpolate(g.\u0275\u0275pipeBind1(2,1,Re.messagePrefix+".head.create"))}}function Vt(ft,_n){if(1&ft&&(g.\u0275\u0275elementStart(0,"span"),g.\u0275\u0275text(1),g.\u0275\u0275pipe(2,"translate"),g.\u0275\u0275elementEnd()),2&ft){const Re=g.\u0275\u0275nextContext(2);g.\u0275\u0275advance(1),g.\u0275\u0275textInterpolate1(" ",g.\u0275\u0275pipeBind1(2,1,Re.messagePrefix+".head.edit")," ")}}const $n=function(){return["right","bottom"]},Ft=function(ft){return{content:"admin.access-control.groups.form.tooltip.editGroupPage",id:"edit-group-page",iconPlacement:"right",tooltipPlacement:ft}};function St(ft,_n){1&ft&&(g.\u0275\u0275elementStart(0,"h1",12),g.\u0275\u0275template(1,Vt,3,3,"span",13),g.\u0275\u0275elementEnd()),2&ft&&(g.\u0275\u0275advance(1),g.\u0275\u0275property("dsContextHelp",g.\u0275\u0275pureFunction1(2,Ft,g.\u0275\u0275pureFunction0(1,$n))))}
1function wt(ft,_n){if(1&ft&&g.\u0275\u0275element(0,"ds-alert",15),2&ft){const Re=g.\u0275\u0275nextContext(2);g.\u0275\u0275property("type",Re.AlertType.Warning)("content",Re.messagePrefix+".alert.permanent")}}const Xt=function(ft,_n,Re){return{name:ft,comcol:_n,comcolEditRolesRoute:Re}};function st(ft,_n){if(1&ft&&(g.\u0275\u0275element(0,"ds-alert",15),g.\u0275\u0275pipe(1,"translate"),g.\u0275\u0275pipe(2,"async")),2&ft){const Re=g.\u0275\u0275nextContext().ngIf,Ye=g.\u0275\u0275nextContext(2);g.\u0275\u0275property("type",Ye.AlertType.Warning)("content",g.\u0275\u0275pipeBind2(1,2,Ye.messagePrefix+".alert.workflowGroup",g.\u0275\u0275pureFunction3(7,Xt,Ye.dsoNameService.getName(Re),Re.type,g.\u0275\u0275pipeBind1(2,5,Ye.linkedEditRolesRoute$))))}}function xe(ft,_n){if(1&ft&&(g.\u0275\u0275elementContainerStart(0),g.\u0275\u0275template(1,st,3,11,"ds-alert",14),g.\u0275\u0275pipe(2,"async"),g.\u0275\u0275elementContainerEnd()),2&ft){const Re=g.\u0275\u0275nextContext(2);g.\u0275\u0275advance(1),g.\u0275\u0275property("ngIf",!g.\u0275\u0275pipeBind1(2,1,Re.canEdit$))}}function Le(ft,_n){if(1&ft&&(g.\u0275\u0275elementContainerStart(0),g.\u0275\u0275template(1,wt,1,2,"ds-alert",14),g.\u0275\u0275template(2,xe,3,3,"ng-container",6),g.\u0275\u0275pipe(3,"async"),g.\u0275\u0275elementContainerEnd()),2&ft){const Re=_n.ngIf,Ye=g.\u0275\u0275nextContext();g.\u0275\u0275advance(1),g.\u0275\u0275property("ngIf",null==Re?null:Re.permanent),g.\u0275\u0275advance(1),g.\u0275\u0275property("ngIf",g.\u0275\u0275pipeBind1(3,2,Ye.activeGroupLinkedDSO$))}}
1function qe(ft,_n){if(1&ft){const Re=g.\u0275\u0275getCurrentView();g.\u0275\u0275elementStart(0,"div",16)(1,"button",17),g.\u0275\u0275listener("click",function(){g.\u0275\u0275restoreView(Re);const jt=g.\u0275\u0275nextContext();return g.\u0275\u0275resetView(jt.delete())}),g.\u0275\u0275element(2,"i",18),g.\u0275\u0275text(3),g.\u0275\u0275pipe(4,"translate"),g.\u0275\u0275elementEnd()()}if(2&ft){const Re=g.\u0275\u0275nextContext();g.\u0275\u0275advance(3),g.\u0275\u0275textInterpolate1(" ",g.\u0275\u0275pipeBind1(4,1,Re.messagePrefix+".actions.delete")," ")}}function at(ft,_n){if(1&ft&&g.\u0275\u0275element(0,"ds-members-list",21),2&ft){const Re=g.\u0275\u0275nextContext(2);g.\u0275\u0275property("messagePrefix",Re.messagePrefix+".members-list")}}function Jt(ft,_n){if(1&ft&&g.\u0275\u0275element(0,"ds-subgroups-list",21),2&ft){const Re=g.\u0275\u0275nextContext(2);g.\u0275\u0275property("messagePrefix",Re.messagePrefix+".subgroups-list")}}function $t(ft,_n){if(1&ft&&(g.\u0275\u0275elementContainerStart(0),g.\u0275\u0275elementStart(1,"div",19),g.\u0275\u0275template(2,at,1,1,"ds-members-list",20),g.\u0275\u0275elementEnd(),g.\u0275\u0275template(3,Jt,1,1,"ds-subgroups-list",20),g.\u0275\u0275elementContainerEnd()),2&ft){const Re=_n.ngIf;g.\u0275\u0275advance(2),g.\u0275\u0275property("ngIf",null!=Re),g.\u0275\u0275advance(1),g.\u0275\u0275property("ngIf",null!=Re)}}let rn=(()=>{class ft{constructor(Re,Ye,jt,Pn,pr,pi,xi,bi,Hi,Fi,si,Do){this.groupDataService=Re,this.dSpaceObjectDataService=Ye,this.formBuilderService=jt,this.translateService=Pn,this.notificationsService=pr,this.route=pi,this.router=xi,this.authorizationService=bi,this.modalService=Hi,this.requestService=Fi,this.changeDetectorRef=si,this.dsoNameService=Do,this.messagePrefix="admin.access-control.groups.form",this.formId="group-form",this.formLayout={groupName:{grid:{host:"row"}},groupDescription:{grid:{host:"row"}}},this.submitForm=new g.EventEmitter,this.cancelForm=new g.EventEmitter,this.subs=[],this.AlertType=_t.N}ngOnInit(){"newGroup"!==this.route.snapshot.params.groupId&&this.setActiveGroup(this.route.snapshot.params.groupId),this.activeGroup$=this.groupDataService.getActiveGroup(),this.activeGroupLinkedDSO$=this.getActiveGroupLinkedDSO(),this.linkedEditRolesRoute$=this.getLinkedEditRolesRoute(),this.canEdit$=this.activeGroupLinkedDSO$.pipe((0,i.w)(Re=>(0,h.Uh)(Re)?[!1]:this.activeGroup$.pipe((0,h.tz)(),(0,i.w)(Ye=>this.authorizationService.isAuthorized(E.i.CanDelete,Ye.self))))),this.initialisePage()}initialisePage(){const Re=new ne.b1u({id:"groupName",label:this.translateService.instant(`${this.messagePrefix}.groupName`),name:"groupName",validators:{required:null},required:!0}),Ye=new ne.b1u({id:"groupCommunity",label:this.translateService.instant(`${this.messagePrefix}.groupCommunity`),name:"groupCommunity",required:!1,readOnly:!0}),jt=new ne.HBf({id:"groupDescription",label:this.translateService.instant(`${this.messagePrefix}.groupDescription`),name:"groupDescription",required:!1,spellCheck:Xe.N.form.spellCheck});this.formModel=[Re,jt],this.formGroup=this.formBuilderService.createFormGroup(this.formModel),this.groupName=this.formGroup.get("groupName"),this.groupDescription=this.formGroup.get("groupDescription"),(0,h.Uh)(this.groupName)&&(this.groupName.setAsyncValidators(Be.createValidator(this.groupDataService)),this.groupNameValueChangeSubscribe=this.groupName.valueChanges.pipe((0,q.b)(300)).subscribe(()=>{this.changeDetectorRef.detectChanges()})),this.subs.push((0,o.a)([this.activeGroup$,this.canEdit$,this.activeGroupLinkedDSO$]).subscribe(([Pn,pr,pi])=>{null!=Pn&&(this.formGroup.controls.groupName.clearAsyncValidators(),(0,h.UE)(pi?.name)?(this.formGroup.controls.groupCommunity||(this.formBuilderService.insertFormGroupControl(1,this.formGroup,this.formModel,Ye),this.groupDescription=this.formGroup.get("groupCommunity")),this.formGroup.patchValue({groupName:Pn.name,groupCommunity:pi?.name??"",groupDescription:Pn.firstMetadataValue("dc.description")})):(this.formModel=[Re,jt],this.formGroup.patchValue({groupName:Pn.name,groupDescription:Pn.firstMetadataValue("dc.description")})),!pr||Pn.permanent?this.formGroup.disable():this.formGroup.enable())}))}onCancel(){this.groupDataService.cancelEditGroup(),this.cancelForm.emit(),this.router.navigate([(0,I.fN)()])}onSubmit(){this.activeGroup$.pipe((0,r.q)(1)).subscribe(Re=>{null===Re?this.createNewGroup({name:this.groupName.value,metadata:{"dc.description":[{value:this.groupDescription.value}]}}):this.editGroup(Re)})}createNewGroup(Re){const Ye=Object.assign(new Ee.Z,Re);this.groupDataService.create(Ye).pipe((0,b.hC)()).subscribe(jt=>{jt.hasSucceeded?(this.notificationsService.success(this.translateService.get(this.messagePrefix+".notification.created.success",{name:Ye.name})),this.submitForm.emit(Ye),(0,h.UE)(jt.payload)&&(this.setActiveGroupWithLink(jt.payload._links.self.href),this.groupDataService.clearGroupsRequests(),this.router.navigateByUrl((0,I.EV)(jt.payload.uuid)))):(this.notificationsService.error(this.translateService.get(this.messagePrefix+".notification.created.failure",{name:Ye.name})),this.showNotificationIfNameInUse(Ye,"created"),this.cancelForm.emit())})}showNotificationIfNameInUse(Re,Ye){this.subs.push(this.groupDataService.searchGroups(Re.name,{currentPage:1,elementsPerPage:0}).pipe((0,b.xw)(),(0,b.xe)()).subscribe(jt=>{jt.totalElements>0&&this.notificationsService.error(this.translateService.get(this.messagePrefix+".notification."+Ye+".failure.groupNameInUse",{name:this.dsoNameService.getName(Re)}))}))}editGroup(Re){let Ye=[];(0,h.Uh)(this.groupDescription.value)&&(Ye=[...Ye,{op:"add",path:"/metadata/dc.description",value:this.groupDescription.value}]),(0,h.Uh)(this.groupName.value)&&(Ye=[...Ye,{op:"replace",path:"/name",value:this.groupName.value}]),this.groupDataService.patch(Re,Ye).pipe((0,b.hC)()).subscribe(jt=>{jt.hasSucceeded?(this.notificationsService.success(this.translateService.get(this.messagePrefix+".notification.edited.success",{name:this.dsoNameService.getName(jt.payload)})),this.submitForm.emit(jt.payload)):(this.notificationsService.error(this.translateService.get(this.messagePrefix+".notification.edited.failure",{name:this.dsoNameService.getName(Re)})),this.cancelForm.emit())})}setActiveGroup(Re){this.groupDataService.cancelEditGroup(),this.groupDataService.findById(Re).pipe((0,b.xw)(),(0,b.xe)()).subscribe(Ye=>{this.groupDataService.editGroup(Ye)})}setActiveGroupWithLink(Re){this.activeGroup$.pipe((0,r.q)(1)).subscribe(Ye=>{null===Ye&&(this.groupDataService.cancelEditGroup(),this.groupDataService.findByHref(Re,!1,!1,(0,it.l)("subgroups"),(0,it.l)("epersons"),(0,it.l)("object")).pipe((0,b.xw)(),(0,b.xe)()).subscribe(jt=>{this.groupDataService.editGroup(jt)}))})}delete(){this.activeGroup$.pipe((0,r.q)(1)).subscribe(Re=>{const Ye=this.modalService.open(M.Y);Ye.componentInstance.dso=Re,Ye.componentInstance.headerLabel=this.messagePrefix+".delete-group.modal.header",Ye.componentInstance.infoLabel=this.messagePrefix+".delete-group.modal.info",Ye.componentInstance.cancelLabel=this.messagePrefix+".delete-group.modal.cancel",Ye.componentInstance.confirmLabel=this.messagePrefix+".delete-group.modal.confirm",Ye.componentInstance.brandColor="danger",Ye.componentInstance.confirmIcon="fas fa-tras
1h",Ye.componentInstance.response.pipe((0,r.q)(1)).subscribe(jt=>{jt&&(0,h.Uh)(Re.id)&&this.groupDataService.delete(Re.id).pipe((0,b.hC)()).subscribe(Pn=>{Pn.hasSucceeded?(this.notificationsService.success(this.translateService.get(this.messagePrefix+".notification.deleted.success",{name:this.dsoNameService.getName(Re)})),this.onCancel()):this.notificationsService.error(this.translateService.get(this.messagePrefix+".notification.deleted.failure.title",{name:this.dsoNameService.getName(Re)}),this.translateService.get(this.messagePrefix+".notification.deleted.failure.content",{cause:Pn.errorMessage}))})})})}ngOnDestroy(){this.groupDataService.cancelEditGroup(),this.subs.filter(Re=>(0,h.Uh)(Re)).forEach(Re=>Re.unsubscribe()),(0,h.Uh)(this.groupNameValueChangeSubscribe)&&this.groupNameValueChangeSubscribe.unsubscribe()}getActiveGroupLinkedDSO(){return this.activeGroup$.pipe((0,h.tz)(),(0,i.w)(Re=>void 0===Re.object?this.dSpaceObjectDataService.findByHref(Re._links.object.href):Re.object),(0,b.f1)(),(0,b.xe)())}getLinkedEditRolesRoute(){return this.activeGroupLinkedDSO$.pipe((0,h.tz)(),(0,d.U)(Re=>{switch(Re.type){case Je.S.type.value:return(0,ce.eq)(Re.id);case Ae.F.type.value:return(0,oe.Po)(Re.id)}}))}}return ft.\u0275fac=function(Re){return new(Re||ft)(g.\u0275\u0275directiveInject(Me.O),g.\u0275\u0275directiveInject(ye.D),g.\u0275\u0275directiveInject(It.c),g.\u0275\u0275directiveInject(B.sK),g.\u0275\u0275directiveInject(m.T),g.\u0275\u0275directiveInject(t.gz),g.\u0275\u0275directiveInject(t.F0),g.\u0275\u0275directiveInject(O._),g.\u0275\u0275directiveInject(V.FF),g.\u0275\u0275directiveInject(P.s),g.\u0275\u0275directiveInject(g.ChangeDetectorRef),g.\u0275\u0275directiveInject(C._))},ft.\u0275cmp=g.\u0275\u0275defineComponent({type:ft,selectors:[["ds-group-form"]],hostBindings:function(Re,Ye){1&Re&&g.\u0275\u0275listener("beforeunload",function(){return Ye.ngOnDestroy()},!1,g.\u0275\u0275resolveWindow)},outputs:{submitForm:"submitForm",cancelForm:"cancelForm"},decls:22,vars:24,consts:[[1,"container"],[1,"group-form","row"],[1,"col-12"],[4,"ngIf","ngIfThen","ngIfElse"],["createHeader",""],["editHeader",""],[4,"ngIf"],[3,"formId","formModel","formGroup","formLayout","displayCancel","submitForm"],["before","",1,"btn-group"],["type","button",1,"btn","btn-outline-secondary",3,"click"],[1,"fas","fa-arrow-left"],["after","","class","btn-group",4,"ngIf"],[1,"border-bottom","pb-2"],[4,"dsContextHelp"],[3,"type","content",4,"ngIf"],[3,"type","content"],["after","",1,"btn-group"],["type","button",1,"btn","btn-danger","delete-button",3,"click"],[1,"fa","fa-trash"],[1,"mb-5"],[3,"messagePrefix",4,"ngIf"],[3,"messagePrefix"]],template:function(Re,Ye){if(1&Re&&(g.\u0275\u0275elementStart(0,"div",0)(1,"div",1)(2,"div",2),g.\u0275\u0275template(3,zt,1,0,"div",3),g.\u0275\u0275pipe(4,"async"),g.\u0275\u0275template(5,hn,3,3,"ng-template",null,4,g.\u0275\u0275templateRefExtractor),g.\u0275\u0275template(7,St,2,4,"ng-template",null,5,g.\u0275\u0275templateRefExtractor),g.\u0275\u0275template(9,Le,4,4,"ng-container",6),g.\u0275\u0275pipe(10,"async"),g.\u0275\u0275elementStart(11,"ds-form",7),g.\u0275\u0275listener("submitForm",function(){return Ye.onSubmit()}),g.\u0275\u0275elementStart(12,"div",8)(13,"button",9),g.\u0275\u0275listener("click",function(){return Ye.onCancel()}),g.\u0275\u0275element(14,"i",10),g.\u0275\u0275text(15),g.\u0275\u0275pipe(16,"translate"),g.\u0275\u0275elementEnd()(),g.\u0275\u0275template(17,qe,5,3,"div",11),g.\u0275\u0275pipe(18,"async"),g.\u0275\u0275pipe(19,"async"),g.\u0275\u0275elementEnd(),g.\u0275\u0275template(20,$t,4,2,"ng-container",6),g.\u0275\u0275pipe(21,"async"),g.\u0275\u0275elementEnd()()()),2&Re){const jt=g.\u0275\u0275reference(6),Pn=g.\u0275\u0275reference(8);let pr;g.\u0275\u0275advance(3),g.\u0275\u0275property("ngIf",g.\u0275\u0275pipeBind1(4,12,Ye.activeGroup$))("ngIfThen",Pn)("ngIfElse",jt),g.\u0275\u0275advance(6),g.\u0275\u0275property("ngIf",g.\u0275\u0275pipeBind1(10,14,Ye.activeGroup$)),g.\u0275\u0275advance(2),g.\u0275\u0275property("formId",Ye.formId)("formModel",Ye.formModel)("formGroup",Ye.formGroup)("formLayout",Ye.formLayout)("displayCancel",!1),g.\u0275\u0275advance(4),g.\u0275\u0275textInterpolate1(" ",g.\u0275\u0275pipeBind1(16,16,Ye.messagePrefix+".return"),""),g.\u0275\u0275advance(2),g.\u0275\u0275property("ngIf",g.\u0275\u0275pipeBind1(18,18,Ye.canEdit$)&&!(null!=(pr=g.\u0275\u0275pipeBind1(19,20,Ye.activeGroup$))&&pr.permanent)),g.\u0275\u0275advance(3),g.\u0275\u0275property("ngIf",g.\u0275\u0275pipeBind1(21,22,Ye.activeGroup$))}},dependencies:[Y.O5,L.JL,L.sg,pt.w,Mt.A,Yt.U,ot,gt.O,Y.Ov,B.X$],encapsulation:2}),ft})();var Wt=e(39646),qt=e(60515),un=e(18505),dt=e(46590),ht=e(70262);class je{}var vt=e(5360),Zt=e(25575);function We(ft,_n){1&ft&&g.\u0275\u0275element(0,"ds-themed-loading")}const Ne=function(ft){return{name:ft}};
1function ze(ft,_n){if(1&ft&&(g.\u0275\u0275elementStart(0,"button",30),g.\u0275\u0275pipe(1,"translate"),g.\u0275\u0275element(2,"i",31),g.\u0275\u0275elementEnd()),2&ft){const Re=g.\u0275\u0275nextContext().$implicit,Ye=g.\u0275\u0275nextContext(2);g.\u0275\u0275propertyInterpolate("title",g.\u0275\u0275pipeBind2(1,2,Ye.messagePrefix+"table.edit.buttons.edit",g.\u0275\u0275pureFunction1(5,Ne,Ye.dsoNameService.getName(Re.group)))),g.\u0275\u0275property("routerLink",Ye.groupService.getGroupEditPageRouterLink(Re.group))}}function bt(ft,_n){1&ft&&(g.\u0275\u0275elementStart(0,"button",32),g.\u0275\u0275pipe(1,"translate"),g.\u0275\u0275element(2,"i",31),g.\u0275\u0275elementEnd()),2&ft&&g.\u0275\u0275property("dsBtnDisabled",!0)("ngbTooltip",g.\u0275\u0275pipeBind1(1,2,"admin.access-control.epeople.table.edit.buttons.edit-disabled"))}function En(ft,_n){if(1&ft){const Re=g.\u0275\u0275getCurrentView();g.\u0275\u0275elementStart(0,"button",33),g.\u0275\u0275listener("click",function(){g.\u0275\u0275restoreView(Re);const jt=g.\u0275\u0275nextContext().$implicit,Pn=g.\u0275\u0275nextContext(2);return g.\u0275\u0275resetView(Pn.deleteGroup(jt))}),g.\u0275\u0275pipe(1,"translate"),g.\u0275\u0275element(2,"i",34),g.\u0275\u0275elementEnd()}if(2&ft){const Re=g.\u0275\u0275nextContext().$implicit,Ye=g.\u0275\u0275nextContext(2);g.\u0275\u0275propertyInterpolate("title",g.\u0275\u0275pipeBind2(1,1,Ye.messagePrefix+"table.edit.buttons.remove",g.\u0275\u0275pureFunction1(4,Ne,Ye.dsoNameService.getName(Re.group))))}}function wn(ft,_n){if(1&ft&&(g.\u0275\u0275elementStart(0,"tr")(1,"td"),g.\u0275\u0275text(2),g.\u0275\u0275elementEnd(),g.\u0275\u0275elementStart(3,"td"),g.\u0275\u0275text(4),g.\u0275\u0275elementEnd(),g.\u0275\u0275elementStart(5,"td"),g.\u0275\u0275text(6),g.\u0275\u0275pipe(7,"async"),g.\u0275\u0275elementEnd(),g.\u0275\u0275elementStart(8,"td"),g.\u0275\u0275text(9),g.\u0275\u0275elementEnd(),g.\u0275\u0275elementStart(10,"td")(11,"div",25),g.\u0275\u0275elementContainerStart(12,26),g.\u0275\u0275template(13,ze,3,7,"button",27),g.\u0275\u0275template(14,bt,3,4,"button",28),g.\u0275\u0275elementContainerEnd(),g.\u0275\u0275template(15,En,3,6,"button",29),g.\u0275\u0275elementEnd()()()),2&ft){const Re=_n.$implicit,Ye=g.\u0275\u0275nextContext(2);let jt;g.\u0275\u0275advance(2),g.\u0275\u0275textInterpolate(Re.group.id),g.\u0275\u0275advance(2),g.\u0275\u0275textInterpolate(Ye.dsoNameService.getName(Re.group)),g.\u0275\u0275advance(2),g.\u0275\u0275textInterpolate(Ye.dsoNameService.getName(null==(jt=g.\u0275\u0275pipeBind1(7,8,Re.group.object))?null:jt.payload)),g.\u0275\u0275advance(3),g.\u0275\u0275textInterpolate((null==Re.epersons?null:Re.epersons.totalElements)+(null==Re.subgroups?null:Re.subgroups.totalElements)),g.\u0275\u0275advance(3),g.\u0275\u0275property("ngSwitch",Re.ableToEdit),g.\u0275\u0275advance(1),g.\u0275\u0275property("ngSwitchCase",!0),g.\u0275\u0275advance(1),g.\u0275\u0275property("ngSwitchCase",!1),g.\u0275\u0275advance(1),g.\u0275\u0275property("ngIf",!(null!=Re.group&&Re.group.permanent)&&Re.ableToDelete)}}
1function nr(ft,_n){if(1&ft&&(g.\u0275\u0275elementStart(0,"ds-pagination",20),g.\u0275\u0275pipe(1,"async"),g.\u0275\u0275elementStart(2,"div",21)(3,"table",22)(4,"thead")(5,"tr")(6,"th",23),g.\u0275\u0275text(7),g.\u0275\u0275pipe(8,"translate"),g.\u0275\u0275elementEnd(),g.\u0275\u0275elementStart(9,"th",23),g.\u0275\u0275text(10),g.\u0275\u0275pipe(11,"translate"),g.\u0275\u0275elementEnd(),g.\u0275\u0275elementStart(12,"th",23),g.\u0275\u0275text(13),g.\u0275\u0275pipe(14,"translate"),g.\u0275\u0275elementEnd(),g.\u0275\u0275elementStart(15,"th",23),g.\u0275\u0275text(16),g.\u0275\u0275pipe(17,"translate"),g.\u0275\u0275elementEnd(),g.\u0275\u0275elementStart(18,"th"),g.\u0275\u0275text(19),g.\u0275\u0275pipe(20,"translate"),g.\u0275\u0275elementEnd()()(),g.\u0275\u0275elementStart(21,"tbody"),g.\u0275\u0275template(22,wn,16,10,"tr",24),g.\u0275\u0275pipe(23,"async"),g.\u0275\u0275elementEnd()()()()),2&ft){const Re=g.\u0275\u0275nextContext();let Ye,jt;g.\u0275\u0275property("paginationOptions",Re.config)("collectionSize",null==(Ye=g.\u0275\u0275pipeBind1(1,10,Re.pageInfoState$))?null:Ye.totalElements)("hideGear",!0)("hidePagerWhenSinglePage",!0),g.\u0275\u0275advance(7),g.\u0275\u0275textInterpolate(g.\u0275\u0275pipeBind1(8,12,Re.messagePrefix+"table.id")),g.\u0275\u0275advance(3),g.\u0275\u0275textInterpolate(g.\u0275\u0275pipeBind1(11,14,Re.messagePrefix+"table.name")),g.\u0275\u0275advance(3),g.\u0275\u0275textInterpolate(g.\u0275\u0275pipeBind1(14,16,Re.messagePrefix+"table.collectionOrCommunity")),g.\u0275\u0275advance(3),g.\u0275\u0275textInterpolate(g.\u0275\u0275pipeBind1(17,18,Re.messagePrefix+"table.members")),g.\u0275\u0275advance(3),g.\u0275\u0275textInterpolate(g.\u0275\u0275pipeBind1(20,20,Re.messagePrefix+"table.edit")),g.\u0275\u0275advance(3),g.\u0275\u0275property("ngForOf",null==(jt=g.\u0275\u0275pipeBind1(23,22,Re.groupsDto$))?null:jt.page)}}function Cn(ft,_n){if(1&ft&&(g.\u0275\u0275elementStart(0,"div",35),g.\u0275\u0275text(1),g.\u0275\u0275pipe(2,"translate"),g.\u0275\u0275elementEnd()),2&ft){const Re=g.\u0275\u0275nextContext();g.\u0275\u0275advance(1),g.\u0275\u0275textInterpolate1(" ",g.\u0275\u0275pipeBind1(2,1,Re.messagePrefix+"no-items")," ")}}let bn=(()=>{class ft{constructor(Re,Ye,jt,Pn,pr,pi,xi,bi,Hi,Fi,si,Do){this.groupService=Re,this.ePersonDataService=Ye,this.dSpaceObjectDataService=jt,this.translateService=Pn,this.notificationsService=pr,this.formBuilder=pi,this.routeService=xi,this.router=bi,this.authorizationService=Hi,this.paginationService=Fi,this.requestService=si,this.dsoNameService=Do,this.messagePrefix="admin.access-control.groups.",this.config=Object.assign(new _.r,{id:"gl",pageSize:5,currentPage:1}),this.groupsDto$=new n.X({}),this.deletedGroupsIds=[],this.pageInfoState$=new n.X(void 0),this.loading$=new n.X(!1),this.subs=[],this.currentSearchQuery="",this.searchForm=this.formBuilder.group({query:this.currentSearchQuery})}ngOnInit(){this.search({query:this.currentSearchQuery})}search(Re){(0,h.Uh)(this.searchSub)&&(this.searchSub.unsubscribe(),this.subs=this.subs.filter(Ye=>Ye!==this.searchSub)),this.searchSub=this.paginationService.getCurrentPagination(this.config.id,this.config).pipe((0,un.b)(()=>this.loading$.next(!0)),(0,i.w)(Ye=>{const jt=Re.query;return null!=jt&&this.currentSearchQuery!==jt&&(this.currentSearchQuery=jt,this.paginationService.updateRouteWithUrl(this.config.id,[],{page:1})),this.groupService.searchGroups(this.currentSearchQuery.trim(),{currentPage:Ye.currentPage,elementsPerPage:Ye.pageSize},!0,!0,(0,it.l)("object"))}),(0,b.g1)(),(0,b.xe)(),(0,i.w)(Ye=>0===Ye.page.length?(0,Wt.of)((0,a.b)(Ye.pageInfo,[])):this.authorizationService.isAuthorized(E.i.AdministratorOf).pipe((0,i.w)(jt=>(0,o.a)([...Ye.page.map(Pn=>(0,h.Uh)(Pn)&&!this.deletedGroupsIds.includes(Pn.id)?(0,o.a)([this.authorizationService.isAuthorized(E.i.CanDelete,Pn.self),this.canManageGroup$(jt,Pn),this.hasLinkedDSO(Pn),this.getSubgroups(Pn),this.getMembers(Pn)]).pipe((0,d.U)(([pr,pi,xi,bi,Hi])=>{const Fi=new je;return Fi.ableToDelete=pr&&!xi,Fi.ableToEdit=pi,Fi.group=Pn,Fi.subgroups=bi.payload,Fi.epersons=Hi.payload,Fi})):qt.E)]).pipe((0,dt.d)([]),(0,d.U)(Pn=>(0,a.b)(Ye.pageInfo,Pn))))))).subscribe(Ye=>{this.groupsDto$.next(Ye),this.pageInfoState$.next(Ye.pageInfo),this.loading$.next(!1)}),this.subs.push(this.searchSub)}canManageGroup$(Re,Ye){return Re?(0,Wt.of)(!0):this.authorizationService.isAuthorized(E.i.CanManageGroup,Ye.self)}deleteGroup(Re){(0,h.Uh)(Re.group.id)&&this.groupService.delete(Re.group.id).pipe((0,b.hC)()).subscribe(Ye=>{Ye.hasSucceeded?(this.deletedGroupsIds=[...this.deletedGroupsIds,Re.group.id],this.notificationsService.success(this.translateService.get(this.messagePrefix+"notification.deleted.success",{name:this.dsoNameService.getName(Re.group)}))):this.notificationsService.error(this.translateService.get(this.messagePrefix+"notification.deleted.failure.title",{name:this.dsoNameService.getName(Re.group)}),this.translateService.get(this.messagePrefix+"notification.deleted.failure.content",{cause:Ye.errorMessage}))})}getMembers(Re){return this.ePersonDataService.findListByHref(Re._links.epersons.href,{currentPage:1,elementsPerPage:1}).pipe((0,b.xw)())}getSubgroups(Re){return this.groupService.findListByHref(Re._links.subgroups.href,{currentPage:1,elementsPerPage:1}).pipe((0,b.xw)())}hasLinkedDSO(Re){return this.dSpaceObjectDataService.findByHref(Re._links.object.href).pipe((0,b.xw)(),(0,d.U)(Ye=>(0,h.Uh)(Ye)&&(0,h.Uh)(Ye.payload)),(0,ht.K)(()=>(0,Wt.of)(!1)))}clearFormAndResetResult(){this.searchForm.patchValue({query:""}),this.search({query:""})}ngOnDestroy(){this.cleanupSubscribes(),this.paginationService.clearPagination(this.config.id)}cleanupSubscribes(){(0,h.Uh)(this.paginationSub)&&this.paginationSub.unsubscribe(),this.subs.filter(Re=>
1(0,h.Uh)(Re)).forEach(Re=>Re.unsubscribe()),this.paginationService.clearPagination(this.config.id)}}return ft.\u0275fac=function(Re){return new(Re||ft)(g.\u0275\u0275directiveInject(Me.O),g.\u0275\u0275directiveInject(p.k),g.\u0275\u0275directiveInject(ye.D),g.\u0275\u0275directiveInject(B.sK),g.\u0275\u0275directiveInject(m.T),g.\u0275\u0275directiveInject(L.QS),g.\u0275\u0275directiveInject(vt.MZ),g.\u0275\u0275directiveInject(t.F0),g.\u0275\u0275directiveInject(O._),g.\u0275\u0275directiveInject(l.N),g.\u0275\u0275directiveInject(P.s),g.\u0275\u0275directiveInject(C._))},ft.\u0275cmp=g.\u0275\u0275defineComponent({type:ft,selectors:[["ds-groups-registry"]],decls:38,vars:34,consts:[[1,"container"],[1,"groups-registry","row"],[1,"col-12"],[1,"d-flex","justify-content-between","border-bottom","mb-3"],["id","header",1,"pb-2"],[1,"mr-auto","btn","btn-success",3,"routerLink"],[1,"fas","fa-plus"],[1,"d-none","d-sm-inline","ml-1"],["id","search",1,"border-bottom","pb-2"],[1,"d-flex","justify-content-between",3,"formGroup","ngSubmit"],[1,"flex-grow-1","mr-3"],[1,"form-group","input-group"],["type","text","name","query","id","query","formControlName","query",1,"form-control",3,"placeholder"],[1,"input-group-append"],["type","submit",1,"search-button","btn","btn-primary"],[1,"fas","fa-search"],[1,"btn","btn-secondary",3,"click"],[4,"ngIf"],[3,"paginationOptions","collectionSize","hideGear","hidePagerWhenSinglePage",4,"ngIf"],["class","alert alert-info w-100 mb-2","role","alert",4,"ngIf"],[3,"paginationOptions","collectionSize","hideGear","hidePagerWhenSinglePage"],[1,"table-responsive"],["id","groups",1,"table","table-striped","table-hover","table-bordered"],["scope","col"],[4,"ngFor","ngForOf"],[1,"btn-group","edit-field"],[3,"ngSwitch"],["class","btn btn-outline-primary btn-sm btn-edit",3,"routerLink","title",4,"ngSwitchCase"],["class","btn btn-outline-primary btn-sm btn-edit","placement","left",3,"dsBtnDisabled","ngbTooltip",4,"ngSwitchCase"],["class","btn btn-outline-danger btn-sm btn-delete",3,"title","click",4,"ngIf"],[1,"btn","btn-outline-primary","btn-sm","btn-edit",3,"routerLink","title"],[1,"fas","fa-edit","fa-fw"],["placement","left",1,"btn","btn-outline-primary","btn-sm","btn-edit",3,"dsBtnDisabled","ngbTooltip"],[1,"btn","btn-outline-danger","btn-sm","btn-delete",3,"title","click"],[1,"fas","fa-trash-alt","fa-fw"],["role","alert",1,"alert","alert-info","w-100","mb-2"]],template:function(Re,Ye){if(1&Re&&(g.\u0275\u0275elementStart(0,"div",0)(1,"div",1)(2,"div",2)(3,"div",3)(4,"h1",4),g.\u0275\u0275text(5),g.\u0275\u0275pipe(6,"translate"),g.\u0275\u0275elementEnd(),g.\u0275\u0275elementStart(7,"div")(8,"button",5),g.\u0275\u0275element(9,"i",6),g.\u0275\u0275elementStart(10,"span",7),g.\u0275\u0275text(11),g.\u0275\u0275pipe(12,"translate"),g.\u0275\u0275elementEnd()()()(),g.\u0275\u0275elementStart(13,"h2",8),g.\u0275\u0275text(14),g.\u0275\u0275pipe(15,"translate"),g.\u0275\u0275elementEnd(),g.\u0275\u0275elementStart(16,"form",9),g.\u0275\u0275listener("ngSubmit",function(){return Ye.search(Ye.searchForm.value)}),g.\u0275\u0275elementStart(17,"div",10)(18,"div",11),g.\u0275\u0275element(19,"input",12),g.\u0275\u0275pipe(20,"translate"),g.\u0275\u0275pipe(21,"translate"),g.\u0275\u0275elementStart(22,"span",13)(23,"button",14),g.\u0275\u0275element(24,"i",15),g.\u0275\u0275text(25),g.\u0275\u0275pipe(26,"translate"),g.\u0275\u0275elementEnd()()()(),g.\u0275\u0275elementStart(27,"div")(28,"button",16),g.\u0275\u0275listener("click",function(){return Ye.clearFormAndResetResult()}),g.\u0275\u0275text(29),g.\u0275\u0275pipe(30,"translate"),g.\u0275\u0275elementEnd()()(),g.\u0275\u0275template(31,We,1,0,"ds-themed-loading",17),g.\u0275\u0275pipe(32,"async"),g.\u0275\u0275template(33,nr,24,24,"ds-pagination",18),g.\u0275\u0275pipe(34,"async"),g.\u0275\u0275pipe(35,"async"),g.\u0275\u0275template(36,Cn,3,3,"div",19),g.\u0275\u0275pipe(37,"async"),g.\u0275\u0275elementEnd()()()),2&Re){let jt,Pn;g.\u0275\u0275advance(5),g.\u0275\u0275textInterpolate(g.\u0275\u0275pipeBind1(6,12,Ye.messagePrefix+"head")),g.\u0275\u0275advance(3),g.\u0275\u0275property("routerLink","create"),g.\u0275\u0275advance(3),g.\u0275\u0275textInterpolate(g.\u0275\u0275pipeBind1(12,14,Ye.messagePrefix+"button.add")),g.\u0275\u0275advance(3),g.\u0275\u0275textInterpolate(g.\u0275\u0275pipeBind1(15,16,Ye.messagePrefix+"search.head")),g.\u0275\u0275advance(2),g.\u0275\u0275property("formGroup",Ye.searchForm),g.\u0275\u0275advance(3),g.\u0275\u0275property("placeholder",g.\u0275\u0275pipeBind1(21,20,Ye.messagePrefix+"search.placeholder")),g.\u0275\u0275attribute("aria-label",g.\u0275\u0275pipeBind1(20,18,Ye.messagePrefix+"search.placeholder")),g.\u0275\u0275advance(6),g.\u0275\u0275textInterpolate1(" ",g.\u0275\u0275pipeBind1(26,22,Ye.messagePrefix+"search.button")," "),g.\u0275\u0275advance(4),g.\u0275\u0275textInterpolate1(" ",g.\u0275\u0275pipeBind1(30,24,Ye.messagePrefix+"button.see-all")," "),g.\u0275\u0275advance(2),g.\u0275\u0275property("ngIf",g.\u0275\u0275pipeBind1(32,26,Ye.loading$)),g.\u0275\u0275advance(2),g.\u0275\u0275property("ngIf",(null==(jt=g.\u0275\u0275pipeBind1(34,28,Ye.pageInfoState$))?null:jt.totalElements)>0&&!g.\u0275\u0275pipeBind1(35,30,Ye.loading$)),g.\u0275\u0275advance(3),g.\u0275\u0275property("ngIf",0==(null==(Pn=g.\u0275\u0275pipeBind1(37,32,Ye.pageInfoState$))?null:Pn.totalElements))}},dependencies:[Y.sg,Y.O5,Y.RF,Y.n9,L._Y,L.Fj,L.JJ,L.JL,V._L,L.sg,L.u,t.rH,X.Z,te.Q,Zt.v,Y.Ov,B.X$],encapsulation:2}),ft})();var cn=e(98655),Dn=e(24755),In=e(89141),Nn=e(93498);let Rn=(()=>
1{class ft extends In.I{constructor(Re,Ye,jt,Pn){super(Ye,jt,Pn),this.halEndpointService=Re,this.authorizationService=Ye,this.router=jt,this.authService=Pn,this.groupsEndpoint="groups"}getFeatureIDs(Re,Ye){return(0,Wt.of)([E.i.CanManageGroup])}getObjectUrl(Re,Ye){return this.halEndpointService.getEndpoint(this.groupsEndpoint).pipe((0,d.U)(jt=>`${jt}/${Re?.params?.groupId}`))}}return ft.\u0275fac=function(Re){return new(Re||ft)(g.\u0275\u0275inject(Nn.q),g.\u0275\u0275inject(O._),g.\u0275\u0275inject(t.F0),g.\u0275\u0275inject(Dn.e8))},ft.\u0275prov=g.\u0275\u0275defineInjectable({token:ft,factory:ft.\u0275fac,providedIn:"root"}),ft})();var Jn=e(20066),zn=e(97874),ur=e(71884),Rr=e(55810);const rr=["dsAccessControlForm"];function Mr(ft,_n){1&ft&&g.\u0275\u0275element(0,"span",11)}function Mn(ft,_n){1&ft&&g.\u0275\u0275element(0,"span",12)}function Xn(ft,_n){if(1&ft){const Re=g.\u0275\u0275getCurrentView();g.\u0275\u0275elementStart(0,"div",5),g.\u0275\u0275listener("click",function(){g.\u0275\u0275restoreView(Re),g.\u0275\u0275nextContext();const jt=g.\u0275\u0275reference(1);return g.\u0275\u0275resetView(jt.toggle("settings"))}),g.\u0275\u0275elementStart(1,"button",6),g.\u0275\u0275listener("click",function(jt){return jt.preventDefault()}),g.\u0275\u0275text(2),g.\u0275\u0275pipe(3,"translate"),g.\u0275\u0275elementEnd(),g.\u0275\u0275elementStart(4,"div",7)(5,"div",8),g.\u0275\u0275template(6,Mr,1,0,"span",9),g.\u0275\u0275template(7,Mn,1,0,"span",10),g.\u0275\u0275elementEnd()()()}if(2&ft){g.\u0275\u0275nextContext();const Re=g.\u0275\u0275reference(1);g.\u0275\u0275advance(1),g.\u0275\u0275attribute("aria-expanded",Re.isExpanded("settings")),g.\u0275\u0275advance(1),g.\u0275\u0275textInterpolate1(" ",g.\u0275\u0275pipeBind1(3,4,"admin.access-control.bulk-access-settings.header")," "),g.\u0275\u0275advance(4),g.\u0275\u0275property("ngIf",Re.isExpanded("settings")),g.\u0275\u0275advance(1),g.\u0275\u0275property("ngIf",!Re.isExpanded("settings"))}}function cr(ft,_n){1&ft&&g.\u0275\u0275element(0,"ds-access-control-form-container",13,14),2&ft&&g.\u0275\u0275property("showSubmit",!1)}let Qr=(()=>{class ft{getValue(){return this.controlForm.getFormValue()}reset(){this.controlForm.reset()}}return ft.\u0275fac=function(Re){return new(Re||ft)},ft.\u0275cmp=g.\u0275\u0275defineComponent({type:ft,selectors:[["ds-bulk-access-settings"]],viewQuery:function(Re,Ye){if(1&Re&&g.\u0275\u0275viewQuery(rr,5),2&Re){let jt;g.\u0275\u0275queryRefresh(jt=g.\u0275\u0275loadQuery())&&(Ye.controlForm=jt.first)}},exportAs:["dsBulkSettings"],decls:5,vars:2,consts:[[3,"activeIds"],["acc","ngbAccordion"],[3,"id"],["ngbPanelHeader",""],["ngbPanelContent",""],["ngbPanelToggle","","data-test","settings",1,"w-100","d-flex","gap-3","justify-content-between","collapse-toggle",3,"click"],["type","button","aria-controls","bulk-access-settings-panel-content",1,"btn","btn-link","p-0",3,"click"],[1,"text-right","d-flex","gap-2"],[1,"d-flex","my-auto"],["class","fas fa-chevron-up fa-fw",4,"ngIf"],["class","fas fa-chevron-down fa-fw",4,"ngIf"],[1,"fas","fa-chevron-up","fa-fw"],[1,"fas","fa-chevron-down","fa-fw"],["id","bulk-access-settings-panel-content",3,"showSubmit"],["dsAccessControlForm",""]],template:function(Re,Ye){1&Re&&(g.\u0275\u0275elementStart(0,"ngb-accordion",0,1)(2,"ngb-panel",2),g.\u0275\u0275template(3,Xn,8,6,"ng-template",3),g.\u0275\u0275template(4,cr,2,1,"ng-template",4),g.\u0275\u0275elementEnd()()),2&Re&&(g.\u0275\u0275property("activeIds","settings"),g.\u0275\u0275advance(2),g.\u0275\u0275property("id","settings"))},dependencies:[Y.O5,V.gY,V.Gk,V.gW,V.k9,Rr.x,B.X$]}),ft})();var Xr=e(68301),wr=e(51117),ui=e(14292),Nr=e(36872),ii=e(58577),fi=e(91538),sr=e(33413),Ai=e(30236),Wr=e(28648),oi=e(73579);function Gi(ft,_n){1&ft&&g.\u0275\u0275element(0,"span",11)}function Ri(ft,_n){1&ft&&g.\u0275\u0275element(0,"span",12)}function Yi(ft,_n){if(1&ft){const Re=g.\u0275\u0275getCurrentView();g.\u0275\u0275elementStart(0,"div",5),g.\u0275\u0275listener("click",function(){g.\u0275\u0275restoreView(Re),g.\u0275\u0275nextContext();const jt=g.\u0275\u0275reference(1);
1return g.\u0275\u0275resetView(jt.toggle("browse"))}),g.\u0275\u0275elementStart(1,"button",6),g.\u0275\u0275listener("click",function(jt){return jt.preventDefault()}),g.\u0275\u0275text(2),g.\u0275\u0275pipe(3,"translate"),g.\u0275\u0275elementEnd(),g.\u0275\u0275elementStart(4,"div",7)(5,"div",8),g.\u0275\u0275template(6,Gi,1,0,"span",9),g.\u0275\u0275template(7,Ri,1,0,"span",10),g.\u0275\u0275elementEnd()()()}if(2&ft){g.\u0275\u0275nextContext();const Re=g.\u0275\u0275reference(1);g.\u0275\u0275advance(1),g.\u0275\u0275attribute("aria-expanded",Re.isExpanded("browse")),g.\u0275\u0275advance(1),g.\u0275\u0275textInterpolate1(" ",g.\u0275\u0275pipeBind1(3,4,"admin.access-control.bulk-access-browse.header")," "),g.\u0275\u0275advance(4),g.\u0275\u0275property("ngIf",Re.isExpanded("browse")),g.\u0275\u0275advance(1),g.\u0275\u0275property("ngIf",!Re.isExpanded("browse"))}}const ut=function(ft){return{repeatable:!0,listId:ft}};function tn(ft,_n){if(1&ft&&(g.\u0275\u0275elementStart(0,"div",20),g.\u0275\u0275element(1,"ds-themed-search",21),g.\u0275\u0275elementEnd()),2&ft){const Re=g.\u0275\u0275nextContext(2);g.\u0275\u0275advance(1),g.\u0275\u0275property("configuration","administrativeBulkAccess")("selectable",!0)("selectionConfig",g.\u0275\u0275pureFunction1(4,ut,Re.listId))("showThumbnails",!1)}}function Gt(ft,_n){if(1&ft&&(g.\u0275\u0275elementStart(0,"li",26),g.\u0275\u0275pipe(1,"dsBrowserOnly"),g.\u0275\u0275element(2,"ds-selectable-list-item-control",27)(3,"ds-listable-object-component-loader",28),g.\u0275\u0275elementEnd()),2&ft){const Re=_n.$implicit,Ye=_n.index,jt=g.\u0275\u0275nextContext(4);g.\u0275\u0275attribute("data-test",g.\u0275\u0275pipeBind1(1,9,"list-object")),g.\u0275\u0275advance(2),g.\u0275\u0275property("index",Ye)("object",Re)("selectionConfig",g.\u0275\u0275pureFunction1(11,ut,jt.listId)),g.\u0275\u0275advance(1),g.\u0275\u0275property("listID",jt.listId)("index",Ye)("object",Re)("showThumbnails",!1)("viewMode","list")}}const dn=function(ft,_n,Re){return{itemsPerPage:ft,currentPage:_n,totalItems:Re}};function gn(ft,_n){if(1&ft&&(g.\u0275\u0275elementStart(0,"ul",24),g.\u0275\u0275template(1,Gt,4,13,"li",25),g.\u0275\u0275pipe(2,"paginate"),g.\u0275\u0275pipe(3,"async"),g.\u0275\u0275pipe(4,"async"),g.\u0275\u0275pipe(5,"async"),g.\u0275\u0275pipe(6,"async"),g.\u0275\u0275elementEnd()),2&ft){const Re=g.\u0275\u0275nextContext(3);let Ye;g.\u0275\u0275advance(1),g.\u0275\u0275property("ngForOf",g.\u0275\u0275pipeBind2(2,1,null==(Ye=g.\u0275\u0275pipeBind1(3,4,Re.objectsSelected$))||null==Ye.payload?null:Ye.payload.page,g.\u0275\u0275pureFunction3(12,dn,g.\u0275\u0275pipeBind1(4,6,Re.paginationOptions$).pageSize,g.\u0275\u0275pipeBind1(5,8,Re.paginationOptions$).currentPage,null==(Ye=g.\u0275\u0275pipeBind1(6,10,Re.objectsSelected$))||null==Ye.payload?null:Ye.payload.page.length)))}}function An(ft,_n){if(1&ft){const Re=g.\u0275\u0275getCurrentView();g.\u0275\u0275elementStart(0,"ds-pagination",22),g.\u0275\u0275listener("prev",function(){g.\u0275\u0275restoreView(Re);const jt=g.\u0275\u0275nextContext(2);return g.\u0275\u0275resetView(jt.pagePrev())})("next",function(){g.\u0275\u0275restoreView(Re);const jt=g.\u0275\u0275nextContext(2);return g.\u0275\u0275resetView(jt.pageNext())}),g.\u0275\u0275pipe(1,"async"),g.\u0275\u0275pipe(2,"async"),g.\u0275\u0275pipe(3,"async"),g.\u0275\u0275template(4,gn,7,16,"ul",23),g.\u0275\u0275pipe(5,"async"),g.\u0275\u0275elementEnd()}if(2&ft){const Re=g.\u0275\u0275nextContext(2);let Ye,jt;g.\u0275\u0275property("paginationOptions",g.\u0275\u0275pipeBind1(1,5,Re.paginationOptions$))("collectionSize",null==(Ye=g.\u0275\u0275pipeBind1(2,7,Re.objectsSelected$))||null==Ye.payload?null:Ye.payload.totalElements)("objects",g.\u0275\u0275pipeBind1(3,9,Re.objectsSelected$))("showPaginator",!1),g.\u0275\u0275advance(4),g.\u0275\u0275property("ngIf",null==(jt=g.\u0275\u0275pipeBind1(5,11,Re.objectsSelected$))?null:jt.hasSucceeded)}}const Qn=function(ft){return{number:ft}};
1function Cr(ft,_n){if(1&ft){const Re=g.\u0275\u0275getCurrentView();g.\u0275\u0275elementStart(0,"div",13)(1,"ul",14,15),g.\u0275\u0275listener("activeIdChange",function(jt){g.\u0275\u0275restoreView(Re);const Pn=g.\u0275\u0275nextContext();return g.\u0275\u0275resetView(Pn.activateId=jt)}),g.\u0275\u0275elementStart(3,"li",16)(4,"a",17),g.\u0275\u0275text(5),g.\u0275\u0275pipe(6,"translate"),g.\u0275\u0275elementEnd(),g.\u0275\u0275template(7,tn,2,6,"ng-template",18),g.\u0275\u0275elementEnd(),g.\u0275\u0275elementStart(8,"li",16)(9,"a",17),g.\u0275\u0275text(10),g.\u0275\u0275pipe(11,"translate"),g.\u0275\u0275pipe(12,"async"),g.\u0275\u0275pipe(13,"async"),g.\u0275\u0275elementEnd(),g.\u0275\u0275template(14,An,6,13,"ng-template",18),g.\u0275\u0275elementEnd()(),g.\u0275\u0275element(15,"div",19),g.\u0275\u0275elementEnd()}if(2&ft){const Re=g.\u0275\u0275reference(2),Ye=g.\u0275\u0275nextContext();let jt;g.\u0275\u0275advance(1),g.\u0275\u0275property("activeId",Ye.activateId),g.\u0275\u0275advance(2),g.\u0275\u0275property("ngbNavItem","search"),g.\u0275\u0275advance(2),g.\u0275\u0275textInterpolate(g.\u0275\u0275pipeBind1(6,6,"admin.access-control.bulk-access-browse.search.header")),g.\u0275\u0275advance(3),g.\u0275\u0275property("ngbNavItem","selected"),g.\u0275\u0275advance(2),g.\u0275\u0275textInterpolate1(" ",g.\u0275\u0275pipeBind2(11,8,"admin.access-control.bulk-access-browse.selected.header",g.\u0275\u0275pureFunction1(15,Qn,null!=(jt=g.\u0275\u0275pipeBind1(12,11,Ye.objectsSelected$))&&null!=jt.payload&&jt.payload.totalElements?null==(jt=g.\u0275\u0275pipeBind1(13,13,Ye.objectsSelected$))||null==jt.payload?null:jt.payload.totalElements:"0"))," "),g.\u0275\u0275advance(5),g.\u0275\u0275property("ngbNavOutlet",Re)}}let mr=(()=>{class ft{constructor(Re){this.selectableListService=Re,this.activateId="search",this.objectsSelected$=new n.X(null),this.paginationOptions$=new n.X(Object.assign(new _.r,{id:"bas",pageSize:5,currentPage:1})),this.subs=[]}ngOnInit(){this.subs.push(this.selectableListService.getSelectableList(this.listId).pipe((0,ur.x)(),(0,d.U)(Re=>this.generatePaginatedListBySelectedElements(Re))).subscribe(this.objectsSelected$))}pageNext(){this.paginationOptions$.next(Object.assign(new _.r,this.paginationOptions$.value,{currentPage:this.paginationOptions$.value.currentPage+1}))}pagePrev(){this.paginationOptions$.next(Object.assign(new _.r,this.paginationOptions$.value,{currentPage:this.paginationOptions$.value.currentPage-1}))}calculatePageCount(Re,Ye=0){return Ye<Re?1:Math.ceil(Ye/Re)}generatePaginatedListBySelectedElements(Re){const Ye=new D.S({elementsPerPage:this.paginationOptions$.value.pageSize,totalElements:Re?.selection.length,totalPages:this.calculatePageCount(this.paginationOptions$.value.pageSize,Re?.selection.length),currentPage:this.paginationOptions$.value.currentPage});return Ye.currentPage>Ye.totalPages&&(Ye.currentPage=Ye.totalPages,this.paginationOptions$.next(Object.assign(new _.r,this.paginationOptions$.value,{currentPage:Ye.currentPage}))),(0,ii.AC)((0,a.b)(Ye,Re?.selection||[]))}ngOnDestroy(){this.subs.filter(Re=>(0,h.Uh)(Re)).forEach(Re=>Re.unsubscribe()),this.selectableListService.deselectAll(this.listId)}}return ft.\u0275fac=function(Re){return new(Re||ft)(g.\u0275\u0275directiveInject(wr.w))},ft.\u0275cmp=g.\u0275\u0275defineComponent({type:ft,selectors:[["ds-bulk-access-browse"]],inputs:{listId:"listId"},features:[g.\u0275\u0275ProvidersFeature([{provide:ui.SEARCH_CONFIG_SERVICE,useClass:Nr.U}])],decls:5,vars:2,consts:[[3,"activeIds"],["acc","ngbAccordion"],[3,"id"],["ngbPanelHeader",""],["ngbPanelContent",""],["ngbPanelToggle","","data-test","browse",1,"w-100","d-flex","gap-3","justify-content-between","collapse-toggle",3,"click"],["type","button","aria-controls","bulk-access-browse-panel-content",1,"btn","btn-link","p-0",3,"click"],[1,"text-right","d-flex","gap-2"],[1,"d-flex","my-auto"],["class","fas fa-chevron-up fa-fw",4,"ngIf"],["class","fas fa-chevron-down fa-fw",4,"ngIf"],[1,"fas","fa-chevron-up","fa-fw"],[1,"fas","fa-chevron-down","fa-fw"],["id","bulk-access-browse-panel-content"],["ngbNav","",1,"nav-pills",3,"activeId","activeIdChange"],["nav","ngbNav"],["role","presentation",3,"ngbNavItem"],["ngbNavLink",""],["ngbNavContent",""],[1,"mt-5",3,"ngbNavOutlet"],[1,"mx-n3"],[3,"configuration","selectable","selectionConfig","showThumbnails"],[3,"paginationOptions","collectionSize","objects","showPaginator","prev","next"],["class","list-unstyled ml-4",4,"ngIf"],[1,"list-unstyled","ml-4"],["class","mt-4 mb-4 d-flex",4,"ngFor","ngForOf"],[1,"mt-4","mb-4","d-flex"],[3,"index","object","selectionConfig"],[3,"listID","index","object","showThumbnails","viewMode"]],template:function(Re,Ye){1&Re&&(g.\u0275\u0275elementStart(0,"ngb-accordion",0,1)(2,"ngb-panel",2),g.\u0275\u0275template(3,Yi,8,6,"ng-template",3),g.\u0275\u0275template(4,Cr,16,17,"ng-template",4),g.\u0275\u0275elementEnd()()),2&Re&&(g.\u0275\u0275property("activeIds","browse"),g.\u0275\u0275advance(2),g.\u0275\u0275property("id","browse"))},dependencies:[Y.sg,Y.O5,V.uN,V.Pz,V.nv,V.Vx,V.tO,te.Q,fi.p,sr._,V.gY,V.Gk,V.gW,V.k9,Ai.l,Y.Ov,Wr._s,oi.g,B.X$]}),ft})();const Fr=["dsBulkSettings"];let Gn=(()=>{class ft{constructor(Re,Ye){this.bulkAccessControlService=Re,this.selectableListService=Ye,this.listId="bulk-access-list",this.objectsSelected$=new n.X([]),this.subs=[]}ngOnInit(){this.subs.push(this.selectableListService.getSelectableList(this.listId).pipe((0,ur.x)(),(0,d.U)(Re=>this.generateIdListBySelectedElements(Re))).subscribe(this.objectsSelected$))}canExport(){return this.objectsSelected$.value?.length>0}reset(){this.settings.reset()}submit(){const Re=this.settings.getValue(),Ye=Re.bitstream,jt=Re.item,{file:Pn}=this.bulkAccessControlService.createPayloadFile({bitstreamAccess:Ye,itemAccess:jt,state:Re.state});this.bulkAccessControlService.executeScript(this.objectsSelected$.value||[],Pn).subscribe()}generateIdListBySelectedElements(Re){return Re?.selection?.map(Ye=>Ye.indexableObject.uuid)}}return ft.\u0275fac=function(Re){return new(Re||ft)(g.\u0275\u0275directiveInject(Xr.h),g.\u0275\u0275directiveInject(wr.w))},ft.\u0275cmp=g.\u0275\u0275defineComponent({type:ft,selectors:[["ds-bulk-access"]],viewQuery:function(Re,Ye){if(1&Re&&g.\u0275\u0275viewQuery(Fr,5),2&Re){let jt;g.\u0275\u0275queryRefresh(jt=g.\u0275\u0275loadQuery())&&(Ye.settings=jt.first)}},decls:16,vars:11,consts:[[1,"container"],[3,"listId"],[1,"clearfix","mb
1-3"],["dsBulkSettings",""],[1,"d-flex","justify-content-end"],[1,"btn","btn-outline-primary","mr-3",3,"click"],[1,"btn","btn-primary",3,"dsBtnDisabled","click"]],template:function(Re,Ye){1&Re&&(g.\u0275\u0275elementStart(0,"div",0)(1,"h1"),g.\u0275\u0275text(2),g.\u0275\u0275pipe(3,"translate"),g.\u0275\u0275elementEnd(),g.\u0275\u0275element(4,"ds-bulk-access-browse",1)(5,"div",2)(6,"ds-bulk-access-settings",null,3)(8,"hr"),g.\u0275\u0275elementStart(9,"div",4)(10,"button",5),g.\u0275\u0275listener("click",function(){return Ye.reset()}),g.\u0275\u0275text(11),g.\u0275\u0275pipe(12,"translate"),g.\u0275\u0275elementEnd(),g.\u0275\u0275elementStart(13,"button",6),g.\u0275\u0275listener("click",function(){return Ye.submit()}),g.\u0275\u0275text(14),g.\u0275\u0275pipe(15,"translate"),g.\u0275\u0275elementEnd()()()),2&Re&&(g.\u0275\u0275advance(2),g.\u0275\u0275textInterpolate(g.\u0275\u0275pipeBind1(3,5,"admin.access-control.bulk-access.title")),g.\u0275\u0275advance(2),g.\u0275\u0275property("listId",Ye.listId),g.\u0275\u0275advance(7),g.\u0275\u0275textInterpolate1(" ",g.\u0275\u0275pipeBind1(12,7,"access-control-cancel")," "),g.\u0275\u0275advance(2),g.\u0275\u0275property("dsBtnDisabled",!Ye.canExport()),g.\u0275\u0275advance(1),g.\u0275\u0275textInterpolate1(" ",g.\u0275\u0275pipeBind1(15,9,"access-control-execute")," "))},dependencies:[Zt.v,mr,Qr,B.X$]}),ft})();var qn=e(28746),wi=e(36146);class mi{static createValidator(_n){return Re=>_n.getEPersonByEmail(Re.value).pipe((0,b.xw)(),(0,d.U)(Ye=>Ye.payload?{emailTaken:!0}:null))}}var jr=e(93459),Ao=e(59860);function vo(ft,_n){1&ft&&g.\u0275\u0275element(0,"div")}function qi(ft,_n){if(1&ft&&(g.\u0275\u0275elementStart(0,"h1",14),g.\u0275\u0275text(1),g.\u0275\u0275pipe(2,"translate"),g.\u0275\u0275elementEnd()),2&ft){const Re=g.\u0275\u0275nextContext();g.\u0275\u0275advance(1),g.\u0275\u0275textInterpolate(g.\u0275\u0275pipeBind1(2,1,Re.messagePrefix+".create"))}}function ri(ft,_n){if(1&ft&&(g.\u0275\u0275elementStart(0,"h1",14),g.\u0275\u0275text(1),g.\u0275\u0275pipe(2,"translate"),g.\u0275\u0275elementEnd()),2&ft){const Re=g.\u0275\u0275nextContext();g.\u0275\u0275advance(1),g.\u0275\u0275textInterpolate(g.\u0275\u0275pipeBind1(2,1,Re.messagePrefix+".edit"))}}function Ko(ft,_n){if(1&ft){const Re=g.\u0275\u0275getCurrentView();g.\u0275\u0275elementStart(0,"div",15)(1,"button",16),g.\u0275\u0275listener("click",function(){g.\u0275\u0275restoreView(Re);const jt=g.\u0275\u0275nextContext();return g.\u0275\u0275resetView(jt.resetPassword())}),g.\u0275\u0275pipe(2,"async"),g.\u0275\u0275element(3,"i",17),g.\u0275\u0275text(4),g.\u0275\u0275pipe(5,"translate"),g.\u0275\u0275elementEnd()()}if(2&ft){const Re=g.\u0275\u0275nextContext();g.\u0275\u0275advance(1),g.\u0275\u0275property("dsBtnDisabled",!g.\u0275\u0275pipeBind1(2,2,Re.canReset$)),g.\u0275\u0275advance(3),g.\u0275\u0275textInterpolate1(" ",g.\u0275\u0275pipeBind1(5,4,"admin.access-control.epeople.actions.reset")," ")}}function Eo(ft,_n){if(1&ft){const Re=g.\u0275\u0275getCurrentView();g.\u0275\u0275elementStart(0,"button",19),g.\u0275\u0275listener("click",function(){g.\u0275\u0275restoreView(Re);const jt=g.\u0275\u0275nextContext(2);return g.\u0275\u0275resetView(jt.impersonate())}),g.\u0275\u0275element(1,"i",20),g.\u0275\u0275text(2),g.\u0275\u0275pipe(3,"translate"),g.\u0275\u0275elementEnd()}2&ft&&(g.\u0275\u0275advance(2),g.\u0275\u0275textInterpolate1(" ",g.\u0275\u0275pipeBind1(3,1,"admin.access-control.epeople.actions.impersonate")," "))}function Vo(ft,_n){if(1&ft){const Re=g.\u0275\u0275getCurrentView();g.\u0275\u0275elementStart(0,"button",19),g.\u0275\u0275listener("click",function(){g.\u0275\u0275restoreView(Re);const jt=g.\u0275\u0275nextContext(2);return g.\u0275\u0275resetView(jt.stopImpersonating())}),g.\u0275\u0275element(1,"i",20),g.\u0275\u0275text(2),g.\u0275\u0275pipe(3,"translate"),g.\u0275\u0275elementEnd()}2&ft&&(g.\u0275\u0275advance(2),g.\u0275\u0275textInterpolate1(" ",g.\u0275\u0275pipeBind1(3,1,"admin.access-control.epeople.actions.stop-impersonating")," "))}function eo(ft,_n){if(1&ft&&(g.\u0275\u0275elementStart(0,"div",15),g.\u0275\u0275template(1,Eo,4,3,"button",18),g.\u0275\u0275template(2,Vo,4,3,"button",18),g.\u0275\u0275elementEnd()),2&ft){const Re=g.\u0275\u0275nextContext();g.\u0275\u0275advance(1),g.\u0275\u0275property("ngIf",!Re.isImpersonated),g.\u0275\u0275advance(1),g.\u0275\u0275property("ngIf",Re.isImpersonated)}}
1function cs(ft,_n){if(1&ft){const Re=g.\u0275\u0275getCurrentView();g.\u0275\u0275elementStart(0,"button",21),g.\u0275\u0275listener("click",function(){g.\u0275\u0275restoreView(Re);const jt=g.\u0275\u0275nextContext();return g.\u0275\u0275resetView(jt.delete())}),g.\u0275\u0275element(1,"i",22),g.\u0275\u0275text(2),g.\u0275\u0275pipe(3,"translate"),g.\u0275\u0275elementEnd()}2&ft&&(g.\u0275\u0275advance(2),g.\u0275\u0275textInterpolate1(" ",g.\u0275\u0275pipeBind1(3,1,"admin.access-control.epeople.actions.delete")," "))}function $o(ft,_n){1&ft&&g.\u0275\u0275element(0,"ds-themed-loading",23),2&ft&&g.\u0275\u0275property("showMessage",!1)}function yo(ft,_n){1&ft&&g.\u0275\u0275element(0,"ds-themed-loading",23),2&ft&&g.\u0275\u0275property("showMessage",!1)}const _i=function(ft){return[ft]};function Ho(ft,_n){if(1&ft){const Re=g.\u0275\u0275getCurrentView();g.\u0275\u0275elementStart(0,"tr")(1,"td",31),g.\u0275\u0275text(2),g.\u0275\u0275elementEnd(),g.\u0275\u0275elementStart(3,"td",31)(4,"a",32),g.\u0275\u0275listener("click",function(){const Pn=g.\u0275\u0275restoreView(Re).$implicit,pr=g.\u0275\u0275nextContext(3);return g.\u0275\u0275resetView(pr.groupsDataService.startEditingNewGroup(Pn))}),g.\u0275\u0275text(5),g.\u0275\u0275elementEnd()(),g.\u0275\u0275elementStart(6,"td",31),g.\u0275\u0275text(7),g.\u0275\u0275pipe(8,"async"),g.\u0275\u0275elementEnd()()}if(2&ft){const Re=_n.$implicit,Ye=g.\u0275\u0275nextContext(3);let jt;g.\u0275\u0275advance(2),g.\u0275\u0275textInterpolate(Re.id),g.\u0275\u0275advance(2),g.\u0275\u0275property("routerLink",g.\u0275\u0275pureFunction1(6,_i,Ye.groupsDataService.getGroupEditPageRouterLink(Re))),g.\u0275\u0275advance(1),g.\u0275\u0275textInterpolate1(" ",Ye.dsoNameService.getName(Re)," "),g.\u0275\u0275advance(2),g.\u0275\u0275textInterpolate1(" ",Ye.dsoNameService.getName(null==(jt=g.\u0275\u0275pipeBind1(8,4,Re.object))?null:jt.payload)," ")}}function _s(ft,_n){if(1&ft){const Re=g.\u0275\u0275getCurrentView();g.\u0275\u0275elementStart(0,"ds-pagination",26),g.\u0275\u0275listener("pageChange",function(jt){g.\u0275\u0275restoreView(Re);const Pn=g.\u0275\u0275nextContext(2);return g.\u0275\u0275resetView(Pn.onPageChange(jt))}),g.\u0275\u0275pipe(1,"async"),g.\u0275\u0275elementStart(2,"div",27)(3,"table",28)(4,"thead")(5,"tr")(6,"th",29),g.\u0275\u0275text(7),g.\u0275\u0275pipe(8,"translate"),g.\u0275\u0275elementEnd(),g.\u0275\u0275elementStart(9,"th",29),g.\u0275\u0275text(10),g.\u0275\u0275pipe(11,"translate"),g.\u0275\u0275elementEnd(),g.\u0275\u0275elementStart(12,"th",29),g.\u0275\u0275text(13),g.\u0275\u0275pipe(14,"translate"),g.\u0275\u0275elementEnd()()(),g.\u0275\u0275elementStart(15,"tbody"),g.\u0275\u0275template(16,Ho,9,8,"tr",30),g.\u0275\u0275pipe(17,"async"),g.\u0275\u0275elementEnd()()()()}if(2&ft){const Re=g.\u0275\u0275nextContext(2);let Ye,jt;g.\u0275\u0275property("paginationOptions",Re.config)("collectionSize",null==(Ye=g.\u0275\u0275pipeBind1(1,8,Re.groups))||null==Ye.payload?null:Ye.payload.totalElements)("hideGear",!0)("hidePagerWhenSinglePage",!0),g.\u0275\u0275advance(7),g.\u0275\u0275textInterpolate(g.\u0275\u0275pipeBind1(8,10,Re.messagePrefix+".table.id")),g.\u0275\u0275advance(3),g.\u0275\u0275textInterpolate(g.\u0275\u0275pipeBind1(11,12,Re.messagePrefix+".table.name")),g.\u0275\u0275advance(3),g.\u0275\u0275textInterpolate(g.\u0275\u0275pipeBind1(14,14,Re.messagePrefix+".table.collectionOrCommunity")),g.\u0275\u0275advance(3),g.\u0275\u0275property("ngForOf",null==(jt=g.\u0275\u0275pipeBind1(17,16,Re.groups))||null==jt.payload?null:jt.payload.page)}}function ho(ft,_n){if(1&ft&&(g.\u0275\u0275elementStart(0,"div",33)(1,"div"),g.\u0275\u0275text(2),g.\u0275\u0275pipe(3,"translate"),g.\u0275\u0275elementEnd(),g.\u0275\u0275elementStart(4,"div")(5,"button",34),g.\u0275\u0275text(6),g.\u0275\u0275pipe(7,"translate"),g.\u0275\u0275elementEnd()()()),2&ft){const Re=g.\u0275\u0275nextContext(2);g.\u0275\u0275advance(2),g.\u0275\u0275textInterpolate(g.\u0275\u0275pipeBind1(3,3,Re.messagePrefix+".memberOfNoGroups")),g.\u0275\u0275advance(3),g.\u0275\u0275property("routerLink",g.\u0275\u0275pureFunction1(7,_i,Re.groupsDataService.getGroupRegistryRouterLink())),g.\u0275\u0275advance(1),g.\u0275\u0275textInterpolate(g.\u0275\u0275pipeBind1(7,5,Re.messagePrefix+".goToGroups"))}}
1function to(ft,_n){if(1&ft&&(g.\u0275\u0275elementStart(0,"div")(1,"h2"),g.\u0275\u0275text(2),g.\u0275\u0275pipe(3,"translate"),g.\u0275\u0275elementEnd(),g.\u0275\u0275template(4,yo,1,1,"ds-themed-loading",12),g.\u0275\u0275pipe(5,"async"),g.\u0275\u0275template(6,_s,18,18,"ds-pagination",24),g.\u0275\u0275pipe(7,"async"),g.\u0275\u0275template(8,ho,8,9,"div",25),g.\u0275\u0275pipe(9,"async"),g.\u0275\u0275elementEnd()),2&ft){const Re=g.\u0275\u0275nextContext();let Ye,jt;g.\u0275\u0275advance(2),g.\u0275\u0275textInterpolate(g.\u0275\u0275pipeBind1(3,4,Re.messagePrefix+".groupsEPersonIsMemberOf")),g.\u0275\u0275advance(2),g.\u0275\u0275property("ngIf",!g.\u0275\u0275pipeBind1(5,6,Re.groups)),g.\u0275\u0275advance(2),g.\u0275\u0275property("ngIf",(null==(Ye=g.\u0275\u0275pipeBind1(7,8,Re.groups))||null==Ye.payload?null:Ye.payload.totalElements)>0),g.\u0275\u0275advance(2),g.\u0275\u0275property("ngIf",0==(null==(jt=g.\u0275\u0275pipeBind1(9,10,Re.groups))||null==jt.payload?null:jt.payload.totalElements))}}let ds=(()=>{class ft{constructor(Re,Ye,jt,Pn,pr,pi,xi,bi,Hi,Fi,si,Do,Si,Ro,ao){this.changeDetectorRef=Re,this.epersonService=Ye,this.groupsDataService=jt,this.formBuilderService=Pn,this.translateService=pr,this.notificationsService=pi,this.authService=xi,this.authorizationService=bi,this.modalService=Hi,this.paginationService=Fi,this.requestService=si,this.epersonRegistrationService=Do,this.dsoNameService=Si,this.route=Ro,this.router=ao,this.labelPrefix="admin.access-control.epeople.form.",this.formId="eperson-form",this.messagePrefix="admin.access-control.epeople.form",this.formLayout={firstName:{grid:{host:"row"}},lastName:{grid:{host:"row"}},email:{grid:{host:"row"}},canLogIn:{grid:{host:"col col-sm-6 d-inline-block"}},requireCertificate:{grid:{host:"col col-sm-6 d-inline-block"}}},this.submitForm=new g.EventEmitter,this.cancelForm=new g.EventEmitter,this.subs=[],this.config=Object.assign(new _.r,{id:"gem",pageSize:5,currentPage:1}),this.isImpersonated=!1,this.displayResetPassword=!1,this.submitLabel="form.create"}ngOnInit(){this.activeEPerson$=this.epersonService.getActiveEPerson(),this.subs.push(this.activeEPerson$.subscribe(Re=>{this.epersonInitial=Re,(0,h.Uh)(Re)&&(this.isImpersonated=this.authService.isImpersonatingUser(Re.id),this.displayResetPassword=!0,this.submitLabel="form.submit")})),this.initialisePage()}initialisePage(){this.route.snapshot.params.id&&this.subs.push(this.epersonService.findById(this.route.snapshot.params.id).subscribe(Re=>{this.epersonService.editEPerson(Re.payload)})),this.firstName=new ne.b1u({id:"firstName",label:this.translateService.instant(`${this.messagePrefix}.firstName`),name:"firstName",validators:{required:null},required:!0}),this.lastName=new ne.b1u({id:"lastName",label:this.translateService.instant(`${this.messagePrefix}.lastName`),name:"lastName",validators:{required:null},required:!0}),this.email=new ne.b1u({id:"email",label:this.translateService.instant(`${this.messagePrefix}.email`),name:"email",validators:{required:null,pattern:"^[a-z0-9._%+-]+@[a-z0-9.-]+\\.[a-z]{2,4}$"},required:!0,errorMessages:{emailTaken:"error.validation.emailTaken",pattern:"error.validation.NotValidEmail"},hint:this.translateService.instant(`${this.messagePrefix}.emailHint`)}),this.canLogIn=new ne.dwp({id:"canLogIn",label:this.translateService.instant(`${this.messagePrefix}.canLogIn`),name:"canLogIn",value:null==this.epersonInitial||this.epersonInitial.canLogIn}),this.requireCertificate=new ne.dwp({id:"requireCertificate",label:this.translateService.instant(`${this.messagePrefix}.requireCertificate`),name:"requireCertificate",value:null!=this.epersonInitial&&this.epersonInitial.requireCertificate}),this.formModel=[this.firstName,this.lastName,this.email,this.canLogIn,this.requireCertificate],this.formGroup=this.formBuilderService.createFormGroup(this.formModel),this.subs.push(this.activeEPerson$.subscribe(Re=>{null!=Re&&(this.groups=this.groupsDataService.findListByHref(Re._links.groups.href,{currentPage:1,elementsPerPage:this.config.pageSize},void 0,void 0,(0,it.l)("object"))),this.formGroup.patchValue({firstName:null!=Re?Re.f
1irstMetadataValue("eperson.firstname"):"",lastName:null!=Re?Re.firstMetadataValue("eperson.lastname"):"",email:null!=Re?Re.email:"",canLogIn:null==Re||Re.canLogIn,requireCertificate:null!=Re&&Re.requireCertificate}),null===Re&&this.formGroup.controls.email&&(this.formGroup.controls.email.setAsyncValidators(mi.createValidator(this.epersonService)),this.emailValueChangeSubscribe=this.email.valueChanges.pipe((0,q.b)(300)).subscribe(()=>{this.changeDetectorRef.detectChanges()}))})),this.groups=this.activeEPerson$.pipe((0,i.w)(Re=>(0,o.a)([(0,Wt.of)(Re),this.paginationService.getFindListOptions(this.config.id,{currentPage:1,elementsPerPage:this.config.pageSize})])),(0,i.w)(([Re,Ye])=>null!=Re?this.groupsDataService.findListByHref(Re._links.groups.href,Ye,!0,!0,(0,it.l)("object")):(0,Wt.of)(void 0))),this.canImpersonate$=this.activeEPerson$.pipe((0,i.w)(Re=>(0,h.Uh)(Re)?this.authorizationService.isAuthorized(E.i.LoginOnBehalfOf,Re.self):(0,Wt.of)(!1))),this.canDelete$=this.activeEPerson$.pipe((0,i.w)(Re=>this.authorizationService.isAuthorized(E.i.CanDelete,(0,h.Uh)(Re)?Re.self:void 0))),this.canReset$=(0,Wt.of)(!0)}onCancel(){this.epersonService.cancelEditEPerson(),this.cancelForm.emit(),this.router.navigate([(0,I.b6)()])}onSubmit(){this.activeEPerson$.pipe((0,r.q)(1)).subscribe(Re=>{const Ye={metadata:{"eperson.firstname":[{value:this.firstName.value}],"eperson.lastname":[{value:this.lastName.value}]},email:this.email.value,canLogIn:this.canLogIn.value,requireCertificate:this.requireCertificate.value};null==Re?this.createNewEPerson(Ye):this.editEPerson(Re,Ye)})}createNewEPerson(Re){const Ye=Object.assign(new wi.T,Re);this.epersonService.create(Ye).pipe((0,b.hC)()).subscribe(Pn=>{Pn.hasSucceeded?(this.notificationsService.success(this.translateService.get(this.labelPrefix+"notification.created.success",{name:this.dsoNameService.getName(Ye)})),this.submitForm.emit(Ye),this.epersonService.clearEPersonRequests(),this.router.navigateByUrl((0,I.b6)())):(this.notificationsService.error(this.translateService.get(this.labelPrefix+"notification.created.failure",{name:this.dsoNameService.getName(Ye)})),this.cancelForm.emit())}),this.showNotificationIfEmailInUse(Ye,"created")}editEPerson(Re,Ye){const jt=Object.assign(new wi.T,{id:Re.id,metadata:{"eperson.firstname":[{value:this.firstName.value?this.firstName.value:Re.firstMetadataValue("eperson.firstname")}],"eperson.lastname":[{value:this.lastName.value?this.lastName.value:Re.firstMetadataValue("eperson.lastname")}]},email:(0,h.Uh)(Ye.email)?Ye.email:Re.email,canLogIn:(0,h.Uh)(Ye.canLogIn)?Ye.canLogIn:Re.canLogIn,requireCertificate:(0,h.Uh)(Ye.requireCertificate)?Ye.requireCertificate:Re.requireCertificate,_links:Re._links});this.epersonService.updateEPerson(jt).pipe((0,b.hC)()).subscribe(pr=>{pr.hasSucceeded?(this.notificationsService.success(this.translateService.get(this.labelPrefix+"notification.edited.success",{name:this.dsoNameService.getName(jt)})),this.submitForm.emit(jt),this.router.navigateByUrl((0,I.b6)())):(this.notificationsService.error(this.translateService.get(this.labelPrefix+"notification.edited.failure",{name:this.dsoNameService.getName(jt)})),this.cancelForm.emit())}),null!=Ye.email&&Ye.email!==Re.email&&this.showNotificationIfEmailInUse(jt,"edited")}onPageChange(Re){this.updateGroups({currentPage:Re,elementsPerPage:this.config.pageSize})}impersonate(){this.authService.impersonate(this.epersonInitial.id),this.isImpersonated=!0}delete(){this.activeEPerson$.pipe((0,r.q)(1),(0,i.w)(Re=>{const Ye=this.modalService.open(M.Y);return Ye.componentInstance.dso=Re,Ye.componentInstance.headerLabel="confirmation-modal.delete-eperson.header",Ye.componentInstance.infoLabel="confirmation-modal.delete-eperson.info",Ye.componentInstance.cancelLabel="confirmation-modal.delete-eperson.cancel",Ye.componentInstance.confirmLabel="confirmation-modal.delete-eperson.confirm",Ye.componentInstance.brandColor="danger",Ye.componentInstance.confirmIcon="fas fa-trash",Ye.componentInstance.response.pipe((0,r.q)(1),(0,i.w)(jt=>jt&&(0,h.Uh)(Re.id)?(this.canDelete$=(0,Wt.of)(!1),this.epersonService.deleteEPerson(Re).pipe((0,b.hC)(),(0,d.U)(Pn=>({restResponse:Pn,eperson:Re})))):(0,Wt.of)(null)),(0,qn.x)(()=>this.canDelete$=(0,Wt.of)(!0)))})).subscribe(({restResponse:Re,eperson:Ye})=>{Re?.hasSucceeded?(this.notificationsService.success(this.translateService.get(this.labelPrefix+"notification.deleted.success",{name:this.dsoNameService.getName(Ye)})),this.router.navigate([(0,I.b6)()])):this.notificationsService.error(`Error occurred when trying to delete EPer
1son with id: ${Ye?.id} with code: ${Re?.statusCode} and message: ${Re?.errorMessage}`),this.cancelForm.emit()})}stopImpersonating(){this.authService.stopImpersonatingAndRefresh(),this.isImpersonated=!1}resetPassword(){(0,h.Uh)(this.epersonInitial.email)&&this.epersonRegistrationService.registerEmail(this.epersonInitial.email,null,Ao.TYPE_REQUEST_FORGOT).pipe((0,b.hC)()).subscribe(Re=>{Re.hasSucceeded?this.notificationsService.success(this.translateService.get("admin.access-control.epeople.actions.reset"),this.translateService.get("forgot-email.form.success.content",{email:this.epersonInitial.email})):this.notificationsService.error(this.translateService.get("forgot-email.form.error.head"),this.translateService.get("forgot-email.form.error.content",{email:this.epersonInitial.email}))})}ngOnDestroy(){this.subs.filter(Re=>(0,h.Uh)(Re)).forEach(Re=>Re.unsubscribe()),this.paginationService.clearPagination(this.config.id),(0,h.Uh)(this.emailValueChangeSubscribe)&&this.emailValueChangeSubscribe.unsubscribe()}showNotificationIfEmailInUse(Re,Ye){this.subs.push(this.epersonService.searchByScope("email",Re.email,{currentPage:1,elementsPerPage:0}).pipe((0,b.xw)(),(0,b.xe)()).subscribe(jt=>{jt.totalElements>0&&this.notificationsService.error(this.translateService.get(this.labelPrefix+"notification."+Ye+".failure.emailInUse",{name:this.dsoNameService.getName(Re),email:Re.email}))}))}updateGroups(Re){this.subs.push(this.activeEPerson$.subscribe(Ye=>{this.groups=this.groupsDataService.findListByHref(Ye._links.groups.href,Re)}))}}return ft.\u0275fac=function(Re){return new(Re||ft)(g.\u0275\u0275directiveInject(g.ChangeDetectorRef),g.\u0275\u0275directiveInject(p.k),g.\u0275\u0275directiveInject(Me.O),g.\u0275\u0275directiveInject(It.c),g.\u0275\u0275directiveInject(B.sK),g.\u0275\u0275directiveInject(m.T),g.\u0275\u0275directiveInject(Dn.e8),g.\u0275\u0275directiveInject(O._),g.\u0275\u0275directiveInject(V.FF),g.\u0275\u0275directiveInject(l.N),g.\u0275\u0275directiveInject(P.s),g.\u0275\u0275directiveInject(jr.m),g.\u0275\u0275directiveInject(C._),g.\u0275\u0275directiveInject(t.gz),g.\u0275\u0275directiveInject(t.F0))},ft.\u0275cmp=g.\u0275\u0275defineComponent({type:ft,selectors:[["ds-eperson-form"]],outputs:{submitForm:"submitForm",cancelForm:"cancelForm"},decls:23,vars:25,consts:[[1,"container"],[1,"group-form","row"],[1,"col-12"],[4,"ngIf","ngIfThen","ngIfElse"],["createHeader",""],["editHeader",""],[3,"formId","formModel","formGroup","formLayout","displayCancel","submitLabel","submitForm"],["before","",1,"btn-group"],["type","button",1,"btn","btn-outline-secondary",3,"click"],[1,"fas","fa-arrow-left"],["between","","class","btn-group",4,"ngIf"],["after","","class","btn btn-danger delete-button","type","button",3,"click",4,"ngIf"],[3,"showMessage",4,"ngIf"],[4,"ngIf"],[1,"border-bottom","pb-2"],["between","",1,"btn-group"],["type","button",1,"btn","btn-primary",3,"dsBtnDisabled","click"],[1,"fa","fa-key"],["class","btn btn-primary","type","button",3,"click",4,"ngIf"],["type","button",1,"btn","btn-primary",3,"click"],[1,"fa","fa-user-secret"],["after","","type","button",1,"btn","btn-danger","delete-button",3,"click"],[1,"fas","fa-trash"],[3,"showMessage"],[3,"paginationOptions","collectionSize","hideGear","hidePagerWhenSinglePage","pageChange",4,"ngIf"],["class","alert alert-info w-100 mb-2","role","alert",4,"ngIf"],[3,"paginationOptions","collectionSize","hideGear","hidePagerWhenSinglePage","pageChange"],[1,"table-responsive"],["id","groups",1,"table","table-striped","table-hover","table-bordered"],["scope","col",1,"align-middle"],[4,"ngFor","ngForOf"],[1,"align-middle"],[3,"routerLink","click"],["role","alert",1,"alert","alert-info","w-100","mb-2"],[1,"btn","btn-primary",3,"routerLink"]],template:function(Re,Ye){if(1&Re&&(g.\u0275\u0275elementStart(0,"div",0)(1,"div",1)(2,"div",2),g.\u0275\u0275template(3,vo,1,0,"div",3),g.\u0275\u0275pipe(4,"async"),g.\u0275\u0275template(5,qi,3,3,"ng-template",null,4,g.\u0275\u0275templateRefExtractor),g.\u0275\u0275template(7,ri,3,3,"ng-template",null,5,g.\u0275\u0275templateRefExtractor),g.\u0275\u0275elementStart(9,"ds-form",6),g.\u0275\u0275listener("submitForm",function(){return Ye.onSubmit()}),g.\u0275\u0275elementStart(10,"div",7)(11,"button",8),g.\u0275\u0275listener("click",function(){return Ye.onCancel()}),g.\u0275\u0275element(12,"i",9),g.\u0275\u0275text(13),g.\u0275\u0275pipe(14,"translate"),g.\u0275\u0275elementEnd()(),g.\u0275\u0275template(15,Ko,6,6,"div",10),g.\u0275\u0275template(16,eo,3,2,"div",10),g.\u0275\u0275pipe(17,"async"),g.\u0275\u0275template(18,cs,4,3,"button",11),g.\u0275\u0275pipe(19,"async"),g.\u0275\u0275elementEnd(),g.\u0275\u0275template(20,$o,1,1,"ds-themed-loading",12),g.\u0275\u0275template(21,to,10,12,"div",13),g.\u0275\u0275pipe(22,"async"),g.\u0275\u0275elementEnd()()()),2&Re){const jt=g.\u0275\u0275reference(6),Pn=g.\u0275\u0275reference(8);g.\u0275\u0275advance(3),g.\u0275\u0275property("ngIf",g.\u0275\u0275pipeBind1(4,15,Ye.activeEPerson$))("ngIfThen",Pn)("ngIfElse",jt),g.\u0275\u0275advance(6),g.\u0275\u0275property("formId",Ye.formId)("formModel",Ye.formModel)("formGroup",Ye.formGroup)("formLayout",Ye.formLayout)("displayCancel",!1)("submitLabel",Ye.submitLabel),g.\u0275\u0275advance(4),g.\u0275\u0275textInterpolate1(" ",g.\u0275\u0275pipeBind1(14,17,Ye.messagePrefix+".return")," "),g.\u0275\u0275advance(2),g.\u0275\u0275property("ngIf",Ye.displayResetPassword),g.\u0275\u0275advance(1),g.\u0275\u0275property("ngIf",g.\u0275\u0275pipeBind1(17,19,Ye.canImpersonate$)),g.\u0275\u0275advance(2),g.\u0275\u0275property("ngIf",g.\u0275\u0275pipeBind1(19,21,Ye.canDelete$)),g.\u0275\u0275advance(2),g.\u0275\u0275property("ngIf",!Ye.formGroup),g.\u0275\u0275advance(1),g.\u0275\u0275property("ngIf",g.\u0275\u0275pipeBind1(22,23,Ye.activeEPerson$))}},dependencies:[Y.sg,Y.O5,L.JL,L.sg,t.rH,X.Z,te.Q,Zt.v,Yt.U,Y.Ov,B.X$],encapsulation:2}),ft})();var Ds=e(8136),Co=e(89653);const Po=[(0,it.l)("groups")];let fo=(()=>{class ft{constructor(Re,Ye){this.ePersonService=Re,this.store=Ye}resolve(Re,Ye){const jt=this.ePersonService.findById(Re.params.id,!0,!1,...Po).pipe((0,b.hC)());return jt.subscribe(Pn=>{this.store.dispatch(new Ds.K(Ye.url,Pn.payload))}),jt}}return ft.\u0275fac=function(Re){return new(Re||ft)(g.\u0275\u0275inject(p.k),g.\u0275\u0275inject(Co.yh))},ft.\u0275prov=g.\u0275\u0275defineInjectable({token:ft,factory:ft.\u0275fac,providedIn:"root"}),ft})(),mo=(()=>{class ft{}return ft.\u0275fac=function(Re){return new(Re||ft)},ft.\u0275mod=g.\u0275\u0275defineNgModule({type:ft}),ft.\u0275inj=g.\u0275\u0275defineInjector({imports:[t.Bz.forChild([{path:I.sC,component:ie,resolve:{breadcrumb:cn.t},data:{title:"admin.access-control.epeople.title",breadcrumbKey:"admin.access-control.epeople"},canActivate:[zn.X]},{path:`${I.sC}/create`,component:ds,resolve:{breadcrumb:cn.t},data:{title:"admin.access-control.epeople.add.title",breadcrumbKey:"admin.access-control.epeople.add"},canActivate:[zn.X]},{path:`${I.sC}/:id/edit`,component:ds,resolve:{breadcrumb:cn.t,ePerson:fo},data:{title:"admin.access-control.epeople.edit.title",breadcrumbKey:"admin.access-control.epeople.edit"},canActivate:[zn.X]},{path:I.y9,component:bn,resolve:{breadcrumb:cn.t},data:{title:"admin.access-control.groups.title",breadcrumbKey:"admin.access-control.groups"},canActivate:[Jn.E]},{path:`${I.y9}/create`,component:rn,resolve:{breadcrumb:cn.t},data:{title:"admin.access-control.groups.title.addGroup",breadcrumbKey:"admin.access-control.groups.addGroup"},canActivate:[Jn.E]},{path:`${I.y9}/:groupId/edit`,component:rn,resolve:{breadcrumb:cn.t},data:{title:"admin.access-control.groups.title.singleGroup",breadcrumbKey:"admin.access-control.groups.singleGroup"},canActivate:[Rn]},{path:"bulk-access",component:Gn,resolve:{breadcrumb:cn.t},data:{title:"admin.access-control.bulk-access.title",breadcrumbKey:"admin.access-control.bulk-access"},canActivate:[zn.X]}])]}),ft})()},79642:(R,c,e)=>{"use strict";e.d(c,{$O:()=>i,FS:()=>n,io:()=>o});var t=e(79472);const n={EDIT_EPERSON:(0,t.d)("dspace/epeople-registry/EDIT_EPERSON"),CANCEL_EDIT_EPERSON:(0,t.d)("dspace/epeople-registry/CANCEL_EDIT_EPERSON")};class o{constructor(r){this.type=n.EDIT_EPERSON,this.eperson=r}}class i{constructor(){this.type=n.CANCEL_EDIT_EPERSON}}},49102:(R,c,e)=>{"use strict";e.d(c,{O:()=>k});var t=e(61135),n=e(63900),o=e(54004),i=e(95698),d=e(45061),r=e(43499),a=e(68285),p=e(46418),h=e(4177),m=e(77467),_=e(83616),v=e(92414),E=e(94650),O=e(89383),b=e(24006),M=e(34793),P=e(36895),D=e(62697),l=e(92911),C=e(25575);const I=function(G){return{name:G}},g=function(G){return["btn btn-sm",G]};function B(G,ie){if(1&G){const ne=E.\u0275\u0275getCurrentView();E.\u0275\u0275elementStart(0,"tr")(1,"td",17),E.\u0275\u0275text(2),E.\u0275\u0275elementEnd(),E.\u0275\u0275elementStart(3,"td",17)(4,"a",19),E.\u0275\u0275text(5),E.\u0275\u0275elementEnd()(),E.\u0275\u0275elementStart(6,"td",17),E.\u0275\u0275text(7),E.\u0275\u0275pipe(8,"translate"),E.\u0275\u0275element(9,"br"),E.\u0275\u0275text(10),E.\u0275\u0275pipe(11,"translate"),E.\u0275\u0275elementEnd(),E.\u0275\u0275elementStart(12,"td",17)(13,"div",20)(14,"button",21),E.\u0275\u0275listener("click",function(){const ce=E.\u0275\u0275restoreView(ne).$implicit,ye=E.\u0275\u0275nextContext(2);
1return E.\u0275\u0275resetView(ye.deleteMemberFromGroup(ce))}),E.\u0275\u0275pipe(15,"translate"),E.\u0275\u0275element(16,"i",22),E.\u0275\u0275elementEnd()()()()}if(2&G){const ne=ie.$implicit,q=E.\u0275\u0275nextContext(2);E.\u0275\u0275advance(2),E.\u0275\u0275textInterpolate(ne.id),E.\u0275\u0275advance(2),E.\u0275\u0275property("routerLink",q.getEPersonEditRoute(ne.id)),E.\u0275\u0275advance(1),E.\u0275\u0275textInterpolate1(" ",q.dsoNameService.getName(ne)," "),E.\u0275\u0275advance(2),E.\u0275\u0275textInterpolate2(" ",E.\u0275\u0275pipeBind1(8,11,q.messagePrefix+".table.email"),": ",ne.email?ne.email:"-",""),E.\u0275\u0275advance(3),E.\u0275\u0275textInterpolate2(" ",E.\u0275\u0275pipeBind1(11,13,q.messagePrefix+".table.netid"),": ",ne.netid?ne.netid:"-"," "),E.\u0275\u0275advance(4),E.\u0275\u0275propertyInterpolate("title",E.\u0275\u0275pipeBind2(15,15,q.messagePrefix+".table.edit.buttons.remove",E.\u0275\u0275pureFunction1(18,I,q.dsoNameService.getName(ne)))),E.\u0275\u0275property("dsBtnDisabled",q.actionConfig.remove.disabled)("ngClass",E.\u0275\u0275pureFunction1(20,g,q.actionConfig.remove.css)),E.\u0275\u0275advance(2),E.\u0275\u0275property("ngClass",q.actionConfig.remove.icon)}}function L(G,ie){if(1&G&&(E.\u0275\u0275elementStart(0,"ds-pagination",13),E.\u0275\u0275pipe(1,"async"),E.\u0275\u0275elementStart(2,"div",14)(3,"table",15)(4,"thead")(5,"tr")(6,"th",16),E.\u0275\u0275text(7),E.\u0275\u0275pipe(8,"translate"),E.\u0275\u0275elementEnd(),E.\u0275\u0275elementStart(9,"th",16),E.\u0275\u0275text(10),E.\u0275\u0275pipe(11,"translate"),E.\u0275\u0275elementEnd(),E.\u0275\u0275elementStart(12,"th",16),E.\u0275\u0275text(13),E.\u0275\u0275pipe(14,"translate"),E.\u0275\u0275elementEnd(),E.\u0275\u0275elementStart(15,"th",17),E.\u0275\u0275text(16),E.\u0275\u0275pipe(17,"translate"),E.\u0275\u0275elementEnd()()(),E.\u0275\u0275elementStart(18,"tbody"),E.\u0275\u0275template(19,B,17,22,"tr",18),E.\u0275\u0275pipe(20,"async"),E.\u0275\u0275elementEnd()()()()),2&G){const ne=E.\u0275\u0275nextContext();let q,oe;E.\u0275\u0275property("paginationOptions",ne.config)("collectionSize",null==(q=E.\u0275\u0275pipeBind1(1,9,ne.ePeopleMembersOfGroup))?null:q.totalElements)("hideGear",!0)("hidePagerWhenSinglePage",!0),E.\u0275\u0275advance(7),E.\u0275\u0275textInterpolate(E.\u0275\u0275pipeBind1(8,11,ne.messagePrefix+".table.id")),E.\u0275\u0275advance(3),E.\u0275\u0275textInterpolate(E.\u0275\u0275pipeBind1(11,13,ne.messagePrefix+".table.name")),E.\u0275\u0275advance(3),E.\u0275\u0275textInterpolate(E.\u0275\u0275pipeBind1(14,15,ne.messagePrefix+".table.identity")),E.\u0275\u0275advance(3),E.\u0275\u0275textInterpolate(E.\u0275\u0275pipeBind1(17,17,ne.messagePrefix+".table.edit")),E.\u0275\u0275advance(3),E.\u0275\u0275property("ngForOf",null==(oe=E.\u0275\u0275pipeBind1(20,19,ne.ePeopleMembersOfGroup))?null:oe.page)}}function V(G,ie){if(1&G&&(E.\u0275\u0275elementStart(0,"div",23),E.\u0275\u0275text(1),E.\u0275\u0275pipe(2,"translate"),E.\u0275\u0275elementEnd()),2&G){const ne=E.\u0275\u0275nextContext();E.\u0275\u0275advance(1),E.\u0275\u0275textInterpolate1(" ",E.\u0275\u0275pipeBind1(2,1,ne.messagePrefix+".no-members-yet")," ")}}function Y(G,ie){if(1&G&&(E.\u0275\u0275elementStart(0,"span"),E.\u0275\u0275text(1),E.\u0275\u0275pipe(2,"translate"),E.\u0275\u0275elementEnd()),2&G){const ne=E.\u0275\u0275nextContext();E.\u0275\u0275advance(1),E.\u0275\u0275textInterpolate1(" ",E.\u0275\u0275pipeBind1(2,1,ne.messagePrefix+".search.head")," ")}}function X(G,ie){if(1&G){const ne=E.\u0275\u0275getCurrentView();E.\u0275\u0275elementStart(0,"tr")(1,"td",17),E.\u0275\u0275text(2),E.\u0275\u0275elementEnd(),E.\u0275\u0275elementStart(3,"td",17)(4,"a",19),E.\u0275\u0275text(5),E.\u0275\u0275elementEnd()(),E.\u0275\u0275elementStart(6,"td",17),E.\u0275\u0275text(7),E.\u0275\u0275pipe(8,"translate"),E.\u0275\u0275element(9,"br"),E.\u0275\u0275text(10),E.\u0275\u0275pipe(11,"translate"),E.\u0275\u0275elementEnd(),E.\u0275\u0275elementStart(12,"td",17)(13,"div",20)(14,"button",21),E.\u0275\u0275listener("click",function(){const ce=E.\u0275\u0275restoreView(ne).$implicit,ye=E.\u0275\u0275nextContext(2);
1return E.\u0275\u0275resetView(ye.addMemberToGroup(ce))}),E.\u0275\u0275pipe(15,"translate"),E.\u0275\u0275element(16,"i",22),E.\u0275\u0275elementEnd()()()()}if(2&G){const ne=ie.$implicit,q=E.\u0275\u0275nextContext(2);E.\u0275\u0275advance(2),E.\u0275\u0275textInterpolate(ne.id),E.\u0275\u0275advance(2),E.\u0275\u0275property("routerLink",q.getEPersonEditRoute(ne.id)),E.\u0275\u0275advance(1),E.\u0275\u0275textInterpolate1(" ",q.dsoNameService.getName(ne)," "),E.\u0275\u0275advance(2),E.\u0275\u0275textInterpolate2(" ",E.\u0275\u0275pipeBind1(8,11,q.messagePrefix+".table.email"),": ",ne.email?ne.email:"-",""),E.\u0275\u0275advance(3),E.\u0275\u0275textInterpolate2(" ",E.\u0275\u0275pipeBind1(11,13,q.messagePrefix+".table.netid"),": ",ne.netid?ne.netid:"-"," "),E.\u0275\u0275advance(4),E.\u0275\u0275propertyInterpolate("title",E.\u0275\u0275pipeBind2(15,15,q.messagePrefix+".table.edit.buttons.add",E.\u0275\u0275pureFunction1(18,I,q.dsoNameService.getName(ne)))),E.\u0275\u0275property("dsBtnDisabled",q.actionConfig.add.disabled)("ngClass",E.\u0275\u0275pureFunction1(20,g,q.actionConfig.add.css)),E.\u0275\u0275advance(2),E.\u0275\u0275property("ngClass",q.actionConfig.add.icon)}}function te(G,ie){if(1&G&&(E.\u0275\u0275elementStart(0,"ds-pagination",13),E.\u0275\u0275pipe(1,"async"),E.\u0275\u0275elementStart(2,"div",14)(3,"table",24)(4,"thead")(5,"tr")(6,"th",16),E.\u0275\u0275text(7),E.\u0275\u0275pipe(8,"translate"),E.\u0275\u0275elementEnd(),E.\u0275\u0275elementStart(9,"th",16),E.\u0275\u0275text(10),E.\u0275\u0275pipe(11,"translate"),E.\u0275\u0275elementEnd(),E.\u0275\u0275elementStart(12,"th",16),E.\u0275\u0275text(13),E.\u0275\u0275pipe(14,"translate"),E.\u0275\u0275elementEnd(),E.\u0275\u0275elementStart(15,"th",17),E.\u0275\u0275text(16),E.\u0275\u0275pipe(17,"translate"),E.\u0275\u0275elementEnd()()(),E.\u0275\u0275elementStart(18,"tbody"),E.\u0275\u0275template(19,X,17,22,"tr",18),E.\u0275\u0275pipe(20,"async"),E.\u0275\u0275elementEnd()()()()),2&G){const ne=E.\u0275\u0275nextContext();let q,oe;E.\u0275\u0275property("paginationOptions",ne.configSearch)("collectionSize",null==(q=E.\u0275\u0275pipeBind1(1,9,ne.ePeopleSearch))?null:q.totalElements)("hideGear",!0)("hidePagerWhenSinglePage",!0),E.\u0275\u0275advance(7),E.\u0275\u0275textInterpolate(E.\u0275\u0275pipeBind1(8,11,ne.messagePrefix+".table.id")),E.\u0275\u0275advance(3),E.\u0275\u0275textInterpolate(E.\u0275\u0275pipeBind1(11,13,ne.messagePrefix+".table.name")),E.\u0275\u0275advance(3),E.\u0275\u0275textInterpolate(E.\u0275\u0275pipeBind1(14,15,ne.messagePrefix+".table.identity")),E.\u0275\u0275advance(3),E.\u0275\u0275textInterpolate(E.\u0275\u0275pipeBind1(17,17,ne.messagePrefix+".table.edit")),E.\u0275\u0275advance(3),E.\u0275\u0275property("ngForOf",null==(oe=E.\u0275\u0275pipeBind1(20,19,ne.ePeopleSearch))?null:oe.page)}}function K(G,ie){if(1&G&&(E.\u0275\u0275elementStart(0,"div",23),E.\u0275\u0275text(1),E.\u0275\u0275pipe(2,"translate"),E.\u0275\u0275elementEnd()),2&G){const ne=E.\u0275\u0275nextContext();E.\u0275\u0275advance(1),E.\u0275\u0275textInterpolate1(" ",E.\u0275\u0275pipeBind1(2,1,ne.messagePrefix+".no-items")," ")}}const ee=function(){return["top","right","bottom"]},Q=function(G){return{content:"admin.access-control.groups.form.tooltip.editGroup.addEpeople",id:"edit-group-add-epeople",iconPlacement:"right",tooltipPlacement:G}};var j=(()=>{return(G=j||(j={}))[G.ActiveGroup=0]="ActiveGroup",G[G.Members=1]="Members",G[G.SearchResults=2]="SearchResults",j;var G})();let k=(()=>{class G{constructor(ne,q,oe,ce,ye,Me,Ee,Ae){this.groupDataService=ne,this.ePersonDataService=q,this.translateService=oe,this.notificationsService=ce,this.formBuilder=ye,this.paginationService=Me,this.router=Ee,this.dsoNameService=Ae,this.actionConfig={add:{css:"btn-outline-primary",disabled:!1,icon:"fas fa-plus fa-fw"},remove:{css:"btn-outline-danger",disabled:!1,icon:"fas fa-trash-alt fa-fw"}},this.ePeopleSearch=new t.X(void 0),this.ePeopleMembersOfGroup=new t.X(void 0),this.configSearch=Object.assign(new h.r,{id:"sml",pageSize:5,currentPage:1}),this.config=Object.assign(new h.r,{id:"ml",pageSize:5,currentPage:1}),this.subs=new Map,this.getEPersonEditRoute=v.EP,this.currentSearchQuery=""}
1ngOnInit(){this.searchForm=this.formBuilder.group({query:""}),this.subs.set(j.ActiveGroup,this.groupDataService.getActiveGroup().subscribe(ne=>{null!=ne&&(this.groupBeingEdited=ne,this.retrieveMembers(this.config.currentPage),this.search({query:""}))}))}retrieveMembers(ne){this.unsubFrom(j.Members),this.subs.set(j.Members,this.paginationService.getCurrentPagination(this.config.id,this.config).pipe((0,n.w)(q=>this.ePersonDataService.findListByHref(this.groupBeingEdited._links.epersons.href,{currentPage:q.currentPage,elementsPerPage:q.pageSize})),(0,a.f1)(),(0,o.U)(q=>{if(!q.hasFailed)return q;this.notificationsService.error(this.translateService.get(this.messagePrefix+".notification.failure",{cause:q.errorMessage}))}),(0,a.xe)()).subscribe(q=>{this.ePeopleMembersOfGroup.next(q)}))}unsubFrom(ne){this.subs.has(ne)&&(this.subs.get(ne).unsubscribe(),this.subs.delete(ne))}deleteMemberFromGroup(ne){this.groupDataService.getActiveGroup().pipe((0,i.q)(1)).subscribe(q=>{if(null!=q){const oe=this.groupDataService.deleteMemberFromGroup(q,ne);this.showNotifications("deleteMember",oe,this.dsoNameService.getName(ne),q),null!=this.currentSearchQuery&&this.search({query:this.currentSearchQuery})}else this.notificationsService.error(this.translateService.get(this.messagePrefix+".notification.failure.noActiveGroup"))})}addMemberToGroup(ne){this.groupDataService.getActiveGroup().pipe((0,i.q)(1)).subscribe(q=>{if(null!=q){const oe=this.groupDataService.addMemberToGroup(q,ne);this.showNotifications("addMember",oe,this.dsoNameService.getName(ne),q),null!=this.currentSearchQuery&&this.search({query:this.currentSearchQuery})}else this.notificationsService.error(this.translateService.get(this.messagePrefix+".notification.failure.noActiveGroup"))})}search(ne){this.unsubFrom(j.SearchResults),this.subs.set(j.SearchResults,this.paginationService.getCurrentPagination(this.configSearch.id,this.configSearch).pipe((0,n.w)(q=>{const oe=ne.query;return null!=oe&&this.currentSearchQuery!==oe&&this.groupBeingEdited&&(this.currentSearchQuery=oe,this.paginationService.resetPage(this.configSearch.id)),this.searchDone=!0,this.ePersonDataService.searchNonMembers(this.currentSearchQuery,this.groupBeingEdited.id,{currentPage:q.currentPage,elementsPerPage:q.pageSize},!1,!0)}),(0,a.f1)(),(0,o.U)(q=>{if(!q.hasFailed)return q;this.notificationsService.error(this.translateService.get(this.messagePrefix+".notification.failure",{cause:q.errorMessage}))}),(0,a.xe)()).subscribe(q=>{this.ePeopleSearch.next(q)}))}ngOnDestroy(){for(const ne of this.subs.keys())this.unsubFrom(ne);this.paginationService.clearPagination(this.config.id),this.paginationService.clearPagination(this.configSearch.id)}showNotifications(ne,q,oe,ce){q.pipe((0,a.hC)()).subscribe(ye=>{ye.hasSucceeded?this.notificationsService.success(this.translateService.get(this.messagePrefix+".notification.success."+ne,{name:oe})):this.notificationsService.error(this.translateService.get(this.messagePrefix+".notification.failure."+ne,{name:oe}))})}clearFormAndResetResult(){this.searchForm.patchValue({query:""}),this.search({query:""})}}return G.\u0275fac=function(ne){return new(ne||G)(E.\u0275\u0275directiveInject(r.O),E.\u0275\u0275directiveInject(d.k),E.\u0275\u0275directiveInject(O.sK),E.\u0275\u0275directiveInject(p.T),E.\u0275\u0275directiveInject(b.QS),E.\u0275\u0275directiveInject(m.N),E.\u0275\u0275directiveInject(M.F0),E.\u0275\u0275directiveInject(_._))},G.\u0275cmp=E.\u0275\u0275defineComponent({type:G,selectors:[["ds-members-list"]],inputs:{messagePrefix:"messagePrefix",actionConfig:"actionConfig"},decls:31,vars:31,consts:[[1,"border-bottom","pb-2"],[3,"paginationOptions","collectionSize","hideGear","hidePagerWhenSinglePage",4,"ngIf"],["class","alert alert-info w-100 mb-2","role","alert",4,"ngIf"],["id","search",1,"border-bottom","pb-2"],[4,"dsContextHelp"],[1,"d-flex","justify-content-between",3,"formGroup","ngSubmit"],[1,"flex-grow-1","mr-3"],[1,"form-group","input-group","mr-3"],["type","text","name","query","id","query","formControlName","query","aria-label","Search input",1,"form-control"],[1,"input-group-append"],["type","submit",1,"search-button","btn","btn-primary"],[1,"fas","fa-search"],[1,"btn","btn-secondary",3,"click"],[3,"paginationOptions","collectionSize","hideGear","hidePagerWhenSinglePage"],[1,"table-responsive"],["id","ePeopleMembersOfGroup",1,"table","table-striped","table-hover","table-bordered"],["scope","col",1,"align-middle"],[1,"align-middle"],[4,"ngFor","ngForOf"],[3,"routerLink"],[1,"btn-group","edit-field"],[3,"dsBtnDisabled","ngClass","title","click"],[3,"ngClass"],["role","alert",1,"alert","alert-info","w-100","mb-2"],["id","epersonsSearch",1,"table","table-striped","table-hover","table-bordered"]],template:function(ne,q){if(1&ne&&(E.\u0275\u0275elementContainerStart(0),E.\u0275\u0275elementStart(1,"h2",0),E.\u0275\u0275text(2),E.\u0275\u0275pipe(3,"translate"),E.\u0275\u0275elementEnd(),E.\u0275\u0275elementStart(4,"h3"),E.\u0275\u0275text(5),E.\u0275\u0275pipe(6,"translate"),E.\u0275\u0275elementEnd(),E.\u0275\u0275template(7,L,21,21,"ds-pagination",1),E.\u0275\u0275pipe(8,"async"),E.\u0275\u0275template(9,V,3,3,"div",2),E.\u0275\u0275pipe(10,"async"),E.\u0275\u0275pipe(11,"async"),E.\u0275\u0275elementStart(12,"h3",3),E.\u0275\u0275template(13,Y,3,3,"span",4),E.\u0275\u0275elementEnd(),E.\u0275\u0275elementStart(14,"form",5),E.\u0275\u0275listener("ngSubmit",function(){return q.search(q.searchForm.value)}),E.\u0275\u0275elementStart(15,"div",6)(16,"div",7),E.\u0275\u0275element(17,"input",8),E.\u0275\u0275elementStart(18,"span",9)(19,"button",10),E.\u0275\u0275element(2
10,"i",11),E.\u0275\u0275text(21),E.\u0275\u0275pipe(22,"translate"),E.\u0275\u0275elementEnd()()()(),E.\u0275\u0275elementStart(23,"div")(24,"button",12),E.\u0275\u0275listener("click",function(){return q.clearFormAndResetResult()}),E.\u0275\u0275text(25),E.\u0275\u0275pipe(26,"translate"),E.\u0275\u0275elementEnd()()(),E.\u0275\u0275template(27,te,21,21,"ds-pagination",1),E.\u0275\u0275pipe(28,"async"),E.\u0275\u0275template(29,K,3,3,"div",2),E.\u0275\u0275pipe(30,"async"),E.\u0275\u0275elementContainerEnd()),2&ne){let oe,ce,ye,Me;E.\u0275\u0275advance(2),E.\u0275\u0275textInterpolate(E.\u0275\u0275pipeBind1(3,10,q.messagePrefix+".head")),E.\u0275\u0275advance(3),E.\u0275\u0275textInterpolate(E.\u0275\u0275pipeBind1(6,12,q.messagePrefix+".headMembers")),E.\u0275\u0275advance(2),E.\u0275\u0275property("ngIf",(null==(oe=E.\u0275\u0275pipeBind1(8,14,q.ePeopleMembersOfGroup))?null:oe.totalElements)>0),E.\u0275\u0275advance(2),E.\u0275\u0275property("ngIf",null==E.\u0275\u0275pipeBind1(10,16,q.ePeopleMembersOfGroup)||0==(null==(ce=E.\u0275\u0275pipeBind1(11,18,q.ePeopleMembersOfGroup))?null:ce.totalElements)),E.\u0275\u0275advance(4),E.\u0275\u0275property("dsContextHelp",E.\u0275\u0275pureFunction1(29,Q,E.\u0275\u0275pureFunction0(28,ee))),E.\u0275\u0275advance(1),E.\u0275\u0275property("formGroup",q.searchForm),E.\u0275\u0275advance(7),E.\u0275\u0275textInterpolate1(" ",E.\u0275\u0275pipeBind1(22,20,q.messagePrefix+".search.button"),""),E.\u0275\u0275advance(4),E.\u0275\u0275textInterpolate(E.\u0275\u0275pipeBind1(26,22,q.messagePrefix+".button.see-all")),E.\u0275\u0275advance(2),E.\u0275\u0275property("ngIf",(null==(ye=E.\u0275\u0275pipeBind1(28,24,q.ePeopleSearch))?null:ye.totalElements)>0),E.\u0275\u0275advance(2),E.\u0275\u0275property("ngIf",0==(null==(Me=E.\u0275\u0275pipeBind1(30,26,q.ePeopleSearch))?null:Me.totalElements)&&q.searchDone)}},dependencies:[P.mk,P.sg,P.O5,b._Y,b.Fj,b.JJ,b.JL,b.sg,b.u,M.rH,D.Q,l.A,C.v,P.Ov,O.X$],encapsulation:2}),G})()},82980:(R,c,e)=>{"use strict";e.d(c,{Bb:()=>i,Ow:()=>n,c4:()=>o});var t=e(79472);const n={EDIT_GROUP:(0,t.d)("dspace/epeople-registry/EDIT_GROUP"),CANCEL_EDIT_GROUP:(0,t.d)("dspace/epeople-registry/CANCEL_EDIT_GROUP")};class o{constructor(r){this.type=n.EDIT_GROUP,this.group=r}}class i{constructor(){this.type=n.CANCEL_EDIT_GROUP}}},33982:(R,c,e)=>{"use strict";e.d(c,{YM:()=>o,qZ:()=>i,sT:()=>d,xi:()=>n});var t=e(79472);const n={SELECT_FORMAT:(0,t.d)("dspace/bitstream-formats-registry/SELECT_FORMAT"),DESELECT_FORMAT:(0,t.d)("dspace/bitstream-formats-registry/DESELECT_FORMAT"),DESELECT_ALL_FORMAT:(0,t.d)("dspace/bitstream-formats-registry/DESELECT_ALL_FORMAT")};class o{constructor(a){this.type=n.SELECT_FORMAT,this.bitstreamFormat=a}}class i{constructor(a){this.type=n.DESELECT_FORMAT,this.bitstreamFormat=a}}class d{constructor(){this.type=n.DESELECT_ALL_FORMAT}}},59898:(R,c,e)=>{"use strict";e.d(c,{$U:()=>a,A9:()=>v,D$:()=>n,J5:()=>_,O3:()=>p,YJ:()=>o,ZQ:()=>i,c1:()=>d,n2:()=>r,ux:()=>m,xG:()=>h});var t=e(79472);const n={EDIT_SCHEMA:(0,t.d)("dspace/metadata-registry/EDIT_SCHEMA"),CANCEL_EDIT_SCHEMA:(0,t.d)("dspace/metadata-registry/CANCEL_SCHEMA"),SELECT_SCHEMA:(0,t.d)("dspace/metadata-registry/SELECT_SCHEMA"),DESELECT_SCHEMA:(0,t.d)("dspace/metadata-registry/DESELECT_SCHEMA"),DESELECT_ALL_SCHEMA:(0,t.d)("dspace/metadata-registry/DESELECT_ALL_SCHEMA"),EDIT_FIELD:(0,t.d)("dspace/metadata-registry/EDIT_FIELD"),CANCEL_EDIT_FIELD:(0,t.d)("dspace/metadata-registry/CANCEL_FIELD"),SELECT_FIELD:(0,t.d)("dspace/metadata-registry/SELECT_FIELD"),DESELECT_FIELD:(0,t.d)("dspace/metadata-registry/DESELECT_FIELD"),DESELECT_ALL_FIELD:(0,t.d)("dspace/metadata-registry/DESELECT_ALL_FIELD")};class o{constructor(O){this.type=n.EDIT_SCHEMA,this.schema=O}}class i{constructor(){this.type=n.CANCEL_EDIT_SCHEMA}}class d{constructor(O){this.type=n.SELECT_SCHEMA,this.schema=O}}class r{constructor(O){this.type=n.DESELECT_SCHEMA,this.schema=O}}class a{constructor(){this.type=n.DESELECT_ALL_SCHEMA}}class p{constructor(O){this.type=n.EDIT_FIELD,this.field=O}}class h{constructor(){this.type=n.CANCEL_EDIT_FIELD}}class m{constructor(O){this.type=n.SELECT_FIELD,this.field=O}}class _{constructor(O){this.type=n.DESELECT_FIELD,this.field=O}}class v{constructor(){this.type=n.DESELECT_ALL_FIELD}}},8473:(R,c,e)=>{"use strict";e.d(c,{F:()=>O});var v,t=e(70655),n=e(94650),o=e(89359),i=e(54541),d=e(9498),r=e(7145),a=e(78969),p=e(24702),h=e(34793),m=e(36895),_=e(89383);const E=function(b){return{disabled:b}};let O=((v=class extends o.q{constructor(M,P,D,l){super(M,P,D),this.menuService=P,this.injector=D,this.router=l,this.menuID=a.z.ADMIN,this.itemModel=M.model}ngOnInit(){this.isDisabled=this.itemModel?.disabled||(0,p.xb)(this.itemModel?.link),super.ngOnInit()}navigate(M){M.preventDefault(),this.isDisabled||this.router.navigate(this.itemModel.link)}adminMenuSectionId(M){return`admin-menu-section-${M}`}adminMenuSectionTitleId(M){return`admin-menu-section-${M}-title`}}).\u0275fac=function(M){return new(M||v)(n.\u0275\u0275directiveInject("sectionDataProvider"),n.\u0275\u0275directiveInject(i.h),n.\u0275\u0275directiveInject(n.Injector),n.\u0275\u0275directiveInject(h.F0))},v.\u0275cmp=n.\u0275\u0275defineComponent({type:v,selectors:[["ds-admin-sidebar-section"]],features:[n.\u0275\u0275InheritDefinitionFeature],decls:9,vars:13,consts:[["role","menuitem","href","javascript:void(0);",1,"sidebar-section-wrapper",3,"ngClass","routerLink","keyup.space","keyup.enter"],["data-test","sidebar-section-icon","aria-hidden","true",1,"sidebar-fixed-element-wrapper"],[1,"sidebar-collapsible-element-outer-wrapper"],[1,"sidebar-collapsible-element-inner-wrapper","sidebar-item"],[3,"id"]],template:function(M,P){1&M&&(n.\u0275\u0275elementStart(0,"div")(1,"a",0),n.\u0275\u0275listener("keyup.space",function(l){return P.navigate(l)})("keyup.enter",function(l){return P.navigate(l)}),n.\u0275\u0275elementStart(2,"div",1),n.\u0275\u0275element(3,"i"),n.\u0275\u0275elementEnd(),n.\u0275\u0275elementStart(4,"div",2)(5,"div",3)(6,"span",4),n.\u0275\u0275text(7),n.\u0275\u0275pipe(8,"translate"),n.\u0275\u0275elementEnd()()()()()),2&M&&(n.\u0275\u0275advance(1),n.\u0275\u0275property("ngClass",n.\u0275\u0275pureFunction1(11,E,P.isDisabled))("routerLink",P.itemModel.link),n.\u0275\u0275attribute("aria-disabled",P.isDisabled)("aria-labelledby",P.adminMenuSectionTitleId(P.section.id)),n.\u0275\u0275advance(2),n.\u0275\u0275classMapInterpolate1("fas fa-",P.section.icon," fa-fw"),n.\u0275\u0275advance(3),n.\u0275\u0275property("id",P.adminMenuSectionTitleId(P.section.id)),n.\u0275\u0275advance(1),n.\u0275\u0275textInterpolate(n.\u0275\u0275pipeBind1(8,9,P.itemModel.text)))},dependencies:[m.mk,h.rH,_.X$]}),v);O=(0,t.__decorate)([(0,d.h)(a.z.ADMIN,!1),(0,t.__metadata)("design:paramtypes",[r.x,i.h,n.Injector,h.F0])],O)}
1,61503:(R,c,e)=>{"use strict";e.r(c),e.d(c,{AdminSidebarComponent:()=>K});var t=e(61135),n=e(39841),o=e(50590),i=e(54004),d=e(78372),r=e(71884),a=e(11365),p=e(24755),h=e(41672),m=e(32250),_=e(54541),v=e(61182),E=e(19937),O=e(78969),b=e(55784),M=e(94650),P=e(34793),D=e(36895),l=e(9769),C=e(89383);function I(ee,ae){1&ee&&M.\u0275\u0275elementContainer(0)}function g(ee,ae){if(1&ee&&(M.\u0275\u0275elementContainerStart(0),M.\u0275\u0275template(1,I,1,0,"ng-container",17),M.\u0275\u0275pipe(2,"async"),M.\u0275\u0275pipe(3,"async"),M.\u0275\u0275elementContainerEnd()),2&ee){const Q=ae.$implicit,j=M.\u0275\u0275nextContext(2);M.\u0275\u0275advance(1),M.\u0275\u0275property("ngComponentOutlet",M.\u0275\u0275pipeBind1(2,2,j.sectionMap$).get(Q.id).component)("ngComponentOutletInjector",M.\u0275\u0275pipeBind1(3,4,j.sectionMap$).get(Q.id).injector)}}function B(ee,ae){1&ee&&(M.\u0275\u0275element(0,"i",18),M.\u0275\u0275pipe(1,"translate")),2&ee&&M.\u0275\u0275property("title",M.\u0275\u0275pipeBind1(1,1,"menu.section.icon.pin"))}function L(ee,ae){1&ee&&(M.\u0275\u0275element(0,"i",19),M.\u0275\u0275pipe(1,"translate")),2&ee&&M.\u0275\u0275property("title",M.\u0275\u0275pipeBind1(1,1,"menu.section.icon.unpin"))}const V=function(ee,ae,Q){return{expanded:ee,collapsed:ae,transitioning:Q}},Y=function(ee,ae){return{collapsedWidth:ee,expandedWidth:ae}},X=function(ee,ae){return{value:ee,params:ae}};function te(ee,ae){if(1&ee){const Q=M.\u0275\u0275getCurrentView();M.\u0275\u0275elementStart(0,"nav",1),M.\u0275\u0275listener("@slideSidebar.done",function(k){M.\u0275\u0275restoreView(Q);const G=M.\u0275\u0275nextContext();return M.\u0275\u0275resetView(G.finishSlide(k))})("@slideSidebar.start",function(k){M.\u0275\u0275restoreView(Q);const G=M.\u0275\u0275nextContext();return M.\u0275\u0275resetView(G.startSlide(k))})("mouseenter",function(k){M.\u0275\u0275restoreView(Q);const G=M.\u0275\u0275nextContext();return M.\u0275\u0275resetView(G.handleMouseEnter(k))})("mouseleave",function(k){M.\u0275\u0275restoreView(Q);const G=M.\u0275\u0275nextContext();return M.\u0275\u0275resetView(G.handleMouseLeave(k))}),M.\u0275\u0275pipe(1,"translate"),M.\u0275\u0275pipe(2,"async"),M.\u0275\u0275pipe(3,"async"),M.\u0275\u0275pipe(4,"async"),M.\u0275\u0275elementStart(5,"div",2)(6,"div",3)(7,"div",4),M.\u0275\u0275element(8,"i",5),M.\u0275\u0275elementEnd(),M.\u0275\u0275elementStart(9,"div",6)(10,"div",7)(11,"h4",8),M.\u0275\u0275text(12),M.\u0275\u0275pipe(13,"translate"),M.\u0275\u0275elementEnd()()()()(),M.\u0275\u0275elementStart(14,"div",9)(15,"div",10),M.\u0275\u0275pipe(16,"translate"),M.\u0275\u0275template(17,g,4,6,"ng-container",11),M.\u0275\u0275pipe(18,"async"),M.\u0275\u0275elementEnd()(),M.\u0275\u0275elementStart(19,"div",12)(20,"a",13),M.\u0275\u0275listener("click",function(k){M.\u0275\u0275restoreView(Q);const G=M.\u0275\u0275nextContext();return M.\u0275\u0275resetView(G.toggle(k))})("keyup.space",function(k){M.\u0275\u0275restoreView(Q);const G=M.\u0275\u0275nextContext();return M.\u0275\u0275resetView(G.toggle(k))}),M.\u0275\u0275elementStart(21,"div",14),M.\u0275\u0275template(22,B,2,3,"i",15),M.\u0275\u0275pipe(23,"async"),M.\u0275\u0275template(24,L,2,3,"i",16),M.\u0275\u0275pipe(25,"async"),M.\u0275\u0275elementEnd(),M.\u0275\u0275elementStart(26,"div",6)(27,"div",7),M.\u0275\u0275text(28),M.\u0275\u0275pipe(29,"translate"),M.\u0275\u0275pipe(30,"async"),M.\u0275\u0275elementEnd()()()()()}if(2&ee){const Q=M.\u0275\u0275nextContext();M.\u0275\u0275property("ngClass",M.\u0275\u0275pureFunction3(31,V,Q.sidebarOpen,Q.sidebarClosed,Q.sidebarTransitioning))("@slideSidebar",M.\u0275\u0275pureFunction2(38,X,M.\u0275\u0275pipeBind1(2,11,Q.sidebarExpanded)?"expanded":"collapsed",M.\u0275\u0275pureFunction2(35,Y,M.\u0275\u0275pipeBind1(3,13,Q.collapsedSidebarWidth$),M.\u0275\u0275pipeBind1(4,15,Q.expandedSidebarWidth$)))),M.\u0275\u0275attribute("aria-label",M.\u0275\u0275pipeBind1(1,9,"menu.header.nav.description")),M.\u0275\u0275advance(12),M.\u0275\u0275textInterpolate(M.\u0275\u0275pipeBind1(13,17,"menu.header.admin")),M.\u0275\u0275advance(3),M.\u0275\u0275attribute("aria-label",M.\u0275\u0275pipeBind1(16,19,"menu.header.admin.description")),M.\u0275\u0275advance(2),M.\u0275\u0275property("ngForOf",M.\u0275\u0275pipeBind1(18,21,Q.sections)),M.\u0275\u0275advance(5),M.\u0275\u0275property("ngIf",M.\u0275\u0275pipeBind1(23,23,Q.menuCollapsed)),M.\u0275\u0275advance(2),M.\u0275\u0275property("ngIf",!M.\u0275\u0275pipeBind1(25,25,Q.menuCollapsed)),M.\u0275\u0275advance(4),M.\u0275\u0275textInterpolate1(" ",M.\u0275\u0275pipeBind1(29,27,M.\u0275\u0275pipeBind1(30,29,Q.menuCollapsed)?"menu.section.pin":"menu.section.unpin")," ")}}let K=(()=>{class ee extends m.M{constructor(Q,j,k,G,ie,ne,q){super(Q,j,ie,ne,q),this.menuService=Q,this.injector=j,this.variableService=k,this.authService=G,this.authorizationService=ie,this.route=ne,this.themeService=q,this.menuID=O.z.ADMIN,this.sidebarOpen=!0,this.sidebarClosed=!this.sidebarOpen,this.sidebarTransitioning=!this.sidebarOpen,this.inFocus$=new t.X(!1)}ngOnInit(){super.ngOnInit(),this.authService.isAuthenticated().subscribe(Q=>{Q&&this.menuService.showMenu(this.menuID)}),this.menuCollapsed.pipe((0,o.P)()).subscribe(Q=>{this.sidebarOpen=!Q,this.sidebarClosed=Q}),this.sidebarExpanded=(0,n.a)([this.menuCollapsed,this.menuPreviewCollapsed]).pipe((0,i.U)(([Q,j])=>!Q||!j)),this.inFocus$.pipe((0,d.b)(50),(0,r.x)(),(0,a.M)((0,n.a)([this.menuCollapsed,this.menuPreviewCollapsed]))).subscribe(([Q,[j,k]])=>{j&&(Q&&k?this.expandPreview(new Event("focusin \u2192 expand")):!Q&&!k&&this.collapsePreview(new Event("focusout \u2192 collapse")))}),this.menuVisible=this.menuService.isMenuVisibleWithVisibleSections(this.menuID)}handleFocusIn(){this.inFocus$.next(!0)}handleFocusOut(){this.inFocus$.next(!1)}handleMouseEnter(Q){this.inFocus$.getValue()?Q.preventDefault():this.expandPreview(Q)}handleMouseLeave(Q){this.inFocus$.getValue()?Q.preventDefault():this.collapsePreview(Q)}startSlide(Q){this.sidebarTransitioning=!0,"expanded"===Q.toState?this.sidebarClosed=!1:"collapsed"===Q.toState&&(this.sidebarOpen=!1)}finishSlide(Q){this.sidebarTransitioning=!1,"expanded"===Q.fromState?this.sidebarClosed=!0:"collapsed"===Q.fromState&&(this.sidebarOpen=!0)}}return ee.\u0275fac=function(Q){return new(Q||ee)(M.\u0275\u0275directiveInject(_.h),M.\u0275\u0275directiveInject(M.Injector),M.\u0275\u0275directiveInject(v.I),M.\u0275\u0275directiveInject(p.e8),M.\u0275\u0275directiveInject(E._),M.\u0275\u0275directiveInject(P.gz),M.\u
10275\u0275directiveInject(b.fY))},ee.\u0275cmp=M.\u0275\u0275defineComponent({type:ee,selectors:[["ds-admin-sidebar"]],hostBindings:function(Q,j){1&Q&&M.\u0275\u0275listener("focusin",function(){return j.handleFocusIn()})("focusout",function(){return j.handleFocusOut()})},inputs:{expandedSidebarWidth$:"expandedSidebarWidth$",collapsedSidebarWidth$:"collapsedSidebarWidth$"},features:[M.\u0275\u0275InheritDefinitionFeature],decls:2,vars:3,consts:[["class","navbar navbar-dark p-0 vh-100","id","admin-sidebar",3,"ngClass","mouseenter","mouseleave",4,"ngIf"],["id","admin-sidebar",1,"navbar","navbar-dark","p-0","vh-100",3,"ngClass","mouseenter","mouseleave"],["id","sidebar-header-container","aria-hidden","true",1,"sidebar-full-width-container"],[1,"sidebar-section-wrapper"],[1,"sidebar-fixed-element-wrapper","submission-icon"],[1,"fas","fa-dashboard"],[1,"sidebar-collapsible-element-outer-wrapper"],[1,"sidebar-collapsible-element-inner-wrapper","sidebar-item"],[1,"my-1"],["id","sidebar-top-level-items-container",1,"sidebar-full-width-container"],["id","sidebar-top-level-items","role","menubar",1,"sidebar-full-width-container"],[4,"ngFor","ngForOf"],["id","sidebar-collapse-toggle-container",1,"sidebar-full-width-container"],["id","sidebar-collapse-toggle","href","javascript:void(0);",1,"sidebar-section-wrapper","sidebar-full-width-container",3,"click","keyup.space"],[1,"sidebar-fixed-element-wrapper"],["class","fas fa-fw fa-angle-double-right",3,"title",4,"ngIf"],["class","fas fa-fw fa-angle-double-left",3,"title",4,"ngIf"],[4,"ngComponentOutlet","ngComponentOutletInjector"],[1,"fas","fa-fw","fa-angle-double-right",3,"title"],[1,"fas","fa-fw","fa-angle-double-left",3,"title"]],template:function(Q,j){1&Q&&(M.\u0275\u0275template(0,te,31,41,"nav",0),M.\u0275\u0275pipe(1,"async")),2&Q&&M.\u0275\u0275property("ngIf",M.\u0275\u0275pipeBind1(1,1,j.menuVisible))},dependencies:[D.mk,D.$G,D.sg,D.O5,l.M2,D.Ov,C.X$],styles:["[_nghost-%COMP%]{position:fixed;left:0;top:0;z-index:var(--ds-sidebar-z-index)}[_nghost-%COMP%] nav#admin-sidebar[_ngcontent-%COMP%]{max-width:var(--ds-admin-sidebar-fixed-element-width);display:flex;flex-direction:column;flex-wrap:nowrap}[_nghost-%COMP%] nav#admin-sidebar[_ngcontent-%COMP%] div#sidebar-top-level-items-container[_ngcontent-%COMP%]{flex:1 1 auto;overflow-x:hidden;overflow-y:auto}[_nghost-%COMP%] nav#admin-sidebar[_ngcontent-%COMP%] div#sidebar-top-level-items-container[_ngcontent-%COMP%]::-webkit-scrollbar{width:var(--ds-dark-scrollbar-width);height:3px}[_nghost-%COMP%] nav#admin-sidebar[_ngcontent-%COMP%] div#sidebar-top-level-items-container[_ngcontent-%COMP%]::-webkit-scrollbar-button{background-color:var(--ds-dark-scrollbar-bg)}[_nghost-%COMP%] nav#admin-sidebar[_ngcontent-%COMP%] div#sidebar-top-level-items-container[_ngcontent-%COMP%]::-webkit-scrollbar-track{background-color:var(--ds-dark-scrollbar-alt-bg)}[_nghost-%COMP%] nav#admin-sidebar[_ngcontent-%COMP%] div#sidebar-top-level-items-container[_ngcontent-%COMP%]::-webkit-scrollbar-track-piece{background-color:var(--ds-dark-scrollbar-bg)}[_nghost-%COMP%] nav#admin-sidebar[_ngcontent-%COMP%] div#sidebar-top-level-items-container[_ngcontent-%COMP%]::-webkit-scrollbar-thumb{height:50px;background-color:var(--ds-dark-scrollbar-fg);border-radius:3px}[_nghost-%COMP%] nav#admin-sidebar[_ngcontent-%COMP%] div#sidebar-top-level-items-container[_ngcontent-%COMP%]::-webkit-scrollbar-corner{background-color:var(--ds-dark-scrollbar-alt-bg)}[_nghost-%COMP%] nav#admin-sidebar[_ngcontent-%COMP%] div#sidebar-top-level-items-container[_ngcontent-%COMP%]::-webkit-resizer{background-color:var(--ds-dark-scrollbar-bg)}[_nghost-%COMP%] nav#admin-sidebar[_ngcontent-%COMP%] img#admin-sidebar-logo[_ngcontent-%COMP%]{height:var(--ds-admin-sidebar-logo-height)}[_nghost-%COMP%] nav#admin-sidebar[_ngcontent-%COMP%] .sidebar-full-width-container{width:100%;padding-left:0;padding-right:0;margin-left:0;margin-right:0}[_nghost-%COMP%] nav#admin-sidebar[_ngcontent-%COMP%] .sidebar-item{padding-top:var(--ds-admin-sidebar-item-padding);padding-bottom:var(--ds-admin-sidebar-item-padding)}[_nghost-%COMP%] nav#admin-sidebar[_ngcontent-%COMP%] .sidebar-section-wrapper{display:flex;flex-direction:row;flex-wrap:nowrap;align-items:stretch}[_nghost-%COMP%] nav#admin-sidebar[_ngcontent-%COMP%] .sidebar-section-wrapper>.sidebar-fixed-element-wrapper{min-width:var(--ds-admin-sidebar-fixed-element-width);flex:1 1 auto;display:flex;flex-direction:row;justify-content:center;align-items:center}[_nghost-%COMP%] nav#admin-sidebar[_ngcontent-%COMP%] .sidebar-section-wrapper>.sidebar-collapsible-element-outer-wrapper{display:flex;flex-wrap:wrap;justify-content:flex-end;max-width:calc(100% - var(--ds-admin-sidebar-fixed-element-width));padding-left:var(--ds-dark-scrollbar-width);overflow-x:hidden}[_nghost-%COMP%] nav#admin-sidebar[_ngcontent-%COMP%] .sidebar-section-wrapper>.sidebar-collapsible-element-outer-wrapper>.sidebar-collapsible-element-inner-wrapper{min-width:calc(var(--ds-admin-sidebar-collapsible-element-width) - var(--ds-dark-scrollbar-width));height:100%;padding-right:var(--ds-admin-sidebar-item-padding)}[_nghost-%COMP%] nav#admin-sidebar[_ngcontent-%COMP%]{background-color:#091f62}[_nghost-%COMP%] nav#admin-sidebar[_ngcontent-%COMP%] {color:#fff}[_nghost-%COMP%] nav#admin-sidebar[_ngcontent-%COMP%] a{color:var(--ds-admin-sidebar-link-color);text-decoration:none}[_nghost-%COMP%] nav#admin-sidebar[_ngcontent-%COMP%] a:hover, [_nghost-%COMP%] nav#admin-sidebar[_ngcontent-%COMP%] a:focus{color:var(--ds-admin-sidebar-link-hover-color)}[_nghost-%COMP%] nav#admin-sidebar[_ngcontent-%COMP%] .submission-icon[_ngcontent-%COMP%]{width:50px;height:50px}[_nghost-%COMP%] nav#admin-sidebar[_ngcontent-%COMP%] div#sidebar-header-container[_ngcontent-%COMP%]{background-color:#0a1d56}[_nghost-%COMP%] nav#admin-sidebar[_ngcontent-%COMP%] div#sidebar-header-container[_ngcontent-%COMP%] .sidebar-fixed-element-wrapper[_ngcontent-%COMP%]{background-color:#0a1d56}"],data:{animation:[h.t6]}}),ee})()},95282:(R,c,e)=>{"use strict";e.d(c,{O:()=>X});var t=e(70655),n=e(94650),o=e(13865),i=e(8473),d=e(41672),r=e(61182),a=e(37340);const p=(0,a.oB)({backgroundColor:"{{ startColor }}"}),h=(0,a.oB)({backgroundColor:"{{ endColor }}"}
1),m=(0,a.X$)("bgColor",[(0,a.SB)("startBackground",p,{params:{startColor:"*"}}),(0,a.SB)("endBackground",h,{params:{endColor:"*"}}),(0,a.eR)("startBackground <=> endBackground",(0,a.ru)([(0,a.IO)("@*",(0,a.pV)()),(0,a.jt)("200ms")]))]);var l,_=e(54541),v=e(39841),E=e(54004),O=e(9498),b=e(78969),M=e(34793),P=e(36895),D=e(89383);function C(te,K){1&te&&n.\u0275\u0275elementContainer(0)}function I(te,K){1&te&&n.\u0275\u0275elementContainer(0)}function g(te,K){if(1&te&&(n.\u0275\u0275elementStart(0,"div",14),n.\u0275\u0275text(1),n.\u0275\u0275pipe(2,"json"),n.\u0275\u0275pipe(3,"async"),n.\u0275\u0275template(4,I,1,0,"ng-container",6),n.\u0275\u0275pipe(5,"async"),n.\u0275\u0275pipe(6,"async"),n.\u0275\u0275elementEnd()),2&te){const ee=K.$implicit,ae=n.\u0275\u0275nextContext(2);n.\u0275\u0275advance(1),n.\u0275\u0275textInterpolate1(" ",n.\u0275\u0275pipeBind1(2,3,n.\u0275\u0275pipeBind1(3,5,ae.sectionMap$).get(ee.id).component)," "),n.\u0275\u0275advance(3),n.\u0275\u0275property("ngComponentOutlet",n.\u0275\u0275pipeBind1(5,7,ae.sectionMap$).get(ee.id).component)("ngComponentOutletInjector",n.\u0275\u0275pipeBind1(6,9,ae.sectionMap$).get(ee.id).injector)}}function B(te,K){if(1&te&&(n.\u0275\u0275elementStart(0,"div",9),n.\u0275\u0275element(1,"div",10),n.\u0275\u0275elementStart(2,"div",3)(3,"div",11)(4,"div",12),n.\u0275\u0275pipe(5,"translate"),n.\u0275\u0275template(6,g,7,11,"div",13),n.\u0275\u0275pipe(7,"async"),n.\u0275\u0275elementEnd()()()()),2&te){const ee=n.\u0275\u0275nextContext();n.\u0275\u0275property("@slide",void 0),n.\u0275\u0275advance(4),n.\u0275\u0275property("id",ee.adminMenuSectionId(ee.section.id)),n.\u0275\u0275attribute("aria-label",n.\u0275\u0275pipeBind1(5,4,"menu.section."+ee.section.id)),n.\u0275\u0275advance(2),n.\u0275\u0275property("ngForOf",n.\u0275\u0275pipeBind1(7,6,ee.subSections$))}}const L=function(te){return{expanded:te}},V=function(te){return{endColor:te}},Y=function(te,K){return{value:te,params:K}};let X=((l=class extends i.F{constructor(K,ee,ae,Q,j){super(K,ee,Q,j),this.menuService=ee,this.variableService=ae,this.injector=Q,this.router=j,this.menuID=b.z.ADMIN}ngOnInit(){super.ngOnInit(),this.sidebarActiveBg$=this.variableService.getVariable("--ds-admin-sidebar-active-bg"),this.isSidebarCollapsed$=this.menuService.isMenuCollapsed(this.menuID),this.isSidebarPreviewCollapsed$=this.menuService.isMenuPreviewCollapsed(this.menuID),this.isExpanded$=(0,v.a)([this.active$,this.isSidebarCollapsed$,this.isSidebarPreviewCollapsed$]).pipe((0,E.U)(([K,ee,ae])=>K&&(!ee||!ae)))}toggleSection(K){this.menuService.expandMenuPreview(this.menuID),super.toggleSection(K)}adminMenuSubsectionId(K,ee){return`admin-menu-section-${K}-${ee}`}}).\u0275fac=function(K){return new(K||l)(n.\u0275\u0275directiveInject("sectionDataProvider"),n.\u0275\u0275directiveInject(_.h),n.\u0275\u0275directiveInject(r.I),n.\u0275\u0275directiveInject(n.Injector),n.\u0275\u0275directiveInject(M.F0))},l.\u0275cmp=n.\u0275\u0275defineComponent({type:l,selectors:[["ds-expandable-admin-sidebar-section"]],features:[n.\u0275\u0275InheritDefinitionFeature],decls:19,vars:40,consts:[[3,"ngClass"],["role","menuitem","tabindex","0","aria-haspopup","menu","href","javascript:void(0);",1,"sidebar-section-wrapper",3,"click","keyup.space"],["data-test","sidebar-section-icon","aria-hidden","true",1,"sidebar-fixed-element-wrapper"],[1,"sidebar-collapsible-element-outer-wrapper"],[1,"sidebar-collapsible-element-inner-wrapper","sidebar-item","toggler-wrapper"],[3,"id"],[4,"ngComponentOutlet","ngComponentOutletInjector"],["aria-hidden","true",1,"fas","fa-chevron-right","fa-xs"],["class","sidebar-section-wrapper subsection",4,"ngIf"],[1,"sidebar-section-wrapper","subsection"],[1,"sidebar-fixed-element-wrapper"],[1,"sidebar-collapsible-element-inner-wrapper"],["role","menu",1,"sidebar-sub-level-item-list",3,"id"],["class","sidebar-item",4,"ngFor","ngForOf"],[1,"sidebar-item"]],template:function(K,ee){1&K&&(n.\u0275\u0275elementStart(0,"div",0),n.\u0275\u0275pipe(1,"async"),n.\u0275\u0275pipe(2,"async"),n.\u0275\u0275pipe(3,"async"),n.\u0275\u0275elementStart(4,"a",1),n.\u0275\u0275listener("click",function(Q){return ee.toggleSection(Q)})("keyup.space",function(Q){return ee.toggleSection(Q)}),n.\u0275\u0275pipe(5,"async"),n.\u0275\u0275pipe(6,"translate"),n.\u0275\u0275elementStart(7,"div",2),n.\u0275\u0275element(8,"i"),n.\u0275\u0275elementEnd(),n.\u0275\u0275elementStart(9,"div",3)(10,"div",4)(11,"span",5),n.\u0275\u0275template(12,C,1,0,"ng-container",6),n.\u0275\u0275pipe(13,"async"),n.\u0275\u0275pipe(14,"async"),n.\u0275\u0275elementEnd(),n.\u0275\u0275element(15,"i",7),n.\u0275\u0275pipe(16,"async"),n.\u0275\u0275elementEnd()()(),n.\u0275\u0275template(17,B,8,8,"div",8),n.\u0275\u0275pipe(18,"async"),n.\u0275\u0275elementEnd()),2&K&&(n.\u0275\u0275property("ngClass",n.\u0275\u0275pureFunction1(33,L,n.\u0275\u0275pipeBind1(1,15,ee.isExpanded$)))("@bgColor",n.\u0275\u0275pureFunction2(37,Y,n.\u0275\u0275pipeBind1(2,17,ee.isExpanded$)?"endBackgroun
1d":"startBackground",n.\u0275\u0275pureFunction1(35,V,n.\u0275\u0275pipeBind1(3,19,ee.sidebarActiveBg$)))),n.\u0275\u0275advance(4),n.\u0275\u0275classProp("disabled",null==ee.section.model?null:ee.section.model.disabled),n.\u0275\u0275attribute("aria-controls",ee.adminMenuSectionId(ee.section.id))("aria-expanded",n.\u0275\u0275pipeBind1(5,21,ee.isExpanded$))("aria-label",n.\u0275\u0275pipeBind1(6,23,"menu.section.toggle."+ee.section.id)),n.\u0275\u0275advance(4),n.\u0275\u0275classMapInterpolate1("fas fa-",ee.section.icon," fa-fw"),n.\u0275\u0275advance(3),n.\u0275\u0275property("id",ee.adminMenuSectionTitleId(ee.section.id)),n.\u0275\u0275advance(1),n.\u0275\u0275property("ngComponentOutlet",n.\u0275\u0275pipeBind1(13,25,ee.sectionMap$).get(ee.section.id).component)("ngComponentOutletInjector",n.\u0275\u0275pipeBind1(14,27,ee.sectionMap$).get(ee.section.id).injector),n.\u0275\u0275advance(3),n.\u0275\u0275property("@rotate",n.\u0275\u0275pipeBind1(16,29,ee.isExpanded$)?"expanded":"collapsed"),n.\u0275\u0275advance(2),n.\u0275\u0275property("ngIf",n.\u0275\u0275pipeBind1(18,31,ee.isExpanded$)))},dependencies:[P.mk,P.$G,P.sg,P.O5,P.Ov,P.Ts,D.X$],styles:["[_nghost-%COMP%] .sidebar-sub-level-item-list[_ngcontent-%COMP%]{list-style:none;margin:0;padding:0}[_nghost-%COMP%] .sidebar-sub-level-item-list[_ngcontent-%COMP%] .ds-menu-item{margin-left:#177ca4}[_nghost-%COMP%] .toggler-wrapper[_ngcontent-%COMP%]{display:flex;flex-direction:row;flex-wrap:nowrap;align-items:center;justify-content:space-between}[_nghost-%COMP%] .subsection[_ngcontent-%COMP%] .sidebar-collapsible-element-inner-wrapper[_ngcontent-%COMP%]{overflow-y:hidden}"],data:{animation:[o.U1,d.JD,m]}}),l);X=(0,t.__decorate)([(0,O.h)(b.z.ADMIN,!0),(0,t.__metadata)("design:paramtypes",[Object,_.h,r.I,n.Injector,M.F0])],X)},12194:(R,c,e)=>{"use strict";e.d(c,{$:()=>d});var t=e(25330),n=e(94650);function o(r,a){}const i=["*"];let d=(()=>{class r extends t.F{constructor(){super(...arguments),this.inAndOutputNames=["collapsedSidebarWidth$","expandedSidebarWidth$"]}getComponentName(){return"AdminSidebarComponent"}importThemedComponent(p){return e(90401)(`./${p}/app/admin/admin-sidebar/admin-sidebar.component`)}importUnthemedComponent(){return Promise.resolve().then(e.bind(e,61503))}}return r.\u0275fac=function(){let a;return function(h){return(a||(a=n.\u0275\u0275getInheritedFactory(r)))(h||r)}}(),r.\u0275cmp=n.\u0275\u0275defineComponent({type:r,selectors:[["ds-themed-admin-sidebar"]],inputs:{expandedSidebarWidth$:"expandedSidebarWidth$",collapsedSidebarWidth$:"collapsedSidebarWidth$"},features:[n.\u0275\u0275InheritDefinitionFeature],ngContentSelectors:i,decls:5,vars:0,consts:[["vcr",""],["content",""]],template:function(p,h){1&p&&(n.\u0275\u0275projectionDef(),n.\u0275\u0275template(0,o,0,0,"ng-template",null,0,n.\u0275\u0275templateRefExtractor),n.\u0275\u0275elementStart(2,"div",null,1),n.\u0275\u0275projection(4),n.\u0275\u0275elementEnd())},encapsulation:2}),r})()},50503:(R,c,e)=>{"use strict";e.d(c,{$r:()=>V,AZ:()=>Ae,Ao:()=>b,Bw:()=>K,EH:()=>m,Gz:()=>Me,IB:()=>_,Le:()=>I,QX:()=>q,T5:()=>g,Tt:()=>k,V5:()=>P,Wb:()=>C,Y4:()=>te,Yn:()=>X,be:()=>j,cU:()=>l,dd:()=>ee,fP:()=>G,gL:()=>E,gs:()=>v,h:()=>M,jF:()=>D,lz:()=>ne,m3:()=>B,mG:()=>ce,pH:()=>L,ro:()=>Q,sF:()=>ie,sr:()=>oe,vv:()=>ye,wU:()=>h,y2:()=>ae});var t=e(21721),n=e(22979),o=e(33609),i=e(43438),d=e(95376),r=e(40747),a=e(24702),p=e(23631);const h="bitstreams",m="bitstream";function _(){return`/${h}`}function v(Je){return new p.R(_(),Je.uuid,"download").toString()}function E(Je,_t){return{routerLink:new p.R((0,r.TO)(),Je.uuid,"request-a-copy").toString(),queryParams:{bitstream:_t.uuid}}}const O="admin";function b(){return`/${O}`}const M="admin";function P(){return`/${M}`}const D="profile";function l(){return`/${D}`}const C="register";function I(){return`/${C}`}const g="forgot";function B(){return`/${g}`}const L="workflowitems";function V(){return`/${L}`}const Y="workspaceitems";function X(){return`/${Y}`}function te(Je){if((0,a.Uh)(Je))switch(Je.type){case t.S.type.value:return(0,i.Ke)(Je.uuid);case n.F.type.value:return(0,d.MI)(Je.uuid);case o.c.type.value:return(0,r.Tt)(Je)}}const K="403";function ee(){return`/${K}`}const ae="404";function Q(){return`/${ae}`}const j="500";function k(){return`/${j}`}const G="error",ie="info";function ne(){return`/${ie}`}const q="access-control";function oe(){return`/${q}`}const ce="request-a-copy";function ye(){return`/${ce}`}const Me="health",Ee="subscriptions";function Ae(){return`/${Ee}`}},27239:(R,c,e)=>{"use strict";e.d(c,{oO:()=>ht,GY:()=>vt,$y:()=>je,z7:()=>Zt});var t=e(66943),n=e(89653),o=e(79642);
1const i={editEPerson:null};var r=e(82980);const a={editGroup:null};var h=e(59898);const m={editSchema:null,selectedSchemas:[],editField:null,selectedFields:[]};var v=e(73241);const E={expandedNodes:[],loadingNode:null};var b=e(24702),M=e(61353);function D(We,Ne,ze){return Object.assign({},We,{[Ne]:ze})}var l=e(19522),C=e(64509),I=e.n(C),g=e(47918),B=e.n(g);const L=Object.create(null);var k=e(53342),G=e(78969);const ie={[G.z.ADMIN]:{id:G.z.ADMIN,collapsed:!0,previewCollapsed:!0,visible:!1,sections:{},sectionToSubsectionIndex:{}},[G.z.PUBLIC]:{id:G.z.PUBLIC,collapsed:!0,previewCollapsed:!0,visible:!0,sections:{},sectionToSubsectionIndex:{}},[G.z.DSO_EDIT]:{id:G.z.DSO_EDIT,collapsed:!0,previewCollapsed:!0,visible:!1,sections:{},sectionToSubsectionIndex:{}}};function It(We,Ne,ze){const bt=We[Ne.menuID],En=Object.assign({},bt.sections,{[ze.id]:ze}),wn=Object.assign({},bt,{sections:En});return Object.assign({},We,{[Ne.menuID]:wn})}function it(We,Ne,ze){const En=We[Ne.menuID].sections[Ne.id];return(0,b.Uh)(En)?It(We,Ne,Object.assign({},En,ze)):We}var Be=e(98171);const Xe=[];var Yt=e(13160);function At(We){return{id:We,selection:[]}}function Rt(We,Ne){return We.findIndex(ze=>ze.equals(Ne))>=0}var Pt=e(15636);const xt=Object.create(null);var Ut=e(76774);const ke=Object.create({});var gt=e(70323);const zt={width:null,height:null};var Vt=e(9501);const $n=Object.create(null);var Ft=e(73725);const St={sidebarCollapsed:!0};var Xt=e(84891);const st=Object.create(null);var Le=e(20337);const qe={currentTheme:null};var Jt=e(35057),Wt=e(790);const qt={allIconsVisible:!1,models:{}};function dt(We,Ne,ze){const{[Ne]:bt,...En}=We.models,nr={...En,[Ne]:{...bt,isTooltipVisible:ze(bt.isTooltipVisible)}};return{...We,models:nr}}const ht={router:t.mg,hostWindow:function hn(We=zt,Ne){return Ne.type===gt.L.RESIZE?Object.assign({},We,Ne.payload):We},forms:function V(We=L,Ne){switch(Ne.type){case l.j4.FORM_INIT:return function K(We,Ne){const ze={data:Ne.payload.formData,valid:Ne.payload.valid,touched:{},errors:[]};
1if((0,b.Uh)(We[Ne.payload.formId])){const bt=Object.assign({},We);return bt[Ne.payload.formId]=Object.assign({},bt[Ne.payload.formId],ze),bt}return Object.assign({},We,{[Ne.payload.formId]:ze})}(We,Ne);case l.j4.FORM_CHANGE:return function ee(We,Ne){if((0,b.Uh)(We[Ne.payload.formId])){const ze=Object.assign({},We);return ze[Ne.payload.formId]=Object.assign({},ze[Ne.payload.formId],{data:Ne.payload.formData,valid:We[Ne.payload.formId].valid}),ze}return We}(We,Ne);case l.j4.FORM_ADD_TOUCHED:return function j(We,Ne){if((0,b.Uh)(We[Ne.payload.formId])){const ze=Object.assign({},We),bt=Object.assign({},ze[Ne.payload.formId]);return ze[Ne.payload.formId]=bt,bt.touched={...bt.touched},Ne.payload.touched.forEach(En=>bt.touched[En]=!0),ze}return We}(We,Ne);case l.j4.FORM_REMOVE:return function Q(We,Ne){if((0,b.Uh)(We[Ne.payload.formId])){const ze=Object.assign({},We);return delete ze[Ne.payload.formId],ze}return We}(We,Ne);case l.j4.FORM_STATUS_CHANGE:return function ae(We,Ne){if((0,b.Uh)(We[Ne.payload.formId])){const ze=Object.assign({},We);return ze[Ne.payload.formId]=Object.assign({},ze[Ne.payload.formId],{data:We[Ne.payload.formId].data,valid:Ne.payload.valid}),ze}return Object.assign({},We,{[Ne.payload.formId]:{data:We[Ne.payload.formId].data,valid:Ne.payload.valid}})}(We,Ne);case l.j4.FORM_ADD_ERROR:return function Y(We,Ne){const ze=Ne.payload.formId;if((0,b.Uh)(We[ze])){const bt={fieldId:Ne.payload.fieldId,fieldIndex:Ne.payload.fieldIndex,message:Ne.payload.errorMessage},En=Ne.payload.fieldId.replace(/\_/g,"."),wn=Object.assign({},We[ze].touched,{[En]:!0});return Object.assign({},We,{[ze]:{data:We[ze].data,valid:We[ze].valid,errors:We[ze].errors?B()(We[ze].errors.concat(bt),I()):[].concat(bt),touched:wn}})}return We}(We,Ne);case l.j4.FORM_REMOVE_ERROR:return function X(We,Ne){const ze=Ne.payload.formId,bt=Ne.payload.fieldId,En=Ne.payload.fieldIndex;if((0,b.Uh)(We[ze])){const wn=We[ze].errors.filter(Cn=>Cn.fieldId!==bt||Cn.fieldIndex!==En),nr=Object.assign({},We);return nr[ze]=Object.assign({},We[ze],{errors:wn}),nr}return We}(We,Ne);case l.j4.FORM_CLEAR_ERRORS:return function te(We,Ne){const ze=Ne.payload.formId;if((0,b.Uh)(We[ze])){const bt=[],En=Object.assign({},We);return En[ze]=Object.assign({},We[ze],{errors:bt}),En}return We}(We,Ne);default:return We}},metadataRegistry:function _(We=m,Ne){switch(Ne.type){case h.D$.EDIT_SCHEMA:return Object.assign({},We,{editSchema:Ne.schema});case h.D$.CANCEL_EDIT_SCHEMA:return Object.assign({},We,{editSchema:null});case h.D$.SELECT_SCHEMA:return Object.assign({},We,{selectedSchemas:[...We.selectedSchemas,Ne.schema]});case h.D$.DESELECT_SCHEMA:return Object.assign({},We,{selectedSchemas:We.selectedSchemas.filter(ze=>ze!==Ne.schema)});case h.D$.DESELECT_ALL_SCHEMA:return Object.assign({},We,{selectedSchemas:[]});case h.D$.EDIT_FIELD:return Object.assign({},We,{editField:Ne.field});case h.D$.CANCEL_EDIT_FIELD:return Object.assign({},We,{editField:null});case h.D$.SELECT_FIELD:return Object.assign({},We,{selectedFields:[...We.selectedFields,Ne.field]});case h.D$.DESELECT_FIELD:return Object.assign({},We,{selectedFields:We.selectedFields.filter(ze=>ze!==Ne.field)});case h.D$.DESELECT_ALL_FIELD:return Object.assign({},We,{selectedFields:[]});default:return We}},notifications:function pt(We=Xe,Ne){switch(Ne.type){case Be.o0.NEW_NOTIFICATION:return[...We,Ne.payload];case Be.o0.REMOVE_ALL_NOTIFICATIONS:return[];case Be.o0.REMOVE_NOTIFICATION:return((We,Ne)=>We.filter(ze=>ze.id!==Ne.payload))(We,Ne);default:return We}},sidebar:function wt(We=St,Ne){switch(Ne.type){case Ft.kj.COLLAPSE:return Object.assign({},We,{sidebarCollapsed:!0});case Ft.kj.EXPAND:return Object.assign({},We,{sidebarCollapsed:!1});case Ft.kj.TOGGLE:return Object.assign({},We,{sidebarCollapsed:!We.sidebarCollapsed});default:return We}},searchFilter:function Dt(We=$n,Ne){switch(Ne.type){case Vt.l0.INITIALIZE:return Object.assign({},We,{[Ne.filterName]:{filterCollapsed:!Ne.initiallyExpanded,page:1}});case Vt.l0.COLLAPSE:return Object.assign({},We,{[Ne.filterName]:{filterCollapsed:!0,page:We[Ne.filterName].page}});case Vt.l0.EXPAND:return Object.assign({},We,{[Ne.filterName]:{filterCollapsed:!1,page:We[Ne.filterName].page}});case Vt.l0.DECREMENT_PAGE:{const ze=We[Ne.filterName].page-1;return Object.assign({},We,{[Ne.filterName]:{filterCollapsed:We[Ne.filterName].filterCollapsed,page:ze>=1?ze:1}})}case Vt.l0.INCREMENT_PAGE:return Object.assign({},We,{[Ne.filterName]:{filterCollapsed:We[Ne.filterName].filterCollapsed,page:We[Ne.filterName].page+1}});case Vt.l0.RESET_PAGE:return Object.assign({},We,{[Ne.filterName]:{filterCollapsed:We[Ne.filterName].filterCollapsed,page:1}});case Vt.l0.TOGGLE:return Object.assign({},We,{[Ne.filterName]:{filterCollapsed:!We[Ne.filterName].filterCollapsed,page:We[Ne.filterName].page}});default:return We}},truncatable:function xe(We=st,Ne){switch(Ne.type){case Xt.vx.COLLAPSE:return Object.assign({},We,{[Ne.id]:{collapsed:!0}});case Xt.vx.EXPAND:return Object.assign({},We,{[Ne.id]:{collapsed:!1}});case Xt.vx.TOGGLE:return We[Ne.id]||(We[Ne.id]={collapsed:!1}),Object.assign({},We,{[Ne.id]:{collapsed:!We[Ne.id].collapsed}});default:return We}},cssVariables:function ot(We=ke,Ne){switch(Ne.type){case Ut.cd.ADD:{const ze=Ne.payload;return Object.assign({},We,{[ze.name]:ze.value})}case Ut.cd.ADD_ALL:return Object.assign({},We,...Ne.payload.map(({key:bt,value:En})=>({[bt]:En})));case Ut.cd.CLEAR:return ke;default:return We}},theme:function at(We=qe,Ne){return Ne.type===Le.j.SET?{currentTheme:Ne.payload.name}:We},menus:function ne(We=ie,Ne){switch(Ne.type){case k.mk.COLLAPSE_MENU:{const ze=Object.assign({},We[Ne.menuID],{collapsed:!0});return Object.assign({},We,{[Ne.menuID]:ze})}case k.mk.EXPAND_MENU:{const ze=Object.assign({},We[Ne.menuID],{collapsed:!1});return Object.assign({},We,{[Ne.menuID]:ze})}case k.mk.COLLAPSE_MENU_PREVIEW:{const ze=Object.assign({},We[Ne.menuID],{previewCollapsed:!0});return Object.assign({},We,{[Ne.menuID]:ze})}case k.mk.EXPAND_MENU_PREVIEW:{const ze=Object.assign({},We[Ne.menuID],{previewCollapsed:!1});return Object.assign({},We,{[Ne.menuID]:ze})}case k.mk.TOGGLE_MENU:{const ze=We[Ne.menuID],bt=Object.assign({},ze,{collapsed:!ze.collapsed});return Object.assign({},We,{[Ne.menuID]:bt})}case k.mk.SHOW_MENU:{const ze=Object.assign({},We[Ne.menuID],{visible:!0});return Object.assign({},We,{[Ne.menuID]:ze})}case k.mk.HIDE_MENU:{const ze=Object.assign({},We[Ne.menuID],{visible:!1});return Object.assign({},We,{[Ne.menuID]:ze})}case k.mk.REINIT_MENUS:return Object.assign({},ie);case k.mk.ADD_SECTION:return function q(We,Ne){return function oe(We,Ne){const ze=We[Ne.menuID],bt={},En={};Object.values(ze.sections).sort((nr,Cn)=>
1(nr.index||0)-(Cn.index||0)).forEach(nr=>{if(bt[nr.id]=nr,(0,b.Uh)(nr.parentID)){const Cn=(0,b.Uh)(En[nr.parentID])?En[nr.parentID]:[];En[nr.parentID]=[...Cn,nr.id]}});const wn=Object.assign({},ze,{sections:bt,sectionToSubsectionIndex:En});return Object.assign({},We,{[Ne.menuID]:wn})}(It(We,Ne,Ne.section),Ne)}(We,Ne);case k.mk.REMOVE_SECTION:return function ce(We,Ne){const bt=Ne.id,En=function ye(We,Ne,ze){const bt=Ne.id,En=Ne.parentID;if((0,b.Uh)(En)){const wn=We[ze],nr=wn.sectionToSubsectionIndex,Cn=(0,b.Uh)(nr[En])?nr[En]:[],bn=Object.assign({},nr,{[En]:Cn.filter(Dn=>Dn!==bt)}),cn=Object.assign({},wn,{sectionToSubsectionIndex:bn});return Object.assign({},We,{[ze]:cn})}return We}(We,We[Ne.menuID].sections[Ne.id],Ne.menuID),wn=Object.assign({},En[Ne.menuID],{sections:Object.assign({},En[Ne.menuID].sections)});return delete wn.sections[bt],Object.assign({},En,{[Ne.menuID]:wn})}(We,Ne);case k.mk.ACTIVATE_SECTION:return function Je(We,Ne){if((0,b.Uh)(We[Ne.menuID].sections[Ne.id]))return it(We,Ne,{active:!0})}(We,Ne);case k.mk.DEACTIVATE_SECTION:return function Ae(We,Ne){if((0,b.Uh)(We[Ne.menuID].sections[Ne.id]))return it(We,Ne,{active:!1})}(We,Ne);case k.mk.TOGGLE_ACTIVE_SECTION:return function _t(We,Ne){const ze=We[Ne.menuID].sections[Ne.id];return(0,b.Uh)(ze)?it(We,Ne,{active:!ze.active}):We}(We,Ne);case k.mk.HIDE_SECTION:return function Me(We,Ne){return it(We,Ne,{visible:!1})}(We,Ne);case k.mk.SHOW_SECTION:return function Ee(We,Ne){return it(We,Ne,{visible:!0})}(We,Ne);default:return We}},objectSelection:function lt(We=xt,Ne){switch(Ne.type){case Pt.xZ.INITIAL_SELECT:return(0,b.xb)(We)||(0,b.xb)(We[Ne.key])||(0,b.xb)(We[Ne.key][Ne.id])?Object.assign({},We,{[Ne.key]:Object.assign({},We[Ne.key],{[Ne.id]:{checked:!0}})}):We;case Pt.xZ.INITIAL_DESELECT:return(0,b.xb)(We)||(0,b.xb)(We[Ne.key])||(0,b.xb)(We[Ne.key][Ne.id])?Object.assign({},We,{[Ne.key]:Object.assign({},We[Ne.key],{[Ne.id]:{checked:!1}})}):We;case Pt.xZ.SELECT:return Object.assign({},We,{[Ne.key]:Object.assign({},We[Ne.key],{[Ne.id]:{checked:!0}})});case Pt.xZ.DESELECT:return Object.assign({},We,{[Ne.key]:Object.assign({},We[Ne.key],{[Ne.id]:{checked:!1}})});case Pt.xZ.SWITCH:return Object.assign({},We,{[Ne.key]:Object.assign({},We[Ne.key],{[Ne.id]:{checked:!!((0,b.xb)(We)||(0,b.xb)(We[Ne.key])||(0,b.xb)(We[Ne.key][Ne.id]))||!We[Ne.key][Ne.id].checked}})});case Pt.xZ.RESET:return(0,b.xb)(Ne.key)?{}:Object.assign({},We,{[Ne.key]:{}});default:return We}},selectableLists:function nt(We={},Ne){const ze=We[Ne.id]||At(Ne.id);switch(Ne.type){case Yt.I9.SELECT:{const bt=function mt(We,Ne){const ze=Ne.payload.filter(En=>!Rt(We.selection,En)),bt=[...We.selection,...ze];return Object.assign({},We,{selection:bt})}(ze,Ne);return Object.assign({},We,{[Ne.id]:bt})}case Yt.I9.SELECT_SINGLE:{const bt=function en(We,Ne){let ze=We.selection;return Rt(We.selection,Ne.payload.object)||(ze=[...We.selection,Ne.payload.object]),Object.assign({},We,{selection:ze})}(ze,Ne);return Object.assign({},We,{[Ne.id]:bt})}case Yt.I9.DESELECT:{const bt=function pn(We,Ne){const ze=We.selection.filter(bt=>(0,b.xI)(Ne.payload.find(En=>En.equals(bt))));return Object.assign({},We,{selection:ze})}(ze,Ne);return Object.assign({},We,{[Ne.id]:bt})}case Yt.I9.DESELECT_SINGLE:{const bt=function tt(We,Ne){const ze=We.selection.filter(bt=>!bt.equals(Ne.payload));return Object.assign({},We,{selection:ze})}(ze,Ne);return Object.assign({},We,{[Ne.id]:bt})}case Yt.I9.SET_SELECTION:{const bt=function Tt(We,Ne){return Object.assign({},We,{selection:Ne.payload})}(ze,Ne);return Object.assign({},We,{[Ne.id]:bt})}case Yt.I9.DESELECT_ALL:{const bt=At(Ne.id);return Object.assign({},We,{[Ne.id]:bt})}default:return We}},relationshipLists:function P(We={},Ne){switch(Ne.type){case M.Ju.SET_NAME_VARIANT:{const En=D(We[Ne.payload.listID]||{},Ne.payload.itemID,Ne.payload.nameVariant);return Object.assign({},We,{[Ne.payload.listID]:En})}case M.Ju.REMOVE_NAME_VARIANT:{const ze=We[Ne.payload.listID];if((0,b.Uh)(ze)&&(0,b.Uh)(ze[Ne.payload.itemID])){const bt=D(ze,Ne.payload.itemID,void 0);return Object.assign({},We,{[Ne.payload.listID]:bt})}return We}default:return We}},communityList:function O(We=E,Ne){return Ne.type===v.C.SAVE?Object.assign({},We,{expandedNodes:Ne.payload.expandedNodes,loadingNode:Ne.payload.loadingNode}):We},epeopleRegistry:function d(We=i,Ne){switch(Ne.type){case o.FS.EDIT_EPERSON:return Object.assign({}
1,We,{editEPerson:Ne.eperson});case o.FS.CANCEL_EDIT_EPERSON:return Object.assign({},We,{editEPerson:null});default:return We}},groupRegistry:function p(We=a,Ne){switch(Ne.type){case r.Ow.EDIT_GROUP:return Object.assign({},We,{editGroup:Ne.group});case r.Ow.CANCEL_EDIT_GROUP:return Object.assign({},We,{editGroup:null});default:return We}},correlationId:(We=null,Ne)=>Ne.type===Jt.v.SET?Ne.payload:We,contextHelp:function un(We=qt,Ne){switch(Ne.type){case Wt.Ts.CONTEXT_HELP_TOGGLE_ICONS:return{...We,allIconsVisible:!We.allIconsVisible};case Wt.Ts.CONTEXT_HELP_ADD:{const ze={...We.models,[Ne.model.id]:Ne.model};return{...We,models:ze}}case Wt.Ts.CONTEXT_HELP_REMOVE:{const{[Ne.id]:ze,...bt}=We.models;return{...We,models:bt}}case Wt.Ts.CONTEXT_HELP_TOGGLE_TOOLTIP:return dt(We,Ne.id,ze=>!ze);case Wt.Ts.CONTEXT_HELP_SHOW_TOOLTIP:return dt(We,Ne.id,ze=>!0);case Wt.Ts.CONTEXT_HELP_HIDE_TOOLTIP:return dt(We,Ne.id,ze=>!1);default:return We}}},je=We=>We.router;function vt(We,Ne){return(0,n.P1)(Ne,ze=>{if((0,b.Uh)(ze))return ze[We]})}const Zt={runtimeChecks:{strictStateImmutability:!0,strictActionImmutability:!0}}},83772:(R,c,e)=>{"use strict";e.d(c,{a:()=>t});class t{constructor(o,i){this.text=o,this.url=i}}},3999:(R,c,e)=>{"use strict";e.r(c),e.d(c,{BreadcrumbsComponent:()=>M});var t=e(94650),n=e(56579),o=e(36895),i=e(9769),d=e(34793),r=e(98605),a=e(89383);function p(P,D){1&P&&t.\u0275\u0275elementContainer(0)}function h(P,D){1&P&&t.\u0275\u0275elementContainer(0)}function m(P,D){if(1&P&&(t.\u0275\u0275elementContainerStart(0),t.\u0275\u0275template(1,h,1,0,"ng-container",6),t.\u0275\u0275elementContainerEnd()),2&P){const l=D.$implicit,C=D.last;t.\u0275\u0275nextContext(2);const I=t.\u0275\u0275reference(4),g=t.\u0275\u0275reference(6);t.\u0275\u0275advance(1),t.\u0275\u0275property("ngTemplateOutlet",C?g:I)("ngTemplateOutletContext",l)}}const _=function(){return{text:"home.breadcrumbs",url:"/"}};function v(P,D){if(1&P&&(t.\u0275\u0275elementStart(0,"nav",4)(1,"ol",5),t.\u0275\u0275template(2,p,1,0,"ng-container",6),t.\u0275\u0275template(3,m,2,2,"ng-container",7),t.\u0275\u0275elementEnd()()),2&P){const l=t.\u0275\u0275nextContext().ngVar,C=t.\u0275\u0275reference(4),I=t.\u0275\u0275reference(6);t.\u0275\u0275advance(2),t.\u0275\u0275property("ngTemplateOutlet",(null==l?null:l.length)>0?C:I)("ngTemplateOutletContext",t.\u0275\u0275pureFunction0(3,_)),t.\u0275\u0275advance(1),t.\u0275\u0275property("ngForOf",l)}}function E(P,D){if(1&P&&(t.\u0275\u0275elementStart(0,"li",8)(1,"div",9)(2,"a",10),t.\u0275\u0275pipe(3,"translate"),t.\u0275\u0275text(4),t.\u0275\u0275pipe(5,"translate"),t.\u0275\u0275elementEnd()()()),2&P){const l=D.text,C=D.url;t.\u0275\u0275advance(2),t.\u0275\u0275property("routerLink",C)("ngbTooltip",t.\u0275\u0275pipeBind1(3,3,l)),t.\u0275\u0275advance(2),t.\u0275\u0275textInterpolate(t.\u0275\u0275pipeBind1(5,5,l))}}function O(P,D){if(1&P&&(t.\u0275\u0275elementStart(0,"li",11)(1,"div",9)(2,"div",12),t.\u0275\u0275text(3),t.\u0275\u0275pipe(4,"translate"),t.\u0275\u0275elementEnd()()()),2&P){const l=D.text;t.\u0275\u0275advance(3),t.\u0275\u0275textInterpolate(t.\u0275\u0275pipeBind1(4,1,l))}}function b(P,D){if(1&P&&(t.\u0275\u0275elementContainerStart(0),t.\u0275\u0275template(1,v,4,4,"nav",1),t.\u0275\u0275pipe(2,"async"),t.\u0275\u0275template(3,E,6,7,"ng-template",null,2,t.\u0275\u0275templateRefExtractor),t.\u0275\u0275template(5,O,5,3,"ng-template",null,3,t.\u0275\u0275templateRefExtractor),t.\u0275\u0275elementContainerEnd()),2&P){const l=t.\u0275\u0275nextContext();t.\u0275\u0275advance(1),t.\u0275\u0275property("ngIf",t.\u0275\u0275pipeBind1(2,1,l.showBreadcrumbs$))}}let M=(()=>{class P{constructor(l){this.breadcrumbsService=l,this.breadcrumbs$=l.breadcrumbs$,this.showBreadcrumbs$=l.showBreadcrumbs$}}return P.\u0275fac=function(l){return new(l||P)(t.\u0275\u0275directiveInject(n.d))},P.\u0275cmp=t.\u0275\u0275defineComponent({type:P,selectors:[["ds-breadcrumbs"]],decls:2,vars:3,consts:[[4,"ngVar"],["aria-label","breadcrumb","class","nav-breadcrumb",4,"ngIf"],["breadcrumb",""],["activeBreadcrumb",""],["aria-label","breadcrumb",1,"nav-breadcrumb"],[1,"container","breadcrumb","my-0"],[4,"ngTemplateOutlet","ngTemplateOutletContext"],[4,"ngFor","ngForOf"],[1,"breadcrumb-item"],[1,"breadcrumb-item-limiter"],["placement","bottom",1,"text-truncate",3,"routerLink","ngbTooltip"],["aria-current","page",1,"breadcrumb-item","active"],[1,"text-truncate"]],template:function(l,C){1&l&&(t.\u0275\u0275template(0,b,7,3,"ng-container",0),t.\u0275\u0275pipe(1,"async")),2&l&&t.\u0275\u0275property("ngVar",t.\u0275\u0275pipeBind1(1,1,C.breadcrumbs$))},dependencies:[o.sg,o.O5,o.tP,i._L,d.rH,r.g,o.Ov,a.X$],styles:['@charset "UTF-8";.nav-breadcrumb[_ngcontent-%COMP%]{background-color:var(--ds-breadcrumb-bg)}.breadcrumb[_ngcontent-%COMP%]{border-radius:0;padding-bottom:calc(var(--ds-content-spacing) / 2);padding-top:calc(var(--ds-content-spacing) / 2);background-color:var(--ds-breadcrumb-bg)}li.breadcrumb-item[_ngcontent-%COMP%]{display:flex}.breadcrumb-item-limiter[_ngcontent-%COMP%]{display:inline-block;max-width:var(--ds-breadcrumb-max-length)}.breadcrumb-item-limiter[_ngcontent-%COMP%] > *[_ngcontent-%COMP%]{max-width:100%;display:block}li.breadcrumb-item[_ngcontent-%COMP%] a[_ngcontent-%COMP%]{color:var(--ds-breadcrumb-link-color)}li.breadcrumb-item.active[_ngcontent-%COMP%]{color:var(--ds-breadcrumb-link-active-color)}.breadcrumb-item[_ngcontent-%COMP%] + .breadcrumb-item[_ngcontent-%COMP%]:before{content:"\\2022"!important}.breadcrumb-item[_ngcontent-%COMP%] + .breadcrumb-item[_ngcontent-%COMP%]:before{display:block}']}),P})()},56579:(R,c,e)=>{"use strict";e.d(c,{d:()=>_});var t=e(4707),n=e(39841),o=e(39646),i=e(34793),d=e(39300),r=e(18505),a=e(63900),p=e(54004),h=e(24702),m=e(94650);let _=(()=>{class v{constructor(O,b){this.route=O,this.router=b,this.breadcrumbs$=new t.t(1),this.showBreadcrumbs$=new t.t(1)}listenForRouteChanges(){this.router.events.pipe((0,d.h)(O=>O instanceof i.m2),(0,r.b)(()=>this.reset()),(0,a.w)(()=>this.resolveBreadcrumbs(this.route.root))).subscribe(this.breadcrumbs$)}resolveBreadcrumbs(O){const b=O.snapshot.data,M=O.snapshot.routeConfig,P=(0,h.xI)(O.firstChild);if(P&&((0,h.Uh)(b.showBreadcrumbs)?this.showBreadcrumbs$.next(b.
1showBreadcrumbs):(0,h.o8)(b.breadcrumb)&&this.showBreadcrumbs$.next(!1)),(0,h.Uh)(b)&&(0,h.Uh)(b.breadcrumb)&&(0,h.Uh)(M)&&(0,h.Uh)(M.resolve)&&(0,h.Uh)(M.resolve.breadcrumb)){const{provider:D,key:l,url:C}=b.breadcrumb;return P?D.getBreadcrumbs(l,C):(0,n.a)(D.getBreadcrumbs(l,C),this.resolveBreadcrumbs(O.firstChild)).pipe((0,p.U)(I=>[].concat.apply([],I)))}return P?(0,o.of)([]):this.resolveBreadcrumbs(O.firstChild)}reset(){this.showBreadcrumbs$.next(!0)}}return v.\u0275fac=function(O){return new(O||v)(m.\u0275\u0275inject(i.gz),m.\u0275\u0275inject(i.F0))},v.\u0275prov=m.\u0275\u0275defineInjectable({token:v,factory:v.\u0275fac,providedIn:"root"}),v})()},71362:(R,c,e)=>{"use strict";e.d(c,{e:()=>d});var t=e(25330),n=e(94650);function o(r,a){}const i=["*"];let d=(()=>{class r extends t.F{getComponentName(){return"BreadcrumbsComponent"}importThemedComponent(p){return e(64178)(`./${p}/app/breadcrumbs/breadcrumbs.component`)}importUnthemedComponent(){return Promise.resolve().then(e.bind(e,3999))}}return r.\u0275fac=function(){let a;return function(h){return(a||(a=n.\u0275\u0275getInheritedFactory(r)))(h||r)}}(),r.\u0275cmp=n.\u0275\u0275defineComponent({type:r,selectors:[["ds-themed-breadcrumbs"]],features:[n.\u0275\u0275InheritDefinitionFeature],ngContentSelectors:i,decls:5,vars:0,consts:[["vcr",""],["content",""]],template:function(p,h){1&p&&(n.\u0275\u0275projectionDef(),n.\u0275\u0275template(0,o,0,0,"ng-template",null,0,n.\u0275\u0275templateRefExtractor),n.\u0275\u0275elementStart(2,"div",null,1),n.\u0275\u0275projection(4),n.\u0275\u0275elementEnd())},encapsulation:2}),r})()},20959:(R,c,e)=>{"use strict";e.d(c,{B:()=>E});var t=e(83360),n=e(24702),o=e(54004),i=e(63900),d=e(68285),r=e(39646),a=e(87367),p=e(83616),h=e(50503),m=e(94650),_=e(89383),v=e(34793);let E=(()=>{class O{constructor(M,P,D,l,C){this.dsoService=M,this.translate=P,this.browseDefinitionService=D,this.dsoNameService=l,this.router=C}canActivate(M,P){const D=M.data.title,l=M.params.id||M.queryParams.id||M.data.id;let C;C=(0,n.xI)(M.data.browseDefinition)&&(0,n.Uh)(l)?this.browseDefinitionService.findById(l).pipe((0,d.hC)(),(0,o.U)(L=>L.payload)):(0,r.of)(M.data.browseDefinition);const I=M.queryParams.scope,g=M.queryParams.value,B=this.translate.instant(`browse.metadata.${l}`);return C.pipe((0,i.w)(L=>(0,n.Uh)(L)?(0,n.Uh)(I)?this.dsoService.findById(I).pipe((0,d.Gp)()).pipe((0,o.U)(Y=>{const X=this.dsoNameService.getName(Y);return M.data=this.createData(D,l,L,X,B,g,M),!0})):(M.data=this.createData(D,l,L,"",B,g,M),(0,r.of)(!0)):(this.router.navigate([h.y2]),(0,r.of)(!1))))}createData(M,P,D,l,C,I,g){return Object.assign({},g.data,{title:M,id:P,browseDefinition:D,collection:l,field:C,value:(0,n.Uh)(I)?`"${I}"`:""})}}return O.\u0275fac=function(M){return new(M||O)(m.\u0275\u0275inject(t.D),m.\u0275\u0275inject(_.sK),m.\u0275\u0275inject(a.v),m.\u0275\u0275inject(p._),m.\u0275\u0275inject(v.F0))},O.\u0275prov=m.\u0275\u0275defineInjectable({token:O,factory:O.\u0275fac}),O})()},33996:(R,c,e)=>{"use strict";e.r(c),e.d(c,{BBM_PAGINATION_ID:()=>Ae,BrowseByMetadataPageComponent:()=>Je,browseParamsToOptions:()=>It,getBrowseSearchOptions:()=>_t});var t=e(39646),n=e(39841),o=e(94650),i=e(4177),d=e(42943),r=e(24702),a=e(27645);class p{constructor(Be,Xe,pt,Mt,Yt,nt){this.metadataDefinition=Be,this.pagination=Xe,this.sort=pt,this.startsWith=Mt,this.scope=Yt,this.fetchThumbnail=nt}}var h=e(68285),m=e(83360),_=e(37308),v=e(77467),E=e(54004),O=e(71884),b=e(39300),M=e(86099),P=e(93369),D=e(63645),l=e(83616),C=e(36895),I=e(21540),g=e(34793),B=e(56732),L=e(75838),V=e(62512),Y=e(38187),X=e(56572),te=e(38934),K=e(74009),ee=e(48106),ae=e(98605),Q=e(89383);function j(it,Be){if(1&it&&(o.\u0275\u0275element(0,"ds-comcol-page-logo",16),o.\u0275\u0275pipe(1,"async")),2&it){const Xe=o.\u0275\u0275nextContext(4);let pt;o.\u0275\u0275property("logo",null==(pt=o.\u0275\u0275pipeBind1(1,2,Xe.logo$))?null:pt.payload)("alternateText","Community or Collection Logo")}}function k(it,Be){if(1&it&&(o.\u0275\u0275elementContainerStart(0),o.\u0275\u0275elementStart(1,"div",8)(2,"header",9),o.\u0275\u0275element(3,"ds-comcol-page-header",10),o.\u0275\u0275template(4,j,2,4,"ds-comcol-page-logo",11),o.\u0275\u0275element(5,"ds-themed-comcol-page-handle",12)(6,"ds-comcol-page-content",13)(7,"ds-comcol-page-content",14),o.\u0275\u0275elementEnd(),o.\u0275\u0275element(8,"ds-dso-edit-menu"),o.\u0275\u0275elementEnd(),o.\u0275\u0275element(9,"ds-themed-comcol-page-browse-by",15),o.\u0275\u0275elementContainerEnd()),2&it){const Xe=Be.ngIf,pt=o.\u0275\u0275nextContext(3);o.\u0275\u0275advance(3),o.\u0275\u0275property("name",pt.dsoNameService.getName(Xe)),o.\u0275\u0275advance(1),o.\u0275\u0275property("ngIf",pt.logo$),o.\u0275\u0275advance(1),o.\u0275\u0275property("content",Xe.handle)("title",Xe.type+".page.handle"),o.\u0275\u0275advance(1),o.\u0275\u0275property("content",Xe.introductoryText)("hasInnerHtml",!0),o.\u0275\u0275advance(1),o.\u0275\u0275property("content",Xe.sidebarText)("hasInnerHtml",!0)("title","community.page.news"),o.\u0275\u0275advance(2),o.\u0275\u0275property("id",Xe.id)("contentType",Xe.type)}}function G(it,Be){if(1&it&&(o.\u0275\u0275elementContainerStart(0),o.\u0275\u0275template(1,k,10,11,"ng-container",7),o.\u
10275\u0275elementContainerEnd()),2&it){const Xe=Be.ngVar;o.\u0275\u0275advance(1),o.\u0275\u0275property("ngIf",null==Xe?null:Xe.payload)}}const ie=function(it){return{startsWith:it}},ne=function(it,Be,Xe,pt){return{collection:it,field:Be,startsWith:Xe,value:pt}};function q(it,Be){if(1&it){const Xe=o.\u0275\u0275getCurrentView();o.\u0275\u0275elementStart(0,"ds-themed-browse-by",17),o.\u0275\u0275listener("prev",function(){o.\u0275\u0275restoreView(Xe);const Mt=o.\u0275\u0275nextContext(2);return o.\u0275\u0275resetView(Mt.goPrev())})("next",function(){o.\u0275\u0275restoreView(Xe);const Mt=o.\u0275\u0275nextContext(2);return o.\u0275\u0275resetView(Mt.goNext())}),o.\u0275\u0275pipe(1,"translate"),o.\u0275\u0275pipe(2,"async"),o.\u0275\u0275pipe(3,"translate"),o.\u0275\u0275pipe(4,"translate"),o.\u0275\u0275pipe(5,"async"),o.\u0275\u0275pipe(6,"async"),o.\u0275\u0275pipe(7,"async"),o.\u0275\u0275elementEnd()}if(2&it){const Xe=o.\u0275\u0275nextContext(2);let pt,Mt;o.\u0275\u0275propertyInterpolate("title",o.\u0275\u0275pipeBind2(1,7,"browse.title",o.\u0275\u0275pureFunction4(25,ne,Xe.dsoNameService.getName(null==(pt=o.\u0275\u0275pipeBind1(2,10,Xe.parent$))?null:pt.payload),o.\u0275\u0275pipeBind1(3,12,"browse.metadata."+Xe.browseId),Xe.startsWith?o.\u0275\u0275pipeBind2(4,14,"browse.startsWith",o.\u0275\u0275pureFunction1(23,ie,'"'+Xe.startsWith+'"')):"",Xe.value?'"'+Xe.value+'"':""))),o.\u0275\u0275propertyInterpolate("parentname",Xe.dsoNameService.getName(null==(Mt=o.\u0275\u0275pipeBind1(5,17,Xe.parent$))?null:Mt.payload)),o.\u0275\u0275property("objects$",void 0!==Xe.items$?Xe.items$:Xe.browseEntries$)("paginationConfig",o.\u0275\u0275pipeBind1(6,19,Xe.currentPagination$))("sortConfig",o.\u0275\u0275pipeBind1(7,21,Xe.currentSort$))("type",Xe.startsWithType)("startsWithOptions",Xe.startsWithOptions)}}function oe(it,Be){1&it&&(o.\u0275\u0275element(0,"ds-themed-loading",18),o.\u0275\u0275pipe(1,"translate")),2&it&&o.\u0275\u0275propertyInterpolate("message",o.\u0275\u0275pipeBind1(1,1,"loading.browse-by-page"))}function ce(it,Be){if(1&it&&(o.\u0275\u0275elementStart(0,"footer",20)(1,"div"),o.\u0275\u0275element(2,"ds-comcol-page-content",13),o.\u0275\u0275elementEnd()()),2&it){const Xe=o.\u0275\u0275nextContext().ngIf;o.\u0275\u0275advance(2),o.\u0275\u0275property("content",Xe.copyrightText)("hasInnerHtml",!0)}}function ye(it,Be){if(1&it&&(o.\u0275\u0275elementContainerStart(0),o.\u0275\u0275template(1,ce,3,2,"footer",19),o.\u0275\u0275elementContainerEnd()),2&it){const Xe=Be.ngIf;o.\u0275\u0275advance(1),o.\u0275\u0275property("ngIf",Xe.copyrightText)}}function Me(it,Be){if(1&it&&(o.\u0275\u0275elementContainerStart(0),o.\u0275\u0275template(1,ye,2,1,"ng-container",7),o.\u0275\u0275elementContainerEnd()),2&it){const Xe=Be.ngVar;o.\u0275\u0275advance(1),o.\u0275\u0275property("ngIf",null==Xe?null:Xe.payload)}}function Ee(it,Be){if(1&it&&(o.\u0275\u0275elementStart(0,"div",1),o.\u0275\u0275template(1,G,2,1,"ng-container",2),o.\u0275\u0275pipe(2,"async"),o.\u0275\u0275elementStart(3,"section",3)(4,"div",4),o.\u0275\u0275template(5,q,8,30,"ds-themed-browse-by",5),o.\u0275\u0275pipe(6,"async"),o.\u0275\u0275template(7,oe,2,3,"ds-themed-loading",6),o.\u0275\u0275pipe(8,"async"),o.\u0275\u0275elementEnd()(),o.\u0275\u0275template(9,Me,2,1,"ng-container",2),o.\u0275\u0275pipe(10,"async"),o.\u0275\u0275elementEnd()),2&it){const Xe=o.\u0275\u0275nextContext();o.\u0275\u0275advance(1),o.\u0275\u0275property("ngVar",o.\u0275\u0275pipeBind1(2,4,Xe.parent$)),o.\u0275\u0275advance(4),o.\u0275\u0275property("ngIf",!o.\u0275\u0275pipeBind1(6,6,Xe.loading$)),o.\u0275\u0275advance(2),o.\u0275\u0275property("ngIf",o.\u0275\u0275pipeBind1(8,8,Xe.loading$)),o.\u0275\u0275advance(2),o.\u0275\u0275property("ngVar",o.\u0275\u0275pipeBind1(10,10,Xe.parent$))}}const Ae="bbm";let Je=(()=>{class it{constructor(Xe,pt,Mt,Yt,nt,mt,en,pn){this.route=Xe,this.browseService=pt,this.dsoService=Mt,this.paginationService=Yt,this.router=nt,this.appConfig=mt,this.dsoNameService=en,this.platformId=pn,this.renderOnServerSide=!1,this.subs=[],this.defaultBrowseId="author",this.browseId=this.defaultBrowseId,this.startsWithType=_.C4.text,this.value="",this.loading$=(0,t.of)(!0),this.ssrRenderingDisabled=!1,this.fetchThumbnails=this.appConfig.browseBy.showThumbnails,this.paginationConfig=Object.assign(new i.r,{id:Ae,currentPage:1,pageSize:this.appConfig.browseBy.pageSize}),this.ssrRenderingDisabled=!this.renderOnServerSide&&!I.N.universal.enableBrowseComponent&&(0,C.PM)(this.platformId)}ngOnInit(){if(this.ssrRenderingDisabled)return void(this.loading$=(0,t.of)(!1));const Xe=new d.o("default",d.S.ASC);this.currentPagination$=this.paginationService.getCurrentPagination(this.paginationConfig.id,this.paginationConfig),this.currentSort$=this.paginationService.getCurrentSort(this.paginationConfig.id,Xe);const pt=(0,n.a)([this.route.params,this.route.queryParams]).pipe((0,E.U)(([Mt,Yt])=>Object.assign({},Mt,Yt)),(0,O.x)((Mt,Yt)=>Mt.id===Yt.id&&Mt.authority===Yt.authority&&Mt.value===Yt.value&&Mt.startsWith===Yt.startsWith));this.subs.push((0,n.a)([pt,this.currentPagination$,this.currentSort$]).subscribe(([Mt,Yt,nt])=>
1{this.browseId=Mt.id||this.defaultBrowseId,this.authority=Mt.authority,this.value="string"==typeof Mt.value?Mt.value.trim():"",(void 0===Mt.startsWith||""===Mt.startsWith)&&(this.startsWith=void 0),"string"==typeof Mt.startsWith&&(this.startsWith=Mt.startsWith.trim()),(0,r.UE)(this.value)?this.updatePageWithItems(It(Mt,Yt,nt,this.browseId,this.fetchThumbnails),this.value,this.authority):this.updatePage(It(Mt,Yt,nt,this.browseId,!1)),this.updateParent(Mt.scope),this.updateLogo()})),this.updateStartsWithTextOptions()}updateStartsWithTextOptions(){this.startsWithOptions=["0-9",..."ABCDEFGHIJKLMNOPQRSTUVWXYZ".split("")]}updatePage(Xe){this.browseEntries$=this.browseService.getBrowseEntriesFor(Xe),this.loading$=this.browseEntries$.pipe((0,E.U)(pt=>pt.isLoading)),this.items$=void 0}updatePageWithItems(Xe,pt,Mt){this.items$=this.browseService.getBrowseItemsFor(pt,Mt,Xe),this.loading$=this.items$.pipe((0,E.U)(Yt=>Yt.isLoading))}updateParent(Xe){(0,r.Uh)(Xe)&&(this.parent$=this.dsoService.findById(Xe,!0,!0,(0,P.l)("logo")).pipe((0,h.xw)()))}updateLogo(){(0,r.Uh)(this.parent$)&&(this.logo$=this.parent$.pipe((0,E.U)(Xe=>Xe.payload),(0,b.h)(Xe=>(0,r.Uh)(Xe.logo)),(0,M.z)(Xe=>Xe.logo)))}goPrev(){this.items$?this.items$.pipe((0,h.xw)()).subscribe(Xe=>{this.items$=this.browseService.getPrevBrowseItems(Xe)}):this.browseEntries$&&this.browseEntries$.pipe((0,h.xw)()).subscribe(Xe=>{this.browseEntries$=this.browseService.getPrevBrowseEntries(Xe)})}goNext(){this.items$?this.items$.pipe((0,h.xw)()).subscribe(Xe=>{this.items$=this.browseService.getNextBrowseItems(Xe)}):this.browseEntries$&&this.browseEntries$.pipe((0,h.xw)()).subscribe(Xe=>{this.browseEntries$=this.browseService.getNextBrowseEntries(Xe)})}ngOnDestroy(){this.subs.filter(Xe=>(0,r.Uh)(Xe)).forEach(Xe=>Xe.unsubscribe()),this.paginationService.clearPagination(this.paginationConfig.id)}}return it.\u0275fac=function(Xe){return new(Xe||it)(o.\u0275\u0275directiveInject(g.gz),o.\u0275\u0275directiveInject(a.I),o.\u0275\u0275directiveInject(m.D),o.\u0275\u0275directiveInject(v.N),o.\u0275\u0275directiveInject(g.F0),o.\u0275\u0275directiveInject(D.q),o.\u0275\u0275directiveInject(l._),o.\u0275\u0275directiveInject(o.PLATFORM_ID))},it.\u0275cmp=o.\u0275\u0275defineComponent({type:it,selectors:[["ds-browse-by-metadata-page"]],inputs:{renderOnServerSide:"renderOnServerSide"},decls:1,vars:1,consts:[["class","container",4,"ngIf"],[1,"container"],[4,"ngVar"],[1,"comcol-page-browse-section"],[1,"browse-by-metadata","w-100"],["class","col-xs-12 w-100",3,"title","parentname","objects$","paginationConfig","sortConfig","type","startsWithOptions","prev","next",4,"ngIf"],[3,"message",4,"ngIf"],[4,"ngIf"],[1,"d-flex","flex-row","border-bottom","mb-4","pb-4"],[1,"comcol-header","mr-auto"],[3,"name"],[3,"logo","alternateText",4,"ngIf"],[3,"content","title"],[3,"content","hasInnerHtml"],[3,"content","hasInnerHtml","title"],[3,"id","contentType"],[3,"logo","alternateText"],[1,"col-xs-12","w-100",3,"title","parentname","objects$","paginationConfig","sortConfig","type","startsWithOptions","prev","next"],[3,"message"],["class","border-top my-5 pt-4",4,"ngIf"],[1,"border-top","my-5","pt-4"]],template:function(Xe,pt){1&Xe&&o.\u0275\u0275template(0,Ee,11,12,"div",0),2&Xe&&o.\u0275\u0275property("ngIf",!pt.ssrRenderingDisabled)},dependencies:[B.h,C.O5,L.v,V.U,Y.e,X.g,te.g,K.g,ee.Z,ae.g,C.Ov,Q.X$]}),it})();function _t(it,Be,Xe,pt){return(0,r.Uh)(pt)||(pt=!1),new p(it,Be,Xe,null,null,pt)}function It(it,Be,Xe,pt,Mt){return new p(pt,Be,Xe,it.startsWith,it.scope,Mt)}},3451:(R,c,e)=>{"use strict";e.d(c,{f:()=>l});var t=e(34793),n=e(20959),o=e(83360),i=e(86362),d=e(68285),r=e(54004),a=e(24702),p=e(50503),h=e(94650);let m=(()=>{class C{constructor(g,B){this.breadcrumbService=g,this.dataService=B}resolve(g,B){const L=g.queryParams.scope;if((0,a.Uh)(L))return this.dataService.findById(L).pipe((0,d.xw)(),(0,d.xe)(),(0,r.U)(V=>({provider:this.breadcrumbService,key:V,url:(0,p.Y4)(V)})))}}return C.\u0275fac=function(g){return new(g||C)(h.\u0275\u0275inject(i.B),h.\u0275\u0275inject(o.D))},C.\u0275prov=h.\u0275\u0275defineInjectable({token:C,factory:C.\u
10275fac}),C})();var _=e(98655),v=e(43001);let E=(()=>{class C extends _.t{constructor(g){super(g),this.breadcrumbService=g}resolve(g,B){return g.data=Object.assign({},g.data,{breadcrumbKey:g.data.breadcrumbKey+"."+g.params.id}),super.resolve(g,B)}}return C.\u0275fac=function(g){return new(g||C)(h.\u0275\u0275inject(v.d))},C.\u0275prov=h.\u0275\u0275defineInjectable({token:C,factory:C.\u0275fac}),C})();var O=e(25330);function b(C,I){}const M=["*"];let P=(()=>{class C extends O.F{getComponentName(){return"BrowseBySwitcherComponent"}importThemedComponent(g){return e(12960)(`./${g}/app/browse-by/browse-by-switcher/browse-by-switcher.component`)}importUnthemedComponent(){return e.e(8592).then(e.bind(e,57106))}}return C.\u0275fac=function(){let I;return function(B){return(I||(I=h.\u0275\u0275getInheritedFactory(C)))(B||C)}}(),C.\u0275cmp=h.\u0275\u0275defineComponent({type:C,selectors:[["ds-themed-browse-by-switcher"]],features:[h.\u0275\u0275InheritDefinitionFeature],ngContentSelectors:M,decls:5,vars:0,consts:[["vcr",""],["content",""]],template:function(g,B){1&g&&(h.\u0275\u0275projectionDef(),h.\u0275\u0275template(0,b,0,0,"ng-template",null,0,h.\u0275\u0275templateRefExtractor),h.\u0275\u0275elementStart(2,"div",null,1),h.\u0275\u0275projection(4),h.\u0275\u0275elementEnd())},encapsulation:2}),C})();var D=e(45792);let l=(()=>{class C{}return C.\u0275fac=function(g){return new(g||C)},C.\u0275mod=h.\u0275\u0275defineNgModule({type:C}),C.\u0275inj=h.\u0275\u0275defineInjector({providers:[E,m],imports:[t.Bz.forChild([{path:"",resolve:{breadcrumb:m,menu:D.M},children:[{path:":id",component:P,canActivate:[n.B],resolve:{breadcrumb:E},data:{title:"browse.title.page",breadcrumbKey:"browse.metadata"}}]}])]}),C})()},26106:(R,c,e)=>{"use strict";e.d(c,{Zt:()=>i,du:()=>p,t3:()=>r});var t=e(24702),n=e(94650),o=e(62921),i=(()=>{return(m=i||(i={})).Title="title",m.Metadata="text",m.Date="date",i;var m})();const d=i.Metadata,r=new n.InjectionToken("getComponentByBrowseByType",{providedIn:"root",factory:()=>h}),a=new Map;function p(m,_=o.t0){return function(E){if((0,t.xI)(a.get(m))&&a.set(m,new Map),!(0,t.xI)(a.get(m).get(_)))throw new Error(`There can't be more than one component to render Browse-By of type "${m}" and theme "${_}"`);a.get(m).set(_,E)}}function h(m,_){let v=a.get(m);(0,t.xI)(v)&&(v=a.get(d));const E=(0,o.An)(v,_);return(0,t.xI)(E)?v.get(o.t0):E}},95376:(R,c,e)=>{"use strict";e.d(c,{$X:()=>h,Cp:()=>n,E1:()=>a,E5:()=>i,GQ:()=>m,Jk:()=>E,MI:()=>d,Ou:()=>r,Po:()=>p,lA:()=>_,yu:()=>o});var t=e(23631);const n="parent",o="collections";function i(){return`/${o}`}function d(O){return new t.R(i(),O).toString()}function r(O){return new t.R(i(),O,_).toString()}function a(){return new t.R(i(),m).toString()}function p(O){return new t.R(d(O),_,v).toString()}function h(O){return new t.R(d(O),E).toString()}const m="create",_="edit",v="roles",E="itemtemplate"},73241:(R,c,e)=>{"use strict";e.d(c,{C:()=>n,Q:()=>o});const n={SAVE:(0,e(79472).d)("dspace/community-list-page/SAVE")};class o{constructor(d,r){this.type=n.SAVE,this.payload={expandedNodes:d,loadingNode:r}}}},43438:(R,c,e)=>{"use strict";e.d(c,{A0:()=>d,GR:()=>m,Ke:()=>r,WY:()=>_,Ww:()=>i,eq:()=>h,jI:()=>o,wH:()=>p,xm:()=>a});var t=e(95376),n=e(23631);const o="parent",i="communities";function d(){return`/${i}`}function r(E){return new n.R(d(),E).toString()}function a(E){return new n.R(d(),E,_).toString()}function p(){return new n.R(d(),m).toString()}function h(E){return new n.R((0,t.MI)(E),_,v).toString()}const m="create",_="edit",v="roles"},51904:(R,c,e)=>{"use strict";e.d(c,{x:()=>_});var t=e(39300),n=e(54004),o=e(71884),i=e(95698),d=e(63900),r=e(18505),a=e(24702),p=e(25130),h=e(68285),m=e(23631);class _{constructor(E,O,b){this.halService=E,this.requestService=O,this.rdbService=b,this.linkName="authn",this.shortlivedtokensEndpoint="shortlivedtokens"}fetchRequest(E,...O){return this.rdbService.buildFromRequestUUID(E,...O).pipe((0,h.hC)())}getEndpointByMethod(E,O,...b){let M=(0,a.UE)(O)?`${E}/${O}`:`${E}`;return b?.length>0&&b.forEach((P,D)=>{M+=(0===D?"?":"&")+`embed=${P.name}`}),M}postToEndpoint(E,O,b){const M=this.requestService.generateRequestId(),P=this.halService.getEndpoint(this.linkName);return P.pipe((0,t.h)(D=>(0,a.UE)(D)),(0,n.U)(D=>this.getEndpointByMethod(D,E)),(0,o.x)(),(0,n.U)(D=>new p.xo(M,D,O,b)),(0,i.q)(1)).subscribe(D=>{this.requestService.send(D)}),P.pipe((0,d.w)(()=>this.fetchRequest(M)))}
1getRequest(E,O,...b){const M=this.requestService.generateRequestId(),P=this.halService.getEndpoint(this.linkName);return P.pipe((0,t.h)(D=>(0,a.UE)(D)),(0,n.U)(D=>this.getEndpointByMethod(D,E,...b)),(0,o.x)(),(0,n.U)(D=>new p.Gl(M,D,void 0,O)),(0,i.q)(1)).subscribe(D=>{this.requestService.send(D)}),P.pipe((0,d.w)(()=>this.fetchRequest(M,...b)))}getShortlivedToken(){return this.halService.getEndpoint(this.linkName).pipe((0,t.h)(E=>(0,a.UE)(E)),(0,o.x)(),(0,n.U)(E=>new m.R(E,this.shortlivedtokensEndpoint).toString()),(0,d.w)(E=>this.createShortLivedTokenRequest(E)),(0,r.b)(E=>this.requestService.send(E)),(0,d.w)(E=>this.rdbService.buildFromRequestUUID(E.uuid)),(0,h.hC)(),(0,n.U)(E=>E.hasSucceeded?E.payload.value:null))}}},64200:(R,c,e)=>{"use strict";e.d(c,{$L:()=>p,Ah:()=>E,DZ:()=>Q,Er:()=>M,HC:()=>te,Hj:()=>v,Ih:()=>a,JA:()=>P,LF:()=>i,OM:()=>r,PW:()=>ee,R_:()=>_,TF:()=>L,Xb:()=>X,_2:()=>Y,aj:()=>K,dl:()=>D,ds:()=>O,gA:()=>C,gY:()=>B,gi:()=>h,jr:()=>m,lm:()=>V,qm:()=>l,sS:()=>n,t$:()=>d,vT:()=>I,wO:()=>g,zn:()=>o,zx:()=>ae});var t=e(79472);const n={AUTHENTICATE:(0,t.d)("dspace/auth/AUTHENTICATE"),AUTHENTICATE_ERROR:(0,t.d)("dspace/auth/AUTHENTICATE_ERROR"),AUTHENTICATE_SUCCESS:(0,t.d)("dspace/auth/AUTHENTICATE_SUCCESS"),AUTHENTICATED:(0,t.d)("dspace/auth/AUTHENTICATED"),AUTHENTICATED_ERROR:(0,t.d)("dspace/auth/AUTHENTICATED_ERROR"),AUTHENTICATED_SUCCESS:(0,t.d)("dspace/auth/AUTHENTICATED_SUCCESS"),CHECK_AUTHENTICATION_TOKEN:(0,t.d)("dspace/auth/CHECK_AUTHENTICATION_TOKEN"),CHECK_AUTHENTICATION_TOKEN_COOKIE:(0,t.d)("dspace/auth/CHECK_AUTHENTICATION_TOKEN_COOKIE"),SET_AUTH_COOKIE_STATUS:(0,t.d)("dspace/auth/SET_AUTH_COOKIE_STATUS"),RETRIEVE_AUTH_METHODS:(0,t.d)("dspace/auth/RETRIEVE_AUTH_METHODS"),RETRIEVE_AUTH_METHODS_SUCCESS:(0,t.d)("dspace/auth/RETRIEVE_AUTH_METHODS_SUCCESS"),RETRIEVE_AUTH_METHODS_ERROR:(0,t.d)("dspace/auth/RETRIEVE_AUTH_METHODS_ERROR"),REDIRECT_TOKEN_EXPIRED:(0,t.d)("dspace/auth/REDIRECT_TOKEN_EXPIRED"),REDIRECT_AUTHENTICATION_REQUIRED:(0,t.d)("dspace/auth/REDIRECT_AUTHENTICATION_REQUIRED"),REFRESH_TOKEN:(0,t.d)("dspace/auth/REFRESH_TOKEN"),REFRESH_TOKEN_SUCCESS:(0,t.d)("dspace/auth/REFRESH_TOKEN_SUCCESS"),REFRESH_TOKEN_ERROR:(0,t.d)("dspace/auth/REFRESH_TOKEN_ERROR"),RETRIEVE_TOKEN:(0,t.d)("dspace/auth/RETRIEVE_TOKEN"),ADD_MESSAGE:(0,t.d)("dspace/auth/ADD_MESSAGE"),RESET_MESSAGES:(0,t.d)("dspace/auth/RESET_MESSAGES"),LOG_OUT:(0,t.d)("dspace/auth/LOG_OUT"),LOG_OUT_ERROR:(0,t.d)("dspace/auth/LOG_OUT_ERROR"),LOG_OUT_SUCCESS:(0,t.d)("dspace/auth/LOG_OUT_SUCCESS"),SET_REDIRECT_URL:(0,t.d)("dspace/auth/SET_REDIRECT_URL"),RETRIEVE_AUTHENTICATED_EPERSON:(0,t.d)("dspace/auth/RETRIEVE_AUTHENTICATED_EPERSON"),RETRIEVE_AUTHENTICATED_EPERSON_SUCCESS:(0,t.d)("dspace/auth/RETRIEVE_AUTHENTICATED_EPERSON_SUCCESS"),RETRIEVE_AUTHENTICATED_EPERSON_ERROR:(0,t.d)("dspace/auth/RETRIEVE_AUTHENTICATED_EPERSON_ERROR"),REDIRECT_AFTER_LOGIN_SUCCESS:(0,t.d)("dspace/auth/REDIRECT_AFTER_LOGIN_SUCCESS"),SET_USER_AS_IDLE:(0,t.d)("dspace/auth/SET_USER_AS_IDLE"),UNSET_USER_AS_IDLE:(0,t.d)("dspace/auth/UNSET_USER_AS_IDLE")};class o{constructor(k,G){this.type=n.AUTHENTICATE,this.payload={email:k,password:G}}}class i{constructor(k){this.type=n.AUTHENTICATED,this.payload=k}}class d{constructor(k,G,ie){this.type=n.AUTHENTICATED_SUCCESS,this.payload={authenticated:k,authToken:G,userHref:ie}}}class r{constructor(k){this.type=n.AUTHENTICATED_ERROR,this.payload=k}}class a{constructor(k){this.type=n.AUTHENTICATE_ERROR,this.payload=k}}class p{constructor(k){this.type=n.AUTHENTICATE_SUCCESS,this.payload=k}}class h{constructor(){this.type=n.CHECK_AUTHENTICATION_TOKEN}}class m{constructor(){this.type=n.CHECK_AUTHENTICATION_TOKEN_COOKIE}}class _{constructor(k){this.type=n.SET_AUTH_COOKIE_STATUS,this.payload=!1,this.payload=k}}class v{constructor(k){this.payload=k,this.type=n.LOG_OUT}}class E{constructor(k){this.type=n.LOG_OUT_ERROR,this.payload=k}}class O{constructor(k){this.payload=k,this.type=n.LOG_OUT_SUCCESS}}class M{constructor(k){this.type=n.REDIRECT_TOKEN_EXPIRED,this.payload=k}}class P{constructor(k){this.type=n.REFRESH_TOKEN,this.payload=k}}class D{constructor(k){this.type=n.REFRESH_TOKEN_SUCCESS,this.payload=k}}class l{constructor(){this.type=n.REFRESH_TOKEN_ERROR}}class C{constructor(){this.type=n.RETRIEVE_TOKEN}}class I{constructor(k){this.type=n.ADD_MESSAGE,this.payload=k}}class g{constructor(){this.type=n.RESET_MESSAGES}}class B{constructor(k){this.type=n.RETRIEVE_AUTH_METHODS,this.payload=k}}class L{constructor(k){this.type=n.RETRIEVE_AUTH_METHODS_SUCCESS,this.payload=k}}class V{constructor(){this.type=n.RETRIEVE_AUTH_METHODS_ERROR}}class Y{constructor(k){this.type=n.SET_REDIRECT_URL,this.payload=k}}class X{constructor(k){this.type=n.REDIRECT_AFTER_LOGIN_SUCCESS,this.payload=k}}class te{constructor(k){this.type=n.RETRIEVE_AUTHENTICATED_EPERSON,this.payload=k}}class K{constructor(k){this.type=n.RETRIEVE_AUTHENTICATED_EPERSON_SUCCESS,this.payload=k}}class ee{constructor(k){this.type=n.RETRIEVE_AUTHENTICATED_EPERSON_ERROR,this.payload=k}}class ae{constructor(){this.type=n.SET_USER_AS_IDLE}}class Q{constructor(){this.type=n.UNSET_USER_AS_IDLE}}},24755:(R,c,e)=>{"use strict";e.d(c,{C0:()=>j,Lx:()=>Q,VI:()=>k,_e:()=>ae,e8:()=>G});var t=e(80529),n=e(38419),o=e(39646),i=e(39300),d=e(68675),r=e(54004),a=e(63900),p=e(95698),h=e(89653),m=e(51904),_=e(7696),v=e(99705),E=e(24702),O=e(57388),b=e(19168),M=e(64200),P=e(13465),D=e(5360),l=e(45061),C=e(68285),I=e(21540),g=e(46418),B=e(24789),L=e(58577),V=e(62713),Y=e(93369),X=e(94650),te=e(34793),K=e(61445),ee=e(89383);const ae="/login",Q="/logout",j="dsRedirectUrl",k="dsImpersonatingEPer
1son";let G=(()=>{class ie{constructor(q,oe,ce,ye,Me,Ee,Ae,Je,_t,It,it,Be){this.req=q,this._window=oe,this.response=ce,this.authRequestService=ye,this.epersonService=Me,this.router=Ee,this.routeService=Ae,this.storage=Je,this.store=_t,this.hardRedirectService=It,this.notificationService=it,this.translateService=Be,this.store.pipe((0,i.h)(Xe=>void 0!==Xe?.core?.auth),(0,h.Ys)(b.$8),(0,d.O)(!1)).subscribe(Xe=>this._authenticated=Xe)}authenticate(q,oe){const ce=`password=${encodeURIComponent(oe)}&user=${encodeURIComponent(q)}`,ye=Object.create({});let Me=new t.WM;return Me=Me.append("Content-Type","application/x-www-form-urlencoded"),ye.headers=Me,this.authRequestService.postToEndpoint("login",ce,ye).pipe((0,r.U)(Ee=>{if((0,E.Uh)(Ee.payload)&&Ee.payload.authenticated)return Ee.payload;throw new Error("auth.errors.invalid-user")}))}checkAuthenticationCookie(){const q=Object.create({});let oe=new t.WM;return oe=oe.append("Accept","application/json"),q.headers=oe,q.withCredentials=!0,this.authRequestService.getRequest("status",q).pipe((0,r.U)(ce=>Object.assign(new _.t,ce.payload)))}isAuthenticated(){return this.store.pipe((0,h.Ys)(b.$8))}isAuthenticationLoaded(){return this.store.pipe((0,h.Ys)(b.oX))}setExternalAuthStatus(q){this.store.dispatch(new M.R_(q))}isExternalAuthentication(){return this.store.pipe((0,h.Ys)(b.Mi))}authenticatedUser(q){const oe=Object.create({});let ce=new t.WM;return ce=ce.append("Accept","application/json"),ce=ce.append("Authorization",`Bearer ${q.accessToken}`),oe.headers=ce,this.authRequestService.getRequest("status",oe).pipe((0,r.U)(ye=>{const Me=ye.payload;if((0,E.Uh)(Me)&&Me.authenticated)return Me._links.eperson.href;throw new Error("Not authenticated")}))}retrieveAuthenticatedUserByHref(q){return this.epersonService.findByHref(q).pipe((0,C.mc)())}retrieveAuthenticatedUserById(q){return this.epersonService.findById(q).pipe((0,C.mc)())}getAuthenticatedUserFromStore(){return this.store.pipe((0,h.Ys)(b.PV),(0,E.tz)(),(0,a.w)(q=>this.epersonService.findById(q)),(0,C.mc)())}checkAuthenticationToken(){this.store.dispatch(new M.gi)}getSpecialGroupsFromAuthStatus(){return this.authRequestService.getRequest("status",null,(0,Y.l)("specialGroups")).pipe((0,C.hC)(),(0,a.w)(q=>q.hasSucceeded?q.payload.specialGroups:(0,L.uV)((0,B.b)(new V.S,[]))))}hasValidAuthenticationToken(){return this.store.pipe((0,h.Ys)(b.Ni),(0,p.q)(1),(0,r.U)(q=>{let oe;if(oe=(0,E.UE)(q)?q:this.storage.get(v.V),(0,E.UE)(oe)&&oe.hasOwnProperty("accessToken")&&(0,E.UE)(oe.accessToken)&&!this.isTokenExpired(oe))return oe;throw!1}))}refreshAuthenticationToken(q){const oe=Object.create({});let ce=new t.WM;return ce=ce.append("Accept","application/json"),q&&q.accessToken&&(ce=ce.append("Authorization",`Bearer ${q.accessToken}`)),oe.headers=ce,oe.withCredentials=!0,this.authRequestService.postToEndpoint("login",{},oe).pipe((0,r.U)(ye=>{const Me=ye.payload;if((0,E.Uh)(Me)&&Me.authenticated)return Me.token;throw new Error("Not authenticated")}))}resetAuthenticationError(){this.store.dispatch(new M.wO)}retrieveAuthMethodsFromAuthStatus(q){let oe=[];return(0,E.UE)(q.authMethods)&&(oe=q.authMethods),(0,o.of)(oe)}logout(){let q=new t.WM;return q=q.append("Content-Type","application/x-www-form-urlencoded"),this.authRequestService.postToEndpoint("logout",Object.create({headers:q,responseType:"text"})).pipe((0,r.U)(ce=>{const ye=ce.payload;if((0,E.Uh)(ye)&&!ye.authenticated)return!0;throw new Error("auth.errors.invalid-user")}))}buildAuthHeader(q){return(0,E.xb)(q)&&(q=this.getToken()),this._authenticated&&(0,E.K0)(q)?`Bearer ${q.accessToken}`:""}getToken(){let q;return this.store.pipe((0,p.q)(1),(0,h.Ys)(b.Ni)).subscribe(oe=>{q=oe||null}),q}trackTokenExpiration(){let q,oe=!1;this.store.pipe((0,h.Ys)(b.Ni)).subscribe(ce=>{if(oe&&void 0!==q&&void 0===ce&&(this.notificationService.error(this.translateService.get("auth.messages.token-refresh-failed")),setTimeout(()=>this.navigateToRedirectUrl(this.hardRedirectService.getCurrentRoute()),1e4),oe=!1),oe&&void 0!==ce&&q.expires!==ce.expires&&(oe=!1),!oe&&(q=ce||null,null!=q)){let ye=q.expires-(new Date).getTime()-I.N.auth.rest.timeLeftBeforeTokenRefresh;ye<0&&(ye=0),(0,E.Uh)(this.tokenRefreshTimer)&&clearTimeout(this.tokenRefreshTimer),this.tokenRefreshTimer=setTimeout(()=>{this.store.dispatch(new M.JA(q)),oe=!0},ye)}})}isTokenExpiring(){return this.store.pipe((0,h.Ys)(b.zy),(0,p.q)(1),(0,r.U)(q=>!this.isTokenExpired()&&!q&&this.getToken().expires-3e5<Date.now()))}isTokenExpired(q){return(q=q||this.getToken())&&q.expires<Date.now()}storeToken(q){const oe=Date.now()+864e5,ye={expires:new Date(oe)};return this.storage.set(v.V,q,ye)}removeToken(){return this.storage.remove(v.V)}replaceToken(q){return this.removeToken(),this.storeToken(q)}redirectToLogin(){this.router.navigate([ae])}redirectToLoginWhenTokenExpired(){const q=ae+"?expired=true";this._window.nativeWindow.location?this._window.nativeWindow.location.href=q:this.response?this.response._headerSent||this.response.redirect(302,q):this.router.navigateByUrl(q)}navigateToRedirectUrl(q){if(!(0,E.Uh)(q)||!q.includes("reload/")){let oe=`reload/${(new Date).getTime()}`;(0,E.UE)(q)&&!q.startsWith(ae)&&(oe+=`?redirect=${encodeURIComponent(q)}`),this.hardRedirectService.redirect(oe)}}refreshAfterLogout(){this.navigateToRedirectUrl(void 0)}getRedirectUrl(){return this.store.pipe((0,h.Ys)(b.B8),(0,r.U)(q=>(0,E.Uh)(q)?q:this.storage.get(j)))}setRedirectUrl(q){const oe=Date.now()+36e5,ye={expires:new Date(oe)};this.storage.set(j,q,ye),this.store.dispatch(new M._2((0,E.pT)(q)?q:""))}setRedirectUrlIfNotSet(q){this.getRedirectUrl().pipe((0,p.q)(1)).subscribe(oe=>{(0,E.xI)(oe)&&this.setRedirectUrl(q)})}clearRedirectUrl(){this.store.dispatch(new M._2(void 0)),this.storage.remove(j)}impersonate(q){this.storage.set(k,q),this.refreshAfterLogout()}stopImpersonating(){this.storage.remove(k)}stopImpersonatingAndRefresh(){this.stopImpersonating(),this.refreshAfterLogout()}getImpersonateID(){return this.storage.get(k)}isImpersonating(){return(0,E.Uh)(this.getImpersonateID())}isImpersonatingUser(q){return this.getImpersonateID()===q}getShortlivedToken(){return this.isAuthenticated().pipe((0,a.w)(q=>q?this.authRequestService.getShortlivedToken():(0,o.of)(null)))}isUserIdle(){return this.store.pipe((0,h.Ys)(b.ro))}setIdle(q){this.store.dispatch(q?new M.zx:new M.DZ)}}return ie.\u0275fac=function(q){return new(q||ie)(X.\u0275\u0275inject(n.Z),X.\u0275\u0275inject(P.DC),X.\u0275\u0275inject(n.Y,8),X.\u0275\u0275inject(m.x),X.\u0275\u0275inject(l.k),X.\u0275\u0275inject(te.F0),X.\u0275\u0275inject(D.MZ),X.\u0275\u0275inject(O.N),X.\u0275\u0275inject(h.yh),X.\u0275\u0275inject(K.A),X.\u0275\u0275inject(g.T),X.\u0275\u0275inject(ee.sK))},ie.\u0275prov=X.\u0275\u0275defineInjectable({token:ie,factory:ie.\u0275fac}),ie})()},74851:(R,c,e)=>{"use strict";e.d(c,{J:()=>h});var t=e(40367),n=e(63900),o=e(54004),i=e(89653),d=e(19168),r=e(24755),a=e(94650),p=e(34793);let h=(()=>{class m{constructor(v,E,O){this.authService=v,this.router=E,this.store=O}canActivate(v,E){return this.handleAuth(E.url)}canActivateChild(v,E){return this.canActivate(v,E)}handleAuth(v){return this.store.pipe((0,i.Ys)(d.EC)).pipe((0,t.s)(E=>!1===E),(0,n.w)(()=>this.store.pipe((0,i.Ys)(d.$8))),(0,o.U)(E=>
1E||(this.authService.setRedirectUrl(v),this.authService.removeToken(),this.router.createUrlTree([r._e]))))}}return m.\u0275fac=function(v){return new(v||m)(a.\u0275\u0275inject(r.e8),a.\u0275\u0275inject(p.F0),a.\u0275\u0275inject(i.yh))},m.\u0275prov=a.\u0275\u0275defineInjectable({token:m,factory:m.\u0275fac}),m})()},7696:(R,c,e)=>{"use strict";e.d(c,{t:()=>E});var t=e(70655),n=e(29923),o=e(69751),i=e(19782),d=e(18528),r=e(71508),a=e(77572),p=e(3879),h=e(63037);const m=new p._("status");var v,_=e(99705);let E=((v=class{}).type=m,v);(0,t.__decorate)([n.autoserialize,(0,t.__metadata)("design:type",String)],E.prototype,"id",void 0),(0,t.__decorate)([h.OJ,n.autoserialize,(0,t.__metadata)("design:type",p._)],E.prototype,"type",void 0),(0,t.__decorate)([(0,n.deserializeAs)(new d.$("auth-status"),"id"),(0,t.__metadata)("design:type",String)],E.prototype,"uuid",void 0),(0,t.__decorate)([n.autoserialize,(0,t.__metadata)("design:type",Boolean)],E.prototype,"okay",void 0),(0,t.__decorate)([n.autoserialize,(0,t.__metadata)("design:type",Boolean)],E.prototype,"authenticated",void 0),(0,t.__decorate)([n.deserialize,(0,t.__metadata)("design:type",Object)],E.prototype,"_links",void 0),(0,t.__decorate)([(0,i.p4)(r.U),(0,t.__metadata)("design:type",o.y)],E.prototype,"eperson",void 0),(0,t.__decorate)([(0,i.p4)(a.o,!0),(0,t.__metadata)("design:type",o.y)],E.prototype,"specialGroups",void 0),(0,t.__decorate)([n.autoserialize,(0,t.__metadata)("design:type",_.Y)],E.prototype,"token",void 0),(0,t.__decorate)([n.autoserialize,(0,t.__metadata)("design:type",Object)],E.prototype,"error",void 0),(0,t.__decorate)([n.autoserialize,(0,t.__metadata)("design:type",Array)],E.prototype,"authMethods",void 0),E=(0,t.__decorate)([i.KB],E)},99705:(R,c,e)=>{"use strict";function t(h){this.message=h}e.d(c,{Y:()=>p,V:()=>a}),(t.prototype=new Error).name="InvalidCharacterError";var n=typeof window<"u"&&window.atob&&window.atob.bind(window)||function(h){var m=String(h).replace(/=+$/,"");if(m.length%4==1)throw new t("'atob' failed: The string to be decoded is not correctly encoded.");for(var _,v,E=0,O=0,b="";v=m.charAt(O++);~v&&(_=E%4?64*_+v:v,E++%4)?b+=String.fromCharCode(255&_>>(-2*E&6)):0)v="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/=".indexOf(v);return b};function i(h){this.message=h}(i.prototype=new Error).name="InvalidTokenError";const a="dsAuthInfo";class p{constructor(m){this.accessToken=m.replace("Bearer ","");try{const _=function d(h,m){if("string"!=typeof h)throw new i("Invalid token specified");var _=!0===(m=m||{}).header?0:1;try{return JSON.parse(function o(h){var m=h.replace(/-/g,"+").replace(/_/g,"/");switch(m.length%4){case 0:break;case 2:m+="==";break;case 3:m+="=";break;default:throw"Illegal base64url string!"}try{return decodeURIComponent(n(m).replace(/(.)/g,function(v,E){var O=E.charCodeAt(0).toString(16).toUpperCase();return O.length<2&&(O="0"+O),"%"+O}))}catch{return n(m)}}(h.split(".")[_]))}catch(v){throw new i("Invalid token specified: "+v.message)}}(this.accessToken);this.expires=1e3*_.exp}catch{this.expires=0}}}},85714:(R,c,e)=>{"use strict";e.d(c,{q:()=>t});var t=(()=>{return(n=t||(t={})).Password="password",n.Shibboleth="shibboleth",n.Ldap="ldap",n.Ip="ip",n.X509="x509",n.Oidc="oidc",n.Orcid="orcid",t;var n})()},5488:(R,c,e)=>{"use strict";e.d(c,{H:()=>n});var t=e(85714);class n{constructor(i,d,r){switch(this.position=d,i){case"ip":this.authMethodType=t.q.Ip;break;case"ldap":this.authMethodType=t.q.Ldap;break;case"shibboleth":this.authMethodType=t.q.Shibboleth,this.location=r;break;case"x509":this.authMethodType=t.q.X509;break;case"password":this.authMethodType=t.q.Password;break;case"oidc":this.authMethodType=t.q.Oidc,this.location=r;break;case"orcid":this.authMethodType=t.q.Orcid,this.location=r}}}},19168:(R,c,e)=>{"use strict";e.d(c,{$8:()=>B,B8:()=>Q,EC:()=>Y,Kv:()=>I,Ky:()=>ee,Mi:()=>V,Ni:()=>K,PV:()=>C,UR:()=>g,jd:()=>l,oX:()=>L,ro:()=>j,v$:()=>X,zy:()=>te});var t=e(89653),n=e(1588);const o=(0,t.P1)(n.v,k=>k.auth),l=(0,t.P1)(o,k=>k.authMethods),C=(0,t.P1)(o,k=>k.userId),I=(0,t.P1)(o,k=>
1k.error),g=(0,t.P1)(o,k=>k.info),B=(0,t.P1)(o,k=>k.authenticated),L=(0,t.P1)(o,k=>k.loaded),V=(0,t.P1)(o,k=>k.externalAuth),Y=(0,t.P1)(o,k=>k.loading),X=(0,t.P1)(o,k=>k.blocking),te=(0,t.P1)(o,k=>k.refreshing),K=(0,t.P1)(o,k=>k.authToken),ee=(0,t.P1)(o,k=>k.error),Q=((0,t.P1)(o,k=>k.error),(0,t.P1)(o,k=>k.redirectUrl)),j=(0,t.P1)(o,k=>k.idle)},86362:(R,c,e)=>{"use strict";e.d(c,{B:()=>v});var t=e(83772),n=e(83616),o=e(39646),i=e(94476),d=e(93369),r=e(40367),a=e(63900),p=e(54004),h=e(24702),m=e(50503),_=e(94650);let v=(()=>{class E{constructor(b,M){this.linkService=b,this.dsoNameService=M}getBreadcrumbs(b,M){const P=this.dsoNameService.getName(b),D=new t.a(P,M),l=b.getParentLinkKey();return this.linkService.resolveLink(b,(0,d.l)(l))[l].pipe((0,r.s)(C=>C.hasSucceeded||204===C.statusCode),(0,a.w)(C=>{if((0,h.Uh)(C)&&(0,h.Uh)(C.payload)){const I=C.payload;return this.getBreadcrumbs(I,(0,m.Y4)(I))}return(0,o.of)([])}),(0,p.U)(C=>[...C,D]))}}return E.\u0275fac=function(b){return new(b||E)(_.\u0275\u0275inject(i.M),_.\u0275\u0275inject(n._))},E.\u0275prov=_.\u0275\u0275defineInjectable({token:E,factory:E.\u0275fac,providedIn:"root"}),E})()},83616:(R,c,e)=>{"use strict";e.d(c,{_:()=>d});var t=e(24702),n=e(94569),o=e(94650),i=e(89383);let d=(()=>{class r{constructor(p){this.translateService=p,this.factories={EPerson:h=>{const m=h.firstMetadataValue("eperson.firstname"),_=h.firstMetadataValue("eperson.lastname");return(0,t.xb)(m)&&(0,t.xb)(_)?this.translateService.instant("dso.name.unnamed"):(0,t.xb)(m)||(0,t.xb)(_)?m||_:`${m} ${_}`},Person:h=>{const m=h.firstMetadataValue("person.familyName"),_=h.firstMetadataValue("person.givenName");return(0,t.xb)(m)&&(0,t.xb)(_)?h.firstMetadataValue("dc.title")||this.translateService.instant("dso.name.unnamed"):(0,t.xb)(m)||(0,t.xb)(_)?m||_:`${m}, ${_}`},OrgUnit:h=>h.firstMetadataValue("organization.legalName")||this.translateService.instant("dso.name.untitled"),Default:h=>h.firstMetadataValue("dc.title")||h.name||this.translateService.instant("dso.name.untitled")}}getName(p){if(p){const m=p.getRenderTypes().filter(v=>"string"==typeof v).find(v=>Object.keys(this.factories).includes(v));let _;return(0,t.Uh)(m)&&(_=this.factories[m](p)),(0,t.xb)(_)&&(_=this.factories.Default(p)),_}return""}getHitHighlights(p,h){const _=h.getRenderTypes().filter(v=>"string"==typeof v).find(v=>["Person","OrgUnit"].includes(v));if("Person"===_){const v=this.firstMetadataValue(p,h,"person.familyName"),E=this.firstMetadataValue(p,h,"person.givenName");return(0,t.xb)(v)&&(0,t.xb)(E)?this.firstMetadataValue(p,h,"dc.title")||h.name:(0,t.xb)(v)||(0,t.xb)(E)?v||E:`${v}, ${E}`}return"OrgUnit"===_?this.firstMetadataValue(p,h,"organization.legalName")||this.translateService.instant("dso.name.untitled"):this.firstMetadataValue(p,h,"dc.title")||h.name||this.translateService.instant("dso.name.untitled")}firstMetadataValue(p,h,m){return n.S.firstValue([p.hitHighlights,h.metadata],m)}}return r.\u0275fac=function(p){return new(p||r)(o.\u0275\u0275inject(i.sK))},r.\u0275prov=o.\u0275\u0275defineInjectable({token:r,factory:r.\u0275fac,providedIn:"root"}),r})()},98655:(R,c,e)=>{"use strict";e.d(c,{t:()=>d});var t=e(24702),n=e(78056),o=e(94650),i=e(43001);let d=(()=>{class r{constructor(p){this.breadcrumbService=p}resolve(p,h){const m=p.data.breadcrumbKey;if((0,t.xI)(m))throw new Error('You provided an i18nBreadcrumbResolver for url "'+p.url+"\" but no breadcrumbKey in the route's data");const _=(0,n.i)(p);return{provider:this.breadcrumbService,key:m,url:_}}}return r.\u0275fac=function(p){return new(p||r)(o.\u0275\u0275inject(i.d))},r.\u0275prov=o.\u0275\u0275defineInjectable({token:r,factory:r.\u0275fac,providedIn:"root"}),r})()},43001:(R,c,e)=>{"use strict";e.d(c,{d:()=>d});var t=e(83772),n=e(39646),o=e(94650);let d=(()=>{class r{getBreadcrumbs(p,h){return(0,n.of)([new t.a(p+".breadcrumbs",h)])}}return r.\u0275fac=function(p){return new(p||r)},r.\u0275prov=o.\u0275\u0275defineInjectable({token:r,factory:r.\u0275fac,providedIn:"root"}),r})()},87367:(R,c,e)=>{"use strict";e.d(c,{v:()=>C});var P,t=e(70655),n=e(31053),o=e(31241),i=e(43015),d=e(58943),r=e(93498),a=e(39646),p=e(72839),h=e(53261),m=e(21147),_=e(24702),v=e(95698),E=e(25130),O=e(81964),b=e(99678),M=e(94650);const D=(I,g,B,L=!0)=>{(0,_.UE)(B)&&("string"==typeof B&&(B=(0,a.of)(B)),B.pipe((0,_.iy)(),(0,v.q)(1)).subscribe(V=>{const Y=I.generateRequestId(),X=new E.OR(Y,V);(0,_.Uh)(g)&&(X.responseMsToLive=g),I.send(X,L)}))};
1class l extends h.k{createAndSendGetRequest(g,B=!0){D(this.requestService,this.responseMsToLive,g,B)}}let C=((P=class extends p.t{constructor(g,B,L,V){super("browses",g,B,L,V),this.requestService=g,this.rdbService=B,this.objectCache=L,this.halService=V,this.searchData=new b.l(this.linkPath,g,B,L,V,this.responseMsToLive),this.findAllData=new l(this.linkPath,g,B,L,V,this.responseMsToLive)}findAll(g={},B=!0,L=!0,...V){return this.findAllData.findAll(g,B,L,...V)}searchBy(g,B,L,V,...Y){return this.searchData.searchBy(g,B,L,V,...Y)}getSearchByHref(g,B,...L){return this.searchData.getSearchByHref(g,B,...L)}findByFields(g,B=!0,L=!0,...V){const Y=[];Y.push(new O.g("fields",g));const X=this.getSearchByHref("byFields",{searchParams:Y},...V);return this.findByHref(X,B,L,...V)}createAndSendGetRequest(g,B=!0){D(this.requestService,this.responseMsToLive,g,B)}}).\u0275fac=function(g){return new(g||P)(M.\u0275\u0275inject(o.s),M.\u0275\u0275inject(i.Q),M.\u0275\u0275inject(d.a),M.\u0275\u0275inject(r.q))},P.\u0275prov=M.\u0275\u0275defineInjectable({token:P,factory:P.\u0275fac,providedIn:"root"}),P);C=(0,t.__decorate)([(0,m.cQ)(n.S),(0,t.__metadata)("design:paramtypes",[o.s,i.Q,d.a,r.q])],C)},27645:(R,c,e)=>{"use strict";e.d(c,{I:()=>L,k:()=>B});var D,t=e(54004),n=e(68675),o=e(71884),i=e(24702),d=e(31241),r=e(93498),a=e(68285),p=e(23631),h=e(70655),m=e(43015),_=e(58943),v=e(18186),E=e(13762),O=e(4343),b=e(76715),M=e(21147),P=e(94650);let l=((D=class{constructor(Y,X,te,K){this.requestService=Y,this.rdbService=X,this.objectCache=te,this.halService=K,this.dataService=new b.B(void 0,Y,X,te,K)}findByHref(Y,X=!0,te=!0,...K){return this.dataService.findByHref(Y,X,te,...K)}findListByHref(Y,X={},te=!0,K=!0,...ee){return this.dataService.findListByHref(Y,X,te,K,...ee)}}).\u0275fac=function(Y){return new(Y||D)(P.\u0275\u0275inject(d.s),P.\u0275\u0275inject(m.Q),P.\u0275\u0275inject(_.a),P.\u0275\u0275inject(r.q))},D.\u0275prov=P.\u0275\u0275defineInjectable({token:D,factory:D.\u0275fac,providedIn:"root"}),D);l=(0,h.__decorate)([(0,M.cQ)(v.eU),(0,M.cQ)(E.Z),(0,M.cQ)(O.z),(0,h.__metadata)("design:paramtypes",[d.s,m.Q,_.a,r.q])],l);var C=e(93369),I=e(87367),g=e(21540);function B(){const V=[(0,C.l)("thumbnail")];return g.N.item.showAccessStatuses&&V.push((0,C.l)("accessStatus")),V}let L=(()=>{class V{constructor(X,te,K,ee){this.requestService=X,this.halService=te,this.browseDefinitionDataService=K,this.hrefOnlyDataService=ee,this.linkPath="browses"}static toSearchKeyArray(X){const te=X.split("."),K=[];K.push("*");for(let ee=0;ee<te.length-1;ee++){const Q=[...te.slice(0,ee+1),"*"].join(".");K.push(Q)}return K.push(X),K}getBrowseDefinitions(){return this.browseDefinitionDataService.findAll({elementsPerPage:9999}).pipe((0,a.xw)())}getBrowseEntriesFor(X){const te=this.getBrowseDefinitions().pipe((0,a.Ul)(X.metadataDefinition),(0,i.tz)(),(0,t.U)(K=>K.entries.href||K.entries),(0,i.tz)(),(0,t.U)(K=>{const ee=[];return(0,i.UE)(X.scope)&&ee.push(`scope=${X.scope}`),(0,i.UE)(X.sort)&&ee.push(`sort=${X.sort.field},${X.sort.direction}`),(0,i.UE)(X.pagination)&&(ee.push("page="+(X.pagination.currentPage-1)),ee.push(`size=${X.pagination.pageSize}`)),(0,i.UE)(X.startsWith)&&ee.push(`startsWith=${X.startsWith}`),(0,i.UE)(ee)&&(K=new p.R(K,`?${ee.join("&")}`).toString()),K}));return X.fetchThumbnail?this.hrefOnlyDataService.findListByHref(te,{},void 0,void 0,...B()):this.hrefOnlyDataService.findListByHref(te)}getBrowseItemsFor(X,te,K){const ee=this.getBrowseDefinitions().pipe((0,a.Ul)(K.metadataDefinition),(0,i.tz)(),(0,t.U)(ae=>ae.items.href||ae.items),(0,i.tz)(),(0,t.U)(ae=>{const Q=[];return(0,i.UE)(K.scope)&&Q.push(`scope=${K.scope}`),(0,i.UE)(K.sort)&&Q.push(`sort=${K.sort.field},${K.sort.direction}`),(0,i.UE)(K.pagination)&&(Q.push("page="+(K.pagination.currentPage-1)),Q.push(`size=${K.pagination.pageSize}`)),(0,i.UE)(K.startsWith)&&Q.push(`startsWith=${K.startsWith}`),(0,i.UE)(X)&&Q.push(`filterValue=${encodeURIComponent(X)}`),(0,i.UE)(te)&&Q.push(`filterAuthority=${encodeURIComponent(te)}`),(0,i.UE)(Q)&&(ae=new p.R(ae,`?${Q.join("&")}`).toString()),ae}));return K.fetchThumbnail?this.hrefOnlyDataService.findListByHref(ee,{},void 0,void 0,...B()):this.hrefOnlyDataService.findListByHref(ee)}getFirstItemFor(X,te,K){const ee=this.getBrowseDefinitions().pipe((0,a.Ul)(X),(0,i.tz)(),(0,t.U)(ae=>ae.items.href||ae.items),(0,i.tz)(),(0,t.U)(ae=>{const Q=[];return(0,i.Uh)(te)&&Q.push(`scope=${te}`),Q.push("page=0"),Q.push("size=1"),K&&Q.push("sort=default,"+K),(0,i.UE)(Q)&&(ae=new p.R(ae,`?${Q.join("&")}`).toString()),ae}));return this.hrefOnlyDataService.findListByHref(ee).pipe((0,a.xw)(),(0,a.HW)())}getPrevBrowseItems(X){return this.hrefOnlyDataService.findListByHref(X.payload.prev)}getNextBrowseItems(X){return this.hrefOnlyDataService.findListByHref(X.payload.next)}getPrevBrowseEntries(X){return this.hrefOnlyDataService.findListByHref(X.payload.prev)}getNextBrowseEntries(X){return this.hrefOnlyDataService.findListByHref(X.payload.next)}getBrowseURLFor(X,te){const K=V.toSearchKeyArray(X);return this.getBrowseDefinitions().pipe((0,a.xe)(),(0,a.qP)(),(0,t.U)(ee=>ee.find(ae=>{let Q="";return Array.isArray(ae.metadataKeys)&&(Q=ae.metadataKeys.find(j=>K.indexOf(j)>=0)),(0,i.UE)(Q)})),(0,t.U)(ee=>{if((0,i.xb)(ee)||(0,i.xb)(ee._links)||(0,i.xb)(ee._links[te]))throw new Error(`A browse endpoint for ${te} on ${X} isn't configured`);return ee._links[te]||ee._links[te].href}),(0,n.O)(void 0),(0,o.x)())}}return V.\u0275fac=function(X){return new(X||V)(P.\u0275\u0275inject(d.s),P.\u0275\u0275inject(r.q),P.\u0275\u0275inject(I.v),P.\u0275\u0275inject(l))},V.\u0275prov=P.\u0275\u0275defineInjectable({token:V,factory:V.\u0275fac}),V})()},19782:(R,c,e)=>{"use strict";e.d(c,{$7:()=>d,KB:()=>m,iB:()=>i,o2:()=>M,p4:()=>E,w2:()=>_});var t=e(24702),n=e(15861),o=e(94650);const i=new o.InjectionToken("getLinkDefinition",{providedIn:"root",factory:()=>b}),d=new o.InjectionToken("getLinkDefinitions",{providedIn:"root",factory:()=>O}),p=(Symbol("resolvedLink"),new Map),h=new Map;function m(P){p.set(P.type.value,P)}function _(P){return p.get((0,n.l_)(P))}const E=(P,D=!1,l)=>(C,I)=>{let g=h.get(C.constructor);(0,t.xI)(g)&&(g=new Map),(0,t.xI)(l)&&(l=I),g.set(l,{resourceType:P,isList:D,linkName:l,propertyName:I}),h.set(C.constructor,g)},O=P=>h.get(P),b=(P,D)=>{const l=h.get(P);if((0,t.Uh)(l))return l.get(D)};function M(P){return D=>{const l=h.get(P)||new Map,C=h.get(D)||new Map;l.forEach((I,g)=>{C.has(g)||C.set(g,I)}),h.set(D,C)}}},94476:(R,c,e)=>{"use strict";e.d(c,{M:()=>r});
1var t=e(94650),n=e(24702),o=e(21147),i=e(19782),d=e(60515);let r=(()=>{class a{constructor(h,m,_,v){this.parentInjector=h,this.getDataServiceFor=m,this.getLinkDefinition=_,this.getLinkDefinitions=v}resolveLinks(h,...m){return m.forEach(_=>{this.resolveLink(h,_)}),h}resolveLinkWithoutAttaching(h,m){const _=this.getLinkDefinition(h.constructor,m.name);if((0,n.Uh)(_)){const v=this.getDataServiceFor(_.resourceType);if((0,n.xI)(v))throw new Error(`The @link() for ${String(m.name)} on ${h.constructor.name} models uses the resource type ${_.resourceType.value.toUpperCase()}, but there is no service with an @dataService(${_.resourceType.value.toUpperCase()}) annotation in order to retrieve it`);const E=t.Injector.create({providers:[],parent:this.parentInjector}).get(v),O=h._links[_.linkName];if((0,n.Uh)(O)){const b=O.href;try{return _.isList?E.findListByHref(b,m.findListOptions,m.useCachedVersionIfAvailable,m.reRequestOnStale,...m.linksToFollow):E.findByHref(b,m.useCachedVersionIfAvailable,m.reRequestOnStale,...m.linksToFollow)}catch(M){throw console.error(`Something went wrong when using @dataService(${_.resourceType.value}) ${(0,n.Uh)(E)?"":"(undefined) "}to resolve link ${String(m.name)} at ${b}`),M}}}else if(!m.isOptional)throw new Error(`followLink('${String(m.name)}') was used as a required link for a ${h.constructor.name}, but there is no property on ${h.constructor.name} models with an @link() for ${String(m.name)}`);return d.E}resolveLink(h,m){return h[m.name]=this.resolveLinkWithoutAttaching(h,m),h}removeResolvedLinks(h){const m=Object.assign(new h.constructor,h),_=this.getLinkDefinitions(h.constructor);return(0,n.UE)(_)&&_.forEach(v=>{m[v.propertyName]=void 0}),m}}return a.\u0275fac=function(h){return new(h||a)(t.\u0275\u0275inject(t.Injector),t.\u0275\u0275inject(o.II),t.\u0275\u0275inject(i.iB),t.\u0275\u0275inject(i.$7))},a.\u0275prov=t.\u0275\u0275defineInjectable({token:a,factory:a.\u0275fac,providedIn:"root"}),a})()},43015:(R,c,e)=>{"use strict";e.d(c,{Q:()=>Y});var t=e(39646),n=e(39841),o=e(38893),i=e(63900),d=e(54004),r=e(68675),a=e(39300),p=e(71884),m=e(24702),_=e(58577),v=e(93369),E=e(24789),O=e(15600),b=e(31241),M=e(58943),P=e(94476),D=e(19782),l=e(473),C=e(61306),I=e(15861),g=e(81554),B=e(85292),L=e(68285),V=e(94650);let Y=(()=>{class X{constructor(K,ee,ae){this.objectCache=K,this.linkService=ee,this.requestService=ae}buildPayload(K,ee,...ae){return(0,m.xI)(ee)&&(ee=(0,t.of)(void 0)),(0,n.a)([ee,K]).pipe((0,i.w)(([Q,j])=>{const k=this.hasExactMatchInObjectCache(Q,j);return(0,m.Uh)(j.response)&&(k||this.isCacheablePayload(j)||this.isUnCacheablePayload(j))?k?this.objectCache.getObjectByHref(Q):this.isCacheablePayload(j)?this.objectCache.getObjectByHref(j.response.payloadLink.href):[this.plainObjectToInstance(j.response.unCacheableObject)]:(0,g.F0)(j.state)?[null]:[void 0]}),(0,i.w)(Q=>{if((0,m.Uh)(Q)){if((0,I.l_)(Q.type)===l.j.value)return this.buildPaginatedList(Q,...ae);if((0,m.UE)(ae))return[this.linkService.resolveLinks(Q,...ae)]}return[Q]}))}plainObjectToInstance(K){const ee=(0,D.w2)(K.type);return Object.assign("function"==typeof ee?new ee:{},K)}hasExactMatchInObjectCache(K,ee){return(0,m.Uh)(ee)&&(0,m.Uh)(ee.request)&&(0,m.UE)(ee.request.uuid)&&(0,m.Uh)(K)&&this.objectCache.hasByHref(K,ee.request.uuid)}isCacheablePayload(K){return(0,m.Uh)(K.response.payloadLink)&&(0,m.UE)(K.response.payloadLink.href)}isUnCacheablePayload(K){return(0,m.Uh)(K.response.unCacheableObject)}buildPaginatedList(K,...ee){const ae=ee.find(k=>"page"===k.name),Q=ee.filter(k=>"page"!==k.name),j=Object.assign(new E.l,K);if((0,m.Uh)(ae)){if((0,m.xb)(j.page)){const k=j._links.page.map(G=>G.href);return this.objectCache.getList(k).pipe((0,d.U)(G=>(j.page=G.map(ie=>this.plainObjectToInstance(ie)).map(ie=>this.linkService.resolveLinks(ie,...ae.linksToFollow)),(0,m.UE)(Q)?this.linkService.resolveLinks(j,...Q):j)))}if(j.page=j.page.map(k=>this.plainObjectToInstance(k)).map(k=>this.linkService.resolveLinks(k,...ae.linksToFollow)),(0,m.UE)(Q))return(0,t.of)(this.linkService.resolveLinks(j,...Q))}return(0,t.of)(j)}buildFromRequestUUID(K,...ee){"string"==typeof K&&(K=(0,t.of)(K));const ae=K.pipe((0,B.Md)(this.requestService)),Q=this.buildPayload(ae,void 0,...ee);return this.toRemoteDataObservable(ae,Q)}buildFromRequestUUIDAndAwait(K,ee,...ae){const Q=this.buildFromRequestUUID(K,...ae),j=new o.c;return Q.pipe((0,L.hC)(),(0,i.w)(k=>k.hasSucceeded?ee(k):[!0])).subscribe(()=>{j.next(!0),j.complete()}),Q.pipe((0,i.w)(k=>k.hasSucceeded?j.pipe((0,d.U)(()=>k)):[k]))}buildFromHref(K,...ee){"string"==typeof K&&(K=(0,t.of)(K));const ae=(K=K.pipe((0,d.U)(k=>(0,C.z2)(k)))).pipe((0,i.w)(k=>this.objectCache.getRequestUUIDBySelfLink(k))),Q=(0,n.a)([K.pipe((0,B.WV)(this.requestService),(0,r.O)(void 0)),ae.pipe((0,B.Md)(this.requestService),(0,r.O)(void 0))]).pipe((0,a.h)(([k,G])=>(0,m.Uh)(k)||(0,m.Uh)(G)),(0,d.U)(([k,G])=>(0,m.xI)(G)?k:(0,m.xI)(k)?G:(0,g._T)(k.state)&&(0,g._T)(G.state)||!(0,g._T)(k.state)&&!(0,g._T)(G.state)?k.lastUpdated>=G.lastUpdated?k:G:(0,g._T)(G.state)?k:G),function h(X,te){return(0,p.x)((K,ee)=>te?te(K[X],ee[X]):K[X]===ee[X])}("lastUpdated")),j=this.buildPayload(Q,K,...ee);return this.toRemoteDataObservable(Q,j)}buildSingle(K,...ee){return this.buildFromHref(K,...ee)}toRemoteDataObservable(K,ee){return(0,n.a)([K,ee]).pipe((0,a.h)(([ae,Q])=>(0,m.Uh)(ae)&&!((0,g.F0)(ae.state)&&(0,m.o8)(Q))),(0,d.U)(([ae,Q])=>{let j=ae.response;return(0,m.xI)(j)&&(j={}),new O.N(j.timeCompleted,ae.request.responseMsToLive,ae.lastUpdated,ae.state,j.errorMessage,Q,j.statusCode)}))}buildList(K,...ee){return this.buildFromHref(K,(0,v.l)("page",{shouldEmbed:!1},...ee))}aggregate(K){return(0,m.xb)(K)?(0,_.uV)([],(new Date).getTime()):(0,n.a)(K).pipe((0,d.U)(ee=>{const ae=ee.map(oe=>oe.timeCompleted).reduce((oe,ce)=>ce>oe?ce:oe),Q=ee.map(oe=>oe.msToLive).reduce((oe,ce)=>ce<oe?ce:oe),j=ee.map(oe=>oe.lastUpdated).reduce((oe,ce)=>ce>oe?ce:oe);let k;k=ee.some(oe=>oe.isRequestPending)?g.q$.RequestPending:ee.some(oe=>oe.isResponsePending)?g.q$.ResponsePending:ee.some(oe=>oe.isErrorStale)?g.q$.ErrorStale:ee.some(oe=>oe.isError)?g.q$.Error:ee.some(oe=>oe.isSuccessStale)?g.q$.SuccessStale:g.q$.Success;const G=ee.map(oe=>oe.errorMessage).map((oe,ce)=>{if((0,m.Uh)(oe))return`[${ce}]: ${oe}`}).filter(oe=>(0,m.Uh)(oe)).join(", "),ie=new Set(ee.map(oe=>oe.statusCode));let ne;1===ie.size?ne=ie.values().next().value:ie.size>1&&(ne=207);const q=ee.map(oe=>oe.payload);
1return new O.N(ae,Q,j,k,G,q,ne)}))}}return X.\u0275fac=function(K){return new(K||X)(V.\u0275\u0275inject(M.a),V.\u0275\u0275inject(P.M),V.\u0275\u0275inject(b.s))},X.\u0275prov=V.\u0275\u0275defineInjectable({token:X,factory:X.\u0275fac}),X})()},93490:(R,c,e)=>{"use strict";e.d(c,{X:()=>n});class t{}class n extends t{}},18528:(R,c,e)=>{"use strict";e.d(c,{$:()=>n});var t=e(24702);class n{constructor(i){this.prefix=i}Serialize(i){}Deserialize(i){return(0,t.Uh)(i)?`${this.prefix}-${i}`:i}}},81964:(R,c,e)=>{"use strict";e.d(c,{g:()=>t});class t{constructor(o,i,d=!0){this.fieldName=o,this.fieldValue=i,this.encodeValue=d,d&&(this.fieldValue=encodeURIComponent(i))}}},42943:(R,c,e)=>{"use strict";e.d(c,{S:()=>t,o:()=>n});var t=(()=>{return(o=t||(t={})).ASC="ASC",o.DESC="DESC",t;var o})();class n{constructor(i,d){this.field=i,this.direction=d}}},87459:(R,c,e)=>{"use strict";e.d(c,{$y:()=>h,HO:()=>a,V9:()=>d,b6:()=>i,fH:()=>p,lz:()=>n,n5:()=>o,y3:()=>r});var t=e(79472);const n={ADD:(0,t.d)("dspace/core/cache/object/ADD"),REMOVE:(0,t.d)("dspace/core/cache/object/REMOVE"),RESET_TIMESTAMPS:(0,t.d)("dspace/core/cache/object/RESET_TIMESTAMPS"),ADD_PATCH:(0,t.d)("dspace/core/cache/object/ADD_PATCH"),APPLY_PATCH:(0,t.d)("dspace/core/cache/object/APPLY_PATCH"),ADD_DEPENDENTS:(0,t.d)("dspace/core/cache/object/ADD_DEPENDENTS"),REMOVE_DEPENDENTS:(0,t.d)("dspace/core/cache/object/REMOVE_DEPENDENTS")};class o{constructor(_,v,E,O,b){this.type=n.ADD,this.payload={objectToCache:_,timeCompleted:v,msToLive:E,requestUUID:O,alternativeLink:b}}}class i{constructor(_){this.type=n.REMOVE,this.payload=_}}class d{constructor(_){this.type=n.RESET_TIMESTAMPS,this.payload=_}}class r{constructor(_,v){this.type=n.ADD_PATCH,this.payload={href:_,operations:v}}}class a{constructor(_){this.type=n.APPLY_PATCH,this.payload=_}}class p{constructor(_,v){this.type=n.ADD_DEPENDENTS,this.payload={href:_,dependentRequestUUIDs:v}}}class h{constructor(_){this.type=n.REMOVE_DEPENDENTS,this.payload=_}}},15861:(R,c,e)=>{"use strict";e.d(c,{Ai:()=>a,l_:()=>i});var t=e(87459),n=e(24702),o=e(52959);const i=b=>{if((0,n.Uh)(b)){if("string"==typeof b)return b;if("string"==typeof b.value)return b.value}},r=Object.create(null);function a(b=r,M){switch(M.type){case t.lz.ADD:return function p(b,M){const P=(0,n.Uh)(M.payload.objectToCache?._links?.self)?M.payload.objectToCache._links.self.href:M.payload.alternativeLink,D=b[P]||{},l=(0,n.Uh)(M.payload.alternativeLink)?[M.payload.alternativeLink]:[];return(0,n.Uh)(P)?Object.assign({},b,{[P]:{data:M.payload.objectToCache,timeCompleted:M.payload.timeCompleted,msToLive:M.payload.msToLive,requestUUIDs:[M.payload.requestUUID,...D.requestUUIDs||[]],dependentRequestUUIDs:D.dependentRequestUUIDs||[],isDirty:(0,n.UE)(D.patches),patches:D.patches||[],alternativeLinks:[...D.alternativeLinks||[],...l]}}):b}(b,M);case t.lz.REMOVE:return function h(b,M){if((0,n.Uh)(b[M.payload])){const P=Object.assign({},b);return delete P[M.payload],P}return b}(b,M);case t.lz.RESET_TIMESTAMPS:return function m(b,M){const P=Object.create(null);return Object.keys(b).forEach(D=>{P[D]=Object.assign({},b[D],{timeCompleted:M.payload})}),P}(b,M);case t.lz.ADD_PATCH:return function _(b,M){const P=M.payload.href,D=M.payload.operations,l=Object.assign({},b);return(0,n.Uh)(l[P])&&(l[P]=Object.assign({},l[P],{patches:[...l[P].patches,{operations:D}],isDirty:!0})),l}(b,M);case t.lz.APPLY_PATCH:return function v(b,M){const P=M.payload,D=Object.assign({},b);if((0,n.Uh)(D[P])){const l=[].concat(...D[P].patches.map(I=>I.operations)),C=(0,o.af)(D[P].data,l,void 0,!1);D[P]=Object.assign({},D[P],{data:C.newDocument,patches:[]})}return D}(b,M);case t.lz.ADD_DEPENDENTS:return function E(b,M){const P=M.payload.href,D=Object.assign({},b);return(0,n.Uh)(D[P])&&(D[P]=Object.assign({},D[P],{dependentRequestUUIDs:[...new Set([...D[P]?.dependentRequestUUIDs||[],...M.payload.dependentRequestUUIDs])]})),D}(b,M);case t.lz.REMOVE_DEPENDENTS:return function O(b,M){const P=M.payload,D=Object.assign({},b);return(0,n.Uh)(D[P])&&(D[P]=Object.assign({},D[P],{dependentRequestUUIDs:[]})),D}(b,M);default:return b}}},58943:(R,c,e)=>{"use strict";e.d(c,{a:()=>L});var t=e(89653),n=e(52959),o=e(39841),i=e(39646),d=e(54004),r=e(95698),a=e(86099),p=e(39300),h=e(63900),m=e(71884),_=e(24702),v=e(1588),E=e(63881),O=e(61306),b=e(19782),M=e(94476),P=e(87459),D=e(76123),l=e(91110),C=e(1906),I=e(94650);const g=(0,t.P1)(v.v,V=>V["cache/object"]);let L=(()=>{class V{constructor(X,te){this.store=X,this.linkService=te}add(X,te,K,ee){(0,_.Uh)(X)&&(X=this.linkService.removeResolvedLinks(X)),this.store.dispatch(new P.n5(X,(new Date).getTime(),te,K,ee))}remove(X){this.removeRelatedLinksFromIndex(X),this.store.dispatch(new P.b6(X))}removeRelatedLinksFromIndex(X){const te=this.getByHref(X),K=te.pipe((0,d.U)(ae=>ae.alternativeLinks),(0,r.q)(1)),ee=te.pipe((0,d.U)(ae=>Object.entries(ae.data._links).filter(([Q,j])=>"self"!==Q).map(([Q,j])=>j.href)),(0,r.q)(1));this.removeLinksFromAlternativeLinkIndex(K),this.removeLinksFromAlternativeLinkIndex(ee)}removeLinksFromAlternativeLinkIndex(X){X.subscribe(te=>te.forEach(K=>{this.store.dispatch(new l.Ke(C.s.ALTERNATIVE_OBJECT_LINK,K))}))}getObjectByUUID(X){return this.store.pipe((0,t.Ys)((0,O.AS)(X)),(0,a.z)(te=>this.getObjectByHref(te)))}getObjectByHref(X){return this.getByHref(X).pipe((0,d.U)(te=>{if((0,_.UE)(te.patches)){const K=[].concat(...te.patches.map(ae=>ae.operations)),ee=(0,n.af)(te.data,K,void 0,!1).newDocument;return Object.assign({},te,{data:ee})}return te}),(0,d.U)(te=>{if((0,_.Uh)(te.data)){const K=(0,b.w2)(te.data.type);if("function"!=typeof K)throw new Error(`${K} is not a valid constructor for ${JSON.stringify(te.data)}`);return Object.assign(new K,te.data)}return null}))}getByHref(X){return(0,o.a)([this.getByAlternativeLink(X),this.getBySelfLink(X)]).pipe((0,d.U)(te=>te.find(K=>(0,_.Uh)(K))),(0,p.h)(te=>(0,_.Uh)(te)))}getBySelfLink(X){return this.store.pipe((0,t.Ys)((V=>(0,t.P1)(g,Y=>Y[V]))(X)))}getByAlternativeLink(X){return this.store.pipe((0,t.Ys)((0,O.eY)(X)),(0,h.w)(te=>this.getBySelfLink(te)))}getRequestUUIDBySelfLink(X){return this.getByHref(X).pipe((0,d.U)(te=>te.requestUUIDs[0]),(0,m.x)())}getRequestUUIDByObjectUUID(X){return this.store.pipe((0,t.Ys)((0,O.AS)(X)),(0,a.z)(te=>this.getRequestUUIDBySelfLink(te)))}getList(X){return(0,_.xb)(X)?(0,i.of)([]):(0,o.a)(X.map(te=>this.getObjectByHref(te)))}hasByUUID(X){let te=!1;return this.store.pipe((0,t.Ys)((0,O.AS)(X)),(0,r.q)(1)).subscribe(K=>te=this.hasByHref(K)),te}hasByHref(X,te){let K=!1;return this.getByHref(X).subscribe(ee=>{K=!(0,_.UE)(te)||ee.requestUUIDs.includes(te)}).unsubscribe(),K}hasByHref$(X){return(0,o.a)(this.getBySelfLink(X),this.getByAlternativeLink(X)).pipe((0,d.U)(te=>te.some(K=>(0,_.Uh)(K))))}addPatch(X,te){this.store.dispatch(new P.y3(X,te)),this.store.dispatch(new D.Hc(X,E.a.PATCH))}isDirty(X){return(0,_.UE)(X.patches)}applyPatchesToCachedObject(X){this.store.dispatch(new P.HO(X))}addDependency(X,te){(0,_.xI)(X)||(0,_.xI)(te)||("string"==typeof X&&(X=(0,i.of)(X)),"string"==typeof te&&(te=(0,i.of)(te)),(0,o.a)([X,te.pipe((0,h.w)(K=>this.resolveSelfLink(K)))]).pipe((0,h.w)(([K,ee])=>{const ae=(0,i.of)(ee);return(0,o.a)([ae,ae.pipe((0,h.w)(Q=>this.getBySelfLink(Q)),(0,d.U)(Q=>
1Q?.dependentRequestUUIDs||[])),this.getByHref(K).pipe((0,d.U)(Q=>Q?.requestUUIDs?.[0]))])}),(0,r.q)(1)).subscribe(([K,ee,ae])=>{(0,_.Uh)(K)&&(0,_.Uh)(ae)&&!ee.includes(ae)&&this.store.dispatch(new P.fH(K,[ae]))}))}removeDependents(X){this.resolveSelfLink(X).pipe((0,r.q)(1)).subscribe(te=>{(0,_.Uh)(te)&&this.store.dispatch(new P.$y(te))})}resolveSelfLink(X){return this.getBySelfLink(X).pipe((0,h.w)(te=>(0,_.UE)(te)?[X]:this.store.pipe((0,t.Ys)((0,O.eY)(X)))))}}return V.\u0275fac=function(X){return new(X||V)(I.\u0275\u0275inject(t.yh),I.\u0275\u0275inject(M.M))},V.\u0275prov=I.\u0275\u0275defineInjectable({token:V,factory:V.\u0275fac}),V})()},47229:(R,c,e)=>{"use strict";e.d(c,{Ag:()=>E,N8:()=>p,iQ:()=>r,iq:()=>t,k:()=>o,tp:()=>n});class t{constructor(b,M,P){this.isSuccessful=b,this.statusCode=M,this.statusText=P,this.toCache=!0}}class n extends t{constructor(b,M,P){super(!0,b,`${b}`),this.link=M,this.unCacheableObject=P}}class o extends t{constructor(b,M,P,D){super(!0,M,P),this.resourceSelfLinks=b,this.statusCode=M,this.statusText=P,this.pageInfo=D}}class r extends t{constructor(b){super(!1,b.statusCode,b.statusText),console.error(b),this.errorMessage=b.message}}class p extends t{constructor(b,M,P,D){super(M,P,D),this.token=b,this.isSuccessful=M,this.statusCode=P,this.statusText=D}}class E extends t{constructor(b,M,P,D){super(!0,M,P),this.filterQuery=b,this.statusCode=M,this.statusText=P,this.pageInfo=D}}},76123:(R,c,e)=>{"use strict";e.d(c,{Hc:()=>o,LQ:()=>d,aH:()=>i,ci:()=>n});var t=e(79472);const n={ADD:(0,t.d)("dspace/core/cache/syncbuffer/ADD"),COMMIT:(0,t.d)("dspace/core/cache/syncbuffer/COMMIT"),EMPTY:(0,t.d)("dspace/core/cache/syncbuffer/EMPTY")};class o{constructor(a,p){this.type=n.ADD,this.payload={href:a,method:p}}}class i{constructor(a){this.type=n.COMMIT,this.payload=a}}class d{constructor(a){this.type=n.EMPTY,this.payload=a}}},69627:(R,c,e)=>{"use strict";e.d(c,{o:()=>i});var t=e(54004),n=e(68285),o=e(72839);class i extends o.t{findByHref(r,a=!0,p=!0,...h){return super.findByHref(r,a,p,...h).pipe((0,n.hC)(),(0,t.U)(m=>{if(m.hasFailed)throw new Error("Couldn't retrieve the config");return m}))}findByName(r,a=!0,p=!0,...h){return super.findById(r,a,p,...h)}}},21802:(R,c,e)=>{"use strict";e.d(c,{Y:()=>m});var a,t=e(70655),n=e(29923),o=e(19782),i=e(24789),d=e(45008),r=e(73692);let p=((a=class extends d.E{}).type=r.t_,a);var h;(0,t.__decorate)([n.autoserialize,(0,t.__metadata)("design:type",Boolean)],p.prototype,"isDefault",void 0),(0,t.__decorate)([n.deserialize,(0,t.__metadata)("design:type",i.l)],p.prototype,"sections",void 0),(0,t.__decorate)([n.deserialize,(0,t.__metadata)("design:type",Object)],p.prototype,"_links",void 0),p=(0,t.__decorate)([o.KB,(0,n.inheritSerialization)(d.E)],p);let m=((h=class extends p{}).type=r.RQ,h);m=(0,t.__decorate)([o.KB,(0,n.inheritSerialization)(p)],m)},63600:(R,c,e)=>{"use strict";e.d(c,{D:()=>h});var r,t=e(70655),n=e(29923),o=e(19782),i=e(45008),d=e(73692);let a=((r=class extends i.E{}).type=d.jB,r);var p;(0,t.__decorate)([n.autoserialize,(0,t.__metadata)("design:type",Array)],a.prototype,"rows",void 0),a=(0,t.__decorate)([o.KB,(0,n.inheritSerialization)(i.E)],a);let h=((p=class extends a{}).type=d.Q1,p);h=(0,t.__decorate)([o.KB,(0,n.inheritSerialization)(a)],h)},73692:(R,c,e)=>{"use strict";e.d(c,{MX:()=>m,Q1:()=>d,RQ:()=>n,Zm:()=>a,fB:()=>p,jB:()=>i,l9:()=>_,rj:()=>h,t_:()=>o});var t=e(3879);const n=new t._("submissiondefinitions"),o=new t._("submissiondefinition"),i=new t._("submissionform"),d=new t._("submissionforms"),a=(new t._("submissionsections"),new t._("submissionsection")),p=new t._("submissionuploads"),h=new t._("submissionupload"),m=new t._("submissionaccessoption"),_=new t._("bulkaccessconditionoption")},45008:(R,c,e)=>{"use strict";e.d(c,{E:()=>d});var t=e(70655),n=e(29923),o=e(3879),i=e(63037);class d{}(0,t.__decorate)([n.autoserialize,(0,t.__metadata)("design:type",String)],d.prototype,"id",void 0),(0,t.__decorate)([n.autoserialize,(0,t.__metadata)("design:type",String)],d.prototype,"name",void 0),(0,t.__decorate)([i.OJ,n.autoserialize,(0,t.__metadata)("design:type",o._)],d.prototype,"type",void 0),(0,t.__decorate)([n.deserialize,(0,t.__metadata)("design:type",Object)],d.prototype,"_links",void 0)},24836:(R,c,e)=>{"use strict";e.d(c,{X:()=>_});var m,t=e(70655),n=e(69627),o=e(31241),i=e(93498),d=e(43015),r=e(58943),a=e(73692),p=e(21147),h=e(94650);let _=((m=class extends n.o{constructor(E,O,b,M){super("submissionforms",E,O,b,M),this.requestService=E,this.rdbService=O,this.objectCache=b,this.halService=M}findByHref(E,O=!0,b=!0,...M){return super.findByHref(E,O,b,...M)}}).\u0275fac=function(E){return new(E||m)(h.\u0275\u0275inject(o.s),h.\u0275\u0275inject(d.Q),h.\u0275\u0275inject(r.a),h.\u0275\u0275inject(i.q))},m.\u0275prov=h.\u0275\u0275defineInjectable({token:m,factory:m.\u0275fac}),m);_=(0,t.__decorate)([(0,p.cQ)(a.Q1),(0,t.__metadata)("design:paramtypes",[o.s,d.Q,r.a,i.q])],_)},79530:(R,c,e)=>{"use strict";e.d(c,{IR:()=>ar,Cq:()=>Yn});var t=e(36895),n=e(80529),o=e(88776),i=e(89653),d=e(70891),r=e(24702),a=e(958),p=e(54541),h=e(39646),m=e(94621),_=e(94650);class v extends Map{}const E=new _.InjectionToken("mockResponseMap"),O=new Map([]);var b=e(21540);let M=(()=>{class Ge extends m.Y{constructor(nn,Tn){super(Tn),this.mockResponseMap=nn,this.http=Tn}get(nn){const Tn=this.getMockData(nn);return(0,r.xb)(Tn)?super.get(nn):this.toMockResponse$(Tn)}request(nn,Tn,jn,Sr,Jr){const kn=this.getMockData(Tn);return(0,r.xb)(kn)?super.request(nn,Tn,jn,Sr,Jr):this.toMockResponse$(kn)}toMockResponse$(nn){return(0,h.of)({payload:nn,headers:new n.WM,statusCode:200,statusText:"OK"})}getMockData(nn){let Tn;if(Tn=this.mockResponseMap.has(nn)?nn:new URL(nn).pathname.slice(b.N.rest.nameSpace.length),this.mockResponseMap.has(Tn))return JSON.parse(JSON.stringify(this.mockResponseMap.get(Tn)))}}return Ge.\u0275fac=function(nn){return new(nn||Ge)(_.\u0275\u0275inject(E),_.\u0275\u0275inject(n.eN))},Ge.\u0275prov=_.\u0275\u0275defineInjectable({token:Ge,factory:Ge.\u0275fac}),Ge})();var k,P=e(46418),D=e(51117),l=e(21549),C=e(4177),I=e(72312),g=e(74851),B=e(7696),L=e(27645),V=e(43015),Y=e(58943),
1X=e(21802),te=e(63600),K=e(70655),ee=e(29923),ae=e(19782),Q=e(45008),j=e(73692);let G=((k=class extends Q.E{}).type=j.Zm,k);(0,K.__decorate)([ee.autoserialize,(0,K.__metadata)("design:type",String)],G.prototype,"header",void 0),(0,K.__decorate)([ee.autoserialize,(0,K.__metadata)("design:type",Boolean)],G.prototype,"mandatory",void 0),(0,K.__decorate)([ee.autoserialize,(0,K.__metadata)("design:type",String)],G.prototype,"sectionType",void 0),(0,K.__decorate)([ee.autoserialize,(0,K.__metadata)("design:type",Object)],G.prototype,"visibility",void 0),(0,K.__decorate)([ee.deserialize,(0,K.__metadata)("design:type",Object)],G.prototype,"_links",void 0),G=(0,K.__decorate)([ae.KB,(0,ee.inheritSerialization)(Q.E)],G);var ne,ie=e(69751);let q=((ne=class extends Q.E{}).type=j.rj,ne);var oe;(0,K.__decorate)([ee.autoserialize,(0,K.__metadata)("design:type",Array)],q.prototype,"accessConditionOptions",void 0),(0,K.__decorate)([(0,ae.p4)(j.Q1),(0,K.__metadata)("design:type",ie.y)],q.prototype,"metadata",void 0),(0,K.__decorate)([ee.autoserialize,(0,K.__metadata)("design:type",Boolean)],q.prototype,"required",void 0),(0,K.__decorate)([ee.autoserialize,(0,K.__metadata)("design:type",Number)],q.prototype,"maxSize",void 0),(0,K.__decorate)([ee.deserialize,(0,K.__metadata)("design:type",Object)],q.prototype,"_links",void 0),q=(0,K.__decorate)([ae.KB,(0,ee.inheritSerialization)(Q.E)],q);let ce=((oe=class extends q{}).type=j.fB,oe);ce=(0,K.__decorate)([ae.KB,(0,ee.inheritSerialization)(q)],ce);var ye=e(24836),Me=e(54004),Ee=e(92967),Ae=e(87459);let Je=(()=>{class Ge{constructor(nn){this.actions$=nn,this.fixTimestampsOnRehydrate=(0,o.GW)(()=>this.actions$.pipe((0,o.l4)(Ee.H.REHYDRATE),(0,Me.U)(()=>new Ae.V9((new Date).getTime()))))}}return Ge.\u0275fac=function(nn){return new(nn||Ge)(_.\u0275\u0275inject(o.eX))},Ge.\u0275prov=_.\u0275\u0275defineInjectable({token:Ge,factory:Ge.\u0275fac}),Ge})();var _t=e(39300),It=e(63900),it=e(95698),Be=e(12229),Xe=e(91110),pt=e(63881),Mt=e(61306),Yt=e(55562),nt=e(1906);let mt=(()=>{class Ge{constructor(nn,Tn){this.actions$=nn,this.store=Tn,this.addObject$=(0,o.GW)(()=>this.actions$.pipe((0,o.l4)(Ae.lz.ADD),(0,_t.h)(jn=>(0,r.Uh)(jn.payload.objectToCache)&&(0,r.Uh)(jn.payload.objectToCache.uuid)),(0,Me.U)(jn=>new Xe.q5(nt.s.OBJECT,jn.payload.objectToCache.uuid,jn.payload.objectToCache._links.self.href)))),this.addAlternativeObjectLink$=(0,o.GW)(()=>this.actions$.pipe((0,o.l4)(Ae.lz.ADD),(0,Me.U)(jn=>{const Sr=jn.payload.alternativeLink,Jr=(0,r.Uh)(jn.payload.objectToCache?._links?.self)?jn.payload.objectToCache._links.self.href:Sr;return(0,r.Uh)(Sr)&&Sr!==Jr?new Xe.q5(nt.s.ALTERNATIVE_OBJECT_LINK,Sr,Jr):new Yt.B}))),this.removeObject$=(0,o.GW)(()=>this.actions$.pipe((0,o.l4)(Ae.lz.REMOVE),(0,Me.U)(jn=>new Xe.zc(nt.s.OBJECT,jn.payload)))),this.addRequest$=(0,o.GW)(()=>this.actions$.pipe((0,o.l4)(Be.S1.CONFIGURE),(0,_t.h)(jn=>jn.payload.method===pt.a.GET),(0,It.w)(jn=>{const Sr=(0,Mt.z2)(jn.payload.href);return this.store.pipe((0,i.Ys)((0,Mt.Be)(Sr)),(0,it.q)(1),(0,Me.U)(Jr=>[jn,Jr]))}),(0,It.w)(([jn,Sr])=>{let Jr=[];return(0,r.Uh)(Sr)&&(Jr=[new Be.eu(Sr)]),Jr=[...Jr,new Xe.q5(nt.s.REQUEST,(0,Mt.z2)(jn.payload.href),jn.payload.uuid)],Jr})))}}return Ge.\u0275fac=function(nn){return new(nn||Ge)(_.\u0275\u0275inject(o.eX),_.\u0275\u0275inject(i.yh))},Ge.\u0275prov=_.\u0275\u0275defineInjectable({token:Ge,factory:Ge.\u0275fac}),Ge})();var en=e(86099),pn=e(11365),tt=e(70262),Tt=e(16445),At=e(31241),Rt=e(63963);let Pt=(()=>{class Ge{constructor(nn,Tn,jn,Sr,Jr){this.actions$=nn,this.restApi=Tn,this.injector=jn,this.requestService=Sr,this.xsrfService=Jr,this.execute=(0,o.GW)(()=>this.actions$.pipe((0,o.l4)(Be.S1.EXECUTE),(0,en.z)(kn=>this.requestService.getByUUID(kn.payload).pipe((0,it.q)(1))),(0,_t.h)(kn=>(0,r.Uh)(kn)),(0,pn.M)(this.xsrfService.tokenInitialized$),(0,_t.h)(([kn,Ir])=>kn.request.method===pt.a.GET||!0===Ir),(0,Me.U)(([kn,Ir])=>kn.request),(0,en.z)(kn=>{let Ir=kn.body;return(0,r.UE)(kn.body)&&!kn.isMultipart&&(Ir=new Tt.F((0,ae.w2)(kn.body.type)).serialize(kn.body)),this.restApi.request(kn.method,kn.href,Ir,kn.options,kn.isMultipart).pi
1pe((0,Me.U)(Yr=>this.injector.get(kn.getResponseParser()).parse(kn,Yr)),(0,Me.U)(Yr=>new Be.Ku(kn.uuid,Yr.statusCode,Yr.link,Yr.unCacheableObject)),(0,tt.K)(Yr=>{if((0,r.Uh)(Yr.statusCode))return[new Be.kg(kn.uuid,Yr.statusCode,Yr.message)];throw Yr}))}))),this.fixTimestampsOnRehydrate=(0,o.GW)(()=>this.actions$.pipe((0,o.l4)(Ee.H.REHYDRATE),(0,Me.U)(()=>new Be.YT((new Date).getTime()))))}}return Ge.\u0275fac=function(nn){return new(nn||Ge)(_.\u0275\u0275inject(o.eX),_.\u0275\u0275inject(m.Y),_.\u0275\u0275inject(_.Injector),_.\u0275\u0275inject(At.s),_.\u0275\u0275inject(Rt.z))},Ge.\u0275prov=_.\u0275\u0275defineInjectable({token:Ge,factory:Ge.\u0275fac}),Ge})();var xt=e(39841),lt=e(5963),Ut=e(34986),ke=e(233),ot=e(18505),gt=e(85363),zt=e(24755),hn=e(19168),Vt=e(64200),$n=e(98171);class Dt{constructor(Ot,nn){this.zone=Ot,this.scheduler=nn}schedule(...Ot){return this.zone.runOutsideAngular(()=>this.scheduler.schedule.apply(this.scheduler,Ot))}now(){return this.scheduler.now()}}class Ft{constructor(Ot,nn){this.zone=Ot,this.scheduler=nn}schedule(...Ot){return this.zone.run(()=>this.scheduler.schedule.apply(this.scheduler,Ot))}now(){return this.scheduler.now()}}var St=e(19937);const wt=[...Object.values(Vt.sS).filter(Ge=>Ge!==Vt.sS.UNSET_USER_AS_IDLE),...Object.values(Be.S1),...Object.values($n.o0)];let Xt=(()=>{class Ge{constructor(nn,Tn,jn,Sr,Jr){this.actions$=nn,this.zone=Tn,this.authorizationsService=jn,this.authService=Sr,this.store=Jr,this.authenticate$=(0,o.GW)(()=>this.actions$.pipe((0,o.l4)(Vt.sS.AUTHENTICATE),(0,It.w)(kn=>this.authService.authenticate(kn.payload.email,kn.payload.password).pipe((0,it.q)(1),(0,Me.U)(Ir=>new Vt.$L(Ir.token)),(0,tt.K)(Ir=>(0,h.of)(new Vt.Ih(Ir))))))),this.authenticateSuccess$=(0,o.GW)(()=>this.actions$.pipe((0,o.l4)(Vt.sS.AUTHENTICATE_SUCCESS),(0,Me.U)(kn=>new Vt.LF(kn.payload)))),this.authenticated$=(0,o.GW)(()=>this.actions$.pipe((0,o.l4)(Vt.sS.AUTHENTICATED),(0,It.w)(kn=>this.authService.authenticatedUser(kn.payload).pipe((0,Me.U)(Ir=>new Vt.t$(null!==Ir,kn.payload,Ir)),(0,tt.K)(Ir=>(0,h.of)(new Vt.OM(Ir))))))),this.authenticatedSuccess$=(0,o.GW)(()=>this.actions$.pipe((0,o.l4)(Vt.sS.AUTHENTICATED_SUCCESS),(0,ot.b)(kn=>this.authService.storeToken(kn.payload.authToken)),(0,It.w)(kn=>this.authService.getRedirectUrl().pipe((0,it.q)(1),(0,Me.U)(Ir=>[kn,Ir]))),(0,Me.U)(([kn,Ir])=>(0,r.Uh)(Ir)?new Vt.Xb(Ir):new Vt.HC(kn.payload.userHref)))),this.redirectAfterLoginSuccess$=(0,o.GW)(()=>this.actions$.pipe((0,o.l4)(Vt.sS.REDIRECT_AFTER_LOGIN_SUCCESS),(0,ot.b)(kn=>{this.authService.clearRedirectUrl(),this.authService.navigateToRedirectUrl(kn.payload)})),{dispatch:!1}),this.authenticatedError$=(0,o.GW)(()=>this.actions$.pipe((0,o.l4)(Vt.sS.AUTHENTICATED_ERROR),(0,ot.b)(kn=>this.authService.removeToken())),{dispatch:!1}),this.retrieveAuthenticatedEperson$=(0,o.GW)(()=>this.actions$.pipe((0,o.l4)(Vt.sS.RETRIEVE_AUTHENTICATED_EPERSON),(0,It.w)(kn=>{const Ir=this.authService.getImpersonateID();let Yr;return Yr=(0,r.Uh)(Ir)?this.authService.retrieveAuthenticatedUserById(Ir):this.authService.retrieveAuthenticatedUserByHref(kn.payload),Yr.pipe((0,Me.U)(ka=>new Vt.aj(ka.id)),(0,tt.K)(ka=>(0,h.of)(new Vt.PW(ka))))}))),this.checkToken$=(0,o.GW)(()=>this.actions$.pipe((0,o.l4)(Vt.sS.CHECK_AUTHENTICATION_TOKEN),(0,It.w)(()=>this.authService.hasValidAuthenticationToken().pipe((0,Me.U)(kn=>new Vt.LF(kn)),(0,tt.K)(kn=>(0,h.of)(new Vt.jr)))))),this.checkTokenCookie$=(0,o.GW)(()=>this.actions$.pipe((0,o.l4)(Vt.sS.CHECK_AUTHENTICATION_TOKEN_COOKIE),(0,It.w)(()=>this.authService.checkAuthenticationCookie().pipe((0,Me.U)(kn=>kn.authenticated?(this.authService.setExternalAuthStatus(!0),this.authorizationsService.invalidateAuthorizationsRequestCache(),new Vt.gA):new Vt.gY(kn)),(0,tt.K)(kn=>(0,h.of)(new Vt.OM(kn))))))),this.retrieveToken$=(0,o.GW)(()=>this.actions$.pipe((0,o.l4)(Vt.sS.RETRIEVE_TOKEN),(0,It.w)(kn=>this.authService.refreshAuthenticationToken(null).pipe((0,it.q)(1),(0,Me.U)(Ir=>new Vt.$L(Ir)),(0,tt.K)(Ir=>(0,h.of)(new Vt.Ih(Ir))))))),this.refreshToken$=(0,o.GW)(()=>this.actions$.pipe((0,o.l4)(Vt.sS.REFRESH_TOKEN),(0,It.w)(kn=>this.authService.refreshAuthenticationToken(kn.payload).pipe((0,Me.U)(Ir=>new Vt.dl(Ir)),(0,tt.K)(Ir=>(0,h.of)(new Vt.qm)))))),this.refreshTokenSuccess$=(0,o.GW)(()=>this.actions$.pipe((0,o.l4)(Vt.sS.REFRESH_TOKEN_SUCCESS),(0,ot.b)(kn=>this.authService.replaceToken(kn.payload))),{dispatch:!1}),this.clearInvalidTokenOnRehydrate$=(0,o.GW)(()=>this.actions$.pipe((0,o.l4)(Ee.H.REHYDRATE),(0,It.w)(()=>{const kn=this.store.pipe((0,i.Ys)(hn.oX)),Ir=this.store.pipe((0,i.Ys)(hn.$8));return(0,xt.a)([kn,Ir]).pipe((0,it.q)(1),(0,_t.h)(([Yr,ka])=>Yr&&!ka),(0,ot.b)(()=>this.authService.removeToken()),(0,ot.b)(()=>this.authService.resetAuthenticationError()))})),{dispatch:!1}),this.invalidateAuthorizationsRequestCache$=(0,o.GW)(()=>this.actions$.pipe((0,o.l4)(Ee.H.REHYDRATE),(0,ot.b)(()=>this.authorizationsService.invalidateAuthorizationsRequestCache())),{dispatch:!1}),this.logOut$=(0,o.GW)(()=>this.actions$.pipe((0,o.l4)(Vt.sS.LOG_OUT),(0,It.w)(()=>(this.authService.stopImpersonating(),this.authService.logout().pipe((0,Me.U)(kn=>new Vt.ds),(0,tt.K)(kn=>(0,h.of)(new Vt.Ah(kn)))))))),this.logOutSuccess$=(0,o.GW)(()=>this.actions$.pipe((0,o.l4)(Vt.sS.LOG_OUT_SUCCESS),(0,ot.b)(()=>this.authService.removeToken()),(0,ot.b)(()=>this.authService.clearRedirectUrl()),(0,ot.b)(()=>this.authService.refreshAfterLogout())),{dispatch:!1}),this.redirectToLoginTokenExpired$=(0,o.GW)(()=>this.actions$.pipe((0,o.l4)(Vt.sS.REDIRECT_TOKEN_EXPIRED),(0,ot.b)(()=>this.authService.removeToken()),(0,ot.b)(()=>this.authService.redirectToLoginWhenTokenExpired())),{dispatch:!1}),this.retrieveMethods$=(0,o.GW)(()=>this.actions$.pipe((0,o.l4)(Vt.sS.RETRIEVE_AUTH_METHODS),(0,It.w)(kn=>this.authService.retrieveAuthMethodsFromAuthStatus(kn.payload).pipe((0,Me.U)(Ir=>new Vt.TF(Ir)),(0,tt.K)(Ir=>(0,h.of)(new Vt.lm)))))),this.trackIdleness$=(0,o.GW)(()=>this.actions$.pipe((0,_t.h)(kn=>!wt.includes(kn.type)),(0,It.w)(()=>(0,lt.H)(b.N.auth.ui.timeUntilIdle,new Dt(this.zone,Ut.z))),(0,gt.Q)(new Ft(this.zone,ke.N)),(0,Me.U)(()=>new Vt.zx)))}}return Ge.\u0275fac=function(nn){return new(nn||Ge)(_.\u0275\u0275inject(o.eX),_.\u0275\u0275inject(_.NgZone),_.\u0275\u0275inject(St._),_.\u0275\u0275inject(zt.e8),_.\u0275\u0275inject(i.yh))},Ge.\u0275prov=_.\u0275\u0275defineInjectable({token:Ge,factory:Ge.\u0275fac}),Ge})();var st=e(39510);let xe=(()=>{class Ge{constructor(nn){this.actions$=nn,this.commit$=(0,o.GW)(()=>this.actions$.pipe((0,o.l4)(st.nQ.COMMIT_JSON_PATCH_OPERATIONS),(0,Me.U)(Tn=>
1new st.RR(Tn.payload.resourceType,Tn.payload.resourceId))))}}return Ge.\u0275fac=function(nn){return new(nn||Ge)(_.\u0275\u0275inject(o.eX))},Ge.\u0275prov=_.\u0275\u0275defineInjectable({token:Ge,factory:Ge.\u0275fac}),Ge})();var Le=e(36129),qe=e(94086),at=e(1588),Jt=e(76123),$t=e(25130);let rn=(()=>{class Ge{constructor(nn,Tn,jn,Sr){this.actions$=nn,this.store=Tn,this.requestService=jn,this.objectCache=Sr,this.setTimeoutForServerSync=(0,o.GW)(()=>this.actions$.pipe((0,o.l4)(Jt.ci.ADD),(0,Le.z)(Jr=>{const kn=b.N.cache.autoSync,Ir=kn.timePerMethod[Jr.payload.method]||kn.defaultTime;return(0,h.of)(new Jt.aH(Jr.payload.method)).pipe((0,qe.g)(1e3*Ir))}))),this.commitServerSyncBuffer=(0,o.GW)(()=>this.actions$.pipe((0,o.l4)(Jt.ci.COMMIT),(0,It.w)(Jr=>this.store.pipe((0,i.Ys)(function Wt(){return(0,i.P1)(at.v,Ge=>Ge["cache/syncbuffer"])}()),(0,it.q)(1),(0,It.w)(kn=>{const Ir=kn.buffer.filter(Yr=>!(0,r.Uh)(Jr.payload)||Yr.method===Jr.payload).map(Yr=>{if(Yr.method===pt.a.PATCH)return this.applyPatch(Yr.href)});return(0,r.UE)(Ir)&&(0,r.pT)(Ir[0])?(0,xt.a)(...Ir).pipe((0,It.w)(Yr=>[...Yr,new Jt.LQ(Jr.payload)])):(0,h.of)(new Yt.B)})))))}applyPatch(nn){return this.objectCache.getByHref(nn).pipe((0,it.q)(1)).pipe((0,Me.U)(jn=>{if((0,r.UE)(jn.patches)){const Sr=[].concat(...jn.patches.map(Jr=>Jr.operations));(0,r.UE)(Sr)&&this.requestService.send(new $t._x(this.requestService.generateRequestId(),nn,Sr))}return new Ae.HO(nn)}))}}return Ge.\u0275fac=function(nn){return new(nn||Ge)(_.\u0275\u0275inject(o.eX),_.\u0275\u0275inject(i.yh),_.\u0275\u0275inject(At.s),_.\u0275\u0275inject(Y.a))},Ge.\u0275prov=_.\u0275\u0275defineInjectable({token:Ge,factory:Ge.\u0275fac}),Ge})();var qt=e(74199),un=e(77579),dt=e(54355);let ht=(()=>{class Ge{constructor(nn,Tn){this.actions$=nn,this.notificationsService=Tn,this.allIdentifier="all",this.actionMap$={},this.notificationActionMap$={all:new un.x},this.mapLastActions$=(0,o.GW)(()=>this.actions$.pipe((0,o.l4)(...Object.values(qt.Vi)),(0,Me.U)(jn=>{if((0,r.Uh)(jn.payload)){const Sr=jn.payload.url;(0,r.xI)(this.actionMap$[Sr])&&(this.actionMap$[Sr]=new un.x),this.actionMap$[Sr].next(jn)}})),{dispatch:!1}),this.mapLastNotificationActions$=(0,o.GW)(()=>this.actions$.pipe((0,o.l4)(...Object.values($n.o0)),(0,Me.U)(jn=>{const Sr=jn.payload.id||jn.payload||this.allIdentifier;(0,r.xI)(this.notificationActionMap$[Sr])&&(this.notificationActionMap$[Sr]=new un.x),this.notificationActionMap$[Sr].next(jn)})),{dispatch:!1}),this.removeAfterDiscardOrReinstateOnUndo$=(0,o.GW)(()=>this.actions$.pipe((0,o.l4)(qt.Vi.DISCARD),(0,It.w)(jn=>{const Sr=jn.payload.url,Jr=jn.payload.notification,kn=Jr.options.timeOut;let Ir=new qt.Y7(jn.payload.url);return jn.payload.discardAll&&(Ir=new qt.Fm),(0,dt.S)((0,h.of)(Ir).pipe((0,qe.g)(kn)),this.actionMap$[Sr].pipe((0,it.q)(1),(0,ot.b)(()=>{this.notificationsService.remove(Jr)}),(0,Me.U)(Yr=>Yr.type===qt.Vi.REINSTATE?new Yt.B:Ir)),this.notificationActionMap$[Jr.id].pipe((0,_t.h)(Yr=>Yr.type===$n.o0.REMOVE_NOTIFICATION),(0,Me.U)(()=>Ir)),this.notificationActionMap$[this.allIdentifier].pipe((0,_t.h)(Yr=>Yr.type===$n.o0.REMOVE_ALL_NOTIFICATIONS),(0,Me.U)(()=>Ir)))})))}}return Ge.\u0275fac=function(nn){return new(nn||Ge)(_.\u0275\u0275inject(o.eX),_.\u0275\u0275inject(P.T))},Ge.\u0275prov=_.\u0275\u0275defineInjectable({token:Ge,factory:Ge.\u0275fac}),Ge})();var je=e(19799);const Zt={ROUTE_UPDATE:(0,e(79472).d)("dspace/core/router/ROUTE_UPDATE")};class We{constructor(){this.type=Zt.ROUTE_UPDATE}}var Ne=e(5360);let ze=(()=>{class Ge{constructor(nn,Tn){this.actions$=nn,this.service=Tn,this.routeChange$=(0,o.GW)(()=>this.actions$.pipe((0,o.l4)(Zt.ROUTE_UPDATE),(0,Me.U)(()=>new je.E3))),this.afterResetChange$=(0,o.GW)(()=>this.actions$.pipe((0,o.l4)(je.Ei.RESET),(0,ot.b)(()=>this.service.setCurrentRouteInfo())),{dispatch:!1})}}return Ge.\u0275fac=function(nn){return new(nn||Ge)(_.\u0275\u0275inject(o.eX),_.\u0275\u0275inject(Ne.MZ))},Ge.\u0275prov=_.\u0275\u0275defineInjectable({token:Ge,factory:Ge.\u0275fac}),Ge})();var bt=e(54482),En=e(25403),nr=e(66943),Cn=e(34793);let bn=(()=>{class Ge{constructor(nn,Tn){this.actions$=nn,this.router=Tn,this.routeChange$=(0,o.GW)(()=>this.actions$.pipe((0,o.l4)(nr.tE),function wn(){return(0,bt.e)((Ge,Ot)=>{let nn,Tn=!1;Ge.subscribe((0,En.x)(Ot,jn=>{const Sr=nn;nn=jn,Tn&&Ot.next([Sr,jn]),Tn=!0}))})}(),(0,Me.U)(jn=>jn.map(Sr=>this.router.parseUrl(Sr.payload.routerState.url).root.children.primary.segments.map(kn=>kn.path).join("/"))),(0,_t.h)(jn=>jn[0]!==jn[1]),(0,Me.U)(()=>new We)))}}return Ge.\u0275fac=function(nn){return new(nn||Ge)(_.\u0275\u0275inject(o.eX),_.\u0275\u0275inject(Cn.F0))},Ge.\u0275prov=_.\u0275\u0275defineInjectable({token:Ge,factory:Ge.\u0275fac}),Ge})();var cn=e(53342);const In=[Pt,Je,mt,Xt,xe,rn,ht,ze,bn,(()=>{class Ge{constructor(nn){this.actions$=nn,this.reinitDSOMenus=(0,o.GW)(()=>this.actions$.pipe((0,o.l4)(Ee.H.REHYDRATE),(0,Me.U)(()=>new cn.Hs)))}}return Ge.\u0275fac=function(nn){return new(nn||Ge)(_.\u0275\u0275inject(o.eX))},Ge.\u0275prov=_.\u0275\u0275defineInjectable({token:Ge,factory:Ge.\u0275fac}),Ge})()];var Nn=e(15861);const Rn=Object.create(null);var rr=e(81554);const Mr=Object.create(null);var ii=e(5488),fi=e(85714);const sr={authenticated:!1,loaded:!1,blocking:!0,loading:!1,authMethods:[],externalAuth:!1,idle:!1};var Wr=(()=>{return(Ge=Wr||(Wr={})).test="test",Ge.remove="remove",Ge.add="add",Ge.replace="replace",Ge.move="move",Ge.copy="copy",Wr;var Ge})();const Gi=Object.create(null);function mr(Ge){return{operation:Ge,timeCompleted:(new Date).getTime()}}const Gn={buffer:[]};var jr=e(4807);const Ao={queryParams:{},params:{}};function qi(Ge,Ot,nn){const Tn=Ge[nn],Sr=[...Tn[Ot.payload.key]||[],Ot.payload.value],Jr=Object.assign({},Tn,{[Ot.payload.key]:Sr});return Object.assign({},Ge,{[nn]:Jr})}function ri(Ge,Ot,nn){const Tn=(0,r.UE)(Ot.payload)?{[nn]:{[Ot.payload.key]:Ot.payload.value}}:{};return Object.assign({},Ge,Tn)}function Ko(Ge,Ot,nn){const jn=Object.assign({},Ge[nn],{[Ot.payload.key]:Ot.payload.value});return Object.assign({},Ge,{[nn]:jn})}var Eo=e(33982);const Vo={selectedBitstreamFormats:[]};var cs=e(36205);const $o=[];var _i=e(27544);const Ho={tagsInUse:[]},ds={bitstreamFormats:function eo(Ge=Vo,Ot){switch(Ot.type){case Eo.xi.SELECT_FORMAT:return Object.assign({},Ge,{selectedBitstreamFormats:[...Ge.selectedBitstreamFormats,Ot.bitstreamFormat]});case Eo.xi.DESELECT_FORMAT:return Object.assign({},Ge,{selectedBitstreamFormats:Ge.selectedBitstreamFormats.filter(nn=>nn!==Ot.bitstreamFormat)});case Eo.xi.DESELECT_ALL_FORMAT:return Object.assign({},Ge,{selectedBitstreamFormats:[]});default:return Ge}},"cache/object":Nn.Ai,"cache/syncbuffer":function qn(Ge=Gn,Ot){switch(Ot.type){case Jt.ci.ADD:return function wi(Ge,Ot){const nn=Ot.payload;return(0,r.xI)(Ge.buffer.find(Tn=>Tn.href===nn.href&&Tn.method===nn.method))?Object.assign({},Ge,{buffer:Ge.buffer.concat(nn)}):Ge}(Ge,Ot);case Jt.ci.EMPTY:return function mi(Ge,Ot){let nn=[];return(0,r.Uh)(Ot.payload)&&(nn=Ge.buffer.filter(Tn=>Tn.method!==Ot.payload)),Object.assign({},Ge,{buffer:nn})}(Ge,Ot);default:return Ge}},"cache/object-updates":jr.Q,"data/request":function Mn(Ge=Mr,Ot){switch(Ot.type){case Be.S1.CONFIGURE:return function Xn(Ge,Ot){return Object.assign({},Ge,{[Ot.payload.uuid]:{request:Ot.payload,state:rr.q$.RequestPending,response:null,lastUpdated:Ot.lastUpdated}})}(Ge,Ot);case Be.S1.EXECUTE:return function cr(Ge,Ot){return(0,r.Ft)(Ge[Ot.payload])?Ge:Object.assign({},Ge,{[Ot.payload]:Object.assign({},Ge[Ot.payload],{state:rr.q$.ResponsePending,lastUpdated:Ot.lastUpdated})})}(Ge,Ot);case Be.S1.SUCCESS:return function Qr(Ge,Ot){const nn=Ge[Ot.payload.uuid];return(0,r.Ft)(nn)?Ge:Object.assign({},Ge,{[Ot.payload.uuid]:Object.assign({},nn,{state:(0,rr._T)(nn.state)?rr.q$.SuccessStale:rr.q$.Success,response:{timeCompleted:Ot.payload.timeCompleted,lastUpdated:Ot.payload.timeCompleted,statusCode:Ot.payload.statusCode,payloadLink:Ot.payload.link,unCacheableObject:Ot.payload.unCacheableObject,errorMessage:null},lastUpdated:Ot.lastUpdated})})}(Ge,Ot);case Be.S1.ERROR:return function Xr(Ge,Ot){const nn=Ge[Ot.payload.uuid];return(0,r.Ft)(nn)?Ge:Object.assign({},Ge,{[Ot.payload.uuid]:Object.assign({},nn,{state:(0,rr._T)(nn.state)?rr.q$.ErrorStale:rr.q$.Error,response:{timeCompleted:Ot.payload.timeCompleted,lastUpdated:Ot.payload.timeCompleted,statusCode:Ot.payload.statusCode,payloadLink:null,errorMessage:Ot.payload.errorMessage},lastUpdated:Ot.lastUpdated})})}(Ge,Ot);case Be.S1.STALE:return function wr(Ge,Ot){const nn=Ge[Ot.payload.uuid];if((0,r.Ft)(nn)||(0,rr._T)(nn.state)||(0,rr.tj)(nn.state))return Ge;{let Tn;return Tn=(0,rr.vs)(nn.state)?rr.q$.ResponsePendingStale:(0,rr.F0)(nn.state)?rr.q$.SuccessStale:rr.q$.ErrorStale,Object.assign({},Ge,{[Ot.payload.uuid]:Object.assign({},nn,{state:Tn,lastUpdated:Ot.lastUpdated})})}}(Ge,Ot);case Be.S1.RESET_TIMESTAMPS:return function ui(Ge,Ot){const nn=Object.create(null);return Object.keys(Ge).forEach(Tn=>{nn[Tn]=Object.assign({},Ge[Tn],{response:Object.assign({},Ge[Tn].response,{timeCompleted:Ot.payload}),lastUpdated:Ot.payload})}),nn}(Ge,Ot);case Be.S1.REMOVE:return function Nr(Ge,Ot){const nn=Object.assign({},Ge);return nn[Ot.uuid]=null,nn}(Ge,Ot);default:return Ge}},history:function yo(Ge=$o,Ot){return Ot.type===cs.m.ADD_TO_HISTORY?[...Ge,Ot.payload.url]:Ge},index:function Jn(Ge=Rn,Ot){switch(Ot.type){case Xe.BF.ADD:return function zn(Ge,Ot){const Tn=Object.assign({},Ge[Ot.payload.name],{[Ot.payload.key]:Ot.payload.value});return Object.assign({},Ge,{[Ot.payload.name]:Tn})}(Ge,Ot);case Xe.BF.REMOVE_BY_VALUE:return function ur(Ge,Ot){const nn=Ge[Ot.payload.name],Tn=Object.create(null);for(const jn in nn)nn[jn]!==Ot.payload.value&&(Tn[jn]=nn[jn]);return Object.assign({},Ge,{[Ot.payload.name]:Tn})}(Ge,Ot);case Xe.BF.REMOVE_BY_SUBSTRING:return function Rr(Ge,Ot){const nn=Ge[Ot.payload.name],Tn=Object.create(null);for(const jn in nn)jn.indexOf(Ot.payload.value)<0&&(Tn[jn]=nn[jn]);return Object.assign({},Ge,{[Ot.payload.name]:Tn})}(Ge,Ot);default:return Ge}},auth:function Ai(Ge=sr,Ot){switch(Ot.type){case Vt.sS.AUTHENTICATE:return Object.assign({},Ge,{error:void 0,loading:!0,info:void 0});case Vt.sS.AUTHENTICATED:return Object.assign({},Ge,{loading:!0,blocking:!0});case Vt.sS.CHECK_AUTHENTICATION_TOKEN:case Vt.sS.CHECK_AUTHENTICATION_TOKEN_COOKIE:return Object.assign({},Ge,{loading:!0});case Vt.sS.SET_AUTH_COOKIE_STATUS:return Object.assign({},Ge,{externalAuth:Ot.payload});case Vt.sS.AUTHENTICATED_ERROR:case Vt.sS.RETRIEVE_AUTHENTICATED_EPERSON_ERROR:return Object.assign({},Ge,{authenticated:!1,authToken:void 0,error:Ot.payload.message,loaded:!0,blocking:!1,loading:!1});case Vt.sS.AUTHENTICATED_SUCCESS:return Object.assign({},Ge,{authenticated:!0,authToken:Ot.payload.authToken});case Vt.sS.RETRIEVE_AUTHENTICATED_EPERSON_SUCCESS:return Object.assign({},Ge,{loaded:!0,error:void 0,loading:!1,blocking:!1,info:void 0,userId:Ot.payload});case Vt.sS.AUTHENTICATE_ERROR:return Object.assign({},Ge,{authenticated:!1,authToken:void 0,error:Ot.payload.message,blocking:!1,loading:!1});case Vt.sS.AUTHENTICATE_SUCCESS:case Vt.sS.LOG_OUT:return Ge;case Vt.sS.LOG_OUT_ERROR:return Object.assign({},Ge,{authenticated:!0,error:Ot.payload.message});case Vt.sS.REFRESH_TOKEN_ERROR:return Object.assign({},Ge,{authenticated:!1,authToken:void 0,error:void 0,loaded:!1,blocking:!1,loading:!1,info:void 0,refreshing:!1,userId:void 0});case Vt.sS.LOG_OUT_SUCCESS:return Object.assign({},Ge,{authenticated:!1,authToken:void 0,error:void 0,loaded:!1,blocking:!0,loading:!0,info:void 0,refreshing:!1,userId:void 0});case Vt.sS.REDIRECT_AUTHENTICATION_REQUIRED:case Vt.sS.REDIRECT_TOKEN_EXPIRED:return Object.assign({},Ge,{authenticated:!1,authToken:void 0,loaded:!1,blocking:!1,loading:!1,info:Ot.payload,userId:void 0});case Vt.sS.REFRESH_TOKEN:return Object.assign({},Ge,{refreshing:!0});case Vt.sS.REFRESH_TOKEN_SUCCESS:return Object.assign({},Ge,{authToken:Ot.payload,refreshing:!1,blocking:!1});case Vt.sS.ADD_MESSAGE:return Object.assign({},Ge,{info:Ot.payload});case Vt.sS.RESET_MESSAGES:return Object.assign({},Ge,{error:void 0,info:void 0});case Vt.sS.RETRIEVE_AUTH_METHODS:return Object.assign({},Ge,{loading:!0});case Vt.sS.RETRIEVE_AUTH_METHODS_SUCCESS:return Object.assign({},Ge,{loading:!1,blocking:!1,authMethods:Ot.payload});case Vt.sS.RETRIEVE_AUTH_METHODS_ERROR:return Object.assign({},Ge,{loading:!1,blocking:!1,authMethods:[new ii.H(fi.q.Password,0)]});case Vt.sS.SET_REDIRECT_URL:return Object.assign({},Ge,{redirectUrl:Ot.payload});case Vt.sS.REDIRECT_AFTER_LOGIN_SUCCESS:return Object.assign({},Ge,{loading:!0,blocking:!0});case Vt.sS.SET_USER_AS_IDLE:return Object.assign({},Ge,{idle:!0});case Vt.sS.UNSET_USER_AS_IDLE:return Object.assign({},Ge,{idle:!1});case Ee.H.REHYDRATE:return Object.assign({},Ge,{blocking:!0});default:return Ge}},"json/patch":function Ri(Ge=Gi,Ot){switch(Ot.type){case st.nQ.COMMIT_JSON_PATCH_OPERATIONS:return function ut(Ge,Ot){return(0,r.Uh)(Ge[Ot.payload.resourceType])&&Ge[Ot.payload.resourceType].commitPending?Object.assign({},Ge,{[Ot.payload.resourceType]:Object.assign({},Ge[Ot.payload.resourceType],{commitPending:!1})}):Ge}(Ge,Ot);case st.nQ.FLUSH_JSON_PATCH_OPERATIONS:return function An(Ge,Ot){if((0,r.Uh)(Ge[Ot.payload.resourceType])){let nn;return(0,r.pT)(Ot.payload.resourceId)?nn=(0,r.Uh)(Ge[Ot.payload.resourceType].children)&&(0,r.Uh)(Ge[Ot.payload.resourceType].children[Ot.payload.resourceId])?Object.assign({},Ge[Ot.payload.resourceType].children,{[Ot.payload.resourceId]:{body:Ge[Ot.payload.resourceType].children[Ot.payload.resourceId].body.filter(Tn=>Tn.timeCompleted>Ge[Ot.payload.resourceType].transactionStartTime)}}):Ge[Ot.payload.resourceType].children:(nn=Ge[Ot.payload.resourceType].children,Object.keys(nn).forEac
1h(Tn=>{nn=Object.assign({},nn,{[Tn]:{body:nn[Tn].body.filter(jn=>jn.timeCompleted>Ge[Ot.payload.resourceType].transactionStartTime)}})})),Object.assign({},Ge,{[Ot.payload.resourceType]:Object.assign({},Ge[Ot.payload.resourceType],{children:nn,transactionStartTime:null})})}return Ge}(Ge,Ot);case st.nQ.NEW_JSON_PATCH_ADD_OPERATION:case st.nQ.NEW_JSON_PATCH_COPY_OPERATION:case st.nQ.NEW_JSON_PATCH_MOVE_OPERATION:case st.nQ.NEW_JSON_PATCH_REMOVE_OPERATION:case st.nQ.NEW_JSON_PATCH_REPLACE_OPERATION:return function dn(Ge,Ot){const nn=Object.assign({},Ge),Tn=function gn(Ge,Ot,nn){return(0,r.Uh)(Ge[Ot])&&(0,r.Uh)(Ge[Ot].children)&&(0,r.Uh)(Ge[Ot].children[nn])&&(0,r.UE)(Ge[Ot].children[nn].body)}(nn,Ot.payload.resourceType,Ot.payload.resourceId)?nn[Ot.payload.resourceType].children[Ot.payload.resourceId].body:Array.of(),jn=function Qn(Ge,Ot,nn,Tn,jn){const Sr=Array.from(Ge);switch(Ot){case st.nQ.NEW_JSON_PATCH_ADD_OPERATION:Sr.push(mr({op:Wr.add,path:nn,value:Tn}));break;case st.nQ.NEW_JSON_PATCH_REPLACE_OPERATION:Sr.push(mr({op:Wr.replace,path:nn,value:Tn}));break;case st.nQ.NEW_JSON_PATCH_REMOVE_OPERATION:Sr.push(mr({op:Wr.remove,path:nn}));break;case st.nQ.NEW_JSON_PATCH_MOVE_OPERATION:Sr.push(mr({op:Wr.move,from:jn,path:nn}))}return function Cr(Ge){const Ot=new Map;for(let nn=Ge.length-1;nn>=0;nn--){const Tn=Ge[nn].operation,jn=`${Tn.op}-${Tn.path}`;Ot.has(jn)?Ot.get(jn)-1===nn&&(Ge.splice(nn,1),Ot.set(jn,nn)):Ot.set(jn,nn)}return Ge}(Sr)}(Tn,Ot.type,Ot.payload.path,(0,r.Uh)(Ot.payload.value)?Ot.payload.value:null,(0,r.Uh)(Ot.payload.from)?Ot.payload.from:null);return(0,r.Uh)(nn[Ot.payload.resourceType])&&(0,r.Uh)(nn[Ot.payload.resourceType].children)?Object.assign({},Ge,{[Ot.payload.resourceType]:Object.assign({},Ge[Ot.payload.resourceType],{children:Object.assign({},Ge[Ot.payload.resourceType].children,{[Ot.payload.resourceId]:{body:jn}}),commitPending:!!(0,r.pT)(Ge[Ot.payload.resourceType].commitPending)&&Ge[Ot.payload.resourceType].commitPending})}):Object.assign({},Ge,{[Ot.payload.resourceType]:Object.assign({},{children:{[Ot.payload.resourceId]:{body:jn}},transactionStartTime:null,commitPending:!1})})}(Ge,Ot);case st.nQ.ROLLBACK_JSON_PATCH_OPERATIONS:return function tn(Ge,Ot){return(0,r.Uh)(Ge[Ot.payload.resourceType])&&Ge[Ot.payload.resourceType].commitPending?Object.assign({},Ge,{[Ot.payload.resourceType]:Object.assign({},Ge[Ot.payload.resourceType],{transactionStartTime:null,commitPending:!1})}):Ge}(Ge,Ot);case st.nQ.START_TRANSACTION_JSON_PATCH_OPERATIONS:return function Yi(Ge,Ot){return(0,r.Uh)(Ge[Ot.payload.resourceType])&&(0,r.Ft)(Ge[Ot.payload.resourceType].transactionStartTime)?Object.assign({},Ge,{[Ot.payload.resourceType]:Object.assign({},Ge[Ot.payload.resourceType],{transactionStartTime:Ot.payload.startTime,commitPending:!0})}):Ge}(Ge,Ot);case st.nQ.DELETE_PENDING_JSON_PATCH_OPERATIONS:return null;default:return Ge}},metaTag:(Ge=Ho,Ot)=>{switch(Ot.type){case _i.j9.ADD:return((Ge,Ot)=>({tagsInUse:[...Ge.tagsInUse,Ot.payload]}))(Ge,Ot);case _i.j9.CLEAR:return Object.assign({},Ho);default:return Ge}},route:function vo(Ge=Ao,Ot){switch(Ot.type){case je.Ei.RESET:return Ao;case je.Ei.SET_PARAMETERS:return ri(Ge,Ot,"params");case je.Ei.SET_QUERY_PARAMETERS:return ri(Ge,Ot,"queryParams");case je.Ei.ADD_PARAMETER:return qi(Ge,Ot,"params");case je.Ei.ADD_QUERY_PARAMETER:return qi(Ge,Ot,"queryParams");case je.Ei.SET_PARAMETER:return Ko(Ge,Ot,"params");case je.Ei.SET_QUERY_PARAMETER:return Ko(Ge,Ot,"queryParams");default:return Ge}}};var Ds=e(9367),Co=e(36391),Po=e(16422),fo=e(8623);let mo=(()=>{class Ge{parse(nn,Tn){console.log("request",nn,"data",Tn)}}return Ge.\u0275fac=function(nn){return new(nn||Ge)},Ge.\u0275prov=_.\u0275\u0275defineInjectable({token:Ge,factory:Ge.\u0275fac}),Ge})();var ft=e(71761),_n=e(62564),Re=e(8427),Ye=e(83360),jt=e(22093),Pn=e(94357),pr=e(31388),pi=e(25963),xi=e(88868),bi=e(15665),Hi=e(47229);let Fi=(()=>{class Ge extends bi.ry{constructor(nn){super(),this.objectCache=nn,this.objectFactory={},this.toCache=!1}parse(nn,Tn){return new Hi.Ag(Tn.payload["discovery-query"],Tn.statusCode,Tn.statusText)}}return Ge.\u0275fac=function(nn){return new(nn||Ge)(_.\u0275\u0275inject(Y.a))},Ge.\u0275prov=_.\u0275\u0275defineInjectable({token:Ge,factory:Ge.\u0275fac}),Ge})();var Go,si=e(83639),Do=e(45715),Si=e(27639),Ro=e(46040),ao=e(67357),Ii=e(88002),Oi=e(24886),ko=e(26434),Vr=e(23380),bo=e(45061),So=e(36146),Oo=e(13748),Ni=e(57428),xo=e(10015),Li=e(43061),Os=e(82307),zo=e(45879),xs=e(67837),Lo=e(99709),hr=e(13014),zr=e(13465),se=e(25961),me=e(59161),W=e(42895),De=e(94554),et=e(11221),kt=e(22979),On=e(21721),Bt=e(42621),Fn=e(56237),qr=e(46623),ai=e(93498),li=e(86180),Ks=e(87917),Vs=e(11316),lo=e(33609),na=e(4343);let gs=((Go=class extends Bt.t{}).type=na.z,Go);(0,K.__decorate)([ee.autoserialize,(0,K.__metadata)("design:type",Boolean)],gs.prototype,"custom",void 0),(0,K.__decorate)([ee.autoserialize,(0,K.__metadata)("design:type",String)],gs.prototype,"text",void 0),gs=(0,K.__decorate)([ae.KB,(0,ee.inheritSerialization)(Bt.t)],gs);var Bo,$s=e(68720),ji=e(36872),Wi=e(62188),ki=e(5164),is=e(25604);let Bi=((Bo=class extends Bt.t{}).type=is.E,Bo);Bi=(0,K.__decorate)([ae.KB,(0,ee.inheritSerialization)(Bt.t)],Bi);var bs,os=e(18205),Js=e(61200),_r=e(62168),ei=e(44459),no=e(34690),er=e(17539),qs=e(21899),pa=e(85019),Uo=e(27470),Ls=e(8395),Hs=e(56502),ha=e(20378),Qi=e(99640),ss=e(83774),ks=e(85870),Xi=e(48532),zs=e(27239),Ea=e(6164),ro=e(65120),ti=e(63037),gi=e(14407),Ms=e(96569),Ps=e(14601),Gs=e(71508);let wo=((bs=class extends Bt.t{}).type=gi.q,bs);var ea;(0,K.__decorate)([ee.deserialize,(0,K.__metadata)("design:type",Object)],wo.prototype,"_links",void 0),(0,K.__decorate)([ee.autoserialize,(0,K.__metadata)("design:type",String)],wo.prototype,"id",void 0),(0,K.__decorate)([ee.autoserialize,(0,K.__metadata)("design:type",Number)],wo.prototype,"ver
1sion",void 0),(0,K.__decorate)([ee.autoserialize,(0,K.__metadata)("design:type",String)],wo.prototype,"summary",void 0),(0,K.__decorate)([ee.autoserialize,(0,K.__metadata)("design:type",String)],wo.prototype,"submitterName",void 0),(0,K.__decorate)([ee.deserialize,(0,K.__metadata)("design:type",Date)],wo.prototype,"created",void 0),(0,K.__decorate)([ti.OJ,(0,ae.p4)(Ms.h),(0,K.__metadata)("design:type",ie.y)],wo.prototype,"versionhistory",void 0),(0,K.__decorate)([ti.OJ,(0,ae.p4)(Ps.B),(0,K.__metadata)("design:type",ie.y)],wo.prototype,"item",void 0),(0,K.__decorate)([ti.OJ,(0,ae.p4)(Gs.U),(0,K.__metadata)("design:type",ie.y)],wo.prototype,"eperson",void 0),wo=(0,K.__decorate)([ae.KB,(0,ee.inheritSerialization)(Bt.t)],wo);let Yo=((ea=class extends Bt.t{}).type=Ms.h,ea);(0,K.__decorate)([ee.deserialize,(0,K.__metadata)("design:type",Object)],Yo.prototype,"_links",void 0),(0,K.__decorate)([ee.autoserialize,(0,K.__metadata)("design:type",String)],Yo.prototype,"id",void 0),(0,K.__decorate)([ee.autoserialize,(0,K.__metadata)("design:type",String)],Yo.prototype,"summary",void 0),(0,K.__decorate)([ee.autoserialize,(0,K.__metadata)("design:type",String)],Yo.prototype,"submitterName",void 0),(0,K.__decorate)([ee.autoserialize,(0,K.__metadata)("design:type",Boolean)],Yo.prototype,"draftVersion",void 0),(0,K.__decorate)([ti.OJ,(0,ae.p4)(gi.q,!0),(0,K.__metadata)("design:type",ie.y)],Yo.prototype,"versions",void 0),Yo=(0,K.__decorate)([ae.KB,(0,ee.inheritSerialization)(Bt.t)],Yo);var yt,Ss=e(3253),fa=e(36663),ve=e(82269),Ue=e(47556),Oe=e(69113),Ke=e(42853);let sn=((yt=class extends Bt.t{}).type=Ke.j,yt);(0,K.__decorate)([ee.autoserialize,(0,K.__metadata)("design:type",String)],sn.prototype,"id",void 0),(0,K.__decorate)([ee.autoserialize,(0,K.__metadata)("design:type",Array)],sn.prototype,"options",void 0),(0,K.__decorate)([ee.autoserialize,(0,K.__metadata)("design:type",Boolean)],sn.prototype,"advanced",void 0),(0,K.__decorate)([ee.autoserialize,(0,K.__metadata)("design:type",Array)],sn.prototype,"advancedOptions",void 0),(0,K.__decorate)([ee.autoserialize,(0,K.__metadata)("design:type",Array)],sn.prototype,"advancedInfo",void 0),sn=(0,K.__decorate)([ae.KB,(0,ee.inheritSerialization)(Bt.t)],sn);var mn=e(1865),xn=e(3879);const Zr=new xn._("itemtemplate");var Pr,Kr=e(86076);let ir=((Pr=class extends lo.c{}).type=Zr,Pr);(0,K.__decorate)([(0,ae.p4)(Kr.d),(0,K.__metadata)("design:type",ie.y)],ir.prototype,"templateItemOf",void 0),ir=(0,K.__decorate)([ae.KB,(0,ee.inheritSerialization)(lo.c)],ir);const hi=new xn._("feature");var $r;let vi=(($r=class extends Bt.t{}).type=hi,$r);(0,K.__decorate)([ee.autoserialize,(0,K.__metadata)("design:type",String)],vi.prototype,"id",void 0),(0,K.__decorate)([ee.autoserialize,(0,K.__metadata)("design:type",String)],vi.prototype,"description",void 0),(0,K.__decorate)([ee.autoserialize,(0,K.__metadata)("design:type",Array)],vi.prototype,"resourcetypes",void 0),(0,K.__decorate)([ee.deserialize,(0,K.__metadata)("design:type",Object)],vi.prototype,"_links",void 0),vi=(0,K.__decorate)([ae.KB,(0,ee.inheritSerialization)(Bt.t)],vi);var io,Qo=e(79237);let br=((io=class extends Bt.t{}).type=Qo.e,io);(0,K.__decorate)([ee.autoserialize,(0,K.__metadata)("design:type",String)],br.prototype,"id",void 0),(0,K.__decorate)([ee.deserialize,(0,K.__metadata)("design:type",Object)],br.prototype,"_links",void 0),(0,K.__decorate)([(0,ae.p4)(Gs.U),(0,K.__metadata)("design:type",ie.y)],br.prototype,"eperson",void 0),(0,K.__decorate)([(0,ae.p4)(hi),(0,K.__metadata)("design:type",ie.y)],br.prototype,"feature",void 0),(0,K.__decorate)([(0,ae.p4)(Ps.B),(0,K.__metadata)("design:type",ie.y)],br.prototype,"object",void 0),br=(0,K.__decorate)([ae.KB,(0,ee.inheritSerialization)(Bt.t)],br);var xr,co=e(76715),Ei=e(21147);let oo=((xr=class extends co.B{constructor(Ot,nn,Tn,jn){super("features",Ot,nn,Tn,jn),this.requestService=Ot,this.rdbService=nn,this.objectCache=Tn,this.halService=jn,this.linkPath="features"}}).\u0275fac=function(Ot){return new(Ot||xr)(_.\u0275\u0275inject(At.s),_.\u0275\u0275inject(V.Q),_.\u0275\u0275inject(Y.a),_.\u0275\u0275inject(ai.q))},xr.\u0275prov=_.\u0275\u0275defineInjectable({token:xr,factory:xr.\u0275fac}),xr);oo=(0,K.__decorate)([(0,Ei.cQ)(hi),(0,K.__metadata)("design:paramtypes",[At.s,V.Q,Y.a,ai.q])],oo);var Xo=e(97874),vs=e(37500),Ys=e(39763),ra=e(55237);let ta=(()=>{class Ge{parse(nn,Tn){return(0,r.UE)(Tn.payload)&&(0,r.UE)(Tn.payload.token)&&200===Tn.statusCode?new Hi.N8(Tn.payload.token,!0,Tn.statusCode,Tn.statusText):new Hi.N8(null,!1,Tn.statusCode,Tn.statusText)}}return Ge.\u0275fac=function(nn){return new(nn||Ge)},Ge.\u0275prov=_.\u0275\u0275defineInjectable({token:Ge,factory:Ge.\u0275fac}),Ge})();var uo,yi=e(44479),Ki=e(33222),zi=e(37678),Is=e(53166);let Mi=((uo=class extends zi.g{}).type=Is.S,uo);(0,K.__decorate)([ti.OJ,ee.autoserialize,(0,K.__metadata)("design:type",xn._)],Mi.prototype,"type",void 0),(0,K.__decorate)([ee.autoserialize,(0,K.__metadata)("design:type",String)],Mi.prototype,"url",void 0),Mi=(0,K.__decorate)([ae.KB,(0,ee.inheritSerialization)(zi.g)],Mi);var _o,Lr=e(60941),Zo=e(58140),Es=e(18186);let so=((_o=class{}).type=Es.kB,_o);(0,K.__decorate)([ee.autoserialize,(0,K.__metadata)("design:type",String)],so.prototype,"id",void 0),(0,K.__decorate)([ee.autoserialize,(0,K.__metadata)("design:type",String)],so.prototype,"name",void 0),(0,K.__decorate)([ee.autoserialize,(0,K.__metadata)("design:type",Boolean)],so.prototype,"scrollable",void 0),(0,K.__decorate)([ee.autoserialize,(0,K.__metadata)("design:type",Boolean)],so.prototype,"hierarchical",void 0),(0,K.__decorate)([ee.autoserialize,(0,K.__metadata)("design:type",Object)],so.prototype,"preloadLevel",void 0),(0,K.__decorate)([ti.OJ,ee.autoserialize,(0,K.__metadata)("design:type",Object)],so.prototype,"type",void 0),(0,K.__decorate)([(0,ae.p4)(Es.eU,!0),(0,K.__metadata)("design:type",ie.y)],so.prototype,"entries",void 0),(0,K.__decorate)([ee.deserialize,(0,K.__metadata)("design:type",Object)],so.prototype,"_links",void 0),so=(0,K.__decorate)([ae.KB],so);var Jo,Zi=e(97737),go=e(49566),us=e(59656),as=e(63220);let Io=((Jo=class{}).type=as.o,Jo);(0,K.__decorate)([ti.OJ,ee.autoserialize,(0,K.__metadata)("design:type",xn._)],Io.prototype,"type",void 0),(0,K.__decorate)([(0,ee.autoserializeAs)(String,"name"),(0,K.__metadata)("design:type",String)],Io.prototype,"uuid",void 0),(0,K.__decorate)([ee.autoserialize,(0,K.__metadata)("design:type",String)],Io.prototype,"name",void 0),(0,K.__decorate)([ee.autoserialize,(0,K.__metadata)("design:type",Array)],Io.prototype,"values",void 0),(0,K.__decorate)([ee.deserialize,(0,K.__metadata)("design:type",Object)],Io.prototype,"_links",void 0),Io=(0,K.__decorate)([ae.KB],Io);var ia=e(20204),ya=e(85665),oa=e(15402),Ca=e(58876),sa=e(48729);const ma=new xn._("shortlivedtoken");var Qs;let Ts=((Qs=class{}).type=ma,Qs);(0,K.__decorate)([ti.OJ,ee.autoserialize,(0,K.__metadata)("design:type",xn._)],Ts.prototype,"type",void 0),(0,K.__decorate)([(0,ee.autoserializeAs)("token"),(0,K.__metadata)("design:type",String)],Ts.prototype,"value",void 0),(0,K.__decorate)([ee.deserialize,(0,K.__metadata)("design:type",Object)],Ts.prototype,"_links",void 0),Ts=(0,K.__decorate)([ae.KB],Ts);var es,As=e(63602),Xs=e(8322),qo=e(42983);let Fo=((es=class{}).type=qo.D,es);(0,K.__decorate)([ti.OJ,ee.autoserialize,(0,K.__metadata)("design:type",xn._)],Fo.prototype,"type",void 0),(0,K.__decorate)([ee.autoserialize,(0,K.__metadata)("design:type",String)],Fo.prototype,"dspaceUI",void 0),(0,K.__decorate)([ee.autoserialize,(0,K.__metadata)("design:type",String)],Fo.prototype,"dspaceName",void 0),(0,K.__decorate)([ee.autoserialize,(0,K.__metadata)("design:type",String)],Fo.prototype,"dspaceServer",void 0),(0,K.__decorate)([ee.autoserialize,(0,K.__metadata)("design:type",String)],Fo.prototype,"dspaceVersion",void 0),(0,K.__decorate)([ee.deserialize,(0,K.__metadata)("design:type",Object)],Fo.prototype,"_links",void 0),Fo=(0,K.__decorate)([ae.KB],Fo);const Da=new xn._("discover");var To;let Vi=((To=class{}).type=Da,To);(0,K.__decorate)([ee.autoserialize,(0,K.__metadata)("design:type",String)],Vi.prototype,"id",void 0),(0,K.__decorate)([ee.autoserialize,(0,K.__metadata)("design:type",Array)],Vi.prototype,"filters",void 0),(0,K.__decorate)([ee.autoserialize,(0,K.__metadata)("design:type",Array)],Vi.prototype,"sortOptions",void 0),(0,K.__decorate)([ee.autoserialize,(0,K.__metadata)("design:type",xn._)],Vi.prototype,"type",void 0),(0,K.__decorate)([ee.deserialize,(0,K.__metadata)("design:type",Object)],Vi.prototype,"_links",void 0),Vi=(0,K.__decorate)([ae.KB],Vi);var Bs,ys=e(28287),Gr=e(43499);let $i=((Bs=class extends Q.E{}).type=j.MX,Bs);var ps;(0,K.__decorate)([ee.autoserialize,(0,K.__metadata)("design:type",Array)],$i.prototype,"accessConditionOptions",void 0),(0,K.__decorate)([ee.autoserialize,(0,K.__metadata)("design:type",Boolean)],$i.prototype,"discoverable",void 0),(0,K.__decorate)([ee.autoserialize,(0,K.__metadata)("design:type",Boolean)],$i.prototype,"canChangeDiscoverable",void 0),(0,K.__decorate)([ee.deserialize,(0,K.__metadata)("design:type",Object)],$i.prototype,"_links",void 0),$i=(0,K.__decorate)([ae.KB,(0,ee.inheritSerialization)(Q.E)],$i);let No=((ps=class extends $i{}).type=j.MX,ps);No=(0,K.__decorate)([ae.KB,(0,ee.inheritSerialization)($i)],No);const Ra=new xn._("ratingrevieweraction"),Oa=new xn._("selectrevieweraction");class ts{}var $e;(0,K.__decorate)([ee.autoserialize,(0,K.__metadata)("design:type",String)],ts.prototype,"id",void 0);let _e=(($e=class extends ts{}).type=Ra,$e);var pe;(0,K.__decorate)([ee.autoserialize,(0,K.__metadata)("design:type",Boolean)],_e.prototype,"descriptionRequired",void 0),(0,K.__decorate)([ee.autoserialize,(0,K.__metadata)("design:type",Number)],_e.prototype,"maxValue",void 0),_e=(0,K.__decorate)([ae.KB,(0,ee.inheritSerialization)(ts)],_e);let Ie=((pe=class extends ts{}).type=Oa,pe);(0,K.__decorate)([ee.autoserialize,(0,K.__metadata)("design:type",String)],Ie.prototype,"group",void 0),Ie=(0,K.__decorate)([ae.KB,(0,ee.inheritSerialization)(ts)],Ie);var J,N=e(97453);let H=((J=class{}).type=N.Q,J);(0,K.__decorate)([ti.OJ,ee.autoserialize,(0,K.__metadata)("design:type",xn._)],H.prototype,"type",void 0),(0,K.__decorate)([ee.autoserialize,(0,K.__metadata)("design:type",String)],H.prototype,"status",void 0),(0,K.__decorate)([ee.deserialize,(0,K.__metadata)("design:type",Object)],H.prototype,"_links",void 0),H=(0,K.__decorate)([ae.KB],H);var Er,de=e(70706),Pe=e(46377),Fe=e(96577),Qe=e(7526),Nt=e(31736),fn=e(12486),Un=e(71537),Hn=e(3413),Tr=e(93490);let Ci=((Er=class extends Tr.X{}).type=Hn.R,Er);(0,K.__decorate)([ti.OJ,ee.autoserialize,(0,K.__metadata)("design:type",xn._)],Ci.prototype,"type",void 0),(0,K.__decorate)([ee.autoserialize,(0,K.__metadata)("design:type",Number)],
1Ci.prototype,"id",void 0),(0,K.__decorate)([ee.autoserialize,(0,K.__metadata)("design:type",String)],Ci.prototype,"description",void 0),(0,K.__decorate)([ee.autoserialize,(0,K.__metadata)("design:type",String)],Ci.prototype,"profileItemId",void 0),(0,K.__decorate)([ee.autoserialize,(0,K.__metadata)("design:type",String)],Ci.prototype,"entityId",void 0),(0,K.__decorate)([ee.autoserialize,(0,K.__metadata)("design:type",String)],Ci.prototype,"recordType",void 0),(0,K.__decorate)([ee.autoserialize,(0,K.__metadata)("design:type",String)],Ci.prototype,"operation",void 0),(0,K.__decorate)([ee.deserialize,(0,K.__metadata)("design:type",Object)],Ci.prototype,"_links",void 0),Ci=(0,K.__decorate)([ae.KB],Ci);var jo,po=e(90749);let ni=((jo=class extends Tr.X{}).type=po.g,jo);(0,K.__decorate)([ti.OJ,ee.autoserialize,(0,K.__metadata)("design:type",xn._)],ni.prototype,"type",void 0),(0,K.__decorate)([ee.autoserialize,(0,K.__metadata)("design:type",Number)],ni.prototype,"id",void 0),(0,K.__decorate)([ee.autoserialize,(0,K.__metadata)("design:type",String)],ni.prototype,"entityName",void 0),(0,K.__decorate)([ee.autoserialize,(0,K.__metadata)("design:type",String)],ni.prototype,"profileItemId",void 0),(0,K.__decorate)([ee.autoserialize,(0,K.__metadata)("design:type",String)],ni.prototype,"entityId",void 0),(0,K.__decorate)([ee.autoserialize,(0,K.__metadata)("design:type",String)],ni.prototype,"entityType",void 0),(0,K.__decorate)([ee.autoserialize,(0,K.__metadata)("design:type",Number)],ni.prototype,"status",void 0),(0,K.__decorate)([ee.autoserialize,(0,K.__metadata)("design:type",String)],ni.prototype,"putCode",void 0),(0,K.__decorate)([ee.deserialize,(0,K.__metadata)("design:type",Object)],ni.prototype,"_links",void 0),ni=(0,K.__decorate)([ae.KB],ni);var Ma,Ha=e(50672),Na=e(74185),Us=e(28562),xa=e(18529);let ws=((Ma=class{}).type=xa.s,Ma);(0,K.__decorate)([ti.OJ,ee.autoserialize,(0,K.__metadata)("design:type",xn._)],ws.prototype,"type",void 0),(0,K.__decorate)([ee.autoserialize,(0,K.__metadata)("design:type",Array)],ws.prototype,"identifiers",void 0),(0,K.__decorate)([ee.deserialize,(0,K.__metadata)("design:type",Object)],ws.prototype,"_links",void 0),ws=(0,K.__decorate)([ae.KB],ws);var Ta,aa=e(58036),Pa=e(67663),La=e(82798),ba=e(57490),la=e(1923),Sa=e(85963),Ia=e(24539);let Rs=((Ta=class extends Q.E{}).type=j.l9,Ta);(0,K.__decorate)([ti.OJ,ee.autoserialize,(0,K.__metadata)("design:type",xn._)],Rs.prototype,"type",void 0),(0,K.__decorate)([(0,ee.autoserializeAs)(String,"name"),(0,K.__metadata)("design:type",String)],Rs.prototype,"uuid",void 0),(0,K.__decorate)([ee.autoserialize,(0,K.__metadata)("design:type",String)],Rs.prototype,"id",void 0),(0,K.__decorate)([ee.autoserialize,(0,K.__metadata)("design:type",Array)],Rs.prototype,"itemAccessConditionOptions",void 0),(0,K.__decorate)([ee.autoserialize,(0,K.__metadata)("design:type",Array)],Rs.prototype,"bitstreamAccessConditionOptions",void 0),Rs=(0,K.__decorate)([ae.KB,(0,ee.inheritSerialization)(Q.E)],Rs);var Ba=e(49522);const Ve=[t.ez,i.Aw.forFeature("core",ds,zs.z7),o.sQ.forFeature(In)],Ht=[g.J,Po.w,Co.W,Vr.a,Re.j,{provide:E,useValue:O},{provide:m.Y,useFactory:(Ge,Ot)=>b.N.production?new m.Y(Ot):new M(Ge,Ot),deps:[E,n.eN]},bo.k,Pe.U,ai.q,a.I3,si.S,Os.D,Y.a,C.r,Oi.I,zo.k,Ds.O,V.Q,jt.q,xi.N,pi.L,mo,ko.g,Si.B,hr.N,L.I,de.A,yi.I,Lr.K,ye.X,er.F,no.pw,ei.E,Ni.w,os._,P.T,pa.p,qs.K,Ba.t,Ye.D,us.i,_n.o,ft.v,ks.g,l.z,p.h,Ro.d,ki.o,Ii.U,d.o,xs.N,ss.T,Uo.p,Qi.N,Xi.J,Pn.k,fo.F,mn.w,ki.o,I.P,Wi.nJ,Wi.nJ,ji.U,D.w,ao.X,pr.G,Do.P,Ea._,ro.Q,Oe.Q,ve.n,Ue.UY,oo,St._,Xo.X,sa.C,Ys.$,ra.c,ta,ia.w,ya.J,oa.J,Ca.u4,Xs.d,P.T,Fi,{provide:zr.DC,useFactory:zr.VC},go.c,Na.K,Us.I,ys.m,Gr.O,Lo.J,Fe.E,Qe.n,Ha.m,fn.I,Un.p,Pa.m],Yn=[Fo,Bt.t,et.b,me.Z,se.A,lo.c,Bi,kt.F,On.S,So.T,Oo.Z,$s.A,Li.B,xo.b,gs,Js.p,_r.K,Ki._,Mi,X.Y,te.D,G,ce,B.t,De.g,W.D,Ia.$,la.R,Sa.w,ba.q,Ls.q,ha.A,Hs.d,Vs.W,Ks.n,li.q,qr.p,Fn.T,Ss.X,fa.A,wo,Yo,sn,ts,_e,Ie,ir,vi,br,vs.Y,so,Zo.j,Zi.w,Io,Ts,vs.Y,As.O,Fo,Vi,No,H,Nt.T,Ci,ni,H,ws,aa.w,La.s,Rs];let ar=(()=>{class Ge{constructor(nn){if((0,r.UE)(nn))throw new Error("CoreModule is already loaded. Import it in the AppModule only")}static forRoot(){return{ngModule:Ge,providers:[...Ht]}}}return Ge.\u0275fac=function(nn){return new(nn||Ge)(_.\u0275\u0275inject(Ge,12))},Ge.\u0275mod=_.\u0275\u0275defineNgModule({type:Ge}),Ge.\u0275inj=_.\u0275\u0275defineInjector({providers:[...Ht],imports:[Ve]}),Ge})()},1588:(R,c,e)=>{"use strict";e.d(c,{v:()=>n});const n=(0,e(89653).ZF)("core")},70706:(R,c,e)=>{"use strict";e.d(c,{A:()=>_});var m,t=e(70655),n=e(43015),o=e(58943),i=e(93498),d=e(31241),r=e(97453),a=e(76715),p=e(21147),h=e(94650);let _=((m=class extends a.B{constructor(E,O,b,M){super("accessStatus",E,O,b,M),this.requestService=E,this.rdbService=O,this.objectCache=b,this.halService=M}findAccessStatusFor(E){return this.findByHref(E._links.accessStatus.href)}}).\u0275fac=function(E){return new(E||m)(h.\u0275\u0275inject(d.s),h.\u0275\u0275inject(n.Q),h.\u0275\u0275inject(o.a),h.\u0275\u0275inject(i.q))},m.\u0275prov=h.\u0275\u0275defineInjectable({token:m,factory:m.\u0275fac}),m);_=(0,t.__decorate)([(0,p.cQ)(r.Q),(0,t.__metadata)("design:paramtypes",[d.s,n.Q,o.a,i.q])],_)},85870:(R,c,e)=>{"use strict";e.d(c,{g:()=>i});var t=e(19109),n=e(24702),o=e(94650);let i=(()=>{class d{diff(a,p){return this.getMoves(a,p).map(h=>Object.assign({op:"move",from:"/"+h[0],path:"/"+h[1]}))}getMoves(a,p){const h=[...p];return a.reduce((m,_,v)=>{if((0,n.Uh)(_)&&_!==h[v]){const E=h.lastIndexOf(_);(0,t.bA)(h,E,v),m.unshift([v,E])}return m},[])}}return d.\u0275fac=function(a){return new(a||d)},d.\u0275prov=o.\u0275\u0275defineInjectable({token:d,factory:d.\u0275fac}),d})()},15665:(R,c,e)=>{"use strict";e.d(c,{ry:()=>h});var t=e(24702),n=e(16445),o=e(62713),i=e(24789),d=e(19782),r=e(21540);function a(m){return(0,t.UE)(m._links)&&(0,t.Uh)(m._links.self)}function p(m){return(0,t.Uh)(m.page)&&(0,t.Uh)(m.page.size)&&(0,t.Uh)(m.page.totalElements)&&(0,t.Uh)(m.page.totalPages)&&(0,t.Uh)(m.page.number)}class h{constructor(){this.shouldDirectlyAttachEmbeds=!1,this.serializerConstructor=n.F}process(_,v,E){if((0,t.UE)(_)){if((0,t.xI)(_)||"object"!=typeof _)return _;if(p(_))return this.processPaginatedList(_,v);if(Array.isArray(_))return this.processArray(_,v);if(a(_)){const b=this.deserialize(_);return(0,t.UE)(_._embedded)&&Object.keys(_._embedded).filter(M=>
1_._embedded.hasOwnProperty(M)).forEach(M=>{const P=this.process(_._embedded[M],v,_._links[M].href);(0,t.Uh)(b)&&this.shouldDirectlyAttachEmbeds&&(0,t.UE)(P)&&(p(_._embedded[M])?(b[M]=P,b[M].page=P.page.map(D=>this.retrieveObjectOrUrl(D))):a(_._embedded[M])?b[M]=this.retrieveObjectOrUrl(P):Array.isArray(P)&&(b[M]=P.map(D=>this.retrieveObjectOrUrl(D))))}),this.cache(b,v,_,E),b}const O={};return Object.keys(_).filter(b=>_.hasOwnProperty(b)).filter(b=>(0,t.Uh)(_[b])).forEach(b=>{O[b]=this.process(_[b],v)}),O}}processPaginatedList(_,v){const E=this.processPageInfo(_);let O=_._embedded;(0,t.xI)(O)?O=[]:Array.isArray(O)||(O=this.flattenSingleKeyObject(O));const b=this.processArray(O,v);return(0,i.b)(E,b)}processArray(_,v){let E=[];return _.forEach(O=>{E=[...E,this.process(O,v)]}),E}deserialize(_){const v=_.type;if((0,t.Uh)(v)){const E=(0,d.w2)(v);return(0,t.Uh)(E)?new this.serializerConstructor(E).deserialize(_):(console.warn("cannot deserialize type "+v),null)}return console.warn("cannot deserialize type "+v),null}cache(_,v,E,O){this.toCache&&this.addToObjectCache(_,v,E,O)}addToObjectCache(_,v,E,O){if((0,t.xI)(_)||(0,t.xI)(_._links)||(0,t.xI)(_._links.self)||(0,t.xI)(_._links.self.href)){const b=(0,t.Uh)(E)&&(0,t.Uh)(E.type)?E.type:"object";let M;return M=(0,t.Uh)(E._embedded)?JSON.stringify(Object.assign({},E,{_embedded:"..."})):JSON.stringify(E),void console.warn(`Can't cache incomplete ${b}: ${JSON.stringify(_)}, parsed from (partial) response: ${M}`)}this.objectCache.add(_,(0,t.Uh)(v.responseMsToLive)?v.responseMsToLive:r.N.cache.msToLive.default,v.uuid,O)}processPageInfo(_){if((0,t.Uh)(_.page)){const v=Object.assign({},_.page,{_links:_._links}),E=new n.F(o.S).deserialize(v);return E.currentPage>=0&&Object.assign(E,{currentPage:E.currentPage+1}),E}}flattenSingleKeyObject(_){const v=Object.keys(_);if(1!==v.length)throw new Error(`Expected an object with a single key, got: ${JSON.stringify(_)}`);return _[v[0]]}retrieveObjectOrUrl(_){return this.toCache?_._links.self.href:_}isSuccessStatus(_){return _>=200&&_<300}}},76715:(R,c,e)=>{"use strict";e.d(c,{B:()=>P});var t=e(39646),n=e(34782),o=e(38893),i=e(50457),d=e(18505),r=e(95698),a=e(54004),p=e(54244),h=e(63900),m=e(86099),_=e(32518),v=e(24702),E=e(23631),O=e(25130),b=e(68285);class P{constructor(l,C,I,g,B,L){this.linkPath=l,this.requestService=C,this.rdbService=I,this.objectCache=g,this.halService=B,this.responseMsToLive=L}getBrowseEndpoint(l={},C){return this.getEndpoint()}getEndpoint(){return this.halService.getEndpoint(this.linkPath)}buildHrefFromFindOptions(l,C,I=[],...g){let B=[...I];return(0,v.Uh)(C.currentPage)&&"number"==typeof C.currentPage&&(B=this.addHrefArg(l,B,"page="+(C.currentPage-1))),(0,v.Uh)(C.elementsPerPage)&&(B=this.addHrefArg(l,B,`size=${C.elementsPerPage}`)),(0,v.Uh)(C.sort)&&(B=this.addHrefArg(l,B,`sort=${C.sort.field},${C.sort.direction}`)),(0,v.Uh)(C.startsWith)&&(B=this.addHrefArg(l,B,`startsWith=${C.startsWith}`)),(0,v.Uh)(C.searchParams)&&C.searchParams.forEach(L=>{B=this.addHrefArg(l,B,`${L.fieldName}=${L.fieldValue}`)}),B=this.addEmbedParams(l,B,...g),(0,v.UE)(B)?new E.R(l,`?${B.join("&")}`).toString():l}buildHrefWithParams(l,C,...I){let g=[];return(0,v.Uh)(C)&&C.forEach(B=>{g=this.addHrefArg(l,g,`${B.fieldName}=${B.fieldValue}`)}),g=this.addEmbedParams(l,g,...I),(0,v.UE)(g)?new E.R(l,`?${g.join("&")}`).toString():l}addEmbedParams(l,C,...I){return I.forEach(g=>{if((0,v.Uh)(g)&&g.shouldEmbed){const B="embed="+String(g.name);(0,v.Uh)(g.findListOptions)&&(0,v.Uh)(g.findListOptions.elementsPerPage)&&(C=this.addHrefArg(l,C,"embed.size="+String(g.name)+"="+g.findListOptions.elementsPerPage)),C=(0,v.UE)(g.linksToFollow)?this.addNestedEmbeds(B,l,C,...g.linksToFollow):this.addHrefArg(l,C,B)}}),C}addHrefArg(l,C,I){return l.includes(I)||C.includes(I)?[...C]:[...C,I]}addNestedEmbeds(l,C,I,...g){let B=l;return g.forEach(L=>
1{if((0,v.Uh)(L)&&L.shouldEmbed){if(B=B+"%2F"+String(L.name),(0,v.Uh)(L.findListOptions)&&(0,v.Uh)(L.findListOptions.elementsPerPage)){const V="embed.size="+B.split("=")[1]+"="+L.findListOptions.elementsPerPage;I=this.addHrefArg(C,I,V)}I=(0,v.Uh)(L.linksToFollow)&&(0,v.UE)(L.linksToFollow)?this.addNestedEmbeds(B,C,I,...L.linksToFollow):this.addHrefArg(C,I,B)}}),I}reRequestStaleRemoteData(l,C){return I=>!0===l?I.pipe((0,d.b)(g=>{(0,v.Uh)(g)&&g.isStale&&C()})):I}findByHref(l,C=!0,I=!0,...g){"string"==typeof l&&(l=(0,t.of)(l));const B=l.pipe((0,v.iy)(),(0,r.q)(1),(0,a.U)(V=>this.buildHrefFromFindOptions(V,{},[],...g)),(0,n.d)(1)),L=(new Date).getTime();return this.createAndSendGetRequest(B,C),this.rdbService.buildSingle(B,...g).pipe((0,p.n)(V=>V.isStale||!C&&V.lastUpdated<L),this.reRequestStaleRemoteData(I,()=>this.findByHref(l,C,I,...g)))}findListByHref(l,C={},I=!0,g=!0,...B){"string"==typeof l&&(l=(0,t.of)(l));const L=l.pipe((0,v.iy)(),(0,r.q)(1),(0,a.U)(Y=>this.buildHrefFromFindOptions(Y,C,[],...B)),(0,n.d)(1)),V=(new Date).getTime();return this.createAndSendGetRequest(L,I),this.rdbService.buildList(L,...B).pipe((0,p.n)(Y=>Y.isStale||!I&&Y.lastUpdated<V),this.reRequestStaleRemoteData(g,()=>this.findListByHref(l,C,I,g,...B)))}createAndSendGetRequest(l,C=!0){(0,v.UE)(l)&&("string"==typeof l&&(l=(0,t.of)(l)),l.pipe((0,v.iy)(),(0,r.q)(1)).subscribe(I=>{const g=this.requestService.generateRequestId(),B=new O.Gl(g,I);(0,v.Uh)(this.responseMsToLive)&&(B.responseMsToLive=this.responseMsToLive),this.requestService.send(B,C)}))}hasCachedResponse(l){if((0,v.UE)(l))return"string"==typeof l&&(l=(0,t.of)(l)),l.pipe((0,v.iy)(),(0,r.q)(1),(0,a.U)(C=>{const I=this.requestService.generateRequestId(),g=new O.Gl(I,C);return!this.requestService.shouldDispatchRequest(g,!0)}));throw new Error("Can't check whether there is a cached response for an empty href$")}hasCachedErrorResponse(l){return this.hasCachedResponse(l).pipe((0,h.w)(C=>C?this.rdbService.buildSingle(l).pipe((0,b.hC)(),(0,a.U)(I=>I.hasFailed)):(0,t.of)(!1)))}getLinkPath(){return this.linkPath}addDependency(l,C){this.objectCache.addDependency(l.pipe((0,b.hC)(),(0,h.w)(I=>I.hasSucceeded?[I.payload._links.self.href]:[void 0])),C)}invalidateByHref(l){const C=new o.c;return this.objectCache.getByHref(l).pipe((0,r.q)(1),(0,h.w)(I=>(0,i.D)([...I.requestUUIDs,...I.dependentRequestUUIDs]).pipe((0,m.z)(g=>this.requestService.setStaleByUUID(g)),(0,_.q)()))).subscribe(()=>{this.objectCache.removeDependents(l),C.next(!0),C.complete()}),C}}},60210:(R,c,e)=>{"use strict";e.d(c,{K:()=>_});var t=e(76715),n=e(24702),o=e(71884),i=e(54004),d=e(95698),r=e(22529),a=e(16445),p=e(19782),h=e(25130),m=e(39961);class _ extends t.B{constructor(E,O,b,M,P,D,l){super(E,O,b,M,P,l),this.linkPath=E,this.requestService=O,this.rdbService=b,this.objectCache=M,this.halService=P,this.notificationsService=D,this.responseMsToLive=l}create(E,...O){const b=this.getEndpoint().pipe((0,n.iy)(),(0,o.x)(),(0,i.U)(M=>this.buildHrefWithParams(M,O)));return this.createOnEndpoint(E,b)}createOnEndpoint(E,O){const b=this.requestService.generateRequestId(),M=new a.F((0,p.w2)(E.type)).serialize(E);O.pipe((0,d.q)(1)).subscribe(D=>{const l=new h.Fo(b,D,JSON.stringify(M));(0,n.Uh)(this.responseMsToLive)&&(l.responseMsToLive=this.responseMsToLive),this.requestService.send(l)});const P=this.rdbService.buildFromRequestUUID(b);return P.pipe((0,r.o)(D=>D.isLoading,!0)).subscribe(D=>{D.hasFailed&&this.notificationsService.error("Server Error:",D.errorMessage,new m.n(-1))}),P}}},21147:(R,c,e)=>{"use strict";e.d(c,{II:()=>o,cQ:()=>d,p:()=>r});var t=e(94650),n=e(24702);const o=new t.InjectionToken("getDataServiceFor",{providedIn:"root",factory:()=>r}),i=new Map;function d(a){return p=>{if((0,n.xI)(a))throw new Error(`Invalid @dataService annotation on ${p}, resourceType needs to be defined`);const h=i.get(a.value);if((0,n.Uh)(h))throw new Error(`Multiple dataservices for ${a.value}: ${h} and ${p}`);i.set(a.value,p)}}function r(a){return i.get(a.value)}},90330:(R,c,e)=>{"use strict";e.d(c,{R:()=>d});var t=e(63900),n=e(25130),o=e(24702),i=e(72839);class d extends i.t{constructor(a,p,h,m,_,v,E,O){if(super(a,p,h,m,_,E,O),this.linkPath=a,this.requestService=p,this.rdbService=h,this.objectCache=m,this.halService=_,this.notificationsService=v,this.responseMsToLive=E,this.constructIdEndpoint=O,(0,o.xI)(O))throw new Error(`DeleteDataImpl initialized without a constructIdEndpoint method (linkPath: ${a})`)}delete(a,p){return this.getIDHrefObs(a).pipe((0,t.w)(h=>this.deleteByHref(h,p)))}deleteByHref(a,p){const h=this.requestService.generateRequestId();let m=a;p&&p.forEach(v=>m+=(m.includes("?")?"&":"?")+"copyVirtualMetadata="+v);const _=new n.jx(h,m);return(0,o.Uh)(this.responseMsToLive)&&(_.responseMsToLive=this.responseMsToLive),this.requestService.send(_),this.rdbService.buildFromRequestUUIDAndAwait(h,()=>this.invalidateByHref(a))}}},53261:(R,c,e)=>{"use strict";e.d(c,{k:()=>r});var t=e(76715),n=e(39300),o=e(54004),i=e(71884),d=e(24702);class r extends t.B{constructor(p,h,m,_,v,E){super(p,h,m,_,v,E),this.linkPath=p,this.requestService=h,this.rdbService=m,this.objectCache=_,this.halService=v,this.responseMsToLive=E}findAll(p={},h=!0,m=!0,..._){return this.findListByHref(this.getFindAllHref(p),p,h,m,..._)}getFindAllHref(p={},h,...m){let _;const v=[];return _=this.getBrowseEndpoint(p).pipe((0,n.h)(E=>(0,d.UE)(E)),(0,o.U)(E=>
1(0,d.UE)(h)?`${E}/${h}`:E),(0,i.x)()),_.pipe((0,o.U)(E=>this.buildHrefFromFindOptions(E,p,v,...m)))}}},72839:(R,c,e)=>{"use strict";e.d(c,{t:()=>r});var t=e(54004),n=e(95698),o=e(63900),i=e(76715);const d=(a,p)=>`${a}/${p}`;class r extends i.B{constructor(p,h,m,_,v,E,O=d){super(p,h,m,_,v,E),this.linkPath=p,this.requestService=h,this.rdbService=m,this.objectCache=_,this.halService=v,this.responseMsToLive=E,this.constructIdEndpoint=O}findById(p,h=!0,m=!0,..._){const v=this.getIDHrefObs(encodeURIComponent(p),..._);return this.findByHref(v,h,m,..._)}getIDHref(p,h,...m){return this.buildHrefFromFindOptions(this.constructIdEndpoint(p,h),{},[],...m)}getIDHrefObs(p,...h){return this.getEndpoint().pipe((0,t.U)(m=>this.getIDHref(m,p,...h)))}invalidateById(p){const h=this.getIDHrefObs(p).pipe((0,n.q)(1),(0,o.w)(m=>this.invalidateByHref(m)));return h.subscribe(),h}}},74508:(R,c,e)=>{"use strict";e.d(c,{B:()=>p});var t=e(54004),n=e(40367),o=e(86099),i=e(24702),d=e(25130),r=e(68285),a=e(72839);class p extends a.t{constructor(m,_,v,E,O,b,M,P){if(super(m,_,v,E,O,M,P),this.linkPath=m,this.requestService=_,this.rdbService=v,this.objectCache=E,this.halService=O,this.comparator=b,this.responseMsToLive=M,this.constructIdEndpoint=P,(0,i.xI)(P))throw new Error(`PatchDataImpl initialized without a constructIdEndpoint method (linkPath: ${m})`)}patch(m,_){const v=this.requestService.generateRequestId();return this.halService.getEndpoint(this.linkPath).pipe((0,t.U)(O=>this.getIDHref(O,m.uuid))).pipe((0,n.s)(O=>(0,i.Uh)(O))).subscribe(O=>{const b=new d._x(v,O,_);(0,i.Uh)(this.responseMsToLive)&&(b.responseMsToLive=this.responseMsToLive),this.requestService.send(b)}),this.rdbService.buildFromRequestUUIDAndAwait(v,()=>this.invalidateByHref(m._links.self.href))}update(m){return this.createPatchFromCache(m).pipe((0,o.z)(_=>((0,i.UE)(_)&&this.objectCache.addPatch(m._links.self.href,_),this.findByHref(m._links.self.href,!0,!0))))}commitUpdates(m){this.requestService.commit(m)}createPatchFromCache(m){return this.findByHref(m._links.self.href,!0,!1).pipe((0,r.xw)(),(0,r.xe)(),(0,t.U)(v=>this.comparator.diff(v,m)))}}},74187:(R,c,e)=>{"use strict";e.d(c,{E:()=>d});var t=e(76715),n=e(16445),o=e(25130),i=e(24702);class d extends t.B{constructor(a,p,h,m,_,v){super(a,p,h,m,_,v),this.linkPath=a,this.requestService=p,this.rdbService=h,this.objectCache=m,this.halService=_,this.responseMsToLive=v}put(a){const p=this.requestService.generateRequestId(),h=new n.F(a.constructor).serialize(a),m=new o.an(p,a._links.self.href,h);return(0,i.Uh)(this.responseMsToLive)&&(m.responseMsToLive=this.responseMsToLive),this.requestService.send(m),this.rdbService.buildFromRequestUUID(p)}}},99678:(R,c,e)=>{"use strict";e.d(c,{l:()=>r});var t=e(76715),n=e(54004),o=e(39300),i=e(24702);const d=(a,p)=>`${a}/search/${p}`;class r extends t.B{constructor(p,h,m,_,v,E,O=d){if(super(p,h,m,_,v,E),this.linkPath=p,this.requestService=h,this.rdbService=m,this.objectCache=_,this.halService=v,this.responseMsToLive=E,this.constructSearchEndpoint=O,(0,i.xI)(O))throw new Error(`SearchDataImpl initialized without a constructSearchEndpoint method (linkPath: ${p})`)}searchBy(p,h={},m=!0,_=!0,...v){const E=this.getSearchByHref(p,h,...v);return this.findListByHref(E,void 0,m,_,...v)}getSearchByHref(p,h={},...m){let _;const v=[];return _=this.getSearchEndpoint(p),_.pipe((0,n.U)(E=>this.buildHrefFromFindOptions(E,h,v,...m)))}getSearchEndpoint(p){return this.halService.getEndpoint(this.linkPath).pipe((0,o.h)(h=>(0,i.UE)(h)),(0,n.U)(h=>this.constructSearchEndpoint(h,p)))}}},48532:(R,c,e)=>{"use strict";e.d(c,{J:()=>k});var j,t=e(70655),n=e(80529),o=e(39841),i=e(60515),d=e(63900),r=e(54004),a=e(95698),p=e(40367),h=e(24702),m=e(93369),_=e(43015),v=e(58943),E=e(90291),O=e(68285),b=e(93498),M=e(90697),P=e(24789),D=e(25130),l=e(31241),C=e(9367),I=e(58577),g=e(62713),B=e(81964),L=e(85292),V=e(99678),Y=e(74508),X=e(62564),te=e(90330),K=e(46418),ee=e(72839),ae=e(21147),Q=e(94650);let k=((j=class extends ee.t{constructor(ie,ne,q,oe,ce,ye,Me,Ee){super("bitstreams",ie,ne,q,oe),this.requestService=ie,this.rdbService=ne,this.objectCache=q,this.halService=oe,this.bundleService=ce,this.bitstreamFormatService=ye,this.comparator=Me,this.notificationsService=Ee,this.searchData=new V.l(this.linkPath,ie,ne,q,oe,this.responseMsToLive),this.patchData=new Y.B(this.linkPath,ie,ne,q,oe,Me,this.responseMsToLive,this.constructIdEndpoint),this.deleteData=new te.R(this.linkPath,ie,ne,q,oe,Ee,this.responseMsToLive,this.constructIdEndpoint)}findAllByBundle(ie,ne,q=!0,oe=!0,...ce){return this.findListByHref(ie._links.bitstreams.href,ne,q,oe,...ce)}findAllByItemAndBundleName(ie,ne,q,oe=!0,ce=!0,...ye){return this.bundleService.findByItemAndName(ie,ne).pi
1pe((0,d.w)(Me=>Me.hasSucceeded&&(0,h.Uh)(Me.payload)?this.findAllByBundle(Me.payload,q,oe,ce,...ye):Me.hasSucceeded||404!==Me.statusCode?[Me]:(0,I.uV)((0,P.b)(new g.S,[]),(new Date).getTime())))}updateFormat(ie,ne){const q=this.requestService.generateRequestId(),oe=this.getBrowseEndpoint().pipe((0,r.U)(ye=>`${ye}/${ie.id}`),(0,d.w)(ye=>this.halService.getEndpoint("format",ye))),ce=this.bitstreamFormatService.getBrowseEndpoint().pipe((0,r.U)(ye=>`${ye}/${ne.id}`));return(0,o.a)([oe,ce]).pipe((0,r.U)(([ye,Me])=>{const Ee=Object.create({});let Ae=new n.WM;return Ae=Ae.append("Content-Type","text/uri-list"),Ee.headers=Ae,new D.an(q,ye,Me,Ee)}),(0,L.wG)(this.requestService),(0,a.q)(1)).subscribe(()=>{this.requestService.removeByHrefSubstring(ie.self+"/format")}),this.rdbService.buildFromRequestUUID(q)}findByItemHandle(ie,ne,q,oe=!0,ce=!0,...ye){const Me=[];Me.push(new B.g("handle",ie)),(0,h.Uh)(ne)&&Me.push(new B.g("sequenceId",ne)),(0,h.Uh)(q)&&Me.push(new B.g("filename",q));const Ee=this.getSearchByHref("byItemHandle",{searchParams:Me},...ye);return this.findByHref(Ee,oe,ce,...ye)}getSearchByHref(ie,ne,...q){return this.searchData.getSearchByHref(ie,ne,...q)}findPrimaryBitstreamByItemAndName(ie,ne,q=!0,oe=!0,ce){return this.bundleService.findByItemAndName(ie,ne,q,oe,ce,(0,m.l)("primaryBitstream")).pipe((0,O.hC)(),(0,d.w)(ye=>ye.hasSucceeded?ye.payload.primaryBitstream.pipe((0,O.hC)(),(0,r.U)(Me=>Me.hasSucceeded?Me.payload:null)):i.E))}searchBy(ie,ne,q,oe,...ce){return this.searchData.searchBy(ie,ne,q,oe,...ce)}commitUpdates(ie){this.patchData.commitUpdates(ie)}patch(ie,ne){return this.patchData.patch(ie,ne)}update(ie){return this.patchData.update(ie)}createPatchFromCache(ie){return this.patchData.createPatchFromCache(ie)}delete(ie,ne){return this.deleteData.delete(ie,ne)}deleteByHref(ie,ne){return this.deleteData.deleteByHref(ie,ne)}removeMultiple(ie){const ne=ie.map(ce=>({op:"remove",path:`/bitstreams/${ce.id}`})),q=this.requestService.generateRequestId();return this.halService.getEndpoint(this.linkPath).pipe((0,p.s)(ce=>(0,h.Uh)(ce))).subscribe(ce=>{const ye=new D._x(q,ce,ne);(0,h.Uh)(this.responseMsToLive)&&(ye.responseMsToLive=this.responseMsToLive),this.requestService.send(ye)}),this.rdbService.buildFromRequestUUIDAndAwait(q,()=>(0,o.a)(ie.map(ce=>this.invalidateByHref(ce._links.self.href))))}}).\u0275fac=function(ie){return new(ie||j)(Q.\u0275\u0275inject(l.s),Q.\u0275\u0275inject(_.Q),Q.\u0275\u0275inject(v.a),Q.\u0275\u0275inject(b.q),Q.\u0275\u0275inject(M.b),Q.\u0275\u0275inject(C.O),Q.\u0275\u0275inject(X.o),Q.\u0275\u0275inject(K.T))},j.\u0275prov=Q.\u0275\u0275defineInjectable({token:j,factory:j.\u0275fac,providedIn:"root"}),j);k=(0,t.__decorate)([(0,ae.cQ)(E.a),(0,t.__metadata)("design:paramtypes",[l.s,_.Q,v.a,b.q,M.b,C.O,X.o,K.T])],k)},9367:(R,c,e)=>{"use strict";e.d(c,{O:()=>L});var I,t=e(70655),n=e(89653),o=e(54004),i=e(71884),d=e(18505),r=e(33982),a=e(46418),p=e(43015),h=e(58943),m=e(1588),_=e(6629),v=e(93498),E=e(25130),O=e(31241),b=e(85292),M=e(72839),P=e(90330),D=e(53261),l=e(21147),C=e(94650);const g=(0,n.P1)(m.v,V=>V.bitstreamFormats),B=(0,n.P1)(g,V=>V.selectedBitstreamFormats);let L=((I=class extends M.t{constructor(Y,X,te,K,ee,ae){super("bitstreamformats",Y,X,te,K),this.requestService=Y,this.rdbService=X,this.objectCache=te,this.halService=K,this.notificationsService=ee,this.store=ae,this.linkPath="bitstreamformats",this.findAllData=new D.k(this.linkPath,Y,X,te,K,this.responseMsToLive),this.deleteData=new P.R(this.linkPath,Y,X,te,K,ee,this.responseMsToLive,this.constructIdEndpoint)}getUpdateEndpoint(Y){return this.getBrowseEndpoint().pipe((0,o.U)(X=>this.getIDHref(X,Y)))}getCreateEndpoint(){return this.getBrowseEndpoint()}updateBitstreamFormat(Y){const X=this.requestService.generateRequestId();return this.getUpdateEndpoint(Y.id).pipe((0,i.x)(),(0,o.U)(te=>new E.an(X,te,Y)),(0,b.wG)(this.requestService)).subscribe(),this.rdbService.buildFromRequestUUID(X)}createBitstreamFormat(Y){const X=this.requestService.generateRequestId();return this.getCreateEndpoint().pipe((0,o.U)(te=>new E.xo(X,te,Y)),(0,b.wG)(this.requestService)).subscribe(),this.rdbService.buildFromRequestUUID(X)}clearBitStreamFormatRequests(){return this.getBrowseEndpoint().pipe((0,d.b)(Y=>this.requestService.removeByHrefSubstring(Y)))}getSelectedBitstreamFormats(){return this.store.pipe((0,n.Ys)(B))}selectBitstreamFormat(Y){this.store.dispatch(new r.YM(Y))}deselectBitstreamFormat(Y){this.store.dispatch(new r.qZ(Y))}deselectAllBitstreamFormats(){this.store.dispatch(new r.sT)}findByBitstream(Y){return this.findByHref(Y._links.format.href)}findAll(Y,X,te,...K){return this.findAllData.findAll(Y,X,te,...K)}delete(Y,X){return this.deleteData.delete(Y,X)}deleteByHref(Y,X){return this.deleteData.deleteByHref(Y,X)}}).\u0275fac=function(Y){return new(Y||I)(C.\u0275\u0275inject(O.s),C.\u0275\u0275inject(p.Q),C.\u0275\u0275inject(h.a),C.\u0275\u0275inject(v.q),C.\u0275\u0275inject(a.T),C.\u0275\u0275inject(n.yh)
1)},I.\u0275prov=C.\u0275\u0275defineInjectable({token:I,factory:I.\u0275fac}),I);L=(0,t.__decorate)([(0,l.cQ)(_.J),(0,t.__metadata)("design:paramtypes",[O.s,p.Q,h.a,v.q,a.T,n.yh])],L)},90697:(R,c,e)=>{"use strict";e.d(c,{b:()=>C});var l,t=e(70655),n=e(54004),o=e(63900),i=e(95698),d=e(24702),r=e(43015),a=e(58943),p=e(24602),h=e(93498),m=e(15600),_=e(25130),v=e(31241),E=e(81554),O=e(72839),b=e(74508),M=e(62564),P=e(21147),D=e(94650);let C=((l=class extends O.t{constructor(g,B,L,V,Y){super("bundles",g,B,L,V),this.requestService=g,this.rdbService=B,this.objectCache=L,this.halService=V,this.comparator=Y,this.bitstreamsEndpoint="bitstreams",this.patchData=new b.B(this.linkPath,g,B,L,V,Y,this.responseMsToLive,this.constructIdEndpoint)}findAllByItem(g,B,L=!0,V=!0,...Y){return this.findListByHref(g._links.bundles.href,B,L,V,...Y)}findByItemAndName(g,B,L=!0,V=!0,Y,...X){return this.findAllByItem(g,Y??{elementsPerPage:9999},L,V,...X).pipe((0,n.U)(K=>{if((0,d.Uh)(K.payload)&&(0,d.Uh)(K.payload.page)){const ee=K.payload.page.find(ae=>ae.name===B);return(0,d.Uh)(ee)?new m.N(K.timeCompleted,K.msToLive,K.lastUpdated,E.q$.Success,null,ee,200):new m.N(K.timeCompleted,K.msToLive,K.lastUpdated,E.q$.Error,`The bundle with name ${B} was not found.`,null,404)}return K}))}getBitstreamsEndpoint(g,B){return this.getBrowseEndpoint().pipe((0,o.w)(L=>this.halService.getEndpoint(this.bitstreamsEndpoint,`${L}/${g}`)),(0,n.U)(L=>B?B.toRestUrl(L):L))}getBitstreams(g,B,...L){const V=this.getBitstreamsEndpoint(g,B);return V.pipe((0,i.q)(1)).subscribe(Y=>{const X=new _.Gl(this.requestService.generateRequestId(),Y);this.requestService.send(X,!0)}),this.rdbService.buildList(V,...L)}commitUpdates(g){this.patchData.commitUpdates(g)}patch(g,B){return this.patchData.patch(g,B)}update(g){return this.patchData.update(g)}createPatchFromCache(g){return this.patchData.createPatchFromCache(g)}}).\u0275fac=function(g){return new(g||l)(D.\u0275\u0275inject(v.s),D.\u0275\u0275inject(r.Q),D.\u0275\u0275inject(a.a),D.\u0275\u0275inject(h.q),D.\u0275\u0275inject(M.o))},l.\u0275prov=D.\u0275\u0275defineInjectable({token:l,factory:l.\u0275fac,providedIn:"root"}),l);C=(0,t.__decorate)([(0,P.cQ)(p.c),(0,t.__metadata)("design:paramtypes",[v.s,r.Q,a.a,h.q,M.o])],C)},36391:(R,c,e)=>{"use strict";e.d(c,{W:()=>K});var te,t=e(70655),n=e(80529),o=e(89383),i=e(39300),d=e(95698),r=e(54004),a=e(63900),p=e(24702),h=e(39961),m=e(46418),_=e(43015),v=e(81964),E=e(58943),O=e(16445),b=e(86076),M=e(54491),P=e(93498),D=e(68285),l=e(86266),C=e(16422),I=e(62564),g=e(25130),B=e(31241),L=e(48532),V=e(17481),Y=e(21147),X=e(94650);let K=((te=class extends l.C{constructor(ae,Q,j,k,G,ie,ne,q,oe){super("collections",ae,Q,j,k,G,ie,ne),this.requestService=ae,this.rdbService=Q,this.objectCache=j,this.halService=k,this.comparator=G,this.notificationsService=ie,this.bitstreamDataService=ne,this.communityDataService=q,this.translate=oe,this.errorTitle="collection.source.update.notifications.error.title",this.contentSourceError="collection.source.update.notifications.error.content"}getAuthorizedCollection(ae,Q={},j=!0,k=!0,...G){return Q=Object.assign({},Q,{searchParams:[new v.g("query",ae)]}),this.searchBy("findSubmitAuthorized",Q,j,k,...G).pipe((0,i.h)(ne=>!ne.isResponsePending))}getAuthorizedCollectionByEntityType(ae,Q,j={},k=!0,...G){return j=Object.assign({},j,{searchParams:[new v.g("query",ae),new v.g("entityType",Q)]}),this.searchBy("findSubmitAuthorizedByEntityType",j,!0,k,...G).pipe((0,i.h)(ne=>!ne.isResponsePending))}getAuthorizedCollectionByCommunity(ae,Q,j={},k=!0){return j=Object.assign({},j,{searchParams:[new v.g("uuid",ae),new v.g("query",Q)]}),this.searchBy("findSubmitAuthorizedByCommunity",j,k).pipe((0,i.h)(ie=>!ie.isResponsePending))}getAuthorizedCollectionByCommunityAndEntityType(ae,Q,j={},k=!0,...G){const ne=[new v.g("uuid",ae),new v.g("entityType",Q)];return j=Object.assign({},j,{searchParams:ne}),this.searchBy("findSubmitAuthorizedByCommunityAndEntityType",j,!0,k,...G).pipe((0,i.h)(q=>!q.isResponsePending))}hasAuthorizedCollection(){const Q=new V.R;return Q.elementsPerPage=1,this.searchBy("findSubmitAuthorized",Q).pipe((0,i.h)(j=>!j.isResponsePending),(0,d.q)(1),(0,r.U)(j=>j.payload.totalElements>0))}getHarvesterEndpoint(ae){return this.halService.getEndpoint(this.linkPath).pipe((0,a.w)(Q=>this.halService.getEndpoint("harvester",`${Q}/${ae}`)))}getContentSource(ae,Q=!0){const j=this.getHarvesterEndpoint(ae).pipe((0,p.iy)(),(0,d.q)(1));return j.subscribe(k=>{const G=new g.UU(this.requestService.generateRequestId(),k);this.requestService.send(G,Q)}),this.rdbService.buildSingle(j)}updateContentSource(ae,Q){const j=this.requestService.generateRequestId(),k=new O.F(M.i).serialize(Q);return this.getHarvesterEndpoint(ae).pipe((0,d.q)(1),(0,r.U)(ie=>{const ne=Object.create({});let q=new n.WM;return q=q.append("Content-Type","application/json"),ne.headers=q,new g.d0(j,ie,JSON.stringify(k),ne)})).subscribe(ie=>this.requestService.send(ie)),this.rdbService.buildFromRequestUUID(j).pipe((0,D.hC)(),(0,r.U)(ie=>ie.hasFailed?(0,p.Uh)(ie.errorMessage)?this.notificationsService.error(this.translate.instant(this.errorTitle),422===ie.statusCode?this.translate.instant(this.contentSourceError):ie.errorMessage,new h.n(-1)):void 0:ie),(0,p.iy)(),(0,r.U)(ie=>(0,p.UE)(ie.payload)?ie.payload:ie))}getFindByParentHref(ae){return this.halService.getEndpoint("communities").pipe((0,a.w)(Q=>this.halService.getEndpoint("collections",`${Q}/${ae}`)))}
1findOwningCollectionFor(ae){return this.findByHref(ae._links.owningCollection.href)}findMappedCollectionsFor(ae,Q){return this.findListByHref(ae._links.mappedCollections.href,Q)}getScopeCommunityHref(ae){return this.communityDataService.getEndpoint().pipe((0,r.U)(Q=>this.communityDataService.getIDHref(Q,ae.scopeID)),(0,i.h)(Q=>(0,p.UE)(Q)),(0,d.q)(1))}}).\u0275fac=function(ae){return new(ae||te)(X.\u0275\u0275inject(B.s),X.\u0275\u0275inject(_.Q),X.\u0275\u0275inject(E.a),X.\u0275\u0275inject(P.q),X.\u0275\u0275inject(I.o),X.\u0275\u0275inject(m.T),X.\u0275\u0275inject(L.J),X.\u0275\u0275inject(C.w),X.\u0275\u0275inject(o.sK))},te.\u0275prov=X.\u0275\u0275defineInjectable({token:te,factory:te.\u0275fac}),te);K=(0,t.__decorate)([(0,Y.cQ)(b.d),(0,t.__metadata)("design:paramtypes",[B.s,_.Q,E.a,P.q,I.o,m.T,L.J,C.w,o.sK])],K)},86266:(R,c,e)=>{"use strict";e.d(c,{C:()=>P});var t=e(63900),n=e(54004),o=e(39300),i=e(71884),d=e(95698),r=e(39841),a=e(24702),p=e(68285),h=e(58577),m=e(23631),_=e(72839),v=e(74508),E=e(90330),O=e(53261),b=e(99678),M=e(60210);class P extends _.t{constructor(l,C,I,g,B,L,V,Y){super(l,C,I,g,B),this.linkPath=l,this.requestService=C,this.rdbService=I,this.objectCache=g,this.halService=B,this.comparator=L,this.notificationsService=V,this.bitstreamDataService=Y,this.createData=new M.K(this.linkPath,C,I,g,B,V,this.responseMsToLive),this.findAllData=new O.k(this.linkPath,C,I,g,B,this.responseMsToLive),this.searchData=new b.l(this.linkPath,C,I,g,B,this.responseMsToLive),this.patchData=new v.B(this.linkPath,C,I,g,B,L,this.responseMsToLive,this.constructIdEndpoint),this.deleteData=new E.R(this.linkPath,C,I,g,B,V,this.responseMsToLive,this.constructIdEndpoint)}getBrowseEndpoint(l={},C=this.linkPath){if((0,a.xb)(l.scopeID))return this.halService.getEndpoint(C);{const I=this.getScopeCommunityHref(l);return this.createAndSendGetRequest(I,!0),I.pipe((0,t.w)(g=>this.rdbService.buildSingle(g)),(0,p.hC)(),(0,n.U)(g=>{if(g.hasFailed)throw new Error(`The Community with scope ${l.scopeID} couldn't be retrieved`);return g.payload._links[C]}),(0,o.h)(g=>(0,a.UE)(g)),(0,n.U)(g=>g.href),(0,i.x)())}}findByParent(l,C={},...I){const g=this.getFindByParentHref(l).pipe((0,n.U)(B=>this.buildHrefFromFindOptions(B,C)));return this.findListByHref(g,C,!0,!0,...I)}getLogoEndpoint(l){return this.halService.getEndpoint(this.linkPath).pipe((0,n.U)(C=>new m.R(C,l,"logo").toString()))}deleteLogo(l){const C=l.logo;return(0,a.Uh)(C)?C.pipe((0,p.hC)(),(0,t.w)(I=>I.hasFailed?(console.error(`Couldn't retrieve the logo '${l._links.logo.href}' in order to delete it.`),[I]):this.bitstreamDataService.deleteByHref(I.payload._links.self.href))):(0,h.DW)("The given object doesn't have a logo",400)}refreshCache(l){const C=this.parentCommunityUrlLookup(l);(0,a.Uh)(C)&&(0,r.a)([this.findByHref(C).pipe((0,p.hC)()),this.halService.getEndpoint("communities/search/top").pipe((0,d.q)(1))]).subscribe(([I,g])=>{I.hasSucceeded&&(0,a.UE)(I.payload)&&(0,a.UE)(I.payload.id)?this.requestService.setStaleByHrefSubstring(I.payload.id):this.requestService.setStaleByHrefSubstring(g)})}parentCommunityUrlLookup(l){const C=l._links.parentCommunity;return(0,a.UE)(C)?C.href:null}create(l,...C){return this.createData.create(l,...C)}findAll(l,C,I,...g){return this.findAllData.findAll(l,C,I,...g)}searchBy(l,C,I,g,...B){return this.searchData.searchBy(l,C,I,g,...B)}commitUpdates(l){this.patchData.commitUpdates(l)}patch(l,C){return this.patchData.patch(l,C)}update(l){return this.patchData.update(l)}createPatchFromCache(l){return this.patchData.createPatchFromCache(l)}delete(l,C){return this.deleteData.delete(l,C)}deleteByHref(l,C){return this.deleteData.deleteByHref(l,C)}}},16422:(R,c,e)=>{"use strict";e.d(c,{w:()=>l});var D,t=e(70655),n=e(54004),o=e(63900),i=e(39300),d=e(95698),r=e(46418),a=e(43015),p=e(58943),h=e(61146),m=e(93498),_=e(86266),v=e(62564),E=e(31241),O=e(48532),b=e(24702),M=e(21147),P=e(94650);let l=((D=class extends _.C{constructor(I,g,B,L,V,Y,X){super("communities",I,g,B,L,V,Y,X),this.requestService=I,this.rdbService=g,this.objectCache=B,this.halService=L,this.comparator=V,this.notificationsService=Y,this.bitstreamDataService=X,this.topLinkPath="search/top"}getEndpoint(){return this.halService.getEndpoint(this.linkPath)}findTop(I={},...g){return this.getEndpoint().pipe((0,n.U)(B=>`${B}/search/top`),(0,o.w)(B=>
1this.findListByHref(B,I,!0,!0,...g)))}getFindByParentHref(I){return this.halService.getEndpoint(this.linkPath).pipe((0,o.w)(g=>this.halService.getEndpoint("subcommunities",`${g}/${I}`)))}getScopeCommunityHref(I){return this.getEndpoint().pipe((0,n.U)(g=>this.getIDHref(g,I.scopeID)),(0,i.h)(g=>(0,b.UE)(g)),(0,d.q)(1))}}).\u0275fac=function(I){return new(I||D)(P.\u0275\u0275inject(E.s),P.\u0275\u0275inject(a.Q),P.\u0275\u0275inject(p.a),P.\u0275\u0275inject(m.q),P.\u0275\u0275inject(v.o),P.\u0275\u0275inject(r.T),P.\u0275\u0275inject(O.J))},D.\u0275prov=P.\u0275\u0275defineInjectable({token:D,factory:D.\u0275fac}),D);l=(0,t.__decorate)([(0,M.cQ)(h.v),(0,t.__metadata)("design:paramtypes",[E.s,a.Q,p.a,m.q,v.o,r.T,O.J])],l)},59656:(R,c,e)=>{"use strict";e.d(c,{i:()=>_});var m,t=e(70655),n=e(43015),o=e(58943),i=e(93498),d=e(31241),r=e(63220),a=e(72839),p=e(21147),h=e(94650);let _=((m=class extends a.t{constructor(E,O,b,M){super("properties",E,O,b,M),this.requestService=E,this.rdbService=O,this.objectCache=b,this.halService=M}findByPropertyName(E){return this.findById(E)}}).\u0275fac=function(E){return new(E||m)(h.\u0275\u0275inject(d.s),h.\u0275\u0275inject(n.Q),h.\u0275\u0275inject(o.a),h.\u0275\u0275inject(i.q))},m.\u0275prov=h.\u0275\u0275defineInjectable({token:m,factory:m.\u0275fac}),m);_=(0,t.__decorate)([(0,p.cQ)(r.o),(0,t.__metadata)("design:paramtypes",[d.s,n.Q,o.a,i.q])],_)},8623:(R,c,e)=>{"use strict";e.d(c,{F:()=>a});var t=e(47229),n=e(16445),o=e(54491);class i{}var d=e(14273),r=e(94650);let a=(()=>{class p extends d.f8{parse(m,_){const v=_.payload,E=new n.F(o.i).deserialize(v);let O=[];return v._embedded&&v._embedded.harvestermetadata&&v._embedded.harvestermetadata.configs&&(O=new n.F(i).serializeArray(v._embedded.harvestermetadata.configs)),E.metadataConfigs=O,this.addToObjectCache(E,m,_),new t.tp(_.statusCode,E._links.self)}}return p.\u0275fac=function(){let h;return function(_){return(h||(h=r.\u0275\u0275getInheritedFactory(p)))(_||p)}}(),p.\u0275prov=r.\u0275\u0275defineInjectable({token:p,factory:p.\u0275fac}),p})()},71761:(R,c,e)=>{"use strict";e.d(c,{v:()=>a});var t=e(52959),n=e(19782),o=e(29923);class i{constructor(h){this.modelType=h}serialize(h){return d((0,o.Serialize)(h,this.modelType))}serializeArray(h){return d((0,o.Serialize)(h,this.modelType))}deserialize(h){if(Array.isArray(h))throw new Error("Expected a single model, use deserializeArray() instead");return(0,o.Deserialize)(h,this.modelType)}deserializeArray(h){if(!Array.isArray(h))throw new Error("Expected an Array, use deserialize() instead");return(0,o.Deserialize)(h,this.modelType)}}function d(p){const h={};for(const[m,_]of Object.entries(p))null!==_&&(h[m]=_);return h}var r=e(94650);let a=(()=>{class p{diff(m,_){const v=new i((0,n.w2)(m.type)),E=new i((0,n.w2)(_.type));return(0,t.qu)(v.serialize(m),E.serialize(_))}}return p.\u0275fac=function(m){return new(m||p)},p.\u0275prov=r.\u0275\u0275defineInjectable({token:p,factory:p.\u0275fac}),p})()},62564:(R,c,e)=>{"use strict";e.d(c,{o:()=>d});var t=e(52959),n=e(90733),o=e.n(n),i=e(94650);let d=(()=>{class r{diff(p,h){return(0,t.qu)(this.filterUUIDsFromMetadata(p.metadata),this.filterUUIDsFromMetadata(h.metadata)).map(m=>Object.assign({},m,{path:"/metadata"+m.path}))}filterUUIDsFromMetadata(p){const h=o()(p);for(const m of Object.keys(h))for(const _ of h[m])_.uuid=void 0;return h}}return r.\u0275fac=function(p){return new(p||r)},r.\u0275prov=i.\u0275\u0275defineInjectable({token:r,factory:r.\u0275fac}),r})()},8427:(R,c,e)=>{"use strict";e.d(c,{j:()=>r});var t=e(58943),n=e(47229),o=e(15665),i=e(24702),d=e(94650);let r=(()=>{class a extends o.ry{constructor(h){super(),this.objectCache=h,this.toCache=!0}parse(h,m){let _;_=(0,i.Uh)(m.payload)&&(0,i.Uh)(m.payload.page)&&0===m.payload.page.totalElements?{page:[]}:this.process(m.payload,h);let v=_;if((0,i.xI)(_))return new n.k([],m.statusCode,m.statusText,void 0);(0,i.Uh)(_.page)?v=_.page:Array.isArray(_)||(v=[_]);const E=v.map(O=>O._links.self.href);return new n.k(E,m.statusCode,m.statusText,this.processPageInfo(m.payload))}}return a.\u0275fac=function(h){return new(h||a)(d.\u0275\u0275inject(t.a))}
1,a.\u0275prov=d.\u0275\u0275defineInjectable({token:a,factory:a.\u0275fac}),a})()},83360:(R,c,e)=>{"use strict";e.d(c,{D:()=>_});var m,t=e(70655),n=e(43015),o=e(58943),i=e(80371),d=e(93498),r=e(31241),a=e(72839),p=e(21147),h=e(94650);let _=((m=class extends a.t{constructor(E,O,b,M){super("dso",E,O,b,M,void 0,(P,D)=>P.replace(/{\?uuid}/,`?uuid=${D}`)),this.requestService=E,this.rdbService=O,this.objectCache=b,this.halService=M}}).\u0275fac=function(E){return new(E||m)(h.\u0275\u0275inject(r.s),h.\u0275\u0275inject(n.Q),h.\u0275\u0275inject(o.a),h.\u0275\u0275inject(d.q))},m.\u0275prov=h.\u0275\u0275defineInjectable({token:m,factory:m.\u0275fac}),m);_=(0,t.__decorate)([(0,p.cQ)(i.i),(0,t.__metadata)("design:paramtypes",[r.s,n.Q,o.a,d.q])],_)},14273:(R,c,e)=>{"use strict";e.d(c,{P3:()=>E,f8:()=>M});var t=e(24702),n=e(16445),o=e(62713),i=e(58943),d=e(24789),r=e(19782),a=e(21540),p=e(47229),h=e(63881),m=e(61306),_=e(23631),v=e(94650);function E(P){return(0,t.Uh)(P)&&(0,t.Uh)(P._links)&&(0,t.Uh)(P._links.self)&&(0,t.Uh)(P._links.self.href)}const b=P=>P.split("?").map(D=>D.split("&")).reduce((D,l)=>[...D,...l]);let M=(()=>{class P{constructor(l){this.objectCache=l,this.serializerConstructor=n.F}parse(l,C){let I;C=this.ensureSelfLink(l,C),l.method===h.a.GET&&(I=(0,m.z2)(l.href));const g=this.process(C.payload,l,I);return(0,t.Uh)(g)?E(g)?new p.tp(C.statusCode,g._links.self):new p.tp(C.statusCode,void 0,g):new p.tp(C.statusCode)}process(l,C,I){const g=(0,m.jP)(C.href);if((0,t.UE)(l)){if((0,t.xI)(l)||"object"!=typeof l)return l;if(function O(P){return(0,t.Uh)(P.page)&&(0,t.Uh)(P.page.size)&&(0,t.Uh)(P.page.totalElements)&&(0,t.Uh)(P.page.totalPages)&&(0,t.Uh)(P.page.number)}(l))return this.processPaginatedList(l,C,I);if(Array.isArray(l))return this.processArray(l,C);if(E(l)){const L=this.deserialize(l);return(0,t.UE)(l._embedded)&&Object.keys(l._embedded).filter(V=>l._embedded.hasOwnProperty(V)).forEach(V=>{let Y=l._links[V].href;const X=g.find(te=>te.name===V);(0,t.Uh)(X)&&(Y=new _.R(Y,`?size=${X.size}`).toString()),null==l._embedded[V]?this.addToObjectCache(null,C,l,Y):E(l._embedded[V])||this.objectCache.add(l._embedded[V],(0,t.Uh)(C.responseMsToLive)?C.responseMsToLive:a.N.cache.msToLive.default,C.uuid,Y),this.process(l._embedded[V],C,Y)}),this.addToObjectCache(L,C,l,I),L}const B={};return Object.keys(l).filter(L=>l.hasOwnProperty(L)).filter(L=>(0,t.Uh)(l[L])).forEach(L=>{B[L]=this.process(l[L],C)}),B}}ensureSelfLink(l,C){const I=(0,m.z2)(l.href);if(l.method===h.a.GET&&(0,t.Uh)(C)&&(0,t.Uh)(C.payload)&&(0,t.Uh)(C.payload._links))if((0,t.xI)(C.payload._links.self)||(0,t.xI)(C.payload._links.self.href))console.warn(`The response for '${l.href}' doesn't have a self link. This could mean there's an issue with the REST endpoint`),C.payload._links=Object.assign({},C.payload._links,{self:{href:I}});else{const g=b(I),B=b(C.payload._links.self.href);g[0]===B[0]&&(g.some(L=>!B.includes(L))||B.some(L=>!g.includes(L)))&&(console.warn(`The response for '${I}' has the self link '${C.payload._links.self.href}'. These don't match. This could mean there's an issue with the REST endpoint`),C.payload._links=Object.assign({},C.payload._links,{self:{href:I}}))}return C}processPaginatedList(l,C,I){const g=this.processPageInfo(l);let B=l._embedded;(0,t.xI)(B)?B=[]:Array.isArray(B)||(B=this.flattenSingleKeyObject(B));const L=this.processArray(B,C),V=(0,d.b)(g,L,!0,l._links);return this.addToObjectCache(V,C,l,I),V}processArray(l,C){let I=[];return l.forEach(g=>{I=[...I,this.process(g,C)]}),I}deserialize(l){const C=l.type,I=this.getConstructorFor(C);return(0,t.Uh)(I)?new this.serializerConstructor(I).deserialize(l):(console.warn("cannot deserialize type "+C),null)}getConstructorFor(l){return(0,t.Uh)(l)?(0,r.w2)(l):null}addToObjectCache(l,C,I,g){if((0,t.Uh)(l)&&!E(l)){const B=(0,t.Uh)(I)&&(0,t.Uh)(I.type)?I.type:"object";let L;return L=(0,t.Uh)(I._embedded)?JSON.stringify(Object.assign({},I,{_embedded:"..."})):JSON.stringify(I),void console.warn(`Can't cache incomplete ${B}: ${JSON.stringify(l)}, parsed from (partial) response: ${L}`)}(0,t.Uh)(l)&&g===l._links.self.href&&(g=void 0),this.objectCache.add(l,(0,t.Uh)(C.responseMsToLive)?C.responseMsToLive:a.N.cache.msToLive.default,C.uuid,g)}processPageInfo(l){if((0,t.Uh)(l.page)){const C=new n.F(o.S).deserialize(l.page);return C.currentPage>=0&&Object.assign(C,{currentPage:C.currentPage+1}),C}}flattenSingleKeyObject(l){const C=Object.keys(l);if(1!==C.length)throw new Error(`Expected an object with a single key, got: ${JSON.stringify(l)}`);return l[C[0]]}isSuccessStatus(l){return l>=200&&l<300}}return P.\u0275fac=function(l){return new(l||P)(v.\u0275\u0275inject(i.a))},P.\u0275prov=v.\u0275\u0275defineInjectable({token:P,factory:P.\u0275fac,providedIn:"root"}),P})()},22093:(R,c,e)=>{"use strict";e.d(c,{q:()=>a});var t=e(14273),n=e(24702),o=e(19782),i=e(47229),d=e(21540),r=e(94650);let a=(()=>{class p extends t.f8{parse(m,_){try{_=this.ensureSelfLink(m,_);const v=this.process(_.payload,m);if((0,n.Uh)(v)){const E=v.type;let O;return(0,n.Uh)(E)&&(O=(0,o.w2)(E)),(0,t.P3)(v)&&(0,n.Uh)(O)?new i.tp(_.statusCode,v._links.self):new i.tp(_.statusCode,void 0,v)}return new i.tp(_.statusCode)}catch{return console.warn(`Couldn't parse endpoint request at ${m.href}`),new i.tp(_.statusCode,void 0,{_links:_.payload._links})}}deserialize(m){const _=m.type;if((0,n.Uh)(_)){const v=(0,o.w2)(_);if((0,n.Uh)(v))return new this.serializerConstructor(v).deserialize(m)}return m}addToObjectCache(m,_,v,E){if(!(0,t.P3)(m)){const O=(0,n.Uh)(v)&&(0,n.Uh)(v.type)?v.type:"object";let b;return b=(0,n.Uh)(v._embedded)?JSON.stringify(Object.assign({},v,{_embedded:"..."})):JSON.stringify(v),void console.warn(`Can't cache incomplete ${O}: ${JSON.stringify(m)}, parsed from (partial) response: ${b}`)}(0,n.Uh)(this.getConstructorFor(m.type))&&this.objectCache.add(m,(0,n.Uh)(_.responseMsToLive)?_.responseMsToLive:d.N.cache.msToLive.default,_.uuid,E)}}
1return p.\u0275fac=function(){let h;return function(_){return(h||(h=r.\u0275\u0275getInheritedFactory(p)))(_||p)}}(),p.\u0275prov=r.\u0275\u0275defineInjectable({token:p,factory:p.\u0275fac}),p})()},94357:(R,c,e)=>{"use strict";e.d(c,{k:()=>b});var t=e(31241),n=e(43015),o=e(93498),i=e(58943),d=e(63900),r=e(54004),a=e(39300),p=e(95698),h=e(68285),m=e(67357),_=e(76715),v=e(99678),E=e(53261),O=e(94650);let b=(()=>{class M extends _.B{constructor(D,l,C,I,g){super("entitytypes",D,l,C,I),this.requestService=D,this.rdbService=l,this.objectCache=C,this.halService=I,this.relationshipTypeService=g,this.findAllData=new E.k(this.linkPath,D,l,C,I,this.responseMsToLive),this.searchData=new v.l(this.linkPath,D,l,C,I,this.responseMsToLive)}getBrowseEndpoint(D,l){return this.halService.getEndpoint(this.linkPath)}getRelationshipTypesEndpoint(D){return this.halService.getEndpoint(this.linkPath).pipe((0,d.w)(l=>this.halService.getEndpoint("relationshiptypes",`${l}/${D}`)))}isLeftType(D,l){return D.leftType.pipe((0,h.xw)(),(0,h.xe)(),(0,r.U)(C=>C.uuid===l.uuid))}getAllAuthorizedRelationshipType(D={}){return this.searchBy("findAllByAuthorizedCollection",D).pipe((0,a.h)(C=>!C.isResponsePending))}hasMoreThanOneAuthorized(){return this.getAllAuthorizedRelationshipType({elementsPerPage:2,currentPage:1}).pipe((0,r.U)(l=>{let C;return C=!!l.payload&&l.payload.page.length>1,C}))}getAllAuthorizedRelationshipTypeImport(D={}){return this.searchBy("findAllByAuthorizedExternalSource",D).pipe((0,a.h)(C=>!C.isResponsePending))}hasMoreThanOneAuthorizedImport(){return this.getAllAuthorizedRelationshipTypeImport({elementsPerPage:2,currentPage:1}).pipe((0,r.U)(l=>{let C;return C=!!l.payload&&l.payload.page.length>1,C}))}getEntityTypeRelationships(D,l=!0,C=!0,...I){const g=this.getRelationshipTypesEndpoint(D);return this.relationshipTypeService.findListByHref(g,void 0,l,C,...I)}getEntityTypeByLabel(D){return this.halService.getEndpoint(this.linkPath).pipe((0,p.q)(1),(0,d.w)(l=>this.findByHref(l+"/label/"+D)))}findAll(D,l,C,...I){return this.findAllData.findAll(D,l,C,...I)}searchBy(D,l,C,I,...g){return this.searchData.searchBy(D,l,C,I,...g)}}return M.\u0275fac=function(D){return new(D||M)(O.\u0275\u0275inject(t.s),O.\u0275\u0275inject(n.Q),O.\u0275\u0275inject(i.a),O.\u0275\u0275inject(o.q),O.\u0275\u0275inject(m.X))},M.\u0275prov=O.\u0275\u0275defineInjectable({token:M,factory:M.\u0275fac}),M})()},93459:(R,c,e)=>{"use strict";e.d(c,{m:()=>b});var t=e(31241),n=e(93498),o=e(25130),i=e(39300),d=e(54004),r=e(40367),a=e(24702),p=e(37500),h=e(68285),m=e(47229),_=e(94650);let v=(()=>{class M{parse(D,l){const C=l.payload,I=Object.assign(new p.Y,C);return new m.tp(l.statusCode,void 0,I)}}return M.\u0275fac=function(D){return new(D||M)},M.\u0275prov=_.\u0275\u0275defineInjectable({token:M,factory:M.\u0275fac,providedIn:"root"}),M})();var E=e(43015),O=e(80529);let b=(()=>{class M{constructor(D,l,C){this.requestService=D,this.rdbService=l,this.halService=C,this.linkPath="registrations",this.searchByTokenPath="/search/findByToken?token="}getRegistrationEndpoint(){return this.halService.getEndpoint(this.linkPath)}getTokenSearchEndpoint(D){return this.halService.getEndpoint(this.linkPath).pipe((0,i.h)(l=>(0,a.UE)(l)),(0,d.U)(l=>`${l}${this.searchByTokenPath}${D}`))}registerEmail(D,l=null,C){const I=new p.Y;I.email=D;const g=this.requestService.generateRequestId(),B=this.getRegistrationEndpoint(),L=Object.create({});let V=new O.WM;return l&&(V=V.append("x-recaptcha-token",l)),L.headers=V,(0,a.Uh)(C)&&(L.params=C?new O.LE({fromString:"accountRequestType="+C}):new O.LE),B.pipe((0,r.s)(Y=>(0,a.Uh)(Y)),(0,d.U)(Y=>{const X=new o.xo(g,Y,I,L);this.requestService.send(X)})).subscribe(),this.rdbService.buildFromRequestUUID(g).pipe((0,h.hC)())}searchByToken(D){const l=this.requestService.generateRequestId(),C=this.getTokenSearchEndpoint(D).pipe((0,r.s)(I=>(0,a.Uh)(I)));return C.subscribe(I=>{const g=new o.Gl(l,I);Object.assign(g,{getResponseParser:()=>v}),this.requestService.send(g,!0)}),this.rdbService.buildSingle(C).pipe((0,d.U)(I=>I.hasSucceeded&&(0,a.Uh)(I.payload)?Object.assign(I,{payload:Object.assign(I.payload,{token:D})}):I))}}return M.\u0275fac=function(D){return new(D||M)(_.\u0275\u0275inject(t.s),_.\u0275\u0275inject(E.Q),_.\u0275\u0275inject(n.q))},M.\u0275prov=_.\u0275\u0275defineInjectable({token:M,factory:M.\u0275fac,providedIn:"root"}),M})()},31388:(R,c,e)=>{"use strict";e.d(c,{G:()=>E});var t=e(31241),n=e(43015),o=e(58943),i=e(93498),d=e(54004),r=e(63900),a=e(71884),p=e(95698),h=e(24702),m=e(72839),_=e(99678),v=e(94650);let E=(()=>{class O extends m.t{constructor(M,P,D,l){super("externalsources",M,P,D,l),this.requestService=M,this.rdbService=P,this.objectCache=D,this.halService=l,this.searchData=new _.l(this.linkPath,M,P,D,l,this.responseMsToLive)}getBrowseEndpoint(M={},P=this.linkPath){return this.halService.getEndpoint(P)}getEntriesEndpoint(M){return this.getBrowseEndpoint().pipe((0,d.U)(P=>this.getIDHref(P,M)),(0,r.w)(P=>this.halService.getEndpoint("entries",P)))}getExternalSourceEntries(M,P,D=!0,l=!0,...C){const I=this.getEntriesEndpoint(M).pipe((0,h.iy)(),(0,a.x)(),(0,d.U)(g=>(0,h.Uh)(P)?P.toRestUrl(g):g),(0,p.q)(1));return this.hasCachedErrorResponse(I).pipe((0,r.w)(g=>
1this.findListByHref(I,void 0,!g,l,...C)))}searchBy(M,P,D,l,...C){return this.searchData.searchBy(M,P,D,l,...C)}}return O.\u0275fac=function(M){return new(M||O)(v.\u0275\u0275inject(t.s),v.\u0275\u0275inject(n.Q),v.\u0275\u0275inject(o.a),v.\u0275\u0275inject(i.q))},O.\u0275prov=v.\u0275\u0275defineInjectable({token:O,factory:O.\u0275fac}),O})()},25963:(R,c,e)=>{"use strict";e.d(c,{L:()=>a});var t=e(60740),n=e(47229),o=e(16445),i=e(14273),d=e(34787),r=e(94650);let a=(()=>{class p extends i.f8{parse(m,_){const v=_.payload._embedded.facets,O=new o.F(t.B).deserializeArray(v),b={self:_.payload._links.self};O.forEach(P=>{b[P.name]={href:P._links.self.href}});const M=Object.assign(new d.M,{filters:O,_links:b});return this.addToObjectCache(M,m,_),new n.tp(_.statusCode,M._links.self)}}return p.\u0275fac=function(){let h;return function(_){return(h||(h=r.\u0275\u0275getInheritedFactory(p)))(_||p)}}(),p.\u0275prov=r.\u0275\u0275defineInjectable({token:p,factory:p.\u0275fac}),p})()},88868:(R,c,e)=>{"use strict";e.d(c,{N:()=>a});var t=e(21603),n=e(47229),o=e(16445),i=e(89322),d=e(14273),r=e(94650);let a=(()=>{class p extends d.f8{parse(m,_){const v=_.payload,E=new o.F(i.i).deserialize(v);return E.pageInfo=this.processPageInfo(v),E.page=new o.F(t.G).deserializeArray(v._embedded.values),this.addToObjectCache(E,m,_),new n.tp(_.statusCode,E._links.self)}}return p.\u0275fac=function(){let h;return function(_){return(h||(h=r.\u0275\u0275getInheritedFactory(p)))(_||p)}}(),p.\u0275prov=r.\u0275\u0275defineInjectable({token:p,factory:p.\u0275fac}),p})()},19937:(R,c,e)=>{"use strict";e.d(c,{_:()=>X});var t=e(70655),n=e(39646),o=e(79237),i=e(31241),d=e(43015),r=e(58943),a=e(93498),p=e(23380),h=e(93369),m=e(54004),_=e(70262),v=e(63900),E=e(24702),O=e(81964);class b{constructor(K,ee,ae){this.objectUrl=K,this.ePersonUuid=ee,this.featureId=ae}}var Y,M=e(39841),P=e(68285),I=e(17481),g=e(76715),B=e(99678),L=e(21147),V=e(94650);let X=((Y=class extends g.B{constructor(K,ee,ae,Q,j){super("authorizations",K,ee,ae,Q),this.requestService=K,this.rdbService=ee,this.objectCache=ae,this.halService=Q,this.siteService=j,this.linkPath="authorizations",this.searchByObjectPath="object",this.searchData=new B.l(this.linkPath,K,ee,ae,Q,this.responseMsToLive)}invalidateAuthorizationsRequestCache(){this.requestService.setStaleByHrefSubstring(this.linkPath)}isAuthorized(K,ee,ae,Q=!0,j=!0){return this.searchByObject(K,ee,ae,{},Q,j,(0,h.l)("feature")).pipe((0,P.hC)(),(0,m.U)(k=>401!==k.statusCode&&(0,E.Uh)(k.payload)&&(0,E.UE)(k.payload.page)?k.payload.page:[]),(0,_.K)(()=>(0,n.of)([])),(te=K,K=>K.pipe((0,v.w)(ee=>(0,E.UE)(ee)?(0,M.a)([...ee.filter(ae=>(0,E.Uh)(ae.feature)).map(ae=>ae.feature.pipe((0,P.Gp)()))]):(0,n.of)([])),(0,m.U)(ee=>ee.filter(ae=>ae.id===te).length>0))));var te}searchByObject(K,ee,ae,Q={},j=!0,k=!0,...G){const ie=(0,n.of)(ee).pipe((0,v.w)(q=>(0,E.xI)(q)?this.siteService.find().pipe((0,m.U)(oe=>oe.self)):(0,n.of)(q))),ne=ie.pipe((0,m.U)(q=>new b(q,ae,K)),(0,v.w)(q=>this.searchBy(this.searchByObjectPath,this.createSearchOptions(q.objectUrl,Q,q.ePersonUuid,q.featureId),j,k,...G)));return this.addDependency(ne,ie),ne}createSearchOptions(K,ee={},ae,Q){let j=[];return(0,E.UE)(ee.searchParams)&&(j=[...ee.searchParams]),j.push(new O.g("uri",K,!1)),(0,E.Uh)(Q)&&j.push(new O.g("feature",Q)),(0,E.Uh)(ae)&&j.push(new O.g("eperson",ae)),Object.assign(new I.R,ee,{searchParams:[...j]})}searchBy(K,ee,ae,Q,...j){return this.searchData.searchBy(K,ee,ae,Q,...j)}}).\u0275fac=function(K){return new(K||Y)(V.\u0275\u0275inject(i.s),V.\u0275\u0275inject(d.Q),V.\u0275\u0275inject(r.a),V.\u0275\u0275inject(a.q),V.\u0275\u0275inject(p.a))},Y.\u0275prov=V.\u0275\u0275defineInjectable({token:Y,factory:Y.\u0275fac}),Y);X=(0,t.__decorate)([(0,L.cQ)(o.e),(0,t.__metadata)("design:paramtypes",[i.s,d.Q,r.a,a.q,p.a])],X)},20066:(R,c,e)=>{"use strict";e.d(c,{E:()=>p});var t=e(22904),n=e(19937),o=e(24755),i=e(39646),d=e(47235),r=e(94650),a=e(34793);let p=(()=>{class h extends t.C{constructor(_,v,E){super(_,v,E),this.authorizationService=_,this.router=v,this.authService=E}getFeatureID(_,v){return(0,i.of)(d.i.CanManageGroups)}}
1return h.\u0275fac=function(_){return new(_||h)(r.\u0275\u0275inject(n._),r.\u0275\u0275inject(a.F0),r.\u0275\u0275inject(o.e8))},h.\u0275prov=r.\u0275\u0275defineInjectable({token:h,factory:h.\u0275fac,providedIn:"root"}),h})()},22904:(R,c,e)=>{"use strict";e.d(c,{C:()=>o});var t=e(54004),n=e(89141);class o extends n.I{getFeatureIDs(d,r){return this.getFeatureID(d,r).pipe((0,t.U)(a=>[a]))}}},97874:(R,c,e)=>{"use strict";e.d(c,{X:()=>p});var t=e(22904),n=e(47235),o=e(19937),i=e(39646),d=e(24755),r=e(94650),a=e(34793);let p=(()=>{class h extends t.C{constructor(_,v,E){super(_,v,E),this.authorizationService=_,this.router=v,this.authService=E}getFeatureID(_,v){return(0,i.of)(n.i.AdministratorOf)}}return h.\u0275fac=function(_){return new(_||h)(r.\u0275\u0275inject(o._),r.\u0275\u0275inject(a.F0),r.\u0275\u0275inject(d.e8))},h.\u0275prov=r.\u0275\u0275defineInjectable({token:h,factory:h.\u0275fac,providedIn:"root"}),h})()},48729:(R,c,e)=>{"use strict";e.d(c,{C:()=>p});var t=e(22904),n=e(19937),o=e(39646),i=e(47235),d=e(24755),r=e(94650),a=e(34793);let p=(()=>{class h extends t.C{constructor(_,v,E){super(_,v,E),this.authorizationService=_,this.router=v,this.authService=E}getFeatureID(_,v){return(0,o.of)(i.i.EPersonRegistration)}}return h.\u0275fac=function(_){return new(_||h)(r.\u0275\u0275inject(n._),r.\u0275\u0275inject(a.F0),r.\u0275\u0275inject(d.e8))},h.\u0275prov=r.\u0275\u0275defineInjectable({token:h,factory:h.\u0275fac,providedIn:"root"}),h})()},89141:(R,c,e)=>{"use strict";e.d(c,{I:()=>d});var t=e(39841),n=e(39646),o=e(63900),i=e(12691);class d{constructor(a,p,h){this.authorizationService=a,this.router=p,this.authService=h}canActivate(a,p){return(0,t.a)(this.getFeatureIDs(a,p),this.getObjectUrl(a,p),this.getEPersonUuid(a,p)).pipe((0,o.w)(([h,m,_])=>(0,t.a)(...h.map(v=>this.authorizationService.isAuthorized(v,m,_)))),(0,i.uB)(this.router,this.authService,p.url))}getObjectUrl(a,p){return(0,n.of)(void 0)}getEPersonUuid(a,p){return(0,n.of)(void 0)}}},47235:(R,c,e)=>{"use strict";e.d(c,{i:()=>t});var t=(()=>{return(n=t||(t={})).LoginOnBehalfOf="loginOnBehalfOf",n.AdministratorOf="administratorOf",n.CanDelete="canDelete",n.CanEditMetadata="canEditMetadata",n.WithdrawItem="withdrawItem",n.ReinstateItem="reinstateItem",n.EPersonRegistration="epersonRegistration",n.CanManageGroups="canManageGroups",n.CanManageGroup="canManageGroup",n.IsCollectionAdmin="isCollectionAdmin",n.IsCommunityAdmin="isCommunityAdmin",n.CanChangePassword="canChangePassword",n.CanDownload="canDownload",n.CanRequestACopy="canRequestACopy",n.CanManageVersions="canManageVersions",n.CanManageBitstreamBundles="canManageBitstreamBundles",n.CanManageRelationships="canManageRelationships",n.CanManageMappings="canManageMappings",n.CanManagePolicies="canManagePolicies",n.CanMakePrivate="canMakePrivate",n.CanMove="canMove",n.CanEditVersion="canEditVersion",n.CanDeleteVersion="canDeleteVersion",n.CanCreateVersion="canCreateVersion",n.CanViewUsageStatistics="canViewUsageStatistics",n.CanSendFeedback="canSendFeedback",n.CanClaimItem="canClaimItem",n.CanSynchronizeWithORCID="canSynchronizeWithORCID",n.CanSubmit="canSubmit",n.CanEditItem="canEditItem",n.CanRegisterDOI="canRegisterDOI",n.CanSubscribe="canSubscribeDso",t;var n})()},17481:(R,c,e)=>{"use strict";e.d(c,{R:()=>t});class t{}},83639:(R,c,e)=>{"use strict";e.d(c,{N:()=>ee,S:()=>ae});var K,t=e(70655),n=e(80529),o=e(39300),i=e(54004),d=e(71884),r=e(63900),a=e(95698),p=e(40367),h=e(24702),m=e(46418),_=e(27645),v=e(43015),E=e(58943),O=e(93498),b=e(14601),M=e(23631),P=e(62564),D=e(25130),l=e(31241),C=e(90697),I=e(57244),g=e(85292),B=e(72839),L=e(74508),V=e(90330),Y=e(60210),X=e(21147),te=e(94650);class ee extends B.t{constructor(j,k,G,ie,ne,q,oe,ce,ye,Me=((Ee,Ae)=>`${Ee}/${Ae}`)){super(j,k,G,ie,ne,void 0,Me),this.linkPath=j,this.requestService=k,this.rdbService=G,this.objectCache=ie,this.halService=ne,this.notificationsService=q,this.comparator=oe,this.browseService=ce,this.bundleService=ye,this.constructIdEndpoint=Me,this.createData=new Y.K(this.linkPath,k,G,ie,ne,q,this.responseMsToLive),this.patchData=new L.B(this.linkPath,k,G,ie,ne,oe,this.responseMsToLive,this.constructIdEndpoint),this.deleteData=new V.R(this.linkPath,k,G,ie,ne,q,this.responseMsToLive,this.constructIdEndpoint)}getBrowseEndpoint(j={},k=this.linkPath){let G="dc.date.issued";return j.sort&&j.sort.field&&(G=j.sort.field),this.browseService.getBrowseURLFor(G,k).pipe((0,o.h)(ie
1=>(0,h.UE)(ie)),(0,i.U)(ie=>new M.R(ie,`?scope=${j.scopeID}`).toString()),(0,d.x)())}getMappedCollectionsEndpoint(j,k){return this.halService.getEndpoint(this.linkPath).pipe((0,i.U)(G=>this.getIDHref(G,j)),(0,i.U)(G=>`${G}/mappedCollections${k?`/${k}`:""}`))}removeMappingFromCollection(j,k){return this.getMappedCollectionsEndpoint(j,k).pipe((0,h.iy)(),(0,d.x)(),(0,i.U)(G=>new D.jx(this.requestService.generateRequestId(),G)),(0,g.wG)(this.requestService),(0,r.w)(G=>this.rdbService.buildFromRequestUUID(G.uuid)))}mapToCollection(j,k){return this.getMappedCollectionsEndpoint(j).pipe((0,h.iy)(),(0,d.x)(),(0,i.U)(G=>{const ie=Object.create({});let ne=new n.WM;return ne=ne.append("Content-Type","text/uri-list"),ie.headers=ne,new D.xo(this.requestService.generateRequestId(),G,k,ie)}),(0,g.wG)(this.requestService),(0,r.w)(G=>this.rdbService.buildFromRequestUUID(G.uuid)))}setWithDrawn(j,k){const G={op:"replace",path:"/withdrawn",value:k};return this.requestService.removeByHrefSubstring("/discover"),this.patch(j,[G])}setDiscoverable(j,k){const G={op:"replace",path:"/discoverable",value:k};return this.requestService.removeByHrefSubstring("/discover"),this.patch(j,[G])}getBundlesEndpoint(j){return this.halService.getEndpoint(this.linkPath).pipe((0,r.w)(k=>this.halService.getEndpoint("bundles",`${k}/${j}`)))}getBundles(j,k){const G=this.getBundlesEndpoint(j).pipe((0,i.U)(ie=>k?k.toRestUrl(ie):ie));return G.pipe((0,a.q)(1)).subscribe(ie=>{const ne=new D.Gl(this.requestService.generateRequestId(),ie);this.requestService.send(ne)}),this.rdbService.buildList(G)}createBundle(j,k,G){const ie=this.requestService.generateRequestId(),ne=this.getBundlesEndpoint(j),q={name:k,metadata:G||{}};return ne.pipe((0,a.q)(1)).subscribe(oe=>{const ce=Object.create({});let ye=new n.WM;ye=ye.append("Content-Type","application/json"),ce.headers=ye;const Me=new D.xo(ie,oe,JSON.stringify(q),ce);this.requestService.send(Me)}),this.rdbService.buildFromRequestUUID(ie)}getIdentifiersEndpoint(j){return this.halService.getEndpoint(this.linkPath).pipe((0,r.w)(k=>this.halService.getEndpoint("identifiers",`${k}/${j}`)))}getMoveItemEndpoint(j,k){return this.halService.getEndpoint(this.linkPath).pipe((0,i.U)(G=>this.getIDHref(G,j)),(0,i.U)(G=>`${G}/owningCollection?inheritPolicies=${k}`))}moveToCollection(j,k,G){const ie=Object.create({});let ne=new n.WM;
1ne=ne.append("Content-Type","text/uri-list"),ie.headers=ne;const q=this.requestService.generateRequestId();return this.getMoveItemEndpoint(j,G).pipe((0,p.s)(ce=>(0,h.Uh)(ce)),(0,i.U)(ce=>{const ye=new D.an(q,ce,k._links.self.href,ie);return Object.assign(ye,{getResponseParser:()=>I.o}),ye})).subscribe(ce=>{this.requestService.send(ce)}),this.rdbService.buildFromRequestUUID(q)}importExternalSourceEntry(j,k){const G=Object.create({});let ie=new n.WM;ie=ie.append("Content-Type","text/uri-list"),G.headers=ie;const ne=this.requestService.generateRequestId();return this.halService.getEndpoint(this.linkPath).pipe((0,i.U)(oe=>`${oe}?owningCollection=${k}`)).pipe((0,p.s)(oe=>(0,h.Uh)(oe)),(0,i.U)(oe=>{const ce=new D.xo(ne,oe,j._links.self.href,G);this.requestService.send(ce)})).subscribe(),this.rdbService.buildFromRequestUUID(ne)}getBitstreamsEndpoint(j){return this.halService.getEndpoint(this.linkPath).pipe((0,r.w)(k=>this.halService.getEndpoint("bitstreams",`${k}/${j}`)))}invalidateItemCache(j){this.requestService.setStaleByHrefSubstring("item/"+j)}commitUpdates(j){this.patchData.commitUpdates(j)}patch(j,k){return this.patchData.patch(j,k)}update(j){return this.patchData.update(j)}createPatchFromCache(j){return this.patchData.createPatchFromCache(j)}delete(j,k){return this.deleteData.delete(j,k)}deleteByHref(j,k){return this.deleteData.deleteByHref(j,k)}create(j,...k){return this.createData.create(j,...k)}}let ae=((K=class extends ee{constructor(j,k,G,ie,ne,q,oe,ce){super("items",j,k,G,ie,ne,q,oe,ce),this.requestService=j,this.rdbService=k,this.objectCache=G,this.halService=ie,this.notificationsService=ne,this.comparator=q,this.browseService=oe,this.bundleService=ce}}).\u0275fac=function(j){return new(j||K)(te.\u0275\u0275inject(l.s),te.\u0275\u0275inject(v.Q),te.\u0275\u0275inject(E.a),te.\u0275\u0275inject(O.q),te.\u0275\u0275inject(m.T),te.\u0275\u0275inject(P.o),te.\u0275\u0275inject(_.I),te.\u0275\u0275inject(C.b))},K.\u0275prov=te.\u0275\u0275defineInjectable({token:K,factory:K.\u0275fac}),K);ae=(0,t.__decorate)([(0,X.cQ)(b.B),(0,t.__metadata)("design:paramtypes",[l.s,v.Q,E.a,O.q,m.T,P.o,_.I,C.b])],ae)},1865:(R,c,e)=>{"use strict";e.d(c,{w:()=>M});var t=e(83639),n=e(62564),o=e(31241),i=e(43015),d=e(58943),r=e(93498),a=e(46418),p=e(27645),h=e(36391),m=e(63900),_=e(90697),v=e(72839),E=e(60210),O=e(94650);class b extends v.t{constructor(D,l,C,I,g,B){super("itemtemplates",D,l,C,I,void 0),this.requestService=D,this.rdbService=l,this.objectCache=C,this.halService=I,this.notificationsService=g,this.collectionService=B,this.createData=new E.K(void 0,D,l,C,I,g,this.responseMsToLive)}getIDHrefObs(D){return this.collectionService.getIDHrefObs(D).pipe((0,m.w)(l=>this.halService.getEndpoint("itemtemplate",l)))}createTemplate(D,l){return this.createData.createOnEndpoint(D,this.getIDHrefObs(l))}}let M=(()=>{class P extends t.N{constructor(l,C,I,g,B,L,V,Y,X){super("itemtemplates",l,C,I,g,B,L,V,Y),this.requestService=l,this.rdbService=C,this.objectCache=I,this.halService=g,this.notificationsService=B,this.comparator=L,this.browseService=V,this.bundleService=Y,this.collectionService=X,this.byCollection=new b(l,C,I,g,B,X)}findByCollectionID(l,C=!0,I=!0,...g){return this.byCollection.findById(l,C,I,...g)}createByCollectionID(l,C){return this.byCollection.createTemplate(l,C)}getCollectionEndpoint(l){return this.byCollection.getIDHrefObs(l)}}return P.\u0275fac=function(l){return new(l||P)(O.\u0275\u0275inject(o.s),O.\u0275\u0275inject(i.Q),O.\u0275\u0275inject(d.a),O.\u0275\u0275inject(r.q),O.\u0275\u0275inject(a.T),O.\u0275\u0275inject(n.o),O.\u0275\u0275inject(p.I),O.\u0275\u0275inject(_.b),O.\u0275\u0275inject(h.W))},P.\u0275prov=O.\u0275\u0275defineInjectable({token:P,factory:P.\u0275fac}),P})()},45715:(R,c,e)=>{"use strict";e.d(c,{P:()=>te});var t=e(31388),n=e(5164),o=e(94033),i=e(30576),d=e(77579),r=e(38421),a=e(54482),p=e(69751);const m={connector:()=>new d.x};var E=e(22529),O=e(37886),b=e(63269),M=e(50457),D=e(95698),l=e(54004),C=e(68675),I=e(71884),g=e(10088),B=e(4707),L=e(4177),V=e(68285),Y=e(31241),X=e(94650);let te=(()=>{class K{constructor(ae,Q,j){this.externalSourceService=ae,this.searchService=Q,this.requestService=j,this.singleResultOptions=Object.assign(new L.r,{id:"single-result-options",pageSize:1})}getLocalResults(ae,Q,j=!0){const k=Object.assign(new g.t({}),Q,{fixedFilter:ae.filter,configuration:ae.searchConfiguration});return j&&(this.searchConfig=k),this.searchService.search(k).pipe(function v(K,ee){const ae=(0,i.m)(K)?K:()=>K;return(0,i.m)(ee)?function _(K,ee=m){const{connector:ae}=ee;return(0,a.e)((Q,j)=>{const k=ae();(0,r.Xf)(K(function h(K){return new p.y(ee=>K.subscribe(ee))}(k))).subscribe(j),j.add(Q.subscribe(k))})}(ee,{connector:ae}):Q=>new o.c(Q,ae)}(()=>new B.t(1),G=>G.pipe((0,E.o)(ie=>ie.isLoading),function P(...K){const ee=(0,b.yG)(K);return(0,a.e)((ae,Q)=>{(0,O.u)()((0,M.D)([ae,...K],ee)).subscribe(Q)})}(G.pipe((0,D.q)(1))))))}getTotalLocalResults(ae,Q){return this.getLocalResults(ae,Object.assign(new g.t({}),Q,{pagination:this.singleResultOptions}),!1).pipe((0,V.g1)(),(0,V.xe)(),(0,l.U)(j=>j.totalElements),(0,C.O)(0))}getTotalExternalResults(ae,Q){return this.externalSourceService.getExternalSourceEntries(ae.id,Object.assign(new g.t({}),Q,{pagination:this.singleResultOptions})).pipe((0,V.g1)(),(0,V.xe)(),(0,l.U)(j=>j.totalElements),(0,C.O)(0),(0,I.x)())}removeLocalResultsCache(){this.searchService.getEndpoint().subscribe(ae=>this.requestService.removeByHrefSubstring(ae))}}return K.\u0275fac=function(ae){return new(ae||K)(X.\u0275\u0275inject(t.G),X.\u0275\u0275inject(n.o),X.\u0275\u0275inject(Y.s))},K.\u0275prov=X.\u0275\u0275defineInjectable({token:K,factory:K.\u0275fac}),K})()},55237:(R,c,e)=>{"use strict";e.d(c,{c:()=>C});var l,t=e(70655),n=e(24702),o=e(31241),i=e(43015),d=e(93498),r=e(5332),a=e(95698),p=e(81964),h=e(17481),m=e(99678),_=e(74187),v=e(60210),E=e(46418),O=e(58943),b=e(90330),M=e(72839),P=e(21147),D=e(94650);let C=((l=class extends M.t{constructor(g,B,L,V,Y){super("metadatafields",g,B,L,V),this.requestService=g,this.rdbService=B,this.objectCache=L,this.halService=V,this.notificationsService=Y,this.searchBySchemaLinkPath="bySchema",this.searchByFieldNameLinkPath="byFieldName",this.createData=new v.K(this.linkPath,g,B,L,V,Y,this.responseMsToLive),this.searchData=new m.l(this.linkPath,g,B,L,V,this.responseMsToLive),this.putData=new _.E(this.linkPath,g,B,L,V,this.responseMsToLive),this.deleteData=new b.R(this.linkPath,g,B,L,V,Y,this.responseMsToLive,this.constructIdEndpoint)}findBySchema(g,B={},L=!0,V=!0,...Y){const X=Object.assign(new h.R,B,{searchParams:[new p.g("schema",g.prefix)]});return this.searchBy(this.searchBySchemaLinkPath,X,L,V,...Y)}searchByFieldNameParams(g,B,L,V,Y,X={},te=!0,K=!0,...ee){const ae=Object.assign(new h.R,X,{searchParams:[new p.g("schema",(0,n.Uh)(g)?g:""),new p.g("element",(0,n.Uh)(B)?B:""),new p.g("qualifier",(0,n.Uh)(L)?L:""),new p.g("query",(0,n.Uh)(V)?V:""),new p.g("exactName",(0,n.Uh)(Y)?Y:"")]});return this.searchBy(this.searchByFieldNameLinkPath,ae,te,K,...ee)}findByExactFieldName(g){return this.searchByFieldNameParams(null,null,null,null,g,null)}clearRequests(){this.getBrowseEndpoint().pipe((0,a.q)(1)).subscribe(g=>{this.requestService.setStaleByHrefSubstring(g)})}delete(g,B){return this.deleteData.delete(g,B)}deleteByHref(g,B){return this.deleteData.deleteByHref(g,B)}put(g){return this.putData.put(g)}create(g,...B){return this.createData.create(g,...B)}searchBy(g,B,L,V,...Y){return this.searchData.searchBy(g,B,L,V,...Y)}}).\u0275fac=function(g){return new(g||l)(D.\u0275\u0275inject(o.s),D.\u0275\u0275inject(i.Q),D.\u0275\u0275inject(O.a),D.\u0275\u0275inject(d.q),D.\u
10275\u0275inject(E.T))},l.\u0275prov=D.\u0275\u0275defineInjectable({token:l,factory:l.\u0275fac}),l);C=(0,t.__decorate)([(0,P.cQ)(r.A),(0,t.__metadata)("design:paramtypes",[o.s,i.Q,O.a,d.q,E.T])],C)},39763:(R,c,e)=>{"use strict";e.d(c,{$:()=>D});var P,t=e(70655),n=e(46418),o=e(43015),i=e(58943),d=e(45394),r=e(93498),a=e(31241),p=e(24702),h=e(18505),m=e(74187),_=e(60210),v=e(53261),E=e(72839),O=e(90330),b=e(21147),M=e(94650);let D=((P=class extends E.t{constructor(C,I,g,B,L){super("metadataschemas",C,I,g,B),this.requestService=C,this.rdbService=I,this.objectCache=g,this.halService=B,this.notificationsService=L,this.createData=new _.K(this.linkPath,C,I,g,B,L,this.responseMsToLive),this.putData=new m.E(this.linkPath,C,I,g,B,this.responseMsToLive),this.deleteData=new O.R(this.linkPath,C,I,g,B,L,this.responseMsToLive,this.constructIdEndpoint),this.findAllData=new v.k(this.linkPath,C,I,g,B,this.responseMsToLive)}createOrUpdateMetadataSchema(C){return(0,p.Uh)(C.id)?this.putData.put(C):this.createData.create(C)}clearRequests(){return this.getBrowseEndpoint().pipe((0,h.b)(C=>this.requestService.removeByHrefSubstring(C)))}findAll(C,I,g,...B){return this.findAllData.findAll(C,I,g,...B)}delete(C,I){return this.deleteData.delete(C,I)}deleteByHref(C,I){return this.deleteData.deleteByHref(C,I)}}).\u0275fac=function(C){return new(C||P)(M.\u0275\u0275inject(a.s),M.\u0275\u0275inject(o.Q),M.\u0275\u0275inject(i.a),M.\u0275\u0275inject(r.q),M.\u0275\u0275inject(n.T))},P.\u0275prov=M.\u0275\u0275defineInjectable({token:P,factory:P.\u0275fac}),P);D=(0,t.__decorate)([(0,b.cQ)(d.B),(0,t.__metadata)("design:paramtypes",[a.s,o.Q,i.a,r.q,n.T])],D)},27639:(R,c,e)=>{"use strict";e.d(c,{B:()=>p});var t=e(47229),n=e(16445),o=e(24702),i=e(91992),d=e(79300),r=e(14273),a=e(94650);let p=(()=>{class h extends r.f8{parse(_,v){const O=v.payload._embedded.searchResult||{_embedded:{objects:[]}}
1,b=O._embedded.objects.map(l=>l.hitHighlights).map(l=>{const C={};if(l)for(const I of Object.keys(l)){const g=Object.assign(new d.DA,{value:l[I].join("..."),language:null});C[I]=[g]}return C}),M=O._embedded.objects.filter(l=>(0,o.Uh)(l._embedded)).map(l=>l._embedded.indexableObject).map(l=>this.process(l,_)).map(l=>l._links.self.href).reduce((l,C)=>[...l,...C],[]),P=O._embedded.objects.filter(l=>(0,o.Uh)(l._embedded)).map((l,C)=>Object.assign({},l,{indexableObject:M[C],hitHighlights:b[C],_embedded:this.filterEmbeddedObjects(l)}));O.objects=P;const D=new n.F(i.L).deserialize(O);return D.pageInfo=this.processPageInfo(O),this.addToObjectCache(D,_,v),new t.tp(v.statusCode,D._links.self)}filterEmbeddedObjects(_){const v=["submitter","item","workspaceitem","workflowitem"];return _._embedded.indexableObject&&_._embedded.indexableObject._embedded?Object.assign({},_._embedded,{indexableObject:Object.assign({},_._embedded.indexableObject,{_embedded:Object.keys(_._embedded.indexableObject._embedded).filter(E=>v.includes(E)).reduce((E,O)=>(E[O]=_._embedded.indexableObject._embedded[O],E),{})})}):_}}return h.\u0275fac=function(){let m;return function(v){return(m||(m=a.\u0275\u0275getInheritedFactory(h)))(v||h)}}(),h.\u0275prov=a.\u0275\u0275defineInjectable({token:h,factory:h.\u0275fac}),h})()},59051:(R,c,e)=>{"use strict";e.d(c,{m:()=>t});var t=(()=>{return(n=t||(t={}))[n.UPDATE=0]="UPDATE",n[n.ADD=1]="ADD",n[n.REMOVE=2]="REMOVE",t;var n})()},74199:(R,c,e)=>{"use strict";e.d(c,{CB:()=>h,Cf:()=>i,Fm:()=>_,M0:()=>d,No:()=>a,O3:()=>p,SM:()=>r,Vi:()=>n,Y7:()=>m,cT:()=>v,gI:()=>o});var t=e(79472);const n={INITIALIZE_FIELDS:(0,t.d)("dspace/core/cache/object-updates/INITIALIZE_FIELDS"),SET_EDITABLE_FIELD:(0,t.d)("dspace/core/cache/object-updates/SET_EDITABLE_FIELD"),SET_VALID_FIELD:(0,t.d)("dspace/core/cache/object-updates/SET_VALID_FIELD"),ADD_FIELD:(0,t.d)("dspace/core/cache/object-updates/ADD_FIELD"),SELECT_VIRTUAL_METADATA:(0,t.d)("dspace/core/cache/object-updates/SELECT_VIRTUAL_METADATA"),DISCARD:(0,t.d)("dspace/core/cache/object-updates/DISCARD"),REINSTATE:(0,t.d)("dspace/core/cache/object-updates/REINSTATE"),REMOVE:(0,t.d)("dspace/core/cache/object-updates/REMOVE"),REMOVE_ALL:(0,t.d)("dspace/core/cache/object-updates/REMOVE_ALL"),REMOVE_FIELD:(0,t.d)("dspace/core/cache/object-updates/REMOVE_FIELD")};class o{constructor(O,b,M,P){this.type=n.INITIALIZE_FIELDS,this.payload={url:O,fields:b,lastModified:M,patchOperationService:P}}}class i{constructor(O,b,M){this.type=n.ADD_FIELD,this.payload={url:O,field:b,changeType:M}}}class d{constructor(O,b,M,P){this.type=n.SELECT_VIRTUAL_METADATA,this.payload={url:O,source:b,uuid:M,select:P}}}class r{constructor(O,b,M){this.type=n.SET_EDITABLE_FIELD,this.payload={url:O,uuid:b,editable:M}}}class a{constructor(O,b,M){this.type=n.SET_VALID_FIELD,this.payload={url:O,uuid:b,isValid:M}}}class p{constructor(O,b,M=!1){this.type=n.DISCARD,this.payload={url:O,notification:b,discardAll:M}}}class h{constructor(O){this.type=n.REINSTATE,this.payload={url:O}}}class m{constructor(O){this.type=n.REMOVE,this.payload={url:O}}}class _{constructor(){this.type=n.REMOVE_ALL}}class v{constructor(O,b){this.type=n.REMOVE_FIELD,this.payload={url:O,uuid:b}}}},4807:(R,c,e)=>{"use strict";e.d(c,{F:()=>i,Q:()=>p});var t=e(74199),n=e(24702),o=e(59051);const i="/trash",d={editable:!1,isNew:!1,isValid:!0},r={editable:!0,isNew:!0,isValid:void 0},a=Object.create(null);function p(B=a,L){switch(L.type){case t.Vi.INITIALIZE_FIELDS:return function h(B,L){const V=L.payload.url,X=L.payload.lastModified,te=L.payload.patchOperationService,K=function g(B){const L=B.map(Y=>Y.uuid),V={};return L.forEach(Y=>V[Y]=d),V}(L.payload.fields),ee=Object.assign({},B[V],{fieldStates:K},{fieldUpdates:{}},{virtualMetadataSources:{}},{lastModified:X},{patchOperationService:te});return Object.assign({},B,{[V]:ee})}(B,L);case t.Vi.ADD_FIELD:return function m(B,L){const V=L.payload.url,Y=L.payload.field,X=L.payload.changeType,te=B[V]||{fieldUpdates:{}};let K=te.fieldStates;X===o.m.ADD&&(K=Object.assign({},{[Y.uuid]:r},te.fieldStates));let ee=te.fieldUpdates[Y.uuid]||{};const ae=function l(B,L){return(0,n.xI)(L)?B:(0,n.xI)(B)?L:B.valueOf()>L.valueOf()?B:L}(ee.changeType,X);ee=Object.assign({},{field:Y,changeType:ae});const Q=Object.assign({},te.fieldUpdates,{[Y.uuid]:ee}),j=Object.assign({},te,{fieldStates:K},{fieldUpdates:Q});return Object.assign({},B,{[V]:j})}(B,L);case t.Vi.SELECT_VIRTUAL_METADATA:return function _(B,L){const V=L.payload.url,Y=L.payload.source,K=B[V]||{},ee=Object.assign({},K.virtualMetadataSources[Y],{[L.payload.uuid]:L.payload.select}),ae=Object.assign({},K.virtualMetadataSources,{[Y]:ee}),Q=Object.assign({},K,{virtualMetadataSources:ae});return Object.assign({},B,{[V]:Q})}(B,L);case t.Vi.DISCARD:return function v(B,L){if(L.payload.discardAll){let V=Object.assign({},B);return Object.keys(B).filter(Y=>
1!Y.endsWith(i)).forEach(Y=>{V=E(Y,V)}),V}return E(L.payload.url,B)}(B,L);case t.Vi.REINSTATE:return function O(B,L){const V=L.payload.url,X=Object.assign({},B,{[V]:B[V+i]});return delete X[V+i],X}(B,L);case t.Vi.REMOVE:return function b(B,L){return function M(B,L){const V=Object.assign({},B);return delete V[L+i],V}(B,L.payload.url)}(B,L);case t.Vi.REMOVE_ALL:return function P(B){const L=Object.assign({},B);return Object.keys(B).filter(V=>V.endsWith(i)).forEach(V=>{delete L[V]}),L}(B);case t.Vi.REMOVE_FIELD:return function D(B,L){const V=L.payload.url,Y=L.payload.uuid;let X=B[V];if((0,n.Uh)(X)){const te=Object.assign({},X.fieldUpdates);(0,n.Uh)(te[Y])&&delete te[Y];const K=Object.assign({},X.fieldStates);(0,n.Uh)(K[Y])&&(K[Y].isNew?delete K[Y]:K[Y]=Object.assign({},K[Y],{editable:!1,isValid:!0})),X=Object.assign({},B[V],{fieldUpdates:te,fieldStates:K})}return Object.assign({},B,{[V]:X})}(B,L);case t.Vi.SET_EDITABLE_FIELD:return function C(B,L){const V=L.payload.url,Y=L.payload.uuid,te=B[V],ee=Object.assign({},te.fieldStates[Y],{editable:L.payload.editable}),ae=Object.assign({},te.fieldStates,{[Y]:ee}),Q=Object.assign({},te,{fieldStates:ae});return Object.assign({},B,{[V]:Q})}(B,L);case t.Vi.SET_VALID_FIELD:return function I(B,L){const V=L.payload.url,Y=L.payload.uuid,te=B[V],ee=Object.assign({},te.fieldStates[Y],{isValid:L.payload.isValid}),ae=Object.assign({},te.fieldStates,{[Y]:ee}),Q=Object.assign({},te,{fieldStates:ae});return Object.assign({},B,{[V]:Q})}(B,L);default:return B}}function E(B,L){const V=L[B],Y={};Object.keys(V.fieldStates).forEach(te=>{const K=V.fieldStates[te];K.isNew||(Y[te]=Object.assign({},K,{editable:!1,isValid:!0}))});const X=Object.assign({},V,{fieldUpdates:{},fieldStates:Y});return Object.assign({},L,{[B]:X},{[B+i]:V})}},46040:(R,c,e)=>{"use strict";e.d(c,{d:()=>P});var t=e(89653),n=e(1588),o=e(4807),i=e(74199),d=e(63900),r=e(54004),a=e(39300),p=e(71884),h=e(95698),m=e(24702),_=e(59051),v=e(94650);function O(D){return(0,t.P1)(function E(){return(0,t.P1)(n.v,D=>D["cache/object-updates"])}(),l=>l[D])}let P=(()=>{class D{constructor(C,I){this.store=C,this.injector=I}initialize(C,I,g,B){this.store.dispatch(new i.gI(C,I,g,B))}saveFieldUpdate(C,I,g){this.store.dispatch(new i.Cf(C,I,g))}getObjectEntry(C){return this.store.pipe((0,t.Ys)(O(C)))}getFieldState(C,I){return this.store.pipe((0,t.Ys)(function b(D,l){return(0,t.P1)(O(D),C=>C.fieldStates[l])}(C,I)))}getFieldUpdates(C,I,g){return this.getObjectEntry(C).pipe((0,d.w)(L=>{const V={};return(0,m.Uh)(L)&&Object.keys(g?L.fieldUpdates:L.fieldStates).forEach(Y=>{V[Y]=L.fieldUpdates[Y]}),this.getFieldUpdatesExclusive(C,I).pipe((0,r.U)(Y=>(Object.keys(Y).forEach(X=>{V[X]=Y[X]}),V)))}))}getFieldUpdatesExclusive(C,I){return this.getObjectEntry(C).pipe((0,m.tz)(),(0,r.U)(B=>{const L={};for(const V of I){let Y=B.fieldUpdates[V.uuid];(0,m.xb)(Y)&&(Y={field:V,changeType:void 0}),L[V.uuid]=Y}return L}))}isEditable(C,I){return this.getFieldState(C,I).pipe((0,a.h)(B=>(0,m.Uh)(B)),(0,r.U)(B=>B.editable),(0,p.x)())}isValid(C,I){return this.getFieldState(C,I).pipe((0,a.h)(B=>(0,m.Uh)(B)),(0,r.U)(B=>B.isValid),(0,p.x)())}isValidPage(C){return this.getObjectEntry(C).pipe((0,r.U)(g=>Object.values(g.fieldStates).findIndex(B=>!B.isValid)<0),(0,p.x)())}saveAddFieldUpdate(C,I){const g=this.getFieldUpdatesExclusive(C,[I]).pipe((0,a.h)(B=>B[I.uuid].changeType===_.m.ADD),(0,h.q)(1),(0,r.U)(()=>!0));return this.saveFieldUpdate(C,I,_.m.ADD),g}saveRemoveFieldUpdate(C,I){const g=this.getFieldUpdatesExclusive(C,[I]).pipe((0,a.h)(B=>B[I.uuid].changeType===_.m.REMOVE),(0,h.q)(1),(0,r.U)(()=>!0));return this.saveFieldUpdate(C,I,_.m.REMOVE),g}saveChangeFieldUpdate(C,I){this.saveFieldUpdate(C,I,_.m.UPDATE)}isSelectedVirtualMetadata(C,I,g){return this.store.pipe((0,t.Ys)(function M(D,l){return(0,t.P1)(O(D),C=>C.virtualMetadataSources[l])}(C,I)),(0,r.U)(B=>B&&B[g]))}setSelectedVirtualMetadata(C,I,g,B){this.store.dispatch(new i.M0(C,I,g,B))}setEditableFieldUpdate(C,I,g){this.store.dispatch(new i.SM(C,I,g))}setValidFieldUpdate(C,I,g){this.store.dispatch(new i.No(C,I,g))}discardFieldUpdates(C,I){this.store.dispatch(new i.O3(C,I))}discardAllFieldUpdates(C,I){this.store.dispatch(new i.O3(C,I,!0))}reinstateFieldUpdates(C){this.store.dispatch(new i.CB(C))}removeSingleFieldUpdate(C,I){this.store.dispatch(new i.cT(C,I))}getUpdatedFields(C,I){return this.getObjectEntry(C).pipe((0,r.U)(B=>{const L=[];
1return Object.keys(B.fieldStates).forEach(V=>{const Y=B.fieldUpdates[V];if((0,m.xI)(Y)||Y.changeType!==_.m.REMOVE){let X;X=(0,m.UE)(Y)?Y.field:I.find(te=>te.uuid===V),L.push(X)}}),L}))}hasUpdates(C){return this.getObjectEntry(C).pipe((0,r.U)(I=>(0,m.Uh)(I)&&(0,m.UE)(I.fieldUpdates)))}isReinstatable(C){return this.hasUpdates(C+o.F)}getLastModified(C){return this.getObjectEntry(C).pipe((0,r.U)(I=>I.lastModified))}createPatch(C){return this.getObjectEntry(C).pipe((0,r.U)(I=>{let g=[];return(0,m.Uh)(I.patchOperationService)&&(g=this.injector.get(I.patchOperationService).fieldUpdatesToPatchOperations(I.fieldUpdates)),g}))}}return D.\u0275fac=function(C){return new(C||D)(v.\u0275\u0275inject(t.yh),v.\u0275\u0275inject(v.Injector))},D.\u0275prov=v.\u0275\u0275defineInjectable({token:D,factory:D.\u0275fac}),D})()},24789:(R,c,e)=>{"use strict";e.d(c,{b:()=>_,l:()=>v});var m,t=e(70655),n=e(62713),o=e(24702),i=e(19782),d=e(473),r=e(3879),a=e(63037),p=e(29923),h=e(93490);const _=(E,O,b=!1,M)=>{const P=new v;let D;return(0,o.xI)(E)&&(E=new n.S),P.pageInfo=E,(0,o.xb)(O)?D=[]:(D=O.map(l=>(0,o.Uh)(l)&&(0,o.Uh)(l._links)&&(0,o.Uh)(l._links.self)?l._links.self:null),D.every(l=>(0,o.xI)(l))&&(D=void 0)),P._links=Object.assign({},M,E._links,{page:D}),(!b||(0,o.o8)(D))&&(P.page=O),P};let v=((m=class extends h.X{constructor(){super(...arguments),this.type=d.j}get elementsPerPage(){return(0,o.Uh)(this.pageInfo)&&(0,o.Uh)(this.pageInfo.elementsPerPage)?this.pageInfo.elementsPerPage:this.getPageLength()}set elementsPerPage(O){this.pageInfo.elementsPerPage=O}get totalElements(){return(0,o.Uh)(this.pageInfo)&&(0,o.Uh)(this.pageInfo.totalElements)?this.pageInfo.totalElements:this.getPageLength()}set totalElements(O){this.pageInfo.totalElements=O}get totalPages(){return(0,o.Uh)(this.pageInfo)&&(0,o.Uh)(this.pageInfo.totalPages)?this.pageInfo.totalPages:1}set totalPages(O){this.pageInfo.totalPages=O}get currentPage(){return(0,o.Uh)(this.pageInfo)&&(0,o.Uh)(this.pageInfo.currentPage)?this.pageInfo.currentPage:1}set currentPage(O){this.pageInfo.currentPage=O}get first(){if((0,o.Uh)(this._links.first)&&(0,o.Uh)(this._links.first.href))return this._links.first.href}set first(O){this._links.first={href:O},this.pageInfo._links.first={href:O}}get prev(){if((0,o.Uh)(this._links.prev)&&(0,o.Uh)(this._links.prev.href))return this._links.prev.href}set prev(O){this._links.prev={href:O},this.pageInfo._links.prev={href:O}}get next(){if((0,o.Uh)(this._links.next)&&(0,o.Uh)(this._links.next.href))return this._links.next.href}set next(O){this._links.next={href:O},this.pageInfo._links.next={href:O}}get last(){if((0,o.Uh)(this._links.last)&&(0,o.Uh)(this._links.last.href))return this._links.last.href}set last(O){this._links.last={href:O},this.pageInfo._links.last={href:O}}get self(){return this._links.self.href}set self(O){this._links.self={href:O},this.pageInfo._links.self={href:O}}getPageLength(){return Array.isArray(this.page)?this.page.length:0}}).type=d.j,m);(0,t.__decorate)([a.OJ,(0,t.__metadata)("design:type",Object)],v.prototype,"type",void 0),(0,t.__decorate)([p.autoserialize,(0,t.__metadata)("design:type",r._)],v.prototype,"objectType",void 0),(0,t.__decorate)([p.autoserialize,(0,t.__metadata)("design:type",n.S)],v.prototype,"pageInfo",void 0),(0,t.__decorate)([p.deserialize,(0,t.__metadata)("design:type",Object)],v.prototype,"_links",void 0),v=(0,t.__decorate)([i.KB],v)},473:(R,c,e)=>{"use strict";e.d(c,{j:()=>n});const n=new(e(3879)._)("paginated-list")},82269:(R,c,e)=>{"use strict";e.d(c,{n:()=>M});var b,t=e(70655),n=e(31241),o=e(43015),i=e(58943),d=e(93498),r=e(88550),a=e(63900),p=e(48532),h=e(72839),m=e(53261),_=e(21147),v=e(90330),E=e(46418),O=e(94650);let M=((b=class extends h.t{constructor(D,l,C,I,g,B){super("processes",D,l,C,I),this.requestService=D,this.rdbService=l,this.objectCache=C,this.halService=I,this.bitstreamDataService=g,this.notificationsService=B,this.findAllData=new m.k(this.linkPath,D,l,C,I,this.responseMsToLive),this.deleteData=new v.R(this.linkPath,D,l,C,I,B,this.responseMsToLive,this.constructIdEndpoint)}getFilesEndpoint(D){return this.getBrowseEndpoint().pipe((0,a.w)(l=>this.halService.getEndpoint("files",`${l}/${D}`)))}getFiles(D){const l=this.getFilesEndpoint(D);return this.bitstreamDataService.findListByHref(l)}findAll(D,l,C,...I){return this.findAllData.findAll(D,l,C,...I)}delete(D,l){return this.deleteData.delete(D,l)}
1deleteByHref(D,l){return this.deleteData.deleteByHref(D,l)}}).\u0275fac=function(D){return new(D||b)(O.\u0275\u0275inject(n.s),O.\u0275\u0275inject(o.Q),O.\u0275\u0275inject(i.a),O.\u0275\u0275inject(d.q),O.\u0275\u0275inject(p.J),O.\u0275\u0275inject(E.T))},b.\u0275prov=O.\u0275\u0275defineInjectable({token:b,factory:b.\u0275fac}),b);M=(0,t.__decorate)([(0,_.cQ)(r.d),(0,t.__metadata)("design:paramtypes",[n.s,o.Q,i.a,d.q,p.J,E.T])],M)},47556:(R,c,e)=>{"use strict";e.d(c,{As:()=>D,BW:()=>l,Q_:()=>I,UY:()=>g,rI:()=>C});var P,t=e(70655),n=e(43015),o=e(58943),i=e(93498),d=e(95698),r=e(54004),a=e(23631),p=e(25130),h=e(31241),m=e(52410),_=e(24702),v=e(68285),E=e(72839),O=e(53261),b=e(21147),M=e(94650);const D="metadata-import",l="metadata-export",C="import",I="export";let g=((P=class extends E.t{constructor(L,V,Y,X){super("scripts",L,V,Y,X),this.requestService=L,this.rdbService=V,this.objectCache=Y,this.halService=X,this.findAllData=new O.k(this.linkPath,L,V,Y,X,this.responseMsToLive)}invoke(L,V,Y){const X=this.requestService.generateRequestId();return this.getBrowseEndpoint().pipe((0,d.q)(1),(0,r.U)(te=>new a.R(te,L,"processes").toString()),(0,r.U)(te=>{const K=this.getInvocationFormData(V,Y);return new p.xO(X,te,K)})).subscribe(te=>this.requestService.send(te)),this.rdbService.buildFromRequestUUID(X)}getInvocationFormData(L,V){const Y=new FormData;return Y.set("properties",JSON.stringify(L)),V.forEach(X=>{Y.append("file",X)}),Y}scriptWithNameExistsAndCanExecute(L){return this.findById(L).pipe((0,v.hC)(),(0,r.U)(V=>(0,_.Uh)(V.payload)))}findAll(L,V,Y,...X){return this.findAllData.findAll(L,V,Y,...X)}}).\u0275fac=function(L){return new(L||P)(M.\u0275\u0275inject(h.s),M.\u0275\u0275inject(n.Q),M.\u0275\u0275inject(o.a),M.\u0275\u0275inject(i.q))},P.\u0275prov=M.\u0275\u0275defineInjectable({token:P,factory:P.\u0275fac}),P);g=(0,t.__decorate)([(0,b.cQ)(m.x),(0,t.__metadata)("design:paramtypes",[h.s,n.Q,o.a,i.q])],g)},88002:(R,c,e)=>{"use strict";e.d(c,{U:()=>_t});var ye,t=e(70655),n=e(80529),o=e(89653),i=e(39841),d=e(39646),r=e(54004),a=e(95698),p=e(71884),h=e(63900),m=e(18505),_=e(39300),v=e(68675),E=e(86099),O=e(4900),b=e(27239),M=e(24702),P=e(61353),D=e(93369),l=e(43015),C=e(81964),I=e(58943),g=e(93498),B=e(11316),L=e(37983),V=e(68285),Y=e(83639),X=e(25130),te=e(31241),K=e(81554),ee=e(85292),ae=e(17481),Q=e(99678),j=e(74187),k=e(72839),G=e(21147),ie=e(49454),ne=e(77415),q=e(27869),oe=e(63645),ce=e(94650);const Me=It=>It.relationshipLists,Ee=It=>(0,b.GY)(It,Me),Je=It=>it=>it.pipe((0,V.Gp)(),(0,r.U)(Be=>Be.uuid===It.uuid));let _t=((ye=class extends k.t{constructor(it,Be,Xe,pt,Mt,Yt,nt,mt){super("relationships",it,Be,pt,Xe,9e5),this.requestService=it,this.rdbService=Be,this.halService=Xe,this.objectCache=pt,this.itemService=Mt,this.appStore=Yt,this.paginatedRelationsToItems=nt,this.appConfig=mt,this.searchData=new Q.l(this.linkPath,it,Be,pt,Xe,this.responseMsToLive),this.putData=new j.E(this.linkPath,it,Be,pt,Xe,this.responseMsToLive)}getRelationshipEndpoint(it){return this.getBrowseEndpoint().pipe((0,r.U)(Be=>`${Be}/${it}`))}deleteRelationship(it,Be,Xe=!0){return this.getRelationshipEndpoint(it).pipe((0,M.iy)(),(0,a.q)(1),(0,p.x)(),(0,r.U)(pt=>new X.jx(this.requestService.generateRequestId(),pt+"?copyVirtualMetadata="+Be)),(0,ee.wG)(this.requestService),(0,h.w)(pt=>this.rdbService.buildFromRequestUUID(pt.uuid)),(0,V.hC)(),(0,m.b)(()=>{Xe&&this.refreshRelationshipItemsInCacheByRelationship(it)}))}addRelationship(it,Be,Xe,pt,Mt,Yt=!0){const nt=Object.create({});let mt=new n.WM;
1return mt=mt.append("Content-Type","text/uri-list"),nt.headers=mt,this.halService.getEndpoint(this.linkPath).pipe((0,M.iy)(),(0,a.q)(1),(0,r.U)(en=>`${en}?relationshipType=${it}`),(0,r.U)(en=>(0,M.UE)(pt)?`${en}&leftwardValue=${pt}`:en),(0,r.U)(en=>(0,M.UE)(Mt)?`${en}&rightwardValue=${Mt}`:en),(0,r.U)(en=>new X.xo(this.requestService.generateRequestId(),en,`${Be.self} \n ${Xe.self}`,nt)),(0,ee.wG)(this.requestService),(0,h.w)(en=>this.rdbService.buildFromRequestUUID(en.uuid)),(0,V.hC)(),(0,m.b)(()=>{Yt&&(this.refreshRelationshipItemsInCache(Be),this.refreshRelationshipItemsInCache(Xe))}))}refreshRelationshipItemsInCacheByRelationship(it){this.findById(it,!0,!1,(0,D.l)("leftItem"),(0,D.l)("rightItem")).pipe((0,V.xw)(),(0,V.xe)(),(0,h.w)(Be=>(0,i.a)(Be.leftItem.pipe((0,V.xw)(),(0,V.xe)()),Be.rightItem.pipe((0,V.xw)(),(0,V.xe)()))),(0,a.q)(1)).subscribe(([Be,Xe])=>{this.refreshRelationshipItemsInCache(Be),this.refreshRelationshipItemsInCache(Xe)})}refreshRelationshipItemsInCache(it){this.objectCache.remove(it._links.self.href),this.requestService.removeByHrefSubstring(it.uuid),(0,i.a)([this.objectCache.hasByHref$(it._links.self.href),this.requestService.hasByHref$(it.self)]).pipe((0,_.h)(([Be,Xe])=>!Be&&!Xe),(0,a.q)(1)).subscribe(()=>this.itemService.findByHref(it._links.self.href))}getItemRelationshipsArray(it,...Be){return this.findListByHref(it._links.relationships.href,void 0,!0,!1,...Be).pipe((0,V.xw)(),(0,V.xe)(),(0,r.U)(Xe=>Xe.page),(0,M.tz)(),(0,p.x)((0,O.be)()))}getRelationshipTypeLabelsByItem(it){return this.getItemRelationshipsArray(it,(0,D.l)("leftItem"),(0,D.l)("rightItem"),(0,D.l)("relationshipType")).pipe((0,h.w)(Be=>(0,i.a)(Be.map(Xe=>this.getRelationshipTypeLabelByRelationshipAndItem(Xe,it)))),(0,r.U)(Be=>Array.from(new Set(Be))))}getRelationshipTypeLabelByRelationshipAndItem(it,Be){return it.leftItem.pipe((0,V.xw)(),(0,r.U)(Xe=>Xe.payload),(0,h.w)(Xe=>it.relationshipType.pipe((0,V.xw)(),(0,r.U)(pt=>pt.payload),(0,r.U)(pt=>Xe.uuid===Be.uuid?pt.leftwardType:pt.rightwardType))))}getRelatedItems(it){return this.getItemRelationshipsArray(it,(0,D.l)("leftItem"),(0,D.l)("rightItem"),(0,D.l)("relationshipType")).pipe((0,O._U)(it.uuid))}getRelatedItemsByLabel(it,Be,Xe){let pt=(0,ie.IX)(Xe.fetchThumbnail,this.appConfig.item.showAccessStatuses);return pt.push((0,D.l)("relationshipType")),this.getItemRelationshipsByLabel(it,Be,Xe,!0,!0,...pt).pipe(this.paginatedRelationsToItems(it.uuid))}getItemRelationshipsByLabel(it,Be,Xe,pt=!0,Mt=!0,...Yt){let nt=new ae.R;Xe&&(nt=Object.assign(new ae.R,Xe));const mt=[new C.g("label",Be),new C.g("dso",it.id)];nt.searchParams=nt.searchParams?[...nt.searchParams,...mt]:mt;const en=this.searchBy("byLabel",nt,pt,!1,...Yt);return this.addDependency(en,it._links.self.href),en.pipe(this.reRequestStaleRemoteData(Mt,()=>this.getItemRelationshipsByLabel(it,Be,Xe,pt,Mt,...Yt)))}getRelationshipsByRelatedItemIds(it,Be){return this.getItemRelationshipsArray(it,(0,D.l)("leftItem"),(0,D.l)("rightItem")).pipe((0,h.w)(Xe=>(0,i.a)(Xe.map(pt=>{const Mt=this.isItemInUUIDArray(pt.leftItem,Be),Yt=this.isItemInUUIDArray(pt.rightItem,Be);return(0,i.a)([Mt,Yt]).pipe((0,_.h)(([nt,mt])=>nt||mt),(0,r.U)(()=>pt),(0,v.O)(void 0))}))),(0,r.U)(Xe=>Xe.filter(pt=>(0,M.Uh)(pt))))}isItemInUUIDArray(it,Be){return it.pipe((0,V.xw)(),(0,r.U)(Xe=>Xe.payload),(0,r.U)(Xe=>Be.includes(Xe.uuid)))}getRelationshipByItemsAndLabel(it,Be,Xe,pt){return this.getItemRelationshipsByLabel(it,Xe,pt,!0,!1,(0,D.l)("relationshipType"),(0,D.l)("leftItem"),(0,D.l)("rightItem")).pipe((0,V.xw)(),(0,E.z)(Mt=>Mt.payload.page),(0,E.z)(Mt=>(0,i.a)([this.itemService.findByHref(Mt._links.leftItem.href).pipe(Je(Be)),this.itemService.findByHref(Mt._links.rightItem.href).pipe(Je(Be))]).pipe((0,r.U)(([Yt,nt])=>Yt||nt),(0,r.U)(Yt=>Yt?Mt:void 0))),(0,_.h)(Mt=>(0,M.Uh)(Mt)),(0,a.q)(1))}setNameVariant(it,Be,Xe){this.appStore.dispatch(new P.Yj(it,Be,Xe))}
1getNameVariant(it,Be){return this.appStore.pipe((0,o.Ys)(((It,it)=>(0,b.GY)(it,Ee(It)))(it,Be)))}removeNameVariant(it,Be){this.appStore.dispatch(new P.Cg(it,Be))}getNameVariantsByListID(it){return this.appStore.pipe((0,o.Ys)(Ee(it)))}updateNameVariant(it,Be,Xe,pt){return this.getRelationshipByItemsAndLabel(it,Be,Xe).pipe((0,h.w)(Mt=>Mt.relationshipType.pipe((0,V.xw)(),(0,V.xe)(),(0,r.U)(Yt=>({relation:Mt,type:Yt})))),(0,h.w)(Mt=>{const{relation:Yt,type:nt}=Mt;let mt;return mt=Object.assign(new B.W,Yt,Xe===nt.leftwardType?{rightwardValue:pt}:{leftwardValue:pt}),this.update(mt)}))}isLeftItem(it,Be){return it.leftItem.pipe((0,V.xw)(),(0,V.xe)(),(0,_.h)(Xe=>(0,M.Uh)(Xe)&&(0,M.UE)(Xe.uuid)),(0,r.U)(Xe=>Xe.uuid===Be.uuid))}updatePlace(it){let Be;Be=Object.assign(new B.W,it.relationship,it.useLeftItem?{rightPlace:it.newIndex}:{leftPlace:it.newIndex});const Xe=this.update(Be);return Xe.pipe((0,_.h)(pt=>pt.state===K.q$.ResponsePending),(0,a.q)(1)).subscribe(pt=>{pt.state===K.q$.ResponsePending&&this.refreshRelationshipItemsInCacheByRelationship(it.relationship.id)}),Xe}update(it){return this.putData.put(it)}searchByItemsAndType(it,Be,Xe,pt){const Mt=[new C.g("typeId",it),new C.g("focusItem",Be),new C.g("relationshipLabel",Xe),new C.g("size",pt.length),new C.g("embed","leftItem"),new C.g("embed","rightItem")];pt.forEach(nt=>{Mt.push(new C.g("relatedItem",nt))});const Yt=this.searchBy("byItemsAndType",{searchParams:Mt});return pt.forEach(nt=>{this.addDependency(Yt,this.itemService.getIDHrefObs(encodeURIComponent(nt)))}),Yt}searchBy(it,Be,Xe,pt,...Mt){return this.searchData.searchBy(it,Be,Xe,pt,...Mt)}resolveMetadataRepresentation(it,Be,Xe){return it.isVirtual?this.findById(it.virtualValue,!0,!1,(0,D.l)("leftItem"),(0,D.l)("rightItem")).pipe((0,V.xw)(),(0,h.w)(pt=>(0,i.a)(pt.payload.leftItem,pt.payload.rightItem).pipe((0,_.h)(([Mt,Yt])=>Mt.hasCompleted&&Yt.hasCompleted),(0,r.U)(([Mt,Yt])=>Mt.hasSucceeded&&Yt.hasSucceeded?Yt.hasSucceeded&&Mt.payload.id===Be.id?Yt.payload:Yt.payload.id===Be.id?Mt.payload:void 0:null),(0,r.U)(Mt=>(0,M.Uh)(Mt)?Object.assign(new q.A(it),Mt):Object.assign(new ne.S(Xe),it))))):(0,d.of)(Object.assign(new ne.S(Xe),it))}}).\u0275fac=function(it){return new(it||ye)(ce.\u0275\u0275inject(te.s),ce.\u0275\u0275inject(l.Q),ce.\u0275\u0275inject(g.q),ce.\u0275\u0275inject(I.a),ce.\u0275\u0275inject(Y.S),ce.\u0275\u0275inject(o.yh),ce.\u0275\u0275inject(O.bg),ce.\u0275\u0275inject(oe.q))},ye.\u0275prov=ce.\u0275\u0275defineInjectable({token:ye,factory:ye.\u0275fac}),ye);_t=(0,t.__decorate)([(0,G.cQ)(L.Y),(0,t.__metadata)("design:paramtypes",[te.s,l.Q,g.q,I.a,Y.S,o.yh,Function,Object])],_t)},67357:(R,c,e)=>{"use strict";e.d(c,{X:()=>Y});var L,t=e(70655),n=e(67688),o=e(60515),i=e(70207),d=e(50457),r=e(39841),a=e(86099),p=e(32518),h=e(54004),m=e(24702),_=e(93369),v=e(43015),E=e(93498),O=e(88241),b=e(68285),M=e(31241),P=e(76715),D=e(53261),l=e(99678),C=e(58943),I=e(21147),g=e(81964),B=e(94650);const V=(X,te)=>X.hasSucceeded&&X.payload.label===te;let Y=((L=class extends P.B{constructor(te,K,ee,ae){super("relationshiptypes",te,K,ee,ae),this.requestService=te,this.rdbService=K,this.objectCache=ee,this.halService=ae,this.searchData=new l.l(this.linkPath,te,K,ee,ae,this.responseMsToLive),this.findAllData=new D.k(this.linkPath,te,K,ee,ae,this.responseMsToLive)}getRelationshipTypeByLabelAndTypes(te,K,ee){return this.findAllData.findAll({currentPage:1,elementsPerPage:20},!0,!0,(0,_.l)("leftType"),(0,_.l)("rightType")).pipe((0,b.xw)(),(0,n.j)(Q=>{const j=Q.payload.pageInfo.currentPage;return j<Q.payload.pageInfo.totalPages?this.findAllData.findAll({currentPage:j+1,elementsPerPage:20},!0,!0,(0,_.l)("leftType"),(0,_.l)("rightType")).pipe((0,b.xw)()):o.E}),(0,i.u)((Q,j)=>Q.concat(j.payload.page),[]),(0,a.z)(Q=>(0,d.D)(Q)),(0,a.z)(Q=>Q.leftwardType===te?this.checkType(Q,K,ee):Q.rightwardType===te?this.checkType(Q,ee,K):[null]),(0,p.q)(),(0,h.U)(Q=>{const j=Q.find(k=>(0,m.Uh)(k));return(0,m.Uh)(j)?j:null}))}checkType(te,K,ee){return(0,r.a)([te.leftType.pipe((0,b.hC)()),te.rightType.pipe((0,b.hC)())]).pipe((0,h.U)(([ae,Q])=>V(ae,K)&&V(Q,ee)?te:null))}searchByEntityType(te,K=!0,ee=!0,...ae){return this.searchData.searchBy("byEntityType",{searchParams:[new g.g("type",te),new g.g("size",100)]},K,ee,...ae).pipe((0,b.xw)(),(0,b.xe)())}}).\u0275fac=function(te){return new(te||L)(B.\u0275\u0275inject(M.s),B.\u0275\u0275inject(v.Q),B.\u0275\u0275inject(C.a),B.\u0275\u0275inject(E.q))},L.\u0275prov=B.\u0275\u0275defineInjectable({token:L,factory:L.\u0275fac}),L);Y=(0,t.__decorate)([(0,I.cQ)(O.b),(0,t.__metadata)("design:paramtypes",[M.s,v.Q,C.a,E.q])],Y)},15600:(R,c,e)=>{"use strict";e.d(c,{N:()=>n});var t=e(81554);class n{constructor(i,d,r,a,p,h,m){this.timeCompleted=i,this.msToLive=d,this.lastUpdated=r,this.state=a,this.errorMessage=p,this.payload=h,this.statusCode=m}get isRequestPending(){return(0,t.tj)(this.state)}get isResponsePending(){return(0,t.vs)(this.state)}get isError(){return(0,t.VZ)(this.state)}get isSuccess(){return(0,t.d6)(this.state)}get isErrorStale(){return(0,t.IZ)(this.state)}get isSuccessStale(){return(0,t.BD)(this.state)}get isLoading(){return(0,t.hg)(this.state)}get hasFailed(){return(0,t.uw)(this.state)}get hasSucceeded(){return(0,t.F0)(this.state)}get hasCompleted(){return(0,t.wJ)(this.state)}get isStale(){return(0,t._T)(this.state)}get hasNoContent(){return 204===this.statusCode}}},81554:(R,c,e)=>{"use strict";e.d(c,{BD:()=>r,F0:()=>_,IZ:()=>d,VZ:()=>o,_T:()=>E,d6:()=>i,hg:()=>h,q$:()=>t,tj:()=>n,uw:()=>m,vs:()=>a,wJ:()=>v});var t=(()=>{return(O=t||(t={})).RequestPending="RequestPending",O.ResponsePending="ResponsePending",O.Error="Error",O.Success="Success",O.ResponsePendingStale="ResponsePendingStale",O.ErrorStale="ErrorStale",O.SuccessStale="SuccessStale",t;var O})();const n=O=>O===t.RequestPending,o=O=>O===t.Error,i=O=>O===t.Success,d=O=>O===t.ErrorStale,r=O=>O===t.SuccessStale,a=O=>O===t.ResponsePending,p=O=>O===t.ResponsePendingStale,h=O=>n(O)||a(O)||p(O),m=O=>
1{if(!h(O))return o(O)||d(O)},_=O=>{if(!h(O))return i(O)||r(O)},v=O=>!h(O),E=O=>p(O)||r(O)||d(O)},12229:(R,c,e)=>{"use strict";e.d(c,{Ku:()=>r,NH:()=>i,S1:()=>n,YT:()=>h,_9:()=>d,eu:()=>p,kg:()=>a});var t=e(79472);const n={CONFIGURE:(0,t.d)("dspace/core/data/request/CONFIGURE"),EXECUTE:(0,t.d)("dspace/core/data/request/EXECUTE"),SUCCESS:(0,t.d)("dspace/core/data/request/SUCCESS"),ERROR:(0,t.d)("dspace/core/data/request/ERROR"),STALE:(0,t.d)("dspace/core/data/request/STALE"),RESET_TIMESTAMPS:(0,t.d)("dspace/core/data/request/RESET_TIMESTAMPS"),REMOVE:(0,t.d)("dspace/core/data/request/REMOVE")};class o{constructor(){this.lastUpdated=(new Date).getTime()}}class i extends o{constructor(v){super(),this.type=n.CONFIGURE,this.payload=v}}class d extends o{constructor(v){super(),this.type=n.EXECUTE,this.payload=v}}class r extends o{constructor(v,E,O,b){super(),this.type=n.SUCCESS,this.payload={uuid:v,timeCompleted:(new Date).getTime(),statusCode:E,link:O,unCacheableObject:b}}}class a extends o{constructor(v,E,O){super(),this.type=n.ERROR,this.payload={uuid:v,timeCompleted:(new Date).getTime(),statusCode:E,errorMessage:O}}}class p extends o{constructor(v){super(),this.type=n.STALE,this.payload={uuid:v}}}class h{constructor(v){this.type=n.RESET_TIMESTAMPS,this.payload=v}}},25130:(R,c,e)=>{"use strict";e.d(c,{OR:()=>ae,UU:()=>oe,Fo:()=>q,Vb:()=>ye,jx:()=>X,Xe:()=>j,Gl:()=>B,fT:()=>I,xO:()=>V,w1:()=>Ae,_x:()=>ee,xo:()=>L,an:()=>Y,Wd:()=>G,c:()=>ie,Ai:()=>ne,X0:()=>k,zP:()=>Ee,Pv:()=>Me,d0:()=>ce});var t=e(22093),n=e(34690),o=e(63881),i=e(83774),d=e(8623),r=e(21540);class a{constructor(_t,It,it=o.a.GET,Be,Xe){this.uuid=_t,this.href=It,this.method=it,this.body=Be,this.options=Xe,this.responseMsToLive=r.N.cache.msToLive.default,this.isMultipart=!1}}class p extends a{}var h=e(14273),m=e(58943),_=e(24702),v=e(51619),E=e(88822),O=e(57490),b=e(1923),M=e(31053),P=e(85963),D=e(63472),l=e(94650);let C=(()=>{class Je extends h.f8{constructor(It){super(It),this.objectCache=It}deserialize(It){const it=It.browseType;if(It.type===M.S.value&&(0,_.Uh)(it)){let Be;if(it===v.B.value)Be=new this.serializerConstructor(O.q);else if(it===E.E.value)Be=new this.serializerConstructor(b.R);else{if(it!==D.C.value)throw new Error("An error occurred while retrieving the browse definitions.");Be=new this.serializerConstructor(P.w)}return Be.deserialize(It)}throw new Error("An error occurred while retrieving the browse definitions.")}}return Je.\u0275fac=function(It){return new(It||Je)(l.\u0275\u0275inject(m.a))},Je.\u0275prov=l.\u0275\u0275defineInjectable({token:Je,factory:Je.\u0275fac,providedIn:"root"}),Je})();var I=(()=>{return(Je=I||(I={})).UUID="uuid",Je.HANDLE="handle",I;var Je})();class g extends p{getResponseParser(){return h.f8}}class B extends g{constructor(_t,It,it,Be){super(_t,It,o.a.GET,it,Be),this.uuid=_t,this.href=It,this.body=it,this.options=Be}}class L extends g{constructor(_t,It,it,Be){super(_t,It,o.a.POST,it),this.uuid=_t,this.href=It,this.body=it,this.options=Be}}class V extends g{constructor(_t,It,it,Be){super(_t,It,o.a.POST,it),this.uuid=_t,this.href=It,this.body=it,this.options=Be,this.isMultipart=!0}}class Y extends g{constructor(_t,It,it,Be){super(_t,It,o.a.PUT,it),this.uuid=_t,this.href=It,this.body=it,this.options=Be}}class X extends g{constructor(_t,It,it,Be){super(_t,It,o.a.DELETE,it),this.uuid=_t,this.href=It,this.body=it,this.options=Be}}class ee extends g{constructor(_t,It,it,Be){super(_t,It,o.a.PATCH,it),this.uuid=_t,this.href=It,this.body=it,this.options=Be}}class ae extends g{getResponseParser(){return C}}class j extends B{getResponseParser(){return t.q}}class k extends B{constructor(_t,It){super(_t,It)}getResponseParser(){return n.pw}}class G extends X{constructor(_t,It){super(_t,It),this.uuid=_t,this.href=It}getResponseParser(){return n.pw}}class ie extends ee{constructor(_t,It,it){super(_t,It,it),this.uuid=_t,this.href=It,this.body=it}getResponseParser(){return n.pw}}class ne extends L{constructor(_t,It,it,Be){super(_t,It,it,Be),this.uuid=_t,this.href=It,this.body=it,this.options=Be}getResponseParser(){return n.pw}}class q extends L{constructor(_t,It,it,Be){super(_t,It,it,Be),this.body=it,this.options=Be}}class oe extends B{constructor(_t,It){super(_t,It)}getResponseParser(){return d.F}}class ce extends Y{constructor(_t,It,it,Be){super(_t,It,it,Be),this.body=it,this.options=Be}getResponseParser(){return d.F}}class ye extends X{constructor(_t,It,it){super(_t,It),this.resourceID=it}}class Me extends L{constructor(_t,It,it,Be){super(_t,It,it,Be),this.body=it,this.options=Be}getResponseParser(){return i.T}}class Ee extends X{constructor(_t,It,it,Be){super(_t,It,it,Be),this.body=it,this.options=Be}getResponseParser(){return i.T}}class Ae extends B{constructor(){super(...arguments),this.responseMsToLive=1e4}}},31241:(R,c,e)=>{"use strict";e.d(c,{s:()=>ee});var t=e(80529),n=e(89653),o=e(50457),i=e(95698),d=e(54004),r=e(18505),a=e(63900),p=e(86099),h=e(40367),m=e(32518),_=e(39300),v=e(90733),E=e.n(v),O=e(24702),b=e(58943),M=e(61306),P=e(12229),D=e(76123),l=e(63881),C=e(1588),I=e(81554),g=e(94650),B=e(18205);const L=(0,n.P1)(C.v,ae=>ae["data/request"]),K=ae=>{if((0,O.xI)(ae))return!1;if((0,I.hg)(ae.state))return!0;
1if((0,I._T)(ae.state))return!1;{const Q=ae.response.timeCompleted+ae.request.responseMsToLive;return!((new Date).getTime()>Q)}};let ee=(()=>{class ae{constructor(j,k,G){this.objectCache=j,this.uuidService=k,this.store=G,this.requestsOnTheirWayToTheStore=[]}generateRequestId(){return`client/${this.uuidService.generate()}`}isPending(j){if(j.method!==l.a.GET)return!1;if(this.requestsOnTheirWayToTheStore.includes(j.href))return!0;let k=!1;return this.getByHref(j.href).pipe((0,i.q)(1)).subscribe(G=>{k=(0,O.Uh)(G)&&(0,I.hg)(G.state)&&!(0,I._T)(G.state)}),k}getByUUID(j){return this.store.pipe((0,n.Ys)((ae=>(0,n.P1)(L,Q=>(0,O.Uh)(Q)?Q[ae]:void 0))(j)),this.fixRequestHeaders(),this.checkStale())}fixRequestHeaders(){return j=>j.pipe((0,d.U)(k=>((0,O.Uh)(k)&&(0,O.Uh)(k.request)&&(0,O.Uh)(k.request.options)&&(0,O.Uh)(k.request.options.headers)&&((k=E()(k)).request.options.headers=Object.assign(new t.WM,k.request.options.headers)),k)))}checkStale(){return j=>j.pipe((0,r.b)(k=>{(0,O.Uh)(k)&&(0,O.Uh)(k.request)&&!(0,I._T)(k.state)&&!K(k)&&this.store.dispatch(new P.eu(k.request.uuid))}))}getByHref(j){return this.store.pipe((0,n.Ys)((ae=>(0,n.P1)(M.mv,L,(Q,j)=>{let k;if((0,O.Uh)(Q))return k=Q[(0,M.z2)(ae)],(0,O.Uh)(j)?j[k]:void 0}))(j)),this.fixRequestHeaders(),this.checkStale())}send(j,k=!1){return k&&j.method!==l.a.GET&&console.warn(`${JSON.stringify(j,null,2)} is not a GET request. In general only GET requests should reuse cached data.`),!!this.shouldDispatchRequest(j,k)&&(this.dispatchRequest(j),j.method===l.a.GET&&this.trackRequestsOnTheirWayToTheStore(j),!0)}uriEncodeBody(j){let k="";return(0,O.UE)(j)&&"object"==typeof j&&Object.keys(j).forEach(G=>{const ie=encodeURIComponent(G);if(Array.isArray(j[G]))for(const ne of j[G]){const oe=`${ie}=${encodeURIComponent(ne)}`;k=(0,O.xb)(k)?k.concat(oe):k.concat("&",oe)}else{const q=`${ie}=${encodeURIComponent(j[G])}`;k=(0,O.xb)(k)?k.concat(q):k.concat("&",q)}}),k}removeByHrefSubstring(j){return this.setStaleByHrefSubstring(j)}setStaleByHrefSubstring(j){const k=this.store.pipe((0,n.Ys)(((ae,Q)=>(0,n.P1)(ae,j=>((ae,Q)=>{let j=[];return(0,O.UE)(ae)&&(j=Object.keys(ae).filter(k=>k.includes(Q)).map(k=>ae[k])),j})(j,Q)))(M.mv,j)),(0,i.q)(1));return k.subscribe(G=>{for(const ie of G)this.store.dispatch(new P.eu(ie))}),this.requestsOnTheirWayToTheStore=this.requestsOnTheirWayToTheStore.filter(G=>G.indexOf(j)<0),k.pipe((0,a.w)(G=>(0,O.xb)(G)?[!0]:(0,o.D)(G).pipe((0,p.z)(ie=>this.getByUUID(ie)),(0,d.U)(ie=>(0,O.xI)(ie)||(0,I._T)(ie.state)),(0,h.s)(ie=>!0===ie),(0,m.q)(),(0,d.U)(()=>!0))))}setStaleByUUID(j){return this.store.dispatch(new P.eu(j)),this.getByUUID(j).pipe((0,d.U)(k=>(0,I._T)(k.state)),(0,_.h)(k=>k),(0,i.q)(1))}setStaleByHref(j){const k=this.getByHref(j);return k.pipe((0,d.U)(G=>G.request.uuid),(0,i.q)(1)).subscribe(G=>{this.store.dispatch(new P.eu(G))}),k.pipe((0,d.U)(G=>(0,I._T)(G.state)),(0,_.h)(G=>G),(0,i.q)(1))}shouldDispatchRequest(j,k){if(j.method!==l.a.GET)return!0;if(this.isPending(j))return!1;if(k){const G=(0,M.z2)(j.href);if(!0===this.hasByHref(G))return!1;{let ie=!1;return this.objectCache.getByHref(G).subscribe(ne=>{ie=this.hasByUUID(ne.requestUUIDs[0])}).unsubscribe(),!ie}}return!0}dispatchRequest(j){this.store.dispatch(new P.NH(j)),this.store.dispatch(new P._9(j.uuid))}trackRequestsOnTheirWayToTheStore(j){this.requestsOnTheirWayToTheStore=[...this.requestsOnTheirWayToTheStore,j.href],this.getByHref(j.href).pipe((0,_.h)(k=>(0,O.Uh)(k)&&(0,O.Uh)(k.request)&&k.request.uuid===j.uuid),(0,i.q)(1)).subscribe(k=>{this.requestsOnTheirWayToTheStore=this.requestsOnTheirWayToTheStore.filter(G=>G!==j.href)})}commit(j){this.store.dispatch(new D.aH(j))}hasByHref(j,k=!0){let G=!1;return this.hasByHref$(j,k).subscribe(ie=>G=ie).unsubscribe(),G}hasByHref$(j,k=!0){return this.getByHref(j).pipe((0,d.U)(G=>k?K(G):(0,O.Uh)(G)))}hasByUUID(j,k=!0){let G=!1;return this.hasByUUID$(j,k).subscribe(ie=>G=ie).unsubscribe(),G}hasByUUID$(j,k=!0){return this.getByUUID(j).pipe((0,d.U)(G=>k?K(G):(0,O.Uh)(G)))}}return ae.\u0275fac=function(j){return new(j||ae)(g.\u0275\u0275inject(b.a),g.\u0275\u0275inject(B._),g.\u0275\u0275inject(n.yh)
1)},ae.\u0275prov=g.\u0275\u0275defineInjectable({token:ae,factory:ae.\u0275fac,providedIn:"root"}),ae})()},63881:(R,c,e)=>{"use strict";e.d(c,{a:()=>t});var t=(()=>{return(n=t||(t={})).GET="GET",n.POST="POST",n.PUT="PUT",n.DELETE="DELETE",n.OPTIONS="OPTIONS",n.HEAD="HEAD",n.PATCH="PATCH",t;var n})()},8322:(R,c,e)=>{"use strict";e.d(c,{d:()=>b});var O,t=e(70655),n=e(42983),o=e(31241),i=e(43015),d=e(93498),r=e(39646),a=e(70262),p=e(54004),h=e(76715),m=e(58943),_=e(21147),v=e(68285),E=e(94650);let b=((O=class extends h.B{constructor(P,D,l,C){super("",P,D,l,C,216e5),this.requestService=P,this.rdbService=D,this.objectCache=l,this.halService=C}checkServerAvailability(){return this.findRoot().pipe((0,a.K)(P=>(console.error(P),(0,r.of)(!1))),(0,v.hC)(),(0,p.U)(P=>200===P.statusCode))}findRoot(P=!0,D=!0,...l){return this.findByHref(this.halService.getRootHref(),P,D,...l)}invalidateRootCache(){this.requestService.setStaleByHref(this.halService.getRootHref())}}).\u0275fac=function(P){return new(P||O)(E.\u0275\u0275inject(o.s),E.\u0275\u0275inject(i.Q),E.\u0275\u0275inject(m.a),E.\u0275\u0275inject(d.q))},O.\u0275prov=E.\u0275\u0275defineInjectable({token:O,factory:O.\u0275fac}),O);b=(0,t.__decorate)([(0,_.cQ)(n.D),(0,t.__metadata)("design:paramtypes",[o.s,i.Q,m.a,d.q])],b)},42983:(R,c,e)=>{"use strict";e.d(c,{D:()=>n});const n=new(e(3879)._)("root")},26434:(R,c,e)=>{"use strict";e.d(c,{g:()=>p});var t=e(24702),n=e(91992),o=e(47229),i=e(16445),d=e(79300),r=e(14273),a=e(94650);let p=(()=>{class h extends r.f8{parse(_,v){const O=v.payload._embedded.searchResult||{_embedded:{objects:[]}};O.appliedFilters=v.payload.appliedFilters,O.sort=v.payload.sort,O.scope=v.payload.scope,O.configuration=v.payload.configuration;
1const b=O._embedded.objects.map(l=>l.hitHighlights).map(l=>{const C={};if(l)for(const I of Object.keys(l)){const g=Object.assign(new d.DA,{value:l[I].join("..."),language:null});C[I]=[g]}return C}),M=O._embedded.objects.filter(l=>(0,t.Uh)(l._embedded)).map(l=>l._embedded.indexableObject).map(l=>this.process(l,_)).map(l=>l._links.self.href).reduce((l,C)=>[...l,C],[]),P=O._embedded.objects.filter(l=>(0,t.Uh)(l._embedded)).map((l,C)=>Object.assign({},l,{indexableObject:M[C],hitHighlights:b[C]}));O.objects=P;const D=new i.F(n.L).deserialize(O);return D.pageInfo=this.processPageInfo(O),this.addToObjectCache(D,_,v),new o.tp(v.statusCode,D._links.self)}}return h.\u0275fac=function(){let m;return function(v){return(m||(m=a.\u0275\u0275getInheritedFactory(h)))(v||h)}}(),h.\u0275prov=a.\u0275\u0275defineInjectable({token:h,factory:h.\u0275fac}),h})()},23380:(R,c,e)=>{"use strict";e.d(c,{a:()=>O});var E,t=e(70655),n=e(54004),o=e(43015),i=e(93498),d=e(68285),r=e(25604),a=e(31241),p=e(76715),h=e(53261),m=e(58943),_=e(21147),v=e(94650);let O=((E=class extends p.B{constructor(M,P,D,l){super("sites",M,P,D,l),this.requestService=M,this.rdbService=P,this.objectCache=D,this.halService=l,this.findAllData=new h.k(this.linkPath,M,P,D,l,this.responseMsToLive)}find(){return this.findAll().pipe((0,d.xw)(),(0,n.U)(M=>M.payload),(0,n.U)(M=>M.page[0]))}findAll(M,P,D,...l){return this.findAllData.findAll(M,P,D,...l)}}).\u0275fac=function(M){return new(M||E)(v.\u0275\u0275inject(a.s),v.\u0275\u0275inject(o.Q),v.\u0275\u0275inject(m.a),v.\u0275\u0275inject(i.q))},E.\u0275prov=v.\u0275\u0275defineInjectable({token:E,factory:E.\u0275fac}),E);O=(0,t.__decorate)([(0,_.cQ)(r.E),(0,t.__metadata)("design:paramtypes",[a.s,o.Q,m.a,i.q])],O)},57244:(R,c,e)=>{"use strict";e.d(c,{o:()=>o});var t=e(47229),n=e(94650);let o=(()=>{class i{parse(r,a){return new t.iq(a.statusCode>=200&&a.statusCode<300,a.statusCode,a.statusText)}}return i.\u0275fac=function(r){return new(r||i)},i.\u0275prov=n.\u0275\u0275defineInjectable({token:i,factory:i.\u0275fac,providedIn:"root"}),i})()},28870:(R,c,e)=>{"use strict";e.d(c,{C:()=>M});var b,t=e(70655),n=e(31241),o=e(43015),i=e(58943),d=e(93498),r=e(72839),a=e(53261),p=e(21147),h=e(46418),m=e(60210),_=e(95109),v=e(74187),E=e(99678),O=e(94650);let M=((b=class extends r.t{constructor(D,l,C,I,g){super("systemwidealerts",D,l,C,I),this.requestService=D,this.rdbService=l,this.objectCache=C,this.halService=I,this.notificationsService=g,this.findAllData=new a.k(this.linkPath,D,l,C,I,this.responseMsToLive),this.createData=new m.K(this.linkPath,D,l,C,I,g,this.responseMsToLive),this.putData=new v.E(this.linkPath,D,l,C,I,this.responseMsToLive),this.searchData=new E.l(this.linkPath,D,l,C,I,this.responseMsToLive)}findAll(D,l,C,...I){return this.findAllData.findAll(D,l,C,...I)}create(D,...l){return this.createData.create(D,...l)}put(D){return this.putData.put(D)}searchBy(D,l,C,I,...g){return this.searchData.searchBy(D,l,C,I,...g)}}).\u0275fac=function(D){return new(D||b)(O.\u0275\u0275inject(n.s),O.\u0275\u0275inject(o.Q),O.\u0275\u0275inject(i.a),O.\u0275\u0275inject(d.q),O.\u0275\u0275inject(h.T))},b.\u0275prov=O.\u0275\u0275defineInjectable({token:b,factory:b.\u0275fac}),b);M=(0,t.__decorate)([(0,p.cQ)(_.s),(0,t.__metadata)("design:paramtypes",[n.s,o.Q,i.a,d.q,h.T])],M)},6164:(R,c,e)=>{"use strict";e.d(c,{_:()=>l});var D,t=e(70655),n=e(31241),o=e(43015),i=e(58943),d=e(93498),r=e(60515),a=e(14407),p=e(93369),h=e(68285),m=e(63900),_=e(54004),v=e(24702),E=e(74508),O=e(71761),b=e(72839),M=e(21147),P=e(94650);let l=((D=class extends b.t{constructor(I,g,B,L,V){super("versions",I,g,B,L),this.requestService=I,this.rdbService=g,this.objectCache=B,this.halService=L,this.comparator=V,this.patchData=new E.B(this.linkPath,I,g,B,L,V,this.responseMsToLive,this.constructIdEndpoint)}getHistoryFromVersion(I,g=!1,B=!0){return(0,v.UE)(I)?this.findById(I.id,g,B,(0,p.l)("versionhistory")).pipe((0,h.Gp)(),(0,m.w)(L=>L.versionhistory),(0,h.Gp)()):r.E}getHistoryIdFromVersion(I){return this.getHistoryFromVersion(I).pipe((0,_.U)(g=>g.id))}patch(I,g){return this.patchData.patch(I,g)}update(I){return this.patchData.update(I)}commitUpdates(I){this.patchData.commitUpdates(I)}createPatchFromCache(I){return this.patchData.createPatchFromCache(I)}}).\u0275fac=function(I){return new(I||D)(P.\u0275\u0275inject(n.s),P.\u0275\u0275inject(o.Q),P.\u0275\u0275inject(i.a),P.\u0275\u0275inject(d.q),P.\u0275\u0275inject(O.v))},D.\u0275prov=P.\u0275\u0275defineInjectable({token:D,factory:D.\u0275fac}),D);l=(0,t.__decorate)([(0,M.cQ)(a.q),(0,t.__metadata)("design:paramtypes",[n.s,o.Q,i.a,d.q,O.v])],l)},65120:(R,c,e)=>{"use strict";e.d(c,{Q:()=>Y});var V,t=e(70655),n=e(31241),o=e(43015),i=e(58943),d=e(93498),r=e(80529),a=e(25130),p=e(39841),h=e(39646),m=e(10088),_=e(63900),v=e(54004),E=e(95698),O=e(40367),b=e(39300),M=e(96569),P=e(93369),D=e(6164),l=e(68285),C=e(4177),I=e(24702),g=e(72839),B=e(21147),L=e(94650);let Y=((V=class extends g.t{constructor(te,K,ee,ae,Q){super("versionhistories",te,K,ee,ae),this.requestService=te,this.rdbService=K,this.objectCache=ee,this.halService=ae,this.versionDataService=Q,this.versionsEndpoint="versions"}getBrowseEndpoint(te={},K){return this.halService.getEndpoint(this.linkPath)}getVersionsEndpoint(te){return this.getBrowseEndpoint().pipe((0,_.w)(K=>this.halService.getEndpoint(this.versionsEndpoint,`${K}/${te}`)))}getVersions(te,K,ee=!0,ae=!0,...Q){const j=this.getVersionsEndpoint(te).pipe((0,v.U)(k=>K?K.toRestUrl(k):k));return this.versionDataService.findListByHref(j,void 0,ee,ae,...Q)}createVersion(te,K){const ee=this.requestService.generateRequestId(),ae=Object.create({});let Q=new r.WM;
1return Q=Q.append("Content-Type","text/uri-list"),ae.headers=Q,this.halService.getEndpoint(this.versionsEndpoint).pipe((0,E.q)(1),(0,v.U)(j=>K?.length>0?`${j}?summary=${K}`:`${j}`),(0,O.s)(j=>(0,I.Uh)(j))).subscribe(j=>{const k=new a.xo(ee,j,te,ae);(0,I.Uh)(this.responseMsToLive)&&(k.responseMsToLive=this.responseMsToLive),this.requestService.send(k)}),this.rdbService.buildFromRequestUUIDAndAwait(ee,j=>(0,p.a)([this.requestService.setStaleByHrefSubstring(j.payload._links.self.href),this.requestService.setStaleByHrefSubstring(j.payload._links.versionhistory.href)])).pipe((0,l.hC)())}getLatestVersionFromHistory$(te){const K=Object.assign(new C.r,{id:"item-newest-version-options",currentPage:1,pageSize:1}),ee=new m.t({pagination:K});return this.getVersions(te.id,ee,!1,!0,(0,P.l)("item")).pipe((0,l.g1)(),(0,l.xe)(),(0,I.tz)(),(0,b.h)(ae=>ae.page.length>0),(0,v.U)(ae=>ae.page[0]))}getLatestVersion$(te){return te.id?this.versionDataService.findById(te.id,!1,!0,(0,P.l)("versionhistory")).pipe((0,l.Gp)(),(0,_.w)(K=>K.versionhistory),(0,l.Gp)(),(0,_.w)(K=>this.getLatestVersionFromHistory$(K))):(0,h.of)(null)}isLatest$(te){return te?this.getLatestVersion$(te).pipe((0,E.q)(1),(0,_.w)(K=>(0,h.of)(te.version===K.version))):(0,h.of)(null)}hasDraftVersion$(te){return this.versionDataService.findByHref(te,!1,!0,(0,P.l)("versionhistory")).pipe((0,l.hC)(),(0,_.w)(K=>K.hasSucceeded&&!K.hasNoContent&&(0,I.Uh)(K.payload)?K.payload.versionhistory.pipe((0,l.hC)(),(0,v.U)(ee=>!(!ee.hasSucceeded||ee.hasNoContent)&&ee.payload.draftVersion)):(0,h.of)(!1)))}getLatestVersionItemFromHistory$(te){return this.getLatestVersionFromHistory$(te).pipe((0,_.w)(K=>K.item),(0,l.Gp)())}getVersionHistoryFromVersion$(te){return this.versionDataService.getHistoryIdFromVersion(te).pipe((0,E.q)(1),(0,_.w)(K=>this.findById(K)),(0,l.Gp)())}invalidateVersionHistoryCache(te){this.requestService.setStaleByHrefSubstring("versioning/versionhistories/"+te)}}).\u0275fac=function(te){return new(te||V)(L.\u0275\u0275inject(n.s),L.\u0275\u0275inject(o.Q),L.\u0275\u0275inject(i.a),L.\u0275\u0275inject(d.q),L.\u0275\u0275inject(D._))},V.\u0275prov=L.\u0275\u0275defineInjectable({token:V,factory:V.\u0275fac}),V);Y=(0,t.__decorate)([(0,B.cQ)(M.h),(0,t.__metadata)("design:paramtypes",[n.s,o.Q,i.a,d.q,D._])],Y)},69113:(R,c,e)=>{"use strict";e.d(c,{Q:()=>_});var m,t=e(70655),n=e(31241),o=e(43015),i=e(58943),d=e(93498),r=e(42853),a=e(21147),p=e(72839),h=e(94650);let _=((m=class extends p.t{constructor(E,O,b,M){super("workflowactions",E,O,b,M),this.requestService=E,this.rdbService=O,this.objectCache=b,this.halService=M,this.linkPath="workflowactions"}}).\u0275fac=function(E){return new(E||m)(h.\u0275\u0275inject(n.s),h.\u0275\u0275inject(o.Q),h.\u0275\u0275inject(i.a),h.\u0275\u0275inject(d.q))},m.\u0275prov=h.\u0275\u0275defineInjectable({token:m,factory:m.\u0275fac}),m);_=(0,t.__decorate)([(0,a.cQ)(r.j),(0,t.__metadata)("design:paramtypes",[n.s,o.Q,i.a,d.q])],_)},94621:(R,c,e)=>{"use strict";e.d(c,{Y:()=>h});var t=e(62843),n=e(54004),o=e(70262),i=e(80529),d=e(63881),r=e(24702),a=e(94650);const p="application/json; charset=utf-8";let h=(()=>{class m{constructor(v){this.http=v}get(v){const E={observe:"response",headers:new i.WM({"Content-Type":p})};return this.http.get(v,E).pipe((0,n.U)(O=>({payload:O.body,statusCode:O.status,statusText:O.statusText})),(0,o.K)(O=>(console.log("Error: ",O),(0,t._)({statusCode:O.status,statusText:O.statusText,message:(0,r.Uh)(O.error)&&(0,r.UE)(O.error.message)?O.error.message:O.message}))))}request(v,E,O,b,M){const P={};return P.body=O,v===d.a.POST&&(0,r.UE)(O)&&(0,r.UE)(O.name)&&(P.body=this.buildFormData(O)),P.observe="response",b&&b.responseType&&(P.responseType=b.responseType),P.headers=(0,r.xI)(b)||(0,r.xI)(b.headers)?new i.WM:b.headers,b&&b.params&&(P.params=b.params),b&&b.withCredentials&&(P.withCredentials=b.withCredentials),!P.headers.has("Content-Type")&&!M&&(P.headers=P.headers.set("Content-Type",p)),this.http.request(v,E,P).pipe((0,n.U)(D=>({payload:D.body,headers:D.headers,statusCode:D.status,statusText:D.statusText})),(0,o.K)(D=>(0,r.Uh)(D.status)?(0,t._)({statusCode:D.status,statusText:D.statusText,message:(0,r.Uh)(D.error)&&(0,r.UE)(D.error.message)?D.error.message:D.message}):(0,t._)(D)))}buildFormData(v){const E=new FormData;if(E.append("name",v.name),v.metadata)for(const O of Object.keys(v.metadata))for(const b of v.allMetadataValues(O))E.append(O,b);return E}}return m.\u0275fac=function(v){return new(v||m)(a.\u0275\u0275inject(i.eN))},m.\u0275prov=a.\u0275\u0275defineInjectable({token:m,factory:m.\u0275fac}),m})()},16445:(R,c,e)=>{"use strict";e.d(c,{F:()=>n});var t=e(29923);class n{constructor(i){this.modelType=i}serialize(i){return(0,t.Serialize)(i,this.modelType)}serializeArray(i){return(0,t.Serialize)(i,this.modelType)}deserialize(i){if(Array.isArray(i))throw new Error("Expected a single model, use deserializeArray() instead");
1return(0,t.Deserialize)(i,this.modelType)}deserializeArray(i){if(!Array.isArray(i))throw new Error("Expected an Array, use deserialize() instead");return(0,t.Deserialize)(i,this.modelType)}}},48547:(R,c,e)=>{"use strict";e.d(c,{A:()=>i});var t=e(39646),n=e(12691),o=e(21540);class i{constructor(r){this.router=r}canActivate(r,a){return o.N.info.enableEndUserAgreement?this.hasAccepted().pipe((0,n.R5)(this.router,a.url)):(0,t.of)(!0)}}},15402:(R,c,e)=>{"use strict";e.d(c,{J:()=>r});var t=e(48547),n=e(39646),o=e(58876),i=e(94650),d=e(34793);let r=(()=>{class a extends t.A{constructor(h,m){super(m),this.endUserAgreementService=h,this.router=m}hasAccepted(){return(0,n.of)(this.endUserAgreementService.isCookieAccepted())}}return a.\u0275fac=function(h){return new(h||a)(i.\u0275\u0275inject(o.u4),i.\u0275\u0275inject(d.F0))},a.\u0275prov=i.\u0275\u0275defineInjectable({token:a,factory:a.\u0275fac}),a})()},85665:(R,c,e)=>{"use strict";e.d(c,{J:()=>a});var t=e(39646),n=e(48547),o=e(58876),i=e(21540),d=e(94650),r=e(34793);let a=(()=>{class p extends n.A{constructor(m,_){super(_),this.endUserAgreementService=m,this.router=_}hasAccepted(){return i.N.info.enableEndUserAgreement?this.endUserAgreementService.hasCurrentUserAcceptedAgreement(!0):(0,t.of)(!0)}}return p.\u0275fac=function(m){return new(m||p)(d.\u0275\u0275inject(o.u4),d.\u0275\u0275inject(r.F0))},p.\u0275prov=d.\u0275\u0275defineInjectable({token:p,factory:p.\u0275fac}),p})()},58876:(R,c,e)=>{"use strict";e.d(c,{DJ:()=>v,u4:()=>E});var t=e(24755),n=e(57388),o=e(39646),i=e(63900),d=e(54004),r=e(95698),a=e(24702),p=e(45061),h=e(68285),m=e(94650);const _="hasAgreedEndUser",v="dspace.agreements.end-user";let E=(()=>{class O{constructor(M,P,D){this.cookie=M,this.authService=P,this.ePersonService=D}hasCurrentUserOrCookieAcceptedAgreement(M){return this.isCookieAccepted()?(0,o.of)(!0):this.hasCurrentUserAcceptedAgreement(M)}hasCurrentUserAcceptedAgreement(M){return this.authService.isAuthenticated().pipe((0,i.w)(P=>P?this.authService.getAuthenticatedUserFromStore().pipe((0,d.U)(D=>(0,a.Uh)(D)&&D.hasMetadata(v)&&"true"===D.firstMetadata(v).value)):(0,o.of)(M)))}setUserAcceptedAgreement(M){return this.authService.isAuthenticated().pipe((0,i.w)(P=>P?this.authService.getAuthenticatedUserFromStore().pipe((0,r.q)(1),(0,i.w)(D=>{const l={value:String(M)};let C;return C=D.hasMetadata(v)?{op:"replace",path:`/metadata/${v}/0`,value:l}:{op:"add",path:`/metadata/${v}`,value:[l]},this.ePersonService.patch(D,[C])}),(0,h.hC)(),(0,d.U)(D=>D.hasSucceeded)):(this.setCookieAccepted(M),(0,o.of)(!0))),(0,r.q)(1))}isCookieAccepted(){return!0===this.cookie.get(_)}setCookieAccepted(M){this.cookie.set(_,M)}removeCookieAccepted(){this.cookie.remove(_)}}return O.\u0275fac=function(M){return new(M||O)(m.\u0275\u0275inject(n.N),m.\u0275\u0275inject(t.e8),m.\u0275\u0275inject(p.k))},O.\u0275prov=m.\u0275\u0275defineInjectable({token:O,factory:O.\u0275fac}),O})()},45061:(R,c,e)=>{"use strict";e.d(c,{k:()=>j});var ee,t=e(70655),n=e(89653),o=e(54004),i=e(95698),d=e(40367),r=e(79642),a=e(24702),p=e(46418),h=e(43015),m=e(81964),_=e(58943),v=e(62564),E=e(24789),O=e(15600),b=e(25130),M=e(31241),P=e(93498),D=e(68285),l=e(71508),C=e(62713),I=e(17481),g=e(60210),B=e(72839),L=e(99678),V=e(74508),Y=e(90330),X=e(21147),te=e(92414),K=e(94650);const Q=(0,n.P1)(k=>k.epeopleRegistry,k=>k.editEPerson);let j=((ee=class extends B.t{constructor(G,ie,ne,q,oe,ce,ye){super("epersons",G,ie,ne,q),this.requestService=G,this.rdbService=ie,this.objectCache=ne,this.halService=q,this.comparator=oe,this.notificationsService=ce,this.store=ye,this.searchByEmailPath="byEmail",this.searchByMetadataPath="byMetadata",this.createData=new g.K(this.linkPath,G,ie,ne,q,ce,this.responseMsToLive),this.searchData=new L.l(this.linkPath,G,ie,ne,q,this.responseMsToLive),this.patchData=new V.B(this.linkPath,G,ie,ne,q,oe,this.responseMsToLive,this.constructIdEndpoint),this.deleteData=new Y.R(this.linkPath,G,ie,ne,q,ce,this.responseMsToLive,this.constructIdEndpoint)}searchByScope(G,ie,ne={},q){switch(G){case"metadata":default:return this.getEpeopleByMetadata(ie.trim(),ne,q);case"email":return this.getEPersonByEmail(ie.trim()).pipe((0,o.U)(oe=>{if(oe.hasSucceeded){let ce;return ce=204===oe.statusCode||(0,a.xI)(oe.payload)?[]:[oe.payload],new O.N(oe.timeCompleted,oe.msToLive,oe.lastUpdated,oe.state,oe.errorMessage,(0,E.b)(new C.S({elementsPerPage:ne.elementsPerPage,totalElements:ce.length,totalPages:ce.length,currentPage:1}),ce),oe.statusCode)}return oe}))}}getEPersonByEmail(G,ie=!0,ne=!0,...q){const oe=new I.R;oe.searchParams=[new m.g("email",G)];const ce=this.searchData.getSearchByHref(this.searchByEmailPath,oe,...q);return this.findByHref(ce,ie,ne,...q)}getEpeopleByMetadata(G,ie,ne=!0,q=!0,...oe){const ce=[new m.g("query",G)];return this.getEPeopleBy(ce,this.searchByMetadataPath,ie,ne,q,...oe)}getEPeopleBy(G,ie,ne,q=!0,oe=!0,...ce){let ye=new I.R;return ne&&(ye=Object.assign(new I.R,ne)),ye.searchParams=ye.searchParams?[...ye.searchParams,...G]:G,this.searchBy(ie,ye,q,oe,...ce)}searchNonMembers(G,ie,ne,q=!0,oe=!0,...ce){const ye=[new m.g("query",G),new m.g("group",ie)];let Me=new I.R;return ne&&(Me=Object.assign(new I.R,ne)),Me.searchParams=Me.searchParams?[...Me.searchParams,...ye]:ye,this.searchBy("isNotMemberOf",Me,q,oe,...ce)}
1updateEPerson(G){const ie=this.requestService.generateRequestId();return this.findByHref(G._links.self.href,!0,!1).pipe((0,D.xw)(),(0,D.xe)(),(0,i.q)(1)).subscribe(q=>{const oe=this.generateOperations(q,G),ce=new b._x(ie,G._links.self.href,oe);return this.requestService.send(ce)}),this.rdbService.buildFromRequestUUID(ie)}generateOperations(G,ie){let ne=this.comparator.diff(G,ie).filter(q=>"replace"===q.op);return(0,a.Uh)(G.email)&&G.email!==ie.email&&(ne=[...ne,{op:"replace",path:"/email",value:ie.email}]),(0,a.Uh)(G.requireCertificate)&&G.requireCertificate!==ie.requireCertificate&&(ne=[...ne,{op:"replace",path:"/certificate",value:ie.requireCertificate}]),(0,a.Uh)(G.canLogIn)&&G.canLogIn!==ie.canLogIn&&(ne=[...ne,{op:"replace",path:"/canLogIn",value:ie.canLogIn}]),ne}clearEPersonRequests(){this.getBrowseEndpoint().pipe((0,i.q)(1)).subscribe(G=>{this.requestService.removeByHrefSubstring(G)})}clearLinkRequests(G){this.requestService.setStaleByHrefSubstring(G)}getActiveEPerson(){return this.store.pipe((0,n.Ys)(Q))}cancelEditEPerson(){this.store.dispatch(new r.$O)}editEPerson(G){this.store.dispatch(new r.io(G))}deleteEPerson(G){return this.delete(G.id)}startEditingNewEPerson(G){return this.getActiveEPerson().pipe((0,i.q)(1)).subscribe(ie=>{G===ie?this.cancelEditEPerson():this.editEPerson(G)}),(0,te.EP)(G.id)}createEPersonForToken(G,ie){const ne=this.requestService.generateRequestId();return this.getBrowseEndpoint().pipe((0,o.U)(oe=>`${oe}?token=${ie}`)).pipe((0,d.s)(oe=>(0,a.Uh)(oe))).subscribe(oe=>{const ce=new b.xo(ne,oe,G);this.requestService.send(ce)}),this.rdbService.buildFromRequestUUID(ne)}patchPasswordWithToken(G,ie,ne){const q=this.requestService.generateRequestId(),oe=Object.assign({op:"add",path:"/password",value:{new_password:ne}});return this.halService.getEndpoint(this.linkPath).pipe((0,o.U)(ye=>this.getIDHref(ye,G)),(0,o.U)(ye=>`${ye}?token=${ie}`)).pipe((0,d.s)(ye=>(0,a.Uh)(ye))).subscribe(ye=>{const Me=new b._x(q,ye,[oe]);this.requestService.send(Me)}),this.rdbService.buildFromRequestUUID(q)}create(G,...ie){return this.createData.create(G,...ie)}searchBy(G,ie,ne,q,...oe){return this.searchData.searchBy(G,ie,ne,q,...oe)}createPatchFromCache(G){return this.patchData.createPatchFromCache(G)}patch(G,ie){return this.patchData.patch(G,ie)}update(G){return this.patchData.update(G)}commitUpdates(G){this.patchData.commitUpdates(G)}delete(G,ie){return this.deleteData.delete(G,ie)}deleteByHref(G,ie){return this.deleteData.deleteByHref(G,ie)}}).\u0275fac=function(G){return new(G||ee)(K.\u0275\u0275inject(M.s),K.\u0275\u0275inject(h.Q),K.\u0275\u0275inject(_.a),K.\u0275\u0275inject(P.q),K.\u0275\u0275inject(v.o),K.\u0275\u0275inject(p.T),K.\u0275\u0275inject(n.yh))},ee.\u0275prov=K.\u0275\u0275defineInjectable({token:ee,factory:ee.\u0275fac}),ee);j=(0,t.__decorate)([(0,X.cQ)(l.U),(0,t.__metadata)("design:paramtypes",[M.s,h.Q,_.a,P.q,v.o,p.T,n.yh])],j)},43499:(R,c,e)=>{"use strict";e.d(c,{O:()=>ae});var te,t=e(70655),n=e(80529),o=e(89653),i=e(62557),d=e(95698),r=e(82980),a=e(46418),p=e(43015),h=e(81964),m=e(58943),_=e(62564),v=e(25130),E=e(31241),O=e(93498),b=e(68285),M=e(13748),P=e(77572),D=e(83616),l=e(17481),C=e(60210),I=e(72839),g=e(99678),B=e(74508),L=e(90330),V=e(21147),Y=e(92414),X=e(94650);const ee=(0,o.P1)(Q=>Q.groupRegistry,Q=>Q.editGroup);let ae=((te=class extends I.t{constructor(j,k,G,ie,ne,q,oe,ce){super("groups",j,k,G,ie),this.requestService=j,this.rdbService=k,this.objectCache=G,this.halService=ie,this.comparator=ne,this.notificationsService=q,this.nameService=oe,this.store=ce,this.browseEndpoint="",this.ePersonsEndpoint="epersons",this.subgroupsEndpoint="subgroups",this.createData=new C.K(this.linkPath,j,k,G,ie,q,this.responseMsToLive),this.searchData=new g.l(this.linkPath,j,k,G,ie,this.responseMsToLive),this.patchData=new B.B(this.linkPath,j,k,G,ie,ne,this.responseMsToLive,this.constructIdEndpoint),this.deleteData=new L.R(this.linkPath,j,k,G,ie,q,this.responseMsToLive,this.constructIdEndpoint)}searchGroups(j,k,G=!0,ie=!0,...ne){const q=[new h.g("query",j)];let oe=new l.R;return k&&(oe=Object.assign(new l.R,k)),oe.searchParams=oe.searchParams?[...oe.searchParams,...q]:q,this.searchBy("byMetadata",oe,G,ie,...ne)}searchNonMemberGroups(j,k,G,ie=!0,ne=!0,...q){const oe=[new h.g("query",j),new h.g("group",k)];let ce=new l.R;return G&&(ce=Object.assign(new l.R,G)),ce.searchParams=ce.searchParams?[...ce.searchParams,...oe]:oe,this.searchBy("isNotMemberOf",ce,ie,ne,...q)}addSubGroupToGroup(j,k){const G=this.requestService.generateRequestId(),ie=Object.create({});let ne=new n.WM;
1ne=ne.append("Content-Type","text/uri-list"),ie.headers=ne;const q=new v.xo(G,j.self+"/"+this.subgroupsEndpoint,k.self,ie);return this.requestService.send(q),this.rdbService.buildFromRequestUUIDAndAwait(G,()=>(0,i.$)(this.invalidateByHref(j._links.self.href),this.requestService.setStaleByHrefSubstring(j._links.subgroups.href).pipe((0,d.q)(1))))}deleteSubGroupFromGroup(j,k){const G=this.requestService.generateRequestId(),ie=new v.jx(G,j.self+"/"+this.subgroupsEndpoint+"/"+k.id);return this.requestService.send(ie),this.rdbService.buildFromRequestUUIDAndAwait(G,()=>(0,i.$)(this.invalidateByHref(j._links.self.href),this.requestService.setStaleByHrefSubstring(j._links.subgroups.href).pipe((0,d.q)(1))))}addMemberToGroup(j,k){const G=this.requestService.generateRequestId(),ie=Object.create({});let ne=new n.WM;ne=ne.append("Content-Type","text/uri-list"),ie.headers=ne;const q=new v.xo(G,j.self+"/"+this.ePersonsEndpoint,k.self,ie);return this.requestService.send(q),this.rdbService.buildFromRequestUUIDAndAwait(G,()=>(0,i.$)(this.invalidateByHref(k._links.self.href),this.requestService.setStaleByHrefSubstring(k._links.groups.href).pipe((0,d.q)(1)),this.requestService.setStaleByHrefSubstring(j._links.epersons.href).pipe((0,d.q)(1))))}deleteMemberFromGroup(j,k){const G=this.requestService.generateRequestId(),ie=new v.jx(G,j.self+"/"+this.ePersonsEndpoint+"/"+k.id);return this.requestService.send(ie),this.rdbService.buildFromRequestUUIDAndAwait(G,()=>(0,i.$)(this.invalidateByHref(k._links.self.href),this.requestService.setStaleByHrefSubstring(k._links.groups.href).pipe((0,d.q)(1)),this.requestService.setStaleByHrefSubstring(j._links.epersons.href).pipe((0,d.q)(1))))}getActiveGroup(){return this.store.pipe((0,o.Ys)(ee))}cancelEditGroup(){this.store.dispatch(new r.Bb)}editGroup(j){this.store.dispatch(new r.c4(j))}clearGroupsRequests(){this.getBrowseEndpoint().pipe((0,d.q)(1)).subscribe(j=>{this.requestService.removeByHrefSubstring(j)})}clearGroupLinkRequests(j){this.requestService.setStaleByHrefSubstring(j)}getGroupRegistryRouterLink(){return"/access-control/groups"}startEditingNewGroup(j){return this.getActiveGroup().pipe((0,d.q)(1)).subscribe(k=>{j===k?this.cancelEditGroup():this.editGroup(j)}),this.getGroupEditPageRouterLinkWithID(j.id)}getGroupEditPageRouterLink(j){return(0,Y.EV)(j.id)}getGroupEditPageRouterLinkWithID(j){return(0,Y.EV)(j)}getUUIDFromString(j){let k="";const G=j.match(/[a-fA-F0-9]{8}-[a-fA-F0-9]{4}-[a-fA-F0-9]{4}-[a-fA-F0-9]{4}-[a-fA-F0-9]{12}/g);return null!=G&&(k=G[0]),k}createComcolGroup(j,k,G){const ie=this.requestService.generateRequestId(),ne=Object.assign(new M.Z,{metadata:{"dc.description":[{value:`${this.nameService.getName(j)} ${k} group`}]}});this.requestService.send(new v.Fo(ie,G,JSON.stringify(ne)));const q=this.rdbService.buildFromRequestUUID(ie).pipe((0,b.hC)());return q.subscribe(oe=>{oe.hasSucceeded&&this.requestService.removeByHrefSubstring(G)}),q}deleteComcolGroup(j){const k=this.requestService.generateRequestId();this.requestService.send(new v.jx(k,j));const G=this.rdbService.buildFromRequestUUID(k).pipe((0,b.hC)());return G.subscribe(ie=>{ie.hasSucceeded&&this.requestService.removeByHrefSubstring(j)}),G}create(j,...k){return this.createData.create(j,...k)}searchBy(j,k,G,ie,...ne){return this.searchData.searchBy(j,k,G,ie,...ne)}createPatchFromCache(j){return this.patchData.createPatchFromCache(j)}patch(j,k){return this.patchData.patch(j,k)}update(j){return this.patchData.update(j)}commitUpdates(j){this.patchData.commitUpdates(j)}delete(j,k){return this.deleteData.delete(j,k)}deleteByHref(j,k){return this.deleteData.deleteByHref(j,k)}}).\u0275fac=function(j){return new(j||te)(X.\u0275\u0275inject(E.s),X.\u0275\u0275inject(p.Q),X.\u0275\u0275inject(m.a),X.\u0275\u0275inject(O.q),X.\u0275\u0275inject(_.o),X.\u0275\u0275inject(a.T),X.\u0275\u0275inject(D._),X.\u0275\u0275inject(o.yh))},te.\u0275prov=X.\u0275\u0275defineInjectable({token:te,factory:te.\u0275fac}),te);ae=(0,t.__decorate)([(0,V.cQ)(P.o),(0,t.__metadata)("design:paramtypes",[E.s,p.Q,m.a,O.q,_.o,a.T,D._,o.yh])],ae)},36146:(R,c,e)=>{"use strict";e.d(c,{T:()=>h});var p,t=e(70655),n=e(29923),o=e(69751),i=e(19782),d=e(42621),r=e(71508),a=e(77572);let h=((p=class extends d.t{get name(){return this.firstMetadataValue("eperson.firstname")+" "+this.firstMetadataValue("eperson.lastname")}getRenderTypes(){return["EPerson",this.constructor.name,...super.getRenderTypes()]}}).type=r.U,p);(0,t.__decorate)([n.autoserialize,(0,t.__metadata)("design:type",String)],h.prototype,"handle",void 0),(0,t.__decorate)([n.autoserialize,(0,t.__metadata)("design:type",String)],h.prototype,"netid",void 0),(0,t.__decorate)([n.autoserialize,(0,t.__metadata)("design:type",String)],h.prototype,"lastActive",void 0),(0,t.__decorate)([n.autoserialize,(0,t.__metadata)("design:type",Boolean)],h.prototype,"canLogIn",void 0),(0,t.__decorate)([n.autoserialize,(0,t.__metadata)("design:type",String)],h.prototype,"email",void 0),(0,t.__decorate)([n.autoserialize,(0,t.__metadata)("design:type",Boolean)],h.prototype,"requireCertificate",void 0),(0,t.__decorate)([n.autoserialize,(0,t.__metadata)("design:type",Boolean)],h.prototype,"selfRegistered",void 0),(0,t.__decorate)([n.autoserialize,(0,t.__metadata)("design:type",String)],h.prototype,"password",void 0),(0,t.__decorate)([(0,i.p4)(a.o,!0),(0,t.__metadata)("design:type",o.y)],h.prototype,"groups",void 0),h=(0,t.__decorate)([i.KB,(0,n.inheritSerialization)(d.t)],h)},71508:(R,c,e)=>{"use strict";e.d(c,{U:()=>n});const n=new(e(3879)._)("eperson")},13748:(R,c,e)=>{"use strict";e.d(c,{Z:()=>_});var m,t=e(70655),n=e(29923),o=e(69751),i=e(19782),d=e(42621),r=e(80371),a=e(71508),p=e(77572),h=e(63037);let _=((m=class extends d.t{}).type=p.o,m);(0,t.__decorate)([h.OJ,(0,n.autoserializeAs)("name"),(0,t.__metadata)("design:type",String)],_.prototype,"_name",void 0),(0,t.__decorate)([n.autoserialize,(0,t.__metadata)("design:type",String)],_.prototype,"handle",void 0),(0,t.__decorate)([n.autoserialize,(0,t.__metadata)("design:type",Boolean)],_.prototype,"permanent",void 0),(0,t.__decorate)([n.deserialize,(0,t.__metadata)("design:type",Object)],_.prototype,"_links",void 0),(0,t.__decorate)([(0,i.p4)(p.o,!0),(0,t.__metadata)("design:type",o.y)],_.prototype,"subgroups",void 0),(0,t.__decorate)([(0,i.p4)(a.U,!0),(0,t.__metadata)("design:type",o.y)],_.prototype,"epersons",void 0),(0,t.__decorate)([(0,i.p4)(r.i),(0,t.__metadata)("design:type",o.y)],_.prototype,"object",void 0),_=(0,t.__decorate)([i.KB,(0,n.inheritSerialization)(d.t)],_)},77572:(R,c,e)=>{"use strict";e.d(c,{o:()=>n});const n=new(e(3879)._)("group")},9657:(R,c,e)=>{"use strict";e.d(c,{w:()=>n});const n=new(e(3879)._)("workflowitem")},99709:(R,c,e)=>{"use strict";e.d(c,{J:()=>M});var t=e(70655);const o=new(e(3879)._)("feedback");var b,i=e(31241),d=e(43015),r=e(89653),a=e(58943),p=e(93498),h=e(46418),m=e(68285),_=e(72839),v=e(60210),E=e(21147),O=e(94650);let M=((b=class extends _.t{constructor(D,l,C,I,g,B){super("feedbacks",D,l,I,g),this.requestService=D,this.rdbService=l,this.store=C,this.objectCache=I,this.halService=g,this.notificationsService=B,this.createData=new v.K(this.linkPath,D,l,I,g,B,this.responseMsToLive)}getFeedback(D){return this.findById(D).pipe((0,m.xw)(),(0,m.xe)())}create(D,...l){return this.createData.create(D,...l)}}).\u0275fac=function(D){return new(D||b)(O.\u0275\u0275inject(i.s),O.\u0275\u0275inject(d.Q),O.\u0275\u0275inject(r.yh),O.\u0275\u0275inject(a.a),O.\u0275\u0275inject(p.q),O.\u0275\u0275inject(h.T))},b.\u0275prov=O.\u0275\u0275defineInjectable({token:b,factory:b.\u0275fac}),b);M=(0,t.__decorate)([(0,E.cQ)(o),(0,t.__metadata)("design:paramtypes",[i.s,d.Q,r.yh,a.a,p.q,h.T])],M)},20036:(R,c,e)=>{"use strict";e.d(c,{LI:()=>b,gg:()=>O,v0:()=>M});var t=e(68285),n=e(24702),o=e(36895),i=e(59656),d=e(95698),r=e(54004),a=e(63900),p=e(61135),h=e(39841),m=e(39646),_=e(57388),v=e(13465),E=e(94650);const O="_GRECAPTCHA",b="google-recaptcha";let M=(()=>{class P{constructor(l,C,I,g,B){this.cookieService=l,this._document=C,this._window=I,this.configService=B,this.captchaVersionSubject$=new p.X(null),this.captchaKeySubject$=new p.X(null),this.captchaModeSubject$=new p.X(null),this.refreshCaptchaScript=()=>{this.loadRecaptchaProperties()},this._window.nativeWindow&&(this._window.nativeWindow.refreshCaptchaScript=this.refreshCaptchaScript),this.renderer=g.createRenderer(null,null),this.configService.findByPropertyName("registration.verification.enabled").pipe((0,d.q)(1),(0,t.hC)(),(0,r.U)(V=>V.hasSucceeded&&V.payload&&(0,n.UE)(V.payload.values)&&"true"===V.payload.values[0].toLowerCase())).subscribe(V=>{V&&this.loadRecaptchaProperties()})}captchaKey(){return this.captchaKeySubject$.asObservable()}captchaMode(){return this.captchaModeSubject$.asObservable()}captchaVersion(){return this.captchaVersionSubject$.asObservable()}loadRecaptchaProperties(){const l=this.configService.findByPropertyName("google.recaptcha.key.site").pipe((0,t.hC)()),C=this.configService.findByPropertyName("google.recaptcha.version").pipe((0,t.hC)()),I=this.configService.findByPropertyName("google.recaptcha.mode").pipe((0,t.hC)());(0,h.a)([C,I,l]).subscribe(([g,B,L])=>{if(this.cookieService.get("klaro-anonymous")&&this.cookieService.get("klaro-anonymous")[b]&&L.hasSucceeded&&g.hasSucceeded&&(0,n.UE)(g.payload?.values)&&(0,n.UE)(L.payload?.values)){const V=L.payload?.values[0],Y=g.payload?.values[0];let X;switch(this.captchaKeySubject$.next(V),this.captchaVersionSubject$.next(Y),Y){case"v3":L.hasSucceeded&&(0,n.UE)(L.payload?.values)&&(X=this.buildCaptchaUrl(V),this.captchaModeSubject$.next("invisible"));break;case"v2":B.hasSucceeded&&(0,n.UE)(B.payload?.values)&&(X=this.buildCaptchaUrl(
1),this.captchaModeSubject$.next(B.payload?.values[0]))}X&&this.loadScript(X)}})}getRecaptchaToken(l){return this.captchaKey().pipe((0,a.w)(C=>grecaptcha.execute(C,{action:l})))}executeRecaptcha(){return(0,m.of)(grecaptcha.execute())}getRecaptchaTokenResponse(){return grecaptcha.getResponse()}buildCaptchaUrl(l){const C="https://www.google.com/recaptcha/api.js";return l?`${C}?render=${l}`:C}loadScript(l){return new Promise((C,I)=>{const g=this.renderer.createElement("script");g.type="text/javascript",g.src=l,g.text="",g.onload=C,g.onerror=I,this.renderer.appendChild(this._document.head,g)})}}return P.\u0275fac=function(l){return new(l||P)(E.\u0275\u0275inject(_.N),E.\u0275\u0275inject(o.K0),E.\u0275\u0275inject(v.DC),E.\u0275\u0275inject(E.RendererFactory2),E.\u0275\u0275inject(i.i))},P.\u0275prov=E.\u0275\u0275defineInjectable({token:P,factory:P.\u0275fac}),P})()},36205:(R,c,e)=>{"use strict";e.d(c,{R:()=>o,m:()=>n});var t=e(79472);const n={ADD_TO_HISTORY:(0,t.d)("dspace/history/ADD_TO_HISTORY"),GET_HISTORY:(0,t.d)("dspace/history/GET_HISTORY")};class o{constructor(d){this.type=n.ADD_TO_HISTORY,this.payload={url:d}}}},1906:(R,c,e)=>{"use strict";e.d(c,{s:()=>t});var t=(()=>{return(n=t||(t={})).OBJECT="object/uuid-to-self-link",n.REQUEST="get-request/href-to-uuid",n.ALTERNATIVE_OBJECT_LINK="object/alt-link-to-self-link",t;var n})()},91110:(R,c,e)=>{"use strict";e.d(c,{BF:()=>n,Ke:()=>d,q5:()=>o,zc:()=>i});var t=e(79472);const n={ADD:(0,t.d)("dspace/core/index/ADD"),REMOVE_BY_VALUE:(0,t.d)("dspace/core/index/REMOVE_BY_VALUE"),REMOVE_BY_SUBSTRING:(0,t.d)("dspace/core/index/REMOVE_BY_SUBSTRING")};class o{constructor(a,p,h){this.type=n.ADD,this.payload={name:a,key:p,value:h}}}class i{constructor(a,p){this.type=n.REMOVE_BY_VALUE,this.payload={name:a,value:p}}}class d{constructor(a,p){this.type=n.REMOVE_BY_SUBSTRING,this.payload={name:a,value:p}}}},61306:(R,c,e)=>{"use strict";e.d(c,{AS:()=>v,Be:()=>E,eY:()=>O,jP:()=>a,mv:()=>m,z2:()=>r});var t=e(89653),n=e(24702),o=e(1588),i=e(23631),d=e(1906);const r=b=>{if((0,n.UE)(b))try{const M=new URL(b);if((0,n.UE)(M.search)){const P=M.search.split(/[?|&]/).filter(l=>(0,n.UE)(l)).filter(l=>!(l.startsWith("embed=")||l.startsWith("embed.size=")));let D="";return(0,n.UE)(P)&&(D=`?${P.join("&")}`),b=new i.R(M.origin,M.pathname,D).toString()}}catch{}return b},a=b=>{if((0,n.UE)(b))try{const M=new URL(b);if((0,n.UE)(M.search))return M.search.split(/[?|&]/).filter(P=>(0,n.UE)(P)).map(P=>P.match(/^embed.size=([^=]+)=(\d+)$/)).filter(P=>(0,n.Uh)(P)&&(0,n.Uh)(P[1])&&(0,n.Uh)(P[2])).map(P=>({name:P[1],size:Number(P[2])}))}catch{}return[]},p=(0,t.P1)(o.v,b=>b.index),h=(0,t.P1)(p,b=>b[d.s.OBJECT]),m=(0,t.P1)(p,b=>b[d.s.REQUEST]),_=(0,t.P1)(p,b=>b[d.s.ALTERNATIVE_OBJECT_LINK]),v=b=>(0,t.P1)(h,M=>(0,n.Uh)(M)?M[b]:void 0),E=b=>(0,t.P1)(m,M=>(0,n.Uh)(M)?M[r(b)]:void 0),O=b=>(0,t.P1)(_,M=>(0,n.Uh)(M)?M[b]:void 0)},57428:(R,c,e)=>{"use strict";e.d(c,{w:()=>h});var t=e(39510),n=e(24702),o=e(63162),i=e(58140),d=e(7973),r=e(86280),a=e(94650),p=e(89653);let h=(()=>{class m{constructor(v){this.store=v}add(v,E,O=!1,b=!1){this.store.dispatch(new t.dx(v.rootElement,v.subRootElement,v.path,this.prepareValue(E,b,O)))}replace(v,E,O=!1){(0,n.xI)(E)||"object"==typeof E&&(0,n.xI)(E.value)?this.remove(v):this.store.dispatch(new t.Gn(v.rootElement,v.subRootElement,v.path,this.prepareValue(E,O,!1)))}move(v,E){this.store.dispatch(new t.sD(v.rootElement,v.subRootElement,E,v.path))}remove(v){this.store.dispatch(new t.yL(v.rootElement,v.subRootElement,v.path))}prepareValue(v,E,O){let b=null;return(0,n.Uh)(v)&&(E?b=v:Array.isArray(v)?(b=[],v.forEach(M=>{b.push("object"==typeof M?this.prepareObjectValue(M):new d.u(M))})):b="object"==typeof v?this.prepareObjectValue(v):new d.u(v)),O&&!Array.isArray(b)?[b]:b}prepareObjectValue(v){let E=Object.create({});return(0,n.xb)(v)||v instanceof d.u?E=v:v instanceof Date?E=new d.u((0,o.iV)(v)):v instanceof i.j?E=this.prepareAuthorityValue(v):v instanceof r.Z?E=new d.u(v.value,v.language):v.hasOwnProperty("authority")?E=new d.u(v.value,v.language,v.authority):(0,o.UV)(v)?E=new d.u((0,o.UW)(v)):v.hasOwnProperty("value")?E=new d.u(v.value):Object.keys(v).forEach(O=>{E[O]="object"==typeof v[O]?this.prepareObjectValue(v[O]):v[O]}),E}prepareAuthorityValue(v){let E;return E=(0,n.UE)(v.authority)?new d.u(v.value,v.language,v.authority):new d.u(v.value,v.language),E}}return m.\u0275fac=function(v){return new(v||m)(a.\u0275\u0275inject(p.yh))},m.\u0275prov=a.\u0275\u0275defineInjectable({token:m,factory:m.\u0275fac}),m})()},39510:(R,c,e)=>{"use strict";e.d(c,{Gn:()=>_,PS:()=>i,Qh:()=>v,RR:()=>r,bu:()=>o,dx:()=>a,eB:()=>d,nQ:()=>n,sD:()=>h,yL:()=>m});var t=e(79472);const n={NEW_JSON_PATCH_ADD_OPERATION:(0,t.d)("dspace/core/patch/NEW_JSON_PATCH_ADD_OPERATION"),NEW_JSON_PATCH_COPY_OPERATION:(0,t.d)("dspace/core/patch/NEW_JSON_PATCH_COPY_OPERATION"),NEW_JSON_PATCH_MOVE_OPERATION:(0,t.d)("dspace/core/patch/NEW_JSON_PATCH_MOVE_OPERATION"),NEW_JSON_PATCH_REMOVE_OPERATION:(0,t.d)("dspace/core/patch/NEW_JSON_PATCH_REMOVE_OPERATION"),NEW_JSON_PATCH_REPLACE_OPERATION:(0,t.d)("dspace/core/patch/NEW_JSON_PATCH_REPLACE_OPERATION"),COMMIT_JSON_PATCH_OPERATIONS:(0,t.d)("dspace/core/patch/COMMIT_JSON_PATCH_OPERATIONS"),ROLLBACK_JSON_PATCH_OPERATIONS:(0,t.d)("dspace/core/patch/ROLLBACK_JSON_PATCH_OPERATIONS"),FLUSH_JSON_PATCH_OPERATIONS:(0,t.d)("dspace/core/patch/FLUSH_JSON_PATCH_OPERATIONS"),START_TRANSACTION_JSON_PATCH_OPERATIONS:(0,t.d)("dspace/core/patch/START_TRANSACTION_JSON_PATCH_OPERATIONS"),DELETE_PENDING_JSON_PATCH_OPERATIONS:(0,t.d)("dspace/core/patch/DELETE_PENDING_JSON_PATCH_OPERATIONS")};class o{constructor(O,b){this.type=n.COMMIT_JSON_PATCH_OPERATIONS,this.payload={resourceType:O,resourceId:b}}}class i{constructor(O,b){this.type=n.ROLLBACK_JSON_PATCH_OPERATIONS,this.payload={resourceType:O,resourceId:b}}}class d{constructor(O,b,M){this.type=n.START_TRANSACTION_JSON_PATCH_OPERATIONS,this.payload={resourceType:O,resourceId:b,startTime:M}}}
1class r{constructor(O,b){this.type=n.FLUSH_JSON_PATCH_OPERATIONS,this.payload={resourceType:O,resourceId:b}}}class a{constructor(O,b,M,P){this.type=n.NEW_JSON_PATCH_ADD_OPERATION,this.payload={resourceType:O,resourceId:b,path:M,value:P}}}class h{constructor(O,b,M,P){this.type=n.NEW_JSON_PATCH_MOVE_OPERATION,this.payload={resourceType:O,resourceId:b,from:M,path:P}}}class m{constructor(O,b,M){this.type=n.NEW_JSON_PATCH_REMOVE_OPERATION,this.payload={resourceType:O,resourceId:b,path:M}}}class _{constructor(O,b,M,P){this.type=n.NEW_JSON_PATCH_REPLACE_OPERATION,this.payload={resourceType:O,resourceId:b,path:M,value:P}}}class v{constructor(){this.type=n.DELETE_PENDING_JSON_PATCH_OPERATIONS}}},93078:(R,c,e)=>{"use strict";e.d(c,{OL:()=>P,Yk:()=>b});var t=e(24702),n=e(57388),o=e(21540),i=e(24755),d=e(39841),r=e(39646),a=e(95698),p=e(86099),h=e(54004),m=e(13465),_=e(5360),v=e(36895),E=e(94650),O=e(89383);const b="dsLanguage";var M=(()=>{return(D=M||(M={}))[D.UI=0]="UI",D[D.EPERSON=1]="EPERSON",D[D.BROWSER=2]="BROWSER",M;var D})();let P=(()=>{class D{constructor(C,I,g,B,L,V){this._window=C,this.cookie=I,this.translate=g,this.authService=B,this.routeService=L,this.document=V,this.EPERSON_LANG_METADATA="eperson.language"}getCurrentLanguageCode(){let C=this.getLanguageCodeFromCookie();return((0,t.xb)(C)||void 0===o.N.languages.find(I=>I.code===C&&I.active))&&(C=this.translate.getLangs().includes(this.translate.getBrowserLang())?this.translate.getBrowserLang():o.N.defaultLanguage),C}getLanguageCodeList(){return(0,d.a)([this.authService.isAuthenticated(),this.authService.isAuthenticationLoaded()]).pipe((0,a.q)(1),(0,p.z)(([I,g])=>(0,r.of)([]).pipe((0,h.U)(L=>{const V=[];return this.translate.currentLang&&V.push(...this.setQuality([this.translate.currentLang],M.UI,!1)),(0,t.UE)(L)&&V.push(...L),navigator.languages&&V.push(...this.setQuality(Object.assign([],navigator.languages),M.BROWSER,!(0,t.xb)(this.translate.currentLang))),V}))))}getLanguageCodeFromCookie(){return this.cookie.get(b)}saveLanguageCodeToCookie(C){this.cookie.set(b,C)}setCurrentLanguageCode(C){(0,t.xb)(C)&&(C=this.getCurrentLanguageCode()),this.translate.use(C),this.saveLanguageCodeToCookie(C),this.document.documentElement.lang=C}setQuality(C,I,g){const B=[];let L=0;const V=C.length>10?C.length:10;let Y;switch(I){case M.EPERSON:Y=2;break;case M.BROWSER:Y=g?10:1;break;default:Y=1}
1return C.forEach(X=>{let te=X+";q=",K=(V-L++)/V;K=C.length>10?K.toFixed(2):K,te+=K/Y,B.push(te)}),B}refreshAfterChangeLanguage(){this.routeService.getCurrentUrl().pipe((0,a.q)(1)).subscribe(C=>{this._window.nativeWindow.location.href=`reload/${(new Date).getTime()}?redirect=`+encodeURIComponent(C)})}}return D.\u0275fac=function(C){return new(C||D)(E.\u0275\u0275inject(m.DC),E.\u0275\u0275inject(n.N),E.\u0275\u0275inject(O.sK),E.\u0275\u0275inject(i.e8),E.\u0275\u0275inject(_.MZ),E.\u0275\u0275inject(v.K0))},D.\u0275prov=E.\u0275\u0275defineInjectable({token:D,factory:D.\u0275fac}),D})()},27544:(R,c,e)=>{"use strict";e.d(c,{Cq:()=>i,ce:()=>o,j9:()=>n});var t=e(79472);const n={ADD:(0,t.d)("dspace/meta-tag/ADD"),CLEAR:(0,t.d)("dspace/meta-tag/CLEAR")};class o{constructor(r){this.type=n.ADD,this.payload=r}}class i{constructor(){this.type=n.CLEAR}}},10015:(R,c,e)=>{"use strict";e.d(c,{b:()=>v});var _,t=e(70655),n=e(29923),o=e(24702),i=e(88648),d=e(19782),r=e(3879),a=e(63037),p=e(5332),h=e(69751),m=e(45394);let v=((_=class extends i.J{toString(O="."){let b=this.element;
1return(0,o.UE)(this.qualifier)&&(b+=O+this.qualifier),b}getRenderTypes(){return[this.constructor]}}).type=p.A,_);(0,t.__decorate)([a.OJ,n.autoserialize,(0,t.__metadata)("design:type",r._)],v.prototype,"type",void 0),(0,t.__decorate)([n.autoserialize,(0,t.__metadata)("design:type",Number)],v.prototype,"id",void 0),(0,t.__decorate)([n.autoserialize,(0,t.__metadata)("design:type",String)],v.prototype,"element",void 0),(0,t.__decorate)([n.autoserialize,(0,t.__metadata)("design:type",String)],v.prototype,"qualifier",void 0),(0,t.__decorate)([n.autoserialize,(0,t.__metadata)("design:type",String)],v.prototype,"scopeNote",void 0),(0,t.__decorate)([n.deserialize,(0,t.__metadata)("design:type",Object)],v.prototype,"_links",void 0),(0,t.__decorate)([(0,d.p4)(m.B),(0,t.__metadata)("design:type",h.y)],v.prototype,"schema",void 0),v=(0,t.__decorate)([d.KB],v)},5332:(R,c,e)=>{"use strict";e.d(c,{A:()=>n});const n=new(e(3879)._)("metadatafield")},43061:(R,c,e)=>{"use strict";e.d(c,{B:()=>h});var p,t=e(70655),n=e(29923),o=e(88648),i=e(19782),d=e(3879),r=e(63037),a=e(45394);let h=((p=class extends o.J{getRenderTypes(){return[this.constructor]}}).type=a.B,p);(0,t.__decorate)([n.autoserialize,(0,t.__metadata)("design:type",Number)],h.prototype,"id",void 0),(0,t.__decorate)([r.OJ,n.autoserialize,(0,t.__metadata)("design:type",d._)],h.prototype,"type",void 0),(0,t.__decorate)([n.autoserialize,(0,t.__metadata)("design:type",String)],h.prototype,"prefix",void 0),(0,t.__decorate)([n.autoserialize,(0,t.__metadata)("design:type",String)],h.prototype,"namespace",void 0),(0,t.__decorate)([n.deserialize,(0,t.__metadata)("design:type",Object)],h.prototype,"_links",void 0),h=(0,t.__decorate)([i.KB],h)},45394:(R,c,e)=>{"use strict";e.d(c,{B:()=>n});const n=new(e(3879)._)("metadataschema")},82307:(R,c,e)=>{"use strict";e.d(c,{D:()=>ne});var t=e(34793),n=e(61135),o=e(39841),i=e(39646),d=e(71350),r=e(60515),a=e(39300),p=e(54004),h=e(95698),m=e(63900),_=e(86099),v=e(24702),E=e(83616),O=e(48532),b=e(9367),M=e(33609),P=e(68285),D=e(8322),l=e(50503),C=e(90697),I=e(93369),g=e(23631),B=e(89653),L=e(27544),V=e(1588),Y=e(19937),X=e(47235);const te=q=>oe=>oe.pipe((0,m.w)(ce=>(0,v.Uh)(ce)?q.isAuthorized(X.i.CanDownload,ce.self).pipe((0,p.U)(ye=>ye?ce:null)):(0,i.of)(null)));var K=e(63645),ee=e(17481),ae=e(94650),Q=e(89383),j=e(11481),k=e(61445);const G=(0,B.P1)(V.v,q=>q.metaTag),ie=(0,B.P1)(G,q=>q.tagsInUse);let ne=(()=>{class q{constructor(ce,ye,Me,Ee,Ae,Je,_t,It,it,Be,Xe,pt,Mt){this.router=ce,this.translate=ye,this.meta=Me,this.title=Ee,this.dsoNameService=Ae,this.bundleDataService=Je,this.bitstreamDataService=_t,this.bitstreamFormatDataService=It,this.rootService=it,this.store=Be,this.hardRedirectService=Xe,this.appConfig=pt,this.authorizationService=Mt,this.currentObject=ne
1w n.X(void 0),this.CITATION_PDF_URL_MIMETYPES=["application/pdf","application/postscript","application/msword","application/vnd.openxmlformats-officedocument.wordprocessingml.document","application/rtf","application/epub+zip"]}listenForRouteChange(){this.setGenerator(),this.router.events.pipe((0,a.h)(ce=>ce instanceof t.m2),(0,p.U)(()=>this.router.routerState.root),(0,p.U)(ce=>({params:(ce=this.getCurrentRoute(ce)).params,data:ce.data}))).subscribe(ce=>{this.processRouteChange(ce)})}processRouteChange(ce){if(this.clearMetaTags(),(0,v.Uh)(ce.data.value.dso)&&(0,v.Uh)(ce.data.value.dso.payload)&&(this.currentObject.next(ce.data.value.dso.payload),this.setDSOMetaTags()),ce.data.value.title){const ye=this.translate.get("repository.title.prefix"),Me=this.translate.get(ce.data.value.title,ce.data.value);(0,o.a)([ye,Me]).pipe((0,h.q)(1)).subscribe(([Ee,Ae])=>{this.addMetaTag("title",Ee+Ae),this.title.setTitle(Ee+Ae)})}ce.data.value.description&&this.translate.get(ce.data.value.description).pipe((0,h.q)(1)).subscribe(ye=>{this.addMetaTag("description",ye)})}getCurrentRoute(ce){for(;ce.firstChild;)ce=ce.firstChild;return ce}setDSOMetaTags(){this.setTitleTag(),this.setDescriptionTag(),this.setCitationTitleTag(),this.setCitationAuthorTags(),this.setCitationPublicationDateTag(),this.setCitationISSNTag(),this.setCitationISBNTag(),this.setCitationLanguageTag(),this.setCitationKeywordsTag(),this.setCitationAbstractUrlTag(),this.setCitationPdfUrlTag(),this.setCitationPublisherTag(),this.isDissertation()&&this.setCitationDissertationNameTag()}setTitleTag(){const ce=this.dsoNameService.getName(this.currentObject.getValue());this.addMetaTag("title",ce),this.title.setTitle(ce)}setDescriptionTag(){const ce=this.getMetaTagValue("dc.description.abstract");this.addMetaTag("description",ce)}setCitationTitleTag(){const ce=this.getMetaTagValue("dc.title");this.addMetaTag("citation_title",ce)}setCitationAuthorTags(){const ce=this.getMetaTagValues(["dc.author","dc.contributor.author","dc.creator"]);this.addMetaTags("citation_author",ce)}setCitationPublicationDateTag(){const ce=this.getFirstMetaTagValue(["dc.date.copyright","dc.date.issued","dc.date.available","dc.date.accessioned"]);this.addMetaTag("citation_publication_date",ce)}setCitationISSNTag(){const ce=this.getMetaTagValue("dc.identifier.issn");this.addMetaTag("citation_issn",ce)}setCitationISBNTag(){const ce=this.getMetaTagValue("dc.identifier.isbn");this.addMetaTag("citation_isbn",ce)}setCitationLanguageTag(){const ce=this.getFirstMetaTagValue(["dc.language","dc.language.iso"]);this.addMetaTag("citation_language",ce)}setCitationDissertationNameTag(){const ce=this.getMetaTagValue("dc.title");this.addMetaTag("citation_dissertation_name",ce)}setCitationPublisherTag(){const ce=this.getMetaTagValue("dc.publisher");this.isDissertation()?this.addMetaTag("citation_dissertation_institution",ce):this.isTechReport()?this.addMetaTag("citation_technical_report_institution",ce):this.addMetaTag("citation_publisher",ce)}setCitationKeywordsTag(){const ce=this.getMetaTagValuesAndCombine("dc.subject");this.addMetaTag("citation_keywords",ce)}setCitationAbstractUrlTag(){if(this.currentObject.value instanceof M.c){let ce=this.getMetaTagValue("dc.identifier.uri");(0,v.xI)(ce)&&(ce=new g.R(this.hardRedirectService.getCurrentOrigin(),this.router.url).toString()),this.addMetaTag("citation_abstract_html_url",ce)}}setCitationPdfUrlTag(){this.currentObject.value instanceof M.c&&this.bundleDataService.findByItemAndName(this.currentObject.value,"ORIGINAL",!0,!0,new ee.R,(0,I.l)("primaryBitstream"),(0,I.l)("bitstreams",{findListOptions:{elementsPerPage:this.appConfig.item.bitstream.pageSize}},(0,I.l)("format"))).pipe((0,P.Gp)(),(0,m.w)(ye=>ye.primaryBitstream.pipe((0,P.hC)(),(0,p.U)(Me=>(0,v.Uh)(Me.payload)?Me.payload:null),te(this.authorizationService),(0,p.U)(Me=>[ye,Me]))),(0,m.w)(([ye,Me])=>(0,v.Uh)(Me)?[(0,l.gs)(Me)]:ye.bitstreams.pipe((0,P.hC)(),(0,m.w)(Ee=>(0,v.Uh)(Ee.payload)&&1===Ee.payload.totalElements?this.getBitLinkIfDownloadable(Ee.payload.page[0],Ee):this.getFirstAllowedFormatBitstreamLink(Ee)))),(0,h.q)(1)).subscribe(ye=>{this.addMetaTag("citation_pdf_url",new g.R(this.hardRedirectService.getCurrentOrigin(),ye).toString())})}getBitLinkIfDownloadable(ce,ye){return(0,i.of)(ce).pipe(te(this.authorizationService),(0,m.
1w)(Me=>(0,v.Uh)(Me)?[(0,l.gs)(Me)]:this.getFirstAllowedFormatBitstreamLink(ye)))}getFirstAllowedFormatBitstreamLink(ce){return(0,v.Uh)(ce.payload)&&(0,v.UE)(ce.payload.page)?(0,d.z)(...ce.payload.page.map(ye=>ye.format.pipe((0,P.Gp)(),(0,p.U)(Me=>[ye,Me])))).pipe((0,_.z)(([ye,Me])=>(0,i.of)(ye).pipe(te(this.authorizationService),(0,p.U)(Ee=>[Ee,Me]))),(0,a.h)(([ye,Me])=>(0,v.Uh)(Me)&&(0,v.Uh)(ye)&&this.CITATION_PDF_URL_MIMETYPES.includes(Me.mimetype)),(0,h.q)(1),(0,p.U)(([ye])=>(0,l.gs)(ye))):r.E}setGenerator(){this.rootService.findRoot().pipe((0,P.Gp)()).subscribe(ce=>{this.meta.addTag({name:"Generator",content:ce.dspaceVersion})})}hasType(ce){return this.currentObject.value.hasMetadata("dc.type",{value:ce,ignoreCase:!0})}isDissertation(){return this.hasType("thesis")}isTechReport(){return this.hasType("technical report")}getMetaTagValue(ce){return this.currentObject.value.firstMetadataValue(ce)}getFirstMetaTagValue(ce){return this.currentObject.value.firstMetadataValue(ce)}getMetaTagValuesAndCombine(ce){return this.getMetaTagValues([ce]).join("; ")}getMetaTagValues(ce){return this.currentObject.value.allMetadataValues(ce)}addMetaTag(ce,ye){ye&&(this.meta.addTag({name:ce,content:ye}),this.storeTag(ce))}addMetaTags(ce,ye){for(const Me of ye)this.addMetaTag(ce,Me)}storeTag(ce){this.store.dispatch(new L.ce(ce))}clearMetaTags(){this.store.pipe((0,B.Ys)(ie),(0,h.q)(1)).subscribe(ce=>{for(const ye of ce)this.meta.removeTag("name='"+ye+"'");this.store.dispatch(new L.Cq)})}}return q.\u0275fac=function(ce){return new(ce||q)(ae.\u0275\u0275inject(t.F0),ae.\u0275\u0275inject(Q.sK),ae.\u0275\u0275inject(j.h_),ae.\u0275\u0275inject(j.Dx),ae.\u0275\u0275inject(E._),ae.\u0275\u0275inject(C.b),ae.\u0275\u0275inject(O.J),ae.\u0275\u0275inject(b.O),ae.\u0275\u0275inject(D.d),ae.\u0275\u0275inject(B.yh),ae.\u0275\u0275inject(k.A),ae.\u0275\u0275inject(K.q),ae.\u0275\u0275inject(Y._))},q.\u0275prov=ae.\u0275\u0275defineInjectable({token:q,factory:q.\u0275fac}),q})()},90749:(R,c,e)=>{"use strict";e.d(c,{g:()=>n});const n=new(e(3879)._)("orcidhistory")},3413:(R,c,e)=>{"use strict";e.d(c,{R:()=>n});const n=new(e(3879)._)("orcidqueue")},50672:(R,c,e)=>{"use strict";e.d(c,{m:()=>v});var t=e(39841),n=e(54004),o=e(63900),i=e(96577),d=e(24702),r=e(68285),a=e(59656),p=e(23631),h=e(13465),m=e(94650),_=e(34793);let v=(()=>{class E{constructor(b,M,P,D){this._window=b,this.configurationService=M,this.researcherProfileService=P,this.router=D}isLinkedToOrcid(b){return b.hasMetadata("dspace.orcid.authenticated")}onlyAdminCanDisconnectProfileFromOrcid(){return this.getOrcidDisconnectionAllowedUsersConfiguration().pipe((0,n.U)(b=>b.hasSucceeded&&b.payload.values.map(M=>M.toLowerCase()).includes("only_admin")))}ownerCanDisconnectProfileFromOrcid(){return this.getOrcidDisconnectionAllowedUsersConfiguration().pipe((0,n.U)(b=>b.hasSucceeded&&b.payload.values.map(M=>M.toLowerCase()).includes("admin_and_owner")))}linkOrcidByItem(b,M){const P=[{path:"/orcid",op:"add",value:M}];return this.researcherProfileService.findById(b.firstMetadata("dspace.object.owner").authority).pipe((0,r.hC)(),(0,o.w)(D=>this.researcherProfileService.patch(D.payload,P)))}unlinkOrcidByItem(b){const M=[{path:"/orcid",op:"remove"}];return this.researcherProfileService.findById(b.firstMetadata("dspace.object.owner").authority).pipe((0,r.hC)(),(0,o.w)(P=>this.researcherProfileService.patch(P.payload,M)))}getOrcidAuthorizeUrl(b){return(0,t.a)([this.configurationService.findByPropertyName("orcid.authorize-url").pipe((0,r.Gp)()),this.configurationService.findByPropertyName("orcid.application-client-id").pipe((0,r.Gp)()),this.configurationService.findByPropertyName("orcid.scope").pipe((0,r.Gp)())]).pipe((0,n.U)(([M,P,D])=>{const l=new p.R(this._window.nativeWindow.origin,encodeURIComponent(this.router.url.split("?")[0]));return M.values[0]+"?client_id="+P.values[0]+"&redirect_uri="+l+"&response_type=code&scope="+D.values.join(" ")}))}getOrcidAuthorizationScopesByItem(b){return(0,d.UE)(b)?b.allMetadataValues("dspace.orcid.scope"):[]}getOrcidAuthorizationScopes(){return this.configurationService.findByPropertyName("orcid.scope").pipe((0,r.hC)(),(0,n.U)(b=>b.hasSucceeded?b.payload.values:[]))}getOrcidDisconnectionAllowedUsersConfiguration(){return this.configurationService.findByPropertyName("orcid.disconnection.allowed-users").pipe((0,r.hC)())}}return E.\u0275fac=function(b){return new(b||E)(m.\u0275\u0275inject(h.DC),m.\u0275\u0275inject(a.i),m.\u0275\u0275inject(i.E),m.\u0275\u0275inject(_.F0))},E.\u0275prov=m.\u0275\u0275defineInjectable({token:E,factory:E.\u0275fac}),E})()},71537:(R,c,e)=>{"use strict";e.d(c,{p:()=>M});var b,t=e(70655),n=e(80529),o=e(54004),i=e(63900),d=e(43015),r=e(58943),a=e(25130),p=e(31241),h=e(93498),m=e(90749),_=e(85292),v=e(72839),E=e(21147),O=e(94650);let M=((b=class extends v.t{constructor(D,l,C,I){super("orcidhistories",D,l,C,I,1e4),this.requestService=D,this.rdbService=l,this.objectCache=C,this.halService=I}sendToORCID(D){const l=this.requestService.generateRequestId();return this.getEndpoint().pipe((0,o.U)(C=>{const I=Object.create({});let g=new n.WM;
1return g=g.append("Content-Type","text/uri-list"),I.headers=g,new a.xo(l,C,D._links.self.href,I)}),(0,_.wG)(this.requestService),(0,i.w)(C=>this.rdbService.buildFromRequestUUID(C.uuid)))}}).\u0275fac=function(D){return new(D||b)(O.\u0275\u0275inject(p.s),O.\u0275\u0275inject(d.Q),O.\u0275\u0275inject(r.a),O.\u0275\u0275inject(h.q))},b.\u0275prov=O.\u0275\u0275defineInjectable({token:b,factory:b.\u0275fac}),b);M=(0,t.__decorate)([(0,E.cQ)(m.g),(0,t.__metadata)("design:paramtypes",[p.s,d.Q,r.a,h.q])],M)},12486:(R,c,e)=>{"use strict";e.d(c,{I:()=>b});var O,t=e(70655),n=e(31241),o=e(43015),i=e(58943),d=e(93498),r=e(46418),a=e(3413),p=e(81964),h=e(90330),m=e(99678),_=e(72839),v=e(21147),E=e(94650);let b=((O=class extends _.t{constructor(P,D,l,C,I){super("orcidqueues",P,D,l,C,1e4),this.requestService=P,this.rdbService=D,this.objectCache=l,this.halService=C,this.notificationsService=I,this.searchData=new m.l(this.linkPath,P,D,l,C,this.responseMsToLive),this.deleteData=new h.R(this.linkPath,P,D,l,C,I,this.responseMsToLive,this.constructIdEndpoint)}searchByProfileItemId(P,D,l=!0,C=!0){return this.searchData.searchBy("findByProfileItem",{searchParams:[new p.g("profileItemId",P)],elementsPerPage:D.pageSize,currentPage:D.currentPage},l,C)}deleteById(P){return this.deleteData.delete(P.toString())}clearFindByProfileItemRequests(){this.requestService.setStaleByHrefSubstring(this.linkPath+"/search/findByProfileItem")}}).\u0275fac=function(P){return new(P||O)(E.\u0275\u0275inject(n.s),E.\u0275\u0275inject(o.Q),E.\u0275\u0275inject(i.a),E.\u0275\u0275inject(d.q),E.\u0275\u0275inject(r.T))},O.\u0275prov=E.\u0275\u0275defineInjectable({token:O,factory:O.\u0275fac}),O);b=(0,t.__decorate)([(0,v.cQ)(a.R),(0,t.__metadata)("design:paramtypes",[n.s,o.Q,i.a,d.q,r.T])],b)},77467:(R,c,e)=>{"use strict";e.d(c,{N:()=>O});var t=e(5360),n=e(4177),o=e(39841),i=e(54004),d=e(39300),r=e(95698),a=e(42943),p=e(24702),h=e(91776),m=e(17481),v=e(94650),E=e(34793);let O=(()=>{class b{constructor(P,D){this.routeService=P,this.router=D,this.defaultSortOptions=new a.o("dc.title",a.S.ASC),this.clearParams={}}getCurrentPagination(P,D){const l=this.routeService.getQueryParameterValue(`${P}.page`),C=this.routeService.getQueryParameterValue(`${P}.rpp`);return(0,o.a)([l,C]).pipe((0,i.U)(([I,g])=>Object.assign(new n.r,D,{currentPage:this.convertToNumeric(I,D.currentPage),pageSize:this.getBestMatchPageSize(g,D)})))}getCurrentSort(P,D,l){!l&&((0,p.xb)(D)||!(0,p.Uh)(D))&&(D=this.defaultSortOptions);const C=this.routeService.getQueryParameterValue(`${P}.sd`),I=this.routeService.getQueryParameterValue(`${P}.sf`);return(0,o.a)([C,I]).pipe((0,i.U)(([g,B])=>new a.o(B||D?.field,a.S[g]||D?.direction)))}getFindListOptions(P,D,l){const C=new n.r;C.currentPage=D.currentPage,C.pageSize=D.elementsPerPage;const I=this.getCurrentPagination(P,C),g=this.getCurrentSort(P,D.sort,l);return(0,o.a)([I,g]).pipe((0,d.h)(([B,L])=>(0,p.Uh)(B)&&(0,p.Uh)(L)),(0,i.U)(([B,L])=>Object.assign(new m.R,D,{sort:L,currentPage:B.currentPage,elementsPerPage:B.pageSize})))}resetPage(P){this.updateRoute(P,{page:1})}updateRoute(P,D,l,C,I){this.updateRouteWithUrl(P,[],D,l,C,I)}updateRouteWithUrl(P,D,l,C,I,g){this.getCurrentRouting(P).subscribe(B=>{const L=this.getParametersWithIdName(P,B),V=this.getParametersWithIdName(P,l);if((0,p.UE)((0,h.e5)(V,L))||(0,p.UE)(C)||(0,p.UE)(this.clearParams)){const Y=Object.assign({},this.clearParams,L,V,C);this.router.navigate(D,I?{queryParams:Y,queryParamsHandling:"merge",fragment:`p-${P}`,...g}:{queryParams:Y,queryParamsHandling:"merge",...g}),this.clearParams={}}})}clearPagination(P){const D={};D[`${P}.page`]=null,D[`${P}.rpp`]=null,D[`${P}.sf`]=null,D[`${P}.sd`]=null,Object.assign(this.clearParams,D)}getPageParam(P){return`${P}.page`}getCurrentRouting(P){return this.getFindListOptions(P,{},!0).pipe((0,r.q)(1),(0,i.U)(D=>({page:D.currentPage,pageSize:D.elementsPerPage,sortField:D.sort.field,sortDirection:D.sort.direction})))}getParametersWithIdName(P,D){const l={};return(0,p.Uh)(D.page)&&(l[`${P}.page`]=`${D.page}`),(0,p.Uh)(D.pageSize)&&(l[`${P}.rpp`]=`${D.pageSize}`),(0,p.Uh)(D.sortField)&&(l[`${P}.sf`]=`${D.sortField}`),(0,p.Uh)(D.sortDirection)&&(l[`${P}.sd`]=`${D.sortDirection}`),l}convertToNumeric(P,D){let l=D;return function _(b){return!Array.isArray(b)&&b-parseFloat(b)+1>=0}(P)&&(l=+P),l}getBestMatchPageSize(P,D){const l=this.convertToNumeric(P,D.pageSize),C=D.pageSizeOptions.map(g=>Math.abs(g-l)),I=Math.min.apply(Math,C);return D.pageSizeOptions[C.indexOf(I)]}}return b.\u0275fac=function(P){return new(P||b)(v.\u0275\u0275inject(t.MZ),v.\u0275\u0275inject(E.F0))},b.\u0275prov=v.\u0275\u0275defineInjectable({token:b,factory:b.\u0275fac,providedIn:"root"}),b})()},31736:(R,c,e)=>{"use strict";e.d(c,{T:()=>_});var m,t=e(70655),n=e(69751),o=e(29923),i=e(19782),d=e(3879),r=e(63037),a=e(5915),p=e(93490),h=e(14601);let _=((m=class extends p.X{}).type=a.I,m);(0,t.__decorate)([r.OJ,o.autoserialize,(0,t.__metadata)("design:type",d._)],_.prototype,"type",void 0),(0,t.__decorate)([o.autoserialize,(0,t.__metadata)("design:type",String)],_.prototype,"id",void 0),(0,t.__decorate)([(0,o.deserializeAs)("id"),(0,t.__metadata)("design:type",String)],_.prototype,"uuid",void 0),(0,t.__decorate)([o.autoserialize,(0,t.__metadata)("design:type",Boolean)],_.prototype,"visible",void 0),(0,t.__decorate)([o.deserialize,(0,t.__metadata)("design:type",Object)],_.prototype,"_links",void 0),(0,t.__decorate)([(0,i.p4)(h.B),(0,t.__metadata)("design:type",n.y)],_.prototype,"item",void 0),_=(0,t.__decorate)([i.KB],_)},5915:(R,c,e)=>{"use strict";e.d(c,{I:()=>n});const n=new(e(3879)._)("profile")},96577:(R,c,e)=>{"use strict";e.d(c,{E:()=>ee});var K,t=e(70655),n=e(80529),o=e(34793),i=e(39646),d=e(54004),r=e(40367),a=e(86099),p=e(46418),h=e(43015),m=e(58943),_=e(71761),v=e(83639),E=e(31241),O=e(93498),b=e(68285),M=e(31736),P=e(5915),D=e(25130),l=e(24702),C=e(93369),I=e(58577),g=e(72839),B=e(60210),L=e(99678),V=e(74508),Y=e(90330),X=e(21147),te=e(94650);let ee=((K=class extends g.t{constructor(Q,j,k,G,ie,ne,q,oe){super("profiles",Q,j,k,G,1e4),this.requestService=Q,this.rdbService=j,this.objectCache=k,this.halService=G,this.notificationsService=ie,this.router=ne,this.comparator=q,this.itemService=oe,this.createData=new B.K(this.linkPath,Q,j,k,G,ie,this.responseMsToLive),this.patchData=new V.B(this.linkPath,Q,j,k,G,q,this.responseMsToLive,this.constructIdEndpoint),this.searchData=new L.l(this.linkPath,Q,j,k,G,this.responseMsToLive),this.deleteData=new Y.R(this.linkPath,Q,j,k,G,ie,this.responseMsToLive,this.constructIdEndpoint)}findByRelatedItem(Q){const j=Q.firstMetadata("dspace.object.owner")?.authority;return(0,l.xb)(j)?(0,I.DW)():this.findById(j)}findRelatedItemId(Q){return(Q.item?Q.item:this.itemService.findByHref(Q._links.item.href,!1)).pipe((0,b.hC)(),(0,d.U)(k=>k.hasSucceeded&&k.payload?k.payload.id:null))}setVisibility(Q,j){return this.patch(Q,[{path:"/visible",op:"replace",value:j}])}createFromExternalSource(Q){const j=Object.create({});let k=new n.WM;
1k=k.append("Content-Type","text/uri-list"),j.headers=k;const G=this.requestService.generateRequestId();return this.halService.getEndpoint(this.getLinkPath()).pipe((0,r.s)(ne=>(0,l.Uh)(ne)),(0,d.U)(ne=>this.buildHrefWithParams(ne,[],(0,C.l)("item")))).subscribe(ne=>{const q=new D.xo(G,ne,Q,j);this.requestService.send(q)}),this.rdbService.buildFromRequestUUID(G,(0,C.l)("item"))}createFromExternalSourceAndReturnRelatedItemId(Q){return this.createFromExternalSource(Q).pipe((0,b.hC)(),(0,a.z)(j=>j.hasSucceeded?this.findRelatedItemId(j.payload):(0,i.of)(null)))}create(Q,...j){return(0,l.xb)(Q)&&(Q=new M.T),this.createData.create(Q,...j)}searchBy(Q,j,k,G,...ie){return this.searchData.searchBy(Q,j,k,G,...ie)}getSearchByHref(Q,j,...k){return this.searchData.getSearchByHref(Q,j,...k)}commitUpdates(Q){this.patchData.commitUpdates(Q)}createPatchFromCache(Q){return this.patchData.createPatchFromCache(Q)}patch(Q,j){return this.patchData.patch(Q,j)}update(Q){return this.patchData.update(Q)}delete(Q,j){return this.deleteData.delete(Q,j)}deleteByHref(Q,j){return this.deleteData.deleteByHref(Q,j)}}).\u0275fac=function(Q){return new(Q||K)(te.\u0275\u0275inject(E.s),te.\u0275\u0275inject(h.Q),te.\u0275\u0275inject(m.a),te.\u0275\u0275inject(O.q),te.\u0275\u0275inject(p.T),te.\u0275\u0275inject(o.F0),te.\u0275\u0275inject(_.v),te.\u0275\u0275inject(v.S))},K.\u0275prov=te.\u0275\u0275defineInjectable({token:K,factory:K.\u0275fac}),K);ee=(0,t.__decorate)([(0,X.cQ)(P.I),(0,t.__metadata)("design:paramtypes",[E.s,h.Q,m.a,O.q,p.T,o.F0,_.v,v.S])],ee)},45879:(R,c,e)=>{"use strict";e.d(c,{k:()=>I});var t=e(39841),n=e(24702),o=e(68285),i=e(89653),d=e(59898),r=e(54004),a=e(86099),p=e(18505),h=e(46418),m=e(39763),_=e(55237),v=e(81964),E=e(17481),O=e(94650),b=e(89383);const M=g=>g.metadataRegistry,P=(0,i.P1)(M,g=>g.editSchema),D=(0,i.P1)(M,g=>g.selectedSchemas),l=(0,i.P1)(M,g=>g.editField),C=(0,i.P1)(M,g=>g.selectedFields);let I=(()=>{class g{constructor(L,V,Y,X,te){this.store=L,this.notificationsService=V,this.translateService=Y,this.metadataSchemaService=X,this.metadataFieldService=te}getMetadataSchemas(L={},V=!0,Y=!0,...X){return this.metadataSchemaService.findAll(L,V,Y,...X)}getMetadataSchemaByPrefix(L,V=!0,Y=!0,...X){const te=Object.assign(new E.R,{elementsPerPage:1e4});return this.getMetadataSchemas(te).pipe((0,o.Gp)(),(0,r.U)(K=>K.page),(0,n.iy)(),(0,r.U)(K=>K.filter(ee=>ee.prefix===L)[0]),(0,a.z)(K=>this.metadataSchemaService.findById(`${K.id}`,V,Y,...X)))}getMetadataFieldsBySchema(L,V={},Y=!0,X=!0,...te){return this.metadataFieldService.findBySchema(L,V,Y,X,...te)}editMetadataSchema(L){this.store.dispatch(new d.YJ(L))}cancelEditMetadataSchema(){this.store.dispatch(new d.ZQ)}getActiveMetadataSchema(){return this.store.pipe((0,i.Ys)(P))}selectMetadataSchema(L){this.store.dispatch(new d.c1(L))}deselectMetadataSchema(L){this.store.dispatch(new d.n2(L))}deselectAllMetadataSchema(){this.store.dispatch(new d.$U)}getSelectedMetadataSchemas(){return this.store.pipe((0,i.Ys)(D))}editMetadataField(L){this.store.dispatch(new d.O3(L))}cancelEditMetadataField(){this.store.dispatch(new d.xG)}getActiveMetadataField(){return this.store.pipe((0,i.Ys)(l))}selectMetadataField(L){this.store.dispatch(new d.ux(L))}deselectMetadataField(L){this.store.dispatch(new d.J5(L))}deselectAllMetadataField(){this.store.dispatch(new d.A9)}getSelectedMetadataFields(){return this.store.pipe((0,i.Ys)(C))}createOrUpdateMetadataSchema(L){const V=(0,n.Uh)(L.id);return this.metadataSchemaService.createOrUpdateMetadataSchema(L).pipe((0,o.Gp)(),(0,n.tz)(),(0,p.b)(()=>{this.showNotifications(!0,V,!1,{prefix:L.prefix})}))}deleteMetadataSchema(L){return this.metadataSchemaService.delete(`${L}`)}clearMetadataSchemaRequests(){return this.metadataSchemaService.clearRequests()}createMetadataField(L,V){return L.qualifier||(L.qualifier=null),this.metadataFieldService.create(L,new v.g("schemaId",V.id)).pipe((0,o.Gp)(),(0,n.tz)(),(0,p.b)(()=>{this.showNotifications(!0,!1,!0,{field:L.toString()})}))}updateMetadataField(L){return L.qualifier||(L.qualifier=null),this.metadataFieldService.put(L).pipe((0,o.Gp)(),(0,n.tz)(),(0,p.b)(()=>
1{this.showNotifications(!0,!0,!0,{field:L.toString()})}))}deleteMetadataField(L){return this.metadataFieldService.delete(`${L}`)}clearMetadataFieldRequests(){this.metadataFieldService.clearRequests()}showNotifications(L,V,Y,X){const te="admin.registries.schema.notification",ee=V?"edited":"created";(0,t.a)(this.translateService.get(`${te}.${L?"success":"failure"}`),this.translateService.get(`${te}${Y?".field":""}.${ee}`,X)).subscribe(([Q,j])=>{L?this.notificationsService.success(Q,j):this.notificationsService.error(Q,j)})}queryMetadataFields(L,V={},Y=!0,X=!0,...te){return this.metadataFieldService.searchByFieldNameParams(null,null,null,L,null,V,Y,X,...te)}}return g.\u0275fac=function(L){return new(L||g)(O.\u0275\u0275inject(i.yh),O.\u0275\u0275inject(h.T),O.\u0275\u0275inject(b.sK),O.\u0275\u0275inject(m.$),O.\u0275\u0275inject(_.c))},g.\u0275prov=O.\u0275\u0275defineInjectable({token:g,factory:g.\u0275fac}),g})()},20204:(R,c,e)=>{"use strict";e.d(c,{w:()=>d});var t=e(63645),n=e(24702),o=e(94650),i=e(34793);let d=(()=>{class r{constructor(p,h){this.router=p,this.appConfig=h}canActivate(p,h){if((0,n.UE)(p.queryParams.redirect)){const m=p.queryParams.redirect.startsWith(this.appConfig.ui.nameSpace)?p.queryParams.redirect.substring(this.appConfig.ui.nameSpace.length):p.queryParams.redirect;return this.router.parseUrl(m)}return this.router.createUrlTree(["home"])}}return r.\u0275fac=function(p){return new(p||r)(o.\u0275\u0275inject(i.F0),o.\u0275\u0275inject(t.q))},r.\u0275prov=o.\u0275\u0275defineInjectable({token:r,factory:r.\u0275fac}),r})()},8136:(R,c,e)=>{"use strict";e.d(c,{K:()=>o});const n={RESOLVED:(0,e(79472).d)("dspace/resolver/RESOLVED")};class o{constructor(d,r){this.type=n.RESOLVED,this.payload={url:d,dso:r}}}},68720:(R,c,e)=>{"use strict";e.d(c,{A:()=>v});var _,t=e(70655),n=e(29923),o=e(19782),i=e(18528),d=e(74648),r=e(63037),a=e(3879),p=e(69751),h=e(77572),m=e(71508);let v=((_=class{}).type=d.A,_);(0,t.__decorate)([n.autoserialize,(0,t.__metadata)("design:type",String)],v.prototype,"id",void 0),(0,t.__decorate)([n.autoserialize,(0,t.__metadata)("design:type",String)],v.prototype,"name",void 0),(0,t.__decorate)([n.autoserialize,(0,t.__metadata)("design:type",String)],v.prototype,"description",void 0),(0,t.__decorate)([n.autoserialize,(0,t.__metadata)("design:type",String)],v.prototype,"policyType",void 0),(0,t.__decorate)([n.autoserialize,(0,t.__metadata)("design:type",Object)],v.prototype,"action",void 0),(0,t.__decorate)([n.autoserialize,(0,t.__metadata)("design:type",String)],v.prototype,"startDate",void 0),(0,t.__decorate)([n.autoserialize,(0,t.__metadata)("design:type",String)],v.prototype,"endDate",void 0),(0,t.__decorate)([r.OJ,n.autoserialize,(0,t.__metadata)("design:type",a._)],v.prototype,"type",void 0),(0,t.__decorate)([(0,n.deserializeAs)(new i.$("resource-policy"),"id"),(0,t.__metadata)("design:type",String)],v.prototype,"uuid",void 0),(0,t.__decorate)([n.deserialize,(0,t.__metadata)("design:type",Object)],v.prototype,"_links",void 0),(0,t.__decorate)([(0,o.p4)(m.U),(0,t.__metadata)("design:type",p.y)],v.prototype,"eperson",void 0),(0,t.__decorate)([(0,o.p4)(h.o),(0,t.__metadata)("design:type",p.y)],v.prototype,"group",void 0),v=(0,t.__decorate)([o.KB],v)},74648:(R,c,e)=>{"use strict";e.d(c,{A:()=>n});const n=new(e(3879)._)("resourcepolicy")},24886:(R,c,e)=>{"use strict";e.d(c,{I:()=>te});var X,t=e(70655),n=e(80529),o=e(31241),i=e(93498),d=e(43015),r=e(58943),a=e(46418),p=e(74648),h=e(71761),m=e(81964),_=e(24702),v=e(54004),E=e(50590),O=e(68285),b=e(17481),M=e(25130),P=e(57244),D=e(45061),l=e(43499),C=e(72839),I=e(60210),g=e(99678),B=e(74508),L=e(90330),V=e(21147),Y=e(94650);let te=((X=class extends C.t{constructor(ee,ae,Q,j,k,G,ie,ne){super("resourcepolicies",ee,ae,Q,j),this.requestService=ee,this.rdbService=ae,this.objectCache=Q,this.halService=j,this.notificationsService=k,this.comparator=G,this.ePersonService=ie,this.groupService=ne,this.searchByEPersonMethod="eperson",this.searchByGroupMethod="group",this.searchByResourceMethod="resource",this.createData=new I.K(this.linkPath,ee,ae,Q,j,k,this.responseMsToLive),this.searchData=new g.l(this.linkPath,ee,ae,Q,j,this.responseMsToLive),this.patchData=new B.B(this.linkPath,ee,ae,Q,j,G,this.responseMsToLive,this.constructIdEndpoint),this.deleteData=new L.R(this.linkPath,ee,ae,Q,j,k,this.responseMsToLive,this.constructIdEndpoint)}create(ee,ae,Q,j){const k=[];return k.push(new m.g("resource",ae)),(0,_.UE)(Q)?k.push(new m.g("eperson",Q)):(0,_.UE)(j)&&k.push(new m.g("group",j)),this.createData.create(ee,...k)}delete(ee){return this.deleteData.delete(ee).pipe((0,O.hC)(),(0,v.U)(ae=>ae.hasSucceeded))}update(ee){return this.patchData.update(ee)}getDefaultAccessConditionsFor(ee,ae){return this.findListByHref(ee._links.defaultAccessConditions.href,ae)}searchByEPerson(ee,ae,Q=!0,j=!0,...k){const G=new b.R;return G.searchParams=[new m.g("uuid",ee)],(0,_.UE)(ae)&&G.searchParams.push(new m.g("resource",ae)),this.searchData.searchBy(this.searchByEPersonMethod,G,Q,j,...k)}searchByGroup(ee,ae,Q=!0,j=!0,...k){const G=new b.R;return G.searchParams=[new m.g("uuid",ee)],(0,_.UE)(ae)&&G.searchParams.push(new m.g("resource",ae)),this.searchData.searchBy(this.searchByGroupMethod,G,Q,j,...k)}searchByResource(ee,ae,Q=!0,j=!0,...k){const G=new b.R;return G.searchParams=[new m.g("uuid",ee)],(0,_.UE)(ae)&&G.searchParams.push(new m.g("action",ae)),this.searchData.searchBy(this.searchByResourceMethod,G,Q,j,...k)}updateTarget(ee,ae,Q,j){const G=("eperson"===j?this.ePersonService:this.groupService).getIDHrefObs(Q),ie=Object.create({});let ne=new n.WM;
1ne=ne.append("Content-Type","text/uri-list"),ie.headers=ne;const q=this.requestService.generateRequestId();return G.pipe((0,E.P)()).subscribe(oe=>{const ye=new M.an(q,ae+"/"+j,oe,ie);Object.assign(ye,{getResponseParser:()=>P.o}),this.requestService.send(ye)}),this.rdbService.buildFromRequestUUIDAndAwait(q,()=>this.invalidateByHref(ae))}}).\u0275fac=function(ee){return new(ee||X)(Y.\u0275\u0275inject(o.s),Y.\u0275\u0275inject(d.Q),Y.\u0275\u0275inject(r.a),Y.\u0275\u0275inject(i.q),Y.\u0275\u0275inject(a.T),Y.\u0275\u0275inject(h.v),Y.\u0275\u0275inject(D.k),Y.\u0275\u0275inject(l.O))},X.\u0275prov=Y.\u0275\u0275defineInjectable({token:X,factory:X.\u0275fac}),X);te=(0,t.__decorate)([(0,V.cQ)(p.A),(0,t.__metadata)("design:paramtypes",[o.s,d.Q,r.a,i.q,a.T,h.v,D.k,l.O])],te)},147:(R,c,e)=>{"use strict";e.d(c,{G:()=>t});var t=(()=>{return(n=t||(t={})).Submitter="submitter",n.Controller="controller",n.Admin="admin",t;var n})()},67837:(R,c,e)=>{"use strict";e.d(c,{N:()=>r});var t=e(39646),n=e(71884),o=e(147),i=e(36391),d=e(94650);let r=(()=>{class a{constructor(h){this.collectionService=h}isSubmitter(){return this.collectionService.hasAuthorizedCollection().pipe((0,n.x)())}isController(){return(0,t.of)(!0)}isAdmin(){return(0,t.of)(!1)}checkRole(h){let m;switch(h){case o.G.Submitter:m=this.isSubmitter();break;case o.G.Controller:m=this.isController();break;case o.G.Admin:m=this.isAdmin()}return m}}return a.\u0275fac=function(h){return new(h||a)(d.\u0275\u0275inject(i.W))},a.\u0275prov=d.\u0275\u0275defineInjectable({token:a,factory:a.\u0275fac}),a})()},57388:(R,c,e)=>{"use strict";e.d(c,{N:()=>i});var t=e(38419),n=e(77579),o=e(94650);let i=(()=>{class d{constructor(a){this.req=a,this.cookieSource=new n.x,this.cookies$=this.cookieSource.asObservable()}updateSource(){this.cookieSource.next(this.getAll())}}return d.\u0275fac=function(a){return new(a||d)(o.\u0275\u0275inject(t.Z))},d.\u0275prov=o.\u0275\u0275defineInjectable({token:d,factory:d.\u0275fac}),d})()},61445:(R,c,e)=>{"use strict";e.d(c,{A:()=>n});var t=e(94650);let n=(()=>{class o{}return o.\u0275fac=function(d){return new(d||o)},o.\u0275prov=t.\u0275\u0275defineInjectable({token:o,factory:o.\u0275fac}),o})()},46377:(R,c,e)=>{"use strict";e.d(c,{U:()=>o});var t=e(94650),n=e(36895);let o=(()=>{class i{constructor(r,a){this.rendererFactory=r,this.document=a}addTag(r){try{const a=this.rendererFactory.createRenderer(this.document,{id:"-1",encapsulation:t.ViewEncapsulation.None,styles:[],data:{}}),p=a.createElement("link"),h=this.document.head;if(null===h)throw new Error("<head> not found within DOCUMENT.");return Object.keys(r).forEach(m=>a.setAttribute(p,m,r[m])),a.appendChild(h,p),a}catch(a){console.error("Error within linkService : ",a)}}removeTag(r){if(r)try{const a=this.rendererFactory.createRenderer(this.document,{id:"-1",encapsulation:t.ViewEncapsulation.None,styles:[],data:{}}),p=this.document.head;if(null===p)throw new Error("<head> not found within DOCUMENT.");const h=this.document.querySelectorAll("link["+r+"]");for(const m of h)a.removeChild(p,m)}catch(a){console.log("Error while removing tag "+a.message)}}}return i.\u0275fac=function(r){return new(r||i)(t.\u0275\u0275inject(t.RendererFactory2),t.\u0275\u0275inject(n.K0))},i.\u0275prov=t.\u0275\u0275defineInjectable({token:i,factory:i.\u0275fac}),i})()},66481:(R,c,e)=>{"use strict";e.d(c,{V:()=>n});var t=e(94650);let n=(()=>{class o{}return o.\u0275fac=function(d){return new(d||o)},o.\u0275prov=t.\u0275\u0275defineInjectable({token:o,factory:o.\u0275fac}),o})()},19799:(R,c,e)=>{"use strict";e.d(c,{E3:()=>h,Ei:()=>n,Q7:()=>p,Zr:()=>a,bX:()=>o,jr:()=>r,wq:()=>i});var t=e(79472);const n={SET_QUERY_PARAMETERS:(0,t.d)("dspace/core/route/SET_QUERY_PARAMETERS"),SET_PARAMETERS:(0,t.d)("dspace/core/route/SET_PARAMETERS"),ADD_QUERY_PARAMETER:(0,t.d)("dspace/core/route/ADD_QUERY_PARAMETER"),ADD_PARAMETER:(0,t.d)("dspace/core/route/ADD_PARAMETER"),SET_QUERY_PARAMETER:(0,t.d)("dspace/core/route/SET_QUERY_PARAMETER"),SET_PARAMETER:(0,t.d)("dspace/core/route/SET_PARAMETER"),RESET:(0,t.d)("dspace/core/route/RESET")};class o{constructor(_){this.type=n.SET_QUERY_PARAMETERS,this.payload=_}}class i{constructor(_){this.type=n.SET_PARAMETERS,this.payload=_}}
1class r{constructor(_,v){this.type=n.ADD_PARAMETER,this.payload={key:_,value:v}}}class a{constructor(_,v){this.type=n.SET_QUERY_PARAMETER,this.payload={key:_,value:v}}}class p{constructor(_,v){this.type=n.SET_PARAMETER,this.payload={key:_,value:v}}}class h{constructor(){this.type=n.RESET}}},5360:(R,c,e)=>{"use strict";e.d(c,{MZ:()=>I});var t=e(54004),n=e(71884),o=e(39300),i=e(95698),d=e(34793),r=e(39841),a=e(89653),p=e(64509),h=e.n(p),m=e(19799),_=e(1588),v=e(24702);const E=(0,a.P1)(_.v,g=>g.history);var O=e(36205),b=e(94650);const M=(0,a.P1)(_.v,g=>(0,v.Uh)(g)&&(0,v.Uh)(g.route)?g.route.params:void 0);(0,a.P1)(_.v,g=>(0,v.Uh)(g)&&(0,v.Uh)(g.route)?g.route.queryParams:void 0);let I=(()=>{class g{constructor(L,V,Y){this.route=L,this.router=V,this.store=Y,this.saveRouting()}getQueryParameterValues(L){return this.getQueryParamMap().pipe((0,t.U)(V=>[...V.getAll(L)]),(0,n.x)((V,Y)=>JSON.stringify(V)===JSON.stringify(Y)))}getQueryParameterValue(L){return this.getQueryParamMap().pipe((0,t.U)(V=>V.get(L)),(0,n.x)())}hasQueryParam(L){return this.getQueryParamMap().pipe((0,t.U)(V=>V.has(L)),(0,n.x)())}hasQueryParamWithValue(L,V){return this.getQueryParamMap().pipe((0,t.U)(Y=>Y.getAll(L).indexOf(V)>-1),(0,n.x)())}getRouteParameterValue(L){return this.store.pipe((0,a.Ys)((g=>function C(g,B){return(0,a.P1)(B,L=>{if((0,v.Uh)(L))return L[g]})}(g,M))(L)))}getRouteDataValue(L){return this.route.data.pipe((0,t.U)(V=>V[L]),(0,n.x)())}getQueryParamsWithPrefix(L){return this.getQueryParamMap().pipe((0,t.U)(V=>{const Y={};return V.keys.filter(X=>X.startsWith(L)).forEach(X=>{Y[X]=[...V.getAll(X)]}),Y}),(0,n.x)((V,Y)=>JSON.stringify(V)===JSON.stringify(Y)))}getQueryParamMap(){return this.route.queryParamMap.pipe((0,t.U)(L=>{const V=this.router.routerState.snapshot;return h()(L,V.root.queryParamMap)?L:V.root.queryParamMap}))}saveRouting(){this.router.events.pipe((0,o.h)(L=>L instanceof d.m2)).subscribe(L=>{this.store.dispatch(new O.R(L.urlAfterRedirects))})}getRouteParams(){let L=this.route;for(;L.firstChild;)L=L.firstChild;return L.params}getHistory(){return this.store.pipe((0,a.Ys)(E))}getCurrentUrl(){return this.getHistory().pipe((0,t.U)(L=>L[L.length-1]||""))}
1getPreviousUrl(){return this.getHistory().pipe((0,t.U)(L=>L[L.length-2]||""))}addParameter(L,V){this.store.dispatch(new m.jr(L,V))}setParameter(L,V){this.store.dispatch(new m.Q7(L,V))}setQueryParameter(L,V){this.store.dispatch(new m.Zr(L,V))}setCurrentRouteInfo(){(0,r.a)(this.getRouteParams(),this.route.queryParams).pipe((0,i.q)(1)).subscribe(([L,V])=>{this.store.dispatch(new m.wq(L)),this.store.dispatch(new m.bX(V))})}}return g.\u0275fac=function(L){return new(L||g)(b.\u0275\u0275inject(d.gz),b.\u0275\u0275inject(d.F0),b.\u0275\u0275inject(a.yh))},g.\u0275prov=b.\u0275\u0275defineInjectable({token:g,factory:g.\u0275fac,providedIn:"root"}),g})()},13014:(R,c,e)=>{"use strict";e.d(c,{N:()=>o});var t=e(38419),n=e(94650);let o=(()=>{class i{constructor(r){this.response=r}setStatus(r,a){return this.response&&(this.response.statusCode=r,a&&(this.response.statusMessage=a)),this}setUnauthorized(r="Unauthorized"){return this.setStatus(401,r)}setForbidden(r="Forbidden"){return this.setStatus(403,r)}setNotFound(r="Not found"){return this.setStatus(404,r)}setInternalServerError(r="Internal Server Error"){return this.setStatus(500,r)}setHeader(r,a){this.response&&this.response.setHeader(r,a)}}return i.\u0275fac=function(r){return new(r||i)(n.\u0275\u0275inject(t.Y,8))},i.\u0275prov=n.\u0275\u0275defineInjectable({token:i,factory:i.\u0275fac}),i})()},13465:(R,c,e)=>{"use strict";e.d(c,{AW:()=>o,DC:()=>n,VC:()=>i});const n=new(e(94650).InjectionToken)("NativeWindowService");class o{get nativeWindow(){return typeof window<"u"&&window}}function i(){return new o}},79237:(R,c,e)=>{"use strict";e.d(c,{e:()=>n});const n=new(e(3879)._)("authorization")},12691:(R,c,e)=>{"use strict";e.d(c,{Gh:()=>h,R5:()=>v,uB:()=>_});var t=e(39841),n=e(11365),o=e(39300),i=e(54004),d=e(94650),r=e(92071),a=e(50503);new d.InjectionToken("redirectOn4xx",{providedIn:"root",factory:()=>h});const h=(E,O)=>b=>b.pipe((0,n.M)(O.isAuthenticated()),(0,o.h)(([M,P])=>{if(M.hasFailed){if(404===M.statusCode||422===M.statusCode)return E.navigateByUrl((0,a.ro)(),{skipLocationChange:!0}),!1;if(403===M.statusCode||401===M.statusCode)return P?(E.navigateByUrl((0,a.dd)(),{skipLocationChange:!0}),!1):(O.setRedirectUrl(E.url),E.navigateByUrl("login"),!1)}return!0}),(0,i.U)(([M])=>M)),_=(E,O,b)=>M=>(0,t.a)(M,O.isAuthenticated()).pipe((0,i.U)(([P,D])=>!!P.some(l=>!0===l)||(D?E.parseUrl((0,a.dd)()):(O.setRedirectUrl(b),E.parseUrl("login"))))),v=(E,O)=>b=>b.pipe((0,i.U)(M=>{const P={redirect:encodeURIComponent(O)};return M||E.createUrlTree([(0,r.ru)()],{queryParams:P})}))},25961:(R,c,e)=>{"use strict";e.d(c,{A:()=>h});var p,t=e(70655),n=e(29923),o=e(19782),i=e(18528),d=e(63037),r=e(6629),a=e(3879);let h=((p=class{}).type=r.J,p);(0,t.__decorate)([d.OJ,n.autoserialize,(0,t.__metadata)("design:type",a._)],h.prototype,"type",void 0),(0,t.__decorate)([n.autoserialize,(0,t.__metadata)("design:type",String)],h.prototype,"shortDescription",void 0),(0,t.__decorate)([n.autoserialize,(0,t.__metadata)("design:type",String)],h.prototype,"description",void 0),(0,t.__decorate)([n.autoserialize,(0,t.__metadata)("design:type",String)],h.prototype,"mimetype",void 0),(0,t.__decorate)([n.autoserialize,(0,t.__metadata)("design:type",String)],h.prototype,"supportLevel",void 0),(0,t.__decorate)([n.autoserialize,(0,t.__metadata)("design:type",Boolean)],h.prototype,"internal",void 0),(0,t.__decorate)([n.autoserialize,(0,t.__metadata)("design:type",Array)],h.prototype,"extensions",void 0),(0,t.__decorate)([(0,n.deserializeAs)(new i.$("bitstream-format"),"id"),(0,t.__metadata)("design:type",String)],h.prototype,"uuid",void 0),(0,t.__decorate)([n.autoserialize,(0,t.__metadata)("design:type",String)],h.prototype,"id",void 0),(0,t.__decorate)([n.deserialize,(0,t.__metadata)("design:type",Object)],h.prototype,"_links",void 0),h=(0,t.__decorate)([o.KB],h)},6629:(R,c,e)=>{"use strict";e.d(c,{J:()=>n});const n=new(e(3879)._)("bitstreamformat")},59161:(R,c,e)=>{"use strict";e.d(c,{Z:()=>m});var h,t=e(70655),n=e(29923),o=e(69751),i=e(19782),d=e(6629),r=e(90291),a=e(42621),p=e(24602);let m=((h=class extends a.t{getParentLinkKey(){return"format"}}).type=r.a,h);(0,t.__decorate)([n.autoserialize,(0,t.__metadata)("design:type",Number)],m.prototype,"sizeBytes",void 0),(0,t.__decorate)([n.autoserialize,(0,t.__metadata)("design:type",String)],m.prototype,"description",void 0),(0,t.__decorate)([n.autoserialize,(0,t.__metadata)("design:type",String)],m.prototype,"bundleName",void 0),(0,t.__decorate)([n.deserialize,(0,t.__metadata)("design:type",Object)],m.prototype,"_links",void 0),(0,t.__decorate)([(0,i.p4)(r.a,!1,"thumbnail"),(0,t.__metadata)("design:type",o.y)],m.prototype,"thumbnail",void 0),(0,t.__decorate)([(0,i.p4)(d.J,!1,"format"),(0,t.__metadata)("design:type",o.y)],m.prototype,"format",void 0),(0,t.__decorate)([(0,i.p4)(p.c),(0,t.__metadata)("design:type",o.y)],m.prototype,"bundle",void 0),m=(0,t.__decorate)([i.KB,(0,n.inheritSerialization)(a.t)],m)},90291:(R,c,e)=>{"use strict";e.d(c,{a:()=>n});const n=new(e(3879)._)("bitstream")},42895:(R,c,e)=>{"use strict";e.d(c,{D:()=>i});var t=e(70655),n=e(29923),o=e(93490);class i extends o.X{}(0,t.__decorate)([n.autoserialize,(0,t.__metadata)("design:type",String)],i.prototype,"id",void 0),(0,t.__decorate)([(0,n.autoserializeAs)("metadata"),(0,t.__metadata)("design:type",Array)],i.prototype,"metadataKeys",void 0)},31053:(R,c,e)=>{"use strict";e.d(c,{S:()=>n});const n=new(e(3879)._)("browse")},94554:(R,c,e)=>{"use strict";e.d(c,{g:()=>h});var t=e(70655),n=e(29923),o=e(88648),i=e(19782),d=e(63037),r=e(3879);const a=new r._("browseEntry");var p;let h=((p=class extends o.J{getRenderTypes(){return[this.constructor]}}).type=a,p);(0,t.__decorate)([d.OJ,n.autoserialize,(0,t.__metadata)("design:type",r._)],h.prototype,"type",void 0),(0,t.__decorate)([n.autoserialize,(0,t.__metadata)("design:type",String)],h.prototype,"authority",void 0),(0,t.__decorate)([n.autoserialize,(0,t.__metadata)("design:type",String)],h.prototype,"value",void 0),(0,t.__decorate)([(0,n.autoserializeAs)("valueLang"),(0,t.__metadata)("design:type",String)],h.prototype,"language",void 0),(0,t.__decorate)([(0,n.autoserializeAs)("thumbnail"),(0,t.__metadata)("design:type",String)],h.prototype,"thumbnail",void 0),(0,t.__decorate)([d.OJ,n.autoserialize,(0,t.__metadata)("design:type",Number)],h.prototype,"count",void 0),(0,t.__decorate)([n.deserialize,(0,t.__metadata)("design:type",Object)],h.prototype,"_links",void 0),h=(0,t.__decorate)([i.KB],h)},11221:(R,c,e)=>{"use strict";e.d(c,{b:()=>m});var h,t=e(70655),n=e(29923),o=e(69751),i=e(19782),d=e(24602),r=e(42621),a=e(90291),p=e(14601);let m=((h=class extends r.t{}).type=d.c,h);(0,t.__decorate)([n.deserialize,(0,t.__metadata)("design:type",Object)],m.prototype,"_links",void 0),(0,t.__decorate)([(0,i.p4)(a.a),(0,t.__metadata)("design:type",o.y)],m.prototype,"primaryBitstream",void 0),(0,t.__decorate)([(0,i.p4)(a.a,!0),(0,t.__metadata)("design:type",o.y)],m.prototype,"bitstreams",void 0),(0,t.__decorate)([(0,i.p4)(p.B),(0,t.__metadata)("design:type",o.y)],m.prototype,"item",void 0),m=(0,t.__decorate)([i.KB,(0,n.inheritSerialization)(r.t)],m)},24602:(R,c,e)=>{"use strict";e.d(c,{c:()=>n});const n=new(e(3879)._)("bundle")},22979:(R,c,e)=>{"use strict";e.d(c,{F:()=>E}
1);var v,t=e(70655),n=e(29923),o=e(69751),i=e(19782),d=e(90291),r=e(86076),a=e(42621),p=e(4343),h=e(74648),m=e(61146),_=e(63037);let E=((v=class extends a.t{get handle(){return this.firstMetadataValue("dc.identifier.uri")}get introductoryText(){return this.firstMetadataValue("dc.description")}get shortDescription(){return this.firstMetadataValue("dc.description.abstract")}get copyrightText(){return this.firstMetadataValue("dc.rights")}get dcLicense(){return this.firstMetadataValue("dc.rights.license")}get sidebarText(){return this.firstMetadataValue("dc.description.tableofcontents")}getParentLinkKey(){return"parentCommunity"}}).type=r.d,v);(0,t.__decorate)([_.OJ,n.autoserialize,(0,t.__metadata)("design:type",Number)],E.prototype,"archivedItemsCount",void 0),(0,t.__decorate)([n.deserialize,(0,t.__metadata)("design:type",Object)],E.prototype,"_links",void 0),(0,t.__decorate)([(0,i.p4)(p.z),(0,t.__metadata)("design:type",o.y)],E.prototype,"license",void 0),(0,t.__decorate)([(0,i.p4)(d.a),(0,t.__metadata)("design:type",o.y)],E.prototype,"logo",void 0),(0,t.__decorate)([(0,i.p4)(h.A,!0),(0,t.__metadata)("design:type",o.y)],E.prototype,"defaultAccessConditions",void 0),(0,t.__decorate)([(0,i.p4)(m.v,!1),(0,t.__metadata)("design:type",o.y)],E.prototype,"parentCommunity",void 0),E=(0,t.__decorate)([i.KB,(0,n.inheritSerialization)(a.t)],E)},86076:(R,c,e)=>{"use strict";e.d(c,{d:()=>n});const n=new(e(3879)._)("collection")},21721:(R,c,e)=>{"use strict";e.d(c,{S:()=>_});var m,t=e(70655),n=e(29923),o=e(69751),i=e(19782),d=e(90291),r=e(86076),a=e(61146),p=e(42621),h=e(63037);let _=((m=class extends p.t{get handle(){return this.firstMetadataValue("dc.identifier.uri")}get introductoryText(){return this.firstMetadataValue("dc.description")}get shortDescription(){return this.firstMetadataValue("dc.description.abstract")}get copyrightText(){return this.firstMetadataValue("dc.rights")}get sidebarText(){return this.firstMetadataValue("dc.description.tableofcontents")}getParentLinkKey(){return"parentCommunity"}}).type=a.v,m);(0,t.__decorate)([h.OJ,n.autoserialize,(0,t.__metadata)("design:type",Number)],_.prototype,"archivedItemsCount",void 0),(0,t.__decorate)([n.deserialize,(0,t.__metadata)("design:type",Object)],_.prototype,"_links",void 0),(0,t.__decorate)([(0,i.p4)(d.a),(0,t.__metadata)("design:type",o.y)],_.prototype,"logo",void 0),(0,t.__decorate)([(0,i.p4)(r.d,!0),(0,t.__metadata)("design:type",o.y)],_.prototype,"collections",void 0),(0,t.__decorate)([(0,i.p4)(a.v,!0),(0,t.__metadata)("design:type",o.y)],_.prototype,"subcommunities",void 0),(0,t.__decorate)([(0,i.p4)(a.v,!1),(0,t.__metadata)("design:type",o.y)],_.prototype,"parentCommunity",void 0),_=(0,t.__decorate)([i.KB,(0,n.inheritSerialization)(p.t)],_)},61146:(R,c,e)=>{"use strict";e.d(c,{v:()=>n});const n=new(e(3879)._)("community")},15085:(R,c,e)=>{"use strict";e.d(c,{N:()=>t});var t=(()=>{return(n=t||(t={}))[n.CF_ACCEPTED=600]="CF_ACCEPTED",n[n.CF_UNCERTAIN=500]="CF_UNCERTAIN",n[n.CF_AMBIGUOUS=400]="CF_AMBIGUOUS",n[n.CF_NOTFOUND=300]="CF_NOTFOUND",n[n.CF_FAILED=200]="CF_FAILED",n[n.CF_REJECTED=100]="CF_REJECTED",n[n.CF_NOVALUE=0]="CF_NOVALUE",n[n.CF_UNSET=-1]="CF_UNSET",t;var n})()},63220:(R,c,e)=>{"use strict";e.d(c,{o:()=>n});const n=new(e(3879)._)("property")},78115:(R,c,e)=>{"use strict";e.d(c,{q:()=>n});var t=e(24702);class n{Serialize(i){return(0,t.xb)(i)?"all":i}Deserialize(i){return"all"===i?"":i}}},54491:(R,c,e)=>{"use strict";e.d(c,{i:()=>_,V:()=>m});var t=e(70655),n=e(29923),o=e(19782),i=e(3879);const d=new i._("contentsource");var h,r=e(63037),a=e(93490),p=e(78115),m=(()=>{return(v=m||(m={})).None="NONE",v.Metadata="METADATA_ONLY",v.MetadataAndRef="METADATA_AND_REF",v.MetadataAndBitstreams="METADATA_AND_BITSTREAMS",m;var v})();let _=((h=class extends a.X{constructor(){super(...arguments),this.type=d,this.harvestType=m.None}}).type=d,h);(0,t.__decorate)([r.OJ,(0,t.__metadata)("design:type",i._)],_.prototype,"type",void 0),(0,t.__decorate)([(0,n.deserializeAs)("self"),(0,t.__metadata)("design:type",String)],_.prototype,"uuid",void 0),(0,t.__decorate)([(0,n.autoserializeAs)("oai_source"),(0,t.__metadata)("design:type",String)],_.prototype,"oaiSource",void 0),(0,t.__decorate)([(0,n.deserializeAs)(new p.q,"oai_set_id"),(0,n.serializeAs)(new p.q,"oai_set_id"),(0,t.__metadata)("design:type",String)],_.prototype,"oaiSetId",void 0),(0,t.__decorate)([(0,n.autoserializeAs)("metadata_config_id"),(0,t.__metadata)("design:type",String)],_.prototype,"metadataConfigId",void 0),(0,t.__decorate)([(0,n.autoserializeAs)("harvest_type"),(0,t.__metadata)("design:type",Object)],_.prototype,"harvestType",void 0),(0,t.__decorate)([(0,n.autoserializeAs)("harvest_status"),(0,t.__metadata)("design:type",String)],_.prototype,"harvestStatus",void 0),(0,t.__decorate)([(0,n.autoserializeAs)("harvest_start_time"),(0,t.__metadata)("design:type",String)],_.prototype,"harvestStartTime",void 0),(0,t.__decorate)([(0,n.autoserializeAs)("last_harvested"),(0,t.__metadata)("design:type",String)],_.prototype,"lastHarvested",void 0),(0,t.__decorate)([(0,n.autoserializeAs)("harvest_message"),(0,t.__metadata)("design:type",String)],_.prototype,"message",void 0),(0,t.__decorate)([n.deserialize,(0,t.__metadata)("design:type",Object)],_.prototype,"_links",void 0),_=(0,t.__decorate)([o.KB],_)},84935:(R,c,e)=>{"use strict";e.d(c,{_:()=>t});var t=(()=>{return(n=t||(t={})).Any="undefined",n.ItemPage="itemPage",n.Search="search",n.Workflow="workflow",n.Worksp
1ace="workspace",n.SupervisedItems="supervisedWorkspace",n.AdminMenu="adminMenu",n.EntitySearchModalWithNameVariants="EntitySearchModalWithNameVariants",n.EntitySearchModal="EntitySearchModal",n.AdminSearch="adminSearch",n.AdminWorkflowSearch="adminWorkflowSearch",n.SideBarSearchModal="sideBarSearchModal",n.SideBarSearchModalCurrent="sideBarSearchModalCurrent",n.MyDSpaceArchived="mydspaceArchived",n.MyDSpaceWorkspace="mydspaceWorkspace",n.MyDSpaceWorkflow="mydspaceWorkflow",n.MyDSpaceDeclined="mydspaceDeclined",n.MyDSpaceApproved="mydspaceApproved",n.MyDSpaceWaitingController="mydspaceWaitingController",n.MyDSpaceValidation="mydspaceValidation",n.Bitstream="bitstream",t;var n})()},80132:(R,c,e)=>{"use strict";function t(n,o){n.getValue()!==o&&n.next(o)}e.d(c,{e:()=>t})},95642:(R,c,e)=>{"use strict";e.d(c,{h:()=>t});var t=(()=>{return(n=t||(t={})).BUNDLE="BUNDLE",n.BITSTREAM="BITSTREAM",n.ITEM="ITEM",n.COLLECTION="COLLECTION",n.COMMUNITY="COMMUNITY",n.DSPACEOBJECT="DSPACEOBJECT",t;var n})()},42621:(R,c,e)=>{"use strict";e.d(c,{t:()=>v});var _,t=e(70655),n=e(29923),o=e(24702),i=e(88648),d=e(19782),r=e(63037),a=e(80371),p=e(79300),h=e(94569),m=e(3879);let v=((_=class extends i.J{get self(){return this._links.self.href}set self(O){this._links.self={href:O}}get name(){return(0,o.o8)(this._name)?this.firstMetadataValue("dc.title"):this._name}set name(O){(0,o.Uh)(this.firstMetadata("dc.title"))&&(this.firstMetadata("dc.title").value=O),this._name=O}get metadataAsList(){return h.S.toViewModelList(this.metadata)}allMetadata(O,b){return h.S.all(this.metadata,O,b)}allMetadataValues(O,b){return h.S.allValues(this.metadata,O,b)}firstMetadata(O,b){return h.S.first(this.metadata,O,b)}firstMetadataValue(O,b){return h.S.firstValue(this.metadata,O,b)}hasMetadata(O,b){return h.S.has(this.metadata,O,b)}findMetadataSortedByPlace(O){return this.allMetadata(O).sort((b,M)=>(0,o.xI)(b.place)&&(0,o.xI)(M.place)?0:(0,o.xI)(b.place)?-1:(0,o.xI)(M.place)?1:b.place-M.place)}getRenderTypes(){return[this.constructor]}setMetadata(O,b,...M){const P=M.map((D,l)=>{const C=new p.DA;return C.value=D,C.authority=null,C.confidence=-1,C.language=b||null,C.place=l,C});(0,o.xI)(this.metadata)&&(this.metadata=Object.create({})),this.metadata[O]=P}removeMetadata(O){delete this.metadata[O]}}).type=a.i,_);(0,t.__decorate)([r.OJ,(0,n.deserializeAs)("name"),(0,t.__metadata)("design:type",String)],v.prototype,"_name",void 0),(0,t.__decorate)([r.OJ,(0,n.autoserializeAs)(String,"uuid"),(0,t.__metadata)("design:type",String)],v.prototype,"id",void 0),(0,t.__decorate)([(0,n.autoserializeAs)(String),(0,t.__metadata)("design:type",String)],v.prototype,"uuid",void 0),(0,t.__decorate)([r.OJ,n.autoserialize,(0,t.__metadata)("design:type",m._)],v.prototype,"type",void 0),(0,t.__decorate)([r.OJ,(0,n.autoserializeAs)(p.RH),(0,t.__metadata)("design:type",p.Ro)],v.prototype,"metadata",void 0),(0,t.__decorate)([n.deserialize,(0,t.__metadata)("design:type",Object)],v.prototype,"_links",void 0),v=(0,t.__decorate)([d.KB],v)},80371:(R,c,e)=>{"use strict";e.d(c,{i:()=>n});const n=new(e(3879)._)("dspaceobject")},56237:(R,c,e)=>{"use strict";e.d(c,{T:()=>m});var t=e(70655),n=e(29923),o=e(88648),i=e(19782),d=e(63037),r=e(3879);const a=new r._("externalSourceEntry");var h,p=e(79300);let m=((h=class extends o.J{getRenderTypes(){return[this.constructor]}}).type=a,h);(0,t.__decorate)([n.autoserialize,(0,t.__metadata)("design:type",String)],m.prototype,"id",void 0),(0,t.__decorate)([d.OJ,n.autoserialize,(0,t.__metadata)("design:type",r._)],m.prototype,"type",void 0),(0,t.__decorate)([n.autoserialize,(0,t.__metadata)("design:type",String)],m.prototype,"display",void 0),(0,t.__decorate)([n.autoserialize,(0,t.__metadata)("design:type",String)],m.prototype,"value",void 0),(0,t.__decorate)([n.autoserialize,(0,t.__metadata)("design:type",String)],m.prototype,"externalSource",void 0),(0,t.__decorate)([(0,n.autoserializeAs)(p.RH),(0,t.__metadata)("design:type",p.Ro)],m.prototype,"metadata",void 0),(0,t.__decorate)([n.deserialize,(0,t.__metadata)("design:type",Object)],m.prototype,"_links",void 0),m=(0,t.__decorate)([i.KB],m)},46623:(R,c,e)=>{"use strict";e.d(c,{p:()=>_});var t=e(70655),n=e(29923),o=e(19782),i=e(63037),d=e(3879);const r=new d._("externalsource");var m,a=e(93490),p=e(69751),h=e(13762);
1let _=((m=class extends a.X{}).type=r,m);(0,t.__decorate)([i.OJ,n.autoserialize,(0,t.__metadata)("design:type",d._)],_.prototype,"type",void 0),(0,t.__decorate)([n.autoserialize,(0,t.__metadata)("design:type",String)],_.prototype,"id",void 0),(0,t.__decorate)([n.autoserialize,(0,t.__metadata)("design:type",String)],_.prototype,"name",void 0),(0,t.__decorate)([n.autoserialize,(0,t.__metadata)("design:type",Boolean)],_.prototype,"hierarchical",void 0),(0,t.__decorate)([(0,o.p4)(h.Z,!0),(0,t.__metadata)("design:type",p.y)],_.prototype,"entityTypes",void 0),(0,t.__decorate)([n.deserialize,(0,t.__metadata)("design:type",Object)],_.prototype,"_links",void 0),_=(0,t.__decorate)([o.KB],_)},33825:(R,c,e)=>{"use strict";e.d(c,{I:()=>p});var t=e(24755),n=e(95698),o=e(54004),i=e(13465),d=e(23631),r=e(24702),a=e(94650);let p=(()=>{class h{constructor(_,v){this._window=_,this.authService=v}retrieveFileDownloadLink(_){return this.authService.getShortlivedToken().pipe((0,n.q)(1),(0,o.U)(v=>(0,r.Uh)(v)?new d.R(_,`?authentication-token=${v}`).toString():_))}getFileNameFromResponseContentDisposition(_){const v=_.headers.get("content-disposition")||"";return((/filename="([^;]+)"/gi.exec(v)||[])[1]||"untitled").trim().replace(/\.[^/.]+$/,"")}}return h.\u0275fac=function(_){return new(_||h)(a.\u0275\u0275inject(i.DC),a.\u0275\u0275inject(t.e8))},h.\u0275prov=a.\u0275\u0275defineInjectable({token:h,factory:h.\u0275fac,providedIn:"root"}),h})()},1923:(R,c,e)=>{"use strict";e.d(c,{R:()=>h});var p,t=e(70655),n=e(29923),o=e(19782),i=e(63037),d=e(88822),r=e(3879),a=e(24539);let h=((p=class extends a.${constructor(){super(...arguments),this.type=d.E}get self(){return this._links.self.href}getRenderType(){return this.dataType}}).type=d.E,p);(0,t.__decorate)([i.OJ,(0,t.__metadata)("design:type",r._)],h.prototype,"type",void 0),(0,t.__decorate)([n.deserialize,(0,t.__metadata)("design:type",Object)],h.prototype,"_links",void 0),h=(0,t.__decorate)([o.KB,(0,n.inheritSerialization)(a.$)],h)},88822:(R,c,e)=>{"use strict";e.d(c,{E:()=>n});const n=new(e(3879)._)("flatBrowse")},93498:(R,c,e)=>{"use strict";e.d(c,{q:()=>b});var t=e(18505),n=e(39300),o=e(54004),i=e(95698),d=e(63900),r=e(68675),a=e(71884),p=e(31241),h=e(25130),m=e(24702),_=e(25309),v=e(68285),E=e(43015),O=e(94650);let b=(()=>{class M{constructor(D,l){this.requestService=D,this.rdbService=l}getRootHref(){return(new _.J).toString()}getRootEndpointMap(){return this.getEndpointMapAt(this.getRootHref())}getEndpointMapAt(D){const l=new h.Xe(this.requestService.generateRequestId(),D);return this.requestService.send(l,!0),this.rdbService.buildFromHref(D).pipe((0,t.b)(C=>{(0,m.Uh)(C)&&C.isStale&&this.getEndpointMapAt(D)}),(0,n.h)(C=>!C.isStale),(0,v.hC)(),(0,o.U)(C=>{if((0,m.Uh)(C.payload))return C.payload._links;console.warn(`No _links section found at ${D}`)}))}getEndpoint(D,l){const C=D.split("/").filter(I=>(0,m.UE)(I));return this.getEndpointAt(l||this.getRootHref(),...C).pipe((0,i.q)(1))}getEndpointAt(D,...l){if((0,m.xb)(l))throw new Error("cant't fetch the URL without the HAL link names");const C=this.getEndpointMapAt(D).pipe((0,o.U)(I=>{const g=l[0];if((0,m.Uh)(I)&&(0,m.Uh)(I[g]))return I[g].href;throw new Error(`${JSON.stringify(I)} doesn't contain the link ${g}`)}));return 1===l.length?C.pipe((0,i.q)(1)):C.pipe((0,d.w)(I=>this.getEndpointAt(I,...l.slice(1))),(0,i.q)(1))}isEnabledOnRestApi(D){return this.getRootEndpointMap().pipe((0,o.U)(l=>(0,m.UE)(l[D])),(0,r.O)(void 0),(0,a.x)())}}return M.\u0275fac=function(D){return new(D||M)(O.\u0275\u0275inject(p.s),O.\u0275\u0275inject(E.Q))},M.\u0275prov=O.\u0275\u0275defineInjectable({token:M,factory:M.\u0275fac}),M})()},37678:(R,c,e)=>{"use strict";e.d(c,{g:()=>o});var t=e(70655),n=e(29923);class o{}(0,t.__decorate)([n.deserialize,(0,t.__metadata)("design:type",Object)],o.prototype,"_links",void 0)},57490:(R,c,e)=>{"use strict";e.d(c,{q:()=>h});var p,t=e(70655),n=e(29923),o=e(19782),i=e(63037),d=e(51619),r=e(3879),a=e(42895);let h=((p=class extends a.D{constructor(){super(...arguments),this.type=d.B}get self(){return this._links.self.href}getRenderType(){return"hierarchy"}}).type=d.B,p);(0,t.__decorate)([i.OJ,(0,t.__metadata)("design:type",r._)],h.prototype,"type",void 0),(0,t.__decorate)([n.autoserialize,(0,t.__metadata)("design:type",String)],h.prototype,"facetType",void 0),(0,t.__decorate)([n.autoserialize,(0,t.__metadata)("design:type",String)],h.prototype,"vocabulary",void 0),(0,t.__decorate)([n.deserialize,(0,t.__metadata)("design:type",Object)],h.prototype,"_links",void 0),h=(0,t.__decorate)([o.KB,(0,n.inheritSerialization)(a.D)],h)},51619:(R,c,e)=>{"use strict";e.d(c,{B:()=>n});const n=new(e(3879)._)("hierarchicalBrowse")},86180:(R,c,e)=>{"use strict";e.d(c,{q:()=>m});var p,h,t=e(70655),n=e(29923),o=e(19782),i=e(18528),d=e(63037),r=e(3879),a=e(13762);let m=((p=class{}).type=a.Z,h=p);(0,t.__decorate)([d.OJ,n.autoserialize,(0,t.__metadata)("design:type",r._)],m.prototype,"type",void 0),(0,t.__decorate)([n.autoserialize,(0,t.__metadata)("design:type",String)],m.prototype,"id",void 0),(0,t.__decorate)([n.autoserialize,(0,t.__metadata)("design:type",String)],m.prototype,"label",void 0),(0,t.__decorate)([(0,n.deserializeAs)(new i.$(h.type.value),"id"),(0,t.__metadata)("design:type",String)],m.prototype,"uuid",void 0),(0,t.__decorate)([n.deserialize,(0,t.__metadata)("design:type",Object)],m.prototype,"_links",void 0),m=h=(0,t.__decorate)([o.KB],m)},13762:(R,c,e)=>{"use strict";e.d(c,{N:()=>o,Z:()=>n});const n=new(e(3879)._)("entitytype"),o="none"},87917:(R,c,e)=>{"use strict";e.d(c,{n:()=>v});var m,_,t=e(70655),n=e(29923),o=e(69751),i=e(19782),d=e(18528),r=e(63037),a=e(3879),p=e(13762),h=e(88241);let v=((m=class{}).type=h.b,_=m);(0,t.__decorate)([r.OJ,n.autoserialize,(0,t.__metadata)("design:type",a._)],v.prototype,"type",void 0),(0,t.__decorate)([n.autoserialize,(0,t.__metadata)("design:type",String)],v.prototype,"label",void 0),(0,t.__decorate)([n.autoserialize,(0,t.__metadata)("design:type",String)],v.prototype,"id",void 0),(0,t.__decorate)([(0,n.deserializeAs)(new d.$(_.type.value),"id"),(0,t.__metadata)("design:type",String)],v.prototype,"uuid",void 0),(0,t.__decorate)([n.autoserialize,(0,t.__metadata)("design:type",String)],v.prototype,"leftwardType",void 0),(0,t.__decorate)([n.autoserialize,(0,t.__metadata)("design:type",Number)],v.prototype,"leftMaxCardinality",void 0),(0,t.__decorate)([n.autoserialize,(0,t.__metadata)("design:type",Number)],v.prototype,"leftMinCardinality",void 0),(0,t.__decorate)([n.autoserialize,(0,t.__metadata)("design:type",String)],v.prototype,"rightwardType",void 0),(0,t.__decorate)([n.autoserialize,(0,t.__metadata)("design:type",Number)],v.prototype,"rightMaxCardinality",void 0),(0,t.__decorate)([n.autoserialize,(0,t.__metadata)("design:type",Number)],v.prototype,"rightMinCardinality",void 0),(0,t.__decorate)([n.deserialize,(0,t.__metadata)("design:type",Object)],v.prototype,"_links",void 0),(0,t.__decorate)([(0,i.p4)(p.Z),(0,t.__metadata)("design:type",o.y)],v.prototype,"leftType",void 0),(0,t.__decorate)([(0,i.p4)(p.Z),(0,t.__metadata)("design:type",o.y)],v.prototype,"rightType",void 0),v=_=(0,t.__decorate)([i.KB],v)},88241:(R,c,e)=>{"use strict";e.d(c,{b:()=>n});const n=new(e(3879)._)("relationshiptype")},11316:(R,c,e)=>{"use strict";e.d(c,{W:()=>E});var _,v,t=e(70655),n=e(29923),o=e(69751),i=e(19782),d=e(18528),r=e(63037),a=e(14601),p=e(3879),h=e(88241),m=e(37983);let E=((_=class{}).type=m.Y,v=_);(0,t.__decorate)([r.OJ,n.autoserialize,(0,t.__metadata)("design:type",p._)],E.prototype,"type",void 0),(0,t.__decorate)([(0,n.deserializeAs)(new d.$(v.type.value),"id"),(0,t.__metadata)("design:type",String)],E.prototype,"uuid",void 0),(0,t.__decorate)([n.autoserialize,(0,t.__metadata)("design:type",String)],E.prototype,"id",void 0),(0,t.__decorate)([n.autoserialize,(0,t.__metadata)("design:type",Number)],E.prototype,"leftPlace",void 0),(0,t.__decorate)([n.autoserialize,(0,t.__metadata)("design:type",Number)],E.prototype,"rightPlace",void 0),(0,t.__decorate)([n.autoserialize,(0,t.__metadata)("design:type",String)],E.prototype,"leftwardValue",void 0),(0,t.__decorate)([n.autoserialize,(0,t.__metadata)("design:type",String)],E.prototype,"rightwardValue",void 0),(0,t.__decorate)([n.deserialize,(0,t.__metadata)("design:type",Object)],E.prototype,"_links",void 0),(0,t.__decorate)([(0,i.p4)(a.B),(0,t.__metadata)("design:type",o.y)],E.prototype,"leftItem",void 0),(0,t.__decorate)([(0,i.p4)(a.B),(0,t.__metadata)("design:type",o.y)],E.prototype,"rightItem",void 0),(0,t.__decorate)([(0,i.p4)(h.b),(0,t.__metadata)("design:type",o.y)],E.prototype,"relationshipType",void 0),E=v=(0,t.__decorate)([i.KB],E)},37983:(R,c,e)=>{"use strict";e.d(c,{Y:()=>n});const n=new(e(3879)._)("relationship")},82798:(R,c,e)=>{"use strict";e.d(c,{s:()=>p});var t=e(70655),n=e(29923),o=e(19782),i=e(63037),d=e(3879);const r=new d._("itemrequest");var a;let p=((a=class{}).type=r,a);(0,t.__decorate)([i.OJ,n.autoserialize,(0,t.__metadata)("design:type",d._)],p.prototype,"type",void 0),(0,t.__decorate)([n.autoserialize,(0,t.__metadata)("design:type",String)],p.prototype,"token",void 0),(0,t.__decorate)([n.autoserialize,(0,t.__metadata)("design:type",Boolean)],p.prototype,"allfiles",void 0),(0,t.__decorate)([n.autoserialize,(0,t.__metadata)("design:type",String)],p.prototype,"requestEmail",void 0),(0,t.__decorate)([n.autoserialize,(0,t.__metadata)("design:type",String)],p.prototype,"requestName",void 0),(0,t.__decorate)([n.autoserialize,(0,t.__metadata)("design:type",String)],p.prototype,"requestMessage",void 0),(0,t.__decorate)([n.autoserialize,(0,t.__metadata)("design:type",String)],p.prototype,"requestDate",void 0),(0,t.__decorate)([n.autoserialize,(0,t.__metadata)("design:type",Boolean)],p.prototype,"acceptRequest",void 0),(0,t.__decorate)([n.autoserialize,(0,t.__metadata)("design:type",String)],p.prototype,"decisionDate",void 0),(0,t.__decorate)([n.autoserialize,(0,t.__metadata)("design:type",String)],p.prototype,"expires",void 0),(0,t.__decorate)([n.autoserialize,(0,t.__metadata)("design:type",String)],p.prototype,"itemId",void 0),(0,t.__decorate)([n.autoserialize,(0,t.__metadata)("design:type",String)],p.prototype,"bitstreamId",void 0),(0,t.__decorate)([n.deserialize,(0,t.__metadata)("design:type",Object)],p.prototype,"_links",void 0),p=(0,t.__decorate)([o.KB],p)},33609:(R,c,e)=>{"use strict";e.d(c,{c:()=>M});var b,t=e(70655),n=e(29923),o=e(69751),i=e(24702),d=e(19782),r=e(24602),a=e(86076),p=e(42621),h=e(37983),m=e(14601),_=e(14407),v=e(90291),E=e(97453),O=e(18529);let M=((b=class extends p.t{getRenderTypes(){const D=this.firstMetadataValue("dspace.entity.type");return(0,i.xb)(D)?super.getRenderTypes():[D,...super.getRenderTypes()]}getParentLinkKey(){return"owningCollection"}}).type=m.B,b);(0,t.__decorate)([n.autoserialize,(0,t.__metadata)("design:type",String)],M.prototype,"handle",void 0),(0,t.__decorate)([(0,n.deserializeAs)(Date),(0,t.__metadata)("design:type",Date)],M.prototype,"lastModified",void 0),(0,t.__decorate)([(0,n.autoserializeAs)(Boolean,"inArchive"),(0,t.__metadata)("design:type",Boolean)],M.prototype,"isArchived",void 0),(0,t.__decorate)([(0,n.autoserializeAs)(Boolean,"discoverable"),(0,t.__metadata)("design:type",Boolean)],M.prototype,"isDiscoverable",void 0),(0,t.__decorate)([(0,n.autoserializeAs)(Boolean,"withdrawn"),(0,t.__metadata)("design:type",Boolean)],M.prototype,"isWithdrawn",void 0),(0,t.__decorate)([n.deserialize,(0,t.__metadata)("design:type",Object)],M.prototype,"_links",void 0),(0,t.__decorate)([(0,d.p4)(a.d),(0,t.__metadata)("design:type",o.y)],M.prototype,"owningCollection",void 0),(0,t.__decorate)([(0,d.p4)(_.q),(0,t.__metadata)("design:type",o.y)],M.prototype,"ver
1sion",void 0),(0,t.__decorate)([(0,d.p4)(r.c,!0),(0,t.__metadata)("design:type",o.y)],M.prototype,"bundles",void 0),(0,t.__decorate)([(0,d.p4)(h.Y,!0),(0,t.__metadata)("design:type",o.y)],M.prototype,"relationships",void 0),(0,t.__decorate)([(0,d.p4)(v.a,!1,"thumbnail"),(0,t.__metadata)("design:type",o.y)],M.prototype,"thumbnail",void 0),(0,t.__decorate)([(0,d.p4)(E.Q),(0,t.__metadata)("design:type",o.y)],M.prototype,"accessStatus",void 0),(0,t.__decorate)([(0,d.p4)(O.s,!1,"identifiers"),(0,t.__metadata)("design:type",o.y)],M.prototype,"identifiers",void 0),M=(0,t.__decorate)([d.KB,(0,n.inheritSerialization)(p.t)],M)},14601:(R,c,e)=>{"use strict";e.d(c,{B:()=>n});const n=new(e(3879)._)("item")},4343:(R,c,e)=>{"use strict";e.d(c,{z:()=>n});const n=new(e(3879)._)("license")},27869:(R,c,e)=>{"use strict";e.d(c,{A:()=>o});var t=e(33609),n=e(52885);class o extends t.c{constructor(d){super(),this.virtualMetadata=d}get itemType(){return this.firstMetadataValue("dspace.entity.type")}get representationType(){return n.P.Item}getValue(){return this.virtualMetadata.value}}},52885:(R,c,e)=>{"use strict";e.d(c,{P:()=>t});var t=(()=>{return(n=t||(t={})).None="none",n.Item="item",n.AuthorityControlled="authority_controlled",n.PlainText="plain_text",n.BrowseLink="browse_link",t;var n})()},77415:(R,c,e)=>{"use strict";e.d(c,{S:()=>i});var t=e(52885),n=e(24702),o=e(79300);class i extends o.DA{constructor(r,a){super(),this.itemType=r,this.browseDefinition=a}get representationType(){return(0,n.Uh)(this.authority)?t.P.AuthorityControlled:(0,n.Uh)(this.browseDefinition)?t.P.BrowseLink:t.P.PlainText}getValue(){return this.value}}},79300:(R,c,e)=>{"use strict";e.d(c,{DA:()=>a,O_:()=>d,RH:()=>h,Ro:()=>r});var t=e(70655),n=e(81042),o=e(29923),i=e(24702);const d="virtual::";class r{}class a{constructor(){this.uuid=(0,n.Z)()}get isVirtual(){return(0,i.Uh)(this.authority)&&this.authority.startsWith(d)}get virtualValue(){if(this.isVirtual)return this.authority.substring(this.authority.indexOf(d)+d.length)}}(0,t.__decorate)([o.autoserialize,(0,t.__metadata)("design:type",String)],a.prototype,"language",void 0),(0,t.__decorate)([o.autoserialize,(0,t.__metadata)("design:type",String)],a.prototype,"value",void 0),(0,t.__decorate)([o.autoserialize,(0,t.__metadata)("design:type",Number)],a.prototype,"place",void 0),(0,t.__decorate)([o.autoserialize,(0,t.__metadata)("design:type",String)],a.prototype,"authority",void 0),(0,t.__decorate)([o.autoserialize,(0,t.__metadata)("design:type",Number)],a.prototype,"confidence",void 0);const h={Serialize(m){const _={};return Object.keys(m).forEach(v=>{_[v]=(0,o.Serialize)(m[v],a)}),_},Deserialize(m){const _={};return Object.keys(m).forEach(v=>{_[v]=(0,o.Deserialize)(m[v],a)}),_}}},94569:(R,c,e)=>{"use strict";e.d(c,{S:()=>a});var t=e(24702),n=e(79300),o=e(2716),i=e.n(o),d=e(12906),r=e.n(d);class a{static all(h,m,_){const v=h instanceof Array?h:[h],E=[];for(const O of v){for(const b of a.resolveKeys(O,m)){const M=O[b];if(M)for(const P of M)a.valueMatches(P,_)&&E.push(P)}if(!(0,t.xb)(E))return E}return E}static allValues(h,m,_){return a.all(h,m,_).map(v=>v.value)}static first(h,m,_){const v=h instanceof Array?h:[h];for(const E of v)for(const O of a.resolveKeys(E,m)){const b=E[O];if(b)return b.find(M=>a.valueMatches(M,_))}}static firstValue(h,m,_){const v=a.first(h,m,_);return(0,t.o8)(v)?void 0:v.value}static has(h,m,_){return(0,t.pT)(a.first(h,m,_))}static valueMatches(h,m){if(!m)return!0;if(m.language&&m.language!==h.language)return!1;
1if(m.authority&&m.authority!==h.authority)return!1;if(m.value){let _=m.value,v=h.value;return m.ignoreCase&&(_=m.value.toLowerCase(),v=h.value.toLowerCase()),m.substring?v.includes(_):v===_}return!0}static resolveKeys(h={},m){const _=m instanceof Array?m:[m],v=[];for(const E of _)if(E.includes("*")){const O=new RegExp("^"+E.replace(/\\/g,"\\\\").replace(/\./g,"\\.").replace(/\*/g,".*")+"$");for(const b of Object.keys(h))!v.includes(b)&&O.test(b)&&v.push(b)}else h.hasOwnProperty(E)&&!v.includes(E)&&v.push(E);return v}static toViewModelList(h){let m=[];return Object.keys(h).sort().forEach(_=>{const v=h[_].map((E,O)=>Object.assign({},E,{order:O,key:_}));m=[...m,...v]}),m}static toMetadataMap(h){const m={},_=i()(h,v=>v.key);return Object.keys(_).sort().forEach(v=>{const E=r()(_[v],["order"]);m[v]=E.map(O=>{const b=Object.assign(new n.DA,O);return delete b.order,delete b.key,b})}),m}static setFirstValue(h,m,_){(0,t.UE)(h[m])?h[m][0].value=_:h[m]=[Object.assign(new n.DA,{value:_})]}}},24539:(R,c,e)=>{"use strict";e.d(c,{$:()=>d});var t=e(70655),n=e(29923),i=(e(26106),e(42895));let d=class extends i.D{};(0,t.__decorate)([n.autoserialize,(0,t.__metadata)("design:type",Array)],d.prototype,"sortOptions",void 0),(0,t.__decorate)([(0,n.autoserializeAs)("order"),(0,t.__metadata)("design:type",String)],d.prototype,"defaultSortOrder",void 0),(0,t.__decorate)([n.autoserialize,(0,t.__metadata)("design:type",String)],d.prototype,"dataType",void 0),d=(0,t.__decorate)([(0,n.inheritSerialization)(i.D)],d)},68285:(R,c,e)=>{"use strict";e.d(c,{r_:()=>P,ig:()=>M,f1:()=>C,g1:()=>ae,mc:()=>X,Ul:()=>j,sJ:()=>ee,hC:()=>I,HW:()=>k,xw:()=>B,Gp:()=>V,A6:()=>Y,LQ:()=>te,JV:()=>L,qP:()=>l,xe:()=>D,EB:()=>ie,ZU:()=>G,Ie:()=>Q});var t=e(17445),n=e(39841),o=e(54482),i=e(25032),d=e(25403),r=e(38421),p=e(78372),h=e(54004),m=e(39300),_=e(95698),v=e(40367),E=e(63900),O=e(24702),b=e(94650);const M=(ne,q)=>function a(ne){return(0,o.e)((q,oe)=>{let ce=!1,ye=null,Me=null;const Ee=()=>{if(Me?.unsubscribe(),Me=null,ce){ce=!1;const Ae=ye;ye=null,oe.next(Ae)}};q.subscribe((0,d.x)(oe,Ae=>{Me?.unsubscribe(),ce=!0,ye=Ae,Me=(0,d.x)(oe,Ee,i.Z),(0,r.Xf)(ne(Ae)).subscribe(Me)},()=>{Ee(),oe.complete()},void 0,()=>{ye=Me=null}))})}(()=>(0,t.F)(ne,q)),P=new b.InjectionToken("debounceTime",{providedIn:"root",factory:()=>p.b}),D=()=>ne=>ne.pipe((0,h.U)(q=>q.payload)),l=()=>ne=>ne.pipe((0,h.U)(q=>q.page)),C=()=>ne=>ne.pipe((0,m.h)(q=>(0,O.Uh)(q)&&q.hasCompleted)),I=()=>ne=>ne.pipe(C(),(0,_.q)(1)),B=()=>ne=>ne.pipe((0,m.h)(q=>q.hasSucceeded),(0,_.q)(1)),L=()=>ne=>ne.pipe((0,v.s)(q=>q.hasSucceeded&&(0,O.UE)(q.payload))),V=()=>ne=>ne.pipe(B(),D()),Y=()=>ne=>ne.pipe(L(),D()),X=()=>ne=>ne.pipe(ae(),D()),te=()=>ne=>ne.pipe(B(),D(),l()),ee=()=>ne=>ne.pipe((0,v.s)(q=>!q.isLoading)),ae=()=>ne=>ne.pipe((0,m.h)(q=>q.hasSucceeded)),Q=()=>ne=>ne.pipe((0,m.h)(q=>q.hasSucceeded),(0,h.U)(q=>{const oe=q.payload.page.filter(ye=>(0,O.Uh)(ye)).map(ye=>ye.indexableObject),ce=Object.assign(q.payload,{page:oe});return Object.assign(q,{payload:ce})})),j=ne=>q=>q.pipe(D(),l(),(0,h.U)(oe=>oe.find(ce=>ce.id===ne)),(0,h.U)(oe=>{if((0,O.UE)(oe))return oe._links;throw new Error(`No metadata browse definition could be found for id '${ne}'`)})),k=()=>ne=>ne.pipe((0,h.U)(q=>Object.assign(q,{payload:q.payload.page.length>0?q.payload.page[0]:void 0}))),G=()=>ne=>ne.pipe((0,O.tz)(),(0,h.U)(q=>q.payload.page.filter(oe=>(0,O.Uh)(oe)))),ie=()=>ne=>ne.pipe((0,O.tz)(),(0,h.U)(q=>q.payload.page.filter(oe=>(0,O.Uh)(oe))),(0,E.w)(q=>{const oe=q.map(ce=>ce.schema.pipe(V(),(0,h.U)(ye=>({field:ce,schema:ye}))));return(0,O.UE)(oe)?(0,n.a)(oe):[[]]}),(0,h.U)(q=>q.map(oe=>oe.schema.prefix+"."+oe.field.toString())))},62713:(R,c,e)=>{"use strict";e.d(c,{S:()=>i});var t=e(70655),n=e(29923),o=e(24702);class i{constructor(r){(0,o.Uh)(r)&&(this.elementsPerPage=r.elementsPerPage,this.totalElements=r.totalElements,this.totalPages=r.totalPages,this.currentPage=r.currentPage)}get self(){return this._links.self.href}get last(){if((0,o.Uh)(this._links)&&(0,o.Uh)(this._links.last))return this._links.last.href}get next(){if((0,o.Uh)(this._links)&&(0,o.Uh)(this._links.next))return this._links.next.href}get prev(){if((0,o.Uh)(this._links)&&(0,o.Uh)(this._links.prev))return this._links.prev.href}get first(){if((0,o.Uh)(this._links)&&(0,o.Uh)(this._links.first))return this._links.first.href}}(0,t.__decorate)([(0,n.autoserializeAs)(Number,"size"),(0,t.__metadata)("design:type",Number)],i.prototype,"elementsPerPage",void 0),(0,t.__decorate)([n.autoserialize,(0,t.__metadata)("design:type",Number)],i.prototype,"totalElements",void 0),(0,t.__decorate)([n.autoserialize,(0,t.__metadata)("design:type",Number)],i.prototype,"totalPages",void 0),(0,t.__decorate)([(0,n.autoserializeAs)(Number,"number"),(0,t.__metadata)("design:type",Number)],i.prototype,"currentPage",void 0),(0,t.__decorate)([n.deserialize,(0,t.__metadata)("design:type",Object)],i.prototype,"_links",void 0)},37500:(R,c,e)=>{"use strict";e.d(c,{Y:()=>r});var t=e(70655),n=e(19782);const i=new(e(3879)._)("registration");var d;let r=((d=class{}).type=i,d);r=(0,t.__decorate)([n.KB],r)},85292:(R,c,e)=>{"use strict";e.d(c,{Md:()=>d,WV:()=>i,wG:()=>a});var t=e(86099),n=e(18505),o=e(24702);const i=p=>h=>h.pipe((0,t.z)(m=>p.getByHref(m)),(0,o.tz)()),d=p=>h=>h.pipe((0,t.z)(m=>p.getByUUID(m)),(0,o.tz)()),a=p=>h=>h.pipe((0,n.b)(m=>p.send(m)))},3879:(R,c,e)=>{"use strict";e.d(c,{_:()=>t});class t{constructor(o){this.value=o}}},36872:(R,c,e)=>{"use strict";e.d(c,{U:()=>K});var t=e(39841),n=e(61135),o=e(56451),i=e(68675),d=e(54004),r=e(39300),a=e(95698),p=e(4177),h=e(10088);class m{constructor(ae,Q,j){this.key=ae,this.values=Q,this.operator=j}}var _=e(15600),v=e(95642),E=e(42943),O=e(5360),b=e(68285),M=e(24702),P=e(58577),D=e(77467),l=e(94476),C=e(93498),I=e(31241),g=e(43015),B=e(25130),L=e(23631),V=e(25963),Y=e(60740),X=e(94650),te=e(34793);let K=(()=>{class ee{constructor(Q,j,k,G,ie,ne,q){this.routeService=Q,this.paginationService=j,this.route=k,this.linkService=G,this.halService=ie,this.requestService=ne,this.rdb=q,this.configurationLinkPath="discover/search",this.facetLinkPathPrefix="discover/facets/",this.paginationID="spc",this.defaultPagination=Object.assign(new p.r,{id:this.paginationID,pageSize:10,
1currentPage:1}),this.defaultScope="",this.defaultQuery="",this.subs=new Map(null),this.initDefaults()}get defaults(){if((0,M.xI)(this._defaults)){const Q=new h.t({pagination:this.defaultPagination,scope:this.defaultScope,query:this.defaultQuery});this._defaults=(0,P.uV)(Q,(new Date).getTime())}return this._defaults}getCurrentConfiguration(Q){return(0,t.a)([this.routeService.getQueryParameterValue("configuration").pipe((0,i.O)(void 0)),this.routeService.getRouteParameterValue("configuration").pipe((0,i.O)(void 0))]).pipe((0,d.U)(([j,k])=>j||k||Q))}getCurrentScope(Q){return this.routeService.getQueryParameterValue("scope").pipe((0,d.U)(j=>j||Q))}getCurrentQuery(Q){return this.routeService.getQueryParameterValue("query").pipe((0,d.U)(j=>j||Q))}getCurrentDSOType(){return this.routeService.getQueryParameterValue("dsoType").pipe((0,r.h)(Q=>(0,M.UE)(Q)&&(0,M.Uh)(v.h[Q.toUpperCase()])),(0,d.U)(Q=>v.h[Q.toUpperCase()]))}getCurrentPagination(Q,j){return this.paginationService.getCurrentPagination(Q,j)}getCurrentSort(Q,j){return this.paginationService.getCurrentSort(Q,j)}getCurrentFilters(){return this.routeService.getQueryParamsWithPrefix("f.").pipe((0,d.U)(Q=>{if((0,M.UE)(Q)){const j=[];return Object.keys(Q).forEach(k=>{if(k.endsWith(".min")||k.endsWith(".max")){const G=k.slice(0,-4);(0,M.xI)(j.find(ie=>ie.key===G))&&j.push(new m(G,["["+(Q[G+".min"]?Q[G+".min"][0]:"*")+" TO "+(Q[G+".max"]?Q[G+".max"][0]:"*")+"]"],"equals"))}else j.push(new m(k,Q[k]))}),j}return[]}))}getCurrentFixedFilter(){return this.routeService.getRouteParameterValue("fixedFilterQuery")}getCurrentFrontendFilters(){return this.routeService.getQueryParamsWithPrefix("f.")}getCurrentViewMode(Q){return this.routeService.getQueryParameterValue("view").pipe((0,d.U)(j=>j||Q))}getConfigurationSearchConfig(Q,j){return this.getSearchConfigurationFor(j,Q).pipe((0,b.mc)())}getConfigurationSortOptions(Q){return Q.sortOptions.map(j=>({field:j.name,direction:j.sortOrder.toLowerCase()===E.S.ASC.toLowerCase()?E.S.ASC:E.S.DESC}))}setPaginationId(Q){if((0,M.UE)(Q)){const j=this.paginatedSearchOptions.getValue(),k=Object.assign(new h.t({}),j,{pagination:Object.assign({},j.pagination,{id:Q})});this.unsubscribeFromSearchOptions(this.paginationID),this.paginationID=Q,this.paginatedSearchOptions.next(k),this.setSearchSubscription(this.paginationID,this.paginatedSearchOptions.value)}}ngOnDestroy(){this.subs.forEach(Q=>Q.filter(j=>(0,M.Uh)(j)).forEach(j=>j.unsubscribe())),this.subs=new Map(null)}initDefaults(){this.defaults.pipe((0,b.xw)()).subscribe(Q=>{const j=Q.payload;this.paginatedSearchOptions=new n.X(j),this.searchOptions=new n.X(j),this.setSearchSubscription(this.paginationID,j)})}setSearchSubscription(Q,j){this.unsubscribeFromSearchOptions(Q);const k=[this.subscribeToSearchOptions(j),this.subscribeToPaginatedSearchOptions(Q||j.pagination.id,j)];this.subs.set(this.paginationID,k)}subscribeToSearchOptions(Q){return(0,o.T)(this.getConfigurationPart(Q.configuration),this.get
1ScopePart(Q.scope),this.getQueryPart(Q.query),this.getDSOTypePart(),this.getFiltersPart(),this.getFixedFilterPart(),this.getViewModePart(Q.view)).subscribe(j=>{const k=this.searchOptions.getValue(),G=Object.assign(new h.t({}),k,j);this.searchOptions.next(G)})}subscribeToPaginatedSearchOptions(Q,j){return(0,o.T)(this.getConfigurationPart(j.configuration),this.getPaginationPart(Q,j.pagination),this.getSortPart(Q,j.sort),this.getScopePart(j.scope),this.getQueryPart(j.query),this.getDSOTypePart(),this.getFiltersPart(),this.getFixedFilterPart(),this.getViewModePart(j.view)).subscribe(k=>{const G=this.paginatedSearchOptions.getValue(),ie=Object.assign(new h.t({}),G,k);this.paginatedSearchOptions.next(ie)})}unsubscribeFromSearchOptions(Q){this.subs.has(this.paginationID)&&(this.subs.get(this.paginationID).filter(j=>(0,M.Uh)(j)).forEach(j=>j.unsubscribe()),this.subs.delete(Q))}getConfigurationPart(Q){return this.getCurrentConfiguration(Q).pipe((0,d.U)(j=>({configuration:j})))}getScopePart(Q){return this.getCurrentScope(Q).pipe((0,d.U)(j=>({scope:j})))}getQueryPart(Q){return this.getCurrentQuery(Q).pipe((0,d.U)(j=>({query:j})))}getDSOTypePart(){return this.getCurrentDSOType().pipe((0,d.U)(Q=>({dsoType:Q})))}getPaginationPart(Q,j){return this.getCurrentPagination(Q,j).pipe((0,d.U)(k=>({pagination:k})))}getSortPart(Q,j){return this.getCurrentSort(Q,j).pipe((0,d.U)(k=>({sort:k})))}getFiltersPart(){return this.getCurrentFilters().pipe((0,d.U)(Q=>({filters:Q})))}getFixedFilterPart(){return this.getCurrentFixedFilter().pipe((0,M.iy)(),(0,d.U)(Q=>({fixedFilter:Q})))}getSearchConfigurationFor(Q,j){const k=this.halService.getEndpoint(this.configurationLinkPath).pipe((0,d.U)(G=>this.getConfigUrl(G,Q,j)));return k.pipe((0,a.q)(1)).subscribe(G=>{const ie=new B.Gl(this.requestService.generateRequestId(),G);this.requestService.send(ie,!0)}),this.rdb.buildFromHref(k)}getConfigUrl(Q,j,k){const G=[];return(0,M.UE)(j)&&G.push(`scope=${j}`),(0,M.UE)(k)&&G.push(`configuration=${k}`),(0,M.UE)(G)&&(Q=new L.R(Q,`?${G.join("&")}`).toString()),Q}getConfig(Q,j){const k=this.halService.getEndpoint(this.facetLinkPathPrefix).pipe((0,d.U)(G=>this.getConfigUrl(G,Q,j)));return k.pipe((0,a.q)(1)).subscribe(G=>{let ie=new B.Gl(this.requestService.generateRequestId(),G);ie=Object.assign(ie,{getResponseParser:()=>V.L}),this.requestService.send(ie,!0)}),this.rdb.buildFromHref(k).pipe((0,d.U)(G=>{if(G.hasSucceeded){let ie;return ie=(0,M.UE)(G.payload.filters)?G.payload.filters.map(ne=>Object.assign(new Y.B,ne)):[],new _.N(G.timeCompleted,G.msToLive,G.lastUpdated,G.state,G.errorMessage,ie,G.statusCode)}return G}))}getViewModePart(Q){return this.getCurrentViewMode(Q).pipe((0,d.U)(j=>({view:j})))}}return ee.\u0275fac=function(Q){return new(Q||ee)(X.\u0275\u0275inject(O.MZ),X.\u0275\u0275inject(D.N),X.\u0275\u0275inject(te.gz),X.\u0275\u0275inject(l.M),X.\u0275\u0275inject(C.q),X.\u0275\u0275inject(I.s),X.\u0275\u0275inject(g.Q))},ee.\u0275prov=X.\u0275\u0275defineInjectable({token:ee,factory:ee.\u0275fac}),ee})()},62188:(R,c,e)=>{"use strict";e.d(c,{IC:()=>b,Pe:()=>O,j9:()=>v,nJ:()=>M,y5:()=>E});var t=e(39841),n=e(54004),o=e(71884),i=e(94650),d=e(89653),r=e(9501),a=e(24702),p=e(42943),h=e(5360),m=e(4177);const _=l=>l.searchFilter,v=new i.InjectionToken("filterConfig"),E=new i.InjectionToken("inPlaceSearch"),O=new i.InjectionToken("refreshFilters"),b=new i.InjectionToken("scope");let M=(()=>{class l{constructor(I,g){this.store=I,this.routeService=g}isFilterActiveWithValue(I,g){return this.routeService.hasQueryParamWithValue(I,g)}isFilterActive(I){return this.routeService.hasQueryParam(I)}getCurrentScope(){return this.routeService.getQueryParameterValue("scope")}getCurrentQuery(){return this.routeService.getQueryParameterValue("query")}getCurrentPagination(I={}){const g=this.routeService.getQueryParameterValue("page"),B=this.routeService.getQueryParameterValue("pageSize");return(0,t.a)(g,B).pipe((0,n.U)(([L,V])=>Object.assign(new m.r,I,{currentPage:L||1,pageSize:V||I.pageSize})))}getCurrentSort(I){const g=this.routeService.getQueryParameterValue("sortDirection"),B=this.routeService.getQueryParameterValue("sortField");return(0,t.a)(g,B).pipe((0,n.U)(([L,V])=>new p.o(V||I.field,p.S[L]||I.direction)))}getCurrentFilters(){return this.routeService.getQueryParamsWithPrefix("f.")}getCurrentView(){return this.routeService.getQueryParameterValue("view")}getSelectedValuesForFilter(I){const g=this.routeService.getQueryParameterValues(I.paramName),B=this.routeService.getQueryParamsWithPrefix(I.paramName+".").pipe((0,n.U)(L=>
1[].concat(...Object.values(L))));return(0,t.a)(g,B).pipe((0,n.U)(([L,V])=>(0,a.UE)(L)?L:V))}isCollapsed(I){return this.store.pipe((0,d.Ys)(P(I)),(0,n.U)(g=>!!g&&g.filterCollapsed),(0,o.x)())}getPage(I){return this.store.pipe((0,d.Ys)(P(I)),(0,n.U)(g=>g?g.page:1),(0,o.x)())}collapse(I){this.store.dispatch(new r.sd(I))}expand(I){this.store.dispatch(new r.ZG(I))}toggle(I){this.store.dispatch(new r.EZ(I))}initializeFilter(I){this.store.dispatch(new r.GL(I))}decrementPage(I){this.store.dispatch(new r.WS(I))}incrementPage(I){this.store.dispatch(new r.FR(I))}resetPage(I){this.store.dispatch(new r.Dt(I))}}return l.\u0275fac=function(I){return new(I||l)(i.\u0275\u0275inject(d.yh),i.\u0275\u0275inject(h.MZ))},l.\u0275prov=i.\u0275\u0275defineInjectable({token:l,factory:l.\u0275fac}),l})();function P(l){return function D(l){return(0,d.P1)(_,C=>{if((0,a.Uh)(C))return C[l]})}(l)}},5164:(R,c,e)=>{"use strict";e.d(c,{o:()=>te});var t=e(39841),n=e(54004),o=e(95698),i=e(63900),d=e(15600),r=e(25130),a=e(31241),p=e(93498),h=e(23631),m=e(24702),_=e(26434),v=e(91992),E=e(88868),O=e(10088),b=e(51121),M=e(83360),P=e(43015),D=e(68285),l=e(5360),C=e(50678),I=e(77467),g=e(36872),B=e(4177),L=e(76715),V=e(94650),Y=e(33723);class X extends L.B{constructor(){super("discover",void 0,void 0,void 0,void 0)}addEmbedParams(ee,ae,...Q){return super.addEmbedParams(ee,ae,...Q)}}let te=(()=>{class K{constructor(ae,Q,j,k,G,ie,ne,q){this.routeService=ae,this.requestService=Q,this.rdb=j,this.halService=k,this.dspaceObjectService=G,this.paginationService=ie,this.searchConfigurationService=ne,this.angulartics2=q,this.searchLinkPath="discover/search/objects",this.parser=_.g,this.request=r.Gl,this.searchDataService=new X}setServiceOptions(ae,Q){ae&&(this.parser=ae),Q&&(this.request=Q)}getEndpoint(ae){return this.halService.getEndpoint(this.searchLinkPath).pipe((0,n.U)(Q=>(0,m.Uh)(ae)?ae.toRestUrl(Q):Q))}search(ae,Q,j=!0,k=!0,...G){const ie=this.getEndpoint(ae);ie.pipe((0,o.q)(1),(0,n.U)(q=>{const oe=this.searchDataService.addEmbedParams(q,[],...G);return(0,m.UE)(oe)?new h.R(q,`?${oe.join("&")}`).toString():q})).subscribe(q=>{const oe=new this.request(this.requestService.generateRequestId(),q);Object.assign(oe,{responseMsToLive:(0,m.Uh)(Q)?Q:oe.responseMsToLive,getResponseParser:()=>this.parser,searchOptions:ae}),this.requestService.send(oe,j)});const ne=ie.pipe((0,i.w)(q=>this.rdb.buildFromHref(q)));return this.directlyAttachIndexableObjects(ne,j,k,...G)}searchEntries(ae){const j=this.getEndpoint(ae).pipe((0,i.w)(k=>this.rdb.buildFromHref(k)));return this.directlyAttachIndexableObjects(j)}directlyAttachIndexableObjects(ae,Q=!0,j=!0,...k){return ae.pipe((0,i.w)(G=>{if((0,m.Uh)(G.payload)&&(0,m.UE)(G.payload.page)){const ie=G.payload.page.map(ne=>this.dspaceObjectService.findByHref(ne._links.indexableObject.href,Q,j,...k).pipe((0,D.hC)(),(0,D.xe)(),(0,m.tz)(),(0,n.U)(q=>{const ce=(0,C.i)(q.constructor);return Object.assign(new ce,ne,{indexableObject:q})})));return(0,t.a)(ie).pipe((0,n.U)(ne=>{const q=Object.assign(new v.L,G.payload,{page:ne});return new d.N(G.timeCompleted,G.msToLive,G.lastUpdated,G.state,G.errorMessage,q,G.statusCode)}))}return[G]}))}getFacetValuesFor(ae,Q,j,k,G=!0){let ie,ne=[];(0,m.Uh)(k)&&ne.push(`prefix=${encodeURIComponent(k)}`),(0,m.Uh)(j)?ie=(j=Object.assign(new O.t({}),j,{pagination:Object.assign({},j.pagination,{currentPage:Q,pageSize:ae.pageSize})})).toRestUrl(ae._links.self.href,ne):(ne=["page="+(Q-1),`size=${ae.pageSize}`,...ne],ie=new h.R(ae._links.self.href,`?${ne.join("&")}`).toString());let q=new this.request(this.requestService.generateRequestId(),ie);return q=Object.assign(q,{getResponseParser:()=>E.N}),this.requestService.send(q,G),this.rdb.buildFromHref(ie)}getViewMode(){return this.routeService.getQueryParamMap().pipe((0,n.U)(ae=>(0,m.UE)(ae.get("view"))&&(0,m.Uh)(ae.get("view"))?ae.get("view"):b.w.ListElement))}setViewMode(ae,Q){this.paginationService.getCurrentPagination(this.searchConfigurationService.paginationID,new B.r).pipe((0,o.q)(1)).subscribe(j=>{let k={page:1};const G={view:ae};ae===b.w.DetailedListElement?k=Object.assign(k,{pageSize:1}):1===j.pageSize&&(k=Object.assign(k,{pageSize:10})),this.paginationService.updateRouteWithUrl(this.searchConfigurationService.paginationID,(0,m.Uh)(Q)?Q:[this.get
1SearchLink()],k,G)})}trackSearch(ae,Q,j){const k=[],G=Q.appliedFilters||[];for(let ie=0,ne=G.length;ie<ne;ie++)k.push(G[ie]);this.angulartics2.eventTrack.next({action:"search",properties:{searchOptions:ae,page:{size:ae.pagination.size,totalElements:Q.pageInfo.totalElements,totalPages:Q.pageInfo.totalPages,number:ae.pagination.currentPage},sort:{by:ae.sort.field,order:ae.sort.direction},filters:k,clickedObject:j}})}getSearchLink(){return"/search"}ngOnDestroy(){void 0!==this.sub&&this.sub.unsubscribe()}}return K.\u0275fac=function(ae){return new(ae||K)(V.\u0275\u0275inject(l.MZ),V.\u0275\u0275inject(a.s),V.\u0275\u0275inject(P.Q),V.\u0275\u0275inject(p.q),V.\u0275\u0275inject(M.D),V.\u0275\u0275inject(I.N),V.\u0275\u0275inject(g.U),V.\u0275\u0275inject(Y.b))},K.\u0275prov=V.\u0275\u0275defineInjectable({token:K,factory:K.\u0275fac}),K})()},28287:(R,c,e)=>{"use strict";e.d(c,{m:()=>n});var t=e(94650);let n=(()=>{class o{constructor(){this.value=0}next(){return++this.value}}return o.\u0275fac=function(d){return new(d||o)},o.\u0275prov=t.\u0275\u0275defineInjectable({token:o,factory:o.\u0275fac}),o})()},25604:(R,c,e)=>{"use strict";e.d(c,{E:()=>n});const n=new(e(3879)._)("site")},18205:(R,c,e)=>{"use strict";e.d(c,{_:()=>o});var t=e(81042),n=e(94650);let o=(()=>{class i{generate(){return(0,t.Z)()}}return i.\u0275fac=function(r){return new(r||i)},i.\u0275prov=n.\u0275\u0275defineInjectable({token:i,factory:i.\u0275fac}),i})()},85963:(R,c,e)=>{"use strict";e.d(c,{w:()=>h});var p,t=e(70655),n=e(29923),o=e(19782),i=e(63037),d=e(63472),r=e(3879),a=e(24539);let h=((p=class extends a.${constructor(){super(...arguments),this.type=d.C}get self(){return this._links.self.href}getRenderType(){return this.dataType}}).type=d.C,p);(0,t.__decorate)([i.OJ,(0,t.__metadata)("design:type",r._)],h.prototype,"type",void 0),(0,t.__decorate)([n.deserialize,(0,t.__metadata)("design:type",Object)],h.prototype,"_links",void 0),h=(0,t.__decorate)([o.KB,(0,n.inheritSerialization)(a.$)],h)},63472:(R,c,e)=>{"use strict";e.d(c,{C:()=>n});const n=new(e(3879)._)("valueList")},96569:(R,c,e)=>{"use strict";e.d(c,{h:()=>n});const n=new(e(3879)._)("versionhistory")},14407:(R,c,e)=>{"use strict";e.d(c,{q:()=>n});const n=new(e(3879)._)("version")},51121:(R,c,e)=>{"use strict";e.d(c,{w:()=>t});var t=(()=>{return(n=t||(t={})).ListElement="list",n.GridElement="grid",n.DetailedListElement="detailed",n.StandalonePage="standalone",t;var n})()},63602:(R,c,e)=>{"use strict";e.d(c,{O:()=>h});var p,t=e(70655),n=e(29923),o=e(19782),i=e(63037),d=e(3879),r=e(37678),a=e(43602);let h=((p=class extends r.g{}).type=a._,p);(0,t.__decorate)([i.OJ,n.autoserialize,(0,t.__metadata)("design:type",d._)],h.prototype,"type",void 0),(0,t.__decorate)([n.autoserialize,(0,t.__metadata)("design:type",String)],h.prototype,"id",void 0),(0,t.__decorate)([(0,n.autoserializeAs)("report-type"),(0,t.__metadata)("design:type",String)],h.prototype,"reportType",void 0),(0,t.__decorate)([n.autoserialize,(0,t.__metadata)("design:type",Array)],h.prototype,"points",void 0),(0,t.__decorate)([n.deserialize,(0,t.__metadata)("design:type",Object)],h.prototype,"_links",void 0),h=(0,t.__decorate)([o.KB,(0,n.inheritSerialization)(r.g)],h)},43602:(R,c,e)=>{"use strict";e.d(c,{_:()=>n});const n=new(e(3879)._)("usagereport")},53166:(R,c,e)=>{"use strict";e.d(c,{S:()=>n});const n=new(e(3879)._)("submissioncclicenseUrl")},41123:(R,c,e)=>{"use strict";e.d(c,{z:()=>n});const n=new(e(3879)._)("submissioncclicense")},33222:(R,c,e)=>{"use strict";e.d(c,{_:()=>h});var p,t=e(70655),n=e(29923),o=e(19782),i=e(63037),d=e(3879),r=e(37678),a=e(41123);let h=((p=class extends r.g{}).type=a.z,p);(0,t.__decorate)([i.OJ,n.autoserialize,(0,t.__metadata)("design:type",d._)],h.prototype,"type",void 0),(0,t.__decorate)([n.autoserialize,(0,t.__metadata)("design:type",String)],h.prototype,"id",void 0),(0,t.__decorate)([n.autoserialize,(0,t.__metadata)("design:type",String)],h.prototype,"name",void 0),(0,t.__decorate)([n.autoserialize,(0,t.__metadata)("design:type",Array)],h.prototype,"fields",void 0),h=(0,t.__decorate)([o.KB,(0,n.inheritSerialization)(r.g)],h)},6989:(R,c,e)=>{"use strict";e.d(c,{H:()=>E}
1);var t=e(70655),n=e(29923),o=e(69751),i=e(19782),d=e(21802),r=e(71508),a=e(86076),p=e(42621),h=e(14601),m=e(63037),v=e(62085);let E=class extends p.t{get self(){return this._links.self.href}};(0,t.__decorate)([m.OJ,n.autoserialize,(0,t.__metadata)("design:type",String)],E.prototype,"id",void 0),(0,t.__decorate)([n.autoserialize,(0,t.__metadata)("design:type",Date)],E.prototype,"lastModified",void 0),(0,t.__decorate)([(0,i.p4)(a.d),(0,t.__metadata)("design:type",Object)],E.prototype,"collection",void 0),(0,t.__decorate)([n.autoserialize,(0,t.__metadata)("design:type",class _{})],E.prototype,"sections",void 0),(0,t.__decorate)([n.autoserialize,(0,t.__metadata)("design:type",Array)],E.prototype,"errors",void 0),(0,t.__decorate)([n.deserialize,(0,t.__metadata)("design:type",Object)],E.prototype,"_links",void 0),(0,t.__decorate)([(0,i.p4)(h.B),(0,t.__metadata)("design:type",Object)],E.prototype,"item",void 0),(0,t.__decorate)([(0,i.p4)(d.Y.type),(0,t.__metadata)("design:type",Object)],E.prototype,"submissionDefinition",void 0),(0,t.__decorate)([(0,i.p4)(r.U),(0,t.__metadata)("design:type",Object)],E.prototype,"submitter",void 0),(0,t.__decorate)([(0,i.p4)(v.t),(0,t.__metadata)("design:type",o.y)],E.prototype,"supervisionOrders",void 0),E=(0,t.__decorate)([(0,n.inheritSerialization)(p.t)],E)},61200:(R,c,e)=>{"use strict";e.d(c,{p:()=>h});var a,p,t=e(70655),n=e(29923),o=e(19782),i=e(18528),d=e(9657),r=e(6989);let h=((a=class extends r.H{}).type=d.w,p=a);(0,t.__decorate)([(0,n.deserializeAs)(new i.$(p.type.value),"id"),(0,t.__metadata)("design:type",String)],h.prototype,"uuid",void 0),h=p=(0,t.__decorate)([o.KB,(0,n.inheritSerialization)(r.H),(0,o.o2)(r.H)],h)},62168:(R,c,e)=>{"use strict";e.d(c,{K:()=>m});var t=e(70655),n=e(29923),o=e(19782),i=e(18528),d=e(6989);const a=new(e(3879)._)("workspaceitem");var p,h;let m=((p=class extends d.H{}).type=a,h=p);(0,t.__decorate)([(0,n.deserializeAs)(new i.$(h.type.value),"id"),(0,t.__metadata)("design:type",String)],m.prototype,"uuid",void 0),m=h=(0,t.__decorate)([o.KB,(0,n.inheritSerialization)(d.H),(0,o.o2)(d.H)],m)},44479:(R,c,e)=>{"use strict";e.d(c,{I:()=>v});var _,t=e(70655),n=e(43015),o=e(58943),i=e(93498),d=e(31241),r=e(41123),a=e(76715),p=e(53261),h=e(21147),m=e(94650);let v=((_=class extends a.B{constructor(O,b,M,P){super("submissioncclicenses",O,b,M,P),this.requestService=O,this.rdbService=b,this.objectCache=M,this.halService=P,this.linkPath="submissioncclicenses",this.findAllData=new p.k(this.linkPath,O,b,M,P,this.responseMsToLive)}findAll(O,b,M,...P){return this.findAllData.findAll(O,b,M,...P)}}).\u0275fac=function(O){return new(O||_)(m.\u0275\u0275inject(d.s),m.\u0275\u0275inject(n.Q),m.\u0275\u0275inject(o.a),m.\u0275\u0275inject(i.q))},_.\u0275prov=m.\u0275\u0275defineInjectable({token:_,factory:_.\u0275fac}),_);v=(0,t.__decorate)([(0,h.cQ)(r.z),(0,t.__metadata)("design:paramtypes",[d.s,n.Q,o.a,i.q])],v)},60941:(R,c,e)=>{"use strict";e.d(c,{K:()=>M});var b,t=e(70655),n=e(43015),o=e(58943),i=e(93498),d=e(31241),r=e(53166),a=e(63900),p=e(54004),h=e(68285),m=e(76715),_=e(99678),v=e(21147),E=e(81964),O=e(94650);let M=((b=class extends m.B{constructor(D,l,C,I){super("submissioncclicenseUrls-search",D,l,C,I),this.requestService=D,this.rdbService=l,this.objectCache=C,this.halService=I,this.searchData=new _.l(this.linkPath,D,l,C,I,this.responseMsToLive,(g,B)=>`${g}/${B}`)}getCcLicenseLink(D,l){return this.searchData.getSearchByHref("rightsByQuestions",{searchParams:[new E.g("license",D.id),...D.fields.map(C=>new E.g(`answer_${C.id}`,l.get(C).id))]}).pipe((0,a.w)(C=>this.findByHref(C)),(0,h.xw)(),(0,h.xe)(),(0,p.U)(C=>C.url))}searchBy(D,l,C,I,...g){return this.searchData.searchBy(D,l,C,I,...g)}}).\u0275fac=function(D){return new(D||b)(O.\u0275\u0275inject(d.s),O.\u0275\u0275inject(n.Q),O.\u0275\u0275inject(o.a),O.\u0275\u0275inject(i.q))},b.\u0275prov=O.\u0275\u0275defineInjectable({token:b,factory:b.\u0275fac}),b);M=(0,t.__decorate)([(0,v.cQ)(r.S),(0,t.__metadata)("design:paramtypes",[d.s,n.Q,o.a,i.q])],M)},44459:(R,c,e)=>{"use strict";e.d(c,{E:()=>Y});var t=e(31241),n=e(93498),o=e(56451);function i(X,te){return(K,ee)=>!X.call(te,K,ee)}var d=e(39300),a=e(86099),p=e(95698),h=e(18505),m=e(54004),_=e(40367),v=e(71884),E=e(24702),O=e(1588),b=e(78809);function M(X){return(0,b.GY)(O.v,"json/patch",X)}var D=e(39510),l=e(68285);class C{submitJsonPatchOperations(te,K,ee){const ae=this.requestService.generateRequestId();let Q=null;const[j,k]=function r(X,te){return K=>[(0,d.h)(X,te)(K),(0,d.h)(i(X,te))(K)]}(G=>(0,E.UE)(G.body))(te.pipe((0,a.z)(G=>
1this.store.select(M(K)).pipe((0,p.q)(1),(0,d.h)(ie=>(0,E.o8)(ie)||!ie.commitPending),(0,h.b)(()=>Q=(new Date).getTime()),(0,m.U)(ie=>{const ne=[];return(0,E.UE)(ie)&&((0,E.UE)(ee)?(0,E.pT)(ie.children[ee])&&(0,E.UE)(ie.children[ee].body)&&ie.children[ee].body.forEach(q=>{ne.push(q.operation)}):Object.keys(ie.children).filter(q=>ie.children.hasOwnProperty(q)).filter(q=>(0,E.Uh)(ie.children[q])).filter(q=>(0,E.Uh)(ie.children[q].body)).forEach(q=>{ie.children[q].body.forEach(oe=>{ne.push(oe.operation)})})),this.getRequestInstance(ae,G,ne)})))));return(0,o.T)(k.pipe((0,d.h)(G=>(0,E.xb)(G.body)),(0,h.b)(()=>Q=null),(0,m.U)(()=>null)),j.pipe((0,d.h)(G=>(0,E.UE)(G.body)),(0,h.b)(()=>this.store.dispatch(new D.eB(K,ee,Q))),(0,h.b)(G=>this.requestService.send(G)),(0,a.z)(()=>this.rdbService.buildFromRequestUUID(ae).pipe((0,l.hC)(),(0,_.s)(G=>Q<G.timeCompleted),(0,m.U)(G=>{if(G.hasFailed)throw this.store.dispatch(new D.PS(K,ee)),new Error(G.errorMessage);if((0,E.Uh)(G.payload)&&(0,E.UE)(G.payload.dataDefinition))return this.store.dispatch(new D.bu(K,ee)),G.payload.dataDefinition}),(0,v.x)()))))}deletePendingJsonPatchOperations(){this.store.dispatch(new D.Qh)}getRequestInstance(te,K,ee){return new this.patchRequestConstructor(te,K,ee)}getEndpointByIDHref(te,K){return(0,E.UE)(K)?`${te}/${K}`:`${te}`}jsonPatchByResourceType(te,K,ee){const ae=this.halService.getEndpoint(te).pipe((0,d.h)(Q=>(0,E.UE)(Q)),(0,v.x)(),(0,m.U)(Q=>this.getEndpointByIDHref(Q,K)));return this.submitJsonPatchOperations(ae,ee)}hasPendingOperations(te){return this.store.select(M(te)).pipe((0,m.U)(K=>!(0,E.xb)(K)&&Object.values(K.children).filter(ee=>!(0,E.xb)(ee.body)).length>0),(0,v.x)())}jsonPatchByResourceID(te,K,ee,ae){const Q=this.halService.getEndpoint(te).pipe((0,d.h)(j=>(0,E.UE)(j)),(0,v.x)(),(0,m.U)(j=>this.getEndpointByIDHref(j,K)));return this.submitJsonPatchOperations(Q,ee,ae)}}var I=e(25130),g=e(43015),B=e(23631),L=e(94650),V=e(89653);let Y=(()=>{class X extends C{constructor(K,ee,ae,Q){super(),this.requestService=K,this.store=ee,this.rdbService=ae,this.halService=Q,this.linkPath="",this.patchRequestConstructor=I.c}getRequestInstance(K,ee,ae){return new this.patchRequestConstructor(K,new B.R(ee,"?embed=item").toString(),ae)}}return X.\u0275fac=function(K){return new(K||X)(L.\u0275\u0275inject(t.s),L.\u0275\u0275inject(V.yh),L.\u0275\u0275inject(g.Q),L.\u0275\u0275inject(n.q))},X.\u0275prov=L.\u0275\u0275defineInjectable({token:X,factory:X.\u0275fac}),X})()},74297:(R,c,e)=>{"use strict";e.d(c,{O:()=>v});var t=e(39646),n=e(86421),o=e(15600),i=e(91511),d=e(21899),r=e(85019),a=e(54004),p=e(93498),h=e(21540),m=e(81554),_=e(94650);let v=(()=>{class E{constructor(b,M,P,D){this.workspaceitemDataService=b,this.workflowItemDataService=M,this.submissionService=P,this.halService=D}getHrefByID(b){const M=this.submissionService.getSubmissionScope()===i.S.WorkspaceItem?this.workspaceitemDataService:this.workflowItemDataService;return this.halService.getEndpoint(M.getLinkPath()).pipe((0,a.U)(P=>M.getIDHref(P,encodeURIComponent(b))))}findById(b,M=!0,P=!0,...D){switch(this.submissionService.getSubmissionScope()){case i.S.WorkspaceItem:return this.workspaceitemDataService.findById(b,M,P,...D);case i.S.WorkflowItem:return this.workflowItemDataService.findById(b,M,P,...D);default:const l=(new Date).getTime();return(0,t.of)(new o.N(l,h.N.cache.msToLive.default,l,m.q$.Error,"The request couldn't be sent. Unable to determine the type of submission object",void 0,400))}}}return E.\u0275fac=function(b){return new(b||E)(_.\u0275\u0275inject(r.p),_.\u0275\u0275inject(d.K),_.\u0275\u0275inject(n.b),_.\u0275\u0275inject(p.q))},E.\u0275prov=_.\u0275\u0275defineInjectable({token:E,factory:E.\u0275fac,providedIn:"root"}),E})()},49522:(R,c,e)=>{"use strict";e.d(c,{t:()=>v});var t=e(39646),n=e(39841),o=e(63900),i=e(68285),d=e(83616),r=e(86362),a=e(50503),p=e(86421),h=e(36391),m=e(24702),_=e(94650);let v=(()=>{class E{constructor(b,M,P,D){this.dsoNameService=b,this.dsoBreadcrumbsService=M,this.submissionService=P,this.collectionService=D}getBreadcrumbs(b){return(0,m.xb)(b)?(0,t.of)([]):(0,n.a)([b.collection.pipe((0,i.hC)(),(0,i.xe)()),this.submissionService.getSubmissionCollectionId(b.id)]).pipe((0,o.w)(([M,P])=>(0,m.Uh)(P)?this.collectionService.findById(P).pipe((0,i.hC)(),(0,i.xe)()):(0,t.of)(M)),(0,o.w)(M=>this.dsoBreadcrumbsService.getBreadcrumbs(M,(0,a.Y4)(M))))}}return E.\u0275fac=function(b){return new(b||E)(_.\u0275\u0275inject(d._),_.\u0275\u0275inject(r.B),_.\u0275\u0275inject(p.b),_.\u0275\u0275inject(h.W))},E.\u0275prov=_.\u0275\u0275defineInjectable({token:E,factory:E.\u0275fac}),E})()},34690:(R,c,e)=>{"use strict";e.d(c,{Vv:()=>v,pw:()=>E}
1);var t=e(52959),n=e(8427),o=e(47229),i=e(24702),d=e(15665),r=e(58943),a=e(7973),p=e(61200),h=e(62168),m=e(94650);function v(O,b){let M=O;return(0,i.K0)(O)&&("object"==typeof O&&function _(O){return"object"==typeof O&&O.hasOwnProperty("value")&&O.hasOwnProperty("language")&&O.hasOwnProperty("authority")&&O.hasOwnProperty("confidence")}(O)?M=new a.u(O.value,O.language,O.authority,O.display||O.value,O.place||b,O.confidence,O.otherInformation):Array.isArray(O)?(M=[],O.forEach((P,D)=>{M[D]=v(P,D)})):"object"==typeof O&&(M=Object.create({}),Object.keys(O).forEach(P=>{M[P]=v(O[P])}))),M}let E=(()=>{class O extends d.ry{constructor(M,P){super(),this.objectCache=M,this.dsoParser=P,this.toCache=!1,this.shouldDirectlyAttachEmbeds=!0}parse(M,P){if(this.dsoParser.parse((0,t.I8)(M),(0,t.I8)(P)),(0,i.UE)(P.payload)&&(0,i.UE)(P.payload._links)&&this.isSuccessStatus(P.statusCode)){const D=this.processResponse(P.payload,M);return new o.tp(P.statusCode,void 0,{dataDefinition:D})}if((0,i.xb)(P.payload)&&this.isSuccessStatus(P.statusCode))return new o.tp(P.statusCode);throw new Error("Unexpected response from server")}processResponse(M,P){const D=this.process(M,P),l=Array.of();return(Array.isArray(D)?D:Array.of(D)).forEach(I=>{if((I instanceof h.K||I instanceof p.p)&&I.sections){const g=Object.create({});Object.keys(I.sections).forEach(B=>{if("object"==typeof I.sections[B]&&(0,i.UE)(I.sections[B])&&(!I.sections[B].hasOwnProperty("files")||(0,i.UE)(I.sections[B].files))){const L=Object.create({});Object.keys(I.sections[B]).forEach(V=>{const Y=I.sections[B][V];Array.isArray(Y)?(L[V]=[],Y.forEach((X,te)=>{const K=v(X,te);(0,i.UE)(K)&&L[V].push(K)})):L[V]=Y}),g[B]=L}}),I=Object.assign({},I,{sections:g})}l.push(I)}),l}}return O.\u0275fac=function(M){return new(M||O)(m.\u0275\u0275inject(r.a),m.\u0275\u0275inject(n.j))},O.\u0275prov=m.\u0275\u0275defineInjectable({token:O,factory:O.\u0275fac}),O})()},17539:(R,c,e)=>{"use strict";e.d(c,{F:()=>b});var t=e(54004),n=e(71884),o=e(39300),i=e(18505),d=e(86099),r=e(31241),a=e(24702),p=e(25130),h=e(93498),m=e(43015),_=e(68285),v=e(23631),E=e(47229),O=e(94650);let b=(()=>{class M{constructor(D,l,C){this.rdbService=D,this.requestService=l,this.halService=C,this.linkPath="workspaceitems"}fetchRequest(D){return this.rdbService.buildFromRequestUUID(D).pipe((0,_.hC)(),(0,t.U)(l=>{if(l.hasFailed)throw new E.iQ({statusText:l.errorMessage,statusCode:l.statusCode});return(0,a.Uh)(l.payload)?l.payload.dataDefinition:l.payload}),(0,n.x)())}getEndpointByIDHref(D,l,C){let I=(0,a.UE)(l)?`${D}/${l}`:`${D}`;return I=new v.R(I,"?embed=item,sections,collection").toString(),C&&(I=new v.R(I,`&owningCollection=${C}`).toString()),I}deleteById(D,l){const C=this.requestService.generateRequestId();return this.halService.getEndpoint(l||this.linkPath).pipe((0,o.h)(I=>(0,a.UE)(I)),(0,n.x)(),(0,t.U)(I=>this.getEndpointByIDHref(I,D)),(0,t.U)(I=>new p.Wd(C,I)),(0,i.b)(I=>this.requestService.send(I)),(0,d.z)(()=>this.fetchRequest(C)),(0,n.x)())}getDataById(D,l){const C=this.requestService.generateRequestId();return this.halService.getEndpoint(D).pipe((0,t.U)(I=>this.getEndpointByIDHref(I,l)),(0,o.h)(I=>(0,a.UE)(I)),(0,n.x)(),(0,t.U)(I=>new p.X0(C,I)),(0,i.b)(I=>{this.requestService.send(I)}),(0,d.z)(()=>this.fetchRequest(C)),(0,n.x)())}postToEndpoint(D,l,C,I,g){const B=this.requestService.generateRequestId();return this.halService.getEndpoint(D).pipe((0,o.h)(L=>(0,a.UE)(L)),(0,t.U)(L=>this.getEndpointByIDHref(L,C,g)),(0,n.x)(),(0,t.U)(L=>new p.Ai(B,L,l,I)),(0,i.b)(L=>this.requestService.send(L)),(0,d.z)(()=>this.fetchRequest(B)),(0,n.x)())}patchToEndpoint(D,l,C){const I=this.requestService.generateRequestId();return this.halService.getEndpoint(D).pipe((0,o.h)(g=>(0,a.UE)(g)),(0,t.U)(g=>this.getEndpointByIDHref(g,C)),(0,n.x)(),(0,t.U)(g=>new p.c(I,g,l)),(0,i.b)(g=>this.requestService.send(g)),(0,d.z)(()=>this.fetchRequest(I)),(0,n.x)())}}return M.\u0275fac=function(D){return new(D||M)(O.\u0275\u0275inject(m.Q),O.\u0275\u0275inject(r.s),O.\u0275\u0275inject(h.q))},M.\u0275prov=O.\u0275\u0275defineInjectable({token:M,factory:M.\u0275fac}),M})()},91511:(R,c,e)=>{"use strict";e.d(c,{S:()=>t});var t=(()=>{return(n=t||(t={}
1)).WorkspaceItem="WORKSPACE",n.WorkflowItem="WORKFLOW",t;var n})()},18186:(R,c,e)=>{"use strict";e.d(c,{R1:()=>i,eU:()=>o,kB:()=>n});var t=e(3879);const n=new t._("vocabulary"),o=new t._("vocabularyEntry"),i=new t._("vocabularyEntryDetail")},97737:(R,c,e)=>{"use strict";e.d(c,{w:()=>a});var r,t=e(70655),n=e(29923),o=e(18186),i=e(19782),d=e(58140);let a=((r=class extends d.j{}).type=o.R1,r);(0,t.__decorate)([n.autoserialize,(0,t.__metadata)("design:type",String)],a.prototype,"id",void 0),(0,t.__decorate)([n.autoserialize,(0,t.__metadata)("design:type",Boolean)],a.prototype,"selectable",void 0),(0,t.__decorate)([n.deserialize,(0,t.__metadata)("design:type",Object)],a.prototype,"_links",void 0),a=(0,t.__decorate)([i.KB,(0,n.inheritSerialization)(d.j)],a)},58140:(R,c,e)=>{"use strict";e.d(c,{j:()=>m});var h,t=e(70655),n=e(29923),o=e(18186),i=e(19782),d=e(63037),r=e(78103),a=e(24702),p=e(88648);let m=((h=class extends p.J{hasAuthority(){return(0,a.UE)(this.authority)}hasValue(){return(0,a.UE)(this.value)}hasOtherInformation(){return(0,a.UE)(this.otherInformation)}hasPlaceholder(){return this.hasValue()&&this.value===r.n}getRenderTypes(){return[this.constructor]}}).type=o.eU,h);(0,t.__decorate)([n.autoserialize,(0,t.__metadata)("design:type",String)],m.prototype,"authority",void 0),(0,t.__decorate)([n.autoserialize,(0,t.__metadata)("design:type",String)],m.prototype,"display",void 0),(0,t.__decorate)([n.autoserialize,(0,t.__metadata)("design:type",String)],m.prototype,"value",void 0),(0,t.__decorate)([n.autoserialize,(0,t.__metadata)("design:type",Object)],m.prototype,"otherInformation",void 0),(0,t.__decorate)([d.OJ,n.autoserialize,(0,t.__metadata)("design:type",Object)],m.prototype,"type",void 0),(0,t.__decorate)([n.deserialize,(0,t.__metadata)("design:type",Object)],m.prototype,"_links",void 0),m=(0,t.__decorate)([i.KB],m)},84476:(R,c,e)=>{"use strict";e.d(c,{f:()=>t});class t{constructor(o,i=!1){this.name=o,this.closed=i}}},28562:(R,c,e)=>{"use strict";e.d(c,{I:()=>E});var v,t=e(70655),n=e(72839),o=e(31241),i=e(43015),d=e(58943),r=e(93498),a=e(53261),p=e(99678),h=e(18186),m=e(21147),_=e(94650);let E=((v=class extends n.t{constructor(b,M,P,D){super("vocabularyEntryDetails",b,M,P,D),this.requestService=b,this.rdbService=M,this.objectCache=P,this.halService=D,this.findAllData=new a.k(this.linkPath,b,M,P,D,this.responseMsToLive),this.searchData=new p.l(this.linkPath,b,M,P,D,this.responseMsToLive)}findAll(b,M,P,...D){return this.findAllData.findAll(b,M,P,...D)}searchBy(b,M,P,D,...l){return this.searchData.searchBy(b,M,P,D,...l)}}).\u0275fac=function(b){return new(b||v)(_.\u0275\u0275inject(o.s),_.\u0275\u0275inject(i.Q),_.\u0275\u0275inject(d.a),_.\u0275\u0275inject(r.q))},v.\u0275prov=_.\u0275\u0275defineInjectable({token:v,factory:v.\u0275fac}),v);E=(0,t.__decorate)([(0,m.cQ)(h.R1),(0,t.__metadata)("design:paramtypes",[o.s,i.Q,d.a,r.q])],E)},74185:(R,c,e)=>{"use strict";e.d(c,{K:()=>v});var _,t=e(70655),n=e(72839),o=e(31241),i=e(43015),d=e(58943),r=e(93498),a=e(53261),p=e(18186),h=e(21147),m=e(94650);let v=((_=class extends n.t{constructor(O,b,M,P){super("vocabularies",O,b,M,P),this.requestService=O,this.rdbService=b,this.objectCache=M,this.halService=P,this.findAllData=new a.k(this.linkPath,O,b,M,P,this.responseMsToLive)}findAll(O,b,M,...P){return this.findAllData.findAll(O,b,M,...P)}}).\u0275fac=function(O){return new(O||_)(m.\u0275\u0275inject(o.s),m.\u0275\u0275inject(i.Q),m.\u0275\u0275inject(d.a),m.\u0275\u0275inject(r.q))},_.\u0275prov=m.\u0275\u0275defineInjectable({token:_,factory:_.\u0275fac}),_);v=(0,t.__decorate)([(0,h.cQ)(p.kB),(0,t.__metadata)("design:paramtypes",[o.s,i.Q,d.a,r.q])],v)},49566:(R,c,e)=>{"use strict";e.d(c,{c:()=>b});var t=e(63900),n=e(54004),o=e(86099),i=e(93369),d=e(31241),r=e(24702),a=e(68285),p=e(81964),h=e(17481);class m extends h.R{constructor(P="",D,l,C,I,g,B){super(),this.query=P,this.filter=D,this.exact=l,this.entryID=C,this.elementsPerPage=I,this.currentPage=g,this.sort=B;const L=[];(0,r.UE)(P)&&L.push(new p.g("query",P)),(0,r.UE)(D)&&L.push(new p.g("filter",D)),(0,r.UE)(l)&&L.push(new p.g("exact",l.toString())),(0,r.UE)(C)&&L.push(new p.g("entryID",C)),this.searchParams=L}}var _=e(62713),v=e(28562),E=e(74185),O=e(94650);let b=(()=>{class M{constructor(D,l,C){this.requestService=D,this.vocabularyDataService=l,this.vocabularyEntryDetailDataService=C,this.searchTopMethod="top"}findVocabularyByHref(D,l=!0,C=!0,...I){return this.vocabularyDataService.findByHref(D,l,C,...I)}findVocabularyById(D,l=!0,C=!0,...I){return this.vocabularyDataService.findById(D,l,C,...I)}findAllVocabularies(D={},l=!0,C=!0,...I){return this.vocabularyDataService.findAll(D,l,C,...I)}getVocabularyEntries(D,l){const C=new m(null,null,null,null,l.elementsPerPage,l.currentPage);return this.findVocabularyById(D.name,!0,!0,(0,i.l)("entries",{findListOptions:C,shouldEmbed:!1})).pipe((0,a.Gp)(),(0,t.w)(I=>I.entries))}getVocabularyEntriesByValue(D,l,C,I){const g=new m(null,D,l,null,I.elementsPerPage,I.
1currentPage);return this.findVocabularyById(C.name,!0,!0,(0,i.l)("entries",{findListOptions:g,shouldEmbed:!1})).pipe((0,a.Gp)(),(0,t.w)(B=>B.entries))}getVocabularyEntryByValue(D,l){return this.getVocabularyEntriesByValue(D,!0,l,new _.S).pipe((0,a.LQ)(),(0,n.U)(C=>(0,r.UE)(C)?C[0]:null))}getVocabularyEntryByID(D,l){const C=new _.S,I=new m(null,null,null,D,C.elementsPerPage,C.currentPage);return this.findVocabularyById(l.name,!0,!0,(0,i.l)("entries",{findListOptions:I,shouldEmbed:!1})).pipe((0,a.Gp)(),(0,t.w)(g=>g.entries),(0,a.LQ)(),(0,n.U)(g=>(0,r.UE)(g)?g[0]:null))}findEntryDetailByHref(D,l=!0,C=!0,...I){return this.vocabularyEntryDetailDataService.findByHref(D,l,C,...I)}findEntryDetailById(D,l,C=!0,I=!0,g=!0,...B){return this.vocabularyEntryDetailDataService.findById(g?`${l}:${D}`:D,C,I,...B)}getEntryDetailParent(D,l,C=!0,I=!0,...g){const B=`${l}:${D}/parent`;return this.vocabularyEntryDetailDataService.getBrowseEndpoint().pipe((0,n.U)(L=>`${L}/${B}`),(0,o.z)(L=>this.vocabularyEntryDetailDataService.findByHref(L,C,I,...g)))}getEntryDetailChildren(D,l,C,I=!0,g=!0,...B){const L=new m(null,null,null,null,C.elementsPerPage,C.currentPage);return this.vocabularyEntryDetailDataService.getBrowseEndpoint().pipe((0,n.U)(V=>`${V}/${l}:${D}/children`),(0,t.w)(V=>this.vocabularyEntryDetailDataService.findListByHref(V,L,I,g,...B)))}searchTopEntries(D,l,C=!0,I=!0,...g){const B=new m(null,null,null,null,l.elementsPerPage,l.currentPage);return B.searchParams=[new p.g("vocabulary",D)],this.vocabularyEntryDetailDataService.searchBy(this.searchTopMethod,B,C,I,...g)}clearSearchTopRequests(){this.requestService.removeByHrefSubstring(`search/${this.searchTopMethod}`)}}return M.\u0275fac=function(D){return new(D||M)(O.\u0275\u0275inject(d.s),O.\u0275\u0275inject(E.K),O.\u0275\u0275inject(v.I))},M.\u0275prov=O.\u0275\u0275defineInjectable({token:M,factory:M.\u0275fac}),M})()},21899:(R,c,e)=>{"use strict";e.d(c,{K:()=>I});var C,t=e(70655),n=e(43015),o=e(31241),i=e(61200),d=e(93498),r=e(25130),a=e(46418),p=e(58943),h=e(54004),m=e(40367),_=e(24702),v=e(68285),E=e(81964),O=e(17481),b=e(72839),M=e(99678),P=e(90330),D=e(21147),l=e(94650);let I=((C=class extends b.t{constructor(B,L,V,Y,X){super("workflowitems",B,L,V,Y),this.requestService=B,this.rdbService=L,this.objectCache=V,this.halService=Y,this.notificationsService=X,this.searchByItemLinkPath="item",this.responseMsToLive=1e4,this.searchData=new M.l(this.linkPath,B,L,V,Y,this.responseMsToLive),this.deleteData=new P.R(this.linkPath,B,L,V,Y,X,this.responseMsToLive,this.constructIdEndpoint)}delete(B){return this.deleteWFI(B,!0)}sendBack(B){return this.deleteWFI(B,!1).pipe((0,v.hC)(),(0,h.U)(L=>L.hasSucceeded))}deleteWFI(B,L){const V=this.requestService.generateRequestId();return this.halService.getEndpoint(this.linkPath).pipe((0,h.U)(X=>this.deleteData.getIDHref(X,B)),(0,h.U)(X=>X+"?expunge="+L)).pipe((0,m.s)(X=>(0,_.Uh)(X))).subscribe(X=>{const te=new r.Vb(V,X,B);this.requestService.send(te)}),this.rdbService.buildFromRequestUUID(V)}findByItem(B,L=!1,V=!0,Y={},...X){const te=new O.R;te.searchParams=[new E.g("uuid",B)];const K=this.searchData.getSearchByHref(this.searchByItemLinkPath,te,...X);return this.findByHref(K,L,V,...X)}searchBy(B,L,V,Y,...X){return this.searchData.searchBy(B,L,V,Y,...X)}deleteByHref(B,L){return this.deleteData.deleteByHref(B,L)}}).\u0275fac=function(B){return new(B||C)(l.\u0275\u0275inject(o.s),l.\u0275\u0275inject(n.Q),l.\u0275\u0275inject(p.a),l.\u0275\u0275inject(d.q),l.\u0275\u0275inject(a.T))},C.\u0275prov=l.\u0275\u0275defineInjectable({token:C,factory:C.\u0275fac}),C);I=(0,t.__decorate)([(0,D.cQ)(i.p.type),(0,t.__metadata)("design:paramtypes",[o.s,n.Q,p.a,d.q,a.T])],I)},85019:(R,c,e)=>{"use strict";e.d(c,{p:()=>M});var b,t=e(70655),n=e(43015),o=e(31241),i=e(93498),d=e(46418),r=e(58943),a=e(62168),p=e(81964),h=e(17481),m=e(72839),_=e(99678),v=e(90330),E=e(21147),O=e(94650);let M=((b=class extends m.t{constructor(D,l,C,I,g){super("workspaceitems",D,l,C,I),this.requestService=D,this.rdbService=l,this.objectCache=C,this.halService=I,this.notificationsService=g,this.searchByItemLinkPath="item",this.searchData=new _.l(this.linkPath,D,l,C,I,this.responseMsToLive),this.deleteData=new v.R(this.linkPath,D,l,C,I,g,this.responseMsToLive,this.constructIdEndpoint)}findByItem(D,l=!1,C=!0,I={},...g){const B=new h.R;B.searchParams=[new p.g("uuid",D)];const L=this.getSearchByHref(this.searchByItemLinkPath,B,...g);return this.findByHref(L,l,C,...g)}getSearchByHref(D,l,...C){return this.searchData.getSearchByHref(D,l,...C)}searchBy(D,l,C,I,...g){return this.searchData.searchBy(D,l,C,I,...g)}delete(D,l){return this.deleteData.delete(D,l)}
1deleteByHref(D,l){return this.deleteData.deleteByHref(D,l)}}).\u0275fac=function(D){return new(D||b)(O.\u0275\u0275inject(o.s),O.\u0275\u0275inject(n.Q),O.\u0275\u0275inject(r.a),O.\u0275\u0275inject(i.q),O.\u0275\u0275inject(d.T))},b.\u0275prov=O.\u0275\u0275defineInjectable({token:b,factory:b.\u0275fac}),b);M=(0,t.__decorate)([(0,E.cQ)(a.K.type),(0,t.__metadata)("design:paramtypes",[o.s,n.Q,r.a,i.q,d.T])],M)},62085:(R,c,e)=>{"use strict";e.d(c,{t:()=>n});const n=new(e(3879)._)("supervisionorder")},67663:(R,c,e)=>{"use strict";e.d(c,{m:()=>X});var Y,t=e(70655),n=e(80529),o=e(31241),i=e(93498),d=e(43015),r=e(58943),a=e(46418),p=e(62085),h=e(71761),m=e(81964),_=e(24702),v=e(54004),E=e(50590),O=e(68285),b=e(17481),M=e(25130),P=e(57244),D=e(43499),l=e(72839),C=e(60210),I=e(99678),g=e(74508),B=e(90330),L=e(21147),V=e(94650);let X=((Y=class extends l.t{constructor(K,ee,ae,Q,j,k,G){super("supervisionorders",K,ee,ae,Q),this.requestService=K,this.rdbService=ee,this.objectCache=ae,this.halService=Q,this.notificationsService=j,this.comparator=k,this.groupService=G,this.searchByGroupMethod="group",this.searchByItemMethod="byItem",this.createData=new C.K(this.linkPath,K,ee,ae,Q,j,this.responseMsToLive),this.searchData=new I.l(this.linkPath,K,ee,ae,Q,this.responseMsToLive),this.patchData=new g.B(this.linkPath,K,ee,ae,Q,k,this.responseMsToLive,this.constructIdEndpoint),this.deleteData=new B.R(this.linkPath,K,ee,ae,Q,j,this.responseMsToLive,this.constructIdEndpoint)}create(K,ee,ae,Q){const j=[];return j.push(new m.g("uuid",ee)),j.push(new m.g("group",ae)),j.push(new m.g("type",Q)),this.createData.create(K,...j)}delete(K){return this.deleteData.delete(K).pipe((0,O.hC)(),(0,v.U)(ee=>ee.hasSucceeded))}update(K){return this.patchData.update(K)}searchByGroup(K,ee,ae=!0,Q=!0,...j){const k=new b.R;return k.searchParams=[new m.g("uuid",K)],(0,_.UE)(ee)&&k.searchParams.push(new m.g("item",ee)),this.searchData.searchBy(this.searchByGroupMethod,k,ae,Q,...j)}searchByItem(K,ee=!0,ae=!0,...Q){const j=new b.R;return j.searchParams=[new m.g("uuid",K)],this.searchData.searchBy(this.searchByItemMethod,j,ee,ae,...Q)}updateTarget(K,ee,ae,Q){const k=this.groupService.getIDHrefObs(ae),G=Object.create({});let ie=new n.WM;
1ie=ie.append("Content-Type","text/uri-list"),G.headers=ie;const ne=this.requestService.generateRequestId();return k.pipe((0,E.P)()).subscribe(q=>{const ce=new M.an(ne,ee+"/"+Q,q,G);Object.assign(ce,{getResponseParser:()=>P.o}),this.requestService.send(ce)}),this.rdbService.buildFromRequestUUIDAndAwait(ne,()=>this.invalidateByHref(ee))}}).\u0275fac=function(K){return new(K||Y)(V.\u0275\u0275inject(o.s),V.\u0275\u0275inject(d.Q),V.\u0275\u0275inject(r.a),V.\u0275\u0275inject(i.q),V.\u0275\u0275inject(a.T),V.\u0275\u0275inject(h.v),V.\u0275\u0275inject(D.O))},Y.\u0275prov=V.\u0275\u0275defineInjectable({token:Y,factory:Y.\u0275fac}),Y);X=(0,t.__decorate)([(0,L.cQ)(p.t),(0,t.__metadata)("design:paramtypes",[o.s,d.Q,r.a,i.q,a.T,h.v,D.O])],X)},27470:(R,c,e)=>{"use strict";e.d(c,{p:()=>b});var O,t=e(70655),n=e(80529),o=e(43015),i=e(58943),d=e(31241),r=e(93498),a=e(8138),p=e(62396),h=e(81964),m=e(68285),_=e(17481),v=e(21147),E=e(94650);let b=((O=class extends p.C{constructor(P,D,l,C){super("claimedtasks",P,D,l,C,1e3),this.requestService=P,this.rdbService=D,this.objectCache=l,this.halService=C}claimTask(P,D){const l=Object.create({});let C=new n.WM;
1return C=C.append("Content-Type","text/uri-list"),l.headers=C,this.postToEndpoint(this.linkPath,D,null,l)}submitTask(P,D){return this.postToEndpoint(this.linkPath,this.requestService.uriEncodeBody(D),P,this.makeHttpOptions())}returnToPoolTask(P){return this.deleteById(this.linkPath,P,this.makeHttpOptions())}findByItem(P){const D=new _.R;return D.searchParams=[new h.g("uuid",P)],this.searchTask("findByItem",D).pipe((0,m.xw)())}}).\u0275fac=function(P){return new(P||O)(E.\u0275\u0275inject(d.s),E.\u0275\u0275inject(o.Q),E.\u0275\u0275inject(i.a),E.\u0275\u0275inject(r.q))},O.\u0275prov=E.\u0275\u0275defineInjectable({token:O,factory:O.\u0275fac}),O);b=(0,t.__decorate)([(0,v.cQ)(a.S),(0,t.__metadata)("design:paramtypes",[d.s,o.Q,i.a,r.q])],b)},8395:(R,c,e)=>{"use strict";e.d(c,{q:()=>a});var r,t=e(70655),n=e(29923),o=e(19782),i=e(8138),d=e(20378);let a=((r=class extends d.A{}).type=i.S,r);a=(0,t.__decorate)([o.KB,(0,n.inheritSerialization)(d.A),(0,o.o2)(d.A)],a)},8138:(R,c,e)=>{"use strict";e.d(c,{S:()=>n});const n=new(e(3879)._)("claimedtask")},56502:(R,c,e)=>{"use strict";e.d(c,{d:()=>a});var r,t=e(70655),n=e(29923),o=e(19782),i=e(15479),d=e(20378);let a=((r=class extends d.A{}).type=i.g,r);a=(0,t.__decorate)([o.KB,(0,n.inheritSerialization)(d.A),(0,o.o2)(d.A)],a)},15479:(R,c,e)=>{"use strict";e.d(c,{g:()=>n});const n=new(e(3879)._)("pooltask")},20378:(R,c,e)=>{"use strict";e.d(c,{A:()=>E});var t=e(70655),n=e(29923),o=e(69751),i=e(19782),d=e(71508),r=e(77572),a=e(42621);const h=new(e(3879)._)("taskobject");var v,m=e(9657),_=e(42853);let E=((v=class extends a.t{}).type=h,v);(0,t.__decorate)([n.autoserialize,(0,t.__metadata)("design:type",String)],E.prototype,"id",void 0),(0,t.__decorate)([n.autoserialize,(0,t.__metadata)("design:type",String)],E.prototype,"step",void 0),(0,t.__decorate)([n.deserialize,(0,t.__metadata)("design:type",Object)],E.prototype,"_links",void 0),(0,t.__decorate)([(0,i.p4)(d.U,!1,"owner"),(0,t.__metadata)("design:type",o.y)],E.prototype,"eperson",void 0),(0,t.__decorate)([(0,i.p4)(r.o),(0,t.__metadata)("design:type",o.y)],E.prototype,"group",void 0),(0,t.__decorate)([(0,i.p4)(m.w),(0,t.__metadata)("design:type",Object)],E.prototype,"workflowitem",void 0),(0,t.__decorate)([(0,i.p4)(_.j,!1,"action"),(0,t.__metadata)("design:type",o.y)],E.prototype,"action",void 0),E=(0,t.__decorate)([i.KB,(0,n.inheritSerialization)(a.t)],E)},42853:(R,c,e)=>{"use strict";e.d(c,{j:()=>n});const n=new(e(3879)._)("workflowaction")},99640:(R,c,e)=>{"use strict";e.d(c,{N:()=>O});var E,t=e(70655),n=e(43015),o=e(58943),i=e(31241),d=e(93498),r=e(15479),a=e(62396),p=e(81964),h=e(68285),m=e(17481),_=e(21147),v=e(94650);let O=((E=class extends a.C{constructor(M,P,D,l){super("pooltasks",M,P,D,l,1e3),this.requestService=M,this.rdbService=P,this.objectCache=D,this.halService=l}findByItem(M){const P=new m.R;return P.searchParams=[new p.g("uuid",M)],this.searchTask("findByItem",P).pipe((0,h.hC)())}getPoolTaskEndpointById(M){return this.getEndpointById(M)}}).\u0275fac=function(M){return new(M||E)(v.\u0275\u0275inject(i.s),v.\u0275\u0275inject(n.Q),v.\u0275\u0275inject(o.a),v.\u0275\u0275inject(d.q))},E.\u0275prov=v.\u0275\u0275defineInjectable({token:E,factory:E.\u0275fac}),E);O=(0,t.__decorate)([(0,_.cQ)(r.g),(0,t.__metadata)("design:paramtypes",[i.s,n.Q,o.a,d.q])],O)},83774:(R,c,e)=>{"use strict";e.d(c,{T:()=>d});var t=e(15665),n=e(58943),o=e(47229),i=e(94650);let d=(()=>{class r extends t.ry{constructor(p){super(),this.objectCache=p,this.toCache=!1}parse(p,h){if(this.isSuccessStatus(h.statusCode))return new o.tp(h.statusCode);throw new Error("Unexpected response from server")}}return r.\u0275fac=function(p){return new(p||r)(i.\u0275\u0275inject(n.a))},r.\u0275prov=i.\u0275\u0275defineInjectable({token:r,factory:r.\u0275fac}),r})()},62396:(R,c,e)=>{"use strict";e.d(c,{C:()=>O});var t=e(80529),n=e(39300),o=e(54004),i=e(71884),d=e(18505),r=e(86099),a=e(40367),p=e(25130),h=e(24702);class m{constructor(M,P,D){this.isSuccessful=M,this.statusCode=P,this.errorMessage=D}get hasSucceeded(){return this.isSuccessful}}var _=e(68285),v=e(99678),E=e(72839);
1class O extends E.t{constructor(M,P,D,l,C,I){super(M,P,D,l,C),this.linkPath=M,this.requestService=P,this.rdbService=D,this.objectCache=l,this.halService=C,this.responseMsToLive=I,this.searchData=new v.l(this.linkPath,P,D,l,C,this.responseMsToLive)}getEndpointByIDHref(M,P){return(0,h.UE)(P)?`${M}/${P}`:`${M}`}postToEndpoint(M,P,D,l){const C=this.requestService.generateRequestId();return this.halService.getEndpoint(M).pipe((0,n.h)(I=>(0,h.UE)(I)),(0,o.U)(I=>this.getEndpointByIDHref(I,D)),(0,i.x)(),(0,o.U)(I=>new p.Pv(C,I,P,l)),(0,d.b)(I=>this.requestService.send(I)),(0,r.z)(I=>this.fetchRequest(C)),(0,i.x)())}deleteById(M,P,D){const l=this.requestService.generateRequestId();return this.getEndpointById(P,M).pipe((0,o.U)(C=>new p.zP(l,C,null,D)),(0,d.b)(C=>this.requestService.send(C)),(0,r.z)(C=>this.fetchRequest(l)),(0,i.x)())}getEndpointById(M,P){return this.halService.getEndpoint(P||this.linkPath).pipe((0,n.h)(D=>(0,h.UE)(D)),(0,i.x)(),(0,o.U)(D=>this.getEndpointByIDHref(D,M)))}searchTask(M,P={},...D){return this.searchData.getSearchByHref(M,P,...D).pipe((0,a.s)(C=>(0,h.Uh)(C)),(0,r.z)(C=>this.findByHref(C,!1,!0).pipe((0,_.f1)(),(0,d.b)(()=>this.requestService.setStaleByHrefSubstring(C)))))}fetchRequest(M){return this.rdbService.buildFromRequestUUID(M).pipe((0,_.hC)(),(0,o.U)(P=>P.hasFailed?new m(!1,P.statusCode,P.errorMessage):new m(!0,P.statusCode)))}makeHttpOptions(){const M=Object.create({});let P=new t.WM;return P=P.append("Content-Type","application/x-www-form-urlencoded"),M.headers=P,M}searchBy(M,P,D,l,...C){return this.searchData.searchBy(M,P,D,l,...C)}}},25309:(R,c,e)=>{"use strict";e.d(c,{J:()=>o});var t=e(23631),n=e(21540);class o extends t.R{constructor(...d){super(n.N.rest.baseUrl,"/api",...d)}}},23631:(R,c,e)=>{"use strict";e.d(c,{R:()=>n});var t=e(24702);class n{constructor(...i){this.parts=i}toString(){if((0,t.xb)(this.parts))return"";{let i=this.parts.join("/");return i=i.replace(/:\//g,"://"),i=i.replace(/([^:\s])\/+/g,"$1/"),i=i.replace(/\/($|\?|&|#[^!])/g,"$1"),i=i.replace(/(\?.+)\?/g,"$1&"),i}}}},63037:(R,c,e)=>{"use strict";e.d(c,{J:()=>d,OJ:()=>a,Qe:()=>h,pm:()=>r});var t=e(24702);const n=new Map,o=new Map;function i(_,v,E){const O=E.find(b=>{if(_[b]===v[b]||(0,t.xI)(_[b])&&(0,t.xI)(v[b]))return!1;if((0,t.xI)(_[b])||(0,t.xI)(v[b]))return!0;const M=function m(_,v){return(o.get(_)||new Map).get(v)}(_.constructor,b);return(0,t.Uh)(M)?!i(_[b],v[b],M):_[b]instanceof d?!_[b].equals(v[b]):"object"==typeof _[b]?!i(_[b],v[b],Object.keys(_)):_[b]!==v[b]});return(0,t.xI)(O)}class d{equals(v){if((0,t.xI)(v))return!1;if(this===v)return!0;const E=p(this.constructor);return i(this,v,Object.keys(this).filter(b=>!E.includes(b)))}}function r(_){return function(E){const O=p(_)||[],b=p(E)||[];n.set(E,[...b,...O]);const M=o.get(E)||new Map,P=o.get(_)||new Map;Array.from(P.keys()).filter(D=>!Array.from(M.keys()).includes(D)).forEach(D=>{h(...P.get(D))(new E,D)})}}function a(_,v){if(!_)return;let E=n.get(_.constructor);(0,t.xb)(E)&&(E=[]),n.set(_.constructor,[...E,v])}function p(_){return n.get(_)||[]}function h(..._){return function(E,O){if(!E)return;let b=o.get(E.constructor);(0,t.xb)(b)&&(b=new Map),b.set(O,_),o.set(E.constructor,b)}}},22334:(R,c,e)=>{"use strict";e.d(c,{VY:()=>o,aj:()=>n,ew:()=>t});const t="X-XSRF-TOKEN",n="DSPACE-XSRF-TOKEN",o="XSRF-TOKEN"},63963:(R,c,e)=>{"use strict";e.d(c,{z:()=>o});var t=e(61135),n=e(94650);let o=(()=>{class i{constructor(){this.tokenInitialized$=new t.X(!1)}}return i.\u0275fac=function(r){return new(r||i)},i.\u0275prov=n.\u0275\u0275defineInjectable({token:i,factory:i.\u0275fac}),i})()},35057:(R,c,e)=>{"use strict";e.d(c,{h:()=>o,v:()=>n});const n={SET:(0,e(79472).d)("dspace/core/correlationId/SET")};class o{constructor(d){this.payload=d,this.type=n.SET}}},57189:(R,c,e)=>{"use strict";e.d(c,{_:()=>P});var t=e(47556),n=e(24006),o=e(68285),i=e(54004),d=e(46418),r=e(24702),a=e(59656),p=e(96482),h=e(54384),m=e(94650),_=e(89383),v=e(34793),E=e(36895);function O(D,l){if(1&D&&(m.\u0275\u0275elementStart(0,"option",9),m.\u0275\u0275text(1),m.\u0275\u0275pipe(2,"translate"),m.\u0275\u0275elementEnd()),2&D){const C=l.$implicit;m.\u0275\u0275property("value",C),m.\u0275\u0275advance(1),m.\u0275\u0275textInterpolate1(" ",m.\u0275\u0275pipeBind1(2,2,"curation-task.task."+C+".label")," ")}}function b(D,l){1&D&&(m.\u0275\u0275elementStart(0,"div",3)(1,"label",10),m.\u0275\u0275text(2),m.\u0275\u0275pipe(3,"translate"),m.\u0275\u0275elementEnd(),m.\u0275\u0275element(4,"input",11),m.\u0275\u0275elementStart(5,"small",12),m.\u0275\u0275text(6),m.\u0275\u0275pipe(7,"translate"),m.\u0275\u0275elementEnd()()),2&D&&(m.\u0275\u0275advance(2),m.\u0275\u0275textInterpolate(m.\u0275\u0275pipeBind1(3,2,"curation.form.handle.label")),m.\u0275\u0275advance(4),m.\u0275\u0275textInterpolate(m.\u0275\u0275pipeBind1(7,4,"curation.form.handle.hint")))}let P=(()=>{class D{constructor(C,I,g,B,L,V,Y){this.scriptDataService=C,this.configurationDataService=I,this.notificationsService=g,this.translateService=B,this.handleService=L,this.router=V,this.cdr=Y,this.subs=[]}
1ngOnDestroy(){this.subs.forEach(C=>C.unsubscribe())}ngOnInit(){this.form=new n.nJ({task:new n.p4(""),handle:new n.p4("")}),this.config=this.configurationDataService.findByPropertyName("plugin.named.org.dspace.curate.CurationTask"),this.subs.push(this.config.pipe((0,o.Gp)()).subscribe(C=>{this.tasks=C.values.filter(I=>(0,r.UE)(I)&&I.includes("=")).map(I=>I.split("=")[1].trim()),this.form.get("task").patchValue(this.tasks[0]),this.cdr.detectChanges()}))}hasHandleValue(){return(0,r.Uh)(this.dsoHandle)}submit(){const C=this.form.get("task").value;let I;I=this.hasHandleValue()?this.handleService.normalizeHandle(this.dsoHandle).pipe((0,i.U)(g=>((0,r.xb)(g)&&this.notificationsService.error(this.translateService.get("curation.form.submit.error.head"),this.translateService.get("curation.form.submit.error.invalid-handle")),g))):this.handleService.normalizeHandle(this.form.get("handle").value).pipe((0,i.U)(g=>(0,r.xb)(g)?"all":g)),this.subs.push(I.subscribe(g=>{(0,r.Uh)(g)&&this.subs.push(this.scriptDataService.invoke("curate",[{name:"-t",value:C},{name:"-i",value:g}],[]).pipe((0,o.hC)()).subscribe(B=>{B.hasSucceeded?(this.notificationsService.success(this.translateService.get("curation.form.submit.success.head"),this.translateService.get("curation.form.submit.success.content")),this.router.navigateByUrl((0,p.Ah)(B.payload.processId))):this.notificationsService.error(this.translateService.get("curation.form.submit.error.head"),this.translateService.get("curation.form.submit.error.content"))}))}))}}return D.\u0275fac=function(C){return new(C||D)(m.\u0275\u0275directiveInject(t.UY),m.\u0275\u0275directiveInject(a.i),m.\u0275\u0275directiveInject(d.T),m.\u0275\u0275directiveInject(_.sK),m.\u0275\u0275directiveInject(h.n),m.\u0275\u0275directiveInject(v.F0),m.\u0275\u0275directiveInject(m.ChangeDetectorRef))},D.\u0275cmp=m.\u0275\u0275defineComponent({type:D,selectors:[["ds-curation-form"]],inputs:{dsoHandle:"dsoHandle"},decls:13,vars:9,consts:[[3,"formGroup","ngSubmit"],[1,"form-group"],[1,"row","mb-2"],[1,"col-12","col-sm-6"],["for","task",1,"font-weight-bold"],["id","task","formControlName","task",1,"form-control"],[3,"value",4,"ngFor","ngForOf"],["class","col-12 col-sm-6",4,"ngIf"],["type","submit",1,"btn","btn-default","btn-primary"],[3,"value"],["for","handle",1,"font-weight-bold"],["id","handle","formControlName","handle",1,"form-control"],[1,"text-muted"]],template:function(C,I){1&C&&(m.\u0275\u0275elementStart(0,"form",0),m.\u0275\u0275listener("ngSubmit",function(){return I.submit()}),m.\u0275\u0275elementStart(1,"div",1)(2,"div",2)(3,"div",3)(4,"label",4),m.\u0275\u0275text(5),m.\u0275\u0275pipe(6,"translate"),m.\u0275\u0275elementEnd(),m.\u0275\u0275elementStart(7,"select",5),m.\u0275\u0275template(8,O,3,4,"option",6),m.\u0275\u0275elementEnd()(),m.\u0275\u0275template(9,b,8,6,"div",7),m.\u0275\u0275elementEnd(),m.\u0275\u0275elementStart(10,"button",8),m.\u0275\u0275text(11),m.\u0275\u0275pipe(12,"translate"),m.\u0275\u0275elementEnd()()()),2&C&&(m.\u0275\u0275property("formGroup",I.form),m.\u0275\u0275advance(5),m.\u0275\u0275textInterpolate(m.\u0275\u0275pipeBind1(6,5,"curation.form.task-select.label")),m.\u0275\u0275advance(3),m.\u0275\u0275property("ngForOf",I.tasks),m.\u0275\u0275advance(1),m.\u0275\u0275property("ngIf",!I.hasHandleValue()),m.\u0275\u0275advance(2),m.\u0275\u0275textInterpolate(m.\u0275\u0275pipeBind1(12,7,"curation.form.submit")))},dependencies:[E.sg,E.O5,n._Y,n.YN,n.Kr,n.Fj,n.EJ,n.JJ,n.JL,n.sg,n.u,_.X$],encapsulation:2}),D})()},90439:(R,c,e)=>{"use strict";e.r(c),e.d(c,{FooterComponent:()=>a});var t=e(24702),n=e(21540),o=e(19937),i=e(47235),d=e(94650),r=e(92834);let a=(()=>{class p{constructor(m,_){this.cookies=m,this.authorizationService=_,this.dateObj=Date.now(),this.showTopFooter=!1,this.showPrivacyPolicy=n.N.info.enablePrivacyStatement,this.showEndUserAgreement=n.N.info.enableEndUserAgreement,this.showSendFeedback$=this.authorizationService.isAuthorized(i.i.CanSendFeedback)}showCookieSettings(){return(0,t.Uh)(this.cookies)&&this.cookies.showSettings(),!1}}return p.\u0275fac=function(m){return new(m||p)(d.\u0275\u0275directiveInject(r.D,8),d.\u0275\u0275directiveInject(o._))},p.\u0275cmp=d.\u0275\u0275defineComponent({type:p,selectors:[["ds-footer"]],decls:61,vars:0,consts:[[1,"text-lg-start"],[1,"container"],[1,"footer-grid"],[1,"footer-column"],[1,"footer-logo"],["src","assets/dspace/images/logo.png","alt","Logo UNTUMBES",2,"width","50px","height","70px"],[1,"footer-logo-text"],[1,"footer-links"],["href","#"],[1,"fas","fa-chevron-right"],[1,"contact-info"],[1,"fas","fa-map-marker-alt"],[1,"fas","fa-phone"],[1,"fas","fa-envelope"],[1,"fas","fa-clock"],["href","/info/feedback"],[1,"footer-bottom"]],template:function(m,_){1&m&&(d.\u0275\u0275elementStart(0,"footer",0),d.\u0275\u0275element(1,"br")(2,"br"),d.\u0275\u0275elementStart(3,"div",1)(4,"div",2)(5,"div",3)(6,"div",4),d.\u0275\u0275element(7,"img",5),d.\u0275\u0275elementStart(8,"div",6),d.\u0275\u0275text(9,"Repositorio Institucional"),d.\u0275\u0275elementEnd()(),d.\u0275\u0275elementStart(10,"p"),d.\u0275\u0275text(11,"El Repositorio Institucional de la Universidad Nacional de Tumbes proporciona acceso al conocimiento acad\xe9mico y cient\xedfico producido por nuestra comunidad."),d.\u0275\u0275elementEnd()(),d.\u0275\u0275elementStart(12,"div",3)(13,"h3"),d.\u0275\u0275text(14,"Enlaces R\xe1pidos"),d.\u0275\u0275elementEnd(),d.\u0275\u0275elementStart(15,"ul",7)(16,"li")(17,"a",8),d.\u0275\u0275element(18,"i",9),d.\u0275\u0275text(19," Inicio"),d.\u0275\u0275elementEnd()(),d.\u0275\u0275elementStart(20,"li")(21,"a",8),d.\u0275\u0275element(22,"i",9),d.\u0275\u0275text(23," Sobre Nosotros"),d.\u0275\u0275elementEnd()(),d.\u0275\u0275elementStart(24,"li")(25,"a",8),d.\u0275\u0275element(26,"i",9),d.\u0275\u0275text(27," Colecciones"),d.\u0275\u0275elementEnd()(),d.\u0275\u0275elementStart(28,"li")(29,"a",8),d.\u0275\u0275element(30,"i",9),d.\u0275\u0275text(31," Comunidades"),d.\u0275\u0275elementEnd()()()(),d.\u0275\u0275elementStart(32,"div",3)(33,"h3"),d.\u0275\u0275text(34,"Cont\xe1ctenos"),d.\u0275\u0275elementEnd(),d.\u0275\u0275elementStart(35,"div",10),d.\u0275\u0275element(36,"i",11),d.\u0275\u0275elementStart(37,"span"),d.\u0275\u0275text(38,"Av. Universitaria S/N - Tumbes, Per\xfa"),d.\u0275\u0275elementEnd()(),d.\u0275\u0275elementStart(39,"div",10),d.\u0275\u0275element(40,"i",12),d.\u0275\u0275elementStart(41,"span"),d.\u0275\u0275text(42,"+51 72 523171"),d.\u0275\u0275elementEnd()(),d.\u0275\u0275elementStart(43,"div",10),d.\u0275\u0275element(44,"i",13),d.\u0275\u0275elementStart(45,"span"),d.\u0275\u0275text(46,"[email protected]"),d.\u0275\u0275elementEnd()(),d.\u0275\u0275elementStart(47,"div",10),d.\u0275\u0275element(48,"i",14),d.\u0275\u0275elementStart(49,"span"),d.\u0275\u0275text(50,"Lunes - Viernes: 8:00 AM - 4:00 PM"),d.\u0275\u0275elementEnd()()(),d.\u0275\u0275elementStart(51,"div",3)(52,"h3"),d.\u0275\u0275text(53,"Suscr\xedbete"),d.\u0275\u0275elementEnd(),d.\u0275\u0275elementStart(54,"p"),d.\u0275\u0275text(55,"Recibe notificaciones sobre nuevas publicaciones y eventos relacionados con el repositorio. ingresa "),d.\u0275\u0275elementStart(56,"a",15),d.\u0275\u0275text(57,"Aqui \u2192 "),d.\u0275\u0275elementEnd()()()(),d.\u0275\u0275elementStart(58,"div",16)(59,"p"),d.\u0275\u0275text(60,"\xa9 2026 Universidad Nacional de Tumbes. Todos los derechos reservados."),d.\u0275\u0275elementEnd()()()())},styles:['[_nghost-%COMP%] footer[_ngcontent-%COMP%]{background-color:#0a1d56;text-align:center;z-index:var(--ds-footer-z-index);border-top:var(--ds-footer-border);padding:var(--ds-footer-padding);position:relative;overflow:hidden;color:#fff}[_nghost-%COMP%] footer[_ngcontent-%COMP%] .container[_ngcontent-%COMP%]{width:100%;max-width:1200px;margin:0 auto;padding:0 1rem}@media (max-width: 992px){[_nghost-%COMP%] footer[_ngcontent-%COMP%] .footer-grid[_ngcontent-%COMP%]{grid-template-columns:repeat(auto-fit,minmax(200px,1fr))}}[_nghost-%COMP%] footer[_ngcontent-%COMP%] .footer-grid[_ngcontent-%COMP%]{display:grid;grid-template-columns:repeat(auto-fit,minmax(250px,1fr));gap:2rem;margin-bottom:2rem;position:relative;z-index:1}[_nghost-%COMP%] footer[_ngcontent-%COMP%] .footer-logo[_ngcontent-%COMP%]{display:flex;align-items:center;margin-bottom:1.5rem}[_nghost-%COMP%] footer[_ngcontent-%COMP%] .footer-column[_ngcontent-%COMP%] h3[_ngcontent-%COMP%]{font-size:1.2rem;margin-bottom:1.5rem;padding-bottom:.5rem;border-bottom:2px solid #ffc436;display:inline-block;position:relative}[_nghost-%COMP%] footer[_ngcontent-%COMP%] element.style[_ngcontent-%COMP%]{margin-top:15px}[_nghost-%COMP%] footer[_ngcontent-%COMP%] .search-container[_ngcontent-%COMP%]{position:relative;width:100%;max-width:600px;z-index:2;opacity:0;transform:scale(.95);animation:fadeInScale .6s ease forwards .6s}[_nghost-%COMP%] footer[_ngcontent-%COMP%] .footer-links[_ngcontent-%COMP%]{list-style:none}[_nghost-%COMP%] footer[_ngcontent-%COMP%] .footer-links[_ngcontent-%COMP%] a[_ngcontent-%COMP%]{color:#dee2e6;text-decoration:none;transition:all .3s ease;display:flex;align-items:center;gap:8px;padding:.25rem 0}[_nghost-%COMP%] footer[_ngcontent-%COMP%] .footer-links[_ngcontent-%COMP%] a[_ngcontent-%COMP%] i[_ngcontent-%COMP%]{color:#ffc436;font-size:.9rem}[_nghost-%COMP%] footer[_ngcontent-%COMP%] .search-btn[_ngcontent-%COMP%]{position:absolute;right:6px;top:50%;transform:translateY(-50%);background-color:#1450a3;color:#fff;border:none;border-radius:30px;padding:10px 20px;cursor:pointer;font-weight:500;box-shadow:0 2px 4px #0000000d;transition:all .3s ease;display:flex;align-items:center;gap:6px}[_nghost-%COMP%] footer[_ngcontent-%COMP%] .contact-info[_ngcontent-%COMP%] i[_ngcontent-%COMP%]{color:#ffc436}[_nghost-%COMP%] footer[_ngcontent-%COMP%] .fa-solid[_ngcontent-%COMP%], [_nghost-%COMP%] footer[_ngcontent-%COMP%] .fas[_ngcontent-%COMP%]{font-weight:900}[_nghost-%COMP%] footer[_ngcontent-%COMP%] .fa-classic[_ngcontent-%COMP%], [_nghost-%COMP%] footer[_ngcontent-%COMP%] .fa-regular[_ng
1content-%COMP%], [_nghost-%COMP%] footer[_ngcontent-%COMP%] .fa-solid[_ngcontent-%COMP%], [_nghost-%COMP%] footer[_ngcontent-%COMP%] .far[_ngcontent-%COMP%], [_nghost-%COMP%] footer[_ngcontent-%COMP%] .fas[_ngcontent-%COMP%]{font-family:"Font Awesome 6 Free"}[_nghost-%COMP%] footer[_ngcontent-%COMP%] .contact-info[_ngcontent-%COMP%]{color:#202020!important}[_nghost-%COMP%] footer[_ngcontent-%COMP%] .contact-info[_ngcontent-%COMP%]{padding:2rem;background-color:#fff;border-radius:8px;box-shadow:0 4px 8px #0000001a;height:-moz-fit-content;height:fit-content;transition:all .3s ease}[_nghost-%COMP%] footer[_ngcontent-%COMP%] .contact-info[_ngcontent-%COMP%]{display:flex;align-items:center;gap:10px;margin-bottom:1rem;color:#dee2e6}']}),p})()},24958:(R,c,e)=>{"use strict";e.d(c,{k:()=>d});var t=e(25330),n=e(94650);function o(r,a){}const i=["*"];let d=(()=>{class r extends t.F{getComponentName(){return"FooterComponent"}importThemedComponent(p){return e(71169)(`./${p}/app/footer/footer.component`)}importUnthemedComponent(){return Promise.resolve().then(e.bind(e,90439))}}return r.\u0275fac=function(){let a;return function(h){return(a||(a=n.\u0275\u0275getInheritedFactory(r)))(h||r)}}(),r.\u0275cmp=n.\u0275\u0275defineComponent({type:r,selectors:[["ds-themed-footer"]],features:[n.\u0275\u0275InheritDefinitionFeature],ngContentSelectors:i,decls:5,vars:0,consts:[["vcr",""],["content",""]],template:function(p,h){1&p&&(n.\u0275\u0275projectionDef(),n.\u0275\u0275template(0,o,0,0,"ng-template",null,0,n.\u0275\u0275templateRefExtractor),n.\u0275\u0275elementStart(2,"div",null,1),n.\u0275\u0275projection(4),n.\u0275\u0275elementEnd())},encapsulation:2}),r})()},79224:(R,c,e)=>{"use strict";e.r(c),e.d(c,{ForbiddenComponent:()=>r});var t=e(24755),n=e(13014),o=e(94650),i=e(34793),d=e(89383);let r=(()=>{class a{constructor(h,m){this.authService=h,this.responseService=m,this.responseService.setForbidden()}ngOnInit(){this.authService.clearRedirectUrl()}}return a.\u0275fac=function(h){return new(h||a)(o.\u0275\u0275directiveInject(t.e8),o.\u0275\u0275directiveInject(n.N))},a.\u0275cmp=o.\u0275\u0275defineComponent({type:a,selectors:[["ds-forbidden"]],decls:16,vars:9,consts:[[1,"forbidden","container"],[1,"text-center"],["routerLink","/home",1,"btn","btn-primary"]],template:function(h,m){1&h&&(o.\u0275\u0275elementStart(0,"div",0)(1,"h1"),o.\u0275\u0275text(2,"403"),o.\u0275\u0275elementEnd(),o.\u0275\u0275elementStart(3,"h2")(4,"small"),o.\u0275\u0275text(5),o.\u0275\u0275pipe(6,"translate"),o.\u0275\u0275elementEnd()(),o.\u0275\u0275element(7,"br"),o.\u0275\u0275elementStart(8,"p"),o.\u0275\u0275text(9),o.\u0275\u0275pipe(10,"translate"),o.\u0275\u0275elementEnd(),o.\u0275\u0275element(11,"br"),o.\u0275\u0275elementStart(12,"p",1)(13,"a",2),o.\u0275\u0275text(14),o.\u0275\u0275pipe(15,"translate"),o.\u0275\u0275elementEnd()()()),2&h&&(o.\u0275\u0275advance(5),o.\u0275\u0275textInterpolate(o.\u0275\u0275pipeBind1(6,3,"403.forbidden")),o.\u0275\u0275advance(4),o.\u0275\u0275textInterpolate(o.\u0275\u0275pipeBind1(10,5,"403.help")),o.\u0275\u0275advance(5),o.\u0275\u0275textInterpolate(o.\u0275\u0275pipeBind1(15,7,"403.link.home-page")))},dependencies:[i.rH,d.X$]}),a})()},10565:(R,c,e)=>{"use strict";e.r(c),e.d(c,{HeaderNavbarWrapperComponent:()=>h});var t=e(54541),n=e(78969),o=e(958),i=e(94650),d=e(36895),r=e(85965),a=e(53658);const p=function(m){return{open:m}};let h=(()=>{class m{constructor(v,E){this.menuService=v,this.windowService=E,this.menuID=n.z.PUBLIC,this.maxMobileWidth=o.or.SM}ngOnInit(){this.isMobile$=this.windowService.isUpTo(this.maxMobileWidth),this.isNavBarCollapsed$=this.menuService.isMenuCollapsed(this.menuID)}}return m.\u0275fac=function(v){return new(v||m)(i.\u0275\u0275directiveInject(t.h),i.\u0275\u0275directiveInject(o.I3))},m.\u0275cmp=i.\u0275\u0275defineComponent({type:m,selectors:[["ds-header-navbar-wrapper"]],decls:4,vars:5,consts:[["id","header-navbar-wrapper",3,"ngClass"]],template:function(v,E){1&v&&(i.\u0275\u0275elementStart(0,"div",0),i.\u0275\u0275pipe(1,"async"),i.\u0275\u0275element(2,"ds-themed-header")(3,"ds-themed-navbar"),i.\u0275\u0275elementEnd()),2&v&&i.\u0275\u0275property("ngClass",i.\u0275\u0275pureFunction1(3,p,!i.\u0275\u0275pipeBind1(1,1,E.isNavBarCollapsed$)))},dependencies:[d.mk,r.n,a.i,d.Ov],styles:["[_nghost-%COMP%]{position:relative}"]}),m})()},45141:(R,c,e)=>{"use strict";e.d(c,{x:()=>d});var t=e(25330),n=e(94650);function o(r,a){}const i=["*"];let d=(()=>{class r extends t.F{getComponentName(){return"HeaderNavbarWrapperComponent"}importThemedComponent(p){return e(7942)(`./${p}/app/header-nav-wrapper/header-navbar-wrapper.component`)}importUnthemedComponent(){return Promise.resolve().then(e.bind(e,10565))}}return r.\u0275fac=function(){let a;
1return function(h){return(a||(a=n.\u0275\u0275getInheritedFactory(r)))(h||r)}}(),r.\u0275cmp=n.\u0275\u0275defineComponent({type:r,selectors:[["ds-themed-header-navbar-wrapper"]],features:[n.\u0275\u0275InheritDefinitionFeature],ngContentSelectors:i,decls:5,vars:0,consts:[["vcr",""],["content",""]],template:function(p,h){1&p&&(n.\u0275\u0275projectionDef(),n.\u0275\u0275template(0,o,0,0,"ng-template",null,0,n.\u0275\u0275templateRefExtractor),n.\u0275\u0275elementStart(2,"div",null,1),n.\u0275\u0275projection(4),n.\u0275\u0275elementEnd())},encapsulation:2}),r})()},96033:(R,c,e)=>{"use strict";e.d(c,{H:()=>a});var t=e(58889),n=e(54004),o=e(94650),i=e(36895),d=e(89383);function r(p,h){if(1&p){const m=o.\u0275\u0275getCurrentView();o.\u0275\u0275elementStart(0,"div")(1,"a",1),o.\u0275\u0275listener("click",function(){o.\u0275\u0275restoreView(m);const v=o.\u0275\u0275nextContext();return o.\u0275\u0275resetView(v.onClick())}),o.\u0275\u0275pipe(2,"translate"),o.\u0275\u0275pipe(3,"translate"),o.\u0275\u0275element(4,"i",2),o.\u0275\u0275elementEnd()()}2&p&&(o.\u0275\u0275advance(1),o.\u0275\u0275property("title",o.\u0275\u0275pipeBind1(3,4,"nav.context-help-toggle")),o.\u0275\u0275attribute("aria-label",o.\u0275\u0275pipeBind1(2,2,"nav.context-help-toggle")))}let a=(()=>{class p{constructor(m,_){this.elRef=m,this.contextHelpService=_,this.subscriptions=[]}ngOnInit(){this.buttonVisible$=this.contextHelpService.tooltipCount$().pipe((0,n.U)(m=>m>0)),this.subscriptions.push(this.buttonVisible$.subscribe(m=>{m?this.elRef.nativeElement.classList.remove("d-none"):this.elRef.nativeElement.classList.add("d-none")}))}onClick(){this.contextHelpService.toggleIcons()}}return p.\u0275fac=function(m){return new(m||p)(o.\u0275\u0275directiveInject(o.ElementRef),o.\u0275\u0275directiveInject(t.p))},p.\u0275cmp=o.\u0275\u0275defineComponent({type:p,selectors:[["ds-context-help-toggle"]],decls:2,vars:3,consts:[[4,"ngIf"],["href","javascript:void(0);","role","menuitem",3,"title","click"],[1,"fas","fa-lg","fa-fw","fa-question-circle","ds-context-help-toggle"]],template:function(m,_){1&m&&(o.\u0275\u0275template(0,r,5,6,"div",0),o.\u0275\u0275pipe(1,"async")),2&m&&o.\u0275\u0275property("ngIf",o.\u0275\u0275pipeBind1(1,1,_.buttonVisible$))},dependencies:[i.O5,i.Ov,d.X$],styles:[".ds-context-help-toggle[_ngcontent-%COMP%]{color:var(--ds-header-icon-color);background-color:var(--ds-header-bg)}.ds-context-help-toggle[_ngcontent-%COMP%]:hover, .ds-context-help-toggle[_ngcontent-%COMP%]:focus{color:var(--ds-header-icon-color-hover)}"]}),p})()},36630:(R,c,e)=>{"use strict";e.r(c),e.d(c,{HeaderComponent:()=>b});var t=e(54541),n=e(78969),o=e(958),i=e(94650),d=e(36895),r=e(9769),a=e(34793),p=e(77485),h=e(89260),m=e(97125),_=e(94965),v=e(96033),E=e(89383);function O(M,P){if(1&M){const D=i.\u0275\u0275getCurrentView();i.\u0275\u0275elementStart(0,"div",6)(1,"button",7),i.\u0275\u0275listener("click",function(){i.\u0275\u0275restoreView(D);const C=i.\u0275\u0275nextContext();return i.\u0275\u0275resetView(C.toggleNavbar())}),i.\u0275\u0275pipe(2,"translate"),i.\u0275\u0275element(3,"span",8),i.\u0275\u0275elementEnd()()}2&M&&(i.\u0275\u0275advance(1),i.\u0275\u0275attribute("aria-label",i.\u0275\u0275pipeBind1(2,1,"nav.toggle")))}let b=(()=>{class M{constructor(D,l){this.menuService=D,this.windowService=l,this.menuID=n.z.PUBLIC,this.maxMobileWidth=o.or.SM}ngOnInit(){this.isMobile$=this.windowService.isUpTo(this.maxMobileWidth)}toggleNavbar(){this.menuService.toggleMenu(this.menuID)}}return M.\u0275fac=function(D){return new(D||M)(i.\u0275\u0275directiveInject(t.h),i.\u0275\u0275directiveInject(o.I3))},M.\u0275cmp=i.\u0275\u0275defineComponent({type:M,selectors:[["ds-header"]],decls:15,vars:9,consts:[[1,"container"],[1,"d-flex","flex-row","justify-content-between"],["routerLink","/home",1,"navbar-brand","my-2"],["src","assets/images/dspace-logo.svg"],["role","navigation",1,"navbar","navbar-light","navbar-expand-md","flex-shrink-0","px-0"],["class","pl-2",4,"ngIf"],[1,"pl-2"],["type","button","aria-controls","collapsingNav","aria-expanded","false",1,"navbar-toggler","px-0",3,"click"],["aria-hidden","true",1,"fas","fa-bars","fa-fw","toggler-icon"]],template:function(D,l){1&D&&(i.\u0275\u0275elementStart(0,"header")(1,"div",0)(2,"div",1)(3,"a",2),i.\u0275\u0275element(4,"img",3),i.\u0275\u0275pipe(5,"translate"),i.\u0275\u0275elementEnd(),i.\u0275\u0275elementStart(6,"nav",4),i.\u0275\u0275pipe(7,"translate"),i.\u0275\u0275element(8,"ds-themed-search-navbar")(9,"ds-themed-lang-switch")(10,"ds-context-help-toggle")(11,"ds-themed-auth-nav-menu")(12,"ds-impersonate-navbar"),i.\u0275\u0275template(13,O,4,3,"div",5),i.\u0275\u0275pipe(14,"async"),i.\u0275\u0275elementEnd()()()()),2&D&&(i.\u0275\u0275advance(4),i.\u0275\u0275attribute("alt",i.\u0275\u0275pipeBind1(5,3,"menu.header.image.logo")),i.\u0275\u0275advance(2),i.\u0275\u0275attribute("aria-label",i.\u0275\u0275pipeBind1(7,5,"nav.user.description")),i.\u0275\u0275advance(7),i.\u0275\u0275property("ngIf",i.\u0275\u0275pipeBind1(14,7,l.isMobile$)))},dependencies:[d.O5,r.M2,a.rH,p.j,h.$,m.$,_.A,v.H,d.Ov,E.X$],styles:["[_nghost-%COMP%] header[_ngcontent-%COMP%]{background-color:#1450a3}[_nghost-%COMP%] a[_ngcontent-%COMP%]{color:#fff;text-decoration:none;background-color:#0000}[_nghost-%COMP%] .navbar-brand[_ngcontent-%COMP%] img[_ngcontent-%COMP%]{max-height:var(--ds-header-logo-height);max-width:100%}[_nghost-%COMP%] .navbar-toggler[_ngcontent-%COMP%]{border:none;color:var(--ds-header-icon-color)}[_nghost-%COMP%] .navbar-toggler[_ngcontent-%COMP%]:hover, [_nghost-%COMP%] .navbar-toggler[_ngcontent-%COMP%]:focus{color:var(--ds-header-icon-color-hover)}[_nghost-%COMP%] .navbar-toggler[_ngcontent-%COMP%] .toggler-icon[_ngcontent-%COMP%]{width:1.5em;height:1.5em;line-height:1.5}[_nghost-%COMP%] .navbar[_ngcontent-%COMP%]{display:flex;gap:calc(var(--bs-spacer) / 3);align-items:center}"]}),M})()},53658:(R,c,e)=>{"use strict";e.d(c,{i:()=>d});var t=e(25330),n=e(94650);function o(r,a){}const i=["*"];let d=(()=>{class r extends t.F{getComponentName(){return"HeaderComponent"}importThemedComponent(p){return e(73632)(`./${p}/app/header/header.component`)}importUnthemedComponent(){return Promise.resolve().then(e.bind(e,36630))}}return r.\u0275fac=function(){let a;
1return function(h){return(a||(a=n.\u0275\u0275getInheritedFactory(r)))(h||r)}}(),r.\u0275cmp=n.\u0275\u0275defineComponent({type:r,selectors:[["ds-themed-header"]],features:[n.\u0275\u0275InheritDefinitionFeature],ngContentSelectors:i,decls:5,vars:0,consts:[["vcr",""],["content",""]],template:function(p,h){1&p&&(n.\u0275\u0275projectionDef(),n.\u0275\u0275template(0,o,0,0,"ng-template",null,0,n.\u0275\u0275templateRefExtractor),n.\u0275\u0275elementStart(2,"div",null,1),n.\u0275\u0275projection(4),n.\u0275\u0275elementEnd())},encapsulation:2}),r})()},41130:(R,c,e)=>{"use strict";e.r(c),e.d(c,{HomeNewsComponent:()=>n});var t=e(94650);let n=(()=>{class o{}return o.\u0275fac=function(d){return new(d||o)},o.\u0275cmp=t.\u0275\u0275defineComponent({type:o,selectors:[["ds-home-news"]],decls:20,vars:0,consts:[[1,"jumbotron","jumbotron-fluid","mt-ncs"],[1,"container"],[1,"d-flex","flex-wrap"],[1,"display-3"],[1,"lead"],["href","https://wiki.lyrasis.org/display/DSPACE/DSpace+Positioning","target","_blank"]],template:function(d,r){1&d&&(t.\u0275\u0275elementStart(0,"div",0)(1,"div",1)(2,"div",2)(3,"div")(4,"h1",3),t.\u0275\u0275text(5,"DSpace 7"),t.\u0275\u0275elementEnd(),t.\u0275\u0275elementStart(6,"p",4),t.\u0275\u0275text(7,"DSpace is the world leading open source repository platform that enables organisations to:"),t.\u0275\u0275elementEnd()()(),t.\u0275\u0275elementStart(8,"ul")(9,"li"),t.\u0275\u0275text(10,"easily ingest documents, audio, video, datasets and their corresponding Dublin Core metadata "),t.\u0275\u0275elementEnd(),t.\u0275\u0275elementStart(11,"li"),t.\u0275\u0275text(12,"open up this content to local and global audiences, thanks to the OAI-PMH interface and Google Scholar optimizations "),t.\u0275\u0275elementEnd(),t.\u0275\u0275elementStart(13,"li"),t.\u0275\u0275text(14,"issue permanent urls and trustworthy identifiers, including optional integrations with handle.net and DataCite DOI"),t.\u0275\u0275elementEnd()(),t.\u0275\u0275elementStart(15,"p"),t.\u0275\u0275text(16,"Join an international community of "),t.\u0275\u0275elementStart(17,"a",5),t.\u0275\u0275text(18,"leading institutions using DSpace"),t.\u0275\u0275elementEnd(),t.\u0275\u0275text(19,". "),t.\u0275\u0275elementEnd()()())},styles:["[_nghost-%COMP%]{display:block}.display-3[_ngcontent-%COMP%]{word-break:break-word}.jumbotron[_ngcontent-%COMP%]{background-color:var(--ds-home-news-background-color)}a[_ngcontent-%COMP%]{color:var(--ds-home-news-link-color)}a[_ngcontent-%COMP%]:hover{color:var(--ds-home-news-link-hover-color)}"]}),o})()},92071:(R,c,e)=>{"use strict";e.d(c,{$w:()=>o,HJ:()=>i,dP:()=>n,ru:()=>d});var t=e(50503);const n="end-user-agreement",o="privacy",i="feedback";function d(){return function p(h){return`${(0,t.lz)()}/${h}`}(n)}},30409:(R,c,e)=>{"use strict";e.d(c,{E:()=>a}),e(33609);var n=e(94650),o=e(36895),i=e(89383);function d(p,h){if(1&p&&(n.\u0275\u0275elementStart(0,"tr",4)(1,"td"),n.\u0275\u0275text(2),n.\u0275\u0275elementEnd(),n.\u0275\u0275elementStart(3,"td"),n.\u0275\u0275text(4),n.\u0275\u0275elementEnd(),n.\u0275\u0275elementStart(5,"td"),n.\u0275\u0275text(6),n.\u0275\u0275elementEnd()()),2&p){const m=h.$implicit,_=n.\u0275\u0275nextContext().$implicit;n.\u0275\u0275advance(2),n.\u0275\u0275textInterpolate(_.key),n.\u0275\u0275advance(2),n.\u0275\u0275textInterpolate(m.value),n.\u0275\u0275advance(2),n.\u0275\u0275textInterpolate(m.language)}}function r(p,h){if(1&p&&(n.\u0275\u0275elementContainerStart(0),n.\u0275\u0275template(1,d,7,3,"tr",3),n.\u0275\u0275elementContainerEnd()),2&p){const m=h.$implicit;n.\u0275\u0275advance(1),n.\u0275\u0275property("ngForOf",m.value)}}let a=(()=>{class p{ngOnInit(){this.metadata=this.item.metadata}}return p.\u0275fac=function(m){return new(m||p)},p.\u0275cmp=n.\u0275\u0275defineComponent({type:p,selectors:[["ds-modify-item-overview"]],inputs:{item:"item"},decls:15,vars:12,consts:[["id","metadata",1,"table","table-striped","table-hover","table-responsive"],["scope","col"],[4,"ngFor","ngForOf"],["class","metadata-row",4,"ngFor","ngForOf"],[1,"metadata-row"]],template:function(m,_){1&m&&(n.\u0275\u0275elementStart(0,"table",0)(1,"thead")(2,"tr")(3,"th",1),n.\u0275\u0275text(4),n.\u0275\u0275pipe(5,"translate"),n.\u0275\u0275elementEnd(),n.\u0275\u0275elementStart(6,"th",1),n.\u0275\u0275text(7),n.\u0275\u0275pipe(8,"translate"),n.\u0275\u0275elementEnd(),n.\u0275\u0275elementStart(9,"th",1),n.\u0275\u0275text(10),n.\u0275\u0275pipe(11,"translate"),n.\u0275\u0275elementEnd()()(),n.\u0275\u0275elementStart(12,"tbody"),n.\u0275\u0275template(13,r,2,1,"ng-container",2),n.\u0275\u0275pipe(14,"keyvalue"),n.\u0275\u0275elementEnd()()),2&m&&(n.\u0275\u0275advance(4),n.\u0275\u0275textInterpolate(n.\u0275\u0275pipeBind1(5,4,"item.edit.modify.overview.field")),n.\u0275\u0275advance(3),n.\u0275\u0275textInterpolate(n.\u0275\u0275pipeBind1(8,6,"item.edit.modify.overview.value")),n.\u0275\u0275advance(3),n.\u0275\u0275textInterpolate(n.\u0275\u0275pipeBind1(11,8,"item.edit.modify.overview.language")),n.\u0275\u0275advance(3),n.\u0275\u0275property("ngForOf",n.\u0275\u0275pipeBind1(14,10,_.metadata)))},dependencies:[o.sg,o.Nd,i.X$],encapsulation:2}),p})()},40747:(R,c,e)=>{"use strict";e.d(c,{Oo:()=>o,TO:()=>i,TP:()=>a,Tt:()=>d,UZ:()=>O,dZ:()=>h,fL:()=>b,lA:()=>_,ni:()=>m,tn:()=>r});var t=e(23631),n=e(24702);const o="items";function i(){return`/${o}`}function d(M){return p(M.firstMetadataValue("dspace.entity.type"),M.uuid)}function r(M){return new t.R(d(M),_).toString()}function a(M){return new t.R(d(M),_,v).toString()}function p(M,P){return(0,n.UE)(M)?new t.R("/entities",encodeURIComponent(M.toLowerCase()),P).toString():new t.R(i(),P).toString()}function h(M,P){return new t.R(p(M,P),_).toString()}function m(M){return new t.R(i(),E,M).toString()}const _="edit",v="versionhistory",E="version",O="bitstreams/new",b="orcid"},34261:(R,c,e)=>{"use strict";e.r(c),e.d(c,{ItemPageTitleFieldComponent:()=>a}),e(33609);var n=e(83616),o=e(94650),i=e(36895),d=e(89383);function r(p,h){if(1&p&&(o.\u0275\u0275elementStart(0,"div",3),o.\u0275\u0275text(1),o.\u0275\u0275pipe(2,"translate"),o.\u0275\u0275elementEnd()),2&p){const m=h.ngIf;o.\u0275\u0275advance(1),o.\u0275\u0275textInterpolate1(" ",o.\u0275\u0275pipeBind1(2,1,m.toLowerCase()+".page.titleprefix")," ")}}let a=(()=>{class p{constructor(m){this.dsoNameService=m}}
1return p.\u0275fac=function(m){return new(m||p)(o.\u0275\u0275directiveInject(n._))},p.\u0275cmp=o.\u0275\u0275defineComponent({type:p,selectors:[["ds-item-page-title-field"]],inputs:{item:"item"},decls:4,vars:2,consts:[[1,"item-page-title-field"],["class","d-inline",4,"ngIf"],[1,"dont-break-out"],[1,"d-inline"]],template:function(m,_){1&m&&(o.\u0275\u0275elementStart(0,"h1",0),o.\u0275\u0275template(1,r,3,3,"div",1),o.\u0275\u0275elementStart(2,"span",2),o.\u0275\u0275text(3),o.\u0275\u0275elementEnd()()),2&m&&(o.\u0275\u0275advance(1),o.\u0275\u0275property("ngIf",_.item.firstMetadataValue("dspace.entity.type")),o.\u0275\u0275advance(2),o.\u0275\u0275textInterpolate(_.dsoNameService.getName(_.item)))},dependencies:[i.O5,d.X$],encapsulation:2}),p})()},48237:(R,c,e)=>{"use strict";e.d(c,{i:()=>r});var t=e(25330),o=(e(33609),e(94650));function i(a,p){}const d=["*"];let r=(()=>{class a extends t.F{constructor(){super(...arguments),this.inAndOutputNames=["item"]}getComponentName(){return"ItemPageTitleFieldComponent"}importThemedComponent(h){return e(49519)(`./${h}/app/item-page/simple/field-components/specific-field/title/item-page-title-field.component`)}importUnthemedComponent(){return Promise.resolve().then(e.bind(e,34261))}}return a.\u0275fac=function(){let p;return function(m){return(p||(p=o.\u0275\u0275getInheritedFactory(a)))(m||a)}}(),a.\u0275cmp=o.\u0275\u0275defineComponent({type:a,selectors:[["ds-themed-item-page-title-field"]],inputs:{item:"item"},features:[o.\u0275\u0275InheritDefinitionFeature],ngContentSelectors:d,decls:5,vars:0,consts:[["vcr",""],["content",""]],template:function(h,m){1&h&&(o.\u0275\u0275projectionDef(),o.\u0275\u0275template(0,i,0,0,"ng-template",null,0,o.\u0275\u0275templateRefExtractor),o.\u0275\u0275elementStart(2,"div",null,1),o.\u0275\u0275projection(4),o.\u0275\u0275elementEnd())},encapsulation:2}),a})()},4900:(R,c,e)=>{"use strict";e.d(c,{Sv:()=>b,_U:()=>O,be:()=>E,bg:()=>_});var t=e(39646),n=e(62557),o=e(39841),i=e(86099),d=e(54004),r=e(71884),a=e(63900),p=e(68285),h=e(24702);const _=new(e(94650).InjectionToken)("paginatedRelationsToItems",{providedIn:"root",factory:()=>b}),E=()=>{return M=M=>(0,h.Uh)(M)?M.id:void 0,(P,D)=>{if(!Array.isArray(P)||!Array.isArray(D))return!1;const l=P.map(M),C=D.map(M);return l.length===C.length&&l.every(I=>C.includes(I))&&C.every(I=>l.includes(I))};var M},O=M=>P=>P.pipe((0,i.z)(D=>0===D.length?(0,t.of)([]):(0,n.$)(...D.map(l=>(0,o.a)([l.leftItem,l.rightItem])))),(0,d.U)(D=>D.filter(([l,C])=>l.hasSucceeded&&C.hasSucceeded).map(([l,C])=>l.payload.id===M?C.payload:C.payload.id===M?l.payload:void 0).filter(l=>(0,h.Uh)(l))),(0,r.x)(E())),b=M=>P=>P.pipe((0,p.hC)(),(0,a.w)(D=>(0,o.a)(D.payload.page.map(l=>(0,o.a)([l.leftItem.pipe((0,p.hC)(),(0,d.U)(C=>C.hasSucceeded?C.payload:null)),l.rightItem.pipe((0,p.hC)(),(0,d.U)(C=>C.hasSucceeded?C.payload:null))]))).pipe((0,d.U)(l=>l.map(([C,I])=>(0,h.Uh)(C)&&C.id===M?I:(0,h.Uh)(I)&&I.id===M?C:void 0).filter(C=>(0,h.Uh)(C))),(0,r.x)(E()),(0,d.U)(l=>Object.assign(D,{payload:Object.assign(D.payload,{page:l})})))))},90534:(R,c,e)=>{"use strict";e.d(c,{D:()=>i});var t=e(46418),n=e(94650),o=e(89383);let i=(()=>{class d{constructor(a,p){this.notificationsService=a,this.translateService=p}static msg(a){return"item.version.create.notification."+a}notifyCreateNewVersion(a){const p=a?.payload?.version;a.hasSucceeded?this.notificationsService.success(null,this.translateService.get(d.msg("success"),{version:p})):this.notificationsService.error(null,this.translateService.get(d.msg(422===a?.statusCode?"inProgress":"failure")))}}return d.\u0275fac=function(a){return new(a||d)(n.\u0275\u0275inject(t.T),n.\u0275\u0275inject(o.sK))},d.\u0275prov=n.\u0275\u0275defineInjectable({token:d,factory:d.\u0275fac,providedIn:"root"}),d})()},53876:(R,c,e)=>{"use strict";e.d(c,{u:()=>v});var t=e(94650),n=e(61135),o=e(9769),i=e(36895),d=e(24006),r=e(45863),a=e(89383);const p=function(E){return{version:E}};function h(E,O){if(1&E&&(t.\u0275\u0275elementStart(0,"span"),t.\u0275\u0275text(1),t.\u0275\u0275pipe(2,"translate"),t.\u0275\u0275elementEnd()),2&E){const b=t.\u0275\u0275nextContext(2);t.\u0275\u0275advance(1),t.\u0275\u0275textInterpolate1(" ",t.\u0275\u0275pipeBind2(2,1,"item.version.create.modal.text.startingFrom",t.\u0275\u0275pureFunction1(4,p,b.versionNumber))," ")}}function m(E,O){if(1&E){const b=t.\u0275\u0275getCurrentView();t.\u0275\u0275elementStart(0,"div")(1,"div",2),t.\u0275\u0275text(2),t.\u0275\u0275pipe(3,"translate"),t.\u0275\u0275elementStart(4,"button",3),t.\u0275\u0275listener("click",function(){t.\u0275\u0275restoreView(b);const P=t.\u0275\u0275nextContext();
1return t.\u0275\u0275resetView(P.onModalClose())}),t.\u0275\u0275elementStart(5,"span",4),t.\u0275\u0275text(6,"\xd7"),t.\u0275\u0275elementEnd()()(),t.\u0275\u0275elementStart(7,"div",5)(8,"p",6),t.\u0275\u0275text(9),t.\u0275\u0275pipe(10,"translate"),t.\u0275\u0275template(11,h,3,6,"span",7),t.\u0275\u0275elementEnd(),t.\u0275\u0275elementStart(12,"div",8)(13,"label",9),t.\u0275\u0275text(14),t.\u0275\u0275pipe(15,"translate"),t.\u0275\u0275elementEnd(),t.\u0275\u0275elementStart(16,"input",10),t.\u0275\u0275listener("ngModelChange",function(P){t.\u0275\u0275restoreView(b);const D=t.\u0275\u0275nextContext();return t.\u0275\u0275resetView(D.newVersionSummary=P)})("keyup.enter",function(){t.\u0275\u0275restoreView(b);const P=t.\u0275\u0275nextContext();return t.\u0275\u0275resetView(P.onModalSubmit())}),t.\u0275\u0275pipe(17,"translate"),t.\u0275\u0275elementEnd()()(),t.\u0275\u0275elementStart(18,"div",11)(19,"button",12),t.\u0275\u0275listener("click",function(){t.\u0275\u0275restoreView(b);const P=t.\u0275\u0275nextContext();return t.\u0275\u0275resetView(P.onModalClose())}),t.\u0275\u0275pipe(20,"translate"),t.\u0275\u0275element(21,"i",13),t.\u0275\u0275text(22),t.\u0275\u0275pipe(23,"translate"),t.\u0275\u0275elementEnd(),t.\u0275\u0275elementStart(24,"button",14),t.\u0275\u0275listener("click",function(){t.\u0275\u0275restoreView(b);const P=t.\u0275\u0275nextContext();return t.\u0275\u0275resetView(P.onModalSubmit())}),t.\u0275\u0275pipe(25,"translate"),t.\u0275\u0275element(26,"i",15),t.\u0275\u0275text(27),t.\u0275\u0275pipe(28,"translate"),t.\u0275\u0275elementEnd()()()}if(2&E){const b=t.\u0275\u0275nextContext();t.\u0275\u0275advance(2),t.\u0275\u0275textInterpolate1("",t.\u0275\u0275pipeBind1(3,10,"item.version.create.modal.header")," "),t.\u0275\u0275advance(7),t.\u0275\u0275textInterpolate1(" ",t.\u0275\u0275pipeBind1(10,12,"item.version.create.modal.text")," "),t.\u0275\u0275advance(2),t.\u0275\u0275property("ngIf",!b.firstVersion),t.\u0275\u0275advance(3),t.\u0275\u0275textInterpolate1("",t.\u0275\u0275pipeBind1(15,14,"item.version.create.modal.form.summary.label"),":"),t.\u0275\u0275advance(2),t.\u0275\u0275propertyInterpolate("placeholder",t.\u0275\u0275pipeBind1(17,16,"item.version.create.modal.form.summary.placeholder")),t.\u0275\u0275property("ngModel",b.newVersionSummary),t.\u0275\u0275advance(3),t.\u0275\u0275propertyInterpolate("title",t.\u0275\u0275pipeBind1(20,18,"item.version.create.modal.button.cancel.tooltip")),t.\u0275\u0275advance(3),t.\u0275\u0275textInterpolate1(" ",t.\u0275\u0275pipeBind1(23,20,"item.version.create.modal.button.cancel")," "),t.\u0275\u0275advance(2),t.\u0275\u0275propertyInterpolate("title",t.\u0275\u0275pipeBind1(25,22,"item.version.create.modal.button.confirm.tooltip")),t.\u0275\u0275advance(3),t.\u0275\u0275textInterpolate1(" ",t.\u0275\u0275pipeBind1(28,24,"item.version.create.modal.button.confirm")," ")}}function _(E,O){1&E&&(t.\u0275\u0275elementStart(0,"div",2),t.\u0275\u0275text(1),t.\u0275\u0275pipe(2,"translate"),t.\u0275\u0275elementEnd(),t.\u0275\u0275elementStart(3,"div",5)(4,"p"),t.\u0275\u0275text(5),t.\u0275\u0275pipe(6,"translate"),t.\u0275\u0275elementEnd(),t.\u0275\u0275elementStart(7,"div",16),t.\u0275\u0275element(8,"ds-loading",17),t.\u0275\u0275elementEnd()()),2&E&&(t.\u0275\u0275advance(1),t.\u0275\u0275textInterpolate(t.\u0275\u0275pipeBind1(2,3,"item.version.create.modal.submitted.header")),t.\u0275\u0275advance(4),t.\u0275\u0275textInterpolate(t.\u0275\u0275pipeBind1(6,5,"item.version.create.modal.submitted.text")),t.\u0275\u0275advance(3),t.\u0275\u0275property("showMessage",!1))}let v=(()=>{class E{constructor(b){this.activeModal=b,this.firstVersion=!0,this.createVersionEvent=new t.EventEmitter}ngOnInit(){this.submitted$=new n.X(!1)}onModalClose(){this.activeModal.dismiss()}beforeDismiss(){return!this.submitted$.getValue()}onModalSubmit(){this.createVersionEvent.emit(this.newVersionSummary),this.submitted$.next(!0)}}return E.\u0275fac=function(b){return new(b||E)(t.\u0275\u0275directiveInject(o.Kz))},E.\u0275cmp=t.\u0275\u0275defineComponent({type:E,selectors:[["ds-item-versions-summary-modal"]],outputs:{createVersionEvent:"createVersionEvent"},decls:4,vars:4,consts:[[4,"ngIf","ngIfElse"],["waiting",""],[1,"modal-header"],["type","button","aria-label","Close",1,"close",3,"click"],["aria-hidden","true"],[1,"modal-body"],[1,"pb-2"],[4,"ngIf"],[1,"form-group"],["for","summary"],["type","text","id","summary",1,"form-control",3,"ngModel","placeholder","ngModelChange","keyup.enter"],[1,"modal-footer","space-children-mr"],["type","button",1,"btn","btn-outline-secondary","btn-sm","ml-0",3,"title","click"],[1,"fas","fa-times","fa-fw"],["type","submit",1,"btn","btn-success","btn-sm","ml-0",3,"title","click"],[1,"fas","fa-check","fa-fw"],[1,"d-flex","justify-content-center"],[3,"showMessage"]],template:function(b,M){if(1&b&&(t.\u0275\u0275template(0,m,29,26,"div",0),t.\u0275\u0275pipe(1,"async"),t.\u0275\u0275template(2,_,9,7,"ng-template",null,1,t.\u0275\u0275templateRefExtractor)),2&b){const P=t.\u0275\u0275reference(3);t.\u0275\u0275property("ngIf",!t.\u0275\u0275pipeBind1(1,2,M.submitted$))("ngIfElse",P)}},dependencies:[i.O5,d.Fj,d.JJ,d.On,r.LoadingComponent,i.Ov,a.X$]}),E})()},62884:(R,c,e)=>{"use strict";e.d(c,{v:()=>l});var t=e(39841),n=e(50590),o=e(54004),i=(()=>{return(C=i||(i={}
1)).Workspace="workspace",C.SupervisedItems="supervisedWorkspace",C.Workflow="workflow",i;var C})(),d=e(67837),r=e(36872),a=e(4177),p=e(42943),h=e(5360),m=e(77467),_=e(94476),v=e(93498),E=e(31241),O=e(43015),b=e(84935),M=e(94650),P=e(34793);const D=new Map([[i.Workspace,b._.Workspace],[i.SupervisedItems,b._.SupervisedItems],[i.Workflow,b._.Workflow]]);let l=(()=>{class C extends r.U{constructor(g,B,L,V,Y,X,te,K){super(B,L,V,Y,X,te,K),this.roleService=g,this.routeService=B,this.paginationService=L,this.route=V,this.linkService=Y,this.halService=X,this.requestService=te,this.rdb=K,this.defaultPagination=Object.assign(new a.r,{id:"mydspace-page",pageSize:10,currentPage:1}),this.defaultSort=new p.o("dc.date.issued",p.S.DESC),this.defaultConfiguration="workspace",this.defaultScope="",this.defaultQuery="",this._defaults=null,this.initDefaults(),this.isSubmitter$=this.roleService.isSubmitter(),this.isController$=this.roleService.isController(),this.isAdmin$=this.roleService.isAdmin()}getAvailableConfigurationTypes(){return(0,t.a)(this.isSubmitter$,this.isController$,this.isAdmin$).pipe((0,n.P)(),(0,o.U)(([g,B,L])=>{const V=[];return g&&V.push(i.Workspace),(B||L)&&(V.push(i.SupervisedItems),V.push(i.Workflow)),V}))}getAvailableConfigurationOptions(){return this.getAvailableConfigurationTypes().pipe((0,n.P)(),(0,o.U)(g=>{const B=[];return g.forEach(L=>{const V=L,Y=`mydspace.show.${V}`,X=D.get(L);B.push({value:V,label:Y,context:X})}),B}))}}return C.\u0275fac=function(g){return new(g||C)(M.\u0275\u0275inject(d.N),M.\u0275\u0275inject(h.MZ),M.\u0275\u0275inject(m.N),M.\u0275\u0275inject(P.gz),M.\u0275\u0275inject(_.M),M.\u0275\u0275inject(v.q),M.\u0275\u0275inject(E.s),M.\u0275\u0275inject(O.Q))},C.\u0275prov=M.\u0275\u0275defineInjectable({token:C,factory:C.\u0275fac}),C})()},14292:(R,c,e)=>{"use strict";e.r(c),e.d(c,{MYDSPACE_ROUTE:()=>v,MyDSpacePageComponent:()=>O,SEARCH_CONFIG_SERVICE:()=>E});var t=e(94650),n=e(95698),o=e(5164),i=e(27639),d=e(62884),r=e(51121),a=e(25130),p=e(147);function h(b,M){1&b&&t.\u0275\u0275element(0,"ds-my-dspace-new-submission")}function m(b,M){if(1&b&&(t.\u0275\u0275element(0,"ds-themed-search",3),t.\u0275\u0275pipe(1,"async")),2&b){const P=t.\u0275\u0275nextContext();t.\u0275\u0275property("configuration",P.configuration)("configurationList",t.\u0275\u0275pipeBind1(1,4,P.configurationList$))("context",P.context)("viewModeList",P.viewModeList)}}const _=function(b){return[b]},v="/mydspace",E=new t.InjectionToken("searchConfigurationService");let O=(()=>{class b{constructor(P,D){this.service=P,this.searchConfigService=D,this.roleTypeEnum=p.G,this.viewModeList=[r.w.ListElement,r.w.DetailedListElement],this.service.setServiceOptions(i.B,a.w1)}ngOnInit(){this.configurationList$=this.searchConfigService.getAvailableConfigurationOptions(),this.configurationList$.pipe((0,n.q)(1)).subscribe(P=>{this.configuration=P[0].value,this.context=P[0].context})}}return b.\u0275fac=function(P){return new(P||b)(t.\u0275\u0275directiveInject(o.o),t.\u0275\u0275directiveInject(E))},b.\u0275cmp=t.\u0275\u0275defineComponent({type:b,selectors:[["ds-my-dspace-page"]],features:[t.\u0275\u0275ProvidersFeature([{provide:E,useClass:d.v}])],decls:3,vars:4,consts:[[1,"container"],[4,"dsShowOnlyForRole"],[3,"configuration","configurationList","context","viewModeList",4,"ngIf"],[3,"configuration","configurationList","context","viewModeList"]],template:function(P,D){1&P&&(t.\u0275\u0275elementStart(0,"div",0),t.\u0275\u0275template(1,h,1,0,"ds-my-dspace-new-submission",1),t.\u0275\u0275elementEnd(),t.\u0275\u0275template(2,m,2,6,"ds-themed-search",2)),2&P&&(t.\u0275\u0275advance(1),t.\u0275\u0275property("dsShowOnlyForRole",t.\u0275\u0275pureFunction1(2,_,D.roleTypeEnum.Submitter)),t.\u0275\u0275advance(1),t.\u0275\u0275property("ngIf",D.configuration&&D.context))},styles:["@media (max-width: 991.98px){.container[_ngcontent-%COMP%]{width:100%;max-width:none}} .search-controls{margin-bottom:var(--bs-spacer)}"],changeDetection:0}),b})()},70891:(R,c,e)=>{"use strict";e.d(c,{o:()=>p});var t=e(50590),n=e(54004),o=e(24702),i=e(14292),d=e(62884),r=e(94650),a=e(34793);let p=(()=>{class h{constructor(_,v){this.configurationService=_,this.router=v}canActivate(_,v){return this.configurationService.getAvailableConfigurationTypes().pipe((0,t.P)(),(0,n.U)(E=>this.validateConfigurationParam(_.queryParamMap.get("configuration"),E)))}validateConfigurationParam(_,v){const E=v[0];return!((0,o.xb)(_)||!v.includes(_))||(this.router.navigate([i.MYDSPACE_ROUTE],{queryParams:{configuration:E}}),!1)}}
1return h.\u0275fac=function(_){return new(_||h)(r.\u0275\u0275inject(d.v),r.\u0275\u0275inject(a.F0))},h.\u0275prov=r.\u0275\u0275defineInjectable({token:h,factory:h.\u0275fac}),h})()},55724:(R,c,e)=>{"use strict";e.r(c),e.d(c,{ExpandableNavbarSectionComponent:()=>b});var t=e(37457),n=e(54541),o=e(41672),i=e(50590),d=e(958),r=e(78969),a=e(94650),p=e(36895),h=e(34793),m=e(73566);function _(M,P){1&M&&a.\u0275\u0275elementContainer(0)}function v(M,P){1&M&&a.\u0275\u0275elementContainer(0)}function E(M,P){if(1&M&&(a.\u0275\u0275elementStart(0,"div",9),a.\u0275\u0275template(1,v,1,0,"ng-container",3),a.\u0275\u0275pipe(2,"async"),a.\u0275\u0275pipe(3,"async"),a.\u0275\u0275elementEnd()),2&M){const D=P.$implicit,l=a.\u0275\u0275nextContext(2);a.\u0275\u0275advance(1),a.\u0275\u0275property("ngComponentOutlet",a.\u0275\u0275pipeBind1(2,2,l.sectionMap$).get(D.id).component)("ngComponentOutletInjector",a.\u0275\u0275pipeBind1(3,4,l.sectionMap$).get(D.id).injector)}}function O(M,P){if(1&M){const D=a.\u0275\u0275getCurrentView();a.\u0275\u0275elementStart(0,"div",6),a.\u0275\u0275listener("click",function(C){a.\u0275\u0275restoreView(D);const I=a.\u0275\u0275nextContext();return a.\u0275\u0275resetView(I.deactivateSection(C))})("dsHoverOutside",function(C){a.\u0275\u0275restoreView(D);const I=a.\u0275\u0275nextContext();return a.\u0275\u0275resetView(I.deactivateSection(C,!1))}),a.\u0275\u0275elementStart(1,"div",7),a.\u0275\u0275template(2,E,4,6,"div",8),a.\u0275\u0275pipe(3,"async"),a.\u0275\u0275elementEnd()()}if(2&M){const D=a.\u0275\u0275nextContext();a.\u0275\u0275property("id",D.expandableNavbarSectionId())("dsHoverOutsideOfParentSelector","#expandable-navbar-section-"+D.section.id),a.\u0275\u0275advance(1),a.\u0275\u0275property("@slide",void 0),a.\u0275\u0275advance(1),a.\u0275\u0275property("ngForOf",a.\u0275\u0275pipeBind1(3,4,D.subSections$))}}let b=(()=>{class M extends t.h{constructor(D,l,C,I){super(D,l,C),this.section=D,this.menuService=l,this.injector=C,this.windowService=I,this.menuID=r.z.PUBLIC,this.mouseEntered=!1,this.focusOnFirstChildSection=!1,this.wasMobile=void 0,this.addArrowEventListeners=!1,this.isMobile$=this.windowService.isMobile()}onResize(){this.isMobile$.pipe((0,i.P)()).subscribe(D=>{D!==this.wasMobile&&(this.wasMobile=D,this.menuService.deactivateSection(this.menuID,this.section.id),this.mouseEntered=!1)})}ngOnInit(){super.ngOnInit(),this.subs.push(this.active$.subscribe(D=>{!0===D?this.addArrowEventListeners=!0:(this.focusOnFirstChildSection=void 0,this.unsubscribeFromEventListeners())}))}ngAfterViewChecked(){this.addArrowEventListeners&&(this.dropdownItems=document.querySelectorAll(`#${this.expandableNavbarSectionId()} *[role="menuitem"]`),this.dropdownItems.forEach(D=>{D.addEventListener("keydown",this.navigateDropdown.bind(this))}),this.focusOnFirstChildSection&&this.dropdownItems.length>0&&this.dropdownItems.item(0).focus(),this.addArrowEventListeners=!1)}ngOnDestroy(){super.ngOnDestroy(),this.unsubscribeFromEventListeners()}toggleSection(D){this.focusOnFirstChildSection="click"!==D.type,super.toggleSection(D)}unsubscribeFromEventListeners(){this.dropdownItems&&(this.dropdownItems.forEach(D=>{D.removeEventListener("keydown",this.navigateDropdown.bind(this))}),this.dropdownItems=void 0)}onMouseEnter(D){this.isMobile$.pipe((0,i.P)()).subscribe(l=>{!l&&!this.active$.value&&!this.mouseEntered&&this.activateSection(D),this.mouseEntered=!0})}onMouseLeave(D){this.isMobile$.pipe((0,i.P)()).subscribe(l=>{!l&&this.active$.value&&this.mouseEntered&&this.deactivateSection(D),this.mouseEntered=!1})}expandableNavbarSectionId(){return`expandable-navbar-section-${this.section.id}-dropdown`}navigateDropdown(D){if("Tab"===D.code)return void this.deactivateSection(D,!1);if("Escape"===D.code)return this.deactivateSection(D,!1),void document.querySelector(`a[aria-controls="${this.expandableNavbarSectionId()}"]`)?.focus();D.preventDefault(),D.stopPropagation();const l=document.querySelectorAll(`#${this.expandableNavbarSectionId()} *[role="menuitem"]`);if(0===l.length)return;const C=Array.from(l).findIndex(I=>I===D.target);"ArrowDown"===D.key?l[(C+1)%l.length].focus():"ArrowUp"===D.key&&l[(C-1+l.length)%l.length].focus()}keyDown(D){switch(D.code){case"Tab":this.deactivateSection(D,!1);break;case"ArrowDown":this.focusOnFirstChildSection=!0,this.activateSection(D);break;case"Space":case"Enter":D.preventDefault()}}}return M.\u0275fac=function(D){return new(D||M)(a.\u0275\u0275directiveInject("sectionDataProvider"),a.\u0275\u0275directiveInject(n.h),a.\u
10275\u0275directiveInject(a.Injector),a.\u0275\u0275directiveInject(d.I3))},M.\u0275cmp=a.\u0275\u0275defineComponent({type:M,selectors:[["ds-expandable-navbar-section"]],hostBindings:function(D,l){1&D&&a.\u0275\u0275listener("resize",function(I){return l.onResize(I)},!1,a.\u0275\u0275resolveWindow)},features:[a.\u0275\u0275InheritDefinitionFeature],decls:10,vars:16,consts:[["data-test","navbar-section-wrapper",1,"ds-menu-item-wrapper","text-md-center",3,"id","mouseenter","mouseleave"],["href","javascript:void(0);","routerLinkActive","active","role","menuitem","aria-haspopup","menu","data-test","navbar-section-toggler",1,"d-flex","flex-row","flex-nowrap","align-items-center","gapx-1","ds-menu-toggler-wrapper",3,"keyup.enter","keyup.space","click","keydown"],[1,"flex-fill"],[4,"ngComponentOutlet","ngComponentOutletInjector"],["aria-hidden","true",1,"fas","fa-caret-down","fa-xs","toggle-menu-icon"],["role","menu","class","dropdown-menu show nav-dropdown-menu m-0 shadow-none border-top-0 px-3 px-md-0 pt-0 pt-md-1",3,"id","dsHoverOutsideOfParentSelector","click","dsHoverOutside",4,"ngIf"],["role","menu",1,"dropdown-menu","show","nav-dropdown-menu","m-0","shadow-none","border-top-0","px-3","px-md-0","pt-0","pt-md-1",3,"id","dsHoverOutsideOfParentSelector","click","dsHoverOutside"],["role","presentation"],["class","text-nowrap","role","presentation",4,"ngFor","ngForOf"],["role","presentation",1,"text-nowrap"]],template:function(D,l){1&D&&(a.\u0275\u0275elementStart(0,"div",0),a.\u0275\u0275listener("mouseenter",function(I){return l.onMouseEnter(I)})("mouseleave",function(I){return l.onMouseLeave(I)}),a.\u0275\u0275elementStart(1,"a",1),a.\u0275\u0275listener("keyup.enter",function(I){return l.toggleSection(I)})("keyup.space",function(I){return l.toggleSection(I)})("click",function(I){return l.toggleSection(I)})("keydown",function(I){return l.keyDown(I)}),a.\u0275\u0275pipe(2,"async"),a.\u0275\u0275elementStart(3,"span",2),a.\u0275\u0275template(4,_,1,0,"ng-container",3),a.\u0275\u0275pipe(5,"async"),a.\u0275\u0275pipe(6,"async"),a.\u0275\u0275elementEnd(),a.\u0275\u0275element(7,"i",4),a.\u0275\u0275elementEnd(),a.\u0275\u0275template(8,O,4,6,"div",5),a.\u0275\u0275pipe(9,"async"),a.\u0275\u0275elementEnd()),2&D&&(a.\u0275\u0275property("id","expandable-navbar-section-"+l.section.id),a.\u0275\u0275advance(1),a.\u0275\u0275classProp("disabled",null==l.section.model?null:l.section.model.disabled),a.\u0275\u0275attribute("aria-expanded",a.\u0275\u0275pipeBind1(2,8,l.active$).valueOf())("aria-controls",l.expandableNavbarSectionId()),a.\u0275\u0275advance(3),a.\u0275\u0275property("ngComponentOutlet",a.\u0275\u0275pipeBind1(5,10,l.sectionMap$).get(l.section.id).component)("ngComponentOutletInjector",a.\u0275\u0275pipeBind1(6,12,l.sectionMap$).get(l.section.id).injector),a.\u0275\u0275advance(4),a.\u0275\u0275property("ngIf",!0===a.\u0275\u0275pipeBind1(9,14,l.active$).valueOf()))},dependencies:[p.$G,p.sg,p.O5,h.Od,m.J,p.Ov],styles:["[_nghost-%COMP%] .ds-menu-item-wrapper[_ngcontent-%COMP%]{position:relative}[_nghost-%COMP%] .dropdown-menu[_ngcontent-%COMP%]{overflow:hidden}@media (max-width: 767.98px){[_nghost-%COMP%] .dropdown-menu[_ngcontent-%COMP%]{border:0;background-color:var(--ds-expandable-navbar-bg)}}@media (min-width: 768px){[_nghost-%COMP%] .dropdown-menu[_ngcontent-%COMP%]{border-top-left-radius:0;border-top-right-radius:0;background-color:var(--ds-navbar-dropdown-bg)}}[_nghost-%COMP%] .toggle-menu-icon[_ngcontent-%COMP%], [_nghost-%COMP%] .toggle-menu-icon[_ngcontent-%COMP%]:hover{text-decoration:none}"],data:{animation:[o.JD]}}),M})()},37457:(R,c,e)=>{"use strict";e.d(c,{h:()=>m});var p,t=e(70655),n=e(94650),o=e(89359),i=e(54541),d=e(9498),r=e(78969),a=e(36895);function h(_,v){1&_&&n.\u0275\u0275elementContainer(0)}let m=((p=class extends o.q{constructor(v,E,O){super(v,E,O),this.menuService=E,this.injector=O,this.menuID=r.z.PUBLIC}ngOnInit(){super.ngOnInit()}}).\u0275fac=function(v){return new(v||p)(n.\u0275\u0275directiveInject("sectionDataProvider"),n.\u0275\u0275directiveInject(i.h),n.\u0275\u0275directiveInject(n.Injector))},p.\u0275cmp=n.\u0275\u0275defineComponent({type:p,selectors:[["ds-navbar-section"]],features:[n.\u0275\u0275InheritDefinitionFeature],decls:4,vars:7,consts:[[1,"ds-menu-item-wrapper","text-md-center",3,"id"],[4,"ngComponentOutlet","ngComponentOutletInjector"]],template:function(v,E){1&v&&(n.\u0275\u0275elementStart(0,"div",0),n.\u0275\u0275template(1,h,1,0,"ng-container",1),n.\u0275\u0275pipe(2,"async"),n.\u0275\u0275pipe(3,"async"),n.\u0275\u0275elementEnd()),2&v&&(n.\u0275\u0275property("id","navbar-section-"+E.section.id),n.\u0275\u0275advance(1),n.\u0275\u0275property("ngComponentOutlet",n.\u0275\u0275pipeBind1(2,3,E.sectionMap$).get(E.section.id).component)("ngComponentOutletInjector",n.\u0275\u0275pipeBind1(3,5,E.sectionMap$).get(E.section.id).injector))},dependencies:[a.$G,a.Ov]}),p);m=(0,t.__decorate)([(0,d.h)(r.z.PUBLIC,!1),(0,t.__metadata)("design:paramtypes",[Object,i.h,n.Injector])],m)},24179:(R,c,e)=>{"use strict";
1e.r(c),e.d(c,{NavbarComponent:()=>I});var t=e(41672),n=e(32250),o=e(54541),i=e(958),d=e(27645),r=e(19937),a=e(78969),p=e(55784),h=e(89653),m=e(19168),_=e(94650),v=e(34793),E=e(36895),O=e(9769),b=e(48946),M=e(89383);function P(g,B){1&g&&(_.\u0275\u0275elementContainerStart(0),_.\u0275\u0275element(1,"ds-themed-user-menu",7),_.\u0275\u0275elementContainerEnd()),2&g&&(_.\u0275\u0275advance(1),_.\u0275\u0275property("inExpandableNavbar",!0))}function D(g,B){1&g&&_.\u0275\u0275elementContainer(0)}function l(g,B){if(1&g&&(_.\u0275\u0275elementContainerStart(0),_.\u0275\u0275template(1,D,1,0,"ng-container",8),_.\u0275\u0275pipe(2,"async"),_.\u0275\u0275pipe(3,"async"),_.\u0275\u0275elementContainerEnd()),2&g){const L=B.$implicit,V=_.\u0275\u0275nextContext();let Y,X;_.\u0275\u0275advance(1),_.\u0275\u0275property("ngComponentOutlet",null==(Y=_.\u0275\u0275pipeBind1(2,2,V.sectionMap$).get(L.id))?null:Y.component)("ngComponentOutletInjector",null==(X=_.\u0275\u0275pipeBind1(3,4,V.sectionMap$).get(L.id))?null:X.injector)}}const C=function(g){return{open:g}};let I=(()=>{class g extends n.M{constructor(L,V,Y,X,te,K,ee,ae){super(L,V,te,K,ee),this.menuService=L,this.injector=V,this.windowService=Y,this.browseService=X,this.authorizationService=te,this.route=K,this.themeService=ee,this.store=ae,this.menuID=a.z.PUBLIC,this.maxMobileWidth=i.or.SM}ngOnInit(){super.ngOnInit(),this.isMobile$=this.windowService.isUpTo(this.maxMobileWidth),this.isAuthenticated$=this.store.pipe((0,h.Ys)(m.$8))}}return g.\u0275fac=function(L){return new(L||g)(_.\u0275\u0275directiveInject(o.h),_.\u0275\u0275directiveInject(_.Injector),_.\u0275\u0275directiveInject(i.I3),_.\u0275\u0275directiveInject(d.I),_.\u0275\u0275directiveInject(r._),_.\u0275\u0275directiveInject(v.gz),_.\u0275\u0275directiveInject(p.fY),_.\u0275\u0275directiveInject(h.yh))},g.\u0275cmp=_.\u0275\u0275defineComponent({type:g,selectors:[["ds-navbar"]],features:[_.\u0275\u0275InheritDefinitionFeature],decls:15,vars:25,consts:[["role","navigation","id","main-navbar",1,"navbar","navbar-light","navbar-expand-md","px-md-0","pt-md-0","pt-3","navbar-container",3,"ngClass"],[1,"navbar-inner-container","w-100"],[1,"w-100"],["id","collapsingNav"],[4,"ngIf"],[1,"navbar-nav","align-items-md-center","mr-auto","shadow-none","gapx-3"],[4,"ngFor","ngForOf"],[3,"inExpandableNavbar"],[4,"ngComponentOutlet","ngComponentOutletInjector"]],template:function(L,V){1&L&&(_.\u0275\u0275elementStart(0,"nav",0),_.\u0275\u0275pipe(1,"async"),_.\u0275\u0275pipe(2,"async"),_.\u0275\u0275pipe(3,"async"),_.\u0275\u0275pipe(4,"translate"),_.\u0275\u0275elementStart(5,"div",1),_.\u0275\u0275pipe(6,"async"),_.\u0275\u0275elementStart(7,"div",2)(8,"div",3),_.\u0275\u0275template(9,P,2,1,"ng-container",4),_.\u0275\u0275pipe(10,"async"),_.\u0275\u0275pipe(11,"async"),_.\u0275\u0275elementStart(12,"div",5),_.\u0275\u0275template(13,l,4,6,"ng-container",6),_.\u0275\u0275pipe(14,"async"),_.\u0275\u0275elementEnd()()()()()),2&L&&(_.\u0275\u0275property("ngClass",_.\u0275\u0275pureFunction1(23,C,!_.\u0275\u0275pipeBind1(1,7,V.menuCollapsed)))("@slideMobileNav",_.\u0275\u0275pipeBind1(2,9,V.windowService.isXsOrSm())?_.\u0275\u0275pipeBind1(3,11,V.menuCollapsed)?"collapsed":"expanded":"default"),_.\u0275\u0275attribute("aria-label",_.\u0275\u0275pipeBind1(4,13,"nav.main.description")),_.\u0275\u0275advance(5),_.\u0275\u0275classProp("container",!_.\u0275\u0275pipeBind1(6,15,V.isMobile$)),_.\u0275\u0275advance(4),_.\u0275\u0275property("ngIf",_.\u0275\u0275pipeBind1(10,17,V.isMobile$)&&_.\u0275\u0275pipeBind1(11,19,V.isAuthenticated$)),_.\u0275\u0275advance(4),_.\u0275\u0275property("ngForOf",_.\u0275\u0275pipeBind1(14,21,V.sections)))},dependencies:[E.mk,E.$G,E.sg,E.O5,O.M2,b.A,E.Ov,M.X$],styles:["[_nghost-%COMP%]{--ds-expandable-navbar-height: auto}[_nghost-%COMP%] nav.navbar[_ngcontent-%COMP%]{background-color:var(--ds-navbar-bg);align-items:baseline;padding:0}@media screen and (max-width: 767.98px){[_nghost-%COMP%] .navbar[_ngcontent-%COMP%]{width:100vw;background-color:var(--bs-white);position:absolute;overflow:hidden;height:0;z-index:var(--ds-nav-z-index)}[_nghost-%COMP%] .navbar.open[_ngcontent-%COMP%]{height:auto;min-height:100vh;border-bottom:1px var(--ds-header-navbar-border-bottom-color) solid}}@media screen and (min-width: 768px){[_nghost-%COMP%] .reset-padding-md[_ngcontent-%COMP%]{margin-left:calc(var(--bs-spacer) / -1);margin-right:calc(var(--bs-spacer) / -1)}}@media screen and (max-width: 767.98px){[_nghost-%COMP%] .navbar-expand-md.navbar-container[_ngcontent-%COMP%]{padding:0}[_nghost-%COMP%] .navbar-expand-md.navbar-container[_ngcontent-%COMP%] > .navbar-inner-container[_ngcontent-%COMP%]{padding:0 var(--bs-spacer)}}[_nghost-%COMP%] #main-navbar[_ngcontent-%COMP%] .ds-menu-item, [_nghost-%COMP%] #main-navbar[_ngcontent-%COMP%] .ds-menu-toggler-wrapper{white-space:nowrap;text-decoration:none}[_nghost-%COMP%] #main-navbar[_ngcontent-%COMP%] .dropdown-menu{padding:.5rem!important}[_nghost-%COMP%] #main-navbar[_ngcontent-%COMP%] .ds-menu-item{display:block;color:var(--ds-navbar-link-color);padding:.5rem 0}[_nghost-%COMP%] #main-navbar[_ngcontent-%COMP%] .ds-menu-item:hover, [_nghost-%COMP%] #main-navbar[_ngcontent-%COMP%] .ds-menu-item:focus{color:var(--ds-navbar-link-color-hover)}"],data:{animation:[t.DE]}}),g})()},85965:(R,c,e)=>{"use strict";e.d(c,{n:()=>d});var t=e(25330),n=e(94650);function o(r,a){}const i=["*"];let d=(()=>
1{class r extends t.F{getComponentName(){return"NavbarComponent"}importThemedComponent(p){return e(67309)(`./${p}/app/navbar/navbar.component`)}importUnthemedComponent(){return Promise.resolve().then(e.bind(e,24179))}}return r.\u0275fac=function(){let a;return function(h){return(a||(a=n.\u0275\u0275getInheritedFactory(r)))(h||r)}}(),r.\u0275cmp=n.\u0275\u0275defineComponent({type:r,selectors:[["ds-themed-navbar"]],features:[n.\u0275\u0275InheritDefinitionFeature],ngContentSelectors:i,decls:5,vars:0,consts:[["vcr",""],["content",""]],template:function(p,h){1&p&&(n.\u0275\u0275projectionDef(),n.\u0275\u0275template(0,o,0,0,"ng-template",null,0,n.\u0275\u0275templateRefExtractor),n.\u0275\u0275elementStart(2,"div",null,1),n.\u0275\u0275projection(4),n.\u0275\u0275elementEnd())},encapsulation:2}),r})()},69983:(R,c,e)=>{"use strict";e.r(c),e.d(c,{PageErrorComponent:()=>i});var t=e(94650),n=e(34793),o=e(89383);let i=(()=>{class d{constructor(a){this.activatedRoute=a,this.activatedRoute.queryParams.subscribe(p=>{this.status=p.status,this.code=p.code})}}return d.\u0275fac=function(a){return new(a||d)(t.\u0275\u0275directiveInject(n.gz))},d.\u0275cmp=t.\u0275\u0275defineComponent({type:d,selectors:[["ds-page-error"]],decls:16,vars:10,consts:[[1,"page-internal-server-error","container"],["data-test","status"],[1,"text-center"],["href","/home",1,"btn","btn-primary"]],template:function(a,p){1&a&&(t.\u0275\u0275elementStart(0,"div",0)(1,"h1",1),t.\u0275\u0275text(2),t.\u0275\u0275elementEnd(),t.\u0275\u0275elementStart(3,"h2")(4,"small"),t.\u0275\u0275text(5),t.\u0275\u0275pipe(6,"translate"),t.\u0275\u0275elementEnd()(),t.\u0275\u0275element(7,"br"),t.\u0275\u0275elementStart(8,"p"),t.\u0275\u0275text(9),t.\u0275\u0275pipe(10,"translate"),t.\u0275\u0275elementEnd(),t.\u0275\u0275element(11,"br"),t.\u0275\u0275elementStart(12,"p",2)(13,"a",3),t.\u0275\u0275text(14),t.\u0275\u0275pipe(15,"translate"),t.\u0275\u0275elementEnd()()()),2&a&&(t.\u0275\u0275advance(2),t.\u0275\u0275textInterpolate(p.status),t.\u0275\u0275advance(3),t.\u0275\u0275textInterpolate(t.\u0275\u0275pipeBind1(6,4,"error-page.description."+p.status)),t.\u0275\u0275advance(4),t.\u0275\u0275textInterpolate(t.\u0275\u0275pipeBind1(10,6,"error-page."+p.code)),t.\u0275\u0275advance(5),t.\u0275\u0275textInterpolate(t.\u0275\u0275pipeBind1(15,8,p.status+".link.home-page")))},dependencies:[o.X$]}),d})()},89616:(R,c,e)=>{"use strict";e.r(c),e.d(c,{PageInternalServerErrorComponent:()=>i});var t=e(13014),n=e(94650),o=e(89383);let i=(()=>{class d{constructor(a){this.responseService=a,this.responseService.setInternalServerError()}}return d.\u0275fac=function(a){return new(a||d)(n.\u0275\u0275directiveInject(t.N))},d.\u0275cmp=n.\u0275\u0275defineComponent({type:d,selectors:[["ds-page-internal-server-error"]],decls:16,vars:9,consts:[[1,"page-internal-server-error","container"],[1,"text-center"],["href","home",1,"btn","btn-primary"]],template:function(a,p){1&a&&(n.\u0275\u0275elementStart(0,"div",0)(1,"h1"),n.\u0275\u0275text(2,"500"),n.\u0275\u0275elementEnd(),n.\u0275\u0275elementStart(3,"h2")(4,"small"),n.\u0275\u0275text(5),n.\u0275\u0275pipe(6,"translate"),n.\u0275\u0275elementEnd()(),n.\u0275\u0275element(7,"br"),n.\u0275\u0275elementStart(8,"p"),n.\u0275\u0275text(9),n.\u0275\u0275pipe(10,"translate"),n.\u0275\u0275elementEnd(),n.\u0275\u0275element(11,"br"),n.\u0275\u0275elementStart(12,"p",1)(13,"a",2),n.\u0275\u0275text(14),n.\u0275\u0275pipe(15,"translate"),n.\u0275\u0275elementEnd()()()),2&a&&(n.\u0275\u0275advance(5),n.\u0275\u0275textInterpolate1(" ",n.\u0275\u0275pipeBind1(6,3,"500.page-internal-server-error")," "),n.\u0275\u0275advance(4),n.\u0275\u0275textInterpolate(n.\u0275\u0275pipeBind1(10,5,"500.help")),n.\u0275\u0275advance(5),n.\u0275\u0275textInterpolate(n.\u0275\u0275pipeBind1(15,7,"500.link.home-page")))},dependencies:[o.X$]}),d})()},23463:(R,c,e)=>{"use strict";e.r(c),e.d(c,{PageNotFoundComponent:()=>r});var t=e(13014),n=e(24755),o=e(94650),i=e(34793),d=e(89383);let r=(()=>{class a{constructor(h,m){this.authservice=h,this.responseService=m,this.responseService.setNotFound()}ngOnInit(){this.authservice.clearRedirectUrl()}}return a.\u0275fac=function(h){return new(h||a)(o.\u0275\u0275directiveInject(n.e8),o.\u0275\u0275directiveInject(t.N))}
1,a.\u0275cmp=o.\u0275\u0275defineComponent({type:a,selectors:[["ds-pagenotfound"]],decls:16,vars:9,consts:[[1,"page-not-found","container"],[1,"text-center"],["routerLink","/home",1,"btn","btn-primary"]],template:function(h,m){1&h&&(o.\u0275\u0275elementStart(0,"div",0)(1,"h1"),o.\u0275\u0275text(2,"404"),o.\u0275\u0275elementEnd(),o.\u0275\u0275elementStart(3,"h2")(4,"small"),o.\u0275\u0275text(5),o.\u0275\u0275pipe(6,"translate"),o.\u0275\u0275elementEnd()(),o.\u0275\u0275element(7,"br"),o.\u0275\u0275elementStart(8,"p"),o.\u0275\u0275text(9),o.\u0275\u0275pipe(10,"translate"),o.\u0275\u0275elementEnd(),o.\u0275\u0275element(11,"br"),o.\u0275\u0275elementStart(12,"p",1)(13,"a",2),o.\u0275\u0275text(14),o.\u0275\u0275pipe(15,"translate"),o.\u0275\u0275elementEnd()()()),2&h&&(o.\u0275\u0275advance(5),o.\u0275\u0275textInterpolate(o.\u0275\u0275pipeBind1(6,3,"404.page-not-found")),o.\u0275\u0275advance(4),o.\u0275\u0275textInterpolate(o.\u0275\u0275pipeBind1(10,5,"404.help")),o.\u0275\u0275advance(5),o.\u0275\u0275textInterpolate(o.\u0275\u0275pipeBind1(15,7,"404.link.home-page")))},dependencies:[i.rH,d.X$]}),a})()},96482:(R,c,e)=>{"use strict";e.d(c,{Ah:()=>i,dz:()=>o,gm:()=>n});var t=e(23631);const n="processes",o=()=>`/${n}`,i=d=>new t.R(o(),d).toString()},36094:(R,c,e)=>{"use strict";e.d(c,{N:()=>t});class t{}},36663:(R,c,e)=>{"use strict";e.d(c,{A:()=>_});var t=e(70655),n=e(3879);const o=new n._("processOutput");var m,i=e(29923),d=e(88550),r=e(63037),a=e(19782),p=e(69751),h=e(52410);let _=((m=class{}).type=d.d,m);(0,t.__decorate)([r.OJ,i.autoserialize,(0,t.__metadata)("design:type",n._)],_.prototype,"type",void 0),(0,t.__decorate)([i.autoserialize,(0,t.__metadata)("design:type",String)],_.prototype,"processId",void 0),(0,t.__decorate)([i.autoserialize,(0,t.__metadata)("design:type",String)],_.prototype,"userId",void 0),(0,t.__decorate)([i.autoserialize,(0,t.__metadata)("design:type",String)],_.prototype,"startTime",void 0),(0,t.__decorate)([i.autoserialize,(0,t.__metadata)("design:type",String)],_.prototype,"endTime",void 0),(0,t.__decorate)([i.autoserialize,(0,t.__metadata)("design:type",String)],_.prototype,"scriptName",void 0),(0,t.__decorate)([i.autoserialize,(0,t.__metadata)("design:type",Number)],_.prototype,"processStatus",void 0),(0,t.__decorate)([i.autoserialize,(0,t.__metadata)("design:type",Array)],_.prototype,"parameters",void 0),(0,t.__decorate)([i.deserialize,(0,t.__metadata)("design:type",Object)],_.prototype,"_links",void 0),(0,t.__decorate)([(0,a.p4)(h.x),(0,t.__metadata)("design:type",p.y)],_.prototype,"script",void 0),(0,t.__decorate)([(0,a.p4)(o),(0,t.__metadata)("design:type",p.y)],_.prototype,"output",void 0),_=(0,t.__decorate)([a.KB],_)},88550:(R,c,e)=>{"use strict";e.d(c,{d:()=>n});const n=new(e(3879)._)("process")},3253:(R,c,e)=>{"use strict";e.d(c,{X:()=>p});var a,t=e(70655),n=e(29923),o=e(52410),i=e(19782),d=e(63037),r=e(3879);let p=((a=class{}).type=o.x,a);(0,t.__decorate)([d.OJ,n.autoserialize,(0,t.__metadata)("design:type",r._)],p.prototype,"type",void 0),(0,t.__decorate)([n.autoserialize,(0,t.__metadata)("design:type",String)],p.prototype,"id",void 0),(0,t.__decorate)([n.autoserialize,(0,t.__metadata)("design:type",String)],p.prototype,"name",void 0),(0,t.__decorate)([n.autoserialize,(0,t.__metadata)("design:type",String)],p.prototype,"description",void 0),(0,t.__decorate)([n.autoserialize,(0,t.__metadata)("design:type",Array)],p.prototype,"parameters",void 0),(0,t.__decorate)([n.deserialize,(0,t.__metadata)("design:type",Object)],p.prototype,"_links",void 0),p=(0,t.__decorate)([i.KB],p)},52410:(R,c,e)=>{"use strict";e.d(c,{x:()=>n});const n=new(e(3879)._)("script")},7526:(R,c,e)=>{"use strict";e.d(c,{n:()=>h});var t=e(39646),n=e(54004),o=e(5164),i=e(24702),d=e(10088),r=e(68285),a=e(58577),p=e(94650);let h=(()=>{class m{constructor(v){this.searchService=v}hasProfilesToSuggest(v){return this.searchForSuggestions(v).pipe((0,r.hC)(),(0,n.U)(E=>(0,i.UE)(E)&&E.hasSucceeded&&E.payload?.page?.length>0))}searchForSuggestions(v){const E=this.personQueryData(v);return(0,i.xb)(E)?(0,t.of)((0,a.Wt)()):this.lookup(E)}lookup(v){return(0,i.xb)(v)?(0,t.of)((0,a.Wt)()):this.searchService.search(new d.t({configuration:"eperson_claims",query:v}),null,!1,!0)}personQueryData(v){return v&&v.email?"person.email:"+v.email:null}}return m.\u0275fac=function(v){return new(v||m)(p.\u0275\u0275inject(o.o))},m.\u0275prov=p.\u0275\u0275defineInjectable({token:m,factory:m.\u0275fac}),m})()},59860:(R,c,e)=>{"use strict";e.r(c),e.d(c,{RegisterEmailFormComponent:()=>ne,TYPE_REQUEST_FORGOT:()=>G,TYPE_REQUEST_REGISTER:()=>ie});var t=e(93459),n=e(46418),o=e(24006),i=e(59656),d=e(68285),r=e(24702),a=e(61135),p=e(39841),h=e(63900),m=e(39646),_=e(54004),v=e(95698),E=e(68675),O=e(20036),b=e(92849),M=e(57388),P=e(94650),D=e(89383),l=e(34793),C=e(92834),I=e(36895),g=e(88235),B=e(38605),L=e(25575);function V(q,oe){if(1&q&&(P.\u0275\u0275elementStart(0,"p"),P.\u0275\u0275text(1),P.\u0275\u0275pipe(2,"translate"),P.\u0275\u0275elementEnd()),2&q){const ce=P.\u0275\u0275nextContext();P.\u0275\u0275advance(1),P.\u0275\u0275textInterpolate2(" ",P.\u0275\u0275pipeBind1(2,2,ce.MESSAGE_PREFIX+".info.maildomain")," ",ce.validMailDomains.join(", ")," ")}}function Y(q,oe){if(1&q&&(P.\u0275\u0275elementStart(0,"span",16),P.\u0275\u0275text(1),P.\u0275\u0275pipe(2,"translate"),P.\u0275\u0275elementEnd()),2&q){const ce=P.\u0275\u0275nextContext(2);P.\u0275\u0275advance(1),P.\u0275\u0275textInterpolate1(" ",P.\u0275\u0275pipeBind1(2,1,ce.MESSAGE_PREFIX+".email.error.required")," ")}}const X=function(q){return{domains:q}};function te(q,oe){if(1&q&&(P.\u0275\u0275elementContainerStart(0),P.\u0275\u0275text(1),P.\u0275\u0275pipe(2,"translate"),P.\u0275\u0275elementContainerEnd()),2&q){const ce=P.\u0275\u0275nextContext(3);P.\u0275\u0275advance(1),P.\u0275\u0275textInterpolate1(" ",P.\u0275\u0275pipeBind2(2,1,ce.MESSAGE_PREFIX+".email.error.not-valid-domain",P.\u0275\u0275pureFunction1(4,X,ce.validMailDomains.join(", ")))," ")}}function K(q,oe){if(1&q&&(P.\u0275\u0275elementStart(0,"span",17),P.\u0275\u0275text(1),P.\u0275\u0275pipe(2,"translate"),P.\u0275\u0275template(3,te,3,6,"ng-container",1),P.\u0275\u0275elementEnd()),2&q){const ce=P.\u0275\u0275nextContext(2);P.\u0275\u0275advance(1),P.\u0275\u0275textInterpolate1(" ",P.\u0275\u0275pipeBind1(2,2,ce.MESSAGE_PREFIX+".email.error.not-email-form")," "),P.\u0275\u0275advance(2),P.\u0275\u0275property("ngIf",ce.validMailDomains.length>0)}}function ee(q,oe){if(1&q&&(P.\u0275\u0275elementStart(0,"div",13),P.\u0275\u0275template(1,Y,3,3,"span",14),P.\u0275\u0275template(2,K,4,4,"span",15),P.\u0275\u0275elementEnd()),2&q){const ce=P.\u0275\u0275nextContext();P.\u0275\u0275advance(1),P.\u0275\u0275property("ngIf",ce.email.errors&&ce.email.errors.required),P.\u0275\u0275advance(1),P.\u0275\u0275property("ngIf",ce.email.errors&&(ce.email.errors.pattern&&ce.typeRequest===ce.TYPE_REQUEST_REGISTER||ce.email.errors.email))}}function ae(q,oe){if(1&q){const ce=P.\u0275\u0275getCurrentView();P.\u0275\u0275elementStart(0,"ds-alert",18),P.\u0275\u0275element(1,"p",19),P.\u0275\u0275pipe(2,"translate"),P.\u0275\u0275elementStart(3,"p",20)(4,"a",21),P.\u0275\u0275listener("click",function(){P.\u0275\u0275restoreView(ce);const Me=P.\u0275\u0275nextContext();
1return P.\u0275\u0275resetView(Me.klaroService.showSettings())}),P.\u0275\u0275text(5),P.\u0275\u0275pipe(6,"translate"),P.\u0275\u0275elementEnd()()()}if(2&q){const ce=P.\u0275\u0275nextContext();P.\u0275\u0275property("type",ce.AlertTypeEnum.Warning),P.\u0275\u0275advance(1),P.\u0275\u0275property("innerHTML",P.\u0275\u0275pipeBind1(2,3,ce.MESSAGE_PREFIX+".google-recaptcha.must-accept-cookies"),P.\u0275\u0275sanitizeHtml),P.\u0275\u0275advance(4),P.\u0275\u0275textInterpolate(P.\u0275\u0275pipeBind1(6,5,ce.MESSAGE_PREFIX+".google-recaptcha.open-cookie-settings"))}}function Q(q,oe){if(1&q){const ce=P.\u0275\u0275getCurrentView();P.\u0275\u0275elementStart(0,"div",22)(1,"ds-google-recaptcha",23),P.\u0275\u0275listener("executeRecaptcha",function(Me){P.\u0275\u0275restoreView(ce);const Ee=P.\u0275\u0275nextContext();return P.\u0275\u0275resetView(Ee.register(Me))})("checkboxChecked",function(Me){P.\u0275\u0275restoreView(ce);const Ee=P.\u0275\u0275nextContext();return P.\u0275\u0275resetView(Ee.onCheckboxChecked(Me))})("showNotification",function(Me){P.\u0275\u0275restoreView(ce);const Ee=P.\u0275\u0275nextContext();return P.\u0275\u0275resetView(Ee.showNotification(Me))}),P.\u0275\u0275pipe(2,"async"),P.\u0275\u0275elementEnd()()}if(2&q){const ce=P.\u0275\u0275nextContext();P.\u0275\u0275advance(1),P.\u0275\u0275property("captchaMode",P.\u0275\u0275pipeBind1(2,1,ce.googleRecaptchaService.captchaMode()))}}function j(q,oe){if(1&q){const ce=P.\u0275\u0275getCurrentView();P.\u0275\u0275elementContainerStart(0),P.\u0275\u0275elementStart(1,"button",24),P.\u0275\u0275listener("click",function(){P.\u0275\u0275restoreView(ce);const Me=P.\u0275\u0275nextContext();return P.\u0275\u0275resetView(Me.register())}),P.\u0275\u0275text(2),P.\u0275\u0275pipe(3,"translate"),P.\u0275\u0275elementEnd(),P.\u0275\u0275elementContainerEnd()}if(2&q){const ce=P.\u0275\u0275nextContext();P.\u0275\u0275advance(1),P.\u0275\u0275property("dsBtnDisabled",ce.form.invalid||ce.registrationVerification&&!ce.isRecaptchaCookieAccepted()||ce.disableUntilChecked),P.\u0275\u0275advance(1),P.\u0275\u0275textInterpolate1(" ",P.\u0275\u0275pipeBind1(3,2,ce.MESSAGE_PREFIX+".submit")," ")}}function k(q,oe){if(1&q){const ce=P.\u0275\u0275getCurrentView();P.\u0275\u0275elementStart(0,"button",24),P.\u0275\u0275listener("click",function(){P.\u0275\u0275restoreView(ce);const Me=P.\u0275\u0275nextContext();return P.\u0275\u0275resetView(Me.executeRecaptcha())}),P.\u0275\u0275text(1),P.\u0275\u0275pipe(2,"translate"),P.\u0275\u0275elementEnd()}if(2&q){const ce=P.\u0275\u0275nextContext();P.\u0275\u0275property("dsBtnDisabled",ce.form.invalid),P.\u0275\u0275advance(1),P.\u0275\u0275textInterpolate1(" ",P.\u0275\u0275pipeBind1(2,2,ce.MESSAGE_PREFIX+".submit")," ")}}const G="forgot",ie="register";let ne=(()=>{class q{constructor(ce,ye,Me,Ee,Ae,Je,_t,It,it,Be,Xe){this.epersonRegistrationService=ce,this.notificationService=ye,this.translateService=Me,this.router=Ee,this.formBuilder=Ae,this.configService=Je,this.googleRecaptchaService=_t,this.cookieService=It,this.klaroService=it,this.changeDetectorRef=Be,this.notificationsService=Xe,this.typeRequest=null,this.AlertTypeEnum=b.N,this.registrationVerification=!1,this.checkboxCheckedSubject$=new a.X(!1),this.disableUntilChecked=!0,this.TYPE_REQUEST_REGISTER=ie,this.subscriptions=[]}captchaVersion(){return this.googleRecaptchaService.captchaVersion()}captchaMode(){return this.googleRecaptchaService.captchaMode()}ngOnDestroy(){this.subscriptions.forEach(ce=>ce.unsubscribe())}ngOnInit(){const ce=[o.kI.required,o.kI.email,o.kI.pattern("^[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])?)*$")];this.form=this.formBuilder.group({email:new o.p4("",{validators:ce})}),this.validMailDomains=[],this.typeRequest===ie&&this.subscriptions.push(this.configService.findByPropertyName("authentication-password.domain.valid").pipe((0,d.mc)()).subscribe(ye=>{this.validMailDomains=ye.values;for(const Me of ye.values)0!==this.validMailDomains.length&&(this.form.get("email").setValidators([...ce,o.kI.pattern(this.validMailDomains.map(Ee=>"(^.*"+Ee.replace(new RegExp("\\.","g"),"\\.")+"$)").join("|"))]),this.form.updateValueAndValidity());this.changeDetectorRef.detectChanges()})),this.subscriptions.push(this.configService.findByPropertyName("registration.verification.enabled").pipe((0,d.Gp)(),(0,_.U)(ye=>"true"===ye?.values[0].toLowerCase())).subscribe(ye=>{this.registrationVerification=ye})),this.subscriptions.push(this.disableUntilCheckedFcn().subscribe(ye=>{this.disableUntilChecked=ye,this.changeDetectorRef.detectChanges()}))}executeRecaptcha(){this.googleRecaptchaService.executeRecaptcha()}
1register(ce){this.form.invalid||(this.registrationVerification?this.subscriptions.push((0,p.a)([this.captchaVersion(),this.captchaMode()]).pipe((0,h.w)(([ye,Me])=>"v3"===ye?this.googleRecaptchaService.getRecaptchaToken("register_email"):"v2"===ye&&"checkbox"===Me?(0,m.of)(this.googleRecaptchaService.getRecaptchaTokenResponse()):"v2"===ye&&"invisible"===Me?(0,m.of)(ce):(console.error(`Invalid reCaptcha configuration: version = ${ye}, mode = ${Me}`),void this.showNotification("error"))),(0,v.q)(1)).subscribe(ye=>{(0,r.UE)(ye)?this.registration(ye):(console.error("reCaptcha error"),this.showNotification("error"))})):this.registration())}registration(ce=null){let ye=this.epersonRegistrationService.registerEmail(this.email.value,ce||null,this.typeRequest);this.subscriptions.push(ye.subscribe(Me=>{Me.hasSucceeded?(this.notificationService.success(this.translateService.get(`${this.MESSAGE_PREFIX}.success.head`),this.translateService.get(`${this.MESSAGE_PREFIX}.success.content`,{email:this.email.value})),this.router.navigate(["/home"])):this.notificationService.error(this.translateService.get(`${this.MESSAGE_PREFIX}.error.head`),422===Me.statusCode?this.translateService.get(`${this.MESSAGE_PREFIX}.error.maildomain`,{domains:this.validMailDomains.join(", ")}):this.translateService.get(`${this.MESSAGE_PREFIX}.error.content`,{email:this.email.value}))}))}isRecaptchaCookieAccepted(){const ce=this.cookieService.get("klaro-anonymous");return!!(0,r.UE)(ce)&&ce[O.LI]}disableUntilCheckedFcn(){const ce=this.checkboxCheckedSubject$.asObservable();return(0,p.a)([this.captchaVersion(),this.captchaMode(),ce]).pipe((0,h.w)(([ye,Me,Ee])=>(0,m.of)("v2"===ye&&"checkbox"===Me&&!Ee)),(0,E.O)(!0))}get email(){return this.form.get("email")}onCheckboxChecked(ce){this.checkboxCheckedSubject$.next(ce)}showNotification(ce){const ye=this.translateService.get(this.MESSAGE_PREFIX+".google-recaptcha.notification.title"),Me=this.translateService.get(this.MESSAGE_PREFIX+".google-recaptcha.notification.message.error"),Ee=this.translateService.get(this.MESSAGE_PREFIX+".google-recaptcha.notification.message.expired");switch(ce){case"expired":this.notificationsService.warning(ye,Ee);break;case"error":this.notificationsService.error(ye,Me);break;default:console.warn(`Unimplemented notification '${ce}' from reCaptcha service`)}}}return q.\u0275fac=function(ce){return new(ce||q)(P.\u0275\u0275directiveInject(t.m),P.\u0275\u0275directiveInject(n.T),P.\u0275\u0275directiveInject(D.sK),P.\u0275\u0275directiveInject(l.F0),P.\u0275\u0275directiveInject(o.QS),P.\u0275\u0275directiveInject(i.i),P.\u0275\u0275directiveInject(O.v0),P.\u0275\u0275directiveInject(M.N),P.\u0275\u0275directiveInject(C.D,8),P.\u0275\u0275directiveInject(P.ChangeDetectorRef),P.\u0275\u0275directiveInject(n.T))},q.\u0275cmp=P.\u0275\u0275defineComponent({type:q,selectors:[["ds-register-email-form"]],inputs:{MESSAGE_PREFIX:"MESSAGE_PREFIX",typeRequest:"typeRequest"},decls:29,vars:33,consts:[[1,"container"],[4,"ngIf"],[3,"formGroup"],[1,"form-group"],[1,"row"],[1,"col-12"],["for","email",1,"font-weight-bold"],["type","text","id","email","formControlName","email",3,"className"],["class","invalid-feedback show-feedback",4,"ngIf"],[3,"type",4,"ngIf"],["class","my-3",4,"ngIf"],[4,"ngIf","ngIfElse"],["v2Invisible",""],[1,"invalid-feedback","show-feedback"],["id","email-errors-required",4,"ngIf"],["id","email-error-not-valid",4,"ngIf"],["id","email-errors-required"],["id","email-error-not-valid"],[3,"type"],[1,"m-0",3,"innerHTML"],[1,"m-0"],["href","javascript:void(0);",3,"click"],[1,"my-3"],[3,"captchaMode","executeRecaptcha","checkboxChecked","showNotification"],[1,"btn","btn-primary",3,"dsBtnDisabled","click"]],template:function(ce,ye){if(1&ce&&(P.\u0275\u0275elementStart(0,"div",0)(1,"h1"),P.\u0275\u0275text(2),P.\u0275\u0275pipe(3,"translate"),P.\u0275\u0275elementEnd(),P.\u0275\u0275elementStart(4,"p"),P.\u0275\u0275text(5),P.\u0275\u0275pipe(6,"translate"),P.\u0275\u0275elementEnd(),P.\u0275\u0275template(7,V,3,4,"p",1),P.\u0275\u0275elementStart(8,"form",2)(9,"div",3)(10,"div",4)(11,"div",5)(12,"label",6),P.\u0275\u0275text(13),P.\u0275\u0275pipe(14,"translate"),P.\u0275\u0275elementEnd(),P.\u0275\u0275element(15,"input",7),P.\u0275\u0275pipe(16,"translate"),P.\u0275\u0275template(17,ee,3,2,"div",8),P.\u0275\u0275elementEnd(),P.\u0275\u0275elementStart(18,"div",5),P.\u0275\u0275text(19),P.\u0275\u0275pipe(20,"translate"),P.\u0275\u0275elementEnd()()(),P.\u0275\u0275template(21,ae,7,7,"ds-alert",9),P.\u0275\u0275template(22,Q,3,3,"div",10),P.\u0275\u0275pipe(23,"async"),P.\u0275\u0275template(24,j,4,4,"ng-container",11),P.\u0275\u0275pipe(25,"async"),P.\u0275\u0275pipe(26,"async"),P.\u0275\u0275template(27,k,3,4,"ng-template",null,12,P.\u0275\u0275templateRefExtractor),P.\u0275\u0275elementEnd()()),2&ce){const Me=P.\u0275\u0275reference(28);P.\u0275\u0275advance(2),P.\u0275\u0275textInterpolate(P.\u0275\u0275pipeBind1(3,17,ye.MESSAGE_PREFIX+".header")),P.\u0275\u0275advance(3),P.\u0275\u0275textInterpolate(P.\u0275\u0275pipeBind1(6,19,ye.MESSAGE_PREFIX+".info")),P.\u0275\u0275advance(2),P.\u0275\u0275property("ngIf",0!=ye.validMailDomains.length&&ye.typeRequest===ye.TYPE_REQUEST_REGISTER),P.\u0275\u0275advance(1),P.\u0275\u0275classMap("ng-invalid"),P.\u0275\u0275property("formGroup",ye.form),P.\u0275\u0275advance(5),P.\u0275\u0275textInterpolate(P.\u0275\u0275pipeBind1(14,21,ye.MESSAGE_PREFIX+".email")),P.\u0275\u0275advance(2),P.\u0275\u0275property("className",ye.email.invalid&&(ye.email.dirty||ye.email.touched)?"form-control is-invalid":"form-control"),P.\u0275\u0275attribute("aria-label",P.\u0275\u0275pipeBind1(16,23,ye.MESSAGE_PREFIX+".aria.label"))("aria-describedby",ye.email.errors?ye.email.errors.required?"email-errors-required":"email-error-not-valid":"")("aria-invalid",ye.email.invalid),P.\u0275\u0275advance(2),P.\u0275\u0275property("ngIf",ye.email.invalid&&(ye.email.dirty||ye.email.touched)),P.\u0275\u0275advance(2),P.\u0275\u0275textInterpolate1(" ",P.\u0275\u0275pipeBind1(20,25,ye.MESSAGE_PREFIX+".email.hint")," "),P.\u0275\u0275advance(2),P.\u0275\u0275property("ngIf",ye.registrationVerification&&!ye.isRecaptchaCookieA
1ccepted()),P.\u0275\u0275advance(1),P.\u0275\u0275property("ngIf",ye.isRecaptchaCookieAccepted()&&"v2"===P.\u0275\u0275pipeBind1(23,27,ye.googleRecaptchaService.captchaVersion())),P.\u0275\u0275advance(2),P.\u0275\u0275property("ngIf",!("v2"===P.\u0275\u0275pipeBind1(25,29,ye.googleRecaptchaService.captchaVersion())&&"invisible"===P.\u0275\u0275pipeBind1(26,31,ye.googleRecaptchaService.captchaMode())))("ngIfElse",Me)}},dependencies:[I.O5,o._Y,o.Fj,o.JJ,o.JL,o.sg,o.u,g.C,B.w,L.v,I.Ov,D.X$],encapsulation:2}),q})()},47798:(R,c,e)=>{"use strict";e.r(c),e.d(c,{RootComponent:()=>ee});var t=e(54244),n=e(50590),o=e(54004),i=e(68675),d=e(39646),r=e(39841),a=e(61182),p=e(54541),h=e(958),m=e(21540),_=e(41672),v=e(78969),E=e(50503),O=e(94650),b=e(34793),M=e(36895),P=e(48106),D=e(32162),l=e(62367),C=e(45141),I=e(12194),g=e(24958),B=e(83771),L=e(71362),V=e(89383);function Y(ae,Q){1&ae&&(O.\u0275\u0275elementStart(0,"div",8),O.\u0275\u0275element(1,"ds-themed-loading",9),O.\u0275\u0275elementEnd()),2&ae&&(O.\u0275\u0275advance(1),O.\u0275\u0275property("showMessage",!1))}function X(ae,Q){1&ae&&(O.\u0275\u0275elementStart(0,"div",10),O.\u0275\u0275element(1,"ds-themed-loading",9),O.\u0275\u0275elementEnd()),2&ae&&(O.\u0275\u0275advance(1),O.\u0275\u0275property("showMessage",!1))}const te=function(ae,Q){return{collapsedWidth:ae,expandedWidth:Q}},K=function(ae,Q){return{value:ae,params:Q}};let ee=(()=>{class ae{constructor(j,k,G,ie){this.router=j,this.cssService=k,this.menuService=G,this.windowService=ie,this.theme=(0,d.of)({}),this.notificationOptions=m.N.notifications}ngOnInit(){this.isSidebarVisible$=this.menuService.isMenuVisibleWithVisibleSections(v.z.ADMIN),this.expandedSidebarWidth$=this.cssService.getVariable("--ds-admin-sidebar-total-width").pipe((0,t.n)(k=>!k),(0,n.P)()),this.collapsedSidebarWidth$=this.cssService.getVariable("--ds-admin-sidebar-fixed-element-width").pipe((0,t.n)(k=>!k),(0,n.P)());const j=this.menuService.isMenuCollapsed(v.z.ADMIN);this.slideSidebarOver$=(0,r.a)([j,this.windowService.isXsOrSm()]).pipe((0,o.U)(([k,G])=>k||G),(0,i.O)(!0)),this.router.url===(0,E.Tt)()&&(this.shouldShowRouteLoader=!1)}skipToMainContent(){const j=document.getElementById("main-content");j&&(j.tabIndex=-1,j.focus())}}return ae.\u0275fac=function(j){return new(j||ae)(O.\u0275\u0275directiveInject(b.F0),O.\u0275\u0275directiveInject(a.I),O.\u0275\u0275directiveInject(p.h),O.\u0275\u0275directiveInject(h.I3))},ae.\u0275cmp=O.\u0275\u0275defineComponent({type:ae,selectors:[["ds-root"]],inputs:{shouldShowFullscreenLoader:"shouldShowFullscreenLoader",shouldShowRouteLoader:"shouldShowRouteLoader"},decls:21,vars:27,consts:[["id","skip-to-main-content",1,"sr-only",3,"click"],[1,"outer-wrapper"],[3,"expandedSidebarWidth$","collapsedSidebarWidth$"],[1,"inner-wrapper"],["id","main-content",1,"my-cs"],["class","container d-flex justify-content-center align-items-center h-100",4,"ngIf"],[3,"options"],["class","ds-full-screen-loader",4,"ngIf"],[1,"container","d-flex","justify-content-center","align-items-center","h-100"],[3,"showMessage"],[1,"ds-full-screen-loader"]],template:function(j,k){1&j&&(O.\u0275\u0275elementStart(0,"button",0),O.\u0275\u0275listener("click",function(){return k.skipToMainContent()}),O.\u0275\u0275text(1),O.\u0275\u0275pipe(2,"translate"),O.\u0275\u0275elementEnd(),O.\u0275\u0275elementStart(3,"div",1),O.\u0275\u0275pipe(4,"async"),O.\u0275\u0275pipe(5,"async"),O.\u0275\u0275pipe(6,"async"),O.\u0275\u0275pipe(7,"async"),O.\u0275\u0275element(8,"ds-themed-admin-sidebar",2),O.\u0275\u0275elementStart(9,"div",3),O.\u0275\u0275element(10,"ds-system-wide-alert-banner")(11,"ds-themed-header-navbar-wrapper")(12,"ds-themed-breadcrumbs"),O.\u0275\u0275elementStart(13,"main",4),O.\u0275\u0275template(14,Y,2,1,"div",5),O.\u0275\u0275elementStart(15,"div"),O.\u0275\u0275element(16,"router-outlet"),O.\u0275\u0275elementEnd()(),O.\u0275\u0275element(17,"ds-themed-footer"),O.\u0275\u0275elementEnd()(),O.\u0275\u0275element(18,"ds-notifications-board",6),O.\u0275\u0275template(19,X,2,1,"div",7),O.\u0275\u0275element(20,"ds-live-region")),2&j&&(O.\u0275\u0275advance(1),O.\u0275\u0275textInterpolate1(" ",O.\u0275\u0275pipeBind1(2,11,"root.skip-to-content"),"\n"),O.\u0275\u0275advance(2),O.\u0275\u0275classProp("d-none",k.shouldShowFullscreenLoader),O.\u0275\u0275property("@slideSidebarPadding",O.\u0275\u0275pureFunction2(24,
1K,O.\u0275\u0275pipeBind1(4,13,k.isSidebarVisible$)?O.\u0275\u0275pipeBind1(5,15,k.slideSidebarOver$)?"unpinned":"pinned":"hidden",O.\u0275\u0275pureFunction2(21,te,O.\u0275\u0275pipeBind1(6,17,k.collapsedSidebarWidth$),O.\u0275\u0275pipeBind1(7,19,k.expandedSidebarWidth$)))),O.\u0275\u0275advance(5),O.\u0275\u0275property("expandedSidebarWidth$",k.expandedSidebarWidth$)("collapsedSidebarWidth$",k.collapsedSidebarWidth$),O.\u0275\u0275advance(6),O.\u0275\u0275property("ngIf",k.shouldShowRouteLoader),O.\u0275\u0275advance(1),O.\u0275\u0275classProp("d-none",k.shouldShowRouteLoader),O.\u0275\u0275advance(3),O.\u0275\u0275property("options",k.notificationOptions),O.\u0275\u0275advance(1),O.\u0275\u0275property("ngIf",k.shouldShowFullscreenLoader))},dependencies:[M.O5,b.lC,P.Z,D.U,l.P,C.x,I.$,g.k,B.d,L.e,M.Ov,V.X$],styles:["#skip-to-main-content[_ngcontent-%COMP%]{position:absolute;top:-40px;left:0;opacity:0;transition:opacity .3s;z-index:calc(var(--ds-nav-z-index) + 1);border-top-left-radius:0;border-top-right-radius:0;border-bottom-left-radius:0}#skip-to-main-content[_ngcontent-%COMP%]:focus{opacity:1;top:0}"],data:{animation:[_.Fc]}}),ae})()},39752:(R,c,e)=>{"use strict";e.r(c),e.d(c,{SearchNavbarComponent:()=>m});var t=e(5164),n=e(41672),o=e(94650),i=e(24006),d=e(34793),r=e(90059),a=e(89383),p=e(73579);const h=["searchInput"];let m=(()=>{class _{constructor(E,O,b){this.formBuilder=E,this.router=O,this.searchService=b,this.searchExpanded=!1,this.isExpanded="collapsed",this.searchForm=this.formBuilder.group({query:""})}expand(){this.searchExpanded=!0,this.isExpanded="expanded",this.editSearch()}collapse(){this.searchField.nativeElement.blur(),this.searchExpanded=!1,this.isExpanded="collapsed"}editSearch(){this.searchField.nativeElement.focus()}onSubmit(E){this.collapse();const O=Object.assign({},E),b=[this.searchService.getSearchLink().replace("/","")];this.searchForm.reset(),this.router.navigate(b,{queryParams:O})}}return _.\u0275fac=function(E){return new(E||_)(o.\u0275\u0275directiveInject(i.QS),o.\u0275\u0275directiveInject(d.F0),o.\u0275\u0275directiveInject(t.o))},_.\u0275cmp=o.\u0275\u0275defineComponent({type:_,selectors:[["ds-search-navbar"]],viewQuery:function(E,O){if(1&E&&o.\u0275\u0275viewQuery(h,5),2&E){let b;o.\u0275\u0275queryRefresh(b=o.\u0275\u0275loadQuery())&&(O.searchField=b.first)}},decls:13,vars:23,consts:[[3,"title","dsClickOutside"],[1,"d-inline-block","position-relative"],["autocomplete","on",1,"d-flex",3,"formGroup","ngSubmit"],["name","query","formControlName","query","type","text",1,"bg-transparent","position-absolute","form-control","dropdown-menu-right","pl-1","pr-4",3,"placeholder","tabIndex"],["searchInput",""],["type","button",1,"submit-icon","btn","btn-link","btn-link-inline",3,"click"],[1,"fas","fa-search","fa-lg","fa-fw"]],template:function(E,O){1&E&&(o.\u0275\u0275elementStart(0,"div",0),o.\u0275\u0275listener("dsClickOutside",function(){return O.collapse()}),o.\u0275\u0275pipe(1,"translate"),o.\u0275\u0275elementStart(2,"div",1)(3,"form",2),o.\u0275\u0275listener("ngSubmit",function(){return O.onSubmit(O.searchForm.value)}),o.\u0275\u0275element(4,"input",3,4),o.\u0275\u0275pipe(6,"translate"),o.\u0275\u0275pipe(7,"translate"),o.\u0275\u0275pipe(8,"dsBrowserOnly"),o.\u0275\u0275elementStart(9,"button",5),o.\u
10275\u0275listener("click",function(){return O.searchExpanded?O.onSubmit(O.searchForm.value):O.expand()}),o.\u0275\u0275pipe(10,"translate"),o.\u0275\u0275pipe(11,"dsBrowserOnly"),o.\u0275\u0275element(12,"em",6),o.\u0275\u0275elementEnd()()()()),2&E&&(o.\u0275\u0275property("title",o.\u0275\u0275pipeBind1(1,11,"nav.search")),o.\u0275\u0275advance(3),o.\u0275\u0275property("formGroup",O.searchForm),o.\u0275\u0275advance(1),o.\u0275\u0275classProp("display",O.searchExpanded?"inline-block":"none"),o.\u0275\u0275propertyInterpolate("placeholder",O.searchExpanded?o.\u0275\u0275pipeBind1(7,15,"nav.search"):""),o.\u0275\u0275property("@toggleAnimation",O.isExpanded)("tabIndex",O.searchExpanded?0:-1),o.\u0275\u0275attribute("aria-label",o.\u0275\u0275pipeBind1(6,13,"nav.search"))("data-test",o.\u0275\u0275pipeBind1(8,17,"header-search-box")),o.\u0275\u0275advance(5),o.\u0275\u0275attribute("aria-label",o.\u0275\u0275pipeBind1(10,19,"nav.search.button"))("data-test",o.\u0275\u0275pipeBind1(11,21,"header-search-icon")))},dependencies:[i._Y,i.Fj,i.JJ,i.JL,i.sg,i.u,r._,a.X$,p.g],styles:["input[type=text][_ngcontent-%COMP%]{background-color:#fff!important}input[type=text][_ngcontent-%COMP%]{margin-top:calc(-.5 * var(--bs-font-size-base));color:#fff;border-color:#fff}input[type=text].collapsed[_ngcontent-%COMP%]{opacity:0}.submit-icon[_ngcontent-%COMP%]{border:0!important}.submit-icon[_ngcontent-%COMP%]{cursor:pointer;position:sticky;top:0;color:#fff}.submit-icon[_ngcontent-%COMP%]:hover, .submit-icon[_ngcontent-%COMP%]:focus{color:var(--ds-header-icon-color-hover)}@media screen and (max-width: 768px){.query[_ngcontent-%COMP%]:focus{max-width:250px!important;width:40vw!important}}"],data:{animation:[n.WP]}}),_})()},94965:(R,c,e)=>{"use strict";e.d(c,{A:()=>d});var t=e(25330),n=e(94650);function o(r,a){}const i=["*"];let d=(()=>{class r extends t.F{getComponentName(){return"SearchNavbarComponent"}importThemedComponent(p){return e(1741)(`./${p}/app/search-navbar/search-navbar.component`)}importUnthemedComponent(){return Promise.resolve().then(e.bind(e,39752))}}return r.\u0275fac=function(){let a;return function(h){return(a||(a=n.\u0275\u0275getInheritedFactory(r)))(h||r)}}(),r.\u0275cmp=n.\u0275\u0275defineComponent({type:r,selectors:[["ds-themed-search-navbar"]],features:[n.\u0275\u0275InheritDefinitionFeature],ngContentSelectors:i,decls:5,vars:0,consts:[["vcr",""],["content",""]],template:function(p,h){1&p&&(n.\u0275\u0275projectionDef(),n.\u0275\u0275template(0,o,0,0,"ng-template",null,0,n.\u0275\u0275templateRefExtractor),n.\u0275\u0275elementStart(2,"div",null,1),n.\u0275\u0275projection(4),n.\u0275\u0275elementEnd())},encapsulation:2}),r})()},55810:(R,c,e)=>{"use strict";e.d(c,{x:()=>Rt});var t=e(34782),n=e(24351),o=e(63162),i=e(94650),d=e(36895),r=e(24006),a=e(25575),p=e(9769),h=e(89383);let m=(()=>{class Pt{transform(lt){if(!lt)return null;const Ut=new Date(lt);return{year:Ut.getFullYear(),month:Ut.getMonth()+1,day:Ut.getDate()}}}return Pt.\u0275fac=function(lt){return new(lt||Pt)},Pt.\u0275pipe=i.\u0275\u0275definePipe({name:"toDate",type:Pt,pure:!1}),Pt})();const _=["ngForm"];function v(Pt,xt){1&Pt&&(i.\u0275\u0275elementStart(0,"div",5),i.\u0275\u0275text(1),i.\u0275\u0275pipe(2,"translate"),i.\u0275\u0275elementEnd()),2&Pt&&(i.\u0275\u0275advance(1),i.\u0275\u0275textInterpolate1(" ",i.\u0275\u0275pipeBind1(2,1,"access-control-no-access-conditions-warning-message")," "))}function E(Pt,xt){if(1&Pt&&(i.\u0275\u0275elementStart(0,"option",18),i.\u0275\u0275text(1),i.\u0275\u0275elementEnd()),2&Pt){const lt=xt.$implicit;i.\u0275\u0275property("value",lt.name),i.\u0275\u0275advance(1),i.\u0275\u0275textInterpolate1(" ",lt.name," ")}}function O(Pt,xt){if(1&Pt){const lt=i.\u0275\u0275getCurrentView();i.\u0275\u0275elementStart(0,"div",19)(1,"label",8),i.\u0275\u0275text(2),i.\u0275\u0275pipe(3,"translate"),i.\u0275\u0275elementEnd(),i.\u0275\u0275elementStart(4,"div",15)(5,"input",20,21),i.\u0275\u0275listener("ngModelChange",function(ke){i.\u0275\u0275restoreView(lt);const ot=i.\u0275\u0275nextContext().$implicit;
1return i.\u0275\u0275resetView(ot.startDate=ke)}),i.\u0275\u0275pipe(7,"toDate"),i.\u0275\u0275elementEnd(),i.\u0275\u0275elementStart(8,"div",22)(9,"button",23),i.\u0275\u0275listener("click",function(){i.\u0275\u0275restoreView(lt);const ke=i.\u0275\u0275reference(6);return i.\u0275\u0275resetView(ke.toggle())}),i.\u0275\u0275elementEnd()()(),i.\u0275\u0275elementStart(10,"small",12),i.\u0275\u0275text(11),i.\u0275\u0275pipe(12,"translate"),i.\u0275\u0275elementEnd()()}if(2&Pt){const lt=i.\u0275\u0275nextContext().$implicit;i.\u0275\u0275nextContext();const Ut=i.\u0275\u0275reference(1);i.\u0275\u0275advance(1),i.\u0275\u0275propertyInterpolate1("for","accesscontrolstartdate-",lt.id,""),i.\u0275\u0275advance(1),i.\u0275\u0275textInterpolate1(" ",i.\u0275\u0275pipeBind1(3,8,"access-control-option-start-date")," "),i.\u0275\u0275advance(3),i.\u0275\u0275propertyInterpolate1("id","accesscontrolstartdate-",lt.id,"")("name","startDate-",lt.id,""),i.\u0275\u0275property("ngModel",lt.startDate)("maxDate",i.\u0275\u0275pipeBind1(7,10,lt.maxStartDate)),i.\u0275\u0275advance(4),i.\u0275\u0275property("dsBtnDisabled",Ut.disabled),i.\u0275\u0275advance(2),i.\u0275\u0275textInterpolate1(" ",i.\u0275\u0275pipeBind1(12,12,"access-control-option-start-date-note")," ")}}function b(Pt,xt){if(1&Pt){const lt=i.\u0275\u0275getCurrentView();i.\u0275\u0275elementStart(0,"div",19)(1,"label",8),i.\u0275\u0275text(2),i.\u0275\u0275pipe(3,"translate"),i.\u0275\u0275elementEnd(),i.\u0275\u0275elementStart(4,"div",15)(5,"input",20,24),i.\u0275\u0275listener("ngModelChange",function(ke){i.\u0275\u0275restoreView(lt);const ot=i.\u0275\u0275nextContext().$implicit;return i.\u0275\u0275resetView(ot.endDate=ke)}),i.\u0275\u0275pipe(7,"toDate"),i.\u0275\u0275elementEnd(),i.\u0275\u0275elementStart(8,"div",22)(9,"button",23),i.\u0275\u0275listener("click",function(){i.\u0275\u0275restoreView(lt);const ke=i.\u0275\u0275reference(6);return i.\u0275\u0275resetView(ke.toggle())}),i.\u0275\u0275elementEnd()()(),i.\u0275\u0275elementStart(10,"small",12),i.\u0275\u0275text(11),i.\u0275\u0275pipe(12,"translate"),i.\u0275\u0275elementEnd()()}if(2&Pt){const lt=i.\u0275\u0275nextContext().$implicit;i.\u0275\u0275nextContext();const Ut=i.\u0275\u0275reference(1);i.\u0275\u0275advance(1),i.\u0275\u0275propertyInterpolate1("for","accesscontrolenddate-",lt.id,""),i.\u0275\u0275advance(1),i.\u0275\u0275textInterpolate1(" ",i.\u0275\u0275pipeBind1(3,8,"access-control-option-end-date")," "),i.\u0275\u0275advance(3),i.\u0275\u0275propertyInterpolate1("id","accesscontrolenddate-",lt.id,"")("name","endDate-",lt.id,""),i.\u0275\u0275property("ngModel",lt.endDate)("maxDate",i.\u0275\u0275pipeBind1(7,10,lt.maxEndDate)),i.\u0275\u0275advance(4),i.\u0275\u0275property("dsBtnDisabled",Ut.disabled),i.\u0275\u0275advance(2),i.\u0275\u0275textInterpolate1(" ",i.\u0275\u0275pipeBind1(12,12,"access-control-option-end-date-note")," ")}}function M(Pt,xt){if(1&Pt){const lt=i.\u0275\u0275getCurrentView();i.\u0275\u0275elementContainerStart(0),i.\u0275\u0275elementStart(1,"div",6)(2,"div",7)(3,"div")(4,"label",8),i.\u0275\u0275text(5),i.\u0275\u0275pipe(6,"translate"),i.\u0275\u0275elementEnd(),i.\u0275\u0275elementStart(7,"select",9),i.\u0275\u0275listener("ngModelChange",function(ke){const gt=i.\u0275\u0275restoreView(lt).$implicit;return i.\u0275\u0275resetView(gt.itemName=ke)})("ngModelChange",function(ke){const gt=i.\u0275\u0275restoreView(lt).$implicit,zt=i.\u0275\u0275nextContext();return i.\u0275\u0275resetView(zt.accessControlChanged(gt,ke))}),i.\u0275\u0275element(8,"option",10),i.\u0275\u0275template(9,E,2,2,"option",11),i.\u0275\u0275elementEnd(),i.\u0275\u0275elementStart(10,"small",12),i.\u0275\u0275text(11),i.\u0275\u0275pipe(12,"translate"),i.\u0275\u0275elementEnd()(),i.\u0275\u0275template(13,O,13,14,"div",13),i.\u0275\u0275template(14,b,13,14,"div",13),i.\u0275\u0275elementEnd(),i.\u0275\u0275elementStart(15,"div")(16,"span",14),i.\u0275\u0275text(17,"\xa0"),i.\u0275\u0275elementEnd(),i.\u0275\u0275elementStart(18,"div",15)(19,"button",16),i.\u0275\u0275listener("click",function(){const ot=i.\u
10275\u0275restoreView(lt).$implicit,gt=i.\u0275\u0275nextContext();return i.\u0275\u0275resetView(gt.removeAccessControlItem(ot.id))}),i.\u0275\u0275pipe(20,"translate"),i.\u0275\u0275element(21,"i",17),i.\u0275\u0275elementEnd()()()(),i.\u0275\u0275elementContainerEnd()}if(2&Pt){const lt=xt.$implicit,Ut=i.\u0275\u0275nextContext(),ke=i.\u0275\u0275reference(1);i.\u0275\u0275advance(1),i.\u0275\u0275propertyInterpolate1("ngModelGroup","access-control-item-",lt.id,""),i.\u0275\u0275advance(3),i.\u0275\u0275propertyInterpolate1("for","accesscontroloption-",lt.id,""),i.\u0275\u0275advance(1),i.\u0275\u0275textInterpolate1(" ",i.\u0275\u0275pipeBind1(6,13,"access-control-option-label")," "),i.\u0275\u0275advance(2),i.\u0275\u0275propertyInterpolate1("id","accesscontroloption-",lt.id,"")("name","itemName-",lt.id,""),i.\u0275\u0275property("disabled",ke.disabled)("ngModel",lt.itemName),i.\u0275\u0275advance(2),i.\u0275\u0275property("ngForOf",Ut.dropdownOptions),i.\u0275\u0275advance(2),i.\u0275\u0275textInterpolate1(" ",i.\u0275\u0275pipeBind1(12,15,"access-control-option-note")," "),i.\u0275\u0275advance(2),i.\u0275\u0275property("ngIf",lt.hasStartDate),i.\u0275\u0275advance(1),i.\u0275\u0275property("ngIf",lt.hasEndDate),i.\u0275\u0275advance(5),i.\u0275\u0275property("dsBtnDisabled",ke.disabled||1===Ut.form.accessControls.length),i.\u0275\u0275attribute("aria-label",i.\u0275\u0275pipeBind1(20,17,"access-control-remove"))}}let P=(()=>{class Pt{constructor(){this.dropdownOptions=[],this.form={accessControls:[D()]},this.formDisabled=!0,this.disable=()=>{this.ngForm.form.disable(),this.formDisabled=!0},this.enable=()=>{this.ngForm.form.enable(),this.formDisabled=!1}}ngOnInit(){this.disable()}get allControlsAreEmpty(){return this.form.accessControls.every(lt=>null===lt.itemName||""===lt.itemName)}get showWarning(){return"replace"===this.mode&&this.allControlsAreEmpty&&!this.formDisabled}addAccessControlItem(lt=null){this.form.accessControls=[...this.form.accessControls,{...D(),itemName:lt}]}removeAccessControlItem(lt){this.form.accessControls=this.form.accessControls.filter(Ut=>Ut.id!==lt)}getValue(){return this.form.accessControls.filter(lt=>null!==lt.itemName&&""!==lt.itemName).map(lt=>({name:lt.itemName,startDate:lt.startDate?(0,o.iV)(lt.startDate):null,endDate:lt.endDate?(0,o.iV)(lt.endDate):null}))}reset(){this.form.accessControls=[],this.addAccessControlItem(),this.disable()}accessControlChanged(lt,Ut){const ke=this.dropdownOptions.find(ot=>ot.name===Ut);lt.startDate=null,lt.endDate=null,lt.hasStartDate=ke?.hasStartDate||!1,lt.hasEndDate=ke?.hasEndDate||!1,lt.maxStartDate=ke?.maxStartDate||null,lt.maxEndDate=ke?.maxEndDate||null}trackById(lt,Ut){return Ut.id}}return Pt.\u0275fac=function(lt){return new(lt||Pt)},Pt.\u0275cmp=i.\u0275\u0275defineComponent({type:Pt,selectors:[["ds-access-control-array-form"]],viewQuery:function(lt,Ut){if(1<&&i.\u0275\u0275viewQuery(_,7),2<){let ke;i.\u0275\u0275queryRefresh(ke=i.\u0275\u0275loadQuery())&&(Ut.ngForm=ke.first)}},inputs:{dropdownOptions:"dropdownOptions",mode:"mode",type:"type"},exportAs:["accessControlArrayForm"],decls:8,vars:8,consts:[["ngForm","ngForm"],["class","alert alert-warning",4,"ngIf"],[4,"ngFor","ngForOf","ngForTrackBy"],["type","button",1,"btn","btn-outline-primary","mt-3",3,"id","dsBtnDisabled","click"],[1,"fas","fa-plus"],[1,"alert","alert-warning"],[1,"access-control-item","mt-3",3,"ngModelGroup"],[1,"d-flex","flex-column"],[3,"for"],[1,"form-control",3,"id","disabled","ngModel","name","ngModelChange"],["value",""],[3,"value",4,"ngFor","ngForOf"],[1,"form-text","text-muted"],["class","mt-3",4,"ngIf"],["aria-hidden","true",1,"mb-2","d-inline-block"],[1,"input-group"],["type","button",1,"btn","btn-outline-danger",3,"dsBtnDisabled","click"],[1,"fas","fa-trash"],[3,"value"],[1,"mt-3"],["placeholder","yyyy-mm-dd","ngbDatepicker","","placement","top-start top-end bottom-start bottom-end",1,"form-control",3,"id","ngModel","name","maxDate","ngModelChange"],["d","ngbDatepicker"],[1,"input-group-append"],["type","button",1,"btn","btn-outline-secondary","fas","fa-calendar",3,"dsBtnDisabled","click"],["d1","ngbDatepicker"]],template:function(lt,Ut){if(1<&&(i.\u0275\u0275elementStart(0,"form",null,0),i.\u0275\u0275template(2,v,3,3,"div",1),i.\u0275\u0275template(3,M,22,19,"ng-container",2),i.\u0275\u0275elementStart(4,"button",3),i.\u0275\u0275listener("click",function(){return Ut.addAccessControlItem()}),i.\u0275\u0275element(5,"i",4),i.\u0275\u0275text(6),i.\u0275\u0275pipe(7,"translate"),i.\u0275\u0275elementEnd()()),2<){const ke=i.\u0275\u0275reference(1);i.\u0275\u0275advance(2),i.\u0275\u0275property("ngIf",Ut.showWarning),i.\u0275\u0275advance(1),i.\u0275\u0275property("ngForOf",Ut.form.accessControls)("ngForTrackBy",Ut.trackById),i.\u0275\u0275advance(1),i.\u0275\u0275propertyInterpolate1("id","add-btn-",Ut.type,""),i.\u0275\u0275property("dsBtnDisabled",ke.disabled),i.\u0275\u0275advance(2),i.\u0275\u0275textInterpolate1(" ",i.\u0275\u0275pipeBind1(7,6,"access-control-add-more")," ")}},dependencies:[d.sg,d.O5,r._Y,r.YN,r.Kr,r.Fj,r.EJ,r.JJ,r.JL,r.On,r.Mq,r.F,a.v,p.J4,h.X$,m],styles:[".access-control-item[_ngcontent-%COMP%]{display:grid;grid-template-columns:1fr 50px;grid-gap:10px;padding-bottom:15px;border-bottom:2px dotted gray}"]}),Pt})();const D=()=>({id:l(),itemName:null,startDate:null,hasStartDate:!1,maxStartDate:null,endD
1ate:null,hasEndDate:!1,maxEndDate:null}),l=()=>Math.floor(1e6*Math.random());var C=e(68301),I=e(51117),g=e(54004),B=e(95698),L=e(61135),V=e(84935),Y=e(4177),te=(e(33609),e(48532)),K=e(77467),ee=e(24702),ae=e(68285),Q=e(70714);const j=function(Pt){return{repeatable:!0,listId:Pt}};function k(Pt,xt){if(1&Pt){const lt=i.\u0275\u0275getCurrentView();i.\u0275\u0275elementStart(0,"ds-viewable-collection",10),i.\u0275\u0275listener("pageChange",function(ke){i.\u0275\u0275restoreView(lt);const ot=i.\u0275\u0275nextContext(2);return i.\u0275\u0275resetView(ot.loadForPage(ke))}),i.\u0275\u0275elementEnd()}if(2&Pt){const lt=i.\u0275\u0275nextContext().ngIf,Ut=i.\u0275\u0275nextContext();i.\u0275\u0275property("config",Ut.paginationConfig)("context",Ut.context)("objects",lt)("selectable",!0)("selectionConfig",i.\u0275\u0275pureFunction1(6,j,Ut.LIST_ID))("showPaginator",!0)}}function G(Pt,xt){1&Pt&&(i.\u0275\u0275elementStart(0,"div",11),i.\u0275\u0275text(1),i.\u0275\u0275pipe(2,"translate"),i.\u0275\u0275elementEnd()),2&Pt&&(i.\u0275\u0275advance(1),i.\u0275\u0275textInterpolate1(" ",i.\u0275\u0275pipeBind1(2,1,"access-control-select-bitstreams-modal.no-items")," "))}function ie(Pt,xt){if(1&Pt&&(i.\u0275\u0275elementContainerStart(0),i.\u0275\u0275template(1,k,1,8,"ds-viewable-collection",8),i.\u0275\u0275template(2,G,3,3,"div",9),i.\u0275\u0275elementContainerEnd()),2&Pt){const lt=xt.ngIf;i.\u0275\u0275advance(1),i.\u0275\u0275property("ngIf",lt.payload.page.length>0),i.\u0275\u0275advance(1),i.\u0275\u0275property("ngIf",lt&&0===lt.payload.page.length)}}const ne="item-access-control-select-bitstreams";let q=(()=>{class Pt{constructor(lt,Ut,ke,ot){this.bitstreamService=lt,this.paginationService=Ut,this.translateService=ke,this.activeModal=ot,this.LIST_ID=ne,this.selectedBitstreams=[],this.data$=new L.X(null),this.pageSize=5,this.context=V._.Bitstream}ngOnInit(){this.loadForPage(1),this.paginationConfig=new Y.r,this.paginationConfig.id="iacsbm",this.paginationConfig.currentPage=1,(0,ee.Uh)(this.pageSize)&&(this.paginationConfig.pageSize=this.pageSize)}loadForPage(lt){this.bitstreamService.findAllByItemAndBundleName(this.item,"ORIGINAL",{currentPage:lt},!1).pipe((0,ae.hC)()).subscribe(this.data$)}}return Pt.\u0275fac=function(lt){return new(lt||Pt)(i.\u0275\u0275directiveInject(te.J),i.\u0275\u0275directiveInject(K.N),i.\u0275\u0275directiveInject(h.sK),i.\u0275\u0275directiveInject(p.Kz))},Pt.\u0275cmp=i.\u0275\u0275defineComponent({type:Pt,selectors:[["ds-item-access-control-select-bitstreams-modal"]],inputs:{item:"item",selectedBitstreams:"selectedBitstreams"},decls:14,vars:9,consts:[[1,"modal-header"],[1,"modal-title"],["type","button","aria-label","Close",1,"close",3,"click"],["aria-hidden","true"],[1,"modal-body"],[4,"ngIf"],[1,"modal-footer"],["type","button",1,"btn","btn-outline-dark",3,"click"],[3,"config","context","objects","selectable","selectionConfig","showPaginator","pageChange",4,"ngIf"],["class","alert alert-info w-100","role","alert",4,"ngIf"],[3,"config","context","objects","selectable","selectionConfig","showPaginator","pageChange"],["role","alert",1,"alert","alert-info","w-100"]],template:function(lt,Ut){1<&&(i.\u0275\u0275elementStart(0,"div",0)(1,"h4",1),i.\u0275\u0275text(2),i.\u0275\u0275pipe(3,"translate"),i.\u0275\u0275elementEnd(),i.\u0275\u0275elementStart(4,"button",2),i.\u0275\u0275listener("click",function(){return Ut.activeModal.dismiss("Cross click")}),i.\u0275\u0275elementStart(5,"span",3),i.\u0275\u0275text(6,"\xd7"),i.\u0275\u0275elementEnd()()(),i.\u0275\u0275elementStart(7,"div",4),i.\u0275\u0275template(8,ie,3,2,"ng-container",5),i.\u0275\u0275pipe(9,"async"),i.\u0275\u0275elementEnd(),i.\u0275\u0275elementStart(10,"div",6)(11,"button",7),i.\u0275\u0275listener("click",function(){return Ut.activeModal.close("Close click")}),i.\u0275\u0275text(12),i.\u0275\u0275pipe(13,"translate"),i.\u0275\u0275elementEnd()()),2<&&(i.\u0275\u0275advance(2),i.\u0275\u0275textInterpolate1(" ",i.\u0275\u0275pipeBind1(3,3,"access-control-select-bitstreams-modal.title")," "),i.\u0275\u0275advance(6),i.\u0275\u0275property("ngIf",i.\u0275\u0275pipeBind1(9,5,Ut.data$)),i.\u0275\u0275advance(4),i.\u0275\u0275textInterpolate1(" ",i.\u0275\u0275pipeBind1(13,7,"access-control-select-bitstreams-modal.close")," "))},dependencies:[d.O5,Q.c,d.Ov,h.X$]}),Pt})();var It,oe=e(70655),ce=e(43015),ye=e(58943),Me=e(93498),Ee=e(31241),Ae=e(69627),Je=e(21147),_t=e(73692);let it=((It=class extends Ae.o{constructor(xt,lt,Ut,ke){super("bulkaccessconditionoptions",xt,lt,Ut,ke),this.requestService=xt,this.rdbService=lt,this.objectCache=Ut,this.halService=ke}}).\u0275fac=function(xt){return new(xt||It)(i.\u0275\u0275inject(Ee.s),i.\u0275\u0275inject(ce.Q),i.\u0275\u0275inject(ye.a),i.\u0275\u0275inject(Me.q))},It.\u0275prov=i.\u0275\u0275defineInjectable({token:It,factory:It.\u0275fac,providedIn:"root"}),It);
1it=(0,oe.__decorate)([(0,Je.cQ)(_t.l9),(0,oe.__metadata)("design:paramtypes",[Ee.s,ce.Q,ye.a,Me.q])],it);var Be=e(92849),pt=e(38605),Mt=e(48568);const Yt=["bitstreamAccessCmp"],nt=["itemAccessCmp"];function mt(Pt,xt){if(1&Pt&&i.\u0275\u0275element(0,"ds-alert",29),2&Pt){const lt=i.\u0275\u0275nextContext();i.\u0275\u0275property("type",lt.AlertType.Info)("content",lt.titleMessage)}}function en(Pt,xt){if(1&Pt){const lt=i.\u0275\u0275getCurrentView();i.\u0275\u0275elementStart(0,"button",37),i.\u0275\u0275listener("click",function(){i.\u0275\u0275restoreView(lt);const ke=i.\u0275\u0275nextContext(2);return i.\u0275\u0275resetView(ke.openSelectBitstreamsModal(ke.itemRD.payload))}),i.\u0275\u0275pipe(1,"translate"),i.\u0275\u0275element(2,"i",38),i.\u0275\u0275elementEnd()}if(2&Pt){const lt=i.\u0275\u0275nextContext(2);i.\u0275\u0275property("dsBtnDisabled",!lt.state.bitstream.toggleStatus||"selected"!==lt.state.bitstream.changesLimit),i.\u0275\u0275attribute("aria-label",i.\u0275\u0275pipeBind1(1,2,"access-control-bitstreams-select"))}}function pn(Pt,xt){if(1&Pt){const lt=i.\u0275\u0275getCurrentView();i.\u0275\u0275elementStart(0,"div",9)(1,"fieldset",30)(2,"legend",31),i.\u0275\u0275text(3),i.\u0275\u0275pipe(4,"translate"),i.\u0275\u0275elementEnd(),i.\u0275\u0275elementStart(5,"div",12)(6,"input",32),i.\u0275\u0275listener("ngModelChange",function(ke){i.\u0275\u0275restoreView(lt);const ot=i.\u0275\u0275nextContext();return i.\u0275\u0275resetView(ot.state.bitstream.changesLimit=ke)}),i.\u0275\u0275elementEnd(),i.\u0275\u0275elementStart(7,"label",33),i.\u0275\u0275text(8),i.\u0275\u0275pipe(9,"translate"),i.\u0275\u0275elementEnd()(),i.\u0275\u0275elementStart(10,"div",12)(11,"input",34),i.\u0275\u0275listener("ngModelChange",function(ke){i.\u0275\u0275restoreView(lt);const ot=i.\u0275\u0275nextContext();return i.\u0275\u0275resetView(ot.state.bitstream.changesLimit=ke)}),i.\u0275\u0275elementEnd(),i.\u0275\u0275elementStart(12,"label",35),i.\u0275\u0275text(13),i.\u0275\u0275pipe(14,"translate"),i.\u0275\u0275template(15,en,3,4,"button",36),i.\u0275\u0275elementEnd()()()()}if(2&Pt){const lt=i.\u0275\u0275nextContext();i.\u0275\u0275advance(3),i.\u0275\u0275textInterpolate1(" ",i.\u0275\u0275pipeBind1(4,9,"access-control-limit-to-specific")," "),i.\u0275\u0275advance(3),i.\u0275\u0275property("disabled",!lt.state.bitstream.toggleStatus)("ngModel",lt.state.bitstream.changesLimit),i.\u0275\u0275advance(2),i.\u0275\u0275textInterpolate1(" ",i.\u0275\u0275pipeBind1(9,11,"access-control-process-all-bitstreams")," "),i.\u0275\u0275advance(3),i.\u0275\u0275property("disabled",!lt.state.bitstream.toggleStatus)("ngModel",lt.state.bitstream.changesLimit),i.\u0275\u0275advance(2),i.\u0275\u0275textInterpolate2(" ",lt.state.bitstream.selectedBitstreams.length," ",i.\u0275\u0275pipeBind1(14,13,"access-control-bitstreams-selected")," "),i.\u0275\u0275advance(2),i.\u0275\u0275property("ngIf",lt.itemRD)}}function tt(Pt,xt){1&Pt&&i.\u0275\u0275element(0,"hr")}function Tt(Pt,xt){if(1&Pt){const lt=i.\u0275\u0275getCurrentView();i.\u0275\u0275elementStart(0,"div",39)(1,"button",40),i.\u0275\u0275listener("click",function(){i.\u0275\u0275restoreView(lt);const ke=i.\u0275\u0275nextContext();return i.\u0275\u0275resetView(ke.reset())}),i.\u0275\u0275text(2),i.\u0275\u0275pipe(3,"translate"),i.\u0275\u0275elementEnd(),i.\u0275\u0275elementStart(4,"button",41),i.\u0275\u0275listener("click",function(){i.\u0275\u0275restoreView(lt);const ke=i.\u0275\u0275nextContext();return i.\u0275\u0275resetView(ke.submit())}),i.\u0275\u0275text(5),i.\u0275\u0275pipe(6,"translate"),i.\u0275\u0275elementEnd()()}if(2&Pt){const lt=i.\u0275\u0275nextContext();i.\u0275\u0275advance(2),i.\u0275\u0275textInterpolate1(" ",i.\u0275\u0275pipeBind1(3,3,"access-control-cancel")," "),i.\u0275\u0275advance(2),i.\u0275\u0275property("dsBtnDisabled",!lt.state.item.toggleStatus&&!lt.state.bitstream.toggleStatus),i.\u0275\u0275advance(1),i.\u0275\u0275textInterpolate1(" ",i.\u0275\u0275pipeBind1(6,5,"access-control-execute")," ")}}const At=function(){return[]};let Rt=(()=>{class Pt{constructor(lt,Ut,ke,ot,gt){this.bulkAccessConfigService=lt,this.bulkAccessControlService=Ut,this.selectableListService=ke,this.modalService=ot,this.cdr=gt,this.showLimitToSpecificBitstreams=!1,this.titleMessage="",this.showSubmit=!0,this.AlertType=Be.N,this.state={item:{toggleStatus:!1,accessMode:"replace"},bitstream:{toggleStatus:!1,accessMode:"replace",changesLimit:"all",selectedBitstreams:[]}},this.dropdownData$=this.bulkAccessConfigService.findByName("default").pipe((0,ae.hC)(),(0,g.U)(zt=>zt.hasSucceeded?zt.payload:null),(0,t.d)(1))}getFormValue(){return console.log({bitstream:this.bitstreamAccessCmp.getValue(),item:this.itemAccessCmp.getValue(),state:this.state}),{bitstream:this.bitstreamAccessCmp.getValue(),item:this.itemAccessCmp.getValue(),state:this.state}}reset(){this.bitstreamAccessCmp.reset(),this.itemAccessCmp.reset(),this.state={item:{toggleStatus:!1,accessMode:"replace"},bitstream:{toggleStatus:!1,accessMode:"replace",changesLimit:"all",selectedBitstreams:[]}}}submit(){const lt=this.bitstreamAccessCmp.getValue(),Ut=this.itemAccessCmp.getValue(),{file:ke}=this.bulkAccessControlService.createPayloadFile({bitstreamAccess:lt,itemAccess:Ut,state:this.state});this.bulkAccessControlService.executeScript([this.itemRD.payload.uuid],ke).pipe((0,B.q)(1)).subscribe(ot=>{console.log("success",ot)})}handleStatusChange(lt,Ut){"bitstream"===lt?Ut?this.bitstreamAccessCmp.enable():this.bitstreamAccessCmp.disable():"item"===lt&&(Ut?this.itemAccessCmp.enable():this.itemAccessCmp.disable())}openSelectBitstreamsModal(lt){const Ut=this.modalService.open(q);Ut.componentInstance.selectedBitstreams=this.state.bitstream.selectedBitstreams,Ut.componentInstance.item=lt,Ut.closed.pipe((0,n.b)(()=>this.selectableListService.getSelectableList(ne)),(0,B.q)(1)).subscribe(ke=>{this.state.bitstream.selectedBitstreams=ke?.selection||[],this.cdr.detectChanges()})}ngOnDestroy(){this.selectableListService.deselectAll(ne)}}return Pt.\u0275fac=function(lt){return new(lt||Pt)(i.\u0275\u0275directiveInject(it),i.\u0275\u0275directiveInject(C.h),i.\u0275\u0275directiveInject(I.w),i.\u0275\u0275directiveInject(p.FF),i.\u0275\u0275directiveInject(i.ChangeDetectorRef))},Pt.\u0275cmp=i.\u0275\u0275defineComponent({type:Pt,selectors:[["ds-access-control-form-container"]],viewQuery:function(lt,Ut){if(1<&&(i.\u0275\u0275viewQuery(Yt,7),i.\u0275\u0275viewQuery(nt,7)),2<){let ke;i.\u0275\u0275queryRefresh(ke=i.\u0275\u0275loadQuery())&&(Ut.bitstreamAccessCmp=ke.first),i.\u0275\u0275queryRefresh(ke=i.\u0275\u0275loadQuery())&&(Ut.itemAccessCmp=ke.first)}},inputs:{showLimitToSpecificBitstreams:"showLimitToSpecificBitstreams",titleMessage:"titleMessage",itemRD:"itemRD",showSubmit:"showSubmit"},exportAs:["dsAccessControlForm"],decls:68,vars:62,consts:[[1,"container"],[1,"card","border-0"],[1,"card-body"],["class","d-block pb-3",3,"type","content",4,"ngIf"],[1,"row"],[1,"col-12","col-md-6","border-right","d-flex","flex-column","justify-content-between"],[1,"d-flex","align-items-center"],[1,"h3","mb-0","mr-4"],[3,"ariaLabel","ngModel","ngModelChange"],[1,"row","mt-3"],[1,"h4","col-12","col-md-3"],[1,"col-12","col-md-8"],[1,"form-check"],["type","radio","name","itemMode","id","itemReplace","value","replace",1,"form-check-input",3,"disabled","ngModel","ngModelChange"],["for","itemReplace",1,"form-check-label"],["type","radio","name","itemMode","id","itemAdd","value","add",1,"form-check-input",3,"disabled","ngModel","ngModelChange"],["for","itemAdd",1,"form-check-label"],[1,"h4","mt-3"],[3,"type","mode","dropdownOptions"],["itemAccessCmp",""],[1,"col-12","col-md-6","d-flex","flex-column","justify-content-between"],["class","row mt-3",4,"ngIf"],["type","radio","name","bitstreamMode","id","bitstreamReplace","value","replace",1,"form-check-input",3,"disabled","ngModel","ngModelChange"],["for","bitstreamReplace",1,"form-check-label"],["type","radio","name","bitstreamMode","id","bitstreamAdd","value","add",1,"form-check-input",3,"disabled","ngModel","ngModelChange"],["for","bitstreamAdd",1,"form-check-label"],["bitstreamAccessCmp",""],[4,"ngIf"],["class","d-flex justify-content-end",4,"ngIf"],[1,"d-block","pb-3",3,"type","content"],[1,"col-12"],[1,"h4"],["type","radio","name","changesLimit","id","processAll","value","all",1,"form-check-input",3,"disabled","ngModel","ngModelChange"],["for","processAll",1,"form-check-label"],["type","radio","name","changesLimit","id","processSelected","value","selected",1,"form-check-input","mt-2",3,"disabled","ngModel","ngModelChange"],["for","processSelected",1,"form-check-label"],["class","btn btn-outline-dark border-0","type","button",3,"dsBtnDisabled","click",4,"ngIf"],["type","button",1,"btn","btn-outline-dark","border-0",3,"dsBtnDisabled","click"],[1,"fa","fa-search"],[1,"d-flex","justify-content-end"],["type","button",1,"btn","btn-outline-primary","mr-3",3,"click"],["type","submit",1,"btn","btn-primary",3,"dsBtnDisabled","click"]],template:function(lt,Ut){if(1<&&(i.\u0275\u0275elementStart(0,"div",0)(1,"div",1)(2,"div",2),i.\u0275\u0275template(3,mt,1,2,"ds-alert",3),i.\u0275\u0275elementStart(4,"div",4)(5,"div",5)(6,"div")(7,"div",6)(8,"h2",7),i.\u0275\u0275text(9),i.\u0275\u0275pipe(10,"translate"),i.\u0275\u0275elementEnd(),i.\u0275\u0275elementStart(11,"ui-switch",8),i.\u0275\u0275listener("ngModelChange",function(ot){return Ut.state.item.toggleStatus=ot})("ngModelChange",function(ot){return Ut.handleStatusChange("item",ot)}),i.\u0275\u0275pipe(12,"translate"),i.\u0275\u0275elementEnd()(),i.\u0275\u0275elementStart(13,"fieldset",9)(14,"legend",10),i.\u0275\u0275text(15),i.\u0275\u0275pipe(16,"translate"),i.\u0275\u0275elementEnd(),i.\u0275\u0275elementStart(17,"div",11)(18,"div",12)(19,"input",13),i.\u0275\u0275listener("ngModelChange",function(ot){return Ut.state.item.accessMode=ot}),i.\u0275\u0275elementEnd(),i.\u0275\u0275elementStart(20,"label",14),i.\u0275\u0275text(2
11),i.\u0275\u0275pipe(22,"translate"),i.\u0275\u0275elementEnd()(),i.\u0275\u0275elementStart(23,"div",12)(24,"input",15),i.\u0275\u0275listener("ngModelChange",function(ot){return Ut.state.item.accessMode=ot}),i.\u0275\u0275elementEnd(),i.\u0275\u0275elementStart(25,"label",16),i.\u0275\u0275text(26),i.\u0275\u0275pipe(27,"translate"),i.\u0275\u0275elementEnd()()()()(),i.\u0275\u0275elementStart(28,"div")(29,"h3",17),i.\u0275\u0275text(30),i.\u0275\u0275pipe(31,"translate"),i.\u0275\u0275elementEnd(),i.\u0275\u0275element(32,"ds-access-control-array-form",18,19),i.\u0275\u0275pipe(34,"async"),i.\u0275\u0275elementEnd()(),i.\u0275\u0275elementStart(35,"div",20)(36,"div")(37,"div",6)(38,"h2",7),i.\u0275\u0275text(39),i.\u0275\u0275pipe(40,"translate"),i.\u0275\u0275elementEnd(),i.\u0275\u0275elementStart(41,"ui-switch",8),i.\u0275\u0275listener("ngModelChange",function(ot){return Ut.state.bitstream.toggleStatus=ot})("ngModelChange",function(ot){return Ut.handleStatusChange("bitstream",ot)}),i.\u0275\u0275pipe(42,"translate"),i.\u0275\u0275elementEnd()(),i.\u0275\u0275template(43,pn,16,15,"div",21),i.\u0275\u0275elementEnd(),i.\u0275\u0275elementStart(44,"fieldset",9)(45,"legend",10),i.\u0275\u0275text(46),i.\u0275\u0275pipe(47,"translate"),i.\u0275\u0275elementEnd(),i.\u0275\u0275elementStart(48,"div",11)(49,"div",12)(50,"input",22),i.\u0275\u0275listener("ngModelChange",function(ot){return Ut.state.bitstream.accessMode=ot}),i.\u0275\u0275elementEnd(),i.\u0275\u0275elementStart(51,"label",23),i.\u0275\u0275text(52),i.\u0275\u0275pipe(53,"translate"),i.\u0275\u0275elementEnd()(),i.\u0275\u0275elementStart(54,"div",12)(55,"input",24),i.\u0275\u0275listener("ngModelChange",function(ot){return Ut.state.bitstream.accessMode=ot}),i.\u0275\u0275elementEnd(),i.\u0275\u0275elementStart(56,"label",25),i.\u0275\u0275text(57),i.\u0275\u0275pipe(58,"translate"),i.\u0275\u0275elementEnd()()()(),i.\u0275\u0275elementStart(59,"div")(60,"h3",17),i.\u0275\u0275text(61),i.\u0275\u0275pipe(62,"translate"),i.\u0275\u0275elementEnd(),i.\u0275\u0275element(63,"ds-access-control-array-form",18,26),i.\u0275\u0275pipe(65,"async"),i.\u0275\u0275elementEnd()()(),i.\u0275\u0275template(66,tt,1,0,"hr",27),i.\u0275\u0275template(67,Tt,7,7,"div",28),i.\u0275\u0275elementEnd()()()),2<){let ke,ot;i.\u0275\u0275advance(3),i.\u0275\u0275property("ngIf",Ut.titleMessage),i.\u0275\u0275advance(6),i.\u0275\u0275textInterpolate1(" ",i.\u0275\u0275pipeBind1(10,32,"access-control-item-header-toggle")," "),i.\u0275\u0275advance(2),i.\u0275\u0275property("ariaLabel",i.\u0275\u0275pipeBind1(12,34,Ut.state.bitstream.toggleStatus?"access-control-item-toggle.disable":"access-control-item-toggle.enable"))("ngModel",Ut.state.item.toggleStatus),i.\u0275\u0275advance(4),i.\u0275\u0275textInterpolate1(" ",i.\u0275\u0275pipeBind1(16,36,"access-control-mode")," "),i.\u0275\u0275advance(4),i.\u0275\u0275property("disabled",!Ut.state.item.toggleStatus)("ngModel",Ut.state.item.accessMode),i.\u0275\u0275advance(2),i.\u0275\u0275textInterpolate1(" ",i.\u0275\u0275pipeBind1(22,38,"access-control-replace-all")," "),i.\u0275\u0275advance(3),i.\u0275\u0275property("disabled",!Ut.state.item.toggleStatus)("ngModel",Ut.state.item.accessMode),i.\u0275\u0275advance(2),i.\u0275\u0275textInterpolate1(" ",i.\u0275\u0275pipeBind1(27,40,"access-control-add-to-existing")," "),i.\u0275\u0275advance(4),i.\u0275\u0275textInterpolate(i.\u0275\u0275pipeBind1(31,42,"access-control-access-conditions")),i.\u0275\u0275advance(2),i.\u0275\u0275property("type","item")("mode",Ut.state.item.accessMode)("dropdownOptions",(null==(ke=i.\u0275\u0275pipeBind1(34,44,Ut.dropdownData$))?null:ke.itemAccessConditionOptions)||i.\u0275\u0275pureFunction0(60,At)),i.\u0275\u0275advance(7),i.\u0275\u0275textInterpolate1(" ",i.\u0275\u0275pipeBind1(40,46,"access-control-bitstream-header-toggle")," "),i.\u0275\u0275advance(2),i.\u0275\u0275property("ariaLabel",i.\u0275\u0275pipeBind1(42,48,Ut.state.bitstream.toggleStatus?"access-control-bitstream-toggle.disable":"access-control-bitstream-toggle.enable"))("ngModel",Ut.state.bitstream.toggleStatus),i.\u0275\u0275advance(2),i.\u0275\u0275property("ngIf",Ut.showLimitToSpecificBitstreams),i.\u0275\u0275advance(3),i.\u0275\u0275textInterpolate1(" ",i.\u0275\u0275pipeBind1(47,50,"access-control-mode")," "),i.\u0275\u0275advance(4),i.\u0275\u0275property("disabled",!Ut.state.bitstream.toggleStatus)("ngModel",Ut.state.bitstream.accessMode),i.\u0275\u0275advance(2),i.\u0275\u0275textInterpolate1(" ",i.\u0275\u0275pipeBind1(53,52,"access-control-replace-all")," "),i.\u0275\u0275advance(3),i.\u0275\u0275property("disabled",!Ut.state.bitstream.toggleStatus)("ngModel",Ut.state.bitstream.accessMode),i.\u0275\u0275advance(2),i.\u0275\u0275textInterpolate1(" ",i.\u0275\u0275pipeBind1(58,54,"access-control-add-to-existing")," "),i.\u0275\u0275advance(4),i.\u0275\u0275textInterpolate(i.\u0275\u0275pipeBind1(62,56,"access-control-access-conditions")),i.\u0275\u0275advance(2),i.\u0275\u0275property("type","bitstream")("mode",Ut.state.bitstream.accessMode)("dropdownOptions",(null==(ot=i.\u0275\u0275pipeBind1(65,58,Ut.dropdownData$))?null:ot.bitstreamAccessConditionOptions)||i.\u0275\u0275pureFunction0(61,At)),i.\u0275\u0275advance(3),i.\u0275\u0275property("ngIf",Ut.showSubmit),i.\u0275\u0275advance(1),i.\u0275\u0275property("ngIf",Ut.showSubmit)}},dependencies:[d.O5,r.Fj,r._,r.JJ,r.On,pt.w,a.v,Mt.o,P,d.Ov,h.X$]}),Pt})()},68301:(R,c,e)=>{"use strict";e.d(c,{h:()=>m});var t=e(54004),n=e(47556),o=e(68285),i=e(24702),d=e(96482),r=e(46418),a=e(94650),p=e(34793),h=e(89383);let m=(()=>{class v{constructor(O,b,M,P){this.notificationsService=O,this.router=b,this.scriptService=M,this.translationService=P}createPayloadFile(O){const b=_(O),M=new Blob([JSON.stringify(b,null,2)],{type:"application/json"}),P=new File([M],"data.json",{type:"application/json"});return{url:URL.createObjectURL(P),file:P}}executeScript(O,b){console.log("execute",{uuids:O,file:b});const M=[{name:"-f",value:b.name}];return O.forEach(P=>{M.push({name:"-u",value:P})}),this.scriptService.invoke("bulk-access-control",M,[b]).pipe((0,o.hC)(),(0,t.U)(P=>{if(P.hasSucceeded){const D=this.translationService.get("process.new.notification.success.title"),l=this.translationService.get("process.new.notification.success.content");return this.notificationsService.success(D,l),(0,i.UE)(P.payload)&&this.router.navigateByUrl((0,d.Ah)(P.payload.processId)),!0}{const D=this.translationService.get("process.new.notification.error.title"),l=this.translationService.get("process.new.notification.error.content");return this.notificationsService.error(D,l),!1}}))}}return v.\u0275fac=function(O){return new(O||v)(a.\u0275\u0275inject(r.T),a.\u0275\u0275inject(p.F0),a.\u0275\u0275inject(n.UY),a.\u0275\u0275inject(h.sK))},v.\u0275prov=a.\u0275\u0275defineInjectable({token:v,factory:v.\u0275fac,providedIn:"root"}),v})();const _=v=>{let E={};const b=v.state.bitstream.toggleStatus;if(v.state.item.toggleStatus&&(E.item={mode:v.state.item.accessMode,accessConditions:v.itemAccess}),b){const M={uuid:[]};b&&"selected"===v.state.bitstream.changesLimit&&(M.uuid=v.state.bitstream.selectedBitstreams.map(P=>P.id)),E.bitstream={constraints:M,mode:v.state.bitstream.accessMode,accessConditions:v.bitstreamAccess}}return E}},92849:(R,c,e)=>{"use strict";e.d(c,{N:()=>t});var t=(()=>{return(n=t||(t={})).Success="alert-success",n.Error="alert-danger",n.Info="alert-info",n.Warning="alert-warning",t;var n})()},38605:(R,c,e)=>{"use strict";e.d(c,{w:()=>m});var t=e(94650),n=e(37340),o=e(28652),i=e(36895),d=e(89383);function r(_,v){if(1&_&&(t.\u0275\u0275element(0,"span",4),t.\u0275\u0275pipe(1,"translate")),2&_){const E=t.\u0275\u0275nextContext(2);t.\u0275\u0275property("innerHTML",t.\u0275\u0275pipeBind1(1,1,E.content),t.\u0275\u0275sanitizeHtml)}}function a(_,v){if(1&_){const E=t.\u0275\u0275getCurrentView();t.\u0275\u0275elementStart(0,"button",5),t.\u0275\u0275listener("click",function(){t.\u0275\u0275restoreView(E);const b=t.\u0275\u0275nextContext(2);
1return t.\u0275\u0275resetView(b.dismiss())}),t.\u0275\u0275elementStart(1,"span",6),t.\u0275\u0275text(2,"\xd7"),t.\u0275\u0275elementEnd()()}}function p(_,v){if(1&_&&(t.\u0275\u0275elementStart(0,"div",1),t.\u0275\u0275template(1,r,2,3,"span",2),t.\u0275\u0275projection(2),t.\u0275\u0275template(3,a,3,0,"button",3),t.\u0275\u0275elementEnd()),2&_){const E=t.\u0275\u0275nextContext();t.\u0275\u0275classMapInterpolate1("alert ",E.type," alert-dismissible fade show w-100 p-3"),t.\u0275\u0275property("@enterLeave",E.animate),t.\u0275\u0275advance(1),t.\u0275\u0275property("ngIf",E.content),t.\u0275\u0275advance(2),t.\u0275\u0275property("ngIf",E.dismissible)}}const h=["*"];let m=(()=>{class _{constructor(E){this.cdr=E,this.dismissible=!1,this.close=new t.EventEmitter,this.animate="fadeIn",this.dismissed=!1}dismiss(){this.dismissible&&(this.animate="fadeOut",this.cdr.detectChanges(),setTimeout(()=>{this.dismissed=!0,this.close.emit(),this.cdr.detectChanges()},300))}}return _.\u0275fac=function(E){return new(E||_)(t.\u0275\u0275directiveInject(t.ChangeDetectorRef))},_.\u0275cmp=t.\u0275\u0275defineComponent({type:_,selectors:[["ds-alert"]],inputs:{content:"content",dismissible:"dismissible",type:"type"},outputs:{close:"close"},ngContentSelectors:h,decls:1,vars:1,consts:[["role","alert",3,"class",4,"ngIf"],["role","alert"],[3,"innerHTML",4,"ngIf"],["type","button","class","close","data-dismiss","alert","aria-label","Close",3,"click",4,"ngIf"],[3,"innerHTML"],["type","button","data-dismiss","alert","aria-label","Close",1,"close",3,"click"],["aria-hidden","true"]],template:function(E,O){1&E&&(t.\u0275\u0275projectionDef(),t.\u0275\u0275template(0,p,4,6,"div",0)),2&E&&t.\u0275\u0275property("ngIf",!O.dismissed)},dependencies:[i.O5,d.X$],styles:[".close{opacity:.75}.close:focus{outline:none!important}button.close{opacity:.6}\n"],encapsulation:2,data:{animation:[(0,n.X$)("enterLeave",[o.Ij,o.gm])]}}),_})()},28652:(R,c,e)=>{"use strict";e.d(c,{Ic:()=>m,Ij:()=>r,Ji:()=>p,U6:()=>h,Vr:()=>o,eP:()=>n,gm:()=>d});var t=e(37340);const n=(0,t.SB)("fadeIn",(0,t.oB)({opacity:1})),o=(0,t.eR)("* => fadeIn",[(0,t.oB)({opacity:0}),(0,t.jt)(300,(0,t.oB)({opacity:1}))]),i=(0,t.eR)(":enter",[(0,t.oB)({opacity:0}),(0,t.jt)(300,(0,t.oB)({opacity:1}))]),d=(0,t.SB)("fadeOut",(0,t.oB)({opacity:0})),r=(0,t.eR)("fadeIn => fadeOut",[(0,t.oB)({opacity:1}),(0,t.jt)(400,(0,t.oB)({opacity:0}))]),a=(0,t.eR)(":leave",[(0,t.oB)({opacity:0}),(0,t.jt)(300,(0,t.oB)({opacity:1}))]),p=(0,t.X$)("fadeIn",[i]),h=(0,t.X$)("fadeOut",[a]),m=(0,t.X$)("fadeInOut",[i,a])},10299:(R,c,e)=>{"use strict";e.d(c,{X:()=>n});var t=e(37340);const n=(0,t.X$)("focusShadow",[(0,t.SB)("focus",(0,t.oB)({boxShadow:"rgba(119, 119, 119, 0.6) 0px 0px 6px"})),(0,t.SB)("blur",(0,t.oB)({boxShadow:"none"})),(0,t.eR)("focus <=> blur",[(0,t.jt)("250ms")])]);(0,t.X$)("focusBackground",[(0,t.SB)("focus",(0,t.oB)({backgroundColor:"rgba(119, 119, 119, 0.1)"})),(0,t.SB)("blur",(0,t.oB)({backgroundColor:"transparent"})),(0,t.eR)("focus <=> blur",[(0,t.jt)("250ms")])])},76193:(R,c,e)=>{"use strict";e.d(c,{z:()=>n});var t=e(37340);const n=(0,t.X$)("pushInOut",[(0,t.SB)("expanded",(0,t.oB)({left:"100%"})),(0,t.SB)("collapsed",(0,t.oB)({left:0})),(0,t.eR)("expanded <=> collapsed",(0,t.jt)(250))])},13865:(R,c,e)=>{"use strict";e.d(c,{U1:()=>_,W7:()=>n,Y0:()=>d,pt:()=>o,un:()=>i});var t=e(37340);const n=(0,t.SB)("rotateIn",(0,t.oB)({opacity:1,transform:"rotate(0deg)"})),o=(0,t.eR)("* => rotateIn",[(0,t.oB)({opacity:0,transform:"rotate(5deg)"}),(0,t.jt)("400ms ease-in-out")]),i=(0,t.SB)("rotateOut",(0,t.oB)({opacity:0,transform:"rotate(5deg)"})),d=(0,t.eR)("rotateIn => rotateOut",[(0,t.oB)({opacity:1,transform:"rotate(0deg)"}),(0,t.jt)("400ms ease-in-out")]),_=((0,t.X$)("rotateIn",[o]),(0,t.X$)("rotateOut",[d]),(0,t.X$)("rotateInOut",[o,d]),(0,t.X$)("rotate",[(0,t.SB)("expanded",(0,t.oB)({transform:"rotate(90deg)"})),(0,t.SB)("collapsed",(0,t.oB)({transform:"rotate(0deg)"})),(0,t.eR)("expanded <=> collapsed",[(0,t.jt)("200ms")])]))},41672:(R,c,e)=>{"use strict";e.d(c,{DE:()=>o,Fc:()=>v,JD:()=>n,WP:()=>E,t6:()=>_});var t=e(37340);const n=(0,t.X$)("slide",[(0,t.SB)("expanded",(0,t.oB)({height:"*"})),(0,t.SB)("collapsed",(0,t.oB)({height:0})),(0,t.SB)("void",(0,t.oB)({height:0})),(0,t.SB)("*",(0,t.oB)({height:"*"})),(0,t.eR)(":enter",[(0,t.jt)("200ms")]),(0,t.eR)(":leave",[(0,t.jt)("200ms")]),(0,t.eR)("expanded <=> collapsed",(0,t.jt)(250))]),o=(0,t.X$)("slideMobileNav",[(0,t.SB)("expanded",(0,t.oB)({height:"*",minHeight:"*"})),(0,t.SB)("collapsed",(0,t.oB)({height:0,minHeight:0})),(0,t.eR)("expanded <=> collapsed",(0,t.jt)("300ms"))]),i=(0,t.oB)({maxWidth:"{{collapsedWidth}}"}),d=(0,t.oB)({maxWidth:"{{expandedWidth}}"}),r=(0,t.oB)({paddingLeft:"{{collapsedWidth}}"}),a=(0,t.oB)({paddingLeft:"{{expandedWidth}}"}),p=(0,t.oB)({paddingLeft:"0"}),h={params:{collapsedWidth:"*",expandedWidth:"*"}},m="300ms ease-in-out",_=(0,t.X$)("slideSidebar",[(0,t.SB)("collapsed",i,h),(0,t.SB)("expanded",d,h),(0,t.eR)("expanded => collapsed",(0,t.jt)(m,i)),(0,t.eR)("collapsed => expanded",(0,t.jt)(m,d))]),v=(0,t.X$)("slideSidebarPadding",[(0,t.SB)("hidden",p),(0,t.SB)("unpinned",r,h),(0,t.SB)("pinned",a,h),(0,t.eR)("hidden <=> unpinned",(0,t.jt)(m)),(0,t.eR)("hidden <=> pinned",(0,t.jt)(m)),(0,t.eR)("unpinned <=> pinned",(0,t.jt)(m))]),E=(0,t.X$)("toggleAnimation",[(0,t.SB)("collapsed",(0,t.oB)({width:"0",o
1pacity:"0"})),(0,t.SB)("expanded",(0,t.oB)({width:"250px",opacity:"1"})),(0,t.eR)("* => collapsed",(0,t.ru)([(0,t.jt)("300ms ease-in-out",(0,t.oB)({width:"30px"})),(0,t.jt)("300ms ease-in",(0,t.oB)({opacity:"0"}))])),(0,t.eR)("* => expanded",(0,t.ru)([(0,t.jt)("300ms ease-out",(0,t.oB)({opacity:"1"})),(0,t.jt)("300ms ease-in-out",(0,t.oB)({width:"250px"}))]))])},59492:(R,c,e)=>{"use strict";e.r(c),e.d(c,{AuthNavMenuComponent:()=>Y});var t=e(39646),n=e(39300),o=e(54004),i=e(89653),d=e(28652),r=e(958),a=e(27239),p=e(24702),h=e(19168),m=e(24755),_=e(94650),v=e(36895),E=e(9769),O=e(34793),b=e(48946),M=e(50579),P=e(89383),D=e(73579);const l=function(X){return{"pl-3 pr-3":X}};function C(X,te){if(1&X&&(_.\u0275\u0275elementStart(0,"div",5),_.\u0275\u0275listener("click",function(ee){return ee.stopPropagation()}),_.\u0275\u0275elementStart(1,"div",6,7)(3,"a",8),_.\u0275\u0275listener("click",function(ee){return ee.preventDefault()}),_.\u0275\u0275pipe(4,"translate"),_.\u0275\u0275pipe(5,"dsBrowserOnly"),_.\u0275\u0275text(6),_.\u0275\u0275pipe(7,"translate"),_.\u0275\u0275elementEnd(),_.\u0275\u0275elementStart(8,"div",9),_.\u0275\u0275pipe(9,"async"),_.\u0275\u0275pipe(10,"translate"),_.\u0275\u0275element(11,"ds-themed-log-in",10),_.\u0275\u0275elementEnd()()()),2&X){const K=_.\u0275\u0275reference(2),ee=_.\u0275\u0275nextContext(2);_.\u0275\u0275advance(1),_.\u0275\u0275property("@fadeInOut",void 0),_.\u0275\u0275advance(2),_.\u0275\u0275attribute("aria-label",_.\u0275\u0275pipeBind1(4,8,"nav.login"))("data-test",_.\u0275\u0275pipeBind1(5,10,"login-menu"))("aria-expanded",K.isOpen()),_.\u0275\u0275advance(3),_.\u0275\u0275textInterpolate(_.\u0275\u0275pipeBind1(7,12,"nav.login")),_.\u0275\u0275advance(2),_.\u0275\u0275property("ngClass",_.\u0275\u0275pureFunction1(18,l,_.\u0275\u0275pipeBind1(9,14,ee.loading))),_.\u0275\u0275attribute("aria-label",_.\u0275\u0275pipeBind1(10,16,"nav.login")),_.\u0275\u0275advance(3),_.\u0275\u0275property("isStandalonePage",!1)}}function I(X,te){1&X&&(_.\u0275\u0275elementStart(0,"div",11)(1,"div",6)(2,"a",12),_.\u0275\u0275listener("click",function(ee){return ee.preventDefault()}),_.\u0275\u0275pipe(3,"translate"),_.\u0275\u0275pipe(4,"translate"),_.\u0275\u0275pipe(5,"dsBrowserOnly"),_.\u0275\u0275element(6,"i",13),_.\u0275\u0275elementEnd(),_.\u0275\u0275elementStart(7,"div",14),_.\u0275\u0275element(8,"ds-themed-user-menu",15),_.\u0275\u0275elementEnd()()()),2&X&&(_.\u0275\u0275advance(1),_.\u0275\u0275property("@fadeInOut",void 0),_.\u0275\u0275advance(1),_.\u0275\u0275property("title",_.\u0275\u0275pipeBind1(4,7,"nav.user-profile-menu-and-logout")),_.\u0275\u0275attribute("aria-label",_.\u0275\u0275pipeBind1(3,5,"nav.user-profile-menu-and-logout"))("data-test",_.\u0275\u0275pipeBind1(5,9,"user-menu")),_.\u0275\u0275advance(6),_.\u0275\u0275property("inExpandableNavbar",!1))}function g(X,te){if(1&X&&(_.\u0275\u0275elementStart(0,"div",2),_.\u0275\u0275template(1,C,12,20,"div",3),_.\u0275\u0275pipe(2,"async"),_.\u0275\u0275pipe(3,"async"),_.\u0275\u0275template(4,I,9,11,"div",4),_.\u0275\u0275pipe(5,"async"),_.\u0275\u0275pipe(6,"async"),_.\u0275\u0275elementEnd()),2&X){const K=_.\u0275\u0275nextContext();_.\u0275\u0275advance(1),_.\u0275\u0275property("ngIf",!_.\u0275\u0275pipeBind1(2,2,K.isAuthenticated)&&_.\u0275\u0275pipeBind1(3,4,K.showAuth)),_.\u0275\u0275advance(3),_.\u0275\u0275property("ngIf",_.\u0275\u0275pipeBind1(5,6,K.isAuthenticated)&&_.\u0275\u0275pipeBind1(6,8,K.showAuth))}}function B(X,te){1&X&&(_.\u0275\u0275elementStart(0,"a",19),_.\u0275\u0275text(1),_.\u0275\u0275pipe(2,"translate"),_.\u0275\u0275elementStart(3,"span",20),_.\u0275\u0275text(4,"(current)"),_.\u0275\u0275elementEnd()()),2&X&&(_.\u0275\u0275advance(1),_.\u0275\u0275textInterpolate1(" ",_.\u0275\u0275pipeBind1(2,1,"nav.login"),""))}function L(X,te){1&X&&(_.\u0275\u0275elementStart(0,"a",21),_.\u0275\u0275pipe(1,"translate"),_.\u0275\u0275pipe(2,"translate"),_.\u0275\u0275element(3,"i",22),_.\u0275\u0275elementStart(4,"span",20),_.\u0275\u0275text(5,"(current)"),_.\u0275\u0275elementEnd()()),2&X&&(_.\u0275\u0275property("title",_.\u0275\u0275pipeBind1(2,4,"nav.logout")),_.\u0275\u0275attribute("aria-label",_.\u0275\u0275pipeBind1(1,2,"nav.logout")))}function V(X,te){if(1&X&&(_.\u0275\u0275elementStart(0,"div",16),_.\u0275\u0275template(1,B,5,3,"a",17),_.\u0275\u0275pipe(2,"async"),_.\u0275\u0275template(3,L,6,6,"a",18),_.\u0275\u0275pipe(4,"async"),_.\u0275\u0275elementEnd()),2&X){const K=_.\u0275\u0275nextContext();_.\u0275\u0275advance(1),_.\u0275\u0275property("ngIf",!_.\u0275\u0275pipeBind1(2,2,K.isAuthenticated)),_.\u0275\u0275advance(2),_.\u0275\u0275property("ngIf",_.\u0275\u0275pipeBind1(4,4,K.isAuthenticated))}}let Y=(()=>{class X{constructor(K,ee,ae){this.store=K,this.windowService=ee,this.authService=ae,this.showAuth=(0,t.of)(!1),this.isMobile$=this.windowService.isMobile()}ngOnInit(){this.isAuthenticated=this.store.pipe((0,i.Ys)(h.$8)),this.loading=this.store.pipe((0,i.Ys)(h.EC)),this.user=this.authService.getAuthenticatedUserFromStore(),this.showAuth=this.store.pipe((0,i.Ys)(a.$y),(0,n.h)(K=>(0,p.pT)(K)&&(0,p.pT)(K.state)),(0,o.U)(K=>!K.state.url.startsWith(m._e)&&!K.state.url.startsWith(m.Lx)))}}return X.\u0275fac=function(K){return new(K||X)(_.\u0275\u0275directiveInject(i.yh),_.\u0275\u0275directiveInject(r.I3),_.\u0275\u0275directiveInject(m.e8))},X.\u0275cmp=_.\u0275\u0275defineComponent({type:X,selectors:[["ds-auth-nav-menu"]],decls:4,vars:4,consts:[["class","navbar-nav mr-auto","data-test","auth-nav",4,"ngIf","ngIfElse"],["mobileButtons",""],["data-test","auth-nav",1,"navbar-nav","mr-auto"],["class","nav-item",3,"click",4,"ngIf"],["class","nav-item",4,"ngIf"],[1,"nav-item",3,"click"],["ngbDropdown","","display","dynamic","placement","bottom-right",1,"d-inline-block"],["loginDrop","ngbDropdown"],["href","javascript:void(0);","role","menuitem","aria-haspopup","menu","aria-controls","loginDropdownMenu","ngbDropdownToggle","",1,"dropdownLogin","px-0.5",3,"click"],["id","loginDropdownMenu","ngbDropdownMenu","","role","menu",3,"ngClass"],[3,"isStandalonePage"],[1,"nav-item"],["href","javascript:void(0);","role","menuitem","aria-controls","user-menu-dropdown","ngbDropdownToggle","",1,"dropdownLogout","px-1",3,"title","click"],[1,"fas","fa-user-circle","fa-lg","fa-fw"],["id","logoutDropdownMenu","ngbDropdownMenu",""],[3,"inExpandableNavbar"],["data-test","auth-nav"],["routerLink","/login","routerLinkActive","active","class","loginLink px-0.5","role","button",4,"ngIf"],["role","button","routerLink","/logout","routerLinkActive","active","class","logoutLink px-1",3,"title",4,"ngIf"],["routerLink","/login","routerLinkActive","active","role","button",1,"loginLink","px-0.5"],[1,"sr-only"],["role","button","routerLink","/logout","routerLinkActive","active",1,"logoutLink","px-1",3,"title"],[1,"fas","fa-sign-out-alt","fa-lg","fa-fw"]],template:function(K,ee){if(1&K&&(_.\u0275\u0275template(0,g,7,10,"div",0),_.\u0275\u0275pipe(1,"async"),_.\u0275\u0275template(2,V,5,6,"ng-template",null,1,_.\u0275\u0275templateRefExtractor)),2&K){const ae=_.\u0275\u0275reference(3);_.\u0275\u0275property("ngIf",!_.\u0275\u0275pipeBind1(1,2,ee.isMobile$))("ngIfElse",ae)}},dependencies:[v.mk,v.O5,E.jt,E.iD,E.Vi,O.rH,O.Od,b.A,M.i,v.Ov,P.X$,D.g],styles:["#loginDropdownMenu[_ngcontent-%COMP%], #logoutDropdownMenu[_ngcontent-%COMP%]{min-width:330px;z-index:1002}#loginDropdownMenu[_ngcontent-%COMP%]{min-height:75px}.dropdown-item.active[_ngcontent-%COMP%], .dropdown-item[_ngcontent-%COMP%]:active, .dropdown-item[_ngcontent-%COMP%]:hover, .dropdown-item[_ngcontent-%COMP%]:focus{background-color:#0000!important}.loginLink[_ngcontent-%COMP%], .dropdownLogin[_ngcontent-%COMP%], .logoutLink[_ngcontent-%COMP%], .dropdownLogout[_ngcontent-%COMP%]{color:#fff}.loginLink[_ngcontent-%COMP%]:hover, .loginLink[_ngcontent-%COMP%]:focus, .dropdownLogin[_ngcontent-%COMP%]:hover, .dropdownLogin[_ngcontent-%COMP%]:focus, .logoutLink[_ngcontent-%COMP%]:hover, .logoutLink[_ngcontent-%COMP%]:focus, .dropdownLogout[_ngcontent-%COMP%]:hover, .dropdownLogout[_ngcontent-%COMP%]:focus{color:var(--ds-header-icon-color-hover)}.dropdownLogin[_ngcontent-%COMP%]:not(.focus-visible).active, .dropdownLogin[_ngcontent-%COMP%]:not(.focus-visible):active, .dropdownLogin[_ngcontent-%COMP%]:not(.focus-visible).active:focus, .dropdownLogin[_ngcontent-%COMP%]:not(.focus-visible):active:focus, .dropdownLogout[_ngcontent-%COMP%]:not(.focus-visible).active, .dropdownLogout[_ngcontent-%COMP%]:not(.focus-visible):active, .dropdownLogout[_ngcontent-%COMP%]:not(.focus-visible).active:focus, .dropdownLogout[_ngcontent-%COMP%]:not(.focus-visible):active:focus{box-shadow:unset}.dropdownLogin[_ngcontent-%COMP%]:not(:focus-visible).active, .dropdownLogin[_ngcontent-%COMP%]:not(:focus-visible):active, .dropdownLogin[_ngcontent-%COMP%]:not(:focus-visible).active:focus, .dropdownLogin[_ngcontent-%COMP%]:not(:focus-visible):active:focus, .dropdownLogout[_ngcontent-%COMP%]:not(:focus-visible).active, .dropdownLogout[_ngcontent-%COMP%]:not(:focus-visible):active, .dropdownLogout[_ngcontent-%COMP%]:not(:focus-visible).active:focus, .dropdownLogout[_ngcontent-%COMP%]:not(:focus-visible):active:focus{box-shadow:unset}"],data:{animation:[d.Ic,d.U6]}}),X})()},77485:(R,c,e)=>{"use strict";e.d(c,{j:()=>d});var t=e(25330),n=e(94650);function o(r,a){}const i=["*"];let d=(()=>{class r extends t.F{getComponentName(){return"AuthNavMenuComponent"}importThemedComponent(p){return e(40140)(`./${p}/app/shared/auth-nav-menu/auth-nav-menu.component`)}importUnthemedComponent(){return Promise.resolve().then(e.bind(e,59492))}}return r.\u0275fac=function(){let a;
1return function(h){return(a||(a=n.\u0275\u0275getInheritedFactory(r)))(h||r)}}(),r.\u0275cmp=n.\u0275\u0275defineComponent({type:r,selectors:[["ds-themed-auth-nav-menu"]],features:[n.\u0275\u0275InheritDefinitionFeature],ngContentSelectors:i,decls:5,vars:0,consts:[["vcr",""],["content",""]],template:function(p,h){1&p&&(n.\u0275\u0275projectionDef(),n.\u0275\u0275template(0,o,0,0,"ng-template",null,0,n.\u0275\u0275templateRefExtractor),n.\u0275\u0275elementStart(2,"div",null,1),n.\u0275\u0275projection(4),n.\u0275\u0275elementEnd())},encapsulation:2}),r})()},48946:(R,c,e)=>{"use strict";e.d(c,{A:()=>d});var t=e(25330),n=e(94650);function o(r,a){}const i=["*"];let d=(()=>{class r extends t.F{constructor(){super(...arguments),this.inAndOutputNames=["inExpandableNavbar"]}getComponentName(){return"UserMenuComponent"}importThemedComponent(p){return e(26313)(`./${p}/app/shared/auth-nav-menu/user-menu/user-menu.component`)}importUnthemedComponent(){return Promise.resolve().then(e.bind(e,83439))}}return r.\u0275fac=function(){let a;return function(h){return(a||(a=n.\u0275\u0275getInheritedFactory(r)))(h||r)}}(),r.\u0275cmp=n.\u0275\u0275defineComponent({type:r,selectors:[["ds-themed-user-menu"]],inputs:{inExpandableNavbar:"inExpandableNavbar"},features:[n.\u0275\u0275InheritDefinitionFeature],ngContentSelectors:i,decls:5,vars:0,consts:[["vcr",""],["content",""]],template:function(p,h){1&p&&(n.\u0275\u0275projectionDef(),n.\u0275\u0275template(0,o,0,0,"ng-template",null,0,n.\u0275\u0275templateRefExtractor),n.\u0275\u0275elementStart(2,"div",null,1),n.\u0275\u0275projection(4),n.\u0275\u0275elementEnd())},encapsulation:2}),r})()},83439:(R,c,e)=>{"use strict";e.r(c),e.d(c,{UserMenuComponent:()=>P});var t=e(89653),n=e(19168),o=e(14292),i=e(24755),d=e(50503),r=e(83616),a=e(94650),p=e(36895),h=e(34793),m=e(48106),_=e(62185),v=e(89383);function E(D,l){1&D&&a.\u0275\u0275element(0,"ds-themed-loading")}function O(D,l){1&D&&(a.\u0275\u0275elementContainerStart(0),a.\u0275\u0275element(1,"li",7),a.\u0275\u0275elementStart(2,"li",5),a.\u0275\u0275element(3,"ds-log-out",8),a.\u0275\u0275elementEnd(),a.\u0275\u0275elementContainerEnd())}const b=function(D){return[D]};function M(D,l){if(1&D&&(a.\u0275\u0275elementStart(0,"ul",2),a.\u0275\u0275pipe(1,"translate"),a.\u0275\u0275elementStart(2,"li",3),a.\u0275\u0275text(3),a.\u0275\u0275pipe(4,"async"),a.\u0275\u0275element(5,"br"),a.\u0275\u0275elementStart(6,"span",4),a.\u0275\u0275text(7),a.\u0275\u0275pipe(8,"async"),a.\u0275\u0275elementEnd()(),a.\u0275\u0275elementStart(9,"li",5)(10,"a",6),a.\u0275\u0275text(11),a.\u0275\u0275pipe(12,"translate"),a.\u0275\u0275elementEnd()(),a.\u0275\u0275elementStart(13,"li",5)(14,"a",6),a.\u0275\u0275text(15),a.\u0275\u0275pipe(16,"translate"),a.\u0275\u0275elementEnd()(),a.\u0275\u0275elementStart(17,"li",5)(18,"a",6),a.\u0275\u0275text(19),a.\u0275\u0275pipe(20,"translate"),a.\u0275\u0275elementEnd()(),a.\u0275\u0275template(21,O,4,0,"ng-container",0),a.\u0275\u0275elementEnd()),2&D){const C=a.\u0275\u0275nextContext();let I;a.\u0275\u0275property("ngClass",C.inExpandableNavbar?"user-menu-mobile pb-2 mb-2 border-bottom":"user-menu-dropdown"),a.\u0275\u0275attribute("aria-label",a.\u0275\u0275pipeBind1(1,11,"nav.user-profile-menu-and-logout")),a.\u0275\u0275advance(3),a.\u0275\u0275textInterpolate1(" ",C.dsoNameService.getName(a.\u0275\u0275pipeBind1(4,13,C.user$)),""),a.\u0275\u0275advance(4),a.\u0275\u0275textInterpolate(null==(I=a.\u0275\u0275pipeBind1(8,15,C.user$))?null:I.email),a.\u0275\u0275advance(3),a.\u0275\u0275property("routerLink",a.\u0275\u0275pureFunction1(23,b,C.profileRoute)),a.\u0275\u0275advance(1),a.\u0275\u0275textInterpolate(a.\u0275\u0275pipeBind1(12,17,"nav.profile")),a.\u0275\u0275advance(3),a.\u0275\u0275property("routerLink",a.\u0275\u0275pureFunction1(25,b,C.mydspaceRoute)),a.\u0275\u0275advance(1),a.\u0275\u0275textInterpolate(a.\u0275\u0275pipeBind1(16,19,"nav.mydspace")),a.\u0275\u0275advance(3),a.\u0275\u0275property("routerLink",a.\u0275\u0275pureFunction1(27,b,C.subscriptionsRoute)),a.\u0275\u0275advance(1),a.\u0275\u0275textInterpolate(a.\u0275\u0275pipeBind1(20,21,"nav.subscriptions")),a.\u0275\u0275advance(2),a.\u0275\u0275property("ngIf",!C.inExpandableNavbar)}}let P=(()=>{class D{constructor(C,I,g){this.store=C,this.authService=I,this.dsoNameService=g,this.inExpandableNavbar=!1,this.mydspaceRoute=o.MYDSPACE_ROUTE,this.profileRoute=(0,d.cU)(),this.subscriptionsRoute=(0,d.AZ)()}ngOnInit(){this.loading$=this.store.pipe((0,t.Ys)(n.EC)),this.user$=this.authService.getAuthenticatedUserFromStore()}}return D.\u0275fac=function(C){return new(C||D)(a.\u0275\u0275directiveInject(t.yh),a.\u0275\u0275directiveInject(i.e8),a.\u0275\u0275directiveInject(r._))},D.\u0275cmp=a.\u0275\u0275defineComponent({type:D,selectors:[["ds-user-menu"]],inputs:{inExpandableNavbar:"inExpandableNavbar"},decls:4,vars:6,consts:[[4,"ngIf"],["class","user-menu","role","menu","id","user-menu-dropdown",3,"ngClass",4,"ngIf"],["role","menu","id","user-menu-dropdown",1,"user-menu",3,"ngClass"],["role","presentation",1,"ds-menu-item-wrapper","username-email-wrapper"],[1,"text-muted"],["role","presentation",1,"ds-menu-item-wrapper"],["role","menuitem","routerLinkActive","active",1,"ds-menu-item",3,"routerLink"],["aria-hidden","true",1,"dropdown-divider"],["data-test","log-out-component"]],template:function(C,I){1&C&&(a.\u0275\u0275template(0,E,1,0,"ds-themed-loading",0),a.\u0275\u0275pipe(1,"async"),a.\u0275\u0275template(2,M,22,29,"ul",1),a.\u0275\u0275pipe(3,"async")),2&C&&(a.\u0275\u0275property("ngIf",a.\u0275\u0275pipeBind1(1,2,I.loading$)),a.\u
10275\u0275advance(2),a.\u0275\u0275property("ngIf",!a.\u0275\u0275pipeBind1(3,4,I.loading$)))},dependencies:[p.mk,p.O5,h.rH,h.Od,m.Z,_.P,p.Ov,v.X$],styles:["[_nghost-%COMP%] ul.user-menu[_ngcontent-%COMP%]{list-style:none;margin:0;padding:0}[_nghost-%COMP%] ul.user-menu.user-menu-dropdown[_ngcontent-%COMP%] .ds-menu-item-wrapper[_ngcontent-%COMP%] a.ds-menu-item[_ngcontent-%COMP%], [_nghost-%COMP%] ul.user-menu.user-menu-dropdown[_ngcontent-%COMP%] .ds-menu-item-wrapper.username-email-wrapper[_ngcontent-%COMP%]{padding:var(--ds-user-menu-item-vertical-padding) var(--ds-user-menu-dropdown-padding)}[_nghost-%COMP%] ul.user-menu.user-menu-dropdown[_ngcontent-%COMP%] .ds-menu-item-wrapper[_ngcontent-%COMP%] a.ds-menu-item[_ngcontent-%COMP%]{display:block;color:var(--ds-expandable-navbar-link-color)}[_nghost-%COMP%] ul.user-menu.user-menu-dropdown[_ngcontent-%COMP%] .ds-menu-item-wrapper[_ngcontent-%COMP%] a.ds-menu-item[_ngcontent-%COMP%]:hover{color:var(--ds-expandable-navbar-link-color-hover);background-color:var(--ds-user-menu-dropdown-link-background-hover)}[_nghost-%COMP%] ul.user-menu.user-menu-mobile[_ngcontent-%COMP%] .ds-menu-item-wrapper[_ngcontent-%COMP%]{padding-top:var(--ds-user-menu-item-vertical-padding);padding-bottom:var(--ds-user-menu-item-vertical-padding)}[_nghost-%COMP%] ul.user-menu.user-menu-mobile[_ngcontent-%COMP%] .ds-menu-item[_ngcontent-%COMP%]{display:inline-block}[_nghost-%COMP%] ul.user-menu.user-menu-mobile[_ngcontent-%COMP%] .ds-menu-item[_ngcontent-%COMP%], [_nghost-%COMP%] ul.user-menu.user-menu-mobile[_ngcontent-%COMP%] .ds-menu-toggler-wrapper[_ngcontent-%COMP%]{color:var(--ds-expandable-navbar-link-color)!important}[_nghost-%COMP%] ul.user-menu.user-menu-mobile[_ngcontent-%COMP%] .ds-menu-item[_ngcontent-%COMP%]:hover, [_nghost-%COMP%] ul.user-menu.user-menu-mobile[_ngcontent-%COMP%] .ds-menu-item[_ngcontent-%COMP%]:focus, [_nghost-%COMP%] ul.user-menu.user-menu-mobile[_ngcontent-%COMP%] .ds-menu-toggler-wrapper[_ngcontent-%COMP%]:hover, [_nghost-%COMP%] ul.user-menu.user-menu-mobile[_ngcontent-%COMP%] .ds-menu-toggler-wrapper[_ngcontent-%COMP%]:focus{color:var(--ds-expandable-navbar-link-background-hover)!important}"]}),D})()},13530:(R,c,e)=>{"use strict";e.r(c),e.d(c,{BrowseByComponent:()=>te});var t=e(94650),n=e(42943),o=e(28652),i=e(61135),d=e(39841),r=e(37308),a=e(77467),p=e(51121),h=e(5360),m=e(54004),_=e(24702),v=e(89383),E=e(44457),O=e(36895),b=e(41971),M=e(48106),P=e(70714),D=e(98605);function l(K,ee){1&K&&t.\u0275\u0275elementContainer(0)}function C(K,ee){if(1&K&&(t.\u0275\u0275elementStart(0,"div",7),t.\u0275\u0275element(1,"ds-themed-results-back-button",8),t.\u0275\u0275elementEnd()),2&K){const ae=t.\u0275\u0275nextContext(3);t.\u0275\u0275advance(1),t.\u0275\u0275property("back",ae.back)("buttonLabel",ae.buttonLabel)}}function I(K,ee){if(1&K){const ae=t.\u0275\u0275getCurrentView();t.\u0275\u0275elementStart(0,"div"),t.\u0275\u0275template(1,C,2,2,"div",5),t.\u0275\u0275pipe(2,"async"),t.\u0275\u0275elementStart(3,"ds-viewable-collection",6),t.\u0275\u0275listener("prev",function(){t.\u0275\u0275restoreView(ae);const j=t.\u0275\u0275nextContext(2);return t.\u0275\u0275resetView(j.goPrev())})("next",function(){t.\u0275\u0275restoreView(ae);const j=t.\u0275\u0275nextContext(2);return t.\u0275\u0275resetView(j.goNext())}),t.\u0275\u0275elementEnd()()}if(2&K){const ae=t.\u0275\u0275nextContext().ngVar,Q=t.\u0275\u0275nextContext();t.\u0275\u0275property("@fadeIn",void 0),t.\u0275\u0275advance(1),t.\u0275\u0275property("ngIf",t.\u0275\u0275pipeBind1(2,6,Q.shouldDisplayResetButton$)),t.\u0275\u0275advance(2),t.\u0275\u0275property("config",Q.paginationConfig)("sortConfig",Q.sortConfig)("showPaginator",Q.showPaginator)("objects",ae)}}function g(K,ee){1&K&&(t.\u0275\u0275element(0,"ds-themed-loading",9),t.\u0275\u0275pipe(1,"translate")),2&K&&t.\u0275\u0275propertyInterpolate("message",t.\u0275\u0275pipeBind1(1,1,"loading.browse-by"))}function B(K,ee){1&K&&(t.\u0275\u0275element(0,"ds-error",9),t.\u0275\u0275pipe(1,"translate")),2&K&&t.\u0275\u0275propertyInterpolate("message",t.\u0275\u0275pipeBind1(1,1,"error.browse-by"))}function L(K,ee){if(1&K&&(t.\u0275\u0275elementStart(0,"div",12),t.\u0275\u0275element(1,"ds-themed-results-back-button",8),t.\u0275\u0275elementEnd()),2&K){const ae=t.\u0275\u0275nextContext(3);t.\u0275\u0275advance(1),t.\u0275\u0275property("back",ae.back)("buttonLabel",ae.buttonLabel)}}function V(K,ee){if(1&K&&(t.\u0275\u0275elementStart(0,"div"),t.\u0275\u0275template(1,L,2,2,"div",10),t.\u0275\u0275pipe(2,"async"),t.\u0275\u0275elementStart(3,"div",11),t.\u0275\u0275text(4),t.\u0275\u0275pipe(5,"translate"),t.\u0275\u0275elementEnd()()),2&K){const ae=t.\u0275\u0275nextContext(2);t.\u0275\u0275advance(1),t.\u0275\u0275property("ngIf",t.\u0275\u0275pipeBind1(2,2,ae.shouldDisplayResetButton$)),t.\u0275\u0275advance(3),t.\u0275\u0275textInterpolate1(" ",t.\u0275\u0275pipeBind1(5,4,"browse.empty")," ")}}const Y=function(K){return{"sr-only":K}};function X(K,ee){if(1&K&&(t.\u0275\u0275elementContainerStart(0),t.\u0275\u0275elementStart(1,"h1",1),t.\u0275\u0275text(2),t.\u0275\u0275pipe(3,"translate"),t.\u0275\u0275elementEnd(),t.\u0275\u0275template(4,l,1,0,"ng-container",2),t.\u0275\u0275template(5,I,4,8,"div",3),t.\u0275\u0275template(6,g,2,3,"ds-themed-loading",4),t.\u0275\u0275template(7,B,2,3,"ds-error",4),t.\u0275\u0275template(8,V,6,6,"div",3),t.\u0275\u0275elementContainerEnd()),2&K){const ae=ee.ngVar,Q=t.\u0275\u0275nextContext();t.\u0275\u0275advance(1),t.\u0275\u0275property("ngClass",t.\u0275\u0275pureFunction1(10,Y,Q.parentname)),t.\u0275\u0275advance(1),t.\u0275\u0275textInterpolate(t.\u0275\u0275pipeBind1(3,8,Q.title)),t.\u0275\u0275advance(2),t.\u0275\u0275property("ngComponentOutlet",Q.getStartsWithComponent())("ngComponentOutletInjector",Q.objectInjector),t.\u0275\u0275advance(1),t.\u0275\u0275property("ngIf",(null==ae?null:ae.hasSucceeded)&&!(null!=ae&&ae.isLoading)&&(null==ae||null==ae.payload?null:ae.payload.page.length)>0),t.\u0275\u0275advance(1),t.\u0275\u0275property("ngIf",!ae||(null==ae?null:ae.isLoading)),t.\u0275\u0275advance(1),t.\u0275\u0275property("ngIf",null==ae?null:ae.hasFailed),t.\u0275\u0275advance(1),t.\u0275\u0275property("ngIf",!(null!=ae&&ae.isLoading)&&0===(null==ae||null==ae.payload?null:ae.payload.page.length))}}let te=(()=>{class K{constructor(ae,Q,j,k){this.injector=ae,this.paginationService=Q,this.translateService=j,this.routeService=k,this.viewMode=p.w.ListElement,this.type=r.C4.text,this.startsWithOptions=[],this.showPaginator=!0,this.hideGear=!1,this.prev=new t.EventEmitter,this.next=new t.EventEmitter,this.pageSizeChange=new t.EventEmitter,this.sortDirectionChange=new t.EventEmitter,this.sortDirections=n.S,this.previousPage$=new i.X("1"),this.buttonLabel=this.translateService.get("browse.back.all-results"),this.back=()=>{this.paginationService.updateRoute(this.paginationConfig.id,{page:+this.previousPage$.value>1?+this.previousPage$.value:1},{[this.paginationConfig.id+".return"]:null,value:null,startsWith:null})}}goPrev(){this.prev.emit(!0)}goNext(){this.next.emit(!0)}doPageSizeChange(ae){this.paginationService.updateRoute(this.paginationConfig.id,{pageSize:ae})}doSortDirectionChange(ae){this.paginationService.updateRoute(this.paginationConfig.id,{sortDirection:ae})}getStartsWithComponent(){return(0,r.a5)(this.type)}ngOnInit(){this.generateInjector();const ae=this.routeService.getQueryParameterValue("startsWith"),Q=this.routeService.getQueryParameterValue("value");this.shouldDisplayResetButton$=(0,d.a)([ae,Q]).pipe((0,m.U)(([j,k])=>(0,_.Uh)(j)||(0,_.Uh)(k))),this.sub=this.routeService.getQueryParameterValue(this.paginationConfig.id+".return").subscribe(this.previousPage$)}ngOnChanges(ae){(ae.startsWithOptions||ae.paginationId)&&this.generateInjector()}ngOnDestroy(){this.sub&&this.sub.unsubscribe()}generateInjector(){this.objectInjector=t.Injector.create({providers:[{provide:"startsWithOptions",useFactory:()=>this.startsWithOptions,deps:[]},{provide:"paginationId",useFactory:()=>this.paginationConfig?.id,deps:[]}],parent:this.injector})}}return K.\u0275fac=function(ae){return new(ae||K)(t.\u0275\u0275directiveInject(t.Injector),t.\u0275\u0275directiveInject(a.N),t.\u0275\u0275directiveInject(v.sK),t.\u0275\u0275directiveInject(h.MZ))},K.\u0275cmp=t.\u0275\u0275defineComponent({type:K,selectors:[["ds-browse-by"]],inputs:{title:"title",parentname:"parentname",objects$:"objects$",paginationConfig:"paginationConfig",sortConfig:"sortConfig",type:"type",startsWithOptions:"startsWithOptions",showPaginator:"showPaginator",hideGear:"hideGear"},outputs:{prev:"prev",next:"next",pageSizeChange:"pageSizeChange",sortDirectionChange:"sortDirectionChange"},features:[t.\u0275\u0275NgOnChangesFeature],decls:2,vars:3,consts:[[4,"ngVar"],[3,"ngClass"],[4,"ngComponentOutlet","ngComponentOutletInjector"],[4,"ngIf"],[3,"message",4,"ngIf"],["class","mb-2 reset",4,"ngIf"],[3,"config","sortConfig","showPaginator","objects","prev","next"],[1,"mb-2","reset"],[3,"back","buttonLabel"],[3,"message"],["class","d-inline-block mb-4 reset",4,"ngIf"],["role","alert",1,"alert","alert-info","w-100"],[1,"d-inline-block","mb-4","reset"]],template:function(ae,Q){1&ae&&(t.\u0275\u0275template(0,X,9,12,"ng-container",0),t.\u0275\u0275pipe(1,"async")),2&ae&&t.\u0275\u0275property("ngVar",t.\u0275\u0275pipeBind1(1,1,Q.objects$))},dependencies:[E.i,O.mk,O.$G,O.O5,b.q,M.Z,P.c,D.g,O.Ov,v.X$],styles:["[_nghost-%COMP%] .dropdown-toggle[_ngcontent-%COMP%]:after{display:none}[_nghost-%COMP%] .dropdown-item[_ngcontent-%COMP%]{padding-left:20px}"],data:{animation:[o.Ji,o.Ic]}}),K})()},92161:(R,c,e)=>{"use strict";e.d(c,{v:()=>m}),e(13530),e(56732);var o=e(36895),i=e(44186),d=e(8086),r=e(3451),a=e(92513),p=e(94650);let m=(()=>{class _{}return _.\u0275fac=function(E){return new(E||_)},_.\u0275mod=p.\u0275\u0275defineNgModule({type:_}),_.\u0275inj=p.\u0275\u0275defineInjector({imports:[d.I,r.f,a.y,o.ez,i.m]}),_})()},56732:(R,c,e)=>{"use strict";e.d(c,{h:()=>r});var t=e(94650),n=e(25330);function i(a,p){}e(37308);const d=["*"];let r=(()=>{class a extends n.F{constructor(){super(...arguments),this.prev=new t.EventEmitter,this.next=new t.EventEmitter,this.pageSizeChange=new t.EventEmitter,this.sortDirectionChange=new t.EventEmitter,this.inAndOutputNames=["title","parentname","objects$","paginationConfig","sortConfig","type","startsWithOptions","showPaginator","hideGear","prev","next","pageSizeChange","sortDirectionChange"]}getComponentName(){return"BrowseByComponent"}importThemedComponent(h){return e(45285)(`./${h}/app/shared/browse-by/browse-by.component.ts`)}importUnthemedComponent(){return Promise.resolve().then(e.bind(e,13530)
1)}}return a.\u0275fac=function(){let p;return function(m){return(p||(p=t.\u0275\u0275getInheritedFactory(a)))(m||a)}}(),a.\u0275cmp=t.\u0275\u0275defineComponent({type:a,selectors:[["ds-themed-browse-by"]],inputs:{title:"title",parentname:"parentname",objects$:"objects$",paginationConfig:"paginationConfig",sortConfig:"sortConfig",type:"type",startsWithOptions:"startsWithOptions",showPaginator:"showPaginator",hideGear:"hideGear"},outputs:{prev:"prev",next:"next",pageSizeChange:"pageSizeChange",sortDirectionChange:"sortDirectionChange"},features:[t.\u0275\u0275InheritDefinitionFeature],ngContentSelectors:d,decls:5,vars:0,consts:[["vcr",""],["content",""]],template:function(h,m){1&h&&(t.\u0275\u0275projectionDef(),t.\u0275\u0275template(0,i,0,0,"ng-template",null,0,t.\u0275\u0275templateRefExtractor),t.\u0275\u0275elementStart(2,"div",null,1),t.\u0275\u0275projection(4),t.\u0275\u0275elementEnd())},encapsulation:2}),a})()},25575:(R,c,e)=>{"use strict";e.d(c,{v:()=>n});var t=e(94650);let n=(()=>{class o{constructor(){this.isDisabled=!1}set dsBtnDisabled(d){this.isDisabled=!!d}get disabledClass(){return this.isDisabled}handleClick(d){this.isDisabled&&(d.preventDefault(),d.stopImmediatePropagation())}handleKeydown(d){this.isDisabled&&("Enter"===d.key||"Space"===d.key)&&(d.preventDefault(),d.stopImmediatePropagation())}}return o.\u0275fac=function(d){return new(d||o)},o.\u0275dir=t.\u0275\u0275defineDirective({type:o,selectors:[["","dsBtnDisabled",""]],hostVars:3,hostBindings:function(d,r){1&d&&t.\u0275\u0275listener("click",function(p){return r.handleClick(p)})("keydown",function(p){return r.handleKeydown(p)}),2&d&&(t.\u0275\u0275attribute("aria-disabled",r.isDisabled),t.\u0275\u0275classProp("disabled",r.disabledClass))},inputs:{dsBtnDisabled:"dsBtnDisabled"}}),o})()},18285:(R,c,e)=>{"use strict";e.r(c),e.d(c,{CollectionDropdownComponent:()=>K});var t=e(94650),n=e(24006),o=e(61135),i=e(50457),d=e(39646),r=e(78372),a=e(71884),p=e(68675),h=e(63900),m=e(86099),_=e(54004),v=e(70207),E=e(95698),O=e(24702),b=e(36391),M=e(93369),P=e(68285),D=e(83616),l=e(36895),C=e(77296),I=e(48106),g=e(89383);function B(ee,ae){if(1&ee&&(t.\u0275\u0275elementStart(0,"div",5)(1,"input",6,7),t.\u0275\u0275listener("click",function(j){return j.stopPropagation()}),t.\u0275\u0275pipe(3,"translate"),t.\u0275\u0275elementEnd()()),2&ee){const Q=t.\u0275\u0275nextContext();t.\u0275\u0275advance(1),t.\u0275\u0275propertyInterpolate("placeholder",t.\u0275\u0275pipeBind1(3,2,"submission.sections.general.search-collection")),t.\u0275\u0275property("formControl",Q.searchField)}}function L(ee,ae){1&ee&&(t.\u0275\u0275elementStart(0,"li",8),t.\u0275\u0275text(1),t.\u0275\u0275pipe(2,"translate"),t.\u0275\u0275elementEnd()),2&ee&&(t.\u0275\u0275advance(1),t.\u0275\u0275textInterpolate1(" ",t.\u0275\u0275pipeBind1(2,1,"submission.sections.general.no-collection")," "))}function V(ee,ae){if(1&ee&&(t.\u0275\u0275elementStart(0,"div",14),t.\u0275\u0275text(1),t.\u0275\u0275element(2,"i",15),t.\u0275\u0275elementEnd()),2&ee){const Q=ae.$implicit;t.\u0275\u0275advance(1),t.\u0275\u0275textInterpolate1(" ",Q.name," ")}}function Y(ee,ae){if(1&ee){const Q=t.\u0275\u0275getCurrentView();t.\u0275\u0275elementStart(0,"li",10),t.\u0275\u0275listener("click",function(){const G=t.\u0275\u0275restoreView(Q).$implicit,ie=t.\u0275\u0275nextContext(2);return t.\u0275\u0275resetView(ie.onSelect(G))}),t.\u0275\u0275elementStart(1,"div",11),t.\u0275\u0275template(2,V,3,1,"div",12),t.\u0275\u0275elementStart(3,"div",13),t.\u0275\u0275text(4),t.\u0275\u0275elementEnd()()()}if(2&ee){const Q=ae.$implicit;t.\u0275\u0275propertyInterpolate("title",Q.collection.name),t.\u0275\u0275advance(2),t.\u0275\u0275property("ngForOf",Q.communities),t.\u0275\u0275advance(2),t.\u0275\u0275textInterpolate(Q.collection.name)}}function X(ee,ae){if(1&ee&&(t.\u0275\u0275elementContainerStart(0),t.\u0275\u0275template(1,Y,5,3,"li",9),t.\u0275\u0275elementContainerEnd()),2&ee){const Q=t.\u0275\u0275nextContext();t.\u0275\u0275advance(1),t.\u0275\u0275property("ngForOf",Q.searchListCollection)}}function te(ee,ae){1&ee&&(t.\u0275\u0275elementStart(0,"li")(1,"button",16),t.\u0275\u0275element(2,"ds-themed-loading",17),t.\u0275\u0275pipe(3,"translate"),t.\u0275\u0275elementEnd()()),2&ee&&(t.\u0275\u0275advance(2),t.\u0275\u0275propertyInterpolate("message",t.\u0275\u0275pipeBind1(3,1,"loading.default")))}let K=(()=>{class ee{constructor(Q,j,k,G){this.changeDetectorRef=Q,this.collectionDataService=j,this.el=k,this.dsoNameService=G,this.searchField=new n.p4,this.scrollableBottom=!1,this.scrollableTop=!1,this.subs=[],this.searchListCollection=[],this.selectionChange=new t.EventEmitter,this.isLoading=new o.X(!1),this.searchComplete=new t.EventEmitter,this.theOnlySelectable=new t.EventEmitter}onMousewheel(Q){Q.wheelDelta>0&&this.scrollableTop&&Q.preventDefault(),Q.wheelDelta<0&&this.scrollableBottom&&Q.preventDefault()}ngOnInit(){this.isLoading.next(!1),this.subs.push(this.searchField.valueChanges.pipe((0,r.b)(500),(0,a.x)(),(0,p.O)("")).subscribe(Q=>{(0,O.Uh)(Q)&&Q!==this.currentQuery&&(this.resetPagination(),this.currentQuery=Q,this.populateCollectionList(this.currentQuery,this.currentPage))})),setTimeout(()=>
1this.el.nativeElement.querySelector("input").focus(),0)}onScroll(Q){this.scrollableBottom=Q.target.scrollTop+Q.target.clientHeight===Q.target.scrollHeight,this.scrollableTop=0===Q.target.scrollTop}onScrollDown(){this.hasNextPage&&this.populateCollectionList(this.currentQuery,++this.currentPage)}onSelect(Q){this.isLoading.next(!0),this.selectionChange.emit(Q)}populateCollectionList(Q,j){this.isLoading.next(!0);const k={elementsPerPage:10,currentPage:j};let G;G=this.entityType?this.collectionDataService.getAuthorizedCollectionByEntityType(Q,this.entityType,k,!0,(0,M.l)("parentCommunity")):this.collectionDataService.getAuthorizedCollection(Q,k,!0,!0,(0,M.l)("parentCommunity")),this.searchListCollection$=G.pipe((0,P.hC)(),(0,h.w)(ie=>(this.searchComplete.emit(),ie.hasSucceeded&&ie.payload.totalElements>0?(this.searchListCollection.length>=ie.payload.totalElements&&(this.hasNextPage=!1),this.emitSelectionEvents(ie),(0,i.D)(ie.payload.page).pipe((0,m.z)(ne=>ne.parentCommunity.pipe((0,P.Gp)(),(0,_.U)(q=>({communities:[{id:q.id,name:this.dsoNameService.getName(q)}],collection:{id:ne.id,uuid:ne.id,name:this.dsoNameService.getName(ne)}})))),(0,v.u)((ne,q)=>[...ne,q],[]))):(this.hasNextPage=!1,(0,d.of)([]))))),this.subs.push(this.searchListCollection$.subscribe(ie=>{this.searchListCollection.push(...ie),this.hideShowLoader(!1),this.changeDetectorRef.detectChanges()}))}ngOnDestroy(){this.subs.filter(Q=>(0,O.Uh)(Q)).forEach(Q=>Q.unsubscribe())}reset(){this.searchField.setValue("")}resetPagination(){this.currentPage=1,this.currentQuery="",this.hasNextPage=!0,this.searchListCollection=[]}hideShowLoader(Q){this.isLoading.next(Q)}emitSelectionEvents(Q){if(1===Q.payload.totalElements){const j=Q.payload.page[0];Q.payload.page[0].parentCommunity.pipe((0,P.Gp)(),(0,E.q)(1)).subscribe(k=>{this.theOnlySelectable.emit({communities:[{id:k.id,name:this.dsoNameService.getName(k),uuid:k.id}],collection:{id:j.id,uuid:j.id,name:this.dsoNameService.getName(j)}})})}}}return ee.\u0275fac=function(Q){return new(Q||ee)(t.\u0275\u0275directiveInject(t.ChangeDetectorRef),t.\u0275\u0275directiveInject(b.W),t.\u0275\u0275directiveInject(t.ElementRef),t.\u0275\u0275directiveInject(D._))},ee.\u0275cmp=t.\u0275\u0275defineComponent({type:ee,selectors:[["ds-collection-dropdown"]],hostBindings:function(Q,j){1&Q&&t.\u0275\u0275listener("mousewheel",function(G){return j.onMousewheel(G)})},inputs:{entityType:"entityType"},outputs:{selectionChange:"selectionChange",searchComplete:"searchComplete",theOnlySelectable:"theOnlySelectable"},decls:8,vars:13,consts:[["class","form-group w-100 pr-2 pl-2 my-2",4,"ngIf"],[1,"dropdown-divider","m-0"],["role","menu","infiniteScroll","",1,"scrollable-menu","p-0","m-0",3,"infiniteScrollDistance","infiniteScrollThrottle","infiniteScrollUpDistance","fromRoot","scrollWindow","scroll","scrolled"],["class","dropdown-item disabled","role","menuitem",4,"ngIf"],[4,"ngIf"],[1,"form-group","w-100","pr-2","pl-2","my-2"],["type","search",1,"form-control","w-100",3,"placeholder","formControl","click"],["searchFieldEl",""],["role","menuitem",1,"dropdown-item","disabled"],["class","dropdown-item collection-item","role","menuitem",3,"title","click",4,"ngFor","ngForOf"],["role","menuitem",1,"dropdown-item","collection-item",3,"title","click"],[1,"list-unstyled","mb-0"],["class","list-item text-truncate text-secondary",4,"ngFor","ngForOf"],[1,"list-item","text-truncate","text-primary","font-weight-bold"],[1,"list-item","text-truncate","text-secondary"],["aria-hidden","true",1,"fa","fa-level-down"],[1,"dropdown-item","disabled"],[3,"message"]],template:function(Q,j){1&Q&&(t.\u0275\u0275template(0,B,4,4,"div",0),t.\u0275\u0275element(1,"div",1),t.\u0275\u0275elementStart(2,"ul",2),t.\u0275\u0275listener("scroll",function(G){return j.onScroll(G)})("scrolled",function(){return j.onScrollDown()}),t.\u0275\u0275template(3,L,3,3,"li",3),t.\u0275\u0275pipe(4,"async"),t.\u0275\u0275template(5,X,2,1,"ng-container",4),t.\u0275\u0275template(6,te,4,3,"li",4),t.\u0275\u0275pipe(7,"async"),t.\u0275\u0275elementEnd()),2&Q&&(t.\u0275\u0275property("ngIf",j.searchField),t.\u0275\u0275advance(2),t.\u0275\u0275property("infiniteScrollDistance",1.5)("infiniteScrollThrottle",0)("infiniteScrollUpDistance",1.5)("fromRoot",!0)("scrollWindow",!1),t.\u0275\u0275advance(1),t.\u0275\u0275property("ngIf",0==(null==j.searchListCollection?null:j.searchListCollection.length)&&!t.\u0275\u0275pipeBind1(4,9,j.isLoading)),t.\u0275\u0275advance(2),t.\u0275\u0275property("ngIf",(null==j.searchListCollection?null:j.searchListCollection.length)>0),t.\u0275\u0275advance(1),t.\u0275\u0275property("ngIf",t.\u0275\u0275pipeBind1(7,11,j.isLoading)))},dependencies:[l.sg,l.O5,n.Fj,n.JJ,C.Ry,n.oH,I.Z,l.Ov,g.X$],styles:[".scrollable-menu[_ngcontent-%COMP%]{height:auto;max-height:var(--ds-dropdown-menu-max-height);overflow-x:hidden}li[_ngcontent-%COMP%]:not(:last-of-type), .dropdown-divider[_ngcontent-%COMP%]{border-top:none;border-bottom:var(--bs-dropdown-border-width) solid var(--bs-dropdown-border-color)}#collectionControlsDropdownMenu[_ngcontent-%COMP%]{left:0!important}#collectionControlsDropdownMenu[_ngcontent-%COMP%]{outline:0;
1box-shadow:var(--bs-btn-focus-box-shadow)}"]}),ee})()},49279:(R,c,e)=>{"use strict";e.d(c,{t:()=>d});var t=e(25330),n=e(94650);function o(r,a){}const i=["*"];let d=(()=>{class r extends t.F{constructor(){super(...arguments),this.searchComplete=new n.EventEmitter,this.theOnlySelectable=new n.EventEmitter,this.selectionChange=new n.EventEmitter,this.inAndOutputNames=["entityType","searchComplete","theOnlySelectable","selectionChange"]}getComponentName(){return"CollectionDropdownComponent"}importThemedComponent(p){return e(13007)(`./${p}/app/shared/collection-dropdown/collection-dropdown.component`)}importUnthemedComponent(){return Promise.resolve().then(e.bind(e,18285))}}return r.\u0275fac=function(){let a;return function(h){return(a||(a=n.\u0275\u0275getInheritedFactory(r)))(h||r)}}(),r.\u0275cmp=n.\u0275\u0275defineComponent({type:r,selectors:[["ds-themed-collection-dropdown"]],inputs:{entityType:"entityType"},outputs:{searchComplete:"searchComplete",theOnlySelectable:"theOnlySelectable",selectionChange:"selectionChange"},features:[n.\u0275\u0275InheritDefinitionFeature],ngContentSelectors:i,decls:5,vars:0,consts:[["vcr",""],["content",""]],template:function(p,h){1&p&&(n.\u0275\u0275projectionDef(),n.\u0275\u0275template(0,o,0,0,"ng-template",null,0,n.\u0275\u0275templateRefExtractor),n.\u0275\u0275elementStart(2,"div",null,1),n.\u0275\u0275projection(4),n.\u0275\u0275elementEnd())},encapsulation:2}),r})()},7649:(R,c,e)=>{"use strict";e.d(c,{Z:()=>_});var t=e(49671),n=e(54004),o=e(95698),i=e(68285),d=e(24702),r=e(86266),a=e(46418),p=e(94650),h=e(34793),m=e(89383);let _=(()=>{class v{constructor(O,b,M,P,D){this.dsoDataService=O,this.router=b,this.route=M,this.notificationsService=P,this.translate=D}ngOnInit(){this.dsoRD$=this.route.parent.data.pipe((0,n.U)(O=>O.dso))}onSubmit(O){var b=this;const M=O.uploader,P=O.deleteLogo,D=(0,d.Uh)(M)&&M.queue.length>0;D&&this.dsoDataService.getLogoEndpoint(O.dso.uuid).pipe((0,o.q)(1)).subscribe(l=>{M.options.url=l,M.uploadAll()}),(0,d.xb)(O.operations)||this.dsoDataService.patch(O.dso,O.operations).pipe((0,i.hC)()).subscribe(function(){var l=(0,t.Z)(function*(C){C.hasSucceeded?(!D&&!P&&(yield b.router.navigate([b.frontendURL+O.dso.uuid])),b.notificationsService.success(null,b.translate.get(`${b.type.value}.edit.notifications.success`))):b.notificationsService.error(null,b.translate.get(403===C.statusCode?`${b.type.value}.edit.notifications.unauthorized`:`${b.type.value}.edit.notifications.error`))});return function(C){return l.apply(this,arguments)}}())}navigateToHomePage(){this.dsoRD$.pipe((0,i.xw)(),(0,o.q)(1)).subscribe(O=>{this.router.navigate([this.frontendURL+O.payload.id])})}}return v.\u0275fac=function(O){return new(O||v)(p.\u0275\u0275directiveInject(r.C),p.\u0275\u0275directiveInject(h.F0),p.\u0275\u0275directiveInject(h.gz),p.\u0275\u0275directiveInject(a.T),p.\u0275\u0275directiveInject(m.sK))},v.\u0275cmp=p.\u0275\u0275defineComponent({type:v,selectors:[["ds-comcol-metadata"]],decls:0,vars:0,template:function(O,b){},encapsulation:2}),v})()},56572:(R,c,e)=>{"use strict";e.d(c,{g:()=>d});var t=e(25330),n=e(94650);function o(r,a){}const i=["*"];let d=(()=>{class r extends t.F{constructor(){super(...arguments),this.inAndOutputNames=["id","contentType"]}getComponentName(){return"ComcolPageBrowseByComponent"}importThemedComponent(p){return e(1266)(`./${p}/app/shared/comcol-page-browse-by/comcol-page-browse-by.component`)}importUnthemedComponent(){return e.e(2305).then(e.bind(e,22305))}}return r.\u0275fac=function(){let a;return function(h){return(a||(a=n.\u0275\u0275getInheritedFactory(r)))(h||r)}}(),r.\u0275cmp=n.\u0275\u0275defineComponent({type:r,selectors:[["ds-themed-comcol-page-browse-by"]],inputs:{id:"id",contentType:"contentType"},features:[n.\u0275\u0275InheritDefinitionFeature],ngContentSelectors:i,decls:5,vars:0,consts:[["vcr",""],["content",""]],template:function(p,h){1&p&&(n.\u0275\u0275projectionDef(),n.\u0275\u0275template(0,o,0,0,"ng-template",null,0,n.\u0275\u0275templateRefExtractor),n.\u0275\u0275elementStart(2,"div",null,1),n.\u0275\u0275projection(4),n.\u0275\u0275elementEnd())},encapsulation:2}),r})()},75838:(R,c,e)=>{"use strict";e.d(c,{v:()=>p});var t=e(94650),n=e(36895),o=e(89383);function i(h,m){if(1&h&&(t.\u0275\u0275elementStart(0,"h2"),t.\u0275\u0275text(1),t.\u0275\u0275pipe(2,"translate"),t.\u0275\u0275elementEnd()),2&h){const _=t.\u0275\u0275nextContext(2);t.\u0275\u0275advance(1),t.\u0275\u0275textInterpolate(t.\u0275\u0275pipeBind1(2,1,_.title))}}function d(h,m){if(1&h&&t.\u0275\u0275element(0,"div",4),2&h){const _=t.\u0275\u0275nextContext(2);t.\u0275\u0275property("innerHtml",_.content,t.\u0275\u0275sanitizeHtml)}}function r(h,m){if(1&h&&(t.\u0275\u0275elementStart(0,"div"),t.\u0275\u0275text(1),t.\u0275\u0275elementEnd()),2&h){const _=t.\u0275\u0275nextContext(2);t.\u0275\u0275advance(1),t.\u0275\u0275textInterpolate(_.content)}}function a(h,m){if(1&h&&(t.\u0275\u0275elementStart(0,"div",1),t.\u0275\u0275template(1,i,3,3,"h2",2),t.\u0275\u0275template(2,d,1,1,"div",3),t.\u0275\u0275template(3,r,2,1,"div",2),t.\u0275\u0275elementEnd()),2&h){const _=t.\u0275\u0275nextContext();t.\u0275\u0275advance(1),t.\u0275\u0275property("ngIf",_.title),t.\u0275\u0275advance(1),t.\u0275\u0275property("ngIf",_.hasInnerHtml),t.\u0275\u0275advance(1),t.\u0275\u0275property("ngIf",!_.hasInnerHtml)}}let p=(()=>{class h{}
1return h.\u0275fac=function(_){return new(_||h)},h.\u0275cmp=t.\u0275\u0275defineComponent({type:h,selectors:[["ds-comcol-page-content"]],inputs:{title:"title",content:"content",hasInnerHtml:"hasInnerHtml"},decls:1,vars:1,consts:[["class","content-with-optional-title mb-2",4,"ngIf"],[1,"content-with-optional-title","mb-2"],[4,"ngIf"],[3,"innerHtml",4,"ngIf"],[3,"innerHtml"]],template:function(_,v){1&_&&t.\u0275\u0275template(0,a,4,3,"div",0),2&_&&t.\u0275\u0275property("ngIf",v.content)},dependencies:[n.O5,o.X$]}),h})()},38934:(R,c,e)=>{"use strict";e.d(c,{g:()=>d});var t=e(25330),n=e(94650);function o(r,a){}const i=["*"];let d=(()=>{class r extends t.F{constructor(){super(...arguments),this.inAndOutputNames=["title","content"]}getComponentName(){return"ComcolPageHandleComponent"}importThemedComponent(p){return e(13922)(`./${p}/app/shared/comcol/comcol-page-handle/comcol-page-handle.component`)}importUnthemedComponent(){return e.e(8559).then(e.bind(e,58559))}}return r.\u0275fac=function(){let a;return function(h){return(a||(a=n.\u0275\u0275getInheritedFactory(r)))(h||r)}}(),r.\u0275cmp=n.\u0275\u0275defineComponent({type:r,selectors:[["ds-themed-comcol-page-handle"]],inputs:{title:"title",content:"content"},features:[n.\u0275\u0275InheritDefinitionFeature],ngContentSelectors:i,decls:5,vars:0,consts:[["vcr",""],["content",""]],template:function(p,h){1&p&&(n.\u0275\u0275projectionDef(),n.\u0275\u0275template(0,o,0,0,"ng-template",null,0,n.\u0275\u0275templateRefExtractor),n.\u0275\u0275elementStart(2,"div",null,1),n.\u0275\u0275projection(4),n.\u0275\u0275elementEnd())},encapsulation:2}),r})()},62512:(R,c,e)=>{"use strict";e.d(c,{U:()=>i});var t=e(94650),n=e(36895);function o(d,r){if(1&d&&(t.\u0275\u0275elementStart(0,"h1"),t.\u0275\u0275text(1),t.\u0275\u0275elementEnd()),2&d){const a=t.\u0275\u0275nextContext();t.\u0275\u0275advance(1),t.\u0275\u0275textInterpolate(a.name)}}let i=(()=>{class d{}return d.\u0275fac=function(a){return new(a||d)},d.\u0275cmp=t.\u0275\u0275defineComponent({type:d,selectors:[["ds-comcol-page-header"]],inputs:{name:"name"},decls:1,vars:1,consts:[[4,"ngIf"]],template:function(a,p){1&a&&t.\u0275\u0275template(0,o,2,1,"h1",0),2&a&&t.\u0275\u0275property("ngIf",p.name)},dependencies:[n.O5]}),d})()},38187:(R,c,e)=>{"use strict";e.d(c,{e:()=>d}),e(59161);var n=e(94650),o=e(36895);function i(r,a){if(1&r){const p=n.\u0275\u0275getCurrentView();n.\u0275\u0275elementStart(0,"div",1)(1,"img",2),n.\u0275\u0275listener("error",function(m){n.\u0275\u0275restoreView(p);const _=n.\u0275\u0275nextContext();return n.\u0275\u0275resetView(_.errorHandler(m))}),n.\u0275\u0275elementEnd()()}if(2&r){const p=n.\u0275\u0275nextContext();n.\u0275\u0275advance(1),n.\u0275\u0275property("src",p.logo._links.content.href,n.\u0275\u0275sanitizeUrl),n.\u0275\u0275attribute("alt",p.alternateText?p.alternateText:null)}}let d=(()=>{class r{constructor(){this.holderSource="data:image/svg+xml;charset=UTF-8,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20width%3D%2293%22%20height%3D%22120%22%20viewBox%3D%220%200%2093%20120%22%20preserveAspectRatio%3D%22none%22%3E%3C!--%0ASource%20URL%3A%20holder.js%2F93x120%3Ftext%3DNo%20Thumbnail%0ACreated%20with%20Holder.js%202.8.2.%0ALearn%20more%20at%20http%3A%2F%2Fholderjs.com%0A(c)%202012-2015%20Ivan%20Malopinsky%20-%20http%3A%2F%2Fimsky.co%0A--%3E%3Cdefs%3E%3Cstyle%20type%3D%22text%2Fcss%22%3E%3C!%5BCDATA%5B%23holder_1543e460b05%20text%20%7B%20fill%3A%23AAAAAA%3Bfont-weight%3Abold%3Bfont-family%3AArial%2C%20Helvetica%2C%20Open%20Sans%2C%20sans-serif%2C%20monospace%3Bfont-size%3A10pt%20%7D%20%5D%5D%3E%3C%2Fstyle%3E%3C%2Fdefs%3E%3Cg%20id%3D%22holder_1543e460b05%22%3E%3Crect%20width%3D%2293%22%20height%3D%22120%22%20fill%3D%22%23EEEEEE%22%2F%3E%3Cg%3E%3Ctext%20x%3D%2235.6171875%22%20y%3D%2257%22%3ENo%3C%2Ftext%3E%3Ctext%20x%3D%2210.8125%22%20y%3D%2272%22%3EThumbnail%3C%2Ftext%3E%3C%2Fg%3E%3C%2Fg%3E%3C%2Fsvg%3E"}errorHandler(p){p.currentTarget.src=this.holderSource}}return r.\u0275fac=function(p){return new(p||r)},r.\u0275cmp=n.\u0275\u0275defineComponent({type:r,selectors:[["ds-comcol-page-logo"]],inputs:{logo:"logo",alternateText:"alternateText"},decls:1,vars:1,consts:[["class","dso-logo mb-3",4,"ngIf"],[1,"dso-logo","mb-3"],[1,"w-100","img-fluid",3,"src","error"]],template:function(p,h){1&p&&n.\u0275\u0275template(0,i,2,2,"div",0),2&p&&n.\u0275\u0275property("ngIf",h.logo)},dependencies:[o.O5],styles:["img[_ngcontent-%COMP%]{max-width:var(--ds-comcol-logo-max-width);max-height:var(--ds-comcol-logo-max-height)}"]}),r})()},18916:(R,c,e)=>{"use strict";e.d(c,{Y:()=>h});var t=e(94650),o=(e(42621),e(83616)),i=e(9769),d=e(36895),r=e(89383);function a(m,_){if(1&m&&t.\u0275\u0275element(0,"i"),2&m){const v=t.\u0275\u0275nextContext();t.\u0275\u0275classMap(v.confirmIcon)}}const p=function(m){return{dsoName:m}};let h=(()=>{class m{constructor(v,E){this.activeModal=v,this.dsoNameService=E,this.brandColor="primary",this.response=new t.EventEmitter}confirmPressed(){this.response.emit(!0),this.close()}cancelPressed(){this.response.emit(!1),this.close()}close(){this.activeModal.close()}}return m.\u0275fac=function(v){return new(v||m)(t.\u0275\u0275directiveInject(i.Kz),t.\u0275\u0275directiveInject(o._))},m.\u0275cmp=t.\u0275\u0275defineComponent({type:m,selectors:[["ds-confirmation-modal"]],inputs:{headerLabel:"headerLabel",infoLabel:"infoLabel",cancelLabel:"cancelLabel",confirmLabel:"confirmLabel",confirmIcon:"confirmIcon",brandColor:"brandColor",dso:"dso"},outputs:{response:"response"},decls:20,vars:28,consts:[[1,"modal-header"],["type","button","aria-label","Close",1,"close",3,"click"],["aria-hidden","true"],[1,"modal-body"],[1,"modal-footer"],["type","button","aria-label","Cancel",1,"cancel","btn","btn-outline-secondary",3,"click"],[1,"fas","fa-times"],["type","button","aria-label","Confirm","ngbAutofocus","",3,"click"],[3,"class",4,"ngIf"]],template:function(v,E){1&v&&(t.\u0275\u0275elementStart(0,"div")(1,"div",0),t.\u0275\u0275text(2),t.\u0275\u0275pipe(3,"translate"),t.\u0275\u0275elementStart(4,"button",1),t.\u0275\u0275listener("click",function(){return E.close()}),t.\u0275\u0275elementStart(5,"span",2),t.\u0275\u0275text(6,"\xd7"),t.\u0275\u0275elementEnd()()(),t.\u0275\u0275elementStart(7,"div",3)(8,"p"),t.\u0275\u0275text(9),t.\u0275\u0275pipe(10,"translate"),t.\u0275\u0275elementEnd()(),t.\u0275\u0275elementStart(11,"div",4)(12,"button",5),t.\u0275\u0275listener("click",function(){return E.cancelPressed()}),t.\u0275\u0275element(13,"i",6),t.\u0275\u0275text(14),t.\u0275\u0275pipe(15,"translate"),t.\u0275\u0275elementEnd(),t.\u0275\u0275elementStart(16,"button",7),t.\u0275\u0275listener("click",function(){return E.confirmPressed()}),t.\u0275\u0275template(17,a,1,3,"i",8),t.\u0275\u0275text(18),t.\u0275\u0275pipe(19,"translate"),t.\u0275\u0275elementEnd()()()),2&v&&(t.\u0275\u0275advance(2),t.\u0275\u0275textInterpolate1("",t.\u0275\u0275pipeBind2(3,8,E.headerLabel,t.\u0275\u0275pureFunction1(20,p,E.dsoNameService.getName(E.dso)))," "),t.\u0275\u0275advance(7),t.\u0275\u0275textInterpolate(t.\u0275\u0275pipeBind2(10,11,E.infoLabel,t.\u0275\u0275pureFunction1(22,p,E.dsoNameService.getName(E.dso)))),t.\u0275\u0275advance(5),t.\u0275\u0275textInterpolate1(" ",t.\u0275\u0275pipeBind2(15,14,E.cancelLabel,t.\u0275\u0275pureFunction1(24,p,E.dsoNameService.getName(E.dso)))," "),t.\u0275\u0275advance(2),t.\u0275\u0275classMapInterpolate1("confirm btn btn-",E.brandColor,""),t.\u0275\u0275advance(1),t.\u0275\u0275property("ngIf",E.confirmIcon),t.\u0275\u0275advance(1),t.\u0275\u0275textInterpolate1(" ",t.\u0275\u0275pipeBind2(19,17,E.confirmLabel,t.\u0275\u0275pureFunction1(26,p,E.dsoNameService.getName(E.dso)))," "))},dependencies:[d.O5,r.X$],encapsulation:2}),m})()},82213:(R,c,e)=>{"use strict";e.d(c,{$:()=>C});var t=e(61135),n=e(39841),o=e(71884),i=e(86099),d=e(54004),r=e(58889),a=e(24702),p=e(94650),h=e(89383),m=e(36895),_=e(9769);const v=["tooltip"];function E(I,g){if(1&I&&(p.\u0275\u0275elementContainerStart(0),p.\u0275\u0275elementStart(1,"a",6),p.\u0275\u0275text(2),p.\u0275\u0275elementEnd(),p.\u0275\u0275elementContainerEnd()),2&I){const B=p.\u0275\u0275nextContext().$implicit;p.\u0275\u0275advance(1),p.\u0275\u0275propertyInterpolate("href",B.href,p.\u0275\u0275sanitizeUrl),p.\u0275\u0275advance(1),p.\u0275\u0275textInterpolate(B.text)}}function O(I,g){if(1&I&&(p.\u0275\u0275elementContainerStart(0),p.\u0275\u0275text(1),p.\u0275\u0275elementContainerEnd()),2&I){const B=p.\u0275\u0275nextContext().$implicit;p.\u0275\u0275advance(1),p.\u0275\u0275textInterpolate1(" ",B," ")}}function b(I,g){if(1&I&&(p.\u0275\u0275elementContainerStart(0),p.\u0275\u0275template(1,E,3,2,"ng-container",5),p.\u0275\u0275template(2,O,2,1,"ng-container",5),p.\u0275\u0275elementContainerEnd()),2&I){const B=g.$implicit;p.\u0275\u0275advance(1),p.\u0275\u0275property("ngIf",B.href),p.\u0275\u0275advance(1),p.\u0275\u0275property("ngIf",void 0===B.href)}}function M(I,g){if(1&I&&(p.\u0275\u0275elementStart(0,"div",3),p.\u0275\u0275template(1,b,3,2,"ng-container",4),p.\u0275\u0275pipe(2,"async"),p.\u0275\u0275elementEnd()),2&I){const B=p.\u0275\u0275nextContext();
1p.\u0275\u0275advance(1),p.\u0275\u0275property("ngForOf",p.\u0275\u0275pipeBind1(2,1,B.parsedContent$))}}const P=function(I,g){return{"ds-context-help-icon fas fa-question-circle shadow-sm":!0,"ds-context-help-icon-right":I,"ds-context-help-icon-left":g}};function D(I,g){if(1&I){const B=p.\u0275\u0275getCurrentView();p.\u0275\u0275elementStart(0,"i",7,8),p.\u0275\u0275listener("click",function(){p.\u0275\u0275restoreView(B);const V=p.\u0275\u0275nextContext();return p.\u0275\u0275resetView(V.onClick())}),p.\u0275\u0275elementEnd()}if(2&I){const B=p.\u0275\u0275nextContext(),L=p.\u0275\u0275reference(1);p.\u0275\u0275property("ngClass",p.\u0275\u0275pureFunction2(3,P,"left"!==B.iconPlacement,"left"===B.iconPlacement))("ngbTooltip",L)("placement",B.tooltipPlacement)}}function l(I,g){1&I&&p.\u0275\u0275elementContainer(0)}let C=(()=>{class I{constructor(B,L){this.translateService=B,this.contextHelpService=L,this.tooltipPlacement=[],this.iconPlacement="left",this.dontParseLinks$=new t.X(!1),this.content$=new t.X(void 0),this.subs=[]}set dontParseLinks(B){this.dontParseLinks$.next(B)}set content(B){this.content$.next(B)}ngOnInit(){this.parsedContent$=(0,n.a)([this.content$.pipe((0,o.x)(),(0,i.z)(B=>this.translateService.get(B))),this.dontParseLinks$.pipe((0,o.x)())]).pipe((0,d.U)(([B,L])=>L?[B]:this.parseLinks(B))),this.shouldShowIcon$=this.contextHelpService.shouldShowIcons$()}set setTooltip(B){this.tooltip=B,this.clearSubs(),void 0!==this.tooltip&&(this.subs=[this.contextHelpService.getContextHelp$(this.id).pipe((0,a.tz)()).subscribe(L=>{L.isTooltipVisible&&!this.tooltip.isOpen()?this.tooltip.open():!L.isTooltipVisible&&this.tooltip.isOpen()&&this.tooltip.close()}),this.tooltip.shown.subscribe(()=>{this.contextHelpService.showTooltip(this.id)}),this.tooltip.hidden.subscribe(()=>{this.contextHelpService.hideTooltip(this.id)})])}ngOnDestroy(){this.clearSubs()}onClick(){this.contextHelpService.toggleTooltip(this.id)}parseLinks(B){const V=/^\[([^\]]*)\]\(([^\)]*)\)$/;return B.match(/[^\[]+|\[([^\]]*)\]\(([^\)]*)\)/g).map(Y=>{const X=Y.match(V);return null===X?Y:{href:X[2],text:X[1]}})}clearSubs(){this.subs.forEach(B=>B.unsubscribe()),this.subs=[]}}return I.\u0275fac=function(B){return new(B||I)(p.\u0275\u0275directiveInject(h.sK),p.\u0275\u0275directiveInject(r.p))},I.\u0275cmp=p.\u0275\u0275defineComponent({type:I,selectors:[["ds-context-help-wrapper"]],viewQuery:function(B,L){if(1&B&&p.\u0275\u0275viewQuery(v,5),2&B){let V;p.\u0275\u0275queryRefresh(V=p.\u0275\u0275loadQuery())&&(L.setTooltip=V.first)}},inputs:{templateRef:"templateRef",id:"id",tooltipPlacement:"tooltipPlacement",iconPlacement:"iconPlacement",dontParseLinks:"dontParseLinks",content:"content"},decls:5,vars:4,consts:[["help",""],["autoClose","outside","triggers","manual","container","body",3,"ngClass","ngbTooltip","placement","click",4,"ngIf"],[4,"ngTemplateOutlet"],[1,"preserve-line-breaks","ds-context-help-content"],[4,"ngFor","ngForOf"],[4,"ngIf"],["target","_blank","rel","noopener noreferrer",3,"href"],["autoClose","outside","triggers","manual","container","body",3,"ngClass","ngbTooltip","placement","click"],["tooltip","ngbTooltip"]],template:function(B,L){1&B&&(p.\u0275\u0275template(0,M,3,3,"ng-template",null,0,p.\u0275\u0275templateRefExtractor),p.\u0275\u0275template(2,D,2,6,"i",1),p.\u0275\u0275pipe(3,"async"),p.\u0275\u0275template(4,l,1,0,"ng-container",2)),2&B&&(p.\u0275\u0275advance(2),p.\u0275\u0275property("ngIf",p.\u0275\u0275pipeBind1(3,2,L.shouldShowIcon$)),p.\u0275\u0275advance(2),p.\u0275\u0275property("ngTemplateOutlet",L.templateRef))},dependencies:[m.mk,m.sg,m.O5,m.tP,_._L,m.Ov],styles:["[_nghost-%COMP%]{position:relative}.ds-context-help-icon[_ngcontent-%COMP%]{position:absolute;top:0;cursor:pointer;color:var(--bs-info);background-color:var(--bs-white);font-size:16px;line-height:1;border-radius:50%}.ds-context-help-icon-left[_ngcontent-%COMP%]{left:var(--ds-context-x-offset)}.ds-context-help-icon-right[_ngcontent-%COMP%]{right:calc(-1 * var(--ds-context-help-icon-size))} .tooltip-inner{width:var(--ds-context-help-tooltip-width);max-width:var(--ds-context-help-tooltip-width)} .tooltip-inner a{color:var(--ds-context-help-tooltip-link-color);text-decoration:underline}"]}),I})()},790:(R,c,e)=>{"use strict";e.d(c,{E_:()=>a,IG:()=>p,Ts:()=>n,Y2:()=>d,bZ:()=>h,ee:()=>o,ux:()=>i});var t=e(79472);const n={CONTEXT_HELP_TOGGLE_ICONS:(0,t.d)("dspace/context-help/CONTEXT_HELP_TOGGLE_ICONS"),CONTEXT_HELP_ADD:(0,t.d)("dspace/context-help/CONTEXT_HELP_ADD"),CONTEXT_HELP_REMOVE:(0,t.d)("dspace/context-help/CONTEXT_HELP_REMOVE"),CONTEXT_HELP_TOGGLE_TOOLTIP:(0,t.d)("dspace/context-help/CONTEXT_HELP_TOGGLE_TOOLTIP"),CONTEXT_HELP_SHOW_TOOLTIP:(0,t.d)("dspace/context-help/CONTEXT_HELP_SHOW_TOOLTIP"),CONTEXT_HELP_HIDE_TOOLTIP:(0,t.d)("dspace/context-help/CONTEXT_HELP_HIDE_TOOLTIP")};class o{constructor(){this.type=n.CONTEXT_HELP_TOGGLE_ICONS}}class i{constructor(_){this.type=n.CONTEXT_HELP_ADD,this.model=_}}class d{constructor(_){this.type=n.CONTEXT_HELP_REMOVE,this.id=_}}
1class r{constructor(_){this.id=_}}class a extends r{constructor(){super(...arguments),this.type=n.CONTEXT_HELP_TOGGLE_TOOLTIP}}class p extends r{constructor(){super(...arguments),this.type=n.CONTEXT_HELP_SHOW_TOOLTIP}}class h extends r{constructor(){super(...arguments),this.type=n.CONTEXT_HELP_HIDE_TOOLTIP}}},92911:(R,c,e)=>{"use strict";e.d(c,{A:()=>d});var t=e(82213),n=e(58889),o=e(24702),i=e(94650);let d=(()=>{class r{constructor(p,h,m){this.templateRef=p,this.viewContainerRef=h,this.contextHelpService=m,this.mostRecentId=void 0}ngOnChanges(){this.clearMostRecentId(),this.mostRecentId=this.dsContextHelp.id,this.contextHelpService.add({id:this.dsContextHelp.id,isTooltipVisible:!1}),void 0===this.wrapper&&(this.wrapper=this.viewContainerRef.createComponent(t.$)),this.wrapper.setInput("templateRef",this.templateRef),this.wrapper.setInput("content",this.dsContextHelp.content),this.wrapper.setInput("id",this.dsContextHelp.id),this.wrapper.setInput("tooltipPlacement",this.dsContextHelp.tooltipPlacement),this.wrapper.setInput("iconPlacement",this.dsContextHelp.iconPlacement)}ngOnDestroy(){this.clearMostRecentId(),(0,o.Uh)(this.wrapper)&&(this.wrapper.destroy(),this.wrapper=void 0)}clearMostRecentId(){void 0!==this.mostRecentId&&this.contextHelpService.remove(this.mostRecentId)}}return r.\u0275fac=function(p){return new(p||r)(i.\u0275\u0275directiveInject(i.TemplateRef),i.\u0275\u0275directiveInject(i.ViewContainerRef),i.\u0275\u0275directiveInject(n.p))},r.\u0275dir=i.\u0275\u0275defineDirective({type:r,selectors:[["","dsContextHelp",""]],inputs:{dsContextHelp:"dsContextHelp"},features:[i.\u0275\u0275NgOnChangesFeature]}),r})()},58889:(R,c,e)=>{"use strict";e.d(c,{p:()=>h});var t=e(89653),n=e(790),o=e(54004),i=e(94650);const d=(0,t.ZF)("contextHelp"),r=(0,t.P1)(d,m=>m.allIconsVisible),p=(0,t.P1)(d,m=>m.models);let h=(()=>{class m{constructor(v){this.store=v}shouldShowIcons$(){return this.store.pipe((0,t.Ys)(r))}getContextHelp$(v){return this.store.pipe((0,t.Ys)((m=>(0,t.P1)(d,_=>_.models[m]))(v)))}tooltipCount$(){return this.store.pipe((0,t.Ys)(p)).pipe((0,o.U)(v=>Object.keys(v).length))}toggleIcons(){this.store.dispatch(new n.ee)}add(v){this.store.dispatch(new n.ux(v))}remove(v){this.store.dispatch(new n.Y2(v))}toggleTooltip(v){this.store.dispatch(new n.E_(v))}showTooltip(v){this.store.dispatch(new n.IG(v))}hideTooltip(v){this.store.dispatch(new n.bZ(v))}}return m.\u0275fac=function(v){return new(v||m)(i.\u0275\u0275inject(t.yh))},m.\u0275prov=i.\u0275\u0275defineInjectable({token:m,factory:m.\u0275fac,providedIn:"root"}),m})()},92834:(R,c,e)=>{"use strict";e.d(c,{D:()=>n});var t=e(94650);let n=(()=>{class o{}return o.\u0275fac=function(d){return new(d||o)},o.\u0275prov=t.\u0275\u0275defineInjectable({token:o,factory:o.\u0275fac}),o})()},63162:(R,c,e)=>{"use strict";e.d(c,{iV:()=>_,UW:()=>b,UV:()=>m,qb:()=>M,bj:()=>E,Ks:()=>P});var t=e(30298);function n(D){return(n="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(l){return typeof l}:function(l){return l&&"function"==typeof Symbol&&l.constructor===Symbol&&l!==Symbol.prototype?"symbol":typeof l})(D)}function o(D,l){if(l.length<D)throw new TypeError(D+" argument"+(D>1?"s":"")+" required, but only "+l.length+" present")}var a=e(25940),p=e.n(a),h=e(24702);function m(D){return p()(D)&&D.hasOwnProperty("day")&&D.hasOwnProperty("month")&&D.hasOwnProperty("year")}function _(D){const l=D instanceof Date?D:v("string"==typeof D?E(D):D);return(0,t.formatInTimeZone)(l,"UTC","yyyy-MM-dd'T'HH:mm:ss'Z'")}function v(D){return new Date(Date.UTC(D.year,D.month-1,D.day))}function E(D){return function O(D){return(0,h.xI)(D)&&(D=new Date),{year:D.getUTCFullYear(),month:D.getUTCMonth()+1,day:D.getUTCDate()}}(new Date(D))}function b(D){const l=D instanceof Date?D:v(D);return(0,t.formatInTimeZone)(l,"UTC","yyyy-MM-dd")}function M(D){return!(0,h.xI)(D)&&function r(D){if(o(1,arguments),!function i(D){return o(1,arguments),D instanceof Date||"object"===n(D)&&"[object Date]"===Object.prototype.toString.call(D)}(D)&&"number"!=typeof D)return!1;var l=function d(D){o(1,arguments);var l=Object.prototype.toString.call(D);return D instanceof Date||"object"===n(D)&&"[object Date]"===l?new Date(D.getTime()):"number"==typeof D||"[object Number]"===l?new Date(D):(("string"==typeof D||"[object String]"===l)&&typeof console<"u"&&(console.warn("Starting with v2.0.0-beta.
11 date-fns doesn't accept strings as date arguments. Please use `parseISO` to parse strings. See: https://github.com/date-fns/date-fns/blob/master/docs/upgradeGuide.md#string-arguments"),console.warn((new Error).stack)),new Date(NaN))}(D);return!isNaN(Number(l))}(new Date(D))}function P(D){return M(D)?new Date(D).getUTCFullYear():null}},40354:(R,c,e)=>{"use strict";e.d(c,{N:()=>h});var t=e(94650),n=e(36895),o=e(9769),i=e(25575),d=e(89383);function r(m,_){if(1&m&&(t.\u0275\u0275elementStart(0,"div",4)(1,"span",5),t.\u0275\u0275text(2),t.\u0275\u0275pipe(3,"translate"),t.\u0275\u0275elementEnd()()),2&m){const v=t.\u0275\u0275nextContext();t.\u0275\u0275advance(2),t.\u0275\u0275textInterpolate1(" ",t.\u0275\u0275pipeBind1(3,1,v.label)," ")}}const a=[[["",8,"selection"]],[["",8,"menu"]]],p=[".selection",".menu"];let h=(()=>{class m{constructor(){this.toggled=new t.EventEmitter,this.close=new t.EventEmitter}}return m.\u0275fac=function(v){return new(v||m)},m.\u0275cmp=t.\u0275\u0275defineComponent({type:m,selectors:[["ds-select"]],inputs:{label:"label",disabled:"disabled"},outputs:{toggled:"toggled",close:"close"},ngContentSelectors:p,decls:8,vars:2,consts:[["ngbDropdown","",1,"btn-group",3,"openChange"],["class","input-group-prepend",4,"ngIf"],["aria-describedby","dsSelectMenuLabel","id","dsSelectMenuButton","ngbDropdownToggle","",1,"btn","btn-outline-primary","selection",3,"dsBtnDisabled","blur","click"],["ngbDropdownMenu","","id","dsSelectDropdownMenu","aria-labelledby","dsSelectMenuButton",1,"dropdown-menu"],[1,"input-group-prepend"],["id","dsSelectMenuLabel",1,"input-group-text"]],template:function(v,E){1&v&&(t.\u0275\u0275projectionDef(a),t.\u0275\u0275elementStart(0,"div")(1,"div",0),t.\u0275\u0275listener("openChange",function(b){return E.toggled.emit(b)}),t.\u0275\u0275template(2,r,4,3,"div",1),t.\u0275\u0275elementStart(3,"button",2),t.\u0275\u0275listener("blur",function(b){return E.close.emit(b)})("click",function(b){return E.close.emit(b)}),t.\u0275\u0275projection(4),t.\u0275\u0275elementEnd(),t.\u0275\u0275elementStart(5,"div",3)(6,"div"),t.\u0275\u0275projection(7,1),t.\u0275\u0275elementEnd()()()()),2&v&&(t.\u0275\u0275advance(2),t.\u0275\u0275property("ngIf",E.label),t.\u0275\u0275advance(1),t.\u0275\u0275property("dsBtnDisabled",E.disabled))},dependencies:[n.O5,o.jt,o.iD,o.Vi,i.v,d.X$]}),m})()},45792:(R,c,e)=>{"use strict";e.d(c,{M:()=>j});var t=e(39646),n=e(39841),o=e(47235),i=e(54541),d=e(19937),r=e(33609),a=e(68285),p=e(63900),h=e(54004),m=e(83360),_=e(23631),v=e(18505),E=e(6164),O=e(65120),b=e(85019),M=e(83639),P=e(90534),D=e(53876),l=e(94650),C=e(9769),I=e(34793);let g=(()=>{class k{constructor(ie,ne,q,oe,ce,ye,Me){this.modalService=ie,this.versionService=ne,this.versionHistoryService=q,this.itemVersionShared=oe,this.router=ce,this.workspaceItemDataService=ye,this.itemService=Me}openCreateVersionModal(ie){const ne=ie,q=ne._links.version.href,oe=this.modalService.open(D.u);this.versionService.findByHref(q).pipe((0,a.hC)()).subscribe(ce=>{oe.componentInstance.firstVersion=ce.hasNoContent,oe.componentInstance.versionNumber=ce.hasNoContent?void 0:ce.payload.version}),oe.componentInstance.createVersionEvent.pipe((0,p.w)(ce=>this.versionHistoryService.createVersion(ne._links.self.href,ce)),(0,a.hC)(),(0,v.b)(()=>oe.close()),(0,v.b)(ce=>{this.itemVersionShared.notifyCreateNewVersion(ce)}),(0,a.Gp)(),(0,p.w)(ce=>this.itemService.findByHref(ce._links.item.href)),(0,a.Gp)(),(0,p.w)(ce=>this.workspaceItemDataService.findByItem(ce.uuid,!0,!1)),(0,a.Gp)()).subscribe(ce=>{this.router.navigateByUrl("workspaceitems/"+ce.id+"/edit")})}isNewVersionButtonDisabled(ie){return this.versionHistoryService.hasDraftVersion$(ie._links.version.href).pipe((0,h.U)(ne=>Boolean(ne)))}getVersioningTooltipMessage(ie,ne,q){return this.isNewVersionButtonDisabled(ie).pipe((0,p.w)(oe=>(0,t.of)(oe?ne:q)))}}return k.\u0275fac=function(ie){return new(ie||k)(l.\u0275\u0275inject(C.FF),l.\u0275\u0275inject(E._),l.\u0275\u0275inject(O.Q),l.\u0275\u0275inject(P.D),l.\u0275\u0275inject(I.F0),l.\u0275\u0275inject(b.p),l.\u0275\u0275inject(M.S))},k.\u0275prov=l.\u0275\u0275defineInjectable({token:k,factory:k.\u0275fac,providedIn:"root"}),k})();var B=e(24702),L=e(78969),V=e(58460),Y=e(50503),X=e(96577),te=e(46418),K=e(32981),ee=e(21721),ae=e(22979),Q=e(89383);let j=(()=>{class k{constructor(ie,ne,q,oe,ce,ye,Me,Ee){this.dSpaceObjectDataService=ie,this.menuService=ne,this.authorizationService=q,this.modalService=oe,this.dsoVersioningModalService=ce,this.researcherProfileService=ye,this.notificationsService=Me,this.translate=Ee}resolve(ie,ne){let q=ie.params.id;return(0,B.xI)(q)&&(0,B.Uh)(ie.queryParams.scope)&&(q=ie.queryParams.scope),(0,B.xI)(q)?(0,t.of)({...ie.data?.menu}):this.dSpaceObjectDataService.findById(q,!0,!1).pipe((0,a.hC)(),(0,p.w)(oe=>{if(oe.hasSucceeded){const ce=oe.payload;return(0,n.a)(this.getDsoMenus(ce,ie,ne)).pipe((0,h.U)(ye=>[].concat.apply([],ye)),(0,h.U)(ye=>this.addDsoUuidToMenuIDs(ye,ce)),(0,h.U)(ye=>({...ie.data?.menu,[L.z.DSO_EDIT]:ye})))}return(0,t.of)({...ie.data?.menu})}))}getDsoMenus(ie,ne,q){return[this.getItemMenu(ie),this.getComColMenu(ie),this.getCommonMenu(ie,q)]}getCommonMenu(ie,ne){return(0,n.a)([this.authorizationService.isAuthorized(o.i.CanEditMetadata,ie.self)]).pipe((0,h.U)(([q])=>
1[{id:"edit-dso",active:!1,visible:q,model:{type:V.U.LINK,text:this.getDsoType(ie)+".page.edit",link:new _.R((0,Y.Y4)(ie),"edit","metadata").toString()},icon:"pencil-alt",index:2}]))}getItemMenu(ie){return ie instanceof r.c?(0,n.a)([this.authorizationService.isAuthorized(o.i.CanCreateVersion,ie.self),this.dsoVersioningModalService.isNewVersionButtonDisabled(ie),this.dsoVersioningModalService.getVersioningTooltipMessage(ie,"item.page.version.hasDraft","item.page.version.create"),this.authorizationService.isAuthorized(o.i.CanSynchronizeWithORCID,ie.self),this.authorizationService.isAuthorized(o.i.CanClaimItem,ie.self)]).pipe((0,h.U)(([ne,q,oe,ce,ye])=>{const Me="person"===this.getDsoType(ie);return[{id:"orcid-dso",active:!1,visible:Me&&ce,model:{type:V.U.LINK,text:"item.page.orcid.tooltip",link:new _.R((0,Y.Y4)(ie),"orcid").toString()},icon:"orcid fab fa-lg",index:0},{id:"version-dso",active:!1,visible:ne,model:{type:V.U.ONCLICK,text:oe,disabled:q,function:()=>{this.dsoVersioningModalService.openCreateVersionModal(ie)}},icon:"code-branch",index:1},{id:"claim-dso",active:!1,visible:Me&&ye,model:{type:V.U.ONCLICK,text:"item.page.claim.button",function:()=>{this.claimResearcher(ie)}},icon:"hand-paper",index:3}]})):(0,t.of)([])}getComColMenu(ie){return ie instanceof ee.S||ie instanceof ae.F?(0,n.a)([this.authorizationService.isAuthorized(o.i.CanSubscribe,ie.self)]).pipe((0,h.U)(([ne])=>[{id:"subscribe",active:!1,visible:ne,model:{type:V.U.ONCLICK,text:"subscriptions.tooltip",function:()=>{this.modalService.open(K.W).componentInstance.dso=ie}},icon:"bell",index:4}])):(0,t.of)([])}claimResearcher(ie){this.researcherProfileService.createFromExternalSourceAndReturnRelatedItemId(ie.self).subscribe(ne=>{(0,B.UE)(ne)?(this.notificationsService.success(this.translate.get("researcherprofile.success.claim.title"),this.translate.get("researcherprofile.success.claim.body")),this.authorizationService.invalidateAuthorizationsRequestCache(),this.menuService.hideMenuSection(L.z.DSO_EDIT,"claim-dso-"+ie.uuid)):this.notificationsService.error(this.translate.get("researcherprofile.error.claim.title"),this.translate.get("researcherprofile.error.claim.body"))})}getDsoType(ie){const ne=ie.getRenderTypes()[0];return"string"==typeof ne||ne instanceof String?ne.toLowerCase():ie.type.toString().toLowerCase()}addDsoUuidToMenuIDs(ie,ne){return ie.map(q=>(Object.assign(q,{id:q.id+"-"+ne.uuid}),(0,B.Uh)(q.parentID)&&Object.assign(q,{parentID:q.parentID+"-"+ne.uuid}),q))}}return k.\u0275fac=function(ie){return new(ie||k)(l.\u0275\u0275inject(m.D),l.\u0275\u0275inject(i.h),l.\u0275\u0275inject(d._),l.\u0275\u0275inject(C.FF),l.\u0275\u0275inject(g),l.\u0275\u0275inject(X.E),l.\u0275\u0275inject(te.T),l.\u0275\u0275inject(Q.sK))},k.\u0275prov=l.\u0275\u0275defineInjectable({token:k,factory:k.\u0275fac,providedIn:"root"}),k})()},74009:(R,c,e)=>{"use strict";e.d(c,{g:()=>_});var t=e(19937),n=e(32250),o=e(54541),i=e(55784),d=e(78969),r=e(94650),a=e(34793),p=e(36895);function h(v,E){1&v&&r.\u0275\u0275elementContainer(0)}function m(v,E){if(1&v&&(r.\u0275\u0275elementStart(0,"div",2),r.\u0275\u0275template(1,h,1,0,"ng-container",3),r.\u0275\u0275pipe(2,"async"),r.\u0275\u0275pipe(3,"async"),r.\u0275\u0275elementEnd()),2&v){const O=E.$implicit,b=r.\u0275\u0275nextContext();let M,P;r.\u0275\u0275advance(1),r.\u0275\u0275property("ngComponentOutlet",null==(M=r.\u0275\u0275pipeBind1(2,2,b.sectionMap$).get(O.id))?null:M.component)("ngComponentOutletInjector",null==(P=r.\u0275\u0275pipeBind1(3,4,b.sectionMap$).get(O.id))?null:P.injector)}}let _=(()=>{class v extends n.M{constructor(O,b,M,P,D){super(O,b,M,P,D),this.menuService=O,this.injector=b,this.authorizationService=M,this.route=P,this.themeService=D,this.menuID=d.z.DSO_EDIT}}return v.\u0275fac=function(O){return new(O||v)(r.\u0275\u0275directiveInject(o.h),r.\u0275\u0275directiveInject(r.Injector),r.\u0275\u0275directiveInject(t._),r.\u0275\u0275directiveInject(a.gz),r.\u0275\u0275directiveInject(i.fY))},v.\u0275cmp=r.\u0275\u0275defineComponent({type:v,selectors:[["ds-dso-edit-menu"]],features:[r.\u0275\u0275InheritDefinitionFeature],decls:3,vars:3,consts:[[1,"dso-edit-menu","d-flex"],["class","ml-1",4,"ngFor","ngForOf"],[1,"ml-1"],[4,"ngComponentOutlet","ngComponentOutletInjector"]],template:function(O,b){1&O&&(r.\u0275\u0275elementStart(0,"div",0),r.\u0275\u0275template(1,m,4,6,"div",1),r.\u0275\u0275pipe(2,"async"),r.\u0275\u0275elementEnd()),2&O&&(r.\u0275\u0275advance(1),r.\u0275\u0275property("ngForOf",r.\u0275\u0275pipeBind1(2,1,b.sections)))},dependencies:[p.$G,p.sg,p.Ov]}),v})()},53330:(R,c,e)=>{"use strict";e.d(c,{$:()=>X});var t=e(36023),n=e(5164),o=e(36391),i=e(68285),d=e(54004),r=e(80251),a=e(24789),p=e(93369),h=e(15600),m=e(24702),_=e(46418),v=e(83616),E=e(94650),O=e(89383),b=e(36895),M=e(24006),P=e(77296),D=e(48106),l=e(91538),C=e(81083);const I=function(te){return{type:te}};function g(te,K){if(1&te&&(E.\u0275\u0275elementStart(0,"button",9),E.\u0275\u0275text(1),E.\u0275\u0275pipe(2,"translate"),E.\u0275\u0275elementEnd()),2&te){const ee=E.\u0275\u0275nextContext(2);E.\u0275\u0275advance(1),E.\u0275\u0275textInterpolate1(" ",E.\u0275\u0275pipeBind2(2,1,"dso-selector.no-results",E.\u0275\u0275pureFunction1(4,I,ee.typesString))," ")}}const B=function(te){return{"bg-primary":te}};function L(te,K){if(1&te){const ee=E.\u0275\u0275getCurrentView();E.\u0275\u0275elementStart(0,"button",10,11),E.\u0275\u0275listener("click",function(){const j=E.\u0275\u0275restoreView(ee).$implicit,k=E.\u0275\u0275nextContext(2);
1return E.\u0275\u0275resetView(k.onClick(j))}),E.\u0275\u0275element(2,"ds-listable-object-component-loader",12),E.\u0275\u0275elementEnd()}if(2&te){const ee=K.$implicit,ae=E.\u0275\u0275nextContext(2);E.\u0275\u0275propertyInterpolate("title",ae.getName(ee)),E.\u0275\u0275property("ngClass",E.\u0275\u0275pureFunction1(6,B,ee.id===ae.currentDSOId)),E.\u0275\u0275advance(2),E.\u0275\u0275property("object",ee)("viewMode",ae.viewMode)("linkType",ae.linkTypes.None)("context",ae.getContext(ee.id))}}function V(te,K){if(1&te&&(E.\u0275\u0275elementContainerStart(0),E.\u0275\u0275template(1,g,3,6,"button",7),E.\u0275\u0275pipe(2,"async"),E.\u0275\u0275template(3,L,3,8,"button",8),E.\u0275\u0275pipe(4,"async"),E.\u0275\u0275elementContainerEnd()),2&te){const ee=E.\u0275\u0275nextContext();E.\u0275\u0275advance(1),E.\u0275\u0275property("ngIf",0==E.\u0275\u0275pipeBind1(2,2,ee.listEntries$).length),E.\u0275\u0275advance(2),E.\u0275\u0275property("ngForOf",E.\u0275\u0275pipeBind1(4,4,ee.listEntries$))}}function Y(te,K){1&te&&(E.\u0275\u0275elementStart(0,"button",13),E.\u0275\u0275pipe(1,"translate"),E.\u0275\u0275element(2,"ds-themed-loading",14),E.\u0275\u0275elementEnd()),2&te&&(E.\u0275\u0275propertyInterpolate("title",E.\u0275\u0275pipeBind1(1,2,"loading.default")),E.\u0275\u0275advance(2),E.\u0275\u0275property("showMessage",!1))}let X=(()=>{class te extends t.O{constructor(ee,ae,Q,j,k){super(ee,Q,j,k),this.searchService=ee,this.collectionDataService=ae,this.notifcationsService=Q,this.translate=j,this.dsoNameService=k}getCurrentDSOQuery(){return this.currentDSOId}search(ee,ae,Q=!0){let j=null;const k={currentPage:ae,elementsPerPage:this.defaultPagination.pageSize};return j=this.entityType?this.collectionDataService.getAuthorizedCollectionByEntityType(ee,this.entityType,k):this.collectionDataService.getAuthorizedCollection(ee,k,Q,!1,(0,p.l)("parentCommunity")),j.pipe((0,i.hC)(),(0,d.U)(G=>Object.assign(new h.N(null,null,null,null),G,{payload:(0,m.Uh)(G.payload)?(0,a.b)(G.payload.pageInfo,G.payload.page.map(ie=>Object.assign(new r.o,{indexableObject:ie}))):null})))}}return te.\u0275fac=function(ee){return new(ee||te)(E.\u0275\u0275directiveInject(n.o),E.\u0275\u0275directiveInject(o.W),E.\u0275\u0275directiveInject(_.T),E.\u0275\u0275directiveInject(O.sK),E.\u0275\u0275directiveInject(v._))},te.\u0275cmp=E.\u0275\u0275defineComponent({type:te,selectors:[["ds-authorized-collection-selector"]],inputs:{entityType:"entityType"},features:[E.\u0275\u0275InheritDefinitionFeature],decls:10,vars:22,consts:[[1,"form-group","w-100","pr-2","pl-2"],["type","search","ngbAutofocus","",1,"form-control",3,"placeholder","formControl","click","keyup.enter"],[1,"dropdown-divider"],[1,"scrollable-menu","list-group",3,"id"],["infiniteScroll","",3,"infiniteScrollDistance","infiniteScrollThrottle","infiniteScrollContainer","fromRoot","scrolled"],[4,"ngIf"],["class","list-group-item list-group-item-action border-0 list-entry",3,"title",4,"ngIf"],["class","list-group-item list-group-item-action border-0 disabled",4,"ngIf"],["class","list-group-item list-group-item-action border-0 list-entry","dsHoverClass","ds-hover",3,"ngClass","title","click",4,"ngFor","ngForOf"],[1,"list-group-item","list-group-item-action","border-0","disabled"],["dsHoverClass","ds-hover",1,"list-group-item","list-group-item-action","border-0","list-entry",3,"ngClass","title","click"],["listEntryElement",""],[3,"object","viewMode","linkType","context"],[1,"list-group-item","list-group-item-action","border-0","list-entry",3,"title"],[3,"showMessage"]],template:function(ee,ae){1&ee&&(E.\u0275\u0275elementStart(0,"div",0)(1,"input",1),E.\u0275\u0275listener("click",function(j){return j.stopPropagation()})("keyup.enter",function(){return ae.selectSingleResult()}),E.\u0275\u0275pipe(2,"translate"),E.\u0275\u0275pipe(3,"translate"),E.\u0275\u0275elementEnd()(),E.\u0275\u0275element(4,"div",2),E.\u0275\u0275elementStart(5,"div",3)(6,"div",4),E.\u0275\u0275listener("scrolled",function(){return ae.onScrollDown()}),E.\u0275\u0275template(7,V,5,6,"ng-container",5),E.\u0275\u0275pipe(8,"async"),E.\u0275\u0275template(9,Y,3,4,"button",6),E.\u0275\u0275elementEnd()()),2&ee&&(E.\u0275\u0275advance(1),E.\u0275\u0275propertyInterpolate("placeholder",E.\u0275\u0275pipeBind2(3,13,"dso-selector.placeholder",E.\u0275\u0275pureFunction1(18,I,ae.typesString))),E.\u0275\u0275property("formControl",ae.input),E.\u0275\u0275attribute("aria-label",E.\u0275\u0275pipeBind2(2,10,"dso-selector.placeholder",E.\u0275\u0275pureFunction1(20,I,ae.typesString))),E.\u0275\u0275advance(4),E.\u0275\u0275propertyInterpolate1("id","scrollable-menu-dso-selector-",ae.randomSeed,""),E.\u0275\u0275advance(1),E.\u0275\u0275property("infiniteScrollDistance",1)("infiniteScrollThrottle",0)("infiniteScrollContainer","#scrollable-menu-dso-selector-"+ae.randomSeed)("fromRoot",!0),E.\u0275\u0275advance(1),E.\u0275\u0275property("ngIf",E.\u0275\u0275pipeBind1(8,16,ae.listEntries$)),E.\u0275\u0275advance(2),E.\u0275\u0275property("ngIf",ae.loading))},dependencies:[b.mk,b.sg,b.O5,M.Fj,M.JJ,P.Ry,M.oH,D.Z,l.p,C.P,b.Ov,O.X$],styles:[".scrollable-menu[_ngcontent-%COMP%]{height:auto;max-height:var(--ds-dso-selector-list-max-height);overflow-x:hidden}"]}),te})()},36023:(R,c,e)=>{"use strict";e.d(c,{O:()=>ne});var t=e(94650),n=e(24006),o=e(61135),i=e(39646),d=e(39841),r=e(78372),a=e(68675),p=e(18505),h=e(63900),m=e(54004),_=e(5164),v=e(8041),E=e(10088),O=e(51121),b=e(84935),M=e(68285),P=e(24702),D=e(24789),l=e(46418),C=e(83616),I=e(61005),g=e(41157),B=e(14296),L=e(89383),V=e(36895),Y=e(77296),X=e(48106),te=e(91538),K=e(81083);const ee=["listEntryElement"],ae=function(q){return{type:q}};function Q(q,oe){if(1&q&&(t.\u0275\u0275elementStart(0,"button",9),t.\u0275\u0275text(1),t.\u0275\u0275pipe(2,"translate"),t.\u0275\u0275elementEnd()),2&q){const ce=t.\u0275\u0275nextContext(2);t.\u0275\u0275advance(1),t.\u0275\u0275textInterpolate1(" ",t.\u0275\u0275pipeBind2(2,1,"dso-selector.no-results",t.\u0275\u0275pureFunction1(4,ae,ce.typesString))," ")}}const j=function(q){return{"bg-primary":q}};function k(q,oe){if(1&q){const ce=t.\u0275\u0275getCurrentView();t.\u0275\u0275elementStart(0,"button",10,11),t.\u0275\u0275listener("click",function(){const Ee=t.\u0275\u0275restoreView(ce).$implicit,Ae=t.\u0275\u0275nextContext(2);
1return t.\u0275\u0275resetView(Ae.onClick(Ee))}),t.\u0275\u0275element(2,"ds-listable-object-component-loader",12),t.\u0275\u0275elementEnd()}if(2&q){const ce=oe.$implicit,ye=t.\u0275\u0275nextContext(2);t.\u0275\u0275propertyInterpolate("title",ye.getName(ce)),t.\u0275\u0275property("ngClass",t.\u0275\u0275pureFunction1(6,j,ce.id===ye.currentDSOId)),t.\u0275\u0275advance(2),t.\u0275\u0275property("object",ce)("viewMode",ye.viewMode)("linkType",ye.linkTypes.None)("context",ye.getContext(ce.id))}}function G(q,oe){if(1&q&&(t.\u0275\u0275elementContainerStart(0),t.\u0275\u0275template(1,Q,3,6,"button",7),t.\u0275\u0275pipe(2,"async"),t.\u0275\u0275template(3,k,3,8,"button",8),t.\u0275\u0275pipe(4,"async"),t.\u0275\u0275elementContainerEnd()),2&q){const ce=t.\u0275\u0275nextContext();t.\u0275\u0275advance(1),t.\u0275\u0275property("ngIf",0==t.\u0275\u0275pipeBind1(2,2,ce.listEntries$).length),t.\u0275\u0275advance(2),t.\u0275\u0275property("ngForOf",t.\u0275\u0275pipeBind1(4,4,ce.listEntries$))}}function ie(q,oe){1&q&&(t.\u0275\u0275elementStart(0,"button",13),t.\u0275\u0275pipe(1,"translate"),t.\u0275\u0275element(2,"ds-themed-loading",14),t.\u0275\u0275elementEnd()),2&q&&(t.\u0275\u0275propertyInterpolate("title",t.\u0275\u0275pipeBind1(1,2,"loading.default")),t.\u0275\u0275advance(2),t.\u0275\u0275property("showMessage",!1))}let ne=(()=>{class q{constructor(ce,ye,Me,Ee){this.searchService=ce,this.notifcationsService=ye,this.translate=Me,this.dsoNameService=Ee,this.viewMode=O.w.ListElement,this.searchBoxId=null,this.onSelect=new t.EventEmitter,this.input=new n.p4,this.defaultPagination={id:"dso-selector",currentPage:1,pageSize:10},this.listEntries$=new o.X(null),this.currentPage$=new o.X(1),this.hasNextPage=!1,this.loading=!1,this.debounceTime=500,this.linkTypes=v.m,this.subs=[],this.randomSeed=Math.random().toString(36).substring(2,6)}ngOnInit(){let ce;this.typesString=this.types.map(ye=>ye.toString().toLowerCase()).join(", "),ce=(0,P.UE)(this.currentDSOId)?this.search(this.getCurrentDSOQuery(),1).pipe((0,M.Gp)()):(0,i.of)((0,D.b)(void 0,[])),this.subs.push((0,d.a)(ce,this.input.valueChanges.pipe((0,r.b)(this.debounceTime),(0,a.O)(""),(0,p.b)(()=>this.currentPage$.next(1))),this.currentPage$).pipe((0,h.w)(([ye,Me,Ee])=>(this.loading=!0,1===Ee&&this.listEntries$.next(null),this.search(Me,Ee).pipe((0,m.U)(Ae=>(Ae.hasSucceeded?Ae.payload.page=[...(0,P.xb)(Me)&&1===Ee?ye.page:[],...Ae.payload.page.filter(Je=>(0,P.UE)(Me)||Je.indexableObject.id!==this.currentDSOId)]:Ae.hasFailed&&this.notifcationsService.error(this.translate.instant("dso-selector.error.title",{type:this.t
1ypesString}),Ae.errorMessage),Ae)))))).subscribe(ye=>{this.updateList(ye)}))}updateList(ce){this.loading=!1;const ye=this.listEntries$.getValue();ce.hasSucceeded?((0,P.xI)(ye)?this.listEntries$.next(ce.payload.page):this.listEntries$.next([...ye,...ce.payload.page]),this.hasNextPage=ce.payload.totalElements>this.listEntries$.getValue().length):(this.listEntries$.next([...(0,P.xI)(ye)?[]:this.listEntries$.getValue(),new I.h(g.k.Error,"dso-selector.results-could-not-be-retrieved",B.k.value)]),this.hasNextPage=!1)}getCurrentDSOQuery(){return`search.resourceid:${this.currentDSOId}`}search(ce,ye,Me=!0){let Ee=ce?null:this.sort;return this.searchService.search(new E.t({query:ce,dsoTypes:this.types,pagination:Object.assign({},this.defaultPagination,{currentPage:ye}),sort:Ee}),null,Me).pipe((0,M.hC)())}onScrollDown(){this.hasNextPage&&!this.loading&&this.currentPage$.next(this.currentPage$.value+1)}selectSingleResult(){this.listElements.length>0&&this.listElements.first.nativeElement.click()}getContext(ce){return ce===this.currentDSOId?b._.SideBarSearchModalCurrent:b._.SideBarSearchModal}ngOnDestroy(){this.subs.filter(ce=>(0,P.Uh)(ce)).forEach(ce=>ce.unsubscribe())}onClick(ce){(0,P.Uh)(ce.indexableObject)?this.onSelect.emit(ce.indexableObject):(this.listEntries$.value.pop(),this.hasNextPage=!0,this.search(this.input.value?this.input.value:"",this.currentPage$.value,!1).pipe((0,M.hC)()).subscribe(ye=>{this.updateList(ye)}))}getName(ce){return(0,P.Uh)(ce.indexableObject)?this.dsoNameService.getName(ce.indexableObject):null}}return q.\u0275fac=function(ce){return new(ce||q)(t.\u0275\u0275directiveInject(_.o),t.\u0275\u0275directiveInject(l.T),t.\u0275\u0275directiveInject(L.sK),t.\u0275\u0275directiveInject(C._))},q.\u0275cmp=t.\u0275\u0275defineComponent({type:q,selectors:[["ds-dso-selector"]],viewQuery:function(ce,ye){if(1&ce&&t.\u0275\u0275viewQuery(ee,5),2&ce){let Me;t.\u0275\u0275queryRefresh(Me=t.\u0275\u0275loadQuery())&&(ye.listElements=Me)}},inputs:{currentDSOId:"currentDSOId",types:"types",sort:"sort",searchBoxId:"searchBoxId"},outputs:{onSelect:"onSelect"},decls:10,vars:22,consts:[[1,"form-group","w-100","pr-2","pl-2"],["type","search","ngbAutofocus","",1,"form-control",3,"placeholder","formControl","click","keyup.enter"],[1,"dropdown-divider"],[1,"scrollable-menu","list-group",3,"id"],["infiniteScroll","",3,"infiniteScrollDistance","infiniteScrollThrottle","infiniteScrollContainer","fromRoot","scrolled"],[4,"ngIf"],["class","list-group-item list-group-item-action border-0 list-entry",3,"title",4,"ngIf"],["class","list-group-item list-group-item-action border-0 disabled",4,"ngIf"],["class","list-group-item list-group-item-action border-0 list-entry","dsHoverClass","ds-hover",3,"ngClass","title","click",4,"ngFor","ngForOf"],[1,"list-group-item","list-group-item-action","border-0","disabled"],["dsHoverClass","ds-hover",1,"list-group-item","list-group-item-action","border-0","list-entry",3,"ngClass","title","click"],["listEntryElement",""],[3,"object","viewMode","linkType","context"],[1,"list-group-item","list-group-item-action","border-0","list-entry",3,"title"],[3,"showMessage"]],template:function(ce,ye){1&ce&&(t.\u0275\u0275elementStart(0,"div",0)(1,"input",1),t.\u0275\u0275listener("click",function(Ee){return Ee.stopPropagation()})("keyup.enter",function(){return ye.selectSingleResult()}),t.\u0275\u0275pipe(2,"translate"),t.\u0275\u0275pipe(3,"translate"),t.\u0275\u0275elementEnd()(),t.\u0275\u0275element(4,"div",2),t.\u0275\u0275elementStart(5,"div",3)(6,"div",4),t.\u0275\u0275listener("scrolled",function(){return ye.onScrollDown()}),t.\u0275\u0275template(7,G,5,6,"ng-container",5),t.\u0275\u0275pipe(8,"async"),t.\u0275\u0275template(9,ie,3,4,"button",6),t.\u0275\u0275elementEnd()()),2&ce&&(t.\u0275\u0275advance(1),t.\u0275\u0275propertyInterpolate("placeholder",t.\u0275\u0275pipeBind2(3,13,"dso-selector.placeholder",t.\u0275\u0275pureFunction1(18,ae,ye.typesString))),t.\u0275\u0275property("formControl",ye.input),t.\u0275\u0275attribute("aria-label",t.\u0275\u0275pipeBind2(2,10,"dso-selector.placeholder",t.\u0275\u0275pureFunction1(20,ae,ye.typesString))),t.\u0275\u0275advance(4),t.\u0275\u0275propertyInterpolate1("id","scrollable-menu-dso-selector-",ye.randomSeed,""),t.\u0275\u0275advance(1),t.\u0275\u0275property("infiniteScrollDistance",1)("infiniteScrollThrottle",0)("infiniteScrollContainer","#scrollable-menu-dso-selector-"+ye.randomSeed)("fromRoot",!0),t.\u0275\u0275advance(1),t.\u0275\u0275property("ngIf",t.\u0275\u0275pipeBind1(8,16,ye.listEntries$)),t.\u0275\u0275advance(2),t.\u0275\u0275property("ngIf",ye.loading))},dependencies:[V.mk,V.sg,V.O5,n.Fj,n.JJ,Y.Ry,n.oH,X.Z,te.p,K.P,V.Ov,L.X$],styles:[".scrollable-menu[_ngcontent-%COMP%]{height:auto;max-height:var(--ds-dso-selector-list-max-height);overflow-x:hidden}"]}),q})()},32714:(R,c,e)=>{"use strict";e.r(c),e.d(c,{CreateCollectionParentSelectorComponent:()=>E});var t=e(95642),n=e(5086),o=e(95376),i=e(42943),d=e(21540),r=e(94650),a=e(9769),p=e(34793),h=e(36895),m=e(36023),_=e(89383);function v(O,b){if(1&O&&(r.\u0275\u0275elementStart(0,"span",6),r.\u0275\u0275text(1),r.\u0275\u0275pipe(2,"translate"),r.\u0275\u0275elementEnd()),2&O){const M=r.\u0275\u0275nextContext();r.\u0275\u0275advance(1),r.\u0275\u0275textInterpolate(r.\u0275\u0275pipeBind1(2,1,M.header))}}let E=(()=>{class O extends n.q{constructor(M,P,D){super(M,P),this.activeModal=M,this.route=P,this.router=D,this.objectType=t.h.COLLECTION,this.selectorTypes=[t.h.COMMUNITY],this.action=n.i.CREATE,this.header="dso-selector.create.collection.sub-level",this.defaultSort=new i.o(d.N.comcolSelectionSort.sortField,d.N.comcolSelectionSort.sortDirection)}navigate(M){const P={queryParams:{[o.Cp]:M.uuid}};this.router.navigate([(0,o.E1)()],P)}}return O.\u0275fac=function(M){return new(M||O)(r.\u0275\u0275directiveInject(a.Kz),r.\u0275\u0275directiveInject(p.gz),r.\u0275\u0275directiveInject(p.F0))},O.\u0275cmp=r.\u0275\u0275defineComponent({type:O,selectors:[["ds-create-collection-
1parent-selector"]],features:[r.\u0275\u0275InheritDefinitionFeature],decls:10,vars:7,consts:[[1,"modal-header"],["type","button","aria-label","Close",1,"close",3,"click"],["aria-hidden","true"],[1,"modal-body"],["class","h5 px-2",4,"ngIf"],[3,"currentDSOId","types","sort","onSelect"],[1,"h5","px-2"]],template:function(M,P){1&M&&(r.\u0275\u0275elementStart(0,"div")(1,"div",0),r.\u0275\u0275text(2),r.\u0275\u0275pipe(3,"translate"),r.\u0275\u0275elementStart(4,"button",1),r.\u0275\u0275listener("click",function(){return P.close()}),r.\u0275\u0275elementStart(5,"span",2),r.\u0275\u0275text(6,"\xd7"),r.\u0275\u0275elementEnd()()(),r.\u0275\u0275elementStart(7,"div",3),r.\u0275\u0275template(8,v,3,3,"span",4),r.\u0275\u0275elementStart(9,"ds-dso-selector",5),r.\u0275\u0275listener("onSelect",function(l){return P.selectObject(l)}),r.\u0275\u0275elementEnd()()()),2&M&&(r.\u0275\u0275advance(2),r.\u0275\u0275textInterpolate1("",r.\u0275\u0275pipeBind1(3,5,"dso-selector."+P.action+"."+P.objectType.toString().toLowerCase()+".head")," "),r.\u0275\u0275advance(6),r.\u0275\u0275property("ngIf",P.header),r.\u0275\u0275advance(1),r.\u0275\u0275property("currentDSOId",null==P.dsoRD?null:P.dsoRD.payload.uuid)("types",P.selectorTypes)("sort",P.defaultSort))},dependencies:[h.O5,m.O,_.X$],encapsulation:2}),O})()},99252:(R,c,e)=>{"use strict";e.d(c,{i:()=>d});var t=e(25330),n=e(94650);function o(r,a){}const i=["*"];let d=(()=>{class r extends t.F{getComponentName(){return"CreateCollectionParentSelectorComponent"}importThemedComponent(p){return e(50470)(`./${p}/app/shared/dso-selector/modal-wrappers/create-collection-parent-selector/create-collection-parent-selector.component`)}importUnthemedComponent(){return Promise.resolve().then(e.bind(e,32714))}}return r.\u0275fac=function(){let a;return function(h){return(a||(a=n.\u0275\u0275getInheritedFactory(r)))(h||r)}}(),r.\u0275cmp=n.\u0275\u0275defineComponent({type:r,selectors:[["ds-themed-create-collection-parent-selector"]],features:[n.\u0275\u0275InheritDefinitionFeature],ngContentSelectors:i,decls:5,vars:0,consts:[["vcr",""],["content",""]],template:function(p,h){1&p&&(n.\u0275\u0275projectionDef(),n.\u0275\u0275template(0,o,0,0,"ng-template",null,0,n.\u0275\u0275templateRefExtractor),n.\u0275\u0275elementStart(2,"div",null,1),n.\u0275\u0275projection(4),n.\u0275\u0275elementEnd())},encapsulation:2}),r})()},9406:(R,c,e)=>{"use strict";e.r(c),e.d(c,{CreateCommunityParentSelectorComponent:()=>M});var t=e(95642),n=e(24702),o=e(5086),i=e(43438),d=e(42943),r=e(21540),a=e(47235),p=e(19937),h=e(94650),m=e(9769),_=e(34793),v=e(36895),E=e(36023),O=e(89383);function b(P,D){if(1&P){const l=h.\u0275\u0275getCurrentView();h.\u0275\u0275elementStart(0,"div",7)(1,"button",8),h.\u0275\u0275listener("click",function(){h.\u0275\u0275restoreView(l);const I=h.\u0275\u0275nextContext();return h.\u0275\u0275resetView(I.selectObject(void 0))}),h.\u0275\u0275text(2),h.\u0275\u0275pipe(3,"translate"),h.\u0275\u0275elementEnd(),h.\u0275\u0275elementStart(4,"div",9),h.\u0275\u0275element(5,"hr"),h.\u0275\u0275elementStart(6,"div",10)(7,"span",11),h.\u0275\u0275text(8),h.\u0275\u0275pipe(9,"translate"),h.\u0275\u0275elementEnd()()()()}2&P&&(h.\u0275\u0275advance(2),h.\u0275\u0275textInterpolate(h.\u0275\u0275pipeBind1(3,2,"dso-selector.create.community.top-level")),h.\u0275\u0275advance(6),h.\u0275\u0275textInterpolate(h.\u0275\u0275pipeBind1(9,4,"dso-selector.create.community.or-divider")))}let M=(()=>{class P extends o.q{constructor(l,C,I,g){super(l,C),this.activeModal=l,this.route=C,this.router=I,this.authorizationService=g,this.objectType=t.h.COMMUNITY,this.selectorTypes=[t.h.COMMUNITY],this.action=o.i.CREATE,this.defaultSort=new d.o(r.N.comcolSelectionSort.sortField,r.N.comcolSelectionSort.sortDirection)}ngOnInit(){this.isAdmin$=this.authorizationService.isAuthorized(a.i.AdministratorOf)}navigate(l){let C={};(0,n.Uh)(l)&&(C={queryParams:{[i.jI]:l.uuid}}),this.router.navigate([(0,i.wH)()],C)}}return P.\u0275fac=function(l){return new(l||P)(h.\u0275\u0275directiveInject(m.Kz),h.\u0275\u0275directiveInject(_.gz),h.\u0275\u0275directiveInject(_.F0),h.\u0275\u0275directiveInject(p._))},P.\u0275cmp=h.\u0275\u0275defineComponent({type:P,selectors:[["ds-create-community-parent-selector"]],features:[h.\u0275\u0275InheritDefinitionFeature],decls:14,vars:12,consts:[[1,"modal-header"],["type","button","aria-label","Close",1,"close",3,"click"],["aria-hidden","true"],[1,"modal-body"],["data-test","admin-div",4,"ngIf"],[1,"h5","px-2"],[3,"currentDSOId","types","sort","onSelect"],["data-test","admin-div"],[1,"btn","btn-outline-primary","btn-lg","btn-block",3,"click"],[1,"h3","position-relative","py-1","my-3","font-weight-normal"],["id","create-community-or-separator",1,"text-center","position-absolute","w-100"],[1,"px-4","bg-white"]],template:function(l,C){1&l&&(h.\u0275\u0275elementStart(0,"div")(1,"div",0),h.\u0275\u0275text(2),h.\u0275\u0275pipe(3,"translate"),h.\u0275\u0275elementStart(4,"button",1),h.\u0275\u0275listener("click",function(){return C.close()}),h.\u0275\u0275elementStart(5,"span",2),h.\u0275\u0275text(6,"\xd7"),h.\u0275\u0275elementEnd()()(),h.\u0275\u0275elementStart(7,"div",3),h.\u0275\u0275template(8,b,10,6,"div",4),h.\u0275\u0275pipe(9,"async"),h.\u0275\u0275elementStart(10,"span",5),h.\u0275\u0275text(11),h.\u0275\u0275pipe(12,"translate"),h.\u0275\u0275elementEnd(),h.\u0275\u0275elementStart(13,"ds-dso-selector",6),h.\u0275\u0275listener("onSelect",function(g){return C.selectObject(g)}),h.\u0275\u0275elementEnd()()()),2&l&&(h.\u0275\u0275advance(2),h.\u0275\u0275textInterpolate1("",h.\u0275\u0275pipeBind1(3,6,"dso-selector."+C.action+"."+C.objectType.toString().toLowerCase()+".head")," "),h.\u0275\u0275advance(6),h.\u0275\u0275property("ngIf",h.\u0275\u0275pipeBind1(9,8,C.isAdmin$)),h.\u0275\u0275advance(3),h.\u0275\u0275textInterpolate(h.\u0275\u0275pipeBind1(12,10,"dso-selector.create.community.sub-level")),h.\u0275\u0275advance(2),h.\u0275\u0275property("currentDSOId",null==C.dsoRD?null:C.dsoRD.payload.uuid)("types",C.selectorTypes)("sort",C.defaultSort))},dependencies:[v.O5,E.O,v.Ov,O.X$],styles:["#create-community-or-separator[_ng
1content-%COMP%]{top:0}"]}),P})()},93824:(R,c,e)=>{"use strict";e.d(c,{e:()=>d});var t=e(25330),n=e(94650);function o(r,a){}const i=["*"];let d=(()=>{class r extends t.F{getComponentName(){return"CreateCommunityParentSelectorComponent"}importThemedComponent(p){return e(76971)(`./${p}/app/shared/dso-selector/modal-wrappers/create-community-parent-selector/create-community-parent-selector.component`)}importUnthemedComponent(){return Promise.resolve().then(e.bind(e,9406))}}return r.\u0275fac=function(){let a;return function(h){return(a||(a=n.\u0275\u0275getInheritedFactory(r)))(h||r)}}(),r.\u0275cmp=n.\u0275\u0275defineComponent({type:r,selectors:[["ds-themed-create-community-parent-selector"]],features:[n.\u0275\u0275InheritDefinitionFeature],ngContentSelectors:i,decls:5,vars:0,consts:[["vcr",""],["content",""]],template:function(p,h){1&p&&(n.\u0275\u0275projectionDef(),n.\u0275\u0275template(0,o,0,0,"ng-template",null,0,n.\u0275\u0275templateRefExtractor),n.\u0275\u0275elementStart(2,"div",null,1),n.\u0275\u0275projection(4),n.\u0275\u0275elementEnd())},encapsulation:2}),r})()},8869:(R,c,e)=>{"use strict";e.r(c),e.d(c,{CreateItemParentSelectorComponent:()=>v});var t=e(95642),n=e(5086),o=e(42943),i=e(21540),d=e(94650),r=e(9769),a=e(34793),p=e(36895),h=e(53330),m=e(89383);function _(E,O){if(1&E&&(d.\u0275\u0275elementStart(0,"span",6),d.\u0275\u0275text(1),d.\u0275\u0275pipe(2,"translate"),d.\u0275\u0275elementEnd()),2&E){const b=d.\u0275\u0275nextContext();d.\u0275\u0275advance(1),d.\u0275\u0275textInterpolate(d.\u0275\u0275pipeBind1(2,1,b.header))}}let v=(()=>{class E extends n.q{constructor(b,M,P){super(b,M),this.activeModal=b,this.route=M,this.router=P,this.objectType=t.h.ITEM,this.selectorTypes=[t.h.COLLECTION],this.action=n.i.CREATE,this.header="dso-selector.create.item.sub-level",this.defaultSort=new o.o(i.N.comcolSelectionSort.sortField,i.N.comcolSelectionSort.sortDirection)}navigate(b){const M={queryParams:{collection:b.uuid}};this.entityType&&(M.queryParams.entityType=this.entityType),this.router.navigate(["/submit"],M)}}return E.\u0275fac=function(b){return new(b||E)(d.\u0275\u0275directiveInject(r.Kz),d.\u0275\u0275directiveInject(a.gz),d.\u0275\u0275directiveInject(a.F0))},E.\u0275cmp=d.\u0275\u0275defineComponent({type:E,selectors:[["ds-create-item-parent-selector"]],inputs:{entityType:"entityType"},features:[d.\u0275\u0275InheritDefinitionFeature],decls:10,vars:7,consts:[[1,"modal-header"],["type","button","aria-label","Close",1,"close",3,"click"],["aria-hidden","true"],[1,"modal-body"],["class","h5 px-2",4,"ngIf"],[3,"currentDSOId","entityType","types","onSelect"],[1,"h5","px-2"]],template:function(b,M){1&b&&(d.\u0275\u0275elementStart(0,"div")(1,"div",0),d.\u0275\u0275text(2),d.\u0275\u0275pipe(3,"translate"),d.\u0275\u0275elementStart(4,"button",1),d.\u0275\u0275listener("click",function(){return M.close()}),d.\u0275\u0275elementStart(5,"span",2),d.\u0275\u0275text(6,"\xd7"),d.\u0275\u0275elementEnd()()(),d.\u0275\u0275elementStart(7,"div",3),d.\u0275\u0275template(8,_,3,3,"span",4),d.\u0275\u0275elementStart(9,"ds-authorized-collection-selector",5),d.\u0275\u0275listener("onSelect",function(D){return M.selectObject(D)}),d.\u0275\u0275elementEnd()()()),2&b&&(d.\u0275\u0275advance(2),d.\u0275\u0275textInterpolate1("",d.\u0275\u0275pipeBind1(3,5,"dso-selector."+M.action+"."+M.objectType.toString().toLowerCase()+".head")," "),d.\u0275\u0275advance(6),d.\u0275\u0275property("ngIf",M.header),d.\u0275\u0275advance(1),d.\u0275\u0275property("currentDSOId",null==M.dsoRD?null:M.dsoRD.payload.uuid)("entityType",M.entityType)("types",M.selectorTypes))},dependencies:[p.O5,h.$,m.X$],encapsulation:2}),E})()},6575:(R,c,e)=>{"use strict";e.d(c,{g:()=>d});var t=e(25330),n=e(94650);function o(r,a){}const i=["*"];let d=(()=>{class r extends t.F{constructor(){super(...arguments),this.inAndOutputNames=["entityType"]}getComponentName(){return"CreateItemParentSelectorComponent"}importThemedComponent(p){return e(48345)(`./${p}/app/shared/dso-selector/modal-wrappers/create-item-parent-selector/create-item-parent-selector.component`)}importUnthemedComponent(){return Promise.resolve().then(e.bind(e,8869))}}return r.\u0275fac=function(){let a;
1return function(h){return(a||(a=n.\u0275\u0275getInheritedFactory(r)))(h||r)}}(),r.\u0275cmp=n.\u0275\u0275defineComponent({type:r,selectors:[["ds-themed-create-item-parent-selector"]],inputs:{entityType:"entityType"},features:[n.\u0275\u0275InheritDefinitionFeature],ngContentSelectors:i,decls:5,vars:0,consts:[["vcr",""],["content",""]],template:function(p,h){1&p&&(n.\u0275\u0275projectionDef(),n.\u0275\u0275template(0,o,0,0,"ng-template",null,0,n.\u0275\u0275templateRefExtractor),n.\u0275\u0275elementStart(2,"div",null,1),n.\u0275\u0275projection(4),n.\u0275\u0275elementEnd())},encapsulation:2}),r})()},5086:(R,c,e)=>{"use strict";e.d(c,{i:()=>d,q:()=>r});var t=e(24702),n=e(94650),o=e(9769),i=e(34793),d=(()=>{return(a=d||(d={})).CREATE="create",a.EDIT="edit",a.EXPORT_METADATA="export-metadata",a.IMPORT_BATCH="import-batch",a.SET_SCOPE="set-scope",a.EXPORT_BATCH="export-batch",d;var a})();let r=(()=>{class a{constructor(h,m){this.activeModal=h,this.route=m}ngOnInit(){const h=this.findRouteData(m=>(0,t.Uh)(m.data.dso),this.route.root.snapshot);(0,t.Uh)(h)&&(this.dsoRD=h.data.dso)}findRouteData(h,...m){const _=m.find(h);if((0,t.Uh)(_))return _;{const v=m.map(E=>E.children).reduce((E,O)=>[...E,...O]);return(0,t.UE)(v)?this.findRouteData(h,...v):void 0}}selectObject(h){this.close(),this.navigate(h)}close(){this.activeModal.close()}}return a.\u0275fac=function(h){return new(h||a)(n.\u0275\u0275directiveInject(o.Kz),n.\u0275\u0275directiveInject(i.gz))},a.\u0275cmp=n.\u0275\u0275defineComponent({type:a,selectors:[["ds-dso-selector-modal"]],inputs:{dsoRD:"dsoRD",header:"header"},decls:0,vars:0,template:function(h,m){},encapsulation:2}),a})()},15556:(R,c,e)=>{"use strict";e.r(c),e.d(c,{EditCollectionSelectorComponent:()=>E});var t=e(95642),n=e(5086),o=e(95376),i=e(42943),d=e(21540),r=e(94650),a=e(9769),p=e(34793),h=e(36895),m=e(36023),_=e(89383);function v(O,b){if(1&O&&(r.\u0275\u0275elementStart(0,"span",6),r.\u0275\u0275text(1),r.\u0275\u0275pipe(2,"translate"),r.\u0275\u0275elementEnd()),2&O){const M=r.\u0275\u0275nextContext();r.\u0275\u0275advance(1),r.\u0275\u0275textInterpolate(r.\u0275\u0275pipeBind1(2,1,M.header))}}let E=(()=>{class O extends n.q{constructor(M,P,D){super(M,P),this.activeModal=M,this.route=P,this.router=D,this.objectType=t.h.COLLECTION,this.selectorTypes=[t.h.COLLECTION],this.action=n.i.EDIT,this.defaultSort=new i.o(d.N.comcolSelectionSort.sortField,d.N.comcolSelectionSort.sortDirection)}navigate(M){this.router.navigate([(0,o.Ou)(M.uuid)])}}return O.\u0275fac=function(M){return new(M||O)(r.\u0275\u0275directiveInject(a.Kz),r.\u0275\u0275directiveInject(p.gz),r.\u0275\u0275directiveInject(p.F0))},O.\u0275cmp=r.\u0275\u0275defineComponent({type:O,selectors:[["ds-edit-collection-selector"]],features:[r.\u0275\u0275InheritDefinitionFeature],decls:10,vars:7,consts:[[1,"modal-header"],["type","button","aria-label","Close",1,"close",3,"click"],["aria-hidden","true"],[1,"modal-body"],["class","h5 px-2",4,"ngIf"],[3,"currentDSOId","types","sort","onSelect"],[1,"h5","px-2"]],template:function(M,P){1&M&&(r.\u0275\u0275elementStart(0,"div")(1,"div",0),r.\u0275\u0275text(2),r.\u0275\u0275pipe(3,"translate"),r.\u0275\u0275elementStart(4,"button",1),r.\u0275\u0275listener("click",function(){return P.close()}),r.\u0275\u0275elementStart(5,"span",2),r.\u0275\u0275text(6,"\xd7"),r.\u0275\u0275elementEnd()()(),r.\u0275\u0275elementStart(7,"div",3),r.\u0275\u0275template(8,v,3,3,"span",4),r.\u0275\u0275elementStart(9,"ds-dso-selector",5),r.\u0275\u0275listener("onSelect",function(l){return P.selectObject(l)}),r.\u0275\u0275elementEnd()()()),2&M&&(r.\u0275\u0275advance(2),r.\u0275\u0275textInterpolate1("",r.\u0275\u0275pipeBind1(3,5,"dso-selector."+P.action+"."+P.objectType.toString().toLowerCase()+".head")," "),r.\u0275\u0275advance(6),r.\u0275\u0275property("ngIf",P.header),r.\u0275\u0275advance(1),r.\u0275\u0275property("currentDSOId",null==P.dsoRD?null:P.dsoRD.payload.uuid)("types",P.selectorTypes)("sort",P.defaultSort))},dependencies:[h.O5,m.O,_.X$],encapsulation:2}),O})()},33089:(R,c,e)=>{"use strict";e.d(c,{A:()=>d});var t=e(25330),n=e(94650);function o(r,a){}const i=["*"];let d=(()=>{class r extends t.F{getComponentName(){return"EditCollectionSelectorComponent"}importThemedComponent(p){return e(42864)(`./${p}/app/shared/dso-selector/modal-wrappers/edit-collection-selector/edit-collection-selector.component`)}importUnthemedComponent(){return Promise.resolve().then(e.bind(e,15556))}}return r.\u0275fac=function(){let a;
1return function(h){return(a||(a=n.\u0275\u0275getInheritedFactory(r)))(h||r)}}(),r.\u0275cmp=n.\u0275\u0275defineComponent({type:r,selectors:[["ds-themed-edit-collection-selector"]],features:[n.\u0275\u0275InheritDefinitionFeature],ngContentSelectors:i,decls:5,vars:0,consts:[["vcr",""],["content",""]],template:function(p,h){1&p&&(n.\u0275\u0275projectionDef(),n.\u0275\u0275template(0,o,0,0,"ng-template",null,0,n.\u0275\u0275templateRefExtractor),n.\u0275\u0275elementStart(2,"div",null,1),n.\u0275\u0275projection(4),n.\u0275\u0275elementEnd())},encapsulation:2}),r})()},1505:(R,c,e)=>{"use strict";e.r(c),e.d(c,{EditCommunitySelectorComponent:()=>E});var t=e(95642),n=e(5086),o=e(43438),i=e(42943),d=e(21540),r=e(94650),a=e(9769),p=e(34793),h=e(36895),m=e(36023),_=e(89383);function v(O,b){if(1&O&&(r.\u0275\u0275elementStart(0,"span",6),r.\u0275\u0275text(1),r.\u0275\u0275pipe(2,"translate"),r.\u0275\u0275elementEnd()),2&O){const M=r.\u0275\u0275nextContext();r.\u0275\u0275advance(1),r.\u0275\u0275textInterpolate(r.\u0275\u0275pipeBind1(2,1,M.header))}}let E=(()=>{class O extends n.q{constructor(M,P,D){super(M,P),this.activeModal=M,this.route=P,this.router=D,this.objectType=t.h.COMMUNITY,this.selectorTypes=[t.h.COMMUNITY],this.action=n.i.EDIT,this.defaultSort=new i.o(d.N.comcolSelectionSort.sortField,d.N.comcolSelectionSort.sortDirection)}navigate(M){this.router.navigate([(0,o.xm)(M.uuid)])}}return O.\u0275fac=function(M){return new(M||O)(r.\u0275\u0275directiveInject(a.Kz),r.\u0275\u0275directiveInject(p.gz),r.\u0275\u0275directiveInject(p.F0))},O.\u0275cmp=r.\u0275\u0275defineComponent({type:O,selectors:[["ds-edit-community-selector"]],features:[r.\u0275\u0275InheritDefinitionFeature],decls:10,vars:7,consts:[[1,"modal-header"],["type","button","aria-label","Close",1,"close",3,"click"],["aria-hidden","true"],[1,"modal-body"],["class","h5 px-2",4,"ngIf"],[3,"currentDSOId","types","sort","onSelect"],[1,"h5","px-2"]],template:function(M,P){1&M&&(r.\u0275\u0275elementStart(0,"div")(1,"div",0),r.\u0275\u0275text(2),r.\u0275\u0275pipe(3,"translate"),r.\u0275\u0275elementStart(4,"button",1),r.\u0275\u0275listener("click",function(){return P.close()}),r.\u0275\u0275elementStart(5,"span",2),r.\u0275\u0275text(6,"\xd7"),r.\u0275\u0275elementEnd()()(),r.\u0275\u0275elementStart(7,"div",3),r.\u0275\u0275template(8,v,3,3,"span",4),r.\u0275\u0275elementStart(9,"ds-dso-selector",5),r.\u0275\u0275listener("onSelect",function(l){return P.selectObject(l)}),r.\u0275\u0275elementEnd()()()),2&M&&(r.\u0275\u0275advance(2),r.\u0275\u0275textInterpolate1("",r.\u0275\u0275pipeBind1(3,5,"dso-selector."+P.action+"."+P.objectType.toString().toLowerCase()+".head")," "),r.\u0275\u0275advance(6),r.\u0275\u0275property("ngIf",P.header),r.\u0275\u0275advance(1),r.\u0275\u0275property("currentDSOId",null==P.dsoRD?null:P.dsoRD.payload.uuid)("types",P.selectorTypes)("sort",P.defaultSort))},dependencies:[h.O5,m.O,_.X$],encapsulation:2}),O})()},29389:(R,c,e)=>{"use strict";e.d(c,{p:()=>d});var t=e(25330),n=e(94650);function o(r,a){}const i=["*"];let d=(()=>{class r extends t.F{getComponentName(){return"EditCommunitySelectorComponent"}importThemedComponent(p){return e(59258)(`./${p}/app/shared/dso-selector/modal-wrappers/edit-community-selector/edit-community-selector.component`)}importUnthemedComponent(){return Promise.resolve().then(e.bind(e,1505))}}return r.\u0275fac=function(){let a;return function(h){return(a||(a=n.\u0275\u0275getInheritedFactory(r)))(h||r)}}(),r.\u0275cmp=n.\u0275\u0275defineComponent({type:r,selectors:[["ds-themed-edit-community-selector"]],features:[n.\u0275\u0275InheritDefinitionFeature],ngContentSelectors:i,decls:5,vars:0,consts:[["vcr",""],["content",""]],template:function(p,h){1&p&&(n.\u0275\u0275projectionDef(),n.\u0275\u0275template(0,o,0,0,"ng-template",null,0,n.\u0275\u0275templateRefExtractor),n.\u0275\u0275elementStart(2,"div",null,1),n.\u0275\u0275projection(4),n.\u0275\u0275elementEnd())},encapsulation:2}),r})()},32595:(R,c,e)=>{"use strict";e.r(c),e.d(c,{EditItemSelectorComponent:()=>_});var t=e(95642),n=e(5086),o=e(40747),i=e(94650),d=e(9769),r=e(34793),a=e(36895),p=e(36023),h=e(89383);
1function m(v,E){if(1&v&&(i.\u0275\u0275elementStart(0,"span",6),i.\u0275\u0275text(1),i.\u0275\u0275pipe(2,"translate"),i.\u0275\u0275elementEnd()),2&v){const O=i.\u0275\u0275nextContext();i.\u0275\u0275advance(1),i.\u0275\u0275textInterpolate(i.\u0275\u0275pipeBind1(2,1,O.header))}}let _=(()=>{class v extends n.q{constructor(O,b,M){super(O,b),this.activeModal=O,this.route=b,this.router=M,this.objectType=t.h.ITEM,this.selectorTypes=[t.h.ITEM],this.action=n.i.EDIT}navigate(O){this.router.navigate([(0,o.tn)(O)])}}return v.\u0275fac=function(O){return new(O||v)(i.\u0275\u0275directiveInject(d.Kz),i.\u0275\u0275directiveInject(r.gz),i.\u0275\u0275directiveInject(r.F0))},v.\u0275cmp=i.\u0275\u0275defineComponent({type:v,selectors:[["ds-edit-item-selector"]],features:[i.\u0275\u0275InheritDefinitionFeature],decls:10,vars:6,consts:[[1,"modal-header"],["type","button","aria-label","Close",1,"close",3,"click"],["aria-hidden","true"],[1,"modal-body"],["class","h5 px-2",4,"ngIf"],[3,"currentDSOId","types","onSelect"],[1,"h5","px-2"]],template:function(O,b){1&O&&(i.\u0275\u0275elementStart(0,"div")(1,"div",0),i.\u0275\u0275text(2),i.\u0275\u0275pipe(3,"translate"),i.\u0275\u0275elementStart(4,"button",1),i.\u0275\u0275listener("click",function(){return b.close()}),i.\u0275\u0275elementStart(5,"span",2),i.\u0275\u0275text(6,"\xd7"),i.\u0275\u0275elementEnd()()(),i.\u0275\u0275elementStart(7,"div",3),i.\u0275\u0275template(8,m,3,3,"span",4),i.\u0275\u0275elementStart(9,"ds-dso-selector",5),i.\u0275\u0275listener("onSelect",function(P){return b.selectObject(P)}),i.\u0275\u0275elementEnd()()()),2&O&&(i.\u0275\u0275advance(2),i.\u0275\u0275textInterpolate1("",i.\u0275\u0275pipeBind1(3,4,"dso-selector."+b.action+"."+b.objectType.toString().toLowerCase()+".head")," "),i.\u0275\u0275advance(6),i.\u0275\u0275property("ngIf",b.header),i.\u0275\u0275advance(1),i.\u0275\u0275property("currentDSOId",null==b.dsoRD?null:b.dsoRD.payload.uuid)("types",b.selectorTypes))},dependencies:[a.O5,p.O,h.X$],encapsulation:2}),v})()},44647:(R,c,e)=>{"use strict";e.d(c,{z:()=>d});var t=e(25330),n=e(94650);function o(r,a){}const i=["*"];let d=(()=>{class r extends t.F{getComponentName(){return"EditItemSelectorComponent"}importThemedComponent(p){return e(21554)(`./${p}/app/shared/dso-selector/modal-wrappers/edit-item-selector/edit-item-selector.component`)}importUnthemedComponent(){return Promise.resolve().then(e.bind(e,32595))}}return r.\u0275fac=function(){let a;return function(h){return(a||(a=n.\u0275\u0275getInheritedFactory(r)))(h||r)}}(),r.\u0275cmp=n.\u0275\u0275defineComponent({type:r,selectors:[["ds-themed-edit-item-selector"]],features:[n.\u0275\u0275InheritDefinitionFeature],ngContentSelectors:i,decls:5,vars:0,consts:[["vcr",""],["content",""]],template:function(p,h){1&p&&(n.\u0275\u0275projectionDef(),n.\u0275\u0275template(0,o,0,0,"ng-template",null,0,n.\u0275\u0275templateRefExtractor),n.\u0275\u0275elementStart(2,"div",null,1),n.\u0275\u0275projection(4),n.\u0275\u0275elementEnd())},encapsulation:2}),r})()},36750:(R,c,e)=>{"use strict";e.d(c,{P:()=>L});var t=e(39646),n=e(63900),o=e(54004),i=e(47556),d=e(22979),r=e(95642),a=e(36094),p=e(18916),h=e(24702),m=e(46418),_=e(58577),v=e(5086),E=e(68285),O=e(96482),b=e(19937),M=e(47235),P=e(94650),D=e(9769),l=e(34793),C=e(89383),I=e(36895),g=e(36023);function B(V,Y){if(1&V&&(P.\u0275\u0275elementStart(0,"span",6),P.\u0275\u0275text(1),P.\u0275\u0275pipe(2,"translate"),P.\u0275\u0275elementEnd()),2&V){const X=P.\u0275\u0275nextContext();P.\u0275\u0275advance(1),P.\u0275\u0275textInterpolate(P.\u0275\u0275pipeBind1(2,1,X.header))}}let L=(()=>{class V extends v.q{constructor(X,te,K,ee,ae,Q,j,k){super(X,te),this.activeModal=X,this.route=te,this.router=K,this.notificationsService=ee,this.translationService=ae,this.scriptDataService=Q,this.authorizationDataService=j,this.modalService=k,this.objectType=r.h.DSPACEOBJECT,this.selectorTypes=[r.h.COLLECTION],this.action=v.i.EXPORT_BATCH}navigate(X){if(X instanceof d.F){const te=this.modalService.open(p.Y);te.componentInstance.dso=X,te.componentInstance.headerLabel="confirmation-modal.export-batch.header",te.componentInstance.infoLabel="confirmation-modal.export-batch.info",te.componentInstance.cancelLabel="confirmation-modal.export-batch.cancel",te.componentInstance.confirmLabel="confirmation-modal.export-batch.c
1onfirm",te.componentInstance.confirmIcon="fas fa-file-export";const K=te.componentInstance.response.pipe((0,n.w)(ee=>{if(ee)return this.startScriptNotifyAndRedirect(X).pipe((0,n.w)(Q=>(0,t.of)(Q)));this.modalService.open(V).componentInstance.dsoRD=(0,_.AC)(X)}));return K.subscribe(),K}return(0,t.of)(!1)}startScriptNotifyAndRedirect(X){const te=[Object.assign(new a.N,{name:"--id",value:X.uuid}),Object.assign(new a.N,{name:"--type",value:"COLLECTION"})];return this.authorizationDataService.isAuthorized(M.i.AdministratorOf).pipe((0,n.w)(()=>this.scriptDataService.invoke(i.Q_,te,[])),(0,E.hC)(),(0,o.U)(K=>{if(K.hasSucceeded){const ee=this.translationService.get("process.new.notification.success.title"),ae=this.translationService.get("process.new.notification.success.content");return this.notificationsService.success(ee,ae),(0,h.UE)(K.payload)&&this.router.navigateByUrl((0,O.Ah)(K.payload.processId)),!0}{const ee=this.translationService.get("process.new.notification.error.title"),ae=this.translationService.get("process.new.notification.error.content");return this.notificationsService.error(ee,ae),!1}}))}}return V.\u0275fac=function(X){return new(X||V)(P.\u0275\u0275directiveInject(D.Kz),P.\u0275\u0275directiveInject(l.gz),P.\u0275\u0275directiveInject(l.F0),P.\u0275\u0275directiveInject(m.T),P.\u0275\u0275directiveInject(C.sK),P.\u0275\u0275directiveInject(i.UY),P.\u0275\u0275directiveInject(b._),P.\u0275\u0275directiveInject(D.FF))},V.\u0275cmp=P.\u0275\u0275defineComponent({type:V,selectors:[["ds-export-metadata-selector"]],features:[P.\u0275\u0275InheritDefinitionFeature],decls:10,vars:7,consts:[[1,"modal-header"],["type","button","aria-label","Close",1,"close",3,"click"],["aria-hidden","true"],[1,"modal-body"],["class","h5 px-2",4,"ngIf"],[3,"currentDSOId","types","sort","onSelect"],[1,"h5","px-2"]],template:function(X,te){1&X&&(P.\u0275\u0275elementStart(0,"div")(1,"div",0),P.\u0275\u0275text(2),P.\u0275\u0275pipe(3,"translate"),P.\u0275\u0275elementStart(4,"button",1),P.\u0275\u0275listener("click",function(){return te.close()}),P.\u0275\u0275elementStart(5,"span",2),P.\u0275\u0275text(6,"\xd7"),P.\u0275\u0275elementEnd()()(),P.\u0275\u0275elementStart(7,"div",3),P.\u0275\u0275template(8,B,3,3,"span",4),P.\u0275\u0275elementStart(9,"ds-dso-selector",5),P.\u0275\u0275listener("onSelect",function(ee){return te.selectObject(ee)}),P.\u0275\u0275elementEnd()()()),2&X&&(P.\u0275\u0275advance(2),P.\u0275\u0275textInterpolate1("",P.\u0275\u0275pipeBind1(3,5,"dso-selector."+te.action+"."+te.objectType.toString().toLowerCase()+".head")," "),P.\u0275\u0275advance(6),P.\u0275\u0275property("ngIf",te.header),P.\u0275\u0275advance(1),P.\u0275\u0275property("currentDSOId",null==te.dsoRD?null:te.dsoRD.payload.uuid)("types",te.selectorTypes)("sort",te.defaultSort))},dependencies:[I.O5,g.O,C.X$],encapsulation:2}),V})()},8920:(R,c,e)=>{"use strict";e.d(c,{T:()=>V});var t=e(39646),n=e(63900),o=e(54004),i=e(47556),d=e(22979),r=e(21721),a=e(95642),p=e(36094),h=e(18916),m=e(24702),_=e(46418),v=e(58577),E=e(5086),O=e(68285),b=e(96482),M=e(19937),P=e(47235),D=e(94650),l=e(9769),C=e(34793),I=e(89383),g=e(36895),B=e(36023);function L(Y,X){if(1&Y&&(D.\u0275\u0275elementStart(0,"span",6),D.\u0275\u0275text(1),D.\u0275\u0275pipe(2,"translate"),D.\u0275\u0275elementEnd()),2&Y){const te=D.\u0275\u0275nextContext();D.\u0275\u0275advance(1),D.\u0275\u0275textInterpolate(D.\u0275\u0275pipeBind1(2,1,te.header))}}let V=(()=>{class Y extends E.q{constructor(te,K,ee,ae,Q,j,k,G){super(te,K),this.activeModal=te,this.route=K,this.router=ee,this.notificationsService=ae,this.translationService=Q,this.scriptDataService=j,this.authorizationDataService=k,this.modalService=G,this.objectType=a.h.DSPACEOBJECT,this.selectorTypes=[a.h.COLLECTION,a.h.COMMUNITY],this.action=E.i.EXPORT_METADATA}navigate(te){if(te instanceof d.F||te instanceof r.S){const K=this.modalService.open(h.Y);K.componentInstance.dso=te,K.componentInstance.headerLabel="confirmation-modal.export-metadata.header",K.componentInstance.infoLabel="confirmation-modal.export-metadata.info",K.componentInstance.cancelLabel="confirmation-modal.export-metadata.cancel",K.componentInstance.confirmLabel="confirmation-modal.export-metadata.confirm",K.componentInstance.confirmIcon="fas fa-file-export";const ee=K.componentInstance.response.pipe((0,n.w)(ae=>{if(ae)return this.startScriptNotifyAndRedirect(te).pipe((0,n.w)(j=>(0,t.of)(j)));this.modalService.open(Y).componentInstance.dsoRD=(0,v.AC)(te)}));return ee.subscribe(),ee}return(0,t.of)(!1)}startScriptNotifyAndRedirect(te){const K=[Object.assign(new p.N,{name:"-i",value:te.uuid})];return this.authorizationDataService.isAuthorized(P.i.AdministratorOf).pipe((0,n.w)(ee=>(ee&&K.push(Object.assign(new p.N,{name:"-a"})),this.scriptDataService.invoke(i.BW,K,[]))),(0,O.hC)(),(0,o.U)(ee=>{if(ee.hasSucceeded){const ae=this.translationService.get("process.new.notification.success.title"),Q=this.translationService.get("process.new.notification.success.content");return this.notificationsService.success(ae,Q),(0,m.UE)(ee.payload)&&this.router.navigateByUrl((0,b.Ah)(ee.payload.processId)),!0}{const ae=this.translationService.get("process.new.notification.error.title"),Q=this.translationService.get("process.new.notification.error.content");return this.notificationsService.error(ae,Q),!1}}))}}return Y.\u0275fac=function(te){return new(te||Y)(D.\u0275\u0275directiveInject(l.Kz),D.\u
10275\u0275directiveInject(C.gz),D.\u0275\u0275directiveInject(C.F0),D.\u0275\u0275directiveInject(_.T),D.\u0275\u0275directiveInject(I.sK),D.\u0275\u0275directiveInject(i.UY),D.\u0275\u0275directiveInject(M._),D.\u0275\u0275directiveInject(l.FF))},Y.\u0275cmp=D.\u0275\u0275defineComponent({type:Y,selectors:[["ds-export-metadata-selector"]],features:[D.\u0275\u0275InheritDefinitionFeature],decls:10,vars:7,consts:[[1,"modal-header"],["type","button","aria-label","Close",1,"close",3,"click"],["aria-hidden","true"],[1,"modal-body"],["class","h5 px-2",4,"ngIf"],[3,"currentDSOId","types","sort","onSelect"],[1,"h5","px-2"]],template:function(te,K){1&te&&(D.\u0275\u0275elementStart(0,"div")(1,"div",0),D.\u0275\u0275text(2),D.\u0275\u0275pipe(3,"translate"),D.\u0275\u0275elementStart(4,"button",1),D.\u0275\u0275listener("click",function(){return K.close()}),D.\u0275\u0275elementStart(5,"span",2),D.\u0275\u0275text(6,"\xd7"),D.\u0275\u0275elementEnd()()(),D.\u0275\u0275elementStart(7,"div",3),D.\u0275\u0275template(8,L,3,3,"span",4),D.\u0275\u0275elementStart(9,"ds-dso-selector",5),D.\u0275\u0275listener("onSelect",function(ae){return K.selectObject(ae)}),D.\u0275\u0275elementEnd()()()),2&te&&(D.\u0275\u0275advance(2),D.\u0275\u0275textInterpolate1("",D.\u0275\u0275pipeBind1(3,5,"dso-selector."+K.action+"."+K.objectType.toString().toLowerCase()+".head")," "),D.\u0275\u0275advance(6),D.\u0275\u0275property("ngIf",K.header),D.\u0275\u0275advance(1),D.\u0275\u0275property("currentDSOId",null==K.dsoRD?null:K.dsoRD.payload.uuid)("types",K.selectorTypes)("sort",K.defaultSort))},dependencies:[g.O5,B.O,I.X$],encapsulation:2}),Y})()},57117:(R,c,e)=>{"use strict";e.d(c,{w:()=>v});var t=e(94650),n=e(22979),o=e(95642),i=e(5086),d=e(39646),r=e(9769),a=e(34793),p=e(36895),h=e(36023),m=e(89383);function _(E,O){if(1&E&&(t.\u0275\u0275elementStart(0,"span",6),t.\u0275\u0275text(1),t.\u0275\u0275pipe(2,"translate"),t.\u0275\u0275elementEnd()),2&E){const b=t.\u0275\u0275nextContext();t.\u0275\u0275advance(1),t.\u0275\u0275textInterpolate(t.\u0275\u0275pipeBind1(2,1,b.header))}}let v=(()=>{class E extends i.q{constructor(b,M){super(b,M),this.activeModal=b,this.route=M,this.objectType=
1o.h.DSPACEOBJECT,this.selectorTypes=[o.h.COLLECTION],this.action=i.i.IMPORT_BATCH,this.response=new t.EventEmitter}navigate(b){return b instanceof n.F?(this.response.emit(b),(0,d.of)(null)):(this.response.emit(null),(0,d.of)(null))}}return E.\u0275fac=function(b){return new(b||E)(t.\u0275\u0275directiveInject(r.Kz),t.\u0275\u0275directiveInject(a.gz))},E.\u0275cmp=t.\u0275\u0275defineComponent({type:E,selectors:[["ds-import-batch-selector"]],outputs:{response:"response"},features:[t.\u0275\u0275InheritDefinitionFeature],decls:10,vars:7,consts:[[1,"modal-header"],["type","button","aria-label","Close",1,"close",3,"click"],["aria-hidden","true"],[1,"modal-body"],["class","h5 px-2",4,"ngIf"],[3,"currentDSOId","types","sort","onSelect"],[1,"h5","px-2"]],template:function(b,M){1&b&&(t.\u0275\u0275elementStart(0,"div")(1,"div",0),t.\u0275\u0275text(2),t.\u0275\u0275pipe(3,"translate"),t.\u0275\u0275elementStart(4,"button",1),t.\u0275\u0275listener("click",function(){return M.close()}),t.\u0275\u0275elementStart(5,"span",2),t.\u0275\u0275text(6,"\xd7"),t.\u0275\u0275elementEnd()()(),t.\u0275\u0275elementStart(7,"div",3),t.\u0275\u0275template(8,_,3,3,"span",4),t.\u0275\u0275elementStart(9,"ds-dso-selector",5),t.\u0275\u0275listener("onSelect",function(D){return M.selectObject(D)}),t.\u0275\u0275elementEnd()()()),2&b&&(t.\u0275\u0275advance(2),t.\u0275\u0275textInterpolate1("",t.\u0275\u0275pipeBind1(3,5,"dso-selector."+M.action+"."+M.objectType.toString().toLowerCase()+".head")," "),t.\u0275\u0275advance(6),t.\u0275\u0275property("ngIf",M.header),t.\u0275\u0275advance(1),t.\u0275\u0275property("currentDSOId",null==M.dsoRD?null:M.dsoRD.payload.uuid)("types",M.selectorTypes)("sort",M.defaultSort))},dependencies:[p.O5,h.O,m.X$],encapsulation:2}),E})()},24702:(R,c,e)=>{"use strict";e.d(c,{Ft:()=>n,K0:()=>o,UE:()=>m,Uh:()=>a,iy:()=>_,o8:()=>i,pT:()=>d,tz:()=>p,xI:()=>r,xb:()=>h});var t=e(39300);function n(O){return null===O}function o(O){return null!==O}function i(O){return void 0===O}function d(O){return void 0!==O}function r(O){return i(O)||n(O)}function a(O){return d(O)&&o(O)}const p=()=>O=>O.pipe((0,t.h)(b=>a(b)));function h(O){if(r(O))return!0;if("number"==typeof O.size)return!O.size;const b=typeof O;if("object"===b){const M=O.size;if("number"==typeof M)return!M}if("number"==typeof O.length&&"function"!==b)return!O.length;if("object"===b){if(0===Object.keys(O).length)return!0;const M=O.length;if("number"==typeof M)return!M}return!1}function m(O){return!h(O)}const _=()=>O=>O.pipe((0,t.h)(b=>m(b)))},62547:(R,c,e)=>{"use strict";e.d(c,{c:()=>M});var t=e(94650),n=e(61135),o=e(24702),i=e(63900),d=e(70207),r=e(68675),a=e(94357),p=e(68285),h=e(36895),m=e(77296),_=e(48106),v=e(89383);function E(P,D){1&P&&(t.\u0275\u0275elementStart(0,"li")(1,"button",3),t.\u0275\u0275text(2),t.\u0275\u0275pipe(3,"translate"),t.\u0275\u0275elementEnd()()),2&P&&(t.\u0275\u0275advance(2),t.\u0275\u0275textInterpolate1(" ",t.\u0275\u0275pipeBind1(3,1,"submission.sections.general.no-entity")," "))}function O(P,D){if(1&P){const l=t.\u0275\u0275getCurrentView();t.\u0275\u0275elementStart(0,"li",4)(1,"button",5),t.\u0275\u0275listener("click",function(){const g=t.\u0275\u0275restoreView(l).$implicit,B=t.\u0275\u0275nextContext();return t.\u0275\u0275resetView(B.onSelect(g))}),t.\u0275\u0275elementStart(2,"span",6),t.\u0275\u0275text(3),t.\u0275\u0275pipe(4,"translate"),t.\u0275\u0275elementEnd()()()}if(2&P){const l=D.$implicit;t.\u0275\u0275advance(1),t.\u0275\u0275propertyInterpolate("title",l.label),t.\u0275\u0275advance(2),t.\u0275\u0275textInterpolate(t.\u0275\u0275pipeBind1(4,2,l.label.toLowerCase()+".listelement.badge"))}}function b(P,D){1&P&&(t.\u0275\u0275elementStart(0,"li")(1,"button",3),t.\u0275\u0275element(2,"ds-themed-loading",7),t.\u0275\u0275pipe(3,"translate"),t.\u0275\u0275elementEnd()()),2&P&&(t.\u0275\u0275advance(2),t.\u0275\u0275propertyInterpolate("message",t.\u0275\u0275pipeBind1(3,1,"loading.default")))}let M=(()=>{class P{constructor(l,C,I){this.changeDetectorRef=l,this.entityTypeService=C,this.el=I,this.scrollableBottom=!1,this.scrollableTop=!1,this.searchListEntity=[],this.selectionChange=new t.EventEmitter,this.isLoadingList=new n.X(!1),this.subs=[]}onMousewheel(l){l.wheelDelta>0&&this.scrollableTop&&l.preventDefault(),l.wheelDelta<0&&this.scrollableBottom&&l.preventDefault()}ngOnInit(){this.resetPagination(),this.populateEntityList(this.currentPage)}onScroll(l){this.scrollableBottom=l.target.scrollTop+l.target.clientHeight===l.target.scrollHeight,this.scrollableTop=0===l.target.scrollTop}onScrollDown(){this.hasNextPage&&this.populateEntityList(++this.currentPage)}onSelect(l){this.selectionChange.emit(l)}populateEntityList(l){this.isLoadingList.next(!0);const C={elementsPerPage:10,currentPage:l};let I;I=this.isSubmission?this.entityTypeService.getAllAuthorizedRelationshipType(C):this.entityTypeService.getAllAuthorizedRelationshipTypeImport(C),this.searchListEntity$=I.pipe((0,p.JV)(),(0,i.w)(g=>(this.searchListEntity.length+C.elementsPerPage>=g.payload.totalElements&&(this.hasNextPage=!1),g.payload.page)),(0,d.u)((g,B)=>[...g,B],[]),(0,r.O)([])),this.subs.push(this.searchListEntity$.subscribe(g=>{this.searchListEntity.push(...g)},void 0,()=>{this.hideShowLoader(!1),this.changeDetectorRef.detectChanges()}))}resetPagination(){this.currentPage=1,this.hasNextPage=!0,this.searchListEntity=[]}hideShowLoader(l){this.isLoadingList.next(l)}ngOnDestroy(){this.subs.filter(l=>
1(0,o.Uh)(l)).forEach(l=>l.unsubscribe())}}return P.\u0275fac=function(l){return new(l||P)(t.\u0275\u0275directiveInject(t.ChangeDetectorRef),t.\u0275\u0275directiveInject(a.k),t.\u0275\u0275directiveInject(t.ElementRef))},P.\u0275cmp=t.\u0275\u0275defineComponent({type:P,selectors:[["ds-entity-dropdown"]],hostBindings:function(l,C){1&l&&t.\u0275\u0275listener("mousewheel",function(g){return C.onMousewheel(g)})},inputs:{isSubmission:"isSubmission"},outputs:{selectionChange:"selectionChange"},decls:6,vars:12,consts:[["role","menu","infiniteScroll","",1,"scrollable-menu","list-unstyled","mb-0",3,"infiniteScrollDistance","infiniteScrollThrottle","infiniteScrollUpDistance","fromRoot","scrollWindow","scroll","scrolled"],[4,"ngIf"],["class","entity-item text-primary",4,"ngFor","ngForOf"],["role","menuitem",1,"dropdown-item","disabled"],[1,"entity-item","text-primary"],["role","menuitem",1,"dropdown-item",3,"title","click"],[1,"text-truncate","font-weight-bold"],[3,"message"]],template:function(l,C){1&l&&(t.\u0275\u0275elementStart(0,"ul",0),t.\u0275\u0275listener("scroll",function(g){return C.onScroll(g)})("scrolled",function(){return C.onScrollDown()}),t.\u0275\u0275template(1,E,4,3,"li",1),t.\u0275\u0275pipe(2,"async"),t.\u0275\u0275template(3,O,5,4,"li",2),t.\u0275\u0275template(4,b,4,3,"li",1),t.\u0275\u0275pipe(5,"async"),t.\u0275\u0275elementEnd()),2&l&&(t.\u0275\u0275property("infiniteScrollDistance",5)("infiniteScrollThrottle",300)("infiniteScrollUpDistance",1.5)("fromRoot",!0)("scrollWindow",!1),t.\u0275\u0275advance(1),t.\u0275\u0275property("ngIf",0==(null==C.searchListEntity?null:C.searchListEntity.length)&&!t.\u0275\u0275pipeBind1(2,8,C.isLoadingList)),t.\u0275\u0275advance(2),t.\u0275\u0275property("ngForOf",C.searchListEntity),t.\u0275\u0275advance(1),t.\u0275\u0275property("ngIf",t.\u0275\u0275pipeBind1(5,10,C.isLoadingList)))},dependencies:[h.sg,h.O5,m.Ry,_.Z,h.Ov,v.X$],styles:[".dropdown-item[_ngcontent-%COMP%]{padding:.35rem 1rem}.dropdown-item[_ngcontent-%COMP%]:active{color:#fff!important}.scrollable-menu[_ngcontent-%COMP%]{height:auto;max-height:var(--ds-dropdown-menu-max-height);overflow-x:hidden}li[_ngcontent-%COMP%]:not(:last-of-type) .dropdown-item[_ngcontent-%COMP%]{border-bottom:var(--bs-dropdown-border-width) solid var(--bs-dropdown-border-color)}#entityControlsDropdownMenu[_ngcontent-%COMP%]{left:0!important}#entityControlsDropdownMenu[_ngcontent-%COMP%]{outline:0;box-shadow:var(--bs-btn-focus-box-shadow)}"]}),P})()},85349:(R,c,e)=>{"use strict";e.d(c,{W:()=>C});var t=e(94650),n=e(61135),o=e(54004),i=e(51541),d=e.n(i),r=e(4177),a=e(24702),p=e(83616),h=e(71508),m=e(77572),_=e(28652),v=e(68285),E=e(77467),O=e(17481),b=e(21147);function M(I,g){if(1&I){const B=t.\u0275\u0275getCurrentView();t.\u0275\u0275elementStart(0,"ds-eperson-search-box",3),t.\u0275\u0275listener("search",function(V){t.\u0275\u0275restoreView(B);const Y=t.\u0275\u0275nextContext();return t.\u0275\u0275resetView(Y.onSearch(V))}),t.\u0275\u0275elementEnd()}}function P(I,g){if(1&I){const B=t.\u0275\u0275getCurrentView();t.\u0275\u0275elementStart(0,"ds-group-search-box",3),t.\u0275\u0275listener("search",function(V){t.\u0275\u0275restoreView(B);const Y=t.\u0275\u0275nextContext();return t.\u0275\u0275resetView(Y.onSearch(V))}),t.\u0275\u0275elementEnd()}}function D(I,g){if(1&I){const B=t.\u0275\u0275getCurrentView();t.\u0275\u0275elementStart(0,"tr"),t.\u0275\u0275pipe(1,"async"),t.\u0275\u0275elementStart(2,"td"),t.\u0275\u0275text(3),t.\u0275\u0275elementEnd(),t.\u0275\u0275elementStart(4,"td"),t.\u0275\u0275text(5),t.\u0275\u0275elementEnd(),t.\u0275\u0275elementStart(6,"td",7)(7,"button",9),t.\u0275\u0275listener("click",function(){const Y=t.\u0275\u0275restoreView(B).$implicit,X=t.\u0275\u0275nextContext(2);return t.\u0275\u0275resetView(X.emitSelect(Y))}),t.\u0275\u0275text(8),t.\u0275\u0275pipe(9,"translate"),t.\u0275\u0275elementEnd()()()}if(2&I){const B=g.$implicit,L=t.\u0275\u0275nextContext(2);t.\u0275\u0275classProp("table-primary",t.\u0275\u0275pipeBind1(1,5,L.isSelected(B))),t.\u0275\u0275advance(3),t.\u0275\u0275textInterpolate(B.id),t.\u0275\u0275advance(2),t.\u0275\u0275textInterpolate(L.dsoNameService.getName(B)),t.\u0275\u0275advance(3),t.\u0275\u0275textInterpolate1(" ",t.\u0275\u0275pipeBind1(9,7,"resource-policies.form.eperson-group-list.select.btn")," ")}}function l(I,g){if(1&I&&(t.\u0275\u0275elementStart(0,"ds-pagination",4),t.\u0275\u0275pipe(1,"async"),t.\u0275\u0275elementStart(2,"div",5)(3,"table",6)(4,"thead")(5,"tr",7)(6,"th"),t.\u0275\u0275text(7),t.\u0275\u0275pipe(8,"translate"),t.\u0275\u0275elementEnd(),t.\u0275\u0275elementStart(9,"th"),t.\u0275\u0275text(10),t.\u0275\u0275pipe(11,"translate"),t.\u0275\u0275elementEnd(),t.\u0275\u0275elementStart(12,"th"),t.\u0275\u0275text(13),t.\u0275\u0275pipe(14,"translate"),t.\u0275\u0275elementEnd()()(),t.\u0275\u0275elementStart(15,"tbody"),t.\u0275\u0275template(16,D,10,9,"tr",8),t.\u0275\u0275pipe(17,"async"),t.\u0275\u0275elementEnd()()()()),2&I){const B=t.\u0275\u0275nextContext();let L,V;t.\u0275\u0275property("paginationOptions",B.paginationOptions)("collectionSize",null==(L=t.\u0275\u0275pipeBind1(1,8,B.getList()))||null==L.payload?null:L.payload.totalElements)("retainScrollPosition",!0)("hideGear",!0),t.\u0275\u0275advance(7),t.\u0275\u0275textInterpolate(t.\u0275\u0275pipeBind1(8,10,"resource-policies.form.eperson-group-list.table.headers.id")),t.\u0275\u0275advance(3),t.\u0275\u0275textInterpolate(t.\u0275\u0275pipeBind1(11,12,"resource-policies.form.eperson-group-list.table.headers.name")),t.\u0275\u0275advance(3),t.\u0275\u0275textInterpolate(t.\u0275\u0275pipeBind1(14,14,"resource-policies.form.eperson-group-list.table.headers.action")),t.\u0275\u0275advance(3),t.\u0275\u0275property("ngForOf",null==(V=t.\u0275\u0275pipeBind1(17,16,B.getList()))||null==V.payload?null:V.payload.page)}}let C=(()=>{class I{constructor(B,L,V){this.dsoNameService=B,this.parentInjector=L,this.paginationService=V,this.isListOfEPerson=!0,this.select=new t.EventEmitter,this.currentSearchQuery="",this.currentSearchScope="metadata",this.paginationOptions=new r.r,this.list$=new n.X({}),this.entrySelectedId=new n.X(""),this.subs=[]}ngOnInit(){const L=(0,b.p)(this.isListOfEPerson?h.U:m.o);this.dataService=t.Injector.create({providers:[],parent:this.parentInjector}).get(L),this.paginationOptions.id=d()("egl"),this.paginationOptions.pageSize=5,this.initSelected&&this.entrySelectedId.next(this.initSelected),this.updateList(this.currentSearchScope,this.currentSearchQuery)}emitSelect(B){this.select.emit(B),this.entrySelectedId.next(B.id)}getList(){return this.list$.asObservable()}isSelected(B){return this.entrySelectedId.asObservable().pipe((0,o.U)(L=>(0,a.UE)(L)&&L===B.id))}onSearch(B){this.currentSearchQuery=B.query,this.currentSearchScope=B.scope,this.paginationService.resetPage(this.paginationOptions.id),this.updateList(this.currentSearchScope,this.currentSearchQuery)}updateList(B,L){(0,a.Uh)(this.pageConfigSub)&&this.pageConfigSub.unsubscribe(),this.pageConfigSub=this.paginationService.getCurrentPagination(this.paginationOptions.id,this.paginationOptions).subscribe(V=>{const Y=Object.assign({},new O.R,{elementsPerPage:V.pageSize,currentPage:V.currentPage}),X=this.isListOfEPerson?this.dataService.searchByScope(B,L,Y):this.dataService.searchGroups(L,Y);this.subs.push(X.pipe((0,v.hC)()).subscribe(te=>{(0,a.Uh)(this.list$)&&this.list$.next(te)}))})}
1ngOnDestroy(){this.list$=null,this.subs.filter(B=>(0,a.Uh)(B)).forEach(B=>B.unsubscribe()),this.paginationService.clearPagination(this.paginationOptions.id)}}return I.\u0275fac=function(B){return new(B||I)(t.\u0275\u0275directiveInject(p._),t.\u0275\u0275directiveInject(t.Injector),t.\u0275\u0275directiveInject(E.N))},I.\u0275cmp=t.\u0275\u0275defineComponent({type:I,selectors:[["ds-eperson-group-list"]],inputs:{isListOfEPerson:"isListOfEPerson",initSelected:"initSelected"},outputs:{select:"select"},decls:5,vars:6,consts:[[1,"mt-3"],[3,"search",4,"ngIf"],[3,"paginationOptions","collectionSize","retainScrollPosition","hideGear",4,"ngIf"],[3,"search"],[3,"paginationOptions","collectionSize","retainScrollPosition","hideGear"],[1,"table-responsive"],["id","groups",1,"table","table-sm","table-striped","table-hover","table-bordered"],[1,"text-center"],[3,"table-primary",4,"ngFor","ngForOf"],[1,"btn","btn-sm","btn-outline-primary",3,"click"]],template:function(B,L){if(1&B&&(t.\u0275\u0275elementStart(0,"div",0),t.\u0275\u0275template(1,M,1,0,"ds-eperson-search-box",1),t.\u0275\u0275template(2,P,1,0,"ds-group-search-box",1),t.\u0275\u0275template(3,l,18,18,"ds-pagination",2),t.\u0275\u0275pipe(4,"async"),t.\u0275\u0275elementEnd()),2&B){let V;t.\u0275\u0275property("@fadeInOut",void 0),t.\u0275\u0275advance(1),t.\u0275\u0275property("ngIf",L.isListOfEPerson),t.\u0275\u0275advance(1),t.\u0275\u0275property("ngIf",!L.isListOfEPerson),t.\u0275\u0275advance(1),t.\u0275\u0275property("ngIf",(null==(V=t.\u0275\u0275pipeBind1(4,4,L.getList()))||null==V.payload?null:V.payload.totalElements)>0)}},data:{animation:[_.Ic]}}),I})()},41971:(R,c,e)=>{"use strict";e.d(c,{q:()=>d});var t=e(92849),n=e(94650),o=e(89383),i=e(38605);let d=(()=>{class r{constructor(p){this.translate=p,this.message="Error...",this.AlertTypeEnum=t.N}ngOnInit(){void 0===this.message&&(this.subscription=this.translate.get("error.default").subscribe(p=>{this.message=p}))}ngOnDestroy(){void 0!==this.subscription&&this.subscription.unsubscribe()}}return r.\u0275fac=function(p){return new(p||r)(n.\u0275\u0275directiveInject(o.sK))},r.\u0275cmp=n.\u0275\u0275defineComponent({type:r,selectors:[["ds-error"]],inputs:{message:"message"},decls:2,vars:3,consts:[[3,"type","dismissible"],[3,"innerHTML"]],template:function(p,h){1&p&&(n.\u0275\u0275elementStart(0,"ds-alert",0),n.\u0275\u0275element(1,"span",1),n.\u0275\u0275elementEnd()),2&p&&(n.\u0275\u0275property("type",h.AlertTypeEnum.Error)("dismissible",!1),n.\u0275\u0275advance(1),n.\u0275\u0275property("innerHTML",h.message,n.\u0275\u0275sanitizeHtml))},dependencies:[i.w]}),r})()},13582:(R,c,e)=>{"use strict";e.r(c),e.d(c,{FileDownloadLinkComponent:()=>l}),e(59161);var n=e(50503),o=e(83616),i=e(19937),d=e(47235),r=e(24702),a=e(54004),p=e(39841),h=e(39646),_=(e(33609),e(94650)),v=e(36895),E=e(34793),O=e(89383);function b(C,I){1&C&&(_.\u0275\u0275elementStart(0,"span",4),_.\u0275\u0275pipe(1,"translate"),_.\u0275\u0275element(2,"i",5),_.\u0275\u0275elementEnd()),2&C&&_.\u0275\u0275attribute("aria-label",_.\u0275\u0275pipeBind1(1,1,"file-download-link.restricted"))}function M(C,I){1&C&&_.\u0275\u0275elementContainer(0)}function P(C,I){1&C&&_.\u0275\u0275projection(0)}const D=["*"];let l=(()=>{class C{constructor(g,B){this.authorizationService=g,this.dsoNameService=B,this.cssClasses="",this.isBlank=!1,this.enableRequestACopy=!0}ngOnInit(){if(this.enableRequestACopy){this.canDownload$=this.authorizationService.isAuthorized(d.i.CanDownload,(0,r.UE)(this.bitstream)?this.bitstream.self:void 0);const g=this.authorizationService.isAuthorized(d.i.CanRequestACopy,(0,r.UE)(this.bitstream)?this.bitstream.self:void 0);this.bitstreamPath$=(0,p.a)([this.canDownload$,g]).pipe((0,a.U)(([B,L])=>this.getBitstreamPath(B,L)))}else this.bitstreamPath$=(0,h.of)(this.getBitstreamDownloadPath()),this.canDownload$=(0,h.of)(!0)}getBitstreamPath(g,B){return!g&&B&&(0,r.Uh)(this.item)?(0,n.gL)(this.item,this.bitstream):this.getBitstreamDownloadPath()}getBitstreamDownloadPath(){return{routerLink:(0,n.gs)(this.bitstream),queryParams:{}}}}return C.\u0275fac=function(g){return new(g||C)(_.\u0275\u0275directiveInject(i._),_.\u0275\u0275directiveInject(o._))},C.\u0275cmp=_.\u0275\u0275defineComponent({type:C,selectors:[["ds-file-download-l
1ink"]],inputs:{bitstream:"bitstream",item:"item",cssClasses:"cssClasses",isBlank:"isBlank",enableRequestACopy:"enableRequestACopy"},ngContentSelectors:D,decls:9,vars:15,consts:[[1,"dont-break-out",3,"routerLink","queryParams","target","ngClass"],["class","pr-1",4,"ngIf"],[4,"ngTemplateOutlet"],["content",""],[1,"pr-1"],[1,"fas","fa-lock"]],template:function(g,B){if(1&g&&(_.\u0275\u0275projectionDef(),_.\u0275\u0275elementStart(0,"a",0),_.\u0275\u0275pipe(1,"async"),_.\u0275\u0275pipe(2,"async"),_.\u0275\u0275pipe(3,"translate"),_.\u0275\u0275template(4,b,3,3,"span",1),_.\u0275\u0275pipe(5,"async"),_.\u0275\u0275template(6,M,1,0,"ng-container",2),_.\u0275\u0275elementEnd(),_.\u0275\u0275template(7,P,1,0,"ng-template",null,3,_.\u0275\u0275templateRefExtractor)),2&g){const L=_.\u0275\u0275reference(8);let V,Y;_.\u0275\u0275property("routerLink",null==(V=_.\u0275\u0275pipeBind1(1,7,B.bitstreamPath$))?null:V.routerLink)("queryParams",null==(Y=_.\u0275\u0275pipeBind1(2,9,B.bitstreamPath$))?null:Y.queryParams)("target",B.isBlank?"_blank":"_self")("ngClass",B.cssClasses),_.\u0275\u0275attribute("aria-label",_.\u0275\u0275pipeBind1(3,11,"file-download-link.download")+B.dsoNameService.getName(B.bitstream)),_.\u0275\u0275advance(4),_.\u0275\u0275property("ngIf",!_.\u0275\u0275pipeBind1(5,13,B.canDownload$)),_.\u0275\u0275advance(2),_.\u0275\u0275property("ngTemplateOutlet",L)}},dependencies:[v.mk,v.O5,v.tP,E.rH,v.Ov,O.X$]}),C})()},99431:(R,c,e)=>{"use strict";e.d(c,{t:()=>a});var t=e(25330),i=(e(59161),e(33609),e(94650));function d(p,h){}const r=["*"];let a=(()=>{class p extends t.F{constructor(){super(...arguments),this.inAndOutputNames=["bitstream","item","cssClasses","isBlank","enableRequestACopy"]}getComponentName(){return"FileDownloadLinkComponent"}importThemedComponent(m){return e(27935)(`./${m}/app/shared/file-download-link/file-download-link.component`)}importUnthemedComponent(){return Promise.resolve().then(e.bind(e,13582))}}return p.\u0275fac=function(){let h;return function(_){return(h||(h=i.\u0275\u0275getInheritedFactory(p)))(_||p)}}(),p.\u0275cmp=i.\u0275\u0275defineComponent({type:p,selectors:[["ds-themed-file-download-link"]],inputs:{bitstream:"bitstream",item:"item",cssClasses:"cssClasse
1s",isBlank:"isBlank",enableRequestACopy:"enableRequestACopy"},features:[i.\u0275\u0275InheritDefinitionFeature],ngContentSelectors:r,decls:5,vars:0,consts:[["vcr",""],["content",""]],template:function(m,_){1&m&&(i.\u0275\u0275projectionDef(),i.\u0275\u0275template(0,d,0,0,"ng-template",null,0,i.\u0275\u0275templateRefExtractor),i.\u0275\u0275elementStart(2,"div",null,1),i.\u0275\u0275projection(4),i.\u0275\u0275elementEnd())},encapsulation:2}),p})()},78103:(R,c,e)=>{"use strict";e.d(c,{Q:()=>t,n:()=>n});const t="RELATION",n="#PLACEHOLDER_PARENT_METADATA_VALUE#"},74043:(R,c,e)=>{"use strict";e.d(c,{H:()=>b,t:()=>O});var t=e(94650),o=(e(96807),e(24702)),i=e(19672),d=e(36895),r=e(64509),a=e.n(r),p=e(89383),h=e(24006),m=e(93007);function _(M,P){1&M&&(t.\u0275\u0275elementStart(0,"span"),t.\u0275\u0275text(1,"*"),t.\u0275\u0275elementEnd())}const v=function(M,P){return[M,P]};function E(M,P){if(1&M&&(t.\u0275\u0275elementStart(0,"legend",5),t.\u0275\u0275text(1),t.\u0275\u0275template(2,_,2,0,"span",6),t.\u0275\u0275elementEnd()),2&M){const D=t.\u0275\u0275nextContext();t.\u0275\u0275property("id","legend_"+D.model.id)("ngClass",t.\u0275\u0275pureFunction2(4,v,D.getClass("element","label"),D.getClass("grid","label"))),t.\u0275\u0275advance(1),t.\u0275\u0275textInterpolate1(" ",D.model.placeholder," "),t.\u0275\u0275advance(1),t.\u0275\u0275property("ngIf",D.model.required)}}const O="-";let b=(()=>{class M extends i.LvC{constructor(D,l,C,I,g){super(D,l),this.layoutService=D,this.validationService=l,this.translateService=C,this.renderer=I,this._document=g,this.bindId=!0,this.selected=new t.EventEmitter,this.remove=new t.EventEmitter,this.blur=new t.EventEmitter,this.change=new t.EventEmitter,this.focus=new t.EventEmitter,this.minMonth=1,this.maxMonth=12,this.minDay=1,this.maxDay=31,this.disabledMonth=!0,this.disabledDay=!0,this.fields=["_year","_month","_day"]}ngOnInit(){const D=new Date;if(this.initialYear=D.getUTCFullYear(),this.initialMonth=D.getUTCMonth()+1,this.initialDay=D.getUTCDate(),this.model&&null!==this.model.value){const l=this.model.value.toString().split(O);l.length>0&&(this.initialYear=parseInt(l[0],10),this.year=this.initialYear,this.disabledMonth=!1),l.length>1&&(this.initialMonth=parseInt(l[1],10),this.month=this.initialMonth,this.disabledDay=!1),l.length>2&&(this.initialDay=parseInt(l[2],10),this.day=this.initialDay)}this.maxYear=D.getUTCFullYear()+100}onBlur(D){this.blur.emit()}onChange(D){switch(D.field){case"year":null!==D.value?this.year=D.value:(this.year=void 0,this.month=void 0,this.day=void 0,this.disabledMonth=!0,this.disabledDay=!0);break;case"month":null!==D.value?this.month=D.value:(this.month=void 0,this.day=void 0,this.disabledDay=!0);break;case"day":this.day=null!==D.value?D.value:void 0}if(!this.disabledDay){const I=new Date(this.year,this.month?this.month-1:0,1);this.maxDay=this.getLastDay(I),this.day>this.maxDay&&(this.day=this.maxDay)}(0,o.Uh)(this.year)&&"year"===D.field?this.disabledMonth=!1:(0,o.Uh)(this.month)&&"month"===D.field&&(this.disabledDay=!1);let l=null;if((0,o.Uh)(this.year)){let C=this.year.toString();for(;C.length<4;)C="0"+C;l=C}if((0,o.Uh)(this.month)){const C=1===this.month.toString().length?"0"+this.month.toString():this.month.toString();l+=O+C}if((0,o.Uh)(this.day)){const C=1===this.day.toString().length?"0"+this.day.toString():this.day.toString();l+=O+C}this.model.value=l,this.change.emit(l)}onTabKeydown(D){D.preventDefault();const l=this._document.activeElement;l.blur();const C=this.selectedFieldIndex(l);if(C<0)return;let I=C+1;I<this.fields.length&&this.focusInput(this.fields[I])}onShiftTabKeyDown(D){D.preventDefault();const l=this._document.activeElement;l.blur();let I=this.selectedFieldIndex(l)-1;I>=0&&this.focusInput(this.fields[I])}selectedFieldIndex(D){return this.fields.findIndex(l=>a()(D.id,this.model.id.concat(l)))}focusInput(D){const l=this._document.getElementById(this.model.id.concat(D));l&&((0,o.Uh)(this.year)&&a()(D,"_year")&&(this.disabledMonth=!0,this.disabledDay=!0),(0,o.Uh)(this.year)&&a()(D,"_month")?this.disabledMonth=!1:(0,o.Uh)(this.month)&&a()(D,"_day")&&(this.disabledDay=!1),setTimeout(()=>{this.renderer.selectRootElement(l).focus()},100))}onFocus(D){this.focus.emit(D)}getLastDay(D){return D.setMonth(D.getMonth()+1,0),D.getDate()}}return M.\u0275fac=function(D){return new(D||M)(t.\u0275\u0275directiveInject(i.vnf),t.\u0275\u0275directiveInject(i.fhz),t.\u0275\u0275directiveInject(p.sK),t.\u0275\u0275directiveInject(t.Renderer2),t.\u0275\u0275directiveInject(d.K0))},M.\u0275cmp=t.\u0275\u0275defineComponent({type:M,selectors:[["ds-date-picker"]],hostBindings:function(D,l){1&D&&t.\u0275\u0275listener("keydown.tab",function(I){return l.onTabKeydown(I)})("keydown.shift.tab",function(I){return l.onShiftTabKeyDown(I)})},inputs:{bindId:"bindId",group:"group",model:"model",legend:"legend"},outputs:{selected:"selected",remove:"remove",blur:"blur",change:"change",focus:"focus"},features:[t.\u0275\u0275InheritDefinitionFeature],decls:10,vars:35,consts:[[1,"d-flex"],[3,"id","ngClass",4,"ngIf"],["tabindex","0",3,"id","disabled","min","max","name","size","ngModel","value","invali
1d","placeholder","ngModelChange","blur","change","focus"],["tabindex","0",3,"id","min","max","name","size","ngModel","value","placeholder","disabled","ngModelChange","blur","change","focus"],[1,"clearfix"],[3,"id","ngClass"],[4,"ngIf"]],template:function(D,l){1&D&&(t.\u0275\u0275elementStart(0,"div")(1,"fieldset",0),t.\u0275\u0275template(2,E,3,7,"legend",1),t.\u0275\u0275elementStart(3,"ds-number-picker",2),t.\u0275\u0275listener("ngModelChange",function(I){return l.initialYear=I})("blur",function(I){return l.onBlur(I)})("change",function(I){return l.onChange(I)})("focus",function(I){return l.onFocus(I)}),t.\u0275\u0275pipe(4,"translate"),t.\u0275\u0275elementEnd(),t.\u0275\u0275elementStart(5,"ds-number-picker",3),t.\u0275\u0275listener("ngModelChange",function(I){return l.initialMonth=I})("blur",function(I){return l.onBlur(I)})("change",function(I){return l.onChange(I)})("focus",function(I){return l.onFocus(I)}),t.\u0275\u0275pipe(6,"translate"),t.\u0275\u0275elementEnd(),t.\u0275\u0275elementStart(7,"ds-number-picker",3),t.\u0275\u0275listener("ngModelChange",function(I){return l.initialDay=I})("blur",function(I){return l.onBlur(I)})("change",function(I){return l.onChange(I)})("focus",function(I){return l.onFocus(I)}),t.\u0275\u0275pipe(8,"translate"),t.\u0275\u0275elementEnd()()(),t.\u0275\u0275element(9,"div",4)),2&D&&(t.\u0275\u0275advance(2),t.\u0275\u0275property("ngIf",!l.model.repeatable),t.\u0275\u0275advance(1),t.\u0275\u0275property("id",l.model.id+"_year")("disabled",l.model.disabled)("min",l.minYear)("max",l.maxYear)("name","year")("size",4)("ngModel",l.initialYear)("value",l.year)("invalid",l.showErrorMessages)("placeholder",t.\u0275\u0275pipeBind1(4,29,"form.date-picker.placeholder.year")),t.\u0275\u0275advance(2),t.\u0275\u0275property("id",l.model.id+"_month")("min",l.minMonth)("max",l.maxMonth)("name","month")("size",6)("ngModel",l.initialMonth)("value",l.month)("placeholder",t.\u0275\u0275pipeBind1(6,31,"form.date-picker.placeholder.month"))("disabled",!l.year||l.model.disabled),t.\u0275\u0275advance(2),t.\u0275\u0275property("id",l.model.id+"_day")("min",l.minDay)("max",l.maxDay)("name","day")("size",2)("ngModel",l.initialDay)("value",l.day)("placeholder",t.\u0275\u0275pipeBind1(8,33,"form.date-picker.placeholder.day"))("disabled",!l.month||l.model.disabled))},dependencies:[d.mk,d.O5,h.JJ,h.On,m.g,p.X$],styles:[".col-lg-1[_ngcontent-%COMP%]{width:auto}legend[_ngcontent-%COMP%]{font-size:initial}"]}),M})()},96807:(R,c,e)=>{"use strict";e.d(c,{L:()=>a,R:()=>p});var t=e(70655),n=e(19672),o=e(61135),i=e(77579),d=e(24702),r=e(79300);const a="DATE";class p extends n.x7Z{constructor(m,_){super(m,_),this.type=a,this.hasLanguages=!1,this.repeatable=!1,this.malformedDate=!1,this.legend=m.legend,this.metadataValue=m.metadataValue,this.typeBindRelations=m.typeBindRelations?m.typeBindRelations:[],this.hiddenUpdates=new o.X(this.hidden),this.repeatable=m.repeatable;const v=this.getRootParent(this);v&&(0,d.pT)(v.hidden)&&(v.hidden=this.hidden)}getRootParent(m){return(0,d.xb)(m)||(0,d.xb)(m.parent)?m:this.getRootParent(m.parent)}}(0,t.__decorate)([(0,n.BgY)(),(0,t.__metadata)("design:type",i.x)],p.prototype,"hiddenUpdates",void 0),(0,t.__decorate)([(0,n.BgY)(),(0,t.__metadata)("design:type",Array)],p.prototype,"typeBindRelations",void 0),(0,t.__decorate)([(0,n.BgY)(),(0,t.__metadata)("design:type",String)],p.prototype,"type",void 0),(0,t.__decorate)([(0,n.BgY)(),(0,t.__metadata)("design:type",r.DA)],p.prototype,"metadataValue",void 0)},53905:(R,c,e)=>{"use strict";e.d(c,{O:()=>d,W:()=>i});var t=e(70655),n=e(19672),o=e(19260);const i="EMPTY";class d extends o.u{constructor(a,p){super(a,p),this.type=i,this.readOnly=!0,this.disabled=!0,this.hasSelectableMetadata=a.hasSelectableMetadata,this.value=a.value}}(0,t.__decorate)([(0,n.BgY)(),(0,t.__metadata)("design:type",String)],d.prototype,"type",void 0),(0,t.__decorate)([(0,n.BgY)(),(0,t.__metadata)("design:type",Boolean)],d.prototype,"hasSelectableMetadata",void 0)},19260:(R,c,e)=>{"use strict";e.d(c,{u:()=>p});var t=e(70655),n=e(19672),o=e(77579),i=e(84476),d=e(24702),r=e(7973),a=e(34780);
1class p extends n.b1u{constructor(m,_){super(m,_),this.typeBindHidden=!1,this.repeatable=m.repeatable,this.metadataFields=m.metadataFields,this.hint=m.hint,this.readOnly=m.readOnly,this.disabled=m.readOnly,this.value=m.value,this.relationship=m.relationship,this.submissionId=m.submissionId,this.hasSelectableMetadata=m.hasSelectableMetadata,this.metadataValue=m.metadataValue,this.place=m.place,this.isModelOfInnerForm=!!(0,d.Uh)(m.isModelOfInnerForm)&&m.isModelOfInnerForm,this.hideErrorMessages=m.hideErrorMessages,this.language=m.language,this.language||(m.value instanceof r.u?this.language=m.value.language:Array.isArray(m.value)&&m.value[0].language&&(this.language=m.value[0].language)),this.languageCodes=m.languageCodes,this.languageUpdates=new o.x,this.languageUpdates.subscribe(v=>{this.language=v}),this.typeBindRelations=m.typeBindRelations?m.typeBindRelations:[],this.vocabularyOptions=m.vocabularyOptions}get hasAuthority(){return this.vocabularyOptions&&(0,d.Uh)(this.vocabularyOptions.name)}get hasLanguages(){return this.languageCodes&&this.languageCodes.length>1}get language(){return this._language}set language(m){this._language=m}get languageCodes(){return this._languageCodes}set languageCodes(m){this._languageCodes=m,(!this.language||""===this.language)&&(this.language=this.languageCodes?this.languageCodes[0].code:null)}}(0,t.__decorate)([(0,n.BgY)(),(0,t.__metadata)("design:type",i.f)],p.prototype,"vocabularyOptions",void 0),(0,t.__decorate)([(0,n.BgY)(),(0,t.__metadata)("design:type",Array)],p.prototype,"_languageCodes",void 0),(0,t.__decorate)([(0,n.BgY)(),(0,t.__metadata)("design:type",String)],p.prototype,"_language",void 0),(0,t.__decorate)([(0,n.BgY)(),(0,t.__metadata)("design:type",o.x)],p.prototype,"languageUpdates",void 0),(0,t.__decorate)([(0,n.BgY)(),(0,t.__metadata)("design:type",Number)],p.prototype,"place",void 0),(0,t.__decorate)([(0,n.BgY)(),(0,t.__metadata)("design:type",Array)],p.prototype,"typeBindRelations",void 0),(0,t.__decorate)([(0,n.BgY)(),(0,t.__metadata)("design:type",Object)],p.prototype,"typeBindHidden",void 0),(0,t.__decorate)([(0,n.BgY)(),(0,t.__metadata)("design:type",a.u)],p.prototype,"relationship",void 0),(0,t.__decorate)([(0,n.BgY)(),(0,t.__metadata)("design:type",Boolean)],p.prototype,"repeatable",void 0),(0,t.__decorate)([(0,n.BgY)(),(0,t.__metadata)("design:type",Array)],p.prototype,"metadataFields",void 0),(0,t.__decorate)([(0,n.BgY)(),(0,t.__metadata)("design:type",String)],p.prototype,"submissionId",void 0),(0,t.__decorate)([(0,n.BgY)(),(0,t.__metadata)("design:type",Boolean)],p.prototype,"hasSelectableMetadata",void 0),(0,t.__decorate)([(0,n.BgY)(),(0,t.__metadata)("design:type",r.u)],p.prototype,"metadataValue",void 0),(0,t.__decorate)([(0,n.BgY)(),(0,t.__metadata)("design:type",Boolean)],p.prototype,"isModelOfInnerForm",void 0),(0,t.__decorate)([(0,n.BgY)(),(0,t.__metadata)("design:type",Boolean)],p.prototype,"hideErrorMessages",void 0)},18980:(R,c,e)=>{"use strict";e.d(c,{v:()=>d});var t=e(70655),n=e(19672),o=e(34780),i=e(24702);class d extends n.RRz{constructor(a,p){super(a,p),this.notRepeatable=!1,this.required=!1,this.showButtons=!0,this.isRowArray=!0,this.isInlineGroupArray=!1,(0,i.Uh)(a.notRepeatable)&&(this.notRepeatable=a.notRepeatable),(0,i.Uh)(a.required)&&(this.required=a.required),(0,i.Uh)(a.showButtons)&&(this.showButtons=a.showButtons),this.submissionId=a.submissionId,this.relationshipConfig=a.relationshipConfig,this.metadataKey=a.metadataKey,this.metadataFields=a.metadataFields,this.hasSelectableMetadata=a.hasSelectableMetadata,this.isDraggable=a.isDraggable,this.typeBindRelations=a.typeBindRelations?a.typeBindRelations:[],this.isInlineGroupArray=!!a.isInlineGroupArray&&a.isInlineGroupArray}}(0,t.__decorate)([(0,n.BgY)(),(0,t.__metadata)("design:type",Object)],d.prototype,"notRepeatable",void 0),(0,t.__decorate)([(0,n.BgY)(),(0,t.__metadata)("design:type",Object)],d.prototype,"required",void 0),(0,t.__decorate)([(0,n.BgY)(),(0,t.__metadata)("design:type",String)],d.prototype,"submissionId",void 0),(0,t.__decorate)([(0,n.BgY)(),(0,t.__metadata)("design:type",o.u)],d.prototype,"relationshipConfig",void 0),(0,t.__decorate)([(0,n.BgY)(),(0,t.__metadata)("design:type",String)],d.prototype,"metadataKey",void 0),(0,t.__decorate)([(0,n.BgY)(),(0,t.__metadata)("design:type",Array)],d.prototype,"metadataFields",void 0),(0,t.__decorate)([(0,n.BgY)(),(0,t.__metadata)("design:type",Boolean)],d.prototype,"hasSelectableMetadata",void 0),(0,t.__decorate)([(0,n.BgY)(),(0,t.__metadata)("design:type",Boolean)],d.prototype,"isDraggable",void 0),(0,t.__decorate)([(0,n.BgY)(),(0,t.__metadata)("design:type",Object)],d.prototype,"showButtons",void 0),(0,t.__decorate)([(0,n.BgY)(),(0,t.__metadata)("design:type",Array)],d.prototype,"typeBindRelations",void 0)},67779:(R,c,e)=>{"use strict";e.d(c,{D:()=>i});var t=e(70655),n=e(19672),o=e(19260);class i extends o.u{constructor(r,a){super(r,a),this.type=n.Pdh,this.cols=r.cols,this.rows=r.rows,this.wrap=r.wrap}}(0,t.__decorate)([(0,n.BgY)(),(0,t.__metadata)("design:type",Number)],i.prototype,"cols",void 0),(0,t.__decorate)([(0,n.BgY)(),(0,t.__metadata)("design:type",Number)],i.prototype,"rows",void 0),(0,t.__decorate)([(0,n.BgY)(),(0,t.__metadata)("design:type",String)],i.prototype,"wrap",void 0),(0,t.__decorate)([(0,n.BgY)(),(0,t.__metadata)("design:type",Object)],i.prototype,"type",void 0)},11656:(R,c,e)=>{"use strict";e.d(c,{R:()=>r});var t=e(70655),n=e(77579),o=e(19672),i=e(84476),d=e(24702);class r extends o.jbD{constructor(p,h){super(p,h),this.isListGroup=!0,this.vocabularyOptions=p.vocabularyOptions,this.groupLength=p.groupLength||5,this._value=[],this.repeatable=p.repeatable,this.required=p.required,this.hint=p.hint,this.valueUpdates=new n.x,this.valueUpdates.subscribe(m=>this.value=m),this.valueUpdates.next(p.value),this.typeBindRelations=p.typeBindRelations?p.typeBindRelations:[]}get hasAuthority(){return this.vocabularyOptions&&(0,d.Uh)(this.vocabularyOptions.name)}get value(){return this._value}set value(p){p&&(this._value=Array.isArray(p)?p:this.value.concat([p]))}}(0,t.__decorate)([(0,o.BgY)(),(0,t.__metadata)("design:type",i.f)],r.prototype,"vocabularyOptions",void 0),(0,t.__decorate)([(0,o.BgY)(),(0,t.__metadata)("design:type",Boolean)],r.prototype,"repeatable",void 0),(0,t.__decorate)([(0,o.BgY)(),(0,t.__metadata)("design:type",Number)],r.prototype,"groupLength",void 0),(0,t.__decorate)([(0,o.BgY)(),(0,t.__metadata)("design:type",Array)],r.prototype,"_value",void 0),(0,t.__decorate)([(0,o.BgY)(),(0,t.__metadata)("design:type",Array)],r.prototype,"typeBindRelations",void 0),(0,t.__decorate)([(0,o.BgY)(),(0,t.__metadata)("design:type",Boolean)],r.prototype,"required",void 0),(0,t.__decorate)([(0,o.BgY)(),(0,t.__metadata)("design:type",String)],r.prototype,"hint",void 0)},49210:(R,c,e)=>{"use strict";e.d(c,{s:()=>d});var t=e(70655),n=e(19672),o=e(84476),i=e(24702);class d extends n.TJt{constructor(a,p){super(a,p),this.isListGroup=!0,this.vocabularyOptions=a.vocabularyOptions,this.groupLength=a.groupLength||5,this.repeatable=a.repeatable,this.required=a.required,this.hint=a.hint,this.value=a.value,this.typeBindRelations=a.typeBindRelations?a.typeBindRelations:[]}get hasAuthority(){return this.vocabularyOptions&&(0,i.Uh)(this.vocabularyOptions.name)}}(0,t.__decorate)([(0,n.BgY)(),(0,t.__metadata)("design:type",o.f)],d.prototype,"vocabularyOptions",void 0),(0,t.__decorate)([(0,n.BgY)(),(0,t.__metadata)("design:type",Boolean)],d.prototype,"repeatable",void 0),(0,t.__decorate)([(0,n.BgY)(),(0,t.__metadata)("design:type",Array)],d.prototype,"typeBindRelations",void 0),(0,t.__decorate)([(0,n.BgY)(),(0,t.__metadata)("design:type",Number)],d.prototype,"groupLength",void 0),(0,t.__decorate)([(0,n.BgY)(),(0,t.__metadata)("design:type",Boolean)],d.prototype,"required",void 0),(0,t.__decorate)([(0,n.BgY)(),(0,t.__metadata)("design:type",String)],d.prototype,"hint",void 0)},16125:(R,c,e)=>{"use strict";e.d(c,{S:()=>i,z:()=>d});var t=e(70655),n=e(19672),o=e(41850);const i="LOOKUP_NAME";class d extends o.Z{constructor(a,p){super(a,p),this.type=i,this.separator=a.separator||",",this.placeholder=a.firstPlaceholder||"form.last-name",this.secondPlaceholder=a.secondPlaceholder||"form.first-name"}}(0,t.__decorate)([(0,n.BgY)(),(0,t.__metadata)("design:type",String)],d.prototype,"separator",void 0),(0,t.__decorate)([(0,n.BgY)(),(0,t.__metadata)("design:type",String)],d.prototype,"secondPlaceholder",void 0),(0,t.__decorate)([(0,n.BgY)(),(0,t.__metadata)("design:type",String)],d.prototype,"type",void 0)},41850:(R,c,e)=>{"use strict";e.d(c,{Z:()=>d,d:()=>i});var t=e(70655),n=e(19672),o=e(19260);const i="LOOKUP";class d extends o.u{constructor(a,p){super(a,p),this.type=i,this.autoComplete=n.dd1,this.maxOptions=a.maxOptions||10,this.value=a.value}}(0,t.__decorate)([(0,n.BgY)(),(0,t.__metadata)("design:type",Number)],d.prototype,"maxOptions",void 0),(0,t.__decorate)([(0,n.BgY)(),(0,t.__metadata)("design:type",String)],d.prototype,"type",void 0)},37548:(R,c,e)=>{"use strict";e.d(c,{n:()=>i,o:()=>d});var t=e(70655),n=e(19672),o=e(19260);const i="ONEBOX";class d extends o.u{constructor(a,p){super(a,p),this.type=i,this.autoComplete=n.dd1,this.minChars=a.minChars||3}}(0,t.__decorate)([(0,n.BgY)(),(0,t.__metadata)("design:type",Number)],d.prototype,"minChars",void 0),(0,t.__decorate)([(0,n.BgY)(),(0,t.__metadata)("design:type",String)],d.prototype,"type",void 0)},1365:(R,c,e)=>{"use strict";e.d(c,{E:()=>r});var t=e(70655),n=e(19672),o=e(19260),i=e(24702),d=e(78103);class r extends o.u{constructor(p,h){super(p,h),this.type=d.Q,this.submissionId=p.submissionId,this.formConfiguration=p.formConfiguration,this.mandatoryField=p.mandatoryField,this.relationFields=p.relationFields,this.scopeUUID=p.scopeUUID,this.submissionScope=p.submissionScope,this.value=p.value||[]}isEmpty(){const p=this.getGroupValue();return 1===p.length&&(0,i.Ft)(p[0][this.mandatoryField])}getGroupValue(){if((0,i.xb)(this.value)){const p=Object.create({});return p[this.mandatoryField]=null,this.relationFields.forEach(h=>{p[h]=null}),[p]}return this.value}}(0,t.__decorate)([(0,n.BgY)(),(0,t.__metadata)("design:type",String)],r.prototype,"submissionId",void 0),(0,t.__decorate)([(0,n.BgY)(),(0,t.__metadata)("design:type",Array)],r.prototype,"formConfiguration",void 0),(0,t.__decorate)([(0,n.BgY)(),(0,t.__metadata)("design:type",String)],r.prototype,"mandatoryField",void 0),(0,t.__decorate)([(0,n.BgY)(),(0,t.__metadata)("design:type",Array)],r.prototype,"relationFields",void 0),(0,t.__decorate)([(0,n.BgY)(),(0,t.__metadata)("design:type",String)],r.prototype,"scopeUUID",void 0),(0,t.__decorate)([(0,n.BgY)(),(0,t.__metadata)("design:type",String)],r.prototype,"submissionScope",void 0),(0,t.__decorate)([(0,n.BgY)(),(0,t.__metadata)("design:type",String)],r.prototype,"type",void 0)},28571:(R,c,e)=>{"use strict";e.d(c,{c:()=>d,v:()=>i});var t=e(70655),n=e(19672),o=e(19260);const i="SCROLLABLE_DROPDOWN";class d extends o.u{constructor(a,p){super(a,p),this.type=i,this.autoComplete=n.dd1,this.vocabularyOptions=a.vocabularyOptions,this.maxOptions=a.maxOptions||10,this.displayKey=a.displayKey||"dis
1play",this.formatFunction=a.formatFunction,this.findAllFactory=a.findAllFactory||(()=>null)}}(0,t.__decorate)([(0,n.BgY)(),(0,t.__metadata)("design:type",Number)],d.prototype,"maxOptions",void 0),(0,t.__decorate)([(0,n.BgY)(),(0,t.__metadata)("design:type",String)],d.prototype,"type",void 0),(0,t.__decorate)([(0,n.BgY)(),(0,t.__metadata)("design:type",String)],d.prototype,"displayKey",void 0)},81907:(R,c,e)=>{"use strict";e.d(c,{D:()=>i,M:()=>d});var t=e(70655),n=e(19672),o=e(19260);const i="TAG";class d extends o.u{constructor(a,p){super(a,p),this.type=i,this.autoComplete=n.dd1,this.minChars=a.minChars||3,this.value=a.value||[]}}(0,t.__decorate)([(0,n.BgY)(),(0,t.__metadata)("design:type",Number)],d.prototype,"minChars",void 0),(0,t.__decorate)([(0,n.BgY)(),(0,t.__metadata)("design:type",String)],d.prototype,"type",void 0)},61353:(R,c,e)=>{"use strict";e.d(c,{Cg:()=>d,Ju:()=>n,Yj:()=>i});var t=e(79472);const n={SET_NAME_VARIANT:(0,t.d)("dspace/name-variant/SET_NAME_VARIANT"),REMOVE_NAME_VARIANT:(0,t.d)("dspace/name-variant/REMOVE_NAME_VARIANT")};class o{constructor(a,p){this.payload={listID:a,itemID:p}}}class i extends o{constructor(a,p,h){super(a,p),this.type=n.SET_NAME_VARIANT,this.payload.nameVariant=h}}class d extends o{constructor(a,p){super(a,p),this.type=n.REMOVE_NAME_VARIANT}}},35355:(R,c,e)=>{"use strict";e.d(c,{J9:()=>r,Jg:()=>o,_k:()=>i,g:()=>n});var t=e(79472);const n={ADD_RELATIONSHIP:(0,t.d)("dspace/relationship/ADD_RELATIONSHIP"),REMOVE_RELATIONSHIP:(0,t.d)("dspace/relationship/REMOVE_RELATIONSHIP"),UPDATE_NAME_VARIANT:(0,t.d)("dspace/relationship/UPDATE_NAME_VARIANT"),UPDATE_RELATIONSHIP:(0,t.d)("dspace/relationship/UPDATE_RELATIONSHIP")};class o{constructor(p,h,m,_,v){this.type=n.ADD_RELATIONSHIP,this.payload={item1:p,item2:h,relationshipType:m,submissionId:_,nameVariant:v}}}class i{constructor(p,h,m,_,v){this.type=n.UPDATE_NAME_VARIANT,this.payload={item1:p,item2:h,relationshipType:m,submissionId:_,nameVariant:v}}}class r{constructor(p,h,m,_){this.type=n.REMOVE_RELATIONSHIP,this.payload={item1:p,item2:h,relationshipType:m,submissionId:_}}}},33036:(R,c,e)=>{"use strict";e.d(c,{c:()=>Xt});var t=e(19672),n=e(25940),o=e.n(n),i=e(30248),d=e.n(i),r=e(25468),a=e.n(r),p=e(24702),h=e(81907),m=(()=>{return(st=m||(m={})).WorkspaceItem="SUBMISSION",st.WorkflowItem="WORKFLOW",m;var st})(),_=e(94650),v=e(51541),E=e.n(v);class O extends t.S_O{constructor(){super(...arguments),this.isRowGroup=!0}}var b=e(70655),M=e(35167),P=e(29923),D=e(34780);class l{}(0,b.__decorate)([P.autoserialize,(0,b.__metadata)("design:type",String)],l.prototype,"hints",void 0),(0,b.__decorate)([P.autoserialize,(0,b.__metadata)("design:type",String)],l.prototype,"label",void 0),(0,b.__decorate)([P.autoserialize,(0,b.__metadata)("design:type",Array)],l.prototype,"languageCodes",void 0),(0,b.__decorate)([P.autoserialize,(0,b.__metadata)("design:type",String)],l.prototype,"mandatoryMessage",void 0),(0,b.__decorate)([P.autoserialize,(0,b.__metadata)("design:type",String)],l.prototype,"mandatory",void 0),(0,b.__decorate)([P.autoserialize,(0,b.__metadata)("design:type",Boolean)],l.prototype,"repeatable",void 0),(0,b.__decorate)([P.autoserialize,(0,b.__metadata)("design:type",Object)],l.prototype,"input",void 0),(0,b.__decorate)([P.autoserialize,(0,b.__metadata)("design:type",Array)],l.prototype,"selectableMetadata",void 0),(0,b.__decorate)([P.autoserialize,(0,b.__metadata)("design:type",D.u)],l.prototype,"selectableRelationship",void 0),(0,b.__decorate)([P.autoserialize,(0,b.__metadata)("design:type",Array)],l.prototype,"rows",void 0),(0,b.__decorate)([P.autoserialize,(0,b.__metadata)("design:type",String)],l.prototype,"scope",void 0),(0,b.__decorate)([P.autoserialize,(0,b.__metadata)("design:type",String)],l.prototype,"style",void 0),(0,b.__decorate)([P.autoserialize,(0,b.__metadata)("design:type",Array)],l.prototype,"typeBind",void 0),(0,b.__decorate)([P.autoserialize,(0,b.__metadata)("design:type",Object)],l.prototype,"value",void 0),(0,b.__decorate)([P.autoserialize,(0,b.__metadata)("design:type",Object)],l.prototype,"visibility",void 0);var C=e(7973),I=e(18980);function g(st,xe,Le,qe){(0,p.Ft)(st.layout)?(st.layout={},st.layout[xe]={},st.layout[xe][Le]=qe):(0,p.o8)(st.layout[xe])?(st.layout[xe]={},st.layout[xe][Le]=qe):st.layout[xe][Le]=(0,p.o8)(st.layout[xe][Le])?qe:st.layout[xe][Le].concat(` ${qe}`)}var B=e(84476),L=(()=>{return(st=L||(L={})).Date="date",st.Dropdown="dropdown",st.RelationGroup="group",st.List="list",st.Lookup="lookup",st.LookupName="lookup-name",st.LookupRelation="lookup-relation",st.Onebox="onebox",st.Name="name",st.Series="series",st.Tag="tag",st.Textarea="textarea",L;var st})(),V=e(63162),Y=e(91511),X=e(89383);const te=new _.InjectionToken("submissionId"),K=new _.InjectionToken("configData"),ee=new _.InjectionToken("initFormValues"),ae=new _.InjectionToken("parserOptions"),Q=new RegExp("(\\/?)(.+)\\1([gimsuy]*)","i");let j=class{constructor(xe,Le,qe,at,Jt){this.submissionId=xe,this.configData=Le,this.initFormValues=qe,this.parserOptions=at,this.translate=Jt}
1parse(){if((this.getInitValueCount()>1&&!this.configData.repeatable||this.configData.repeatable)&&this.configData.input.type!==L.List&&this.configData.input.type!==L.Tag){let qe,xe=0,Le=0;Array.isArray(this.configData.selectableMetadata)&&1===this.configData.selectableMetadata.length&&(qe=this.configData.selectableMetadata[0].metadata);let at=!0;this.configData.input.type===L.Onebox&&this.configData?.selectableMetadata?.length>1&&(at=!1);const Jt={id:E()()+"_array",label:this.configData.label,initialCount:this.getInitArrayIndex(),notRepeatable:!this.configData.repeatable,relationshipConfig:this.configData.selectableRelationship,required:JSON.parse(this.configData.mandatory),submissionId:this.submissionId,metadataKey:qe,metadataFields:this.getAllFieldIds(),hasSelectableMetadata:(0,p.UE)(this.configData.selectableMetadata),isDraggable:at,typeBindRelations:(0,p.UE)(this.configData.typeBind)?this.getTypeBindRelations(this.configData.typeBind,this.parserOptions.typeField):null,groupFactory:()=>{let rn;if(0===xe)rn=this.modelFactory(),xe++;else{const Wt=this.getInitValueCount(xe-1);let qt=null;Wt>0&&(qt=this.getInitFieldValue(xe-1,Le++),Le===Wt&&(Le=0,xe++)),rn=this.modelFactory(qt,!1)}return g(rn,"element","host","col"),(rn.hasLanguages||(0,p.UE)(rn.relationship))&&g(rn,"grid","control","col"),[rn]}};return new I.v(Jt,{grid:{group:"form-row"}})}{const xe=this.modelFactory(this.getInitFieldValue());return xe.submissionId=this.submissionId,(xe.hasLanguages||(0,p.UE)(xe.relationship))&&g(xe,"grid","control","col"),xe}}setVocabularyOptions(xe){(0,p.UE)(this.configData.selectableMetadata)&&(0,p.UE)(this.configData.selectableMetadata[0].controlledVocabulary)&&(xe.vocabularyOptions=new B.f(this.configData.selectableMetadata[0].controlledVocabulary,this.configData.selectableMetadata[0].closed))}setValues(xe,Le,qe=!1,at){if((0,p.UE)(Le)){if(at)return xe.value=this.getInitGroupValues(),void(Array.isArray(xe.value)&&xe.value.length>0&&xe.value[0].language&&(xe.language=xe.value[0].language));(0,V.UV)(Le)?xe.value=Le:"object"==typeof Le?(xe.metadataValue=Le,xe.language=Le.language,xe.place=Le.place,xe.value=qe?Le:Le.value):qe?xe.value=new C.u(Le):"string"==typeof Le&&(xe.value=Le)}return xe}getInitValueCount(xe=0,Le){const qe=Le||this.getAllFieldIds();if((0,p.UE)(this.initFormValues)&&(0,p.K0)(qe)&&1===qe.length&&this.initFormValues.hasOwnProperty(qe[0]))return this.initFormValues[qe[0]].length;if((0,p.UE)(this.initFormValues)&&(0,p.K0)(qe)&&qe.length>1){const at=[];return qe.forEach(Jt=>{this.initFormValues.hasOwnProperty(Jt)&&at.push(this.initFormValues[Jt].length)}),at[xe]}return 0}getInitGroupValues(){const xe=this.getAllFieldIds();if((0,p.UE)(this.initFormValues)&&(0,p.K0)(xe)&&1===xe.length&&this.initFormValues.hasOwnProperty(xe[0]))return this.initFormValues[xe[0]]}getInitFieldValues(xe){if((0,p.UE)(this.initFormValues)&&(0,p.K0)(xe)&&this.initFormValues.hasOwnProperty(xe))return this.initFormValues[xe]}getInitFieldValue(xe=0,Le=0,qe){const at=qe||this.getAllFieldIds();if((0,p.UE)(this.initFormValues)&&(0,p.K0)(at)&&1===at.length&&this.initFormValues.hasOwnProperty(at[xe])&&this.initFormValues[at[xe]].length>Le)return this.initFormValues[at[xe]][Le];if((0,p.UE)(this.initFormValues)&&(0,p.K0)(at)&&at.length>1){const Jt=[];return at.forEach($t=>{if(this.initFormValues.hasOwnProperty($t)){const rn=Object.assign(new C.u,this.initFormValues[$t][Le]);rn.metadata=$t,Jt.push(rn)}}),Jt[xe]}return null}getInitArrayIndex(){const xe=this.getAllFieldIds();if((0,p.UE)(this.initFormValues)&&(0,p.K0)(xe)&&1===xe.length&&this.initFormValues.hasOwnProperty(xe))return this.initFormValues[xe].length;if((0,p.UE)(this.initFormValues)&&(0,p.K0)(xe)&&xe.length>1){let Le=0;return xe.forEach(qe=>{this.initFormValues.hasOwnProperty(qe)&&(Le+=this.initFormValues[qe].length)}),0===Le?1:Le}return 1}getFieldId(){const xe=this.getAllFieldIds();return(0,p.K0)(xe)?xe[0]:null}getAllFieldIds(){if(Array.isArray(this.configData.selectableMetadata)){if
1(1===this.configData.selectableMetadata.length)return[this.configData.selectableMetadata[0].metadata];{const xe=[];return this.configData.selectableMetadata.forEach(Le=>xe.push(Le.metadata)),xe}}return["relation."+this.configData.selectableRelationship.relationshipType]}initModel(xe,Le=!0,qe=!1,at=!0,Jt=!0){const $t=Object.create(null);return this.fieldId=xe||this.getFieldId(),$t.name=this.fieldId,$t.id=this.fieldId.replace(/\./g,"_"),$t.readOnly=this.parserOptions.readOnly||this.isFieldReadOnly(this.configData.visibility,this.configData.scope,this.parserOptions.submissionScope),$t.disabled=$t.readOnly,(0,p.Uh)(this.configData.selectableRelationship)&&($t.relationship=Object.assign(new D.u,this.configData.selectableRelationship)),$t.repeatable=this.configData.repeatable,$t.metadataFields=this.getAllFieldIds()||[],$t.hasSelectableMetadata=(0,p.UE)(this.configData.selectableMetadata),$t.submissionId=this.submissionId,this.setLabel($t,Le),Jt&&($t.hint=this.configData.hints||" "),$t.placeholder=this.configData.label,this.configData.mandatory&&at&&this.markAsRequired($t),this.hasRegex()&&this.addPatternValidator($t),this.configData.languageCodes&&this.configData.languageCodes.length>0&&($t.languageCodes=this.configData.languageCodes),(0,p.UE)(this.configData.typeBind)&&($t.typeBindRelations=this.getTypeBindRelations(this.configData.typeBind,this.parserOptions.typeField)),$t}isFieldReadOnly(xe,Le,qe){return(0,p.UE)(qe)&&(0,p.UE)(Le)&&(0,p.UE)(xe)&&(qe===Y.S.WorkspaceItem&&xe.main===M.x.READONLY||xe.other===M.x.READONLY&&qe===Y.S.WorkflowItem)}getTypeBindRelations(xe,Le){const qe=[];return xe.forEach(at=>{qe.push({id:Le,value:at})}),[{match:t._Vz,operator:t.F8e,when:qe}]}hasRegex(){return(0,p.Uh)(this.configData.input.regex)}addPatternValidator(xe){const Le=this.configData.input.regex.match(Q);let qe;qe=null!=Le&&Le.length>3?new RegExp(Le[2],Le[3]):new RegExp(this.configData.input.regex);const at="error.validation.pattern",Jt=`${at}.${xe.id}`,$t=this.translate.instant(Jt)!==Jt;xe.validators=Object.assign({},xe.validators,{pattern:qe}),xe.errorMessages=Object.assign({},xe.errorMessages,{pattern:$t?Jt:at})}markAsRequired(xe){xe.required=!0,xe.validators=Object.assign({},xe.validators,{required:null}),xe.errorMessages=Object.assign({},xe.errorMessages,{required:this.configData.mandatoryMessage})}setLabel(xe,Le=!0,qe=!1){Le&&(xe.label=qe?" ":this.configData.label)}setOptions(xe){(0,p.pT)(this.configData.selectableMetadata)&&this.configData.selectableMetadata.length>1&&(xe.options=[],this.configData.selectableMetadata.forEach((Le,qe)=>{0===qe&&(xe.value=Le.metadata),xe.options.push({label:Le.label,value:Le.metadata})}))}};j=(0,b.__decorate)([(0,b.__param)(0,(0,_.Inject)(te)),(0,b.__param)(1,(0,_.Inject)(K)),(0,b.__param)(2,(0,_.Inject)(ee)),(0,b.__param)(3,(0,_.Inject)(ae)),(0,b.__metadata)("design:paramtypes",[String,l,Object,Object,X.sK])],j);var k=e(96807),G=e(74043);class ie extends j{modelFactory(xe,Le){let qe=!1;const at=this.initModel(null,!1,!0);if(at.legend=this.configData.label,at.disabled=at.readOnly,at.toggleIcon="fas fa-calendar",this.setValues(at,xe),(0,p.UE)(at.value)){const $t=at.value.toString();if($t.length>=4){const rn=$t.split(G.t);if(rn.length<4)for(let Wt=0;Wt<rn.length;Wt++)rn[Wt].length!==(0===Wt?4:2)&&(qe=!0)}}const Jt=new k.R(at);return Jt.malformedDate=qe,Jt}}var ne=e(28571);let q=class extends j{constructor(xe,Le,qe,at,Jt){super(xe,Le,qe,at,Jt)}modelFactory(xe,Le){const qe=this.initModel(null,Le);let at;if((0,p.UE)(this.configData.selectableMetadata[0].controlledVocabulary))return this.setVocabularyOptions(qe),(0,p.UE)(xe)&&(qe.value=xe),at={element:{control:"col"},grid:{host:"col"}},new ne.c(qe,at);throw Error("Controlled Vocabulary name is not available. Please check the form configuration file.")}};q=(0,b.__decorate)([(0,b.__param)(0,(0,_.Inject)(te)),(0,b.__param)(1,(0,_.Inject)(K)),(0,b.__param)(2,(0,_.Inject)(ee)),(0,b.__param)(3,(0,_.Inject)(ae)),(0,b.__metadata)("design:paramtypes",[String,l,Object,Object,X.sK])],q);var oe=e(1365),ce=e(78103);class ye extends j{modelFactory(xe,Le){const qe=this.initModel(null,Le);
1if(qe.submissionId=this.submissionId,qe.scopeUUID=this.parserOptions.collectionUUID,qe.submissionScope=this.parserOptions.submissionScope,!(this.configData&&this.configData.rows&&this.configData.rows.length>0))throw new Error(`Configuration not valid: ${qe.name}`);qe.formConfiguration=this.configData.rows,qe.relationFields=[],this.configData.rows.forEach($t=>{$t.fields.forEach(rn=>{rn.selectableMetadata[0].metadata===this.configData.selectableMetadata[0].metadata?qe.mandatoryField=this.configData.selectableMetadata[0].metadata:qe.relationFields.push(rn.selectableMetadata[0].metadata)})}),(0,p.UE)(this.getInitGroupValues())&&(qe.value=[],this.getInitFieldValues(qe.mandatoryField).forEach((rn,Wt)=>{const qt=Object.create(null);[qe.mandatoryField].concat(qe.relationFields).forEach(dt=>{const ht=this.getInitFieldValue(0,Wt,[dt]);qt[dt]=(0,p.UE)(ht)?ht:ce.n}),qe.value.push(qt)}));const Jt=new oe.E(qe,{element:{container:"mb-3"}});return Jt.name=this.getFieldId(),Jt}}var Me=e(11656),Ee=e(49210);class Ae extends j{modelFactory(xe,Le){const qe=this.initModel(null,Le);let at;return qe.repeatable=this.configData.repeatable,this.configData.selectableMetadata[0].controlledVocabulary&&this.configData.selectableMetadata[0].controlledVocabulary.length>0&&((0,p.UE)(this.getInitGroupValues())&&(qe.value=[],this.getInitGroupValues().forEac
1h(Jt=>{if(Jt instanceof C.u)qe.value.push(Jt);else{const $t=new C.u(Jt);qe.value.push($t)}})),this.setVocabularyOptions(qe)),qe.repeatable?(qe.group=[],at=new Me.R(qe)):(qe.options=[],at=new Ee.s(qe)),at}}var Je=e(41850);class _t extends j{modelFactory(xe,Le){if(this.configData.selectableMetadata[0].controlledVocabulary){const qe=this.initModel(null,Le);return this.setVocabularyOptions(qe),this.setValues(qe,xe,!0),new Je.Z(qe)}}}var It=e(16125);class it extends j{modelFactory(xe,Le){if(this.configData.selectableMetadata[0].controlledVocabulary){const qe=this.initModel(null,Le);return this.setVocabularyOptions(qe),this.setValues(qe,xe,!0),new It.z(qe)}}}var Be=e(77579);class Yt extends t.S_O{constructor(xe,Le){super(xe,Le),this.hasLanguages=!1,this.isCustomGroup=!0,this.readOnly=xe.readOnly,this.required=xe.required,this.language=xe.language,this.languageCodes=xe.languageCodes,this.languageUpdates=new Be.x,this.languageUpdates.subscribe(qe=>{this.language=qe}),this.hint=xe.hint}get value(){return this.get(1).value}get qualdropId(){return this.get(0).value.toString()}get language(){return this._language}set language(xe){this._language=xe}get languageCodes(){return this._languageCodes}set languageCodes(xe){this._languageCodes=xe,(!this.language||null===this.language||""===this.language)&&(this.language=this.languageCodes?this.languageCodes[0].code:null)}}(0,b.__decorate)([(0,t.BgY)(),(0,b.__metadata)("design:type",String)],Yt.prototype,"_language",void 0),(0,b.__decorate)([(0,t.BgY)(),(0,b.__metadata)("design:type",Array)],Yt.prototype,"_languageCodes",void 0),(0,b.__decorate)([(0,t.BgY)(),(0,b.__metadata)("design:type",Be.x)],Yt.prototype,"languageUpdates",void 0),(0,b.__decorate)([(0,t.BgY)(),(0,b.__metadata)("design:type",Object)],Yt.prototype,"hasLanguages",void 0),(0,b.__decorate)([(0,t.BgY)(),(0,b.__metadata)("design:type",Boolean)],Yt.prototype,"readOnly",void 0),(0,b.__decorate)([(0,t.BgY)(),(0,b.__metadata)("design:type",String)],Yt.prototype,"hint",void 0),(0,b.__decorate)([(0,t.BgY)(),(0,b.__metadata)("design:type",Boolean)],Yt.prototype,"required",void 0);var nt=e(19260),mt=e(37548);class en extends j{modelFactory(xe,Le){if(this.configData.selectableMetadata.length>1){const qe={element:{control:"form-row",hint:"ds-form-qualdrop-hint"}},at={element:{control:"ds-form-input-addon custom-select"},grid:{host:"col-sm-4 pr-0"}},Jt={element:{control:"ds-form-input-value"},grid:{host:"col-sm-8 pl-0"}},$t=this.configData.selectableMetadata[0].metadata.split(".").slice(0,this.configData.selectableMetadata[0].metadata.split(".").length-1).join("."),rn=Object.create(null);rn.id=$t.replace(/\./g,"_")+"_QUALDROP_GROUP",rn.group=[],rn.legend=this.configData.label,rn.hint=this.configData.hints,this.setLabel(rn,Le),rn.required=(0,p.UE)(this.configData.mandatory);const Wt=this.initModel($t+"_QUALDROP_VALUE",Le,!1,!1);Wt.hint=null,this.setValues(Wt,xe);const qt=this.initModel($t+"_QUALDROP_METADATA",Le,!1,!1);return qt.hint=null,this.setOptions(qt),(0,p.UE)(xe)&&(qt.value=xe.metadata),qt.disabled=Wt.readOnly,rn.readOnly=qt.disabled&&Wt.readOnly,rn.group.push(new t.nMt(qt,at)),rn.group.push(new nt.u(Wt,Jt)),new Yt(rn,qe)}if(this.configData.selectableMetadata[0].controlledVocabulary){const qe=this.initModel(null,Le);return this.setVocabularyOptions(qe),this.setValues(qe,xe,!0),new mt.o(qe)}{const qe=this.initModel(null,Le);return this.setValues(qe,xe),new nt.u(qe)}}}var pn=e(79300);const tt="_CONCAT_GROUP";class Rt extends t.S_O{constructor(xe,Le){super(xe,Le),this.hasLanguages=!1,this.typeBindHidden=!1,this.isCustomGroup=!0,this.separator=xe.separator+" ",this.relationship=xe.relationship,this.repeatable=xe.repeatable,this.required=xe.required,this.hint=xe.hint,this.metadataFields=xe.metadataFields,this.submissionId=xe.submissionId,this.hasSelectableMetadata=xe.hasSelectableMetadata,this.metadataValue=xe.metadataValue,this.valueUpdates=new Be.x,this.valueUpdates.subscribe(qe=>this.value=qe),this.typeBindRelations=xe.typeBindRelations?xe.typeBindRelations:[],this.readOnly=xe.disabled}get value(){const[xe,Le]=this.group.map(qe=>"string"==typeof qe.value?Object.assign(new C.u,{value:qe.value,display:qe.value}):qe.value);return(0,p.UE)(xe)&&(0,p.UE)(xe.value)&&(0,p.UE)(Le)&&(0,p.UE)(Le.value)?Object.assign(new C.u,xe,{value:xe.value+this.separator+Le.value}):(0,p.UE)(xe)&&(0,p.UE)(xe.value)?Object.assign(new C.u,xe):(0,p.UE)(Le)&&(0,p.UE)(Le.value)?Object.assign(new C.u,Le):null}set value(xe){let Le,qe;qe="string"==typeof xe?xe:xe.value,(0,p.xI)(qe)&&(qe=""),Le=[...qe.split(this.separator),null].map(at=>Object.assign(new C.u,xe,{display:at,value:at})),this.get(0).value=Le[0].value?Le[0]:void 0,this.get(1).value=Le[1].value?Le[1]:void 0}}(0,b.__decorate)([(0,t.BgY)(),(0,b.__metadata)("design:type",String)],Rt.prototype,"separator",void 0),(0,b.__decorate)([(0,t.BgY)(),(0,b.__metadata)("design:type",Object)],Rt.prototype,"hasLanguages",void 0),(0,b.__decorate)([(0,t.BgY)(),(0,b.__metadata)("design:type",Array)],Rt.prototype,"typeBindRelations",void 0),(0,b.__decorate)([(0,t.BgY)(),(0,b.__metadata)("design:type",Object)],Rt.prototype,"typeBindHidden",void 0),(0,b.__decorate)([(0,t.BgY)(),(0,b.__metadata)("design:type",D.u)],Rt.prototype,"relationship",void 0),(0,b.__decorate)([(0,t.BgY)(),(0,b.__metadata)("design:type",Boolean)],Rt.prototype,"repeatable",void 0),(0,b.__decorate)([(0,t.BgY)(),(0,b.__metadata)("design:type",Boolean)],Rt.prototype,"required",void 0),(0,b.__decorate)([(0,t.BgY)(),(0,b.__metadata)("design:type",String)],Rt.prototype,"hint",void 0),(0,b.__decorate)([(0,t.BgY)(),(0,b.__metadata)("design:type",Array)],Rt.prototype,"metadataFields",void 0),(0,b.__decorate)([(0,t.BgY)(),(0,b.__metadata)("design:type",String)],Rt.prototype,"submissionId",void 0),(0,b.__decorate)([(0,t.BgY)(),(0,b.__metadata)("design:type",Boolean)],Rt.prototype,"hasSelectableMetadata",void 0),(0,b.__decorate)([(0,t.BgY)(),(0,b.__metadata)("design:type",pn.DA)],Rt.prototype,"metadataValue",void 0),(0,b.__decorate)([(0,t.BgY)(),(0,b.__metadata)("design:type",Boolean)],Rt.prototype,"readOnly",void 0);let Pt=class extends j{constructor(xe,Le,qe,at,Jt,$t,rn=null,Wt=null){super(xe,Le,qe,at,Jt),this.separator=$t,this.firstPlaceholder=rn,this.secondPlaceholder=Wt,this.separator=$t,this.firstPlaceholder=rn,this.secondPlaceholder=Wt}modelFactory(xe,Le){let qe,at;const Jt=this.configData.selectableMetadata[0].metadata;at={grid:{host:"col-sm-6"}};const $t=Jt.replace(/\./g,"_")+tt,rn=this.initModel($t,Le,!1,!0);rn.group=[],rn.separator=this.separator;const Wt=this.initModel(Jt+"_CONCAT_FIRST_INPUT",!1,!0,!0,!1),qt=this.initModel(Jt+"_CONCAT_SECOND_INPUT",!1,!0,!0,!1);Wt.hideErrorMessages=!0,qt.hideErrorMessages=!0,(0,p.xI)(rn.hint)&&(0,p.Uh)(Wt.hint)&&(0,p.xI)(qt.hint)&&(rn.hint=Wt.hint,Wt.hint=void 0),this.configData.mandatory&&(rn.required=!0,Wt.required=!0),rn.disabled=Wt.readOnly,(0,p.UE)(this.firstPlaceholder)&&(Wt.placeholder=this.firstPlaceholder),(0,p.UE)(this.secondPlaceholder)&&(qt.placeholder=this.secondPlaceholder);const un=this.configData.label.split("/");2===un.length&&(Wt.placeholder=un[0],qt.placeholder=un[1]);const dt=new nt.u(Wt,at),ht=new nt.u(qt,at);rn.group.push(dt),rn.group.push(ht),qe={element:{control:"form-row"}};const je=new Rt(rn,qe);return je.name=this.getFieldId(),(0,p.UE)(xe)&&(je.value=xe),je}};Pt=(0,b.__decorate)([(0,b.__param)(0,(0,_.Inject)(te)),(0,b.__param)(1,(0,_.Inject)(K)),(0,b.__param)(2,(0,_.Inject)(ee)),(0,b.__param)(3,(0,_.Inject)(ae)),(0,b.__metadata)("design:paramtypes",[String,l,Object,Object,X.sK,String,String,String])],Pt);let xt=class extends Pt{constructor(xe,Le,qe,at,Jt){super(xe,Le,qe,at,Jt,",","form.last-name","form.first-name")}};xt=(0,b.__decorate)([(0,b.__param)(0,(0,_.Inject)(te)),(0,b.__param)(1,(0,_.Inject)(K)),(0,b.__param)(2,(0,_.Inject)(ee)),(0,b.__param)(3,(0,_.Inject)(ae)),(0,b.__metadata)("design:paramtypes",[String,l,Object,Object,X.sK])],xt);let lt=class extends Pt{constructor(xe,Le,qe,at,Jt){super(xe,Le,qe,at,Jt,";")}};lt=(0,b.__decorate)([(0,b.__param)(0,(0,_.Inject)(te)),(0,b.__param)(1,(0,_.Inject)(K)),(0,b.__param)(2,(0,_.Inject)(ee)),(0,b.__param)(3,(0,_.Inject)(ae)),(0,b.__metadata)("design:paramtypes",[String,l,Object,Object,X.sK])],lt);class Ut extends j{modelFactory(xe,Le){const qe=this.initModel(null,Le);return this.configData.selectableMetadata[0].controlledVocabulary&&this.configData.selectableMetadata[0].controlledVocabulary.length>0&&this.setVocabularyOptions(qe),this.setValues(qe,xe,null,!0),new h.M(qe)}}var ke=e(67779),ot=e(21540);class gt extends j{modelFactory(xe,Le){const qe=this.initModel(null,Le);let at;return at={element:{label:"col-form-label"}}
1,qe.rows=10,qe.spellCheck=ot.N.form.spellCheck,this.setValues(qe,xe),new ke.D(qe,at)}}var zt=e(53905);class hn extends j{modelFactory(xe,Le){const qe=this.initModel(null,Le);return this.setValues(qe,xe,!0),new zt.O(qe)}}const Vt=[te,K,ee,ae,X.sK];class $n{static getProvider(xe){switch(xe){case L.Date:return{provide:j,useClass:ie,deps:[...Vt]};case L.Dropdown:return{provide:j,useClass:q,deps:[...Vt]};case L.RelationGroup:return{provide:j,useClass:ye,deps:[...Vt]};case L.List:return{provide:j,useClass:Ae,deps:[...Vt]};case L.Lookup:return{provide:j,useClass:_t,deps:[...Vt]};case L.LookupName:return{provide:j,useClass:it,deps:[...Vt]};case L.Onebox:return{provide:j,useClass:en,deps:[...Vt]};case L.Name:return{provide:j,useClass:xt,deps:[...Vt]};case L.Series:return{provide:j,useClass:lt,deps:[...Vt]};case L.Tag:return{provide:j,useClass:Ut,deps:[...Vt]};case L.Textarea:return{provide:j,useClass:gt,deps:[...Vt]};case void 0:return{provide:j,useClass:hn,deps:[...Vt]};default:return}}}let Ft=(()=>{class st{constructor(Le){this.parentInjector=Le}parse(Le,qe,at,Jt,$t,rn,Wt){let qt=null,un=null;const dt={id:E()("df-row-group-config-"),group:[]},ht=this.filterScopedFields(qe.fields,$t),je=" col-sm-"+Math.trunc(12/ht.length),Zt={readOnly:rn,submissionScope:$t,collectionUUID:at,typeField:Wt};if(ht.forEach(We=>{const Ne=(We.style||je)+" d-flex flex-column justify-content-start",ze=$n.getProvider(We.input.type);if(!ze)throw new Error(`unknown form control model type "${We.input.type}" defined for Input field with label "${We.label}".`);if(qt=_.Injector.create({providers:[ze,{provide:te,useValue:Le},{provide:K,useValue:We},{provide:ee,useValue:Jt},{provide:ae,useValue:Zt}],parent:this.parentInjector}).get(j).parse(),qt){if(qt.type===t.i9b||qt.type===ce.Q)return void(qe.fields.length>1?(g(qt,"grid","host",Ne),dt.group.push(qt)):un=qt);Array.isArray(qt)?qt.forEach(bt=>{un=bt}):(g(qt,"grid","host",Ne),dt.group.push(qt)),qt=null}}),dt&&!(0,p.xb)(dt.group)){const Ne=new O(dt,{element:{control:"form-row"}});Array.isArray(un)?un.push(Ne):un=Ne}return un}checksFieldScope(Le,qe,at){return(0,p.xb)(Le)||!this.isHidden(at,Le,qe)}isHidden(Le,qe,at){return(0,p.UE)(qe)&&(0,p.xb)(Le)&&(at===Y.S.WorkspaceItem&&qe!==m.WorkspaceItem||at===Y.S.WorkflowItem&&qe!==m.WorkflowItem)}filterScopedFields(Le,qe){const at=[];return Le.forEach(Jt=>{this.checksFieldScope(Jt.scope,qe,Jt.visibility)&&at.push(Jt)}),at}}return st.\u0275fac=function(Le){return new(Le||st)(_.\u0275\u0275inject(_.Injector))},st.\u0275prov=_.\u0275\u0275defineInjectable({token:st,factory:st.\u0275fac,providedIn:"root"}),st})();var St=e(59656),wt=e(68285);let Xt=(()=>{class st extends t.w1X{constructor(Le,qe,at,Jt){super(Le,qe),this.rowParser=at,this.configService=Jt,this.formModels=new Map,this.formGroups=new Map,(0,p.Uh)(this.configService)&&this.setTypeBindFieldFromConfig()}createDynamicFormControlEvent(Le,qe,at,Jt){return{$event:{value:at.value,autoSave:!1},context:at?.parent instanceof t.NJD?at?.parent:null,control:Le,group:qe,model:at,type:Jt}}getTypeBindModel(){return this.typeBindModel}setTypeBindModel(Le){this.typeBindModel=Le}findById(Le,qe,at=null){let Jt=null;const $t=(rn,Wt,qt)=>{for(const un of Wt){if(un.id===rn){Jt=this.isArrayGroup(un)&&(0,p.K0)(qt)?un.get(qt):un;break}if(this.isConcatGroup(un)&&un.id.match(new RegExp(rn+tt))){Jt=un;break}if(this.isGroup(un)&&$t(rn,un.group,qt),this.isArrayGroup(un)&&((0,p.Ft)(qt)||un.size>qt)){const dt=(0,p.Ft)(qt)?0:qt;$t(rn,un.get(dt).group,dt)}}};return $t(Le,qe,at),Jt}clearAllModelsValue(Le){const qe=at=>{for(const Jt of at)this.isGroup(Jt)?qe(Jt.group):this.isArrayGroup(Jt)?qe(Jt.groupFactory()):Jt.hasOwnProperty("valueChanges")&&(Jt.value=void 0)};qe(Le)}getValueFromModel(Le){let qe=Object.create({});const at=(rn,Wt)=>{if(Array.isArray(rn))return rn.concat(Wt)},Jt=(rn,Wt,qt)=>{const un=rn.hasLanguages?rn.language:null;if(rn?.metadataValue?.authority?.includes(pn.O_))return rn.metadataValue;if(d()(Wt))return new C.u(Wt,un,null,null,qt);if((0,V.UV)(Wt))return new C.u((0,V.UW)(Wt));if(o()(Wt)){const dt=Wt.authority||Wt.id||null,ht=qt||Wt.place;return(0,V.UV)(Wt)?new C.u(Wt,un,dt,Wt,ht):new C.u(Wt.value,un,dt,Wt.display,ht,Wt.confidence)}},$t=(rn,Wt=0)=>{let qt=Object.create({});
1for(const un of rn){if(this.isRowGroup(un)&&!this.isCustomOrListGroup(un)){qt=a()(qt,$t(un.group),at);continue}if(this.isGroup(un)&&!this.isCustomOrListGroup(un)){qt[un.name]=$t(un.group);continue}if(this.isRowArrayGroup(un)){for(const ht of un.groups)qt=a()(qt,$t(ht.group,ht.index),at);continue}if(this.isArrayGroup(un)){qt[un.name]=[];for(const ht of un.groups)qt[un.name].push($t(ht.group,ht.index));continue}let dt;if(dt=this.isQualdropGroup(un)?un.qualdropId:un.name,this.isRelationGroup(un))un.getGroupValue().forEach((je,vt)=>{Object.keys(je).forEach(We=>{const Ne=Jt(un,je[We],vt);(0,p.UE)(Ne)&&Ne.hasValue()&&(qt.hasOwnProperty(We)?qt[We].push(Ne):qt[We]=[Ne])})});else if((0,p.pT)(un.value)&&(0,p.UE)(un.value)){const ht=[];(Array.isArray(un.value)?un.value:[un.value]).forEach(vt=>{ht.push(Jt(un,vt,Wt))}),qt[dt]=dt&&qt.hasOwnProperty(dt)&&(0,p.K0)(qt[dt])?qt[dt].concat(ht):(0,p.UE)(ht)?ht:null}}return qt};return qe=$t(Le),qe}modelFromConfiguration(Le,qe,at,Jt={},$t,rn=!1,Wt=null,qt=!1){let un=[];const dt="string"==typeof qe?JSON.parse(qe,t.WMN):qe;return dt.rows&&!(0,p.xb)(dt.rows)&&dt.rows.forEach(ht=>{const je=this.rowParser.parse(Le,ht,at,Jt,$t,rn,this.getTypeField());(0,p.K0)(je)&&(Array.isArray(je)?un=un.concat(je):un.push(je))}),(0,p.xI)(Wt)&&(Wt=this.findById(this.typeField,un)),(0,p.Uh)(Wt)&&this.setTypeBindModel(Wt),un}isModelInCustomGroup(Le){return this.isCustomGroup(Le.parent)}hasArrayGroupValue(Le){return Le&&(this.isListGroup(Le)||Le.type===h.D)}hasMappedGroupValue(Le){return this.isQualdropGroup(Le.parent)||this.isRelationGroup(Le.parent)}isGroup(Le){return Le&&(Le.type===t.Qam||Le.type===t.aTt)}isQualdropGroup(Le){return Le&&Le.type===t.Qam&&(0,p.Uh)(Le.qualdropId)}isCustomGroup(Le){return Le&&Le.type===t.Qam&&!0===Le.isCustomGroup}isConcatGroup(Le){return this.isCustomGroup(Le)&&-1!==Le.id.indexOf(tt)}isRowGroup(Le){return Le&&Le.type===t.Qam&&!0===Le.isRowGroup}isCustomOrListGroup(Le){return Le&&(this.isCustomGroup(Le)||this.isListGroup(Le))}isListGroup(Le){return Le&&(Le.type===t.aTt&&!0===Le.isListGroup||Le.type===t.e6P&&!0===Le.isListGroup)}isRelationGroup(Le){return Le&&Le.type===ce.Q}isRowArrayGroup(Le){return Le.type===t.i9b&&!0===Le.isRowArray}isArrayGroup(Le){return Le.type===t.i9b}isInputModel(Le){return Le.type===t.X9S}getFormControlById(Le,qe,at,Jt=0){const $t=this.findById(Le,at,Jt);return(0,p.UE)($t)?qe.get(this.getPath($t)):null}getFormControlByModel(Le,qe){return(0,p.UE)(qe)?Le.get(this.getPath(qe)):null}getId(Le){let qe;return this.isArrayGroup(Le)?Le.index.toString():(qe=this.isModelInCustomGroup(Le)?Le.parent:Le,qe.id!==qe.name?qe.name:qe.id)}removeFormModel(Le){this.formModels.has(Le)&&this.formModels.delete(Le)}addFormGroups(Le,qe){this.formGroups.set(Le,qe)}removeFormGroup(Le){this.formGroups.has(Le)&&this.formGroups.delete(Le)}getMetadataIdsFromEvent(Le){let qe=Le.model;for(;qe.parent;)qe=qe.parent;const at=($t,rn=0)=>{let Wt=Object.create({});for(const qt of $t){if(this.isRowGroup(qt)&&!this.isCustomOrListGroup(qt)){Wt=a()(Wt,at(qt.group));continue}if(this.isGroup(qt)&&!this.isCustomOrListGroup(qt)){Wt[qt.name]=at(qt.group);continue}if(this.isRowArrayGroup(qt)){for(const dt of qt.groups)Wt=a()(Wt,at(dt.group,dt.index));continue}if(this.isArrayGroup(qt)){Wt[qt.name]=[];for(const dt of qt.groups)Wt[qt.name].push(at(dt.group,dt.index));continue}let un;un=this.isQualdropGroup(qt)?qt.qualdropId:qt.name,this.isRelationGroup(qt)?qt.getGroupValue().forEach((ht,je)=>{Object.keys(ht).forEach(vt=>{Wt[vt]=!0})}):Wt[un]=!0}return Wt},Jt=at([qe]);return Object.keys(Jt)}setTypeBindFieldFromConfig(){this.configService.findByPropertyName("submit.type-bind.field").pipe((0,wt.hC)()).subscribe(Le=>{if(!Le.hasSucceeded)return void(this.typeField="dc_type");const qe=Le.payload.values[0];this.typeField=(0,p.xb)(qe)?"dc_type":qe.replace(/\./g,"_")})}getTypeField(){return(0,p.Uh)(this.configService)&&(0,p.xI)(this.typeField)?this.setTypeBindFieldFromConfig():(0,p.xI)(this.typeField)&&(this.typeField="dc_type"),this.typeField}}return st.\u0275fac=function(Le){return new(Le||st)(_.\u0275\u0275inject(t.rJA),_.\u0275\u0275inject(t.fhz),_.\u0275\u0275inject(Ft),_.\u0275\u0275inject(St.i,8))},st.\u0275prov=_.\u0275\u0275defineInjectable({token:st,factory:st.\u0275fac}),st})()},86280:(R,c,e)=>{"use strict";e.d(c,{Z:()=>t});class t{constructor(o,i){this.value=o,this.language=i}}},7973:(R,c,e)=>{"use strict";e.d(c,{u:()=>d});var t=e(24702),n=e(15085),o=e(79300),i=e(78103);class d{constructor(a=null,p=null,h=null,m=null,_=0,v=null,E=null,O=null){this.value=(0,t.K0)(a)?"string"==typeof a?a.trim():a:null,this.language=p,this.authority=h,this.display=m||a,this.confidence=v,this.confidence=null==h||!(0,t.xb)(v)&&-1!==v?(0,t.UE)(v)?v:n.N.CF_UNSET:n.N.CF_ACCEPTED,this.place=_,(0,t.UE)(O)&&(this.metadata=O),this.otherInformation=E}hasAuthority(){return(0,t.UE)(this.authority)}hasAuthorityToGenerate(){return(0,t.UE)(this.authority)&&this.authority.startsWith(d.AUTHORITY_GENERATE)}hasValue(){return(0,t.UE)(this.value)}hasOtherInformation(){return(0,t.UE)(this.otherInformation)}hasPlaceholder(){return this.hasValue()&&this.value===i.n}get isVirtual(){return(0,t.Uh)(this.authority)&&this.authority.startsWith(o.O_)}get virtualValue(){if(this.isVirtual)return this.authority.substring(this.authority.indexOf(o.O_)+o.O_.length)}toString(){return this.display||this.value}}d.AUTHORITY_SPLIT="::",d.AUTHORITY_GENERATE="will be generated"+d.AUTHORITY_SPLIT},34780:(R,c,e)=>{"use strict";e.d(c,{u:()=>n});
1class n{get metadataField(){return"relation."+this.relationshipType}}},19522:(R,c,e)=>{"use strict";e.d(c,{A4:()=>p,Ag:()=>a,QQ:()=>d,S$:()=>h,Zn:()=>o,j4:()=>n,q0:()=>i,y5:()=>m,yf:()=>r});var t=e(79472);const n={FORM_INIT:(0,t.d)("dspace/form/FORM_INIT"),FORM_CHANGE:(0,t.d)("dspace/form/FORM_CHANGE"),FORM_ADD_TOUCHED:(0,t.d)("dspace/form/FORM_ADD_TOUCHED"),FORM_REMOVE:(0,t.d)("dspace/form/FORM_REMOVE"),FORM_STATUS_CHANGE:(0,t.d)("dspace/form/FORM_STATUS_CHANGE"),FORM_ADD_ERROR:(0,t.d)("dspace/form/FORM_ADD_ERROR"),FORM_REMOVE_ERROR:(0,t.d)("dspace/form/FORM_REMOVE_ERROR"),FORM_CLEAR_ERRORS:(0,t.d)("dspace/form/FORM_CLEAR_ERRORS")};class o{constructor(v,E,O){this.type=n.FORM_INIT,this.payload={formId:v,formData:E,valid:O}}}class i{constructor(v,E){this.type=n.FORM_CHANGE,this.payload={formId:v,formData:E}}}class d{constructor(v,E){this.type=n.FORM_ADD_TOUCHED,this.payload={formId:v,touched:E}}}class r{constructor(v){this.type=n.FORM_REMOVE,this.payload={formId:v}}}class a{constructor(v,E){this.type=n.FORM_STATUS_CHANGE,this.payload={formId:v,valid:E}}}class p{constructor(v,E,O,b){this.type=n.FORM_ADD_ERROR,this.payload={formId:v,fieldId:E,fieldIndex:O,errorMessage:b}}}class h{constructor(v,E,O){this.type=n.FORM_REMOVE_ERROR,this.payload={formId:v,fieldId:E,fieldIndex:O}}}class m{constructor(v){this.type=n.FORM_CLEAR_ERRORS,this.payload={formId:v}}}},63311:(R,c,e)=>{"use strict";e.d(c,{U:()=>C});var t=e(39300),n=e(54004),o=e(71884),i=e(94650),d=e(36397),r=e.n(d),a=e(33036),p=e(24702),h=e(28858);function m(I,g){if(1&I){const B=i.\u0275\u0275getCurrentView();i.\u0275\u0275elementStart(0,"div",7)(1,"button",8),i.\u0275\u0275listener("click",function(V){i.\u0275\u0275restoreView(B);const Y=i.\u0275\u0275nextContext(),X=Y.context,te=Y.index,K=i.\u0275\u0275nextContext();return i.\u0275\u0275resetView(K.removeItem(V,X,te))}),i.\u0275\u0275pipe(2,"translate"),i.\u0275\u0275pipe(3,"translate"),i.\u0275\u0275elementStart(4,"span"),i.\u0275\u0275element(5,"i",9),i.\u0275\u0275elementEnd()()()}2&I&&(i.\u0275\u0275advance(1),i.\u0275\u0275propertyInterpolate("title",i.\u0275\u0275pipeBind1(2,2,"form.remove")),i.\u0275\u0275attribute("aria-label",i.\u0275\u0275pipeBind1(3,4,"form.remove")))}function _(I,g){if(1&I){const B=i.\u0275\u0275getCurrentView();i.\u0275\u0275elementStart(0,"div",10)(1,"div",11)(2,"button",12),i.\u0275\u0275listener("click",function(V){i.\u0275\u0275restoreView(B);const Y=i.\u0275\u0275nextContext().$implicit,X=i.\u0275\u0275nextContext();return i.\u0275\u0275resetView(X.insertItem(V,Y.context,Y.context.groups.length))}),i.\u0275\u0275pipe(3,"translate"),i.\u0275\u0275pipe(4,"translate"),i.\u0275\u0275elementStart(5,"span"),i.\u0275\u0275element(6,"i",13),i.\u0275\u0275text(7),i.\u0275\u0275pipe(8,"translate"),i.\u0275\u0275elementEnd()()()()}2&I&&(i.\u0275\u0275advance(2),i.\u0275\u0275propertyInterpolate("title",i.\u0275\u0275pipeBind1(3,3,"form.add")),i.\u0275\u0275attribute("aria-label",i.\u0275\u0275pipeBind1(4,5,"form.add")),i.\u0275\u0275advance(5),i.\u0275\u0275textInterpolate1(" ",i.\u0275\u0275pipeBind1(8,7,"form.add"),""))}function v(I,g){if(1&I){const B=i.\u0275\u0275getCurrentView();i.\u0275\u0275elementStart(0,"div",7)(1,"div",14)(2,"button",15),i.\u0275\u0275listener("click",function(V){i.\u0275\u0275restoreView(B);const Y=i.\u0275\u0275nextContext(),X=Y.context,te=Y.index,K=i.\u0275\u0275nextContext();return i.\u0275\u0275resetView(K.removeItem(V,X,te))}),i.\u0275\u0275pipe(3,"translate"),i.\u0275\u0275pipe(4,"translate"),i.\u0275\u0275elementStart(5,"span"),i.\u0275\u0275text(6),i.\u0275\u0275pipe(7,"translate"),i.\u0275\u0275elementEnd()()()()}if(2&I){const B=i.\u0275\u0275nextContext(),L=B.$implicit,V=B.context,Y=B.index,X=i.\u0275\u0275nextContext();i.\u0275\u0275advance(2),i.\u0275\u0275propertyInterpolate("title",i.\u0275\u0275pipeBind1(3,4,"form.discard")),i.\u0275\u0275property("dsBtnDisabled",1===L.context.groups.length||X.isItemReadOnly(V,Y)),i.\u0275\u0275attribute("aria-label",i.\u0275\u0275pipeBind1(4,6,"form.discard")),i.\u0275\u0275advance(4),i.\u0275\u0275textInterpolate(i.\u0275\u0275pipeBind1(7,8,"form.discard"))}}function E(I,g){if(1&I&&(i.\u0275\u0275template(0,m,6,6,"div",5),i.\u0275\u0275template(1,_,9,9,"div",6),i.\u0275\u0275template(2,v,8,10,"div",5)),2&I){const B=g.$implicit,L=g.index,V=g.context,Y=i.\u0275\u0275nextContext();i.\u0275\u0275property("ngIf",!V.notRepeatable&&!Y.isVirtual(V,L)&&1!==B.context.groups.length&&!Y.isItemReadOnly(V,L)),i.\u0275\u0275advance(1),i.\u0275\u0275property("ngIf",!V.notRepeatable&&L===B.context.groups.length-1&&!Y.isItemReadOnly(V,L)),i.\u0275\u0275advance(1),i.\u0275\u0275property("ngIf",V.notRepeatable&&V.showButtons&&B.context.groups.length>1)}}function O(I,g){1&I&&i.\u0275\u0275projection(0,1,["*ngIf","!displaySubmit && !displayCancel"])}function b(I,g){if(1&I){const B=i.\u0275\u0275getCurrentView();i.\u0275\u0275elementStart(0,"button",20),i.\u0275\u0275listener("click",function(){i.\u0275\u0275restoreView(B);const V=i.\u0275\u0275nextContext(2);
1return i.\u0275\u0275resetView(V.reset())}),i.\u0275\u0275element(1,"i",21),i.\u0275\u0275text(2),i.\u0275\u0275pipe(3,"translate"),i.\u0275\u0275elementEnd()}if(2&I){const B=i.\u0275\u0275nextContext(2);i.\u0275\u0275advance(2),i.\u0275\u0275textInterpolate1(" ",i.\u0275\u0275pipeBind1(3,1,B.cancelLabel)," ")}}function M(I,g){if(1&I){const B=i.\u0275\u0275getCurrentView();i.\u0275\u0275elementStart(0,"button",22),i.\u0275\u0275listener("click",function(){i.\u0275\u0275restoreView(B);const V=i.\u0275\u0275nextContext(2);return i.\u0275\u0275resetView(V.onSubmit())}),i.\u0275\u0275pipe(1,"async"),i.\u0275\u0275element(2,"i",23),i.\u0275\u0275text(3),i.\u0275\u0275pipe(4,"translate"),i.\u0275\u0275elementEnd()}if(2&I){const B=i.\u0275\u0275nextContext(2);i.\u0275\u0275property("dsBtnDisabled",!i.\u0275\u0275pipeBind1(1,2,B.isValid())),i.\u0275\u0275advance(3),i.\u0275\u0275textInterpolate1(" ",i.\u0275\u0275pipeBind1(4,4,B.submitLabel)," ")}}function P(I,g){if(1&I&&(i.\u0275\u0275elementStart(0,"div"),i.\u0275\u0275element(1,"hr"),i.\u0275\u0275elementStart(2,"div",16)(3,"div",17),i.\u0275\u0275projection(4,2),i.\u0275\u0275template(5,b,4,3,"button",18),i.\u0275\u0275projection(6,3),i.\u0275\u0275template(7,M,5,6,"button",19),i.\u0275\u0275projection(8,4),i.\u0275\u0275elementEnd()()()),2&I){const B=i.\u0275\u0275nextContext();i.\u0275\u0275advance(5),i.\u0275\u0275property("ngIf",B.displayCancel),i.\u0275\u0275advance(2),i.\u0275\u0275property("ngIf",B.displaySubmit)}}const D=[[["","additional",""]],"*",[["","before",""]],[["","between",""]],[["","after",""]]],l=["[additional]","*","[before]","[between]","[after]"];let C=(()=>{class I{constructor(B,L,V){this.formService=B,this.changeDetectorRef=L,this.formBuilderService=V,this.formErrors=[],this.displaySubmit=!0,this.displayCancel=!0,this.emitChange=!0,this.submitLabel="form.submit",this.cancelLabel="form.cancel",this.formLayout=null,this.blur=new i.EventEmitter,this.change=new i.EventEmitter,this.focus=new i.EventEmitter,this.customEvent=new i.EventEmitter,this.addArrayItem=new i.EventEmitter,this.removeArrayItem=new i.EventEmitter,this.cancel=new i.EventEmitter,this.submitForm=new i.EventEmitter,this.subs=[]}getFormGroup(){return this.parentFormModel?this.formGroup.parent:this.formGroup}getFormGroupValue(){return this.getFormGroup().value}getFormGroupValidStatus(){return this.getFormGroup().valid}ngOnInit(){this.formGroup?this.formModel.forEach(B=>{this.parentFormModel&&this.formBuilderService.addFormGroupControl(this.formGroup,this.parentFormModel,B)}):this.formGroup=this.formBuilderService.createFormGroup(this.formModel),this.formService.initForm(this.formId,this.formModel,this.getFormGroupValidStatus()),this.formValid=this.getFormGroupValidStatus(),this.subs.push(this.formGroup.statusChanges.pipe((0,t.h)(()=>this.formValid!==this.getFormGroupValidStatus())).subscribe(()=>{this.formService.setStatusChanged(this.formId,this.getFormGroupValidStatus()),this.formValid=this.getFormGroupValidStatus()})),this.subs.push(this.formService.getForm(this.formId).pipe((0,t.h)(B=>!!B&&((0,p.UE)(B.errors)||(0,p.UE)(this.formErrors))),(0,n.U)(B=>B.errors),(0,o.x)()).subscribe(B=>{const{formGroup:L,formModel:V}=this;B.filter(Y=>-1===r()(this.formErrors,{fieldId:Y.fieldId,fieldIndex:Y.fieldIndex})).forEach(Y=>{const{fieldId:X}=Y,{fieldIndex:te}=Y;let K;if(K=this.formBuilderService.getFormControlById(X,this.parentFormModel?L.parent:L,V,te),K){const ee=this.formBuilderService.findById(X,V);this.formService.addErrorToField(K,ee,Y.message),this.changeDetectorRef.detectChanges()}}),this.formErrors.filter(Y=>-1===r()(B,{fieldId:Y.fieldId,fieldIndex:Y.fieldIndex})).forEach(Y=>{const{fieldId:X}=Y,{fieldIndex:te}=Y;let K;if(K=this.formBuilderService.getFormControlById(X,this.parentFormModel?L.parent:L,V,te),K){const ee=this.formBuilderService.findById(X,V);this.formService.removeErrorFromField(K,ee,Y.message)}}),this.formErrors=B,this.changeDetectorRef.detectChanges()}))}ngOnDestroy(){this.subs.filter(B=>(0,p.Uh)(B)).forEach(B=>B.unsubscribe()),this.formService.removeForm(this.formId)}isValid(){return this.formService.isValid(this.formId)}keepSync(){this.subs.push(this.formService.getFormData(this.formId).subscribe(B=>{!Object.is(B,this.formGroup.value)&&this.formGroup&&this.formGroup.setValue(B)}))}onBlur(B){this.blur.emit(B);
1const L=B.control,V=B.context&&B.context.index?B.context.index:0;L.valid?this.formService.removeError(this.formId,B.model.name,V):this.formService.addControlErrors(L,this.formId,B.model.name,V)}onCustomEvent(B){this.customEvent.emit(B)}onFocus(B){this.formService.setTouched(this.formId,this.formModel,B),this.focus.emit(B)}onChange(B){this.formService.changeForm(this.formId,this.formModel),this.formGroup.markAsPristine(),this.emitChange&&this.change.emit(B),B.control.valid&&this.formService.removeError(this.formId,B.model.id,B.context&&B.context.index?B.context.index:0)}onSubmit(){this.getFormGroupValidStatus()?this.submitForm.emit(this.formService.getFormData(this.formId)):this.formService.validateAllFormFields(this.formGroup)}reset(){this.formGroup.reset(),this.cancel.emit()}isItemReadOnly(B,L){return B.groups[L].group[0].readOnly}removeItem(B,L,V){const Y=this.formGroup.get(this.formBuilderService.getPath(L)),X=this.getEvent(B,L,V,"remove");this.formBuilderService.isQualdropGroup(X.model)&&this.removeArrayItem.emit(X),this.formBuilderService.removeFormArrayGroup(V,Y,L),this.formService.changeForm(this.formId,this.formModel),this.formBuilderService.isQualdropGroup(X.model)||this.removeArrayItem.emit(X)}insertItem(B,L,V){const Y=this.formGroup.get(this.formBuilderService.getPath(L));this.formBuilderService.insertFormArrayGroup(V,Y,L),this.addArrayItem.emit(this.getEvent(B,L,V,"add")),this.formService.changeForm(this.formId,this.formModel)}isVirtual(B,L){const Y=B.groups[L].group[0].metadataValue;return(0,p.UE)(Y)&&Y.isVirtual}getEvent(B,L,V,Y){const X=L.groups[V],te=X.context;let K=this.formGroup.get(te.id);if((0,p.Ft)(K))for(const Q of Object.keys(this.formGroup.controls))if(K=this.formGroup.controls[Q].get(te.id),(0,p.K0)(K))break;return{$event:B,context:X,control:K.controls[V],group:K,model:X.group[0],type:Y}}}return I.\u0275fac=function(B){return new(B||I)(i.\u0275\u0275directiveInject(h.o),i.\u0275\u0275directiveInject(i.ChangeDetectorRef),i.\u0275\u0275directiveInject(a.c))},I.\u0275cmp=i.\u0275\u0275defineComponent({type:I,selectors:[["ds-form"]],inputs:{displaySubmit:"displaySubmit",displayCancel:"displayCancel",emitChange:"emitChange",formId:"formId",submitLabel:"submitLabel",cancelLabel:"cancelLabel",formModel:"formModel",parentFormModel:"parentFormModel",formGroup:"formGroup",formLayout:"formLayout"},outputs:{blur:"dfBlur",change:"dfChange",focus:"dfFocus",customEvent:"ngbEvent",addArrayItem:"addArrayItem",removeArrayItem:"removeArrayItem",cancel:"cancel",submitForm:"submitForm"},exportAs:["formComponent"],ngContentSelectors:l,decls:7,vars:7,consts:[[1,"container-fluid"],[1,"form-horizontal",3,"formGroup"],[3,"formId","formGroup","formModel","formLayout","change","dfBlur","dfChange","dfFocus","ngbEvent"],["modelType","ARRAY"],[4,"ngIf"],["class","col-xs-2 d-flex flex-column justify-content-sm-start align-items-end",4,"ngIf"],["class","clearfix pl-4 w-100",4,"ngIf"],[1,"col-xs-2","d-flex","flex-column","justify-content-sm-start","align-items-end"],["type","button","role","button",1,"btn","btn-secondary",3,"title","click"],["aria-hidden","true",1,"fas","fa-trash"],[1,"clearfix","pl-4","w-100"],["role","group",1,"btn-group"],["type","button","role","button",1,"ds-form-add-more","btn","btn-link",3,"title","click"],[1,"fas","fa-plus"],["role","button",1,"btn-group"],["type","button",1,"btn","btn-secondary",3,"title","dsBtnDisabled","click"],[1,"form-group","row"],[1,"col","text-right","space-children-mr"],["type","reset","class","btn btn-outline-secondary",3,"click",4,"ngIf"],["type","submit","class","btn btn-primary",3,"dsBtnDisabled","click",4,"ngIf"],["type","reset",1,"btn","btn-outline-secondary",3,"click"],["aria-hidden","true",1,"fa","fa-times"],["type","submit",1,"btn","btn-primary",3,"dsBtnDisabled","click"],["aria-hidden","true",1,"fas","fa-save"]],template:function(B,L){1&B&&(i.\u0275\u0275projectionDef(D),i.\u0275\u0275elementStart(0,"div",0)(1,"form",1)(2,"ds-dynamic-form",2),i.\u0275\u0275listener("change",function(Y){return Y.stopPropagation()})("dfBlur",function(Y){return L.onBlur(Y)})("dfChange",function(Y){return L.onChange(Y)})("dfFocus",function(Y){return L.onFocus(Y)})("ngbEvent",function(Y){return L.onCustomEvent(Y)}),i.\u0275\u0275template(3,E,3,3,"ng-template",3),i.\u0275\u0275elementEnd(),i.\u0275\u0275projection(4),i.\u0275\u0275template(5,O,1,0,"ng-content",4),i.\u0275\u0275template(6,P,9,2,"div",4),i.\u0275\u0275elementEnd()()),2&B&&(i.\u0275\u0275advance(1),i.\u0275\u0275property("formGroup",L.formGroup),i.\u0275\u0275advance(1),i.\u0275\u0275property("formId",L.formId)("formGroup",L.formGroup)("formModel",L.formModel)("formLayout",L.formLayout),i.\u0275\u0275advance(3),i.\u0275\u0275property("ngIf",!L.displaySubmit&&!L.displayCancel),i.\u0275\u0275advance(1),i.\u0275\u0275property("ngIf",L.displaySubmit||L.displayCancel))},styles:[".ds-form-input-addon[_ngcontent-%COMP%]{border-top-right-radius:0!important;border-bottom-right-radius:0!important;border-right:0!important}.ds-form-input-btn[_ngcontent-%COMP%]{border:var(--bs-input-btn-border-width) solid var(--bs-input-border-color);border-top-left-radius:0;border-bottom-left-radius:0;border-left:0}.ds-form-input-btn[_ngcontent-%COMP%]:focus{box-shadow:none!important}button.ds-form-add-more[_ngcontent-%COMP%]:focus{box-shadow:none!important}button.ds-form-add-more[_ngcontent-%COMP%]:focus{outline:none}.ds-form-input-value[_ngcontent-%COMP%]{border-top-left-radius:0!important;border-bottom-left-radius:0!important}.fa-spin[_ngcontent-%COMP%]{pointer-events:none}.left-addon[_ngcontent-%COMP%] .far[_ngcontent-%COMP%], .left-addon[_ngcontent-%COMP%] .fas[_ngcontent-%COMP%], .left-addon[_ngcontent-%COMP%] i[_ngcontent-%COMP%]{left:0}.right-addon[_ngcontent-%COMP%] .far[_ngcontent-%COMP%], .right-addon[_ngcontent-%COMP%] .fas[_ngcontent-%COMP%], .right-addon[_ngcontent-%COMP%] i[_ngcontent-%COMP%]{right:0}.left-addon[_ngcontent-%COMP%] input[_ngcontent-%COMP%]{padding-left:calc(var(--bs-spacer) * 2.25)}.right-addon[_ngcontent-%COMP%] input[_ngcontent-%COMP%]{padding-right:calc(var(--bs-spacer) * 2.25)}"]}),I})()},28858:(R,c,e)=>{"use strict";e.d(c,{o:()=>M});var t=e(39300),n=e(54004),o=e(71884),i=e(24006),d=e(89653);const r=P=>P.forms;function a(P){return(0,d.P1)(r,D=>D[P])}var p=e(33036),h=e(19672),m=e(24702),_=e(51541),v=e.n(_),E=e(19522),O=e(21540),b=e(94650);let M=(()=>{class P{constructor(l,C){this.formBuilderService=l,this.store=C}isValid(l){return this.store.pipe((0,d.Ys)(a(l)),(0,t.h)(C=>(0,m.pT)(C)),(0,n.U)(C=>C.valid),(0,o.x)())}getFormData(l){return this.store.pipe((0,d.Ys)(a(l)),(0,t.h)(C=>(0,m.pT)(C)),(0,n.U)(C=>C.data),(0,o.x)())}getFormTouchedState(l){return this.store.pipe((0,d.Ys)(a(l)),(0,t.h)(C=>(0,m.pT)(C)),(0,n.U)(C=>C.touched),(0,o.x)())}getFormErrors(l){return this.store.pipe((0,d.Ys)(a(l)),(0,t.h)(C=>(0,m.pT)(C)),(0,n.U)(C=>C.errors),(0,o.x)())}isFormInitialized(l){return this.store.pipe((0,d.Ys)(a(l)),(0,o.x)(),(0,n.U)(C=>(0,m.pT)(C)))}getUniqueId(l){return v()()+"_"+l}
1validateAllFormFields(l){Object.keys(l.controls).forEach(C=>{const I=l.get(C);I instanceof i.p4?(I.markAsTouched({onlySelf:!0}),I.markAsDirty({onlySelf:!0})):(I instanceof i.nJ||I instanceof i.vC)&&this.validateAllFormFields(I)})}hasValidationErrors(l){let C=!1;const I=Object.keys(l.controls);for(const g of I){const B=l.get(g);if(B instanceof i.p4?C=!B.valid&&B.touched:(B instanceof i.nJ||B instanceof i.vC)&&(C=this.hasValidationErrors(B)),C)break}return C}addControlErrors(l,C,I,g){null!==l.errors&&Object.keys(l.errors).filter(L=>!0===l.errors[L]).map(L=>`error.validation.${L}`).forEach(L=>this.addError(C,I,g,L))}addErrorToField(l,C,I){const g={},B=this.getValidatorNameFromMap(I);let L=I;C.errorMessages||(C.errorMessages={}),(0,m.xb)(C.errorMessages[B])?C.errorMessages[B]=I:L=C.errorMessages[B],l.hasError(B)||(g[B]=!0,l.setErrors(g)),l instanceof i.nJ&&C instanceof h.S_O&&this.formBuilderService.isConcatGroup(C)&&C.group.forEach(V=>{this.addErrorToField(l.controls[V.id],V,I)}),l.markAsTouched()}removeErrorFromField(l,C,I){const g={},B=this.getValidatorNameFromMap(I);l.hasError(B)&&(g[B]=null,l.setErrors(g)),l instanceof i.nJ&&C instanceof h.S_O&&this.formBuilderService.isConcatGroup(C)&&C.group.forEach(L=>{this.removeErrorFromField(l.controls[L.id],L,I)}),l.markAsUntouched()}resetForm(l,C,I){this.formBuilderService.clearAllModelsValue(C),l.reset(),this.store.dispatch(new E.q0(I,l.value))}getValidatorNameFromMap(l){if(l.includes(".")){const C=l.split(".");C&&C.length>0&&(l=this.getValidatorNameFromMap(C[C.length-1]))}return O.N.form.validatorMap.hasOwnProperty(l)?O.N.form.validatorMap[l]:l}initForm(l,C,I){this.store.dispatch(new E.Zn(l,this.formBuilderService.getValueFromModel(C),I))}setStatusChanged(l,C){this.store.dispatch(new E.Ag(l,C))}getForm(l){return this.store.pipe((0,d.Ys)(a(l)))}removeForm(l){this.store.dispatch(new E.yf(l))}changeForm(l,C){this.store.dispatch(new E.q0(l,this.formBuilderService.getValueFromModel(C)))}setTouched(l,C,I){const g=this.formBuilderService.getMetadataIdsFromEvent(I);this.store.dispatch(new E.QQ(l,g))}addError(l,C,I,g){const B=C.replace(/\./g,"_");this.store.dispatch(new E.A4(l,B,I,g))}removeError(l,C,I){const g=C.replace(/\./g,"_");this.store.dispatch(new E.S$(l,g,I))}}return P.\u0275fac=function(l){return new(l||P)(b.\u0275\u0275inject(p.c),b.\u0275\u0275inject(d.yh))},P.\u0275prov=b.\u0275\u0275defineInjectable({token:P,factory:P.\u0275fac}),P})()},93007:(R,c,e)=>{"use strict";e.d(c,{g:()=>h});var t=e(94650),n=e(24006),o=e(24702),i=e(89383),d=e(36895),r=e(25575);const a=function(m){return{field:m}},p=function(m){return{"is-invalid":m}};let h=(()=>{class m{constructor(v,E,O){this.fb=v,this.cd=E,this.translate=O,this.selected=new t.EventEmitter,this.remove=new t.EventEmitter,this.blur=new t.EventEmitter,this.change=new t.EventEmitter,this.focus=new t.EventEmitter}ngOnInit(){this.step=this.step||1,this.min=this.min||0,this.max=this.max||100,this.size=this.size||1,this.disabled=this.disabled||!1,this.invalid=this.invalid||!1,this.cd.detectChanges()}ngOnChanges(v){this.value?v.max&&(this.value=this.value>this.max?this.max:this.value):v.value&&null===v.value.currentValue?this.value=null:v.invalid&&(this.invalid=v.invalid.currentValue)}changeValue(v=!1){if((0,o.xb)(this.value))this.value=this.startValue;else{this.startValue=this.value;let E=this.value;v?E-=this.step:E+=this.step,this.value=E>=this.min&&E<=this.max?E:E>this.max?this.min:this.max}this.emitChange()}toggleDown(){this.changeValue(!0)}toggleUp(){this.changeValue()}update(v){try{const E=Number.parseInt(v.target.value,10);this.value=E>=this.min&&E<=this.max?E:null===v.target.value||""===v.target.value?null:void 0,this.emitChange()}catch{this.value=void 0}}onBlur(v){this.blur.emit(v)}onFocus(v){this.value&&(this.startValue=this.value),this.focus.emit(v)}writeValue(v){this.startValue=v||this.min}registerOnChange(v){}registerOnTouched(v){}emitChange(){this.change.emit({field:this.name,value:this.value})}}return m.\u0275fac=function(v){return new(v||m)(t.\u0275\u0275directiveInject(n.QS),t.\u0275\u0275directiveInject(t.ChangeDetectorRef),t.\u0275\u0275directiveInject(i.sK))},m.\u0275cmp=t.\u0275\u0275defineComponent({type:m,selectors:[["ds-number-picker"]],inputs:{id:"id",step:"step",min:"min",max:"max",size:"size",placeholder:"placeholder",name:"name",disabled:"disabled",invali
1d:"invalid",value:"value"},outputs:{selected:"selected",remove:"remove",blur:"blur",change:"change",focus:"focus"},features:[t.\u0275\u0275ProvidersFeature([{provide:n.JU,useExisting:m,multi:!0}]),t.\u0275\u0275NgOnChangesFeature],decls:12,vars:27,consts:[[1,"d-flex","flex-column","align-items-center","justify-content-around","mr-3"],["type","button","tabindex","0",1,"btn","btn-link-focus",3,"dsBtnDisabled","click"],[1,"chevron"],[1,"sr-only"],["type","text",1,"form-control","d-inline-block","text-center",3,"id","maxlength","size","placeholder","name","ngModel","readonly","disabled","ngClass","title","ngModelChange","blur","change","focus"],[1,"chevron","bottom"]],template:function(v,E){1&v&&(t.\u0275\u0275elementStart(0,"div",0)(1,"button",1),t.\u0275\u0275listener("click",function(){return E.toggleUp()}),t.\u0275\u0275element(2,"span",2),t.\u0275\u0275elementStart(3,"span",3),t.\u0275\u0275text(4),t.\u0275\u0275pipe(5,"translate"),t.\u0275\u0275elementEnd()(),t.\u0275\u0275elementStart(6,"input",4),t.\u0275\u0275listener("ngModelChange",function(b){return E.value=b})("blur",function(b){return E.onBlur(b),b.stopPropagation()})("change",function(b){return E.update(b),b.stopPropagation()})("focus",function(b){return E.onFocus(b),b.stopPropagation()}),t.\u0275\u0275elementEnd(),t.\u0275\u0275elementStart(7,"button",1),t.\u0275\u0275listener("click",function(){return E.toggleDown()}),t.\u0275\u0275element(8,"span",5),t.\u0275\u0275elementStart(9,"span",3),t.\u0275\u0275text(10),t.\u0275\u0275pipe(11,"translate"),t.\u0275\u0275elementEnd()()()),2&v&&(t.\u0275\u0275advance(1),t.\u0275\u0275property("dsBtnDisabled",E.disabled),t.\u0275\u0275advance(3),t.\u0275\u0275textInterpolate(t.\u0275\u0275pipeBind2(5,15,"form.number-picker.increment",t.\u0275\u0275pureFunction1(21,a,E.name))),t.\u0275\u0275advance(2),t.\u0275\u0275propertyInterpolate("id",E.id),t.\u0275\u0275propertyInterpolate("maxlength",E.size),t.\u0275\u0275propertyInterpolate("size",E.size),t.\u0275\u0275propertyInterpolate("placeholder",E.placeholder),t.\u0275\u0275propertyInterpolate("title",E.placeholder),t.\u0275\u0275property("name",E.name)("ngModel",E.value)("readonly",E.disabled)("disabled",E.disabled)("ngClass",t.\u0275\u0275pureFunction1(23,p,E.invalid)),t.\u0275\u0275attribute("aria-label",E.placeholder),t.\u0275\u0275advance(1),t.\u0275\u0275property("dsBtnDisabled",E.disabled),t.\u0275\u0275advance(3),t.\u0275\u0275textInterpolate(t.\u0275\u0275pipeBind2(11,18,"form.number-picker.decrement",t.\u0275\u0275pureFunction1(25,a,E.name))))},dependencies:[d.mk,n.Fj,n.JJ,n.nD,n.On,r.v,i.X$],styles:['[_nghost-%COMP%]{outline:none}.chevron[_ngcontent-%COMP%]:before{border-style:solid;border-width:.29em .29em 0 0;content:"";display:inline-block;height:.69em;left:.05em;position:relative;top:.15em;transform:rotate(-45deg);vertical-align:middle;width:.71em}.chevron.bottom[_ngcontent-%COMP%]:before{top:-.3em;transform:rotate(135deg)}input[_ngcontent-%COMP%]{max-width:80px!important}.btn-link-focus[_ngcontent-%COMP%]{font-weight:400;color:#1f7293;text-decoration:none}.btn-link-focus[_ngcontent-%COMP%]:hover{color:#124154;text-decoration:underline}.btn-link-focus[_ngcontent-%COMP%]:disabled, .btn-link-focus.disabled[_ngcontent-%COMP%]{color:#6c757d;pointer-events:none}.btn-link-focus[_ngcontent-%COMP%]:focus, .btn-link-focus.focus[_ngcontent-%COMP%]{text-decoration:underline}']}),m})()},88235:(R,c,e)=>{"use strict";e.d(c,{C:()=>a});var t=e(94650),n=e(59656),o=e(68285),i=e(13465),d=e(24702),r=e(36895);let a=(()=>{class p{constructor(m,_){this._window=m,this.configService=_,this.executeRecaptcha=new t.EventEmitter,this.checkboxChecked=new t.EventEmitter,this.showNotification=new t.EventEmitter,this.dataCallbackFcn=v=>{switch(this.captchaMode){case"invisible":this.executeRecaptcha.emit(v);break;case"checkbox":this.checkboxChecked.emit((0,d.UE)(v));break;default:console.error(`Invalid reCaptcha mode '${this.captchaMode}`),this.showNotification.emit("error")}},this.expiredCallbackFcn=()=>{this.checkboxChecked.emit(!1),this.showNotification.emit("expired")},this.errorCallbackFcn=()=>{this.showNotification.emit("error")}}ngOnInit(){this.recaptchaKey$=this.configService.findByPropertyName("google.recaptcha.key.site").pipe((0,o.Gp)()),this._window.nativeWindow.dataCallback=this.dataCallbackFcn,this._window.nativeWindow.expiredCallback=this.expiredCallbackFcn,this._window.nativeWindow.errorCallback=this.errorCallbackFcn}}
1return p.\u0275fac=function(m){return new(m||p)(t.\u0275\u0275directiveInject(i.DC),t.\u0275\u0275directiveInject(n.i))},p.\u0275cmp=t.\u0275\u0275defineComponent({type:p,selectors:[["ds-google-recaptcha"]],inputs:{captchaMode:"captchaMode"},outputs:{executeRecaptcha:"executeRecaptcha",checkboxChecked:"checkboxChecked",showNotification:"showNotification"},decls:2,vars:7,consts:[[1,"g-recaptcha"]],template:function(m,_){if(1&m&&(t.\u0275\u0275element(0,"div",0),t.\u0275\u0275pipe(1,"async")),2&m){let v;t.\u0275\u0275attribute("data-callback","dataCallback")("data-expired-callback","expiredCallback")("data-error-callback","errorCallback")("data-sitekey",null==(v=t.\u0275\u0275pipeBind1(1,5,_.recaptchaKey$))?null:v.values[0])("data-size","invisible"===_.captchaMode?"invisible":null)}},dependencies:[r.Ov]}),p})()},54384:(R,c,e)=>{"use strict";e.d(c,{n:()=>_});var t=e(24702),n=e(59656),o=e(68285),i=e(54004),d=e(95698),r=e(39646),a=e(94650);const m=/^([^\/]+\/[^\/]+)$/;let _=(()=>{class v{constructor(O){this.configurationService=O}normalizeHandle(O){return(0,t.xI)(O)?(0,r.of)(null):this.configurationService.findByPropertyName("handle.canonical.prefix").pipe((0,o.hC)(),(0,i.U)(b=>{if(b.hasSucceeded)return b.payload.values.length>=1?b.payload.values[0]:void 0}),(0,i.U)(b=>{let M;return M=O.match((v=>{const E=v?.replace(/\/$/,"");return new RegExp(`(${E?E+"|":""}handle)/([^/]+/[^/]+)$`)})(b)),((0,t.xb)(M)||M.length<3)&&(M=O.match(m)),(0,t.xb)(M)||M.length<2?null:M[M.length-1]}),(0,d.q)(1))}}return v.\u0275fac=function(O){return new(O||v)(a.\u0275\u0275inject(n.i))},v.\u0275prov=a.\u0275\u0275defineInjectable({token:v,factory:v.\u0275fac,providedIn:"root"}),v})()},70323:(R,c,e)=>{"use strict";e.d(c,{D:()=>o,L:()=>n});const n={RESIZE:(0,e(79472).d)("dspace/host-window/RESIZE")};class o{constructor(d,r){this.type=n.RESIZE,this.payload={width:d,height:r}}}},958:(R,c,e)=>{"use strict";e.d(c,{I3:()=>E,or:()=>h});var t=e(39841),n=e(39300),o=e(54004),i=e(71884),d=e(89653),r=e(24702),a=e(61182),p=e(94650),h=(()=>{return(O=h||(h={}))[O.XS=0]="XS",O[O.SM=1]="SM",O[O.MD=2]="MD",O[O.LG=3]="LG",O[O.XL=4]="XL",h;var O})();const m=h.SM,v=(0,d.P1)(O=>O.hostWindow,O=>O.width);let E=(()=>{class O{constructor(M,P){this.store=M,this.variableService=P,this.breakPoints={},P.getAllVariables().subscribe(D=>{this.breakPoints.XL_MIN=parseInt(D["--bs-xl-min"],10),this.breakPoints.LG_MIN=parseInt(D["--bs-lg-min"],10),this.breakPoints.MD_MIN=parseInt(D["--bs-md-min"],10),this.breakPoints.SM_MIN=parseInt(D["--bs-sm-min"],10)})}getWidthObs(){return this.store.pipe((0,d.Ys)(v),(0,n.h)(M=>(0,r.Uh)(M)))}get widthCategory(){return this.getWidthObs().pipe((0,o.U)(M=>M<this.breakPoints.SM_MIN?h.XS:M>=this.breakPoints.SM_MIN&&M<this.breakPoints.MD_MIN?h.SM:M>=this.breakPoints.MD_MIN&&M<this.breakPoints.LG_MIN?h.MD:M>=this.breakPoints.LG_MIN&&M<this.breakPoints.XL_MIN?h.LG:h.XL),(0,i.x)())}isXs(){return this.widthCategory.pipe((0,o.U)(M=>M===h.XS),(0,i.x)())}isSm(){return this.widthCategory.pipe((0,o.U)(M=>M===h.SM),(0,i.x)())}isMd(){return this.widthCategory.pipe((0,o.U)(M=>M===h.MD),(0,i.x)())}isLg(){return this.widthCategory.pipe((0,o.U)(M=>M===h.LG),(0,i.x)())}isXl(){return this.widthCategory.pipe((0,o.U)(M=>M===h.XL),(0,i.x)())}is(M){return this.widthCategory.pipe((0,o.U)(P=>P===M),(0,i.x)())}isIn(M){return this.widthCategory.pipe((0,o.U)(P=>M.includes(P)),(0,i.x)())}isUpTo(M){return this.widthCategory.pipe((0,o.U)(P=>P<=M),(0,i.x)())}isMobile(){return this.widthCategory.pipe((0,o.U)(M=>M<=m),(0,i.x)())}isDesktop(){return this.widthCategory.pipe((0,o.U)(M=>M>m),(0,i.x)())}isXsOrSm(){return(0,t.a)(this.isXs(),this.isSm()).pipe((0,o.U)(([M,P])=>M||P),(0,i.x)())}}return O.\u0275fac=function(M){return new(M||O)(p.\u0275\u0275inject(d.yh),p.\u0275\u0275inject(a.I))},O.\u0275prov=p.\u0275\u0275defineInjectable({token:O,factory:O.\u0275fac}),O})()},81083:(R,c,e)=>{"use strict";e.d(c,{P:()=>n});var t=e(94650);let n=(()=>{class o{constructor(d){this.elementRef=d}onMouseEnter(){this.elementRef.nativeElement.classList.add(this.hoverClass)}onMouseLeave(){this.elementRef.nativeElement.classList.remove(this.hoverClass)}}return o.\u0275fac=function(d){return new(d||o)(t.\u0275\u0275directiveInject(t.ElementRef))}
1,o.\u0275dir=t.\u0275\u0275defineDirective({type:o,selectors:[["","dsHoverClass",""]],hostBindings:function(d,r){1&d&&t.\u0275\u0275listener("mouseenter",function(){return r.onMouseEnter()})("mouseleave",function(){return r.onMouseLeave()})},inputs:{hoverClass:["dsHoverClass","hoverClass"]}}),o})()},97125:(R,c,e)=>{"use strict";e.d(c,{$:()=>m});var t=e(89653),n=e(24755),o=e(54004),i=e(19168),d=e(94650),r=e(36895),a=e(9769),p=e(89383);function h(_,v){if(1&_){const E=d.\u0275\u0275getCurrentView();d.\u0275\u0275elementStart(0,"ul",1)(1,"li",2)(2,"button",3),d.\u0275\u0275listener("click",function(){d.\u0275\u0275restoreView(E);const b=d.\u0275\u0275nextContext();return d.\u0275\u0275resetView(b.stopImpersonating())}),d.\u0275\u0275pipe(3,"translate"),d.\u0275\u0275element(4,"i",4),d.\u0275\u0275elementEnd()()()}2&_&&(d.\u0275\u0275advance(2),d.\u0275\u0275propertyInterpolate("ngbTooltip",d.\u0275\u0275pipeBind1(3,1,"nav.stop-impersonating")))}let m=(()=>{class _{constructor(E,O,b){this.elRef=E,this.store=O,this.authService=b,this.subscriptions=[]}ngOnInit(){this.isImpersonating$=this.store.pipe((0,t.Ys)(i.$8)).pipe((0,o.U)(E=>E&&this.authService.isImpersonating())),this.subscriptions.push(this.isImpersonating$.subscribe(E=>{E?this.elRef.nativeElement.classList.remove("d-none"):this.elRef.nativeElement.classList.add("d-none")}))}stopImpersonating(){this.authService.stopImpersonatingAndRefresh()}}return _.\u0275fac=function(E){return new(E||_)(d.\u0275\u0275directiveInject(d.ElementRef),d.\u0275\u0275directiveInject(t.yh),d.\u0275\u0275directiveInject(n.e8))},_.\u0275cmp=d.\u0275\u0275defineComponent({type:_,selectors:[["ds-impersonate-navbar"]],decls:2,vars:3,consts:[["class","navbar-nav",4,"ngIf"],[1,"navbar-nav"],[1,"nav-item"],[1,"btn","btn-sm","btn-dark",3,"ngbTooltip","click"],[1,"fa","fa-user-secret"]],template:function(E,O){1&E&&(d.\u0275\u0275template(0,h,5,3,"ul",0),d.\u0275\u0275pipe(1,"async")),2&E&&d.\u0275\u0275property("ngIf",d.\u0275\u0275pipeBind1(1,1,O.isImpersonating$))},dependencies:[r.O5,a._L,r.Ov,p.X$],encapsulation:2}),_})()},1129:(R,c,e)=>{"use strict";e.d(c,{Q:()=>P});var t=e(94650),n=e(24006),o=e(28538),i=e(51121),d=e(8041),r=e(24702),a=e(83616),p=e(36895),h=e(91538),m=e(34159),_=e(90059),v=e(89383);function E(D,l){if(1&D){const C=t.\u0275\u0275getCurrentView();t.\u0275\u0275elementStart(0,"div")(1,"button",8,9),t.\u0275\u0275listener("click",function(){const B=t.\u0275\u0275restoreView(C).$implicit,L=t.\u0275\u0275nextContext();return t.\u0275\u0275resetView(L.onClickSuggestion(B))}),t.\u0275\u0275element(3,"ds-listable-object-component-loader",10),t.\u0275\u0275elementEnd()()}if(2&D){const C=l.$implicit,I=t.\u0275\u0275nextContext();t.\u0275\u0275advance(3),t.\u0275\u0275property("object",C)("viewMode",I.viewMode)("linkType",I.linkTypes.None)}}const O=function(D){return{"is-invalid":D}},b=function(){return{standalone:!0}},M=function(D){return{show:D}};let P=(()=>{class D extends o.o{constructor(C){super(),this.dsoNameService=C,this.viewMode=i.w.ListElement,this.linkTypes=d.m,this.suggestions=[]}onSubmit(C){(0,r.Uh)(C)&&(this.value=this.dsoNameService.getName(C),this.currentObject=C,this.submitSuggestion.emit(C))}onClickSuggestion(C){return this.value=this.dsoNameService.getName(C),this.currentObject=C,this.clickSuggestion.emit(C),this.close(),this.blockReopen=!0,this.queryInput.nativeElement.focus(),!1}}return D.\u0275fac=function(C){return new(C||D)(t.\u0275\u0275directiveInject(a._))},D.\u0275cmp=t.\u0275\u0275defineComponent({type:D,selectors:[["ds-dso-input-suggestions"]],inputs:{suggestions:"suggestions"},features:[t.\u0275\u0275ProvidersFeature([{provide:n.JU,useExisting:(0,t.forwardRef)(()=>D),multi:!0}]),t.\u0275\u0275InheritDefinitionFeature],decls:11,vars:19,consts:[[3,"action","ngSubmit","keydown.arrowdown","keydown.arrowup","keydown.esc","dsClickOutside"],["form","ngForm"],["type","text","autocomplete","off",1,"form-control","suggestion_input","mb-2",3,"ngModel","name","ngClass","dsDebounce","placeholder","ngModelOptions","ngModelChange","onDebounce"],["inputField",""],["type","submit",1,"sr-only"],[1,"autocomplete","dropdown-menu",3,"ngClass"],[1,"dropdown-list"],[4,"ngFor","ngForOf"],[1,"d-block","dropdown-item",3,"click"],["suggestion",""],[3,"object","viewMode","linkType"]],template:function(C,I){1&C&&(t.\u0275\u0275elementStart(0,"form",0,1),t.\u0275\u0275listener("ngSubmit",function(){return I.onSubmit(I.currentObject)})("keydown.arrowdown",function(B){return I.shiftFocusDown(B)})("keydown.arrowup",function(B){return I.shiftFocusUp(B)})("keydown.esc",function(){return I.close()})("dsClickOutside",function(){return I.close()}),t.\u0275\u0275elementStart(2,"input",2,3),t.\u0275\u0275listener("ngModelChange",function(B){return I.value=B})("onDebounce",function(B){return I.find(B)}),t.\u0275\u0275elementEnd(),t.\u0275\u0275elementStart(4,"button",4),t.\u0275\u0275text(5),t.\u0275\u0275pipe(6,"translate"),t.\u0275\u0275elementEnd(),t.\u0275\u0275elementStart(7,"div",5),t.\u0275\u0275pipe(8,"async"),t.\u0275\u0275elementStart(9,"div",6),t.\u0275\u0275template(10,E,4,3,"div",7),t.\u0275\u0275elementEnd()()()),2&C&&(t.\u0275\u0275property("action",I.action,t.\u0275\u0275sanitizeUrl),t.\u0275\u0275advance(2),t.\u0275\u0275property("ngModel",I.value)("name",I.name)("ngClass",t.\u0275\u0275pureFunction1(14,O,!I.valid))("dsDebounce",I.debounceTime)("placeholder",I.placeholder)("ngModelOptions",t.\u0275\u0275pureFunction0(16,b)),t.\u0275\u0275advance(3),t.\u0275\u0275textInterpolate1(" ",t.\u0275\u0275pipeBind1(6,10,"search.filters.search.submit")," "),t.\u0275\u0275advance(2),t.\u0275\u0275property("ngClass",t.\u0275\u0275pureFunction1(17,M,t.\u0275\u0275pipeBind1(8,12,I.show)&&I.isNotEmpty(I.suggestions))),t.\u0275\u0275advance(3),t.\u0275\u0275property("ngForOf",I.suggestions))},dependencies:[p.mk,p.sg,n._Y,n.Fj,n.JJ,n.JL,n.On,n.F,h.p,m.q,_._,p.Ov,v.X$],styles:[".autocomplete[_ngcontent-%COMP%]{width:100%}.autocomplete[_ngcontent-%COMP%] .dropdown-item[_ngcontent-%COMP%]{white-space:normal;word-break:break-word;padding:var(--bs-input-padding-y) var(--bs-input-padding-x)}.autocomplete[_ngcontent-%COMP%] .dropdown-item[_ngcontent-%COMP%]:focus{outline:none}form[_ngcontent-%COMP%]{position:relative}"]}),D})()},14637:(R,c,e)=>{"use strict";e.d(c,{g:()=>b});var t=e(94650),n=e(24006),o=e(28538),i=e(36895),d=e(34159),r=e(90059),a=e(89383);function p(M,P){1&M&&t.\u0275\u0275elementContainer(0)}function h(M,P){if(1&M&&(t.\u0275\u0275elementStart(0,"label",9)(1,"span",10),t.\u0275\u0275text(2),t.\u0275\u0275elementEnd(),t.\u0275\u0275template(3,p,1,0,"ng-container",11),t.\u0275\u0275elementEnd()),2&M){const D=t.\u0275\u0275nextContext(),l=t.\u0275\u0275reference(5);t.\u0275\u0275advance(2),t.\u0275\u0275textInterpolate1(" ",D.label," "),t.\u0275\u0275advance(1),t.\u0275\u0275property("ngTemplateOutlet",l)}}const m=function(M){return{"is-invalid":M}},_=function(){return{standalone:!0}};function v(M,P){if(1&M){const D=t.\u0275\u0275getCurrentView();t.\u0275\u0275elementStart(0,"input",12,13),t.\u0275\u0275listener("ngModelChange",function(C){t.\u0275\u0275restoreView(D);const I=t.\u0275\u0275nextContext();
1return t.\u0275\u0275resetView(I.value=C)})("onDebounce",function(C){t.\u0275\u0275restoreView(D);const I=t.\u0275\u0275nextContext();return t.\u0275\u0275resetView(I.find(C))}),t.\u0275\u0275elementEnd()}if(2&M){const D=t.\u0275\u0275nextContext();t.\u0275\u0275property("ngModel",D.value)("name",D.name)("ngClass",t.\u0275\u0275pureFunction1(6,m,!D.valid))("dsDebounce",D.debounceTime)("placeholder",D.placeholder)("ngModelOptions",t.\u0275\u0275pureFunction0(8,_))}}function E(M,P){if(1&M){const D=t.\u0275\u0275getCurrentView();t.\u0275\u0275elementStart(0,"div")(1,"a",14,15),t.\u0275\u0275listener("click",function(){const I=t.\u0275\u0275restoreView(D).$implicit,g=t.\u0275\u0275nextContext();return t.\u0275\u0275resetView(g.onClickSuggestion(I))}),t.\u0275\u0275element(3,"span",16),t.\u0275\u0275elementEnd()()}if(2&M){const D=P.$implicit;t.\u0275\u0275advance(3),t.\u0275\u0275property("innerHTML",D.displayValue,t.\u0275\u0275sanitizeHtml)}}const O=function(M){return{show:M}};let b=(()=>{class M extends o.o{constructor(){super(...arguments),this.suggestions=[]}onSubmit(D){this.value=D,this.submitSuggestion.emit(D)}onClickSuggestion(D){return this.value=D.value,this.clickSuggestion.emit(D),this.close(),this.blockReopen=!0,this.queryInput.nativeElement.focus(),!1}}return M.\u0275fac=function(){let P;return function(l){return(P||(P=t.\u0275\u0275getInheritedFactory(M)))(l||M)}}(),M.\u0275cmp=t.\u0275\u0275defineComponent({type:M,selectors:[["ds-filter-input-suggestions"]],inputs:{suggestions:"suggestions"},features:[t.\u0275\u0275ProvidersFeature([{provide:n.JU,useExisting:(0,t.forwardRef)(()=>M),multi:!0}]),t.\u0275\u0275InheritDefinitionFeature],decls:13,vars:12,consts:[[3,"action","ngSubmit","keydown","keydown.arrowdown","keydown.arrowup","keydown.esc","dsClickOutside"],["form","ngForm"],[1,"form-group","mb-0"],["class","mb-0",4,"ngIf","ngIfElse"],["searchInput",""],["type","submit",1,"sr-only"],[1,"autocomplete","dropdown-menu",3,"ngClass"],[1,"dropdown-list"],[4,"ngFor","ngForOf"],[1,"mb-0"],[1,"font-weight-bold"],[4,"ngTemplateOutlet"],["type","text","autocomplete","off",1,"form-control","suggestion_input",3,"ngModel","name","ngClass","dsDebounce","placeholder","ngModelOptions","ngModelChange","onDebounce"],["inputField",""],["href","javascript:void(0);",1,"d-block","dropdown-item",3,"click"],["suggestion",""],[3,"innerHTML"]],template:function(D,l){if(1&D&&(t.\u0275\u0275elementStart(0,"form",0,1),t.\u0275\u0275listener("ngSubmit",function(){return l.onSubmit(l.value)})("keydown",function(I){return l.onKeydown(I)})("keydown.arrowdown",function(I){return l.shiftFocusDown(I)})("keydown.arrowup",function(I){return l.shiftFocusUp(I)})("keydown.esc",function(){return l.close()})("dsClickOutside",function(){return l.close()}),t.\u0275\u0275elementStart(2,"div",2),t.\u0275\u0275template(3,h,4,2,"label",3),t.\u0275\u0275elementEnd(),t.\u0275\u0275template(4,v,2,9,"ng-template",null,4,t.\u0275\u0275templateRefExtractor),t.\u0275\u0275elementStart(6,"button",5),t.\u0275\u0275text(7),t.\u0275\u0275pipe(8,"translate"),t.\u0275\u0275elementEnd(),t.\u0275\u0275elementStart(9,"div",6),t.\u0275\u0275pipe(10,"async"),t.\u0275\u0275elementStart(11,"div",7),t.\u0275\u0275template(12,E,4,1,"div",8),t.\u0275\u0275elementEnd()()()),2&D){const C=t.\u0275\u0275reference(5);t.\u0275\u0275property("action",l.action,t.\u0275\u0275sanitizeUrl),t.\u0275\u0275advance(3),t.\u0275\u0275property("ngIf",l.label)("ngIfElse",C),t.\u0275\u0275advance(4),t.\u0275\u0275textInterpolate1(" ",t.\u0275\u0275pipeBind1(8,6,"search.filters.search.submit")," "),t.\u0275\u0275advance(2),t.\u0275\u0275property("ngClass",t.\u0275\u0275pureFunction1(10,O,t.\u0275\u0275pipeBind1(10,8,l.show)&&l.isNotEmpty(l.suggestions))),t.\u0275\u0275advance(3),t.\u0275\u0275property("ngForOf",l.suggestions)}},dependencies:[i.mk,i.sg,i.O5,i.tP,n._Y,n.Fj,n.JJ,n.JL,n.On,n.F,d.q,r._,i.Ov,a.X$],styles:[".autocomplete[_ngcontent-%COMP%]{width:100%}.autocomplete[_ngcontent-%COMP%] .dropdown-item[_ngcontent-%COMP%]{white-space:normal;word-break:break-word;padding:var(--bs-input-padding-y) var(--bs-input-padding-x)}.autocomplete[_ngcontent-%COMP%] .dropdown-item[_ngcontent-%COMP%]:focus{outline:none}form[_ngcontent-%COMP%]{position:relative}"]}),M})()},28538:(R,c,e)=>{"use strict";e.d(c,{o:()=>b});var t=e(94650),n=e(61135),o=e(24702),i=e(36895),d=e(24006),r=e(34159),a=e(90059),p=e(89383);const h=["inputField"],m=["suggestion"];function _(M,P){if(1&M){const D=t.\u0275\u0275getCurrentView();t.\u0275\u0275elementStart(0,"div")(1,"a",8,9),t.\u0275\u0275listener("click",function(){const I=t.\u0275\u0275restoreView(D).$implicit,g=t.\u0275\u0275nextContext();
1return t.\u0275\u0275resetView(g.onClickSuggestion(I.value))}),t.\u0275\u0275element(3,"span",10),t.\u0275\u0275elementEnd()()}if(2&M){const D=P.$implicit;t.\u0275\u0275advance(3),t.\u0275\u0275property("innerHTML",D.displayValue,t.\u0275\u0275sanitizeHtml)}}const v=function(M){return{"is-invalid":M}},E=function(){return{standalone:!0}},O=function(M){return{show:M}};let b=(()=>{class M{constructor(){this.suggestions=[],this.debounceTime=500,this.placeholder="",this.valid=!0,this.label="",this.submitSuggestion=new t.EventEmitter,this.clickSuggestion=new t.EventEmitter,this.typeSuggestion=new t.EventEmitter,this.findSuggestions=new t.EventEmitter,this.show=new n.X(!1),this.selectedIndex=-1,this.blockReopen=!1,this.disabled=!1,this.propagateChange=D=>{},this.propagateTouch=D=>{}}ngOnChanges(D){(0,o.Uh)(D.suggestions)&&this.show.next((0,o.UE)(D.suggestions.currentValue)&&!D.suggestions.firstChange)}shiftFocusUp(D){D.preventDefault(),this.selectedIndex>0?(this.selectedIndex--,this.selectedIndex=(this.selectedIndex+this.resultViews.length)%this.resultViews.length):this.selectedIndex=this.resultViews.length-1,this.changeFocus()}shiftFocusDown(D){D.preventDefault(),this.selectedIndex>=0?(this.selectedIndex++,this.selectedIndex%=this.resultViews.length):this.selectedIndex=0,this.changeFocus()}changeFocus(){this.resultViews.length>0&&this.resultViews.toArray()[this.selectedIndex].nativeElement.focus()}onKeydown(D){"Enter"!==D.key&&this.queryInput.nativeElement.focus()}close(){this.show.next(!1)}open(){this.blockReopen||this.show.next(!0)}isNotEmpty(D){return(0,o.UE)(D)}onSubmit(D){}onClickSuggestion(D){}find(D){this.blockReopen||(this.findSuggestions.emit(D),this.typeSuggestion.emit(D)),this.blockReopen=!1}registerOnChange(D){this.propagateChange=D}registerOnTouched(D){this.propagateTouch=D}setDisabledState(D){this.disabled=D}writeValue(D){this.value=D}get value(){return this._value}
1set value(D){this._value=D,this.propagateChange(this._value)}}return M.\u0275fac=function(D){return new(D||M)},M.\u0275cmp=t.\u0275\u0275defineComponent({type:M,selectors:[["ds-input-suggestions"]],viewQuery:function(D,l){if(1&D&&(t.\u0275\u0275viewQuery(h,5),t.\u0275\u0275viewQuery(m,5)),2&D){let C;t.\u0275\u0275queryRefresh(C=t.\u0275\u0275loadQuery())&&(l.queryInput=C.first),t.\u0275\u0275queryRefresh(C=t.\u0275\u0275loadQuery())&&(l.resultViews=C)}},inputs:{suggestions:"suggestions",debounceTime:"debounceTime",placeholder:"placeholder",action:"action",name:"name",valid:"valid",label:"label",disabled:"disabled"},outputs:{submitSuggestion:"submitSuggestion",clickSuggestion:"clickSuggestion",typeSuggestion:"typeSuggestion",findSuggestions:"findSuggestions"},features:[t.\u0275\u0275NgOnChangesFeature],decls:11,vars:19,consts:[[3,"action","ngSubmit","keydown","keydown.arrowdown","keydown.arrowup","keydown.esc","dsClickOutside"],["form","ngForm"],["type","text","autocomplete","off",1,"form-control","suggestion_input",3,"ngModel","name","ngClass","dsDebounce","placeholder","ngModelOptions","ngModelChange","onDebounce"],["inputField",""],["type","submit",1,"sr-only"],[1,"autocomplete","dropdown-menu",3,"ngClass"],[1,"dropdown-list"],[4,"ngFor","ngForOf"],["href","javascript:void(0);",1,"d-block","dropdown-item",3,"click"],["suggestion",""],[3,"innerHTML"]],template:function(D,l){1&D&&(t.\u0275\u0275elementStart(0,"form",0,1),t.\u0275\u0275listener("ngSubmit",function(){return l.onSubmit(l.value)})("keydown",function(I){return l.onKeydown(I)})("keydown.arrowdown",function(I){return l.shiftFocusDown(I)})("keydown.arrowup",function(I){return l.shiftFocusUp(I)})("keydown.esc",function(){return l.close()})("dsClickOutside",function(){return l.close()}),t.\u0275\u0275elementStart(2,"input",2,3),t.\u0275\u0275listener("ngModelChange",function(I){return l.value=I})("onDebounce",function(I){return l.find(I)}),t.\u0275\u0275elementEnd(),t.\u0275\u0275elementStart(4,"button",4),t.\u0275\u0275text(5),t.\u0275\u0275pipe(6,"translate"),t.\u0275\u0275elementEnd(),t.\u0275\u0275elementStart(7,"div",5),t.\u0275\u0275pipe(8,"async"),t.\u0275\u0275elementStart(9,"div",6),t.\u0275\u0275template(10,_,4,1,"div",7),t.\u0275\u0275elementEnd()()()),2&D&&(t.\u0275\u0275property("action",l.action,t.\u0275\u0275sanitizeUrl),t.\u0275\u0275advance(2),t.\u0275\u0275property("ngModel",l.value)("name",l.name)("ngClass",t.\u0275\u0275pureFunction1(14,v,!l.valid))("dsDebounce",l.debounceTime)("placeholder",l.placeholder)("ngModelOptions",t.\u0275\u0275pureFunction0(16,E)),t.\u0275\u0275advance(3),t.\u0275\u0275textInterpolate1(" ",t.\u0275\u0275pipeBind1(6,10,"search.filters.search.submit")," "),t.\u0275\u0275advance(2),t.\u0275\u0275property("ngClass",t.\u0275\u0275pureFunction1(17,O,t.\u0275\u0275pipeBind1(8,12,l.show)&&l.isNotEmpty(l.suggestions))),t.\u0275\u0275advance(3),t.\u0275\u0275property("ngForOf",l.suggestions))},dependencies:[i.mk,i.sg,d._Y,d.Fj,d.JJ,d.JL,d.On,d.F,r.q,a._,i.Ov,p.X$],encapsulation:2}),M})()},93963:(R,c,e)=>{"use strict";e.r(c),e.d(c,{LangSwitchComponent:()=>h});var t=e(21540),n=e(93078),o=e(94650),i=e(89383),d=e(36895),r=e(9769);function a(m,_){if(1&m){const v=o.\u0275\u0275getCurrentView();o.\u0275\u0275elementStart(0,"li",6,7),o.\u0275\u0275listener("keyup.enter",function(){const b=o.\u0275\u0275restoreView(v).$implicit,M=o.\u0275\u0275nextContext(2);return o.\u0275\u0275resetView(M.useLang(b))})("click",function(){const b=o.\u0275\u0275restoreView(v).$implicit,M=o.\u0275\u0275nextContext(2);return o.\u0275\u0275resetView(M.useLang(b))}),o.\u0275\u0275text(2),o.\u0275\u0275elementEnd()}if(2&m){const v=_.$implicit,E=o.\u0275\u0275nextContext(2);o.\u0275\u0275classProp("active",v===E.translate.currentLang),o.\u0275\u0275advance(2),o.\u0275\u0275textInterpolate1(" ",E.langLabel(v)," ")}}function p(m,_){if(1&m&&(o.\u0275\u0275elementStart(0,"div",1)(1,"a",2),o.\u0275\u0275listener("click",function(E){return E.preventDefault()}),o.\u0275\u0275pipe(2,"translate"),o.\u0275\u0275pipe(3,"translate"),o.\u0275\u0275element(4,"i",3),o.\u0275\u0275elementEnd(),o.\u0275\u0275elementStart(5,"ul",4),o.\u0275\u0275pipe(6,"translate"),o.\u0275\u0275template(7,a,3,3,"li",5),o.\u
10275\u0275elementEnd()()),2&m){const v=o.\u0275\u0275nextContext();o.\u0275\u0275advance(1),o.\u0275\u0275property("title",o.\u0275\u0275pipeBind1(3,6,"nav.language")),o.\u0275\u0275attribute("aria-label",o.\u0275\u0275pipeBind1(2,4,"nav.language")),o.\u0275\u0275advance(4),o.\u0275\u0275attribute("aria-label",o.\u0275\u0275pipeBind1(6,8,"nav.language")),o.\u0275\u0275advance(2),o.\u0275\u0275property("ngForOf",v.translate.getLangs())}}let h=(()=>{class m{constructor(v,E,O){this.el=v,this.translate=E,this.localeService=O}ngOnInit(){this.activeLangs=t.N.languages.filter(v=>!0===v.active),this.moreThanOneLanguage=this.activeLangs.length>1,this.moreThanOneLanguage||this.el.nativeElement.parentElement.classList.add("d-none")}currentLangLabel(){return this.activeLangs.find(v=>v.code===this.translate.currentLang).label}langLabel(v){return this.activeLangs.find(E=>E.code===v).label}useLang(v){this.localeService.setCurrentLanguageCode(v),this.localeService.refreshAfterChangeLanguage()}}return m.\u0275fac=function(v){return new(v||m)(o.\u0275\u0275directiveInject(o.ElementRef),o.\u0275\u0275directiveInject(i.sK),o.\u0275\u0275directiveInject(n.OL))},m.\u0275cmp=o.\u0275\u0275defineComponent({type:m,selectors:[["ds-lang-switch"]],decls:1,vars:1,consts:[["ngbDropdown","","class","navbar-nav","display","dynamic","placement","bottom-right",4,"ngIf"],["ngbDropdown","","display","dynamic","placement","bottom-right",1,"navbar-nav"],["href","javascript:void(0);","role","menuitem","aria-controls","language-menu-list","aria-haspopup","menu","data-toggle","dropdown","ngbDropdownToggle","","data-test","lang-switch","tabindex","0",2,"color","#fff",3,"title","click"],[1,"fas","fa-globe-asia","fa-lg","fa-fw"],["ngbDropdownMenu","","id","language-menu-list","role","menu",1,"dropdown-menu"],["class","dropdown-item","tabindex","0","role","menuitem",3,"active","keyup.enter","click",4,"ngFor","ngForOf"],["tabindex","0","role","menuitem",1,"dropdown-item",3,"keyup.enter","click"],["langSelect",""]],template:function(v,E){1&v&&o.\u0275\u0275template(0,p,8,10,"div",0),2&v&&o.\u0275\u0275property("ngIf",E.moreThanOneLanguage)},dependencies:[d.sg,d.O5,r.jt,r.iD,r.Vi,i.X$],styles:[".dropdown-toggle[_ngcontent-%COMP%]:after{display:none}.dropdown-toggle[_ngcontent-%COMP%]{color:var(--ds-header-icon-color)}.dropdown-toggle[_ngcontent-%COMP%]:hover, .dropdown-toggle[_ngcontent-%COMP%]:focus{color:var(--ds-header-icon-color-hover)}a[_ngcontent-%COMP%]{color:#fff}.dropdown-item[_ngcontent-%COMP%]{cursor:pointer}"]}),m})()},89260:(R,c,e)=>{"use strict";e.d(c,{$:()=>d});var t=e(25330),n=e(94650);function o(r,a){}const i=["*"];let d=(()=>{class r extends t.F{getComponentName(){return"LangSwitchComponent"}importThemedComponent(p){return e(86251)(`./${p}/app/shared/lang-switch/lang-switch.component`)}importUnthemedComponent(){return Promise.resolve().then(e.bind(e,93963))}}return r.\u0275fac=function(){let a;return function(h){return(a||(a=n.\u0275\u0275getInheritedFactory(r)))(h||r)}}(),r.\u0275cmp=n.\u0275\u0275defineComponent({type:r,selectors:[["ds-themed-lang-switch"]],features:[n.\u0275\u0275InheritDefinitionFeature],ngContentSelectors:i,decls:5,vars:0,consts:[["vcr",""],["content",""]],template:function(p,h){1&p&&(n.\u0275\u0275projectionDef(),n.\u0275\u0275template(0,o,0,0,"ng-template",null,0,n.\u0275\u0275templateRefExtractor),n.\u0275\u0275elementStart(2,"div",null,1),n.\u0275\u0275projection(4),n.\u0275\u0275elementEnd())},encapsulation:2}),r})()},32162:(R,c,e)=>{"use strict";e.d(c,{U:()=>r});var t=e(68499),n=e(94650),o=e(36895);function i(a,p){if(1&a&&(n.\u0275\u0275elementStart(0,"div",2),n.\u0275\u0275text(1),n.\u0275\u0275elementEnd()),2&a){const h=p.$implicit;n.\u0275\u0275advance(1),n.\u0275\u0275textInterpolate(h)}}const d=function(a){return{"visually-hidden":a}};let r=(()=>{class a{constructor(h){this.liveRegionService=h}ngOnInit(){this.isVisible=this.liveRegionService.getLiveRegionVisibility(),this.messages$=this.liveRegionService.getMessages$()}}return a.\u0275fac=function(h){return new(h||a)(n.\u0275\u0275directiveInject(t.C))}
1,a.\u0275cmp=n.\u0275\u0275defineComponent({type:a,selectors:[["ds-live-region"]],decls:3,vars:6,consts:[["aria-live","assertive","role","log","aria-relevant","additions","aria-atomic","true",1,"live-region",3,"ngClass"],["class","live-region-message",4,"ngFor","ngForOf"],[1,"live-region-message"]],template:function(h,m){1&h&&(n.\u0275\u0275elementStart(0,"div",0),n.\u0275\u0275template(1,i,2,1,"div",1),n.\u0275\u0275pipe(2,"async"),n.\u0275\u0275elementEnd()),2&h&&(n.\u0275\u0275property("ngClass",n.\u0275\u0275pureFunction1(4,d,!m.isVisible)),n.\u0275\u0275advance(1),n.\u0275\u0275property("ngForOf",n.\u0275\u0275pipeBind1(2,2,m.messages$)))},dependencies:[o.mk,o.sg,o.Ov],styles:[".live-region[_ngcontent-%COMP%]{position:fixed;bottom:0;left:0;right:0;padding-left:60px;height:90px;line-height:18px;color:var(--bs-white);background-color:var(--bs-dark);opacity:.94;z-index:var(--ds-live-region-z-index)}"]}),a})()},68499:(R,c,e)=>{"use strict";e.d(c,{C:()=>d});var t=e(61135),n=e(21540),o=e(94650),i=e(18205);let d=(()=>{class r{constructor(p){this.uuidService=p,this.messageTimeOutDurationMs=n.N.liveRegion.messageTimeOutDurationMs,this.messages=[],this.messages$=new t.X([]),this.liveRegionIsVisible=n.N.liveRegion.isVisible}getMessages(){return this.messages.map(p=>p.message)}getMessages$(){return this.messages$}addMessage(p){const h=this.uuidService.generate();return this.messages.push({message:p,uuid:h}),setTimeout(()=>this.clearMessageByUUID(h),this.messageTimeOutDurationMs),this.emitCurrentMessages(),h}clear(){this.messages=[],this.emitCurrentMessages()}clearMessageByUUID(p){const h=this.messages.findIndex(m=>m.uuid===p);-1!==h&&(this.messages.splice(h,1),this.emitCurrentMessages())}emitCurrentMessages(){this.messages$.next(this.getMessages())}getLiveRegionVisibility(){return this.liveRegionIsVisible}setLiveRegionVisibility(p){this.liveRegionIsVisible=p}getMessageTimeOutMs(){return this.messageTimeOutDurationMs}setMessageTimeOutMs(p){this.messageTimeOutDurationMs=p}}return r.\u0275fac=function(p){return new(p||r)(o.\u0275\u0275inject(i._))},r.\u0275prov=o.\u0275\u0275defineInjectable({token:r,factory:r.\u0275fac,providedIn:"root"}),r})()},45863:(R,c,e)=>{"use strict";e.r(c),e.d(c,{LoadingComponent:()=>p});var t=e(24702),n=e(94650),o=e(89383),i=e(36895);function d(h,m){if(1&h&&(n.\u0275\u0275elementStart(0,"label",14),n.\u0275\u0275text(1),n.\u0275\u0275elementEnd()),2&h){const _=n.\u0275\u0275nextContext(2);n.\u0275\u0275advance(1),n.\u0275\u0275textInterpolate(_.message)}}function r(h,m){if(1&h&&(n.\u0275\u0275elementStart(0,"div"),n.\u0275\u0275template(1,d,2,1,"label",2),n.\u0275\u0275elementStart(2,"div",3),n.\u0275\u0275element(3,"span",4)(4,"span",5)(5,"span",6)(6,"span",7)(7,"span",8)(8,"span",9)(9,"span",10)(10,"span",11)(11,"span",12)(12,"span",13),n.\u0275\u0275elementEnd()()),2&h){const _=n.\u0275\u0275nextContext();n.\u0275\u0275advance(1),n.\u0275\u0275property("ngIf",_.showMessage&&_.message)}}function a(h,m){if(1&h&&(n.\u0275\u0275elementStart(0,"div",15)(1,"span",16),n.\u0275\u0275text(2),n.\u0275\u0275elementEnd()()),2&h){const _=n.\u0275\u0275nextContext();n.\u0275\u0275advance(2),n.\u0275\u0275textInterpolate(_.message)}}let p=(()=>{class h{constructor(_){this.translate=_,this.showMessage=!0,this.spinner=!1}ngOnInit(){void 0===this.message&&(this.subscription=this.translate.get("loading.default").subscribe(_=>{this.message=_}))}ngOnDestroy(){(0,t.Uh)(this.subscription)&&this.subscription.unsubscribe()}}return h.\u0275fac=function(_){return new(_||h)(n.\u0275\u0275directiveInject(o.sK))},h.\u0275cmp=n.\u0275\u0275defineComponent({type:h,selectors:[["ds-loading"]],inputs:{message:"message",showMessage:"showMessage",spinner:"spinner"},decls:2,vars:2,consts:[[4,"ngIf"],["class","spinner spinner-border","role","status","aria-live","polite",4,"ngIf"],["aria-live","polite",4,"ngIf"],["aria-hidden","true",1,"loader"],[1,"l-1"],[1,"l-2"],[1,"l-3"],[1,"l-4"],[1,"l-5"],[1,"l-6"],[1,"l-7"],[1,"l-8"],[1,"l-9"],[1,"l-10"],["aria-live","polite"],["role","status","aria-live","polite",1,"spinner","spinner-border"],[1,"sr-only"]],template:function(_,v){1&_&&(n.\u0275\u0275template(0,r,13,1,"div",0),n.\u0275\u0275template(1,a,3,1,"div",1)),2&_&&(n.\u0275\u0275property("ngIf",!v.spinner),n.\u0275\u0275advance(1),n.\u0275\u0275property("ngIf",v.spinner))},dependencies:[i.O5],styles:[".loader[_ngcontent-%COMP%]{margin:0 25px}span[_ngcontent-%COMP%]{display:block;margin:0 auto}span[class*=l-][_ngcontent-%COMP%]{height:4px;width:4px;background:#000;display:inline-block;margin:12px 2px;border-radius:100%;-webkit-border-radius:100%;-moz-border-radius:100%;-webkit-animation:_ngcontent-%COMP%_loader 2s infinite;-webkit-animation-timing-function:cubic-bezier(.03,.615,.995,.415);-webkit-animation-fill-mode:both;-moz-animation:loader 2s infinite;-moz-animation-timing-function:cubic-bezier(.03,.615,.995,.415);-moz-animation-fill-mode:both;-ms-animation:loader 2s infinite;-ms-animation-timing-function:cubic-bezier(.03,.615,.995,.415);-ms-animation-fill-mode:both;animation:_ngcontent-%COMP%_loader 2s infinite;animation-timing-function:cubic-bezier(.03,.615,.995,.415);animation-fill-mode:both}span.l-1[_ngcontent-%COMP%]{animation-delay:1s;-ms-animation-delay:1s;-moz-animation-delay:1s}
1span.l-2[_ngcontent-%COMP%]{animation-delay:.9s;-ms-animation-delay:.9s;-moz-animation-delay:.9s}span.l-3[_ngcontent-%COMP%]{animation-delay:.8s;-ms-animation-delay:.8s;-moz-animation-delay:.8s}span.l-4[_ngcontent-%COMP%]{animation-delay:.7s;-ms-animation-delay:.7s;-moz-animation-delay:.7s}span.l-5[_ngcontent-%COMP%]{animation-delay:.6s;-ms-animation-delay:.6s;-moz-animation-delay:.6s}span.l-6[_ngcontent-%COMP%]{animation-delay:.5s;-ms-animation-delay:.5s;-moz-animation-delay:.5s}span.l-7[_ngcontent-%COMP%]{animation-delay:.4s;-ms-animation-delay:.4s;-moz-animation-delay:.4s}span.l-8[_ngcontent-%COMP%]{animation-delay:.3s;-ms-animation-delay:.3s;-moz-animation-delay:.3s}span.l-9[_ngcontent-%COMP%]{animation-delay:.2s;-ms-animation-delay:.2s;-moz-animation-delay:.2s}span.l-9[_ngcontent-%COMP%]{animation-delay:.1s;-ms-animation-delay:.1s;-moz-animation-delay:.1s}span.l-10[_ngcontent-%COMP%]{animation-delay:0s;-ms-animation-delay:0s;-moz-animation-delay:0s}@keyframes _ngcontent-%COMP%_loader{0%{transform:translate(-30px);opacity:0}25%{opacity:1}50%{transform:translate(30px);opacity:0}to{opacity:0}}.spinner[_ngcontent-%COMP%]{color:var(--bs-gray-600)}"]}),h})()},48106:(R,c,e)=>{"use strict";e.d(c,{Z:()=>r});var t=e(25330),n=e(55784),o=e(94650);function i(a,p){}const d=["*"];let r=(()=>{class a extends t.F{constructor(h,m){super(h,m),this.cdr=h,this.themeService=m,this.inAndOutputNames=["message","showMessage","spinner"]}getComponentName(){return"LoadingComponent"}importThemedComponent(h){return e(65645)(`./${h}/app/shared/loading/loading.component`)}importUnthemedComponent(){return Promise.resolve().then(e.bind(e,45863))}}return a.\u0275fac=function(h){return new(h||a)(o.\u0275\u0275directiveInject(o.ChangeDetectorRef),o.\u0275\u0275directiveInject(n.fY))},a.\u0275cmp=o.\u0275\u0275defineComponent({type:a,selectors:[["ds-themed-loading"]],inputs:{message:"message",showMessage:"showMessage",spinner:"spinner"},features:[o.\u0275\u0275InheritDefinitionFeature],ngContentSelectors:d,decls:5,vars:0,consts:[["vcr",""],["content",""]],template:function(h,m){1&h&&(o.\u0275\u0275projectionDef(),o.\u0275\u0275template(0,i,0,0,"ng-template",null,0,o.\u0275\u0275templateRefExtractor),o.\u0275\u0275elementStart(2,"div",null,1),o.\u0275\u0275projection(4),o.\u0275\u0275elementEnd())},encapsulation:2}),a})()},81226:(R,c,e)=>{"use strict";e.d(c,{B:()=>d});var t=e(94650),n=e(67589),o=e(36895);function i(r,a){1&r&&t.\u0275\u0275elementContainer(0)}let d=(()=>{class r{constructor(p){this.injector=p}ngOnInit(){this.objectInjector=t.Injector.create({providers:[{provide:"authMethodProvider",useFactory:()=>this.authMethod,deps:[]},{provide:"isStandalonePage",useFactory:()=>this.isStandalonePage,deps:[]}],parent:this.injector})}getAuthMethodContent(){return(0,n.H)(this.authMethod.authMethodType)}}return r.\u0275fac=function(p){return new(p||r)(t.\u0275\u0275directiveInject(t.Injector))},r.\u0275cmp=t.\u0275\u0275defineComponent({type:r,selectors:[["ds-log-in-container"]],inputs:{authMethod:"authMethod",isStandalonePage:"isStandalonePage"},decls:1,vars:2,consts:[[4,"ngComponentOutlet","ngComponentOutletInjector"]],template:function(p,h){1&p&&t.\u0275\u0275template(0,i,1,0,"ng-container",0),2&p&&t.\u0275\u0275property("ngComponentOutlet",h.getAuthMethodContent())("ngComponentOutletInjector",h.objectInjector)},dependencies:[o.$G],styles:["[_nghost-%COMP%] .card{margin-bottom:var(--ds-submission-sections-margin-bottom);overflow:unset}.section-focus[_ngcontent-%COMP%]{border-radius:var(--bs-border-radius);box-shadow:var(--bs-btn-focus-box-shadow)}[_nghost-%COMP%] .card:first-of-type{border-bottom:var(--bs-card-border-width) solid var(--bs-card-border-color)!important;border-bottom-left-radius:var(--bs-card-border-radius)!important;border-bottom-right-radius:var(--bs-card-border-radius)!important}[_nghost-%COMP%] .card-header button{box-shadow:none!important}[_nghost-%COMP%] .card-header button{width:100%}"]}),r})()},4065:(R,c,e)=>{"use strict";e.r(c),e.d(c,{LogInComponent:()=>b});var t=e(54004),n=e(89653),o=e(19168),i=e(24702),d=e(24755),r=e(67589),a=e(94650),p=e(36895),h=e(48106),m=e(81226);function _(M,P){1&M&&a.\u0275\u0275element(0,"ds-themed-loading",2)}function v(M,P){1&M&&a.\u0275\u0275element(0,"div",7)}function E(M,P){if(1&M&&(a.\u0275\u0275elementContainerStart(0),a.\u
10275\u0275element(1,"ds-log-in-container",5),a.\u0275\u0275template(2,v,1,0,"div",6),a.\u0275\u0275elementContainerEnd()),2&M){const D=P.$implicit,l=P.last,C=a.\u0275\u0275nextContext(2);a.\u0275\u0275advance(1),a.\u0275\u0275property("authMethod",D)("isStandalonePage",C.isStandalonePage),a.\u0275\u0275advance(1),a.\u0275\u0275property("ngIf",!l)}}function O(M,P){if(1&M&&(a.\u0275\u0275elementStart(0,"div",3),a.\u0275\u0275template(1,E,3,3,"ng-container",4),a.\u0275\u0275pipe(2,"async"),a.\u0275\u0275elementEnd()),2&M){const D=a.\u0275\u0275nextContext();a.\u0275\u0275advance(1),a.\u0275\u0275property("ngForOf",a.\u0275\u0275pipeBind1(2,1,D.authMethods))}}let b=(()=>{class M{constructor(D,l){this.store=D,this.authService=l}ngOnInit(){this.authMethods=this.store.pipe((0,n.Ys)(o.jd),(0,t.U)(D=>D.filter(l=>void 0!==(0,r.H)(l.authMethodType)).sort((l,C)=>l.position-C.position))),this.loading=this.store.pipe((0,n.Ys)(o.EC)),this.isAuthenticated=this.store.pipe((0,n.Ys)(o.$8)),this.store.pipe((0,n.Ys)(o.Kv)).subscribe(D=>{(0,i.Uh)(D)&&!this.isStandalonePage&&this.authService.clearRedirectUrl()})}}return M.\u0275fac=function(D){return new(D||M)(a.\u0275\u0275directiveInject(n.yh),a.\u0275\u0275directiveInject(d.e8))},M.\u0275cmp=a.\u0275\u0275defineComponent({type:M,selectors:[["ds-log-in"]],inputs:{isStandalonePage:"isStandalonePage"},decls:6,vars:10,consts:[["class","m-5",4,"ngIf"],["class","px-4 py-3 mx-auto login-container",4,"ngIf"],[1,"m-5"],[1,"px-4","py-3","mx-auto","login-container"],[4,"ngFor","ngForOf"],[3,"authMethod","isStandalonePage"],["class","dropdown-divider my-2",4,"ngIf"],[1,"dropdown-divider","my-2"]],template:function(D,l){1&D&&(a.\u0275\u0275template(0,_,1,0,"ds-themed-loading",0),a.\u0275\u0275pipe(1,"async"),a.\u0275\u0275pipe(2,"async"),a.\u0275\u0275template(3,O,3,3,"div",1),a.\u0275\u0275pipe(4,"async"),a.\u0275\u0275pipe(5,"async")),2&D&&(a.\u0275\u0275property("ngIf",a.\u0275\u0275pipeBind1(1,2,l.loading)||a.\u0275\u0275pipeBind1(2,4,l.isAuthenticated)),a.\u0275\u0275advance(3),a.\u0275\u0275property("ngIf",!a.\u0275\u0275pipeBind1(4,6,l.loading)&&!a.\u0275\u0275pipeBind1(5,8,l.isAuthenticated)))},dependencies:[p.sg,p.O5,h.Z,m.B,p.Ov],styles:[".login-container[_ngcontent-%COMP%]{max-width:350px}a[_ngcontent-%COMP%]{white-space:normal;padding:.25rem .75rem}"],changeDetection:0}),M})()},67589:(R,c,e)=>{"use strict";e.d(c,{H:()=>o,J:()=>n});const t=new Map;function n(i){return function(r){r&&t.set(i,r)}}function o(i){return t.get(i)}},50579:(R,c,e)=>{"use strict";e.d(c,{i:()=>d});var t=e(25330),n=e(94650);function o(r,a){}const i=["*"];let d=(()=>{class r extends t.F{constructor(){super(...arguments),this.inAndOutputNames=["isStandalonePage"]}getComponentName(){return"LogInComponent"}importThemedComponent(p){return e(77138)(`./${p}/app/shared/log-in/log-in.component`)}importUnthemedComponent(){return Promise.resolve().then(e.bind(e,4065))}}return r.\u0275fac=function(){let a;return function(h){return(a||(a=n.\u0275\u0275getInheritedFactory(r)))(h||r)}}(),r.\u0275cmp=n.\u0275\u0275defineComponent({type:r,selectors:[["ds-themed-log-in"]],inputs:{isStandalonePage:"isStandalonePage"},features:[n.\u0275\u0275InheritDefinitionFeature],ngContentSelectors:i,decls:5,vars:0,consts:[["vcr",""],["content",""]],template:function(p,h){1&p&&(n.\u0275\u0275projectionDef(),n.\u0275\u0275template(0,o,0,0,"ng-template",null,0,n.\u0275\u0275templateRefExtractor),n.\u0275\u0275elementStart(2,"div",null,1),n.\u0275\u0275projection(4),n.\u0275\u0275elementEnd())},encapsulation:2}),r})()},62185:(R,c,e)=>{"use strict";e.d(c,{P:()=>_});var t=e(89653),n=e(64200),o=e(19168),i=e(28652),d=e(94650),r=e(34793),a=e(36895),p=e(89383),h=e(73579);function m(v,E){if(1&v&&(d.\u0275\u0275elementStart(0,"div",4),d.\u0275\u0275text(1),d.\u0275\u0275pipe(2,"async"),d.\u0275\u0275elementEnd()),2&v){const O=d.\u0275\u0275nextContext();d.\u0275\u0275property("@fadeOut",void 0),d.\u0275\u0275advance(1),d.\u0275\u0275textInterpolate(d.\u0275\u0275pipeBind1(2,2,O.error))}}let _=(()=>{class v{constructor(O,b){this.router=O,this.store=b}ngOnInit(){this.error=this.store.pipe((0,t.Ys)(o.Ky))}home(){this.router.navigate(["/home"])}logOut(){this.store.dispatch(new n.Hj)}}return v.\u0275fac=function(O){return new(O||v)(d.\u0275\u0275directiveInject(r.F0),d.\u0275\u0275directiveInject(t.yh))},v.\u0275cmp=d.\u0275\u0275defineComponent({type:v,selectors:[["ds-log-out"]],decls:8,vars:9,consts:[[1,"form-login","px-4"],["class","alert alert-danger","role","alert",4,"ngIf"],["role","menuitem",1,"btn","btn-lg","btn-primary","btn-block","mt-3",3,"click"],[1,"fas","fa-sign-out-alt"],["role","alert",1,"alert","alert-danger"]],template:function(O,b){1&O&&(d.\u0275\u0275elementStart(0,"div",0),d.\u0275\u0275template(1,m,3,4,"div",1),d.\u0275\u0275pipe(2,"async"),d.\u0275\u0275elementStart(3,"button",2),d.\u0275\u0275listener("click",function(){return b.logOut()}),d.\u0275\u0275pipe(4,"dsBrowserOnly"),d.\u0275\u0275element(5,"i",3),d.\u0275\u0275text(6),d.\u0275\u0275pipe(7,"translate"),d.\u0275\u0275elementEnd()()),2&O&&(d.\u0275\u0275advance(1),d.\u0275\u0275property("ngIf",d.\u0275\u0275pipeBind1(2,3,b.error)),d.\u0275\u0275advance(2),d.\u0275\u0275attribute("data-test",d.\u0275\u0275pipeBind1(4,5,"logout-button")),d.\u0275\u0275advance(3),d.\u0275\u0275textInterpolate1(" ",d.\u0275\u0275pipeBind1(7,7,"logout.form.submit"),""))},dependencies:[a.O5,a.Ov,p.X$,h.g],styles:[".form-login[_ngcontent-%COMP%] .form-control[_ngcontent-%COMP%]:focus{z-index:2}.form-login[_ngcontent-%COMP%] input[type=email][_ngcontent-%COMP%]{margin-bottom:-1px;border-bottom-right-radius:0;border-bottom-left-radius:0}.form-login[_ngcontent-%COMP%] input[type=password][_ngcontent-%COMP%]{border-top-left-radius:0;border-top-right-radius:0}.dropdown-item[_ngcontent-%COMP%]{white-space:normal;padding:.25rem .75rem}"],data:{animation:[i.U6]}}),v})()},78969:(R,c,e)=>{"use strict";e.d(c,{z:()=>t});var t=(()=>{return(n=t||(t={})).ADMIN="admin-sidebar",n.PUBLIC="public",n.DSO_EDIT="dso-edit",t;var n})()},58460:(R,c,e)=>{"use strict";e.d(c,{U:()=>t});var t=(()=>{return(n=t||(t={}))[n.TEXT=0]="TEXT",n[n.LINK=1]="LINK",n[n.ALTMETRIC=2]="ALTMETRIC",n[n.SEARCH=3]="SEARCH",n[n.ONCLICK=4]="ONCLICK",n[n.EXTERNAL=5]="EXTERNAL",t;var n})()},32351:(R,c,e)=>{"use strict";e.d(c,{W:()=>o,x:()=>n});const t=new Map;function n(i){return function(r){r&&t.set(i,r)}}function o(i){return t.get(i)}},9498:(R,c,e)=>{"use strict";e.d(c,{g:()=>d,h:()=>i});var t=e(62921),n=e(24702);const o=new Map;function i(r,a,p=t.t0){return function(m){m&&(o.get(r)||o.set(r,new Map),o.get(r).get(a)||o.get(r).set(a,new Map),o.get(r).get(a).set(p,m))}}function d(r,a,p){const h=o.get(r).get(a).get(p);return(0,n.Uh)(h)?h:o.get(r).get(a).get(t.t0)}},7145:(R,c,e)=>{"use strict";e.d(c,{x:()=>t});class t{constructor(){this.shouldPersistOnRouteChange=!1}}},89359:(R,c,e)=>{"use strict";e.d(c,{q:()=>h});var t=e(94650),n=e(54541),o=e(32351),i=e(24702),d=e(61135),r=e(71884),a=e(63900),p=e(7145);let h=(()=>{class m{constructor(v,E,O){this.section=v,this.menuService=E,this.injector=O,this.active$=new d.X(!1),this.sectionMap$=ne
1w d.X(new Map),this.subs=[]}ngOnInit(){this.subs.push(this.menuService.isSectionActive(this.menuID,this.section.id).pipe((0,r.x)()).subscribe(v=>{this.active$.value!==v&&this.active$.next(v)})),this.initializeInjectorData()}toggleSection(v){v.preventDefault(),this.section.model?.disabled||this.menuService.toggleActiveSection(this.menuID,this.section.id)}activateSection(v,E=!0){E&&v.preventDefault(),this.section.model?.disabled||this.menuService.activateSection(this.menuID,this.section.id)}deactivateSection(v,E=!0){E&&v.preventDefault(),this.menuService.deactivateSection(this.menuID,this.section.id)}initializeInjectorData(){this.updateSectionMap(this.section.id,this.getItemModelInjector(this.section.model),this.getMenuItemComponent(this.section.model)),this.subSections$=this.menuService.getSubSectionsByParentID(this.menuID,this.section.id),this.subs.push(this.subSections$.pipe((0,a.w)(v=>v)).subscribe(v=>{this.updateSectionMap(v.id,this.getItemModelInjector(v.model),this.getMenuItemComponent(v.model))}))}updateSectionMap(v,E,O){const b=this.sectionMap$.getValue();b.set(v,{injector:E,component:O}),this.sectionMap$.next(b)}getMenuItemComponent(v){return(0,i.xI)(v)&&(v=this.section.model),(0,o.W)(v.type)}getItemModelInjector(v){return(0,i.xI)(v)&&(v=this.section.model),t.Injector.create({providers:[{provide:"itemModelProvider",useFactory:()=>v,deps:[]}],parent:this.injector})}ngOnDestroy(){this.subs.filter(v=>(0,i.Uh)(v)).forEach(v=>v.unsubscribe())}}return m.\u0275fac=function(v){return new(v||m)(t.\u0275\u0275directiveInject(p.x),t.\u0275\u0275directiveInject(n.h),t.\u0275\u0275directiveInject(t.Injector))},m.\u0275cmp=t.\u0275\u0275defineComponent({type:m,selectors:[["ds-menu-section"]],decls:0,vars:0,template:function(v,E){},encapsulation:2}),m})()},53342:(R,c,e)=>{"use strict";e.d(c,{$h:()=>v,DP:()=>E,G$:()=>P,Hq:()=>i,Hs:()=>m,Jt:()=>O,KT:()=>D,S0:()=>M,W0:()=>d,XF:()=>b,Zg:()=>a,Zu:()=>p,gi:()=>h,mk:()=>n,tv:()=>o,uk:()=>r});var t=e(79472);const n={COLLAPSE_MENU:(0,t.d)("dspace/menu/COLLAPSE_MENU"),TOGGLE_MENU:(0,t.d)("dspace/menu/TOGGLE_MENU"),EXPAND_MENU:(0,t.d)("dspace/menu/EXPAND_MENU"),SHOW_MENU:(0,t.d)("dspace/menu/SHOW_MENU"),HIDE_MENU:(0,t.d)("dspace/menu/HIDE_MENU"),REINIT_MENUS:(0,t.d)("dspace/menu/REINIT_MENUS"),COLLAPSE_MENU_PREVIEW:(0,t.d)("dspace/menu/COLLAPSE_MENU_PREVIEW"),EXPAND_MENU_PREVIEW:(0,t.d)("dspace/menu/EXPAND_MENU_PREVIEW"),ADD_SECTION:(0,t.d)("dspace/menu-section/ADD_SECTION"),REMOVE_SECTION:(0,t.d)("dspace/menu-section/REMOVE_SECTION"),SHOW_SECTION:(0,t.d)("dspace/menu-section/SHOW_SECTION"),HIDE_SECTION:(0,t.d)("dspace/menu-section/HIDE_SECTION"),ACTIVATE_SECTION:(0,t.d)("dspace/menu-section/ACTIVATE_SECTION"),DEACTIVATE_SECTION:(0,t.d)("dspace/menu-section/DEACTIVATE_SECTION"),TOGGLE_ACTIVE_SECTION:(0,t.d)("dspace/menu-section/TOGGLE_ACTIVE_SECTION")};class o{constructor(C){this.type=n.COLLAPSE_MENU,this.menuID=C}}class i{constructor(C){this.type=n.EXPAND_MENU,this.menuID=C}}class d{constructor(C){this.type=n.TOGGLE_MENU,this.menuID=C}}class r{constructor(C){this.type=n.SHOW_MENU,this.menuID=C}}class a{constructor(C){this.type=n.HIDE_MENU,this.menuID=C}}class p{constructor(C){this.type=n.COLLAPSE_MENU_PREVIEW,this.menuID=C}}class h{constructor(C){this.type=n.EXPAND_MENU_PREVIEW,this.menuID=C}}class m{constructor(){this.type=n.REINIT_MENUS}}class _{constructor(C,I){this.menuID=C,this.id=I}}class v extends _{constructor(C,I){super(C,I.id),this.type=n.ADD_SECTION,this.section=I}}class E extends _{constructor(C,I){super(C,I),this.type=n.REMOVE_SECTION}}class O extends _{constructor(C,I){super(C,I),this.type=n.HIDE_SECTION}}class b extends _{constructor(C,I){super(C,I),this.type=n.SHOW_SECTION}}class M extends _{constructor(C,I){super(C,I),this.type=n.ACTIVATE_SECTION}}class P extends _{constructor(C,I){super(C,I),this.type=n.DEACTIVATE_SECTION}}class D extends _{constructor(C,I){super(C,I),this.type=n.TOGGLE_ACTIVE_SECTION}}},32250:(R,c,e)=>{"use strict";e.d(c,{M:()=>b});var t=e(94650),n=e(61135),o=e(39646),i=e(54541),d=e(63900),r=e(86099),a=e(54004),p=e(71884),h=e(24702),m=e(9498),_=e(19937),v=e(47235),E=e(55784),O=e(34793);let b=(()=>{class M{constructor(D,l,C,I,g){this.menuService=D,this.injector=l,this.authorizationService=C,this.route=I,this.themeService=g,this.sectionMap$=ne
1w n.X(new Map),this.subs=[]}ngOnInit(){this.activatedRouteLastChild=this.getActivatedRoute(this.route),this.menuCollapsed=this.menuService.isMenuCollapsed(this.menuID),this.menuPreviewCollapsed=this.menuService.isMenuPreviewCollapsed(this.menuID),this.menuVisible=this.menuService.isMenuVisible(this.menuID),this.sections=this.menuService.getMenuTopSections(this.menuID),this.subs.push(this.sections.pipe((0,d.w)(D=>D),(0,r.z)(D=>D.id.includes("statistics")?this.getAuthorizedStatistics(D):(0,o.of)(D)),(0,h.iy)(),(0,d.w)(D=>this.getSectionComponent(D).pipe((0,a.U)(l=>({section:D,component:l})))),(0,p.x)((D,l)=>D.section.id===l.section.id&&D.component.prototype===l.component.prototype)).subscribe(({section:D,component:l})=>{const C=this.sectionMap$.getValue();C.set(D.id,{injector:this.getSectionDataInjector(D),component:l}),this.sectionMap$.next(C)}))}getActivatedRoute(D){return D.children.length>0?this.getActivatedRoute(D.firstChild):D}getAuthorizedStatistics(D){return this.activatedRouteLastChild.data.pipe((0,d.w)(l=>this.authorizationService.isAuthorized(v.i.CanViewUsageStatistics,this.getObjectUrl(l)).pipe((0,a.U)(C=>C?D:{}))))}getObjectUrl(D){return(D.site?D.site:D.dso?.payload)?._links?.self?.href}toggle(D){D.preventDefault(),this.menuService.toggleMenu(this.menuID)}expand(D){D.preventDefault(),this.menuService.expandMenu(this.menuID)}collapse(D){D.preventDefault(),this.menuService.collapseMenu(this.menuID)}expandPreview(D){D.preventDefault(),this.previewToggleDebounce(()=>this.menuService.expandMenuPreview(this.menuID),100)}collapsePreview(D){D.preventDefault(),this.previewToggleDebounce(()=>this.menuService.collapseMenuPreview(this.menuID),400)}previewToggleDebounce(D,l){(0,h.Uh)(this.previewTimer)&&clearTimeout(this.previewTimer),this.previewTimer=setTimeout(D,l)}getSectionComponent(D){return this.menuService.hasSubSections(this.menuID,D.id).pipe((0,a.U)(l=>(0,m.g)(this.menuID,l,this.themeService.getThemeName())))}getSectionDataInjector(D){return t.Injector.create({providers:[{provide:"sectionDataProvider",useFactory:()=>D,deps:[]}],parent:this.injector})}ngOnDestroy(){this.subs.filter(D=>(0,h.Uh)(D)).forEach(D=>D.unsubscribe())}}return M.\u0275fac=function(D){return new(D||M)(t.\u0275\u0275directiveInject(i.h),t.\u0275\u0275directiveInject(t.Injector),t.\u0275\u0275directiveInject(_._),t.\u0275\u0275directiveInject(O.gz),t.\u0275\u0275directiveInject(E.fY))},M.\u0275cmp=t.\u0275\u0275defineComponent({type:M,selectors:[["ds-menu"]],decls:0,vars:0,template:function(D,l){},encapsulation:2}),M})()},31367:(R,c,e)=>{"use strict";e.d(c,{$:()=>ae}),e(89359),e(32250);var v,o=e(89383),i=e(34793),d=e(70655),r=e(58460),p=e(32351),h=e(24702),m=e(94650),_=e(36895);const E=function(Q){return{disabled:Q}};let O=((v=class{constructor(j,k){this.router=k,this.item=j}ngOnInit(){this.hasLink=(0,h.UE)(this.item.link)}getRouterLink(){if(this.hasLink)return this.item.link}navigate(j){j.preventDefault(),!this.item.disabled&&this.getRouterLink()&&this.router.navigate([this.getRouterLink()]),j.stopPropagation()}}).\u0275fac=function(j){return new(j||v)(m.\u0275\u0275directiveInject("itemModelProvider"),m.\u0275\u0275directiveInject(i.F0))},v.\u0275cmp=m.\u0275\u0275defineComponent({type:v,selectors:[["ds-link-menu-item"]],decls:3,vars:10,consts:[["role","menuitem","href","javascript:void(0);",1,"ds-menu-item",3,"ngClass","routerLink","queryParams","click","keyup.space","keydown.enter"]],template:function(j,k){1&j&&(m.\u0275\u0275elementStart(0,"a",0),m.\u0275\u0275listener("click",function(ie){return ie.stopPropagation()})("keyup.space",function(ie){return k.navigate(ie)})("keydown.enter",function(ie){return k.navigate(ie)}),m.\u0275\u0275text(1),m.\u0275\u0275pipe(2,"translate"),m.\u0275\u0275elementEnd()),2&j&&(m.\u0275\u0275property("ngClass",m.\u0275\u0275pureFunction1(8,E,!k.hasLink||k.item.disabled))("routerLink",k.getRouterLink())("queryParams",k.item.queryParams),m.\u0275\u0275attribute("aria-disabled",!k.hasLink||k.item.disabled)("data-test","link-menu-item."+k.item.text),m.\u0275\u0275advance(1),m.\u0275\u0275textInterpolate(m.\u0275\u0275pipeBind1(2,6,k.item.text)))},dependencies:[i.rH,_.mk,o.X$],styles:["[_nghost-%COMP%] .ds-menu-item[_ngcontent-%COMP%]{display:inline-block}"]}),v);var M;O=(0,d.__decorate)([(0,p.x)(r.U.LINK),(0,d.__metadata)("design:paramtypes",[class a{constructor(){this.type=r.U.LINK}},i.F0])],O);let P=((M=class{constructor(j){this.item=j}}).\u0275fac=function(j){return new(j||M)(m.\u0275\u0275directiveInject("itemModelProvider"))},M.\u0275cmp=m.\u0275\u0275defineComponent({type:M,selectors:[["ds-text-menu-item"]],decls:3,vars:5,consts:[[1,"ds-menu-item"]],template:function(j,k){1&j&&(m.\u0275\u0275elementStart(0,"span",0),m.\u0275\u0275text(1),m.\u0275\u0275pipe(2,"translate"),m.\u0275\u0275elementEnd()),2&j&&(m.\u0275\u0275classProp("disabled",k.item.disabled),m.\u0275\u0275advance(1),m.\u0275\u0275textInterpolate(m.\u0275\u0275pipeBind1(2,3,k.item.text)))},dependencies:[o.X$],styles:["[_nghost-%COMP%] .ds-menu-item[_ngcontent-%COMP%]{display:inline-block}"]}),M);var l;function C(Q,j){if(1&Q){const k=m.\u0275\u0275getCurrentView();m.\u0275\u0275elementStart(0,"a",2),m.\u0275\u0275listener("click",function(ie){m.\u0275\u0275restoreView(k);const ne=m.\u0275\u0275nextContext();
1return m.\u0275\u0275resetView(ne.activate(ie))})("keyup.space",function(ie){m.\u0275\u0275restoreView(k);const ne=m.\u0275\u0275nextContext();return m.\u0275\u0275resetView(ne.activate(ie))})("keyup.enter",function(ie){m.\u0275\u0275restoreView(k);const ne=m.\u0275\u0275nextContext();return m.\u0275\u0275resetView(ne.activate(ie))}),m.\u0275\u0275pipe(1,"translate"),m.\u0275\u0275text(2),m.\u0275\u0275pipe(3,"translate"),m.\u0275\u0275elementEnd()}if(2&Q){const k=m.\u0275\u0275nextContext();m.\u0275\u0275property("title",m.\u0275\u0275pipeBind1(1,3,k.item.text)),m.\u0275\u0275attribute("data-test",k.item.text),m.\u0275\u0275advance(2),m.\u0275\u0275textInterpolate(m.\u0275\u0275pipeBind1(3,5,k.item.text))}}function I(Q,j){if(1&Q&&(m.\u0275\u0275elementStart(0,"span",3),m.\u0275\u0275text(1),m.\u0275\u0275pipe(2,"translate"),m.\u0275\u0275elementEnd()),2&Q){const k=m.\u0275\u0275nextContext();m.\u0275\u0275attribute("data-test",k.item.text),m.\u0275\u0275advance(1),m.\u0275\u0275textInterpolate(m.\u0275\u0275pipeBind1(2,2,k.item.text))}}P=(0,d.__decorate)([(0,p.x)(r.U.TEXT),(0,d.__metadata)("design:paramtypes",[class b{constructor(){this.type=r.U.TEXT}}])],P);let g=((l=class{constructor(j){this.item=j}activate(j){this.item.disabled||(j.preventDefault(),this.item.function(),j.stopPropagation())}}).\u0275fac=function(j){return new(j||l)(m.\u0275\u0275directiveInject("itemModelProvider"))},l.\u0275cmp=m.\u0275\u0275defineComponent({type:l,selectors:[["ds-onclick-menu-item"]],decls:2,vars:2,consts:[["class","ds-menu-item","role","menuitem","routerLinkActive","active","href","javascript:void(0);",3,"title","click","keyup.space","keyup.enter",4,"ngIf"],["class","nav-item nav-link disabled",4,"ngIf"],["role","menuitem","routerLinkActive","active","href","javascript:void(0);",1,"ds-menu-item",3,"title","click","keyup.space","keyup.enter"],[1,"nav-item","nav-link","disabled"]],template:function(j,k){1&j&&(m.\u0275\u0275template(0,C,4,7,"a",0),m.\u0275\u0275template(1,I,3,4,"span",1)),2&j&&(m.\u0275\u0275property("ngIf",!k.item.disabled),m.\u0275\u0275advance(1),m.\u0275\u0275property("ngIf",k.item.disabled))},dependencies:[i.Od,_.O5,o.X$],styles:["[_nghost-%COMP%] .ds-menu-item[_ngcontent-%COMP%]{display:inline-block}","a[_ngcontent-%COMP%]{cursor:pointer}"]}),l);var L;g=(0,d.__decorate)([(0,p.x)(r.U.ONCLICK),(0,d.__metadata)("design:paramtypes",[class D{constructor(){this.type=r.U.ONCLICK}}])],g);const V=function(Q){return{disabled:Q}};let Y=((L=class{constructor(j){this.item=j}ngOnInit(){this.hasLink=(0,h.UE)(this.item.href)}get href(){if(this.hasLink)return this.item.href}}).\u0275fac=function(j){return new(j||L)(m.\u0275\u0275directiveInject("itemModelProvider"))},L.\u0275cmp=m.\u0275\u0275defineComponent({type:L,selectors:[["ds-external-link-menu-item"]],decls:4,vars:11,consts:[["role","menuitem","routerLinkActive","active",1,"ds-menu-item",3,"ngClass","href","title","click"]],template:function(j,k){1&j&&(m.\u0275\u0275elementStart(0,"a",0),m.\u0275\u0275listener("click",function(ie){return ie.stopPropagation()}),m.\u0275\u0275pipe(1,"translate"),m.\u0275\u0275text(2),m.\u0275\u0275pipe(3,"translate"),m.\u0275\u0275elementEnd()),2&j&&(m.\u0275\u0275property("ngClass",m.\u0275\u0275pureFunction1(9,V,!k.hasLink))("href",k.href,m.\u0275\u0275sanitizeUrl)("title",m.\u0275\u0275pipeBind1(1,5,k.item.text)),m.\u0275\u0275attribute("aria-disabled",!k.hasLink),m.\u0275\u0275advance(2),m.\u0275\u0275textInterpolate(m.\u0275\u0275pipeBind1(3,7,k.item.text)))},dependencies:[i.Od,_.mk,o.X$],styles:["[_nghost-%COMP%] .ds-menu-item[_ngcontent-%COMP%]{display:inline-block}"]}),L);Y=(0,d.__decorate)([(0,p.x)(r.U.EXTERNAL),(0,d.__metadata)("design:paramtypes",[class B{constructor(){this.type=r.U.EXTERNAL}}])],Y);const te=[P,O,g,Y],K=[o.aw,i.Bz,_.ez],ee=[];let ae=(()=>{class Q{}return Q.\u0275fac=function(k){return new(k||Q)},Q.\u0275mod=m.\u0275\u0275defineNgModule({type:Q}),Q.\u0275inj=m.\u0275\u0275defineInjector({providers:[...ee,...te],imports:[K]}),Q})()},54541:(R,c,e)=>{"use strict";e.d(c,{h:()=>g});var t=e(89653),n=e(27239),o=e(39841),i=e(54004),d=e(71884),r=e(63900),a=e(39300),p=e(95698),h=e(53342),m=e(24702),_=e(78969),v=e(34793),E=e(4900),O=e(94650);function b(B,L){return(0,t.P1)(L,V=>{if((0,m.Uh)(V))return V[B]})}const M=B=>B.menus,P=B=>(0,n.GY)(B,M),D=B=>(0,m.Uh)(B)?B.sections:{},C=B=>B.sectionToSubsectionIndex,I=B=>b(B,C);let g=(()=>{class B{constructor(V,Y,X){this.store=V,this.route=Y,this.router=X}getMenu(V){return this.store.pipe((0,t.Ys)(P(V)))}getMenuTopSections(V,Y=!0){return this.store.pipe((0,t.Ys)(P(V)),(0,t.Ys)(D),(0,i.U)(X=>Object.values(X)),(0,d.x)((0,E.be)()),(0,i.U)(X=>X.filter(te=>(0,m.xI)(te.parentID)).filter(te=>!Y||te.visible)))}getSubSectionsByParentID(V,Y,X=!0){return this.store.pipe((0,t.Ys)(P(V)),(0,t.Ys)(I(Y)),(0,i.U)(te=>(0,m.UE)(te)?te:[]),(0,r.w)(te=>(0,o.a)(te.map(K=>this.getMenuSection(V,K)))),(0,i.U)(te=>te.filter(K=>(0,m.Uh)(K)&&(!X||K.visible))))}hasSubSections(V,Y){return this.store.pipe((0,t.Ys)(P(V)),(0,t.Ys)(I(Y)),(0,i.U)(X=>(0,m.UE)(X)))}getMenuSection(V,Y){return this.store.pipe((0,t.Ys)(P(V)),(0,t.Ys)((B=>b(B,D))(Y)))}getNonPersistentMenuSections(V){return this.getMenu(V).pipe((0,i.U)(Y=>Object.values(Y.sections).filter(X=>!X.shouldPersistOnRouteChange)))}addSection(V,Y){this.store.dispatch(new h.$h(V,Y))}removeSection(V,Y){this.store.dispatch(new h.DP(V,Y))}isMenuCollapsed(V){return this.getMenu(V).pipe((0,i.U)(Y=>(0,m.Uh)(Y)?Y.collapsed:void 0))}isMenuPreviewCollapsed(V){return this.getMenu(V).pipe((0,i.U)(Y=>(0,m.Uh)(Y)?Y.previewCollapsed:void 0))}isMenuVisibleWithVisibleSections(V){return(0,o.a)([this.isMenuVisible(V),this.menuHasVisibleSections(V)]).pipe((0,i.U)(([Y,X])=>Y&&X))}isMenuVisible(V){return this.getMenu(V).pipe((0,i.U)(Y=>(0,m.Uh)(Y)?Y.visible:void 0))}menuHasVisibleSections(V){return this.getMenu(V).pipe((0,i.U)(Y=>(0,m.Uh)(Y)?Object.values(Y.sections).some(X=>X.visible&&void 0===X.parentID):void 0))}expandMenu(V){this.store.dispatch(new h.Hq(V))}collapseMenu(V){this.store.dispatch(new h.tv(V))}expandMenuPreview(V){this.store.dispatch(new h.gi(V))}collapseMenuPreview(V){this.store.dispatch(new h.Zu(V))}toggleMenu(V){this.store.dispatch(new h.W0(V))}showMenu(V){this.store.dispatch(new h.uk(V))}showMenuSection(V,Y){this.store.dispatch(new h.XF(V,Y))}hideMenu(V){this.store.dispatch(new h.Zg(V))}hideMenuSection(V,Y){this.store.dispatch(new h.Jt(V,Y))}toggleActiveSection(V,Y){this.store.dispatch(new h.KT(V,Y))}activateSection(V,Y){this.store.dispatch(new h.S0(V,Y))}deactivateSection(V,Y){this.store.dispatch(new h.G$(V,Y))}isSectionActive(V,Y){return this.getMenuSection(V,Y).pipe((0,m.tz)(),(0,i.U)(X=>X.active))}isSectionVisible(V,Y){return this.getMenuSection(V,Y).pipe((0,i.U)(X=>X.visible))}listenForRouteChanges(){this.router.events.pipe((0,a.h)(V=>V instanceof v.m2)).subscribe(()=>{Object.values(_.z).forEach(V=>{this.buildRouteMenuSections(V)})})}buildRouteMenuSections(V){this.getNonPersistentMenuSections(V).pipe((0,i.U)(Y=>Y.map(X=>X.id)),(0,p.q)(1)).subscribe(Y=>
1{this.resolveRouteMenuSections(this.route.root,V).forEach(te=>{const K=Y.indexOf(te.id);K>-1?Y.splice(K,1):this.addSection(V,te)}),Y.forEach(te=>{this.removeSection(V,te)})})}resolveRouteMenuSections(V,Y){const X=V.snapshot.data,te=V.snapshot.params,K=(0,m.xI)(V.firstChild);if((0,m.Uh)(X)&&(0,m.Uh)(X.menu)&&(0,m.Uh)(X.menu[Y])){let ee=X.menu[Y];if(ee=this.resolveSubstitutions(ee,te),Array.isArray(ee)||(ee=[ee]),K)return[...ee];{const ae=this.resolveRouteMenuSections(V.firstChild,Y);return[...ee.filter(Q=>!ae.map(j=>j.id).includes(Q.id)),...ae]}}return K?[]:this.resolveRouteMenuSections(V.firstChild,Y)}resolveSubstitutions(V,Y){let X;return(0,m.xb)(Y)?X=V:"string"==typeof V?(X=V,Object.entries(Y).forEach(([te,K])=>X=X.replaceAll(`:${te}`,K))):Array.isArray(V)?(X=[],V.forEach((te,K)=>{X[K]=this.resolveSubstitutions(V[K],Y)})):"object"==typeof V?(X={},Object.keys(V).forEach(te=>{X[te]=this.resolveSubstitutions(V[te],Y)})):X=V,X}}return B.\u0275fac=function(V){return new(V||B)(O.\u0275\u0275inject(t.yh),O.\u0275\u0275inject(v.gz),O.\u0275\u0275inject(v.F0))},B.\u0275prov=O.\u0275\u0275defineInjectable({token:B,factory:B.\u0275fac}),B})()},26905:(R,c,e)=>{"use strict";e.d(c,{n:()=>d});var t=e(94650),n=e(36895);function o(r,a){if(1&r&&(t.\u0275\u0275elementStart(0,"h2",4),t.\u0275\u0275text(1),t.\u0275\u0275elementEnd()),2&r){const p=t.\u0275\u0275nextContext();t.\u0275\u0275advance(1),t.\u0275\u0275textInterpolate(p.label)}}const i=["*"];let d=(()=>{class r{constructor(){this.hideIfNoTextContent=!0}}return r.\u0275fac=function(p){return new(p||r)},r.\u0275cmp=t.\u0275\u0275defineComponent({type:r,selectors:[["ds-metadata-field-wrapper"]],inputs:{label:"label",hideIfNoTextContent:"hideIfNoTextContent"},ngContentSelectors:i,decls:5,vars:3,consts:[[1,"simple-view-element"],["class","simple-view-element-header",4,"ngIf"],[1,"simple-view-element-body"],["content",""],[1,"simple-view-element-header"]],template:function(p,h){if(1&p&&(t.\u0275\u0275projectionDef(),t.\u0275\u0275elementStart(0,"div",0),t.\u0275\u0275template(1,o,2,1,"h2",1),t.\u0275\u0275elementStart(2,"div",2,3),t.\u0275\u0275projection(4),t.\u0275\u0275elementEnd()()),2&p){const m=t.\u0275\u0275reference(3);t.\u0275\u0275classProp("d-none",h.hideIfNoTextContent&&0===m.textContent.trim().length),t.\u0275\u0275advance(1),t.\u0275\u0275property("ngIf",h.label)}},dependencies:[n.O5],styles:["[_nghost-%COMP%] .simple-view-element[_ngcontent-%COMP%]{margin-bottom:15px}[_nghost-%COMP%] .simple-view-element-header[_ngcontent-%COMP%]{font-size:1.25rem}"]}),r})()},71966:(R,c,e)=>{"use strict";e.d(c,{G:()=>r});var t=e(52760),n=e(2206),o=e(24702),i=e(55784),d=e(94650);let r=(()=>{class a{constructor(h,m){this.themeService=h,this.getMetadataRepresentationComponent=m,this.inAndOutputNames=["context","mdRepresentation"]}get mdRepresentation(){return this._mdRepresentation}set mdRepresentation(h){this._mdRepresentation=h,(0,o.Uh)(this.compRef?.instance)&&(this.compRef.instance.mdRepresentation=h)}ngOnInit(){(0,o.xI)(this.compRef)&&this.instantiateComponent()}ngOnChanges(h){(0,o.xI)(this.compRef)?this.instantiateComponent(h):this.inAndOutputNames.some(m=>(0,o.Uh)(h[m]))&&(this.connectInputsAndOutputs(),this.compRef?.instance&&"ngOnChanges"in this.compRef.instance&&this.compRef.instance.ngOnChanges(h))}instantiateComponent(h){const m=this.getComponent(),_=this.mdRepDirective.viewContainerRef;_.clear(),this.compRef=_.createComponent(m),(0,o.Uh)(h)?this.ngOnChanges(h):this.connectInputsAndOutputs()}ngOnDestroy(){(0,o.Uh)(this.compRef)&&(this.compRef.destroy(),this.compRef=void 0)}getComponent(){return this.getMetadataRepresentationComponent(this.mdRepresentation.itemType,this.mdRepresentation.representationType,this.context,this.themeService.getThemeName())}connectInputsAndOutputs(){(0,o.UE)(this.inAndOutputNames)&&(0,o.Uh)(this.compRef)&&(0,o.Uh)(this.compRef.instance)&&this.inAndOutputNames.filter(h=>void 0!==this[h]).forEach(h=>{this.compRef.instance[h]=this[h]})}}return a.\u0275fac=function(h){return new(h||a)(d.\u0275\u0275directiveInject(i.fY),d.\u0275\u0275directiveInject(t.Wd))}
1,a.\u0275cmp=d.\u0275\u0275defineComponent({type:a,selectors:[["ds-metadata-representation-loader"]],viewQuery:function(h,m){if(1&h&&d.\u0275\u0275viewQuery(n.g,7),2&h){let _;d.\u0275\u0275queryRefresh(_=d.\u0275\u0275loadQuery())&&(m.mdRepDirective=_.first)}},inputs:{mdRepresentation:"mdRepresentation",context:"context"},features:[d.\u0275\u0275NgOnChangesFeature],decls:1,vars:0,consts:[["dsMetadataRepresentation",""]],template:function(h,m){1&h&&d.\u0275\u0275elementContainer(0,0)},dependencies:[n.g],encapsulation:2}),a})()},52760:(R,c,e)=>{"use strict";e.d(c,{Bu:()=>h,Wd:()=>d});var t=e(52885),n=e(24702),o=e(94650),i=e(62921);const d=new o.InjectionToken("getMetadataRepresentationComponent",{providedIn:"root",factory:()=>m}),r=new Map,a="Publication",p=t.P.PlainText;function h(_,v,E=i.QC,O=i.t0){return function(M){if((0,n.xI)(r.get(_))&&r.set(_,new Map),(0,n.xI)(r.get(_).get(v))&&r.get(_).set(v,new Map),(0,n.xI)(r.get(_).get(v).get(E))&&r.get(_).get(v).set(E,new Map),(0,n.Uh)(r.get(_).get(v).get(E).get(O)))throw new Error(`There can't be more than one component to render Entity of type "${_}" in MetadataRepresentation "${v}" with context "${E}"`);r.get(_).get(v).get(E).set(O,M)}}function m(_,v,E=i.QC,O=i.t0){const b=r.get(_);if((0,n.Uh)(b)){const M=b.get(v);if((0,n.Uh)(M)){const P=M.get(E);if((0,n.Uh)(P)){const D=(0,i.An)(P,O);if((0,n.Uh)(D))return D;if((0,n.Uh)(P.get(i.t0)))return P.get(i.t0)}if((0,n.Uh)(M.get(i.QC))&&(0,n.Uh)(M.get(i.QC).get(i.t0)))return M.get(i.QC).get(i.t0)}if((0,n.Uh)(b.get(p))&&(0,n.Uh)(b.get(p).get(i.QC))&&(0,n.Uh)(b.get(p).get(i.QC).get(i.t0)))return b.get(p).get(i.QC).get(i.t0)}return r.get(a).get(p).get(i.QC).get(i.t0)}},2206:(R,c,e)=>{"use strict";e.d(c,{g:()=>n});var t=e(94650);let n=(()=>{class o{constructor(d){this.viewContainerRef=d}}return o.\u0275fac=function(d){return new(d||o)(t.\u0275\u0275directiveInject(t.ViewContainerRef))},o.\u0275dir=t.\u0275\u0275defineDirective({type:o,selectors:[["","dsMetadataRepresentation",""]]}),o})()},16694:(R,c,e)=>{"use strict";e.d(c,{P:()=>_});var t=e(46418),n=e(5164),o=e(31241),i=e(95698),d=e(8138),r=e(74975),a=e(24702),p=e(94650),h=e(34793),m=e(89383);let _=(()=>{class v extends r.z{constructor(O,b,M,P,D,l){super(d.S,O,b,M,P,D,l),this.injector=O,this.router=b,this.notificationsService=M,this.translate=P,this.searchService=D,this.requestService=l,this.subs=[]}submitTask(){this.subs.push(this.startActionExecution().pipe((0,i.q)(1)).subscribe())}createbody(){return{[this.option]:"true"}}reloadObjectExecution(){return this.objectDataService.findByItem(this.itemUuid)}actionExecution(){return this.objectDataService.submitTask(this.object.id,this.createbody())}initObjects(O){this.object=O}initReloadAnchor(){(0,a.xb)(this.item)||(this.itemUuid=this.item.uuid)}ngOnDestroy(){this.subs.forEach(O=>O.unsubscribe())}}return v.\u0275fac=function(O){return new(O||v)(p.\u0275\u0275directiveInject(p.Injector),p.\u0275\u0275directiveInject(h.F0),p.\u0275\u0275directiveInject(t.T),p.\u0275\u0275directiveInject(m.sK),p.\u0275\u0275directiveInject(n.o),p.\u0275\u0275directiveInject(o.s))},v.\u0275cmp=p.\u0275\u0275defineComponent({type:v,selectors:[["ds-claimed-task-action-abstract"]],features:[p.\u0275\u0275InheritDefinitionFeature],decls:0,vars:0,template:function(O,b){},encapsulation:2}),v})()},77664:(R,c,e)=>{"use strict";e.d(c,{Tc:()=>i,fi:()=>r,w1:()=>d,xl:()=>a});var t=e(24702);const n=new Map,o=new Map;function i(p){return function(m){if(!(0,t.xI)(n.get(p)))throw new Error(`There can't be more than one component to render ClaimedTaskActions for option "${p}"`);n.set(p,m)}}function d(p){return function(m){if(!(0,t.xI)(o.get(p)))throw new Error(`There can't be more than one component to render AdvancedClaimedTaskActions for option "${p}"`);o.set(p,m)}}function r(p){return n.get(p)}function a(p){return o.get(p)}},63111:(R,c,e)=>{"use strict";e.d(c,{c:()=>n});var t=e(94650);let n=(()=>{class o{constructor(d){this.viewContainerRef=d}}return o.\u0275fac=function(d){return new(d||o)(t.\u0275\u0275directiveInject(t.ViewContainerRef))},o.\u0275dir=t.\u0275\u0275defineDirective({type:o,selectors:[["","dsClaimedTaskActions",""]]}),o})()},45493:(R,c,e)=>{"use strict";e.d(c,{i:()=>L});var t=e(94650),n=e(95698),o=e(18505),i=e(85019),d=e(27470),r=e(99640),a=e(21899),p=e(83639),h=e(33609),m=e(56502),_=e(8395),v=e(62168),E=e(61200);class O{getConstructor(Y){switch(Y){case h.c.type:return p.S;case v.K.type:return i.p;case E.p.type:return a.K;case _.q.type:return d.p;
1case m.d.type:return r.N;default:return}}}var b=e(39961),M=e(46418),P=e(31241),D=e(61135),l=e(5164),C=e(68285),I=e(3879),g=e(34793),B=e(89383);let L=(()=>{class V{constructor(X,te,K,ee,ae,Q,j){this.objectType=X,this.injector=te,this.router=K,this.notificationsService=ee,this.translate=ae,this.searchService=Q,this.requestService=j,this.processCompleted=new t.EventEmitter,this.processing$=new D.X(!1);const k=new O;this.objectDataService=te.get(k.getConstructor(X))}reload(){this.router.navigated=!1;const X=decodeURIComponent(this.router.url);this.router.routeReuseStrategy.shouldReuseRoute=()=>!1,this.searchService.getEndpoint().pipe((0,n.q)(1),(0,o.b)(te=>this.requestService.removeByHrefSubstring(te))).subscribe(()=>this.router.navigateByUrl(X))}refresh(){this.objectDataService.findById(this.object.id,!1).pipe((0,C.xw)()).subscribe(X=>{this.initObjects(X.payload)})}handleActionResponse(X){X?(this.reload(),this.notificationsService.success(null,this.translate.get("submission.workflow.tasks.generic.success"),new b.n(5e3,!1))):this.notificationsService.error(null,this.translate.get("submission.workflow.tasks.generic.error"),new b.n(2e4,!0))}}return V.\u0275fac=function(X){return new(X||V)(t.\u0275\u0275directiveInject(I._),t.\u0275\u0275directiveInject(t.Injector),t.\u0275\u0275directiveInject(g.F0),t.\u0275\u0275directiveInject(M.T),t.\u0275\u0275directiveInject(B.sK),t.\u0275\u0275directiveInject(l.o),t.\u0275\u0275directiveInject(P.s))},V.\u0275cmp=t.\u0275\u0275defineComponent({type:V,selectors:[["ds-mydspace-actions-abstract"]],inputs:{object:"object"},outputs:{processCompleted:"processCompleted"},decls:0,vars:0,template:function(X,te){},encapsulation:2}),V})()},74975:(R,c,e)=>{"use strict";e.d(c,{z:()=>D});var t=e(95698),n=e(63900),o=e(18505),i=e(54004),d=e(15600),r=e(39961),a=e(46418),p=e(31241),h=e(5164),m=e(39646),_=e(68285),v=e(50678),E=e(45493),O=e(94650),b=e(3879),M=e(34793),P=e(89383);let D=(()=>{class l extends E.i{constructor(I,g,B,L,V,Y,X){super(I,g,B,L,V,Y,X),this.objectType=I,this.injector=g,this.router=B,this.notificationsService=L,this.translate=V,this.searchService=Y,this.requestService=X}ngOnInit(){this.initReloadAnchor(),this.initObjects(this.object)}startActionExecution(){return this.processing$.next(!0),this.actionExecution().pipe((0,t.q)(1),(0,n.w)(I=>I.hasSucceeded?this._reloadObject().pipe((0,o.b)(g=>{this.processing$.next(!1),this.handleReloadableActionResponse(I.hasSucceeded,g)})):(this.processing$.next(!1),this.handleReloadableActionResponse(I.hasSucceeded,null),(0,m.of)(null))))}handleReloadableActionResponse(I,g){I?(g?this.processCompleted.emit({result:I,reloadedObject:g}):this.reload(),this.notificationsService.success(null,this.translate.get("submission.workflow.tasks.generic.success"),new r.n(5e3,!1))):this.notificationsService.error(null,this.translate.get("submission.workflow.tasks.generic.error"),new r.n(2e4,!0))}initReloadAnchor(){}convertReloadedObject(I){const g=(0,v.i)(I.constructor);return Object.assign(new g,I,{indexableObject:I})}_reloadObject(){return this.reloadObjectExecution().pipe((0,n.w)(I=>I instanceof d.N?(0,m.of)(I).pipe((0,_.hC)(),(0,i.U)(g=>g.payload)):(0,m.of)(I))).pipe((0,i.U)(I=>I&&this.convertReloadedObject(I)))}}return l.\u0275fac=function(I){return new(I||l)(O.\u0275\u0275directiveInject(b._),O.\u0275\u0275directiveInject(O.Injector),O.\u0275\u0275directiveInject(M.F0),O.\u0275\u0275directiveInject(a.T),O.\u0275\u0275directiveInject(P.sK),O.\u0275\u0275directiveInject(h.o),O.\u0275\u0275directiveInject(p.s))},l.\u0275cmp=O.\u0275\u0275defineComponent({type:l,selectors:[["ds-mydspace-reloadable-actions"]],features:[O.\u0275\u0275InheritDefinitionFeature],decls:0,vars:0,template:function(I,g){},encapsulation:2}),l})()},86361:(R,c,e)=>{"use strict";e.d(c,{$:()=>o});var t=e(94650),n=e(36895);let o=(()=>{class i{constructor(r){this.ngFor=r,this.ngFor.ngForTrackBy=(a,p)=>p?p.id:void 0}}return i.\u0275fac=function(r){return new(r||i)(t.\u0275\u0275directiveInject(n.sg,1))},i.\u0275dir=t.\u0275\u0275defineDirective({type:i,selectors:[["","ngForTrackById",""]]}),i})()},55562:(R,c,e)=>{"use strict";e.d(c,{B:()=>o,E:()=>n});const n=(0,e(79472).d)("dspace/ngrx/NO_OP_ACTION");class o{constructor(){this.type=n}}},79472:(R,c,e)=>{"use strict";e.d(c,{d:()=>o});const t={};function o(i){if(t[i])throw new Error(`Action type "${i}" is not unique"`);return t[i]=!0,i}},44293:(R,c,e)=>{"use strict";e.d(c,{G:()=>t,p:()=>n});var t=(()=>{return(o=t||(t={})).Fade="fade",o.FromTop="fromTop",o.FromRight="fromRight",o.FromBottom="fromBottom",o.FromLeft="fromLeft",o.Rotate="rotate",o.Scale="scale",t;var o})(),n=(()=>{return(o=n||(n={})).In="In",o.Out="Out",n;var o})()},39961:(R,c,e)=>{"use strict";e.d(c,{n:()=>n});var t=e(44293);class n{constructor(i=5e3,d=!0,r=t.G.Scale,a=!0){this.timeOut=i,this.clickToClose=d,this.animate=r,this.announceContentInLiveRegion=a}}},41157:(R,c,e)=>{"use strict";e.d(c,{k:()=>t});var t=(()=>{return(n=t||(t={})).Success="alert-success",n.Error="alert-danger",n.Info="alert-info",n.Warning="alert-warning",t;var n})()},98692:(R,c,e)=>{"use strict";e.d(c,{c:()=>Ut});var t=e(39646),n=e(69751),o=e(94650),i=e(37340),d=e(46418);const r=(0,i.SB)("scaleIn",(0,i.oB)({opacity:1,transform:"scale(1)"})),a=(0,i.eR)("* => scaleIn",[(0,i.oB)({opacity:0,transform:"scale(0)"}),(0,i.jt)("400ms ease-in-out")]),p=(0,i.SB)("scaleOut",(0,i.oB)({opacity:0,transform:"scale(0)"})),h=(0,i.eR)("scaleIn => scaleOut",[(0,i.oB)({opacity:1,transform:"scale(1)"}),(0,i.jt)("400ms ease-in-out")]);(0,i.X$)("scaleIn",[a]),(0,i.X$)("scaleOut",[h]),(0,i.X$)("scaleInOut",[a,h]);var E=e(13865);const O=(0,i.SB)("fromBottomIn",(0,i.oB)({opacity:1,transform:"translateY(0)"})),b=(0,i.eR)("* => fromBottomIn",[(0,i.oB)({opacity:0,transform:"translateY(5%)"}),(0,i.jt)("400ms ease-in-out")]),M=(0,i.SB)("fromBottomOut",(0,i.oB)({opacity:0,transform:"translateY(-5%)"}
1)),P=(0,i.eR)("fromBottomIn => fromBottomOut",[(0,i.oB)({opacity:1,transform:"translateY(0)"}),(0,i.jt)("300ms ease-in-out")]),I=((0,i.X$)("fromBottomIn",[b]),(0,i.X$)("fromBottomOut",[P]),(0,i.X$)("fromBottomInOut",[b,P]),(0,i.SB)("fromRightIn",(0,i.oB)({opacity:1,transform:"translateX(0)"}))),g=(0,i.eR)("* => fromRightIn",[(0,i.oB)({opacity:0,transform:"translateX(5%)"}),(0,i.jt)("400ms ease-in-out")]),B=(0,i.SB)("fromRightOut",(0,i.oB)({opacity:0,transform:"translateX(-5%)"})),L=(0,i.eR)("fromRightIn => fromRightOut",[(0,i.oB)({opacity:1,transform:"translateX(0)"}),(0,i.jt)("300ms ease-in-out")]),te=((0,i.X$)("fromRightIn",[g]),(0,i.X$)("fromRightOut",[L]),(0,i.X$)("fromRightInOut",[g,L]),(0,i.SB)("fromLeftIn",(0,i.oB)({opacity:1,transform:"translateX(0)"}))),K=(0,i.eR)("* => fromLeftIn",[(0,i.oB)({opacity:0,transform:"translateX(-5%)"}),(0,i.jt)("400ms ease-in-out")]),ee=(0,i.SB)("fromLeftOut",(0,i.oB)({opacity:0,transform:"translateX(5%)"})),ae=(0,i.eR)("fromLeftIn => fromLeftOut",[(0,i.oB)({opacity:1,transform:"translateX(0)"}),(0,i.jt)("300ms ease-in-out")]),G=((0,i.X$)("fromLeftIn",[K]),(0,i.X$)("fromLeftOut",[ae]),(0,i.X$)("fromLeftInOut",[K,ae]),(0,i.SB)("fromTopIn",(0,i.oB)({opacity:1,transform:"translateY(0)"}))),ie=(0,i.eR)("* => fromTopIn",[(0,i.oB)({opacity:0,transform:"translateY(-5%)"}),(0,i.jt)("400ms ease-in-out")]),ne=(0,i.SB)("fromTopOut",(0,i.oB)({opacity:0,transform:"translateY(5%)"})),q=(0,i.eR)("fromTopIn => fromTopOut",[(0,i.oB)({opacity:1,transform:"translateY(0)"}),(0,i.jt)("300ms ease-in-out")]);(0,i.X$)("fromTopIn",[ie]),(0,i.X$)("fromTopOut",[q]),(0,i.X$)("fromTopInOut",[ie,q]);var Me=e(28652),Ee=e(44293),Ae=e(24702),Je=e(39300),_t=e(50590),It=e(11481),it=e(36895);const Be=function(ke){return{width:ke}};function Xe(ke,ot){if(1&ke&&(o.\u0275\u0275elementStart(0,"div",9),o.\u0275\u0275element(1,"span",10),o.\u0275\u0275elementEnd()),2&ke){const gt=o.\u0275\u0275nextContext();o.\u0275\u0275advance(1),o.\u0275\u0275property("ngStyle",o.\u0275\u0275pureFunction1(1,Be,gt.progressWidth+"%"))}}function pt(ke,ot){if(1&ke){const gt=o.\u0275\u0275getCurrentView();o.\u0275\u0275elementStart(0,"button",11),o.\u0275\u0275listener("click",function(){o.\u0275\u0275restoreView(gt);const hn=o.\u0275\u0275nextContext();return o.\u0275\u0275resetView(hn.remove())}),o.\u0275\u0275elementStart(1,"span",12),o.\u0275\u0275text(2,"\xd7"),o.\u0275\u0275elementEnd()()}}function Mt(ke,ot){1&ke&&o.\u0275\u0275elementContainer(0)}function Yt(ke,ot){if(1&ke&&(o.\u0275\u0275elementStart(0,"div",16),o.\u0275\u0275template(1,Mt,1,0,"ng-container",17),o.\u0275\u0275elementEnd()),2&ke){const gt=o.\u0275\u0275nextContext(2);o.\u0275\u0275advance(1),o.\u0275\u0275property("ngTemplateOutlet",gt.title)}}function nt(ke,ot){if(1&ke&&(o.\u0275\u0275elementStart(0,"div",16),o.\u0275\u0275text(1),o.\u0275\u0275pipe(2,"async"),o.\u0275\u0275elementEnd()),2&ke){const gt=o.\u0275\u0275nextContext(2);o.\u0275\u0275advance(1),o.\u0275\u0275textInterpolate(o.\u0275\u0275pipeBind1(2,1,gt.title))}}function mt(ke,ot){if(1&ke&&(o.\u0275\u0275elementStart(0,"div",13)(1,"strong"),o.\u0275\u0275template(2,Yt,2,1,"div",14),o.\u0275\u0275template(3,nt,3,3,"ng-template",null,15,o.\u0275\u0275templateRefExtractor),o.\u0275\u0275elementEnd()()),2&ke){const gt=o.\u0275\u0275reference(4),zt=o.\u0275\u0275nextContext();o.\u0275\u0275advance(2),o.\u0275\u0275property("ngIf",zt.titleIsTemplate)("ngIfElse",gt)}}function en(ke,ot){1&ke&&o.\u0275\u0275elementContainer(0)}function pn(ke,ot){if(1&ke&&(o.\u0275\u0275elementStart(0,"div",20),o.\u0275\u0275template(1,en,1,0,"ng-container",17),o.\u0275\u0275elementEnd()),2&ke){const gt=o.\u0275\u0275nextContext(2);o.\u0275\u0275advance(1),o.\u0275\u0275property("ngTemplateOutlet",gt.content)}}function tt(ke,ot){if(1&ke&&(o.\u0275\u0275elementStart(0,"div",20),o.\u0275\u0275text(1),o.\u0275\u0275pipe(2,"async"),o.\u0275\u0275elementEnd()),2&ke){const gt=o.\u0275\u0275nextContext(2);o.\u0275\u0275advance(1),o.\u0275\u0275textInterpolate(o.\u0275\u0275pipeBind1(2,1,gt.content))}}function Tt(ke,ot){if(1&ke&&(o.\u0275\u0275elementStart(0,"div",13),o.\u0275\u0275template(1,pn,2,1,"div",18),o.\u0275\u0275template(2,tt,3,3,"ng-template",null,19,o.\u0275\u0275templateRefExtractor),o.\u0275\u0275elementEnd()),2&ke){const gt=o.\u0275\u0275reference(3),zt=o.\u0275\u0275nextContext();o.\u0275\u0275advance(1),o.\u0275\u0275property("ngIf",zt.contentIsTemplate)("ngIfElse",gt)}}function At(ke,ot){1&ke&&o.\u0275\u0275elementContainer(0)}function Rt(ke,ot){if(1&ke&&(o.\u0275\u0275elementStart(0,"div",23),o.\u0275\u0275template(1,At,1,0,"ng-container",17),o.\u0275\u0275elementEnd()),2&ke){const gt=o.\u0275\u0275nextContext(2);o.\u0275\u0275advance(1),o.\u0275\u0275property("ngTemplateOutlet",gt.content)}}function Pt(ke,ot){if(1&ke&&o.\u0275\u0275element(0,"div",24),2&ke){const gt=o.\u0275\u0275nextContext(2);o.\u0275\u0275property("innerHTML",gt.content,o.\u0275\u0275sanitizeHtml)}}function xt(ke,ot){if(1&ke&&(o.\u0275\u0275elementStart(0,"div",13),o.\u0275\u0275template(1,Rt,2,1,"div",21),o.\u0275\u0275template(2,Pt,1,1,"ng-template",null,22,o.\u0275\u0275templateRefExtractor),o.\u0275\u0275elementEnd()),2&ke){const gt=o.\u0275\u0275reference(3),zt=o.\u0275\u0275nextContext();o.\u0275\u0275advance(1),o.\u0275\u0275property("ngIf",zt.contentIsTemplate)("ngIfElse",gt)}}const lt=function(ke,ot,gt,zt){return{"fas fa-2x":!0,"fa-check-circle":ke,"fa-times-circle":ot,"fa-exclamation-triangle":gt,"fa-info-circle":zt}};let Ut=(()=>{class ke{constructor(gt,zt,hn,Vt){this.notificationService=gt,this.domSanitizer=zt,this.cdr=hn,this.zone=Vt,this.notification=null,this.isPaused$=(0,t.of)(!1),this.showProgressBar=!1,this.titleIsTemplate=!1,this.contentIsTemplate=!1,this.htmlIsTemplate=!1,this.progressWidth=0,this.stopTime=!1,this.count=0,this.instance=()=>{this.diff=(new Date).getTime()-this.start-this.count*this.speed,this.isPaused$.pipe((0,Je.h)($n=>!$n),(0,_t.P)()).subscribe(()=>{this.count++===this.steps?this.remove():this.stopTime||(this.showProgressBar&&(this.progressWidth+=100/this.steps),this.timer=setTimeout(this.instance,this.speed-this.diff)),this.zone.run(()=>this.cdr.detectChanges())})}}ngOnInit(){this.animate=this.notification.options.animate+Ee.p.In,0!==this.notification.options.timeOut&&(this.startTimeOut(),this.showProgressBar=!0),this.html=this.notification.html,this.contentType(this.notification.title,"title"),this.contentType(this.notification.content,"content")}startTimeOut(){this.steps=this.notification.options.timeOut/10,this.speed=this.notification.options.timeOut/this.steps,this.start=(new Date).getTime(),this.zone.runOutsideAngular(()=>this.timer=setTimeout(this.instance,this.speed))}ngOnDestroy(){clearTimeout(this.timer)}remove(){this.animate?(this.setAnimationOut(),setTimeout(()=>{this.notificationService.remove(this.notification)},1e3)):this.notificationService.remove(this.notification)}contentType(gt,zt){if(gt instanceof o.TemplateRef)this[zt]=gt;else if("title"===zt||"content"===zt&&!this.html){let hn=null;(0,Ae.UE)(gt)&&("string"==typeof gt?hn=(0,t.of)(gt):gt instanceof n.y?hn=gt:"object"==typeof gt&&(0,Ae.UE)(gt.value)&&(hn=(0,t.of)(gt.value))),this[zt]=hn}else this[zt]=this.domSanitizer.bypassSecurityTrustHtml(gt);this[zt+"IsTemplate"]=gt instanceof o.TemplateRef}setAnimationOut(){this.animate=this.notification.options.animate+Ee.p.Out,this.cdr.detectChanges()}}return ke.\u0275fac=function(gt){return new(gt||ke)(o.\u0275\u0275directiveInject(d.T),o.\u0275\u0275directiveInject(It.H7),o.\u0275\u0275directiveInject(o.ChangeDetectorRef),o.\u0275\u0275directiveInject(o.NgZone))},ke.\u0275cmp=o.\u0275\u0275defineComponent({type:ke,selectors:[["ds-notification"]],inputs:{notification:"notification",isPaused$:"isPaused$"},decls:11,vars:15,consts:[["role","alert"],["class","notification-progress-loader position-absolute w-100",4,"ngIf"],["type","button","class","close pt-0 pr-1 pl-0 pb-0","data-dismiss","alert","aria-label","Close",3,"click",4,"ngIf"],[1,"d-flex","flex-row"],[1,"d-flex","flex-column","justify-content-center","align-items-center"],[1,"notification-icon","d-flex","justify-content-center"],[3,"ngClass"],[1,"d-flex","flex-column","justify-content-center","align-content-stretch"],["class","p-2 mr-3",4,"ngIf"],[1,"notification-progress-loader","position-absolute","w-100"],[1,"h-100","float-left",3,"ngStyle"],["type","button","data-dismiss","alert","aria-label","Close",1,"close","pt-0","pr-1","pl-0","pb-0",3,"click"],["aria-hidden","true"],[1,"p-2","mr-3"],["class","notification-title pl-1",4,"ngIf","ngIfElse"],["regularTitle",""],[1,"notification-title","pl-1"],[4,"ngTemplateOutlet"],["class","notification-content pl-1",4,"ngIf","ngIfElse"],["regularContent",""],[1,"notification-content","pl-1"],["class","notification-html pl-1",4,"ngIf","ngIfElse"],["regularHtml",""],[1,"notification-html","pl-1"],[1,"n
1otification-html","pl-1",3,"innerHTML"]],template:function(gt,zt){1>&&(o.\u0275\u0275elementStart(0,"div",0),o.\u0275\u0275template(1,Xe,2,3,"div",1),o.\u0275\u0275template(2,pt,3,0,"button",2),o.\u0275\u0275elementStart(3,"div",3)(4,"div",4)(5,"div",5),o.\u0275\u0275element(6,"i",6),o.\u0275\u0275elementEnd()(),o.\u0275\u0275elementStart(7,"div",7),o.\u0275\u0275template(8,mt,5,2,"div",8),o.\u0275\u0275template(9,Tt,4,2,"div",8),o.\u0275\u0275template(10,xt,4,2,"div",8),o.\u0275\u0275elementEnd()()()),2>&&(o.\u0275\u0275classMapInterpolate1("notification alert ",zt.notification.type," alert-dismissible m-3 shadow"),o.\u0275\u0275property("@enterLeave",zt.animate),o.\u0275\u0275advance(1),o.\u0275\u0275property("ngIf",zt.showProgressBar),o.\u0275\u0275advance(1),o.\u0275\u0275property("ngIf",zt.notification.options.clickToClose),o.\u0275\u0275advance(4),o.\u0275\u0275property("ngClass",o.\u0275\u0275pureFunction4(10,lt,"alert-success"==zt.notification.type,"alert-danger"==zt.notification.type,"alert-warning"==zt.notification.type,"alert-info"==zt.notification.type)),o.\u0275\u0275advance(2),o.\u0275\u0275property("ngIf",zt.title),o.\u0275\u0275advance(1),o.\u0275\u0275property("ngIf",zt.content&&!zt.html),o.\u0275\u0275advance(1),o.\u0275\u0275property("ngIf",zt.content&&zt.html))},dependencies:[it.mk,it.O5,it.tP,it.PC,it.Ov],styles:[".notification{display:inline-block;min-width:var(--bs-modal-sm);text-align:left}.close{outline:none!important}.close{opacity:.8}.notification-icon{min-width:3rem}.notification-progress-loader{top:-1px;left:0;height:1px}.alert-success .notification-progress-loader span{background:var(--ds-notification-bg-success)}.alert-danger .notification-progress-loader span{background:var(--ds-notification-bg-danger)}.alert-info .notification-progress-loader span{background:var(--ds-notification-bg-info)}.alert-warning .notification-progress-loader span{background:var(--ds-notification-bg-warning)}\n"],encapsulation:2,data:{animation:[(0,i.X$)("enterLeave",[Me.Vr,Me.eP,Me.Ij,Me.gm,b,O,P,M,g,I,L,B,K,te,ae,ee,ie,G,q,ne,E.W7,E.pt,E.un,E.Y0,r,a,p,h])]},changeDetection:0}),ke})()},83771:(R,c,e)=>{"use strict";e.d(c,{d:()=>b});var t=e(89653),n=e(61135),o=e(39646),i=e(18680),d=e.n(i),r=e(46418);const a=M=>M.notifications;var p=e(68499),h=e(24702),m=e(95698),_=e(94650),v=e(36895),E=e(98692);function O(M,P){if(1&M&&_.\u0275\u0275element(0,"ds-notification",2),2&M){const D=P.$implicit,l=_.\u0275\u0275nextContext();_.\u0275\u0275property("notification",D)("isPaused$",l.isPaused$)}}let b=(()=>{class M{constructor(D,l,C,I){this.service=D,this.store=l,this.cdr=C,this.liveRegionService=I,this.notifications=[],this.position=["bottom","right"],this.maxStack=8,this.rtl=!1,this.animate="fromRight",this.isPaused$=new n.X(!1)}set options(D){this.attachChanges(D)}ngOnInit(){this.sub=this.store.pipe((0,t.Ys)(a)).subscribe(D=>{0===D.length?this.notifications=[]:D.length>this.notifications.length?d()(D,this.notifications).forEach(C=>{this.add(C)}):d()(this.notifications,D).forEach(C=>{this.notifications=this.notifications.filter(I=>I.id!==C.id)}),this.cdr.detectChanges()})}add(D){this.block(D)?this.service.remove(D):(this.notifications.length>=this.maxStack&&this.notifications.splice(this.notifications.length-1,1),this.notifications.splice(0,0,D),this.addContentToLiveRegion(D))}addContentToLiveRegion(D){let l=D.content;!D.options.announceContentInLiveRegion||(0,h.xI)(l)||("string"==typeof l&&(l=(0,o.of)(l)),l.pipe((0,h.iy)(),(0,m.q)(1)).subscribe(C=>this.liveRegionService.addMessage(C)))}block(D){const l=D.html?this.checkHtml:this.checkStandard;return this.notifications.forEach(C=>{if(l(C,D))return!0}),!1}checkStandard(D,l){return D.type===l.type&&D.title===l.title&&D.content===l.content}checkHtml(D,l){return!!D.html&&D.type===l.type&&D.title===l.title&&D.content===l.content&&D.html===l.html}attachChanges(D){Object.keys(D).forEach(l=>{this.hasOwnProperty(l)&&(this[l]=D[l])})}ngOnDestroy(){this.sub&&this.sub.unsubscribe()}}return M.\u0275fac=function(D){return new(D||M)(_.\u0275\u0275directiveInject(r.T),_.\u0275\u0275directiveInject(t.yh),_.\u0275\u0275directiveInject(_.ChangeDetectorRef),_.\u0275\u0275directiveInject(p.C))},M.\u0275cmp=_.\u0275\u0275defineComponent({type:M,selectors:[["ds-notifications-board"]],inputs:{options:"options"},decls:2,vars:2,consts:[[1,"notifications-wrapper","position-fixed",3,"ngClass","mouseenter","mouseleave"],["class","notification",3,"notification","isPaused$",4,"ngFor","ngForOf"],[1,"notification",3,"notification","isPaused$"]],template:function(D,l){1&D&&(_.\u0275\u0275elementStart(0,"div",0),_.\u0275\u0275listener("mouseenter",function(){return l.isPaused$.next(!0)})("mouseleave",function(){return l.isPaused$.next(!1)}),_.\u0275\u0275template(1,O,1,2,"ds-notification",1),_.\u0275\u0275elementEnd()),2&D&&(_.\u0275\u0275property("ngClass",l.position),_.\u0275\u0275advance(1),_.\u0275\u0275property("ngForOf",l.notifications))},dependencies:[v.mk,v.sg,E.c],styles:[".notifications-wrapper{z-index:var(--bs-zindex-popover);text-align:right;overflow-wrap:break-word;word-wrap:break-word;-ms-word-break:break-all;word-break:break-all;word-break:break-word;-webkit-hyphens:auto;hyphens:auto}
1.notifications-wrapper .notification{display:block}.notifications-wrapper.left{left:0}.notifications-wrapper.top{top:0}.notifications-wrapper.right{right:0}.notifications-wrapper.bottom{bottom:0}.notifications-wrapper.center{left:50%;transform:translate(-50%)}.notifications-wrapper.middle{top:50%;transform:translateY(-50%)}.notifications-wrapper.middle.center{transform:translate(-50%,-50%)}@media screen and (max-width: 576px){.notifications-wrapper{width:auto;left:0;right:0}}\n"],encapsulation:2,changeDetection:0}),M})()},98171:(R,c,e)=>{"use strict";e.d(c,{S5:()=>i,T2:()=>o,WW:()=>d,o0:()=>n});var t=e(79472);const n={NEW_NOTIFICATION:(0,t.d)("dspace/notifications/NEW_NOTIFICATION"),REMOVE_ALL_NOTIFICATIONS:(0,t.d)("dspace/notifications/REMOVE_ALL_NOTIFICATIONS"),REMOVE_NOTIFICATION:(0,t.d)("dspace/notifications/REMOVE_NOTIFICATION")};class o{constructor(a){this.type=n.NEW_NOTIFICATION,this.payload=a}}class i{constructor(a){this.payload=a,this.type=n.REMOVE_ALL_NOTIFICATIONS}}class d{constructor(a){this.type=n.REMOVE_NOTIFICATION,this.payload=a}}},46418:(R,c,e)=>{"use strict";e.d(c,{T:()=>O});var t=e(39646),n=e(50590),o=e(51541),i=e.n(o),d=e(39961),r=e(24702);class a{constructor(M,P,D,l,C,I){this.id=M,this.type=P,this.title=D,this.content=l,this.options=(0,r.xb)(C)?new d.n:C,this.html=I}}var p=e(41157),h=e(98171),m=e(21540),_=e(94650),v=e(89653),E=e(89383);let O=(()=>{class b{constructor(P,D){this.store=P,this.translate=D}add(P){let D;D=new h.T2(P),this.store.dispatch(D)}success(P=(0,t.of)(""),D=(0,t.of)(""),l={},C=!1){const I={...this.getDefaultOptions(),...l},g=new a(i()(),p.k.Success,P,D,I,C);return this.add(g),g}error(P=(0,t.of)(""),D=(0,t.of)(""),l={},C=!1){const I={...this.getDefaultOptions(),...l}
1,g=new a(i()(),p.k.Error,P,D,I,C);return this.add(g),g}info(P=(0,t.of)(""),D=(0,t.of)(""),l={},C=!1){const I={...this.getDefaultOptions(),...l},g=new a(i()(),p.k.Info,P,D,I,C);return this.add(g),g}warning(P=(0,t.of)(""),D=(0,t.of)(""),l=this.getDefaultOptions(),C=!1){const I={...this.getDefaultOptions(),...l},g=new a(i()(),p.k.Warning,P,D,I,C);return this.add(g),g}notificationWithAnchor(P,D,l,C,I,g){this.translate.get(C).pipe((0,n.P)()).subscribe(B=>{const L=`<a class="align-baseline btn btn-link p-0 m-0" href="${l}" >\n <strong>${B}</strong>\n </a>`,V=Object.create({});V[g]=L,this.translate.get(I,V).pipe((0,n.P)()).subscribe(Y=>{switch(P){case p.k.Success:this.success(null,Y,D,!0);break;case p.k.Error:this.error(null,Y,D,!0);break;case p.k.Info:this.info(null,Y,D,!0);break;case p.k.Warning:this.warning(null,Y,D,!0)}})})}remove(P){const D=new h.WW(P.id);this.store.dispatch(D)}removeAll(){const P=new h.S5;this.store.dispatch(P)}getDefaultOptions(){return new d.n(m.N.notifications.timeOut,m.N.notifications.clickToClose,m.N.notifications.animate)}}return b.\u0275fac=function(P){return new(P||b)(_.\u0275\u0275inject(v.yh),_.\u0275\u0275inject(E.sK))},b.\u0275prov=_.\u0275\u0275defineInjectable({token:b,factory:b.\u0275fac}),b})()},8041:(R,c,e)=>{"use strict";e.d(c,{m:()=>t});var t=(()=>{return(n=t||(t={}))[n.None=0]="None",n[n.Link=1]="Link",n[n.ExternalLink=2]="ExternalLink",t;var n})()},70714:(R,c,e)=>{"use strict";e.d(c,{c:()=>b});var t=e(94650),n=e(54004),o=e(71884),i=e(24702),d=e(51121),r=e(78063),a=e(36895),p=e(34793),h=e(31960),m=e(8514),_=e(28313);function v(M,P){if(1&M){const D=t.\u0275\u0275getCurrentView();t.\u0275\u0275elementStart(0,"ds-themed-object-list",3),t.\u0275\u0275listener("paginationChange",function(C){t.\u0275\u0275restoreView(D);const I=t.\u0275\u0275nextContext();return t.\u0275\u0275resetView(I.onPaginationChange(C))})("pageChange",function(C){t.\u0275\u0275restoreView(D);const I=t.\u0275\u0275nextContext();return t.\u0275\u0275resetView(I.onPageChange(C))})("pageSizeChange",function(C){t.\u0275\u0275restoreView(D);const I=t.\u0275\u0275nextContext();return t.\u0275\u0275resetView(I.onPageSizeChange(C))})("sortDirectionChange",function(C){t.\u0275\u0275restoreView(D);const I=t.\u0275\u0275nextContext();return t.\u0275\u0275resetView(I.onSortDirectionChange(C))})("deselectObject",function(C){t.\u0275\u0275restoreView(D);const I=t.\u0275\u0275nextContext();return t.\u0275\u0275resetView(I.deselectObject.emit(C))})("selectObject",function(C){t.\u0275\u0275restoreView(D);const I=t.\u0275\u0275nextContext();return t.\u0275\u0275resetView(I.selectObject.emit(C))})("sortFieldChange",function(C){t.\u0275\u0275restoreView(D);const I=t.\u0275\u0275nextContext();return t.\u0275\u0275resetView(I.onSortFieldChange(C))})("importObject",function(C){t.\u0275\u0275restoreView(D);const I=t.\u0275\u0275nextContext();return t.\u0275\u0275resetView(I.importObject.emit(C))})("contentChange",function(C){t.\u0275\u0275restoreView(D);const I=t.\u0275\u0275nextContext();return t.\u0275\u0275resetView(I.contentChange.emit(C))})("prev",function(){t.\u0275\u0275restoreView(D);const C=t.\u0275\u0275nextContext();return t.\u0275\u0275resetView(C.goPrev())})("next",function(){t.\u0275\u0275restoreView(D);const C=t.\u0275\u0275nextContext();return t.\u0275\u0275resetView(C.goNext())}),t.\u0275\u0275elementEnd()}if(2&M){const D=t.\u0275\u0275nextContext();t.\u0275\u0275property("ngClass",D.placeholderFontClass)("config",D.config)("sortConfig",D.sortConfig)("objects",D.objects)("hasBorder",D.hasBorder)("hideGear",D.hideGear)("linkType",D.linkType)("context",D.context)("hidePaginationDetail",D.hidePaginationDetail)("showPaginator",D.showPaginator)("showThumbnails",D.showThumbnails)("selectable",D.selectable)("selectionConfig",D.selectionConfig)("importable",D.importable)("importConfig",D.importConfig)}}function E(M,P){if(1&M){const D=t.\u0275\u0275getCurrentView();t.\u0275\u0275elementStart(0,"ds-object-grid",4),t.\u0275\u0275listener("paginationChange",function(C){t.\u0275\u0275restoreView(D);const I=t.\u0275\u0275nextContext();
1return t.\u0275\u0275resetView(I.onPaginationChange(C))})("pageChange",function(C){t.\u0275\u0275restoreView(D);const I=t.\u0275\u0275nextContext();return t.\u0275\u0275resetView(I.onPageChange(C))})("pageSizeChange",function(C){t.\u0275\u0275restoreView(D);const I=t.\u0275\u0275nextContext();return t.\u0275\u0275resetView(I.onPageSizeChange(C))})("sortDirectionChange",function(C){t.\u0275\u0275restoreView(D);const I=t.\u0275\u0275nextContext();return t.\u0275\u0275resetView(I.onSortDirectionChange(C))})("sortFieldChange",function(C){t.\u0275\u0275restoreView(D);const I=t.\u0275\u0275nextContext();return t.\u0275\u0275resetView(I.onSortFieldChange(C))}),t.\u0275\u0275elementEnd()}if(2&M){const D=t.\u0275\u0275nextContext();t.\u0275\u0275property("config",D.config)("sortConfig",D.sortConfig)("objects",D.objects)("hideGear",D.hideGear)("linkType",D.linkType)("context",D.context)("hidePaginationDetail",D.hidePaginationDetail)("showPaginator",D.showPaginator)("showThumbnails",D.showThumbnails)}}function O(M,P){if(1&M){const D=t.\u0275\u0275getCurrentView();t.\u0275\u0275elementStart(0,"ds-object-detail",5),t.\u0275\u0275listener("contentChange",function(C){t.\u0275\u0275restoreView(D);const I=t.\u0275\u0275nextContext();return t.\u0275\u0275resetView(I.contentChange.emit(C))}),t.\u0275\u0275elementEnd()}if(2&M){const D=t.\u0275\u0275nextContext();t.\u0275\u0275property("config",D.config)("sortConfig",D.sortConfig)("objects",D.objects)("hideGear",D.hideGear)("linkType",D.linkType)("context",D.context)("hidePaginationDetail",D.hidePaginationDetail)("showPaginator",D.showPaginator)("showThumbnails",D.showThumbnails)}}let b=(()=>{class M{constructor(D,l,C,I,g){this.cdRef=D,this.route=l,this.router=C,this.elementRef=I,this.platformId=g,this.hasBorder=!1,this.hideGear=!1,this.selectable=!1,this.customEvent=new t.EventEmitter,this.deselectObject=new t.EventEmitter,this.selectObject=new t.EventEmitter,this.contentChange=new t.EventEmitter,this.importable=!1,this.importObject=new t.EventEmitter,this.hidePaginationDetail=!1,this.showPaginator=!0,this.pageChange=new t.EventEmitter,this.pageSizeChange=new t.EventEmitter,this.sortDirectionChange=new t.EventEmitter,this.paginationChange=new t.EventEmitter,this.sortFieldChange=new t.EventEmitter,this.prev=new t.EventEmitter,this.next=new t.EventEmitter,this.viewModeEnum=d.w}ngOnInit(){this.currentMode$=this.route.queryParams.pipe((0,n.U)(D=>(0,i.xb)(D?.view)?d.w.ListElement:D.view),(0,o.x)()),this.placeholderFontClass=(0,a.NF)(this.platformId)?(0,r.X)(this.elementRef.nativeElement.offsetWidth):"hide-placeholder-text"}onPageChange(D){this.pageChange.emit(D)}onPageSizeChange(D){this.pageSizeChange.emit(D)}onSortDirectionChange(D){this.sortDirectionChange.emit(D)}onSortFieldChange(D){this.sortFieldChange.emit(D)}onPaginationChange(D){this.paginationChange.emit(D)}goPrev(){this.prev.emit(!0)}goNext(){this.next.emit(!0)}}return M.\u0275fac=function(D){return new(D||M)(t.\u0275\u0275directiveInject(t.ChangeDetectorRef),t.\u0275\u0275directiveInject(p.gz),t.\u0275\u0275directiveInject(p.F0),t.\u0275\u0275directiveInject(t.ElementRef),t.\u0275\u0275directiveInject(t.PLATFORM_ID))},M.\u0275cmp=t.\u0275\u0275defineComponent({type:M,selectors:[["ds-viewable-collection"]],inputs:{objects:"objects",config:"config",sortConfig:"sortConfig",hasBorder:"hasBorder",hideGear:"hideGear",selectable:"selectable",selectionConfig:"selectionConfig",importable:"importable",importConfig:"importConfig",linkType:"linkType",context:"context",hidePaginationDetail:"hidePaginationDetail",showPaginator:"showPaginator",showThumbnails:"showThumbnails"},outputs:{customEvent:"customEvent",deselectObject:"deselectObject",selectObject:"selectObject",contentChange:"contentChange",importObject:"importObject",pageChange:"pageChange",pageSizeChange:"pageSizeChange",sortDirectionChange:"sortDirectionChange",paginationChange:"paginationChange",sortFieldChange:"sortFieldChange",prev:"prev",next:"next"},decls:6,vars:9,consts:[[3,"ngClass","config","sortConfig","objects","hasBorder","hideGear","linkType","context","hidePaginationDetail","showPaginator","showThumbnails","selectable","selectionConfig","importable","importConfig","paginationChange","pageChange","pageSizeChange","sortDirectionChange","deselectObject","selectObject","sortFieldChange","importObject","contentChange","prev","next",4,"ngIf"],[3,"config","sortConfig","objects","hideGear","linkType","context","hidePaginationDetail","showPaginator","showThumbnails","paginationChange","pageChange","pageSizeChange","sortDirectionChange","sortFieldChange",4,"ngIf"],[3,"config","sortConfig","objects","hideGear","linkType","context","hidePaginationDetail","showPaginator","showThumbnails","contentChange",4,"ngIf"],[3,"ngClass","config","sortConfig","objects","hasBorder","hideGear","linkType","context","hidePaginationDetail","showPaginator","showThumbnails","selectable","selectionConfig","importable","importConfig","paginationChange","pageChange","pageSizeChange","sortDirectionChange","deselectObject","selectObject","sortFieldChange","importObject","contentChange","prev","next"],[3,"config","sortConfig","objects","hideGear","linkType","context","hidePaginationDetail","showPaginator","showThumbnails","paginationChange","pageChange","pageSizeChange","sortDirectionChange","sortFieldChange"],[3,"config","sortConfig","objects","hideGear","linkType","context","hidePaginationDetail","showPaginator","showThumbnails","contentChange"]],template:function(D,l){1&D&&(t.\u0275\u0275template(0,v,1,15,"ds-themed-object-list",0),t.\u0275\u0275pipe(1,"async"),t.\u0275\u0275template(2,E,1,9,"ds-object-grid",1),t.\u0275\u0275pipe(3,"async"),t.\u0275\u0275template(4,O,1,9,"ds-object-detail",2),t.\u0275\u0275pipe(5,"async")),2&D&&(t.\u0275\u0275property("ngIf",t.\u0275\u0275pipeBind1(1,3,l.currentMode$)===l.viewM
1odeEnum.ListElement),t.\u0275\u0275advance(2),t.\u0275\u0275property("ngIf",t.\u0275\u0275pipeBind1(3,5,l.currentMode$)===l.viewModeEnum.GridElement),t.\u0275\u0275advance(2),t.\u0275\u0275property("ngIf",t.\u0275\u0275pipeBind1(5,7,l.currentMode$)===l.viewModeEnum.DetailedListElement))},dependencies:[a.mk,a.O5,h.M,m.B,_.P,a.Ov],styles:["[_nghost-%COMP%]{display:block}"]}),M})()},34460:(R,c,e)=>{"use strict";e.r(c),e.d(c,{AccessStatusBadgeComponent:()=>O});var t=e(54004),n=e(70262),o=e(39646),i=e(24702),d=e(21540),r=e(70706),p=(e(42621),e(14601)),h=e(94650),m=e(36895),_=e(89383);function v(b,M){if(1&b&&(h.\u0275\u0275elementStart(0,"span")(1,"span"),h.\u0275\u0275text(2),h.\u0275\u0275pipe(3,"translate"),h.\u0275\u0275elementEnd()()),2&b){const P=M.ngIf,D=h.\u0275\u0275nextContext(2);h.\u0275\u0275advance(1),h.\u0275\u0275classMap("badge badge-secondary access-status-list-element-badge "+D.accessStatusClass),h.\u0275\u0275advance(1),h.\u0275\u0275textInterpolate(h.\u0275\u0275pipeBind1(3,3,P))}}function E(b,M){if(1&b&&(h.\u0275\u0275elementContainerStart(0),h.\u0275\u0275template(1,v,4,5,"span",0),h.\u0275\u0275pipe(2,"async"),h.\u0275\u0275elementContainerEnd()),2&b){const P=h.\u0275\u0275nextContext();h.\u0275\u0275advance(1),h.\u0275\u0275property("ngIf",h.\u0275\u0275pipeBind1(2,1,P.accessStatus$))}}let O=(()=>{class b{constructor(P){this.accessStatusDataService=P,this.subs=[]}ngOnInit(){if(this.showAccessStatus=d.N.item.showAccessStatuses,this.object.type.toString()!==p.B.value||!this.showAccessStatus||null==this.object)return;const P=this.object;null==P.accessStatus&&(P.accessStatus=this.accessStatusDataService.findAccessStatusFor(P)),this.accessStatus$=P.accessStatus.pipe((0,t.U)(D=>401!==D.statusCode&&(0,i.Uh)(D.payload)?D.payload:[]),(0,t.U)(D=>(0,i.Uh)(D.status)?D.status:"unknown"),(0,t.U)(D=>`access-status.${D.toLowerCase()}.listelement.badge`),(0,n.K)(()=>(0,o.of)("access-status.unknown.listelement.badge"))),this.subs.push(this.accessStatus$.pipe((0,t.U)(D=>D.replace(/\./g,"-"))).subscribe(D=>{this.accessStatusClass=D}))}ngOnDestroy(){this.subs.filter(P=>(0,i.Uh)(P)).forEach(P=>P.unsubscribe())}}return b.\u0275fac=function(P){return new(P||b)(h.\u0275\u0275directiveInject(r.A))},b.\u0275cmp=h.\u0275\u0275defineComponent({type:b,selectors:[["ds-access-status-badge"]],inputs:{object:"object"},decls:1,vars:1,consts:[[4,"ngIf"]],template:function(P,D){1&P&&h.\u0275\u0275template(0,E,3,3,"ng-container",0),2&P&&h.\u0275\u0275property("ngIf",D.showAccessStatus)},dependencies:[m.O5,m.Ov,_.X$]}),b})()},97453:(R,c,e)=>{"use strict";e.d(c,{Q:()=>n});const n=new(e(3879)._)("accessStatus")},30115:(R,c,e)=>{"use strict";e.d(c,{e:()=>r});var t=e(25330),o=(e(42621),e(94650));function i(a,p){}const d=["*"];let r=(()=>{class a extends t.F{constructor(){super(...arguments),this.inAndOutputNames=["object"]}getComponentName(){return"AccessStatusBadgeComponent"}importThemedComponent(h){return e(29381)(`./${h}/app/shared/object-collection/shared/badges/access-status-badge/access-status-badge.component`)}importUnthemedComponent(){return Promise.resolve().then(e.bind(e,34460))}}return a.\u0275fac=function(){let p;return function(m){return(p||(p=o.\u0275\u0275getInheritedFactory(a)))(m||a)}}(),a.\u0275cmp=o.\u0275\u0275defineComponent({type:a,selectors:[["ds-themed-access-status-badge"]],inputs:{object:"object"},features:[o.\u0275\u0275InheritDefinitionFeature],ngContentSelectors:d,decls:5,vars:0,consts:[["vcr",""],["content",""]],template:function(h,m){1&h&&(o.\u0275\u0275projectionDef(),o.\u0275\u0275template(0,i,0,0,"ng-template",null,0,o.\u0275\u0275templateRefExtractor),o.\u0275\u0275elementStart(2,"div",null,1),o.\u0275\u0275projection(4),o.\u0275\u0275elementEnd())},encapsulation:2}),a})()},49533:(R,c,e)=>{"use strict";e.r(c),e.d(c,{BadgesComponent:()=>v});var t=e(84935),o=(e(42621),e(94650)),i=e(36895),d=e(56540),r=e(30115),a=e(77048),p=e(48052);function h(E,O){if(1&E&&(o.\u0275\u0275elementContainerStart(0),o.\u0275\u0275element(1,"ds-themed-my-dspace-status-badge",3),o.\u0275\u0275elementContainerEnd()),2&E){const b=o.\u0275\u0275nextContext();o.\u0275\u0275advance(1),o.\u0275\u0275property("context",b.context)}}function m(E,O){if(1&E&&(o.\u0275\u0275elementContainerStart(0),o.\u0275\u0275element(1,"ds-themed-access-status-badge",0),o.\u0275\u0275elementContainerEnd()),2&E){const b=o.\u0275\u0275nextContext();o.\u0275\u0275advance(1),o.\u0275\u0275property("object",b.object)}}const _=[t._.MyDSpaceArchived,t._.MyDSpaceWorkspace,t._.MyDSpaceWorkflow,t._.MyDSpaceDeclined,t._.MyDSpaceApproved,t._.MyDSpaceWaitingController,t._.MyDSpaceValidation];let v=(()=>{class E{constructor(){this.showAccessStatus=!1}get isMyDSpaceStatus(){return _.includes(this.context)}}return E.\u0275fac=function(b){return new(b||E)},E.\u0275cmp=o.\u0275\u0275defineComponent({type:E,selectors:[["ds-badges"]],inputs:{object:"object",context:"context",showAccessStatus:"showAccessStatus"},decls:5,vars:4,consts:[[3,"object"],[4,"ngIf"],[1,"pr-1",3,"object"],[3,"context"]],template:function(b,M){1&b&&(o.\u0275\u0275element(0,"ds-themed-status-badge",0),o.\u0275\u0275template(1,h,2,1,"ng-container",1),o.\u0275\u0275elementStart(2,"div"),o.\u0275\u0275element(3,"ds-themed-type-badge",2),o.\u0275\u0275template(4,m,2,1,"ng-container",1),o.\u0275\u0275elementEnd()),2&b&&(o.\u0275\u0275property("object",M.object),o.\u0275\u0275advance(1),o.\u0275\u0275property("ngIf",M.isMyDSpaceStatus),o.\u0275\u0275advance(2),o.\u0275\u0275property("object",M.object),o.\u0275\u0275advance(1),o.\u0275\u0275property("ngIf",M.showAccessStatus))},dependencies:[i.O5,d.K,r.e,a.o,p.p]}),E})()},80317:(R,c,e)=>{"use strict";e.r(c),e.d(c,{MyDSpaceStatusBadgeComponent:()=>i});var t=e(84935),n=e(94650),o=e(89383);let i=(()=>{class d{ngOnInit(){switch(this.badgeContent=this.context,this.badgeClass="text-light badge ",this.context){case t._.MyDSpaceValidation:this.badgeClass+="badge-validation";break;case t._.MyDSpaceWaitingController:this.badgeClass+="badge-waiting-controller";break;case t._.MyDSpaceWorkspace:this.badgeClass+="badge-workspace";break;case t._.MyDSpaceArchived:this.badgeClass+="badge-archived";break;case t._.MyDSpaceWorkflow:this.badgeClass+="badge-workflow"}}}return d.\u0275fac=function(a){return new(a||d)},d.\u0275cmp=n.\u0275\u0275defineComponent({type:d,selectors:[["ds-my-dspace-status-badge"]],inputs:{context:"context"},decls:4,vars:4,consts:[[3,"className"]],template:function(a,p){1&a&&(n.\u0275\u0275elementStart(0,"div")(1,"span",0),n.\u0275\u0275text(2),n.\u0275\u0275pipe(3,"translate"),n.\u0275\u0275elementEnd()()),2&a&&(n.\u0275\u0275advance(1),n.\u0275\u0275property("className",p.badgeClass),n.\u0275\u0275advance(1),n.\u0275\u0275textInterpolate1(" ",n.\u0275\u0275pipeBind1(3,2,"mydspace.status."+p.badgeContent)," "))},dependencies:[o.X$]}),d})()},56540:(R,c,e)=>{"use strict";e.d(c,{K:()=>d});var t=e(25330),n=e(94650);function o(r,a){}const i=["*"];let d=(()=>{class r extends t.F{constructor(){super(...arguments),this.inAndOutputNames=["context"]}getComponentName(){return"MyDSpaceStatusBadgeComponent"}importThemedComponent(p){return e(52614)(`./${p}/app/shared/object-collection/shared/badges/my-dspace-status-badge/my-dspace-status-badge.component`)}importUnthemedComponent(){return Promise.resolve().then(e.bind(e,80317))}}return r.\u0275fac=function(){let a;
1return function(h){return(a||(a=n.\u0275\u0275getInheritedFactory(r)))(h||r)}}(),r.\u0275cmp=n.\u0275\u0275defineComponent({type:r,selectors:[["ds-themed-my-dspace-status-badge"]],inputs:{context:"context"},features:[n.\u0275\u0275InheritDefinitionFeature],ngContentSelectors:i,decls:5,vars:0,consts:[["vcr",""],["content",""]],template:function(p,h){1&p&&(n.\u0275\u0275projectionDef(),n.\u0275\u0275template(0,o,0,0,"ng-template",null,0,n.\u0275\u0275templateRefExtractor),n.\u0275\u0275elementStart(2,"div",null,1),n.\u0275\u0275projection(4),n.\u0275\u0275elementEnd())},encapsulation:2}),r})()},89046:(R,c,e)=>{"use strict";e.r(c),e.d(c,{StatusBadgeComponent:()=>p}),e(42621);var n=e(24702),o=e(94650),i=e(36895),d=e(89383);function r(h,m){1&h&&(o.\u0275\u0275elementStart(0,"div",2)(1,"span",3),o.\u0275\u0275text(2),o.\u0275\u0275pipe(3,"translate"),o.\u0275\u0275elementEnd()()),2&h&&(o.\u0275\u0275advance(2),o.\u0275\u0275textInterpolate(o.\u0275\u0275pipeBind1(3,1,"item.badge.private")))}function a(h,m){1&h&&(o.\u0275\u0275elementStart(0,"div",4)(1,"span",5),o.\u0275\u0275text(2),o.\u0275\u0275pipe(3,"translate"),o.\u0275\u0275elementEnd()()),2&h&&(o.\u0275\u0275advance(2),o.\u0275\u0275textInterpolate(o.\u0275\u0275pipeBind1(3,1,"item.badge.withdrawn")))}let p=(()=>{class h{constructor(){this.privateBadge=!1,this.withdrawnBadge=!1}ngOnInit(){let _=this.object;(0,n.Uh)(_.indexableObject)&&(_=_.indexableObject);const v=(0,n.Uh)(_);this.privateBadge=v&&(0,n.Uh)(_.isDiscoverable)&&!_.isDiscoverable,this.withdrawnBadge=v&&(0,n.Uh)(_.isWithdrawn)&&_.isWithdrawn}}return h.\u0275fac=function(_){return new(_||h)},h.\u0275cmp=o.\u0275\u0275defineComponent({type:h,selectors:[["ds-status-badge"]],inputs:{object:"object"},decls:2,vars:2,consts:[["class","private-badge",4,"ngIf"],["class","withdrawn-badge",4,"ngIf"],[1,"private-badge"],[1,"badge","badge-danger"],[1,"withdrawn-badge"],[1,"badge","badge-warning"]],template:function(_,v){1&_&&(o.\u0275\u0275template(0,r,4,3,"div",0),o.\u0275\u0275template(1,a,4,3,"div",1)),2&_&&(o.\u0275\u0275property("ngIf",v.privateBadge),o.\u0275\u0275advance(1),o.\u0275\u0275property("ngIf",v.withdrawnBadge))},dependencies:[i.O5,d.X$],encapsulation:2}),h})()},48052:(R,c,e)=>{"use strict";e.d(c,{p:()=>r});var t=e(25330),o=(e(42621),e(94650));function i(a,p){}const d=["*"];let r=(()=>{class a extends t.F{constructor(){super(...arguments),this.inAndOutputNames=["object"]}getComponentName(){return"StatusBadgeComponent"}importThemedComponent(h){return e(15371)(`./${h}/app/shared/object-collection/shared/badges/status-badge/status-badge.component`)}importUnthemedComponent(){return Promise.resolve().then(e.bind(e,89046))}}return a.\u0275fac=function(){let p;return function(m){return(p||(p=o.\u0275\u0275getInheritedFactory(a)))(m||a)}}(),a.\u0275cmp=o.\u0275\u0275defineComponent({type:a,selectors:[["ds-themed-status-badge"]],inputs:{object:"object"},features:[o.\u0275\u0275InheritDefinitionFeature],ngContentSelectors:d,decls:5,vars:0,consts:[["vcr",""],["content",""]],template:function(h,m){1&h&&(o.\u0275\u0275projectionDef(),o.\u0275\u0275template(0,i,0,0,"ng-template",null,0,o.\u0275\u0275templateRefExtractor),o.\u0275\u0275elementStart(2,"div",null,1),o.\u0275\u0275projection(4),o.\u0275\u0275elementEnd())},encapsulation:2}),a})()},59332:(R,c,e)=>{"use strict";e.d(c,{k:()=>r});var t=e(25330),o=(e(42621),e(94650));function i(a,p){}const d=["*"];let r=(()=>{class a extends t.F{constructor(){super(...arguments),this.showAccessStatus=!1,this.inAndOutputNames=["object","context","showAccessStatus"]}getComponentName(){return"BadgesComponent"}importThemedComponent(h){return e(60544)(`./${h}/app/shared/object-collection/shared/badges/badges.component`)}importUnthemedComponent(){return Promise.resolve().then(e.bind(e,49533))}}return a.\u0275fac=function(){let p;return function(m){return(p||(p=o.\u0275\u0275getInheritedFactory(a)))(m||a)}}(),a.\u0275cmp=o.\u0275\u0275defineComponent({type:a,selectors:[["ds-themed-badges"]],inputs:{object:"object",context:"context",showAccessStatus:"showAccessStatus"},features:[o.\u0275\u0275InheritDefinitionFeature],ngContentSelectors:d,decls:5,vars:0,consts:[["vcr",""],["content",""]],template:function(h,m){1&h&&(o.\u0275\u0275projectionDef(),o.\u0275\u0275template(0,i,0,0,"ng-template",null,0,o.\u0275\u0275templateRefExtractor),o.\u0275\u0275elementStart(2,"div",null,1),o.\u0275\u0275projection(4),o.\u0275\u0275elementEnd())},encapsulation:2}),a})()}
1,77048:(R,c,e)=>{"use strict";e.d(c,{o:()=>r});var t=e(25330),o=(e(42621),e(94650));function i(a,p){}const d=["*"];let r=(()=>{class a extends t.F{constructor(){super(...arguments),this.inAndOutputNames=["object"]}getComponentName(){return"TypeBadgeComponent"}importThemedComponent(h){return e(84012)(`./${h}/app/shared/object-collection/shared/badges/type-badge/type-badge.component`)}importUnthemedComponent(){return Promise.resolve().then(e.bind(e,802))}}return a.\u0275fac=function(){let p;return function(m){return(p||(p=o.\u0275\u0275getInheritedFactory(a)))(m||a)}}(),a.\u0275cmp=o.\u0275\u0275defineComponent({type:a,selectors:[["ds-themed-type-badge"]],inputs:{object:"object"},features:[o.\u0275\u0275InheritDefinitionFeature],ngContentSelectors:d,decls:5,vars:0,consts:[["vcr",""],["content",""]],template:function(h,m){1&h&&(o.\u0275\u0275projectionDef(),o.\u0275\u0275template(0,i,0,0,"ng-template",null,0,o.\u0275\u0275templateRefExtractor),o.\u0275\u0275elementStart(2,"div",null,1),o.\u0275\u0275projection(4),o.\u0275\u0275elementEnd())},encapsulation:2}),a})()},802:(R,c,e)=>{"use strict";e.r(c),e.d(c,{TypeBadgeComponent:()=>p}),e(42621);var n=e(24702),o=e(15861),i=e(94650),d=e(36895),r=e(89383);function a(h,m){if(1&h&&(i.\u0275\u0275elementStart(0,"span")(1,"span",1),i.\u0275\u0275text(2),i.\u0275\u0275pipe(3,"translate"),i.\u0275\u0275elementEnd()()),2&h){const _=i.\u0275\u0275nextContext();i.\u0275\u0275advance(2),i.\u0275\u0275textInterpolate(i.\u0275\u0275pipeBind1(3,1,_.typeMessage))}}let p=(()=>{class h{set object(_){this._object=_;const v=this._object.getRenderTypes();if(!(0,n.xb)(v.length)){const E=v[0];if(E instanceof Function){const O=(0,o.l_)(_.type);this._typeMessage=(0,n.Uh)(O)?`${O.toLowerCase()}.listelement.badge`:`${E.name.toLowerCase()}.listelement.badge`}else this._typeMessage=`${E.toLowerCase()}.listelement.badge`}}get object(){return this._object}get typeMessage(){return this._typeMessage}}return h.\u0275fac=function(_){return new(_||h)},h.\u0275cmp=i.\u0275\u0275defineComponent({type:h,selectors:[["ds-type-badge"]],inputs:{object:"object"},decls:1,vars:1,consts:[[4,"ngIf"],[1,"badge","badge-info"]],template:function(_,v){1&_&&i.\u0275\u0275template(0,a,4,3,"span",0),2&_&&i.\u0275\u0275property("ngIf",v.typeMessage)},dependencies:[d.O5,r.X$],encapsulation:2}),h})()},90966:(R,c,e)=>{"use strict";e.d(c,{J:()=>n});var t=e(2764);class n extends t.l{}},80251:(R,c,e)=>{"use strict";e.d(c,{o:()=>d});var t=e(70655),n=e(2764),o=e(22979),i=e(50678);let d=class extends n.l{};d=(0,t.__decorate)([(0,i.D)(o.F)],d)},40332:(R,c,e)=>{"use strict";e.d(c,{o:()=>d});var t=e(70655),n=e(21721),o=e(2764),i=e(50678);let d=class extends o.l{};d=(0,t.__decorate)([(0,i.D)(n.S)],d)},69788:(R,c,e)=>{"use strict";e.d(c,{C:()=>i});var t=e(94650),o=(e(88648),e(89383));let i=(()=>{class d{constructor(){this.importObject=new t.EventEmitter}}return d.\u0275fac=function(a){return new(a||d)},d.\u0275cmp=t.\u0275\u0275defineComponent({type:d,selectors:[["ds-importable-list-item-control"]],inputs:{object:"object",importConfig:"importConfig"},outputs:{importObject:"importObject"},decls:4,vars:3,consts:[[1,"mr-2"],[1,"btn","btn-outline-primary","btn-sm","float-left",3,"title","click"],[1,"fas","fa-cloud-download-alt","fa-fw"]],template:function(a,p){1&a&&(t.\u0275\u0275elementStart(0,"div",0)(1,"button",1),t.\u0275\u0275listener("click",function(){return p.importObject.emit(p.object)}),t.\u0275\u0275pipe(2,"translate"),t.\u0275\u0275element(3,"i",2),t.\u0275\u0275elementEnd()()),2&a&&(t.\u0275\u0275advance(1),t.\u0275\u0275propertyInterpolate("title",t.\u0275\u0275pipeBind1(2,1,null==p.importConfig?null:p.importConfig.buttonLabel)))},dependencies:[o.X$],encapsulation:2}),d})()},84412:(R,c,e)=>{"use strict";e.d(c,{T:()=>r});var t=e(70655),n=e(2764),o=e(33609),i=e(63037),d=e(50678);let r=class extends n.l{getRenderTypes(){return this.indexableObject.getRenderTypes().map(p=>"string"==typeof p?p+"SearchResult":this.constructor)}};r=(0,t.__decorate)([(0,d.D)(o.c),(0,i.pm)(n.l)],r)},88648:(R,c,e)=>{"use strict";e.d(c,{J:()=>n});var t=e(63037);
1class n extends t.J{}},91538:(R,c,e)=>{"use strict";e.d(c,{p:()=>_});var t=e(94650),n=e(39841),o=e(39646),i=e(95698),r=(e(88648),e(62921)),a=e(8852),p=e(24702),h=e(55784);function m(v,E){}let _=(()=>{class v{constructor(O,b){this.cdr=O,this.themeService=b,this.showLabel=!0,this.contentChange=new t.EventEmitter,this.subs=[],this.inAndOutputNames=["object","index","linkType","listID","showLabel","showThumbnails","context","viewMode","value","hideBadges","contentChange"]}ngOnInit(){(0,p.xI)(this.compRef)&&this.instantiateComponent(this.object)}ngOnChanges(O){(0,p.xI)(this.compRef)?this.instantiateComponent(this.object,O):this.inAndOutputNames.some(b=>(0,p.Uh)(O[b]))&&(this.connectInputsAndOutputs(),this.compRef?.instance&&"ngOnChanges"in this.compRef.instance&&this.compRef.instance.ngOnChanges(O))}ngOnDestroy(){(0,p.Uh)(this.compRef)&&(this.compRef.destroy(),this.compRef=void 0),this.subs.filter(O=>(0,p.Uh)(O)).forEach(O=>O.unsubscribe())}instantiateComponent(O,b){const M=this.getComponent(O.getRenderTypes(),this.viewMode,this.context),P=this.listableObjectDirective.viewContainerRef;P.clear(),this.compRef=P.createComponent(M,{index:0,injector:void 0}),(0,p.Uh)(b)?this.ngOnChanges(b):this.connectInputsAndOutputs(),this.compRef.instance.reloadedObject&&(0,n.a)([(0,o.of)(b),this.compRef.instance.reloadedObject.pipe((0,i.q)(1))]).subscribe(([D,l])=>{l&&(this.compRef.destroy(),this.object=l,this.instantiateComponent(l,D),this.cdr.detectChanges(),this.contentChange.emit(l))})}getComponent(O,b,M){return(0,r.mt)(O,b,M,this.themeService.getThemeName())}connectInputsAndOutputs(){(0,p.UE)(this.inAndOutputNames)&&(0,p.Uh)(this.compRef)&&(0,p.Uh)(this.compRef.instance)&&this.inAndOutputNames.filter(O=>void 0!==this[O]).forEach(O=>{this.compRef.instance[O]=this[O]})}}return v.\u0275fac=function(O){return new(O||v)(t.\u0275\u0275directiveInject(t.ChangeDetectorRef),t.\u0275\u0275directiveInject(h.fY))},v.\u0275cmp=t.\u0275\u0275defineComponent({type:v,selectors:[["ds-listable-object-component-loader"]],viewQuery:function(O,b){if(1&O&&t.\u0275\u0275viewQuery(a.U,7),2&O){let M;t.\u0275\u0275queryRefresh(M=t.\u0275\u0275loadQuery())&&(b.listableObjectDirective=M.first)}},inputs:{object:"object",index:"index",viewMode:"viewMode",context:"context",linkType:"linkType",listID:"listID",showLabel:"showLabel",showThumbnails:"showThumbnails",value:"value"},outputs:{contentChange:"contentChange"},features:[t.\u0275\u0275NgOnChangesFeature],decls:1,vars:0,consts:[["dsListableObject",""]],template:function(O,b){1&O&&t.\u0275\u0275template(0,m,0,0,"ng-template",0)},dependencies:[a.U],styles:["[_nghost-%COMP%]{width:100%}"]}),v})()},62921:(R,c,e)=>{"use strict";e.d(c,{An:()=>M,QC:()=>a,d$:()=>v,mt:()=>E,t0:()=>p,tw:()=>m});var t=e(51121),n=e(84935),o=e(24702),i=e(21540),d=e(94650);const r=t.w.ListElement,a=n._.Any,p="*";class h{constructor(D,l,C){this.match=D,this.level=l,this.relevancy=C}isMoreRelevantThan(D){return!!(0,o.xI)(D)||!(D.level>this.level||D.level===this.level&&D.relevancy>this.relevancy)}isLessRelevantThan(D){return!this.isMoreRelevantThan(D)}}const m=new d.InjectionToken("getThemeConfigFor",{providedIn:"root",factory:()=>b}),_=new Map;function v(P,D,l=a,C=p){return function(g){(0,o.xI)(P)||((0,o.xI)(_.get(P))&&_.set(P,new Map),(0,o.xI)(_.get(P).get(D))&&_.get(P).set(D,new Map),(0,o.xI)(_.get(P).get(D).get(l))&&_.get(P).get(D).set(l,new Map),_.get(P).get(D).get(l).set(C,g))}}function E(P,D,l=a,C=p){let I=null;for(const g of P){const B=_.get(g);if((0,o.Uh)(B)){const L=O(B,[D,l,C],[r,a,p]);((0,o.xI)(I)||I.isLessRelevantThan(L))&&(I=L)}}return(0,o.Uh)(I)?I.match:null}function O(P,D,l){let C=P,I=-1,g=0;for(let B=0;B<D.length;B++){let L=l[B]===p?M(C,D[B]):C.get(D[B]);if((0,o.xI)(L)?(L=C.get(l[B]),-1===I&&(I=B)):g++,!(0,o.Uh)(L))return null;if(!(L instanceof Map))return new h(L,I>-1?I:B+1,g);C=L}return null}const b=P=>i.N.themes.find(D=>D.name===P),M=(P,D,l=[])=>{const C=P.get(D);if((0,o.Uh)(C))return C;{const I=b(D);if((0,o.Uh)(I)&&(0,o.UE)(I.extends)){const g=I.extends,B=[...l,D];if(l.includes(g))throw new Error("Theme extension cycle detected: "+[...B,g].join(" -> "));return M(P,g,B)}}}},8852:(R,c,e)=>{"use strict";e.d(c,{U:()=>n});var t=e(94650);let n=(()=>
1{class o{constructor(d){this.viewContainerRef=d}}return o.\u0275fac=function(d){return new(d||o)(t.\u0275\u0275directiveInject(t.ViewContainerRef))},o.\u0275dir=t.\u0275\u0275defineDirective({type:o,selectors:[["","dsListableObject",""]]}),o})()},88829:(R,c,e)=>{"use strict";e.d(c,{i:()=>r});var t=e(94650),n=e(8041),o=e(84935),i=e(51121),d=e(83616);let r=(()=>{class a{constructor(h){this.dsoNameService=h,this.showLabel=!0,this.reloadedObject=new t.EventEmitter,this.linkTypes=n.m,this.viewModes=i.w,this.contexts=o._}}return a.\u0275fac=function(h){return new(h||a)(t.\u0275\u0275directiveInject(d._))},a.\u0275cmp=t.\u0275\u0275defineComponent({type:a,selectors:[["ds-abstract-object-element"]],inputs:{object:"object",linkType:"linkType",listID:"listID",value:"value",index:"index",showLabel:"showLabel",showThumbnails:"showThumbnails",context:"context",viewMode:"viewMode"},outputs:{reloadedObject:"reloadedObject"},decls:0,vars:0,template:function(h,m){},encapsulation:2}),a})()},33413:(R,c,e)=>{"use strict";e.d(c,{_:()=>O});var t=e(94650),o=(e(88648),e(51117)),i=e(35684),d=e(95698),r=e(54004),a=e(36895),p=e(24006),h=e(98605),m=e(89383);function _(b,M){if(1&b){const P=t.\u0275\u0275getCurrentView();t.\u0275\u0275elementStart(0,"input",3,4),t.\u0275\u0275listener("ngModelChange",function(l){t.\u0275\u0275restoreView(P);const C=t.\u0275\u0275nextContext(2);return t.\u0275\u0275resetView(C.selectCheckbox(l))}),t.\u0275\u0275pipe(2,"translate"),t.\u0275\u0275pipe(3,"async"),t.\u0275\u0275elementEnd()}if(2&b){const P=t.\u0275\u0275reference(1),D=t.\u0275\u0275nextContext(2);t.\u0275\u0275property("name","checkbox"+D.index)("id","object"+D.index)("ngModel",t.\u0275\u0275pipeBind1(3,6,D.selected$)),t.\u0275\u0275attribute("aria-label",t.\u0275\u0275pipeBind1(2,4,P.checked?"selectable-list-item-control.deselect":"selectable-list-item-control.select"))}}function v(b,M){if(1&b){const P=t.\u0275\u0275getCurrentView();t.\u0275\u0275elementStart(0,"input",5),t.\u0275\u0275listener("click",function(){t.\u0275\u0275restoreView(P);const l=t.\u0275\u0275nextContext().ngVar,C=t.\u0275\u0275nextContext();return t.\u0275\u0275resetView(C.selectRadio(!l))}),t.\u0275\u0275pipe(1,"translate"),t.\u0275\u0275pipe(2,"async"),t.\u0275\u0275elementEnd()}if(2&b){const P=t.\u0275\u0275nextContext(2);t.\u0275\u0275property("name","radio"+P.index)("id","object"+P.index)("checked",t.\u0275\u0275pipeBind1(2,6,P.selected$)),t.\u0275\u0275attribute("aria-label",t.\u0275\u0275pipeBind1(1,4,"selectable-list-item-control.select"))}}function E(b,M){if(1&b&&(t.\u0275\u0275elementContainerStart(0),t.\u0275\u0275template(1,_,4,8,"input",1),t.\u0275\u0275template(2,v,3,8,"input",2),t.\u0275\u0275elementContainerEnd()),2&b){const P=t.\u0275\u0275nextContext();t.\u0275\u0275advance(1),t.\u0275\u0275property("ngIf",P.selectionConfig.repeatable),t.\u0275\u0275advance(1),t.\u0275\u0275property("ngIf",!P.selectionConfig.repeatable)}}let O=(()=>{class b{constructor(P){this.selectionService=P,this.deselectObject=new t.EventEmitter,this.selectObject=new t.EventEmitter}ngOnInit(){this.selected$=this.selectionService.isObjectSelected(this.selectionConfig.listId,this.object),this.selected$.pipe((0,i.T)(1)).subscribe(P=>{P?this.selectObject.emit(this.object):this.deselectObject.emit(this.object)})}selectCheckbox(P){P?this.selectionService.selectSingle(this.selectionConfig.listId,this.object):this.selectionService.deselectSingle(this.selectionConfig.listId,this.object)}selectRadio(P){P&&this.selectionService.getSelectableList(this.selectionConfig.listId).pipe((0,d.q)(1),(0,r.U)(l=>l?l.selection:[])).subscribe(l=>{l.forEach(C=>{this.selectionService.deselectSingle(this.selectionConfig.listId,C),this.deselectObject.emit(C)}),this.selectionService.selectSingle(this.selectionConfig.listId,this.object),this.selectObject.emit(this.object)})}}return b.\u0275fac=function(P){return new(P||b)(t.\u0275\u0275directiveInject(o.w))},b.\u0275cmp=t.\u0275\u0275defineComponent({type:b,selectors:[["ds-selectable-list-item-control"]],inputs:{object:"object",selectionConfig:"selectionConfig",index:"index"},outputs:{deselectObject:"deselectObject",selectObject:"selectObject"},decls:2,vars:3,consts:[[4,"ngVar"],["class","form-check-input","type","checkbox",3,"name","id","ngModel","ngModelChange",4,"ngIf"],["class","form-check-input mt-2","type","radio",3,"name","id","checked","click",4,"ngIf"],["type","checkbox",1,"form-check-input",3,"name","id","ngModel","ngModelChange"],["selectListItemCheckbox",""],["type","radio",1,"form-check-input","mt-2",3,"name","id","checked","click"]],template:function(P,D){1&P&&(t.\u0275\u0275template(0,E,3,2,"ng-container",0),t.\u0275\u0275pipe(1,"async")),2&P&&t.\u0275\u0275property("ngVar",t.\u0275\u0275pipeBind1(1,1,null==D.selectionService?null:D.selectionService.isObjectSelected(null==D.selectionConfig?null:D.selectionConfig.listId,D.object)))},dependencies:[a.O5,p.Wl,p.JJ,p.On,h.g,a.Ov,m.X$],encapsulation:2}),b})()},33457:(R,c,e)=>{"use strict";e.d(c,{H:()=>d});var t=e(88829),n=e(94569),o=e(24702),i=e(94650);let d=(()=>{class r extends t.i{ngOnInit(){(0,o.Uh)(this.object)&&(this.dso=this.object.indexableObject)}allMetadataValues(p){return n.S.allValues([this.object.hitHighlights,this.dso.metadata],p)}firstMetadataValue(p){return n.S.firstValue([this.object.hitHighlights,this.dso.metadata],p)}}return r.\u0275fac=function(){let a;
1return function(h){return(a||(a=i.\u0275\u0275getInheritedFactory(r)))(h||r)}}(),r.\u0275cmp=i.\u0275\u0275defineComponent({type:r,selectors:[["ds-search-result-detail-element"]],features:[i.\u0275\u0275InheritDefinitionFeature],decls:0,vars:0,template:function(p,h){},encapsulation:2}),r})()},8514:(R,c,e)=>{"use strict";e.d(c,{B:()=>O});var t=e(94650),n=e(28652),o=e(51121),i=e(36895),d=e(41971),r=e(48106),a=e(62697),p=e(91538),h=e(89383);function m(b,M){if(1&b){const P=t.\u0275\u0275getCurrentView();t.\u0275\u0275elementStart(0,"div",5)(1,"ds-listable-object-component-loader",6),t.\u0275\u0275listener("contentChange",function(l){t.\u0275\u0275restoreView(P);const C=t.\u0275\u0275nextContext(2);return t.\u0275\u0275resetView(C.contentChange.emit(l))}),t.\u0275\u0275elementEnd()()}if(2&b){const P=M.$implicit,D=t.\u0275\u0275nextContext(2);t.\u0275\u0275advance(1),t.\u0275\u0275property("object",P)("viewMode",D.viewMode)("context",D.context)("showThumbnails",D.showThumbnails)}}function _(b,M){if(1&b&&(t.\u0275\u0275elementStart(0,"div",3),t.\u0275\u0275template(1,m,2,4,"div",4),t.\u0275\u0275elementEnd()),2&b){const P=t.\u0275\u0275nextContext();t.\u0275\u0275property("@fadeIn",void 0),t.\u0275\u0275advance(1),t.\u0275\u0275property("ngForOf",null==P.objects||null==P.objects.payload?null:P.objects.payload.page)}}function v(b,M){1&b&&(t.\u0275\u0275element(0,"ds-error",7),t.\u0275\u0275pipe(1,"translate")),2&b&&t.\u0275\u0275propertyInterpolate("message",t.\u0275\u0275pipeBind1(1,1,"error.objects"))}function E(b,M){1&b&&(t.\u0275\u0275element(0,"ds-themed-loading",7),t.\u0275\u0275pipe(1,"translate")),2&b&&t.\u0275\u0275propertyInterpolate("message",t.\u0275\u0275pipeBind1(1,1,"loading.objects"))}let O=(()=>{class b{constructor(){this.viewMode=o.w.DetailedListElement,this.hideGear=!0,this.hidePagerWhenSinglePage=!0,this.showPaginator=!0,this.contentChange=new t.EventEmitter,this.prev=new t.EventEmitter,this.next=new t.EventEmitter,this.hidePaginationDetail=!0,this.change=new t.EventEmitter,this.pageChange=new t.EventEmitter,this.pageSizeChange=new t.EventEmitter,this.sortDirectionChange=new t.EventEmitter,this.paginationChange=new t.EventEmitter,this.sortFieldChange=new t.EventEmitter}set objects(P){this._objects=P}get objects(){return this._objects}onPageChange(P){this.pageChange.emit(P)}onPageSizeChange(P){this.pageSizeChange.emit(P)}onSortDirectionChange(P){this.sortDirectionChange.emit(P)}onSortFieldChange(P){this.sortFieldChange.emit(P)}onPaginationChange(P){this.paginationChange.emit(P)}goPrev(){this.prev.emit(!0)}goNext(){this.next.emit(!0)}}return b.\u0275fac=function(P){return new(P||b)},b.\u0275cmp=t.\u0275\u0275defineComponent({type:b,selectors:[["ds-object-detail"]],inputs:{config:"config",sortConfig:"sortConfig",hideGear:"hideGear",hidePagerWhenSinglePage:"hidePagerWhenSinglePage",linkType:"linkType",context:"context",showPaginator:"showPaginator",showThumbnails:"showThumbnails",objects:"objects",hidePaginationDetail:"hidePaginationDetail"},outputs:{contentChange:"contentChange",prev:"prev",next:"next",change:"change",pageChange:"pageChange",pageSizeChange:"pageSizeChange",sortDirectionChange:"sortDirectionChange",paginationChange:"paginationChange",sortFieldChange:"sortFieldChange"},decls:4,vars:11,consts:[[3,"paginationOptions","collectionSize","sortOptions","objects","hideGear","hidePaginationDetail","hidePagerWhenSinglePage","showPaginator","pageChange","pageSizeChange","sortDirectionChange","sortFieldChange","paginationChange","prev","next"],["class","row mt-2",4,"ngIf"],[3,"message",4,"ngIf"],[1,"row","mt-2"],["class","col",4,"ngFor","ngForOf"],[1,"col"],[3,"object","viewMode","context","showThumbnails","contentChange"],[3,"message"]],template:function(P,D){1&P&&(t.\u0275\u0275elementStart(0,"ds-pagination",0),t.\u0275\u0275listener("pageChange",function(C){return D.onPageChange(C)})("pageSizeChange",function(C){return D.onPageSizeChange(C)})("sortDirectionChange",function(C){return D.onSortDirectionChange(C)})("sortFieldChange",function(C){return D.onSortFieldChange(C)})("paginationChange",function(C){return D.onPaginationChange(C)})("prev",function(){return D.goPrev()})("next",function(){return D.goNext()}),t.\u0275\u0275template(1,_,2,2,"div",1),t.\u0275\u0275template(2,v,2,3,"ds-error",2),t.\u0275\u0275template(3,E,2,3,"ds-themed-loading",2),t.\u0275\u0275elementEnd()),2&P&&(t.\u0275\u0275property("paginationOptions",D.config)("collectionSize",null==D.objects||null==D.objects.payload?null:D.objects.payload.totalElements)("sortOptions",D.sortConfig)("objects",D.objects)("hideGear",D.hideGear)("hidePaginationDetail",D.hidePaginationDetail)("hidePagerWhenSinglePage",D.hidePagerWhenSinglePage)("showPaginator",D.showPaginator),t.\u0275\u0275advance(1),t.\u0275\u0275property("ngIf",null==D.objects?null:D.objects.hasSucceeded),t.\u0275\u0275advance(1),t.\u0275\u0275property("ngIf",D.objects.hasFailed),t.\u0275\u0275advance(1),t.\u0275\u0275property("ngIf",D.objects.isLoading))},dependencies:[i.sg,i.O5,d.q,r.Z,a.Q,p.p,h.X$],styles:["[_nghost-%COMP%] div.thumbnail>img{height:var(--ds-card-thumbnail-height);width:100%}"],data:{animation:[n.Ji]}}),b})()},28313:(R,c,e)=>{"use strict";e.d(c,{P:()=>B});var t=e(61135),n=e(39841),o=e(54004),i=e(71884),d=e(68675),r=e(94650),a=e(28652),p=e(24702),h=e(958),m=e(51121),_=e(36895),v=e(41971),E=e(48106),O=e(62697),b=e(91538),M=e(89383),P=e(73579);
1function D(L,V){if(1&L&&(r.\u0275\u0275elementStart(0,"div",7),r.\u0275\u0275pipe(1,"dsBrowserOnly"),r.\u0275\u0275element(2,"ds-listable-object-component-loader",8),r.\u0275\u0275elementEnd()),2&L){const Y=V.$implicit,X=r.\u0275\u0275nextContext(3);r.\u0275\u0275attribute("data-test",r.\u0275\u0275pipeBind1(1,6,"grid-object")),r.\u0275\u0275advance(2),r.\u0275\u0275property("object",Y)("viewMode",X.viewMode)("context",X.context)("showThumbnails",X.showThumbnails)("linkType",X.linkType)}}function l(L,V){if(1&L&&(r.\u0275\u0275elementStart(0,"div",5),r.\u0275\u0275template(1,D,3,8,"div",6),r.\u0275\u0275elementEnd()),2&L){const Y=V.$implicit;r.\u0275\u0275property("@fadeIn",void 0),r.\u0275\u0275advance(1),r.\u0275\u0275property("ngForOf",Y)}}function C(L,V){if(1&L&&(r.\u0275\u0275elementStart(0,"div",3),r.\u0275\u0275template(1,l,2,2,"div",4),r.\u0275\u0275pipe(2,"async"),r.\u0275\u0275elementEnd()),2&L){const Y=r.\u0275\u0275nextContext();r.\u0275\u0275advance(1),r.\u0275\u0275property("ngForOf",r.\u0275\u0275pipeBind1(2,1,Y.columns$))}}function I(L,V){1&L&&(r.\u0275\u0275element(0,"ds-error",9),r.\u0275\u0275pipe(1,"translate")),2&L&&r.\u0275\u0275propertyInterpolate("message",r.\u0275\u0275pipeBind1(1,1,"error.objects"))}function g(L,V){1&L&&(r.\u0275\u0275element(0,"ds-themed-loading",9),r.\u0275\u0275pipe(1,"translate")),2&L&&r.\u0275\u0275propertyInterpolate("message",r.\u0275\u0275pipeBind1(1,1,"loading.objects"))}let B=(()=>{class L{constructor(Y){this.hostWindow=Y,this.viewMode=m.w.GridElement,this.showPaginator=!0,this.hideGear=!1,this.hidePagerWhenSinglePage=!0,this.hidePaginationDetail=!1,this.change=new r.EventEmitter,this.pageChange=new r.EventEmitter,this.pageSizeChange=new r.EventEmitter,this.sortDirectionChange=new r.EventEmitter,this.paginationChange=new r.EventEmitter,this.sortFieldChange=new r.EventEmitter,this.prev=new r.EventEmitter,this.next=new r.EventEmitter,this.data={},this._objects$=new t.X(void 0)}set objects(Y){this._objects$.next(Y)}get objects(){return this._objects$.getValue()}ngOnInit(){const Y=this.hostWindow.widthCategory.pipe((0,o.U)(X=>{switch(X){case h.or.XL:case h.or.LG:return 3;case h.or.MD:case h.or.SM:return 2;default:return 1}}),(0,i.x)()).pipe((0,d.O)(3));this.columns$=(0,n.a)(Y,this._objects$).pipe((0,o.U)(([X,te])=>{if((0,p.Uh)(te)&&(0,p.Uh)(te.payload)&&(0,p.Uh)(te.payload.page)){const ee=[];return te.payload.page.forEach((ae,Q)=>{const j=Q%X;let k=ee[j];(0,p.xI)(k)&&(k=[]),ee[j]=[...k,ae]}),ee}return[]}))}onPageChange(Y){this.pageChange.emit(Y)}onPageSizeChange(Y){this.pageSizeChange.emit(Y)}onSortDirectionChange(Y){this.sortDirectionChange.emit(Y)}onSortFieldChange(Y){this.sortFieldChange.emit(Y)}onPaginationChange(Y){this.paginationChange.emit(Y)}goPrev(){this.prev.emit(!0)}goNext(){this.next.emit(!0)}}return L.\u0275fac=function(Y){return new(Y||L)(r.\u0275\u0275directiveInject(h.I3))},L.\u0275cmp=r.\u0275\u0275defineComponent({type:L,selectors:[["ds-object-grid"]],inputs:{config:"config",sortConfig:"sortConfig",showPaginator:"showPaginator",showThumbnails:"showThumbnails",hideGear:"hideGear",hidePagerWhenSinglePage:"hidePagerWhenSinglePage",linkType:"linkType",context:"context",hidePaginationDetail:"hidePaginationDetail",objects:"objects"},outputs:{change:"change",pageChange:"pageChange",pageSizeChange:"pageSizeChange",sortDirectionChange:"sortDirectionChange",paginationChange:"paginationChange",sortFieldChange:"sortFieldChange",prev:"prev",next:"next"},decls:4,vars:11,consts:[[3,"paginationOptions","collectionSize","sortOptions","hideGear","objects","hidePagerWhenSinglePage","hidePaginationDetail","showPaginator","pageChange","pageSizeChange","sortDirectionChange","sortFieldChange","paginationChange","prev","next"],["class","card-columns row",4,"ngIf"],[3,"message",4,"ngIf"],[1,"card-columns","row"],["class","card-column col col-sm-6 col-lg-4",4,"ngFor","ngForOf"],[1,"card-column","col","col-sm-6","col-lg-4"],["class","card-element",4,"ngFor","ngForOf"],[1,"card-element"],[3,"object","viewMode","context","showThumbnails","linkType"],[3,"message"]],template:function(Y,X){1&Y&&(r.\u0275\u0275elementStart(0,"ds-pagination",0),r.\u0275\u0275listener("pageChange",function(K){return X.onPageChange(K)})("pageSizeChange",function(K){return X.onPageSizeChange(K)})("sortDirectionChange",function(K){return X.onSortDirectionChange(K)})("sortFieldChange",function(K){return X.onSortFieldChange(K)})("paginationChange",function(K){return X.onPaginationChange(K)})("prev",function(){return X.goPrev()})("next",function(){return X.goNext()}),r.\u0275\u0275template(1,C,3,3,"div",1),r.\u0275\u0275template(2,I,2,3,"ds-error",2),r.\u0275\u0275template(3,g,2,3,"ds-themed-loading",2),r.\u0275\u0275elementEnd()),2&Y&&(r.\u0275\u0275property("paginationOptions",X.config)("collectionSize",null==X.objects||null==X.objects.payload?null:X.objects.payload.totalElements)("sortOptions",X.sortConfig)("hideGear",X.hideGear)("objects",X.objects)("hidePagerWhenSinglePage",X.hidePagerWhenSinglePage)("hidePaginationDetail",X.hidePaginationDetail)("showPaginator",X.showPaginator),r.\u0275\u0275advance(1),r.\u0275\u0275property("ngIf",null==X.objects?null:X.objects.hasSucceeded),r.\u0275\u0275advance(1),r.\u0275\u0275property("ngIf",X.objects.hasFailed),r.\u0275\u0275advance(1),r.\u0275\u0275property("ngIf",X.objects.isLoading))},dependencies:[_.sg,_.O5,v.q,E.Z,O.Q,b.p,_.Ov,M.X$,P.g],styles:["[_nghost-%COMP%] {--ds-wrapper-grid-spacing: calc(var(--bs-spacer) / 2)}[_nghost-%COMP%] div.card{margin-top:var(--ds-wrapper-grid-spacing);margin-bottom:var(--ds-wrapper-grid-spacing)}[_nghost-%COMP%] div.card div.thumbnail>.thumbnail-content{height:var(--ds-card-thumbnail-height);width:100%;display:block;min-width:100%;min-height:100%;object-fit:cover;object-position:50% 15%}.card-columns[_ngcontent-%COMP%]{margin-left:calc(-1 * var(--ds-wrapper-grid-spacing));margin-right:calc(-1 * var(--ds-wrapper-grid-spacing));column-gap:0}.card-columns[_ngcontent-%COMP%] .card-column[_ngcontent-%COMP%]{padding-left:var(--ds-wrapper-grid-spacing);padding-right:var(--ds-wrapper-grid-spacing)}"],data:{animation:[a.Ji]}}),L})()},82353:(R,c,e)=>{"use strict";e.d(c,{a:()=>X});var l,t=e(70655),n=e(30150),i=(e(22979),e(80251)),d=e(51121),r=e(62921),a=e(24702),p=e(93369),h=e(94476),m=e(29602),_=e(48532),v=e(83616),E=e(94650),O=e(36895),b=e(34793),M=e(20858),P=e(59332),D=e(89383);const C=function(te){return["/collections/",te]};function I(te,K){if(1&te&&(E.\u0275\u0275elementStart(0,"a",8),E.\u0275\u0275pipe(1,"translate"),E.\u0275\u0275element(2,"ds-themed-thumbnail",9),E.\u0275\u0275pipe(3,"async"),E.\u0275\u0275elementEnd()),2&te){const ee=E.\u0275\u0275nextContext();let ae;E.\u0275\u0275property("target",ee.linkType==ee.linkTypes.ExternalLink?"_blank":"_self")("routerLink",E.\u0275\u0275pureFunction1(10,C,ee.dso.id)),E.\u0275\u0275attribute("rel",ee.linkType==ee.linkTypes.ExternalLink?"noopener noreferrer":null)("title",E.\u0275\u0275pipeBind1(1,6,"search.results.view-result")),E.\u0275\u0275advance(2),E.\u0275\u0275property("thumbnail",null==(ae=E.\u0275\u0275pipeBind1(3,8,ee.dso.logo))?null:ae.payload)("limitWidth",!1)}}function g(te,K){if(1&te&&(E.\u0275\u0275elementStart(0,"span",10),E.\u0275\u0275element(1,"ds-themed-thumbnail",9),E.\u0275\u0275pipe(2,"async"),E.\u0275\u0275elementEnd()),2&te){const ee=E.\u0275\u0275nextContext();let ae;E.\u0275\u0275advance(1),E.\u0275\u0275property("thumbnail",null==(ae=E.\u0275\u0275pipeBind1(2,2,ee.dso.logo))?null:ae.payload)("limitWidth",!1)}}function B(te,K){if(1&te&&E.\u0275\u0275element(0,"ds-themed-badges",11),2&te){const ee=E.\u0275\u0275nextContext();E.\u0275\u0275property("object",ee.dso)("context",ee.context)}}function L(te,K){if(1&te&&(E.\u0275\u0275elementStart(0,"p",12),E.\u0275\u0275text(1),E.\u0275\u0275elementEnd()),2&te){const ee=E.\u0275\u0275nextContext();E.\u0275\u0275advance(1),E.\u0275\u0275textInterpolate(ee.dso.shortDescription)}}function V(te,K){if(1&te&&(E.\u0275\u0275elementStart(0,"div",13)(1,"a",14),E.\u0275\u0275text(2),E.\u0275\u0275pipe(3,"translate"),E.\u0275\u0275elementEnd()()),2&te){const ee=E.\u0275\u0275nextContext();E.\u0275\u0275advance(1),E.\u0275\u0275property("target",ee.linkType==ee.linkTypes.ExternalLink?"_blank":"_self")("routerLink",E.\u0275\u0275pureFunction1(6,C,ee.dso.id)),E.\u0275\u0275attribute("rel",ee.linkType==ee.linkTypes.ExternalLink?"noopener noreferrer":null),E.\u0275\u0275advance(1),E.\u0275\u0275textInterpolate(E.\u0275\u0275pipeBind1(3,4,"search.results.view-result"))}}
1let X=((l=class extends n.h{constructor(K,ee,ae,Q){super(K,ae,Q),this.dsoNameService=K,this.linkService=ee,this.truncatableService=ae,this.bitstreamDataService=Q}set dso(K){this._dso=K,(0,a.Uh)(this._dso)&&(0,a.xI)(this._dso.logo)&&this.linkService.resolveLink(this._dso,(0,p.l)("logo"))}get dso(){return this._dso}}).\u0275fac=function(K){return new(K||l)(E.\u0275\u0275directiveInject(v._),E.\u0275\u0275directiveInject(h.M),E.\u0275\u0275directiveInject(m.F),E.\u0275\u0275directiveInject(_.J))},l.\u0275cmp=E.\u0275\u0275defineComponent({type:l,selectors:[["ds-collection-search-result-grid-element"]],inputs:{dso:"dso"},features:[E.\u0275\u0275InheritDefinitionFeature],ngContentSelectors:["*"],decls:10,vars:6,consts:[[1,"card"],["class","card-img-top",3,"target","routerLink",4,"ngIf"],["class","card-img-top",4,"ngIf"],[1,"card-body"],[3,"object","context",4,"ngIf"],[1,"card-title"],["class","card-text",4,"ngIf"],["class","text-center",4,"ngIf"],[1,"card-img-top",3,"target","routerLink"],[3,"thumbnail","limitWidth"],[1,"card-img-top"],[3,"object","context"],[1,"card-text"],[1,"text-center"],[1,"lead","btn","btn-primary","viewButton",3,"target","routerLink"]],template:function(K,ee){1&K&&(E.\u0275\u0275projectionDef(),E.\u0275\u0275elementStart(0,"div",0),E.\u0275\u0275template(1,I,4,12,"a",1),E.\u0275\u0275template(2,g,3,4,"span",2),E.\u0275\u0275elementStart(3,"div",3),E.\u0275\u0275template(4,B,1,2,"ds-themed-badges",4),E.\u0275\u0275elementStart(5,"h4",5),E.\u0275\u0275text(6),E.\u0275\u0275elementEnd(),E.\u0275\u0275template(7,L,2,1,"p",6),E.\u0275\u0275template(8,V,4,8,"div",7),E.\u0275\u0275elementEnd(),E.\u0275\u0275projection(9),E.\u0275\u0275elementEnd()),2&K&&(E.\u0275\u0275advance(1),E.\u0275\u0275property("ngIf",ee.linkType!=ee.linkTypes.None),E.\u0275\u0275advance(1),E.\u0275\u0275property("ngIf",ee.linkType==ee.linkTypes.None),E.\u0275\u0275advance(2),E.\u0275\u0275property("ngIf",ee.showLabel),E.\u0275\u0275advance(2),E.\u0275\u0275textInterpolate(ee.dsoNameService.getName(ee.dso)),E.\u0275\u0275advance(1),E.\u0275\u0275property("ngIf",ee.dso.shortDescription),E.\u0275\u0275advance(1),E.\u0275\u0275property("ngIf",ee.linkType!=ee.linkTypes.None))},dependencies:[O.O5,b.rH,M.z,P.k,O.Ov,D.X$],styles:["[_nghost-%COMP%] em{font-weight:700;font-style:normal}"]}),l);X=(0,t.__decorate)([(0,r.d$)(i.o,d.w.GridElement),(0,t.__metadata)("design:paramtypes",[v._,h.M,m.F,_.J])],X)},82548:(R,c,e)=>{"use strict";e.d(c,{g:()=>X});var l,t=e(70655),o=(e(21721),e(30150)),i=e(40332),d=e(51121),r=e(62921),a=e(94476),p=e(29602),h=e(48532),m=e(24702),_=e(93369),v=e(83616),E=e(94650),O=e(36895),b=e(34793),M=e(20858),P=e(59332),D=e(89383);const C=function(te){return["/communities/",te]};function I(te,K){if(1&te&&(E.\u0275\u0275elementStart(0,"a",8),E.\u0275\u0275pipe(1,"translate"),E.\u0275\u0275element(2,"ds-themed-thumbnail",9),E.\u0275\u0275pipe(3,"async"),E.\u0275\u0275elementEnd()),2&te){const ee=E.\u0275\u0275nextContext();let ae;E.\u0275\u0275property("target",ee.linkType==ee.linkTypes.ExternalLink?"_blank":"_self")("routerLink",E.\u0275\u0275pureFunction1(10,C,ee.dso.id)),E.\u0275\u0275attribute("rel",ee.linkType==ee.linkTypes.ExternalLink?"noopener noreferrer":null)("title",E.\u0275\u0275pipeBind1(1,6,"search.results.view-result")),E.\u0275\u0275advance(2),E.\u0275\u0275property("thumbnail",null==(ae=E.\u0275\u0275pipeBind1(3,8,ee.dso.logo))?null:ae.payload)("limitWidth",!1)}}function g(te,K){if(1&te&&(E.\u0275\u0275elementStart(0,"span",10),E.\u0275\u0275element(1,"ds-themed-thumbnail",9),E.\u0275\u0275pipe(2,"async"),E.\u0275\u0275elementEnd()),2&te){const ee=E.\u0275\u0275nextContext();let ae;E.\u0275\u0275advance(1),E.\u0275\u0275property("thumbnail",null==(ae=E.\u0275\u0275pipeBind1(2,2,ee.dso.logo))?null:ae.payload)("limitWidth",!1)}}function B(te,K){if(1&te&&E.\u0275\u0275element(0,"ds-themed-badges",11),2&te){const ee=E.\u0275\u0275nextContext();E.\u0275\u0275property("object",ee.dso)("context",ee.context)}}function L(te,K){if(1&te&&(E.\u0275\u0275elementStart(0,"p",12),E.\u0275\u0275text(1),E.\u0275\u0275elementEnd()),2&te){const ee=E.\u0275\u0275nextContext();E.\u0275\u0275advance(1),E.\u0275\u0275textInterpolate(ee.dso.shortDescription)}}function V(te,K){if(1&te&&(E.\u0275\u0275elementStart(0,"div",13)(1,"a",14),E.\u0275\u0275text(2),E.\u0275\u0275pipe(3,"translate"),E.\u0275\u0275elementEnd()()),2&te){const ee=E.\u0275\u0275nextContext();E.\u0275\u0275advance(1),E.\u0275\u0275property("target",ee.linkType==ee.linkTypes.ExternalLink?"_blank":"_self")("routerLink",E.\u0275\u0275pureFunction1(6,C,ee.dso.id)),E.\u0275\u0275attribute("rel",ee.linkType==ee.linkTypes.ExternalLink?"noopener noreferrer":null),E.\u0275\u0275advance(1),E.\u0275\u0275textInterpolate(E.\u0275\u0275pipeBind1(3,4,"search.results.view-result"))}}
1let X=((l=class extends o.h{constructor(K,ee,ae,Q){super(K,ae,Q),this.dsoNameService=K,this.linkService=ee,this.truncatableService=ae,this.bitstreamDataService=Q}set dso(K){this._dso=K,(0,m.Uh)(this._dso)&&(0,m.xI)(this._dso.logo)&&this.linkService.resolveLink(this._dso,(0,_.l)("logo"))}get dso(){return this._dso}}).\u0275fac=function(K){return new(K||l)(E.\u0275\u0275directiveInject(v._),E.\u0275\u0275directiveInject(a.M),E.\u0275\u0275directiveInject(p.F),E.\u0275\u0275directiveInject(h.J))},l.\u0275cmp=E.\u0275\u0275defineComponent({type:l,selectors:[["ds-community-search-result-grid-element"]],inputs:{dso:"dso"},features:[E.\u0275\u0275InheritDefinitionFeature],ngContentSelectors:["*"],decls:10,vars:6,consts:[[1,"card"],["class","card-img-top",3,"target","routerLink",4,"ngIf"],["class","card-img-top",4,"ngIf"],[1,"card-body"],[3,"object","context",4,"ngIf"],[1,"card-title"],["class","card-text",4,"ngIf"],["class","text-center",4,"ngIf"],[1,"card-img-top",3,"target","routerLink"],[3,"thumbnail","limitWidth"],[1,"card-img-top"],[3,"object","context"],[1,"card-text"],[1,"text-center"],[1,"lead","btn","btn-primary","viewButton",3,"target","routerLink"]],template:function(K,ee){1&K&&(E.\u0275\u0275projectionDef(),E.\u0275\u0275elementStart(0,"div",0),E.\u0275\u0275template(1,I,4,12,"a",1),E.\u0275\u0275template(2,g,3,4,"span",2),E.\u0275\u0275elementStart(3,"div",3),E.\u0275\u0275template(4,B,1,2,"ds-themed-badges",4),E.\u0275\u0275elementStart(5,"h4",5),E.\u0275\u0275text(6),E.\u0275\u0275elementEnd(),E.\u0275\u0275template(7,L,2,1,"p",6),E.\u0275\u0275template(8,V,4,8,"div",7),E.\u0275\u0275elementEnd(),E.\u0275\u0275projection(9),E.\u0275\u0275elementEnd()),2&K&&(E.\u0275\u0275advance(1),E.\u0275\u0275property("ngIf",ee.linkType!=ee.linkTypes.None),E.\u0275\u0275advance(1),E.\u0275\u0275property("ngIf",ee.linkType==ee.linkTypes.None),E.\u0275\u0275advance(2),E.\u0275\u0275property("ngIf",ee.showLabel),E.\u0275\u0275advance(2),E.\u0275\u0275textInterpolate(ee.dsoNameService.getName(ee.dso)),E.\u0275\u0275advance(1),E.\u0275\u0275property("ngIf",ee.dso.shortDescription),E.\u0275\u0275advance(1),E.\u0275\u0275property("ngIf",ee.linkType!=ee.linkTypes.None))},dependencies:[O.O5,b.rH,M.z,P.k,O.Ov,D.X$],styles:["[_nghost-%COMP%] em{font-weight:700;font-style:normal}"]}),l);X=(0,t.__decorate)([(0,r.d$)(i.o,d.w.GridElement),(0,t.__metadata)("design:paramtypes",[v._,a.M,p.F,h.J])],X)},94034:(R,c,e)=>{"use strict";e.d(c,{n:()=>ae});var l,t=e(70655),n=e(10299),o=e(51121),i=e(62921),d=e(30150),r=e(84412),a=e(40747),p=e(83616),h=e(29602),m=e(48532),_=e(94650),v=e(36895),E=e(34793),O=e(20858),b=e(57416),M=e(84630),P=e(59332),D=e(89383);const C=function(Q){return[Q]};function I(Q,j){if(1&Q&&(_.\u0275\u0275elementStart(0,"a",11),_.\u0275\u0275pipe(1,"translate"),_.\u0275\u0275elementStart(2,"div"),_.\u0275\u0275element(3,"ds-themed-thumbnail",12),_.\u0275\u0275pipe(4,"async"),_.\u0275\u0275elementEnd()()),2&Q){const k=_.\u0275\u0275nextContext();_.\u0275\u0275property("target",k.linkType==k.linkTypes.ExternalLink?"_blank":"_self")("routerLink",_.\u0275\u0275pureFunction1(10,C,k.itemPageRoute)),_.\u0275\u0275attribute("rel",k.linkType==k.linkTypes.ExternalLink?"noopener noreferrer":null)("title",_.\u0275\u0275pipeBind1(1,6,"search.results.view-result")),_.\u0275\u0275advance(3),_.\u0275\u0275property("thumbnail",_.\u0275\u0275pipeBind1(4,8,null==k.dso?null:k.dso.thumbnail))("limitWidth",!1)}}function g(Q,j){if(1&Q&&(_.\u0275\u0275elementStart(0,"span",13)(1,"div"),_.\u0275\u0275element(2,"ds-themed-thumbnail",12),_.\u0275\u0275pipe(3,"async"),_.\u0275\u0275elementEnd()()),2&Q){const k=_.\u0275\u0275nextContext();_.\u0275\u0275advance(2),_.\u0275\u0275property("thumbnail",_.\u0275\u0275pipeBind1(3,2,null==k.dso?null:k.dso.thumbnail))("limitWidth",!1)}}function B(Q,j){if(1&Q&&_.\u0275\u0275element(0,"ds-themed-badges",14),2&Q){const k=_.\u0275\u0275nextContext();_.\u0275\u0275property("object",k.dso)("context",k.context)("showAccessStatus",!0)}}function L(Q,j){if(1&Q&&(_.\u0275\u0275elementStart(0,"span",19),_.\u0275\u0275text(1),_.\u0275\u0275elementEnd()),2&Q){const k=_.\u0275\u0275nextContext(2);_.\u0275\u0275advance(1),_.\u0275\u0275textInterpolate(k.firstMetadataValue("dc.date.issued"))}}function V(Q,j){if(1&Q&&(_.\u0275\u0275elementStart(0,"span"),_.\u0275\u0275text(1,", "),_.\u0275\u0275element(2,"span",20),_.\u0275\u0275elementEnd()),2&Q){const k=j.$implicit;_.\u0275\u0275advance(2),_.\u0275\u0275property("innerHTML",k,_.\u0275\u0275sanitizeHtml)}}const Y=function(){return["dc.contributor.author","dc.creator","dc.contributor.*"]};function X(Q,j){if(1&Q&&(_.\u0275\u0275elementStart(0,"ds-truncatable-part",15)(1,"p",16),_.\u0275\u0275template(2,L,2,1,"span",17),_.\u0275\u0275template(3,V,3,1,"span",18),_.\u0275\u0275elementEnd()()),2&Q){const k=_.\u0275\u0275nextContext();_.\u0275\u0275property("id",k.dso.id)("minLines",1),_.\u0275\u0275advance(2),_.\u0275\u0275property("ngIf",k.dso.hasMetadata("dc.date.issued")),_.\u0275\u0275advance(1),_.\u0275\u0275property("ngForOf",k.allMetadataValues(_.\u0275\u0275pureFunction0(4,Y)))}}function te(Q,j){if(1&Q&&(_.\u0275\u0275elementStart(0,"ds-truncatable-part",15)(1,"p",21),_.\u0275\u0275element(2,"span",20),_.\u0275\u0275elementEnd()()),2&Q){const k=_.\u0275\u0275nextContext();_.\u0275\u0275property("id",k.dso.id)("minLines",3),_.\u0275\u0275advance(2),_.\u0275\u0275property("innerHTML",k.firstMetadataValue("dc.description.abstract"),_.\u0275\u0275sanitizeHtml)}}function K(Q,j){if(1&Q&&(_.\u0275\u0275elementStart(0,"div",22)(1,"a",23),_.\u0275\u0275text(2),_.\u0275\u0275pipe(3,"translate"),_.\u0275\u0275elementEnd()()),2&Q){const k=_.\u0275\u0275nextContext();_.\u0275\u0275advance(1),_.\u0275\u0275property("target",k.linkType==k.linkTypes.ExternalLink?"_blank":"_self")("routerLink",_.\u0275\u0275pureFunction1(6,C,k.itemPageRoute)),_.\u0275\u0275attribute("rel",k.linkType==k.linkTypes.ExternalLink?"noopener noreferrer":null),_.\u0275\u0275advance(1),_.\u0275\u0275textInterpolate(_.\u0275\u0275pipeBind1(3,4,"search.results.view-result"))}}const ee=["*","*"];let ae=((l=class extends d.h{constructor(j,k,G){super(j,k,G),this.dsoNameService=j,this.truncatableService=k,this.bitstreamDataService=G}ngOnInit(){super.ngOnInit(),this.itemPageRoute=(0,a.Tt)(this.dso),this.dsoTitle=this.dsoNameService.getHitHighlights(this.object,this.dso)}}).\u0275fac=function(j){return new(j||l)(_.\u0275\u0275directiveInject(p._),_.\u0275\u0275directiveInject(h.F),_.\u0275\u0275directiveInject(m.J))},l.\u0275cmp=_.\u0275\u0275defineComponent({type:l,selectors:[["ds-item-search-result-grid-element"]],features:[_.\u0275\u0275InheritDefinitionFeature],ngContentSelectors:ee,decls:15,vars:14,consts:[[1,"card"],[1,"position-absolute","ml-1"],["class","card-img-top full-width",3,"target","routerLink",4,"ngIf"],["class","card-img-top full-width",4,"ngIf"],[1,"card-body"],[3,"object","context","showAccessStatus",4,"ngIf"],[3,"id"],["type","h4",3,"id","minLines"],[1,"card-title",3,"innerHTML"],[3,"id","minLines",4,"ngIf"],["class","text-center",4,"ngIf"],[1,"card-img-top","full-width",3,"target","routerLink"],[3,"thumbnail","limitWidth"],[1,"card-img-top","full-width"],[3,"object","context","showAccessStatus"],[3,"id","minLines"],[1,"item-authors","card-text","text-muted"],["class","item-date",4,"ngIf"],[4,"ngFor","ngForOf"],[1,"item-d
1ate"],[3,"innerHTML"],[1,"item-abstract","card-text"],[1,"text-center"],[1,"lead","btn","btn-primary","viewButton",3,"target","routerLink"]],template:function(j,k){1&j&&(_.\u0275\u0275projectionDef(ee),_.\u0275\u0275elementStart(0,"div",0),_.\u0275\u0275pipe(1,"async"),_.\u0275\u0275elementStart(2,"div",1),_.\u0275\u0275projection(3),_.\u0275\u0275elementEnd(),_.\u0275\u0275template(4,I,5,12,"a",2),_.\u0275\u0275template(5,g,4,4,"span",3),_.\u0275\u0275elementStart(6,"div",4),_.\u0275\u0275template(7,B,1,3,"ds-themed-badges",5),_.\u0275\u0275elementStart(8,"ds-truncatable",6)(9,"ds-truncatable-part",7),_.\u0275\u0275element(10,"h4",8),_.\u0275\u0275elementEnd(),_.\u0275\u0275template(11,X,4,5,"ds-truncatable-part",9),_.\u0275\u0275template(12,te,3,3,"ds-truncatable-part",9),_.\u0275\u0275elementEnd(),_.\u0275\u0275template(13,K,4,8,"div",10),_.\u0275\u0275elementEnd(),_.\u0275\u0275projection(14,1),_.\u0275\u0275elementEnd()),2&j&&(_.\u0275\u0275property("@focusShadow",_.\u0275\u0275pipeBind1(1,11,k.isCollapsed$)?"blur":"focus"),_.\u0275\u0275advance(4),_.\u0275\u0275property("ngIf",k.linkType!=k.linkTypes.None),_.\u0275\u0275advance(1),_.\u0275\u0275property("ngIf",k.linkType==k.linkTypes.None),_.\u0275\u0275advance(2),_.\u0275\u0275property("ngIf",k.showLabel),_.\u0275\u0275advance(1),_.\u0275\u0275property("id",k.dso.id),_.\u0275\u0275advance(1),_.\u0275\u0275property("id",k.dso.id)("minLines",3),_.\u0275\u0275advance(1),_.\u0275\u0275property("innerHTML",k.dsoTitle,_.\u0275\u0275sanitizeHtml),_.\u0275\u0275advance(1),_.\u0275\u0275property("ngIf",k.dso.hasMetadata(_.\u0275\u0275pureFunction0(13,Y))),_.\u0275\u0275advance(1),_.\u0275\u0275property("ngIf",k.dso.hasMetadata("dc.description.abstract")),_.\u0275\u0275advance(1),_.\u0275\u0275property("ngIf",k.linkType!=k.linkTypes.None))},dependencies:[v.sg,v.O5,E.rH,O.z,b.n,M.L,P.k,v.Ov,D.X$],data:{animation:[n.X]}}),l);ae=(0,t.__decorate)([(0,i.d$)("PublicationSearchResult",o.w.GridElement),(0,i.d$)(r.T,o.w.GridElement),(0,t.__metadata)("design:paramtypes",[p._,h.F,m.J])],ae)},30150:(R,c,e)=>{"use strict";e.d(c,{h:()=>p});var t=e(48532),n=e(94569),o=e(24702),i=e(88829),d=e(29602),r=e(83616),a=e(94650);let p=(()=>{class h extends i.i{constructor(_,v,E){super(_),this.dsoNameService=_,this.truncatableService=v,this.bitstreamDataService=E}ngOnInit(){(0,o.Uh)(this.object)&&(this.dso=this.object.indexableObject,this.isCollapsed$=this.isCollapsed())}allMetadataValues(_){return n.S.allValues([this.object.hitHighlights,this.dso.metadata],_)}firstMetadataValue(_){return n.S.firstValue([this.object.hitHighlights,this.dso.metadata],_)}isCollapsed(){return this.truncatableService.isCollapsed(this.dso.id)}}return h.\u0275fac=function(_){return new(_||h)(a.\u0275\u0275directiveInject(r._),a.\u0275\u0275directiveInject(d.F),a.\u0275\u0275directiveInject(t.J))},h.\u0275cmp=a.\u0275\u0275defineComponent({type:h,selectors:[["ds-search-result-grid-element"]],features:[a.\u0275\u0275InheritDefinitionFeature],decls:0,vars:0,template:function(_,v){},encapsulation:2}),h})()},18529:(R,c,e)=>{"use strict";e.d(c,{s:()=>n});const n=new(e(3879)._)("identifiers")},61005:(R,c,e)=>{"use strict";e.d(c,{h:()=>a});var r,t=e(70655),n=e(88648),o=e(19782),i=e(14296),d=e(41157);let a=((r=class extends n.J{constructor(h=d.k.Error,m="listable-notification-object.default-message",..._){super(),this.notificationType=h,this.message=m,this.type=i.k,this.renderTypes=_}getRenderTypes(){return[...this.renderTypes,this.constructor]}}).type=i.k,r);a=(0,t.__decorate)([o.KB,(0,t.__metadata)("design:paramtypes",[String,String,String])],a)},14296:(R,c,e)=>{"use strict";e.d(c,{k:()=>n});const n=new(e(3879)._)("listable-notification-object")},77049:(R,c,e)=>{"use strict";e.d(c,{X:()=>d});var t=e(40413),o=(e(27869),e(40747)),i=e(94650);let d=(()=>{class r extends t.S{ngOnInit(){this.itemPageRoute=(0,o.Tt)(this.mdRepresentation)}}return r.\u0275fac=function(){let a;return function(h){return(a||(a=i.\u0275\u0275getInheritedFactory(r)))(h||r)}}(),r.\u0275cmp=i.\u0275\u0275defineComponent({type:r,selectors:[["ds-item-metadata-representation-list-element"]],inputs:{mdRepresentation:"mdRepresentation"},features:[i.\u0275\u0275InheritDefinitionFeature],decls:0,vars:0,template:function(p,h){},encapsulation:2}),r})()},40413:(R,c,e)=>{"use strict";e.d(c,{S:()=>n});var t=e(94650);let n=(()=>{class o{isLink(){return new RegExp(/^https?\/\/.*/).test(this.mdRepresentation.getValue())}}return o.\u0275fac=function(d){return new(d||o)}
1,o.\u0275cmp=t.\u0275\u0275defineComponent({type:o,selectors:[["ds-metadata-representation-list-element"]],inputs:{context:"context",mdRepresentation:"mdRepresentation"},decls:0,vars:0,template:function(d,r){},encapsulation:2}),o})()},14399:(R,c,e)=>{"use strict";e.r(c),e.d(c,{ObjectListComponent:()=>M});var t=e(94650),n=e(28652),o=e(51117),i=e(51121),d=e(36895),r=e(62697),a=e(91538),p=e(33413),h=e(69788),m=e(73579);function _(P,D){if(1&P){const l=t.\u0275\u0275getCurrentView();t.\u0275\u0275elementStart(0,"ds-selectable-list-item-control",8),t.\u0275\u0275listener("deselectObject",function(I){t.\u0275\u0275restoreView(l);const g=t.\u0275\u0275nextContext(3);return t.\u0275\u0275resetView(g.deselectObject.emit(I))})("selectObject",function(I){t.\u0275\u0275restoreView(l);const g=t.\u0275\u0275nextContext(3);return t.\u0275\u0275resetView(g.selectObject.emit(I))}),t.\u0275\u0275elementEnd()}if(2&P){const l=t.\u0275\u0275nextContext(),C=l.index,I=l.$implicit,g=t.\u0275\u0275nextContext(2);t.\u0275\u0275property("index",C)("object",I)("selectionConfig",g.selectionConfig)}}function v(P,D){if(1&P){const l=t.\u0275\u0275getCurrentView();t.\u0275\u0275elementStart(0,"ds-importable-list-item-control",9),t.\u0275\u0275listener("importObject",function(I){t.\u0275\u0275restoreView(l);const g=t.\u0275\u0275nextContext(3);return t.\u0275\u0275resetView(g.importObject.emit(I))}),t.\u0275\u0275elementEnd()}if(2&P){const l=t.\u0275\u0275nextContext().$implicit,C=t.\u0275\u0275nextContext(2);t.\u0275\u0275property("object",l)("importConfig",C.importConfig)}}function E(P,D){if(1&P){const l=t.\u0275\u0275getCurrentView();t.\u0275\u0275elementStart(0,"li",4),t.\u0275\u0275pipe(1,"dsBrowserOnly"),t.\u0275\u0275template(2,_,1,3,"ds-selectable-list-item-control",5),t.\u0275\u0275template(3,v,1,2,"ds-importable-list-item-control",6),t.\u0275\u0275elementStart(4,"ds-listable-object-component-loader",7),t.\u0275\u0275listener("contentChange",function(I){t.\u0275\u0275restoreView(l);const g=t.\u0275\u0275nextContext(2);return t.\u0275\u0275resetView(g.contentChange.emit(I))}),t.\u0275\u0275elementEnd()()}if(2&P){const l=D.$implicit,C=D.index,I=D.last,g=t.\u0275\u0275nextContext(2);t.\u0275\u0275classProp("border-bottom",g.hasBorder&&!I),t.\u0275\u0275attribute("data-test",t.\u0275\u0275pipeBind1(1,11,"list-object")),t.\u0275\u0275advance(2),t.\u0275\u0275property("ngIf",g.selectable),t.\u0275\u0275advance(1),t.\u0275\u0275property("ngIf",g.importable),t.\u0275\u0275advance(1),t.\u0275\u0275property("object",l)("viewMode",g.viewMode)("index",C)("context",g.context)("linkType",g.linkType)("listID",null==g.selectionConfig?null:g.selectionConfig.listId)}}const O=function(P){return{"ml-4":P}};function b(P,D){if(1&P&&(t.\u0275\u0275elementStart(0,"ul",2),t.\u0275\u0275template(1,E,5,13,"li",3),t.\u0275\u0275elementEnd()),2&P){const l=t.\u0275\u0275nextContext();t.\u0275\u0275property("ngClass",t.\u0275\u0275pureFunction1(2,O,l.selectable)),t.\u0275\u0275advance(1),t.\u0275\u0275property("ngForOf",null==l.objects||null==l.objects.payload?null:l.objects.payload.page)}}let M=(()=>{class P{constructor(l){this.selectionService=l,this.viewMode=i.w.ListElement,this.hasBorder=!1,this.hideGear=!1,this.hidePagerWhenSinglePage=!0,this.selectable=!1,this.hidePaginationDetail=!1,this.importable=!1,this.showPaginator=!0,this.contentChange=new t.EventEmitter,this.prev=new t.EventEmitter,this.next=new t.EventEmitter,this.change=new t.EventEmitter,this.pageChange=new t.EventEmitter,this.pageSizeChange=new t.EventEmitter,this.sortDirectionChange=new t.EventEmitter,this.paginationChange=new t.EventEmitter,this.deselectObject=new t.EventEmitter,this.selectObject=new t.EventEmitter,this.importObject=new t.EventEmitter,this.sortFieldChange=new t.EventEmitter}set objects(l){this._objects=l}get objects(){return this._objects}onPageChange(l){this.pageChange.emit(l)}onPageSizeChange(l){this.pageSizeChange.emit(l)}onSortDirectionChange(l){this.sortDirectionChange.emit(l)}onSortFieldChange(l){this.sortFieldChange.emit(l)}onPaginationChange(l){this.paginationChange.emit(l)}goPrev(){this.prev.emit(!0)}goNext(){this.next.emit(!0)}}return P.\u0275fac=function(l){return new(l||P)(t.\u0275\u0275directiveInject(o.w))},P.\u0275cmp=t.\u0275\u0275defineComponent({type:P,selectors:[["ds-object-list"]],inputs:{config:"config",sortConfig:"sortConfig",hasBorder:"hasBorder",hideGear:"hideGear",hidePagerWhenSinglePage:"hidePagerWhenSinglePage",selectable:"selectable",selectionConfig:"selectionConfig",linkType:"linkType",context:"context",hidePaginationDetail:"hidePaginationDetail",importable:"importable",importConfig:"importConfig",showPaginator:"showPaginator",showThumbnails:"showThumbnails",objects:"objects"},outputs:{contentChange:"contentChange",prev:"prev",next:"next",change:"change",pageChange:"pageChange",pageSizeChange:"pageSizeChange",sortDirectionChange:"sortDirectionChange",paginationChange:"paginationChange",deselectObject:"deselectObject",selectObject:"selectObject",importObject:"importObject",sortFieldChange:"sortFieldChange"},decls:2,vars:9,consts:[[3,"paginationOptions","collectionSize","objects","sortOptions","hideGear","hidePagerWhenSinglePage","hidePaginationDetail","showPaginator","pageChange","pageSizeChange","sortDirectionChange","sortFieldChange","paginationChange","prev","next"],["class","list-unstyled",3,"ngClass",4,"ngIf"],[1,"list-unstyled",3,"ngClass"],["class","mt-4 mb-4 d-flex",3,"border-bottom",4,"ngFor","ngForOf"],[1,"mt-4","mb-4","d-flex"],[3,"index","object","selectionConfig","deselectObject","selectObject",4,"ngIf"],[3,"object","importConfig","importObject",4,"ngIf"],[3,"object","viewMode","index","context","linkType","listID","contentChange"],[3,"index","object","selectionConfig","deselectObject","selectObject"],[3,"object","importConfig","importObject"]],template:function(l,C){1&l&&(t.\u0275\u0275elementStart(0,"ds-pagination",0),t.\u0275\u0275listener("pageChange",function(g){return C.onPageChange(g)})("pageSizeChange",function(g){return C.onPageSizeChange(g)})("sortDirectionChange",function(g){return C.onSortDirectionChange(g)})("sortFieldChange",function(g){return C.onSortFieldChange(g)})("paginationChange",function(g){return C.onPaginationChange(g)})("prev",function(){return C.goPrev()})("next",function(){return C.goNext()}),t.\u0275\u0275template(1,b,2,4,"ul",1),t.\u0275\u0275elementEnd()),2&l&&(t.\u0275\u0275property("paginationOptions",C.config)("collectionSize",null==C.objects||null==C.objects.payload?null:C.objects.payload.totalElements)("objects",C.objects)("sortOptions",C.sortConfig)("hideGear",C.hideGear)("hidePagerWhenSinglePage",C.hidePagerWhenSinglePage)("hidePaginationDetail",C.hidePaginationDetail)("showPaginator",C.showPaginator),t.\u0275\u0275advance(1),t.\u0275\u0275property("ngIf",null==C.objects?null:C.objects.hasSucceeded))},dependencies:[d.mk,d.sg,d.O5,r.Q,a.p,p._,h.C,m.g],styles:["ds-selectable-list-item-control[_ngcontent-%COMP%]{z-index:1}"],data:{animation:[n.Ji]}}),P})()},60908:(R,c,e)=>{"use strict";e.d(c,{q:()=>P});var m,t=e(70655),n=e(79691),o=e(80251),i=e(51121),d=e(62921),r=e(94650),a=e(36895),p=e(34793),h=e(59332);function _(D,l){1&D&&r.\u0275\u0275element(0,"div",7)}function v(D,l){if(1&D&&r.\u0275\u0275element(0,"ds-themed-badges",8),2&D){const C=r.\u0275\u0275nextContext();r.\u0275\u0275property("object",C.dso)("context",C.context)}}const E=function(D){return[D]};function O(D,l){if(1&D&&r.\u0275\u0275element(0,"a",9),2&D){const C=r.\u0275\u0275nextContext();r.\u0275\u0275property("target",C.linkType==C.linkTypes.ExternalLink?"_blank":"_self")("routerLink",r.\u0275\u0275pureFunction1(4,E,"/collections/"+C.dso.id))("innerHTML",C.dsoTitle,r.\u0275\u0275sanitizeHtml),r.\u0275\u0275attribute("rel",C.linkType==C.linkTypes.ExternalLink?"noopener noreferrer":null)}}function b(D,l){if(1&D&&r.\u0275\u0275element(0,"span",10),2&D){const C=r.\u0275\u0275nextContext();r.\u0275\u0275property("innerHTML",C.dsoTitle,r.\u0275\u0275sanitizeHtml)}}function M(D,l){if(1&D&&r.\u0275\u0275element(0,"div",11),2&D){const C=r.\u0275\u0275nextContext();r.\u0275\u0275property("innerHTML",C.firstMetadataValue("dc.description.abstract"),r.\u0275\u0275sanitizeHtml)}}let P=((m=class extends n.c{ngOnInit(){super.ngOnInit(),this.showThumbnails=this.showThumbnails??this.appConfig.browseBy.showThumbnails}}).\u0275fac=function(){let D;
1return function(C){return(D||(D=r.\u0275\u0275getInheritedFactory(m)))(C||m)}}(),m.\u0275cmp=r.\u0275\u0275defineComponent({type:m,selectors:[["ds-collection-search-result-list-element"]],features:[r.\u0275\u0275InheritDefinitionFeature],decls:7,vars:6,consts:[[1,"row"],["class","offset-3 offset-md-2 ",4,"ngIf"],[3,"ngClass"],[3,"object","context",4,"ngIf"],["class","lead",3,"target","routerLink","innerHTML",4,"ngIf"],["class","lead",3,"innerHTML",4,"ngIf"],["class","text-muted abstract-text",3,"innerHTML",4,"ngIf"],[1,"offset-3","offset-md-2"],[3,"object","context"],[1,"lead",3,"target","routerLink","innerHTML"],[1,"lead",3,"innerHTML"],[1,"text-muted","abstract-text",3,"innerHTML"]],template:function(l,C){1&l&&(r.\u0275\u0275elementStart(0,"div",0),r.\u0275\u0275template(1,_,1,0,"div",1),r.\u0275\u0275elementStart(2,"div",2),r.\u0275\u0275template(3,v,1,2,"ds-themed-badges",3),r.\u0275\u0275template(4,O,1,6,"a",4),r.\u0275\u0275template(5,b,1,1,"span",5),r.\u0275\u0275template(6,M,1,1,"div",6),r.\u0275\u0275elementEnd()()),2&l&&(r.\u0275\u0275advance(1),r.\u0275\u0275property("ngIf",C.showThumbnails),r.\u0275\u0275advance(1),r.\u0275\u0275property("ngClass",C.showThumbnails?"col-9":"col-md-12"),r.\u0275\u0275advance(1),r.\u0275\u0275property("ngIf",C.showLabel),r.\u0275\u0275advance(1),r.\u0275\u0275property("ngIf",C.linkType!=C.linkTypes.None),r.\u0275\u0275advance(1),r.\u0275\u0275property("ngIf",C.linkType==C.linkTypes.None),r.\u0275\u0275advance(1),r.\u0275\u0275property("ngIf",C.dso.shortDescription))},dependencies:[a.mk,a.O5,p.rH,h.k],styles:["[_nghost-%COMP%] em{font-weight:700;font-style:normal}"]}),m);P=(0,t.__decorate)([(0,d.d$)(o.o,i.w.ListElement)],P)},31927:(R,c,e)=>{"use strict";e.d(c,{K:()=>P});var m,t=e(70655),n=e(79691),o=e(40332),i=e(51121),d=e(62921),r=e(94650),a=e(36895),p=e(34793),h=e(59332);function _(D,l){1&D&&r.\u0275\u0275element(0,"div",7)}function v(D,l){if(1&D&&r.\u0275\u0275element(0,"ds-themed-badges",8),2&D){const C=r.\u0275\u0275nextContext();r.\u0275\u0275property("object",C.dso)("context",C.context)}}const E=function(D){return[D]};function O(D,l){if(1&D&&r.\u0275\u0275element(0,"a",9),2&D){const C=r.\u0275\u0275nextContext();r.\u0275\u0275property("target",C.linkType==C.linkTypes.ExternalLink?"_blank":"_self")("routerLink",r.\u0275\u0275pureFunction1(4,E,"/communities/"+C.dso.id))("innerHTML",C.dsoTitle,r.\u0275\u0275sanitizeHtml),r.\u0275\u0275attribute("rel",C.linkType==C.linkTypes.ExternalLink?"noopener noreferrer":null)}}function b(D,l){if(1&D&&r.\u0275\u0275element(0,"span",10),2&D){const C=r.\u0275\u0275nextContext();r.\u0275\u0275property("innerHTML",C.dsoTitle,r.\u0275\u0275sanitizeHtml)}}function M(D,l){if(1&D&&r.\u0275\u0275element(0,"div",11),2&D){const C=r.\u0275\u0275nextContext();r.\u0275\u0275property("innerHTML",C.firstMetadataValue("dc.description.abstract"),r.\u0275\u0275sanitizeHtml)}}let P=((m=class extends n.c{ngOnInit(){super.ngOnInit(),this.showThumbnails=this.showThumbnails??this.appConfig.browseBy.showThumbnails}}).\u0275fac=function(){let D;return function(C){return(D||(D=r.\u0275\u0275getInheritedFactory(m)))(C||m)}}(),m.\u0275cmp=r.\u0275\u0275defineComponent({type:m,selectors:[["ds-community-search-result-list-element"]],features:[r.\u0275\u0275InheritDefinitionFeature],decls:7,vars:6,consts:[[1,"row"],["class","offset-3 offset-md-2",4,"ngIf"],[3,"ngClass"],[3,"object","context",4,"ngIf"],["class","lead",3,"target","routerLink","innerHTML",4,"ngIf"],["class","lead",3,"innerHTML",4,"ngIf"],["class","text-muted abstract-text",3,"innerHTML",4,"ngIf"],[1,"offset-3","offset-md-2"],[3,"object","context"],[1,"lead",3,"target","routerLink","innerHTML"],[1,"lead",3,"innerHTML"],[1,"text-muted","abstract-text",3,"innerHTML"]],template:function(l,C){1&l&&(r.\u0275\u0275elementStart(0,"div",0),r.\u0275\u0275template(1,_,1,0,"div",1),r.\u0275\u0275elementStart(2,"div",2),r.\u0275\u0275template(3,v,1,2,"ds-themed-badges",3),r.\u0275\u0275template(4,O,1,6,"a",4),r.\u0275\u0275template(5,b,1,1,"span",5),r.\u0275\u0275template(6,M,1,1,"div",6),r.\u0275\u0275elementEnd()()),2&l&&(r.\u0275\u0275advance(1),r.\u0275\u0275property("ngIf",C.showThumbnails),r.\u0275\u0275advance(1),r.\u0275\u0275property("ngClass",C.showThumbnails?"col-9":"col-md-12"),r.\u0275\u0275advance(1),r.\u0275\u0275property("ngIf",C.showLabel),r.\u0275\u0275advance(1),r.\u0275\u0275property("ngIf",C.linkType!=C.linkTypes.None),r.\u0275\u0275advance(1),r.\u0275\u0275property("ngIf",C.linkType==C.linkTypes.None),r.\u0275\u0275advance(1),r.\u0275\u0275property("ngIf",C.dso.shortDescription))},dependencies:[a.mk,a.O5,p.rH,h.k],styles:["[_nghost-%COMP%] em{font-weight:700;font-style:normal}"]}),m);P=(0,t.__decorate)([(0,d.d$)(o.o,i.w.ListElement)],P)},30892:(R,c,e)=>{"use strict";e.d(c,{h:()=>k});var O,t=e(70655),n=e(62921),o=e(51121),i=e(84412),d=e(79691),r=e(40747),a=e(94650),p=e(36895),h=e(34793),m=e(48181),_=e(57416),v=e(84630),E=e(59332);const b=function(G){return[G]};function M(G,ie){if(1&G&&(a.\u0275\u0275elementStart(0,"a",21),a.\u0275\u0275element(1,"ds-thumbnail",22),a.\u0275\u0275elementEnd()),2&G){const ne=a.\u0275\u0275nextContext().ngIf,q=a.\u0275\u0275nextContext(2);a.\u0275\u0275property("target",q.linkType==q.linkTypes.ExternalLink?"_blank":"_self")("routerLink",a.\u0275\u0275pureFunction1(5,b,q.itemPageRoute)),a.\u0275\u0275attribute("rel",q.linkType==q.linkTypes.ExternalLink?"noopener noreferrer":null),a.\u0275\u0275advance(1),a.\u
10275\u0275property("thumbnail",ne)("limitWidth",!0)}}function P(G,ie){if(1&G&&(a.\u0275\u0275elementStart(0,"span",23),a.\u0275\u0275element(1,"ds-thumbnail",22),a.\u0275\u0275elementEnd()),2&G){const ne=a.\u0275\u0275nextContext().ngIf;a.\u0275\u0275advance(1),a.\u0275\u0275property("thumbnail",ne)("limitWidth",!0)}}function D(G,ie){if(1&G&&(a.\u0275\u0275elementContainerStart(0),a.\u0275\u0275template(1,M,2,7,"a",19),a.\u0275\u0275template(2,P,2,2,"span",20),a.\u0275\u0275elementContainerEnd()),2&G){const ne=a.\u0275\u0275nextContext(2);a.\u0275\u0275advance(1),a.\u0275\u0275property("ngIf",ne.linkType!=ne.linkTypes.None),a.\u0275\u0275advance(1),a.\u0275\u0275property("ngIf",ne.linkType==ne.linkTypes.None)}}function l(G,ie){1&G&&(a.\u0275\u0275elementStart(0,"div",24),a.\u0275\u0275element(1,"i",25),a.\u0275\u0275elementEnd())}function C(G,ie){if(1&G&&(a.\u0275\u0275elementStart(0,"div",10),a.\u0275\u0275template(1,D,3,2,"ng-container",11),a.\u0275\u0275pipe(2,"async"),a.\u0275\u0275template(3,l,2,0,"ng-template",null,12,a.\u0275\u0275templateRefExtractor),a.\u0275\u0275elementStart(5,"div",13)(6,"div",14),a.\u0275\u0275namespaceSVG(),a.\u0275\u0275elementStart(7,"svg",15),a.\u0275\u0275element(8,"path",16),a.\u0275\u0275elementEnd(),a.\u0275\u0275namespaceHTML(),a.\u0275\u0275elementStart(9,"span",7),a.\u0275\u0275text(10),a.\u0275\u0275elementEnd()(),a.\u0275\u0275elementStart(11,"div",5),a.\u0275\u0275namespaceSVG(),a.\u0275\u0275elementStart(12,"svg",15),a.\u0275\u0275element(13,"path",17),a.\u0275\u0275elementEnd(),a.\u0275\u0275namespaceHTML(),a.\u0275\u0275elementStart(14,"span",7),a.\u0275\u0275text(15,"0"),a.\u0275\u0275elementEnd()(),a.\u0275\u0275elementStart(16,"div",5),a.\u0275\u0275namespaceSVG(),a.\u0275\u0275elementStart(17,"svg",15),a.\u0275\u0275element(18,"path",18),a.\u0275\u0275elementEnd(),a.\u0275\u0275namespaceHTML(),a.\u0275\u0275elementStart(19,"span",7),a.\u0275\u0275text(20,"0"),a.\u0275\u0275elementEnd()()()()),2&G){const ne=a.\u0275\u0275reference(4),q=a.\u0275\u0275nextContext();a.\u0275\u0275advance(1),a.\u0275\u0275property("ngIf",a.\u0275\u0275pipeBind1(2,11,null==q.dso?null:q.dso.thumbnail))("ngIfElse",ne),a.\u0275\u0275advance(5),a.\u0275\u0275styleProp("background-color",q.getSimilitudColor()+"22")("border-color",q.getSimilitudColor()),a.\u0275\u0275advance(1),a.\u0275\u0275styleProp("fill",q.getSimilitudColor()),a.\u0275\u0275advance(2),a.\u0275\u0275styleProp("color",q.getSimilitudColor()),a.\u0275\u0275advance(1),a.\u0275\u0275textInterpolate1(" ",q.similitudValue," ")}}function I(G,ie){if(1&G&&a.\u0275\u0275element(0,"ds-themed-badges",26),2&G){const ne=a.\u0275\u0275nextContext();a.\u0275\u0275property("object",ne.dso)("context",ne.context)("showAccessStatus",!0)}}function g(G,ie){if(1&G&&a.\u0275\u0275element(0,"a",34),2&G){const ne=a.\u0275\u0275nextContext(2);a.\u0275\u0275property("target",ne.linkType==ne.linkTypes.ExternalLink?"_blank":"_self")("routerLink",a.\u0275\u0275pureFunction1(4,b,ne.itemPageRoute))("innerHTML",ne.dsoTitle,a.\u0275\u0275sanitizeHtml),a.\u0275\u0275attribute("rel",ne.linkType==ne.linkTypes.ExternalLink?"noopener noreferrer":null)}}function B(G,ie){if(1&G&&a.\u0275\u0275element(0,"span",35),2&G){const ne=a.\u0275\u0275nextContext(2);a.\u0275\u0275property("innerHTML",ne.dsoTitle,a.\u0275\u0275sanitizeHtml)}}function L(G,ie){1&G&&(a.\u0275\u0275elementStart(0,"span"),a.\u0275\u0275text(1,"; "),a.\u0275\u0275elementEnd())}function V(G,ie){if(1&G&&(a.\u0275\u0275elementContainerStart(0),a.\u0275\u0275element(1,"i",38),a.\u0275\u0275text(2,"\xa0 "),a.\u0275\u0275element(3,"span",39),a.\u0275\u0275template(4,L,2,0,"span",32),a.\u0275\u0275elementContainerEnd()),2&G){const ne=ie.$implicit,q=ie.last;a.\u0275\u0275advance(3),a.\u0275\u0275property("innerHTML",ne,a.\u0275\u0275sanitizeHtml),a.\u0275\u0275advance(1),a.\u0275\u0275property("ngIf",!q)}}const Y=function(){return["dc.contributor.author","dc.creator","dc.contributor.*"]};function X(G,ie){if(1&G&&(a.\u0275\u0275elementContainerStart(0),a.\u0275\u0275elementStart(1,"span",36),a.\u0275\u0275template(2,V,5,2,"ng-container",37),a.\u
10275\u0275elementEnd(),a.\u0275\u0275text(3,"\xa0 "),a.\u0275\u0275elementContainerEnd()),2&G){const ne=a.\u0275\u0275nextContext(2);a.\u0275\u0275advance(2),a.\u0275\u0275property("ngForOf",ne.allMetadataValues(a.\u0275\u0275pureFunction0(1,Y)))}}function te(G,ie){1&G&&(a.\u0275\u0275elementContainerStart(0),a.\u0275\u0275text(1," ,\xa0 "),a.\u0275\u0275elementContainerEnd())}function K(G,ie){if(1&G&&(a.\u0275\u0275elementContainerStart(0),a.\u0275\u0275element(1,"i",40),a.\u0275\u0275text(2,"\xa0 "),a.\u0275\u0275element(3,"span",41),a.\u0275\u0275text(4,"\xa0 "),a.\u0275\u0275elementContainerEnd()),2&G){const ne=a.\u0275\u0275nextContext(2);a.\u0275\u0275advance(3),a.\u0275\u0275property("innerHTML",ne.dso.firstMetadataValue("dc.date.issued"),a.\u0275\u0275sanitizeHtml)}}function ee(G,ie){if(1&G&&(a.\u0275\u0275elementContainerStart(0),a.\u0275\u0275element(1,"i",42),a.\u0275\u0275text(2,"\xa0 "),a.\u0275\u0275element(3,"span",43),a.\u0275\u0275elementContainerEnd()),2&G){const ne=a.\u0275\u0275nextContext(3);a.\u0275\u0275advance(3),a.\u0275\u0275property("innerHTML",ne.dso.firstMetadataValue("dc.publisher"),a.\u0275\u0275sanitizeHtml)}}function ae(G,ie){if(1&G&&(a.\u0275\u0275elementContainerStart(0),a.\u0275\u0275template(1,ee,4,1,"ng-container",32),a.\u0275\u0275elementContainerEnd()),2&G){const ne=a.\u0275\u0275nextContext(2);a.\u0275\u0275advance(1),a.\u0275\u0275property("ngIf",ne.dso.firstMetadataValue("dc.publisher"))}}function Q(G,ie){if(1&G&&(a.\u0275\u0275elementStart(0,"div",44)(1,"ds-truncatable-part",31),a.\u0275\u0275element(2,"span",39),a.\u0275\u0275elementEnd()()),2&G){const ne=a.\u0275\u0275nextContext(2);a.\u0275\u0275advance(1),a.\u0275\u0275property("id",ne.dso.id)("minLines",3),a.\u0275\u0275advance(1),a.\u0275\u0275property("innerHTML",ne.firstMetadataValue("dc.description.abstract"),a.\u0275\u0275sanitizeHtml)}}function j(G,ie){if(1&G&&(a.\u0275\u0275elementStart(0,"ds-truncatable",27),a.\u0275\u0275template(1,g,1,6,"a",28),a.\u0275\u0275template(2,B,1,1,"span",29),a.\u0275\u0275elementStart(3,"span",30)(4,"ds-truncatable-part",31),a.\u0275\u0275template(5,X,4,2,"ng-container",32),a.\u0275\u0275template(6,te,2,0,"ng-container",32),a.\u0275\u0275template(7,K,5,1,"ng-container",32),a.\u0275\u0275template(8,ae,2,1,"ng-container",32),a.\u0275\u0275elementEnd()(),a.\u0275\u0275template(9,Q,3,3,"div",33),a.\u0275\u0275elementEnd()),2&G){const ne=a.\u0275\u0275nextContext();a.\u0275\u0275property("id",ne.dso.id),a.\u0275\u0275advance(1),a.\u0275\u0275property("ngIf",ne.linkType!=ne.linkTypes.None),a.\u0275\u0275advance(1),a.\u0275\u0275property("ngIf",ne.linkType==ne.linkTypes.None),a.\u0275\u0275advance(2),a.\u0275\u0275property("id",ne.dso.id)("minLines",1),a.\u0275\u0275advance(1),a.\u0275\u0275property("ngIf",ne.dso.allMetadata(a.\u0275\u0275pureFunction0(10,Y)).length>0),a.\u0275\u0275advance(1),a.\u0275\u0275property("ngIf",ne.dso.firstMetadataValue("dc.publisher")&&ne.dso.firstMetadataValue("dc.date.issued")),a.\u0275\u0275advance(1),a.\u0275\u0275property("ngIf",ne.dso.firstMetadataValue("dc.date.issued")),a.\u0275\u0275advance(1),a.\u0275\u0275property("ngIf",ne.dso.firstMetadataValue("dc.publisher")||ne.dso.firstMetadataValue("dc.date.issued")),a.\u0275\u0275advance(1),a.\u0275\u0275property("ngIf",ne.dso.firstMetadataValue("dc.description.abstract"))}}let k=((O=class extends d.c{ngOnInit(){super.ngOnInit(),this.showThumbnails=this.showThumbnails??this.appConfig.browseBy.showThumbnails,this.itemPageRoute=(0,r.Tt)(this.dso);const ie=this.dso.firstMetadataValue("thesis.similitud");this.similitudValue=ie||"0%"}getSimilitudColor(){const ie=parseInt(this.similitudValue.replace("%",""),10);return ie>25?"#d32f2f":ie>15?"#f57c00":"#1976d2"}}).\u0275fac=function(){let G;return function(ne){return(G||(G=a.\u0275\u0275getInheritedFactory(O)))(ne||O)}}(),O.\u0275cmp=a.\u0275\u0275defineComponent({type:O,selectors:[["ds-item-search-result-list-element"]],features:[a.\u0275\u0275InheritDefinitionFeature],decls:14,vars:4,consts:[[1,"row","principal",2,"border","1px solid #e9ecef","border-radius","8px"],["class","col-3
1col-md-2",4,"ngIf"],[3,"ngClass"],[1,"d-flex",2,"gap","6px","margin-top","12px"],["class","custom-mui-chip",3,"object","context","showAccessStatus",4,"ngIf"],[1,"custom-mui-chip"],[1,"fas","fa-unlock","mui-chip-icon-fa"],[1,"mui-chip-text"],[1,"fas","fa-graduation-cap","mui-chip-icon-fa"],[3,"id",4,"ngIf"],[1,"col-3","col-md-2"],[4,"ngIf","ngIfElse"],["noThumb",""],[1,"css-1mzerio-column"],[1,"custom-mui-chip","similarity-chip","mb-1"],["viewBox","0 0 24 24",1,"mui-chip-svg"],["d","M12 1L3 5v6c0 5.55 3.84 10.74 9 12 5.16-1.26 9-6.45 9-12V5l-9-4zm0 10.99h7c-.53 4.12-3.28 7.79-7 8.94V12H5V6.3l7-3.11v8.8z"],["d","M12 4.5C7 4.5 2.73 7.61 1 12c1.73 4.39 6 7.5 11 7.5s9.27-3.11 11-7.5c-1.73-4.39-6-7.5-11-7.5M12 17c-2.76 0-5-2.24-5-5s2.24-5 5-5 5 2.24 5 5-2.24 5-5 5m0-8c-1.66 0-3 1.34-3 3s1.34 3 3 3 3-1.34 3-3-1.34-3-3-3"],["d","M5 20h14v-2H5zM19 9h-4V3H9v6H5l7 7z"],["class","dont-break-out",3,"target","routerLink",4,"ngIf"],["class","dont-break-out",4,"ngIf"],[1,"dont-break-out",3,"target","routerLink"],[3,"thumbnail","limitWidth"],[1,"dont-break-out"],[1,"no-thumb-placeholder","dont-break-out"],[1,"fas","fa-file-alt"],[1,"custom-mui-chip",3,"object","context","showAccessStatus"],[3,"id"],["style","color: #0A1D56; font-weight: bold; ","class","lead item-list-title dont-break-out resaltar",3,"target","routerLink","innerHTML",4,"ngIf"],["class","lead item-list-title dont-break-out",3,"innerHTML",4,"ngIf"],[1,"text-muted"],[3,"id","minLines"],[4,"ngIf"],["class","item-list-abstract",4,"ngIf"],[1,"lead","item-list-title","dont-break-out","resaltar",2,"color","#0A1D56","font-weight","bold",3,"target","routerLink","innerHTML"],[1,"lead","item-list-title","dont-break-out",3,"innerHTML"],[1,"item-list-authors"],[4,"ngFor","ngForOf"],[1,"fas","fa-user"],[3,"innerHTML"],[1,"fas","fa-calendar"],[1,"item-list-date",3,"innerHTML"],[1,"fas","fa-university"],[1,"item-list-publisher",3,"innerHTML"],[1,"item-list-abstract"]],template:function(ie,ne){1&ie&&(a.\u0275\u0275elementStart(0,"div",0),a.\u0275\u0275template(1,C,21,13,"div",1),a.\u0275\u0275elementStart(2,"div",2)(3,"div",3),a.\u0275\u0275template(4,I,1,3,"ds-themed-badges",4),a.\u0275\u0275elementStart(5,"div",5),a.\u0275\u0275element(6,"i",6),a.\u0275\u0275elementStart(7,"span",7),a.\u0275\u0275text(8,"Acceso abierto"),a.\u0275\u0275elementEnd()(),a.\u0275\u0275elementStart(9,"div",5),a.\u0275\u0275element(10,"i",8),a.\u0275\u0275elementStart(11,"span",7),a.\u0275\u0275text(12,"Tesis pregrado"),a.\u0275\u0275elementEnd()()(),a.\u0275\u0275template(13,j,10,11,"ds-truncatable",9),a.\u0275\u0275elementEnd()()),2&ie&&(a.\u0275\u0275advance(1),a.\u0275\u0275property("ngIf",ne.showThumbnails),a.\u0275\u0275advance(1),a.\u0275\u0275property("ngClass",ne.showThumbnails?"col-9":"col-md-12"),a.\u0275\u0275advance(2),a.\u0275\u0275property("ngIf",ne.showLabel),a.\u0275\u0275advance(9),a.\u0275\u0275property("ngIf",null!=ne.object))},dependencies:[p.mk,p.sg,p.O5,h.rH,m.ThumbnailComponent,_.n,v.L,E.k,p.Ov],styles:[".item-list-supervision[_ngcontent-%COMP%] a[_ngcontent-%COMP%]{cursor:pointer}.principal[_ngcontent-%COMP%]{border:1px solid #e9ecef;border-radius:8px}.principal[_ngcontent-%COMP%]:hover{border:1px solid #037bf4;border-radius:8px}.fa-calendar[_ngcontent-%COMP%], .fa-user[_ngcontent-%COMP%], .fa-university[_ngcontent-%COMP%], .fa-file-alt[_ngcontent-%COMP%]{color:#337ccf}.resaltar[_ngcontent-%COMP%]{color:#0a1d56!important;font-weight:700!important}.resaltar[_ngcontent-%COMP%]:hover{color:#337ccf!important}.no-thumb-placeholder[_ngcontent-%COMP%]{display:flex;align-items:center;justify-content:center;height:100px;background:rgba(0,0,0,.05);border-radius:4px}.no-thumb-placeholder[_ngcontent-%COMP%] i[_ngcontent-%COMP%]{font-size:2rem;color:#ccc} .custom-mui-chip .badge-info, .custom-mui-chip .access-status{background-color:#1976d2!important;color:#fff!important;border:none!important}.custom-mui-chip[_ngcontent-%COMP%]{display:inline-flex;align-items:center;justify-content:center;height:22px;background-color:#1976d2;color:#fff;border-radius:12px;padding:0 8px;font-size:.7rem;font-weight:500;width:-moz-fit-content;width:fit-content}.css-1mzerio-column[_ngcontent-%COMP%]{gap:6px!important}.mui-chip-svg[_ngcontent-%COMP%]{width:14px;
1height:14px;fill:currentColor;margin-right:4px}.mui-chip-icon-fa[_ngcontent-%COMP%]{font-size:11px;margin-right:4px}"]}),O);k=(0,t.__decorate)([(0,n.d$)("PublicationSearchResult",o.w.ListElement),(0,n.d$)(i.T,o.w.ListElement)],k)},79691:(R,c,e)=>{"use strict";e.d(c,{c:()=>p});var t=e(24702),n=e(88829),o=e(29602),i=e(94569),d=e(83616),r=e(63645),a=e(94650);let p=(()=>{class h extends n.i{constructor(_,v,E){super(v),this.truncatableService=_,this.dsoNameService=v,this.appConfig=E}ngOnInit(){(0,t.Uh)(this.object)&&(this.dso=this.object.indexableObject,this.dsoTitle=this.dsoNameService.getHitHighlights(this.object,this.dso))}allMetadataValues(_){let v=i.S.allValues([this.dso.metadata],_),E=i.S.allValues([this.object.hitHighlights],_),O=E.map(b=>b.replace(/<\/?em>/g,""));for(let b=0;b<O.length;b++){let M=v.indexOf(O[b]);-1!==M&&(v[M]=E[b])}return v}firstMetadataValue(_){return i.S.firstValue([this.object.hitHighlights,this.dso.metadata],_)}isCollapsed(){return this.truncatableService.isCollapsed(this.dso.id)}}return h.\u0275fac=function(_){return new(_||h)(a.\u0275\u0275directiveInject(o.F),a.\u0275\u0275directiveInject(d._),a.\u0275\u0275directiveInject(r.q))},h.\u0275cmp=a.\u0275\u0275defineComponent({type:h,selectors:[["ds-search-result-list-element"]],features:[a.\u0275\u0275InheritDefinitionFeature],decls:0,vars:0,template:function(_,v){},encapsulation:2}),h})()},13160:(R,c,e)=>{"use strict";e.d(c,{I9:()=>n,f0:()=>a,gP:()=>r,iZ:()=>i,pI:()=>h,wC:()=>d});var t=e(79472);const n={SELECT:(0,t.d)("dspace/selectable-lists/SELECT"),SELECT_SINGLE:(0,t.d)("dspace/selectable-lists/SELECT_SINGLE"),DESELECT:(0,t.d)("dspace/selectable-lists/DESELECT"),DESELECT_SINGLE:(0,t.d)("dspace/selectable-lists/DESELECT_SINGLE"),SET_SELECTION:(0,t.d)("dspace/selectable-lists/SET_SELECTION"),DESELECT_ALL:(0,t.d)("dspace/selectable-lists/DESELECT_ALL")};class o{constructor(_,v){this.type=_,this.id=v}}class i extends o{constructor(_,v){super(n.SELECT,_),this.payload=v}}class d extends o{constructor(_,v){super(n.SELECT_SINGLE,_),this.payload={object:v}}}class r extends o{constructor(_,v){super(n.DESELECT_SINGLE,_),this.payload=v}}class a extends o{constructor(_,v){super(n.DESELECT,_),this.payload=v}}class h extends o{constructor(_){super(n.DESELECT_ALL,_)}}},51117:(R,c,e)=>{"use strict";e.d(c,{w:()=>m});var t=e(89653),n=e(54004),o=e(71884),i=e(27239),d=e(13160),r=e(24702),a=e(94650);const p=_=>_.selectableLists;let m=(()=>{class _{constructor(E){this.store=E}getSelectableList(E){return this.store.pipe((0,t.Ys)((_=>(0,i.GY)(_,p))(E)))}selectSingle(E,O){this.store.dispatch(new d.wC(E,O))}select(E,O){this.store.dispatch(new d.iZ(E,O))}deselectSingle(E,O){this.store.dispatch(new d.gP(E,O))}deselect(E,O){this.store.dispatch(new d.f0(E,O))}deselectAll(E){this.store.dispatch(new d.pI(E))}isObjectSelected(E,O){return this.getSelectableList(E).pipe((0,n.U)(b=>(0,r.Uh)(b)&&(0,r.UE)(b.selection)&&(0,r.Uh)(b.selection.find(M=>M.equals(O)))),(0,o.x)())}findSelectedByCondition(E,O){return this.getSelectableList(E).pipe((0,n.U)(b=>(0,r.Uh)(b)&&(0,r.UE)(b.selection)?b.selection.find(M=>O(M)):void 0))}}return _.\u0275fac=function(E){return new(E||_)(a.\u0275\u0275inject(t.yh))},_.\u0275prov=a.\u0275\u0275defineInjectable({token:_,factory:_.\u0275fac}),_})()},39283:(R,c,e)=>{"use strict";e.d(c,{l:()=>M});var t=e(79691),n=e(24702),o=e(39646),i=e(29602),d=e(94476),r=e(54004),a=e(40367),p=e(93369),h=e(84935),m=e(83616),_=e(94650),v=e(36895),E=e(84630),O=e(89383);function b(P,D){if(1&P&&(_.\u0275\u0275elementStart(0,"ds-truncatable-part",0),_.\u0275\u0275element(1,"div",4),_.\u0275\u0275elementEnd()),2&P){const l=_.\u0275\u0275nextContext();_.\u0275\u0275property("maxLines",1)("background",l.isCurrent()?"primary":"default")("showToggle",!1),_.\u0275\u0275advance(1),_.\u0275\u0275property("ngClass",l.isCurrent()?"text-light":"text-secondary")("innerHTML",l.description,_.\u0275\u0275sanitizeHtml)}}let M=(()=>{class P extends t.c{constructor(l,C,I){super(l,I,null),this.truncatableService=l,this.linkService=C,this.dsoNameService=I}ngOnInit(){super.ngOnInit(),(0,n.Uh)(this.dso)&&(this.parentTitle$=this.getParentTitle(),this.description=this.getDescription())}isCurrent(){return this.context===h._.SideBarSearchModalCurrent}getParentTitle(){return this.getParent().pipe((0,r.U)(l=>(0,n.Uh)(l)&&(0,n.Uh)(l.payload)?this.dsoNameService.getName(l.payload):void 0))}getParent(){if("function"==typeof this.dso.getParentLinkKey){const l=this.dso.getParentLinkKey();return this.linkService.resolveLink(this.dso,(0,p.l)(l))[l].pipe((0,a.s)(C=>C.hasSucceeded||204===C.statusCode))}return(0,o.of)(void 0)}getDescription(){const l=this.firstMetadataValue("dc.publisher"),C=this.firstMetadataValue("dc.date.issued"),I=this.allMetadataValues(["dc.contributor.author","dc.creator","dc.contributor.*"]);let g="";return((0,n.UE)(l)||(0,n.UE)(C))&&(g+="("),(0,n.UE)(l)&&(g+=l),(0,n.UE)(C)&&((0,n.UE)(l)&&(g+=", "),g+=C),(0,n.UE)(g)&&(g+=") "),(0,n.UE)(I)&&I.forEach((B,L)=>{g+=B,L<I.length-1&&(g+="; ")}),this.undefinedIfEmpty(g)}undefinedIfEmpty(l){return this.defaultIfEmpty(l,void 0)}defaultIfEmpty(l,C){return(0,n.UE)(l)?l:C}}return P.\u0275fac=function(l){return new(l||P)(_.\u0275\u0275directiveInject(i.F),_.\u0275\u0275directiveInject(d.M),_.\u0275\u0275directiveInject(m._))},P.\u0275cmp=_.\u0275\u0275defineComponent({type:P,selectors:[["ds-sidebar-search-list-element"]],features:[_.\u0275\u0275InheritDefinitionFeature],decls:8,vars:17,consts:[[3,"maxLines","background","showToggle"],[3,"ngClass","innerHTML"],[1,"font-weight-bold",3,"ngClass","innerHTML"],[3,"maxLines","background","showToggle",4,"ngIf"],[1,"text-secondary",3,"ngClass","innerHTML"]],template:function(l,C){1&l&&(_.\u0275\u0275elementStart(0,"ds-truncatable-part",0),_.\u0275\u0275element(1,"div",1),_.\u0275\u0275pipe(2,"async"),_.\u0275\u0275pipe(3,"async"),_.\u0275\u0275pipe(4,"translate"),_.\u0275\u0275elementEnd(),_.\u0275\u0275elementStart(5,"ds-truncatable-part",0),_.\u0275\u0275element(6,"div",2),_.\u0275\u0275elementEnd(),_.\u0275\u0275template(7,b,2,5,"ds-truncatable-part",3)),2&l&&(_.\u0275\u0275property("maxLines",1)("background",C.isCurrent()?"primary":"default")("showToggle",!1),_.\u0275\u0275advance(1),_.\u0275\u0275property("ngClass",C.isCurrent()?"text-light":"text-body")("innerHTML",_.\u0275\u0275pipeBind1(2,11,C.parentTitle$&&C.parentTitle$)?_.\u0275\u0275pipeBind1(3,13,C.parentTitle$):_.\u0275\u0275pipeBind1(4,15,"home.breadcrumbs"),_.\u0275\u0275sanitizeHtml),_.\u0275\u0275advance(4),_.\u0275\u0275property("maxLines",1)("background",C.isCurrent()?"primary":"default")("showToggle",!1),_.\u0275\u0275advance(1),_.\u0275\u0275property("ngClass",C.isCurrent()?"text-light":"text-primary")("innerHTML",C.dsoTitle,_.\u0275\u0275sanitizeHtml),_.\u0275\u0275advance(1),_.\u0275\u0275property("ngIf",C.description))},dependencies:[v.mk,v.O5,E.L,v.Ov,O.X$],encapsulation:2}),P})()},31960:(R,c,e)=>{"use strict";e.d(c,{M:()=>d});var t=e(94650),n=e(25330);function o(r,a){}const i=["*"];let d=(()=>{class r extends n.F{constructor(){super(...arguments),this.contentChange=new t.EventEmitter,this.prev=new t.EventEmitter,this.next=new t.EventEmitter,this.change=new t.EventEmitter,this.pageChange=new t.EventEmitter,this.pageSizeChange=new t.EventEmitter,this.sortDirectionChange=new t.EventEmitter,this.paginationChange=new t.EventEmitter,this.deselectObject=ne
1w t.EventEmitter,this.selectObject=new t.EventEmitter,this.importObject=new t.EventEmitter,this.sortFieldChange=new t.EventEmitter,this.inAndOutputNames=["config","sortConfig","hasBorder","hideGear","hidePagerWhenSinglePage","selectable","selectionConfig","linkType","context","hidePaginationDetail","importable","importConfig","showPaginator","showThumbnails","contentChange","prev","next","objects","change","pageChange","pageSizeChange","sortDirectionChange","paginationChange","deselectObject","selectObject","importObject","sortFieldChange"]}getComponentName(){return"ObjectListComponent"}importThemedComponent(p){return e(90745)(`./${p}/app/shared/object-list/object-list.component`)}importUnthemedComponent(){return Promise.resolve().then(e.bind(e,14399))}}return r.\u0275fac=function(){let a;return function(h){return(a||(a=t.\u0275\u0275getInheritedFactory(r)))(h||r)}}(),r.\u0275cmp=t.\u0275\u0275defineComponent({type:r,selectors:[["ds-themed-object-list"]],inputs:{config:"config",sortConfig:"sortConfig",hasBorder:"hasBorder",hideGear:"hideGear",hidePagerWhenSinglePage:"hidePagerWhenSinglePage",selectable:"selectable",selectionConfig:"selectionConfig",linkType:"linkType",context:"context",hidePaginationDetail:"hidePaginationDetail",importable:"importable",importConfig:"importConfig",showPaginator:"showPaginator",showThumbnails:"showThumbnails",objects:"objects"},outputs:{contentChange:"contentChange",prev:"prev",next:"next",change:"change",pageChange:"pageChange",pageSizeChange:"pageSizeChange",sortDirectionChange:"sortDirectionChange",paginationChange:"paginationChange",deselectObject:"deselectObject",selectObject:"selectObject",importObject:"importObject",sortFieldChange:"sortFieldChange"},features:[t.\u0275\u0275InheritDefinitionFeature],ngContentSelectors:i,decls:5,vars:0,consts:[["vcr",""],["content",""]],template:function(p,h){1&p&&(t.\u0275\u0275projectionDef(),t.\u0275\u0275template(0,o,0,0,"ng-template",null,0,t.\u0275\u0275templateRefExtractor),t.\u0275\u0275elementStart(2,"div",null,1),t.\u0275\u0275projection(4),t.\u0275\u0275elementEnd())},encapsulation:2}),r})()},13811:(R,c,e)=>{"use strict";e.d(c,{v:()=>V});var t=e(28074),n=e(24702),o=e(901),i=e(68285),d=e(54004),r=e(95376),a=e(94650),p=e(36895),h=e(24006),m=e(34793),_=e(41971),v=e(48106),E=e(62697),O=e(98605),b=e(25575),M=e(89383);function P(Y,X){if(1&Y){const te=a.\u0275\u0275getCurrentView();a.\u0275\u0275elementStart(0,"tr")(1,"td")(2,"input",11,12),a.\u0275\u0275listener("change",function(){const ae=a.\u0275\u0275restoreView(te).$implicit,Q=a.\u0275\u0275nextContext(3);return a.\u0275\u0275resetView(Q.switch(ae.dso.id))}),a.\u0275\u0275pipe(4,"translate"),a.\u0275\u0275pipe(5,"async"),a.\u0275\u0275pipe(6,"async"),a.\u0275\u0275elementEnd()(),a.\u0275\u0275elementStart(7,"td")(8,"a",13),a.\u0275\u0275text(9),a.\u0275\u0275elementEnd()()()}if(2&Y){const te=X.$implicit,K=a.\u0275\u0275reference(3),ee=a.\u0275\u0275nextContext(3);a.\u0275\u0275advance(2),a.\u0275\u0275propertyInterpolate("name",te.dso.id),a.\u0275\u0275property("disabled",!1===a.\u0275\u0275pipeBind1(5,8,te.canSelect$))("ngModel",a.\u0275\u0275pipeBind1(6,10,te.selected$)),a.\u0275\u0275attribute("aria-label",a.\u0275\u0275pipeBind1(4,6,K.checked?"collection.select.table.deselect":"collection.select.table.select")),a.\u0275\u0275advance(6),a.\u0275\u0275property("routerLink",te.route),a.\u0275\u0275advance(1),a.\u0275\u0275textInterpolate(ee.dsoNameService.getName(te.dso))}}function D(Y,X){if(1&Y&&(a.\u0275\u0275elementStart(0,"ds-pagination",5)(1,"div",6)(2,"table",7)(3,"thead")(4,"tr")(5,"th")(6,"span",8),a.\u0275\u0275text(7),a.\u0275\u0275pipe(8,"translate"),a.\u0275\u0275elementEnd()(),a.\u0275\u0275elementStart(9,"th",9),a.\u0275\u0275text(10),a.\u0275\u0275pipe(11,"translate"),a.\u0275\u0275elementEnd()()(),a.\u0275\u0275elementStart(12,"tbody"),a.\u0275\u0275template(13,P,10,12,"tr",10),a.\u0275\u0275pipe(14,"async"),a.\u0275\u0275elementEnd()()()()),2&Y){const te=a.\u0275\u0275nextContext().ngVar,K=a.\u0275\u0275nextContext();a.\u0275\u0275property("paginationOptions",K.paginationOptions)("sortOptions",K.sortOptions)("collectionSize",null==te||null==te.payload?null:te.payload.totalElements)("hidePagerWhenSinglePage",!0)("hideGear",!0),a.\u
10275\u0275advance(7),a.\u0275\u0275textInterpolate(a.\u0275\u0275pipeBind1(8,8,"collection.select.table.selected")),a.\u0275\u0275advance(3),a.\u0275\u0275textInterpolate(a.\u0275\u0275pipeBind1(11,10,"collection.select.table.title")),a.\u0275\u0275advance(3),a.\u0275\u0275property("ngForOf",a.\u0275\u0275pipeBind1(14,12,K.selectCollections$))}}function l(Y,X){1&Y&&(a.\u0275\u0275elementStart(0,"div",14),a.\u0275\u0275text(1),a.\u0275\u0275pipe(2,"translate"),a.\u0275\u0275elementEnd()),2&Y&&(a.\u0275\u0275advance(1),a.\u0275\u0275textInterpolate1(" ",a.\u0275\u0275pipeBind1(2,1,"collection.select.empty")," "))}function C(Y,X){1&Y&&(a.\u0275\u0275element(0,"ds-error",15),a.\u0275\u0275pipe(1,"translate")),2&Y&&a.\u0275\u0275propertyInterpolate("message",a.\u0275\u0275pipeBind1(1,1,"error.collections"))}function I(Y,X){1&Y&&(a.\u0275\u0275element(0,"ds-themed-loading",15),a.\u0275\u0275pipe(1,"translate")),2&Y&&a.\u0275\u0275propertyInterpolate("message",a.\u0275\u0275pipeBind1(1,1,"loading.collections"))}const g=function(Y,X){return{"btn-danger":Y,"btn-primary":X}};function B(Y,X){if(1&Y){const te=a.\u0275\u0275getCurrentView();a.\u0275\u0275elementStart(0,"div",16)(1,"button",17),a.\u0275\u0275listener("click",function(){a.\u0275\u0275restoreView(te);const ee=a.\u0275\u0275nextContext(2);return a.\u0275\u0275resetView(ee.onCancel())}),a.\u0275\u0275element(2,"i",18),a.\u0275\u0275text(3),a.\u0275\u0275pipe(4,"translate"),a.\u0275\u0275elementEnd(),a.\u0275\u0275elementStart(5,"button",19),a.\u0275\u0275listener("click",function(){a.\u0275\u0275restoreView(te);const ee=a.\u0275\u0275nextContext(2);return a.\u0275\u0275resetView(ee.confirmSelected())}),a.\u0275\u0275element(6,"i",20),a.\u0275\u0275text(7),a.\u0275\u0275pipe(8,"translate"),a.\u0275\u0275elementEnd()()}if(2&Y){const te=X.ngVar,K=a.\u0275\u0275nextContext(2);a.\u0275\u0275advance(3),a.\u0275\u0275textInterpolate1(" ",a.\u0275\u0275pipeBind1(4,4,K.cancelButton)," "),a.\u0275\u0275advance(2),a.\u0275\u0275property("ngClass",a.\u0275\u0275pureFunction2(8,g,K.dangerConfirm,!K.dangerConfirm))("dsBtnDisabled",0===(null==te?null:te.length)),a.\u0275\u0275advance(2),a.\u0275\u0275textInterpolate1(" ",a.\u0275\u0275pipeBind1(8,6,K.confirmButton)," ")}}function L(Y,X){if(1&Y&&(a.\u0275\u0275elementContainerStart(0),a.\u0275\u0275template(1,D,15,14,"ds-pagination",1),a.\u0275\u0275template(2,l,3,3,"div",2),a.\u0275\u0275template(3,C,2,3,"ds-error",3),a.\u0275\u0275template(4,I,2,3,"ds-themed-loading",3),a.\u0275\u0275template(5,B,9,11,"div",4),a.\u0275\u0275pipe(6,"async"),a.\u0275\u0275elementContainerEnd()),2&Y){const te=X.ngVar,K=a.\u0275\u0275nextContext();a.\u0275\u0275advance(1),a.\u0275\u0275property("ngIf",(null==te||null==te.payload?null:te.payload.totalElements)>0||(null==te||null==te.payload||null==te.payload.page?null:te.payload.page.length)>0),a.\u0275\u0275advance(1),a.\u0275\u0275property("ngIf",0===(null==te||null==te.payload?null:te.payload.totalElements)||0===(null==te||null==te.payload||null==te.payload.page?null:te.payload.page.length)),a.\u0275\u0275advance(1),a.\u0275\u0275property("ngIf",null==te?null:te.hasFailed),a.\u0275\u0275advance(1),a.\u0275\u0275property("ngIf",!te||(null==te?null:te.isLoading)),a.\u0275\u0275advance(1),a.\u0275\u0275property("ngVar",a.\u0275\u0275pipeBind1(6,5,K.selectedIds$))}}let V=(()=>{class Y extends t.a{ngOnInit(){super.ngOnInit(),(0,n.UE)(this.confirmButton)||(this.confirmButton="collection.select.confirm"),this.selectCollections$=this.dsoRD$.pipe((0,n.tz)(),(0,i.mc)(),(0,d.U)(te=>te.page.map(K=>Object.assign(new o.J,{dso:K,canSelect$:this.canSelect(K),selected$:this.getSelected(K.id),route:(0,r.MI)(K.id)}))))}}return Y.\u0275fac=function(){let X;return function(K){return(X||(X=a.\u0275\u0275getInheritedFactory(Y)))(K||Y)}}(),Y.\u0275cmp=a.\u0275\u0275defineComponent({type:Y,selectors:[["ds-collection-select"]],features:[a.\u0275\u0275InheritDefinitionFeature],decls:2,vars:3,consts:[[4,"ngVar"],[3,"paginationOptions","sortOptions","collectionSize","hidePagerWhenSinglePage","hideGear",4,"ngIf"],["class","alert alert-info w-100","role","alert",4,"ngIf"],[3,"message",4,"ngIf"],["class","space-children-mr float-right",4,"ngVar"],[3,"paginationOptions","sortOptions","collectionSize","hidePagerWhenSinglePage","hideGear"],[1,"table-responsive","mt-2"],["id","collection-select",1,"table","table-striped","table-hover"],[1,"sr-only"],["scope","col"],[4,"ngFor","ngForOf"],["type","checkbox",1,"collection-checkbox",3,"disabled","ngModel","name","change"],["selectCollectionBtn",""],[3,"routerLink"],["role","alert",1,"alert","alert-info","w-100"],[3,"message"],[1,"space-children-mr","float-right"],[1,"btn","btn-outline-secondary","collection-cancel",3,"click"],[1,"fas","fa-times"],[1,"btn","collection-confirm",3,"ngClass","dsBtnDisabled","click"],[1,"fas","fa-tras
1h"]],template:function(te,K){1&te&&(a.\u0275\u0275template(0,L,7,7,"ng-container",0),a.\u0275\u0275pipe(1,"async")),2&te&&a.\u0275\u0275property("ngVar",a.\u0275\u0275pipeBind1(1,1,K.dsoRD$))},dependencies:[p.mk,p.sg,p.O5,h.Wl,h.JJ,h.On,m.rH,_.q,v.Z,E.Q,O.g,b.v,p.Ov,M.X$],styles:["table[_ngcontent-%COMP%] tr[_ngcontent-%COMP%] th[_ngcontent-%COMP%]:first-of-type, table[_ngcontent-%COMP%] tr[_ngcontent-%COMP%] td[_ngcontent-%COMP%]:first-of-type{width:1rem!important}"]}),Y})()},68244:(R,c,e)=>{"use strict";e.d(c,{p:()=>Q});var t=e(28074),n=e(24702),o=e(68285),i=e(54004),d=e(40747),r=e(901),a=e(94650),p=e(36895),h=e(24006),m=e(34793),_=e(41971),v=e(48106),E=e(62697),O=e(98605),b=e(25575),M=e(89383);function P(j,k){1&j&&(a.\u0275\u0275elementStart(0,"th",9),a.\u0275\u0275text(1),a.\u0275\u0275pipe(2,"translate"),a.\u0275\u0275elementEnd()),2&j&&(a.\u0275\u0275advance(1),a.\u0275\u0275textInterpolate(a.\u0275\u0275pipeBind1(2,1,"item.select.table.collection")))}const D=function(j){return["/collections",j]};function l(j,k){if(1&j&&(a.\u0275\u0275elementStart(0,"a",14),a.\u0275\u0275text(1),a.\u0275\u0275elementEnd()),2&j){const G=a.\u0275\u0275nextContext().ngVar,ie=a.\u0275\u0275nextContext(5);a.\u0275\u0275property("routerLink",a.\u0275\u0275pureFunction1(2,D,null==G?null:G.id)),a.\u0275\u0275advance(1),a.\u0275\u0275textInterpolate1(" ",ie.dsoNameService.getName(G)," ")}}function C(j,k){if(1&j&&(a.\u0275\u0275elementStart(0,"span"),a.\u0275\u0275template(1,l,2,4,"a",15),a.\u0275\u0275elementEnd()),2&j){const G=k.ngVar;a.\u0275\u0275advance(1),a.\u0275\u0275property("ngIf",G)}}function I(j,k){if(1&j&&(a.\u0275\u0275elementStart(0,"td"),a.\u0275\u0275template(1,C,2,1,"span",0),a.\u0275\u0275pipe(2,"async"),a.\u0275\u0275elementEnd()),2&j){const G=a.\u0275\u0275nextContext().$implicit;let ie;a.\u0275\u0275advance(1),a.\u0275\u0275property("ngVar",null==(ie=a.\u0275\u0275pipeBind1(2,1,G.dso.owningCollection))?null:ie.payload)}}const g=function(){return["dc.contributor.author","dc.creator","dc.contributor.*"]};function B(j,k){if(1&j&&(a.\u0275\u0275elementStart(0,"span"),a.\u0275\u0275text(1),a.\u0275\u0275elementEnd()),2&j){const G=a.\u0275\u0275nextContext().$implicit;a.\u0275\u0275advance(1),a.\u0275\u0275textInterpolate(G.dso.firstMetadataValue(a.\u0275\u0275pureFunction0(1,g)))}}function L(j,k){if(1&j){const G=a.\u0275\u0275getCurrentView();a.\u0275\u0275elementStart(0,"tr")(1,"td")(2,"input",11,12),a.\u0275\u0275listener("change",function(){const q=a.\u0275\u0275restoreView(G).$implicit,oe=a.\u0275\u0275nextContext(3);return a.\u0275\u0275resetView(oe.switch(q.dso.id))}),a.\u0275\u0275pipe(4,"translate"),a.\u0275\u0275pipe(5,"async"),a.\u0275\u0275pipe(6,"async"),a.\u0275\u0275elementEnd()(),a.\u0275\u0275template(7,I,3,3,"td",13),a.\u0275\u0275elementStart(8,"td"),a.\u0275\u0275template(9,B,2,2,"span",13),a.\u0275\u0275elementEnd(),a.\u0275\u0275elementStart(10,"td")(11,"a",14),a.\u0275\u0275text(12),a.\u0275\u0275elementEnd()()()}if(2&j){const G=k.$implicit,ie=a.\u0275\u0275reference(3),ne=a.\u0275\u0275nextContext(3);a.\u0275\u0275advance(2),a.\u0275\u0275propertyInterpolate("name",G.dso.id),a.\u0275\u0275property("disabled",!1===a.\u0275\u0275pipeBind1(5,10,G.canSelect$))("ngModel",a.\u0275\u0275pipeBind1(6,12,G.selected$)),a.\u0275\u0275attribute("aria-label",a.\u0275\u0275pipeBind1(4,8,ie.checked?"item.select.table.deselect":"item.select.table.select")),a.\u0275\u0275advance(5),a.\u0275\u0275property("ngIf",!ne.hideCollection),a.\u0275\u0275advance(2),a.\u0275\u0275property("ngIf",G.dso.hasMetadata(a.\u0275\u0275pureFunction0(14,g))),a.\u0275\u0275advance(2),a.\u0275\u0275property("routerLink",G.route),a.\u0275\u0275advance(1),a.\u0275\u0275textInterpolate(ne.dsoNameService.getName(G.dso))}}function V(j,k){if(1&j&&(a.\u0275\u0275elementStart(0,"ds-pagination",4)(1,"div",5)(2,"table",6)(3,"thead")(4,"tr")(5,"th")(6,"span",7),a.\u0275\u0275text(7),a.\u0275\u0275pipe(8,"translate"),a.\u0275\u0275elementEnd()(),a.\u0275\u0275template(9,P,3,3,"th",8),a.\u0275\u0275elementStart(10,"th",9),a.\u0275\u0275text(11),a.\u0275\u0275pipe(12,"translate"),a.\u0275\u0275elementEnd(),a.\u
10275\u0275elementStart(13,"th",9),a.\u0275\u0275text(14),a.\u0275\u0275pipe(15,"translate"),a.\u0275\u0275elementEnd()()(),a.\u0275\u0275elementStart(16,"tbody"),a.\u0275\u0275template(17,L,13,15,"tr",10),a.\u0275\u0275pipe(18,"async"),a.\u0275\u0275elementEnd()()()()),2&j){const G=a.\u0275\u0275nextContext().ngVar,ie=a.\u0275\u0275nextContext();a.\u0275\u0275property("paginationOptions",ie.paginationOptions)("sortOptions",ie.sortOptions)("collectionSize",null==G||null==G.payload?null:G.payload.totalElements)("hidePagerWhenSinglePage",!0)("hideGear",!0),a.\u0275\u0275advance(7),a.\u0275\u0275textInterpolate(a.\u0275\u0275pipeBind1(8,10,"item.select.table.selected")),a.\u0275\u0275advance(2),a.\u0275\u0275property("ngIf",!ie.hideCollection),a.\u0275\u0275advance(2),a.\u0275\u0275textInterpolate(a.\u0275\u0275pipeBind1(12,12,"item.select.table.author")),a.\u0275\u0275advance(3),a.\u0275\u0275textInterpolate(a.\u0275\u0275pipeBind1(15,14,"item.select.table.title")),a.\u0275\u0275advance(3),a.\u0275\u0275property("ngForOf",a.\u0275\u0275pipeBind1(18,16,ie.selectItems$))}}function Y(j,k){1&j&&(a.\u0275\u0275elementStart(0,"div",16),a.\u0275\u0275text(1),a.\u0275\u0275pipe(2,"translate"),a.\u0275\u0275elementEnd()),2&j&&(a.\u0275\u0275advance(1),a.\u0275\u0275textInterpolate1(" ",a.\u0275\u0275pipeBind1(2,1,"item.select.empty")," "))}function X(j,k){1&j&&(a.\u0275\u0275element(0,"ds-error",17),a.\u0275\u0275pipe(1,"translate")),2&j&&a.\u0275\u0275propertyInterpolate("message",a.\u0275\u0275pipeBind1(1,1,"error.items"))}function te(j,k){1&j&&(a.\u0275\u0275element(0,"ds-themed-loading",17),a.\u0275\u0275pipe(1,"translate")),2&j&&a.\u0275\u0275propertyInterpolate("message",a.\u0275\u0275pipeBind1(1,1,"loading.items"))}const K=function(j,k){return{"btn-danger":j,"btn-primary":k}};function ee(j,k){if(1&j){const G=a.\u0275\u0275getCurrentView();a.\u0275\u0275elementStart(0,"div")(1,"button",18),a.\u0275\u0275listener("click",function(){a.\u0275\u0275restoreView(G);const ne=a.\u0275\u0275nextContext(2);return a.\u0275\u0275resetView(ne.onCancel())}),a.\u0275\u0275text(2),a.\u0275\u0275pipe(3,"translate"),a.\u0275\u0275elementEnd(),a.\u0275\u0275elementStart(4,"button",19),a.\u0275\u0275listener("click",function(){a.\u0275\u0275restoreView(G);const ne=a.\u0275\u0275nextContext(2);return a.\u0275\u0275resetView(ne.confirmSelected())}),a.\u0275\u0275text(5),a.\u0275\u0275pipe(6,"translate"),a.\u0275\u0275elementEnd()()}if(2&j){const G=k.ngVar,ie=a.\u0275\u0275nextContext(2);a.\u0275\u0275advance(2),a.\u0275\u0275textInterpolate(a.\u0275\u0275pipeBind1(3,4,ie.cancelButton)),a.\u0275\u0275advance(2),a.\u0275\u0275property("ngClass",a.\u0275\u0275pureFunction2(8,K,ie.dangerConfirm,!ie.dangerConfirm))("dsBtnDisabled",0===(null==G?null:G.length)),a.\u0275\u0275advance(1),a.\u0275\u0275textInterpolate1(" ",a.\u0275\u0275pipeBind1(6,6,ie.confirmButton)," ")}}function ae(j,k){if(1&j&&(a.\u0275\u0275elementContainerStart(0),a.\u0275\u0275template(1,V,19,18,"ds-pagination",1),a.\u0275\u0275template(2,Y,3,3,"div",2),a.\u0275\u0275template(3,X,2,3,"ds-error",3),a.\u0275\u0275template(4,te,2,3,"ds-themed-loading",3),a.\u0275\u0275template(5,ee,7,11,"div",0),a.\u0275\u0275pipe(6,"async"),a.\u0275\u0275elementContainerEnd()),2&j){const G=k.ngVar,ie=a.\u0275\u0275nextContext();a.\u0275\u0275advance(1),a.\u0275\u0275property("ngIf",(null==G||null==G.payload?null:G.payload.totalElements)>0),a.\u0275\u0275advance(1),a.\u0275\u0275property("ngIf",0===(null==G||null==G.payload?null:G.payload.totalElements)||0===(null==G||null==G.payload||null==G.payload.page?null:G.payload.page.length)),a.\u0275\u0275advance(1),a.\u0275\u0275property("ngIf",null==G?null:G.hasFailed),a.\u0275\u0275advance(1),a.\u0275\u0275property("ngIf",!G||(null==G?null:G.isLoading)),a.\u0275\u0275advance(1),a.\u0275\u0275property("ngVar",a.\u0275\u0275pipeBind1(6,5,ie.selectedIds$))}}let Q=(()=>{class j extends t.a{constructor(){super(...arguments),this.hideCollection=!1}ngOnInit(){super.ngOnInit(),(0,n.UE)(this.confirmButton)||(this.confirmButton="item.select.confirm"),this.selectItems$=this.dsoRD$.pipe((0,n.tz)(),(0,o.mc
1)(),(0,i.U)(G=>G.page.map(ie=>Object.assign(new r.J,{dso:ie,canSelect$:this.canSelect(ie),selected$:this.getSelected(ie.id),route:(0,d.Tt)(ie)}))))}}return j.\u0275fac=function(){let k;return function(ie){return(k||(k=a.\u0275\u0275getInheritedFactory(j)))(ie||j)}}(),j.\u0275cmp=a.\u0275\u0275defineComponent({type:j,selectors:[["ds-item-select"]],inputs:{hideCollection:"hideCollection"},features:[a.\u0275\u0275InheritDefinitionFeature],decls:2,vars:3,consts:[[4,"ngVar"],[3,"paginationOptions","sortOptions","collectionSize","hidePagerWhenSinglePage","hideGear",4,"ngIf"],["class","alert alert-info w-100","role","alert",4,"ngIf"],[3,"message",4,"ngIf"],[3,"paginationOptions","sortOptions","collectionSize","hidePagerWhenSinglePage","hideGear"],[1,"table-responsive","mt-2"],["id","item-select",1,"table","table-striped","table-hover"],[1,"sr-only"],["scope","col",4,"ngIf"],["scope","col"],[4,"ngFor","ngForOf"],["type","checkbox",1,"item-checkbox",3,"disabled","ngModel","name","change"],["selectItemBtn",""],[4,"ngIf"],[3,"routerLink"],[3,"routerLink",4,"ngIf"],["role","alert",1,"alert","alert-info","w-100"],[3,"message"],[1,"btn","btn-outline-secondary","item-cancel","float-left",3,"click"],[1,"btn","item-confirm","float-right",3,"ngClass","dsBtnDisabled","click"]],template:function(G,ie){1&G&&(a.\u0275\u0275template(0,ae,7,7,"ng-container",0),a.\u0275\u0275pipe(1,"async")),2&G&&a.\u0275\u0275property("ngVar",a.\u0275\u0275pipeBind1(1,1,ie.dsoRD$))},dependencies:[p.mk,p.sg,p.O5,h.Wl,h.JJ,h.On,m.rH,_.q,v.Z,E.Q,O.g,b.v,p.Ov,M.X$],encapsulation:2}),j})()},15636:(R,c,e)=>{"use strict";e.d(c,{F2:()=>i,Gy:()=>d,P4:()=>h,ee:()=>a,ie:()=>r,uZ:()=>p,xZ:()=>n});var t=e(79472);const n={INITIAL_DESELECT:(0,t.d)("dspace/object-select/INITIAL_DESELECT"),INITIAL_SELECT:(0,t.d)("dspace/object-select/INITIAL_SELECT"),SELECT:(0,t.d)("dspace/object-select/SELECT"),DESELECT:(0,t.d)("dspace/object-select/DESELECT"),SWITCH:(0,t.d)("dspace/object-select/SWITCH"),RESET:(0,t.d)("dspace/object-select/RESET")};class o{constructor(_,v){this.key=_,this.id=v}}class i extends o{constructor(){super(...arguments),this.type=n.INITIAL_DESELECT}}class d extends o{constructor(){super(...arguments),this.type=n.INITIAL_SELECT}}class r extends o{constructor(){super(...arguments),this.type=n.SELECT}}class a extends o{constructor(){super(...arguments),this.type=n.DESELECT}}class p extends o{constructor(){super(...arguments),this.type=n.SWITCH}}class h extends o{constructor(){super(...arguments),this.type=n.RESET}}},901:(R,c,e)=>{"use strict";e.d(c,{J:()=>t});class t{}},21549:(R,c,e)=>{"use strict";e.d(c,{z:()=>p});var t=e(89653),n=e(15636),o=e(24702),i=e(54004),d=e(94650);const r=_=>_.objectSelection,a=_=>_.objectSelection;let p=(()=>{class _{constructor(E,O){this.store=E,this.appStore=O}getSelected(E,O){return this.store.select(function h(_,v){return function m(_,v){return(0,t.P1)(r,E=>{if((0,o.Uh)(E)&&(0,o.Uh)(E[_]))return E[_][v]})}(_,v)}(E,O)).pipe((0,i.U)(b=>!!b&&b.checked))}getAllSelected(E){return this.appStore.select(a).pipe((0,i.U)(O=>(0,o.Uh)(O[E])?Object.keys(O[E]).filter(b=>O[E][b].checked):[]))}initialSelect(E,O){this.store.dispatch(new n.Gy(E,O))}initialDeselect(E,O){this.store.dispatch(new n.F2(E,O))}select(E,O){this.store.dispatch(new n.ie(E,O))}deselect(E,O){this.store.dispatch(new n.ee(E,O))}switch(E,O){this.store.dispatch(new n.uZ(E,O))}reset(E){this.store.dispatch(new n.P4(E,null))}}return _.\u0275fac=function(E){return new(E||_)(d.\u0275\u0275inject(t.yh),d.\u0275\u0275inject(t.yh))},_.\u0275prov=d.\u0275\u0275defineInjectable({token:_,factory:_.\u0275fac}),_})()},28074:(R,c,e)=>{"use strict";e.d(c,{a:()=>p});var t=e(94650),n=e(68675),o=e(95698),i=e(39646),d=e(21549),r=e(19937),a=e(83616);let p=(()=>{class h{constructor(_,v,E){this.objectSelectService=_,this.authorizationService=v,this.dsoNameService=E,this.cancel=new t.EventEmitter,this.confirm=new t.EventEmitter,this.dangerConfirm=!1}ngOnInit(){this.selectedIds$=this.objectSelectService.getAllSelected(this.key)}ngOnDestroy(){this.objectSelectService.reset(this.key)}switch(_){this.objectSelectService.switch(this.key,_)}getSelected(_){return this.objectSelectService.getSelected(this.key,_)}canSelect(_){return this.featureId?this.authorizationService.isAuthorized(this.featureId,_.self).pi
1pe((0,n.O)(!1)):(0,i.of)(!0)}confirmSelected(){this.selectedIds$.pipe((0,o.q)(1)).subscribe(_=>{this.confirm.emit(_),this.objectSelectService.reset(this.key)})}onCancel(){this.cancel.emit()}}return h.\u0275fac=function(_){return new(_||h)(t.\u0275\u0275directiveInject(d.z),t.\u0275\u0275directiveInject(r._),t.\u0275\u0275directiveInject(a._))},h.\u0275cmp=t.\u0275\u0275defineComponent({type:h,selectors:[["ds-object-select-abstract"]],inputs:{key:"key",dsoRD$:"dsoRD$",paginationOptions:"paginationOptions",sortOptions:"sortOptions",confirmButton:"confirmButton",featureId:"featureId",cancelButton:"cancelButton",dangerConfirm:"dangerConfirm"},outputs:{cancel:"cancel",confirm:"confirm"},decls:0,vars:0,template:function(_,v){},encapsulation:2}),h})()},91776:(R,c,e)=>{"use strict";e.d(c,{OG:()=>h,e5:()=>m});var t=e(24702),n=e(64509),o=e.n(n),i=e(25940),d=e.n(i),r=e(89416),a=e.n(r);function h(_){if("object"==typeof _){if(0===Object.keys(_).length)return!0;{let E=!0;for(const O in _)if((0,t.UE)(_[O])){E=!1;break}return E}}}function m(_,v){const E=(O,b)=>a()(O,(M,P,D)=>{if(!o()(P,b[D])&&(0,t.UE)(P)){const l=d()(P)&&d()(b[D])?E(P,b[D]):P;h(l)||(M[D]=l)}});return E(_,v)}},65165:(R,c,e)=>{"use strict";e.d(c,{w:()=>p}),e(79300);var n=e(94650),o=e(89383),i=e(36895),d=e(9769);function r(h,m){if(1&h&&(n.\u0275\u0275elementStart(0,"span",2),n.\u0275\u0275text(1),n.\u0275\u0275elementEnd()),2&h){const _=n.\u0275\u0275nextContext();n.\u0275\u0275advance(1),n.\u0275\u0275textInterpolate(_.orcidTooltip)}}const a=function(h){return{"not-authenticated":h}};let p=(()=>{class h{constructor(_){this.translateService=_}ngOnInit(){this.orcidTooltip=this.translateService.instant(this.authenticatedTimestamp?"person.orcid-tooltip.authenticated":"person.orcid-tooltip.not-authenticated",{orcid:this.orcid.value})}}return h.\u0275fac=function(_){return new(_||h)(n.\u0275\u0275directiveInject(o.sK))},h.\u0275cmp=n.\u0275\u0275defineComponent({type:h,selectors:[["ds-orcid-badge-and-tooltip"]],inputs:{orcid:"orcid",authenticatedTimestamp:"authenticatedTimestamp"},decls:3,vars:5,consts:[["placement","top","src","assets/images/orcid.logo.icon.svg","data-test","orcidIcon",1,"orcid-icon",3,"ngbTooltip","ngClass","alt"],["orcidTooltipTemplate",""],[1,"text-muted"]],template:function(_,v){if(1&_&&(n.\u0275\u0275element(0,"img",0),n.\u0275\u0275template(1,r,2,1,"ng-template",null,1,n.\u0275\u0275templateRefExtractor)),2&_){const E=n.\u0275\u0275reference(2);n.\u0275\u0275propertyInterpolate1("alt","ORCID ",v.orcidTooltip,""),n.\u0275\u0275property("ngbTooltip",E)("ngClass",n.\u0275\u0275pureFunction1(3,a,!v.authenticatedTimestamp))}},dependencies:[i.mk,d._L],styles:["[_nghost-%COMP%]{display:inline-block}.orcid-icon[_ngcontent-%COMP%]{height:1.2rem}.orcid-icon.not-authenticated[_ngcontent-%COMP%]{filter:grayscale(100%)}"]}),h})()},82656:(R,c,e)=>{"use strict";e.d(c,{k:()=>v});var t=e(14292),o=(e(36872),e(54004)),i=e(95698),d=e(77467),r=e(94650),a=e(34793),p=e(36895),h=e(24006),m=e(48131);function _(E,O){if(1&E&&(r.\u0275\u0275elementStart(0,"option",3),r.\u0275\u0275pipe(1,"async"),r.\u0275\u0275text(2),r.\u0275\u0275elementEnd()),2&E){const b=O.$implicit,M=r.\u0275\u0275nextContext();r.\u0275\u0275property("value",b)("selected",b===+r.\u0275\u0275pipeBind1(1,3,M.paginationOptions$).pageSize?"selected":null),r.\u0275\u0275advance(2),r.\u0275\u0275textInterpolate1(" ",b," ")}}let v=(()=>{class E{constructor(b,M,P,D){this.route=b,this.router=M,this.paginationService=P,this.searchConfigurationService=D}ngOnInit(){this.paginationOptions$=this.searchConfigurationService.paginatedSearchOptions.pipe((0,o.U)(b=>b.pagination))}reloadRPP(b){const M=b.target.value;this.paginationOptions$.pipe((0,i.q)(1)).subscribe(P=>{this.paginationService.updateRoute(P.id,{page:1,pageSize:+M})})}}return E.\u0275fac=function(b){return new(b||E)(r.\u0275\u0275directiveInject(a.gz),r.\u0275\u0275directiveInject(a.F0),r.\u0275\u0275directiveInject(d.N),r.\u0275\u0275directiveInject(t.SEARCH_CONFIG_SERVICE))},E.\u0275cmp=r.\u0275\u0275defineComponent({type:E,selectors:[["ds-page-size-selector"]],decls:4,vars:5,consts:[[1,"page-size-settings"],[3,"id","label","changed"],[3,"value","selected",4,"ngFor","ngForOf"],[3,"value","selected"]],template:function(b,M){1&b&&(r.\u0275\u0275elementStart(0,"div",0)(1,"ds-sidebar-dropdown",1),r.\u0275\u0275listener("changed",function(D){return M.reloadRPP(D)}),r.\u0275\u0275template(2,_,3,5,"option",2),r.\u0275\u0275pipe(3,"async"),r.\u0275\u0275elementEnd()()),2&b&&(r.\u0275\u0275advance(1),r.\u0275\u0275property("id","search-sidebar-rpp")("label","search.sidebar.settings.rpp"),r.\u0275\u0275advance(1),r.\u0275\u0275property("ngForOf",r.\u0275\u0275pipeBind1(3,3,M.paginationOptions$).pageSizeOptions))},dependencies:[p.sg,h.YN,h.Kr,m.N,p.Ov],styles:[".setting-option[_ngcontent-%COMP%]{border:1px solid var(--bs-light)}"]}),E})()},4177:(R,c,e)=>{"use strict";e.d(c,{r:()=>o});var t=e(9769),n=e(94650);let o=(()=>{class i extends t.pM{constructor(){super(...arguments),this.currentPage=1,this.maxSize=10,this.pageSizeOptions=[1,5,10,20,40,60,80,100]}}return i.\u0275fac=function(){let d;
1return function(a){return(d||(d=n.\u0275\u0275getInheritedFactory(i)))(a||i)}}(),i.\u0275prov=n.\u0275\u0275defineInjectable({token:i,factory:i.\u0275fac}),i})()},62697:(R,c,e)=>{"use strict";e.d(c,{Q:()=>K});var t=e(94650),n=e(39646),o=e(63900),i=e(958),d=e(42943),r=e(24702),a=e(77467),p=e(54004),h=e(68675),m=e(95698),_=e(51121),v=e(36895),E=e(9769),O=e(96737),b=e(25575),M=e(89383),P=e(26625);function D(ee,ae){if(1&ee&&(t.\u0275\u0275elementStart(0,"div",9)(1,"span",10),t.\u0275\u0275text(2),t.\u0275\u0275pipe(3,"translate"),t.\u0275\u0275elementEnd(),t.\u0275\u0275elementStart(4,"span",11),t.\u0275\u0275text(5),t.\u0275\u0275pipe(6,"translate"),t.\u0275\u0275pipe(7,"async"),t.\u0275\u0275elementEnd()()),2&ee){const Q=t.\u0275\u0275nextContext(3);t.\u0275\u0275advance(2),t.\u0275\u0275textInterpolate(t.\u0275\u0275pipeBind1(3,2,"pagination.showing.label")),t.\u0275\u0275advance(3),t.\u0275\u0275textInterpolate(t.\u0275\u0275pipeBind2(6,4,"pagination.showing.detail",t.\u0275\u0275pipeBind1(7,7,Q.showingDetails$)))}}const l=function(ee){return{invisible:ee}};function C(ee,ae){if(1&ee){const Q=t.\u0275\u0275getCurrentView();t.\u0275\u0275elementStart(0,"li",23),t.\u0275\u0275pipe(1,"async"),t.\u0275\u0275elementStart(2,"button",24),t.\u0275\u0275listener("click",function(){const G=t.\u0275\u0275restoreView(Q).$implicit,ie=t.\u0275\u0275nextContext(4);return t.\u0275\u0275resetView(ie.doPageSizeChange(G))}),t.\u0275\u0275element(3,"i",25),t.\u0275\u0275pipe(4,"async"),t.\u0275\u0275text(5),t.\u0275\u0275elementEnd()()}if(2&ee){const Q=ae.$implicit,j=t.\u0275\u0275nextContext(4);t.\u0275\u0275attribute("aria-selected",Q===t.\u0275\u0275pipeBind1(1,3,j.pageSize$)),t.\u0275\u0275advance(3),t.\u0275\u0275property("ngClass",t.\u0275\u0275pureFunction1(7,l,Q!==t.\u0275\u0275pipeBind1(4,5,j.pageSize$))),t.\u0275\u0275advance(2),t.\u0275\u0275textInterpolate1(" ",Q," ")}}function I(ee,ae){if(1&ee){const Q=t.\u0275\u0275getCurrentView();t.\u0275\u0275elementStart(0,"li",23),t.\u0275\u0275pipe(1,"async"),t.\u0275\u0275elementStart(2,"button",24),t.\u0275\u0275listener("click",function(){const G=t.\u0275\u0275restoreView(Q).$implicit,ie=t.\u0275\u0275nextContext(4);return t.\u0275\u0275resetView(ie.doSortDirectionChange(G.value))}),t.\u0275\u0275element(3,"i",25),t.\u0275\u0275pipe(4,"async"),t.\u0275\u0275text(5),t.\u0275\u0275pipe(6,"translate"),t.\u0275\u0275elementEnd()()}if(2&ee){const Q=ae.$implicit,j=t.\u0275\u0275nextContext(4);t.\u0275\u0275attribute("aria-selected",Q.value===t.\u0275\u0275pipeBind1(1,3,j.sortDirection$)),t.\u0275\u0275advance(3),t.\u0275\u0275property("ngClass",t.\u0275\u0275pureFunction1(9,l,Q.value!==t.\u0275\u0275pipeBind1(4,5,j.sortDirection$))),t.\u0275\u0275advance(2),t.\u0275\u0275textInterpolate1(" ",t.\u0275\u0275pipeBind1(6,7,"sorting."+Q.key)," ")}}function g(ee,ae){if(1&ee&&(t.\u0275\u0275elementStart(0,"div",12,13)(2,"button",14),t.\u0275\u0275pipe(3,"translate"),t.\u0275\u0275pipe(4,"translate"),t.\u0275\u0275element(5,"i",15),t.\u0275\u0275elementEnd(),t.\u0275\u0275elementStart(6,"ul",16)(7,"li",17)(8,"span",18),t.\u0275\u0275text(9),t.\u0275\u0275pipe(10,"translate"),t.\u0275\u0275elementEnd(),t.\u0275\u0275elementStart(11,"ul",19),t.\u0275\u0275template(12,C,6,9,"li",20),t.\u0275\u0275elementEnd()(),t.\u0275\u0275elementStart(13,"li",17)(14,"span",21),t.\u0275\u0275text(15),t.\u0275\u0275pipe(16,"translate"),t.\u0275\u0275elementEnd(),t.\u0275\u0275elementStart(17,"ul",22),t.\u0275\u0275template(18,I,7,11,"li",20),t.\u0275\u0275pipe(19,"dsKeys"),t.\u0275\u0275elementEnd()()()()),2&ee){const Q=t.\u0275\u0275nextContext(3);t.\u0275\u0275advance(2),t.\u0275\u0275property("title",t.\u0275\u0275pipeBind1(3,6,"pagination.options.description")),t.\u0275\u0275attribute("aria-label",t.\u0275\u0275pipeBind1(4,8,"pagination.options.description")),t.\u0275\u0275advance(7),t.\u0275\u0275textInterpolate(t.\u0275\u0275pipeBind1(10,10,"pagination.results-per-page")),t.\u0275\u0275advance(3),t.\u0275\u0275property("ngForOf",Q.pageSizeOptions),t.\u0275\u0275advance(3),t.\u0275\u0275textInterpolate(t.\u0275\u0275pipeBind1(16,12,"pagination.sort-direction")),t.\u0275\u0275advance(3),t.\u0275\u0275property("ngForOf",t.\u0275\u0275pipeBind1(19,14,Q.sortDirections))}}function B(ee,ae){if(1&ee&&(t.\u0275\u0275elementStart(0,"div",4)(1,"div",5),t.\u0275\u0275template(2,D,8,9,"div",6),t.\u0275\u0275elementStart(3,"div",7),t.\u0275\u0275template(4,g,20,16,"div",8),t.\u0275\u0275element(5,"ds-rss"),t.\u0275\u0275elementEnd()()()),2&ee){const Q=t.\u0275\u0275nextContext(2);t.\u0275\u0275advance(2),t.\u0275\u0275property("ngIf",!Q.hidePaginationDetail&&Q.collectionSize>0),t.\u0275\u0275advance(2),t.\u0275\u0275property("ngIf",!Q.hideGear)}}function L(ee,ae){if(1&ee){const Q=t.\u0275\u0275getCurrentView();t.\u0275\u0275elementStart(0,"div",28)(1,"ngb-pagination",29),t.\u0275\u0275listener("pageChange",function(k){t.\u0275\u0275restoreView(Q);const G=t.\u0275\u0275nextContext(3);
1return t.\u0275\u0275resetView(G.doPageChange(k))}),t.\u0275\u0275pipe(2,"translate"),t.\u0275\u0275pipe(3,"async"),t.\u0275\u0275pipe(4,"async"),t.\u0275\u0275elementEnd()()}if(2&ee){const Q=t.\u0275\u0275nextContext(3);t.\u0275\u0275advance(1),t.\u0275\u0275property("boundaryLinks",Q.paginationOptions.boundaryLinks)("collectionSize",Q.collectionSize)("disabled",Q.paginationOptions.disabled)("ellipses",Q.paginationOptions.ellipses)("maxSize",Q.isXs?5:Q.paginationOptions.maxSize)("page",t.\u0275\u0275pipeBind1(3,12,Q.currentPage$))("pageSize",t.\u0275\u0275pipeBind1(4,14,Q.pageSize$))("rotate",Q.paginationOptions.rotate)("size",Q.isXs?"sm":Q.paginationOptions.size),t.\u0275\u0275attribute("aria-label",t.\u0275\u0275pipeBind1(2,10,"pagination-control.page-number-bar")+Q.paginationOptions.id)}}function V(ee,ae){if(1&ee){const Q=t.\u0275\u0275getCurrentView();t.\u0275\u0275elementStart(0,"div",30)(1,"button",31),t.\u0275\u0275listener("click",function(){t.\u0275\u0275restoreView(Q);const k=t.\u0275\u0275nextContext(3);return t.\u0275\u0275resetView(k.goPrev())}),t.\u0275\u0275element(2,"i",32),t.\u0275\u0275text(3),t.\u0275\u0275pipe(4,"translate"),t.\u0275\u0275elementEnd(),t.\u0275\u0275elementStart(5,"button",33),t.\u0275\u0275listener("click",function(){t.\u0275\u0275restoreView(Q);const k=t.\u0275\u0275nextContext(3);return t.\u0275\u0275resetView(k.goNext())}),t.\u0275\u0275elementStart(6,"span",34),t.\u0275\u0275pipe(7,"translate"),t.\u0275\u0275element(8,"i",35),t.\u0275\u0275text(9),t.\u0275\u0275pipe(10,"translate"),t.\u0275\u0275elementEnd()()()}if(2&ee){const Q=t.\u0275\u0275nextContext(3);t.\u0275\u0275advance(1),t.\u0275\u0275property("dsBtnDisabled",(null==Q.objects||null==Q.objects.payload?null:Q.objects.payload.currentPage)<=1&&(null==Q.paginationOptions?null:Q.paginationOptions.currentPage)<=1),t.\u0275\u0275advance(2),t.\u0275\u0275textInterpolate1(" ",t.\u0275\u0275pipeBind1(4,5,"pagination.previous.button")," "),t.\u0275\u0275advance(2),t.\u0275\u0275property("dsBtnDisabled",(null==Q.objects||null==Q.objects.payload?null:Q.objects.payload.currentPage)>=(null==Q.objects||null==Q.objects.payload?null:Q.objects.payload.totalPages)||(null==Q.paginationOptions?null:Q.paginationOptions.currentPage)>=(null==Q.objects||null==Q.objects.payload?null:Q.objects.payload.totalPages)),t.\u0275\u0275advance(1),t.\u0275\u0275property("ngbTooltip",(null==Q.objects||null==Q.objects.payload?null:Q.objects.payload.currentPage)>=(null==Q.objects||null==Q.objects.payload?null:Q.objects.payload.totalPages)?t.\u0275\u0275pipeBind1(7,7,"pagination.next.button.disabled.tooltip"):null),t.\u0275\u0275advance(3),t.\u0275\u0275textInterpolate1(" ",t.\u0275\u0275pipeBind1(10,9,"pagination.next.button")," ")}}function Y(ee,ae){if(1&ee&&(t.\u0275\u0275elementStart(0,"div"),t.\u0275\u0275template(1,L,5,16,"div",26),t.\u0275\u0275template(2,V,11,11,"div",27),t.\u0275\u0275elementEnd()),2&ee){const Q=t.\u0275\u0275nextContext(2);t.\u0275\u0275advance(1),t.\u0275\u0275property("ngIf",Q.showPaginator),t.\u0275\u0275advance(1),t.\u0275\u0275property("ngIf",!Q.showPaginator)}}function X(ee,ae){if(1&ee&&(t.\u0275\u0275elementStart(0,"div",1),t.\u0275\u0275template(1,B,6,2,"div",2),t.\u0275\u0275projection(2),t.\u0275\u0275template(3,Y,3,2,"div",3),t.\u0275\u0275pipe(4,"async"),t.\u0275\u0275elementEnd()),2&ee){const Q=t.\u0275\u0275nextContext();t.\u0275\u0275property("id","p-"+Q.id),t.\u0275\u0275advance(1),t.\u0275\u0275property("ngIf",!Q.hidePaginationDetail&&Q.collectionSize>0||!Q.hideGear),t.\u0275\u0275advance(2),t.\u0275\u0275property("ngIf",t.\u0275\u0275pipeBind1(4,3,Q.shouldShowBottomPager))}}const te=["*"];let K=(()=>{class ee{constructor(Q,j,k){this.cdRef=Q,this.paginationService=j,this.hostWindowService=k,this.viewMode=_.w.ListElement,this.showPaginator=!0,this.pageChange=new t.EventEmitter,this.pageSizeChange=new t.EventEmitter,this.sortDirectionChange=new t.EventEmitter,this.sortFieldChange=new t.EventEmitter,this.paginationChange=new t.EventEmitter,this.hidePaginationDetail=!1,this.hideGear=!1,this.hidePagerWhenSinglePage=!0,this.retainScrollPosition=!1,this.currentPageState=void 0,this.sortDirections=d.S,this.defaultsortDirection=d.S.ASC,this.defaultSortField="name",this.subs=[],this.prev=new t.EventEmitter,this.next=new t.EventEmitter}ngOnInit(){this.subs.push(this.hostWindowService.isXs().subscribe(Q=>{this.isXs=Q,this.cdRef.markForCheck()})),this.checkConfig(this.paginationOptions),this.initializeConfig()}ngOnChanges(Q){Q.collectionSize.currentValue!==Q.collectionSize.previousValue&&(this.showingDetails$=this.getShowingDetails(this.collectionSize))}ngOnDestroy(){this.subs.filter(Q=>
1(0,r.Uh)(Q)).forEach(Q=>Q.unsubscribe())}initializeConfig(){let Q;this.id=this.paginationOptions.id||null,this.pageSizeOptions=this.paginationOptions.pageSizeOptions,this.currentPage$=this.paginationService.getCurrentPagination(this.id,this.paginationOptions).pipe((0,p.U)(j=>j.currentPage)),this.pageSize$=this.paginationService.getCurrentPagination(this.id,this.paginationOptions).pipe((0,p.U)(j=>j.pageSize)),Q=this.sortOptions?this.sortOptions:new d.o(this.defaultSortField,this.defaultsortDirection),this.sortDirection$=this.paginationService.getCurrentSort(this.id,Q).pipe((0,p.U)(j=>j.direction)),this.sortField$=this.paginationService.getCurrentSort(this.id,Q).pipe((0,p.U)(j=>j.field))}doPageChange(Q){this.updateParams({page:Q.toString()}),this.emitPaginationChange()}doPageSizeChange(Q){this.updateParams({pageId:this.id,page:1,pageSize:Q}),this.emitPaginationChange()}doSortDirectionChange(Q){this.updateParams({pageId:this.id,page:1,sortDirection:Q}),this.emitPaginationChange()}emitPaginationChange(){this.paginationChange.emit()}updateParams(Q){this.paginationService.updateRoute(this.id,Q,{},this.retainScrollPosition)}getShowingDetails(Q){return(0,n.of)(Q).pipe((0,r.tz)(),(0,o.w)(()=>this.paginationService.getCurrentPagination(this.id,this.paginationOptions)),(0,p.U)(j=>{let k,G;const ie=j.pageSize*j.currentPage;return k=j.pageSize*(j.currentPage-1)+1,G=Q>ie?ie:Q,{range:`${k} - ${G}`,total:Q}}),(0,h.O)({range:"null - null",total:null}))}checkConfig(Q){const k=["id","currentPage","pageSize","pageSizeOptions"].filter(G=>!(G in Q));if(0<k.length)throw new Error("Paginate: Argument is missing the following required properties: "+k.join(", "))}get hasMultiplePages(){return this.paginationService.getCurrentPagination(this.id,this.paginationOptions).pipe((0,p.U)(Q=>this.collectionSize>Q.pageSize))}get shouldShowBottomPager(){return this.hasMultiplePages.pipe((0,p.U)(Q=>Q||!this.hidePagerWhenSinglePage))}goPrev(){this.prev.emit(!0),this.updatePagination(-1)}goNext(){this.next.emit(!0),this.updatePagination(1)}updatePagination(Q){this.paginationService.getCurrentPagination(this.id,this.paginationOptions).pipe((0,m.q)(1)).subscribe(j=>{this.updateParams({page:(j.currentPage+Q).toString()})})}}return ee.\u0275fac=function(Q){return new(Q||ee)(t.\u0275\u0275directiveInject(t.ChangeDetectorRef),t.\u0275\u0275directiveInject(a.N),t.\u0275\u0275directiveInject(i.I3))},ee.\u0275cmp=t.\u0275\u0275defineComponent({type:ee,selectors:[["ds-pagination"]],inputs:{collectionSize:"collectionSize",paginationOptions:"paginationOptions",sortOptions:"sortOptions",showPaginator:"showPaginator",config:"config",objects:"objects",sortConfig:"sortConfig",hidePaginationDetail:"hidePaginationDetail",hideGear:"hideGear",hidePagerWhenSinglePage:"hidePagerWhenSinglePage",retainScrollPosition:"retainScrollPosition"},outputs:{pageChange:"pageChange",pageSizeChange:"pageSizeChange",sortDirectionChange:"sortDirectionChange",sortFieldChange:"sortFieldChange",paginationChange:"paginationChange",prev:"prev",next:"next"},exportAs:["paginationComponent"],features:[t.\u0275\u0275NgOnChangesFeature],ngContentSelectors:te,decls:2,vars:3,consts:[[3,"id",4,"ngIf"],[3,"id"],["class","pagination-masked clearfix top",4,"ngIf"],[4,"ngIf"],[1,"pagination-masked","clearfix","top"],[1,"row"],["class","col-auto pagination-info",4,"ngIf"],[1,"col"],["ngbDropdown","","placement","bottom-right","class","d-inline-block float-right",4,"ngIf"],[1,"col-auto","pagination-info"],[1,"align-middle","hidden-xs-down"],[1,"align-middle"],["ngbDropdown","","placement","bottom-right",1,"d-inline-block","float-right"],["paginationControls","ngbDropdown"],["id","paginationControls","ngbDropdownToggle","","aria-haspopup","true","aria-expanded","false",1,"btn","btn-secondary",3,"title"],["aria-hidden","true",1,"fas","fa-cog"],["id","paginationControlsDropdownMenu","aria-labelledby","paginationControls","role","menu","ngbDropdownMenu",""],["role","menuitem"],["id","pagination-control_results-per-page","role","heading",1,"dropdown-header"],["aria-labelledby","pagination-control_results-per-page","role","listbox",1,"list-unstyled"],["role","option",4,"ngFor","ngForOf"],["id","pagination-control_sort-direction","role","heading",1,"dropdown-header"],["aria-labelledby","pagination-control_sort-direction","role","listbox",1,"list-unstyled"],["role","option"],[1,"dropdown-item",3,"click"],["aria-hidden","true",1,"fas","fa-check",3,"ngClass"],["class","pagination justify-content-center clearfix bottom",4,"ngIf"],["class","d-flex justify-content-between",4,"ngIf"],[1,"pagination","justify-content-center","clearfix","bottom"],[3,"boun
1daryLinks","collectionSize","disabled","ellipses","maxSize","page","pageSize","rotate","size","pageChange"],[1,"d-flex","justify-content-between"],["id","nav-prev","type","button",1,"btn","btn-outline-primary","float-left",3,"dsBtnDisabled","click"],[1,"fas","fa-angle-left"],["id","nav-next","type","button",1,"btn","btn-outline-primary","float-right",3,"dsBtnDisabled","click"],[3,"ngbTooltip"],[1,"fas","fa-angle-right"]],template:function(Q,j){1&Q&&(t.\u0275\u0275projectionDef(),t.\u0275\u0275template(0,X,5,5,"div",0),t.\u0275\u0275pipe(1,"async")),2&Q&&t.\u0275\u0275property("ngIf",null==j.currentPageState||j.currentPageState==t.\u0275\u0275pipeBind1(1,1,j.currentPage$))},dependencies:[v.mk,v.sg,v.O5,E.N9,E.jt,E.iD,E.Vi,E._L,O.i,b.v,v.Ov,M.X$,P.Q],styles:["[_nghost-%COMP%] .dropdown-toggle[_ngcontent-%COMP%]:after{display:none}[_nghost-%COMP%] .dropdown-item[_ngcontent-%COMP%]{padding-left:20px}"]}),ee})()},58577:(R,c,e)=>{"use strict";e.d(c,{AC:()=>r,DW:()=>h,Wt:()=>v,Xx:()=>m,uV:()=>a,vE:()=>p});var t=e(15600),n=e(39646),o=e(21540),i=e(81554);const d=(new Date).getTime();function r(O,b=d){return new t.N(b,o.N.cache.msToLive.default,b,i.q$.Success,void 0,O,200)}function a(O,b){return(0,n.of)(r(O,b))}function p(O,b,M=15778368e5){return new t.N(M,o.N.cache.msToLive.default,M,i.q$.Error,O,void 0,b)}function h(O,b,M){return(0,n.of)(p(O,b,M))}function m(O=d){return new t.N(void 0,o.N.cache.msToLive.default,O,i.q$.ResponsePending,void 0,void 0,void 0)}function v(O){return r(void 0,O)}},8086:(R,c,e)=>{"use strict";e.d(c,{I:()=>i});var t=e(36895),n=e(89383),o=e(94650);let i=(()=>{class d{}return d.\u0275fac=function(a){return new(a||d)},d.\u0275mod=o.\u0275\u0275defineNgModule({type:d}),d.\u0275inj=o.\u0275\u0275defineInjector({imports:[t.ez,n.aw]}),d})()},44457:(R,c,e)=>{"use strict";e.d(c,{i:()=>d});var t=e(25330),n=e(94650);function o(r,a){}const i=["*"];let d=(()=>{class r extends t.F{constructor(){super(...arguments),this.inAndOutputNames=["back","buttonLabel"]}getComponentName(){return"ResultsBackButtonComponent"}importThemedComponent(p){return e(14826)(`./${p}/app/shared/results-back-button/results-back-button.component`)}importUnthemedComponent(){return e.e(8592).then(e.bind(e,62971))}}return r.\u0275fac=function(){let a;return function(h){return(a||(a=n.\u0275\u0275getInheritedFactory(r)))(h||r)}}(),r.\u0275cmp=n.\u0275\u0275defineComponent({type:r,selectors:[["ds-themed-results-back-button"]],inputs:{buttonLabel:"buttonLabel",back:"back"},features:[n.\u0275\u0275InheritDefinitionFeature],ngContentSelectors:i,decls:5,vars:0,consts:[["vcr",""],["content",""]],template:function(p,h){1&p&&(n.\u0275\u0275projectionDef(),n.\u0275\u0275template(0,o,0,0,"ng-template",null,0,n.\u0275\u0275templateRefExtractor),n.\u0275\u0275elementStart(2,"div",null,1),n.\u0275\u0275projection(4),n.\u0275\u0275elementEnd())},encapsulation:2}),r})()},92226:(R,c,e)=>{"use strict";e.d(c,{g:()=>p});var t=e(39841),n=e(39300),o=e(54004),i=e(50590),d=e(24702),r=e(67837),a=e(94650);let p=(()=>{class h{constructor(_,v,E,O){this.roleService=_,this.viewContainer=v,this.changeDetector=E,this.templateRef=O,this.subs=[]}ngOnChanges(_){this.hasRoles(this.dsShowOnlyForRole),_.dsShowOnlyForRole?this.validateOnly():_.dsShowExceptForRole&&this.validateExcept()}ngOnDestroy(){this.subs.filter(_=>(0,d.Uh)(_)).forEach(_=>_.unsubscribe())}showTemplateBlockInView(){this.viewContainer.clear(),this.templateRef&&(this.viewContainer.createEmbeddedView(this.templateRef),this.changeDetector.markForCheck())}validateOnly(){this.subs.push(this.hasRoles(this.dsShowOnlyForRole).pipe((0,n.h)(_=>_)).subscribe(_=>{this.showTemplateBlockInView()}))}validateExcept(){this.subs.push(this.hasRoles(this.dsShowExceptForRole).pipe((0,n.h)(_=>!_)).subscribe(_=>{this.showTemplateBlockInView()}))}hasRoles(_){const E=(Array.isArray(_)?_:[_]).map(O=>this.roleService.checkRole(O));return(0,t.a)(E).pipe((0,o.U)(O=>O.includes(!0)),(0,i.P)())}}return h.\u0275fac=function(_){return new(_||h)(a.\u0275\u0275directiveInject(r.N),a.\u0275\u0275directiveInject(a.ViewContainerRef),a.\u0275\u0275directiveInject(a.ChangeDetectorRef),a.\u0275\u0275directiveInject(a.TemplateRef))},h.\u0275dir=a.\u0275\u0275defineDirective({type:h,selectors:[["","dsShowOnlyForRole",""],["","dsShowExceptForRole",""]],inputs:{dsShowOnlyForRole:"dsShowOnlyForRole",dsShowExceptForRole:"dsShowExceptForRole"}
1,features:[a.\u0275\u0275NgOnChangesFeature]}),h})()},96737:(R,c,e)=>{"use strict";e.d(c,{i:()=>P});var t=e(61135),n=e(43499),o=e(59656),i=e(68285),d=e(21540),r=e(36872),a=e(77467),p=e(54004),h=e(63900),m=e(94650),_=e(46377),v=e(34793),E=e(36895),O=e(89383);function b(D,l){if(1&D&&(m.\u0275\u0275elementStart(0,"div",2)(1,"a",3),m.\u0275\u0275pipe(2,"translate"),m.\u0275\u0275pipe(3,"translate"),m.\u0275\u0275element(4,"i",4),m.\u0275\u0275elementEnd()()),2&D){const C=l.ngIf;m.\u0275\u0275advance(1),m.\u0275\u0275property("href",C,m.\u0275\u0275sanitizeUrl)("title",m.\u0275\u0275pipeBind1(2,3,"feed.description")),m.\u0275\u0275attribute("aria-label",m.\u0275\u0275pipeBind1(3,5,"feed.description"))}}function M(D,l){if(1&D&&(m.\u0275\u0275elementContainerStart(0),m.\u0275\u0275template(1,b,5,7,"div",1),m.\u0275\u0275pipe(2,"async"),m.\u0275\u0275elementContainerEnd()),2&D){const C=m.\u0275\u0275nextContext();m.\u0275\u0275advance(1),m.\u0275\u0275property("ngIf",m.\u0275\u0275pipeBind1(2,1,C.route$))}}let P=(()=>{class D{constructor(C,I,g,B,L,V){this.groupDataService=C,this.linkHeadService=I,this.configurationService=g,this.searchConfigurationService=B,this.router=L,this.paginationService=V,this.route$=new t.X(""),this.isEnabled$=new t.X(null),this.subs=[]}ngOnDestroy(){this.linkHeadService.removeTag("rel='alternate'"),this.subs.forEach(C=>{C.unsubscribe()})}ngOnInit(){this.configuration$=this.searchConfigurationService.getCurrentConfiguration("default"),this.subs.push(this.configurationService.findByPropertyName("websvc.opensearch.enable").pipe((0,i.hC)()).subscribe(C=>{C.hasSucceeded&&this.isEnabled$.next("true"===C.payload.values[0])})),this.subs.push(this.configurationService.findByPropertyName("websvc.opensearch.svccontext").pipe((0,i.hC)(),(0,p.U)(C=>C.hasSucceeded?C.payload.values[0]:null),(0,h.w)(C=>this.searchConfigurationService.paginatedSearchOptions.pipe((0,p.U)(I=>({openSearchUri:C,searchOptions:I}))))).subscribe(({openSearchUri:C,searchOptions:I})=>{if(!C)return null;this.uuid=this.groupDataService.getUUIDFromString(this.router.url);const g=d.N.rest.baseUrl+this.formulateRoute(this.uuid,C,I.query);this.addLinks(g),this.linkHeadService.addTag({href:d.N.rest.baseUrl+"/"+C+"/service",type:"application/atom+xml",rel:"search",title:"Dspace"}),this.route$.next(g)}))}formulateRoute(C,I,g){let B="?format=atom";return C&&(B+=`&scope=${C}`),B+=g?`&query=${g}`:"&query=*",B="/"+I+B,B}hasRoute(C){return this.router.url.includes(C)}addLinks(C){this.linkHeadService.addTag({href:C,type:"application/atom+xml",rel:"alternate",title:"Sitewide Atom feed"}),C=C.replace("format=atom","format=rss"),this.linkHeadService.addTag({href:C,type:"application/rss+xml",rel:"alternate",title:"Sitewide RSS feed"})}}return D.\u0275fac=function(C){return new(C||D)(m.\u0275\u0275directiveInject(n.O),m.\u0275\u0275directiveInject(_.U),m.\u0275\u0275directiveInject(o.i),m.\u0275\u0275directiveInject(r.U),m.\u0275\u0275directiveInject(v.F0),m.\u0275\u0275directiveInject(a.N))},D.\u0275cmp=m.\u0275\u0275defineComponent({type:D,selectors:[["ds-rss"]],exportAs:["rssComponent"],decls:2,vars:3,consts:[[4,"ngIf"],["class","d-inline-block float-right margin-right",4,"ngIf"],[1,"d-inline-block","float-right","margin-right"],[1,"btn","btn-secondary",3,"href","title"],[1,"fas","fa-rss-square"]],template:function(C,I){1&C&&(m.\u0275\u0275template(0,M,3,3,"ng-container",0),m.\u0275\u0275pipe(1,"async")),2&C&&m.\u0275\u0275property("ngIf",m.\u0275\u0275pipeBind1(1,1,I.isEnabled$)&&(I.hasRoute("home")||I.hasRoute("collections")||I.hasRoute("communities")))},dependencies:[E.O5,E.Ov,O.X$],styles:["[_nghost-%COMP%] .dropdown-toggle[_ngcontent-%COMP%]:after{display:none}[_nghost-%COMP%] .dropdown-item[_ngcontent-%COMP%]{padding-left:20px}.margin-right[_ngcontent-%COMP%]{margin-right:.5em}"]}),D})()},76774:(R,c,e)=>{"use strict";e.d(c,{cd:()=>n,i$:()=>i,rG:()=>o,vE:()=>d});var t=e(79472);const n={ADD:(0,t.d)("dspace/css-variables/ADD"),ADD_ALL:(0,t.d)("dspace/css-variables/ADD_ALL"),CLEAR:(0,t.d)("dspace/css-variables/CLEAR")};class o{constructor(a,p){this.type=n.ADD,this.payload={name:a,value:p}}}class i{constructor(a){this.type=n.ADD_ALL,this.payload=a}}class d{constructor(){this.type=n.CLEAR}}},61182:(R,c,e)=>{"use strict";e.d(c,{I:()=>p});var t=e(27239),n=e(89653),o=e(76774),i=e(24789),d=e(24702),r=e(62713),a=e(94650);let p=(()=>{class E{constructor(b){this.store=b,this.isSameDomain=M=>!M.href||0===M.href.indexOf(window.location.origin),this.hasCssRules=M=>{try{return M.cssRules}catch{return!1}},this.isStyleRule=M=>1===M.type}addCSSVariable(b,M){this.store.dispatch(new o.rG(b,M))}addCSSVariables(b){this.store.dispatch(new o.i$(b))}clearCSSVariables(){this.store.dispatch(new o.vE)}getVariable(b){return this.store.pipe((0,n.Ys)(m(b)))}getAllVariables(){return this.store.pipe((0,n.Ys)(h))}searchVariable(b,M){return this.store.pipe((0,n.Ys)(_(b,M)))}getCSSVariablesFromStylesheets(b){return(0,d.UE)(b.styleSheets)?[...b.styleSheets].filter(this.isSameDomain).filter(this.hasCssRules).reduce((M,P)=>M.concat([...P.cssRules].filter(this.isStyleRule).reduce((D,l)=>[...D,...[...l.style].map(I=>({key:I.trim(),value:l.style.getPropertyValue(I).trim()})).filter(({key:I})=>0===I.indexOf("--"))],[])),[]):[]}}return E.\u0275fac=function(b){return new(b||E)(a.\u0275\u0275inject(n.yh)
1)},E.\u0275prov=a.\u0275\u0275defineInjectable({token:E,factory:E.\u0275fac,providedIn:"root"}),E})();const h=E=>E.cssVariables,m=E=>(0,t.GY)(E,h),_=(E,O)=>(0,n.P1)(v(E),b=>{if((0,d.Uh)(b)){const{currentPage:M,pageSize:P}=O,D=(M-1)*P,C=b.slice(D,D+P),I=Math.ceil(b.length/P),g=new r.S({currentPage:M,elementsPerPage:P,totalElements:b.length,totalPages:I});return(0,i.b)(g,C)}}),v=E=>(0,n.P1)(h,O=>{if((0,d.Uh)(O))return Object.keys(O).filter(b=>b.includes(E)).map(b=>({key:b,value:O[b]}))})},88659:(R,c,e)=>{"use strict";e.d(c,{x:()=>m});var t=e(94650),n=e(95642),o=e(5086),i=e(42943),d=e(21540),r=e(9769),a=e(34793),p=e(36023),h=e(89383);let m=(()=>{class _ extends o.q{constructor(E,O){super(E,O),this.activeModal=E,this.route=O,this.objectType=n.h.COMMUNITY,this.selectorTypes=[n.h.COMMUNITY,n.h.COLLECTION],this.action=o.i.SET_SCOPE,this.scopeChange=new t.EventEmitter,this.defaultSort=new i.o(d.N.comcolSelectionSort.sortField,d.N.comcolSelectionSort.sortDirection)}navigate(E){this.scopeChange.emit(E)}}return _.\u0275fac=function(E){return new(E||_)(t.\u0275\u0275directiveInject(r.Kz),t.\u0275\u0275directiveInject(a.gz))},_.\u0275cmp=t.\u0275\u0275defineComponent({type:_,selectors:[["ds-scope-selector-modal"]],features:[t.\u0275\u0275InheritDefinitionFeature],decls:21,vars:15,consts:[[1,"modal-header"],["type","button","aria-label","Close",1,"close",3,"click"],["aria-hidden","true"],[1,"modal-body"],[1,"btn","btn-outline-primary","btn-lg","btn-block",3,"click"],[1,"position-relative","py-1","my-3","font-weight-normal","h3"],["id","create-community-or-separator",1,"text-center","position-absolute","w-100"],[1,"px-4","bg-white"],[1,"px-2","h5"],[3,"currentDSOId","types","sort","onSelect"]],template:function(E,O){1&E&&(t.\u0275\u0275elementStart(0,"div")(1,"div",0),t.\u0275\u0275text(2),t.\u0275\u0275pipe(3,"translate"),t.\u0275\u0275elementStart(4,"button",1),t.\u0275\u0275listener("click",function(){return O.selectObject(void 0)}),t.\u0275\u0275elementStart(5,"span",2),t.\u0275\u0275text(6,"\xd7"),t.\u0275\u0275elementEnd()()(),t.\u0275\u0275elementStart(7,"div",3)(8,"button",4),t.\u0275\u0275listener("click",function(){return O.selectObject(void 0)}),t.\u0275\u0275text(9),t.\u0275\u0275pipe(10,"translate"),t.\u0275\u0275elementEnd(),t.\u0275\u0275elementStart(11,"div",5),t.\u0275\u0275element(12,"hr"),t.\u0275\u0275elementStart(13,"div",6)(14,"span",7),t.\u0275\u0275text(15),t.\u0275\u0275pipe(16,"translate"),t.\u0275\u0275elementEnd()()(),t.\u0275\u0275elementStart(17,"h2",8),t.\u0275\u0275text(18),t.\u0275\u0275pipe(19,"translate"),t.\u0275\u0275elementEnd(),t.\u0275\u0275elementStart(20,"ds-dso-selector",9),t.\u0275\u0275listener("onSelect",function(M){return O.selectObject(M)}),t.\u0275\u0275elementEnd()()()),2&E&&(t.\u0275\u0275advance(2),t.\u0275\u0275textInterpolate1("",t.\u0275\u0275pipeBind1(3,7,"dso-selector."+O.action+"."+O.objectType.toString().toLowerCase()+".head")," "),t.\u0275\u0275advance(7),t.\u0275\u0275textInterpolate(t.\u0275\u0275pipeBind1(10,9,"dso-selector."+O.action+"."+O.objectType.toString().toLowerCase()+".button")),t.\u0275\u0275advance(6),t.\u0275\u0275textInterpolate(t.\u0275\u0275pipeBind1(16,11,"dso-selector."+O.action+"."+O.objectType.toString().toLowerCase()+".or-divider")),t.\u0275\u0275advance(3),t.\u0275\u0275textInterpolate(t.\u0275\u0275pipeBind1(19,13,"dso-selector."+O.action+"."+O.objectType.toString().toLowerCase()+".input-header")),t.\u0275\u0275advance(2),t.\u0275\u0275property("currentDSOId",null==O.dsoRD?null:O.dsoRD.payload.uuid)("types",O.selectorTypes)("sort",O.defaultSort))},dependencies:[p.O,h.X$],styles:["#create-community-or-separator[_ng
1content-%COMP%]{top:0}"]}),_})()},13511:(R,c,e)=>{"use strict";e.r(c),e.d(c,{SearchFormComponent:()=>C});var t=e(94650),n=e(24702),o=e(5164),i=e(78056),d=e(77467),r=e(36872),a=e(88659),p=e(95698),h=e(61135),m=e(83360),_=e(68285),v=e(83616),E=e(34793),O=e(9769),b=e(36895),M=e(24006),P=e(89383),D=e(73579);function l(I,g){if(1&I){const B=t.\u0275\u0275getCurrentView();t.\u0275\u0275elementStart(0,"div",9)(1,"button",10),t.\u0275\u0275listener("click",function(){t.\u0275\u0275restoreView(B);const V=t.\u0275\u0275nextContext();return t.\u0275\u0275resetView(V.openScopeModal())}),t.\u0275\u0275pipe(2,"async"),t.\u0275\u0275text(3),t.\u0275\u0275pipe(4,"async"),t.\u0275\u0275pipe(5,"translate"),t.\u0275\u0275elementEnd()()}if(2&I){const B=t.\u0275\u0275nextContext();t.\u0275\u0275advance(1),t.\u0275\u0275property("ngbTooltip",B.dsoNameService.getName(t.\u0275\u0275pipeBind1(2,2,B.selectedScope))),t.\u0275\u0275advance(2),t.\u0275\u0275textInterpolate1(" ",B.dsoNameService.getName(t.\u0275\u0275pipeBind1(4,4,B.selectedScope))||t.\u0275\u0275pipeBind1(5,6,"search.form.scope.all")," ")}}let C=(()=>{class I{constructor(B,L,V,Y,X,te,K){this.router=B,this.searchService=L,this.paginationService=V,this.searchConfig=Y,this.modalService=X,this.dsoService=te,this.dsoNameService=K,this.scope="",this.selectedScope=new h.X(void 0),this.large=!1,this.brandColor="primary",this.showScopeSelector=!1,this.submitSearch=new t.EventEmitter}ngOnChanges(){(0,n.UE)(this.scope)&&this.dsoService.findById(this.scope).pipe((0,_.Gp)()).subscribe(B=>this.selectedScope.next(B))}onSubmit(B){(0,n.UE)(this.scope)&&(B=Object.assign(B,{scope:this.scope})),this.updateSearch(B),this.submitSearch.emit(B)}onScopeChange(B){this.updateSearch({scope:B?B.uuid:void 0})}updateSearch(B){const V=Object.assign({"spc.page":1},B);this.router.navigate(this.getSearchLinkParts(),{queryParams:V,queryParamsHandling:"merge"})}getSearchLink(){return this.inPlaceSearch?(0,i.T)(this.router):this.searchService.getSearchLink()}getSearchLinkParts(){return this.inPlaceSearch?[]:this.getSearchLink().split("/")}openScopeModal(){this.modalService.open(a.x).componentInstance.scopeChange.pipe((0,p.q)(1)).subscribe(L=>{this.selectedScope.next(L),this.onScopeChange(L)})}}return I.\u0275fac=function(B){return new(B||I)(t.\u0275\u0275directiveInject(E.F0),t.\u0275\u0275directiveInject(o.o),t.\u0275\u0275directiveInject(d.N),t.\u0275\u0275directiveInject(r.U),t.\u0275\u0275directiveInject(O.FF),t.\u0275\u0275directiveInject(m.D),t.\u0275\u0275directiveInject(v._))},I.\u0275cmp=t.\u0275\u0275defineComponent({type:I,selectors:[["ds-search-form"]],inputs:{query:"query",inPlaceSearch:"inPlaceSearch",scope:"scope",currentUrl:"currentUrl",large:"large",brandColor:"brandColor",searchPlaceholder:"searchPlaceholder",showScopeSelector:"showScopeSelector"},outputs:{submitSearch:"submitSearch"},features:[t.\u0275\u0275NgOnChangesFeature],decls:14,vars:16,consts:[["action","/search",3,"ngSubmit"],["form","ngForm"],[1,"form-group","search-container","input-group"],["class","input-group-prepend",4,"ngIf"],[1,"fas","fa-search","search-icon-inside"],["type","text","name","query",1,"form-control","input",3,"ngModel","placeholder","ngModelChange"],[1,"input-group-append"],["type","submit"],[1,"fas","fa-search"],[1,"input-group-prepend"],["type","button",1,"scope-button","btn","btn-outline-secondary","text-truncate",3,"ngbTooltip","click"]],template:function(B,L){if(1&B){const V=t.\u0275\u0275getCurrentView();t.\u0275\u0275elementStart(0,"form",0,1),t.\u0275\u0275listener("ngSubmit",function(){t.\u0275\u0275restoreView(V);const X=t.\u0275\u0275reference(1);return t.\u0275\u0275resetView(L.onSubmit(X.value))}),t.\u0275\u0275elementStart(2,"div")(3,"div",2),t.\u0275\u0275template(4,l,6,8,"div",3),t.\u0275\u0275element(5,"i",4),t.\u0275\u0275elementStart(6,"input",5),t.\u0275\u0275listener("ngModelChange",function(X){return L.query=X}),t.\u0275\u0275pipe(7,"dsBrowserOnly"),t.\u0275\u0275elementEnd(),t.\u0275\u0275elementStart(8,"span",6)(9,"button",7),t.\u0275\u0275pipe(10,"dsBrowserOnly"),t.\u0275\u0275element(11,"i",8),t.\u0275\u0275text(12),t.\u0275\u0275pipe(13,"translate"),t.\u0275\u0275elementEnd()()()()()}2&B&&(t.\u0275\u0275advance(4),t.\u0275\u0275property("ngIf",L.showScopeSelector),t.\u0275\u0275advance(2),t.\u0275\u0275property("ngModel",L.query
1)("placeholder",L.searchPlaceholder),t.\u0275\u0275attribute("aria-label",L.searchPlaceholder)("data-test",t.\u0275\u0275pipeBind1(7,10,"search-box")),t.\u0275\u0275advance(3),t.\u0275\u0275classMapInterpolate1("search-btn1 btn btn-",L.brandColor,""),t.\u0275\u0275attribute("data-test",t.\u0275\u0275pipeBind1(10,12,"search-button")),t.\u0275\u0275advance(3),t.\u0275\u0275textInterpolate1(" ",t.\u0275\u0275pipeBind1(13,14,"search.form.search"),""))},dependencies:[b.O5,M._Y,M.Fj,M.JJ,M.JL,M.On,M.F,O._L,b.Ov,P.X$,D.g],styles:[".btn-secondary[_ngcontent-%COMP%]{background-color:var(--bs-input-bg);color:var(--bs-input-color)}.scope-button[_ngcontent-%COMP%]{max-width:var(--ds-search-form-scope-max-width)}.search-btn1[_ngcontent-%COMP%]{border-radius:30px!important}.search-btn1[_ngcontent-%COMP%]{position:absolute;right:6px;top:50%;transform:translateY(-50%);background-color:#1450a3;color:#fff;border:none;padding:5px 15px;cursor:pointer;font-weight:500;box-shadow:0 2px 4px #0000000d;transition:all .3s ease;display:flex;align-items:center}.search-icon-inside[_ngcontent-%COMP%]{position:absolute;top:50%;left:10px;transform:translateY(-50%);color:#888;pointer-events:none;z-index:2}.search-container[_ngcontent-%COMP%] input[_ngcontent-%COMP%]{border-radius:30px!important}.search-container[_ngcontent-%COMP%] input[_ngcontent-%COMP%]{width:100%;padding:15px 20px 15px 50px;border:none;font-size:1rem;box-shadow:0 8px 16px #0000001a;transition:all .3s ease;background-color:#ffffffe6}"]}),I})()},35278:(R,c,e)=>{"use strict";e.d(c,{p:()=>d});var t=e(94650),n=e(25330);function o(r,a){}const i=["*"];let d=(()=>{class r extends n.F{constructor(){super(...arguments),this.submitSearch=new t.EventEmitter,this.inAndOutputNames=["query","inPlaceSearch","scope","currentUrl","large","brandColor","searchPlaceholder","showScopeSelector","submitSearch"]}getComponentName(){return"SearchFormComponent"}importThemedComponent(p){return e(52158)(`./${p}/app/shared/search-form/search-form.component`)}importUnthemedComponent(){return Promise.resolve().then(e.bind(e,13511))}}return r.\u0275fac=function(){let a;return function(h){return(a||(a=t.\u0275\u0275getInheritedFactory(r)))(h||r)}}(),r.\u0275cmp=t.\u0275\u0275defineComponent({type:r,selectors:[["ds-themed-search-form"]],inputs:{query:"query",inPlaceSearch:"inPlaceSearch",scope:"scope",currentUrl:"currentUrl",large:"large",brandColor:"brandColor",searchPlaceholder:"searchPlaceholder",showScopeSelector:"showScopeSelector"},outputs:{submitSearch:"submitSearch"},features:[t.\u0275\u0275InheritDefinitionFeature],ngContentSelectors:i,decls:5,vars:0,consts:[["vcr",""],["content",""]],template:function(p,h){1&p&&(t.\u0275\u0275projectionDef(),t.\u0275\u0275template(0,o,0,0,"ng-template",null,0,t.\u0275\u0275templateRefExtractor),t.\u0275\u0275elementStart(2,"div",null,1),t.\u0275\u0275projection(4),t.\u0275\u0275elementEnd())},encapsulation:2}),r})()},34787:(R,c,e)=>{"use strict";e.d(c,{M:()=>p});var t=e(70655),n=e(19782);const i=new(e(3879)._)("discovery-facets");var a,d=e(63037),r=e(29923);let p=((a=class{constructor(){this.type=i}}).type=i,a);(0,t.__decorate)([d.OJ,(0,t.__metadata)("design:type",Object)],p.prototype,"type",void 0),(0,t.__decorate)([r.deserialize,(0,t.__metadata)("design:type",Object)],p.prototype,"_links",void 0),p=(0,t.__decorate)([n.KB],p)},21603:(R,c,e)=>{"use strict";e.d(c,{G:()=>o});var t=e(70655),n=e(29923);class o{}(0,t.__decorate)([n.autoserialize,(0,t.__metadata)("design:type",String)],o.prototype,"label",void 0),(0,t.__decorate)([(0,n.autoserializeAs)(String,"label"),(0,t.__metadata)("design:type",String)],o.prototype,"value",void 0),(0,t.__decorate)([n.autoserialize,(0,t.__metadata)("design:type",Number)],o.prototype,"count",void 0),(0,t.__decorate)([n.autoserialize,(0,t.__metadata)("design:type",String)],o.prototype,"authorityKey",void 0),(0,t.__decorate)([n.deserialize,(0,t.__metadata)("design:type",Object)],o.prototype,"_links",void 0)},89322:(R,c,e)=>{"use strict";e.d(c,{i:()=>_});var t=e(70655),n=e(19782),o=e(63037);const d=new(e(3879)._)("discovery-facetvalues");var m,r=e(21603),a=e(9883),p=e(29923),h=e(24789);let _=((m=class extends a.O{constructor(){super(...arguments),this.type=d}}).type=d,m);(0,t.__decorate)([o.OJ,(0,t.__metadata)("design:type",Object)],_.prototype,"type",void 0),(0,t.__decorate)([p.autoserialize,(0,t.__metadata)("design:type",String)],_.prototype,"name",void 0),(0,t.__decorate)([(0,p.autoserializeAs)(String,"facetType"),(0,t.__metadata)("design:type",String)],_.prototype,"filterType",void 0),(0,t.__decorate)([p.autoserialize,(0,t.__metadata)("design:type",Number)],_.prototype,"facetLimit",void 0),(0,t.__decorate)([(0,p.autoserializeAs)(r.G,"values"),(0,t.__metadata)("design:type",Array)],_.prototype,"page",void 0),_=(0,t.__decorate)([n.KB,(0,p.inheritSerialization)(h.l),(0,p.inheritSerialization)(a.O)],_)},10088:(R,c,e)=>{"use strict";e.d(c,{t:()=>o});var t=e(24702),n=e(39013);
1class o extends n.x{constructor(d){super(d),this.pagination=d.pagination,this.sort=d.sort,this.view=d.view}toRestUrl(d,r=[]){return(0,t.UE)(this.sort)&&r.push(`sort=${this.sort.field},${this.sort.direction}`),(0,t.UE)(this.pagination)&&(r.push("page="+(this.pagination.currentPage-1)),r.push(`size=${this.pagination.pageSize}`)),super.toRestUrl(d,r)}}},60740:(R,c,e)=>{"use strict";e.d(c,{B:()=>p});var t=e(70655),n=e(29923),o=e(19782),i=e(63037);const r=new(e(3879)._)("discovery-filter");var a;let p=((a=class{constructor(){this.type=r,this.pageSize=5}get paramName(){return"f."+this.name}}).type=r,a);(0,t.__decorate)([i.OJ,(0,t.__metadata)("design:type",Object)],p.prototype,"type",void 0),(0,t.__decorate)([n.autoserialize,(0,t.__metadata)("design:type",String)],p.prototype,"name",void 0),(0,t.__decorate)([(0,n.autoserializeAs)(String,"facetType"),(0,t.__metadata)("design:type",String)],p.prototype,"filterType",void 0),(0,t.__decorate)([n.autoserialize,(0,t.__metadata)("design:type",Boolean)],p.prototype,"hasFacets",void 0),(0,t.__decorate)([(0,n.autoserializeAs)(String,"facetLimit"),(0,t.__metadata)("design:type",Object)],p.prototype,"pageSize",void 0),(0,t.__decorate)([n.autoserialize,(0,t.__metadata)("design:type",Boolean)],p.prototype,"isOpenByDefault",void 0),(0,t.__decorate)([n.autoserialize,(0,t.__metadata)("design:type",String)],p.prototype,"maxValue",void 0),(0,t.__decorate)([n.autoserialize,(0,t.__metadata)("design:type",String)],p.prototype,"minValue",void 0),(0,t.__decorate)([n.deserialize,(0,t.__metadata)("design:type",Object)],p.prototype,"_links",void 0),p=(0,t.__decorate)([o.KB],p)},91992:(R,c,e)=>{"use strict";e.d(c,{L:()=>_});var t=e(70655),n=e(29923),o=e(2764),i=e(24789),d=e(19782);const a=new(e(3879)._)("discovery-objects");var m,p=e(63037),h=e(9883);let _=((m=class extends h.O{constructor(){super(...arguments),this.type=a}}).type=a,m);(0,t.__decorate)([p.OJ,(0,t.__metadata)("design:type",Object)],_.prototype,"type",void 0),(0,t.__decorate)([(0,n.autoserializeAs)(o.l,"objects"),(0,t.__metadata)("design:type",Array)],_.prototype,"page",void 0),_=(0,t.__decorate)([d.KB,(0,n.inheritSerialization)(i.l),(0,n.inheritSerialization)(h.O)],_)},39013:(R,c,e)=>{"use strict";e.d(c,{x:()=>i});var t=e(24702),n=e(23631),o=e(51121);class i{constructor(r){this.view=o.w.ListElement,this.configuration=r.configuration,this.scope=r.scope,this.query=r.query,this.dsoTypes=r.dsoTypes,this.filters=r.filters,this.fixedFilter=r.fixedFilter}toRestUrl(r,a=[]){return(0,t.UE)(this.configuration)&&a.push(`configuration=${encodeURIComponent(this.configuration)}`),(0,t.UE)(this.fixedFilter)&&a.push(this.encodedFixedFilter),(0,t.UE)(this.query)&&a.push(`query=${encodeURIComponent(this.query)}`),(0,t.UE)(this.scope)&&a.push(`scope=${encodeURIComponent(this.scope)}`),(0,t.UE)(this.dsoTypes)&&this.dsoTypes.forEach(p=>{a.push(`dsoType=${encodeURIComponent(p)}`)}),(0,t.UE)(this.filters)&&this.filters.forEach(p=>{p.values.forEach(h=>{const m=h.includes(",")?`${h}`:h+(p.operator?","+p.operator:"");a.push(`${p.key}=${this.encodeFilterQueryValue(m)}`)})}),(0,t.UE)(a)&&(r=new n.R(r,`?${a.join("&")}`).toString()),r}get encodedFixedFilter(){const r=this.fixedFilter.match(/^([^=]+=)(.+)$/);return(0,t.Uh)(r)?r[1]+this.encodeFilterQueryValue(r[2]):this.encodeFilterQueryValue(this.fixedFilter)}encodeFilterQueryValue(r){const a=r.match(/^(.*)(,\w+)$/);return(0,t.Uh)(a)?encodeURIComponent(a[1])+a[2]:encodeURIComponent(r)}}},9883:(R,c,e)=>{"use strict";e.d(c,{O:()=>d});var t=e(70655),n=e(29923),o=e(62713),i=e(24789);class d extends i.l{}(0,t.__decorate)([n.autoserialize,(0,t.__metadata)("design:type",String)],d.prototype,"scope",void 0),(0,t.__decorate)([n.autoserialize,(0,t.__metadata)("design:type",String)],d.prototype,"query",void 0),(0,t.__decorate)([n.autoserialize,(0,t.__metadata)("design:type",Array)],d.prototype,"appliedFilters",void 0),(0,t.__decorate)([n.autoserialize,(0,t.__metadata)("design:type",Object)],d.prototype,"sort",void 0),(0,t.__decorate)([n.autoserialize,(0,t.__metadata)("design:type",String)],d.prototype,"configuration",void 0),(0,t.__decorate)([n.autoserialize,(0,t.__metadata)("design:type",o.S)],d.prototype,"pageInfo",void 0),(0,t.__decorate)([n.autoserialize,(0,t.__metadata)("design:type",Array)],d.prototype,"page",void 0),(0,t.__decorate)([n.autoserialize,(0,t.__metadata)("design:type",Object)],d.prototype,"facets",void 0)},2764:(R,c,e)=>{"use strict";e.d(c,{l:()=>m});var t=e(70655),n=e(29923),o=e(19782),i=e(79300),d=e(63037),r=e(88648);const p=new(e(3879)._)("searchresult");var h;let m=((h=class extends r.J{constructor(){super(...arguments),this.type=p}getRenderTypes(){return[this.constructor]}}).type=p,h);(0,t.__decorate)([d.OJ,n.autoserialize,(0,t.__metadata)("design:type",i.Ro)],m.prototype,"hitHighlights",void 0),(0,t.__decorate)([n.deserialize,(0,t.__metadata)("design:type",Object)],m.prototype,"_links",void 0),(0,t.__decorate)([(0,d.Qe)("uuid"),(0,t.__metadata)("design:type",Object)],m.prototype,"indexableObject",void 0),m=(0,t.__decorate)([o.KB],m)},89787:(R,c,e)=>{"use strict";e.d(c,{T:()=>D});var t=e(47556),n=e(68285),o=e(39300),i=e(63900),d=e(54004),r=e(68675),a=e(47235),p=e(19937),h=e(24702),m=e(96482),_=e(46418),v=e(94650),E=e(89383),O=e(34793),b=e(36895),M=e(9769);function P(l,C){if(1&l){const I=v.\u0275\u0275getCurrentView();v.\u0275\u0275elementStart(0,"button",1),v.\u0275\u0275listener("click",function(){v.\u0275\u0275restoreView(I);const B=v.\u0275\u0275nextContext();
1return v.\u0275\u0275resetView(B.export())}),v.\u0275\u0275pipe(1,"translate"),v.\u0275\u0275pipe(2,"translate"),v.\u0275\u0275pipe(3,"translate"),v.\u0275\u0275element(4,"i",2),v.\u0275\u0275elementEnd()}if(2&l){const I=v.\u0275\u0275nextContext();v.\u0275\u0275property("ngbTooltip",v.\u0275\u0275pipeBind1(1,3,I.tooltipMsg))("title",v.\u0275\u0275pipeBind1(2,5,I.tooltipMsg)),v.\u0275\u0275attribute("aria-label",v.\u0275\u0275pipeBind1(3,7,I.tooltipMsg))}}let D=(()=>{class l{constructor(I,g,B,L,V){this.scriptDataService=I,this.authorizationDataService=g,this.notificationsService=B,this.translateService=L,this.router=V,this.tooltipMsg="metadata-export-search.tooltip"}ngOnInit(){this.shouldShowButton$=this.authorizationDataService.isAuthorized(a.i.AdministratorOf).pipe((0,o.h)(I=>I),(0,i.w)(()=>this.scriptDataService.scriptWithNameExistsAndCanExecute("metadata-export-search")),(0,d.U)(I=>I),(0,r.O)(!1))}export(){const I=[];if((0,h.Uh)(this.searchConfig)&&((0,h.UE)(this.searchConfig.query)&&I.push({name:"-q",value:this.searchConfig.query}),(0,h.UE)(this.searchConfig.scope)&&I.push({name:"-s",value:this.searchConfig.scope}),(0,h.UE)(this.searchConfig.configuration)&&I.push({name:"-c",value:this.searchConfig.configuration}),(0,h.UE)(this.searchConfig.filters)&&this.searchConfig.filters.forEach(g=>{(0,h.Uh)(g.values)&&g.values.forEach(B=>{let L,V;(0,h.Uh)(g.operator)?(L=g.operator,V=B):(L=B.substring(B.lastIndexOf(",")+1),V=B.substring(0,B.lastIndexOf(",")));const Y=`${g.key.substring(2)},${L}=${V}`;I.push({name:"-f",value:Y})})}),(0,h.UE)(this.searchConfig.fixedFilter))){const B=this.searchConfig.fixedFilter.substring(2).split("=");if(B.length>1){const L=B[0],V=B[1].split(",");V.length>1&&I.push({name:"-f",value:`${L},${V[1]}=${V[0]}`})}}this.scriptDataService.invoke("metadata-export-search",I,[]).pipe((0,n.hC)()).subscribe(g=>{g.hasSucceeded?(this.notificationsService.success(this.translateService.get("metadata-export-search.submit.success")),this.router.navigateByUrl((0,m.Ah)(g.payload.processId))):this.notificationsService.error(this.translateService.get("metadata-export-search.submit.error"))})}}return l.\u0275fac=function(I){return new(I||l)(v.\u0275\u0275directiveInject(t.UY),v.\u0275\u0275directiveInject(p._),v.\u0275\u0275directiveInject(_.T),v.\u0275\u0275directiveInject(E.sK),v.\u0275\u0275directiveInject(O.F0))},l.\u0275cmp=v.\u0275\u0275defineComponent({type:l,selectors:[["ds-search-export-csv"]],inputs:{searchConfig:"searchConfig"},decls:2,vars:3,consts:[["class","export-button btn btn-dark btn-sm",3,"ngbTooltip","title","click",4,"ngIf"],[1,"export-button","btn","btn-dark","btn-sm",3,"ngbTooltip","title","click"],[1,"fas","fa-file-export","fa-fw"]],template:function(I,g){1&I&&(v.\u0275\u0275template(0,P,5,9,"button",0),v.\u0275\u0275pipe(1,"async")),2&I&&v.\u0275\u0275property("ngIf",v.\u0275\u0275pipeBind1(1,1,g.shouldShowButton$))},dependencies:[b.O5,M._L,b.Ov,E.X$],styles:[".export-button[_ngcontent-%COMP%]{background:var(--ds-admin-sidebar-bg);border-color:var(--ds-admin-sidebar-bg)}"]}),l})()},9501:(R,c,e)=>{"use strict";e.d(c,{Dt:()=>m,EZ:()=>r,FR:()=>h,GL:()=>a,WS:()=>p,ZG:()=>d,l0:()=>n,sd:()=>i});var t=e(79472);const n={COLLAPSE:(0,t.d)("dspace/search-filter/COLLAPSE"),INITIALIZE:(0,t.d)("dspace/search-filter/INITIALIZE"),EXPAND:(0,t.d)("dspace/search-filter/EXPAND"),TOGGLE:(0,t.d)("dspace/search-filter/TOGGLE"),DECREMENT_PAGE:(0,t.d)("dspace/search-filter/DECREMENT_PAGE"),INCREMENT_PAGE:(0,t.d)("dspace/search-filter/INCREMENT_PAGE"),RESET_PAGE:(0,t.d)("dspace/search-filter/RESET_PAGE")};class o{constructor(v){this.filterName=v}}class i extends o{constructor(){super(...arguments),this.type=n.COLLAPSE}}class d extends o{constructor(){super(...arguments),this.type=n.EXPAND}}class r extends o{constructor(){super(...arguments),this.type=n.TOGGLE}}class a extends o{constructor(v){super(v.name),this.type=n.INITIALIZE,this.initiallyExpanded=v.isOpenByDefault}}class p extends o{constructor(){super(...arguments),this.type=n.DECREMENT_PAGE}}class h extends o{constructor(){super(...arguments),this.type=n.INCREMENT_PAGE}}class m extends o{constructor(){super(...arguments),this.type=n.RESET_PAGE}}},50678:(R,c,e)=>{"use strict";e.d(c,{D:()=>n,i:()=>o});const t=new Map;function n(i){return function(r){r&&t.set(i,r)}}function o(i){return t.get(i)}},30236:(R,c,e)=>{"use strict";e.d(c,{l:()=>d});var t=e(94650),n=e(25330);function o(r,a){}const i=["*"];let d=(()=>{class r extends n.F{constructor(){super(...arguments),this.inAndOutputNames=["configurationList","context","configuration","fixedFilterQuery","hiddenQuery","useCachedVersionIfAvailable","inPlaceSearch","linkType","paginationId","searchEnabled","sideBarWidth","searchFormPlaceholder","selectable","selectionConfig","showCsvExport","showSidebar","showThumbnails","showViewModes","useUniquePageId","viewModeList","showScopeSelector","trackStatistics","query","scope","resultFound","deselectObject","selectObject"],this.resultFound=new t.EventEmitter,this.deselectObject=ne
1w t.EventEmitter,this.selectObject=new t.EventEmitter}getComponentName(){return"SearchComponent"}importThemedComponent(p){return e(92790)(`./${p}/app/shared/search/search.component`)}importUnthemedComponent(){return e.e(8881).then(e.bind(e,58881))}}return r.\u0275fac=function(){let a;return function(h){return(a||(a=t.\u0275\u0275getInheritedFactory(r)))(h||r)}}(),r.\u0275cmp=t.\u0275\u0275defineComponent({type:r,selectors:[["ds-themed-search"]],inputs:{configurationList:"configurationList",context:"context",configuration:"configuration",fixedFilterQuery:"fixedFilterQuery",hiddenQuery:"hiddenQuery",useCachedVersionIfAvailable:"useCachedVersionIfAvailable",inPlaceSearch:"inPlaceSearch",linkType:"linkType",paginationId:"paginationId",searchEnabled:"searchEnabled",sideBarWidth:"sideBarWidth",searchFormPlaceholder:"searchFormPlaceholder",selectable:"selectable",selectionConfig:"selectionConfig",showCsvExport:"showCsvExport",showSidebar:"showSidebar",showThumbnails:"showThumbnails",showViewModes:"showViewModes",useUniquePageId:"useUniquePageId",viewModeList:"viewModeList",showScopeSelector:"showScopeSelector",trackStatistics:"trackStatistics",query:"query",scope:"scope"},outputs:{resultFound:"resultFound",deselectObject:"deselectObject",selectObject:"selectObject"},features:[t.\u0275\u0275InheritDefinitionFeature],ngContentSelectors:i,decls:5,vars:0,consts:[["vcr",""],["content",""]],template:function(p,h){1&p&&(t.\u0275\u0275projectionDef(),t.\u0275\u0275template(0,o,0,0,"ng-template",null,0,t.\u0275\u0275templateRefExtractor),t.\u0275\u0275elementStart(2,"div",null,1),t.\u0275\u0275projection(4),t.\u0275\u0275elementEnd())},encapsulation:2}),r})()},44186:(R,c,e)=>{"use strict";e.d(c,{m:()=>Xa});var I,t=e(36895),n=e(34793),o=e(24006),i=e(19109),d=e(9769),r=e(89383),a=e(77296),p=e(18916),h=e(8920),m=e(36750),_=e(57117),v=e(70655),E=e(51121),O=e(62921),b=e(88829),M=e(33609),P=e(84412),D=e(24702),l=e(94650),C=e(91538);let g=((I=class extends b.i{ngOnChanges(){(0,D.Uh)(this.object)&&(this.itemSearchResult=Object.assign(new P.T,{indexableObject:this.object}))}}).\u0275fac=function(){let Ve;return function(be){return(Ve||(Ve=l.\u0275\u0275getInheritedFactory(I)))(be||I)}}(),I.\u0275cmp=l.\u0275\u0275defineComponent({type:I,selectors:[["ds-item-list-element"]],features:[l.\u0275\u0275InheritDefinitionFeature,l.\u0275\u0275NgOnChangesFeature],decls:1,vars:3,consts:[[3,"object","viewMode","linkType"]],template:function(rt,be){1&rt&&l.\u0275\u0275element(0,"ds-listable-object-component-loader",0),2&rt&&l.\u0275\u0275property("object",be.itemSearchResult)("viewMode",be.viewMode)("linkType",be.linkType)},dependencies:[C.p]}),I);g=(0,v.__decorate)([(0,O.d$)("Publication",E.w.ListElement),(0,O.d$)(M.c,E.w.ListElement)],g),e(26625),e(54202),e(63900);var Y=e(54004),X=e(95698),K=(e(5963),e(39646)),ae=(e(55237),e(68285));e(11515);var ie,G=e(22979);const ne=function(Ve){return[Ve]};function q(Ve,rt){if(1&Ve&&(l.\u0275\u0275elementStart(0,"a",6),l.\u0275\u0275text(1),l.\u0275\u0275elementEnd()),2&Ve){const be=l.\u0275\u0275nextContext();l.\u0275\u0275property("target",be.linkType==be.linkTypes.ExternalLink?"_blank":"_self")("routerLink",l.\u0275\u0275pureFunction1(4,ne,"/collections/"+be.object.id)),l.\u0275\u0275attribute("rel",be.linkType==be.linkTypes.ExternalLink?"noopener noreferrer":null),l.\u0275\u0275advance(1),l.\u0275\u0275textInterpolate1(" ",be.dsoNameService.getName(be.object)," ")}}function oe(Ve,rt){if(1&Ve&&(l.\u0275\u0275elementStart(0,"span",7),l.\u0275\u0275text(1),l.\u0275\u0275elementEnd()),2&Ve){const be=l.\u0275\u0275nextContext();l.\u0275\u0275advance(1),l.\u0275\u0275textInterpolate1(" ",be.dsoNameService.getName(be.object)," ")}}function ce(Ve,rt){if(1&Ve&&(l.\u0275\u0275elementStart(0,"span",8),l.\u0275\u0275text(1),l.\u0275\u0275elementEnd()),2&Ve){const be=l.\u0275\u0275nextContext();l.\u0275\u0275advance(1),l.\u0275\u0275textInterpolate(be.object.archivedItemsCount)}}function ye(Ve,rt){if(1&Ve&&(l.\u0275\u0275elementStart(0,"div",9),l.\u0275\u0275text(1),l.\u0275\u0275elementEnd()),2&Ve){const be=l.\u0275\u0275nextContext();l.\u0275\u0275advance(1),l.\u0275\u0275textInterpolate1(" ",be.object.shortDe
1scription,"\n")}}let Me=((ie=class extends b.i{}).\u0275fac=function(){let Ve;return function(be){return(Ve||(Ve=l.\u0275\u0275getInheritedFactory(ie)))(be||ie)}}(),ie.\u0275cmp=l.\u0275\u0275defineComponent({type:ie,selectors:[["ds-collection-list-element"]],features:[l.\u0275\u0275InheritDefinitionFeature],decls:7,vars:4,consts:[[1,"d-flex","flex-row"],["class","lead",3,"target","routerLink",4,"ngIf"],["class","lead",4,"ngIf"],[1,"pr-2"],["class","badge badge-pill badge-secondary align-self-center archived-items-lead",4,"ngIf"],["class","text-muted abstract-text",4,"ngIf"],[1,"lead",3,"target","routerLink"],[1,"lead"],[1,"badge","badge-pill","badge-secondary","align-self-center","archived-items-lead"],[1,"text-muted","abstract-text"]],template:function(rt,be){1&rt&&(l.\u0275\u0275elementStart(0,"div",0),l.\u0275\u0275template(1,q,2,6,"a",1),l.\u0275\u0275template(2,oe,2,1,"span",2),l.\u0275\u0275elementStart(3,"span",3),l.\u0275\u0275text(4,"\xa0"),l.\u0275\u0275elementEnd(),l.\u0275\u0275template(5,ce,2,1,"span",4),l.\u0275\u0275elementEnd(),l.\u0275\u0275template(6,ye,2,1,"div",5)),2&rt&&(l.\u0275\u0275advance(1),l.\u0275\u0275property("ngIf",be.linkType!=be.linkTypes.None),l.\u0275\u0275advance(1),l.\u0275\u0275property("ngIf",be.linkType==be.linkTypes.None),l.\u0275\u0275advance(3),l.\u0275\u0275property("ngIf",be.object.archivedItemsCount>=0),l.\u0275\u0275advance(1),l.\u0275\u0275property("ngIf",be.object.shortDescription))},dependencies:[t.O5,n.rH]}),ie);Me=(0,v.__decorate)([(0,O.d$)(G.F,E.w.ListElement)],Me);var Je,Ee=e(21721),Ae=e(83616);const _t=function(Ve){return[Ve]};function It(Ve,rt){if(1&Ve&&(l.\u0275\u0275elementStart(0,"a",6),l.\u0275\u0275text(1),l.\u0275\u0275elementEnd()),2&Ve){const be=l.\u0275\u0275nextContext();l.\u0275\u0275property("target",be.linkType==be.linkTypes.ExternalLink?"_blank":"_self")("routerLink",l.\u0275\u0275pureFunction1(4,_t,"/communities/"+be.object.id)),l.\u0275\u0275attribute("rel",be.linkType==be.linkTypes.ExternalLink?"noopener noreferrer":null),l.\u0275\u0275advance(1),l.\u0275\u0275textInterpolate1(" ",be.dsoNameService.getName(be.object)," ")}}function it(Ve,rt){if(1&Ve&&(l.\u0275\u0275elementStart(0,"span",7),l.\u0275\u0275text(1),l.\u0275\u0275elementEnd()),2&Ve){const be=l.\u0275\u0275nextContext();l.\u0275\u0275advance(1),l.\u0275\u0275textInterpolate1(" ",be.dsoNameService.getName(be.object)," ")}}function Be(Ve,rt){if(1&Ve&&(l.\u0275\u0275elementStart(0,"span",8),l.\u0275\u0275text(1),l.\u0275\u0275elementEnd()),2&Ve){const be=l.\u0275\u0275nextContext();l.\u0275\u0275advance(1),l.\u0275\u0275textInterpolate(be.object.archivedItemsCount)}}function Xe(Ve,rt){if(1&Ve&&(l.\u0275\u0275elementStart(0,"div",9),l.\u0275\u0275text(1),l.\u0275\u0275elementEnd()),2&Ve){const be=l.\u0275\u0275nextContext();l.\u0275\u0275advance(1),l.\u0275\u0275textInterpolate1(" ",be.object.shortDescription,"\n")}}let pt=((Je=class extends b.i{constructor(rt){super(rt),this.dsoNameService=rt}}).\u0275fac=function(rt){return new(rt||Je)(l.\u0275\u0275directiveInject(Ae._))},Je.\u0275cmp=l.\u0275\u0275defineComponent({type:Je,selectors:[["ds-community-list-element"]],features:[l.\u0275\u0275InheritDefinitionFeature],decls:7,vars:4,consts:[[1,"d-flex","flex-row"],["class","lead",3,"target","routerLink",4,"ngIf"],["class","lead",4,"ngIf"],[1,"pr-2"],["class","badge badge-pill badge-secondary align-self-center archived-items-lead",4,"ngIf"],["class","text-muted abstract-text",4,"ngIf"],[1,"lead",3,"target","routerLink"],[1,"lead"],[1,"badge","badge-pill","badge-secondary","align-self-center","archived-items-lead"],[1,"text-muted","abstract-text"]],template:function(rt,be){1&rt&&(l.\u0275\u0275elementStart(0,"div",0),l.\u0275\u0275template(1,It,2,6,"a",1),l.\u0275\u0275template(2,it,2,1,"span",2),l.\u0275\u0275elementStart(3,"span",3),l.\u0275\u0275text(4,"\xa0"),l.\u0275\u0275elementEnd(),l.\u0275\u0275template(5,Be,2,1,"span",4),l.\u0275\u0275elementEnd(),l.\u0275\u0275template(6,Xe,2,1,"div",5)),2&rt&&(l.\u0275\u0275advance(1),l.\u0275\u0275property("ngIf",be.linkType!=be.linkTypes.None),l.\u0275\u0275advance(1),l.\u0275\u0275property("ngIf",be.linkType==be.linkTypes.None),l.\u0275\u0275advance(3),l.\u0275\u0275property("ngIf",be.object.archivedItemsCount>=0),l.\u0275\u0275advance(1),l.\u0275\u0275property("ngIf",be.object.shortDe
1scription))},dependencies:[t.O5,n.rH]}),Je);pt=(0,v.__decorate)([(0,O.d$)(Ee.S,E.w.ListElement),(0,v.__metadata)("design:paramtypes",[Ae._])],pt);var tt,Mt=e(79691),mt=(e(14399),e(31960),e(93369)),en=e(94476),pn=e(20858);const Tt=function(Ve){return["/collections/",Ve]};function At(Ve,rt){if(1&Ve&&(l.\u0275\u0275elementStart(0,"a",7),l.\u0275\u0275pipe(1,"translate"),l.\u0275\u0275element(2,"ds-themed-thumbnail",8),l.\u0275\u0275pipe(3,"async"),l.\u0275\u0275elementEnd()),2&Ve){const be=l.\u0275\u0275nextContext();let Ht;l.\u0275\u0275property("target",be.linkType==be.linkTypes.ExternalLink?"_blank":"_self")("routerLink",l.\u0275\u0275pureFunction1(10,Tt,be.object.id)),l.\u0275\u0275attribute("rel",be.linkType==be.linkTypes.ExternalLink?"noopener noreferrer":null)("title",l.\u0275\u0275pipeBind1(1,6,"search.results.view-result")),l.\u0275\u0275advance(2),l.\u0275\u0275property("thumbnail",null==(Ht=l.\u0275\u0275pipeBind1(3,8,be.object.logo))?null:Ht.payload)("limitWidth",!1)}}function Rt(Ve,rt){if(1&Ve&&(l.\u0275\u0275elementStart(0,"span",9),l.\u0275\u0275element(1,"ds-themed-thumbnail",8),l.\u0275\u0275pipe(2,"async"),l.\u0275\u0275elementEnd()),2&Ve){const be=l.\u0275\u0275nextContext();let Ht;l.\u0275\u0275advance(1),l.\u0275\u0275property("thumbnail",null==(Ht=l.\u0275\u0275pipeBind1(2,2,be.object.logo))?null:Ht.payload)("limitWidth",!1)}}function Pt(Ve,rt){if(1&Ve&&(l.\u0275\u0275elementStart(0,"p",10),l.\u0275\u0275text(1),l.\u0275\u0275elementEnd()),2&Ve){const be=l.\u0275\u0275nextContext();l.\u0275\u0275advance(1),l.\u0275\u0275textInterpolate(be.object.shortDescription)}}function xt(Ve,rt){if(1&Ve&&(l.\u0275\u0275elementStart(0,"div",11)(1,"a",12),l.\u0275\u0275text(2),l.\u0275\u0275pipe(3,"translate"),l.\u0275\u0275elementEnd()()),2&Ve){const be=l.\u0275\u0275nextContext();l.\u0275\u0275advance(1),l.\u0275\u0275property("target",be.linkType==be.linkTypes.ExternalLink?"_blank":"_self")("routerLink",l.\u0275\u0275pureFunction1(6,Tt,be.object.id)),l.\u0275\u0275attribute("rel",be.linkType==be.linkTypes.ExternalLink?"noopener noreferrer":null),l.\u0275\u0275advance(1),l.\u0275\u0275textInterpolate(l.\u0275\u0275pipeBind1(3,4,"search.results.view-result"))}}let lt=((tt=class extends b.i{constructor(rt,be){super(rt),this.dsoNameService=rt,this.linkService=be}set object(rt){this._object=rt,(0,D.Uh)(this._object)&&(0,D.xI)(this._object.logo)&&this.linkService.resolveLink(this._object,(0,mt.l)("logo"))}get object(){return this._object}}).\u0275fac=function(rt){return new(rt||tt)(l.\u0275\u0275directiveInject(Ae._),l.\u0275\u0275directiveInject(en.M))},tt.\u0275cmp=l.\u0275\u0275defineComponent({type:tt,selectors:[["ds-collection-grid-element"]],inputs:{object:"object"},features:[l.\u0275\u0275InheritDefinitionFeature],decls:8,vars:5,consts:[[1,"card"],["class","card-img-top",3,"target","routerLink",4,"ngIf"],["class","card-img-top",4,"ngIf"],[1,"card-body"],[1,"card-title"],["class","card-text",4,"ngIf"],["class","text-center",4,"ngIf"],[1,"card-img-top",3,"target","routerLink"],[3,"thumbnail","limitWidth"],[1,"card-img-top"],[1,"card-text"],[1,"text-center"],[1,"lead","btn","btn-primary","viewButton",3,"target","routerLink"]],template:function(rt,be){1&rt&&(l.\u0275\u0275elementStart(0,"div",0),l.\u0275\u0275template(1,At,4,12,"a",1),l.\u0275\u0275template(2,Rt,3,4,"span",2),l.\u0275\u0275elementStart(3,"div",3)(4,"h4",4),l.\u0275\u0275text(5),l.\u0275\u0275elementEnd(),l.\u0275\u0275template(6,Pt,2,1,"p",5),l.\u0275\u0275template(7,xt,4,8,"div",6),l.\u0275\u0275elementEnd()()),2&rt&&(l.\u0275\u0275advance(1),l.\u0275\u0275property("ngIf",be.linkType!=be.linkTypes.None),l.\u0275\u0275advance(1),l.\u0275\u0275property("ngIf",be.linkType==be.linkTypes.None),l.\u0275\u0275advance(3),l.\u0275\u0275textInterpolate(be.dsoNameService.getName(be.object)),l.\u0275\u0275advance(1),l.\u0275\u0275property("ngIf",be.object.shortDescription),l.\u0275\u0275advance(1),l.\u0275\u0275property("ngIf",be.linkType!=be.linkTypes.None))},dependencies:[t.O5,n.rH,pn.z,t.Ov,r.X$]}),tt);var Ut;lt=(0,v.__decorate)([(0,O.d$)(G.F,E.w.GridElement),(0,v.__metadata)("design:paramtypes",[Ae._,en.M])],lt);const ke=function(Ve){return["/communities/",Ve]};function ot(Ve,rt){if(1&Ve&&(l.\u0275\u0275elementStart(0,"a",7),l.\u0275\u0275pipe(1,"translate"),l.\u0275\u0275element(2,"ds-themed-thumbnail",8),l.\u0275\u0275pipe(3,"async"),l.\u0275\u0275elementEnd()),2&Ve){const be=l.\u0275\u0275nextContext();let Ht;l.\u0275\u0275property("target",be.linkType==be.linkTypes.ExternalLink?"_blank":"_self")("routerLink",l.\u0275\u0275pureFunction1(10,ke,be.object.id)),l.\u0275\u0275attribute("rel",be.linkType==be.linkTypes.ExternalLink?"noopener noreferrer":null)("title",l.\u0275\u0275pipeBind1(1,6,"search.results.view-result")),l.\u0275\u0275advance(2),l.\u0275\u0275property("thumbnail",null==(Ht=l.\u0275\u0275pipeBind1(3,8,be.object.logo))?null:Ht.payload)("limitWidth",!1)}}function gt(Ve,rt){if(1&Ve&&(l.\u0275\u0275elementStart(0,"span",9),l.\u0275\u0275element(1,"ds-themed-thumbnail",8),l.\u0275\u0275pipe(2,"async"),l.\u0275\u0275elementEnd()),2&Ve){const be=l.\u0275\u0275nextContext();let Ht;l.\u0275\u0275advance(1),l.\u0275\u0275property("thumbnail",null==(Ht=l.\u0275\u0275pipeBind1(2,2,be.object.logo))?null:Ht.payload)("limitWidth",!1)}}function zt(Ve,rt){if(1&Ve&&(l.\u0275\u0275elementStart(0,"p",10),l.\u0275\u0275text(1),l.\u0275\u0275elementEnd()),2&Ve){const be=l.\u0275\u0275nextContext();l.\u0275\u0275advance(1),l.\u0275\u0275textInterpolate(be.object.shortDe
1scription)}}function hn(Ve,rt){if(1&Ve&&(l.\u0275\u0275elementStart(0,"div",11)(1,"a",12),l.\u0275\u0275text(2),l.\u0275\u0275pipe(3,"translate"),l.\u0275\u0275elementEnd()()),2&Ve){const be=l.\u0275\u0275nextContext();l.\u0275\u0275advance(1),l.\u0275\u0275property("target",be.linkType==be.linkTypes.ExternalLink?"_blank":"_self")("routerLink",l.\u0275\u0275pureFunction1(6,ke,be.object.id)),l.\u0275\u0275attribute("rel",be.linkType==be.linkTypes.ExternalLink?"noopener noreferrer":null),l.\u0275\u0275advance(1),l.\u0275\u0275textInterpolate(l.\u0275\u0275pipeBind1(3,4,"search.results.view-result"))}}let Vt=((Ut=class extends b.i{constructor(rt,be){super(rt),this.dsoNameService=rt,this.linkService=be}set object(rt){this._object=rt,(0,D.Uh)(this._object)&&(0,D.xI)(this._object.logo)&&this.linkService.resolveLink(this._object,(0,mt.l)("logo"))}get object(){return this._object}}).\u0275fac=function(rt){return new(rt||Ut)(l.\u0275\u0275directiveInject(Ae._),l.\u0275\u0275directiveInject(en.M))},Ut.\u0275cmp=l.\u0275\u0275defineComponent({type:Ut,selectors:[["ds-community-grid-element"]],inputs:{object:"object"},features:[l.\u0275\u0275InheritDefinitionFeature],decls:8,vars:5,consts:[[1,"card"],["class","card-img-top",3,"target","routerLink",4,"ngIf"],["class","card-img-top",4,"ngIf"],[1,"card-body"],[1,"card-title"],["class","card-text",4,"ngIf"],["class","text-center",4,"ngIf"],[1,"card-img-top",3,"target","routerLink"],[3,"thumbnail","limitWidth"],[1,"card-img-top"],[1,"card-text"],[1,"text-center"],[1,"lead","btn","btn-primary","viewButton",3,"target","routerLink"]],template:function(rt,be){1&rt&&(l.\u0275\u0275elementStart(0,"div",0),l.\u0275\u0275template(1,ot,4,12,"a",1),l.\u0275\u0275template(2,gt,3,4,"span",2),l.\u0275\u0275elementStart(3,"div",3)(4,"h4",4),l.\u0275\u0275text(5),l.\u0275\u0275elementEnd(),l.\u0275\u0275template(6,zt,2,1,"p",5),l.\u0275\u0275template(7,hn,4,8,"div",6),l.\u0275\u0275elementEnd()()),2&rt&&(l.\u0275\u0275advance(1),l.\u0275\u0275property("ngIf",be.linkType!=be.linkTypes.None),l.\u0275\u0275advance(1),l.\u0275\u0275property("ngIf",be.linkType==be.linkTypes.None),l.\u0275\u0275advance(3),l.\u0275\u0275textInterpolate(be.dsoNameService.getName(be.object)),l.\u0275\u0275advance(1),l.\u0275\u0275property("ngIf",be.object.shortDescription),l.\u0275\u0275advance(1),l.\u0275\u0275property("ngIf",be.linkType!=be.linkTypes.None))},dependencies:[t.O5,n.rH,pn.z,t.Ov,r.X$]}),Ut);Vt=(0,v.__decorate)([(0,O.d$)(Ee.S,E.w.GridElement),(0,v.__metadata)("design:paramtypes",[Ae._,en.M])],Vt),e(28313),e(70714),e(41971),e(45863);var wt=e(62697),Le=(e(48181),e(13511),e(35278),e(30150)),at=(e(98856),e(98605)),dt=(e(59492),e(77485),e(62185),e(96872),e(58714),e(57416),e(29602)),ht=e(84630);let je=(()=>{class Ve{canActivate(be,Ht){return"object"!=typeof window||!(0,D.Uh)(window.localStorage)||"true"===window.localStorage.getItem("isAdmin")}canActivateChild(be,Ht){return this.canActivate(be,Ht)}}return Ve.\u0275fac=function(be){return new(be||Ve)},Ve.\u0275prov=l.\u0275\u0275defineInjectable({token:Ve,factory:Ve.\u0275fac}),Ve})();e(38605);var nr,Zt=e(33457),ze=(e(8514),e(43928),e(94554)),bt=e(77467),En=e(33996),wn=e(5360);const Cn=function(){return[]};function bn(Ve,rt){if(1&Ve&&(l.\u0275\u0275elementStart(0,"a",5),l.\u0275\u0275pipe(1,"async"),l.\u0275\u0275text(2),l.\u0275\u0275elementEnd()),2&Ve){const be=l.\u0275\u0275nextContext();l.\u0275\u0275property("target",be.linkType==be.linkTypes.ExternalLink?"_blank":"_self")("routerLink",l.\u0275\u0275pureFunction0(8,Cn))("queryParams",l.\u0275\u0275pipeBind1(1,6,be.queryParams$))("queryParamsHandling","merge"),l.\u0275\u0275attribute("rel",be.linkType==be.linkTypes.ExternalLink?"noopener noreferrer":null),l.\u0275\u0275advance(2),l.\u0275\u0275textInterpolate1(" ",be.object.value," ")}}function cn(Ve,rt){if(1&Ve&&(l.\u0275\u0275elementStart(0,"span",6),l.\u0275\u0275text(1),l.\u0275\u0275elementEnd()),2&Ve){const be=l.\u0275\u0275nextContext();l.\u0275\u0275advance(1),l.\u0275\u0275textInterpolate1(" ",be.object.value," ")}}let Dn=((nr=class extends b.i{constructor(rt,be,Ht){super(rt),this.dsoNameService=rt,this.paginationService=be,this.routeService=Ht}ngOnInit(){this.queryParams$=this.getQueryParams()}getQueryParams(){const rt=this.paginationService.getPageParam(En.BBM_PAGINATION_ID);
1return this.routeService.getQueryParameterValue(rt).pipe((0,Y.U)(be=>({value:this.object.value,authority:this.object.authority?this.object.authority:void 0,startsWith:void 0,[rt]:null,[En.BBM_PAGINATION_ID+".return"]:be})))}}).\u0275fac=function(rt){return new(rt||nr)(l.\u0275\u0275directiveInject(Ae._),l.\u0275\u0275directiveInject(bt.N),l.\u0275\u0275directiveInject(wn.MZ))},nr.\u0275cmp=l.\u0275\u0275defineComponent({type:nr,selectors:[["ds-browse-entry-list-element"]],features:[l.\u0275\u0275InheritDefinitionFeature],decls:7,vars:3,consts:[[1,"d-flex","flex-row"],["class","lead",3,"target","routerLink","queryParams","queryParamsHandling",4,"ngIf"],["class","lead",4,"ngIf"],[1,"pr-2"],[1,"badge","badge-pill","badge-secondary","align-self-center"],[1,"lead",3,"target","routerLink","queryParams","queryParamsHandling"],[1,"lead"]],template:function(rt,be){1&rt&&(l.\u0275\u0275elementStart(0,"div",0),l.\u0275\u0275template(1,bn,3,9,"a",1),l.\u0275\u0275template(2,cn,2,1,"span",2),l.\u0275\u0275elementStart(3,"span",3),l.\u0275\u0275text(4,"\xa0"),l.\u0275\u0275elementEnd(),l.\u0275\u0275elementStart(5,"span",4),l.\u0275\u0275text(6),l.\u0275\u0275elementEnd()()),2&rt&&(l.\u0275\u0275advance(1),l.\u0275\u0275property("ngIf",be.linkType!=be.linkTypes.None),l.\u0275\u0275advance(1),l.\u0275\u0275property("ngIf",be.linkType==be.linkTypes.None),l.\u0275\u0275advance(4),l.\u0275\u0275textInterpolate(be.object.count))},dependencies:[t.O5,n.rH,t.Ov]}),nr);Dn=(0,v.__decorate)([(0,O.d$)(ze.g,E.w.ListElement),(0,v.__metadata)("design:paramtypes",[Ae._,bt.N,wn.MZ])],Dn),e(34159),e(90059),e(19919),e(28538),e(25681),e(93963);var cr,rr=e(52885),Mr=e(40413),Mn=e(52760),Xn=e(63472);function Qr(Ve,rt){if(1&Ve&&(l.\u0275\u0275elementStart(0,"span",3),l.\u0275\u0275text(1),l.\u0275\u0275elementEnd()),2&Ve){const be=l.\u0275\u0275nextContext();l.\u0275\u0275advance(1),l.\u0275\u0275textInterpolate1(" ",be.mdRepresentation.getValue()," ")}}function Xr(Ve,rt){if(1&Ve&&(l.\u0275\u0275elementStart(0,"a",4),l.\u0275\u0275text(1),l.\u0275\u0275elementEnd()),2&Ve){const be=l.\u0275\u0275nextContext();l.\u0275\u0275property("href",be.mdRepresentation.getValue(),l.\u0275\u0275sanitizeUrl),l.\u0275\u0275advance(1),l.\u0275\u0275textInterpolate1(" ",be.mdRepresentation.getValue()," ")}}function wr(Ve,rt){if(1&Ve&&(l.\u0275\u0275elementStart(0,"span",3),l.\u0275\u0275text(1),l.\u0275\u0275elementEnd()),2&Ve){const be=l.\u0275\u0275nextContext();l.\u0275\u0275advance(1),l.\u0275\u0275textInterpolate(be.mdRepresentation.getValue())}}const ui=function(Ve){return["/browse/",Ve]};function Nr(Ve,rt){if(1&Ve&&(l.\u0275\u0275elementStart(0,"a",5),l.\u0275\u0275text(1),l.\u0275\u0275elementEnd()),2&Ve){const be=l.\u0275\u0275nextContext();l.\u0275\u0275property("routerLink",l.\u0275\u0275pureFunction1(3,ui,be.mdRepresentation.browseDefinition.id))("queryParams",be.getQueryParams()),l.\u0275\u0275advance(1),l.\u0275\u0275textInterpolate1(" ",be.mdRepresentation.getValue()," ")}}let ii=((cr=class extends Mr.S{getQueryParams(){let rt={startsWith:this.mdRepresentation.getValue()};return this.mdRepresentation.browseDefinition.getRenderType()===Xn.C.value?{value:this.mdRepresentation.getValue()}:rt}}).\u0275fac=function(){let Ve;return function(be){return(Ve||(Ve=l.\u0275\u0275getInheritedFactory(cr)))(be||cr)}}(),cr.\u0275cmp=l.\u0275\u0275defineComponent({type:cr,selectors:[["ds-plain-text-metadata-list-element"]],features:[l.\u0275\u0275InheritDefinitionFeature],decls:5,vars:4,consts:[["class","dont-break-out",4,"ngIf"],["class","dont-break-out","target","_blank",3,"href",4,"ngIf"],["class","dont-break-out ds-browse-link",3,"routerLink","queryParams",4,"ngIf"],[1,"dont-break-out"],["target","_blank",1,"dont-break-out",3,"href"],[1,"dont-break-out","ds-browse-link",3,"routerLink","queryParams"]],template:function(rt,be){1&rt&&(l.\u0275\u0275elementStart(0,"div"),l.\u0275\u0275template(1,Qr,2,1,"span",0),l.\u0275\u0275template(2,Xr,2,2,"a",1),l.\u0275\u0275template(3,wr,2,1,"span",0),l.\u0275\u0275template(4,Nr,2,5,"a",2),l.\u0275\u0275elementEnd()),2&rt&&(l.\u0275\u0275advance(1),l.\u0275\u0275property("ngIf","plain_text"==be.mdRepresentation.representationType&&!be.isLink()),l.\u0275\u0275advance(1),l.\u0275\u0275property("ngIf","plain_text"==be.mdRepresentation.representationType&&be.isLink()),l.\u0275\u0275advance(1),l.\u0275\u0275property("ngIf","authority_controlled"==be.mdRepresentation.representationType),l.\u0275\u0275advance(1),l.\u0275\u0275property("ngIf","browse_link"==be.mdRepresentation.representationType))},dependencies:[t.O5,n.rH],encapsulation:2}),cr);var fi;ii=(0,v.__decorate)([(0,Mn.Bu)("Publication",rr.P.PlainText),(0,Mn.Bu)("Publication",rr.P.AuthorityControlled)],ii);const sr=function(Ve){return["/browse/",Ve]};function Ai(Ve,rt){if(1&Ve&&(l.\u0275\u0275elementStart(0,"a",1),l.\u0275\u0275text(1),l.\u0275\u0275elementEnd()),2&Ve){const be=l.\u0275\u0275nextContext();l.\u0275\u0275property("routerLink",l.\u0275\u0275pureFunction1(3,sr,be.mdRepresentation.browseDefinition.id))("queryParams",be.getQueryParams()),l.\u0275\u0275advance(1),l.\u0275\u0275textInterpolate1(" ",be.mdRepresentation.getValue()," ")}}let Wr=((fi=class extends Mr.S{getQueryParams(){let rt={startsWith:this.mdRepresentation.getValue()};return this.mdRepresentation.browseDefinition.getRenderType()===Xn.C.value?{value:this.mdRepresentation.getValue()}:rt}}).\u0275fac=function(){let Ve;
1return function(be){return(Ve||(Ve=l.\u0275\u0275getInheritedFactory(fi)))(be||fi)}}(),fi.\u0275cmp=l.\u0275\u0275defineComponent({type:fi,selectors:[["ds-browse-link-metadata-list-element"]],features:[l.\u0275\u0275InheritDefinitionFeature],decls:4,vars:1,consts:[["target","_blank","class","dont-break-out",3,"routerLink","queryParams",4,"ngIf"],["target","_blank",1,"dont-break-out",3,"routerLink","queryParams"]],template:function(rt,be){1&rt&&(l.\u0275\u0275elementStart(0,"div"),l.\u0275\u0275template(1,Ai,2,5,"a",0),l.\u0275\u0275elementStart(2,"b"),l.\u0275\u0275text(3,"(new browse link page)"),l.\u0275\u0275elementEnd()()),2&rt&&(l.\u0275\u0275advance(1),l.\u0275\u0275property("ngIf","browse_link"==be.mdRepresentation.representationType))},dependencies:[t.O5,n.rH],encapsulation:2}),fi);var oi;Wr=(0,v.__decorate)([(0,Mn.Bu)("Publication",rr.P.BrowseLink)],Wr);let Gi=((oi=class extends Mr.S{constructor(){super(...arguments),this.viewMode=E.w.ListElement}}).\u0275fac=function(){let Ve;return function(be){return(Ve||(Ve=l.\u0275\u0275getInheritedFactory(oi)))(be||oi)}}(),oi.\u0275cmp=l.\u0275\u0275defineComponent({type:oi,selectors:[["ds-item-metadata-list-element"]],features:[l.\u0275\u0275InheritDefinitionFeature],decls:1,vars:2,consts:[[3,"object","viewMode"]],template:function(rt,be){1&rt&&l.\u0275\u0275element(0,"ds-listable-object-component-loader",0),2&rt&&l.\u0275\u0275property("object",be.mdRepresentation)("viewMode",be.viewMode)},dependencies:[C.p],encapsulation:2}),oi);Gi=(0,v.__decorate)([(0,Mn.Bu)("Publication",rr.P.Item)],Gi),e(5023);var Gt=e(37308);let dn=(()=>{class Ve{constructor(be,Ht,Yn,ar,Ge){this.startsWithOptions=be,this.paginationId=Ht,this.paginationService=Yn,this.route=ar,this.router=Ge,this.subs=[]}ngOnInit(){this.subs.push(this.route.queryParams.subscribe(be=>{(0,D.Uh)(be.startsWith)&&this.setStartsWith(be.startsWith)})),this.formData=new o.nJ({startsWith:new o.p4})}getStartsWith(){return this.startsWith}setStartsWithEvent(be){this.startsWith=be.target.value,this.setStartsWithParam()}setStartsWith(be){this.startsWith=be}setStartsWithParam(be=!0){"-1"===this.startsWith&&(this.startsWith=void 0),be?this.paginationService.updateRoute(this.paginationId,{page:1},{startsWith:this.startsWith}):this.router.navigate([],{queryParams:Object.assign({startsWith:this.startsWith}),queryParamsHandling:"merge"})}submitForm(be){this.startsWith=be.startsWith,this.setStartsWithParam()}ngOnDestroy(){this.subs.filter(be=>(0,D.Uh)(be)).forEach(be=>be.unsubscribe())}}return Ve.\u0275fac=function(be){return new(be||Ve)(l.\u0275\u0275directiveInject("startsWithOptions"),l.\u0275\u0275directiveInject("paginationId"),l.\u0275\u0275directiveInject(bt.N),l.\u0275\u0275directiveInject(n.gz),l.\u0275\u0275directiveInject(n.F0))},Ve.\u0275cmp=l.\u0275\u0275defineComponent({type:Ve,selectors:[["ds-start-with-abstract"]],decls:0,vars:0,template:function(be,Ht){},encapsulation:2}),Ve})();var gn;function An(Ve,rt){if(1&Ve&&(l.\u0275\u0275elementStart(0,"option",5),l.\u0275\u0275text(1),l.\u0275\u0275elementEnd()),2&Ve){const be=rt.$implicit,Ht=l.\u0275\u0275nextContext();l.\u0275\u0275property("value",be)("selected",be===Ht.startsWithYear?"selected":null),l.\u0275\u0275advance(1),l.\u0275\u0275textInterpolate1(" ",be," ")}}function Qn(Ve,rt){if(1&Ve&&(l.\u0275\u0275elementStart(0,"option",5),l.\u0275\u0275text(1),l.\u0275\u0275pipe(2,"translate"),l.\u0275\u0275elementEnd()),2&Ve){const be=rt.$implicit,Ht=l.\u0275\u0275nextContext();l.\u0275\u0275property("value",be)("selected",be===Ht.startsWithMonth?"selected":null),l.\u0275\u0275advance(1),l.\u0275\u0275textInterpolate1(" ",l.\u0275\u0275pipeBind1(2,3,"browse.startsWith.months."+be)," ")}}let Cr=((gn=class extends dn{constructor(rt,be,Ht,Yn,ar){super(rt,be,Ht,Yn,ar),this.startsWithOptions=rt,this.paginationId=be,this.paginationService=Ht,this.route=Yn,this.router=ar,this.startsWithMonth="none"}ngOnInit(){this.monthOptions=["none","january","february","march","april","may","june","july","august","september","october","november","december"],super.ngOnInit()}setStartsWithYearEvent(rt){this.startsWithYear=+rt.target.value,this.setStartsWithYearMonth(),this.setStartsWithParam(!0)}setStartsWithMonthEvent(rt){this.startsWithMonth=rt.target.value,this.setStartsWithYearMonth(),this.setStartsWithParam(!0)}getStartsWith(){const rt=this.getStartsWithMonth();if(rt>0&&(0,D.Uh)(this.startsWithYear)&&-1!==this.startsWithYear){let be=""+rt;return rt<10&&(be=`0${rt}`),`${this.startsWithYear}-${be}`}return(0,D.Uh)(this.startsWithYear)&&this.startsWithYear>0?""+this.startsWithYear:void 0}setStartsWithYearMonth(){this.startsWith=this.getStartsWith()}setStartsWith(rt){if(this.startsWith=rt,(0,D.Uh)(rt)&&rt.indexOf("-")>-1){const be=rt.split("-");this.startsWithYear=+be[0];const Ht=+be[1];this.startsWithMonth=Ht<this.monthOptions.length?this.monthOptions[Ht]:this.monthOptions[0]}else this.startsWithYear=+rt}getStartsWithYear(){return this.startsWithYear}getStartsWithMonth(){return this.monthOptions.indexOf(this.startsWithMonth)}}).\u0275fac=function(rt){return new(rt||gn)(l.\u0275\u0275directiveInject("startsWithOptions"),l.\u0275\u0275directiveInject("paginationId"),l.\u0275\u0275directiveInject(bt.N),l.\u0275\u0275directiveInject(n.gz),l.\u0275\u0275directiveInject(n.F0))},gn.\u0275cmp=l.\u0275\u0275defineComponent({type:gn,selectors:[["ds-starts-with-date"]],features:[l.\u0275\u0275InheritDefinitionFeature],decls:25,vars:27,consts:[[1,"w-100",3,"formGroup","ngSubmit"],[1,"row"],[1,"col-12","font-weight-bold","mb-1"],[1,"col-6","col-md-2"],["id","year-select",1,"form-control",3,"change"],[3,"value","selected"],[3,"value","selected",4,"ngFor","ngForOf"],["id","month-select",1,"form-control",3,"change"],[1,"form-group","input-group","col-12","col-md-6","pt-1","pt-md-0"],["type","text","name","startsWith","formControlName","startsWith",1,"form-control",3,"placeholder","value"],[1,"input-group-append"],["type","submit",1,"btn","btn-primary"],[1,"fas","fa-book-open"]],template:function(rt,be){1&rt&&(l.\u0275\u0275elementStart(0,"form",0),l.\u0275\u0275listener("ngSubmit",function(){return be.submitForm(be.formData.value)}),l.\u0275\u0275elementStart(1,"div",1)(2,"span",2),l.\u0275\u0275text(3),l.\u0275\u0275pipe(4,"translate"),l.\u0275\u0275elementEnd(),l.\u0275\u0275elementStart(5,"div",3)(6,"select",4),l.\u0275\u0275listener("change",function(Yn){return be.setStartsWithYearEvent(Yn)}),l.\u0275\u0275pipe(7,"translate"),l.\u0275\u0275elementStart(8,"option",5),l.\u0275\u0275text(9),l.\u0275\u0275pipe(10,"translate"),l.\u0275\u0275elementEnd(),l.\u0275\u0275template(11,An,2,3,"option",6),l.\u0275\u0275elementEnd()(),l.\u0275\u0275elementStart(12,"div",3)(13,"select",7),l.\u0275\u0275listener("change",function(Yn){return be.setStartsWithMonthEvent(Yn)}),l.\u0275\u0275pipe(14,"translate"),l.\u0275\u0275template(15,Qn,3,5,"option",6),l.\u0275\u0275elementEnd()(),l.\u0275\u0275elementStart(16,"div",8),l.\u0275\u0275element(17,"input",9),l.\u0275\u0275pipe(18,"translate"),l.\u0275\u0275pipe(19,"translate"),l.\u0275\u0275elementStart(20,"span",10)(21,"button",11),l.\u0275\u0275element(22,"i",12),l.\u0275\u0275text(23),l.\u0275\u0275pipe(24,"translate"),l.\u0275\u0275elementEnd()()()()()),2&rt&&(l.\u0275\u0275property("formGroup",be.formData),l.\u0275\u0275advance(3),l.\u0275\u0275textInterpolate1(" ",l.\u0275\u0275pipeBind1(4,13,"browse.startsWith.jump")," "),l.\u0275\u0275advance(3),l.\u0275\u0275attribute("aria-label",l.\u0275\u0275pipeBind1(7,15,"browse.startsWith.choose_year.label")),l.\u0275\u0275advance(2),l.\u0275\u0275property("value",-1)("selected",!be.startsWithYear),l.\u0275\u0275advance(1),l.\u0275\u0275textInterpolate1(" ",l.\u0275\u0275pipeBind1(10,17,"browse.startsWith.choose_year")," "),l.\u0275\u0275advance(2),l.\u0275\u0275property("ngForOf",be.startsWithOptions),l.\u0275\u0275advance(2),l.\u0275\u0275attribute("aria-label",l.\u0275\u0275pipeBind1(14,19,"browse.startsWith.months.none.label")),l.\u0275\u0275advance(2),l.\u0275\u0275property("ngForOf",be.monthOptions),l.\u0275\u0275advance(2),l.\u0275\u0275propertyInterpolate("placeholder",l.\u0275\u0275pipeBind1(18,21,"browse.startsWith.type_date")),l.\u0275\u0275property("value",be.getStartsWith()?be.getStartsWith():""),l.\u0275\u0275attribute("aria-label",l.\u0275\u0275pipeBind1(19,23,"browse.startsWith.type_date.label")),l.\u0275\u0275advance(6),l.\u0275\u0275textInterpolate1(" ",l.\u0275\u0275pipeBind1(24,25,"browse.startsWith.submit"),""))},dependencies:[t.sg,o._Y,o.YN,o.Kr,o.Fj,o.JJ,o.JL,o.sg,o.u,r.X$],styles:[".btn-secondary[_ngcontent-%COMP%]{background-color:var(--bs-input-bg);color:var(--bs-input-color)}"]}),gn);var mr;Cr=(0,v.__decorate)([(0,Gt.r3)(Gt.C4.date),(0,v.__metadata)("design:paramtypes",[Array,String,bt.N,n.gz,n.F0])],Cr);let Fr=((mr=class extends dn{getStartsWith(){return(0,D.Uh)(this.startsWith)?this.startsWith:""}setStartsWithParam(rt=!0){"0-9"===this.startsWith&&(this.startsWith="0"),super.setStartsWithParam(rt)}isSelectedOption(rt){return"0"===this.startsWith&&"0-9"===rt||rt===this.startsWith}}).\u0275fac=function(){let Ve;
1return function(be){return(Ve||(Ve=l.\u0275\u0275getInheritedFactory(mr)))(be||mr)}}(),mr.\u0275cmp=l.\u0275\u0275defineComponent({type:mr,selectors:[["ds-starts-with-text"]],features:[l.\u0275\u0275InheritDefinitionFeature],decls:15,vars:14,consts:[[1,"w-100",3,"formGroup","ngSubmit"],[1,"mb-3"],[1,"row"],[1,"form-group","input-group","col-sm-12","col-md-6","col-auto"],["type","text","name","startsWith","formControlName","startsWith",1,"form-control",3,"placeholder","value"],[1,"input-group-append"],["type","submit",1,"btn","btn-primary"],[1,"fas","fa-book-open"],[1,"text-muted"]],template:function(rt,be){1&rt&&(l.\u0275\u0275elementStart(0,"form",0),l.\u0275\u0275listener("ngSubmit",function(){return be.submitForm(be.formData.value)}),l.\u0275\u0275elementStart(1,"div",1)(2,"div",2)(3,"div",3),l.\u0275\u0275element(4,"input",4),l.\u0275\u0275pipe(5,"translate"),l.\u0275\u0275pipe(6,"translate"),l.\u0275\u0275elementStart(7,"span",5)(8,"button",6),l.\u0275\u0275element(9,"i",7),l.\u0275\u0275text(10),l.\u0275\u0275pipe(11,"translate"),l.\u0275\u0275elementEnd()()()(),l.\u0275\u0275elementStart(12,"small",8),l.\u0275\u0275text(13),l.\u0275\u0275pipe(14,"translate"),l.\u0275\u0275elementEnd()()()),2&rt&&(l.\u0275\u0275property("formGroup",be.formData),l.\u0275\u0275advance(4),l.\u0275\u0275propertyInterpolate("placeholder",l.\u0275\u0275pipeBind1(6,8,"browse.search-form.placeholder")),l.\u0275\u0275property("value",be.getStartsWith()),l.\u0275\u0275attribute("aria-label",l.\u0275\u0275pipeBind1(5,6,"browse.startsWith.input")),l.\u0275\u0275advance(6),l.\u0275\u0275textInterpolate1(" ",l.\u0275\u0275pipeBind1(11,10,"browse.startsWith.submit"),""),l.\u0275\u0275advance(3),l.\u0275\u0275textInterpolate(l.\u0275\u0275pipeBind1(14,12,"browse.startsWith.type_text")))},dependencies:[o._Y,o.Fj,o.JJ,o.JL,o.sg,o.u,r.X$],styles:[".btn-secondary[_ngcontent-%COMP%]{background-color:var(--bs-input-bg);color:var(--bs-input-color)}.form-group[_ngcontent-%COMP%]{margin-bottom:0}"]}),mr);Fr=(0,v.__decorate)([(0,Gt.r3)(Gt.C4.text)],Fr),e(36023);var _n,qn=e(9406),wi=e(93824),mi=e(8869),jr=e(6575),Ao=e(32714),vo=e(99252),qi=e(31927),ri=e(60908),Ko=e(32595),Eo=e(44647),Vo=e(1505),eo=e(29389),cs=e(15556),$o=e(33089),Ho=(e(92226),e(83439),e(82353)),_s=e(82548),to=(e(82656),e(38030)),mo=(e(7649),e(68244),e(13811),e(14637),e(1129),e(10299)),ft=e(94034);const Re=["*","*"],Ye=function(){return{}},jt=function(Ve,rt){return{indexableObject:Ve,hitHighlights:rt}};let Pn=((_n=class extends b.i{}).\u0275fac=function(){let Ve;return function(be){return(Ve||(Ve=l.\u0275\u0275getInheritedFactory(_n)))(be||_n)}}(),_n.\u0275cmp=l.\u0275\u0275defineComponent({type:_n,selectors:[["ds-item-grid-element"]],features:[l.\u0275\u0275InheritDefinitionFeature],ngContentSelectors:Re,decls:3,vars:7,consts:[[3,"showLabel","object","linkType"]],template:function(rt,be){1&rt&&(l.\u0275\u0275projectionDef(Re),l.\u0275\u0275elementStart(0,"ds-item-search-result-grid-element",0),l.\u0275\u0275projection(1),l.\u0275\u0275projection(2,1),l.\u0275\u0275elementEnd()),2&rt&&l.\u0275\u0275property("showLabel",be.showLabel)("object",l.\u0275\u0275pureFunction2(4,jt,be.object,l.\u0275\u0275pureFunction0(3,Ye)))("linkType",be.linkType)},dependencies:[ft.n],data:{animation:[mo.X]}}),_n);Pn=(0,v.__decorate)([(0,O.d$)("Publication",E.w.GridElement),(0,O.d$)(M.c,E.w.GridElement)],Pn),e(802),e(34460),e(71966),e(2206);var zr,Hi=e(30892),si=(e(8852),e(77049)),Oi=(e(45245),e(48131),e(33413),e(69788),e(81226),e(89653)),ko=e(64200),Vr=e(19168),bo=e(28652),So=e(85714),Oo=e(67589),Ni=e(5488),xo=e(24755),Li=e(61445),Os=e(50503),zo=e(47235),xs=e(19937),Lo=e(25575),hr=e(73579);function se(Ve,rt){if(1&Ve&&(l.\u0275\u0275elementStart(0,"div",10),l.\u0275\u0275text(1),l.\u0275\u0275pipe(2,"translate"),l.\u0275\u0275pipe(3,"async"),l.\u0275\u0275elementEnd()),2&Ve){const be=l.\u0275\u0275nextContext();l.\u0275\u0275property("@fadeOut",void 0),l.\u0275\u0275advance(1),l.\u0275\u0275textInterpolate(l.\u0275\u0275pipeBind1(2,2,l.\u0275\u0275pipeBind1(3,4,be.error)))}}function me(Ve,rt){if(1&Ve&&(l.\u0275\u0275elementStart(0,"div",11),l.\u0275\u0275text(1),l.\u0275\u0275pipe(2,"translate"),l.\u0275\u0275pipe(3,"async"),l.\u0275\u0275elementEnd()),2&Ve){const be=l.\u0275\u0275nextContext();l.\u0275\u0275property("@fadeOut",void 0),l.\u0275\u0275advance(1),l.\u0275\u0275textInterpolate(l.\u0275\u0275pipeBind1(2,2,l.\u0275\u0275pipeBind1(3,4,be.message)))}}const W=function(Ve){return[Ve]};function De(Ve,rt){if(1&Ve&&(l.\u0275\u0275elementStart(0,"a",9),l.\u0275\u0275pipe(1,"dsBrowserOnly"),l.\u0275\u0275text(2),l.\u0275\u0275pipe(3,"translate"),l.\u0275\u0275elementEnd()),2&Ve){const be=l.\u0275\u0275nextContext();l.\u0275\u0275property("routerLink",l.\u0275\u0275pureFunction1(7,W,be.getRegisterRoute())),l.\u0275\u0275attribute("data-test",l.\u0275\u0275pipeBind1(1,3,"register")),l.\u0275\u0275advance(2),l.\u0275\u0275textInterpolate1(" ",l.\u0275\u0275pipeBind1(3,5,"login.form.new-user")," ")}}let et=((zr=class{constructor(rt,be,Ht,Yn,ar,Ge,Ot){this.injectedAuthMethodModel=rt,this.isStandalonePage=be,this.authService=Ht,this.hardRedirectService=Yn,this.formBuilder=ar,this.store=Ge,this.authorizationService=Ot,this.hasError=!1,this.hasMessage=!1,this.authMethod=rt}ngOnInit(){this.form=this.formBuilder.group({email:["",o.kI.required],password:["",o.kI.required]}),this.error=this.store.pipe((0,Oi.Ys)(Vr.Kv),(0,Y.U)(rt=>(this.hasError=(0,D.UE)(rt),rt))),this.message=this.store.pipe((0,Oi.Ys)(Vr.UR),(0,Y.U)(rt=>(this.hasMessage=(0,D.UE)(rt),rt))),this.canRegister$=this.authorizationService.isAuthorized(zo.i.EPersonRegistration)}getRegisterRoute(){return(0,Os.Le)()}getForgotRoute(){return(0,Os.m3)()}resetErrorOrMessage(){(this.hasError||this.hasMessage)&&(this.store.dispatch(new ko.wO),this.hasError=!1,this.hasMessage=!1)}submit(){this.resetErrorOrMessage();const rt=this.form.get("email").value,be=this.form.get("password").value;rt.trim(),be.trim(),this.isStandalonePage?this.authService.setRedirectUrlIfNotSet("/"):this.authService.setRedirectUrl(this.hardRedirectService.getCurrentRoute()),this.store.dispatch(new ko.zn(rt,be)),this.form.reset()}}).\u0275fac=function(rt){return new(rt||zr)(l.\u0275\u0275directiveInject("authMethodProvider"),l.\u0275\u0275directiveInject("isStandalonePage"),l.\u0275\u0275directiveInject(xo.e8),l.\u0275\u0275directiveInject(Li.A),l.\u0275\u0275directiveInject(o.QS),l.\u0275\u0275directiveInject(Oi.yh),l.\u0275\u0275directiveInject(xs._))},zr.\u0275cmp=l.\u0275\u0275defineComponent({type:zr,selectors:[["ds-log-in-password"]],decls:25,vars:44,consts:[["novalidate","",1,"form-login",3,"formGroup","ngSubmit"],["autocomplete","username","autofocus","","formControlName","email","required","","type","email",1,"form-control","form-control-lg","position-relative",3,"placeholder"],["autocomplete","current-password","formControlName","password","required","","type","password",1,"form-control","form-control-lg","position-relative","mb-3",3,"placeholder"],["class","alert alert-danger","role","alert",4,"ngIf"],["class","alert alert-info","role","alert",4,"ngIf"],["type","submit",1,"btn","btn-lg","btn-primary","btn-block","mt-3",3,"dsBtnDisabled"],[1,"fas","fa-sign-in-alt"],[1,"mt-2"],["class","dropdown-item","role","menuitem",3,"routerLink",4,"ngIf"],["role","menuitem",1,"dropdown-item",3,"routerLink"],["role","alert",1,"alert","alert-danger"],["role","alert",1,"alert","alert-info"]],template:function(rt,be){1&rt&&(l.\u0275\u0275elementStart(0,"form",0),l.\u0275\u0275listener("ngSubmit",function(){return be.submit()}),l.\u0275\u0275element(1,"input",1),l.\u0275\u0275pipe(2,"translate"),l.\u0275\u0275pipe(3,"translate"),l.\u0275\u0275pipe(4,"dsBrowserOnly"),l.\u0275\u0275element(5,"input",2),l.\u0275\u0275pipe(6,"translate"),l.\u0275\u0275pipe(7,"translate"),l.\u0275\u0275pipe(8,"dsBrowserOnly"),l.\u0275\u0275template(9,se,4,6,"div",3),l.\u0275\u0275pipe(10,"async"),l.\u0275\u0275template(11,me,4,6,"div",4),l.\u0275\u0275pipe(12,"async"),l.\u0275\u0275elementStart(13,"button",5),l.\u0275\u0275pipe(14,"dsBrowserOnly"),l.\u0275\u0275element(15,"i",6),l.\u0275\u0275text(16),l.\u0275\u0275pipe(17,"translate"),l.\u0275\u0275elementEnd()(),l.\u0275\u0275elementStart(18,"div",7),l.\u0275\u0275template(19,De,4,9,"a",8),l.\u0275\u0275pipe(20,"async"),l.\u0275\u0275elementStart(21,"a",9),l.\u0275\u0275pipe(22,"dsBrowserOnly"),l.\u0275\u0275text(23),l.\u0275\u0275pipe(24,"translate"),l.\u0275\u0275elementEnd()()),2&rt&&(l.\u0275\u0275property("formGroup",be.form),l.\u0275\u0275advance(1),l.\u0275\u0275propertyInterpolate("placeholder",l.\u0275\u0275pipeBind1(3,18,"login.form.email")),l.\u0275\u0275attribute("aria-label",l.\u0275\u0275pipeBind1(2,16,"login.form.email"))("data-test",l.\u0275\u0275pipeBind1(4,20,"email")),l.\u0275\u0275advance(4),l.\u0275\u0275propertyInterpolate("placeholder",l.\u0275\u0275pipeBind1(7,24,"login.form.password")),l.\u0275\u0275attribute("aria-label",l.\u0275\u0275pipeBind1(6,22,"login.form.password"))("data-test",l.\u0275\u0275pipeBind1(8,26,"password")),l.\u0275\u0275advance(4),l.\u0275\u0275property("ngIf",l.\u0275\u0275pipeBind1(10,28,be.error)&&be.hasError),l.\u0275\u0275advance(2),l.\u0275\u0275property("ngIf",l.\u0275\u0275pipeBind1(12,30,be.message)&&be.hasMessage),l.\u0275\u0275advance(2),l.\u0275\u0275property("dsBtnDisabled",!be.form.valid),l.\u0275\u0275attribute("data-test",l.\u0275\u0275pipeBind1(14,32,"login-button")),l.\u0275\u0275advance(3),l.\u0275\u0275textInterpolate1(" ",l.\u0275\u0275pipeBind1(17,34,"login.form.submit"),""),l.\u0275\u0275advance(3),l.\u0275\u0275property("ngIf",l.\u0275\u0275pipeBind1(20,36,be.canRegister$)),l.\u0275\u0275advance(2),l.\u0275\u0275property("routerLink",l.\u0275\u0275pureFunction1(42,W,be.getForgotRoute())),l.\u0275\u0275attribute("data-test",l.\u0275\u0275pipeBind1(22,38,"forgot")),l.\u0275\u0275advance(2),l.\u0275\u0275textInterpolate1(" ",l.\u0275\u0275pipeBind1(24,40,"login.form.forgot-password")," "))},dependencies:[t.O5,o._Y,o.Fj,o.JJ,o.JL,o.Q7,o.sg,o.u,n.rH,Lo.v,t.Ov,r.X$,hr.g],styles:[".form-login[_ngcontent-%COMP%] .form-control[_ngcontent-%COMP%]:focus{z-index:2}.form-login[_ngcontent-%COMP%] input[type=email][_ngcontent-%COMP%]{margin-bottom:-1px;border-bottom-right-radius:0;border-bottom-left-radius:0}.form-login[_ngcontent-%COMP%] input[type=password][_ngcontent-%COMP%]{border-top-left-radius:0;border-top-right-radius:0}.dropdown-item[_ngcontent-%COMP%]{white-space:normal;padding:.25rem .75rem}"],data:{animation:[bo.U6]}}),zr);et=(0,v.__decorate)([(0,Oo.J)(So.q.Password),(0,v.__metadata)("design:paramtypes",[Ni.H,Boolean,xo.e8,Li.A,o.QS,Oi.yh,xs._])],et),e(4065
1),e(50579);var ki,Bt=e(57887),ai=(e(52777),e(17825),e(30409)),lo=(e(63111),e(97125),e(86361),e(13582)),na=e(99431),Go=e(18285),$s=(e(62547),e(57189)),ji=e(84935),Wi=e(39283);function is(Ve,rt){if(1&Ve&&(l.\u0275\u0275elementStart(0,"ds-truncatable-part",0),l.\u0275\u0275element(1,"div",4),l.\u0275\u0275elementEnd()),2&Ve){const be=l.\u0275\u0275nextContext();l.\u0275\u0275property("maxLines",1)("background",be.isCurrent()?"primary":"default")("showToggle",!1),l.\u0275\u0275advance(1),l.\u0275\u0275property("ngClass",be.isCurrent()?"text-light":"text-secondary")("innerHTML",be.description,l.\u0275\u0275sanitizeHtml)}}let Bo=((ki=class extends Wi.l{}).\u0275fac=function(){let Ve;return function(be){return(Ve||(Ve=l.\u0275\u0275getInheritedFactory(ki)))(be||ki)}}(),ki.\u0275cmp=l.\u0275\u0275defineComponent({type:ki,selectors:[["ds-publication-sidebar-search-list-element"]],features:[l.\u0275\u0275InheritDefinitionFeature],decls:8,vars:17,consts:[[3,"maxLines","background","showToggle"],[3,"ngClass","innerHTML"],[1,"font-weight-bold",3,"ngClass","innerHTML"],[3,"maxLines","background","showToggle",4,"ngIf"],[1,"text-secondary",3,"ngClass","innerHTML"]],template:function(rt,be){1&rt&&(l.\u0275\u0275elementStart(0,"ds-truncatable-part",0),l.\u0275\u0275element(1,"div",1),l.\u0275\u0275pipe(2,"async"),l.\u0275\u0275pipe(3,"async"),l.\u0275\u0275pipe(4,"translate"),l.\u0275\u0275elementEnd(),l.\u0275\u0275elementStart(5,"ds-truncatable-part",0),l.\u0275\u0275element(6,"div",2),l.\u0275\u0275elementEnd(),l.\u0275\u0275template(7,is,2,5,"ds-truncatable-part",3)),2&rt&&(l.\u0275\u0275property("maxLines",1)("background",be.isCurrent()?"primary":"default")("showToggle",!1),l.\u0275\u0275advance(1),l.\u0275\u0275property("ngClass",be.isCurrent()?"text-light":"text-body")("innerHTML",l.\u0275\u0275pipeBind1(2,11,be.parentTitle$&&be.parentTitle$)?l.\u0275\u0275pipeBind1(3,13,be.parentTitle$):l.\u0275\u0275pipeBind1(4,15,"home.breadcrumbs"),l.\u0275\u0275sanitizeHtml),l.\u0275\u0275advance(4),l.\u0275\u0275property("maxLines",1)("background",be.isCurrent()?"primary":"default")("showToggle",!1),l.\u0275\u0275advance(1),l.\u0275\u0275property("ngClass",be.isCurrent()?"text-light":"text-primary")("innerHTML",be.dsoTitle,l.\u0275\u0275sanitizeHtml),l.\u0275\u0275advance(1),l.\u0275\u0275property("ngIf",be.description))},dependencies:[t.mk,t.O5,ht.L,t.Ov,r.X$],encapsulation:2}),ki);Bo=(0,v.__decorate)([(0,O.d$)("PublicationSearchResult",E.w.ListElement,ji._.SideBarSearchModal),(0,O.d$)("PublicationSearchResult",E.w.ListElement,ji._.SideBarSearchModalCurrent),(0,O.d$)(P.T,E.w.ListElement,ji._.SideBarSearchModal),(0,O.d$)(P.T,E.w.ListElement,ji._.SideBarSearchModalCurrent)],Bo);var os,Bi=e(80251);function Js(Ve,rt){if(1&Ve&&(l.\u0275\u0275elementStart(0,"ds-truncatable-part",0),l.\u0275\u0275element(1,"div",4),l.\u0275\u0275elementEnd()),2&Ve){const be=l.\u0275\u0275nextContext();l.\u0275\u0275property("maxLines",1)("background",be.isCurrent()?"primary":"default")("showToggle",!1),l.\u0275\u0275advance(1),l.\u0275\u0275property("ngClass",be.isCurrent()?"text-light":"text-secondary")("innerHTML",be.description,l.\u0275\u0275sanitizeHtml)}}let _r=((os=class extends Wi.l{getDescription(){return this.firstMetadataValue("dc.description.abstract")}}).\u0275fac=function(){let Ve;return function(be){return(Ve||(Ve=l.\u0275\u0275getInheritedFactory(os)))(be||os)}}(),os.\u0275cmp=l.\u0275\u0275defineComponent({type:os,selectors:[["ds-collection-sidebar-search-list-element"]],features:[l.\u0275\u0275InheritDefinitionFeature],decls:8,vars:17,consts:[[3,"maxLines","background","showToggle"],[3,"ngClass","innerHTML"],[1,"font-weight-bold",3,"ngClass","innerHTML"],[3,"maxLines","background","showToggle",4,"ngIf"],[1,"text-secondary",3,"ngClass","innerHTML"]],template:function(rt,be){1&rt&&(l.\u0275\u0275elementStart(0,"ds-truncatable-part",0),l.\u0275\u0275element(1,"div",1),l.\u0275\u0275pipe(2,"async"),l.\u0275\u0275pipe(3,"async"),l.\u0275\u0275pipe(4,"translate"),l.\u0275\u0275elementEnd(),l.\u0275\u0275elementStart(5,"ds-truncatable-part",0),l.\u0275\u0275element(6,"div",2),l.\u0275\u0275elementEnd(),l.\u0275\u0275template(7,Js,2,5,"ds-truncatable-part",3)),2&rt&&(l.\u0275\u0275property("maxLines",1)("background",be.isCurrent()?"primary":"default")("showToggle",!1),l.\u0275\u0275advance(1),l.\u0275\u0275property("ngClass",be.isCurrent()?"text-light":"text-body")("innerHTML",l.\u0275\u0275pipeBind1(2,11,be.parentTitle$&&be.parentTitle$)?l.\u0275\u0275pipeBind1(3,13,be.parentTitle$):l.\u0275\u0275pipeBind1(4,15,"home.breadcrumbs"),l.\u0275\u0275sanitizeHtml),l.\u0275\u0275advance(4),l.\u0275\u0275property("maxLines",1)("background",be.isCurrent()?"primary":"default")("showToggle",!1),l.\u0275\u0275advance(1),l.\u0275\u0275property("ngClass",be.isCurrent()?"text-light":"text-primary")("innerHTML",be.dsoTitle,l.\u0275\u0275sanitizeHtml),l.\u0275\u0275advance(1),l.\u0275\u0275property("ngIf",be.description))},dependencies:[t.mk,t.O5,ht.L,t.Ov,r.X$],encapsulation:2}),os);_r=(0,v.__decorate)([(0,O.d$)(Bi.o,E.w.ListElement,ji._.SideBarSearchModal),(0,O.d$)(Bi.o,E.w.ListElement,ji._.SideBarSearchModalCurrent)],_r);var no,ei=e(40332);function er(Ve,rt){if(1&Ve&&(l.\u0275\u0275elementStart(0,"ds-truncatable-part",0),l.\u0275\u0275element(1,"div",4),l.\u0275\u0275elementEnd()),2&Ve){const be=l.\u0275\u0275nextContext();l.\u0275\u0275property("maxLines",1)("background",be.isCurrent()?"primary":"default")("showToggle",!1),l.\u0275\u0275advance(1),l.\u0275\u0275property("ngClass",be.isCurrent()?"text-light":"text-secondary")("innerHTML",be.description,l.\u0275\u0275sanitizeHtml)}}let qs=((no=class extends Wi.l{getDescription(){return this.firstMetadataValue("dc.description.abstract")}}).\u0275fac=function(){let Ve;
1return function(be){return(Ve||(Ve=l.\u0275\u0275getInheritedFactory(no)))(be||no)}}(),no.\u0275cmp=l.\u0275\u0275defineComponent({type:no,selectors:[["ds-community-sidebar-search-list-element"]],features:[l.\u0275\u0275InheritDefinitionFeature],decls:8,vars:17,consts:[[3,"maxLines","background","showToggle"],[3,"ngClass","innerHTML"],[1,"font-weight-bold",3,"ngClass","innerHTML"],[3,"maxLines","background","showToggle",4,"ngIf"],[1,"text-secondary",3,"ngClass","innerHTML"]],template:function(rt,be){1&rt&&(l.\u0275\u0275elementStart(0,"ds-truncatable-part",0),l.\u0275\u0275element(1,"div",1),l.\u0275\u0275pipe(2,"async"),l.\u0275\u0275pipe(3,"async"),l.\u0275\u0275pipe(4,"translate"),l.\u0275\u0275elementEnd(),l.\u0275\u0275elementStart(5,"ds-truncatable-part",0),l.\u0275\u0275element(6,"div",2),l.\u0275\u0275elementEnd(),l.\u0275\u0275template(7,er,2,5,"ds-truncatable-part",3)),2&rt&&(l.\u0275\u0275property("maxLines",1)("background",be.isCurrent()?"primary":"default")("showToggle",!1),l.\u0275\u0275advance(1),l.\u0275\u0275property("ngClass",be.isCurrent()?"text-light":"text-body")("innerHTML",l.\u0275\u0275pipeBind1(2,11,be.parentTitle$&&be.parentTitle$)?l.\u0275\u0275pipeBind1(3,13,be.parentTitle$):l.\u0275\u0275pipeBind1(4,15,"home.breadcrumbs"),l.\u0275\u0275sanitizeHtml),l.\u0275\u0275advance(4),l.\u0275\u0275property("maxLines",1)("background",be.isCurrent()?"primary":"default")("showToggle",!1),l.\u0275\u0275advance(1),l.\u0275\u0275property("ngClass",be.isCurrent()?"text-light":"text-primary")("innerHTML",be.dsoTitle,l.\u0275\u0275sanitizeHtml),l.\u0275\u0275advance(1),l.\u0275\u0275property("ngIf",be.description))},dependencies:[t.mk,t.O5,ht.L,t.Ov,r.X$],encapsulation:2}),no);qs=(0,v.__decorate)([(0,O.d$)(ei.o,E.w.ListElement,ji._.SideBarSearchModal),(0,O.d$)(ei.o,E.w.ListElement,ji._.SideBarSearchModalCurrent)],qs);var Uo,pa=e(11221);let Ls=((Uo=class extends b.i{}).\u0275fac=function(){let Ve;return function(be){return(Ve||(Ve=l.\u0275\u0275getInheritedFactory(Uo)))(be||Uo)}}(),Uo.\u0275cmp=l.\u0275\u0275defineComponent({type:Uo,selectors:[["ds-bundle-list-element"]],features:[l.\u0275\u0275InheritDefinitionFeature],decls:2,vars:1,template:function(rt,be){1&rt&&(l.\u0275\u0275elementStart(0,"div"),l.\u0275\u0275text(1),l.\u0275\u0275elementEnd()),2&rt&&(l.\u0275\u0275advance(1),l.\u0275\u0275textInterpolate(be.dsoNameService.getName(be.object)))},encapsulation:2}),Uo);Ls=(0,v.__decorate)([(0,O.d$)(pa.b,E.w.ListElement)],Ls),e(53330),e(81083),e(46040),e(79300),e(39752),e(94965);var gi=e(88659),Ps=(e(40354),e(92911));e(82213),e(96737),e(48106),e(89787),e(34261),e(97172),e(88235);const Ue=[e(20036).v0];let Ke=(()=>{class Ve{}return Ve.\u0275fac=function(be){return new(be||Ve)},Ve.\u0275mod=l.\u0275\u0275defineNgModule({type:Ve}),Ve.\u0275inj=l.\u0275\u0275defineInjector({providers:[...Ue],imports:[t.ez]}),Ve})();var xn,yt=e(31367),sn=e(61005),mn=e(14296);let Zr=((xn=class extends b.i{}).\u0275fac=function(){let Ve;return function(be){return(Ve||(Ve=l.\u0275\u0275getInheritedFactory(xn)))(be||xn)}}(),xn.\u0275cmp=l.\u0275\u0275defineComponent({type:xn,selectors:[["ds-listable-notification-object"]],features:[l.\u0275\u0275InheritDefinitionFeature],decls:3,vars:6,template:function(rt,be){1&rt&&(l.\u0275\u0275elementStart(0,"div"),l.\u0275\u0275text(1),l.\u0275\u0275pipe(2,"translate"),l.\u0275\u0275elementEnd()),2&rt&&(l.\u0275\u0275classMapInterpolate1("alert d-block ",null==be.object?null:be.object.notificationType," m-0"),l.\u0275\u0275advance(1),l.\u0275\u0275textInterpolate(l.\u0275\u0275pipeBind1(2,4,null==be.object?null:be.object.message)))},dependencies:[r.X$]}),xn);Zr=(0,v.__decorate)([(0,O.d$)(sn.h,E.w.ListElement),(0,O.d$)(mn.k.value,E.w.ListElement)],Zr);var Xo,Kr=e(49279),xr=(e(26905),e(89046),e(49533),e(59332),e(48052),e(77048),e(56540),e(30115),e(80317),e(26775),e(13465)),oo=e(23631);let vs=((Xo=class{constructor(rt,be,Ht,Yn,ar,Ge){this.injectedAuthMethodModel=rt,this.isStandalonePage=be,this._window=Ht,this.authService=Yn,this.hardRedirectService=ar,this.store=Ge,this.authMethod=rt}ngOnInit(){this.isAuthenticated=this.store.pipe((0,Oi.Ys)(Vr.$8)),this.loading=this.store.pipe((0,Oi.Ys)(Vr.EC)),this.location=decodeURIComponent(this.injectedAuthMethodModel.location)}redirectToExternalProvider(){this.authService.getRedirectUrl().pipe((0,X.q)(1)).subscribe(rt=>{this.isStandalonePage?(0,D.xb)(rt)&&(rt="/"):rt=this.hardRedirectService.getCurrentRoute();const be=new oo.R(this._window.nativeWindow.origin,rt).toString();let Ht=this.location;const ar=/\?redirectUrl=(.*)/g.exec(this.location),Ge=ar&&ar[1]?ar[1]:null;(0,D.K0)(Ge)&&Ge!==be&&(Ht=this.location.replace(/\?redirectUrl=(.*)/g,`?redirectUrl=${be}`)),this.hardRedirectService.redirect(Ht)})}getButtonLabel(){return`login.form.${this.authMethod.authMethodType}`}}).\u0275fac=function(rt){return new(rt||Xo)(l.\u0275\u0275directiveInject("authMethodProvider"),l.\u0275\u0275directiveInject("isStandalonePage"),l.\u0275\u0275directiveInject(xr.DC),l.\u0275\u0275directiveInject(xo.e8),l.\u0275\u0275directiveInject(Li.A),l.\u0275\u0275directiveInject(Oi.yh))},Xo.\u0275cmp=l.\u0275\u0275defineComponent({type:Xo,selectors:[["ds-log-in-external-provider"]],decls:4,vars:3,consts:[[1,"btn","btn-lg","btn-primary","btn-block","text-white",3,"click"],[1,"fas","fa-sign-in-alt"]],template:function(rt,be){1&rt&&(l.\u0275\u0275elementStart(0,"button",0),l.\u0275\u0275listener("click",function(){return be.redirectToExternalProvider()}),l.\u0275\u0275element(1,"i",1),l.\u0275\u0275text(2),l.\u0275\u0275pipe(3,"translate"),l.\u0275\u0275elementEnd()),2&rt&&(l.\u0275\u0275advance(2),l.\u0275\u0275textInterpolate1(" ",l.\u0275\u0275pipeBind1(3,1,be.getButtonLabel()),"\n"))},dependencies:[r.X$]}),Xo);vs=(0,v.__decorate)([(0,Oo.J)(So.q.Oidc),(0,Oo.J)(So.q.Shibboleth),(0,Oo.J)(So.q.Orcid),(0,v.__metadata)("design:paramtypes",[Ni.H,Boolean,xr.AW,xo.e8,Li.A,Oi.yh])],vs);var Ys=e(77664),ra=e(16694),ta=e(53695),yi=e(46418),Ki=e(5164),zi=e(31241);let Is=(()=>{class Ve extends ra.P{constructor(be,Ht,Yn,ar,Ge,Ot,nn){super(be,Ht,Yn,ar,Ge,Ot),this.injector=be,this.router=Ht,this.notificationsService=Yn,this.translate=ar,this.searchService=Ge,this.requestService=Ot,this.route=nn}ngOnInit(){super.ngOnInit(),this.initPageRoute()}initPageRoute(){this.subs.push(this.object.workflowitem.pipe((0,ae.Gp)()).subscribe(be=>{this.workflowTaskPageRoute=(0,ta.PT)(be.id)}))}openAdvancedClaimedTaskTab(){const be={queryParams:this.getQueryParams()};
1Object.keys(this.route.snapshot.queryParams).length>0&&(be.state={},be.state.previousQueryParams=this.route.snapshot.queryParams),this.router.navigate([this.workflowTaskPageRoute],be)}getQueryParams(){return{workflow:this.workflowType,claimedTask:this.object.id}}}return Ve.\u0275fac=function(be){return new(be||Ve)(l.\u0275\u0275directiveInject(l.Injector),l.\u0275\u0275directiveInject(n.F0),l.\u0275\u0275directiveInject(yi.T),l.\u0275\u0275directiveInject(r.sK),l.\u0275\u0275directiveInject(Ki.o),l.\u0275\u0275directiveInject(zi.s),l.\u0275\u0275directiveInject(n.gz))},Ve.\u0275cmp=l.\u0275\u0275defineComponent({type:Ve,selectors:[["ds-advanced-claimed-task-action-abstract"]],features:[l.\u0275\u0275InheritDefinitionFeature],decls:0,vars:0,template:function(be,Ht){},encapsulation:2}),Ve})();var uo=e(69113),Mi=e(6070),Lr=e(21899),Zo=e(27470);let Es=(()=>{class Ve extends Mi.V{constructor(be,Ht,Yn,ar,Ge,Ot,nn,Tn,jn,Sr){super(be,Ht,Yn,ar,Ge,Ot,jn,Sr),this.route=be,this.workflowItemService=Ht,this.router=Yn,this.routeService=ar,this.notificationsService=Ge,this.translationService=Ot,this.workflowActionService=nn,this.claimedTaskDataService=Tn,this.requestService=jn,this.location=Sr}ngOnInit(){super.ngOnInit(),this.workflowAction$=this.workflowActionService.findById(this.route.snapshot.queryParams.workflow).pipe((0,ae.Gp)())}performAction(){this.sendRequest(this.route.snapshot.queryParams.claimedTask).subscribe(be=>{if(be){const Ht=this.translationService.get("workflow-item."+this.type+".notification.success.title"),Yn=this.translationService.get("workflow-item."+this.type+".notification.success.content");this.notificationsService.success(Ht,Yn),this.previousPage()}else{const Ht=this.translationService.get("workflow-item."+this.type+".notification.error.title"),Yn=this.translationService.get("workflow-item."+this.type+".notification.error.content");this.notificationsService.error(Ht,Yn)}})}sendRequest(be){return this.claimedTaskDataService.submitTask(be,this.createBody()).pipe((0,Y.U)(Ht=>Ht.hasSucceeded))}}return Ve.\u0275fac=function(be){return new(be||Ve)(l.\u0275\u0275directiveInject(n.gz),l.\u0275\u0275directiveInject(Lr.K),l.\u0275\u0275directiveInject(n.F0),l.\u0275\u0275directiveInject(wn.MZ),l.\u0275\u0275directiveInject(yi.T),l.\u0275\u0275directiveInject(r.sK),l.\u0275\u0275directiveInject(uo.Q),l.\u0275\u0275directiveInject(Zo.p),l.\u0275\u0275directiveInject(zi.s),l.\u0275\u0275directiveInject(t.Ye))},Ve.\u0275cmp=l.\u0275\u0275defineComponent({type:Ve,selectors:[["ds-advanced-workflow-action"]],features:[l.\u0275\u0275InheritDefinitionFeature],decls:0,vars:0,template:function(be,Ht){},encapsulation:2}),Ve})();var _o=e(45061),so=e(43499),Zi=e(24789),go=e(49102);const us=function(Ve){return{name:Ve}},as=function(Ve){return["btn btn-sm",Ve]};function Jo(Ve,rt){if(1&Ve){const be=l.\u0275\u0275getCurrentView();l.\u0275\u0275elementStart(0,"tr")(1,"td",17),l.\u0275\u0275text(2),l.\u0275\u0275elementEnd(),l.\u0275\u0275elementStart(3,"td",17)(4,"a",19),l.\u0275\u0275text(5),l.\u0275\u0275elementEnd()(),l.\u0275\u0275elementStart(6,"td",17),l.\u0275\u0275text(7),l.\u0275\u0275pipe(8,"translate"),l.\u0275\u0275element(9,"br"),l.\u0275\u0275text(10),l.\u0275\u0275pipe(11,"translate"),l.\u0275\u0275elementEnd(),l.\u0275\u0275elementStart(12,"td",17)(13,"div",20)(14,"button",21),l.\u0275\u0275listener("click",function(){const ar=l.\u0275\u0275restoreView(be).$implicit,Ge=l.\u0275\u0275nextContext(2);return l.\u0275\u0275resetView(Ge.deleteMemberFromGroup(ar))}),l.\u0275\u0275pipe(15,"translate"),l.\u0275\u0275element(16,"i",22),l.\u0275\u0275elementEnd()()()()}if(2&Ve){const be=rt.$implicit,Ht=l.\u0275\u0275nextContext(2);l.\u0275\u0275advance(2),l.\u0275\u0275textInterpolate(be.id),l.\u0275\u0275advance(2),l.\u0275\u0275property("routerLink",Ht.getEPersonEditRoute(be.id)),l.\u0275\u0275advance(1),l.\u0275\u0275textInterpolate1(" ",Ht.dsoNameService.getName(be)," "),l.\u0275\u0275advance(2),l.\u0275\u0275textInterpolate2(" ",l.\u0275\u0275pipeBind1(8,11,Ht.messagePrefix+".table.email"),": ",be.email?be.email:"-",""),l.\u0275\u0275advance(3),l.\u0275\u0275textInterpolate2(" ",l.\u0275\u0275pipeBind1(11,13,Ht.messagePrefix+".table.netid"),": ",be.netid?be.netid:"-"," "),l.\u0275\u0275advance(4),l.\u0275\u0275propertyInterpolate("title",l.\u0275\u0275pipeBind2(15,15,Ht.messagePrefix+".table.edit.buttons.remove",l.\u0275\u0275pureFunction1(18,us,Ht.dsoNameService.getName(be)))),l.\u0275\u0275property("dsBtnDisabled",Ht.actionConfig.remove.disabled)("ngClass",l.\u0275\u0275pureFunction1(20,as,Ht.actionConfig.remove.css)),l.\u0275\u0275advance(2),l.\u0275\u0275property("ngClass",Ht.actionConfig.remove.icon)}}function Io(Ve,rt){if(1&Ve&&(l.\u0275\u0275elementStart(0,"ds-pagination",13),l.\u0275\u0275pipe(1,"async"),l.\u0275\u0275elementStart(2,"div",14)(3,"table",15)(4,"thead")(5,"tr")(6,"th",16),l.\u0275\u0275text(7),l.\u0275\u0275pipe(8,"translate"),l.\u0275\u0275elementEnd(),l.\u0275\u0275elementStart(9,"th",16),l.\u0275\u0275text(10),l.\u0275\u0275pipe(11,"translate"),l.\u0275\u0275elementEnd(),l.\u0275\u0275elementStart(12,"th",16),l.\u0275\u0275text(13),l.\u0275\u0275pipe(14,"translate"),l.\u0275\u0275elementEnd(),l.\u0275\u0275elementStart(15,"th",17),l.\u0275\u0275text(16),l.\u0275\u0275pipe(17,"translate"),l.\u0275\u0275elementEnd()()(),l.\u0275\u0275elementStart(18,"tbody"),l.\u0275\u0275template(19,Jo,17,22,"tr",18),l.\u0275\u0275pipe(20,"async"),l.\u0275\u0275elementEnd()()()()),2&Ve){const be=l.\u0275\u0275nextContext();let Ht,Yn;l.\u0275\u0275property("paginationOptions",be.config)("collectionSize",null==(Ht=l.\u0275\u0275pipeBind1(1,9,be.ePeopleMembersOfGroup))?null:Ht.totalElements)("hideGear",!0)("hidePagerWhenSinglePage",!0),l.\u0275\u0275advance(7),l.\u0275\u0275textInterpolate(l.\u0275\u0275pipeBind1(8,11,be.messagePrefix+".table.id")),l.\u0275\u0275advance(3),l.\u0275\u0275textInterpolate(l.\u0275\u0275pipeBind1(11,13,be.messagePrefix+".table.name")),l.\u0275\u0275advance(3),l.\u0275\u0275textInterpolate(l.\u0275\u0275pipeBind1(14,15,be.messagePrefix+".table.identity")),l.\u0275\u0275advance(3),l.\u0275\u0275textInterpolate(l.\u0275\u0275pipeBind1(17,17,be.messagePrefix+".table.edit")),l.\u0275\u0275advance(3),l.\u0275\u0275property("ngForOf",null==(Yn=l.\u0275\u0275pipeBind1(20,19,be.ePeopleMembersOfGroup))?null:Yn.page)}}function ia(Ve,rt){if(1&Ve&&(l.\u0275\u0275elementStart(0,"div",23),l.\u0275\u0275text(1),l.\u0275\u0275pipe(2,"translate"),l.\u0275\u0275elementEnd()),2&Ve){const be=l.\u0275\u0275nextContext();l.\u0275\u0275advance(1),l.\u0275\u0275textInterpolate1(" ",l.\u0275\u0275pipeBind1(2,1,be.messagePrefix+".no-members-yet")," ")}}function ya(Ve,rt){if(1&Ve&&(l.\u0275\u0275elementStart(0,"span"),l.\u0275\u0275text(1),l.\u0275\u0275pipe(2,"translate"),l.\u0275\u0275elementEnd()),2&Ve){const be=l.\u0275\u0275nextContext();l.\u0275\u0275advance(1),l.\u0275\u0275textInterpolate1(" ",l.\u0275\u0275pipeBind1(2,1,be.messagePrefix+".search.head")," ")}}function oa(Ve,rt){if(1&Ve){const be=l.\u0275\u0275getCurrentView();l.\u0275\u0275elementStart(0,"tr")(1,"td",17),l.\u0275\u0275text(2),l.\u0275\u0275elementEnd(),l.\u0275\u0275elementStart(3,"td",17)(4,"a",19),l.\u0275\u0275text(5),l.\u0275\u0275elementEnd()(),l.\u0275\u0275elementStart(6,"td",17),l.\u0275\u0275text(7),l.\u0275\u0275pipe(8,"translate"),l.\u0275\u0275element(9,"br"),l.\u0275\u0275text(10),l.\u0275\u0275pipe(11,"translate"),l.\u0275\u0275elementEnd(),l.\u0275\u0275elementStart(12,"td",17)(13,"div",20)(14,"button",21),l.\u0275\u0275listener("click",function(){const ar=l.\u0275\u0275restoreView(be).$implicit,Ge=l.\u0275\u0275nextContext(2);
1return l.\u0275\u0275resetView(Ge.addMemberToGroup(ar))}),l.\u0275\u0275pipe(15,"translate"),l.\u0275\u0275element(16,"i",22),l.\u0275\u0275elementEnd()()()()}if(2&Ve){const be=rt.$implicit,Ht=l.\u0275\u0275nextContext(2);l.\u0275\u0275advance(2),l.\u0275\u0275textInterpolate(be.id),l.\u0275\u0275advance(2),l.\u0275\u0275property("routerLink",Ht.getEPersonEditRoute(be.id)),l.\u0275\u0275advance(1),l.\u0275\u0275textInterpolate1(" ",Ht.dsoNameService.getName(be)," "),l.\u0275\u0275advance(2),l.\u0275\u0275textInterpolate2(" ",l.\u0275\u0275pipeBind1(8,11,Ht.messagePrefix+".table.email"),": ",be.email?be.email:"-",""),l.\u0275\u0275advance(3),l.\u0275\u0275textInterpolate2(" ",l.\u0275\u0275pipeBind1(11,13,Ht.messagePrefix+".table.netid"),": ",be.netid?be.netid:"-"," "),l.\u0275\u0275advance(4),l.\u0275\u0275propertyInterpolate("title",l.\u0275\u0275pipeBind2(15,15,Ht.messagePrefix+".table.edit.buttons.add",l.\u0275\u0275pureFunction1(18,us,Ht.dsoNameService.getName(be)))),l.\u0275\u0275property("dsBtnDisabled",Ht.actionConfig.add.disabled)("ngClass",l.\u0275\u0275pureFunction1(20,as,Ht.actionConfig.add.css)),l.\u0275\u0275advance(2),l.\u0275\u0275property("ngClass",Ht.actionConfig.add.icon)}}function Ca(Ve,rt){if(1&Ve&&(l.\u0275\u0275elementStart(0,"ds-pagination",13),l.\u0275\u0275pipe(1,"async"),l.\u0275\u0275elementStart(2,"div",14)(3,"table",24)(4,"thead")(5,"tr")(6,"th",16),l.\u0275\u0275text(7),l.\u0275\u0275pipe(8,"translate"),l.\u0275\u0275elementEnd(),l.\u0275\u0275elementStart(9,"th",16),l.\u0275\u0275text(10),l.\u0275\u0275pipe(11,"translate"),l.\u0275\u0275elementEnd(),l.\u0275\u0275elementStart(12,"th",16),l.\u0275\u0275text(13),l.\u0275\u0275pipe(14,"translate"),l.\u0275\u0275elementEnd(),l.\u0275\u0275elementStart(15,"th",17),l.\u0275\u0275text(16),l.\u0275\u0275pipe(17,"translate"),l.\u0275\u0275elementEnd()()(),l.\u0275\u0275elementStart(18,"tbody"),l.\u0275\u0275template(19,oa,17,22,"tr",18),l.\u0275\u0275pipe(20,"async"),l.\u0275\u0275elementEnd()()()()),2&Ve){const be=l.\u0275\u0275nextContext();let Ht,Yn;l.\u0275\u0275property("paginationOptions",be.configSearch)("collectionSize",null==(Ht=l.\u0275\u0275pipeBind1(1,9,be.ePeopleSearch))?null:Ht.totalElements)("hideGear",!0)("hidePagerWhenSinglePage",!0),l.\u0275\u0275advance(7),l.\u0275\u0275textInterpolate(l.\u0275\u0275pipeBind1(8,11,be.messagePrefix+".table.id")),l.\u0275\u0275advance(3),l.\u0275\u0275textInterpolate(l.\u0275\u0275pipeBind1(11,13,be.messagePrefix+".table.name")),l.\u0275\u0275advance(3),l.\u0275\u0275textInterpolate(l.\u0275\u0275pipeBind1(14,15,be.messagePrefix+".table.identity")),l.\u0275\u0275advance(3),l.\u0275\u0275textInterpolate(l.\u0275\u0275pipeBind1(17,17,be.messagePrefix+".table.edit")),l.\u0275\u0275advance(3),l.\u0275\u0275property("ngForOf",null==(Yn=l.\u0275\u0275pipeBind1(20,19,be.ePeopleSearch))?null:Yn.page)}}function sa(Ve,rt){if(1&Ve&&(l.\u0275\u0275elementStart(0,"div",23),l.\u0275\u0275text(1),l.\u0275\u0275pipe(2,"translate"),l.\u0275\u0275elementEnd()),2&Ve){const be=l.\u0275\u0275nextContext();l.\u0275\u0275advance(1),l.\u0275\u0275textInterpolate1(" ",l.\u0275\u0275pipeBind1(2,1,be.messagePrefix+".no-items")," ")}}const ma=function(){return["top","right","bottom"]},Ts=function(Ve){return{content:"admin.access-control.groups.form.tooltip.editGroup.addEpeople",id:"edit-group-add-epeople",iconPlacement:"right",tooltipPlacement:Ve}};var As=(()=>{return(Ve=As||(As={}))[Ve.ActiveGroup=0]="ActiveGroup",Ve[Ve.Members=1]="Members",Ve[Ve.SearchResults=2]="SearchResults",As;var Ve})();let Xs=(()=>{class Ve extends go.O{constructor(be,Ht,Yn,ar,Ge,Ot,nn,Tn){super(be,Ht,Yn,ar,Ge,Ot,nn,Tn),this.groupService=be,this.ePersonDataService=Ht,this.translateService=Yn,this.notificationsService=ar,this.formBuilder=Ge,this.paginationService=Ot,this.router=nn,this.dsoNameService=Tn,this.selectedReviewersUpdated=new l.EventEmitter,this.selectedReviewers=[]}ngOnInit(){this.searchForm=this.formBuilder.group({scope:"metadata",query:""})}ngOnChanges(be){this.groupId=be.groupId.currentValue,be.groupId.currentValue!==be.groupId.previousValue&&(null===this.groupId?this.retrieveMembers(this.config.currentPage):this.subs.set(As.ActiveGroup,this.groupService.findById(this.groupId).pipe((0,ae.Gp)()).subscribe(Ht=>{null!=Ht&&(this.groupDataService.editGroup(Ht),this.groupBeingEdited=Ht,this.retrieveMembers(this.config.currentPage))})))}retrieveMembers(be){if(this.config.currentPage=be,null===this.groupId){this.unsubFrom(As.Members);const Ht=new Zi.l;Ht.page=this.selectedReviewers,this.ePeopleMembersOfGroup.next(Ht)}else super.retrieveMembers(be)}deleteMemberFromGroup(be){const Ht=this.selectedReviewers.indexOf(be);-1!==Ht&&this.selectedReviewers.splice(Ht,1),this.selectedReviewersUpdated.emit(this.selectedReviewers)}addMemberToGroup(be){this.multipleReviewers||(this.selectedReviewers=[]),this.selectedReviewers.push(be),this.selectedReviewersUpdated.emit(this.selectedReviewers)}}return Ve.\u0275fac=function(be){return new(be||Ve)(l.\u0275\u0275directiveInject(so.O),l.\u0275\u0275directiveInject(_o.k),l.\u0275\u0275directiveInject(r.sK),l.\u0275\u0275directiveInject(yi.T),l.\u0275\u0275directiveInject(o.QS),l.\u0275\u0275directiveInject(bt.N),l.\u0275\u0275directiveInject(n.F0),l.\u0275\u0275directiveInject(Ae._))},Ve.\u0275cmp=l.\u0275\u0275defineComponent({type:Ve,selectors:[["ds-reviewers-list"]],inputs:{groupId:"groupId",actionConfig:"actionConfig",multipleReviewers:"multipleReviewers"},outputs:{selectedReviewersUpdated:"selectedReviewersUpdated"},features:[l.\u0275\u0275InheritDefinitionFeature,l.\u0275\u0275NgOnChangesFeature],decls:31,vars:31,consts:[[1,"border-bottom","pb-2"],[3,"paginationOptions","collectionSize","hideGear","hidePagerWhenSinglePage",4,"ngIf"],["class","alert alert-info w-100 mb-2","role","alert",4,"ngIf"],["id","search",1,"border-bottom","pb-2"],[4,"dsContextHelp"],[1,"d-flex","justify-content-between",3,"formGroup","ngSubmit"],[1,"flex-grow-1","mr-3"],[1,"form-group","input-group","mr-3"],["type","text","name","query","id","query","formControlName","query","aria-label","Search input",1,"form-control"],[1,"input-group-append"],["type","submit",1,"search-button","btn","btn-primary"],[1,"fas","fa-search"],[1,"btn","btn-secondary",3,"click"],[3,"paginationOptions","collectionSize","hideGear","hidePagerWhenSinglePage"],[1,"table-responsive"],["id","ePeopleMembersOfGroup",1,"table","table-striped","table-hover","table-bordered"],["scope","col",1,"align-middle"],[1,"align-middle"],[4,"ngFor","ngForOf"],[3,"routerLink"],[1,"btn-group","edit-field"],[3,"dsBtnDisabled","ngClass","title","click"],[3,"ngClass"],["role","alert",1,"alert","alert-info","w-100","mb-2"],["id","epersonsSearch",1,"table","table-striped","table-hover","table-bordered"]],template:function(be,Ht){if(1&be&&(l.\u0275\u0275elementContainerStart(0),l.\u0275\u0275elementStart(1,"h2",0),l.\u0275\u0275text(2),l.\u0275\u0275pipe(3,"translate"),l.\u0275\u0275elementEnd(),l.\u0275\u0275elementStart(4,"h3"),l.\u0275\u0275text(5),l.\u0275\u0275pipe(6,"translate"),l.\u0275\u0275elementEnd(),l.\u0275\u0275template(7,Io,21,21,"ds-pagination",1),l.\u0275\u0275pipe(8,"async"),l.\u0275\u0275template(9,ia,3,3,"div",2),l.\u0275\u0275pipe(10,"async"),l.\u0275\u0275pipe(11,"async"),l.\u0275\u0275elementStart(12,"h3",3),l.\u0275\u0275template(13,ya,3,3,"span",4),l.\u0275\u0275elementEnd(),l.\u0275\u0275elementStart(14,"form",5),l.\u0275\u0275listener("ngSubmit",function(){return Ht.search(Ht.searchForm.value)}),l.\u0275\u0275elementStart(15,"div",6)(16,"div",7),l.\u0275\u0275element(17,"input",8),l.\u0275\u0275elementStart(18,"span",9)(19,"button",10),l.\u0275\u0275element(2
10,"i",11),l.\u0275\u0275text(21),l.\u0275\u0275pipe(22,"translate"),l.\u0275\u0275elementEnd()()()(),l.\u0275\u0275elementStart(23,"div")(24,"button",12),l.\u0275\u0275listener("click",function(){return Ht.clearFormAndResetResult()}),l.\u0275\u0275text(25),l.\u0275\u0275pipe(26,"translate"),l.\u0275\u0275elementEnd()()(),l.\u0275\u0275template(27,Ca,21,21,"ds-pagination",1),l.\u0275\u0275pipe(28,"async"),l.\u0275\u0275template(29,sa,3,3,"div",2),l.\u0275\u0275pipe(30,"async"),l.\u0275\u0275elementContainerEnd()),2&be){let Yn,ar,Ge,Ot;l.\u0275\u0275advance(2),l.\u0275\u0275textInterpolate(l.\u0275\u0275pipeBind1(3,10,Ht.messagePrefix+".head")),l.\u0275\u0275advance(3),l.\u0275\u0275textInterpolate(l.\u0275\u0275pipeBind1(6,12,Ht.messagePrefix+".headMembers")),l.\u0275\u0275advance(2),l.\u0275\u0275property("ngIf",(null==(Yn=l.\u0275\u0275pipeBind1(8,14,Ht.ePeopleMembersOfGroup))?null:Yn.totalElements)>0),l.\u0275\u0275advance(2),l.\u0275\u0275property("ngIf",null==l.\u0275\u0275pipeBind1(10,16,Ht.ePeopleMembersOfGroup)||0==(null==(ar=l.\u0275\u0275pipeBind1(11,18,Ht.ePeopleMembersOfGroup))?null:ar.totalElements)),l.\u0275\u0275advance(4),l.\u0275\u0275property("dsContextHelp",l.\u0275\u0275pureFunction1(29,Ts,l.\u0275\u0275pureFunction0(28,ma))),l.\u0275\u0275advance(1),l.\u0275\u0275property("formGroup",Ht.searchForm),l.\u0275\u0275advance(7),l.\u0275\u0275textInterpolate1(" ",l.\u0275\u0275pipeBind1(22,20,Ht.messagePrefix+".search.button"),""),l.\u0275\u0275advance(4),l.\u0275\u0275textInterpolate(l.\u0275\u0275pipeBind1(26,22,Ht.messagePrefix+".button.see-all")),l.\u0275\u0275advance(2),l.\u0275\u0275property("ngIf",(null==(Ge=l.\u0275\u0275pipeBind1(28,24,Ht.ePeopleSearch))?null:Ge.totalElements)>0),l.\u0275\u0275advance(2),l.\u0275\u0275property("ngIf",0==(null==(Ot=l.\u0275\u0275pipeBind1(30,26,Ht.ePeopleSearch))?null:Ot.totalElements)&&Ht.searchDone)}},dependencies:[t.mk,t.sg,t.O5,o._Y,o.Fj,o.JJ,o.JL,o.sg,o.u,n.rH,wt.Q,Ps.A,Lo.v,t.Ov,r.X$],encapsulation:2}),Ve})();var qo;function es(Ve,rt){1&Ve&&(l.\u0275\u0275elementStart(0,"p"),l.\u0275\u0275text(1),l.\u0275\u0275pipe(2,"translate"),l.\u0275\u0275elementEnd()),2&Ve&&(l.\u0275\u0275advance(1),l.\u0275\u0275textInterpolate(l.\u0275\u0275pipeBind1(2,1,"advanced-workflow-action.select-reviewer.description-multiple")))}function Fo(Ve,rt){1&Ve&&(l.\u0275\u0275elementStart(0,"p"),l.\u0275\u0275text(1),l.\u0275\u0275pipe(2,"translate"),l.\u0275\u0275elementEnd()),2&Ve&&(l.\u0275\u0275advance(1),l.\u0275\u0275textInterpolate(l.\u0275\u0275pipeBind1(2,1,"advanced-workflow-action.select-reviewer.description-single")))}function Da(Ve,rt){if(1&Ve){const be=l.\u0275\u0275getCurrentView();l.\u0275\u0275elementStart(0,"ds-reviewers-list",7),l.\u0275\u0275listener("selectedReviewersUpdated",function(Yn){l.\u0275\u0275restoreView(be);const ar=l.\u0275\u0275nextContext();return ar.selectedReviewers=Yn,l.\u0275\u0275resetView(ar.displayError=!1)}),l.\u0275\u0275elementEnd()}if(2&Ve){const be=l.\u0275\u0275nextContext();l.\u0275\u0275property("actionConfig",be.reviewersListActionConfig)("groupId",be.groupId)("ngClass",be.groupId?"reviewersListWithGroup":"")("multipleReviewers",be.multipleReviewers)}}function To(Ve,rt){1&Ve&&(l.\u0275\u0275elementStart(0,"small",8),l.\u0275\u0275text(1),l.\u0275\u0275pipe(2,"translate"),l.\u0275\u0275elementEnd()),2&Ve&&(l.\u0275\u0275advance(1),l.\u0275\u0275textInterpolate1(" ",l.\u0275\u0275pipeBind1(2,1,"advanced-workflow-action.select-reviewer.no-reviewer-selected.error")," "))}function Vi(Ve,rt){if(1&Ve&&(l.\u0275\u0275element(0,"ds-modify-item-overview",9),l.\u0275\u0275pipe(1,"async")),2&Ve){const be=l.\u0275\u0275nextContext();l.\u0275\u0275property("item",l.\u0275\u0275pipeBind1(1,1,be.item$))}}const ys="submit_select_reviewer",Gr="selectrevieweraction";let Bs=((qo=class extends Es{constructor(rt,be,Ht,Yn,ar,Ge,Ot,nn,Tn,jn){super(rt,be,Ht,Yn,ar,Ge,Ot,nn,Tn,jn),this.route=rt,this.workflowItemService=be,this.router=Ht,this.routeService=Yn,this.notificationsService=ar,this.translationService=Ge,this.workflowActionService=Ot,this.claimedTaskDataService=nn,this.requestService=Tn,this.location=jn,this.multipleReviewers=!0,this.selectedReviewers=[],this.subs=[],this.displayError=!1}
1ngOnDestroy(){this.subs.forEach(rt=>rt.unsubscribe())}ngOnInit(){super.ngOnInit(),this.reviewersListActionConfig=this.multipleReviewers?{add:{css:"btn-outline-primary",disabled:!1,icon:"fas fa-plus"},remove:{css:"btn-outline-danger",disabled:!1,icon:"fas fa-minus"}}:{add:{css:"btn-outline-primary",disabled:!1,icon:"fas fa-check"},remove:{css:"btn-primary",disabled:!0,icon:"fas fa-check"}},this.subs.push(this.workflowAction$.subscribe(rt=>{this.groupId=rt?rt.advancedInfo[0].group:null}))}getType(){return Gr}performAction(){this.selectedReviewers.length>0?super.performAction():this.displayError=!0}createBody(){return{[ys]:!0,eperson:this.selectedReviewers.map(rt=>rt.id)}}previousPage(){let rt=this.previousQueryParameters;(0,D.Uh)(rt)||(rt={configuration:"workflow"}),this.router.navigate(["/mydspace"],{queryParams:rt})}}).\u0275fac=function(rt){return new(rt||qo)(l.\u0275\u0275directiveInject(n.gz),l.\u0275\u0275directiveInject(Lr.K),l.\u0275\u0275directiveInject(n.F0),l.\u0275\u0275directiveInject(wn.MZ),l.\u0275\u0275directiveInject(yi.T),l.\u0275\u0275directiveInject(r.sK),l.\u0275\u0275directiveInject(uo.Q),l.\u0275\u0275directiveInject(Zo.p),l.\u0275\u0275directiveInject(zi.s),l.\u0275\u0275directiveInject(t.Ye))},qo.\u0275cmp=l.\u0275\u0275defineComponent({type:qo,selectors:[["ds-advanced-workflow-action-select-reviewer"]],features:[l.\u0275\u0275InheritDefinitionFeature],decls:14,vars:13,consts:[[4,"ngIf"],["messagePrefix","advanced-workflow-action-select-reviewer.groups.form.reviewers-list",3,"actionConfig","groupId","ngClass","multipleReviewers","selectedReviewersUpdated",4,"ngIf"],["class","invalid-feedback d-block mb-3",4,"ngIf"],[3,"item",4,"ngIf"],[1,"d-flex","flex-wrap","justify-content-end"],[1,"btn","btn-default",3,"click"],[1,"btn","btn-primary",3,"click"],["messagePrefix","advanced-workflow-action-select-reviewer.groups.form.reviewers-list",3,"actionConfig","groupId","ngClass","multipleReviewers","selectedReviewersUpdated"],[1,"invalid-feedback","d-block","mb-3"],[3,"item"]],template:function(rt,be){1&rt&&(l.\u0275\u0275elementStart(0,"div"),l.\u0275\u0275template(1,es,3,3,"p",0),l.\u0275\u0275template(2,Fo,3,3,"p",0),l.\u0275\u0275template(3,Da,1,4,"ds-reviewers-list",1),l.\u0275\u0275template(4,To,3,3,"small",2),l.\u0275\u0275template(5,Vi,2,3,"ds-modify-item-overview",3),l.\u0275\u0275pipe(6,"async"),l.\u0275\u0275elementStart(7,"div",4)(8,"button",5),l.\u0275\u0275listener("click",function(){return be.previousPage()}),l.\u0275\u0275text(9),l.\u0275\u0275pipe(10,"translate"),l.\u0275\u0275elementEnd(),l.\u0275\u0275elementStart(11,"button",6),l.\u0275\u0275listener("click",function(){return be.performAction()}),l.\u0275\u0275text(12),l.\u0275\u0275pipe(13,"translate"),l.\u0275\u0275elementEnd()()()),2&rt&&(l.\u0275\u0275advance(1),l.\u0275\u0275property("ngIf",be.multipleReviewers),l.\u0275\u0275advance(1),l.\u0275\u0275property("ngIf",!be.multipleReviewers),l.\u0275\u0275advance(1),l.\u0275\u0275property("ngIf",void 0!==be.groupId),l.\u0275\u0275advance(1),l.\u0275\u0275property("ngIf",be.displayError),l.\u0275\u0275advance(1),l.\u0275\u0275property("ngIf",l.\u0275\u0275pipeBind1(6,7,be.item$)),l.\u0275\u0275advance(4),l.\u0275\u0275textInterpolate1(" ",l.\u0275\u0275pipeBind1(10,9,"workflow-item."+be.getType()+".button.cancel")," "),l.\u0275\u0275advance(3),l.\u0275\u0275textInterpolate1(" ",l.\u0275\u0275pipeBind1(13,11,"workflow-item."+be.getType()+".button.confirm")," "))},dependencies:[t.mk,t.O5,ai.E,Xs,t.Ov,r.X$],styles:["[_nghost-%COMP%] .reviewersListWithGroup #search, [_nghost-%COMP%] .reviewersListWithGroup #search+form, [_nghost-%COMP%] .reviewersListWithGroup #search+form+ds-pagination{display:none!important}"]}),qo);var $i;Bs=(0,v.__decorate)([(0,Ys.w1)(Gr),(0,v.__metadata)("design:paramtypes",[n.gz,Lr.K,n.F0,wn.MZ,yi.T,r.sK,uo.Q,Zo.p,zi.s,t.Ye])],Bs);let ps=(($i=class extends Is{constructor(rt,be,Ht,Yn,ar,Ge,Ot){super(rt,be,Ht,Yn,ar,Ge,Ot),this.injector=rt,this.router=be,this.notificationsService=Ht,this.translate=Yn,this.searchService=ar,this.requestService=Ge,this.route=Ot,this.option=ys,this.workflowType=Gr}}).\u0275fac=function(rt){return new(rt||$i)(l.\u0275\u0275directiveInject(l.Injector),l.\u0275\u0275directiveInject(n.F0),l.\u0275\u0275directiveInject(yi.T),l.\u0275\u0275directiveInject(r.sK),l.\u0275\u0275directiveInject(Ki.o),l.\u0275\u0275directiveInject(zi.s),l.\u0275\u0275directiveInject(n.gz))},$i.\u0275cmp=l.\u0275\u0275defineComponent({type:$i,selectors:[["ds-advanced-claimed-task-action-select-reviewer"]],features:[l.\u0275\u0275InheritDefinitionFeature],decls:5,vars:6,consts:[[1,"selectReviewerAction","btn","btn-primary",3,"ngbTooltip","click"],[1,"fa","fa-user"]],template:function(rt,be){1&rt&&(l.\u0275\u0275elementStart(0,"button",0),l.\u0275\u0275listener("click",function(){return be.openAdvancedClaimedTaskTab()}),l.\u0275\u0275pipe(1,"translate"),l.\u0275\u0275element(2,"i",1),l.\u0275\u0275text(3),l.\u0275\u0275pipe(4,"translate"),l.\u0275\u0275elementEnd()),2&rt&&(l.\u0275\u0275propertyInterpolate("ngbTooltip",l.\u0275\u0275pipeBind1(1,2,"submission.workflow.generic."+be.option+"-help")),l.\u0275\u0275advance(3),l.\u0275\u0275textInterpolate1(" ",l.\u0275\u0275pipeBind1(4,4,"submission.workflow.generic."+be.option),"\n"))},dependencies:[d._L,r.X$]}),$i);var No;function Ra(Ve,rt){1&Ve&&(l.\u0275\u0275elementStart(0,"p"),l.\u0275\u0275text(1),l.\u0275\u0275pipe(2,"translate"),l.\u0275\u0275elementEnd()),2&Ve&&(l.\u0275\u0275advance(1),l.\u0275\u0275textInterpolate1(" ",l.\u0275\u0275pipeBind1(2,1,"advanced-wor
1kflow-action.rating.description-requiredDescription")," "))}function Oa(Ve,rt){1&Ve&&(l.\u0275\u0275elementStart(0,"p"),l.\u0275\u0275text(1),l.\u0275\u0275pipe(2,"translate"),l.\u0275\u0275elementEnd()),2&Ve&&(l.\u0275\u0275advance(1),l.\u0275\u0275textInterpolate1(" ",l.\u0275\u0275pipeBind1(2,1,"advanced-workflow-action.rating.description")," "))}function ts(Ve,rt){1&Ve&&(l.\u0275\u0275elementStart(0,"span"),l.\u0275\u0275text(1,"*"),l.\u0275\u0275elementEnd())}function $e(Ve,rt){1&Ve&&(l.\u0275\u0275elementStart(0,"small",15),l.\u0275\u0275text(1),l.\u0275\u0275pipe(2,"translate"),l.\u0275\u0275elementEnd()),2&Ve&&(l.\u0275\u0275advance(1),l.\u0275\u0275textInterpolate1(" ",l.\u0275\u0275pipeBind1(2,1,"advanced-workflow-action.rating.form.review.error")," "))}function _e(Ve,rt){1&Ve&&(l.\u0275\u0275elementStart(0,"small",15),l.\u0275\u0275text(1),l.\u0275\u0275pipe(2,"translate"),l.\u0275\u0275elementEnd()),2&Ve&&(l.\u0275\u0275advance(1),l.\u0275\u0275textInterpolate1(" ",l.\u0275\u0275pipeBind1(2,1,"advanced-workflow-action.rating.form.rating.error")," "))}ps=(0,v.__decorate)([(0,Ys.Tc)(ys),(0,v.__metadata)("design:paramtypes",[l.Injector,n.F0,yi.T,r.sK,Ki.o,zi.s,n.gz])],ps);const pe=function(Ve){return{"is-invalid":Ve}},Ie=function(Ve){return{"text-danger":Ve}};function N(Ve,rt){if(1&Ve){const be=l.\u0275\u0275getCurrentView();l.\u0275\u0275elementStart(0,"form",7),l.\u0275\u0275listener("ngSubmit",function(){l.\u0275\u0275restoreView(be);const Yn=l.\u0275\u0275nextContext(2);return l.\u0275\u0275resetView(Yn.performAction())}),l.\u0275\u0275elementStart(1,"div",8)(2,"label",9)(3,"span"),l.\u0275\u0275text(4),l.\u0275\u0275pipe(5,"translate"),l.\u0275\u0275elementEnd(),l.\u0275\u0275template(6,ts,2,0,"span",1),l.\u0275\u0275elementEnd(),l.\u0275\u0275elementStart(7,"textarea",10),l.\u0275\u0275text(8," "),l.\u0275\u0275elementEnd(),l.\u0275\u0275template(9,$e,3,3,"small",11),l.\u0275\u0275elementEnd(),l.\u0275\u0275elementStart(10,"div",8)(11,"label",12),l.\u0275\u0275text(12),l.\u0275\u0275pipe(13,"translate"),l.\u0275\u0275elementEnd(),l.\u0275\u0275elementStart(14,"div",13),l.\u0275\u0275element(15,"ngb-rating",14),l.\u0275\u0275elementEnd(),l.\u0275\u0275template(16,_e,3,3,"small",11),l.\u0275\u0275elementEnd()()}if(2&Ve){const be=l.\u0275\u0275nextContext().ngVar,Ht=l.\u0275\u0275nextContext();l.\u0275\u0275property("formGroup",Ht.ratingForm),l.\u0275\u0275advance(4),l.\u0275\u0275textInterpolate(l.\u0275\u0275pipeBind1(5,10,"advanced-workflow-action.rating.form.review.label")),l.\u0275\u0275advance(2),l.\u0275\u0275property("ngIf",null==be?null:be.descriptionRequired),l.\u0275\u0275advance(1),l.\u0275\u0275property("ngClass",l.\u0275\u0275pureFunction1(14,pe,Ht.isInvalid("review")))("required",null==be?null:be.descriptionRequired),l.\u0275\u0275advance(2),l.\u0275\u0275property("ngIf",Ht.isInvalid("review")),l.\u0275\u0275advance(3),l.\u0275\u0275textInterpolate1(" ",l.\u0275\u0275pipeBind1(13,12,"advanced-workflow-action.rating.form.rating.label"),"* "),l.\u0275\u0275advance(3),l.\u0275\u0275property("max",null==be?null:be.maxValue)("ngClass",l.\u0275\u0275pureFunction1(16,Ie,Ht.isInvalid("rating"))),l.\u0275\u0275advance(1),l.\u0275\u0275property("ngIf",Ht.isInvalid("rating"))}}function J(Ve,rt){if(1&Ve&&(l.\u0275\u0275element(0,"ds-modify-item-overview",16),l.\u0275\u0275pipe(1,"async")),2&Ve){const be=l.\u0275\u0275nextContext(2);l.\u0275\u0275property("item",l.\u0275\u0275pipeBind1(1,1,be.item$))}}function H(Ve,rt){if(1&Ve){const be=l.\u0275\u0275getCurrentView();l.\u0275\u0275elementStart(0,"div"),l.\u0275\u0275template(1,Ra,3,3,"p",1),l.\u0275\u0275template(2,Oa,3,3,"p",1),l.\u0275\u0275template(3,N,17,18,"form",2),l.\u0275\u0275template(4,J,2,3,"ds-modify-item-overview",3),l.\u0275\u0275pipe(5,"async"),l.\u0275\u0275elementStart(6,"div",4)(7,"button",5),l.\u0275\u0275listener("click",function(){l.\u0275\u0275restoreView(be);const Yn=l.\u0275\u0275nextContext();return l.\u0275\u0275resetView(Yn.previousPage())}),l.\u0275\u0275text(8),l.\u0275\u0275pipe(9,"translate"),l.\u0275\u0275elementEnd(),l.\u0275\u0275elementStart(10,"button",6),l.\u0275\u0275listener("click",function(){l.\u0275\u0275restoreView(be);const Yn=l.\u0275\u0275nextContext();
1return l.\u0275\u0275resetView(Yn.performAction())}),l.\u0275\u0275text(11),l.\u0275\u0275pipe(12,"translate"),l.\u0275\u0275elementEnd()()()}if(2&Ve){const be=rt.ngVar,Ht=l.\u0275\u0275nextContext();l.\u0275\u0275advance(1),l.\u0275\u0275property("ngIf",null==be?null:be.descriptionRequired),l.\u0275\u0275advance(1),l.\u0275\u0275property("ngIf",!(null!=be&&be.descriptionRequired)),l.\u0275\u0275advance(1),l.\u0275\u0275property("ngIf",Ht.ratingForm),l.\u0275\u0275advance(1),l.\u0275\u0275property("ngIf",l.\u0275\u0275pipeBind1(5,6,Ht.item$)),l.\u0275\u0275advance(4),l.\u0275\u0275textInterpolate1(" ",l.\u0275\u0275pipeBind1(9,8,"workflow-item."+Ht.getType()+".button.cancel")," "),l.\u0275\u0275advance(3),l.\u0275\u0275textInterpolate1(" ",l.\u0275\u0275pipeBind1(12,10,"workflow-item."+Ht.getType()+".button.confirm")," ")}}const de="submit_score",Pe="scorereviewaction";let Fe=((No=class extends Es{ngOnInit(){super.ngOnInit(),this.ratingForm=new o.nJ({review:new o.p4(""),rating:new o.p4(0,o.kI.min(1))})}performAction(){this.ratingForm.updateValueAndValidity(),this.ratingForm.valid?super.performAction():this.ratingForm.markAllAsTouched()}createBody(){const rt={[de]:!0,score:this.ratingForm.get("rating").value};if(""!==this.ratingForm.get("review").value){const be=this.ratingForm.get("review").value;Object.assign(rt,{review:be})}return rt}getType(){return Pe}getAdvancedInfo(rt){return rt?rt.advancedInfo[0]:null}isInvalid(rt){return this.ratingForm.get(rt).touched&&!this.ratingForm.get(rt).valid}}).\u0275fac=function(){let Ve;return function(be){return(Ve||(Ve=l.\u0275\u0275getInheritedFactory(No)))(be||No)}}(),No.\u0275cmp=l.\u0275\u0275defineComponent({type:No,selectors:[["ds-advanced-workflow-action-rating-reviewer"]],features:[l.\u0275\u0275InheritDefinitionFeature],decls:2,vars:3,consts:[[4,"ngVar"],[4,"ngIf"],[3,"formGroup","ngSubmit",4,"ngIf"],[3,"item",4,"ngIf"],[1,"d-flex","flex-wrap","justify-content-end"],[1,"btn","btn-default",3,"click"],[1,"btn","btn-primary",3,"click"],[3,"formGroup","ngSubmit"],[1,"form-group"],[1,"control-label"],["formControlName","review",1,"form-control",3,"ngClass","required"],["class","invalid-feedback d-block",4,"ngIf"],[1,"control-label","mb-1"],[1,"d-block"],["formControlName","rating",3,"max","ngClass"],[1,"invalid-feedback","d-block"],[3,"item"]],template:function(rt,be){1&rt&&(l.\u0275\u0275template(0,H,13,12,"div",0),l.\u0275\u0275pipe(1,"async")),2&rt&&l.\u0275\u0275property("ngVar",be.getAdvancedInfo(l.\u0275\u0275pipeBind1(1,1,be.workflowAction$)))},dependencies:[t.mk,t.O5,o._Y,o.Fj,o.JJ,o.JL,o.Q7,o.sg,o.u,ai.E,at.g,d.OC,t.Ov,r.X$]}),No);var Qe;Fe=(0,v.__decorate)([(0,Ys.w1)(Pe)],Fe);let Nt=((Qe=class extends Is{constructor(rt,be,Ht,Yn,ar,Ge,Ot){super(rt,be,Ht,Yn,ar,Ge,Ot),this.injector=rt,this.router=be,this.notificationsService=Ht,this.translate=Yn,this.searchService=ar,this.requestService=Ge,this.route=Ot,this.option=de,this.workflowType=Pe}}).\u0275fac=function(rt){return new(rt||Qe)(l.\u0275\u0275directiveInject(l.Injector),l.\u0275\u0275directiveInject(n.F0),l.\u0275\u0275directiveInject(yi.T),l.\u0275\u0275directiveInject(r.sK),l.\u0275\u0275directiveInject(Ki.o),l.\u0275\u0275directiveInject(zi.s),l.\u0275\u0275directiveInject(n.gz))},Qe.\u0275cmp=l.\u0275\u0275defineComponent({type:Qe,selectors:[["ds-advanced-claimed-task-action-rating-reviewer"]],features:[l.\u0275\u0275InheritDefinitionFeature],decls:5,vars:6,consts:[[1,"ratingReviewerAction","btn","btn-primary",3,"ngbTooltip","click"],[1,"fa","fa-star-half-alt"]],template:function(rt,be){1&rt&&(l.\u0275\u0275elementStart(0,"button",0),l.\u0275\u0275listener("click",function(){return be.openAdvancedClaimedTaskTab()}),l.\u0275\u0275pipe(1,"translate"),l.\u0275\u0275element(2,"i",1),l.\u0275\u0275text(3),l.\u0275\u0275pipe(4,"translate"),l.\u0275\u0275elementEnd()),2&rt&&(l.\u0275\u0275propertyInterpolate("ngbTooltip",l.\u0275\u0275pipeBind1(1,2,"submission.workflow.generic."+be.option+"-help")),l.\u0275\u0275advance(3),l.\u0275\u0275textInterpolate1(" ",l.\u0275\u0275pipeBind1(4,4,"submission.workflow.generic."+be.option),"\n"))},dependencies:[d._L,r.X$]}),Qe);Nt=(0,v.__decorate)([(0,Ys.Tc)(de),(0,v.__metadata)("design:paramtypes",[l.Injector,n.F0,yi.T,r.sK,Ki.o,zi.s,n.gz])],Nt);var Un,fn=e(90966);function Hn(Ve,rt){1&Ve&&(l.\u0275\u0275elementStart(0,"span"),l.\u0275\u0275element(1,"i",2),l.\u0275\u0275text(2),l.\u0275\u0275pipe(3,"translate"),l.\u0275\u0275elementEnd()),2&Ve&&(l.\u0275\u0275advance(2),l.\u0275\u0275textInterpolate1(" ",l.\u0275\u0275pipeBind1(3,1,"submission.workflow.tasks.generic.processing")," "))}function Tr(Ve,rt){1&Ve&&(l.\u0275\u0275elementStart(0,"span"),l.\u0275\u0275element(1,"i",3),l.\u0275\u0275text(2),l.\u0275\u0275pipe(3,"translate"),l.\u0275\u0275elementEnd()),2&Ve&&(l.\u0275\u0275advance(2),l.\u0275\u0275textInterpolate1(" ",l.\u0275\u0275pipeBind1(3,1,"submission.workflow.tasks.
1claimed.decline")," "))}const Er="submit_decline_task";let Ci=((Un=class extends ra.P{constructor(rt,be,Ht,Yn,ar,Ge){super(rt,be,Ht,Yn,ar,Ge),this.injector=rt,this.router=be,this.notificationsService=Ht,this.translate=Yn,this.searchService=ar,this.requestService=Ge,this.option=Er}reloadObjectExecution(){return(0,K.of)(this.object)}convertReloadedObject(rt){return Object.assign(new fn.J,rt,{indexableObject:rt})}}).\u0275fac=function(rt){return new(rt||Un)(l.\u0275\u0275directiveInject(l.Injector),l.\u0275\u0275directiveInject(n.F0),l.\u0275\u0275directiveInject(yi.T),l.\u0275\u0275directiveInject(r.sK),l.\u0275\u0275directiveInject(Ki.o),l.\u0275\u0275directiveInject(zi.s))},Un.\u0275cmp=l.\u0275\u0275defineComponent({type:Un,selectors:[["ds-claimed-task-actions-decline-task"]],features:[l.\u0275\u0275InheritDefinitionFeature],decls:7,vars:12,consts:[["type","button",1,"declineTaskAction","btn","btn-warning",3,"dsBtnDisabled","ngbTooltip","click"],[4,"ngIf"],[1,"fas","fa-circle-notch","fa-spin"],[1,"fa","fa-ban"]],template:function(rt,be){1&rt&&(l.\u0275\u0275elementStart(0,"button",0),l.\u0275\u0275listener("click",function(){return be.submitTask()}),l.\u0275\u0275pipe(1,"async"),l.\u0275\u0275pipe(2,"translate"),l.\u0275\u0275template(3,Hn,4,3,"span",1),l.\u0275\u0275pipe(4,"async"),l.\u0275\u0275template(5,Tr,4,3,"span",1),l.\u0275\u0275pipe(6,"async"),l.\u0275\u0275elementEnd()),2&rt&&(l.\u0275\u0275propertyInterpolate("ngbTooltip",l.\u0275\u0275pipeBind1(2,6,"submission.workflow.tasks.claimed.decline_help")),l.\u0275\u0275property("dsBtnDisabled",l.\u0275\u0275pipeBind1(1,4,be.processing$)),l.\u0275\u0275advance(3),l.\u0275\u0275property("ngIf",l.\u0275\u0275pipeBind1(4,8,be.processing$)),l.\u0275\u0275advance(2),l.\u0275\u0275property("ngIf",!l.\u0275\u0275pipeBind1(6,10,be.processing$)))},dependencies:[t.O5,d._L,Lo.v,t.Ov,r.X$]}),Un);Ci=(0,v.__decorate)([(0,Ys.Tc)(Er),(0,v.__metadata)("design:paramtypes",[l.Injector,n.F0,yi.T,r.sK,Ki.o,zi.s])],Ci);var po=e(85349);let jo=(()=>{class Ve{constructor(be){this.formBuilder=be,this.labelPrefix="admin.access-control.epeople.",this.subs=[],this.search=new l.EventEmitter,this.searchForm=this.formBuilder.group({scope:"metadata",query:""})}reset(){this.searchForm=this.formBuilder.group({scope:"metadata",query:""})}submit(be){const Ht={scope:(0,D.K0)(be)?be.scope:"metadata",query:(0,D.K0)(be)?be.query:""};this.search.emit(Ht)}}return Ve.\u0275fac=function(be){return new(be||Ve)(l.\u0275\u0275directiveInject(o.QS))},Ve.\u0275cmp=l.\u0275\u0275defineComponent({type:Ve,selectors:[["ds-eperson-search-box"]],outputs:{search:"search"},decls:21,vars:13,consts:[[1,"d-flex","justify-content-between",3,"formGroup","ngSubmit"],["name","scope","id","scope","formControlName","scope","aria-label","Search scope",1,"form-control"],["value","metadata"],["value","email"],[1,"flex-grow-1","mr-3","ml-3"],[1,"form-group","input-group"],["type","text","name","query","id","query","formControlName","query","aria-label","Search input",1,"form-control"],[1,"input-group-append"],["type","submit",1,"search-button","btn","btn-primary"],[1,"fas","fa-search"],["type","button",1,"search-button","btn","btn-secondary",3,"click"]],template:function(be,Ht){1&be&&(l.\u0275\u0275elementStart(0,"form",0),l.\u0275\u0275listener("ngSubmit",function(ar){return Ht.submit(Ht.searchForm.value),ar.stopImmediatePropagation()}),l.\u0275\u0275elementStart(1,"div")(2,"select",1)(3,"option",2),l.\u0275\u0275text(4),l.\u0275\u0275pipe(5,"translate"),l.\u0275\u0275elementEnd(),l.\u0275\u0275elementStart(6,"option",3),l.\u0275\u0275text(7),l.\u0275\u0275pipe(8,"translate"),l.\u0275\u0275elementEnd()()(),l.\u0275\u0275elementStart(9,"div",4)(10,"div",5),l.\u0275\u0275element(11,"input",6),l.\u0275\u0275elementStart(12,"span",7)(13,"button",8),l.\u0275\u0275element(14,"i",9),l.\u0275\u0275text(15),l.\u0275\u0275pipe(16,"translate"),l.\u0275\u0275elementEnd()()()(),l.\u0275\u0275elementStart(17,"div")(18,"button",10),l.\u0275\u0275listener("click",function(){return Ht.submit(null),Ht.reset()}),l.\u0275\u0275text(19),l.\u0275\u0275pipe(20,"translate"),l.\u0275\u0275elementEnd()()()),2&be&&(l.\u0275\u0275property("formGroup",Ht.searchForm),l.\u0275\u0275advance(4),l.\u0275\u0275textInterpolate(l.\u0275\u0275pipeBind1(5,5,Ht.labelPrefix+"search.scope.metadata")),l.\u0275\u0275advance(3),l.\u0275\u0275textInterpolate(l.\u0275\u0275pipeBind1(8,7,Ht.labelPrefix+"search.scope.email")),l.\u0275\u0275advance(8),l.\u0275\u0275textInterpolate1(" ",l.\u0275\u0275pipeBind1(16,9,Ht.labelPrefix+"search.button")," "),l.\u0275\u0275advance(4),l.\u0275\u0275textInterpolate1(" ",l.\u0275\u0275pipeBind1(20,11,Ht.labelPrefix+"button.see-all")," "))},dependencies:[o._Y,o.YN,o.Kr,o.Fj,o.EJ,o.JJ,o.JL,o.sg,o.u,r.X$],encapsulation:2}),Ve})(),ni=(()=>{class Ve{constructor(be){this.formBuilder=be,this.labelPrefix="admin.access-control.groups.",this.subs=[],this.search=new l.EventEmitter,this.searchForm=this.formBuilder.group({query:""})}reset(){this.searchForm=this.formBuilder.group({query:""})}submit(be){const Ht={scope:"",query:(0,D.K0)(be)?be.query:""};this.search.emit(Ht)}}return Ve.\u0275fac=function(be){return new(be||Ve)(l.\u0275\u0275directiveInject(o.QS))},Ve.\u0275cmp=l.\u0275\u0275defineComponent({type:Ve,selectors:[["ds-group-search-box"]],outputs:{search:"search"},decls:13,vars:7,consts:[[1,"d-flex","justify-content-between",3,"formGroup","ngSubmit"],[1,"flex-grow-1","mr-3"],[1,"form-group","input-group"],["type","text","name","query","id","query","formControlName","query","aria-label","Search input",1,"form-control"],[1,"input-group-append"],["type","submit",1,"search-button","btn","btn-primary"],[1,"fas","fa-search"],["type","button",1,"search-button","btn","btn-secondary",3,"click"]],template:function(be,Ht){1&be&&(l.\u0275\u0275elementStart(0,"form",0),l.\u0275\u0275listener("ngSubmit",function(ar){return Ht.submit(Ht.searchForm.value),ar.stopImmediatePropagation()}),l.\u0275\u0275elementStart(1,"div",1)(2,"div",2),l.\u0275\u0275element(3,"input",3),l.\u0275\u0275elementStart(4,"span",4)(5,"button",5),l.\u0275\u0275element(6,"i",6),l.\u0275\u0275text(7),l.\u0275\u0275pipe(8,"translate"),l.\u0275\u0275elementEnd()()()(),l.\u0275\u0275elementStart(9,"div")(10,"button",7),l.\u0275\u0275listener("click",function(){return Ht.submit(null),Ht.reset()}),l.\u0275\u0275text(11),l.\u0275\u0275pipe(12,"translate"),l.\u0275\u0275elementEnd()()()),2&be&&(l.\u0275\u0275property("formGroup",Ht.searchForm),l.\u0275\u0275advance(7),l.\u0275\u0275textInterpolate1(" ",l.\u0275\u0275pipeBind1(8,3,Ht.labelPrefix+"search.button")," "),l.\u0275\u0275advance(4),l.\u0275\u0275textInterpolate1(" ",l.\u0275\u0275pipeBind1(12,5,Ht.labelPrefix+"button.see-all")," "))},dependencies:[o._Y,o.Fj,o.JJ,o.JL,o.sg,o.u,r.X$],encapsulation:2}),Ve})();e(48237);var Us,Na=e(59161);let xa=((Us=class extends b.i{}).\u0275fac=function(){let Ve;
1return function(be){return(Ve||(Ve=l.\u0275\u0275getInheritedFactory(Us)))(be||Us)}}(),Us.\u0275cmp=l.\u0275\u0275defineComponent({type:Us,selectors:[["ds-bitstream-list-item"]],features:[l.\u0275\u0275InheritDefinitionFeature],decls:1,vars:1,template:function(rt,be){1&rt&&l.\u0275\u0275text(0),2&rt&&l.\u0275\u0275textInterpolate1(" ",be.object.name," ")}}),Us);xa=(0,v.__decorate)([(0,O.d$)(Na.Z,E.w.ListElement,ji._.Bitstream)],xa);var Ma=e(28648),La=(e(89260),e(48946),e(65165),e(32162));const ba=[t.ez,o.u5,a.Rq,d.Oz,d.ZS,d.jF,d.XC,d.HK,o.UX,n.Bz,i._t,Ke,yt.$,Ma.JX],la=[r.aw.forChild({missingTranslationHandler:{provide:r.gC,useClass:Bt.n},useDefaultLang:!0})],Ta=[Ls,Me,pt,Mt.c,qi.K,ri.q,lt,Vt,_s.g,Ho.a,Le.h,g,Pn,xa,Hi.h,ft.n,Dn,Zt.H,Cr,Fr,qn.CreateCommunityParentSelectorComponent,wi.e,Ao.CreateCollectionParentSelectorComponent,vo.i,mi.CreateItemParentSelectorComponent,jr.g,Vo.EditCommunitySelectorComponent,eo.p,cs.EditCollectionSelectorComponent,$o.A,Ko.EditItemSelectorComponent,Eo.z,ii,Wr,Gi,Mr.S,si.X,et,vs,Ci,Go.CollectionDropdownComponent,Kr.t,lo.FileDownloadLinkComponent,na.t,$s._,h.T,_.w,m.P,p.Y,Wi.l,Bo,_r,qs,gi.x,Zr,ps,Nt,po.W,jo,ni,La.U],Rs=[dt.F,je,to._];let Xa=(()=>{class Ve{static withEntryComponents(){return{ngModule:Ve,providers:Ta.map(be=>({provide:be}))}}}return Ve.\u0275fac=function(be){return new(be||Ve)},Ve.\u0275mod=l.\u0275\u0275defineNgModule({type:Ve}),Ve.\u0275inj=l.\u0275\u0275defineInjector({providers:[...Rs],imports:[ba,la,t.ez,o.u5,a.Rq,d.Oz,d.ZS,d.jF,d.XC,d.HK,o.UX,n.Bz,i._t,Ke,yt.$,Ma.JX,r.aw]}),Ve})();l.\u0275\u0275setComponentScope(po.W,function(){return[t.sg,t.O5,wt.Q,jo,ni]},function(){return[t.Ov,r.X$]}),l.\u0275\u0275setComponentScope(po.W,function(){return[t.sg,t.O5,wt.Q,jo,ni]},function(){return[t.Ov,r.X$]})},45245:(R,c,e)=>{"use strict";e.d(c,{R:()=>h});var t=e(72312),n=e(958),o=e(76193),i=e(54004),d=e(94650),r=e(36895);function a(m,_){1&m&&d.\u0275\u0275elementContainer(0)}const p=["*"];let h=(()=>{class m{constructor(v,E){this.sidebarService=v,this.windowService=E,this.sideBarWidth=3}ngOnInit(){this.isXsOrSm$=this.windowService.isXsOrSm(),this.isSidebarCollapsed$=this.isSidebarCollapsed(),this.sidebarClasses=this.isSidebarCollapsed$.pipe((0,i.U)(v=>v?"":"active"))}isSidebarCollapsed(){return this.sidebarService.isCollapsed}closeSidebar(){this.sidebarService.collapse()}openSidebar(){this.sidebarService.expand()}}return m.\u0275fac=function(v){return new(v||m)(d.\u0275\u0275directiveInject(t.P),d.\u0275\u0275directiveInject(n.I3))},m.\u0275cmp=d.\u0275\u0275defineComponent({type:m,selectors:[["ds-page-with-sidebar"]],inputs:{id:"id",sidebarContent:"sidebarContent",sideBarWidth:"sideBarWidth"},ngContentSelectors:p,decls:13,vars:26,consts:[[1,"container"],[1,"row"],[1,"row-with-sidebar","row-offcanvas","row-offcanvas-left"],[3,"id"],[4,"ngTemplateOutlet"]],template:function(v,E){1&v&&(d.\u0275\u0275projectionDef(),d.\u0275\u0275elementStart(0,"div",0)(1,"div",1)(2,"div",2),d.\u0275\u0275pipe(3,"async"),d.\u0275\u0275elementStart(4,"div",3),d.\u0275\u0275pipe(5,"async"),d.\u0275\u0275pipe(6,"async"),d.\u0275\u0275pipe(7,"async"),d.\u0275\u0275template(8,a,1,0,"ng-container",4),d.\u0275\u0275elementEnd(),d.\u0275\u0275elementStart(9,"div"),d.\u0275\u0275pipe(10,"async"),d.\u0275\u0275pipe(11,"async"),d.\u0275\u0275projection(12),d.\u0275\u0275elementEnd()()()()),2&v&&(d.\u0275\u0275advance(2),d.\u0275\u0275property("@pushInOut",d.\u0275\u0275pipeBind1(3,14,E.isSidebarCollapsed$)?"collapsed":"expanded"),d.\u0275\u0275advance(2),d.\u0275\u0275classMapInterpolate2("col-12 col-md-",E.sideBarWidth," sidebar-content ",d.\u0275\u0275pipeBind1(5,16,E.sidebarClasses),""),d.\u0275\u0275classProp("invisible",!0===d.\u0275\u0275pipeBind1(6,18,E.isSidebarCollapsed$)&&!0===d.\u0275\u0275pipeBind1(7,20,E.isXsOrSm$)),d.\u0275\u0275propertyInterpolate1("id","",E.id,"-sidebar-content"),d.\u0275\u0275advance(4),d.\u0275\u0275property("ngTemplateOutlet",E.sidebarContent),d.\u0275\u0275advance(1),d.\u0275\u0275classMapInterpolate1("col-12 col-md-",12-E.sideBarWidth,""),d.\u0275\u0275classProp("invisible",!1===d.\u0275\u0275pipeBind1(10,22,E.isSidebarCollapsed$)&&!0===d.\u0275\u0275pipeBind1(11,24,E.isXsOrSm$)))},dependencies:[r.tP,r.Ov],styles:["@media (max-width: 991.98px){.container[_ngcontent-%COMP%]{width:100%;max-width:none}}.row-with-sidebar.row-offcanvas[_ngcontent-%COMP%]{width:100%}@media (min-width: 768px){.row-with-sidebar[_ngcontent-%COMP%]{display:flex}}@media (max-width: 767.98px){.row-with-sidebar[_ngcontent-%COMP%], .row-with-sidebar.row-offcanvas[_ngcontent-%COMP%]{position:relative}.row-with-sidebar.row-offcanvas-right[_ngcontent-%COMP%] .sidebar-content[_ngcontent-%COMP%]{right:-100%}.row-with-sidebar.row-offcanvas-left[_ngcontent-%COMP%] .sidebar-content[_ngcontent-%COMP%]{left:-100%}.row-with-sidebar[_ngcontent-%COMP%] .sidebar-content[_ngcontent-%COMP%]{position:absolute;top:0;width:100%}}@media (min-width: 768px){.sidebar-content[_ngcontent-%COMP%]{position:sticky;position:-webkit-sticky;top:0;z-index:var(--bs-zindex-sticky);padding-top:var(--ds-content-spacing);margin-top:calc(-1 * var(--ds-content-spacing));align-self:flex-start;display:block}}"],data:{animation:[o.z]}}),m})()},48131:(R,c,e)=>{"use strict";e.d(c,{N:()=>i});var t=e(94650),n=e(89383);const o=["*"];let i=(()=>{class d{constructor(){this.changed=new t.EventEmitter}}return d.\u0275fac=function(a){return new(a||d)},d.\u0275cmp=t.\u0275\u0275defineComponent({type:d,selectors:[["ds-sidebar-dropdown"]],inputs:{id:"id",label:"label"},outputs:{changed:"changed"},ngContentSelectors:o,decls:7,vars:5,consts:[[1,"setting-option","mb-3","p-3"],[3,"for"],[1,"form-control",3,"id","change"]],template:function(a,p){1&a&&(t.\u0275\u0275projectionDef(),t.\u0275\u0275elementStart(0,"div",0)(1,"h4")(2,"label",1),t.\u0275\u0275text(3),t.\u0275\u0275pipe(4,"translate"),t.\u0275\u0275elementEnd()(),t.\u0275\u0275elementStart(5,"select",2),t.\u0275\u0275listener("change",function(m){return p.changed.emit(m)}),t.\u0275\u0275projection(6),t.\u0275\u0275elementEnd()()),2&a&&(t.\u0275\u0275advance(2),t.\u0275\u0275propertyInterpolate("for",p.id),t.\u0275\u0275advance(1),t.\u0275\u0275textInterpolate(t.\u0275\u0275pipeBind1(4,3,p.label)),t.\u0275\u0275advance(2),t.\u0275\u0275propertyInterpolate("id",p.id))},dependencies:[n.X$],styles:[".setting-option[_ngcontent-%COMP%]{border:1px solid var(--bs-light)}"]}),d})()},73725:(R,c,e)=>{"use strict";e.d(c,{ZZ:()=>o,kj:()=>n,r6:()=>i});var t=e(79472);const n={COLLAPSE:(0,t.d)("dspace/sidebar/COLLAPSE"),EXPAND:(0,t.d)("dspace/sidebar/EXPAND"),TOGGLE:(0,t.d)("dspace/sidebar/TOGGLE")};class o{constructor(){this.type=n.COLLAPSE}}class i{constructor(){this.type=n.EXPAND}}},72312:(R,c,e)=>{"use strict";e.d(c,{P:()=>h});var t=e(39841),n=e(89653),o=e(73725),i=e(958),d=e(54004),r=e(94650);const p=(0,n.P1)(m=>m.sidebar,m=>m.sidebarCollapsed);let h=(()=>{class m{constructor(v,E){this.store=v,this.windowService=E,this.isXsOrSm$=this.windowService.isXsOrSm(),this.isCollapsedInStore=this.store.pipe((0,n.Ys)(p))}get isCollapsed(){return(0,t.a)(this.isXsOrSm$,this.isCollapsedInStore).pipe((0,d.U)(([v,E])=>!v||E))}collapse(){this.store.dispatch(new o.ZZ)}expand(){this.store.dispatch(new o.r6)}}return m.\u0275fac=function(v){return new(v||m)(r.\u0275\u0275inject(n.yh),r.\u0275\u0275inject(i.I3))},m.\u0275prov=r.\u0275\u0275defineInjectable({token:m,factory:m.\u0275fac}),m})()},37308:(R,c,e)=>{"use strict";e.d(c,{C4:()=>n,a5:()=>i,r3:()=>o});const t=new Map;var n=(()=>{return(d=n||(n={})).text="Text",d.date="Date",n;var d})();function o(d){return function(a){a&&t.set(d,a)}}function i(d){return t.get(d)}},58036:(R,c,e)=>{"use strict";e.d(c,{w:()=>m});var h,t=e(70655),n=e(69751),o=e(29923),i=e(19782),d=e(42621),r=e(70633),a=e(71508),p=e(80371);let m=((h=class extends d.t{}).type=r.N,h);(0,t.__decorate)([o.autoserialize,(0,t.__metadata)("design:type",String)],m.prototype,"id",void 0),(0,t.__decorate)([o.autoserialize,(0,t.__metadata)("design:type",String)],m.prototype,"subscriptionType",void 0),(0,t.__decorate)([o.autoserialize,(0,t.__metadata)("design:type",Array)],m.prototype,"subscriptionParameterList",void 0),(0,t.__decorate)([o.deserialize,(0,t.__metadata)("design:type",Object)],m.prototype,"_links",void 0),(0,t.__decorate)([(0,i.p4)(a.U),(0,t.__metadata)("design:type",n.y)],m.prototype,"eperson",void 0),(0,t.__decorate)([(0,i.p4)(p.i),(0,t.__metadata)("design:type",n.y)],m.prototype,"resource",void 0),m=(0,t.__decorate)([i.KB,(0,o.inheritSerialization)(d.t)],m)},70633:(R,c,e)=>{"use strict";e.d(c,{N:()=>n});const n=new(e(3879)._)("subscription")},32981:(R,c,e)=>{"use strict";e.d(c,{W:()=>ie});var t=e(94650),n=e(24006),o=e(61135),i=e(34782),d=e(50457),r=e(39841),a=e(95698),p=e(54004),h=e(86099),m=e(18505),_=e(36397),v=e.n(_),b=(e(58036),e(42621),e(59918)),M=e(46418),P=e(68285),D=e(24755),l=e(24702),C=e(83616),I=e(9769),g=e(89383),B=e(36895),L=e(38605),V=e(77048),Y=e(25575);function X(ne,q){if(1&ne&&t.\u0275\u0275element(0,"ds-themed-type-badge",17),2&ne){const oe=t.\u0275\u0275nextContext(3);t.\u0275\u0275property("object",oe.dso)}}function te(ne,q){if(1&ne&&(t.\u0275\u0275elementStart(0,"span",15),t.\u0275\u0275template(1,X,1,1,"ds-themed-type-badge",16),t.\u0275\u0275elementEnd()),2&ne){const oe=t.\u0275\u0275nextContext(2);t.\u0275\u0275advance(1),t.\u0275\u0275property("ngIf",!!oe.dso)}}function K(ne,q){if(1&ne&&(t.\u0275\u0275elementStart(0,"div",24),t.\u0275\u0275element(1,"input",25),t.\u0275\u0275elementStart(2,"label",26),t.\u0275\u0275text(3),t.\u0275\u0275pipe(4,"translate"),t.\u0275\u0275elementEnd()()),2&ne){const oe=q.$implicit;t.\u0275\u0275advance(1),t.\u0275\u0275property("id","checkbox-"+oe)("formControlName",oe),t.\u0275\u0275advance(1),t.\u0275\u0275property("for","checkbox-"+oe),t.\u0275\u0275advance(1),t.\u0275\u0275textInterpolate(t.\u0275\u0275pipeBind1(4,4,"subscriptions.modal.new-subscription-form.frequency."+oe))}}function ee(ne,q){1&ne&&(t.\u0275\u0275elementStart(0,"ds-alert",27),t.\u0275\u0275text(1),t.\u0275\u0275pipe(2,"translate"),t.\u0275\u0275elementEnd()),2&ne&&(t.\u0275\u0275property("type","alert-danger"),t.\u0275\u0275advance(1),t.\u0275\u0275textInterpolate1(" ",t.\u0275\u0275pipeBind1(2,2,"context-menu.actions.subscription.frequency.required")," "))}function ae(ne,q){if(1&ne&&(t.\u0275\u0275elementStart(0,"fieldset",18)(1,"legend",19),t.\u0275\u0275text(2),t.\u0275\u0275pipe(3,"translate"),t.\u0275\u0275elementEnd(),t.\u0275\u0275elementStart(4,"div",20),t.\u0275\u0275element(5,"input",21),t.\u0275\u0275template(6,K,5,6,"div",22),t.\u0275\u0275elementEnd(),t.\u0275\u0275template(7,ee,3,4,"ds-alert",23),t.\u0275\u0275elementEnd()),2&ne){const oe=q.$implicit,ce=t.\u0275\u0275nextContext(2);t.\u0275\u0275propertyInterpolate("formGroupName",oe.key),t.\u0275\u0275advance(2),t.\u0275\u0275textInterpolate1(" ",t.\u0275\u0275pipeBind1(3,5,"subscriptions.modal.new-subscription-form.type."+oe.key),": "),t.\u0275\u0275advance(3),t.\u0275\u0275property("value",null==oe||null==oe.value?null:oe.value.controls.subscriptionId.value),t.\u0275\u0275advance(1),t.\u0275\u0275property("ngForOf",ce.frequencyDefaultValues),t.\u0275\u0275advance(1),t.\u0275\u0275property("ngIf",!!ce.submitted&&(null==oe||null==oe.value||null==oe.value.controls.frequencies.errors?null:oe.value.controls.frequencies.errors.required))}}function Q(ne,q){1&ne&&(t.\u0275\u0275elementStart(0,"p",28),t.\u0275\u0275text(1),t.\u0275\u0275pipe(2,"translate"),t.\u0275\u0275elementEnd()),2&ne&&(t.\u0275\u0275advance(1),t.\u0275\u0275textInterpolate(t.\u0275\u0275pipeBind1(2,1,"subscriptions.modal.delete-info")))}function j(ne,q){1&ne&&(t.\u0275\u0275elementStart(0,"span"),t.\u0275\u0275element(1,"i",29),t.\u0275\u0275text(2),t.\u0275\u0275pipe(3,"translate"),t.\u0275\u0275elementEnd()),2&ne&&(t.\u0275\u0275advance(2),t.\u0275\u0275textInterpolate1(" ",t.\u0275\u0275pipeBind1(3,1,"subscriptions.modal.new-subscription-form.processing")," "))}function k(ne,q){1&ne&&(t.\u0275\u0275elementStart(0,"span"),t.\u0275\u0275text(1),t.\u0275\u0275pipe(2,"translate"),t.\u0275\u0275elementEnd()),2&ne&&(t.\u0275\u0275advance(1),t.\u0275\u0275textInterpolate1(" ",t.\u0275\u0275pipeBind1(2,1,"subscriptions.modal.new-subscription-form.submit")," "))}function G(ne,q){if(1&ne){const oe=t.\u0275\u0275getCurrentView();t.\u0275\u0275elementStart(0,"form",1),t.\u0275\u0275listener("ngSubmit",function(){t.\u0275\u0275restoreView(oe);const ye=t.\u0275\u0275nextContext();
1return t.\u0275\u0275resetView(ye.submit())}),t.\u0275\u0275elementStart(1,"div",2)(2,"h4",3),t.\u0275\u0275text(3),t.\u0275\u0275pipe(4,"translate"),t.\u0275\u0275elementEnd(),t.\u0275\u0275elementStart(5,"button",4),t.\u0275\u0275listener("click",function(){t.\u0275\u0275restoreView(oe);const ye=t.\u0275\u0275nextContext();return t.\u0275\u0275resetView(ye.activeModal.close())}),t.\u0275\u0275elementStart(6,"span",5),t.\u0275\u0275text(7,"\xd7"),t.\u0275\u0275elementEnd()()(),t.\u0275\u0275elementStart(8,"div",6)(9,"p",7)(10,"strong"),t.\u0275\u0275text(11),t.\u0275\u0275elementEnd(),t.\u0275\u0275template(12,te,2,1,"span",8),t.\u0275\u0275elementEnd(),t.\u0275\u0275elementStart(13,"div"),t.\u0275\u0275template(14,ae,8,7,"fieldset",9),t.\u0275\u0275pipe(15,"keyvalue"),t.\u0275\u0275elementEnd(),t.\u0275\u0275template(16,Q,3,3,"p",10),t.\u0275\u0275pipe(17,"async"),t.\u0275\u0275elementEnd(),t.\u0275\u0275elementStart(18,"div",11)(19,"button",12),t.\u0275\u0275listener("click",function(){t.\u0275\u0275restoreView(oe);const ye=t.\u0275\u0275nextContext();return t.\u0275\u0275resetView(ye.activeModal.close())}),t.\u0275\u0275text(20),t.\u0275\u0275pipe(21,"translate"),t.\u0275\u0275elementEnd(),t.\u0275\u0275elementStart(22,"button",13),t.\u0275\u0275pipe(23,"async"),t.\u0275\u0275template(24,j,4,3,"span",14),t.\u0275\u0275pipe(25,"async"),t.\u0275\u0275template(26,k,3,3,"span",14),t.\u0275\u0275pipe(27,"async"),t.\u0275\u0275elementEnd()()()}if(2&ne){const oe=t.\u0275\u0275nextContext();t.\u0275\u0275property("formGroup",oe.subscriptionForm),t.\u0275\u0275advance(3),t.\u0275\u0275textInterpolate(t.\u0275\u0275pipeBind1(4,10,"subscriptions.modal.title")),t.\u0275\u0275advance(8),t.\u0275\u0275textInterpolate(oe.dsoNameService.getName(oe.dso)),t.\u0275\u0275advance(1),t.\u0275\u0275property("ngIf",!!oe.dso),t.\u0275\u0275advance(2),t.\u0275\u0275property("ngForOf",t.\u0275\u0275pipeBind1(15,12,null==oe.subscriptionForm?null:oe.subscriptionForm.controls)),t.\u0275\u0275advance(2),t.\u0275\u0275property("ngIf",t.\u0275\u0275pipeBind1(17,14,oe.showDeleteInfo$)),t.\u0275\u0275advance(4),t.\u0275\u0275textInterpolate1(" ",t.\u0275\u0275pipeBind1(21,16,"subscriptions.modal.close")," "),t.\u0275\u0275advance(2),t.\u0275\u0275property("dsBtnDisabled",t.\u0275\u0275pipeBind1(23,18,oe.processing$)||!oe.isValid),t.\u0275\u0275advance(2),t.\u0275\u0275property("ngIf",t.\u0275\u0275pipeBind1(25,20,oe.processing$)),t.\u0275\u0275advance(2),t.\u0275\u0275property("ngIf",!t.\u0275\u0275pipeBind1(27,22,oe.processing$))}}let ie=(()=>{class ne{constructor(oe,ce,ye,Me,Ee,Ae,Je,_t){this.formBuilder=oe,this.modalService=ce,this.notificationsService=ye,this.subscriptionService=Me,this.activeModal=Ee,this.authService=Ae,this.translate=Je,this.dsoNameService=_t,this.processing$=new o.X(!1),this.showDeleteInfo$=new o.X(!1),this.submitted=!1,this.subscriptionDefaultTypes=["content"],this.frequencyDefaultValues=["D","W","M"],this.isValid=!1,this.updateSubscription=new t.EventEmitter}ngOnInit(){this.authService.getAuthenticatedUserFromStore().pipe((0,a.q)(1),(0,p.U)(oe=>oe.uuid),(0,i.d)()).subscribe(oe=>{this.ePersonId=oe,(0,l.UE)(this.subscription)?this.initFormByGivenSubscription():this.initFormByAllSubscriptions()}),this.subscriptionForm.valueChanges.subscribe(oe=>{let ce=!1;for(let ye of this.frequencyDefaultValues)ce=ce||oe.content.frequencies[ye];this.isValid=ce})}initFormByAllSubscriptions(){this.subscriptionForm=new n.nJ({});for(let oe of this.subscriptionDefaultTypes){const ce=new n.nJ({});ce.addControl("subscriptionId",this.formBuilder.control("")),ce.addControl("frequencies",this.formBuilder.group({}));for(let ye of this.frequencyDefaultValues)ce.controls.frequencies.addControl(ye,this.formBuilder.control(!1));this.subscriptionForm.addControl(oe,ce)}this.initFormDataBySubscriptions()}initFormByGivenSubscription(){const oe=new n.nJ({});oe.addControl("subscriptionId",this.formBuilder.control(this.subscription.id)),oe.addControl("frequencies",this.formBuilder.group({})),oe.get("frequencies").addValidators(n.kI.required);for(let ce of this.frequencyDefaultValues){const ye=-1!==v()(this.subscription.subscriptionParameterList,["value",ce]);oe.controls.frequencies.addControl(ce,this.formBuilder.control(ye))}this.subscriptionForm=this.formBuilder.group({[this.subscription.subscriptionType]:oe})}initFormDataBySubscriptions(){this.processing$.next(!0),this.subscriptionService.getSubscriptionsByPersonDSO(this.ePersonId,this.dso?.uuid).pipe((0,P.Gp)()).subscribe({next:oe=>{if(oe.pageInfo.totalElements>0){this.showDeleteInfo$.next(!0);for(let ce of oe.page){const Me=this.subscriptionForm.get(ce.subscriptionType);if((0,l.UE)(Me)){Me.controls.subscriptionId.setValue(ce.id);for(let Ee of ce.subscriptionParameterList.filter(Ae=>"frequency"===Ae.name))Me.controls.frequencies.controls[Ee.value]?.setValue(!0)}}}this.processing$.next(!1)},error:oe=>{this.processing$.next(!1)}})}submit(){this.submitted=!0;const oe=Object.keys(this.subscriptionForm.controls),ce=[],ye=[];oe.forEach(Ee=>{const Ae=this.subscriptionForm.controls[Ee];if(Ae.touched&&Ae.dirty){const Je=this.createBody(Ae.controls.subscriptionId.value,Ee,Ae.controls.frequencies);(0,l.UE)(Je.id)?ye.push(Je):(0,l.UE)(Je.subscriptionParameterList)&&ce.push(Je)}});const Me=[];(0,l.UE)(ce)&&Me.push((0,d.D)(ce).pipe((0,h.z)(Ee=>this.subscriptionService.createSubscription(Ee,this.ePersonId,this.dso.uuid).pipe((0,P.hC)())),(0,m.b)(Ee=>{if(Ee.hasSucceeded){const Ae=this.translate.instant("subscriptions.modal.create.success",{type:Ee.payload.subscriptionType});this.notificationsService.success(null,Ae)}else this.notificationsService.error(null,this.translate.instant("subscriptions.modal.create.error"))}))),(0,l.UE)(ye)&&Me.push((0,d.D)(ye).pipe((0,h.z)(Ee=>this.subscriptionService.updateSubscription(Ee,this.ePersonId,this.dso.uuid).pipe((0,P.hC)())),(0,m.b)(Ee=>{if(Ee.hasSucceeded){const Ae=this.translate.instant("subscriptions.modal.update.success",{type:Ee.payload.subscriptionType});this.notificationsService.success(null,Ae),(0,l.UE)(this.subscription)&&this.updateSubscription.emit(Ee.payload)}else this.notificationsService.error(null,this.translate.instant("subscriptions.modal.update.error"))}))),(0,r.a)([...Me]).subscribe(Ee=>{this.activeModal.close()})}createBody(oe,ce,ye){const Me={id:(0,l.UE)(oe)?oe:null,subscriptionType:ce,subscriptionParameterList:[]};for(let Ee of this.frequencyDefaultValues)ye.value[Ee]&&Me.subscriptionParameterList.push({name:"frequency",value:Ee});return Me}}return ne.\u0275fac=function(oe){return new(oe||ne)(t.\u0275\u0275directiveInject(n.QS),t.\u0275\u0275directiveInject(I.FF
1),t.\u0275\u0275directiveInject(M.T),t.\u0275\u0275directiveInject(b.D),t.\u0275\u0275directiveInject(I.Kz),t.\u0275\u0275directiveInject(D.e8),t.\u0275\u0275directiveInject(g.sK),t.\u0275\u0275directiveInject(C._))},ne.\u0275cmp=t.\u0275\u0275defineComponent({type:ne,selectors:[["ds-subscription-modal"]],inputs:{dso:"dso",subscription:"subscription"},outputs:{updateSubscription:"updateSubscription"},decls:1,vars:1,consts:[["data-test","subscription-form",3,"formGroup","ngSubmit",4,"ngIf"],["data-test","subscription-form",3,"formGroup","ngSubmit"],[1,"modal-header"],[1,"modal-title"],["type","button","aria-label","Close",1,"close",3,"click"],["aria-hidden","true"],[1,"modal-body"],[1,"mb-3"],["class","float-right",4,"ngIf"],["class","form-group form-row",3,"formGroupName",4,"ngFor","ngForOf"],["class","text-muted",4,"ngIf"],[1,"modal-footer"],["type","button",1,"btn","btn-outline-secondary",3,"click"],["type","submit",1,"btn","btn-success",3,"dsBtnDisabled"],[4,"ngIf"],[1,"float-right"],[3,"object",4,"ngIf"],[3,"object"],[1,"form-group","form-row",3,"formGroupName"],[1,"col-md-4","col-form-label","float-md-left","pt-0"],[1,"col-md-8"],["type","hidden","formControlName","subscriptionId",3,"value"],["class","form-check","formGroupName","frequencies",4,"ngFor","ngForOf"],[3,"type",4,"ngIf"],["formGroupName","frequencies",1,"form-check"],["type","checkbox",1,"form-check-input",3,"id","formControlName"],[1,"form-check-label",3,"for"],[3,"type"],[1,"text-muted"],[1,"fas","fa-circle-notch","fa-spin"]],template:function(oe,ce){1&oe&&t.\u0275\u0275template(0,G,28,24,"form",0),2&oe&&t.\u0275\u0275property("ngIf",ce.subscriptionForm)},dependencies:[B.sg,B.O5,n._Y,n.Fj,n.Wl,n.JJ,n.JL,n.sg,n.u,n.x0,L.w,V.o,Y.v,B.Ov,B.Nd,g.X$]}),ne})()},59918:(R,c,e)=>{"use strict";e.d(c,{D:()=>ee});var K,t=e(70655),n=e(80529),o=e(89653),i=e(95698),d=e(54004),r=e(63900),a=e(39300),p=e(71884),h=e(46418),m=e(43015),_=e(81964),v=e(58943),E=e(62564),O=e(25130),b=e(17481),M=e(31241),P=e(93498),D=e(21147),l=e(70633),C=e(83616),I=e(24702),g=e(68285),B=e(85292),L=e(72839),V=e(90330),Y=e(99678),X=e(93369),te=e(94650);let ee=((K=class extends L.t{constructor(Q,j,k,G,ie,ne,q,oe,ce){super("subscriptions",G,ie,q,oe),this.comparator=Q,this.http=j,this.notificationsService=k,this.requestService=G,this.rdbService=ie,this.store=ne,this.objectCache=q,this.halService=oe,this.nameService=ce,this.findByEpersonLinkPath="findByEPerson",this.searchData=new Y.l(this.linkPath,G,ie,q,oe,this.responseMsToLive),this.deleteData=new V.R(this.linkPath,G,ie,q,oe,k,this.responseMsToLive,this.constructIdEndpoint)}getSubscriptionsByPersonDSO(Q,j){const k=Object.assign(new b.R,{searchParams:[new _.g("resource",j),new _.g("eperson_id",Q)]});return this.searchData.searchBy("findByEPersonAndDso",k,!1,!0)}createSubscription(Q,j,k){return this.halService.getEndpoint(this.linkPath).pipe((0,I.iy)(),(0,i.q)(1),(0,d.U)(G=>`${G}?resource=${k}&eperson_id=${j}`),(0,d.U)(G=>new O.Fo(this.requestService.generateRequestId(),G,JSON.stringify(Q))),(0,B.wG)(this.requestService),(0,r.w)(G=>this.rdbService.buildFromRequestUUID(G.uuid)),(0,g.hC)())}updateSubscription(Q,j,k){return this.halService.getEndpoint(this.linkPath).pipe((0,I.iy)(),(0,i.q)(1),(0,d.U)(G=>`${G}/${Q.id}?resource=${k}&eperson_id=${j}`),(0,d.U)(G=>new O.an(this.requestService.generateRequestId(),G,JSON.stringify(Q))),(0,B.wG)(this.requestService),(0,r.w)(G=>this.rdbService.buildFromRequestUUID(G.uuid)),(0,g.hC)())}deleteSubscription(Q){return this.halService.getEndpoint(this.linkPath).pipe((0,a.h)(j=>(0,I.UE)(j)),(0,p.x)(),(0,r.w)(j=>this.deleteData.delete(Q)),(0,g.hC)())}findAllSubscriptions(Q){return this.findAllData.findAll(Q,!0,!0,(0,X.l)("resource"),(0,X.l)("eperson"))}findByEPerson(Q,j){const k=Object.assign(new b.R,j,{searchParams:[new _.g("uuid",Q)]});return this.getEndpoint().pipe((0,d.U)(G=>`${G}/search/${this.findByEpersonLinkPath}`),(0,r.w)(G=>this.findListByHref(G,k,!1,!0,(0,X.l)("resource"),(0,X.l)("eperson"))))}}).\u0275fac=function(Q){return new(Q||K)(te.\u0275\u0275inject(E.o),te.\u0275\u0275inject(n.eN),te.\u0275\u0275inject(h.T),te.\u0275\u0275inject(M.s),te.\u0275\u0275inject(m.Q),te.\u0275\u0275inject(o.yh),te.\u0275\u0275inject(v.a),te.\u0275\u0275inject(P.q),te.\u0275\u0275inject(C._))},K.\u0275prov=te.\u0275\u0275defineInjectable({token:K,factory:K.\u0275fac,providedIn:"root"}),K);ee=(0,t.__decorate)([(0,D.cQ)(l.N),(0,t.__metadata)("design:paramtypes",[E.o,n.eN,h.T,M.s,m.Q,o.yh,v.a,P.q,C._])],ee)},20337:(R,c,e)=>{"use strict";e.d(c,{j:()=>n,t:()=>o});const n={SET:(0,e(79472).d)("dspace/theme/SET")};class o{constructor(d){this.type=n.SET,this.payload={name:d}}}},36221:(R,c,e)=>{"use strict";e.d(c,{B:()=>t});const t="base"},55784:(R,c,e)=>{"use strict";e.d(c,{fY:()=>oe});
1var t=e(89653),n=e(61135),o=e(39646),i=e(50457),d=e(24351),r=e(60515),a=e(20337),p=e(95698),h=e(39300),m=e(63900),_=e(54004),v=e(67688),E=e(32518),O=e(46590),b=e(24702),M=e(68285),P=e(50503),D=e(54384),l=e(39841);class C{constructor(ye){this.config=ye}matches(ye,Me){return(0,o.of)(!0)}}class I extends C{constructor(ye){super(ye),this.config=ye,this.regex=new RegExp(this.config.regex)}matches(ye,Me){let Ee;const Ae=(0,P.Y4)(Me);return(0,b.UE)(Ae)&&(Ee=Ae.match(this.regex)),(0,b.xI)(Ee)&&(Ee=ye.match(this.regex)),(0,o.of)((0,b.Uh)(Ee))}}class g extends C{constructor(ye,Me){super(ye),this.config=ye,this.handleService=Me}matches(ye,Me){return(0,b.Uh)(Me?.handle)?(0,l.a)([this.handleService.normalizeHandle(Me?.handle),this.handleService.normalizeHandle(this.config.handle)]).pipe((0,_.U)(([Ee,Ae])=>(0,b.Uh)(Me)&&(0,b.Uh)(Me.handle)&&Ee===Ae),(0,p.q)(1)):(0,o.of)(!1)}}class B extends C{constructor(ye){super(ye),this.config=ye}matches(ye,Me){return(0,o.of)((0,b.Uh)(Me)&&Me.uuid===this.config.uuid)}}var V=e(55562),Y=e(93369),X=e(94476),te=e(21540),K=e(83360),ee=e(34793),ae=e(62921),Q=e(80132),j=e(36895),k=e(92871),G=e(36221),ie=e(94650);const ne=(0,t.ZF)("theme"),q=(0,t.P1)(ne,ce=>(0,b.Uh)(ce)?ce.currentTheme:G.B);let oe=(()=>{class ce{constructor(Me,Ee,Ae,Je,_t,It,it){this.store=Me,this.linkService=Ee,this.dSpaceObjectDataService=Ae,this.injector=Je,this.gtcf=_t,this.router=It,this.document=it,this._isThemeLoading$=new n.X(!1),this._isThemeCSSLoading$=new n.X(!1),this.themes=te.N.themes.map(Be=>((ce,ye)=>(0,b.Uh)(ce.regex)?new I(ce):(0,b.Uh)(ce.handle)?new g(ce,ye.get(D.n)):(0,b.Uh)(ce.uuid)?new B(ce):new C(ce))(Be,Je)),this.hasDynamicTheme=te.N.themes.some(Be=>(0,b.Uh)(Be.regex)||(0,b.Uh)(Be.handle)||(0,b.Uh)(Be.uuid))}setTheme(Me){this.store.dispatch(new a.t(Me))}getThemeName(){let Me;return this.store.pipe((0,t.Ys)(q),(0,p.q)(1)).subscribe(Ee=>Me=Ee),Me}getThemeName$(){return this.store.pipe((0,t.Ys)(q))}get isThemeLoading$(){return this._isThemeLoading$}listenForThemeChanges(Me){this.getThemeName$().subscribe(Ee=>{if(Me&&(0,Q.e)(this._isThemeCSSLoading$,!0),(0,b.Uh)(Ee))this.loadGlobalThemeConfig(Ee);else{const Ae=(0,k.ML)();(0,b.Uh)(Ae)?this.loadGlobalThemeConfig(Ae.name):this.loadGlobalThemeConfig(G.B)}})}listenForRouteChanges(){this.router.events.pipe((0,h.h)(Me=>Me instanceof ee.Av),(0,m.w)(Me=>this.updateThemeOnRouteChange$(Me.urlAfterRedirects,Me.state.root)),(0,m.w)(Me=>Me?this._isThemeCSSLoading$:[!1])).subscribe(Me=>{(0,Q.e)(this._isThemeLoading$,Me)})}loadGlobalThemeConfig(Me){this.setThemeCss(Me),this.setHeadTags(Me)}setThemeCss(Me){const Ee=this.document.getElementsByTagName("head")[0];if((0,b.xI)(Ee))return;const Ae=Array.from(Ee.getElementsByClassName("theme-css")),Je=this.document.createElement("link");Je.setAttribute("rel","stylesheet"),Je.setAttribute("type","text/css"),Je.setAttribute("class","theme-css"),Je.setAttribute("href",`${encodeURIComponent(Me)}-theme.css`),Je.onload=()=>{(0,b.UE)(Ae)&&Ae.forEach(_t=>{(0,b.Uh)(_t)&&_t.remove()}),(0,Q.e)(this._isThemeCSSLoading$,!1)},Ee.appendChild(Je)}setHeadTags(Me){const Ee=this.document.getElementsByTagName("head")[0];if((0,b.xI)(Ee))return;const Ae=Array.from(Ee.getElementsByClassName("theme-head-tag"));(0,b.Uh)(Ae)&&Ae.forEach(_t=>_t.remove());const Je=this.document.createDocumentFragment();this.createHeadTags(Me).forEach(_t=>Je.appendChild(_t)),Ee.appendChild(Je)}createHeadTags(Me){const Ee=this.getThemeConfigFor(Me),Ae=Ee?.headTags;if((0,b.xI)(Ae)){const Je=Ee?.extends;return(0,b.Uh)(Je)?this.createHeadTags(Je):[this.createHeadTag({tagName:"link",attributes:{rel:"icon",href:"assets/images/favicon.ico",sizes:"any"}})]}return Ae.map(this.createHeadTag.bind(this))}createHeadTag(Me){const Ee=this.document.createElement(Me.tagName);return(0,b.Uh)(Me.attributes)&&Object.entries(Me.attributes).forEach(([Ae,Je])=>Ee.setAttribute(Ae,Je)),Ee.setAttribute("class","theme-head-tag"),Ee}updateThemeOnRouteChange$(Me,Ee){const Je=this.store.pipe((0,t.Ys)(q)).pipe((0,m.w)(_t=>{const It=this.findRouteData(Ee);if(!0===this.hasDynamicTheme&&(0,b.UE)(this.themes)){if((0,b.Uh)(It)&&(0,b.Uh)(It.data)&&(0,b.Uh)(It.data.dso)){const it=It.data.dso;if(it.hasSucceeded)return(0,o.of)(it.payload).pipe(this.getAncestorDSOs(),(0,m.w)(Be=>this.matchThemeToDSOs(Be,Me)),(0,_.U)(Be=>this.getActionForMatch(Be,_t)))}
1return(0,b.Uh)(Ee.queryParams)&&(0,b.Uh)(Ee.queryParams.scope)?this.dSpaceObjectDataService.findById(Ee.queryParams.scope).pipe((0,M.xw)(),(0,M.xe)(),this.getAncestorDSOs(),(0,m.w)(Be=>this.matchThemeToDSOs(Be,Me)),(0,_.U)(Be=>this.getActionForMatch(Be,_t))):(0,i.D)(this.themes).pipe((0,d.b)(it=>it.matches(Me,void 0).pipe((0,h.h)(Be=>!0===Be),(0,_.U)(()=>it),(0,p.q)(1))),(0,p.q)(1),(0,_.U)(it=>this.getActionForMatch(it,_t)))}return(0,o.of)(new V.B)}),(0,p.q)(1));return Je.pipe((0,h.h)(_t=>_t.type!==V.E)).subscribe(_t=>{this.store.dispatch(_t)}),Je.pipe((0,_.U)(_t=>_t.type===a.j.SET))}findRouteData(...Me){const Ee=Me.find(Ae=>(0,b.Uh)(Ae.data)&&(0,b.Uh)(Ae.data.dso));if((0,b.Uh)(Ee))return Ee;{const Ae=Me.map(Je=>Je.children).reduce((Je,_t)=>[...Je,..._t]);return(0,b.UE)(Ae)?this.findRouteData(...Ae):void 0}}getAncestorDSOs(){return Me=>Me.pipe((0,v.j)(Ee=>{if((0,b.Uh)(Ee)&&"function"==typeof Ee.getParentLinkKey){const Ae=Ee.getParentLinkKey();return this.linkService.resolveLinkWithoutAttaching(Ee,(0,Y.l)(Ae)).pipe((0,M.hC)(),(0,_.U)(Je=>(0,b.Uh)(Je.payload)?Je.payload:null))}return r.E}),(0,h.h)(Ee=>(0,b.Uh)(Ee)),(0,E.q)())}getActionForMatch(Me,Ee){const Ae=Me?.config.name??G.B;return Ae!==Ee?new a.t(Ae):new V.B}matchThemeToDSOs(Me,Ee){return(0,i.D)(this.themes).pipe((0,d.b)(Ae=>(0,i.D)(Me).pipe((0,d.b)(Je=>Ae.matches(Ee,Je)),(0,h.h)(Je=>!0===Je),(0,_.U)(()=>Ae),(0,p.q)(1))),(0,p.q)(1),(0,O.d)(void 0))}getThemeConfigFor(Me){return this.gtcf(Me)}}return ce.\u0275fac=function(Me){return new(Me||ce)(ie.\u0275\u0275inject(t.yh),ie.\u0275\u0275inject(X.M),ie.\u0275\u0275inject(K.D),ie.\u0275\u0275inject(ie.Injector),ie.\u0275\u0275inject(ae.tw),ie.\u0275\u0275inject(ee.F0),ie.\u0275\u0275inject(j.K0))},ce.\u0275prov=ie.\u0275\u0275defineInjectable({token:ce,factory:ce.\u0275fac,providedIn:"root"}),ce})()},25330:(R,c,e)=>{"use strict";e.d(c,{F:()=>P});var t=e(94650),n=e(24702),o=e(61135),i=e(39841),d=e(39646),r=e(50457),a=e(55784),p=e(63900),h=e(18505),m=e(54004),_=e(70262),v=e(36221);const E=["vcr"],O=["content"];function b(D,l){}const M=["*"];let P=(()=>{class D{constructor(C,I){this.cdr=C,this.themeService=I,this.compRef$=new o.X(void 0),this.inAndOutputNames=[]}ngOnChanges(C){(0,n.xI)(this.compRef)?this.initComponentInstance(C):this.inAndOutputNames.some(I=>(0,n.Uh)(C[I]))&&(this.connectInputsAndOutputs(),this.compRef?.instance&&"ngOnChanges"in this.compRef.instance&&this.compRef.instance.ngOnChanges(C))}ngAfterViewInit(){this.initComponentInstance()}ngOnDestroy(){[this.themeSub,this.lazyLoadSub].filter(C=>(0,n.Uh)(C)).forEach(C=>C.unsubscribe()),this.destroyComponentInstance()}initComponentInstance(C){this.themeSub=this.themeService?.getThemeName$().subscribe(()=>{this.renderComponentInstance(C)})}renderComponentInstance(C){(0,n.Uh)(this.lazyLoadSub)&&this.lazyLoadSub.unsubscribe(),(0,n.xI)(this.lazyLoadObs)&&(this.lazyLoadObs=(0,i.a)([(0,d.of)(C),this.resolveThemedComponent(this.themeService.getThemeName()).pipe((0,p.w)(I=>(0,n.Uh)(I)&&(0,n.Uh)(I[this.getComponentName()])?[I[this.getComponentName()]]:(0,r.D)(this.importUnthemedComponent()).pipe((0,h.b)(()=>this.usedTheme=v.B),(0,m.U)(g=>g[this.getComponentName()]))))])),this.lazyLoadSub=this.lazyLoadObs.subscribe(([I,g])=>{this.destroyComponentInstance(),this.compRef=this.vcr.createComponent(g,{projectableNodes:[this.themedElementContent.nativeElement.childNodes]}),(0,n.Uh)(I)?this.ngOnChanges(I):this.connectInputsAndOutputs(),this.compRef$.next(this.compRef),this.cdr.markForCheck(),this.themedElementContent.nativeElement.remove()})}destroyComponentInstance(){(0,n.Uh)(this.compRef)&&(this.compRef.destroy(),this.compRef=null),(0,n.Uh)(this.vcr)&&this.vcr.clear()}connectInputsAndOutputs(){(0,n.UE)(this.inAndOutputNames)&&(0,n.Uh)(this.compRef)&&(0,n.Uh)(this.compRef.instance)&&this.inAndOutputNames.filter(C=>void 0!==this[C]).forEach(C=>{this.compRef.instance[C]=this[C]})}resolveThemedComponent(C,I=[]){return(0,n.UE)(C)?(0,r.D)(this.importThemedComponent(C)).pipe((0,h.b)(()=>this.usedTheme=C),(0,_.K)(()=>{const g=this.themeService.getThemeConfigFor(C)?.extends,B=[...I,C];if(I.includes(g))throw new Error("Theme extension cycle detected: "+[...B,g].join(" -> "));return this.resolveThemedComponent(g,B)})):(0,d.of)(null)}}return D.\u0275fac=function(C){return new(C||D)(t.\u0275\u0275directiveInject(t.ChangeDetectorRef),t.\u0275\u0275directiveInject(a.fY))},D.\u0275cmp=t.\u0275\u0275defineComponent({type:D,selectors:[["ds-themed"]],viewQuery:function(C,I){if(1&C&&(t.\u0275\u0275viewQuery(E,5,t.ViewContainerRef),t.\u0275\u0275viewQuery(O,5)),2&C){let g;t.\u0275\u0275queryRefresh(g=t.\u0275\u0275loadQuery())&&(I.vcr=g.first),t.\u0275\u0275queryRefresh(g=t.\u0275\u0275loadQuery())&&(I.themedElementContent=g.first)}},hostVars:1,hostBindings:function(C,I){2&C&&t.\u0275\u0275attribute("data-used-theme",I.usedTheme)},features:[t.\u0275\u0275NgOnChangesFeature],ngContentSelectors:M,decls:5,vars:0,consts:[["vcr",""],["content",""]],template:function(C,I){1&C&&(t.\u0275\u0275projectionDef(),t.\u0275\u0275template(0,b,0,0,"ng-template",null,0,t.\u0275\u0275templateRefExtractor),t.\u0275\u0275elementStart(2,"div",null,1),t.\u0275\u0275projection(4),t.\u0275\u0275elementEnd())}}),D}
1)()},38030:(R,c,e)=>{"use strict";e.d(c,{_:()=>r});var t=e(46040),n=e(46418),o=e(94650),i=e(89383),d=e(34793);let r=(()=>{class a{constructor(h,m,_,v){this.objectUpdatesService=h,this.notificationsService=m,this.translateService=_,this.router=v,this.notificationsPrefix="static-pages.form.notification"}ngOnInit(){this.url=this.router.url.split("?")[0],this.hasChanges$=this.hasChanges(),this.isReinstatable$=this.isReinstatable()}discard(){const h=this.notificationsService.info(this.getNotificationTitle("discarded"),this.getNotificationContent("discarded"),{timeOut:this.discardTimeOut});this.objectUpdatesService.discardFieldUpdates(this.url,h)}reinstate(){this.objectUpdatesService.reinstateFieldUpdates(this.url)}isReinstatable(){return this.objectUpdatesService.isReinstatable(this.url)}hasChanges(){return this.objectUpdatesService.hasUpdates(this.url)}getNotificationTitle(h){return this.translateService.instant(this.notificationsPrefix+h+".title")}getNotificationContent(h){return this.translateService.instant(this.notificationsPrefix+h+".content")}}return a.\u0275fac=function(h){return new(h||a)(o.\u0275\u0275directiveInject(t.d),o.\u0275\u0275directiveInject(n.T),o.\u0275\u0275directiveInject(i.sK),o.\u0275\u0275directiveInject(d.F0))},a.\u0275cmp=o.\u0275\u0275defineComponent({type:a,selectors:[["ds-abstract-trackable"]],decls:0,vars:0,template:function(h,m){},encapsulation:2}),a})()},57887:(R,c,e)=>{"use strict";e.d(c,{n:()=>t});class t{handle(o){return o.interpolateParams&&o.interpolateParams.default||o.key}}},84630:(R,c,e)=>{"use strict";e.d(c,{L:()=>p});var t=e(29602),n=e(24702),o=e(94650),i=e(96872),d=e(89383);const r=["content"],a=["*"];let p=(()=>{class h{constructor(_){this.service=_,this.maxLines=-1,this.fixedHeight=!1,this.background="default",this.showToggle=!0,this.expand=!1,this.expandable=!1}ngOnInit(){this.setLines()}setLines(){this.sub=this.service.isCollapsed(this.id).subscribe(_=>{_?(this.lines=this.minLines.toString(),this.expand=!1):(this.lines=this.maxLines<0?"none":this.maxLines.toString(),this.expand=!0)})}ngAfterViewChecked(){this.truncateElement()}toggle(){this.service.toggle(this.id),this.expandable=!this.expandable}truncateElement(){if(this.showToggle){const _=this.content.nativeElement;_.scrollHeight>_.offsetHeight?_.children.length>0?_.children[_.children.length-1].offsetHeight>_.offsetHeight?(_.classList.add("truncated"),_.classList.remove("removeFaded")):(_.classList.remove("truncated"),_.classList.add("removeFaded")):_.innerText.length>0?(_.classList.add("truncated"),_.classList.remove("removeFaded")):(_.classList.remove("truncated"),_.classList.add("removeFaded")):(_.classList.remove("truncated"),_.classList.add("removeFaded"))}}get isExpanded(){return this.expand&&this.expandable}ngOnDestroy(){(0,n.Uh)(this.sub)&&this.sub.unsubscribe()}}return h.\u0275fac=function(_){return new(_||h)(o.\u0275\u0275directiveInject(t.F))},h.\u0275cmp=o.\u0275\u0275defineComponent({type:h,selectors:[["ds-truncatable-part"]],viewQuery:function(_,v){if(1&_&&o.\u0275\u0275viewQuery(r,7),2&_){let E;o.\u0275\u0275queryRefresh(E=o.\u0275\u0275loadQuery())&&(v.content=E.first)}},inputs:{minLines:"minLines",maxLines:"maxLines",id:"id",type:"type",fixedHeight:"fixedHeight",background:"background",showToggle:"showToggle"},ngContentSelectors:a,decls:9,vars:17,consts:[[1,"content","dont-break-out","preserve-line-breaks"],["content",""],["dsDragClick","","role","button",3,"actualClick","keyup.Enter","keyup.Space"],[1,"ml-1"]],template:function(_,v){1&_&&(o.\u0275\u0275projectionDef(),o.\u0275\u0275elementStart(0,"div")(1,"div",0,1),o.\u0275\u0275projection(3),o.\u0275\u0275elementEnd(),o.\u0275\u0275elementStart(4,"button",2),o.\u0275\u0275listener("actualClick",function(){return v.toggle()})("keyup.Enter",function(){return v.toggle()})("keyup.Space",function(){return v.toggle()}),o.\u0275\u0275element(5,"i"),o.\u0275\u0275elementStart(6,"span",3),o.\u0275\u0275text(7),o.\u0275\u0275pipe(8,"translate"),o.\u0275\u0275elementEnd()()()),2&_&&(o.\u0275\u0275classMapInterpolate5("clamp-",v.background,"-",v.lines," min-",v.minLines," ",v.type," ",v.fixedHeight?"fixedHeight":"",""),o.\u0275\u0275advance(4),o.\u0275\u0275classMapInterpolate1("btn btn-link p-0 ",v.isExpanded?"collapseButton":"expandButton",""),o.\u0275\u0275attribute("aria-expanded",v.isExpanded),o.\u0275\u0275advance(1),o.\u0275\u0275classMapInterpolate1("fas ",v.isExpanded?"fa-angle-up":"fa-angle-down",""),o.\u0275\u0275advance(2),o.\u0275\u0275textInterpolate(o.\u0275\u0275pipeBind1(8,15,"item.truncatable-part.show-"+(v.isExpanded?"less":"more"))))},dependencies:[i.D,d.X$],styles:[".content[_ngcontent-%COMP%]:not(.truncated) ~ button.expandButton[_ngcontent-%COMP%]{display:none}.btn[_ngcontent-%COMP%]:focus{box-shadow:none!important}.removeFaded.content[_ngcontent-%COMP%]:after{display:none}"]}),h})()},84891:(R,c,e)=>{"use strict";e.d(c,{NX:()=>r,ni:()=>i,r0:()=>d,vx:()=>n});var t=e(79472);const n={TOGGLE:(0,t.d)("dspace/truncatable/TOGGLE"),COLLAPSE:(0,t.d)("dspace/truncatable/COLLAPSE"),EXPAND:(0,t.d)("dspace/truncatable/EXPAND")};class o{constructor(p){this.id=p}}class i extends o{constructor(){super(...arguments),this.type=n.TOGGLE}}class d extends o{constructor(){super(...arguments),this.type=n.COLLAPSE}}class r extends o{constructor(){super(...arguments),this.type=n.EXPAND}}},57416:(R,c,e)=>{"use strict";e.d(c,{n:()=>i});var t=e(29602),n=e(94650);const o=["*"];let i=(()=>{class d{constructor(a,p){this.service=a,this.el=p,this.initialExpand=!1,this.onHover=!1,this.showToggle=!0}ngOnInit(){this.initialExpand?this.service.expand(this.id):this.service.collapse(this.id
1)}hoverCollapse(){this.onHover&&this.service.collapse(this.id)}hoverExpand(){this.onHover&&this.service.expand(this.id)}ngAfterViewChecked(){if(this.showToggle&&this.el.nativeElement.querySelectorAll(".truncated")?.length>0){const p=this.el.nativeElement.querySelectorAll(".dont-break-out");for(let h=0;h<p.length-1;h++)p[h].classList.remove("truncated"),p[h].classList.add("notruncatable");p[p.length-1].classList.add("truncated")}}}return d.\u0275fac=function(a){return new(a||d)(n.\u0275\u0275directiveInject(t.F),n.\u0275\u0275directiveInject(n.ElementRef))},d.\u0275cmp=n.\u0275\u0275defineComponent({type:d,selectors:[["ds-truncatable"]],inputs:{initialExpand:"initialExpand",id:"id",onHover:"onHover",showToggle:"showToggle"},ngContentSelectors:o,decls:2,vars:0,consts:[[3,"mouseenter","mouseleave"]],template:function(a,p){1&a&&(n.\u0275\u0275projectionDef(),n.\u0275\u0275elementStart(0,"div",0),n.\u0275\u0275listener("mouseenter",function(){return p.hoverExpand()})("mouseleave",function(){return p.hoverCollapse()}),n.\u0275\u0275projection(1),n.\u0275\u0275elementEnd())}}),d})()},29602:(R,c,e)=>{"use strict";e.d(c,{F:()=>a});var t=e(54004),n=e(89653),o=e(84891),i=e(24702),d=e(94650);const r=m=>m.truncatable;let a=(()=>{class m{constructor(v){this.store=v}isCollapsed(v){return this.store.pipe((0,n.Ys)(function p(m){return function h(m){return(0,n.P1)(r,_=>{if((0,i.Uh)(_))return _[m]})}(m)}(v)),(0,t.U)(E=>!!E&&E.collapsed))}toggle(v){this.store.dispatch(new o.ni(v))}collapse(v){this.store.dispatch(new o.r0(v))}expand(v){this.store.dispatch(new o.NX(v))}}return m.\u0275fac=function(v){return new(v||m)(d.\u0275\u0275inject(n.yh))},m.\u0275prov=d.\u0275\u0275defineInjectable({token:m,factory:m.\u0275fac}),m})()},73579:(R,c,e)=>{"use strict";e.d(c,{g:()=>o});var t=e(94650),n=e(36895);let o=(()=>{class i{constructor(r){this.platformID=r}transform(r){if((0,n.NF)(this.platformID))return r}}return i.\u0275fac=function(r){return new(r||i)(t.\u0275\u0275directiveInject(t.PLATFORM_ID,16))},i.\u0275pipe=t.\u0275\u0275definePipe({name:"dsBrowserOnly",type:i,pure:!0}),i})()},90059:(R,c,e)=>{"use strict";e.d(c,{_:()=>n});var t=e(94650);let n=(()=>{class o{constructor(d){this._elementRef=d,this.dsClickOutside=new t.EventEmitter}onClick(){const d=this._elementRef.nativeElement;d.contains(d.ownerDocument.activeElement)||this.dsClickOutside.emit(null)}}return o.\u0275fac=function(d){return new(d||o)(t.\u0275\u0275directiveInject(t.ElementRef))},o.\u0275dir=t.\u0275\u0275defineDirective({type:o,selectors:[["","dsClickOutside",""]],hostBindings:function(d,r){1&d&&t.\u0275\u0275listener("click",function(){return r.onClick()},!1,t.\u0275\u0275resolveDocument)},outputs:{dsClickOutside:"dsClickOutside"}}),o})()},34159:(R,c,e)=>{"use strict";e.d(c,{q:()=>a});var t=e(82722),n=e(78372),o=e(71884),i=e(94650),d=e(77579),r=e(24006);let a=(()=>{class p{constructor(m){this.model=m,this.onDebounce=new i.EventEmitter,this.dsDebounce=500,this.subject=new d.x}ngOnInit(){this.model.valueChanges.pipe((0,t.R)(this.subject),(0,n.b)(this.dsDebounce),(0,o.x)()).subscribe(m=>{this.model.dirty&&this.onDebounce.emit(m)})}ngOnDestroy(){this.subject.next(),this.subject.complete()}}return p.\u0275fac=function(m){return new(m||p)(i.\u0275\u0275directiveInject(r.a5))},p.\u0275dir=i.\u0275\u0275defineDirective({type:p,selectors:[["","ngModel","","dsDebounce",""]],inputs:{dsDebounce:"dsDebounce"},outputs:{onDebounce:"onDebounce"}}),p})()},96872:(R,c,e)=>{"use strict";e.d(c,{D:()=>n});var t=e(94650);let n=(()=>{class o{constructor(){this.actualClick=new t.EventEmitter}mousedownEvent(d){this.start=new Date}mouseupEvent(d){new Date-this.start<250&&this.actualClick.emit(d)}}return o.\u0275fac=function(d){return new(d||o)},o.\u0275dir=t.\u0275\u0275defineDirective({type:o,selectors:[["","dsDragClick",""]],hostBindings:function(d,r){1&d&&t.\u0275\u0275listener("mousedown",function(p){return r.mousedownEvent(p)})("mouseup",function(p){return r.mouseupEvent(p)})},outputs:{actualClick:"actualClick"}}),o})()},19919:(R,c,e)=>{"use strict";e.d(c,{R:()=>n});var t=e(94650);let n=(()=>{class o{constructor(){this.specials=["-","[","]","/","{","}","(",")","*","+","?",".","\\","^","$","|"],this.regex=RegExp("["+this.specials.join("\\")+"]","g")}transform(d,r){const a=this.escapeRegExp(r),p=new RegExp(a,"gi");return d.replace(p,"<em>$&</em>")}escapeRegExp(d){return d.replace(this.regex,"\\$&")}}return o.\u0275fac=function(d){return new(d||o)}
1,o.\u0275pipe=t.\u0275\u0275definePipe({name:"dsEmphasize",type:o,pure:!0}),o})()},26625:(R,c,e)=>{"use strict";e.d(c,{Q:()=>n});var t=e(94650);let n=(()=>{class o{transform(d){const r=[];for(const a in d)isNaN(parseInt(a,10))?r.push({key:a,value:d[a]}):r.push({key:+a,value:d[a]});return r}}return o.\u0275fac=function(d){return new(d||o)},o.\u0275pipe=t.\u0275\u0275definePipe({name:"dsKeys",type:o,pure:!0}),o})()},54202:(R,c,e)=>{"use strict";e.d(c,{p:()=>i});var t=e(20855),o=e(94650);let i=(()=>{class d{transform(a=0,p=2){return t(a,{standard:"jedec",round:p})}}return d.\u0275fac=function(a){return new(a||d)},d.\u0275pipe=o.\u0275\u0275definePipe({name:"dsFileSize",type:d,pure:!0}),d})()},17825:(R,c,e)=>{"use strict";e.d(c,{k:()=>o});var t=e(24006),n=e(94650);let o=(()=>{class i{constructor(){this.onChange=r=>{},this.onTouched=()=>{}}writeValue(r){}registerOnChange(r){this.onChange=r}registerOnTouched(r){this.onTouched=r}}return i.\u0275fac=function(r){return new(r||i)},i.\u0275dir=n.\u0275\u0275defineDirective({type:i,selectors:[["input","type","file"]],hostBindings:function(r,a){1&r&&n.\u0275\u0275listener("change",function(h){return a.onChange(h.target.files)})("blur",function(){return a.onTouched()})},features:[n.\u0275\u0275ProvidersFeature([{provide:t.JU,useExisting:i,multi:!0}])]}),i})()},93369:(R,c,e)=>{"use strict";e.d(c,{l:()=>i});var t=e(24702),n=e(17481);const i=(d,{findListOptions:r,shouldEmbed:a,useCachedVersionIfAvailable:p,reRequestOnStale:h,isOptional:m}={},..._)=>({name:d,findListOptions:(0,t.Uh)(r)?r:new n.R,shouldEmbed:!(0,t.Uh)(a)||a,useCachedVersionIfAvailable:!(0,t.Uh)(p)||p,reRequestOnStale:!(0,t.Uh)(h)||h,isOptional:!!(0,t.Uh)(m)&&m,linksToFollow:_})},73566:(R,c,e)=>{"use strict";e.d(c,{J:()=>n});var t=e(94650);let n=(()=>{class o{constructor(d){this.elementRef=d,this.dsHoverOutside=new t.EventEmitter}onMouseOver(d){const r=d.target,a=document.querySelector(this.dsHoverOutsideOfParentSelector);(a?new t.ElementRef(a):this.elementRef).nativeElement.contains(r)||this.dsHoverOutside.emit(null)}}return o.\u0275fac=function(d){return new(d||o)(t.\u0275\u0275directiveInject(t.ElementRef))},o.\u0275dir=t.\u0275\u0275defineDirective({type:o,selectors:[["","dsHoverOutside",""]],hostBindings:function(d,r){1&d&&t.\u0275\u0275listener("mouseover",function(p){return r.onMouseOver(p)},!1,t.\u0275\u0275resolveDocument)},inputs:{dsHoverOutsideOfParentSelector:"dsHoverOutsideOfParentSelector"},outputs:{dsHoverOutside:"dsHoverOutside"}}),o})()},97172:(R,c,e)=>{"use strict";e.d(c,{N:()=>_});var t=e(49671),n=e(94650),o=e(21540),i=e(11481);const r=new n.InjectionToken("Lazily loaded MarkdownIt",{providedIn:"root",factory:function(){var v=(0,t.Z)(function*(){return(yield e.e(4826).then(e.t.bind(e,34826,23))).default});return function(){return v.apply(this,arguments)}}()}),p=new n.InjectionToken("Lazily loaded mathjax",{providedIn:"root",factory:function(){var v=(0,t.Z)(function*(){return(yield Promise.all([e.e(8592),e.e(7861)]).then(e.t.bind(e,17861,23))).default});return function(){return v.apply(this,arguments)}}()}),m=new n.InjectionToken("Lazily loaded sanitize-html",{providedIn:"root",factory:function(){var v=(0,t.Z)(function*(){return(yield Promise.all([e.e(8592),e.e(1135)]).then(e.t.bind(e,41135,23))).default});return function(){return v.apply(this,arguments)}}()});let _=(()=>{class v{constructor(O,b,M,P){this.sanitizer=O,this.markdownIt=b,this.mathjax=M,this.sanitizeHtml=P}transform(O){var b=this;return(0,t.Z)(function*(){if(!o.N.markdown.enabled)return O;const P=new(yield b.markdownIt)({html:!0,linkify:!0});let D;if(o.N.markdown.mathjax){P.use(yield b.mathjax);const l=yield b.sanitizeHtml;D=l(P.render(O),{allowedTags:[...l.defaults.allowedTags,"mjx-container","svg","g","path","rect","text","mjx-assistive-mml","math","mrow","mi"],allowedAttributes:{...l.defaults.allowedAttributes,"mjx-container":["class","style","jax"],svg:["xmlns","viewBox","style","width","height","role","focusable","alt","aria-label"],g:["data-mml-node","style","stroke","fill","stroke-width","transform"],path:["d","style","transform"],rect:["width","height","x","y","transform","style"],text:["transform","font-size"],"mjx-assistive-mml":["unselectable","display","style"],math:["xmlns"],mrow:["data-mjx-texclass"]},parser:{lowerCaseAttributeNames:!1}})}else D=b.sanitizer.sanitize(n.SecurityContext.HTML,P.render(O));return b.sanitizer.bypassSecurityTrustHtml(D)})()}}return v.\u0275fac=function(O){return new(O||v)(n.\u0275\u0275directiveInject(i.H7,16),n.\u0275\u0275directiveInject(r,16),n.\u0275\u0275directiveInject(p,16),n.\u0275\u0275directiveInject(m,16))},v.\u0275pipe=n.\u0275\u0275definePipe({name:"dsMarkdown",type:v,pure:!0}),v})()},25681:(R,c,e)=>{"use strict";e.d(c,{w:()=>n});var t=e(94650);let n=(()=>{class o{transform(d){const r=[];
1return Object.keys(d).forEach(a=>r.push(a)),r}}return o.\u0275fac=function(d){return new(d||o)},o.\u0275pipe=t.\u0275\u0275definePipe({name:"dsObjectKeys",type:o,pure:!0}),o})()},78063:(R,c,e)=>{"use strict";function t(n){return n<400?"thumb-font-0":n<750?"thumb-font-1":n<1e3?"thumb-font-2":"thumb-font-3"}e.d(c,{X:()=>t})},43928:(R,c,e)=>{"use strict";e.d(c,{C:()=>n});var t=e(94650);let n=(()=>{class o{transform(d,r=null){return Object.keys(d).map(a=>Object.assign({key:a},{value:d[a]}))}}return o.\u0275fac=function(d){return new(d||o)},o.\u0275pipe=t.\u0275\u0275definePipe({name:"dsObjNgFor",type:o,pure:!0}),o})()},5023:(R,c,e)=>{"use strict";e.d(c,{g:()=>o});var t=e(24702),n=e(94650);let o=(()=>{class i{transform(r){const a=[];return(0,t.UE)(r)&&Object.values(r).forEach(p=>a.push(p)),a}}return i.\u0275fac=function(r){return new(r||i)},i.\u0275pipe=n.\u0275\u0275definePipe({name:"dsObjectValues",type:i,pure:!0}),i})()},49454:(R,c,e)=>{"use strict";e.d(c,{IX:()=>i,ae:()=>o});var t=e(93369);function o(d,r){return`f.${d}=${r},equals`}function i(d,r){const a=[];return d&&a.push((0,t.l)("thumbnail")),r&&a.push((0,t.l)("accessStatus")),[(0,t.l)("leftItem",void 0,...a),(0,t.l)("rightItem",void 0,...a)]}},52777:(R,c,e)=>{"use strict";e.d(c,{C:()=>o});var t=e(24006),n=e(94650);let o=(()=>{class i{static validate(r){return null==r.value||0===r.value.length?{required:!0}:null}validate(r){return i.validate(r)}}return i.\u0275fac=function(r){return new(r||i)},i.\u0275dir=n.\u0275\u0275defineDirective({type:i,selectors:[["","requireFile",""]],features:[n.\u0275\u0275ProvidersFeature([{provide:t.Cf,useExisting:i,multi:!0}])]}),i})()},78056:(R,c,e)=>{"use strict";e.d(c,{T:()=>o,i:()=>i});var t=e(24702),n=e(23631);function o(d){return"/"+d.parseUrl(d.url).root.children.primary.segments.map(a=>a.path).join("/")}function i(d){if((0,t.Uh)(d.parent)){const r=i(d.parent);return new n.R(r,d.routeConfig.path).toString()}return d.routeConfig?d.routeConfig.path:""}},11515:(R,c,e)=>{"use strict";e.d(c,{Q:()=>o});var t=e(94650),n=e(11481);let o=(()=>{class i{constructor(r){this.domSanitizer=r}transform(r){return null==r?null:this.domSanitizer.bypassSecurityTrustResourceUrl(r)}}return i.\u0275fac=function(r){return new(r||i)(t.\u0275\u0275directiveInject(n.H7,16))},i.\u0275pipe=t.\u0275\u0275definePipe({name:"dsSafeUrl",type:i,pure:!0}),i})()},26775:(R,c,e)=>{"use strict";e.d(c,{H:()=>o});var t=e(24702),n=e(94650);let o=(()=>{class i{transform(r,a){if(isNaN(r)||(0,t.xb)(r)||0===r)return r;let p=Math.abs(r);const h=Math.pow(10,1),m=r<0;let _="";const v=[{key:"Q",value:Math.pow(10,15)},{key:"T",value:Math.pow(10,12)},{key:"B",value:Math.pow(10,9)},{key:"M",value:Math.pow(10,6)},{key:"K",value:1e3}];for(let E=0;E<v.length;E++){let O=p/v[E].value;if(O=Math.round(O*h)/h,O>=1){p=O,_=v[E].key;break}}return(m?"-":"")+p+_}}return i.\u0275fac=function(r){return new(r||i)},i.\u0275pipe=n.\u0275\u0275definePipe({name:"dsShortNumber",type:i,pure:!0}),i})()},58714:(R,c,e)=>{"use strict";e.d(c,{W:()=>o});var t=e(24702),n=e(94650);let o=(()=>{class i{transform(r,a){if((0,t.Uh)(r)){const p=a&&a.length>0?parseInt(a[0],10):10;return r.length>p?r.substring(0,p)+"...":r}return r}}return i.\u0275fac=function(r){return new(r||i)},i.\u0275pipe=n.\u0275\u0275definePipe({name:"dsTruncate",type:i,pure:!0}),i})()},98605:(R,c,e)=>{"use strict";e.d(c,{g:()=>n});var t=e(94650);let n=(()=>{class o{constructor(d,r){this.vcRef=d,this.templateRef=r,this.context={}}set ngVar(d){this.context.$implicit=this.context.ngVar=d,this.updateView()}updateView(){this.vcRef.clear(),this.vcRef.createEmbeddedView(this.templateRef,this.context)}}return o.\u0275fac=function(d){return new(d||o)(t.\u0275\u0275directiveInject(t.ViewContainerRef),t.\u0275\u0275directiveInject(t.TemplateRef))},o.\u0275dir=t.\u0275\u0275defineDirective({type:o,selectors:[["","ngVar",""]],inputs:{ngVar:"ngVar"}}),o})()},98856:(R,c,e)=>{"use strict";e.d(c,{$:()=>P});var t=e(94650),n=e(5164),o=e(51121),i=e(24702),d=e(78056),r=e(39300),a=e(34793),p=e(36895),h=e(89383),m=e(73579);const _=function(){return{view:"list"}};function v(D,l){if(1&D){const C=t.\u0275\u0275getCurrentView();t.\u0275\u0275elementStart(0,"button",2),t.\u0275\u0275listener("click",function(){t.\u0275\u0275restoreView(C);const g=t.\u0275\u0275nextContext();
1return t.\u0275\u0275resetView(g.switchViewTo(g.viewModeEnum.ListElement))}),t.\u0275\u0275pipe(1,"translate"),t.\u0275\u0275pipe(2,"dsBrowserOnly"),t.\u0275\u0275element(3,"i",3),t.\u0275\u0275elementEnd()}if(2&D){const C=t.\u0275\u0275nextContext();t.\u0275\u0275classProp("active",C.currentMode===C.viewModeEnum.ListElement),t.\u0275\u0275property("queryParams",t.\u0275\u0275pureFunction0(10,_)),t.\u0275\u0275attribute("aria-current",C.currentMode===C.viewModeEnum.ListElement)("aria-label",t.\u0275\u0275pipeBind1(1,6,"search.view-switch.show-list"))("data-test",t.\u0275\u0275pipeBind1(2,8,"list-view"))}}const E=function(){return{view:"grid"}};function O(D,l){if(1&D){const C=t.\u0275\u0275getCurrentView();t.\u0275\u0275elementStart(0,"button",2),t.\u0275\u0275listener("click",function(){t.\u0275\u0275restoreView(C);const g=t.\u0275\u0275nextContext();return t.\u0275\u0275resetView(g.switchViewTo(g.viewModeEnum.GridElement))}),t.\u0275\u0275pipe(1,"translate"),t.\u0275\u0275pipe(2,"dsBrowserOnly"),t.\u0275\u0275element(3,"i",4),t.\u0275\u0275elementEnd()}if(2&D){const C=t.\u0275\u0275nextContext();t.\u0275\u0275classProp("active",C.currentMode===C.viewModeEnum.GridElement),t.\u0275\u0275property("queryParams",t.\u0275\u0275pureFunction0(10,E)),t.\u0275\u0275attribute("aria-current",C.currentMode===C.viewModeEnum.GridElement)("aria-label",t.\u0275\u0275pipeBind1(1,6,"search.view-switch.show-grid"))("data-test",t.\u0275\u0275pipeBind1(2,8,"grid-view"))}}const b=function(){return{view:"detailed"}};function M(D,l){if(1&D){const C=t.\u0275\u0275getCurrentView();t.\u0275\u0275elementStart(0,"button",2),t.\u0275\u0275listener("click",function(){t.\u0275\u0275restoreView(C);const g=t.\u0275\u0275nextContext();return t.\u0275\u0275resetView(g.switchViewTo(g.viewModeEnum.DetailedListElement))}),t.\u0275\u0275pipe(1,"dsBrowserOnly"),t.\u0275\u0275element(2,"span",5),t.\u0275\u0275elementStart(3,"span",6),t.\u0275\u0275text(4),t.\u0275\u0275pipe(5,"translate"),t.\u0275\u0275elementEnd()()}if(2&D){const C=t.\u0275\u0275nextContext();t.\u0275\u0275classProp("active",C.currentMode===C.viewModeEnum.DetailedListElement),t.\u0275\u0275property("queryParams",t.\u0275\u0275pureFunction0(9,b)),t.\u0275\u0275attribute("data-test",t.\u0275\u0275pipeBind1(1,5,"detail-view")),t.\u0275\u0275advance(4),t.\u0275\u0275textInterpolate(t.\u0275\u0275pipeBind1(5,7,"search.view-switch.show-detail"))}}let P=(()=>{class D{constructor(C,I){this.searchService=C,this.router=I,this.currentMode=o.w.ListElement,this.viewModeEnum=o.w,this.changeViewMode=new t.EventEmitter}ngOnInit(){(0,i.xb)(this.viewModeList)&&(this.viewModeList=[o.w.ListElement,o.w.GridElement]),this.sub=this.searchService.getViewMode().pipe((0,r.h)(C=>(0,i.UE)(C))).subscribe(C=>{this.currentMode=C})}switchViewTo(C){C!==this.currentMode&&this.changeViewMode.emit(C),this.searchService.setViewMode(C,this.getSearchLinkParts())}ngOnDestroy(){void 0!==this.sub&&this.sub.unsubscribe()}isToShow(C){return this.viewModeList&&this.viewModeList.includes(C)}getSearchLink(){return this.inPlaceSearch?(0,d.T)(this.router):this.searchService.getSearchLink()}getSearchLinkParts(){return this.searchService?[]:this.getSearchLink().split("/")}}return D.\u0275fac=function(C){return new(C||D)(t.\u0275\u0275directiveInject(n.o),t.\u0275\u0275directiveInject(a.F0))},D.\u0275cmp=t.\u0275\u0275defineComponent({type:D,selectors:[["ds-view-mode-switch"]],inputs:{inPlaceSearch:"inPlaceSearch",viewModeList:"viewModeList"},outputs:{changeViewMode:"changeViewMode"},decls:4,vars:3,consts:[["data-toggle","buttons",1,"btn-group"],["routerLink",".","queryParamsHandling","merge","routerLinkActive","active","class","btn btn-secondary",3,"queryParams","active","click",4,"ngIf"],["routerLink",".","queryParamsHandling","merge","routerLinkActive","active",1,"btn","btn-secondary",3,"queryParams","click"],[1,"fas","fa-list"],[1,"fas","fa-th-large"],[1,"far","fa-square"],[1,"sr-only"]],template:function(C,I){1&C&&(t.\u0275\u0275elementStart(0,"div",0),t.\u0275\u0275template(1,v,4,11,"button",1),t.\u0275\u0275template(2,O,4,11,"button",1),t.\u0275\u0275template(3,M,6,10,"button",1),t.\u0275\u0275elementEnd()),2&C&&(t.\u0275\u0275advance(1),t.\u0275\u0275property("ngIf",I.isToShow(I.viewModeEnum.ListElement)),t.\u0275\u0275advance(1),t.\u0275\u0275property("ngIf",I.isToShow(I.viewModeEnum.GridElement)),t.\u0275\u0275advance(1),t.\u0275\u0275property("ngIf",I.isToShow(I.viewModeEnum.DetailedListElement)))},dependencies:[p.O5,a.rH,a.Od,h.X$,m.g]}),D})()},79248:(R,c,e)=>{"use strict";e.d(c,{p:()=>O});var t=e(36895),n=e(79530),o=e(44186),i=e(70655),d=e(19782),r=e(63037),a=e(29923),p=e(3879);const h=new p._("statistics");var m;let _=((m=class{}).type=h,m);(0,i.__decorate)([r.OJ,a.autoserialize,(0,i.__metadata)("design:type",p._)],_.prototype,"type",void 0),(0,i.__decorate)([a.deserialize,(0,i.__metadata)("design:type",Object)],_.prototype,"_links",void 0),_=(0,i.__decorate)([d.KB],_);var v=e(94650);let O=(()=>{class b{static forRoot(){return{ngModule:b}}}return b.\u0275fac=function(P){return new(P||b)},b.\u0275mod=v.\u0275\u0275defineNgModule({type:b}),b.\u0275inj=v.\u0275\u0275defineInjector({imports:[t.ez,n.IR.forRoot(),o.m]}),b})()},92967:(R,c,e)=>{"use strict";e.d(c,{H:()=>n,S:()=>o});var t=e(79472);const n={REHYDRATE:(0,t.d)("dspace/ngrx/REHYDRATE"),REPLAY:(0,t.d)("dspace/ngrx/REPLAY")};class o{constructor(d,r){this.type=d,this.payload=r}}},88360:(R,c,e)=>{"use strict";e.d(c,{AZ:()=>V,EL:()=>ee,GM:()=>ie,Nq:()=>B,QC:()=>m,QV:()=>C,Qe:()=>L,Uq:()=>D,Xq:()=>E,YU:()=>ne,ZG:()=>O,_w:()=>ae,cT:()=>g,e7:()=>te,ec:()=>l,gA:()=>b,gn:()=>r,gv:()=>P,hM:()=>I,hx:()=>j,jQ:()=>h,jn:()=>K,kj:()=>Q,l5:()=>G,oq:()=>k,p3:()=>v,qK:()=>d,re:()=>_,s0:()=>a,sd:()=>Y,tI:()=>n,uO:()=>o,wn:()=>X,z6:()=>p});var t=e(79472);const n={INIT_SUBMISSION_FORM:(0,t.d)("dspace/submission/INIT_SUBMISSION_FORM"),RESET_SUB
1MISSION_FORM:(0,t.d)("dspace/submission/RESET_SUBMISSION_FORM"),CANCEL_SUBMISSION_FORM:(0,t.d)("dspace/submission/CANCEL_SUBMISSION_FORM"),COMPLETE_INIT_SUBMISSION_FORM:(0,t.d)("dspace/submission/COMPLETE_INIT_SUBMISSION_FORM"),SAVE_FOR_LATER_SUBMISSION_FORM:(0,t.d)("dspace/submission/SAVE_FOR_LATER_SUBMISSION_FORM"),SAVE_FOR_LATER_SUBMISSION_FORM_SUCCESS:(0,t.d)("dspace/submission/SAVE_FOR_LATER_SUBMISSION_FORM_SUCCESS"),SAVE_FOR_LATER_SUBMISSION_FORM_ERROR:(0,t.d)("dspace/submission/SAVE_FOR_LATER_SUBMISSION_FORM_ERROR"),SAVE_SUBMISSION_FORM:(0,t.d)("dspace/submission/SAVE_SUBMISSION_FORM"),SAVE_SUBMISSION_FORM_SUCCESS:(0,t.d)("dspace/submission/SAVE_SUBMISSION_FORM_SUCCESS"),SAVE_SUBMISSION_FORM_ERROR:(0,t.d)("dspace/submission/SAVE_SUBMISSION_FORM_ERROR"),SAVE_SUBMISSION_SECTION_FORM:(0,t.d)("dspace/submission/SAVE_SUBMISSION_SECTION_FORM"),SAVE_SUBMISSION_SECTION_FORM_SUCCESS:(0,t.d)("dspace/submission/SAVE_SUBMISSION_SECTION_FORM_SUCCESS"),SAVE_SUBMISSION_SECTION_FORM_ERROR:(0,t.d)("dspace/submission/SAVE_SUBMISSION_SECTION_FORM_ERROR"),CHANGE_SUBMISSION_COLLECTION:(0,t.d)("dspace/submission/CHANGE_SUBMISSION_COLLECTION"),SET_ACTIVE_SECTION:(0,t.d)("dspace/submission/SET_ACTIVE_SECTION"),INIT_SECTION:(0,t.d)("dspace/submission/INIT_SECTION"),ENABLE_SECTION:(0,t.d)("dspace/submission/ENABLE_SECTION"),DISABLE_SECTION:(0,t.d)("dspace/submission/DISABLE_SECTION"),SET_SECTION_FORM_ID:(0,t.d)("dspace/submission/SET_SECTION_FORM_ID"),SECTION_STATUS_CHANGE:(0,t.d)("dspace/submission/SECTION_STATUS_CHANGE"),SECTION_LOADING_STATUS_CHANGE:(0,t.d)("dspace/submission/SECTION_LOADING_STATUS_CHANGE"),UPDATE_SECTION_DATA:(0,t.d)("dspace/submission/UPDATE_SECTION_DATA"),UPDATE_SECTION_DATA_SUCCESS:(0,t.d)("dspace/submission/UPDATE_SECTION_DATA_SUCCESS"),SAVE_AND_DEPOSIT_SUBMISSION:(0,t.d)("dspace/submission/SAVE_AND_DEPOSIT_SUBMISSION"),DEPOSIT_SUBMISSION:(0,t.d)("dspace/submission/DEPOSIT_SUBMISSION"),DEPOSIT_SUBMISSION_SUCCESS:(0,t.d)("dspace/submission/DEPOSIT_SUBMISSION_SUCCESS"),DEPOSIT_SUBMISSION_ERROR:(0,t.d)("dspace/submission/DEPOSIT_SUBMISSION_ERROR"),DISCARD_SUBMISSION:(0,t.d)("dspace/submission/DISCARD_SUBMISSION"),DISCARD_SUBMISSION_SUCCESS:(0,t.d)("dspace/submission/DISCARD_SUBMISSION_SUCCESS"),DISCARD_SUBMISSION_ERROR:(0,t.d)("dspace/submission/DISCARD_SUBMISSION_ERROR"),NEW_FILE:(0,t.d)("dspace/submission/NEW_FILE"),EDIT_FILE_DATA:(0,t.d)("dspace/submission/EDIT_FILE_DATA"),DELETE_FILE:(0,t.d)("dspace/submission/DELETE_FILE"),ADD_SECTION_ERROR:(0,t.d)("dspace/submission/ADD_SECTION_ERROR"),DELETE_SECTION_ERROR:(0,t.d)("dspace/submission/DELETE_SECTION_ERROR"),REMOVE_SECTION_ERRORS:(0,t.d)("dspace/submission/REMOVE_SECTION_ERRORS")};class o{constructor(oe,ce,ye){this.type=n.ADD_SECTION_ERROR,this.payload={submissionId:oe,sectionId:ce,error:ye}}}class d{constructor(oe,ce,ye,Me,Ee,Ae,Je,_t,It,it){this.type=n.INIT_SECTION,this.payload={submissionId:oe,sectionId:ce,header:ye,config:Me,mandatory:Ee,sectionType:Ae,visibility:Je,enabled:_t,data:It,errors:it}}}class r{constructor(oe,ce){this.type=n.ENABLE_SECTION,this.payload={submissionId:oe,sectionId:ce}}}class a{constructor(oe,ce){this.type=n.DISABLE_SECTION,this.payload={submissionId:oe,sectionId:ce}}}class p{constructor(oe,ce,ye,Me,Ee,Ae){this.type=n.UPDATE_SECTION_DATA,this.payload={submissionId:oe,sectionId:ce,data:ye,errorsToShow:Me,serverValidationErrors:Ee,metadata:Ae}}}class h{constructor(){this.type=n.UPDATE_SECTION_DATA_SUCCESS}}class m{constructor(oe,ce){this.type=n.REMOVE_SECTION_ERRORS,this.payload={submissionId:oe,sectionId:ce}}}class _{constructor(oe,ce,ye){this.type=n.SET_SECTION_FORM_ID,this.payload={submissionId:oe,sectionId:ce,formId:ye}}}class v{constructor(oe){this.type=n.COMPLETE_INIT_SUBMISSION_FORM,this.payload={submissionId:oe}}}class E{constructor(oe,ce,ye,Me,Ee,Ae,Je){this.type=n.INIT_SUBMISSION_FORM,this.payload={collectionId:oe,submissionId:ce,selfUrl:ye,submissionDefinition:Me,sections:Ee,item:Ae,errors:Je}}}class O{constructor(oe){this.type=n.SAVE_FOR_LATER_SUBMISSION_FORM,this.payload={submissionId:oe}}}class b{constructor(oe,ce){this.type=n.SAVE_FOR_LATER_SUBMISSION_FORM_SUCCESS,this.payload={submissionId:oe,submissionObject:ce}}}class P{constructor(oe,ce=!1){this.type=n.SAVE_SUBMISSION_FORM,this.payload={submissionId:oe,isManual:ce}}}class D{constructor(oe,ce,ye,Me){this.type=n.SAVE_SUBMISSION_FORM_SUCCESS,this.payload={submissionId:oe,submissionObject:ce,showNotifications:ye,showErrors:Me}}}class l{constructor(oe){this.type=n.SAVE_SUBMISSION_FORM_ERROR,this.payload={submissionId:oe}}}class C{constructor(oe,ce){this.type=n.SAVE_SUBMISSION_SECTION_FORM,this.payload={submissionId:oe,sectionId:ce}}}class I{constructor(oe,ce,ye){this.type=n.SAVE_SUBMISSION_SECTION_FORM_SUCCESS,this.payload={submissionId:oe,submissionObject:ce,notify:ye}}}class g{constructor(oe){this.type=n.SAVE_SUBMISSION_SECTION_FORM_ERROR,this.payload={submissionId:oe}}}
1class B{constructor(oe,ce,ye,Me,Ee,Ae){this.type=n.RESET_SUBMISSION_FORM,this.payload={collectionId:oe,submissionId:ce,selfUrl:ye,sections:Me,submissionDefinition:Ee,item:Ae}}}class L{constructor(){this.type=n.CANCEL_SUBMISSION_FORM}}class V{constructor(oe,ce){this.type=n.CHANGE_SUBMISSION_COLLECTION,this.payload={submissionId:oe,collectionId:ce}}}class Y{constructor(oe){this.type=n.SAVE_AND_DEPOSIT_SUBMISSION,this.payload={submissionId:oe}}}class X{constructor(oe){this.type=n.DEPOSIT_SUBMISSION,this.payload={submissionId:oe}}}class te{constructor(oe){this.type=n.DEPOSIT_SUBMISSION_SUCCESS,this.payload={submissionId:oe}}}class K{constructor(oe){this.type=n.DEPOSIT_SUBMISSION_ERROR,this.payload={submissionId:oe}}}class ee{constructor(oe){this.type=n.DISCARD_SUBMISSION,this.payload={submissionId:oe}}}class ae{constructor(oe){this.type=n.DISCARD_SUBMISSION_SUCCESS,this.payload={submissionId:oe}}}class Q{constructor(oe){this.type=n.DISCARD_SUBMISSION_ERROR,this.payload={submissionId:oe}}}class j{constructor(oe,ce,ye){this.type=n.SECTION_STATUS_CHANGE,this.payload={submissionId:oe,sectionId:ce,status:ye}}}class k{constructor(oe,ce){this.type=n.SET_ACTIVE_SECTION,this.payload={submissionId:oe,sectionId:ce}}}class G{constructor(oe,ce,ye,Me){this.type=n.NEW_FILE,this.payload={submissionId:oe,sectionId:ce,fileId:ye,data:Me}}}class ie{constructor(oe,ce,ye,Me){this.type=n.EDIT_FILE_DATA,this.payload={submissionId:oe,sectionId:ce,fileId:ye,data:Me}}}class ne{constructor(oe,ce,ye){this.type=n.DELETE_FILE,this.payload={submissionId:oe,sectionId:ce,fileId:ye}}}},35167:(R,c,e)=>{"use strict";e.d(c,{x:()=>t});var t=(()=>{return(n=t||(t={})).HIDDEN="HIDDEN",n.READONLY="READONLY",t;var n})()},78809:(R,c,e)=>{"use strict";e.d(c,{G:()=>h,GY:()=>i,Mb:()=>v,ak:()=>r,fh:()=>E,gd:()=>m,y5:()=>_,y8:()=>p});var t=e(89653),n=e(24702),o=e(67899);function i(O,b,M){return(0,t.P1)(O,P=>{if((0,n.Uh)(P)&&(0,n.Uh)(P[b]))return P[b][M]})}function d(O,b){return(0,t.P1)(O,M=>{if((0,n.Uh)(M)&&(0,n.Uh)(M[b]))return M[b]})}function r(O){return i(o.w,"objects",O)}function p(O,b){return d(_(O,b),"files")}function h(O,b,M){return i(_(O,b),"files",M)}function m(O,b){return i(r(O),"sections",b)}function _(O,b){return d(m(O,b),"data")}function v(O,b){return d(m(O,b),"errorsToShow")}function E(O,b){return d(m(O,b),"serverValidationErrors")}},67899:(R,c,e)=>{"use strict";e.d(c,{L:()=>G,w:()=>ie});var t=e(89653),n=e(24702),o=e(55407),i=e.n(o),d=e(58152),r=e.n(d),a=e(64509),p=e.n(a),h=e(47918),m=e.n(h),_=e(88360);const v=Object.create({});function K(ne,q){return ne||(q?[...q]:void 0)}function ee(ne,q,oe){return(0,n.Uh)(ne[q.payload.submissionId].sections[q.payload.sectionId])?Object.assign({},ne,{[q.payload.submissionId]:Object.assign({},ne[q.payload.submissionId],{sections:Object.assign({},ne[q.payload.submissionId].sections,{[q.payload.sectionId]:Object.assign({},ne[q.payload.submissionId].sections[q.payload.sectionId],{enabled:oe})})})}):ne}const G={objects:function E(ne=v,q){switch(q.type){case _.tI.COMPLETE_INIT_SUBMISSION_FORM:return function l(ne,q){return(0,n.Uh)(ne[q.payload.submissionId])?Object.assign({},ne,{[q.payload.submissionId]:Object.assign({},ne[q.payload.submissionId],{isLoading:!1})}):ne}(ne,q);case _.tI.INIT_SUBMISSION_FORM:return function P(ne,q){const oe=Object.assign({},ne);return oe[q.payload.submissionId]={collection:q.payload.collectionId,definition:q.payload.submissionDefinition.name,selfUrl:q.payload.selfUrl,activeSection:null,sections:Object.create(null),isLoading:!0,savePending:!1,depositPending:!1},oe}(ne,q);case _.tI.RESET_SUBMISSION_FORM:return function D(ne,q){return(0,n.Uh)(ne[q.payload.submissionId])?Object.assign({},ne,{[q.payload.submissionId]:Object.assign({},ne[q.payload.submissionId],{sections:Object.create(null),isLoading:!0})}):ne}(ne,q);case _.tI.CANCEL_SUBMISSION_FORM:return v;case _.tI.SAVE_SUBMISSION_FORM:case _.tI.SAVE_FOR_LATER_SUBMISSION_FORM:case _.tI.SAVE_AND_DEPOSIT_SUBMISSION:case _.tI.SAVE_SUBMISSION_SECTION_FORM:return function C(ne,q){return(0,n.Uh)(ne[q.payload.submissionId])?Object.assign({},ne,{[q.payload.submissionId]:Object.assign({},ne[q.payload.submissionId],{activeSection:ne[q.payload.submissionId].activeSection,sections:ne[q.payload.submissionId].sections,isLoading:ne[q.payload.submissionId].isLoading,savePending:!0})}):ne}(ne,q);case _.tI.SAVE_SUBMISSION_FORM_SUCCESS:case _.tI.SAVE_SUBMISSION_SECTION_FORM_SUCCESS:case _.tI.SAVE_SUBMISSION_FORM_ERROR:case _.tI.SAVE_FOR_LATER_SUBMISSION_FORM_ERROR:case _.tI.SAVE_SUBMISSION_SECTION_FORM_ERROR:return function I(ne,q){return(0,n.Uh)(ne[q.payload.submissionId])?Object.assign({},ne,{[q.payload.submissionId]:Object.assign({},ne[q.payload.submissionId],{savePending:!1})}):ne}(ne,q);case _.tI.CHANGE_SUBMISSION_COLLECTION:return function L(ne,q){return Object.assign({},ne,{[q.payload.submissionId]:Object.assign({},ne[q.payload.submissionId],{collection:q.payload.collectionId})})}(ne,q);case _.tI.DEPOSIT_SUBMISSION:return function g(ne,q){return(0,n.Uh)(ne[q.payload.submissionId])?Object.assign({},ne,{[q.payload.submissionId]:Object.assign({},ne[q.payload.submissionId],{savePending:!1,depositPending:!0})}):ne}(ne,q);case _.tI.DEPOSIT_SUBMISSION_SUCCESS:return v;case _.tI.DEPOSIT_SUBMISSION_ERROR:return function B(ne,q){return(0,n.Uh)(ne[q.payload.submissionId])?Object.assign({},ne,{[q.payload.submissionId]:Object.assign({},ne[q.payload.submissionId],{depositPending:!1})}):ne}(ne,q);case _.tI.DISCARD_SUBMISSION:return ne;case _.tI.DISCARD_SUBMISSION_SUCCESS:return v;case _.tI.DISCARD_SUBMISSION_ERROR:return ne;case _.tI.SET_ACTIVE_SECTION:return function V(ne,q){return(0,n.Uh)(ne[q.payload.submissionId])?Object.assign({},ne,{[q.payload.submissionId]:Object.assign({},ne[q.payload.submissionId],{activeSection:q.payload.sectionId,sections:ne[q.payload.submissionId].sections,isLoading:ne[q.payload.submissionId].isLoading,savePending:ne[q.payload.submissionId].savePending})}):ne}(ne,q);case _.tI.INIT_SECTION:return function Y(ne,q){return(0,n.Uh)(ne[q.payload.submissionId])?Object.assign({},ne,{[q.payload.submissionId]:Object.assign({},ne[q.payload.submissionId],{sections:Object.assign({},ne[q.payload.submissionId].sections,{[q.payload.sectionId]:{header:q.payload.header,config:q.payload.config,mandatory:q.payload.mandatory,sectionType:q.payload.sectionType,visibility:q.payload.visibility,collapsed:!1,enabled:q.payload.enabled,data:q.payload.data,errorsToShow:[],serverValidationErrors:q.payload.errors||[],isLoading:!1,isValid:(0,n.xb)(q.payload.errors)}})})}):ne}(ne,q);case _.tI.SET_SECTION_FORM_ID:return function X(ne,q){return(0,n.Uh)(ne[q.payload.submissionId])?Object.assign({},ne,{[q.payload.submissionId]:Object.assign({},ne[q.payload.submissionId],{sections:Object.assign({},ne[q.payload.submissionId].sections,{[q.payload.sectionId]:{...ne[q.payload.submissionId].sections[q.payload.sectionId],formId:q.payload.formId}})})}):ne}(ne,q);case _.tI.ENABLE_SECTION:return ee(ne,q,!0);case _.tI.UPDATE_SECTION_DATA:return function te(ne,q){return(0,n.UE)(ne[q.payload.submissionId])&&(0,n.UE)(ne[q.payload.submissionId].sections[q.payload.sectionId])?Object.assign({},ne,{[q.payload.submissionId]:Object.assign({},ne[q.payload.submissionId],{sections:Object.assign({},ne[q.payload.submissionId].sections,{[q.payload.sectionId]:Object.assign({},ne[q.payload.submissionId].sections[q.payload.sectionId],{enabled:!0,data:q.payload.data,errorsToShow:q.payload.errorsToShow,serverValidationErrors:q.payload.serverValidationErrors,metadata:K(q.payload.metadata,ne[q.payload.submissionId].sections[q.payload.sectionId].metadata)})})})}):ne}(ne,q);case _.tI.DISABLE_SECTION:return ee(ne,q,!1);case _.tI.SECTION_STATUS_CHANGE:return function ae(ne,q){return(0,n.UE)(ne[q.payload.submissionId])&&(0,n.Uh)(ne[q.payload.submissionId].sections[q.payload.sectionId])?Object.assign({},ne,{[q.payload.submissionId]:Object.assign({},ne[q.payload.submissionId],{sections:Object.assign({},ne[q.payload.submissionId].sections,Object.assign({},{[q.payload.sectionId]:Object.assign({},ne[q.payload.submissionId].sections[q.payload.sectionId],{isValid:q.payload.status})}))})}):ne}(ne,q);case _.tI.NEW_FILE:return function Q(ne,q){const oe=ne[q.payload.submissionId].sections[q.payload.sectionId].data;let ce;return(0,n.o8)(oe.files)?ce={files:[q.payload.data]}:(ce=oe,ce.files.push(q.payload.data)),Object.assign({},ne,{[q.payload.submissionId]:Object.assign({},ne[q.payload.submissionId],{sections:Object.assign({},ne[q.payload.submissionId].sections,{[q.payload.sectionId]:Object.assign({},ne[q.payload.submissionId].sections[q.payload.sectionId],{enabled:!0,data:ce})})})})}(ne,q);case _.tI.EDIT_FILE_DATA:return function j(ne,q){const oe=ne[q.payload.submissionId].sections[q.payload.sectionId].data;if((0,n.Uh)(oe.files)){const ce=r()(oe.files,{uuid:q.payload.fileId});if((0,n.K0)(ce)){const ye=Array.from(oe.files);return ye[ce]=q.payload.data,Object.assign({},ne,{[q.payload.submissionId]:Object.assign({},ne[q.payload.submissionId],{activeSection:ne[q.payload.submissionId].activeSection,sections:Object.assign({},ne[q.payload.submissionId].sections,Object.assign({},{[q.payload.sectionId]:Object.assign({},ne[q.payload.submissionId].sections[q.payload.sectionId],{data:Object.assign({},ne[q.payload.submissionId].sections[q.payload.sectionId].data,{files:ye})})})),isLoading:ne[q.payload.submissionId].isLoading,savePending:ne[q.payload.submissionId].savePending})})}}return ne}(ne,q);case _.tI.DELETE_FILE:return function k(ne,q){const oe=ne[q.payload.submissionId].sections[q.payload.sectionId].data;if((0,n.Uh)(oe.files)){const ce=r()(oe.files,{uuid:q.payload.fileId});if((0,n.K0)(ce)){const ye=Array.from(oe.files);return ye.splice(ce,1),Object.assign({},ne,{[q.payload.submissionId]:Object.assign({},ne[q.payload.submissionId],{sections:Object.assign({},ne[q.payload.submissionId].sections,Object.assign({},{[q.payload.sectionId]:Object.assign({},ne[q.payload.submissionId].sections[q.payload.sectionId],{data:Object.assign({},ne[q.payload.submissionId].sections[q.payload.sectionId].data,{files:ye})})}))})})}}return ne}(ne,q);case _.tI.ADD_SECTION_ERROR:return((ne,q)=>{const{submissionId:oe,sectionId:ce,error:ye}=q.payload;if((0,n.Uh)(ne[oe].sections[ce])){const Me=m()(ne[oe].sections[ce].errorsToShow.concat(ye),p());return Object.assign({},ne,{[oe]:Object.assign({},ne[oe],{activeSection:ne[q.payload.submissionId].activeSection,sections:Object.assign({},ne[oe].sections,{[ce]:Object.assign({},ne[q.payload.submissionId].sections[q.payload.sectionId],{errorsToShow:Me})})})})}return ne})(ne,q);case _.tI.DELETE_SECTION_ERROR:return((ne,q)=>{const{submissionId:oe,sectionId:ce,errors:ye}=q.payload;if((0,n.Uh)(ne[oe].sections[ce])){let Me;return Me=Array.isArray(ye)?i()(ye,ye,p()):ne[oe].sections[ce].errorsToShow.filter(Ee=>Ee.path!==ye.path||!p()(Ee,ye)),Object.assign({},ne,{[oe]:Object.assign({},ne[oe],{sections:Object.assign({},ne[oe].sections,{[ce]:Object.assign({},ne[oe].sections[ce],{errorsToShow:Me})})})})}return ne})(ne,q);case _.tI.REMOVE_SECTION_ERRORS:return function M(ne,q){return(0,n.UE)(ne[q.payload.submissionId])&&(0,n.UE)(ne[q.payload.submissionId].sections[q.payload.sectionId])?Object.assign({},ne,{[q.payload.submissionId]:Object.assign({},ne[q.payload.submissionId],{sections:Object.assign({},ne[q.payload.submissionId].sections,{[q.payload.sectionId]:Object.assign({},ne[q.payload.submissionId].sections[q.payload.sectionId],{errorsToShow:[]})})})}):ne}(ne,q);default:return ne}}},ie=(0,t.ZF)("submission")},86421:(R,c,e)=>{"use strict";e.d(c,{b:()=>Q});var t=e(80529),n=e(39646),o=e(5963),i=e(54004),d=e(70262),r=e(40367),a=e(39300),p=e(68675),h=e(71884),m=e(95698),_=e(18505),v=e(24351),E=e(89653),O=e(67899),b=e(24702),M=e(88360),P=e(78809),D=e(17539),l=e(91511),C=e(5360),I=e(46418),g=e(58577),B=e(31241),L=e(5164),V=e(21540),Y=e(44459),X=e(94650),te=e(34793),K=e(89383);let Q=(()=>{class j{constructor(G,ie,ne,q,oe,ce,ye,Me,Ee){this.notificationsService=G,this.restService=ie,this.router=ne,this.routeService=q,this.store=oe,this.translate=ce,this.searchService=ye,this.requestService=Me,this.jsonPatchOperationService=Ee,this.workspaceLinkPath="workspaceitems",this.workflowLinkPath="workflowitems"}changeSubmissionCollection(G,ie){this.store.dispatch(new M.AZ(G,ie))}getSubmissionCollectionId(G){return this.store.pipe((0,E.Ys)(function ae(j){return(0,E.P1)(function ee(j){return(0,E.P1)(O.w,k=>k.objects[j])}(j),k=>k?.collection)}(G)))}createSubmission(G){return this.restService.postToEndpoint(this.workspaceLinkPath,{},null,null,G).pipe((0,i.U)(ie=>ie[0]),(0,d.K)(()=>(0,n.of)({})))}createSubmissionFromExternalSource(G,ie){const ne=Object.create({});let q=new t.WM;
1return q=q.append("Content-Type","text/uri-list"),ne.headers=q,this.restService.postToEndpoint(this.workspaceLinkPath,G,null,ne,ie)}depositSubmission(G){const ie=Object.create({});let ne=new t.WM;return ne=ne.append("Content-Type","text/uri-list"),ie.headers=ne,this.restService.postToEndpoint(this.workflowLinkPath,G,null,ie)}discardSubmission(G){return this.restService.deleteById(G)}dispatchInit(G,ie,ne,q,oe,ce,ye){this.store.dispatch(new M.Xq(G,ie,ne,q,oe,ce,ye))}dispatchDeposit(G){this.store.dispatch(new M.sd(G))}dispatchDiscard(G){this.store.dispatch(new M.EL(G))}dispatchSave(G,ie){this.getSubmissionSaveProcessingStatus(G).pipe((0,r.s)(ne=>!ne)).subscribe(()=>{this.store.dispatch(new M.gv(G,ie))})}dispatchSaveForLater(G){this.store.dispatch(new M.ZG(G))}dispatchSaveSection(G,ie){this.store.dispatch(new M.QV(G,ie))}getActiveSectionId(G){return this.getSubmissionObject(G).pipe((0,i.U)(ie=>ie.activeSection))}getSubmissionObject(G){return this.store.select((0,P.ak)(G)).pipe((0,a.h)(ie=>(0,b.pT)(ie)))}getSubmissionSections(G){return this.getSubmissionObject(G).pipe((0,r.s)(ie=>(0,b.pT)(ie.sections)&&!ie.isLoading),(0,i.U)(ie=>ie.sections),(0,i.U)(ie=>{const ne=[];return Object.keys(ie).filter(q=>!this.isSectionHidden(ie[q])).forEach(q=>{const oe=Object.create({});oe.config=ie[q].config,oe.mandatory=ie[q].mandatory,oe.data=ie[q].data,oe.errorsToShow=ie[q].errorsToShow,oe.serverValidationErrors=ie[q].serverValidationErrors,oe.header=ie[q].header,oe.id=q,oe.sectionType=ie[q].sectionType,ne.push(oe)}),ne}),(0,p.O)([]),(0,h.x)())}getDisabledSectionsList(G){return this.getSubmissionObject(G).pipe((0,a.h)(ie=>(0,b.pT)(ie.sections)&&!ie.isLoading),(0,i.U)(ie=>ie.sections),(0,i.U)(ie=>{const ne=[];return Object.keys(ie).filter(q=>!this.isSectionHidden(ie[q])).filter(q=>!ie[q].enabled).forEach(q=>{const oe=Object.create({});oe.header=ie[q].header,oe.id=q,ne.push(oe)}),ne}),(0,p.O)([]),(0,h.x)())}getSubmissionObjectLinkName(){const G=this.router.routerState.snapshot.url;return G.startsWith("/workspaceitems")||G.startsWith("/submit")?this.workspaceLinkPath:G.startsWith("/workflowitems")?this.workflowLinkPath:"edititems"}getSubmissionScope(){let G;switch(this.getSubmissionObjectLinkName()){case this.workspaceLinkPath:G=l.S.WorkspaceItem;break;case this.workflowLinkPath:G=l.S.WorkflowItem}return G}getSubmissionStatus(G){return this.store.select(O.w).pipe((0,i.U)(ie=>ie.objects[G]),(0,a.h)(ie=>(0,b.pT)(ie)&&(0,b.pT)(ie.sections)),(0,i.U)(ie=>ie.sections),(0,i.U)(ie=>{const ne=[];return(0,b.pT)(ie)&&Object.keys(ie).filter(q=>ie.hasOwnProperty(q)).filter(q=>!this.isSectionHidden(ie[q])).filter(q=>ie[q].enabled).filter(q=>!1===ie[q].isValid).forEach(q=>{ne.push(ie[q].isValid)}),!(0,b.xb)(ie)&&(0,b.xb)(ne)}),(0,h.x)(),(0,p.O)(!1))}getSubmissionSaveProcessingStatus(G){return this.getSubmissionObject(G).pipe((0,i.U)(ie=>ie.savePending),(0,h.x)(),(0,p.O)(!1))}getSubmissionDepositProcessingStatus(G){return this.getSubmissionObject(G).pipe((0,i.U)(ie=>ie.depositPending),(0,h.x)(),(0,p.O)(!1))}hasUnsavedModification(){return this.jsonPatchOperationService.hasPendingOperations("sections")}isSectionHidden(G){return(0,b.pT)(G.visibility)&&"HIDDEN"===G.visibility.main&&"HIDDEN"===G.visibility.other}isSubmissionLoading(G){return this.getSubmissionObject(G).pipe((0,i.U)(ie=>ie.isLoading),(0,h.x)())}notifyNewSection(G,ie,ne){const q=this.translate.instant("submission.sections.general.metadata-extracted-new-section",{sectionId:ie});this.notificationsService.info(null,q,null,!0)}redirectToMyDSpace(){this.searchService.getEndpoint().pipe((0,m.q)(1),(0,_.b)(G=>this.requestService.removeByHrefSubstring(G)),(0,v.b)(()=>
1this.routeService.getPreviousUrl().pipe((0,m.q)(1),(0,_.b)(G=>{(0,b.xb)(G)||!G.startsWith("/mydspace")?this.router.navigate(["/mydspace"]):this.router.navigateByUrl(G)})))).subscribe()}resetAllSubmissionObjects(){this.store.dispatch(new M.Qe)}resetSubmissionObject(G,ie,ne,q,oe,ce){this.store.dispatch(new M.Nq(G,ie,ne,oe,q,ce))}retrieveSubmission(G){return this.restService.getDataById(this.getSubmissionObjectLinkName(),G).pipe((0,r.s)(ie=>(0,b.pT)(ie)),(0,i.U)(ie=>(0,g.AC)(ie[0])),(0,d.K)(ie=>(0,g.DW)(ie.errorMessage,ie.statusCode)))}setActiveSection(G,ie){this.store.dispatch(new M.oq(G,ie))}startAutoSave(G){if(this.stopAutoSave(),0===V.N.submission.autosave.timer)return;const ie=V.N.submission.autosave.timer;this.timer$=(0,o.H)(ie,ie),this.autoSaveSub=this.timer$.subscribe(()=>this.store.dispatch(new M.gv(G)))}stopAutoSave(){(0,b.Uh)(this.autoSaveSub)&&(this.autoSaveSub.unsubscribe(),this.autoSaveSub=null)}}return j.\u0275fac=function(G){return new(G||j)(X.\u0275\u0275inject(I.T),X.\u0275\u0275inject(D.F),X.\u0275\u0275inject(te.F0),X.\u0275\u0275inject(C.MZ),X.\u0275\u0275inject(E.yh),X.\u0275\u0275inject(K.sK),X.\u0275\u0275inject(L.o),X.\u0275\u0275inject(B.s),X.\u0275\u0275inject(Y.E))},j.\u0275prov=X.\u0275\u0275defineInjectable({token:j,factory:j.\u0275fac}),j})()},62367:(R,c,e)=>{"use strict";e.d(c,{P:()=>L});var t=e(94650),n=e(28870),o=e(68285),i=e(54004),d=e(39300),r=e(63900),a=e(24702),p=e(61135),h=e(17445),m=e(60515),_=e(30298),E=e(36895),O=e(46418),b=e(89383);function M(V,Y){1&V&&(t.\u0275\u0275elementStart(0,"span"),t.\u0275\u0275text(1),t.\u0275\u0275pipe(2,"translate"),t.\u0275\u0275elementEnd()),2&V&&(t.\u0275\u0275advance(1),t.\u0275\u0275textInterpolate1(" ",t.\u0275\u0275pipeBind1(2,1,"system-wide-alert-banner.countdown.prefix")," "))}const P=function(V){return{days:V}};function D(V,Y){if(1&V&&(t.\u0275\u0275elementStart(0,"span"),t.\u0275\u0275text(1),t.\u0275\u0275pipe(2,"translate"),t.\u0275\u0275pipe(3,"async"),t.\u0275\u0275elementEnd()),2&V){const X=t.\u0275\u0275nextContext(2);t.\u0275\u0275advance(1),t.\u0275\u0275textInterpolate1(" ",t.\u0275\u0275pipeBind2(2,1,"system-wide-alert-banner.countdown.days",t.\u0275\u0275pureFunction1(6,P,t.\u0275\u0275pipeBind1(3,4,X.countDownDays)))," ")}}const l=function(V){return{hours:V}};function C(V,Y){if(1&V&&(t.\u0275\u0275elementStart(0,"span"),t.\u0275\u0275text(1),t.\u0275\u0275pipe(2,"translate"),t.\u0275\u0275pipe(3,"async"),t.\u0275\u0275elementEnd()),2&V){const X=t.\u0275\u0275nextContext(2);t.\u0275\u0275advance(1),t.\u0275\u0275textInterpolate1(" ",t.\u0275\u0275pipeBind2(2,1,"system-wide-alert-banner.countdown.hours",t.\u0275\u0275pureFunction1(6,l,t.\u0275\u0275pipeBind1(3,4,X.countDownHours)))," ")}}const I=function(V){return{minutes:V}};function g(V,Y){if(1&V&&(t.\u0275\u0275elementStart(0,"span"),t.\u0275\u0275text(1),t.\u0275\u0275pipe(2,"translate"),t.\u0275\u0275pipe(3,"async"),t.\u0275\u0275elementEnd()),2&V){const X=t.\u0275\u0275nextContext(2);t.\u0275\u0275advance(1),t.\u0275\u0275textInterpolate1(" ",t.\u0275\u0275pipeBind2(2,1,"system-wide-alert-banner.countdown.minutes",t.\u0275\u0275pureFunction1(6,I,t.\u0275\u0275pipeBind1(3,4,X.countDownMinutes)))," ")}}function B(V,Y){if(1&V&&(t.\u0275\u0275elementStart(0,"div")(1,"div",1)(2,"div",2)(3,"span",3),t.\u0275\u0275template(4,M,3,3,"span",0),t.\u0275\u0275pipe(5,"async"),t.\u0275\u0275pipe(6,"async"),t.\u0275\u0275pipe(7,"async"),t.\u0275\u0275template(8,D,4,8,"span",0),t.\u0275\u0275pipe(9,"async"),t.\u0275\u0275template(10,C,4,8,"span",0),t.\u0275\u0275pipe(11,"async"),t.\u0275\u0275pipe(12,"async"),t.\u0275\u0275template(13,g,4,8,"span",0),t.\u0275\u0275pipe(14,"async"),t.\u0275\u0275pipe(15,"async"),t.\u0275\u0275pipe(16,"async"),t.\u0275\u0275elementEnd(),t.\u0275\u0275element(17,"span",4),t.\u0275\u0275pipe(18,"async"),t.\u0275\u0275elementEnd()()()),2&V){const X=t.\u0275\u0275nextContext();let te;t.\u0275\u0275advance(4),t.\u0275\u0275property("ngIf",t.\u0275\u0275pipeBind1(5,5,X.countDownDays)>0||t.\u0275\u0275pipeBind1(6,7,X.countDownHours)>0||t.\u0275\u0275pipeBind1(7,9,X.countDownMinutes)>0),t.\u0275\u0275advance(4),t.\u0275\u0275property("ngIf",t.\u0275\u0275pipeBind1(9,11,X.countDownDays)>0),t.\u0275\u0275advance(2),t.\u0275\u0275property("ngIf",t.\u0275\u0275pipeBind1(11,13,X.countDownDays)>0||t.\u0275\u0275pipeBind1(12,15,X.countDownHours)>0),t.\u0275\u0275advance(3),t.\u0275\u0275property("ngIf",t.\u0275\u0275pipeBind1(14,17,X.countDownDays)>0||t.\u0275\u0275pipeBind1(15,19,X.countDownHours)>0||t.\u0275\u0275pipeBind1(16,21,X.countDownMinutes)>0),t.\u0275\u0275advance(4),t.\u0275\u0275property("innerHTML",null==(te=t.\u0275\u0275pipeBind1(18,23,X.systemWideAlert$))?null:te.message,t.\u0275\u0275sanitizeHtml)}}let L=(()=>{class V{constructor(X,te,K){this.platformId=X,this.systemWideAlertDataService=te,this.notificationsService=K,this.systemWideAlert$=new p.X(void 0),this.countDownMinutes=new p.X(0),this.countDownHours=new p.X(0),this.countDownDays=new p.X(0),this.subscriptions=[]}ngOnInit(){this.subscriptions.push(this.systemWideAlertDataService.searchBy("active").pi
1pe((0,o.mc)(),(0,i.U)(X=>X.page),(0,d.h)(X=>(0,a.UE)(X)),(0,i.U)(X=>X[0])).subscribe(X=>{this.systemWideAlert$.next(X)})),this.subscriptions.push(this.systemWideAlert$.pipe((0,r.w)(X=>{if((0,a.Uh)(X)&&(0,a.Uh)(X.countdownTo)){const K=(0,_.zonedTimeToUtc)(X.countdownTo,"UTC").getTime()-(new Date).getTime();if(K>0)return this.allocateTimeUnits(K),(0,E.NF)(this.platformId)?(0,h.F)(1e3):m.E}return this.countDownDays.next(0),this.countDownHours.next(0),this.countDownMinutes.next(0),m.E})).subscribe(()=>{this.setTimeDifference(this.systemWideAlert$.getValue().countdownTo)}))}setTimeDifference(X){const K=(0,_.zonedTimeToUtc)(X,"UTC").getTime()-(new Date).getTime();this.allocateTimeUnits(K)}allocateTimeUnits(X){const te=Math.floor(X/6e4%60),K=Math.floor(X/36e5%24),ee=Math.floor(X/864e5);this.countDownMinutes.next(te),this.countDownHours.next(K),this.countDownDays.next(ee)}ngOnDestroy(){this.subscriptions.forEach(X=>{(0,a.Uh)(X)&&X.unsubscribe()})}}return V.\u0275fac=function(X){return new(X||V)(t.\u0275\u0275directiveInject(t.PLATFORM_ID),t.\u0275\u0275directiveInject(n.C),t.\u0275\u0275directiveInject(O.T))},V.\u0275cmp=t.\u0275\u0275defineComponent({type:V,selectors:[["ds-system-wide-alert-banner"]],decls:2,vars:3,consts:[[4,"ngIf"],[1,"rounded-0","alert","alert-warning","w100","m-0","px-1"],[1,"container"],[1,"font-weight-bold"],[3,"innerHTML"]],template:function(X,te){if(1&X&&(t.\u0275\u0275template(0,B,19,25,"div",0),t.\u0275\u0275pipe(1,"async")),2&X){let K;t.\u0275\u0275property("ngIf",null==(K=t.\u0275\u0275pipeBind1(1,1,te.systemWideAlert$))?null:K.active)}},dependencies:[E.O5,E.Ov,b.X$]}),V})()},84932:(R,c,e)=>{"use strict";e.r(c),e.d(c,{SystemWideAlertModule:()=>ye});var b,t=e(24006),n=e(44186),o=e(28870),i=e(34793),d=e(97874),r=e(68285),a=e(54004),p=e(39300),h=e(70655),m=e(29923),_=e(19782),v=e(3879),E=e(63037),O=e(95109);let M=((b=class{}).type=O.s,b);(0,h.__decorate)([E.OJ,m.autoserialize,(0,h.__metadata)("design:type",v._)],M.prototype,"type",void 0),(0,h.__decorate)([m.autoserialize,(0,h.__metadata)("design:type",String)],M.prototype,"alertId",void 0),(0,h.__decorate)([m.autoserialize,(0,h.__metadata)("design:type",String)],M.prototype,"message",void 0),(0,h.__decorate)([m.autoserialize,(0,h.__metadata)("design:type",String)],M.prototype,"countdownTo",void 0),(0,h.__decorate)([m.autoserialize,(0,h.__metadata)("design:type",Boolean)],M.prototype,"active",void 0),(0,h.__decorate)([m.deserialize,(0,h.__metadata)("design:type",Object)],M.prototype,"_links",void 0),M=(0,h.__decorate)([_.KB],M);var P=e(24702),D=e(61135),l=e(30298),C=e(46418),I=e(31241),g=e(94650),B=e(89383),L=e(36895),V=e(25575),Y=e(48568),X=e(9769);function te(Me,Ee){1&Me&&(g.\u0275\u0275elementStart(0,"span"),g.\u0275\u0275text(1),g.\u0275\u0275pipe(2,"translate"),g.\u0275\u0275elementEnd()),2&Me&&(g.\u0275\u0275advance(1),g.\u0275\u0275textInterpolate1(" ",g.\u0275\u0275pipeBind1(2,1,"system-wide-alert.form.error.message")," "))}function K(Me,Ee){if(1&Me&&(g.\u0275\u0275elementStart(0,"div",22),g.\u0275\u0275template(1,te,3,3,"span",14),g.\u0275\u0275elementEnd()),2&Me){const Ae=g.\u0275\u0275nextContext();g.\u0275\u0275advance(1),g.\u0275\u0275property("ngIf",Ae.formMessage.errors)}}function ee(Me,Ee){if(1&Me){const Ae=g.\u0275\u0275getCurrentView();g.\u0275\u0275elementStart(0,"div")(1,"div",7)(2,"div",23)(3,"div",24)(4,"input",25,26),g.\u0275\u0275listener("ngModelChange",function(_t){g.\u0275\u0275restoreView(Ae);const It=g.\u0275\u0275nextContext();return g.\u0275\u0275resetView(It.date=_t)})("ngModelChange",function(){g.\u0275\u0275restoreView(Ae);const _t=g.\u0275\u0275nextContext();return g.\u0275\u0275resetView(_t.updatePreviewTime())}),g.\u0275\u0275elementEnd(),g.\u0275\u0275elementStart(6,"button",27),g.\u0275\u0275listener("click",function(){g.\u0275\u0275restoreView(Ae);const _t=g.\u0275\u0275reference(5);return g.\u0275\u0275resetView(_t.toggle())}),g.\u0275\u0275pipe(7,"translate"),g.\u0275\u0275elementEnd()()(),g.\u0275\u0275elementStart(8,"div",28)(9,"div",24)(10,"ngb-timepicker",29),g.\u0275\u0275listener("ngModelChange",function(_t){g.\u0275\u0275restoreView(Ae);const It=g.\u0275\u0275nextContext();
1return g.\u0275\u0275resetView(It.time=_t)})("ngModelChange",function(){g.\u0275\u0275restoreView(Ae);const _t=g.\u0275\u0275nextContext();return g.\u0275\u0275resetView(_t.updatePreviewTime())}),g.\u0275\u0275elementEnd()()(),g.\u0275\u0275elementStart(11,"div",30)(12,"div",24)(13,"ngb-timepicker",29),g.\u0275\u0275listener("ngModelChange",function(_t){g.\u0275\u0275restoreView(Ae);const It=g.\u0275\u0275nextContext();return g.\u0275\u0275resetView(It.time=_t)})("ngModelChange",function(){g.\u0275\u0275restoreView(Ae);const _t=g.\u0275\u0275nextContext();return g.\u0275\u0275resetView(_t.updatePreviewTime())}),g.\u0275\u0275elementEnd()()()()()}if(2&Me){const Ae=g.\u0275\u0275nextContext();g.\u0275\u0275advance(4),g.\u0275\u0275property("ngModel",Ae.date)("minDate",Ae.minDate),g.\u0275\u0275advance(2),g.\u0275\u0275attribute("aria-label",g.\u0275\u0275pipeBind1(7,5,"system-wide-alert-form.select-date-by-calendar")),g.\u0275\u0275advance(4),g.\u0275\u0275property("ngModel",Ae.time),g.\u0275\u0275advance(3),g.\u0275\u0275property("ngModel",Ae.time)}}function ae(Me,Ee){1&Me&&(g.\u0275\u0275elementStart(0,"span"),g.\u0275\u0275text(1),g.\u0275\u0275pipe(2,"translate"),g.\u0275\u0275elementEnd()),2&Me&&(g.\u0275\u0275advance(1),g.\u0275\u0275textInterpolate1(" ",g.\u0275\u0275pipeBind1(2,1,"system-wide-alert-banner.countdown.prefix")," "))}const Q=function(Me){return{days:Me}};function j(Me,Ee){if(1&Me&&(g.\u0275\u0275elementStart(0,"span"),g.\u0275\u0275text(1),g.\u0275\u0275pipe(2,"translate"),g.\u0275\u0275elementEnd()),2&Me){const Ae=g.\u0275\u0275nextContext(2);g.\u0275\u0275advance(1),g.\u0275\u0275textInterpolate1(" ",g.\u0275\u0275pipeBind2(2,1,"system-wide-alert-banner.countdown.days",g.\u0275\u0275pureFunction1(4,Q,Ae.previewDays))," ")}}const k=function(Me){return{hours:Me}};function G(Me,Ee){if(1&Me&&(g.\u0275\u0275elementStart(0,"span"),g.\u0275\u0275text(1),g.\u0275\u0275pipe(2,"translate"),g.\u0275\u0275elementEnd()),2&Me){const Ae=g.\u0275\u0275nextContext(2);g.\u0275\u0275advance(1),g.\u0275\u0275textInterpolate1(" ",g.\u0275\u0275pipeBind2(2,1,"system-wide-alert-banner.countdown.hours",g.\u0275\u0275pureFunction1(4,k,Ae.previewHours))," ")}}const ie=function(Me){return{minutes:Me}};function ne(Me,Ee){if(1&Me&&(g.\u0275\u0275elementStart(0,"span"),g.\u0275\u0275text(1),g.\u0275\u0275pipe(2,"translate"),g.\u0275\u0275elementEnd()),2&Me){const Ae=g.\u0275\u0275nextContext(2);g.\u0275\u0275advance(1),g.\u0275\u0275textInterpolate1(" ",g.\u0275\u0275pipeBind2(2,1,"system-wide-alert-banner.countdown.minutes",g.\u0275\u0275pureFunction1(4,ie,Ae.previewMinutes))," ")}}function q(Me,Ee){if(1&Me&&(g.\u0275\u0275elementStart(0,"div")(1,"div",7)(2,"div",5)(3,"label"),g.\u0275\u0275text(4),g.\u0275\u0275pipe(5,"translate"),g.\u0275\u0275elementEnd()()(),g.\u0275\u0275elementStart(6,"div",31)(7,"span",32),g.\u0275\u0275template(8,ae,3,3,"span",14),g.\u0275\u0275template(9,j,3,6,"span",14),g.\u0275\u0275template(10,G,3,6,"span",14),g.\u0275\u0275template(11,ne,3,6,"span",14),g.\u0275\u0275elementEnd(),g.\u0275\u0275element(12,"span",33),g.\u0275\u0275elementEnd()()),2&Me){const Ae=g.\u0275\u0275nextContext();g.\u0275\u0275advance(4),g.\u0275\u0275textInterpolate(g.\u0275\u0275pipeBind1(5,6,"system-wide-alert.form.label.preview")),g.\u0275\u0275advance(4),g.\u0275\u0275property("ngIf",Ae.previewDays>0||Ae.previewHours>0||Ae.previewMinutes>0),g.\u0275\u0275advance(1),g.\u0275\u0275property("ngIf",Ae.previewDays>0),g.\u0275\u0275advance(1),g.\u0275\u0275property("ngIf",Ae.previewDays>0||Ae.previewHours>0),g.\u0275\u0275advance(1),g.\u0275\u0275property("ngIf",Ae.previewDays>0||Ae.previewHours>0||Ae.previewMinutes>0),g.\u0275\u0275advance(1),g.\u0275\u0275property("innerHTML",Ae.formMessage.value,g.\u0275\u0275sanitizeHtml)}}let oe=(()=>{class Me{constructor(Ae,Je,_t,It,it){this.systemWideAlertDataService=Ae,this.notificationsService=Je,this.router=_t,this.requestService=It,this.translateService=it,this.counterEnabled$=new D.X(!1)}ngOnInit(){this.systemWideAlert$=this.systemWideAlertDataService.findAll(
1).pipe((0,r.hC)(),(0,a.U)(Je=>{if(Je.hasSucceeded)return Je.payload;this.notificationsService.error("system-wide-alert-form.retrieval.error")}),(0,a.U)(Je=>Je.page),(0,p.h)(Je=>(0,P.UE)(Je)),(0,a.U)(Je=>Je[0])),this.createForm();const Ae=new Date;this.minDate={year:Ae.getFullYear(),month:Ae.getMonth()+1,day:Ae.getDate()},this.systemWideAlert$.subscribe(Je=>{this.currentAlert=Je,this.initFormValues(Je)})}createForm(){this.alertForm=(new t.QS).group({formMessage:new t.p4("",{validators:[t.kI.required]}),formActive:new t.p4(!1)}),this.setDateTime(new Date)}initFormValues(Ae){this.formMessage.patchValue(Ae.message),this.formActive.patchValue(Ae.active);const Je=(0,l.zonedTimeToUtc)(Ae.countdownTo,"UTC");Je.getTime()-(new Date).getTime()>0&&(this.counterEnabled$.next(!0),this.setDateTime(Je))}setActive(Ae){this.formActive.patchValue(Ae),this.save(!1)}setCounterEnabled(Ae){this.counterEnabled$.next(Ae),Ae?this.updatePreviewTime():(this.previewMinutes=0,this.previewHours=0,this.previewDays=0)}setDateTime(Ae){this.time={hour:Ae.getHours(),minute:Ae.getMinutes()},this.date={year:Ae.getFullYear(),month:Ae.getMonth()+1,day:Ae.getDate()},this.updatePreviewTime()}updatePreviewTime(){const Je=new Date(this.date.year,this.date.month-1,this.date.day,this.time.hour,this.time.minute).getTime()-(new Date).getTime();this.allocateTimeUnits(Je)}allocateTimeUnits(Ae){this.previewMinutes=Math.floor(Ae/6e4%60),this.previewHours=Math.floor(Ae/36e5%24),this.previewDays=Math.floor(Ae/864e5)}get formMessage(){return this.alertForm.get("formMessage")}get formActive(){return this.alertForm.get("formActive")}save(Ae=!0){const Je=new M;if(Je.message=this.formMessage.value,Je.active=this.formActive.value,this.counterEnabled$.getValue()){const _t=new Date(this.date.year,this.date.month-1,this.date.day,this.time.hour,this.time.minute);Je.countdownTo=(0,l.utcToZonedTime)(_t,"UTC").toUTCString()}else Je.countdownTo=null;if(this.alertForm.valid)if((0,P.Uh)(this.currentAlert)){const _t=Object.assign(new M,this.currentAlert,Je);this.handleResponse(this.systemWideAlertDataService.put(_t),"system-wide-alert.form.update",Ae)}else this.handleResponse(this.systemWideAlertDataService.create(Je),"system-wide-alert.form.create",Ae)}handleResponse(Ae,Je,_t){Ae.pipe((0,r.hC)()).subscribe(It=>{It.hasSucceeded?(this.notificationsService.success(this.translateService.get(`${Je}.success`)),this.requestService.setStaleByHrefSubstring("systemwidealerts"),_t&&this.back()):this.notificationsService.error(this.translateService.get(`${Je}.error`,It.errorMessage))})}back(){this.router.navigate(["/home"])}}return Me.\u0275fac=function(Ae){return new(Ae||Me)(g.\u0275\u0275directiveInject(o.C),g.\u0275\u0275directiveInject(C.T),g.\u0275\u0275directiveInject(i.F0),g.\u0275\u0275directiveInject(I.s),g.\u0275\u0275directiveInject(B.sK))},Me.\u0275cmp=g.\u0275\u0275defineComponent({type:Me,selectors:[["ds-system-wide-alert-form"]],decls:43,vars:41,consts:[[1,"container"],["id","header"],[3,"formGroup"],[1,"form-group"],[1,"row","mb-2"],[1,"col"],[3,"checkedLabel","uncheckedLabel","checked","change"],[1,"row"],["for","formMessage"],["id","formMessage","rows","5","formControlName","formMessage",3,"className"],["class","invalid-feedback show-feedback",4,"ngIf"],[1,"col","mb-2","d-flex","align-items-end"],["size","small",3,"ariaLabel","checked","change"],[1,"ml-2"],[4,"ngIf"],[1,"mb-2"],[1,"text-muted"],[1,"btn-row","float-right","space-children-mr","mt-2"],[1,"btn","btn-outline-secondary",3,"click"],[1,"fas","fa-arrow-left"],[1,"btn","btn-primary",3,"dsBtnDisabled","click"],[1,"fa","fa-save"],[1,"invalid-feedback","show-feedback"],[1,"col-sm-12","col-md-6"],[1,"input-group"],["placeholder","yyyy-mm-dd","name","dp","ngbDatepicker","",1,"form-control",3,"ngModel","minDate","ngModelChange"],["d","ngbDatepicker"],["type","button",1,"btn","btn-outline-secondary","fas","fa-calendar",3,"click"],[1,"col-12","d-md-none"],[3,"ngModel","ngModelChange"],[1,"d-none","d-md-block","col-md-6","timepicker-margin"],[1,"rounded-0","alert","alert-warning"],[1,"font-weight-bold"],[3,"innerHTML"]],template:function(Ae,Je){1&Ae&&(g.\u0275\u0275elementStart(0,"div",0)(1,"h1",1),g.\u0275\u0275text(2),g.\u0275\u0275pipe(3,"translate"),g.\u0275\u0275elementEnd(),g.\u0275\u0275elementStart(4,"div",2)(5,"div",3)(6,"div",4)(7,"div",5)(8,"ui-switch",6),g.\u0275\u0275listener("change",function(It){return Je.setActive(It)}),g.\u0275\u0275pipe(9,"translate"),g.\u0275\u0275pipe(10,"translate"),g.\u0275\u0275elementEnd()()(),g.\u0275\u0275elementStart(11,"div",7)(12,"div",5)(13,"label",8),g.\u0275\u0275text(14),g.\u0275\u0275pipe(15,"translate"),g.\u0275\u0275elementEnd(),g.\u0275\u0275elementStart(16,"textarea",9),g.\u0275\u0275text(17," "),g.\u0275\u0275elementEnd(),g.\u0275\u0275template(18,K,2,1,"div",10),g.\u0275\u0275elementEnd()()()(),g.\u0275\u0275elementStart(19,"div",7)(20,"div",11)(21,"ui-switch",12),g.\u0275\u0275listener("change",function(It){return Je.setCounterEnabled(It)}),g.\u0275\u0275pipe(22,"translate"),g.\u0275\u0275pipe(23,"async"),g.\u0275\u0275elementEnd(),g.\u0275\u0275elementStart(24,"span",13),g.\u0275\u0275text(25),g.\u0275\u0275pipe(26,"translate"),g.\u0275\u0275elementEnd()()(),g.\u0275\u0275template(27,ee,14,7,"div",14),g.\u0275\u0275pipe(28,"async"),g.\u0275\u0275elementStart(29,"div",15)(30,"span",16),g.\u0275\u0275text(31),g.\u0275\u0275pipe(32,"translate"),g.\u0275\u0275elementEnd()(),g.\u0275\u0275template(33,q,13,8,"div",14),g.\u0275\u0275elementStart(34,"div",17)(35,"button",18),g.\u0275\u0275listener("click",function(){return Je.back()}),g.\u0275\u0275element(36,"i",19),g.\u0275\u0275text(37),g.\u0275\u0275pipe(38,"translate"),g.\u0275\u0275elementEnd(),g.\u0275\u0275elementStart(39,"button",20),g.\u0275\u0275listener("click",function(){return Je.save()}),g.\u0275\u0275element(40,"i",21),g.\u0275\u0275text(41),g.\u0275\u0275pipe(42,"translate"),g.\u0275\u0275elementEnd()()()),2&Ae&&(g.\u0275\u0275advance(2),g.\u0275\u0275textInterpolate(g.\u0275\u0275pipeBind1(3,19,"system-wide-alert.form.header")),g.\u0275\u0275advance(2),g.\u0275\u0275classMap("ng-invalid"),g.\u0275\u0275property("formGroup",Je.alertForm),g.\u0275\u0275advance(4),g.\u0275\u0275property("checkedLabel",g.\u0275\u0275pipeBind1(9,21,"system-wide-alert.form.label.active"))("uncheckedLabel",g.\u0275\u0275pipeBind1(10,23,"system-wide-alert.form.label.inactive"))("checked",Je.formActive.value),g.\u0275\u0275advance(6),g.\u0275\u0275textInterpolate(g.\u0275\u0275pipeBind1(15,25,"system-wide-alert.form.label.message")),g.\u0275\u0275advance(2),g.\u0275\u0275property("className",Je.formMessage.invali
1d&&(Je.formMessage.dirty||Je.formMessage.touched)?"form-control is-invalid":"form-control"),g.\u0275\u0275advance(2),g.\u0275\u0275property("ngIf",Je.formMessage.invalid&&(Je.formMessage.dirty||Je.formMessage.touched)),g.\u0275\u0275advance(3),g.\u0275\u0275property("ariaLabel",g.\u0275\u0275pipeBind1(22,27,"system-wide-alert.form.label.countdownTo.enable"))("checked",g.\u0275\u0275pipeBind1(23,29,Je.counterEnabled$)),g.\u0275\u0275advance(4),g.\u0275\u0275textInterpolate(g.\u0275\u0275pipeBind1(26,31,"system-wide-alert.form.label.countdownTo.enable")),g.\u0275\u0275advance(2),g.\u0275\u0275property("ngIf",g.\u0275\u0275pipeBind1(28,33,Je.counterEnabled$)),g.\u0275\u0275advance(4),g.\u0275\u0275textInterpolate(g.\u0275\u0275pipeBind1(32,35,"system-wide-alert.form.label.countdownTo.hint")),g.\u0275\u0275advance(2),g.\u0275\u0275property("ngIf",Je.formMessage.value),g.\u0275\u0275advance(4),g.\u0275\u0275textInterpolate1(" ",g.\u0275\u0275pipeBind1(38,37,"system-wide-alert.form.cancel")," "),g.\u0275\u0275advance(2),g.\u0275\u0275property("dsBtnDisabled",Je.alertForm.invali
1d),g.\u0275\u0275advance(2),g.\u0275\u0275textInterpolate1(" ",g.\u0275\u0275pipeBind1(42,39,"system-wide-alert.form.save")," "))},dependencies:[t.Fj,t.JJ,t.JL,t.On,L.O5,t.sg,t.u,V.v,Y.o,X.Pm,X.J4,L.Ov,B.X$],styles:[".timepicker-margin[_ngcontent-%COMP%]{margin-top:-38px}"]}),Me})(),ce=(()=>{class Me{}return Me.\u0275fac=function(Ae){return new(Ae||Me)},Me.\u0275mod=g.\u0275\u0275defineNgModule({type:Me}),Me.\u0275inj=g.\u0275\u0275defineInjector({imports:[i.Bz.forChild([{path:"",canActivate:[d.X],component:oe}])]}),Me})(),ye=(()=>{class Me{}return Me.\u0275fac=function(Ae){return new(Ae||Me)},Me.\u0275mod=g.\u0275\u0275defineNgModule({type:Me}),Me.\u0275inj=g.\u0275\u0275defineInjector({providers:[o.C],imports:[t.u5,n.m,Y.S,ce,X.UL,X.M]}),Me})()},95109:(R,c,e)=>{"use strict";e.d(c,{s:()=>n});const n=new(e(3879)._)("systemwidealert")},20858:(R,c,e)=>{"use strict";e.d(c,{z:()=>d});var t=e(25330),n=e(94650);function o(r,a){}const i=["*"];let d=(()=>{class r extends t.F{constructor(){super(...arguments),this.showMetrics=!0,this.inAndOutputNames=["thumbnail","defaultImage","alt","placeholder","limitWidth","itemId","itemMetadata","showMetrics","similarityPercentage"]}getComponentName(){return"ThumbnailComponent"}importThemedComponent(p){return e(85430)(`./${p}/app/thumbnail/thumbnail.component`)}importUnthemedComponent(){return Promise.resolve().then(e.bind(e,48181))}}return r.\u0275fac=function(){let a;return function(h){return(a||(a=n.\u0275\u0275getInheritedFactory(r)))(h||r)}}(),r.\u0275cmp=n.\u0275\u0275defineComponent({type:r,selectors:[["ds-themed-thumbnail"]],inputs:{thumbnail:"thumbnail",defaultImage:"defaultImage",alt:"alt",placeholder:"placeholder",limitWidth:"limitWidth",itemId:"itemId",itemMetadata:"itemMetadata",showMetrics:"showMetrics",similarityPercentage:"similarityPercentage"},features:[n.\u0275\u0275InheritDefinitionFeature],ngContentSelectors:i,decls:5,vars:0,consts:[["vcr",""],["content",""]],template:function(p,h){1&p&&(n.\u0275\u0275projectionDef(),n.\u0275\u0275template(0,o,0,0,"ng-template",null,0,n.\u0275\u0275templateRefExtractor),n.\u0275\u0275elementStart(2,"div",null,1),n.\u0275\u0275projection(4),n.\u0275\u0275elementEnd())},encapsulation:2}),r})()},48181:(R,c,e)=>{"use strict";e.r(c),e.d(c,{ThumbnailComponent:()=>V});var t=e(94650),n=e(59161),o=e(24702),i=e(15600),d=e(39646),r=e(63900),a=e(47235),p=e(19937),h=e(24755),m=e(33825),_=e(36895),v=e(54004),E=e(80529);let O=(()=>{class Y{constructor(te){this.http=te,this.restEndpoint="/server/api"}getItemStatistics(te){return this.http.get(`${this.restEndpoint}/statistics/items/${te}`).pipe((0,v.U)(ee=>({views30Days:ee?.views?.last30Days||0,downloads30Days:ee?.downloads?.last30Days||0,totalViews:ee?.views?.total||0,totalDownloads:ee?.downloads?.total||0})))}getItemViewsLast30Days(te){return this.http.get(`${this.restEndpoint}/statistics/items/${te}/views?period=LAST_30_DAYS`)}getItemDownloadsLast30Days(te){return this.http.get(`${this.restEndpoint}/statistics/items/${te}/downloads?period=LAST_30_DAYS`)}}return Y.\u0275fac=function(te){return new(te||Y)(t.\u0275\u0275inject(E.eN))},Y.\u0275prov=t.\u0275\u0275defineInjectable({token:Y,factory:Y.\u0275fac,providedIn:"root"}),Y})(),b=(()=>{class Y{extractSimilarityFromMetadata(te){if(te&&te["thesis.similitud"]){const ee=te["thesis.similitud"][0]?.value;if(ee){const ae=parseInt(ee.replace("%",""));if(!isNaN(ae))return ae}}const K=["dc.similarity","dc.identifier.similarity","renati.similarity"];for(const ee of K)if(te&&te[ee]&&te[ee][0]){const Q=parseInt(te[ee][0].value.replace("%",""));if(!isNaN(Q))return Q}return null}getSimilarityLevel(te){return te<=10?{level:"Muy Bajo",color:"#28a745",message:"Documento original"}:te<=25?{level:"Bajo",color:"#17a2b8",message:"Aceptable"}:te<=40?{level:"Moderado",color:"#ffc107",message:"Revisar citas"}:te<=60?{level:"Alto",color:"#fd7e14",message:"Requiere revisi\xf3n"}:{level:"Muy Alto",color:"#dc3545",message:"Revisi\xf3n urgente"}}getSimilarityData(te){const{level:K,color:ee}=this.getSimilarityLevel(te);return{percentage:te,level:K,color:ee,matches:[{source:"Repositorio institucional",percentage:Math.floor(.6*te)},{source:"Fuentes externas",percentage:Math.floor(.3*te)},{source:"Documentos similares",percentage:Math.floor(.1*te)}]}}}return Y.\u0275fac=function(te){return new(te||Y)},Y.\u0275prov=t.\u0275\u0275defineInjectable({token:Y,factory:Y.\u0275fac,providedIn:"root"}),Y})();var M=e(34793),P=e(48106),D=e(89383),l=e(11515);function C(Y,X){1&Y&&(t.\u0275\u0275elementStart(0,"div",6)(1,"div",7),t.\u0275\u0275element(2,"ds-themed-loading",8),t.\u0275\u0275elementEnd()()),2&Y&&(t.\u0275\u0275advance(2),t.\u0275\u0275property("spinner",!0))}const I=function(Y){return{"d-none":Y}};
1function g(Y,X){if(1&Y){const te=t.\u0275\u0275getCurrentView();t.\u0275\u0275elementStart(0,"img",9),t.\u0275\u0275listener("error",function(){t.\u0275\u0275restoreView(te);const ee=t.\u0275\u0275nextContext();return t.\u0275\u0275resetView(ee.errorHandler())})("load",function(){t.\u0275\u0275restoreView(te);const ee=t.\u0275\u0275nextContext();return t.\u0275\u0275resetView(ee.successHandler())}),t.\u0275\u0275pipe(1,"dsSafeUrl"),t.\u0275\u0275pipe(2,"translate"),t.\u0275\u0275elementEnd()}if(2&Y){const te=t.\u0275\u0275nextContext();t.\u0275\u0275property("ngClass",t.\u0275\u0275pureFunction1(7,I,te.isLoading))("src",t.\u0275\u0275pipeBind1(1,3,te.src),t.\u0275\u0275sanitizeUrl)("alt",t.\u0275\u0275pipeBind1(2,5,te.alt))}}function B(Y,X){1&Y&&(t.\u0275\u0275elementStart(0,"div",10)(1,"div",7)(2,"div",11),t.\u0275\u0275element(3,"i",12),t.\u0275\u0275elementEnd()()())}function L(Y,X){if(1&Y&&(t.\u0275\u0275elementStart(0,"div",13)(1,"div",14)(2,"span",15),t.\u0275\u0275text(3),t.\u0275\u0275elementEnd(),t.\u0275\u0275elementStart(4,"span",16),t.\u0275\u0275text(5,"similitud"),t.\u0275\u0275elementEnd()(),t.\u0275\u0275elementStart(6,"div",17)(7,"div",18),t.\u0275\u0275element(8,"i",19),t.\u0275\u0275elementStart(9,"span",20),t.\u0275\u0275text(10),t.\u0275\u0275pipe(11,"number"),t.\u0275\u0275elementEnd(),t.\u0275\u0275elementStart(12,"span",21),t.\u0275\u0275text(13,"vistas/30d"),t.\u0275\u0275elementEnd()(),t.\u0275\u0275element(14,"div",22),t.\u0275\u0275elementStart(15,"div",18),t.\u0275\u0275element(16,"i",23),t.\u0275\u0275elementStart(17,"span",20),t.\u0275\u0275text(18),t.\u0275\u0275pipe(19,"number"),t.\u0275\u0275elementEnd(),t.\u0275\u0275elementStart(20,"span",21),t.\u0275\u0275text(21,"descargas/30d"),t.\u0275\u0275elementEnd()()()()),2&Y){const te=t.\u0275\u0275nextContext();t.\u0275\u0275advance(1),t.\u0275\u0275styleProp("border-color",te.similarityData.color),t.\u0275\u0275advance(1),t.\u0275\u0275styleProp("color",te.similarityData.color),t.\u0275\u0275advance(1),t.\u0275\u0275textInterpolate1(" ",te.similarityData.percentage,"% "),t.\u0275\u0275advance(7),t.\u0275\u0275textInterpolate(t.\u0275\u0275pipeBind1(11,7,te.statistics.views30Days)),t.\u0275\u0275advance(8),t.\u0275\u0275textInterpolate(t.\u0275\u0275pipeBind1(19,9,te.statistics.downloads30Days))}}let V=(()=>{class Y{constructor(te,K,ee,ae,Q,j,k,G){this.platformID=te,this.auth=K,this.authorizationService=ee,this.fileService=ae,this.statisticsService=Q,this.similarityService=j,this.router=k,this.cd=G,this.defaultImage=null,this.alt="thumbnail.default.alt",this.placeholder="thumbnail.default.placeholder",this.limitWidth=!0,this.src=void 0,this.retriedWithToken=!1,this.isLoading=!0,this.statistics={views30Days:0,downloads30Days:0,totalViews:0,totalDownloads:0},this.similarityData={percentage:0,level:"No disponible",color:"#6c757d",matches:[]},this.isLoadingStats=!0,this.showMetrics=!0,this.isItemPage=!1}set itemMetadata(te){this._itemMetadata=te,(0,o.Uh)(te)&&this.extractSimilarityFromMetadata()}get itemMetadata(){return this._itemMetadata}ngOnInit(){this.checkIfItemPage(),this.loadMetrics(),this.extractSimilarityFromMetadata()}checkIfItemPage(){const te=this.router.url;this.isItemPage=te.includes("/items/")||te.includes("/handle/")||te.includes("/bitstreams/")||null!=this.itemId&&""!==this.itemId}ngOnChanges(te){if((0,_.NF)(this.platformID)){if((0,o.xI)(this.thumbnail))return void this.setSrc(this.defaultImage);const K=this.contentHref;(0,o.Uh)(K)?this.setSrc(K):this.setSrc(this.defaultImage)}(te.itemId||te.itemMetadata)&&this.checkIfItemPage(),te.itemId&&this.itemId&&this.loadMetrics(),te.itemMetadata&&this.itemMetadata&&this.extractSimilarityFromMetadata()}loadMetrics(){this.isLoadingStats=!0,this.itemId?this.statisticsService.getItemStatistics(this.itemId).subscribe({next:te=>{this.statistics={views30Days:te.views30Days||0,downloads30Days:te.downloads30Days||0,totalViews:te.totalViews||0,totalDownloads:te.totalDownloads||0},this.isLoadingStats=!1},error:te=>{console.error("Error al cargar estad\xedsticas de UNTUMBES:",te),this.isLoadingStats=!1}}):this.isLoadingStats=!1}extractSimilarityFromMetadata(){if(void 0!==this.similarityPercentage&&this.similarityPercentage>0)return this.similarityData.percentage=this.similarityPercentage,this.similarityData.color=this.getColorByPercentage(this.similarityPercentage),this.cd.markForCheck(),void this.cd.detectChanges();if(this.itemMetadata){const K=(this.itemMetadata.metadata||this.itemMetadata)["thesis.similitud"];if(console.log("Valro del similitud:",K),K&&K.length>0){const ae=parseInt(K[0].value.toString().replace(/[^0-9]/g,""),10);isNaN(ae)||(this.similarityData.percentage=ae,this.similarityData.color=this.getColorByPercentage(ae),this.cd.markForCheck(),this.cd.detectChanges(),console.log("Similitud sincronizada con \xe9xito:",ae))}}}getColorByPercentage(te){return te>=70?"#28a745":te>=40?"#ffc107":"#dc3545"}get bitstream(){return this.thumbnail instanceof n.Z?this.thumbnail:this.thumbnail instanceof i.N?this.thumbnail.payload:void 0}get contentHref(){return this.thumbnail instanceof n.Z?this.thumbnail?._links?.content?.href:this.thumbnail instanceof i.N?this.thumbnail?.payload?._links?.content?.href:void 0}errorHandler(){const te=this.src,K=this.bitstream,ee=K?._links?.content?.href;!this.retriedWithToken&&(0,o.Uh)(ee)&&te===ee?(this.retriedWithToken=!0,this.auth.isAuthenticated().pipe((0,r.w)(ae=>ae?this.authorizationService.isAuthorized(a.i.CanDownload,K.self):(0,d.of)(!1)),(0,r.w)(ae=>ae?this.fileService.retrieveFileDownloadLink(ee):(0,d.of)(null))).subscribe(ae=>{(0,o.Uh)(ae)?this.setSrc(ae):this.setSrc(this.defaultImage)})):this.setSrc(te!==this.defaultImage?this.defaultImage:null)}setSrc(te){this.src=te,null===te&&(this.isLoading=!1)}successHandler(){this.isLoading=!1}getSimilarityColor(){return this.similarityData.color}}return Y.\u0275fac=function(te){return new(te||Y)(t.\u0275\u0275directiveInject(t.PLATFORM_ID),t.\u0275\u0275directiveInject(h.e8),t.\u0275\u0275directiveInject(p._),t.\u0275\u0275directiveInject(m.I),t.\u0275\u0275directiveInject(O),t.\u0275\u0275directiveInject(b),t.\u0275\u0275directiveInject(M.F0),t.\u0275\u0275directiveInject(t.ChangeDetectorRef))},Y.\u0275cmp=t.\u0275\u0275defineComponent({type:Y,selectors:[["ds-thumbnail"]],inputs:{thumbnail:"thumbnail",defaultImage:"defaultImage",alt:"alt",placeholder:"placeholder",limitWidth:"limitWidth",itemId:"itemId",similarityPercentage:"similarityPercentage",itemMetadata:"itemMetadata"},features:[t.\u0275\u0275NgOnChangesFeature],decls:6,vars:6,consts:[[1,"thumbnail-wrapper"],[1,"thumbnail"],["class","thumbnail-content outer",4,"ngIf"],["class","thumbnail-content img-fluid",3,"ngClass","src","alt","error","load",4,"ngIf"],["class","thumbnail-content outer border",4,"ngIf"],["class","metrics-container mt-2",4,"ngIf"],[1,"thumbnail-content","outer"],[1,"inner"],[3,"spinner"],[1,"thumbnail-content","img-fluid",3,"ngClass","src","alt","error","load"],[1,"thumbnail-content","outer","border"],[1,"submission-icon"],[1,"fas","fa-file-pdf"],[1,"metrics-container","mt-2"],[1,"similarity-badge"],[1,"similarity-percentage"],[1,"similarity-label"],[1,"stats-badge"],[1,"stat-item"],[1,"fas","fa-eye"],[1,"stat-value"],[1,"stat-label"],[1,"stat-divider"],[1,"fas","fa-download"]],template:function(te,K){1&te&&(t.\u0275\u0275elementStart(0,"div",0)(1,"div",1),t.\u0275\u0275template(2,C,3,1,"div",2),t.\u0275\u0275template(3,g,3,9,"img",3),t.\u0275\u0275template(4,B,4,0,"div",4),t.\u0275\u0275elementEnd(),t.\u0275\u0275template(5,L,22,11,"div",5),t.\u0275\u0275elementEnd()),2&te&&(t.\u0275\u0275advance(1),t.\u0275\u0275classProp("limit-width",K.limitWidth),t.\u0275\u0275advance(1),t.\u0275\u0275property("ngIf",K.isLoading),t.\u0275\u0275advance(1),t.\u0275\u0275property("ngIf",null!==K.src),t.\u0275\u0275advance(1),t.\u0275\u0275property("ngIf",null===K.src&&!K.isLoading),t.\u0275\u0275advance(1),t.\u0275\u0275property("ngIf",K.showMetrics&&!K.isLoadingStats&&K.isItemPage))},dependencies:[_.mk,_.O5,P.Z,_.JJ,D.X$,l.Q],styles:['.thumbnail-wrapper[_ngcontent-%COMP%]{position:relative;display:flex;flex-direction:column;align-items:center;width:100%}.thumbnail[_ngcontent-%COMP%]{width:100%;max-width:var(--ds-thumbnail-max-width, 100%);display:block;overflow:hidden;border-radius:4px;background:#fff;box-shadow:0 4px 8px #0000001a;border:1px solid #e9ecef;transition:transform .2s ease-in-out}.thumbnail.limit-width[_ngcontent-%COMP%]{max-width:var(--ds-thumbnail-max-width)}.thumbnail[_ngcontent-%COMP%]:hover{transform:scale(1.02)}img.thumbnail-content[_ngcontent-%COMP%]{width:100%;height:auto;display:block;object-fit:cover}.outer[_ngcontent-%COMP%]{position:relative;background-color:#f8f9fa;width:100%}.outer[_ngcontent-%COMP%]:before{display:block;content:"";width:100%;
1padding-top:141.4285714286%}.outer[_ngcontent-%COMP%] > .inner[_ngcontent-%COMP%]{position:absolute;inset:0;display:flex;justify-content:center;align-items:center;padding:10px}.submission-icon[_ngcontent-%COMP%]{width:60px;height:60px;border-radius:50%;background:linear-gradient(135deg,#337CCF,#1450A3);color:#fff;display:flex;justify-content:center;align-items:center;font-size:2rem;box-shadow:0 4px 10px #00000026;margin:0 auto}.metrics-container[_ngcontent-%COMP%]{margin-top:12px;width:100%;display:flex;flex-direction:column;gap:6px}.custom-mui-chip[_ngcontent-%COMP%]{display:inline-flex;align-items:center;justify-content:center;border-radius:16px;border:1px solid #dee2e6;padding:4px 12px;height:30px;background-color:#fff}.custom-mui-chip[_ngcontent-%COMP%] .mui-chip-svg[_ngcontent-%COMP%]{width:16px;height:16px;margin-right:6px}.custom-mui-chip[_ngcontent-%COMP%] .mui-chip-text[_ngcontent-%COMP%]{font-size:12px;font-weight:600;color:#3c4043}.similarity-chip[_ngcontent-%COMP%]{background-color:#00000008}@media (max-width: 576px){.thumbnail-wrapper[_ngcontent-%COMP%] .metrics-container[_ngcontent-%COMP%]{gap:4px}.thumbnail-wrapper[_ngcontent-%COMP%] .metrics-container[_ngcontent-%COMP%] .custom-mui-chip[_ngcontent-%COMP%]{height:26px;padding:2px 8px}.thumbnail-wrapper[_ngcontent-%COMP%] .metrics-container[_ngcontent-%COMP%] .custom-mui-chip[_ngcontent-%COMP%] .mui-chip-text[_ngcontent-%COMP%]{font-size:11px}}']}),Y})()},6070:(R,c,e)=>{"use strict";e.d(c,{V:()=>b});var t=e(39841),n=e(54004),o=e(63900),i=e(95698),d=e(21899),r=e(5360),a=e(46418),p=e(68285),h=e(24702),m=e(31241),_=e(94650),v=e(34793),E=e(89383),O=e(36895);let b=(()=>{class M{constructor(D,l,C,I,g,B,L,V){this.route=D,this.workflowItemService=l,this.router=C,this.routeService=I,this.notificationsService=g,this.translationService=B,this.requestService=L,this.location=V}ngOnInit(){this.type=this.getType(),this.wfi$=this.route.data.pipe((0,n.U)(D=>D.wfi),(0,p.xe)()),this.item$=this.wfi$.pipe((0,o.w)(D=>D.item.pipe((0,p.g1)(),(0,p.xe)()))),this.previousQueryParameters=this.location.getState().previousQueryParams}performAction(){(0,t.a)([this.wfi$,this.requestService.removeByHrefSubstring("/discover")]).pipe((0,i.q)(1),(0,o.w)(([D])=>this.sendRequest(D.id))).subscribe(D=>{if(D){const l=this.translationService.get("workflow-item."+this.type+".notification.success.title"),C=this.translationService.get("workflow-item."+this.type+".notification.success.content");this.notificationsService.success(l,C)}else{const l=this.translationService.get("workflow-item."+this.type+".notification.error.title"),C=this.translationService.get("workflow-item."+this.type+".notification.error.content");this.notificationsService.error(l,C)}this.previousPage()})}
1previousPage(){this.routeService.getPreviousUrl().pipe((0,i.q)(1)).subscribe(D=>{let l={};if((0,h.xb)(D)&&(D="/mydspace",l=this.previousQueryParameters),D.split("?").length>1)for(const C of D.split("?")[1].split("&"))l[C.split("=")[0]]=decodeURIComponent(C.split("=")[1]);this.router.navigate([D.split("?")[0]],{queryParams:l})})}}return M.\u0275fac=function(D){return new(D||M)(_.\u0275\u0275directiveInject(v.gz),_.\u0275\u0275directiveInject(d.K),_.\u0275\u0275directiveInject(v.F0),_.\u0275\u0275directiveInject(r.MZ),_.\u0275\u0275directiveInject(a.T),_.\u0275\u0275directiveInject(E.sK),_.\u0275\u0275directiveInject(m.s),_.\u0275\u0275directiveInject(O.Ye))},M.\u0275cmp=_.\u0275\u0275defineComponent({type:M,selectors:[["ds-workflowitem-action-page"]],decls:0,vars:0,template:function(D,l){},encapsulation:2}),M})()},53695:(R,c,e)=>{"use strict";e.d(c,{A6:()=>d,BG:()=>O,BP:()=>E,Du:()=>a,PT:()=>p,QO:()=>m,aN:()=>v,fk:()=>r,vR:()=>_,xM:()=>h});var t=e(23631),n=e(50503);function d(M){return new t.R((0,n.$r)(),M,v).toString()}function r(M){return new t.R((0,n.$r)(),M,_).toString()}function a(M){return new t.R((0,n.$r)(),M,E).toString()}function p(M){return new t.R((0,n.$r)(),M,O).toString()}function h(M){return new t.R((0,n.Yn)(),M,b).toString()}const m="edit",_="delete",v="view",E="sendback",O="advanced",b="delete"},63645:(R,c,e)=>{"use strict";e.d(c,{q:()=>o,s:()=>i});var t=e(94650),n=e(11481);const o=new t.InjectionToken("APP_CONFIG"),i=(0,n.Cb)("APP_CONFIG_STATE")},92871:(R,c,e)=>{"use strict";e.d(c,{M9:()=>r,ML:()=>p});var t=e(34999),o=e(21540),i=e(24702),d=e(36221);const r=(h,m)=>{a(h,m),console.log("Environment extended with app config")},a=(h,m)=>{Object.assign(h,(0,t.all)([h,m],{arrayMerge:(v,E,O)=>E}))},p=()=>o.N.themes.find(h=>(0,i.xI)(h.regex)&&(0,i.xI)(h.handle)&&(0,i.xI)(h.uuid))??{name:d.B}},21540:(R,c,e)=>{"use strict";e.d(c,{N:()=>t});const t={production:!0,universal:{preboot:!0,async:!0,time:!1,inlineCriticalCss:!1,transferState:!0,replaceRestUrl:!0,paths:["/home","/items/","/entities/","/collections/","/communities/","/bitstream/","/bitstreams/","/handle/","/reload/"],enableSearchComponent:!1,enableBrowseComponent:!1}}},46098:(R,c,e)=>{"use strict";var t=e(11481),d=(e(88583),e(74177),e(12722),e(80529)),r=e(94650),a=e(37340);function h(he){return new r.\u0275RuntimeError(3e3,!1)}function _t(){return typeof window<"u"&&typeof window.document<"u"}function It(){return typeof process<"u"&&"[object process]"==={}.toString.call(process)}function it(he){switch(he.length){case 0:return new a.ZN;case 1:return he[0];default:return new a.ZE(he)}}function Be(he,z,F,ue,Se=new Map,He=new Map){const ct=[],Ct=[];let Kt=-1,on=null;if(ue.forEach(Ln=>{const Vn=Ln.get("offset"),Dr=Vn==Kt,yr=Dr&&on||new Map;Ln.forEach((or,fr)=>{let ci=fr,Pi=or;if("offset"!==fr)switch(ci=z.normalizePropertyName(ci,ct),Pi){case a.k1:Pi=Se.get(fr);break;case a.l3:Pi=He.get(fr);break;default:Pi=z.normalizeStyleValue(fr,ci,Pi,ct)}yr.set(ci,Pi)}),Dr||Ct.push(yr),on=yr,Kt=Vn}),ct.length)throw function j(he){return new r.\u0275RuntimeError(3502,!1)}();return Ct}function Xe(he,z,F,ue){switch(z){case"start":he.onStart(()=>ue(F&&pt(F,"start",he)));break;case"done":he.onDone(()=>ue(F&&pt(F,"done",he)));break;case"destroy":he.onDestroy(()=>ue(F&&pt(F,"destroy",he)))}}function pt(he,z,F){const He=Mt(he.element,he.triggerName,he.fromState,he.toState,z||he.phaseName,F.totalTime??he.totalTime,!!F.disabled),ct=he._data;return null!=ct&&(He._data=ct),He}function Mt(he,z,F,ue,Se="",He=0,ct){return{element:he,triggerName:z,fromState:F,toState:ue,phaseName:Se,totalTime:He,disabled:!!ct}}function Yt(he,z,F){let ue=he.get(z);return ue||he.set(z,ue=F),ue}function nt(he){const z=he.indexOf(":");return[he.substring(1,z),he.slice(z+1)]}let mt=(he,z)=>!1,en=(he,z,F)=>[],pn=null;function tt(he){const z=he.parentNode||he.host;return z===pn?null:z}(It()||typeof Element<"u")&&(_t()?(pn=(()=>document.documentElement)(),mt=(he,z)=>{for(;z;){if(z===he)return!0;z=tt(z)}return!1}):mt=(he,z)=>he.contains(z),en=(he,z,F)=>{if(F)return Array.from(he.querySelectorAll(z));const ue=he.querySelector(z);return ue?[ue]:[]});let Rt=null,Pt=!1;const ke=mt,ot=en;let zt=(()=>{class he{validateStyleProperty(F){return function xt(he){Rt||(Rt=function Ut(){return typeof document<"u"?document.body:null}()||{},Pt=!!Rt.style&&"WebkitAppearance"in Rt.style);let z=!0;return Rt.style&&!function At(he){return"ebkit"==he.substring(1,6)}(he)&&(z=he in Rt.style,!z&&Pt&&(z="Webkit"+he.charAt(0).toUpperCase()+he.slice(1)in Rt.style)),z}(F)}matchesElement(F,ue){return!1}containsElement(F,ue){return ke(F,ue)}getParentElement(F){return tt(F)}query(F,ue,Se){return ot(F,ue,Se)}computeStyle(F,ue,Se){return Se||""}animate(F,ue,Se,He,ct,Ct=[],Kt){return new a.ZN(Se,He)}}return he.\u0275fac=function(F){return new(F||he)},he.\u0275prov=r.\u0275\u0275defineInjectable({token:he,factory:he.\u0275fac}),he})(),hn=(()=>{class he{}return he.NOOP=new zt,he})();const Vt=1e3,Ft="ng-enter",St="ng-leave",wt="ng-trigger",Xt=".ng-trigger",st="ng-animating",xe=".ng-animating";function Le(he){if("number"==typeof he)return he;const z=he.match(/^(-?[\.\d]+)(m?s)/);return!z||z.length<2?0:qe(parseFloat(z[1]),z[2])}function qe(he,z){return"s"===z?he*Vt:he}function at(he,z,F){return he.hasOwnProperty("duration")?he:function Jt(he,z,F){let Se,He=0,ct="";if("string"==typeof he){const Ct=he.match(/^(-?[\.\d]+)(m?s)(?:\s+(-?[\.\d]+)(m?s))?(?:\s+([-a-z]+(?:\(.+?\))?))?$/i);if(null===Ct)return z.push(h()),{duration:0,delay:0,easing:""};Se=qe(parseFloat(Ct[1]),Ct[2]);const Kt=Ct[3];null!=Kt&&(He=qe(parseFloat(Kt),Ct[4]));const on=Ct[5];on&&(ct=on)}else Se=he;if(!F){let Ct=!1,Kt=z.length;Se<0&&(z.push(function m(){return new r.\u0275RuntimeError(3100,!1)}()),Ct=!0),He<0&&(z.push(function _(){return new r.\u0275RuntimeError(3101,!1)}()),Ct=!0),Ct&&z.splice(Kt,0,h())}return{duration:Se,delay:He,easing:ct}}(he,z,F)}function $t(he,z={}){return Object.keys(he).forEach(F=>{z[F]=he[F]}),z}function rn(he){const z=new Map;return Object.keys(he).forEach(F=>{z.set(F,he[F])}),z}function un(he,z=new Map,F){if(F)for(let[ue,Se]of F)z.set(ue,Se);for(let[ue,Se]of he)z.set(ue,Se);return z}function dt(he,z,F){return F?z+":"+F+";":""}function ht(he){let z="";for(let F=0;F<he.style.length;F++){const ue=he.style.item(F);z+=dt(0,ue,he.style.getPropertyValue(ue))}for(const F in he.style)he.style.hasOwnProperty(F)&&!F.startsWith("_")&&(z+=dt(0,Cn(F),he.style[F]));he.setAttribute("style",z)}function je(he,z,F){he.style&&(z.forEach((ue,Se)=>{const He=nr(Se);F&&!F.has(Se)&&F.set(Se,he.style[He]),he.style[He]=ue}),It()&&ht(he))}function vt(he,z){he.style&&(z.forEach((F,ue)=>{const Se=nr(ue);he.style[Se]=""}),It()&&ht(he))}function Zt(he){return Array.isArray(he)?1==he.length?he[0]:(0,a.vP)(he):he}const Ne=new RegExp("{{\\s*(.+?)\\s*}}","g");function ze(he){let z=[];if("string"==typeof he){let F;for(;F=Ne.exec(he);)z.push(F[1]);Ne.lastIndex=0}return z}function bt(he,z,F){const ue=he.toString(),Se=ue.replace(Ne,(He,ct)=>{let Ct=z[ct];return null==Ct&&(F.push(function E(he){return new r.\u0275RuntimeError(3003,!1)}()),Ct=""),Ct.toString()});return Se==ue?he:Se}function En(he){const z=[];let F=he.next();for(;!F.done;)z.push(F.value),F=he.next();return z}const wn=/-+([a-z0-9])/g;function nr(he){return he.replace(wn,(...z)=>z[1].toUpperCase())}function Cn(he){return he.replace(/([a-z])([A-Z])/g,"$1-$2").toLowerCase()}function Dn(he,z,F){switch(z.type){case 7:return he.visitTrigger(z,F);case 0:return he.visitState(z,F);case 1:return he.visitTransition(z,F);case 2:return he.visitSequence(z,F);case 3:return he.visitGroup(z,F);case 4:return he.visitAnimate(z,F);case 5:return he.visitKeyframes(z,F);case 6:return he.visitStyle(z,F);case 8:return he.visitReference(z,F);case 9:return he.visitAnimateChild(z,F);case 10:return he.visitAnimateRef(z,F);case 11:return he.visitQuery(z,F);case 12:return he.visitStagger(z,F);default:throw function O(he){return new r.\u0275RuntimeError(3004,!1)}()}}function In(he,z){return window.getComputedStyle(he)[z]}const Mr="*";function Mn(he,z){const F=[];
1return"string"==typeof he?he.split(/\s*,\s*/).forEach(ue=>function Xn(he,z,F){if(":"==he[0]){const Kt=function cr(he,z){switch(he){case":enter":return"void => *";case":leave":return"* => void";case":increment":return(F,ue)=>parseFloat(ue)>parseFloat(F);case":decrement":return(F,ue)=>parseFloat(ue)<parseFloat(F);default:return z.push(function K(he){return new r.\u0275RuntimeError(3016,!1)}()),"* => *"}}(he,F);if("function"==typeof Kt)return void z.push(Kt);he=Kt}const ue=he.match(/^(\*|[-\w]+)\s*(<?[=-]>)\s*(\*|[-\w]+)$/);if(null==ue||ue.length<4)return F.push(function te(he){return new r.\u0275RuntimeError(3015,!1)}()),z;const Se=ue[1],He=ue[2],ct=ue[3];z.push(wr(Se,ct));"<"==He[0]&&!(Se==Mr&&ct==Mr)&&z.push(wr(ct,Se))}(ue,F,z)):F.push(he),F}const Qr=new Set(["true","1"]),Xr=new Set(["false","0"]);function wr(he,z){const F=Qr.has(he)||Xr.has(he),ue=Qr.has(z)||Xr.has(z);return(Se,He)=>{let ct=he==Mr||he==Se,Ct=z==Mr||z==He;return!ct&&F&&"boolean"==typeof Se&&(ct=Se?Qr.has(he):Xr.has(he)),!Ct&&ue&&"boolean"==typeof He&&(Ct=He?Qr.has(z):Xr.has(z)),ct&&Ct}}const Nr=new RegExp("s*:selfs*,?","g");function ii(he,z,F,ue){return new sr(he).build(z,F,ue)}class sr{constructor(z){this._driver=z}build(z,F,ue){const Se=new oi(F);return this._resetContextStyleTimingState(Se),Dn(this,Zt(z),Se)}_resetContextStyleTimingState(z){z.currentQuerySelector="",z.collectedStyles=new Map,z.collectedStyles.set("",new Map),z.currentTime=0}visitTrigger(z,F){let ue=F.queryCount=0,Se=F.depCount=0;const He=[],ct=[];return"@"==z.name.charAt(0)&&F.errors.push(function M(){return new r.\u0275RuntimeError(3006,!1)}()),z.definitions.forEach(Ct=>{if(this._resetContextStyleTimingState(F),0==Ct.type){const Kt=Ct,on=Kt.name;on.toString().split(/\s*,\s*/).forEach(Ln=>{Kt.name=Ln,He.push(this.visitState(Kt,F))}),Kt.name=on}else if(1==Ct.type){const Kt=this.visitTransition(Ct,F);ue+=Kt.queryCount,Se+=Kt.depCount,ct.push(Kt)}else F.errors.push(function P(){return new r.\u0275RuntimeError(3007,!1)}())}),{type:7,name:z.name,states:He,transitions:ct,queryCount:ue,depCount:Se,options:null}}visitState(z,F){const ue=this.visitStyle(z.styles,F),Se=z.options&&z.options.params||null;if(ue.containsDynamicStyles){const He=new Set,ct=Se||{};ue.styles.forEach(Ct=>{Ct instanceof Map&&Ct.forEach(Kt=>{ze(Kt).forEach(on=>{ct.hasOwnProperty(on)||He.add(on)})})}),He.size&&(En(He.values()),F.errors.push(function D(he,z){return new r.\u0275RuntimeError(3008,!1)}()))}return{type:0,name:z.name,style:ue,options:Se?{params:Se}:null}}visitTransition(z,F){F.queryCount=0,F.depCount=0;const ue=Dn(this,Zt(z.animation),F);return{type:1,matchers:Mn(z.expr,F.errors),animation:ue,queryCount:F.queryCount,depCount:F.depCount,options:Yi(z.options)}}visitSequence(z,F){return{type:2,steps:z.steps.map(ue=>Dn(this,ue,F)),options:Yi(z.options)}}visitGroup(z,F){const ue=F.currentTime;let Se=0;const He=z.steps.map(ct=>{F.currentTime=ue;const Ct=Dn(this,ct,F);return Se=Math.max(Se,F.currentTime),Ct});return F.currentTime=Se,{type:3,steps:He,options:Yi(z.options)}}visitAnimate(z,F){const ue=function Ri(he,z){if(he.hasOwnProperty("duration"))return he;if("number"==typeof he)return ut(at(he,z).duration,0,"");const F=he;if(F.split(/\s+/).some(He=>"{"==He.charAt(0)&&"{"==He.charAt(1))){const He=ut(0,0,"");return He.dynamic=!0,He.strValue=F,He}const Se=at(F,z);return ut(Se.duration,Se.delay,Se.easing)}(z.timings,F.errors);F.currentAnimateTimings=ue;let Se,He=z.styles?z.styles:(0,a.oB)({});if(5==He.type)Se=this.visitKeyframes(He,F);else{let ct=z.styles,Ct=!1;if(!ct){Ct=!0;const on={};ue.easing&&(on.easing=ue.easing),ct=(0,a.oB)(on)}F.currentTime+=ue.duration+ue.delay;const Kt=this.visitStyle(ct,F);Kt.isEmptyStep=Ct,Se=Kt}return F.currentAnimateTimings=null,{type:4,timings:ue,style:Se,options:null}}visitStyle(z,F){const ue=this._makeStyleAst(z,F);return this._validateStyleAst(ue,F),ue}_makeStyleAst(z,F){const ue=[],Se=Array.isArray(z.styles)?z.styles:[z.styles];
1for(let Ct of Se)"string"==typeof Ct?Ct===a.l3?ue.push(Ct):F.errors.push(new r.\u0275RuntimeError(3002,!1)):ue.push(rn(Ct));let He=!1,ct=null;return ue.forEach(Ct=>{if(Ct instanceof Map&&(Ct.has("easing")&&(ct=Ct.get("easing"),Ct.delete("easing")),!He))for(let Kt of Ct.values())if(Kt.toString().indexOf("{{")>=0){He=!0;break}}),{type:6,styles:ue,easing:ct,offset:z.offset,containsDynamicStyles:He,options:null}}_validateStyleAst(z,F){const ue=F.currentAnimateTimings;let Se=F.currentTime,He=F.currentTime;ue&&He>0&&(He-=ue.duration+ue.delay),z.styles.forEach(ct=>{"string"!=typeof ct&&ct.forEach((Ct,Kt)=>{const on=F.collectedStyles.get(F.currentQuerySelector),Ln=on.get(Kt);let Vn=!0;Ln&&(He!=Se&&He>=Ln.startTime&&Se<=Ln.endTime&&(F.errors.push(function I(he,z,F,ue,Se){return new r.\u0275RuntimeError(3010,!1)}()),Vn=!1),He=Ln.startTime),Vn&&on.set(Kt,{startTime:He,endTime:Se}),F.options&&function We(he,z,F){const ue=z.params||{},Se=ze(he);Se.length&&Se.forEach(He=>{ue.hasOwnProperty(He)||F.push(function v(he){return new r.\u0275RuntimeError(3001,!1)}())})}(Ct,F.options,F.errors)})})}visitKeyframes(z,F){const ue={type:5,styles:[],options:null};if(!F.currentAnimateTimings)return F.errors.push(function g(){return new r.\u0275RuntimeError(3011,!1)}()),ue;let He=0;const ct=[];let Ct=!1,Kt=!1,on=0;const Ln=z.steps.map(Pi=>{const Di=this._makeStyleAst(Pi,F);let ns=null!=Di.offset?Di.offset:function Gi(he){if("string"==typeof he)return null;let z=null;if(Array.isArray(he))he.forEach(F=>{if(F instanceof Map&&F.has("offset")){const ue=F;z=parseFloat(ue.get("offset")),ue.delete("offset")}});else if(he instanceof Map&&he.has("offset")){const F=he;z=parseFloat(F.get("offset")),F.delete("offset")}return z}(Di.styles),fs=0;return null!=ns&&(He++,fs=Di.offset=ns),Kt=Kt||fs<0||fs>1,Ct=Ct||fs<on,on=fs,ct.push(fs),Di});Kt&&F.errors.push(function B(){return new r.\u0275RuntimeError(3012,!1)}()),Ct&&F.errors.push(function L(){return new r.\u0275RuntimeError(3200,!1)}());const Vn=z.steps.length;let Dr=0;He>0&&He<Vn?F.errors.push(function V(){return new r.\u0275RuntimeError(3202,!1)}()):0==He&&(Dr=1/(Vn-1));const yr=Vn-1,or=F.currentTime,fr=F.currentAnimateTimings,ci=fr.duration;return Ln.forEach((Pi,Di)=>{const ns=Dr>0?Di==yr?1:Dr*Di:ct[Di],fs=ns*ci;F.currentTime=or+fr.delay+fs,fr.duration=fs,this._validateStyleAst(Pi,F),Pi.offset=ns,ue.styles.push(Pi)}),ue}visitReference(z,F){return{type:8,animation:Dn(this,Zt(z.animation),F),options:Yi(z.options)}}visitAnimateChild(z,F){return F.depCount++,{type:9,options:Yi(z.options)}}visitAnimateRef(z,F){return{type:10,animation:this.visitReference(z.animation,F),options:Yi(z.options)}}visitQuery(z,F){const ue=F.currentQuerySelector,Se=z.options||{};F.queryCount++,F.currentQuery=z;const[He,ct]=function Ai(he){const z=!!he.split(/\s*,\s*/).find(F=>":self"==F);return z&&(he=he.replace(Nr,"")),he=he.replace(/@\*/g,Xt).replace(/@\w+/g,F=>Xt+"-"+F.slice(1)).replace(/:animating/g,xe),[he,z]}(z.selector);F.currentQuerySelector=ue.length?ue+" "+He:He,Yt(F.collectedStyles,F.currentQuerySelector,new Map);const Ct=Dn(this,Zt(z.animation),F);return F.currentQuery=null,F.currentQuerySelector=ue,{type:11,selector:He,limit:Se.limit||0,optional:!!Se.optional,includeSelf:ct,animation:Ct,originalSelector:z.selector,options:Yi(z.options)}}visitStagger(z,F){F.currentQuery||F.errors.push(function Y(){return new r.\u0275RuntimeError(3013,!1)}());const ue="full"===z.timings?{duration:0,delay:0,easing:"full"}:at(z.timings,F.errors,!0);return{type:12,animation:Dn(this,Zt(z.animation),F),timings:ue,options:null}}}class oi{constructor(z){this.errors=z,this.queryCount=0,this.depCount=0,this.currentTransition=null,this.currentQuery=null,this.currentQuerySelector=null,this.currentAnimateTimings=null,this.currentTime=0,this.collectedStyles=new Map,this.options=null,this.unsupportedCSSPropertiesFound=new Set}}function Yi(he){return he?(he=$t(he)).params&&(he.params=function Wr(he){return he?$t(he):null}(he.params)):he={},he}function ut(he,z,F){return{duration:he,delay:z,easing:F}}function tn(he,z,F,ue,Se,He,ct=null,Ct=!1){return{type:1,element:he,keyframes:z,preStyleProps:F,postStyleProps:ue,duration:Se,delay:He,totalTime:Se+He,easing:ct,subTimeline:Ct}}class Gt{constructor(){this._map=new Map}get(z){return this._map.get(z)||[]}append(z,F){let ue=this._map.get(z);ue||this._map.set(z,ue=[]),ue.push(...F)}has(z){return this._map.has(z)}clear(){this._map.clear()}}const An=new RegExp(":enter","g"),Cr=new RegExp(":leave","g");function mr(he,z,F,ue,Se,He=new Map,ct=new Map,Ct,Kt,on=[]){return(new Fr).buildKeyframes(he,z,F,ue,Se,He,ct,Ct,Kt,on)}class Fr{buildKeyframes(z,F,ue,Se,He,ct,Ct,Kt,on,Ln=[]){on=on||new Gt;const Vn=new qn(z,F,on,Se,He,Ln,[]);Vn.options=Kt;const Dr=Kt.delay?Le(Kt.delay):0;Vn.currentTimeline.delayNextStep(Dr),Vn.currentTimeline.setStyles([ct],null,Vn.errors,Kt),Dn(this,ue,Vn);const yr=Vn.timelines.filter(or=>or.containsAnimation());if(yr.length&&Ct.size){let or;for(let fr=yr.length-1;fr>=0;fr--){const ci=yr[fr];if(ci.element===F){or=ci;break}}or&&!or.allowOnlyTimelineStyles()&&or.setStyles([Ct],null,Vn.errors,Kt)}return yr.length?yr.map(or=>or.buildKeyframes()):[tn(F,[],[],[],0,Dr,"",!1)]}visitTrigger(z,F){}
1visitState(z,F){}visitTransition(z,F){}visitAnimateChild(z,F){const ue=F.subInstructions.get(F.element);if(ue){const Se=F.createSubContext(z.options),He=F.currentTimeline.currentTime,ct=this._visitSubInstructions(ue,Se,Se.options);He!=ct&&F.transformIntoNewTimeline(ct)}F.previousNode=z}visitAnimateRef(z,F){const ue=F.createSubContext(z.options);ue.transformIntoNewTimeline(),this._applyAnimationRefDelays([z.options,z.animation.options],F,ue),this.visitReference(z.animation,ue),F.transformIntoNewTimeline(ue.currentTimeline.currentTime),F.previousNode=z}_applyAnimationRefDelays(z,F,ue){for(const Se of z){const He=Se?.delay;if(He){const ct="number"==typeof He?He:Le(bt(He,Se?.params??{},F.errors));ue.delayNextStep(ct)}}}_visitSubInstructions(z,F,ue){let He=F.currentTimeline.currentTime;const ct=null!=ue.duration?Le(ue.duration):null,Ct=null!=ue.delay?Le(ue.delay):null;return 0!==ct&&z.forEach(Kt=>{const on=F.appendInstructionToTimeline(Kt,ct,Ct);He=Math.max(He,on.duration+on.delay)}),He}visitReference(z,F){F.updateOptions(z.options,!0),Dn(this,z.animation,F),F.previousNode=z}visitSequence(z,F){const ue=F.subContextCount;let Se=F;const He=z.options;if(He&&(He.params||He.delay)&&(Se=F.createSubContext(He),Se.transformIntoNewTimeline(),null!=He.delay)){6==Se.previousNode.type&&(Se.currentTimeline.snapshotCurrentStyles(),Se.previousNode=Gn);const ct=Le(He.delay);Se.delayNextStep(ct)}z.steps.length&&(z.steps.forEach(ct=>Dn(this,ct,Se)),Se.currentTimeline.applyStylesToKeyframe(),Se.subContextCount>ue&&Se.transformIntoNewTimeline()),F.previousNode=z}visitGroup(z,F){const ue=[];let Se=F.currentTimeline.currentTime;const He=z.options&&z.options.delay?Le(z.options.delay):0;z.steps.forEach(ct=>{const Ct=F.createSubContext(z.options);He&&Ct.delayNextStep(He),Dn(this,ct,Ct),Se=Math.max(Se,Ct.currentTimeline.currentTime),ue.push(Ct.currentTimeline)}),ue.forEach(ct=>F.currentTimeline.mergeTimelineCollectedStyles(ct)),F.transformIntoNewTimeline(Se),F.previousNode=z}_visitTiming(z,F){if(z.dynamic){const ue=z.strValue;return at(F.params?bt(ue,F.params,F.errors):ue,F.errors)}return{duration:z.duration,delay:z.delay,easing:z.easing}}visitAnimate(z,F){const ue=F.currentAnimateTimings=this._visitTiming(z.timings,F),Se=F.currentTimeline;ue.delay&&(F.incrementTime(ue.delay),Se.snapshotCurrentStyles());const He=z.style;5==He.type?this.visitKeyframes(He,F):(F.incrementTime(ue.duration),this.visitStyle(He,F),Se.applyStylesToKeyframe()),F.currentAnimateTimings=null,F.previousNode=z}visitStyle(z,F){const ue=F.currentTimeline,Se=F.currentAnimateTimings;!Se&&ue.hasCurrentStyleProperties()&&ue.forwardFrame();const He=Se&&Se.easing||z.easing;z.isEmptyStep?ue.applyEmptyStep(He):ue.setStyles(z.styles,He,F.errors,F.options),F.previousNode=z}visitKeyframes(z,F){const ue=F.currentAnimateTimings,Se=F.currentTimeline.duration,He=ue.duration,Ct=F.createSubContext().currentTimeline;Ct.easing=ue.easing,z.styles.forEach(Kt=>{Ct.forwardTime((Kt.offset||0)*He),Ct.setStyles(Kt.styles,Kt.easing,F.errors,F.options),Ct.applyStylesToKeyframe()}),F.currentTimeline.mergeTimelineCollectedStyles(Ct),F.transformIntoNewTimeline(Se+He),F.previousNode=z}visitQuery(z,F){const ue=F.currentTimeline.currentTime,Se=z.options||{},He=Se.delay?Le(Se.delay):0;He&&(6===F.previousNode.type||0==ue&&F.currentTimeline.hasCurrentStyleProperties())&&(F.currentTimeline.snapshotCurrentStyles(),F.previousNode=Gn);let ct=ue;const Ct=F.invokeQuery(z.selector,z.originalSelector,z.limit,z.includeSelf,!!Se.optional,F.errors);F.currentQueryTotal=Ct.length;let Kt=null;Ct.forEach((on,Ln)=>{F.currentQueryIndex=Ln;const Vn=F.createSubContext(z.options,on);He&&Vn.delayNextStep(He),on===F.element&&(Kt=Vn.currentTimeline),Dn(this,z.animation,Vn),Vn.currentTimeline.applyStylesToKeyframe(),ct=Math.max(ct,Vn.currentTimeline.currentTime)}),F.currentQueryIndex=0,F.currentQueryTotal=0,F.transformIntoNewTimeline(ct),Kt&&(F.currentTimeline.mergeTimelineCollectedStyles(Kt),F.currentTimeline.snapshotCurrentStyles()),F.previousNode=z}visitStagger(z,F){const ue=F.parentContext,Se=F.currentTimeline,He=z.timings,ct=Math.abs(He.duration),Ct=ct*(F.currentQueryTotal-1);let Kt=ct*F.currentQueryIndex;switch(He.duration<0?"reverse":He.easing){case"reverse":Kt=Ct-Kt;break;case"full":Kt=ue.currentStaggerTime}const Ln=F.currentTimeline;Kt&&Ln.delayNextStep(Kt);const Vn=Ln.currentTime;Dn(this,z.animation,F),F.previousNode=z,ue.currentStaggerTime=Se.currentTime-Vn+(Se.startTime-ue.currentTimeline.startTime)}}const Gn={};class qn{constructor(z,F,ue,Se,He,ct,Ct,Kt){this._driver=z,this.element=F,this.subInstru
1ctions=ue,this._enterClassName=Se,this._leaveClassName=He,this.errors=ct,this.timelines=Ct,this.parentContext=null,this.currentAnimateTimings=null,this.previousNode=Gn,this.subContextCount=0,this.options={},this.currentQueryIndex=0,this.currentQueryTotal=0,this.currentStaggerTime=0,this.currentTimeline=Kt||new wi(this._driver,F,0),Ct.push(this.currentTimeline)}get params(){return this.options.params}updateOptions(z,F){if(!z)return;const ue=z;let Se=this.options;null!=ue.duration&&(Se.duration=Le(ue.duration)),null!=ue.delay&&(Se.delay=Le(ue.delay));const He=ue.params;if(He){let ct=Se.params;ct||(ct=this.options.params={}),Object.keys(He).forEach(Ct=>{(!F||!ct.hasOwnProperty(Ct))&&(ct[Ct]=bt(He[Ct],ct,this.errors))})}}_copyOptions(){const z={};if(this.options){const F=this.options.params;if(F){const ue=z.params={};Object.keys(F).forEach(Se=>{ue[Se]=F[Se]})}}return z}createSubContext(z=null,F,ue){const Se=F||this.element,He=new qn(this._driver,Se,this.subInstructions,this._enterClassName,this._leaveClassName,this.errors,this.timelines,this.currentTimeline.fork(Se,ue||0));return He.previousNode=this.previousNode,He.currentAnimateTimings=this.currentAnimateTimings,He.options=this._copyOptions(),He.updateOptions(z),He.currentQueryIndex=this.currentQueryIndex,He.currentQueryTotal=this.currentQueryTotal,He.parentContext=this,this.subContextCount++,He}transformIntoNewTimeline(z){return this.previousNode=Gn,this.currentTimeline=this.currentTimeline.fork(this.element,z),this.timelines.push(this.currentTimeline),this.currentTimeline}appendInstructionToTimeline(z,F,ue){const Se={duration:F??z.duration,delay:this.currentTimeline.currentTime+(ue??0)+z.delay,easing:""},He=new mi(this._driver,z.element,z.keyframes,z.preStyleProps,z.postStyleProps,Se,z.stretchStartingKeyframe);return this.timelines.push(He),Se}incrementTime(z){this.currentTimeline.forwardTime(this.currentTimeline.duration+z)}delayNextStep(z){z>0&&this.currentTimeline.delayNextStep(z)}invokeQuery(z,F,ue,Se,He,ct){let Ct=[];if(Se&&Ct.push(this.element),z.length>0){z=(z=z.replace(An,"."+this._enterClassName)).replace(Cr,"."+this._leaveClassName);let on=this._driver.query(this.element,z,1!=ue);0!==ue&&(on=ue<0?on.slice(on.length+ue,on.length):on.slice(0,ue)),Ct.push(...on)}return!He&&0==Ct.length&&ct.push(function X(he){return new r.\u0275RuntimeError(3014,!1)}()),Ct}}class wi{constructor(z,F,ue,Se){this._driver=z,this.element=F,this.startTime=ue,this._elementTimelineStylesLookup=Se,this.duration=0,this.easing=null,this._previousKeyframe=new Map,this._currentKeyframe=new Map,this._keyframes=new Map,this._styleSummary=new Map,this._localTimelineStyles=new Map,this._pendingStyles=new Map,this._backFill=new Map,this._currentEmptyStepKeyframe=null,this._elementTimelineStylesLookup||(this._elementTimelineStylesLookup=new Map),this._globalTimelineStyles=this._elementTimelineStylesLookup.get(F),this._globalTimelineStyles||(this._globalTimelineStyles=this._localTimelineStyles,this._elementTimelineStylesLookup.set(F,this._localTimelineStyles)),this._loadKeyframe()}containsAnimation(){switch(this._keyframes.size){case 0:return!1;case 1:return this.hasCurrentStyleProperties();default:return!0}}hasCurrentStyleProperties(){return this._currentKeyframe.size>0}get currentTime(){return this.startTime+this.duration}delayNextStep(z){const F=1===this._keyframes.size&&this._pendingStyles.size;this.duration||F?(this.forwardTime(this.currentTime+z),F&&this.snapshotCurrentStyles()):this.startTime+=z}fork(z,F){return this.applyStylesToKeyframe(),new wi(this._driver,z,F||this.currentTime,this._elementTimelineStylesLookup)}_loadKeyframe(){this._currentKeyframe&&(this._previousKeyframe=this._currentKeyframe),this._currentKeyframe=this._keyframes.get(this.duration),this._currentKeyframe||(this._currentKeyframe=new Map,this._keyframes.set(this.duration,this._currentKeyframe))}forwardFrame(){this.duration+=1,this._loadKeyframe()}forwardTime(z){this.applyStylesToKeyframe(),this.duration=z,this._loadKeyframe()}_updateStyle(z,F){this._localTimelineStyles.set(z,F),this._globalTimelineStyles.set(z,F),this._styleSummary.set(z,{time:this.currentTime,value:F})}allowOnlyTimelineStyles(){return this._currentEmptyStepKeyframe!==this._currentKeyframe}
1applyEmptyStep(z){z&&this._previousKeyframe.set("easing",z);for(let[F,ue]of this._globalTimelineStyles)this._backFill.set(F,ue||a.l3),this._currentKeyframe.set(F,a.l3);this._currentEmptyStepKeyframe=this._currentKeyframe}setStyles(z,F,ue,Se){F&&this._previousKeyframe.set("easing",F);const He=Se&&Se.params||{},ct=function Ao(he,z){const F=new Map;let ue;return he.forEach(Se=>{if("*"===Se){ue=ue||z.keys();for(let He of ue)F.set(He,a.l3)}else un(Se,F)}),F}(z,this._globalTimelineStyles);for(let[Ct,Kt]of ct){const on=bt(Kt,He,ue);this._pendingStyles.set(Ct,on),this._localTimelineStyles.has(Ct)||this._backFill.set(Ct,this._globalTimelineStyles.get(Ct)??a.l3),this._updateStyle(Ct,on)}}applyStylesToKeyframe(){0!=this._pendingStyles.size&&(this._pendingStyles.forEach((z,F)=>{this._currentKeyframe.set(F,z)}),this._pendingStyles.clear(),this._localTimelineStyles.forEach((z,F)=>{this._currentKeyframe.has(F)||this._currentKeyframe.set(F,z)}))}snapshotCurrentStyles(){for(let[z,F]of this._localTimelineStyles)this._pendingStyles.set(z,F),this._updateStyle(z,F)}getFinalKeyframe(){return this._keyframes.get(this.duration)}get properties(){const z=[];for(let F in this._currentKeyframe)z.push(F);return z}
1mergeTimelineCollectedStyles(z){z._styleSummary.forEach((F,ue)=>{const Se=this._styleSummary.get(ue);(!Se||F.time>Se.time)&&this._updateStyle(ue,F.value)})}buildKeyframes(){this.applyStylesToKeyframe();const z=new Set,F=new Set,ue=1===this._keyframes.size&&0===this.duration;let Se=[];this._keyframes.forEach((Ct,Kt)=>{const on=un(Ct,new Map,this._backFill);on.forEach((Ln,Vn)=>{Ln===a.k1?z.add(Vn):Ln===a.l3&&F.add(Vn)}),ue||on.set("offset",Kt/this.duration),Se.push(on)});const He=z.size?En(z.values()):[],ct=F.size?En(F.values()):[];if(ue){const Ct=Se[0],Kt=new Map(Ct);Ct.set("offset",0),Kt.set("offset",1),Se=[Ct,Kt]}return tn(this.element,Se,He,ct,this.duration,this.startTime,this.easing,!1)}}class mi extends wi{constructor(z,F,ue,Se,He,ct,Ct=!1){super(z,F,ct.delay),this.keyframes=ue,this.preStyleProps=Se,this.postStyleProps=He,this._stretchStartingKeyframe=Ct,this.timings={duration:ct.duration,delay:ct.delay,easing:ct.easing}}containsAnimation(){return this.keyframes.length>1}buildKeyframes(){let z=this.keyframes,{delay:F,duration:ue,easing:Se}=this.timings;if(this._stretchStartingKeyframe&&F){const He=[],ct=ue+F,Ct=F/ct,Kt=un(z[0]);Kt.set("offset",0),He.push(Kt);const on=un(z[0]);on.set("offset",jr(Ct)),He.push(on);const Ln=z.length-1;for(let Vn=1;Vn<=Ln;Vn++){let Dr=un(z[Vn]);const yr=Dr.get("offset");Dr.set("offset",jr((F+yr*ue)/ct)),He.push(Dr)}ue=ct,F=0,Se="",z=He}return tn(this.element,z,this.preStyleProps,this.postStyleProps,ue,F,Se,!0)}}function jr(he,z=3){const F=Math.pow(10,z-1);return Math.round(he*F)/F}class qi{}const Ko=new Set(["width","height","minWidth","minHeight","maxWidth","maxHeight","left","top","bottom","right","fontSize","outlineWidth","outlineOffset","paddingTop","paddingLeft","paddingBottom","paddingRight","marginTop","marginLeft","marginBottom","marginRight","borderRadius","borderWidth","borderTopWidth","borderLeftWidth","borderRightWidth","borderBottomWidth","textIndent","perspective"]);class Eo extends qi{normalizePropertyName(z,F){return nr(z)}normalizeStyleValue(z,F,ue,Se){let He="";const ct=ue.toString().trim();if(Ko.has(F)&&0!==ue&&"0"!==ue)if("number"==typeof ue)He="px";else{const Ct=ue.match(/^[+-]?[\d\.]+([a-z]*)$/);Ct&&0==Ct[1].length&&Se.push(function b(he,z){return new r.\u0275RuntimeError(3005,!1)}())}return ct+He}}function Vo(he,z,F,ue,Se,He,ct,Ct,Kt,on,Ln,Vn,Dr){return{type:0,element:he,triggerName:z,isRemovalTransition:Se,fromState:F,fromStyles:He,toState:ue,toStyles:ct,timelines:Ct,queriedElements:Kt,preStyleProps:on,postStyleProps:Ln,totalTime:Vn,errors:Dr}}const eo={};class cs{constructor(z,F,ue){this._triggerName=z,this.ast=F,this._stateStyles=ue}match(z,F,ue,Se){return function yo(he,z,F,ue,Se){return he.some(He=>He(z,F,ue,Se))}(this.ast.matchers,z,F,ue,Se)}buildStyles(z,F,ue){let Se=this._stateStyles.get("*");return void 0!==z&&(Se=this._stateStyles.get(z?.toString())||Se),Se?Se.buildStyles(F,ue):new Map}build(z,F,ue,Se,He,ct,Ct,Kt,on,Ln){const Vn=[],Dr=this.ast.options&&this.ast.options.params||eo,or=this.buildStyles(ue,Ct&&Ct.params||eo,Vn),fr=Kt&&Kt.params||eo,ci=this.buildStyles(Se,fr,Vn),Pi=new Set,Di=new Map,ns=new Map,fs="void"===Se,Za={params:_i(fr,Dr),delay:this.ast.options?.delay},Aa=Ln?[]:mr(z,F,this.ast.animation,He,ct,or,ci,Za,on,Vn);let Ns=0;if(Aa.forEach(qa=>{Ns=Math.max(qa.duration+qa.delay,Ns)}),Vn.length)return Vo(F,this._triggerName,ue,Se,fs,or,ci,[],[],Di,ns,Ns,Vn);Aa.forEach(qa=>{const ja=qa.element,Vd=Yt(Di,ja,new Set);qa.preStyleProps.forEach(cl=>Vd.add(cl));const Ll=Yt(ns,ja,new Set);qa.postStyleProps.forEach(cl=>Ll.add(cl)),ja!==F&&Pi.add(ja)});const Ja=En(Pi.values());return Vo(F,this._triggerName,ue,Se,fs,or,ci,Aa,Ja,Di,ns,Ns)}}function _i(he,z){const F=$t(z);for(const ue in he)he.hasOwnProperty(ue)&&null!=he[ue]&&(F[ue]=he[ue]);return F}class Ho{constructor(z,F,ue){this.styles=z,this.defaultParams=F,this.normalizer=ue}buildStyles(z,F){const ue=new Map,Se=$t(this.defaultParams);return Object.keys(z).forEach(He=>{const ct=z[He];null!==ct&&(Se[He]=ct)}),this.styles.styles.forEach(He=>{"string"!=typeof He&&He.forEach((ct,Ct)=>{ct&&(ct=bt(ct,Se,F));const Kt=this.normalizer.normalizePropertyName(Ct,F);ct=this.normalizer.normalizeStyleValue(Ct,Kt,ct,F),ue.set(Ct,ct)})}),ue}}class ho{constructor(z,F,ue){this.name=z,this.ast=F,this._normalizer=ue,this.transitionFactories=[],this.states=new Map,F.states.forEac
1h(Se=>{this.states.set(Se.name,new Ho(Se.style,Se.options&&Se.options.params||{},ue))}),ds(this.states,"true","1"),ds(this.states,"false","0"),F.transitions.forEach(Se=>{this.transitionFactories.push(new cs(z,Se,this.states))}),this.fallbackTransition=function to(he,z,F){return new cs(he,{type:1,animation:{type:2,steps:[],options:null},matchers:[(ct,Ct)=>!0],options:null,queryCount:0,depCount:0},z)}(z,this.states)}get containsQueries(){return this.ast.queryCount>0}matchTransition(z,F,ue,Se){return this.transitionFactories.find(ct=>ct.match(z,F,ue,Se))||null}matchStyles(z,F,ue){return this.fallbackTransition.buildStyles(z,F,ue)}}function ds(he,z,F){he.has(z)?he.has(F)||he.set(F,he.get(z)):he.has(F)&&he.set(z,he.get(F))}const Ds=new Gt;class Co{constructor(z,F,ue){this.bodyNode=z,this._driver=F,this._normalizer=ue,this._animations=new Map,this._playersById=new Map,this.players=[]}register(z,F){const ue=[],Se=[],He=ii(this._driver,F,ue,Se);if(ue.length)throw function k(he){return new r.\u0275RuntimeError(3503,!1)}();this._animations.set(z,He)}_buildPlayer(z,F,ue){const Se=z.element,He=Be(0,this._normalizer,0,z.keyframes,F,ue);return this._driver.animate(Se,He,z.duration,z.delay,z.easing,[],!0)}create(z,F,ue={}){const Se=[],He=this._animations.get(z);let ct;const Ct=new Map;if(He?(ct=mr(this._driver,F,He,Ft,St,new Map,new Map,ue,Ds,Se),ct.forEach(Ln=>{const Vn=Yt(Ct,Ln.element,new Map);Ln.postStyleProps.forEach(Dr=>Vn.set(Dr,null))})):(Se.push(function G(){return new r.\u0275RuntimeError(3300,!1)}()),ct=[]),Se.length)throw function ie(he){return new r.\u0275RuntimeError(3504,!1)}();Ct.forEach((Ln,Vn)=>{Ln.forEach((Dr,yr)=>{Ln.set(yr,this._driver.computeStyle(Vn,yr,a.l3))})});const on=it(ct.map(Ln=>{const Vn=Ct.get(Ln.element);return this._buildPlayer(Ln,new Map,Vn)}));return this._playersById.set(z,on),on.onDestroy(()=>this.destroy(z)),this.players.push(on),on}destroy(z){const F=this._getPlayer(z);F.destroy(),this._playersById.delete(z);const ue=this.players.indexOf(F);ue>=0&&this.players.splice(ue,1)}_getPlayer(z){const F=this._playersById.get(z);if(!F)throw function ne(he){return new r.\u0275RuntimeError(3301,!1)}();return F}listen(z,F,ue,Se){const He=Mt(F,"","","");return Xe(this._getPlayer(z),ue,He,Se),()=>{}}command(z,F,ue,Se){if("register"==ue)return void this.register(z,Se[0]);if("create"==ue)return void this.create(z,F,Se[0]||{});const He=this._getPlayer(z);switch(ue){case"play":He.play();break;case"pause":He.pause();break;case"reset":He.reset();break;case"restart":He.restart();break;case"finish":He.finish();break;case"init":He.init();break;case"setPosition":He.setPosition(parseFloat(Se[0]));break;case"destroy":this.destroy(z)}}}const Po="ng-animate-queued",mo="ng-animate-disabled",Ye=[],jt={namespaceId:"",setForRemoval:!1,setForMove:!1,hasAnimation:!1,removedBeforeQueried:!1},Pn={namespaceId:"",setForMove:!1,setForRemoval:!1,hasAnimation:!1,removedBeforeQueried:!0},pr="__ng_removed";class pi{get params(){return this.options.params}constructor(z,F=""){this.namespaceId=F;const ue=z&&z.hasOwnProperty("value");if(this.value=function Si(he){return he??null}(ue?z.value:z),ue){const He=$t(z);delete He.value,this.options=He}else this.options={};this.options.params||(this.options.params={})}absorbOptions(z){const F=z.params;if(F){const ue=this.options.params;Object.keys(F).forEach(Se=>{null==ue[Se]&&(ue[Se]=F[Se])})}}}const xi="void",bi=new pi(xi);class Hi{constructor(z,F,ue){this.id=z,this.hostElement=F,this._engine=ue,this.players=[],this._triggers=new Map,this._queue=[],this._elementListeners=new Map,this._hostClassName="ng-tns-"
1+z,Vr(F,this._hostClassName)}listen(z,F,ue,Se){if(!this._triggers.has(F))throw function q(he,z){return new r.\u0275RuntimeError(3302,!1)}();if(null==ue||0==ue.length)throw function oe(he){return new r.\u0275RuntimeError(3303,!1)}();if(!function ao(he){return"start"==he||"done"==he}(ue))throw function ce(he,z){return new r.\u0275RuntimeError(3400,!1)}();const He=Yt(this._elementListeners,z,[]),ct={name:F,phase:ue,callback:Se};He.push(ct);const Ct=Yt(this._engine.statesByElement,z,new Map);return Ct.has(F)||(Vr(z,wt),Vr(z,wt+"-"+F),Ct.set(F,bi)),()=>{this._engine.afterFlush(()=>{const Kt=He.indexOf(ct);Kt>=0&&He.splice(Kt,1),this._triggers.has(F)||Ct.delete(F)})}}register(z,F){return!this._triggers.has(z)&&(this._triggers.set(z,F),!0)}_getTrigger(z){const F=this._triggers.get(z);if(!F)throw function ye(he){return new r.\u0275RuntimeError(3401,!1)}();return F}trigger(z,F,ue,Se=!0){const He=this._getTrigger(F),ct=new si(this.id,F,z);let Ct=this._engine.statesByElement.get(z);Ct||(Vr(z,wt),Vr(z,wt+"-"+F),this._engine.statesByElement.set(z,Ct=new Map));let Kt=Ct.get(F);const on=new pi(ue,this.id);if(!(ue&&ue.hasOwnProperty("value"))&&Kt&&on.absorbOptions(Kt.options),Ct.set(F,on),Kt||(Kt=bi),on.value!==xi&&Kt.value===on.value){if(!function xo(he,z){const F=Object.keys(he),ue=Object.keys(z);if(F.length!=ue.length)return!1;for(let Se=0;Se<F.length;Se++){const He=F[Se];if(!z.hasOwnProperty(He)||he[He]!==z[He])return!1}return!0}(Kt.params,on.params)){const fr=[],ci=He.matchStyles(Kt.value,Kt.params,fr),Pi=He.matchStyles(on.value,on.params,fr);fr.length?this._engine.reportError(fr):this._engine.afterFlush(()=>{vt(z,ci),je(z,Pi)})}return}const Dr=Yt(this._engine.playersByElement,z,[]);Dr.forEach(fr=>{fr.namespaceId==this.id&&fr.triggerName==F&&fr.queued&&fr.destroy()});let yr=He.matchTransition(Kt.value,on.value,z,on.params),or=!1;if(!yr){if(!Se)return;yr=He.fallbackTransition,or=!0}return this._engine.totalQueuedPlayers++,this._queue.push({element:z,triggerName:F,transition:yr,fromState:Kt,toState:on,player:ct,isFallbackTransition:or}),or||(Vr(z,Po),ct.onStart(()=>{bo(z,Po)})),ct.onDone(()=>{let fr=this.players.indexOf(ct);fr>=0&&this.players.splice(fr,1);const ci=this._engine.playersByElement.get(z);if(ci){let Pi=ci.indexOf(ct);Pi>=0&&ci.splice(Pi,1)}}),this.players.push(ct),Dr.push(ct),ct}deregister(z){this._triggers.delete(z),this._engine.statesByElement.forEach(F=>F.delete(z)),this._elementListeners.forEach((F,ue)=>{this._elementListeners.set(ue,F.filter(Se=>Se.name!=z))})}clearElementCache(z){this._engine.statesByElement.delete(z),this._elementListeners.delete(z);const F=this._engine.playersByElement.get(z);
1F&&(F.forEach(ue=>ue.destroy()),this._engine.playersByElement.delete(z))}_signalRemovalForInnerTriggers(z,F){const ue=this._engine.driver.query(z,Xt,!0);ue.forEach(Se=>{if(Se[pr])return;const He=this._engine.fetchNamespacesByElement(Se);He.size?He.forEach(ct=>ct.triggerLeaveAnimation(Se,F,!1,!0)):this.clearElementCache(Se)}),this._engine.afterFlushAnimationsDone(()=>ue.forEach(Se=>this.clearElementCache(Se)))}triggerLeaveAnimation(z,F,ue,Se){const He=this._engine.statesByElement.get(z),ct=new Map;if(He){const Ct=[];if(He.forEach((Kt,on)=>{if(ct.set(on,Kt.value),this._triggers.has(on)){const Ln=this.trigger(z,on,xi,Se);Ln&&Ct.push(Ln)}}),Ct.length)return this._engine.markElementAsRemoved(this.id,z,!0,F,ct),ue&&it(Ct).onDone(()=>this._engine.processLeaveNode(z)),!0}return!1}prepareLeaveAnimationListeners(z){const F=this._elementListeners.get(z),ue=this._engine.statesByElement.get(z);if(F&&ue){const Se=new Set;F.forEach(He=>{const ct=He.name;if(Se.has(ct))return;Se.add(ct);const Kt=this._triggers.get(ct).fallbackTransition,on=ue.get(ct)||bi,Ln=new pi(xi),Vn=new si(this.id,ct,z);this._engine.totalQueuedPlayers++,this._queue.push({element:z,triggerName:ct,transition:Kt,fromState:on,toState:Ln,player:Vn,isFallbackTransition:!0})})}}removeNode(z,F){const ue=this._engine;if(z.childElementCount&&this._signalRemovalForInnerTriggers(z,F),this.triggerLeaveAnimation(z,F,!0))return;let Se=!1;if(ue.totalAnimations){const He=ue.players.length?ue.playersByQueriedElement.get(z):[];if(He&&He.length)Se=!0;else{let ct=z;for(;ct=ct.parentNode;)if(ue.statesByElement.get(ct)){Se=!0;break}}}if(this.prepareLeaveAnimationListeners(z),Se)ue.markElementAsRemoved(this.id,z,!1,F);else{const He=z[pr];(!He||He===jt)&&(ue.afterFlush(()=>this.clearElementCache(z)),ue.destroyInnerAnimations(z),ue._onRemovalComplete(z,F))}}insertNode(z,F){Vr(z,this._hostClassName)}drainQueuedTransitions(z){const F=[];return this._queue.forEach(ue=>{const Se=ue.player;if(Se.destroyed)return;const He=ue.element,ct=this._elementListeners.get(He);ct&&ct.forEach(Ct=>{if(Ct.name==ue.triggerName){const Kt=Mt(He,ue.triggerName,ue.fromState.value,ue.toState.value);Kt._data=z,Xe(ue.player,Ct.phase,Kt,Ct.callback)}}),Se.markedForDestroy?this._engine.afterFlush(()=>{Se.destroy()}):F.push(ue)}),this._queue=[],F.sort((ue,Se)=>{const He=ue.transition.ast.depCount,ct=Se.transition.ast.depCount;return 0==He||0==ct?He-ct:this._engine.driver.containsElement(ue.element,Se.element)?1:-1})}destroy(z){this.players.forEach(F=>F.destroy()),this._signalRemovalForInnerTriggers(this.hostElement,z)}elementContainsData(z){let F=!1;return this._elementListeners.has(z)&&(F=!0),F=!!this._queue.find(ue=>ue.element===z)||F,F}}class Fi{_onRemovalComplete(z,F){this.onRemovalComplete(z,F)}constructor(z,F,ue){this.bodyNode=z,this.driver=F,this._normalizer=ue,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=(Se,He)=>{}}get queuedPlayers(){const z=[];return this._namespaceList.forEach(F=>{F.players.forEach(ue=>{ue.queued&&z.push(ue)})}),z}createNamespace(z,F){const ue=new Hi(z,F,this);return this.bodyNode&&this.driver.containsElement(this.bodyNode,F)?this._balanceNamespaceList(ue,F):(this.newHostElements.set(F,ue),this.collectEnterElement(F)),this._namespaceLookup[z]=ue}_balanceNamespaceList(z,F){const ue=this._namespaceList,Se=this.namespacesByHostElement;if(ue.length-1>=0){let ct=!1,Ct=this.driver.getParentElement(F);for(;Ct;){const Kt=Se.get(Ct);if(Kt){const on=ue.indexOf(Kt);ue.splice(on+1,0,z),ct=!0;break}Ct=this.driver.getParentElement(Ct)}ct||ue.unshift(z)}else ue.push(z);return Se.set(F,z),z}register(z,F){let ue=this._namespaceLookup[z];return ue||(ue=this.createNamespace(z,F)),ue}registerTrigger(z,F,ue){let Se=this._namespaceLookup[z];Se&&Se.register(F,ue)&&this.totalAnimations++}destroy(z,F){if(!z)return;const ue=this._fetchNamespace(z);this.afterFlush(()=>{this.namespacesByHostElement.delete(ue.hostElement),delete this._namespaceLookup[z];const Se=this._namespaceList.indexOf(ue);Se>=0&&this._namespaceList.splice(Se,1)}),this.afterFlushAnimationsDone(()=>ue.destroy(F))}_fetchNamespace(z){return this._namespaceLookup[z]}fetchNamespacesByElement(z){const F=new Set,ue=this.statesByElement.get(z);if(ue)for(let Se of ue.values())if(Se.namespaceId){const He=this._fetchNamespace(Se.namespaceId);He&&F.add(He)}return F}trigger(z,F,ue,Se){if(Ro(F)){const He=this._fetchNamespace(z);if(He)return He.trigger(F,ue,Se),!0}return!1}insertNode(z,F,ue,Se){if(!Ro(F))return;const He=F[pr];if(He&&He.setForRemoval){He.setForRemoval=!1,He.setForMove=!0;const ct=this.collectedLeaveElements.indexOf(F);ct>=0&&this.collectedLeaveElements.splice(ct,1)}if(z){const ct=this._fetchNamespace(z);
1ct&&ct.insertNode(F,ue)}Se&&this.collectEnterElement(F)}collectEnterElement(z){this.collectedEnterElements.push(z)}markElementAsDisabled(z,F){F?this.disabledNodes.has(z)||(this.disabledNodes.add(z),Vr(z,mo)):this.disabledNodes.has(z)&&(this.disabledNodes.delete(z),bo(z,mo))}removeNode(z,F,ue,Se){if(Ro(F)){const He=z?this._fetchNamespace(z):null;if(He?He.removeNode(F,Se):this.markElementAsRemoved(z,F,!1,Se),ue){const ct=this.namespacesByHostElement.get(F);ct&&ct.id!==z&&ct.removeNode(F,Se)}}else this._onRemovalComplete(F,Se)}markElementAsRemoved(z,F,ue,Se,He){this.collectedLeaveElements.push(F),F[pr]={namespaceId:z,setForRemoval:Se,hasAnimation:ue,removedBeforeQueried:!1,previousTriggersValues:He}}listen(z,F,ue,Se,He){return Ro(F)?this._fetchNamespace(z).listen(F,ue,Se,He):()=>{}}_buildInstruction(z,F,ue,Se,He){return z.transition.build(this.driver,z.element,z.fromState.value,z.toState.value,ue,Se,z.fromState.options,z.toState.options,F,He)}destroyInnerAnimations(z){let F=this.driver.query(z,Xt,!0);F.forEach(ue=>this.destroyActiveAnimationsForElement(ue)),0!=this.playersByQueriedElement.size&&(F=this.driver.query(z,xe,!0),F.forEach(ue=>this.finishActiveQueriedAnimationOnElement(ue)))}destroyActiveAnimationsForElement(z){const F=this.playersByElement.get(z);F&&F.forEach(ue=>{ue.queued?ue.markedForDestroy=!0:ue.destroy()})}finishActiveQueriedAnimationOnElement(z){const F=this.playersByQueriedElement.get(z);F&&F.forEach(ue=>ue.finish())}whenRenderingDone(){return new Promise(z=>{if(this.players.length)return it(this.players).onDone(()=>z());z()})}processLeaveNode(z){const F=z[pr];if(F&&F.setForRemoval){if(z[pr]=jt,F.namespaceId){this.destroyInnerAnimations(z);const ue=this._fetchNamespace(F.namespaceId);ue&&ue.clearElementCache(z)}this._onRemovalComplete(z,F.setForRemoval)}z.classList?.contains(mo)&&this.markElementAsDisabled(z,!1),this.driver.query(z,".ng-animate-disabled",!0).forEach(ue=>{this.markElementAsDisabled(ue,!1)})}flush(z=-1){let F=[];if(this.newHostElements.size&&(this.newHostElements.forEach((ue,Se)=>this._balanceNamespaceList(ue,Se)),this.newHostElements.clear()),this.totalAnimations&&this.collectedEnterElements.length)for(let ue=0;ue<this.collectedEnterElements.length;ue++)Vr(this.collectedEnterElements[ue],"ng-star-inserted");if(this._namespaceList.length&&(this.totalQueuedPlayers||this.collectedLeaveElements.length)){const ue=[];try{F=this._flushAnimations(ue,z)}finally{for(let Se=0;Se<ue.length;Se++)ue[Se]()}}else for(let ue=0;ue<this.collectedLeaveElements.length;ue++)this.processLeaveNode(this.collectedLeaveElements[ue]);if(this.totalQueuedPlayers=0,this.collectedEnterElements.length=0,this.collectedLeaveElements.length=0,this._flushFns.forEach(ue=>ue()),this._flushFns=[],this._whenQuietFns.length){const ue=this._whenQuietFns;this._whenQuietFns=[],F.length?it(F).onDone(()=>{ue.forEach(Se=>Se())}):ue.forEach(Se=>Se())}}reportError(z){throw function Me(he){return new r.\u0275RuntimeError(3402,!1)}()}_flushAnimations(z,F){const ue=new Gt,Se=[],He=new Map,ct=[],Ct=new Map,Kt=new Map,on=new Map,Ln=new Set;this.disabledNodes.forEach(lr=>{Ln.add(lr);const Or=this.driver.query(lr,".ng-animate-queued",!0);for(let Ar=0;Ar<Or.length;Ar++)Ln.add(Or[Ar])});const Vn=this.bodyNode,Dr=Array.from(this.statesByElement.keys()),yr=ko(Dr,this.collectedEnterElements),or=new Map;let fr=0;yr.forEach((lr,Or)=>{const Ar=Ft+fr++;or.set(Or,Ar),lr.forEach(Ui=>Vr(Ui,Ar))});const ci=[],Pi=new Set,Di=new Set;for(let lr=0;lr<this.collectedLeaveElements.length;lr++){const Or=this.collectedLeaveElements[lr],Ar=Or[pr];Ar&&Ar.setForRemoval&&(ci.push(Or),Pi.add(Or),Ar.hasAnimation?this.driver.query(Or,".ng-star-inserted",!0).forEach(Ui=>Pi.add(Ui)):Di.add(Or))}const ns=new Map,fs=ko(Dr,Array.from(Pi));fs.forEach((lr,Or)=>{const Ar=St+fr++;ns.set(Or,Ar),lr.forEach(Ui=>Vr(Ui,Ar))}),z.push(()=>{yr.forEach((lr,Or)=>{const Ar=or.get(Or);lr.forEach(Ui=>bo(Ui,Ar))}),fs.forEach((lr,Or)=>{const Ar=ns.get(Or);lr.forEach(Ui=>bo(Ui,Ar))}),ci.forEach(lr=>{this.processLeaveNode(lr)})});const Za=[],Aa=[];for(let lr=this._namespaceList.length-1;lr>=0;
1lr--)this._namespaceList[lr].drainQueuedTransitions(F).forEach(Ar=>{const Ui=Ar.player,di=Ar.element;if(Za.push(Ui),this.collectedEnterElements.length){const js=di[pr];if(js&&js.setForMove){if(js.previousTriggersValues&&js.previousTriggersValues.has(Ar.triggerName)){const dl=js.previousTriggersValues.get(Ar.triggerName),_a=this.statesByElement.get(Ar.element);if(_a&&_a.has(Ar.triggerName)){const ed=_a.get(Ar.triggerName);ed.value=dl,_a.set(Ar.triggerName,ed)}}return void Ui.destroy()}}const wa=!Vn||!this.driver.containsElement(Vn,di),da=ns.get(di),Wa=or.get(di),Mo=this._buildInstruction(Ar,ue,Wa,da,wa);if(Mo.errors&&Mo.errors.length)return void Aa.push(Mo);if(wa)return Ui.onStart(()=>vt(di,Mo.fromStyles)),Ui.onDestroy(()=>je(di,Mo.toStyles)),void Se.push(Ui);if(Ar.isFallbackTransition)return Ui.onStart(()=>vt(di,Mo.fromStyles)),Ui.onDestroy(()=>je(di,Mo.toStyles)),void Se.push(Ui);const qc=[];Mo.timelines.forEach(js=>{js.stretchStartingKeyframe=!0,this.disabledNodes.has(js.element)||qc.push(js)}),Mo.timelines=qc,ue.append(di,Mo.timelines),ct.push({instruction:Mo,player:Ui,element:di}),Mo.queriedElements.forEach(js=>Yt(Ct,js,[]).push(Ui)),Mo.preStyleProps.forEach((js,dl)=>{if(js.size){let _a=Kt.get(dl);_a||Kt.set(dl,_a=new Set),js.forEach((ed,kd)=>_a.add(kd))}}),Mo.postStyleProps.forEach((js,dl)=>{let _a=on.get(dl);_a||on.set(dl,_a=new Set),js.forEach((ed,kd)=>_a.add(kd))})});if(Aa.length){const lr=[];Aa.forEach(Or=>{lr.push(function Ae(he,z){return new r.\u0275RuntimeError(3505,!1)}())}),Za.forEach(Or=>Or.destroy()),this.reportError(lr)}const Ns=new Map,Ja=new Map;ct.forEach(lr=>{const Or=lr.element;ue.has(Or)&&(Ja.set(Or,Or),this._beforeAnimationBuild(lr.player.namespaceId,lr.instruction,Ns))}),Se.forEach(lr=>{const Or=lr.element;this._getPreviousPlayers(Or,!1,lr.namespaceId,lr.triggerName,null).forEach(Ui=>{Yt(Ns,Or,[]).push(Ui),Ui.destroy()})});const qa=ci.filter(lr=>Li(lr,Kt,on)),ja=new Map;Oi(ja,this.driver,Di,on,a.l3).forEach(lr=>{Li(lr,Kt,on)&&qa.push(lr)});const Ll=new Map;yr.forEach((lr,Or)=>{Oi(Ll,this.driver,new Set(lr),Kt,a.k1)}),qa.forEach(lr=>{const Or=ja.get(lr),Ar=Ll.get(lr);ja.set(lr,new Map([...Array.from(Or?.entries()??[]),...Array.from(Ar?.entries()??[])]))});const cl=[],$d=[],Jc={};ct.forEach(lr=>{const{element:Or,player:Ar,instruction:Ui}=lr;if(ue.has(Or)){if(Ln.has(Or))return Ar.onDestroy(()=>je(Or,Ui.toStyles)),Ar.disabled=!0,Ar.overrideTotalTime(Ui.totalTime),void Se.push(Ar);let di=Jc;if(Ja.size>1){let da=Or;const Wa=[];for(;da=da.parentNode;){const Mo=Ja.get(da);if(Mo){di=Mo;break}Wa.push(da)}Wa.forEach(Mo=>Ja.set(Mo,di))}const wa=this._buildAnimation(Ar.namespaceId,Ui,Ns,He,Ll,ja);if(Ar.setRealPlayer(wa),di===Jc)cl.push(Ar);else{const da=this.playersByElement.get(di);da&&da.length&&(Ar.parentPlayer=it(da)),Se.push(Ar)}}else vt(Or,Ui.fromStyles),Ar.onDestroy(()=>je(Or,Ui.toStyles)),$d.push(Ar),Ln.has(Or)&&Se.push(Ar)}),$d.forEach(lr=>{const Or=He.get(lr.element);if(Or&&Or.length){const Ar=it(Or);lr.setRealPlayer(Ar)}}),Se.forEach(lr=>{lr.parentPlayer?lr.syncPlayerEvents(lr.parentPlayer):lr.destroy()});for(let lr=0;lr<ci.length;lr++){const Or=ci[lr],Ar=Or[pr];if(bo(Or,St),Ar&&Ar.hasAnimation)continue;let Ui=[];if(Ct.size){let wa=Ct.get(Or);wa&&wa.length&&Ui.push(...wa);let da=this.driver.query(Or,xe,!0);for(let Wa=0;Wa<da.length;Wa++){let Mo=Ct.get(da[Wa]);Mo&&Mo.length&&Ui.push(...Mo)}}const di=Ui.filter(wa=>!wa.destroyed);di.length?So(this,Or,di):this.processLeaveNode(Or)}return ci.length=0,cl.forEach(lr=>{this.players.push(lr),lr.onDone(()=>{lr.destroy();const Or=this.players.indexOf(lr);this.players.splice(Or,1)}),lr.play()}),cl}elementContainsData(z,F){let ue=!1;const Se=F[pr];return Se&&Se.setForRemoval&&(ue=!0),this.playersByElement.has(F)&&(ue=!0),this.playersByQueriedElement.has(F)&&(ue=!0),this.statesByElement.has(F)&&(ue=!0),this._fetchNamespace(z).elementContainsData(F)||ue}afterFlush(z){this._flushFns.push(z)}afterFlushAnimationsDone(z){this._whenQuietFns.push(z)}_getPreviousPlayers(z,F,ue,Se,He){let ct=[];if(F){const Ct=this.playersByQueriedElement.get(z);Ct&&(ct=Ct)}else{const Ct=this.playersByElement.get(z);if(Ct){const Kt=!He||He==xi;Ct.forEach(on=>{on.queued||!Kt&&on.triggerName!=Se||ct.push(on)})}}return(ue||Se)&&(ct=ct.filter(Ct=>!(ue&&ue!=Ct.namespaceId||Se&&Se!=Ct.triggerName))),ct}_beforeAnimationBuild(z,F,ue){const He=F.element,ct=F.isRemovalTransition?void 0:z,Ct=F.isRemovalTransition?void 0:F.triggerName;for(const Kt of F.timelines){const on=Kt.element,Ln=on!==He,Vn=Yt(ue,on,[]);this._getPreviousPlayers(on,Ln,ct,Ct,F.toState).forEach(yr=>{const or=yr.getRealPlayer();or.beforeDestroy&&or.beforeDestroy(),yr.destroy(),Vn.push(yr)})}vt(He,F.fromStyles)}_buildAnimation(z,F,ue,Se,He,ct){const Ct=F.triggerName,Kt=F.element,on=[],Ln=new Set,Vn=new Set,Dr=F.timelines.map(or=>{const fr=or.element;Ln.add(fr);const ci=fr[pr];if(ci&&ci.removedBeforeQueried)return new a.ZN(or.duration,or.delay);const Pi=fr!==Kt,Di=function Oo(he){const z=[];return Ni(he,z),z}((ue.get(fr)||Ye).map(Ns=>Ns.getRealPlayer())).filter(Ns=>!!Ns.element&&Ns.element===fr),ns=He.get(fr),fs=ct.get(fr),Za=Be(0,this._normalizer,0,or.keyframes,ns,fs),Aa=this._buildPlayer(or,Za,Di);if(or.subTimeline&&Se&&Vn.add(fr),Pi){const Ns=new si(z,Ct,fr);Ns.setRealPlayer(Aa),on.push(Ns)}return Aa});on.forEach(or=>{Yt(this.playersByQueriedElement,or.element,[]).push(or),or.onDone(()=>function Do(he,z,F){let ue=he.get(z);if(ue){if(ue.length){const Se=ue.indexOf(F);ue.splice(Se,1)}0==ue.length&&he.delete(z)}return ue}(this.playersByQueriedElement,or.element,or))}),Ln.forEach(or=>Vr(or,st));const yr=it(Dr);return yr.onDestroy(()=>{Ln.forEach(or=>bo(or,st)),je(Kt,F.toStyles)}),Vn.forEach(or=>{Yt(Se,or,[]).push(yr)}),yr}_buildPlayer(z,F,ue){return F.length>0?this.driver.animate(z.element,F,z.duration,z.delay,z.easing,ue):new a.ZN(z.duration,z.delay)}}class si{constructor(z,F,ue){this.namespaceId=z,this.triggerName=F,this.element=ue,this._player=new a.ZN,this._containsRealPlayer=!1,this._queuedCallbacks=new Map,this.destroyed=!1,this.parentPlayer=null,this.markedForDestroy=!1,this.disabled=!1,this.queued=!0,this.totalTime=0}setRealPlayer(z){this._containsRealPlayer||(this._player=z,this._queuedCallbacks.forEach((F,ue)=>{F.forEach(Se=>Xe(z,ue,void 0,Se))}),this._queuedCallbacks.clear(),this._containsRealPlayer=!0,this.overrideTotalTime(z.totalTime),this.queued=!1)}getRealPlayer(){return this._player}overrideTotalTime(z){this.totalTime=z}syncPlayerEvents(z){const F=this._player;F.triggerCallback&&z.onStart(()=>F.triggerCallback("start")),z.onDone(()=>this.finish()),z.onDestroy(()=>this.destroy())}_queueEvent(z,F){Yt(this._queuedCallbacks,z,[]).push(F)}onDone(z){this.queued&&this._queueEvent("done",z),this._player.onDone(z)}onStart(z){this.queued&&this._queueEvent("start",z),this._player.onStart(z)}onDestroy(z){this.queued&&this._queueEvent("destroy",z),this._player.onDestroy(z)}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(z){this.queued||this._player.setPosition(z)}getPosition(){return this.queued?0:this._player.getPosition()}triggerCallback(z){const F=this._player;F.triggerCallback&&F.triggerCallback(z)}}function Ro(he){return he&&1===he.nodeType}function Ii(he,z){const F=he.style.display;
1return he.style.display=z??"none",F}function Oi(he,z,F,ue,Se){const He=[];F.forEach(Kt=>He.push(Ii(Kt)));const ct=[];ue.forEach((Kt,on)=>{const Ln=new Map;Kt.forEach(Vn=>{const Dr=z.computeStyle(on,Vn,Se);Ln.set(Vn,Dr),(!Dr||0==Dr.length)&&(on[pr]=Pn,ct.push(on))}),he.set(on,Ln)});let Ct=0;return F.forEach(Kt=>Ii(Kt,He[Ct++])),ct}function ko(he,z){const F=new Map;if(he.forEach(Ct=>F.set(Ct,[])),0==z.length)return F;const ue=1,Se=new Set(z),He=new Map;function ct(Ct){if(!Ct)return ue;let Kt=He.get(Ct);if(Kt)return Kt;const on=Ct.parentNode;return Kt=F.has(on)?on:Se.has(on)?ue:ct(on),He.set(Ct,Kt),Kt}return z.forEach(Ct=>{const Kt=ct(Ct);Kt!==ue&&F.get(Kt).push(Ct)}),F}function Vr(he,z){he.classList?.add(z)}function bo(he,z){he.classList?.remove(z)}function So(he,z,F){it(F).onDone(()=>he.processLeaveNode(z))}function Ni(he,z){for(let F=0;F<he.length;F++){const ue=he[F];ue instanceof a.ZE?Ni(ue.players,z):z.push(ue)}}function Li(he,z,F){const ue=F.get(he);if(!ue)return!1;let Se=z.get(he);return Se?ue.forEach(He=>Se.add(He)):z.set(he,ue),F.delete(he),!0}class Os{constructor(z,F,ue){this.bodyNode=z,this._driver=F,this._normalizer=ue,this._triggerCache={},this.onRemovalComplete=(Se,He)=>{},this._transitionEngine=new Fi(z,F,ue),this._timelineEngine=new Co(z,F,ue),this._transitionEngine.onRemovalComplete=(Se,He)=>this.onRemovalComplete(Se,He)}registerTrigger(z,F,ue,Se,He){const ct=z+"-"+Se;let Ct=this._triggerCache[ct];if(!Ct){const Kt=[],on=[],Ln=ii(this._driver,He,Kt,on);if(Kt.length)throw function Q(he,z){return new r.\u0275RuntimeError(3404,!1)}();Ct=function _s(he,z,F){return new ho(he,z,F)}(Se,Ln,this._normalizer),this._triggerCache[ct]=Ct}this._transitionEngine.registerTrigger(F,Se,Ct)}register(z,F){this._transitionEngine.register(z,F)}destroy(z,F){this._transitionEngine.destroy(z,F)}onInsert(z,F,ue,Se){this._transitionEngine.insertNode(z,F,ue,Se)}onRemove(z,F,ue,Se){this._transitionEngine.removeNode(z,F,Se||!1,ue)}disableAnimations(z,F){this._transitionEngine.markElementAsDisabled(z,F)}process(z,F,ue,Se){if("@"==ue.charAt(0)){const[He,ct]=nt(ue);this._timelineEngine.command(He,F,ct,Se)}else this._transitionEngine.trigger(z,F,ue,Se)}listen(z,F,ue,Se,He){if("@"==ue.charAt(0)){const[ct,Ct]=nt(ue);return this._timelineEngine.listen(ct,F,Ct,He)}return this._transitionEngine.listen(z,F,ue,Se,He)}flush(z=-1){this._transitionEngine.flush(z)}get players(){return this._transitionEngine.players.concat(this._timelineEngine.players)}whenRenderingDone(){return this._transitionEngine.whenRenderingDone()}}let xs=(()=>{class he{constructor(F,ue,Se){this._element=F,this._startStyles=ue,this._endStyles=Se,this._state=0;let He=he.initialStylesByElement.get(F);He||he.initialStylesByElement.set(F,He=new Map),this._initialStyles=He}start(){this._state<1&&(this._startStyles&&je(this._element,this._startStyles,this._initialStyles),this._state=1)}finish(){this.start(),this._state<2&&(je(this._element,this._initialStyles),this._endStyles&&(je(this._element,this._endStyles),this._endStyles=null),this._state=1)}destroy(){this.finish(),this._state<3&&(he.initialStylesByElement.delete(this._element),this._startStyles&&(vt(this._element,this._startStyles),this._endStyles=null),this._endStyles&&(vt(this._element,this._endStyles),this._endStyles=null),je(this._element,this._initialStyles),this._state=3)}}return he.initialStylesByElement=new WeakMap,he})();function Lo(he){let z=null;return he.forEach((F,ue)=>{(function hr(he){return"display"===he||"position"===he})(ue)&&(z=z||new Map,z.set(ue,F))}),z}
1class zr{constructor(z,F,ue,Se){this.element=z,this.keyframes=F,this.options=ue,this._specialStyles=Se,this._onDoneFns=[],this._onStartFns=[],this._onDestroyFns=[],this._initialized=!1,this._finished=!1,this._started=!1,this._destroyed=!1,this._originalOnDoneFns=[],this._originalOnStartFns=[],this.time=0,this.parentPlayer=null,this.currentSnapshot=new Map,this._duration=ue.duration,this._delay=ue.delay||0,this.time=this._duration+this._delay}_onFinish(){this._finished||(this._finished=!0,this._onDoneFns.forEach(z=>z()),this._onDoneFns=[])}init(){this._buildPlayer(),this._preparePlayerBeforeStart()}_buildPlayer(){if(this._initialized)return;this._initialized=!0;const z=this.keyframes;this.domPlayer=this._triggerWebAnimation(this.element,z,this.options),this._finalKeyframe=z.length?z[z.length-1]:new Map,this.domPlayer.addEventListener("finish",()=>this._onFinish())}_preparePlayerBeforeStart(){this._delay?this._resetDomPlayerState():this.domPlayer.pause()}_convertKeyframesToObject(z){const F=[];return z.forEach(ue=>{F.push(Object.fromEntries(ue))}),F}_triggerWebAnimation(z,F,ue){return z.animate(this._convertKeyframesToObject(F),ue)}onStart(z){this._originalOnStartFns.push(z),this._onStartFns.push(z)}onDone(z){this._originalOnDoneFns.push(z),this._onDoneFns.push(z)}onDestroy(z){this._onDestroyFns.push(z)}play(){this._buildPlayer(),this.hasStarted()||(this._onStartFns.forEach(z=>z()),this._onStartFns=[],this._started=!0,this._specialStyles&&this._specialStyles.start()),this.domPlayer.play()}pause(){this.init(),this.domPlayer.pause()}finish(){this.init(),this._specialStyles&&this._specialStyles.finish(),this._onFinish(),this.domPlayer.finish()}reset(){this._resetDomPlayerState(),this._destroyed=!1,this._finished=!1,this._started=!1,this._onStartFns=this._originalOnStartFns,this._onDoneFns=this._originalOnDoneFns}_resetDomPlayerState(){this.domPlayer&&this.domPlayer.cancel()}restart(){this.reset(),this.play()}hasStarted(){return this._started}destroy(){this._destroyed||(this._destroyed=!0,this._resetDomPlayerState(),this._onFinish(),this._specialStyles&&this._specialStyles.destroy(),this._onDestroyFns.forEach(z=>z()),this._onDestroyFns=[])}setPosition(z){void 0===this.domPlayer&&this.init(),this.domPlayer.currentTime=z*this.time}getPosition(){return this.domPlayer.currentTime/this.time}get totalTime(){return this._delay+this._duration}beforeDestroy(){const z=new Map;this.hasStarted()&&this._finalKeyframe.forEach((ue,Se)=>{"offset"!==Se&&z.set(Se,this._finished?ue:In(this.element,Se))}),this.currentSnapshot=z}triggerCallback(z){const F="start"===z?this._onStartFns:this._onDoneFns;F.forEach(ue=>ue()),F.length=0}}class se{validateStyleProperty(z){return!0}validateAnimatableStyleProperty(z){return!0}matchesElement(z,F){return!1}containsElement(z,F){return ke(z,F)}getParentElement(z){return tt(z)}query(z,F,ue){return ot(z,F,ue)}computeStyle(z,F,ue){return window.getComputedStyle(z)[F]}animate(z,F,ue,Se,He,ct=[]){const Kt={duration:ue,delay:Se,fill:0==Se?"both":"forwards"};He&&(Kt.easing=He);const on=new Map,Ln=ct.filter(yr=>yr instanceof zr);(function bn(he,z){return 0===he||0===z})(ue,Se)&&Ln.forEach(yr=>{yr.currentSnapshot.forEach((or,fr)=>on.set(fr,or))});let Vn=function Wt(he){return he.length?he[0]instanceof Map?he:he.map(z=>rn(z)):[]}(F).map(yr=>un(yr));Vn=function cn(he,z,F){if(F.size&&z.length){let ue=z[0],Se=[];if(F.forEach((He,ct)=>{ue.has(ct)||Se.push(ct),ue.set(ct,He)}),Se.length)for(let He=1;He<z.length;He++){let ct=z[He];Se.forEach(Ct=>ct.set(Ct,In(he,Ct)))}}return z}(z,Vn,on);const Dr=function zo(he,z){let F=null,ue=null;return Array.isArray(z)&&z.length?(F=Lo(z[0]),z.length>1&&(ue=Lo(z[z.length-1]))):z instanceof Map&&(F=Lo(z)),F||ue?new xs(he,F,ue):null}(z,Vn);return new zr(z,Vn,Kt,Dr)}}var me=e(36895);let W=(()=>{class he extends a._j{constructor(F,ue){super(),this._nextAnimationId=0,this._renderer=F.createRenderer(ue.body,{id:"0",encapsulation:r.ViewEncapsulation.None,styles:[],data:{animation:[]}})}build(F){const ue=this._nextAnimationId.toString();this._nextAnimationId++;const Se=Array.isArray(F)?(0,a.vP)(F):F;return kt(this._renderer,null,ue,"register",[Se]),new De(ue,this._renderer)}}return he.\u0275fac=function(F){return new(F||he)(r.\u0275\u0275inject(r.RendererFactory2),r.\u0275\u0275inject(me.K0))},he.\u0275prov=r.\u0275\u0275defineInjectable({token:he,factory:he.\u0275fac}),he})();class De extends a.LC{constructor(z,F){super(),this._id=z,this._renderer=F}create(z,F){return new et(this._id,z,F||{},this._renderer)}}class et{constructor(z,F,ue,Se){this.id=z,this.element=F,this._renderer=Se,this.parentPlayer=null,this._started=!1,this.totalTime=0,this._command("create",ue)}_listen(z,F){return this._renderer.listen(this.element,`@@${this.id}:${z}`,F)}_command(z,...F){return kt(this._renderer,this.element,this.id,z,F)}onDone(z){this._listen("done",z)}
1onStart(z){this._listen("start",z)}onDestroy(z){this._listen("destroy",z)}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(z){this._command("setPosition",z)}getPosition(){return this._renderer.engine.players[+this.id]?.getPosition()??0}}function kt(he,z,F,ue,Se){return he.setProperty(z,`@@${F}:${ue}`,Se)}const Bt="@.disabled";let Fn=(()=>{class he{constructor(F,ue,Se){this.delegate=F,this.engine=ue,this._zone=Se,this._currentId=0,this._microtaskId=1,this._animationCallbacksBuffer=[],this._rendererCache=new Map,this._cdRecurDepth=0,this.promise=Promise.resolve(0),ue.onRemovalComplete=(He,ct)=>{const Ct=ct?.parentNode(He);Ct&&ct.removeChild(Ct,He)}}createRenderer(F,ue){const He=this.delegate.createRenderer(F,ue);if(!(F&&ue&&ue.data&&ue.data.animation)){let Ln=this._rendererCache.get(He);return Ln||(Ln=new qr("",He,this.engine,()=>this._rendererCache.delete(He)),this._rendererCache.set(He,Ln)),Ln}const ct=ue.id,Ct=ue.id+"-"+this._currentId;this._currentId++,this.engine.register(Ct,F);const Kt=Ln=>{Array.isArray(Ln)?Ln.forEach(Kt):this.engine.registerTrigger(ct,Ct,F,Ln.name,Ln)};return ue.data.animation.forEach(Kt),new ai(this,Ct,He,this.engine)}begin(){this._cdRecurDepth++,this.delegate.begin&&this.delegate.begin()}_scheduleCountTask(){this.promise.then(()=>{this._microtaskId++})}scheduleListenerCallback(F,ue,Se){F>=0&&F<this._microtaskId?this._zone.run(()=>ue(Se)):(0==this._animationCallbacksBuffer.length&&Promise.resolve(null).then(()=>{this._zone.run(()=>{this._animationCallbacksBuffer.forEach(He=>{const[ct,Ct]=He;ct(Ct)}),this._animationCallbacksBuffer=[]})}),this._animationCallbacksBuffer.push([ue,Se]))}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 he.\u0275fac=function(F){return new(F||he)(r.\u0275\u0275inject(r.RendererFactory2),r.\u0275\u0275inject(Os),r.\u0275\u0275inject(r.NgZone))},he.\u0275prov=r.\u0275\u0275defineInjectable({token:he,factory:he.\u0275fac}),he})();class qr{constructor(z,F,ue,Se){this.namespaceId=z,this.delegate=F,this.engine=ue,this._onDestroy=Se,this.destroyNode=this.delegate.destroyNode?He=>F.destroyNode(He):null}get data(){return this.delegate.data}destroy(){this.engine.destroy(this.namespaceId,this.delegate),this.delegate.destroy(),this._onDestroy?.()}createElement(z,F){return this.delegate.createElement(z,F)}createComment(z){return this.delegate.createComment(z)}createText(z){return this.delegate.createText(z)}appendChild(z,F){this.delegate.appendChild(z,F),this.engine.onInsert(this.namespaceId,F,z,!1)}insertBefore(z,F,ue,Se=!0){this.delegate.insertBefore(z,F,ue),this.engine.onInsert(this.namespaceId,F,z,Se)}removeChild(z,F,ue){this.engine.onRemove(this.namespaceId,F,this.delegate,ue)}selectRootElement(z,F){return this.delegate.selectRootElement(z,F)}parentNode(z){return this.delegate.parentNode(z)}nextSibling(z){return this.delegate.nextSibling(z)}setAttribute(z,F,ue,Se){this.delegate.setAttribute(z,F,ue,Se)}removeAttribute(z,F,ue){this.delegate.removeAttribute(z,F,ue)}addClass(z,F){this.delegate.addClass(z,F)}removeClass(z,F){this.delegate.removeClass(z,F)}setStyle(z,F,ue,Se){this.delegate.setStyle(z,F,ue,Se)}removeStyle(z,F,ue){this.delegate.removeStyle(z,F,ue)}setProperty(z,F,ue){"@"==F.charAt(0)&&F==Bt?this.disableAnimations(z,!!ue):this.delegate.setProperty(z,F,ue)}setValue(z,F){this.delegate.setValue(z,F)}listen(z,F,ue){return this.delegate.listen(z,F,ue)}disableAnimations(z,F){this.engine.disableAnimations(z,F)}}class ai extends qr{constructor(z,F,ue,Se,He){super(F,ue,Se,He),this.factory=z,this.namespaceId=F}setProperty(z,F,ue){"@"==F.charAt(0)?"."==F.charAt(1)&&F==Bt?this.disableAnimations(z,ue=void 0===ue||!!ue):this.engine.process(this.namespaceId,z,F.slice(1),ue):this.delegate.setProperty(z,F,ue)}listen(z,F,ue){if("@"==F.charAt(0)){const Se=function li(he){switch(he){case"body":return document.body;case"document":return document;case"window":return window;default:return he}}(z);let He=F.slice(1),ct="";return"@"!=He.charAt(0)&&([He,ct]=function Ks(he){const z=he.indexOf(".");return[he.substring(0,z),he.slice(z+1)]}(He)),this.engine.listen(this.namespaceId,Se,He,ct,Ct=>{this.factory.scheduleListenerCallback(Ct._data||-1,ue,Ct)})}return this.delegate.listen(z,F,ue)}}let Vs=(()=>{class he extends Os{constructor(F,ue,Se,He){super(F.body,ue,Se)}ngOnDestroy(){this.flush()}}return he.\u0275fac=function(F){return new(F||he)(r.\u0275\u0275inject(me.K0),r.\u0275\u0275inject(hn),r.\u0275\u0275inject(qi),r.\u0275\u0275inject(r.ApplicationRef))},he.\u0275prov=r.\u0275\u0275defineInjectable({token:he,factory:he.\u0275fac}),he})();const Go=[{provide:a._j,useClass:W},{provide:qi,useFactory:function lo(){return new Eo}},{provide:Os,useClass:Vs},{provide:r.RendererFactory2,useFactory:function na(he,z,F){return new Fn(he,z,F)},deps:[t.se,Os,r.NgZone]}],gs=[{provide:hn,useFactory:()=>new se},{provide:r.ANIMATION_MODULE_TYPE,useValue:"BrowserAnimations"},...Go],$s=[{provide:hn,useClass:zt},{provide:r.ANIMATION_MODULE_TYPE,useValue:"NoopAnimations"},...Go];let ji=(()=>{class he{static withConfig(F){return{ngModule:he,providers:F.disableAnimations?$s:gs}}}return he.\u0275fac=function(F){return new(F||he)},he.\u0275mod=r.\u0275\u0275defineNgModule({type:he}),he.\u0275inj=r.\u0275\u0275defineInjector({providers:gs,imports:[t.b2]}),he})();var Bo=e(38419),Bi=e(89383);const Js=(0,t.Cb)("NGX_TRANSLATE_STATE");var _r=e(24702),ei=e(54004),no=e(39646),er=e(21540);class qs{constructor(z,F,ue,Se){this.transferState=z,this.http=F,this.prefix=ue,this.suffix=Se}getTranslation(z){const ue=this.transferState.get(Js,{})[z];return(0,_r.Uh)(ue)?(0,no.of)(ue):this.http.get(`${this.prefix}${z}${er.N.production?`.${{"ar.json5":"e595f754d9f5f8c2b254b41e528dff37","bn.json5":"3e35455e2036d86f46bece4bcdd55f8d","ca.json5":"c9bc4fb7b273f1ac34a8227d22030b7a","cs.json5":"07b4a8bd235594762ba3f000dd7453cd","de.json5":"aa5f603414e68fb4de028c42e3c007f3","el.json5":"02b62052ecef029d6ba0e5fb913c139f","en.json5":"30a28242ef9dea6c075168cca3ea72aa","es.json5":"e101e6b89fd201dc66db18f8b4d63087","fi.json5":"a9bb14efd736e039639460ff5389558f","fr.json5":"2e521a825f507896bc8d3244a78522e5","gd.json5":"26cbe79be6c3043f3cc0813465fc00a0","hi.json5":"7b609e4499e502692511b2923f43b829","hu.json5":"39474ec2d5b4c9f8ba47d7303b5d06f2","it.json5":"a1c57036a295a354f4abc4d087dfb57b","ja.json5":"ee5571ddc8750ceb6114479e79c3463f","kk.json5":"7466afeb4e95dc4e9b21a067815dbafd","lv.json5":"e39281d38ef2d17c10b70d5375a5c8b6","nl.json5":"013dbcbecb4fc7b9c3f39bc218eaff2a","pl.json5":"87009391a274b984872d5521bf5a8f63","pt-BR.json5":"625a7bd1949fa43e15dfa667d50d10e6","pt-PT.json5":"6174866499ac464ae3a13aff70cc0b36","sr-cyr.json5":"8b1d8baddfa738ac53a58eb968b1736b","sr-lat.json5":"bfeb0119427872cdc3aaa19632e78264","sv.json5":"e9b944d4541989d6ceb61e4570b12ee8","sw.json5":"6e0b0b954a4172b38b776ff6f436a28e","tr.json5":"c20c37896aa19995a4b7ed3155d222de","uk.json5":"5c074d2fc01b1da7b7eb2b9395c72c39","vi.json5":"39f069f72a959b52ee1f7fbaf95cee7f"}[z+".json5"]}`:""}${this.suffix}`,{responseType:"text"}).pipe((0,ei.U)(He=>JSON.parse(He)))}}var pa=e(80056),Uo=e(49671),Ls=e(71884),Hs=e(94086),ha=e(11365),Qi=e(95698),ss=e(34793),ks=e(61135),Xi=e(89653),zs=e(70323),Ea=e(13465),ro=e(19168),ti=e(24755),gi=e(61182),Ms=e(79530),Ps=e(55784),Gs=e(64200),bs=e(9769);const wo=function(he){return{timeToExpire:he}};let ea=(()=>{class he{constructor(F,ue,Se){this.activeModal=F,this.authService=ue,this.store=Se,this.response=new r.EventEmitter,this.timeToExpire=(er.N.auth.ui.timeUntilIdle+er.N.auth.ui.idleGracePeriod)/1e3/60}ngOnInit(){(0,_r.Uh)(this.graceTimer)&&clearTimeout(this.graceTimer),this.graceTimer=setTimeout(()=>{this.logOutPressed()},er.N.auth.ui.idleGracePeriod)}extendSessionPressed(){this.extendSessionAndCloseModal()}logOutPressed(){this.closeModal(),this.store.dispatch(new Gs.Hj)}closePressed(){this.extendSessionAndCloseModal()}extendSessionAndCloseModal(){(0,_r.Uh)(this.graceTimer)&&clearTimeout(this.graceTimer),this.authService.setIdle(!1),this.closeModal()}closeModal(){this.activeModal.close(),this.response.emit(!0)}}return he.\u0275fac=function(F){return new(F||he)(r.\u0275\u0275directiveInject(bs.Kz),r.\u0275\u0275directiveInject(ti.e8),r.\u0275\u0275directiveInject(Xi.yh))},he.\u0275cmp=r.\u0275\u0275defineComponent({type:he,selectors:[["ds-idle-modal"]],outputs:{response:"response"},decls:20,vars:15,consts:[["id","idle-modal.header",1,"modal-header"],["type","button","aria-label","Close",1,"close",3,"click"],["aria-hidden","true"],[1,"modal-body"],[1,"modal-footer"],["type","button","aria-label","Log out",1,"cancel","btn","btn-danger",3,"click"],[1,"fas","fa-sign-out-alt"],["type","button","aria-label","Extend session","ngbAutofocus","",1,"confirm","btn","btn-primary",3,"click"],[1,"fas","fa-redo-alt"]],template:function(F,ue){1&F&&(r.\u0275\u0275elementStart(0,"div")(1,"div",0),r.\u0275\u0275text(2),r.\u0275\u0275pipe(3,"translate"),r.\u0275\u0275elementStart(4,"button",1),r.\u0275\u0275listener("click",function(){return ue.closePressed()}),r.\u0275\u0275elementStart(5,"span",2),r.\u0275\u0275text(6,"\xd7"),r.\u0275\u0275elementEnd()()(),r.\u0275\u0275elementStart(7,"div",3)(8,"p"),r.\u0275\u0275text(9),r.\u0275\u0275pipe(10,"translate"),r.\u0275\u0275elementEnd()(),r.\u0275\u0275elementStart(11,"div",4)(12,"button",5),r.\u0275\u0275listener("click",function(){return ue.logOutPressed()}),r.\u0275\u0275element(13,"i",6),r.\u0275\u0275text(14),r.\u0275\u0275pipe(15,"translate"),r.\u0275\u0275elementEnd(),r.\u0275\u0275elementStart(16,"button",7),r.\u0275\u0275listener("click",function(){return ue.extendSessionPressed()}),r.\u0275\u0275element(17,"i",8),r.\u0275\u0275text(18),r.\u0275\u0275pipe(19,"translate"),r.\u0275\u0275elementEnd()()()),2&F&&(r.\u0275\u0275advance(2),r.\u0275\u0275textInterpolate1("",r.\u0275\u0275pipeBind1(3,4,"idle-modal.header")," "),r.\u0275\u0275advance(7),r.\u0275\u0275textInterpolate(r.\u0275\u0275pipeBind2(10,6,"idle-modal.info",r.\u0275\u0275pureFunction1(13,wo,ue.timeToExpire))),r.\u0275\u0275advance(5),r.\u0275\u0275textInterpolate1(" ",r.\u0275\u0275pipeBind1(15,9,"idle-modal.log-out")," "),r.\u0275\u0275advance(4),r.\u0275\u0275textInterpolate1(" ",r.\u0275\u0275pipeBind1(19,11,"idle-modal.extend-session")," "))},dependencies:[Bi.X$],encapsulation:2}),he})();var Yo=e(80132),Ss=e(25330);function fa(he,z){}const ve=["*"];let Ue=(()=>{class he extends Ss.F{constructor(){super(...arguments),this.inAndOutputNames=["shouldShowRouteLoader","shouldShowFullscreenLoader"]}getComponentName(){return"RootComponent"}importThemedComponent(F){return e(70743)(`./${F}/app/root/root.component`)}importUnthemedComponent(){return Promise.resolve().then(e.bind(e,47798))}}return he.\u0275fac=function(){let z;
1return function(ue){return(z||(z=r.\u0275\u0275getInheritedFactory(he)))(ue||he)}}(),he.\u0275cmp=r.\u0275\u0275defineComponent({type:he,selectors:[["ds-themed-root"]],inputs:{shouldShowFullscreenLoader:"shouldShowFullscreenLoader",shouldShowRouteLoader:"shouldShowRouteLoader"},features:[r.\u0275\u0275InheritDefinitionFeature],ngContentSelectors:ve,decls:5,vars:0,consts:[["vcr",""],["content",""]],template:function(F,ue){1&F&&(r.\u0275\u0275projectionDef(),r.\u0275\u0275template(0,fa,0,0,"ng-template",null,0,r.\u0275\u0275templateRefExtractor),r.\u0275\u0275elementStart(2,"div",null,1),r.\u0275\u0275projection(4),r.\u0275\u0275elementEnd())},encapsulation:2}),he})(),Oe=(()=>{class he{constructor(F,ue,Se,He,ct,Ct,Kt,on,Ln,Vn,Dr){this._window=F,this.document=ue,this.platformId=Se,this.themeService=He,this.translate=ct,this.store=Ct,this.authService=Kt,this.router=on,this.cssService=Ln,this.modalService=Vn,this.modalConfig=Dr,this.isRouteLoading$=new ks.X(!1),this.notificationOptions=er.N.notifications,this.models=Ms.Cq,(0,me.NF)(this.platformId)&&this.trackIdleModal(),this.isThemeLoading$=this.themeService.isThemeLoading$,this.storeCSSVariables()}ngOnInit(){this.modalConfig.beforeDismiss=(0,Uo.Z)(function*(){return"function"!=typeof this?.componentInstance?.beforeDismiss||this.componentInstance.beforeDismiss()}),this.isAuthBlocking$=this.store.pipe((0,Xi.Ys)(ro.v$),(0,Ls.x)()),this.dispatchWindowSize(this._window.nativeWindow.innerWidth,this._window.nativeWindow.innerHeight)}storeCSSVariables(){this.cssService.clearCSSVariables(),this.cssService.addCSSVariables(this.cssService.getCSSVariablesFromStylesheets(this.document))}ngAfterViewInit(){this.router.events.pipe((0,Hs.g)(0)).subscribe(F=>{F instanceof ss.OD?(0,Yo.e)(this.isRouteLoading$,!0):(F instanceof ss.m2||F instanceof ss.gk)&&(0,Yo.e)(this.isRouteLoading$,!1)})}onResize(F){this.dispatchWindowSize(F.target.innerWidth,F.target.innerHeight)}dispatchWindowSize(F,ue){this.store.dispatch(new zs.D(F,ue))}trackIdleModal(){const F=this.authService.isUserIdle(),ue=this.authService.isAuthenticated();F.pipe((0,ha.M)(ue)).subscribe(([Se,He])=>{if(Se&&He&&!this.idleModalOpen){const ct=this.modalService.open(ea,{ariaLabelledBy:"idle-modal.header"});this.idleModalOpen=!0,ct.componentInstance.response.pipe((0,Qi.q)(1)).subscribe(Ct=>{Ct&&(this.idleModalOpen=!1)})}})}}return he.\u0275fac=function(F){return new(F||he)(r.\u0275\u0275directiveInject(Ea.DC),r.\u0275\u0275directiveInject(me.K0),r.\u0275\u0275directiveInject(r.PLATFORM_ID),r.\u0275\u0275directiveInject(Ps.fY),r.\u0275\u0275directiveInject(Bi.sK),r.\u0275\u0275directiveInject(Xi.yh),r.\u0275\u0275directiveInject(ti.e8),r.\u0275\u0275directiveInject(ss.F0),r.\u0275\u0275directiveInject(gi.I),r.\u0275\u0275directiveInject(bs.FF),r.\u0275\u0275directiveInject(bs.NM))},he.\u0275cmp=r.\u0275\u0275defineComponent({type:he,selectors:[["ds-app"]],hostBindings:function(F,ue){1&F&&r.\u0275\u0275listener("resize",function(He){return ue.onResize(He)},!1,r.\u0275\u0275resolveWindow)},decls:4,vars:8,consts:[[3,"shouldShowFullscreenLoader","shouldShowRouteLoader"]],template:function(F,ue){1&F&&(r.\u0275\u0275element(0,"ds-themed-root",0),r.\u0275\u0275pipe(1,"async"),r.\u0275\u0275pipe(2,"async"),r.\u0275\u0275pipe(3,"async")),2&F&&r.\u0275\u0275property("shouldShowFullscreenLoader",r.\u0275\u0275pipeBind1(1,2,ue.isAuthBlocking$)||r.\u0275\u0275pipeBind1(2,4,ue.isThemeLoading$))("shouldShowRouteLoader",r.\u0275\u0275pipeBind1(3,6,ue.isRouteLoading$))},dependencies:[Ue,me.Ov],changeDetection:0}),he})();var Ke=e(88776),yt=e(66943),sn=e(37641),mn=e(19672),xn=e(39300);let Zr=(()=>{class he{constructor(F){this.store=F}canActivate(){return this.store.pipe((0,Xi.Ys)(ro.v$)).pipe((0,ei.U)(F=>!1===F),(0,Ls.x)(),(0,xn.h)(F=>!0===F),(0,Qi.q)(1))}}return he.\u0275fac=function(F){return new(F||he)(r.\u0275\u0275inject(Xi.yh))},he.\u0275prov=r.\u0275\u0275defineInjectable({token:he,factory:he.\u0275fac,providedIn:"root"}),he})();var Kr=e(74851),Pr=e(97874),ir=e(50503),hi=e(95376),$r=e(43438),vi=e(40747),Qo=e(96482),io=e(20204),br=e(85665),co=e(48729);function Ei(he,z){}const xr=["*"];let oo=(()=>{class he extends Ss.F{getComponentName(){return"PageNotFoundComponent"}importThemedComponent(F){return e(11489)(`./${F}/app/pagenotfound/pagenotfound.component`)}importUnthemedComponent(){return Promise.resolve().then(e.bind(e,23463))}}return he.\u0275fac=function(){let z;
1return function(ue){return(z||(z=r.\u0275\u0275getInheritedFactory(he)))(ue||he)}}(),he.\u0275cmp=r.\u0275\u0275defineComponent({type:he,selectors:[["ds-themed-pagenotfound"]],features:[r.\u0275\u0275InheritDefinitionFeature],ngContentSelectors:xr,decls:5,vars:0,consts:[["vcr",""],["content",""]],template:function(F,ue){1&F&&(r.\u0275\u0275projectionDef(),r.\u0275\u0275template(0,Ei,0,0,"ng-template",null,0,r.\u0275\u0275templateRefExtractor),r.\u0275\u0275elementStart(2,"div",null,1),r.\u0275\u0275projection(4),r.\u0275\u0275elementEnd())},encapsulation:2}),he})();function Xo(he,z){}const vs=["*"];let Ys=(()=>{class he extends Ss.F{getComponentName(){return"ForbiddenComponent"}importThemedComponent(F){return e(64496)(`./${F}/app/forbidden/forbidden.component`)}importUnthemedComponent(){return Promise.resolve().then(e.bind(e,79224))}}return he.\u0275fac=function(){let z;return function(ue){return(z||(z=r.\u0275\u0275getInheritedFactory(he)))(ue||he)}}(),he.\u0275cmp=r.\u0275\u0275defineComponent({type:he,selectors:[["ds-themed-forbidden"]],features:[r.\u0275\u0275InheritDefinitionFeature],ngContentSelectors:vs,decls:5,vars:0,consts:[["vcr",""],["content",""]],template:function(F,ue){1&F&&(r.\u0275\u0275projectionDef(),r.\u0275\u0275template(0,Xo,0,0,"ng-template",null,0,r.\u0275\u0275templateRefExtractor),r.\u0275\u0275elementStart(2,"div",null,1),r.\u0275\u0275projection(4),r.\u0275\u0275elementEnd())},encapsulation:2}),he})();var ra=e(20066);function ta(he,z){}const yi=["*"];let Ki=(()=>{class he extends Ss.F{getComponentName(){return"PageInternalServerErrorComponent"}importThemedComponent(F){return e(84978)(`./${F}/app/page-internal-server-error/page-internal-server-error.component`)}importUnthemedComponent(){return Promise.resolve().then(e.bind(e,89616))}}return he.\u0275fac=function(){let z;return function(ue){return(z||(z=r.\u0275\u0275getInheritedFactory(he)))(ue||he)}}(),he.\u0275cmp=r.\u0275\u0275defineComponent({type:he,selectors:[["ds-themed-page-internal-server-error"]],features:[r.\u0275\u0275InheritDefinitionFeature],ngContentSelectors:yi,decls:5,vars:0,consts:[["vcr",""],["content",""]],template:function(F,ue){1&F&&(r.\u0275\u0275projectionDef(),r.\u0275\u0275template(0,ta,0,0,"ng-template",null,0,r.\u0275\u0275templateRefExtractor),r.\u0275\u0275elementStart(2,"div",null,1),r.\u0275\u0275projection(4),r.\u0275\u0275elementEnd())},encapsulation:2}),he})();var zi=e(8322);let Is=(()=>{class he{constructor(F,ue){this.router=F,this.rootDataService=ue}canActivateChild(F,ue){return this.rootDataService.checkServerAvailability().pipe((0,Qi.q)(1),(0,ei.U)(Se=>!!Se||this.router.parseUrl((0,ir.Tt)())))}listenForRouteChanges(){this.rootDataService.invalidateRootCache(),this.router.events.pipe((0,xn.h)(F=>F instanceof ss.OD)).subscribe(()=>{this.rootDataService.invalidateRootCache()})}}return he.\u0275fac=function(F){return new(F||he)(r.\u0275\u0275inject(ss.F0),r.\u0275\u0275inject(zi.d))},he.\u0275prov=r.\u0275\u0275defineInjectable({token:he,factory:he.\u0275fac,providedIn:"root"}),he})();var uo=e(39841),Mi=e(78969),Lr=e(58460),Zo=e(68285),Es=e(27645),_o=e(54541),so=e(40367),Zi=e(86099),go=e(47235),us=e(93824),as=e(99252),Jo=e(6575),Io=e(29389),ia=e(33089),ya=e(44647),oa=e(8920),Ca=e(19937),sa=e(47556),ma=e(36750);let Qs=(()=>{class he{constructor(F,ue,Se,He,ct,Ct){this.menuService=F,this.browseService=ue,this.authorizationService=Se,this.modalService=He,this.scriptDataService=ct,this.authService=Ct}resolve(F,ue){return(0,uo.a)([this.createPublicMenu$(),this.createAdminMenuIfLoggedIn$()]).pipe((0,ei.U)(Se=>Se.every(Boolean)))}waitForMenu$(F){return this.menuService.getMenu(F).pipe((0,so.s)(ue=>(0,_r.Uh)(ue)),(0,ei.U)(()=>!0))}createPublicMenu$(){const F=[{id:"browse_global_communities_and_collections",active:!1,visible:!0,index:0,model:{type:Lr.U.LINK,text:"menu.section.browse_global_communities_and_collections",link:"/community-list"}},{id:"contacto",active:!1,visible:!0,index:3,model:{type:Lr.U.LINK,text:"Contacto",link:"/contacto"}},{id:"politicas",active:!1,visible:!0,index:4,model:{type:Lr.U.LINK,text:"Pol\xedticas",link:"/p
1oliticas",disabled:!1}}];return this.browseService.getBrowseDefinitions().pipe((0,Zo.hC)()).subscribe(ue=>{ue.hasSucceeded&&(ue.payload.page.forEach(Se=>{F.push({id:`browse_global_by_${Se.id}`,parentID:"browse_global",active:!1,visible:!0,model:{type:Lr.U.LINK,text:`menu.section.browse_global_by_${Se.id}`,link:`/browse/${Se.id}`}})}),F.push({id:"browse_global",active:!1,visible:!0,index:1,model:{type:Lr.U.TEXT,text:"menu.section.browse_global"}})),F.forEach(Se=>this.menuService.addSection(Mi.z.PUBLIC,Object.assign(Se,{shouldPersistOnRouteChange:!0})))}),this.waitForMenu$(Mi.z.PUBLIC)}createAdminMenuIfLoggedIn$(){return this.authService.isAuthenticated().pipe((0,Zi.z)(F=>F?this.createAdminMenu$():(0,no.of)(!0)))}createAdminMenu$(){return this.createMainMenuSections(),this.createSiteAdministratorMenuSections(),this.createExportMenuSections(),this.createImportMenuSections(),this.createAccessControlMenuSections(),this.waitForMenu$(Mi.z.ADMIN)}createMainMenuSections(){(0,uo.a)([this.authorizationService.isAuthorized(go.i.IsCollectionAdmin),this.authorizationService.isAuthorized(go.i.IsCommunityAdmin),this.authorizationService.isAuthorized(go.i.AdministratorOf),this.authorizationService.isAuthorized(go.i.CanSubmit),this.authorizationService.isAuthorized(go.i.CanEditItem)]).subscribe(([F,ue,Se,He,ct])=>{const Ct=[{id:"new_community",parentID:"new",active:!1,visible:ue,model:{type:Lr.U.ONCLICK,text:"menu.section.new_community",function:()=>{this.modalService.open(us.e)}}},{id:"new_collection",parentID:"new",active:!1,visible:ue,model:{type:Lr.U.ONCLICK,text:"menu.section.new_collection",function:()=>{this.modalService.open(as.i)}}},{id:"new_item",parentID:"new",active:!1,visible:He,model:{type:Lr.U.ONCLICK,text:"menu.section.new_item",function:()=>{this.modalService.open(Jo.g)}}},{id:"new_process",parentID:"new",active:!1,visible:Se,model:{type:Lr.U.LINK,text:"menu.section.new_process",link:"/processes/new"}}],Kt=[{id:"edit_community",parentID:"edit",active:!1,visible:ue,model:{type:Lr.U.ONCLICK,text:"menu.section.edit_community",function:()=>{this.modalService.open(Io.p)}}},{id:"edit_collection",parentID:"edit",active:!1,visible:F,model:{type:Lr.U.ONCLICK,text:"menu.section.edit_collection",function:()=>{this.modalService.open(ia.A)}}},{id:"edit_item",parentID:"edit",active:!1,visible:ct,model:{type:Lr.U.ONCLICK,text:"menu.section.edit_item",function:()=>{this.modalService.open(ya.z)}}}],on={id:"new",active:!1,visible:Ct.some(Dr=>Dr.visible),model:{type:Lr.U.TEXT,text:"menu.section.new"},icon:"plus",index:0},Ln={id:"edit",active:!1,visible:Kt.some(Dr=>Dr.visible),model:{type:Lr.U.TEXT,text:"menu.section.edit"},icon:"pencil-alt",index:1};[...Ct,on,...Kt,Ln,{id:"processes",active:!1,visible:Se,model:{type:Lr.U.LINK,text:"menu.section.processes",link:"/processes"},icon:"terminal",index:10},{id:"health",active:!1,visible:Se,model:{type:Lr.U.LINK,text:"menu.section.health",link:"/health"},icon:"heartbeat",index:11}].forEach(Dr=>this.menuService.addSection(Mi.z.ADMIN,Object.assign(Dr,{shouldPersistOnRouteChange:!0})))})}createExportMenuSections(){[].forEach(ue=>this.menuService.addSection(Mi.z.ADMIN,ue)),(0,uo.a)([this.authorizationService.isAuthorized(go.i.AdministratorOf),this.scriptDataService.scriptWithNameExistsAndCanExecute(sa.BW)]).pipe((0,xn.h)(([ue,Se])=>ue&&Se),(0,Qi.q)(1)).subscribe(()=>{this.menuService.addSection(Mi.z.ADMIN,{id:"export",active:!1,visible:!0,model:{type:Lr.U.TEXT,text:"menu.section.export"},icon:"file-export",index:3,shouldPersistOnRouteChange:!0}),this.menuService.addSection(Mi.z.ADMIN,{id:"export_metadata",parentID:"export",active:!0,visible:!0,model:{type:Lr.U.ONCLICK,text:"menu.section.export_metadata",function:()=>{this.modalService.open(oa.T)}},shouldPersistOnRouteChange:!0}),this.menuService.addSection(Mi.z.ADMIN,{id:"export_batch",parentID:"export",active:!1,visible:!0,model:{type:Lr.U.ONCLICK,text:"menu.section.export_batch",function:()=>{this.modalService.open(ma.P)}},shouldPersistOnRouteChange:!0})})}createImportMenuSections(){[].forEach(ue=>this.menuService.addSection(Mi.z.ADMIN,ue)),(0,uo.a)([this.authorizationService.isAuthorized(go.i.AdministratorOf),this.scriptDataService.scriptWithNameExistsAndCanExecute(sa.As)]).pipe((0,xn.h)(([ue,Se])=>ue&&Se),(0,Qi.q)(1)).subscribe(()=>{this.menuService.addSection(Mi.z.ADMIN,{id:"import",active:!1,visible:!0,model:{type:Lr.U.TEXT,text:"menu.section.import"},icon:"file-import",index:2,shouldPersistOnRouteChange:!0}),this.menuService.addSection(Mi.z.ADMIN,{id:"import_metadata",parentID:"import",active:!0,visible:!0,model:{type:Lr.U.LINK,text:"menu.section.import_metadata",link:"/admin/metadata-import"},shouldPersistOnRouteChange:!0}),this.menuService.addSection(Mi.z.ADMIN,{id:"import_batch",parentID:"import",active:!1,visible:!0,model:{type:Lr.U.LINK,text:"menu.section.import_batch",link:"/admin/batch-import"},shouldPersistOnRouteChange:!0})})}createSiteAdministratorMenuSections(){this.authorizationService.isAuthorized(go.i.AdministratorOf).subscribe(F=>{[{id:"admin_search",active:!1,visible:F,model:{type:Lr.U.LINK,text:"menu.section.admin_search",link:"/admin/search"},icon:"search",index:5},{id:"registries",active:!1,visible:F,model:{type:Lr.U.TEXT,text:"menu.section.registries"},icon:"list",index:6},{id:"registries_metadata",parentID:"registries",active:!1,visible:F,model:{type:Lr.U.LINK,text:"menu.section.registries_metadata",link:"admin/registries/metadata"}},{id:"registries_format",parentID:"registries",active:!1,visible:F,model:{type:Lr.U.LINK,text:"menu.section.registries_format",link:"admin/registries/bitstream-formats"}},{id:"curation_tasks",active:!1,visible:F,model:{type:Lr.U.LINK,text:"menu.section.curation_task",link:"admin/curation-tasks"}
1,icon:"filter",index:7},{id:"workflow",active:!1,visible:F,model:{type:Lr.U.LINK,text:"menu.section.workflow",link:"/admin/workflow"},icon:"user-check",index:11},{id:"system_wide_alert",active:!1,visible:F,model:{type:Lr.U.LINK,text:"menu.section.system-wide-alert",link:"/admin/system-wide-alert"},icon:"exclamation-circle",index:12}].forEach(Se=>this.menuService.addSection(Mi.z.ADMIN,Object.assign(Se,{shouldPersistOnRouteChange:!0})))})}createAccessControlMenuSections(){(0,uo.a)([this.authorizationService.isAuthorized(go.i.AdministratorOf),this.authorizationService.isAuthorized(go.i.CanManageGroups)]).subscribe(([F,ue])=>{[{id:"access_control_people",parentID:"access_control",active:!1,visible:F,model:{type:Lr.U.LINK,text:"menu.section.access_control_people",link:"/access-control/epeople"}},{id:"access_control_groups",parentID:"access_control",active:!1,visible:ue,model:{type:Lr.U.LINK,text:"menu.section.access_control_groups",link:"/access-control/groups"}},{id:"access_control_bulk",parentID:"access_control",active:!1,visible:F,model:{type:Lr.U.LINK,text:"menu.section.access_control_bulk",link:"/access-control/bulk-access"}},{id:"access_control",active:!1,visible:ue||F,model:{type:Lr.U.TEXT,text:"menu.section.access_control"}
1,icon:"key",index:4}].forEach(He=>this.menuService.addSection(Mi.z.ADMIN,Object.assign(He,{shouldPersistOnRouteChange:!0})))})}}return he.\u0275fac=function(F){return new(F||he)(r.\u0275\u0275inject(_o.h),r.\u0275\u0275inject(Es.I),r.\u0275\u0275inject(Ca._),r.\u0275\u0275inject(bs.FF),r.\u0275\u0275inject(sa.UY),r.\u0275\u0275inject(ti.e8))},he.\u0275prov=r.\u0275\u0275defineInjectable({token:he,factory:he.\u0275fac,providedIn:"root"}),he})();function Ts(he,z){}const As=["*"];let Xs=(()=>{class he extends Ss.F{getComponentName(){return"PageErrorComponent"}importThemedComponent(F){return e(53781)(`./${F}/app/page-error/page-error.component`)}importUnthemedComponent(){return Promise.resolve().then(e.bind(e,69983))}}return he.\u0275fac=function(){let z;return function(ue){return(z||(z=r.\u0275\u0275getInheritedFactory(he)))(ue||he)}}(),he.\u0275cmp=r.\u0275\u0275defineComponent({type:he,selectors:[["ds-themed-page-error"]],features:[r.\u0275\u0275InheritDefinitionFeature],ngContentSelectors:As,decls:5,vars:0,consts:[["vcr",""],["content",""]],template:function(F,ue){1&F&&(r.\u0275\u0275projectionDef(),r.\u0275\u0275template(0,Ts,0,0,"ng-template",null,0,r.\u0275\u0275templateRefExtractor),r.\u0275\u0275elementStart(2,"div",null,1),r.\u0275\u0275projection(4),r.\u0275\u0275elementEnd())},encapsulation:2}),he})(),qo=(()=>{class he{}return he.\u0275fac=function(F){return new(F||he)},he.\u0275mod=r.\u0275\u0275defineNgModule({type:he}),he.\u0275inj=r.\u0275\u0275defineInjector({imports:[ss.Bz.forRoot([{path:ir.be,component:Ki},{path:ir.fP,component:Xs},{path:"",canActivate:[Zr],canActivateChild:[Is],resolve:[Qs],children:[{path:"",redirectTo:"/home",pathMatch:"full"},{path:"reload/:rnd",component:oo,pathMatch:"full",canActivate:[io.w]},{path:"home",loadChildren:()=>Promise.all([e.e(1032),e.e(7851),e.e(8881),e.e(467),e.e(5493),e.e(3657)]).then(e.bind(e,13657)).then(z=>z.HomePageModule),data:{showBreadcrumbs:!1},canActivate:[br.J]},{path:"community-list",loadChildren:()=>Promise.all([e.e(7851),e.e(5851)]).then(e.bind(e,55851)).then(z=>z.CommunityListPageModule),canActivate:[br.J]},{path:"id",loadChildren:()=>e.e(6407).then(e.bind(e,36407)).then(z=>z.LookupIdModule),canActivate:[br.J]},{path:"handle",loadChildren:()=>e.e(6407).then(e.bind(e,36407)).then(z=>z.LookupIdModule),canActivate:[br.J]},{path:ir.Wb,loadChildren:()=>Promise.all([e.e(1032),e.e(7851),e.e(8881),e.e(467),e.e(9635),e.e(194),e.e(8592),e.e(5448)]).then(e.bind(e,5448)).then(z=>z.RegisterPageModule),canActivate:[co.C]},{path:ir.T5,loadChildren:()=>Promise.all([e.e(1032),e.e(7851),e.e(8881),e.e(467),e.e(9635),e.e(194),e.e(8592),e.e(5588)]).then(e.bind(e,95588)).then(z=>z.ForgotPasswordModule),canActivate:[br.J]},{path:$r.Ww,loadChildren:()=>Promise.all([e.e(1032),e.e(7851),e.e(8881),e.e(467),e.e(9635),e.e(194),e.e(5475),e.e(8247),e.e(8592),e.e(7613)]).then(e.bind(e,29152)).then(z=>z.CommunityPageModule),canActivate:[br.J]},{path:hi.yu,loadChildren:()=>Promise.all([e.e(1032),e.e(7851),e.e(8881),e.e(467),e.e(9635),e.e(194),e.e(5493),e.e(5475),e.e(1021),e.e(438),e.e(6858),e.e(8247),e.e(8592),e.e(2746)]).then(e.bind(e,52746)).then(z=>z.CollectionPageModule),canActivate:[br.J]},{path:vi.Oo,loadChildren:()=>Promise.all([e.e(1032),e.e(7851),e.e(8881),e.e(467),e.e(9635),e.e(194),e.e(5493),e.e(5475),e.e(1021),e.e(438),e.e(1317),e.e(4281),e.e(6858),e.e(4350)]).then(e.bind(e,74350)).then(z=>z.ItemPageModule),canActivate:[br.J]},{path:"entities/:entity-type",loadChildren:()=>Promise.all([e.e(1032),e.e(7851),e.e(8881),e.e(467),e.e(9635),e.e(194),e.e(5493),e.e(5475),e.e(1021),e.e(438),e.e(1317),e.e(4281),e.e(6858),e.e(4350)]).then(e.bind(e,74350)).then(z=>z.ItemPageModule),canActivate:[br.J]},{path:ir.EH,loadChildren:()=>Promise.all([e.e(1032),e.e(7851),e.e(8881),e.e(467),e.e(9635),e.e(194),e.e(1021),e.e(825)]).then(e.bind(e,80825)).then(z=>z.BitstreamPageModule),canActivate:[br.J]},{path:ir.wU,loadChildren:()=>Promise.all([e.e(1032),e.e(7851),e.e(8881),e.e(467),e.e(9635),e.e(194),e.e(1021),e.e(825)]).then(e.bind(e,80825)).then(z=>z.BitstreamPageModule),canActivate:[br.J]},{path:"mydspace",loadChildren:()=>Promise.all([e.e(1032),e.e(7851),e.e(8881),e.e(467),e.e(5493),e.e(5475),e.e(8592),e.e(1)]).then(e.bind(e,60001)).then(z=>
1z.MyDSpacePageModule),canActivate:[Kr.J,br.J]},{path:"search",loadChildren:()=>Promise.all([e.e(1032),e.e(7851),e.e(8881),e.e(467),e.e(5493),e.e(9185)]).then(e.bind(e,69185)).then(z=>z.SearchPageRoutingModule),canActivate:[br.J]},{path:"browse",loadChildren:()=>Promise.all([e.e(1032),e.e(7851),e.e(8881),e.e(467),e.e(9635),e.e(194),e.e(5475),e.e(8247),e.e(31)]).then(e.bind(e,60031)).then(z=>z.BrowseByPageModule),canActivate:[br.J]},{path:ir.h,loadChildren:()=>Promise.all([e.e(1032),e.e(7851),e.e(8881),e.e(467),e.e(9635),e.e(194),e.e(5493),e.e(5475),e.e(8592),e.e(9016)]).then(e.bind(e,77614)).then(z=>z.AdminModule),canActivate:[Pr.X,br.J]},{path:"login",loadChildren:()=>e.e(5215).then(e.bind(e,65215)).then(z=>z.LoginPageModule)},{path:"contacto",loadChildren:()=>e.e(208).then(e.bind(e,90208)).then(z=>z.ContactoRoutingModule)},{path:"politicas",loadChildren:()=>e.e(585).then(e.bind(e,585)).then(z=>z.PoliticasRoutingModule)},{path:"login",loadChildren:()=>e.e(5215).then(e.bind(e,65215)).then(z=>z.LoginPageModule)},{path:"logout",loadChildren:()=>e.e(510).then(e.bind(e,80510)).then(z=>z.LogoutPageModule)},{path:"submit",loadChildren:()=>Promise.all([e.e(1032),e.e(7851),e.e(8881),e.e(467),e.e(9635),e.e(194),e.e(5493),e.e(5475),e.e(4576),e.e(290)]).then(e.bind(e,20290)).then(z=>z.SubmitPageModule),canActivate:[br.J]},{path:"import-external",loadChildren:()=>Promise.all([e.e(1032),e.e(7851),e.e(8881),e.e(467),e.e(9635),e.e(194),e.e(5493),e.e(5475),e.e(4576),e.e(3168)]).then(e.bind(e,73168)).then(z=>z.ImportExternalPageModule),canActivate:[br.J]},{path:"workspaceitems",loadChildren:()=>Promise.all([e.e(1032),e.e(7851),e.e(8881),e.e(467),e.e(9635),e.e(194),e.e(5493),e.e(5475),e.e(4576),e.e(8592),e.e(2354)]).then(e.bind(e,92354)).then(z=>z.WorkspaceitemsEditPageModule),canActivate:[br.J]},{path:ir.pH,loadChildren:()=>Promise.all([e.e(1032),e.e(7851),e.e(8881),e.e(467),e.e(9635),e.e(194),e.e(5493),e.e(5475),e.e(1021),e.e(438),e.e(4576),e.e(1317),e.e(4281),e.e(6858),e.e(4350),e.e(8592),e.e(4189)]).then(e.bind(e,84189)).then(z=>z.WorkflowItemsEditPageModule),canActivate:[br.J]},{path:ir.jF,loadChildren:()=>Promise.all([e.e(1032),e.e(7851),e.e(8881),e.e(467),e.e(9635),e.e(194),e.e(8592)]).then(e.bind(e,56980)).then(z=>z.ProfilePageModule),canActivate:[Kr.J,br.J]},{path:Qo.gm,loadChildren:()=>Promise.all([e.e(8592),e.e(7625)]).then(e.bind(e,67625)).then(z=>z.ProcessPageModule),canActivate:[Kr.J,br.J]},{path:ir.sF,loadChildren:()=>e.e(4748).then(e.bind(e,64748)).then(z=>z.InfoModule)},{path:ir.mG,loadChildren:()=>e.e(5713).then(e.bind(e,5713)).then(z=>z.RequestCopyModule),canActivate:[br.J]},{path:ir.Bw,component:Ys},{path:"statistics",loadChildren:()=>Promise.all([e.e(8592),e.e(1924)]).then(e.bind(e,61924)).then(z=>z.StatisticsPageRoutingModule),canActivate:[br.J]},{path:ir.Gz,loadChildren:()=>e.e(7189).then(e.bind(e,27189)).then(z=>z.HealthPageModule)},{path:ir.QX,loadChildren:()=>Promise.all([e.e(1032),e.e(7851),e.e(8881),e.e(467),e.e(9635),e.e(194),e.e(8592),e.e(1517)]).then(e.bind(e,67516)).then(z=>z.AccessControlModule),canActivate:[ra.E,br.J]},{path:"subscriptions",loadChildren:()=>e.e(4958).then(e.bind(e,54958)).then(z=>z.SubscriptionsPageRoutingModule),canActivate:[Kr.J]},{path:"**",pathMatch:"full",component:oo}]}],{useHash:!1,scrollPositionRestoration:"enabled",anchorScrolling:"enabled",initialNavigation:"enabledBlocking",preloadingStrategy:ss.GZ,onSameUrlNavigation:"reload"}),ss.Bz]}),he})();var es=e(92967);let Fo=(()=>{class he{constructor(F,ue){this.actions=F,this.store=ue,this.replay=(0,Ke.GW)(()=>this.actions.pipe((0,Ke.l4)(es.H.REPLAY),(0,ei.U)(Se=>(0,no.of)({}))),{dispatch:!1}),this.resize=(0,Ke.GW)(()=>this.actions.pipe((0,Ke.l4)(es.H.REPLAY,es.H.REHYDRATE),(0,ei.U)(()=>new zs.D(window.innerWidth,window.innerHeight))))}}return he.\u0275fac=function(F){return new(F||he)(r.\u0275\u0275inject(Ke.eX),r.\u0275\u0275inject(Xi.yh))},he.\u0275prov=r.\u0275\u0275defineInjectable({token:he,factory:he.\u0275fac}),he})(),Da=(()=>{class he{constructor(F,ue){this.actions$=F,this.store=ue}}return he.\u0275fac=function(F){return new(F||he)(r.\u0275\u0275inject(Ke.e
1X),r.\u0275\u0275inject(Xi.yh))},he.\u0275prov=r.\u0275\u0275defineInjectable({token:he,factory:he.\u0275fac}),he})();var To=e(63900),Vi=e(50590),ys=e(53342),Gr=e(55562);let Bs=(()=>{class he{constructor(F,ue){this.actions$=F,this.menuService=ue,this.menuID=Mi.z.PUBLIC,this.resize$=(0,Ke.GW)(()=>this.actions$.pipe((0,Ke.l4)(zs.L.RESIZE),(0,ei.U)(()=>new ys.tv(this.menuID)))),this.routeChange$=(0,Ke.GW)(()=>this.actions$.pipe((0,Ke.l4)(yt.tE),(0,ei.U)(()=>new ys.tv(this.menuID)))),this.openAdminSidebar$=(0,Ke.GW)(()=>this.actions$.pipe((0,Ke.l4)(ys.mk.EXPAND_MENU_PREVIEW),(0,To.w)(Se=>this.menuService.getMenu(Se.menuID).pipe((0,Vi.P)(),(0,ei.U)(He=>He.id===Mi.z.ADMIN&&!He.previewCollapsed&&He.collapsed?new ys.tv(Mi.z.PUBLIC):new Gr.B)))))}}return he.\u0275fac=function(F){return new(F||he)(r.\u0275\u0275inject(Ke.eX),r.\u0275\u0275inject(_o.h))},he.\u0275prov=r.\u0275\u0275defineInjectable({token:he,factory:he.\u0275fac}),he})();var $i=e(18505),ps=e(73725);class No{constructor(z){this.original=z}toString(){if((0,_r.xb)(this.original))return"";{const z=this.original.indexOf("?");return z<0?this.original:this.original.substring(0,z)}}}let Ra=(()=>{class he{constructor(F){this.actions$=F,this.routeChange$=(0,Ke.GW)(()=>this.actions$.pipe((0,Ke.l4)(yt.tE),(0,xn.h)(ue=>this.previousPath!==this.getBaseUrl(ue)),(0,$i.b)(ue=>{this.previousPath=this.getBaseUrl(ue)}),(0,ei.U)(()=>new ps.ZZ)))}getBaseUrl(F){return new No(F.payload.routerState.url).toString()}}return he.\u0275fac=function(F){return new(F||he)(r.\u0275\u0275inject(Ke.eX))},he.\u0275prov=r.\u0275\u0275defineInjectable({token:he,factory:he.\u0275fac}),he})();var Oa=e(24351),ts=e(77579),$e=e(88002),_e=e(35355),pe=e(67357),Ie=e(74297),N=e(88360),J=e(58943),H=e(31241),de=e(76123),Pe=e(39510),Fe=e(93369),Qe=e(46418),Nt=e(51117),Un=(()=>{return(he=Un||(Un={}))[he.Add=0]="Add",he[he.Remove=1]="Remove",Un;var he})();let Hn=(()=>{class he{constructor(F,ue,Se,He,ct,Ct,Kt,on,Ln,Vn,Dr){this.actions$=F,this.relationshipService=ue,this.relationshipTypeService=Se,this.submissionObjectService=He,this.store=ct,this.objectCache=Ct,this.requestService=Kt,this.notificationsService=on,this.translateService=Ln,this.selectableListService=Vn,this.debounceTime=Dr,this.requestQueue=new ts.x,this.debounceMap={},this.nameVariantUpdates={},this.initialActionMap={},this.mapLastActions$=(0,Ke.GW)(()=>this.actions$.pipe((0,Ke.l4)(_e.g.ADD_RELATIONSHIP,_e.g.REMOVE_RELATIONSHIP),(0,ei.U)(yr=>{const{item1:or,item2:fr,submissionId:ci,relationshipType:Pi}=yr.payload,Di=this.createIdentifier(or,fr,Pi);(0,_r.xI)(this.debounceMap[Di])?(this.initialActionMap[Di]=yr.type,this.debounceMap[Di]=new ks.X(yr.type),this.debounceMap[Di].pipe(this.debounceTime(500),(0,Qi.q)(1)).subscribe(ns=>{if(this.initialActionMap[Di]===ns)if(ns===_e.g.ADD_RELATIONSHIP){let fs=yr.payload.nameVariant;(0,_r.Uh)(this.nameVariantUpdates[Di])&&(fs=this.nameVariantUpdates[Di],delete this.nameVariantUpdates[Di]),this.requestQueue.next({type:Un.Add,item1:or,item2:fr,relationshipType:Pi,submissionId:ci,nameVariant:fs})}else this.requestQueue.next({type:Un.Remove,item1:or,item2:fr,relationshipType:Pi,submissionId:ci});delete this.debounceMap[Di],delete this.initialActionMap[Di]})):this.debounceMap[Di].next(yr.type)})),{dispatch:!1}),this.updateNameVariantsActions$=(0,Ke.GW)(()=>this.actions$.pipe((0,Ke.l4)(_e.g.UPDATE_NAME_VARIANT),(0,ei.U)(yr=>{const{item1:or,item2:fr,relationshipType:ci,submissionId:Pi,nameVariant:Di}=yr.payload,ns=this.createIdentifier(or,fr,ci);(0,_r.Uh)(this.debounceMap[ns])?this.nameVariantUpdates[ns]=Di:this.relationshipService.updateNameVariant(or,fr,ci,Di).pipe((0,xn.h)(Za=>(0,_r.Uh)(Za.payload)),(0,Qi.q)(1)).subscribe(Za=>{this.updateAfterPatchSubmissionId=Pi,this.relationshipService.refreshRelationshipItemsInCache(or),this.relationshipService.refreshRelationshipItemsInCache(fr)})})),{dispatch:!1}),this.updateRelationshipActions$=(0,Ke.GW)(()=>this.actions$.pipe((0,Ke.l4)(_e.g.UPDATE_RELATIONSHIP),(0,ei.U)(yr=>{this.updateAfterPatchSubmissionId=yr.payload.submissionId})),{dispatch:!1}),this.saveSubmissionSection=(0,Ke.GW)(()=>this.actions$.pipe((0,Ke.l4)(de.ci.EMPTY,Pe.nQ.COMMIT_JSON_PATCH_OPERATIONS),(0,xn.h)(()=>(0,_r.Uh)(this.updateAfterPatchSubmissionId)),(0,To.w)(()=>this.refreshWorkspaceItemInCache(this.updateAfterPatchSubmissionId)),(0,ei.U)(yr=>new N.hM(this.updateAfterPatchSubmissionId,[yr],!1)))),this.executeRequestsInQueue()}executeRequestsInQueue(){this.requestQueue.pipe((0,Oa.b)(F=>{switch(F.type){case Un.Add:return this.addRelationship(F.item1,F.item2,F.relationshipType,F.submissionId,F.nameVariant).pipe((0,ei.U)(()=>F));case Un.Remove:return this.removeRelationship(F.item1,F.item2,F.relationshipType).pipe((0,ei.U)(()=>F));default:return[F]}}),(0,To.w)(F=>this.refreshWorkspaceItemInCache(F.submissionId))).subscribe(F=>{this.store.dispatch(new N.hM(F.id,[F],!1))})}createIdentifier(F,ue,Se){return`${F.uuid}-${ue.uuid}-${Se}`}addRelationship(F,ue,Se,He,ct){const Ct=F.firstMetadataValue("dspace.entity.type"),Kt=ue.firstMetadataValue("dspace.entity.type");return this.relationshipTypeService.getRelationshipTypeByLabelAndTypes(Se,Ct,Kt).pipe((0,Zi.z)(on=>null===on?[null]:on.rightwardType===Se?this.relationshipService.addRelationship(on.id,ue,F,ct,void 0):this.relationshipService.addRelationship(on.id,F,ue,void 0,ct)),(0,Qi.q)(1),(0,$i.b)(on=>{if((0,_r.xI)(on)||on.hasFailed){const Ln=`list-${He}-${Se}`;let Vn;this.selectableListService.findSelectedByCondition(Ln,Dr=>(0,_r.Uh)(Dr.indexableObject)&&Dr.indexableObject.uuid===ue.uuid).pipe((0,Qi.q)(1),(0,_r.tz)()).subscribe(Dr=>{this.selectableListService.deselectSingle(Ln,Dr)}),Vn=(0,_r.xI)(on)?this.translateService.instant("relationships.add.error.relationship-type.content",{type:Se}):this.translateService.instant("relationships.add.error.server.content"),this.notificationsService.error(this.translateService.instant("relationships.add.error.title"),Vn)}}))}removeRelationship(F,ue,Se){return this.relationshipService.getRelationshipByItemsAndLabel(F,ue,Se).pi
1pe((0,Zi.z)(He=>this.relationshipService.deleteRelationship(He.id,"none")),(0,Qi.q)(1))}refreshWorkspaceItemInCache(F){return this.submissionObjectService.findById(F,!1,!1,(0,Fe.l)("item")).pipe((0,Zo.xw)(),(0,Zo.xe)())}}return he.\u0275fac=function(F){return new(F||he)(r.\u0275\u0275inject(Ke.eX),r.\u0275\u0275inject($e.U),r.\u0275\u0275inject(pe.X),r.\u0275\u0275inject(Ie.O),r.\u0275\u0275inject(Xi.yh),r.\u0275\u0275inject(J.a),r.\u0275\u0275inject(H.s),r.\u0275\u0275inject(Qe.T),r.\u0275\u0275inject(Bi.sK),r.\u0275\u0275inject(Nt.w),r.\u0275\u0275inject(Zo.r_))},he.\u0275prov=r.\u0275\u0275defineInjectable({token:he,factory:he.\u0275fac}),he})();var Tr=e(20337),Er=e(36221),Ci=e(92871);const jo=[Fo,Bs,Da,Ra,(()=>{class he{constructor(F){this.actions$=F,this.initTheme$=(0,Ke.GW)(()=>this.actions$.pipe((0,Ke.l4)(Ke.jK),(0,ei.U)(()=>{const ue=(0,Ci.ML)();return(0,_r.Uh)(ue)?new Tr.t(ue.name):new Tr.t(Er.B)})))}}return he.\u0275fac=function(F){return new(F||he)(r.\u0275\u0275inject(Ke.eX))},he.\u0275prov=r.\u0275\u0275defineInjectable({token:he,factory:he.\u0275fac}),he})(),Hn];let ni=0;const Us=[function Ha(he){return(z,F)=>(ni++,console.log("@ngrx action",ni,F.type),console.log("state",JSON.stringify(z)),console.log("action",JSON.stringify(F)),console.log("------------------------------------"),he(z,F))}],xa=[function Na(he){return(z,F)=>(F.type===es.H.REHYDRATE&&(z=Object.assign({},z,F.payload)),he(z,F))}];var Ma=e(27239),ws=e(47355),aa=e(57388);let Pa=(()=>{class he extends aa.N{set(F,ue,Se){(0,ws.set)(F,ue,Se),this.updateSource()}remove(F,ue){(0,ws.remove)(F,ue),this.updateSource()}get(F){return(0,ws.getJSON)(F)}getAll(){return(0,ws.getJSON)()}}return he.\u0275fac=function(){let z;return function(ue){return(z||(z=r.\u0275\u0275getInheritedFactory(he)))(ue||he)}}(),he.\u0275prov=r.\u0275\u0275defineInjectable({token:he,factory:he.\u0275fac}),he})();var Ia,La=e(37457),ba=e(55724),la=e(70655),Sa=e(9498);function Ta(he,z){}let Ba=((Ia=class extends Ss.F{getComponentName(){return"ExpandableNavbarSectionComponent"}importThemedComponent(z){return e(86192)(`./${z}/app/navbar/expandable-navbar-section/expandable-navbar-section.component`)}importUnthemedComponent(){return Promise.resolve().then(e.bind(e,55724))}}).\u0275fac=function(){let he;return function(F){return(he||(he=r.\u0275\u0275getInheritedFactory(Ia)))(F||Ia)}}(),Ia.\u0275cmp=r.\u0275\u0275defineComponent({type:Ia,selectors:[["ds-themed-expandable-navbar-section"]],features:[r.\u0275\u0275InheritDefinitionFeature],ngContentSelectors:["*"],decls:5,vars:0,consts:[["vcr",""],["content",""]],template:function(z,F){1&z&&(r.\u0275\u0275projectionDef(),r.\u0275\u0275template(0,Ta,0,0,"ng-template",null,0,r.\u0275\u0275templateRefExtractor),r.\u0275\u0275elementStart(2,"div",null,1),r.\u0275\u0275projection(4),r.\u0275\u0275elementEnd())},encapsulation:2}),Ia);Ba=(0,la.__decorate)([(0,Sa.h)(Mi.z.PUBLIC,!0)],Ba);var Xa=e(31367),Ve=e(44186),rt=e(24006);e(73566);const Ht=[Bs],Yn=[La.h,ba.ExpandableNavbarSectionComponent,Ba];let Ge=(()=>{class he{static withEntryComponents(){return{ngModule:he,providers:Yn.map(F=>({provide:F}))}}}return he.\u0275fac=function(F){return new(F||he)},he.\u0275mod=r.\u0275\u0275defineNgModule({type:he}),he.\u0275inj=r.\u0275\u0275defineInjector({imports:[me.ez,Ve.m,Xa.$,rt.u5,Ke.sQ.forFeature(Ht),Ms.IR.forRoot()]}),he})(),Ot=(()=>{class he{serialize(F){const{url:ue}=F;return{url:ue,queryParams:F.root.queryParams}}}return he.\u0275fac=function(F){return new(F||he)},he.\u0275prov=r.\u0275\u0275defineInjectable({token:he,factory:he.\u0275fac}),he})();var nn=e(62843),Tn=e(70262),jn=e(7696),Sr=e(99705),Jr=e(5488),kn=e(85714);let Ir=(()=>{class he{constructor(F,ue,Se){this.inj=F,this.router=ue,this.store=Se,this.refreshTokenRequestUrls=[]}isUnauthorized(F){return 401===F.status}isSuccess(F){return 200===F.status||204===F.status}isAuthRequest(F){return F&&F.url&&(F.url.endsWith("/authn/login")||F.url.endsWith("/authn/logout")||F.url.endsWith("/authn/status"))}isLoginResponse(F){return F.url&&F.url.endsWith("/authn/login")}isLogoutResponse(F){return F.url&&F.url.endsWith("/authn/logout")}isStatusResponse(F){return F.url&&F.url.endsWith("/authn/status")}parseLocation(F){let ue=F.trim();ue=ue.replace('location="',""),ue=ue.replace('"',"");let Se=/%3A%2F%2F/g;return ue=ue.replace(Se,"://"),Se=/%3A/g,ue=ue.replace(Se,":"),ue.trim()}
1sortAuthMethods(F){const ue=[];let Se=!1,He=!1;return F.forEach(ct=>{ct.authMethodType===kn.q.Password&&(ue.push(ct),Se=!0),ct.authMethodType===kn.q.Ldap&&(He=!0)}),He&&!Se&&ue.push(new Jr.H(kn.q.Password,0)),F.forEach(ct=>{ct.authMethodType!==kn.q.Password&&ue.push(ct)}),ue}parseAuthMethodsFromHeaders(F){let ue=[];if((0,_r.UE)(F.get("www-authenticate"))){const ct=F.get("www-authenticate").match(/(\w+ (\w+=((".*?")|[^,]*)(, )?)*)/g);for(const Ct in ct){const Kt=ct[Ct].split(", "),on=Kt[0].split(" ")[0].trim();let Ln;if(1===Kt.length)Ln=new Jr.H(on,Number(Ct)),ue.push(Ln);else if(Kt.length>1){let Vn=Kt[1];Vn=this.parseLocation(Vn),Ln=new Jr.H(on,Number(Ct),Vn),ue.push(Ln)}}ue=this.sortAuthMethods(ue)}else ue.push(new Jr.H(kn.q.Password,0));return ue}makeAuthStatusObject(F,ue,Se,He){const ct=new jn.t;if(He&&(ct.authMethods=this.parseAuthMethodsFromHeaders(He)),ct.id=null,ct.okay=!0,F)ct.authenticated=!0,ct.token=new Sr.Y(ue);else if(ct.authenticated=!1,(0,_r.UE)(Se))if("string"==typeof Se)try{ct.error=JSON.parse(Se)}catch(Ct){console.error('Unknown auth error "',Se,'" caused ',Ct),ct.error={error:"Unknown",message:"Unknown auth error",status:500,timestamp:Date.now(),path:""}}else ct.error=Se;return ct}intercept(F,ue){const Se=this.inj.get(ti.e8),He=Se.getToken();let ct,Ct;if(Se.isTokenExpired())return(0,no.of)(null);if(this.isAuthRequest(F)&&!this.isLogoutResponse(F)||!(0,_r.UE)(He))ct=F.clone();else{Ct=Se.buildAuthHeader(He);let Kt=F.headers.set("authorization",Ct);const on=Se.getImpersonateID();(0,_r.Uh)(on)&&(Kt=Kt.set("X-On-Behalf-Of",on)),ct=F.clone({headers:Kt})}return ue.handle(ct).pipe((0,ei.U)(Kt=>{if(Kt instanceof d.Zn&&this.isSuccess(Kt)&&this.isAuthRequest(Kt)){let on;if(this.isLoginResponse(Kt)){const Ln=Kt.headers.get("authorization");on=Kt.clone({body:this.makeAuthStatusObject(!0,Ln)}),this.refreshTokenRequestUrls=[]}else on=this.isStatusResponse(Kt)?Kt.clone({body:Object.assign(Kt.body,{authMethods:this.parseAuthMethodsFromHeaders(Kt.headers)})}):Kt.clone({body:this.makeAuthStatusObject(!1)});return on}return Kt}),(0,Tn.K)((Kt,on)=>{if(Kt instanceof d.UA){if(this.isAuthRequest(Kt)){this.refreshTokenRequestUrls=[];const Ln=new d.Zn({body:this.makeAuthStatusObject(!1,null,Kt.error,Kt.headers),headers:Kt.headers,status:Kt.status,statusText:Kt.statusText,url:Kt.url});return(0,no.of)(Ln)}this.isUnauthorized(Kt)&&(0,_r.K0)(He)&&Se.isTokenExpired()&&this.store.dispatch(new Gs.Er("auth.messages.expired"))}return(0,nn._)(Kt)}))}}return he.\u0275fac=function(F){return new(F||he)(r.\u0275\u0275inject(r.Injector),r.\u0275\u0275inject(ss.F0),r.\u0275\u0275inject(Xi.yh))},he.\u0275prov=r.\u0275\u0275defineInjectable({token:he,factory:he.\u0275fac}),he})();var Yr=e(93078),ka=e(22940);let Vl=(()=>{class he{constructor(F){this.localeService=F}intercept(F,ue){let Se;return this.localeService.getLanguageCodeList().pipe((0,ka.R)((He,ct)=>[...He,ct],[]),(0,Zi.z)(He=>(Se=F.clone({headers:F.headers.set("Accept-Language",He.toString())}),ue.handle(Se))))}}return he.\u0275fac=function(F){return new(F||he)(r.\u0275\u0275inject(Yr.OL))},he.\u0275prov=r.\u0275\u0275defineInjectable({token:he,factory:he.\u0275fac}),he})();var Cl=e(25309),Ua=e(22334);let $l=(()=>{class he{constructor(F,ue){this.tokenExtractor=F,this.cookieService=ue}intercept(F,ue){const Se=(F=F.clone({withCredentials:!0})).url.toLowerCase(),He=new Cl.J("/").toString().toLowerCase();if("GET"!==F.method&&"HEAD"!==F.method&&Se.startsWith(He)){const ct=this.tokenExtractor.getToken();null!==ct&&!F.headers.has(Ua.ew)&&(F=F.clone({headers:F.headers.set(Ua.ew,ct)}))}return ue.handle(F).pipe((0,$i.b)(ct=>{ct instanceof d.Zn&&ct.headers.has(Ua.aj)&&this.saveXsrfToken(ct.headers.get(Ua.aj))}),(0,Tn.K)(ct=>(ct instanceof d.UA&&ct.headers.has(Ua.aj)&&this.saveXsrfToken(ct.headers.get(Ua.aj)),(0,nn._)(ct))))}saveXsrfToken(F){this.cookieService.remove(Ua.VY),this.cookieService.set(Ua.VY,F)}}return he.\u0275fac=function(F){return new(F||he)(r.\u0275\u0275inject(d.YS),r.\u0275\u0275inject(aa.N))},he.\u0275prov=r.\u0275\u0275defineInjectable({token:he,factory:he.\u0275fac}),he})();var ml=e(35057);const Rc=he=>he.correlationId;var xc=e(18205);let ol=(()=>{class he{constructor(F,ue,Se){this.cookieService=F,this.uuidService=ue,this.store=Se}initCorrelationId(){let F=this.cookieService.get("CORRELATION-ID");(0,_r.xb)(F)&&(F=this.getCorrelationId()),(0,_r.xb)(F)&&(F=this.uuidService.generate()),this.store.dispatch(new ml.h(
1F)),this.cookieService.set("CORRELATION-ID",F)}getCorrelationId(){let F;return this.store.pipe((0,Xi.Ys)(Rc),(0,Qi.q)(1)).subscribe(ue=>{F=ue}),F}}return he.\u0275fac=function(F){return new(F||he)(r.\u0275\u0275inject(aa.N),r.\u0275\u0275inject(xc._),r.\u0275\u0275inject(Xi.yh))},he.\u0275prov=r.\u0275\u0275defineInjectable({token:he,factory:he.\u0275fac,providedIn:"root"}),he})(),Dl=(()=>{class he{constructor(F,ue){this.cidService=F,this.router=ue}intercept(F,ue){const Se=this.cidService.getCorrelationId();let He=F.headers;return(0,_r.Uh)(Se)&&(He=He.append("X-CORRELATION-ID",Se)),He=He.append("X-REFERRER",this.router.url),F=F.clone({withCredentials:!0,headers:He}),ue.handle(F)}}return he.\u0275fac=function(F){return new(F||he)(r.\u0275\u0275inject(ol),r.\u0275\u0275inject(ss.F0))},he.\u0275prov=r.\u0275\u0275defineInjectable({token:he,factory:he.\u0275fac}),he})();e(54092),e(81533),e(45439),e(63712);var le=(e(8473),e(61503),e(12194),e(95282),e(90439),e(10565),e(36630),e(23463),e(98692),e(83771),e(3999),e(79224),e(47798),e(53658),e(24958),e(71362),e(45141),e(89616),e(69983),e(96033),e(84932));const T=[me.ez,Ve.m.withEntryComponents(),Ge,le.SystemWideAlertModule,bs.IJ],$=[];let Lt=(()=>{class he{}return he.\u0275fac=function(F){return new(F||he)},he.\u0275mod=r.\u0275\u0275defineNgModule({type:he}),he.\u0275inj=r.\u0275\u0275defineInjector({providers:[...$],imports:[T]}),he})();var an=e(92161),vn=e(8086);const Sn=[];let gr=(()=>{class he{}return he.\u0275fac=function(F){return new(F||he)},he.\u0275mod=r.\u0275\u0275defineNgModule({type:he}),he.\u0275inj=r.\u0275\u0275defineInjector({providers:[...Sn.map(z=>({provide:z}))],imports:[me.ez,Ve.m,an.v,vn.I,Lt,Ge]}),he})(),tr=(()=>{class he{}return he.\u0275fac=function(F){return new(F||he)},he.\u0275mod=r.\u0275\u0275defineNgModule({type:he}),he.\u0275inj=r.\u0275\u0275defineInjector({imports:[gr]}),he})();var vr=e(63645);let Ti=(()=>{class he{constructor(F,ue){this.appConfig=F,this.platformId=ue,this.baseUrl=this.appConfig.rest.baseUrl,this.ssrBaseUrl=this.appConfig.rest.ssrBaseUrl}intercept(F,ue){if((0,me.NF)(this.platformId)||(0,_r.xb)(this.ssrBaseUrl)||this.baseUrl===this.ssrBaseUrl)return ue.handle(F);const Se=F.url.replace(this.baseUrl,this.ssrBaseUrl),He=F.clone({url:Se});return ue.handle(He)}}return he.\u0275fac=function(F){return new(F||he)(r.\u0275\u0275inject(vr.q),r.\u0275\u0275inject(r.PLATFORM_ID))},he.\u0275prov=r.\u0275\u0275defineInjectable({token:he,factory:he.\u0275fac}),he})();const Sl=[me.ez,Ve.m,Ge,d.JF,qo,Ms.IR.forRoot(),sn.w0.forRoot(),bs.IJ,Bi.aw.forRoot(),Ke.sQ.forRoot(jo),Xi.Aw.forRoot(Ma.oO,Ma.z7),yt.Qi.forRoot(),[],tr,Lt],Zl=[{provide:me.mr,useFactory:(he,z)=>{const F=he.querySelector("head > base");return F.setAttribute("href",`${z.ui.nameSpace}${z.ui.nameSpace.endsWith("/")?"":"/"}`),F.getAttribute("href")},deps:[me.K0,vr.q]},{provide:Xi.su,useFactory:function Wo(he){return he.debug?[...xa,...Us]:xa},deps:[vr.q]},{provide:yt.GC,useClass:Ot},Pa,{provide:d.TP,useClass:Ir,multi:!0},{provide:d.TP,useClass:Vl,multi:!0},{provide:d.TP,useClass:$l,multi:!0},{provide:d.TP,useClass:Dl,multi:!0},{provide:d.TP,useClass:Ti,multi:!0},...mn.nh9];let Tl=(()=>{class he{}return he.\u0275fac=function(F){return new(F||he)},he.\u0275mod=r.\u0275\u0275defineNgModule({type:he}),he.\u0275inj=r.\u0275\u0275defineInjector({providers:[...Zl],imports:[t.b2.withServerTransition({appId:"dspace-angular"}),Sl]}),he})();var hs=e(33723),Jl=e(86421),Cd=e(79248),ql=e(92834),Nc=e(45061),Lu=e(90733),Dd=e.n(Lu),Bu=e(20406),Uu=e.n(Bu),jc=e(20036);const ec="klaro-anonymous",Al="google-analytics",Od={storageName:ec,privacyPolicy:"./info/privacy",hideLearnMore:!1,acceptAll:!0,cookieExpiresAfterDays:365,htmlTexts:!0,lang:"zy",translations:{zy:{acceptAll:"cookies.consent.accept-all",acceptSelected:"cookies.consent.accept-selected",close:"cookies.consent.close",consentModal:{title:"cookies.consent.content-modal.title",description:"cookies.consent.content-modal.description"},consentNotice:{changeDescription:"cookies.consent.update",title:"cookies.consent.content-notice.title",description:"cookies.consent.content-notice.description",learnMore:"cookies.consent.content-notice.learnMore"},decline:"cookies.consent.decline",ok:"cookies.consent.ok",poweredBy:"Powered by Klaro!",privacyPolicy:{name:"cookies.consent.content-modal.privacy-policy.name",text:"cookies.consent.content-modal.privacy-policy.text"},purposeItem:{service:"cookies.consent.content-modal.service",services:"cookies.consent.content-modal.services"},purposes:{},save:"cookies.consent.save",service:{disableAll:{description:"cookies.consent.app.disable-all.description",title:"cookies.consent.app.disable-all.title"}
1,optOut:{description:"cookies.consent.app.opt-out.description",title:"cookies.consent.app.opt-out.title"},purpose:"cookies.consent.app.purpose",purposes:"cookies.consent.app.purposes",required:{title:"cookies.consent.app.required.title",description:"cookies.consent.app.required.description"}}}},services:[{name:"authentication",purposes:["functional"],required:!0,cookies:[Sr.V,ti.VI,ti.C0]},{name:"preferences",purposes:["functional"],required:!0,cookies:[Yr.Yk]},{name:"acknowledgement",purposes:["functional"],required:!0,cookies:[[/^klaro-.+$/],"dsHasAgreedEndUser"]},{name:Al,purposes:["statistical"],required:!1,cookies:[[/^_ga.?$/],[/^_gid$/]],onlyOnce:!0},{name:jc.LI,purposes:["registration-password-recovery"],required:!1,cookies:[jc.gg],onAccept:"window.refreshCaptchaScript?.call()",onDecline:"window.refreshCaptchaScript?.call()",onlyOnce:!0}]};var tc=e(59656);const Wc="dspace.agreements.cookies",bd=new r.InjectionToken("Lazily loaded Klaro",{providedIn:"root",factory:(he=(0,Uo.Z)(function*(){return yield e.e(7974).then(e.t.bind(e,17974,23))}),function(){return he.apply(this,arguments)})});var he;let Sd=(()=>{class he extends ql.D{constructor(F,ue,Se,He,ct,Ct){super(),this.translateService=F,this.authService=ue,this.ePersonService=Se,this.configService=He,this.cookieService=ct,this.lazyKlaro=Ct,this.GOOGLE_ANALYTICS_KEY="google.analytics.key",this.REGISTRATION_VERIFICATION_ENABLED_KEY="registration.verification.enabled",this.GOOGLE_ANALYTICS_SERVICE_NAME="google-analytics",this.klaroConfig=Dd()(Od)}initialize(){er.N.info.enablePrivacyStatement||(delete this.klaroConfig.privacyPolicy,this.klaroConfig.translations.zy.consentNotice.description="cookies.consent.content-notice.description.no-privacy");const F=this.configService.findByPropertyName(this.GOOGLE_ANALYTICS_KEY).pipe((0,Zo.hC)(),(0,ei.U)(Ct=>!Ct.hasSucceeded||!Ct.payload||(0,_r.xb)(Ct.payload.values))),ue=this.configService.findByPropertyName(this.REGISTRATION_VERIFICATION_ENABLED_KEY).pipe((0,Zo.hC)(),(0,ei.U)(Ct=>!Ct.hasSucceeded||!Ct.payload||(0,_r.xb)(Ct.payload.values)||"true"!==Ct.payload.values[0].toLowerCase())),Se=(0,uo.a)([F,ue]).pipe((0,ei.U)(([Ct,Kt])=>{let on=[];return Ct&&on.push(this.GOOGLE_ANALYTICS_SERVICE_NAME),Kt&&on.push(jc.LI),on}));this.translateService.setDefaultLang(er.N.defaultLanguage);const He=this.getUser$(),ct=this.translateService.get("loading.default").pipe((0,Qi.q)(1));(0,uo.a)([He,Se,ct]).subscribe(([Ct,Kt,on])=>{Ct=Dd()(Ct),(0,_r.Uh)(Ct)&&this.initializeUser(Ct),this.addAppMessages(),this.translateConfiguration(),this.klaroConfig.services=this.filterConfigServices(Kt),this.lazyKlaro.then(({setup:Ln})=>Ln(this.klaroConfig))})}getSavedPreferences(){return this.getUser$().pipe((0,ei.U)(F=>{let ue;return ue=(0,_r.xb)(F)?ec:this.getStorageName(F.uuid),this.cookieService.get(ue)}))}initializeUser(F){this.klaroConfig.callback=Uu()((Se,He)=>this.updateSettingsForUsers(F),300),this.klaroConfig.storageName=this.getStorageName(F.uuid);const ue=this.cookieService.get(ec);(0,_r.Uh)(this.getSettingsForUser(F))?this.restoreSettingsForUsers(F):(0,_r.Uh)(ue)&&(this.cookieService.set(this.getStorageName(F.uuid),ue),this.updateSettingsForUsers(F))}getUser$(){return this.authService.isAuthenticated().pipe((0,Qi.q)(1),(0,To.w)(F=>F?this.authService.getAuthenticatedUserFromStore():(0,no.of)(void 0)),(0,Qi.q)(1))}getTitleTranslation(F){return"cookies.consent.app.title."+F}getDescriptionTranslation(F){return"cookies.consent.app.description."+F}getPurposeTranslation(F){return"cookies.consent.purpose."+F}showSettings(){this.lazyKlaro.then(({show:F})=>F(this.klaroConfig))}addAppMessages(){this.klaroConfig.services.forEach(F=>{this.klaroConfig.translations.zy[F.name]={title:this.getTitleTranslation(F.name),description:this.getDescriptionTranslation(F.name)},F.purposes.forEach(ue=>{this.klaroConfig.translations.zy.purposes[ue]=this.getPurposeTranslation(ue)})})}translateConfiguration(){this.translateService.setDefaultLang(er.N.defaultLanguage),this.translate(this.klaroConfig.translations.zy)}translate(F){return"string"==typeof F?this.translateService.instant(F):(Object.entries(F).forEac
1h(([ue,Se])=>{F[ue]=this.translate(Se)}),F)}getSettingsForUser(F){const ue=F.firstMetadataValue(Wc);return(0,_r.Uh)(ue)?JSON.parse(ue):void 0}setSettingsForUser(F,ue){(0,_r.UE)(ue)?F.setMetadata(Wc,void 0,JSON.stringify(ue)):F.removeMetadata(Wc),this.ePersonService.createPatchFromCache(F).pipe((0,Qi.q)(1),(0,To.w)(Se=>(0,_r.UE)(Se)?this.ePersonService.patch(F,Se):(0,no.of)(void 0))).subscribe()}restoreSettingsForUsers(F){this.cookieService.set(this.getStorageName(F.uuid),this.getSettingsForUser(F))}updateSettingsForUsers(F){this.setSettingsForUser(F,this.cookieService.get(this.getStorageName(F.uuid)))}getStorageName(F){return"klaro-"+F}filterConfigServices(F){return this.klaroConfig.services.filter(ue=>!F.some(Se=>Se===ue.name))}}return he.\u0275fac=function(F){return new(F||he)(r.\u0275\u0275inject(Bi.sK),r.\u0275\u0275inject(ti.e8),r.\u0275\u0275inject(Nc.k),r.\u0275\u0275inject(tc.i),r.\u0275\u0275inject(aa.N),r.\u0275\u0275inject(bd))},he.\u0275prov=r.\u0275\u0275defineInjectable({token:he,factory:he.\u0275fac}),he})();var Kc=e(61445);const Nu=new r.InjectionToken("Location");function nc(){return window.location}let ju=(()=>{class he extends Kc.A{constructor(F){super(),this.location=F}redirect(F){this.location.replace(F)}getCurrentRoute(){return this.location.pathname+this.location.search}getCurrentOrigin(){return this.location.origin}}return he.\u0275fac=function(F){return new(F||he)(r.\u0275\u0275inject(Nu))},he.\u0275prov=r.\u0275\u0275defineInjectable({token:he,factory:he.\u0275fac,providedIn:"root"}),he})(),rc=(()=>{class he{constructor(F,ue,Se,He,ct){this.googleAnalytics=F,this.googleGlobalSiteTag=ue,this.klaroService=Se,this.configService=He,this.document=ct}addTrackingIdToPage(){const F=this.configService.findByPropertyName("google.analytics.key").pipe((0,Zo.hC)()),ue=this.klaroService.getSavedPreferences();(0,uo.a)([ue,F]).subscribe(([Se,He])=>{if((0,_r.xb)(Se)||(0,_r.xb)(Se[Al])||!Se[Al]||!He.hasSucceeded)return;const ct=He.payload.values[0];if(!(0,_r.xb)(ct))if(this.isGTagVersion(ct)){const Ct=this.document.createElement("script");Ct.src=`https://www.googletagmanager.com/gtag/js?id=${ct}`,this.document.body.appendChild(Ct);const Kt=this.document.createElement("script");Kt.innerHTML=`window.dataLayer = window.dataLayer || [];function gtag(){window.dataLayer.push(arguments);}\n gtag('js', new Date());gtag('config', '${ct}');`,this.document.body.appendChild(Kt),this.googleGlobalSiteTag.startTracking()}else{const Ct=this.document.createElement("script");Ct.innerHTML=`(function(i,s,o,g,r,a,m){i['GoogleAnalyticsObject']=r;i[r]=i[r]||function(){\n (i[r].q=i[r].q||[]).push(arguments)},i[r].l=1*new Date();a=s.createElement(o),\n m=s.getElementsByTagName(o)[0];a.async=1;a.src=g;m.parentNode.insertBefore(a,m)\n })(window,document,'script','https://www.google-analytics.com/analytics.js','ga');\n ga('create', '${ct}', 'auto');`,this.document.body.appendChild(Ct),this.googleAnalytics.startTracking()}})}isGTagVersion(F){return F&&F.startsWith("G-")}}return he.\u0275fac=function(F){return new(F||he)(r.\u0275\u0275inject(hs.Ti),r.\u0275\u0275inject(hs.HU),r.\u0275\u0275inject(ql.D),r.\u0275\u0275inject(tc.i),r.\u0275\u0275inject(me.K0))},he.\u0275prov=r.\u0275\u0275defineInjectable({token:he,factory:he.\u0275fac}),he})();var Vc=e(51904),$c=e(25130),Rl=e(93498),Id=e(43015);let ic=(()=>{class he extends Vc.x{constructor(F,ue,Se){super(F,ue,Se)}createShortLivedTokenRequest(F){return(0,no.of)(new $c.xo(this.requestService.generateRequestId(),F))}}return he.\u0275fac=function(F){return new(F||he)(r.\u0275\u0275inject(Rl.q),r.\u0275\u0275inject(H.s),r.\u0275\u0275inject(Id.Q))},he.\u0275prov=r.\u0275\u0275defineInjectable({token:he,factory:he.\u0275fac}),he})();var oc=e(64509),Td=e.n(oc),Hc=e(57244);class kc extends $c.xo{getResponseParser(){return Hc.o}}let zc=(()=>{class he{constructor(F,ue){this.requestService=F,this.halService=ue}sendEvent(F,ue){const Se=this.requestService.generateRequestId();this.halService.getEndpoint(F).pipe((0,ei.U)(He=>new kc(Se,He,JSON.stringify(ue))),(0,Qi.q)(1)).subscribe(He=>this.requestService.send(He))}trackViewEvent(F,ue){this.sendEvent("/statistics/viewevents",{targetId:F.uuid,targetType:F.type,referrer:ue})}trackSearchEvent(F,ue,Se,He,ct){const Ct={query:F.query,page:{size:ue.size,totalElements:ue.totalElements,totalPages:ue.totalPages,number:ue.number},sort:{by:Se.by,order:Se.order.toLowerCase()}};if((0,_r.Uh)(F.configuration)&&Object.assign(Ct,{configuration:F.configuration}),(0,_r.UE)(F.dsoTypes)&&Object.assign(Ct,{dsoType:F.dsoTypes[0].toLowerCase()}),(0,_r.Uh)(F.scope)&&Object.assign(Ct,{scope:F.scope}),(0,_r.UE)(He)){const Kt=[];for(let on=0,Ln=He.length;on<Ln;on++){const Vn=He[on];Kt.push({filter:Vn.filter,operator:Vn.operator,value:Vn.value,label:Vn.label})}Object.assign(Ct,{appliedFilters:Kt})}(0,_r.Uh)(ct)&&Object.assign(Ct,{clickedObject:ct}),this.sendEvent("/statistics/searchevents",Ct)}}return he.\u0275fac=function(F){return new(F||he)(r.\u0275\u0275inject(H.s),r.\u0275\u0275inject(Rl.q))},he.\u0275prov=r.\u0275\u0275defineInjectable({token:he,factory:he.\u0275fac,providedIn:"root"}),he})(),_l=(()=>{class he{constructor(F,ue){this.angulartics2=F,this.statisticsService=ue}startTracking(){this.angulartics2.eventTrack.pipe(this.angulartics2.filterDeveloperMode()).subscribe(F=>this.eventTrack(F))}eventTrack(F){"page_view"===F.action?this.statisticsService.trackViewEvent(F.properties.object,F.properties.referrer):"search"===F.action&&this.statisticsService.trackSearchEvent(F.properties.searchOptions,F.properties.page,F.properties.sort,F.properties.filters,F.properties.clickedObject?.split("?")[0])}}return he.\u0275fac=function(F){return new(F||he)(r.\u0275\u0275inject(hs.b),r.\u0275\u0275inject(zc))},he.\u0275prov=r.\u0275\u0275defineInjectable({token:he,factory:he.\u0275fac,providedIn:"root"}),he})();var Yc,Ad=e(82307),Gc=e(56579);let xl=((Yc=class Tu{constructor(z,F,ue,Se,He,ct,Ct,Kt,on,Ln){this.store=z,this.correlationIdService=F,this.appConfig=ue,this.translate=Se,this.localeService=He,this.angulartics2DSpace=ct,this.metadata=Ct,this.breadcrumbsService=Kt,this.themeService=on,this.menuService=Ln}static providers(){if(!Tu.isPrototypeOf(this))throw new Error("Initalization providers should only be generated from concrete subclasses of InitService");return[{provide:Tu,useClass:this},{provide:vr.q,useFactory:z=>(this.resolveAppConfig(z),er.N),deps:[t.ki]},{provide:r.APP_INITIALIZER,useFactory:z=>z.init(),deps:[Tu],multi:!0}]}static resolveAppConfig(z){}checkAuthenticationToken(){this.store.dispatch(new Gs.gi)}initCorrelationId(){this.correlationIdService.initCorrelationId()}checkEnvironment(){if(!Td()(er.N,this.appConfig))throw new Error("environment does not match app config!");er.N.debug&&console.info(er.N)}initI18n(){this.translate.addLangs(er.N.languages.filter(z=>!0===z.active).map(z=>z.code)),this.localeService.setCurrentLanguageCode()}initAngulartics(){this.angulartics2DSpace.startTracking()}initRouteListeners(){this.metadata.listenForRouteChange(),this.breadcrumbsService.listenForRouteChanges(),this.themeService.listenForRouteChanges(),this.menuService.listenForRouteChanges()}authenticationReady$(){return this.store.pipe((0,Xi.Ys)(ro.v$),(0,Ls.x)(),(0,so.s)(z=>!1===z))}}).NGRX_STATE=(0,t.Cb)("NGRX_STATE"),Yc);xl=(0,la.__decorate)([(0,la.__param)(2,(0,r.Inject)(vr.q)),(0,la.__metadata)("design:paramtypes",[Xi.yh,ol,Object,Bi.sK,Yr.OL,_l,Ad.D,Gc.d,Ps.fY,_o.h])],xl);var Wu=e(63881),Rd=e(44293);class xd{constructor(){this.production=!1,this.debug=!1,this.ui={ssl:!1,host:"localhost",port:4e3,nameSpace:"/",rateLimiter:{windowMs:6e4,max:500},useProxies:!0},this.rest={ssl:!1,host:"localhost",port:8080,nameSpace:"/"},this.actuators={endpointPath:"/actuator/health"},this.cache={msToLive:{default:9e5},control:"max-age=604800",autoSync:{defaultTime:0,maxBufferSize:100,timePerMethod:{[Wu.a.PATCH]:3}},serverSide:{debug:!1,headers:["Link"],botCache:{max:1e3,timeToLive:864e5,allowStale:!0},anonymousCache:{max:0,timeToLive:1e4,allowStale:!0}}},this.auth={ui:{timeUntilIdle:9e5,idleGracePeriod:3e5},rest:{timeLeftBeforeTokenRefresh:12e4}}
1,this.form={spellCheck:!0,validatorMap:{required:"required",regex:"pattern"}},this.notifications={rtl:!1,position:["top","right"],maxStack:8,timeOut:5e3,clickToClose:!0,animate:Rd.G.Scale},this.submission={autosave:{metadata:[],timer:0},typeBind:{field:"dc.type"},icons:{metadata:[{name:"dc.author",style:"fas fa-user"},{name:"default",style:""}],authority:{confidence:[{value:600,style:"text-success"},{value:500,style:"text-info"},{value:400,style:"text-warning"},{value:"default",style:"text-muted"}]}}},this.defaultLanguage="en",this.languages=[{code:"en",label:"English",active:!0},{code:"ar",label:"\u0627\u0644\u0639\u0631\u0628\u064a\u0629",active:!0},{code:"bn",label:"\u09ac\u09be\u0982\u09b2\u09be",active:!0},{code:"ca",label:"Catal\xe0",active:!0},{code:"cs",label:"\u010ce\u0161tina",active:!0},{code:"de",label:"Deutsch",active:!0},{code:"el",label:"\u0395\u03bb\u03bb\u03b7\u03bd\u03b9\u03ba\u03ac",active:!0},{code:"es",label:"Espa\xf1ol",active:!0},{code:"fi",label:"Suomi",active:!0},{code:"fr",label:"Fran\xe7ais",active:!0},{code:"gd",label:"G\xe0idhlig",active:!0},{code:"hi",label:"\u0939\u093f\u0902\u0926\u0940",active:!0},{code:"hu",label:"Magyar",active:!0},{code:"it",label:"Italiano",active:!0},{code:"kk",label:"\u049a\u0430\u0437\u0430\u049b",active:!0},{code:"lv",label:"Latvie\u0161u",active:!0},{code:"nl",label:"Nederlands",active:!0},{code:"pl",label:"Polski",active:!0},{code:"pt-PT",label:"Portugu\xeas",active:!0},{code:"pt-BR",label:"Portugu\xeas do Brasil",active:!0},{code:"sr-lat",label:"Srpski (lat)",active:!0},{code:"sr-cyr",label:"\u0421\u0440\u043f\u0441\u043a\u0438",active:!0},{code:"sv",label:"Svenska",active:!0},{code:"tr",label:"T\xfcrk\xe7e",active:!0},{code:"uk",label:"Y\u043a\u0440\u0430\u0457\u0301\u043d\u0441\u044c\u043a\u0430",active:!0},{code:"vi",label:"Ti\u1ebfng Vi\u1ec7t",active:!0}],this.browseBy={oneYearLimit:10,fiveYearLimit:30,defaultLowerLimit:1900,showThumbnails:!0,pageSize:20},this.communityList={pageSize:20},this.homePage={recentSubmissions:{pageSize:5,sortField:"dc.date.accessioned"},topLevelCommunityList:{pageSize:5}},this.item={edit:{undoTimeout:1e4},showAccessStatuses:!1,bitstream:{pageSize:5}},this.collection={edit:{undoTimeout:1e4}},this.themes=[{name:"dspace",headTags:[{tagName:"link",attributes:{rel:"icon",href:"assets/dspace/images/favicons/favicon.ico",sizes:"any"}},{tagName:"link",attributes:{rel:"icon",href:"assets/dspace/images/favicons/favicon.svg",type:"image/svg+xml"}},{tagName:"link",attributes:{rel:"apple-touch-icon",href:"assets/dspace/images/favicons/apple-touch-icon.png"}},{tagName:"link",attributes:{rel:"manifest",href:"assets/dspace/images/favicons/manifest.webmanifest"}}]}],this.bundle={standardBundles:["ORIGINAL","THUMBNAIL","LICENSE"]},this.mediaViewer={image:!1,video:!1},this.info={enableEndUserAgreement:!0,enablePrivacyStatement:!0},this.markdown={enabled:!1,mathjax:!1},this.vocabularies=[{filter:"subject",vocabulary:"srsc",enabled:!1}],this.comcolSelectionSort={sortField:"dc.title",sortDirection:"ASC"},this.liveRegion={messageTimeOutDurationMs:3e4,isVisible:!1},this.search={filterPlaceholdersCount:5}}}var sc=e(1588);var Ld=e(86805),uf=e(70930);let Xc=(()=>{class he extends xl{constructor(F,ue,Se,He,ct,Ct,Kt,on,Ln,Vn,Dr,yr,or,fr,ci,Pi,Di,ns){super(F,ue,He,ct,Ct,Kt,Ln,Vn,or,fr),this.store=F,this.correlationIdService=ue,this.transferState=Se,this.appConfig=He,this.translate=ct,this.localeService=Ct,this.angulartics2DSpace=Kt,this.googleAnalyticsService=on,this.metadata=Ln,this.breadcrumbsService=Vn,this.klaroService=Dr,this.authService=yr,this.themeService=or,this.menuService=fr,this.rootDataService=ci,this.serverCheckGuard=Pi,this.requestService=Di,this.halService=ns}static resolveAppConfig(F){if(F.hasKey(vr.s)){const ue=F.get(vr.s,new xd);(0,Ci.M9)(er.N,ue)}}init(){var F=this;return(0,Uo.Z)(function*(){return yield F.loadAppState(),F.checkAuthenticationToken(),F.externalAuthCheck(),F.initCorrelationId(),F.checkEnvironment(),(he=>{const z=he.production?"Production":"Development",F=he.production?"red":"green";console.info(""),console.info("%cdspace-angular","font-weight: bold;"),console.info("Version: %c7.6.3","font-weight: bold;"),console.info(`Environment: %c${z}`,`color: ${F}; font-weight: bold;`),console.info("")})(er.N),F.initI18n(),F.initAngulartics(),F.initGoogleAnalytics(),F.initRouteListeners(),F.themeService.listenForThemeChanges(!0),F.trackAuthTokenExpiration(),F.initKlaro(),yield F.authenticationReady$().toPromise(),!0})}loadAppState(){var F=this;return(0,Uo.Z)(function*(){if(F.appConfig.universal.transferState){const ue=F.transferState.get(xl.NGRX_STATE,null);return F.transferState.remove(xl.NGRX_STATE),F.store.dispatch(new es.S(es.H.REHYDRATE,ue)),function Ku(he,z){const F="object"==typeof z;return new Promise((ue,Se)=>{let ct,He=!1;he.subscribe({next:Ct=>{ct=Ct,He=!0},error:Se,complete:()=>{He?ue(ct):F?ue(z.defaultValue):Se(new Ld.K)}})})}(F.store.select(sc.v).pipe((0,so.s)(Se=>(0,_r.UE)(Se)),(0,ei.U)(()=>!0)))}return Promise.resolve(!0)})()}trackAuthTokenExpiration(){this.authService.trackTokenExpiration()}initKlaro(){this.authenticationReady$().subscribe(()=>{this.klaroService.initialize()})}initGoogleAnalytics(){this.googleAnalyticsService.addTrackingIdToPage()}externalAuthCheck(){this.sub=this.authService.isExternalAuthentication().pipe((0,xn.h)(F=>F)).subscribe(()=>{this.requestService.setStaleByHrefSubstring(this.halService.getRootHref()),this.authService.setExternalAuthStatus(!1)}),this.closeAuthCheckSubscription()}closeAuthCheckSubscription(){(function Bd(he,z){const F="object"==typeof z;return new Promise((ue,Se)=>{const He=new uf.Hp({next:ct=>{ue(ct),He.unsubscribe()},error:Se,complete:()=>{F?ue(z.defaultValue):Se(new Ld.K)}});he.subscribe(He)})})(this.authenticationReady$()).then(()=>{this.sub.unsubscribe()})}initRouteListeners(){super.initRouteListeners(),this.serverCheckGuard.listenForRouteChanges()}}return he.\u0275fac=function(F){return new(F||he)(r.\u0275\u0275inject(Xi.yh),r.\u0275\u0275inject(ol),r.\u0275\u0275inject(t.ki),r.\u0275\u0275inject(vr.q),r.\u0275\u0275inject(Bi.sK),r.\u0275\u0275inject(Yr.OL),r.\u0275\u0275inject(_l),r.\u0275\u0275inject(rc),r.\u0275\u0275inject(Ad.D),r.\u0275\u0275inject(Gc.d),r.\u0275\u0275inject(ql.D),r.\u0275\u0275inject(ti.e8),r.\u0275\u0275inject(Ps.fY),r.\u0275\u0275inject(_o.h),r.\u0275\u0275inject(zi.d),r.\u0275\u0275inject(Is),r.\u0275\u0275inject(H.s),r.\u0275\u0275inject(Rl.q))},he.\u0275prov=r.\u0275\u0275defineInjectable({token:he,factory:he.\u0275fac}),he})();
1var Ud=e(66481),ac=e(63963);let lc=(()=>{class he extends ac.z{initXSRFToken(F){return()=>new Promise(ue=>{F.get(new Cl.J("/security/csrf").toString(),void 0).pipe((0,Qi.q)(1)).subscribe(()=>{this.tokenInitialized$.next(!0)}),ue()})}}return he.\u0275fac=function(){let z;return function(ue){return(z||(z=r.\u0275\u0275getInheritedFactory(he)))(ue||he)}}(),he.\u0275prov=r.\u0275\u0275defineInjectable({token:he,factory:he.\u0275fac}),he})();var Zc=e(23631),wd=e(5360);let Fd=(()=>{class he extends Ud.V{constructor(F,ue,Se){super(),this.document=F,this.routeService=ue,this.hardRedirectService=Se}getReferrer(){return this.routeService.getHistory().pipe((0,ei.U)(F=>{const ue=F[F.length-1];if((0,_r.xI)(ue)||F.every(Se=>Se===ue))return this.document.referrer;{const He=[...F].reverse().find(ct=>ct!==ue);return new Zc.R(this.hardRedirectService.getCurrentOrigin(),He).toString()}}))}}return he.\u0275fac=function(F){return new(F||he)(r.\u0275\u0275inject(me.K0),r.\u0275\u0275inject(wd.MZ),r.\u0275\u0275inject(Kc.A))},he.\u0275prov=r.\u0275\u0275defineInjectable({token:he,factory:he.\u0275fac}),he})();const Nd=(0,t.Cb)("req");function ll(he,z){return new qs(he,z,"assets/i18n/",".json")}function Vu(he){return he.get(Nd,{})}let $u=(()=>{class he{}return he.\u0275fac=function(F){return new(F||he)},he.\u0275mod=r.\u0275\u0275defineNgModule({type:he,bootstrap:[Oe]}),he.\u0275inj=r.\u0275\u0275defineInjector({providers:[...Xc.providers(),{provide:Bo.Z,useFactory:Vu,deps:[t.ki]},{provide:r.APP_INITIALIZER,useFactory:(z,F)=>z.initXSRFToken(F),deps:[ac.z,d.eN],multi:!0},{provide:ac.z,useClass:lc},{provide:ti.e8,useClass:ti.e8},{provide:aa.N,useClass:Pa},{provide:ql.D,useClass:Sd},{provide:Jl.b,useClass:Jl.b},{provide:Yr.OL,useClass:Yr.OL},{provide:Kc.A,useClass:ju},{provide:rc,useClass:rc},{provide:hs._Q,useClass:hs._Q},{provide:Vc.x,useClass:ic},{provide:Ud.V,useClass:Fd},{provide:Nu,useFactory:nc}],imports:[t.b2.withServerTransition({appId:"dspace-angular"}),d.JF,pa.Yu.forRoot(),Cd.p.forRoot(),hs.OI.forRoot(),ji,t.Cu,Bi.aw.forRoot({loader:{provide:Bi.Zw,useFactory:ll,deps:[t.ki,d.eN]}}),Tl]}),he})();const jd=()=>t.q6().bootstrapModule($u,{}),Wd=null!==document.querySelector("script#dspace-angular-state"),Kd=()=>(er.N.production&&(0,r.enableProdMode)(),Wd?jd():fetch("assets/config.json").then(he=>he.json()).then(he=>((0,Ci.M9)(er.N,he),jd())));"complete"!==document.readyState||Wd?document.addEventListener("DOMContentLoaded",Kd):Kd()},63712:(R,c,e)=>{"use strict";e.r(c),e.d(c,{HeaderNavbarWrapperComponent:()=>h});var t=e(10565),n=e(41672),o=e(94650),i=e(36895),d=e(53658),r=e(85965),a=e(89383);function p(m,_){if(1&m&&(o.\u0275\u0275elementStart(0,"div",2),o.\u0275\u0275pipe(1,"async"),o.\u0275\u0275elementStart(2,"nav",3),o.\u0275\u0275pipe(3,"async"),o.\u0275\u0275pipe(4,"translate"),o.\u0275\u0275element(5,"ds-themed-navbar"),o.\u0275\u0275elementEnd()()),2&m){const v=o.\u0275\u0275nextContext();o.\u0275\u0275property("@slideMobileNav",o.\u0275\u0275pipeBind1(1,3,v.isNavBarCollapsed$)?"collapsed":"expanded"),o.\u0275\u0275advance(2),o.\u0275\u0275attribute("aria-hidden",o.\u0275\u0275pipeBind1(3,5,v.isNavBarCollapsed$))("aria-label",o.\u0275\u0275pipeBind1(4,7,"nav.main.description"))}}let h=(()=>{class m extends t.HeaderNavbarWrapperComponent{}return m.\u0275fac=function(){let _;return function(E){return(_||(_=o.\u0275\u0275getInheritedFactory(m)))(E||m)}}(),m.\u0275cmp=o.\u0275\u0275defineComponent({type:m,selectors:[["ds-header-navbar-wrapper"]],features:[o.\u0275\u0275InheritDefinitionFeature],decls:4,vars:3,consts:[["id","header-navbar-wrapper"],["id","mobile-navbar-wrapper",4,"ngIf"],["id","mobile-navbar-wrapper"],["id","collapsible-mobile-navbar",1,"px-3","navar1"]],template:function(v,E){1&v&&(o.\u0275\u0275elementStart(0,"div",0),o.\u0275\u0275element(1,"ds-themed-header"),o.\u0275\u0275template(2,p,6,9,"div",1),o.\u0275\u0275pipe(3,"async"),o.\u0275\u0275elementEnd()),2&v&&(o.\u0275\u0275advance(2),o.\u0275\u0275property("ngIf",o.\u0275\u0275pipeBind1(3,1,E.isMobile$)))},dependencies:[i.O5,d.i,r.n,i.Ov,a.X$],styles:["[_nghost-%COMP%]{--ds-expandable-navbar-border-top-style: solid var(--ds-expandable-navbar-border-top-height) var(--ds-expandable-navbar-border-top-color);--ds-expandable-navbar-height: calc(100vh - var(--ds-header-height))}[_nghost-%COMP%] div#header-navbar-wrapper[_ngcontent-%COMP%]{position:relative;border-bottom:var(--ds-header-navbar-border-bottom-style)}[_nghost-%COMP%] div#header-navbar-wrapper[_ngcontent-%COMP%] div#mobile-navbar-wrapper[_ngcontent-%COMP%]{width:100%;background-color:var(--ds-expandable-navbar-bg);position:absolute;z-index:var(--ds-nav-z-index);overflow:hidden}[_nghost-%COMP%] div#header-navbar-wrapper[_ngcontent-%COMP%] div#mobile-navbar-wrapper[_ngcontent-%COMP%] nav#collapsible-mobile-navbar[_ngcontent-%COMP%]{min-height:var(--ds-expandable-navbar-height);height:auto;border-bottom:var(--ds-header-navbar-border-bottom-style)}[_nghost-%COMP%] .navar1[_ngcontent-%COMP%]{background-color:var(--primary);display:flex;justify-content:space-between;align-items:center;padding:var(--spacing-md) var(--spacing-lg);box-shadow:var(--shadow-md);position:sticky;top:0;z-index:100;transition:var(--transition-normal)}[_nghost-%COMP%] .ds-menu-item, [_nghost-%COMP%] .ds-menu-toggler-wrapper{white-space:nowrap;text-decoration:none}[_nghost-%COMP%] nav#desktop-navbar #main-site-navigation .ds-menu-item-wrapper, [_nghost-%COMP%] nav#desktop-navbar #main-site-navigation .ds-menu-item, [_nghost-%COMP%] nav#desktop-navbar #main-site-navigation .ds-menu-toggler-wrapper{display:flex;align-items:center;height:100%}[_nghost-%COMP%] nav#desktop-navbar #main-site-navigation .ds-menu-item{padding:var(--ds-navbar-item-vertical-padding) var(--ds-navbar-item-horizontal-padding)}[_nghost-%COMP%] nav#desktop-navbar #main-site-navigation .ds-menu-item, [_nghost-%COMP%] nav#desktop-navbar #main-site-navigation .ds-menu-toggler-wrapper{color:#f1eded!important}[_nghost-%COMP%] nav#desktop-navbar #main-site-navigation .ds-menu-item:hover, [_nghost-%COMP%] nav#desktop-navbar #main-site-navigation .ds-menu-item:focus, [_nghost-%COMP%] nav#desktop-navbar #main-site-navigation .ds-menu-toggler-wrapper:hover, [_nghost-%COMP%] nav#desktop-navbar #main-site-navigation .ds-menu-toggler-wrapper:focus{color:var(--ds-navbar-link-color-hover)!important}[_nghost-%COMP%] nav#desktop-navbar #main-site-navigation .dropdown-menu .ds-menu-item{padding:var(--ds-navbar-dropdown-item-vertical-padding) var(--ds-navbar-dropdown-item-horizontal-padding)}[_nghost-%COMP%] nav#collapsible-mobile-navbar{border-top:var(--ds-expandable-navbar-border-top-style);padding-top:var(--ds-expandable-navbar-padding-top)}[_nghost-%COMP%] nav#collapsible-mobile-navbar #main-site-navigation .ds-menu-item{padding:var(--ds-expandable-navbar-item-vertical-padding) 0}"],data:{animation:[n.DE]}}),m})()},45439:(R,c,e)=>{"use strict";e.r(c),e.d(c,{HeaderComponent:()=>b});var t=e(36630),n=e(94650),o=e(36895),i=e(9769),d=e(34793),r=e(77485),a=e(89260),p=e(97125),h=e(94965),m=e(96033),_=e(85965),v=e(89383);function E(M,P){1&M&&(n.\u0275\u0275elementStart(0,"nav",9),n.\u0275\u0275pipe(1,"translate"),n.\u0275\u0275element(2,"ds-themed-navbar"),n.\u0275\u0275elementEnd()),2&M&&n.\u0275\u0275attribute("aria-label",n.\u0275\u0275pipeBind1(1,1,"nav.main.description"))}function O(M,P){if(1&M){const D=n.\u0275\u0275getCurrentView();n.\u0275\u0275elementStart(0,"div",10)(1,"button",11),n.\u0275\u0275listener("click",function(){n.\u0275\u0275restoreView(D);const C=n.\u0275\u0275nextContext();
1return n.\u0275\u0275resetView(C.toggleNavbar())}),n.\u0275\u0275pipe(2,"translate"),n.\u0275\u0275pipe(3,"async"),n.\u0275\u0275element(4,"span",12),n.\u0275\u0275elementEnd()()}if(2&M){const D=n.\u0275\u0275nextContext();n.\u0275\u0275advance(1),n.\u0275\u0275attribute("aria-label",n.\u0275\u0275pipeBind1(2,2,"nav.toggle"))("aria-expanded",!n.\u0275\u0275pipeBind1(3,4,D.isNavBarCollapsed$))}}let b=(()=>{class M extends t.HeaderComponent{ngOnInit(){super.ngOnInit(),this.isNavBarCollapsed$=this.menuService.isMenuCollapsed(this.menuID)}}return M.\u0275fac=function(){let P;return function(l){return(P||(P=n.\u0275\u0275getInheritedFactory(M)))(l||M)}}(),M.\u0275cmp=n.\u0275\u0275defineComponent({type:M,selectors:[["ds-header"]],features:[n.\u0275\u0275InheritDefinitionFeature],decls:21,vars:17,consts:[["id","main-site-header"],["id","main-site-header-container",1,"container","h-100","d-flex","flex-row","flex-wrap","align-items-center","justify-content-between","gapx-3","gapy-2"],["id","header-left",1,"h-100","flex-fill","d-flex","flex-row","flex-nowrap","justify-content-start","align-items-center","gapx-3"],["routerLink","/home",1,"navbar-brand","m-2"],["src","assets/dspace/images/logo.png",2,"width","50px","height","70px"],["class","navbar navbar-expand p-0 align-items-stretch align-self-stretch","id","desktop-navbar",4,"ngIf"],["id","header-right",1,"h-100","d-flex","flex-row","flex-nowrap","justify-content-end","align-items-center","gapx-1","ml-auto",2,"color","#ffffff"],["role","menubar",1,"h-100","d-flex","flex-row","flex-nowrap","align-items-center","gapx-1",2,"color","#ffffff"],["id","mobile-navbar-toggler","class","d-block d-lg-none ml-3",4,"ngIf"],["id","desktop-navbar",1,"navbar","navbar-expand","p-0","align-items-stretch","align-self-stretch"],["id","mobile-navbar-toggler",1,"d-block","d-lg-none","ml-3"],["id","navbar-toggler","type","button","aria-controls","collapsible-mobile-navbar",1,"btn",2,"color","#ffffff",3,"click"],["aria-hidden","true",1,"fas","fa-bars","fa-fw","fa-xl","toggler-icon"]],template:function(D,l){1&D&&(n.\u0275\u0275elementStart(0,"header",0)(1,"div",1)(2,"div",2),n.\u0275\u0275pipe(3,"async"),n.\u0275\u0275pipe(4,"async"),n.\u0275\u0275pipe(5,"translate"),n.\u0275\u0275elementStart(6,"a",3),n.\u0275\u0275element(7,"img",4),n.\u0275\u0275pipe(8,"translate"),n.\u0275\u0275text(9," Repositorio Institucional"),n.\u0275\u0275elementEnd(),n.\u0275\u0275template(10,E,3,3,"nav",5),n.\u0275\u0275pipe(11,"async"),n.\u0275\u0275elementEnd(),n.\u0275\u0275elementStart(12,"div",6),n.\u0275\u0275element(13,"ds-themed-search-navbar"),n.\u0275\u0275elementStart(14,"div",7),n.\u0275\u0275element(15,"ds-themed-lang-switch")(16,"ds-context-help-toggle")(17,"ds-impersonate-navbar")(18,"ds-themed-auth-nav-menu"),n.\u0275\u0275elementEnd(),n.\u0275\u0275template(19,O,5,6,"div",8),n.\u0275\u0275pipe(20,"async"),n.\u0275\u0275elementEnd()()()),2&D&&(n.\u0275\u0275advance(2),n.\u0275\u0275attribute("role",n.\u0275\u0275pipeBind1(3,5,l.isMobile$)?"navigation":"presentation")("aria-label",n.\u0275\u0275pipeBind1(4,7,l.isMobile$)?n.\u0275\u0275pipeBind1(5,9,"nav.main.description"):null),n.\u0275\u0275advance(5),n.\u0275\u0275attribute("alt",n.\u0275\u0275pipeBind1(8,11,"menu.header.image.logo")),n.\u0275\u0275advance(3),n.\u0275\u0275property("ngIf",!n.\u0275\u0275pipeBind1(11,13,l.isMobile$)),n.\u0275\u0275advance(9),n.\u0275\u0275property("ngIf",n.\u0275\u0275pipeBind1(20,15,l.isMobile$)))},dependencies:[o.O5,i.M2,d.rH,r.j,a.$,p.$,h.A,m.H,_.n,o.Ov,v.X$],styles:["[_nghost-%COMP%] #main-site-header[_ngcontent-%COMP%]{min-height:var(--ds-header-height);background-color:#1450a3}@media (min-width: 768px){[_nghost-%COMP%] #main-site-header[_ngcontent-%COMP%]{height:var(--ds-header-height)}}[_nghost-%COMP%] #main-site-header-container[_ngcontent-%COMP%]{min-height:var(--ds-header-height)}[_nghost-%COMP%] a[_ngcontent-%COMP%]{color:#fff;text-decoration:none;background-color:#0000}[_nghost-%COMP%] img#header-logo[_ngcontent-%COMP%]{height:var(--ds-header-logo-height)}[_nghost-%COMP%] button#navbar-toggler[_ngcontent-%COMP%]{color:var(--ds-header-icon-color)}[_nghost-%COMP%] button#navbar-toggler[_ngcontent-%COMP%]:hover, [_nghost-%COMP%] button#navbar-toggler[_ngcontent-%COMP%]:focus{color:var(--ds-header-icon-color-hover)}"]}),M})()},54092:(R,c,e)=>{"use strict";e.r(c),e.d(c,{HomeNewsComponent:()=>d});var t=e(41130),n=e(94650),o=e(35278),i=e(89383);let d=(()=>{class r extends t.HomeNewsComponent{constructor(){super(...arguments),this.displayedText="",this.typingSpeed=90,this.showCursor=!0}ngOnInit(){}}return r.\u0275fac=function(){let a;
1return function(h){return(a||(a=n.\u0275\u0275getInheritedFactory(r)))(h||r)}}(),r.\u0275cmp=n.\u0275\u0275defineComponent({type:r,selectors:[["ds-home-news"]],features:[n.\u0275\u0275InheritDefinitionFeature],decls:24,vars:5,consts:[[1,"background-image-container","mt-ncs"],[1,"banner"],[1,"d-flex","flex-wrap"],[1,"p-md-5","mx-md-5","p-sm-0","mx-sm-0"],[1,"h-3","text-bold","text-blue",2,"font-size","2.5rem !important"],[1,"body-2","text-center","lead","typewriter-text"],[1,"cursor"],[3,"inPlaceSearch","searchPlaceholder"],[1,"background-image"],["alt","",3,"src"]],template:function(p,h){1&p&&(n.\u0275\u0275elementStart(0,"div",0)(1,"div",1)(2,"div",2)(3,"div")(4,"div",3),n.\u0275\u0275element(5,"br")(6,"br")(7,"br"),n.\u0275\u0275elementStart(8,"h1",4),n.\u0275\u0275text(9,"Repositorio Institucional"),n.\u0275\u0275elementEnd(),n.\u0275\u0275elementStart(10,"p",5),n.\u0275\u0275text(11," Descubre y explora el conocimiento acad\xe9mico de nuestra instituci\xf3n. "),n.\u0275\u0275elementStart(12,"span",6),n.\u0275\u0275text(13,"|"),n.\u0275\u0275elementEnd()()(),n.\u0275\u0275element(14,"ds-themed-search-form",7),n.\u0275\u0275pipe(15,"translate"),n.\u0275\u0275element(16,"br")(17,"br")(18,"br")(19,"br")(20,"br")(21,"br"),n.\u0275\u0275elementEnd()()(),n.\u0275\u0275elementStart(22,"picture",8),n.\u0275\u0275element(23,"img",9),n.\u0275\u0275elementEnd()()),2&p&&(n.\u0275\u0275advance(14),n.\u0275\u0275property("inPlaceSearch",!1)("searchPlaceholder",n.\u0275\u0275pipeBind1(15,3,"home.search-form.placeholder")),n.\u0275\u0275advance(9),n.\u0275\u0275property("src","https://res.cloudinary.com/koha/image/upload/v1747892472/portada_1_hqjnwj.png",n.\u0275\u0275sanitizeUrl))},dependencies:[o.p,i.X$],styles:['[_nghost-%COMP%]{display:block}[_nghost-%COMP%] .cursor[_ngcontent-%COMP%]{animation:_ngcontent-%COMP%_blink 1s infinite;font-weight:700;color:#333}@keyframes _ngcontent-%COMP%_blink{0%,to{opacity:1}50%{opacity:0}}[_nghost-%COMP%] .h1[_ngcontent-%COMP%]{font-size:2.5rem!important;font-weight:700!important}[_nghost-%COMP%] div.background-image-container[_ngcontent-%COMP%]{width:100vw;margin-left:calc(-50vw + 50%);position:relative;left:0;right:0;color:#fff;font-weight:600}[_nghost-%COMP%] div.background-image-container[_ngcontent-%COMP%] .banner[_ngcontent-%COMP%]{height:500px;width:100vw;max-width:100%;margin-left:auto;margin-right:auto;background-image:linear-gradient(to right,rgba(10,29,86,.8),rgba(20,80,163,.8)),url(/api/placeholder/1600/900);background-size:cover;display:flex;flex-direction:column;justify-content:center;align-items:center;color:var(--white);position:relative;text-align:center;background-position:center center;overflow:hidden;padding:0 var(--spacing-md)}[_nghost-%COMP%] div.background-image-container[_ngcontent-%COMP%] .background-image[_ngcontent-%COMP%] > img[_ngcontent-%COMP%]{background-color:var(--bs-info);position:absolute;z-index:-1;top:0;left:0;width:100%;height:100%;object-fit:cover;object-position:top}[_nghost-%COMP%] div.background-image-container[_ngcontent-%COMP%] .container[_ngcontent-%COMP%]{position:relative;text-shadow:1px 1px 4px rgba(0,0,0,.6);background-color:var(--ds-banner-text-background)}[_nghost-%COMP%] div.background-image-container[_ngcontent-%COMP%] .container[_ngcontent-%COMP%]:before, [_nghost-%COMP%] div.background-image-container[_ngcontent-%COMP%] .container[_ngcontent-%COMP%]:after{content:"";display:block;width:var(--ds-banner-background-gradient-width);height:100%;top:0;position:absolute}[_nghost-%COMP%] div.background-image-container[_ngcontent-%COMP%] .container[_ngcontent-%COMP%]:before{background:linear-gradient(to left,var(--ds-banner-text-background),transparent);left:calc(-1 * var(--ds-banner-background-gradient-width))}[_nghost-%COMP%] div.background-image-container[_ngcontent-%COMP%] .container[_ngcontent-%COMP%]:after{background:linear-gradient(to right,var(--ds-banner-text-background),transparent);right:calc(-1 * var(--ds-banner-background-gradient-width))}[_nghost-%COMP%] div.background-image-container[_ngcontent-%COMP%] small.credits[_ngcontent-%COMP%]{opacity:.3;position:absolute;right:var(--bs-spacer);bottom:0}[_nghost-%COMP%] div.background-image-container[_ngcontent-%COMP%] small.credits[_ngcontent-%COMP%] a[_ngcontent-%COMP%]{color:inherit}[_nghost-%COMP%] .jumbotron[_ngcontent-%COMP%]{background-color:#0000}[_nghost-%COMP%] a[_ngcontent-%COMP%]{color:var(--ds-home-news-link-color)}[_nghost-%COMP%] a[_ngcontent-%COMP%]:hover{color:var(--ds-home-news-link-hover-color)}[_nghost-%COMP%] .lead[_ngcontent-%COMP%]{font-size:1.25rem;font-weight:400}']}),r})()},81533:(R,c,e)=>{"use strict";
1e.r(c),e.d(c,{NavbarComponent:()=>h});var t=e(24179),n=e(41672),o=e(94650),i=e(36895),d=e(83439);function r(m,_){1&m&&(o.\u0275\u0275elementContainerStart(0),o.\u0275\u0275element(1,"ds-user-menu",3),o.\u0275\u0275elementContainerEnd()),2&m&&(o.\u0275\u0275advance(1),o.\u0275\u0275property("inExpandableNavbar",!0))}function a(m,_){1&m&&o.\u0275\u0275elementContainer(0)}function p(m,_){if(1&m&&(o.\u0275\u0275elementContainerStart(0),o.\u0275\u0275template(1,a,1,0,"ng-container",4),o.\u0275\u0275pipe(2,"async"),o.\u0275\u0275pipe(3,"async"),o.\u0275\u0275elementContainerEnd()),2&m){const v=_.$implicit,E=o.\u0275\u0275nextContext();let O,b;o.\u0275\u0275advance(1),o.\u0275\u0275property("ngComponentOutlet",null==(O=o.\u0275\u0275pipeBind1(2,2,E.sectionMap$).get(v.id))?null:O.component)("ngComponentOutletInjector",null==(b=o.\u0275\u0275pipeBind1(3,4,E.sectionMap$).get(v.id))?null:b.injector)}}let h=(()=>{class m extends t.NavbarComponent{}return m.\u0275fac=function(){let _;return function(E){return(_||(_=o.\u0275\u0275getInheritedFactory(m)))(E||m)}}(),m.\u0275cmp=o.\u0275\u0275defineComponent({type:m,selectors:[["ds-navbar"]],features:[o.\u0275\u0275InheritDefinitionFeature],decls:7,vars:11,consts:[[4,"ngIf"],["role","menubar","id","main-site-navigation",1,"navbar-nav","h-100","align-items-md-stretch","gapx-3",3,"ngClass"],[4,"ngFor","ngForOf"],[3,"inExpandableNavbar"],[4,"ngComponentOutlet","ngComponentOutletInjector"]],template:function(v,E){1&v&&(o.\u0275\u0275template(0,r,2,1,"ng-container",0),o.\u0275\u0275pipe(1,"async"),o.\u0275\u0275pipe(2,"async"),o.\u0275\u0275elementStart(3,"div",1),o.\u0275\u0275pipe(4,"async"),o.\u0275\u0275template(5,p,4,6,"ng-container",2),o.\u0275\u0275pipe(6,"async"),o.\u0275\u0275elementEnd()),2&v&&(o.\u0275\u0275property("ngIf",o.\u0275\u0275pipeBind1(1,3,E.isMobile$)&&o.\u0275\u0275pipeBind1(2,5,E.isAuthenticated$)),o.\u
10275\u0275advance(3),o.\u0275\u0275property("ngClass",o.\u0275\u0275pipeBind1(4,7,E.isMobile$)?"navbar-nav-mobile":"navbar-nav-desktop"),o.\u0275\u0275advance(2),o.\u0275\u0275property("ngForOf",o.\u0275\u0275pipeBind1(6,9,E.sections)))},dependencies:[i.mk,i.$G,i.sg,i.O5,d.UserMenuComponent,i.Ov],styles:["nav.navbar[_ngcontent-%COMP%]{align-items:baseline}nav.navbar[_ngcontent-%COMP%] .navbar-inner-container[_ngcontent-%COMP%]{border-top:1px var(--ds-header-navbar-border-top-color) solid}.navbar-nav[_ngcontent-%COMP%], .navbar-nav[_ngcontent-%COMP%] a[_ngcontent-%COMP%]{color:#faebd7}.navbar-nav[_ngcontent-%COMP%] a.menu-item[_ngcontent-%COMP%]{font-weight:600;padding:.5rem 1rem;color:var(--bs-secondary-color)}.navbar-nav[_ngcontent-%COMP%] a.menu-item[_ngcontent-%COMP%]:hover, .navbar-nav[_ngcontent-%COMP%] a.menu-item[_ngcontent-%COMP%]:focus{color:var(--ds-navbar-link-color-hover);text-decoration:underline}@media screen and (max-width: 767.98px){.navbar[_ngcontent-%COMP%]{width:100vw;background-color:var(--bs-white);position:absolute;overflow:hidden;height:0;z-index:var(--ds-nav-z-index)}}@media screen and (min-width: 768px){.reset-padding-md[_ngcontent-%COMP%]{margin-left:calc(var(--bs-spacer) / -2);margin-right:calc(var(--bs-spacer) / -2)}}#main-site-navigation[_ngcontent-%COMP%] .menu-item[_ngcontent-%COMP%]{display:flex;align-items:center;height:100%;color:#fff;padding:.75rem 1rem;text-decoration:none;transition:color .3s ease,border-bottom .3s ease}#main-site-navigation[_ngcontent-%COMP%] .menu-item[_ngcontent-%COMP%]:hover{color:var(--ds-navbar-link-color-hover);border-bottom:1px solid var(--ds-navbar-link-color-hover)}#main-site-navigation[_ngcontent-%COMP%] a.menu-item[_ngcontent-%COMP%]{font-weight:600;padding:.5rem 1rem;color:var(--bs-secondary-color)}#main-site-navigation[_ngcontent-%COMP%] a.menu-item[_ngcontent-%COMP%]:hover, #main-site-navigation[_ngcontent-%COMP%] a.menu-item[_ngcontent-%COMP%]:focus{color:var(--ds-navbar-link-color-hover);text-decoration:underline}@media (max-width: 768px){#main-site-navigation[_ngcontent-%COMP%] .menu-item[_ngcontent-%COMP%]{display:block;text-align:left;padding:1rem;color:#003770;border-bottom:none}#main-site-navigation[_ngcontent-%COMP%] .menu-item[_ngcontent-%COMP%]:hover{color:#003770}}.navbar-expand-md.navbar-container[_ngcontent-%COMP%]{height:80px}@media screen and (max-width: 767.98px){.navbar-expand-md.navbar-container[_ngcontent-%COMP%]{padding:0}.navbar-expand-md.navbar-container[_ngcontent-%COMP%] > .navbar-inner-container[_ngcontent-%COMP%]{padding:0 var(--bs-spacer)}.navbar-expand-md.navbar-container[_ngcontent-%COMP%] > .navbar-inner-container[_ngcontent-%COMP%] a.navbar-brand[_ngcontent-%COMP%]{display:none}.navbar-expand-md.navbar-container[_ngcontent-%COMP%] > .navbar-inner-container[_ngcontent-%COMP%] .navbar-collapsed[_ngcontent-%COMP%]{display:none}}a.navbar-brand[_ngcontent-%COMP%] img[_ngcontent-%COMP%]{max-height:var(--ds-header-logo-height)}.navbar-nav[_ngcontent-%COMP%] a.nav-link{color:var(--bs-secondary-color)}.navbar-nav[_ngcontent-%COMP%] a.nav-link:hover, .navbar-nav[_ngcontent-%COMP%] a.nav-link:focus{color:var(--ds-navbar-link-color-hover)}"],data:{animation:[n.DE]}}),m})()},80056:(R,c,e)=>{"use strict";var n=e(94650),o=e(76477);c.S8=new n.InjectionToken("REQUEST_IDLE_CALLBACK");var d=e(94650),r=function(){function p(h,m){this._ngZone=h,this.requestIdleCallback=m}return p.prototype.preload=function(h,m){return this.requestIdleCallback(m),o.of(null)},p.ctorParameters=function(){return[{type:n.NgZone},{type:void 0,decorators:[{type:n.Inject,args:[c.S8]}]}]},p.\u0275fac=function(m){return new(m||p)(d.\u0275\u0275inject(d.NgZone),d.\u0275\u0275inject(c.S8))},p.\u0275prov=d.\u0275\u0275defineInjectable({token:p,factory:function(h){return p.\u
10275fac(h)}}),p}();c.hp=[{provide:r,useClass:r,deps:[n.NgZone,c.S8]}],c.hl=[{provide:c.S8,useFactory:function i(p){if(typeof window>"u")return function(m){return setTimeout(m)};var h=window;return h.requestIdleCallback?function(m){return h.requestIdleCallback(m)}:function(m){return p.runOutsideAngular(function(){return h.setTimeout(m,10)})}},deps:[n.NgZone]}];var a=function(){function p(){}return p.forRoot=function(h){return void 0===h&&(h={}),{ngModule:p,providers:(!1===h.requestIdleCallback?[]:c.hl).concat(c.hp)}},p.IdleStrategy=function(){return r},p.\u0275fac=function(m){return new(m||p)},p.\u0275mod=d.\u0275\u0275defineNgModule({type:p}),p.\u0275inj=d.\u0275\u0275defineInjector({}),p}();c.Yu=a},26479:(R,c)=>{"use strict";var t=null;try{t=window}catch{t=global}var n=t.__CerializeTypeMap=new t.Map;function a(Be){return Array.isArray(Be)?Be.map(function(Xe){return Xe&&Xe.toString()||null}):Be&&Be.toString()||null}function p(Be){return Array.isArray(Be)?Be.map(function(Xe){return parseFloat(Xe)}):parseFloat(Be)}function h(Be){return Array.isArray(Be)?Be.map(function(Xe){return Boolean(Xe)}):Boolean(Be)}function m(Be){return Array.isArray(Be)?Be.map(function(Xe){return Xe&&Xe.toString()||null}):Be&&Be.toString()||null}function _(Be){return Array.isArray(Be)?Be.map(function(Xe){return parseInt(Xe)}):parseInt(Be)}function v(Be){return Array.isArray(Be)?Be.map(function(Xe){return Boolean(Xe)}):Boolean(Be)}function E(Be){return Be===String?a:Be===Number?p:Be===Boolean?h:Be}function O(Be){return Be===String?m:Be===Number?_:Be===Boolean?v:Be}function b(Be,Xe){for(var pt=0;pt<Be.length;pt++)if(Be[pt].keyName===Xe)return Be[pt];return Be.push(new X(Xe)),Be[Be.length-1]}function M(Be,Xe){var pt=null,Mt=null;return"string"==typeof Be?Mt=Be:(Be&&"function"==typeof Be||"object"==typeof Be)&&(pt=Be,Mt=Xe),{key:Mt,type:pt}}c.inheritSerialization=function P(Be){return function(Xe){for(var pt=n.get(Be)||[],Mt=n.get(Xe)||[],Yt=0;Yt<pt.length;Yt++)X.hasKeyName(Mt,pt[Yt].keyName)||Mt.push(X.clone(pt[Yt]));n.set(Xe,Mt)}},c.deserialize=function l(Be,Xe){if(Be&&Xe){var pt=n.get(Be.constructor)||[];b(pt,Xe).deserializedKey=Xe,n.set(Be.constructor,pt)}},c.autoserialize=function C(Be,Xe){if(Be&&Xe){var pt=n.get(Be.constructor)||[],Mt=b(pt,Xe);Mt.serializedKey=Xe,Mt.deserializedKey=Xe,n.set(Be.constructor,pt)}},c.serializeAs=function I(Be,Xe){if(Be){var pt=M(Be,Xe),Mt=pt.key,Yt=pt.type;return function(nt,mt){if(nt&&mt){var en=n.get(nt.constructor)||[],pn=b(en,mt);pn.serializedKey=Mt||mt,pn.serializedType=Yt,Yt!==Date&&Yt!==RegExp&&!n.get(Yt)&&"function"==typeof Yt&&(pn.serializedType={Serialize:O(Yt)}),n.set(nt.constructor,en)}}}},c.deserializeAs=function B(Be,Xe){if(Be){var pt=M(Be,Xe),Mt=pt.key,Yt=pt.type;return function(nt,mt){if(nt&&mt){var en=n.get(nt.constructor)||[],pn=b(en,mt);pn.deserializedKey=Mt||mt,pn.deserializedType=Yt,!n.get(Yt)&&Yt!==Date&&Yt!==RegExp&&"function"==typeof Yt&&(pn.deserializedType={Deserialize:E(Yt)}),n.set(nt.constructor,en)}}}},c.autoserializeAs=function V(Be,Xe){if(Be){var pt=M(Be,Xe),Mt=pt.key,Yt=pt.type;return function(nt,mt){if(nt&&mt){var en=n.get(nt.constructor)||[],pn=b(en,mt),tt=Mt||mt;pn.deserializedKey=tt,pn.deserializedType=Yt,pn.serializedKey=tt,pn.serializedType=O(Yt),!n.get(Yt)&&Yt!==Date&&Yt!==RegExp&&"function"==typeof Yt&&(pn.deserializedType={Deserialize:E(Yt)}),n.set(nt.constructor,en)}}}};var X=function(){function Be(Xe){this.keyName=Xe,this.serializedKey=null,this.deserializedKey=null,this.deserializedType=null,this.serializedType=null,this.indexable=!1}return Be.hasKeyName=function(Xe,pt){for(var Mt=0;Mt<Xe.length;Mt++)if(Xe[Mt].keyName===pt)return!0;return!1},Be.clone=function(Xe){var pt=new Be(Xe.keyName);return pt.deserializedKey=Xe.deserializedKey,pt.serializedKey=Xe.serializedKey,pt.serializedType=Xe.serializedType,pt.deserializedType=Xe.deserializedType,pt.indexable=Xe.indexable,pt},Be}();function ae(Be,Xe){return Array.isArray(Be)?j(Be,Xe):Be&&"object"==typeof Be?ie(Be,Xe):("string"==typeof Be||Be instanceof Date)&&Xe===Date.prototype.constructor?new Date(Be):"string"==typeof Be&&Xe===RegExp?new RegExp(Be):Be}function j(Be,Xe){for(var pt=new Array(Be.length),Mt=0;Mt<Be.length;Mt++)pt[Mt]=ae(Be[Mt],Xe);return pt}function k(Be,Xe,pt){pt&&"function"==typeof pt.OnDeserialized&&pt.OnDeserialized(Be,Xe)}function G(Be,Xe){"function"==typeof Be.constructor.OnSerialized&&Be.constructor.OnSerialized(Be,Xe)}function ie(Be,Xe){var pt=n.get(Xe);if(!pt){var Mt=null;return Xe?k(Mt=new Xe,Be,Xe):Mt=JSON.parse(JSON.stringify(Be)),Mt}for(var Yt=new Xe,nt=0;nt<pt.length;nt++){var mt=pt[nt];if(mt.deserializedKey){var en=mt.deserializedKey;mt.deserializedKey===mt.keyName&&"function"==typeof Je&&(en=Je(mt.ke
1yName));var pn=Be[en];void 0!==pn&&(Yt[mt.keyName]=null===pn?pn:mt.deserializedType&&"function"==typeof mt.deserializedType.Deserialize?mt.deserializedType.Deserialize(pn):Array.isArray(pn)?j(pn,mt.deserializedType||null):("string"==typeof pn||pn instanceof Date)&&mt.deserializedType===Date.prototype.constructor?new Date(pn):"string"==typeof pn&&mt.deserializedType===RegExp?new RegExp(Be):pn&&"object"==typeof pn?mt.indexable?ne(pn,mt.deserializedType):ie(pn,mt.deserializedType):pn)}}return k(Yt,Be,Xe),Yt}function ne(Be,Xe){var pt={};return Object.keys(Be).forEach(function(Mt){pt[Mt]=ie(Be[Mt],Xe)}),pt}function oe(Be,Xe){for(var pt=new Array(Be.length),Mt=0;Mt<Be.length;Mt++)pt[Mt]=ye(Be[Mt],Xe);return pt}function ce(Be,Xe){var Mt,pt={};Mt=n.get(Xe||Be.constructor);for(var Yt=0;Yt<Mt.length;Yt++){var nt=Mt[Yt];if(nt.serializedKey){var mt=nt.serializedKey;nt.serializedKey===nt.keyName&&"function"==typeof Ae&&(mt=Ae(nt.keyName));var en=Be[nt.keyName];if(void 0!==en)if(Array.isArray(en))pt[mt]=oe(en,nt.serializedType||null);else if(nt.serializedType&&"function"==typeof nt.serializedType.Serialize)pt[mt]=nt.serializedType.Serialize(en);else{var pn=ye(en);void 0!==pn&&(pt[mt]=pn)}}}return G(Be,pt),pt}function ye(Be,Xe){if(null==Be)return null;if(Array.isArray(Be))return oe(Be,Xe);if(Xe&&n.has(Xe))return ce(Be,Xe);if(Be.constructor&&n.has(Be.constructor))return ce(Be);if(Be instanceof Date)return Be.toISOString();if(Be instanceof RegExp)return Be.toString();if(Be&&"object"==typeof Be||"function"==typeof Be){for(var pt=Object.keys(Be),Mt={},Yt=0;Yt<pt.length;Yt++)Mt[pt[Yt]]=ye(Be[pt[Yt]]);return G(Be,Mt),Mt}return Be}c.Deserialize=ae,c.Serialize=ye;var Ae=null,Je=null},29923:(R,c,e)=>{R.exports=e(26479)},10152:(R,c)=>{"use strict";Object.defineProperty(c,"__esModule",{value:!0}),c.default=function e(t,n){for(var o=t<0?"-":"",i=Math.abs(t).toString();i.length<n;)i="0"+i;return o+i},R.exports=c.default},32963:(R,c)=>{"use strict";Object.defineProperty(c,"__esModule",{value:!0}),c.default=function e(t,n){if(null==t)throw new TypeError("assign requires that input parameter not be null or undefined");for(var o in n)Object.prototype.hasOwnProperty.call(n,o)&&(t[o]=n[o]);return t},R.exports=c.default},42926:(R,c,e)=>{"use strict";var t=e(64836).default;Object.defineProperty(c,"__esModule",{value:!0}),c.default=function o(i){return(0,n.default)({},i)};var n=t(e(32963));R.exports=c.default},73215:(R,c,e)=>{"use strict";var t=e(64836).default;Object.defineProperty(c,"__esModule",{value:!0}),c.default=void 0;var n=t(e(33338));c.default=n.default,R.exports=c.default},40150:(R,c)=>{"use strict";Object.defineProperty(c,"__esModule",{value:!0}),c.getDefaultOptions=function t(){return e},c.setDefaultOptions=function n(o){e=o};var e={}},1635:(R,c,e)=>{"use strict";var t=e(64836).default;Object.defineProperty(c,"__esModule",{value:!0}),c.default=void 0;var n=t(e(90448)),o=t(e(71074)),i=t(e(23122)),d=t(e(8622)),r=t(e(68450)),a=t(e(10152)),p=t(e(21393));function _(b,M){var P=b>0?"-":"+",D=Math.abs(b),l=Math.floor(D/60),C=D%60;if(0===C)return P+String(l);var I=M||"";return P+String(l)+I+(0,a.default)(C,2)}function v(b,M){return b%60==0?(b>0?"-":"+")+(0,a.default)(Math.abs(b)/60,2):E(b,M)}function E(b,M){var P=M||"",D=b>0?"-":"+",l=Math.abs(b);return D+(0,a.default)(Math.floor(l/60),2)+P+(0,a.default)(l%60,2)}c.default={G:function(M,P,D){var l=M.getUTCFullYear()>0?1:0;switch(P){case"G":case"GG":case"GGG":return D.era(l,{width:"abbreviated"});case"GGGGG":return D.era(l,{width:"narrow"});default:return D.era(l,{width:"wide"})}},y:function(M,P,D){if("yo"===P){var l=M.getUTCFullYear();return D.ordinalNumber(l>0?l:1-l,{unit:"year"})}return p.default.y(M,P)},Y:function(M,P,D,l){var C=(0,r.default)(M,l),I=C>0?C:1-C;return"YY"===P?(0,a.default)(I%100,2):"Yo"===P?D.ordinalNumber(I,{unit:"year"}):(0,a.default)(I,P.length)},R:function(M,P){var D=(0,i.default)(M);return(0,a.default)(D,P.length)},u:function(M,P){var D=M.getUTCFullYear();return(0,a.default)(D,P.length)},Q:function(M,P,D){var l=Math.ceil((M.getUTCMonth()+1)/3);switch(P){case"Q":return String(l);case"QQ":return(0,a.default)(l,2);case"Qo":return D.ordinalNumber(l,{unit:"quarter"});case"QQQ":return D.quarter(l,{width:"abbreviated",context:"formatting"});case"QQQQQ":return D.quarter(l,{width:"narrow",context:"formatting"});default:return D.quarter(l,{width:"wide",context:"formatting"})}},q:function(M,P,D){var l=Math.ceil((M.getUTCMonth()+1)/3);switch(P){case"q":return String(l);case"qq":return(0,a.default)(l,2);case"qo":return D.ordinalNumber(l,{unit:"quarter"});case"qqq":return D.quarter(l,{width:"abbreviated",context:"standalone"});case"qqqqq":return D.quarter(l,{width:"narrow",context:"standalone"});default:return D.quarter(l,{width:"wide",context:"standalone"})}},M:function(M,P,D){var l=M.getUTCMonth();switch(P){case"M":case"MM":return p.default.M(M,P);case"Mo":return D.ordinalNumber(l+1,{unit:"month"});case"MMM":return D.month(l,{width:"abbreviated",context:"formatting"});case"MMMMM":return D.month(l,{width:"narrow",context:"formatting"});default:return D.month(l,{width:"wide",context:"formatting"})}},L:function(M,P,D){var l=M.getUTCMonth();switch(P){case"L":return String(l+1);case"LL":return(0,a.default)(l+1,2);case"Lo":return D.ordinalNumber(l+1,{unit:"month"});case"LLL":return D.month(l,{width:"abbreviated",context:"standalone"});case"LLLLL":return D.month(l,{width:"narrow",context:"standalone"});default:return D.month(l,{width:"wide",context:"standalone"})}},w:function(M,P,D,l){var C=(0,d.default)(M,l);return"wo"===P?D.ordinalNumber(C,{unit:"week"}):(0,a.default)(C,P.length)},I:function(M,P,D){var l=(0,o.default)(M);return"Io"===P?D.ordinalNumber(l,{unit:"week"}):(0,a.default)(l,P.length)},d:function(M,P,D){return"do"===P?D.ordinalNumber(M.getUTCDate(),{unit:"date"}):p.default.d(M,P)},D:function(M,P,D){var l=(0,n.default)(M);return"Do"===P?D.ordinalNumber(l,{unit:"dayOfYear"}):(0,a.default)(l,P.length)},E:function(M,P,D){var l=M.getUTCDay();switch(P){case"E":case"EE":case"EEE":return D.day(l,{width:"abbreviated",context:"formatting"});case"EEEEE":return D.day(l,{width:"narrow",context:"formatting"});case"EEEEEE":return D.day(l,{width:"short",context:"formatting"});default:return D.day(l,{width:"wide",context:"formatting"})}},e:function(M,P,D,l){var C=M.getUTCDay(),I=(C-l.weekStartsOn+8)%7||7;switch(P){case"e":return String(I);case"ee":return(0,a.default)(I,2);case"eo":return D.ordinalNumber(I,{unit:"day"});case"eee":return D.day(C,{width:"abbreviated",context:"formatting"});case"eeeee":return D.day(C,{width:"narrow",context:"formatting"});case"eeeeee":return D.day(C,{width:"short",context:"formatting"});default:return D.day(C,{width:"wide",context:"formatting"})}},c:function(M,P,D,l){var C=M.getUTCDay(),I=(C-l.weekStartsOn+8)%7||7;switch(P){case"c":return String(I);case"cc":return(0,a.default)(I,P.length);case"co":return D.ordinalNumber(I,{unit:"day"});case"ccc":return D.day(C,{width:"abbreviated",context:"standalone"});case"ccccc":return D.day(C,{width:"narrow",context:"standalone"});case"cccccc":return D.day(C,{width:"short",context:"standalone"});default:return D.day(C,{width:"wide",context:"standalone"})}},i:function(M,P,D){var l=M.getUTCDay(),C=0===l?7:l;switch(P){case"i":return String(C);case"ii":return(0,a.default)(C,P.length);case"io":return D.ordinalNumber(C,{unit:"day"});case"iii":return D.day(l,{width:"abbreviated",context:"formatting"});case"iiiii":return D.day(l,{width:"narrow",context:"formatting"});case"iiiiii":return D.day(l,{width:"short",context:"formatting"});default:return D.day(l,{width:"wide",context:"formatting"})}},a:function(M,P,D){var C=M.getUTCHours()/12>=1?"pm":"am";switch(P){case"a":case"aa":return D.dayPeriod(C,{width:"abbreviated",context:"formatting"});case"aaa":return D.dayPeriod(C,{width:"abbreviated",context:"formatting"}).toLowerCase();case"aaaaa":return D.dayPeriod(C,{width:"narrow",context:"formatting"});default:return D.dayPeriod(C,{width:"wide",context:"formatting"})}},b:function(M,P,D){var C,l=M.getUTCHours();switch(C=12===l?"noon":0===l?"midnight":l/12>
1=1?"pm":"am",P){case"b":case"bb":return D.dayPeriod(C,{width:"abbreviated",context:"formatting"});case"bbb":return D.dayPeriod(C,{width:"abbreviated",context:"formatting"}).toLowerCase();case"bbbbb":return D.dayPeriod(C,{width:"narrow",context:"formatting"});default:return D.dayPeriod(C,{width:"wide",context:"formatting"})}},B:function(M,P,D){var C,l=M.getUTCHours();switch(C=l>=17?"evening":l>=12?"afternoon":l>=4?"morning":"night",P){case"B":case"BB":case"BBB":return D.dayPeriod(C,{width:"abbreviated",context:"formatting"});case"BBBBB":return D.dayPeriod(C,{width:"narrow",context:"formatting"});default:return D.dayPeriod(C,{width:"wide",context:"formatting"})}},h:function(M,P,D){if("ho"===P){var l=M.getUTCHours()%12;return 0===l&&(l=12),D.ordinalNumber(l,{unit:"hour"})}return p.default.h(M,P)},H:function(M,P,D){return"Ho"===P?D.ordinalNumber(M.getUTCHours(),{unit:"hour"}):p.default.H(M,P)},K:function(M,P,D){var l=M.getUTCHours()%12;return"Ko"===P?D.ordinalNumber(l,{unit:"hour"}):(0,a.default)(l,P.length)},k:function(M,P,D){var l=M.getUTCHours();return 0===l&&(l=24),"ko"===P?D.ordinalNumber(l,{unit:"hour"}):(0,a.default)(l,P.length)},m:function(M,P,D){return"mo"===P?D.ordinalNumber(M.getUTCMinutes(),{unit:"minute"}):p.default.m(M,P)},s:function(M,P,D){return"so"===P?D.ordinalNumber(M.getUTCSeconds(),{unit:"second"}):p.default.s(M,P)},S:function(M,P){return p.default.S(M,P)},X:function(M,P,D,l){var I=(l._originalDate||M).getTimezoneOffset();if(0===I)return"Z";switch(P){case"X":return v(I);case"XXXX":case"XX":return E(I);default:return E(I,":")}},x:function(M,P,D,l){var I=(l._originalDate||M).getTimezoneOffset();switch(P){case"x":return v(I);case"xxxx":case"xx":return E(I);default:return E(I,":")}},O:function(M,P,D,l){var I=(l._originalDate||M).getTimezoneOffset();switch(P){case"O":case"OO":case"OOO":return"GMT"+_(I,":");default:return"GMT"+E(I,":")}},z:function(M,P,D,l){var I=(l._originalDate||M).getTimezoneOffset();switch(P){case"z":case"zz":case"zzz":return"GMT"+_(I,":");default:return"GMT"+E(I,":")}},t:function(M,P,D,l){var I=Math.floor((l._originalDate||M).getTime()/1e3);return(0,a.default)(I,P.length)},T:function(M,P,D,l){var I=(l._originalDate||M).getTime();return(0,a.default)(I,P.length)}},R.exports=c.default},21393:(R,c,e)=>{"use strict";var t=e(64836).default;Object.defineProperty(c,"__esModule",{value:!0}),c.default=void 0;var n=t(e(10152));c.default={y:function(r,a){var p=r.getUTCFullYear(),h=p>0?p:1-p;return(0,n.default)("yy"===a?h%100:h,a.length)},M:function(r,a){var p=r.getUTCMonth();return"M"===a?String(p+1):(0,n.default)(p+1,2)},d:function(r,a){return(0,n.default)(r.getUTCDate(),a.length)},a:function(r,a){var p=r.getUTCHours()/12>=1?"pm":"am";switch(a){case"a":case"aa":return p.toUpperCase();case"aaa":return p;case"aaaaa":return p[0];default:return"am"===p?"a.m.":"p.m."}},h:function(r,a){return(0,n.default)(r.getUTCHours()%12||12,a.length)},H:function(r,a){return(0,n.default)(r.getUTCHours(),a.length)},m:function(r,a){return(0,n.default)(r.getUTCMinutes(),a.length)},s:function(r,a){return(0,n.default)(r.getUTCSeconds(),a.length)},S:function(r,a){var p=a.length,h=r.getUTCMilliseconds(),m=Math.floor(h*Math.pow(10,p-3));return(0,n.default)(m,a.length)}},R.exports=c.default},75852:(R,c)=>{"use strict";Object.defineProperty(c,"__esModule",{value:!0}),c.default=void 0;var e=function(r,a){switch(r){case"P":return a.date({width:"short"});case"PP":return a.date({width:"medium"});case"PPP":return a.date({width:"long"});default:return a.date({width:"full"})}},t=function(r,a){switch(r){case"p":return a.time({width:"short"});case"pp":return a.time({width:"medium"});case"ppp":return a.time({width:"long"});default:return a.time({width:"full"})}};c.default={p:t,P:function(r,a){var _,p=r.match(/(P+)(p+)?/)||[],h=p[1],m=p[2];if(!m)return e(r,a);switch(h){case"P":_=a.dateTime({width:"short"});break;case"PP":_=a.dateTime({width:"medium"});break;case"PPP":_=a.dateTime({width:"long"});break;default:_=a.dateTime({width:"full"})}return _.replace("{{date}}",e(h,a)).replace("{{time}}",t(m,a))}},R.exports=c.default},47664:(R,c)=>{"use strict";Object.defineProperty(c,"__esModule",{value:!0}),c.default=function e(t){var n=new Date(Date.UTC(t.getFullYear(),t.getMonth(),t.getDate(),t.getHours(),t.getMinutes(),t.getSeconds(),t.getMilliseconds()));return n.setUTCFullYear(t.getFullYear()),t.getTime()-n.getTime()},R.exports=c.default},90448:(R,c,e)=>{"use strict";var t=e(64836).default;Object.defineProperty(c,"__esModule",{value:!0}),c.default=function d(r){(0,o.default)(1,arguments);var a=(0,n.default)(r),p=a.getTime();a.setUTCMonth(0,1),a.setUTCHours(0,0,0,0);var h=a.getTime();return Math.floor((p-h)/i)+1};var n=t(e(90798)),o=t(e(61886)),i=864e5;R.exports=c.default},23122:(R,c,e)=>{"use strict";var t=e(64836).default;Object.defineProperty(c,"__esModule",{value:!0}),c.default=function d(r){(0,o.default)(1,arguments);var a=(0,n.default)(r),p=a.getUTCFullYear(),h=new Date(0);h.setUTCFullYear(p+1,0,4),h.setUTCHours(0,0,0,0);var m=(0,i.default)(h),_=new Date(0);_.setUTCFullYear(p,0,4),_.setUTCHours(0,0,0,0);var v=(0,i.default)(_);return a.getTime()>=m.getTime()?p+1:a.getTime()>=v.getTime()?p:p-1};var n=t(e(90798)),o=t(e(61886)),i=t(e(96729));R.exports=c.default},71074:(R,c,e)=>{"use strict";var t=e(64836).default;Object.defineProperty(c,"__esModule",{value:!0}),c.default=function a(p){(0,d.default)(1,arguments);var h=(0,n.default)(p),m=(0,o.default)(h).getTime()-(0,i.default)(h).getTime();return Math.round(m/r)+1};var n=t(e(90798)),o=t(e(96729)),i=t(e(50525)),d=t(e(61886)),r=6048e5;R.exports=c.default},68450:(R,c,e)=>{"use strict";var t=e(64836).default;Object.defineProperty(c,"__esModule",{value:!0}),c.default=function a(p,h){var m,_,v,E,O,b,M,P;(0,o.default)(1,arguments);var D=(0,n.default)(p),l=D.getUTCFullYear(),C=(0,r.getDefaultOptions)(),I=(0,d.default)(null!==(m=null!==(_=null!==(v=null!==(E=h?.firstWeekContainsDate)&&void 0!==E?E:null==h||null===(O=h.locale)||void 0===O||null===(b=O.options)||void 0===b?void 0:b.firstWeekContainsDate)&&void 0!==v?v:C.firstWeekContainsDate)&&void 0!==_?_:null===(M=C.locale)||void 0===M||null===(P=M.options)||void 0===P?void 0:P.firstWeekContainsDate)&&void 0!==m?m:1);if(!(I>=1&&I<=7))throw new RangeError("firstWeekContainsDate must be between 1 and 7 inclusively");var g=new Date(0);g.setUTCFullYear(l+1,0,I),g.setUTCHours(0,0,0,0);var B=(0,i.default)(g,h),L=new Date(0);L.setUTCFullYear(l,0,I),L.setUTCHours(0,0,0,0);var V=(0,i.default)(L,h);return D.getTime()>=B.getTime()?l+1:D.getTime()>=V.getTime()?l:l-1};var n=t(e(90798)),o=t(e(61886)),i=t(e(88314)),d=t(e(6092)),r=e(40150);R.exports=c.default},8622:(R,c,e)=>{"use strict";var t=e(64836).default;Object.defineProperty(c,"__esModule",{value:!0}),c.default=function a(p,h){(0,d.default)(1,arguments);var m=(0,n.default)(p),_=(0,o.default)(m,h).getTime()-(0,i.default)(m,h).getTime();return Math.round(_/r)+1};var n=t(e(90798)),o=t(e(88314)),i=t(e(72447)),d=t(e(61886)),r=6048e5;R.exports=c.default},70183:(R,c)=>{"use strict";Object.defineProperty(c,"__esModule",{value:!0}),c.isProtectedDayOfYearToken=function n(d){return-1!==e.indexOf(d)},c.isProtectedWeekYearToken=function o(d){return-1!==t.indexOf(d)},c.throwProtectedError=function i(d,r,a){if("YYYY"===d)throw new RangeError("Use `yyyy` instead of `YYYY` (in `".concat(r,"`) for formatting years to the input `").
1concat(a,"`; see: https://github.com/date-fns/date-fns/blob/master/docs/unicodeTokens.md"));if("YY"===d)throw new RangeError("Use `yy` instead of `YY` (in `".concat(r,"`) for formatting years to the input `").concat(a,"`; see: https://github.com/date-fns/date-fns/blob/master/docs/unicodeTokens.md"));if("D"===d)throw new RangeError("Use `d` instead of `D` (in `".concat(r,"`) for formatting days of the month to the input `").concat(a,"`; see: https://github.com/date-fns/date-fns/blob/master/docs/unicodeTokens.md"));if("DD"===d)throw new RangeError("Use `dd` instead of `DD` (in `".concat(r,"`) for formatting days of the month to the input `").concat(a,"`; see: https://github.com/date-fns/date-fns/blob/master/docs/unicodeTokens.md"))};var e=["D","DD"],t=["YY","YYYY"]},61886:(R,c)=>{"use strict";Object.defineProperty(c,"__esModule",{value:!0}),c.default=function e(t,n){if(n.length<t)throw new TypeError(t+" argument"+(t>1?"s":"")+" required, but only "+n.length+" present")},R.exports=c.default},50525:(R,c,e)=>{"use strict";var t=e(64836).default;Object.defineProperty(c,"__esModule",{value:!0}),c.default=function d(r){(0,i.default)(1,arguments);var a=(0,n.default)(r),p=new Date(0);return p.setUTCFullYear(a,0,4),p.setUTCHours(0,0,0,0),(0,o.default)(p)};var n=t(e(23122)),o=t(e(96729)),i=t(e(61886));R.exports=c.default},96729:(R,c,e)=>{"use strict";var t=e(64836).default;Object.defineProperty(c,"__esModule",{value:!0}),c.default=function i(d){(0,o.default)(1,arguments);var a=(0,n.default)(d),p=a.getUTCDay(),h=(p<1?7:0)+p-1;return a.setUTCDate(a.getUTCDate()-h),a.setUTCHours(0,0,0,0),a};var n=t(e(90798)),o=t(e(61886));R.exports=c.default},72447:(R,c,e)=>{"use strict";var t=e(64836).default;Object.defineProperty(c,"__esModule",{value:!0}),c.default=function a(p,h){var m,_,v,E,O,b,M,P;(0,o.default)(1,arguments);var D=(0,r.getDefaultOptions)(),l=(0,d.default)(null!==(m=null!==(_=null!==(v=null!==(E=h?.firstWeekContainsDate)&&void 0!==E?E:null==h||null===(O=h.locale)||void 0===O||null===(b=O.options)||void 0===b?void 0:b.firstWeekContainsDate)&&void 0!==v?v:D.firstWeekContainsDate)&&void 0!==_?_:null===(M=D.locale)||void 0===M||null===(P=M.options)||void 0===P?void 0:P.firstWeekContainsDate)&&void 0!==m?m:1),C=(0,n.default)(p,h),I=new Date(0);return I.setUTCFullYear(C,0,l),I.setUTCHours(0,0,0,0),(0,i.default)(I,h)};var n=t(e(68450)),o=t(e(61886)),i=t(e(88314)),d=t(e(6092)),r=e(40150);R.exports=c.default},88314:(R,c,e)=>{"use strict";var t=e(64836).default;Object.defineProperty(c,"__esModule",{value:!0}),c.default=function r(a,p){var h,m,_,v,E,O,b,M;(0,o.default)(1,arguments);var P=(0,d.getDefaultOptions)(),D=(0,i.default)(null!==(h=null!==(m=null!==(_=null!==(v=p?.weekStartsOn)&&void 0!==v?v:null==p||null===(E=p.locale)||void 0===E||null===(O=E.options)||void 0===O?void 0:O.weekStartsOn)&&void 0!==_?_:P.weekStartsOn)&&void 0!==m?m:null===(b=P.locale)||void 0===b||null===(M=b.options)||void 0===M?void 0:M.weekStartsOn)&&void 0!==h?h:0);if(!(D>=0&&D<=6))throw new RangeError("weekStartsOn must be between 0 and 6 inclusively");var l=(0,n.default)(a),C=l.getUTCDay(),I=(C<D?7:0)+C-D;return l.setUTCDate(l.getUTCDate()-I),l.setUTCHours(0,0,0,0),l};var n=t(e(90798)),o=t(e(61886)),i=t(e(6092)),d=e(40150);R.exports=c.default},6092:(R,c)=>{"use strict";Object.defineProperty(c,"__esModule",{value:!0}),c.default=function e(t){if(null===t||!0===t||!1===t)return NaN;var n=Number(t);return isNaN(n)?n:n<0?Math.ceil(n):Math.floor(n)},R.exports=c.default},50405:(R,c,e)=>{"use strict";var t=e(64836).default;Object.defineProperty(c,"__esModule",{value:!0}),c.default=function d(r,a){(0,i.default)(2,arguments);var p=(0,o.default)(r).getTime(),h=(0,n.default)(a);return new Date(p+h)};var n=t(e(6092)),o=t(e(90798)),i=t(e(61886));R.exports=c.default},27868:(R,c,e)=>{"use strict";var t=e(64836).default;Object.defineProperty(c,"__esModule",{value:!0}),c.default=function D(C,I,g){var B,L,V,Y,X,te,K,ee,ae,Q,j,k,G,ie,ne,q,oe,ce;(0,m.default)(2,arguments);var ye=String(I),Me=(0,_.getDefaultOptions)(),Ee=null!==(B=null!==(L=g?.locale)&&void 0!==L?L:Me.locale)&&void 0!==B?B:v.default,Ae=(0,h.default)(null!==(V=null!==(Y=null!==(X=null!==(te=g?.firstWeekContainsDate)&&void 0!==te?te:null==g||null===(K=g.locale)||void 0===K||null===(ee=K.options)||void 0===ee?void 0:ee.firstWeekContainsDate)&&void 0!==X?X:Me.firstWeekContainsDate)&&void 0!==Y?Y:null===(ae=Me.locale)||void 0===ae||null===(Q=ae.options)||void 0===Q?void 0:Q.firstWeekContainsDate)&&void 0!==V?V:1);if(!(Ae>=1&&Ae<=7))throw new RangeError("firstWeekContainsDate must be between 1 and 7 inclusively");var Je=(0,h.default)(null!==(j=null!==(k=null!==(G=null!==(ie=g?.weekStartsOn)&&void 0!==ie?ie:null==g||null===(ne=g.locale)||void 0===ne||null===(q=ne.options)||void 0===q?void 0:q.weekStartsOn)&&void 0!==G?G:Me.weekStartsOn)&&void 0!==k?k:null===(oe=Me.locale)||void 0===oe||null===(ce=oe.options)||void 0===ce?void 0:ce.weekStartsOn)&&void 0!==j?j:0);if(!(Je>=0&&Je<=6))throw new RangeError("weekStartsOn must be between 0 and 6 inclusively");if(!Ee.localize)throw new RangeError("locale must contain localize property");if(!Ee.formatLong)throw new RangeError("locale must contain formatLong property");var _t=(0,i.default)(C);if(!(0,n.default)(_t))throw new RangeError("Invalid time value");var It=(0,a.default)(_t),it=(0,o.default)(_t,It),Be={firstWeekContainsDate:Ae,weekStartsOn:Je,locale:Ee,_originalDate:_t};return ye.match(O).map(function(pt){var Mt=pt[0];return"p"===Mt||"P"===Mt?(0,r.default[Mt])(pt,Ee.formatLong):pt}).join("").match(E).map(function(pt){if("''"===pt)return"'";var Mt=pt[0];if("'"===Mt)return function l(C){var I=C.match(b);return I?I[1].replace(M,"'"):C}(pt);var Yt=d.default[Mt];if(Yt)return!(null!=g&&g.useAdditionalWeekYearTokens)&&(0,p.isProtectedWeekYearToken)(pt)&&(0,p.throwProtectedError)(pt,I,String(C)),!(null!=g&&g.useAdditionalDayOfYearTokens)&&(0,p.isProtectedDayOfYearToken)(pt)&&(0,p.throwProtectedError)(pt,I,String(C)),Yt(it,pt,Ee.localize,Be);
1if(Mt.match(P))throw new RangeError("Format string contains an unescaped latin alphabet character `"+Mt+"`");return pt}).join("")};var n=t(e(88830)),o=t(e(65726)),i=t(e(90798)),d=t(e(1635)),r=t(e(75852)),a=t(e(47664)),p=e(70183),h=t(e(6092)),m=t(e(61886)),_=e(40150),v=t(e(73215)),E=/[yYQqMLwIdDecihHKkms]o|(\w)\1*|''|'(''|[^'])+('|$)|./g,O=/P+p+|P+|p+|''|'(''|[^'])+('|$)|./g,b=/^'([^]*?)'?$/,M=/''/g,P=/[a-zA-Z]/;R.exports=c.default},73085:(R,c,e)=>{"use strict";var t=e(64836).default;Object.defineProperty(c,"__esModule",{value:!0}),c.default=function i(d){return(0,o.default)(1,arguments),d instanceof Date||"object"===(0,n.default)(d)&&"[object Date]"===Object.prototype.toString.call(d)};var n=t(e(18698)),o=t(e(61886));R.exports=c.default},88830:(R,c,e)=>{"use strict";var t=e(64836).default;Object.defineProperty(c,"__esModule",{value:!0}),c.default=function d(r){if((0,i.default)(1,arguments),!(0,n.default)(r)&&"number"!=typeof r)return!1;var a=(0,o.default)(r);return!isNaN(Number(a))};var n=t(e(73085)),o=t(e(90798)),i=t(e(61886));R.exports=c.default},88995:(R,c)=>{"use strict";Object.defineProperty(c,"__esModule",{value:!0}),c.default=function e(t){return function(){var n=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},o=n.width?String(n.width):t.defaultWidth;return t.formats[o]||t.formats[t.defaultWidth]}},R.exports=c.default},45778:(R,c)=>{"use strict";Object.defineProperty(c,"__esModule",{value:!0}),c.default=function e(t){return function(n,o){var d;if("formatting"===(null!=o&&o.context?String(o.context):"standalone")&&t.formattingValues){var r=t.defaultFormattingWidth||t.defaultWidth,a=null!=o&&o.width?String(o.width):r;d=t.formattingValues[a]||t.formattingValues[r]}else{var p=t.defaultWidth,h=null!=o&&o.width?String(o.width):t.defaultWidth;d=t.values[h]||t.values[p]}return d[t.argumentCallback?t.argumentCallback(n):n]}},R.exports=c.default},84728:(R,c)=>{"use strict";Object.defineProperty(c,"__esModule",{value:!0}),c.default=function e(o){return function(i){var d=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},r=d.width,p=i.match(r&&o.matchPatterns[r]||o.matchPatterns[o.defaultMatchWidth]);if(!p)return null;var v,h=p[0],m=r&&o.parsePatterns[r]||o.parsePatterns[o.defaultParseWidth],_=Array.isArray(m)?function n(o,i){for(var d=0;d<o.length;d++)if(i(o[d]))return d}(m,function(O){return O.test(h)}):function t(o,i){for(var d in o)if(o.hasOwnProperty(d)&&i(o[d]))return d}(m,function(O){return O.test(h)});return v=o.valueCallback?o.valueCallback(_):_,{value:v=d.valueCallback?d.valueCallback(v):v,rest:i.slice(h.length)}}},R.exports=c.default},27223:(R,c)=>{"use strict";Object.defineProperty(c,"__esModule",{value:!0}),c.default=function e(t){return function(n){var o=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},i=n.match(t.matchPattern);if(!i)return null;var d=i[0],r=n.match(t.parsePattern);if(!r)return null;var a=t.valueCallback?t.valueCallback(r[0]):r[0];return{value:a=o.valueCallback?o.valueCallback(a):a,rest:n.slice(d.length)}}},R.exports=c.default},39563:(R,c)=>{"use strict";Object.defineProperty(c,"__esModule",{value:!0}),c.default=void 0;var e={lessThanXSeconds:{one:"less than a second",other:"less than {{count}} seconds"},xSeconds:{one:"1 second",other:"{{count}} seconds"},halfAMinute:"half a minute",lessThanXMinutes:{one:"less than a minute",other:"less than {{count}} minutes"},xMinutes:{one:"1 minute",other:"{{count}} minutes"},aboutXHours:{one:"about 1 hour",other:"about {{count}} hours"},xHours:{one:"1 hour",other:"{{count}} hours"},xDays:{one:"1 day",other:"{{count}} days"},aboutXWeeks:{one:"about 1 week",other:"about {{count}} weeks"},xWeeks:{one:"1 week",other:"{{count}} weeks"},aboutXMonths:{one:"about 1 month",other:"about {{count}} months"},xMonths:{one:"1 month",other:"{{count}} months"},aboutXYears:{one:"about 1 year",other:"about {{count}} years"},xYears:{one:"1 year",other:"{{count}} years"},overXYears:{one:"over 1 year",other:"over {{count}} years"},almostXYears:{one:"almost 1 year",other:"almost {{count}} years"}};c.default=function(i,d,r){var a,p=e[i];return a="string"==typeof p?p:1===d?p.one:p.other.replace("{{count}}",d.toString()),null!=r&&r.addSuffix?r.comparison&&r.comparison>0?"in "+a:a+" ago":a},R.exports=c.default},66929:(R,c,e)=>{"use strict";var t=e(64836).default;Object.defineProperty(c,"__esModule",{value:!0}),c.default=void 0;var n=t(e(88995)),r={date:(0,n.default)({formats:{full:"EEEE, MMMM do, y",long:"MMMM do, y",medium:"MMM d, y",short:"MM/dd/yyyy"},defaultWidth:"full"}),time:(0,n.default)({formats:{full:"h:mm:ss a zzzz",long:"h:mm:ss a z",medium:"h:mm:ss a",short:"h:mm a"},defaultWidth:"full"}),dateTime:(0,n.default)({formats:{full:"{{date}} 'at' {{time}}",long:"{{date}} 'at' {{time}}",medium:"{{date}}, {{time}}",short:"{{date}}, {{time}}"},defaultWidth:"full"})};c.default=r,R.exports=c.default},21656:(R,c)=>{"use strict";Object.defineProperty(c,"__esModule",{value:!0}),c.default=void 0;var e={lastWeek:"'last' eeee 'at' p",yesterday:"'yesterday at' p",today:"'today at' p",tomorrow:"'tomorrow at' p",nextWeek:"eeee 'at' p",other:"P"};c.default=function(i,d,r,a){return e[i]},R.exports=c.default},31098:(R,c,e)=>{"use strict";var t=e(64836).default;Object.defineProperty(c,"__esModule",{value:!0}),c.default=void 0;var n=t(e(45778)),m={ordinalNumber:function(E,O){var b=Number(E),M=b%100;if(M>20||M<10)switch(M%10){case 1:return b+"st";case 2:return b+"nd";case 3:return b+"rd"}return b+"th"},era:(0,n.default)({values:{narrow:["B","A"],abbreviated:["BC","AD"],wide:["Before Christ","Anno Domini"]},defaultWidth:"wide"}),quarter:(0,n.default)({values:{narrow:["1","2","3","4"],abbreviated:["Q1","Q2","Q3","Q4"],wide:["1st quarter","2nd quarter","3rd quarter","4th quarter"]},defaultWidth:"wide",argumentCallback:function(E){return E-1}}),month:(0,n.default)({values:{narrow:["J","F","M","A","M","J","J","A","S","O","N","D"],abbreviated:["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"],wide:["January","February","March","April","May","June","July","August","September","October","November","December"]},defaultWidth:"wide"}),day:(0,n.default)({values:{narrow:["S","M","T","W","T","F","S"],short:["Su","Mo","Tu","We","Th","Fr","Sa"],abbreviated:["Sun","Mon","Tue","Wed","Thu","Fri","Sat"],wide:["Sunday","Monday","Tuesday","Wednesday","Thursday","Frid
1ay","Saturday"]},defaultWidth:"wide"}),dayPeriod:(0,n.default)({values:{narrow:{am:"a",pm:"p",midnight:"mi",noon:"n",morning:"morning",afternoon:"afternoon",evening:"evening",night:"night"},abbreviated:{am:"AM",pm:"PM",midnight:"midnight",noon:"noon",morning:"morning",afternoon:"afternoon",evening:"evening",night:"night"},wide:{am:"a.m.",pm:"p.m.",midnight:"midnight",noon:"noon",morning:"morning",afternoon:"afternoon",evening:"evening",night:"night"}},defaultWidth:"wide",formattingValues:{narrow:{am:"a",pm:"p",midnight:"mi",noon:"n",morning:"in the morning",afternoon:"in the afternoon",evening:"in the evening",night:"at night"},abbreviated:{am:"AM",pm:"PM",midnight:"midnight",noon:"noon",morning:"in the morning",afternoon:"in the afternoon",evening:"in the evening",night:"at night"},wide:{am:"a.m.",pm:"p.m.",midnight:"midnight",noon:"noon",morning:"in the morning",afternoon:"in the afternoon",evening:"in the evening",night:"at night"}},defaultFormattingWidth:"wide"})};c.default=m,R.exports=c.default},53239:(R,c,e)=>{"use strict";var t=e(64836).default;Object.defineProperty(c,"__esModule",{value:!0}),c.default=void 0;var n=t(e(84728)),M={ordinalNumber:(0,t(e(27223)).default)({matchPattern:/^(\d+)(th|st|nd|rd)?/i,parsePattern:/\d+/i,valueCallback:function(l){return parseInt(l,10)}}),era:(0,n.default)({matchPatterns:{narrow:/^(b|a)/i,abbreviated:/^(b\.?\s?c\.?|b\.?\s?c\.?\s?e\.?|a\.?\s?d\.?|c\.?\s?e\.?)/i,wide:/^(before christ|before common era|anno domini|common era)/i},defaultMatchWidth:"wide",parsePatterns:{any:[/^b/i,/^(a|c)/i]},defaultParseWidth:"any"}),quarter:(0,n.default)({matchPatterns:{narrow:/^[1234]/i,abbreviated:/^q[1234]/i,wide:/^[1234](th|st|nd|rd)? quarter/i},defaultMatchWidth:"wide",parsePatterns:{any:[/1/i,/2/i,/3/i,/4/i]},defaultParseWidth:"any",valueCallback:function(l){return l+1}}),month:(0,n.default)({matchPatterns:{narrow:/^[jfmasond]/i,abbreviated:/^(jan|feb|mar|apr|may|jun|jul|aug|sep|oct|nov|dec)/i,wide:/^(january|february|march|april|may|june|july|august|september|october|november|december)/i},defaultMatchWidth:"wide",parsePatterns:{narrow:[/^j/i,/^f/i,/^m/i,/^a/i,/^m/i,/^j/i,/^j/i,/^a/i,/^s/i,/^o/i,/^n/i,/^d/i],any:[/^ja/i,/^f/i,/^mar/i,/^ap/i,/^may/i,/^jun/i,/^jul/i,/^au/i,/^s/i,/^o/i,/^n/i,/^d/i]},defaultParseWidth:"any"}),day:(0,n.default)({matchPatterns:{narrow:/^[smtwf]/i,short:/^(su|mo|tu|we|th|fr|sa)/i,abbreviated:/^(sun|mon|tue|wed|thu|fri|sat)/i,wide:/^(sunday|monday|tuesday|wednesday|thursday|friday|saturday)/i},defaultMatchWidth:"wide",parsePatterns:{narrow:[/^s/i,/^m/i,/^t/i,/^w/i,/^t/i,/^f/i,/^s/i],any:[/^su/i,/^m/i,/^tu/i,/^w/i,/^th/i,/^f/i,/^sa/i]},defaultParseWidth:"any"}),dayPeriod:(0,n.default)({matchPatterns:{narrow:/^(a|p|mi|n|(in the|at) (morning|afternoon|evening|night))/i,any:/^([ap]\.?\s?m\.?|midnight|noon|(in the|at) (morning|afternoon|evening|night))/i},defaultMatchWidth:"any",parsePatterns:{any:{am:/^a/i,pm:/^p/i,midnight:/^mi/i,noon:/^no/i,morning:/morning/i,afternoon:/afternoon/i,evening:/evening/i,night:/night/i}},defaultParseWidth:"any"})};c.default=M,R.exports=c.default},33338:(R,c,e)=>{"use strict";var t=e(64836).default;Object.defineProperty(c,"__esModule",{value:!0}),c.default=void 0;var n=t(e(39563)),o=t(e(66929)),i=t(e(21656)),d=t(e(31098)),r=t(e(53239));c.default={code:"en-US",formatDistance:n.default,formatLong:o.default,formatRelative:i.default,localize:d.default,match:r.default,options:{weekStartsOn:0,firstWeekContainsDate:1}},R.exports=c.default},65726:(R,c,e)=>{"use strict";var t=e(64836).default;Object.defineProperty(c,"__esModule",{value:!0}),c.default=function d(r,a){(0,o.default)(2,arguments);var p=(0,i.default)(a);return(0,n.default)(r,-p)};var n=t(e(50405)),o=t(e(61886)),i=t(e(6092));R.exports=c.default},90798:(R,c,e)=>{"use strict";var t=e(64836).default;Object.defineProperty(c,"__esModule",{value:!0}),c.default=function i(d){(0,o.default)(1,arguments);var r=Object.prototype.toString.call(d);return d instanceof Date||"object"===(0,n.default)(d)&&"[object Date]"===r?new Date(d.getTime()):"number"==typeof d||"[object Number]"===r?new Date(d):(("string"==typeof d||"[object String]"===r)&&typeof console<"u"&&(console.warn("Starting with v2.0.0-beta.
11 date-fns doesn't accept strings as date arguments. Please use `parseISO` to parse strings. See: https://github.com/date-fns/date-fns/blob/master/docs/upgradeGuide.md#string-arguments"),console.warn((new Error).stack)),new Date(NaN))};var n=t(e(18698)),o=t(e(61886));R.exports=c.default},34999:R=>{"use strict";var c=function(P){return function e(M){return!!M&&"object"==typeof M}(P)&&!function t(M){var P=Object.prototype.toString.call(M);return"[object RegExp]"===P||"[object Date]"===P||function i(M){return M.$$typeof===o}(M)}(P)},o="function"==typeof Symbol&&Symbol.for?Symbol.for("react.element"):60103;function r(M,P){return!1!==P.clone&&P.isMergeableObject(M)?O(function d(M){return Array.isArray(M)?[]:{}}(M),M,P):M}function a(M,P,D){return M.concat(P).map(function(l){return r(l,D)})}function m(M){return Object.keys(M).concat(function h(M){return Object.getOwnPropertySymbols?Object.getOwnPropertySymbols(M).filter(function(P){return Object.propertyIsEnumerable.call(M,P)}):[]}(M))}function _(M,P){try{return P in M}catch{return!1}}function O(M,P,D){(D=D||{}).arrayMerge=D.arrayMerge||a,D.isMergeableObject=D.isMergeableObject||c,D.cloneUnlessOtherwiseSpecified=r;var l=Array.isArray(P);return l===Array.isArray(M)?l?D.arrayMerge(M,P,D):function E(M,P,D){var l={};return D.isMergeableObject(M)&&m(M).forEach(function(C){l[C]=r(M[C],D)}),m(P).forEach(function(C){(function v(M,P){return _(M,P)&&!(Object.hasOwnProperty.call(M,P)&&Object.propertyIsEnumerable.call(M,P))})(M,C)||(l[C]=_(M,C)&&D.isMergeableObject(P[C])?function p(M,P){if(!P.customMerge)return O;var D=P.customMerge(M);return"function"==typeof D?D:O}(C,D)(M[C],P[C],D):r(P[C],D))}),l}(M,P,D):r(P,D)}O.all=function(P,D){if(!Array.isArray(P))throw new Error("first argument should be an array");return P.reduce(function(l,C){return O(l,C,D)},{})},R.exports=O},20855:function(R){R.exports=function(){"use strict";var c=/^(b|B)$/,e={iec:{bits:["b","Kib","Mib","Gib","Tib","Pib","Eib","Zib","Yib"],bytes:["B","KiB","MiB","GiB","TiB","PiB","EiB","ZiB","YiB"]},jedec:{bits:["b","Kb","Mb","Gb","Tb","Pb","Eb","Zb","Yb"],bytes:["B","KB","MB","GB","TB","PB","EB","ZB","YB"]}},t={iec:["","kibi","mebi","gibi","tebi","pebi","exbi","zebi","yobi"],jedec:["","kilo","mega","giga","tera","peta","exa","zetta","yotta"]},n={floor:Math.floor,ceil:Math.ceil};function o(i){var d,r,a,p,h,m,_,v,E,O,b,M,P,D,l,C,I,g,B,L,V,Y=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},X=[],te=0;if(isNaN(i))throw new TypeError("Invalid number");if(a=!0===Y.bits,l=!0===Y.unix,M=!0===Y.pad,P=void 0!==Y.round?Y.round:l?1:2,_=void 0!==Y.locale?Y.locale:"",v=Y.localeOptions||{},C=void 0!==Y.separator?Y.separator:"",I=void 0!==Y.spacer?Y.spacer:l?"":" ",B=Y.symbols||{},g=2===(r=Y.base||2)&&Y.standard||"jedec",b=Y.output||"string",h=!0===Y.fullform,m=Y.fullforms instanceof Array?Y.fullforms:[],d=void 0!==Y.exponent?Y.exponent:-1,L=n[Y.roundingMethod]||Math.round,E=(O=Number(i))<0,p=r>2?1e3:1024,V=!1===isNaN(Y.precision)?parseInt(Y.precision,10):0,E&&(O=-O),(-1===d||isNaN(d))&&(d=Math.floor(Math.log(O)/Math.log(p)))<0&&(d=0),d>8&&(V>0&&(V+=8-d),d=8),"exponent"===b)return d;if(0===O)X[0]=0,D=X[1]=l?"":e[g][a?"bits":"bytes"][d];else{te=O/(2===r?Math.pow(2,10*d):Math.pow(1e3,d)),a&&(te*=8)>=p&&d<8&&(te/=p,d++);var K=Math.pow(10,d>0?P:0);X[0]=L(te*K)/K,X[0]===p&&d<8&&void 0===Y.exponent&&(X[0]=1,d++),D=X[1]=10===r&&1===d?a?"kb":"kB":e[g][a?"bits":"bytes"][d],l&&(X[1]="jedec"===g?X[1].charAt(0):d>0?X[1].replace(/B$/,""):X[1],c.test(X[1])&&(X[0]=Math.floor(X[0]),X[1]=""))}if(E&&(X[0]=-X[0]),V>0&&(X[0]=X[0].toPrecision(V)),X[1]=B[X[1]]||X[1],!0===_?X[0]=X[0].toLocaleString():_.length>0?X[0]=X[0].toLocaleString(_,v):C.length>0&&(X[0]=X[0].toString().replace(".",C)),M&&!1===Number.isInteger(X[0])&&P>0){var ee=C||".",ae=X[0].toString().split(ee),Q=ae[1]||"",j=Q.length,k=P-j;X[0]="".concat(ae[0]).concat(ee).concat(Q.padEnd(j+k,"0"))}return h&&(X[1]=m[d]?m[d]:t[g][d]+(a?"bit":"byte")+(1===X[0]?"":"s")),"array"===b?X:"object"===b?{value:X[0],symbol:X[1],exponent:d,unit:D}:X.join(I)}return o.partial=function(i){return function(d){return o(d,i)}},o}()},47355:(R,c,e)=>{var t,n,o;void 0!==(n="function"==typeof(t=o=function(){function o(){for(var r=0,a={};r<arguments.length;r++){var p=arguments[r];for(var h in p)a[h]=p[h]}return a}function i(r){return r.replace(/(%[0-9A-Z]{2}
1)+/g,decodeURIComponent)}return function d(r){function a(){}function p(m,_,v){if(!(typeof document>"u")){"number"==typeof(v=o({path:"/"},a.defaults,v)).expires&&(v.expires=new Date(1*new Date+864e5*v.expires)),v.expires=v.expires?v.expires.toUTCString():"";try{var E=JSON.stringify(_);/^[\{\[]/.test(E)&&(_=E)}catch{}_=r.write?r.write(_,m):encodeURIComponent(String(_)).replace(/%(23|24|26|2B|3A|3C|3E|3D|2F|3F|40|5B|5D|5E|60|7B|7D|7C)/g,decodeURIComponent),m=encodeURIComponent(String(m)).replace(/%(23|24|26|2B|5E|60|7C)/g,decodeURIComponent).replace(/[\(\)]/g,escape);var O="";for(var b in v)v[b]&&(O+="; "+b,!0!==v[b]&&(O+="="+v[b].split(";")[0]));return document.cookie=m+"="+_+O}}function h(m,_){if(!(typeof document>"u")){for(var v={},E=document.cookie?document.cookie.split("; "):[],O=0;O<E.length;O++){var b=E[O].split("="),M=b.slice(1).join("=");!_&&'"'===M.charAt(0)&&(M=M.slice(1,-1));try{var P=i(b[0]);if(M=(r.read||r)(M,P)||i(M),_)try{M=JSON.parse(M)}catch{}if(v[P]=M,m===P)break}catch{}}return m?v[m]:v}}return a.set=p,a.get=function(m){return h(m,!1)},a.getJSON=function(m){return h(m,!0)},a.remove=function(m,_){p(m,"",o(_,{expires:-1}))},a.defaults={},a.withConverter=d,a}(function(){})})?t.call(c,e,c,R):t)&&(R.exports=n),R.exports=o()},37244:(R,c,e)=>{var o=e(53436)(e(12119),"DataView");R.exports=o},54994:(R,c,e)=>{var t=e(64312),n=e(46421),o=e(15764),i=e(18685),d=e(26676);function r(a){var p=-1,h=null==a?0:a.length;for(this.clear();++p<h;){var m=a[p];this.set(m[0],m[1])}}r.prototype.clear=t,r.prototype.delete=n,r.prototype.get=o,r.prototype.has=i,r.prototype.set=d,R.exports=r},9215:(R,c,e)=>{var t=e(41840),n=e(34378),o=e(54981),i=e(67343),d=e(98895);function r(a){var p=-1,h=null==a?0:a.length;for(this.clear();++p<h;){var m=a[p];this.set(m[0],m[1])}}r.prototype.clear=t,r.prototype.delete=n,r.prototype.get=o,r.prototype.has=i,r.prototype.set=d,R.exports=r},51501:(R,c,e)=>{var o=e(53436)(e(12119),"Map");R.exports=o},99850:(R,c,e)=>{var t=e(10638),n=e(11184),o=e(70866),i=e(43771),d=e(51772);function r(a){var p=-1,h=null==a?0:a.length;for(this.clear();++p<h;){var m=a[p];this.set(m[0],m[1])}}r.prototype.clear=t,r.prototype.delete=n,r.prototype.get=o,r.prototype.has=i,r.prototype.set=d,R.exports=r},44267:(R,c,e)=>{var o=e(53436)(e(12119),"Promise");R.exports=o},46323:(R,c,e)=>{var o=e(53436)(e(12119),"Set");R.exports=o},58849:(R,c,e)=>{var t=e(99850),n=e(4600),o=e(31387);function i(d){var r=-1,a=null==d?0:d.length;for(this.__data__=new t;++r<a;)this.add(d[r])}i.prototype.add=i.prototype.push=n,i.prototype.has=o,R.exports=i},2858:(R,c,e)=>{var t=e(9215),n=e(13720),o=e(64410),i=e(45576),d=e(25106),r=e(41585);function a(p){var h=this.__data__=new t(p);this.size=h.size}a.prototype.clear=n,a.prototype.delete=o,a.prototype.get=i,a.prototype.has=d,a.prototype.set=r,R.exports=a},60443:(R,c,e)=>{var t=e(12119);R.exports=t.Symbol},73457:(R,c,e)=>{var t=e(12119);R.exports=t.Uint8Array},24243:(R,c,e)=>{var o=e(53436)(e(12119),"WeakMap");R.exports=o},26999:R=>{R.exports=function c(e,t,n){switch(n.length){case 0:return e.call(t);case 1:return e.call(t,n[0]);case 2:return e.call(t,n[0],n[1]);case 3:return e.call(t,n[0],n[1],n[2])}return e.apply(t,n)}},12706:R=>{R.exports=function c(e,t,n,o){for(var i=-1,d=null==e?0:e.length;++i<d;){var r=e[i];t(o,r,n(r),e)}return o}},96837:R=>{R.exports=function c(e,t){for(var n=-1,o=null==e?0:e.length;++n<o&&!1!==t(e[n],n,e););return e}},69779:R=>{R.exports=function c(e,t){for(var n=-1,o=null==e?0:e.length,i=0,d=[];++n<o;){var r=e[n];t(r,n,e)&&(d[i++]=r)}return d}},61253:(R,c,e)=>{var t=e(14164);R.exports=function n(o,i){return!(null==o||!o.length)&&t(o,i,0)>-1}},37609:R=>{R.exports=function c(e,t,n){for(var o=-1,i=null==e?0:e.length;++o<i;)if(n(t,e[o]))return!0;return!1}},72271:(R,c,e)=>{var t=e(85334),n=e(77151),o=e(21503),i=e(80891),d=e(58442),r=e(48159),p=Object.prototype.hasOwnProperty;R.exports=function h(m,_){var v=o(m),E=!v&&n(m),O=!v&&!E&&i(m),b=!v&&!E&&!O&&r(m),M=v||E||O||b,P=M?t(m.length,String):[],D=P.length;for(var l in m)(_||p.call(m,l))&&(!M||!("length"==l||O&&("offset"==l||"parent"==l)||b&&("buffer"==l||"byteLength"==l||"byteOffset"==l)||d(l,D)))&&P.push(l);return P}},84633:R=>{R.exports=function c(e,t){for(var n=-1,o=null==e?0:e.length,i=Array(o);++n<o;)i[n]=t(e[n],n,e);return i}},85059:R=>{R.exports=function c(e,t){for(var n=-1,o=t.length,i=e.length;++n<o;)e[i+n]=t[n];return e}},79503:R=>{R.exports=function c(e,t){for(var n=-1,o=null==e?0:e.length;++n<o;)if(t(e[n],n,e))return!0;return!1}},49276:(R,c,e)=>{var t=e(85683),n=e(20217);R.exports=function o(i,d,r){(void 0!==r&&!n(i[d],r)||void 0===r&&!(d in i))&&t(i,d,r)}},89719:(R,c,e)=>{var t=e(85683),n=e(20217),i=Object.prototype.hasOwnProperty;R.exports=function d(r,a,p){var h=r[a];(!i.call(r,a)||!n(h,p)||void 0===p&&!(a in r))&&t(r,a,p)}},43503:(R,c,e)=>{var t=e(20217);R.exports=function n(o,i){for(var d=o.length;d--;)if(t(o[d][0],i))return d;return-1}},96139:(R,c,e)=>{var t=e(43132);R.exports=function n(o,i,d,r){return t(o,function(a,p,h){i(r,a,d(a),h)}),r}},94121:(R,c,e)=>{var t=e(31989),n=e(118);R.exports=function o(i,d){return i&&t(d,n(d),i)}},99287:(R,c,e)=>{var t=e(31989),n=e(16555);R.exports=function o(i,d){return i&&t(d,n(d),i)}},85683:(R,c,e)=>{var t=e(56713);R.exports=function n(o,i,d){"__proto__"==i&&t?t(o,i,{configurable:!0,enumerable:!0,value:d,writable:!0}):o[i]=d}},44462:(R,c,e)=>{var t=e(2858),n=e(96837),o=e(89719),i=e(94121),d=e(99287),r=e(19292),a=e(99454),p=e(84444),h=e(59905),m=e(47597),_=e(6967),v=e(28794),E=e(76782),O=e(37878),b=e(4264),M=e(21503),P=e(80891),D=e(13222),l=e(25940),C=e(90799),I=e(118),g=e(16555),Y="[object Arguments]",ae
vendor: 1,356 bytes, line 1
1="[object Function]",G="[object Object]",Mt={};Mt[Y]=Mt["[object Array]"]=Mt["[object ArrayBuffer]"]=Mt["[object DataView]"]=Mt["[object Boolean]"]=Mt["[object Date]"]=Mt["[object Float32Array]"]=Mt["[object Float64Array]"]=Mt["[object Int8Array]"]=Mt["[object Int16Array]"]=Mt["[object Int32Array]"]=Mt["[object Map]"]=Mt["[object Number]"]=Mt[G]=Mt["[object RegExp]"]=Mt["[object Set]"]=Mt["[object String]"]=Mt["[object Symbol]"]=Mt["[object Uint8Array]"]=Mt["[object Uint8ClampedArray]"]=Mt["[object Uint16Array]"]=Mt["[object Uint32Array]"]=!0,Mt["[object Error]"]=Mt[ae]=Mt["[object WeakMap]"]=!1,R.exports=function Yt(nt,mt,en,pn,tt,Tt){var At,Rt=1&mt,Pt=2&mt,xt=4&mt;if(en&&(At=tt?en(nt,pn,tt,Tt):en(nt)),void 0!==At)return At;if(!l(nt))return nt;var lt=M(nt);if(lt){if(At=E(nt),!Rt)return a(nt,At)}else{var Ut=v(nt),ke=Ut==ae||"[object GeneratorFunction]"==Ut;if(P(nt))return r(nt,Rt);if(Ut==G||Ut==Y||ke&&!tt){if(At=Pt||ke?{}:b(nt),!Rt)return Pt?h(nt,d(At,nt)):p(nt,i(At,nt))}else{if(!Mt[Ut])return tt?nt:{};At=O(nt,Ut,Rt)}}Tt||(Tt=new t);var ot=Tt.get(nt);if(ot)return ot;Tt.set(nt,At),C(nt)?nt.forEach(function(hn){At.add(Yt(hn,mt,en,hn,nt,Tt))}):D(nt)&&nt.forEach(function(hn,Vt){At.set(Vt,Yt(hn,mt,en,Vt,nt,Tt))});var zt=lt?void 0:(xt?Pt?_:m:Pt?g:I)(nt);return n(zt||nt,function(hn,Vt){zt&&(hn=nt[Vt=hn]),o(At,Vt,Yt(hn,mt,en,Vt,nt,Tt))}),At}}
vendor: 2,616 bytes, line 1
1,78858:(R,c,e)=>{var t=e(25940),n=Object.create,o=function(){function i(){}return function(d){if(!t(d))return{};if(n)return n(d);i.prototype=d;var r=new i;return i.prototype=void 0,r}}();R.exports=o},42664:(R,c,e)=>{var t=e(58849),n=e(61253),o=e(37609),i=e(84633),d=e(85647),r=e(25972);R.exports=function p(h,m,_,v){var E=-1,O=n,b=!0,M=h.length,P=[],D=m.length;if(!M)return P;_&&(m=i(m,d(_))),v?(O=o,b=!1):m.length>=200&&(O=r,b=!1,m=new t(m));e:for(;++E<M;){var l=h[E],C=null==_?l:_(l);if(l=v||0!==l?l:0,b&&C==C){for(var I=D;I--;)if(m[I]===C)continue e;P.push(l)}else O(m,C,v)||P.push(l)}return P}},43132:(R,c,e)=>{var t=e(45184),o=e(16539)(t);R.exports=o},65317:R=>{R.exports=function c(e,t,n,o){for(var i=e.length,d=n+(o?1:-1);o?d--:++d<i;)if(t(e[d],d,e))return d;return-1}},2762:R=>{R.exports=function c(e,t,n){var o;return n(e,function(i,d,r){if(t(i,d,r))return o=d,!1}),o}},50686:(R,c,e)=>{var t=e(85059),n=e(75039);R.exports=function o(i,d,r,a,p){var h=-1,m=i.length;for(r||(r=n),p||(p=[]);++h<m;){var _=i[h];d>0&&r(_)?d>1?o(_,d-1,r,a,p):t(p,_):a||(p[p.length]=_)}return p}},30755:(R,c,e)=>{var n=e(40456)();R.exports=n},45184:(R,c,e)=>{var t=e(30755),n=e(118);R.exports=function o(i,d){return i&&t(i,d,n)}},15456:(R,c,e)=>{var t=e(65456),n=e(68533);R.exports=function o(i,d){for(var r=0,a=(d=t(d,i)).length;null!=i&&r<a;)i=i[n(d[r++])];return r&&r==a?i:void 0}},38247:(R,c,e)=>{var t=e(85059),n=e(21503);R.exports=function o(i,d,r){var a=d(i);return n(i)?a:t(a,r(i))}},93337:(R,c,e)=>{var t=e(60443),n=e(21318),o=e(92902),r=t?t.toStringTag:void 0;R.exports=function a(p){return null==p?void 0===p?"[object Undefined]":"[object Null]":r&&r in Object(p)?n(p):o(p)}},69989:R=>{R.exports=function c(e,t){return null!=e&&t in Object(e)}},14164:(R,c,e)=>{var t=e(65317),n=e(70968),o=e(24977);R.exports=function i(d,r,a){return r==r?o(d,r,a):t(d,n,a)}},60186:(R,c,e)=>{var t=e(93337),n=e(72671);R.exports=function i(d){return n(d)&&"[object Arguments]"==t(d)}},85740:(R,c,e)=>{var t=e(58325),n=e(72671);R.exports=function o(i,d,r,a,p){return i===d||(null==i||null==d||!n(i)&&!n(d)?i!=i&&d!=d:t(i,d,r,a,o,p))}},58325:(R,c,e)=>{var t=e(2858),n=e(63914),o=e(78583),i=e(32286),d=e(28794),r=e(21503),a=e(80891),p=e(48159),m="[object Arguments]",_="[object Array]",v="[object Object]",O=Object.prototype.hasOwnProperty;R.exports=function b(M,P,D,l,C,I){var g=r(M),B=r(P),L=g?_:d(M),V=B?_:d(P),Y=(L=L==m?v:L)==v,X=(V=V==m?v:V)==v,te=L==V;if(te&&a(M)){if(!a(P))return!1;g=!0,Y=!1}if(te&&!Y)return I||(I=new t),g||p(M)?n(M,P,D,l,C,I):o(M,P,L,D,l,C,I);if(!(1&D)){var K=Y&&O.call(M,"__wrapped__"),ee=X&&O.call(P,"__wrapped__");
1if(K||ee){var ae=K?M.value():M,Q=ee?P.value():P;return I||(I=new t),C(ae,Q,D,l,I)}}return!!te&&(I||(I=new t),i(M,P,D,l,C,I))}},97021:(R,c,e)=>{var t=e(28794),n=e(72671);R.exports=function i(d){return n(d)&&"[object Map]"==t(d)}},40431:(R,c,e)=>{var t=e(2858),n=e(85740);R.exports=function d(r,a,p,h){var m=p.length,_=m,v=!h;if(null==r)return!_;for(r=Object(r);m--;){var E=p[m];if(v&&E[2]?E[1]!==r[E[0]]:!(E[0]in r))return!1}for(;++m<_;){var O=(E=p[m])[0],b=r[O],M=E[1];if(v&&E[2]){if(void 0===b&&!(O in r))return!1}else{var P=new t;if(h)var D=h(b,M,O,r,a,P);if(!(void 0===D?n(M,b,3,h,P):D))return!1}}return!0}},70968:R=>{R.exports=function c(e){return e!=e}},37304:(R,c,e)=>{var t=e(75946),n=e(91943),o=e(25940),i=e(52827),r=/^\[object .+?Constructor\]$/,_=RegExp("^"+Function.prototype.toString.call(Object.prototype.hasOwnProperty).replace(/[\\^$.*+?()[\]{}|]/g,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$");R.exports=function v(E){return!(!o(E)||n(E))&&(t(E)?_:r).test(i(E))}},771:(R,c,e)=>{var t=e(28794),n=e(72671);R.exports=function i(d){return n(d)&&"[object Set]"==t(d)}},1083:(R,c,e)=>{var t=e(93337),n=e(96231),o=e(72671),te={};te["[object Float32Array]"]=te["[object Float64Array]"]=te["[object Int8Array]"]=te["[object Int16Array]"]=te["[object Int32Array]"]=te["[object Uint8Array]"]=te["[object Uint8ClampedArray]"]=te["[object Uint16Array]"]=te["[object Uint32Array]"]=!0,te["[object Arguments]"]=te["[object Array]"]=te["[object ArrayBuffer]"]=te["[object Boolean]"]=te["[object DataView]"]=te["[object Date]"]=te["[object Error]"]=te["[object Function]"]=te["[object Map]"]=te["[object Number]"]=te["[object Object]"]=te["[object RegExp]"]=te["[object Set]"]=te["[object String]"]=te["[object WeakMap]"]=!1,R.exports=function K(ee){return o(ee)&&n(ee.length)&&!!te[t(ee)]}},96517:(R,c,e)=>{var t=e(98133),n=e(9458),o=e(32608),i=e(21503),d=e(87495);R.exports=function r(a){return"function"==typeof a?a:null==a?o:"object"==typeof a?i(a)?n(a[0],a[1]):t(a):d(a)}},81172:(R,c,e)=>{var t=e(45488),n=e(85491),i=Object.prototype.hasOwnProperty;R.exports=function d(r){if(!t(r))return n(r);var a=[];for(var p in Object(r))i.call(r,p)&&"constructor"!=p&&a.push(p);return a}},92809:(R,c,e)=>{var t=e(25940),n=e(45488),o=e(32158),d=Object.prototype.hasOwnProperty;R.exports=function r(a){if(!t(a))return o(a);var p=n(a),h=[];for(var m in a)"constructor"==m&&(p||!d.call(a,m))||h.push(m);return h}},92046:(R,c,e)=>{var t=e(43132),n=e(56507);R.exports=function o(i,d){var r=-1,a=n(i)?Array(i.length):[];return t(i,function(p,h,m){a[++r]=d(p,h,m)}),a}},98133:(R,c,e)=>{var t=e(40431),n=e(22379),o=e(642);R.exports=function i(d){var r=n(d);return 1==r.length&&r[0][2]?o(r[0][0],r[0][1]):function(a){return a===d||t(a,d,r)}}},9458:(R,c,e)=>{var t=e(85740),n=e(8817),o=e(11172),i=e(45352),d=e(22442),r=e(642),a=e(68533);R.exports=function m(_,v){return i(_)&&d(v)?r(a(_),v):function(E){var O=n(E,_);return void 0===O&&O===v?o(E,_):t(v,O,3)}}},73842:(R,c,e)=>{var t=e(2858),n=e(49276),o=e(30755),i=e(33675),d=e(25940),r=e(16555),a=e(99351);R.exports=function p(h,m,_,v,E){h!==m&&o(m,function(O,b){if(E||(E=new t),d(O))i(h,m,b,_,p,v,E);else{var M=v?v(a(h,b),O,b+"",h,m,E):void 0;void 0===M&&(M=O),n(h,b,M)}},r)}},33675:(R,c,e)=>{var t=e(49276),n=e(19292),o=e(65208),i=e(99454),d=e(4264),r=e(77151),a=e(21503),p=e(21330),h=e(80891),m=e(75946),_=e(25940),v=e(97614),E=e(48159),O=e(99351),b=e(8067);R.exports=function M(P,D,l,C,I,g,B){var L=O(P,l),V=O(D,l),Y=B.get(V);if(Y)t(P,l,Y);else{var X=g?g(L,V,l+"",P,D,B):void 0,te=void 0===X;if(te){var K=a(V),ee=!K&&h(V),ae=!K&&!ee&&E(V);X=V,K||ee||ae?a(L)?X=L:p(L)?X=i(L):ee?(te=!1,X=n(V,!0)):ae?(te=!1,X=o(V,!0)):X=[]:v(V)||r(V)?(X=L,r(L)?X=b(L):(!_(L)||m(L))&&(X=d(V))):te=!1}te&&(B.set(V,X),I(X,V,C,g,B),B.delete(V)),t(P,l,X)}}},6119:(R,c,e)=>{var t=e(84633),n=e(15456),o=e(96517),i=e(92046),d=e(18750),r=e(85647),a=e(41215),p=e(32608),h=e(21503);R.exports=function m(_,v,E){v=v.length?t(v,function(M){return h(M)?function(P){return n(P,1===M.length?M[0]:M)}:M}):[p];var O=-1;v=t(v,r(o));var b=i(_,function(M,P,D){return{criteria:t(v,function(C){return C(M)}),index:++O,value:M}});return d(b,function(M,P){return a(M,P,E)})}},11847:R=>{R.exports=function c(e){return function(t){return t?.[e]}}},39222:(R,c,e)=>{var t=e(15456);R.exports=function n(o){return function(i){return t(i,o)}}},23269:(R,c,e)=>{var t=e(32608),n=e(53983),o=e(72185);R.exports=function i(d,r){return o(n(d,r,t),d+"")}},69510:(R,c,e)=>{var t=e(76684),n=e(56713),o=e(32608);R.exports=n?function(d,r){return n(d,"toString",{configurable:!0,enumerable:!1,value:t(r),writable:!0})}:o},18750:R=>{R.exports=function c(e,t){var n=e.length;for(e.sort(t);n--;)e[n]=e[n].value;return e}},85334:R=>{R.exports=function c(e,t){for(var n=-1,o=Array(e);++n<e;)o[n]=t(n);return o}},93935:(R,c,e)=>{var t=e(60443),n=e(84633),o=e(21503),i=e(44129),r=t?t.prototype:void 0,a=r?r.toString:void 0;R.exports=function p(h){if("string"==typeof h)return h;if(o(h))return n(h,p)+"";if(i(h))return a?a.call(h):"";var m=h+"";return"0"==m&&1/h==-Infinity?"-0":m}},83348:(R,c,e)=>{var t=e(42760),n=/^\s+/;R.exports=function o(i){return i&&i.slice(0,t(i)+1).replace(n,"")}},85647:R=>{R.exports=function c(e){return function(t){return e(t)}}},80707:(R,c,e)=>{var t=e(58849),n=e(61253),o=e(37609),i=e(25972),d=e(14575),r=e(24174);R.exports=function p(h,m,_){var v=-1,E=n,O=h.length,b=!0,M=[],P=M;if(_)b=!1,E=o;else if(O>=200){var D=m?null:d(h);if(D)return r(D);b=!1,E=i,P=new t}else P=m?[]:M;e:for(;++v<O;){var l=h[v],C=m?m(l):l;if(l=_||0!==l?l:0,b&&C==C){for(var I=P.length;I--;)if(P[I]===C)continue e;m&&P.push(C),M.push(l)}else E(P,C,_)||(P!==M&&P.push(C),M.push(l))}return M}},25972:R=>{R.exports=function c(e,t){return e.has(t)}},65456:(R,c,e)=>{var t=e(21503),n=e(45352),o=e(32855),i=e(73943);R.exports=function d(r,a){return t(r)?r:n(r,a)?[r]:o(i(r))}},43362:(R,c,e)=>{var t=e(73457);R.exports=function n(o){var i=new o.constructor(o.byteLength);return new t(i).set(new t(o)),i}},19292:(R,c,e)=>{R=e.nmd(R);var t=e(12119),n=c&&!c.nodeType&&c,o=n&&R&&!R.nodeType&&R,d=o&&o.exports===n?t.Buffer:void 0,r=d?d.allocUnsafe:void 0;R.exports=function a(p,h){if(h)return p.slice();var m=p.length,_=r?r(m):new p.constructor(m);return p.copy(_),_}},17e3:(R,c,e)=>{var t=e(43362);R.exports=function n(o,i){var d=i?t(o.buffer):o.buffer;return new o.constructor(d,o.byteOffset,o.byteLength)}},74098:R=>{var c=/\w*$/;R.exports=function e(t){var n=new t.constructor(t.source,c.exec(t));return n.lastIndex=t.lastIndex,n}},62533:(R,c,e)=>
vendor: 3,148 bytes, line 1
1{var t=e(60443),n=t?t.prototype:void 0,o=n?n.valueOf:void 0;R.exports=function i(d){return o?Object(o.call(d)):{}}},65208:(R,c,e)=>{var t=e(43362);R.exports=function n(o,i){var d=i?t(o.buffer):o.buffer;return new o.constructor(d,o.byteOffset,o.length)}},13443:(R,c,e)=>{var t=e(44129);R.exports=function n(o,i){if(o!==i){var d=void 0!==o,r=null===o,a=o==o,p=t(o),h=void 0!==i,m=null===i,_=i==i,v=t(i);if(!m&&!v&&!p&&o>i||p&&h&&_&&!m&&!v||r&&h&&_||!d&&_||!a)return 1;if(!r&&!p&&!v&&o<i||v&&d&&a&&!r&&!p||m&&d&&a||!h&&a||!_)return-1}return 0}},41215:(R,c,e)=>{var t=e(13443);R.exports=function n(o,i,d){for(var r=-1,a=o.criteria,p=i.criteria,h=a.length,m=d.length;++r<h;){var _=t(a[r],p[r]);if(_)return r>=m?_:_*("desc"==d[r]?-1:1)}return o.index-i.index}},99454:R=>{R.exports=function c(e,t){var n=-1,o=e.length;for(t||(t=Array(o));++n<o;)t[n]=e[n];return t}},31989:(R,c,e)=>{var t=e(89719),n=e(85683);R.exports=function o(i,d,r,a){var p=!r;r||(r={});for(var h=-1,m=d.length;++h<m;){var _=d[h],v=a?a(r[_],i[_],_,r,i):void 0;void 0===v&&(v=i[_]),p?n(r,_,v):t(r,_,v)}return r}},84444:(R,c,e)=>{var t=e(31989),n=e(39383);R.exports=function o(i,d){return t(i,n(i),d)}},59905:(R,c,e)=>{var t=e(31989),n=e(53051);R.exports=function o(i,d){return t(i,n(i),d)}},24610:(R,c,e)=>{var t=e(12119);R.exports=t["__core-js_shared__"]},41005:(R,c,e)=>{var t=e(12706),n=e(96139),o=e(96517),i=e(21503);R.exports=function d(r,a){return function(p,h){var m=i(p)?t:n,_=a?a():{};return m(p,r,o(h,2),_)}}},84944:(R,c,e)=>{var t=e(23269),n=e(93342);R.exports=function o(i){return t(function(d,r){var a=-1,p=r.length,h=p>1?r[p-1]:void 0,m=p>2?r[2]:void 0;for(h=i.length>3&&"function"==typeof h?(p--,h):void 0,m&&n(r[0],r[1],m)&&(h=p<3?void 0:h,p=1),d=Object(d);++a<p;){var _=r[a];_&&i(d,_,a,h)}return d})}},16539:(R,c,e)=>{var t=e(56507);R.exports=function n(o,i){return function(d,r){if(null==d)return d;if(!t(d))return o(d,r);for(var a=d.length,p=i?a:-1,h=Object(d);(i?p--:++p<a)&&!1!==r(h[p],p,h););return d}}},40456:R=>{R.exports=function c(e){return function(t,n,o){for(var i=-1,d=Object(t),r=o(t),a=r.length;a--;){var p=r[e?a:++i];if(!1===n(d[p],p,d))break}return t}}},14575:(R,c,e)=>{var t=e(46323),n=e(12552),o=e(24174),d=t&&1/o(new t([,-0]))[1]==1/0?function(r){return new t(r)}:n;R.exports=d},56713:(R,c,e)=>{var t=e(53436),n=function(){try{var o=t(Object,"defineProperty");return o({},"",{}),o}catch{}}();R.exports=n},63914:(R,c,e)=>{var t=e(58849),n=e(79503),o=e(25972);R.exports=function r(a,p,h,m,_,v){var E=1&h,O=a.length,b=p.length;if(O!=b&&!(E&&b>O))return!1;var M=v.get(a),P=v.get(p);if(M&&P)return M==p&&P==a;var D=-1,l=!0,C=2&h?new t:void 0;for(v.set(a,p),v.set(p,a);++D<O;){var I=a[D],g=p[D];if(m)var B=E?m(g,I,D,p,a,v):m(I,g,D,a,p,v);if(void 0!==B){if(B)continue;l=!1;break}if(C){if(!n(p,function(L,V){if(!o(C,V)&&(I===L||_(I,L,h,m,v)))return C.push(V)})){l=!1;break}}else if(I!==g&&!_(I,g,h,m,v)){l=!1;break}}return v.delete(a),v.delete(p),l}},78583:(R,c,e)=>{var t=e(60443),n=e(73457),o=e(20217),i=e(63914),d=e(83205),r=e(24174),C=t?t.prototype:void 0,I=C?C.valueOf:void 0;R.exports=function g(B,L,V,Y,X,te,K){switch(V){case"[object DataView]":if(B.b
1yteLength!=L.byteLength||B.byteOffset!=L.byteOffset)return!1;B=B.buffer,L=L.buffer;case"[object ArrayBuffer]":return!(B.byteLength!=L.byteLength||!te(new n(B),new n(L)));case"[object Boolean]":case"[object Date]":case"[object Number]":return o(+B,+L);case"[object Error]":return B.name==L.name&&B.message==L.message;case"[object RegExp]":case"[object String]":return B==L+"";case"[object Map]":var ee=d;case"[object Set]":if(ee||(ee=r),B.size!=L.size&&!(1&Y))return!1;var Q=K.get(B);if(Q)return Q==L;Y|=2,K.set(B,L);var j=i(ee(B),ee(L),Y,X,te,K);return K.delete(B),j;case"[object Symbol]":if(I)return I.call(B)==I.call(L)}return!1}},32286:(R,c,e)=>{var t=e(47597),i=Object.prototype.hasOwnProperty;R.exports=function d(r,a,p,h,m,_){var v=1&p,E=t(r),O=E.length;if(O!=t(a).length&&!v)return!1;for(var P=O;P--;){var D=E[P];if(!(v?D in a:i.call(a,D)))return!1}var l=_.get(r),C=_.get(a);if(l&&C)return l==a&&C==r;var I=!0;_.set(r,a),_.set(a,r);for(var g=v;++P<O;){var B=r[D=E[P]],L=a[D];if(h)var V=v?h(L,B,D,a,r,_):h(B,L,D,r,a,_);if(!(void 0===V?B===L||m(B,L,p,h,_):V)){I=!1;break}g||(g="constructor"==D)}if(I&&!g){var Y=r.constructor,X=a.constructor;Y!=X&&"constructor"in r&&"constructor"in a&&!("function"==typeof Y&&Y instanceof Y&&"function"==typeof X&&X instanceof X)&&(I=!1)}return _.delete(r),_.delete(a),I}},79122:R=>{var c="object"==typeof global&&global&&global.Object===Object&&global;R.exports=c},47597:(R,c,e)=>{var t=e(38247),n=e(39383),o=e(118);R.exports=function i(d){return t(d,o,n)}},6967:(R,c,e)=>{var t=e(38247),n=e(53051),o=e(16555);R.exports=function i(d){return t(d,o,n)}},54537:(R,c,e)=>{var t=e(23819);R.exports=function n(o,i){var d=o.__data__;return t(i)?d["string"==typeof i?"string":"hash"]:d.map}},22379:(R,c,e)=>{var t=e(22442),n=e(118);R.exports=function o(i){for(var d=n(i),r=d.length;r--;){var a=d[r],p=i[a];d[r]=[a,p,t(p)]}return d}},53436:(R,c,e)=>{var t=e(37304),n=e(51990);R.exports=function o(i,d){var r=n(i,d);return t(r)?r:void 0}},29519:(R,c,e)=>{var n=e(69385)(Object.getPrototypeOf,Object);R.exports=n},21318:(R,c,e)=>{var t=e(60443),n=Object.prototype,o=n.hasOwnProperty,i=n.toString,d=t?t.toStringTag:void 0;R.exports=function r(a){var p=o.call(a,d),h=a[d];try{a[d]=void 0;var m=!0}catch{}var _=i.call(a);return m&&(p?a[d]=h:delete a[d]),_}},39383:(R,c,e)=>{var t=e(69779),n=e(49975),i=Object.prototype.propertyIsEnumerable,d=Object.getOwnPropertySymbols;R.exports=d?function(a){return null==a?[]:(a=Object(a),t(d(a),function(p){return i.call(a,p)}))}:n},53051:(R,c,e)=>{var t=e(85059),n=e(29519),o=e(39383),i=e(49975);R.exports=Object.getOwnPropertySymbols?function(a){for(var p=[];a;)t(p,o(a)),a=n(a);return p}:i},28794:(R,c,e)=>{var t=e(37244),n=e(51501),o=e(44267),i=e(46323),d=e(24243),r=e(93337),a=e(52827),p="[object Map]",m="[object Promise]",_="[object Set]",v="[object WeakMap]",E="[object DataView]",O=a(t),b=a(n),M=a(o),P=a(i),D=a(d),l=r;(t&&l(new t(new ArrayBuffer(1)))!=E||n&&l(new n)!=p||o&&l(o.resolve())!=m||i&&l(new i)!=_||d&&l(new d)!=v)&&(l=function(C){var I=r(C),g="[object Object]"==I?C.constructor:void 0,B=g?a(g):"";if(B)switch(B){case O:return E;case b:return p;case M:return m;case P:return _;case D:return v}return I}),R.exports=l},51990:R=>{R.exports=function c(e,t){return e?.[t]}},47283:(R,c,e)=>{var t=e(65456),n=e(77151),o=e(21503),i=e(58442),d=e(96231),r=e(68533);R.exports=function a(p,h,m){for(var _=-1,v=(h=t(h,p)).length,E=!1;++_<v;){var O=r(h[_]);if(!(E=null!=p&&m(p,O)))break;p=p[O]}return E||++_!=v?E:!!(v=null==p?0:p.length)&&d(v)&&i(O,v)&&(o(p)||n(p))}},64312:(R,c,e)=>{var t=e(60862);R.exports=function n(){this.__data__=t?t(null):{},this.size=0}},46421:R=>{R.exports=function c(e){var t=this.has(e)&&delete this.__data__[e];return this.size-=t?1:0,t}},15764:(R,c,e)=>{var t=e(60862),i=Object.prototype.hasOwnProperty;R.exports=function d(r){var a=this.__data__;if(t){var p=a[r];return"__lodash_hash_undefined__"===p?void 0:p}return i.call(a,r)?a[r]:void 0}},18685:(R,c,e)=>{var t=e(60862),o=Object.prototype.hasOwnProperty;R.exports=function i(d){var r=this.__data__;return t?void 0!==r[d]:o.call(r,d)}},26676:(R,c,e)=>{var t=e(60862);R.exports=function o(i,d){var r=this.__data__;return this.size+=this.has(i)?0:1,r[i]=t&&void 0===d?"__lodash_hash_undefined__":d,this}},76782:R=>{var e=Object.prototype.hasOwnProperty;R.exports=function t(n){var o=n.length,i=new n.constructor(o);return o&&"string"==typeof n[0]&&e.call(n,"index")&&(i.index=n.index,i.input=n.input),i}},37878:(R,c,e)=>{var t=e(43362),n=e(17e3),o=e(74098),i=e(62533),d=e(65208);R.exports=function V(Y,X,te){var K=Y.constructor;switch(X){case"[object ArrayBuffer]":return t(Y);case"[object Boolean]":case"[object Date]":return new K(+Y);case"[object DataView]":return n(Y,te);
1case"[object Float32Array]":case"[object Float64Array]":case"[object Int8Array]":case"[object Int16Array]":case"[object Int32Array]":case"[object Uint8Array]":case"[object Uint8ClampedArray]":case"[object Uint16Array]":case"[object Uint32Array]":return d(Y,te);case"[object Map]":case"[object Set]":return new K;case"[object Number]":case"[object String]":return new K(Y);case"[object RegExp]":return o(Y);case"[object Symbol]":return i(Y)}}},4264:(R,c,e)=>{var t=e(78858),n=e(29519),o=e(45488);R.exports=function i(d){return"function"!=typeof d.constructor||o(d)?{}:t(n(d))}},75039:(R,c,e)=>{var t=e(60443),n=e(77151),o=e(21503),i=t?t.isConcatSpreadable:void 0;R.exports=function d(r){return o(r)||n(r)||!!(i&&r&&r[i])}},58442:R=>{var e=/^(?:0|[1-9]\d*)$/;R.exports=function t(n,o){var i=typeof n;return!!(o=o??9007199254740991)&&("number"==i||"symbol"!=i&&e.test(n))&&n>-1&&n%1==0&&n<o}},93342:(R,c,e)=>{var t=e(20217),n=e(56507),o=e(58442),i=e(25940);R.exports=function d(r,a,p){if(!i(p))return!1;var h=typeof a;return!!("number"==h?n(p)&&o(a,p.length):"string"==h&&a in p)&&t(p[a],r)}},45352:(R,c,e)=>{var t=e(21503),n=e(44129),o=/\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/,i=/^\w*$/;R.exports=function d(r,a){if(t(r))return!1;var p=typeof r;return!("number"!=p&&"symbol"!=p&&"boolean"!=p&&null!=r&&!n(r))||i.test(r)||!o.test(r)||null!=a&&r in Object(a)}},23819:R=>{R.exports=function c(e){var t=typeof e;return"string"==t||"number"==t||"symbol"==t||"boolean"==t?"__proto__"!==e:null===e}},91943:(R,c,e)=>{var i,t=e(24610),n=(i=/[^.]+$/.exec(t&&t.keys&&t.keys.IE_PROTO||""))?"Symbol(src)_1."+i:"";R.exports=function o(i){return!!n&&n in i}},45488:R=>{var c=Object.prototype;R.exports=function e(t){var n=t&&t.constructor;return t===("function"==typeof n&&n.prototype||c)}},22442:(R,c,e)=>{var t=e(25940);R.exports=function n(o){return o==o&&!t(o)}},41840:R=>{R.exports=function c(){this.__data__=[],this.size=0}},34378:(R,c,e)=>{var t=e(43503),o=Array.prototype.splice;R.exports=function i(d){var r=this.__data__,a=t(r,d);return!(a<0||(a==r.length-1?r.pop():o.call(r,a,1),--this.size,0))}},54981:(R,c,e)=>{var t=e(43503);R.exports=function n(o){var i=this.__data__,d=t(i,o);return d<0?void 0:i[d][1]}},67343:(R,c,e)=>{var t=e(43503);R.exports=function n(o){return t(this.__data__,o)>-1}},98895:(R,c,e)=>{var t=e(43503);R.exports=function n(o,i){var d=this.__data__,r=t(d,o);return r<0?(++this.size,d.push([o,i])):d[r][1]=i,this}},10638:(R,c,e)=>{var t=e(54994),n=e(9215),o=e(51501);R.exports=function i(){this.size=0,this.__data__={hash:new t,map:new(o||n),string:new t}}},11184:(R,c,e)=>{var t=e(54537);R.exports=function n(o){var i=t(this,o).delete(o);return this.size-=i?1:0,i}},70866:(R,c,e)=>{var t=e(54537);R.exports=function n(o){return t(this,o).get(o)}},43771:(R,c,e)=>{var t=e(54537);R.exports=function n(o){return t(this,o).has(o)}},51772:(R,c,e)=>{var t=e(54537);R.exports=function n(o,i){var d=t(this,o),r=d.size;return d.set(o,i),this.size+=d.size==r?0:1,this}},83205:R=>{R.exports=function c(e){var t=-1,n=Array(e.size);return e.forEach(function(o,i){n[++t]=[i,o]}),n}},642:R=>{R.exports=function c(e,t){return function(n){return null!=n&&n[e]===t&&(void 0!==t||e in Object(n))}}},90719:(R,c,e)=>{var t=e(30535);R.exports=function o(i){var d=t(i,function(a){return 500===r.size&&r.clear(),a}),r=d.cache;return d}},60862:(R,c,e)=>{var n=e(53436)(Object,"create");R.exports=n},85491:(R,c,e)=>{var n=e(69385)(Object.keys,Object);R.exports=n},32158:R=>{R.exports=function c(e){var t=[];if(null!=e)for(var n in Object(e))t.push(n);return t}},73597:(R,c,e)=>{R=e.nmd(R);var t=e(79122),n=c&&!c.nodeType&&c,o=n&&R&&!R.nodeType&&R,d=o&&o.exports===n&&t.process,r=function(){try{return o&&o.require&&o.require("util").types||d&&d.binding&&d.binding("util")}catch{}}();R.exports=r},92902:R=>{var e=Object.prototype.toString;R.exports=function t(n){return e.call(n)}},69385:R=>{R.exports=function c(e,t){return function(n){return e(t(n))}}},53983:(R,c,e)=>{var t=e(26999),n=Math.max;R.exports=function o(i,d,r){return d=n(void 0===d?i.length-1:d,0),function(){for(var a=arguments,p=-1,h=n(a.length-d,0),m=Array(h);++p<h;)m[p]=a[d+p];p=-1;for(var _=Array(d+1);++p<d;)_[p]=a[p];return _[d]=r(m),t(i,this,_)}}},12119:(R,c,e)=>{var t=e(79122),n="object"==typeof self&&self&&self.Object===Object&&self,o=t||n||Function("return this")();R.exports=o},99351:R=>{R.exports=function c(e,t){if(("constructor"!==t||"function"!=typeof e[t])&&"__proto__"!=t)return e[t]}},4600:R=>{R.exports=function e(t){return this.__data__.set(t,"__lodash_hash_undefined__"),this}},31387:R=>{R.exports=function c(e){return this.__data__.has(e)}},24174:R=>{R.exports=function c(e){var t=-1,n=Array(e.size);return e.forEach(function(o){n[++t]=o}),n}},72185:(R,c,e)=>{var t=e(69510),o=e(10029)(t);R.exports=o},10029:R=>{var c=800,e=16,t=Date.now;R.exports=function n(o){var i=0,d=0;return function(){var r=t(),a=e-(r-d);if(d=r,a>0){if(++i>=c)return arguments[0]}else i=0;return o.apply(void 0,arguments)}}},13720:(R,c,e)=>{var t=e(9215);R.exports=function n(){this.__data__=new t,this.size=0}},64410:R=>{R.exports=function c(e){var t=this.__data__,n=t.delete(e);return this.size=t.size,n}},45576:R=>{R.exports=function c(e){return this.__data__.get(e)}},25106:R=>{R.exports=function c(e){return this.__data__.has(e)}},41585:(R,c,e)=>{var t=e(9215),n=e(51501),o=e(99850);R.exports=function d(r,a){var p=this.__data__;if(p instanceof t){var h=p.__data__;if(!n||h.length<199)return h.push([r,a]),this.size=++p.size,this;p=this.__data__=new o(h)}return p.set(r,a),this.size=p.size,this}},24977:R=>
1{R.exports=function c(e,t,n){for(var o=n-1,i=e.length;++o<i;)if(e[o]===t)return o;return-1}},32855:(R,c,e)=>{var t=e(90719),n=/[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|$))/g,o=/\\(\\)?/g,i=t(function(d){var r=[];return 46===d.charCodeAt(0)&&r.push(""),d.replace(n,function(a,p,h,m){r.push(h?m.replace(o,"$1"):p||a)}),r});R.exports=i},68533:(R,c,e)=>{var t=e(44129);R.exports=function o(i){if("string"==typeof i||t(i))return i;var d=i+"";return"0"==d&&1/i==-Infinity?"-0":d}},52827:R=>{var e=Function.prototype.toString;R.exports=function t(n){if(null!=n){try{return e.call(n)}catch{}try{return n+""}catch{}}return""}},42760:R=>{var c=/\s/;R.exports=function e(t){for(var n=t.length;n--&&c.test(t.charAt(n)););return n}},90733:(R,c,e)=>{var t=e(44462);R.exports=function i(d){return t(d,5)}},76684:R=>{R.exports=function c(e){return function(){return e}}},20406:(R,c,e)=>{var t=e(25940),n=e(31710),o=e(51467),d=Math.max,r=Math.min;R.exports=function a(p,h,m){var _,v,E,O,b,M,P=0,D=!1,l=!1,C=!0;if("function"!=typeof p)throw new TypeError("Expected a function");function I(ee){var ae=_,Q=v;return _=v=void 0,P=ee,O=p.apply(Q,ae)}function L(ee){var ae=ee-M;return void 0===M||ae>=h||ae<0||l&&ee-P>=E}function V(){var ee=n();if(L(ee))return Y(ee);b=setTimeout(V,function B(ee){var j=h-(ee-M);return l?r(j,E-(ee-P)):j}(ee))}function Y(ee){return b=void 0,C&&_?I(ee):(_=v=void 0,O)}function K(){var ee=n(),ae=L(ee);if(_=arguments,v=this,M=ee,ae){if(void 0===b)return function g(ee){return P=ee,b=setTimeout(V,h),D?I(ee):O}(M);if(l)return clearTimeout(b),b=setTimeout(V,h),I(M)}return void 0===b&&(b=setTimeout(V,h)),O}return h=o(h)||0,t(m)&&(D=!!m.leading,E=(l="maxWait"in m)?d(o(m.maxWait)||0,h):E,C="trailing"in m?!!m.trailing:C),K.cancel=function X(){void 0!==b&&clearTimeout(b),P=0,_=M=v=b=void 0},K.flush=function te(){return void 0===b?O:Y(n())},K}},18680:(R,c,e)=>{var t=e(42664),n=e(50686),o=e(23269),i=e(21330),d=o(function(r,a){return i(r)?t(r,n(a,1,i,!0)):[]});R.exports=d},55407:(R,c,e)=>{var t=e(42664),n=e(50686),o=e(23269),i=e(21330),d=e(25809),r=o(function(a,p){var h=d(p);return i(h)&&(h=void 0),i(a)?t(a,n(p,1,i,!0),void 0,h):[]});R.exports=r},20217:R=>{R.exports=function c(e,t){return e===t||e!=e&&t!=t}},36397:(R,c,e)=>{var t=e(65317),n=e(96517),o=e(44401),i=Math.max;R.exports=function d(r,a,p){var h=null==r?0:r.length;if(!h)return-1;var m=null==p?0:o(p);return m<0&&(m=i(h+m,0)),t(r,n(a,3),m)}},58152:(R,c,e)=>{var t=e(2762),n=e(45184),o=e(96517);R.exports=function i(d,r){return t(d,o(r,3),n)}},8817:(R,c,e)=>{var t=e(15456);R.exports=function n(o,i,d){var r=null==o?void 0:t(o,i);return void 0===r?d:r}},2716:(R,c,e)=>{var t=e(85683),n=e(41005),i=Object.prototype.hasOwnProperty,d=n(function(r,a,p){i.call(r,p)?r[p].push(a):t(r,p,[a])});R.exports=d},11172:(R,c,e)=>{var t=e(69989),n=e(47283);R.exports=function o(i,d){return null!=i&&n(i,d,t)}},32608:R=>{R.exports=function c(e){return e}},77151:(R,c,e)=>{var t=e(60186),n=e(72671),o=Object.prototype,i=o.hasOwnProperty,d=o.propertyIsEnumerable,r=t(function(){return arguments}())?t:function(a){return n(a)&&i.call(a,"callee")&&!d.call(a,"callee")};R.exports=r},21503:R=>{R.exports=Array.isArray},56507:(R,c,e)=>{var t=e(75946),n=e(96231);R.exports=function o(i){return null!=i&&n(i.length)&&!t(i)}},21330:(R,c,e)=>{var t=e(56507),n=e(72671);R.exports=function o(i){return n(i)&&t(i)}},80891:(R,c,e)=>{R=e.nmd(R);var t=e(12119),n=e(63580),o=c&&!c.nodeType&&c,i=o&&R&&!R.nodeType&&R,r=i&&i.exports===o?t.Buffer:void 0;R.exports=(r?r.isBuffer:void 0)||n},64509:(R,c,e)=>{var t=e(85740);R.exports=function n(o,i){return t(o,i)}},75946:(R,c,e)=>{var t=e(93337),n=e(25940);R.exports=function a(p){if(!n(p))return!1;var h=t(p);return"[object Function]"==h||"[object GeneratorFunction]"==h||"[object AsyncFunction]"==h||"[object Proxy]"==h}},96231:R=>{R.exports=function e(t){return"number"==typeof t&&t>-1&&t%1==0&&t<=9007199254740991}},13222:(R,c,e)=>{var t=e(97021),n=e(85647),o=e(73597),i=o&&o.isMap,d=i?n(i):t;R.exports=d},25940:R=>{R.exports=function c(e){var t=typeof e;return null!=e&&("object"==t||"function"==t)}},72671:R=>{R.exports=function c(e){return null!=e&&"object"==typeof e}},97614:(R,c,e)=>{var t=e(93337),n=e(29519),o=e(72671),a=Function.prototype.toString,p=Object.prototype.hasOwnProperty,h=a.call(Object);R.exports=function m(_){if(!o(_)||"[object Object]"!=t(_))return!1;var v=n(_);if(null===v)return!0;var E=p.call(v,"constructor")&&v.constructor;return"function"==typeof E&&E instanceof E&&a.call(E)==h}},90799:(R,c,e)=>{var t=e(771),n=e(85647),o=e(73597),i=o&&o.isSet,d=i?n(i):t;R.exports=d},30248:(R,c,e)=>{var t=e(93337),n=e(21503),o=e(72671);R.exports=function d(r){return"string"==typeof r||!n(r)&&o(r)&&"[object String]"==t(r)}},44129:(R,c,e)=>{var t=e(93337),n=e(72671);R.exports=function i(d){return"symbol"==typeof d||n(d)&&"[object Symbol]"==t(d)}},48159:(R,c,e)=>{var t=e(1083),n=e(85647),o=e(73597),i=o&&o.isTypedArray,d=i?n(i):t;R.exports=d},118:(R,c,e)=>{var t=e(72271),n=e(81172),o=e(56507);R.exports=function i(d){return o(d)?t(d):n(d)}},16555:(R,c,e)=>{var t=e(72271),n=e(92809),o=e(56507);R.exports=function i(d){return o(d)?t(d,!0):n(d)}},25809:R=>{R.exports=function c(e){var t=null==e?0:e.length;return t?e[t-1]:void 0}},30535:(R,c,e)=>{var t=e(99850),n="Expected a function";function o(i,d){if("function"!=typeof i||null!=d&&"function"!=typeof d)throw new TypeError(n);var r=function(){var a=arguments,p=d?d.apply(this,a):a[0],h=r.cache;
1if(h.has(p))return h.get(p);var m=i.apply(this,a);return r.cache=h.set(p,m)||h,m};return r.cache=new(o.Cache||t),r}o.Cache=t,R.exports=o},25468:(R,c,e)=>{var t=e(73842),o=e(84944)(function(i,d,r,a){t(i,d,r,a)});R.exports=o},12552:R=>{R.exports=function c(){}},31710:(R,c,e)=>{var t=e(12119);R.exports=function(){return t.Date.now()}},87495:(R,c,e)=>{var t=e(11847),n=e(39222),o=e(45352),i=e(68533);R.exports=function d(r){return o(r)?t(i(r)):n(r)}},12906:(R,c,e)=>{var t=e(50686),n=e(6119),o=e(23269),i=e(93342),d=o(function(r,a){if(null==r)return[];var p=a.length;return p>1&&i(r,a[0],a[1])?a=[]:p>2&&i(a[0],a[1],a[2])&&(a=[a[0]]),n(r,t(a,1),[])});R.exports=d},49975:R=>{R.exports=function c(){return[]}},63580:R=>{R.exports=function c(){return!1}},12232:(R,c,e)=>{var t=e(51467),n=1/0;R.exports=function i(d){return d?(d=t(d))===n||d===-n?17976931348623157e292*(d<0?-1:1):d==d?d:0:0===d?d:0}},44401:(R,c,e)=>{var t=e(12232);R.exports=function n(o){var i=t(o),d=i%1;return i==i?d?i-d:i:0}},51467:(R,c,e)=>{var t=e(83348),n=e(25940),o=e(44129),d=/^[-+]0x[0-9a-f]+$/i,r=/^0b[01]+$/i,a=/^0o[0-7]+$/i,p=parseInt;R.exports=function h(m){if("number"==typeof m)return m;if(o(m))return NaN;if(n(m)){var _="function"==typeof m.valueOf?m.valueOf():m;m=n(_)?_+"":_}if("string"!=typeof m)return 0===m?m:+m;m=t(m);var v=r.test(m);return v||a.test(m)?p(m.slice(2),v?2:8):d.test(m)?NaN:+m}},8067:(R,c,e)=>{var t=e(31989),n=e(16555);R.exports=function o(i){return t(i,n(i))}},73943:(R,c,e)=>{var t=e(93935);R.exports=function n(o){return null==o?"":t(o)}},89416:(R,c,e)=>{var t=e(96837),n=e(78858),o=e(45184),i=e(96517),d=e(29519),r=e(21503),a=e(80891),p=e(75946),h=e(25940),m=e(48159);R.exports=function _(v,E,O){var b=r(v),M=b||a(v)||m(v);if(E=i(E,4),null==O){var P=v&&v.constructor;O=M?b?new P:[]:h(v)&&p(P)?n(d(v)):{}}return(M?t:o)(v,function(D,l,C){return E(O,D,l,C)}),O}},47918:(R,c,e)=>{var t=e(80707);R.exports=function n(o,i){return i="function"==typeof i?i:void 0,o&&o.length?t(o,void 0,i):[]}},51541:(R,c,e)=>{var t=e(73943),n=0;R.exports=function o(i){var d=++n;return t(i)+d}},76477:function(R,c,e){"use strict";var t=this&&this.__createBinding||(Object.create?function(Re,Ye,jt,Pn){void 0===Pn&&(Pn=jt),Object.defineProperty(Re,Pn,{enumerable:!0,get:function(){return Ye[jt]}})}:function(Re,Ye,jt,Pn){void 0===Pn&&(Pn=jt),Re[Pn]=Ye[jt]}),n=this&&this.__exportStar||function(Re,Ye){for(var jt in Re)"default"!==jt&&!Object.prototype.hasOwnProperty.call(Ye,jt)&&t(Ye,Re,jt)};Object.defineProperty(c,"__esModule",{value:!0}),c.interval=c.iif=c.generate=c.fromEventPattern=c.fromEvent=c.from=c.forkJoin=c.empty=c.defer=c.connectable=c.concat=c.combineLatest=c.bindNodeCallback=c.bindCallback=c.UnsubscriptionError=c.TimeoutError=c.SequenceError=c.ObjectUnsubscribedError=c.NotFoundError=c.EmptyError=c.ArgumentOutOfRangeError=c.firstValueFrom=c.lastValueFrom=c.isObservable=c.identity=c.noop=c.pipe=c.NotificationKind=c.Notification=c.Subscriber=c.Subscription=c.Scheduler=c.VirtualAction=c.VirtualTimeScheduler
1=c.animationFrameScheduler=c.animationFrame=c.queueScheduler=c.queue=c.asyncScheduler=c.async=c.asapScheduler=c.asap=c.AsyncSubject=c.ReplaySubject=c.BehaviorSubject=c.Subject=c.animationFrames=c.observable=c.ConnectableObservable=c.Observable=void 0,c.filter=c.expand=c.exhaustMap=c.exhaustAll=c.exhaust=c.every=c.endWith=c.elementAt=c.distinctUntilKeyChanged=c.distinctUntilChanged=c.distinct=c.dematerialize=c.delayWhen=c.delay=c.defaultIfEmpty=c.debounceTime=c.debounce=c.count=c.connect=c.concatWith=c.concatMapTo=c.concatMap=c.concatAll=c.combineLatestWith=c.combineLatestAll=c.combineAll=c.catchError=c.bufferWhen=c.bufferToggle=c.bufferTime=c.bufferCount=c.buffer=c.auditTime=c.audit=c.config=c.NEVER=c.EMPTY=c.scheduled=c.zip=c.using=c.timer=c.throwError=c.range=c.race=c.partition=c.pairs=c.onErrorResumeNext=c.of=c.never=c.merge=void 0,c.switchMap=c.switchAll=c.subscribeOn=c.startWith=c.skipWhile=c.skipUntil=c.skipLast=c.skip=c.single=c.shareReplay=c.share=c.sequenceEqual=c.scan=c.sampleTime=c.sample=c.refCount=c.retryWhen=c.retry=c.repeatWhen=c.repeat=c.reduce=c.raceWith=c.publishReplay=c.publishLast=c.publishBehavior=c.publish=c.pluck=c.pairwise=c.onErrorResumeNextWith=c.observeOn=c.multicast=c.min=c.mergeWith=c.mergeScan=c.mergeMapTo=c.mergeMap=c.flatMap=c.mergeAll=c.max=c.materialize=c.mapTo=c.map=c.last=c.isEmpty=c.ignoreElements=c.groupBy=c.first=c.findIndex=c.find=c.finalize=void 0,c.zipWith=c.zipAll=c.withLatestFrom=c.windowWhen=c.windowToggle=c.windowTime=c.windowCount=c.window=c.toArray=c.timestamp=c.timeoutWith=c.timeout=c.timeInterval=c.throwIfEmpty=c.throttleTime=c.throttle=c.tap=c.takeWhile=c.takeUntil=c.takeLast=c.take=c.switchScan=c.switchMapTo=void 0;var o=e(55821);Object.defineProperty(c,"Observable",{enumerable:!0,get:function(){return o.Observable}});var i=e(6686);Object.defineProperty(c,"ConnectableObservable",{enumerable:!0,get:function(){return i.ConnectableObservable}});var d=e(91689);Object.defineProperty(c,"observable",{enumerable:!0,get:function(){return d.observable}});var r=e(2946);Object.defineProperty(c,"animationFrames",{enumerable:!0,get:function(){return r.animationFrames}});var a=e(13768);Object.defineProperty(c,"Subject",{enumerable:!0,get:function(){return a.Subject}});var p=e(75482);Object.defineProperty(c,"BehaviorSubject",{enumerable:!0,get:function(){return p.BehaviorSubject}});var h=e(93406);Object.defineProperty(c,"ReplaySubject",{enumerable:!0,get:function(){return h.ReplaySubject}});var m=e(87606);Object.defineProperty(c,"AsyncSubject",{enumerable:!0,get:function(){return m.AsyncSubject}});var _=e(71212);Object.defineProperty(c,"asap",{enumerable:!0,get:function(){return _.asap}}),Object.defineProperty(c,"asapScheduler",{enumerable:!0,get:function(){return _.asapScheduler}});var v=e(64006);Object.defineProperty(c,"async",{enumerable:!0,get:function(){return v.async}}),Object.defineProperty(c,"asyncScheduler",{enumerable:!0,get:function(){return v.asyncScheduler}});var E=e(65668);Object.defineProperty(c,"queue",{enumerable:!0,get:function(){return E.queue}}),Object.defineProperty(c,"queueScheduler",{enumerable:!0,get:function(){return E.queueScheduler}});var O=e(91906);Object.defineProperty(c,"animationFrame",{enumerable:!0,get:function(){return O.animationFrame}}),Object.defineProperty(c,"animationFrameScheduler",{enumerable:!0,get:function(){return O.animationFrameScheduler}});var b=e(12018);Object.defineProperty(c,"VirtualTimeScheduler",{enumerable:!0,get:function(){return b.VirtualTimeScheduler}}),Object.defineProperty(c,"VirtualAction",{enumerable:!0,get:function(){return b.VirtualAction}});var M=e(72716);Object.defineProperty(c,"Scheduler",{enumerable:!0,get:function(){return M.Scheduler}});var P=e(76448);Object.defineProperty(c,"Subscription",{enumerable:!0,get:function(){return P.Subscription}});var D=e(57052);Object.defineProperty(c,"Subscriber",{enumerable:!0,get:function(){return D.Subscriber}});var l=e(77262);Object.defineProperty(c,"Notification",{enumerable:!0,get:function(){return l.Notification}}),Object.defineProperty(c,"NotificationKind",{enumerable:!0,get:function(){return l.NotificationKind}});var C=e(81471);Object.defineProperty(c,"pipe",{enumerable:!0,get:function(){return C.pipe}});var I=e(31);Object.defineProperty(c,"noop",{enumerable:!0,get:function(){return I.noop}});var g=e(77884);Object.defineProperty(c,"identity",{enumerable:!0,get:function(){return g.identity}});var B=e(14341);Object.defineProperty(c,"isObservable",{enumerable:!0,get:function(){return B.isObservable}});var L=e(65257);Object.defineProperty(c,"lastValueFrom",{enumerable:!0,get:function(){return L.lastV
1alueFrom}});var V=e(35754);Object.defineProperty(c,"firstValueFrom",{enumerable:!0,get:function(){return V.firstValueFrom}});var Y=e(4769);Object.defineProperty(c,"ArgumentOutOfRangeError",{enumerable:!0,get:function(){return Y.ArgumentOutOfRangeError}});var X=e(48915);Object.defineProperty(c,"EmptyError",{enumerable:!0,get:function(){return X.EmptyError}});var te=e(85477);Object.defineProperty(c,"NotFoundError",{enumerable:!0,get:function(){return te.NotFoundError}});var K=e(23965);Object.defineProperty(c,"ObjectUnsubscribedError",{enumerable:!0,get:function(){return K.ObjectUnsubscribedError}});var ee=e(61551);Object.defineProperty(c,"SequenceError",{enumerable:!0,get:function(){return ee.SequenceError}});var ae=e(75001);Object.defineProperty(c,"TimeoutError",{enumerable:!0,get:function(){return ae.TimeoutError}});var Q=e(24970);Object.defineProperty(c,"UnsubscriptionError",{enumerable:!0,get:function(){return Q.UnsubscriptionError}});var j=e(17532);Object.defineProperty(c,"bindCallback",{enumerable:!0,get:function(){return j.bindCallback}});var k=e(33488);Object.defineProperty(c,"bindNodeCallback",{enumerable:!0,get:function(){return k.bindNodeCallback}});var G=e(36892);Object.defineProperty(c,"combineLatest",{enumerable:!0,get:function(){return G.combineLatest}});var ie=e(30509);Object.defineProperty(c,"concat",{enumerable:!0,get:function(){return ie.concat}});var ne=e(79190);Object.defineProperty(c,"connectable",{enumerable:!0,get:function(){return ne.connectable}});var q=e(39954);Object.defineProperty(c,"defer",{enumerable:!0,get:function(){return q.defer}});var oe=e(97406);Object.defineProperty(c,"empty",{enumerable:!0,get:function(){return oe.empty}});var ce=e(67928);Object.defineProperty(c,"forkJoin",{enumerable:!0,get:function(){return ce.forkJoin}});var ye=e(24996);Object.defineProperty(c,"from",{enumerable:!0,get:function(){return ye.from}});var Me=e(52579);Object.defineProperty(c,"fromEvent",{enumerable:!0,get:function(){return Me.fromEvent}});var Ee=e(13975);Object.defineProperty(c,"fromEventPattern",{enumerable:!0,get:function(){return Ee.fromEventPattern}});var Ae=e(4318);Object.defineProperty(c,"generate",{enumerable:!0,get:function(){return Ae.generate}});var Je=e(3140);Object.defineProperty(c,"iif",{enumerable:!0,get:function(){return Je.iif}});var _t=e(51836);Object.defineProperty(c,"interval",{enumerable:!0,get:function(){return _t.interval}});var It=e(89248);Object.defineProperty(c,"merge",{enumerable:!0,get:function(){return It.merge}});var it=e(2818);Object.defineProperty(c,"never",{enumerable:!0,get:function(){return it.never}});var Be=e(19677);Object.defineProperty(c,"of",{enumerable:!0,get:function(){return Be.of}});var Xe=e(19978);Object.defineProperty(c,"onErrorResumeNext",{enumerable:!0,get:function(){return Xe.onErrorResumeNext}});var pt=e(75519);Object.defineProperty(c,"pairs",{enumerable:!0,get:function(){return pt.pairs}});var Mt=e(68221);Object.defineProperty(c,"partition",{enumerable:!0,get:function(){return Mt.partition}});var Yt=e(28181);Object.defineProperty(c,"race",{enumerable:!0,get:function(){return Yt.race}});var nt=e(14622);Object.defineProperty(c,"range",{enumerable:!0,get:function(){return nt.range}});var mt=e(70338);Object.defineProperty(c,"throwError",{enumerable:!0,get:function(){return mt.throwError}});var en=e(33271);Object.defineProperty(c,"timer",{enumerable:!0,get:function(){return en.timer}});var pn=e(70924);Object.defineProperty(c,"using",{enumerable:!0,get:function(){return pn.using}});var tt=e(14842);Object.defineProperty(c,"zip",{enumerable:!0,get:function(){return tt.zip}});var Tt=e(9341);Object.defineProperty(c,"scheduled",{enumerable:!0,get:function(){return Tt.scheduled}});var At=e(97406);Object.defineProperty(c,"EMPTY",{enumerable:!0,get:function(){return At.EMPTY}});var Rt=e(2818);Object.defineProperty(c,"NEVER",{enumerable:!0,get:function(){return Rt.NEVER}}),n(e(85256),c);var Pt=e(73570);Object.defineProperty(c,"config",{enumerable:!0,get:function(){return Pt.config}});var xt=e(14815);Object.defineProperty(c,"audit",{enumerable:!0,get:function(){return xt.audit}});var lt=e(19034);Object.defineProperty(c,"auditTime",{enumerable:!0,get:function(){return lt.auditTime}});var Ut=e(78544);Object.defineProperty(c,"buffer",{enumerable:!0,get:function(){return Ut.buffer}});var ke=e(93999);Object.defineProperty(c,"bufferCount",{enumerable:!0,get:function(){return ke.bufferCount}});var ot=e(11392);Object.defineProperty(c,"bufferTime",{enumerable:!0,get:function(){return ot.bufferTime}});var gt=e(40555);Object.defineProperty(c,"bufferToggle",{enumerable:!0,get:function(){return gt.bufferToggle}});var zt=e(67274);Object.defineProperty(c,"bufferWhen",{enumerable:!0,get:function(){return zt.bufferWhen}});var hn=e(13251);Object.defineProperty(c,"catchError",{enumerable:!0,get:function(){return hn.catchError}});var Vt=e(68996);Object.defineProperty(c,"combineAll",{enumerable:!0,get:function(){return Vt.combineAll}});var $n=e(68931);Object.defineProperty(c,"combineLatestAll",{enumerable:!0,get:function(){return $n.combineLatestAll}});var Dt=e(18947);Object.defineProperty(c,"combineLatestWith",{enumerable:!0,get:function(){return Dt.combineLatestWith}});var Ft=e(31557);Object.defineProperty(c,"concatAll",{enumerable:!0,get:function(){return Ft.concatAll}});var St=e(44659);Object.defineProperty(c,"concatMap",{enumerable:!0,get:function(){return St.concatMap}});var wt=e(62993);Object.defineProperty(c,"concatMapTo",{enumerable:!0,get:function(){return wt.concatMapTo}});var Xt=e(75898);Object.defineProperty(c,"concatWith",{enumerable:!0,get:function(){return Xt.concatWith}});var st=e(59725);Object.defineProperty(c,"connect",{enumerable:!0,get:function(){return st.connect}});var xe=e(1814);Object.defineProperty(c,"count",{enumerable:!0,get:function(){return xe.count}});var Le=e(79784);Object.defineProperty(c,"debounce",{enumerable:!0,get:function(){return Le.debounce}});var qe=e(97061);Object.defineProperty(c,"debounceTime",{enumerable:!0,get:function(){return qe.debounceTime}});var at=e(40926);Object.defineProperty(c,"defaultIfEmpty",{enumerable:!0,get:function(){return at.defaultIfEmpty}});var Jt=e(52096);Object.defineProperty(c,"delay",{enumerable:!0,get:function(){return Jt.delay}});var $t=e(63264);Object.defineProperty(c,"delayWhen",{enumerable:!0,get:function(){return $t.delayWhen}});
1var rn=e(60533);Object.defineProperty(c,"dematerialize",{enumerable:!0,get:function(){return rn.dematerialize}});var Wt=e(5045);Object.defineProperty(c,"distinct",{enumerable:!0,get:function(){return Wt.distinct}});var qt=e(15794);Object.defineProperty(c,"distinctUntilChanged",{enumerable:!0,get:function(){return qt.distinctUntilChanged}});var un=e(48589);Object.defineProperty(c,"distinctUntilKeyChanged",{enumerable:!0,get:function(){return un.distinctUntilKeyChanged}});var dt=e(11069);Object.defineProperty(c,"elementAt",{enumerable:!0,get:function(){return dt.elementAt}});var ht=e(94312);Object.defineProperty(c,"endWith",{enumerable:!0,get:function(){return ht.endWith}});var je=e(19098);Object.defineProperty(c,"every",{enumerable:!0,get:function(){return je.every}});var vt=e(15429);Object.defineProperty(c,"exhaust",{enumerable:!0,get:function(){return vt.exhaust}});var Zt=e(11399);Object.defineProperty(c,"exhaustAll",{enumerable:!0,get:function(){return Zt.exhaustAll}});var We=e(82202);Object.defineProperty(c,"exhaustMap",{enumerable:!0,get:function(){return We.exhaustMap}});var Ne=e(68678);Object.defineProperty(c,"expand",{enumerable:!0,get:function(){return Ne.expand}});var ze=e(74270);Object.defineProperty(c,"filter",{enumerable:!0,get:function(){return ze.filter}});var bt=e(21587);Object.defineProperty(c,"finalize",{enumerable:!0,get:function(){return bt.finalize}});var En=e(42265);Object.defineProperty(c,"find",{enumerable:!0,get:function(){return En.find}});var wn=e(8195);Object.defineProperty(c,"findIndex",{enumerable:!0,get:function(){return wn.findIndex}});var nr=e(28012);Object.defineProperty(c,"first",{enumerable:!0,get:function(){return nr.first}});var Cn=e(34075);Object.defineProperty(c,"groupBy",{enumerable:!0,get:function(){return Cn.groupBy}});var bn=e(44041);Object.defineProperty(c,"ignoreElements",{enumerable:!0,get:function(){return bn.ignoreElements}});var cn=e(86478);Object.defineProperty(c,"isEmpty",{enumerable:!0,get:function(){return cn.isEmpty}});var Dn=e(85126);Object.defineProperty(c,"last",{enumerable:!0,get:function(){return Dn.last}});var In=e(70752);Object.defineProperty(c,"map",{enumerable:!0,get:function(){return In.map}});var Nn=e(62182);Object.defineProperty(c,"mapTo",{enumerable:!0,get:function(){return Nn.mapTo}});var Rn=e(90119);Object.defineProperty(c,"materialize",{enumerable:!0,get:function(){return Rn.materialize}});var Jn=e(99329);Object.defineProperty(c,"max",{enumerable:!0,get:function(){return Jn.max}});var zn=e(43917);Object.defineProperty(c,"mergeAll",{enumerable:!0,get:function(){return zn.mergeAll}});var ur=e(21463);Object.defineProperty(c,"flatMap",{enumerable:!0,get:function(){return ur.flatMap}});var Rr=e(43010);Object.defineProperty(c,"mergeMap",{enumerable:!0,get:function(){return Rr.mergeMap}});var rr=e(10929);Object.defineProperty(c,"mergeMapTo",{enumerable:!0,get:function(){return rr.mergeMapTo}});var Mr=e(42816);Object.defineProperty(c,"mergeScan",{enumerable:!0,get:function(){return Mr.mergeScan}});var Mn=e(69684);Object.defineProperty(c,"mergeWith",{enumerable:!0,get:function(){return Mn.mergeWith}});var Xn=e(16250);Object.defineProperty(c,"min",{enumerable:!0,get:function(){return Xn.min}});var cr=e(19872);Object.defineProperty(c,"multicast",{enumerable:!0,get:function(){return cr.multicast}});var Qr=e(94928);Object.defineProperty(c,"observeOn",{enumerable:!0,get:function(){return Qr.observeOn}});var Xr=e(56236);Object.defineProperty(c,"onErrorResumeNextWith",{enumerable:!0,get:function(){return Xr.onErrorResumeNextWith}});var wr=e(99526);Object.defineProperty(c,"pairwise",{enumerable:!0,get:function(){return wr.pairwise}});var ui=e(85199);Object.defineProperty(c,"pluck",{enumerable:!0,get:function(){return ui.pluck}});var Nr=e(10955);Object.defineProperty(c,"publish",{enumerable:!0,get:function(){return Nr.publish}});var ii=e(66750);Object.defineProperty(c,"publishBehavior",{enumerable:!0,get:function(){return ii.publishBehavior}});var fi=e(41003);Object.defineProperty(c,"publishLast",{enumerable:!0,get:function(){return fi.publishLast}});var sr=e(45530);Object.defineProperty(c,"publishReplay",{enumerable:!0,get:function(){return sr.publishReplay}});var Ai=e(32992);Object.defineProperty(c,"raceWith",{enumerable:!0,get:function(){return Ai.raceWith}});var Wr=e(98587);Object.defineProperty(c,"reduce",{enumerable:!0,get:function(){return Wr.reduce}});var oi=e(68408);Object.defineProperty(c,"repeat",{enumerable:!0,get:function(){return oi.repeat}});var Gi=e(97032);Object.defineProperty(c,"repeatWhen",{enumerable:!0,get:function(){return Gi.repeatWhen}});var Ri=e(46069);Object.defineProperty(c,"retry",{enumerable:!0,get:function(){return Ri.retry}});var Yi=e(35131);Object.defineProperty(c,"retryWhen",{enumerable:!0,get:function(){return Yi.retryWhen}});var ut=e(80904);Object.defineProperty(c,"refCount",{enumerable:!0,get:function(){return ut.refCount}});var tn=e(35032);
1Object.defineProperty(c,"sample",{enumerable:!0,get:function(){return tn.sample}});var Gt=e(52098);Object.defineProperty(c,"sampleTime",{enumerable:!0,get:function(){return Gt.sampleTime}});var dn=e(50251);Object.defineProperty(c,"scan",{enumerable:!0,get:function(){return dn.scan}});var gn=e(49788);Object.defineProperty(c,"sequenceEqual",{enumerable:!0,get:function(){return gn.sequenceEqual}});var An=e(43222);Object.defineProperty(c,"share",{enumerable:!0,get:function(){return An.share}});var Qn=e(12186);Object.defineProperty(c,"shareReplay",{enumerable:!0,get:function(){return Qn.shareReplay}});var Cr=e(695);Object.defineProperty(c,"single",{enumerable:!0,get:function(){return Cr.single}});var mr=e(44975);Object.defineProperty(c,"skip",{enumerable:!0,get:function(){return mr.skip}});var Fr=e(30728);Object.defineProperty(c,"skipLast",{enumerable:!0,get:function(){return Fr.skipLast}});var Gn=e(97409);Object.defineProperty(c,"skipUntil",{enumerable:!0,get:function(){return Gn.skipUntil}});var qn=e(22863);Object.defineProperty(c,"skipWhile",{enumerable:!0,get:function(){return qn.skipWhile}});var wi=e(44930);Object.defineProperty(c,"startWith",{enumerable:!0,get:function(){return wi.startWith}});var mi=e(41698);Object.defineProperty(c,"subscribeOn",{enumerable:!0,get:function(){return mi.subscribeOn}});var jr=e(78044);Object.defineProperty(c,"switchAll",{enumerable:!0,get:function(){return jr.switchAll}});var Ao=e(90986);Object.defineProperty(c,"switchMap",{enumerable:!0,get:function(){return Ao.switchMap}});var vo=e(99309);Object.defineProperty(c,"switchMapTo",{enumerable:!0,get:function(){return vo.switchMapTo}});var qi=e(49499);Object.defineProperty(c,"switchScan",{enumerable:!0,get:function(){return qi.switchScan}});var ri=e(1333);Object.defineProperty(c,"take",{enumerable:!0,get:function(){return ri.take}});var Ko=e(48306);Object.defineProperty(c,"takeLast",{enumerable:!0,get:function(){return Ko.takeLast}});var Eo=e(85716);Object.defineProperty(c,"takeUntil",{enumerable:!0,get:function(){return Eo.takeUntil}});var Vo=e(39928);Object.defineProperty(c,"takeWhile",{enumerable:!0,get:function(){return Vo.takeWhile}});var eo=e(66821);Object.defineProperty(c,"tap",{enumerable:!0,get:function(){return eo.tap}});var cs=e(14330);Object.defineProperty(c,"throttle",{enumerable:!0,get:function(){return cs.throttle}});var $o=e(54029);Object.defineProperty(c,"throttleTime",{enumerable:!0,get:function(){return $o.throttleTime}});var yo=e(99194);Object.defineProperty(c,"throwIfEmpty",{enumerable:!0,get:function(){return yo.throwIfEmpty}});var _i=e(5904);Object.defineProperty(c,"timeInterval",{enumerable:!0,get:function(){return _i.timeInterval}});var Ho=e(75001);Object.defineProperty(c,"timeout",{enumerable:!0,get:function(){return Ho.timeout}});var _s=e(28308);Object.defineProperty(c,"timeoutWith",{enumerable:!0,get:function(){return _s.timeoutWith}});var ho=e(20250);Object.defineProperty(c,"timestamp",{enumerable:!0,get:function(){return ho.timestamp}});var to=e(42976);Object.defineProperty(c,"toArray",{enumerable:!0,get:function(){return to.toArray}});var ds=e(79374);Object.defineProperty(c,"window",{enumerable:!0,get:function(){return ds.window}});var Ds=e(68427);Object.defineProperty(c,"windowCount",{enumerable:!0,get:function(){return Ds.windowCount}});var Co=e(22358);Object.defineProperty(c,"windowTime",{enumerable:!0,get:function(){return Co.windowTime}});var Po=e(46464);Object.defineProperty(c,"windowToggle",{enumerable:!0,get:function(){return Po.windowToggle}});var fo=e(55424);Object.defineProperty(c,"windowWhen",{enumerable:!0,get:function(){return fo.windowWhen}});var mo=e(135);Object.defineProperty(c,"withLatestFrom",{enumerable:!0,get:function(){return mo.withLatestFrom}});var ft=e(78101);Object.defineProperty(c,"zipAll",{enumerable:!0,get:function(){return ft.zipAll}});var _n=e(59411);Object.defineProperty(c,"zipWith",{enumerable:!0,get:function(){return _n.zipWith}})},87606:function(R,c,e){"use strict";var i,t=this&&this.__extends||(i=function(d,r){return(i=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(a,p){a.__proto__=p}||function(a,p){for(var h in p)Object.prototype.hasOwnProperty.call(p,h)&&(a[h]=p[h])})(d,r)},function(d,r){if("function"!=typeof r&&null!==r)throw new TypeError("Class extends value "+String(r)+" is not a constructor or null");function a(){this.constructor=d}i(d,r),d.prototype=null===r?Object.create(r):(a.prototype=r.prototype,new a)});Object.defineProperty(c,"__esModule",{value:!0}),c.AsyncSubject=void 0;var o=function(i){function d(){var r=null!==i&&i.apply(this,arguments)||this;return r._value=null,r._hasValue=!1,r._isComplete=!1,r}return t(d,i),d.prototype._checkFinalizedStatuses=function(r){var a=this,h=a._hasValue,m=a._value,v=a.isStopped,E=a._isComplete;a.hasError?r.error(a.thrownError):(v||E)&&(h&&r.next(m),r.complete())},d.prototype.next=function(r){this.isStopped||(this._value=r,this._hasValue=!0)},d.prototype.complete=function(){var r=this,a=r._hasValue,p=r._value;r._isComplete||(this._isComplete=!0,a&&i.prototype.next.call(this,p),i.prototype.complete.call(this))},d}(e(13768).Subject);c.AsyncSubject=o},75482:function(R,c,e){"use strict";
1var i,t=this&&this.__extends||(i=function(d,r){return(i=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(a,p){a.__proto__=p}||function(a,p){for(var h in p)Object.prototype.hasOwnProperty.call(p,h)&&(a[h]=p[h])})(d,r)},function(d,r){if("function"!=typeof r&&null!==r)throw new TypeError("Class extends value "+String(r)+" is not a constructor or null");function a(){this.constructor=d}i(d,r),d.prototype=null===r?Object.create(r):(a.prototype=r.prototype,new a)});Object.defineProperty(c,"__esModule",{value:!0}),c.BehaviorSubject=void 0;var o=function(i){function d(r){var a=i.call(this)||this;return a._value=r,a}return t(d,i),Object.defineProperty(d.prototype,"value",{get:function(){return this.getValue()},enumerable:!1,configurable:!0}),d.prototype._subscribe=function(r){var a=i.prototype._subscribe.call(this,r);return!a.closed&&r.next(this._value),a},d.prototype.getValue=function(){var r=this,h=r._value;if(r.hasError)throw r.thrownError;return this._throwIfClosed(),h},d.prototype.next=function(r){i.prototype.next.call(this,this._value=r)},d}(e(13768).Subject);c.BehaviorSubject=o},77262:(R,c,e)=>{"use strict";Object.defineProperty(c,"__esModule",{value:!0}),c.observeNotification=c.Notification=c.NotificationKind=void 0;var p,t=e(97406),n=e(19677),o=e(70338),i=e(37104);(p=c.NotificationKind||(c.NotificationKind={})).NEXT="N",p.ERROR="E",p.COMPLETE="C";var r=function(){function p(h,m,_){this.kind=h,this.value=m,this.error=_,this.hasValue="N"===h}return p.prototype.observe=function(h){return a(this,h)},p.prototype.do=function(h,m,_){var v=this,E=v.kind,b=v.error;return"N"===E?h?.(v.value):"E"===E?m?.(b):_?.()},p.prototype.accept=function(h,m,_){var v;return i.isFunction(null===(v=h)||void 0===v?void 0:v.next)?this.observe(h):this.do(h,m,_)},p.prototype.toObservable=function(){var h=this,m=h.kind,v=h.error,E="N"===m?n.of(h.value):"E"===m?o.throwError(function(){return v}):"C"===m?t.EMPTY:0;if(!E)throw new TypeError("Unexpected notification kind "+m);return E},p.createNext=function(h){return new p("N",h)},p.createError=function(h){return new p("E",void 0,h)},p.createComplete=function(){return p.completeNotification},p.completeNotification=new p("C"),p}();function a(p,h){var m,_,v,O=p.kind,b=p.value,M=p.error;if("string"!=typeof O)throw new TypeError('Invalid notification, missing "kind"');"N"===O?null===(m=h.next)||void 0===m||m.call(h,b):"E"===O?null===(_=h.error)||void 0===_||_.call(h,M):null===(v=h.complete)||void 0===v||v.call(h)}c.Notification=r,c.observeNotification=a},46941:(R,c)=>{"use strict";function n(o,i,d){return{kind:o,value:i,error:d}}Object.defineProperty(c,"__esModule",{value:!0}),c.createNotification=c.nextNotification=c.errorNotification=c.COMPLETE_NOTIFICATION=void 0,c.COMPLETE_NOTIFICATION=n("C",void 0,void 0),c.errorNotification=function e(o){return n("E",void 0,o)},c.nextNotification=function t(o){return n("N",o,void 0)},c.createNotification=n},55821:(R,c,e)=>{"use strict";Object.defineProperty(c,"__esModule",{value:!0}),c.Observable=void 0;var t=e(57052),n=e(76448),o=e(91689),i=e(81471),d=e(73570),r=e(37104),a=e(45808),p=function(){function v(E){E&&(this._subscribe=E)}return v.prototype.lift=function(E){var O=new v;return O.source=this,O.operator=E,O},v.prototype.subscribe=function(E,O,b){var M=this,P=function _(v){return v&&v instanceof t.Subscriber||function m(v){return v&&r.isFunction(v.next)&&r.isFunction(v.error)&&r.isFunction(v.complete)}(v)&&n.isSubscription(v)}(E)?E:new t.SafeSubscriber(E,O,b);return a.errorContext(function(){var l=M.operator,C=M.source;P.add(l?l.call(P,C):C?M._subscribe(P):M._trySubscribe(P))}),P},v.prototype._trySubscribe=function(E){try{return this._subscribe(E)}catch(O){E.error(O)}},v.prototype.forEach=function(E,O){var b=this;return new(O=h(O))(function(M,P){var D=new t.SafeSubscriber({next:function(l){try{E(l)}catch(C){P(C),D.unsubscribe()}},error:P,complete:M});b.subscribe(D)})},v.prototype._subscribe=function(E){var O;return null===(O=this.source)||void 0===O?void 0:O.subscribe(E)},v.prototype[o.observable]=function(){return this},v.prototype.pipe=function(){for(var E=[],O=0;O<arguments.length;O++)E[O]=arguments[O];return i.pipeFromArray(E)(this)},v.prototype.toPromise=function(E){var O=this;return new(E=h(E))(function(b,M){var P;O.subscribe(function(D){return P=D},function(D){return M(D)},function(){return b(P)})})},v.create=function(E){return new v(E)},v}();function h(v){var E;return null!==(E=v??d.config.Promise)&&void 0!==E?E:Promise}c.Observable=p},93406:function(R,c,e){"use strict";
1var d,t=this&&this.__extends||(d=function(r,a){return(d=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(p,h){p.__proto__=h}||function(p,h){for(var m in h)Object.prototype.hasOwnProperty.call(h,m)&&(p[m]=h[m])})(r,a)},function(r,a){if("function"!=typeof a&&null!==a)throw new TypeError("Class extends value "+String(a)+" is not a constructor or null");function p(){this.constructor=r}d(r,a),r.prototype=null===a?Object.create(a):(p.prototype=a.prototype,new p)});Object.defineProperty(c,"__esModule",{value:!0}),c.ReplaySubject=void 0;var n=e(13768),o=e(68354),i=function(d){function r(a,p,h){void 0===a&&(a=1/0),void 0===p&&(p=1/0),void 0===h&&(h=o.dateTimestampProvider);var m=d.call(this)||this;return m._bufferSize=a,m._windowTime=p,m._timestampProvider=h,m._buffer=[],m._infiniteTimeWindow=!0,m._infiniteTimeWindow=p===1/0,m._bufferSize=Math.max(1,a),m._windowTime=Math.max(1,p),m}return t(r,d),r.prototype.next=function(a){var p=this,m=p._buffer,_=p._infiniteTimeWindow,v=p._timestampProvider,E=p._windowTime;p.isStopped||(m.push(a),!_&&m.push(v.now()+E)),this._trimBuffer(),d.prototype.next.call(this,a)},r.prototype._subscribe=function(a){this._throwIfClosed(),this._trimBuffer();for(var p=this._innerSubscribe(a),m=this._infiniteTimeWindow,v=this._buffer.slice(),E=0;E<v.length&&!a.closed;E+=m?1:2)a.next(v[E]);return this._checkFinalizedStatuses(a),p},r.prototype._trimBuffer=function(){var a=this,p=a._bufferSize,h=a._timestampProvider,m=a._buffer,_=a._infiniteTimeWindow,v=(_?1:2)*p;if(p<1/0&&v<m.length&&m.splice(0,m.length-v),!_){for(var E=h.now(),O=0,b=1;b<m.length&&m[b]<=E;b+=2)O=b;O&&m.splice(0,O+1)}},r}(n.Subject);c.ReplaySubject=i},72716:(R,c,e)=>{"use strict";Object.defineProperty(c,"__esModule",{value:!0}),c.Scheduler=void 0;var t=e(68354),n=function(){function o(i,d){void 0===d&&(d=o.now),this.schedulerActionCtor=i,this.now=d}return o.prototype.schedule=function(i,d,r){return void 0===d&&(d=0),new this.schedulerActionCtor(this,i).schedule(r,d)},o.now=t.dateTimestampProvider.now,o}();c.Scheduler=n},13768:function(R,c,e){"use strict";var m,t=this&&this.__extends||(m=function(_,v){return(m=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(E,O){E.__proto__=O}||function(E,O){for(var b in O)Object.prototype.hasOwnProperty.call(O,b)&&(E[b]=O[b])})(_,v)},function(_,v){if("function"!=typeof v&&null!==v)throw new TypeError("Class extends value "+String(v)+" is not a constructor or null");function E(){this.constructor=_}m(_,v),_.prototype=null===v?Object.create(v):(E.prototype=v.prototype,new E)}),n=this&&this.__values||function(m){var _="function"==typeof Symbol&&Symbol.iterator,v=_&&m[_],E=0;if(v)return v.call(m);if(m&&"number"==typeof m.length)return{next:function(){return m&&E>=m.length&&(m=void 0),{value:m&&m[E++],done:!m}}};throw new TypeError(_?"Object is not iterable.":"Symbol.iterator is not defined.")};Object.defineProperty(c,"__esModule",{value:!0}),c.AnonymousSubject=c.Subject=void 0;var o=e(55821),i=e(76448),d=e(23965),r=e(55137),a=e(45808),p=function(m){function _(){var v=m.call(this)||this;return v.closed=!1,v.currentObservers=null,v.observers=[],v.isStopped=!1,v.hasError=!1,v.thrownError=null,v}return t(_,m),_.prototype.lift=function(v){var E=new h(this,this);return E.operator=v,E},_.prototype._throwIfClosed=function(){if(this.closed)throw new d.ObjectUnsubscribedError},_.prototype.next=function(v){var E=this;a.errorContext(function(){var O,b;if(E._throwIfClosed(),!E.isStopped){E.currentObservers||(E.currentObservers=Array.from(E.observers));try{for(var M=n(E.currentObservers),P=M.next();!P.done;P=M.next())P.value.next(v)}catch(l){O={error:l}}finally{try{P&&!P.done&&(b=M.return)&&b.call(M)}finally{if(O)throw O.error}}}})},_.prototype.error=function(v){var E=this;a.errorContext(function(){if(E._throwIfClosed(),!E.isStopped){E.hasError=E.isStopped=!0,E.thrownError=v;for(var O=E.observers;O.length;)O.shift().error(v)}})},_.prototype.complete=function(){var v=this;a.errorContext(function(){if(v._throwIfClosed(),!v.isStopped){v.isStopped=!0;for(var E=v.observers;E.length;)E.shift().complete()}})},_.prototype.unsubscribe=function(){this.isStopped=this.closed=!0,this.observers=this.currentObservers=null},Object.defineProperty(_.prototype,"observed",{get:function(){var v;return(null===(v=this.observers)||void 0===v?void 0:v.length)>0}
1,enumerable:!1,configurable:!0}),_.prototype._trySubscribe=function(v){return this._throwIfClosed(),m.prototype._trySubscribe.call(this,v)},_.prototype._subscribe=function(v){return this._throwIfClosed(),this._checkFinalizedStatuses(v),this._innerSubscribe(v)},_.prototype._innerSubscribe=function(v){var E=this,O=this,P=O.observers;return O.hasError||O.isStopped?i.EMPTY_SUBSCRIPTION:(this.currentObservers=null,P.push(v),new i.Subscription(function(){E.currentObservers=null,r.arrRemove(P,v)}))},_.prototype._checkFinalizedStatuses=function(v){var E=this,M=E.isStopped;E.hasError?v.error(E.thrownError):M&&v.complete()},_.prototype.asObservable=function(){var v=new o.Observable;return v.source=this,v},_.create=function(v,E){return new h(v,E)},_}(o.Observable);c.Subject=p;var h=function(m){function _(v,E){var O=m.call(this)||this;return O.destination=v,O.source=E,O}return t(_,m),_.prototype.next=function(v){var E,O;null===(O=null===(E=this.destination)||void 0===E?void 0:E.next)||void 0===O||O.call(E,v)},_.prototype.error=function(v){var E,O;null===(O=null===(E=this.destination)||void 0===E?void 0:E.error)||void 0===O||O.call(E,v)},_.prototype.complete=function(){var v,E;null===(E=null===(v=this.destination)||void 0===v?void 0:v.complete)||void 0===E||E.call(v)},_.prototype._subscribe=function(v){var E,O;return null!==(O=null===(E=this.source)||void 0===E?void 0:E.subscribe(v))&&void 0!==O?O:i.EMPTY_SUBSCRIPTION},_}(p);c.AnonymousSubject=h},57052:function(R,c,e){"use strict";var D,t=this&&this.__extends||(D=function(l,C){return(D=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(I,g){I.__proto__=g}||function(I,g){for(var B in g)Object.prototype.hasOwnProperty.call(g,B)&&(I[B]=g[B])})(l,C)},function(l,C){if("function"!=typeof C&&null!==C)throw new TypeError("Class extends value "+String(C)+" is not a constructor or null");function I(){this.constructor=l}D(l,C),l.prototype=null===C?Object.create(C):(I.prototype=C.prototype,new I)});Object.defineProperty(c,"__esModule",{value:!0}),c.EMPTY_OBSERVER=c.SafeSubscriber=c.Subscriber=void 0;var n=e(37104),o=e(76448),i=e(73570),d=e(74709),r=e(31),a=e(46941),p=e(33914),h=e(45808),m=function(D){function l(C){var I=D.call(this)||this;return I.isStopped=!1,C?(I.destination=C,o.isSubscription(C)&&C.add(I)):I.destination=c.EMPTY_OBSERVER,I}return t(l,D),l.create=function(C,I,g){return new O(C,I,g)},l.prototype.next=function(C){this.isStopped?P(a.nextNotification(C),this):this._next(C)},l.prototype.error=function(C){this.isStopped?P(a.errorNotification(C),this):(this.isStopped=!0,this._error(C))},l.prototype.complete=function(){this.isStopped?P(a.COMPLETE_NOTIFICATION,this):(this.isStopped=!0,this._complete())},l.prototype.unsubscribe=function(){this.closed||(this.isStopped=!0,D.prototype.unsubscribe.call(this),this.destination=null)},l.prototype._next=function(C){this.destination.next(C)},l.prototype._error=function(C){try{this.destination.error(C)}finally{this.unsubscribe()}},l.prototype._complete=function(){try{this.destination.complete()}finally{this.unsubscribe()}},l}(o.Subscription);c.Subscriber=m;var _=Function.prototype.bind;function v(D,l){return _.call(D,l)}var E=function(){function D(l){this.partialObserver=l}return D.prototype.next=function(l){var C=this.partialObserver;if(C.next)try{C.next(l)}catch(I){b(I)}},D.prototype.error=function(l){var C=this.partialObserver;if(C.error)try{C.error(l)}catch(I){b(I)}else b(l)},D.prototype.complete=function(){var l=this.partialObserver;if(l.complete)try{l.complete()}catch(C){b(C)}},D}(),O=function(D){function l(C,I,g){var L,V,B=D.call(this)||this;return n.isFunction(C)||!C?L={next:C??void 0,error:I??void 0,complete:g??void 0}:B&&i.config.useDeprecatedNextContext?((V=Object.create(C)).unsubscribe=function(){return B.unsubscribe()},L={next:C.next&&v(C.next,V),error:C.error&&v(C.error,V),complete:C.complete&&v(C.complete,V)}):L=C,B.destination=new E(L),B}return t(l,D),l}(m);function b(D){i.config.useDeprecatedSynchronousErrorHandling?h.captureError(D):d.reportUnhandledError(D)}function P(D,l){var C=i.config.onStoppedNotification;C&&p.timeoutProvider.setTimeout(function(){return C(D,l)})}c.SafeSubscriber=O,c.EMPTY_OBSERVER={closed:!0,next:r.noop,error:function M(D){throw D},complete:r.noop}},76448:function(R,c,e){"use strict";var t=this&&this.__values||function(m){var _="function"==typeof Symbol&&Symbol.iterator,v=_&&m[_],E=0;if(v)return v.call(m);if(m&&"number"==typeof m.length)return{next:function(){return m&&E>=m.length&&(m=void 0),{value:m&&m[E++],done:!m}}};throw new TypeError(_?"Object is not iterable.":"Symbol.iterator is not defined.")},n=this&&this.__read||function(m,_){var v="function"==typeof Symbol&&m[Symbol.iterator];if(!v)return m;var O,M,E=v.call(m),b=[];try{for(;(void 0===_||_-- >0)&&!(O=E.next()).done;)b.push(O.value)}catch(P){M={error:P}}finally{try{O&&!O.done&&(v=E.return)&&v.call(E)}
1finally{if(M)throw M.error}}return b},o=this&&this.__spreadArray||function(m,_){for(var v=0,E=_.length,O=m.length;v<E;v++,O++)m[O]=_[v];return m};Object.defineProperty(c,"__esModule",{value:!0}),c.isSubscription=c.EMPTY_SUBSCRIPTION=c.Subscription=void 0;var i=e(37104),d=e(24970),r=e(55137),a=function(){function m(_){this.initialTeardown=_,this.closed=!1,this._parentage=null,this._finalizers=null}return m.prototype.unsubscribe=function(){var _,v,E,O,b;if(!this.closed){this.closed=!0;var M=this._parentage;if(M)if(this._parentage=null,Array.isArray(M))try{for(var P=t(M),D=P.next();!D.done;D=P.next())D.value.remove(this)}catch(V){_={error:V}}finally{try{D&&!D.done&&(v=P.return)&&v.call(P)}finally{if(_)throw _.error}}else M.remove(this);var C=this.initialTeardown;if(i.isFunction(C))try{C()}catch(V){b=V instanceof d.UnsubscriptionError?V.errors:[V]}var I=this._finalizers;if(I){this._finalizers=null;try{for(var g=t(I),B=g.next();!B.done;B=g.next()){var L=B.value;try{h(L)}catch(V){b=b??[],V instanceof d.UnsubscriptionError?b=o(o([],n(b)),n(V.errors)):b.push(V)}}}catch(V){E={error:V}}finally{try{B&&!B.done&&(O=g.return)&&O.call(g)}finally{if(E)throw E.error}}}if(b)throw new d.UnsubscriptionError(b)}},m.prototype.add=function(_){var v;if(_&&_!==this)if(this.closed)h(_);else{if(_ instanceof m){if(_.closed||_._hasParent(this))return;_._addParent(this)}(this._finalizers=null!==(v=this._finalizers)&&void 0!==v?v:[]).push(_)}},m.prototype._hasParent=function(_){var v=this._parentage;return v===_||Array.isArray(v)&&v.includes(_)},m.prototype._addParent=function(_){var v=this._parentage;this._parentage=Array.isArray(v)?(v.push(_),v):v?[v,_]:_},m.prototype._removeParent=function(_){var v=this._parentage;v===_?this._parentage=null:Array.isArray(v)&&r.arrRemove(v,_)},m.prototype.remove=function(_){var v=this._finalizers;v&&r.arrRemove(v,_),_ instanceof m&&_._removeParent(this)},m.EMPTY=((_=new m).closed=!0,_),m;var _}();function h(m){i.isFunction(m)?m():m.unsubscribe()}c.Subscription=a,c.EMPTY_SUBSCRIPTION=a.EMPTY,c.isSubscription=function p(m){return m instanceof a||m&&"closed"in m&&i.isFunction(m.remove)&&i.isFunction(m.add)&&i.isFunction(m.unsubscribe)}},73570:(R,c)=>{"use strict";Object.defineProperty(c,"__esModule",{value:!0}),c.config=void 0,c.config={onUnhandledError:null,onStoppedNotification:null,Promise:void 0,useDeprecatedSynchronousErrorHandling:!1,useDeprecatedNextContext:!1}},35754:(R,c,e)=>{"use strict";Object.defineProperty(c,"__esModule",{value:!0}),c.firstValueFrom=void 0;var t=e(48915),n=e(57052);c.firstValueFrom=function o(i,d){var r="object"==typeof d;return new Promise(function(a,p){var h=new n.SafeSubscriber({next:function(m){a(m),h.unsubscribe()},error:p,complete:function(){r?a(d.defaultValue):p(new t.EmptyError)}});i.subscribe(h)})}},65257:(R,c,e)=>{"use strict";Object.defineProperty(c,"__esModule",{value:!0}),c.lastValueFrom=void 0;var t=e(48915);c.lastValueFrom=function n(o,i){var d="object"==typeof i;return new Promise(function(r,a){var h,p=!1;o.subscribe({next:function(m){h=m,p=!0},error:a,complete:function(){p?r(h):d?r(i.defaultValue):a(new t.EmptyError)}})})}},6686:function(R,c,e){"use strict";var p,t=this&&this.__extends||(p=function(h,m){return(p=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(_,v){_.__proto__=v}||function(_,v){for(var E in v)Object.prototype.hasOwnProperty.call(v,E)&&(_[E]=v[E])})(h,m)},function(h,m){if("function"!=typeof m&&null!==m)throw new TypeError("Class extends value "+String(m)+" is not a constructor or null");function _(){this.constructor=h}p(h,m),h.prototype=null===m?Object.create(m):(_.prototype=m.prototype,new _)});Object.defineProperty(c,"__esModule",{value:!0}),c.ConnectableObservable=void 0;var n=e(55821),o=e(76448),i=e(80904),d=e(83173),r=e(89216),a=function(p){function h(m,_){var v=p.call(this)||this;return v.source=m,v.subjectFactory=_,v._subject=null,v._refCount=0,v._connection=null,r.hasLift(m)&&(v.lift=m.lift),v}return t(h,p),h.prototype._subscribe=function(m){return this.getSubject().subscribe(m)},h.prototype.getSubject=function(){var m=this._subject;return(!m||m.isStopped)&&(this._subject=this.subjectFactory()),this._subject},h.prototype._teardown=function(){this._refCount=0;var m=this._connection;this._subject=this._connection=null,m?.unsubscribe()},h.prototype.connect=function(){var m=this,_=this._connection;if(!_){_=this._connection=new o.Subscription;var v=this.getSubject();_.add(this.source.subscribe(d.createOperatorSubscriber(v,void 0,function(){m._teardown(),v.complete()},function(E){m._teardown(),v.error(E)},function(){return m._teardown()}))),_.closed&&(this._connection=null,_=o.Subscription.EMPTY)}return _},h.prototype.refCount=function(){return i.refCount()(this)},h}(n.Observable);c.ConnectableObservable=a},17532:(R,c,e)=>{"use strict";Object.defineProperty(c,"__esModule",{value:!0}),c.bindCallback=void 0;var t=e(94832);c.bindCallback=function n(o,i,d){return t.bindCallbackInternals(!1,o,i,d)}},94832:function(R,c,e){"use strict";var t=this&&this.__read||function(m,_){var v="function"==typeof Symbol&&m[Symbol.iterator];if(!v)return m;var O,M,E=v.call(m),b=[];try{for(;(void 0===_||_-- >0)&&!(O=E.next()).done;)b.push(O.value)}catch(P){M={error:P}}finally{try{O&&!O.done&&(v=E.return)&&v.call(E)}
1finally{if(M)throw M.error}}return b},n=this&&this.__spreadArray||function(m,_){for(var v=0,E=_.length,O=m.length;v<E;v++,O++)m[O]=_[v];return m};Object.defineProperty(c,"__esModule",{value:!0}),c.bindCallbackInternals=void 0;var o=e(1875),i=e(55821),d=e(41698),r=e(5280),a=e(94928),p=e(87606);c.bindCallbackInternals=function h(m,_,v,E){if(v){if(!o.isScheduler(v))return function(){for(var O=[],b=0;b<arguments.length;b++)O[b]=arguments[b];return h(m,_,E).apply(this,O).pipe(r.mapOneOrManyArgs(v))};E=v}return E?function(){for(var O=[],b=0;b<arguments.length;b++)O[b]=arguments[b];return h(m,_).apply(this,O).pipe(d.subscribeOn(E),a.observeOn(E))}:function(){for(var O=this,b=[],M=0;M<arguments.length;M++)b[M]=arguments[M];var P=new p.AsyncSubject,D=!0;return new i.Observable(function(l){var C=P.subscribe(l);if(D){D=!1;var I=!1,g=!1;_.apply(O,n(n([],t(b)),[function(){for(var B=[],L=0;L<arguments.length;L++)B[L]=arguments[L];if(m){var V=B.shift();if(null!=V)return void P.error(V)}P.next(1<B.length?B:B[0]),g=!0,I&&P.complete()}])),g&&P.complete(),I=!0}return C})}}},33488:(R,c,e)=>{"use strict";Object.defineProperty(c,"__esModule",{value:!0}),c.bindNodeCallback=void 0;var t=e(94832);c.bindNodeCallback=function n(o,i,d){return t.bindCallbackInternals(!0,o,i,d)}},36892:(R,c,e)=>{"use strict";Object.defineProperty(c,"__esModule",{value:!0}),c.combineLatestInit=c.combineLatest=void 0;var t=e(55821),n=e(59923),o=e(24996),i=e(77884),d=e(5280),r=e(31642),a=e(57598),p=e(83173),h=e(17238);function _(E,O,b){return void 0===b&&(b=i.identity),function(M){v(O,function(){for(var P=E.length,D=new Array(P),l=P,C=P,I=function(B){v(O,function(){var L=o.from(E[B],O),V=!1;L.subscribe(p.createOperatorSubscriber(M,function(Y){D[B]=Y,V||(V=!0,C--),C||M.next(b(D.slice()))},function(){--l||M.complete()}))},M)},g=0;g<P;g++)I(g)},M)}}function v(E,O,b){E?h.executeSchedule(b,E,O):O()}c.combineLatest=function m(){for(var E=[],O=0;O<arguments.length;O++)E[O]=arguments[O];var b=r.popScheduler(E),M=r.popResultSelector(E),P=n.argsArgArrayOrObject(E),D=P.args,l=P.keys;if(0===D.length)return o.from([],b);var C=new t.Observable(_(D,b,l?function(I){return a.createObject(l,I)}:i.identity));return M?C.pipe(d.mapOneOrManyArgs(M)):C},c.combineLatestInit=_},30509:(R,c,e)=>{"use strict";Object.defineProperty(c,"__esModule",{value:!0}),c.concat=void 0;var t=e(31557),n=e(31642),o=e(24996);c.concat=function i(){for(var d=[],r=0;r<arguments.length;r++)d[r]=arguments[r];return t.concatAll()(o.from(d,n.popScheduler(d)))}},79190:(R,c,e)=>{"use strict";Object.defineProperty(c,"__esModule",{value:!0}),c.connectable=void 0;var t=e(13768),n=e(55821),o=e(39954),i={connector:function(){return new t.Subject},resetOnDisconnect:!0};c.connectable=function d(r,a){void 0===a&&(a=i);var p=null,h=a.connector,m=a.resetOnDisconnect,_=void 0===m||m,v=h(),E=new n.Observable(function(O){return v.subscribe(O)});return E.connect=function(){return(!p||p.closed)&&(p=o.defer(function(){return r}).subscribe(v),_&&p.add(function(){return v=h()})),p},E}},39954:(R,c,e)=>{"use strict";Object.defineProperty(c,"__esModule",{value:!0}),c.defer=void 0;var t=e(55821),n=e(48767);c.defer=function o(i){return new t.Observable(function(d){n.innerFrom(i()).subscribe(d)})}},2946:(R,c,e)=>{"use strict";Object.defineProperty(c,"__esModule",{value:!0}),c.animationFrames=void 0;var t=e(55821),n=e(61038),o=e(86343);function d(a){return new t.Observable(function(p){var h=a||n.performanceTimestampProvider,m=h.now(),_=0,v=function(){p.closed||(_=o.animationFrameProvider.requestAnimationFrame(function(E){_=0;var O=h.now();p.next({timestamp:a?O:E,elapsed:O-m}),v()}))};return v(),function(){_&&o.animationFrameProvider.cancelAnimationFrame(_)}})}c.animationFrames=function i(a){return a?d(a):r};var r=d()},97406:(R,c,e)=>{"use strict";Object.defineProperty(c,"__esModule",{value:!0}),c.empty=c.EMPTY=void 0;var t=e(55821);c.EMPTY=new t.Observable(function(i){return i.complete()}),c.empty=function n(i){return i?function o(i){return new t.Observable(function(d){return i.schedule(function(){return d.complete()})})}(i):c.EMPTY}},67928:(R,c,e)=>{"use strict";Object.defineProperty(c,"__esModule",{value:!0}),c.forkJoin=void 0;var t=e(55821),n=e(59923),o=e(48767),i=e(31642),d=e(83173),r=e(5280),a=e(57598);c.forkJoin=function p(){for(var h=[],m=0;m<arguments.length;m++)h[m]=arguments[m];var _=i.popResultSelector(h),v=n.argsArgArrayOrObject(h),E=v.args,O=v.keys,b=new t.Observable(function(M){var P=E.length;if(P)for(var D=new Array(P),l=P,C=P,I=function(B){var L=!1;o.innerFrom(E[B]).subscribe(d.createOperatorSubscriber(M,function(V){L||(L=!0,C--),D[B]=V},function(){return l--},void 0,function(){(!l||!L)&&(C||M.next(O?a.createObject(O,D):D),M.complete())}))},g=0;g<P;g++)I(g);else M.complete()});return _?b.pipe(r.mapOneOrManyArgs(_)):b}},24996:(R,c,e)=>{"use strict";Object.defineProperty(c,"__esModule",{value:!0}),c.from=void 0;var t=e(9341),n=e(48767);c.from=function o(i,d){return d?t.scheduled(i,d):n.innerFrom(i)}},52579:function(R,c,e){"use strict";var t=this&&this.__read||function(M,P){var D="function"==typeof Symbol&&M[Symbol.iterator];if(!D)return M;var C,g,l=D.call(M),I=[];try{for(;(void 0===P||P-- >0)&&!(C=l.next()).done;)I.push(C.value)}catch(B){g={error:B}}finally{try{C&&!C.done&&(D=l.return)&&D.call(l)}finally{if(g)throw g.error}}return I};Object.defineProperty(c,"__esModule",{value:!0}),c.fromEvent=void 0;var n=e(48767),o=e(55821),i=e(43010),d=e(70697),r=e(37104),a=e(5280),p=["addListener","removeListener"],h=["addEventListener","removeEventListener"],m=["on","off"];function v(M,P){return function(D){return function(l){return M[D](P,l)}}}c.fromEvent=function _(M,P,D,l){if(r.isFunction(D)&&(l=D,D=void 0),l)return _(M,P,D).pipe(a.mapOneOrManyArgs(l));
1var C=t(function b(M){return r.isFunction(M.addEventListener)&&r.isFunction(M.removeEventListener)}(M)?h.map(function(B){return function(L){return M[B](P,L,D)}}):function E(M){return r.isFunction(M.addListener)&&r.isFunction(M.removeListener)}(M)?p.map(v(M,P)):function O(M){return r.isFunction(M.on)&&r.isFunction(M.off)}(M)?m.map(v(M,P)):[],2),I=C[0],g=C[1];if(!I&&d.isArrayLike(M))return i.mergeMap(function(B){return _(B,P,D)})(n.innerFrom(M));if(!I)throw new TypeError("Invalid event target");return new o.Observable(function(B){var L=function(){for(var V=[],Y=0;Y<arguments.length;Y++)V[Y]=arguments[Y];return B.next(1<V.length?V:V[0])};return I(L),function(){return g(L)}})}},13975:(R,c,e)=>{"use strict";Object.defineProperty(c,"__esModule",{value:!0}),c.fromEventPattern=void 0;var t=e(55821),n=e(37104),o=e(5280);c.fromEventPattern=function i(d,r,a){return a?i(d,r).pipe(o.mapOneOrManyArgs(a)):new t.Observable(function(p){var h=function(){for(var _=[],v=0;v<arguments.length;v++)_[v]=arguments[v];return p.next(1===_.length?_[0]:_)},m=d(h);return n.isFunction(r)?function(){return r(h,m)}:void 0})}},5107:(R,c,e)=>{"use strict";Object.defineProperty(c,"__esModule",{value:!0}),c.fromSubscribable=void 0;var t=e(55821);c.fromSubscribable=function n(o){return new t.Observable(function(i){return o.subscribe(i)})}},4318:function(R,c,e){"use strict";var t=this&&this.__generator||function(a,p){var m,_,v,E,h={label:0,sent:function(){if(1&v[0])throw v[1];return v[1]},trys:[],ops:[]};return E={next:O(0),throw:O(1),return:O(2)},"function"==typeof Symbol&&(E[Symbol.iterator]=function(){return this}),E;function O(M){return function(P){return function b(M){if(m)throw new TypeError("Generator is already executing.");for(;h;)try{if(m=1,_&&(v=2&M[0]?_.return:M[0]?_.throw||((v=_.return)&&v.call(_),0):_.next)&&!(v=v.call(_,M[1])).done)return v;switch(_=0,v&&(M=[2&M[0],v.value]),M[0]){case 0:case 1:v=M;break;case 4:return h.label++,{value:M[1],done:!1};case 5:h.label++,_=M[1],M=[0];continue;case 7:M=h.ops.pop(),h.trys.pop();continue;default:if(!(v=(v=h.trys).length>0&&v[v.length-1])&&(6===M[0]||2===M[0])){h=0;continue}if(3===M[0]&&(!v||M[1]>v[0]&&M[1]<v[3])){h.label=M[1];break}if(6===M[0]&&h.label<v[1]){h.label=v[1],v=M;break}if(v&&h.label<v[2]){h.label=v[2],h.ops.push(M);break}v[2]&&h.ops.pop(),h.trys.pop();continue}M=p.call(a,h)}catch(P){M=[6,P],_=0}finally{m=v=0}if(5&M[0])throw M[1];return{value:M[0]?M[1]:void 0,done:!0}}([M,P])}}};Object.defineProperty(c,"__esModule",{value:!0}),c.generate=void 0;var n=e(77884),o=e(1875),i=e(39954),d=e(39049);c.generate=function r(a,p,h,m,_){var v,E,O,b;function M(){var P;return t(this,function(D){switch(D.label){case 0:P=b,D.label=1;case 1:return!p||p(P)?[4,O(P)]:[3,4];case 2:D.sent(),D.label=3;case 3:return P=h(P),[3,1];case 4:return[2]}})}return 1===arguments.length?(b=(v=a).initialState,p=v.condition,h=v.iterate,O=void 0===(E=v.resultSelector)?n.identity:E,_=v.scheduler):(b=a,!m||o.isScheduler(m)?(O=n.identity,_=m):O=m),i.defer(_?function(){return d.scheduleIterable(M(),_)}:M)}},3140:(R,c,e)=>{"use strict";Object.defineProperty(c,"__esModule",{value:!0}),c.iif=void 0;var t=e(39954);c.iif=function n(o,i,d){return t.defer(function(){return o()?i:d})}},48767:function(R,c,e){"use strict";var t=this&&this.__awaiter||function(L,V,Y,X){return new(Y||(Y=Promise))(function(K,ee){function ae(k){try{j(X.next(k))}catch(G){ee(G)}}function Q(k){try{j(X.throw(k))}catch(G){ee(G)}}function j(k){k.done?K(k.value):function te(K){return K instanceof Y?K:new Y(function(ee){ee(K)})}(k.value).then(ae,Q)}j((X=X.apply(L,V||[])).next())})},n=this&&this.__generator||function(L,V){var X,te,K,ee,Y={label:0,sent:function(){if(1&K[0])throw K[1];return K[1]},trys:[],ops:[]};return ee={next:ae(0),throw:ae(1),return:ae(2)},"function"==typeof Symbol&&(ee[Symbol.iterator]=function(){return this}),ee;function ae(j){return function(k){return function Q(j){if(X)throw new TypeError("Generator is already executing.");for(;Y;)try{if(X=1,te&&(K=2&j[0]?te.return:j[0]?te.throw||((K=te.return)&&K.call(te),0):te.next)&&!(K=K.call(te,j[1])).done)return K;switch(te=0,K&&(j=[2&j[0],K.value]),j[0]){case 0:case 1:K=j;break;case 4:return Y.label++,{value:j[1],done:!1};case 5:Y.label++,te=j[1],j=[0];continue;case 7:j=Y.ops.pop(),Y.trys.pop();continue;default:if(!(K=(K=Y.trys).length>0&&K[K.length-1])&&(6===j[0]||2===j[0])){Y=0;continue}if(3===j[0]&&(!K||j[1]>K[0]&&j[1]<K[3])){Y.label=j[1];break}if(6===j[0]&&Y.label<K[1]){Y.label=K[1],K=j;break}if(K&&Y.label<K[2]){Y.label=K[2],Y.ops.push(j);break}K[2]&&Y.ops.pop(),Y.trys.pop();continue}j=V.call(L,Y)}catch(k){j=[6,k],te=0}finally{X=K=0}if(5&j[0])throw j[1];return{value:j[0]?j[1]:void 0,done:!0}}([j,k])}}},o=this&&this.__asyncValues||function(L){if(!Symbol.asyncIterator)throw new TypeError("Symbol.asyncIterator is not defined.");var Y,V=L[Symbol.asyncIterator];return V?V.call(L):(L="function"==typeof i?i(L):L[Symbol.iterator](),Y={},X("next"),X("throw"),X("return"),Y[Symbol.asyncIterator]=function(){return this},Y);function X(K){Y[K]=L[K]&&function(ee){return new Promise(function(ae,Q){!function te(K,ee,ae,Q){Promise.resolve(Q).then(function(j){K({value:j,done:ae})},ee)}(ae,Q,(ee=L[K](ee)).done,ee.value)})}}},i=this&&this.__values||function(L){var V="function"==typeof Symbol&&Symbol.iterator,Y=V&&L[V],X=0;if(Y)return Y.call(L);if(L&&"number"==typeof L.length)return{next:function(){return L&&X>=L.length&&(L=void 0),{value:L&&L[X++],done:!L}}};throw new TypeError(V?"Object is not iterable.":"Symbol.iterator is not defined.")};Object.defineProperty(c,"__esModule",{value:!0}),c.fromReadableStreamLike=c.fromAsyncIterable=c.fromIterable=c.fromPromise=c.fromArrayLike=c.fromInteropObservable=c.innerFrom=void 0;var d=e(70697),r=e(25050),a=e(55821),p=e(17454),h=e(26175),m=e(36870),_=e(5431),v=e(87128),E=e(37104),O=e(74709),b=e(91689);function P(L){return new a.Observable(function(V){var Y=L[b.observable]();if(E.isFunction(Y.subscribe))return Y.subscribe(V);throw new TypeError("Provided object does not correctly implement Symbol.observable")})}function D(L){return new a.Observable(function(V){for(var Y=0;Y<L.length&&!V.closed;Y++)V.next(L[Y]);V.complete()})}function l(L){return new a.Observable(function(V){L.then(function(Y){V.closed||(V.next(Y),V.complete())},function(Y){return V.error(Y)}).then(null,O.reportUnhandledError)})}function C(L){return new a.Observable(function(V){var Y,X;try{for(var te=i(L),K=te.next();!K.done;K=te.next())if(V.next(K.value),V.closed)return}catch(ae){Y={error:ae}}finally{try{K&&!K.done&&(X=te.return)&&X.call(te)}finally{if(Y)throw Y.error}}V.complete()})}function I(L){return new a.Observable(function(V){(function B(L,V){var Y,X,te,K;return t(this,void 0,void 0,function(){var ae;return n(this,function(Q){switch(Q.label){case 0:Q.trys.push([0,5,6,11]),Y=o(L),Q.label=1;case 1:return[4,Y.next()];case 2:if((X=Q.sent()).done)return[3,4];if(V.next(X.value),V.closed)return[2];Q.label=3;case 3:return[3,1];case 4:return[3,11];case 5:return ae=Q.sent(),te={error:ae},[3,11];case 6:return Q.trys.push([6,,9,10]),X&&!X.done&&(K=Y.return)?[4,K.call(Y)]:[3,8];case 7:Q.sent(),Q.label=8;case 8:return[3,10];case 9:if(te)throw te.error;return[7];
1case 10:return[7];case 11:return V.complete(),[2]}})})})(L,V).catch(function(Y){return V.error(Y)})})}function g(L){return I(v.readableStreamLikeToAsyncGenerator(L))}c.innerFrom=function M(L){if(L instanceof a.Observable)return L;if(null!=L){if(p.isInteropObservable(L))return P(L);if(d.isArrayLike(L))return D(L);if(r.isPromise(L))return l(L);if(h.isAsyncIterable(L))return I(L);if(_.isIterable(L))return C(L);if(v.isReadableStreamLike(L))return g(L)}throw m.createInvalidObservableTypeError(L)},c.fromInteropObservable=P,c.fromArrayLike=D,c.fromPromise=l,c.fromIterable=C,c.fromAsyncIterable=I,c.fromReadableStreamLike=g},51836:(R,c,e)=>{"use strict";Object.defineProperty(c,"__esModule",{value:!0}),c.interval=void 0;var t=e(64006),n=e(33271);c.interval=function o(i,d){return void 0===i&&(i=0),void 0===d&&(d=t.asyncScheduler),i<0&&(i=0),n.timer(i,i,d)}},89248:(R,c,e)=>{"use strict";Object.defineProperty(c,"__esModule",{value:!0}),c.merge=void 0;var t=e(43917),n=e(48767),o=e(97406),i=e(31642),d=e(24996);c.merge=function r(){for(var a=[],p=0;p<arguments.length;p++)a[p]=arguments[p];var h=i.popScheduler(a),m=i.popNumber(a,1/0),_=a;return _.length?1===_.length?n.innerFrom(_[0]):t.mergeAll(m)(d.from(_,h)):o.EMPTY}},2818:(R,c,e)=>{"use strict";Object.defineProperty(c,"__esModule",{value:!0}),c.never=c.NEVER=void 0;var t=e(55821),n=e(31);c.NEVER=new t.Observable(n.noop),c.never=function o(){return c.NEVER}},19677:(R,c,e)=>{"use strict";Object.defineProperty(c,"__esModule",{value:!0}),c.of=void 0;var t=e(31642),n=e(24996);c.of=function o(){for(var i=[],d=0;d<arguments.length;d++)i[d]=arguments[d];var r=t.popScheduler(i);return n.from(i,r)}},19978:(R,c,e)=>{"use strict";Object.defineProperty(c,"__esModule",{value:!0}),c.onErrorResumeNext=void 0;var t=e(55821),n=e(73531),o=e(83173),i=e(31),d=e(48767);c.onErrorResumeNext=function r(){for(var a=[],p=0;p<arguments.length;p++)a[p]=arguments[p];var h=n.argsOrArgArray(a);return new t.Observable(function(m){var _=0,v=function(){if(_<h.length){var E=void 0;try{E=d.innerFrom(h[_++])}catch{return void v()}var O=new o.OperatorSubscriber(m,void 0,i.noop,i.noop);E.subscribe(O),O.add(v)}else m.complete()};v()})}},75519:(R,c,e)=>{"use strict";Object.defineProperty(c,"__esModule",{value:!0}),c.pairs=void 0;var t=e(24996);c.pairs=function n(o,i){return t.from(Object.entries(o),i)}},68221:(R,c,e)=>{"use strict";Object.defineProperty(c,"__esModule",{value:!0}),c.partition=void 0;var t=e(40963),n=e(74270),o=e(48767);c.partition=function i(d,r,a){return[n.filter(r,a)(o.innerFrom(d)),n.filter(t.not(r,a))(o.innerFrom(d))]}},28181:(R,c,e)=>{"use strict";Object.defineProperty(c,"__esModule",{value:!0}),c.raceInit=c.race=void 0;var t=e(55821),n=e(48767),o=e(73531),i=e(83173);function r(a){return function(p){for(var h=[],m=function(v){h.push(n.innerFrom(a[v]).subscribe(i.createOperatorSubscriber(p,function(E){if(h){for(var O=0;O<h.length;O++)O!==v&&h[O].unsubscribe();h=null}p.next(E)})))},_=0;h&&!p.closed&&_<a.length;_++)m(_)}}c.race=function d(){for(var a=[],p=0;p<arguments.length;p++)a[p]=arguments[p];return 1===(a=o.argsOrArgArray(a)).length?n.innerFrom(a[0]):new t.Observable(r(a))},c.raceInit=r},14622:(R,c,e)=>{"use strict";Object.defineProperty(c,"__esModule",{value:!0}),c.range=void 0;var t=e(55821),n=e(97406);c.range=function o(i,d,r){if(null==d&&(d=i,i=0),d<=0)return n.EMPTY;var a=d+i;return new t.Observable(r?function(p){var h=i;return r.schedule(function(){h<a?(p.next(h++),this.schedule()):p.complete()})}:function(p){for(var h=i;h<a&&!p.closed;)p.next(h++);p.complete()})}},70338:(R,c,e)=>{"use strict";Object.defineProperty(c,"__esModule",{value:!0}),c.throwError=void 0;var t=e(55821),n=e(37104);c.throwError=function o(i,d){var r=n.isFunction(i)?i:function(){return i},a=function(p){return p.error(r())};return new t.Observable(d?function(p){return d.schedule(a,0,p)}:a)}},33271:(R,c,e)=>{"use strict";Object.defineProperty(c,"__esModule",{value:!0}),c.timer=void 0;var t=e(55821),n=e(64006),o=e(1875),i=e(67323);c.timer=function d(r,a,p){void 0===r&&(r=0),void 0===p&&(p=n.async);var h=-1;return null!=a&&(o.isScheduler(a)?p=a:h=a),new t.Observable(function(m){var _=i.isValidDate(r)?+r-p.now():r;_<0&&(_=0);var v=0;return p.schedule(function(){m.closed||(m.next(v++),0<=h?this.schedule(void 0,h):m.complete())},_)})}},70924:(R,c,e)=>{"use strict";Object.defineProperty(c,"__esModule",{value:!0}),c.using=void 0;var t=e(55821),n=e(48767),o=e(97406);c.using=function i(d,r){return new t.Observable(function(a){var p=d(),h=r(p);
1return(h?n.innerFrom(h):o.EMPTY).subscribe(a),function(){p&&p.unsubscribe()}})}},14842:function(R,c,e){"use strict";var t=this&&this.__read||function(m,_){var v="function"==typeof Symbol&&m[Symbol.iterator];if(!v)return m;var O,M,E=v.call(m),b=[];try{for(;(void 0===_||_-- >0)&&!(O=E.next()).done;)b.push(O.value)}catch(P){M={error:P}}finally{try{O&&!O.done&&(v=E.return)&&v.call(E)}finally{if(M)throw M.error}}return b},n=this&&this.__spreadArray||function(m,_){for(var v=0,E=_.length,O=m.length;v<E;v++,O++)m[O]=_[v];return m};Object.defineProperty(c,"__esModule",{value:!0}),c.zip=void 0;var o=e(55821),i=e(48767),d=e(73531),r=e(97406),a=e(83173),p=e(31642);c.zip=function h(){for(var m=[],_=0;_<arguments.length;_++)m[_]=arguments[_];var v=p.popResultSelector(m),E=d.argsOrArgArray(m);return E.length?new o.Observable(function(O){var b=E.map(function(){return[]}),M=E.map(function(){return!1});O.add(function(){b=M=null});for(var P=function(l){i.innerFrom(E[l]).subscribe(a.createOperatorSubscriber(O,function(C){if(b[l].push(C),b.every(function(g){return g.length})){var I=b.map(function(g){return g.shift()});O.next(v?v.apply(void 0,n([],t(I))):I),b.some(function(g,B){return!g.length&&M[B]})&&O.complete()}},function(){M[l]=!0,!b[l].length&&O.complete()}))},D=0;!O.closed&&D<E.length;D++)P(D);return function(){b=M=null}}):r.EMPTY}},83173:function(R,c,e){"use strict";var d,t=this&&this.__extends||(d=function(r,a){return(d=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(p,h){p.__proto__=h}||function(p,h){for(var m in h)Object.prototype.hasOwnProperty.call(h,m)&&(p[m]=h[m])})(r,a)},function(r,a){if("function"!=typeof a&&null!==a)throw new TypeError("Class extends value "+String(a)+" is not a constructor or null");function p(){this.constructor=r}d(r,a),r.prototype=null===a?Object.create(a):(p.prototype=a.prototype,new p)});Object.defineProperty(c,"__esModule",{value:!0}),c.OperatorSubscriber=c.createOperatorSubscriber=void 0;var n=e(57052);c.createOperatorSubscriber=function o(d,r,a,p,h){return new i(d,r,a,p,h)};var i=function(d){function r(a,p,h,m,_,v){var E=d.call(this,a)||this;return E.onFinalize=_,E.shouldUnsubscribe=v,E._next=p?function(O){try{p(O)}catch(b){a.error(b)}}:d.prototype._next,E._error=m?function(O){try{m(O)}catch(b){a.error(b)}finally{this.unsubscribe()}}:d.prototype._error,E._complete=h?function(){try{h()}catch(O){a.error(O)}finally{this.unsubscribe()}}:d.prototype._complete,E}return t(r,d),r.prototype.unsubscribe=function(){var a;if(!this.shouldUnsubscribe||this.shouldUnsubscribe()){var p=this.closed;d.prototype.unsubscribe.call(this),!p&&(null===(a=this.onFinalize)||void 0===a||a.call(this))}},r}(n.Subscriber);c.OperatorSubscriber=i},14815:(R,c,e)=>{"use strict";Object.defineProperty(c,"__esModule",{value:!0}),c.audit=void 0;var t=e(89216),n=e(48767),o=e(83173);c.audit=function i(d){return t.operate(function(r,a){var p=!1,h=null,m=null,_=!1,v=function(){if(m?.unsubscribe(),m=null,p){p=!1;var O=h;h=null,a.next(O)}_&&a.complete()},E=function(){m=null,_&&a.complete()};r.subscribe(o.createOperatorSubscriber(a,function(O){p=!0,h=O,m||n.innerFrom(d(O)).subscribe(m=o.createOperatorSubscriber(a,v,E))},function(){_=!0,(!p||!m||m.closed)&&a.complete()}))})}},19034:(R,c,e)=>{"use strict";Object.defineProperty(c,"__esModule",{value:!0}),c.auditTime=void 0;var t=e(64006),n=e(14815),o=e(33271);c.auditTime=function i(d,r){return void 0===r&&(r=t.asyncScheduler),n.audit(function(){return o.timer(d,r)})}},78544:(R,c,e)=>{"use strict";Object.defineProperty(c,"__esModule",{value:!0}),c.buffer=void 0;var t=e(89216),n=e(31),o=e(83173),i=e(48767);c.buffer=function d(r){return t.operate(function(a,p){var h=[];return a.subscribe(o.createOperatorSubscriber(p,function(m){return h.push(m)},function(){p.next(h),p.complete()})),i.innerFrom(r).subscribe(o.createOperatorSubscriber(p,function(){var m=h;h=[],p.next(m)},n.noop)),function(){h=null}})}},93999:function(R,c,e){"use strict";var t=this&&this.__values||function(r){var a="function"==typeof Symbol&&Symbol.iterator,p=a&&r[a],h=0;if(p)return p.call(r);if(r&&"number"==typeof r.length)return{next:function(){return r&&h>
1=r.length&&(r=void 0),{value:r&&r[h++],done:!r}}};throw new TypeError(a?"Object is not iterable.":"Symbol.iterator is not defined.")};Object.defineProperty(c,"__esModule",{value:!0}),c.bufferCount=void 0;var n=e(89216),o=e(83173),i=e(55137);c.bufferCount=function d(r,a){return void 0===a&&(a=null),a=a??r,n.operate(function(p,h){var m=[],_=0;p.subscribe(o.createOperatorSubscriber(h,function(v){var E,O,b,M,P=null;_++%a==0&&m.push([]);try{for(var D=t(m),l=D.next();!l.done;l=D.next())(C=l.value).push(v),r<=C.length&&(P=P??[]).push(C)}catch(B){E={error:B}}finally{try{l&&!l.done&&(O=D.return)&&O.call(D)}finally{if(E)throw E.error}}if(P)try{for(var I=t(P),g=I.next();!g.done;g=I.next()){var C;i.arrRemove(m,C=g.value),h.next(C)}}catch(B){b={error:B}}finally{try{g&&!g.done&&(M=I.return)&&M.call(I)}finally{if(b)throw b.error}}},function(){var v,E;try{for(var O=t(m),b=O.next();!b.done;b=O.next())h.next(b.value)}catch(P){v={error:P}}finally{try{b&&!b.done&&(E=O.return)&&E.call(O)}finally{if(v)throw v.error}}h.complete()},void 0,function(){m=null}))})}},11392:function(R,c,e){"use strict";var t=this&&this.__values||function(m){var _="function"==typeof Symbol&&Symbol.iterator,v=_&&m[_],E=0;if(v)return v.call(m);if(m&&"number"==typeof m.length)return{next:function(){return m&&E>=m.length&&(m=void 0),{value:m&&m[E++],done:!m}}};throw new TypeError(_?"Object is not iterable.":"Symbol.iterator is not defined.")};Object.defineProperty(c,"__esModule",{value:!0}),c.bufferTime=void 0;var n=e(76448),o=e(89216),i=e(83173),d=e(55137),r=e(64006),a=e(31642),p=e(17238);c.bufferTime=function h(m){for(var _,v,E=[],O=1;O<arguments.length;O++)E[O-1]=arguments[O];var b=null!==(_=a.popScheduler(E))&&void 0!==_?_:r.asyncScheduler,M=null!==(v=E[0])&&void 0!==v?v:null,P=E[1]||1/0;return o.operate(function(D,l){var C=[],I=!1,g=function(V){var Y=V.buffer;V.subs.unsubscribe(),d.arrRemove(C,V),l.next(Y),I&&B()},B=function(){if(C){var V=new n.Subscription;l.add(V);var X={buffer:[],subs:V};C.push(X),p.executeSchedule(V,b,function(){return g(X)},m)}};null!==M&&M>=0?p.executeSchedule(l,b,B,M,!0):I=!0,B();var L=i.createOperatorSubscriber(l,function(V){var Y,X,te=C.slice();try{for(var K=t(te),ee=K.next();!ee.done;ee=K.next()){var ae=ee.value,Q=ae.buffer;Q.push(V),P<=Q.length&&g(ae)}}catch(j){Y={error:j}}finally{try{ee&&!ee.done&&(X=K.return)&&X.call(K)}finally{if(Y)throw Y.error}}},function(){for(;C?.length;)l.next(C.shift().buffer);L?.unsubscribe(),l.complete(),l.unsubscribe()},void 0,function(){return C=null});D.subscribe(L)})}},40555:function(R,c,e){"use strict";var t=this&&this.__values||function(h){var m="function"==typeof Symbol&&Symbol.iterator,_=m&&h[m],v=0;if(_)return _.call(h);if(h&&"number"==typeof h.length)return{next:function(){return h&&v>=h.length&&(h=void 0),{value:h&&h[v++],done:!h}}};throw new TypeError(m?"Object is not iterable.":"Symbol.iterator is not defined.")};Object.defineProperty(c,"__esModule",{value:!0}),c.bufferToggle=void 0;var n=e(76448),o=e(89216),i=e(48767),d=e(83173),r=e(31),a=e(55137);c.bufferToggle=function p(h,m){return o.operate(function(_,v){var E=[];i.innerFrom(h).subscribe(d.createOperatorSubscriber(v,function(O){var b=[];E.push(b);var M=new n.Subscription;M.add(i.innerFrom(m(O)).subscribe(d.createOperatorSubscriber(v,function(){a.arrRemove(E,b),v.next(b),M.unsubscribe()},r.noop)))},r.noop)),_.subscribe(d.createOperatorSubscriber(v,function(O){var b,M;try{for(var P=t(E),D=P.next();!D.done;D=P.next())D.value.push(O)}catch(C){b={error:C}}finally{try{D&&!D.done&&(M=P.return)&&M.call(P)}finally{if(b)throw b.error}}},function(){for(;E.length>0;)v.next(E.shift());v.complete()}))})}},67274:(R,c,e)=>{"use strict";Object.defineProperty(c,"__esModule",{value:!0}),c.bufferWhen=void 0;var t=e(89216),n=e(31),o=e(83173),i=e(48767);c.bufferWhen=function d(r){return t.operate(function(a,p){var h=null,m=null,_=function(){m?.unsubscribe();var v=h;h=[],v&&p.next(v),i.innerFrom(r()).subscribe(m=o.createOperatorSubscriber(p,_,n.noop))};_(),a.subscribe(o.createOperatorSubscriber(p,function(v){return h?.push(v)},function(){h&&p.next(h),p.complete()},void 0,function(){return h=m=null}))})}},13251:(R,c,e)=>{"use strict";Object.defineProperty(c,"__esModule",{value:!0}),c.catchError=void 0;var t=e(48767),n=e(83173),o=e(89216);c.catchError=function i(d){return o.operate(function(r,a){var m,p=null,h=!1;p=r.subscribe(n.createOperatorSubscriber(a,void 0,void 0,function(_){m=t.innerFrom(d(_,i(d)(r))),p?(p.unsubscribe(),p=null,m.subscribe(a)):h=!0})),h&&(p.unsubscribe(),p=null,m.subscribe(a))})}},68996:(R,c,e)=>{"use strict";Object.defineProperty(c,"__esModule",{value:!0}),c.combineAll=void 0;var t=e(68931);c.combineAll=t.combineLatestAll},75538:function(R,c,e){"use strict";var t=this&&this.__read||function(m,_){var v="function"==typeof Symbol&&m[Symbol.iterator];if(!v)return m;var O,M,E=v.call(m),b=[];try{for(;(void 0===_||_-- >0)&&!(O=E.next()).done;)b.push(O.value)}catch(P){M={error:P}}finally{try{O&&!O.done&&(v=E.return)&&v.call(E)}
1finally{if(M)throw M.error}}return b},n=this&&this.__spreadArray||function(m,_){for(var v=0,E=_.length,O=m.length;v<E;v++,O++)m[O]=_[v];return m};Object.defineProperty(c,"__esModule",{value:!0}),c.combineLatest=void 0;var o=e(36892),i=e(89216),d=e(73531),r=e(5280),a=e(81471),p=e(31642);c.combineLatest=function h(){for(var m=[],_=0;_<arguments.length;_++)m[_]=arguments[_];var v=p.popResultSelector(m);return v?a.pipe(h.apply(void 0,n([],t(m))),r.mapOneOrManyArgs(v)):i.operate(function(E,O){o.combineLatestInit(n([E],t(d.argsOrArgArray(m))))(O)})}},68931:(R,c,e)=>{"use strict";Object.defineProperty(c,"__esModule",{value:!0}),c.combineLatestAll=void 0;var t=e(36892),n=e(91277);c.combineLatestAll=function o(i){return n.joinAllInternals(t.combineLatest,i)}},18947:function(R,c,e){"use strict";var t=this&&this.__read||function(d,r){var a="function"==typeof Symbol&&d[Symbol.iterator];if(!a)return d;var h,_,p=a.call(d),m=[];try{for(;(void 0===r||r-- >0)&&!(h=p.next()).done;)m.push(h.value)}catch(v){_={error:v}}finally{try{h&&!h.done&&(a=p.return)&&a.call(p)}finally{if(_)throw _.error}}return m},n=this&&this.__spreadArray||function(d,r){for(var a=0,p=r.length,h=d.length;a<p;a++,h++)d[h]=r[a];return d};Object.defineProperty(c,"__esModule",{value:!0}),c.combineLatestWith=void 0;var o=e(75538);c.combineLatestWith=function i(){for(var d=[],r=0;r<arguments.length;r++)d[r]=arguments[r];return o.combineLatest.apply(void 0,n([],t(d)))}},84656:function(R,c,e){"use strict";var t=this&&this.__read||function(p,h){var m="function"==typeof Symbol&&p[Symbol.iterator];if(!m)return p;var v,O,_=m.call(p),E=[];try{for(;(void 0===h||h-- >0)&&!(v=_.next()).done;)E.push(v.value)}catch(b){O={error:b}}finally{try{v&&!v.done&&(m=_.return)&&m.call(_)}finally{if(O)throw O.error}}return E},n=this&&this.__spreadArray||function(p,h){for(var m=0,_=h.length,v=p.length;m<_;m++,v++)p[v]=h[m];return p};Object.defineProperty(c,"__esModule",{value:!0}),c.concat=void 0;var o=e(89216),i=e(31557),d=e(31642),r=e(24996);c.concat=function a(){for(var p=[],h=0;h<arguments.length;h++)p[h]=arguments[h];var m=d.popScheduler(p);return o.operate(function(_,v){i.concatAll()(r.from(n([_],t(p)),m)).subscribe(v)})}},31557:(R,c,e)=>{"use strict";Object.defineProperty(c,"__esModule",{value:!0}),c.concatAll=void 0;var t=e(43917);c.concatAll=function n(){return t.mergeAll(1)}},44659:(R,c,e)=>{"use strict";Object.defineProperty(c,"__esModule",{value:!0}),c.concatMap=void 0;var t=e(43010),n=e(37104);c.concatMap=function o(i,d){return n.isFunction(d)?t.mergeMap(i,d,1):t.mergeMap(i,1)}},62993:(R,c,e)=>{"use strict";Object.defineProperty(c,"__esModule",{value:!0}),c.concatMapTo=void 0;var t=e(44659),n=e(37104);c.concatMapTo=function o(i,d){return n.isFunction(d)?t.concatMap(function(){return i},d):t.concatMap(function(){return i})}},75898:function(R,c,e){"use strict";var t=this&&this.__read||function(d,r){var a="function"==typeof Symbol&&d[Symbol.iterator];if(!a)return d;var h,_,p=a.call(d),m=[];try{for(;(void 0===r||r-- >0)&&!(h=p.next()).done;)m.push(h.value)}catch(v){_={error:v}}finally{try{h&&!h.done&&(a=p.return)&&a.call(p)}finally{if(_)throw _.error}}return m},n=this&&this.__spreadArray||function(d,r){for(var a=0,p=r.length,h=d.length;a<p;a++,h++)d[h]=r[a];return d};Object.defineProperty(c,"__esModule",{value:!0}),c.concatWith=void 0;var o=e(84656);c.concatWith=function i(){for(var d=[],r=0;r<arguments.length;r++)d[r]=arguments[r];return o.concat.apply(void 0,n([],t(d)))}},59725:(R,c,e)=>{"use strict";Object.defineProperty(c,"__esModule",{value:!0}),c.connect=void 0;var t=e(13768),n=e(48767),o=e(89216),i=e(5107),d={connector:function(){return new t.Subject}};c.connect=function r(a,p){void 0===p&&(p=d);var h=p.connector;return o.operate(function(m,_){var v=h();n.innerFrom(a(i.fromSubscribable(v))).subscribe(_),_.add(m.subscribe(v))})}},1814:(R,c,e)=>{"use strict";Object.defineProperty(c,"__esModule",{value:!0}),c.count=void 0;var t=e(98587);c.count=function n(o){return t.reduce(function(i,d,r){return!o||o(d,r)?i+1:i},0)}},79784:(R,c,e)=>{"use strict";Object.defineProperty(c,"__esModule",{value:!0}),c.debounce=void 0;var t=e(89216),n=e(31),o=e(83173),i=e(48767);c.debounce=function d(r){return t.operate(function(a,p){var h=!1,m=null,_=null,v=function(){if(_?.unsubscribe(),_=null,h){h=!1;var E=m;m=null,p.next(E)}};a.subscribe(o.createOperatorSubscriber(p,function(E){_?.unsubscribe(),h=!0,m=E,_=o.createOperatorSubscriber(p,v,n.noop),i.innerFrom(r(E)).subscribe(_)},function(){v(),p.complete()},void 0,function(){m=_=null}))})}},97061:(R,c,e)=>{"use strict";Object.defineProperty(c,"__esModule",{value:!0}),c.debounceTime=void 0;var t=e(64006),n=e(89216),o=e(83173);c.debounceTime=function i(d,r){return void 0===r&&(r=t.asyncScheduler),n.operate(function(a,p){var h=null,m=null,_=null,v=function(){if(h){h.unsubscribe(),h=null;var O=m;m=null,p.next(O)}};function E(){var O=_+d,b=r.now();if(b<O)return h=this.schedule(void 0,O-b),void p.add(h);v()}a.subscribe(o.createOperatorSubscriber(p,function(O){m=O,_=r.now(),h||(h=r.schedule(E,d),p.add(h))},function(){v(),p.complete()},void 0,function(){m=h=null}))})}},40926:(R,c,e)=>{"use strict";Object.defineProperty(c,"__esModule",{value:!0}),c.defaultIfEmpty=void 0;var t=e(89216),n=e(83173);c.defaultIfEmpty=function o(i){return t.operate(function(d,r){var a=!1;d.subscribe(n.createOperatorSubscriber(r,function(p){a=!0,r.next(p)},function(){a||r.next(i),r.complete()}
1))})}},52096:(R,c,e)=>{"use strict";Object.defineProperty(c,"__esModule",{value:!0}),c.delay=void 0;var t=e(64006),n=e(63264),o=e(33271);c.delay=function i(d,r){void 0===r&&(r=t.asyncScheduler);var a=o.timer(d,r);return n.delayWhen(function(){return a})}},63264:(R,c,e)=>{"use strict";Object.defineProperty(c,"__esModule",{value:!0}),c.delayWhen=void 0;var t=e(30509),n=e(1333),o=e(44041),i=e(62182),d=e(43010),r=e(48767);c.delayWhen=function a(p,h){return h?function(m){return t.concat(h.pipe(n.take(1),o.ignoreElements()),m.pipe(a(p)))}:d.mergeMap(function(m,_){return r.innerFrom(p(m,_)).pipe(n.take(1),i.mapTo(m))})}},60533:(R,c,e)=>{"use strict";Object.defineProperty(c,"__esModule",{value:!0}),c.dematerialize=void 0;var t=e(77262),n=e(89216),o=e(83173);c.dematerialize=function i(){return n.operate(function(d,r){d.subscribe(o.createOperatorSubscriber(r,function(a){return t.observeNotification(a,r)}))})}},5045:(R,c,e)=>{"use strict";Object.defineProperty(c,"__esModule",{value:!0}),c.distinct=void 0;var t=e(89216),n=e(83173),o=e(31),i=e(48767);c.distinct=function d(r,a){return t.operate(function(p,h){var m=new Set;p.subscribe(n.createOperatorSubscriber(h,function(_){var v=r?r(_):_;m.has(v)||(m.add(v),h.next(_))})),a&&i.innerFrom(a).subscribe(n.createOperatorSubscriber(h,function(){return m.clear()},o.noop))})}},15794:(R,c,e)=>{"use strict";Object.defineProperty(c,"__esModule",{value:!0}),c.distinctUntilChanged=void 0;var t=e(77884),n=e(89216),o=e(83173);function d(r,a){return r===a}c.distinctUntilChanged=function i(r,a){return void 0===a&&(a=t.identity),r=r??d,n.operate(function(p,h){var m,_=!0;p.subscribe(o.createOperatorSubscriber(h,function(v){var E=a(v);(_||!r(m,E))&&(_=!1,m=E,h.next(v))}))})}},48589:(R,c,e)=>{"use strict";Object.defineProperty(c,"__esModule",{value:!0}),c.distinctUntilKeyChanged=void 0;var t=e(15794);c.distinctUntilKeyChanged=function n(o,i){return t.distinctUntilChanged(function(d,r){return i?i(d[o],r[o]):d[o]===r[o]})}},11069:(R,c,e)=>{"use strict";Object.defineProperty(c,"__esModule",{value:!0}),c.elementAt=void 0;var t=e(4769),n=e(74270),o=e(99194),i=e(40926),d=e(1333);c.elementAt=function r(a,p){if(a<0)throw new t.ArgumentOutOfRangeError;var h=arguments.length>=2;return function(m){return m.pipe(n.filter(function(_,v){return v===a}),d.take(1),h?i.defaultIfEmpty(p):o.throwIfEmpty(function(){return new t.ArgumentOutOfRangeError}))}}},94312:function(R,c,e){"use strict";var t=this&&this.__read||function(r,a){var p="function"==typeof Symbol&&r[Symbol.iterator];if(!p)return r;var m,v,h=p.call(r),_=[];try{for(;(void 0===a||a-- >0)&&!(m=h.next()).done;)_.push(m.value)}catch(E){v={error:E}}finally{try{m&&!m.done&&(p=h.return)&&p.call(h)}finally{if(v)throw v.error}}return _},n=this&&this.__spreadArray||function(r,a){for(var p=0,h=a.length,m=r.length;p<h;p++,m++)r[m]=a[p];return r};Object.defineProperty(c,"__esModule",{value:!0}),c.endWith=void 0;var o=e(30509),i=e(19677);c.endWith=function d(){for(var r=[],a=0;a<arguments.length;a++)r[a]=arguments[a];return function(p){return o.concat(p,i.of.apply(void 0,n([],t(r))))}}},19098:(R,c,e)=>{"use strict";Object.defineProperty(c,"__esModule",{value:!0}),c.every=void 0;var t=e(89216),n=e(83173);c.every=function o(i,d){return t.operate(function(r,a){var p=0;r.subscribe(n.createOperatorSubscriber(a,function(h){i.call(d,h,p++,r)||(a.next(!1),a.complete())},function(){a.next(!0),a.complete()}))})}},15429:(R,c,e)=>{"use strict";Object.defineProperty(c,"__esModule",{value:!0}),c.exhaust=void 0;var t=e(11399);c.exhaust=t.exhaustAll},11399:(R,c,e)=>{"use strict";Object.defineProperty(c,"__esModule",{value:!0}),c.exhaustAll=void 0;var t=e(82202),n=e(77884);c.exhaustAll=function o(){return t.exhaustMap(n.identity)}},82202:(R,c,e)=>{"use strict";Object.defineProperty(c,"__esModule",{value:!0}),c.exhaustMap=void 0;var t=e(70752),n=e(48767),o=e(89216),i=e(83173);c.exhaustMap=function d(r,a){return a?function(p){return p.pipe(d(function(h,m){return n.innerFrom(r(h,m)).pipe(t.map(function(_,v){return a(h,_,m,v)}))}))}:o.operate(function(p,h){var m=0,_=null,v=!1;p.subscribe(i.createOperatorSubscriber(h,function(E){_||(_=i.createOperatorSubscriber(h,void 0,function(){_=null,v&&h.complete()}),n.innerFrom(r(E,m++)).subscribe(_))},function(){v=!0,!_&&h.complete()}
1))})}},68678:(R,c,e)=>{"use strict";Object.defineProperty(c,"__esModule",{value:!0}),c.expand=void 0;var t=e(89216),n=e(38457);c.expand=function o(i,d,r){return void 0===d&&(d=1/0),d=(d||0)<1?1/0:d,t.operate(function(a,p){return n.mergeInternals(a,p,i,d,void 0,!0,r)})}},74270:(R,c,e)=>{"use strict";Object.defineProperty(c,"__esModule",{value:!0}),c.filter=void 0;var t=e(89216),n=e(83173);c.filter=function o(i,d){return t.operate(function(r,a){var p=0;r.subscribe(n.createOperatorSubscriber(a,function(h){return i.call(d,h,p++)&&a.next(h)}))})}},21587:(R,c,e)=>{"use strict";Object.defineProperty(c,"__esModule",{value:!0}),c.finalize=void 0;var t=e(89216);c.finalize=function n(o){return t.operate(function(i,d){try{i.subscribe(d)}finally{d.add(o)}})}},42265:(R,c,e)=>{"use strict";Object.defineProperty(c,"__esModule",{value:!0}),c.createFind=c.find=void 0;var t=e(89216),n=e(83173);function i(d,r,a){var p="index"===a;return function(h,m){var _=0;h.subscribe(n.createOperatorSubscriber(m,function(v){var E=_++;d.call(r,v,E,h)&&(m.next(p?E:v),m.complete())},function(){m.next(p?-1:void 0),m.complete()}))}}c.find=function o(d,r){return t.operate(i(d,r,"value"))},c.createFind=i},8195:(R,c,e)=>{"use strict";Object.defineProperty(c,"__esModule",{value:!0}),c.findIndex=void 0;var t=e(89216),n=e(42265);c.findIndex=function o(i,d){return t.operate(n.createFind(i,d,"index"))}},28012:(R,c,e)=>{"use strict";Object.defineProperty(c,"__esModule",{value:!0}),c.first=void 0;var t=e(48915),n=e(74270),o=e(1333),i=e(40926),d=e(99194),r=e(77884);c.first=function a(p,h){var m=arguments.length>=2;return function(_){return _.pipe(p?n.filter(function(v,E){return p(v,E,_)}):r.identity,o.take(1),m?i.defaultIfEmpty(h):d.throwIfEmpty(function(){return new t.EmptyError}))}}},21463:(R,c,e)=>{"use strict";Object.defineProperty(c,"__esModule",{value:!0}),c.flatMap=void 0;var t=e(43010);c.flatMap=t.mergeMap},34075:(R,c,e)=>{"use strict";Object.defineProperty(c,"__esModule",{value:!0}),c.groupBy=void 0;var t=e(55821),n=e(48767),o=e(13768),i=e(89216),d=e(83173);c.groupBy=function r(a,p,h,m){return i.operate(function(_,v){var E;p&&"function"!=typeof p?(h=p.duration,E=p.element,m=p.connector):E=p;var O=new Map,b=function(I){O.forEach(I),I(v)},M=function(I){return b(function(g){return g.error(I)})},P=0,D=!1,l=new d.OperatorSubscriber(v,function(I){try{var g=a(I),B=O.get(g);if(!B){O.set(g,B=m?m():new o.Subject);var L=function C(I,g){var B=new t.Observable(function(L){P++;var V=g.subscribe(L);return function(){V.unsubscribe(),0==--P&&D&&l.unsubscribe()}});return B.key=I,B}(g,B);if(v.next(L),h){var V=d.createOperatorSubscriber(B,function(){B.complete(),V?.unsubscribe()},void 0,void 0,function(){return O.delete(g)});l.add(n.innerFrom(h(L)).subscribe(V))}}B.next(E?E(I):I)}catch(Y){M(Y)}},function(){return b(function(I){return I.complete()})},M,function(){return O.clear()},function(){return D=!0,0===P});_.subscribe(l)})}},44041:(R,c,e)=>{"use strict";Object.defineProperty(c,"__esModule",{value:!0}),c.ignoreElements=void 0;var t=e(89216),n=e(83173),o=e(31);c.ignoreElements=function i(){return t.operate(function(d,r){d.subscribe(n.createOperatorSubscriber(r,o.noop))})}},86478:(R,c,e)=>{"use strict";Object.defineProperty(c,"__esModule",{value:!0}),c.isEmpty=void 0;var t=e(89216),n=e(83173);c.isEmpty=function o(){return t.operate(function(i,d){i.subscribe(n.createOperatorSubscriber(d,function(){d.next(!1),d.complete()},function(){d.next(!0),d.complete()}))})}},91277:(R,c,e)=>{"use strict";Object.defineProperty(c,"__esModule",{value:!0}),c.joinAllInternals=void 0;var t=e(77884),n=e(5280),o=e(81471),i=e(43010),d=e(42976);c.joinAllInternals=function r(a,p){return o.pipe(d.toArray(),i.mergeMap(function(h){return a(h)}),p?n.mapOneOrManyArgs(p):t.identity)}},85126:(R,c,e)=>{"use strict";Object.defineProperty(c,"__esModule",{value:!0}),c.last=void 0;var t=e(48915),n=e(74270),o=e(48306),i=e(99194),d=e(40926),r=e(77884);c.last=function a(p,h){var m=arguments.length>=2;return function(_){return _.pipe(p?n.filter(function(v,E){return p(v,E,_)}):r.identity,o.takeLast(1),m?d.defaultIfEmpty(h):i.throwIfEmpty(function(){return new t.EmptyError}))}}},70752:(R,c,e)=>{"use strict";Object.defineProperty(c,"__esModule",{value:!0}),c.map=void 0;var t=e(89216),n=e(83173);c.map=function o(i,d){return t.operate(function(r,a){var p=0;r.subscribe(n.createOperatorSubscriber(a,function(h){a.next(i.call(
1d,h,p++))}))})}},62182:(R,c,e)=>{"use strict";Object.defineProperty(c,"__esModule",{value:!0}),c.mapTo=void 0;var t=e(70752);c.mapTo=function n(o){return t.map(function(){return o})}},90119:(R,c,e)=>{"use strict";Object.defineProperty(c,"__esModule",{value:!0}),c.materialize=void 0;var t=e(77262),n=e(89216),o=e(83173);c.materialize=function i(){return n.operate(function(d,r){d.subscribe(o.createOperatorSubscriber(r,function(a){r.next(t.Notification.createNext(a))},function(){r.next(t.Notification.createComplete()),r.complete()},function(a){r.next(t.Notification.createError(a)),r.complete()}))})}},99329:(R,c,e)=>{"use strict";Object.defineProperty(c,"__esModule",{value:!0}),c.max=void 0;var t=e(98587),n=e(37104);c.max=function o(i){return t.reduce(n.isFunction(i)?function(d,r){return i(d,r)>0?d:r}:function(d,r){return d>r?d:r})}},68789:function(R,c,e){"use strict";var t=this&&this.__read||function(h,m){var _="function"==typeof Symbol&&h[Symbol.iterator];if(!_)return h;var E,b,v=_.call(h),O=[];try{for(;(void 0===m||m-- >0)&&!(E=v.next()).done;)O.push(E.value)}catch(M){b={error:M}}finally{try{E&&!E.done&&(_=v.return)&&_.call(v)}finally{if(b)throw b.error}}return O},n=this&&this.__spreadArray||function(h,m){for(var _=0,v=m.length,E=h.length;_<v;_++,E++)h[E]=m[_];return h};Object.defineProperty(c,"__esModule",{value:!0}),c.merge=void 0;var o=e(89216),i=e(73531),d=e(43917),r=e(31642),a=e(24996);c.merge=function p(){for(var h=[],m=0;m<arguments.length;m++)h[m]=arguments[m];var _=r.popScheduler(h),v=r.popNumber(h,1/0);return h=i.argsOrArgArray(h),o.operate(function(E,O){d.mergeAll(v)(a.from(n([E],t(h)),_)).subscribe(O)})}},43917:(R,c,e)=>{"use strict";Object.defineProperty(c,"__esModule",{value:!0}),c.mergeAll=void 0;var t=e(43010),n=e(77884);c.mergeAll=function o(i){return void 0===i&&(i=1/0),t.mergeMap(n.identity,i)}},38457:(R,c,e)=>{"use strict";Object.defineProperty(c,"__esModule",{value:!0}),c.mergeInternals=void 0;var t=e(48767),n=e(17238),o=e(83173);c.mergeInternals=function i(d,r,a,p,h,m,_,v){var E=[],O=0,b=0,M=!1,P=function(){M&&!E.length&&!O&&r.complete()},D=function(C){return O<p?l(C):E.push(C)},l=function(C){m&&r.next(C),O++;var I=!1;t.innerFrom(a(C,b++)).subscribe(o.createOperatorSubscriber(r,function(g){h?.(g),m?D(g):r.next(g)},function(){I=!0},void 0,function(){if(I)try{O--;for(var g=function(){var B=E.shift();_?n.executeSchedule(r,_,function(){return l(B)}):l(B)};E.length&&O<p;)g();P()}catch(B){r.error(B)}}))};return d.subscribe(o.createOperatorSubscriber(r,D,function(){M=!0,P()})),function(){v?.()}}},43010:(R,c,e)=>{"use strict";Object.defineProperty(c,"__esModule",{value:!0}),c.mergeMap=void 0;var t=e(70752),n=e(48767),o=e(89216),i=e(38457),d=e(37104);c.mergeMap=function r(a,p,h){return void 0===h&&(h=1/0),d.isFunction(p)?r(function(m,_){return t.map(function(v,E){return p(m,v,_,E)})(n.innerFrom(a(m,_)))},h):("number"==typeof p&&(h=p),o.operate(function(m,_){return i.mergeInternals(m,_,a,h)}))}},10929:(R,c,e)=>{"use strict";Object.defineProperty(c,"__esModule",{value:!0}),c.mergeMapTo=void 0;var t=e(43010),n=e(37104);c.mergeMapTo=function o(i,d,r){return void 0===r&&(r=1/0),n.isFunction(d)?t.mergeMap(function(){return i},d,r):("number"==typeof d&&(r=d),t.mergeMap(function(){return i},r))}},42816:(R,c,e)=>{"use strict";Object.defineProperty(c,"__esModule",{value:!0}),c.mergeScan=void 0;var t=e(89216),n=e(38457);c.mergeScan=function o(i,d,r){return void 0===r&&(r=1/0),t.operate(function(a,p){var h=d;return n.mergeInternals(a,p,function(m,_){return i(h,m,_)},r,function(m){h=m},!1,void 0,function(){return h=null})})}},69684:function(R,c,e){"use strict";var t=this&&this.__read||function(d,r){var a="function"==typeof Symbol&&d[Symbol.iterator];if(!a)return d;var h,_,p=a.call(d),m=[];try{for(;(void 0===r||r-- >0)&&!(h=p.next()).done;)m.push(h.value)}catch(v){_={error:v}}finally{try{h&&!h.done&&(a=p.return)&&a.call(p)}finally{if(_)throw _.error}}return m},n=this&&this.__spreadArray||function(d,r){for(var a=0,p=r.length,h=d.length;a<p;a++,h++)d[h]=r[a];return d};Object.defineProperty(c,"__esModule",{value:!0}),c.mergeWith=void 0;var o=e(68789);c.mergeWith=function i(){for(var d=[],r=0;r<arguments.length;r++)d[r]=arguments[r];return o.merge.apply(void 0,n([],t(d)))}},16250:(R,c,e)=>{"use strict";Object.defineProperty(c,"__esModule",{value:!0}),c.min=void 0;var t=e(98587),n=e(37104);c.min=function o(i){return t.reduce(n.isFunction(i)?function(d,r){return i(d,r)<0?d:r}:function(d,r){return d<r?d:r})}},19872:(R,c,e)=>{"use strict";Object.defineProperty(c,"__esModule",{value:!0}),c.multicast=void 0;var t=e(6686),n=e(37104),o=e(59725);c.multicast=function i(d,r){var a=n.isFunction(d)?d:function(){return d};return n.isFunction(r)?o.connect(r,{connector:a}):function(p){return new t.ConnectableObservable(p,a)}}},94928:(R,c,e)=>{"use strict";Object.defineProperty(c,"__esModule",{value:!0}),c.observeOn=void 0;var t=e(17238),n=e(89216),o=e(83173);c.observeOn=function i(d,r){return void 0===r&&(r=0),n.operate(function(a,p){a.subscribe(o.createOperatorSubscriber(p,function(h){return t.executeSchedule(p,d,function(){return p.next(h)},r)},function(){return t.executeSchedule(p,d,function(){return p.complete()},r)},function(h){return t.executeSchedule(p,d,function(){return p.error(h)},r)}))})}},56236:function(R,c,e){"use strict";var t=this&&this.__read||function(r,a){var p="function"==typeof Symbol&&r[Symbol.iterator];if(!p)return r;var m,v,h=p.call(r),_=[];try{for(;(void 0===a||a-- >0)&&!(m=h.next()).done;)_.push(m.value)}catch(E){v={error:E}}
1finally{try{m&&!m.done&&(p=h.return)&&p.call(h)}finally{if(v)throw v.error}}return _},n=this&&this.__spreadArray||function(r,a){for(var p=0,h=a.length,m=r.length;p<h;p++,m++)r[m]=a[p];return r};Object.defineProperty(c,"__esModule",{value:!0}),c.onErrorResumeNext=c.onErrorResumeNextWith=void 0;var o=e(73531),i=e(19978);function d(){for(var r=[],a=0;a<arguments.length;a++)r[a]=arguments[a];var p=o.argsOrArgArray(r);return function(h){return i.onErrorResumeNext.apply(void 0,n([h],t(p)))}}c.onErrorResumeNextWith=d,c.onErrorResumeNext=d},99526:(R,c,e)=>{"use strict";Object.defineProperty(c,"__esModule",{value:!0}),c.pairwise=void 0;var t=e(89216),n=e(83173);c.pairwise=function o(){return t.operate(function(i,d){var r,a=!1;i.subscribe(n.createOperatorSubscriber(d,function(p){var h=r;r=p,a&&d.next([h,p]),a=!0}))})}},85199:(R,c,e)=>{"use strict";Object.defineProperty(c,"__esModule",{value:!0}),c.pluck=void 0;var t=e(70752);c.pluck=function n(){for(var o=[],i=0;i<arguments.length;i++)o[i]=arguments[i];var d=o.length;if(0===d)throw new Error("list of properties cannot be empty.");return t.map(function(r){for(var a=r,p=0;p<d;p++){var h=a?.[o[p]];if(!(typeof h<"u"))return;a=h}return a})}},10955:(R,c,e)=>{"use strict";Object.defineProperty(c,"__esModule",{value:!0}),c.publish=void 0;var t=e(13768),n=e(19872),o=e(59725);c.publish=function i(d){return d?function(r){return o.connect(d)(r)}:function(r){return n.multicast(new t.Subject)(r)}}},66750:(R,c,e)=>{"use strict";Object.defineProperty(c,"__esModule",{value:!0}),c.publishBehavior=void 0;var t=e(75482),n=e(6686);c.publishBehavior=function o(i){return function(d){var r=new t.BehaviorSubject(i);return new n.ConnectableObservable(d,function(){return r})}}},41003:(R,c,e)=>{"use strict";Object.defineProperty(c,"__esModule",{value:!0}),c.publishLast=void 0;var t=e(87606),n=e(6686);c.publishLast=function o(){return function(i){var d=new t.AsyncSubject;return new n.ConnectableObservable(i,function(){return d})}}},45530:(R,c,e)=>{"use strict";Object.defineProperty(c,"__esModule",{value:!0}),c.publishReplay=void 0;var t=e(93406),n=e(19872),o=e(37104);c.publishReplay=function i(d,r,a,p){a&&!o.isFunction(a)&&(p=a);var h=o.isFunction(a)?a:void 0;return function(m){return n.multicast(new t.ReplaySubject(d,r,p),h)(m)}}},32992:function(R,c,e){"use strict";var t=this&&this.__read||function(a,p){var h="function"==typeof Symbol&&a[Symbol.iterator];if(!h)return a;var _,E,m=h.call(a),v=[];try{for(;(void 0===p||p-- >0)&&!(_=m.next()).done;)v.push(_.value)}catch(O){E={error:O}}finally{try{_&&!_.done&&(h=m.return)&&h.call(m)}finally{if(E)throw E.error}}return v},n=this&&this.__spreadArray||function(a,p){for(var h=0,m=p.length,_=a.length;h<m;h++,_++)a[_]=p[h];return a};Object.defineProperty(c,"__esModule",{value:!0}),c.raceWith=void 0;var o=e(28181),i=e(89216),d=e(77884);c.raceWith=function r(){for(var a=[],p=0;p<arguments.length;p++)a[p]=arguments[p];return a.length?i.operate(function(h,m){o.raceInit(n([h],t(a)))(m)}):d.identity}},98587:(R,c,e)=>{"use strict";Object.defineProperty(c,"__esModule",{value:!0}),c.reduce=void 0;var t=e(53049),n=e(89216);c.reduce=function o(i,d){return n.operate(t.scanInternals(i,d,arguments.length>=2,!1,!0))}},80904:(R,c,e)=>{"use strict";Object.defineProperty(c,"__esModule",{value:!0}),c.refCount=void 0;var t=e(89216),n=e(83173);c.refCount=function o(){return t.operate(function(i,d){var r=null;i._refCount++;var a=n.createOperatorSubscriber(d,void 0,void 0,void 0,function(){if(!i||i._refCount<=0||0<--i._refCount)r=null;else{var p=i._connection,h=r;r=null,p&&(!h||p===h)&&p.unsubscribe(),d.unsubscribe()}});i.subscribe(a),a.closed||(r=i.connect())})}},68408:(R,c,e)=>{"use strict";Object.defineProperty(c,"__esModule",{value:!0}),c.repeat=void 0;var t=e(97406),n=e(89216),o=e(83173),i=e(48767),d=e(33271);c.repeat=function r(a){var p,m,h=1/0;return null!=a&&("object"==typeof a?(h=void 0===(p=a.count)?1/0:p,m=a.delay):h=a),h<=0?function(){return t.EMPTY}:n.operate(function(_,v){var O,E=0,b=function(){if(O?.unsubscribe(),O=null,null!=m){var P="number"==typeof m?d.timer(m):i.innerFrom(m(E)),D=o.createOperatorSubscriber(v,function(){D.unsubscribe(),M()});P.subscribe(D)}else M()},M=function(){var P=!1;O=_.subscribe(o.createOperatorSubscriber(v,void 0,function(){++E<h?O?b():P=!0:v.complete()}
1)),P&&b()};M()})}},97032:(R,c,e)=>{"use strict";Object.defineProperty(c,"__esModule",{value:!0}),c.repeatWhen=void 0;var t=e(48767),n=e(13768),o=e(89216),i=e(83173);c.repeatWhen=function d(r){return o.operate(function(a,p){var h,_,m=!1,v=!1,E=!1,O=function(){return E&&v&&(p.complete(),!0)},M=function(){E=!1,h=a.subscribe(i.createOperatorSubscriber(p,void 0,function(){E=!0,!O()&&(_||(_=new n.Subject,t.innerFrom(r(_)).subscribe(i.createOperatorSubscriber(p,function(){h?M():m=!0},function(){v=!0,O()}))),_).next()})),m&&(h.unsubscribe(),h=null,m=!1,M())};M()})}},46069:(R,c,e)=>{"use strict";Object.defineProperty(c,"__esModule",{value:!0}),c.retry=void 0;var t=e(89216),n=e(83173),o=e(77884),i=e(33271),d=e(48767);c.retry=function r(a){var p;void 0===a&&(a=1/0);var h=(p=a&&"object"==typeof a?a:{count:a}).count,m=void 0===h?1/0:h,_=p.delay,v=p.resetOnSuccess,E=void 0!==v&&v;return m<=0?o.identity:t.operate(function(O,b){var P,M=0,D=function(){var l=!1;P=O.subscribe(n.createOperatorSubscriber(b,function(C){E&&(M=0),b.next(C)},void 0,function(C){if(M++<m){var I=function(){P?(P.unsubscribe(),P=null,D()):l=!0};if(null!=_){var g="number"==typeof _?i.timer(_):d.innerFrom(_(C,M)),B=n.createOperatorSubscriber(b,function(){B.unsubscribe(),I()},function(){b.complete()});g.subscribe(B)}else I()}else b.error(C)})),l&&(P.unsubscribe(),P=null,D())};D()})}},35131:(R,c,e)=>{"use strict";Object.defineProperty(c,"__esModule",{value:!0}),c.retryWhen=void 0;var t=e(48767),n=e(13768),o=e(89216),i=e(83173);c.retryWhen=function d(r){return o.operate(function(a,p){var h,_,m=!1,v=function(){h=a.subscribe(i.createOperatorSubscriber(p,void 0,void 0,function(E){_||(_=new n.Subject,t.innerFrom(r(_)).subscribe(i.createOperatorSubscriber(p,function(){return h?v():m=!0}))),_&&_.next(E)})),m&&(h.unsubscribe(),h=null,m=!1,v())};v()})}},35032:(R,c,e)=>{"use strict";Object.defineProperty(c,"__esModule",{value:!0}),c.sample=void 0;var t=e(48767),n=e(89216),o=e(31),i=e(83173);c.sample=function d(r){return n.operate(function(a,p){var h=!1,m=null;a.subscribe(i.createOperatorSubscriber(p,function(_){h=!0,m=_})),t.innerFrom(r).subscribe(i.createOperatorSubscriber(p,function(){if(h){h=!1;var _=m;m=null,p.next(_)}},o.noop))})}},52098:(R,c,e)=>{"use strict";Object.defineProperty(c,"__esModule",{value:!0}),c.sampleTime=void 0;var t=e(64006),n=e(35032),o=e(51836);c.sampleTime=function i(d,r){return void 0===r&&(r=t.asyncScheduler),n.sample(o.interval(d,r))}},50251:(R,c,e)=>{"use strict";Object.defineProperty(c,"__esModule",{value:!0}),c.scan=void 0;var t=e(89216),n=e(53049);c.scan=function o(i,d){return t.operate(n.scanInternals(i,d,arguments.length>=2,!0))}},53049:(R,c,e)=>{"use strict";Object.defineProperty(c,"__esModule",{value:!0}),c.scanInternals=void 0;var t=e(83173);c.scanInternals=function n(o,i,d,r,a){return function(p,h){var m=d,_=i,v=0;p.subscribe(t.createOperatorSubscriber(h,function(E){var O=v++;_=m?o(_,E,O):(m=!0,E),r&&h.next(_)},a&&function(){m&&h.next(_),h.complete()}))}}},49788:(R,c,e)=>{"use strict";Object.defineProperty(c,"__esModule",{value:!0}),c.sequenceEqual=void 0;var t=e(89216),n=e(83173),o=e(48767);c.sequenceEqual=function i(r,a){return void 0===a&&(a=function(p,h){return p===h}),t.operate(function(p,h){var m={buffer:[],complete:!1},_={buffer:[],complete:!1},v=function(O){h.next(O),h.complete()},E=function(O,b){var M=n.createOperatorSubscriber(h,function(P){var D=b.buffer;0===D.length?b.complete?v(!1):O.buffer.push(P):!a(P,D.shift())&&v(!1)},function(){O.complete=!0,b.complete&&v(0===b.buffer.length),M?.unsubscribe()});return M};p.subscribe(E(m,_)),o.innerFrom(r).subscribe(E(_,m))})}},43222:function(R,c,e){"use strict";var t=this&&this.__read||function(h,m){var _="function"==typeof Symbol&&h[Symbol.iterator];if(!_)return h;var E,b,v=_.call(h),O=[];try{for(;(void 0===m||m-- >0)&&!(E=v.next()).done;)O.push(E.value)}catch(M){b={error:M}}finally{try{E&&!E.done&&(_=v.return)&&_.call(v)}finally{if(b)throw b.error}}return O},n=this&&this.__spreadArray||function(h,m){for(var _=0,v=m.length,E=h.length;_<v;_++,E++)h[E]=m[_];return h};Object.defineProperty(c,"__esModule",{value:!0}),c.share=void 0;var o=e(48767),i=e(13768),d=e(57052),r=e(89216);function p(h,m){for(var _=[],v=2;v<arguments.length;v++)_[v-2]=arguments[v];if(!0!==m){if(!1!==m){var E=new d.SafeSubscriber({next:function(){E.unsubscribe(),h()}});return o.innerFrom(m.apply(void 0,n([],t(_)))).subscribe(E)}}else h()}c.share=function a(h){void 0===h&&(h={});var m=h.connector,_=void 0===m?function(){return new i.Subject}:m,v=h.resetOnError,E=void 0===v||v,O=h.resetOnComplete,b=void 0===O||O,M=h.resetOnRefCountZero,P=void 0===M||M;return function(D){var l,C,I,g=0,B=!1,L=!1,V=function(){C?.unsubscribe(),C=void 0},Y=function(){V(),l=I=void 0,B=L=!1},X=function(){var te=l;Y(),te?.unsubscribe()};
1return r.operate(function(te,K){g++,!L&&!B&&V();var ee=I=I??_();K.add(function(){0==--g&&!L&&!B&&(C=p(X,P))}),ee.subscribe(K),!l&&g>0&&(l=new d.SafeSubscriber({next:function(ae){return ee.next(ae)},error:function(ae){L=!0,V(),C=p(Y,E,ae),ee.error(ae)},complete:function(){B=!0,V(),C=p(Y,b),ee.complete()}}),o.innerFrom(te).subscribe(l))})(D)}}},12186:(R,c,e)=>{"use strict";Object.defineProperty(c,"__esModule",{value:!0}),c.shareReplay=void 0;var t=e(93406),n=e(43222);c.shareReplay=function o(i,d,r){var a,p,h,m,_=!1;return i&&"object"==typeof i?(m=void 0===(a=i.bufferSize)?1/0:a,d=void 0===(p=i.windowTime)?1/0:p,_=void 0!==(h=i.refCount)&&h,r=i.scheduler):m=i??1/0,n.share({connector:function(){return new t.ReplaySubject(m,d,r)},resetOnError:!0,resetOnComplete:!1,resetOnRefCountZero:_})}},695:(R,c,e)=>{"use strict";Object.defineProperty(c,"__esModule",{value:!0}),c.single=void 0;var t=e(48915),n=e(61551),o=e(85477),i=e(89216),d=e(83173);c.single=function r(a){return i.operate(function(p,h){var _,m=!1,v=!1,E=0;p.subscribe(d.createOperatorSubscriber(h,function(O){v=!0,(!a||a(O,E++,p))&&(m&&h.error(new n.SequenceError("Too many matching values")),m=!0,_=O)},function(){m?(h.next(_),h.complete()):h.error(v?new o.NotFoundError("No matching values"):new t.EmptyError)}))})}},44975:(R,c,e)=>{"use strict";Object.defineProperty(c,"__esModule",{value:!0}),c.skip=void 0;var t=e(74270);c.skip=function n(o){return t.filter(function(i,d){return o<=d})}},30728:(R,c,e)=>{"use strict";Object.defineProperty(c,"__esModule",{value:!0}),c.skipLast=void 0;var t=e(77884),n=e(89216),o=e(83173);c.skipLast=function i(d){return d<=0?t.identity:n.operate(function(r,a){var p=new Array(d),h=0;return r.subscribe(o.createOperatorSubscriber(a,function(m){var _=h++;if(_<d)p[_]=m;else{var v=_%d,E=p[v];p[v]=m,a.next(E)}})),function(){p=null}})}},97409:(R,c,e)=>{"use strict";Object.defineProperty(c,"__esModule",{value:!0}),c.skipUntil=void 0;var t=e(89216),n=e(83173),o=e(48767),i=e(31);c.skipUntil=function d(r){return t.operate(function(a,p){var h=!1,m=n.createOperatorSubscriber(p,function(){m?.unsubscribe(),h=!0},i.noop);o.innerFrom(r).subscribe(m),a.subscribe(n.createOperatorSubscriber(p,function(_){return h&&p.next(_)}))})}},22863:(R,c,e)=>{"use strict";Object.defineProperty(c,"__esModule",{value:!0}),c.skipWhile=void 0;var t=e(89216),n=e(83173);c.skipWhile=function o(i){return t.operate(function(d,r){var a=!1,p=0;d.subscribe(n.createOperatorSubscriber(r,function(h){return(a||(a=!i(h,p++)))&&r.next(h)}))})}},44930:(R,c,e)=>{"use strict";Object.defineProperty(c,"__esModule",{value:!0}),c.startWith=void 0;var t=e(30509),n=e(31642),o=e(89216);c.startWith=function i(){for(var d=[],r=0;r<arguments.length;r++)d[r]=arguments[r];var a=n.popScheduler(d);return o.operate(function(p,h){(a?t.concat(d,p,a):t.concat(d,p)).subscribe(h)})}},41698:(R,c,e)=>{"use strict";Object.defineProperty(c,"__esModule",{value:!0}),c.subscribeOn=void 0;var t=e(89216);c.subscribeOn=function n(o,i){return void 0===i&&(i=0),t.operate(function(d,r){r.add(o.schedule(function(){return d.subscribe(r)},i))})}},78044:(R,c,e)=>{"use strict";Object.defineProperty(c,"__esModule",{value:!0}),c.switchAll=void 0;var t=e(90986),n=e(77884);c.switchAll=function o(){return t.switchMap(n.identity)}},90986:(R,c,e)=>{"use strict";Object.defineProperty(c,"__esModule",{value:!0}),c.switchMap=void 0;var t=e(48767),n=e(89216),o=e(83173);c.switchMap=function i(d,r){return n.operate(function(a,p){var h=null,m=0,_=!1,v=function(){return _&&!h&&p.complete()};a.subscribe(o.createOperatorSubscriber(p,function(E){h?.unsubscribe();var O=0,b=m++;t.innerFrom(d(E,b)).subscribe(h=o.createOperatorSubscriber(p,function(M){return p.next(r?r(E,M,b,O++):M)},function(){h=null,v()}))},function(){_=!0,v()}))})}},99309:(R,c,e)=>{"use strict";Object.defineProperty(c,"__esModule",{value:!0}),c.switchMapTo=void 0;var t=e(90986),n=e(37104);c.switchMapTo=function o(i,d){return n.isFunction(d)?t.switchMap(function(){return i},d):t.switchMap(function(){return i})}},49499:(R,c,e)=>{"use strict";Object.defineProperty(c,"__esModule",{value:!0}),c.switchScan=void 0;var t=e(90986),n=e(89216);c.switchScan=function o(i,d){return n.operate(function(r,a){var p=d;return t.switchMap(function(h,m){return i(p,h,m)},function(h,m){return p=m,m})(r).subscribe(a),function(){p=null}})}},1333:(R,c,e)=>{"use strict";Object.defineProperty(c,"__esModule",{value:!0}),c.take=void 0;var t=e(97406),n=e(89216),o=e(83173);c.take=function i(d){return d<=0?function(){return t.EMPTY}:n.operate(function(r,a){var p=0;r.subscribe(o.createOperatorSubscriber(a,function(h){++p<=d&&(a.next(h),d<=p&&a.complete())}))})}},48306:function(R,c,e){"use strict";var t=this&&this.__values||function(r){var a="function"==typeof Symbol&&Symbol.iterator,p=a&&r[a],h=0;if(p)return p.call(r);if(r&&"number"==typeof r.length)return{next:function(){return r&&h>
1=r.length&&(r=void 0),{value:r&&r[h++],done:!r}}};throw new TypeError(a?"Object is not iterable.":"Symbol.iterator is not defined.")};Object.defineProperty(c,"__esModule",{value:!0}),c.takeLast=void 0;var n=e(97406),o=e(89216),i=e(83173);c.takeLast=function d(r){return r<=0?function(){return n.EMPTY}:o.operate(function(a,p){var h=[];a.subscribe(i.createOperatorSubscriber(p,function(m){h.push(m),r<h.length&&h.shift()},function(){var m,_;try{for(var v=t(h),E=v.next();!E.done;E=v.next())p.next(E.value)}catch(b){m={error:b}}finally{try{E&&!E.done&&(_=v.return)&&_.call(v)}finally{if(m)throw m.error}}p.complete()},void 0,function(){h=null}))})}},85716:(R,c,e)=>{"use strict";Object.defineProperty(c,"__esModule",{value:!0}),c.takeUntil=void 0;var t=e(89216),n=e(83173),o=e(48767),i=e(31);c.takeUntil=function d(r){return t.operate(function(a,p){o.innerFrom(r).subscribe(n.createOperatorSubscriber(p,function(){return p.complete()},i.noop)),!p.closed&&a.subscribe(p)})}},39928:(R,c,e)=>{"use strict";Object.defineProperty(c,"__esModule",{value:!0}),c.takeWhile=void 0;var t=e(89216),n=e(83173);c.takeWhile=function o(i,d){return void 0===d&&(d=!1),t.operate(function(r,a){var p=0;r.subscribe(n.createOperatorSubscriber(a,function(h){var m=i(h,p++);(m||d)&&a.next(h),!m&&a.complete()}))})}},66821:(R,c,e)=>{"use strict";Object.defineProperty(c,"__esModule",{value:!0}),c.tap=void 0;var t=e(37104),n=e(89216),o=e(83173),i=e(77884);c.tap=function d(r,a,p){var h=t.isFunction(r)||a||p?{next:r,error:a,complete:p}:r;return h?n.operate(function(m,_){var v;null===(v=h.subscribe)||void 0===v||v.call(h);var E=!0;m.subscribe(o.createOperatorSubscriber(_,function(O){var b;null===(b=h.next)||void 0===b||b.call(h,O),_.next(O)},function(){var O;E=!1,null===(O=h.complete)||void 0===O||O.call(h),_.complete()},function(O){var b;E=!1,null===(b=h.error)||void 0===b||b.call(h,O),_.error(O)},function(){var O,b;E&&(null===(O=h.unsubscribe)||void 0===O||O.call(h)),null===(b=h.finalize)||void 0===b||b.call(h)}))}):i.identity}},14330:(R,c,e)=>{"use strict";Object.defineProperty(c,"__esModule",{value:!0}),c.throttle=void 0;var t=e(89216),n=e(83173),o=e(48767);c.throttle=function i(d,r){return t.operate(function(a,p){var h=r??{},m=h.leading,_=void 0===m||m,v=h.trailing,E=void 0!==v&&v,O=!1,b=null,M=null,P=!1,D=function(){M?.unsubscribe(),M=null,E&&(I(),P&&p.complete())},l=function(){M=null,P&&p.complete()},C=function(g){return M=o.innerFrom(d(g)).subscribe(n.createOperatorSubscriber(p,D,l))},I=function(){if(O){O=!1;var g=b;b=null,p.next(g),!P&&C(g)}};a.subscribe(n.createOperatorSubscriber(p,function(g){O=!0,b=g,(!M||M.closed)&&(_?I():C(g))},function(){P=!0,(!(E&&O&&M)||M.closed)&&p.complete()}))})}},54029:(R,c,e)=>{"use strict";Object.defineProperty(c,"__esModule",{value:!0}),c.throttleTime=void 0;var t=e(64006),n=e(14330),o=e(33271);c.throttleTime=function i(d,r,a){void 0===r&&(r=t.asyncScheduler);var p=o.timer(d,r);return n.throttle(function(){return p},a)}},99194:(R,c,e)=>{"use strict";Object.defineProperty(c,"__esModule",{value:!0}),c.throwIfEmpty=void 0;var t=e(48915),n=e(89216),o=e(83173);function d(){return new t.EmptyError}c.throwIfEmpty=function i(r){return void 0===r&&(r=d),n.operate(function(a,p){var h=!1;a.subscribe(o.createOperatorSubscriber(p,function(m){h=!0,p.next(m)},function(){return h?p.complete():p.error(r())}))})}},5904:(R,c,e)=>{"use strict";Object.defineProperty(c,"__esModule",{value:!0}),c.TimeInterval=c.timeInterval=void 0;var t=e(64006),n=e(89216),o=e(83173);c.timeInterval=function i(r){return void 0===r&&(r=t.asyncScheduler),n.operate(function(a,p){var h=r.now();a.subscribe(o.createOperatorSubscriber(p,function(m){var _=r.now(),v=_-h;h=_,p.next(new d(m,v))}))})};var d=function r(a,p){this.value=a,this.interval=p};c.TimeInterval=d},75001:(R,c,e)=>{"use strict";Object.defineProperty(c,"__esModule",{value:!0}),c.timeout=c.TimeoutError=void 0;var t=e(64006),n=e(67323),o=e(89216),i=e(48767),d=e(49703),r=e(83173),a=e(17238);function h(m){throw new c.TimeoutError(m)}c.TimeoutError=d.createErrorClass(function(m){return function(v){void 0===v&&(v=null),m(this),this.message="Timeout has occurred",this.name="TimeoutError",this.info=v}}),c.timeout=function p(m,_){var v=n.isValidDate(m)?{first:m}:"number"==typeof m?{each:m}:m,E=v.first,O=v.each,b=v.with,M=void 0===b?h:b,P=v.scheduler,D=void 0===P?_??t.asyncScheduler:P,l=v.meta,C=void 0===l?null:l;if(null==E&&null==O)throw new TypeError("No timeout provided.");return o.operate(function(I,g){var B,L,V=null,Y=0,X=function(te){L=a.executeSchedule(g,D,function(){try{B.unsubscribe(),i.innerFrom(M({meta:C,lastValue:V,seen:Y})).subscribe(g)}catch(K){g.error(K)}},te)};B=I.subscribe(r.createOperatorSubscriber(g,function(te){L?.unsubscribe(),Y++,g.next(V=te),O>0&&X(O)},void 0,void 0,function(){L?.closed||L?.unsubscribe(),V=null}
1)),!Y&&X(null!=E?"number"==typeof E?E:+E-D.now():O)})}},28308:(R,c,e)=>{"use strict";Object.defineProperty(c,"__esModule",{value:!0}),c.timeoutWith=void 0;var t=e(64006),n=e(67323),o=e(75001);c.timeoutWith=function i(d,r,a){var p,h,m;if(a=a??t.async,n.isValidDate(d)?p=d:"number"==typeof d&&(h=d),!r)throw new TypeError("No observable provided to switch to");if(m=function(){return r},null==p&&null==h)throw new TypeError("No timeout provided.");return o.timeout({first:p,each:h,scheduler:a,with:m})}},20250:(R,c,e)=>{"use strict";Object.defineProperty(c,"__esModule",{value:!0}),c.timestamp=void 0;var t=e(68354),n=e(70752);c.timestamp=function o(i){return void 0===i&&(i=t.dateTimestampProvider),n.map(function(d){return{value:d,timestamp:i.now()}})}},42976:(R,c,e)=>{"use strict";Object.defineProperty(c,"__esModule",{value:!0}),c.toArray=void 0;var t=e(98587),n=e(89216),o=function(d,r){return d.push(r),d};c.toArray=function i(){return n.operate(function(d,r){t.reduce(o,[])(d).subscribe(r)})}},79374:(R,c,e)=>{"use strict";Object.defineProperty(c,"__esModule",{value:!0}),c.window=void 0;var t=e(13768),n=e(89216),o=e(83173),i=e(31),d=e(48767);c.window=function r(a){return n.operate(function(p,h){var m=new t.Subject;h.next(m.asObservable());var _=function(v){m.error(v),h.error(v)};return p.subscribe(o.createOperatorSubscriber(h,function(v){return m?.next(v)},function(){m.complete(),h.complete()},_)),d.innerFrom(a).subscribe(o.createOperatorSubscriber(h,function(){m.complete(),h.next(m=new t.Subject)},i.noop,_)),function(){m?.unsubscribe(),m=null}})}},68427:function(R,c,e){"use strict";var t=this&&this.__values||function(r){var a="function"==typeof Symbol&&Symbol.iterator,p=a&&r[a],h=0;if(p)return p.call(r);if(r&&"number"==typeof r.length)return{next:function(){return r&&h>=r.length&&(r=void 0),{value:r&&r[h++],done:!r}}};throw new TypeError(a?"Object is not iterable.":"Symbol.iterator is not defined.")};Object.defineProperty(c,"__esModule",{value:!0}),c.windowCount=void 0;var n=e(13768),o=e(89216),i=e(83173);c.windowCount=function d(r,a){void 0===a&&(a=0);var p=a>0?a:r;return o.operate(function(h,m){var _=[new n.Subject],E=0;m.next(_[0].asObservable()),h.subscribe(i.createOperatorSubscriber(m,function(O){var b,M;try{for(var P=t(_),D=P.next();!D.done;D=P.next())D.value.next(O)}catch(g){b={error:g}}finally{try{D&&!D.done&&(M=P.return)&&M.call(P)}finally{if(b)throw b.error}}var C=E-r+1;if(C>=0&&C%p==0&&_.shift().complete(),++E%p==0){var I=new n.Subject;_.push(I),m.next(I.asObservable())}},function(){for(;_.length>0;)_.shift().complete();m.complete()},function(O){for(;_.length>0;)_.shift().error(O);m.error(O)},function(){_=null}))})}},22358:(R,c,e)=>{"use strict";Object.defineProperty(c,"__esModule",{value:!0}),c.windowTime=void 0;var t=e(13768),n=e(64006),o=e(76448),i=e(89216),d=e(83173),r=e(55137),a=e(31642),p=e(17238);c.windowTime=function h(m){for(var _,v,E=[],O=1;O<arguments.length;O++)E[O-1]=arguments[O];var b=null!==(_=a.popScheduler(E))&&void 0!==_?_:n.asyncScheduler,M=null!==(v=E[0])&&void 0!==v?v:null,P=E[1]||1/0;return i.operate(function(D,l){var C=[],I=!1,g=function(Y){var te=Y.subs;Y.window.complete(),te.unsubscribe(),r.arrRemove(C,Y),I&&B()},B=function(){if(C){var Y=new o.Subscription;l.add(Y);var X=new t.Subject,te={window:X,subs:Y,seen:0};C.push(te),l.next(X.asObservable()),p.executeSchedule(Y,b,function(){return g(te)},m)}};null!==M&&M>=0?p.executeSchedule(l,b,B,M,!0):I=!0,B();var L=function(Y){return C.slice().forEach(Y)},V=function(Y){L(function(X){return Y(X.window)}),Y(l),l.unsubscribe()};return D.subscribe(d.createOperatorSubscriber(l,function(Y){L(function(X){X.window.next(Y),P<=++X.seen&&g(X)})},function(){return V(function(Y){return Y.complete()})},function(Y){return V(function(X){return X.error(Y)})})),function(){C=null}})}},46464:function(R,c,e){"use strict";var t=this&&this.__values||function(m){var _="function"==typeof Symbol&&Symbol.iterator,v=_&&m[_],E=0;if(v)return v.call(m);if(m&&"number"==typeof m.length)return{next:function(){return m&&E>=m.length&&(m=void 0),{value:m&&m[E++],done:!m}}};throw new TypeError(_?"Object is not iterable.":"Symbol.iterator is not defined.")};Object.defineProperty(c,"__esModule",{value:!0}),c.windowToggle=void 0;
1var n=e(13768),o=e(76448),i=e(89216),d=e(48767),r=e(83173),a=e(31),p=e(55137);c.windowToggle=function h(m,_){return i.operate(function(v,E){var O=[],b=function(M){for(;0<O.length;)O.shift().error(M);E.error(M)};d.innerFrom(m).subscribe(r.createOperatorSubscriber(E,function(M){var P=new n.Subject;O.push(P);var C,D=new o.Subscription;try{C=d.innerFrom(_(M))}catch(I){return void b(I)}E.next(P.asObservable()),D.add(C.subscribe(r.createOperatorSubscriber(E,function(){p.arrRemove(O,P),P.complete(),D.unsubscribe()},a.noop,b)))},a.noop)),v.subscribe(r.createOperatorSubscriber(E,function(M){var P,D,l=O.slice();try{for(var C=t(l),I=C.next();!I.done;I=C.next())I.value.next(M)}catch(B){P={error:B}}finally{try{I&&!I.done&&(D=C.return)&&D.call(C)}finally{if(P)throw P.error}}},function(){for(;0<O.length;)O.shift().complete();E.complete()},b,function(){for(;0<O.length;)O.shift().unsubscribe()}))})}},55424:(R,c,e)=>{"use strict";Object.defineProperty(c,"__esModule",{value:!0}),c.windowWhen=void 0;var t=e(13768),n=e(89216),o=e(83173),i=e(48767);c.windowWhen=function d(r){return n.operate(function(a,p){var h,m,_=function(E){h.error(E),p.error(E)},v=function(){var E;m?.unsubscribe(),h?.complete(),h=new t.Subject,p.next(h.asObservable());try{E=i.innerFrom(r())}catch(O){return void _(O)}E.subscribe(m=o.createOperatorSubscriber(p,v,v,_))};v(),a.subscribe(o.createOperatorSubscriber(p,function(E){return h.next(E)},function(){h.complete(),p.complete()},_,function(){m?.unsubscribe(),h=null}))})}},135:function(R,c,e){"use strict";var t=this&&this.__read||function(m,_){var v="function"==typeof Symbol&&m[Symbol.iterator];if(!v)return m;var O,M,E=v.call(m),b=[];try{for(;(void 0===_||_-- >0)&&!(O=E.next()).done;)b.push(O.value)}catch(P){M={error:P}}finally{try{O&&!O.done&&(v=E.return)&&v.call(E)}finally{if(M)throw M.error}}return b},n=this&&this.__spreadArray||function(m,_){for(var v=0,E=_.length,O=m.length;v<E;v++,O++)m[O]=_[v];return m};Object.defineProperty(c,"__esModule",{value:!0}),c.withLatestFrom=void 0;var o=e(89216),i=e(83173),d=e(48767),r=e(77884),a=e(31),p=e(31642);c.withLatestFrom=function h(){for(var m=[],_=0;_<arguments.length;_++)m[_]=arguments[_];var v=p.popResultSelector(m);return o.operate(function(E,O){for(var b=m.length,M=new Array(b),P=m.map(function(){return!1}),D=!1,l=function(I){d.innerFrom(m[I]).subscribe(i.createOperatorSubscriber(O,function(g){M[I]=g,!D&&!P[I]&&(P[I]=!0,(D=P.every(r.identity))&&(P=null))},a.noop))},C=0;C<b;C++)l(C);E.subscribe(i.createOperatorSubscriber(O,function(I){if(D){var g=n([I],t(M));O.next(v?v.apply(void 0,n([],t(g))):g)}}))})}},45573:function(R,c,e){"use strict";var t=this&&this.__read||function(r,a){var p="function"==typeof Symbol&&r[Symbol.iterator];if(!p)return r;var m,v,h=p.call(r),_=[];try{for(;(void 0===a||a-- >0)&&!(m=h.next()).done;)_.push(m.value)}catch(E){v={error:E}}finally{try{m&&!m.done&&(p=h.return)&&p.call(h)}finally{if(v)throw v.error}}return _},n=this&&this.__spreadArray||function(r,a){for(var p=0,h=a.length,m=r.length;p<h;p++,m++)r[m]=a[p];return r};Object.defineProperty(c,"__esModule",{value:!0}),c.zip=void 0;var o=e(14842),i=e(89216);c.zip=function d(){for(var r=[],a=0;a<arguments.length;a++)r[a]=arguments[a];return i.operate(function(p,h){o.zip.apply(void 0,n([p],t(r))).subscribe(h)})}},78101:(R,c,e)=>{"use strict";Object.defineProperty(c,"__esModule",{value:!0}),c.zipAll=void 0;var t=e(14842),n=e(91277);c.zipAll=function o(i){return n.joinAllInternals(t.zip,i)}},59411:function(R,c,e){"use strict";var t=this&&this.__read||function(d,r){var a="function"==typeof Symbol&&d[Symbol.iterator];if(!a)return d;var h,_,p=a.call(d),m=[];try{for(;(void 0===r||r-- >0)&&!(h=p.next()).done;)m.push(h.value)}catch(v){_={error:v}}finally{try{h&&!h.done&&(a=p.return)&&a.call(p)}finally{if(_)throw _.error}}return m},n=this&&this.__spreadArray||function(d,r){for(var a=0,p=r.length,h=d.length;a<p;a++,h++)d[h]=r[a];return d};Object.defineProperty(c,"__esModule",{value:!0}),c.zipWith=void 0;var o=e(45573);c.zipWith=function i(){for(var d=[],r=0;r<arguments.length;r++)d[r]=arguments[r];return o.zip.apply(void 0,n([],t(d)))}},59611:(R,c,e)=>{"use strict";Object.defineProperty(c,"__esModule",{value:!0}),c.scheduleArray=void 0;var t=e(55821);c.scheduleArray=function n(o,i){return new t.Observable(function(d){var r=0;return i.schedule(function(){r===o.length?d.complete():(d.next(o[r++]),d.closed||this.schedule())})})}},23009:(R,c,e)=>{"use strict";Object.defineProperty(c,"__esModule",{value:!0}),c.scheduleAsyncIterable=void 0;var t=e(55821),n=e(17238);c.scheduleAsyncIterable=function o(i,d){if(!i)throw new Error("Iterable cannot be null");return new t.Observable(function(r){n.executeSchedule(r,d,function(){var a=i[Symbol.asyncIterator]();n.executeSchedule(r,d,function(){a.next().then(function(p){p.done?r.complete():r.next(p.value)})},0,!0)})})}},39049:(R,c,e)=>{"use strict";Object.defineProperty(c,"__esModule",{value:!0}),c.scheduleIterable=void 0;var t=e(55821),n=e(34260),o=e(37104),i=e(17238);c.scheduleIterable=function d(r,a){return new t.Observable(function(p){var h;return i.executeSchedule(p,a,function(){h=r[n.iterator](),i.executeSchedule(p,a,function(){var m,_,v;try{_=(m=h.next()).value,v=m.done}catch(E){return void p.error(E)}v?p.complete():p.next(_)},0,!0)}),function(){return o.isFunction(h?.return)&&h.return()}})}}
1,7767:(R,c,e)=>{"use strict";Object.defineProperty(c,"__esModule",{value:!0}),c.scheduleObservable=void 0;var t=e(48767),n=e(94928),o=e(41698);c.scheduleObservable=function i(d,r){return t.innerFrom(d).pipe(o.subscribeOn(r),n.observeOn(r))}},22247:(R,c,e)=>{"use strict";Object.defineProperty(c,"__esModule",{value:!0}),c.schedulePromise=void 0;var t=e(48767),n=e(94928),o=e(41698);c.schedulePromise=function i(d,r){return t.innerFrom(d).pipe(o.subscribeOn(r),n.observeOn(r))}},93958:(R,c,e)=>{"use strict";Object.defineProperty(c,"__esModule",{value:!0}),c.scheduleReadableStreamLike=void 0;var t=e(23009),n=e(87128);c.scheduleReadableStreamLike=function o(i,d){return t.scheduleAsyncIterable(n.readableStreamLikeToAsyncGenerator(i),d)}},9341:(R,c,e)=>{"use strict";Object.defineProperty(c,"__esModule",{value:!0}),c.scheduled=void 0;var t=e(7767),n=e(22247),o=e(59611),i=e(39049),d=e(23009),r=e(17454),a=e(25050),p=e(70697),h=e(5431),m=e(26175),_=e(36870),v=e(87128),E=e(93958);c.scheduled=function O(b,M){if(null!=b){if(r.isInteropObservable(b))return t.scheduleObservable(b,M);if(p.isArrayLike(b))return o.scheduleArray(b,M);if(a.isPromise(b))return n.schedulePromise(b,M);if(m.isAsyncIterable(b))return d.scheduleAsyncIterable(b,M);if(h.isIterable(b))return i.scheduleIterable(b,M);if(v.isReadableStreamLike(b))return E.scheduleReadableStreamLike(b,M)}throw _.createInvalidObservableTypeError(b)}},91394:function(R,c,e){"use strict";var i,t=this&&this.__extends||(i=function(d,r){return(i=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(a,p){a.__proto__=p}||function(a,p){for(var h in p)Object.prototype.hasOwnProperty.call(p,h)&&(a[h]=p[h])})(d,r)},function(d,r){if("function"!=typeof r&&null!==r)throw new TypeError("Class extends value "+String(r)+" is not a constructor or null");function a(){this.constructor=d}i(d,r),d.prototype=null===r?Object.create(r):(a.prototype=r.prototype,new a)});Object.defineProperty(c,"__esModule",{value:!0}),c.Action=void 0;var o=function(i){function d(r,a){return i.call(this)||this}return t(d,i),d.prototype.schedule=function(r,a){return void 0===a&&(a=0),this},d}(e(76448).Subscription);c.Action=o},90275:function(R,c,e){"use strict";var d,t=this&&this.__extends||(d=function(r,a){return(d=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(p,h){p.__proto__=h}||function(p,h){for(var m in h)Object.prototype.hasOwnProperty.call(h,m)&&(p[m]=h[m])})(r,a)},function(r,a){if("function"!=typeof a&&null!==a)throw new TypeError("Class extends value "+String(a)+" is not a constructor or null");function p(){this.constructor=r}d(r,a),r.prototype=null===a?Object.create(a):(p.prototype=a.prototype,new p)});Object.defineProperty(c,"__esModule",{value:!0}),c.AnimationFrameAction=void 0;var n=e(34723),o=e(86343),i=function(d){function r(a,p){var h=d.call(this,a,p)||this;return h.scheduler=a,h.work=p,h}return t(r,d),r.prototype.requestAsyncId=function(a,p,h){return void 0===h&&(h=0),null!==h&&h>0?d.prototype.requestAsyncId.call(this,a,p,h):(a.actions.push(this),a._scheduled||(a._scheduled=o.animationFrameProvider.requestAnimationFrame(function(){return a.flush(void 0)})))},r.prototype.recycleAsyncId=function(a,p,h){var m;if(void 0===h&&(h=0),null!=h?h>0:this.delay>0)return d.prototype.recycleAsyncId.call(this,a,p,h);var _=a.actions;null!=p&&(null===(m=_[_.length-1])||void 0===m?void 0:m.id)!==p&&(o.animationFrameProvider.cancelAnimationFrame(p),a._scheduled=void 0)},r}(n.AsyncAction);c.AnimationFrameAction=i},13625:function(R,c,e){"use strict";var i,t=this&&this.__extends||(i=function(d,r){return(i=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(a,p){a.__proto__=p}||function(a,p){for(var h in p)Object.prototype.hasOwnProperty.call(p,h)&&(a[h]=p[h])})(d,r)},function(d,r){if("function"!=typeof r&&null!==r)throw new TypeError("Class extends value "+String(r)+" is not a constructor or null");function a(){this.constructor=d}i(d,r),d.prototype=null===r?Object.create(r):(a.prototype=r.prototype,new a)});Object.defineProperty(c,"__esModule",{value:!0}),c.AnimationFrameScheduler=void 0;var o=function(i){function d(){return null!==i&&i.apply(this,arguments)||this}return t(d,i),d.prototype.flush=function(r){this._active=!0;var a=this._scheduled;this._scheduled=void 0;var h,p=this.actions;r=r||p.shift();do{if(h=r.execute(r.state,r.delay))break}while((r=p[0])&&r.id===a&&p.shift());if(this._active=!1,h){for(;(r=p[0])&&r.id===a&&p.shift();)r.unsubscribe();throw h}},d}(e(56216).AsyncScheduler);
1c.AnimationFrameScheduler=o},57046:function(R,c,e){"use strict";var d,t=this&&this.__extends||(d=function(r,a){return(d=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(p,h){p.__proto__=h}||function(p,h){for(var m in h)Object.prototype.hasOwnProperty.call(h,m)&&(p[m]=h[m])})(r,a)},function(r,a){if("function"!=typeof a&&null!==a)throw new TypeError("Class extends value "+String(a)+" is not a constructor or null");function p(){this.constructor=r}d(r,a),r.prototype=null===a?Object.create(a):(p.prototype=a.prototype,new p)});Object.defineProperty(c,"__esModule",{value:!0}),c.AsapAction=void 0;var n=e(34723),o=e(97766),i=function(d){function r(a,p){var h=d.call(this,a,p)||this;return h.scheduler=a,h.work=p,h}return t(r,d),r.prototype.requestAsyncId=function(a,p,h){return void 0===h&&(h=0),null!==h&&h>0?d.prototype.requestAsyncId.call(this,a,p,h):(a.actions.push(this),a._scheduled||(a._scheduled=o.immediateProvider.setImmediate(a.flush.bind(a,void 0))))},r.prototype.recycleAsyncId=function(a,p,h){var m;if(void 0===h&&(h=0),null!=h?h>0:this.delay>0)return d.prototype.recycleAsyncId.call(this,a,p,h);var _=a.actions;null!=p&&(null===(m=_[_.length-1])||void 0===m?void 0:m.id)!==p&&(o.immediateProvider.clearImmediate(p),a._scheduled===p&&(a._scheduled=void 0))},r}(n.AsyncAction);c.AsapAction=i},73706:function(R,c,e){"use strict";var i,t=this&&this.__extends||(i=function(d,r){return(i=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(a,p){a.__proto__=p}||function(a,p){for(var h in p)Object.prototype.hasOwnProperty.call(p,h)&&(a[h]=p[h])})(d,r)},function(d,r){if("function"!=typeof r&&null!==r)throw new TypeError("Class extends value "+String(r)+" is not a constructor or null");function a(){this.constructor=d}i(d,r),d.prototype=null===r?Object.create(r):(a.prototype=r.prototype,new a)});Object.defineProperty(c,"__esModule",{value:!0}),c.AsapScheduler=void 0;var o=function(i){function d(){return null!==i&&i.apply(this,arguments)||this}return t(d,i),d.prototype.flush=function(r){this._active=!0;var a=this._scheduled;this._scheduled=void 0;var h,p=this.actions;r=r||p.shift();do{if(h=r.execute(r.state,r.delay))break}while((r=p[0])&&r.id===a&&p.shift());if(this._active=!1,h){for(;(r=p[0])&&r.id===a&&p.shift();)r.unsubscribe();throw h}},d}(e(56216).AsyncScheduler);c.AsapScheduler=o},34723:function(R,c,e){"use strict";var r,t=this&&this.__extends||(r=function(a,p){return(r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(h,m){h.__proto__=m}||function(h,m){for(var _ in m)Object.prototype.hasOwnProperty.call(m,_)&&(h[_]=m[_])})(a,p)},function(a,p){if("function"!=typeof p&&null!==p)throw new TypeError("Class extends value "+String(p)+" is not a constructor or null");function h(){this.constructor=a}r(a,p),a.prototype=null===p?Object.create(p):(h.prototype=p.prototype,new h)});Object.defineProperty(c,"__esModule",{value:!0}),c.AsyncAction=void 0;var n=e(91394),o=e(42444),i=e(55137),d=function(r){function a(p,h){var m=r.call(this,p,h)||this;return m.scheduler=p,m.work=h,m.pending=!1,m}return t(a,r),a.prototype.schedule=function(p,h){var m;if(void 0===h&&(h=0),this.closed)return this;this.state=p;var _=this.id,v=this.scheduler;return null!=_&&(this.id=this.recycleAsyncId(v,_,h)),this.pending=!0,this.delay=h,this.id=null!==(m=this.id)&&void 0!==m?m:this.requestAsyncId(v,this.id,h),this},a.prototype.requestAsyncId=function(p,h,m){return void 0===m&&(m=0),o.intervalProvider.setInterval(p.flush.bind(p,this),m)},a.prototype.recycleAsyncId=function(p,h,m){if(void 0===m&&(m=0),null!=m&&this.delay===m&&!1===this.pending)return h;null!=h&&o.intervalProvider.clearInterval(h)},a.prototype.execute=function(p,h){if(this.closed)return new Error("executing a cancelled action");this.pending=!1;var m=this._execute(p,h);if(m)return m;!1===this.pending&&null!=this.id&&(this.id=this.recycleAsyncId(this.scheduler,this.id,null))},a.prototype._execute=function(p,h){var _,m=!1;try{this.work(p)}catch(v){m=!0,_=v||new Error("Scheduled action threw falsy error")}if(m)return this.unsubscribe(),_},a.prototype.unsubscribe=function(){if(!this.closed){var h=this.id,m=this.scheduler,_=m.actions;
1this.work=this.state=this.scheduler=null,this.pending=!1,i.arrRemove(_,this),null!=h&&(this.id=this.recycleAsyncId(m,h,null)),this.delay=null,r.prototype.unsubscribe.call(this)}},a}(n.Action);c.AsyncAction=d},56216:function(R,c,e){"use strict";var i,t=this&&this.__extends||(i=function(d,r){return(i=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(a,p){a.__proto__=p}||function(a,p){for(var h in p)Object.prototype.hasOwnProperty.call(p,h)&&(a[h]=p[h])})(d,r)},function(d,r){if("function"!=typeof r&&null!==r)throw new TypeError("Class extends value "+String(r)+" is not a constructor or null");function a(){this.constructor=d}i(d,r),d.prototype=null===r?Object.create(r):(a.prototype=r.prototype,new a)});Object.defineProperty(c,"__esModule",{value:!0}),c.AsyncScheduler=void 0;var n=e(72716),o=function(i){function d(r,a){void 0===a&&(a=n.Scheduler.now);var p=i.call(this,r,a)||this;return p.actions=[],p._active=!1,p}return t(d,i),d.prototype.flush=function(r){var a=this.actions;if(this._active)a.push(r);else{var p;this._active=!0;do{if(p=r.execute(r.state,r.delay))break}while(r=a.shift());if(this._active=!1,p){for(;r=a.shift();)r.unsubscribe();throw p}}},d}(n.Scheduler);c.AsyncScheduler=o},34954:function(R,c,e){"use strict";var i,t=this&&this.__extends||(i=function(d,r){return(i=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(a,p){a.__proto__=p}||function(a,p){for(var h in p)Object.prototype.hasOwnProperty.call(p,h)&&(a[h]=p[h])})(d,r)},function(d,r){if("function"!=typeof r&&null!==r)throw new TypeError("Class extends value "+String(r)+" is not a constructor or null");function a(){this.constructor=d}i(d,r),d.prototype=null===r?Object.create(r):(a.prototype=r.prototype,new a)});Object.defineProperty(c,"__esModule",{value:!0}),c.QueueAction=void 0;var o=function(i){function d(r,a){var p=i.call(this,r,a)||this;return p.scheduler=r,p.work=a,p}return t(d,i),d.prototype.schedule=function(r,a){return void 0===a&&(a=0),a>0?i.prototype.schedule.call(this,r,a):(this.delay=a,this.state=r,this.scheduler.flush(this),this)},d.prototype.execute=function(r,a){return a>0||this.closed?i.prototype.execute.call(this,r,a):this._execute(r,a)},d.prototype.requestAsyncId=function(r,a,p){return void 0===p&&(p=0),null!=p&&p>0||null==p&&this.delay>0?i.prototype.requestAsyncId.call(this,r,a,p):(r.flush(this),0)},d}(e(34723).AsyncAction);c.QueueAction=o},10345:function(R,c,e){"use strict";var i,t=this&&this.__extends||(i=function(d,r){return(i=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(a,p){a.__proto__=p}||function(a,p){for(var h in p)Object.prototype.hasOwnProperty.call(p,h)&&(a[h]=p[h])})(d,r)},function(d,r){if("function"!=typeof r&&null!==r)throw new TypeError("Class extends value "+String(r)+" is not a constructor or null");function a(){this.constructor=d}i(d,r),d.prototype=null===r?Object.create(r):(a.prototype=r.prototype,new a)});Object.defineProperty(c,"__esModule",{value:!0}),c.QueueScheduler=void 0;var o=function(i){function d(){return null!==i&&i.apply(this,arguments)||this}return t(d,i),d}(e(56216).AsyncScheduler);c.QueueScheduler=o},12018:function(R,c,e){"use strict";var a,t=this&&this.__extends||(a=function(p,h){return(a=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(m,_){m.__proto__=_}||function(m,_){for(var v in _)Object.prototype.hasOwnProperty.call(_,v)&&(m[v]=_[v])})(p,h)},function(p,h){if("function"!=typeof h&&null!==h)throw new TypeError("Class extends value "+String(h)+" is not a constructor or null");function m(){this.constructor=p}a(p,h),p.prototype=null===h?Object.create(h):(m.prototype=h.prototype,new m)});Object.defineProperty(c,"__esModule",{value:!0}
1),c.VirtualAction=c.VirtualTimeScheduler=void 0;var n=e(34723),o=e(76448),d=function(a){function p(h,m){void 0===h&&(h=r),void 0===m&&(m=1/0);var _=a.call(this,h,function(){return _.frame})||this;return _.maxFrames=m,_.frame=0,_.index=-1,_}return t(p,a),p.prototype.flush=function(){for(var v,E,m=this.actions,_=this.maxFrames;(E=m[0])&&E.delay<=_&&(m.shift(),this.frame=E.delay,!(v=E.execute(E.state,E.delay))););if(v){for(;E=m.shift();)E.unsubscribe();throw v}},p.frameTimeFactor=10,p}(e(56216).AsyncScheduler);c.VirtualTimeScheduler=d;var r=function(a){function p(h,m,_){void 0===_&&(_=h.index+=1);var v=a.call(this,h,m)||this;return v.scheduler=h,v.work=m,v.index=_,v.active=!0,v.index=h.index=_,v}return t(p,a),p.prototype.schedule=function(h,m){if(void 0===m&&(m=0),Number.isFinite(m)){if(!this.id)return a.prototype.schedule.call(this,h,m);this.active=!1;var _=new p(this.scheduler,this.work);return this.add(_),_.schedule(h,m)}return o.Subscription.EMPTY},p.prototype.requestAsyncId=function(h,m,_){void 0===_&&(_=0),this.delay=h.frame+_;var v=h.actions;return v.push(this),v.sort(p.sortActions),1},p.prototype.recycleAsyncId=function(h,m,_){void 0===_&&(_=0)},p.prototype._execute=function(h,m){if(!0===this.active)return a.prototype._execute.call(this,h,m)},p.sortActions=function(h,m){return h.delay===m.delay?h.index===m.index?0:h.index>m.index?1:-1:h.delay>m.delay?1:-1},p}(n.AsyncAction);c.VirtualAction=r},91906:(R,c,e)=>{"use strict";Object.defineProperty(c,"__esModule",{value:!0}),c.animationFrame=c.animationFrameScheduler=void 0;var t=e(90275),n=e(13625);c.animationFrameScheduler=new n.AnimationFrameScheduler(t.AnimationFrameAction),c.animationFrame=c.animationFrameScheduler},86343:function(R,c,e){"use strict";var t=this&&this.__read||function(i,d){var r="function"==typeof Symbol&&i[Symbol.iterator];if(!r)return i;var p,m,a=r.call(i),h=[];try{for(;(void 0===d||d-- >0)&&!(p=a.next()).done;)h.push(p.value)}catch(_){m={error:_}}finally{try{p&&!p.done&&(r=a.return)&&r.call(a)}finally{if(m)throw m.error}}return h},n=this&&this.__spreadArray||function(i,d){for(var r=0,a=d.length,p=i.length;r<a;r++,p++)i[p]=d[r];return i};Object.defineProperty(c,"__esModule",{value:!0}),c.animationFrameProvider=void 0;var o=e(76448);c.animationFrameProvider={schedule:function(i){var d=requestAnimationFrame,r=cancelAnimationFrame,a=c.animationFrameProvider.delegate;a&&(d=a.requestAnimationFrame,r=a.cancelAnimationFrame);var p=d(function(h){r=void 0,i(h)});return new o.Subscription(function(){return r?.(p)})},requestAnimationFrame:function(){for(var i=[],d=0;d<arguments.length;d++)i[d]=arguments[d];return(c.animationFrameProvider.delegate?.requestAnimationFrame||requestAnimationFrame).apply(void 0,n([],t(i)))},cancelAnimationFrame:function(){for(var i=[],d=0;d<arguments.length;d++)i[d]=arguments[d];return(c.animationFrameProvider.delegate?.cancelAnimationFrame||cancelAnimationFrame).apply(void 0,n([],t(i)))},delegate:void 0}},71212:(R,c,e)=>{"use strict";Object.defineProperty(c,"__esModule",{value:!0}),c.asap=c.asapScheduler=void 0;var t=e(57046),n=e(73706);c.asapScheduler=new n.AsapScheduler(t.AsapAction),c.asap=c.asapScheduler},64006:(R,c,e)=>{"use strict";Object.defineProperty(c,"__esModule",{value:!0}),c.async=c.asyncScheduler=void 0;var t=e(34723),n=e(56216);c.asyncScheduler=new n.AsyncScheduler(t.AsyncAction),c.async=c.asyncScheduler},68354:(R,c)=>{"use strict";Object.defineProperty(c,"__esModule",{value:!0}),c.dateTimestampProvider=void 0,c.dateTimestampProvider={now:function(){return(c.dateTimestampProvider.delegate||Date).now()},delegate:void 0}},97766:function(R,c,e){"use strict";var t=this&&this.__read||function(r,a){var p="function"==typeof Symbol&&r[Symbol.iterator];if(!p)return r;var m,v,h=p.call(r),_=[];try{for(;(void 0===a||a-- >0)&&!(m=h.next()).done;)_.push(m.value)}catch(E){v={error:E}}finally{try{m&&!m.done&&(p=h.return)&&p.call(h)}finally{if(v)throw v.error}}return _},n=this&&this.__spreadArray||function(r,a){for(var p=0,h=a.length,m=r.length;p<h;p++,m++)r[m]=a[p];return r};Object.defineProperty(c,"__esModule",{value:!0}),c.immediateProvider=void 0;var o=e(40349),i=o.Immediate.setImmediate,d=o.Immediate.clearImmediate;c.immediateProvider={setImmediate:function(){for(var r=[],a=0;a<arguments.length;a++)r[a]=arguments[a];return(c.immediateProvider.delegate?.setImmediate||i).apply(void 0,n([],t(r)))},clearImmediate:function(r){return(c.immediateProvider.delegate?.clearImmediate||d)(r)},delegate:void 0}},42444:function(R,c){"use strict";var e=this&&this.__read||function(n,o){var i="function"==typeof Symbol&&n[Symbol.iterator];if(!i)return n;var r,p,d=i.call(n),a=[];try{for(;(void 0===o||o-- >0)&&!(r=d.next()).done;)a.push(r.value)}catch(h){p={error:h}}finally{try{r&&!r.done&&(i=d.return)&&i.call(d)}finally{if(p)throw p.error}}return a},t=this&&this.__spreadArray||function(n,o){for(var i=0,d=o.length,r=n.length;i<d;i++,r++)n[r]=o[i];return n};Object.defineProperty(c,"__esModule",{value:!0}),c.intervalProvider=void 0,c.intervalProvider={setInterval:function(n,o){for(var i=[],d=2;d<arguments.length;d++)i[d-2]=arguments[d];var r=c.intervalProvider.delegate;return r?.setInterval?r.setInterval.apply(r,t([n,o],e(i))):setInterval.apply(void 0,t([n,o],e(i)))},clearInterval:function(n){return(c.intervalProvider.delegate?.clearInterval||clearInterval)(n)},delegate:void 0}},61038:(R,c)=>{"use strict";Object.defineProperty(c,"__esModule",{value:!0}),c.performanceTimestampProvider=void 0,c.performanceTimestampProvider={now:function(){return(c.performanceTimestampProvider.delegate||performance).now()},delegate:void 0}},65668:(R,c,e)=>{"use strict";Object.defineProperty(c,"__esModule",{value:!0}
1),c.queue=c.queueScheduler=void 0;var t=e(34954),n=e(10345);c.queueScheduler=new n.QueueScheduler(t.QueueAction),c.queue=c.queueScheduler},33914:function(R,c){"use strict";var e=this&&this.__read||function(n,o){var i="function"==typeof Symbol&&n[Symbol.iterator];if(!i)return n;var r,p,d=i.call(n),a=[];try{for(;(void 0===o||o-- >0)&&!(r=d.next()).done;)a.push(r.value)}catch(h){p={error:h}}finally{try{r&&!r.done&&(i=d.return)&&i.call(d)}finally{if(p)throw p.error}}return a},t=this&&this.__spreadArray||function(n,o){for(var i=0,d=o.length,r=n.length;i<d;i++,r++)n[r]=o[i];return n};Object.defineProperty(c,"__esModule",{value:!0}),c.timeoutProvider=void 0,c.timeoutProvider={setTimeout:function(n,o){for(var i=[],d=2;d<arguments.length;d++)i[d-2]=arguments[d];var r=c.timeoutProvider.delegate;return r?.setTimeout?r.setTimeout.apply(r,t([n,o],e(i))):setTimeout.apply(void 0,t([n,o],e(i)))},clearTimeout:function(n){return(c.timeoutProvider.delegate?.clearTimeout||clearTimeout)(n)},delegate:void 0}},34260:(R,c)=>{"use strict";function e(){return"function"==typeof Symbol&&Symbol.iterator?Symbol.iterator:"@@iterator"}Object.defineProperty(c,"__esModule",{value:!0}),c.iterator=c.getSymbolIterator=void 0,c.getSymbolIterator=e,c.iterator=e()},91689:(R,c)=>{"use strict";Object.defineProperty(c,"__esModule",{value:!0}),c.observable=void 0,c.observable="function"==typeof Symbol&&Symbol.observable||"@@observable"},85256:(R,c)=>{"use strict";Object.defineProperty(c,"__esModule",{value:!0})},4769:(R,c,e)=>{"use strict";Object.defineProperty(c,"__esModule",{value:!0}),c.ArgumentOutOfRangeError=void 0;var t=e(49703);c.ArgumentOutOfRangeError=t.createErrorClass(function(n){return function(){n(this),this.name="ArgumentOutOfRangeError",this.message="argument out of range"}})},48915:(R,c,e)=>{"use strict";Object.defineProperty(c,"__esModule",{value:!0}),c.EmptyError=void 0;var t=e(49703);c.EmptyError=t.createErrorClass(function(n){return function(){n(this),this.name="EmptyError",this.message="no elements in sequence"}})},40349:(R,c)=>{"use strict";Object.defineProperty(c,"__esModule",{value:!0}),c.TestTools=c.Immediate=void 0;var t,e=1,n={};function o(i){return i in n&&(delete n[i],!0)}c.Immediate={setImmediate:function(i){var d=e++;return n[d]=!0,t||(t=Promise.resolve()),t.then(function(){return o(d)&&i()}),d},clearImmediate:function(i){o(i)}},c.TestTools={pending:function(){return Object.keys(n).length}}},85477:(R,c,e)=>{"use strict";Object.defineProperty(c,"__esModule",{value:!0}),c.NotFoundError=void 0;var t=e(49703);c.NotFoundError=t.createErrorClass(function(n){return function(i){n(this),this.name="NotFoundError",this.message=i}})},23965:(R,c,e)=>{"use strict";Object.defineProperty(c,"__esModule",{value:!0}),c.ObjectUnsubscribedError=void 0;var t=e(49703);c.ObjectUnsubscribedError=t.createErrorClass(function(n){return function(){n(this),this.name="ObjectUnsubscribedError",this.message="object unsubscribed"}})},61551:(R,c,e)=>{"use strict";Object.defineProperty(c,"__esModule",{value:!0}),c.SequenceError=void 0;var t=e(49703);c.SequenceError=t.createErrorClass(function(n){return function(i){n(this),this.name="SequenceError",this.message=i}})},24970:(R,c,e)=>{"use strict";Object.defineProperty(c,"__esModule",{value:!0}),c.UnsubscriptionError=void 0;var t=e(49703);c.UnsubscriptionError=t.createErrorClass(function(n){return function(i){n(this),this.message=i?i.length+" errors occurred during unsubscription:\n"+i.map(function(d,r){return r+1+") "+d.toString()}).join("\n "):"",this.name="UnsubscriptionError",this.errors=i}})},31642:(R,c,e)=>{"use strict";Object.defineProperty(c,"__esModule",{value:!0}),c.popNumber=c.popScheduler=c.popResultSelector=void 0;var t=e(37104),n=e(1875);function o(a){return a[a.length-1]}c.popResultSelector=function i(a){return t.isFunction(o(a))?a.pop():void 0},c.popScheduler=function d(a){return n.isScheduler(o(a))?a.pop():void 0},c.popNumber=function r(a,p){return"number"==typeof o(a)?a.pop():p}},59923:(R,c)=>{"use strict";Object.defineProperty(c,"__esModule",{value:!0}),c.argsArgArrayOrObject=void 0;var e=Array.isArray,t=Object.getPrototypeOf,n=Object.prototype,o=Object.keys;c.argsArgArrayOrObject=function i(r){if(1===r.length){var a=r[0];if(e(a))return{args:a,keys:null};if(function d(r){return r&&"object"==typeof r&&t(r)===n}(a)){var p=o(a);return{args:p.map(function(h){return a[h]}),keys:p}}}return{args:r,keys:null}}},73531:(R,c)=>{"use strict";Object.defineProperty(c,"__esModule",{value:!0}),c.argsOrArgArray=void 0;var e=Array.isArray;c.argsOrArgArray=function t(n){return 1===n.length&&e(n[0])?n[0]:n}},55137:(R,c)=>{"use strict";Object.defineProperty(c,"__esModule",{value:!0}),c.arrRemove=void 0,c.arrRemove=function e(t,n){if(t){var o=t.indexOf(n);0<=o&&t.splice(o,1)}}},49703:(R,c)=>{"use strict";Object.defineProperty(c,"__esModule",{value:!0}),c.createErrorClass=void 0,c.createErrorClass=function e(t){var o=t(function(i){Error.call(i),i.stack=(new Error).stack});return o.prototype=Object.create(Error.prototype),o.prototype.constructor=o,o}},57598:(R,c)=>{"use strict";Object.defineProperty(c,"__esModule",{value:!0}),c.createObject=void 0,c.createObject=function e(t,n){return t.reduce(function(o,i,d){return o[i]=n[d],o},{})}},45808:(R,c,e)=>{"use strict";Object.defineProperty(c,"__esModule",{value:!0}),c.captureError=c.errorContext=void 0;var t=e(73570),n=null;
1c.errorContext=function o(d){if(t.config.useDeprecatedSynchronousErrorHandling){var r=!n;if(r&&(n={errorThrown:!1,error:null}),d(),r){var a=n;if(n=null,a.errorThrown)throw a.error}}else d()},c.captureError=function i(d){t.config.useDeprecatedSynchronousErrorHandling&&n&&(n.errorThrown=!0,n.error=d)}},17238:(R,c)=>{"use strict";Object.defineProperty(c,"__esModule",{value:!0}),c.executeSchedule=void 0,c.executeSchedule=function e(t,n,o,i,d){void 0===i&&(i=0),void 0===d&&(d=!1);var r=n.schedule(function(){o(),d?t.add(this.schedule(null,i)):this.unsubscribe()},i);if(t.add(r),!d)return r}},77884:(R,c)=>{"use strict";Object.defineProperty(c,"__esModule",{value:!0}),c.identity=void 0,c.identity=function e(t){return t}},70697:(R,c)=>{"use strict";Object.defineProperty(c,"__esModule",{value:!0}),c.isArrayLike=void 0,c.isArrayLike=function(e){return e&&"number"==typeof e.length&&"function"!=typeof e}},26175:(R,c,e)=>{"use strict";Object.defineProperty(c,"__esModule",{value:!0}),c.isAsyncIterable=void 0;var t=e(37104);c.isAsyncIterable=function n(o){return Symbol.asyncIterator&&t.isFunction(o?.[Symbol.asyncIterator])}},67323:(R,c)=>{"use strict";Object.defineProperty(c,"__esModule",{value:!0}),c.isValidDate=void 0,c.isValidDate=function e(t){return t instanceof Date&&!isNaN(t)}},37104:(R,c)=>{"use strict";Object.defineProperty(c,"__esModule",{value:!0}),c.isFunction=void 0,c.isFunction=function e(t){return"function"==typeof t}},17454:(R,c,e)=>{"use strict";Object.defineProperty(c,"__esModule",{value:!0}),c.isInteropObservable=void 0;var t=e(91689),n=e(37104);c.isInteropObservable=function o(i){return n.isFunction(i[t.observable])}},5431:(R,c,e)=>{"use strict";Object.defineProperty(c,"__esModule",{value:!0}),c.isIterable=void 0;var t=e(34260),n=e(37104);c.isIterable=function o(i){return n.isFunction(i?.[t.iterator])}},14341:(R,c,e)=>{"use strict";Object.defineProperty(c,"__esModule",{value:!0}),c.isObservable=void 0;var t=e(55821),n=e(37104);c.isObservable=function o(i){return!!i&&(i instanceof t.Observable||n.isFunction(i.lift)&&n.isFunction(i.subscribe))}},25050:(R,c,e)=>{"use strict";Object.defineProperty(c,"__esModule",{value:!0}),c.isPromise=void 0;var t=e(37104);c.isPromise=function n(o){return t.isFunction(o?.then)}},87128:function(R,c,e){"use strict";var t=this&&this.__generator||function(a,p){var m,_,v,E,h={label:0,sent:function(){if(1&v[0])throw v[1];return v[1]},trys:[],ops:[]};return E={next:O(0),throw:O(1),return:O(2)},"function"==typeof Symbol&&(E[Symbol.iterator]=function(){return this}),E;function O(M){return function(P){return function b(M){if(m)throw new TypeError("Generator is already executing.");for(;h;)try{if(m=1,_&&(v=2&M[0]?_.return:M[0]?_.throw||((v=_.return)&&v.call(_),0):_.next)&&!(v=v.call(_,M[1])).done)return v;switch(_=0,v&&(M=[2&M[0],v.value]),M[0]){case 0:case 1:v=M;break;case 4:return h.label++,{value:M[1],done:!1};case 5:h.label++,_=M[1],M=[0];continue;case 7:M=h.ops.pop(),h.trys.pop();continue;default:if(!(v=(v=h.trys).length>0&&v[v.length-1])&&(6===M[0]||2===M[0])){h=0;continue}if(3===M[0]&&(!v||M[1]>v[0]&&M[1]<v[3])){h.label=M[1];break}if(6===M[0]&&h.label<v[1]){h.label=v[1],v=M;break}if(v&&h.label<v[2]){h.label=v[2],h.ops.push(M);break}v[2]&&h.ops.pop(),h.trys.pop();continue}M=p.call(a,h)}catch(P){M=[6,P],_=0}finally{m=v=0}if(5&M[0])throw M[1];return{value:M[0]?M[1]:void 0,done:!0}}([M,P])}}},n=this&&this.__await||function(a){return this instanceof n?(this.v=a,this):new n(a)},o=this&&this.__asyncGenerator||function(a,p,h){if(!Symbol.asyncIterator)throw new TypeError("Symbol.asyncIterator is not defined.");var _,m=h.apply(a,p||[]),v=[];return _={},E("next"),E("throw"),E("return"),_[Symbol.asyncIterator]=function(){return this},_;function E(l){m[l]&&(_[l]=function(C){return new Promise(function(I,g){v.push([l,C,I,g])>1||O(l,C)})})}function O(l,C){try{!function b(l){l.value instanceof n?Promise.resolve(l.value.v).then(M,P):D(v[0][2],l)}(m[l](C))}catch(I){D(v[0][3],I)}}function M(l){O("next",l)}function P(l){O("throw",l)}function D(l,C){l(C),v.shift(),v.length&&O(v[0][0],v[0][1])}};Object.defineProperty(c,"__esModule",{value:!0}),c.isReadableStreamLike=c.readableStreamLikeToAsyncGenerator=void 0;var i=e(37104);c.readableStreamLikeToAsyncGenerator=function d(a){return o(this,arguments,function(){var h,m,_;return t(this,function(E){switch(E.label){case 0:h=a.getReader(),E.label=1;case 1:E.trys.push([1,,9,10]),E.label=2;case 2:return[4,n(h.read())];case 3:return m=E.sent(),_=m.value,m.done?[4,n(void 0)]:[3,5];case 4:return[2,E.sent()];case 5:return[4,n(_)];case 6:return[4,E.sent()];case 7:return E.sent(),[3,2];case 8:return[3,10];case 9:return h.releaseLock(),[7];case 10:return[2]}})})},c.isReadableStreamLike=function r(a){return i.isFunction(a?.getReader)}},1875:(R,c,e)=>{"use strict";Object.defineProperty(c,"__esModule",{value:!0}
1),c.isScheduler=void 0;var t=e(37104);c.isScheduler=function n(o){return o&&t.isFunction(o.schedule)}},89216:(R,c,e)=>{"use strict";Object.defineProperty(c,"__esModule",{value:!0}),c.operate=c.hasLift=void 0;var t=e(37104);function n(i){return t.isFunction(i?.lift)}c.hasLift=n,c.operate=function o(i){return function(d){if(n(d))return d.lift(function(r){try{return i(r,this)}catch(a){this.error(a)}});throw new TypeError("Unable to lift unknown Observable type")}}},5280:function(R,c,e){"use strict";var t=this&&this.__read||function(a,p){var h="function"==typeof Symbol&&a[Symbol.iterator];if(!h)return a;var _,E,m=h.call(a),v=[];try{for(;(void 0===p||p-- >0)&&!(_=m.next()).done;)v.push(_.value)}catch(O){E={error:O}}finally{try{_&&!_.done&&(h=m.return)&&h.call(m)}finally{if(E)throw E.error}}return v},n=this&&this.__spreadArray||function(a,p){for(var h=0,m=p.length,_=a.length;h<m;h++,_++)a[_]=p[h];return a};Object.defineProperty(c,"__esModule",{value:!0}),c.mapOneOrManyArgs=void 0;var o=e(70752),i=Array.isArray;c.mapOneOrManyArgs=function r(a){return o.map(function(p){return function d(a,p){return i(p)?a.apply(void 0,n([],t(p))):a(p)}(a,p)})}},31:(R,c)=>{"use strict";Object.defineProperty(c,"__esModule",{value:!0}),c.noop=void 0,c.noop=function e(){}},40963:(R,c)=>{"use strict";Object.defineProperty(c,"__esModule",{value:!0}),c.not=void 0,c.not=function e(t,n){return function(o,i){return!t.call(n,o,i)}}},81471:(R,c,e)=>{"use strict";Object.defineProperty(c,"__esModule",{value:!0}),c.pipeFromArray=c.pipe=void 0;var t=e(77884);function o(i){return 0===i.length?t.identity:1===i.length?i[0]:function(r){return i.reduce(function(a,p){return p(a)},r)}}c.pipe=function n(){for(var i=[],d=0;d<arguments.length;d++)i[d]=arguments[d];return o(i)},c.pipeFromArray=o},74709:(R,c,e)=>{"use strict";Object.defineProperty(c,"__esModule",{value:!0}),c.reportUnhandledError=void 0;var t=e(73570),n=e(33914);c.reportUnhandledError=function o(i){n.timeoutProvider.setTimeout(function(){var d=t.config.onUnhandledError;if(!d)throw i;d(i)})}},36870:(R,c)=>{"use strict";Object.defineProperty(c,"__esModule",{value:!0}),c.createInvalidObservableTypeError=void 0,c.createInvalidObservableTypeError=function e(t){return new TypeError("You provided "+(null!==t&&"object"==typeof t?"an invalid object":"'"+t+"'")+" where a stream was expected. You can provide an Observable, Promise, ReadableStream, Array, AsyncIterable, or Iterable.")}},38893:(R,c,e)=>{"use strict";e.d(c,{c:()=>n});var t=e(77579);class n extends t.x{constructor(){super(...arguments),this._value=null,this._hasValue=!1,this._isComplete=!1}_checkFinalizedStatuses(i){const{hasError:d,_hasValue:r,_value:a,thrownError:p,isStopped:h,_isComplete:m}=this;d?i.error(p):(h||m)&&(r&&i.next(a),i.complete())}next(i){this.isStopped||(this._value=i,this._hasValue=!0)}complete(){const{_hasValue:i,_value:d,_isComplete:r}=this;r||(this._isComplete=!0,i&&super.next(d),super.complete())}}},61135:(R,c,e)=>{"use strict";e.d(c,{X:()=>n});var t=e(77579);class n extends t.x{constructor(i){super(),this._value=i}get value(){return this.getValue()}_subscribe(i){const d=super._subscribe(i);return!d.closed&&i.next(this._value),d}getValue(){const{hasError:i,thrownError:d,_value:r}=this;if(i)throw d;return this._throwIfClosed(),r}next(i){super.next(this._value=i)}}},69751:(R,c,e)=>{"use strict";e.d(c,{y:()=>p});var t=e(70930),n=e(50727),o=e(48822),i=e(89635),d=e(42416),r=e(30576),a=e(72806);let p=(()=>{class v{constructor(O){O&&(this._subscribe=O)}lift(O){const b=new v;return b.source=this,b.operator=O,b}subscribe(O,b,M){const P=function _(v){return v&&v instanceof t.Lv||function m(v){return v&&(0,r.m)(v.next)&&(0,r.m)(v.error)&&(0,r.m)(v.complete)}(v)&&(0,n.Nn)(v)}(O)?O:new t.Hp(O,b,M);return(0,a.x)(()=>{const{operator:D,source:l}=this;P.add(D?D.call(P,l):l?this._subscribe(P):this._trySubscribe(P))}),P}_trySubscribe(O){try{return this._subscribe(O)}catch(b){O.error(b)}}forEach(O,b){return new(b=h(b))((M,P)=>{const D=new t.Hp({next:l=>{try{O(l)}catch(C){P(C),D.unsubscribe()}},error:P,complete:M});this.subscribe(D)})}_subscribe(O){var b;return null===(b=this.source)||void 0===b?void 0:b.subscribe(O)}[o.L](){return this}pipe(...O){return(0,i.U)(O)(this)}toPromise(O){return new(O=h(O))((b,M)=>{let P;this.subscribe(D=>
1P=D,D=>M(D),()=>b(P))})}}return v.create=E=>new v(E),v})();function h(v){var E;return null!==(E=v??d.v.Promise)&&void 0!==E?E:Promise}},4707:(R,c,e)=>{"use strict";e.d(c,{t:()=>o});var t=e(77579),n=e(26063);class o extends t.x{constructor(d=1/0,r=1/0,a=n.l){super(),this._bufferSize=d,this._windowTime=r,this._timestampProvider=a,this._buffer=[],this._infiniteTimeWindow=!0,this._infiniteTimeWindow=r===1/0,this._bufferSize=Math.max(1,d),this._windowTime=Math.max(1,r)}next(d){const{isStopped:r,_buffer:a,_infiniteTimeWindow:p,_timestampProvider:h,_windowTime:m}=this;r||(a.push(d),!p&&a.push(h.now()+m)),this._trimBuffer(),super.next(d)}_subscribe(d){this._throwIfClosed(),this._trimBuffer();const r=this._innerSubscribe(d),{_infiniteTimeWindow:a,_buffer:p}=this,h=p.slice();for(let m=0;m<h.length&&!d.closed;m+=a?1:2)d.next(h[m]);return this._checkFinalizedStatuses(d),r}_trimBuffer(){const{_bufferSize:d,_timestampProvider:r,_buffer:a,_infiniteTimeWindow:p}=this,h=(p?1:2)*d;if(d<1/0&&h<a.length&&a.splice(0,a.length-h),!p){const m=r.now();let _=0;for(let v=1;v<a.length&&a[v]<=m;v+=2)_=v;_&&a.splice(0,_+1)}}}},77579:(R,c,e)=>{"use strict";e.d(c,{x:()=>a});var t=e(69751),n=e(50727);const i=(0,e(83888).d)(h=>function(){h(this),this.name="ObjectUnsubscribedError",this.message="object unsubscribed"});var d=e(38737),r=e(72806);let a=(()=>{class h extends t.y{constructor(){super(),this.closed=!1,this.currentObservers=null,this.observers=[],this.isStopped=!1,this.hasError=!1,this.thrownError=null}lift(_){const v=new p(this,this);return v.operator=_,v}_throwIfClosed(){if(this.closed)throw new i}next(_){(0,r.x)(()=>{if(this._throwIfClosed(),!this.isStopped){this.currentObservers||(this.currentObservers=Array.from(this.observers));for(const v of this.currentObservers)v.next(_)}})}error(_){(0,r.x)(()=>{if(this._throwIfClosed(),!this.isStopped){this.hasError=this.isStopped=!0,this.thrownError=_;const{observers:v}=this;for(;v.length;)v.shift().error(_)}})}complete(){(0,r.x)(()=>{if(this._throwIfClosed(),!this.isStopped){this.isStopped=!0;const{observers:_}=this;for(;_.length;)_.shift().complete()}})}unsubscribe(){this.isStopped=this.closed=!0,this.observers=this.currentObservers=null}get observed(){var _;return(null===(_=this.observers)||void 0===_?void 0:_.length)>0}_trySubscribe(_){return this._throwIfClosed(),super._trySubscribe(_)}_subscribe(_){return this._throwIfClosed(),this._checkFinalizedStatuses(_),this._innerSubscribe(_)}_innerSubscribe(_){const{hasError:v,isStopped:E,observers:O}=this;return v||E?n.Lc:(this.currentObservers=null,O.push(_),new n.w0(()=>{this.currentObservers=null,(0,d.P)(O,_)}))}_checkFinalizedStatuses(_){const{hasError:v,thrownError:E,isStopped:O}=this;v?_.error(E):O&&_.complete()}asObservable(){const _=new t.y;return _.source=this,_}}return h.create=(m,_)=>new p(m,_),h})();class p extends a{constructor(m,_){super(),this.destination=m,this.source=_}next(m){var _,v;null===(v=null===(_=this.destination)||void 0===_?void 0:_.next)||void 0===v||v.call(_,m)}error(m){var _,v;null===(v=null===(_=this.destination)||void 0===_?void 0:_.error)||void 0===v||v.call(_,m)}complete(){var m,_;null===(_=null===(m=this.destination)||void 0===m?void 0:m.complete)||void 0===_||_.call(m)}_subscribe(m){var _,v;return null!==(v=null===(_=this.source)||void 0===_?void 0:_.subscribe(m))&&void 0!==v?v:n.Lc}}},70930:(R,c,e)=>{"use strict";e.d(c,{Hp:()=>M,Lv:()=>v});var t=e(30576),n=e(50727),o=e(42416),i=e(87849),d=e(25032);const r=h("C",void 0,void 0);function h(I,g,B){return{kind:I,value:g,error:B}}var m=e(43410),_=e(72806);class v extends n.w0{constructor(g){super(),this.isStopped=!1,g?(this.destination=g,(0,n.Nn)(g)&&g.add(this)):this.destination=C}static create(g,B,L){return new M(g,B,L)}next(g){this.isStopped?l(function p(I){return h("N",I,void 0)}(g),this):this._next(g)}error(g){this.isStopped?l(function a(I){return h("E",void 0,I)}(g),this):(this.isStopped=!0,this._error(g))}complete(){this.isStopped?l(r,this):(this.isStopped=!0,this._complete())}unsubscribe(){this.closed||(this.isStopped=!0,super.unsubscribe(),this.destination=null)}_next(g){this.destination.next(g)}_error(g){try{this.destination.error(g)}finally{this.unsubscribe()}}_complete(){try{this.destination.complete()}finally{this.unsubscribe()}}}const E=Function.prototype.bind;function O(I,g){return E.call(I,g)}class b{constructor(g){this.partialObserver=g}next(g){const{partialObserver:B}=this;if(B.next)try{B.next(g)}catch(L){P(L)}}error(g){const{partialObserver:B}=this;if(B.error)try{B.error(g)}catch(L){P(L)}else P(g)}complete(){const{partialObserver:g}=this;if(g.complete)try{g.complete()}catch(B){P(B)}}}class M extends v{constructor(g,B,L){let V;if(super(),(0,t.m)(g)||!g)V={next:g??void 0,error:B??void 0,complete:L??void 0};else{let Y;
1this&&o.v.useDeprecatedNextContext?(Y=Object.create(g),Y.unsubscribe=()=>this.unsubscribe(),V={next:g.next&&O(g.next,Y),error:g.error&&O(g.error,Y),complete:g.complete&&O(g.complete,Y)}):V=g}this.destination=new b(V)}}function P(I){o.v.useDeprecatedSynchronousErrorHandling?(0,_.O)(I):(0,i.h)(I)}function l(I,g){const{onStoppedNotification:B}=o.v;B&&m.z.setTimeout(()=>B(I,g))}const C={closed:!0,next:d.Z,error:function D(I){throw I},complete:d.Z}},50727:(R,c,e)=>{"use strict";e.d(c,{Lc:()=>r,w0:()=>d,Nn:()=>a});var t=e(30576);const o=(0,e(83888).d)(h=>function(_){h(this),this.message=_?`${_.length} errors occurred during unsubscription:\n${_.map((v,E)=>`${E+1}) ${v.toString()}`).join("\n ")}`:"",this.name="UnsubscriptionError",this.errors=_});var i=e(38737);class d{constructor(m){this.initialTeardown=m,this.closed=!1,this._parentage=null,this._finalizers=null}unsubscribe(){let m;if(!this.closed){this.closed=!0;const{_parentage:_}=this;if(_)if(this._parentage=null,Array.isArray(_))for(const O of _)O.remove(this);else _.remove(this);const{initialTeardown:v}=this;if((0,t.m)(v))try{v()}catch(O){m=O instanceof o?O.errors:[O]}const{_finalizers:E}=this;if(E){this._finalizers=null;for(const O of E)try{p(O)}catch(b){m=m??[],b instanceof o?m=[...m,...b.errors]:m.push(b)}}if(m)throw new o(m)}}add(m){var _;if(m&&m!==this)if(this.closed)p(m);else{if(m instanceof d){if(m.closed||m._hasParent(this))return;m._addParent(this)}(this._finalizers=null!==(_=this._finalizers)&&void 0!==_?_:[]).push(m)}}_hasParent(m){const{_parentage:_}=this;return _===m||Array.isArray(_)&&_.includes(m)}_addParent(m){const{_parentage:_}=this;this._parentage=Array.isArray(_)?(_.push(m),_):_?[_,m]:m}_removeParent(m){const{_parentage:_}=this;_===m?this._parentage=null:Array.isArray(_)&&(0,i.P)(_,m)}remove(m){const{_finalizers:_}=this;_&&(0,i.P)(_,m),m instanceof d&&m._removeParent(this)}}d.EMPTY=(()=>{const h=new d;return h.closed=!0,h})();const r=d.EMPTY;function a(h){return h instanceof d||h&&"closed"in h&&(0,t.m)(h.remove)&&(0,t.m)(h.add)&&(0,t.m)(h.unsubscribe)}function p(h){(0,t.m)(h)?h():h.unsubscribe()}},42416:(R,c,e)=>{"use strict";e.d(c,{v:()=>t});const t={onUnhandledError:null,onStoppedNotification:null,Promise:void 0,useDeprecatedSynchronousErrorHandling:!1,useDeprecatedNextContext:!1}},94033:(R,c,e)=>{"use strict";e.d(c,{c:()=>r});var t=e(69751),n=e(50727),o=e(38343),i=e(25403),d=e(54482);class r extends t.y{constructor(p,h){super(),this.source=p,this.subjectFactory=h,this._subject=null,this._refCount=0,this._connection=null,(0,d.A)(p)&&(this.lift=p.lift)}_subscribe(p){return this.getSubject().subscribe(p)}getSubject(){const p=this._subject;return(!p||p.isStopped)&&(this._subject=this.subjectFactory()),this._subject}_teardown(){this._refCount=0;const{_connection:p}=this;this._subject=this._connection=null,p?.unsubscribe()}connect(){let p=this._connection;if(!p){p=this._connection=new n.w0;const h=this.getSubject();p.add(this.source.subscribe((0,i.x)(h,void 0,()=>{this._teardown(),h.complete()},m=>{this._teardown(),h.error(m)},()=>this._teardown()))),p.closed&&(this._connection=null,p=n.w0.EMPTY)}return p}refCount(){return(0,o.x)()(this)}}},39841:(R,c,e)=>{"use strict";e.d(c,{a:()=>m,l:()=>_});var t=e(69751),n=e(54742),o=e(50457),i=e(44671),d=e(83268),r=e(63269),a=e(31810),p=e(25403),h=e(39672);function m(...E){const O=(0,r.yG)(E),b=(0,r.jO)(E),{args:M,keys:P}=(0,n.D)(E);if(0===M.length)return(0,o.D)([],O);const D=new t.y(_(M,O,P?l=>(0,a.n)(P,l):i.y));return b?D.pipe((0,d.Z)(b)):D}function _(E,O,b=i.y){return M=>{v(O,()=>{const{length:P}=E,D=new Array(P);let l=P,C=P;for(let I=0;I<P;I++)v(O,()=>{const g=(0,o.D)(E[I],O);let B=!1;g.subscribe((0,p.x)(M,L=>{D[I]=L,B||(B=!0,C--),C||M.next(b(D.slice()))},()=>{--l||M.complete()}))},M)},M)}}function v(E,O,b){E?(0,h.f)(b,E,O):O()}},71350:(R,c,e)=>{"use strict";e.d(c,{z:()=>i});var t=e(37886),n=e(63269),o=e(50457);function i(...d){return(0,t.u)()((0,o.D)(d,(0,n.yG)(d)))}},49770:(R,c,e)=>{"use strict";e.d(c,{P:()=>o});var t=e(69751),n=e(38421);function o(i){return new t.y(d=>{(0,n.Xf)(i()).subscribe(d)})}},60515:(R,c,e)=>{"use strict";e.d(c,{E:()=>n});const n=new(e(69751).y)(d=>d.complete())},4128:(R,c,e)=>{"use strict";e.d(c,{D:()=>p});var t=e(69751),n=e(54742),o=e(38421),i=e(63269),d=e(25403),r=e(83268),a=e(31810);function p(...h){const m=(0,i.jO)(h),{args:_,keys:v}=(0,n.D)(h),E=new t.y(O=>{const{length:b}=_;if(!b)return void O.complete();const M=new Array(b);let P=b,D=b;for(let l=0;l<b;l++){let C=!1;(0,o.Xf)(_[l]).subscribe((0,d.x)(O,I=>{C||(C=!0,D--),M[l]=I},()=>P--,void 0,()=>{(!P||!C)&&(D||O.next(v?(0,a.n)(v,M):M),O.complete())}))}});return m?E.pipe((0,r.Z)(m)):E}},50457:(R,c,e)=>{"use strict";e.d(c,{D:()=>B});var t=e(38421),n=e(85363),o=e(54482);function i(L,V=0){return(0,o.e)((Y,X)=>{X.add(L.schedule(()=>Y.subscribe(X),V))})}var a=e(69751),h=e(2202),m=e(30576),_=e(39672);function E(L,V){if(!L)throw new Error("Iterable cannot be null");return new a.y(Y=>{(0,_.f)(Y,V,()=>{const X=L[Symbol.asyncIterator]();(0,_.f)(Y,V,()=>{X.next().then(te=>{te.done?Y.complete():Y.next(te.value)})},0,!0)})})}var O=e(93670),b=e(28239),M=e(81144),P=e(26495),D=e(12206),l=e(44532),C=e(53260);function B(L,V){return V?function g(L,V){if(null!=L){if((0,O.c)(L))return function d(L,V){return(0,t.Xf)(L).pipe(i(V),(0,n.Q)(V))}(L,V);if((0,M.z)(L))return function p(L,V){return new a.y(Y=>{let X=0;return V.schedule(function(){X===L.length?Y.complete():(Y.next(L[X++]),Y.closed||this.schedule())})})}(L,V);if((0,b.t)(L))return function r(L,V){return(0,t.Xf)(L).pipe(i(V),(0,n.Q)(V))}(L,V);if((0,D.D)(L))return E(L,V);if((0,P.T)(L))return function v(L,V){return new a.y(Y=>{let X;return(0,_.f)(Y,V,()=>
1{X=L[h.h](),(0,_.f)(Y,V,()=>{let te,K;try{({value:te,done:K}=X.next())}catch(ee){return void Y.error(ee)}K?Y.complete():Y.next(te)},0,!0)}),()=>(0,m.m)(X?.return)&&X.return()})}(L,V);if((0,C.L)(L))return function I(L,V){return E((0,C.Q)(L),V)}(L,V)}throw(0,l.z)(L)}(L,V):(0,t.Xf)(L)}},54968:(R,c,e)=>{"use strict";e.d(c,{R:()=>m});var t=e(38421),n=e(69751),o=e(86099),i=e(81144),d=e(30576),r=e(83268);const a=["addListener","removeListener"],p=["addEventListener","removeEventListener"],h=["on","off"];function m(b,M,P,D){if((0,d.m)(P)&&(D=P,P=void 0),D)return m(b,M,P).pipe((0,r.Z)(D));const[l,C]=function O(b){return(0,d.m)(b.addEventListener)&&(0,d.m)(b.removeEventListener)}(b)?p.map(I=>g=>b[I](M,g,P)):function v(b){return(0,d.m)(b.addListener)&&(0,d.m)(b.removeListener)}(b)?a.map(_(b,M)):function E(b){return(0,d.m)(b.on)&&(0,d.m)(b.off)}(b)?h.map(_(b,M)):[];if(!l&&(0,i.z)(b))return(0,o.z)(I=>m(I,M,P))((0,t.Xf)(b));if(!l)throw new TypeError("Invalid event target");return new n.y(I=>{const g=(...B)=>I.next(1<B.length?B:B[0]);return l(g),()=>C(g)})}function _(b,M){return P=>D=>b[P](M,D)}},38421:(R,c,e)=>{"use strict";e.d(c,{Xf:()=>E});var t=e(70655),n=e(81144),o=e(28239),i=e(69751),d=e(93670),r=e(12206),a=e(44532),p=e(26495),h=e(53260),m=e(30576),_=e(87849),v=e(48822);function E(I){if(I instanceof i.y)return I;if(null!=I){if((0,d.c)(I))return function O(I){return new i.y(g=>{const B=I[v.L]();if((0,m.m)(B.subscribe))return B.subscribe(g);throw new TypeError("Provided object does not correctly implement Symbol.observable")})}(I);if((0,n.z)(I))return function b(I){return new i.y(g=>{for(let B=0;B<I.length&&!g.closed;B++)g.next(I[B]);g.complete()})}(I);if((0,o.t)(I))return function M(I){return new i.y(g=>{I.then(B=>{g.closed||(g.next(B),g.complete())},B=>g.error(B)).then(null,_.h)})}(I);if((0,r.D)(I))return D(I);if((0,p.T)(I))return function P(I){return new i.y(g=>{for(const B of I)if(g.next(B),g.closed)return;g.complete()})}(I);if((0,h.L)(I))return function l(I){return D((0,h.Q)(I))}(I)}throw(0,a.z)(I)}function D(I){return new i.y(g=>{(function C(I,g){var B,L,V,Y;return(0,t.__awaiter)(this,void 0,void 0,function*(){try{for(B=(0,t.__asyncValues)(I);!(L=yield B.next()).done;)if(g.next(L.value),g.closed)return}catch(X){V={error:X}}finally{try{L&&!L.done&&(Y=B.return)&&(yield Y.call(B))}finally{if(V)throw V.error}}g.complete()})})(I,g).catch(B=>g.error(B))})}},17445:(R,c,e)=>{"use strict";e.d(c,{F:()=>o});var t=e(34986),n=e(5963);function o(i=0,d=t.z){return i<0&&(i=0),(0,n.H)(i,i,d)}},56451:(R,c,e)=>{"use strict";e.d(c,{T:()=>r});var t=e(8189),n=e(38421),o=e(60515),i=e(63269),d=e(50457);function r(...a){const p=(0,i.yG)(a),h=(0,i._6)(a,1/0),m=a;return m.length?1===m.length?(0,n.Xf)(m[0]):(0,t.J)(h)((0,d.D)(m,p)):o.E}},39646:(R,c,e)=>{"use strict";e.d(c,{of:()=>o});var t=e(63269),n=e(50457);function o(...i){const d=(0,t.yG)(i);return(0,n.D)(i,d)}},54355:(R,c,e)=>{"use strict";e.d(c,{S:()=>d});var t=e(69751),n=e(38421),o=e(75797),i=e(25403);function d(...a){return 1===(a=(0,o.k)(a)).length?(0,n.Xf)(a[0]):new t.y(function r(a){return p=>{let h=[];for(let m=0;h&&!p.closed&&m<a.length;m++)h.push((0,n.Xf)(a[m]).subscribe((0,i.x)(p,_=>{if(h){for(let v=0;v<h.length;v++)v!==m&&h[v].unsubscribe();h=null}p.next(_)})))}}(a))}},62843:(R,c,e)=>{"use strict";e.d(c,{_:()=>o});var t=e(69751),n=e(30576);function o(i,d){const r=(0,n.m)(i)?i:()=>i,a=p=>p.error(r());return new t.y(d?p=>d.schedule(a,0,p):a)}},5963:(R,c,e)=>{"use strict";e.d(c,{H:()=>d});var t=e(69751),n=e(34986),o=e(93532);function d(r=0,a,p=n.P){let h=-1;return null!=a&&((0,o.K)(a)?p=a:h=a),new t.y(m=>{let _=function i(r){return r instanceof Date&&!isNaN(r)}(r)?+r-p.now():r;_<0&&(_=0);let v=0;return p.schedule(function(){m.closed||(m.next(v++),0<=h?this.schedule(void 0,h):m.complete())},_)})}},62557:(R,c,e)=>{"use strict";e.d(c,{$:()=>a});var t=e(69751),n=e(38421),o=e(75797),i=e(60515),d=e(25403),r=e(63269);function a(...p){const h=(0,r.jO)(p),m=(0,o.k)(p);return m.length?new t.y(_=>{let v=m.map(()=>[]),E=m.map(()=>!1);_.add(()=>{v=E=null});for(let O=0;!_.closed&&O<m.length;O++)(0,n.Xf)(m[O]).subscribe((0,d.x)(_,b=>{if(v[O].push(b),v.every(M=>M.length)){const M=v.map(P=>P.shift());_.next(h?h(...M):M),v.some((P,D)=>!P.length&&E[D])&&_.complete()}},()=>{E[O]=!0,!v[O].length&&_.complete()}
1));return()=>{v=E=null}}):i.E}},25403:(R,c,e)=>{"use strict";e.d(c,{Q:()=>o,x:()=>n});var t=e(70930);function n(i,d,r,a,p){return new o(i,d,r,a,p)}class o extends t.Lv{constructor(d,r,a,p,h,m){super(d),this.onFinalize=h,this.shouldUnsubscribe=m,this._next=r?function(_){try{r(_)}catch(v){d.error(v)}}:super._next,this._error=p?function(_){try{p(_)}catch(v){d.error(v)}finally{this.unsubscribe()}}:super._error,this._complete=a?function(){try{a()}catch(_){d.error(_)}finally{this.unsubscribe()}}:super._complete}unsubscribe(){var d;if(!this.shouldUnsubscribe||this.shouldUnsubscribe()){const{closed:r}=this;super.unsubscribe(),!r&&(null===(d=this.onFinalize)||void 0===d||d.call(this))}}}},70262:(R,c,e)=>{"use strict";e.d(c,{K:()=>i});var t=e(38421),n=e(25403),o=e(54482);function i(d){return(0,o.e)((r,a)=>{let m,p=null,h=!1;p=r.subscribe((0,n.x)(a,void 0,void 0,_=>{m=(0,t.Xf)(d(_,i(d)(r))),p?(p.unsubscribe(),p=null,m.subscribe(a)):h=!0})),h&&(p.unsubscribe(),p=null,m.subscribe(a))})}},37886:(R,c,e)=>{"use strict";e.d(c,{u:()=>n});var t=e(8189);function n(){return(0,t.J)(1)}},24351:(R,c,e)=>{"use strict";e.d(c,{b:()=>o});var t=e(86099),n=e(30576);function o(i,d){return(0,n.m)(d)?(0,t.z)(i,d,1):(0,t.z)(i,1)}},78372:(R,c,e)=>{"use strict";e.d(c,{b:()=>i});var t=e(34986),n=e(54482),o=e(25403);function i(d,r=t.z){return(0,n.e)((a,p)=>{let h=null,m=null,_=null;const v=()=>{if(h){h.unsubscribe(),h=null;const O=m;m=null,p.next(O)}};function E(){const O=_+d,b=r.now();if(b<O)return h=this.schedule(void 0,O-b),void p.add(h);v()}a.subscribe((0,o.x)(p,O=>{m=O,_=r.now(),h||(h=r.schedule(E,d),p.add(h))},()=>{v(),p.complete()},void 0,()=>{m=h=null}))})}},46590:(R,c,e)=>{"use strict";e.d(c,{d:()=>o});var t=e(54482),n=e(25403);function o(i){return(0,t.e)((d,r)=>{let a=!1;d.subscribe((0,n.x)(r,p=>{a=!0,r.next(p)},()=>{a||r.next(i),r.complete()}))})}},94086:(R,c,e)=>{"use strict";e.d(c,{g:()=>m});var t=e(34986),n=e(71350),o=e(95698),i=e(38502),d=e(69718),r=e(86099),a=e(38421);function p(_,v){return v?E=>(0,n.z)(v.pipe((0,o.q)(1),(0,i.l)()),E.pipe(p(_))):(0,r.z)((E,O)=>(0,a.Xf)(_(E,O)).pipe((0,o.q)(1),(0,d.h)(E)))}var h=e(5963);function m(_,v=t.z){const E=(0,h.H)(_,v);return p(()=>E)}},71884:(R,c,e)=>{"use strict";e.d(c,{x:()=>i});var t=e(44671),n=e(54482),o=e(25403);function i(r,a=t.y){return r=r??d,(0,n.e)((p,h)=>{let m,_=!0;p.subscribe((0,o.x)(h,v=>{const E=a(v);(_||!r(m,E))&&(_=!1,m=E,h.next(v))}))})}function d(r,a){return r===a}},36129:(R,c,e)=>{"use strict";e.d(c,{z:()=>d});var t=e(54004),n=e(38421),o=e(54482),i=e(25403);function d(r,a){return a?p=>p.pipe(d((h,m)=>(0,n.Xf)(r(h,m)).pipe((0,t.U)((_,v)=>a(h,_,m,v))))):(0,o.e)((p,h)=>{let m=0,_=null,v=!1;p.subscribe((0,i.x)(h,E=>{_||(_=(0,i.x)(h,void 0,()=>{_=null,v&&h.complete()}),(0,n.Xf)(r(E,m++)).subscribe(_))},()=>{v=!0,!_&&h.complete()}))})}},67688:(R,c,e)=>{"use strict";e.d(c,{j:()=>o});var t=e(54482),n=e(72733);function o(i,d=1/0,r){return d=(d||0)<1?1/0:d,(0,t.e)((a,p)=>(0,n.p)(a,p,i,d,void 0,!0,r))}},39300:(R,c,e)=>{"use strict";e.d(c,{h:()=>o});var t=e(54482),n=e(25403);function o(i,d){return(0,t.e)((r,a)=>{let p=0;r.subscribe((0,n.x)(a,h=>i.call(d,h,p++)&&a.next(h)))})}},28746:(R,c,e)=>{"use strict";e.d(c,{x:()=>n});var t=e(54482);function n(o){return(0,t.e)((i,d)=>{try{i.subscribe(d)}finally{d.add(o)}})}},40367:(R,c,e)=>{"use strict";e.d(c,{s:()=>o});var t=e(54482),n=e(25403);function o(d,r){return(0,t.e)(function i(d,r,a){const p="index"===a;return(h,m)=>{let _=0;h.subscribe((0,n.x)(m,v=>{const E=_++;d.call(r,v,E,h)&&(m.next(p?E:v),m.complete())},()=>{m.next(p?-1:void 0),m.complete()}))}}(d,r,"value"))}},50590:(R,c,e)=>{"use strict";e.d(c,{P:()=>a});var t=e(86805),n=e(39300),o=e(95698),i=e(46590),d=e(18068),r=e(44671);function a(p,h){const m=arguments.length>=2;return _=>_.pipe(p?(0,n.h)((v,E)=>p(v,E,_)):r.y,(0,o.q)(1),m?(0,i.d)(h):(0,d.T)(()=>new t.K))}},38502:(R,c,e)=>{"use strict";e.d(c,{l:()=>i});var t=e(54482),n=e(25403),o=e(25032);function i(){return(0,t.e)((d,r)=>{d.subscribe((0,n.x)(r,o.Z))})}},13103:(R,c,e)=>{"use strict";e.d(c,{Z:()=>a});var t=e(86805),n=e(39300),o=e(52035),i=e(18068),d=e(46590),r=e(44671);function a(p,h){const m=arguments.length>=2;return _=>_.pipe(p?(0,n.h)((v,E)=>p(v,E,_)):r.y,(0,o.h)(1),m?(0,d.d)(h):(0,i.T)(()=>new t.K))}},54004:(R,c,e)=>{"use strict";e.d(c,{U:()=>o});var t=e(54482),n=e(25403);function o(i,d){return(0,t.e)((r,a)=>{let p=0;r.subscribe((0,n.x)(a,h=>
1{a.next(i.call(d,h,p++))}))})}},69718:(R,c,e)=>{"use strict";e.d(c,{h:()=>n});var t=e(54004);function n(o){return(0,t.U)(()=>o)}},8189:(R,c,e)=>{"use strict";e.d(c,{J:()=>o});var t=e(86099),n=e(44671);function o(i=1/0){return(0,t.z)(n.y,i)}},72733:(R,c,e)=>{"use strict";e.d(c,{p:()=>i});var t=e(38421),n=e(39672),o=e(25403);function i(d,r,a,p,h,m,_,v){const E=[];let O=0,b=0,M=!1;const P=()=>{M&&!E.length&&!O&&r.complete()},D=C=>O<p?l(C):E.push(C),l=C=>{m&&r.next(C),O++;let I=!1;(0,t.Xf)(a(C,b++)).subscribe((0,o.x)(r,g=>{h?.(g),m?D(g):r.next(g)},()=>{I=!0},void 0,()=>{if(I)try{for(O--;E.length&&O<p;){const g=E.shift();_?(0,n.f)(r,_,()=>l(g)):l(g)}P()}catch(g){r.error(g)}}))};return d.subscribe((0,o.x)(r,D,()=>{M=!0,P()})),()=>{v?.()}}},86099:(R,c,e)=>{"use strict";e.d(c,{z:()=>r});var t=e(54004),n=e(38421),o=e(54482),i=e(72733),d=e(30576);function r(a,p,h=1/0){return(0,d.m)(p)?r((m,_)=>(0,t.U)((v,E)=>p(m,v,_,E))((0,n.Xf)(a(m,_))),h):("number"==typeof p&&(h=p),(0,o.e)((m,_)=>(0,i.p)(m,_,a,h)))}},85363:(R,c,e)=>{"use strict";e.d(c,{Q:()=>i});var t=e(39672),n=e(54482),o=e(25403);function i(d,r=0){return(0,n.e)((a,p)=>{a.subscribe((0,o.x)(p,h=>(0,t.f)(p,d,()=>p.next(h),r),()=>(0,t.f)(p,d,()=>p.complete(),r),h=>(0,t.f)(p,d,()=>p.error(h),r)))})}},70207:(R,c,e)=>{"use strict";e.d(c,{u:()=>o});var t=e(57359),n=e(54482);function o(i,d){return(0,n.e)((0,t.U)(i,d,arguments.length>=2,!1,!0))}},38343:(R,c,e)=>{"use strict";e.d(c,{x:()=>o});var t=e(54482),n=e(25403);function o(){return(0,t.e)((i,d)=>{let r=null;i._refCount++;const a=(0,n.x)(d,void 0,void 0,void 0,()=>{if(!i||i._refCount<=0||0<--i._refCount)return void(r=null);const p=i._connection,h=r;r=null,p&&(!h||p===h)&&p.unsubscribe(),d.unsubscribe()});i.subscribe(a),a.closed||(r=i.connect())})}},22940:(R,c,e)=>{"use strict";e.d(c,{R:()=>o});var t=e(54482),n=e(57359);function o(i,d){return(0,t.e)((0,n.U)(i,d,arguments.length>=2,!0))}},57359:(R,c,e)=>{"use strict";e.d(c,{U:()=>n});var t=e(25403);function n(o,i,d,r,a){return(p,h)=>{let m=d,_=i,v=0;p.subscribe((0,t.x)(h,E=>{const O=v++;_=m?o(_,E,O):(m=!0,E),r&&h.next(_)},a&&(()=>{m&&h.next(_),h.complete()})))}}},13099:(R,c,e)=>{"use strict";e.d(c,{B:()=>d});var t=e(38421),n=e(77579),o=e(70930),i=e(54482);function d(a={}){const{connector:p=(()=>new n.x),resetOnError:h=!0,resetOnComplete:m=!0,resetOnRefCountZero:_=!0}=a;return v=>{let E,O,b,M=0,P=!1,D=!1;const l=()=>{O?.unsubscribe(),O=void 0},C=()=>{l(),E=b=void 0,P=D=!1},I=()=>{const g=E;C(),g?.unsubscribe()};return(0,i.e)((g,B)=>{M++,!D&&!P&&l();const L=b=b??p();B.add(()=>{M--,0===M&&!D&&!P&&(O=r(I,_))}),L.subscribe(B),!E&&M>0&&(E=new o.Hp({next:V=>L.next(V),error:V=>{D=!0,l(),O=r(C,h,V),L.error(V)},complete:()=>
1{P=!0,l(),O=r(C,m),L.complete()}}),(0,t.Xf)(g).subscribe(E))})(v)}}function r(a,p,...h){if(!0===p)return void a();if(!1===p)return;const m=new o.Hp({next:()=>{m.unsubscribe(),a()}});return(0,t.Xf)(p(...h)).subscribe(m)}},34782:(R,c,e)=>{"use strict";e.d(c,{d:()=>o});var t=e(4707),n=e(13099);function o(i,d,r){let a,p=!1;return i&&"object"==typeof i?({bufferSize:a=1/0,windowTime:d=1/0,refCount:p=!1,scheduler:r}=i):a=i??1/0,(0,n.B)({connector:()=>new t.t(a,d,r),resetOnError:!0,resetOnComplete:!1,resetOnRefCountZero:p})}},35684:(R,c,e)=>{"use strict";e.d(c,{T:()=>n});var t=e(39300);function n(o){return(0,t.h)((i,d)=>o<=d)}},54244:(R,c,e)=>{"use strict";e.d(c,{n:()=>o});var t=e(54482),n=e(25403);function o(i){return(0,t.e)((d,r)=>{let a=!1,p=0;d.subscribe((0,n.x)(r,h=>(a||(a=!i(h,p++)))&&r.next(h)))})}},68675:(R,c,e)=>{"use strict";e.d(c,{O:()=>i});var t=e(71350),n=e(63269),o=e(54482);function i(...d){const r=(0,n.yG)(d);return(0,o.e)((a,p)=>{(r?(0,t.z)(d,a,r):(0,t.z)(d,a)).subscribe(p)})}},63900:(R,c,e)=>{"use strict";e.d(c,{w:()=>i});var t=e(38421),n=e(54482),o=e(25403);function i(d,r){return(0,n.e)((a,p)=>{let h=null,m=0,_=!1;const v=()=>_&&!h&&p.complete();a.subscribe((0,o.x)(p,E=>{h?.unsubscribe();let O=0;const b=m++;(0,t.Xf)(d(E,b)).subscribe(h=(0,o.x)(p,M=>p.next(r?r(E,M,b,O++):M),()=>{h=null,v()}))},()=>{_=!0,v()}))})}},95698:(R,c,e)=>{"use strict";e.d(c,{q:()=>i});var t=e(60515),n=e(54482),o=e(25403);function i(d){return d<=0?()=>t.E:(0,n.e)((r,a)=>{let p=0;r.subscribe((0,o.x)(a,h=>{++p<=d&&(a.next(h),d<=p&&a.complete())}))})}},52035:(R,c,e)=>{"use strict";e.d(c,{h:()=>i});var t=e(60515),n=e(54482),o=e(25403);function i(d){return d<=0?()=>t.E:(0,n.e)((r,a)=>{let p=[];r.subscribe((0,o.x)(a,h=>{p.push(h),d<p.length&&p.shift()},()=>{for(const h of p)a.next(h);a.complete()},void 0,()=>{p=null}))})}},82722:(R,c,e)=>{"use strict";e.d(c,{R:()=>d});var t=e(54482),n=e(25403),o=e(38421),i=e(25032);function d(r){return(0,t.e)((a,p)=>{(0,o.Xf)(r).subscribe((0,n.x)(p,()=>p.complete(),i.Z)),!p.closed&&a.subscribe(p)})}},22529:(R,c,e)=>{"use strict";e.d(c,{o:()=>o});var t=e(54482),n=e(25403);function o(i,d=!1){return(0,t.e)((r,a)=>{let p=0;r.subscribe((0,n.x)(a,h=>{const m=i(h,p++);(m||d)&&a.next(h),!m&&a.complete()}))})}},18505:(R,c,e)=>{"use strict";e.d(c,{b:()=>d});var t=e(30576),n=e(54482),o=e(25403),i=e(44671);function d(r,a,p){const h=(0,t.m)(r)||a||p?{next:r,error:a,complete:p}:r;return h?(0,n.e)((m,_)=>{var v;null===(v=h.subscribe)||void 0===v||v.call(h);let E=!0;m.subscribe((0,o.x)(_,O=>{var b;null===(b=h.next)||void 0===b||b.call(h,O),_.next(O)},()=>{var O;E=!1,null===(O=h.complete)||void 0===O||O.call(h),_.complete()},O=>{var b;E=!1,null===(b=h.error)||void 0===b||b.call(h,O),_.error(O)},()=>{var O,b;E&&(null===(O=h.unsubscribe)||void 0===O||O.call(h)),null===(b=h.finalize)||void 0===b||b.call(h)}))}):i.y}},18068:(R,c,e)=>{"use strict";e.d(c,{T:()=>i});var t=e(86805),n=e(54482),o=e(25403);function i(r=d){return(0,n.e)((a,p)=>{let h=!1;a.subscribe((0,o.x)(p,m=>{h=!0,p.next(m)},()=>h?p.complete():p.error(r())))})}function d(){return new t.K}},32518:(R,c,e)=>{"use strict";e.d(c,{q:()=>i});var t=e(70207),n=e(54482);const o=(d,r)=>(d.push(r),d);function i(){return(0,n.e)((d,r)=>{(0,t.u)(o,[])(d).subscribe(r)})}},11365:(R,c,e)=>{"use strict";e.d(c,{M:()=>a});var t=e(54482),n=e(25403),o=e(38421),i=e(44671),d=e(25032),r=e(63269);function a(...p){const h=(0,r.jO)(p);return(0,t.e)((m,_)=>{const v=p.length,E=new Array(v);let O=p.map(()=>!1),b=!1;for(let M=0;M<v;M++)(0,o.Xf)(p[M]).subscribe((0,n.x)(_,P=>{E[M]=P,!b&&!O[M]&&(O[M]=!0,(b=O.every(i.y))&&(O=null))},d.Z));m.subscribe((0,n.x)(_,M=>{if(b){const P=[M,...E];_.next(h?h(...P):P)}}))})}},84408:(R,c,e)=>{"use strict";e.d(c,{o:()=>d});var t=e(50727);class n extends t.w0{constructor(a,p){super()}schedule(a,p=0){return this}}const o={setInterval(r,a,...p){const{delegate:h}=o;return h?.setInterval?h.setInterval(r,a,...p):setInterval(r,a,...p)},clearInterval(r){const{delegate:a}=o;return(a?.clearInterval||clearInterval)(r)},delegate:void 0};var i=e(38737);
1class d extends n{constructor(a,p){super(a,p),this.scheduler=a,this.work=p,this.pending=!1}schedule(a,p=0){var h;if(this.closed)return this;this.state=a;const m=this.id,_=this.scheduler;return null!=m&&(this.id=this.recycleAsyncId(_,m,p)),this.pending=!0,this.delay=p,this.id=null!==(h=this.id)&&void 0!==h?h:this.requestAsyncId(_,this.id,p),this}requestAsyncId(a,p,h=0){return o.setInterval(a.flush.bind(a,this),h)}recycleAsyncId(a,p,h=0){if(null!=h&&this.delay===h&&!1===this.pending)return p;null!=p&&o.clearInterval(p)}execute(a,p){if(this.closed)return new Error("executing a cancelled action");this.pending=!1;const h=this._execute(a,p);if(h)return h;!1===this.pending&&null!=this.id&&(this.id=this.recycleAsyncId(this.scheduler,this.id,null))}_execute(a,p){let m,h=!1;try{this.work(a)}catch(_){h=!0,m=_||new Error("Scheduled action threw falsy error")}if(h)return this.unsubscribe(),m}unsubscribe(){if(!this.closed){const{id:a,scheduler:p}=this,{actions:h}=p;this.work=this.state=this.scheduler=null,this.pending=!1,(0,i.P)(h,this),null!=a&&(this.id=this.recycleAsyncId(p,a,null)),this.delay=null,super.unsubscribe()}}}},97565:(R,c,e)=>{"use strict";e.d(c,{v:()=>o});var t=e(26063);class n{constructor(d,r=n.now){this.schedulerActionCtor=d,this.now=r}schedule(d,r=0,a){return new this.schedulerActionCtor(this,d).schedule(a,r)}}n.now=t.l.now;class o extends n{constructor(d,r=n.now){super(d,r),this.actions=[],this._active=!1}flush(d){const{actions:r}=this;if(this._active)return void r.push(d);let a;this._active=!0;do{if(a=d.execute(d.state,d.delay))break}while(d=r.shift());if(this._active=!1,a){for(;d=r.shift();)d.unsubscribe();throw a}}}},34986:(R,c,e)=>{"use strict";e.d(c,{P:()=>i,z:()=>o});var t=e(84408);const o=new(e(97565).v)(t.o),i=o},26063:(R,c,e)=>{"use strict";e.d(c,{l:()=>t});const t={now:()=>(t.delegate||Date).now(),delegate:void 0}},233:(R,c,e)=>{"use strict";e.d(c,{N:()=>d});var t=e(84408),o=e(97565);const d=new class i extends o.v{}(class n extends t.o{constructor(p,h){super(p,h),this.scheduler=p,this.work=h}schedule(p,h=0){return h>0?super.schedule(p,h):(this.delay=h,this.state=p,this.scheduler.flush(this),this)}execute(p,h){return h>0||this.closed?super.execute(p,h):this._execute(p,h)}requestAsyncId(p,h,m=0){return null!=m&&m>0||null==m&&this.delay>0?super.requestAsyncId(p,h,m):(p.flush(this),0)}})},43410:(R,c,e)=>{"use strict";e.d(c,{z:()=>t});const t={setTimeout(n,o,...i){const{delegate:d}=t;return d?.setTimeout?d.setTimeout(n,o,...i):setTimeout(n,o,...i)},clearTimeout(n){const{delegate:o}=t;return(o?.clearTimeout||clearTimeout)(n)},delegate:void 0}},2202:(R,c,e)=>{"use strict";e.d(c,{h:()=>n});const n=function t(){return"function"==typeof Symbol&&Symbol.iterator?Symbol.iterator:"@@iterator"}()},48822:(R,c,e)=>{"use strict";e.d(c,{L:()=>t});const t="function"==typeof Symbol&&Symbol.observable||"@@observable"},86805:(R,c,e)=>{"use strict";e.d(c,{K:()=>n});const n=(0,e(83888).d)(o=>function(){o(this),this.name="EmptyError",this.message="no elements in sequence"})},63269:(R,c,e)=>{"use strict";e.d(c,{_6:()=>r,jO:()=>i,yG:()=>d});var t=e(30576),n=e(93532);function o(a){return a[a.length-1]}function i(a){return(0,t.m)(o(a))?a.pop():void 0}function d(a){return(0,n.K)(o(a))?a.pop():void 0}function r(a,p){return"number"==typeof o(a)?a.pop():p}},54742:(R,c,e)=>{"use strict";e.d(c,{D:()=>d});const{isArray:t}=Array,{getPrototypeOf:n,prototype:o,keys:i}=Object;function d(a){if(1===a.length){const p=a[0];if(t(p))return{args:p,keys:null};if(function r(a){return a&&"object"==typeof a&&n(a)===o}(p)){const h=i(p);return{args:h.map(m=>p[m]),keys:h}}}return{args:a,keys:null}}},75797:(R,c,e)=>{"use strict";e.d(c,{k:()=>n});const{isArray:t}=Array;function n(o){return 1===o.length&&t(o[0])?o[0]:o}},38737:(R,c,e)=>{"use strict";function t(n,o){if(n){const i=n.indexOf(o);0<=i&&n.splice(i,1)}}e.d(c,{P:()=>t})},83888:(R,c,e)=>{"use strict";function t(n){const i=n(d=>{Error.call(d),d.stack=(new Error).stack});return i.prototype=Object.create(Error.prototype),i.prototype.constructor=i,i}e.d(c,{d:()=>t})},31810:(R,c,e)=>{"use strict";function t(n,o){return n.reduce((i,d,r)=>(i[d]=o[r],i),{})}e.d(c,{n:()=>t})},72806:(R,c,e)=>{"use strict";e.d(c,{O:()=>i,x:()=>o});var t=e(42416);let n=null;
1function o(d){if(t.v.useDeprecatedSynchronousErrorHandling){const r=!n;if(r&&(n={errorThrown:!1,error:null}),d(),r){const{errorThrown:a,error:p}=n;if(n=null,a)throw p}}else d()}function i(d){t.v.useDeprecatedSynchronousErrorHandling&&n&&(n.errorThrown=!0,n.error=d)}},39672:(R,c,e)=>{"use strict";function t(n,o,i,d=0,r=!1){const a=o.schedule(function(){i(),r?n.add(this.schedule(null,d)):this.unsubscribe()},d);if(n.add(a),!r)return a}e.d(c,{f:()=>t})},44671:(R,c,e)=>{"use strict";function t(n){return n}e.d(c,{y:()=>t})},81144:(R,c,e)=>{"use strict";e.d(c,{z:()=>t});const t=n=>n&&"number"==typeof n.length&&"function"!=typeof n},12206:(R,c,e)=>{"use strict";e.d(c,{D:()=>n});var t=e(30576);function n(o){return Symbol.asyncIterator&&(0,t.m)(o?.[Symbol.asyncIterator])}},30576:(R,c,e)=>{"use strict";function t(n){return"function"==typeof n}e.d(c,{m:()=>t})},93670:(R,c,e)=>{"use strict";e.d(c,{c:()=>o});var t=e(48822),n=e(30576);function o(i){return(0,n.m)(i[t.L])}},26495:(R,c,e)=>{"use strict";e.d(c,{T:()=>o});var t=e(2202),n=e(30576);function o(i){return(0,n.m)(i?.[t.h])}},45191:(R,c,e)=>{"use strict";e.d(c,{b:()=>o});var t=e(69751),n=e(30576);function o(i){return!!i&&(i instanceof t.y||(0,n.m)(i.lift)&&(0,n.m)(i.subscribe))}},28239:(R,c,e)=>{"use strict";e.d(c,{t:()=>n});var t=e(30576);function n(o){return(0,t.m)(o?.then)}},53260:(R,c,e)=>{"use strict";e.d(c,{L:()=>i,Q:()=>o});var t=e(70655),n=e(30576);function o(d){return(0,t.__asyncGenerator)(this,arguments,function*(){const a=d.getReader();try{for(;;){const{value:p,done:h}=yield(0,t.__await)(a.read());if(h)return yield(0,t.__await)(void 0);yield yield(0,t.__await)(p)}}finally{a.releaseLock()}})}function i(d){return(0,n.m)(d?.getReader)}},93532:(R,c,e)=>{"use strict";e.d(c,{K:()=>n});var t=e(30576);function n(o){return o&&(0,t.m)(o.schedule)}},54482:(R,c,e)=>{"use strict";e.d(c,{A:()=>n,e:()=>o});var t=e(30576);function n(i){return(0,t.m)(i?.lift)}function o(i){return d=>{if(n(d))return d.lift(function(r){try{return i(r,this)}catch(a){this.error(a)}});throw new TypeError("Unable to lift unknown Observable type")}}},83268:(R,c,e)=>{"use strict";e.d(c,{Z:()=>i});var t=e(54004);const{isArray:n}=Array;function i(d){return(0,t.U)(r=>function o(d,r){return n(r)?d(...r):d(r)}(d,r))}},25032:(R,c,e)=>{"use strict";function t(){}e.d(c,{Z:()=>t})},89635:(R,c,e)=>{"use strict";e.d(c,{U:()=>o,z:()=>n});var t=e(44671);function n(...i){return o(i)}function o(i){return 0===i.length?t.y:1===i.length?i[0]:function(r){return i.reduce((a,p)=>p(a),r)}}},87849:(R,c,e)=>{"use strict";e.d(c,{h:()=>o});var t=e(42416),n=e(43410);function o(i){n.z.setTimeout(()=>{const{onUnhandledError:d}=t.v;if(!d)throw i;d(i)})}},44532:(R,c,e)=>{"use strict";function t(n){return new TypeError(`You provided ${null!==n&&"object"==typeof n?"an invalid object":`'${n}'`} where a stream was expected. You can provide an Observable, Promise, ReadableStream, Array, AsyncIterable, or Iterable.`)}e.d(c,{z:()=>t})},81042:(R,c,e)=>{"use strict";e.d(c,{Z:()=>v});var t,n=new Uint8Array(16);function o(){if(!t&&!(t=typeof crypto<"u"&&crypto.getRandomValues&&crypto.getRandomValues.bind(crypto)||typeof msCrypto<"u"&&"function"==typeof msCrypto.getRandomValues&&msCrypto.getRandomValues.bind(msCrypto)))throw new Error("crypto.getRandomValues() not supported. See https://github.com/uuidjs/uuid#getrandomvalues-not-supported");return t(n)}const i=/^(?:[0-9a-f]{8}-[0-9a-f]{4}-[1-5][0-9a-f]{3}-[89ab][0-9a-f]{3}-[0-9a-f]{12}|00000000-0000-0000-0000-000000000000)$/i,r=function d(E){return"string"==typeof E&&i.test(E)};for(var a=[],p=0;p<256;++p)a.push((p+256).toString(16).substr(1));const v=function _(E,O,b){var M=(E=E||{}).random||(E.rng||o)();if(M[6]=15&M[6]|64,M[8]=63&M[8]|128,O){b=b||0;for(var P=0;P<16;++P)O[b+P]=M[P];return O}return function h(E){var O=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0,b=(a[E[O+0]]+a[E[O+1]]+a[E[O+2]]+a[E[O+3]]+"-"+a[E[O+4]]+a[E[O+5]]+"-"+a[E[O+6]]+a[E[O+7]]+"-"+a[E[O+8]]+a[E[O+9]]+"-"+a[E[O+10]]+a[E[O+11]]+a[E[O+12]]+a[E[O+13]]+a[E[O+14]]+a[E[O+15]]).toLowerCase();
1if(!r(b))throw TypeError("Stringified UUID is invalid");return b}(M)}},88583:()=>{"use strict";!function(tt){const Tt=tt.performance;function At(We){Tt&&Tt.mark&&Tt.mark(We)}function Rt(We,Ne){Tt&&Tt.measure&&Tt.measure(We,Ne)}At("Zone");const Pt=tt.__Zone_symbol_prefix||"__zone_symbol__";function xt(We){return Pt+We}const lt=!0===tt[xt("forceDuplicateZoneCheck")];if(tt.Zone){if(lt||"function"!=typeof tt.Zone.__symbol__)throw new Error("Zone already loaded.");return tt.Zone}let Ut=(()=>{class We{static assertZonePatched(){if(tt.Promise!==un.ZoneAwarePromise)throw new Error("Zone.js has detected that ZoneAwarePromise `(window|global).Promise` has been overwritten.\nMost likely cause is that a Promise polyfill has been loaded after Zone.js (Polyfilling Promise api is not necessary when zone.js is loaded. If you must load one, do so before loading zone.js.)")}static get root(){let ze=We.current;for(;ze.parent;)ze=ze.parent;return ze}static get current(){return ht.zone}static get currentTask(){return je}static __load_patch(ze,bt,En=!1){if(un.hasOwnProperty(ze)){if(!En&<)throw Error("Already loaded patch: "+ze)}else if(!tt["__Zone_disable_"+ze]){const wn="Zone:"+ze;At(wn),un[ze]=bt(tt,We,dt),Rt(wn,wn)}}get parent(){return this._parent}get name(){return this._name}constructor(ze,bt){this._parent=ze,this._name=bt?bt.name||"unnamed":"<root>",this._properties=bt&&bt.properties||{},this._zoneDelegate=new ot(this,this._parent&&this._parent._zoneDelegate,bt)}get(ze){const bt=this.getZoneWith(ze);if(bt)return bt._properties[ze]}getZoneWith(ze){let bt=this;for(;bt;){if(bt._properties.hasOwnProperty(ze))return bt;bt=bt._parent}return null}fork(ze){if(!ze)throw new Error("ZoneSpec required!");return this._zoneDelegate.fork(this,ze)}wrap(ze,bt){if("function"!=typeof ze)throw new Error("Expecting function got: "+ze);const En=this._zoneDelegate.intercept(this,ze,bt),wn=this;return function(){return wn.runGuarded(En,this,arguments,bt)}}run(ze,bt,En,wn){ht={parent:ht,zone:this};try{return this._zoneDelegate.invoke(this,ze,bt,En,wn)}finally{ht=ht.parent}}runGuarded(ze,bt=null,En,wn){ht={parent:ht,zone:this};try{try{return this._zoneDelegate.invoke(this,ze,bt,En,wn)}catch(nr){if(this._zoneDelegate.handleError(this,nr))throw nr}}finally{ht=ht.parent}}runTask(ze,bt,En){if(ze.zone!=this)throw new Error("A task can only be run in the zone of creation! (Creation: "+(ze.zone||st).name+"; Execution: "+this.name+")");if(ze.state===xe&&(ze.type===qt||ze.type===Wt))return;const wn=ze.state!=at;wn&&ze._transitionTo(at,qe),ze.runCount++;const nr=je;je=ze,ht={parent:ht,zone:this};try{ze.type==Wt&&ze.data&&!ze.data.isPeriodic&&(ze.cancelFn=void 0);try{return this._zoneDelegate.invokeTask(this,ze,bt,En)}catch(Cn){if(this._zoneDelegate.handleError(this,Cn))throw Cn}}finally{ze.state!==xe&&ze.state!==$t&&(ze.type==qt||ze.data&&ze.data.isPeriodic?wn&&ze._transitionTo(qe,at):(ze.runCount=0,this._updateTaskCount(ze,-1),wn&&ze._transitionTo(xe,at,xe))),ht=ht.parent,je=nr}}scheduleTask(ze){if(ze.zone&&ze.zone!==this){let En=this;for(;En;){if(En===ze.zone)throw Error(`can not reschedule task to ${this.name} which is descendants of the original zone ${ze.zone.name}`);En=En.parent}}ze._transitionTo(Le,xe);const bt=[];ze._zoneDelegates=bt,ze._zone=this;try{ze=this._zoneDelegate.scheduleTask(this,ze)}catch(En){throw ze._transitionTo($t,Le,xe),this._zoneDelegate.handleError(this,En),En}return ze._zoneDelegates===bt&&this._updateTaskCount(ze,1),ze.state==Le&&ze._transitionTo(qe,Le),ze}scheduleMicroTask(ze,bt,En,wn){return this.scheduleTask(new gt(rn,ze,bt,En,wn,void 0))}scheduleMacroTask(ze,bt,En,wn,nr){return this.scheduleTask(new gt(Wt,ze,bt,En,wn,nr))}scheduleEventTask(ze,bt,En,wn,nr){return this.scheduleTask(new gt(qt,ze,bt,En,wn,nr))}cancelTask(ze){if(ze.zone!=this)throw new Error("A task can only be cancelled in the zone of creation! (Creation: "+(ze.zone||st).name+"; Execution: "+this.name+")");if(ze.state===qe||ze.state===at){ze._transitionTo(Jt,qe,at);try{this._zoneDelegate.cancelTask(this,ze)}catch(bt){throw ze._transitionTo($t,Jt),this._zoneDelegate.handleError(this,bt),bt}return this._updateTaskCount(ze,-1),ze._transitionTo(xe,Jt),ze.runCount=0,ze}}_updateTaskCount(ze,bt){const En=ze._zoneDelegates;-1==bt&&(ze._zoneDelegates=null);for(let wn=0;wn<En.length;wn++)En[wn]._updateTaskCount(ze.type,bt)}}return We.__symbol__=xt,We})();const ke={name:"",onHasTask:(We,Ne,ze,bt)=>We.hasTask(ze,bt),onScheduleTask:(We,Ne,ze,bt)=>We.scheduleTask(ze,bt),onInvokeTask:(We,Ne,ze,bt,En,wn)=>We.invokeTask(ze,bt,En,wn),onCancelTask:(We,Ne,ze,bt)=>We.cancelTask(ze,bt)};
1class ot{constructor(Ne,ze,bt){this._taskCounts={microTask:0,macroTask:0,eventTask:0},this.zone=Ne,this._parentDelegate=ze,this._forkZS=bt&&(bt&&bt.onFork?bt:ze._forkZS),this._forkDlgt=bt&&(bt.onFork?ze:ze._forkDlgt),this._forkCurrZone=bt&&(bt.onFork?this.zone:ze._forkCurrZone),this._interceptZS=bt&&(bt.onIntercept?bt:ze._interceptZS),this._interceptDlgt=bt&&(bt.onIntercept?ze:ze._interceptDlgt),this._interceptCurrZone=bt&&(bt.onIntercept?this.zone:ze._interceptCurrZone),this._invokeZS=bt&&(bt.onInvoke?bt:ze._invokeZS),this._invokeDlgt=bt&&(bt.onInvoke?ze:ze._invokeDlgt),this._invokeCurrZone=bt&&(bt.onInvoke?this.zone:ze._invokeCurrZone),this._handleErrorZS=bt&&(bt.onHandleError?bt:ze._handleErrorZS),this._handleErrorDlgt=bt&&(bt.onHandleError?ze:ze._handleErrorDlgt),this._handleErrorCurrZone=bt&&(bt.onHandleError?this.zone:ze._handleErrorCurrZone),this._scheduleTaskZS=bt&&(bt.onScheduleTask?bt:ze._scheduleTaskZS),this._scheduleTaskDlgt=bt&&(bt.onScheduleTask?ze:ze._scheduleTaskDlgt),this._scheduleTaskCurrZone=bt&&(bt.onScheduleTask?this.zone:ze._scheduleTaskCurrZone),this._invokeTaskZS=bt&&(bt.onInvokeTask?bt:ze._invokeTaskZS),this._invokeTaskDlgt=bt&&(bt.onInvokeTask?ze:ze._invokeTaskDlgt),this._invokeTaskCurrZone=bt&&(bt.onInvokeTask?this.zone:ze._invokeTaskCurrZone),this._cancelTaskZS=bt&&(bt.onCancelTask?bt:ze._cancelTaskZS),this._cancelTaskDlgt=bt&&(bt.onCancelTask?ze:ze._cancelTaskDlgt),this._cancelTaskCurrZone=bt&&(bt.onCancelTask?this.zone:ze._cancelTaskCurrZone),this._hasTaskZS=null,this._hasTaskDlgt=null,this._hasTaskDlgtOwner=null,this._hasTaskCurrZone=null;const En=bt&&bt.onHasTask;(En||ze&&ze._hasTaskZS)&&(this._hasTaskZS=En?bt:ke,this._hasTaskDlgt=ze,this._hasTaskDlgtOwner=this,this._hasTaskCurrZone=Ne,bt.onScheduleTask||(this._scheduleTaskZS=ke,this._scheduleTaskDlgt=ze,this._scheduleTaskCurrZone=this.zone),bt.onInvokeTask||(this._invokeTaskZS=ke,this._invokeTaskDlgt=ze,this._invokeTaskCurrZone=this.zone),bt.onCancelTask||(this._cancelTaskZS=ke,this._cancelTaskDlgt=ze,this._cancelTaskCurrZone=this.zone))}fork(Ne,ze){return this._forkZS?this._forkZS.onFork(this._forkDlgt,this.zone,Ne,ze):new Ut(Ne,ze)}intercept(Ne,ze,bt){return this._interceptZS?this._interceptZS.onIntercept(this._interceptDlgt,this._interceptCurrZone,Ne,ze,bt):ze}invoke(Ne,ze,bt,En,wn){return this._invokeZS?this._invokeZS.onInvoke(this._invokeDlgt,this._invokeCurrZone,Ne,ze,bt,En,wn):ze.apply(bt,En)}handleError(Ne,ze){return!this._handleErrorZS||this._handleErrorZS.onHandleError(this._handleErrorDlgt,this._handleErrorCurrZone,Ne,ze)}scheduleTask(Ne,ze){let bt=ze;if(this._scheduleTaskZS)this._hasTaskZS&&bt._zoneDelegates.push(this._hasTaskDlgtOwner),bt=this._scheduleTaskZS.onScheduleTask(this._scheduleTaskDlgt,this._scheduleTaskCurrZone,Ne,ze),bt||(bt=ze);else if(ze.scheduleFn)ze.scheduleFn(ze);else{if(ze.type!=rn)throw new Error("Task is missing scheduleFn.");wt(ze)}return bt}invokeTask(Ne,ze,bt,En){return this._invokeTaskZS?this._invokeTaskZS.onInvokeTask(this._invokeTaskDlgt,this._invokeTaskCurrZone,Ne,ze,bt,En):ze.callback.apply(bt,En)}cancelTask(Ne,ze){let bt;if(this._cancelTaskZS)bt=this._cancelTaskZS.onCancelTask(this._cancelTaskDlgt,this._cancelTaskCurrZone,Ne,ze);else{if(!ze.cancelFn)throw Error("Task is not cancelable");bt=ze.cancelFn(ze)}return bt}hasTask(Ne,ze){try{this._hasTaskZS&&this._hasTaskZS.onHasTask(this._hasTaskDlgt,this._hasTaskCurrZone,Ne,ze)}catch(bt){this.handleError(Ne,bt)}}_updateTaskCount(Ne,ze){const bt=this._taskCounts,En=bt[Ne],wn=bt[Ne]=En+ze;if(wn<0)throw new Error("More tasks executed then were scheduled.");0!=En&&0!=wn||this.hasTask(this.zone,{microTask:bt.microTask>0,macroTask:bt.macroTask>0,eventTask:bt.eventTask>0,change:Ne})}}class gt{constructor(Ne,ze,bt,En,wn,nr){if(this._zone=null,this.runCount=0,this._zoneDelegates=null,this._state="notScheduled",this.type=Ne,this.source=ze,this.data=En,this.scheduleFn=wn,this.cancelFn=nr,!bt)throw new Error("callback is not defined");this.callback=bt;const Cn=this;this.invoke=Ne===qt&&En&&En.useG?gt.invokeTask:function(){return gt.invokeTask.call(tt,Cn,this,arguments)}}static invokeTask(Ne,ze,bt){Ne||(Ne=this),vt++;try{return Ne.runCount++,Ne.zone.runTask(Ne,ze,bt)}finally{1==vt&&Xt(),vt--}}get zone(){return this._zone}get state(){return this._state}cancelScheduleRequest(){this._transitionTo(xe,Le)}_transitionTo(Ne,ze,bt){if(this._state!==ze&&this._state!==bt)throw new Error(`${this.type} '${this.source}': can not transition to '${Ne}', expecting state '${ze}'${bt?" or '"+bt+"'":""}, was '${this._state}'.`);this._state=Ne,Ne==xe&&(this._zoneDelegates=null)}toString(){return this.data&&typeof this.data.handleId<"u"?this.data.handleId.toString():Object.prototype.toString.call(this)}
1toJSON(){return{type:this.type,state:this.state,source:this.source,zone:this.zone.name,runCount:this.runCount}}}const zt=xt("setTimeout"),hn=xt("Promise"),Vt=xt("then");let Ft,$n=[],Dt=!1;function St(We){if(Ft||tt[hn]&&(Ft=tt[hn].resolve(0)),Ft){let Ne=Ft[Vt];Ne||(Ne=Ft.then),Ne.call(Ft,We)}else tt[zt](We,0)}function wt(We){0===vt&&0===$n.length&&St(Xt),We&&$n.push(We)}function Xt(){if(!Dt){for(Dt=!0;$n.length;){const We=$n;$n=[];for(let Ne=0;Ne<We.length;Ne++){const ze=We[Ne];try{ze.zone.runTask(ze,null,null)}catch(bt){dt.onUnhandledError(bt)}}}dt.microtaskDrainDone(),Dt=!1}}const st={name:"NO ZONE"},xe="notScheduled",Le="scheduling",qe="scheduled",at="running",Jt="canceling",$t="unknown",rn="microTask",Wt="macroTask",qt="eventTask",un={},dt={symbol:xt,currentZoneFrame:()=>ht,onUnhandledError:Zt,microtaskDrainDone:Zt,scheduleMicroTask:wt,showUncaughtError:()=>!Ut[xt("ignoreConsoleErrorUncaughtError")],patchEventTarget:()=>[],patchOnProperties:Zt,patchMethod:()=>Zt,bindArguments:()=>[],patchThen:()=>Zt,patchMacroTask:()=>Zt,patchEventPrototype:()=>Zt,isIEOrEdge:()=>!1,getGlobalObjects:()=>{},ObjectDefineProperty:()=>Zt,ObjectGetOwnPropertyDescriptor:()=>{},ObjectCreate:()=>{},ArraySlice:()=>[],patchClass:()=>Zt,wrapWithCurrentZone:()=>Zt,filterProperties:()=>[],attachOriginToPatched:()=>Zt,_redefineProperty:()=>Zt,patchCallbacks:()=>Zt,nativeScheduleMicroTask:St};let ht={parent:null,zone:new Ut(null,null)},je=null,vt=0;function Zt(){}Rt("Zone","Zone"),tt.Zone=Ut}(typeof window<"u"&&window||typeof self<"u"&&self||global);const R=Object.getOwnPropertyDescriptor,c=Object.defineProperty,e=Object.getPrototypeOf,t=Object.create,n=Array.prototype.slice,o="addEventListener",i="removeEventListener",d=Zone.__symbol__(o),r=Zone.__symbol__(i),a="true",p="false",h=Zone.__symbol__("");function m(tt,Tt){return Zone.current.wrap(tt,Tt)}function _(tt,Tt,At,Rt,Pt){return Zone.current.scheduleMacroTask(tt,Tt,At,Rt,Pt)}const v=Zone.__symbol__,E=typeof window<"u",O=E?window:void 0,b=E&&O||"object"==typeof self&&self||global,M="removeAttribute";function P(tt,Tt){for(let At=tt.length-1;At>=0;At--)"function"==typeof tt[At]&&(tt[At]=m(tt[At],Tt+"_"+At));return tt}function l(tt){return!tt||!1!==tt.writable&&!("function"==typeof tt.get&&typeof tt.set>"u")}const C=typeof WorkerGlobalScope<"u"&&self instanceof WorkerGlobalScope,I=!("nw"in b)&&typeof b.process<"u"&&"[object process]"==={}.toString.call(b.process),g=!I&&!C&&!(!E||!O.HTMLElement),B=typeof b.process<"u"&&"[object process]"==={}.toString.call(b.process)&&!C&&!(!E||!O.HTMLElement),L={},V=function(tt){if(!(tt=tt||b.event))return;let Tt=L[tt.type];Tt||(Tt=L[tt.type]=v("ON_PROPERTY"+tt.type));const At=this||tt.target||b,Rt=At[Tt];let Pt;return g&&At===O&&"error"===tt.type?(Pt=Rt&&Rt.call(this,tt.message,tt.filename,tt.lineno,tt.colno,tt.error),!0===Pt&&tt.preventDefault()):(Pt=Rt&&Rt.apply(this,arguments),null!=Pt&&!Pt&&tt.preventDefault()),Pt};function Y(tt,Tt,At){let Rt=R(tt,Tt);if(!Rt&&At&&R(At,Tt)&&(Rt={enumerable:!0,configurable:!0}),!Rt||!Rt.configurable)return;const Pt=v("on"+Tt+"patched");if(tt.hasOwnProperty(Pt)&&tt[Pt])return;delete Rt.writable,delete Rt.value;const xt=Rt.get,lt=Rt.set,Ut=Tt.slice(2);let ke=L[Ut];ke||(ke=L[Ut]=v("ON_PROPERTY"+Ut)),Rt.set=function(ot){let gt=this;!gt&&tt===b&&(gt=b),gt&&("function"==typeof gt[ke]&>.removeEventListener(Ut,V),lt&<.call(gt,null),gt[ke]=ot,"function"==typeof ot&>.addEventListener(Ut,V,!1))},Rt.get=function(){let ot=this;if(!ot&&tt===b&&(ot=b),!ot)return null;const gt=ot[ke];if(gt)return gt;if(xt){let zt=xt.call(this);if(zt)return Rt.set.call(this,zt),"function"==typeof ot[M]&&ot.removeAttribute(Tt),zt}return null},c(tt,Tt,Rt),tt[Pt]=!0}function X(tt,Tt,At){if(Tt)for(let Rt=0;Rt<Tt.length;Rt++)Y(tt,"on"+Tt[Rt],At);else{const Rt=[];for(const Pt in tt)"on"==Pt.slice(0,2)&&Rt.push(Pt);for(let Pt=0;Pt<Rt.length;Pt++)Y(tt,Rt[Pt],At)}}const te=v("originalInstance");function K(tt){const Tt=b[tt];if(!Tt)return;b[v(tt)]=Tt,b[tt]=function(){const Pt=P(arguments,tt);switch(Pt.length){case 0:this[te]=new Tt;break;case 1:this[te]=new Tt(Pt[0]);break;case 2:this[te]=new Tt(Pt[0],Pt[1]);break;case 3:this[te]=new Tt(Pt[0],Pt[1],Pt[2]);break;case 4:this[te]=new Tt(Pt[0],Pt[1],Pt[2],Pt[3]);break;default:throw new Error("Arg list too long.")}},Q(b[tt],Tt);const At=new Tt(function(){});let Rt;
1for(Rt in At)"XMLHttpRequest"===tt&&"responseBlob"===Rt||function(Pt){"function"==typeof At[Pt]?b[tt].prototype[Pt]=function(){return this[te][Pt].apply(this[te],arguments)}:c(b[tt].prototype,Pt,{set:function(xt){"function"==typeof xt?(this[te][Pt]=m(xt,tt+"."+Pt),Q(this[te][Pt],xt)):this[te][Pt]=xt},get:function(){return this[te][Pt]}})}(Rt);for(Rt in Tt)"prototype"!==Rt&&Tt.hasOwnProperty(Rt)&&(b[tt][Rt]=Tt[Rt])}function ee(tt,Tt,At){let Rt=tt;for(;Rt&&!Rt.hasOwnProperty(Tt);)Rt=e(Rt);!Rt&&tt[Tt]&&(Rt=tt);const Pt=v(Tt);let xt=null;if(Rt&&(!(xt=Rt[Pt])||!Rt.hasOwnProperty(Pt))&&(xt=Rt[Pt]=Rt[Tt],l(Rt&&R(Rt,Tt)))){const Ut=At(xt,Pt,Tt);Rt[Tt]=function(){return Ut(this,arguments)},Q(Rt[Tt],xt)}return xt}function ae(tt,Tt,At){let Rt=null;function Pt(xt){const lt=xt.data;return lt.args[lt.cbIdx]=function(){xt.invoke.apply(this,arguments)},Rt.apply(lt.target,lt.args),xt}Rt=ee(tt,Tt,xt=>function(lt,Ut){const ke=At(lt,Ut);return ke.cbIdx>=0&&"function"==typeof Ut[ke.cbIdx]?_(ke.name,Ut[ke.cbIdx],ke,Pt):xt.apply(lt,Ut)})}function Q(tt,Tt){tt[v("OriginalDelegate")]=Tt}let j=!1,k=!1;function ie(){if(j)return k;j=!0;try{const tt=O.navigator.userAgent;(-1!==tt.indexOf("MSIE ")||-1!==tt.indexOf("Trident/")||-1!==tt.indexOf("Edge/"))&&(k=!0)}catch{}return k}Zone.__load_patch("ZoneAwarePromise",(tt,Tt,At)=>{const Rt=Object.getOwnPropertyDescriptor,Pt=Object.defineProperty,lt=At.symbol,Ut=[],ke=!0===tt[lt("DISABLE_WRAPPING_UNCAUGHT_PROMISE_REJECTION")],ot=lt("Promise"),gt=lt("then"),zt="__creationTrace__";At.onUnhandledError=Cn=>{if(At.showUncaughtError()){const bn=Cn&&Cn.rejection;bn?console.error("Unhandled Promise rejection:",bn instanceof Error?bn.message:bn,"; Zone:",Cn.zone.name,"; Task:",Cn.task&&Cn.task.source,"; Value:",bn,bn instanceof Error?bn.stack:void 0):console.error(Cn)}},At.microtaskDrainDone=()=>{for(;Ut.length;){const Cn=Ut.shift();try{Cn.zone.runGuarded(()=>{throw Cn.throwOriginal?Cn.rejection:Cn})}catch(bn){Vt(bn)}}};const hn=lt("unhandledPromiseRejectionHandler");function Vt(Cn){At.onUnhandledError(Cn);try{const bn=Tt[hn];"function"==typeof bn&&bn.call(this,Cn)}catch{}}function $n(Cn){return Cn&&Cn.then}function Dt(Cn){return Cn}function Ft(Cn){return ze.reject(Cn)}const St=lt("state"),wt=lt("value"),Xt=lt("finally"),st=lt("parentPromiseValue"),xe=lt("parentPromiseState"),Le="Promise.then",qe=null,at=!0,Jt=!1,$t=0;function rn(Cn,bn){return cn=>{try{dt(Cn,bn,cn)}catch(Dn){dt(Cn,!1,Dn)}}}const Wt=function(){let Cn=!1;return function(cn){return function(){Cn||(Cn=!0,cn.apply(null,arguments))}}},qt="Promise resolved with itself",un=lt("currentTaskTrace");function dt(Cn,bn,cn){const Dn=Wt();if(Cn===cn)throw new TypeError(qt);if(Cn[St]===qe){let In=null;try{("object"==typeof cn||"function"==typeof cn)&&(In=cn&&cn.then)}catch(Nn){return Dn(()=>{dt(Cn,!1,Nn)})(),Cn}if(bn!==Jt&&cn instanceof ze&&cn.hasOwnProperty(St)&&cn.hasOwnProperty(wt)&&cn[St]!==qe)je(cn),dt(Cn,cn[St],cn[wt]);else if(bn!==Jt&&"function"==typeof In)try{In.call(cn,Dn(rn(Cn,bn)),Dn(rn(Cn,!1)))}catch(Nn){Dn(()=>{dt(Cn,!1,Nn)})()}else{Cn[St]=bn;const Nn=Cn[wt];if(Cn[wt]=cn,Cn[Xt]===Xt&&bn===at&&(Cn[St]=Cn[xe],Cn[wt]=Cn[st]),bn===Jt&&cn instanceof Error){const Rn=Tt.currentTask&&Tt.currentTask.data&&Tt.currentTask.data[zt];Rn&&Pt(cn,un,{configurable:!0,enumerable:!1,writable:!0,value:Rn})}for(let Rn=0;Rn<Nn.length;)vt(Cn,Nn[Rn++],Nn[Rn++],Nn[Rn++],Nn[Rn++]);if(0==Nn.length&&bn==Jt){Cn[St]=$t;let Rn=cn;try{throw new Error("Uncaught (in promise): "+function xt(Cn){return Cn&&Cn.toString===Object.prototype.toString?(Cn.constructor&&Cn.constructor.name||"")+": "+JSON.stringify(Cn):Cn?Cn.toString():Object.prototype.toString.call(Cn)}(cn)+(cn&&cn.stack?"\n"+cn.stack:""))}catch(Jn){Rn=Jn}ke&&(Rn.throwOriginal=!0),Rn.rejection=cn,Rn.promise=Cn,Rn.zone=Tt.current,Rn.task=Tt.currentTask,Ut.push(Rn),At.scheduleMicroTask()}}}return Cn}const ht=lt("rejectionHandledHandler");function je(Cn){if(Cn[St]===$t){try{const bn=Tt[ht];bn&&"function"==typeof bn&&bn.call(this,{rejection:Cn[wt],promise:Cn})}catch{}Cn[St]=Jt;for(let bn=0;bn<Ut.length;bn++)Cn===Ut[bn].promise&&Ut.splice(bn,1)}}function vt(Cn,bn,cn,Dn,In){je(Cn);const Nn=Cn[St],Rn=Nn?"function"==typeof Dn?Dn:Dt:"function"==typeof In?In:Ft;bn.scheduleMicroTask(Le,()=>{try{const Jn=Cn[wt],zn=!!cn&&Xt===cn[Xt];zn&&(cn[st]=Jn,cn[xe]=Nn);const ur=bn.run(Rn,void 0,zn&&Rn!==Ft&&Rn!==Dt?[]:[Jn]);dt(cn,!0,ur)}catch(Jn){dt(cn,!1,Jn)}},cn)}const We=function(){},Ne=tt.AggregateError;class ze{static toString(){return"function ZoneAwarePromise() { [native code] }"}static resolve(bn){return dt(new this(null),at,bn)}static reject(bn){return dt(new this(null),Jt,bn)}static any(bn){if(!bn||"function"!=typeof bn[Symbol.iterator])return Promise.reject(new Ne([],"All promises were rejected"));const cn=[];let Dn=0;
1try{for(let Rn of bn)Dn++,cn.push(ze.resolve(Rn))}catch{return Promise.reject(new Ne([],"All promises were rejected"))}if(0===Dn)return Promise.reject(new Ne([],"All promises were rejected"));let In=!1;const Nn=[];return new ze((Rn,Jn)=>{for(let zn=0;zn<cn.length;zn++)cn[zn].then(ur=>{In||(In=!0,Rn(ur))},ur=>{Nn.push(ur),Dn--,0===Dn&&(In=!0,Jn(new Ne(Nn,"All promises were rejected")))})})}static race(bn){let cn,Dn,In=new this((Jn,zn)=>{cn=Jn,Dn=zn});function Nn(Jn){cn(Jn)}function Rn(Jn){Dn(Jn)}for(let Jn of bn)$n(Jn)||(Jn=this.resolve(Jn)),Jn.then(Nn,Rn);return In}static all(bn){return ze.allWithCallback(bn)}static allSettled(bn){return(this&&this.prototype instanceof ze?this:ze).allWithCallback(bn,{thenCallback:Dn=>({status:"fulfilled",value:Dn}),errorCallback:Dn=>({status:"rejected",reason:Dn})})}static allWithCallback(bn,cn){let Dn,In,Nn=new this((ur,Rr)=>{Dn=ur,In=Rr}),Rn=2,Jn=0;const zn=[];for(let ur of bn){$n(ur)||(ur=this.resolve(ur));const Rr=Jn;try{ur.then(rr=>{zn[Rr]=cn?cn.thenCallback(rr):rr,Rn--,0===Rn&&Dn(zn)},rr=>{cn?(zn[Rr]=cn.errorCallback(rr),Rn--,0===Rn&&Dn(zn)):In(rr)})}catch(rr){In(rr)}Rn++,Jn++}return Rn-=2,0===Rn&&Dn(zn),Nn}constructor(bn){const cn=this;
1if(!(cn instanceof ze))throw new Error("Must be an instanceof Promise.");cn[St]=qe,cn[wt]=[];try{const Dn=Wt();bn&&bn(Dn(rn(cn,at)),Dn(rn(cn,Jt)))}catch(Dn){dt(cn,!1,Dn)}}get[Symbol.toStringTag](){return"Promise"}get[Symbol.species](){return ze}then(bn,cn){let Dn=this.constructor?.[Symbol.species];(!Dn||"function"!=typeof Dn)&&(Dn=this.constructor||ze);const In=new Dn(We),Nn=Tt.current;return this[St]==qe?this[wt].push(Nn,In,bn,cn):vt(this,Nn,In,bn,cn),In}catch(bn){return this.then(null,bn)}finally(bn){let cn=this.constructor?.[Symbol.species];(!cn||"function"!=typeof cn)&&(cn=ze);const Dn=new cn(We);Dn[Xt]=Xt;const In=Tt.current;return this[St]==qe?this[wt].push(In,Dn,bn,bn):vt(this,In,Dn,bn,bn),Dn}}ze.resolve=ze.resolve,ze.reject=ze.reject,ze.race=ze.race,ze.all=ze.all;const bt=tt[ot]=tt.Promise;tt.Promise=ze;const En=lt("thenPatched");function wn(Cn){const bn=Cn.prototype,cn=Rt(bn,"then");if(cn&&(!1===cn.writable||!cn.configurable))return;const Dn=bn.then;bn[gt]=Dn,Cn.prototype.then=function(In,Nn){return new ze((Jn,zn)=>{Dn.call(this,Jn,zn)}).then(In,Nn)},Cn[En]=!0}return At.patchThen=wn,bt&&(wn(bt),ee(tt,"fetch",Cn=>function nr(Cn){return function(bn,cn){let Dn=Cn.apply(bn,cn);if(Dn instanceof ze)return Dn;let In=Dn.constructor;return In[En]||wn(In),Dn}}(Cn))),Promise[Tt.__symbol__("uncaughtPromiseErrors")]=Ut,ze}),Zone.__load_patch("toString",tt=>{const Tt=Function.prototype.toString,At=v("OriginalDelegate"),Rt=v("Promise"),Pt=v("Error"),xt=function(){if("function"==typeof this){const ot=this[At];if(ot)return"function"==typeof ot?Tt.call(ot):Object.prototype.toString.call(ot);if(this===Promise){const gt=tt[Rt];if(gt)return Tt.call(gt)}if(this===Error){const gt=tt[Pt];if(gt)return Tt.call(gt)}}return Tt.call(this)};xt[At]=Tt,Function.prototype.toString=xt;const lt=Object.prototype.toString;Object.prototype.toString=function(){return"function"==typeof Promise&&this instanceof Promise?"[object Promise]":lt.call(this)}});let ne=!1;if(typeof window<"u")try{const tt=Object.defineProperty({},"passive",{get:function(){ne=!0}});window.addEventListener("test",tt,tt),window.removeEventListener("test",tt,tt)}catch{ne=!1}const q={useG:!0},oe={},ce={},ye=new RegExp("^"+h+"(\\w+)(true|false)$"),Me=v("propagationStopped");function Ee(tt,Tt){const At=(Tt?Tt(tt):tt)+p,Rt=(Tt?Tt(tt):tt)+a,Pt=h+At,xt=h+Rt;oe[tt]={},oe[tt][p]=Pt,oe[tt][a]=xt}function Ae(tt,Tt,At,Rt){const Pt=Rt&&Rt.add||o,xt=Rt&&Rt.rm||i,lt=Rt&&Rt.listeners||"eventListeners",Ut=Rt&&Rt.rmAll||"removeAllListeners",ke=v(Pt),ot="."+Pt+":",gt="prependListener",zt="."+gt+":",hn=function(wt,Xt,st){if(wt.isRemoved)return;const xe=wt.callback;let Le;"object"==typeof xe&&xe.handleEvent&&(wt.callback=at=>xe.handleEvent(at),wt.originalDelegate=xe);try{wt.invoke(wt,Xt,[st])}catch(at){Le=at}const qe=wt.options;return qe&&"object"==typeof qe&&qe.once&&Xt[xt].call(Xt,st.type,wt.originalDelegate?wt.originalDelegate:wt.callback,qe),Le};function Vt(wt,Xt,st){if(!(Xt=Xt||tt.event))return;const xe=wt||Xt.target||tt,Le=xe[oe[Xt.type][st?a:p]];if(Le){const qe=[];if(1===Le.length){const at=hn(Le[0],xe,Xt);at&&qe.push(at)}else{const at=Le.slice();for(let Jt=0;Jt<at.length&&(!Xt||!0!==Xt[Me]);Jt++){const $t=hn(at[Jt],xe,Xt);$t&&qe.push($t)}}if(1===qe.length)throw qe[0];for(let at=0;at<qe.length;at++){const Jt=qe[at];Tt.nativeScheduleMicroTask(()=>{throw Jt})}}}const $n=function(wt){return Vt(this,wt,!1)},Dt=function(wt){return Vt(this,wt,!0)};function Ft(wt,Xt){if(!wt)return!1;let st=!0;Xt&&void 0!==Xt.useG&&(st=Xt.useG);const xe=Xt&&Xt.vh;let Le=!0;Xt&&void 0!==Xt.chkDup&&(Le=Xt.chkDup);let qe=!1;Xt&&void 0!==Xt.rt&&(qe=Xt.rt);let at=wt;for(;at&&!at.hasOwnProperty(Pt);)at=e(at);if(!at&&wt[Pt]&&(at=wt),!at||at[ke])return!1;const Jt=Xt&&Xt.eventNameToString,$t={},rn=at[ke]=at[Pt],Wt=at[v(xt)]=at[xt],qt=at[v(lt)]=at[lt],un=at[v(Ut)]=at[Ut];let dt;Xt&&Xt.prepend&&(dt=at[v(Xt.prepend)]=at[Xt.prepend]);const ze=st?function(cn){if(!$t.isExisting)return rn.call($t.target,$t.eventName,$t.capture?Dt:$n,$t.options)}:function(cn){return rn.call($t.target,$t.eventName,cn.invoke,$t.options)},bt=st?function(cn){if(!cn.isRemoved){const Dn=oe[cn.eventName];let In;Dn&&(In=Dn[cn.capture?a:p]);const Nn=In&&cn.target[In];if(Nn)for(let Rn=0;Rn<Nn.length;Rn++)if(Nn[Rn]===cn){Nn.splice(Rn,1),cn.isRemoved=!0,0===Nn.length&&(cn.allRemoved=!0,cn.target[In]=null);break}}if(cn.allRemoved)return Wt.call(cn.target,cn.eventName,cn.capture?Dt:$n,cn.options)}:function(cn){return Wt.call(cn.target,cn.eventName,cn.invoke,cn.options)},wn=Xt&&Xt.diff?Xt.diff:function(cn,Dn){const In=typeof Dn;return"function"===In&&cn.callback===Dn||"object"===In&&cn.originalDelegate===Dn},nr=Zone[v("UNPATCHED_EVENTS")],Cn=tt[v("PASSIVE_EVENTS")],bn=function(cn,Dn,In,Nn,Rn=!1,Jn=!1){return function(){const zn=this||tt;let ur=arguments[0];Xt&&Xt.transferEventName&&(ur=Xt.transferEventName(ur));let Rr=arguments[1];if(!Rr)return cn.apply(this,arguments);if(I&&"uncaughtException"===ur)return cn.apply(this,arguments);let rr=!1;
1if("function"!=typeof Rr){if(!Rr.handleEvent)return cn.apply(this,arguments);rr=!0}if(xe&&!xe(cn,Rr,zn,arguments))return;const Mr=ne&&!!Cn&&-1!==Cn.indexOf(ur),Mn=function ht(cn,Dn){return!ne&&"object"==typeof cn&&cn?!!cn.capture:ne&&Dn?"boolean"==typeof cn?{capture:cn,passive:!0}:cn?"object"==typeof cn&&!1!==cn.passive?{...cn,passive:!0}:cn:{passive:!0}:cn}(arguments[2],Mr);if(nr)for(let oi=0;oi<nr.length;oi++)if(ur===nr[oi])return Mr?cn.call(zn,ur,Rr,Mn):cn.apply(this,arguments);const Xn=!!Mn&&("boolean"==typeof Mn||Mn.capture),cr=!(!Mn||"object"!=typeof Mn)&&Mn.once,Qr=Zone.current;let Xr=oe[ur];Xr||(Ee(ur,Jt),Xr=oe[ur]);const wr=Xr[Xn?a:p];let ii,ui=zn[wr],Nr=!1;if(ui){if(Nr=!0,Le)for(let oi=0;oi<ui.length;oi++)if(wn(ui[oi],Rr))return}else ui=zn[wr]=[];const fi=zn.constructor.name,sr=ce[fi];sr&&(ii=sr[ur]),ii||(ii=fi+Dn+(Jt?Jt(ur):ur)),$t.options=Mn,cr&&($t.options.once=!1),$t.target=zn,$t.capture=Xn,$t.eventName=ur,$t.isExisting=Nr;const Ai=st?q:void 0;Ai&&(Ai.taskData=$t);const Wr=Qr.scheduleEventTask(ii,Rr,Ai,In,Nn);return $t.target=null,Ai&&(Ai.taskData=null),cr&&(Mn.once=!0),!ne&&"boolean"==typeof Wr.options||(Wr.options=Mn),Wr.target=zn,Wr.capture=Xn,Wr.eventName=ur,rr&&(Wr.originalDelegate=Rr),Jn?ui.unshift(Wr):ui.push(Wr),Rn?zn:void 0}};return at[Pt]=bn(rn,ot,ze,bt,qe),dt&&(at[gt]=bn(dt,zt,function(cn){return dt.call($t.target,$t.eventName,cn.invoke,$t.options)},bt,qe,!0)),at[xt]=function(){const cn=this||tt;let Dn=arguments[0];Xt&&Xt.transferEventName&&(Dn=Xt.transferEventName(Dn));const In=arguments[2],Nn=!!In&&("boolean"==typeof In||In.capture),Rn=arguments[1];if(!Rn)return Wt.apply(this,arguments);if(xe&&!xe(Wt,Rn,cn,arguments))return;const Jn=oe[Dn];let zn;
1Jn&&(zn=Jn[Nn?a:p]);const ur=zn&&cn[zn];if(ur)for(let Rr=0;Rr<ur.length;Rr++){const rr=ur[Rr];if(wn(rr,Rn))return ur.splice(Rr,1),rr.isRemoved=!0,0===ur.length&&(rr.allRemoved=!0,cn[zn]=null,"string"==typeof Dn)&&(cn[h+"ON_PROPERTY"+Dn]=null),rr.zone.cancelTask(rr),qe?cn:void 0}return Wt.apply(this,arguments)},at[lt]=function(){const cn=this||tt;let Dn=arguments[0];Xt&&Xt.transferEventName&&(Dn=Xt.transferEventName(Dn));const In=[],Nn=Je(cn,Jt?Jt(Dn):Dn);for(let Rn=0;Rn<Nn.length;Rn++){const Jn=Nn[Rn];In.push(Jn.originalDelegate?Jn.originalDelegate:Jn.callback)}return In},at[Ut]=function(){const cn=this||tt;let Dn=arguments[0];if(Dn){Xt&&Xt.transferEventName&&(Dn=Xt.transferEventName(Dn));const In=oe[Dn];if(In){const Jn=cn[In[p]],zn=cn[In[a]];if(Jn){const ur=Jn.slice();for(let Rr=0;Rr<ur.length;Rr++){const rr=ur[Rr];this[xt].call(this,Dn,rr.originalDelegate?rr.originalDelegate:rr.callback,rr.options)}}if(zn){const ur=zn.slice();for(let Rr=0;Rr<ur.length;Rr++){const rr=ur[Rr];this[xt].call(this,Dn,rr.originalDelegate?rr.originalDelegate:rr.callback,rr.options)}}}}else{const In=Object.keys(cn);for(let Nn=0;Nn<In.length;Nn++){const Jn=ye.exec(In[Nn]);let zn=Jn&&Jn[1];zn&&"removeListener"!==zn&&this[Ut].call(this,zn)}this[Ut].call(this,"removeListener")}if(qe)return this},Q(at[Pt],rn),Q(at[xt],Wt),un&&Q(at[Ut],un),qt&&Q(at[lt],qt),!0}let St=[];for(let wt=0;wt<At.length;wt++)St[wt]=Ft(At[wt],Rt);return St}function Je(tt,Tt){if(!Tt){const xt=[];for(let lt in tt){const Ut=ye.exec(lt);let ke=Ut&&Ut[1];if(ke&&(!Tt||ke===Tt)){const ot=tt[lt];if(ot)for(let gt=0;gt<ot.length;gt++)xt.push(ot[gt])}}return xt}let At=oe[Tt];At||(Ee(Tt),At=oe[Tt]);const Rt=tt[At[p]],Pt=tt[At[a]];return Rt?Pt?Rt.concat(Pt):Rt.slice():Pt?Pt.slice():[]}function _t(tt,Tt){const At=tt.Event;At&&At.prototype&&Tt.patchMethod(At.prototype,"stopImmediatePropagation",Rt=>function(Pt,xt){Pt[Me]=!0,Rt&&Rt.apply(Pt,xt)})}function It(tt,Tt,At,Rt,Pt){const xt=Zone.__symbol__(Rt);if(Tt[xt])return;const lt=Tt[xt]=Tt[Rt];Tt[Rt]=function(Ut,ke,ot){return ke&&ke.prototype&&Pt.forEach(function(gt){const zt=`${At}.${Rt}::`+gt,hn=ke.prototype;try{if(hn.hasOwnProperty(gt)){const Vt=tt.ObjectGetOwnPropertyDescriptor(hn,gt);Vt&&Vt.value?(Vt.value=tt.wrapWithCurrentZone(Vt.value,zt),tt._redefineProperty(ke.prototype,gt,Vt)):hn[gt]&&(hn[gt]=tt.wrapWithCurrentZone(hn[gt],zt))}else hn[gt]&&(hn[gt]=tt.wrapWithCurrentZone(hn[gt],zt))}catch{}}),lt.call(Tt,Ut,ke,ot)},tt.attachOriginToPatched(Tt[Rt],lt)}function it(tt,Tt,At){if(!At||0===At.length)return Tt;const Rt=At.filter(xt=>xt.target===tt);if(!Rt||0===Rt.length)return Tt;const Pt=Rt[0].ignoreProperties;return Tt.filter(xt=>-1===Pt.indexOf(xt))}function Be(tt,Tt,At,Rt){tt&&X(tt,it(tt,Tt,At),Rt)}function Xe(tt){return Object.getOwnPropertyNames(tt).filter(Tt=>Tt.startsWith("on")&&Tt.length>2).map(Tt=>Tt.substring(2))}Zone.__load_patch("util",(tt,Tt,At)=>{const Rt=Xe(tt);At.patchOnProperties=X,At.patchMethod=ee,At.bindArguments=P,At.patchMacroTask=ae;const Pt=Tt.__symbol__("BLACK_LISTED_EVENTS"),xt=Tt.__symbol__("UNPATCHED_EVENTS");tt[xt]&&(tt[Pt]=tt[xt]),tt[Pt]&&(Tt[Pt]=Tt[xt]=tt[Pt]),At.patchEventPrototype=_t,At.patchEventTarget=Ae,At.isIEOrEdge=ie,At.ObjectDefineProperty=c,At.ObjectGetOwnPropertyDescriptor=R,At.ObjectCreate=t,At.ArraySlice=n,At.patchClass=K,At.wrapWithCurrentZone=m,At.filterProperties=it,At.attachOriginToPatched=Q,At._redefineProperty=Object.defineProperty,At.patchCallbacks=It,At.getGlobalObjects=()=>({globalSources:ce,zoneSymbolEventNames:oe,eventNames:Rt,isBrowser:g,isMix:B,isNode:I,TRUE_STR:a,FALSE_STR:p,ZONE_SYMBOL_PREFIX:h,ADD_EVENT_LISTENER_STR:o,REMOVE_EVENT_LISTENER_STR:i})});const Yt=v("zoneTask");function nt(tt,Tt,At,Rt){let Pt=null,xt=null;At+=Rt;const lt={};function Ut(ot){const gt=ot.data;return gt.args[0]=function(){return ot.invoke.apply(this,arguments)},gt.handleId=Pt.apply(tt,gt.args),ot}function ke(ot){return xt.call(tt,ot.data.handleId)}Pt=ee(tt,Tt+=Rt,ot=>function(gt,zt){if("function"==typeof zt[0]){const hn={isPeriodic:"Interval"===Rt,delay:"Timeout"===Rt||"Interval"===Rt?zt[1]||0:void 0,args:zt},Vt=zt[0];zt[0]=function(){try{return Vt.apply(this,arguments)}finally{hn.isPeriodic||("number"==typeof hn.handleId?delete lt[hn.handleId]:hn.handleId&&(hn.handleId[Yt]=null))}};const $n=_(Tt,zt[0],hn,Ut,ke);if(!$n)return $n;const Dt=$n.data.handleId;return"number"==typeof Dt?lt[Dt]=$n:Dt&&(Dt[Yt]=$n),Dt&&Dt.ref&&Dt.unref&&"function"==typeof Dt.ref&&"function"==typeof Dt.unref&&($n.ref=Dt.ref.bind(Dt),$n.unref=Dt.unref.bind(Dt)),"number"==typeof Dt||Dt?Dt:$n}return ot.apply(tt,zt)}),xt=ee(tt,At,ot=>function(gt,zt){const hn=zt[0];let Vt;"number"==typeof hn?Vt=lt[hn]:(Vt=hn&&hn[Yt],Vt||(Vt=hn)),Vt&&"string"==typeof Vt.type?"notScheduled"!==Vt.state&&(Vt.cancelFn&&Vt.data.isPeriodic||0===Vt.runCount)&&("number"==typeof hn?delete lt[hn]:hn&&(hn[Yt]=null),Vt.zone.cancelTask(Vt)):ot.apply(tt,zt)})}Zone.__load_patch("legacy",tt=>{const Tt=tt[Zone.__symbol__("legacyPatch")];Tt&&Tt()}),Zone.__load_patch("timers",tt=>{const At="clear";nt(tt,"set",At,"Timeout"),nt(tt,"set",At,"Interval"),nt(tt,"set",At,"Immediate")}),Zone.__load_patch("requestAnimationFrame",tt=>{nt(tt,"request","cancel","AnimationFrame"),nt(tt,"mozRequest","mozCancel","AnimationFrame"),nt(tt,"webkitRequest","webkitCancel","AnimationFrame")}),Zone.__load_patch("blocking",(tt,Tt)=>{const At=["alert","prompt","confirm"];for(let Rt=0;Rt<At.length;Rt++)ee(tt,At[Rt],(xt,lt,Ut)=>function(ke,ot){return Tt.current.run(xt,tt,ot,Ut)})}),Zone.__load_patch("EventTarget",(tt,Tt,At)=>{(function pn(tt,Tt){Tt.patchEventPrototype(tt,Tt)})(tt,At),function en(tt,Tt){if(Zone[Tt.symbol("patchEventTarget")])return;const{eventNames:At,zoneSymbolEventNames:Rt,TRUE_STR:Pt,FALSE_STR:xt,ZONE_SYMBOL_PREFIX:lt}=Tt.getGlobalObjects();for(let ke=0;ke<At.length;ke++){const ot=At[ke],hn=lt+(ot+xt),Vt=lt+(ot+Pt);Rt[ot]={},Rt[ot][xt]=hn,Rt[ot][Pt]=Vt}const Ut=tt.EventTarget;Ut&&Ut.prototype&&Tt.patchEventTarget(tt,Tt,[Ut&&Ut.prototype])}(tt,At);const Rt=tt.XMLHttpRequestEventTarget;Rt&&Rt.prototype&&At.patchEventTarget(tt,At,[Rt.prototype])}),Zone.__load_patch("MutationObserver",(tt,Tt,At)=>{K("MutationObserver"),K("WebKitMutationObserver")}),Zone.__load_patch("IntersectionObserver",(tt,Tt,At)=>{K("IntersectionObserver")}),Zone.__load_patch("FileReader",(tt,Tt,At)=>{K("FileReader")}),Zone.__load_patch("on_property",(tt,Tt,At)=>{!function pt(tt,Tt){if(I&&!B||Zone[tt.symbol("patchEvents")])return;const At=Tt.__Zone_ignore_on_properties;let Rt=[];
1if(g){const Pt=window;Rt=Rt.concat(["Document","SVGElement","Element","HTMLElement","HTMLBodyElement","HTMLMediaElement","HTMLFrameSetElement","HTMLFrameElement","HTMLIFrameElement","HTMLMarqueeElement","Worker"]);const xt=function G(){try{const tt=O.navigator.userAgent;if(-1!==tt.indexOf("MSIE ")||-1!==tt.indexOf("Trident/"))return!0}catch{}return!1}()?[{target:Pt,ignoreProperties:["error"]}]:[];Be(Pt,Xe(Pt),At&&At.concat(xt),e(Pt))}Rt=Rt.concat(["XMLHttpRequest","XMLHttpRequestEventTarget","IDBIndex","IDBRequest","IDBOpenDBRequest","IDBDatabase","IDBTransaction","IDBCursor","WebSocket"]);for(let Pt=0;Pt<Rt.length;Pt++){const xt=Tt[Rt[Pt]];xt&&xt.prototype&&Be(xt.prototype,Xe(xt.prototype),At)}}(At,tt)}),Zone.__load_patch("customElements",(tt,Tt,At)=>{!function mt(tt,Tt){const{isBrowser:At,isMix:Rt}=Tt.getGlobalObjects();(At||Rt)&&tt.customElements&&"customElements"in tt&&Tt.patchCallbacks(Tt,tt.customElements,"customElements","define",["connectedCallback","disconnectedCallback","adoptedCallback","attributeChangedCallback"])}(tt,At)}),Zone.__load_patch("XHR",(tt,Tt)=>{!function ke(ot){const gt=ot.XMLHttpRequest;if(!gt)return;const zt=gt.prototype;let Vt=zt[d],$n=zt[r];if(!Vt){const $t=ot.XMLHttpRequestEventTarget;if($t){const rn=$t.prototype;Vt=rn[d],$n=rn[r]}}const Dt="readystatechange",Ft="scheduled";function St($t){const rn=$t.data,Wt=rn.target;Wt[xt]=!1,Wt[Ut]=!1;const qt=Wt[Pt];Vt||(Vt=Wt[d],$n=Wt[r]),qt&&$n.call(Wt,Dt,qt);const un=Wt[Pt]=()=>{if(Wt.readyState===Wt.DONE)if(!rn.aborted&&Wt[xt]&&$t.state===Ft){const ht=Wt[Tt.__symbol__("loadfalse")];if(0!==Wt.status&&ht&&ht.length>0){const je=$t.invoke;$t.invoke=function(){const vt=Wt[Tt.__symbol__("loadfalse")];for(let Zt=0;Zt<vt.length;Zt++)vt[Zt]===$t&&vt.splice(Zt,1);!rn.aborted&&$t.state===Ft&&je.call($t)},ht.push($t)}else $t.invoke()}else!rn.aborted&&!1===Wt[xt]&&(Wt[Ut]=!0)};return Vt.call(Wt,Dt,un),Wt[At]||(Wt[At]=$t),at.apply(Wt,rn.args),Wt[xt]=!0,$t}function wt(){}function Xt($t){const rn=$t.data;return rn.aborted=!0,Jt.apply(rn.target,rn.args)}const st=ee(zt,"open",()=>function($t,rn){return $t[Rt]=0==rn[2],$t[lt]=rn[1],st.apply($t,rn)}),Le=v("fetchTaskAborting"),qe=v("fetchTaskScheduling"),at=ee(zt,"send",()=>function($t,rn){if(!0===Tt.current[qe]||$t[Rt])return at.apply($t,rn);{const Wt={target:$t,url:$t[lt],isPeriodic:!1,args:rn,aborted:!1},qt=_("XMLHttpRequest.send",wt,Wt,St,Xt);$t&&!0===$t[Ut]&&!Wt.aborted&&qt.state===Ft&&qt.invoke()}}),Jt=ee(zt,"abort",()=>function($t,rn){const Wt=function hn($t){return $t[At]}($t);if(Wt&&"string"==typeof Wt.type){if(null==Wt.cancelFn||Wt.data&&Wt.data.aborted)return;Wt.zone.cancelTask(Wt)}else if(!0===Tt.current[Le])return Jt.apply($t,rn)})}(tt);const At=v("xhrTask"),Rt=v("xhrSync"),Pt=v("xhrListener"),xt=v("xhrScheduled"),lt=v("xhrURL"),Ut=v("xhrErrorBeforeScheduled")}),Zone.__load_patch("geolocation",tt=>{tt.navigator&&tt.navigator.geolocation&&function D(tt,Tt){const At=tt.constructor.name;for(let Rt=0;Rt<Tt.length;Rt++){const Pt=Tt[Rt],xt=tt[Pt];if(xt){if(!l(R(tt,Pt)))continue;tt[Pt]=(Ut=>{const ke=function(){return Ut.apply(this,P(arguments,At+"."+Pt))};return Q(ke,Ut),ke})(xt)}}}(tt.navigator.geolocation,["getCurrentPosition","watchPosition"])}),Zone.__load_patch("PromiseRejectionEvent",(tt,Tt)=>{function At(Rt){return function(Pt){Je(tt,Rt).forEach(lt=>{const Ut=tt.PromiseRejectionEvent;if(Ut){const ke=new Ut(Rt,{promise:Pt.promise,reason:Pt.rejection});lt.invoke(ke)}})}}tt.PromiseRejectionEvent&&(Tt[v("unhandledPromiseRejectionHandler")]=At("unhandledrejection"),Tt[v("rejectionHandledHandler")]=At("rejectionhandled"))}),Zone.__load_patch("queueMicrotask",(tt,Tt,At)=>{!function Mt(tt,Tt){Tt.patchMethod(tt,"queueMicrotask",At=>function(Rt,Pt){Zone.current.scheduleMicroTask("queueMicrotask",Pt[0])})}(tt,At)})},70655:(R,c,e)=>{"use strict";e.r(c),e.d(c,{__assign:()=>o,__asyncDelegator:()=>B,__asyncGenerator:()=>g,__asyncValues:()=>L,__await:()=>I,__awaiter:()=>v,__classPrivateFieldGet:()=>K,__classPrivateFieldIn:()=>ae,__classPrivateFieldSet:()=>ee,__createBinding:()=>O,__decorate:()=>d,__esDecorate:()=>a,__exportStar:()=>b,__extends:()=>n,__generator:()=>E,__importDefault:()=>te,__importStar:()=>
1X,__makeTemplateObject:()=>V,__metadata:()=>_,__param:()=>r,__propKey:()=>h,__read:()=>P,__rest:()=>i,__runInitializers:()=>p,__setFunctionName:()=>m,__spread:()=>D,__spreadArray:()=>C,__spreadArrays:()=>l,__values:()=>M});var t=function(Q,j){return(t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(k,G){k.__proto__=G}||function(k,G){for(var ie in G)Object.prototype.hasOwnProperty.call(G,ie)&&(k[ie]=G[ie])})(Q,j)};function n(Q,j){if("function"!=typeof j&&null!==j)throw new TypeError("Class extends value "+String(j)+" is not a constructor or null");function k(){this.constructor=Q}t(Q,j),Q.prototype=null===j?Object.create(j):(k.prototype=j.prototype,new k)}var o=function(){return o=Object.assign||function(j){for(var k,G=1,ie=arguments.length;G<ie;G++)for(var ne in k=arguments[G])Object.prototype.hasOwnProperty.call(k,ne)&&(j[ne]=k[ne]);return j},o.apply(this,arguments)};function i(Q,j){var k={};for(var G in Q)Object.prototype.hasOwnProperty.call(Q,G)&&j.indexOf(G)<0&&(k[G]=Q[G]);if(null!=Q&&"function"==typeof Object.getOwnPropertySymbols){var ie=0;for(G=Object.getOwnPropertySymbols(Q);ie<G.length;ie++)j.indexOf(G[ie])<0&&Object.prototype.propertyIsEnumerable.call(Q,G[ie])&&(k[G[ie]]=Q[G[ie]])}return k}function d(Q,j,k,G){var q,ie=arguments.length,ne=ie<3?j:null===G?G=Object.getOwnPropertyDescriptor(j,k):G;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)ne=Reflect.decorate(Q,j,k,G);else for(var oe=Q.length-1;oe>=0;oe--)(q=Q[oe])&&(ne=(ie<3?q(ne):ie>3?q(j,k,ne):q(j,k))||ne);return ie>3&&ne&&Object.defineProperty(j,k,ne),ne}function r(Q,j){return function(k,G){j(k,G,Q)}}function a(Q,j,k,G,ie,ne){function q(Be){if(void 0!==Be&&"function"!=typeof Be)throw new TypeError("Function expected");return Be}for(var Ee,oe=G.kind,ce="getter"===oe?"get":"setter"===oe?"set":"value",ye=!j&&Q?G.static?Q:Q.prototype:null,Me=j||(ye?Object.getOwnPropertyDescriptor(ye,G.name):{}),Ae=!1,Je=k.length-1;Je>=0;Je--){var _t={};for(var It in G)_t[It]="access"===It?{}:G[It];for(var It in G.access)_t.access[It]=G.access[It];_t.addInitializer=function(Be){if(Ae)throw new TypeError("Cannot add initializers after decoration has completed");ne.push(q(Be||null))};var it=(0,k[Je])("accessor"===oe?{get:Me.get,set:Me.set}:Me[ce],_t);if("accessor"===oe){if(void 0===it)continue;if(null===it||"object"!=typeof it)throw new TypeError("Object expected");(Ee=q(it.get))&&(Me.get=Ee),(Ee=q(it.set))&&(Me.set=Ee),(Ee=q(it.init))&&ie.push(Ee)}else(Ee=q(it))&&("field"===oe?ie.push(Ee):Me[ce]=Ee)}ye&&Object.defineProperty(ye,G.name,Me),Ae=!0}function p(Q,j,k){for(var G=arguments.length>2,ie=0;ie<j.length;ie++)k=G?j[ie].call(Q,k):j[ie].call(Q);return G?k:void 0}function h(Q){return"symbol"==typeof Q?Q:"".concat(Q)}function m(Q,j,k){return"symbol"==typeof j&&(j=j.description?"[".concat(j.description,"]"):""),Object.defineProperty(Q,"name",{configurable:!0,value:k?"".concat(k," ",j):j})}function _(Q,j){if("object"==typeof Reflect&&"function"==typeof Reflect.metadata)return Reflect.metadata(Q,j)}function v(Q,j,k,G){return new(k||(k=Promise))(function(ne,q){function oe(Me){try{ye(G.next(Me))}catch(Ee){q(Ee)}}function ce(Me){try{ye(G.throw(Me))}catch(Ee){q(Ee)}}function ye(Me){Me.done?ne(Me.value):function ie(ne){return ne instanceof k?ne:new k(function(q){q(ne)})}(Me.value).then(oe,ce)}ye((G=G.apply(Q,j||[])).next())})}function E(Q,j){var G,ie,ne,q,k={label:0,sent:function(){if(1&ne[0])throw ne[1];return ne[1]},trys:[],ops:[]};return q={next:oe(0),throw:oe(1),return:oe(2)},"function"==typeof Symbol&&(q[Symbol.iterator]=function(){return this}),q;function oe(ye){return function(Me){return function ce(ye){if(G)throw new TypeError("Generator is already executing.");for(;q&&(q=0,ye[0]&&(k=0)),k;)try{if(G=1,ie&&(ne=2&ye[0]?ie.return:ye[0]?ie.throw||((ne=ie.return)&&ne.call(ie),0):ie.next)&&!(ne=ne.call(ie,ye[1])).done)return ne;switch(ie=0,ne&&(ye=[2&ye[0],ne.value]),ye[0]){case 0:case 1:ne=ye;break;case 4:return k.label++,{value:ye[1],done:!1};case 5:k.label++,ie=ye[1],ye=[0];continue;case 7:ye=k.ops.pop(),k.trys.pop();continue;default:if(!(ne=(ne=k.trys).length>0&&ne[ne.length-1])&&(6===ye[0]||2===ye[0])){k=0;continue}if(3===ye[0]&&(!ne||ye[1]>ne[0]&&ye[1]<ne[3])){k.label=ye[1];break}if(6===ye[0]&&k.label<ne[1]){k.label=ne[1],ne=ye;break}if(ne&&k.label<ne[2]){k.label=ne[2],k.ops.push(ye);break}
1ne[2]&&k.ops.pop(),k.trys.pop();continue}ye=j.call(Q,k)}catch(Me){ye=[6,Me],ie=0}finally{G=ne=0}if(5&ye[0])throw ye[1];return{value:ye[0]?ye[1]:void 0,done:!0}}([ye,Me])}}}var O=Object.create?function(Q,j,k,G){void 0===G&&(G=k);var ie=Object.getOwnPropertyDescriptor(j,k);(!ie||("get"in ie?!j.__esModule:ie.writable||ie.configurable))&&(ie={enumerable:!0,get:function(){return j[k]}}),Object.defineProperty(Q,G,ie)}:function(Q,j,k,G){void 0===G&&(G=k),Q[G]=j[k]};function b(Q,j){for(var k in Q)"default"!==k&&!Object.prototype.hasOwnProperty.call(j,k)&&O(j,Q,k)}function M(Q){var j="function"==typeof Symbol&&Symbol.iterator,k=j&&Q[j],G=0;if(k)return k.call(Q);if(Q&&"number"==typeof Q.length)return{next:function(){return Q&&G>=Q.length&&(Q=void 0),{value:Q&&Q[G++],done:!Q}}};throw new TypeError(j?"Object is not iterable.":"Symbol.iterator is not defined.")}function P(Q,j){var k="function"==typeof Symbol&&Q[Symbol.iterator];if(!k)return Q;var ie,q,G=k.call(Q),ne=[];try{for(;(void 0===j||j-- >0)&&!(ie=G.next()).done;)ne.push(ie.value)}catch(oe){q={error:oe}}finally{try{ie&&!ie.done&&(k=G.return)&&k.call(G)}finally{if(q)throw q.error}}return ne}function D(){for(var Q=[],j=0;j<arguments.length;j++)Q=Q.concat(P(arguments[j]));return Q}function l(){for(var Q=0,j=0,k=arguments.length;j<k;j++)Q+=arguments[j].length;var G=Array(Q),ie=0;for(j=0;j<k;j++)for(var ne=arguments[j],q=0,oe=ne.length;q<oe;q++,ie++)G[ie]=ne[q];return G}function C(Q,j,k){if(k||2===arguments.length)for(var ne,G=0,ie=j.length;G<ie;G++)(ne||!(G in j))&&(ne||(ne=Array.prototype.slice.call(j,0,G)),ne[G]=j[G]);return Q.concat(ne||Array.prototype.slice.call(j))}function I(Q){return this instanceof I?(this.v=Q,this):new I(Q)}function g(Q,j,k){if(!Symbol.asyncIterator)throw new TypeError("Symbol.asyncIterator is not defined.");var ie,G=k.apply(Q,j||[]),ne=[];return ie={},q("next"),q("throw"),q("return"),ie[Symbol.asyncIterator]=function(){return this},ie;function q(Ae){G[Ae]&&(ie[Ae]=function(Je){return new Promise(function(_t,It){ne.push([Ae,Je,_t,It])>1||oe(Ae,Je)})})}function oe(Ae,Je){try{!function ce(Ae){Ae.value instanceof I?Promise.resolve(Ae.value.v).then(ye,Me):Ee(ne[0][2],Ae)}(G[Ae](Je))}catch(_t){Ee(ne[0][3],_t)}}function ye(Ae){oe("next",Ae)}function Me(Ae){oe("throw",Ae)}function Ee(Ae,Je){Ae(Je),ne.shift(),ne.length&&oe(ne[0][0],ne[0][1])}}function B(Q){var j,k;return j={},G("next"),G("throw",function(ie){throw ie}),G("return"),j[Symbol.iterator]=function(){return this},j;function G(ie,ne){j[ie]=Q[ie]?function(q){return(k=!k)?{value:I(Q[ie](q)),done:!1}:ne?ne(q):q}:ne}}function L(Q){if(!Symbol.asyncIterator)throw new TypeError("Symbol.asyncIterator is not defined.");var k,j=Q[Symbol.asyncIterator];return j?j.call(Q):(Q=M(Q),k={},G("next"),G("throw"),G("return"),k[Symbol.asyncIterator]=function(){return this},k);function G(ne){k[ne]=Q[ne]&&function(q){return new Promise(function(oe,ce){!function ie(ne,q,oe,ce){Promise.resolve(ce).then(function(ye){ne({value:ye,done:oe})},q)}(oe,ce,(q=Q[ne](q)).done,q.value)})}}}function V(Q,j){return Object.defineProperty?Object.defineProperty(Q,"raw",{value:j}):Q.raw=j,Q}var Y=Object.create?function(Q,j){Object.defineProperty(Q,"default",{enumerable:!0,value:j})}:function(Q,j){Q.default=j};function X(Q){if(Q&&Q.__esModule)return Q;var j={};if(null!=Q)for(var k in Q)"default"!==k&&Object.prototype.hasOwnProperty.call(Q,k)&&O(j,Q,k);return Y(j,Q),j}function te(Q){return Q&&Q.__esModule?Q:{default:Q}}function K(Q,j,k,G){if("a"===k&&!G)throw new TypeError("Private accessor was defined without a getter");if("function"==typeof j?Q!==j||!G:!j.has(Q))throw new TypeError("Cannot read private member from an object whose class did not declare it");return"m"===k?G:"a"===k?G.call(Q):G?G.value:j.get(Q)}function ee(Q,j,k,G,ie){if("m"===G)throw new TypeError("Private method is not writable");if("a"===G&&!ie)throw new TypeError("Private accessor was defined without a setter");if("function"==typeof j?Q!==j||!ie:!j.has(Q))throw new TypeError("Cannot write private member to an object whose class did not declare it");return"a"===G?ie.call(Q,k):ie?ie.value=k:j.set(Q,k),k}function ae(Q,j){if(null===j||"object"!=typeof j&&"function"!=typeof j)throw new TypeError("Cannot use 'in' operator on non-object");return"function"==typeof Q?j===Q:Q.has(j)}},90401:(R,c,e)=>{var t={"./custom/app/admin/admin-sidebar/admin-sidebar.component":[8394,8394]};function n(o){if(!e.o(t,o))return Promise.resolve().then(()=>{var r=new Error("Cannot find module '"+o+"'");throw r.code="MODULE_NOT_FOUND",r});var i=t[o],d=i[0];return e.e(i[1]).then(()=>e(d))}n.keys=()=>Object.keys(t),n.id=90401,R.exports=n},64178:(R,c,e)=>{var t={"./custom/app/breadcrumbs/breadcrumbs.component":[6199,6199]};function n(o){if(!e.o(t,o))return Promise.resolve().then(()=>{var r=new Error("Cannot find module '"+o+"'");throw r.code="MODULE_NOT_FOUND",r});var i=t[o],d=i[0];return e.e(i[1]).then(()=>e(d))}n.keys=()=>Object.keys(t),n.id=64178,R.exports=n},12960:(R,c,e)=>{var t={"./custom/app/browse-by/browse-by-switcher/browse-by-switcher.component":[81193,8592,1193]};function n(o){if(!e.o(t,o))return Promise.resolve().then(()=>{var r=new Error("Cannot find module '"+o+"'");throw r.code="MODULE_NOT_FOUND",r});var i=t[o],d=i[0];return Promise.all(i.slice(1).map(e.e)).then(()=>e(d))}n.keys=()=>Object.keys(t),n.id=12960,R.exports=n},71169:(R,c,e)=>{var t={"./custom/app/footer/footer.component":[19540,9540]};function n(o){if(!e.o(t,o))return Promise.resolve().then(()=>{var r=new Error("Cannot find module '"+o+"'");throw r.code="MODULE_NOT_FOUND",r});var i=t[o],d=i[0];return e.e(i[1]).then(()=>e(d))}n.keys=()=>Object.keys(t),n.id=71169,R.exports=n},64496:(R,c,e)=>
1{var t={"./custom/app/forbidden/forbidden.component":[26822,6822]};function n(o){if(!e.o(t,o))return Promise.resolve().then(()=>{var r=new Error("Cannot find module '"+o+"'");throw r.code="MODULE_NOT_FOUND",r});var i=t[o],d=i[0];return e.e(i[1]).then(()=>e(d))}n.keys=()=>Object.keys(t),n.id=64496,R.exports=n},7942:(R,c,e)=>{var t={"./custom/app/header-nav-wrapper/header-navbar-wrapper.component":[86933,6933],"./dspace/app/header-nav-wrapper/header-navbar-wrapper.component":[63712]};function n(o){if(!e.o(t,o))return Promise.resolve().then(()=>{var r=new Error("Cannot find module '"+o+"'");throw r.code="MODULE_NOT_FOUND",r});var i=t[o],d=i[0];return Promise.all(i.slice(1).map(e.e)).then(()=>e(d))}n.keys=()=>Object.keys(t),n.id=7942,R.exports=n},73632:(R,c,e)=>{var t={"./custom/app/header/header.component":[81946,1946],"./dspace/app/header/header.component":[45439]};function n(o){if(!e.o(t,o))return Promise.resolve().then(()=>{var r=new Error("Cannot find module '"+o+"'");throw r.code="MODULE_NOT_FOUND",r});var i=t[o],d=i[0];return Promise.all(i.slice(1).map(e.e)).then(()=>e(d))}n.keys=()=>Object.keys(t),n.id=73632,R.exports=n},49519:(R,c,e)=>{var t={"./custom/app/item-page/simple/field-components/specific-field/title/item-page-title-field.component":[71195,1195]};function n(o){if(!e.o(t,o))return Promise.resolve().then(()=>{var r=new Error("Cannot find module '"+o+"'");throw r.code="MODULE_NOT_FOUND",r});var i=t[o],d=i[0];return e.e(i[1]).then(()=>e(d))}n.keys=()=>Object.keys(t),n.id=49519,R.exports=n},86192:(R,c,e)=>{var t={"./custom/app/navbar/expandable-navbar-section/expandable-navbar-section.component":[40183,183]};function n(o){if(!e.o(t,o))return Promise.resolve().then(()=>{var r=new Error("Cannot find module '"+o+"'");throw r.code="MODULE_NOT_FOUND",r});var i=t[o],d=i[0];return e.e(i[1]).then(()=>e(d))}n.keys=()=>Object.keys(t),n.id=86192,R.exports=n},67309:(R,c,e)=>{var t={"./custom/app/navbar/navbar.component":[90774,774],"./dspace/app/navbar/navbar.component":[81533]};function n(o){if(!e.o(t,o))return Promise.resolve().then(()=>{var r=new Error("Cannot find module '"+o+"'");throw r.code="MODULE_NOT_FOUND",r});var i=t[o],d=i[0];return Promise.all(i.slice(1).map(e.e)).then(()=>e(d))}n.keys=()=>Object.keys(t),n.id=67309,R.exports=n},53781:R=>{function c(e){return Promise.resolve().then(()=>{var t=new Error("Cannot find module '"+e+"'");throw t.code="MODULE_NOT_FOUND",t})}c.keys=()=>[],c.resolve=c,c.id=53781,R.exports=c},84978:R=>{function c(e){return Promise.resolve().then(()=>{var t=new Error("Cannot find module '"+e+"'");throw t.code="MODULE_NOT_FOUND",t})}c.keys=()=>[],c.resolve=c,c.id=84978,R.exports=c},11489:(R,c,e)=>{var t={"./custom/app/pagenotfound/pagenotfound.component":[69238,1270]};function n(o){if(!e.o(t,o))return Promise.resolve().then(()=>{var r=new Error("Cannot find module '"+o+"'");throw r.code="MODULE_NOT_FOUND",r});var i=t[o],d=i[0];return e.e(i[1]).then(()=>e(d))}n.keys=()=>Object.keys(t),n.id=11489,R.exports=n},70743:(R,c,e)=>{var t={"./custom/app/root/root.component":[80089,89]};function n(o){if(!e.o(t,o))return Promise.resolve().then(()=>{var r=new Error("Cannot find module '"+o+"'");throw r.code="MODULE_NOT_FOUND",r});var i=t[o],d=i[0];return e.e(i[1]).then(()=>e(d))}n.keys=()=>Object.keys(t),n.id=70743,R.exports=n},1741:(R,c,e)=>{var t={"./custom/app/search-navbar/search-navbar.component":[18207,8207]};function n(o){if(!e.o(t,o))return Promise.resolve().then(()=>{var r=new Error("Cannot find module '"+o+"'");throw r.code="MODULE_NOT_FOUND",r});var i=t[o],d=i[0];return e.e(i[1]).then(()=>e(d))}n.keys=()=>Object.keys(t),n.id=1741,R.exports=n},40140:(R,c,e)=>
1{var t={"./custom/app/shared/auth-nav-menu/auth-nav-menu.component":[4234,4234]};function n(o){if(!e.o(t,o))return Promise.resolve().then(()=>{var r=new Error("Cannot find module '"+o+"'");throw r.code="MODULE_NOT_FOUND",r});var i=t[o],d=i[0];return e.e(i[1]).then(()=>e(d))}n.keys=()=>Object.keys(t),n.id=40140,R.exports=n},26313:(R,c,e)=>{var t={"./custom/app/shared/auth-nav-menu/user-menu/user-menu.component":[81437,1437]};function n(o){if(!e.o(t,o))return Promise.resolve().then(()=>{var r=new Error("Cannot find module '"+o+"'");throw r.code="MODULE_NOT_FOUND",r});var i=t[o],d=i[0];return e.e(i[1]).then(()=>e(d))}n.keys=()=>Object.keys(t),n.id=26313,R.exports=n},45285:(R,c,e)=>{var t={"./custom/app/shared/browse-by/browse-by.component.ts":[95275,5275]};function n(o){if(!e.o(t,o))return Promise.resolve().then(()=>{var r=new Error("Cannot find module '"+o+"'");throw r.code="MODULE_NOT_FOUND",r});var i=t[o],d=i[0];return e.e(i[1]).then(()=>e(d))}n.keys=()=>Object.keys(t),n.id=45285,R.exports=n},13007:(R,c,e)=>{var t={"./custom/app/sh
1ared/collection-dropdown/collection-dropdown.component":[39288,9288]};function n(o){if(!e.o(t,o))return Promise.resolve().then(()=>{var r=new Error("Cannot find module '"+o+"'");throw r.code="MODULE_NOT_FOUND",r});var i=t[o],d=i[0];return e.e(i[1]).then(()=>e(d))}n.keys=()=>Object.keys(t),n.id=13007,R.exports=n},1266:(R,c,e)=>{var t={"./custom/app/shared/comcol-page-browse-by/comcol-page-browse-by.component":[21408,1408]};function n(o){if(!e.o(t,o))return Promise.resolve().then(()=>{var r=new Error("Cannot find module '"+o+"'");throw r.code="MODULE_NOT_FOUND",r});var i=t[o],d=i[0];return e.e(i[1]).then(()=>e(d))}n.keys=()=>Object.keys(t),n.id=1266,R.exports=n},13922:R=>{function c(e){return Promise.resolve().then(()=>{var t=new Error("Cannot find module '"+e+"'");throw t.code="MODULE_NOT_FOUND",t})}c.keys=()=>[],c.resolve=c,c.id=13922,R.exports=c},50470:(R,c,e)=>{var t={"./custom/app/shared/dso-selector/modal-wrappers/create-collection-parent-selector/create-collection-parent-selector.component":[72911,2911]};function n(o){if(!e.o(t,o))return Promise.resolve().then(()=>{var r=new Error("Cannot find module '"+o+"'");throw r.code="MODULE_NOT_FOUND",r});var i=t[o],d=i[0];return e.e(i[1]).then(()=>e(d))}n.keys=()=>Object.keys(t),n.id=50470,R.exports=n},76971:(R,c,e)=>
1{var t={"./custom/app/shared/dso-selector/modal-wrappers/create-community-parent-selector/create-community-parent-selector.component":[89735,1064]};function n(o){if(!e.o(t,o))return Promise.resolve().then(()=>{var r=new Error("Cannot find module '"+o+"'");throw r.code="MODULE_NOT_FOUND",r});var i=t[o],d=i[0];return e.e(i[1]).then(()=>e(d))}n.keys=()=>Object.keys(t),n.id=76971,R.exports=n},48345:(R,c,e)=>{var t={"./custom/app/shared/dso-selector/modal-wrappers/create-item-parent-selector/create-item-parent-selector.component":[51397,8519]};function n(o){if(!e.o(t,o))return Promise.resolve().then(()=>{var r=new Error("Cannot find module '"+o+"'");throw r.code="MODULE_NOT_FOUND",r});var i=t[o],d=i[0];return e.e(i[1]).then(()=>e(d))}n.keys=()=>Object.keys(t),n.id=48345,R.exports=n},42864:(R,c,e)=>{var t={"./custom/app/shared/dso-selector/modal-wrappers/edit-collection-selector/edit-collection-selector.component":[94475,4475]};function n(o){if(!e.o(t,o))return Promise.resolve().then(()=>{var r=new Error("Cannot find module '"+o+"'");throw r.code="MODULE_NOT_FOUND",r});var i=t[o],d=i[0];return e.e(i[1]).then(()=>e(d))}n.keys=()=>Object.keys(t),n.id=42864,R.exports=n},59258:(R,c,e)=>
1{var t={"./custom/app/shared/dso-selector/modal-wrappers/edit-community-selector/edit-community-selector.component":[89587,9587]};function n(o){if(!e.o(t,o))return Promise.resolve().then(()=>{var r=new Error("Cannot find module '"+o+"'");throw r.code="MODULE_NOT_FOUND",r});var i=t[o],d=i[0];return e.e(i[1]).then(()=>e(d))}n.keys=()=>Object.keys(t),n.id=59258,R.exports=n},21554:(R,c,e)=>{var t={"./custom/app/shared/dso-selector/modal-wrappers/edit-item-selector/edit-item-selector.component":[43594,3594]};function n(o){if(!e.o(t,o))return Promise.resolve().then(()=>{var r=new Error("Cannot find module '"+o+"'");throw r.code="MODULE_NOT_FOUND",r});var i=t[o],d=i[0];return e.e(i[1]).then(()=>e(d))}n.keys=()=>Object.keys(t),n.id=21554,R.exports=n},27935:(R,c,e)=>{var t={"./custom/app/shared/file-download-link/file-download-link.component":[39607,9607]};function n(o){if(!e.o(t,o))return Promise.resolve().then(()=>{var r=new Error("Cannot find module '"+o+"'");throw r.code="MODULE_NOT_FOUND",r});var i=t[o],d=i[0];return e.e(i[1]).then(()=>e(d))}n.keys=()=>Object.keys(t),n.id=27935,R.exports=n},86251:(R,c,e)=>
1{var t={"./custom/app/shared/lang-switch/lang-switch.component":[90106,9107]};function n(o){if(!e.o(t,o))return Promise.resolve().then(()=>{var r=new Error("Cannot find module '"+o+"'");throw r.code="MODULE_NOT_FOUND",r});var i=t[o],d=i[0];return e.e(i[1]).then(()=>e(d))}n.keys=()=>Object.keys(t),n.id=86251,R.exports=n},65645:(R,c,e)=>{var t={"./custom/app/shared/loading/loading.component":[45198,8592]};function n(o){if(!e.o(t,o))return Promise.resolve().then(()=>{var r=new Error("Cannot find module '"+o+"'");throw r.code="MODULE_NOT_FOUND",r});var i=t[o],d=i[0];return e.e(i[1]).then(()=>e(d))}n.keys=()=>Object.keys(t),n.id=65645,R.exports=n},77138:(R,c,e)=>{var t={"./custom/app/shared/log-in/log-in.component":[45365,5365]};function n(o){if(!e.o(t,o))return Promise.resolve().then(()=>{var r=new Error("Cannot find module '"+o+"'");throw r.code="MODULE_NOT_FOUND",r});var i=t[o],d=i[0];return e.e(i[1]).then(()=>e(d))}n.keys=()=>Object.keys(t),n.id=77138,R.exports=n},29381:(R,c,e)=>{var t={"./custom/app/shared/object-collection/shared/badges/access-status-badge/access-status-badge.component":[8402,8402]};function n(o){if(!e.o(t,o))return Promise.resolve().then(()=>{var r=new Error("Cannot find module '"+o+"'");throw r.code="MODULE_NOT_FOUND",r});var i=t[o],d=i[0];return e.e(i[1]).then(()=>e(d))}n.keys=()=>Object.keys(t),n.id=29381,R.exports=n},60544:(R,c,e)=>
1{var t={"./custom/app/shared/object-collection/shared/badges/badges.component":[79495,9495]};function n(o){if(!e.o(t,o))return Promise.resolve().then(()=>{var r=new Error("Cannot find module '"+o+"'");throw r.code="MODULE_NOT_FOUND",r});var i=t[o],d=i[0];return e.e(i[1]).then(()=>e(d))}n.keys=()=>Object.keys(t),n.id=60544,R.exports=n},52614:(R,c,e)=>{var t={"./custom/app/shared/object-collection/shared/badges/my-dspace-status-badge/my-dspace-status-badge.component":[90595,595]};function n(o){if(!e.o(t,o))return Promise.resolve().then(()=>{var r=new Error("Cannot find module '"+o+"'");throw r.code="MODULE_NOT_FOUND",r});var i=t[o],d=i[0];return e.e(i[1]).then(()=>e(d))}n.keys=()=>Object.keys(t),n.id=52614,R.exports=n},15371:(R,c,e)=>{var t={"./custom/app/shared/object-collection/shared/badges/status-badge/status-badge.component":[65382,5382]};function n(o){if(!e.o(t,o))return Promise.resolve().then(()=>{var r=new Error("Cannot find module '"+o+"'");throw r.code="MODULE_NOT_FOUND",r});var i=t[o],d=i[0];return e.e(i[1]).then(()=>e(d))}n.keys=()=>Object.keys(t),n.id=15371,R.exports=n},84012:(R,c,e)=>
1{var t={"./custom/app/shared/object-collection/shared/badges/type-badge/type-badge.component":[20514,514]};function n(o){if(!e.o(t,o))return Promise.resolve().then(()=>{var r=new Error("Cannot find module '"+o+"'");throw r.code="MODULE_NOT_FOUND",r});var i=t[o],d=i[0];return e.e(i[1]).then(()=>e(d))}n.keys=()=>Object.keys(t),n.id=84012,R.exports=n},90745:(R,c,e)=>{var t={"./custom/app/shared/object-list/object-list.component":[83049,3049]};function n(o){if(!e.o(t,o))return Promise.resolve().then(()=>{var r=new Error("Cannot find module '"+o+"'");throw r.code="MODULE_NOT_FOUND",r});var i=t[o],d=i[0];return e.e(i[1]).then(()=>e(d))}n.keys=()=>Object.keys(t),n.id=90745,R.exports=n},14826:(R,c,e)=>{var t={"./custom/app/shared/results-back-button/results-back-button.component":[90386,8592,386]};function n(o){if(!e.o(t,o))return Promise.resolve().then(()=>{var r=new Error("Cannot find module '"+o+"'");throw r.code="MODULE_NOT_FOUND",r});var i=t[o],d=i[0];return Promise.all(i.slice(1).map(e.e)).then(()=>e(d))}n.keys=()=>Object.keys(t),n.id=14826,R.exports=n},52158:(R,c,e)=>
1{var t={"./custom/app/shared/search-form/search-form.component":[51092,1092]};function n(o){if(!e.o(t,o))return Promise.resolve().then(()=>{var r=new Error("Cannot find module '"+o+"'");throw r.code="MODULE_NOT_FOUND",r});var i=t[o],d=i[0];return e.e(i[1]).then(()=>e(d))}n.keys=()=>Object.keys(t),n.id=52158,R.exports=n},92790:R=>{function c(e){return Promise.resolve().then(()=>{var t=new Error("Cannot find module '"+e+"'");throw t.code="MODULE_NOT_FOUND",t})}c.keys=()=>[],c.resolve=c,c.id=92790,R.exports=c},85430:(R,c,e)=>{var t={"./custom/app/thumbnail/thumbnail.component":[42334,8592]};function n(o){if(!e.o(t,o))return Promise.resolve().then(()=>{var r=new Error("Cannot find module '"+o+"'");throw r.code="MODULE_NOT_FOUND",r});var i=t[o],d=i[0];return e.e(i[1]).then(()=>e(d))}n.keys=()=>Object.keys(t),n.id=85430,R.exports=n},36930:(R,c)=>{"use strict";Object.defineProperty(c,"__esModule",{value:!0}),c.default=function e(t,n,o,i,d,r,a){var p=new Date(0);return p.setUTCFullYear(t,n,o),p.setUTCHours(i,d,r,a),p},R.exports=c.default},47:(R,c)=>{"use strict";Object.defineProperty(c,"__esModule",{value:!0}),c.default=function e(i,d,r){var a=function o(i,d,r){if(r&&!r.code)throw new Error("date-fns-tz error: Please set a language code on the locale object imported from date-fns, e.g. `locale.code = 'en-US'`");return new Intl.DateTimeFormat(r?[r.code,"en-US"]:void 0,{timeZone:d,timeZoneName:i})}(i,r.timeZone,r.locale);return a.formatToParts?function t(i,d){for(var r=i.formatToParts(d),a=r.length-1;a>=0;--a)if("timeZoneName"===r[a].type)return r[a].value}(a,d):function n(i,d){var r=i.format(d).replace(/\u200E/g,""),a=/ [\w-+ ]+$/.exec(r);return a?a[0].substr(1):""}(a,d)},R.exports=c.default},1870:(R,c,e)=>{"use strict";Object.defineProperty(c,"__esModule",{value:!0}),c.default=function a(O,b,M){var P,D,l;if(!O||(P=r.timezoneZ.exec(O)))return 0;
1if(P=r.timezoneHH.exec(O))return _(l=parseInt(P[1],10))?-l*i:NaN;if(P=r.timezoneHHMM.exec(O)){l=parseInt(P[1],10);var C=parseInt(P[2],10);return _(l,C)?(D=Math.abs(l)*i+C*d,l>0?-D:D):NaN}if(function E(O){if(v[O])return!0;try{return new Intl.DateTimeFormat(void 0,{timeZone:O}),v[O]=!0,!0}catch{return!1}}(O)){b=new Date(b||Date.now());var I=M?b:function p(O){return(0,n.default)(O.getFullYear(),O.getMonth(),O.getDate(),O.getHours(),O.getMinutes(),O.getSeconds(),O.getMilliseconds())}(b),g=h(I,O),B=M?g:function m(O,b,M){var D=O.getTime()-b,l=h(new Date(D),M);if(b===l)return b;D-=l-b;var C=h(new Date(D),M);return l===C?l:Math.max(l,C)}(b,g,O);return-B}return NaN};var t=o(e(78598)),n=o(e(36930));function o(O){return O&&O.__esModule?O:{default:O}}var i=36e5,d=6e4,r={timezone:/([Z+-].*)$/,timezoneZ:/^(Z)$/,timezoneHH:/^([+-]\d{2})$/,timezoneHHMM:/^([+-]\d{2}):?(\d{2})$/};function h(O,b){var M=(0,t.default)(O,b),P=(0,n.default)(M[0],M[1]-1,M[2],M[3]%24,M[4],M[5],0).getTime(),D=O.getTime(),l=D%1e3;return P-(D-(l>=0?l:1e3+l))}function _(O,b){return-23<=O&&O<=23&&(null==b||0<=b&&b<=59)}var v={};R.exports=c.default},32121:(R,c)=>{"use strict";Object.defineProperty(c,"__esModule",{value:!0}),c.default=void 0,c.default=/(Z|[+-]\d{2}(?::?\d{2})?| UTC| [a-zA-Z]+\/[a-zA-Z_]+(?:\/[a-zA-Z_]+)?)$/,R.exports=c.default},78598:(R,c)=>{"use strict";Object.defineProperty(c,"__esModule",{value:!0}),c.default=function e(r,a){var p=function d(r){if(!i[r]){var a=new Intl.DateTimeFormat("en-US",{hour12:!1,timeZone:"America/New_York",year:"numeric",month:"numeric",day:"2-digit",hour:"2-digit",minute:"2-digit",second:"2-digit"}).format(new Date("2014-06-25T04:00:00.123Z"));i[r]="06/25/2014, 00:00:00"===a||"\u200e06\u200e/\u200e25\u200e/\u200e2014\u200e \u200e00\u200e:\u200e00\u200e:\u200e00"===a?new Intl.DateTimeFormat("en-US",{hour12:!1,timeZone:r,year:"numeric",month:"numeric",day:"2-digit",hour:"2-digit",minute:"2-digit",second:"2-digit"}):new Intl.DateTimeFormat("en-US",{hourCycle:"h23",timeZone:r,year:"numeric",month:"numeric",day:"2-digit",hour:"2-digit",minute:"2-digit",second:"2-digit"})}return i[r]}(a);return p.formatToParts?function n(r,a){try{for(var p=r.formatToParts(a),h=[],m=0;m<p.length;m++){var _=t[p[m].type];_>=0&&(h[_]=parseInt(p[m].value,10))}return h}catch(v){if(v instanceof RangeError)return[NaN];throw v}}(p,r):function o(r,a){var p=r.format(a).replace(/\u200E/g,""),h=/(\d+)\/(\d+)\/(\d+),? (\d+):(\d+):(\d+)/.exec(p);return[h[3],h[1],h[2],h[4],h[5],h[6]]}(p,r)};var t={year:0,month:1,day:2,hour:3,minute:4,second:5},i={};R.exports=c.default},28032:(R,c,e)=>{"use strict";Object.defineProperty(c,"__esModule",{value:!0}),c.default=function d(r,a,p,h){var m=(0,t.default)(h);return m.timeZone=a,(0,n.default)((0,o.default)(r,a),p,m)};var t=i(e(42926)),n=i(e(34294)),o=i(e(17318));function i(r){return r&&r.__esModule?r:{default:r}}R.exports=c.default},65660:(R,c,e)=>{"use strict";Object.defineProperty(c,"__esModule",{value:!0}),c.default=void 0;var t=o(e(47)),n=o(e(1870));function o(v){return v&&v.__esModule?v:{default:v}}var i=6e4;function r(v,E){var O=v?(0,n.default)(v,E,!0)/i:E.getTimezoneOffset();if(Number.isNaN(O))throw new RangeError("Invalid time zone specified: "+v);return O}function a(v,E){for(var O=v<0?"-":"",b=Math.abs(v).toString();b.length<E;)b="0"+b;return O+b}function p(v,E){var O=E||"",b=v>0?"-":"+",M=Math.abs(v);return b+a(Math.floor(M/60),2)+O+a(Math.floor(M%60),2)}function h(v,E){return v%60==0?(v>0?"-":"+")+a(Math.abs(v)/60,2):p(v,E)}c.default={X:function(v,E,O,b){var M=r(b.timeZone,b._originalDate||v);if(0===M)return"Z";switch(E){case"X":return h(M);case"XXXX":case"XX":return p(M);default:return p(M,":")}},x:function(v,E,O,b){var M=r(b.timeZone,b._originalDate||v);switch(E){case"x":return h(M);case"xxxx":case"xx":return p(M);default:return p(M,":")}},O:function(v,E,O,b){var M=r(b.timeZone,b._originalDate||v);switch(E){case"O":case"OO":case"OOO":return"GMT"+function m(v,E){var O=v>0?"-":"+",b=Math.abs(v),M=Math.floor(b/60),P=b%60;if(0===P)return O+String(M);var D=E||"";return O+String(M)+D+a(P,2)}(M,":");default:return"GMT"+p(M,":")}},z:function(v,E,O,b){var M=b._originalDate||v;switch(E){case"z":case"zz":case"zzz":return(0,t.default)("short",M,b);default:return(0,t.default)("long",M,b)}}},R.exports=c.default},34294:(R,c,e)=>{"use strict";Object.defineProperty(c,"__esModule",{value:!0}),c.default=function r(a,p,h){var m=String(p),_=h||{},v=m.match(d);if(v){var E=(0,o.default)(a,_);m=v.reduce(function(O,b){if("'"===b[0])return O;var M=O.indexOf(b),P="'"===O[M-1],D=O.replace(b,"'"+n.default[b[0]](E,b,null,_)+"'");return P?D.substring(0,M-1)+D.substring(M+1):D},m)}return(0,t.default)(a,m,_)};var t=i(e(27868)),n=i(e(65660)),o=i(e(29018));function i(a){return a&&a.__esModule?a:{default:a}}var d=/([xXOz]+)|''|'(''|[^'])+('|$)/g;R.exports=c.default},46167:(R,c,e)=>{"use strict";Object.defineProperty(c,"__esModule",{value:!0}),c.default=function o(i,d){return-(0,t.default)(i,d)};var t=function n(i){return i&&i.__esModule?i:{default:i}}(e(1870));R.exports=c.default},30298:(R,c,e)=>{"use strict";
1R.exports={format:e(34294),formatInTimeZone:e(28032),getTimezoneOffset:e(46167),toDate:e(29018),utcToZonedTime:e(17318),zonedTimeToUtc:e(99679)}},29018:(R,c,e)=>{"use strict";Object.defineProperty(c,"__esModule",{value:!0}),c.default=function m(B,L){if(arguments.length<1)throw new TypeError("1 argument required, but only "+arguments.length+" present");if(null===B)return new Date(NaN);var V=L||{},Y=null==V.additionalDigits?p:(0,t.default)(V.additionalDigits);if(2!==Y&&1!==Y&&0!==Y)throw new RangeError("additionalDigits must be 0, 1 or 2");if(B instanceof Date||"object"==typeof B&&"[object Date]"===Object.prototype.toString.call(B))return new Date(B.getTime());if("number"==typeof B||"[object Number]"===Object.prototype.toString.call(B))return new Date(B);if("string"!=typeof B&&"[object String]"!==Object.prototype.toString.call(B))return new Date(NaN);var X=function _(B){var Y,L={},V=h.dateTimePattern.exec(B);if(V?(L.date=V[1],Y=V[3]):(V=h.datePattern.exec(B))?(L.date=V[1],Y=V[2]):(L.date=null,Y=B),Y){var X=h.timeZone.exec(Y);X?(L.time=Y.replace(X[1],""),L.timeZone=X[1].trim()):L.time=Y}return L}(B),te=function v(B,L){var X,V=h.YYY[L],Y=h.YYYYY[L];if(X=h.YYYY.exec(B)||Y.exec(B)){var te=X[1];return{year:parseInt(te,10),restDateString:B.slice(te.length)}}if(X=h.YY.exec(B)||V.exec(B)){var K=X[1];return{year:100*parseInt(K,10),restDateString:B.slice(K.length)}}return{year:null}}(X.date,Y),ae=function E(B,L){if(null===L)return null;var V,Y,X,te;if(0===B.length)return(Y=new Date(0)).setUTCFullYear(L),Y;if(V=h.MM.exec(B))return Y=new Date(0),l(L,X=parseInt(V[1],10)-1)?(Y.setUTCFullYear(L,X),Y):new Date(NaN);if(V=h.DDD.exec(B)){Y=new Date(0);var K=parseInt(V[1],10);return function C(B,L){if(L<1)return!1;var V=D(B);return!(V&&L>366||!V&&L>365)}(L,K)?(Y.setUTCFullYear(L,0,K),Y):new Date(NaN)}if(V=h.MMDD.exec(B)){Y=new Date(0),X=parseInt(V[1],10)-1;var ee=parseInt(V[2],10);return l(L,X,ee)?(Y.setUTCFullYear(L,X,ee),Y):new Date(NaN)}if(V=h.Www.exec(B))return I(0,te=parseInt(V[1],10)-1)?b(L,te):new Date(NaN);if(V=h.WwwD.exec(B)){te=parseInt(V[1],10)-1;var ae=parseInt(V[2],10)-1;return I(0,te,ae)?b(L,te,ae):new Date(NaN)}return null}(te.restDateString,te.year);if(isNaN(ae))return new Date(NaN);if(ae){var k,Q=ae.getTime(),j=0;if(X.time&&(j=function O(B){var L,V,Y;if(L=h.HH.exec(B))return g(V=parseFloat(L[1].replace(",",".")))?V%24*r:NaN;if(L=h.HHMM.exec(B))return g(V=parseInt(L[1],10),Y=parseFloat(L[2].replace(",",".")))?V%24*r+Y*a:NaN;if(L=h.HHMMSS.exec(B)){V=parseInt(L[1],10),Y=parseInt(L[2],10);var X=parseFloat(L[3].replace(",","."));return g(V,Y,X)?V%24*r+Y*a+1e3*X:NaN}return null}(X.time),isNaN(j)))return new Date(NaN);if(X.timeZone||V.timeZone){if(k=(0,o.default)(X.timeZone||V.timeZone,new Date(Q+j)),isNaN(k))return new Date(NaN)}else k=(0,n.default)(new Date(Q+j)),k=(0,n.default)(new Date(Q+j+k));return new Date(Q+j+k)}return new Date(NaN)};var t=d(e(6092)),n=d(e(47664)),o=d(e(1870)),i=d(e(32121));function d(B){return B&&B.__esModule?B:{default:B}}var r=36e5,a=6e4,p=2,h={dateTimePattern:/^([0-9W+-]+)(T| )(.*)/,datePattern:/^([0-9W+-]+)(.*)/,plainTime:/:/,YY:/^(\d{2})$/,YYY:[/^([+-]\d{2})$/,/^([+-]\d{3})$/,/^([+-]\d{4})$/],YYYY:/^(\d{4})/,YYYYY:[/^([+-]\d{4})/,/^([+-]\d{5})/,/^([+-]\d{6})/],MM:/^-(\d{2})$/,DDD:/^-?(\d{3})$/,MMDD:/^-?(\d{2})-?(\d{2})$/,Www:/^-?W(\d{2})$/,WwwD:/^-?W(\d{2})-?(\d{1})$/,HH:/^(\d{2}([.,]\d*)?)$/,HHMM:/^(\d{2}):?(\d{2}([.,]\d*)?)$/,HHMMSS:/^(\d{2}):?(\d{2}):?(\d{2}([.,]\d*)?)$/,timeZone:i.default};function b(B,L,V){L=L||0,V=V||0;var Y=new Date(0);Y.setUTCFullYear(B,0,4);var te=7*L+V+1-(Y.getUTCDay()||7);return Y.setUTCDate(Y.getUTCDate()+te),Y}var M=[31,28,31,30,31,30,31,31,30,31,30,31],P=[31,29,31,30,31,30,31,31,30,31,30,31];function D(B){return B%400==0||B%4==0&&B%100!=0}function l(B,L,V){if(L<0||L>11)return!1;if(null!=V){if(V<1)return!1;var Y=D(B);if(Y&&V>P[L]||!Y&&V>M[L])return!1}return!0}function I(B,L,V){return!(L<0||L>52||null!=V&&(V<0||V>6))}function g(B,L,V){return!(null!=B&&(B<0||B>=25)||null!=L&&(L<0||L>=60)||null!=V&&(V<0||V>=60))}R.exports=c.default},17318:(R,c,e)=>{"use strict";Object.defineProperty(c,"__esModule",{value:!0}),c.default=function i(d,r,a){var p=(0,n.default)(d,a),h=(0,t.default)(r,p,!0),m=new Date(p.getTime()-h),_=new Date(0);return _.setFullYear(m.getUTCFullYear(),m.getUTCMonth(),m.getUTCDate()),_.setHours(m.getUTCHours(),m.getUTCMinutes(),m.getUTCSeconds(),m.getUTCMilliseconds()),_};var t=o(e(1870)),n=o(e(29018));function o(d){return d&&d.__esModule?d:{default:d}}R.exports=c.default},99679:(R,c,e)=>{"use strict";Object.defineProperty(c,"__esModule",{value:!0}),c.default=function a(p,h,m){if("string"==typeof p&&!p.match(o.default)){var _=(0,t.default)(m);return _.timeZone=h,(0,n.default)(p,_)}var v=(0,n.default)(p,m),E=(0,d.default)(v.getFullYear(),v.getMonth(),v.getDate(),v.getHours(),v.getMinutes(),v.getSeconds(),v.getMilliseconds()).getTime(),O=(0,i.default)(h,new Date(E));return new Date(E+O)};var t=r(e(42926)),n=r(e(29018)),o=r(e(32121)),i=r(e(1870)),d=r(e(36930));function r(p){return p&&p.__esModule?p:{default:p}}R.exports=c.default},74177:()=>{var R,c;c=R||(R={}),function(e){var t="object"==typeof globalThis?globalThis:"object"==typeof global?global:"object"==typeof self?self:"object"==typeof this?this:function r(){return function i(){try{return Function("return this;")()}catch{}}()||function d(){try{return(0,eval)("(function() { return this; })()")}catch{}}()}(),n=o(c);function o(a,p){return function(h,m){Object.defineProperty(a,h,{configurable:!0,writable:!0,value:m}),p&&p(h,m)}}typeof t.Reflect<"u"&&(n=o(t.Reflect,n)),function(e,t){var n=Object.prototype.hasOwnProperty,o="function"==typeof Symbol,i=o&&typeof Symbol.toPrimitive<"u"?Symbol.toPrimitive:"@@toPrimitive",d=o&&typeof Symbol.iterator<"u"?Symbol.iterator:"@@iterator",r="function"==typeof Object.create,a={__proto__:[]}instanceof Array,p=!r&&!a,h={create:r?function(){return Ut(Object.create(null))}:a?function(){return Ut({__proto__:null})}:function(){return Ut({})},has:p?function(ke,ot){return n.call(ke,ot)}:function(ke,ot){return ot in ke},get:p?function(ke,ot){return n.call(ke,ot)?ke[ot]:void 0}:function(ke,ot){return ke[ot]}},m=Object.getPrototypeOf(Function),_="function"==typeof Map&&"function"==typeof Map.prototype.entries?Map:function Pt(){var ke={},ot=[],gt=function(){function Dt(Ft,St,wt){this._index=0,this._keys=Ft,this._values=St,this._selector=wt}return Dt.prototype["@@iterator"]=function(){return this},Dt.prototype[d]=function(){return this},Dt.prototype.next=function(){var Ft=this._index;if(Ft>=0&&Ft<this._keys.length){var St=this._selector(this._keys[Ft],this._values[Ft]);return Ft+1>=this._keys.length?(this._index=-1,this._keys=ot,this._values=ot):this._index++,{value:St,done:!1}}return{value:void 0,done:!0}},Dt.prototype.throw=function(Ft){throw this._index>=0&&(this._index=-1,this._keys=ot,this._values=ot),Ft},Dt.prototype.return=function(Ft){return this._index>=0&&(this._index=-1,this._keys=ot,this._values=ot),{value:Ft,done:!0}},Dt}();return function(){function Dt(){this._keys=[],this._values=[],this._cacheKey=ke,this._cacheIndex=-2}return Object.defineProperty(Dt.prototype,"size",{get:function(){return this._keys.length},enumerable:!0,configurable:!0}),Dt.prototype.has=function(Ft){return this._find(Ft,!1)>=0},Dt.prototype.get=function(Ft){var St=this._find(Ft,!1);return St>=0?this._values[St]:void 0},Dt.prototype.set=function(Ft,St){var wt=this._find(Ft,!0);return this._values[wt]=St,this},Dt.prototype.delete=function(Ft){var St=this._find(Ft,!1);if(St>=0){for(var wt=this._keys.length,Xt=St+1;Xt<wt;Xt++)this._keys[Xt-1]=this._keys[Xt],this._values[Xt-1]=this._values[Xt];return this._keys.length--,this._values.length--,Xe(Ft,this._cacheKey)&&(this._cacheKey=ke,this._cacheIndex=-2),!0}return!1},Dt.prototype.clear=function(){this._keys.length=0,this._values.length=0,this._cacheKey=ke,this._cacheIndex=-2},Dt.prototype.keys=function(){return new gt(this._keys,this._values,hn)},Dt.prototype.values=function(){return new gt(this._keys,this._values,Vt)},Dt.prototype.entries=function(){return new gt(this._keys,this._values,$n)},Dt.prototype["@@iterator"]=function(){return this.entries()},Dt.prototype[d]=function(){return this.entries()},Dt.prototype._find=function(Ft,St){if(!Xe(this._cacheKey,Ft)){this._cacheIndex=-1;for(var wt=0;wt<this._keys.length;wt++)if(Xe(this._keys[wt],Ft)){this._cacheIndex=wt;break}}return this._cacheIndex<0&&St&&(this._cacheIndex=this._keys.length,this._keys.push(Ft),this._values.push(void 0)),this._cacheIndex},Dt}();function hn(Dt,Ft){return Dt}function Vt(Dt,Ft){return Ft}function $n(Dt,Ft){return[Dt,Ft]}}(),v="function"==typeof Set&&"function"==typeof Set.prototype.entries?Set:function xt(
1){return function(){function ot(){this._map=new _}return Object.defineProperty(ot.prototype,"size",{get:function(){return this._map.size},enumerable:!0,configurable:!0}),ot.prototype.has=function(gt){return this._map.has(gt)},ot.prototype.add=function(gt){return this._map.set(gt,gt),this},ot.prototype.delete=function(gt){return this._map.delete(gt)},ot.prototype.clear=function(){this._map.clear()},ot.prototype.keys=function(){return this._map.keys()},ot.prototype.values=function(){return this._map.keys()},ot.prototype.entries=function(){return this._map.entries()},ot.prototype["@@iterator"]=function(){return this.keys()},ot.prototype[d]=function(){return this.keys()},ot}()}(),E="function"==typeof WeakMap?WeakMap:function lt(){var ke=16,ot=h.create(),gt=zt();return function(){function Ft(){this._key=zt()}return Ft.prototype.has=function(St){var wt=hn(St,!1);return void 0!==wt&&h.has(wt,this._key)},Ft.prototype.get=function(St){var wt=hn(St,!1);return void 0!==wt?h.get(wt,this._key):void 0},Ft.prototype.set=function(St,wt){return hn(St,!0)[this._key]=wt,this},Ft.prototype.delete=function(St){var wt=hn(St,!1);return void 0!==wt&&delete wt[this._key]},Ft.prototype.clear=function(){this._key=zt()},Ft}();function zt(){var Ft;do{Ft="@@WeakMap@@"+Dt()}while(h.has(ot,Ft));return ot[Ft]=!0,Ft}function hn(Ft,St){if(!n.call(Ft,gt)){if(!St)return;Object.defineProperty(Ft,gt,{value:h.create()})}return Ft[gt]}function Vt(Ft,St){for(var wt=0;wt<St;++wt)Ft[wt]=255*Math.random()|0;return Ft}function Dt(){var Ft=function $n(Ft){if("function"==typeof Uint8Array){var St=new Uint8Array(Ft);return typeof crypto<"u"?crypto.getRandomValues(St):typeof msCrypto<"u"?msCrypto.getRandomValues(St):Vt(St,Ft),St}return Vt(new Array(Ft),Ft)}(ke);Ft[6]=79&Ft[6]|64,Ft[8]=191&Ft[8]|128;for(var St="",wt=0;wt<ke;++wt){var Xt=Ft[wt];(4===wt||6===wt||8===wt)&&(St+="-"),Xt<16&&(St+="0"),St+=Xt.toString(16).toLowerCase()}return St}}(),O=o?Symbol.for("@reflect-metadata:registry"):void 0,b=function tt(){var ke;return!ne(O)&&ce(t.Reflect)&&Object.isExtensible(t.Reflect)&&(ke=t.Reflect[O]),ne(ke)&&(ke=function pn(){var ke;!ne(O)&&typeof t.Reflect<"u"&&!(O in t.Reflect)&&"function"==typeof t.Reflect.defineMetadata&&(ke=function At(ke){var ot=ke.defineMetadata,gt=ke.hasOwnMetadata,zt=ke.getOwnMetadata,hn=ke.getOwnMetadataKeys,Vt=ke.deleteMetadata,$n=new E;return{isProviderFor:function(Ft,St){var wt=$n.get(Ft);return!(ne(wt)||!wt.has(St))||!!hn(Ft,St).length&&(ne(wt)&&(wt=new v,$n.set(Ft,wt)),wt.add(St),!0)},OrdinaryDefineOwnMetadata:ot,OrdinaryHasOwnMetadata:gt,OrdinaryGetOwnMetadata:zt,OrdinaryOwnMetadataKeys:hn,OrdinaryDeleteMetadata:Vt}}(t.Reflect));var ot,gt,zt,hn=new E,Vt={registerProvider:$n,getProvider:Ft,setProvider:wt};return Vt;function $n(Xt){if(!Object.isExtensible(Vt))throw new Error("Cannot add provider to a frozen registry.");switch(!0){case ke===Xt:break;case ne(ot):ot=Xt;break;case ot===Xt:break;case ne(gt):gt=Xt;break;case gt===Xt:break;default:void 0===zt&&(zt=new v),zt.add(Xt)}}function Dt(Xt,st){if(!ne(ot)){if(ot.isProviderFor(Xt,st))return ot;if(!ne(gt)){if(gt.isProviderFor(Xt,st))return ot;if(!ne(zt))for(var xe=Mt(zt);;){var Le=nt(xe);if(!Le)return;var qe=Yt(Le);if(qe.isProviderFor(Xt,st))return mt(xe),qe}}}if(!ne(ke)&&ke.isProviderFor(Xt,st))return ke}function Ft(Xt,st){var Le,xe=hn.get(Xt);return ne(xe)||(Le=xe.get(st)),ne(Le)&&(ne(Le=Dt(Xt,st))||(ne(xe)&&(xe=new _,hn.set(Xt,xe)),xe.set(st,Le))),Le}function St(Xt){if(ne(Xt))throw new TypeError;return ot===Xt||gt===Xt||!ne(zt)&&zt.has(Xt)}function wt(Xt,st,xe){if(!St(xe))throw new Error("Metadata provider not registered.");var Le=Ft(Xt,st);if(Le!==xe){if(!ne(Le))return!1;var qe=hn.get(Xt);ne(qe)&&(qe=new _,hn.set(Xt,qe)),qe.set(st,xe)}return!0}}()),!ne(O)&&ce(t.Reflect)&&Object.isExtensible(t.Reflect)&&Object.defineProperty(t.Reflect,O,{enumerable:!1,configurable:!1,writable:!1,value:ke}),ke}(),M=function Tt(ke){var ot=new E,gt={isProviderFor:function(St,wt){var Xt=ot.get(St);return!ne(Xt)&&Xt.has(wt)},OrdinaryDefineOwnMetadata:function $n(St,wt,Xt,st){zt(Xt,st,!0).set(St,wt)},OrdinaryHasOwnMetadata:function hn(St,wt,Xt){var st=zt(wt,Xt,!1);return!ne(st)&&Ee(st.has(St))},OrdinaryGetOwnMetadata:function Vt(St,wt,Xt){var st=zt(wt,Xt,!1);if(!ne(st))return st.get(St)},OrdinaryOwnMetadataKeys:function Dt(St,wt){var Xt=[],st=zt(St,wt,!1);if(ne(st))return Xt;for(var Le=Mt(st.keys()),qe=0;;){var at=nt(Le);if(!at)return Xt.length=qe,Xt;var Jt=Yt(at);try{Xt[qe]=Jt}catch($t){try{mt(Le)}finally{throw $t}}qe++}},OrdinaryDeleteMetadata:function Ft(St,wt,Xt){var st=zt(wt,Xt,!1);if(ne(st)||!st.delete(St))return!1;if(0===st.size){var xe=ot.get(wt);ne(xe)||(xe.delete(Xt),0===xe.size&&ot.delete(xe))}return!0}};return b.registerProvider(gt),gt;function zt(St,wt,Xt){var st=ot.get(St),xe=!1;if(ne(st)){if(!Xt)return;st=new _,ot.set(St,st),xe=!0}var Le=st.get(wt);if(ne(Le)){if(!Xt)return;if(Le=new _,st.set(wt,Le),!ke.setProvider(St,wt,gt))throw st.delete(wt),xe&&ot.delete(St),new Error("Wrong provider for target.")}return Le}}(b);function K(ke,ot,gt){if(ee(ke,ot,gt))return!0;var hn=en(ot);return!q(hn)&&K(ke,hn,gt)}function ee(ke,ot,gt){var zt=Rt(ot,gt,!1);return!ne(zt)&&Ee(zt.OrdinaryHasOwnMetadata(ke,ot,gt))}function ae(ke,ot,gt){if(ee(ke,ot,gt))return Q(ke,ot,gt);var hn=en(ot);return q(hn)?void 0:ae(ke,hn,gt)}function Q(ke,ot,gt){var zt=Rt(ot,gt,!1);if(!ne(zt))return zt.OrdinaryGetOwnMetadata(ke,ot,gt)}function j(ke,ot,gt,zt){Rt(gt,zt,!0).OrdinaryDefineOwnMetadata(ke,ot,gt,zt)}function k(ke,ot){var gt=G(ke,ot),zt=en(ke);if(null===zt)return gt;var hn=k(zt,ot);if(hn.length<=0)return gt;if(gt.length<=0)return hn;for(var Vt=new v,$n=[],Dt=0,Ft=gt;Dt<Ft.length;Dt++)Vt.has(St=Ft[Dt])||(Vt.add(St),$n.push(St));for(var Xt=0,st=hn;Xt<st.length;Xt++){var St;Vt.has(St=st[Xt])||(Vt.add(St),$n.push(St))}return $n}function G(ke,ot){var gt=Rt(ke,ot,!1);return gt?gt.OrdinaryOwnMetadataKeys(ke,ot):[]}function ie(ke){if(null===ke)return 1;switch(typeof ke){case"undefined":return 0;case"boolean":return 2;case"string":return 3;case"symbol":return 4;case"number":return 5;case"object":return null===ke?1:6;default:return 6}}function ne(ke){return void 0===ke}function q(ke){return null===ke}function ce(ke){return"object"==typeof ke?null!==ke:"function"==typeof ke}function ye(ke,ot){switch(ie(ke)){case 0:case 1:case 2:case 3:case 4:case 5:return ke}var gt=3===ot?"string":5===ot?"number":"default",zt=pt(ke,i);if(void 0!==zt){var hn=zt.call(ke,gt);if(ce(hn))throw new TypeError;return hn}return function Me(ke,ot){if("string"===ot){var gt=ke.toString;if(It(gt)&&!ce(zt=gt.call(ke)))return zt;if(It(hn=ke.valueOf)&&!ce(zt=hn.call(ke)))return zt}else{var hn;if(It(hn=ke.valueOf)&&!ce(zt=hn.call(ke)))return zt;var zt,Vt=ke.toString;if(It(Vt)&&!ce(zt=Vt.call(ke)))return zt}throw new TypeError}(ke,"default"===gt?"number":gt)}function Ee(ke){return!!ke}function Je(ke){var ot=ye(ke,3);return function oe(ke){return"symbol"==typeof ke}(ot)?ot:function Ae(ke){return""+ke}(ot)}function _t(ke){return Array.isArray?Array.isArray(ke):ke instanceof Object?ke instanceof Array:"[object Array]"===Object.prototype.toString.call(ke)}function It(ke){return"function"==typeof ke}function it(ke){return"function"==typeof ke}function Xe(ke,ot){return ke===ot||ke!=ke&&ot!=ot}function pt(ke,ot){var gt=ke[ot];if(null!=gt){if(!It(gt))throw new TypeError;return gt}}function Mt(ke){var ot=pt(ke,d);if(!It(ot))throw new TypeError;var gt=ot.call(ke);if(!ce(gt))throw new TypeError;return gt}function Yt(ke){return ke.value}function nt(ke){var ot=ke.next();return!ot.done&&ot}function mt(ke){var ot=ke.return;ot&&ot.call(ke)}function en(ke){var ot=Object.getPrototypeOf(ke);if("function"!=typeof ke||ke===m||ot!==m)return ot;var gt=ke.prototype,zt=gt&&Object.getPrototypeOf(gt);if(null==zt||zt===Object.prototype)return ot;var hn=zt.constructor;return"function"!=typeof hn||hn===ke?ot:hn}function Rt(ke,ot,gt){var zt=b.getProvider(ke,ot);if(!ne(zt))return zt;if(gt){if(b.setProvider(ke,ot,M))return M;throw new Error("Illegal state.")}}function Ut(ke){return ke.__=void 0,delete ke.__,ke}e("decorate",function P(ke,ot,gt,zt){if(ne(gt)){if(!_t(ke))throw new TypeError;if(!it(ot))throw new TypeError;return function X(ke,ot){for(var gt=ke.length-1;gt>=0;--gt){var hn=(0,ke[gt])(ot);if(!ne(hn)&&!q(hn)){if(!it(hn))throw new TypeError;ot=hn}}return ot}(ke,ot)}if(!_t(ke))throw new TypeError;if(!ce(ot))throw new TypeError;if(!ce(zt)&&!ne(zt)&&!q(zt))throw new TypeError;return q(zt)&&(zt=void 0),function te(ke,ot,gt,zt){for(var hn=ke.length-1;hn>=0;--hn){var $n=(0,ke[hn])(ot,gt,zt);if(!ne($n)&&!q($n)){if(!ce($n))throw new TypeError;zt=$n}}return zt}(ke,ot,gt=Je(gt),zt)}),e("metadata",function D(ke,ot){return function gt(zt,hn){if(!ce(zt))throw new TypeError;if(!ne(hn)&&!function Be(ke){switch(ie(ke)){case 3:case 4:return!0;default:return!1}}(hn))throw new TypeError;j(ke,ot,zt,hn)}}),e("defineMetadata",function l(ke,ot,gt,zt){if(!ce(gt))throw new TypeError;return ne(zt)||(zt=Je(zt)),j(ke,ot,gt,zt)}),e("hasMetadata",function C(ke,ot,gt){if(!ce(ot))throw new TypeError;return ne(gt)||(gt=Je(gt)),K(ke,ot,gt)}),e("hasOwnMetadata",function I(ke,ot,gt){if(!ce(ot))throw new TypeError;return ne(gt)||(gt=Je(gt)),ee(ke,ot,gt)}),e("getMetadata",function g(ke,ot,gt){if(!ce(ot))throw new TypeError;return ne(gt)||(gt=Je(gt)),ae(ke,ot,gt)}),e("getOwnMetadata",function B(ke,ot,gt){if(!ce(ot))throw new TypeError;return ne(gt)||(gt=Je(gt)),Q(ke,ot,gt)}),e("getMetadataKeys",function L(ke,ot){if(!ce(ke))throw new TypeError;return ne(ot)||(ot=Je(ot)),k(ke,ot)}),e("getOwnMetadataKeys",function V(ke,ot){if(!ce(ke))throw new TypeError;return ne(ot)||(ot=Je(ot)),G(ke,ot)}),e("deleteMetadata",function Y(ke,ot,gt){if(!ce(ot))throw new TypeError;if(ne(gt)||(gt=Je(gt)),!ce(ot))throw new TypeError;ne(gt)||(gt=Je(gt));var zt=Rt(ot,gt,!1);return!ne(zt)&&zt.OrdinaryDeleteMetadata(ke,ot,gt)})}(n,t),typeof t.Reflect>"u"&&(t.Reflect=c)}()},64836:R=>
1{R.exports=function c(e){return e&&e.__esModule?e:{default:e}},R.exports.__esModule=!0,R.exports.default=R.exports},18698:R=>{function c(e){return R.exports=c="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.exports.__esModule=!0,R.exports.default=R.exports,c(e)}R.exports=c,R.exports.__esModule=!0,R.exports.default=R.exports},12722:(R,c,e)=>{"use strict";e(60228),e(54333),e(30050),e(99871),e(1049),e(32349),e(50149),e(43792),e(69707),e(63545),e(62087),e(51505),e(45247),e(22373),e(76034);var t=e(50496);R.exports=t.Reflect},10509:(R,c,e)=>{"use strict";var t=e(69985),n=e(23691),o=TypeError;R.exports=function(i){if(t(i))return i;throw new o(n(i)+" is not a function")}},52655:(R,c,e)=>{"use strict";var t=e(19429),n=e(23691),o=TypeError;R.exports=function(i){if(t(i))return i;throw new o(n(i)+" is not a constructor")}},23550:(R,c,e)=>{"use strict";var t=e(60598),n=String,o=TypeError;R.exports=function(i){if(t(i))return i;throw new o("Can't set "+n(i)+" as a prototype")}},85027:(R,c,e)=>{"use strict";var t=e(48999),n=String,o=TypeError;R.exports=function(i){if(t(i))return i;throw new o(n(i)+" is not an object")}},11655:(R,c,e)=>{"use strict";var t=e(3689);R.exports=t(function(){if("function"==typeof ArrayBuffer){var n=new ArrayBuffer(8);Object.isExtensible(n)&&Object.defineProperty(n,"a",{value:8})}})},84328:(R,c,e)=>{"use strict";var t=e(65290),n=e(27578),o=e(6310),i=function(d){return function(r,a,p){var h=t(r),m=o(h);if(0===m)return!d&&-1;var v,_=n(p,m);if(d&&a!=a){for(;m>_;)if((v=h[_++])!=v)return!0}else for(;m>_;_++)if((d||_ in h)&&h[_]===a)return d||_||0;return!d&&-1}};R.exports={includes:i(!0),indexOf:i(!1)}},96004:(R,c,e)=>{"use strict";var t=e(68844);R.exports=t([].slice)},6648:(R,c,e)=>{"use strict";var t=e(68844),n=t({}.toString),o=t("".slice);R.exports=function(i){return o(n(i),8,-1)}},50926:(R,c,e)=>{"use strict";var t=e(23043),n=e(69985),o=e(6648),d=e(44201)("toStringTag"),r=Object,a="Arguments"===o(function(){return arguments}());R.exports=t?o:function(h){var m,_,v;return void 0===h?"Undefined":null===h?"Null":"string"==typeof(_=function(h,m){try{return h[m]}catch{}}(m=r(h),d))?_:a?o(m):"Object"===(v=o(m))&&n(m.callee)?"Arguments":v}},8758:(R,c,e)=>{"use strict";var t=e(36812),n=e(19152),o=e(82474),i=e(72560);R.exports=function(d,r,a){for(var p=n(r),h=i.f,m=o.f,_=0;_<p.length;_++){var v=p[_];!t(d,v)&&(!a||!t(a,v))&&h(d,v,m(r,v))}}},81748:(R,c,e)=>{"use strict";var t=e(3689);R.exports=!t(function(){function n(){}return n.prototype.constructor=null,Object.getPrototypeOf(new n)!==n.prototype})},75773:(R,c,e)=>{"use strict";var t=e(67697),n=e(72560),o=e(75684);R.exports=t?function(i,d,r){return n.f(i,d,o(1,r))}:function(i,d,r){return i[d]=r,i}},75684:R=>{"use strict";R.exports=function(c,e){return{enumerable:!(1&c),configurable:!(2&c),writable:!(4&c),value:e}}},11880:(R,c,e)=>{"use strict";var t=e(69985),n=e(72560),o=e(98702),i=e(95014);R.exports=function(d,r,a,p){p||(p={});var h=p.enumerable,m=void 0!==p.name?p.name:r;if(t(a)&&o(a,m,p),p.global)h?d[r]=a:i(r,a);else{try{p.unsafe?d[r]&&(h=!0):delete d[r]}catch{}h?d[r]=a:n.f(d,r,{value:a,enumerable:!1,configurable:!p.nonConfigurable,writable:!p.nonWritable})}return d}},95014:(R,c,e)=>{"use strict";var t=e(51087),n=Object.defineProperty;R.exports=function(o,i){try{n(t,o,{value:i,configurable:!0,writable:!0})}catch{t[o]=i}return i}},67697:(R,c,e)=>{"use strict";var t=e(3689);R.exports=!t(function(){return 7!==Object.defineProperty({},1,{get:function(){return 7}})[1]})},36420:(R,c,e)=>{"use strict";var t=e(51087),n=e(48999),o=t.document,i=n(o)&&n(o.createElement);R.exports=function(d){return i?o.createElement(d):{}}},72739:R=>{"use strict";R.exports=["constructor","hasOwnProperty","isPrototypeOf","propertyIsEnumerable","toLocaleString","toString","valueOf"]},68017:(R,c,e)=>{"use strict";var n=e(51087).navigator,o=n&&n.userAgent;R.exports=o?String(o):""},21352:(R,c,e)=>{"use strict";var a,p,t=e(51087),n=e(68017),o=t.process,i=t.Deno,d=o&&o.versions||i&&i.version,r=d&&d.v8;r&&(p=(a=r.split("."))[0]>0&&a[0]<4?1:+(a[0]+a[1])),!p&&n&&(!(a=n.match(/Edge\/(\d+)/))||a[1]>
1=74)&&(a=n.match(/Chrome\/(\d+)/))&&(p=+a[1]),R.exports=p},79989:(R,c,e)=>{"use strict";var t=e(51087),n=e(82474).f,o=e(75773),i=e(11880),d=e(95014),r=e(8758),a=e(35266);R.exports=function(p,h){var O,b,M,P,D,m=p.target,_=p.global,v=p.stat;if(O=_?t:v?t[m]||d(m,{}):t[m]&&t[m].prototype)for(b in h){if(P=h[b],M=p.dontCallGetSet?(D=n(O,b))&&D.value:O[b],!a(_?b:m+(v?".":"#")+b,p.forced)&&void 0!==M){if(typeof P==typeof M)continue;r(P,M)}(p.sham||M&&M.sham)&&o(P,"sham",!0),i(O,b,P,p)}}},3689:R=>{"use strict";R.exports=function(c){try{return!!c()}catch{return!0}}},71594:(R,c,e)=>{"use strict";var t=e(3689);R.exports=!t(function(){return Object.isExtensible(Object.preventExtensions({}))})},61735:(R,c,e)=>{"use strict";var t=e(97215),n=Function.prototype,o=n.apply,i=n.call;R.exports="object"==typeof Reflect&&Reflect.apply||(t?i.bind(o):function(){return i.apply(o,arguments)})},97215:(R,c,e)=>{"use strict";var t=e(3689);R.exports=!t(function(){var n=function(){}.bind();return"function"!=typeof n||n.hasOwnProperty("prototype")})},86761:(R,c,e)=>{"use strict";var t=e(68844),n=e(10509),o=e(48999),i=e(36812),d=e(96004),r=e(97215),a=Function,p=t([].concat),h=t([].join),m={},_=function(v,E,O){if(!i(m,E)){for(var b=[],M=0;M<E;M++)b[M]="a["+M+"]";m[E]=a("C,a","return new C("+h(b,",")+")")}return m[E](v,O)};R.exports=r?a.bind:function(E){var O=n(this),b=O.prototype,M=d(arguments,1),P=function(){var l=p(M,d(arguments));return this instanceof P?_(O,l.length,l):O.apply(E,l)};return o(b)&&(P.prototype=b),P}},22615:(R,c,e)=>{"use strict";var t=e(97215),n=Function.prototype.call;R.exports=t?n.bind(n):function(){return n.apply(n,arguments)}},41236:(R,c,e)=>{"use strict";var t=e(67697),n=e(36812),o=Function.prototype,i=t&&Object.getOwnPropertyDescriptor,d=n(o,"name"),r=d&&"something"===function(){}.name,a=d&&(!t||t&&i(o,"name").configurable);R.exports={EXISTS:d,PROPER:r,CONFIGURABLE:a}},52743:(R,c,e)=>{"use strict";var t=e(68844),n=e(10509);R.exports=function(o,i,d){try{return t(n(Object.getOwnPropertyDescriptor(o,i)[d]))}catch{}}},68844:(R,c,e)=>{"use strict";var t=e(97215),n=Function.prototype,o=n.call,i=t&&n.bind.bind(o,o);R.exports=t?i:function(d){return function(){return o.apply(d,arguments)}}},76058:(R,c,e)=>{"use strict";var t=e(51087),n=e(69985),o=function(i){return n(i)?i:void 0};R.exports=function(i,d){return arguments.length<2?o(t[i]):t[i]&&t[i][d]}},54849:(R,c,e)=>{"use strict";var t=e(10509),n=e(981);R.exports=function(o,i){var d=o[i];return n(d)?void 0:t(d)}},51087:function(R){"use strict";var c=function(e){return e&&e.Math===Math&&e};R.exports=c("object"==typeof globalThis&&globalThis)||c("object"==typeof window&&window)||c("object"==typeof self&&self)||c("object"==typeof global&&global)||c("object"==typeof this&&this)||function(){return this}()||Function("return this")()},36812:(R,c,e)=>{"use strict";var t=e(68844),n=e(90690),o=t({}.hasOwnProperty);R.exports=Object.hasOwn||function(d,r){return o(n(d),r)}},57248:R=>{"use strict";R.exports={}},2688:(R,c,e)=>{"use strict";var t=e(76058);R.exports=t("document","documentElement")},68506:(R,c,e)=>{"use strict";var t=e(67697),n=e(3689),o=e(36420);R.exports=!t&&!n(function(){return 7!==Object.defineProperty(o("div"),"a",{get:function(){return 7}}).a})},94413:(R,c,e)=>{"use strict";var t=e(68844),n=e(3689),o=e(6648),i=Object,d=t("".split);R.exports=n(function(){return!i("z").propertyIsEnumerable(0)})?function(r){return"String"===o(r)?d(r,""):i(r)}:i},6738:(R,c,e)=>{"use strict";var t=e(68844),n=e(69985),o=e(84091),i=t(Function.toString);n(o.inspectSource)||(o.inspectSource=function(d){return i(d)}),R.exports=o.inspectSource},618:(R,c,e)=>{"use strict";var v,E,O,t=e(59834),n=e(51087),o=e(48999),i=e(75773),d=e(36812),r=e(84091),a=e(2713),p=e(57248),h="Object already initialized",m=n.TypeError;if(t||r.state){var P=r.state||(r.state=new(0,n.WeakMap));P.get=P.get,P.has=P.has,P.set=P.set,v=function(l,C){if(P.has(l))throw new m(h);return C.facade=l,P.set(l,C),C},E=function(l){return P.get(l)||{}},O=function(l){return P.has(l)}}else{var D=a("state");p[D]=!0,v=function(l,C){if(d(l,D))throw new m(h);return C.facade=l,i(l,D,C),C},E=function(l){return d(l,D)?l[D]:{}},O=function(l){return d(l,D)}}R.exports={set:v,get:E,has:O,enforce:function(l){return O(l)?E(l):v(l,{})},getterFor:function(l){return function(C){var I;
1if(!o(C)||(I=E(C)).type!==l)throw new m("Incompatible receiver, "+l+" required");return I}}}},69985:R=>{"use strict";var c="object"==typeof document&&document.all;R.exports=typeof c>"u"&&void 0!==c?function(e){return"function"==typeof e||e===c}:function(e){return"function"==typeof e}},19429:(R,c,e)=>{"use strict";var t=e(68844),n=e(3689),o=e(69985),i=e(50926),d=e(76058),r=e(6738),a=function(){},p=d("Reflect","construct"),h=/^\s*(?:class|function)\b/,m=t(h.exec),_=!h.test(a),v=function(b){if(!o(b))return!1;try{return p(a,[],b),!0}catch{return!1}},E=function(b){if(!o(b))return!1;switch(i(b)){case"AsyncFunction":case"GeneratorFunction":case"AsyncGeneratorFunction":return!1}try{return _||!!m(h,r(b))}catch{return!0}};E.sham=!0,R.exports=!p||n(function(){var O;return v(v.call)||!v(Object)||!v(function(){O=!0})||O})?E:v},76251:(R,c,e)=>{"use strict";var t=e(36812);R.exports=function(n){return void 0!==n&&(t(n,"value")||t(n,"writable"))}},35266:(R,c,e)=>{"use strict";var t=e(3689),n=e(69985),o=/#|\.prototype\./,i=function(h,m){var _=r[d(h)];return _===p||_!==a&&(n(m)?t(m):!!m)},d=i.normalize=function(h){return String(h).replace(o,".").toLowerCase()},r=i.data={},a=i.NATIVE="N",p=i.POLYFILL="P";R.exports=i},981:R=>{"use strict";R.exports=function(c){return null==c}},48999:(R,c,e)=>{"use strict";var t=e(69985);R.exports=function(n){return"object"==typeof n?null!==n:t(n)}},60598:(R,c,e)=>{"use strict";var t=e(48999);R.exports=function(n){return t(n)||null===n}},53931:R=>{"use strict";R.exports=!1},30734:(R,c,e)=>{"use strict";var t=e(76058),n=e(69985),o=e(23622),i=e(39525),d=Object;R.exports=i?function(r){return"symbol"==typeof r}:function(r){var a=t("Symbol");return n(a)&&o(a.prototype,d(r))}},6310:(R,c,e)=>{"use strict";var t=e(43126);R.exports=function(n){return t(n.length)}},98702:(R,c,e)=>{"use strict";var t=e(68844),n=e(3689),o=e(69985),i=e(36812),d=e(67697),r=e(41236).CONFIGURABLE,a=e(6738),p=e(618),h=p.enforce,m=p.get,_=String,v=Object.defineProperty,E=t("".slice),O=t("".replace),b=t([].join),M=d&&!n(function(){return 8!==v(function(){},"length",{value:8}).length}),P=String(String).split("String"),D=R.exports=function(l,C,I){"Symbol("===E(_(C),0,7)&&(C="["+O(_(C),/^Symbol\(([^)]*)\).*$/,"$1")+"]"),I&&I.getter&&(C="get "+C),I&&I.setter&&(C="set "+C),(!i(l,"name")||r&&l.name!==C)&&(d?v(l,"name",{value:C,configurable:!0}):l.name=C),M&&I&&i(I,"arity")&&l.length!==I.arity&&v(l,"length",{value:I.arity});try{I&&i(I,"constructor")&&I.constructor?d&&v(l,"prototype",{writable:!1}):l.prototype&&(l.prototype=void 0)}catch{}var g=h(l);return i(g,"source")||(g.source=b(P,"string"==typeof C?C:"")),l};Function.prototype.toString=D(function(){return o(this)&&m(this).source||a(this)},"toString")},58828:R=>{"use strict";var c=Math.ceil,e=Math.floor;R.exports=Math.trunc||function(n){var o=+n;return(o>0?e:c)(o)}},25391:(R,c,e)=>{"use strict";var P,t=e(85027),n=e(98920),o=e(72739),i=e(57248),d=e(2688),r=e(36420),a=e(2713),m="prototype",_="script",v=a("IE_PROTO"),E=function(){},O=function(l){return"<"+_+">"+l+"</"+_+">"},b=function(l){l.write(O("")),l.close();var C=l.parentWindow.Object;return l=null,C},D=function(){try{P=new ActiveXObject("htmlfile")}catch{}D=typeof document<"u"?document.domain&&P?b(P):function(){var I,l=r("iframe"),C="java"+_+":";return l.style.display="none",d.appendChild(l),l.src=String(C),(I=l.contentWindow.document).open(),I.write(O("document.F=Object")),I.close(),I.F}():b(P);for(var l=o.length;l--;)delete D[m][o[l]];return D()};i[v]=!0,R.exports=Object.create||function(C,I){var g;return null!==C?(E[m]=t(C),g=new E,E[m]=null,g[v]=C):g=D(),void 0===I?g:n.f(g,I)}},98920:(R,c,e)=>{"use strict";var t=e(67697),n=e(15648),o=e(72560),i=e(85027),d=e(65290),r=e(20300);c.f=t&&!n?Object.defineProperties:function(p,h){i(p);for(var O,m=d(h),_=r(h),v=_.length,E=0;v>E;)o.f(p,O=_[E++],m[O]);return p}},72560:(R,c,e)=>{"use strict";var t=e(67697),n=e(68506),o=e(15648),i=e(85027),d=e(18360),r=TypeError,a=Object.defineProperty,p=Object.getOwnPropertyDescriptor,h="enumerable",m="configurable",_="writable";c.f=t?o?function(E,O,b){if(i(E),O=d(O),i(b),"function"==typeof E&&"prototype"===O&&"value"in b&&_ in b&&!b[_]){var M=p(E,O);M&&M[_]&&(E[O]=b.value,b={configurable:m in b?b[m]:M[m],enumerable:h in b?b[h]:M[h],writable:!1})}return a(E,O,b)}:a:function(E,O,b){if(i(E),O=d(O),i(b),n)try{return a(E,O,b)}catch{}
vendor: 9,263 bytes, line 1
1if("get"in b||"set"in b)throw new r("Accessors not supported");return"value"in b&&(E[O]=b.value),E}},82474:(R,c,e)=>{"use strict";var t=e(67697),n=e(22615),o=e(49556),i=e(75684),d=e(65290),r=e(18360),a=e(36812),p=e(68506),h=Object.getOwnPropertyDescriptor;c.f=t?h:function(_,v){if(_=d(_),v=r(v),p)try{return h(_,v)}catch{}if(a(_,v))return i(!n(o.f,_,v),_[v])}},72741:(R,c,e)=>{"use strict";var t=e(54948),o=e(72739).concat("length","prototype");c.f=Object.getOwnPropertyNames||function(d){return t(d,o)}},7518:(R,c)=>{"use strict";c.f=Object.getOwnPropertySymbols},61868:(R,c,e)=>{"use strict";var t=e(36812),n=e(69985),o=e(90690),i=e(2713),d=e(81748),r=i("IE_PROTO"),a=Object,p=a.prototype;R.exports=d?a.getPrototypeOf:function(h){var m=o(h);if(t(m,r))return m[r];var _=m.constructor;return n(_)&&m instanceof _?_.prototype:m instanceof a?p:null}},27049:(R,c,e)=>{"use strict";var t=e(3689),n=e(48999),o=e(6648),i=e(11655),d=Object.isExtensible,r=t(function(){d(1)});R.exports=r||i?function(p){return!(!n(p)||i&&"ArrayBuffer"===o(p))&&(!d||d(p))}:d},23622:(R,c,e)=>{"use strict";var t=e(68844);R.exports=t({}.isPrototypeOf)},54948:(R,c,e)=>{"use strict";var t=e(68844),n=e(36812),o=e(65290),i=e(84328).indexOf,d=e(57248),r=t([].push);R.exports=function(a,p){var v,h=o(a),m=0,_=[];for(v in h)!n(d,v)&&n(h,v)&&r(_,v);for(;p.length>m;)n(h,v=p[m++])&&(~i(_,v)||r(_,v));return _}},20300:(R,c,e)=>{"use strict";var t=e(54948),n=e(72739);R.exports=Object.keys||function(i){return t(i,n)}},49556:(R,c)=>{"use strict";var e={}.propertyIsEnumerable,t=Object.getOwnPropertyDescriptor,n=t&&!e.call({1:2},1);c.f=n?function(i){var d=t(this,i);return!!d&&d.enumerable}:e},49385:(R,c,e)=>{"use strict";var t=e(52743),n=e(48999),o=e(74684),i=e(23550);R.exports=Object.setPrototypeOf||("__proto__"in{}?function(){var a,d=!1,r={};try{(a=t(Object.prototype,"__proto__","set"))(r,[]),d=r instanceof Array}catch{}return function(h,m){return o(h),i(m),n(h)&&(d?a(h,m):h.__proto__=m),h}}():void 0)},65073:(R,c,e)=>{"use strict";var t=e(23043),n=e(50926);R.exports=t?{}.toString:function(){return"[object "+n(this)+"]"}},35899:(R,c,e)=>{"use strict";var t=e(22615),n=e(69985),o=e(48999),i=TypeError;R.exports=function(d,r){var a,p;if("string"===r&&n(a=d.toString)&&!o(p=t(a,d))||n(a=d.valueOf)&&!o(p=t(a,d))||"string"!==r&&n(a=d.toString)&&!o(p=t(a,d)))return p;throw new i("Can't convert object to primitive value")}},19152:(R,c,e)=>{"use strict";var t=e(76058),n=e(68844),o=e(72741),i=e(7518),d=e(85027),r=n([].concat);R.exports=t("Reflect","ownKeys")||function(p){var h=o.f(d(p)),m=i.f;return m?r(h,m(p)):h}},50496:(R,c,e)=>{"use strict";var t=e(51087);R.exports=t},74684:(R,c,e)=>{"use strict";var t=e(981),n=TypeError;R.exports=function(o){if(t(o))throw new n("Can't call method on "+o);return o}},55997:(R,c,e)=>{"use strict";var t=e(72560).f,n=e(36812),i=e(44201)("toStringTag");R.exports=function(d,r,a){d&&!a&&(d=d.prototype),d&&!n(d,i)&&t(d,i,{configurable:!0,value:r})}},2713:(R,c,e)=>{"use strict";var t=e(83430),n=e(14630),o=t("keys");R.exports=function(i){return o[i]||(o[i]=n(i))}},84091:(R,c,e)=>{"use strict";var t=e(53931),n=e(51087),o=e(95014),i="__core-js_shared__",d=R.exports=n[i]||o(i,{});(d.versions||(d.versions=[])).push({version:"3.40.0",mode:t?"pure":"global",copyright:"\xa9 2014-2025 Denis Pushkarev (zloirock.ru)",license:"https://github.com/zloirock/core-js/blob/v3.40.0/LICENSE",source:"https://github.com/zloirock/core-js"})},83430:(R,c,e)=>{"use strict";var t=e(84091);R.exports=function(n,o){return t[n]||(t[n]=o||{})}},50146:(R,c,e)=>{"use strict";var t=e(21352),n=e(3689),i=e(51087).String;R.exports=!!Object.getOwnPropertySymbols&&!n(function(){var d=Symbol("symbol detection");return!i(d)||!(Object(d)instanceof Symbol)||!Symbol.sham&&t&&t<41})},27578:(R,c,e)=>{"use strict";var t=e(68700),n=Math.max,o=Math.min;R.exports=function(i,d){var r=t(i);return r<0?n(r+d,0):o(r,d)}},65290:(R,c,e)=>{"use strict";var t=e(94413),n=e(74684);R.exports=function(o){return t(n(o))}},68700:(R,c,e)=>{"use strict";var t=e(58828);R.exports=function(n){var o=+n;return o!=o||0===o?0:t(o)}},43126:(R,c,e)=>{"use strict";var t=e(68700),n=Math.min;R.exports=function(o){var i=t(o);return i>0?n(i,9007199254740991):0}},90690:(R,c,e)=>{"use strict";var t=e(74684),n=Object;R.exports=function(o){return n(t(o))}},88732:(R,c,e)=>{"use strict";var t=e(22615),n=e(48999),o=e(30734),i=e(54849),d=e(35899),r=e(44201),a=TypeError,p=r("toPrimitive");R.exports=function(h,m){if(!n(h)||o(h))return h;var v,_=i(h,p);if(_){if(void 0===m&&(m="default"),v=t(_,h,m),!n(v)||o(v))return v;throw new a("Can't convert object to primitive value")}return void 0===m&&(m="number"),d(h,m)}},18360:(R,c,e)=>{"use strict";var t=e(88732),n=e(30734);R.exports=function(o){var i=t(o,"string");return n(i)?i:i+""}},23043:(R,c,e)=>{"use strict";var o={};o[e(44201)("toStringTag")]="z",R.exports="[object z]"===String(o)},23691:R=>{"use strict";var c=String;R.exports=function(e){try{return c(e)}catch{return"Object"}}},14630:(R,c,e)=>{"use strict";var t=e(68844),n=0,o=Math.random(),i=t(1..toString);R.exports=function(d){return"Symbol("+(void 0===d?"":d)+")_"+i(++n+o,36)}},39525:(R,c,e)=>{"use strict";var t=e(50146);R.exports=t&&!Symbol.sham&&"symbol"==typeof Symbol.iterator},15648:(R,c,e)=>{"use strict";var t=e(67697),n=e(3689);R.exports=t&&n(function(){return 42!==Object.defineProperty(function(){},"prototype",{value:42,writable:!1}).prototype})},59834:(R,c,e)=>{"use strict";var t=e(51087),n=e(69985),o=t.WeakMap;R.exports=n(o)&&/native code/.test(String(o))},44201:(R,c,e)=>{"use strict";var t=e(51087),n=e(83430),o=e(36812),i=e(14630),d=e(50146),r=e(39525),a=t.Symbol,p=n("wks"),h=r?a.for||a:a&&a.withoutSetter||i;R.exports=function(m){return o(p,m)||(p[m]=d&&o(a,m)?a[m]:h("Symbol."+m)),p[m]}},60228:(R,c,e)=>{"use strict";var t=e(23043),n=e(11880),o=e(65073);t||n(Object.prototype,"toString",o,{unsafe:!0})},54333:(R,c,e)=>{"use strict";var t=e(79989),n=e(61735),o=e(10509),i=e(85027);t({target:"Reflect",stat:!0,forced:!e(3689)(function(){Reflect.apply(function(){})})},{apply:function(p,h,m){return n(o(p),h,i(m))}})},30050:(R,c,e)=>{"use strict";var t=e(79989),n=e(76058),o=e(61735),i=e(86761),d=e(52655),r=e(85027),a=e(48999),p=e(25391),h=e(3689),m=n("Reflect","construct"),_=Object.prototype,v=[].push,E=h(function(){function M(){}return!(m(function(){},[],M)instanceof M)}),O=!h(function(){m(function(){})}),b=E||O;t({target:"Reflect",stat:!0,forced:b,sham:b},{construct:function(P,D){d(P),r(D);var l=arguments.length<3?P:d(arguments[2]);if(O&&!E)return m(P,D,l);if(P===l){switch(D.length){case 0:return new P;case 1:return new P(D[0]);case 2:return new P(D[0],D[1]);case 3:return new P(D[0],D[1],D[2]);case 4:return new P(D[0],D[1],D[2],D[3])}var C=[null];return o(v,C,D),new(o(i,P,C))}var I=l.prototype,g=p(a(I)?I:_),B=o(P,g,D);return a(B)?B:g}})},99871:(R,c,e)=>{"use strict";var t=e(79989),n=e(67697),o=e(85027),i=e(18360),d=e(72560);t({target:"Reflect",stat:!0,forced:e(3689)(function(){Reflect.defineProperty(d.f({},1,{value:1}),1,{value:2})}),sham:!n},{defineProperty:function(h,m,_){o(h);var v=i(m);o(_);try{return d.f(h,v,_),!0}catch{return!1}}})},1049:(R,c,e)=>{"use strict";var t=e(79989),n=e(85027),o=e(82474).f;t({target:"Reflect",stat:!0},{deleteProperty:function(d,r){var a=o(n(d),r);return!(a&&!a.configurable)&&delete d[r]}})},50149:(R,c,e)=>{"use strict";var t=e(79989),n=e(67697),o=e(85027),i=e(82474);t({target:"Reflect",stat:!0,sham:!n},{getOwnPropertyDescriptor:function(r,a){return i.f(o(r),a)}})},43792:(R,c,e)=>{"use strict";var t=e(79989),n=e(85027),o=e(61868);t({target:"Reflect",stat:!0,sham:!e(81748)},{getPrototypeOf:function(r){return o(n(r))}})},32349:(R,c,e)=>{"use strict";var t=e(79989),n=e(22615),o=e(48999),i=e(85027),d=e(76251),r=e(82474),a=e(61868);t({target:"Reflect",stat:!0},{get:function p(h,m){var v,E,_=arguments.length<3?h:arguments[2];return i(h)===_?h[m]:(v=r.f(h,m))?d(v)?v.value:void 0===v.get?void 0:n(v.get,_):o(E=a(h))?p(E,m,_):void 0}})},69707:(R,c,e)=>{"use strict";e(79989)({target:"Reflect",stat:!0},{has:function(o,i){return i in o}})},63545:(R,c,e)=>{"use strict";var t=e(79989),n=e(85027),o=e(27049);t({target:"Reflect",stat:!0},{isExtensible:function(d){return n(d),o(d)}})},62087:(R,c,e)=>{"use strict";e(79989)({target:"Reflect",stat:!0},{ownKeys:e(19152)})},51505:(R,c,e)=>{"use strict";var t=e(79989),n=e(76058),o=e(85027);t({target:"Reflect",stat:!0,sham:!e(71594)},{preventExtensions:function(r){o(r);try{var a=n("Object","preventExtensions");return a&&a(r),!0}catch{return!1}}})},22373:(R,c,e)=>{"use strict";var t=e(79989),n=e(85027),o=e(23550),i=e(49385);i&&t({target:"Reflect",stat:!0},{setPrototypeOf:function(r,a){n(r),o(a);try{return i(r,a),!0}catch{return!1}}})},45247:(R,c,e)=>{"use strict";var t=e(79989),n=e(22615),o=e(85027),i=e(48999),d=e(76251),r=e(3689),a=e(72560),p=e(82474),h=e(61868),m=e(75684);t({target:"Reflect",stat:!0,forced:r(function(){var E=function(){},O=a.f(new E,"a",{configurable:!0});return!1!==Reflect.set(E.prototype,"a",1,O)})},{set:function _(E,O,b){var D,l,C,M=arguments.length<4?E:arguments[3],P=p.f(o(E),O);if(!P){if(i(l=h(E)))return _(l,O,b,M);P=m(0)}if(d(P)){if(!1===P.writable||!i(M))return!1;if(D=p.f(M,O)){if(D.get||D.set||!1===D.writable)return!1;D.value=b,a.f(M,O,D)}
1else a.f(M,O,m(0,b))}else{if(void 0===(C=P.set))return!1;n(C,M,b)}return!0}})},76034:(R,c,e)=>{"use strict";var t=e(79989),n=e(51087),o=e(55997);t({global:!0},{Reflect:{}}),o(n.Reflect,"Reflect",!0)},49671:(R,c,e)=>{"use strict";function t(o,i,d,r,a,p,h){try{var m=o[p](h),_=m.value}catch(v){return void d(v)}m.done?i(_):Promise.resolve(_).then(r,a)}function n(o){return function(){var i=this,d=arguments;return new Promise(function(r,a){var p=o.apply(i,d);function h(_){t(p,r,a,h,m,"next",_)}function m(_){t(p,r,a,h,m,"throw",_)}h(void 0)})}}e.d(c,{Z:()=>n})},37340:(R,c,e)=>{"use strict";e.d(c,{IO:()=>b,LC:()=>n,SB:()=>h,X$:()=>i,ZE:()=>l,ZN:()=>D,_j:()=>t,eR:()=>_,jt:()=>d,k1:()=>C,l3:()=>o,oB:()=>p,pV:()=>E,ru:()=>r,vP:()=>a});class t{}class n{}const o="*";function i(I,g){return{type:7,name:I,definitions:g,options:{}}}function d(I,g=null){return{type:4,styles:g,timings:I}}function r(I,g=null){return{type:3,steps:I,options:g}}function a(I,g=null){return{type:2,steps:I,options:g}}function p(I){return{type:6,styles:I,offset:null}}function h(I,g,B){return{type:0,name:I,styles:g,options:B}}function _(I,g,B=null){return{type:1,expr:I,animation:g,options:B}}function E(I=null){return{type:9,options:I}}function b(I,g,B=null){return{type:11,selector:I,animation:g,options:B}}function P(I){Promise.resolve().then(I)}class D{constructor(g=0,B=0){this._onDoneFns=[],this._onStartFns=[],this._onDestroyFns=[],this._originalOnDoneFns=[],this._originalOnStartFns=[],this._started=!1,this._destroyed=!1,this._finished=!1,this._position=0,this.parentPlayer=null,this.totalTime=g+B}_onFinish(){this._finished||(this._finished=!0,this._onDoneFns.forEach(g=>g()),this._onDoneFns=[])}onStart(g){this._originalOnStartFns.push(g),this._onStartFns.push(g)}onDone(g){this._originalOnDoneFns.push(g),this._onDoneFns.push(g)}onDestroy(g){this._onDestroyFns.push(g)}hasStarted(){return this._started}init(){}play(){this.hasStarted()||(this._onStart(),this.triggerMicrotask()),this._started=!0}triggerMicrotask(){P(()=>this._onFinish())}_onStart(){this._onStartFns.forEach(g=>g()),this._onStartFns=[]}pause(){}restart(){}finish(){this._onFinish()}destroy(){this._destroyed||(this._destroyed=!0,this.hasStarted()||this._onStart(),this.finish(),this._onDestroyFns.forEach(g=>g()),this._onDestroyFns=[])}reset(){this._started=!1,this._finished=!1,this._onStartFns=this._originalOnStartFns,this._onDoneFns=this._originalOnDoneFns}setPosition(g){this._position=this.totalTime?g*this.totalTime:1}getPosition(){return this.totalTime?this._position/this.totalTime:1}triggerCallback(g){const B="start"==g?this._onStartFns:this._onDoneFns;B.forEach(L=>L()),B.length=0}}class l{constructor(g){this._onDoneFns=[],this._onStartFns=[],this._finished=!1,this._started=!1,this._destroyed=!1,this._onDestroyFns=[],this.parentPlayer=null,this.totalTime=0,this.players=g;let B=0,L=0,V=0;const Y=this.players.length;0==Y?P(()=>this._onFinish()):this.players.forEach(X=>{X.onDone(()=>{++B==Y&&this._onFinish()}),X.onDestroy(()=>{++L==Y&&this._onDestroy()}),X.onStart(()=>{++V==Y&&this._onStart()})}),this.totalTime=this.players.reduce((X,te)=>Math.max(X,te.totalTime),0)}_onFinish(){this._finished||(this._finished=!0,this._onDoneFns.forEach(g=>g()),this._onDoneFns=[])}init(){this.players.forEach(g=>g.init())}onStart(g){this._onStartFns.push(g)}_onStart(){this.hasStarted()||(this._started=!0,this._onStartFns.forEach(g=>g()),this._onStartFns=[])}onDone(g){this._onDoneFns.push(g)}onDestroy(g){this._onDestroyFns.push(g)}hasStarted(){return this._started}play(){this.parentPlayer||this.init(),this._onStart(),this.players.forEach(g=>g.play())}pause(){this.players.forEach(g=>g.pause())}restart(){this.players.forEach(g=>g.restart())}finish(){this._onFinish(),this.players.forEach(g=>g.finish())}destroy(){this._onDestroy()}_onDestroy(){this._destroyed||(this._destroyed=!0,this._onFinish(),this.players.forEach(g=>g.destroy()),this._onDestroyFns.forEach(g=>g()),this._onDestroyFns=[])}reset(){this.players.forEach(g=>g.reset()),this._destroyed=!1,this._finished=!1,this._started=!1}setPosition(g){const B=g*this.totalTime;
1this.players.forEach(L=>{const V=L.totalTime?Math.min(1,B/L.totalTime):1;L.setPosition(V)})}getPosition(){const g=this.players.reduce((B,L)=>null===B||L.totalTime>B.totalTime?L:B,null);return null!=g?g.getPosition():0}beforeDestroy(){this.players.forEach(g=>{g.beforeDestroy&&g.beforeDestroy()})}triggerCallback(g){const B="start"==g?this._onStartFns:this._onDoneFns;B.forEach(L=>L()),B.length=0}}const C="!"},40445:(R,c,e)=>{"use strict";e.d(c,{Is:()=>a});var t=e(94650),n=e(36895);const o=new t.InjectionToken("cdk-dir-doc",{providedIn:"root",factory:function i(){return(0,t.inject)(n.K0)}}),d=/^(ar|ckb|dv|he|iw|fa|nqo|ps|sd|ug|ur|yi|.*[-_](Adlm|Arab|Hebr|Nkoo|Rohg|Thaa))(?!.*[-_](Latn|Cyrl)($|-|_))($|-|_)/i;let a=(()=>{class m{constructor(v){this.value="ltr",this.change=new t.EventEmitter,v&&(this.value=function r(m){const _=m?.toLowerCase()||"";return"auto"===_&&typeof navigator<"u"&&navigator?.language?d.test(navigator.language)?"rtl":"ltr":"rtl"===_?"rtl":"ltr"}((v.body?v.body.dir:null)||(v.documentElement?v.documentElement.dir:null)||"ltr"))}ngOnDestroy(){this.change.complete()}}return m.\u0275fac=function(v){return new(v||m)(t.\u0275\u0275inject(o,8))},m.\u0275prov=t.\u0275\u0275defineInjectable({token:m,factory:m.\u0275fac,providedIn:"root"}),m})()},21281:(R,c,e)=>{"use strict";e.d(c,{Eq:()=>d,Ig:()=>n,fI:()=>a,su:()=>o});var t=e(94650);function n(h){return null!=h&&"false"!=`${h}`}function o(h,m=0){return function i(h){return!isNaN(parseFloat(h))&&!isNaN(Number(h))}(h)?Number(h):m}function d(h){return Array.isArray(h)?h:[h]}function a(h){return h instanceof t.ElementRef?h.nativeElement:h}},19109:(R,c,e)=>{"use strict";e.d(c,{Zt:()=>Ra,Bh:()=>ys,Wj:()=>To,_t:()=>ts,bA:()=>_o});var t=e(94650),n=e(36895),o=e(21281),i=e(77579),d=e(39646),r=e(69751),a=e(54968),p=e(84408),h=e(50727);const m={schedule($e){let _e=requestAnimationFrame,pe=cancelAnimationFrame;const{delegate:Ie}=m;Ie&&(_e=Ie.requestAnimationFrame,pe=Ie.cancelAnimationFrame);const N=_e(J=>{pe=void 0,$e(J)});return new h.w0(()=>pe?.(N))},requestAnimationFrame(...$e){const{delegate:_e}=m;return(_e?.requestAnimationFrame||requestAnimationFrame)(...$e)},cancelAnimationFrame(...$e){const{delegate:_e}=m;return(_e?.cancelAnimationFrame||cancelAnimationFrame)(...$e)},delegate:void 0};var v=e(97565);const O=new class E extends v.v{flush(_e){this._active=!0;const pe=this._scheduled;this._scheduled=void 0;const{actions:Ie}=this;let N;_e=_e||Ie.shift();do{if(N=_e.execute(_e.state,_e.delay))break}while((_e=Ie[0])&&_e.id===pe&&Ie.shift());if(this._active=!1,N){for(;(_e=Ie[0])&&_e.id===pe&&Ie.shift();)_e.unsubscribe();throw N}}}(class _ extends p.o{constructor(_e,pe){super(_e,pe),this.scheduler=_e,this.work=pe}requestAsyncId(_e,pe,Ie=0){return null!==Ie&&Ie>0?super.requestAsyncId(_e,pe,Ie):(_e.actions.push(this),_e._scheduled||(_e._scheduled=m.requestAnimationFrame(()=>_e.flush(void 0))))}recycleAsyncId(_e,pe,Ie=0){var N;if(null!=Ie?Ie>0:this.delay>0)return super.recycleAsyncId(_e,pe,Ie);const{actions:J}=_e;null!=pe&&(null===(N=J[J.length-1])||void 0===N?void 0:N.id)!==pe&&(m.cancelAnimationFrame(pe),_e._scheduled=void 0)}});let P,M=1;const D={};function l($e){return $e in D&&(delete D[$e],!0)}const C={setImmediate($e){const _e=M++;return D[_e]=!0,P||(P=Promise.resolve()),P.then(()=>l(_e)&&$e()),_e},clearImmediate($e){l($e)}},{setImmediate:g,clearImmediate:B}=C,L={setImmediate(...$e){const{delegate:_e}=L;return(_e?.setImmediate||g)(...$e)},clearImmediate($e){const{delegate:_e}=L;return(_e?.clearImmediate||B)($e)},delegate:void 0};new class Y extends v.v{flush(_e){this._active=!0;const pe=this._scheduled;this._scheduled=void 0;const{actions:Ie}=this;let N;_e=_e||Ie.shift();do{if(N=_e.execute(_e.state,_e.delay))break}while((_e=Ie[0])&&_e.id===pe&&Ie.shift());if(this._active=!1,N){for(;(_e=Ie[0])&&_e.id===pe&&Ie.shift();)_e.unsubscribe();throw N}}}(class V extends p.o{constructor(_e,pe){super(_e,pe),this.scheduler=_e,this.work=pe}requestAsyncId(_e,pe,Ie=0){return null!==Ie&&Ie>0?super.requestAsyncId(_e,pe,Ie):(_e.actions.push(this),_e._scheduled||(_e._scheduled=L.setImmediate(_e.flush.bind(_e,void 0))))}recycleAsyncId(_e,pe,Ie=0){var N;if(null!=Ie?Ie>0:this.delay>0)return super.recycleAsyncId(_e,pe,Ie);const{actions:J}=_e;null!=pe&&(null===(N=J[J.length-1])||void 0===N?void 0:N.id)!==pe&&(L.clearImmediate(pe),_e._scheduled===pe&&(_e._scheduled=void 0))}});var K=e(34986),ee=e(54482),ae=e(38421),Q=e(25403),k=e(5963);function G($e,_e=K.z){return function j($e){return(0,ee.e)((_e,pe)=>{let Ie=!1,N=null,J=null,H=!1;const de=()=>{if(J?.unsubscribe(),J=null,Ie){Ie=!1;const Fe=N;N=null,pe.next(Fe)}H&&pe.complete()},Pe=()=>{J=null,H&&pe.complete()};_e.subscribe((0,Q.x)(pe,Fe=>{Ie=!0,N=Fe,J||(0,ae.Xf)($e(Fe)).subscribe(J=(0,Q.x)(pe,de,Pe))},()=>{H=!0,(!Ie||!J||J.closed)&&pe.complete()}
1))})}(()=>(0,k.H)($e,_e))}var ie=e(39300);let ne;try{ne=typeof Intl<"u"&&Intl.v8BreakIterator}catch{ne=!1}let Ee,Xe,q=(()=>{class $e{constructor(pe){this._platformId=pe,this.isBrowser=this._platformId?(0,n.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&&!ne)&&typeof CSS<"u"&&!this.EDGE&&!this.TRIDENT,this.WEBKIT=this.isBrowser&&/AppleWebKit/i.test(navigator.userAgent)&&!this.BLINK&&!this.EDGE&&!this.TRIDENT,this.IOS=this.isBrowser&&/iPad|iPhone|iPod/.test(navigator.userAgent)&&!("MSStream"in window),this.FIREFOX=this.isBrowser&&/(firefox|minefield)/i.test(navigator.userAgent),this.ANDROID=this.isBrowser&&/android/i.test(navigator.userAgent)&&!this.TRIDENT,this.SAFARI=this.isBrowser&&/safari/i.test(navigator.userAgent)&&this.WEBKIT}}return $e.\u0275fac=function(pe){return new(pe||$e)(t.\u0275\u0275inject(t.PLATFORM_ID))},$e.\u0275prov=t.\u0275\u0275defineInjectable({token:$e,factory:$e.\u0275fac,providedIn:"root"}),$e})();function Je($e){return function Ae(){if(null==Ee&&typeof window<"u")try{window.addEventListener("test",null,Object.defineProperty({},"passive",{get:()=>Ee=!0}))}finally{Ee=Ee||!1}return Ee}()?$e:!!$e.capture}function Mt($e){if(function pt(){if(null==Xe){const $e=typeof document<"u"?document.head:null;Xe=!(!$e||!$e.createShadowRoot&&!$e.attachShadow)}return Xe}()){const _e=$e.getRootNode?$e.getRootNode():null;if(typeof ShadowRoot<"u"&&ShadowRoot&&_e instanceof ShadowRoot)return _e}return null}function nt($e){return $e.composedPath?$e.composedPath()[0]:$e.target}let xt=(()=>{class $e{constructor(pe,Ie,N){this._ngZone=pe,this._platform=Ie,this._scrolled=new i.x,this._globalSubscription=null,this._scrolledCount=0,this.scrollContainers=new Map,this._document=N}register(pe){this.scrollContainers.has(pe)||this.scrollContainers.set(pe,pe.elementScrolled().subscribe(()=>this._scrolled.next(pe)))}deregister(pe){const Ie=this.scrollContainers.get(pe);Ie&&(Ie.unsubscribe(),this.scrollContainers.delete(pe))}scrolled(pe=20){return this._platform.isBrowser?new r.y(Ie=>{this._globalSubscription||this._addGlobalListener();const N=pe>0?this._scrolled.pipe(G(pe)).subscribe(Ie):this._scrolled.subscribe(Ie);return this._scrolledCount++,()=>{N.unsubscribe(),this._scrolledCount--,this._scrolledCount||this._removeGlobalListener()}}):(0,d.of)()}ngOnDestroy(){this._removeGlobalListener(),this.scrollContainers.forEach((pe,Ie)=>this.deregister(Ie)),this._scrolled.complete()}ancestorScrolled(pe,Ie){const N=this.getAncestorScrollContainers(pe);return this.scrolled(Ie).pipe((0,ie.h)(J=>!J||N.indexOf(J)>-1))}getAncestorScrollContainers(pe){const Ie=[];return this.scrollContainers.forEach((N,J)=>{this._scrollableContainsElement(J,pe)&&Ie.push(J)}),Ie}_getWindow(){return this._document.defaultView||window}_scrollableContainsElement(pe,Ie){let N=(0,o.fI)(Ie),J=pe.getElementRef().nativeElement;do{if(N==J)return!0}while(N=N.parentElement);return!1}_addGlobalListener(){this._globalSubscription=this._ngZone.runOutsideAngular(()=>{const pe=this._getWindow();return(0,a.R)(pe.document,"scroll").subscribe(()=>this._scrolled.next())})}_removeGlobalListener(){this._globalSubscription&&(this._globalSubscription.unsubscribe(),this._globalSubscription=null)}}return $e.\u0275fac=function(pe){return new(pe||$e)(t.\u0275\u0275inject(t.NgZone),t.\u0275\u0275inject(q),t.\u0275\u0275inject(n.K0,8))},$e.\u0275prov=t.\u0275\u0275defineInjectable({token:$e,factory:$e.\u0275fac,providedIn:"root"}),$e})(),ke=(()=>{class $e{constructor(pe,Ie,N){this._platform=pe,this._change=new i.x,this._changeListener=J=>{this._change.next(J)},this._document=N,Ie.runOutsideAngular(()=>{if(pe.isBrowser){const J=this._getWindow();J.addEventListener("resize",this._changeListener),J.addEventListener("orientationchange",this._changeListener)}this.change().subscribe(()=>this._viewportSize=null)})}ngOnDestroy(){if(this._platform.isBrowser){const pe=this._getWindow();pe.removeEventListener("resize",this._changeListener),pe.removeEventListener("orientationchange",this._changeListener)}this._change.complete()}getViewportSize(){this._viewportSize||this._updateViewportSize();const pe={width:this._viewportSize.width,height:this._viewportSize.height};return this._platform.isBrowser||(this._viewportSize=null),pe}getViewportRect(){const pe=this.getViewportScrollPosition(),{width:Ie,height:N}=this.getViewportSize();
1return{top:pe.top,left:pe.left,bottom:pe.top+N,right:pe.left+Ie,height:N,width:Ie}}getViewportScrollPosition(){if(!this._platform.isBrowser)return{top:0,left:0};const pe=this._document,Ie=this._getWindow(),N=pe.documentElement,J=N.getBoundingClientRect();return{top:-J.top||pe.body.scrollTop||Ie.scrollY||N.scrollTop||0,left:-J.left||pe.body.scrollLeft||Ie.scrollX||N.scrollLeft||0}}change(pe=20){return pe>0?this._change.pipe(G(pe)):this._change}_getWindow(){return this._document.defaultView||window}_updateViewportSize(){const pe=this._getWindow();this._viewportSize=this._platform.isBrowser?{width:pe.innerWidth,height:pe.innerHeight}:{width:0,height:0}}}return $e.\u0275fac=function(pe){return new(pe||$e)(t.\u0275\u0275inject(q),t.\u0275\u0275inject(t.NgZone),t.\u0275\u0275inject(n.K0,8))},$e.\u0275prov=t.\u0275\u0275defineInjectable({token:$e,factory:$e.\u0275fac,providedIn:"root"}),$e})(),wt=(()=>{class $e{}return $e.\u0275fac=function(pe){return new(pe||$e)},$e.\u0275mod=t.\u0275\u0275defineNgModule({type:$e}),$e.\u0275inj=t.\u0275\u0275defineInjector({}),$e})();var ve=e(17445),Ue=e(56451),Oe=e(82722),Ke=e(68675),yt=e(54004),sn=e(95698),mn=e(18505),xn=e(63900),Zr=e(40445);function Kr($e,_e,pe){for(let Ie in _e)if(_e.hasOwnProperty(Ie)){const N=_e[Ie];N?$e.setProperty(Ie,N,pe?.has(Ie)?"important":""):$e.removeProperty(Ie)}return $e}function Pr($e,_e){const pe=_e?"":"none";Kr($e.style,{"touch-action":_e?"":"none","-webkit-user-drag":_e?"":"none","-webkit-tap-highlight-color":_e?"":"transparent","user-select":pe,"-ms-user-select":pe,"-webkit-user-select":pe,"-moz-user-select":pe})}function ir($e,_e,pe){Kr($e.style,{position:_e?"":"fixed",top:_e?"":"0",opacity:_e?"":"0",left:_e?"":"-999em"},pe)}function hi($e,_e){return _e&&"none"!=_e?$e+" "+_e:$e}function $r($e){const _e=$e.toLowerCase().indexOf("ms")>-1?1:1e3;return parseFloat($e)*_e}function Qo($e,_e){return $e.getPropertyValue(_e).split(",").map(Ie=>Ie.trim())}function io($e){const _e=$e.getBoundingClientRect();return{top:_e.top,right:_e.right,bottom:_e.bottom,left:_e.left,width:_e.width,height:_e.height,x:_e.x,y:_e.y}}function br($e,_e,pe){const{top:Ie,bottom:N,left:J,right:H}=$e;return pe>=Ie&&pe<=N&&_e>=J&&_e<=H}
1function co($e,_e,pe){$e.top+=_e,$e.bottom=$e.top+$e.height,$e.left+=pe,$e.right=$e.left+$e.width}function Ei($e,_e,pe,Ie){const{top:N,right:J,bottom:H,left:de,width:Pe,height:Fe}=$e,Qe=Pe*_e,Nt=Fe*_e;return Ie>N-Nt&&Ie<H+Nt&&pe>de-Qe&&pe<J+Qe}class xr{constructor(_e){this._document=_e,this.positions=new Map}clear(){this.positions.clear()}cache(_e){this.clear(),this.positions.set(this._document,{scrollPosition:this.getViewportScrollPosition()}),_e.forEach(pe=>{this.positions.set(pe,{scrollPosition:{top:pe.scrollTop,left:pe.scrollLeft},clientRect:io(pe)})})}handleScroll(_e){const pe=nt(_e),Ie=this.positions.get(pe);if(!Ie)return null;const N=Ie.scrollPosition;let J,H;if(pe===this._document){const Fe=this.getViewportScrollPosition();J=Fe.top,H=Fe.left}else J=pe.scrollTop,H=pe.scrollLeft;const de=N.top-J,Pe=N.left-H;return this.positions.forEach((Fe,Qe)=>{Fe.clientRect&&pe!==Qe&&pe.contains(Qe)&&co(Fe.clientRect,de,Pe)}),N.top=J,N.left=H,{top:de,left:Pe}}getViewportScrollPosition(){return{top:window.scrollY,left:window.scrollX}}}function oo($e){const _e=$e.cloneNode(!0),pe=_e.querySelectorAll("[id]"),Ie=$e.nodeName.toLowerCase();_e.removeAttribute("id");for(let N=0;N<pe.length;N++)pe[N].removeAttribute("id");return"canvas"===Ie?ra($e,_e):("input"===Ie||"select"===Ie||"textarea"===Ie)&&Ys($e,_e),Xo("canvas",$e,_e,ra),Xo("input, textarea, select",$e,_e,Ys),_e}function Xo($e,_e,pe,Ie){const N=_e.querySelectorAll($e);if(N.length){const J=pe.querySelectorAll($e);for(let H=0;H<N.length;H++)Ie(N[H],J[H])}}let vs=0;function Ys($e,_e){"file"!==_e.type&&(_e.value=$e.value),"radio"===_e.type&&_e.name&&(_e.name=`mat-clone-${_e.name}-${vs++}`)}function ra($e,_e){const pe=_e.getContext("2d");if(pe)try{pe.drawImage($e,0,0)}catch{}}const ta=Je({passive:!0}),yi=Je({passive:!1}),zi=new Set(["position"]);class Is{get disabled(){return this._disabled||!(!this._dropContainer||!this._dropContainer.disabled)}set disabled(_e){const pe=(0,o.Ig)(_e);pe!==this._disabled&&(this._disabled=pe,this._toggleNativeDragInteractions(),this._handles.forEach(Ie=>Pr(Ie,pe)))}constructor(_e,pe,Ie,N,J,H){this._config=pe,this._document=Ie,this._ngZone=N,this._viewportRuler=J,this._dragDropRegistry=H,this._passiveTransform={x:0,y:0},this._activeTransform={x:0,y:0},this._hasStartedDragging=!1,this._moveEvents=new i.x,this._pointerMoveSubscription=h.w0.EMPTY,this._pointerUpSubscription=h.w0.EMPTY,this._scrollSubscription=h.w0.EMPTY,this._resizeSubscription=h.w0.EMPTY,this._boundaryElement=null,this._nativeInteractionsEnabled=!0,this._handles=[],this._disabledHandles=new Set,this._direction="ltr",this.dragStartDelay=0,this._disabled=!1,this.beforeStarted=new i.x,this.started=new i.x,this.released=new i.x,this.ended=new i.x,this.entered=new i.x,this.exited=new i.x,this.dropped=new i.x,this.moved=this._moveEvents,this._pointerDown=de=>{if(this.beforeStarted.next(),this._handles.length){const Pe=this._getTargetHandle(de);Pe&&!this._disabledHandles.has(Pe)&&!this.disabled&&this._initializeDragSequence(Pe,de)}else this.disabled||this._initializeDragSequence(this._rootElement,de)},this._pointerMove=de=>{const Pe=this._getPointerPositionOnPage(de);if(!this._hasStartedDragging){if(Math.abs(Pe.x-this._pickupPositionOnPage.x)+Math.abs(Pe.y-this._pickupPositionOnPage.y)>=this._config.dragStartThreshold){const Un=Date.now()>=this._dragStartTime+this._getDragStartDelay(de),Hn=this._dropContainer;if(!Un)return void this._endDragSequence(de);(!Hn||!Hn.isDragging()&&!Hn.isReceiving())&&(de.preventDefault(),this._hasStartedDragging=!0,this._ngZone.run(()=>this._startDragSequence(de)))}return}de.preventDefault();const Fe=this._getConstrainedPointerPosition(Pe);if(this._hasMoved=!0,this._lastKnownPointerPosition=Pe,this._updatePointerDirectionDelta(Fe),this._dropContainer)this._updateActiveDropContainer(Fe,Pe);else{const Qe=this.constrainPosition?this._initialClientRect:this._pickupPositionOnPage,Nt=this._activeTransform;Nt.x=Fe.x-Qe.x+this._passiveTransform.x,Nt.y=Fe.y-Qe.y+this._passiveTransform.y,this._applyRootElementTransform(Nt.x,Nt.y)}this._moveEvents.observers.length&&this._ngZone.run(()=>{this._moveEvents.next({source:this,pointerPosition:Fe,event:de,distance:this._getDragDistance(Fe),delta:this._pointerDirectionDelta})})},this._pointerUp=de=>{this._endDragSequence(de)},this._nativeDragStart=de=>{if(this._handles.length){const Pe=this._getTargetHandle(de);Pe&&!this._disabledHandles.has(Pe)&&!this.disabled&&de.preventDefault()}else this.disabled||de.preventDefault()},this.withRootElement(_e).withParent(pe.parentDragRef||null),this._parentPositions=new xr(Ie),H.registerDragItem(this)}getPlaceholderElement(){return this._placeholder}getRootElement(){return this._rootElement}getVisibleElement(){return this.isDragging()?this.getPlaceholderElement():this.getRootElement()}withHandles(_e){this._handles=_e.map(Ie=>
1(0,o.fI)(Ie)),this._handles.forEach(Ie=>Pr(Ie,this.disabled)),this._toggleNativeDragInteractions();const pe=new Set;return this._disabledHandles.forEach(Ie=>{this._handles.indexOf(Ie)>-1&&pe.add(Ie)}),this._disabledHandles=pe,this}withPreviewTemplate(_e){return this._previewTemplate=_e,this}withPlaceholderTemplate(_e){return this._placeholderTemplate=_e,this}withRootElement(_e){const pe=(0,o.fI)(_e);return pe!==this._rootElement&&(this._rootElement&&this._removeRootElementListeners(this._rootElement),this._ngZone.runOutsideAngular(()=>{pe.addEventListener("mousedown",this._pointerDown,yi),pe.addEventListener("touchstart",this._pointerDown,ta),pe.addEventListener("dragstart",this._nativeDragStart,yi)}),this._initialTransform=void 0,this._rootElement=pe),typeof SVGElement<"u"&&this._rootElement instanceof SVGElement&&(this._ownerSVGElement=this._rootElement.ownerSVGElement),this}withBoundaryElement(_e){return this._boundaryElement=_e?(0,o.fI)(_e):null,this._resizeSubscription.unsubscribe(),_e&&(this._resizeSubscription=this._viewportRuler.change(10).subscribe(()=>this._containInsideBoundaryOnResize())),this}withParent(_e){return this._parentDragRef=_e,this}dispose(){this._removeRootElementListeners(this._rootElement),this.isDragging()&&this._rootElement?.remove(),this._anchor?.remove(),this._destroyPreview(),this._destroyPlaceholder(),this._dragDropRegistry.removeDragItem(this),this._removeSubscriptions(),this.beforeStarted.complete(),this.started.complete(),this.released.complete(),this.ended.complete(),this.entered.complete(),this.exited.complete(),this.dropped.complete(),this._moveEvents.complete(),this._handles=[],this._disabledHandles.clear(),this._dropContainer=void 0,this._resizeSubscription.unsubscribe(),this._parentPositions.clear(),this._boundaryElement=this._rootElement=this._ownerSVGElement=this._placeholderTemplate=this._previewTemplate=this._anchor=this._parentDragRef=null}isDragging(){return this._hasStartedDragging&&this._dragDropRegistry.isDragging(this)}reset(){this._rootElement.style.transform=this._initialTransform||"",this._activeTransform={x:0,y:0},this._passiveTransform={x:0,y:0}}disableHandle(_e){!this._disabledHandles.has(_e)&&this._handles.indexOf(_e)>-1&&(this._disabledHandles.add(_e),Pr(_e,!0))}enableHandle(_e){this._disabledHandles.has(_e)&&(this._disabledHandles.delete(_e),Pr(_e,this.disabled))}withDirection(_e){return this._direction=_e,this}_withDropContainer(_e){this._dropContainer=_e}getFreeDragPosition(){const _e=this.isDragging()?this._activeTransform:this._passiveTransform;return{x:_e.x,y:_e.y}}setFreeDragPosition(_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}withPreviewContainer(_e){return this._previewContainer=_e,this}_sortFromLastPointerPosition(){const _e=this._lastKnownPointerPosition;_e&&this._dropContainer&&this._updateActiveDropContainer(this._getConstrainedPointerPosition(_e),_e)}_removeSubscriptions(){this._pointerMoveSubscription.unsubscribe(),this._pointerUpSubscription.unsubscribe(),this._scrollSubscription.unsubscribe()}_destroyPreview(){this._preview?.remove(),this._previewRef?.destroy(),this._preview=this._previewRef=null}_destroyPlaceholder(){this._placeholder?.remove(),this._placeholderRef?.destroy(),this._placeholder=this._placeholderRef=null}_endDragSequence(_e){if(this._dragDropRegistry.isDragging(this)&&(this._removeSubscriptions(),this._dragDropRegistry.stopDragging(this),this._toggleNativeDragInteractions(),this._handles&&(this._rootElement.style.webkitTapHighlightColor=this._rootElementTapHighlight),this._hasStartedDragging))if(this.released.next({source:this,event:_e}),this._dropContainer)this._dropContainer._stopScrolling(),this._animatePreviewToPlaceholder().then(()=>{this._cleanupDragArtifacts(_e),this._cleanupCachedDimensions(),this._dragDropRegistry.stopDragging(this)});else{this._passiveTransform.x=this._activeTransform.x;const pe=this._getPointerPositionOnPage(_e);this._passiveTransform.y=this._activeTransform.y,this._ngZone.run(()=>{this.ended.next({source:this,distance:this._getDragDistance(pe),dropPoint:pe,event:_e})}),this._cleanupCachedDimensions(),this._dragDropRegistry.stopDragging(this)}}
1_startDragSequence(_e){Lr(_e)&&(this._lastTouchEventTime=Date.now()),this._toggleNativeDragInteractions();const pe=this._dropContainer;if(pe){const Ie=this._rootElement,N=Ie.parentNode,J=this._placeholder=this._createPlaceholderElement(),H=this._anchor=this._anchor||this._document.createComment(""),de=this._getShadowRoot();N.insertBefore(H,Ie),this._initialTransform=Ie.style.transform||"",this._preview=this._createPreviewElement(),ir(Ie,!1,zi),this._document.body.appendChild(N.replaceChild(J,Ie)),this._getPreviewInsertionPoint(N,de).appendChild(this._preview),this.started.next({source:this,event:_e}),pe.start(),this._initialContainer=pe,this._initialIndex=pe.getItemIndex(this)}else this.started.next({source:this,event:_e}),this._initialContainer=this._initialIndex=void 0;this._parentPositions.cache(pe?pe.getScrollableParents():[])}_initializeDragSequence(_e,pe){this._parentDragRef&&pe.stopPropagation();const Ie=this.isDragging(),N=Lr(pe),J=!N&&0!==pe.button,H=this._rootElement,de=nt(pe),Pe=!N&&this._lastTouchEventTime&&this._lastTouchEventTime+800>Date.now(),Fe=N?function Ls($e){const _e=$e.touches&&$e.touches[0]||$e.changedTouches&&$e.changedTouches[0];return!(!_e||-1!==_e.identifier||null!=_e.radiusX&&1!==_e.radiusX||null!=_e.radiusY&&1!==_e.radiusY)}(pe):function Uo($e){return 0===$e.buttons||0===$e.offsetX&&0===$e.offsetY}(pe);if(de&&de.draggable&&"mousedown"===pe.type&&pe.preventDefault(),Ie||J||Pe||Fe)return;if(this._handles.length){const fn=H.style;this._rootElementTapHighlight=fn.webkitTapHighlightColor||"",fn.webkitTapHighlightColor="transparent"}this._hasStartedDragging=this._hasMoved=!1,this._removeSubscriptions(),this._initialClientRect=this._rootElement.getBoundingClientRect(),this._pointerMoveSubscription=this._dragDropRegistry.pointerMove.subscribe(this._pointerMove),this._pointerUpSubscription=this._dragDropRegistry.pointerUp.subscribe(this._pointerUp),this._scrollSubscription=this._dragDropRegistry.scrolled(this._getShadowRoot()).subscribe(fn=>this._updateOnScroll(fn)),this._boundaryElement&&(this._boundaryRect=io(this._boundaryElement));const Qe=this._previewTemplate;this._pickupPositionInElement=Qe&&Qe.template&&!Qe.matchSize?{x:0,y:0}:this._getPointerPositionInElement(this._initialClientRect,_e,pe);const Nt=this._pickupPositionOnPage=this._lastKnownPointerPosition=this._getPointerPositionOnPage(pe);this._pointerDirectionDelta={x:0,y:0},this._pointerPositionAtLastDirectionChange={x:Nt.x,y:Nt.y},this._dragStartTime=Date.now(),this._dragDropRegistry.startDragging(this,pe)}_cleanupDragArtifacts(_e){ir(this._rootElement,!0,zi),this._anchor.parentNode.replaceChild(this._rootElement,this._anchor),this._destroyPreview(),this._destroyPlaceholder(),this._initialClientRect=this._boundaryRect=this._previewRect=this._initialTransform=void 0,this._ngZone.run(()=>{const pe=this._dropContainer,Ie=pe.getItemIndex(this),N=this._getPointerPositionOnPage(_e),J=this._getDragDistance(N),H=pe._isOverContainer(N.x,N.y);this.ended.next({source:this,distance:J,dropPoint:N,event:_e}),this.dropped.next({item:this,currentIndex:Ie,previousIndex:this._initialIndex,container:pe,previousContainer:this._initialContainer,isPointerOverContainer:H,distance:J,dropPoint:N,event:_e}),pe.drop(this,Ie,this._initialIndex,this._initialContainer,H,J,N,_e),this._dropContainer=this._initialContainer})}_updateActiveDropContainer({x:_e,y:pe},{x:Ie,y:N}){let J=this._initialContainer._getSiblingContainerFromPosition(this,_e,pe);!J&&this._dropContainer!==this._initialContainer&&this._initialContainer._isOverContainer(_e,pe)&&(J=this._initialContainer),J&&J!==this._dropContainer&&this._ngZone.run(()=>{this.exited.next({item:this,container:this._dropContainer}),this._dropContainer.exit(this),this._dropContainer=J,this._dropContainer.enter(this,_e,pe,J===this._initialContainer&&J.sortingDisabled?this._initialIndex:void 0),this.entered.next({item:this,container:J,currentIndex:J.getItemIndex(this)})}),this.isDragging()&&(this._dropContainer._startScrollingIfNecessary(Ie,N),this._dropContainer._sortItem(this,_e,pe,this._pointerDirectionDelta),this.constrainPosition?this._applyPreviewTransform(_e,pe):this._applyPreviewTransform(_e-this._pickupPositionInElement.x,pe-this._pickupPositionInElement.y))}_createPreviewElement(){const _e=this._previewTemplate,pe=this.previewClass,Ie=_e?_e.template:null;let N;if(Ie&&_e){const J=_e.matchSize?this._initialClientRect:null,H=_e.viewContainer.createEmbeddedView(Ie,_e.context);H.detectChanges(),N=Zo(H,this._document),this._previewRef=H,_e.matchSize?Es(N,J):N.style.transform=uo(this._pickupPositionOnPage.x,this._pickupPositionOnPage.y)}else N=oo(this._rootElement),Es(N,this._initialClientRect),this._initialTransform&&(N.style.transform=this._initialTransform);return Kr(N.style,{"pointer-events":"none",margin:"0",position:"fixed",top:"0",left:"0","z-index":`${this._config.zIndex||1e3}`},zi),Pr(N,!1),N.classList.add("cdk-drag-preview"),N.setAttribute("dir",this._direction),pe&&(Array.isArray(pe)?pe.forEach(J=>N.classList.add(J)):N.classList.add(pe)),N}_animatePreviewToPlaceholder(){if(!this._hasMoved)return Promise.resolve();const _e=this._placeholder.getBoundingClientRect();this._preview.classList.add("cdk-drag-animating"),this._applyPreviewTransform(_e.left,_e.to
1p);const pe=function vi($e){const _e=getComputedStyle($e),pe=Qo(_e,"transition-property"),Ie=pe.find(de=>"transform"===de||"all"===de);if(!Ie)return 0;const N=pe.indexOf(Ie),J=Qo(_e,"transition-duration"),H=Qo(_e,"transition-delay");return $r(J[N])+$r(H[N])}(this._preview);return 0===pe?Promise.resolve():this._ngZone.runOutsideAngular(()=>new Promise(Ie=>{const N=H=>{(!H||nt(H)===this._preview&&"transform"===H.propertyName)&&(this._preview?.removeEventListener("transitionend",N),Ie(),clearTimeout(J))},J=setTimeout(N,1.5*pe);this._preview.addEventListener("transitionend",N)}))}_createPlaceholderElement(){const _e=this._placeholderTemplate,pe=_e?_e.template:null;let Ie;return pe?(this._placeholderRef=_e.viewContainer.createEmbeddedView(pe,_e.context),this._placeholderRef.detectChanges(),Ie=Zo(this._placeholderRef,this._document)):Ie=oo(this._rootElement),Ie.style.pointerEvents="none",Ie.classList.add("cdk-drag-placeholder"),Ie}_getPointerPositionInElement(_e,pe,Ie){const N=pe===this._rootElement?null:pe,J=N?N.getBoundingClientRect():_e,H=Lr(Ie)?Ie.targetTouches[0]:Ie,de=this._getViewportScrollPosition();return{x:J.left-_e.left+(H.pageX-J.left-de.left),y:J.top-_e.top+(H.pageY-J.top-de.top)}}_getPointerPositionOnPage(_e){const pe=this._getViewportScrollPosition(),Ie=Lr(_e)?_e.touches[0]||_e.changedTouches[0]||{pageX:0,pageY:0}:_e,N=Ie.pageX-pe.left,J=Ie.pageY-pe.top;if(this._ownerSVGElement){const H=this._ownerSVGElement.getScreenCTM();if(H){const de=this._ownerSVGElement.createSVGPoint();return de.x=N,de.y=J,de.matrixTransform(H.inverse())}}return{x:N,y:J}}_getConstrainedPointerPosition(_e){const pe=this._dropContainer?this._dropContainer.lockAxis:null;let{x:Ie,y:N}=this.constrainPosition?this.constrainPosition(_e,this,this._initialClientRect,this._pickupPositionInElement):_e;if("x"===this.lockAxis||"x"===pe?N=this._pickupPositionOnPage.y:("y"===this.lockAxis||"y"===pe)&&(Ie=this._pickupPositionOnPage.x),this._boundaryRect){const{x:J,y:H}=this._pickupPositionInElement,de=this._boundaryRect,{width:Pe,height:Fe}=this._getPreviewRect(),Qe=de.top+H,Nt=de.bottom-(Fe-H);Ie=Mi(Ie,de.left+J,de.right-(Pe-J)),N=Mi(N,Qe,Nt)}return{x:Ie,y:N}}_updatePointerDirectionDelta(_e){const{x:pe,y:Ie}=_e,N=this._pointerDirectionDelta,J=this._pointerPositionAtLastDirectionChange,H=Math.abs(pe-J.x),de=Math.abs(Ie-J.y);return H>this._config.pointerDirectionChangeThreshold&&(N.x=pe>J.x?1:-1,J.x=pe),de>this._config.pointerDirectionChangeThreshold&&(N.y=Ie>J.y?1:-1,J.y=Ie),N}_toggleNativeDragInteractions(){if(!this._rootElement||!this._handles)return;const _e=this._handles.length>0||!this.isDragging();_e!==this._nativeInteractionsEnabled&&(this._nativeInteractionsEnabled=_e,Pr(this._rootElement,_e))}_removeRootElementListeners(_e){_e.removeEventListener("mousedown",this._pointerDown,yi),_e.removeEventListener("touchstart",this._pointerDown,ta),_e.removeEventListener("dragstart",this._nativeDragStart,yi)}_applyRootElementTransform(_e,pe){const Ie=uo(_e,pe),N=this._rootElement.style;null==this._initialTransform&&(this._initialTransform=N.transform&&"none"!=N.transform?N.transform:""),N.transform=hi(Ie,this._initialTransform)}_applyPreviewTransform(_e,pe){const Ie=this._previewTemplate?.template?void 0:this._initialTransform,N=uo(_e,pe);this._preview.style.transform=hi(N,Ie)}_getDragDistance(_e){const pe=this._pickupPositionOnPage;return pe?{x:_e.x-pe.x,y:_e.y-pe.y}:{x:0,y:0}}_cleanupCachedDimensions(){this._boundaryRect=this._previewRect=void 0,this._parentPositions.clear()}_containInsideBoundaryOnResize(){let{x:_e,y:pe}=this._passiveTransform;if(0===_e&&0===pe||this.isDragging()||!this._boundaryElement)return;const Ie=this._rootElement.getBoundingClientRect(),N=this._boundaryElement.getBoundingClientRect();if(0===N.width&&0===N.height||0===Ie.width&&0===Ie.height)return;const J=N.left-Ie.left,H=Ie.right-N.right,de=N.top-Ie.top,Pe=Ie.bottom-N.bottom;N.width>Ie.width?(J>0&&(_e+=J),H>0&&(_e-=H)):_e=0,N.height>Ie.height?(de>0&&(pe+=de),Pe>0&&(pe-=Pe)):pe=0,(_e!==this._passiveTransform.x||pe!==this._passiveTransform.y)&&this.setFreeDragPosition({y:pe,x:_e})}_getDragStartDelay(_e){const pe=this.dragStartDelay;return"number"==typeof pe?pe:Lr(_e)?pe.touch:pe?pe.mouse:0}_updateOnScroll(_e){const pe=this._parentPositions.handleScroll(_e);if(pe){const Ie=nt(_e);this._boundaryRect&&Ie!==this._boundaryElement&&Ie.contains(this._boundaryElement)&&co(this._boundaryRect,pe.top,pe.left),this._pickupPositionOnPage.x+=pe.left,this._pickupPositionOnPage.y+=pe.top,this._dropContainer||(this._activeTransform.x-=pe.left,this._activeTransform.y-=pe.top,this._applyRootElementTransform(this._activeTransform.x,this._activeTransform.y))}}_getViewportScrollPosition(){return this._parentPositions.positions.get(this._document)?.scrollPosition||this._parentPositions.getViewportScrollPosition()}_getShadowRoot(){return void 0===this._cachedShadowRoot&&(this._cachedShadowRoot=Mt(this._rootElement)),this._cachedShadowRoot}_getPreviewInsertionPoint(_e,pe){const Ie=this._previewContainer||"global";if("parent"===Ie)return _e;if("global"===Ie){const N=this._document;return pe||N.fullscreenElement||N.webkitFullscreenElement||N.mozFullScreenElement||N.msFullscreenElement||N.body}return(0,o.fI)(Ie)}_getPreviewRect(){return(!this._previewRect||!this._previewRect.width&&!this._previewRect.height)&&(this._previewRect=this._preview?this._preview.getBoundingClientRect():this._initialClientRect),this._previewRect}_getTargetHandle(_e){return this._handles.find(pe=>_e.target&&(_e.target===pe||pe.contains(_e.target)))}}function uo($e,_e){return`translate3d(${Math.round($e)}px, ${Math.round(_e)}
1px, 0)`}function Mi($e,_e,pe){return Math.max(_e,Math.min(pe,$e))}function Lr($e){return"t"===$e.type[0]}function Zo($e,_e){const pe=$e.rootNodes;if(1===pe.length&&pe[0].nodeType===_e.ELEMENT_NODE)return pe[0];const Ie=_e.createElement("div");return pe.forEach(N=>Ie.appendChild(N)),Ie}function Es($e,_e){$e.style.width=`${_e.width}px`,$e.style.height=`${_e.height}px`,$e.style.transform=uo(_e.left,_e.top)}function _o($e,_e,pe){const Ie=go(_e,$e.length-1),N=go(pe,$e.length-1);if(Ie===N)return;const J=$e[Ie],H=N<Ie?-1:1;for(let de=Ie;de!==N;de+=H)$e[de]=$e[de+H];$e[N]=J}function go($e,_e){return Math.max(0,Math.min(_e,$e))}class us{constructor(_e,pe){this._element=_e,this._dragDropRegistry=pe,this._itemPositions=[],this.orientation="vertical",this._previousSwap={drag:null,delta:0,overlaps:!1}}start(_e){this.withItems(_e)}sort(_e,pe,Ie,N){const J=this._itemPositions,H=this._getItemIndexFromPointerPosition(_e,pe,Ie,N);if(-1===H&&J.length>0)return null;const de="horizontal"===this.orientation,Pe=J.findIndex(Er=>Er.drag===_e),Fe=J[H],Nt=Fe.clientRect,fn=Pe>H?1:-1,Un=this._getItemOffsetPx(J[Pe].clientRect,Nt,fn),Hn=this._getSiblingOffsetPx(Pe,J,fn),Tr=J.slice();return _o(J,Pe,H),J.forEach((Er,Ci)=>{if(Tr[Ci]===Er)return;const po=Er.drag===_e,jo=po?Un:Hn,ni=po?_e.getPlaceholderElement():Er.drag.getRootElement();Er.offset+=jo,de?(ni.style.transform=hi(`translate3d(${Math.round(Er.offset)}px, 0, 0)`,Er.initialTransform),co(Er.clientRect,0,jo)):(ni.style.transform=hi(`translate3d(0, ${Math.round(Er.offset)}px, 0)`,Er.initialTransform),co(Er.clientRect,jo,0))}),this._previousSwap.overlaps=br(Nt,pe,Ie),this._previousSwap.drag=Fe.drag,this._previousSwap.delta=de?N.x:N.y,{previousIndex:Pe,currentIndex:H}}enter(_e,pe,Ie,N){const J=null==N||N<0?this._getItemIndexFromPointerPosition(_e,pe,Ie):N,H=this._activeDraggables,de=H.indexOf(_e),Pe=_e.getPlaceholderElement();let Fe=H[J];if(Fe===_e&&(Fe=H[J+1]),!Fe&&(null==J||-1===J||J<H.length-1)&&this._shouldEnterAsFirstChild(pe,Ie)&&(Fe=H[0]),de>-1&&H.splice(de,1),Fe&&!this._dragDropRegistry.isDragging(Fe)){const Qe=Fe.getRootElement();Qe.parentElement.insertBefore(Pe,Qe),H.splice(J,0,_e)}else(0,o.fI)(this._element).appendChild(Pe),H.push(_e);Pe.style.transform="",this._cacheItemPositions()}withItems(_e){this._activeDraggables=_e.slice(),this._cacheItemPositions()}withSortPredicate(_e){this._sortPredicate=_e}reset(){this._activeDraggables.forEach(_e=>{const pe=_e.getRootElement();if(pe){const Ie=this._itemPositions.find(N=>N.drag===_e)?.initialTransform;pe.style.transform=Ie||""}}),this._itemPositions=[],this._activeDraggables=[],this._previousSwap.drag=null,this._previousSwap.delta=0,this._previousSwap.overlaps=!1}getActiveItemsSnapshot(){return this._activeDraggables}getItemIndex(_e){return("horizontal"===this.orientation&&"rtl"===this.direction?this._itemPositions.slice().reverse():this._itemPositions).findIndex(Ie=>Ie.drag===_e)}updateOnScroll(_e,pe){this._itemPositions.forEach(({clientRect:Ie})=>{co(Ie,_e,pe)}),this._itemPositions.forEach(({drag:Ie})=>{this._dragDropRegistry.isDragging(Ie)&&Ie._sortFromLastPointerPosition()})}_cacheItemPositions(){const _e="horizontal"===this.orientation;this._itemPositions=this._activeDraggables.map(pe=>{const Ie=pe.getVisibleElement();return{drag:pe,offset:0,initialTransform:Ie.style.transform||"",clientRect:io(Ie)}}).sort((pe,Ie)=>_e?pe.clientRect.left-Ie.clientRect.left:pe.clientRect.top-Ie.clientRect.top)}_getItemOffsetPx(_e,pe,Ie){const N="horizontal"===this.orientation;let J=N?pe.left-_e.left:pe.top-_e.top;return-1===Ie&&(J+=N?pe.width-_e.width:pe.height-_e.height),J}_getSiblingOffsetPx(_e,pe,Ie){const N="horizontal"===this.orientation,J=pe[_e].clientRect,H=pe[_e+-1*Ie];let de=J[N?"width":"height"]*Ie;if(H){const Pe=N?"left":"top",Fe=N?"right":"bottom";-1===Ie?de-=H.clientRect[Pe]-J[Fe]:de+=J[Pe]-H.clientRect[Fe]}return de}_shouldEnterAsFirstChild(_e,pe){if(!this._activeDraggables.length)return!1;const Ie=this._itemPositions,N="horizontal"===this.orientation;if(Ie[0].drag!==this._activeDraggables[0]){const H=Ie[Ie.length-1].clientRect;return N?_e>=H.right:pe>=H.bottom}{const H=Ie[0].clientRect;return N?_e<=H.left:pe<=H.top}}_getItemIndexFromPointerPosition(_e,pe,Ie,N){const J="horizontal"===this.orientation,H=this._itemPositions.findIndex(({drag:de,clientRect:Pe})=>de!==_e&&((!N||de!==this._previousSwap.drag||!this._previousSwap.overlaps||(J?N.x:N.y)!==this._previousSwap.delta)&&(J?pe>=Math.floor(Pe.left)&&pe<Math.floor(Pe.right):Ie>
1=Math.floor(Pe.top)&&Ie<Math.floor(Pe.bottom))));return-1!==H&&this._sortPredicate(H,_e)?H:-1}}const Jo=.05;class Io{constructor(_e,pe,Ie,N,J){this._dragDropRegistry=pe,this._ngZone=N,this._viewportRuler=J,this.disabled=!1,this.sortingDisabled=!1,this.autoScrollDisabled=!1,this.autoScrollStep=2,this.enterPredicate=()=>!0,this.sortPredicate=()=>!0,this.beforeStarted=new i.x,this.entered=new i.x,this.exited=new i.x,this.dropped=new i.x,this.sorted=new i.x,this.receivingStarted=new i.x,this.receivingStopped=new i.x,this._isDragging=!1,this._draggables=[],this._siblings=[],this._activeSiblings=new Set,this._viewportScrollSubscription=h.w0.EMPTY,this._verticalScrollDirection=0,this._horizontalScrollDirection=0,this._stopScrollTimers=new i.x,this._cachedShadowRoot=null,this._startScrollInterval=()=>{this._stopScrolling(),(0,ve.F)(0,O).pipe((0,Oe.R)(this._stopScrollTimers)).subscribe(()=>{const H=this._scrollNode,de=this.autoScrollStep;1===this._verticalScrollDirection?H.scrollBy(0,-de):2===this._verticalScrollDirection&&H.scrollBy(0,de),1===this._horizontalScrollDirection?H.scrollBy(-de,0):2===this._horizontalScrollDirection&&H.scrollBy(de,0)})},this.element=(0,o.fI)(_e),this._document=Ie,this.withScrollableParents([this.element]),pe.registerDropContainer(this),this._parentPositions=new xr(Ie),this._sortStrategy=new us(this.element,pe),this._sortStrategy.withSortPredicate((H,de)=>this.sortPredicate(H,de,this))}dispose(){this._stopScrolling(),this._stopScrollTimers.complete(),this._viewportScrollSubscription.unsubscribe(),this.beforeStarted.complete(),this.entered.complete(),this.exited.complete(),this.dropped.complete(),this.sorted.complete(),this.receivingStarted.complete(),this.receivingStopped.complete(),this._activeSiblings.clear(),this._scrollNode=null,this._parentPositions.clear(),this._dragDropRegistry.removeDropContainer(this)}isDragging(){return this._isDragging}start(){this._draggingStarted(),this._notifyReceivingSiblings()}enter(_e,pe,Ie,N){this._draggingStarted(),null==N&&this.sortingDisabled&&(N=this._draggables.indexOf(_e)),this._sortStrategy.enter(_e,pe,Ie,N),this._cacheParentPositions(),this._notifyReceivingSiblings(),this.entered.next({item:_e,container:this,currentIndex:this.getItemIndex(_e)})}exit(_e){this._reset(),this.exited.next({item:_e,container:this})}drop(_e,pe,Ie,N,J,H,de,Pe={}){this._reset(),this.dropped.next({item:_e,currentIndex:pe,previousIndex:Ie,container:this,previousContainer:N,isPointerOverContainer:J,distance:H,dropPoint:de,event:Pe})}withItems(_e){const pe=this._draggables;return this._draggables=_e,_e.forEach(Ie=>Ie._withDropContainer(this)),this.isDragging()&&(pe.filter(N=>N.isDragging()).every(N=>-1===_e.indexOf(N))?this._reset():this._sortStrategy.withItems(this._draggables)),this}withDirection(_e){return this._sortStrategy.direction=_e,this}connectedTo(_e){return this._siblings=_e.slice(),this}withOrientation(_e){return this._sortStrategy.orientation=_e,this}withScrollableParents(_e){const pe=(0,o.fI)(this.element);return this._scrollableElements=-1===_e.indexOf(pe)?[pe,..._e]:_e.slice(),this}getScrollableParents(){return this._scrollableElements}getItemIndex(_e){return this._isDragging?this._sortStrategy.getItemIndex(_e):this._draggables.indexOf(_e)}isReceiving(){return this._activeSiblings.size>0}_sortItem(_e,pe,Ie,N){if(this.sortingDisabled||!this._clientRect||!Ei(this._clientRect,.05,pe,Ie))return;const J=this._sortStrategy.sort(_e,pe,Ie,N);J&&this.sorted.next({previousIndex:J.previousIndex,currentIndex:J.currentIndex,container:this,item:_e})}_startScrollingIfNecessary(_e,pe){if(this.autoScrollDisabled)return;let Ie,N=0,J=0;if(this._parentPositions.positions.forEach((H,de)=>{de===this._document||!H.clientRect||Ie||Ei(H.clientRect,.05,_e,pe)&&([N,J]=function oa($e,_e,pe,Ie){const N=ia(_e,Ie),J=ya(_e,pe);let H=0,de=0;if(N){const Pe=$e.scrollTop;1===N?Pe>0&&(H=1):$e.scrollHeight-Pe>$e.clientHeight&&(H=2)}if(J){const Pe=$e.scrollLeft;1===J?Pe>0&&(de=1):$e.scrollWidth-Pe>$e.clientWidth&&(de=2)}return[H,de]}(de,H.clientRect,_e,pe),(N||J)&&(Ie=de))}),!N&&!J){const{width:H,height:de}=this._viewportRuler.getViewportSize(),Pe={width:H,height:de,top:0,right:H,bottom:de,left:0};N=ia(Pe,pe),J=ya(Pe,_e),Ie=window}Ie&&(N!==this._verticalScrollDirection||J!==this._horizontalScrollDirection||Ie!==this._scrollNode)&&(this._verticalScrollDirection=N,this._horizontalScrollDirection=J,this._scrollNode=Ie,(N||J)&&Ie?this._ngZone.runOutsideAngular(this._startScrollInterval):this._stopScrolling())}_stopScrolling(){this._stopScrollTimers.next()}_draggingStarted(){const _e=(0,o.fI)(this.element).style;this.beforeStarted.next(),this._isDragging=!0,this._initialScrollSnap=_e.msScrollSnapType||_e.scrollSnapType||"",_e.scrollSnapType=_e.msScrollSnapType="none",this._sortStrategy.start(this._draggables),this._cacheParentPositions(),this._viewportScrollSubscription.unsubscribe(),this._listenToScrollEvents()}_cacheParentPositions(){const _e=(0,o.fI)(this.element);this._parentPositions.cache(this._scrollableElements),this._clientRect=this._parentPositions.positions.get(_e).clientRect}_reset(){this._isDragging=!1;const _e=(0,o.fI)(this.element).style;_e.scrollSnapType=_e.msScrollSnapType=this._initialScrollSnap,this._siblings.forEac
1h(pe=>pe._stopReceiving(this)),this._sortStrategy.reset(),this._stopScrolling(),this._viewportScrollSubscription.unsubscribe(),this._parentPositions.clear()}_isOverContainer(_e,pe){return null!=this._clientRect&&br(this._clientRect,_e,pe)}_getSiblingContainerFromPosition(_e,pe,Ie){return this._siblings.find(N=>N._canReceive(_e,pe,Ie))}_canReceive(_e,pe,Ie){if(!this._clientRect||!br(this._clientRect,pe,Ie)||!this.enterPredicate(_e,this))return!1;const N=this._getShadowRoot().elementFromPoint(pe,Ie);if(!N)return!1;const J=(0,o.fI)(this.element);return N===J||J.contains(N)}_startReceiving(_e,pe){const Ie=this._activeSiblings;!Ie.has(_e)&&pe.every(N=>this.enterPredicate(N,this)||this._draggables.indexOf(N)>-1)&&(Ie.add(_e),this._cacheParentPositions(),this._listenToScrollEvents(),this.receivingStarted.next({initiator:_e,receiver:this,items:pe}))}_stopReceiving(_e){this._activeSiblings.delete(_e),this._viewportScrollSubscription.unsubscribe(),this.receivingStopped.next({initiator:_e,receiver:this})}_listenToScrollEvents(){this._viewportScrollSubscription=this._dragDropRegistry.scrolled(this._getShadowRoot()).subscribe(_e=>{if(this.isDragging()){const pe=this._parentPositions.handleScroll(_e);pe&&this._sortStrategy.updateOnScroll(pe.top,pe.left)}else this.isReceiving()&&this._cacheParentPositions()})}_getShadowRoot(){if(!this._cachedShadowRoot){const _e=Mt((0,o.fI)(this.element));this._cachedShadowRoot=_e||this._document}return this._cachedShadowRoot}_notifyReceivingSiblings(){const _e=this._sortStrategy.getActiveItemsSnapshot().filter(pe=>pe.isDragging());this._siblings.forEach(pe=>pe._startReceiving(this,_e))}}function ia($e,_e){const{top:pe,bottom:Ie,height:N}=$e,J=N*Jo;return _e>=pe-J&&_e<=pe+J?1:_e>=Ie-J&&_e<=Ie+J?2:0}function ya($e,_e){const{left:pe,right:Ie,width:N}=$e,J=N*Jo;return _e>=pe-J&&_e<=pe+J?1:_e>=Ie-J&&_e<=Ie+J?2:0}const Ca=Je({passive:!1,capture:!0});let sa=(()=>{class $e{constructor(pe,Ie){this._ngZone=pe,this._dropInstances=new Set,this._dragInstances=new Set,this._activeDragInstances=[],this._globalListeners=new Map,this._draggingPredicate=N=>N.isDragging(),this.pointerMove=new i.x,this.pointerUp=new i.x,this.scroll=new i.x,this._preventDefaultWhileDragging=N=>{this._activeDragInstances.length>0&&N.preventDefault()},this._persistentTouchmoveListener=N=>{this._activeDragInstances.length>0&&(this._activeDragInstances.some(this._draggingPredicate)&&N.preventDefault(),this.pointerMove.next(N))},this._document=Ie}registerDropContainer(pe){this._dropInstances.has(pe)||this._dropInstances.add(pe)}registerDragItem(pe){this._dragInstances.add(pe),1===this._dragInstances.size&&this._ngZone.runOutsideAngular(()=>{this._document.addEventListener("touchmove",this._persistentTouchmoveListener,Ca)})}removeDropContainer(pe){this._dropInstances.delete(pe)}removeDragItem(pe){this._dragInstances.delete(pe),this.stopDragging(pe),0===this._dragInstances.size&&this._document.removeEventListener("touchmove",this._persistentTouchmoveListener,Ca)}startDragging(pe,Ie){if(!(this._activeDragInstances.indexOf(pe)>-1)&&(this._activeDragInstances.push(pe),1===this._activeDragInstances.length)){const N=Ie.type.startsWith("touch");this._globalListeners.set(N?"touchend":"mouseup",{handler:J=>this.pointerUp.next(J),options:!0}).set("scroll",{handler:J=>this.scroll.next(J),options:!0}).set("selectstart",{handler:this._preventDefaultWhileDragging,options:Ca}),N||this._globalListeners.set("mousemove",{handler:J=>this.pointerMove.next(J),options:Ca}),this._ngZone.runOutsideAngular(()=>{this._globalListeners.forEach((J,H)=>{this._document.addEventListener(H,J.handler,J.options)})})}}stopDragging(pe){const Ie=this._activeDragInstances.indexOf(pe);Ie>-1&&(this._activeDragInstances.splice(Ie,1),0===this._activeDragInstances.length&&this._clearGlobalListeners())}isDragging(pe){return this._activeDragInstances.indexOf(pe)>-1}scrolled(pe){const Ie=[this.scroll];return pe&&pe!==this._document&&Ie.push(new r.y(N=>this._ngZone.runOutsideAngular(()=>{const H=de=>{this._activeDragInstances.length&&N.next(de)};return pe.addEventListener("scroll",H,!0),()=>{pe.removeEventListener("scroll",H,!0)}}))),(0,Ue.T)(...Ie)}
1ngOnDestroy(){this._dragInstances.forEach(pe=>this.removeDragItem(pe)),this._dropInstances.forEach(pe=>this.removeDropContainer(pe)),this._clearGlobalListeners(),this.pointerMove.complete(),this.pointerUp.complete()}_clearGlobalListeners(){this._globalListeners.forEach((pe,Ie)=>{this._document.removeEventListener(Ie,pe.handler,pe.options)}),this._globalListeners.clear()}}return $e.\u0275fac=function(pe){return new(pe||$e)(t.\u0275\u0275inject(t.NgZone),t.\u0275\u0275inject(n.K0))},$e.\u0275prov=t.\u0275\u0275defineInjectable({token:$e,factory:$e.\u0275fac,providedIn:"root"}),$e})();const ma={dragStartThreshold:5,pointerDirectionChangeThreshold:5};let Qs=(()=>{class $e{constructor(pe,Ie,N,J){this._document=pe,this._ngZone=Ie,this._viewportRuler=N,this._dragDropRegistry=J}createDrag(pe,Ie=ma){return new Is(pe,Ie,this._document,this._ngZone,this._viewportRuler,this._dragDropRegistry)}createDropList(pe){return new Io(pe,this._dragDropRegistry,this._document,this._ngZone,this._viewportRuler)}}return $e.\u0275fac=function(pe){return new(pe||$e)(t.\u0275\u0275inject(n.K0),t.\u0275\u0275inject(t.NgZone),t.\u0275\u0275inject(ke),t.\u0275\u0275inject(sa))},$e.\u0275prov=t.\u0275\u0275defineInjectable({token:$e,factory:$e.\u0275fac,providedIn:"root"}),$e})();const Ts=new t.InjectionToken("CDK_DRAG_PARENT"),As=new t.InjectionToken("CdkDropListGroup"),qo=new t.InjectionToken("CDK_DRAG_CONFIG");let Fo=0;const Da=new t.InjectionToken("CdkDropList");let To=(()=>{class $e{get disabled(){return this._disabled||!!this._group&&this._group.disabled}set disabled(pe){this._dropListRef.disabled=this._disabled=(0,o.Ig)(pe)}constructor(pe,Ie,N,J,H,de,Pe){this.element=pe,this._changeDetectorRef=N,this._scrollDispatcher=J,this._dir=H,this._group=de,this._destroyed=new i.x,this.connectedTo=[],this.id="cdk-drop-list-"+Fo++,this.enterPredicate=()=>!0,this.sortPredicate=()=>!0,this.dropped=new t.EventEmitter,this.entered=new t.EventEmitter,this.exited=new t.EventEmitter,this.sorted=new t.EventEmitter,this._unsortedItems=new Set,this._dropListRef=Ie.createDropList(pe),this._dropListRef.data=this,Pe&&this._assignDefaults(Pe),this._dropListRef.enterPredicate=(Fe,Qe)=>this.enterPredicate(Fe.data,Qe.data),this._dropListRef.sortPredicate=(Fe,Qe,Nt)=>this.sortPredicate(Fe,Qe.data,Nt.data),this._setupInputSyncSubscription(this._dropListRef),this._handleEvents(this._dropListRef),$e._dropLists.push(this),de&&de._items.add(this)}addItem(pe){this._unsortedItems.add(pe),this._dropListRef.isDragging()&&this._syncItemsWithRef()}removeItem(pe){this._unsortedItems.delete(pe),this._dropListRef.isDragging()&&this._syncItemsWithRef()}getSortedItems(){return Array.from(this._unsortedItems).sort((pe,Ie)=>pe._dragRef.getVisibleElement().compareDocumentPosition(Ie._dragRef.getVisibleElement())&Node.DOCUMENT_POSITION_FOLLOWING?-1:1)}ngOnDestroy(){const pe=$e._dropLists.indexOf(this);pe>-1&&$e._dropLists.splice(pe,1),this._group&&this._group._items.delete(this),this._unsortedItems.clear(),this._dropListRef.dispose(),this._destroyed.next(),this._destroyed.complete()}_setupInputSyncSubscription(pe){this._dir&&this._dir.change.pipe((0,Ke.O)(this._dir.value),(0,Oe.R)(this._destroyed)).subscribe(Ie=>pe.withDirection(Ie)),pe.beforeStarted.subscribe(()=>{const Ie=(0,o.Eq)(this.connectedTo).map(N=>"string"==typeof N?$e._dropLists.find(H=>H.id===N):N);if(this._group&&this._group._items.forEach(N=>{-1===Ie.indexOf(N)&&Ie.push(N)}),!this._scrollableParentsResolved){const N=this._scrollDispatcher.getAncestorScrollContainers(this.element).map(J=>J.getElementRef().nativeElement);this._dropListRef.withScrollableParents(N),this._scrollableParentsResolved=!0}pe.disabled=this.disabled,pe.lockAxis=this.lockAxis,pe.sortingDisabled=(0,o.Ig)(this.sortingDisabled),pe.autoScrollDisabled=(0,o.Ig)(this.autoScrollDisabled),pe.autoScrollStep=(0,o.su)(this.autoScrollStep,2),pe.connectedTo(Ie.filter(N=>N&&N!==this).map(N=>N._dropListRef)).withOrientation(this.orientation)})}_handleEvents(pe){pe.beforeStarted.subscribe(()=>{this._syncItemsWithRef(),this._changeDetectorRef.markForCheck()}),pe.entered.subscribe(Ie=>{this.entered.emit({container:this,item:Ie.item.data,currentIndex:Ie.currentIndex})}),pe.exited.subscribe(Ie=>{this.exited.emit({container:this,item:Ie.item.data}),this._changeDetectorRef.markForCheck()}),pe.sorted.subscribe(Ie=>{this.sorted.emit({previousIndex:Ie.previousIndex,currentIndex:Ie.currentIndex,container:this,item:Ie.item.data})}),pe.dropped.subscribe(Ie=>{this.dropped.emit({previousIndex:Ie.previousIndex,currentIndex:Ie.currentIndex,previousContainer:Ie.previousContainer.data,container:Ie.container.data,item:Ie.item.data,isPointerOverContainer:Ie.isPointerOverContainer,distance:Ie.distance,dropPoint:Ie.dropPoint,event:Ie.event}),this._changeDetectorRef.markForCheck()}),(0,Ue.T)(pe.receivingStarted,pe.receivingStopped).subscribe(()=>this._changeDetectorRef.markForCheck())}_assignDefaults(pe){const{lockAxis:Ie,draggingDisabled:N,sortingDisabled:J,listAutoScrollDisabled:H,listOrientation:de}=pe;this.disabled=N??!1,this.sortingDisabled=J??!1,this.autoScrollDisabled=H??!1,this.orientation=de||"vertical",Ie&&(this.lockAxis=Ie)}_syncItemsWithRef(){this._dropListRef.withItems(this.getSortedItems().map(pe=>pe._dragRef))}}return $e._dropLists=[],$e.\u0275fac=function(pe){return new(pe||$e)(t.\u0275\u0275directiveInject(t.ElementRef),t.\u0275\u0275directiveInject(Qs),t.\u0275\u0275directiveInject(t.ChangeDetectorRef),t.\u0275\u0275directiveInject(xt),t.\u0275\u0275directiveInject(Zr.Is,8),t.\u0275\u0275directiveInject(As,12),t.\u0275\u0275directiveInject(qo,8))},$e.\u0275dir=t.\u0275\u0275defineDirective({type:$e,selectors:[["","cdkDropList",""],["cdk-drop-list"]],hostAttrs:[1,"cdk-drop-list"],hostVars:7,hostBindings:function(pe,Ie){2&pe&&(t.\u0275\u0275attribute("id",Ie.id),t.\u0275\u0275classProp("cdk-drop-list-disabled",Ie.disabled)("cdk-drop-list-dragging",Ie._dropListRef.isDragging())("cdk-drop-list-receiving",Ie._dropListRef.isReceiving()))},inputs:{connectedTo:["cdkDropListConnectedTo","connectedTo"],data:["cdkDropListData","data"],orientation:["cdkDropListOrientation","orientation"],id:"id",lockAxis:["cdkDropListLockAxis","lockAxis"],disabled:["cdkDropListDisabled","disabled"],sortingDisabled:["cdkDropListSortingDisabled","sortingDisabled"],enterPredicate:["cdkDropListEnterPredicate","enterPredicate"],sortPredicate:["cdkDropListSortPredicate","sortPredicate"],autoScrollDisabled:["cdkDropListAutoScrollDisabled","autoScrollDisabled"],autoScrollStep:["cdkDropListAutoScrollStep","autoScrollStep"]},outputs:{dropped:"cdkDropListDropped",entered:"cdkDropListEntered",exited:"cdkDropListExited",sorted:"cdkDropListSorted"},exportAs:["cdkDropList"],standalone:!0,features:[t.\u0275\u0275ProvidersFeature([{provide:As,useValue:void 0},{provide:Da,useExisting:$e}])]}),$e})();const Vi=new t.InjectionToken("CdkDragHandle");let ys=(()=>{class $e{get disabled(){return this._disabled}set disabled(pe){this._disabled=(0,o.Ig)(pe),this._stateChanges.next(this)}constructor(pe,Ie){this.element=pe,this._stateChanges=new i.x,this._disabled=!1,this._parentDrag=Ie}ngOnDestroy(){this._stateChanges.complete()}}return $e.\u0275fac=function(pe){return new(pe||$e)(t.\u0275\u0275directiveInject(t.ElementRef),t.\u0275\u0275directiveInject(Ts,12))},$e.\u0275dir=t.\u0275\u0275defineDirective({type:$e,selectors:[["","cdkDragHandle",""]],hostAttrs:[1,"cdk-drag-handle"],inputs:{disabled:["cdkDragHandleDisabled","disabled"]},standalone:!0,features:[t.\u0275\u0275ProvidersFeature([{provide:Vi,useExisting:$e}])]}),$e})();const Gr=new t.InjectionToken("CdkDragPlaceholder"),$i=new t.InjectionToken("CdkDragPreview");let Ra=(()=>{class $e{get disabled(){return this._disabled||this.dropContainer&&this.dropContainer.disabled}set disabled(pe){this._disabled=(0,o.Ig)(pe),this._dragRef.disabled=this._disabled}constructor(pe,Ie,N,J,H,de,Pe,Fe,Qe,Nt,fn){this.element=pe,this.dropContainer=Ie,this._ngZone=J,this._viewContainerRef
1=H,this._dir=Pe,this._changeDetectorRef=Qe,this._selfHandle=Nt,this._parentDrag=fn,this._destroyed=new i.x,this.started=new t.EventEmitter,this.released=new t.EventEmitter,this.ended=new t.EventEmitter,this.entered=new t.EventEmitter,this.exited=new t.EventEmitter,this.dropped=new t.EventEmitter,this.moved=new r.y(Un=>{const Hn=this._dragRef.moved.pipe((0,yt.U)(Tr=>({source:this,pointerPosition:Tr.pointerPosition,event:Tr.event,delta:Tr.delta,distance:Tr.distance}))).subscribe(Un);return()=>{Hn.unsubscribe()}}),this._dragRef=Fe.createDrag(pe,{dragStartThreshold:de&&null!=de.dragStartThreshold?de.dragStartThreshold:5,pointerDirectionChangeThreshold:de&&null!=de.pointerDirectionChangeThreshold?de.pointerDirectionChangeThreshold:5,zIndex:de?.zIndex}),this._dragRef.data=this,$e._dragInstances.push(this),de&&this._assignDefaults(de),Ie&&(this._dragRef._withDropContainer(Ie._dropListRef),Ie.addItem(this)),this._syncInputs(this._dragRef),this._handleEvents(this._dragRef)}getPlaceholderElement(){return this._dragRef.getPlaceholderElement()}getRootElement(){return this._dragRef.getRootElement()}reset(){this._dragRef.reset()}getFreeDragPosition(){return this._dragRef.getFreeDragPosition()}setFreeDragPosition(pe){this._dragRef.setFreeDragPosition(pe)}ngAfterViewInit(){this._ngZone.runOutsideAngular(()=>{this._ngZone.onStable.pipe((0,sn.q)(1),(0,Oe.R)(this._destroyed)).subscribe(()=>{this._updateRootElement(),this._setupHandlesListener(),this.freeDragPosition&&this._dragRef.setFreeDragPosition(this.freeDragPosition)})})}ngOnChanges(pe){const Ie=pe.rootElementSelector,N=pe.freeDragPosition;Ie&&!Ie.firstChange&&this._updateRootElement(),N&&!N.firstChange&&this.freeDragPosition&&this._dragRef.setFreeDragPosition(this.freeDragPosition)}ngOnDestroy(){this.dropContainer&&this.dropContainer.removeItem(this);const pe=$e._dragInstances.indexOf(this);pe>-1&&$e._dragInstances.splice(pe,1),this._ngZone.runOutsideAngular(()=>{this._destroyed.next(),this._destroyed.complete(),this._dragRef.dispose()})}_updateRootElement(){const pe=this.element.nativeElement;let Ie=pe;this.rootElementSelector&&(Ie=void 0!==pe.closest?pe.closest(this.rootElementSelector):pe.parentElement?.closest(this.rootElementSelector)),this._dragRef.withRootElement(Ie||pe)}_getBoundaryElement(){const pe=this.boundaryElement;return pe?"string"==typeof pe?this.element.nativeElement.closest(pe):(0,o.fI)(pe):null}_syncInputs(pe){pe.beforeStarted.subscribe(()=>{if(!pe.isDragging()){const Ie=this._dir,N=this.dragStartDelay,J=this._placeholderTemplate?{template:this._placeholderTemplate.templateRef,context:this._placeholderTemplate.data,viewContainer:this._viewContainerRef}:null,H=this._previewTemplate?{template:this._previewTemplate.templateRef,context:this._previewTemplate.data,matchSize:this._previewTemplate.matchSize,viewContainer:this._viewContainerRef}:null;pe.disabled=this.disabled,pe.lockAxis=this.lockAxis,pe.dragStartDelay="object"==typeof N&&N?N:(0,o.su)(N),pe.constrainPosition=this.constrainPosition,pe.previewClass=this.previewClass,pe.withBoundaryElement(this._getBoundaryElement()).withPlaceholderTemplate(J).withPreviewTemplate(H).withPreviewContainer(this.previewContainer||"global"),Ie&&pe.withDirection(Ie.value)}}),pe.beforeStarted.pipe((0,sn.q)(1)).subscribe(()=>{if(this._parentDrag)return void pe.withParent(this._parentDrag._dragRef);let Ie=this.element.nativeElement.parentElement;for(;Ie;){if(Ie.classList.contains("cdk-drag")){pe.withParent($e._dragInstances.find(N=>N.element.nativeElement===Ie)?._dragRef||null);break}Ie=Ie.parentElement}})}_handleEvents(pe){pe.started.subscribe(Ie=>{this.started.emit({source:this,event:Ie.event}),this._changeDetectorRef.markForCheck()}),pe.released.subscribe(Ie=>{this.released.emit({source:this,event:Ie.event})}),pe.ended.subscribe(Ie=>{this.ended.emit({source:this,distance:Ie.distance,dropPoint:Ie.dropPoint,event:Ie.event}),this._changeDetectorRef.markForCheck()}),pe.entered.subscribe(Ie=>{this.entered.emit({container:Ie.container.data,item:this,currentIndex:Ie.currentIndex})}),pe.exited.subscribe(Ie=>{this.exited.emit({container:Ie.container.data,item:this})}),pe.dropped.subscribe(Ie=>{this.dropped.emit({previousIndex:Ie.previousIndex,currentIndex:Ie.currentIndex,previousContainer:Ie.previousContainer.data,container:Ie.container.data,isPointerOverContainer:Ie.isPointerOverContainer,item:this,distance:Ie.distance,dropPoint:Ie.dropPoint,event:Ie.event})})}_assignDefaults(pe){const{lockAxis:Ie,dragStartDelay:N,constrainPosition:J,previewClass:H,boundaryElement:de,draggingDisabled:Pe,rootElementSelector:Fe,previewContainer:Qe}=pe;this.disabled=Pe??!1,this.dragStartDelay=N||0,Ie&&(this.lockAxis=Ie),J&&(this.constrainPosition=J),H&&(this.previewClass=H),de&&(this.boundaryElement=de),Fe&&(this.rootElementSelector=Fe),Qe&&(this.previewContainer=Qe)}_setupHandlesListener(){this._handles.changes.pipe((0,Ke.O)(this._handles),(0,mn.b)(pe=>{const Ie=pe.filter(N=>N._parentDrag===this).map(N=>N.element);this._selfHandle&&this.rootElementSelector&&Ie.push(this.element),this._dragRef.withHandles(Ie)}),(0,xn.w)(pe=>(0,Ue.T)(...pe.map(Ie=>Ie._stateChanges.pipe((0,Ke.O)(Ie))))),(0,Oe.R)(this._destroyed)).subscribe(pe=>{const Ie=this._dragRef,N=pe.element.nativeElement;pe.disabled?Ie.disableHandle(N):Ie.enableHandle(N)})}}return $e._dragInstances=[],$e.\u0275fac=function(pe){return new(pe||$e)(t.\u0275\u0275directiveInject(t.ElementRef),t.\u0275\u0275directiveInject(Da,12),t.\u0275\u0275directiveInject(n.K0),t.\u0275\u0275directiveInject(t.NgZone),t.\u0275\u0275directiveInject(t.ViewContainerRef),t.\u0275\u0275directiveInject(qo,8),t.\u0275\u0275directiveInject(Zr.Is,8),t.\u0275\u0275directiveInject(Qs),t.\u0275\u0275directiveInject(t.ChangeDetectorRef),t.\u0275\u0275directiveInject(Vi,10),t.\u0275\u0275directiveInject(Ts,12))},$e.\u0275dir=t.\u0275\u0275defineDirective({type:$e,selectors:[["","cdkDrag",""]],contentQueries:function(pe,Ie,N){if(1&pe&&(t.\u0275\u0275contentQuery(N,$i,5),t.\u0275\u0275contentQuery(N,Gr,5),t.\u0275\u0275contentQuery(N,Vi,5)),2&pe){let J;t.\u0275\u0275queryRefresh(J=t.\u0275\u0275loadQuery())&&(Ie._previewTemplate=J.first),t.\u0275\u0275queryRefresh(J=t.\u0275\u0275loadQuery())&&(Ie._placeholderTemplate=J.first),t.\u0275\u0275queryRefresh(J=t.\u0275\u0275loadQuery())&&(Ie._handles=J)}},hostAttrs:[1,"cdk-drag"],hostVars:4,hostBindings:function(pe,Ie){2&pe&&t.\u0275\u0275classProp("cdk-drag-disabled",Ie.disabled)("cdk-drag-dragging",Ie._dragRef.isDragging())},inputs:{data:["cdkDragData","data"],lockAxis:["cdkDragLockAxis","lockAxis"],rootElementSelector:["cdkDragRootElement","rootElementSelector"],boundaryElement:["cdkDragBoundary","boun
1daryElement"],dragStartDelay:["cdkDragStartDelay","dragStartDelay"],freeDragPosition:["cdkDragFreeDragPosition","freeDragPosition"],disabled:["cdkDragDisabled","disabled"],constrainPosition:["cdkDragConstrainPosition","constrainPosition"],previewClass:["cdkDragPreviewClass","previewClass"],previewContainer:["cdkDragPreviewContainer","previewContainer"]},outputs:{started:"cdkDragStarted",released:"cdkDragReleased",ended:"cdkDragEnded",entered:"cdkDragEntered",exited:"cdkDragExited",dropped:"cdkDragDropped",moved:"cdkDragMoved"},exportAs:["cdkDrag"],standalone:!0,features:[t.\u0275\u0275ProvidersFeature([{provide:Ts,useExisting:$e}]),t.\u0275\u0275NgOnChangesFeature]}),$e})(),ts=(()=>{class $e{}return $e.\u0275fac=function(pe){return new(pe||$e)},$e.\u0275mod=t.\u0275\u0275defineNgModule({type:$e}),$e.\u0275inj=t.\u0275\u0275defineInjector({providers:[Qs],imports:[wt]}),$e})()},36895:(R,c,e)=>{"use strict";e.d(c,{$G:()=>cr,Do:()=>l,EM:()=>pr,HT:()=>i,JF:()=>Fi,JJ:()=>_i,K0:()=>r,Mn:()=>G,Mx:()=>rr,NF:()=>_n,Nd:()=>$o,O5:()=>fi,Ov:()=>Gn,PC:()=>Gt,PM:()=>Re,RF:()=>oi,S$:()=>M,Tn:()=>K,Ts:()=>eo,UT:()=>ie,V_:()=>h,Ye:()=>C,b0:()=>D,bD:()=>Po,ez:()=>Co,i8:()=>qn,mk:()=>Xn,mr:()=>P,n9:()=>Gi,ol:()=>k,p6:()=>Ut,q:()=>o,rS:()=>mi,sg:()=>ui,tP:()=>dn,uU:()=>ri,w_:()=>d,x:()=>te});var t=e(94650);let n=null;function o(){return n}function i(ve){n||(n=ve)}class d{}const r=new t.InjectionToken("DocumentToken");let a=(()=>{class ve{historyGo(Oe){throw new Error("Not implemented")}}return ve.\u0275fac=function(Oe){return new(Oe||ve)},ve.\u0275prov=t.\u0275\u0275defineInjectable({token:ve,factory:function(){return function p(){return(0,t.\u0275\u0275inject)(m)}()},providedIn:"platform"}),ve})();const h=new t.InjectionToken("Location Initialized");let m=(()=>{class ve extends a{constructor(Oe){super(),this._doc=Oe,this._location=window.location,this._history=window.history}getBaseHrefFromDOM(){return o().getBaseHref(this._doc)}onPopState(Oe){const Ke=o().getGlobalEventTarget(this._doc,"window");return Ke.addEventListener("popstate",Oe,!1),()=>Ke.removeEventListener("popstate",Oe)}onHashChange(Oe){const Ke=o().getGlobalEventTarget(this._doc,"window");return Ke.addEventListener("hashchange",Oe,!1),()=>Ke.removeEventListener("hashchange",Oe)}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(Oe){this._location.pathname=Oe}pushState(Oe,Ke,yt){_()?this._history.pushState(Oe,Ke,yt):this._location.hash=yt}replaceState(Oe,Ke,yt){_()?this._history.replaceState(Oe,Ke,yt):this._location.hash=yt}forward(){this._history.forward()}back(){this._history.back()}historyGo(Oe=0){this._history.go(Oe)}getState(){return this._history.state}}return ve.\u0275fac=function(Oe){return new(Oe||ve)(t.\u0275\u0275inject(r))},ve.\u0275prov=t.\u0275\u0275defineInjectable({token:ve,factory:function(){return function v(){return new m((0,t.\u0275\u0275inject)(r))}()},providedIn:"platform"}),ve})();function _(){return!!window.history.pushState}function E(ve,Ue){if(0==ve.length)return Ue;if(0==Ue.length)return ve;let Oe=0;return ve.endsWith("/")&&Oe++,Ue.startsWith("/")&&Oe++,2==Oe?ve+Ue.substring(1):1==Oe?ve+Ue:ve+"/"+Ue}function O(ve){const Ue=ve.match(/#|\?|$/),Oe=Ue&&Ue.index||ve.length;return ve.slice(0,Oe-("/"===ve[Oe-1]?1:0))+ve.slice(Oe)}function b(ve){return ve&&"?"!==ve[0]?"?"+ve:ve}let M=(()=>{class ve{historyGo(Oe){throw new Error("Not implemented")}}return ve.\u0275fac=function(Oe){return new(Oe||ve)},ve.\u0275prov=t.\u0275\u0275defineInjectable({token:ve,factory:function(){return(0,t.inject)(D)},providedIn:"root"}),ve})();const P=new t.InjectionToken("appBaseHref");let D=(()=>{class ve extends M{constructor(Oe,Ke){super(),this._platformLocation=Oe,this._removeListenerFns=[],this._baseHref=Ke??this._platformLocation.getBaseHrefFromDOM()??(0,t.inject)(r).location?.origin??""}ngOnDestroy(){for(;this._removeListenerFns.length;)this._removeListenerFns.pop()()}onPopState(Oe){this._removeListenerFns.push(this._platformLocation.onPopState(Oe),this._platformLocation.on
1HashChange(Oe))}getBaseHref(){return this._baseHref}prepareExternalUrl(Oe){return E(this._baseHref,Oe)}path(Oe=!1){const Ke=this._platformLocation.pathname+b(this._platformLocation.search),yt=this._platformLocation.hash;return yt&&Oe?`${Ke}${yt}`:Ke}pushState(Oe,Ke,yt,sn){const mn=this.prepareExternalUrl(yt+b(sn));this._platformLocation.pushState(Oe,Ke,mn)}replaceState(Oe,Ke,yt,sn){const mn=this.prepareExternalUrl(yt+b(sn));this._platformLocation.replaceState(Oe,Ke,mn)}forward(){this._platformLocation.forward()}back(){this._platformLocation.back()}getState(){return this._platformLocation.getState()}historyGo(Oe=0){this._platformLocation.historyGo?.(Oe)}}return ve.\u0275fac=function(Oe){return new(Oe||ve)(t.\u0275\u0275inject(a),t.\u0275\u0275inject(P,8))},ve.\u0275prov=t.\u0275\u0275defineInjectable({token:ve,factory:ve.\u0275fac,providedIn:"root"}),ve})(),l=(()=>{class ve extends M{constructor(Oe,Ke){super(),this._platformLocation=Oe,this._baseHref="",this._removeListenerFns=[],null!=Ke&&(this._baseHref=Ke)}ngOnDestroy(){for(;this._removeListenerFns.length;)this._removeListenerFns.pop()()}onPopState(Oe){this._removeListenerFns.push(this._platformLocation.onPopState(Oe),this._platformLocation.onHashChange(Oe))}getBaseHref(){return this._baseHref}path(Oe=!1){let Ke=this._platformLocation.hash;return null==Ke&&(Ke="#"),Ke.length>0?Ke.substring(1):Ke}prepareExternalUrl(Oe){const Ke=E(this._baseHref,Oe);return Ke.length>0?"#"+Ke:Ke}pushState(Oe,Ke,yt,sn){let mn=this.prepareExternalUrl(yt+b(sn));0==mn.length&&(mn=this._platformLocation.pathname),this._platformLocation.pushState(Oe,Ke,mn)}replaceState(Oe,Ke,yt,sn){let mn=this.prepareExternalUrl(yt+b(sn));0==mn.length&&(mn=this._platformLocation.pathname),this._platformLocation.replaceState(Oe,Ke,mn)}forward(){this._platformLocation.forward()}back(){this._platformLocation.back()}getState(){return this._platformLocation.getState()}historyGo(Oe=0){this._platformLocation.historyGo?.(Oe)}}return ve.\u0275fac=function(Oe){return new(Oe||ve)(t.\u0275\u0275inject(a),t.\u0275\u0275inject(P,8))},ve.\u0275prov=t.\u0275\u0275defineInjectable({token:ve,factory:ve.\u0275fac}),ve})(),C=(()=>{class ve{constructor(Oe){this._subject=new t.EventEmitter,this._urlChangeListeners=[],this._urlChangeSubscription=null,this._locationStrategy=Oe;const Ke=this._locationStrategy.getBaseHref();this._basePath=function L(ve){if(new RegExp("^(https?:)?//").test(ve)){const[,Oe]=ve.split(/\/\/[^\/]+/);return Oe}return ve}(O(B(Ke))),this._locationStrategy.onPopState(yt=>{this._subject.emit({url:this.path(!0),pop:!0,state:yt.state,type:yt.type})})}ngOnDestroy(){this._urlChangeSubscription?.unsubscribe(),this._urlChangeListeners=[]}path(Oe=!1){return this.normalize(this._locationStrategy.path(Oe))}getState(){return this._locationStrategy.getState()}isCurrentPathEqualTo(Oe,Ke=""){return this.path()==this.normalize(Oe+b(Ke))}normalize(Oe){return ve.stripTrailingSlash(function g(ve,Ue){if(!ve||!Ue.startsWith(ve))return Ue;const Oe=Ue.substring(ve.length);return""===Oe||["/",";","?","#"].includes(Oe[0])?Oe:Ue}(this._basePath,B(Oe)))}prepareExternalUrl(Oe){return Oe&&"/"!==Oe[0]&&(Oe="/"+Oe),this._locationStrategy.prepareExternalUrl(Oe)}go(Oe,Ke="",yt=null){this._locationStrategy.pushState(yt,"",Oe,Ke),this._notifyUrlChangeListeners(this.prepareExternalUrl(Oe+b(Ke)),yt)}replaceState(Oe,Ke="",yt=null){this._locationStrategy.replaceState(yt,"",Oe,Ke),this._notifyUrlChangeListeners(this.prepareExternalUrl(Oe+b(Ke)),yt)}forward(){this._locationStrategy.forward()}back(){this._locationStrategy.back()}historyGo(Oe=0){this._locationStrategy.historyGo?.(Oe)}onUrlChange(Oe){return this._urlChangeListeners.push(Oe),this._urlChangeSubscription||(this._urlChangeSubscription=this.subscribe(Ke=>{this._notifyUrlChangeListeners(Ke.url,Ke.state)})),()=>{const Ke=this._urlChangeListeners.indexOf(Oe);this._urlChangeListeners.splice(Ke,1),0===this._urlChangeListeners.length&&(this._urlChangeSubscription?.unsubscribe(),this._urlChangeSubscription=null)}}_notifyUrlChangeListeners(Oe="",Ke){this._urlChangeListeners.forEach(yt=>yt(Oe,Ke))}subscribe(Oe,Ke,yt){return this._subject.subscribe({next:Oe,error:Ke,complete:yt})}}return ve.normalizeQueryParams=b,ve.joinWithSlash=E,ve.stripTrailingSlash=O,ve.\u0275fac=function(Oe){return new(Oe||ve)(t.\u0275\u0275inject(M
1))},ve.\u0275prov=t.\u0275\u0275defineInjectable({token:ve,factory:function(){return function I(){return new C((0,t.\u0275\u0275inject)(M))}()},providedIn:"root"}),ve})();function B(ve){return ve.replace(/\/index.html$/,"")}var Y=(()=>((Y=Y||{})[Y.Decimal=0]="Decimal",Y[Y.Percent=1]="Percent",Y[Y.Currency=2]="Currency",Y[Y.Scientific=3]="Scientific",Y))(),te=(()=>((te=te||{})[te.Format=0]="Format",te[te.Standalone=1]="Standalone",te))(),K=(()=>((K=K||{})[K.Narrow=0]="Narrow",K[K.Abbreviated=1]="Abbreviated",K[K.Wide=2]="Wide",K[K.Short=3]="Short",K))(),ee=(()=>((ee=ee||{})[ee.Short=0]="Short",ee[ee.Medium=1]="Medium",ee[ee.Long=2]="Long",ee[ee.Full=3]="Full",ee))(),ae=(()=>((ae=ae||{})[ae.Decimal=0]="Decimal",ae[ae.Group=1]="Group",ae[ae.List=2]="List",ae[ae.PercentSign=3]="PercentSign",ae[ae.PlusSign=4]="PlusSign",ae[ae.MinusSign=5]="MinusSign",ae[ae.Exponential=6]="Exponential",ae[ae.SuperscriptingExponent=7]="SuperscriptingExponent",ae[ae.PerMille=8]="PerMille",ae[ae.Infinity=9]="Infinity",ae[ae.NaN=10]="NaN",ae[ae.TimeSeparator=11]="TimeSeparator",ae[ae.CurrencyDecimal=12]="CurrencyDecimal",ae[ae.CurrencyGroup=13]="CurrencyGroup",ae))();function k(ve,Ue,Oe){const Ke=(0,t.\u0275findLocaleData)(ve),sn=nt([Ke[t.\u0275LocaleDataIndex.DayPeriodsFormat],Ke[t.\u0275LocaleDataIndex.DayPeriodsStandalone]],Ue);return nt(sn,Oe)}function G(ve,Ue,Oe){const Ke=(0,t.\u0275findLocaleData)(ve),sn=nt([Ke[t.\u0275LocaleDataIndex.DaysFormat],Ke[t.\u0275LocaleDataIndex.DaysStandalone]],Ue);return nt(sn,Oe)}function ie(ve,Ue,Oe){const Ke=(0,t.\u0275findLocaleData)(ve),sn=nt([Ke[t.\u0275LocaleDataIndex.MonthsFormat],Ke[t.\u0275LocaleDataIndex.MonthsStandalone]],Ue);return nt(sn,Oe)}function ce(ve,Ue){return nt((0,t.\u0275findLocaleData)(ve)[t.\u0275LocaleDataIndex.DateFormat],Ue)}function ye(ve,Ue){return nt((0,t.\u0275findLocaleData)(ve)[t.\u0275LocaleDataIndex.TimeFormat],Ue)}function Me(ve,Ue){return nt((0,t.\u0275findLocaleData)(ve)[t.\u0275LocaleDataIndex.DateTimeFormat],Ue)}function Ee(ve,Ue){const Oe=(0,t.\u0275findLocaleData)(ve),Ke=Oe[t.\u0275LocaleDataIndex.NumberSymbols][Ue];if(typeof Ke>"u"){if(Ue===ae.CurrencyDecimal)return Oe[t.\u0275LocaleDataIndex.NumberSymbols][ae.Decimal];if(Ue===ae.CurrencyGroup)return Oe[t.\u0275LocaleDataIndex.NumberSymbols][ae.Group]}return Ke}function Xe(ve){if(!ve[t.\u0275LocaleDataIndex.ExtraData])throw new Error(`Missing extra locale data for the locale "${ve[t.\u0275LocaleDataIndex.LocaleId]}". Use "registerLocaleData" to load new data. See the "I18n guide" on angular.io to know more.`)}function nt(ve,Ue){for(let Oe=Ue;Oe>-1;Oe--)if(typeof ve[Oe]<"u")return ve[Oe];throw new Error("Locale data API: locale data undefined")}function mt(ve){const[Ue,Oe]=ve.split(":");return{hours:+Ue,minutes:+Oe}}const Tt=/^(\d{4,})-?(\d\d)-?(\d\d)(?:T(\d\d)(?::?(\d\d)(?::?(\d\d)(?:\.(\d+))?)?)?(Z|([+-])(\d\d):?(\d\d))?)?$/,At={},Rt=/((?:[^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 Pt=(()=>((Pt=Pt||{})[Pt.Short=0]="Short",Pt[Pt.ShortGMT=1]="ShortGMT",Pt[Pt.Long=2]="Long",Pt[Pt.Extended=3]="Extended",Pt))(),xt=(()=>((xt=xt||{})[xt.FullYear=0]="FullYear",xt[xt.Month=1]="Month",xt[xt.Date=2]="Date",xt[xt.Hours=3]="Hours",xt[xt.Minutes=4]="Minutes",xt[xt.Seconds=5]="Seconds",xt[xt.FractionalSeconds=6]="FractionalSeconds",xt[xt.Day=7]="Day",xt))(),lt=(()=>((lt=lt||{})[lt.DayPeriods=0]="DayPeriods",lt[lt.Days=1]="Days",lt[lt.Months=2]="Months",lt[lt.Eras=3]="Eras",lt))();function Ut(ve,Ue,Oe,Ke){let yt=function qt(ve){if(dt(ve))return ve;if("number"==typeof ve&&!isNaN(ve))return new Date(ve);if("string"==typeof ve){if(ve=ve.trim(),/^(\d{4}(-\d{1,2}(-\d{1,2})?)?)$/.test(ve)){const[yt,sn=1,mn=1]=ve.split("-").map(xn=>+xn);return ke(yt,sn-1,mn)}const Oe=parseFloat(ve);if(!isNaN(ve-Oe))return new Date(Oe);let Ke;if(Ke=ve.match(Tt))return function un(ve){const Ue=new Date(0);let Oe=0,Ke=0;const yt=ve[8]?Ue.setUTCFullYear:Ue.setFullYear,sn=ve[8]?Ue.setUTCHours:Ue.setHours;ve[9]&&(Oe=Number(ve[9]+ve[10]),Ke=Number(ve[9]+ve[11])),yt.call(Ue,Number(ve[1]),Number(ve[2])-1,Number(ve[3]));const mn=Number(ve[4]||0)-Oe,xn=Number(ve[5]||0)-Ke,Zr=Number(ve[6]||0),Kr=Math.floor(1e3*parseFloat("0."+(ve[7]||0)));return sn.call(Ue,mn,xn,Zr,Kr),Ue}(Ke)}const Ue=new Date(ve);if(!dt(Ue))throw new Error(`Unable to convert "${ve}" into a date`);return Ue}(ve);Ue=ot(Oe,Ue)||Ue;let xn,mn=[];for(;
1Ue;){if(xn=Rt.exec(Ue),!xn){mn.push(Ue);break}{mn=mn.concat(xn.slice(1));const Pr=mn.pop();if(!Pr)break;Ue=Pr}}let Zr=yt.getTimezoneOffset();Ke&&(Zr=$t(Ke,Zr),yt=function Wt(ve,Ue,Oe){const Ke=Oe?-1:1,yt=ve.getTimezoneOffset();return function rn(ve,Ue){return(ve=new Date(ve.getTime())).setMinutes(ve.getMinutes()+Ue),ve}(ve,Ke*($t(Ue,yt)-yt))}(yt,Ke,!0));let Kr="";return mn.forEach(Pr=>{const ir=function Jt(ve){if(at[ve])return at[ve];let Ue;switch(ve){case"G":case"GG":case"GGG":Ue=Dt(lt.Eras,K.Abbreviated);break;case"GGGG":Ue=Dt(lt.Eras,K.Wide);break;case"GGGGG":Ue=Dt(lt.Eras,K.Narrow);break;case"y":Ue=Vt(xt.FullYear,1,0,!1,!0);break;case"yy":Ue=Vt(xt.FullYear,2,0,!0,!0);break;case"yyy":Ue=Vt(xt.FullYear,3,0,!1,!0);break;case"yyyy":Ue=Vt(xt.FullYear,4,0,!1,!0);break;case"Y":Ue=qe(1);break;case"YY":Ue=qe(2,!0);break;case"YYY":Ue=qe(3);break;case"YYYY":Ue=qe(4);break;case"M":case"L":Ue=Vt(xt.Month,1,1);break;case"MM":case"LL":Ue=Vt(xt.Month,2,1);break;case"MMM":Ue=Dt(lt.Months,K.Abbreviated);break;case"MMMM":Ue=Dt(lt.Months,K.Wide);break;case"MMMMM":Ue=Dt(lt.Months,K.Narrow);break;case"LLL":Ue=Dt(lt.Months,K.Abbreviated,te.Standalone);break;case"LLLL":Ue=Dt(lt.Months,K.Wide,te.Standalone);break;case"LLLLL":Ue=Dt(lt.Months,K.Narrow,te.Standalone);break;case"w":Ue=Le(1);break;case"ww":Ue=Le(2);break;case"W":Ue=Le(1,!0);break;case"d":Ue=Vt(xt.Date,1);break;case"dd":Ue=Vt(xt.Date,2);break;case"c":case"cc":Ue=Vt(xt.Day,1);break;case"ccc":Ue=Dt(lt.Days,K.Abbreviated,te.Standalone);break;case"cccc":Ue=Dt(lt.Days,K.Wide,te.Standalone);break;case"ccccc":Ue=Dt(lt.Days,K.Narrow,te.Standalone);break;case"cccccc":Ue=Dt(lt.Days,K.Short,te.Standalone);break;case"E":case"EE":case"EEE":Ue=Dt(lt.Days,K.Abbreviated);break;case"EEEE":Ue=Dt(lt.Days,K.Wide);break;case"EEEEE":Ue=Dt(lt.Days,K.Narrow);break;case"EEEEEE":Ue=Dt(lt.Days,K.Short);break;case"a":case"aa":case"aaa":Ue=Dt(lt.DayPeriods,K.Abbreviated);break;case"aaaa":Ue=Dt(lt.DayPeriods,K.Wide);break;case"aaaaa":Ue=Dt(lt.DayPeriods,K.Narrow);break;case"b":case"bb":case"bbb":Ue=Dt(lt.DayPeriods,K.Abbreviated,te.Standalone,!0);break;case"bbbb":Ue=Dt(lt.DayPeriods,K.Wide,te.Standalone,!0);break;case"bbbbb":Ue=Dt(lt.DayPeriods,K.Narrow,te.Standalone,!0);break;case"B":case"BB":case"BBB":Ue=Dt(lt.DayPeriods,K.Abbreviated,te.Format,!0);break;case"BBBB":Ue=Dt(lt.DayPeriods,K.Wide,te.Format,!0);break;case"BBBBB":Ue=Dt(lt.DayPeriods,K.Narrow,te.Format,!0);break;case"h":Ue=Vt(xt.Hours,1,-12);break;case"hh":Ue=Vt(xt.Hours,2,-12);break;case"H":Ue=Vt(xt.Hours,1);break;case"HH":Ue=Vt(xt.Hours,2);break;case"m":Ue=Vt(xt.Minutes,1);break;case"mm":Ue=Vt(xt.Minutes,2);break;case"s":Ue=Vt(xt.Seconds,1);break;case"ss":Ue=Vt(xt.Seconds,2);break;case"S":Ue=Vt(xt.FractionalSeconds,1);break;case"SS":Ue=Vt(xt.FractionalSeconds,2);break;case"SSS":Ue=Vt(xt.FractionalSeconds,3);break;case"Z":case"ZZ":case"ZZZ":Ue=St(Pt.Short);break;case"ZZZZZ":Ue=St(Pt.Extended);break;case"O":case"OO":case"OOO":case"z":case"zz":case"zzz":Ue=St(Pt.ShortGMT);break;case"OOOO":case"ZZZZ":case"zzzz":Ue=St(Pt.Long);break;default:return null}return at[ve]=Ue,Ue}(Pr);Kr+=ir?ir(yt,Oe,Zr):"''"===Pr?"'":Pr.replace(/(^'|'$)/g,"").replace(/''/g,"'")}),Kr}function ke(ve,Ue,Oe){const Ke=new Date(0);return Ke.setFullYear(ve,Ue,Oe),Ke.setHours(0,0,0),Ke}function ot(ve,Ue){const Oe=function j(ve){return(0,t.\u0275findLocaleData)(ve)[t.\u0275LocaleDataIndex.LocaleId]}(ve);if(At[Oe]=At[Oe]||{},At[Oe][Ue])return At[Oe][Ue];let Ke="";switch(Ue){case"shortDate":Ke=ce(ve,ee.Short);break;case"mediumDate":Ke=ce(ve,ee.Medium);break;case"longDate":Ke=ce(ve,ee.Long);break;case"fullDate":Ke=ce(ve,ee.Full);break;case"shortTime":Ke=ye(ve,ee.Short);break;case"mediumTime":Ke=ye(ve,ee.Medium);break;case"longTime":Ke=ye(ve,ee.Long);break;case"fullTime":Ke=ye(ve,ee.Full);break;case"short":const yt=ot(ve,"shortTime"),sn=ot(ve,"shortDate");Ke=gt(Me(ve,ee.Short),[yt,sn]);break;case"medium":const mn=ot(ve,"mediumTime"),xn=ot(ve,"mediumDate");Ke=gt(Me(ve,ee.Medium),[mn,xn]);break;case"long":const Zr=ot(ve,"longTime"),Kr=ot(ve,"longDate");Ke=gt(Me(ve,ee.Long),[Zr,Kr]);break;case"full":const Pr=ot(ve,"fullTime"),ir=ot(ve,"fullDate");Ke=gt(Me(ve,ee.Full),[Pr,ir])}return Ke&&(At[Oe][Ue]=Ke),Ke}function gt(ve,Ue){return Ue&&(ve=ve.replace(/\{([^}]+)}/g,function(Oe,Ke){return null!=Ue&&Ke in Ue?Ue[Ke]:Oe})),ve}function zt(ve,Ue,Oe="-",Ke,yt){let sn="";(ve<0||yt&&ve<=0)&&(yt?ve=1-ve:(ve=-ve,sn=Oe));let mn=String(ve);for(;mn.length<Ue;)mn="0"+mn;return Ke&&(mn=mn.slice(mn.length-Ue)),sn+mn}function Vt(ve,Ue,Oe=0,Ke=!1,yt=!1){return function(sn,mn){let xn=function $n(ve,Ue){switch(ve){case xt.FullYear:return Ue.getFullYear();case xt.Month:return Ue.getMonth();case xt.Date:return Ue.getDate();case xt.Hours:return Ue.getHours();case xt.Minutes:return Ue.getMinutes();case xt.Seconds:return Ue.getSeconds();case xt.FractionalSeconds:return Ue.getMilliseconds();case xt.Day:return Ue.getDay();default:throw new Error(`Unknown DateType value "${ve}".`)}}(ve,sn);if((Oe>0||xn>-Oe)&&(xn+=Oe),ve===xt.Hours)0===xn&&-12===Oe&&(xn=12);else if(ve===xt.FractionalSeconds)return function hn(ve,Ue){return zt(ve,3).substring(0,Ue)}(xn,Ue);const Zr=Ee(mn,ae.MinusSign);return zt(xn,Ue,Zr,Ke,yt)}}function Dt(ve,Ue,Oe=te.Format,Ke=!1){return function(yt,sn){return function Ft(ve,Ue,Oe,Ke,yt,sn){switch(Oe){case lt.Months:return ie(Ue,yt,Ke)[ve.getMonth()];case lt.Days:return G(Ue,yt,Ke)[ve.getDay()];case lt.DayPeriods:const mn=ve.getHours(),xn=ve.getMinutes();if(sn){const Kr=function pt(ve){const Ue=(0,t.\u0275findLocaleData)(ve);return Xe(Ue),(Ue[t.\u0275LocaleDataIndex.ExtraData][2]||[]).map(Ke=>"string"==typeof Ke?mt(Ke):[mt(Ke[0]),mt(Ke[1])])}(Ue),Pr=function Mt(ve,Ue,Oe){const Ke=(0,t.\u0275findLocaleData)(ve);Xe(Ke);const sn=nt([Ke[t.\u0275LocaleDataIndex.ExtraData][0],Ke[t.\u0275LocaleDataIndex.ExtraData][1]],Ue)||[];return nt(sn,Oe)||[]}(Ue,yt,Ke),ir=Kr.findIndex(hi=>{if(Array.isArray(hi)){const[$r,vi]=hi,Qo=mn>=$r.hours&&xn>=$r.minutes,io=mn<vi.hours||mn===vi.hours&&xn<vi.minutes;if($r.hours<vi.hours){if(Qo&&io)return!0}else if(Qo||io)return!0}else if(hi.hours===mn&&hi.minutes===xn)return!0;return!1});if(-1!==ir)return Pr[ir]}return k(Ue,yt,Ke)[mn<12?0:1];case lt.Eras:return function ne(ve,Ue){return nt((0,t.\u0275findLocaleData)(ve)[t.\u0275LocaleDataIndex.Eras],Ue)}(Ue,Ke)[ve.getFullYear()<=0?0:1];default:throw new Error(`unexpected translation type ${Oe}`)}}(yt,sn,ve,Ue,Oe,Ke)}}function St(ve){return function(Ue,Oe,Ke){const yt=-1*Ke,sn=Ee(Oe,ae.MinusSign),mn=yt>0?Math.floor(yt/60):Math.ceil(yt/60);switch(ve){case Pt.Short:return(yt>=0?"+":"")+zt(mn,2,sn)+zt(Math.abs(yt%60),2,sn);case Pt.ShortGMT:return"GMT"+(yt>=0?"+":"")+zt(mn,1,sn);case Pt.Long:return"GMT"+(yt>=0?"+":"")+zt(mn,2,sn)+":"+zt(Math.abs(yt%60),2,sn);case Pt.Extended:return 0===Ke?"Z":(yt>=0?"+":"")+zt(mn,2,sn)+":"+zt(Math.abs(yt%60),2,sn);default:throw new Error(`Unknown zone width "${ve}"`)}}}const wt=0,Xt=4;function xe(ve){return ke(ve.getFullYear(),ve.getMonth(),ve.getDate()+(Xt-ve.getDay()))}function Le(ve,Ue=!1){return function(Oe,Ke){let yt;if(Ue){const sn=new Date(Oe.getFullYear(),Oe.getMonth(),1).getDay()-1,mn=Oe.getDate();yt=1+Math.floor((mn+sn)/7)}else{const sn=xe(Oe),mn=function st(ve){const Ue=ke(ve,wt,1).getDay();return ke(ve,0,1+(Ue<=Xt?Xt:Xt+7)-Ue)}(sn.getFullYear()),xn=sn.getTime()-mn.getTime();yt=1+Math.round(xn/6048e5)}return zt(yt,ve,Ee(Ke,ae.MinusSign))}}function qe(ve,Ue=!1){return function(Oe,Ke){return zt(xe(Oe).getFullYear(),ve,Ee(Ke,ae.MinusSign),Ue)}}const at={};function $t(ve,Ue){ve=ve.replace(/:/g,"");const Oe=Date.parse("Jan 01, 1970 00:00:00 "+ve)/6e4;return isNaN(Oe)?Ue:Oe}function dt(ve){return ve instanceof Date&&!isNaN(ve.valueOf())}const ht=/^(\d+)?\.((\d+)(-(\d+))?)?$/,je=22,vt=".",Zt="0",We=";",Ne=",",ze="#";function Rn(ve){const Ue=parseInt(ve);if(isNaN(Ue))throw new Error("Invalid integer literal when parsing "+ve);return Ue}function rr(ve,Ue){Ue=encodeURIComponent(Ue);for(const Oe of ve.split(";")){const Ke=Oe.indexOf("="),[yt,sn]=-1==Ke?[Oe,""]:[Oe.slice(0,Ke),Oe.slice(Ke+1)];if(yt.trim()===Ue)return decodeURIComponent(sn)}return null}const Mr=/\s+/,Mn=[];let Xn=(()=>{class ve{constructor(Oe,Ke,yt,sn){this._iterableDiffers=Oe,this._keyValueDiffers=Ke,this._ngEl=yt,this._renderer=sn,this.initialClasses=Mn,this.stateMap=new Map}set klass(Oe){this.initialClasses=null!=Oe?Oe.trim().split(Mr):Mn}set ngClass(Oe){this.rawClass="string"==typeof Oe?Oe.trim().split(Mr):Oe}ngDoCheck(){for(const Ke of this.initialClasses)this._updateState(Ke,!0);const Oe=this.rawClass;if(Array.isArray(Oe)||Oe instanceof Set)for(const Ke of Oe)this._updateState(Ke,!0);else if(null!=Oe)for(const Ke of Object.keys(Oe))this._updateState(Ke,Boolean(Oe[Ke]));this._applyStateDiff()}_updateState(Oe,Ke){const yt=this.stateMap.get(Oe);void 0!==yt?(yt.enabled!==Ke&&(yt.changed=!0,yt.enabled=Ke),yt.touched=!0):this.stateMap.set(Oe,{enabled:Ke,changed:!0,touched:!0})}_applyStateDiff(){for(const Oe of this.stateMap){const Ke=Oe[0],yt=Oe[1];yt.changed?(this._toggleClass(Ke,yt.enabled),yt.changed=!1):yt.touched||(yt.enabled&&this._toggleClass(Ke,!1),this.stateMap.delete(Ke)),yt.touched=!1}}_toggleClass(Oe,Ke){(Oe=Oe.trim()).length>0&&Oe.split(Mr).forEach(yt=>{Ke?this._renderer.addClass(this._ngEl.nativeElement,yt):this._renderer.removeClass(this._ngEl.nativeElement,yt)})}}return ve.\u0275fac=function(Oe){return new(Oe||ve)(t.\u0275\u0275directiveInject(t.IterableDiffers),t.\u0275\u0275directiveInject(t.KeyValueDiffers),t.\u0275\u0275directiveInject(t.ElementRef),t.\u0275\u0275directiveInject(t.Renderer2))},ve.\u0275dir=t.\u0275\u0275defineDirective({type:ve,selectors:[["","ngClass",""]],inputs:{klass:["class","klass"],ngClass:"ngClass"},standalone:!0}),ve})(),cr=(()=>
1{class ve{constructor(Oe){this._viewContainerRef=Oe,this.ngComponentOutlet=null}ngOnChanges(Oe){const{_viewContainerRef:Ke,ngComponentOutletNgModule:yt,ngComponentOutletNgModuleFactory:sn}=this;if(Ke.clear(),this._componentRef=void 0,this.ngComponentOutlet){const mn=this.ngComponentOutletInjector||Ke.parentInjector;(Oe.ngComponentOutletNgModule||Oe.ngComponentOutletNgModuleFactory)&&(this._moduleRef&&this._moduleRef.destroy(),this._moduleRef=yt?(0,t.createNgModule)(yt,Qr(mn)):sn?sn.create(Qr(mn)):void 0),this._componentRef=Ke.createComponent(this.ngComponentOutlet,{index:Ke.length,injector:mn,ngModuleRef:this._moduleRef,projectableNodes:this.ngComponentOutletContent})}}ngOnDestroy(){this._moduleRef&&this._moduleRef.destroy()}}return ve.\u0275fac=function(Oe){return new(Oe||ve)(t.\u0275\u0275directiveInject(t.ViewContainerRef))},ve.\u0275dir=t.\u0275\u0275defineDirective({type:ve,selectors:[["","ngComponentOutlet",""]],inputs:{ngComponentOutlet:"ngComponentOutlet",ngComponentOutletInjector:"ngComponentOutletInjector",ngComponentOutletContent:"ngComponentOutletContent",ngComponentOutletNgModule:"ngComponentOutletNgModule",ngComponentOutletNgModuleFactory:"ngComponentOutletNgModuleFactory"},standalone:!0,features:[t.\u0275\u0275NgOnChangesFeature]}),ve})();function Qr(ve){return ve.get(t.NgModuleRef).injector}class wr{constructor(Ue,Oe,Ke,yt){this.$implicit=Ue,this.ngForOf=Oe,this.index=Ke,this.count=yt}get first(){return 0===this.index}get last(){return this.index===this.count-1}get even(){return this.index%2==0}get odd(){return!this.even}}let ui=(()=>{class ve{set ngForOf(Oe){this._ngForOf=Oe,this._ngForOfDirty=!0}set ngForTrackBy(Oe){this._trackByFn=Oe}get ngForTrackBy(){return this._trackByFn}constructor(Oe,Ke,yt){this._viewContainer=Oe,this._template=Ke,this._differs=yt,this._ngForOf=null,this._ngForOfDirty=!0,this._differ=null}set ngForTemplate(Oe){Oe&&(this._template=Oe)}ngDoCheck(){if(this._ngForOfDirty){this._ngForOfDirty=!1;const Oe=this._ngForOf;!this._differ&&Oe&&(this._differ=this._differs.find(Oe).create(this.ngForTrackBy))}if(this._differ){const Oe=this._differ.diff(this._ngForOf);Oe&&this._applyChanges(Oe)}}_applyChanges(Oe){const Ke=this._viewContainer;Oe.forEachOperation((yt,sn,mn)=>{if(null==yt.previousIndex)Ke.createEmbeddedView(this._template,new wr(yt.item,this._ngForOf,-1,-1),null===mn?void 0:mn);else if(null==mn)Ke.remove(null===sn?void 0:sn);else if(null!==sn){const xn=Ke.get(sn);Ke.move(xn,mn),Nr(xn,yt)}});for(let yt=0,sn=Ke.length;yt<sn;yt++){const xn=Ke.get(yt).context;xn.index=yt,xn.count=sn,xn.ngForOf=this._ngForOf}Oe.forEachIdentityChange(yt=>{Nr(Ke.get(yt.currentIndex),yt)})}static ngTemplateContextGuard(Oe,Ke){return!0}}return ve.\u0275fac=function(Oe){return new(Oe||ve)(t.\u0275\u0275directiveInject(t.ViewContainerRef),t.\u0275\u0275directiveInject(t.TemplateRef),t.\u0275\u0275directiveInject(t.IterableDiffers))},ve.\u0275dir=t.\u0275\u0275defineDirective({type:ve,selectors:[["","ngFor","","ngForOf",""]],inputs:{ngForOf:"ngForOf",ngForTrackBy:"ngForTrackBy",ngForTemplate:"ngForTemplate"},standalone:!0}),ve})();function Nr(ve,Ue){ve.context.$implicit=Ue.item}let fi=(()=>{class ve{constructor(Oe,Ke){this._viewContainer=Oe,this._context=new sr,this._thenTemplateRef=null,this._elseTemplateRef=null,this._thenViewRef=null,this._elseViewRef=null,this._thenTemplateRef=Ke}set ngIf(Oe){this._context.$implicit=this._context.ngIf=Oe,this._updateView()}set ngIfThen(Oe){Ai("ngIfThen",Oe),this._thenTemplateRef=Oe,this._thenViewRef=null,this._updateView()}set ngIfElse(Oe){Ai("ngIfElse",Oe),this._elseTemplateRef=Oe,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(Oe,Ke){return!0}}return ve.\u0275fac=function(Oe){return new(Oe||ve)(t.\u0275\u0275directiveInject(t.ViewContainerRef),t.\u0275\u0275directiveInject(t.TemplateRef))},ve.\u0275dir=t.\u0275\u0275defineDirective({type:ve,selectors:[["","ngIf",""]],inputs:{ngIf:"ngIf",ngIfThe
1n:"ngIfThen",ngIfElse:"ngIfElse"},standalone:!0}),ve})();class sr{constructor(){this.$implicit=null,this.ngIf=null}}function Ai(ve,Ue){if(Ue&&!Ue.createEmbeddedView)throw new Error(`${ve} must be a TemplateRef, but received '${(0,t.\u0275stringify)(Ue)}'.`)}class Wr{constructor(Ue,Oe){this._viewContainerRef=Ue,this._templateRef=Oe,this._created=!1}create(){this._created=!0,this._viewContainerRef.createEmbeddedView(this._templateRef)}destroy(){this._created=!1,this._viewContainerRef.clear()}enforceState(Ue){Ue&&!this._created?this.create():!Ue&&this._created&&this.destroy()}}let oi=(()=>{class ve{constructor(){this._defaultViews=[],this._defaultUsed=!1,this._caseCount=0,this._lastCaseCheckIndex=0,this._lastCasesMatched=!1}set ngSwitch(Oe){this._ngSwitch=Oe,0===this._caseCount&&this._updateDefaultCases(!0)}_addCase(){return this._caseCount++}_addDefault(Oe){this._defaultViews.push(Oe)}_matchCase(Oe){const Ke=Oe==this._ngSwitch;return this._lastCasesMatched=this._lastCasesMatched||Ke,this._lastCaseCheckIndex++,this._lastCaseCheckIndex===this._caseCount&&(this._updateDefaultCases(!this._lastCasesMatched),this._lastCaseCheckIndex=0,this._lastCasesMatched=!1),Ke}_updateDefaultCases(Oe){if(this._defaultViews.length>0&&Oe!==this._defaultUsed){this._defaultUsed=Oe;for(const Ke of this._defaultViews)Ke.enforceState(Oe)}}}return ve.\u0275fac=function(Oe){return new(Oe||ve)},ve.\u0275dir=t.\u0275\u0275defineDirective({type:ve,selectors:[["","ngSwitch",""]],inputs:{ngSwitch:"ngSwitch"},standalone:!0}),ve})(),Gi=(()=>{class ve{constructor(Oe,Ke,yt){this.ngSwitch=yt,yt._addCase(),this._view=new Wr(Oe,Ke)}ngDoCheck(){this._view.enforceState(this.ngSwitch._matchCase(this.ngSwitchCase))}}return ve.\u0275fac=function(Oe){return new(Oe||ve)(t.\u0275\u0275directiveInject(t.ViewContainerRef),t.\u0275\u0275directiveInject(t.TemplateRef),t.\u0275\u0275directiveInject(oi,9))},ve.\u0275dir=t.\u0275\u0275defineDirective({type:ve,selectors:[["","ngSwitchCase",""]],inputs:{ngSwitchCase:"ngSwitchCase"},standalone:!0}),ve})(),Gt=(()=>{class ve{constructor(Oe,Ke,yt){this._ngEl=Oe,this._differs=Ke,this._renderer=yt,this._ngStyle=null,this._differ=null}set ngStyle(Oe){this._ngStyle=Oe,!this._differ&&Oe&&(this._differ=this._differs.find(Oe).create())}ngDoCheck(){if(this._differ){const Oe=this._differ.diff(this._ngStyle);Oe&&this._applyChanges(Oe)}}_setStyle(Oe,Ke){const[yt,sn]=Oe.split("."),mn=-1===yt.indexOf("-")?void 0:t.RendererStyleFlags2.DashCase;null!=Ke?this._renderer.setStyle(this._ngEl.nativeElement,yt,sn?`${Ke}${sn}`:Ke,mn):this._renderer.removeStyle(this._ngEl.nativeElement,yt,mn)}_applyChanges(Oe){Oe.forEachRemovedItem(Ke=>this._setStyle(Ke.key,null)),Oe.forEachAddedItem(Ke=>this._setStyle(Ke.key,Ke.currentValue)),Oe.forEachChangedItem(Ke=>this._setStyle(Ke.key,Ke.currentValue))}}return ve.\u0275fac=function(Oe){return new(Oe||ve)(t.\u0275\u0275directiveInject(t.ElementRef),t.\u0275\u0275directiveInject(t.KeyValueDiffers),t.\u0275\u0275directiveInject(t.Renderer2))},ve.\u0275dir=t.\u0275\u0275defineDirective({type:ve,selectors:[["","ngStyle",""]],inputs:{ngStyle:"ngStyle"},standalone:!0}),ve})(),dn=(()=>{class ve{constructor(Oe){this._viewContainerRef=Oe,this._viewRef=null,this.ngTemplateOutletContext=null,this.ngTemplateOutlet=null,this.ngTemplateOutletInjector=null}ngOnChanges(Oe){if(Oe.ngTemplateOutlet||Oe.ngTemplateOutletInjector){const Ke=this._viewContainerRef;if(this._viewRef&&Ke.remove(Ke.indexOf(this._viewRef)),this.ngTemplateOutlet){const{ngTemplateOutlet:yt,ngTemplateOutletContext:sn,ngTemplateOutletInjector:mn}=this;this._viewRef=Ke.createEmbeddedView(yt,sn,mn?{injector:mn}:void 0)}else this._viewRef=null}else this._viewRef&&Oe.ngTemplateOutletContext&&this.ngTemplateOutletContext&&(this._viewRef.context=this.ngTemplateOutletContext)}}return ve.\u0275fac=function(Oe){return new(Oe||ve)(t.\u0275\u0275directiveInject(t.ViewContainerRef))},ve.\u0275dir=t.\u0275\u0275defineDirective({type:ve,selectors:[["","ngTemplateOutlet",""]],inputs:{ngTemplateOutletContext:"ngTemplateOutletContext",ngTemplateOutlet:"ngTemplateOutlet",ngTemplateOutletInjector:"ngTemplateOutletInjector"},standalone:!0,features:[t.\u0275\u0275NgOnChangesFeature]}),ve})();function An(ve,Ue){return new t.\u0275RuntimeError(2100,!1)}class Qn{createSubscription(Ue,Oe){return Ue.subscribe({next:Oe,error:Ke=>{throw Ke}})}dispose(Ue){Ue.unsubscribe()}}class Cr{createSubscription(Ue,Oe){return Ue.then(Oe,Ke=>{throw Ke})}dispose(Ue){}}const mr=new Cr,Fr=new Qn;let Gn=(()=>{class ve{constructor(Oe){this._latestValue=null,this._subscription=null,this._obj=null,this._strategy=null,this._ref=Oe}ngOnDestroy(){this._subscription&&this._dispose(),this._ref=null}transform(Oe){return this._obj?Oe!==this._obj?(this._dispose(),this.transform(Oe)):this._latestValue:(Oe&&this._subscribe(Oe),this._latestValue)}_subscribe(Oe){this._obj=Oe,this._strategy=this._selectStrategy(Oe),this._subscription=this._strategy.createSubscription(Oe,Ke=>this._updateLatestValue(Oe,Ke))}
1_selectStrategy(Oe){if((0,t.\u0275isPromise)(Oe))return mr;if((0,t.\u0275isSubscribable)(Oe))return Fr;throw An()}_dispose(){this._strategy.dispose(this._subscription),this._latestValue=null,this._subscription=null,this._obj=null}_updateLatestValue(Oe,Ke){Oe===this._obj&&(this._latestValue=Ke,this._ref.markForCheck())}}return ve.\u0275fac=function(Oe){return new(Oe||ve)(t.\u0275\u0275directiveInject(t.ChangeDetectorRef,16))},ve.\u0275pipe=t.\u0275\u0275definePipe({name:"async",type:ve,pure:!1,standalone:!0}),ve})(),qn=(()=>{class ve{transform(Oe){if(null==Oe)return null;if("string"!=typeof Oe)throw An();return Oe.toLowerCase()}}return ve.\u0275fac=function(Oe){return new(Oe||ve)},ve.\u0275pipe=t.\u0275\u0275definePipe({name:"lowercase",type:ve,pure:!0,standalone:!0}),ve})();const wi=/(?:[0-9A-Za-z\xAA\xB5\xBA\xC0-\xD6\xD8-\xF6\xF8-\u02C1\u02C6-\u02D1\u02E0-\u02E4\u02EC\u02EE\u0370-\u0374\u0376\u0377\u037A-\u037D\u037F\u0386\u0388-\u038A\u038C\u038E-\u03A1\u03A3-\u03F5\u03F7-\u0481\u048A-\u052F\u0531-\u0556\u0559\u0560-\u0588\u05D0-\u05EA\u05EF-\u05F2\u0620-\u064A\u066E\u066F\u0671-\u06D3\u06D5\u06E5\u06E6\u06EE\u06EF\u06FA-\u06FC\u06FF\u0710\u0712-\u072F\u074D-\u07A5\u07B1\u07CA-\u07EA\u07F4\u07F5\u07FA\u0800-\u0815\u081A\u0824\u0828\u0840-\u0858\u0860-\u086A\u0870-\u0887\u0889-\u088E\u08A0-\u08C9\u0904-\u0939\u093D\u0950\u0958-\u0961\u0971-\u0980\u0985-\u098C\u098F\u0990\u0993-\u09A8\u09AA-\u09B0\u09B2\u09B6-\u09B9\u09BD\u09CE\u09DC\u09DD\u09DF-\u09E1\u09F0\u09F1\u09FC\u0A05-\u0A0A\u0A0F\u0A10\u0A13-\u0A28\u0A2A-\u0A30\u0A32\u0A33\u0A35\u0A36\u0A38\u0A39\u0A59-\u0A5C\u0A5E\u0A72-\u0A74\u0A85-\u0A8D\u0A8F-\u0A91\u0A93-\u0AA8\u0AAA-\u0AB0\u0AB2\u0AB3\u0AB5-\u0AB9\u0ABD\u0AD0\u0AE0\u0AE1\u0AF9\u0B05-\u0B0C\u0B0F\u0B10\u0B13-\u0B28\u0B2A-\u0B30\u0B32\u0B33\u0B35-\u0B39\u0B3D\u0B5C\u0B5D\u0B5F-\u0B61\u0B71\u0B83\u0B85-\u0B8A\u0B8E-\u0B90\u0B92-\u0B95\u0B99\u0B9A\u0B9C\u0B9E\u0B9F\u0BA3\u0BA4\u0BA8-\u0BAA\u0BAE-\u0BB9\u0BD0\u0C05-\u0C0C\u0C0E-\u0C10\u0C12-\u0C28\u0C2A-\u0C39\u0C3D\u0C58-\u0C5A\u0C5D\u0C60\u0C61\u0C80\u0C85-\u0C8C\u0C8E-\u0C90\u0C92-\u0CA8\u0CAA-\u0CB3\u0CB5-\u0CB9\u0CBD\u0CDD\u0CDE\u0CE0\u0CE1\u0CF1\u0CF2\u0D04-\u0D0C\u0D0E-\u0D10\u0D12-\u0D3A\u0D3D\u0D4E\u0D54-\u0D56\u0D5F-\u0D61\u0D7A-\u0D7F\u0D85-\u0D96\u0D9A-\u0DB1\u0DB3-\u0DBB\u0DBD\u0DC0-\u0DC6\u0E01-\u0E30\u0E32\u0E33\u0E40-\u0E46\u0E81\u0E82\u0E84\u0E86-\u0E8A\u0E8C-\u0EA3\u0EA5\u0EA7-\u0EB0\u0EB2\u0EB3\u0EBD\u0EC0-\u0EC4\u0EC6\u0EDC-\u0EDF\u0F00\u0F40-\u0F47\u0F49-\u0F6C\u0F88-\u0F8C\u1000-\u102A\u103F\u1050-\u1055\u105A-\u105D\u1061\u1065\u1066\u106E-\u1070\u1075-\u1081\u108E\u10A0-\u10C5\u10C7\u10CD\u10D0-\u10FA\u10FC-\u1248\u124A-\u124D\u1250-\u1256\u1258\u125A-\u125D\u1260-\u1288\u128A-\u128D\u1290-\u12B0\u12B2-\u12B5\u12B8-\u12BE\u12C0\u12C2-\u12C5\u12C8-\u12D6\u12D8-\u1310\u1312-\u1315\u1318-\u135A\u1380-\u138F\u13A0-\u13F5\u13F8-\u13FD\u1401-\u166C\u166F-\u167F\u1681-\u169A\u16A0-\u16EA\u16F1-\u16F8\u1700-\u1711\u171F-\u1731\u1740-\u1751\u1760-\u176C\u176E-\u1770\u1780-\u17B3\u17D7\u17DC\u1820-\u1878\u1880-\u1884\u1887-\u18A8\u18AA\u18B0-\u18F5\u1900-\u191E\u1950-\u196D\u1970-\u1974\u1980-\u19AB\u19B0-\u19C9\u1A00-\u1A16\u1A20-\u1A54\u1AA7\u1B05-\u1B33\u1B45-\u1B4C\u1B83-\u1BA0\u1BAE\u1BAF\u1BBA-\u1BE5\u1C00-\u1C23\u1C4D-\u1C4F\u1C5A-\u1C7D\u1C80-\u1C88\u1C90-\u1CBA\u1CBD-\u1CBF\u1CE9-\u1CEC\u1CEE-\u1CF3\u1CF5\u1CF6\u1CFA\u1D00-\u1DBF\u1E00-\u1F15\u1F18-\u1F1D\u1F20-\u1F45\u1F48-\u1F4D\u1F50-\u1F57\u1F59\u1F5B\u1F5D\u1F5F-\u1F7D\u1F80-\u1FB4\u1FB6-\u1FBC\u1FBE\u1FC2-\u1FC4\u1FC6-\u1FCC\u1FD0-\u1FD3\u1FD6-\u1FDB\u1FE0-\u1FEC\u1FF2-\u1FF4\u1FF6-\u1FFC\u2071\u207F\u2090-\u209C\u2102\u2107\u210A-\u2113\u2115\u2119-\u211D\u2124\u2126\u2128\u212A-\u212D\u212F-\u2139\u213C-\u213F\u2145-\u2149\u214E\u2183\u2184\u2C00-\u2CE4\u2CEB-\u2CEE\u2CF2\u2CF3\u2D00-\u2D25\u2D27\u2D2D\u2D30-\u2D67\u2D6F\u2D80-\u2D96\u2DA0-\u2DA6\u2DA8-\u2DAE\u2DB0-\u2DB6\u2DB8-\u2DBE\u2DC0-\u2DC6\u2DC8-\u2DCE\u2DD0-\u2DD6\u2DD8-\u2DDE\u2E2F\u3005\u3006\u3031-\u3035\u303B\u303C\u3041-\u3096\u309D-\u309F\u30A1-\u30FA\u30FC-\u30FF\u3105-\u312F\u3131-\u318E\u31A0-\u31BF\u31F0-\u31FF\u3400-\u4DBF\u4E00-\uA48C\uA4D0-\uA4FD\uA500-\uA60C\uA610-\uA61F\uA62A\uA62B\uA640-\uA66E\uA67F-\uA69D\uA6A0-\uA6E5\uA717-\uA71F\uA722-\uA788\uA78B-\uA7CA\uA7D0\uA7D1\uA7D3\uA7D5-\uA7D9\uA7F2-\uA801\uA803-\uA805\uA807-\uA80A\uA80C-\uA822\uA840-\uA873\uA882-\uA8B3\uA8F2-\uA8F7\uA8FB\uA8FD\uA8FE\uA90A-\uA925\uA930-\uA946\uA960-\uA97C\uA984-\uA9B2\uA9CF\uA9E0-\uA9E4\uA9E6-\uA9EF\uA9FA-\uA9FE\uAA00-\uAA28\uAA40-\uAA42\uAA44-\uAA4B\uAA60-\uAA76\uAA7A\uAA7E-\uAAAF\uAAB1\uAAB5\uAAB6\uAAB9-\uAABD\uAAC0\uAAC2\uAADB-\uAADD\uAAE0-\uAAEA\uAAF2-\uAAF4\uAB01-\uAB06\uAB09-\uAB0E\uAB11-\uAB16\uAB20-\uAB26\uAB28-\uAB2E\uAB30-\uAB5A\uAB5C-\uAB69\uAB70-\uABE2\uAC00-\uD7A3\uD7B0-\uD7C6\uD7CB-\uD7FB\uF900-\uFA6D\uFA70-\uFAD9\uFB00-\uFB06\uFB13-\uFB17\uFB1D\uFB1F-\uFB28\uFB2A-\uFB36\uFB38-\uFB3C\uFB3E\uFB40\uFB41\uFB43\uFB44\uFB46-\uFBB1\uFB
1D3-\uFD3D\uFD50-\uFD8F\uFD92-\uFDC7\uFDF0-\uFDFB\uFE70-\uFE74\uFE76-\uFEFC\uFF21-\uFF3A\uFF41-\uFF5A\uFF66-\uFFBE\uFFC2-\uFFC7\uFFCA-\uFFCF\uFFD2-\uFFD7\uFFDA-\uFFDC]|\uD800[\uDC00-\uDC0B\uDC0D-\uDC26\uDC28-\uDC3A\uDC3C\uDC3D\uDC3F-\uDC4D\uDC50-\uDC5D\uDC80-\uDCFA\uDE80-\uDE9C\uDEA0-\uDED0\uDF00-\uDF1F\uDF2D-\uDF40\uDF42-\uDF49\uDF50-\uDF75\uDF80-\uDF9D\uDFA0-\uDFC3\uDFC8-\uDFCF]|\uD801[\uDC00-\uDC9D\uDCB0-\uDCD3\uDCD8-\uDCFB\uDD00-\uDD27\uDD30-\uDD63\uDD70-\uDD7A\uDD7C-\uDD8A\uDD8C-\uDD92\uDD94\uDD95\uDD97-\uDDA1\uDDA3-\uDDB1\uDDB3-\uDDB9\uDDBB\uDDBC\uDE00-\uDF36\uDF40-\uDF55\uDF60-\uDF67\uDF80-\uDF85\uDF87-\uDFB0\uDFB2-\uDFBA]|\uD802[\uDC00-\uDC05\uDC08\uDC0A-\uDC35\uDC37\uDC38\uDC3C\uDC3F-\uDC55\uDC60-\uDC76\uDC80-\uDC9E\uDCE0-\uDCF2\uDCF4\uDCF5\uDD00-\uDD15\uDD20-\uDD39\uDD80-\uDDB7\uDDBE\uDDBF\uDE00\uDE10-\uDE13\uDE15-\uDE17\uDE19-\uDE35\uDE60-\uDE7C\uDE80-\uDE9C\uDEC0-\uDEC7\uDEC9-\uDEE4\uDF00-\uDF35\uDF40-\uDF55\uDF60-\uDF72\uDF80-\uDF91]|\uD803[\uDC00-\uDC48\uDC80-\uDCB2\uDCC0-\uDCF2\uDD00-\uDD23\uDE80-\uDEA9\uDEB0\uDEB1\uDF00-\uDF1C\uDF27\uDF30-\uDF45\uDF70-\uDF81\uDFB0-\uDFC4\uDFE0-\uDFF6]|\uD804[\uDC03-\uDC37\uDC71\uDC72\uDC75\uDC83-\uDCAF\uDCD0-\uDCE8\uDD03-\uDD26\uDD44\uDD47\uDD50-\uDD72\uDD76\uDD83-\uDDB2\uDDC1-\uDDC4\uDDDA\uDDDC\uDE00-\uDE11\uDE13-\uDE2B\uDE80-\uDE86\uDE88\uDE8A-\uDE8D\uDE8F-\uDE9D\uDE9F-\uDEA8\uDEB0-\uDEDE\uDF05-\uDF0C\uDF0F\uDF10\uDF13-\uDF28\uDF2A-\uDF30\uDF32\uDF33\uDF35-\uDF39\uDF3D\uDF50\uDF5D-\uDF61]|\uD805[\uDC00-\uDC34\uDC47-\uDC4A\uDC5F-\uDC61\uDC80-\uDCAF\uDCC4\uDCC5\uDCC7\uDD80-\uDDAE\uDDD8-\uDDDB\uDE00-\uDE2F\uDE44\uDE80-\uDEAA\uDEB8\uDF00-\uDF1A\uDF40-\uDF46]|\uD806[\uDC00-\uDC2B\uDCA0-\uDCDF\uDCFF-\uDD06\uDD09\uDD0C-\uDD13\uDD15\uDD16\uDD18-\uDD2F\uDD3F\uDD41\uDDA0-\uDDA7\uDDAA-\uDDD0\uDDE1\uDDE3\uDE00\uDE0B-\uDE32\uDE3A\uDE50\uDE5C-\uDE89\uDE9D\uDEB0-\uDEF8]|\uD807[\uDC00-\uDC08\uDC0A-\uDC2E\uDC40\uDC72-\uDC8F\uDD00-\uDD06\uDD08\uDD09\uDD0B-\uDD30\uDD46\uDD60-\uDD65\uDD67\uDD68\uDD6A-\uDD89\uDD98\uDEE0-\uDEF2\uDFB0]|\uD808[\uDC00-\uDF99]|\uD809[\uDC80-\uDD43]|\uD80B[\uDF90-\uDFF0]|[\uD80C\uD81C-\uD820\uD822\uD840-\uD868\uD86A-\uD86C\uD86F-\uD872\uD874-\uD879\uD880-\uD883][\uDC00-\uDFFF]|\uD80D[\uDC00-\uDC2E]|\uD811[\uDC00-\uDE46]|\uD81A[\uDC00-\uDE38\uDE40-\uDE5E\uDE70-\uDEBE\uDED0-\uDEED\uDF00-\uDF2F\uDF40-\uDF43\uDF63-\uDF77\uDF7D-\uDF8F]|\uD81B[\uDE40-\uDE7F\uDF00-\uDF4A\uDF50\uDF93-\uDF9F\uDFE0\uDFE1\uDFE3]|\uD821[\uDC00-\uDFF7]|\uD823[\uDC00-\uDCD5\uDD00-\uDD08]|\uD82B[\uDFF0-\uDFF3\uDFF5-\uDFFB\uDFFD\uDFFE]|\uD82C[\uDC00-\uDD22\uDD50-\uDD52\uDD64-\uDD67\uDD70-\uDEFB]|\uD82F[\uDC00-\uDC6A\uDC70-\uDC7C\uDC80-\uDC88\uDC90-\uDC99]|\uD835[\uDC00-\uDC54\uDC56-\uDC9C\uDC9E\uDC9F\uDCA2\uDCA5\uDCA6\uDCA9-\uDCAC\uDCAE-\uDCB9\uDCBB\uDCBD-\uDCC3\uDCC5-\uDD05\uDD07-\uDD0A\uDD0D-\uDD14\uDD16-\uDD1C\uDD1E-\uDD39\uDD3B-\uDD3E\uDD40-\uDD44\uDD46\uDD4A-\uDD50\uDD52-\uDEA5\uDEA8-\uDEC0\uDEC2-\uDEDA\uDEDC-\uDEFA\uDEFC-\uDF14\uDF16-\uDF34\uDF36-\uDF4E\uDF50-\uDF6E\uDF70-\uDF88\uDF8A-\uDFA8\uDFAA-\uDFC2\uDFC4-\uDFCB]|\uD837[\uDF00-\uDF1E]|\uD838[\uDD00-\uDD2C\uDD37-\uDD3D\uDD4E\uDE90-\uDEAD\uDEC0-\uDEEB]|\uD839[\uDFE0-\uDFE6\uDFE8-\uDFEB\uDFED\uDFEE\uDFF0-\uDFFE]|\uD83A[\uDC00-\uDCC4\uDD00-\uDD43\uDD4B]|\uD83B[\uDE00-\uDE03\uDE05-\uDE1F\uDE21\uDE22\uDE24\uDE27\uDE29-\uDE32\uDE34-\uDE37\uDE39\uDE3B\uDE42\uDE47\uDE49\uDE4B\uDE4D-\uDE4F\uDE51\uDE52\uDE54\uDE57\uDE59\uDE5B\uDE5D\uDE5F\uDE61\uDE62\uDE64\uDE67-\uDE6A\uDE6C-\uDE72\uDE74-\uDE77\uDE79-\uDE7C\uDE7E\uDE80-\uDE89\uDE8B-\uDE9B\uDEA1-\uDEA3\uDEA5-\uDEA9\uDEAB-\uDEBB]|\uD869[\uDC00-\uDEDF\uDF00-\uDFFF]|\uD86D[\uDC00-\uDF38\uDF40-\uDFFF]|\uD86E[\uDC00-\uDC1D\uDC20-\uDFFF]|\uD873[\uDC00-\uDEA1\uDEB0-\uDFFF]|\uD87A[\uDC00-\uDFE0]|\uD87E[\uDC00-\uDE1D]|\uD884[\uDC00-\uDF4A])\S*/g;let mi=(()=>{class ve{transform(Oe){if(null==Oe)return null;if("string"!=typeof Oe)throw An();return Oe.replace(wi,Ke=>Ke[0].toUpperCase()+Ke.slice(1).toLowerCase())}}return ve.\u0275fac=function(Oe){return new(Oe||ve)},ve.\u0275pipe=t.\u0275\u0275definePipe({name:"titlecase",type:ve,pure:!0,standalone:!0}),ve})();const vo=new t.InjectionToken("DATE_PIPE_DEFAULT_TIMEZONE"),qi=new t.InjectionToken("DATE_PIPE_DEFAULT_OPTIONS");let ri=(()=>{class ve{constructor(Oe,Ke,yt){this.locale=Oe,this.defaultTimezone=Ke,this.defaultOptions=yt}transform(Oe,Ke,yt,sn){if(null==Oe||""===Oe||Oe!=Oe)return null;try{return Ut(Oe,Ke??this.defaultOptions?.dateFormat??"mediumDate",sn||this.locale,yt??this.defaultOptions?.timezone??this.defaultTimezone??void 0)}catch(mn){throw An()}}}return ve.\u0275fac=function(Oe){return new(Oe||ve)(t.\u0275\u0275directiveInject(t.LOCALE_ID,16),t.\u0275\u0275directiveInject(vo,24),t.\u0275\u0275directiveInject(qi,24))},ve.\u0275pipe=t.\u0275\u0275definePipe({name:"date",type:ve,pure:!0,standalone:!0}),ve})(),eo=(()=>{class ve{transform(Oe){return JSON.stringify(Oe,null,2)}}return ve.\u0275fac=function(Oe){return new(Oe||ve)},ve.\u0275pipe=t.\u0275\u0275definePipe({name:"json",type:ve,pure:!1,standalone:!0}),ve})(),$o=(()=>{class ve{constructor(Oe){this.differs=Oe,this.keyValues=[],this.compareFn=yo}transform(Oe,Ke=yo){if(!Oe||!(Oe instanceof Map)&&"object"!=typeof Oe)return null;this.differ||(this.differ=this.differs.find(Oe).create());const yt=this.differ.diff(Oe),sn=Ke!==this.compareFn;return yt&&(this.keyValues=[],yt.forEachItem(mn=>{this.keyValues.push(function cs(ve,Ue){return{key:ve,value:Ue}}(mn.key,mn.currentValue))})),(yt||sn)&&(this.keyValues.sort(Ke),this.compareFn=Ke),this.keyValues}}return ve.\u0275fac=function(Oe){return new(Oe||ve)(t.\u0275\u0275directiveInject(t.KeyValueDiffers,16))},ve.\u0275pipe=t.\u0275\u0275definePipe({name:"keyvalue",type:ve,pure:!1,standalone:!0}),ve})();function yo(ve,Ue){const Oe=ve.key,Ke=Ue.key;if(Oe===Ke)return 0;if(void 0===Oe)return 1;if(void 0===Ke)return-1;if(null===Oe)return 1;if(null===Ke)return-1;if("string"==typeof Oe&&"string"==typeof Ke)return Oe<Ke?-1:1;if("number"==typeof Oe&&"number"==typeof Ke)return Oe-Ke;if("boolean"==typeof Oe&&"boolean"==typeof Ke)return Oe<Ke?-1:1;const yt=String(Oe),sn=String(Ke);return yt==sn?0:yt<sn?-1:1}let _i=(()=>{class ve{constructor(Oe){this._locale=Oe}transform(Oe,Ke,yt){if(!function ho(ve){return!(null==ve||""===ve||ve!=ve)}(Oe))return null;yt=yt||this._locale;try{return function bn(ve,Ue,Oe){return function wn(ve,Ue,Oe,Ke,yt,sn,mn=!1){let xn="",Zr=!1;if(isFinite(ve)){let Kr=function In(ve){let Ke,yt,sn,mn,xn,Ue=Math.abs(ve)+"",Oe=0;for((yt=Ue.indexOf(vt))>-1&&(Ue=Ue.replace(vt,"")),(sn=Ue.search(/e/i))>0?(yt<0&&(yt=sn),yt+=+Ue.slice(sn+1),Ue=Ue.substring(0,sn)):yt<0&&(yt=Ue.length),sn=0;Ue.charAt(sn)===Zt;sn++);if(sn===(xn=Ue.length))Ke=[0],yt=1;else{for(xn--;Ue.charAt(xn)===Zt;)xn--;for(yt-=sn,Ke=[],mn=0;sn<=xn;sn++,mn++)Ke[mn]=Number(Ue.charAt(sn))}return yt>je&&(Ke=Ke.splice(0,je-1),Oe=yt-1,yt=1),{digits:Ke,exponent:Oe,integerLen:yt}}(ve);mn&&(Kr=function Dn(ve){if(0===ve.digits[0])return ve;const Ue=ve.digits.length-ve.integerLen;return ve.exponent?ve.exponent+=2:(0===Ue?ve.digits.push(0,0):1===Ue&&ve.digits.push(0),ve.integerLen+=2),ve}(Kr));let Pr=Ue.minInt,ir=Ue.minFrac,hi=Ue.maxFrac;if(sn){const co=sn.match(ht);if(null===co)throw new Error(`${sn} is not a valid digit info`);const Ei=co[1],xr=co[3],oo=co[5];null!=Ei&&(Pr=Rn(Ei)),null!=xr&&(ir=Rn(xr)),null!=oo?hi=Rn(oo):null!=xr&&ir>hi&&(hi=ir)}!function Nn(ve,Ue,Oe){if(Ue>Oe)throw new Error(`The minimum number of digits after fraction (${Ue}) is higher than the maximum (${Oe}).`);let Ke=ve.digits,yt=Ke.length-ve.integerLen;const sn=Math.min(Math.max(Ue,yt),Oe);let mn=sn+ve.integerLen,xn=Ke[mn];if(mn>0){Ke.splice(Math.max(ve.integerLen,mn));for(let ir=mn;ir<Ke.length;ir++)Ke[ir]=0}else{yt=Math.max(0,yt),ve.integerLen=1,Ke.length=Math.max(1,mn=sn+1),Ke[0]=0;for(let ir=1;ir<mn;ir++)Ke[ir]=0}if(xn>=5)if(mn-1<0){for(let ir=0;ir>mn;ir--)Ke.unshift(0),ve.integerLen++;Ke.unshift(1),ve.integerLen++}else Ke[mn-1]++;for(;yt<Math.max(0,sn);yt++)Ke.push(0);let Zr=0!==sn;const Kr=Ue+ve.integerLen,Pr=Ke.reduceRight(function(ir,hi,$r,vi){return vi[$r]=(hi+=ir)<10?hi:hi-10,Zr&&(0===vi[$r]&&$r>=Kr?vi.pop():Zr=!1),hi>=10?1:0},0);Pr&&(Ke.unshift(Pr),ve.integerLen++)}(Kr,ir,hi);let $r=Kr.digits,vi=Kr.integerLen;const Qo=Kr.exponent;let io=[];for(Zr=$r.every(co=>!co);vi<Pr;vi++)$r.unshift(0);for(;vi<0;vi++)$r.unshift(0);vi>0?io=$r.splice(vi,$r.length):(io=$r,$r=[0]);const br=[];for($r.length>=Ue.lgSize&&br.unshift($r.splice(-Ue.lgSize,$r.length).join(""));$r.length>Ue.gSize;)br.unshift($r.splice(-Ue.gSize,$r.length).join(""));$r.length&&br.unshift($r.join("")),xn=br.join(Ee(Oe,Ke)),io.length&&(xn+=Ee(Oe,yt)+io.join("")),Qo&&(xn+=Ee(Oe,ae.Exponential)+"+"+Qo)}else xn=Ee(Oe,ae.Infinity);return xn=ve<0&&!Zr?Ue.negPre+xn+Ue.negSuf:Ue.posPre+xn+Ue.posSuf,xn}(ve,function cn(ve,Ue="-"){const Oe={minInt:1,minFrac:0,maxFrac:0,posPre:"",posSuf:"",negPre:"",negSuf:"",gSize:0,lgSize:0},Ke=ve.split(We),yt=Ke[0],sn=Ke[1],mn=-1!==yt.indexOf(vt)?yt.split(vt):[yt.substring(0,yt.lastIndexOf(Zt)+1),yt.substring(yt.lastIndexOf(Zt)+1)],xn=mn[0],Zr=mn[1]||"";Oe.posPre=xn.substring(0,xn.indexOf(ze));for(let Pr=0;Pr<Zr.length;Pr++){const ir=Zr.charAt(Pr);ir===Zt?Oe.minFrac=Oe.maxFrac=Pr+1:ir===ze?Oe.maxFrac=Pr+1:Oe.posSuf+=ir}const Kr=xn.split(Ne);if(Oe.gSize=Kr[1]?Kr[1].length:0,Oe.lgSize=Kr[2]||Kr[1]?(Kr[2]||Kr[1]).length:0,sn){const Pr=yt.length-Oe.posPre.length-Oe.posSuf.length,ir=sn.indexOf(ze);Oe.negPre=sn.substring(0,ir).replace(/'/g,""),Oe.negSuf=sn.slice(ir+Pr).replace(/'/g,"")}else Oe.negPre=Ue+Oe.posPre,Oe.negSuf=Oe.posSuf;return Oe}(function Ae(ve,Ue){return(0,t.\u0275findLocaleData)(ve)[t.\u0275LocaleDataIndex.NumberFormats][Ue]}(Ue,Y.Decimal),Ee(Ue,ae.MinusSign)),Ue,ae.Group,ae.Decimal,Oe)}(function to(ve){if("string"==typeof ve&&!isNaN(Number(ve)-parseFloat(ve)))return Number(ve);if("number"!=typeof ve)throw new Error(`${ve} is not a number`);return ve}(Oe),yt,Ke)}catch(sn){throw An()}}}return ve.\u0275fac=function(Oe){return new(Oe||ve)(t.\u0275\u0275directiveInject(t.LOCALE_ID,16))},ve.\u0275pipe=t.\u0275\u0275definePipe({name:"number",type:ve,pure:!0,standalone:!0}),ve})();let Co=(()=>{class ve{}return ve.\u0275fac=function(Oe){return new(Oe||ve)},ve.\u0275mod=t.\u0275\u0275defineNgModule({type:ve}),ve.\u0275inj=t.\u0275\u0275defineInjector({}),ve})();const Po="browser",fo="server";function _n(ve){return ve===Po}function Re(ve){return ve===fo}let pr=(()=>{class ve{}return ve.\u0275prov=(0,t.\u0275\u0275defineInjectable)({token:ve,providedIn:"root",factory:()=>new pi((0,t.\u0275\u0275inject)(r),window)}),ve})();class pi{constructor(Ue,Oe){this.document=Ue,this.window=Oe,this.offset=()=>[0,0]}setOffset(Ue){this.offset=Array.isArray(Ue)?()=>Ue:Ue}getScrollPosition(){return this.supportsScrolling()?[this.window.pageXOffset,this.window.pageYOffset]:[0,0]}scrollToPosition(Ue){this.supportsScrolling()&&this.window.scrollTo(Ue[0],Ue[1])}scrollToAnchor(Ue){if(!this.supportsScrolling())return;const Oe=function bi(ve,Ue){const Oe=ve.getElementById(Ue)||ve.getElementsByName(Ue)[0];if(Oe)return Oe;if("function"==typeof ve.createTreeWalker&&ve.body&&(ve.body.createShadowRoot||ve.body.attachShadow)){const Ke=ve.createTreeWalker(ve.body,NodeFilter.SHOW_ELEMENT);let yt=Ke.currentNode;for(;yt;){const sn=yt.shadowRoot;if(sn){const mn=sn.getElementById(Ue)||sn.querySelector(`[name="${Ue}"]`);if(mn)return mn}yt=Ke.nextNode()}}return null}(this.document,Ue);Oe&&(this.scrollToElement(Oe),Oe.focus())}setHistoryScrollRestoration(Ue){if(this.supportScrollRestoration()){const Oe=this.window.history;Oe&&Oe.scrollRestoration&&(Oe.scrollRestoration=Ue)}}scrollToElement(Ue){const Oe=Ue.getBoundingClientRect(),Ke=Oe.left+this.window.pageXOffset,yt=Oe.top+this.window.pageYOffset,sn=this.offset();this.window.scrollTo(Ke-sn[0],yt-sn[1])}supportScrollRestoration(){try{if(!this.supportsScrolling())return!1;const Ue=xi(this.window.history)||xi(Object.getPrototypeOf(this.window.history));return!(!Ue||!Ue.writable&&!Ue.set)}catch{return!1}}supportsScrolling(){try{return!!this.window&&!!this.window.scrollTo&&"pageXOffset"in this.window}catch{return!1}}}function xi(ve){return Object.getOwnPropertyDescriptor(ve,"scrollRestoration")}class Fi{}},80529:(R,c,e)=>{"use strict";e.d(c,{JF:()=>St,LE:()=>D,TP:()=>ne,UA:()=>ae,WM:()=>m,YS:()=>At,Zn:()=>ee,eN:()=>j});var t=e(36895),n=e(94650),o=e(39646),i=e(69751),d=e(24351),r=e(39300),a=e(54004);class p{}class h{}class m{constructor(xe){this.normalizedNames=new Map,this.lazyUpdate=null,xe?this.lazyInit="string"==typeof xe?()=>{this.headers=new Map,xe.split("\n").forEach(Le=>{const qe=Le.indexOf(":");if(qe>0){const at=Le.slice(0,qe),Jt=at.toLowerCase(),$t=Le.slice(qe+1).trim();this.maybeSetNormalizedName(at,Jt),this.headers.has(Jt)?this.headers.get(Jt).push($t):this.headers.set(Jt,[$t])}})}:()=>{this.headers=new Map,Object.entries(xe).forEach(([Le,qe])=>{let at;if(at="string"==typeof qe?[qe]:"number"==typeof qe?[qe.toString()]:qe.map(Jt=>Jt.toString()),at.length>0){const Jt=Le.toLowerCase();this.headers.set(Jt,at),this.maybeSetNormalizedName(Le,Jt)}})}:this.headers=new Map}has(xe){return this.init(),this.headers.has(xe.toLowerCase())}get(xe){this.init();const Le=this.headers.get(xe.toLowerCase());return Le&&Le.length>0?Le[0]:null}keys(){return this.init(),Array.from(this.normalizedNames.values())}getAll(xe){return this.init(),this.headers.get(xe.toLowerCase())||null}append(xe,Le){return this.clone({name:xe,value:Le,op:"a"})}set(xe,Le){return this.clone({name:xe,value:Le,op:"s"})}delete(xe,Le){return this.clone({name:xe,value:Le,op:"d"})}maybeSetNormalizedName(xe,Le){this.normalizedNames.has(Le)||this.normalizedNames.set(Le,xe)}init(){this.lazyInit&&(this.lazyInit instanceof m?this.copyFrom(this.lazyInit):this.lazyInit(),this.lazyInit=null,this.lazyUpdate&&(this.lazyUpdate.forEach(xe=>this.applyUpdate(xe)),this.lazyUpdate=null))}
1copyFrom(xe){xe.init(),Array.from(xe.headers.keys()).forEach(Le=>{this.headers.set(Le,xe.headers.get(Le)),this.normalizedNames.set(Le,xe.normalizedNames.get(Le))})}clone(xe){const Le=new m;return Le.lazyInit=this.lazyInit&&this.lazyInit instanceof m?this.lazyInit:this,Le.lazyUpdate=(this.lazyUpdate||[]).concat([xe]),Le}applyUpdate(xe){const Le=xe.name.toLowerCase();switch(xe.op){case"a":case"s":let qe=xe.value;if("string"==typeof qe&&(qe=[qe]),0===qe.length)return;this.maybeSetNormalizedName(xe.name,Le);const at=("a"===xe.op?this.headers.get(Le):void 0)||[];at.push(...qe),this.headers.set(Le,at);break;case"d":const Jt=xe.value;if(Jt){let $t=this.headers.get(Le);if(!$t)return;$t=$t.filter(rn=>-1===Jt.indexOf(rn)),0===$t.length?(this.headers.delete(Le),this.normalizedNames.delete(Le)):this.headers.set(Le,$t)}else this.headers.delete(Le),this.normalizedNames.delete(Le)}}forEach(xe){this.init(),Array.from(this.normalizedNames.keys()).forEach(Le=>xe(this.normalizedNames.get(Le),this.headers.get(Le)))}}class v{encodeKey(xe){return M(xe)}encodeValue(xe){return M(xe)}decodeKey(xe){return decodeURIComponent(xe)}decodeValue(xe){return decodeURIComponent(xe)}}const O=/%(\d[a-f0-9])/gi,b={40:"@","3A":":",24:"$","2C":",","3B":";","3D":"=","3F":"?","2F":"/"};function M(st){return encodeURIComponent(st).replace(O,(xe,Le)=>b[Le]??xe)}function P(st){return`${st}`}class D{constructor(xe={}){if(this.updates=null,this.cloneFrom=null,this.encoder=xe.encoder||new v,xe.fromString){if(xe.fromObject)throw new Error("Cannot specify both fromString and fromObject.");this.map=function E(st,xe){const Le=new Map;return st.length>0&&st.replace(/^\?/,"").split("&").forEach(at=>{const Jt=at.indexOf("="),[$t,rn]=-1==Jt?[xe.decodeKey(at),""]:[xe.decodeKey(at.slice(0,Jt)),xe.decodeValue(at.slice(Jt+1))],Wt=Le.get($t)||[];Wt.push(rn),Le.set($t,Wt)}),Le}(xe.fromString,this.encoder)}else xe.fromObject?(this.map=new Map,Object.keys(xe.fromObject).forEach(Le=>{const qe=xe.fromObject[Le],at=Array.isArray(qe)?qe.map(P):[P(qe)];this.map.set(Le,at)})):this.map=null}has(xe){return this.init(),this.map.has(xe)}get(xe){this.init();const Le=this.map.get(xe);return Le?Le[0]:null}getAll(xe){return this.init(),this.map.get(xe)||null}keys(){return this.init(),Array.from(this.map.keys())}append(xe,Le){return this.clone({param:xe,value:Le,op:"a"})}appendAll(xe){const Le=[];return Object.keys(xe).forEach(qe=>{const at=xe[qe];Array.isArray(at)?at.forEach(Jt=>{Le.push({param:qe,value:Jt,op:"a"})}):Le.push({param:qe,value:at,op:"a"})}),this.clone(Le)}set(xe,Le){return this.clone({param:xe,value:Le,op:"s"})}delete(xe,Le){return this.clone({param:xe,value:Le,op:"d"})}toString(){return this.init(),this.keys().map(xe=>{const Le=this.encoder.encodeKey(xe);return this.map.get(xe).map(qe=>Le+"="+this.encoder.encodeValue(qe)).join("&")}).filter(xe=>""!==xe).join("&")}clone(xe){const Le=new D({encoder:this.encoder});return Le.cloneFrom=this.cloneFrom||this,Le.updates=(this.updates||[]).concat(xe),Le}init(){null===this.map&&(this.map=new Map),null!==this.cloneFrom&&(this.cloneFrom.init(),this.cloneFrom.keys().forEach(xe=>this.map.set(xe,this.cloneFrom.map.get(xe))),this.updates.forEach(xe=>{switch(xe.op){case"a":case"s":const Le=("a"===xe.op?this.map.get(xe.param):void 0)||[];Le.push(P(xe.value)),this.map.set(xe.param,Le);break;case"d":if(void 0===xe.value){this.map.delete(xe.param);break}{let qe=this.map.get(xe.param)||[];const at=qe.indexOf(P(xe.value));-1!==at&&qe.splice(at,1),qe.length>0?this.map.set(xe.param,qe):this.map.delete(xe.param)}}}),this.cloneFrom=this.updates=null)}}class C{constructor(){this.map=new Map}set(xe,Le){return this.map.set(xe,Le),this}get(xe){return this.map.has(xe)||this.map.set(xe,xe.defaultValue()),this.map.get(xe)}delete(xe){return this.map.delete(xe),this}has(xe){return this.map.has(xe)}keys(){return this.map.keys()}}function g(st){return typeof ArrayBuffer<"u"&&st instanceof ArrayBuffer}function B(st){return typeof Blob<"u"&&st instanceof Blob}function L(st){return typeof FormData<"u"&&st instanceof FormData}class Y{constructor(xe,Le,qe,at){let Jt;if(this.url=Le,this.body=null,this.reportProgress=!1,this.withCredentials=!1,this.responseType="json",this.method=xe.toUpperCase(),function I(st){switch(st){case"DELETE":case"GET":case"HEAD":case"OPTIONS":case"JSONP":return!1;default:return!0}}(this.method)||at?(this.body=void 0!==qe?qe:null,Jt=at):Jt=qe,Jt&&(this.reportProgress=!!Jt.reportProgress,this.withCredentials=!!Jt.withCredentials,Jt.responseType&&(this.responseType=Jt.responseType),Jt.headers&&(this.headers=Jt.headers),Jt.context&&(this.context=Jt.context),Jt.params&&(this.params=Jt.params)),this.headers||(this.headers=new m),this.context||(this.context=new C),this.params){const $t=this.params.toString();if(0===$t.length)this.urlWithParams=Le;else{const rn=Le.indexOf("?");this.urlWithParams=Le+(-1===rn?"?":rn<Le.length-1?"&":"")+$t}}else this.params=new D,this.urlWithParams=Le}serializeBody(){return null===this.body?null:g(this.body)||B(this.body)||L(this.body)||function V(st){return typeof URLSearchParams<"u"&&st instanceof URLSearchParams}(this.body)||"string"==typeof this.body?this.body:this.body instanceof D?this.body.toString():"object"==typeof this.body||"boolean"==typeof this.body||Array.isArray(this.body)?JSON.stringify(this.body):this.body.toString()}detectContentTypeHeader(){return null===this.body||L(this.body)?null:B(this.body)?this.body.type||null:g(this.body)?null:"string"==typeof this.body?"text/plain":this.body instanceof D?"application/x-www-form-urlencoded;charset=UTF-8":"object"==typeof this.body||"number"==typeof this.body||"boolean"==typeof this.body?"application/json":null}
1clone(xe={}){const Le=xe.method||this.method,qe=xe.url||this.url,at=xe.responseType||this.responseType,Jt=void 0!==xe.body?xe.body:this.body,$t=void 0!==xe.withCredentials?xe.withCredentials:this.withCredentials,rn=void 0!==xe.reportProgress?xe.reportProgress:this.reportProgress;let Wt=xe.headers||this.headers,qt=xe.params||this.params;const un=xe.context??this.context;return void 0!==xe.setHeaders&&(Wt=Object.keys(xe.setHeaders).reduce((dt,ht)=>dt.set(ht,xe.setHeaders[ht]),Wt)),xe.setParams&&(qt=Object.keys(xe.setParams).reduce((dt,ht)=>dt.set(ht,xe.setParams[ht]),qt)),new Y(Le,qe,Jt,{params:qt,headers:Wt,context:un,reportProgress:rn,responseType:at,withCredentials:$t})}}var X=(()=>((X=X||{})[X.Sent=0]="Sent",X[X.UploadProgress=1]="UploadProgress",X[X.ResponseHeader=2]="ResponseHeader",X[X.DownloadProgress=3]="DownloadProgress",X[X.Response=4]="Response",X[X.User=5]="User",X))();class te{constructor(xe,Le=200,qe="OK"){this.headers=xe.headers||new m,this.status=void 0!==xe.status?xe.status:Le,this.statusText=xe.statusText||qe,this.url=xe.url||null,this.ok=this.status>=200&&this.status<300}}class K extends te{constructor(xe={}){super(xe),this.type=X.ResponseHeader}clone(xe={}){return new K({headers:xe.headers||this.headers,status:void 0!==xe.status?xe.status:this.status,statusText:xe.statusText||this.statusText,url:xe.url||this.url||void 0})}}class ee extends te{constructor(xe={}){super(xe),this.type=X.Response,this.body=void 0!==xe.body?xe.body:null}clone(xe={}){return new ee({body:void 0!==xe.body?xe.body:this.body,headers:xe.headers||this.headers,status:void 0!==xe.status?xe.status:this.status,statusText:xe.statusText||this.statusText,url:xe.url||this.url||void 0})}}class ae extends te{constructor(xe){super(xe,0,"Unknown Error"),this.name="HttpErrorResponse",this.ok=!1,this.message=this.status>=200&&this.status<300?`Http failure during parsing for ${xe.url||"(unknown url)"}`:`Http failure response for ${xe.url||"(unknown url)"}: ${xe.status} ${xe.statusText}`,this.error=xe.error||null}}function Q(st,xe){return{body:xe,headers:st.headers,context:st.context,observe:st.observe,params:st.params,reportProgress:st.reportProgress,responseType:st.responseType,withCredentials:st.withCredentials}}let j=(()=>{class st{constructor(Le){this.handler=Le}request(Le,qe,at={}){let Jt;if(Le instanceof Y)Jt=Le;else{let Wt,qt;Wt=at.headers instanceof m?at.headers:new m(at.headers),at.params&&(qt=at.params instanceof D?at.params:new D({fromObject:at.params})),Jt=new Y(Le,qe,void 0!==at.body?at.body:null,{headers:Wt,context:at.context,params:qt,reportProgress:at.reportProgress,responseType:at.responseType||"json",withCredentials:at.withCredentials})}const $t=(0,o.of)(Jt).pipe((0,d.b)(Wt=>this.handler.handle(Wt)));if(Le instanceof Y||"events"===at.observe)return $t;const rn=$t.pipe((0,r.h)(Wt=>Wt instanceof ee));switch(at.observe||"body"){case"body":switch(Jt.responseType){case"arraybuffer":return rn.pipe((0,a.U)(Wt=>{if(null!==Wt.body&&!(Wt.body instanceof ArrayBuffer))throw new Error("Response is not an ArrayBuffer.");return Wt.body}));case"blob":return rn.pipe((0,a.U)(Wt=>{if(null!==Wt.body&&!(Wt.body instanceof Blob))throw new Error("Response is not a Blob.");return Wt.body}));case"text":return rn.pipe((0,a.U)(Wt=>{if(null!==Wt.body&&"string"!=typeof Wt.body)throw new Error("Response is not a string.");return Wt.body}));default:return rn.pipe((0,a.U)(Wt=>Wt.body))}case"response":return rn;default:throw new Error(`Unreachable: unhandled observe type ${at.observe}}`)}}delete(Le,qe={}){return this.request("DELETE",Le,qe)}get(Le,qe={}){return this.request("GET",Le,qe)}head(Le,qe={}){return this.request("HEAD",Le,qe)}jsonp(Le,qe){return this.request("JSONP",Le,{params:(new D).append(qe,"JSONP_CALLBACK"),observe:"body",responseType:"json"})}options(Le,qe={}){return this.request("OPTIONS",Le,qe)}patch(Le,qe,at={}){return this.request("PATCH",Le,Q(at,qe))}post(Le,qe,at={}){return this.request("POST",Le,Q(at,qe))}put(Le,qe,at={}){return this.request("PUT",Le,Q(at,qe))}}return st.\u0275fac=function(Le){return new(Le||st)(n.\u0275\u0275inject(p))},st.\u0275prov=n.\u0275\u0275defineInjectable({token:st,factory:st.\u0275fac}),st})();function k(st,xe){return xe(st)}function G(st,xe){return(Le,qe)=>xe.intercept(Le,{handle:at=>st(at,qe)})}const ne=new n.InjectionToken("HTTP_INTERCEPTORS"),q=new n.InjectionToken("HTTP_INTERCEPTOR_FNS");function oe(){let st=null;return(xe,Le)=>(null===st&&(st=((0,n.inject)(ne,{optional:!0})??[]).reduceRight(G,k)),st(xe,Le))}let ce=(()=>{class st extends p{constructor(Le,qe){super(),this.backend=Le,this.injector=qe,this.chain=null}handle(Le){if(null===this.chain){const qe=Array.from(new Set(this.injector.get(q)));this.chain=qe.reduceRight((at,Jt)=>function ie(st,xe,Le){return(qe,at)=>Le.runInContext(()=>xe(qe,Jt=>st(Jt,at)))}(at,Jt,this.injector),k)}return this.chain(Le,qe=>this.backend.handle(qe))}}return st.\u0275fac=function(Le){return new(Le||st)(n.\u0275\u0275inject(h),n.\u0275\u0275inject(n.EnvironmentInjector))},st.\u0275prov=n.\u0275\u0275defineInjectable({token:st,factory:st.\u0275fac}),st})();const Mt=/^\)\]\}',?\n/;let nt=(()=>{class st{constructor(Le){this.xhrFactory=Le}handle(Le){if("JSONP"===Le.method)throw new Error("Attempted to construct Jsonp request without HttpClientJsonpModule installed.");return new i.y(qe=>{const at=this.xhrFactory.build();if(at.open(Le.method,Le.urlWithParams),Le.withCredentials&&(at.withCredentials=!0),Le.headers.forEac
1h((je,vt)=>at.setRequestHeader(je,vt.join(","))),Le.headers.has("Accept")||at.setRequestHeader("Accept","application/json, text/plain, */*"),!Le.headers.has("Content-Type")){const je=Le.detectContentTypeHeader();null!==je&&at.setRequestHeader("Content-Type",je)}if(Le.responseType){const je=Le.responseType.toLowerCase();at.responseType="json"!==je?je:"text"}const Jt=Le.serializeBody();let $t=null;const rn=()=>{if(null!==$t)return $t;const je=at.statusText||"OK",vt=new m(at.getAllResponseHeaders()),Zt=function Yt(st){return"responseURL"in st&&st.responseURL?st.responseURL:/^X-Request-URL:/m.test(st.getAllResponseHeaders())?st.getResponseHeader("X-Request-URL"):null}(at)||Le.url;return $t=new K({headers:vt,status:at.status,statusText:je,url:Zt}),$t},Wt=()=>{let{headers:je,status:vt,statusText:Zt,url:We}=rn(),Ne=null;204!==vt&&(Ne=typeof at.response>"u"?at.responseText:at.response),0===vt&&(vt=Ne?200:0);let ze=vt>=200&&vt<300;if("json"===Le.responseType&&"string"==typeof Ne){const bt=Ne;Ne=Ne.replace(Mt,"");try{Ne=""!==Ne?JSON.parse(Ne):null}catch(En){Ne=bt,ze&&(ze=!1,Ne={error:En,text:Ne})}}ze?(qe.next(new ee({body:Ne,headers:je,status:vt,statusText:Zt,url:We||void 0})),qe.complete()):qe.error(new ae({error:Ne,headers:je,status:vt,statusText:Zt,url:We||void 0}))},qt=je=>{const{url:vt}=rn(),Zt=new ae({error:je,status:at.status||0,statusText:at.statusText||"Unknown Error",url:vt||void 0});qe.error(Zt)};let un=!1;const dt=je=>{un||(qe.next(rn()),un=!0);let vt={type:X.DownloadProgress,loaded:je.loaded};je.lengthComputable&&(vt.total=je.total),"text"===Le.responseType&&at.responseText&&(vt.partialText=at.responseText),qe.next(vt)},ht=je=>{let vt={type:X.UploadProgress,loaded:je.loaded};je.lengthComputable&&(vt.total=je.total),qe.next(vt)};return at.addEventListener("load",Wt),at.addEventListener("error",qt),at.addEventListener("timeout",qt),at.addEventListener("abort",qt),Le.reportProgress&&(at.addEventListener("progress",dt),null!==Jt&&at.upload&&at.upload.addEventListener("progress",ht)),at.send(Jt),qe.next({type:X.Sent}),()=>{at.removeEventListener("error",qt),at.removeEventListener("abort",qt),at.removeEventListener("load",Wt),at.removeEventListener("timeout",qt),Le.reportProgress&&(at.removeEventListener("progress",dt),null!==Jt&&at.upload&&at.upload.removeEventListener("progress",ht)),at.readyState!==at.DONE&&at.abort()}})}}return st.\u0275fac=function(Le){return new(Le||st)(n.\u0275\u0275inject(t.JF))},st.\u0275prov=n.\u0275\u0275defineInjectable({token:st,factory:st.\u0275fac}),st})();const mt=new n.InjectionToken("XSRF_ENABLED"),pn=new n.InjectionToken("XSRF_COOKIE_NAME",{providedIn:"root",factory:()=>"XSRF-TOKEN"}),Tt=new n.InjectionToken("XSRF_HEADER_NAME",{providedIn:"root",factory:()=>"X-XSRF-TOKEN"});class At{}let Rt=(()=>{class st{constructor(Le,qe,at){this.doc=Le,this.platform=qe,this.cookieName=at,this.lastCookieString="",this.lastToken=null,this.parseCount=0}getToken(){if("server"===this.platform)return null;const Le=this.doc.cookie||"";return Le!==this.lastCookieString&&(this.parseCount++,this.lastToken=(0,t.Mx)(Le,this.cookieName),this.lastCookieString=Le),this.lastToken}}return st.\u0275fac=function(Le){return new(Le||st)(n.\u0275\u0275inject(t.K0),n.\u0275\u0275inject(n.PLATFORM_ID),n.\u0275\u0275inject(pn))},st.\u0275prov=n.\u0275\u0275defineInjectable({token:st,factory:st.\u0275fac}),st})();function Pt(st,xe){const Le=st.url.toLowerCase();if(!(0,n.inject)(mt)||"GET"===st.method||"HEAD"===st.method||Le.startsWith("http://")||Le.startsWith("https://"))return xe(st);const qe=(0,n.inject)(At).getToken(),at=(0,n.inject)(Tt);return null!=qe&&!st.headers.has(at)&&(st=st.clone({headers:st.headers.set(at,qe)})),xe(st)}var lt=(()=>((lt=lt||{})[lt.Interceptors=0]="Interceptors",lt[lt.LegacyInterceptors=1]="LegacyInterceptors",lt[lt.CustomXsrfConfiguration=2]="CustomXsrfConfiguration",lt[lt.NoXsrfProtection=3]="NoXsrfProtection",lt[lt.JsonpSupport=4]="JsonpSupport",lt[lt.RequestsMadeViaParent=5]="RequestsMadeViaParent",lt))();function Ut(st,xe){return{\u0275kind:st,\u0275providers:xe}}function ke(...st){const xe=[j,nt,ce,{provide:p,useExisting:ce},{provide:h,useExisting:nt},{provide:q,useValue:Pt,multi:!0},{provide:mt,useValue:!0},{provide:At,useClass:Rt}];for(const Le of st)xe.push(...Le.\u0275providers);return(0,n.makeEnvironmentProviders)(xe)}const gt=new n.InjectionToken("LEGACY_INTERCEPTOR_FN");let St=(()=>{class st{}return st.\u0275fac=function(Le){return new(Le||st)},st.\u0275mod=n.\u0275\u0275defineNgModule({type:st}),st.\u0275inj=n.\u0275\u0275defineInjector({providers:[ke(Ut(lt.LegacyInterceptors,[{provide:gt,useFactory:oe},{provide:q,useExisting:gt,multi:!0}]))]}),st})()},94650:(R,c,e)=>{"use strict";e.r(c),e.d(c,{ANALYZE_FOR_ENTRY_COMPONENTS:()=>Bs,ANIMATION_MODULE_TYPE:()=>nC,APP_BOOTSTRAP_LISTENER:()=>fv,APP_ID:()=>ev,APP_INITIALIZER:()=>qg,ApplicationInitStatus:()=>Mu,ApplicationModule:()=>kC,ApplicationRef:()=>Su,Attribute:()=>ys,COMPILER_OPTIONS:()=>iv,CUSTOM_ELEMENTS_SCHEMA:()=>Ua,ChangeDetectionStrategy:()=>rn,ChangeDetectorRef:()=>Iv,Compiler:()=>lC,CompilerFactory:()=>cC,Component:()=>z1,ComponentFactory:()=>Yd,ComponentFactoryResolver:()=>nd,ComponentRef:()=>Cf,ContentChild:()=>Ra,ContentChildren:()=>No,DEFAULT_CURRENCY_CODE:()=>oC,DebugElement:()=>vd,DebugEventListener:()=>TC,DebugNode:()=>nf,DefaultIterableDiffer:()=>Bv,Directive:()=>Jg,ENVIRONMENT_INITIALIZER:()=>Hu,ElementRef:()=>rd,EmbeddedViewRef:()=>IC,EnvironmentInjector:()=>Ul,ErrorHandler:()=>id,EventEmitter:()=>rl,Host:()=>Ia,HostBinding:()=>X1,HostListener:()=>Z1,INJECTOR:()=>ku,Inject:()=>La,InjectFlags:()=>mt,Injectable:()=>ME,InjectionToken:()=>Gr,Injector:()=>vl,Input:()=>Y1,IterableDiffers:()=>cf,KeyValueDiffers:()=>df,LOCALE_ID:()=>Pu,MissingTranslationStrategy:()=>il,ModuleWithComponentFactories:()=>
1rv,NO_ERRORS_SCHEMA:()=>$l,NgModule:()=>J1,NgModuleFactory:()=>K_,NgModuleRef:()=>Ic,NgProbeToken:()=>vC,NgZone:()=>$a,Optional:()=>ba,Output:()=>Q1,PACKAGE_ROOT_URL:()=>tC,PLATFORM_ID:()=>eC,PLATFORM_INITIALIZER:()=>nv,Pipe:()=>G1,PlatformRef:()=>tf,Query:()=>ps,QueryList:()=>Eu,ReflectiveInjector:()=>pc,ReflectiveKey:()=>pl,Renderer2:()=>qv,RendererFactory2:()=>Of,RendererStyleFlags2:()=>ca,ResolvedReflectiveFactory:()=>kf,Sanitizer:()=>Mf,SecurityContext:()=>di,Self:()=>la,SimpleChange:()=>jt,SkipSelf:()=>Sa,TRANSLATIONS:()=>sC,TRANSLATIONS_FORMAT:()=>aC,TemplateRef:()=>_d,Testability:()=>gC,TestabilityRegistry:()=>pv,Type:()=>N,VERSION:()=>bf,Version:()=>Pf,ViewChild:()=>ts,ViewChildren:()=>Oa,ViewContainerRef:()=>Cu,ViewEncapsulation:()=>Wt,ViewRef:()=>Av,asNativeElements:()=>AC,assertPlatform:()=>yv,createComponent:()=>nD,createEnvironmentInjector:()=>Rh,createNgModule:()=>V_,createNgModuleRef:()=>s1,createPlatform:()=>gv,createPlatformFactory:()=>Ev,defineInjectable:()=>Ae,destroyPlatform:()=>CC,enableProdMode:()=>MC,forwardRef:()=>_,getDebugNode:()=>Ac,getModuleFactory:()=>PC,getNgModuleById:()=>bC,getPlatform:()=>bu,importProvidersFrom:()=>ff,inject:()=>Xt,isDevMode:()=>OC,isStandalone:()=>Jn,makeEnvironmentProviders:()=>Wv,platformCore:()=>HC,reflectComponentType:()=>rD,resolveForwardRef:()=>v,setTestabilityGetter:()=>hv,\u0275ALLOW_MULTIPLE_PLATFORMS:()=>qh,\u0275APP_ID_RANDOM_PROVIDER:()=>q1,\u0275ComponentFactory:()=>Yd,\u0275Console:()=>rC,\u0275DEFAULT_LOCALE_ID:()=>jl,\u0275INJECTOR_SCOPE:()=>Qu,\u0275LContext:()=>Xl,\u0275LifecycleHooksFeature:()=>pm,\u0275LocaleDataIndex:()=>Br,\u0275NG_COMP_DEF:()=>dt,\u0275NG_DIR_DEF:()=>ht,\u0275NG_ELEMENT_ID:()=>We,\u0275NG_INJ_DEF:()=>Mt,\u0275NG_MOD_DEF:()=>vt,\u0275NG_PIPE_DEF:()=>je,\u0275NG_PROV_DEF:()=>pt,\u0275NOT_FOUND_CHECK_ONLY_ELEMENT_INJECTOR:()=>Qd,\u0275NO_CHANGE:()=>Hr,\u0275NgModuleFactory:()=>vu,\u0275NoopNgZone:()=>cv,\u0275ReflectionCapabilities:()=>ws,\u0275Render3ComponentFactory:()=>_c,\u0275Render3ComponentRef:()=>um,\u0275Render3NgModuleRef:()=>Ah,\u0275RuntimeError:()=>P,\u0275TESTABILITY:()=>dv,\u0275TESTABILITY_GETTER:()=>uv,\u0275ViewRef:()=>mc,\u0275XSS_SECURITY_URL:()=>M,\u0275_sanitizeHtml:()=>Or,\u0275_sanitizeUrl:()=>yr,\u0275allowSanitizationBypassAndThrow:()=>z,\u0275bypassSanitizationTrustHtml:()=>ue,\u0275bypassSanitizationTrustResourceUrl:()=>Ct,\u0275bypassSanitizationTrustScript:()=>He,\u0275bypassSanitizationTrustStyle:()=>Se,\u0275bypassSanitizationTrustUrl:()=>ct,\u0275clearResolutionOfComponentResourcesQueue:()=>Ot,\u0275coerceToBoolean:()=>zC,\u0275compileComponent:()=>Wg,\u0275compileDirective:()=>Gh,\u0275compileNgModule:()=>Bg,\u0275compileNgModuleDefs:()=>Ug,\u0275compileNgModuleFactory:()=>mv,\u0275compilePipe:()=>Xg,\u0275convertToBitFlags:()=>st,\u0275createInjector:()=>tp,\u0275defaultIterableDiffers:()=>VC,\u0275defaultKeyValueDiffers:()=>$C,\u0275detectChanges:()=>ym,\u0275devModeEqual:()=>Em,\u0275findLocaleData:()=>Eh,\u0275flushModuleScopingQueueAsMuchAsPossible:()=>xg,\u0275formatRuntimeError:()=>D,\u0275getDebugNode:()=>Ac,\u0275getDebugNodeR2:()=>BC,\u0275getDirectives:()=>Y_,\u0275getHostElement:()=>Lh,\u0275getInjectableDef:()=>_t,\u0275getLContext:()=>Fs,\u0275getLocaleCurrencyCode:()=>cy,\u0275getLocalePluralCase:()=>p_,\u0275getSanitizationBypassType:()=>F,\u0275getUnknownElementStrictMode:()=>xc,\u0275getUnknownPropertyStrictMode:()=>Ed,\u0275global:()=>Rt,\u0275injectChangeDetectorRef:()=>Tv,\u0275internalCreateApplication:()=>yC,\u0275isBoundToModule:()=>_v,\u0275isEnvironmentProviders:()=>O,\u0275isInjectable:()=>It,\u0275isNgModule:()=>Kh,\u0275isObservable:()=>bm,\u0275isPromise:()=>Up,\u0275isSubscribable:()=>Pm,\u0275makeDecorator:()=>Fo,\u0275noSideEffects:()=>$t,\u0275patchComponentDefWithScope:()=>kh,\u0275publishDefaultGlobalUtils:()=>uC,\u0275publishGlobalUtil:()=>Va,\u0275registerLocaleData:()=>ly,\u0275resetCompiledComponents:()=>B1,\u0275resetJitOptions:()=>R1,\u0275resolveComponentResources:()=>rt,\u0275setAllowDuplicateNgModuleIdsForTest:()=>Cl,\u0275setClassMetadata:()=>X_,\u0275setCurrentInjector:()=>Dt,\u0275setDocument:()=>Ud,\u0275setLocaleId:()=>yh,\u0275setUnknownElementStrictMode:()=>Rc,\u0275setUnknownPropertyStrictMode:()=>Dl,\u0275store:()=>Dm,\u0275stringify:()=>p,\u0275transitiveScopesFor:()=>Wl,\u0275unregisterLocaleData:()=>dy,\u0275unwrapSafeValue:()=>he,\u0275\u0275CopyDefinitionFeature:()=>fm,\u0275\u0275FactoryTarget:()=>$e,\u0275\u0275HostDirectivesFeature:()=>mm,\u0275\u0275InheritDefinitionFeature:()=>vp,\u0275\u0275NgOnChangesFeature:()=>Pn,\u0275\u0275ProvidersFeature:()=>W_,\u0275\u0275StandaloneFeature:()=>$_,\u0275\u0275advance:()=>wf,\u0275\u0275attribute:()=>Cp,\u0275\u0275attributeInterpolate1:()=>Dp,\u0275\u0275attributeInterpolate2:()=>Op,\u0275\u0275attributeInterpolate3:()=>Mp,\u0275\u0275attributeInterpolate4:()=>Pp,\u0275\u0275attributeInterpolate5:()=>bp,\u0275\u0275attributeInterpolate6:()=>Sp,\u0275\u0275attributeInterpolate7:()=>Ip,\u0275\u0275attributeInterpolate8:()=>Tp,\u0275\u0275attributeInterpolateV:()=>Ap,\u0275\u0275classMap:()=>Wm,\u0275\u0275classMapInterpolate1:()=>Ym,\u0275\u0275classMapInterpolate2:()=>Qm,\u0275\u0275classMapInterpolate3:()=>Xm,\u0275\u0275classMapInterpolate4:()=>Zm,\u0275\u0275classMapInterpolate5:()=>Jm,\u0275\u0275classMapInterpolate6:()=>qm,\u0275\u0275classMapInterpolate7:()=>e_,\u0275\u0275classMapInterpolate8:()=>t_,\u0275\u0275classMapInterpolateV:()=>n_,\u0275\u0275classProp:()=>Zp,\u0275\u0275contentQuery:()=>Pg,\u0275\u0275defineComponent:()=>ze,\u0275\u0275defineDirective:()=>cn,\u0275\u0275defineInjectable:()=>Ee,\u0275\u0275defineInjector:()=>Je,\u0275\u0275defineNgModule:()=>nr,\u0275\u0275definePipe:()=>Dn,\u0275\u0275directiveInject:()=>hc,\u0275\u0275disableBindings:()=>On,\u0275\u0275element:()=>Lp,\u0275\u0275elementContainer:()=>Bp,\u0275\u0275elementContainerEnd:()=>cu,\u0275\u0275elementContainerStart:()=>lu,\u0275\u0275elementEnd:()=>au,\u0275\u0275elementStart:()=>su,\u0275\u0275enableBindings:()=>kt,\u0275\u0275getCurrentView:()=>
1Mm,\u0275\u0275getInheritedFactory:()=>sa,\u0275\u0275hostProperty:()=>gh,\u0275\u0275i18n:()=>U_,\u0275\u0275i18nApply:()=>F_,\u0275\u0275i18nAttributes:()=>w_,\u0275\u0275i18nEnd:()=>Mh,\u0275\u0275i18nExp:()=>Ph,\u0275\u0275i18nPostprocess:()=>N_,\u0275\u0275i18nStart:()=>Oh,\u0275\u0275inject:()=>St,\u0275\u0275injectAttribute:()=>As,\u0275\u0275invalidFactory:()=>Qf,\u0275\u0275invalidFactoryDep:()=>wt,\u0275\u0275listener:()=>wp,\u0275\u0275loadQuery:()=>bg,\u0275\u0275namespaceHTML:()=>Gs,\u0275\u0275namespaceMathML:()=>Ps,\u0275\u0275namespaceSVG:()=>Ms,\u0275\u0275nextContext:()=>Am,\u0275\u0275ngDeclareClassMetadata:()=>YC,\u0275\u0275ngDeclareComponent:()=>QC,\u0275\u0275ngDeclareDirective:()=>GC,\u0275\u0275ngDeclareFactory:()=>XC,\u0275\u0275ngDeclareInjectable:()=>JC,\u0275\u0275ngDeclareInjector:()=>qC,\u0275\u0275ngDeclareNgModule:()=>eD,\u0275\u0275ngDeclarePipe:()=>tD,\u0275\u0275pipe:()=>pg,\u0275\u0275pipeBind1:()=>hg,\u0275\u0275pipeBind2:()=>fg,\u0275\u0275pipeBind3:()=>mg,\u0275\u0275pipeBind4:()=>_g,\u0275\u0275pipeBindV:()=>gg,\u0275\u0275projection:()=>xm,\u0275\u0275projectionDef:()=>Rm,\u0275\u0275property:()=>Rp,\u0275\u0275propertyInterpolate:()=>Np,\u0275\u0275propertyInterpolate1:()=>du,\u0275\u0275propertyInterpolate2:()=>jp,\u0275\u0275propertyInterpolate3:()=>Wp,\u0275\u0275propertyInterpolate4:()=>Kp,\u0275\u0275propertyInterpolate5:()=>Vp,\u0275\u0275propertyInterpolate6:()=>$p,\u0275\u0275propertyInterpolate7:()=>Hp,\u0275\u0275propertyInterpolate8:()=>kp,\u0275\u0275propertyInterpolateV:()=>zp,\u0275\u0275pureFunction0:()=>Z_,\u0275\u0275pureFunction1:()=>J_,\u0275\u0275pureFunction2:()=>q_,\u0275\u0275pureFunction3:()=>eg,\u0275\u0275pureFunction4:()=>tg,\u0275\u0275pureFunction5:()=>ng,\u0275\u0275pureFunction6:()=>rg,\u0275\u0275pureFunction7:()=>ig,\u0275\u0275pureFunction8:()=>og,\u0275\u0275pureFunctionV:()=>sg,\u0275\u0275queryRefresh:()=>Og,\u0275\u0275reference:()=>Om,\u0275\u0275registerNgModuleType:()=>Yr,\u0275\u0275resetView:()=>ai,\u0275\u0275resolveBody:()=>Tf,\u0275\u0275resolveDocument:()=>If,\u0275\u0275resolveWindow:()=>Sf,\u0275\u0275restoreView:()=>qr,\u0275\u0275sanitizeHtml:()=>wa,\u0275\u0275sanitizeResourceUrl:()=>Mo,\u0275\u0275sanitizeScript:()=>qc,\u0275\u0275sanitizeStyle:()=>da,\u0275\u0275sanitizeUrl:()=>Wa,\u0275\u0275sanitizeUrlOrResourceUrl:()=>_a,\u0275\u0275setComponentScope:()=>bt,\u0275\u0275setNgModuleScope:()=>Cn,\u0275\u0275styleMap:()=>Ga,\u0275\u0275styleMapInterpolate1:()=>r_,\u0275\u0275styleMapInterpolate2:()=>i_,\u0275\u0275styleMapInterpolate3:()=>o_,\u0275\u0275styleMapInterpolate4:()=>s_,\u0275\u0275styleMapInterpolate5:()=>a_,\u0275\u0275styleMapInterpolate6:()=>l_,\u0275\u0275styleMapInterpolate7:()=>c_,\u0275\u0275styleMapInterpolate8:()=>d_,\u0275\u0275styleMapInterpolateV:()=>u_,\u0275\u0275styleProp:()=>Xp,\u0275\u0275stylePropInterpolate1:()=>lh,\u0275\u0275stylePropInterpolate2:()=>ch,\u0275\u0275stylePropInterpolate3:()=>dh,\u0275\u0275stylePropInterpolate4:()=>uh,\u0275\u0275stylePropInterpolate5:()=>ph,\u0275\u0275stylePropInterpolate6:()=>hh,\u0275\u0275stylePropInterpolate7:()=>fh,\u0275\u0275stylePropInterpolate8:()=>mh,\u0275\u0275stylePropInterpolateV:()=>_h,\u0275\u0275syntheticHostListener:()=>Fp,\u0275\u0275syntheticHostProperty:()=>vh,\u0275\u0275template:()=>Cm,\u0275\u0275templateRefExtractor:()=>Ag,\u0275\u0275text:()=>Gm,\u0275\u0275textInterpolate:()=>qp,\u0275\u0275textInterpolate1:()=>hu,\u0275\u0275textInterpolate2:()=>eh,\u0275\u0275textInterpolate3:()=>th,\u0275\u0275textInterpolate4:()=>nh,\u0275\u0275textInterpolate5:()=>rh,\u0275\u0275textInterpolate6:()=>ih,\u0275\u0275textInterpolate7:()=>oh,\u0275\u0275textInterpolate8:()=>sh,\u0275\u0275textInterpolateV:()=>ah,\u0275\u0275trustConstantHtml:()=>Hd,\u0275\u0275trustConstantResourceUrl:()=>js,\u0275\u0275validateIframeAttribute:()=>Bd,\u0275\u0275viewQuery:()=>Mg});var t=e(77579),n=e(50727),o=e(69751),i=e(56451),d=e(13099);function r(u){for(let f in u)if(u[f]===r)return f;throw Error("Could not find renamed property on target object.")}function a(u,f){for(const y in f)f.hasOwnProperty(y)&&!u.hasOwnProperty(y)&&(u[y]=f[y])}function p(u){if("string"==typeof u)return u;if(Array.isArray(u))return"["+u.map(p).join(", ")+"]";if(null==u)return""+u;if(u.overriddenName)return`${u.overriddenName}`;if(u.name)return`${u.name}`;const f=u.toString();if(null==f)return""+f;const y=f.indexOf("\n");return-1===y?f:f.substring(0,y)}function h(u,f){return null==u||""===u?null===f?"":f:null==f||""===f?u:u+" "+f}const m=r({__forward_ref__:r});function _(u){return u.__forward_ref__=_,u.toString=function(){return p(this())},u}function v(u){return E(u)?u():u}function E(u){return"function"==typeof u&&u.hasOwnProperty(m)&&u.__forward_ref__===_}function O(u){return u&&!!u.\u0275providers}const M="https://g.co/ng/security#xss";
1class P extends Error{constructor(f,y){super(D(f,y)),this.code=f}}function D(u,f){return`NG0${Math.abs(u)}${f?": "+f.trim():""}`}function l(u){return"string"==typeof u?u:null==u?"":String(u)}function C(u){return"function"==typeof u?u.name||u.toString():"object"==typeof u&&null!=u&&"function"==typeof u.type?u.type.name||u.type.toString():l(u)}function L(u,f){throw new P(-201,!1)}function oe(u,f,y,S){throw new Error(`ASSERTION ERROR: ${u}`+(null==S?"":` [Expected=> ${y} ${S} ${f} <=Actual]`))}function Ee(u){return{token:u.token,providedIn:u.providedIn||null,factory:u.factory,value:void 0}}const Ae=Ee;function Je(u){return{providers:u.providers||[],imports:u.imports||[]}}function _t(u){return it(u,pt)||it(u,Yt)}function It(u){return null!==_t(u)}function it(u,f){return u.hasOwnProperty(f)?u[f]:null}function Xe(u){return u&&(u.hasOwnProperty(Mt)||u.hasOwnProperty(nt))?u[Mt]:null}const pt=r({\u0275prov:r}),Mt=r({\u0275inj:r}),Yt=r({ngInjectableDef:r}),nt=r({ngInjectorDef:r});var mt=(()=>((mt=mt||{})[mt.Default=0]="Default",mt[mt.Host=1]="Host",mt[mt.Self=2]="Self",mt[mt.SkipSelf=4]="SkipSelf",mt[mt.Optional=8]="Optional",mt))();let en;function tt(u){const f=en;return en=u,f}function Tt(u,f,y){const S=_t(u);return S&&"root"==S.providedIn?void 0===S.value?S.value=S.factory():S.value:y&mt.Optional?null:void 0!==f?f:void L(p(u))}const Rt=(()=>typeof globalThis<"u"&&globalThis||typeof global<"u"&&global||typeof window<"u"&&window||typeof self<"u"&&typeof WorkerGlobalScope<"u"&&self instanceof WorkerGlobalScope&&self)(),Ut={},ke="__NG_DI_FLAG__",ot="ngTempTokenPath",gt="ngTokenPath",zt=/\n/gm,hn="\u0275",Vt="__source";let $n;function Dt(u){const f=$n;return $n=u,f}function Ft(u,f=mt.Default){if(void 0===$n)throw new P(-203,!1);return null===$n?Tt(u,void 0,f):$n.get(u,f&mt.Optional?null:void 0,f)}function St(u,f=mt.Default){return(function pn(){return en}()||Ft)(v(u),f)}function wt(u){throw new P(202,!1)}function Xt(u,f=mt.Default){return St(u,st(f))}function st(u){return typeof u>"u"||"number"==typeof u?u:0|(u.optional&&8)|(u.host&&1)|(u.self&&2)|(u.skipSelf&&4)}function xe(u){const f=[];for(let y=0;y<u.length;y++){const S=v(u[y]);if(Array.isArray(S)){if(0===S.length)throw new P(900,!1);let x,w=mt.Default;for(let re=0;re<S.length;re++){const fe=S[re],Ce=qe(fe);"number"==typeof Ce?-1===Ce?x=fe.token:w|=Ce:x=fe}f.push(St(x,w))}else f.push(St(S))}return f}function Le(u,f){return u[ke]=f,u.prototype[ke]=f,u}function qe(u){return u[ke]}function $t(u){return{toString:u}.toString()}var rn=(()=>((rn=rn||{})[rn.OnPush=0]="OnPush",rn[rn.Default=1]="Default",rn))(),Wt=(()=>{return(u=Wt||(Wt={}))[u.Emulated=0]="Emulated",u[u.None=2]="None",u[u.ShadowDom=3]="ShadowDom",Wt;var u})();const qt={},un=[],dt=r({\u0275cmp:r}),ht=r({\u0275dir:r}),je=r({\u0275pipe:r}),vt=r({\u0275mod:r}),Zt=r({\u0275fac:r}),We=r({__NG_ELEMENT_ID__:r});let Ne=0;function ze(u){return $t(()=>{const f=ur(u),y={...f,decls:u.decls,vars:u.vars,template:u.template,consts:u.consts||null,ngContentSelectors:u.ngContentSelectors,onPush:u.changeDetection===rn.OnPush,directiveDefs:null,pipeDefs:null,dependencies:f.standalone&&u.dependencies||null,getStandaloneInjector:null,data:u.data||{},encapsulation:u.encapsulation||Wt.Emulated,id:"c"+Ne++,styles:u.styles||un,_:null,schemas:u.schemas||null,tView:null};Rr(y);const S=u.dependencies;return y.directiveDefs=rr(S,!1),y.pipeDefs=rr(S,!0),y})}function bt(u,f,y){const S=u.\u0275cmp;S.directiveDefs=rr(f,!1),S.pipeDefs=rr(y,!0)}function En(u){return In(u)||Nn(u)}function wn(u){return null!==u}function nr(u){return $t(()=>({type:u.type,bootstrap:u.bootstrap||un,declarations:u.declarations||un,imports:u.imports||un,exports:u.exports||un,transitiveCompileScopes:null,schemas:u.schemas||null,id:u.id||null}))}function Cn(u,f){return $t(()=>{const y=zn(u,!0);y.declarations=f.declarations||un,y.imports=f.imports||un,y.exports=f.exports||un})}function bn(u,f){if(null==u)return qt;const y={};for(const S in u)if(u.hasOwnProperty(S)){let x=u[S],w=x;Array.isArray(x)&&(w=x[1],x=x[0]),y[x]=S,f&&(f[x]=w)}return y}function cn(u){return $t(()=>{const f=ur(u);return Rr(f),f})}function Dn(u){return{type:u.type,name:u.name,factory:null,pure:!1!==u.pure,standalone:!0===u.standalone,onDestroy:u.type.prototype.ngOnDestroy||null}}function In(u){return u[dt]||null}function Nn(u){return u[ht]||null}function Rn(u){return u[je]||null}function Jn(u){const f=In(u)||Nn(u)||Rn(u);return null!==f&&f.standalone}function zn(u,f){const y=u[vt]||null;if(!y&&!0===f)throw new Error(`Type ${p(u)} does not have '\u0275mod' property.`);return y}function ur(u){const f={};return{type:u.type,providersResolver:null,factory:null,hostBindings:u.hostBindings||null,hostVars:u.hostVars||0,hostAttrs:u.hostAttrs||null,contentQueries:u.contentQueries||null,declaredInputs:f,exportAs:u.exportAs||null,standalone:!0===u.standalone,selectors:u.selectors||un,viewQuery:u.viewQuery||null,features:u.features||null,setInput:null,findHostDirectiveDefs:null,hostDirectives:null,inputs:bn(u.inputs,f),outputs:bn(u.outputs)}}function Rr(u){u.features?.forEach(f=>f(u))}function rr(u,f){if(!u)return null;const y=f?Rn:En;return()=>("function"==typeof u?u():u).map(S=>y(S)).filter(wn)}const Mr=0,Mn=1,Xn=2,cr=3,Qr=4,Xr=5,wr=6,ui=7,Nr=8,ii=9,fi=10,sr=11,Ai=12,Wr=13,oi=14,Gi=15,Ri=16,Yi=17,ut=18,tn=19,Gt=20,dn=21,gn=22,Qn=1,Cr=2,mr=7,Fr=8,Gn=9,qn=10;function mi(u){return Array.isArray(u)&&"object"==typeof u[Qn]}function jr(u){return Array.isArray(u)&&!0===u[Qn]}function Ao(u){return 0!=(4&u.flags)}
1function vo(u){return u.componentOffset>-1}function qi(u){return 1==(1&u.flags)}function ri(u){return!!u.template}function Ko(u){return 0!=(256&u[Xn])}function Ye(u,f){return u.hasOwnProperty(Zt)?u[Zt]:null}class jt{constructor(f,y,S){this.previousValue=f,this.currentValue=y,this.firstChange=S}isFirstChange(){return this.firstChange}}function Pn(){return pr}function pr(u){return u.type.prototype.ngOnChanges&&(u.setInput=xi),pi}function pi(){const u=Hi(this),f=u?.current;if(f){const y=u.previous;if(y===qt)u.previous=f;else for(let S in f)y[S]=f[S];u.current=null,this.ngOnChanges(f)}}function xi(u,f,y,S){const x=this.declaredInputs[y],w=Hi(u)||function Fi(u,f){return u[bi]=f}(u,{previous:qt,current:null}),re=w.current||(w.current={}),fe=w.previous,Ce=fe[x];re[x]=new jt(Ce&&Ce.currentValue,f,fe===qt),u[S]=f}Pn.ngInherit=!0;const bi="__ngSimpleChanges__";function Hi(u){return u[bi]||null}let si=null;const Do=u=>{si=u},Si=function(u,f,y){si?.(u,f,y)},Ro="svg",ao="math";function Ii(u){for(;Array.isArray(u);)u=u[Mr];return u}function ko(u,f){return Ii(f[u])}function Vr(u,f){return Ii(f[u.index])}function So(u,f){return u.data[f]}function Oo(u,f){return u[f]}function Ni(u,f){const y=f[u];return mi(y)?y:y[Mr]}function Li(u){return 64==(64&u[Xn])}function zo(u,f){return null==f?null:u[f]}function xs(u){u[ut]=0}function Lo(u,f){u[Xr]+=f;let y=u,S=u[cr];for(;null!==S&&(1===f&&1===y[Xr]||-1===f&&0===y[Xr]);)S[Xr]+=f,y=S,S=S[cr]}const hr={lFrame:Qi(null),bindingsEnabled:!0};function et(){return hr.bindingsEnabled}function kt(){hr.bindingsEnabled=!0}function On(){hr.bindingsEnabled=!1}function Bt(){return hr.lFrame.lView}function Fn(){return hr.lFrame.tView}function qr(u){return hr.lFrame.contextLView=u,u[Nr]}function ai(u){return hr.lFrame.contextLView=null,u}function li(){let u=Ks();for(;null!==u&&64===u.type;)u=u.parent;return u}function Ks(){return hr.lFrame.currentTNode}function Vs(){const u=hr.lFrame,f=u.currentTNode;return u.isParent?f:f.parent}function lo(u,f){const y=hr.lFrame;y.currentTNode=u,y.isParent=f}function na(){return hr.lFrame.isParent}function Go(){hr.lFrame.isParent=!1}function Wi(){const u=hr.lFrame;let f=u.bindingRootIndex;return-1===f&&(f=u.bindingRootIndex=u.tView.bindingStartIndex),f}function ki(){return hr.lFrame.bindingIndex}function is(u){return hr.lFrame.bindingIndex=u}function Bo(){return hr.lFrame.bindingIndex++}function Bi(u){const f=hr.lFrame,y=f.bindingIndex;return f.bindingIndex=f.bindingIndex+u,y}function Js(u){hr.lFrame.inI18n=u}function _r(u,f){const y=hr.lFrame;y.bindingIndex=y.bindingRootIndex=u,no(f)}function no(u){hr.lFrame.currentDirectiveIndex=u}function er(u){const f=hr.lFrame.currentDirectiveIndex;return-1===f?null:u[f]}function qs(){return hr.lFrame.currentQueryIndex}function pa(u){hr.lFrame.currentQueryIndex=u}function Uo(u){const f=u[Mn];return 2===f.type?f.declTNode:1===f.type?u[wr]:null}function Ls(u,f,y){if(y&mt.SkipSelf){let x=f,w=u;for(;!(x=x.parent,null!==x||y&mt.Host||(x=Uo(w),null===x||(w=w[Gi],10&x.type))););if(null===x)return!1;f=x,u=w}const S=hr.lFrame=ha();return S.currentTNode=f,S.lView=u,!0}function Hs(u){const f=ha(),y=u[Mn];hr.lFrame=f,f.currentTNode=y.firstChild,f.lView=u,f.tView=y,f.contextLView=u,f.bindingIndex=y.bindingStartIndex,f.inI18n=!1}function ha(){const u=hr.lFrame,f=null===u?null:u.child;return null===f?Qi(u):f}function Qi(u){const f={currentTNode:null,isParent:!0,lView:null,tView:null,selectedIndex:-1,contextLView:null,elementDepthCount:0,currentNamespace:null,currentDirectiveIndex:-1,bindingRootIndex:-1,bindingIndex:-1,currentQueryIndex:0,parent:u,child:null,inI18n:!1};return null!==u&&(u.child=f),f}function ss(){const u=hr.lFrame;return hr.lFrame=u.parent,u.currentTNode=null,u.lView=null,u}const ks=ss;function Xi(){const u=ss();u.isParent=!0,u.tView=null,u.selectedIndex=-1,u.contextLView=null,u.elementDepthCount=0,u.currentDirectiveIndex=-1,u.currentNamespace=null,u.bindingRootIndex=-1,u.bindingIndex=-1,u.currentQueryIndex=0}function ro(){return hr.lFrame.selectedIndex}function ti(u){hr.lFrame.selectedIndex=u}function gi(){const u=hr.lFrame;return So(u.tView,u.selectedIndex)}function Ms(){hr.lFrame.currentNamespace=Ro}function Ps(){hr.lFrame.currentNamespace=ao}function Gs(){!function bs(){hr.lFrame.currentNamespace=null}()}function Yo(u,f){for(let y=f.directiveStart,S=f.directiveEnd;y<S;y++){const w=u.data[y].type.prototype,{ngAfterContentInit:re,ngAfterContentChecked:fe,ngAfterViewInit:Ce,ngAfterViewChecked:we,ngOnDestroy:Ze}=w;re&&(u.contentHooks??(u.contentHooks=[])).push(-y,re),fe&&((u.contentHooks??(u.contentHooks=[])).push(y,fe),(u.contentCheckHooks??(u.contentCheckHooks=[])).push(y,fe)),Ce&&(u.viewHooks??(u.viewHooks=[])).push(-y,Ce),we&&((u.viewHooks??(u.viewHooks=[])).push(y,we),(u.viewCheckHooks??(u.viewCheckHooks=[])).push(y,we)),null!=Ze&&(u.destroyHooks??(u.destroyHooks=[])).push(y,Ze)}}function Ss(u,f,y){Ue(u,f,3,y)}function fa(u,f,y,S){(3&u[Xn])===y&&Ue(u,f,y,S)}function ve(u,f){let y=u[Xn];(3&y)===f&&(y&=2047,y+=1,u[Xn]=y)}function Ue(u,f,y,S){const w=S??-1,re=f.length-1;let fe=0;for(let Ce=void 0!==S?65535&u[ut]:0;Ce<re;Ce++)if("number"==typeof f[Ce+1]){if(fe=f[Ce],null!=S&&fe>=S)break}else f[Ce]<0&&(u[ut]+=65536),(fe<w||-1==w)&&(Oe(u,y,f,Ce),u[ut]=(4294901760&u[ut])+Ce+2),Ce++}function Oe(u,f,y,S){const x=y[S]<0,w=y[S+1],fe=u[x?-y[S]:y[S]];if(x){if(u[Xn]>>11<u[ut]>>16&&(3&u[Xn])===f){u[Xn]+=2048,Si(4,fe,w);try{w.call(fe)}finally{Si(5,fe,w)}}}else{Si(4,fe,w);try{w.call(fe)}finally{Si(5,fe,w)}}}const Ke=-1;class yt{constructor(f,y,S){this.factory=f,this.resolving=!1,this.canSeeViewProviders=y,this.injectImpl=S}}function $r(u,f,y){let S=0;for(;S<y.length;){const x=y[S];if("number"==typeof x){if(0!==x)break;S++;const w=y[S++],re=y[S++],fe=y[S++];u.setAttribute(f,re,fe,w)}
1else{const w=x,re=y[++S];Qo(w)?u.setProperty(f,w,re):u.setAttribute(f,w,re),S++}}return S}function vi(u){return 3===u||4===u||6===u}function Qo(u){return 64===u.charCodeAt(0)}function io(u,f){if(null!==f&&0!==f.length)if(null===u||0===u.length)u=f.slice();else{let y=-1;for(let S=0;S<f.length;S++){const x=f[S];"number"==typeof x?y=x:0===y||br(u,y,x,null,-1===y||2===y?f[++S]:null)}}return u}function br(u,f,y,S,x){let w=0,re=u.length;if(-1===f)re=-1;else for(;w<u.length;){const fe=u[w++];if("number"==typeof fe){if(fe===f){re=-1;break}if(fe>f){re=w-1;break}}}for(;w<u.length;){const fe=u[w];if("number"==typeof fe)break;if(fe===y){if(null===S)return void(null!==x&&(u[w+1]=x));if(S===u[w+1])return void(u[w+2]=x)}w++,null!==S&&w++,null!==x&&w++}-1!==re&&(u.splice(re,0,f),w=re+1),u.splice(w++,0,y),null!==S&&u.splice(w++,0,S),null!==x&&u.splice(w++,0,x)}function co(u){return u!==Ke}function Ei(u){return 32767&u}function oo(u,f){let y=function xr(u){return u>>16}(u),S=f;for(;y>0;)S=S[Gi],y--;return S}let Xo=!0;function vs(u){const f=Xo;return Xo=u,f}const ra=255,ta=5;let yi=0;const Ki={};function Is(u,f){const y=Mi(u,f);if(-1!==y)return y;const S=f[Mn];S.firstCreatePass&&(u.injectorIndex=f.length,uo(S.data,u),uo(f,null),uo(S.blueprint,null));const x=Lr(u,f),w=u.injectorIndex;if(co(x)){const re=Ei(x),fe=oo(x,f),Ce=fe[Mn].data;for(let we=0;we<8;we++)f[w+we]=fe[re+we]|Ce[re+we]}return f[w+8]=x,w}function uo(u,f){u.push(0,0,0,0,0,0,0,0,f)}function Mi(u,f){return-1===u.injectorIndex||u.parent&&u.parent.injectorIndex===u.injectorIndex||null===f[u.injectorIndex+8]?-1:u.injectorIndex}function Lr(u,f){if(u.parent&&-1!==u.parent.injectorIndex)return u.parent.injectorIndex;let y=0,S=null,x=f;for(;null!==x;){if(S=Ts(x),null===S)return Ke;if(y++,x=x[Gi],-1!==S.injectorIndex)return S.injectorIndex|y<<16}return Ke}function Zo(u,f,y){!function zi(u,f,y){let S;"string"==typeof y?S=y.charCodeAt(0)||0:y.hasOwnProperty(We)&&(S=y[We]),null==S&&(S=y[We]=yi++);const x=S&ra;f.data[u+(x>>ta)]|=1<<x}(u,f,y)}function _o(u,f,y){if(y&mt.Optional||void 0!==u)return u;L()}function so(u,f,y,S){if(y&mt.Optional&&void 0===S&&(S=null),!(y&(mt.Self|mt.Host))){const x=u[ii],w=tt(void 0);try{return x?x.get(f,S,y&mt.Optional):Tt(f,S,y&mt.Optional)}finally{tt(w)}}return _o(S,0,y)}function Zi(u,f,y,S=mt.Default,x){if(null!==u){if(1024&f[Xn]){const re=function Qs(u,f,y,S,x){let w=u,re=f;for(;null!==w&&null!==re&&1024&re[Xn]&&!(256&re[Xn]);){const fe=go(w,re,y,S|mt.Self,Ki);if(fe!==Ki)return fe;let Ce=w.parent;if(!Ce){const we=re[dn];if(we){const Ze=we.get(y,Ki,S);if(Ze!==Ki)return Ze}Ce=Ts(re),re=re[Gi]}w=Ce}return x}(u,f,y,S,Ki);if(re!==Ki)return re}const w=go(u,f,y,S,Ki);if(w!==Ki)return w}return so(f,y,S,x)}function go(u,f,y,S,x){const w=function Io(u){if("string"==typeof u)return u.charCodeAt(0)||0;const f=u.hasOwnProperty(We)?u[We]:void 0;return"number"==typeof f?f>=0?f&ra:Ca:f}(y);if("function"==typeof w){if(!Ls(f,u,S))return S&mt.Host?_o(x,0,S):so(f,y,S,x);try{const re=w(S);if(null!=re||S&mt.Optional)return re;L()}finally{ks()}}else if("number"==typeof w){let re=null,fe=Mi(u,f),Ce=Ke,we=S&mt.Host?f[Ri][wr]:null;for((-1===fe||S&mt.SkipSelf)&&(Ce=-1===fe?Lr(u,f):f[fe+8],Ce!==Ke&&ya(S,!1)?(re=f[Mn],fe=Ei(Ce),f=oo(Ce,f)):fe=-1);-1!==fe;){const Ze=f[Mn];if(ia(w,fe,Ze.data)){const Et=us(fe,f,y,re,S,we);if(Et!==Ki)return Et}Ce=f[fe+8],Ce!==Ke&&ya(S,f[Mn].data[fe+8]===we)&&ia(w,fe,f)?(re=Ze,fe=Ei(Ce),f=oo(Ce,f)):fe=-1}}return x}function us(u,f,y,S,x,w){const re=f[Mn],fe=re.data[u+8],Ze=as(fe,re,y,null==S?vo(fe)&&Xo:S!=re&&0!=(3&fe.type),x&mt.Host&&w===fe);return null!==Ze?Jo(f,re,Ze,fe):Ki}function as(u,f,y,S,x){const w=u.providerIndexes,re=f.data,fe=1048575&w,Ce=u.directiveStart,Ze=w>>20,Qt=x?fe+Ze:u.directiveEnd;for(let ln=S?fe:fe+Ze;ln<Qt;ln++){const yn=re[ln];if(ln<Ce&&y===yn||ln>=Ce&&yn.type===y)return ln}if(x){const ln=re[Ce];if(ln&&ri(ln)&&ln.type===y)return Ce}return null}function Jo(u,f,y,S){let x=u[y];const w=f.data;if(function sn(u){return u instanceof yt}(x)){const re=x;re.resolving&&function I(u,f){const y=f?`. Dependency path: ${f.join(" > ")} > ${u}`:"";throw new P(-200,`Circular dependency in DI detected for ${u}${y}`)}(C(w[y]));const fe=vs(re.canSeeViewProviders);re.resolving=!0;
1const Ce=re.injectImpl?tt(re.injectImpl):null;Ls(u,S,mt.Default);try{x=u[y]=re.factory(void 0,w,u,S),f.firstCreatePass&&y>=S.directiveStart&&function ea(u,f,y){const{ngOnChanges:S,ngOnInit:x,ngDoCheck:w}=f.type.prototype;if(S){const re=pr(f);(y.preOrderHooks??(y.preOrderHooks=[])).push(u,re),(y.preOrderCheckHooks??(y.preOrderCheckHooks=[])).push(u,re)}x&&(y.preOrderHooks??(y.preOrderHooks=[])).push(0-u,x),w&&((y.preOrderHooks??(y.preOrderHooks=[])).push(u,w),(y.preOrderCheckHooks??(y.preOrderCheckHooks=[])).push(u,w))}(y,w[y],f)}finally{null!==Ce&&tt(Ce),vs(fe),re.resolving=!1,ks()}}return x}function ia(u,f,y){return!!(y[f+(u>>ta)]&1<<u)}function ya(u,f){return!(u&mt.Self||u&mt.Host&&f)}class oa{constructor(f,y){this._tNode=f,this._lView=y}get(f,y,S){return Zi(this._tNode,this._lView,f,st(S),y)}}function Ca(){return new oa(li(),Bt())}function sa(u){return $t(()=>{const f=u.prototype.constructor,y=f[Zt]||ma(f),S=Object.prototype;let x=Object.getPrototypeOf(u.prototype).constructor;for(;x&&x!==S;){const w=x[Zt]||ma(x);if(w&&w!==y)return w;x=Object.getPrototypeOf(x)}return w=>new w})}function ma(u){return E(u)?()=>{const f=ma(v(u));return f&&f()}:Ye(u)}function Ts(u){const f=u[Mn],y=f.type;return 2===y?f.declTNode:1===y?u[wr]:null}function As(u){return function Es(u,f){if("class"===f)return u.classes;if("style"===f)return u.styles;const y=u.attrs;if(y){const S=y.length;let x=0;for(;x<S;){const w=y[x];if(vi(w))break;if(0===w)x+=2;else if("number"==typeof w)for(x++;x<S&&"string"==typeof y[x];)x++;else{if(w===f)return y[x+1];x+=2}}}return null}(li(),u)}const Xs="__annotations__",qo="__parameters__",es="__prop__metadata__";function Fo(u,f,y,S,x){return $t(()=>{const w=Da(f);function re(...fe){if(this instanceof re)return w.call(this,...fe),this;const Ce=new re(...fe);return function(Ze){return x&&x(Ze,...fe),(Ze.hasOwnProperty(Xs)?Ze[Xs]:Object.defineProperty(Ze,Xs,{value:[]})[Xs]).push(Ce),S&&S(Ze),Ze}}return y&&(re.prototype=Object.create(y.prototype)),re.prototype.ngMetadataName=u,re.annotationCls=re,re})}function Da(u){return function(...y){if(u){const S=u(...y);for(const x in S)this[x]=S[x]}}}function To(u,f,y){return $t(()=>{const S=Da(f);function x(...w){if(this instanceof x)return S.apply(this,w),this;const re=new x(...w);return fe.annotation=re,fe;function fe(Ce,we,Ze){const Et=Ce.hasOwnProperty(qo)?Ce[qo]:Object.defineProperty(Ce,qo,{value:[]})[qo];for(;Et.length<=Ze;)Et.push(null);return(Et[Ze]=Et[Ze]||[]).push(re),Ce}}return y&&(x.prototype=Object.create(y.prototype)),x.prototype.ngMetadataName=u,x.annotationCls=x,x})}function Vi(u,f,y,S){return $t(()=>{const x=Da(f);function w(...re){if(this instanceof w)return x.apply(this,re),this;const fe=new w(...re);return function Ce(we,Ze){const Et=we.constructor,Qt=Et.hasOwnProperty(es)?Et[es]:Object.defineProperty(Et,es,{value:{}})[es];Qt[Ze]=Qt.hasOwnProperty(Ze)&&Qt[Ze]||[],Qt[Ze].unshift(fe),S&&S(we,Ze,...re)}}return y&&(w.prototype=Object.create(y.prototype)),w.prototype.ngMetadataName=u,w.annotationCls=w,w})}const ys=To("Attribute",u=>({attributeName:u,__NG_ELEMENT_ID__:()=>As(u)}));class Gr{constructor(f,y){this._desc=f,this.ngMetadataName="InjectionToken",this.\u0275prov=void 0,"number"==typeof y?this.__NG_ELEMENT_ID__=y:void 0!==y&&(this.\u0275prov=Ee({token:this,providedIn:y.providedIn||"root",factory:y.factory}))}get multi(){return this}toString(){return`InjectionToken ${this._desc}`}}const Bs=new Gr("AnalyzeForEntryComponents");class ps{}const No=Vi("ContentChildren",(u,f={})=>({selector:u,first:!1,isViewQuery:!1,descendants:!1,emitDistinctChangesOnly:!0,...f}),ps),Ra=Vi("ContentChild",(u,f={})=>({selector:u,first:!0,isViewQuery:!1,descendants:!0,...f}),ps),Oa=Vi("ViewChildren",(u,f={})=>({selector:u,first:!1,isViewQuery:!0,descendants:!0,emitDistinctChangesOnly:!0,...f}),ps),ts=Vi("ViewChild",(u,f)=>({selector:u,first:!0,isViewQuery:!0,descendants:!0,...f}),ps);var $e=(()=>(($e=$e||{})[$e.Directive=0]="Directive",$e[$e.Component=1]="Component",$e[$e.Injectable=2]="Injectable",$e[$e.Pipe=3]="Pipe",$e[$e.NgModule=4]="NgModule",$e))();function Ie(u){const f=Rt.ng;if(f&&f.\u0275compilerFacade)return f.\u0275compilerFacade;throw new Error("JIT compiler unavailable")}const N=Function;function J(u){return"function"==typeof u}function de(u){return u.flat(Number.POSITIVE_INFINITY)}function Pe(u,f){u.forEach(y=>Array.isArray(y)?Pe(y,f):f(y))}function Fe(u,f,y){f>=u.length?u.push(y):u.splice(f,0,y)}function Qe(u,f){return f>=u.length-1?u.pop():u.splice(f,1)[0]}function Nt(u,f){const y=[];for(let S=0;S<u;S++)y.push(f);return y}function Er(u,f,y){let S=po(u,f);return S>=0?u[1|S]=y:(S=~S,function Hn(u,f,y,S){let x=u.length;if(x==f)u.push(y,S);else if(1===x)u.push(S,u[0]),u[0]=y;else{for(x--,u.push(u[x-1],u[x]);x>f;)u[x]=u[x-2],x--;u[f]=y,u[f+1]=S}}(u,S,f,y)),S}function Ci(u,f){const y=po(u,f);if(y>=0)return u[1|y]}function po(u,f){return function ni(u,f,y){let S=0,x=u.length>>y;for(;x!==S;){const w=S+(x-S>>1),re=u[w<<y];if(f===re)return w<<y;re>f?x=w:S=w+1}return~(x<<y)}(u,f,1)}const Ha=/^function\s+\S+\(\)\s*{[\s\S]+\.apply\(this,\s*(arguments|(?:[^()]+\(\[\],)?[^()]+\(arguments\).*)\)/,Na=/^class\s+[A-Za-z\d$_]*\s*extends\s+[^{]+{/,Us=/^class\s+[A-Za-z\d$_]*\s*extends\s+[^{]+{[\s\S]*constructor\s*\(/,xa=/^class\s+[A-Za-z\d$_]*\s*extends\s+[^{]+{[\s\S]*constructor\s*\(\)\s*{[^}]*super\(\.\.\.arguments\)/;class ws{constructor(f){this._reflect=f||Rt.Reflect}
1factory(f){return(...y)=>new f(...y)}_zipTypesAndAnnotations(f,y){let S;S=Nt(typeof f>"u"?y.length:f.length);for(let x=0;x<S.length;x++)S[x]=typeof f>"u"?[]:f[x]&&f[x]!=Object?[f[x]]:[],y&&null!=y[x]&&(S[x]=S[x].concat(y[x]));return S}_ownParameters(f,y){if(function Ma(u){return Ha.test(u)||xa.test(u)||Na.test(u)&&!Us.test(u)}(f.toString()))return null;if(f.parameters&&f.parameters!==y.parameters)return f.parameters;const x=f.ctorParameters;if(x&&x!==y.ctorParameters){const fe="function"==typeof x?x():x,Ce=fe.map(Ze=>Ze&&Ze.type),we=fe.map(Ze=>Ze&&aa(Ze.decorators));return this._zipTypesAndAnnotations(Ce,we)}const w=f.hasOwnProperty(qo)&&f[qo],re=this._reflect&&this._reflect.getOwnMetadata&&this._reflect.getOwnMetadata("design:paramtypes",f);return re||w?this._zipTypesAndAnnotations(re,w):Nt(f.length)}parameters(f){if(!J(f))return[];const y=Pa(f);let S=this._ownParameters(f,y);return!S&&y!==Object&&(S=this.parameters(y)),S||[]}_ownAnnotations(f,y){if(f.annotations&&f.annotations!==y.annotations){let S=f.annotations;return"function"==typeof S&&S.annotations&&(S=S.annotations),S}return f.decorators&&f.decorators!==y.decorators?aa(f.decorators):f.hasOwnProperty(Xs)?f[Xs]:null}annotations(f){if(!J(f))return[];const y=Pa(f),S=this._ownAnnotations(f,y)||[];return(y!==Object?this.annotations(y):[]).concat(S)}_ownPropMetadata(f,y){if(f.propMetadata&&f.propMetadata!==y.propMetadata){let S=f.propMetadata;return"function"==typeof S&&S.propMetadata&&(S=S.propMetadata),S}if(f.propDecorators&&f.propDecorators!==y.propDecorators){const S=f.propDecorators,x={};return Object.keys(S).forEach(w=>{x[w]=aa(S[w])}),x}return f.hasOwnProperty(es)?f[es]:null}propMetadata(f){if(!J(f))return{};const y=Pa(f),S={};if(y!==Object){const w=this.propMetadata(y);
1Object.keys(w).forEach(re=>{S[re]=w[re]})}const x=this._ownPropMetadata(f,y);return x&&Object.keys(x).forEach(w=>{const re=[];S.hasOwnProperty(w)&&re.push(...S[w]),re.push(...x[w]),S[w]=re}),S}ownPropMetadata(f){return J(f)&&this._ownPropMetadata(f,Pa(f))||{}}hasLifecycleHook(f,y){return f instanceof N&&y in f.prototype}}function aa(u){return u?u.map(f=>new(0,f.type.annotationCls)(...f.args?f.args:[])):[]}function Pa(u){const f=u.prototype?Object.getPrototypeOf(u.prototype):null;return(f?f.constructor:null)||Object}const La=Le(To("Inject",u=>({token:u})),-1),ba=Le(To("Optional"),8),la=Le(To("Self"),2),Sa=Le(To("SkipSelf"),4),Ia=Le(To("Host"),1);let Ta=null;function Rs(){return Ta=Ta||new ws}function Ba(u){return Xa(Rs().parameters(u))}function Xa(u){return u.map(f=>function Ve(u){const f={token:null,attribute:null,host:!1,optional:!1,self:!1,skipSelf:!1};if(Array.isArray(u)&&u.length>0)for(let y=0;y<u.length;y++){const S=u[y];if(void 0===S)continue;const x=Object.getPrototypeOf(S);if(S instanceof ba||"Optional"===x.ngMetadataName)f.optional=!0;else if(S instanceof Sa||"SkipSelf"===x.ngMetadataName)f.skipSelf=!0;else if(S instanceof la||"Self"===x.ngMetadataName)f.self=!0;else if(S instanceof Ia||"Host"===x.ngMetadataName)f.host=!0;else if(S instanceof La)f.token=S.token;else if(S instanceof ys){if(void 0===S.attributeName)throw new P(204,!1);f.attribute=S.attributeName}else f.token=S}else f.token=void 0===u||Array.isArray(u)&&0===u.length?null:u;return f}(f))}function rt(u){const f=[],y=new Map;function S(x){let w=y.get(x);if(!w){const re=u(x);y.set(x,w=re.then(jn))}return w}return be.forEach((x,w)=>{const re=[];x.templateUrl&&re.push(S(x.templateUrl).then(Et=>{x.template=Et}));const fe=x.styleUrls,Ce=x.styles||(x.styles=[]),we=x.styles.length;fe&&fe.forEach((Et,Qt)=>{Ce.push(""),re.push(S(Et).then(ln=>{Ce[we+Qt]=ln,fe.splice(fe.indexOf(Et),1),0==fe.length&&(x.styleUrls=void 0)}))});const Ze=Promise.all(re).then(()=>function Sr(u){Ht.delete(u)}(w));f.push(Ze)}),Ot(),Promise.all(f).then(()=>{})}let be=new Map;const Ht=new Set;function Ge(u){return!!(u.templateUrl&&!u.hasOwnProperty("template")||u.styleUrls&&u.styleUrls.length)}function Ot(){const u=be;return be=new Map,u}function jn(u){return"string"==typeof u?u:u.text()}const Jr=new Map;let kn=!0;function Yr(u,f){(function Ir(u,f,y){if(f&&f!==y&&kn)throw new Error(`Duplicate module registered for ${u} - ${p(f)} vs ${p(f.name)}`)})(f,Jr.get(f)||null,u),Jr.set(f,u)}function Vl(u){return Jr.get(u)}function Cl(u){kn=!u}const Ua={name:"custom-elements"},$l={name:"no-errors-schema"};let ml=!1;function Rc(u){ml=u}function xc(){return ml}let ol=!1;function Dl(u){ol=u}function Ed(){return ol}var ca=(()=>((ca=ca||{})[ca.Important=1]="Important",ca[ca.DashCase=2]="DashCase",ca))();const Lc=/^>|^->|<!--|-->|--!>|<!-$/g,Bc=/(<|>)/,Uc="\u200b$1\u200b";const Pl=new Map;let Yl=0;function Ql(u){return Pl.get(u)||null}class Xl{get lView(){return Ql(this.lViewId)}constructor(f,y,S){this.lViewId=f,this.nodeIndex=y,this.native=S}}function Fs(u){let f=ge(u);if(f){if(mi(f)){const y=f;let S,x,w;if(Lt(u)){if(S=Kn(y,u),-1==S)throw new Error("The provided component was not found in the application");x=u}else if(function an(u){return u&&u.constructor&&u.constructor.\u0275dir}(u)){if(S=function gr(u,f){let y=u[Mn].firstChild;for(;y;){const x=y.directiveEnd;for(let w=y.directiveStart;w<x;w++)if(u[w]===f)return y.index;y=Sn(y)}return-1}(y,u),-1==S)throw new Error("The provided directive was not found in the application");
1w=tr(S,y)}else if(S=vn(y,u),-1==S)return null;const re=Ii(y[S]),fe=ge(re),Ce=fe&&!Array.isArray(fe)?fe:U(y,S,re);if(x&&void 0===Ce.component&&(Ce.component=x,$(Ce.component,Ce)),w&&void 0===Ce.directives){Ce.directives=w;for(let we=0;we<w.length;we++)$(w[we],Ce)}$(Ce.native,Ce),f=Ce}}else{const y=u;let S=y;for(;S=S.parentNode;){const x=ge(S);if(x){const w=Array.isArray(x)?x:x.lView;if(!w)return null;const re=vn(w,y);if(re>=0){const fe=Ii(w[re]),Ce=U(w,re,fe);$(fe,Ce),f=Ce;break}}}}return f||null}function U(u,f,y){return new Xl(u[Gt],f,y)}function le(u){let y,f=ge(u);if(mi(f)){const S=f,x=Kn(S,u);y=Ni(x,S);const w=U(S,x,y[Mr]);w.component=u,$(u,w),$(w.native,w)}else y=Ni(f.nodeIndex,f.lView);return y}const T="__ngContext__";function $(u,f){mi(f)?(u[T]=f[Gt],function Fc(u){Pl.set(u[Gt],u)}(f)):u[T]=f}function ge(u){const f=u[T];return"number"==typeof f?Ql(f):f||null}function Te(u){const f=ge(u);return f?mi(f)?f:f.lView:null}function Lt(u){return u&&u.constructor&&u.constructor.\u0275cmp}function vn(u,f){const y=u[Mn];for(let S=gn;S<y.bindingStartIndex;S++)if(Ii(u[S])===f)return S;return-1}function Sn(u){if(u.child)return u.child;if(u.next)return u.next;for(;u.parent&&!u.parent.next;)u=u.parent;return u.parent&&u.parent.next}function Kn(u,f){const y=u[Mn].components;if(y)for(let S=0;S<y.length;S++){const x=y[S];if(Ni(x,u)[Nr]===f)return x}else if(Ni(gn,u)[Nr]===f)return gn;return-1}function tr(u,f){const y=f[Mn].data[u];if(0===y.directiveStart)return un;const S=[];for(let x=y.directiveStart;x<y.directiveEnd;x++){const w=f[x];Lt(w)||S.push(w)}return S}let Ti;function ls(u,f){return Ti(u,f)}function Wo(u){const f=u[cr];return jr(f)?f[cr]:f}function Zl(u){return function Sl(u){let f=mi(u)?u:Te(u);for(;f&&!(256&f[Xn]);)f=Wo(f);return f}(u)[Nr]}function sl(u){return Tl(u[Wr])}function Il(u){return Tl(u[Qr])}function Tl(u){for(;null!==u&&!jr(u);)u=u[Qr];return u}function hs(u,f,y,S,x){if(null!=S){let w,re=!1;jr(S)?w=S:mi(S)&&(re=!0,S=S[Mr]);const fe=Ii(S);0===u&&null!==y?null==x?bd(f,y,fe):al(f,y,fe,x||null,!0):1===u&&null!==y?al(f,y,fe,x||null,!0):2===u?kc(f,fe,re):3===u&&f.destroyNode(fe),null!=w&&function Yc(u,f,y,S,x){const w=y[mr];w!==Ii(y)&&hs(f,u,S,w,x);for(let fe=qn;fe<y.length;fe++){const Ce=y[fe];_l(Ce[Mn],Ce,u,f,S,w)}}(f,u,w,y,x)}}function Jl(u,f){return u.createText(f)}function Cd(u,f,y){u.setValue(f,y)}function ql(u,f){return u.createComment(function Gl(u){return u.replace(Lc,f=>f.replace(Bc,Uc))}(f))}function Nc(u,f,y){return u.createElement(f,y)}function ec(u,f){const y=u[Gn],S=y.indexOf(f),x=f[cr];512&f[Xn]&&(f[Xn]&=-513,Lo(x,-1)),y.splice(S,1)}function Al(u,f){if(u.length<=qn)return;const y=qn+f,S=u[y];if(S){const x=S[Yi];null!==x&&x!==u&&ec(x,S),f>0&&(u[y-1][Qr]=S[Qr]);const w=Qe(u,qn+f);!function Lu(u,f){_l(u,f,f[sr],2,null,null),f[Mr]=null,f[wr]=null}(S[Mn],S);const re=w[tn];null!==re&&re.detachView(w[Mn]),S[cr]=null,S[Qr]=null,S[Xn]&=-65}return S}function Od(u,f){if(!(128&f[Xn])){const y=f[sr];y.destroyNode&&_l(u,f,y,3,null,null),function Uu(u){let f=u[Wr];if(!f)return tc(u[Mn],u);for(;f;){let y=null;if(mi(f))y=f[Wr];else{const S=f[qn];S&&(y=S)}if(!y){for(;f&&!f[Qr]&&f!==u;)mi(f)&&tc(f[Mn],f),f=f[cr];null===f&&(f=u),mi(f)&&tc(f[Mn],f),y=f&&f[Qr]}f=y}}(f)}}function tc(u,f){if(!(128&f[Xn])){f[Xn]&=-65,f[Xn]|=128,function Fu(u,f){let y;if(null!=u&&null!=(y=u.destroyHooks))for(let S=0;S<y.length;S+=2){const x=f[y[S]];if(!(x instanceof yt)){const w=y[S+1];if(Array.isArray(w))for(let re=0;re<w.length;re+=2){const fe=x[w[re]],Ce=w[re+1];Si(4,fe,Ce);try{Ce.call(fe)}finally{Si(5,fe,Ce)}}else{Si(4,x,w);try{w.call(x)}finally{Si(5,x,w)}}}}}(u,f),function Wc(u,f){const y=u.cleanup,S=f[ui];let x=-1;if(null!==y)for(let w=0;w<y.length-1;w+=2)if("string"==typeof y[w]){const re=y[w+3];re>=0?S[x=re]():S[x=-re].unsubscribe(),w+=2}else{const re=S[x=y[w+1]];y[w].call(re)}if(null!==S){for(let w=x+1;w<S.length;w++)(0,S[w])();f[ui]=null}}(u,f),1===f[Mn].type&&f[sr].destroy();const y=f[Yi];if(null!==y&&jr(f[cr])){y!==f[cr]&&ec(y,f);const S=f[tn];null!==S&&S.detachView(u)}!function bl(u){Pl.delete(u[Gt])}(f)}}function Md(u,f,y){return Pd(u,f.parent,y)}function Pd(u,f,y){let S=f;for(;null!==S&&40&S.type;)S=(f=S).parent;if(null===S)return y[Mr];
1{const{componentOffset:x}=S;if(x>-1){const{encapsulation:w}=u.data[S.directiveStart+x];if(w===Wt.None||w===Wt.Emulated)return null}return Vr(S,y)}}function al(u,f,y,S,x){u.insertBefore(f,y,S,x)}function bd(u,f,y){u.appendChild(f,y)}function Sd(u,f,y,S,x){null!==S?al(u,f,y,S,x):bd(u,f,y)}function nc(u,f){return u.parentNode(f)}function rc(u,f,y){return $c(u,f,y)}function Vc(u,f,y){return 40&u.type?Vr(u,y):null}let Rl,sc,Xc,lc,$c=Vc;function Id(u,f){$c=u,Rl=f}function ic(u,f,y,S){const x=Md(u,S,f),w=f[sr],fe=rc(S.parent||f[wr],S,f);if(null!=x)if(Array.isArray(y))for(let Ce=0;Ce<y.length;Ce++)Sd(w,x,y[Ce],fe,!1);else Sd(w,x,y,fe,!1);void 0!==Rl&&Rl(w,S,f,y,x)}function oc(u,f){if(null!==f){const y=f.type;if(3&y)return Vr(f,u);if(4&y)return Hc(-1,u[f.index]);if(8&y){const S=f.child;if(null!==S)return oc(u,S);{const x=u[f.index];return jr(x)?Hc(-1,x):Ii(x)}}if(32&y)return ls(f,u)()||Ii(u[f.index]);{const S=Td(u,f);return null!==S?Array.isArray(S)?S[0]:oc(Wo(u[Ri]),S):oc(u,f.next)}}return null}function Td(u,f){return null!==f?u[Ri][wr].projection[f.projection]:null}function Hc(u,f){const y=qn+u+1;if(y<f.length){const S=f[y],x=S[Mn].firstChild;if(null!==x)return oc(S,x)}return f[mr]}function kc(u,f,y){const S=nc(u,f);S&&function Kc(u,f,y,S){u.removeChild(f,y,S)}(u,S,f,y)}function zc(u,f,y,S,x,w,re){for(;null!=y;){const fe=S[y.index],Ce=y.type;if(re&&0===f&&(fe&&$(Ii(fe),S),y.flags|=2),32!=(32&y.flags))if(8&Ce)zc(u,f,y.child,S,x,w,!1),hs(f,u,x,fe,w);else if(32&Ce){const we=ls(y,S);let Ze;for(;Ze=we();)hs(f,u,x,Ze,w);hs(f,u,x,fe,w)}else 16&Ce?Gc(u,f,S,y,x,w):hs(f,u,x,fe,w);y=re?y.projectionNext:y.next}}function _l(u,f,y,S,x,w){zc(y,S,u.firstChild,f,x,w,!1)}function Gc(u,f,y,S,x,w){const re=y[Ri],Ce=re[wr].projection[S.projection];if(Array.isArray(Ce))for(let we=0;we<Ce.length;we++)hs(f,u,x,Ce[we],w);else zc(u,f,Ce,re[cr],x,w,!0)}function Rd(u,f,y){""===y?u.removeAttribute(f,"class"):u.setAttribute(f,"class",y)}function xd(u,f,y){const{mergedAttrs:S,classes:x,styles:w}=y;null!==S&&$r(u,f,S),null!==x&&Rd(u,f,x),null!==w&&function Wu(u,f,y){u.setAttribute(f,"style",y)}(u,f,w)}function Qc(){if(void 0===sc&&(sc=null,Rt.trustedTypes))try{sc=Rt.trustedTypes.createPolicy("angular",{createHTML:u=>u,createScript:u=>u,createScriptURL:u=>u})}catch{}return sc}function gl(u){return Qc()?.createHTML(u)||u}function Bd(u,f,y){const S=Bt(),x=gi(),w=Vr(x,S);if(2===x.type&&"iframe"===f.toLowerCase()){const re=w;throw re.src="",re.srcdoc=gl(""),kc(S[sr],re),new P(-910,!1)}return u}function Ud(u){Xc=u}function ac(){return void 0!==Xc?Xc:typeof document<"u"?document:void 0}function Zc(){if(void 0===lc&&(lc=null,Rt.trustedTypes))try{lc=Rt.trustedTypes.createPolicy("angular#unsafe-bypass",{createHTML:u=>u,createScript:u=>u,createScriptURL:u=>u})}catch{}return lc}function wd(u){return Zc()?.createHTML(u)||u}function Fd(u){return Zc()?.createScript(u)||u}function Nd(u){return Zc()?.createScriptURL(u)||u}class ll{constructor(f){this.changingThisBreaksApplicationSecurity=f}toString(){return`SafeValue must use [property]=binding: ${this.changingThisBreaksApplicationSecurity} (see ${M})`}}class Vu extends ll{getTypeName(){return"HTML"}}class $u extends ll{getTypeName(){return"Style"}}class jd extends ll{getTypeName(){return"Script"}}class Wd extends ll{getTypeName(){return"URL"}}class Kd extends ll{getTypeName(){return"ResourceURL"}}function he(u){return u instanceof ll?u.changingThisBreaksApplicationSecurity:u}function z(u,f){const y=F(u);if(null!=y&&y!==f){if("ResourceURL"===y&&"URL"===f)return!0;throw new Error(`Required a safe ${f}, got a ${y} (see ${M})`)}return y===f}function F(u){return u instanceof ll&&u.getTypeName()||null}function ue(u){return new Vu(u)}function Se(u){return new $u(u)}function He(u){return new jd(u)}function ct(u){return new Wd(u)}function Ct(u){return new Kd(u)}function Kt(u){const f=new Ln(u);return function Vn(){try{return!!(new window.DOMParser).parseFromString(gl(""),"text/html")}catch{return!1}}()?new on(f):f}class on{constructor(f){this.inertDocumentHelper=f}getInertBodyElement(f){f="<body><remove></remove>"+f;try{const y=(new window.DOMParser).parseFromString(gl(f),"text/html").body;return null===y?this.inertDocumentHelper.getInertBodyElement(f):(y.removeChild(y.firstChild),y)}catch{return null}}}class Ln{constructor(f){this.defaultDoc=f,this.inertDocument=this.defaultDoc.implementation.createHTMLDocument("sanitization-inert")}getInertBodyElement(f){const y=this.inertDocument.createElement("template");return y.innerHTML=gl(f),y}}const Dr=/^(?!javascript:)(?:[a-z0-9+.-]+:|[^&:\/?#]*(?:[\/?#]|$))/i;function yr(u){return(u=String(u)).match(Dr)?u:"unsafe:"+u}function or(u){const f={};for(const y of u.split(","))f[y]=!0;return f}function fr(...u){const f={};for(const y of u)for(const S in y)y.hasOwnProperty(S)&&(f[S]=!0);return f}const ci=or("area,br,col,hr,img,wbr"),Pi=or("colgroup,dd,dt,li,p,tbody,td,tfoot,th,thead,tr"),Di=or("rp,rt"),Aa=fr(ci,fr(Pi,or("address,article,aside,blockquote,caption,center,del,details,dialog,dir,div,dl,figure,figcaption,footer,h1,h2,h3,h4,h5,h6,header,hgroup,hr,ins,main,map,menu,nav,ol,pre,section,summary,table,ul")),fr(
1Di,or("a,abbr,acronym,audio,b,bdi,bdo,big,br,cite,code,del,dfn,em,font,i,img,ins,kbd,label,map,mark,picture,q,ruby,rp,rt,s,samp,small,source,span,strike,strong,sub,sup,time,track,tt,u,var,video")),fr(Di,Pi)),Ns=or("background,cite,href,itemtype,longdesc,poster,src,xlink:href"),ja=fr(Ns,or("abbr,accesskey,align,alt,autoplay,axis,bgcolor,border,cellpadding,cellspacing,class,clear,color,cols,colspan,compact,controls,coords,datetime,default,dir,download,face,headers,height,hidden,hreflang,hspace,ismap,itemscope,itemprop,kind,label,lang,language,loop,media,muted,nohref,nowrap,open,preload,rel,rev,role,rows,rowspan,rules,scope,scrolling,shape,size,sizes,span,srclang,srcset,start,summary,tabindex,target,title,translate,type,usemap,valign,value,vspace,width"),or("aria-activedescendant,aria-atomic,aria-autocomplete,aria-busy,aria-checked,aria-colcount,aria-colindex,aria-colspan,aria-controls,aria-current,aria-describedby,aria-details,aria-disabled,aria-dropeffect,aria-errormessage,aria-expanded,aria-flowto,aria-grabbed,aria-haspopup,aria-hidden,aria-invalid,aria-keyshortcuts,aria-label,aria-labelledby,aria-level,aria-live,aria-modal,aria-multiline,aria-multiselectable,aria-orientation,aria-owns,aria-placeholder,aria-posinset,aria-pressed,aria-readonly,aria-relevant,aria-required,aria-roledescription,aria-rowcount,aria-rowindex,aria-rowspan,aria-selected,aria-setsize,aria-sort,aria-valuemax,aria-valuemin,aria-valuenow,aria-valuetext")),Vd=or("script,style,template");class Ll{constructor(){this.sanitizedSomething=!1,this.buf=[]}sanitizeChildren(f){let y=f.firstChild,S=!0;for(;y;)if(y.nodeType===Node.ELEMENT_NODE?S=this.startElement(y):y.nodeType===Node.TEXT_NODE?this.chars(y.nodeValue):this.sanitizedSomething=!0,S&&y.firstChild)y=y.firstChild;else for(;y;){y.nodeType===Node.ELEMENT_NODE&&this.endElement(y);let x=this.checkClobberedElement(y,y.nextSibling);if(x){y=x;break}y=this.checkClobberedElement(y,y.parentNode)}return this.buf.join("")}startElement(f){const y=f.nodeName.toLowerCase();if(!Aa.hasOwnProperty(y))return this.sanitizedSomething=!0,!Vd.hasOwnProperty(y);this.buf.push("<"),this.buf.push(y);const S=f.attributes;for(let x=0;x<S.length;x++){const w=S.item(x),re=w.name,fe=re.toLowerCase();if(!ja.hasOwnProperty(fe)){this.sanitizedSomething=!0;continue}let Ce=w.value;Ns[fe]&&(Ce=yr(Ce)),this.buf.push(" ",re,'="',Jc(Ce),'"')}return this.buf.push(">"),!0}endElement(f){const y=f.nodeName.toLowerCase();Aa.hasOwnProperty(y)&&!ci.hasOwnProperty(y)&&(this.buf.push("</"),this.buf.push(y),this.buf.push(">"))}chars(f){this.buf.push(Jc(f))}checkClobberedElement(f,y){if(y&&(f.compareDocumentPosition(y)&Node.DOCUMENT_POSITION_CONTAINED_BY)===Node.DOCUMENT_POSITION_CONTAINED_BY)throw new Error(`Failed to sanitize html because the element is clobbered: ${f.outerHTML}`);return y}}const cl=/[\uD800-\uDBFF][\uDC00-\uDFFF]/g,$d=/([^\#-~ |!])/g;function Jc(u){return u.replace(/&/g,"&").replace(cl,function(f){return"&#"+(1024*(f.charCodeAt(0)-55296)+(f.charCodeAt(1)-56320)+65536)+";"}).replace($d,function(f){return"&#"+f.charCodeAt(0)+";"}).replace(/</g,"<").replace(/>/g,">")}let lr;function Or(u,f){let y=null;try{lr=lr||Kt(u);let S=f?String(f):"";y=lr.getInertBodyElement(S);let x=5,w=S;do{if(0===x)throw new Error("Failed to sanitize html because the input is unstable");x--,S=w,w=y.innerHTML,y=lr.getInertBodyElement(S)}while(S!==w);return gl((new Ll).sanitizeChildren(Ar(y)||y))}finally{if(y){const S=Ar(y)||y;for(;S.firstChild;)S.removeChild(S.firstChild)}}}function Ar(u){return"content"in u&&function Ui(u){return u.nodeType===Node.ELEMENT_NODE&&"TEMPLATE"===u.nodeName}(u)?u.content:null}var di=(()=>((di=di||{})[di.NONE=0]="NONE",di[di.HTML=1]="HTML",di[di.STYLE=2]="STYLE",di[di.SCRIPT=3]="SCRIPT",di[di.URL=4]="URL",di[di.RESOURCE_URL=5]="RESOURCE_URL",di))();function wa(u){const f=td();return f?wd(f.sanitize(di.HTML,u)||""):z(u,"HTML")?wd(he(u)):Or(ac(),l(u))}function da(u){const f=td();return f?f.sanitize(di.STYLE,u)||"":z(u,"Style")?he(u):l(u)}function Wa(u){const f=td();return f?f.sanitize(di.URL,u)||"":z(u,"URL")?he(u):yr(l(u))}function Mo(u){const f=td();if(f)return Nd(f.sanitize(di.RESOURCE_URL,u)||"");if(z(u,"ResourceURL"))return Nd(he(u));throw new P(904,!1)}function qc(u){const f=td();if(f)return Fd(f.sanitize(di.SCRIPT,u)||"");if(z(u,"Script"))return Fd(he(u));throw new P(905,!1)}function Hd(u){return gl(u[0])}function js(u){return function Ku(u){return Qc()?.createScriptURL(u)||u}(u[0])}function _a(u,f,y){return function dl(u,f){return"src"===f&&("embed"===u||"frame"===u||"iframe"===u||"media"===u||"script"===u)||"href"===f&&("base"===u||"link"===u)?Mo:Wa}(f,y)(u)}function td(){const u=Bt();return u&&u[Ai]}const Hu=new Gr("ENVIRONMENT_INITIALIZER"),ku=new Gr("INJECTOR",-1),pf=new Gr("INJECTOR_DEF_TYPES");class hf{get(f,y=Ut){if(y===Ut){const S=new Error(`NullInjectorError: No provider for ${p(f)}!`);throw S.name="NullInjectorError",S}return y}}function Wv(u){return{\u0275providers:u}}function ff(...u){return{\u0275providers:mf(0,u),\u0275fromNgModule:!0}}function mf(u,...f){const y=[],S=new Set;let x;return Pe(f,w=>{const re=w;zu(re,y,[],S)&&(x||(x=[]),x.push(re))}),void 0!==x&&_f(x,y),y}function _f(u,f){for(let y=0;y<u.length;y++){const{providers:x}=u[y];Gu(x,w=>{f.push(w)})}}
1function zu(u,f,y,S){if(!(u=v(u)))return!1;let x=null,w=Xe(u);const re=!w&&In(u);if(w||re){if(re&&!re.standalone)return!1;x=u}else{const Ce=u.ngModule;if(w=Xe(Ce),!w)return!1;x=Ce}const fe=S.has(x);if(re){if(fe)return!1;if(S.add(x),re.dependencies){const Ce="function"==typeof re.dependencies?re.dependencies():re.dependencies;for(const we of Ce)zu(we,f,y,S)}}else{if(!w)return!1;{if(null!=w.imports&&!fe){let we;S.add(x);try{Pe(w.imports,Ze=>{zu(Ze,f,y,S)&&(we||(we=[]),we.push(Ze))})}finally{}void 0!==we&&_f(we,f)}if(!fe){const we=Ye(x)||(()=>new x);f.push({provide:x,useFactory:we,deps:un},{provide:pf,useValue:x,multi:!0},{provide:Hu,useValue:()=>St(x),multi:!0})}const Ce=w.providers;null==Ce||fe||Gu(Ce,Ze=>{f.push(Ze)})}}return x!==u&&void 0!==u.providers}function Gu(u,f){for(let y of u)O(y)&&(y=y.\u0275providers),Array.isArray(y)?Gu(y,f):f(y)}const Kv=r({provide:String,useValue:r});function Yu(u){return null!==u&&"object"==typeof u&&Kv in u}function Bl(u){return"function"==typeof u}const Qu=new Gr("Set Injector scope."),zd={},$v={};let Xu;function Gd(){return void 0===Xu&&(Xu=new hf),Xu}class Ul{}class Ef extends Ul{get destroyed(){return this._destroyed}constructor(f,y,S,x){super(),this.parent=y,this.source=S,this.scopes=x,this.records=new Map,this._ngOnDestroyHooks=new Set,this._onDestroyHooks=[],this._destroyed=!1,Ju(f,re=>this.processProvider(re)),this.records.set(ku,cc(void 0,this)),x.has("environment")&&this.records.set(Ul,cc(void 0,this));const w=this.records.get(Qu);null!=w&&"string"==typeof w.value&&this.scopes.add(w.value),this.injectorDefTypes=new Set(this.get(pf.multi,un,mt.Self))}destroy(){this.assertNotDestroyed(),this._destroyed=!0;try{for(const f of this._ngOnDestroyHooks)f.ngOnDestroy();for(const f of this._onDestroyHooks)f()}finally{this.records.clear(),this._ngOnDestroyHooks.clear(),this.injectorDefTypes.clear(),this._onDestroyHooks.length=0}}onDestroy(f){this._onDestroyHooks.push(f)}runInContext(f){this.assertNotDestroyed();const y=Dt(this),S=tt(void 0);try{return f()}finally{Dt(y),tt(S)}}get(f,y=Ut,S=mt.Default){this.assertNotDestroyed(),S=st(S);const x=Dt(this),w=tt(void 0);try{if(!(S&mt.SkipSelf)){let fe=this.records.get(f);if(void 0===fe){const Ce=function Yv(u){return"function"==typeof u||"object"==typeof u&&u instanceof Gr}(f)&&_t(f);fe=Ce&&this.injectableDefInScope(Ce)?cc(Zu(f),zd):null,this.records.set(f,fe)}if(null!=fe)return this.hydrate(f,fe)}return(S&mt.Self?Gd():this.parent).get(f,y=S&mt.Optional&&y===Ut?null:y)}catch(re){if("NullInjectorError"===re.name){if((re[ot]=re[ot]||[]).unshift(p(f)),x)throw re;return function at(u,f,y,S){const x=u[ot];throw f[Vt]&&x.unshift(f[Vt]),u.message=function Jt(u,f,y,S=null){u=u&&"\n"===u.charAt(0)&&u.charAt(1)==hn?u.slice(2):u;let x=p(f);if(Array.isArray(f))x=f.map(p).join(" -> ");else if("object"==typeof f){let w=[];for(let re in f)if(f.hasOwnProperty(re)){let fe=f[re];w.push(re+":"+("string"==typeof fe?JSON.stringify(fe):p(fe)))}x=`{${w.join(", ")}}`}return`${y}${S?"("+S+")":""}[${x}]: ${u.replace(zt,"\n ")}`}("\n"+u.message,x,y,S),u[gt]=x,u[ot]=null,u}(re,f,"R3InjectorError",this.source)}throw re}finally{tt(w),Dt(x)}}resolveInjectorInitializers(){const f=Dt(this),y=tt(void 0);try{const S=this.get(Hu.multi,un,mt.Self);for(const x of S)x()}finally{Dt(f),tt(y)}}toString(){const f=[],y=this.records;for(const S of y.keys())f.push(p(S));return`R3Injector[${f.join(", ")}]`}assertNotDestroyed(){if(this._destroyed)throw new P(205,!1)}processProvider(f){let y=Bl(f=v(f))?f:v(f&&f.provide);const S=function kv(u){return Yu(u)?cc(void 0,u.useValue):cc(yf(u),zd)}(f);if(Bl(f)||!0!==f.multi)this.records.get(y);else{let x=this.records.get(y);x||(x=cc(void 0,zd,!0),x.factory=()=>xe(x.multi),this.records.set(y,x)),y=f,x.multi.push(f)}this.records.set(y,S)}hydrate(f,y){return y.value===zd&&(y.value=$v,y.value=y.factory()),"object"==typeof y.value&&y.value&&function Gv(u){return null!==u&&"object"==typeof u&&"function"==typeof u.ngOnDestroy}(y.value)&&this._ngOnDestroyHooks.add(y.value),y.value}injectableDefInScope(f){if(!f.providedIn)return!1;const y=v(f.providedIn);return"string"==typeof y?"any"===y||this.scopes.has(y):this.injectorDefTypes.has(y)}}function Zu(u){const f=_t(u),y=null!==f?f.factory:Ye(u);if(null!==y)return y;if(u instanceof Gr)throw new P(204,!1);if(u instanceof Function)return function Hv(u){const f=u.length;if(f>0)throw Nt(f,"?"),new P(204,!1);const y=function Be(u){return u&&(u[pt]||u[Yt])||null}(u);return null!==y?()=>y.factory(u):()=>new u}(u);throw new P(204,!1)}function yf(u,f,y){let S;if(Bl(u)){const x=v(u);return Ye(x)||Zu(x)}if(Yu(u))S=()=>v(u.useValue);else if(function vf(u){return!(!u||!u.useFactory)}(u))S=()=>u.useFactory(...xe(u.deps||[]));else if(function gf(u){return!(!u||!u.useExisting)}(u))S=()=>St(v(u.useExisting));else{const x=v(u&&(u.useClass||u.provide));if(!function zv(u){return!!u.deps}(u))return Ye(x)||Zu(x);S=()=>new x(...xe(u.deps))}return S}function cc(u,f,y=!1){return{factory:u,value:f,multi:y?[]:void 0}}function Ju(u,f){for(const y of u)Array.isArray(y)?Ju(y,f):y&&O(y)?Ju(y.\u0275providers,f):f(y)}class Cf{}class Yd{}class Xv{resolveComponentFactory(f){throw function Qv(u){const f=Error(`No component factory found for ${p(u)}. Did you add it to @NgModule.entryComponents?`);return f.ngComponent=u,f}(f)}}let nd=(()=>{class u{}return u.NULL=new Xv,u})();function Zv(){return dc(li(),Bt())}function dc(u,f){return new rd(Vr(u,f))}let rd=(()=>{class u{constructor(y){this.nativeElement=y}}return u.__NG_ELEMENT_ID__=Zv,u})();function Jv(u){return u instanceof rd?u.nativeElement:u}class Of{}let qv=(()=>{class u{}return u.__NG_ELEMENT_ID__=()=>function eE(){const u=Bt(),y=Ni(li().index,u);return(mi(y)?y:u)[sr]}(),u})(),Mf=(()=>{class u{}return u.\u0275prov=Ee({token:u,providedIn:"root",factory:()=>null}),u})();class Pf{constructor(f){this.full=f,this.major=f.split(".")[0],this.minor=f.split(".")[1],this.patch=f.split(".").slice(2).join(".")}}const bf=new Pf("15.2.10"),Qd={},qu="ngOriginalError";function ep(u){return u[qu]}
1class id{constructor(){this._console=console}handleError(f){const y=this._findOriginalError(f);this._console.error("ERROR",f),y&&this._console.error("ORIGINAL ERROR",y)}_findOriginalError(f){let y=f&&ep(f);for(;y&&ep(y);)y=ep(y);return y||null}}function Sf(u){return u.ownerDocument.defaultView}function If(u){return u.ownerDocument}function Tf(u){return u.ownerDocument.body}function ul(u){return u instanceof Function?u():u}function Rf(u,f,y){let S=u.length;for(;;){const x=u.indexOf(f,y);if(-1===x)return x;if(0===x||u.charCodeAt(x-1)<=32){const w=f.length;if(x+w===S||u.charCodeAt(x+w)<=32)return x}y=x+1}}const xf="ng-template";function lE(u,f,y){let S=0,x=!0;for(;S<u.length;){let w=u[S++];if("string"==typeof w&&x){const re=u[S++];if(y&&"class"===w&&-1!==Rf(re.toLowerCase(),f,0))return!0}else{if(1===w){for(;S<u.length&&"string"==typeof(w=u[S++]);)if(w.toLowerCase()===f)return!0;return!1}"number"==typeof w&&(x=!1)}}return!1}function Lf(u){return 4===u.type&&u.value!==xf}function cE(u,f,y){return f===(4!==u.type||y?u.value:xf)}function dE(u,f,y){let S=4;const x=u.attrs||[],w=function hE(u){for(let f=0;f<u.length;f++)if(vi(u[f]))return f;return u.length}(x);let re=!1;for(let fe=0;fe<f.length;fe++){const Ce=f[fe];if("number"!=typeof Ce){if(!re)if(4&S){if(S=2|1&S,""!==Ce&&!cE(u,Ce,y)||""===Ce&&1===f.length){if(za(S))return!1;re=!0}}else{const we=8&S?Ce:f[++fe];if(8&S&&null!==u.attrs){if(!lE(u.attrs,we,y)){if(za(S))return!1;re=!0}continue}const Et=uE(8&S?"class":Ce,x,Lf(u),y);if(-1===Et){if(za(S))return!1;re=!0;continue}if(""!==we){let Qt;Qt=Et>w?"":x[Et+1].toLowerCase();const ln=8&S?Qt:null;if(ln&&-1!==Rf(ln,we,0)||2&S&&we!==Qt){if(za(S))return!1;re=!0}}}}else{if(!re&&!za(S)&&!za(Ce))return!1;if(re&&za(Ce))continue;re=!1,S=Ce|1&S}}return za(S)||re}function za(u){return 0==(1&u)}function uE(u,f,y,S){if(null===f)return-1;let x=0;if(S||!y){let w=!1;for(;x<f.length;){const re=f[x];if(re===u)return x;if(3===re||6===re)w=!0;else{if(1===re||2===re){let fe=f[++x];for(;"string"==typeof fe;)fe=f[++x];continue}if(4===re)break;if(0===re){x+=4;continue}}x+=w?1:2}return-1}return function fE(u,f){let y=u.indexOf(4);if(y>-1)for(y++;y<u.length;){const S=u[y];if("number"==typeof S)return-1;if(S===f)return y;y++}return-1}(f,u)}function Bf(u,f,y=!1){for(let S=0;S<f.length;S++)if(dE(u,f[S],y))return!0;return!1}function mE(u,f){e:for(let y=0;y<f.length;y++){const S=f[y];if(u.length===S.length){for(let x=0;x<u.length;x++)if(u[x]!==S[x])continue e;return!0}}return!1}function Uf(u,f){return u?":not("+f.trim()+")":f}function _E(u){let f=u[0],y=1,S=2,x="",w=!1;for(;y<u.length;){let re=u[y];if("string"==typeof re)if(2&S){const fe=u[++y];x+="["+re+(fe.length>0?'="'+fe+'"':"")+"]"}else 8&S?x+="."+re:4&S&&(x+=" "+re);else""!==x&&!za(re)&&(f+=Uf(w,x),x=""),S=re,w=w||!za(S);y++}return""!==x&&(f+=Uf(w,x)),f}const Hr={};function wf(u){Ff(Fn(),Bt(),ro()+u,!1)}function Ff(u,f,y,S){if(!S)if(3==(3&f[Xn])){const w=u.preOrderCheckHooks;null!==w&&Ss(f,w,y)}else{const w=u.preOrderHooks;null!==w&&fa(f,w,0,y)}ti(y)}const Nf={\u0275\u0275defineInjectable:Ee,\u0275\u0275defineInjector:Je,\u0275\u0275inject:St,\u0275\u0275invalidFactoryDep:wt,resolveForwardRef:v};const yE=r({provide:String,useValue:r});function jf(u){return void 0!==u.useClass}function Wf(u){return void 0!==u.useFactory}const ME=Fo("Injectable",void 0,void 0,void 0,(u,f)=>function EE(u,f){let y=null,S=null;u.hasOwnProperty(pt)||Object.defineProperty(u,pt,{get:()=>(null===y&&(y=Ie().compileInjectable(Nf,`ng:///${u.name}/\u0275prov.js`,function OE(u,f){const y=f||{providedIn:null},S={name:u.name,type:u,typeArgumentCount:0,providedIn:y.providedIn};return(jf(y)||Wf(y))&&void 0!==y.deps&&(S.deps=Xa(y.deps)),jf(y)?S.useClass=y.useClass:function CE(u){return yE in u}(y)?S.useValue=y.useValue:Wf(y)?S.useFactory=y.useFactory:function DE(u){return void 0!==u.useExisting}(y)&&(S.useExisting=y.useExisting),S}(u,f))),y)}),u.hasOwnProperty(Zt)||Object.defineProperty(u,Zt,{get:()=>{if(null===S){const x=Ie();S=x.compileFactory(Nf,`ng:///${u.name}/\u0275fac.js`,{name:u.name,type:u,typeArgumentCount:0,deps:Ba(u),target:x.FactoryTarget.Injectable})}return S},configurable:!0})}(u,f));function tp(u,f=null,y=null,S){const x=Kf(u,f,y,S);
1return x.resolveInjectorInitializers(),x}function Kf(u,f=null,y=null,S,x=new Set){const w=[y||un,ff(u)];return S=S||("object"==typeof u?void 0:p(u)),new Ef(w,f||Gd(),S||null,x)}let vl=(()=>{class u{static create(y,S){if(Array.isArray(y))return tp({name:""},S,y,"");{const x=y.name??"";return tp({name:x},y.parent,y.providers,x)}}}return u.THROW_IF_NOT_FOUND=Ut,u.NULL=new hf,u.\u0275prov=Ee({token:u,providedIn:"any",factory:()=>St(ku)}),u.__NG_ELEMENT_ID__=-1,u})();function np(u){return u.length>1?" ("+function PE(u){const f=[];for(let y=0;y<u.length;++y){if(f.indexOf(u[y])>-1)return f.push(u[y]),f;f.push(u[y])}return f}(u.slice().reverse()).map(S=>p(S.token)).join(" -> ")+")":""}function rp(u,f,y,S){const x=[f],w=y(x),re=S?function tE(u,f){const y=`${u} caused by: ${f instanceof Error?f.message:f}`,S=Error(y);return S[qu]=f,S}(w,S):Error(w);return re.addKey=bE,re.keys=x,re.injectors=[u],re.constructResolvingMessage=y,re[qu]=S,re}function bE(u,f){this.injectors.push(u),this.keys.push(f),this.message=this.constructResolvingMessage(this.keys)}function Vf(u,f){const y=[];for(let S=0,x=f.length;S<x;S++){const w=f[S];y.push(w&&0!=w.length?w.map(p).join(" "):"?")}return Error("Cannot resolve all parameters for '"+p(u)+"'("+y.join(", ")+"). Make sure that all the parameters are decorated with Inject or have valid type annotations and that '"+p(u)+"' is decorated with Injectable.")}function xE(u,f){return Error(`Cannot mix multi providers and regular providers, got: ${u} ${f}`)}class pl{constructor(f,y){if(this.token=f,this.id=y,!f)throw new P(208,!1);this.displayName=p(this.token)}static get(f){return $f.get(v(f))}static get numberOfKeys(){return $f.numberOfKeys}}class LE{constructor(){this._allKeys=new Map}get(f){if(f instanceof pl)return f;if(this._allKeys.has(f))return this._allKeys.get(f);const y=new pl(f,pl.numberOfKeys);return this._allKeys.set(f,y),y}get numberOfKeys(){return this._allKeys.size}}const $f=new LE;class Xd{constructor(f,y,S){this.key=f,this.optional=y,this.visibility=S}static fromKey(f){return new Xd(f,!1,null)}}const BE=[];class Hf{constructor(f,y,S){this.key=f,this.resolvedFactories=y,this.multiProvider=S,this.resolvedFactory=this.resolvedFactories[0]}}class kf{constructor(f,y){this.factory=f,this.dependencies=y}}function UE(u){let f,y;if(u.useClass){const S=v(u.useClass);f=Rs().factory(S),y=Gf(S)}else u.useExisting?(f=S=>S,y=[Xd.fromKey(pl.get(u.useExisting))]):u.useFactory?(f=u.useFactory,y=function jE(u,f){if(f){const y=f.map(S=>[S]);return f.map(S=>Yf(u,S,y))}return Gf(u)}(u.useFactory,u.deps)):(f=()=>u.useValue,y=BE);return new kf(f,y)}function wE(u){return new Hf(pl.get(u.provide),[UE(u)],u.multi||!1)}function FE(u){const S=function NE(u,f){for(let y=0;y<u.length;y++){const S=u[y],x=f.get(S.key.id);if(x){if(S.multiProvider!==x.multiProvider)throw xE(x,S);if(S.multiProvider)for(let w=0;w<S.resolvedFactories.length;w++)x.resolvedFactories.push(S.resolvedFactories[w]);else f.set(S.key.id,S)}else{let w;w=S.multiProvider?new Hf(S.key,S.resolvedFactories.slice(),S.multiProvider):S,f.set(S.key.id,w)}}return f}(zf(u,[]).map(wE),new Map);return Array.from(S.values())}function zf(u,f){return u.forEach(y=>{if(y instanceof N)f.push({provide:y,useClass:y});else if(y&&"object"==typeof y&&void 0!==y.provide)f.push(y);else{if(!Array.isArray(y))throw function AE(u){return Error(`Invalid provider - only instances of Provider and Type are allowed, got: ${u}`)}(y);zf(y,f)}}),f}function Gf(u){const f=Rs().parameters(u);if(!f)return[];if(f.some(y=>null==y))throw Vf(u,f);return f.map(y=>Yf(u,y,f))}function Yf(u,f,y){let S=null,x=!1;if(!Array.isArray(f))return ip(f instanceof La?f.token:f,x,null);let w=null;for(let re=0;re<f.length;++re){const fe=f[re];fe instanceof N?S=fe:fe instanceof La?S=fe.token:fe instanceof ba?x=!0:fe instanceof la||fe instanceof Sa?w=fe:fe instanceof Gr&&(S=fe)}if(S=v(S),null!=S)return ip(S,x,w);throw Vf(u,y)}function ip(u,f,y){return new Xd(pl.get(u),f,y)}const od={};class pc{static resolve(f){return FE(f)}static resolveAndCreate(f,y){const S=pc.resolve(f);return pc.fromResolvedProviders(S,y)}
1static fromResolvedProviders(f,y){return new WE(f,y)}}let WE=(()=>{class u{constructor(y,S){this._constructionCounter=0,this._providers=y,this.parent=S||null;const x=y.length;this.keyIds=[],this.objs=[];for(let w=0;w<x;w++)this.keyIds[w]=y[w].key.id,this.objs[w]=od}get(y,S=Ut){return this._getByKey(pl.get(y),null,S)}resolveAndCreateChild(y){const S=pc.resolve(y);return this.createChildFromResolved(S)}createChildFromResolved(y){const S=new u(y);return S.parent=this,S}resolveAndInstantiate(y){return this.instantiateResolved(pc.resolve([y])[0])}instantiateResolved(y){return this._instantiateProvider(y)}getProviderAtIndex(y){if(y<0||y>=this._providers.length)throw function RE(u){return Error(`Index ${u} is out-of-bounds.`)}(y);return this._providers[y]}_new(y){if(this._constructionCounter++>this._getMaxNumberOfObjects())throw function IE(u,f){return rp(u,f,function(y){return`Cannot instantiate cyclic dependency!${np(y)}`})}(this,y.key);return this._instantiateProvider(y)}_getMaxNumberOfObjects(){return this.objs.length}_instantiateProvider(y){if(y.multiProvider){const S=[];for(let x=0;x<y.resolvedFactories.length;++x)S[x]=this._instantiate(y,y.resolvedFactories[x]);return S}return this._instantiate(y,y.resolvedFactories[0])}_instantiate(y,S){const x=S.factory;let w,re;try{w=S.dependencies.map(fe=>this._getByReflectiveDependency(fe))}catch(fe){throw fe.addKey&&fe.addKey(this,y.key),fe}try{re=x(...w)}catch(fe){throw function TE(u,f,y,S){return rp(u,S,function(x){const w=p(x[0].token);return`${f.message}: Error during instantiation of ${w}!${np(x)}.`},f)}(this,fe,0,y.key)}return re}_getByReflectiveDependency(y){return this._getByKey(y.key,y.visibility,y.optional?null:Ut)}_getByKey(y,S,x){return y===u.INJECTOR_KEY?this:S instanceof la?this._getByKeySelf(y,x):this._getByKeyDefault(y,x,S)}_getObjByKeyId(y){for(let S=0;S<this.keyIds.length;S++)if(this.keyIds[S]===y)return this.objs[S]===od&&(this.objs[S]=this._new(this._providers[S])),this.objs[S];return od}_throwOrNull(y,S){if(S!==Ut)return S;throw function SE(u,f){return rp(u,f,function(y){return`No provider for ${p(y[0].token)}!${np(y)}`})}(this,y)}_getByKeySelf(y,S){const x=this._getObjByKeyId(y.id);return x!==od?x:this._throwOrNull(y,S)}_getByKeyDefault(y,S,x){let w;for(w=x instanceof Sa?this.parent:this;w instanceof u;){const re=w,fe=re._getObjByKeyId(y.id);if(fe!==od)return fe;w=re.parent}return null!==w?w.get(y.token,S):this._throwOrNull(y,S)}get displayName(){return`ReflectiveInjector(providers: [${function KE(u,f){const y=[];for(let S=0;S<u._providers.length;++S)y[S]=f(u.getProviderAtIndex(S));return y}(this,S=>' "'+S.key.displayName+'" ').join(", ")}])`}toString(){return this.displayName}}return u.INJECTOR_KEY=pl.get(vl),u})();function hc(u,f=mt.Default){const y=Bt();return null===y?St(u,f):Zi(li(),y,v(u),f)}function Qf(){throw new Error("invalid")}function Xf(u,f){const y=u.contentQueries;if(null!==y)for(let S=0;S<y.length;S+=2){const w=y[S+1];if(-1!==w){const re=u.data[w];pa(y[S]),re.contentQueries(2,f[w],w)}}}function Zd(u,f,y,S,x,w,re,fe,Ce,we,Ze){const Et=f.blueprint.slice();return Et[Mr]=x,Et[Xn]=76|S,(null!==Ze||u&&1024&u[Xn])&&(Et[Xn]|=1024),xs(Et),Et[cr]=Et[Gi]=u,Et[Nr]=y,Et[fi]=re||u&&u[fi],Et[sr]=fe||u&&u[sr],Et[Ai]=Ce||u&&u[Ai]||null,Et[ii]=we||u&&u[ii]||null,Et[wr]=w,Et[Gt]=function wc(){return Yl++}(),Et[dn]=Ze,Et[Ri]=2==f.type?u[Ri]:Et,Et}function fc(u,f,y,S,x){let w=u.data[f];if(null===w)w=op(u,f,y,S,x),function os(){return hr.lFrame.inI18n}()&&(w.flags|=32);else if(64&w.type){w.type=y,w.value=S,w.attrs=x;const re=Vs();w.injectorIndex=null===re?-1:re.injectorIndex}return lo(w,!0),w}function op(u,f,y,S,x){const w=Ks(),re=na(),Ce=u.data[f]=function GE(u,f,y,S,x,w){return{type:y,index:S,insertBeforeIndex:null,injectorIndex:f?f.injectorIndex:-1,directiveStart:-1,directiveEnd:-1,directiveStylingLast:-1,componentOffset:-1,propertyBindings:null,flags:0,providerIndexes:0,value:x,attrs:w,mergedAttrs:null,localNames:null,initialInputs:void 0,inputs:null,outputs:null,tView:null,next:null,prev:null,projectionNext:null,child:null,parent:f,projection:null,styles:null,stylesWithoutHost:null,residualStyles:void 0,classes:null,classesWithoutHost:null,residualClasses:void 0,classBindings:0,styleBindings:0}}(0,re?w:w&&w.parent,y,f,S,x);return null===u.firstChild&&(u.firstChild=Ce),null!==w&&(re?null==w.child&&null!==Ce.parent&&(w.child=Ce):null===w.next&&(w.next=Ce,Ce.prev=w)),Ce}
1function sd(u,f,y,S){if(0===y)return-1;const x=f.length;for(let w=0;w<y;w++)f.push(S),u.blueprint.push(S),u.data.push(null);return x}function ap(u,f,y){Hs(f);try{const S=u.viewQuery;null!==S&&_p(1,S,y);const x=u.template;null!==x&&Zf(u,f,x,1,y),u.firstCreatePass&&(u.firstCreatePass=!1),u.staticContentQueries&&Xf(u,f),u.staticViewQueries&&_p(2,u.viewQuery,y);const w=u.components;null!==w&&function HE(u,f){for(let y=0;y<f.length;y++)f0(u,f[y])}(f,w)}catch(S){throw u.firstCreatePass&&(u.incompleteFirstPass=!0,u.firstCreatePass=!1),S}finally{f[Xn]&=-5,Xi()}}function Jd(u,f,y,S){const x=f[Xn];if(128!=(128&x)){Hs(f);try{xs(f),is(u.bindingStartIndex),null!==y&&Zf(u,f,y,2,S);const re=3==(3&x);if(re){const we=u.preOrderCheckHooks;null!==we&&Ss(f,we,null)}else{const we=u.preOrderHooks;null!==we&&fa(f,we,0,null),ve(f,0)}if(function p0(u){for(let f=sl(u);null!==f;f=Il(f)){if(!f[Cr])continue;const y=f[Gn];for(let S=0;S<y.length;S++){const x=y[S];512&x[Xn]||Lo(x[cr],1),x[Xn]|=512}}}(f),function u0(u){for(let f=sl(u);null!==f;f=Il(f))for(let y=qn;y<f.length;y++){const S=f[y],x=S[Mn];Li(S)&&Jd(x,S,x.template,S[Nr])}}(f),null!==u.contentQueries&&Xf(u,f),re){const we=u.contentCheckHooks;null!==we&&Ss(f,we)}else{const we=u.contentHooks;null!==we&&fa(f,we,1),ve(f,1)}!function VE(u,f){const y=u.hostBindingOpCodes;if(null!==y)try{for(let S=0;S<y.length;S++){const x=y[S];if(x<0)ti(~x);else{const w=x,re=y[++S],fe=y[++S];_r(re,w),fe(2,f[w])}}}finally{ti(-1)}}(u,f);const fe=u.components;null!==fe&&function $E(u,f){for(let y=0;y<f.length;y++)h0(u,f[y])}(f,fe);const Ce=u.viewQuery;if(null!==Ce&&_p(2,Ce,S),re){const we=u.viewCheckHooks;null!==we&&Ss(f,we)}else{const we=u.viewHooks;null!==we&&fa(f,we,2),ve(f,2)}!0===u.firstUpdatePass&&(u.firstUpdatePass=!1),f[Xn]&=-41,512&f[Xn]&&(f[Xn]&=-513,Lo(f[cr],-1))}finally{Xi()}}}function Zf(u,f,y,S,x){const w=ro(),re=2&S;try{ti(-1),re&&f.length>gn&&Ff(u,f,gn,!1),Si(re?2:0,x),y(S,x)}finally{ti(w),Si(re?3:1,x)}}function lp(u,f,y){if(Ao(f)){const x=f.directiveEnd;for(let w=f.directiveStart;w<x;w++){const re=u.data[w];re.contentQueries&&re.contentQueries(1,y[w],w)}}}function cp(u,f,y){et()&&(function e0(u,f,y,S){const x=y.directiveStart,w=y.directiveEnd;vo(y)&&function l0(u,f,y){const S=Vr(f,u),x=Jf(y),w=u[fi],re=qd(u,Zd(u,x,null,y.onPush?32:16,S,f,w,w.createRenderer(S,y),null,null,null));u[f.index]=re}(f,y,u.data[x+y.componentOffset]),u.firstCreatePass||Is(y,f),$(S,f);const re=y.initialInputs;for(let fe=x;fe<w;fe++){const Ce=u.data[fe],we=Jo(f,u,fe,y);$(we,f),null!==re&&c0(0,fe-x,we,Ce,0,re),ri(Ce)&&(Ni(y.index,f)[Nr]=Jo(f,u,fe,y))}}(u,f,y,Vr(y,f)),64==(64&y.flags)&&rm(u,f,y))}function dp(u,f,y=Vr){const S=f.localNames;if(null!==S){let x=f.index+1;for(let w=0;w<S.length;w+=2){const re=S[w+1],fe=-1===re?y(f,u):u[re];u[x++]=fe}}}function Jf(u){const f=u.tView;return null===f||f.incompleteFirstPass?u.tView=up(1,null,u.template,u.decls,u.vars,u.directiveDefs,u.pipeDefs,u.viewQuery,u.schemas,u.consts):f}function up(u,f,y,S,x,w,re,fe,Ce,we){const Ze=gn+S,Et=Ze+x,Qt=function kE(u,f){const y=[];for(let S=0;S<f;S++)y.push(S<u?null:Hr);return y}(Ze,Et),ln="function"==typeof we?we():we;return Qt[Mn]={type:u,blueprint:Qt,template:y,queries:null,viewQuery:fe,declTNode:f,data:Qt.slice().fill(null,Ze),bindingStartIndex:Ze,expandoStartIndex:Et,hostBindingOpCodes:null,firstCreatePass:!0,firstUpdatePass:!0,staticViewQueries:!1,staticContentQueries:!1,preOrderHooks:null,preOrderCheckHooks:null,contentHooks:null,contentCheckHooks:null,viewHooks:null,viewCheckHooks:null,destroyHooks:null,cleanup:null,contentQueries:null,components:null,directiveRegistry:"function"==typeof w?w():w,pipeRegistry:"function"==typeof re?re():re,firstChild:null,schemas:Ce,consts:ln,incompleteFirstPass:!1}}function qf(u,f,y,S){const x=om(f);null===y?x.push(S):(x.push(y),u.firstCreatePass&&sm(u).push(S,x.length-1))}function em(u,f,y,S){for(let x in u)if(u.hasOwnProperty(x)){y=null===y?{}:y;const w=u[x];null===S?tm(y,f,x,w):S.hasOwnProperty(x)&&tm(y,f,S[x],w)}return y}function tm(u,f,y,S){u.hasOwnProperty(y)?u[y].push(f,S):u[y]=[f,S]}function Fa(u,f,y,S,x,w,re,fe){const Ce=Vr(f,y);let Ze,we=f.inputs;!fe&&null!=we&&(Ze=we[S])?(gp(u,y,Ze,S,x),vo(f)&&function XE(u,f){const y=Ni(f,u);
116&y[Xn]||(y[Xn]|=32)}(y,f.index)):3&f.type&&(S=function QE(u){return"class"===u?"className":"for"===u?"htmlFor":"formaction"===u?"formAction":"innerHtml"===u?"innerHTML":"readonly"===u?"readOnly":"tabindex"===u?"tabIndex":u}(S),x=null!=re?re(x,f.value||"",S):x,w.setProperty(Ce,S,x))}function pp(u,f,y,S){if(et()){const x=null===S?null:{"":-1},w=function n0(u,f){const y=u.directiveRegistry;let S=null,x=null;if(y)for(let w=0;w<y.length;w++){const re=y[w];if(Bf(f,re.selectors,!1))if(S||(S=[]),ri(re))if(null!==re.findHostDirectiveDefs){const fe=[];x=x||new Map,re.findHostDirectiveDefs(re,fe,x),S.unshift(...fe,re),hp(u,f,fe.length)}else S.unshift(re),hp(u,f,0);else x=x||new Map,re.findHostDirectiveDefs?.(re,S,x),S.push(re)}return null===S?null:[S,x]}(u,y);let re,fe;null===w?re=fe=null:[re,fe]=w,null!==re&&nm(u,f,y,re,x,fe),x&&function r0(u,f,y){if(f){const S=u.localNames=[];for(let x=0;x<f.length;x+=2){const w=y[f[x+1]];if(null==w)throw new P(-301,!1);S.push(f[x],w)}}}(y,S,x)}y.mergedAttrs=io(y.mergedAttrs,y.attrs)}function nm(u,f,y,S,x,w){for(let we=0;we<S.length;we++)Zo(Is(y,f),u,S[we].type);!function s0(u,f,y){u.flags|=1,u.directiveStart=f,u.directiveEnd=f+y,u.providerIndexes=f}(y,u.data.length,S.length);for(let we=0;we<S.length;we++){const Ze=S[we];Ze.providersResolver&&Ze.providersResolver(Ze)}let re=!1,fe=!1,Ce=sd(u,f,S.length,null);for(let we=0;we<S.length;we++){const Ze=S[we];y.mergedAttrs=io(y.mergedAttrs,Ze.hostAttrs),a0(u,y,f,Ce,Ze),o0(Ce,Ze,x),null!==Ze.contentQueries&&(y.flags|=4),(null!==Ze.hostBindings||null!==Ze.hostAttrs||0!==Ze.hostVars)&&(y.flags|=64);const Et=Ze.type.prototype;!re&&(Et.ngOnChanges||Et.ngOnInit||Et.ngDoCheck)&&((u.preOrderHooks??(u.preOrderHooks=[])).push(y.index),re=!0),!fe&&(Et.ngOnChanges||Et.ngDoCheck)&&((u.preOrderCheckHooks??(u.preOrderCheckHooks=[])).push(y.index),fe=!0),Ce++}!function YE(u,f,y){const x=f.directiveEnd,w=u.data,re=f.attrs,fe=[];let Ce=null,we=null;for(let Ze=f.directiveStart;Ze<x;Ze++){const Et=w[Ze],Qt=y?y.get(Et):null,yn=Qt?Qt.outputs:null;Ce=em(Et.inputs,Ze,Ce,Qt?Qt.inputs:null),we=em(Et.outputs,Ze,we,yn);const Wn=null===Ce||null===re||Lf(f)?null:d0(Ce,Ze,re);fe.push(Wn)}null!==Ce&&(Ce.hasOwnProperty("class")&&(f.flags|=8),Ce.hasOwnProperty("style")&&(f.flags|=16)),f.initialInputs=fe,f.inputs=Ce,f.outputs=we}(u,y,w)}function rm(u,f,y){const S=y.directiveStart,x=y.directiveEnd,w=y.index,re=function ei(){return hr.lFrame.currentDirectiveIndex}();try{ti(w);for(let fe=S;fe<x;fe++){const Ce=u.data[fe],we=f[fe];no(fe),(null!==Ce.hostBindings||0!==Ce.hostVars||null!==Ce.hostAttrs)&&t0(Ce,we)}}finally{ti(-1),no(re)}}function t0(u,f){null!==u.hostBindings&&u.hostBindings(1,f)}function hp(u,f,y){f.componentOffset=y,(u.components??(u.components=[])).push(f.index)}function o0(u,f,y){if(y){if(f.exportAs)for(let S=0;S<f.exportAs.length;S++)y[f.exportAs[S]]=u;ri(f)&&(y[""]=u)}}function a0(u,f,y,S,x){u.data[S]=x;const w=x.factory||(x.factory=Ye(x.type)),re=new yt(w,ri(x),hc);u.blueprint[S]=re,y[S]=re,function JE(u,f,y,S,x){const w=x.hostBindings;if(w){let re=u.hostBindingOpCodes;null===re&&(re=u.hostBindingOpCodes=[]);const fe=~f.index;(function qE(u){let f=u.length;for(;f>0;){const y=u[--f];if("number"==typeof y&&y<0)return y}return 0})(re)!=fe&&re.push(fe),re.push(y,S,w)}}(u,f,S,sd(u,y,x.hostVars,Hr),x)}function el(u,f,y,S,x,w){const re=Vr(u,f);fp(f[sr],re,w,u.value,y,S,x)}function fp(u,f,y,S,x,w,re){if(null==w)u.removeAttribute(f,x,y);else{const fe=null==re?l(w):re(w,S||"",x);u.setAttribute(f,x,fe,y)}}function c0(u,f,y,S,x,w){const re=w[f];if(null!==re){const fe=S.setInput;for(let Ce=0;Ce<re.length;){const we=re[Ce++],Ze=re[Ce++],Et=re[Ce++];null!==fe?S.setInput(y,Et,we,Ze):y[Ze]=Et}}}function d0(u,f,y){let S=null,x=0;for(;x<y.length;){const w=y[x];if(0!==w)if(5!==w){if("number"==typeof w)break;if(u.hasOwnProperty(w)){null===S&&(S=[]);const re=u[w];for(let fe=0;fe<re.length;fe+=2)if(re[fe]===f){S.push(w,re[fe+1],y[x+1]);break}}x+=2}else x+=2;else x+=4}return S}function im(u,f,y,S){return[u,!0,!1,f,null,0,S,y,null,null]}function h0(u,f){const y=Ni(f,u);if(Li(y)){const S=y[Mn];48&y[Xn]?Jd(S,y,S.template,y[Nr]):y[Xr]>0&&mp(y)}}function mp(u){for(let S=sl(u);null!==S;S=Il(S))for(let x=qn;x<S.length;x++){const w=S[x];if(Li(w))if(512&w[Xn]){const re=w[Mn];Jd(re,w,re.template,w[Nr])}else w[Xr]>0&&mp(w)}const y=u[Mn].components;if(null!==y)for(let S=0;S<y.length;S++){const x=Ni(y[S],u);Li(x)&&x[Xr]>0&&mp(x)}}function f0(u,f){const y=Ni(f,u),S=y[Mn];(function m0(u,f){for(let y=f.length;y<u.blueprint.length;y++)f.push(u.blueprint[y])})(S,y),ap(S,y,y[Nr])}function qd(u,f){return u[Wr]?u[oi][Qr]=f:u[Wr]=f,u[oi]=f,f}function eu(u){for(;u;){u[Xn]|=32;const f=Wo(u);if(Ko(u)&&!f)return u;u=f}return null}function tu(u,f,y,S=!0){const x=f[fi];x.begin&&x.begin();try{Jd(u,f,u.template,y)}catch(re){throw S&&lm(f,re),re}finally{x.end&&x.end()}}function _p(u,f,y){pa(0),f(u,y)}function om(u){return u[ui]||(u[ui]=[])}function sm(u){return u.cleanup||(u.cleanup=[])}function am(u,f,y){return(null===u||ri(u))&&(y=function Oi(u){for(;Array.isArray(u);){if("object"==typeof u[Qn])return u;u=u[Mr]}return null}(y[f.index])),y[sr]}function lm(u,f){const y=u[ii],S=y?y.get(id,null):null;S&&S.handleError(f)}function gp(u,f,y,S,x){for(let w=0;w<y.length;){const re=y[w++],fe=y[w++],Ce=f[re],we=u.data[re];null!==we.setInput?we.setInput(Ce,x,S,fe):Ce[fe]=x}}function hl(u,f,y){const S=ko(f,u);Cd(u[sr],S,y)}function nu(u,f,y){let S=y?u.styles:null,x=y?u.classes:null,w=0;if(null!==f)for(let re=0;re<f.length;re++){const fe=f[re];"number"==typeof fe?w=fe:1==w?x=h(x,fe):2==w&&(S=h(S,fe+": "+f[++re]+";"))}y?u.styles=S:u.stylesWithoutHost=S,y?u.classes=x:u.classesWithoutHost=x}function ru(u,f,y,S,x=!1){for(;null!==y;){const w=f[y.index];if(null!==w&&S.push(Ii(w)),jr(w))for(let fe=qn;fe<w.length;fe++){const Ce=w[fe],we=Ce[Mn].firstChild;null!==we&&ru(Ce[Mn],Ce,we,S)}const re=y.type;if(8&re)ru(u,f,y.child,S);else if(32&re){const fe=ls(y,f);let Ce;for(;Ce=fe();)S.push(Ce)}else if(16&re){const fe=Td(f,y);if(Array.isArray(fe))S.push(...fe);else{const Ce=Wo(f[Ri]);ru(Ce[Mn],Ce,fe,S,!0)}}y=x?y.projectionNext:y.next}return S}class mc{get rootNodes(){const f=this._lView,y=f[Mn];return ru(y,f,y.firstChild,[])}constructor(f,y){this._lView=f,this._cdRefInjectingView=y,this._appRef=null,this._attachedToViewContainer=!1}get context(){return this._lView[Nr]}set context(f){this._lView[Nr]=f}get destroyed(){return 128==(128&this._lView[Xn])}destroy(){if(this._appRef)this._appRef.detachView(this);else if(this._attachedToViewContainer){const f=this._lView[cr];if(jr(f)){const y=f[Fr],S=y?y.indexOf(this):-1;S>-1&&(Al(f,S),Qe(y,S))}this._attachedToViewContainer=!1}Od(this._lView[Mn],this._lView)}onDestroy(f){qf(this._lView[Mn],this._lView,null,f)}markForCheck(){eu(this._cdRefInjectingView||this._lView)}detach(){this._lView[Xn]&=-65}reattach(){this._lView[Xn]|=64}detectChanges(){tu(this._lView[Mn],this._lView,this.context)}checkNoChanges(){}attachToViewContainerRef(){if(this._appRef)throw new P(902,!1);this._attachedToViewContainer=!0}detachFromAppRef(){this._appRef=null,function Bu(u,f){_l(u,f,f[sr],2,null,null)}(this._lView[Mn],this._lView)}attachToAppRef(f){if(this._attachedToViewContainer)throw new P(902,!1);this._appRef=f}}
1class _0 extends mc{constructor(f){super(f),this._view=f}detectChanges(){const f=this._view;tu(f[Mn],f,f[Nr],!1)}checkNoChanges(){}get context(){return null}}class cm extends nd{constructor(f){super(),this.ngModule=f}resolveComponentFactory(f){const y=In(f);return new _c(y,this.ngModule)}}function dm(u){const f=[];for(let y in u)u.hasOwnProperty(y)&&f.push({propName:u[y],templateName:y});return f}class v0{constructor(f,y){this.injector=f,this.parentInjector=y}get(f,y,S){S=st(S);const x=this.injector.get(f,Qd,S);return x!==Qd||y===Qd?x:this.parentInjector.get(f,y,S)}}class _c extends Yd{get inputs(){return dm(this.componentDef.inputs)}get outputs(){return dm(this.componentDef.outputs)}constructor(f,y){super(),this.componentDef=f,this.ngModule=y,this.componentType=f.type,this.selector=function gE(u){return u.map(_E).join(",")}(f.selectors),this.ngContentSelectors=f.ngContentSelectors?f.ngContentSelectors:[],this.isBoundToModule=!!y}create(f,y,S,x){let w=(x=x||this.ngModule)instanceof Ul?x:x?.injector;w&&null!==this.componentDef.getStandaloneInjector&&(w=this.componentDef.getStandaloneInjector(w)||w);const re=w?new v0(f,w):f,fe=re.get(Of,null);if(null===fe)throw new P(407,!1);const Ce=re.get(Mf,null),we=fe.createRenderer(null,this.componentDef),Ze=this.componentDef.selectors[0][0]||"div",Et=S?function zE(u,f,y){return u.selectRootElement(f,y===Wt.ShadowDom)}(we,S,this.componentDef.encapsulation):Nc(we,Ze,function g0(u){const f=u.toLowerCase();return"svg"===f?Ro:"math"===f?ao:null}(Ze)),Qt=this.componentDef.onPush?288:272,ln=up(0,null,null,1,0,null,null,null,null,null),yn=Zd(null,ln,null,Qt,null,null,fe,we,Ce,re,null);let Wn,Zn;Hs(yn);try{const dr=this.componentDef;let Ur,Bn=null;dr.findHostDirectiveDefs?(Ur=[],Bn=new Map,dr.findHostDirectiveDefs(dr,Ur,Bn),Ur.push(dr)):Ur=[dr];const kr=function E0(u,f){const y=u[Mn],S=gn;return u[S]=f,fc(y,S,2,"#host",null)}(yn,Et),rs=function y0(u,f,y,S,x,w,re,fe){const Ce=x[Mn];!function C0(u,f,y,S){for(const x of u)f.mergedAttrs=io(f.mergedAttrs,x.hostAttrs);null!==f.mergedAttrs&&(nu(f,f.mergedAttrs,!0),null!==y&&xd(S,y,f))}(S,u,f,re);const we=w.createRenderer(f,y),Ze=Zd(x,Jf(y),null,y.onPush?32:16,x[u.index],u,w,we,fe||null,null,null);return Ce.firstCreatePass&&hp(Ce,u,S.length-1),qd(x,Ze),x[u.index]=Ze}(kr,Et,dr,Ur,yn,fe,we);Zn=So(ln,gn),Et&&function O0(u,f,y,S){if(S)$r(u,y,["ng-version",bf.full]);else{const{attrs:x,classes:w}=function vE(u){const f=[],y=[];let S=1,x=2;for(;S<u.length;){let w=u[S];if("string"==typeof w)2===x?""!==w&&f.push(w,u[++S]):8===x&&y.push(w);else{if(!za(x))break;x=w}S++}return{attrs:f,classes:y}}(f.selectors[0]);x&&$r(u,y,x),w&&w.length>0&&Rd(u,y,w.join(" "))}}(we,dr,Et,S),void 0!==y&&function M0(u,f,y){const S=u.projection=[];for(let x=0;x<f.length;x++){const w=y[x];S.push(null!=w?Array.from(w):null)}}(Zn,this.ngContentSelectors,y),Wn=function D0(u,f,y,S,x,w){const re=li(),fe=x[Mn],Ce=Vr(re,x);nm(fe,x,re,y,null,S);for(let Ze=0;Ze<y.length;Ze++)$(Jo(x,fe,re.directiveStart+Ze,re),x);rm(fe,x,re),Ce&&$(Ce,x);const we=Jo(x,fe,re.directiveStart+re.componentOffset,re);if(u[Nr]=x[Nr]=we,null!==w)for(const Ze of w)Ze(we,f);return lp(fe,re,u),we}(rs,dr,Ur,Bn,yn,[pm]),ap(ln,yn,null)}finally{Xi()}return new um(this.componentType,Wn,dc(Zn,yn),yn,Zn)}}class um extends Cf{constructor(f,y,S,x,w){super(),this.location=S,this._rootLView=x,this._tNode=w,this.instance=y,this.hostView=this.changeDetectorRef=new _0(x),this.componentType=f}setInput(f,y){const S=this._tNode.inputs;let x;if(null!==S&&(x=S[f])){const w=this._rootLView;gp(w[Mn],w,x,f,y),eu(Ni(this._tNode.index,w))}}get injector(){return new oa(this._tNode,this._rootLView)}destroy(){this.hostView.destroy()}onDestroy(f){this.hostView.onDestroy(f)}}function pm(){const u=li();Yo(Bt()[Mn],u)}function hm(u){return Object.getPrototypeOf(u.prototype).constructor}function vp(u){let f=hm(u.type),y=!0;const S=[u];for(;f;){let x;if(ri(u))x=f.\u0275cmp||f.\u0275dir;else{if(f.\u0275cmp)throw new P(903,!1);x=f.\u0275dir}if(x){if(y){S.push(x);const re=u;re.inputs=Ep(u.inputs),re.declaredInputs=Ep(u.declaredInputs),re.outputs=Ep(u.outputs);const fe=x.hostBindings;fe&&I0(u,fe);const Ce=x.viewQuery,we=x.contentQueries;if(Ce&&b0(u,Ce),we&&S0(u,we),a(u.inputs,x.inputs),a(u.declaredInputs,x.declaredInputs),a(u.outputs,x.outputs),ri(x)&&x.data.animation){const Ze=u.data;Ze.animation=(Ze.animation||[]).concat(x.data.animation)}}const w=x.features;if(w)for(let re=0;re<w.length;re++){const fe=w[re];fe&&fe.ngInherit&&fe(u),fe===vp&&(y=!1)}}f=Object.getPrototypeOf(f)}
1!function P0(u){let f=0,y=null;for(let S=u.length-1;S>=0;S--){const x=u[S];x.hostVars=f+=x.hostVars,x.hostAttrs=io(x.hostAttrs,y=io(y,x.hostAttrs))}}(S)}function Ep(u){return u===qt?{}:u===un?[]:u}function b0(u,f){const y=u.viewQuery;u.viewQuery=y?(S,x)=>{f(S,x),y(S,x)}:f}function S0(u,f){const y=u.contentQueries;u.contentQueries=y?(S,x,w)=>{f(S,x,w),y(S,x,w)}:f}function I0(u,f){const y=u.hostBindings;u.hostBindings=y?(S,x)=>{f(S,x),y(S,x)}:f}const T0=["providersResolver"],A0=["template","decls","consts","vars","onPush","ngContentSelectors","styles","encapsulation","schemas"];function fm(u){let y,f=hm(u.type);y=ri(u)?f.\u0275cmp:f.\u0275dir;const S=u;for(const x of T0)S[x]=y[x];if(ri(y))for(const x of A0)S[x]=y[x]}function mm(u){return f=>{f.findHostDirectiveDefs=_m,f.hostDirectives=(Array.isArray(u)?u:u()).map(y=>"function"==typeof y?{directive:v(y),inputs:qt,outputs:qt}:{directive:v(y.directive),inputs:gm(y.inputs),outputs:gm(y.outputs)})}}function _m(u,f,y){if(null!==u.hostDirectives)for(const S of u.hostDirectives){const x=Nn(S.directive);R0(x.declaredInputs,S.inputs),_m(x,f,y),y.set(x,S),f.push(x)}}function gm(u){if(void 0===u||0===u.length)return qt;const f={};for(let y=0;y<u.length;y+=2)f[u[y]]=u[y+1];return f}function R0(u,f){for(const y in f)f.hasOwnProperty(y)&&(u[f[y]]=u[y])}function iu(u){return!!yp(u)&&(Array.isArray(u)||!(u instanceof Map)&&Symbol.iterator in u)}function yp(u){return null!==u&&("function"==typeof u||"object"==typeof u)}function Em(u,f){const y=iu(u),S=iu(f);return y&&S?function x0(u,f,y){const S=u[Symbol.iterator](),x=f[Symbol.iterator]();for(;;){const w=S.next(),re=x.next();if(w.done&&re.done)return!0;if(w.done||re.done||!y(w.value,re.value))return!1}}(u,f,Em):!(y||!u||"object"!=typeof u&&"function"!=typeof u||S||!f||"object"!=typeof f&&"function"!=typeof f)||Object.is(u,f)}function tl(u,f,y){return u[f]=y}function ad(u,f){return u[f]}function ua(u,f,y){return!Object.is(u[f],y)&&(u[f]=y,!0)}function wl(u,f,y,S){const x=ua(u,f,y);return ua(u,f+1,S)||x}function ou(u,f,y,S,x){const w=wl(u,f,y,S);return ua(u,f+2,x)||w}function Ka(u,f,y,S,x,w){const re=wl(u,f,y,S);return wl(u,f+2,x,w)||re}function Cp(u,f,y,S){const x=Bt();return ua(x,Bo(),f)&&(Fn(),el(gi(),x,u,f,y,S)),Cp}function gc(u,f){let y=!1,S=ki();for(let w=1;w<f.length;w+=2)y=ua(u,S++,f[w])||y;if(is(S),!y)return Hr;let x=f[0];for(let w=1;w<f.length;w+=2)x+=l(f[w])+f[w+1];return x}function vc(u,f,y,S){return ua(u,Bo(),y)?f+l(y)+S:Hr}function Ec(u,f,y,S,x,w){const fe=wl(u,ki(),y,x);return Bi(2),fe?f+l(y)+S+l(x)+w:Hr}function yc(u,f,y,S,x,w,re,fe){const we=ou(u,ki(),y,x,re);return Bi(3),we?f+l(y)+S+l(x)+w+l(re)+fe:Hr}function Cc(u,f,y,S,x,w,re,fe,Ce,we){const Et=Ka(u,ki(),y,x,re,Ce);return Bi(4),Et?f+l(y)+S+l(x)+w+l(re)+fe+l(Ce)+we:Hr}function Dc(u,f,y,S,x,w,re,fe,Ce,we,Ze,Et){const Qt=ki();let ln=Ka(u,Qt,y,x,re,Ce);return ln=ua(u,Qt+4,Ze)||ln,Bi(5),ln?f+l(y)+S+l(x)+w+l(re)+fe+l(Ce)+we+l(Ze)+Et:Hr}function Oc(u,f,y,S,x,w,re,fe,Ce,we,Ze,Et,Qt,ln){const yn=ki();let Wn=Ka(u,yn,y,x,re,Ce);return Wn=wl(u,yn+4,Ze,Qt)||Wn,Bi(6),Wn?f+l(y)+S+l(x)+w+l(re)+fe+l(Ce)+we+l(Ze)+Et+l(Qt)+ln:Hr}function Mc(u,f,y,S,x,w,re,fe,Ce,we,Ze,Et,Qt,ln,yn,Wn){const Zn=ki();let dr=Ka(u,Zn,y,x,re,Ce);return dr=ou(u,Zn+4,Ze,Qt,yn)||dr,Bi(7),dr?f+l(y)+S+l(x)+w+l(re)+fe+l(Ce)+we+l(Ze)+Et+l(Qt)+ln+l(yn)+Wn:Hr}function Pc(u,f,y,S,x,w,re,fe,Ce,we,Ze,Et,Qt,ln,yn,Wn,Zn,dr){const Ur=ki();let Bn=Ka(u,Ur,y,x,re,Ce);return Bn=Ka(u,Ur+4,Ze,Qt,yn,Zn)||Bn,Bi(8),Bn?f+l(y)+S+l(x)+w+l(re)+fe+l(Ce)+we+l(Ze)+Et+l(Qt)+ln+l(yn)+Wn+l(Zn)+dr:Hr}function Dp(u,f,y,S,x,w){const re=Bt(),fe=vc(re,f,y,S);return fe!==Hr&&el(gi(),re,u,fe,x,w),Dp}function Op(u,f,y,S,x,w,re,fe){const Ce=Bt(),we=Ec(Ce,f,y,S,x,w);return we!==Hr&&el(gi(),Ce,u,we,re,fe),Op}function Mp(u,f,y,S,x,w,re,fe,Ce,we){const Ze=Bt(),Et=yc(Ze,f,y,S,x,w,re,fe);return Et!==Hr&&el(gi(),Ze,u,Et,Ce,we),Mp}function Pp(u,f,y,S,x,w,re,fe,Ce,we,Ze,Et){const Qt=Bt(),ln=Cc(Qt,f,y,S,x,w,re,fe,Ce,we);return ln!==Hr&&el(gi(),Qt,u,ln,Ze,Et),Pp}function bp(u,f,y,S,x,w,re,fe,Ce,we,Ze,Et,Qt,ln){const yn=Bt(),Wn=Dc(yn,f,y,S,x,w,re,fe,Ce,we,Ze,Et);return Wn!==Hr&&el(gi(),yn,u,Wn,Qt,ln),bp}function Sp(u,f,y,S,x,w,re,fe,Ce,we,Ze,Et,Qt,ln,yn,Wn){const Zn=Bt(),dr=Oc(Zn,f,y,S,x,w,re,fe,Ce,we,Ze,Et,Qt,ln);return dr!==Hr&&el(gi(),Zn,u,dr,yn,Wn),Sp}function Ip(u,f,y,S,x,w,re,fe,Ce,we,Ze,Et,Qt,ln,yn,Wn,Zn,dr){const Ur=Bt(),Bn=Mc(Ur,f,y,S,x,w,re,fe,Ce,we,Ze,Et,Qt,ln,yn,Wn);return Bn!==Hr&&el(gi(),Ur,u,Bn,Zn,dr),Ip}function Tp(u,f,y,S,x,w,re,fe,Ce,we,Ze,Et,Qt,ln,yn,Wn,Zn,dr,Ur,Bn){const kr=Bt(),rs=Pc(kr,f,y,S,x,w,re,fe,Ce,we,Ze,Et,Qt,ln,yn,Wn,Zn,dr);return rs!==Hr&&el(gi(),kr,u,rs,Ur,Bn),Tp}function Ap(u,f,y,S){const x=Bt(),w=gc(x,f);return w!==Hr&&el(gi(),x,u,w,y,S),Ap}function ym(u){const f=le(u);tu(f[Mn],f,u)}
1function Cm(u,f,y,S,x,w,re,fe){const Ce=Bt(),we=Fn(),Ze=u+gn,Et=we.firstCreatePass?function B0(u,f,y,S,x,w,re,fe,Ce){const we=f.consts,Ze=fc(f,u,4,re||null,zo(we,fe));pp(f,y,Ze,zo(we,Ce)),Yo(f,Ze);const Et=Ze.tView=up(2,Ze,S,x,w,f.directiveRegistry,f.pipeRegistry,null,f.schemas,we);return null!==f.queries&&(f.queries.template(f,Ze),Et.queries=f.queries.embeddedTView(Ze)),Ze}(Ze,we,Ce,f,y,S,x,w,re):we.data[Ze];lo(Et,!1);const Qt=Ce[sr].createComment("");ic(we,Ce,Qt,Et),$(Qt,Ce),qd(Ce,Ce[Ze]=im(Qt,Ce,Qt,Et)),qi(Et)&&cp(we,Ce,Et),null!=re&&dp(Ce,Et,fe)}function Dm(u,f,y,S){y>=u.data.length&&(u.data[y]=null,u.blueprint[y]=null),f[y]=S}function Om(u){return Oo(function gs(){return hr.lFrame.contextLView}(),gn+u)}function Rp(u,f,y){const S=Bt();return ua(S,Bo(),f)&&Fa(Fn(),gi(),S,u,f,S[sr],y,!1),Rp}function xp(u,f,y,S,x){const re=x?"class":"style";gp(u,y,f.inputs[re],re,S)}function su(u,f,y,S){const x=Bt(),w=Fn(),re=gn+u,fe=x[sr],Ce=w.firstCreatePass?function U0(u,f,y,S,x,w){const re=f.consts,Ce=fc(f,u,2,S,zo(re,x));return pp(f,y,Ce,zo(re,w)),null!==Ce.attrs&&nu(Ce,Ce.attrs,!1),null!==Ce.mergedAttrs&&nu(Ce,Ce.mergedAttrs,!0),null!==f.queries&&f.queries.elementStart(f,Ce),Ce}(re,w,x,f,y,S):w.data[re],we=x[re]=Nc(fe,f,function wo(){return hr.lFrame.currentNamespace}()),Ze=qi(Ce);return lo(Ce,!0),xd(fe,we,Ce),32!=(32&Ce.flags)&&ic(w,x,we,Ce),0===function me(){return hr.lFrame.elementDepthCount}()&&$(we,x),function W(){hr.lFrame.elementDepthCount++}(),Ze&&(cp(w,x,Ce),lp(w,Ce,x)),null!==S&&dp(x,Ce),su}function au(){let u=li();na()?Go():(u=u.parent,lo(u,!1));const f=u;!function De(){hr.lFrame.elementDepthCount--}();const y=Fn();return y.firstCreatePass&&(Yo(y,u),Ao(u)&&y.queries.elementEnd(u)),null!=f.classesWithoutHost&&function Kr(u){return 0!=(8&u.flags)}(f)&&xp(y,f,Bt(),f.classesWithoutHost,!0),null!=f.stylesWithoutHost&&function Pr(u){return 0!=(16&u.flags)}(f)&&xp(y,f,Bt(),f.stylesWithoutHost,!1),au}function Lp(u,f,y,S){return su(u,f,y,S),au(),Lp}function lu(u,f,y){const S=Bt(),x=Fn(),w=u+gn,re=x.firstCreatePass?function w0(u,f,y,S,x){const w=f.consts,re=zo(w,S),fe=fc(f,u,8,"ng-container",re);return null!==re&&nu(fe,re,!0),pp(f,y,fe,zo(w,x)),null!==f.queries&&f.queries.elementStart(f,fe),fe}(w,x,S,f,y):x.data[w];lo(re,!0);const fe=S[w]=S[sr].createComment("");return ic(x,S,fe,re),$(fe,S),qi(re)&&(cp(x,S,re),lp(x,re,S)),null!=y&&dp(S,re),lu}function cu(){let u=li();const f=Fn();return na()?Go():(u=u.parent,lo(u,!1)),f.firstCreatePass&&(Yo(f,u),Ao(u)&&f.queries.elementEnd(u)),cu}function Bp(u,f,y){return lu(u,f,y),cu(),Bp}function Mm(){return Bt()}function Up(u){return!!u&&"function"==typeof u.then}function Pm(u){return!!u&&"function"==typeof u.subscribe}const bm=Pm;function wp(u,f,y,S){const x=Bt(),w=Fn(),re=li();return Sm(w,x,x[sr],re,u,f,S),wp}function Fp(u,f){const y=li(),S=Bt(),x=Fn();return Sm(x,S,am(er(x.data),y,S),y,u,f),Fp}function Sm(u,f,y,S,x,w,re){const fe=qi(S),we=u.firstCreatePass&&sm(u),Ze=f[Nr],Et=om(f);let Qt=!0;if(3&S.type||re){const Wn=Vr(S,f),Zn=re?re(Wn):Wn,dr=Et.length,Ur=re?kr=>re(Ii(kr[S.index])):S.index;let Bn=null;if(!re&&fe&&(Bn=function F0(u,f,y,S){const x=u.cleanup;if(null!=x)for(let w=0;w<x.length-1;w+=2){const re=x[w];if(re===y&&x[w+1]===S){const fe=f[ui],Ce=x[w+2];return fe.length>Ce?fe[Ce]:null}"string"==typeof re&&(w+=2)}return null}(u,f,x,S.index)),null!==Bn)(Bn.__ngLastListenerFn__||Bn).__ngNextListenerFn__=w,Bn.__ngLastListenerFn__=w,Qt=!1;else{w=Tm(S,f,Ze,w,!1);const kr=y.listen(Zn,x,w);Et.push(w,kr),we&&we.push(x,Ur,dr,dr+1)}}else w=Tm(S,f,Ze,w,!1);const ln=S.outputs;let yn;if(Qt&&null!==ln&&(yn=ln[x])){const Wn=yn.length;if(Wn)for(let Zn=0;Zn<Wn;Zn+=2){const rs=f[yn[Zn]][yn[Zn+1]].subscribe(w),Cs=Et.length;Et.push(w,rs),we&&we.push(x,S.index,Cs,-(Cs+1))}}}function Im(u,f,y,S){try{return Si(6,f,y),!1!==y(S)}catch(x){return lm(u,x),!1}finally{Si(7,f,y)}}function Tm(u,f,y,S,x){return function w(re){if(re===Function)return S;eu(u.componentOffset>-1?Ni(u.index,f):f);let Ce=Im(f,y,S,re),we=w.__ngNextListenerFn__;for(;we;)Ce=Im(f,y,we,re)&&Ce,we=we.__ngNextListenerFn__;return x&&!1===Ce&&(re.preventDefault(),re.returnValue=!1),Ce}}
1function Am(u=1){return function zs(u){return(hr.lFrame.contextLView=function Ea(u,f){for(;u>0;)f=f[Gi],u--;return f}(u,hr.lFrame.contextLView))[Nr]}(u)}function N0(u,f){let y=null;const S=function pE(u){const f=u.attrs;if(null!=f){const y=f.indexOf(5);if(!(1&y))return f[y+1]}return null}(u);for(let x=0;x<f.length;x++){const w=f[x];if("*"!==w){if(null===S?Bf(u,w,!0):mE(S,w))return x}else y=x}return y}function Rm(u){const f=Bt()[Ri][wr];if(!f.projection){const S=f.projection=Nt(u?u.length:1,null),x=S.slice();let w=f.child;for(;null!==w;){const re=u?N0(w,u):0;null!==re&&(x[re]?x[re].projectionNext=w:S[re]=w,x[re]=w),w=w.next}}}function xm(u,f=0,y){const S=Bt(),x=Fn(),w=fc(x,gn+u,16,null,y||null);null===w.projection&&(w.projection=f),Go(),32!=(32&w.flags)&&function Ad(u,f,y){Gc(f[sr],0,f,y,Md(u,y,f),rc(y.parent||f[wr],y,f))}(x,S,w)}function Np(u,f,y){return du(u,"",f,"",y),Np}function du(u,f,y,S,x){const w=Bt(),re=vc(w,f,y,S);return re!==Hr&&Fa(Fn(),gi(),w,u,re,w[sr],x,!1),du}function jp(u,f,y,S,x,w,re){const fe=Bt(),Ce=Ec(fe,f,y,S,x,w);return Ce!==Hr&&Fa(Fn(),gi(),fe,u,Ce,fe[sr],re,!1),jp}function Wp(u,f,y,S,x,w,re,fe,Ce){const we=Bt(),Ze=yc(we,f,y,S,x,w,re,fe);return Ze!==Hr&&Fa(Fn(),gi(),we,u,Ze,we[sr],Ce,!1),Wp}function Kp(u,f,y,S,x,w,re,fe,Ce,we,Ze){const Et=Bt(),Qt=Cc(Et,f,y,S,x,w,re,fe,Ce,we);return Qt!==Hr&&Fa(Fn(),gi(),Et,u,Qt,Et[sr],Ze,!1),Kp}function Vp(u,f,y,S,x,w,re,fe,Ce,we,Ze,Et,Qt){const ln=Bt(),yn=Dc(ln,f,y,S,x,w,re,fe,Ce,we,Ze,Et);return yn!==Hr&&Fa(Fn(),gi(),ln,u,yn,ln[sr],Qt,!1),Vp}function $p(u,f,y,S,x,w,re,fe,Ce,we,Ze,Et,Qt,ln,yn){const Wn=Bt(),Zn=Oc(Wn,f,y,S,x,w,re,fe,Ce,we,Ze,Et,Qt,ln);return Zn!==Hr&&Fa(Fn(),gi(),Wn,u,Zn,Wn[sr],yn,!1),$p}function Hp(u,f,y,S,x,w,re,fe,Ce,we,Ze,Et,Qt,ln,yn,Wn,Zn){const dr=Bt(),Ur=Mc(dr,f,y,S,x,w,re,fe,Ce,we,Ze,Et,Qt,ln,yn,Wn);return Ur!==Hr&&Fa(Fn(),gi(),dr,u,Ur,dr[sr],Zn,!1),Hp}function kp(u,f,y,S,x,w,re,fe,Ce,we,Ze,Et,Qt,ln,yn,Wn,Zn,dr,Ur){const Bn=Bt(),kr=Pc(Bn,f,y,S,x,w,re,fe,Ce,we,Ze,Et,Qt,ln,yn,Wn,Zn,dr);return kr!==Hr&&Fa(Fn(),gi(),Bn,u,kr,Bn[sr],Ur,!1),kp}function zp(u,f,y){const S=Bt(),x=gc(S,f);return x!==Hr&&Fa(Fn(),gi(),S,u,x,S[sr],y,!1),zp}function uu(u,f){return u<<17|f<<2}function El(u){return u>>17&32767}function Gp(u){return 2|u}function Fl(u){return(131068&u)>>2}function Yp(u,f){return-131069&u|f<<2}function Qp(u){return 1|u}function Lm(u,f,y,S,x){const w=u[y+1],re=null===f;let fe=S?El(w):Fl(w),Ce=!1;for(;0!==fe&&(!1===Ce||re);){const Ze=u[fe+1];H0(u[fe],f)&&(Ce=!0,u[fe+1]=S?Qp(Ze):Gp(Ze)),fe=S?El(Ze):Fl(Ze)}Ce&&(u[y+1]=S?Gp(w):Qp(w))}function H0(u,f){return null===u||null==f||(Array.isArray(u)?u[1]:u)===f||!(!Array.isArray(u)||"string"!=typeof f)&&po(u,f)>=0}const Ws={textEnd:0,key:0,keyEnd:0,value:0,valueEnd:0};function Bm(u){return u.substring(Ws.key,Ws.keyEnd)}function k0(u){return u.substring(Ws.value,Ws.valueEnd)}function Um(u,f){const y=Ws.textEnd;return y===f?-1:(f=Ws.keyEnd=function Y0(u,f,y){for(;f<y&&u.charCodeAt(f)>32;)f++;return f}(u,Ws.key=f,y),bc(u,f,y))}function wm(u,f){const y=Ws.textEnd;let S=Ws.key=bc(u,f,y);return y===S?-1:(S=Ws.keyEnd=function Q0(u,f,y){let S;for(;f<y&&(45===(S=u.charCodeAt(f))||95===S||(-33&S)>=65&&(-33&S)<=90||S>=48&&S<=57);)f++;return f}(u,S,y),S=Nm(u,S,y),S=Ws.value=bc(u,S,y),S=Ws.valueEnd=function X0(u,f,y){let S=-1,x=-1,w=-1,re=f,fe=re;for(;re<y;){const Ce=u.charCodeAt(re++);if(59===Ce)return fe;34===Ce||39===Ce?fe=re=jm(u,Ce,re,y):f===re-4&&85===w&&82===x&&76===S&&40===Ce?fe=re=jm(u,41,re,y):Ce>32&&(fe=re),w=x,x=S,S=-33&Ce}return fe}(u,S,y),Nm(u,S,y))}function Fm(u){Ws.key=0,Ws.keyEnd=0,Ws.value=0,Ws.valueEnd=0,Ws.textEnd=u.length}function bc(u,f,y){for(;f<y&&u.charCodeAt(f)<=32;)f++;return f}function Nm(u,f,y,S){return(f=bc(u,f,y))<y&&f++,f}function jm(u,f,y,S){let x=-1,w=y;for(;w<S;){const re=u.charCodeAt(w++);if(re==f&&92!==x)return w;x=92==re&&92===x?0:re}throw new Error}function Xp(u,f,y){return Ya(u,f,y,!1),Xp}function Zp(u,f){return Ya(u,f,null,!0),Zp}function Ga(u){Qa($m,Z0,u,!1)}function Z0(u,f){for(let y=function G0(u){return Fm(u),wm(u,bc(u,0,Ws.textEnd))}(f);y>=0;y=wm(f,y))$m(u,Bm(f),k0(f))}function Wm(u){Qa(ry,nl,u,!0)}function nl(u,f){for(let y=function z0(u){return Fm(u),Um(u,bc(u,0,Ws.textEnd))}(f);y>=0;y=Um(f,y))Er(u,Bm(f),!0)}function Ya(u,f,y,S){const x=Bt(),w=Fn(),re=Bi(2);w.firstUpdatePass&&Vm(w,u,re,S),f!==Hr&&ua(x,re,f)&&Hm(w,w.data[ro()],x,x[sr],u,x[re+1]=function oy(u,f){return null==u||""===u||("string"==typeof f?u+=f:"object"==typeof u&&(u=p(he(u)))),u}(f,y),S,re)}function Qa(u,f,y,S){const x=Fn(),w=Bi(2);x.firstUpdatePass&&Vm(x,null,w,S);const re=Bt();if(y!==Hr&&ua(re,w,y)){const fe=x.data[ro()];if(zm(fe,S)&&!Km(x,w)){let Ce=S?fe.classesWithoutHost:fe.stylesWithoutHost;null!==Ce&&(y=h(Ce,y||"")),xp(x,fe,re,y,S)}else!function iy(u,f,y,S,x,w,re,fe){x===Hr&&(x=un);let Ce=0,we=0,Ze=0<x.length?x[0]:null,Et=0<w.length?w[0]:null;for(;null!==Ze||null!==Et;){const Qt=Ce<x.length?x[Ce+1]:void 0,ln=we<w.length?w[we+1]:void 0;let Wn,yn=null;Ze===Et?(Ce+=2,we+=2,Qt!==ln&&(yn=Et,Wn=ln)):null===Et||null!==Ze&&Ze<Et?(Ce+=2,yn=Ze):(we+=2,yn=Et,Wn=ln),null!==yn&&Hm(u,f,y,S,yn,Wn,re,fe),Ze=Ce<x.length?x[Ce]:null,Et=we<w.length?w[we]:null}}(x,fe,re,re[sr],re[w+1],re[w+1]=function ny(u,f,y){if(null==y||""===y)return un;const S=[],x=he(y);if(Array.isArray(x))for(let w=0;w<x.length;w++)u(S,x[w],!0);else if("object"==typeof x)for(const w in x)x.hasOwnProperty(w)&&u(S,w,x[w]);else"string"==typeof x&&f(S,x);return S}(u,f,y),S,w)}}function Km(u,f){return f>=u.expandoStartIndex}function Vm(u,f,y,S){const x=u.data;
1if(null===x[y+1]){const w=x[ro()],re=Km(u,y);zm(w,S)&&null===f&&!re&&(f=!1),f=function J0(u,f,y,S){const x=er(u);let w=S?f.residualClasses:f.residualStyles;if(null===x)0===(S?f.classBindings:f.styleBindings)&&(y=ld(y=Jp(null,u,f,y,S),f.attrs,S),w=null);else{const re=f.directiveStylingLast;if(-1===re||u[re]!==x)if(y=Jp(x,u,f,y,S),null===w){let Ce=function q0(u,f,y){const S=y?f.classBindings:f.styleBindings;if(0!==Fl(S))return u[El(S)]}(u,f,S);void 0!==Ce&&Array.isArray(Ce)&&(Ce=Jp(null,u,f,Ce[1],S),Ce=ld(Ce,f.attrs,S),function ey(u,f,y,S){u[El(y?f.classBindings:f.styleBindings)]=S}(u,f,S,Ce))}else w=function ty(u,f,y){let S;const x=f.directiveEnd;for(let w=1+f.directiveStylingLast;w<x;w++)S=ld(S,u[w].hostAttrs,y);return ld(S,f.attrs,y)}(u,f,S)}return void 0!==w&&(S?f.residualClasses=w:f.residualStyles=w),y}(x,w,f,S),function V0(u,f,y,S,x,w){let re=w?f.classBindings:f.styleBindings,fe=El(re),Ce=Fl(re);u[S]=y;let Ze,we=!1;if(Array.isArray(y)?(Ze=y[1],(null===Ze||po(y,Ze)>0)&&(we=!0)):Ze=y,x)if(0!==Ce){const Qt=El(u[fe+1]);u[S+1]=uu(Qt,fe),0!==Qt&&(u[Qt+1]=Yp(u[Qt+1],S)),u[fe+1]=function W0(u,f){return 131071&u|f<<17}(u[fe+1],S)}else u[S+1]=uu(fe,0),0!==fe&&(u[fe+1]=Yp(u[fe+1],S)),fe=S;else u[S+1]=uu(Ce,0),0===fe?fe=S:u[Ce+1]=Yp(u[Ce+1],S),Ce=S;we&&(u[S+1]=Gp(u[S+1])),Lm(u,Ze,S,!0),Lm(u,Ze,S,!1),function $0(u,f,y,S,x){const w=x?u.residualClasses:u.residualStyles;null!=w&&"string"==typeof f&&po(w,f)>=0&&(y[S+1]=Qp(y[S+1]))}(f,Ze,u,S,w),re=uu(fe,Ce),w?f.classBindings=re:f.styleBindings=re}(x,w,f,y,re,S)}}function Jp(u,f,y,S,x){let w=null;const re=y.directiveEnd;let fe=y.directiveStylingLast;for(-1===fe?fe=y.directiveStart:fe++;fe<re&&(w=f[fe],S=ld(S,w.hostAttrs,x),w!==u);)fe++;return null!==u&&(y.directiveStylingLast=fe),S}function ld(u,f,y){const S=y?1:2;let x=-1;if(null!==f)for(let w=0;w<f.length;w++){const re=f[w];"number"==typeof re?x=re:x===S&&(Array.isArray(u)||(u=void 0===u?[]:["",u]),Er(u,re,!!y||f[++w]))}return void 0===u?null:u}function $m(u,f,y){Er(u,f,he(y))}function ry(u,f,y){const S=String(f);""!==S&&!S.includes(" ")&&Er(u,S,y)}function Hm(u,f,y,S,x,w,re,fe){if(!(3&f.type))return;const Ce=u.data,we=Ce[fe+1],Ze=function K0(u){return 1==(1&u)}(we)?km(Ce,f,y,x,Fl(we),re):void 0;pu(Ze)||(pu(w)||function j0(u){return 2==(2&u)}(we)&&(w=km(Ce,null,y,x,fe,re)),function xl(u,f,y,S,x){if(f)x?u.addClass(y,S):u.removeClass(y,S);else{let w=-1===S.indexOf("-")?void 0:ca.DashCase;null==x?u.removeStyle(y,S,w):("string"==typeof x&&x.endsWith("!important")&&(x=x.slice(0,-10),w|=ca.Important),u.setStyle(y,S,x,w))}}(S,re,ko(ro(),y),x,w))}function km(u,f,y,S,x,w){const re=null===f;let fe;for(;x>0;){const Ce=u[x],we=Array.isArray(Ce),Ze=we?Ce[1]:Ce,Et=null===Ze;let Qt=y[x+1];Qt===Hr&&(Qt=Et?un:void 0);let ln=Et?Ci(Qt,S):Ze===S?Qt:void 0;if(we&&!pu(ln)&&(ln=Ci(Ce,S)),pu(ln)&&(fe=ln,re))return fe;const yn=u[x+1];x=re?El(yn):Fl(yn)}if(null!==f){let Ce=w?f.residualClasses:f.residualStyles;null!=Ce&&(fe=Ci(Ce,S))}return fe}function pu(u){return void 0!==u}function zm(u,f){return 0!=(u.flags&(f?8:16))}function Gm(u,f=""){const y=Bt(),S=Fn(),x=u+gn,w=S.firstCreatePass?fc(S,x,1,f,null):S.data[x],re=y[x]=Jl(y[sr],f);ic(S,y,re,w),lo(w,!1)}function qp(u){return hu("",u,""),qp}function hu(u,f,y){const S=Bt(),x=vc(S,u,f,y);return x!==Hr&&hl(S,ro(),x),hu}function eh(u,f,y,S,x){const w=Bt(),re=Ec(w,u,f,y,S,x);return re!==Hr&&hl(w,ro(),re),eh}function th(u,f,y,S,x,w,re){const fe=Bt(),Ce=yc(fe,u,f,y,S,x,w,re);return Ce!==Hr&&hl(fe,ro(),Ce),th}function nh(u,f,y,S,x,w,re,fe,Ce){const we=Bt(),Ze=Cc(we,u,f,y,S,x,w,re,fe,Ce);return Ze!==Hr&&hl(we,ro(),Ze),nh}function rh(u,f,y,S,x,w,re,fe,Ce,we,Ze){const Et=Bt(),Qt=Dc(Et,u,f,y,S,x,w,re,fe,Ce,we,Ze);return Qt!==Hr&&hl(Et,ro(),Qt),rh}function ih(u,f,y,S,x,w,re,fe,Ce,we,Ze,Et,Qt){const ln=Bt(),yn=Oc(ln,u,f,y,S,x,w,re,fe,Ce,we,Ze,Et,Qt);return yn!==Hr&&hl(ln,ro(),yn),ih}function oh(u,f,y,S,x,w,re,fe,Ce,we,Ze,Et,Qt,ln,yn){const Wn=Bt(),Zn=Mc(Wn,u,f,y,S,x,w,re,fe,Ce,we,Ze,Et,Qt,ln,yn);return Zn!==Hr&&hl(Wn,ro(),Zn),oh}function sh(u,f,y,S,x,w,re,fe,Ce,we,Ze,Et,Qt,ln,yn,Wn,Zn){const dr=Bt(),Ur=Pc(dr,u,f,y,S,x,w,re,fe,Ce,we,Ze,Et,Qt,ln,yn,Wn,Zn);return Ur!==Hr&&hl(dr,ro(),Ur),sh}function ah(u){const f=Bt(),y=gc(f,u);return y!==Hr&&hl(f,ro(),y),ah}function Ym(u,f,y){Qa(Er,nl,vc(Bt(),u,f,y),!0)}function Qm(u,f,y,S,x){Qa(Er,nl,Ec(Bt(),u,f,y,S,x),!0)}function Xm(u,f,y,S,x,w,re){Qa(Er,nl,yc(Bt(),u,f,y,S,x,w,re),!0)}function Zm(u,f,y,S,x,w,re,fe,Ce){Qa(Er,nl,Cc(Bt(),u,f,y,S,x,w,re,fe,Ce),!0)}function Jm(u,f,y,S,x,w,re,fe,Ce,we,Ze){Qa(Er,nl,Dc(Bt(),u,f,y,S,x,w,re,fe,Ce,we,Ze),!0)}function qm(u,f,y,S,x,w,re,fe,Ce,we,Ze,Et,Qt){Qa(Er,nl,Oc(Bt(),u,f,y,S,x,w,re,fe,Ce,we,Ze,Et,Qt),!0)}function e_(u,f,y,S,x,w,re,fe,Ce,we,Ze,Et,Qt,ln,yn){Qa(Er,nl,Mc(Bt(),u,f,y,S,x,w,re,fe,Ce,we,Ze,Et,Qt,ln,yn),!0)}function t_(u,f,y,S,x,w,re,fe,Ce,we,Ze,Et,Qt,ln,yn,Wn,Zn){Qa(Er,nl,Pc(Bt(),u,f,y,S,x,w,re,fe,Ce,we,Ze,Et,Qt,ln,yn,Wn,Zn),!0)}function n_(u){Qa(Er,nl,gc(Bt(),u),!0)}function r_(u,f,y){Ga(vc(Bt(),u,f,y))}function i_(u,f,y,S,x){Ga(Ec(Bt(),u,f,y,S,x))}function o_(u,f,y,S,x,w,re){Ga(yc(Bt(),u,f,y,S,x,w,re))}function s_(u,f,y,S,x,w,re,fe,Ce){Ga(Cc(Bt(),u,f,y,S,x,w,re,fe,Ce))}function a_(u,f,y,S,x,w,re,fe,Ce,we,Ze){Ga(Dc(Bt(),u,f,y,S,x,w,re,fe,Ce,we,Ze))}function l_(u,f,y,S,x,w,re,fe,Ce,we,Ze,Et,Qt){Ga(Oc(Bt(),u,f,y,S,x,w,re,fe,Ce,we,Ze,Et,Qt))}function c_(u,f,y,S,x,w,re,fe,Ce,we,Ze,Et,Qt,ln,yn){Ga(Mc(Bt(),u,f,y,S,x,w,re,fe,Ce,we,Ze,Et,Qt,ln,yn))}function d_(u,f,y,S,x,w,re,fe,Ce,we,Ze,Et,Qt,ln,yn,Wn,Zn){Ga(Pc(Bt(),u,f,y,S,x,w,re,fe,Ce,we,Ze,Et,Qt,ln,yn,Wn,Zn))}function u_(u){Ga(gc(Bt(),u))}function lh(u,f,y,S,x){return Ya(u,vc(Bt(),f,y,S),x,!1),lh}
1function ch(u,f,y,S,x,w,re){return Ya(u,Ec(Bt(),f,y,S,x,w),re,!1),ch}function dh(u,f,y,S,x,w,re,fe,Ce){return Ya(u,yc(Bt(),f,y,S,x,w,re,fe),Ce,!1),dh}function uh(u,f,y,S,x,w,re,fe,Ce,we,Ze){return Ya(u,Cc(Bt(),f,y,S,x,w,re,fe,Ce,we),Ze,!1),uh}function ph(u,f,y,S,x,w,re,fe,Ce,we,Ze,Et,Qt){return Ya(u,Dc(Bt(),f,y,S,x,w,re,fe,Ce,we,Ze,Et),Qt,!1),ph}function hh(u,f,y,S,x,w,re,fe,Ce,we,Ze,Et,Qt,ln,yn){return Ya(u,Oc(Bt(),f,y,S,x,w,re,fe,Ce,we,Ze,Et,Qt,ln),yn,!1),hh}function fh(u,f,y,S,x,w,re,fe,Ce,we,Ze,Et,Qt,ln,yn,Wn,Zn){return Ya(u,Mc(Bt(),f,y,S,x,w,re,fe,Ce,we,Ze,Et,Qt,ln,yn,Wn),Zn,!1),fh}function mh(u,f,y,S,x,w,re,fe,Ce,we,Ze,Et,Qt,ln,yn,Wn,Zn,dr,Ur){return Ya(u,Pc(Bt(),f,y,S,x,w,re,fe,Ce,we,Ze,Et,Qt,ln,yn,Wn,Zn,dr),Ur,!1),mh}function _h(u,f,y){return Ya(u,gc(Bt(),f),y,!1),_h}function gh(u,f,y){const S=Bt();return ua(S,Bo(),f)&&Fa(Fn(),gi(),S,u,f,S[sr],y,!0),gh}function vh(u,f,y){const S=Bt();if(ua(S,Bo(),f)){const w=Fn(),re=gi();Fa(w,re,S,u,f,am(er(w.data),re,S),y,!0)}return vh}const Nl=void 0;var ay=["en",[["a","p"],["AM","PM"],Nl],[["AM","PM"],Nl,Nl],[["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"]],Nl,[["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"]],Nl,[["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}",Nl,"{1} 'at' {0}",Nl],[".",",",";","%","+","-","E","\xd7","\u2030","\u221e","NaN",":"],["#,##0.###","#,##0%","\xa4#,##0.00","#E0"],"USD","$","US Dollar",{},"ltr",function sy(u){const y=Math.floor(Math.abs(u)),S=u.toString().replace(/^[^.]*\.?/,"").length;return 1===y&&0===S?1:5}];let Sc={};function ly(u,f,y){"string"!=typeof f&&(y=f,f=u[Br.LocaleId]),f=f.toLowerCase().replace(/_/g,"-"),Sc[f]=u,y&&(Sc[f][Br.ExtraData]=y)}function Eh(u){const f=function uy(u){return u.toLowerCase().replace(/_/g,"-")}(u);let y=h_(f);if(y)return y;const S=f.split("-")[0];if(y=h_(S),y)return y;if("en"===S)return ay;throw new P(701,!1)}function cy(u){return Eh(u)[Br.CurrencyCode]||null}function p_(u){return Eh(u)[Br.PluralCase]}function h_(u){return u in Sc||(Sc[u]=Rt.ng&&Rt.ng.common&&Rt.ng.common.locales&&Rt.ng.common.locales[u]),Sc[u]}function dy(){Sc={}}var Br=(()=>((Br=Br||{})[Br.LocaleId=0]="LocaleId",Br[Br.DayPeriodsFormat=1]="DayPeriodsFormat",Br[Br.DayPeriodsStandalone=2]="DayPeriodsStandalone",Br[Br.DaysFormat=3]="DaysFormat",Br[Br.DaysStandalone=4]="DaysStandalone",Br[Br.MonthsFormat=5]="MonthsFormat",Br[Br.MonthsStandalone=6]="MonthsStandalone",Br[Br.Eras=7]="Eras",Br[Br.FirstDayOfWeek=8]="FirstDayOfWeek",Br[Br.WeekendRange=9]="WeekendRange",Br[Br.DateFormat=10]="DateFormat",Br[Br.TimeFormat=11]="TimeFormat",Br[Br.DateTimeFormat=12]="DateTimeFormat",Br[Br.NumberSymbols=13]="NumberSymbols",Br[Br.NumberFormats=14]="NumberFormats",Br[Br.CurrencyCode=15]="CurrencyCode",Br[Br.CurrencySymbol=16]="CurrencySymbol",Br[Br.CurrencyName=17]="CurrencyName",Br[Br.Currencies=18]="Currencies",Br[Br.Directionality=19]="Directionality",Br[Br.PluralCase=20]="PluralCase",Br[Br.ExtraData=21]="ExtraData",Br))();const py=["zero","one","two","few","many"],jl="en-US",fu={marker:"element"},mu={marker:"ICU"};var ms=(()=>((ms=ms||{})[ms.SHIFT=2]="SHIFT",ms[ms.APPEND_EAGERLY=1]="APPEND_EAGERLY",ms[ms.COMMENT=2]="COMMENT",ms))();let f_=jl;function yh(u){(function q(u,f){null==u&&oe(f,u,null,"!=")})(u,"Expected localeId to be defined"),"string"==typeof u&&(f_=u.toLowerCase().replace(/_/g,"-"))}function m_(u,f,y){const S=f.insertBeforeIndex,x=Array.isArray(S)?S[0]:S;return null===x?Vc(u,0,y):Ii(y[x])}function __(u,f,y,S,x){const w=f.insertBeforeIndex;if(Array.isArray(w)){let re=S,fe=null;if(3&f.type||(fe=re,re=x),null!==re&&-1===f.componentOffset)for(let Ce=1;Ce<w.length;Ce++)al(u,re,y[w[Ce]],fe,!1)}}function g_(u,f){if(u.push(f),u.length>1)for(let y=u.length-2;y>=0;y--){const S=u[y];v_(S)||_y(S,f)&&null===gy(S)&&vy(S,f.index)}}function v_(u){return!(64&u.type)}function _y(u,f){return v_(f)||u.index>f.index}function gy(u){const f=u.insertBeforeIndex;return Array.isArray(f)?f[0]:f}function vy(u,f){const y=u.insertBeforeIndex;Array.isArray(y)?y[0]=f:(Id(m_,__),u.insertBeforeIndex=f)}function cd(u,f){const y=u.data[f];return null===y||"string"==typeof y?null:y.hasOwnProperty("currentCaseLViewIndex")?y:y.value}function Cy(u,f,y){const S=op(u,y,64,null,null);return g_(f,S),S}function _u(u,f){const y=f[u.currentCaseLViewIndex];return null===y?y:y<0?~y:y}function E_(u){return u>>>17}function y_(u){return(131070&u)>>>1}let dd=0,ud=0;function D_(u,f,y,S){const x=y[sr];let re,w=null;for(let fe=0;fe<f.length;fe++){const Ce=f[fe];
1if("string"==typeof Ce){const we=f[++fe];null===y[we]&&(y[we]=Jl(x,Ce))}else if("number"==typeof Ce)switch(1&Ce){case 0:const we=E_(Ce);let Ze,Et;if(null===w&&(w=we,re=nc(x,S)),we===w?(Ze=S,Et=re):(Ze=null,Et=Ii(y[we])),null!==Et){const Wn=y_(Ce);al(x,Et,y[Wn],Ze,!1);const dr=cd(u,Wn);if(null!==dr&&"object"==typeof dr){const Ur=_u(dr,y);null!==Ur&&D_(u,dr.create[Ur],y,y[dr.anchorIdx])}}break;case 1:const ln=f[++fe],yn=f[++fe];fp(x,ko(Ce>>>1,y),null,null,ln,yn,null)}else switch(Ce){case mu:const we=f[++fe],Ze=f[++fe];null===y[Ze]&&$(y[Ze]=ql(x,we),y);break;case fu:const Et=f[++fe],Qt=f[++fe];null===y[Qt]&&$(y[Qt]=Nc(x,Et,null),y)}}}function O_(u,f,y,S,x){for(let w=0;w<y.length;w++){const re=y[w],fe=y[++w];if(re&x){let Ce="";for(let we=w+1;we<=w+fe;we++){const Ze=y[we];if("string"==typeof Ze)Ce+=Ze;else if("number"==typeof Ze)if(Ze<0)Ce+=l(f[S-Ze]);else{const Et=Ze>>>2;switch(3&Ze){case 1:const Qt=y[++we],ln=y[++we],yn=u.data[Et];"string"==typeof yn?fp(f[sr],f[Et],null,yn,Qt,Ce,ln):Fa(u,yn,f,Qt,Ce,f[sr],ln,!1);break;case 0:const Wn=f[Et];null!==Wn&&Cd(f[sr],Wn,Ce);break;case 2:by(u,cd(u,Et),f,Ce);break;case 3:M_(u,cd(u,Et),S,f)}}}}else{const Ce=y[w+1];if(Ce>0&&3==(3&Ce)){const Ze=cd(u,Ce>>>2);f[Ze.currentCaseLViewIndex]<0&&M_(u,Ze,S,f)}}w+=fe}}function M_(u,f,y,S){let x=S[f.currentCaseLViewIndex];if(null!==x){let w=dd;x<0&&(x=S[f.currentCaseLViewIndex]=~x,w=-1),O_(u,S,f.update[x],y,w)}}function by(u,f,y,S){const x=function Sy(u,f){let y=u.cases.indexOf(f);if(-1===y)switch(u.type){case 1:{const S=function hy(u,f){const y=p_(f)(parseInt(u,10)),S=py[y];return void 0!==S?S:"other"}(f,function my(){return f_}());y=u.cases.indexOf(S),-1===y&&"other"!==S&&(y=u.cases.indexOf("other"));break}case 0:y=u.cases.indexOf("other")}return-1===y?null:y}(f,S);if(_u(f,y)!==x&&(P_(u,f,y),y[f.currentCaseLViewIndex]=null===x?null:~x,null!==x)){const re=y[f.anchorIdx];re&&D_(u,f.create[x],y,re)}}function P_(u,f,y){let S=_u(f,y);if(null!==S){const x=f.remove[S];for(let w=0;w<x.length;w++){const re=x[w];if(re>0){const fe=ko(re,y);null!==fe&&kc(y[sr],fe)}else P_(u,cd(u,~re),y)}}}function Iy(){const u=[];let y,S,f=-1;function w(fe,Ce){f=0;const we=_u(fe,Ce);S=null!==we?fe.remove[we]:un}function re(){if(f<S.length){const fe=S[f++];return fe>0?y[fe]:(u.push(f,S),w(y[Mn].data[~fe],y),re())}return 0===u.length?null:(S=u.pop(),f=u.pop(),re())}return function x(fe,Ce){for(y=Ce;u.length;)u.pop();return w(fe.value,Ce),re}}const gu=/\ufffd(\d+):?\d*\ufffd/gi,Ty=/({\s*\ufffd\d+:?\d*\ufffd\s*,\s*\S{6}\s*,[\s\S]*})/gi,Ay=/\ufffd(\d+)\ufffd/,S_=/^\s*(\ufffd\d+:?\d*\ufffd)\s*,\s*(select|plural)\s*,/,pd="\ufffd",Ry=/\ufffd\/?\*(\d+:\d+)\ufffd/gi,xy=/\ufffd(\/?[#*]\d+):?\d*\ufffd/gi,Ly=/\uE500/g;function I_(u,f,y,S,x,w,re){const fe=sd(u,S,1,null);let Ce=fe<<ms.SHIFT,we=Vs();f===we&&(we=null),null===we&&(Ce|=ms.APPEND_EAGERLY),re&&(Ce|=ms.COMMENT,function Zs(u){void 0===Ti&&(Ti=u())}(Iy)),x.push(Ce,null===w?"":w);const Ze=op(u,fe,re?32:1,null===w?"":w,null);g_(y,Ze);const Et=Ze.index;return lo(Ze,!1),null!==we&&f!==we&&function yy(u,f){let y=u.insertBeforeIndex;null===y?(Id(m_,__),y=u.insertBeforeIndex=[null,f]):(function K(u,f,y){u!=f&&oe(y,u,f,"==")}(Array.isArray(y),!0,"Expecting array here"),y.push(f))}(we,Et),Ze}function wy(u,f,y,S,x,w,re){const fe=re.match(gu),Ce=I_(u,f,y,w,S,fe?null:re,!1);fe&&hd(x,re,Ce.index,null,0,null)}function hd(u,f,y,S,x,w){const re=u.length,fe=re+1;u.push(null,null);const Ce=re+2,we=f.split(gu);let Ze=0;for(let Et=0;Et<we.length;Et++){const Qt=we[Et];if(1&Et){const ln=x+parseInt(Qt,10);u.push(-1-ln),Ze|=T_(ln)}else""!==Qt&&u.push(Qt)}return u.push(y<<2|(S?1:0)),S&&u.push(S,w),u[re]=Ze,u[fe]=u.length-Ce,Ze}function Ny(u){let f=0;for(let y=0;y<u.length;y++){const S=u[y];"number"==typeof S&&S<0&&f++}return f}function T_(u){return 1<<Math.min(u,31)}function A_(u){let f,w,y="",S=0,x=!1;for(;null!==(f=Ry.exec(u));)x?f[0]===`${pd}/*${w}${pd}`&&(S=f.index,x=!1):(y+=u.substring(S,f.index+f[0].length),w=f[1],x=!0);return y+=u.slice(S),y}function R_(u,f,y,S,x,w){let re=0;const fe={type:x.type,currentCaseLViewIndex:sd(u,f,1,null),anchorIdx:w,cases:[],create:[],remove:[],update:[]};(function Hy(u,f,y){u.push(T_(f.mainBinding),2,-1-f.mainBinding,y<<2|2)})(y,x,w),function Ey(u,f,y){const S=u.data[f];null===S?u.data[f]=y:S.value=y}(u,w,fe);const Ce=x.values;for(let we=0;we<Ce.length;we++){const Ze=Ce[we],Et=[];for(let Qt=0;Qt<Ze.length;Qt++){const ln=Ze[Qt];if("string"!=typeof ln){const yn=Et.push(ln)-1;Ze[Qt]=`\x3c!--\ufffd${yn}\ufffd--\x3e`}}re=Vy(u,fe,f,y,S,x.cases[we],Ze.join(""),Et)|re}re&&function ky(u,f,y){u.push(f,1,y<<2|3)}(y,re,w)}function Ky(u){const f=[],y=[];let S=1,x=0;const w=Ch(u=u.replace(S_,function(re,fe,Ce){return S="select"===Ce?0:1,x=parseInt(fe.slice(1),10),""}));for(let re=0;re<w.length;){let fe=w[re++].trim();1===S&&(fe=fe.replace(/\s*(?:=)?(\w+)\s*/,"$1")),fe.length&&f.push(fe);const Ce=Ch(w[re++]);f.length>y.length&&y.push(Ce)}return{type:S,mainBinding:x,cases:f,values:y}}function Ch(u){if(!u)return[];let f=0;const y=[],S=[],x=/[{}]/g;let w;for(x.lastIndex=0;w=x.exec(u);){const fe=w.index;if("}"==w[0]){if(y.pop(),0==y.length){const Ce=u.substring(f,fe);S_.test(Ce)?S.push(Ky(Ce)):S.push(Ce),f=fe+1}}else{if(0==y.length){const Ce=u.substring(f,fe);S.push(Ce),f=fe+1}y.push("{")}}const re=u.substring(f);return S.push(re),S}function Vy(u,f,y,S,x,w,re,fe){const Ce=[],we=[],Ze=[];f.cases.push(w),f.create.push(Ce),f.remove.push(we),f.update.push(Ze);const Qt=Kt(ac()).getInertBodyElement(re),ln=Ar(Qt)||Qt;return ln?x_(u,f,y,S,Ce,we,Ze,ln,x,fe,0):0}function x_(u,f,y,S,x,w,re,fe,Ce,we,Ze){let Et=0,Qt=fe.firstChild;for(;Qt;){const ln=sd(u,y,1,null);switch(Qt.nodeType){case Node.ELEMENT_NODE:const yn=Qt,Wn=yn.tagName.toLowerCase();if(Aa.hasOwnProperty(Wn)){Dh(x,fu,Wn,Ce,ln),u.data[ln]=Wn;const Bn=yn.attributes;for(let kr=0;kr<Bn.length;
1kr++){const rs=Bn.item(kr),Cs=rs.name.toLowerCase();rs.value.match(gu)?ja.hasOwnProperty(Cs)&&hd(re,rs.value,ln,rs.name,0,Ns[Cs]?yr:null):zy(x,ln,rs)}Et=x_(u,f,y,S,x,w,re,Qt,ln,we,Ze+1)|Et,L_(w,ln,Ze)}break;case Node.TEXT_NODE:const Zn=Qt.textContent||"",dr=Zn.match(gu);Dh(x,null,dr?"":Zn,Ce,ln),L_(w,ln,Ze),dr&&(Et=hd(re,Zn,ln,null,0,null)|Et);break;case Node.COMMENT_NODE:const Ur=Ay.exec(Qt.textContent||"");if(Ur){const kr=we[parseInt(Ur[1],10)];Dh(x,mu,"",Ce,ln),R_(u,y,S,Ce,kr,ln),$y(w,ln,Ze)}}Qt=Qt.nextSibling}return Et}function L_(u,f,y){0===y&&u.push(f)}function $y(u,f,y){0===y&&(u.push(~f),u.push(f))}function Dh(u,f,y,S,x){null!==f&&u.push(f),u.push(y,x,function Dy(u,f,y){return u|f<<17|y<<1}(0,S,x))}function zy(u,f,y){u.push(f<<1|1,y.name,y.value)}const B_=0,Gy=/\[(\ufffd.+?\ufffd?)\]/,Yy=/\[(\ufffd.+?\ufffd?)\]|(\ufffd\/?\*\d+:\d+\ufffd)/g,Qy=/({\s*)(VAR_(PLURAL|SELECT)(_\d+)?)(\s*,)/g,Xy=/{([A-Z0-9_]+)}/g,Zy=/\ufffdI18N_EXP_(ICU(_\d+)?)\ufffd/g,Jy=/\/\*/,qy=/\d+\:(\d+)/;function Oh(u,f,y=-1){const S=Fn(),x=Bt(),w=gn+u,re=zo(S.consts,f),fe=Vs();S.firstCreatePass&&function Uy(u,f,y,S,x,w){const re=Vs(),fe=[],Ce=[],we=[[]];x=function Wy(u,f){if(function jy(u){return-1===u}(f))return A_(u);{const y=u.indexOf(`:${f}${pd}`)+2+f.toString().length,S=u.search(new RegExp(`${pd}\\/\\*\\d+:${f}${pd}`));return A_(u.substring(y,S))}}(x,w);const Ze=function By(u){return u.replace(Ly," ")}(x).split(xy);for(let Et=0;Et<Ze.length;Et++){let Qt=Ze[Et];if(1&Et){const ln=47===Qt.charCodeAt(0),Wn=(Qt.charCodeAt(ln?1:0),gn+Number.parseInt(Qt.substring(ln?2:1)));if(ln)we.shift(),lo(Vs(),!1);else{const Zn=Cy(u,we[0],Wn);we.unshift([]),lo(Zn,!0)}}else{const ln=Ch(Qt);for(let yn=0;yn<ln.length;yn++){let Wn=ln[yn];if(1&yn){const Zn=Wn;if("object"!=typeof Zn)throw new Error(`Unable to parse ICU expression in "${x}" message.`);R_(u,y,Ce,f,Zn,I_(u,re,we[0],y,fe,"",!0).index)}else""!==Wn&&wy(u,re,we[0],fe,Ce,y,Wn)}}}u.data[S]={create:fe,update:Ce}}(S,null===fe?0:fe.index,x,w,re,y);
1const Ce=S.data[w],Ze=Pd(S,fe===x[wr]?null:fe,x);(function Py(u,f,y,S){const x=u[sr];for(let w=0;w<f.length;w++){const re=f[w++],fe=f[w],we=(re&ms.APPEND_EAGERLY)===ms.APPEND_EAGERLY,Ze=re>>>ms.SHIFT;let Et=u[Ze];null===Et&&(Et=u[Ze]=(re&ms.COMMENT)===ms.COMMENT?x.createComment(fe):Jl(x,fe)),we&&null!==y&&al(x,y,Et,S,!1)}})(x,Ce.create,Ze,fe&&8&fe.type?x[fe.index]:null),Js(!0)}function Mh(){Js(!1)}function U_(u,f,y){Oh(u,f,y),Mh()}function w_(u,f){const y=Fn(),S=zo(y.consts,f);!function Fy(u,f,y){const x=li().index,w=[];if(u.firstCreatePass&&null===u.data[f]){for(let re=0;re<y.length;re+=2){const fe=y[re],Ce=y[re+1];if(""!==Ce){if(Ty.test(Ce))throw new Error(`ICU expressions are not supported in attributes. Message: "${Ce}".`);hd(w,Ce,x,fe,Ny(w),null)}}u.data[f]=w}}(y,u+gn,S)}function Ph(u){return function Oy(u){u&&(dd|=1<<Math.min(ud,31)),ud++}(ua(Bt(),Bo(),u)),Ph}function F_(u){!function My(u,f,y){if(ud>0){const S=u.data[y];O_(u,f,Array.isArray(S)?S:S.update,ki()-ud-1,dd)}dd=0,ud=0}(Fn(),Bt(),u+gn)}function N_(u,f={}){return function e1(u,f={}){let y=u;if(Gy.test(u)){const S={},x=[B_];y=y.replace(Yy,(w,re,fe)=>{const Ce=re||fe,we=S[Ce]||[];if(we.length||(Ce.split("|").forEach(Wn=>{const Zn=Wn.match(qy),dr=Zn?parseInt(Zn[1],10):B_,Ur=Jy.test(Wn);we.push([dr,Ur,Wn])}),S[Ce]=we),!we.length)throw new Error(`i18n postprocess: unmatched placeholder - ${Ce}`);const Ze=x[x.length-1];let Et=0;for(let Wn=0;Wn<we.length;Wn++)if(we[Wn][0]===Ze){Et=Wn;break}const[Qt,ln,yn]=we[Et];return ln?x.pop():Ze!==Qt&&x.push(Qt),we.splice(Et,1),yn})}return Object.keys(f).length&&(y=y.replace(Qy,(S,x,w,re,fe,Ce)=>f.hasOwnProperty(w)?`${x}${f[w]}${Ce}`:S),y=y.replace(Xy,(S,x)=>f.hasOwnProperty(x)?f[x]:S),y=y.replace(Zy,(S,x)=>{if(f.hasOwnProperty(x)){const w=f[x];if(!w.length)throw new Error(`i18n postprocess: unmatched ICU - ${S} with key: ${x}`);return w.shift()}return S})),y}(u,f)}function bh(u,f,y,S,x){if(u=v(u),Array.isArray(u))for(let w=0;w<u.length;w++)bh(u[w],f,y,S,x);else{const w=Fn(),re=Bt();let fe=Bl(u)?u:v(u.provide),Ce=yf(u);const we=li(),Ze=1048575&we.providerIndexes,Et=we.directiveStart,Qt=we.providerIndexes>>20;if(Bl(u)||!u.multi){const ln=new yt(Ce,x,hc),yn=Ih(fe,f,x?Ze:Ze+Qt,Et);-1===yn?(Zo(Is(we,re),w,fe),Sh(w,u,f.length),f.push(fe),we.directiveStart++,we.directiveEnd++,x&&(we.providerIndexes+=1048576),y.push(ln),re.push(ln)):(y[yn]=ln,re[yn]=ln)}else{const ln=Ih(fe,f,Ze+Qt,Et),yn=Ih(fe,f,Ze,Ze+Qt),Zn=yn>=0&&y[yn];if(x&&!Zn||!x&&!(ln>=0&&y[ln])){Zo(Is(we,re),w,fe);const dr=function o1(u,f,y,S,x){const w=new yt(u,y,hc);return w.multi=[],w.index=f,w.componentProviders=0,j_(w,x,S&&!y),w}(x?r1:n1,y.length,x,S,Ce);!x&&Zn&&(y[yn].providerFactory=dr),Sh(w,u,f.length,0),f.push(fe),we.directiveStart++,we.directiveEnd++,x&&(we.providerIndexes+=1048576),y.push(dr),re.push(dr)}else Sh(w,u,ln>-1?ln:yn,j_(y[x?yn:ln],Ce,!x&&S));!x&&S&&Zn&&y[yn].componentProviders++}}}function Sh(u,f,y,S){const x=Bl(f),w=function Vv(u){return!!u.useClass}(f);if(x||w){const Ce=(w?v(f.useClass):f).prototype.ngOnDestroy;if(Ce){const we=u.destroyHooks||(u.destroyHooks=[]);if(!x&&f.multi){const Ze=we.indexOf(y);-1===Ze?we.push(y,[S,Ce]):we[Ze+1].push(S,Ce)}else we.push(y,Ce)}}}function j_(u,f,y){return y&&u.componentProviders++,u.multi.push(f)-1}function Ih(u,f,y,S){for(let x=y;x<S;x++)if(f[x]===u)return x;return-1}function n1(u,f,y,S){return Th(this.multi,[])}function r1(u,f,y,S){const x=this.multi;let w;if(this.providerFactory){const re=this.providerFactory.componentProviders,fe=Jo(y,y[Mn],this.providerFactory.index,S);w=fe.slice(0,re),Th(x,w);for(let Ce=re;Ce<fe.length;Ce++)w.push(fe[Ce])}else w=[],Th(x,w);return w}function Th(u,f){for(let y=0;y<u.length;y++)f.push((0,u[y])());return f}function W_(u,f=[]){return y=>{y.providersResolver=(S,x)=>function t1(u,f,y){const S=Fn();if(S.firstCreatePass){const x=ri(u);bh(y,S.data,S.blueprint,x,!0),bh(f,S.data,S.blueprint,x,!1)}}(S,x?x(u):u,f)}}class Ic{}class K_{}function V_(u,f){return new Ah(u,f??null)}const s1=V_;class Ah extends Ic{constructor(f,y){super(),this._parent=y,this._bootstrapComponents=[],this.destroyCbs=[],this.componentFactoryResolver=new cm(this);const S=zn(f);this._bootstrapComponents=ul(S.bootstrap),this._r3Injector=Kf(f,y,[{provide:Ic,useValue:this},{provide:nd,useValue:this.componentFactoryResolver}],p(f),new Set(["environment"])),this._r3Injector.resolveInjectorInitializer
1s(),this.instance=this._r3Injector.get(f)}get injector(){return this._r3Injector}destroy(){const f=this._r3Injector;!f.destroyed&&f.destroy(),this.destroyCbs.forEach(y=>y()),this.destroyCbs=null}onDestroy(f){this.destroyCbs.push(f)}}class vu extends K_{constructor(f){super(),this.moduleType=f}create(f){return new Ah(this.moduleType,f)}}class a1 extends Ic{constructor(f,y,S){super(),this.componentFactoryResolver=new cm(this),this.instance=null;const x=new Ef([...f,{provide:Ic,useValue:this},{provide:nd,useValue:this.componentFactoryResolver}],y||Gd(),S,new Set(["environment"]));this.injector=x,x.resolveInjectorInitializers()}destroy(){this.injector.destroy()}onDestroy(f){this.injector.onDestroy(f)}}function Rh(u,f,y=null){return new a1(u,f,y).injector}let l1=(()=>{class u{constructor(y){this._injector=y,this.cachedInjectors=new Map}getOrCreateStandaloneInjector(y){if(!y.standalone)return null;if(!this.cachedInjectors.has(y.id)){const S=mf(0,y.type),x=S.length>0?Rh([S],this._injector,`Standalone[${y.type.name}]`):null;this.cachedInjectors.set(y.id,x)}return this.cachedInjectors.get(y.id)}ngOnDestroy(){try{for(const y of this.cachedInjectors.values())null!==y&&y.destroy()}finally{this.cachedInjectors.clear()}}}return u.\u0275prov=Ee({token:u,providedIn:"environment",factory:()=>new u(St(Ul))}),u})();function $_(u){u.getStandaloneInjector=f=>f.get(l1).getOrCreateStandaloneInjector(u)}function xh(u){const f=Fs(u);if(null===f)return null;if(void 0===f.component){const y=f.lView;if(null===y)return null;f.component=function vr(u,f){const y=f[Mn].data[u],{directiveStart:S,componentOffset:x}=y;return x>-1?f[S+x]:null}(f.nodeIndex,y)}return f.component}function H_(u){!function f1(u){if(typeof Element<"u"&&!(u instanceof Element))throw new Error("Expecting instance of DOM Element")}(u);const f=Fs(u),y=f?f.lView:null;return null===y?null:y[Nr]}function k_(u){const f=Fs(u);let S,y=f?f.lView:null;if(null===y)return null;for(;2===y[Mn].type&&(S=Wo(y));)y=S;return 256&y[Xn]?null:y[Nr]}function z_(u){const f=Te(u);return null!==f?[Zl(f)]:[]}function G_(u){const f=Fs(u),y=f?f.lView:null;return null===y?vl.NULL:new oa(y[Mn].data[f.nodeIndex],y)}function Y_(u){if(u instanceof Text)return[];const f=Fs(u),y=f?f.lView:null;if(null===y)return[];const x=f.nodeIndex;return y[Mn]?.data[x]?(void 0===f.directives&&(f.directives=tr(x,y)),null===f.directives?[]:[...f.directives]):[]}function d1(u){const{constructor:f}=u;if(!f)throw new Error("Unable to find the instance constructor");const y=In(f);if(y)return{inputs:y.inputs,outputs:y.outputs,encapsulation:y.encapsulation,changeDetection:y.onPush?rn.OnPush:rn.Default};const S=Nn(f);return S?{inputs:S.inputs,outputs:S.outputs}:null}function Lh(u){return Fs(u).native}function Q_(u){const f=Fs(u),y=null===f?null:f.lView;if(null===y)return[];const x=y[ui],w=y[Mn].cleanup,re=[];if(w&&x)for(let fe=0;fe<w.length;){const Ce=w[fe++],we=w[fe++];if("string"==typeof Ce){const Ze=Ce,Et=Ii(y[we]),Qt=x[w[fe++]],ln=w[fe++];u==Et&&re.push({element:u,name:Ze,callback:Qt,useCapture:"boolean"==typeof ln&&ln,type:"boolean"==typeof ln||ln>=0?"dom":"output"})}}return re.sort(p1),re}function p1(u,f){return u.name==f.name?0:u.name<f.name?-1:1}function h1(u){return void 0!==u.type&&void 0!==u.declaredInputs&&void 0!==u.findHostDirectiveDefs}function X_(u,f,y,S){return $t(()=>{const x=u;null!==f&&(x.hasOwnProperty("decorators")&&void 0!==x.decorators?x.decorators.push(...f):x.decorators=f),null!==y&&(x.ctorParameters=y),null!==S&&(x.propDecorators=x.hasOwnProperty("propDecorators")&&void 0!==x.propDecorators?{...x.propDecorators,...S}:S)})}function Z_(u,f,y){const S=Wi()+u,x=Bt();return x[S]===Hr?tl(x,S,y?f.call(y):f()):ad(x,S)}function J_(u,f,y,S){return ag(Bt(),Wi(),u,f,y,S)}function q_(u,f,y,S,x){return lg(Bt(),Wi(),u,f,y,S,x)}function eg(u,f,y,S,x,w){return cg(Bt(),Wi(),u,f,y,S,x,w)}function tg(u,f,y,S,x,w,re){return dg(Bt(),Wi(),u,f,y,S,x,w,re)}function ng(u,f,y,S,x,w,re,fe){const Ce=Wi()+u,we=Bt(),Ze=Ka(we,Ce,y,S,x,w);return ua(we,Ce+4,re)||Ze?tl(we,Ce+5,fe?f.call(fe,y,S,x,w,re):f(y,S,x,w,re)):ad(we,Ce+5)}function rg(u,f,y,S,x,w,re,fe,Ce){const we=Wi()+u,Ze=Bt(),Et=Ka(Ze,we,y,S,x,w);return wl(Ze,we+4,re,fe)||Et?tl(Ze,we+6,Ce?f.call(Ce,y,S,x,w,re,fe):f(y,S,x,w,re,fe)):ad(Ze,we+6)}function ig(u,f,y,S,x,w,re,fe,Ce,we){const Ze=Wi()+u,Et=Bt();let Qt=Ka(Et,Ze,y,S,x,w);return ou(Et,Ze+4,re,fe,Ce)||Qt?tl(Et,Ze+7,we?f.call(we,y,S,x,w,re,fe,Ce):f(y,S,x,w,re,fe,Ce)):ad(Et,Ze+7)}function og(u,f,y,S,x,w,re,fe,Ce,we,Ze){const Et=Wi()+u,Qt=Bt(),ln=Ka(Qt,Et,y,S,x,w);return Ka(Qt,Et+4,re,fe,Ce,we)||ln?tl(Qt,Et+8,Ze?f.call(Ze,y,S,x,w,re,fe,Ce,we):f(y,S,x,w,re,fe,Ce,we)):ad(Qt,Et+8)}function sg(u,f,y,S){return ug(Bt(),Wi(),u,f,y,S)}function fd(u,f){const y=u[f];return y===Hr?void 0:y}function ag(u,f,y,S,x,w){const re=f+y;return ua(u,re,x)?tl(u,re+1,w?S.call(w,x):S(x)):fd(u,re+1)}function lg(u,f,y,S,x,w,re){const fe=f+y;return wl(u,fe,x,w)?tl(u,fe+2,re?S.call(re,x,w):S(x,w)):fd(u,fe+2)}function cg(u,f,y,S,x,w,re,fe){const Ce=f+y;return ou(u,Ce,x,w,re)?tl(u,Ce+3,fe?S.call(fe,x,w,re):S(x,w,re)):fd(u,Ce+3)}function dg(u,f,y,S,x,w,re,fe,Ce){const we=f+y;return Ka(u,we,x,w,re,fe)?tl(u,we+4,Ce?S.call(Ce,x,w,re,fe):S(x,w,re,fe)):fd(u,we+4)}function ug(u,f,y,S,x,w){let re=f+y,fe=!1;for(let Ce=0;Ce<x.length;Ce++)ua(u,re++,x[Ce])&&(fe=!0);return fe?tl(u,re,S.apply(w,x)):fd(u,re)}function pg(u,f){const y=Fn();let S;const x=u+gn;y.firstCreatePass?(S=function m1(u,f){if(f)for(let y=f.length-1;y>=0;y--){const S=f[y];if(u===S.name)return S}}(f,y.pipeRegistry),y.data[x]=S,S.onDestroy&&(y.destroyHooks??(y.destroyHooks=[])).push(x,S.onDestroy)):S=y.data[x];const w=S.factory||(S.factory=Ye(S.type)),re=tt(hc);try{const fe=vs(!1),Ce=w();return vs(fe),Dm(y,Bt(),x,Ce),Ce}finally{tt(re)}}function hg(u,f,y){const S=u+gn,x=Bt(),w=Oo(x,S);return md(x,S)?ag(x,Wi(),f,w.transform,y,w):w.transform(y)}function fg(u,f,y,S){const x=u+gn,w=Bt(),re=Oo(w,x);return md(w,x)?lg(w,Wi(),f,re.transform,y,S,re):re.transform(y,S)}function mg(u,f,y,S,x){const w=u+gn,re=Bt(),fe=Oo(re,w);return md(re,w)?cg(re,Wi(),f,fe.transform,y,S,x,fe):fe.transform(y,S,x)}function _g(u,f,y,S,x,w){const re=u+gn,fe=Bt(),Ce=Oo(fe,re);return md(fe,re)?dg(fe,Wi(),f,Ce.transform,y,S,x,w,Ce):Ce.transform(y,S,x,w)}function gg(u,f,y){const S=u+gn,x=Bt(),w=Oo(x,S);return md(x,S)?ug(x,Wi(),f,w.transform,y,w):w.transform.apply(w,y)}function md(u,f){return u[Mn].data[f].pure}function Bh(u){return f=>{setTimeout(u,void 0,f)}}const rl=class _1 extends t.x{constructor(f=!1){super(),this.__isAsync=f}emit(f){super.next(f)}subscribe(f,y,S){let x=f,w=y||(()=>null),re=S;if(f&&"object"==typeof f){const Ce=f;x=Ce.next?.bind(Ce),w=Ce.error?.bind(Ce),re=Ce.complete?.bind(Ce)}this.__isAsync&&(w=Bh(w),x&&(x=Bh(x)),re&&(re=Bh(re)));const fe=super.subscribe({next:x,error:w,complete:re});return f instanceof n.w0&&f.add(fe),fe}};function g1(){return this._results[Symbol.iterator]()}class Eu{get changes(){return this._changes||(this._changes=new rl)}constructor(f=!1){this._emitDistinctChangesOnly=f,this.dirty=!0,this._results=[],this._changesDetected=!1,this._changes=null,this.length=0,this.first=void 0,this.last=void 0;const y=Eu.prototype;y[Symbol.iterator]||(y[Symbol.iterator]=g1)}get(f){return this._results[f]}map(f){return this._results.map(f)}filter(f){return this._results.filter(f)}find(f){return this._results.find(f)}reduce(f,y){return this._results.reduce(f,y)}
1forEach(f){this._results.forEach(f)}some(f){return this._results.some(f)}toArray(){return this._results.slice()}toString(){return this._results.toString()}reset(f,y){const S=this;S.dirty=!1;const x=de(f);(this._changesDetected=!function H(u,f,y){if(u.length!==f.length)return!1;for(let S=0;S<u.length;S++){let x=u[S],w=f[S];if(y&&(x=y(x),w=y(w)),w!==x)return!1}return!0}(S._results,x,y))&&(S._results=x,S.length=x.length,S.last=x[this.length-1],S.first=x[0])}notifyOnChanges(){this._changes&&(this._changesDetected||!this._emitDistinctChangesOnly)&&this._changes.emit(this)}setDirty(){this.dirty=!0}destroy(){this.changes.complete(),this.changes.unsubscribe()}}let _d=(()=>{class u{}return u.__NG_ELEMENT_ID__=y1,u})();const v1=_d,E1=class extends v1{constructor(f,y,S){super(),this._declarationLView=f,this._declarationTContainer=y,this.elementRef=S}createEmbeddedView(f,y){const S=this._declarationTContainer.tView,x=Zd(this._declarationLView,S,f,16,null,S.declTNode,null,null,null,null,y||null);x[Yi]=this._declarationLView[this._declarationTContainer.index];const re=this._declarationLView[tn];return null!==re&&(x[tn]=re.createEmbeddedView(S)),ap(S,x,f),new mc(x)}};function y1(){return yu(li(),Bt())}function yu(u,f){return 4&u.type?new E1(f,u,dc(u,f)):null}let Cu=(()=>{class u{}return u.__NG_ELEMENT_ID__=C1,u})();function C1(){return yg(li(),Bt())}const D1=Cu,vg=class extends D1{constructor(f,y,S){super(),this._lContainer=f,this._hostTNode=y,this._hostLView=S}get element(){return dc(this._hostTNode,this._hostLView)}get injector(){return new oa(this._hostTNode,this._hostLView)}get parentInjector(){const f=Lr(this._hostTNode,this._hostLView);if(co(f)){const y=oo(f,this._hostLView),S=Ei(f);return new oa(y[Mn].data[S+8],y)}return new oa(null,this._hostLView)}clear(){for(;this.length>0;)this.remove(this.length-1)}get(f){const y=Eg(this._lContainer);return null!==y&&y[f]||null}get length(){return this._lContainer.length-qn}createEmbeddedView(f,y,S){let x,w;"number"==typeof S?x=S:null!=S&&(x=S.index,w=S.injector);const re=f.createEmbeddedView(y||{},w);return this.insert(re,x),re}createComponent(f,y,S,x,w){const re=f&&!J(f);let fe;if(re)fe=y;else{const Et=y||{};fe=Et.index,S=Et.injector,x=Et.projectableNodes,w=Et.environmentInjector||Et.ngModuleRef}const Ce=re?f:new _c(In(f)),we=S||this.parentInjector;if(!w&&null==Ce.ngModule){const Qt=(re?we:this.parentInjector).get(Ul,null);Qt&&(w=Qt)}const Ze=Ce.create(we,x,void 0,w);return this.insert(Ze.hostView,fe),Ze}insert(f,y){const S=f._lView,x=S[Mn];if(function Os(u){return jr(u[cr])}(S)){const Ze=this.indexOf(f);if(-1!==Ze)this.detach(Ze);else{const Et=S[cr],Qt=new vg(Et,Et[wr],Et[cr]);Qt.detach(Qt.indexOf(f))}}const w=this._adjustIndex(y),re=this._lContainer;!function jc(u,f,y,S){const x=qn+S,w=y.length;S>0&&(y[x-1][Qr]=f),S<w-qn?(f[Qr]=y[x],Fe(y,qn+S,f)):(y.push(f),f[Qr]=null),f[cr]=y;const re=f[Yi];null!==re&&y!==re&&function wu(u,f){const y=u[Gn];f[Ri]!==f[cr][cr][Ri]&&(u[Cr]=!0),null===y?u[Gn]=[f]:y.push(f)}(re,f);const fe=f[tn];null!==fe&&fe.insertView(u),f[Xn]|=64}(x,S,re,w);const fe=Hc(w,re),Ce=S[sr],we=nc(Ce,re[mr]);return null!==we&&function Dd(u,f,y,S,x,w){S[Mr]=x,S[wr]=f,_l(u,S,y,1,x,w)}(x,re[wr],Ce,S,we,fe),f.attachToViewContainerRef(),Fe(Uh(re),w,f),f}move(f,y){return this.insert(f,y)}indexOf(f){const y=Eg(this._lContainer);return null!==y?y.indexOf(f):-1}remove(f){const y=this._adjustIndex(f,-1),S=Al(this._lContainer,y);S&&(Qe(Uh(this._lContainer),y),Od(S[Mn],S))}detach(f){const y=this._adjustIndex(f,-1),S=Al(this._lContainer,y);return S&&null!=Qe(Uh(this._lContainer),y)?new mc(S):null}_adjustIndex(f,y=0){return f??this.length+y}};function Eg(u){return u[Fr]}function Uh(u){return u[Fr]||(u[Fr]=[])}function yg(u,f){let y;const S=f[u.index];if(jr(S))y=S;else{let x;if(8&u.type)x=Ii(S);else{const w=f[sr];x=w.createComment("");const re=Vr(u,f);al(w,nc(w,re),x,function ju(u,f){return u.nextSibling(f)}(w,re),!1)}f[u.index]=y=im(S,f,x,u),qd(f,y)}return new vg(y,u,f)}class wh{constructor(f){this.queryList=f,this.matches=null}clone(){return new wh(this.queryList)}setDirty(){this.queryList.setDirty()}}class Fh{constructor(f=[]){this.queries=f}createEmbeddedView(f){const y=f.queries;if(null!==y){const S=null!==f.contentQueries?f.contentQueries[0]:y.length,x=[];for(let w=0;w<S;w++){const re=y.getByIndex(w);x.push(this.queries[re.indexInDeclarationView].clone())}return new Fh(x)}return null}insertView(f){this.dirtyQueriesWithMatches(f)}detachView(f){this.dirtyQueriesWithMatches(f)}dirtyQueriesWithMatches(f){for(let y=0;y<this.queries.length;y++)null!==Tg(f,y).matches&&this.queries[y].setDirty()}}class Cg{constructor(f,y,S=null){this.predicate=f,this.flags=y,this.read=S}}class Nh{constructor(f=[]){this.queries=f}elementStart(f,y){for(let S=0;S<this.queries.length;S++)this.queries[S].elementStart(f,y)}elementEnd(f){for(let y=0;y<this.queries.length;y++)this.queries[y].elementEnd(f)}embeddedTView(f){let y=null;for(let S=0;S<this.length;S++){const x=null!==y?y.length:0,w=this.getByIndex(S).embeddedTView(f,x);w&&(w.indexInDeclarationView=S,null!==y?y.push(w):y=[w])}return null!==y?new Nh(y):null}template(f,y){for(let S=0;S<this.queries.length;S++)this.queries[S].template(f,y)}getByIndex(f){return this.queries[f]}get length(){return this.queries.length}track(f){this.queries.push(f)}}class jh{constructor(f,y=-1){this.metadata=f,this.matches=null,this.indexInDeclarationView=-1,this.crossesNgTemplate=!1,this._appliesToNextNode=!0,this._declarationNodeIndex=y}elementStart(f,y){this.isApplyingToNode(y)&&this.matchTNode(f,y)}elementEnd(f){this._declarationNodeIndex===f.index&&(this._appliesToNextNode=!1)}template(f,y){this.elementStart(f,y)}
1embeddedTView(f,y){return this.isApplyingToNode(f)?(this.crossesNgTemplate=!0,this.addMatch(-f.index,y),new jh(this.metadata)):null}isApplyingToNode(f){if(this._appliesToNextNode&&1!=(1&this.metadata.flags)){const y=this._declarationNodeIndex;let S=f.parent;for(;null!==S&&8&S.type&&S.index!==y;)S=S.parent;return y===(null!==S?S.index:-1)}return this._appliesToNextNode}matchTNode(f,y){const S=this.metadata.predicate;if(Array.isArray(S))for(let x=0;x<S.length;x++){const w=S[x];this.matchTNodeWithReadOption(f,y,O1(y,w)),this.matchTNodeWithReadOption(f,y,as(y,f,w,!1,!1))}else S===_d?4&y.type&&this.matchTNodeWithReadOption(f,y,-1):this.matchTNodeWithReadOption(f,y,as(y,f,S,!1,!1))}matchTNodeWithReadOption(f,y,S){if(null!==S){const x=this.metadata.read;if(null!==x)if(x===rd||x===Cu||x===_d&&4&y.type)this.addMatch(y.index,-2);else{const w=as(y,f,x,!1,!1);null!==w&&this.addMatch(y.index,w)}else this.addMatch(y.index,S)}}addMatch(f,y){null===this.matches?this.matches=[f,y]:this.matches.push(f,y)}}function O1(u,f){const y=u.localNames;if(null!==y)for(let S=0;S<y.length;S+=2)if(y[S]===f)return y[S+1];return null}function P1(u,f,y,S){return-1===y?function M1(u,f){return 11&u.type?dc(u,f):4&u.type?yu(u,f):null}(f,u):-2===y?function b1(u,f,y){return y===rd?dc(f,u):y===_d?yu(f,u):y===Cu?yg(f,u):void 0}(u,f,S):Jo(u,u[Mn],y,f)}function Dg(u,f,y,S){const x=f[tn].queries[S];if(null===x.matches){const w=u.data,re=y.matches,fe=[];for(let Ce=0;Ce<re.length;Ce+=2){const we=re[Ce];fe.push(we<0?null:P1(f,w[we],re[Ce+1],y.metadata.read))}x.matches=fe}return x.matches}function Wh(u,f,y,S){const x=u.queries.getByIndex(y),w=x.matches;if(null!==w){const re=Dg(u,f,x,y);for(let fe=0;fe<w.length;fe+=2){const Ce=w[fe];if(Ce>0)S.push(re[fe/2]);else{const we=w[fe+1],Ze=f[-Ce];for(let Et=qn;Et<Ze.length;Et++){const Qt=Ze[Et];Qt[Yi]===Qt[cr]&&Wh(Qt[Mn],Qt,we,S)}if(null!==Ze[Gn]){const Et=Ze[Gn];for(let Qt=0;Qt<Et.length;Qt++){const ln=Et[Qt];Wh(ln[Mn],ln,we,S)}}}}}return S}function Og(u){const f=Bt(),y=Fn(),S=qs();pa(S+1);const x=Tg(y,S);if(u.dirty&&function xo(u){return 4==(4&u[Xn])}(f)===(2==(2&x.metadata.flags))){if(null===x.matches)u.reset([]);else{const w=x.crossesNgTemplate?Wh(y,f,S,[]):Dg(y,f,x,S);u.reset(w,Jv),u.notifyOnChanges()}return!0}return!1}function Mg(u,f,y){const S=Fn();S.firstCreatePass&&(Ig(S,new Cg(u,f,y),-1),2==(2&f)&&(S.staticViewQueries=!0)),Sg(S,Bt(),f)}function Pg(u,f,y,S){const x=Fn();if(x.firstCreatePass){const w=li();Ig(x,new Cg(f,y,S),w.index),function I1(u,f){const y=u.contentQueries||(u.contentQueries=[]);f!==(y.length?y[y.length-1]:-1)&&y.push(u.queries.length-1,f)}(x,u),2==(2&y)&&(x.staticContentQueries=!0)}Sg(x,Bt(),y)}function bg(){return function S1(u,f){return u[tn].queries[f].queryList}(Bt(),qs())}function Sg(u,f,y){const S=new Eu(4==(4&y));qf(u,f,S,S.destroy),null===f[tn]&&(f[tn]=new Fh),f[tn].queries.push(new wh(S))}function Ig(u,f,y){null===u.queries&&(u.queries=new Nh),u.queries.track(new jh(f,y))}function Tg(u,f){return u.queries.getByIndex(f)}function Ag(u,f){return yu(u,f)}const va=(()=>({\u0275\u0275attribute:Cp,\u0275\u0275attributeInterpolate1:Dp,\u0275\u0275attributeInterpolate2:Op,\u0275\u0275attributeInterpolate3:Mp,\u0275\u0275attributeInterpolate4:Pp,\u0275\u0275attributeInterpolate5:bp,\u0275\u0275attributeInterpolate6:Sp,\u0275\u0275attributeInterpolate7:Ip,\u0275\u0275attributeInterpolate8:Tp,\u0275\u0275attributeInterpolateV:Ap,\u0275\u0275defineComponent:ze,\u0275\u0275defineDirective:cn,\u0275\u0275defineInjectable:Ee,\u0275\u0275defineInjector:Je,\u0275\u0275defineNgModule:nr,\u0275\u0275definePipe:Dn,\u0275\u0275directiveInject:hc,\u0275\u0275getInheritedFactory:sa,\u0275\u0275inject:St,\u0275\u0275injectAttribute:As,\u0275\u0275invalidFactory:Qf,\u0275\u0275invalidFactoryDep:wt,\u0275\u0275templateRefExtractor:Ag,\u0275\u0275resetView:ai,\u0275\u0275HostDirectivesFeature:mm,\u0275\u0275NgOnChangesFeature:Pn,\u0275\u0275ProvidersFeature:W_,\u0275\u0275CopyDefinitionFeature:fm,\u0275\u0275InheritDefinitionFeature:vp,\u0275\u0275StandaloneFeature:$_,\u0275\u0275nextContext:Am,\u0275\u0275namespaceHTML:Gs,\u0275\u0275namespaceMathML:Ps,\u0275\u0275namespaceSVG:Ms,\u0275\u0275enableBindings:kt,\u0275\u0275disableBindings:On,\u0275\u0275elementStart:su,\u0275\u0275elementEnd:au,\u0275\u0275element:Lp,\u0275\u0275elementContainerStart:lu,\u0275\u0275elementContainerEnd:cu,\u0275\u0275elementContainer:Bp,\u0275\u0275pureFunction0:Z_,\u0275\u0275pureFunction1:J_,\u0275\u0275pureFunction2:q_,\u0275\u0275pureFunction3:eg,\u0275\u0275pureFunction4:tg,\u0275\u0275pureFunction5:ng,\u0275\u0275pureFunction6:rg,\u0275\u0275pureFunction7:ig,\u0275\u0275pureFunction8:og,\u0275\u0275pureFunctionV:sg,\u0275\u0275getCurrentView:Mm,\u0275\u0275restoreView:qr,\u0275\u0275listener:wp,\u0275\u0275projection:xm,\u0275\u0275syntheticHostProperty:vh,\u0275\u0275syntheticHostListener:Fp,\u0275\u0275pipeBind1:hg,\u0275\u0275pipeBind2:fg,\u0275\u0275pipeBind3:mg,\u0275\u0275pipeBind4:_g,\u0275\u0275pipeBindV:gg,\u0275\u0275projectionDef:Rm,\u0275\u0275hostProperty:gh,\u0275\u0275property:Rp,\u0275\u0275propertyInterpolate:Np,\u0275\u0275propertyInterpolate1:du,\u0275\u0275propertyInterpolate2:jp,\u0275\u0275propertyInterpolate3:Wp,\u0275\u0275propertyInterpolate4:Kp,\u0275\u0275propertyInterpolate5:Vp,\u0275\u0275propertyInterpolate6:$p,\u
10275\u0275propertyInterpolate7:Hp,\u0275\u0275propertyInterpolate8:kp,\u0275\u0275propertyInterpolateV:zp,\u0275\u0275pipe:pg,\u0275\u0275queryRefresh:Og,\u0275\u0275viewQuery:Mg,\u0275\u0275loadQuery:bg,\u0275\u0275contentQuery:Pg,\u0275\u0275reference:Om,\u0275\u0275classMap:Wm,\u0275\u0275classMapInterpolate1:Ym,\u0275\u0275classMapInterpolate2:Qm,\u0275\u0275classMapInterpolate3:Xm,\u0275\u0275classMapInterpolate4:Zm,\u0275\u0275classMapInterpolate5:Jm,\u0275\u0275classMapInterpolate6:qm,\u0275\u0275classMapInterpolate7:e_,\u0275\u0275classMapInterpolate8:t_,\u0275\u0275classMapInterpolateV:n_,\u0275\u0275styleMap:Ga,\u0275\u0275styleMapInterpolate1:r_,\u0275\u0275styleMapInterpolate2:i_,\u0275\u0275styleMapInterpolate3:o_,\u0275\u0275styleMapInterpolate4:s_,\u0275\u0275styleMapInterpolate5:a_,\u0275\u0275styleMapInterpolate6:l_,\u0275\u0275styleMapInterpolate7:c_,\u0275\u0275styleMapInterpolate8:d_,\u0275\u0275styleMapInterpolateV:u_,\u0275\u0275styleProp:Xp,\u0275\u0275stylePropInterpolate1:lh,\u0275\u0275stylePropInterpolate2:ch,\u0275\u0275stylePropInterpolate3:dh,\u0275\u0275stylePropInterpolate4:uh,\u0275\u0275stylePropInterpolate5:ph,\u0275\u0275stylePropInterpolate6:hh,\u0275\u0275stylePropInterpolate7:fh,\u0275\u0275stylePropInterpolate8:mh,\u0275\u0275stylePropInterpolateV:_h,\u0275\u0275classProp:Zp,\u0275\u0275advance:wf,\u0275\u0275template:Cm,\u0275\u0275text:Gm,\u0275\u0275textInterpolate:qp,\u0275\u0275textInterpolate1:hu,\u0275\u0275textInterpolate2:eh,\u0275\u0275textInterpolate3:th,\u0275\u0275textInterpolate4:nh,\u0275\u0275textInterpolate5:rh,\u0275\u0275textInterpolate6:ih,\u0275\u0275textInterpolate7:oh,\u0275\u0275textInterpolate8:sh,\u0275\u0275textInterpolateV:ah,\u0275\u0275i18n:U_,\u0275\u0275i18nAttributes:w_,\u0275\u0275i18nExp:Ph,\u0275\u0275i18nStart:Oh,\u0275\u0275i18nEnd:Mh,\u0275\u0275i18nApply:F_,\u0275\u0275i18nPostprocess:N_,\u0275\u0275resolveWindow:Sf,\u0275\u0275resolveDocument:If,\u0275\u0275resolveBody:Tf,\u0275\u0275setComponentScope:bt,\u0275\u0275setNgModuleScope:Cn,\u0275\u0275registerNgModuleType:Yr,\u0275\u0275sanitizeHtml:wa,\u0275\u0275sanitizeStyle:da,\u0275\u0275sanitizeResourceUrl:Mo,\u0275\u0275sanitizeScript:qc,\u0275\u0275sanitizeUrl:Wa,\u0275\u0275sanitizeUrlOrResourceUrl:_a,\u0275\u0275trustConstantHtml:Hd,\u0275\u0275trustConstantResourceUrl:js,\u0275\u0275validateIframeAttribute:Bd,forwardRef:_,resolveForwardRef:v}))();let Tc=null;function R1(){Tc=null}function Kh(u){return!!zn(u)}const gd=[];let Vh=!1;function xg(){if(!Vh){Vh=!0;try{for(let u=gd.length-1;u>=0;u--){const{moduleType:f,ngModule:y}=gd[u];y.declarations&&y.declarations.every(Lg)&&(gd.splice(u,1),U1(f,y))}}finally{Vh=!1}}}function Lg(u){return Array.isArray(u)?u.every(Lg):!!v(u)}function Bg(u,f={}){Ug(u,f),void 0!==f.id&&Yr(u,f.id),function x1(u,f){gd.push({moduleType:u,ngModule:f})}(u,f)}function Ug(u,f,y=!1){const S=de(f.declarations||un);let x=null;Object.defineProperty(u,vt,{configurable:!0,get:()=>(null===x&&(x=Ie().compileNgModule(va,`ng:///${u.name}/\u0275mod.js`,{type:u,bootstrap:de(f.bootstrap||un).map(v),declarations:S.map(v),imports:de(f.imports||un).map(v).map(jg),exports:de(f.exports||un).map(v).map(jg),schemas:f.schemas?de(f.schemas):null,id:f.id||null}),x.schemas||(x.schemas=[])),x)});let w=null;Object.defineProperty(u,Zt,{get:()=>{if(null===w){const fe=Ie();w=fe.compileFactory(va,`ng:///${u.name}/\u0275fac.js`,{name:u.name,type:u,deps:Ba(u),target:fe.FactoryTarget.NgModule,typeArgumentCount:0})}return w},configurable:!1});let re=null;Object.defineProperty(u,Mt,{get:()=>{if(null===re){const fe={name:u.name,type:u,providers:f.providers||un,imports:[(f.imports||un).map(v),(f.exports||un).map(v)]};re=Ie().compileInjector(va,`ng:///${u.name}/\u0275inj.js`,fe)}return re},configurable:!1})}let Du=new WeakMap,Hh=new WeakMap;function B1(){Du=new WeakMap,Hh=new WeakMap,gd.length=0}function U1(u,f){const y=de(f.declarations||un),S=Wl(u);y.forEach(x=>{(x=v(x)).hasOwnProperty(dt)?kh(In(x),S):!x.hasOwnProperty(ht)&&!x.hasOwnProperty(je)&&(x.ngSelectorScope=u)})}function kh(u,f){u.directiveDefs=()=>Array.from(f.compilation.directives).map(y=>y.hasOwnProperty(dt)?In(y):Nn(y)).filter(y=>!!y),u.pipeDefs=()=>Array.from(f.compilation.pipes).map(y=>Rn(y)),u.schemas=f.schemas,u.tView=null}function Wl(u){if(Kh(u))return function w1(u){const f=zn(u,!0);if(null!==f.transitiveCompileScopes)return f.transitiveCompileScopes;const y={schemas:f.schemas||null,compilation:{directives:new Set,pipes:new Set},exported:{directives:new Set,pipes:new Set}};
1return ul(f.imports).forEach(S=>{const x=Wl(S);x.exported.directives.forEach(w=>y.compilation.directives.add(w)),x.exported.pipes.forEach(w=>y.compilation.pipes.add(w))}),ul(f.declarations).forEach(S=>{Rn(S)?y.compilation.pipes.add(S):y.compilation.directives.add(S)}),ul(f.exports).forEach(S=>{const x=S;if(Kh(x)){const w=Wl(x);w.exported.directives.forEach(re=>{y.compilation.directives.add(re),y.exported.directives.add(re)}),w.exported.pipes.forEach(re=>{y.compilation.pipes.add(re),y.exported.pipes.add(re)})}else Rn(x)?y.exported.pipes.add(x):y.exported.directives.add(x)}),f.transitiveCompileScopes=y,y}(u);if(Jn(u)){if(null!==(In(u)||Nn(u)))return{schemas:null,compilation:{directives:new Set,pipes:new Set},exported:{directives:new Set([u]),pipes:new Set}};if(null!==Rn(u))return{schemas:null,compilation:{directives:new Set,pipes:new Set},exported:{directives:new Set,pipes:new Set([u])}}}throw new Error(`${u.name} does not have a module def (\u0275mod property)`)}function jg(u){return function Rg(u){return void 0!==u.ngModule}(u)?u.ngModule:u}let zh=0;function Wg(u,f){let y=null;(function Yn(u,f){Ge(f)&&(be.set(u,f),Ht.add(u))})(u,f),Vg(u,f),Object.defineProperty(u,dt,{get:()=>{if(null===y){const S=Ie();if(Ge(f)){const we=[`Component '${u.name}' is not resolved:`];throw f.templateUrl&&we.push(` - templateUrl: ${f.templateUrl}`),f.styleUrls&&f.styleUrls.length&&we.push(` - styleUrls: ${JSON.stringify(f.styleUrls)}`),we.push("Did you run and wait for 'resolveComponentResources()'?"),new Error(we.join("\n"))}const x=function A1(){return Tc}();let w=f.preserveWhitespaces;void 0===w&&(w=null!==x&&void 0!==x.preserveWhitespaces&&x.preserveWhitespaces);let re=f.encapsulation;void 0===re&&(re=null!==x&&void 0!==x.defaultEncapsulation?x.defaultEncapsulation:Wt.Emulated);const fe=f.templateUrl||`ng:///${u.name}/template.html`,Ce={...$g(u,f),typeSourceSpan:S.createParseSourceSpan("Component",u.name,fe),template:f.template||"",preserveWhitespaces:w,styles:f.styles||un,animations:f.animations,declarations:[],changeDetection:f.changeDetection,encapsulation:re,interpolation:f.interpolation,viewProviders:f.viewProviders||null};zh++;try{if(Ce.usesInheritance&&Hg(u),y=S.compileComponent(va,fe,Ce),f.standalone){const we=de(f.imports||un),{directiveDefs:Ze,pipeDefs:Et}=function N1(u,f){let y=null,S=null;return{directiveDefs:()=>{if(null===y){y=[In(u)];const re=new Set;for(const fe of f){const Ce=v(fe);if(!re.has(Ce))if(re.add(Ce),zn(Ce)){const we=Wl(Ce);for(const Ze of we.exported.directives){const Et=In(Ze)||Nn(Ze);Et&&!re.has(Ze)&&(re.add(Ze),y.push(Et))}}else{const we=In(Ce)||Nn(Ce);we&&y.push(we)}}}return y},pipeDefs:()=>{if(null===S){S=[];const re=new Set;for(const fe of f){const Ce=v(fe);if(!re.has(Ce))if(re.add(Ce),zn(Ce)){const we=Wl(Ce);for(const Ze of we.exported.pipes){const Et=Rn(Ze);Et&&!re.has(Ze)&&(re.add(Ze),S.push(Et))}}else{const we=Rn(Ce);we&&S.push(we)}}}return S}}}(u,we);y.directiveDefs=Ze,y.pipeDefs=Et,y.dependencies=()=>we.map(v)}}finally{zh--}if(0===zh&&xg(),function j1(u){return void 0!==u.ngSelectorScope}(u)){const we=Wl(u.ngSelectorScope);kh(y,we)}if(f.schemas){if(!f.standalone)throw new Error(`The 'schemas' was specified for the ${C(u)} but is only valid on a component that is standalone.`);y.schemas=f.schemas}else f.standalone&&(y.schemas=[])}return y},configurable:!1})}function Gh(u,f){let y=null;Vg(u,f||{}),Object.defineProperty(u,ht,{get:()=>{if(null===y){const S=Kg(u,f||{});y=Ie().compileDirective(va,S.sourceMapUrl,S.metadata)}return y},configurable:!1})}function Kg(u,f){const y=u&&u.name,S=`ng:///${y}/\u0275dir.js`,x=Ie(),w=$g(u,f);return w.typeSourceSpan=x.createParseSourceSpan("Directive",y,S),w.usesInheritance&&Hg(u),{metadata:w,sourceMapUrl:S}}function Vg(u,f){let y=null;Object.defineProperty(u,Zt,{get:()=>{if(null===y){const S=Kg(u,f),x=Ie();y=x.compileFactory(va,`ng:///${u.name}/\u0275fac.js`,{name:S.metadata.name,type:S.metadata.type,typeArgumentCount:0,deps:Ba(u),target:x.FactoryTarget.Directive})}return y},configurable:!1})}function W1(u){return Object.getPrototypeOf(u.prototype)===Object.prototype}function $g(u,f){const y=Rs(),S=y.ownPropMetadata(u);return{name:u.name,type:u,selector:void 0!==f.selector?f.selector:null,host:f.host||qt,propMetadata:S,inputs:f.inputs||un,outputs:f.outputs||un,queries:kg(u,S,zg),lifecycle:{usesOnChanges:y.hasLifecycleHook(u,"ngOnChanges")}
1,typeSourceSpan:null,usesInheritance:!W1(u),exportAs:$1(f.exportAs),providers:f.providers||null,viewQueries:kg(u,S,Gg),isStandalone:!!f.standalone,hostDirectives:f.hostDirectives?.map(x=>"function"==typeof x?{directive:x}:x)||null}}function Hg(u){const f=Object.prototype;let y=Object.getPrototypeOf(u.prototype).constructor;for(;y&&y!==f;)!Nn(y)&&!In(y)&&k1(y)&&Gh(y,null),y=Object.getPrototypeOf(y)}function K1(u){return"string"==typeof u?Qg(u):v(u)}function V1(u,f){return{propertyName:u,predicate:K1(f.selector),descendants:f.descendants,first:f.first,read:f.read?f.read:null,static:!!f.static,emitDistinctChangesOnly:!!f.emitDistinctChangesOnly}}function kg(u,f,y){const S=[];for(const x in f)if(f.hasOwnProperty(x)){const w=f[x];w.forEach(re=>{if(y(re)){if(!re.selector)throw new Error(`Can't construct a query for the property "${x}" of "${C(u)}" since the query selector wasn't defined.`);if(w.some(Yg))throw new Error("Cannot combine @Input decorators with query decorators");S.push(V1(x,re))}})}return S}function $1(u){return void 0===u?null:Qg(u)}function zg(u){const f=u.ngMetadataName;return"ContentChild"===f||"ContentChildren"===f}function Gg(u){const f=u.ngMetadataName;return"ViewChild"===f||"ViewChildren"===f}function Yg(u){return"Input"===u.ngMetadataName}function Qg(u){return u.split(",").map(f=>f.trim())}const H1=["ngOnChanges","ngOnInit","ngOnDestroy","ngDoCheck","ngAfterViewInit","ngAfterViewChecked","ngAfterContentInit","ngAfterContentChecked"];function k1(u){const f=Rs();if(H1.some(S=>f.hasLifecycleHook(u,S)))return!0;const y=f.propMetadata(u);for(const S in y){const x=y[S];for(let w=0;w<x.length;w++){const re=x[w],fe=re.ngMetadataName;if(Yg(re)||zg(re)||Gg(re)||"Output"===fe||"HostBinding"===fe||"HostListener"===fe)return!0}}return!1}function Xg(u,f){let y=null,S=null;Object.defineProperty(u,Zt,{get:()=>{if(null===S){const x=Zg(u,f),w=Ie();S=w.compileFactory(va,`ng:///${x.name}/\u0275fac.js`,{name:x.name,type:x.type,typeArgumentCount:0,deps:Ba(u),target:w.FactoryTarget.Pipe})}return S},configurable:!1}),Object.defineProperty(u,je,{get:()=>{if(null===y){const x=Zg(u,f);y=Ie().compilePipe(va,`ng:///${x.name}/\u0275pipe.js`,x)}return y},configurable:!1})}function Zg(u,f){return{type:u,name:u.name,pipeName:f.name,pure:void 0===f.pure||f.pure,isStandalone:!!f.standalone}}const Jg=Fo("Directive",(u={})=>u,void 0,void 0,(u,f)=>Gh(u,f)),z1=Fo("Component",(u={})=>({changeDetection:rn.Default,...u}),Jg,void 0,(u,f)=>Wg(u,f)),G1=Fo("Pipe",u=>({pure:!0,...u}),void 0,void 0,(u,f)=>Xg(u,f)),Y1=Vi("Input",u=>({bindingPropertyName:u})),Q1=Vi("Output",u=>({bindingPropertyName:u})),X1=Vi("HostBinding",u=>({hostPropertyName:u})),Z1=Vi("HostListener",(u,f)=>({eventName:u,args:f})),J1=Fo("NgModule",u=>u,void 0,void 0,(u,f)=>Bg(u,f));function Ou(...u){}const qg=new Gr("Application Initializer");let Mu=(()=>{class u{constructor(y){this.appInits=y,this.resolve=Ou,this.reject=Ou,this.initialized=!1,this.done=!1,this.donePromise=new Promise((S,x)=>{this.resolve=S,this.reject=x})}runInitializers(){if(this.initialized)return;const y=[],S=()=>{this.done=!0,this.resolve()};if(this.appInits)for(let x=0;x<this.appInits.length;x++){const w=this.appInits[x]();if(Up(w))y.push(w);else if(bm(w)){const re=new Promise((fe,Ce)=>{w.subscribe({complete:fe,error:Ce})});y.push(re)}}Promise.all(y).then(()=>{S()}).catch(x=>{this.reject(x)}),0===y.length&&S(),this.initialized=!0}}return u.\u0275fac=function(y){return new(y||u)(St(qg,8))},u.\u0275prov=Ee({token:u,factory:u.\u0275fac,providedIn:"root"}),u})();const ev=new Gr("AppId",{providedIn:"root",factory:tv});function tv(){return`${Yh()}${Yh()}${Yh()}`}const q1={provide:ev,useFactory:tv,deps:[]};function Yh(){return String.fromCharCode(97+Math.floor(25*Math.random()))}const nv=new Gr("Platform Initializer"),eC=new Gr("Platform ID",{providedIn:"platform",factory:()=>"unknown"}),tC=new Gr("Application Packages Root URL"),nC=new Gr("AnimationModuleType");let rC=(()=>{class u{log(y){console.log(y)}warn(y){console.warn(y)}}return u.\u0275fac=function(y){return new(y||u)},u.\u0275prov=Ee({token:u,factory:u.\u0275fac,providedIn:"platform"}),u})();const Pu=new Gr("LocaleId",{providedIn:"root",factory:()=>Xt(Pu,mt.Optional|mt.SkipSelf)||function iC(){return typeof $localize<"u"&&$localize.locale||jl}()}),oC=new Gr("DefaultCurrencyCode",{providedIn:"root",factory:()=>"USD"}),sC=new Gr("Translations"),aC=new Gr("TranslationsFormat");var il=(()=>((il=il||{})[il.Error=0]="Error",il[il.Warning=1]="Warning",il[il.Ignore=2]="Ignore",il))();class rv{constructor(f,y){this.ngModuleFactory=f,this.componentFactories=y}}let lC=(()=>{class u{compileModuleSync(y){return new vu(y)}compileModuleAsync(y){return Promise.resolve(this.compileModuleSync(y))}compileModuleAndAllComponentsSync(y){const S=this.compileModuleSync(y),w=ul(zn(y).declarations).reduce((re,fe)=>{const Ce=In(fe);return Ce&&re.push(new _c(Ce)),re},[]);return new rv(S,w)}compileModuleAndAllComponentsAsync(y){return Promise.resolve(this.compileModuleAndAllComponentsSync(y))}clearCache(){}clearCacheFor(y){}getModuleId(y){}}return u.\u0275fac=function(y){return new(y||u)},u.\u0275prov=Ee({token:u,factory:u.\u0275fac,providedIn:"root"}),u})();const iv=new Gr("compilerOptions");class cC{}function dC(u){eu(le(u)),z_(u).forEach(f=>ym(f))}const ov="ng";let sv=!1;function uC(){sv||(sv=!0,Va("\u0275setProfiler",Do),Va("getDirectiveMetadata",d1),Va("getComponent",xh),Va("getContext",H_),Va("getListeners",Q_),Va("getOwningComponent",k_),Va("getHostElement",Lh),Va("getInjector",G_),Va("getRootComponents",z_),Va("getDirectives",Y_),Va("applyChanges",dC))}function Va(u,f){if((typeof COMPILED>"u"||!COMPILED)&&Rt){let S=Rt[ov];S||(S=Rt[ov]={}),S[u]=f}}const pC=(()=>Promise.resolve(0))();function Qh(u){typeof Zone>"u"?pC.then(()=>
1{u&&u.apply(null,null)}):Zone.current.scheduleMicroTask("scheduleMicrotask",u)}class $a{constructor({enableLongStackTrace:f=!1,shouldCoalesceEventChangeDetection:y=!1,shouldCoalesceRunChangeDetection:S=!1}){if(this.hasPendingMacrotasks=!1,this.hasPendingMicrotasks=!1,this.isStable=!0,this.onUnstable=new rl(!1),this.onMicrotaskEmpty=new rl(!1),this.onStable=new rl(!1),this.onError=new rl(!1),typeof Zone>"u")throw new P(908,!1);Zone.assertZonePatched();const x=this;x._nesting=0,x._outer=x._inner=Zone.current,Zone.TaskTrackingZoneSpec&&(x._inner=x._inner.fork(new Zone.TaskTrackingZoneSpec)),f&&Zone.longStackTraceZoneSpec&&(x._inner=x._inner.fork(Zone.longStackTraceZoneSpec)),x.shouldCoalesceEventChangeDetection=!S&&y,x.shouldCoalesceRunChangeDetection=S,x.lastRequestAnimationFrameId=-1,x.nativeRequestAnimationFrame=function hC(){let u=Rt.requestAnimationFrame,f=Rt.cancelAnimationFrame;if(typeof Zone<"u"&&u&&f){const y=u[Zone.__symbol__("OriginalDelegate")];y&&(u=y);const S=f[Zone.__symbol__("OriginalDelegate")];S&&(f=S)}return{nativeRequestAnimationFrame:u,nativeCancelAnimationFrame:f}}().nativeRequestAnimationFrame,function _C(u){const f=()=>{!function mC(u){u.isCheckStableRunning||-1!==u.lastRequestAnimationFrameId||(u.lastRequestAnimationFrameId=u.nativeRequestAnimationFrame.call(Rt,()=>{u.fakeTopEventTask||(u.fakeTopEventTask=Zone.root.scheduleEventTask("fakeTopEventTask",()=>{u.lastRequestAnimationFrameId=-1,Zh(u),u.isCheckStableRunning=!0,Xh(u),u.
vendor: 5,385 bytes, line 1
1isCheckStableRunning=!1},void 0,()=>{},()=>{})),u.fakeTopEventTask.invoke()}),Zh(u))}(u)};u._inner=u._inner.fork({name:"angular",properties:{isAngularZone:!0},onInvokeTask:(y,S,x,w,re,fe)=>{try{return av(u),y.invokeTask(x,w,re,fe)}finally{(u.shouldCoalesceEventChangeDetection&&"eventTask"===w.type||u.shouldCoalesceRunChangeDetection)&&f(),lv(u)}},onInvoke:(y,S,x,w,re,fe,Ce)=>{try{return av(u),y.invoke(x,w,re,fe,Ce)}finally{u.shouldCoalesceRunChangeDetection&&f(),lv(u)}},onHasTask:(y,S,x,w)=>{y.hasTask(x,w),S===x&&("microTask"==w.change?(u._hasPendingMicrotasks=w.microTask,Zh(u),Xh(u)):"macroTask"==w.change&&(u.hasPendingMacrotasks=w.macroTask))},onHandleError:(y,S,x,w)=>(y.handleError(x,w),u.runOutsideAngular(()=>u.onError.emit(w)),!1)})}(x)}static isInAngularZone(){return typeof Zone<"u"&&!0===Zone.current.get("isAngularZone")}static assertInAngularZone(){if(!$a.isInAngularZone())throw new P(909,!1)}static assertNotInAngularZone(){if($a.isInAngularZone())throw new P(909,!1)}run(f,y,S){return this._inner.run(f,y,S)}runTask(f,y,S,x){const w=this._inner,re=w.scheduleEventTask("NgZoneEvent: "+x,f,fC,Ou,Ou);try{return w.runTask(re,y,S)}finally{w.cancelTask(re)}}runGuarded(f,y,S){return this._inner.runGuarded(f,y,S)}runOutsideAngular(f){return this._outer.run(f)}}const fC={};function Xh(u){if(0==u._nesting&&!u.hasPendingMicrotasks&&!u.isStable)try{u._nesting++,u.onMicrotaskEmpty.emit(null)}finally{if(u._nesting--,!u.hasPendingMicrotasks)try{u.runOutsideAngular(()=>u.onStable.emit(null))}finally{u.isStable=!0}}}function Zh(u){u.hasPendingMicrotasks=!!(u._hasPendingMicrotasks||(u.shouldCoalesceEventChangeDetection||u.shouldCoalesceRunChangeDetection)&&-1!==u.lastRequestAnimationFrameId)}function av(u){u._nesting++,u.isStable&&(u.isStable=!1,u.onUnstable.emit(null))}function lv(u){u._nesting--,Xh(u)}class cv{constructor(){this.hasPendingMicrotasks=!1,this.hasPendingMacrotasks=!1,this.isStable=!0,this.onUnstable=new rl,this.onMicrotaskEmpty=new rl,this.onStable=new rl,this.onError=new rl}run(f,y,S){return f.apply(y,S)}runGuarded(f,y,S){return f.apply(y,S)}runOutsideAngular(f){return f()}runTask(f,y,S,x){return f.apply(y,S)}}const dv=new Gr(""),uv=new Gr("");let Jh,gC=(()=>{class u{constructor(y,S,x){this._ngZone=y,this.registry=S,this._pendingCount=0,this._isZoneStable=!0,this._didWork=!1,this._callbacks=[],this.taskTrackingZone=null,Jh||(hv(x),x.addToWindow(S)),this._watchAngularEvents(),y.run(()=>{this.taskTrackingZone=typeof Zone>"u"?null:Zone.current.get("TaskTrackingZone")})}_watchAngularEvents(){this._ngZone.onUnstable.subscribe({next:()=>{this._didWork=!0,this._isZoneStable=!1}}),this._ngZone.runOutsideAngular(()=>{this._ngZone.onStable.subscribe({next:()=>{$a.assertNotInAngularZone(),Qh(()=>{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())Qh(()=>{for(;0!==this._callbacks.length;){let y=this._callbacks.pop();clearTimeout(y.timeoutId),y.doneCb(this._didWork)}this._didWork=!1});else{let y=this.getPendingTasks();this._callbacks=this._callbacks.filter(S=>!S.updateCb||!S.updateCb(y)||(clearTimeout(S.timeoutId),!1)),this._didWork=!0}}getPendingTasks(){return this.taskTrackingZone?this.taskTrackingZone.macroTasks.map(y=>({source:y.source,creationLocation:y.creationLocation,data:y.data})):[]}addCallback(y,S,x){let w=-1;S&&S>0&&(w=setTimeout(()=>{this._callbacks=this._callbacks.filter(re=>re.timeoutId!==w),y(this._didWork,this.getPendingTasks())},S)),this._callbacks.push({doneCb:y,timeoutId:w,updateCb:x})}whenStable(y,S,x){if(x&&!this.taskTrackingZone)throw new Error('Task tracking zone is required when passing an update callback to whenStable(). Is "zone.js/plugins/task-tracking" loaded?');this.addCallback(y,S,x),this._runCallbacksIfReady()}getPendingRequestCount(){return this._pendingCount}registerApplication(y){this.registry.registerApplication(y,this)}unregisterApplication(y){this.registry.unregisterApplication(y)}findProviders(y,S,x){return[]}}return u.\u0275fac=function(y){return new(y||u)(St($a),St(pv),St(uv))},u.\u0275prov=Ee({token:u,factory:u.\u0275fac}),u})(),pv=(()=>{class u{constructor(){this._applications=new Map}registerApplication(y,S){this._applications.set(y,S)}unregisterApplication(y){this._applications.delete(y)}unregisterAllApplications(){this._applications.clear()}getTestability(y){return this._applications.get(y)||null}getAllTestabilities(){return Array.from(this._applications.values())}getAllRootElements(){return Array.from(this._applications.keys())}findTestabilityInTree(y,S=!0){return Jh?.findTestabilityInTree(this,y,S)??null}}return u.\u0275fac=function(y){return new(y||u)},u.\u0275prov=Ee({token:u,factory:u.\u0275fac,providedIn:"platform"}),u})();function hv(u){Jh=u}const fl=!1;let yl=null;const qh=new Gr("AllowMultipleToken"),ef=new Gr("PlatformDestroyListeners"),fv=new Gr("appBootstrapListener");function mv(u,f,y){const S=new vu(y);return Promise.resolve(S)}function _v(u){return u.isBoundToModule}class vC{constructor(f,y){this.name=f,this.token=y}}
1function gv(u){if(yl&&!yl.get(qh,!1))throw new P(400,!1);yl=u;const f=u.get(tf);return vv(u),f}function vv(u){const f=u.get(nv,null);f&&f.forEach(y=>y())}function yC(u){const{rootComponent:f,appProviders:y,platformProviders:S}=u;fl&&void 0!==f&&function sE(u){if(function aE(u){if(!In(u))throw new P(906,`The ${C(u)} is not an Angular component, make sure it has the \`@Component\` decorator.`)}(u),!In(u).standalone)throw new P(907,`The ${C(u)} component is not marked as standalone, but Angular expects to have a standalone component here. Please make sure the ${C(u)} component has the \`standalone: true\` flag in the decorator.`)}(f);const x=function EC(u=[]){if(yl)return yl;const f=Cv(u);return yl=f,vv(f),f}(S),w=Ov("zone.js",Dv());return w.run(()=>{const fe=Rh([{provide:$a,useValue:w},...y||[]],x,"Environment Injector"),Ce=fe.get(id,null);if(fl&&!Ce)throw new P(402,"No `ErrorHandler` found in the Dependency Injection tree.");let we;w.runOutsideAngular(()=>{we=w.onError.subscribe({next:Qt=>{Ce.handleError(Qt)}})});const Ze=()=>fe.destroy(),Et=x.get(ef);return Et.add(Ze),fe.onDestroy(()=>{we.unsubscribe(),Et.delete(Ze)}),Mv(Ce,w,()=>{const Qt=fe.get(Mu);return Qt.runInitializers(),Qt.donePromise.then(()=>{yh(fe.get(Pu,jl)||jl);const yn=fe.get(Su);return void 0!==f&&yn.bootstrap(f),yn})})})}function Ev(u,f,y=[]){const S=`Platform: ${f}`,x=new Gr(S);return(w=[])=>{let re=bu();if(!re||re.injector.get(qh,!1)){const fe=[...y,...w,{provide:x,useValue:!0}];u?u(fe):gv(Cv(fe,S))}return yv()}}function yv(u){const f=bu();if(!f)throw new P(401,!1);return f}function Cv(u=[],f){return vl.create({name:f,providers:[{provide:Qu,useValue:"platform"},{provide:ef,useValue:new Set([()=>yl=null])},...u]})}function CC(){bu()?.destroy()}function bu(){return yl?.get(tf)??null}let tf=(()=>{class u{constructor(y){this._injector=y,this._modules=[],this._destroyListeners=[],this._destroyed=!1}bootstrapModuleFactory(y,S){const x=Ov(S?.ngZone,Dv(S)),w=[{provide:$a,useValue:x}];return x.run(()=>{const re=vl.create({providers:w,parent:this.injector,name:y.moduleType.name}),fe=y.create(re),Ce=fe.injector.get(id,null);if(!Ce)throw new P(402,!1);return x.runOutsideAngular(()=>{const we=x.onError.subscribe({next:Ze=>{Ce.handleError(Ze)}});fe.onDestroy(()=>{Iu(this._modules,fe),we.unsubscribe()})}),Mv(Ce,x,()=>{const we=fe.injector.get(Mu);return we.runInitializers(),we.donePromise.then(()=>(yh(fe.injector.get(Pu,jl)||jl),this._moduleDoBootstrap(fe),fe))})})}bootstrapModule(y,S=[]){const x=Pv({},S);return mv(0,0,y).then(w=>this.bootstrapModuleFactory(w,x))}_moduleDoBootstrap(y){const S=y.injector.get(Su);if(y._bootstrapComponents.length>0)y._bootstrapComponents.forEach(x=>S.bootstrap(x));else{if(!y.instance.ngDoBootstrap)throw new P(-403,!1);y.instance.ngDoBootstrap(S)}this._modules.push(y)}onDestroy(y){this._destroyListeners.push(y)}get injector(){return this._injector}destroy(){if(this._destroyed)throw new P(404,!1);this._modules.slice().forEach(S=>S.destroy()),this._destroyListeners.forEach(S=>S());const y=this._injector.get(ef,null);y&&(y.forEach(S=>S()),y.clear()),this._destroyed=!0}get destroyed(){return this._destroyed}}return u.\u0275fac=function(y){return new(y||u)(St(vl))},u.\u0275prov=Ee({token:u,factory:u.\u0275fac,providedIn:"platform"}),u})();function Dv(u){return{enableLongStackTrace:!1,shouldCoalesceEventChangeDetection:!(!u||!u.ngZoneEventCoalescing)||!1,shouldCoalesceRunChangeDetection:!(!u||!u.ngZoneRunCoalescing)||!1}}function Ov(u,f){let y;return y="noop"===u?new cv:("zone.js"===u?void 0:u)||new $a(f),y}function Mv(u,f,y){try{const S=y();return Up(S)?S.catch(x=>{throw f.runOutsideAngular(()=>u.handleError(x)),x}):S}catch(S){throw f.runOutsideAngular(()=>u.handleError(S)),S}}function Pv(u,f){return Array.isArray(f)?f.reduce(Pv,u):{...u,...f}}let Su=(()=>{class u{get destroyed(){return this._destroyed}get injector(){return this._injector}constructor(y,S,x){this._zone=y,this._injector=S,this._exceptionHandler=x,this._bootstrapListeners=[],this._views=[],this._runningTick=!1,this._stable=!0,this._destroyed=!1,this._destroyListeners=[],this.componentTypes=[],this.components=[],this._onMicrotaskEmptySubscription=this._zone.onMicrotaskEmpty.subscribe({next:()=>{this._zone.run(()=>{this.tick()})}});const w=new o.y(fe=>{this._stable=this._zone.isStable&&!this._zone.hasPendingMacrotasks&&!this._zone.hasPendingMicrotasks,this._zone.runOutsideAngular(()=>{fe.next(this._stable),fe.complete()})}),re=new o.y(fe=>{let Ce;this._zone.runOutsideAngular(()=>{Ce=this._zone.onStable.subscribe(()=>{$a.assertNotInAngularZone(),Qh(()=>{!this._stable&&!this._zone.hasPendingMacrotasks&&!this._zone.hasPendingMicrotasks&&(this._stable=!0,fe.next(!0))})})});const we=this._zone.onUnstable.subscribe(()=>{$a.assertInAngularZone(),this._stable&&(this._stable=!1,this._zone.runOutsideAngular(()=>{fe.next(!1)}))});return()=>{Ce.unsubscribe(),we.unsubscribe()}});this.isStable=(0,i.T)(w,re.pipe((0,d.B)()))}bootstrap(y,S){fl&&this.warnIfDestroyed();const x=y instanceof Yd;if(!this._injector.get(Mu).done){const ln="Cannot bootstrap as there are still asynchronous initializer
1s running."+(!x&&Jn(y)?"":" Bootstrap components in the `ngDoBootstrap` method of the root module.");throw new P(405,fl&&ln)}let re;re=x?y:this._injector.get(nd).resolveComponentFactory(y),this.componentTypes.push(re.componentType);const fe=_v(re)?void 0:this._injector.get(Ic),we=re.create(vl.NULL,[],S||re.selector,fe),Ze=we.location.nativeElement,Et=we.injector.get(dv,null);return Et?.registerApplication(Ze),we.onDestroy(()=>{this.detachView(we.hostView),Iu(this.components,we),Et?.unregisterApplication(Ze)}),this._loadComponent(we),we}tick(){if(fl&&this.warnIfDestroyed(),this._runningTick)throw new P(101,!1);try{this._runningTick=!0;for(let y of this._views)y.detectChanges()}catch(y){this._zone.runOutsideAngular(()=>this._exceptionHandler.handleError(y))}finally{this._runningTick=!1}}attachView(y){fl&&this.warnIfDestroyed();const S=y;this._views.push(S),S.attachToAppRef(this)}detachView(y){fl&&this.warnIfDestroyed();const S=y;Iu(this._views,S),S.detachFromAppRef()}_loadComponent(y){this.attachView(y.hostView),this.tick(),this.components.push(y);const S=this._injector.get(fv,[]);S.push(...this._bootstrapListeners),S.forEach(x=>x(y))}ngOnDestroy(){if(!this._destroyed)try{this._destroyListeners.forEach(y=>y()),this._views.slice().forEach(y=>y.destroy()),this._onMicrotaskEmptySubscription.unsubscribe()}finally{this._destroyed=!0,this._views=[],this._bootstrapListeners=[],this._destroyListeners=[]}}onDestroy(y){return fl&&this.warnIfDestroyed(),this._destroyListeners.push(y),()=>Iu(this._destroyListeners,y)}destroy(){if(this._destroyed)throw new P(406,!1);const y=this._injector;y.destroy&&!y.destroyed&&y.destroy()}get viewCount(){return this._views.length}warnIfDestroyed(){fl&&this._destroyed&&console.warn(D(406,"This instance of the `ApplicationRef` has already been destroyed."))}}return u.\u0275fac=function(y){return new(y||u)(St($a),St(Ul),St(id))},u.\u0275prov=Ee({token:u,factory:u.\u0275fac,providedIn:"root"}),u})();function Iu(u,f){const y=u.indexOf(f);y>-1&&u.splice(y,1)}function OC(){return!1}function MC(){}function PC(u){const f=Vl(u);if(!f)throw Sv(u);return new vu(f)}function bC(u){const f=Vl(u);if(!f)throw Sv(u);return f}function Sv(u){return new Error(`No module with ID ${u} loaded`)}let Iv=(()=>{class u{}return u.__NG_ELEMENT_ID__=Tv,u})();function Tv(u){return function SC(u,f,y){if(vo(u)&&!y){const S=Ni(u.index,f);return new mc(S,S)}return 47&u.type?new mc(f[Ri],f):null}(li(),Bt(),16==(16&u))}class Av extends Iv{}class IC extends Av{}class TC{constructor(f,y){this.name=f,this.callback=y}}function AC(u){return u.map(f=>f.nativeElement)}class nf{constructor(f){this.nativeNode=f}get parent(){const f=this.nativeNode.parentNode;return f?new vd(f):null}get injector(){return G_(this.nativeNode)}get componentInstance(){const f=this.nativeNode;return f&&(xh(f)||k_(f))}get context(){return xh(this.nativeNode)||H_(this.nativeNode)}get listeners(){return Q_(this.nativeNode).filter(f=>"dom"===f.type)}get references(){return function u1(u){const f=Fs(u);if(null===f)return{};if(void 0===f.localRefs){const y=f.lView;if(null===y)return{};f.localRefs=function Ji(u,f){const y=u[Mn].data[f];if(y&&y.localNames){const S={};let x=y.index+1;for(let w=0;w<y.localNames.length;w+=2)S[y.localNames[w]]=u[x],x++;return S}return null}(y,f.nodeIndex)}return f.localRefs||{}}(this.nativeNode)}get providerTokens(){return function c1(u){const f=Fs(u),y=f?f.lView:null;if(null===y)return[];const S=y[Mn],x=S.data[f.nodeIndex],w=[],fe=x.directiveEnd;for(let Ce=1048575&x.providerIndexes;Ce<fe;Ce++){let we=S.data[Ce];h1(we)&&(we=we.type),w.push(we)}return w}(this.nativeNode)}}class vd extends nf{constructor(f){super(f)}get nativeElement(){return this.nativeNode.nodeType==Node.ELEMENT_NODE?this.nativeNode:null}get name(){const f=Fs(this.nativeNode),y=f?f.lView:null;return null!==y?y[Mn].data[f.nodeIndex].value:this.nativeNode.nodeName}get properties(){const f=Fs(this.nativeNode),y=f?f.lView:null;if(null===y)return{};const S=y[Mn].data,x=S[f.nodeIndex],w={};return function RC(u,f){if(u){let y=Object.getPrototypeOf(u);const S=Node.prototype;for(;null!==y&&y!==S;){const x=Object.getOwnPropertyDescriptors(y);for(let w in x)if(!w.startsWith("__")&&!w.startsWith("on")){const re=u[w];xC(re)&&(f[w]=re)}y=Object.getPrototypeOf(y)}}}(this.nativeElement,w),function LC(u,f,y,S){let x=f.propertyBindings;if(null!==x)for(let w=0;w<x.length;w++){const re=x[w],Ce=S[re].split("\ufffd"),we=Ce[0];if(Ce.length>1){let Ze=Ce[1];for(let Et=1;Et<Ce.length-1;Et++)Ze+=l(y[re+Et-1])+Ce[Et+1];u[we]=Ze}else u[we]=y[re]}}(w,x,y,S),w}get attributes(){const f={},y=this.nativeElement;if(!y)return f;const S=Fs(y),x=S?S.lView:null;if(null===x)return{};const w=x[Mn].data[S.nodeIndex].attrs,re=[];if(w){let fe=0;for(;fe<w.length;){const Ce=w[fe];if("string"!=typeof Ce)break;f[Ce]=w[fe+1],re.push(Ce.toLowerCase()),fe+=2}}for(const fe of y.attributes)re.includes(fe.name)||(f[fe.name]=fe.value);return f}get styles(){return this.nativeElement&&this.nativeElement.style?this.nativeElement.style:{}}get classes(){const f={},S=this.nativeElement.className;return("string"!=typeof S?S.baseVal.split(" "):S.split(" ")).forEac
1h(w=>f[w]=!0),f}get childNodes(){const f=this.nativeNode.childNodes,y=[];for(let S=0;S<f.length;S++)y.push(Ac(f[S]));return y}get children(){const f=this.nativeElement;if(!f)return[];const y=f.children,S=[];for(let x=0;x<y.length;x++)S.push(Ac(y[x]));return S}query(f){return this.queryAll(f)[0]||null}queryAll(f){const y=[];return Rv(this,f,y,!0),y}queryAllNodes(f){const y=[];return Rv(this,f,y,!1),y}triggerEventHandler(f,y){const S=this.nativeNode,x=[];this.listeners.forEach(w=>{if(w.name===f){const re=w.callback;re.call(S,y),x.push(re)}}),"function"==typeof S.eventListeners&&S.eventListeners(f).forEach(w=>{if(-1!==w.toString().indexOf("__ngUnwrap__")){const re=w("__ngUnwrap__");return-1===x.indexOf(re)&&re.call(S,y)}})}}function xC(u){return"string"==typeof u||"boolean"==typeof u||"number"==typeof u||null===u}function Rv(u,f,y,S){const x=Fs(u.nativeNode),w=x?x.lView:null;null!==w?Kl(w[Mn].data[x.nodeIndex],w,f,y,S,u.nativeNode):sf(u.nativeNode,f,y,S)}function Kl(u,f,y,S,x,w){const re=function bo(u,f){const y=null===u?-1:u.index;return-1!==y?Ii(f[y]):null}(u,f);if(11&u.type){if(rf(re,y,S,x,w),vo(u)){const Ce=Ni(u.index,f);Ce&&Ce[Mn].firstChild&&Kl(Ce[Mn].firstChild,Ce,y,S,x,w)}else u.child&&Kl(u.child,f,y,S,x,w),re&&sf(re,y,S,x);const fe=f[u.index];jr(fe)&&xv(fe,y,S,x,w)}else if(4&u.type){const fe=f[u.index];rf(fe[mr],y,S,x,w),xv(fe,y,S,x,w)}else if(16&u.type){const fe=f[Ri],we=fe[wr].projection[u.projection];if(Array.isArray(we))for(let Ze of we)rf(Ze,y,S,x,w);else if(we){const Ze=fe[cr];Kl(Ze[Mn].data[we.index],Ze,y,S,x,w)}}else u.child&&Kl(u.child,f,y,S,x,w);if(w!==re){const fe=2&u.flags?u.projectionNext:u.next;fe&&Kl(fe,f,y,S,x,w)}}function xv(u,f,y,S,x){for(let w=qn;w<u.length;w++){const re=u[w],fe=re[Mn].firstChild;fe&&Kl(fe,re,f,y,S,x)}}function rf(u,f,y,S,x){if(x!==u){const w=Ac(u);if(!w)return;(S&&w instanceof vd&&f(w)&&-1===y.indexOf(w)||!S&&f(w)&&-1===y.indexOf(w))&&y.push(w)}}function sf(u,f,y,S){const x=u.childNodes,w=x.length;for(let re=0;re<w;re++){const fe=x[re],Ce=Ac(fe);Ce&&((S&&Ce instanceof vd&&f(Ce)&&-1===y.indexOf(Ce)||!S&&f(Ce)&&-1===y.indexOf(Ce))&&y.push(Ce),sf(fe,f,y,S))}}const lf="__ng_debug__";function Ac(u){return u instanceof Node?(u.hasOwnProperty(lf)||(u[lf]=u.nodeType==Node.ELEMENT_NODE?new vd(u):new nf(u)),u[lf]):null}function BC(u){return null}class Lv{constructor(){}supports(f){return iu(f)}create(f){return new Bv(f)}}const UC=(u,f)=>f;class Bv{constructor(f){this.length=0,this._linkedRecords=null,this._unlinkedRecords=null,this._previousItHead=null,this._itHead=null,this._itTail=null,this._additionsHead=null,this._additionsTail=null,this._movesHead=null,this._movesTail=null,this._removalsHead=null,this._removalsTail=null,this._identityChangesHead=null,this._identityChangesTail=null,this._trackByFn=f||UC}forEachItem(f){let y;for(y=this._itHead;null!==y;y=y._next)f(y)}forEachOperation(f){let y=this._itHead,S=this._removalsHead,x=0,w=null;for(;y||S;){const re=!S||y&&y.currentIndex<wv(S,x,w)?y:S,fe=wv(re,x,w),Ce=re.currentIndex;if(re===S)x--,S=S._nextRemoved;else if(y=y._next,null==re.previousIndex)x++;else{w||(w=[]);const we=fe-x,Ze=Ce-x;if(we!=Ze){for(let Qt=0;Qt<we;Qt++){const ln=Qt<w.length?w[Qt]:w[Qt]=0,yn=ln+Qt;Ze<=yn&&yn<we&&(w[Qt]=ln+1)}w[re.previousIndex]=Ze-we}}fe!==Ce&&f(re,fe,Ce)}}forEachPreviousItem(f){let y;for(y=this._previousItHead;null!==y;y=y._nextPrevious)f(y)}forEachAddedItem(f){let y;for(y=this._additionsHead;null!==y;y=y._nextAdded)f(y)}forEachMovedItem(f){let y;for(y=this._movesHead;null!==y;y=y._nextMoved)f(y)}forEachRemovedItem(f){let y;for(y=this._removalsHead;null!==y;y=y._nextRemoved)f(y)}forEachIdentityChange(f){let y;for(y=this._identityChangesHead;null!==y;y=y._nextIdentityChange)f(y)}diff(f){if(null==f&&(f=[]),!iu(f))throw new P(900,!1);return this.check(f)?this:null}onDestroy(){}check(f){this._reset();let x,w,re,y=this._itHead,S=!1;if(Array.isArray(f)){this.length=f.length;for(let fe=0;fe<this.length;fe++)w=f[fe],re=this._trackByFn(fe,w),null!==y&&Object.is(y.trackById,re)?(S&&(y=this._verifyReinsertion(y,w,re,fe)),Object.is(y.item,w)||this._addIdentityChange(y,w)):(y=this._mismatch(y,w,re,fe),S=!0),y=y._next}else x=0,function L0(u,f){if(Array.isArray(u))for(let y=0;y<u.length;y++)f(u[y]);else{const y=u[Symbol.iterator]();let S;for(;!(S=y.next()).done;)f(S.value)}}(f,fe=>{re=this._trackByFn(x,fe),null!==y&&Object.is(y.trackById,re)?(S&&(y=this._verifyReinsertion(y,fe,re,x)),Object.is(y.item,fe)||this._addIdentityChange(y,fe)):(y=this._mismatch(y,fe,re,x),S=!0),y=y._next,x++}),this.length=x;return this._truncate(y),this.collection=f,this.isDirty}get isDirty(){return null!==this._additionsHead||null!==this._movesHead||null!==this._removalsHead||null!==this._identityChangesHead}_reset(){if(this.isDirty){let f;for(f=this._previousItHead=this._itHead;null!==f;f=f._next)f._nextPrevious=f._next;for(f=this._additionsHead;null!==f;f=f._nextAdded)f.previousIndex=f.currentIndex;for(this._additionsHead=this._additionsTail=null,f=this._movesHead;null!==f;f=f._nextMoved)f.previousIndex=f.currentIndex;this._movesHead=this._movesTail=null,this._removalsHead=this._removalsTail=null,this._identityChangesHead=this._identityChangesTail=null}}_mismatch(f,y,S,x){let w;return null===f?w=this._itTail:(w=f._prev,this._remove(f)),null!==(f=null===this._unlinkedRecords?null:this._unlinkedRecords.get(S,null))?(Object.is(f.item,y)||this._addIdentityChange(f,y),this._reinsertAfter(f,w,x)):null!==(f=null===this._linkedRecords?null:this._linkedRecords.get(S,x))?(Object.is(f.item,y)||this._addIdentityChange(f,y),this._moveAfter(f,w,x)):f=this._addAfter(new wC(y,S),w,x),f}_verifyReinsertion(f,y,S,x){let w=null===this._unlinkedRecords?null:this._unlinkedRecords.get(S,null);return null!==w?f=this._reinsertAfter(w,f._prev,x):f.currentIndex!=x&&(f.currentIndex=x,this._addToMoves(f,x)),f}_truncate(f){for(;null!==f;){const y=f._next;this._addToRemovals(this._unlink(f)),f=y}null!==this._unlinkedRecords&&this._unlinkedRecords.clear(),null!==this._additionsTail&&(this._additionsTail._nextAdded=null),null!==this._movesTail&&(this._movesTail._nextMoved=null),null!==this._itTail&&(this._itTail._next=null),null!==this._removalsTail&&(this._removalsTail._nextRemoved=null),null!==this._identityChangesTail&&(this._identityChangesTail._nextIdentityChange=null)}_reinsertAfter(f,y,S){null!==this._unlinkedRecords&&this._unlinkedRecords.remove(f);const x=f._prevRemoved,w=f._nextRemoved;return null===x?this._removalsHead=w:x._nextRemoved=w,null===w?this._removalsTail=x:w._prevRemoved=x,this._insertAfter(f,y,S),this._addToMoves(f,S
vendor: 4,528 bytes, line 1
1),f}_moveAfter(f,y,S){return this._unlink(f),this._insertAfter(f,y,S),this._addToMoves(f,S),f}_addAfter(f,y,S){return this._insertAfter(f,y,S),this._additionsTail=null===this._additionsTail?this._additionsHead=f:this._additionsTail._nextAdded=f,f}_insertAfter(f,y,S){const x=null===y?this._itHead:y._next;return f._next=x,f._prev=y,null===x?this._itTail=f:x._prev=f,null===y?this._itHead=f:y._next=f,null===this._linkedRecords&&(this._linkedRecords=new Uv),this._linkedRecords.put(f),f.currentIndex=S,f}_remove(f){return this._addToRemovals(this._unlink(f))}_unlink(f){null!==this._linkedRecords&&this._linkedRecords.remove(f);const y=f._prev,S=f._next;return null===y?this._itHead=S:y._next=S,null===S?this._itTail=y:S._prev=y,f}_addToMoves(f,y){return f.previousIndex===y||(this._movesTail=null===this._movesTail?this._movesHead=f:this._movesTail._nextMoved=f),f}_addToRemovals(f){return null===this._unlinkedRecords&&(this._unlinkedRecords=new Uv),this._unlinkedRecords.put(f),f.currentIndex=null,f._nextRemoved=null,null===this._removalsTail?(this._removalsTail=this._removalsHead=f,f._prevRemoved=null):(f._prevRemoved=this._removalsTail,this._removalsTail=this._removalsTail._nextRemoved=f),f}_addIdentityChange(f,y){return f.item=y,this._identityChangesTail=null===this._identityChangesTail?this._identityChangesHead=f:this._identityChangesTail._nextIdentityChange=f,f}}class wC{constructor(f,y){this.item=f,this.trackById=y,this.currentIndex=null,this.previousIndex=null,this._nextPrevious=null,this._prev=null,this._next=null,this._prevDup=null,this._nextDup=null,this._prevRemoved=null,this._nextRemoved=null,this._nextAdded=null,this._nextMoved=null,this._nextIdentityChange=null}}class FC{constructor(){this._head=null,this._tail=null}add(f){null===this._head?(this._head=this._tail=f,f._nextDup=null,f._prevDup=null):(this._tail._nextDup=f,f._prevDup=this._tail,f._nextDup=null,this._tail=f)}get(f,y){let S;for(S=this._head;null!==S;S=S._nextDup)if((null===y||y<=S.currentIndex)&&Object.is(S.trackById,f))return S;return null}remove(f){const y=f._prevDup,S=f._nextDup;return null===y?this._head=S:y._nextDup=S,null===S?this._tail=y:S._prevDup=y,null===this._head}}class Uv{constructor(){this.map=new Map}put(f){const y=f.trackById;let S=this.map.get(y);S||(S=new FC,this.map.set(y,S)),S.add(f)}get(f,y){const x=this.map.get(f);return x?x.get(f,y):null}remove(f){const y=f.trackById;return this.map.get(y).remove(f)&&this.map.delete(y),f}get isEmpty(){return 0===this.map.size}clear(){this.map.clear()}}function wv(u,f,y){const S=u.previousIndex;if(null===S)return S;let x=0;return y&&S<y.length&&(x=y[S]),S+f+x}class Fv{constructor(){}supports(f){return f instanceof Map||yp(f)}create(){return new NC}}class NC{constructor(){this._records=new Map,this._mapHead=null,this._appendAfter=null,this._previousMapHead=null,this._changesHead=null,this._changesTail=null,this._additionsHead=null,this._additionsTail=null,this._removalsHead=null,this._removalsTail=null}get isDirty(){return null!==this._additionsHead||null!==this._changesHead||null!==this._removalsHead}forEachItem(f){let y;for(y=this._mapHead;null!==y;y=y._next)f(y)}forEachPreviousItem(f){let y;for(y=this._previousMapHead;null!==y;y=y._nextPrevious)f(y)}forEachChangedItem(f){let y;for(y=this._changesHead;null!==y;y=y._nextChanged)f(y)}forEachAddedItem(f){let y;for(y=this._additionsHead;null!==y;y=y._nextAdded)f(y)}forEachRemovedItem(f){let y;for(y=this._removalsHead;null!==y;y=y._nextRemoved)f(y)}diff(f){if(f){if(!(f instanceof Map||yp(f)))throw new P(900,!1)}else f=new Map;return this.check(f)?this:null}onDestroy(){}check(f){this._reset();let y=this._mapHead;if(this._appendAfter=null,this._forEach(f,(S,x)=>{if(y&&y.key===x)this._maybeAddToChanges(y,S),this._appendAfter=y,y=y._next;else{const w=this._getOrCreateRecordForKey(x,S);y=this._insertBeforeOrAppend(y,w)}}),y){y._prev&&(y._prev._next=null),this._removalsHead=y;for(let S=y;null!==S;S=S._nextRemoved)S===this._mapHead&&(this._mapHead=null),this._records.delete(S.key),S._nextRemoved=S._next,S.previousValue=S.currentValue,S.currentValue=null,S._prev=null,S._next=null}return this._changesTail&&(this._changesTail._nextChanged=null),this._additionsTail&&(this._additionsTail._nextAdded=null),this.isDirty}_insertBeforeOrAppend(f,y){if(f){const S=f._prev;return y._next=f,y._prev=S,f._prev=y,S&&(S._next=y),f===this._mapHead&&(this._mapHead=y),this._appendAfter=f,f}return this._appendAfter?(this._appendAfter._next=y,y._prev=this._appendAfter):this._mapHead=y,this._appendAfter=y,null}
1_getOrCreateRecordForKey(f,y){if(this._records.has(f)){const x=this._records.get(f);this._maybeAddToChanges(x,y);const w=x._prev,re=x._next;return w&&(w._next=re),re&&(re._prev=w),x._next=null,x._prev=null,x}const S=new jC(f);return this._records.set(f,S),S.currentValue=y,this._addToAdditions(S),S}_reset(){if(this.isDirty){let f;for(this._previousMapHead=this._mapHead,f=this._previousMapHead;null!==f;f=f._next)f._nextPrevious=f._next;for(f=this._changesHead;null!==f;f=f._nextChanged)f.previousValue=f.currentValue;for(f=this._additionsHead;null!=f;f=f._nextAdded)f.previousValue=f.currentValue;this._changesHead=this._changesTail=null,this._additionsHead=this._additionsTail=null,this._removalsHead=null}}_maybeAddToChanges(f,y){Object.is(y,f.currentValue)||(f.previousValue=f.currentValue,f.currentValue=y,this._addToChanges(f))}_addToAdditions(f){null===this._additionsHead?this._additionsHead=this._additionsTail=f:(this._additionsTail._nextAdded=f,this._additionsTail=f)}_addToChanges(f){null===this._changesHead?this._changesHead=this._changesTail=f:(this._changesTail._nextChanged=f,this._changesTail=f)}_forEach(f,y){f instanceof Map?f.forEach(y):Object.keys(f).forEach(S=>y(f[S],S))}}class jC{constructor(f){this.key=f,this.previousValue=null,this.currentValue=null,this._nextPrevious=null,this._next=null,this._prev=null,this._nextAdded=null,this._nextRemoved=null,this._nextChanged=null}}function Nv(){return new cf([new Lv])}let cf=(()=>{class u{constructor(y){this.factories=y}static create(y,S){if(null!=S){const x=S.factories.slice();y=y.concat(x)}return new u(y)}static extend(y){return{provide:u,useFactory:S=>u.create(y,S||Nv()),deps:[[u,new Sa,new ba]]}}find(y){const S=this.factories.find(x=>x.supports(y));if(null!=S)return S;throw new P(901,!1)}}return u.\u0275prov=Ee({token:u,providedIn:"root",factory:Nv}),u})();function jv(){return new df([new Fv])}let df=(()=>{class u{constructor(y){this.factories=y}static create(y,S){if(S){const x=S.factories.slice();y=y.concat(x)}return new u(y)}static extend(y){return{provide:u,useFactory:S=>u.create(y,S||jv()),deps:[[u,new Sa,new ba]]}}find(y){const S=this.factories.find(x=>x.supports(y));if(S)return S;throw new P(901,!1)}}return u.\u0275prov=Ee({token:u,providedIn:"root",factory:jv}),u})();const WC=[new Fv],VC=new cf([new Lv]),$C=new df(WC),HC=Ev(null,"core",[]);let kC=(()=>{class u{constructor(y){}}return u.\u0275fac=function(y){return new(y||u)(St(Su))},u.\u0275mod=nr({type:u}),u.\u0275inj=Je({}),u})();function zC(u){return"boolean"==typeof u?u:null!=u&&"false"!==u}function GC(u){return Ie().compileDirectiveDeclaration(va,`ng:///${u.type.name}/\u0275fac.js`,u)}function YC(u){X_(u.type,u.decorators,u.ctorParameters??null,u.propDecorators??null)}function QC(u){return Ie().compileComponentDeclaration(va,`ng:///${u.type.name}/\u0275cmp.js`,u)}function XC(u){return Ie(function ZC(u){switch(u){case $e.Directive:return"directive";case $e.Component:return"component";case $e.Injectable:return"injectable";case $e.Pipe:return"pipe";case $e.NgModule:return"NgModule"}}(u.target)).compileFactoryDeclaration(va,`ng:///${u.type.name}/\u0275fac.js`,u)}function JC(u){return Ie().compileInjectableDeclaration(va,`ng:///${u.type.name}/\u0275prov.js`,u)}function qC(u){return Ie().compileInjectorDeclaration(va,`ng:///${u.type.name}/\u0275inj.js`,u)}function eD(u){return Ie().compileNgModuleDeclaration(va,`ng:///${u.type.name}/\u0275mod.js`,u)}function tD(u){return Ie().compilePipeDeclaration(va,`ng:///${u.type.name}/\u0275pipe.js`,u)}function nD(u,f){const y=In(u),S=f.elementInjector||Gd();return new _c(y).create(S,f.projectableNodes,f.hostElement,f.environmentInjector)}function rD(u){const f=In(u);if(!f)return null;const y=new _c(f);return{get selector(){return y.selector},get type(){return y.componentType},get inputs(){return y.inputs},get outputs(){return y.outputs},get ngContentSelectors(){return y.ngContentSelectors},get isStandalone(){return f.standalone}}}},24006:(R,c,e)=>{"use strict";e.d(c,{CE:()=>eo,Cf:()=>D,EJ:()=>ho,F:()=>wr,Fj:()=>O,JJ:()=>nt,JL:()=>mt,JU:()=>p,Kr:()=>mo,Mq:()=>ut,NI:()=>ii,Oe:()=>Oo,On:()=>dn,Q7:()=>bi,QS:()=>xs,SD:()=>l,UX:()=>zr,Wl:()=>m,YN:()=>to,Zs:()=>Hi,_:()=>qn,_Y:()=>gn,a5:()=>Xe,c5:()=>Oi,cw:()=>Wt,gN:()=>Be,kI:()=>I,nD:()=>ao,nJ:()=>qt,oH:()=>vo,p4:()=>fi,sg:()=>ri,u:()=>yo,u5:()=>hr,vC:()=>Ni,wO:()=>Si,x0:()=>Eo});var t=e(94650),n=e(36895),o=e(50457),i=e(4128),d=e(54004);let r=(()=>{class se{constructor(W,De){this._renderer=W,this._elementRef=De,this.onChange=et=>{},this.onTouched=()=>{}}setProperty(W,De){this._renderer.setProperty(this._elementRef.nativeElement,W,De)}registerOnTouched(W){this.onTouched=W}registerOnChange(W){this.onChange=W}setDisabledState(W){this.setProperty("disabled",W)}}return se.\u0275fac=function(W){return new(W||se)(t.\u0275\u0275directiveInject(t.Renderer2),t.\u0275\u0275directiveInject(t.ElementRef))},se.\u0275dir=t.\u0275\u0275defineDirective({type:se}),se})(),a=(()=>{class se extends r{}return se.\u0275fac=function(){let me;
1return function(De){return(me||(me=t.\u0275\u0275getInheritedFactory(se)))(De||se)}}(),se.\u0275dir=t.\u0275\u0275defineDirective({type:se,features:[t.\u0275\u0275InheritDefinitionFeature]}),se})();const p=new t.InjectionToken("NgValueAccessor"),h={provide:p,useExisting:(0,t.forwardRef)(()=>m),multi:!0};let m=(()=>{class se extends a{writeValue(W){this.setProperty("checked",W)}}return se.\u0275fac=function(){let me;return function(De){return(me||(me=t.\u0275\u0275getInheritedFactory(se)))(De||se)}}(),se.\u0275dir=t.\u0275\u0275defineDirective({type:se,selectors:[["input","type","checkbox","formControlName",""],["input","type","checkbox","formControl",""],["input","type","checkbox","ngModel",""]],hostBindings:function(W,De){1&W&&t.\u0275\u0275listener("change",function(kt){return De.onChange(kt.target.checked)})("blur",function(){return De.onTouched()})},features:[t.\u0275\u0275ProvidersFeature([h]),t.\u0275\u0275InheritDefinitionFeature]}),se})();const _={provide:p,useExisting:(0,t.forwardRef)(()=>O),multi:!0},E=new t.InjectionToken("CompositionEventMode");let O=(()=>{class se extends r{constructor(W,De,et){super(W,De),this._compositionMode=et,this._composing=!1,null==this._compositionMode&&(this._compositionMode=!function v(){const se=(0,n.q)()?(0,n.q)().getUserAgent():"";return/android (\d+)/.test(se.toLowerCase())}())}writeValue(W){this.setProperty("value",W??"")}_handleInput(W){(!this._compositionMode||this._compositionMode&&!this._composing)&&this.onChange(W)}_compositionStart(){this._composing=!0}_compositionEnd(W){this._composing=!1,this._compositionMode&&this.onChange(W)}}return se.\u0275fac=function(W){return new(W||se)(t.\u0275\u0275directiveInject(t.Renderer2),t.\u0275\u0275directiveInject(t.ElementRef),t.\u0275\u0275directiveInject(E,8))},se.\u0275dir=t.\u0275\u0275defineDirective({type:se,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(W,De){1&W&&t.\u0275\u0275listener("input",function(kt){return De._handleInput(kt.target.value)})("blur",function(){return De.onTouched()})("compositionstart",function(){return De._compositionStart()})("compositionend",function(kt){return De._compositionEnd(kt.target.value)})},features:[t.\u0275\u0275ProvidersFeature([_]),t.\u0275\u0275InheritDefinitionFeature]}),se})();const b=!1;function M(se){return null==se||("string"==typeof se||Array.isArray(se))&&0===se.length}function P(se){return null!=se&&"number"==typeof se.length}const D=new t.InjectionToken("NgValidators"),l=new t.InjectionToken("NgAsyncValidators"),C=/^(?=.{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 I{static min(me){return function g(se){return me=>{if(M(me.value)||M(se))return null;const W=parseFloat(me.value);return!isNaN(W)&&W<se?{min:{min:se,actual:me.value}}:null}}(me)}static max(me){return function B(se){return me=>{if(M(me.value)||M(se))return null;const W=parseFloat(me.value);return!isNaN(W)&&W>se?{max:{max:se,actual:me.value}}:null}}(me)}static required(me){return L(me)}static requiredTrue(me){return V(me)}static email(me){return function Y(se){return M(se.value)||C.test(se.value)?null:{email:!0}}(me)}static minLength(me){return X(me)}static maxLength(me){return te(me)}static pattern(me){return K(me)}static nullValidator(me){return null}static compose(me){return ne(me)}static composeAsync(me){return oe(me)}}function L(se){return M(se.value)?{required:!0}:null}function V(se){return!0===se.value?null:{required:!0}}function X(se){return me=>M(me.value)||!P(me.value)?null:me.value.length<se?{minlength:{requiredLength:se,actualLength:me.value.length}}:null}function te(se){return me=>P(me.value)&&me.value.length>se?{maxlength:{requiredLength:se,actualLength:me.value.length}}:null}function K(se){if(!se)return ee;let me,W;return"string"==typeof se?(W="","^"!==se.charAt(0)&&(W+="^"),W+=se,"$"!==se.charAt(se.length-1)&&(W+="$"),me=new RegExp(W)):(W=se.toString(),me=se),De=>{if(M(De.value))return null;const et=De.value;
1return me.test(et)?null:{pattern:{requiredPattern:W,actualValue:et}}}}function ee(se){return null}function ae(se){return null!=se}function Q(se){const me=(0,t.\u0275isPromise)(se)?(0,o.D)(se):se;if(b&&!(0,t.\u0275isObservable)(me)){let W="Expected async validator to return Promise or Observable.";throw"object"==typeof se&&(W+=" Are you using a synchronous validator where an async validator is expected?"),new t.\u0275RuntimeError(-1101,W)}return me}function j(se){let me={};return se.forEach(W=>{me=null!=W?{...me,...W}:me}),0===Object.keys(me).length?null:me}function k(se,me){return me.map(W=>W(se))}function ie(se){return se.map(me=>function G(se){return!se.validate}(me)?me:W=>me.validate(W))}function ne(se){if(!se)return null;const me=se.filter(ae);return 0==me.length?null:function(W){return j(k(W,me))}}function q(se){return null!=se?ne(ie(se)):null}function oe(se){if(!se)return null;const me=se.filter(ae);return 0==me.length?null:function(W){const De=k(W,me).map(Q);return(0,i.D)(De).pipe((0,d.U)(j))}}function ce(se){return null!=se?oe(ie(se)):null}function ye(se,me){return null===se?[me]:Array.isArray(se)?[...se,me]:[se,me]}function Me(se){return se._rawValidators}function Ee(se){return se._rawAsyncValidators}function Ae(se){return se?Array.isArray(se)?se:[se]:[]}function Je(se,me){return Array.isArray(se)?se.includes(me):se===me}function _t(se,me){const W=Ae(me);return Ae(se).forEach(et=>{Je(W,et)||W.push(et)}),W}function It(se,me){return Ae(me).filter(W=>!Je(se,W))}class it{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(me){this._rawValidators=me||[],this._composedValidatorFn=q(this._rawValidators)}_setAsyncValidators(me){this._rawAsyncValidators=me||[],this._composedAsyncValidatorFn=ce(this._rawAsyncValidators)}get validator(){return this._composedValidatorFn||null}get asyncValidator(){return this._composedAsyncValidatorFn||null}_registerOnDestroy(me){this._onDestroyCallbacks.push(me)}_invokeOnDestroyCallbacks(){this._onDestroyCallbacks.forEach(me=>me()),this._onDestroyCallbacks=[]}reset(me){this.control&&this.control.reset(me)}hasError(me,W){return!!this.control&&this.control.hasError(me,W)}getError(me,W){return this.control?this.control.getError(me,W):null}}class Be extends it{get formDirective(){return null}get path(){return null}}class Xe extends it{constructor(){super(...arguments),this._parent=null,this.name=null,this.valueAccessor=null}}class pt{constructor(me){this._cd=me}get isTouched(){return!!this._cd?.control?.touched}get isUntouched(){return!!this._cd?.control?.untouched}get isPristine(){return!!this._cd?.control?.pristine}get isDirty(){return!!this._cd?.control?.dirty}get isValid(){return!!this._cd?.control?.valid}get isInvalid(){return!!this._cd?.control?.invalid}get isPending(){return!!this._cd?.control?.pending}get isSubmitted(){return!!this._cd?.submitted}}let nt=(()=>{class se extends pt{constructor(W){super(W)}}return se.\u0275fac=function(W){return new(W||se)(t.\u0275\u0275directiveInject(Xe,2))},se.\u0275dir=t.\u0275\u0275defineDirective({type:se,selectors:[["","formControlName",""],["","ngModel",""],["","formControl",""]],hostVars:14,hostBindings:function(W,De){2&W&&t.\u0275\u0275classProp("ng-untouched",De.isUntouched)("ng-touched",De.isTouched)("ng-pristine",De.isPristine)("ng-dirty",De.isDirty)("ng-valid",De.isValid)("ng-invalid",De.isInvalid)("ng-pending",De.isPending)},features:[t.\u0275\u0275InheritDefinitionFeature]}),se})(),mt=(()=>{class se extends pt{constructor(W){super(W)}}return se.\u0275fac=function(W){return new(W||se)(t.\u0275\u0275directiveInject(Be,10))},se.\u0275dir=t.\u0275\u0275defineDirective({type:se,selectors:[["","formGroupName",""],["","formArrayName",""],["","ngModelGroup",""],["","formGroup",""],["form",3,"ngNoForm",""],["","ngForm",""]],hostVars:16,hostBindings:function(W,De){2&W&&t.\u0275\u0275classProp("ng-untouched",De.isUntouched)("ng-touched",De.isTouched)("ng-pristine",De.isPristine)("ng-dirty",De.isDirty)("ng-valid",De.isValid)("ng-invalid",De.isInvalid)("ng-pending",De.isPending)("ng-submitted",De.isSubmitted)},features:[t.\u0275\u0275InheritDefinitionFeature]}),se})();function zt(se,me){return se?`with name: '${me}'`:`at index: ${me}`}
1const Dt=!1,Ft="VALID",St="INVALID",wt="PENDING",Xt="DISABLED";function st(se){return(at(se)?se.validators:se)||null}function Le(se,me){return(at(me)?me.asyncValidators:se)||null}function at(se){return null!=se&&!Array.isArray(se)&&"object"==typeof se}function Jt(se,me,W){const De=se.controls;if(!(me?Object.keys(De):De).length)throw new t.\u0275RuntimeError(1e3,Dt?function hn(se){return`\n There are no form controls registered with this ${se?"group":"array"} yet. If you're using ngModel,\n you may want to check next tick (e.g. use setTimeout).\n `}(me):"");if(!De[W])throw new t.\u0275RuntimeError(1001,Dt?function Vt(se,me){return`Cannot find form control ${zt(se,me)}`}(me,W):"")}function $t(se,me,W){se._forEachChild((De,et)=>{if(void 0===W[et])throw new t.\u0275RuntimeError(1002,Dt?function $n(se,me){return`Must supply a value for form control ${zt(se,me)}`}(me,et):"")})}class rn{constructor(me,W){this._pendingDirty=!1,this._hasOwnPendingAsyncValidator=!1,this._pendingTouched=!1,this._onCollectionChange=()=>{},this._parent=null,this.pristine=!0,this.touched=!1,this._onDisabledChange=[],this._assignValidators(me),this._assignAsyncValidators(W)}get validator(){return this._composedValidatorFn}set validator(me){this._rawValidators=this._composedValidatorFn=me}get asyncValidator(){return this._composedAsyncValidatorFn}set asyncValidator(me){this._rawAsyncValidators=this._composedAsyncValidatorFn=me}get parent(){return this._parent}get valid(){return this.status===Ft}get invalid(){return this.status===St}get pending(){return this.status==wt}get disabled(){return this.status===Xt}get enabled(){return this.status!==Xt}get dirty(){return!this.pristine}get untouched(){return!this.touched}get updateOn(){return this._updateOn?this._updateOn:this.parent?this.parent.updateOn:"change"}setValidators(me){this._assignValidators(me)}setAsyncValidators(me){this._assignAsyncValidators(me)}addValidators(me){this.setValidators(_t(me,this._rawValidators))}addAsyncValidators(me){this.setAsyncValidators(_t(me,this._rawAsyncValidators))}removeValidators(me){this.setValidators(It(me,this._rawValidators))}removeAsyncValidators(me){this.setAsyncValidators(It(me,this._rawAsyncValidators))}hasValidator(me){return Je(this._rawValidators,me)}hasAsyncValidator(me){return Je(this._rawAsyncValidators,me)}clearValidators(){this.validator=null}clearAsyncValidators(){this.asyncValidator=null}markAsTouched(me={}){this.touched=!0,this._parent&&!me.onlySelf&&this._parent.markAsTouched(me)}markAllAsTouched(){this.markAsTouched({onlySelf:!0}),this._forEachChild(me=>me.markAllAsTouched())}markAsUntouched(me={}){this.touched=!1,this._pendingTouched=!1,this._forEachChild(W=>{W.markAsUntouched({onlySelf:!0})}),this._parent&&!me.onlySelf&&this._parent._updateTouched(me)}markAsDirty(me={}){this.pristine=!1,this._parent&&!me.onlySelf&&this._parent.markAsDirty(me)}markAsPristine(me={}){this.pristine=!0,this._pendingDirty=!1,this._forEachChild(W=>{W.markAsPristine({onlySelf:!0})}),this._parent&&!me.onlySelf&&this._parent._updatePristine(me)}markAsPending(me={}){this.status=wt,!1!==me.emitEvent&&this.statusChanges.emit(this.status),this._parent&&!me.onlySelf&&this._parent.markAsPending(me)}disable(me={}){const W=this._parentMarkedDirty(me.onlySelf);this.status=Xt,this.errors=null,this._forEachChild(De=>{De.disable({...me,onlySelf:!0})}),this._updateValue(),!1!==me.emitEvent&&(this.valueChanges.emit(this.value),this.statusChanges.emit(this.status)),this._updateAncestors({...me,skipPristineCheck:W}),this._onDisabledChange.forEach(De=>De(!0))}enable(me={}){const W=this._parentMarkedDirty(me.onlySelf);this.status=Ft,this._forEachChild(De=>{De.enable({...me,onlySelf:!0})}),this.updateValueAndValidity({onlySelf:!0,emitEvent:me.emitEvent}),this._updateAncestors({...me,skipPristineCheck:W}),this._onDisabledChange.forEach(De=>De(!1))}_updateAncestors(me){this._parent&&!me.onlySelf&&(this._parent.updateValueAndValidity(me),me.skipPristineCheck||this._parent._updatePristine(),this._parent._updateTouched())}setParent(me){this._parent=me}getRawValue(){return this.value}updateValueAndValidity(me={}
1){this._setInitialStatus(),this._updateValue(),this.enabled&&(this._cancelExistingSubscription(),this.errors=this._runValidator(),this.status=this._calculateStatus(),(this.status===Ft||this.status===wt)&&this._runAsyncValidator(me.emitEvent)),!1!==me.emitEvent&&(this.valueChanges.emit(this.value),this.statusChanges.emit(this.status)),this._parent&&!me.onlySelf&&this._parent.updateValueAndValidity(me)}_updateTreeValidity(me={emitEvent:!0}){this._forEachChild(W=>W._updateTreeValidity(me)),this.updateValueAndValidity({onlySelf:!0,emitEvent:me.emitEvent})}_setInitialStatus(){this.status=this._allControlsDisabled()?Xt:Ft}_runValidator(){return this.validator?this.validator(this):null}_runAsyncValidator(me){if(this.asyncValidator){this.status=wt,this._hasOwnPendingAsyncValidator=!0;const W=Q(this.asyncValidator(this));this._asyncValidationSubscription=W.subscribe(De=>{this._hasOwnPendingAsyncValidator=!1,this.setErrors(De,{emitEvent:me})})}}_cancelExistingSubscription(){this._asyncValidationSubscription&&(this._asyncValidationSubscription.unsubscribe(),this._hasOwnPendingAsyncValidator=!1)}setErrors(me,W={}){this.errors=me,this._updateControlsErrors(!1!==W.emitEvent)}get(me){let W=me;return null==W||(Array.isArray(W)||(W=W.split(".")),0===W.length)?null:W.reduce((De,et)=>De&&De._find(et),this)}getError(me,W){const De=W?this.get(W):this;return De&&De.errors?De.errors[me]:null}hasError(me,W){return!!this.getError(me,W)}get root(){let me=this;for(;me._parent;)me=me._parent;return me}_updateControlsErrors(me){this.status=this._calculateStatus(),me&&this.statusChanges.emit(this.status),this._parent&&this._parent._updateControlsErrors(me)}_initObservables(){this.valueChanges=new t.EventEmitter,this.statusChanges=new t.EventEmitter}_calculateStatus(){return this._allControlsDisabled()?Xt:this.errors?St:this._hasOwnPendingAsyncValidator||this._anyControlsHaveStatus(wt)?wt:this._anyControlsHaveStatus(St)?St:Ft}_anyControlsHaveStatus(me){return this._anyControls(W=>W.status===me)}_anyControlsDirty(){return this._anyControls(me=>me.dirty)}_anyControlsTouched(){return this._anyControls(me=>me.touched)}_updatePristine(me={}){this.pristine=!this._anyControlsDirty(),this._parent&&!me.onlySelf&&this._parent._updatePristine(me)}_updateTouched(me={}){this.touched=this._anyControlsTouched(),this._parent&&!me.onlySelf&&this._parent._updateTouched(me)}_registerOnCollectionChange(me){this._onCollectionChange=me}_setUpdateStrategy(me){at(me)&&null!=me.updateOn&&(this._updateOn=me.updateOn)}_parentMarkedDirty(me){return!me&&!(!this._parent||!this._parent.dirty)&&!this._parent._anyControlsDirty()}_find(me){return null}_assignValidators(me){this._rawValidators=Array.isArray(me)?me.slice():me,this._composedValidatorFn=function xe(se){return Array.isArray(se)?q(se):se||null}(this._rawValidators)}_assignAsyncValidators(me){this._rawAsyncValidators=Array.isArray(me)?me.slice():me,this._composedAsyncValidatorFn=function qe(se){return Array.isArray(se)?ce(se):se||null}(this._rawAsyncValidators)}}class Wt extends rn{constructor(me,W,De){super(st(W),Le(De,W)),this.controls=me,this._initObservables(),this._setUpdateStrategy(W),this._setUpControls(),this.updateValueAndValidity({onlySelf:!0,emitEvent:!!this.asyncValidator})}registerControl(me,W){return this.controls[me]?this.controls[me]:(this.controls[me]=W,W.setParent(this),W._registerOnCollectionChange(this._onCollectionChange),W)}addControl(me,W,De={}){this.registerControl(me,W),this.updateValueAndValidity({emitEvent:De.emitEvent}),this._onCollectionChange()}removeControl(me,W={}){this.controls[me]&&this.controls[me]._registerOnCollectionChange(()=>{}),delete this.controls[me],this.updateValueAndValidity({emitEvent:W.emitEvent}),this._onCollectionChange()}setControl(me,W,De={}){this.controls[me]&&this.controls[me]._registerOnCollectionChange(()=>{}),delete this.controls[me],W&&this.registerControl(me,W),this.updateValueAndValidity({emitEvent:De.emitEvent}),this._onCollectionChange()}contains(me){return this.controls.hasOwnProperty(me)&&this.controls[me].enabled}setValue(me,W={}){$t(this,!0,me),Object.keys(me).forEach(De=>{Jt(this,!0,De),this.controls[De].setValue(me[De],{onlySelf:!0,emitEvent:W.emitEvent})}
1),this.updateValueAndValidity(W)}patchValue(me,W={}){null!=me&&(Object.keys(me).forEach(De=>{const et=this.controls[De];et&&et.patchValue(me[De],{onlySelf:!0,emitEvent:W.emitEvent})}),this.updateValueAndValidity(W))}reset(me={},W={}){this._forEachChild((De,et)=>{De.reset(me[et],{onlySelf:!0,emitEvent:W.emitEvent})}),this._updatePristine(W),this._updateTouched(W),this.updateValueAndValidity(W)}getRawValue(){return this._reduceChildren({},(me,W,De)=>(me[De]=W.getRawValue(),me))}_syncPendingControls(){let me=this._reduceChildren(!1,(W,De)=>!!De._syncPendingControls()||W);return me&&this.updateValueAndValidity({onlySelf:!0}),me}_forEachChild(me){Object.keys(this.controls).forEach(W=>{const De=this.controls[W];De&&me(De,W)})}_setUpControls(){this._forEachChild(me=>{me.setParent(this),me._registerOnCollectionChange(this._onCollectionChange)})}_updateValue(){this.value=this._reduceValue()}_anyControls(me){for(const[W,De]of Object.entries(this.controls))if(this.contains(W)&&me(De))return!0;return!1}_reduceValue(){return this._reduceChildren({},(W,De,et)=>((De.enabled||this.disabled)&&(W[et]=De.value),W))}_reduceChildren(me,W){let De=me;return this._forEachChild((et,kt)=>{De=W(De,et,kt)}),De}_allControlsDisabled(){for(const me of Object.keys(this.controls))if(this.controls[me].enabled)return!1;return Object.keys(this.controls).length>0||this.disabled}_find(me){return this.controls.hasOwnProperty(me)?this.controls[me]:null}}const qt=Wt;class dt extends Wt{}const je=new t.InjectionToken("CallSetDisabledState",{providedIn:"root",factory:()=>vt}),vt="always";function Zt(se,me){return[...me.path,se]}function We(se,me,W=vt){En(se,me),me.valueAccessor.writeValue(se.value),(se.disabled||"always"===W)&&me.valueAccessor.setDisabledState?.(se.disabled),function nr(se,me){me.valueAccessor.registerOnChange(W=>{se._pendingValue=W,se._pendingChange=!0,se._pendingDirty=!0,"change"===se.updateOn&&bn(se,me)})}(se,me),function cn(se,me){const W=(De,et)=>{me.valueAccessor.writeValue(De),et&&me.viewToModelUpdate(De)};se.registerOnChange(W),me._registerOnDestroy(()=>{se._unregisterOnChange(W)})}(se,me),function Cn(se,me){me.valueAccessor.registerOnTouched(()=>{se._pendingTouched=!0,"blur"===se.updateOn&&se._pendingChange&&bn(se,me),"submit"!==se.updateOn&&se.markAsTouched()})}(se,me),function bt(se,me){if(me.valueAccessor.setDisabledState){const W=De=>{me.valueAccessor.setDisabledState(De)};se.registerOnDisabledChange(W),me._registerOnDestroy(()=>{se._unregisterOnDisabledChange(W)})}}(se,me)}function Ne(se,me,W=!0){const De=()=>{};me.valueAccessor&&(me.valueAccessor.registerOnChange(De),me.valueAccessor.registerOnTouched(De)),wn(se,me),se&&(me._invokeOnDestroyCallbacks(),se._registerOnCollectionChange(()=>{}))}function ze(se,me){se.forEach(W=>{W.registerOnValidatorChange&&W.registerOnValidatorChange(me)})}function En(se,me){const W=Me(se);null!==me.validator?se.setValidators(ye(W,me.validator)):"function"==typeof W&&se.setValidators([W]);const De=Ee(se);null!==me.asyncValidator?se.setAsyncValidators(ye(De,me.asyncValidator)):"function"==typeof De&&se.setAsyncValidators([De]);const et=()=>se.updateValueAndValidity();ze(me._rawValidators,et),ze(me._rawAsyncValidators,et)}function wn(se,me){let W=!1;if(null!==se){if(null!==me.validator){const et=Me(se);if(Array.isArray(et)&&et.length>0){const kt=et.filter(On=>On!==me.validator);kt.length!==et.length&&(W=!0,se.setValidators(kt))}}if(null!==me.asyncValidator){const et=Ee(se);if(Array.isArray(et)&&et.length>0){const kt=et.filter(On=>On!==me.asyncValidator);kt.length!==et.length&&(W=!0,se.setAsyncValidators(kt))}}}const De=()=>{};return ze(me._rawValidators,De),ze(me._rawAsyncValidators,De),W}function bn(se,me){se._pendingDirty&&se.markAsDirty(),se.setValue(se._pendingValue,{emitModelToViewChange:!1}),me.viewToModelUpdate(se._pendingValue),se._pendingChange=!1}function Dn(se,me){En(se,me)}function Rr(se,me){if(!se.hasOwnProperty("model"))return!1;const W=se.model;return!!W.isFirstChange()||!Object.is(me,W.currentValue)}function Mr(se,me){se._syncPendingControls(),me.forEach(W=>{const De=W.control;"submit"===De.updateOn&&De._pendingChange&&(W.viewToModelUpdate(De._pendingValue),De._pendingChange=!1)})}function Mn(se,me){if(!me)return null;let W,De,et;return Array.isArray(me),me.forEach(kt=>{kt.constructor===O?W=kt:function rr(se){return Object.getPrototypeOf(se.constructor)===a}(kt)?De=kt:et=kt}),et||De||W||null}const Qr={provide:Be,useExisting:(0,t.forwardRef)(()=>wr)},Xr=(()=>Promise.resolve())();let wr=(()=>{class se extends Be{constructor(W,De,et){super(),this.callSetDisabledState=et,this.submitted=!1,this._directives=new Set,this.ngSubmit=new t.EventEmitter,this.form=new Wt({},q(W),ce(De))}ngAfterViewInit(){this._setUpdateStrategy()}get formDirective(){return this}get control(){return this.form}get path(){return[]}get controls(){return this.form.controls}addControl(W){Xr.then(()=>{const De=this._findContainer(W.path);W.control=De.registerControl(W.name,W.control),We(W.control,W,this.callSetDisabledState),W.control.updateValueAndValidity({emitEvent:!1}),this._directives.add(W)})}getControl(W){return this.form.get(W.path)}
1removeControl(W){Xr.then(()=>{const De=this._findContainer(W.path);De&&De.removeControl(W.name),this._directives.delete(W)})}addFormGroup(W){Xr.then(()=>{const De=this._findContainer(W.path),et=new Wt({});Dn(et,W),De.registerControl(W.name,et),et.updateValueAndValidity({emitEvent:!1})})}removeFormGroup(W){Xr.then(()=>{const De=this._findContainer(W.path);De&&De.removeControl(W.name)})}getFormGroup(W){return this.form.get(W.path)}updateModel(W,De){Xr.then(()=>{this.form.get(W.path).setValue(De)})}setValue(W){this.control.setValue(W)}onSubmit(W){return this.submitted=!0,Mr(this.form,this._directives),this.ngSubmit.emit(W),"dialog"===W?.target?.method}onReset(){this.resetForm()}resetForm(W){this.form.reset(W),this.submitted=!1}_setUpdateStrategy(){this.options&&null!=this.options.updateOn&&(this.form._updateOn=this.options.updateOn)}_findContainer(W){return W.pop(),W.length?this.form.get(W):this.form}}return se.\u0275fac=function(W){return new(W||se)(t.\u0275\u0275directiveInject(D,10),t.\u0275\u0275directiveInject(l,10),t.\u0275\u0275directiveInject(je,8))},se.\u0275dir=t.\u0275\u0275defineDirective({type:se,selectors:[["form",3,"ngNoForm","",3,"formGroup",""],["ng-form"],["","ngForm",""]],hostBindings:function(W,De){1&W&&t.\u0275\u0275listener("submit",function(kt){return De.onSubmit(kt)})("reset",function(){return De.onReset()})},inputs:{options:["ngFormOptions","options"]},outputs:{ngSubmit:"ngSubmit"},exportAs:["ngForm"],features:[t.\u0275\u0275ProvidersFeature([Qr]),t.\u0275\u0275InheritDefinitionFeature]}),se})();function ui(se,me){const W=se.indexOf(me);W>-1&&se.splice(W,1)}function Nr(se){return"object"==typeof se&&null!==se&&2===Object.keys(se).length&&"value"in se&&"disabled"in se}const ii=class extends rn{constructor(me=null,W,De){super(st(W),Le(De,W)),this.defaultValue=null,this._onChange=[],this._pendingChange=!1,this._applyFormState(me),this._setUpdateStrategy(W),this._initObservables(),this.updateValueAndValidity({onlySelf:!0,emitEvent:!!this.asyncValidator}),at(W)&&(W.nonNullable||W.initialValueIsDefault)&&(this.defaultValue=Nr(me)?me.value:me)}setValue(me,W={}){this.value=this._pendingValue=me,this._onChange.length&&!1!==W.emitModelToViewChange&&this._onChange.forEach(De=>De(this.value,!1!==W.emitViewToModelChange)),this.updateValueAndValidity(W)}patchValue(me,W={}){this.setValue(me,W)}reset(me=this.defaultValue,W={}){this._applyFormState(me),this.markAsPristine(W),this.markAsUntouched(W),this.setValue(this.value,W),this._pendingChange=!1}_updateValue(){}_anyControls(me){return!1}_allControlsDisabled(){return this.disabled}registerOnChange(me){this._onChange.push(me)}_unregisterOnChange(me){ui(this._onChange,me)}registerOnDisabledChange(me){this._onDisabledChange.push(me)}_unregisterOnDisabledChange(me){ui(this._onDisabledChange,me)}_forEachChild(me){}_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(me){Nr(me)?(this.value=this._pendingValue=me.value,me.disabled?this.disable({onlySelf:!0,emitEvent:!1}):this.enable({onlySelf:!0,emitEvent:!1})):this.value=this._pendingValue=me}},fi=ii;let Ai=(()=>{class se extends Be{ngOnInit(){this._checkParentType(),this.formDirective.addFormGroup(this)}ngOnDestroy(){this.formDirective&&this.formDirective.removeFormGroup(this)}get control(){return this.formDirective.getFormGroup(this)}get path(){return Zt(null==this.name?this.name:this.name.toString(),this._parent)}get formDirective(){return this._parent?this._parent.formDirective:null}_checkParentType(){}}return se.\u0275fac=function(){let me;return function(De){return(me||(me=t.\u0275\u0275getInheritedFactory(se)))(De||se)}}(),se.\u0275dir=t.\u0275\u0275defineDirective({type:se,features:[t.\u0275\u0275InheritDefinitionFeature]}),se})();const Yi={provide:Be,useExisting:(0,t.forwardRef)(()=>ut)};let ut=(()=>{class se extends Ai{constructor(W,De,et){super(),this._parent=W,this._setValidators(De),this._setAsyncValidators(et)}_checkParentType(){}}return se.\u0275fac=function(W){return new(W||se)(t.\u0275\u0275directiveInject(Be,5),t.\u0275\u0275directiveInject(D,10),t.\u0275\u0275directiveInject(l,10))},se.\u0275dir=t.\u0275\u0275defineDirective({type:se,selectors:[["","ngModelGroup",""]],inputs:{name:["ngModelGroup","name"]},exportAs:["ngModelGroup"],features:[t.\u0275\u0275ProvidersFeature([Yi]),t.\u0275\u0275InheritDefinitionFeature]}),se})();const tn={provide:Xe,useExisting:(0,t.forwardRef)(()=>dn)},Gt=(()=>Promise.resolve())();let dn=(()=>{class se extends Xe{constructor(W,De,et,kt,On,Bt){super(),this._changeDetectorRef=On,this.callSetDisabledState=Bt,this.control=new ii,this._registered=!1,this.update=new t.EventEmitter,this._parent=W,this._setValidators(De),this._setAsyncValidators(et),this.valueAccessor=Mn(0,kt)}
1ngOnChanges(W){if(this._checkForErrors(),!this._registered||"name"in W){if(this._registered&&(this._checkName(),this.formDirective)){const De=W.name.previousValue;this.formDirective.removeControl({name:De,path:this._getPath(De)})}this._setUpControl()}"isDisabled"in W&&this._updateDisabled(W),Rr(W,this.viewModel)&&(this._updateValue(this.model),this.viewModel=this.model)}ngOnDestroy(){this.formDirective&&this.formDirective.removeControl(this)}get path(){return this._getPath(this.name)}get formDirective(){return this._parent?this._parent.formDirective:null}viewToModelUpdate(W){this.viewModel=W,this.update.emit(W)}_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(){We(this.control,this,this.callSetDisabledState),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(W){Gt.then(()=>{this.control.setValue(W,{emitViewToModelChange:!1}),this._changeDetectorRef?.markForCheck()})}_updateDisabled(W){const De=W.isDisabled.currentValue,et=0!==De&&(0,t.\u0275coerceToBoolean)(De);Gt.then(()=>{et&&!this.control.disabled?this.control.disable():!et&&this.control.disabled&&this.control.enable(),this._changeDetectorRef?.markForCheck()})}_getPath(W){return this._parent?Zt(W,this._parent):[W]}}return se.\u0275fac=function(W){return new(W||se)(t.\u0275\u0275directiveInject(Be,9),t.\u0275\u0275directiveInject(D,10),t.\u0275\u0275directiveInject(l,10),t.\u0275\u0275directiveInject(p,10),t.\u0275\u0275directiveInject(t.ChangeDetectorRef,8),t.\u0275\u0275directiveInject(je,8))},se.\u0275dir=t.\u0275\u0275defineDirective({type:se,selectors:[["","ngModel","",3,"formControlName","",3,"formControl",""]],inputs:{name:"name",isDisabled:["disabled","isDisabled"],model:["ngModel","model"],options:["ngModelOptions","options"]},outputs:{update:"ngModelChange"},exportAs:["ngModel"],features:[t.\u0275\u0275ProvidersFeature([tn]),t.\u0275\u0275InheritDefinitionFeature,t.\u0275\u0275NgOnChangesFeature]}),se})(),gn=(()=>{class se{}return se.\u0275fac=function(W){return new(W||se)},se.\u0275dir=t.\u0275\u0275defineDirective({type:se,selectors:[["form",3,"ngNoForm","",3,"ngNativeValidate",""]],hostAttrs:["novalidate",""]}),se})();const Cr={provide:p,useExisting:(0,t.forwardRef)(()=>qn),multi:!0};let Fr=(()=>{class se{}return se.\u0275fac=function(W){return new(W||se)},se.\u0275mod=t.\u0275\u0275defineNgModule({type:se}),se.\u0275inj=t.\u0275\u0275defineInjector({}),se})(),Gn=(()=>{class se{constructor(){this._accessors=[]}add(W,De){this._accessors.push([W,De])}remove(W){for(let De=this._accessors.length-1;De>=0;--De)if(this._accessors[De][1]===W)return void this._accessors.splice(De,1)}select(W){this._accessors.forEach(De=>{this._isSameGroup(De,W)&&De[1]!==W&&De[1].fireUncheck(W.value)})}_isSameGroup(W,De){return!!W[0].control&&W[0]._parent===De._control._parent&&W[1].name===De.name}}return se.\u0275fac=function(W){return new(W||se)},se.\u0275prov=t.\u0275\u0275defineInjectable({token:se,factory:se.\u0275fac,providedIn:Fr}),se})(),qn=(()=>{class se extends a{constructor(W,De,et,kt){super(W,De),this._registry=et,this._injector=kt,this.setDisabledStateFired=!1,this.onChange=()=>{},this.callSetDisabledState=(0,t.inject)(je,{optional:!0})??vt}ngOnInit(){this._control=this._injector.get(Xe),this._checkName(),this._registry.add(this._control,this)}ngOnDestroy(){this._registry.remove(this)}writeValue(W){this._state=W===this.value,this.setProperty("checked",this._state)}registerOnChange(W){this._fn=W,this.onChange=()=>{W(this.value),this._registry.select(this)}}setDisabledState(W){(this.setDisabledStateFired||W||"whenDisabledForLegacyCode"===this.callSetDisabledState)&&this.setProperty("disabled",W),this.setDisabledStateFired=!0}fireUncheck(W){this.writeValue(W)}_checkName(){!this.name&&this.formControlName&&(this.name=this.formControlName)}}return se.\u0275fac=function(W){return new(W||se)(t.\u0275\u0275directiveInject(t.Renderer2),t.\u0275\u0275directiveInject(t.ElementRef),t.\u0275\u0275directiveInject(Gn),t.\u0275\u0275directiveInject(t.Injector))},se.\u0275dir=t.\u0275\u0275defineDirective({type:se,selectors:[["input","type","radio","formControlName",""],["input","type","radio","formControl",""],["input","type","radio","ngModel",""]],hostBindings:function(W,De){1&W&&t.\u0275\u0275listener("change",function(){return De.onChange()})("blur",function(){return De.onTouched()})},inputs:{name:"name",formControlName:"formControlName",value:"value"},features:[t.\u0275\u0275ProvidersFeature([Cr]),t.\u0275\u0275InheritDefinitionFeature]}),se})();const jr=new t.InjectionToken("NgModelWithFormControlWarning"),Ao={provide:Xe,useExisting:(0,t.forwardRef)(()=>vo)};let vo=(()=>{class se extends Xe{set isDisabled(W){}constructor(W,De,et,kt,On){super(),this._ngModelWarningConfig=kt,this.callSetDisabledState=On,this.update=new t.EventEmitter,this._ngModelWarningSent=!1,this._setValidators(W),this._setAsyncValidators(De),this.valueAccessor=Mn(0,et)}ngOnChanges(W){if(this._isControlChanged(W)){const De=W.form.previousValue;
1De&&Ne(De,this,!1),We(this.form,this,this.callSetDisabledState),this.form.updateValueAndValidity({emitEvent:!1})}Rr(W,this.viewModel)&&(this.form.setValue(this.model),this.viewModel=this.model)}ngOnDestroy(){this.form&&Ne(this.form,this,!1)}get path(){return[]}get control(){return this.form}viewToModelUpdate(W){this.viewModel=W,this.update.emit(W)}_isControlChanged(W){return W.hasOwnProperty("form")}}return se._ngModelWarningSentOnce=!1,se.\u0275fac=function(W){return new(W||se)(t.\u0275\u0275directiveInject(D,10),t.\u0275\u0275directiveInject(l,10),t.\u0275\u0275directiveInject(p,10),t.\u0275\u0275directiveInject(jr,8),t.\u0275\u0275directiveInject(je,8))},se.\u0275dir=t.\u0275\u0275defineDirective({type:se,selectors:[["","formControl",""]],inputs:{form:["formControl","form"],isDisabled:["disabled","isDisabled"],model:["ngModel","model"]},outputs:{update:"ngModelChange"},exportAs:["ngForm"],features:[t.\u0275\u0275ProvidersFeature([Ao]),t.\u0275\u0275InheritDefinitionFeature,t.\u0275\u0275NgOnChangesFeature]}),se})();const qi={provide:Be,useExisting:(0,t.forwardRef)(()=>ri)};let ri=(()=>{class se extends Be{constructor(W,De,et){super(),this.callSetDisabledState=et,this.submitted=!1,this._onCollectionChange=()=>this._updateDomValue(),this.directives=[],this.form=null,this.ngSubmit=new t.EventEmitter,this._setValidators(W),this._setAsyncValidators(De)}ngOnChanges(W){this._checkFormPresent(),W.hasOwnProperty("form")&&(this._updateValidators(),this._updateDomValue(),this._updateRegistrations(),this._oldForm=this.form)}ngOnDestroy(){this.form&&(wn(this.form,this),this.form._onCollectionChange===this._onCollectionChange&&this.form._registerOnCollectionChange(()=>{}))}get formDirective(){return this}get control(){return this.form}get path(){return[]}addControl(W){const De=this.form.get(W.path);return We(De,W,this.callSetDisabledState),De.updateValueAndValidity({emitEvent:!1}),this.directives.push(W),De}getControl(W){return this.form.get(W.path)}
1removeControl(W){Ne(W.control||null,W,!1),function Xn(se,me){const W=se.indexOf(me);W>-1&&se.splice(W,1)}(this.directives,W)}addFormGroup(W){this._setUpFormContainer(W)}removeFormGroup(W){this._cleanUpFormContainer(W)}getFormGroup(W){return this.form.get(W.path)}addFormArray(W){this._setUpFormContainer(W)}removeFormArray(W){this._cleanUpFormContainer(W)}getFormArray(W){return this.form.get(W.path)}updateModel(W,De){this.form.get(W.path).setValue(De)}onSubmit(W){return this.submitted=!0,Mr(this.form,this.directives),this.ngSubmit.emit(W),"dialog"===W?.target?.method}onReset(){this.resetForm()}resetForm(W){this.form.reset(W),this.submitted=!1}_updateDomValue(){this.directives.forEach(W=>{const De=W.control,et=this.form.get(W.path);De!==et&&(Ne(De||null,W),(se=>se instanceof ii)(et)&&(We(et,W,this.callSetDisabledState),W.control=et))}),this.form._updateTreeValidity({emitEvent:!1})}_setUpFormContainer(W){const De=this.form.get(W.path);Dn(De,W),De.updateValueAndValidity({emitEvent:!1})}_cleanUpFormContainer(W){if(this.form){const De=this.form.get(W.path);De&&function In(se,me){return wn(se,me)}(De,W)&&De.updateValueAndValidity({emitEvent:!1})}}_updateRegistrations(){this.form._registerOnCollectionChange(this._onCollectionChange),this._oldForm&&this._oldForm._registerOnCollectionChange(()=>{})}_updateValidators(){En(this.form,this),this._oldForm&&wn(this._oldForm,this)}_checkFormPresent(){}}return se.\u0275fac=function(W){return new(W||se)(t.\u0275\u0275directiveInject(D,10),t.\u0275\u0275directiveInject(l,10),t.\u0275\u0275directiveInject(je,8))},se.\u0275dir=t.\u0275\u0275defineDirective({type:se,selectors:[["","formGroup",""]],hostBindings:function(W,De){1&W&&t.\u0275\u0275listener("submit",function(kt){return De.onSubmit(kt)})("reset",function(){return De.onReset()})},inputs:{form:["formGroup","form"]},outputs:{ngSubmit:"ngSubmit"},exportAs:["ngForm"],features:[t.\u0275\u0275ProvidersFeature([qi]),t.\u0275\u0275InheritDefinitionFeature,t.\u0275\u0275NgOnChangesFeature]}),se})();const Ko={provide:Be,useExisting:(0,t.forwardRef)(()=>Eo)};let Eo=(()=>{class se extends Ai{constructor(W,De,et){super(),this._parent=W,this._setValidators(De),this._setAsyncValidators(et)}_checkParentType(){cs(this._parent)}}return se.\u0275fac=function(W){return new(W||se)(t.\u0275\u0275directiveInject(Be,13),t.\u0275\u0275directiveInject(D,10),t.\u0275\u0275directiveInject(l,10))},se.\u0275dir=t.\u0275\u0275defineDirective({type:se,selectors:[["","formGroupName",""]],inputs:{name:["formGroupName","name"]},features:[t.\u0275\u0275ProvidersFeature([Ko]),t.\u0275\u0275InheritDefinitionFeature]}),se})();const Vo={provide:Be,useExisting:(0,t.forwardRef)(()=>eo)};let eo=(()=>{class se extends Be{constructor(W,De,et){super(),this._parent=W,this._setValidators(De),this._setAsyncValidators(et)}ngOnInit(){this._checkParentType(),this.formDirective.addFormArray(this)}ngOnDestroy(){this.formDirective&&this.formDirective.removeFormArray(this)}get control(){return this.formDirective.getFormArray(this)}get formDirective(){return this._parent?this._parent.formDirective:null}get path(){return Zt(null==this.name?this.name:this.name.toString(),this._parent)}_checkParentType(){cs(this._parent)}}return se.\u0275fac=function(W){return new(W||se)(t.\u0275\u0275directiveInject(Be,13),t.\u0275\u0275directiveInject(D,10),t.\u0275\u0275directiveInject(l,10))},se.\u0275dir=t.\u0275\u0275defineDirective({type:se,selectors:[["","formArrayName",""]],inputs:{name:["formArrayName","name"]},features:[t.\u0275\u0275ProvidersFeature([Vo]),t.\u0275\u0275InheritDefinitionFeature]}),se})();function cs(se){return!(se instanceof Eo||se instanceof ri||se instanceof eo)}const $o={provide:Xe,useExisting:(0,t.forwardRef)(()=>yo)};let yo=(()=>{class se extends Xe{set isDisabled(W){}constructor(W,De,et,kt,On){super(),this._ngModelWarningConfig=On,this._added=!1,this.update=new t.EventEmitter,this._ngModelWarningSent=!1,this._parent=W,this._setValidators(De),this._setAsyncValidators(et),this.valueAccessor=Mn(0,kt)}ngOnChanges(W){this._added||this._setUpControl(),Rr(W,this.viewModel)&&(this.viewModel=this.model,this.formDirective.updateModel(this,this.model))}ngOnDestroy(){this.formDirective&&this.formDirective.removeControl(this)}viewToModelUpdate(W){this.viewModel=W,this.update.emit(W)}get path(){return Zt(null==this.name?this.name:this.name.toString(),this._parent)}get formDirective(){return this._parent?this._parent.formDirective:null}_checkParentType(){}_setUpControl(){this._checkParentType(),this.control=this.formDirective.addControl(this),this._added=!0}}return se._ngModelWarningSentOnce=!1,se.\u0275fac=function(W){return new(W||se)(t.\u0275\u0275directiveInject(Be,13),t.\u0275\u0275directiveInject(D,10),t.\u0275\u0275directiveInject(l,10),t.\u0275\u0275directiveInject(p,10),t.\u0275\u0275directiveInject(jr,8))},se.\u0275dir=t.\u0275\u0275defineDirective({type:se,selectors:[["","formControlName",""]],inputs:{name:["formControlName","name"],isDisabled:["disabled","isDisabled"],model:["ngModel","model"]},outputs:{update:"ngModelChange"},features:[t.\u0275\u0275ProvidersFeature([$o]),t.\u0275\u0275InheritDefinitionFeature,t.\u0275\u0275NgOnChangesFeature]}),se})();const _i={provide:p,useExisting:(0,t.forwardRef)(()=>ho),multi:!0};function Ho(se,me){return null==se?`${me}`:(me&&"object"==typeof me&&(me="Object"),`${se}: ${me}`.slice(0,50))}let ho=(()=>{class se extends a{constructor(){super(...arguments),this._optionMap=new Map,this._idCounter=0,this._compareWith=Object.is}set compareWith(W){this._compareWith=W}writeValue(W){this.value=W;const et=Ho(this._getOptionId(W),W);this.setProperty("value",et)}registerOnChange(W){this.onChange=De=>{this.value=this._getOptionValue(De),W(this.value)}}_registerOption(){return(this._idCounter++).toString()}_getOptionId(W){for(const De of Array.from(this._optionMap.keys()))if(this._compareWith(this._optionMap.get(De),W))return De;return null}_getOptionValue(W){const De=function _s(se){return se.split(":")[0]}(W);return this._optionMap.has(De)?this._optionMap.get(De):W}}return se.\u0275fac=function(){let me;
1return function(De){return(me||(me=t.\u0275\u0275getInheritedFactory(se)))(De||se)}}(),se.\u0275dir=t.\u0275\u0275defineDirective({type:se,selectors:[["select","formControlName","",3,"multiple",""],["select","formControl","",3,"multiple",""],["select","ngModel","",3,"multiple",""]],hostBindings:function(W,De){1&W&&t.\u0275\u0275listener("change",function(kt){return De.onChange(kt.target.value)})("blur",function(){return De.onTouched()})},inputs:{compareWith:"compareWith"},features:[t.\u0275\u0275ProvidersFeature([_i]),t.\u0275\u0275InheritDefinitionFeature]}),se})(),to=(()=>{class se{constructor(W,De,et){this._element=W,this._renderer=De,this._select=et,this._select&&(this.id=this._select._registerOption())}set ngValue(W){null!=this._select&&(this._select._optionMap.set(this.id,W),this._setElementValue(Ho(this.id,W)),this._select.writeValue(this._select.value))}set value(W){this._setElementValue(W),this._select&&this._select.writeValue(this._select.value)}_setElementValue(W){this._renderer.setProperty(this._element.nativeElement,"value",W)}ngOnDestroy(){this._select&&(this._select._optionMap.delete(this.id),this._select.writeValue(this._select.value))}}return se.\u0275fac=function(W){return new(W||se)(t.\u0275\u0275directiveInject(t.ElementRef),t.\u0275\u0275directiveInject(t.Renderer2),t.\u0275\u0275directiveInject(ho,9))},se.\u0275dir=t.\u0275\u0275defineDirective({type:se,selectors:[["option"]],inputs:{ngValue:"ngValue",value:"value"}}),se})();const ds={provide:p,useExisting:(0,t.forwardRef)(()=>fo),multi:!0};function Ds(se,me){return null==se?`${me}`:("string"==typeof me&&(me=`'${me}'`),me&&"object"==typeof me&&(me="Object"),`${se}: ${me}`.slice(0,50))}let fo=(()=>{class se extends a{constructor(){super(...arguments),this._optionMap=new Map,this._idCounter=0,this._compareWith=Object.is}set compareWith(W){this._compareWith=W}writeValue(W){let De;if(this.value=W,Array.isArray(W)){const et=W.map(kt=>this._getOptionId(kt));De=(kt,On)=>{kt._setSelected(et.indexOf(On.toString())>-1)}}else De=(et,kt)=>{et._setSelected(!1)};this._optionMap.forEach(De)}registerOnChange(W){this.onChange=De=>{const et=[],kt=De.selectedOptions;if(void 0!==kt){const On=kt;for(let Bt=0;Bt<On.length;Bt++){const qr=this._getOptionValue(On[Bt].value);et.push(qr)}}else{const On=De.options;for(let Bt=0;Bt<On.length;Bt++){const Fn=On[Bt];if(Fn.selected){const qr=this._getOptionValue(Fn.value);et.push(qr)}}}this.value=et,W(et)}}_registerOption(W){const De=(this._idCounter++).toString();return this._optionMap.set(De,W),De}_getOptionId(W){for(const De of Array.from(this._optionMap.keys()))if(this._compareWith(this._optionMap.get(De)._value,W))return De;return null}_getOptionValue(W){const De=function Co(se){return se.split(":")[0]}(W);return this._optionMap.has(De)?this._optionMap.get(De)._value:W}}return se.\u0275fac=function(){let me;return function(De){return(me||(me=t.\u0275\u0275getInheritedFactory(se)))(De||se)}}(),se.\u0275dir=t.\u0275\u0275defineDirective({type:se,selectors:[["select","multiple","","formControlName",""],["select","multiple","","formControl",""],["select","multiple","","ngModel",""]],hostBindings:function(W,De){1&W&&t.\u0275\u0275listener("change",function(kt){return De.onChange(kt.target)})("blur",function(){return De.onTouched()})},inputs:{compareWith:"compareWith"},features:[t.\u0275\u0275ProvidersFeature([ds]),t.\u0275\u0275InheritDefinitionFeature]}),se})(),mo=(()=>{class se{constructor(W,De,et){this._element=W,this._renderer=De,this._select=et,this._select&&(this.id=this._select._registerOption(this))}set ngValue(W){null!=this._select&&(this._value=W,this._setElementValue(Ds(this.id,W)),this._select.writeValue(this._select.value))}set value(W){this._select?(this._value=W,this._setElementValue(Ds(this.id,W)),this._select.writeValue(this._select.value)):this._setElementValue(W)}_setElementValue(W){this._renderer.setProperty(this._element.nativeElement,"value",W)}_setSelected(W){this._renderer.setProperty(this._element.nativeElement,"selected",W)}ngOnDestroy(){this._select&&(this._select._optionMap.delete(this.id),this._select.writeValue(this._select.value))}}return se.\u0275fac=function(W){return new(W||se)(t.\u0275\u0275directiveInject(t.ElementRef),t.\u0275\u0275directiveInject(t.Renderer2),t.\u0275\u0275directiveInject(fo,9))},se.\u0275dir=t.\u0275\u0275defineDirective({type:se,selectors:[["option"]],inputs:{ngValue:"ngValue",value:"value"}}),se})();function ft(se){return"number"==typeof se?se:parseInt(se,10)}let Re=(()=>
1{class se{constructor(){this._validator=ee}ngOnChanges(W){if(this.inputName in W){const De=this.normalizeInput(W[this.inputName].currentValue);this._enabled=this.enabled(De),this._validator=this._enabled?this.createValidator(De):ee,this._onChange&&this._onChange()}}validate(W){return this._validator(W)}registerOnValidatorChange(W){this._onChange=W}enabled(W){return null!=W}}return se.\u0275fac=function(W){return new(W||se)},se.\u0275dir=t.\u0275\u0275defineDirective({type:se,features:[t.\u0275\u0275NgOnChangesFeature]}),se})();const pi={provide:D,useExisting:(0,t.forwardRef)(()=>bi),multi:!0},xi={provide:D,useExisting:(0,t.forwardRef)(()=>Hi),multi:!0};let bi=(()=>{class se extends Re{constructor(){super(...arguments),this.inputName="required",this.normalizeInput=t.\u0275coerceToBoolean,this.createValidator=W=>L}enabled(W){return W}}return se.\u0275fac=function(){let me;return function(De){return(me||(me=t.\u0275\u0275getInheritedFactory(se)))(De||se)}}(),se.\u0275dir=t.\u0275\u0275defineDirective({type:se,selectors:[["","required","","formControlName","",3,"type","checkbox"],["","required","","formControl","",3,"type","checkbox"],["","required","","ngModel","",3,"type","checkbox"]],hostVars:1,hostBindings:function(W,De){2&W&&t.\u0275\u0275attribute("required",De._enabled?"":null)},inputs:{required:"required"},features:[t.\u0275\u0275ProvidersFeature([pi]),t.\u0275\u0275InheritDefinitionFeature]}),se})(),Hi=(()=>{class se extends bi{constructor(){super(...arguments),this.createValidator=W=>V}}return se.\u0275fac=function(){let me;return function(De){return(me||(me=t.\u0275\u0275getInheritedFactory(se)))(De||se)}}(),se.\u0275dir=t.\u0275\u0275defineDirective({type:se,selectors:[["input","type","checkbox","required","","formControlName",""],["input","type","checkbox","required","","formControl",""],["input","type","checkbox","required","","ngModel",""]],hostVars:1,hostBindings:function(W,De){2&W&&t.\u0275\u0275attribute("required",De._enabled?"":null)},features:[t.\u0275\u0275ProvidersFeature([xi]),t.\u0275\u0275InheritDefinitionFeature]}),se})();const Do={provide:D,useExisting:(0,t.forwardRef)(()=>Si),multi:!0};let Si=(()=>{class se extends Re{constructor(){super(...arguments),this.inputName="minlength",this.normalizeInput=W=>ft(W),this.createValidator=W=>X(W)}}return se.\u0275fac=function(){let me;return function(De){return(me||(me=t.\u0275\u0275getInheritedFactory(se)))(De||se)}}(),se.\u0275dir=t.\u0275\u0275defineDirective({type:se,selectors:[["","minlength","","formControlName",""],["","minlength","","formControl",""],["","minlength","","ngModel",""]],hostVars:1,hostBindings:function(W,De){2&W&&t.\u0275\u0275attribute("minlength",De._enabled?De.minlength:null)},inputs:{minlength:"minlength"},features:[t.\u0275\u0275ProvidersFeature([Do]),t.\u0275\u0275InheritDefinitionFeature]}),se})();const Ro={provide:D,useExisting:(0,t.forwardRef)(()=>ao),multi:!0};let ao=(()=>{class se extends Re{constructor(){super(...arguments),this.inputName="maxlength",this.normalizeInput=W=>ft(W),this.createValidator=W=>te(W)}}return se.\u0275fac=function(){let me;return function(De){return(me||(me=t.\u0275\u0275getInheritedFactory(se)))(De||se)}}(),se.\u0275dir=t.\u0275\u0275defineDirective({type:se,selectors:[["","maxlength","","formControlName",""],["","maxlength","","formControl",""],["","maxlength","","ngModel",""]],hostVars:1,hostBindings:function(W,De){2&W&&t.\u0275\u0275attribute("maxlength",De._enabled?De.maxlength:null)},inputs:{maxlength:"maxlength"},features:[t.\u0275\u0275ProvidersFeature([Ro]),t.\u0275\u0275InheritDefinitionFeature]}),se})();const Ii={provide:D,useExisting:(0,t.forwardRef)(()=>Oi),multi:!0};let Oi=(()=>{class se extends Re{constructor(){super(...arguments),this.inputName="pattern",this.normalizeInput=W=>W,this.createValidator=W=>K(W)}}return se.\u0275fac=function(){let me;return function(De){return(me||(me=t.\u0275\u0275getInheritedFactory(se)))(De||se)}}(),se.\u0275dir=t.\u0275\u0275defineDirective({type:se,selectors:[["","pattern","","formControlName",""],["","pattern","","formControl",""],["","pattern","","ngModel",""]],hostVars:1,hostBindings:function(W,De){2&W&&t.\u0275\u0275attribute("pattern",De._enabled?De.pattern:null)},inputs:{pattern:"pattern"},features:[t.\u0275\u0275ProvidersFeature([Ii]),t.\u0275\u0275InheritDefinitionFeature]}),se})(),So=(()=>{class se{}return se.\u0275fac=function(W){return new(W||se)},se.\u0275mod=t.\u0275\u0275defineNgModule({type:se}),se.\u0275inj=t.\u0275\u0275defineInjector({imports:[Fr]}),se})();class Oo extends rn{constructor(me,W,De){super(st(W),Le(De,W)),this.controls=me,this._initOb
1servables(),this._setUpdateStrategy(W),this._setUpControls(),this.updateValueAndValidity({onlySelf:!0,emitEvent:!!this.asyncValidator})}at(me){return this.controls[this._adjustIndex(me)]}push(me,W={}){this.controls.push(me),this._registerControl(me),this.updateValueAndValidity({emitEvent:W.emitEvent}),this._onCollectionChange()}insert(me,W,De={}){this.controls.splice(me,0,W),this._registerControl(W),this.updateValueAndValidity({emitEvent:De.emitEvent})}removeAt(me,W={}){let De=this._adjustIndex(me);De<0&&(De=0),this.controls[De]&&this.controls[De]._registerOnCollectionChange(()=>{}),this.controls.splice(De,1),this.updateValueAndValidity({emitEvent:W.emitEvent})}setControl(me,W,De={}){let et=this._adjustIndex(me);et<0&&(et=0),this.controls[et]&&this.controls[et]._registerOnCollectionChange(()=>{}),this.controls.splice(et,1),W&&(this.controls.splice(et,0,W),this._registerControl(W)),this.updateValueAndValidity({emitEvent:De.emitEvent}),this._onCollectionChange()}get length(){return this.controls.length}setValue(me,W={}){$t(this,!1,me),me.forEach((De,et)=>{Jt(this,!1,et),this.at(et).setValue(De,{onlySelf:!0,emitEvent:W.emitEvent})}),this.updateValueAndValidity(W)}patchValue(me,W={}){null!=me&&(me.forEach((De,et)=>{this.at(et)&&this.at(et).patchValue(De,{onlySelf:!0,emitEvent:W.emitEvent})}),this.updateValueAndValidity(W))}reset(me=[],W={}){this._forEachChild((De,et)=>{De.reset(me[et],{onlySelf:!0,emitEvent:W.emitEvent})}),this._updatePristine(W),this._updateTouched(W),this.updateValueAndValidity(W)}getRawValue(){return this.controls.map(me=>me.getRawValue())}clear(me={}){this.controls.length<1||(this._forEachChild(W=>W._registerOnCollectionChange(()=>{})),this.controls.splice(0),this.updateValueAndValidity({emitEvent:me.emitEvent}))}_adjustIndex(me){return me<0?me+this.length:me}_syncPendingControls(){let me=this.controls.reduce((W,De)=>!!De._syncPendingControls()||W,!1);return me&&this.updateValueAndValidity({onlySelf:!0}),me}_forEachChild(me){this.controls.forEach((W,De)=>{me(W,De)})}_updateValue(){this.value=this.controls.filter(me=>me.enabled||this.disabled).map(me=>me.value)}_anyControls(me){return this.controls.some(W=>W.enabled&&me(W))}_setUpControls(){this._forEachChild(me=>this._registerControl(me))}_allControlsDisabled(){for(const me of this.controls)if(me.enabled)return!1;return this.controls.length>0||this.disabled}_registerControl(me){me.setParent(this),me._registerOnCollectionChange(this._onCollectionChange)}_find(me){return this.at(me)??null}}const Ni=Oo;function Li(se){return!!se&&(void 0!==se.asyncValidators||void 0!==se.validators||void 0!==se.updateOn)}let Os=(()=>{class se{constructor(){this.useNonNullable=!1}get nonNullable(){const W=new se;return W.useNonNullable=!0,W}group(W,De=null){const et=this._reduceControls(W);let kt={};return Li(De)?kt=De:null!==De&&(kt.validators=De.validator,kt.asyncValidators=De.asyncValidator),new Wt(et,kt)}record(W,De=null){const et=this._reduceControls(W);return new dt(et,De)}control(W,De,et){let kt={};return this.useNonNullable?(Li(De)?kt=De:(kt.validators=De,kt.asyncValidators=et),new ii(W,{...kt,nonNullable:!0})):new ii(W,De,et)}array(W,De,et){const kt=W.map(On=>this._createControl(On));return new Oo(kt,De,et)}_reduceControls(W){const De={};return Object.keys(W).forEach(et=>{De[et]=this._createControl(W[et])}),De}_createControl(W){return W instanceof ii||W instanceof rn?W:Array.isArray(W)?this.control(W[0],W.length>1?W[1]:null,W.length>2?W[2]:null):this.control(W)}}return se.\u0275fac=function(W){return new(W||se)},se.\u0275prov=t.\u0275\u0275defineInjectable({token:se,factory:se.\u0275fac,providedIn:"root"}),se})(),xs=(()=>{class se extends Os{group(W,De=null){return super.group(W,De)}control(W,De,et){return super.control(W,De,et)}array(W,De,et){return super.array(W,De,et)}}return se.\u0275fac=function(){let me;return function(De){return(me||(me=t.\u0275\u0275getInheritedFactory(se)))(De||se)}}(),se.\u0275prov=t.\u0275\u0275defineInjectable({token:se,factory:se.\u0275fac,providedIn:"root"}),se})(),hr=(()=>{class se{static withConfig(W){return{ngModule:se,providers:[{provide:je,useValue:W.callSetDisabledState??vt}]}}}return se.\u0275fac=function(W){return new(W||se)},se.\u0275mod=t.\u0275\u0275defineNgModule({type:se}),se.\u0275inj=t.\u0275\u0275defineInjector({imports:[So]}),se})(),zr=(()=>{class se{static withConfig(W){return{ngModule:se,providers:[{provide:jr,useValue:W.warnOnNgModelWithFormControl??"always"},{provide:je,useValue:W.callSetDisabledState??vt}]}}}return se.\u0275fac=function(W){return new(W||se)},se.\u0275mod=t.\u0275\u0275defineNgModule({type:se}),se.\u0275inj=t.\u0275\u0275defineInjector({imports:[So]}),se})()},11481:(R,c,e)=>{"use strict";e.d(c,{Cb:()=>Dt,Cu:()=>wt,Dx:()=>Pt,H7:()=>rn,b2:()=>pn,h_:()=>Tt,hm:()=>at,ki:()=>Ft,ok:()=>Le,q6:()=>Yt,se:()=>ae});var t=e(36895),n=e(94650);class o extends t.w_{constructor(){super(...arguments),this.supportsDOMEvents=!0}}class i extends o{static makeCurrent(){(0,t.HT)(new i)}onAndCancel(ht,je,vt){return ht.addEventListener(je,vt,!1),()=>{ht.removeEventListener(je,vt,!1)}}dispatchEvent(ht,je){ht.dispatchEvent(je)}remove(ht){ht.parentNode&&ht.parentNode.removeChild(ht)}createElement(ht,je){return(je=je||this.getDefaultDocument()).createElement(ht)}createHtmlDocument(){return document.implementation.createHTMLDocument("fakeTitle")}getDefaultDocument(){return document}isElementNode(ht){return ht.nodeType===Node.ELEMENT_NODE}isShadowRoot(ht){return ht instanceof DocumentFragment}getGlobalEventTarget(ht,je){return"window"===je?window:"document"===je?ht:"body"===je?ht.body:null}getBaseHref(ht){const je=function r(){return d=d||document.querySelector("base"),d?d.getAttribute("href"):null}();return null==je?null:function p(dt){a=a||document.createElement("a"),a.setAttribute("href",dt);const ht=a.pathname;return"/"===ht.charAt(0)?ht:`/${ht}`}(je)}resetBaseElement(){d=null}getUserAgent(){return window.navigator.userAgent}getCookie(ht){return(0,t.Mx)(document.cookie,ht)}}let a,d=null;const h=new n.InjectionToken("TRANSITION_ID"),_=[{provide:n.APP_INITIALIZER,useFactory:function m(dt,ht,je){return()=>{je.get(n.ApplicationInitStatus).donePromise.then(()=>{const vt=(0,t.q)(),Zt=ht.querySelectorAll(`style[ng-transition="${dt}"]`);for(let We=0;We<Zt.length;We++)vt.remove(Zt[We])})}}
1,deps:[h,t.K0,n.Injector],multi:!0}];let E=(()=>{class dt{build(){return new XMLHttpRequest}}return dt.\u0275fac=function(je){return new(je||dt)},dt.\u0275prov=n.\u0275\u0275defineInjectable({token:dt,factory:dt.\u0275fac}),dt})();const O=new n.InjectionToken("EventManagerPlugins");let b=(()=>{class dt{constructor(je,vt){this._zone=vt,this._eventNameToPlugin=new Map,je.forEach(Zt=>{Zt.manager=this}),this._plugins=je.slice().reverse()}addEventListener(je,vt,Zt){return this._findPluginFor(vt).addEventListener(je,vt,Zt)}addGlobalEventListener(je,vt,Zt){return this._findPluginFor(vt).addGlobalEventListener(je,vt,Zt)}getZone(){return this._zone}_findPluginFor(je){const vt=this._eventNameToPlugin.get(je);if(vt)return vt;const Zt=this._plugins;for(let We=0;We<Zt.length;We++){const Ne=Zt[We];if(Ne.supports(je))return this._eventNameToPlugin.set(je,Ne),Ne}throw new Error(`No event manager plugin found for event ${je}`)}}return dt.\u0275fac=function(je){return new(je||dt)(n.\u0275\u0275inject(O),n.\u0275\u0275inject(n.NgZone))},dt.\u0275prov=n.\u0275\u0275defineInjectable({token:dt,factory:dt.\u0275fac}),dt})();class M{constructor(ht){this._doc=ht}addGlobalEventListener(ht,je,vt){const Zt=(0,t.q)().getGlobalEventTarget(this._doc,ht);if(!Zt)throw new Error(`Unsupported event target ${Zt} for event ${je}`);return this.addEventListener(Zt,je,vt)}}let P=(()=>{class dt{constructor(){this.usageCount=new Map}addStyles(je){for(const vt of je)1===this.changeUsageCount(vt,1)&&this.onStyleAdded(vt)}removeStyles(je){for(const vt of je)0===this.changeUsageCount(vt,-1)&&this.onStyleRemoved(vt)}onStyleRemoved(je){}onStyleAdded(je){}getAllStyles(){return this.usageCount.keys()}changeUsageCount(je,vt){const Zt=this.usageCount;let We=Zt.get(je)??0;return We+=vt,We>0?Zt.set(je,We):Zt.delete(je),We}ngOnDestroy(){for(const je of this.getAllStyles())this.onStyleRemoved(je);this.usageCount.clear()}}return dt.\u0275fac=function(je){return new(je||dt)},dt.\u0275prov=n.\u0275\u0275defineInjectable({token:dt,factory:dt.\u0275fac}),dt})(),D=(()=>{class dt extends P{constructor(je){super(),this.doc=je,this.styleRef=new Map,this.hostNodes=new Set,this.resetHostNodes()}onStyleAdded(je){for(const vt of this.hostNodes)this.addStyleToHost(vt,je)}onStyleRemoved(je){const vt=this.styleRef;vt.get(je)?.forEach(We=>We.remove()),vt.delete(je)}ngOnDestroy(){super.ngOnDestroy(),this.styleRef.clear(),this.resetHostNodes()}addHost(je){this.hostNodes.add(je);for(const vt of this.getAllStyles())this.addStyleToHost(je,vt)}removeHost(je){this.hostNodes.delete(je)}addStyleToHost(je,vt){const Zt=this.doc.createElement("style");Zt.textContent=vt,je.appendChild(Zt);const We=this.styleRef.get(vt);We?We.push(Zt):this.styleRef.set(vt,[Zt])}resetHostNodes(){const je=this.hostNodes;je.clear(),je.add(this.doc.head)}}return dt.\u0275fac=function(je){return new(je||dt)(n.\u0275\u0275inject(t.K0))},dt.\u0275prov=n.\u0275\u0275defineInjectable({token:dt,factory:dt.\u0275fac}),dt})();const l={svg:"http://www.w3.org/2000/svg",xhtml:"http://www.w3.org/1999/xhtml",xlink:"http://www.w3.org/1999/xlink",xml:"http://www.w3.org/XML/1998/namespace",xmlns:"http://www.w3.org/2000/xmlns/",math:"http://www.w3.org/1998/MathML/"},C=/%COMP%/g,g="%COMP%",B=`_nghost-${g}`,L=`_ngcontent-${g}`,Y=new n.InjectionToken("RemoveStylesOnCompDestory",{providedIn:"root",factory:()=>!1});function K(dt,ht){return ht.flat(100).map(je=>je.replace(C,dt))}function ee(dt){return ht=>{if("__ngUnwrap__"===ht)return dt;!1===dt(ht)&&(ht.preventDefault(),ht.returnValue=!1)}}let ae=(()=>{class dt{constructor(je,vt,Zt,We){this.eventManager=je,this.sharedStylesHost=vt,this.appId=Zt,this.removeStylesOnCompDestory=We,this.rendererByCompId=new Map,this.defaultRenderer=new Q(je)}createRenderer(je,vt){if(!je||!vt)return this.defaultRenderer;const Zt=this.getOrCreateRenderer(je,vt);return Zt instanceof q?Zt.applyToHost(je):Zt instanceof ne&&Zt.applyStyles(),Zt}getOrCreateRenderer(je,vt){const Zt=this.rendererByCompId;let We=Zt.get(vt.id);if(!We){const Ne=this.eventManager,ze=this.sharedStylesHost,bt=this.removeStylesOnCompDestory;switch(vt.encapsulation){case n.ViewEncapsulation.Emulated:We=new q(Ne,ze,vt,this.appId,bt);break;case n.ViewEncapsulation.ShadowDom:return new ie(Ne,ze,je,vt);default:We=new ne(Ne,ze,vt,bt)}We.onDestroy=()=>Zt.delete(vt.id),Zt.set(vt.id,We)}return We}ngOnDestroy(){this.rendererByCompId.clear()}begin(){}end(){}}return dt.\u0275fac=function(je){return new(je||dt)(n.\u0275\u0275inject(b),n.\u0275\u0275inject(D),n.\u0275\u0275inject(n.APP_ID),n.\u0275\u0275inject(Y))},dt.\u0275prov=n.\u0275\u0275defineInjectable({token:dt,factory:dt.\u0275fac}),dt})();class Q{constructor(ht){this.eventManager=ht,this.data=Object.create(null),this.destroyNode=null}destroy(){}createElement(ht,je){return je?document.createElementNS(l[je]||je,ht):document.createElement(ht)}createComment(ht){return document.createComment(ht)}createText(ht){return document.createTextNode(ht)}appendChild(ht,je){(G(ht)?ht.content:ht).appendChild(je)}insertBefore(ht,je,vt){ht&&(G(ht)?ht.content:ht).insertBefore(je,vt)}removeChild(ht,je){ht&&ht.removeChild(je)}selectRootElement(ht,je){let vt="string"==typeof ht?document.querySelector(ht):ht;if(!vt)throw new Error(`The selector "${ht}
1" did not match any elements`);return je||(vt.textContent=""),vt}parentNode(ht){return ht.parentNode}nextSibling(ht){return ht.nextSibling}setAttribute(ht,je,vt,Zt){if(Zt){je=Zt+":"+je;const We=l[Zt];We?ht.setAttributeNS(We,je,vt):ht.setAttribute(je,vt)}else ht.setAttribute(je,vt)}removeAttribute(ht,je,vt){if(vt){const Zt=l[vt];Zt?ht.removeAttributeNS(Zt,je):ht.removeAttribute(`${vt}:${je}`)}else ht.removeAttribute(je)}addClass(ht,je){ht.classList.add(je)}removeClass(ht,je){ht.classList.remove(je)}setStyle(ht,je,vt,Zt){Zt&(n.RendererStyleFlags2.DashCase|n.RendererStyleFlags2.Important)?ht.style.setProperty(je,vt,Zt&n.RendererStyleFlags2.Important?"important":""):ht.style[je]=vt}removeStyle(ht,je,vt){vt&n.RendererStyleFlags2.DashCase?ht.style.removeProperty(je):ht.style[je]=""}setProperty(ht,je,vt){ht[je]=vt}setValue(ht,je){ht.nodeValue=je}listen(ht,je,vt){return"string"==typeof ht?this.eventManager.addGlobalEventListener(ht,je,ee(vt)):this.eventManager.addEventListener(ht,je,ee(vt))}}function G(dt){return"TEMPLATE"===dt.tagName&&void 0!==dt.content}class ie extends Q{constructor(ht,je,vt,Zt){super(ht),this.sharedStylesHost=je,this.hostEl=vt,this.shadowRoot=vt.attachShadow({mode:"open"}),this.sharedStylesHost.addHost(this.shadowRoot);const We=K(Zt.id,Zt.styles);for(const Ne of We){const ze=document.createElement("style");ze.textContent=Ne,this.shadowRoot.appendChild(ze)}}nodeOrShadowRoot(ht){return ht===this.hostEl?this.shadowRoot:ht}appendChild(ht,je){return super.appendChild(this.nodeOrShadowRoot(ht),je)}insertBefore(ht,je,vt){return super.insertBefore(this.nodeOrShadowRoot(ht),je,vt)}removeChild(ht,je){return super.removeChild(this.nodeOrShadowRoot(ht),je)}parentNode(ht){return this.nodeOrShadowRoot(super.parentNode(this.nodeOrShadowRoot(ht)))}destroy(){this.sharedStylesHost.removeHost(this.shadowRoot)}}class ne extends Q{constructor(ht,je,vt,Zt,We=vt.id){super(ht),this.sharedStylesHost=je,this.removeStylesOnCompDestory=Zt,this.rendererUsageCount=0,this.styles=K(We,vt.styles)}applyStyles(){this.sharedStylesHost.addStyles(this.styles),this.rendererUsageCount++}destroy(){this.removeStylesOnCompDestory&&(this.sharedStylesHost.removeStyles(this.styles),this.rendererUsageCount--,0===this.rendererUsageCount&&this.onDestroy?.())}}class q extends ne{constructor(ht,je,vt,Zt,We){const Ne=Zt+"-"+vt.id;super(ht,je,vt,We,Ne),this.contentAttr=function X(dt){return L.replace(C,dt)}(Ne),this.hostAttr=function te(dt){return B.replace(C,dt)}(Ne)}applyToHost(ht){this.applyStyles(),this.setAttribute(ht,this.hostAttr,"")}createElement(ht,je){const vt=super.createElement(ht,je);return super.setAttribute(vt,this.contentAttr,""),vt}}let oe=(()=>{class dt extends M{constructor(je){super(je)}supports(je){return!0}addEventListener(je,vt,Zt){return je.addEventListener(vt,Zt,!1),()=>this.removeEventListener(je,vt,Zt)}removeEventListener(je,vt,Zt){return je.removeEventListener(vt,Zt)}}return dt.\u0275fac=function(je){return new(je||dt)(n.\u0275\u0275inject(t.K0))},dt.\u0275prov=n.\u0275\u0275defineInjectable({token:dt,factory:dt.\u0275fac}),dt})();const ce=["alt","control","meta","shift"],ye={"\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"},Me={alt:dt=>dt.altKey,control:dt=>dt.ctrlKey,meta:dt=>dt.metaKey,shift:dt=>dt.shiftKey};let Ee=(()=>{class dt extends M{constructor(je){super(je)}supports(je){return null!=dt.parseEventName(je)}addEventListener(je,vt,Zt){const We=dt.parseEventName(vt),Ne=dt.eventCallback(We.fullKey,Zt,this.manager.getZone());return this.manager.getZone().runOutsideAngular(()=>(0,t.q)().onAndCancel(je,We.domEventName,Ne))}static parseEventName(je){const vt=je.toLowerCase().split("."),Zt=vt.shift();if(0===vt.length||"keydown"!==Zt&&"keyup"!==Zt)return null;const We=dt._normalizeKey(vt.pop());let Ne="",ze=vt.indexOf("code");if(ze>-1&&(vt.splice(ze,1),Ne="code."),ce.forEach(En=>{const wn=vt.indexOf(En);wn>-1&&(vt.splice(wn,1),Ne+=En+".")}),Ne+=We,0!=vt.length||0===We.length)return null;const bt={};return bt.domEventName=Zt,bt.fullKey=Ne,bt}static matchEventFullKeyCode(je,vt){let Zt=ye[je.key]||je.key,We="";return vt.indexOf("code.")>-1&&(Zt=je.code,We="code."),!(null==Zt||!Zt)&&(Zt=Zt.toLowerCase()," "===Zt?Zt="space":"."===Zt&&(Zt="dot"),ce.forEach(Ne=>{Ne!==Zt&&(0,Me[Ne])(je)&&(We+=Ne+".")}),We+=Zt,We===vt)}static eventCallback(je,vt,Zt){return We=>{dt.matchEventFullKeyCode(We,je)&&Zt.runGuarded(()=>vt(We))}}static _normalizeKey(je){return"esc"===je?"escape":je}}return dt.\u0275fac=function(je){return new(je||dt)(n.\u0275\u0275inject(t.K0))},dt.\u0275prov=n.\u0275\u0275defineInjectable({token:dt,factory:dt.\u0275fac}),dt})();const Yt=(0,n.createPlatformFactory)(n.platformCore,"browser",[{provide:n.PLATFORM_ID,useValue:t.bD},{provide:n.PLATFORM_INITIALIZER,useValue:function Be(){i.makeCurrent()},multi:!0},{provide:t.K0,useFactory:function pt(){return(0,n.\u0275setDocument)(document),document},deps:[]}]),nt=new n.InjectionToken(""),mt=[{provide:n.\u0275TESTABILITY_GETTER,useClass:class v{addToWindow(ht){n.\u0275global.getAngularTestability=(vt,Zt=!0)=>{const We=ht.findTestabilityInTree(vt,Zt);if(null==We)throw new Error("Could not find testability for element.");return We},n.\u0275global.getAllAngularTestabilities=()=>ht.getAllTestabilities(),n.\u0275global.getAllAngularRootElements=()=>ht.getAllRootElements(),n.\u0275global.frameworkStabilizers||(n.\u0275global.frameworkStabilizers=[]),n.\u0275global.frameworkStabilizers.push(vt=>{const Zt=n.\u0275global.getAllAngularTestabilities();let We=Zt.length,Ne=!1;const ze=function(bt){Ne=Ne||bt,We--,0==We&&vt(Ne)};Zt.forEach(function(bt){bt.whenStable(ze)})})}findTestabilityInTree(ht,je,vt){return null==je?null:ht.getTestability(je)??(vt?(0,t.q)().isShadowRoot(je)?this.findTestabilityInTree(ht,je.host,!0):this.findTestabilityInTree(ht,je.parentElement,!0):null)}},deps:[]},{provide:n.\u0275TESTABILITY,useClass:n.Testability,deps:[n.NgZone,n.TestabilityRegistry,n.\u0275TESTABILITY_GETTER]},{provide:n.Testability,useClass:n.Testability,deps:[n.NgZone,n.TestabilityRegistry,n.\u0275TESTABILITY_GETTER]}],en=[{provide:n.\u0275INJECTOR_SCOPE,useValue:"root"},{provide:n.ErrorHandler,useFactory:function Xe(){return new n.ErrorHandler},deps:[]},{provide:O,useClass:oe,multi:!0,deps:[t.K0,n.NgZone,n.PLATFORM_ID]},{provide:O,useClass:Ee,multi:!0,deps:[t.K0]},{provide:ae,useClass:ae,deps:[b,D,n.APP_ID,Y]},{provide:n.RendererFactory2,useExisting:ae},{provide:P,useExisting:D},{provide:D,useClass:D,deps:[t.K0]},{provide:b,useClass:b,deps:[O,n.NgZone]},{provide:t.JF,useClass:E,deps:[]},[]];let pn=(()=>{class dt{constructor(je){}static withServerTransition(je){return{ngModule:dt,providers:[{provide:n.APP_ID,useValue:je.appId},{provide:h,useExisting:n.APP_ID},_]}}}return dt.\u0275fac=function(je){return new(je||dt)(n.\u0275\u0275inject(nt,12))},dt.\u0275mod=n.\u0275\u0275defineNgModule({type:dt}),dt.\u0275inj=n.\u0275\u0275defineInjector({providers:[...en,...mt],imports:[t.ez,n.ApplicationModule]}),dt})(),Tt=(()=>{class dt{constructor(je){this._doc=je,this._dom=(0,t.q)()}addTag(je,vt=!1){return je?this._getOrCreateElement(je,vt):null}addTags(je,vt=!1){return je?je.reduce((Zt,We)=>(We&&Zt.push(this._getOrCreateElement(We,vt)),Zt),[]):[]}getTag(je){return je&&this._doc.querySelector(`meta[${je}]`)||null}getTags(je){if(!je)return[];const vt=this._doc.querySelectorAll(`meta[${je}]`);return vt?[].slice.call(vt):[]}updateTag(je,vt){if(!je)return null;vt=vt||this._parseSelector(je);const Zt=this.getTag(vt);return Zt?this._setMetaElementAttributes(je,Zt):this._getOrCreateElement(je,!0)}removeTag(je){this.removeTagElement(this.getTag(je))}removeTagElement(je){je&&this._dom.remove(je)}_getOrCreateElement(je,vt=!1){if(!vt){const Ne=this._parseSelector(je),ze=this.getTags(Ne).filter(bt=>this._containsAttributes(je,bt))[0];if(void 0!==ze)return ze}const Zt=this._dom.createElement("meta");return this._setMetaElementAttributes(je,Zt),this._doc.getElementsByTagName("head")[0].appendChild(Zt),Zt}_setMetaElementAttributes(je,vt){return Object.keys(je).forEach(Zt=>vt.setAttribute(this._getMetaKeyMap(Zt),je[Zt])),vt}_parseSelector(je){const vt=je.name?"name":"property";return`${vt}="${je[vt]}"`}_containsAttributes(je,vt){return Object.keys(je).every(Zt=>vt.getAttribute(this._getMetaKeyMap(Zt))===je[Zt])}_getMetaKeyMap(je){return At[je]||je}}return dt.\u0275fac=function(je){return new(je||dt)(n.\u0275\u0275inject(t.K0))},dt.\u0275prov=n.\u0275\u0275defineInjectable({token:dt,factory:function(je){let vt=null;return vt=je?new je:function tt(){return new Tt((0,n.\u0275\u0275inject)(t.K0))}(),vt},providedIn:"root"}),dt})();const At={httpEquiv:"http-equiv"};let Pt=(()=>{class dt{constructor(je){this._doc=je}getTitle(){return this._doc.title}setTitle(je){this._doc.title=je||""}}return dt.\u0275fac=function(je){return new(je||dt)(n.\u0275\u0275inject(t.K0))},dt.\u0275prov=n.\u0275\u0275defineInjectable({token:dt,factory:function(je){let vt=null;return vt=je?new je:function Rt(){return new Pt((0,n.\u0275\u0275inject)(t.K0))}(),vt},providedIn:"root"}),dt})();function Dt(dt){return dt}typeof window<"u"&&window;let Ft=(()=>{class dt{constructor(){this.store={},this.onSerializeCallbacks={},this.store=function St(dt,ht){const je=dt.getElementById(ht+"-state");let vt={};if(je&&je.textContent)try{vt=JSON.parse(function $n(dt){const ht={"&a;":"&","&q;":'"',"&s;":"'","&l;":"<","&g;":">"};return dt.replace(/&[^;]+;/g,je=>ht[je])}(je.textContent))}catch(Zt){console.warn("Exception while restoring TransferState for app "+ht,Zt)}return vt}((0,n.inject)(t.K0),(0,n.inject)(n.APP_ID))}get(je,vt){return void 0!==this.store[je]?this.store[je]:vt}set(je,vt){this.store[je]=vt}remove(je){delete this.store[je]}hasKey(je){return this.store.hasOwnProperty(je)}get isEmpty(){return 0===Object.keys(this.store).length}onSerialize(je,vt){this.onSerializeCallbacks[je]=vt}toJson(){for(const je in this.onSerializeCallbacks)if(this.onSerializeCallbacks.hasOwnProperty(je))try{this.store[je]=this.onSerializeCallbacks[je]()}catch(vt){console.warn("Exception in onSerialize callback: ",vt)}return JSON.stringify(this.store)}}return dt.\u0275fac=function(je){return new(je||dt)},dt.\u0275prov=n.\u0275\u0275defineInjectable({token:dt,factory:dt.\u0275fac,providedIn:"root"}),dt})(),wt=(()=>{class dt{}return dt.\u0275fac=function(je){return new(je||dt)},dt.\u0275mod=n.\u0275\u0275defineNgModule({type:dt}),dt.\u0275inj=n.\u0275\u0275defineInjector({}),dt})();const Le=new n.InjectionToken("HammerGestureConfig");let at=(()=>{class dt{constructor(){this.events=[],this.overrides={}}buildHammer(je){const vt=new Hammer(je,this.options);vt.get("pinch").set({enable:!0}),vt.get("rotate").set({enable:!0});for(const Zt in this.overrides)vt.get(Zt).set(this.overrides[Zt]);return vt}}return dt.\u0275fac=function(je){return new(je||dt)},dt.\u0275prov=n.\u0275\u0275defineInjectable({token:dt,factory:dt.\u0275fac}),dt})(),rn=(()=>{class dt{}return dt.\u0275fac=function(je){return new(je||dt)},dt.\u0275prov=n.\u0275\u0275defineInjectable({token:dt,factory:function(je){let vt=null;return vt=je?new(je||dt):n.\u0275\u0275inject(qt),vt},providedIn:"root"}),dt})(),qt=(()=>{class dt extends rn{constructor(je){super(),this._doc=je}sanitize(je,vt){if(null==vt)return null;switch(je){case n.SecurityContext.NONE:return vt;case n.SecurityContext.HTML:return(0,n.\u0275allowSanitizationBypassAndThrow)(vt,"HTML")?(0,n.\u0275unwrapSafeValue)(vt):(0,n.\u0275_sanitizeHtml)(this._doc,String(vt)).toString();case n.SecurityContext.STYLE:return(0,n.\u0275allowSanitizationBypassAndThrow)(vt,"Style")?(0,n.\u0275unwrapSafeValue)(vt):vt;case n.SecurityContext.SCRIPT:if((0,n.\u0275allowSanitizationBypassAndThrow)(vt,"Script"))return(0,n.\u0275unwrapSafeValue)(vt);throw new Error("unsafe value used in a script context");case n.SecurityContext.URL:return(0,n.\u0275allowSanitizationBypassAndThrow)(vt,"URL")?(0,n.\u0275unwrapSafeValue)(vt):(0,n.\u0275_sanitizeUrl)(String(vt));case n.SecurityContext.RESOURCE_URL:if((0,n.\u0275allowSanitizationBypassAndThrow)(vt,"ResourceURL"))return(0,n.\u0275unwrapSafeValue)(vt);throw new Error(`unsafe value used in a resource URL context (see ${n.\u0275XSS_SECURITY_URL})`);default:throw new Error(`Unexpected SecurityContext ${je} (see ${n.\u0275XSS_SECURITY_URL})`)}}bypassSecurityTrustHtml(je){return(0,n.\u0275bypassSanitizationTrustHtml)(je)}bypassSecurityTrustStyle(je){return(0,n.\u0275bypassSanitizationTrustStyle)(je)}bypassSecurityTrustScript(je){return(0,n.\u0275bypassSanitizationTrustScript)(je)}bypassSecurityTrustUrl(je){return(0,n.\u0275bypassSanitizationTrustUrl)(je)}bypassSecurityTrustResourceUrl(je){return(0,n.\u0275bypassSanitizationTrustResourceUrl)(je)}}return dt.\u0275fac=function(je){return new(je||dt)(n.\u0275\u0275inject(t.K0))},dt.\u0275prov=n.\u0275\u0275defineInjectable({token:dt,factory:function(je){let vt=null;return vt=je?new je:function Wt(dt){return new qt(dt.get(t.K0))}(n.\u0275\u0275inject(n.Injector)),vt},providedIn:"root"}),dt})()},34793:(R,c,e)=>{"use strict";e.d(c,{Av:()=>sr,Bz:()=>ps,F0:()=>yi,GZ:()=>Zo,OD:()=>Xn,Od:()=>Is,Q3:()=>wr,R9:()=>ui,Xs:()=>ut,bq:()=>Rt,gk:()=>Qr,gz:()=>jr,lC:()=>fo,m2:()=>cr,rH:()=>zi,sz:()=>ke});
1var t=e(94650),n=e(50457),o=e(39646),i=e(61135),d=e(86805),r=e(39841),a=e(71350),p=e(49770),h=e(89635),m=e(62843),_=e(69751),v=e(60515),E=e(94033),O=e(77579),b=e(36895),M=e(54004),P=e(63900),D=e(95698),l=e(68675),C=e(39300),I=e(86099),g=e(50590),B=e(24351),L=e(18505),V=e(70262),Y=e(22940),X=e(13103),te=e(22529),K=e(46590),ee=e(52035),ae=e(69718),Q=e(28746),j=e(38343),k=e(8189),G=e(11481);const ie="primary",ne=Symbol("RouteTitle");class q{constructor(J){this.params=J||{}}has(J){return Object.prototype.hasOwnProperty.call(this.params,J)}get(J){if(this.has(J)){const H=this.params[J];return Array.isArray(H)?H[0]:H}return null}getAll(J){if(this.has(J)){const H=this.params[J];return Array.isArray(H)?H:[H]}return[]}get keys(){return Object.keys(this.params)}}function oe(N){return new q(N)}function ce(N,J,H){const de=H.path.split("/");if(de.length>N.length||"full"===H.pathMatch&&(J.hasChildren()||de.length<N.length))return null;const Pe={};for(let Fe=0;Fe<de.length;Fe++){const Qe=de[Fe],Nt=N[Fe];if(Qe.startsWith(":"))Pe[Qe.substring(1)]=Nt;else if(Qe!==Nt.path)return null}return{consumed:N.slice(0,de.length),posParams:Pe}}function Me(N,J){const H=N?Object.keys(N):void 0,de=J?Object.keys(J):void 0;if(!H||!de||H.length!=de.length)return!1;let Pe;for(let Fe=0;Fe<H.length;Fe++)if(Pe=H[Fe],!Ee(N[Pe],J[Pe]))return!1;return!0}function Ee(N,J){if(Array.isArray(N)&&Array.isArray(J)){if(N.length!==J.length)return!1;const H=[...N].sort(),de=[...J].sort();return H.every((Pe,Fe)=>de[Fe]===Pe)}return N===J}function Ae(N){return Array.prototype.concat.apply([],N)}function Je(N){return N.length>0?N[N.length-1]:null}function It(N,J){for(const H in N)N.hasOwnProperty(H)&&J(N[H],H)}function it(N){return(0,t.\u0275isObservable)(N)?N:(0,t.\u0275isPromise)(N)?(0,n.D)(Promise.resolve(N)):(0,o.of)(N)}const Be=!1,Xe={exact:function nt(N,J,H){if(!xt(N.segments,J.segments)||!tt(N.segments,J.segments,H)||N.numberOfChildren!==J.numberOfChildren)return!1;for(const de in J.children)if(!N.children[de]||!nt(N.children[de],J.children[de],H))return!1;return!0},subset:en},pt={exact:function Yt(N,J){return Me(N,J)},subset:function mt(N,J){return Object.keys(J).length<=Object.keys(N).length&&Object.keys(J).every(H=>Ee(N[H],J[H]))},ignored:()=>!0};function Mt(N,J,H){return Xe[H.paths](N.root,J.root,H.matrixParams)&&pt[H.queryParams](N.queryParams,J.queryParams)&&!("exact"===
1H.fragment&&N.fragment!==J.fragment)}function en(N,J,H){return pn(N,J,J.segments,H)}function pn(N,J,H,de){if(N.segments.length>H.length){const Pe=N.segments.slice(0,H.length);return!(!xt(Pe,H)||J.hasChildren()||!tt(Pe,H,de))}if(N.segments.length===H.length){if(!xt(N.segments,H)||!tt(N.segments,H,de))return!1;for(const Pe in J.children)if(!N.children[Pe]||!en(N.children[Pe],J.children[Pe],de))return!1;return!0}{const Pe=H.slice(0,N.segments.length),Fe=H.slice(N.segments.length);return!!(xt(N.segments,Pe)&&tt(N.segments,Pe,de)&&N.children[ie])&&pn(N.children[ie],J,Fe,de)}}function tt(N,J,H){return J.every((de,Pe)=>pt[H](N[Pe].parameters,de.parameters))}class Tt{constructor(J=new At([],{}),H={},de=null){this.root=J,this.queryParams=H,this.fragment=de}get queryParamMap(){return this._queryParamMap||(this._queryParamMap=oe(this.queryParams)),this._queryParamMap}toString(){return ot.serialize(this)}}class At{constructor(J,H){this.segments=J,this.children=H,this.parent=null,It(H,(de,Pe)=>de.parent=this)}hasChildren(){return this.numberOfChildren>0}get numberOfChildren(){return Object.keys(this.children).length}toString(){return gt(this)}}class Rt{constructor(J,H){this.path=J,this.parameters=H}get parameterMap(){return this._parameterMap||(this._parameterMap=oe(this.parameters)),this._parameterMap}toString(){return wt(this)}}function xt(N,J){return N.length===J.length&&N.every((H,de)=>H.path===J[de].path)}let Ut=(()=>{class N{}return N.\u0275fac=function(H){return new(H||N)},N.\u0275prov=t.\u0275\u0275defineInjectable({token:N,factory:function(){return new ke},providedIn:"root"}),N})();class ke{parse(J){const H=new rn(J);return new Tt(H.parseRootSegment(),H.parseQueryParams(),H.parseFragment())}serialize(J){const H=`/${zt(J.root,!0)}`,de=function st(N){const J=Object.keys(N).map(H=>{const de=N[H];return Array.isArray(de)?de.map(Pe=>`${Vt(H)}=${Vt(Pe)}`).join("&"):`${Vt(H)}=${Vt(de)}`}).filter(H=>!!H);return J.length?`?${J.join("&")}`:""}(J.queryParams);return`${H}${de}${"string"==typeof J.fragment?`#${function $n(N){return encodeURI(N)}(J.fragment)}`:""}`}}const ot=new ke;function gt(N){return N.segments.map(J=>wt(J)).join("/")}function zt(N,J){if(!N.hasChildren())return gt(N);if(J){const H=N.children[ie]?zt(N.children[ie],!1):"",de=[];return It(N.children,(Pe,Fe)=>{Fe!==ie&&de.push(`${Fe}:${zt(Pe,!1)}`)}),de.length>0?`${H}(${de.join("//")})`:H}{const H=function lt(N,J){let H=[];return It(N.children,(de,Pe)=>{Pe===ie&&(H=H.concat(J(de,Pe)))}),It(N.children,(de,Pe)=>{Pe!==ie&&(H=H.concat(J(de,Pe)))}),H}(N,(de,Pe)=>Pe===ie?[zt(N.children[ie],!1)]:[`${Pe}:${zt(de,!1)}`]);return 1===Object.keys(N.children).length&&null!=N.children[ie]?`${gt(N)}/${H[0]}`:`${gt(N)}/(${H.join("//")})`}}function hn(N){return encodeURIComponent(N).replace(/%40/g,"@").replace(/%3A/gi,":").replace(/%24/g,"$").replace(/%2C/gi,",")}function Vt(N){return hn(N).replace(/%3B/gi,";")}function Dt(N){return hn(N).replace(/\(/g,"%28").replace(/\)/g,"%29").replace(/%26/gi,"&")}function Ft(N){return decodeURIComponent(N)}function St(N){return Ft(N.replace(/\+/g,"%20"))}function wt(N){return`${Dt(N.path)}${function Xt(N){return Object.keys(N).map(J=>`;${Dt(J)}=${Dt(N[J])}`).join("")}(N.parameters)}`}const xe=/^[^\/()?;=#]+/;function Le(N){const J=N.match(xe);return J?J[0]:""}const qe=/^[^=?&#]+/,Jt=/^[^&#]+/;class rn{constructor(J){this.url=J,this.remaining=J}parseRootSegment(){return this.consumeOptional("/"),""===this.remaining||this.peekStartsWith("?")||this.peekStartsWith("#")?new At([],{}):new At([],this.parseChildren())}parseQueryParams(){const J={};if(this.consumeOptional("?"))do{this.parseQueryParam(J)}while(this.consumeOptional("&"));return J}parseFragment(){return this.consumeOptional("#")?decodeURIComponent(this.remaining):null}parseChildren(){if(""===this.remaining)return{};this.consumeOptional("/");const J=[];for(this.peekStartsWith("(")||J.push(this.parseSegment());this.peekStartsWith("/")&&!this.peekStartsWith("//")&&!this.peekStartsWith("/(");)this.capture("/"),J.push(this.parseSegment());let H={};this.peekStartsWith("/(")&&(this.capture("/"),H=this.parseParens(!0));let de={};return this.peekStartsWith("(")&&(de=this.parseParens(!1)),(J.length>0||Object.keys(H).length>0)&&(de[ie]=new At(J,H)),de}parseSegment(){const J=Le(this.remaining);if(""===J&&this.peekStartsWith(";"))throw new t.\u0275RuntimeError(4009,Be);return this.capture(J),new Rt(Ft(J),this.parseMatrixParams())}parseMatrixParams(){const J={};for(;this.consumeOptional(";");)this.parseParam(J);return J}parseParam(J){const H=Le(this.remaining);if(!H)return;this.capture(H);let de="";if(this.consumeOptional("=")){const Pe=Le(this.remaining);Pe&&(de=Pe,this.capture(de))}
1J[Ft(H)]=Ft(de)}parseQueryParam(J){const H=function at(N){const J=N.match(qe);return J?J[0]:""}(this.remaining);if(!H)return;this.capture(H);let de="";if(this.consumeOptional("=")){const Qe=function $t(N){const J=N.match(Jt);return J?J[0]:""}(this.remaining);Qe&&(de=Qe,this.capture(de))}const Pe=St(H),Fe=St(de);if(J.hasOwnProperty(Pe)){let Qe=J[Pe];Array.isArray(Qe)||(Qe=[Qe],J[Pe]=Qe),Qe.push(Fe)}else J[Pe]=Fe}parseParens(J){const H={};for(this.capture("(");!this.consumeOptional(")")&&this.remaining.length>0;){const de=Le(this.remaining),Pe=this.remaining[de.length];if("/"!==Pe&&")"!==Pe&&";"!==Pe)throw new t.\u0275RuntimeError(4010,Be);let Fe;de.indexOf(":")>-1?(Fe=de.slice(0,de.indexOf(":")),this.capture(Fe),this.capture(":")):J&&(Fe=ie);const Qe=this.parseChildren();H[Fe]=1===Object.keys(Qe).length?Qe[ie]:new At([],Qe),this.consumeOptional("//")}return H}peekStartsWith(J){return this.remaining.startsWith(J)}consumeOptional(J){return!!this.peekStartsWith(J)&&(this.remaining=this.remaining.substring(J.length),!0)}capture(J){if(!this.consumeOptional(J))throw new t.\u0275RuntimeError(4011,Be)}}function Wt(N){return N.segments.length>0?new At([],{[ie]:N}):N}function qt(N){const J={};for(const de of Object.keys(N.children)){const Fe=qt(N.children[de]);(Fe.segments.length>0||Fe.hasChildren())&&(J[de]=Fe)}return function un(N){if(1===N.numberOfChildren&&N.children[ie]){const J=N.children[ie];return new At(N.segments.concat(J.segments),J.children)}return N}(new At(N.segments,J))}function dt(N){return N instanceof Tt}const ht=!1;function We(N,J,H,de,Pe){if(0===H.length)return bt(J.root,J.root,J.root,de,Pe);const Fe=function nr(N){if("string"==typeof N[0]&&1===N.length&&"/"===N[0])return new wn(!0,0,N);let J=0,H=!1;const de=N.reduce((Pe,Fe,Qe)=>{if("object"==typeof Fe&&null!=Fe){if(Fe.outlets){const Nt={};return It(Fe.outlets,(fn,Un)=>{Nt[Un]="string"==typeof fn?fn.split("/"):fn}),[...Pe,{outlets:Nt}]}if(Fe.segmentPath)return[...Pe,Fe.segmentPath]}return"string"!=typeof Fe?[...Pe,Fe]:0===Qe?(Fe.split("/").forEach((Nt,fn)=>{0==fn&&"."===Nt||(0==fn&&""===Nt?H=!0:".."===Nt?J++:""!=Nt&&Pe.push(Nt))}),Pe):[...Pe,Fe]},[]);return new wn(H,J,de)}(H);return Fe.toRoot()?bt(J.root,J.root,new At([],{}),de,Pe):function Qe(fn){const Un=function cn(N,J,H,de){if(N.isAbsolute)return new Cn(J.root,!0,0);if(-1===de)return new Cn(H,H===J.root,0);return function Dn(N,J,H){let de=N,Pe=J,Fe=H;for(;Fe>Pe;){if(Fe-=Pe,de=de.parent,!de)throw new t.\u0275RuntimeError(4005,ht&&"Invalid number of '../'");Pe=de.segments.length}return new Cn(de,!1,Pe-Fe)}(H,de+(Ne(N.commands[0])?0:1),N.numberOfDoubleDots)}(Fe,J,N.snapshot?._urlSegment,fn),Hn=Un.processChildren?Rn(Un.segmentGroup,Un.index,Fe.commands):Nn(Un.segmentGroup,Un.index,Fe.commands);return bt(J.root,Un.segmentGroup,Hn,de,Pe)}(N.snapshot?._lastPathIndex)}function Ne(N){return"object"==typeof N&&null!=N&&!N.outlets&&!N.segmentPath}function ze(N){return"object"==typeof N&&null!=N&&N.outlets}function bt(N,J,H,de,Pe){let Qe,Fe={};de&&It(de,(fn,Un)=>{Fe[Un]=Array.isArray(fn)?fn.map(Hn=>`${Hn}`):`${fn}`}),Qe=N===J?H:En(N,J,H);const Nt=Wt(qt(Qe));return new Tt(Nt,Fe,Pe)}function En(N,J,H){const de={};return It(N.children,(Pe,Fe)=>{de[Fe]=Pe===J?H:En(Pe,J,H)}),new At(N.segments,de)}class wn{constructor(J,H,de){if(this.isAbsolute=J,this.numberOfDoubleDots=H,this.commands=de,J&&de.length>0&&Ne(de[0]))throw new t.\u0275RuntimeError(4003,ht&&"Root segment cannot have matrix parameters");const Pe=de.find(ze);if(Pe&&Pe!==Je(de))throw new t.\u0275RuntimeError(4004,ht&&"{outlets:{}} has to be the last command")}toRoot(){return this.isAbsolute&&1===this.commands.length&&"/"==this.commands[0]}}class Cn{constructor(J,H,de){this.segmentGroup=J,this.processChildren=H,this.index=de}}function Nn(N,J,H){if(N||(N=new At([],{})),0===N.segments.length&&N.hasChildren())return Rn(N,J,H);const de=function Jn(N,J,H){let de=0,Pe=J;const Fe={match:!1,pathIndex:0,commandIndex:0};for(;Pe<N.segments.length;){if(de>=H.length)return Fe;const Qe=N.segments[Pe],Nt=H[de];if(ze(Nt))break;const fn=`${Nt}`,Un=de<H.length-1?H[de+1]:null;if(Pe>0&&void 0===fn)break;if(fn&&Un&&"object"==typeof Un&&void 0===Un.outlets){if(!rr(fn,Un,Qe))return Fe;de+=2}else{if(!rr(fn,{},Qe))return Fe;de++}Pe++}return{match:!0,pathIndex:Pe,commandIndex:de}}(N,J,H),Pe=H.slice(de.commandIndex);if(de.match&&de.pathIndex<N.segments.length){const Fe=new At(N.segments.slice(0,de.pathIndex),{});return Fe.children[ie]=new At(N.segments.slice(de.pathIndex),N.children),Rn(Fe,0,Pe)}return de.match&&0===Pe.length?new At(N.segments,{}):de.match&&!N.hasChildren()?zn(N,J,H):de.match?Rn(N,0,Pe):zn(N,J,H)}function Rn(N,J,H){if(0===H.length)return new At(N.segments,{});{const de=function In(N){return ze(N[0])?N[0].outlets:{[ie]:N}}(H),Pe={};
1if(!de[ie]&&N.children[ie]&&1===N.numberOfChildren&&0===N.children[ie].segments.length){const Fe=Rn(N.children[ie],J,H);return new At(N.segments,Fe.children)}return It(de,(Fe,Qe)=>{"string"==typeof Fe&&(Fe=[Fe]),null!==Fe&&(Pe[Qe]=Nn(N.children[Qe],J,Fe))}),It(N.children,(Fe,Qe)=>{void 0===de[Qe]&&(Pe[Qe]=Fe)}),new At(N.segments,Pe)}}function zn(N,J,H){const de=N.segments.slice(0,J);let Pe=0;for(;Pe<H.length;){const Fe=H[Pe];if(ze(Fe)){const fn=ur(Fe.outlets);return new At(de,fn)}if(0===Pe&&Ne(H[0])){de.push(new Rt(N.segments[J].path,Rr(H[0]))),Pe++;continue}const Qe=ze(Fe)?Fe.outlets[ie]:`${Fe}`,Nt=Pe<H.length-1?H[Pe+1]:null;Qe&&Nt&&Ne(Nt)?(de.push(new Rt(Qe,Rr(Nt))),Pe+=2):(de.push(new Rt(Qe,{})),Pe++)}return new At(de,{})}function ur(N){const J={};return It(N,(H,de)=>{"string"==typeof H&&(H=[H]),null!==H&&(J[de]=zn(new At([],{}),0,H))}),J}function Rr(N){const J={};return It(N,(H,de)=>J[de]=`${H}`),J}function rr(N,J,H){return N==H.path&&Me(J,H.parameters)}const Mr="imperative";class Mn{constructor(J,H){this.id=J,this.url=H}}class Xn extends Mn{constructor(J,H,de="imperative",Pe=null){super(J,H),this.type=0,this.navigationTrigger=de,this.restoredState=Pe}toString(){return`NavigationStart(id: ${this.id}, url: '${this.url}')`}}class cr extends Mn{constructor(J,H,de){super(J,H),this.urlAfterRedirects=de,this.type=1}toString(){return`NavigationEnd(id: ${this.id}, url: '${this.url}', urlAfterRedirects: '${this.urlAfterRedirects}')`}}class Qr extends Mn{constructor(J,H,de,Pe){super(J,H),this.reason=de,this.code=Pe,this.type=2}toString(){return`NavigationCancel(id: ${this.id}, url: '${this.url}')`}}class Xr extends Mn{constructor(J,H,de,Pe){super(J,H),this.reason=de,this.code=Pe,this.type=16}}class wr extends Mn{constructor(J,H,de,Pe){super(J,H),this.error=de,this.target=Pe,this.type=3}toString(){return`NavigationError(id: ${this.id}, url: '${this.url}', error: ${this.error})`}}class ui extends Mn{constructor(J,H,de,Pe){super(J,H),this.urlAfterRedirects=de,this.state=Pe,this.type=4}toString(){return`RoutesRecognized(id: ${this.id}, url: '${this.url}', urlAfterRedirects: '${this.urlAfterRedirects}', state: ${this.state})`}}class Nr extends Mn{constructor(J,H,de,Pe){super(J,H),this.urlAfterRedirects=de,this.state=Pe,this.type=7}toString(){return`GuardsCheckStart(id: ${this.id}, url: '${this.url}', urlAfterRedirects: '${this.urlAfterRedirects}', state: ${this.state})`}}class ii extends Mn{constructor(J,H,de,Pe,Fe){super(J,H),this.urlAfterRedirects=de,this.state=Pe,this.shouldActivate=Fe,this.type=8}toString(){return`GuardsCheckEnd(id: ${this.id}, url: '${this.url}', urlAfterRedirects: '${this.urlAfterRedirects}', state: ${this.state}, shouldActivate: ${this.shouldActivate})`}}class fi extends Mn{constructor(J,H,de,Pe){super(J,H),this.urlAfterRedirects=de,this.state=Pe,this.type=5}toString(){return`ResolveStart(id: ${this.id}, url: '${this.url}', urlAfterRedirects: '${this.urlAfterRedirects}', state: ${this.state})`}}class sr extends Mn{constructor(J,H,de,Pe){super(J,H),this.urlAfterRedirects=de,this.state=Pe,this.type=6}toString(){return`ResolveEnd(id: ${this.id}, url: '${this.url}', urlAfterRedirects: '${this.urlAfterRedirects}', state: ${this.state})`}}class Ai{constructor(J){this.route=J,this.type=9}toString(){return`RouteConfigLoadStart(path: ${this.route.path})`}}class Wr{constructor(J){this.route=J,this.type=10}toString(){return`RouteConfigLoadEnd(path: ${this.route.path})`}}class oi{constructor(J){this.snapshot=J,this.type=11}toString(){return`ChildActivationStart(path: '${this.snapshot.routeConfig&&this.snapshot.routeConfig.path||""}')`}}class Gi{constructor(J){this.snapshot=J,this.type=12}toString(){return`ChildActivationEnd(path: '${this.snapshot.routeConfig&&this.snapshot.routeConfig.path||""}')`}}class Ri{constructor(J){this.snapshot=J,this.type=13}toString(){return`ActivationStart(path: '${this.snapshot.routeConfig&&this.snapshot.routeConfig.path||""}')`}}class Yi{constructor(J){this.snapshot=J,this.type=14}toString(){return`ActivationEnd(path: '${this.snapshot.routeConfig&&this.snapshot.routeConfig.path||""}')`}}class ut{constructor(J,H,de){this.routerEvent=J,this.position=H,this.anchor=de,this.type=15}toString(){return`Scroll(anchor: '${this.anchor}', position: '${this.position?`${this.position[0]}, ${this.position[1]}`:null}')`}}let dn=(()=>{class N{createUrlTree(H,de,Pe,Fe,Qe,Nt){return We(H||de.root,Pe,Fe,Qe,Nt)}}return N.\u0275fac=function(H){return new(H||N)},N.\u0275prov=t.\u0275\u0275defineInjectable({token:N,factory:N.\u0275fac}),N})(),An=(()=>{class N{}return N.\u0275fac=function(H){return new(H||N)},N.\u0275prov=t.\u0275\u0275defineInjectable({token:N,factory:function(J){return dn.\u0275fac(J)},providedIn:"root"}),N})();class Qn{constructor(J){this._root=J}get root(){return this._root.value}
1parent(J){const H=this.pathFromRoot(J);return H.length>1?H[H.length-2]:null}children(J){const H=Cr(J,this._root);return H?H.children.map(de=>de.value):[]}firstChild(J){const H=Cr(J,this._root);return H&&H.children.length>0?H.children[0].value:null}siblings(J){const H=mr(J,this._root);return H.length<2?[]:H[H.length-2].children.map(Pe=>Pe.value).filter(Pe=>Pe!==J)}pathFromRoot(J){return mr(J,this._root).map(H=>H.value)}}function Cr(N,J){if(N===J.value)return J;for(const H of J.children){const de=Cr(N,H);if(de)return de}return null}function mr(N,J){if(N===J.value)return[J];for(const H of J.children){const de=mr(N,H);if(de.length)return de.unshift(J),de}return[]}class Fr{constructor(J,H){this.value=J,this.children=H}toString(){return`TreeNode(${this.value})`}}function Gn(N){const J={};return N&&N.children.forEach(H=>J[H.value.outlet]=H),J}class qn extends Qn{constructor(J,H){super(J),this.snapshot=H,Ko(this,J)}toString(){return this.snapshot.toString()}}function wi(N,J){const H=function mi(N,J){const Qe=new qi([],{},{},"",{},ie,J,null,N.root,-1,{});return new ri("",new Fr(Qe,[]))}(N,J),de=new i.X([new Rt("",{})]),Pe=new i.X({}),Fe=new i.X({}),Qe=new i.X({}),Nt=new i.X(""),fn=new jr(de,Pe,Qe,Nt,Fe,ie,J,H.root);return fn.snapshot=H.root,new qn(new Fr(fn,[]),H)}class jr{constructor(J,H,de,Pe,Fe,Qe,Nt,fn){this.url=J,this.params=H,this.queryParams=de,this.fragment=Pe,this.data=Fe,this.outlet=Qe,this.component=Nt,this.title=this.data?.pipe((0,M.U)(Un=>Un[ne]))??(0,o.of)(void 0),this._futureSnapshot=fn}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,M.U)(J=>oe(J)))),this._paramMap}get queryParamMap(){return this._queryParamMap||(this._queryParamMap=this.queryParams.pipe((0,M.U)(J=>oe(J)))),this._queryParamMap}toString(){return this.snapshot?this.snapshot.toString():`Future(${this._futureSnapshot})`}}function Ao(N,J="emptyOnly"){const H=N.pathFromRoot;let de=0;if("always"!==J)for(de=H.length-1;de>=1;){const Pe=H[de],Fe=H[de-1];if(Pe.routeConfig&&""===Pe.routeConfig.path)de--;else{if(Fe.component)break;de--}}return function vo(N){return N.reduce((J,H)=>({params:{...J.params,...H.params},data:{...J.data,...H.data},resolve:{...H.data,...J.resolve,...H.routeConfig?.data,...H._resolvedData}}),{params:{},data:{},resolve:{}})}(H.slice(de))}class qi{get title(){return this.data?.[ne]}constructor(J,H,de,Pe,Fe,Qe,Nt,fn,Un,Hn,Tr){this.url=J,this.params=H,this.queryParams=de,this.fragment=Pe,this.data=Fe,this.outlet=Qe,this.component=Nt,this.routeConfig=fn,this._urlSegment=Un,this._lastPathIndex=Hn,this._resolve=Tr}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=oe(this.params)),this._paramMap}get queryParamMap(){return this._queryParamMap||(this._queryParamMap=oe(this.queryParams)),this._queryParamMap}toString(){return`Route(url:'${this.url.map(de=>de.toString()).join("/")}', path:'${this.routeConfig?this.routeConfig.path:""}')`}}class ri extends Qn{constructor(J,H){super(H),this.url=J,Ko(this,H)}toString(){return Eo(this._root)}}function Ko(N,J){J.value._routerState=N,J.children.forEach(H=>Ko(N,H))}function Eo(N){const J=N.children.length>0?` { ${N.children.map(Eo).join(", ")} } `:"";return`${N.value}${J}`}function Vo(N){if(N.snapshot){const J=N.snapshot,H=N._futureSnapshot;N.snapshot=H,Me(J.queryParams,H.queryParams)||N.queryParams.next(H.queryParams),J.fragment!==H.fragment&&N.fragment.next(H.fragment),Me(J.params,H.params)||N.params.next(H.params),function ye(N,J){if(N.length!==J.length)return!1;for(let H=0;H<N.length;++H)if(!Me(N[H],J[H]))return!1;return!0}(J.url,H.url)||N.url.next(H.url),Me(J.data,H.data)||N.data.next(H.data)}else N.snapshot=N._futureSnapshot,N.data.next(N._futureSnapshot.data)}function eo(N,J){const H=Me(N.params,J.params)&&function Pt(N,J){return xt(N,J)&&N.every((H,de)=>Me(H.parameters,J[de].parameters))}(N.url,J.url);return H&&!(!N.parent!=!J.parent)&&(!N.parent||eo(N.parent,J.parent))}function $o(N,J,H){if(H&&N.shouldReuseRoute(J.value,H.value.snapshot)){const de=H.value;de._futureSnapshot=J.value;const Pe=function yo(N,J,H){return J.children.map(de=>{for(const Pe of H.children)if(N.shouldReuseRoute(de.value,Pe.value.snapshot))return $o(N,de,Pe);return $o(N,de)})}(N,J,H);return new Fr(de,Pe)}{if(N.shouldAttach(J.value)){const Fe=N.retrieve(J.value);if(null!==Fe){const Qe=Fe.route;return Qe.value._futureSnapshot=J.value,Qe.children=J.children.map(Nt=>$o(N,Nt)),Qe}}const de=function _i(N){return new jr(new i.X(N.url),new i.X(N.params),new i.X(N.queryParams),new i.X(N.fragment),new i.X(N.data),N.outlet,N.component,N)}(J.value),Pe=J.children.map(Fe=>$o(N,Fe));return new Fr(de,Pe)}}const Ho="ngNavigationCancelingError";function _s(N,J){const{redirectTo:H,navigationBehaviorOptions:de}=dt(J)?{redirectTo:J,navigationBehaviorOptions:void 0}:J,Pe=ho(!1,0,J);return Pe.url=H,Pe.navigationBehaviorOptions=de,Pe}function ho(N,J,H){const de=new Error("NavigationCancelingError: "+(N||""));
1return de[Ho]=!0,de.cancellationCode=J,H&&(de.url=H),de}function to(N){return ds(N)&&dt(N.url)}function ds(N){return N&&N[Ho]}class Ds{constructor(){this.outlet=null,this.route=null,this.resolver=null,this.injector=null,this.children=new Co,this.attachRef=null}}let Co=(()=>{class N{constructor(){this.contexts=new Map}onChildOutletCreated(H,de){const Pe=this.getOrCreateContext(H);Pe.outlet=de,this.contexts.set(H,Pe)}onChildOutletDestroyed(H){const de=this.getContext(H);de&&(de.outlet=null,de.attachRef=null)}onOutletDeactivated(){const H=this.contexts;return this.contexts=new Map,H}onOutletReAttached(H){this.contexts=H}getOrCreateContext(H){let de=this.getContext(H);return de||(de=new Ds,this.contexts.set(H,de)),de}getContext(H){return this.contexts.get(H)||null}}return N.\u0275fac=function(H){return new(H||N)},N.\u0275prov=t.\u0275\u0275defineInjectable({token:N,factory:N.\u0275fac,providedIn:"root"}),N})();const Po=!1;let fo=(()=>{class N{constructor(){this.activated=null,this._activatedRoute=null,this.name=ie,this.activateEvents=new t.EventEmitter,this.deactivateEvents=new t.EventEmitter,this.attachEvents=new t.EventEmitter,this.detachEvents=new t.EventEmitter,this.parentContexts=(0,t.inject)(Co),this.location=(0,t.inject)(t.ViewContainerRef),this.changeDetector=(0,t.inject)(t.ChangeDetectorRef),this.environmentInjector=(0,t.inject)(t.EnvironmentInjector)}ngOnChanges(H){if(H.name){const{firstChange:de,previousValue:Pe}=H.name;if(de)return;this.isTrackedInParentContexts(Pe)&&(this.deactivate(),this.parentContexts.onChildOutletDestroyed(Pe)),this.initializeOutletWithName()}}ngOnDestroy(){this.isTrackedInParentContexts(this.name)&&this.parentContexts.onChildOutletDestroyed(this.name)}isTrackedInParentContexts(H){return this.parentContexts.getContext(H)?.outlet===this}ngOnInit(){this.initializeOutletWithName()}initializeOutletWithName(){if(this.parentContexts.onChildOutletCreated(this.name,this),this.activated)return;const H=this.parentContexts.getContext(this.name);H?.route&&(H.attachRef?this.attach(H.attachRef,H.route):this.activateWith(H.route,H.injector))}get isActivated(){return!!this.activated}get component(){if(!this.activated)throw new t.\u0275RuntimeError(4012,Po);return this.activated.instance}get activatedRoute(){if(!this.activated)throw new t.\u0275RuntimeError(4012,Po);return this._activatedRoute}get activatedRouteData(){return this._activatedRoute?this._activatedRoute.snapshot.data:{}}detach(){if(!this.activated)throw new t.\u0275RuntimeError(4012,Po);this.location.detach();const H=this.activated;return this.activated=null,this._activatedRoute=null,this.detachEvents.emit(H.instance),H}attach(H,de){this.activated=H,this._activatedRoute=de,this.location.insert(H.hostView),this.attachEvents.emit(H.instance)}deactivate(){if(this.activated){const H=this.component;this.activated.destroy(),this.activated=null,this._activatedRoute=null,this.deactivateEvents.emit(H)}}activateWith(H,de){if(this.isActivated)throw new t.\u0275RuntimeError(4013,Po);this._activatedRoute=H;const Pe=this.location,Qe=H.snapshot.component,Nt=this.parentContexts.getOrCreateContext(this.name).children,fn=new mo(H,Nt,Pe.injector);if(de&&function ft(N){return!!N.resolveComponentFactory}(de)){const Un=de.resolveComponentFactory(Qe);this.activated=Pe.createComponent(Un,Pe.length,fn)}else this.activated=Pe.createComponent(Qe,{index:Pe.length,injector:fn,environmentInjector:de??this.environmentInjector});this.changeDetector.markForCheck(),this.activateEvents.emit(this.activated.instance)}}return N.\u0275fac=function(H){return new(H||N)},N.\u0275dir=t.\u0275\u0275defineDirective({type:N,selectors:[["router-outlet"]],inputs:{name:"name"},outputs:{activateEvents:"activate",deactivateEvents:"deactivate",attachEvents:"attach",detachEvents:"detach"},exportAs:["outlet"],standalone:!0,features:[t.\u0275\u0275NgOnChangesFeature]}),N})();class mo{constructor(J,H,de){this.route=J,this.childContexts=H,this.parent=de}get(J,H){return J===jr?this.route:J===Co?this.childContexts:this.parent.get(J,H)}}let _n=(()=>{class N{}return N.\u0275fac=function(H){return new(H||N)},N.\u0275cmp=t.\u0275\u0275defineComponent({type:N,selectors:[["ng-component"]],standalone:!0,features:[t.\u0275\u0275StandaloneFeature],decls:1,vars:0,template:function(H,de){1&H&&t.\u0275\u0275element(0,"router-outlet")},dependencies:[fo],encapsulation:2}),N})();function Re(N,J){return N.providers&&!N._injector&&(N._injector=(0,t.createEnvironmentInjector)(N.providers,J,`Route: ${N.path}`)),N._injector??J}function Fi(N){const J=N.children&&N.children.map(Fi),H=J?{...N,children:J}:{...N};return!H.component&&!H.loadComponent&&(J||H.loadChildren)&&H.outlet&&H.outlet!==ie&&(H.component=_n),H}function si(N){return N.outlet||ie}function Do(N,J){const H=N.filter(de=>si(de)===J);return H.push(...N.filter(de=>si(de)!==J)),H}function Si(N){if(!N)return null;
1if(N.routeConfig?._injector)return N.routeConfig._injector;for(let J=N.parent;J;J=J.parent){const H=J.routeConfig;if(H?._loadedInjector)return H._loadedInjector;if(H?._injector)return H._injector}return null}class ao{constructor(J,H,de,Pe){this.routeReuseStrategy=J,this.futureState=H,this.currState=de,this.forwardEvent=Pe}activate(J){const H=this.futureState._root,de=this.currState?this.currState._root:null;this.deactivateChildRoutes(H,de,J),Vo(this.futureState.root),this.activateChildRoutes(H,de,J)}deactivateChildRoutes(J,H,de){const Pe=Gn(H);J.children.forEach(Fe=>{const Qe=Fe.value.outlet;this.deactivateRoutes(Fe,Pe[Qe],de),delete Pe[Qe]}),It(Pe,(Fe,Qe)=>{this.deactivateRouteAndItsChildren(Fe,de)})}deactivateRoutes(J,H,de){const Pe=J.value,Fe=H?H.value:null;if(Pe===Fe)if(Pe.component){const Qe=de.getContext(Pe.outlet);Qe&&this.deactivateChildRoutes(J,H,Qe.children)}else this.deactivateChildRoutes(J,H,de);else Fe&&this.deactivateRouteAndItsChildren(H,de)}deactivateRouteAndItsChildren(J,H){J.value.component&&this.routeReuseStrategy.shouldDetach(J.value.snapshot)?this.detachAndStoreRouteSubtree(J,H):this.deactivateRouteAndOutlet(J,H)}detachAndStoreRouteSubtree(J,H){const de=H.getContext(J.value.outlet),Pe=de&&J.value.component?de.children:H,Fe=Gn(J);for(const Qe of Object.keys(Fe))this.deactivateRouteAndItsChildren(Fe[Qe],Pe);if(de&&de.outlet){const Qe=de.outlet.detach(),Nt=de.children.onOutletDeactivated();this.routeReuseStrategy.store(J.value.snapshot,{componentRef:Qe,route:J,contexts:Nt})}}deactivateRouteAndOutlet(J,H){const de=H.getContext(J.value.outlet),Pe=de&&J.value.component?de.children:H,Fe=Gn(J);for(const Qe of Object.keys(Fe))this.deactivateRouteAndItsChildren(Fe[Qe],Pe);de&&(de.outlet&&(de.outlet.deactivate(),de.children.onOutletDeactivated()),de.attachRef=null,de.resolver=null,de.route=null)}activateChildRoutes(J,H,de){const Pe=Gn(H);J.children.forEach(Fe=>{this.activateRoutes(Fe,Pe[Fe.value.outlet],de),this.forwardEvent(new Yi(Fe.value.snapshot))}),J.children.length&&this.forwardEvent(new Gi(J.value.snapshot))}activateRoutes(J,H,de){const Pe=J.value,Fe=H?H.value:null;if(Vo(Pe),Pe===Fe)if(Pe.component){const Qe=de.getOrCreateContext(Pe.outlet);this.activateChildRoutes(J,H,Qe.children)}else this.activateChildRoutes(J,H,de);else if(Pe.component){const Qe=de.getOrCreateContext(Pe.outlet);if(this.routeReuseStrategy.shouldAttach(Pe.snapshot)){const Nt=this.routeReuseStrategy.retrieve(Pe.snapshot);this.routeReuseStrategy.store(Pe.snapshot,null),Qe.children.onOutletReAttached(Nt.contexts),Qe.attachRef=Nt.componentRef,Qe.route=Nt.route.value,Qe.outlet&&Qe.outlet.attach(Nt.componentRef,Nt.route.value),Vo(Nt.route.value),this.activateChildRoutes(J,null,Qe.children)}else{const Nt=Si(Pe.snapshot),fn=Nt?.get(t.ComponentFactoryResolver)??null;Qe.attachRef=null,Qe.route=Pe,Qe.resolver=fn,Qe.injector=Nt,Qe.outlet&&Qe.outlet.activateWith(Pe,Qe.injector),this.activateChildRoutes(J,null,Qe.children)}}else this.activateChildRoutes(J,null,de)}}class Ii{constructor(J){this.path=J,this.route=this.path[this.path.length-1]}}class Oi{constructor(J,H){this.component=J,this.route=H}}function ko(N,J,H){const de=N._root;return So(de,J?J._root:null,H,[de.value])}function bo(N,J){const H=Symbol(),de=J.get(N,H);return de===H?"function"!=typeof N||(0,t.\u0275isInjectable)(N)?J.get(N):N:de}function So(N,J,H,de,Pe={canDeactivateChecks:[],canActivateChecks:[]}){const Fe=Gn(J);return N.children.forEach(Qe=>{(function Oo(N,J,H,de,Pe={canDeactivateChecks:[],canActivateChecks:[]}){const Fe=N.value,Qe=J?J.value:null,Nt=H?H.getContext(N.value.outlet):null;if(Qe&&Fe.routeConfig===Qe.routeConfig){const fn=function Ni(N,J,H){if("function"==typeof H)return H(N,J);switch(H){case"pathParamsChange":return!xt(N.url,J.url);case"pathParamsOrQueryParamsChange":return!xt(N.url,J.url)||!Me(N.queryParams,J.queryParams);case"always":return!0;case"paramsOrQueryParamsChange":return!eo(N,J)||!Me(N.queryParams,J.queryParams);default:return!eo(N,J)}}(Qe,Fe,Fe.routeConfig.runGuardsAndResolvers);fn?Pe.canActivateChecks.push(new Ii(de)):(Fe.data=Qe.data,Fe._resolvedData=Qe._resolvedData),So(N,J,Fe.component?Nt?Nt.children:null:H,de,Pe),fn&&Nt&&Nt.outlet&&Nt.outlet.isActivated&&Pe.canDeactivateChecks.push(new Oi(Nt.outlet.component,Qe))}else Qe&&xo(J,Nt,Pe),Pe.canActivateChecks.push(new Ii(de)),So(N,null,Fe.component?Nt?Nt.children:null:H,de,Pe)})(Qe,Fe[Qe.value.outlet],H,de.concat([Qe.value]),Pe),delete Fe[Qe.value.outlet]}),It(Fe,(Qe,Nt)=>xo(Qe,H.getContext(Nt),Pe)),Pe}function xo(N,J,H){const de=Gn(N),Pe=N.value;It(de,(Fe,Qe)=>{xo(Fe,Pe.component?J?J.children.getContext(Qe):null:J,H)}),H.canDeactivateChecks.push(new Oi(Pe.component&&J&&J.outlet&&J.outlet.isActivated?J.outlet.component:null,Pe))}function Li(N){return"function"==typeof N}function W(N){return N instanceof d.K||"EmptyError"===N?.name}const De=Symbol("INITIAL_VALUE");function et(){return(0,P.w)(N=>(0,r.a)(N.map(J=>J.pipe((0,D.q)(1),(0,l.O)(De)))).pipe((0,M.U)(J=>{for(const H of J)if(!0!==H){if(H===De)return De;if(!1===H||H instanceof Tt)return H}return!0}),(0,C.h)(J=>J!==De),(0,D.q)(1)))}function lo(N){return(0,h.z)((0,L.b)(J=>{if(dt(J))throw _s(0,J)}),(0,M.U)(J=>!0===J))}const Go={matched:!1,consumedSegments:[],remainingSegments:[],parameters:{},positionalParamSegments:{}};function gs(N,J,H,de,Pe){const Fe=$s(N,J,H);return Fe.matched?function na(N,J,H,de){const Pe=J.canMatch;if(!Pe||0===Pe.length)return(0,o.of)(!0);const Fe=Pe.map(Qe=>{const Nt=bo(Qe,N);return it(function zr(N){return N&&Li(N.canMatch)}(Nt)?Nt.canMatch(J,H):N.runInContext(()=>Nt(J,H)))});return(0,o.of)(Fe).pipe(et(),lo())}(de=Re(J,de),J,H).pipe((0,M.U)(Qe=>!0===Qe?Fe:{...Go})):(0,o.of)(Fe)}function $s(N,J,H){if(""===J.path)return"full"===J.pathMatch&&(N.hasChildren()||H.length>0)?{...Go}:{matched:!0,consumedSegments:[],remainingSegments:H,parameters:{},positionalParamSegments:{}};const Pe=(J.matcher||ce)(H,N,J);if(!Pe)return{...Go};const Fe={};It(Pe.posParams,(Nt,fn)=>{Fe[fn]=Nt.path});const Qe=Pe.consumed.length>0?{...Fe,...Pe.consumed[Pe.consumed.length-1].parameters}:Fe;return{matched:!0,consumedSegments:Pe.consumed,remainingSegments:H.slice(Pe.consumed.length),parameters:Qe,positionalParamSegments:Pe.posParams??{}}}function ji(N,J,H,de){if(H.length>0&&function is(N,J,H){return H.some(de=>Bi(N,J,de)&&si(de)!==ie)}(N,H,de)){const Fe=new At(J,function ki(N,J,H,de){const Pe={};Pe[ie]=de,de._sourceSegment=N,de._segmentIndexShift=J.length;for(const Fe of H)if(""===Fe.path&&si(Fe)!==ie){const Qe=new At([],{});Qe._sourceSegment=N,Qe._segmentIndexShift=J.length,Pe[si(Fe)]=Qe}return Pe}(N,J,de,new At(H,N.children)));return Fe._sourceSegment=N,Fe._segmentIndexShift=J.length,{segmentGroup:Fe,slicedSegments:[]}}if(0===H.length&&function Bo(N,J,H){return H.some(de=>Bi(N,J,de))}(N,H,de)){const Fe=new At(N.segments,function Wi(N,J,H,de,Pe){const Fe={};
1for(const Qe of de)if(Bi(N,H,Qe)&&!Pe[si(Qe)]){const Nt=new At([],{});Nt._sourceSegment=N,Nt._segmentIndexShift=J.length,Fe[si(Qe)]=Nt}return{...Pe,...Fe}}(N,J,H,de,N.children));return Fe._sourceSegment=N,Fe._segmentIndexShift=J.length,{segmentGroup:Fe,slicedSegments:H}}const Pe=new At(N.segments,N.children);return Pe._sourceSegment=N,Pe._segmentIndexShift=J.length,{segmentGroup:Pe,slicedSegments:H}}function Bi(N,J,H){return(!(N.hasChildren()||J.length>0)||"full"!==H.pathMatch)&&""===H.path}function os(N,J,H,de){return!!(si(N)===de||de!==ie&&Bi(J,H,N))&&("**"===N.path||$s(J,N,H).matched)}function Js(N,J,H){return 0===J.length&&!N.children[H]}const _r=!1;class ei{constructor(J){this.segmentGroup=J||null}}class no{constructor(J){this.urlTree=J}}function er(N){return(0,m._)(new ei(N))}function qs(N){return(0,m._)(new no(N))}class Hs{constructor(J,H,de,Pe,Fe){this.injector=J,this.configLoader=H,this.urlSerializer=de,this.urlTree=Pe,this.config=Fe,this.allowRedirects=!0}apply(){const J=ji(this.urlTree.root,[],[],this.config).segmentGroup,H=new At(J.segments,J.children);return this.expandSegmentGroup(this.injector,this.config,H,ie).pipe((0,M.U)(Fe=>this.createUrlTree(qt(Fe),this.urlTree.queryParams,this.urlTree.fragment))).pipe((0,V.K)(Fe=>{if(Fe instanceof no)return this.allowRedirects=!1,this.match(Fe.urlTree);throw Fe instanceof ei?this.noMatchError(Fe):Fe}))}match(J){return this.expandSegmentGroup(this.injector,this.config,J.root,ie).pipe((0,M.U)(Pe=>this.createUrlTree(qt(Pe),J.queryParams,J.fragment))).pipe((0,V.K)(Pe=>{throw Pe instanceof ei?this.noMatchError(Pe):Pe}))}noMatchError(J){return new t.\u0275RuntimeError(4002,_r)}createUrlTree(J,H,de){const Pe=Wt(J);return new Tt(Pe,H,de)}expandSegmentGroup(J,H,de,Pe){return 0===de.segments.length&&de.hasChildren()?this.expandChildren(J,H,de).pipe((0,M.U)(Fe=>new At([],Fe))):this.expandSegment(J,de,H,de.segments,Pe,!0)}expandChildren(J,H,de){const Pe=[];for(const Fe of Object.keys(de.children))"primary"===Fe?Pe.unshift(Fe):Pe.push(Fe);return(0,n.D)(Pe).pipe((0,B.b)(Fe=>{const Qe=de.children[Fe],Nt=Do(H,Fe);return this.expandSegmentGroup(J,Nt,Qe,Fe).pipe((0,M.U)(fn=>({segment:fn,outlet:Fe})))}),(0,Y.R)((Fe,Qe)=>(Fe[Qe.outlet]=Qe.segment,Fe),{}),(0,X.Z)())}expandSegment(J,H,de,Pe,Fe,Qe){return(0,n.D)(de).pipe((0,B.b)(Nt=>this.expandSegmentAgainstRoute(J,H,de,Nt,Pe,Fe,Qe).pipe((0,V.K)(Un=>{if(Un instanceof ei)return(0,o.of)(null);throw Un}))),(0,g.P)(Nt=>!!Nt),(0,V.K)((Nt,fn)=>{if(W(Nt))return Js(H,Pe,Fe)?(0,o.of)(new At([],{})):er(H);throw Nt}))}expandSegmentAgainstRoute(J,H,de,Pe,Fe,Qe,Nt){return os(Pe,H,Fe,Qe)?void 0===Pe.redirectTo?this.matchSegmentAgainstRoute(J,H,Pe,Fe,Qe):Nt&&this.allowRedirects?this.expandSegmentAgainstRouteUsingRedirect(J,H,de,Pe,Fe,Qe):er(H):er(H)}expandSegmentAgainstRouteUsingRedirect(J,H,de,Pe,Fe,Qe){return"**"===Pe.path?this.expandWildCardWithParamsAgainstRouteUsingRedirect(J,de,Pe,Qe):this.expandRegularSegmentAgainstRouteUsingRedirect(J,H,de,Pe,Fe,Qe)}expandWildCardWithParamsAgainstRouteUsingRedirect(J,H,de,Pe){const Fe=this.applyRedirectCommands([],de.redirectTo,{});return de.redirectTo.startsWith("/")?qs(Fe):this.lineralizeSegments(de,Fe).pipe((0,I.z)(Qe=>{const Nt=new At(Qe,{});return this.expandSegment(J,Nt,H,Qe,Pe,!1)}))}expandRegularSegmentAgainstRouteUsingRedirect(J,H,de,Pe,Fe,Qe){const{matched:Nt,consumedSegments:fn,remainingSegments:Un,positionalParamSegments:Hn}=$s(H,Pe,Fe);if(!Nt)return er(H);const Tr=this.applyRedirectCommands(fn,Pe.redirectTo,Hn);return Pe.redirectTo.startsWith("/")?qs(Tr):this.lineralizeSegments(Pe,Tr).pipe((0,I.z)(Er=>this.expandSegment(J,H,de,Er.concat(Un),Qe,!1)))}matchSegmentAgainstRoute(J,H,de,Pe,Fe){return"**"===de.path?(J=Re(de,J),de.loadChildren?(de._loadedRoutes?(0,o.of)({routes:de._loadedRoutes,injector:de._loadedInjector}):this.configLoader.loadChildren(J,de)).pipe((0,M.U)(Nt=>(de._loadedRoutes=Nt.routes,de._loadedInjector=Nt.injector,new At(Pe,{})))):(0,o.of)(new At(Pe,{}))):gs(H,de,Pe,J).pipe((0,P.w)(({matched:Qe,consumedSegments:Nt,remainingSegments:fn})=>Qe?this.getChildConfig(J=de._injector??J,de,Pe).pipe((0,I.z)(Hn=>{const Tr=Hn.injector??J,Er=Hn.routes,{segmentGroup:Ci,slicedSegments:po}=ji(H,Nt,fn,Er),jo=new At(Ci.segments,Ci.children);if(0===po.length&&jo.hasChildren())return this.expandChildren(Tr,Er,jo).pipe((0,M.U)(Us=>new At(Nt,Us)));if(0===Er.length&&0===po.length)return(0,o.of)(new At(Nt,{}));const ni=si(de)===Fe;return this.expandSegment(Tr,jo,Er,po,ni?ie:Fe,!0).pipe((0,M.U)(Na=>new At(Nt.concat(Na.segments),Na.children)))})):er(H)))}getChildConfig(J,H,de){return H.children?(0,o.of)({routes:H.children,injector:J}):H.loadChildren?void 0!==H._loadedRoutes?(0,o.of)({routes:H._loadedRoutes,injector:H._loadedInjector}):function Vs(N,J,H,de){const Pe=J.canLoad;if(void 0===Pe||0===Pe.length)return(0,o.of)(!0);const Fe=Pe.map(Qe=>{const Nt=bo(Qe,N);return it(function zo(N){return N&&Li(N.canLoad)}(Nt)?Nt.canLoad(J,H):N.runInContext(()=>Nt(J,H)))});return(0,o.of)(Fe).pipe(et(),lo())}(J,H,de).pipe((0,I.z)(Pe=>Pe?this.configLoader.loadChildren(J,H).pipe((0,L.b)(Fe=>{H._loadedRoutes=Fe.routes,H._loadedInjector=Fe.injector})):function Uo(N){return(0,m._)(ho(_r,3))}())):(0,o.of)({routes:[],injector:J})}lineralizeSegments(J,H){let de=[],Pe=H.root;for(;;){if(de=de.concat(Pe.segments),0===Pe.numberOfChildren)return(0,o.of)(de);if(Pe.numberOfChildren>1||!Pe.children[ie])return J.redirectTo,(0,m._)(new t.\u0275RuntimeError(4e3,_r));Pe=Pe.children[ie]}}applyRedirectCommands(J,H,de){return this.applyRedirectCreateUrlTree(H,this.urlSerializer.parse(H),J,de)}applyRedirectCreateUrlTree(J,H,de,Pe){const Fe=this.createSegmentGroup(J,H.root,de,Pe);return new Tt(Fe,this.createQueryParams(H.queryParams,this.urlTree.queryParams),H.fragment)}createQueryParams(J,H){const de={};return It(J,(Pe,Fe)=>{if("string"==typeof Pe&&Pe.startsWith(":")){const Nt=Pe.substring(1);de[Fe]=H[Nt]}else de[Fe]=Pe}),de}createSegmentGroup(J,H,de,Pe){const Fe=this.createSegments(J,H.segments,de,Pe);let Qe={};return It(H.children,(Nt,fn)=>{Qe[fn]=this.createSegmentGroup(J,Nt,de,Pe)}),new At(Fe,Qe)}createSegments(J,H,de,Pe){return H.map(Fe=>Fe.path.startsWith(":")?this.findPosParam(J,Fe,Pe):this.findOrReturn(Fe,de))}findPosParam(J,H,de){const Pe=de[H.path.substring(1)];if(!Pe)throw new t.\u0275RuntimeError(4001,_r);return Pe}findOrReturn(J,H){let de=0;for(const Pe of H){if(Pe.path===J.path)return H.splice(de),Pe;de++}return J}}class ss{}class zs{constructor(J,H,de,Pe,Fe,Qe,Nt){this.injector=J,this.rootComponentType=H,this.config=de,this.urlTree=Pe,this.url=Fe,this.paramsInheritanceStrategy=Qe,this.urlSerializer
1=Nt}recognize(){const J=ji(this.urlTree.root,[],[],this.config.filter(H=>void 0===H.redirectTo)).segmentGroup;return this.processSegmentGroup(this.injector,this.config,J,ie).pipe((0,M.U)(H=>{if(null===H)return null;const de=new qi([],Object.freeze({}),Object.freeze({...this.urlTree.queryParams}),this.urlTree.fragment,{},ie,this.rootComponentType,null,this.urlTree.root,-1,{}),Pe=new Fr(de,H),Fe=new ri(this.url,Pe);return this.inheritParamsAndData(Fe._root),Fe}))}inheritParamsAndData(J){const H=J.value,de=Ao(H,this.paramsInheritanceStrategy);H.params=Object.freeze(de.params),H.data=Object.freeze(de.data),J.children.forEach(Pe=>this.inheritParamsAndData(Pe))}processSegmentGroup(J,H,de,Pe){return 0===de.segments.length&&de.hasChildren()?this.processChildren(J,H,de):this.processSegment(J,H,de,de.segments,Pe)}processChildren(J,H,de){return(0,n.D)(Object.keys(de.children)).pipe((0,B.b)(Pe=>{const Fe=de.children[Pe],Qe=Do(H,Pe);return this.processSegmentGroup(J,Qe,Fe,Pe)}),(0,Y.R)((Pe,Fe)=>Pe&&Fe?(Pe.push(...Fe),Pe):null),(0,te.o)(Pe=>null!==Pe),(0,K.d)(null),(0,X.Z)(),(0,M.U)(Pe=>{if(null===Pe)return null;const Fe=gi(Pe);return function Ea(N){N.sort((J,H)=>J.value.outlet===ie?-1:H.value.outlet===ie?1:J.value.outlet.localeCompare(H.value.outlet))}(Fe),Fe}))}processSegment(J,H,de,Pe,Fe){return(0,n.D)(H).pipe((0,B.b)(Qe=>this.processSegmentAgainstRoute(Qe._injector??J,Qe,de,Pe,Fe)),(0,g.P)(Qe=>!!Qe),(0,V.K)(Qe=>{if(W(Qe))return Js(de,Pe,Fe)?(0,o.of)([]):(0,o.of)(null);throw Qe}))}processSegmentAgainstRoute(J,H,de,Pe,Fe){if(H.redirectTo||!os(H,de,Pe,Fe))return(0,o.of)(null);let Qe;if("**"===H.path){const Nt=Pe.length>0?Je(Pe).parameters:{},fn=Gs(de)+Pe.length,Un=new qi(Pe,Nt,Object.freeze({...this.urlTree.queryParams}),this.urlTree.fragment,wo(H),si(H),H.component??H._loadedComponent??null,H,Ps(de),fn,ea(H));Qe=(0,o.of)({snapshot:Un,consumedSegments:[],remainingSegments:[]})}else Qe=gs(de,H,Pe,J).pipe((0,M.U)(({matched:Nt,consumedSegments:fn,remainingSegments:Un,parameters:Hn})=>{if(!Nt)return null;const Tr=Gs(de)+fn.length;return{snapshot:new qi(fn,Hn,Object.freeze({...this.urlTree.queryParams}),this.urlTree.fragment,wo(H),si(H),H.component??H._loadedComponent??null,H,Ps(de),Tr,ea(H)),consumedSegments:fn,remainingSegments:Un}}));return Qe.pipe((0,P.w)(Nt=>{if(null===Nt)return(0,o.of)(null);const{snapshot:fn,consumedSegments:Un,remainingSegments:Hn}=Nt;J=H._injector??J;const Tr=H._loadedInjector??J,Er=function ro(N){return N.children?N.children:N.loadChildren?N._loadedRoutes:[]}(H),{segmentGroup:Ci,slicedSegments:po}=ji(de,Un,Hn,Er.filter(ni=>void 0===ni.redirectTo));if(0===po.length&&Ci.hasChildren())return this.processChildren(Tr,Er,Ci).pipe((0,M.U)(ni=>null===ni?null:[new Fr(fn,ni)]));if(0===Er.length&&0===po.length)return(0,o.of)([new Fr(fn,[])]);const jo=si(H)===Fe;return this.processSegment(Tr,Er,Ci,po,jo?ie:Fe).pipe((0,M.U)(ni=>null===ni?null:[new Fr(fn,ni)]))}))}}function ti(N){const J=N.value.routeConfig;return J&&""===J.path&&void 0===J.redirectTo}function gi(N){const J=[],H=new Set;for(const de of N){if(!ti(de)){J.push(de);continue}const Pe=J.find(Fe=>de.value.routeConfig===Fe.value.routeConfig);void 0!==Pe?(Pe.children.push(...de.children),H.add(Pe)):J.push(de)}for(const de of H){const Pe=gi(de.children);J.push(new Fr(de.value,Pe))}return J.filter(de=>!H.has(de))}function Ps(N){let J=N;for(;J._sourceSegment;)J=J._sourceSegment;return J}function Gs(N){let J=N,H=J._segmentIndexShift??0;for(;J._sourceSegment;)J=J._sourceSegment,H+=J._segmentIndexShift??0;return H-1}function wo(N){return N.data||{}}function ea(N){return N.resolve||{}}function Ke(N){return"string"==typeof N.title||null===N.title}function yt(N){return(0,P.w)(J=>{const H=N(J);return H?(0,n.D)(H).pipe((0,M.U)(()=>J)):(0,o.of)(J)})}const mn=new t.InjectionToken("ROUTES");let xn=(()=>{class N{constructor(){this.componentLoaders=new WeakMap,this.childrenLoaders=new WeakMap,this.compiler=(0,t.inject)(t.Compiler)}loadComponent(H){if(this.componentLoaders.get(H))return this.componentLoaders.get(H);if(H._loadedComponent)return(0,o.of)(H._loadedComponent);this.onLoadStartListener&&this.onLoadStartListener(H);const de=it(H.loadComponent()).pipe((0,M.U)(Kr),(0,L.b)(Fe=>{this.onLoadEndListener&&this.onLoadEndListener(H),H._loadedComponent=Fe}),(0,Q.x)(()=>{this.componentLoaders.delete(H)})),Pe=new E.c(de,()=>new O.x).pipe((0,j.x)());return this.componentLoaders.set(H,Pe),Pe}loadChildren(H,de){if(this.childrenLoaders.get(de))return this.childrenLoaders.get(de);if(de._loadedRoutes)return(0,o.of)({routes:de._loadedRoutes,injector:de._loadedInjector});this.onLoadStartListener&&this.onLoadStartListener(de);const Fe=this.loadModuleFactoryOrRoutes(de.loadChildren).pipe((0,M.U)(Nt=>{this.onLoadEndListener&&this.onLoadEndListener(de);let fn,Un,Hn=!1;Array.isArray(Nt)?Un=Nt:(fn=Nt.create(H).injector,Un=Ae(fn.get(mn,[],t.InjectFlags.Self|t.InjectFlags.Optional)));return{routes:Un.map(Fi),injector:fn}}),(0,Q.x)(()=>
1{this.childrenLoaders.delete(de)})),Qe=new E.c(Fe,()=>new O.x).pipe((0,j.x)());return this.childrenLoaders.set(de,Qe),Qe}loadModuleFactoryOrRoutes(H){return it(H()).pipe((0,M.U)(Kr),(0,I.z)(de=>de instanceof t.NgModuleFactory||Array.isArray(de)?(0,o.of)(de):(0,n.D)(this.compiler.compileModuleAsync(de))))}}return N.\u0275fac=function(H){return new(H||N)},N.\u0275prov=t.\u0275\u0275defineInjectable({token:N,factory:N.\u0275fac,providedIn:"root"}),N})();function Kr(N){return function Zr(N){return N&&"object"==typeof N&&"default"in N}(N)?N.default:N}let ir=(()=>{class N{get hasRequestedNavigation(){return 0!==this.navigationId}constructor(){this.currentNavigation=null,this.lastSuccessfulNavigation=null,this.events=new O.x,this.configLoader=(0,t.inject)(xn),this.environmentInjector=(0,t.inject)(t.EnvironmentInjector),this.urlSerializer=(0,t.inject)(Ut),this.rootContexts=(0,t.inject)(Co),this.navigationId=0,this.afterPreactivation=()=>(0,o.of)(void 0),this.rootComponentType=null,this.configLoader.onLoadEndListener=Pe=>this.events.next(new Wr(Pe)),this.configLoader.onLoadStartListener=Pe=>this.events.next(new Ai(Pe))}complete(){this.transitions?.complete()}handleNavigationRequest(H){const de=++this.navigationId;this.transitions?.next({...this.transitions.value,...H,id:de})}setupNavigations(H){return this.transitions=new i.X({id:0,targetPageId:0,currentUrlTree:H.currentUrlTree,currentRawUrl:H.currentUrlTree,extractedUrl:H.urlHandlingStrategy.extract(H.currentUrlTree),urlAfterRedirects:H.urlHandlingStrategy.extract(H.currentUrlTree),rawUrl:H.currentUrlTree,extras:{},resolve:null,reject:null,promise:Promise.resolve(!0),source:Mr,restoredState:null,currentSnapshot:H.routerState.snapshot,targetSnapshot:null,currentRouterState:H.routerState,targetRouterState:null,guards:{canActivateChecks:[],canDeactivateChecks:[]},guardsResult:null}),this.transitions.pipe((0,C.h)(de=>0!==de.id),(0,M.U)(de=>({...de,extractedUrl:H.urlHandlingStrategy.extract(de.rawUrl)})),(0,P.w)(de=>{let Pe=!1,Fe=!1;return(0,o.of)(de).pipe((0,L.b)(Qe=>{this.currentNavigation={id:Qe.id,initialUrl:Qe.rawUrl,extractedUrl:Qe.extractedUrl,trigger:Qe.source,extras:Qe.extras,previousNavigation:this.lastSuccessfulNavigation?{...this.lastSuccessfulNavigation,previousNavigation:null}:null}}),(0,P.w)(Qe=>{const Nt=H.browserUrlTree.toString(),fn=!H.navigated||Qe.extractedUrl.toString()!==Nt||Nt!==H.currentUrlTree.toString();if(!fn&&"reload"!==(Qe.extras.onSameUrlNavigation??H.onSameUrlNavigation)){const Hn="";return this.events.next(new Xr(Qe.id,H.serializeUrl(de.rawUrl),Hn,0)),H.rawUrlTree=Qe.rawUrl,Qe.resolve(null),v.E}if(H.urlHandlingStrategy.shouldProcessUrl(Qe.rawUrl))return hi(Qe.source)&&(H.browserUrlTree=Qe.extractedUrl),(0,o.of)(Qe).pipe((0,P.w)(Hn=>{const Tr=this.transitions?.getValue();return this.events.next(new Xn(Hn.id,this.urlSerializer.serialize(Hn.extractedUrl),Hn.source,Hn.restoredState)),Tr!==this.transitions?.getValue()?v.E:Promise.resolve(Hn)}),function ha(N,J,H,de){return(0,P.w)(Pe=>function Ls(N,J,H,de,Pe){return new Hs(N,J,H,de,Pe).apply()}(N,J,H,Pe.extractedUrl,de).pipe((0,M.U)(Fe=>({...Pe,urlAfterRedirects:Fe}))))}(this.environmentInjector,this.configLoader,this.urlSerializer,H.config),(0,L.b)(Hn=>{this.currentNavigation={...this.currentNavigation,finalUrl:Hn.urlAfterRedirects},de.urlAfterRedirects=Hn.urlAfterRedirects}),function Yo(N,J,H,de,Pe){return(0,I.z)(Fe=>function Xi(N,J,H,de,Pe,Fe,Qe="emptyOnly"){return new zs(N,J,H,de,Pe,Qe,Fe).recognize().pipe((0,P.w)(Nt=>null===Nt?function ks(N){return new _.y(J=>J.error(N))}(new ss):(0,o.of)(Nt)))}(N,J,H,Fe.urlAfterRedirects,de.serialize(Fe.urlAfterRedirects),de,Pe).pipe((0,M.U)(Qe=>({...Fe,targetSnapshot:Qe}))))}(this.environmentInjector,this.rootComponentType,H.config,this.urlSerializer,H.paramsInheritanceStrategy),(0,L.b)(Hn=>{if(de.targetSnapshot=Hn.targetSnapshot,"eager"===H.urlUpdateStrategy){if(!Hn.extras.skipLocationChange){const Er=H.urlHandlingStrategy.merge(Hn.urlAfterRedirects,Hn.rawUrl);H.setBrowserUrl(Er,Hn)}H.browserUrlTree=Hn.urlAfterRedirects}const Tr=new ui(Hn.id,this.urlSerializer.serialize(Hn.extractedUrl),this.urlSerializer.serialize(Hn.urlAfterRedirects),Hn.targetSnapshot);this.events.next(Tr)}));if(fn&&H.urlHandlingStrategy.shouldProcessUrl(H.rawUrlTree)){const{id:Hn,extractedUrl:Tr,source:Er,restoredState:Ci,extras:
1po}=Qe,jo=new Xn(Hn,this.urlSerializer.serialize(Tr),Er,Ci);this.events.next(jo);const ni=wi(Tr,this.rootComponentType).snapshot;return de={...Qe,targetSnapshot:ni,urlAfterRedirects:Tr,extras:{...po,skipLocationChange:!1,replaceUrl:!1}},(0,o.of)(de)}{const Hn="";return this.events.next(new Xr(Qe.id,H.serializeUrl(de.extractedUrl),Hn,1)),H.rawUrlTree=Qe.rawUrl,Qe.resolve(null),v.E}}),(0,L.b)(Qe=>{const Nt=new Nr(Qe.id,this.urlSerializer.serialize(Qe.extractedUrl),this.urlSerializer.serialize(Qe.urlAfterRedirects),Qe.targetSnapshot);this.events.next(Nt)}),(0,M.U)(Qe=>de={...Qe,guards:ko(Qe.targetSnapshot,Qe.currentSnapshot,this.rootContexts)}),function kt(N,J){return(0,I.z)(H=>{const{targetSnapshot:de,currentSnapshot:Pe,guards:{canActivateChecks:Fe,canDeactivateChecks:Qe}}=H;return 0===Qe.length&&0===Fe.length?(0,o.of)({...H,guardsResult:!0}):function On(N,J,H,de){return(0,n.D)(N).pipe((0,I.z)(Pe=>function Ks(N,J,H,de,Pe){const Fe=J&&J.routeConfig?J.routeConfig.canDeactivate:null;if(!Fe||0===Fe.length)return(0,o.of)(!0);const Qe=Fe.map(Nt=>{const fn=Si(J)??Pe,Un=bo(Nt,fn);return it(function hr(N){return N&&Li(N.canDeactivate)}(Un)?Un.canDeactivate(N,J,H,de):fn.runInContext(()=>Un(N,J,H,de))).pipe((0,g.P)())});return(0,o.of)(Qe).pipe(et())}(Pe.component,Pe.route,H,J,de)),(0,g.P)(Pe=>!0!==Pe,!0))}(Qe,de,Pe,N).pipe((0,I.z)(Nt=>Nt&&function Os(N){return"boolean"==typeof N}(Nt)?function Bt(N,J,H,de){return(0,n.D)(J).pipe((0,B.b)(Pe=>(0,a.z)(function qr(N,J){return null!==N&&J&&J(new oi(N)),(0,o.of)(!0)}(Pe.route.parent,de),function Fn(N,J){return null!==N&&J&&J(new Ri(N)),(0,o.of)(!0)}(Pe.route,de),function li(N,J,H){const de=J[J.length-1],Fe=J.slice(0,J.length-1).reverse().map(Qe=>function Vr(N){const J=N.routeConfig?N.routeConfig.canActivateChild:null;return J&&0!==J.length?{node:N,guards:J}:null}(Qe)).filter(Qe=>null!==Qe).map(Qe=>(0,p.P)(()=>{const Nt=Qe.guards.map(fn=>{const Un=Si(Qe.node)??H,Hn=bo(fn,Un);return it(function Lo(N){return N&&Li(N.canActivateChild)}(Hn)?Hn.canActivateChild(de,N):Un.runInContext(()=>Hn(de,N))).pipe((0,g.P)())});return(0,o.of)(Nt).pipe(et())}));return(0,o.of)(Fe).pipe(et())}(N,Pe.path,H),function ai(N,J,H){const de=J.routeConfig?J.routeConfig.canActivate:null;if(!de||0===de.length)return(0,o.of)(!0);const Pe=de.map(Fe=>(0,p.P)(()=>{const Qe=Si(J)??H,Nt=bo(Fe,Qe);return it(function xs(N){return N&&Li(N.canActivate)}(Nt)?Nt.canActivate(J,N):Qe.runInContext(()=>Nt(J,N))).pipe((0,g.P)())}));return(0,o.of)(Pe).pipe(et())}(N,Pe.route,H))),(0,g.P)(Pe=>!0!==Pe,!0))}(de,Fe,N,J):(0,o.of)(Nt)),(0,M.U)(Nt=>({...H,guardsResult:Nt})))})}(this.environmentInjector,Qe=>this.events.next(Qe)),(0,L.b)(Qe=>{if(de.guardsResult=Qe.guardsResult,dt(Qe.guardsResult))throw _s(0,Qe.guardsResult);const Nt=new ii(Qe.id,this.urlSerializer.serialize(Qe.extractedUrl),this.urlSerializer.serialize(Qe.urlAfterRedirects),Qe.targetSnapshot,!!Qe.guardsResult);this.events.next(Nt)}),(0,C.h)(Qe=>!!Qe.guardsResult||(H.restoreHistory(Qe),this.cancelNavigationTransition(Qe,"",3),!1)),yt(Qe=>{if(Qe.guards.canActivateChecks.length)return(0,o.of)(Qe).pipe((0,L.b)(Nt=>{const fn=new fi(Nt.id,this.urlSerializer.serialize(Nt.extractedUrl),this.urlSerializer.serialize(Nt.urlAfterRedirects),Nt.targetSnapshot);this.events.next(fn)}),(0,P.w)(Nt=>{let fn=!1;return(0,o.of)(Nt).pipe(function Ss(N,J){return(0,I.z)(H=>{const{targetSnapshot:de,guards:{canActivateChecks:Pe}}=H;if(!Pe.length)return(0,o.of)(H);let Fe=0;return(0,n.D)(Pe).pipe((0,B.b)(Qe=>function fa(N,J,H,de){const Pe=N.routeConfig,Fe=N._resolve;return void 0!==Pe?.title&&!Ke(Pe)&&(Fe[ne]=Pe.title),function ve(N,J,H,de){const Pe=function Ue(N){return[...Object.keys(N),...Object.getOwnPropertySymbols(N)]}(N);if(0===Pe.length)return(0,o.of)({});const Fe={};return(0,n.D)(Pe).pipe((0,I.z)(Qe=>function Oe(N,J,H,de){const Pe=Si(J)??de,Fe=bo(N,Pe);return it(Fe.resolve?Fe.resolve(J,H):Pe.runInContext(()=>Fe(J,H)))}(N[Qe],J,H,de).pipe((0,g.P)(),(0,L.b)(Nt=>{Fe[Qe]=Nt}))),(0,ee.h)(1),(0,ae.h)(Fe),(0,V.K)(Qe=>W(Qe)?v.E:(0,m._)(Qe)))}(Fe,N,J,de).pipe((0,M.U)(Qe=>(N._resolvedData=Qe,N.data=Ao(N,H).resolve,Pe&&Ke(Pe)&&(N.data[ne]=Pe.title),null)))}(Qe.route,de,N,J)),(0,L.b)(()=>Fe++),(0,ee.h)(1),(0,I.z)(Qe=>Fe===Pe.length?(0,o.of)(H):v.E))})}(H.paramsInheritanceStrategy,this.environmentInjector),(0,L.b)({next:()=>fn=!0,complete:()=>{fn||(H.restoreHistory(Nt),this.cancelNavigationTransition(Nt,"",2))}}))}),(0,L.b)(Nt=>{const fn=new sr(Nt.id,this.urlSerializer.serialize(Nt.extractedUrl),this.urlSerializer.serialize(Nt.urlAfterRedirects),Nt.targetSnapshot);this.events.next(fn)}))}),yt(Qe=>{const Nt=fn=>{const Un=[];
1fn.routeConfig?.loadComponent&&!fn.routeConfig._loadedComponent&&Un.push(this.configLoader.loadComponent(fn.routeConfig).pipe((0,L.b)(Hn=>{fn.component=Hn}),(0,M.U)(()=>{})));for(const Hn of fn.children)Un.push(...Nt(Hn));return Un};return(0,r.a)(Nt(Qe.targetSnapshot.root)).pipe((0,K.d)(),(0,D.q)(1))}),yt(()=>this.afterPreactivation()),(0,M.U)(Qe=>{const Nt=function cs(N,J,H){const de=$o(N,J._root,H?H._root:void 0);return new qn(de,J)}(H.routeReuseStrategy,Qe.targetSnapshot,Qe.currentRouterState);return de={...Qe,targetRouterState:Nt}}),(0,L.b)(Qe=>{H.currentUrlTree=Qe.urlAfterRedirects,H.rawUrlTree=H.urlHandlingStrategy.merge(Qe.urlAfterRedirects,Qe.rawUrl),H.routerState=Qe.targetRouterState,"deferred"===H.urlUpdateStrategy&&(Qe.extras.skipLocationChange||H.setBrowserUrl(H.rawUrlTree,Qe),H.browserUrlTree=Qe.urlAfterRedirects)}),((N,J,H)=>(0,M.U)(de=>(new ao(J,de.targetRouterState,de.currentRouterState,H).activate(N),de)))(this.rootContexts,H.routeReuseStrategy,Qe=>this.events.next(Qe)),(0,D.q)(1),(0,L.b)({next:Qe=>{Pe=!0,this.lastSuccessfulNavigation=this.currentNavigation,H.navigated=!0,this.events.next(new cr(Qe.id,this.urlSerializer.serialize(Qe.extractedUrl),this.urlSerializer.serialize(H.currentUrlTree))),H.titleStrategy?.updateTitle(Qe.targetRouterState.snapshot),Qe.resolve(!0)},complete:()=>{Pe=!0}}),(0,Q.x)(()=>{Pe||Fe||this.cancelNavigationTransition(de,"",1),this.currentNavigation?.id===de.id&&(this.currentNavigation=null)}),(0,V.K)(Qe=>{if(Fe=!0,ds(Qe)){to(Qe)||(H.navigated=!0,H.restoreHistory(de,!0));const Nt=new Qr(de.id,this.urlSerializer.serialize(de.extractedUrl),Qe.message,Qe.cancellationCode);if(this.events.next(Nt),to(Qe)){const fn=H.urlHandlingStrategy.merge(Qe.url,H.rawUrlTree),Un={skipLocationChange:de.extras.skipLocationChange,replaceUrl:"eager"===H.urlUpdateStrategy||hi(de.source)};H.scheduleNavigation(fn,Mr,null,Un,{resolve:de.resolve,reject:de.reject,promise:de.promise})}else de.resolve(!1)}else{H.restoreHistory(de,!0);const Nt=new wr(de.id,this.urlSerializer.serialize(de.extractedUrl),Qe,de.targetSnapshot??void 0);this.events.next(Nt);try{de.resolve(H.errorHandler(Qe))}catch(fn){de.reject(fn)}}return v.E}))}))}cancelNavigationTransition(H,de,Pe){const Fe=new Qr(H.id,this.urlSerializer.serialize(H.extractedUrl),de,Pe);this.events.next(Fe),H.resolve(!1)}}return N.\u0275fac=function(H){return new(H||N)},N.\u0275prov=t.\u0275\u0275defineInjectable({token:N,factory:N.\u0275fac,providedIn:"root"}),N})();function hi(N){return N!==Mr}let $r=(()=>{class N{buildTitle(H){let de,Pe=H.root;for(;void 0!==Pe;)de=this.getResolvedTitleForRoute(Pe)??de,Pe=Pe.children.find(Fe=>Fe.outlet===ie);return de}getResolvedTitleForRoute(H){return H.data[ne]}}return N.\u0275fac=function(H){return new(H||N)},N.\u0275prov=t.\u0275\u0275defineInjectable({token:N,factory:function(){return(0,t.inject)(vi)},providedIn:"root"}),N})(),vi=(()=>{class N extends $r{constructor(H){super(),this.title=H}updateTitle(H){const de=this.buildTitle(H);void 0!==de&&this.title.setTitle(de)}}return N.\u0275fac=function(H){return new(H||N)(t.\u0275\u0275inject(G.Dx))},N.\u0275prov=t.\u0275\u0275defineInjectable({token:N,factory:N.\u0275fac,providedIn:"root"}),N})(),Qo=(()=>{class N{}return N.\u0275fac=function(H){return new(H||N)},N.\u0275prov=t.\u0275\u0275defineInjectable({token:N,factory:function(){return(0,t.inject)(br)},providedIn:"root"}),N})();class io{shouldDetach(J){return!1}store(J,H){}shouldAttach(J){return!1}retrieve(J){return null}shouldReuseRoute(J,H){return J.routeConfig===H.routeConfig}}let br=(()=>{class N extends io{}return N.\u0275fac=function(){let J;return function(de){return(J||(J=t.\u0275\u0275getInheritedFactory(N)))(de||N)}}(),N.\u0275prov=t.\u0275\u0275defineInjectable({token:N,factory:N.\u0275fac,providedIn:"root"}),N})();const Ei=new t.InjectionToken("",{providedIn:"root",factory:()=>({})});let xr=(()=>{class N{}return N.\u0275fac=function(H){return new(H||N)},N.\u0275prov=t.\u0275\u0275defineInjectable({token:N,factory:function(){return(0,t.inject)(oo)},providedIn:"root"}),N})(),oo=(()=>{class N{shouldProcessUrl(H){return!0}extract(H){return H}merge(H,de){return H}}return N.\u0275fac=function(H){return new(H||N)},N.\u0275prov=t.\u0275\u0275defineInjectable({token:N,factory:N.\u0275fac,providedIn:"root"}),N})();function vs(N){throw N}function Ys(N,J,H){return J.parse("/")}const ra={paths:"exact",fragment:"ignored",matrixParams:"ignored",queryParams:"exact"},ta={paths:"subset",fragment:"ignored",matrixParams:"ignored",queryParams:"subset"};let yi=(()=>{class N{get navigationId(){return this.navigationTransitions.navigationId}get browserPageId(){if("computed"===this.canceledNavigationResolution)return this.location.getState()?.\u0275routerPageId}get events(){return this.navigationTransitions.events}constructor(){this.disposed=!1,this.currentPageId=0,this.console=(0,t.inject)(t.\u0275Console),this.isNgZoneEnabled=!1,this.options=(0,t.inject)(Ei,{optional:!0})||{},this.errorHandler=this.options.errorHandler||vs,this.malformedUriErrorHandler=this.options.malformedUriErrorHandler||Ys,this.navigated=!1,this.lastSuccessfulId=-1,this.urlHandlingStrategy=(0,t.inject)(xr),this.routeReuseStrategy=(0,t.inject)(Qo),this.urlCreationStrategy=(0,t.inject)(An),this.titleStrategy=(0,t.inject)($r),this.onSameUrlNavigation=this.options.onSameUrlNavigation||"ignore",this.paramsInheritanceStrategy=this.options.paramsInheritanceStrategy||"emptyOnly",this.urlUpdateStrategy=this.options.urlUpdateStrategy||"deferred",this.canceledNavigationResolution=this.options.canceledNavigationResolution||"replace",this.config=Ae((0,t.inject)(mn,{optional:!0})??[]),this.navigationTransitions=(0,t.inject)(ir),this.urlSerializer
1=(0,t.inject)(Ut),this.location=(0,t.inject)(b.Ye),this.isNgZoneEnabled=(0,t.inject)(t.NgZone)instanceof t.NgZone&&t.NgZone.isInAngularZone(),this.resetConfig(this.config),this.currentUrlTree=new Tt,this.rawUrlTree=this.currentUrlTree,this.browserUrlTree=this.currentUrlTree,this.routerState=wi(this.currentUrlTree,null),this.navigationTransitions.setupNavigations(this).subscribe(H=>{this.lastSuccessfulId=H.id,this.currentPageId=this.browserPageId??0},H=>{this.console.warn(`Unhandled Navigation Error: ${H}`)})}resetRootComponentType(H){this.routerState.root.component=H,this.navigationTransitions.rootComponentType=H}initialNavigation(){if(this.setUpLocationChangeListener(),!this.navigationTransitions.hasRequestedNavigation){const H=this.location.getState();this.navigateToSyncWithBrowser(this.location.path(!0),Mr,H)}}setUpLocationChangeListener(){this.locationSubscription||(this.locationSubscription=this.location.subscribe(H=>{const de="popstate"===H.type?"popstate":"hashchange";"popstate"===de&&setTimeout(()=>{this.navigateToSyncWithBrowser(H.url,de,H.state)},0)}))}navigateToSyncWithBrowser(H,de,Pe){const Fe={replaceUrl:!0},Qe=Pe?.navigationId?Pe:null;if(Pe){const fn={...Pe};delete fn.navigationId,delete fn.\u0275routerPageId,0!==Object.keys(fn).length&&(Fe.state=fn)}const Nt=this.parseUrl(H);this.scheduleNavigation(Nt,de,Qe,Fe)}get url(){return this.serializeUrl(this.currentUrlTree)}getCurrentNavigation(){return this.navigationTransitions.currentNavigation}resetConfig(H){this.config=H.map(Fi),this.navigated=!1,this.lastSuccessfulId=-1}ngOnDestroy(){this.dispose()}dispose(){this.navigationTransitions.complete(),this.locationSubscription&&(this.locationSubscription.unsubscribe(),this.locationSubscription=void 0),this.disposed=!0}createUrlTree(H,de={}){const{relativeTo:Pe,queryParams:Fe,fragment:Qe,queryParamsHandling:Nt,preserveFragment:fn}=de,Un=fn?this.currentUrlTree.fragment:Qe;let Hn=null;switch(Nt){case"merge":Hn={...this.currentUrlTree.queryParams,...Fe};break;case"preserve":Hn=this.currentUrlTree.queryParams;break;default:Hn=Fe||null}return null!==Hn&&(Hn=this.removeEmptyProps(Hn)),this.urlCreationStrategy.createUrlTree(Pe,this.routerState,this.currentUrlTree,H,Hn,Un??null)}navigateByUrl(H,de={skipLocationChange:!1}){const Pe=dt(H)?H:this.parseUrl(H),Fe=this.urlHandlingStrategy.merge(Pe,this.rawUrlTree);return this.scheduleNavigation(Fe,Mr,null,de)}navigate(H,de={skipLocationChange:!1}){return function Ki(N){for(let J=0;J<N.length;J++){const H=N[J];if(null==H)throw new t.\u0275RuntimeError(4008,false)}}(H),this.navigateByUrl(this.createUrlTree(H,de),de)}serializeUrl(H){return this.urlSerializer.serialize(H)}parseUrl(H){let de;try{de=this.urlSerializer.parse(H)}catch(Pe){de=this.malformedUriErrorHandler(Pe,this.urlSerializer,H)}return de}isActive(H,de){let Pe;if(Pe=!0===de?{...ra}:!1===de?{...ta}:de,dt(H))return Mt(this.currentUrlTree,H,Pe);const Fe=this.parseUrl(H);return Mt(this.currentUrlTree,Fe,Pe)}removeEmptyProps(H){return Object.keys(H).reduce((de,Pe)=>{const Fe=H[Pe];return null!=Fe&&(de[Pe]=Fe),de},{})}scheduleNavigation(H,de,Pe,Fe,Qe){if(this.disposed)return Promise.resolve(!1);let Nt,fn,Un,Hn;return Qe?(Nt=Qe.resolve,fn=Qe.reject,Un=Qe.promise):Un=new Promise((Tr,Er)=>{Nt=Tr,fn=Er}),Hn="computed"===this.canceledNavigationResolution?Pe&&Pe.\u0275routerPageId?Pe.\u0275routerPageId:(this.browserPageId??0)+1:0,this.navigationTransitions.handleNavigationRequest({targetPageId:Hn,source:de,restoredState:Pe,currentUrlTree:this.currentUrlTree,currentRawUrl:this.currentUrlTree,rawUrl:H,extras:Fe,resolve:Nt,reject:fn,promise:Un,currentSnapshot:this.routerState.snapshot,currentRouterState:this.routerState}),Un.catch(Tr=>Promise.reject(Tr))}setBrowserUrl(H,de){const Pe=this.urlSerializer.serialize(H);if(this.location.isCurrentPathEqualTo(Pe)||de.extras.replaceUrl){const Qe={...de.extras.state,...this.generateNgRouterState(de.id,this.browserPageId)};this.location.replaceState(Pe,"",Qe)}else{const Fe={...de.extras.state,...this.generateNgRouterState(de.id,de.targetPageId)};this.location.go(Pe,"",Fe)}}restoreHistory(H,de=!1){if("computed"===this.canceledNavigationResolution){const Fe=this.currentPageId-(this.browserPageId??this.currentPageId);
10!==Fe?this.location.historyGo(Fe):this.currentUrlTree===this.getCurrentNavigation()?.finalUrl&&0===Fe&&(this.resetState(H),this.browserUrlTree=H.currentUrlTree,this.resetUrlToCurrentUrlTree())}else"replace"===this.canceledNavigationResolution&&(de&&this.resetState(H),this.resetUrlToCurrentUrlTree())}resetState(H){this.routerState=H.currentRouterState,this.currentUrlTree=H.currentUrlTree,this.rawUrlTree=this.urlHandlingStrategy.merge(this.currentUrlTree,H.rawUrl)}resetUrlToCurrentUrlTree(){this.location.replaceState(this.urlSerializer.serialize(this.rawUrlTree),"",this.generateNgRouterState(this.lastSuccessfulId,this.currentPageId))}generateNgRouterState(H,de){return"computed"===this.canceledNavigationResolution?{navigationId:H,\u0275routerPageId:de}:{navigationId:H}}}return N.\u0275fac=function(H){return new(H||N)},N.\u0275prov=t.\u0275\u0275defineInjectable({token:N,factory:N.\u0275fac,providedIn:"root"}),N})(),zi=(()=>{class N{constructor(H,de,Pe,Fe,Qe,Nt){this.router=H,this.route=de,this.tabIndexAttribute=Pe,this.renderer=Fe,this.el=Qe,this.locationStrategy=Nt,this._preserveFragment=!1,this._skipLocationChange=!1,this._replaceUrl=!1,this.href=null,this.commands=null,this.onChanges=new O.x;const fn=Qe.nativeElement.tagName?.toLowerCase();this.isAnchorElement="a"===fn||"area"===fn,this.isAnchorElement?this.subscription=H.events.subscribe(Un=>{Un instanceof cr&&this.updateHref()}):this.setTabIndexIfNotOnNativeEl("0")}set preserveFragment(H){this._preserveFragment=(0,t.\u0275coerceToBoolean)(H)}get preserveFragment(){return this._preserveFragment}set skipLocationChange(H){this._skipLocationChange=(0,t.\u0275coerceToBoolean)(H)}get skipLocationChange(){return this._skipLocationChange}set replaceUrl(H){this._replaceUrl=(0,t.\u0275coerceToBoolean)(H)}get replaceUrl(){return this._replaceUrl}setTabIndexIfNotOnNativeEl(H){null!=this.tabIndexAttribute||this.isAnchorElement||this.applyAttributeValue("tabindex",H)}ngOnChanges(H){this.isAnchorElement&&this.updateHref(),this.onChanges.next(this)}set routerLink(H){null!=H?(this.commands=Array.isArray(H)?H:[H],this.setTabIndexIfNotOnNativeEl("0")):(this.commands=null,this.setTabIndexIfNotOnNativeEl(null))}onClick(H,de,Pe,Fe,Qe){return!!(null===this.urlTree||this.isAnchorElement&&(0!==H||de||Pe||Fe||Qe||"string"==typeof this.target&&"_self"!=this.target))||(this.router.navigateByUrl(this.urlTree,{skipLocationChange:this.skipLocationChange,replaceUrl:this.replaceUrl,state:this.state}),!this.isAnchorElement)}ngOnDestroy(){this.subscription?.unsubscribe()}updateHref(){this.href=null!==this.urlTree&&this.locationStrategy?this.locationStrategy?.prepareExternalUrl(this.router.serializeUrl(this.urlTree)):null;const H=null===this.href?null:(0,t.\u0275\u0275sanitizeUrlOrResourceUrl)(this.href,this.el.nativeElement.tagName.toLowerCase(),"href");this.applyAttributeValue("href",H)}applyAttributeValue(H,de){const Pe=this.renderer,Fe=this.el.nativeElement;null!==de?Pe.setAttribute(Fe,H,de):Pe.removeAttribute(Fe,H)}get urlTree(){return null===this.commands?null:this.router.createUrlTree(this.commands,{relativeTo:void 0!==this.relativeTo?this.relativeTo:this.route,queryParams:this.queryParams,fragment:this.fragment,queryParamsHandling:this.queryParamsHandling,preserveFragment:this.preserveFragment})}}return N.\u0275fac=function(H){return new(H||N)(t.\u0275\u0275directiveInject(yi),t.\u0275\u0275directiveInject(jr),t.\u0275\u0275injectAttribute("tabindex"),t.\u0275\u0275directiveInject(t.Renderer2),t.\u0275\u0275directiveInject(t.ElementRef),t.\u0275\u0275directiveInject(b.S$))},N.\u0275dir=t.\u0275\u0275defineDirective({type:N,selectors:[["","routerLink",""]],hostVars:1,hostBindings:function(H,de){1&H&&t.\u0275\u0275listener("click",function(Fe){return de.onClick(Fe.button,Fe.ctrlKey,Fe.shiftKey,Fe.altKey,Fe.metaKey)}),2&H&&t.\u0275\u0275attribute("target",de.target)},inputs:{target:"target",queryParams:"queryParams",fragment:"fragment",queryParamsHandling:"queryParamsHandling",state:"state",relativeTo:"relativeTo",preserveFragment:"preserveFragment",skipLocationChange:"skipLocationChange",replaceUrl:"replaceUrl",routerLink:"routerLink"},standalone:!0,features:[t.\u0275\u0275NgOnChangesFeature]}),N})(),Is=(()=>{class N{get isActive(){return this._isActive}constructor(H,de,Pe,Fe,Qe){this.router=H,this.element=de,this.renderer=Pe,this.cdr=Fe,this.link=Qe,this.classes=[],this._isActive=!1,this.routerLinkActiveOptions={exact:!1},this.isActiveChange=new t.EventEmitter,this.routerEventsSubscription=
1H.events.subscribe(Nt=>{Nt instanceof cr&&this.update()})}ngAfterContentInit(){(0,o.of)(this.links.changes,(0,o.of)(null)).pipe((0,k.J)()).subscribe(H=>{this.update(),this.subscribeToEachLinkOnChanges()})}subscribeToEachLinkOnChanges(){this.linkInputChangesSubscription?.unsubscribe();const H=[...this.links.toArray(),this.link].filter(de=>!!de).map(de=>de.onChanges);this.linkInputChangesSubscription=(0,n.D)(H).pipe((0,k.J)()).subscribe(de=>{this._isActive!==this.isLinkActive(this.router)(de)&&this.update()})}set routerLinkActive(H){const de=Array.isArray(H)?H:H.split(" ");this.classes=de.filter(Pe=>!!Pe)}ngOnChanges(H){this.update()}ngOnDestroy(){this.routerEventsSubscription.unsubscribe(),this.linkInputChangesSubscription?.unsubscribe()}update(){!this.links||!this.router.navigated||Promise.resolve().then(()=>{const H=this.hasActiveLinks();this._isActive!==H&&(this._isActive=H,this.cdr.markForCheck(),this.classes.forEach(de=>{H?this.renderer.addClass(this.element.nativeElement,de):this.renderer.removeClass(this.element.nativeElement,de)}),H&&void 0!==this.ariaCurrentWhenActive?this.renderer.setAttribute(this.element.nativeElement,"aria-current",this.ariaCurrentWhenActive.toString()):this.renderer.removeAttribute(this.element.nativeElement,"aria-current"),this.isActiveChange.emit(H))})}isLinkActive(H){const de=function uo(N){return!!N.paths}(this.routerLinkActiveOptions)?this.routerLinkActiveOptions:this.routerLinkActiveOptions.exact||!1;return Pe=>!!Pe.urlTree&&H.isActive(Pe.urlTree,de)}hasActiveLinks(){const H=this.isLinkActive(this.router);return this.link&&H(this.link)||this.links.some(H)}}return N.\u0275fac=function(H){return new(H||N)(t.\u0275\u0275directiveInject(yi),t.\u0275\u0275directiveInject(t.ElementRef),t.\u0275\u0275directiveInject(t.Renderer2),t.\u0275\u0275directiveInject(t.ChangeDetectorRef),t.\u0275\u0275directiveInject(zi,8))},N.\u0275dir=t.\u0275\u0275defineDirective({type:N,selectors:[["","routerLinkActive",""]],contentQueries:function(H,de,Pe){if(1&H&&t.\u0275\u0275contentQuery(Pe,zi,5),2&H){let Fe;t.\u0275\u0275queryRefresh(Fe=t.\u0275\u0275loadQuery())&&(de.links=Fe)}},inputs:{routerLinkActiveOptions:"routerLinkActiveOptions",ariaCurrentWhenActive:"ariaCurrentWhenActive",routerLinkActive:"routerLinkActive"},outputs:{isActiveChange:"isActiveChange"},exportAs:["routerLinkActive"],standalone:!0,features:[t.\u0275\u0275NgOnChangesFeature]}),N})();class Mi{}let Zo=(()=>{class N{preload(H,de){return(0,o.of)(null)}}return N.\u0275fac=function(H){return new(H||N)},N.\u0275prov=t.\u0275\u0275defineInjectable({token:N,factory:N.\u0275fac,providedIn:"root"}),N})(),Es=(()=>{class N{constructor(H,de,Pe,Fe,Qe){this.router=H,this.injector=Pe,this.preloadingStrategy=Fe,this.loader=Qe}setUpPreloading(){this.subscription=this.router.events.pipe((0,C.h)(H=>H instanceof cr),(0,B.b)(()=>this.preload())).subscribe(()=>{})}preload(){return this.processRoutes(this.injector,this.router.config)}ngOnDestroy(){this.subscription&&this.subscription.unsubscribe()}processRoutes(H,de){const Pe=[];for(const Fe of de){Fe.providers&&!Fe._injector&&(Fe._injector=(0,t.createEnvironmentInjector)(Fe.providers,H,`Route: ${Fe.path}`));const Qe=Fe._injector??H,Nt=Fe._loadedInjector??Qe;(Fe.loadChildren&&!Fe._loadedRoutes&&void 0===Fe.canLoad||Fe.loadComponent&&!Fe._loadedComponent)&&Pe.push(this.preloadConfig(Qe,Fe)),(Fe.children||Fe._loadedRoutes)&&Pe.push(this.processRoutes(Nt,Fe.children??Fe._loadedRoutes))}return(0,n.D)(Pe).pipe((0,k.J)())}preloadConfig(H,de){return this.preloadingStrategy.preload(de,()=>{let Pe;Pe=de.loadChildren&&void 0===de.canLoad?this.loader.loadChildren(H,de):(0,o.of)(null);const Fe=Pe.pipe((0,I.z)(Qe=>null===Qe?(0,o.of)(void 0):(de._loadedRoutes=Qe.routes,de._loadedInjector=Qe.injector,this.processRoutes(Qe.injector??H,Qe.routes))));if(de.loadComponent&&!de._loadedComponent){const Qe=this.loader.loadComponent(de);return(0,n.D)([Fe,Qe]).pipe((0,k.J)())}return Fe})}}return N.\u0275fac=function(H){return new(H||N)(t.\u0275\u0275inject(yi),t.\u0275\u0275inject(t.Compiler),t.\u0275\u0275inject(t.EnvironmentInjector),t.\u0275\u0275inject(Mi),t.\u0275\u0275inject(xn))},N.\u0275prov=t.\u0275\u0275defineInjectable({token:N,factory:N.\u0275fac,providedIn:"root"}),N})();const _o=new t.InjectionToken("");let so=(()=>{class N{constructor(H,de,Pe,Fe,Qe={}
1){this.urlSerializer=H,this.transitions=de,this.viewportScroller=Pe,this.zone=Fe,this.options=Qe,this.lastId=0,this.lastSource="imperative",this.restoredId=0,this.store={},Qe.scrollPositionRestoration=Qe.scrollPositionRestoration||"disabled",Qe.anchorScrolling=Qe.anchorScrolling||"disabled"}init(){"disabled"!==this.options.scrollPositionRestoration&&this.viewportScroller.setHistoryScrollRestoration("manual"),this.routerEventsSubscription=this.createScrollEvents(),this.scrollEventsSubscription=this.consumeScrollEvents()}createScrollEvents(){return this.transitions.events.subscribe(H=>{H instanceof Xn?(this.store[this.lastId]=this.viewportScroller.getScrollPosition(),this.lastSource=H.navigationTrigger,this.restoredId=H.restoredState?H.restoredState.navigationId:0):H instanceof cr&&(this.lastId=H.id,this.scheduleScrollEvent(H,this.urlSerializer.parse(H.urlAfterRedirects).fragment))})}consumeScrollEvents(){return this.transitions.events.subscribe(H=>{H instanceof ut&&(H.position?"top"===this.options.scrollPositionRestoration?this.viewportScroller.scrollToPosition([0,0]):"enabled"===this.options.scrollPositionRestoration&&this.viewportScroller.scrollToPosition(H.position):H.anchor&&"enabled"===this.options.anchorScrolling?this.viewportScroller.scrollToAnchor(H.anchor):"disabled"!==this.options.scrollPositionRestoration&&this.viewportScroller.scrollToPosition([0,0]))})}scheduleScrollEvent(H,de){this.zone.runOutsideAngular(()=>{setTimeout(()=>{this.zone.run(()=>{this.transitions.events.next(new ut(H,"popstate"===this.lastSource?this.store[this.restoredId]:null,de))})},0)})}ngOnDestroy(){this.routerEventsSubscription?.unsubscribe(),this.scrollEventsSubscription?.unsubscribe()}}return N.\u0275fac=function(H){t.\u0275\u0275invalidFactory()},N.\u0275prov=t.\u0275\u0275defineInjectable({token:N,factory:N.\u0275fac}),N})();var Zi=(()=>((Zi=Zi||{})[Zi.COMPLETE=0]="COMPLETE",Zi[Zi.FAILED=1]="FAILED",Zi[Zi.REDIRECTING=2]="REDIRECTING",Zi))();const us=!1;function Io(N,J){return{\u0275kind:N,\u0275providers:J}}const ia=new t.InjectionToken("",{providedIn:"root",factory:()=>!1});function sa(){const N=(0,t.inject)(t.Injector);return J=>{const H=N.get(t.ApplicationRef);if(J!==H.components[0])return;const de=N.get(yi),Pe=N.get(ma);1===N.get(Qs)&&de.initialNavigation(),N.get(qo,null,t.InjectFlags.Optional)?.setUpPreloading(),N.get(_o,null,t.InjectFlags.Optional)?.init(),de.resetRootComponentType(H.componentTypes[0]),Pe.closed||(Pe.next(),Pe.complete(),Pe.unsubscribe())}}const ma=new t.InjectionToken(us?"bootstrap done indicator":"",{factory:()=>new O.x}),Qs=new t.InjectionToken(us?"initial navigation":"",{providedIn:"root",factory:()=>1});function Xs(){let N=[];return N=us?[{provide:t.ENVIRONMENT_INITIALIZER,multi:!0,useFactory:()=>{const J=(0,t.inject)(yi);return()=>J.events.subscribe(H=>{console.group?.(`Router Event: ${H.constructor.name}`),console.log(function tn(N){if(!("type"in N))return`Unknown Router Event: ${N.constructor.name}`;switch(N.type){case 14:return`ActivationEnd(path: '${N.snapshot.routeConfig?.path||""}')`;case 13:return`ActivationStart(path: '${N.snapshot.routeConfig?.path||""}')`;case 12:return`ChildActivationEnd(path: '${N.snapshot.routeConfig?.path||""}')`;case 11:return`ChildActivationStart(path: '${N.snapshot.routeConfig?.path||""}')`;case 8:return`GuardsCheckEnd(id: ${N.id}, url: '${N.url}', urlAfterRedirects: '${N.urlAfterRedirects}', state: ${N.state}, shouldActivate: ${N.shouldActivate})`;case 7:return`GuardsCheckStart(id: ${N.id}, url: '${N.url}', urlAfterRedirects: '${N.urlAfterRedirects}', state: ${N.state})`;case 2:return`NavigationCancel(id: ${N.id}, url: '${N.url}')`;case 16:return`NavigationSkipped(id: ${N.id}, url: '${N.url}')`;case 1:return`NavigationEnd(id: ${N.id}, url: '${N.url}', urlAfterRedirects: '${N.urlAfterRedirects}')`;case 3:return`NavigationError(id: ${N.id}, url: '${N.url}', error: ${N.error})`;case 0:return`NavigationStart(id: ${N.id}, url: '${N.url}')`;case 6:return`ResolveEnd(id: ${N.id}, url: '${N.url}', urlAfterRedirects: '${N.urlAfterRedirects}', state: ${N.state})`;case 5:return`ResolveStart(id: ${N.id}, url: '${N.url}', urlAfterRedirects: '${N.urlAfterRedirects}', state: ${N.state})`;case 10:return`RouteConfigLoadEnd(path: ${N.route.path})`;case 9:return`RouteConfigLoadStart(path: ${N.route.path})`;case 4:return`RoutesRecognized(id: ${N.id}, url: '${N.url}', urlAfterRedirects: '${N.urlAfterRedirects}', state: ${N.state})`;case 15:return`Scroll(anchor: '${N.anchor}', position: '${N.position?`${N.position[0]}, ${N.position[1]}`:null}')`}}(H)),console.log(H),console.groupEnd?.()})}}]:[],Io(1,N)}const qo=new t.InjectionToken(us?"router preloader":"");function es(N){return Io(0,[{provide:qo,useExisting:Es},{provide:Mi,useExisting:N}])}const Vi=!1,Gr=new t.InjectionToken(Vi?"router duplicate forRoot guard":"ROUTER_FORROOT_GUARD"),Bs=[b.Ye,{provide:Ut,useClass:ke},yi,Co,{provide:jr,useFactory:function Jo(N){return N.routerState.root},deps:[yi]},xn,Vi?{provide:ia,useValue:!0}:[]];function $i(){return new t.NgProbeToken("Router",yi)}let ps=(()=>{class N{constructor(H){}static forRoot(H,de){return{ngModule:N,providers:[Bs,Vi&&de?.enableTracing?Xs().\u0275providers:[],{provide:mn,multi:!0,useValue:H},{provide:Gr,useFactory:ts,deps:[[yi,new t.Optional,new t.SkipSelf]]},{provide:Ei,useValue:de||{}},de?.useHash?{provide:b.S$,useClass:b.Do}:{provide:b.S$,useClass:b.b0},{provide:_o,useFactory:()=>{const N=(0,t.inject)(b.EM),J=(0,t.inject)(t.NgZone),H=(0,t.inject)(Ei),de=(0,t.inject)(ir),Pe=(0,t.inject)(Ut);return H.scrollOffset&&N.setOffset(H.scrollOffset),new so(Pe,de,N,J,H)}},de?.preloadingStrategy?es(de.preloadingStrategy).\u0275providers:[],{provide:t.NgProbeToken,multi:!0,useFactory:$i},de?.initialNavigation?$e(de):[],[{provide:_e,useFactory:sa},{provide:t.APP_BOOTSTRAP_LISTENER,multi:!0,useExisting:_e}]]}}static forChild(H){return{ngModule:N,providers:[{provide:mn,multi:!0,useValue:H}]}}}return N.\u0275fac=function(H){return new(H||N)(t.\u0275\u0275inject(Gr,8))},N.\u0275mod=t.\u0275\u0275defineNgModule({type:N}),N.\u0275inj=t.\u0275\u0275defineInjector({imports:[_n]}),N})();function ts(N){if(Vi&&N)throw new t.\u0275RuntimeError(4007,"The Router was provided more than once. This can happen if 'forRoot' is used outside of the root injector. Lazy loaded modules should use RouterModule.forChild() instead.");return"guarded"}function $e(N){return["disabled"===N.initialNavigation?Io(3,[{provide:t.APP_INITIALIZER,multi:!0,useFactory:()=>{const J=(0,t.inject)(yi);return()=>{J.setUpLocationChangeListener()}}},{provide:Qs,useValue:2}]).\u0275providers:[],"enabledBlocking"===N.initialNavigation?Io(2,[{provide:Qs,useValue:0},{provide:t.APP_INITIALIZER,multi:!0,deps:[t.Injector],useFactory:J=>{const H=J.get(b.V_,Promise.resolve());return()=>H.then(()=>new Promise(de=>{const Pe=J.get(yi),Fe=J.get(ma);(function go(N,J){N.events.pipe((0,C.h)(H=>H instanceof cr||H instanceof Qr||H instanceof wr||H instanceof Xr),(0,M.U)(H=>H instanceof cr||H instanceof Xr?Zi.COMPLETE:H instanceof Qr&&(0===H.code||1===H.code)?Zi.REDIRECTING:Zi.FAILED),(0,C.h)(H=>H!==Zi.REDIRECTING),(0,D.q)(1)).subscribe(()=>{J()})})(Pe,()=>{de(!0)}),J.get(ir).afterPreactivation=()=>(de(!0),Fe.closed?(0,o.of)(void 0):Fe),Pe.initialNavigation()}))}}]).\u0275providers:[]]}const _e=new t.InjectionToken(Vi?"Router Initializer":"")},9769:(R,c,e)=>{"use strict";e.d(c,{gY:()=>_n,Gs:()=>jt,Kz:()=>pe,mL:()=>bi,xZ:()=>Ro,W9:()=>Hi,_D:()=>Lo,lQ:()=>hr,VL:()=>Uo,M4:()=>Bo,M:()=>To,jt:()=>No,YE:()=>$i,TH:()=>Gr,Vi:()=>Bs,XC:()=>Oa,iD:()=>ps,J4:()=>ea,FF:()=>Fe,NM:()=>Pe,bz:()=>Qe,IJ:()=>Fs,Pz:()=>Er,uN:()=>Hn,nv:()=>Tr,Vx:()=>Ci,Oz:()=>Us,tO:()=>Ha,M2:()=>ys,N9:()=>Sa,pM:()=>xa,jF:()=>Ta,Gk:()=>mo,gW:()=>fo,k9:()=>Co,Cu:()=>Po,aB:()=>Do,py:()=>si,OC:()=>
1kn,mO:()=>Ir,Pm:()=>ol,Kk:()=>ka,UL:()=>Dl,_L:()=>zl,HK:()=>ca,dR:()=>Ql,ZS:()=>bl});var t=e(94650),n=e(36895),o=e(69751),i=e(60515),d=e(39646),r=e(77579),a=e(54968),p=e(5963),h=e(54355),m=e(61135),v=(e(39841),e(25032));new o.y(v.Z);var b=e(62557),M=e(56451),P=e(71350),l=e(82722),C=e(39300),I=e(95698),g=e(54004),B=e(68675),L=e(71884),V=e(63900),Y=e(18505),X=e(11365),te=e(94086),K=e(86099),ee=e(35684),ae=e(13099),Q=e(24006);function j(U,le){}function k(U,le){if(1&U&&(t.\u0275\u0275elementStart(0,"button",3),t.\u0275\u0275text(1),t.\u0275\u0275template(2,j,0,0,"ng-template",4),t.\u0275\u0275elementEnd()),2&U){const T=le.$implicit;t.\u0275\u0275property("ngbPanelToggle",T),t.\u0275\u0275advance(1),t.\u0275\u0275textInterpolate1(" ",T.title,""),t.\u0275\u0275advance(1),t.\u0275\u0275property("ngTemplateOutlet",null==T.titleTpl?null:T.titleTpl.templateRef)}}function G(U,le){}function ie(U,le){}function ne(U,le){if(1&U){const T=t.\u0275\u0275getCurrentView();t.\u0275\u0275elementStart(0,"div",8),t.\u0275\u0275listener("ngbRef",function(ge){t.\u0275\u0275restoreView(T);const Te=t.\u0275\u0275nextContext().$implicit;return t.\u0275\u0275resetView(Te.panelDiv=ge)}),t.\u0275\u0275elementStart(1,"div",9),t.\u0275\u0275template(2,ie,0,0,"ng-template",4),t.\u0275\u0275elementEnd()()}if(2&U){const T=t.\u0275\u0275nextContext().$implicit;t.\u0275\u0275propertyInterpolate("id",T.id),t.\u0275\u0275attribute("aria-labelledby",T.id+"-header"),t.\u0275\u0275advance(2),t.\u0275\u0275property("ngTemplateOutlet",(null==T.contentTpl?null:T.contentTpl.templateRef)||null)}}const q=function(U,le){return{$implicit:U,opened:le}};function oe(U,le){if(1&U&&(t.\u0275\u0275elementStart(0,"div")(1,"div",5),t.\u0275\u0275template(2,G,0,0,"ng-template",6),t.\u0275\u0275elementEnd(),t.\u0275\u0275template(3,ne,3,3,"div",7),t.\u0275\u0275elementEnd()),2&U){const T=le.$implicit,$=t.\u0275\u0275nextContext(),ge=t.\u0275\u0275reference(1);t.\u0275\u0275classMap("card "+(T.cardClass||"")),t.\u0275\u0275advance(1),t.\u0275\u0275classMap("card-header "+(T.type?"bg-"+T.type:$.type?"bg-"+$.type:"")),t.\u0275\u0275propertyInterpolate1("id","",T.id,"-header"),t.\u0275\u0275advance(1),t.\u0275\u0275property("ngTemplateOutlet",(null==T.headerTpl?null:T.headerTpl.templateRef)||ge)("ngTemplateOutletContext",t.\u0275\u0275pureFunction2(8,q,T,T.isOpen)),t.\u0275\u0275advance(1),t.\u0275\u0275property("ngIf",!$.destroyOnHide||T.isOpen||T.transitionRunning)}}const ye=["*"],It=["ngbDatepickerDayView",""],it=["month"],Be=["year"];function Xe(U,le){if(1&U&&(t.\u0275\u0275elementStart(0,"option",5),t.\u0275\u0275text(1),t.\u0275\u0275elementEnd()),2&U){const T=le.$implicit,$=t.\u0275\u0275nextContext();t.\u0275\u0275property("value",T),t.\u0275\u0275attribute("aria-label",$.i18n.getMonthFullName(T,null==$.date?null:$.date.year)),t.\u0275\u0275advance(1),t.\u0275\u0275textInterpolate($.i18n.getMonthShortName(T,null==$.date?null:$.date.year))}}function pt(U,le){if(1&U&&(t.\u0275\u0275elementStart(0,"option",5),t.\u0275\u0275text(1),t.\u0275\u0275elementEnd()),2&U){const T=le.$implicit,$=t.\u0275\u0275nextContext();t.\u0275\u0275property("value",T),t.\u0275\u0275advance(1),t.\u0275\u0275textInterpolate($.i18n.getYearNumerals(T))}}function Mt(U,le){if(1&U){const T=t.\u0275\u0275getCurrentView();t.\u0275\u0275elementStart(0,"ngb-datepicker-navigation-select",7),t.\u0275\u0275listener("select",function(ge){t.\u0275\u0275restoreView(T);const Te=t.\u0275\u0275nextContext();return t.\u0275\u0275resetView(Te.select.emit(ge))}),t.\u0275\u0275elementEnd()}if(2&U){const T=t.\u0275\u0275nextContext();t.\u0275\u0275property("date",T.date)("disabled",T.disabled)("months",T.selectBoxes.months)("years",T.selectBoxes.years)}}function Yt(U,le){1&U&&t.\u0275\u0275element(0,"div",0)}function nt(U,le){1&U&&t.\u0275\u0275element(0,"div",0)}function mt(U,le){if(1&U&&(t.\u0275\u0275template(0,Yt,1,0,"div",9),t.\u0275\u0275elementStart(1,"div",10),t.\u0275\u0275text(2),t.\u0275\u0275elementEnd(),t.\u0275\u0275template(3,nt,1,0,"div",9)),2&U){const T=le.$implicit,$=le.index,ge=t.\u0275\u0275nextContext(2);t.\u0275\u0275property("ngIf",$>0),t.\u0275\u0275advance(2),t.\u0275\u0275textInterpolate1(" ",ge.i18n.getMonthLabel(T.firstDate)," "),t.\u0275\u0275advance(1),t.\u0275\u0275property("ngIf",$!==ge.months.length-1)}}function en(U,le){if(1&U&&t.\u0275\u0275template(0,mt,4,3,"ng-template",8),2&U){const T=t.\u0275\u0275nextContext();t.\u0275\u0275property("ngForOf",T.months)}}const pn=["defaultDayTemplate"],tt=["content"];function Tt(U,le){if(1&U&&t.\u0275\u0275element(0,"div",7),2&U){const $=le.currentMonth,ge=le.selected,Te=le.disabled,Lt=le.focused;t.\u0275\u0275property("date",le.date)("currentMonth",$)("selected",ge)("disabled",Te)("focused",Lt)}}function At(U,le){if(1&U&&(t.\u0275\u0275elementStart(0,"div",12),t.\u0275\u0275text(1),t.\u0275\u0275elementEnd()),2&U){const T=t.\u0275\u0275nextContext().$implicit,$=t.\u0275\u0275nextContext(2);t.\u0275\u0275advance(1),t.\u0275\u0275textInterpolate1(" ",$.i18n.getMonthLabel(T.firstDate)," ")}}function Rt(U,le){if(1&U&&(t.\u0275\u0275elementStart(0,"div",9),t.\u0275\u0275template(1,At,2,1,"div",10),t.\u0275\u0275element(2,"ngb-datepicker-month",11),t.\u0275\u0275elementEnd()),2&U){const T=le.$implicit,$=t.\u0275\u0275nextContext(2);t.\u0275\u0275advance(1),t.\u0275\u0275property("ngIf","none"===$.navigation||$.displayMonths>1&&"select"===$.navigation),t.\u0275\u0275advance(1),t.\u0275\u0275property("month",T.firstDate)}}function Pt(U,le){if(1&U&&t.\u0275\u0275template(0,Rt,3,2,"div",8),2&U){const T=t.\u0275\u0275nextContext();t.\u0275\u0275property("ngForOf",T.model.months)}}function xt(U,le){if(1&U){const T=t.\u0275\u0275getCurrentView();t.\u0275\u0275elementStart(0,"ngb-datepicker-navigation",13),t.\u0275\u0275listener("navigate",function(ge){t.\u0275\u0275restoreView(T);const Te=t.\u0275\u0275nextContext();
1return t.\u0275\u0275resetView(Te.onNavigateEvent(ge))})("select",function(ge){t.\u0275\u0275restoreView(T);const Te=t.\u0275\u0275nextContext();return t.\u0275\u0275resetView(Te.onNavigateDateSelect(ge))}),t.\u0275\u0275elementEnd()}if(2&U){const T=t.\u0275\u0275nextContext();t.\u0275\u0275property("date",T.model.firstDate)("months",T.model.months)("disabled",T.model.disabled)("showSelect","select"===T.model.navigation)("prevDisabled",T.model.prevDisabled)("nextDisabled",T.model.nextDisabled)("selectBoxes",T.model.selectBoxes)}}function lt(U,le){}function Ut(U,le){}function ke(U,le){if(1&U&&(t.\u0275\u0275elementStart(0,"div",5),t.\u0275\u0275text(1),t.\u0275\u0275elementEnd()),2&U){const T=t.\u0275\u0275nextContext(2);t.\u0275\u0275advance(1),t.\u0275\u0275textInterpolate(T.i18n.getWeekLabel())}}function ot(U,le){if(1&U&&(t.\u0275\u0275elementStart(0,"div",6),t.\u0275\u0275text(1),t.\u0275\u0275elementEnd()),2&U){const T=le.$implicit;t.\u0275\u0275advance(1),t.\u0275\u0275textInterpolate(T)}}function gt(U,le){if(1&U&&(t.\u0275\u0275elementStart(0,"div",2),t.\u0275\u0275template(1,ke,2,1,"div",3),t.\u0275\u0275template(2,ot,2,1,"div",4),t.\u0275\u0275elementEnd()),2&U){const T=t.\u0275\u0275nextContext();t.\u0275\u0275advance(1),t.\u0275\u0275property("ngIf",T.datepicker.showWeekNumbers),t.\u0275\u0275advance(1),t.\u0275\u0275property("ngForOf",T.viewModel.weekdays)}}function zt(U,le){if(1&U&&(t.\u0275\u0275elementStart(0,"div",11),t.\u0275\u0275text(1),t.\u0275\u0275elementEnd()),2&U){const T=t.\u0275\u0275nextContext(2).$implicit,$=t.\u0275\u0275nextContext();t.\u0275\u0275advance(1),t.\u0275\u0275textInterpolate($.i18n.getWeekNumerals(T.number))}}function hn(U,le){}function Vt(U,le){if(1&U&&t.\u0275\u0275template(0,hn,0,0,"ng-template",14),2&U){const T=t.\u0275\u0275nextContext().$implicit,$=t.\u0275\u0275nextContext(3);t.\u0275\u0275property("ngTemplateOutlet",$.datepicker.dayTemplate)("ngTemplateOutletContext",T.context)}}function $n(U,le){if(1&U){const T=t.\u0275\u0275getCurrentView();t.\u0275\u0275elementStart(0,"div",12),t.\u0275\u0275listener("click",function(ge){const Lt=t.\u0275\u0275restoreView(T).$implicit;return t.\u0275\u0275nextContext(3).doSelect(Lt),t.\u0275\u0275resetView(ge.preventDefault())}),t.\u0275\u0275template(1,Vt,1,2,"ng-template",13),t.\u0275\u0275elementEnd()}if(2&U){const T=le.$implicit;t.\u0275\u0275classProp("disabled",T.context.disabled)("hidden",T.hidden)("ngb-dp-today",T.context.today),t.\u0275\u0275property("tabindex",T.tabindex),t.\u0275\u0275attribute("aria-label",T.ariaLabel),t.\u0275\u0275advance(1),t.\u0275\u0275property("ngIf",!T.hidden)}}function Dt(U,le){if(1&U&&(t.\u0275\u0275elementStart(0,"div",8),t.\u0275\u0275template(1,zt,2,1,"div",9),t.\u0275\u0275template(2,$n,2,9,"div",10),t.\u0275\u0275elementEnd()),2&U){const T=t.\u0275\u0275nextContext().$implicit,$=t.\u0275\u0275nextContext();t.\u0275\u0275advance(1),t.\u0275\u0275property("ngIf",$.datepicker.showWeekNumbers),t.\u0275\u0275advance(1),t.\u0275\u0275property("ngForOf",T.days)}}function Ft(U,le){1&U&&t.\u0275\u0275template(0,Dt,3,2,"div",7),2&U&&t.\u0275\u0275property("ngIf",!le.$implicit.collapsed)}const St=["dialog"],wt=["ngbNavOutlet",""];function Xt(U,le){}const st=function(U){return{$implicit:U}};function xe(U,le){if(1&U&&(t.\u0275\u0275elementStart(0,"div",2),t.\u0275\u0275template(1,Xt,0,0,"ng-template",3),t.\u0275\u0275elementEnd()),2&U){const T=t.\u0275\u0275nextContext().$implicit,$=t.\u0275\u0275nextContext();t.\u0275\u0275property("item",T)("nav",$.nav)("role",$.paneRole),t.\u0275\u0275advance(1),t.\u0275\u0275property("ngTemplateOutlet",(null==T.contentTpl?null:T.contentTpl.templateRef)||null)("ngTemplateOutletContext",t.\u0275\u0275pureFunction1(5,st,T.active||$.isPanelTransitioning(T)))}}function Le(U,le){if(1&U&&t.\u0275\u0275template(0,xe,2,7,"div",1),2&U){const T=le.$implicit,$=t.\u0275\u0275nextContext();t.\u0275\u0275property("ngIf",T.isPanelInDom()||$.isPanelTransitioning(T))}}function qe(U,le){1&U&&(t.\u0275\u0275elementStart(0,"span",9),t.\u0275\u0275i18n(1,10),t.\u0275\u0275elementEnd())}function at(U,le){1&U&&(t.\u0275\u0275elementStart(0,"span",9),t.\u0275\u0275i18
1n(1,11),t.\u0275\u0275elementEnd())}function Jt(U,le){1&U&&(t.\u0275\u0275elementStart(0,"span",9),t.\u0275\u0275i18n(1,12),t.\u0275\u0275elementEnd())}function $t(U,le){1&U&&(t.\u0275\u0275elementStart(0,"span",9),t.\u0275\u0275i18n(1,13),t.\u0275\u0275elementEnd())}function rn(U,le){1&U&&t.\u0275\u0275text(0,"...")}function Wt(U,le){1&U&&(t.\u0275\u0275elementStart(0,"span",15),t.\u0275\u0275text(1,"(current)"),t.\u0275\u0275elementEnd())}function qt(U,le){if(1&U&&(t.\u0275\u0275text(0),t.\u0275\u0275template(1,Wt,2,0,"span",14)),2&U){const T=le.$implicit,$=le.currentPage;t.\u0275\u0275textInterpolate1(" ",T," "),t.\u0275\u0275advance(1),t.\u0275\u0275property("ngIf",T===$)}}function un(U,le){}const dt=function(U){return{disabled:!0,currentPage:U}};function ht(U,le){if(1&U&&(t.\u0275\u0275elementStart(0,"a",20),t.\u0275\u0275template(1,un,0,0,"ng-template",8),t.\u0275\u0275elementEnd()),2&U){const T=t.\u0275\u0275nextContext(2).$implicit,$=t.\u0275\u0275nextContext(),ge=t.\u0275\u0275reference(9);t.\u0275\u0275advance(1),t.\u0275\u0275property("ngTemplateOutlet",(null==$.tplEllipsis?null:$.tplEllipsis.templateRef)||ge)("ngTemplateOutletContext",t.\u0275\u0275pureFunction1(2,dt,T))}}function je(U,le){}const vt=function(U,le,T){return{disabled:U,$implicit:le,currentPage:T}};function Zt(U,le){if(1&U){const T=t.\u0275\u0275getCurrentView();t.\u0275\u0275elementStart(0,"a",21),t.\u0275\u0275listener("click",function(ge){t.\u0275\u0275restoreView(T);const Te=t.\u0275\u0275nextContext().$implicit;return t.\u0275\u0275nextContext(2).selectPage(Te),t.\u0275\u0275resetView(ge.preventDefault())}),t.\u0275\u0275template(1,je,0,0,"ng-template",8),t.\u0275\u0275elementEnd()}if(2&U){const T=t.\u0275\u0275nextContext().$implicit,$=t.\u0275\u0275nextContext(),ge=$.disabled,Te=$.$implicit,Lt=t.\u0275\u0275nextContext(),an=t.\u0275\u0275reference(11);t.\u0275\u0275attribute("tabindex",ge?"-1":null)("aria-disabled",ge?"true":null),t.\u0275\u0275advance(1),t.\u0275\u0275property("ngTemplateOutlet",(null==Lt.tplNumber?null:Lt.tplNumber.templateRef)||an)("ngTemplateOutletContext",t.\u0275\u0275pureFunction3(4,vt,ge,T,Te))}}function We(U,le){if(1&U&&(t.\u0275\u0275elementStart(0,"li",17),t.\u0275\u0275template(1,ht,2,4,"a",18),t.\u0275\u0275template(2,Zt,2,8,"a",19),t.\u0275\u0275elementEnd()),2&U){const T=le.$implicit,$=t.\u0275\u0275nextContext(),ge=$.$implicit,Te=$.disabled,Lt=t.\u0275\u0275nextContext();t.\u0275\u0275classProp("active",T===ge)("disabled",Lt.isEllipsis(T)||Te),t.\u0275\u0275attribute("aria-current",T===ge?"page":null),t.\u0275\u0275advance(1),t.\u0275\u0275property("ngIf",Lt.isEllipsis(T)),t.\u0275\u0275advance(1),t.\u0275\u0275property("ngIf",!Lt.isEllipsis(T))}}function Ne(U,le){1&U&&t.\u0275\u0275template(0,We,3,7,"li",16),2&U&&t.\u0275\u0275property("ngForOf",le.pages)}function ze(U,le){}const bt=function(U,le){return{disabled:U,currentPage:le}};function En(U,le){if(1&U){const T=t.\u0275\u0275getCurrentView();t.\u0275\u0275elementStart(0,"li",17)(1,"a",22),t.\u0275\u0275listener("click",function(ge){return t.\u0275\u0275restoreView(T),t.\u0275\u0275nextContext().selectPage(1),t.\u0275\u0275resetView(ge.preventDefault())}),t.\u0275\u0275template(2,ze,0,0,"ng-template",8),t.\u0275\u0275elementEnd()()}if(2&U){const T=t.\u0275\u0275nextContext(),$=t.\u0275\u0275reference(1);t.\u0275\u0275classProp("disabled",T.previousDisabled()),t.\u0275\u0275advance(1),t.\u0275\u0275attribute("tabindex",T.previousDisabled()?"-1":null)("aria-disabled",T.previousDisabled()?"true":null),t.\u0275\u0275advance(1),t.\u0275\u0275property("ngTemplateOutlet",(null==T.tplFirst?null:T.tplFirst.templateRef)||$)("ngTemplateOutletContext",t.\u0275\u0275pureFunction2(6,bt,T.previousDisabled(),T.page))}}function wn(U,le){}const nr=function(U){return{disabled:U}};function Cn(U,le){if(1&U){const T=t.\u0275\u0275getCurrentView();t.\u0275\u0275elementStart(0,"li",17)(1,"a",23),t.\u0275\u0275listener("click",function(ge){t.\u0275\u0275restoreView(T);const Te=t.\u0275\u0275nextContext();return Te.selectPage(Te.page-1),t.\u0275\u0275resetView(ge.preventDefault())}),t.\u0275\u0275template(2,wn,0,0,"ng-template",8),t.\u0275\u0275elementEnd()()}if(2&U){const T=t.\u0275\u0275nextContext(),$=t.\u0275\u0275reference(3);t.\u0275\u0275classProp("disabled",T.previousDisabled()),t.\u0275\u0275advance(1),t.\u0275\u0275attribute("tabindex",T.previousDisabled()?"-1":null)("aria-disabled",T.previousDisabled()?"true":null),t.\u0275\u0275advance(1),t.\u0275\u0275property("ngTemplateOutlet",(null==T.tplPrevious?null:T.tplPrevious.templateRef)||$)("ngTemplateOutletContext",t.\u0275\u0275pureFunction1(6,nr,T.previousDisabled()))}}function bn(U,le){}function cn(U,le){}function Dn(U,le){if(1&U){const T=t.\u0275\u0275getCurrentView();t.\u0275\u0275elementStart(0,"li",17)(1,"a",24),t.\u0275\u0275listener("click",function(ge){t.\u0275\u0275restoreView(T);const Te=t.\u0275\u0275nextContext();
1return Te.selectPage(Te.page+1),t.\u0275\u0275resetView(ge.preventDefault())}),t.\u0275\u0275template(2,cn,0,0,"ng-template",8),t.\u0275\u0275elementEnd()()}if(2&U){const T=t.\u0275\u0275nextContext(),$=t.\u0275\u0275reference(5);t.\u0275\u0275classProp("disabled",T.nextDisabled()),t.\u0275\u0275advance(1),t.\u0275\u0275attribute("tabindex",T.nextDisabled()?"-1":null)("aria-disabled",T.nextDisabled()?"true":null),t.\u0275\u0275advance(1),t.\u0275\u0275property("ngTemplateOutlet",(null==T.tplNext?null:T.tplNext.templateRef)||$)("ngTemplateOutletContext",t.\u0275\u0275pureFunction2(6,bt,T.nextDisabled(),T.page))}}function In(U,le){}function Nn(U,le){if(1&U){const T=t.\u0275\u0275getCurrentView();t.\u0275\u0275elementStart(0,"li",17)(1,"a",25),t.\u0275\u0275listener("click",function(ge){t.\u0275\u0275restoreView(T);const Te=t.\u0275\u0275nextContext();return Te.selectPage(Te.pageCount),t.\u0275\u0275resetView(ge.preventDefault())}),t.\u0275\u0275template(2,In,0,0,"ng-template",8),t.\u0275\u0275elementEnd()()}if(2&U){const T=t.\u0275\u0275nextContext(),$=t.\u0275\u0275reference(7);t.\u0275\u0275classProp("disabled",T.nextDisabled()),t.\u0275\u0275advance(1),t.\u0275\u0275attribute("tabindex",T.nextDisabled()?"-1":null)("aria-disabled",T.nextDisabled()?"true":null),t.\u0275\u0275advance(1),t.\u0275\u0275property("ngTemplateOutlet",(null==T.tplLast?null:T.tplLast.templateRef)||$)("ngTemplateOutletContext",t.\u0275\u0275pureFunction2(6,bt,T.nextDisabled(),T.page))}}const Rn=function(U,le,T){return{$implicit:U,pages:le,disabled:T}};function rr(U,le){1&U&&t.\u0275\u0275text(0),2&U&&t.\u0275\u0275textInterpolate(100===le.fill?"\u2605":"\u2606")}function Mr(U,le){}function Mn(U,le){if(1&U){const T=t.\u0275\u0275getCurrentView();t.\u0275\u0275elementStart(0,"span",2),t.\u0275\u0275text(1),t.\u0275\u0275elementEnd(),t.\u0275\u0275elementStart(2,"span",3),t.\u0275\u0275listener("mouseenter",function(){const Te=t.\u0275\u0275restoreView(T).index,Lt=t.\u0275\u0275nextContext();return t.\u0275\u0275resetView(Lt.enter(Te+1))})("click",function(){const Te=t.\u0275\u0275restoreView(T).index,Lt=t.\u0275\u0275nextContext();return t.\u0275\u0275resetView(Lt.handleClick(Te+1))}),t.\u0275\u0275template(3,Mr,0,0,"ng-template",4),t.\u0275\u0275elementEnd()}if(2&U){const T=le.index,$=t.\u0275\u0275nextContext(),ge=t.\u0275\u0275reference(1);t.\u0275\u0275advance(1),t.\u0275\u0275textInterpolate1("(",T<$.nextRate?"*":" ",")"),t.\u0275\u0275advance(1),t.\u0275\u0275styleProp("cursor",$.isInteractive()?"pointer":"default"),t.\u0275\u0275advance(1),t.\u0275\u0275property("ngTemplateOutlet",$.starTemplate||$.starTemplateFromContent||ge)("ngTemplateOutletContext",$.contexts[T])}}function Xn(U,le){if(1&U){const T=t.\u0275\u0275getCurrentView();t.\u0275\u0275elementStart(0,"button",11),t.\u0275\u0275listener("click",function(){t.\u0275\u0275restoreView(T);const ge=t.\u0275\u0275nextContext();return t.\u0275\u0275resetView(ge.changeHour(ge.hourStep))}),t.\u0275\u0275element(1,"span",12),t.\u0275\u0275elementStart(2,"span",13),t.\u0275\u0275i18n(3,14),t.\u0275\u0275elementEnd()()}if(2&U){const T=t.\u0275\u0275nextContext();t.\u0275\u0275classProp("btn-sm",T.isSmallSize)("btn-lg",T.isLargeSize)("disabled",T.disabled),t.\u0275\u0275property("disabled",T.disabled)}}function cr(U,le){if(1&U){const T=t.\u0275\u0275getCurrentView();t.\u0275\u0275elementStart(0,"button",11),t.\u0275\u0275listener("click",function(){t.\u0275\u0275restoreView(T);const ge=t.\u0275\u0275nextContext();
1return t.\u0275\u0275resetView(ge.changeHour(-ge.hourStep))}),t.\u0275\u0275element(1,"span",15),t.\u0275\u0275elementStart(2,"span",13),t.\u0275\u0275i18n(3,16),t.\u0275\u0275elementEnd()()}if(2&U){const T=t.\u0275\u0275nextContext();t.\u0275\u0275classProp("btn-sm",T.isSmallSize)("btn-lg",T.isLargeSize)("disabled",T.disabled),t.\u0275\u0275property("disabled",T.disabled)}}function Qr(U,le){if(1&U){const T=t.\u0275\u0275getCurrentView();t.\u0275\u0275elementStart(0,"button",11),t.\u0275\u0275listener("click",function(){t.\u0275\u0275restoreView(T);const ge=t.\u0275\u0275nextContext();return t.\u0275\u0275resetView(ge.changeMinute(ge.minuteStep))}),t.\u0275\u0275element(1,"span",12),t.\u0275\u0275elementStart(2,"span",13),t.\u0275\u0275i18n(3,17),t.\u0275\u0275elementEnd()()}if(2&U){const T=t.\u0275\u0275nextContext();t.\u0275\u0275classProp("btn-sm",T.isSmallSize)("btn-lg",T.isLargeSize)("disabled",T.disabled),t.\u0275\u0275property("disabled",T.disabled)}}function Xr(U,le){if(1&U){const T=t.\u0275\u0275getCurrentView();t.\u0275\u0275elementStart(0,"button",11),t.\u0275\u0275listener("click",function(){t.\u0275\u0275restoreView(T);const ge=t.\u0275\u0275nextContext();return t.\u0275\u0275resetView(ge.changeMinute(-ge.minuteStep))}),t.\u0275\u0275element(1,"span",15),t.\u0275\u0275elementStart(2,"span",13),t.\u0275\u0275i18n(3,18),t.\u0275\u0275elementEnd()()}if(2&U){const T=t.\u0275\u0275nextContext();t.\u0275\u0275classProp("btn-sm",T.isSmallSize)("btn-lg",T.isLargeSize)("disabled",T.disabled),t.\u0275\u0275property("disabled",T.disabled)}}function wr(U,le){1&U&&(t.\u0275\u0275elementStart(0,"div",5),t.\u0275\u0275text(1,":"),t.\u0275\u0275elementEnd())}function ui(U,le){if(1&U){const T=t.\u0275\u0275getCurrentView();t.\u0275\u0275elementStart(0,"button",11),t.\u0275\u0275listener("click",function(){t.\u0275\u0275restoreView(T);const ge=t.\u0275\u0275nextContext(2);return t.\u0275\u0275resetView(ge.changeSecond(ge.secondStep))}),t.\u0275\u0275element(1,"span",12),t.\u0275\u0275elementStart(2,"span",13),t.\u0275\u0275i18n(3,21),t.\u0275\u0275elementEnd()()}if(2&U){const T=t.\u0275\u0275nextContext(2);t.\u0275\u0275classProp("btn-sm",T.isSmallSize)("btn-lg",T.isLargeSize)("disabled",T.disabled),t.\u0275\u0275property("disabled",T.disabled)}}function Nr(U,le){if(1&U){const T=t.\u0275\u0275getCurrentView();t.\u0275\u0275elementStart(0,"button",11),t.\u0275\u0275listener("click",function(){t.\u0275\u0275restoreView(T);const ge=t.\u0275\u0275nextContext(2);return t.\u0275\u0275resetView(ge.changeSecond(-ge.secondStep))}),t.\u0275\u0275element(1,"span",15),t.\u0275\u0275elementStart(2,"span",13),t.\u0275\u0275i18n(3,22),t.\u0275\u0275elementEnd()()}if(2&U){const T=t.\u0275\u0275nextContext(2);t.\u0275\u0275classProp("btn-sm",T.isSmallSize)("btn-lg",T.isLargeSize)("disabled",T.disabled),t.\u0275\u0275property("disabled",T.disabled)}}function ii(U,le){if(1&U){const T=t.\u0275\u0275getCurrentView();t.\u0275\u0275elementStart(0,"div",19),t.\u0275\u0275template(1,ui,4,7,"button",3),t.\u0275\u0275elementStart(2,"input",20),t.\u0275\u0275listener("change",function(ge){t.\u0275\u0275restoreView(T);const Te=t.\u0275\u0275nextContext();return t.\u0275\u0275resetView(Te.updateSecond(ge.target.value))})("blur",function(){t.\u0275\u0275restoreView(T);const ge=t.\u0275\u0275nextContext();return t.\u0275\u0275resetView(ge.handleBlur())})("input",function(ge){t.\u0275\u0275restoreView(T);const Te=t.\u0275\u0275nextContext();return t.\u0275\u0275resetView(Te.formatInput(ge.target))})("keydown.ArrowUp",function(ge){t.\u0275\u0275restoreView(T);const Te=t.\u0275\u0275nextContext();return Te.changeSecond(Te.secondStep),t.\u0275\u0275resetView(ge.preventDefault())})("keydown.ArrowDown",function(ge){t.\u0275\u0275restoreView(T);const Te=t.\u0275\u0275nextContext();return Te.changeSecond(-Te.secondStep),t.\u0275\u0275resetView(ge.preventDefault())}),t.\u0275\u0275elementEnd(),t.\u0275\u0275template(3,Nr,4,7,"button",3),t.\u0275\u0275elementEnd()}if(2&U){const T=t.\u0275\u0275nextContext();t.\u0275\u0275advance(1),t.\u0275\u0275property("ngIf",T.spinners),t.\u0275\u0275advance(1),t.\u0275\u0275classProp("form-control-sm",T.isSmallSize)("form-control-lg",T.isLargeSize),t.\u0275\u0275property("value",T.formatMinSec(null==T.model?null:T.model.second))("readOnly",T.readonlyInput
1s)("disabled",T.disabled),t.\u0275\u0275advance(1),t.\u0275\u0275property("ngIf",T.spinners)}}function fi(U,le){1&U&&t.\u0275\u0275element(0,"div",5)}function sr(U,le){if(1&U&&(t.\u0275\u0275elementContainerStart(0),t.\u0275\u0275i18n(1,27),t.\u0275\u0275elementContainerEnd()),2&U){const T=t.\u0275\u0275nextContext(2);t.\u0275\u0275advance(1),t.\u0275\u0275i18nExp(T.i18n.getAfternoonPeriod()),t.\u0275\u0275i18nApply(1)}}function Ai(U,le){if(1&U&&t.\u0275\u0275i18n(0,28),2&U){const T=t.\u0275\u0275nextContext(2);t.\u0275\u0275i18nExp(T.i18n.getMorningPeriod()),t.\u0275\u0275i18nApply(0)}}function Wr(U,le){if(1&U){const T=t.\u0275\u0275getCurrentView();t.\u0275\u0275elementStart(0,"div",23)(1,"button",24),t.\u0275\u0275listener("click",function(){t.\u0275\u0275restoreView(T);const ge=t.\u0275\u0275nextContext();return t.\u0275\u0275resetView(ge.toggleMeridian())}),t.\u0275\u0275template(2,sr,2,1,"ng-container",25),t.\u0275\u0275template(3,Ai,1,1,"ng-template",null,26,t.\u0275\u0275templateRefExtractor),t.\u0275\u0275elementEnd()()}if(2&U){const T=t.\u0275\u0275reference(4),$=t.\u0275\u0275nextContext();t.\u0275\u0275advance(1),t.\u0275\u0275classProp("btn-sm",$.isSmallSize)("btn-lg",$.isLargeSize)("disabled",$.disabled),t.\u0275\u0275property("disabled",$.disabled),t.\u0275\u0275advance(1),t.\u0275\u0275property("ngIf",$.model&&$.model.hour>=12)("ngIfElse",T)}}function Yi(U,le){if(1&U&&(t.\u0275\u0275elementStart(0,"span"),t.\u0275\u0275text(1),t.\u0275\u0275elementEnd()),2&U){const T=t.\u0275\u0275nextContext().$implicit,$=t.\u0275\u0275nextContext();t.\u0275\u0275classMap($.highlightClass),t.\u0275\u0275advance(1),t.\u0275\u0275textInterpolate(T)}}function ut(U,le){if(1&U&&t.\u0275\u0275text(0),2&U){const T=t.\u0275\u0275nextContext().$implicit;t.\u0275\u0275textInterpolate(T)}}function tn(U,le){if(1&U&&(t.\u0275\u0275template(0,Yi,2,3,"span",1),t.\u0275\u0275template(1,ut,1,1,"ng-template",null,2,t.\u0275\u0275templateRefExtractor)),2&U){const T=le.odd,$=t.\u0275\u0275reference(2);t.\u0275\u0275property("ngIf",T)("ngIfElse",$)}}function Gt(U,le){if(1&U&&t.\u0275\u0275element(0,"ngb-highlight",2),2&U){const $=le.term;t.\u0275\u0275property("result",(0,le.formatter)(le.result))("term",$)}}function dn(U,le){}const gn=function(U,le,T){return{result:U,term:le,formatter:T}};function An(U,le){if(1&U){const T=t.\u0275\u0275getCurrentView();t.\u0275\u0275elementStart(0,"button",3),t.\u0275\u0275listener("mouseenter",function(){const Te=t.\u0275\u0275restoreView(T).index,Lt=t.\u0275\u0275nextContext();return t.\u0275\u0275resetView(Lt.markActive(Te))})("click",function(){const Te=t.\u0275\u0275restoreView(T).$implicit,Lt=t.\u0275\u0275nextContext();return t.\u0275\u0275resetView(Lt.select(Te))}),t.\u0275\u0275template(1,dn,0,0,"ng-template",4),t.\u0275\u0275elementEnd()}if(2&U){const T=le.$implicit,$=le.index,ge=t.\u0275\u0275nextContext(),Te=t.\u0275\u0275reference(1);t.\u0275\u0275classProp("active",$===ge.activeIdx),t.\u0275\u0275property("id",ge.id+"-"+$),t.\u0275\u0275advance(1),t.\u0275\u0275property("ngTemplateOutlet",ge.resultTemplate||Te)("ngTemplateOutletContext",t.\u0275\u0275pureFunction3(5,gn,T,ge.term,ge.formatter))}}function Qn(U){return parseInt(`${U}`,10)}function Cr(U){return null!=U?`${U}`:""}function mr(U,le,T=0){return Math.max(Math.min(U,le),T)}function Fr(U){return"string"==typeof U}function Gn(U){return!isNaN(Qn(U))}function qn(U){return"number"==typeof U&&isFinite(U)&&Math.floor(U)===U}function wi(U){return null!=U}function jr(U){return Gn(U)?`0${U}`.slice(-2):""}function vo(U,le){return U&&U.className&&U.className.split&&U.className.split(/\s+/).indexOf(le)>=0}function ri(U){return(U||document.body).getBoundingClientRect()}function Eo(U){return U.normalize("NFD").replace(/[\u0300-\u036f]/g,"")}typeof Element<"u"&&!Element.prototype.closest&&(Element.prototype.closest=function(U){let le=this;if(!document.documentElement.contains(le))return null;do{if(le.matches(U))return le;le=le.parentElement||le.parentNode}while(null!==le&&1===le.nodeType);return null});const eo={animation:!0,transitionTimerDelayMs:5},cs=()=>{},{transitionTimerDelayMs:$o}=eo,yo=new Map,_i=(U,le,T,$)=>{let ge=$.context||{};const Te=yo.get(le);if(Te)switch($.runningTransition){case"continue":return i.E;case"stop":U.run(()=>Te.transition$.complete()),ge=Object.assign(Te.context,ge),yo.delete(le)}const Lt=T(le,$.animation,ge)||cs;if(!$.animation||"none"===window.getComputedStyle(le).transitionProperty)return U.run(()=>Lt()),(0,d.of)(void 0).pipe(function Ko(U){return le=>new o.y(T=>le.subscribe({next:Lt=>U.run(()=>T.next(Lt)),error:Lt=>U.run(()=>T.error(Lt)),complete:()=>U.run(()=>T.complete())}))}(U));const an=new r.x,vn=new r.x,Sn=an.pipe(function D(...U){return le=>(0,P.z)(le,(0,d.of)(...U))}(!0));yo.set(le,{transition$:an,complete:()=>{vn.next(),vn.complete()},context:ge});const Kn=function Vo(U){const{transitionDelay:le,transitionDuration:T}=window.getComputedStyle(U);return 1e3*(parseFloat(le)+parseFloat(T))}(le);return U.runOutsideAngular(()=>{const gr=(0,a.R)(le,"transitionend").pipe((0,l.R)(Sn),(0,C.h)(({target:vr})=>vr===le)),tr=(0,p.H)(Kn+$o).pipe((0,l.R)(Sn));(0,h.S)(tr,gr,vn).pipe((0,l.R)(Sn)).subscribe(()=>{yo.delete(le),U.run(()=>{Lt(),an.next(),an.complete()})})}),an.asObservable()},ho=(U,le,T)=>{let{direction:$,maxHeight:ge}=T;const{classList:Te}=U;function Lt(){Te.add("collapse"),"show"===$?Te.add("show"):Te.remove("show")}if(le)return ge||(ge=function _s(U){if(typeof navigator>"u")return"0px";const{classList:le}=U,T=le.contains("show");T||le.add("show"),U.style.height="";const $=U.getBoundingClientRect().height+"px";return T||le.remove("show"),$}(U),T.maxHeight=ge,U.style.height="show"!==$?ge:"0px",Te.remove("collapse"),Te.remove("collapsing"),Te.remove("show"),ri(U),Te.add("collapsing")),U.style.height="show"===$?ge:"0px",()=>{Lt(),Te.remove("collapsing"),U.style.height=""};Lt()};let to=(()=>{class U{constructor(){this.animation=eo.animation}}return U.\u0275fac=function(T){return new(T||U)},U.\u0275prov=t.\u0275\u0275defineInjectable({token:U,factory:U.\u0275fac,providedIn:"root"}),U})(),ds=(()=>{class U{constructor(T){this._ngbConfig=T,this.closeOthers=!1}get animation(){return void 0===this._animation?this._ngbConfig.animation:this._animation}set animation(T){this._animation=T}}return U.\u0275fac=function(T){return new(T||U)(t.\u0275\u0275inject(to))},U.\u0275prov=t.\u0275\u0275defineInjectable({token:U,factory:U.\u0275fac,providedIn:"root"}),U})(),Ds=0,Co=(()=>{class U{constructor(T){this.templateRef=T}}return U.\u0275fac=function(T){return new(T||U)(t.\u0275\u0275directiveInject(t.TemplateRef))},U.\u0275dir=t.\u0275\u0275defineDirective({type:U,selectors:[["ng-template","ngbPanelHeader",""]]}),U})(),Po=(()=>{class U{constructor(T){this.templateRef=T}}return U.\u0275fac=function(T){return new(T||U)(t.\u0275\u0275directiveInject(t.TemplateRef))},U.\u0275dir=t.\u0275\u0275defineDirective({type:U,selectors:[["ng-template","ngbPanelTitle",""]]}),U})(),fo=(()=>{class U{constructor(T){this.templateRef=T}}return U.\u0275fac=function(T){return new(T||U)(t.\u0275\u0275directiveInject(t.TemplateRef))},U.\u0275dir=t.\u0275\u0275defineDirective({type:U,selectors:[["ng-template","ngbPanelContent",""]]}),U})(),mo=(()=>{class U{constructor(){this.disabled=!1,this.id="ngb-panel-"+Ds++,this.isOpen=!1,this.initClassDone=!1,this.transitionRunning=!1,this.shown=new t.EventEmitter,this.hidden=new t.EventEmitter}ngAfterContentChecked(){this.titleTpl=this.titleTpls.first,this.headerTpl=this.headerTpls.first,this.contentTpl=this.contentTpls.first}}return U.\u0275fac=function(T){return new(T||U)},U.\u0275dir=t.\u0275\u0275defineDirective({type:U,selectors:[["ngb-panel"]],contentQueries:function(T,$,ge){if(1&T&&(t.\u0275\u0275contentQuery(ge,Po,4),t.\u0275\u0275contentQuery(ge,Co,4),t.\u0275\u0275contentQuery(ge,fo,4)),2&T){let Te;t.\u0275\u0275queryRefresh(Te=t.\u0275\u0275loadQuery())&&($.titleTpls=Te),t.\u0275\u0275queryRefresh(Te=t.\u0275\u0275loadQuery())&&($.headerTpls=Te),t.\u0275\u0275queryRefresh(Te=t.\u0275\u0275loadQuery())&&($.contentTpls=Te)}}
1,inputs:{disabled:"disabled",id:"id",title:"title",type:"type",cardClass:"cardClass"},outputs:{shown:"shown",hidden:"hidden"}}),U})(),ft=(()=>{class U{constructor(T){this._El=T,this.ngbRef=new t.EventEmitter}ngOnInit(){this.ngbRef.emit(this._El.nativeElement)}ngOnDestroy(){this.ngbRef.emit(null)}}return U.\u0275fac=function(T){return new(T||U)(t.\u0275\u0275directiveInject(t.ElementRef))},U.\u0275dir=t.\u0275\u0275defineDirective({type:U,selectors:[["","ngbRef",""]],outputs:{ngbRef:"ngbRef"}}),U})(),_n=(()=>{class U{constructor(T,$,ge){this._ngZone=$,this._changeDetector=ge,this.activeIds=[],this.destroyOnHide=!0,this.panelChange=new t.EventEmitter,this.shown=new t.EventEmitter,this.hidden=new t.EventEmitter,this.animation=T.animation,this.type=T.type,this.closeOtherPanels=T.closeOthers}isExpanded(T){return this.activeIds.indexOf(T)>-1}expand(T){this._changeOpenState(this._findPanelById(T),!0)}expandAll(){this.closeOtherPanels?0===this.activeIds.length&&this.panels.length&&this._changeOpenState(this.panels.first,!0):this.panels.forEach(T=>this._changeOpenState(T,!0))}collapse(T){this._changeOpenState(this._findPanelById(T),!1)}collapseAll(){this.panels.forEach(T=>{this._changeOpenState(T,!1)})}toggle(T){const $=this._findPanelById(T);$&&this._changeOpenState($,!$.isOpen)}ngAfterContentChecked(){Fr(this.activeIds)&&(this.activeIds=this.activeIds.split(/\s*,\s*/)),this.panels.forEach(T=>{T.isOpen=!T.disabled&&this.activeIds.indexOf(T.id)>-1}),this.activeIds.length>1&&this.closeOtherPanels&&(this._closeOthers(this.activeIds[0],!1),this._updateActiveIds()),this._ngZone.onStable.pipe((0,I.q)(1)).subscribe(()=>{this.panels.forEach(T=>{const $=T.panelDiv;$?T.initClassDone||(T.initClassDone=!0,_i(this._ngZone,$,ho,{animation:!1,runningTransition:"continue",context:{direction:T.isOpen?"show":"hide"}})):T.initClassDone=!1})})}_changeOpenState(T,$){if(null!=T&&!T.disabled&&T.isOpen!==$){let ge=!1;this.panelChange.emit({panelId:T.id,nextState:$,preventDefault:()=>{ge=!0}}),ge||(T.isOpen=$,T.transitionRunning=!0,$&&this.closeOtherPanels&&this._closeOthers(T.id),this._updateActiveIds(),this._runTransitions(this.animation))}}_closeOthers(T,$=!0){this.panels.forEach(ge=>{ge.id!==T&&ge.isOpen&&(ge.isOpen=!1,ge.transitionRunning=$)})}_findPanelById(T){return this.panels.find($=>$.id===T)||null}_updateActiveIds(){this.activeIds=this.panels.filter(T=>T.isOpen&&!T.disabled).map(T=>T.id)}_runTransitions(T){this._changeDetector.detectChanges(),this.panels.forEach($=>{$.transitionRunning&&_i(this._ngZone,$.panelDiv,ho,{animation:T,runningTransition:"stop",context:{direction:$.isOpen?"show":"hide"}}).subscribe(()=>{$.transitionRunning=!1;const{id:Te}=$;$.isOpen?($.shown.emit(),this.shown.emit(Te)):($.hidden.emit(),this.hidden.emit(Te))})})}}return U.\u0275fac=function(T){return new(T||U)(t.\u0275\u0275directiveInject(ds),t.\u0275\u0275directiveInject(t.NgZone),t.\u0275\u0275directiveInject(t.ChangeDetectorRef))},U.\u0275cmp=t.\u0275\u0275defineComponent({type:U,selectors:[["ngb-accordion"]],contentQueries:function(T,$,ge){if(1&T&&t.\u0275\u0275contentQuery(ge,mo,4),2&T){let Te;t.\u0275\u0275queryRefresh(Te=t.\u0275\u0275loadQuery())&&($.panels=Te)}},hostAttrs:["role","tablist",1,"accordion"],hostVars:1,hostBindings:function(T,$){2&T&&t.\u0275\u0275attribute("aria-multiselectable",!$.closeOtherPanels)},inputs:{animation:"animation",activeIds:"activeIds",closeOtherPanels:["closeOthers","closeOtherPanels"],destroyOnHide:"destroyOnHide",type:"type"},outputs:{panelChange:"panelChange",shown:"shown",hidden:"hidden"},exportAs:["ngbAccordion"],decls:3,vars:1,consts:[["ngbPanelHeader",""],["t",""],["ngFor","",3,"ngForOf"],[1,"btn","btn-link",3,"ngbPanelToggle"],[3,"ngTemplateOutlet"],["role","tab",3,"id"],[3,"ngTemplateOutlet","ngTemplateOutletContext"],["role","tabpanel",3,"id","ngbRef",4,"ngIf"],["role","tabpanel",3,"id","ngbRef"],[1,"card-body"]],template:function(T,$){1&T&&(t.\u0275\u0275template(0,k,3,3,"ng-template",0,1,t.\u0275\u0275templateRefExtractor),t.\u0275\u0275template(2,oe,4,11,"ng-template",2)),2&T&&(t.\u0275\u0275advance(2),t.\u0275\u0275property("ngForOf",$.panels))},dependencies:function(){return[Co,Re,n.tP,n.sg,n.O5,ft]},encapsulation:2}),U})(),Re=(()=>{class U{constructor(T,$){this.accordion=T,this.panel=$}set ngbPanelToggle(T){T&&(this.panel=T)}}return U.\u0275fac=function(T){return new(T||U)(t.\u0275\u0275directiveInject(_n),t.\u0275\u0275directiveInject(mo,9))},U.\u0275dir=t.\u0275\u0275defineDirective({type:U,selectors:[["button","ngbPanelToggle",""]],hostAttrs:["type","button"],hostVars:5,hostBindings:function(T,$){1&T&&t.\u0275\u0275listener("click",function(){return $.accordion.toggle($.panel.id)}),2&T&&(t.\u0275\u0275hostProperty("disabled",$.panel.disabled),t.\u0275\u0275attribute("aria-expanded",$.panel.isOpen)("aria-controls",$.panel.id),t.\u0275\u0275classProp("collapsed",!$.panel.isOpen))},inputs:{ngbPanelToggle:"ngbPanelToggle"}}),U})(),jt=(()=>{class U{}return U.\u0275fac=function(T){return new(T||U)},U.\u0275mod=t.\u0275\u0275defineNgModule({type:U}),U.\u0275inj=t.\u0275\u0275defineInjector({imports:[[n.ez]]}),U})(),xi=(()=>{class U{}return U.\u0275fac=function(T){return new(T||U)},U.\u0275mod=t.\u0275\u0275defineNgModule({type:U}),U.\u0275inj=t.\u0275\u0275defineInjector({imports:[[n.ez]]}),U})(),bi=(()=>{class U{}return U.\u0275fac=function(T){return new(T||U)},U.\u0275dir=t.\u0275\u0275defineDirective({type:U,selectors:[["","ngbButtonLabel",""]],hostVars:8,hostBindings:function(T,$){2&T&&t.\u0275\u0275classProp("btn",!0)("active",$.active)("disabled",$.disabled)("focus",$.focused)}}),U})(),Hi=(()=>{class U{constructor(T,$){this._label=T,this._cd=$,this.disabled=!1,this.valueChecked=!0,this.valueUnChecked=!1,this.onChange=ge=>{},this.onTouched=()=>{}}set focused(T){this._label.focused=T,T||this.onTouched()}onInputChange(T){const $=T.target.checked?this.valueChecked:this.valueUnChecked;this.onChange($),this.onTouched(),this.writeValue($)}registerOnChange(T){this.onChange=T}registerOnTouched(T){this.onTouched=T}setDisabledState(T){this.disabled=T,this._label.disabled=T}writeValue(T){this.checked=T===this.valueChecked,this._label.active=this.checked,this._cd.markForCheck()}}return U.\u0275fac=function(T){return new(T||U)(t.\u0275\u0275directiveInject(bi),t.\u0275\u0275directiveInject(t.ChangeDetectorRef))},U.\u0275dir=t.\u0275\u0275defineDirective({type:U,selectors:[["","ngbButton","","type","checkbox"]],hostVars:2,hostBindings:function(T,$){1&T&&t.\u0275\u0275listener("change",function(Te){return $.onInputChange(Te)})("focus",function(){return $.focused=!0})("blur",function(){return $.focused=!1}),2&T&&t.\u0275\u0275hostProperty("checked",$.checked)("disabled",$.disabled)},inputs:{disabled:"disabled",valueChecked:"valueChecked",valueUnChecked:"valueUnChecked"},features:[t.\u0275\u0275ProvidersFeature([{provide:Q.JU,useExisting:(0,t.forwardRef)(()=>U),multi:!0}])]}),U})(),Fi=0,si=(()=>{class U{constructor(){this._radios=new Set,this._value=null,this.name="ngb-radio-"+Fi++,this.onChange=T=>{},this.onTouched=()=>{}}get disabled(){return this._disabled}set disabled(T){this.setDisabledState(T)}onRadioChange(T){this.writeValue(T.value),this.onChange(T.value)}onRadioValueUpdate(){this._updateRadiosValue()}register(T){this._radios.add(T)}registerOnChange(T){this.onChange=T}registerOnTouched(T){this.onTouched=T}setDisabledState(T){this._disabled=T,this._updateRadiosDisabled()}unregister(T){this._radios.delete(T)}writeValue(T){this._value=T,this._updateRadiosValue()}_updateRadiosValue(){this._radios.forEach(T=>T.updateValue(this._value))}_updateRadiosDisabled(){this._radios.forEach(T=>T.updateDisabled())}}return U.\u0275fac=function(T){return new(T||U)},U.\u0275dir=t.\u0275\u0275defineDirective({type:U,selectors:[["","ngbRadioGroup",""]],hostAttrs:["role","radiogroup"],inputs:{name:"name"},features:[t.\u0275\u0275ProvidersFeature([{provide:Q.JU,useExisting:(0,t.forwardRef)(()=>U),multi:!0}])]}),U})(),Do=(()=>{class U{constructor(T,$,ge,Te,Lt){this._group=T,this._label=$,this._renderer=ge,this._element=Te,this._cd=Lt,this._value=null,this._group.register(this),this.updateDisabled()}set value(T){this._value=T;const $=T?T.toString():"";this._renderer.setProperty(this._element.nativeElement,"value",$),this._group.onRadioValueUpdate()}set disabled(T){this._disabled=!1!==T,this.updateDisabled()}set focused(T){this._label&&(this._label.focused=T),T||this._group.onTouched()}get checked(){return this._checked}get disabled(){return this._group.disabled||this._disabled}get value(){return this._value}get nameAttr(){return this.name||this._group.name}ngOnDestroy(){this._group.unregister(this)}onChange(){this._group.onRadioChange(this)}updateValue(T){this.value!==T&&this._cd.markForCheck(),this._checked=this.value===T,this._label.active=this._checked}updateDisabled(){this._label.disabled=this.disabled}}return U.\u0275fac=function(T){return new(T||U)(t.\u0275\u0275directiveInject(si),t.\u0275\u0275directiveInject(bi),t.\u0275\u0275directiveInject(t.Renderer2),t.\u0275\u0275directiveInject(t.ElementRef),t.\u0275\u0275directiveInject(t.ChangeDetectorRef))},U.\u0275dir=t.\u0275\u0275defineDirective({type:U,selectors:[["","ngbButton","","type","radio"]],hostVars:3,hostBindings:function(T,$){1&T&&t.\u0275\u0275listener("change",function(){return $.onChange()})("focus",function(){return $.focused=!0})("blur",function(){return $.focused=!1}),2&T&&t.\u0275\u0275hostProperty("checked",$.checked)("disabled",$.disabled)("name",$.nameAttr)},inputs:{name:"name",value:"value",disabled:"disabled"}}),U})(),Ro=(()=>{class U{}return U.\u0275fac=function(T){return new(T||U)},U.\u0275mod=t.\u0275\u0275defineNgModule({type:U}),U.\u0275inj=t.\u0275\u0275defineInjector({}),U})(),zo=(()=>{class U{}return U.\u0275fac=function(T){return new(T||U)},U.\u0275mod=t.\u0275\u0275defineNgModule({type:U}),U.\u0275inj=t.\u0275\u0275defineInjector({imports:[[n.ez]]}),U})(),xs=(()=>{class U{constructor(T){this._ngbConfig=T}get animation(){return void 0===this._animation?this._ngbConfig.animation:this._animation}set animation(T){this._animation=T}}return U.\u0275fac=function(T){return new(T||U)(t.\u0275\u0275inject(to))},U.\u0275prov=t.\u0275\u0275defineInjectable({token:U,factory:U.\u0275fac,providedIn:"root"}),U})(),Lo=(()=>{class U{constructor(T,$,ge){this._element=T,this._zone=ge,this.collapsed=!1,this.ngbCollapseChange=new t.EventEmitter,this.shown=new t.EventEmitter,this.hidden=new t.EventEmitter,this.animation=$.animation}ngOnInit(){this._runTransition(this.collapsed,!1)}ngOnChanges({collapsed:T}){T.firstChange||this._runTransitionWithEvents(this.collapsed,this.animation)}toggle(T=this.collapsed){this.collapsed=!T,this.ngbCollapseChange.next(this.collapsed),this._runTransitionWithEvents(this.collapsed,this.animation)}_runTransition(T,$){return _i(this._zone,this._element.nativeElement,ho,{animation:$,runningTransition:"stop",context:{direction:T?"hide":"show"}})}_runTransitionWithEvents(T,$){this._runTransition(T,$).subscribe(()=>{T?this.hidden.emit():this.shown.emit()})}}return U.\u0275fac=function(T){return new(T||U)(t.\u0275\u0275directiveInject(t.ElementRef),t.\u0275\u0275directiveInject(xs),t.\u0275\u0275directiveInject(t.NgZone))},U.\u0275dir=t.\u0275\u0275defineDirective({type:U,selectors:[["","ngbCollapse",""]],inputs:{animation:"animation",collapsed:["ngbCollapse","collapsed"]},outputs:{ngbCollapseChange:"ngbCollapseChange",shown:"shown",hidden:"hidden"},exportAs:["ngbCollapse"],features:[t.\u0275\u0275NgOnChangesFeature]}),U})(),hr=(()=>{class U{}return U.\u0275fac=function(T){return new(T||U)},U.\u0275mod=t.\u0275\u0275defineNgModule({type:U}),U.\u0275inj=t.\u0275\u0275defineInjector({}),U})();
1class zr{constructor(le,T,$){this.year=qn(le)?le:null,this.month=qn(T)?T:null,this.day=qn($)?$:null}static from(le){return le instanceof zr?le:le?new zr(le.year,le.month,le.day):null}equals(le){return null!=le&&this.year===le.year&&this.month===le.month&&this.day===le.day}before(le){return!!le&&(this.year===le.year?this.month===le.month?this.day!==le.day&&this.day<le.day:this.month<le.month:this.year<le.year)}after(le){return!!le&&(this.year===le.year?this.month===le.month?this.day!==le.day&&this.day>le.day:this.month>le.month:this.year>le.year)}}function se(U,le){return!function W(U,le){return!U&&!le||!!U&&!!le&&U.equals(le)}(U,le)}function me(U,le){return!(!U&&!le||U&&le&&U.year===le.year&&U.month===le.month)}function et(U,le,T){return U&&le&&U.before(le)?le:U&&T&&U.after(T)?T:U||null}function kt(U,le){const{minDate:T,maxDate:$,disabled:ge,markDisabled:Te}=le;return!(null==U||ge||Te&&Te(U,{year:U.year,month:U.month})||T&&U.before(T)||$&&U.after($))}function Vs(U){return new zr(U.getFullYear(),U.getMonth()+1,U.getDate())}function lo(U){const le=new Date(U.year,U.month-1,U.day,12);return isNaN(le.getTime())||le.setFullYear(U.year),le}let Go=(()=>{class U{}return U.\u0275fac=function(T){return new(T||U)},U.\u0275prov=t.\u0275\u0275defineInjectable({token:U,factory:function(){return function na(){return new gs}()},providedIn:"root"}),U})(),gs=(()=>{class U extends Go{getDaysPerWeek(){return 7}getMonths(){return[1,2,3,4,5,6,7,8,9,10,11,12]}getWeeksPerMonth(){return 6}getNext(T,$="d",ge=1){let Te=lo(T),Lt=!0,an=Te.getMonth();switch($){case"y":Te.setFullYear(Te.getFullYear()+ge);break;case"m":an+=ge,Te.setMonth(an),an%=12,an<0&&(an+=12);break;case"d":Te.setDate(Te.getDate()+ge),Lt=!1;break;default:return T}return Lt&&Te.getMonth()!==an&&Te.setDate(0),Vs(Te)}getPrev(T,$="d",ge=1){return this.getNext(T,$,-ge)}getWeekday(T){let ge=lo(T).getDay();return 0===ge?7:ge}getWeekNumber(T,$){7===$&&($=0);const Lt=lo(T[(11-$)%7]);Lt.setDate(Lt.getDate()+4-(Lt.getDay()||7));const an=Lt.getTime();return Lt.setMonth(0),Lt.setDate(1),Math.floor(Math.round((an-Lt.getTime())/864e5)/7)+1}getToday(){return Vs(new Date)}isValid(T){if(!(T&&qn(T.year)&&qn(T.month)&&qn(T.day)&&0!==T.year))return!1;const $=lo(T);return!isNaN($.getTime())&&$.getFullYear()===T.year&&$.getMonth()+1===T.month&&$.getDate()===T.day}}return U.\u0275fac=function(){let le;return function($){return(le||(le=t.\u0275\u0275getInheritedFactory(U)))($||U)}}(),U.\u0275prov=t.\u0275\u0275defineInjectable({token:U,factory:U.\u0275fac}),U})(),ji=(()=>{class U{getMonthLabel(T){return`${this.getMonthFullName(T.month,T.year)} ${this.getYearNumerals(T.year)}`}getDayNumerals(T){return`${T.day}`}getWeekNumerals(T){return`${T}`}getYearNumerals(T){return`${T}`}getWeekLabel(){return""}}return U.\u0275fac=function(T){return new(T||U)},U.\u0275prov=t.\u0275\u0275defineInjectable({token:U,factory:function(T){let $=null;return $=T?new T:function $s(U){return new Wi(U)}(t.\u0275\u0275inject(t.LOCALE_ID)),$},providedIn:"root"}),U})(),Wi=(()=>{class U extends ji{constructor(T){super(),this._locale=T,this._monthsShort=(0,n.UT)(T,n.x.Standalone,n.Tn.Abbreviated),this._monthsFull=(0,n.UT)(T,n.x.Standalone,n.Tn.Wide)}getWeekdayLabel(T,$){const ge=(0,n.Mn)(this._locale,n.x.Standalone,void 0===$?n.Tn.Short:$);return ge.map((Lt,an)=>ge[(an+1)%7])[T-1]||""}getMonthShortName(T){return this._monthsShort[T-1]||""}getMonthFullName(T){return this._monthsFull[T-1]||""}getDayAriaLabel(T){const $=new Date(T.year,T.month-1,T.day);return(0,n.p6)($,"fullDate",this._locale)}}return U.\u0275fac=function(T){return new(T||U)(t.\u0275\u0275inject(t.LOCALE_ID))},U.\u0275prov=t.\u0275\u0275defineInjectable({token:U,factory:U.\u0275fac}),U})(),ki=(()=>{class U{constructor(T,$){this._calendar=T,this._i18n=$,this._VALIDATORS={dayTemplateData:ge=>{if(this._state.dayTemplateData!==ge)return{dayTemplateData:ge}},displayMonths:ge=>{if(qn(ge=Qn(ge))&&ge>0&&this._state.displayMonths!==ge)return{displayMonths:ge}},disabled:ge=>{if(this._state.disabled!==ge)return{disabled:ge}},firstDayOfWeek:ge=>{if(qn(ge=Qn(ge))&&ge>=0&&this._state.firstDayOfWeek!==ge)return{firstDayOfWeek:ge}},focusVisible:ge=>{if(this._state.focusVisible!==ge&&!this._state.disabled)return{focusVisible:ge}},markDisabled:ge=>{if(this._state.markDisabled!==ge)return{markDisabled:ge}},maxDate:ge=>{const Te=this.toValidDate(ge,null);if(se(this._state.maxDate,Te))return{maxDate:Te}},minDate:ge=>{const Te=this.toValidDate(ge,null);if(se(this._state.minDate,Te))return{minDate:Te}},navigation:ge=>{if(this._state.navigation!==ge)return{navigation:ge}},outsideDays:ge=>{if(this._state.outsideDays!==ge)return{outsideDays:ge}},weekdays:ge=>{const Te=!0===ge||!1===ge?n.Tn.Short:ge,Lt=!0!==ge&&!1!==ge||ge;if(this._state.weekdayWidth!==Te||this._state.weekdaysVisible!==Lt)return{weekdayWidth:Te,weekdaysVisible:Lt}}},this._model$=new r.x,this._dateSelect$=new r.x,this._state={dayTemplateData:null,markDisabled:null,maxDate:null,minDate:null,disabled:!1,displayMonths:1,firstDate:null,firstDayOfWeek:1,lastDate:null,focusDate:null,focusVisible:!1,months:[],navigation:"select",outsideDays:"visible",prevDisabled:!1,nextDisabled:!1,selectedDate:null,selectBoxes:{years:[],months:[]},weekdayWidth:n.Tn.Short,weekdaysVisible:!0}}get model$(){return this._model$.pipe((0,C.h)(T=>T.months.length>0))}get dateSelect$(){return this._dateSelect$.pipe((0,C.h)(T=>null!==T))}set(T){let $=Object.keys(T).map(ge=>this._VALIDATORS[ge](T[ge])).reduce((ge,Te)=>({...ge,...Te}),{});Object.keys($).length>0&&this._nextState($)}focus(T){const $=this.toValidDate(T,null);null!=$&&!this._state.disabled&&se(this._state.focusDate,$)&&this._nextState({focusDate:T})}focusSelect(){kt(this._state.focusDate,this._state)&&this.select(this._state.focusDate,{emitEvent:!0})}open(T){const $=this.toValidDate(T,this._calendar.getToday());null!=$&&!this._state.disabled&&(!this._state.firstDate||me(this._state.firstDate,$))&&this._nextState({firstDate:$})}select(T,$={}){const ge=this.toValidDate(T,null);null!=ge&&!this._state.disabled&&(se(this._state.selectedDate,ge)&&this._nextState({selectedDate:ge}),$.emitEvent&&kt(ge,this._state)&&this._dateSelect$.next(ge))}toValidDate(T,$){const ge=zr.from(T);return void 0===$&&($=this._calendar.getToday()),this._calendar.isValid(ge)?ge:$}getMonth(T){for(let $ of this._state.months)if(T.month===$.number&&T.year===$.year)return $;throw new Error(`month ${T.month} of year ${T.year} not found`)}_nextState(T){const $=this._updateState(T);this._patchContexts($),this._state=$,this._model$.next(this._state)}_patchContexts(T){const{months:$,displayMonths:ge,selectedDate:Te,focusDate:Lt,focusVisible:an,disabled:vn,outsideDays:Sn}=T;T.months.forEach(Kn=>{Kn.weeks.forEach(gr=>{gr.days.forEach(tr=>{Lt&&(tr.context.focused=Lt.equals(tr.date)&&an),tr.tabindex=!vn&&Lt&&tr.date.equals(Lt)&&Lt.month===Kn.number?0:-1,!0===vn&&(tr.context.disabled=!0),void 0!==Te&&(tr.context.selected=null!==Te&&Te.equals(tr.date)),Kn.number!==tr.date.month&&(tr.hidden="hidden"===Sn||"collapsed"===Sn||ge>1&&tr.date.after($[0].firstDate)&&tr.date.before($[ge-1].lastDate))})})})}_updateState(T){const $=Object.assign({},this._state,T);let ge=$.firstDate;if(("minDate"in T||"maxDate"in T)&&(function De(U,le){if(le&&U&&le.before(U))throw new Error(`'maxDate' ${le} should be greater than 'minDate' ${U}`)}
1($.minDate,$.maxDate),$.focusDate=et($.focusDate,$.minDate,$.maxDate),$.firstDate=et($.firstDate,$.minDate,$.maxDate),ge=$.focusDate),"disabled"in T&&($.focusVisible=!1),"selectedDate"in T&&0===this._state.months.length&&(ge=$.selectedDate),"focusVisible"in T||"focusDate"in T&&($.focusDate=et($.focusDate,$.minDate,$.maxDate),ge=$.focusDate,0!==$.months.length&&$.focusDate&&!$.focusDate.before($.firstDate)&&!$.focusDate.after($.lastDate)))return $;if("firstDate"in T&&($.firstDate=et($.firstDate,$.minDate,$.maxDate),ge=$.firstDate),ge){const Lt=function ai(U,le,T,$,ge){const{displayMonths:Te,months:Lt}=T,an=Lt.splice(0,Lt.length);return Array.from({length:Te},(Sn,Kn)=>{const gr=Object.assign(U.getNext(le,"m",Kn),{day:1});if(Lt[Kn]=null,!ge){const tr=an.findIndex(vr=>vr.firstDate.equals(gr));-1!==tr&&(Lt[Kn]=an.splice(tr,1)[0])}return gr}).forEach((Sn,Kn)=>{null===Lt[Kn]&&(Lt[Kn]=function li(U,le,T,$,ge={}){const{dayTemplateData:Te,minDate:Lt,maxDate:an,firstDayOfWeek:vn,markDisabled:Sn,outsideDays:Kn,weekdayWidth:gr,weekdaysVisible:tr}=T,vr=U.getToday();ge.firstDate=null,ge.lastDate=null,ge.number=le.month,ge.year=le.year,ge.weeks=ge.weeks||[],ge.weekdays=ge.weekdays||[],le=function Ks(U,le,T){const $=U.getDaysPerWeek(),ge=new zr(le.year,le.month,1),Te=U.getWeekday(ge)%$;return U.getPrev(ge,"d",($+Te-T)%$)}(U,le,vn),tr||(ge.weekdays.length=0);for(let Ji=0;Ji<U.getWeeksPerMonth();Ji++){let Ti=ge.weeks[Ji];Ti||(Ti=ge.weeks[Ji]={number:0,days:[],collapsed:!0});const ls=Ti.days;for(let Zs=0;Zs<U.getDaysPerWeek();Zs++){0===Ji&&tr&&(ge.weekdays[Zs]=$.getWeekdayLabel(U.getWeekday(le),gr));const Wo=new zr(le.year,le.month,le.day),Sl=U.getNext(Wo),Zl=$.getDayAriaLabel(Wo);let sl=!!(Lt&&Wo.before(Lt)||an&&Wo.after(an));!sl&&Sn&&(sl=Sn(Wo,{month:ge.number,year:ge.year}));let Il=Wo.equals(vr),Tl=Te?Te(Wo,{month:ge.number,year:ge.year}):void 0;null===ge.firstDate&&Wo.month===ge.number&&(ge.firstDate=Wo),Wo.month===ge.number&&Sl.month!==ge.number&&(ge.lastDate=Wo);let hs=ls[Zs];hs||(hs=ls[Zs]={}),hs.date=Wo,hs.context=Object.assign(hs.context||{},{$implicit:Wo,date:Wo,data:Tl,currentMonth:ge.number,currentYear:ge.year,disabled:sl,focused:!1,selected:!1,today:Il}),hs.tabindex=-1,hs.ariaLabel=Zl,hs.hidden=!1,le=Sl}Ti.number=U.getWeekNumber(ls.map(Zs=>Zs.date),vn),Ti.collapsed="collapsed"===Kn&&ls[0].date.month!==ge.number&&ls[ls.length-1].date.month!==ge.number}return ge}(U,Sn,T,$,an.shift()||{}))}),Lt}(this._calendar,ge,$,this._i18n,"dayTemplateData"in T||"firstDayOfWeek"in T||"markDisabled"in T||"minDate"in T||"maxDate"in T||"disabled"in T||"outsideDays"in T||"weekdaysVisible"in T);$.months=Lt,$.firstDate=Lt[0].firstDate,$.lastDate=Lt[Lt.length-1].lastDate,"selectedDate"in T&&!kt($.selectedDate,$)&&($.selectedDate=null),"firstDate"in T&&(!$.focusDate||$.focusDate.before($.firstDate)||$.focusDate.after($.lastDate))&&($.focusDate=ge);const an=!this._state.firstDate||this._state.firstDate.year!==$.firstDate.year,vn=!this._state.firstDate||this._state.firstDate.month!==$.firstDate.month;"select"===$.navigation?(("minDate"in T||"maxDate"in T||0===$.selectBoxes.years.length||an)&&($.selectBoxes.years=function Bt(U,le,T){if(!U)return[];const $=le?Math.max(le.year,U.year-500):U.year-10,Te=(T?Math.min(T.year,U.year+500):U.year+10)-$+1,Lt=Array(Te);for(let an=0;an<Te;an++)Lt[an]=$+an;return Lt}($.firstDate,$.minDate,$.maxDate)),("minDate"in T||"maxDate"in T||0===$.selectBoxes.months.length||an)&&($.selectBoxes.months=function On(U,le,T,$){if(!le)return[];let ge=U.getMonths(le.year);if(T&&le.year===T.year){const Te=ge.findIndex(Lt=>Lt===T.month);ge=ge.slice(Te)}if($&&le.year===$.year){const Te=ge.findIndex(Lt=>Lt===$.month);ge=ge.slice(0,Te+1)}return ge}(this._calendar,$.firstDate,$.minDate,$.maxDate))):$.selectBoxes={years:[],months:[]},("arrows"===$.navigation||"select"===$.navigation)&&(vn||an||"minDate"in T||"maxDate"in T||"disabled"in T)&&($.prevDisabled=$.disabled||function qr(U,le,T){const $=Object.assign(U.getPrev(le,"m"),{day:1});return null!=T&&($.year===T.year&&$.month<T.month||$.year<T.year&&1===T.month)}(this._calendar,$.firstDate,$.minDate),$.nextDisabled=$.disabled||function Fn(U,le,T){const $=Object.assign(U.getNext(le,"m"),{day:1});return null!=T&&$.after(T)}(this._calendar,$.lastDate,$.maxDate))}return $}}return U.\u0275fac=function(T){return new(T||U)(t.\u0275\u0275inject(Go),t.\u0275\u0275inject(ji))},U.\u0275prov=t.\u0275\u0275defineInjectable({token:U,factory:U.\u0275fac}),U})();var is=(()=>{return(U=is||(is={}))[U.PREV=0]="PREV",U[U.NEXT=1]="NEXT",is;var U})();let Bo=(()=>{class U{constructor(){this.displayMonths=1,this.firstDayOfWeek=1,this.navigation="select",this.outsideDays="visible",this.showWeekNumbers=!1,this.weekdays=n.Tn.Short}}return U.\u0275fac=function(T){return new(T||U)},U.\u0275prov=t.\u0275\u0275defineInjectable({token:U,factory:U.\u0275fac,providedIn:"root"}),U})(),os=(()=>{class U{}return U.\u0275fac=function(T){return new(T||U)},U.\u0275prov=t.\u0275\u0275defineInjectable({token:U,factory:function(){return function Bi(){return new Js}()},providedIn:"root"}),U})(),Js=(()=>{class U extends os{fromModel(T){return T&&qn(T.year)&&qn(T.month)&&qn(T.day)?{year:T.year,month:T.month,day:T.day}:null}toModel(T){return T&&qn(T.year)&&qn(T.month)&&qn(T.day)?{year:T.year,month:T.month,day:T.day}:null}}return U.\u0275fac=function(){let le;
1return function($){return(le||(le=t.\u0275\u0275getInheritedFactory(U)))($||U)}}(),U.\u0275prov=t.\u0275\u0275defineInjectable({token:U,factory:U.\u0275fac}),U})(),_r=(()=>{class U{constructor(T){this.i18n=T}isMuted(){return!this.selected&&(this.date.month!==this.currentMonth||this.disabled)}}return U.\u0275fac=function(T){return new(T||U)(t.\u0275\u0275directiveInject(ji))},U.\u0275cmp=t.\u0275\u0275defineComponent({type:U,selectors:[["","ngbDatepickerDayView",""]],hostAttrs:[1,"btn-light"],hostVars:10,hostBindings:function(T,$){2&T&&t.\u0275\u0275classProp("bg-primary",$.selected)("text-white",$.selected)("text-muted",$.isMuted())("outside",$.isMuted())("active",$.focused)},inputs:{currentMonth:"currentMonth",date:"date",disabled:"disabled",focused:"focused",selected:"selected"},attrs:It,decls:1,vars:1,template:function(T,$){1&T&&t.\u0275\u0275text(0),2&T&&t.\u0275\u0275textInterpolate($.i18n.getDayNumerals($.date))},styles:["[ngbDatepickerDayView]{text-align:center;width:2rem;height:2rem;line-height:2rem;border-radius:.25rem;background:transparent}[ngbDatepickerDayView].outside{opacity:.5}\n"],encapsulation:2,changeDetection:0}),U})(),ei=(()=>{class U{constructor(T,$){this.i18n=T,this._renderer=$,this.select=new t.EventEmitter,this._month=-1,this._year=-1}changeMonth(T){this.select.emit(new zr(this.date.year,Qn(T),1))}changeYear(T){this.select.emit(new zr(Qn(T),this.date.month,1))}ngAfterViewChecked(){this.date&&(this.date.month!==this._month&&(this._month=this.date.month,this._renderer.setProperty(this.monthSelect.nativeElement,"value",this._month)),this.date.year!==this._year&&(this._year=this.date.year,this._renderer.setProperty(this.yearSelect.nativeElement,"value",this._year)))}}return U.\u0275fac=function(T){return new(T||U)(t.\u0275\u0275directiveInject(ji),t.\u0275\u0275directiveInject(t.Renderer2))},U.\u0275cmp=t.\u0275\u0275defineComponent({type:U,selectors:[["ngb-datepicker-navigation-select"]],viewQuery:function(T,$){if(1&T&&(t.\u0275\u0275viewQuery(it,7,t.ElementRef),t.\u0275\u0275viewQuery(Be,7,t.ElementRef)),2&T){let ge;t.\u0275\u0275queryRefresh(ge=t.\u0275\u0275loadQuery())&&($.monthSelect=ge.first),t.\u0275\u0275queryRefresh(ge=t.\u0275\u0275loadQuery())&&($.yearSelect=ge.first)}},inputs:{date:"date",disabled:"disabled",months:"months",years:"years"},outputs:{select:"select"},decls:6,vars:4,consts:function(){let le,T,$,ge;return le=$localize`:@@ngb.datepicker.select-month:Select month`,T=$localize`:@@ngb.datepicker.select-month:Select month`,$=$localize`:@@ngb.datepicker.select-year:Select year`,ge=$localize`:@@ngb.datepicker.select-year:Select year`,[["aria-label",le,"title",T,1,"custom-select",3,"disabled","change"],["month",""],[3,"value",4,"ngFor","ngForOf"],["aria-label",$,"title",ge,1,"custom-select",3,"disabled","change"],["year",""],[3,"value"]]},template:function(T,$){1&T&&(t.\u0275\u0275elementStart(0,"select",0,1),t.\u0275\u0275listener("change",function(Te){return $.changeMonth(Te.target.value)}),t.\u0275\u0275template(2,Xe,2,3,"option",2),t.\u0275\u0275elementEnd(),t.\u0275\u0275elementStart(3,"select",3,4),t.\u0275\u0275listener("change",function(Te){return $.changeYear(Te.target.value)}),t.\u0275\u0275template(5,pt,2,2,"option",2),t.\u0275\u0275elementEnd()),2&T&&(t.\u0275\u0275property("disabled",$.disabled),t.\u0275\u0275advance(2),t.\u0275\u0275property("ngForOf",$.months),t.\u0275\u0275advance(1),t.\u0275\u0275property("disabled",$.disabled),t.\u0275\u0275advance(2),t.\u0275\u0275property("ngForOf",$.years))},dependencies:[n.sg,Q.YN,Q.Kr],styles:["ngb-datepicker-navigation-select>.custom-select{flex:1 1 auto;padding:0 .5rem;font-size:.875rem;height:1.85rem}ngb-datepicker-navigation-select>.custom-select:focus{z-index:1}ngb-datepicker-navigation-select>.custom-select::-ms-value{background-color:transparent!important}\n"],encapsulation:2,changeDetection:0}),U})(),no=(()=>{class U{constructor(T){this.i18n=T,this.navigation=is,this.months=[],this.navigate=new t.EventEmitter,this.select=new t.EventEmitter}onClickPrev(T){T.currentTarget.focus(),this.navigate.emit(this.navigation.PREV)}
1onClickNext(T){T.currentTarget.focus(),this.navigate.emit(this.navigation.NEXT)}}return U.\u0275fac=function(T){return new(T||U)(t.\u0275\u0275directiveInject(ji))},U.\u0275cmp=t.\u0275\u0275defineComponent({type:U,selectors:[["ngb-datepicker-navigation"]],inputs:{date:"date",disabled:"disabled",months:"months",showSelect:"showSelect",prevDisabled:"prevDisabled",nextDisabled:"nextDisabled",selectBoxes:"selectBoxes"},outputs:{navigate:"navigate",select:"select"},decls:8,vars:4,consts:function(){let le,T,$,ge;return le=$localize`:@@ngb.datepicker.previous-month:Previous month`,T=$localize`:@@ngb.datepicker.previous-month:Previous month`,$=$localize`:@@ngb.datepicker.next-month:Next month`,ge=$localize`:@@ngb.datepicker.next-month:Next month`,[[1,"ngb-dp-arrow"],["type","button","aria-label",le,"title",T,1,"btn","btn-link","ngb-dp-arrow-btn",3,"disabled","click"],[1,"ngb-dp-navigation-chevron"],["class","ngb-dp-navigation-select",3,"date","disabled","months","years","select",4,"ngIf"],[4,"ngIf"],[1,"ngb-dp-arrow","right"],["type","button","aria-label",$,"title",ge,1,"btn","btn-link","ngb-dp-arrow-btn",3,"disabled","click"],[1,"ngb-dp-navigation-select",3,"date","disabled","months","years","select"],["ngFor","",3,"ngForOf"],["class","ngb-dp-arrow",4,"ngIf"],[1,"ngb-dp-month-name"]]},template:function(T,$){1&T&&(t.\u0275\u0275elementStart(0,"div",0)(1,"button",1),t.\u0275\u0275listener("click",function(Te){return $.onClickPrev(Te)}),t.\u0275\u0275element(2,"span",2),t.\u0275\u0275elementEnd()(),t.\u0275\u0275template(3,Mt,1,4,"ngb-datepicker-navigation-select",3),t.\u0275\u0275template(4,en,1,1,null,4),t.\u0275\u0275elementStart(5,"div",5)(6,"button",6),t.\u0275\u0275listener("click",function(Te){return $.onClickNext(Te)}),t.\u0275\u0275element(7,"span",2),t.\u0275\u0275elementEnd()()),2&T&&(t.\u0275\u0275advance(1),t.\u0275\u0275property("disabled",$.prevDisabled),t.\u0275\u0275advance(2),t.\u0275\u0275property("ngIf",$.showSelect),t.\u0275\u0275advance(1),t.\u0275\u0275property("ngIf",!$.showSelect),t.\u0275\u0275advance(2),t.\u0275\u0275property("disabled",$.nextDisabled))},dependencies:[ei,n.O5,n.sg],styles:["ngb-datepicker-navigation{display:flex;align-items:center}.ngb-dp-navigation-chevron{border-style:solid;border-width:.2em .2em 0 0;display:inline-block;width:.75em;height:.75em;margin-left:.25em;margin-right:.15em;transform:rotate(-135deg)}.ngb-dp-arrow{display:flex;flex:1 1 auto;padding-right:0;padding-left:0;margin:0;width:2rem;height:2rem}.ngb-dp-arrow.right{justify-content:flex-end}.ngb-dp-arrow.right .ngb-dp-navigation-chevron{transform:rotate(45deg);margin-left:.15em;margin-right:.25em}.ngb-dp-arrow-btn{padding:0 .25rem;margin:0 .5rem;border:none;background-color:transparent;z-index:1}.ngb-dp-arrow-btn:focus{outline-width:1px;outline-style:auto}@media all and (-ms-high-contrast: none),(-ms-high-contrast: active){.ngb-dp-arrow-btn:focus{outline-style:solid}}.ngb-dp-month-name{font-size:larger;height:2rem;line-height:2rem;text-align:center}.ngb-dp-navigation-select{display:flex;flex:1 1 9rem}\n"],encapsulation:2,changeDetection:0}),U})();var er=(()=>{return(U=er||(er={}))[U.Tab=9]="Tab",U[U.Enter=13]="Enter",U[U.Escape=27]="Escape",U[U.Space=32]="Space",U[U.PageUp=33]="PageUp",U[U.PageDown=34]="PageDown",U[U.End=35]="End",U[U.Home=36]="Home",U[U.ArrowLeft=37]="ArrowLeft",U[U.ArrowUp=38]="ArrowUp",U[U.ArrowRight=39]="ArrowRight",U[U.ArrowDown=40]="ArrowDown",er;var U})();let qs=(()=>{class U{processKey(T,$){const{state:ge,calendar:Te}=$;switch(T.which){case er.PageUp:$.focusDate(Te.getPrev(ge.focusedDate,T.shiftKey?"y":"m",1));break;case er.PageDown:$.focusDate(Te.getNext(ge.focusedDate,T.shiftKey?"y":"m",1));break;case er.End:$.focusDate(T.shiftKey?ge.maxDate:ge.lastDate);break;case er.Home:$.focusDate(T.shiftKey?ge.minDate:ge.firstDate);break;case er.ArrowLeft:$.focusDate(Te.getPrev(ge.focusedDate,"d",1));break;case er.ArrowUp:$.focusDate(Te.getPrev(ge.focusedDate,"d",Te.getDaysPerWeek()));break;case er.ArrowRight:$.focusDate(Te.getNext(ge.focusedDate,"d",1));break;case er.ArrowDown:$.focusDate(Te.getNext(ge.focusedDate,"d",Te.getDaysPerWeek()));break;
1case er.Enter:case er.Space:$.focusSelect();break;default:return}T.preventDefault(),T.stopPropagation()}}return U.\u0275fac=function(T){return new(T||U)},U.\u0275prov=t.\u0275\u0275defineInjectable({token:U,factory:U.\u0275fac,providedIn:"root"}),U})(),pa=(()=>{class U{constructor(T){this.templateRef=T}}return U.\u0275fac=function(T){return new(T||U)(t.\u0275\u0275directiveInject(t.TemplateRef))},U.\u0275dir=t.\u0275\u0275defineDirective({type:U,selectors:[["ng-template","ngbDatepickerContent",""]]}),U})(),Uo=(()=>{class U{constructor(T,$,ge,Te,Lt,an,vn,Sn){this._service=T,this._calendar=$,this.i18n=ge,this._elementRef=an,this._ngbDateAdapter=vn,this._ngZone=Sn,this._controlValue=null,this._destroyed$=new r.x,this._publicState={},this.navigate=new t.EventEmitter,this.dateSelect=new t.EventEmitter,this.onChange=Kn=>{},this.onTouched=()=>{},["dayTemplate","dayTemplateData","displayMonths","firstDayOfWeek","footerTemplate","markDisabled","minDate","maxDate","navigation","outsideDays","showWeekNumbers","startDate","weekdays"].forEach(Kn=>this[Kn]=Te[Kn]),T.dateSelect$.pipe((0,l.R)(this._destroyed$)).subscribe(Kn=>{this.dateSelect.emit(Kn)}),T.model$.pipe((0,l.R)(this._destroyed$)).subscribe(Kn=>{const gr=Kn.firstDate,tr=this.model?this.model.firstDate:null;this._publicState={maxDate:Kn.maxDate,minDate:Kn.minDate,firstDate:Kn.firstDate,lastDate:Kn.lastDate,focusedDate:Kn.focusDate,months:Kn.months.map(Zs=>Zs.firstDate)};let vr=!1;if(!gr.equals(tr)&&(this.navigate.emit({current:tr?{year:tr.year,month:tr.month}:null,next:{year:gr.year,month:gr.month},preventDefault:()=>vr=!0}),vr&&null!==tr))return void this._service.open(tr);const Ji=Kn.selectedDate,Ti=Kn.focusDate,ls=this.model?this.model.focusDate:null;this.model=Kn,se(Ji,this._controlValue)&&(this._controlValue=Ji,this.onTouched(),this.onChange(this._ngbDateAdapter.toModel(Ji))),se(Ti,ls)&&ls&&Kn.focusVisible&&this.focus(),Lt.markForCheck()})}get state(){return this._publicState}get calendar(){return this._calendar}focusDate(T){this._service.focus(zr.from(T))}focusSelect(){this._service.focusSelect()}focus(){this._ngZone.onStable.asObservable().pipe((0,I.q)(1)).subscribe(()=>{const T=this._elementRef.nativeElement.querySelector('div.ngb-dp-day[tabindex="0"]');T&&T.focus()})}navigateTo(T){this._service.open(zr.from(T?T.day?T:{...T,day:1}:null))}ngAfterViewInit(){this._ngZone.runOutsideAngular(()=>{const T=(0,a.R)(this._contentEl.nativeElement,"focusin"),$=(0,a.R)(this._contentEl.nativeElement,"focusout"),{nativeElement:ge}=this._elementRef;(0,M.T)(T,$).pipe((0,C.h)(({target:Te,relatedTarget:Lt})=>!(vo(Te,"ngb-dp-day")&&vo(Lt,"ngb-dp-day")&&ge.contains(Te)&&ge.contains(Lt))),(0,l.R)(this._destroyed$)).subscribe(({type:Te})=>this._ngZone.run(()=>this._service.set({focusVisible:"focusin"===Te})))})}ngOnDestroy(){this._destroyed$.next()}ngOnInit(){if(void 0===this.model){const T={};["dayTemplateData","displayMonths","markDisabled","firstDayOfWeek","navigation","minDate","maxDate","outsideDays","weekdays"].forEach($=>T[$]=this[$]),this._service.set(T),this.navigateTo(this.startDate)}this.dayTemplate||(this.dayTemplate=this._defaultDayTemplate)}ngOnChanges(T){const $={};if(["dayTemplateData","displayMonths","markDisabled","firstDayOfWeek","navigation","minDate","maxDate","outsideDays","weekdays"].filter(ge=>ge in T).forEach(ge=>$[ge]=this[ge]),this._service.set($),"startDate"in T){const{currentValue:ge,previousValue:Te}=T.startDate;me(Te,ge)&&this.navigateTo(this.startDate)}}onDateSelect(T){this._service.focus(T),this._service.select(T,{emitEvent:!0})}onNavigateDateSelect(T){this._service.open(T)}onNavigateEvent(T){switch(T){case is.PREV:this._service.open(this._calendar.getPrev(this.model.firstDate,"m",1));break;case is.NEXT:this._service.open(this._calendar.getNext(this.model.firstDate,"m",1))}}registerOnChange(T){this.onChange=T}registerOnTouched(T){this.onTouched=T}setDisabledState(T){this._service.set({disabled:T})}writeValue(T){this._controlValue=zr.from(this._ngbDateAdapter.fromModel(T)),this._service.select(this._controlValue)}}return U.\u0275fac=function(T){return new(T||U)(t.\u0275\u0275directiveInject(ki),t.\u0275\u0275directiveInject(Go),t.\u0275\u0275directiveInject(ji),t.\u0275\u0275directiveInject(Bo),t.\u0275\u0275directiveInject(t.ChangeDetectorRef),t.\u0275\u0275directiveInject(t.ElementRef),t.\u0275\u0275directiveInject(os),t.\u0275\u0275directiveInject(t.NgZone))},U.\u0275cmp=t.\u0275\u0275defineComponent({type:U,selectors:[["ngb-datepicker"]],contentQueries:function(T,$,ge){if(1&T&&t.\u0275\u0275contentQuery(ge,pa,7),2&T){let Te;t.\u0275\u0275queryRefresh(Te=t.\u0275\u0275loadQuery())&&($.contentTemplate=Te.first)}},viewQuery:function(T,$){if(1&T&&(t.\u0275\u0275viewQuery(pn,7),t.\u0275\u0275viewQuery(tt,7)),2&T){let ge;t.\u0275\u0275queryRefresh(ge=t.\u0275\u0275loadQuery())&&($._defaultDayTemplate=ge.first),t.\u0275\u0275queryRefresh(ge=t.\u0275\u0275loadQuery())&&($._contentEl=ge.first)}},inputs:{dayTemplate:"dayTemplate",dayTemplateData:"dayTemplateData",displayMonths:"displayMonths",firstDayOfWeek:"firstDayOfWeek",footerTemplate:"footerTemplate",markDisabled:"markDisabled",maxDate:"maxDate",minDate:"minDate",navigation:"navigation",outsideDays:"outsideDays",showWeekNumbers:"showWeekNumbers",startDate:"startDate",weekdays:"weekdays"},outputs:{navigate:"navigate",dateSelect:"dateSelect"},exportAs:["ngbDatepicker"],features:[t.\u0275\u0275ProvidersFeature([{provide:Q.JU,useExisting:(0,t.forwardRef)(()=>U),multi:!0},ki]),t.\u0275\u0275NgOnChangesFeature],decls:10,vars:5,consts:[["defaultDayTemplate",""],["defaultContentTemplate",""],[1,"ngb-dp-header"],[3,"date","months","disabled","showSelect","prevDisabled","nextDisabled","selectBoxes","navigate","select",4,"ngIf"],[1,"ngb-dp-content"],["content",""],[3,"ngTemplateOutlet"],["ngbDatepickerDayView","",3,"date","currentMonth","selected","disabled","focused"],["class","ngb-dp-month",4,"ngFor","ngForOf"],[1,"ngb-dp-month"],["class","ngb-dp-month-name",4,"ngIf"],[3,"month"],[1,"ngb-dp-month-name"],[3,"date","months","disabled","showSelect","prevDisabled","nextDisabled","selectBoxes","navigate","select"]],template:function(T,$){if(1&T&&(t.\u0275\u0275template(0,Tt,1,5,"ng-template",null,0,t.\u0275\u0275templateRefExtractor),t.\u0275\u0275template(2,Pt,1,1,"ng-template",null,1,t.\u0275\u0275templateRefExtractor),t.\u0275\u0275elementStart(4,"div",2),t.\u0275\u0275template(5,xt,1,7,"ngb-datepicker-navigation",3),t.\u0275\u0275elementEnd(),t.\u0275\u0275elementStart(6,"div",4,5),t.\u0275\u0275template(8,lt,0,0,"ng-template",6),t.\u0275\u0275elementEnd(),t.\u0275\u0275template(9,
1Ut,0,0,"ng-template",6)),2&T){const ge=t.\u0275\u0275reference(3);t.\u0275\u0275advance(5),t.\u0275\u0275property("ngIf","none"!==$.navigation),t.\u0275\u0275advance(1),t.\u0275\u0275classProp("ngb-dp-months",!$.contentTemplate),t.\u0275\u0275advance(2),t.\u0275\u0275property("ngTemplateOutlet",(null==$.contentTemplate?null:$.contentTemplate.templateRef)||ge),t.\u0275\u0275advance(1),t.\u0275\u0275property("ngTemplateOutlet",$.footerTemplate)}},dependencies:function(){return[_r,Ls,no,n.sg,n.O5,n.tP]},styles:["ngb-datepicker{border:1px solid #dfdfdf;border-radius:.25rem;display:inline-block}ngb-datepicker-month{pointer-events:auto}ngb-datepicker.dropdown-menu{padding:0}.ngb-dp-body{z-index:1050}.ngb-dp-header{border-bottom:0;border-radius:.25rem .25rem 0 0;padding-top:.25rem;background-color:#f8f9fa;background-color:var(--light)}.ngb-dp-months{display:flex}.ngb-dp-month{pointer-events:none}.ngb-dp-month-name{font-size:larger;height:2rem;line-height:2rem;text-align:center;background-color:#f8f9fa;background-color:var(--light)}.ngb-dp-month+.ngb-dp-month .ngb-dp-month-name,.ngb-dp-month+.ngb-dp-month .ngb-dp-week{padding-left:1rem}.ngb-dp-month:last-child .ngb-dp-week{padding-right:.25rem}.ngb-dp-month:first-child .ngb-dp-week{padding-left:.25rem}.ngb-dp-month .ngb-dp-week:last-child{padding-bottom:.25rem}\n"],encapsulation:2,changeDetection:0}),U})(),Ls=(()=>{class U{constructor(T,$,ge,Te){this.i18n=T,this.datepicker=$,this._keyboardService=ge,this._service=Te}set month(T){this.viewModel=this._service.getMonth(T)}onKeyDown(T){this._keyboardService.processKey(T,this.datepicker)}doSelect(T){!T.context.disabled&&!T.hidden&&this.datepicker.onDateSelect(T.date)}}return U.\u0275fac=function(T){return new(T||U)(t.\u0275\u0275directiveInject(ji),t.\u0275\u0275directiveInject(Uo),t.\u0275\u0275directiveInject(qs),t.\u0275\u0275directiveInject(ki))},U.\u0275cmp=t.\u0275\u0275defineComponent({type:U,selectors:[["ngb-datepicker-month"]],hostAttrs:["role","grid"],hostBindings:function(T,$){1&T&&t.\u0275\u0275listener("keydown",function(Te){return $.onKeyDown(Te)})},inputs:{month:"month"},decls:2,vars:2,consts:[["class","ngb-dp-week ngb-dp-weekdays","role","row",4,"ngIf"],["ngFor","",3,"ngForOf"],["role","row",1,"ngb-dp-week","ngb-dp-weekdays"],["class","ngb-dp-weekday ngb-dp-showweek small",4,"ngIf"],["class","ngb-dp-weekday small","role","columnheader",4,"ngFor","ngForOf"],[1,"ngb-dp-weekday","ngb-dp-showweek","small"],["role","columnheader",1,"ngb-dp-weekday","small"],["class","ngb-dp-week","role","row",4,"ngIf"],["role","row",1,"ngb-dp-week"],["class","ngb-dp-week-number small text-muted",4,"ngIf"],["class","ngb-dp-day","role","gridcell",3,"disabled","tabindex","hidden","ngb-dp-today","click",4,"ngFor","ngForOf"],[1,"ngb-dp-week-number","small","text-muted"],["role","gridcell",1,"ngb-dp-day",3,"tabindex","click"],[3,"ngIf"],[3,"ngTemplateOutlet","ngTemplateOutletContext"]],template:function(T,$){1&T&&(t.\u0275\u0275template(0,gt,3,2,"div",0),t.\u0275\u0275template(1,Ft,1,1,"ng-template",1)),2&T&&(t.\u0275\u0275property("ngIf",$.viewModel.weekdays.length>0),t.\u0275\u0275advance(1),t.\u0275\u0275property("ngForOf",$.viewModel.weeks))},dependencies:[n.O5,n.sg,n.tP],styles:['ngb-datepicker-month{display:block}.ngb-dp-weekday,.ngb-dp-week-number{line-height:2rem;text-align:center;font-style:italic}.ngb-dp-weekday{color:#5bc0de;color:var(--info)}.ngb-dp-week{border-radius:.25rem;display:flex}.ngb-dp-weekdays{border-bottom:1px solid rgba(0,0,0,.125);border-radius:0;background-color:#f8f9fa;background-color:var(--light)}.ngb-dp-day,.ngb-dp-weekday,.ngb-dp-week-number{width:2rem;height:2rem}.ngb-dp-day{cursor:pointer}.ngb-dp-day.disabled,.ngb-dp-day.hidden{cursor:default;pointer-events:none}.ngb-dp-day[tabindex="0"]{z-index:1}\n'],encapsulation:2}),U})();const Hs=(U,le)=>!!le&&le.some(T=>T.contains(U)),ha=(U,le)=>!le||null!=function qi(U,le){return!le||typeof U.closest>"u"?null:U.closest(le)}(U,le),Qi=typeof navigator<"u"&&!!navigator.userAgent&&(/iPad|iPhone|iPod/.test(navigator.userAgent)||/Macintosh/.test(navigator.userAgent)&&navigator.maxTouchPoints&&navigator.maxTouchPoints>2||/Android/.test(navigator.userAgent)),ss=U=>Qi?()=>setTimeout(()=>U(),100):U;function ks(U,le,T,$,ge,Te,Lt,an){T&&U.runOutsideAngular(ss(()=>{const Sn=(0,a.R)(le,"keydown").pipe((0,l.R)(ge),(0,C.h)(tr=>
1tr.which===er.Escape),(0,Y.b)(tr=>tr.preventDefault())),Kn=(0,a.R)(le,"mousedown").pipe((0,g.U)(tr=>{const vr=tr.target;return 2!==tr.button&&!Hs(vr,Lt)&&("inside"===T?Hs(vr,Te)&&ha(vr,an):"outside"===T?!Hs(vr,Te):ha(vr,an)||!Hs(vr,Te))}),(0,l.R)(ge)),gr=(0,a.R)(le,"mouseup").pipe((0,X.M)(Kn),(0,C.h)(([tr,vr])=>vr),(0,te.g)(0),(0,l.R)(ge));(0,h.S)([Sn.pipe((0,g.U)(tr=>0)),gr.pipe((0,g.U)(tr=>1))]).subscribe(tr=>U.run(()=>$(tr)))}))}const Xi=["a[href]","button:not([disabled])",'input:not([disabled]):not([type="hidden"])',"select:not([disabled])","textarea:not([disabled])","[contenteditable]",'[tabindex]:not([tabindex="-1"])'].join(", ");function zs(U){const le=Array.from(U.querySelectorAll(Xi)).filter(T=>-1!==T.tabIndex);return[le[0],le[le.length-1]]}const Ea=(U,le,T,$=!1)=>{U.runOutsideAngular(()=>{const ge=(0,a.R)(le,"focusin").pipe((0,l.R)(T),(0,g.U)(Te=>Te.target));(0,a.R)(le,"keydown").pipe((0,l.R)(T),(0,C.h)(Te=>Te.which===er.Tab),(0,X.M)(ge)).subscribe(([Te,Lt])=>{const[an,vn]=zs(le);(Lt===an||Lt===le)&&Te.shiftKey&&(vn.focus(),Te.preventDefault()),Lt===vn&&!Te.shiftKey&&(an.focus(),Te.preventDefault())}),$&&(0,a.R)(le,"click").pipe((0,l.R)(T),(0,X.M)(ge),(0,g.U)(Te=>Te[1])).subscribe(Te=>Te.focus())})},ti=/\s+/,gi=new class ro{getAllStyles(le){return window.getComputedStyle(le)}getStyle(le,T){return this.getAllStyles(le)[T]}isStaticPositioned(le){return"static"===(this.getStyle(le,"position")||"static")}offsetParent(le){let T=le.offsetParent||document.documentElement;for(;T&&T!==document.documentElement&&this.isStaticPositioned(T);)T=T.offsetParent;return T||document.documentElement}position(le,T=!0){let $,ge={width:0,height:0,top:0,bottom:0,left:0,right:0};if("fixed"===this.getStyle(le,"position"))$=le.getBoundingClientRect(),$={top:$.top,bottom:$.bottom,left:$.left,right:$.right,height:$.height,width:$.width};else{const Te=this.offsetParent(le);$=this.offset(le,!1),Te!==document.documentElement&&(ge=this.offset(Te,!1)),ge.top+=Te.clientTop,ge.left+=Te.clientLeft}return $.top-=ge.top,$.bottom-=ge.top,$.left-=ge.left,$.right-=ge.left,T&&($.top=Math.round($.top),$.bottom=Math.round($.bottom),$.left=Math.round($.left),$.right=Math.round($.right)),$}offset(le,T=!0){const $=le.getBoundingClientRect(),ge_top=window.scrollY-document.documentElement.clientTop,ge_left=window.scrollX-document.documentElement.clientLeft;let Te={height:$.height||le.offsetHeight,width:$.width||le.offsetWidth,top:$.top+ge_top,bottom:$.bottom+ge_top,left:$.left+ge_left,right:$.right+ge_left};return T&&(Te.height=Math.round(Te.height),Te.width=Math.round(Te.width),Te.top=Math.round(Te.top),Te.bottom=Math.round(Te.bottom),Te.left=Math.round(Te.left),Te.right=Math.round(Te.right)),Te}positionElements(le,T,$,ge){const[Te="top",Lt="center"]=$.split("-"),an=ge?this.offset(le,!1):this.position(le,!1),vn=this.getAllStyles(T),Sn=parseFloat(vn.marginTop),Kn=parseFloat(vn.marginBottom),gr=parseFloat(vn.marginLeft),tr=parseFloat(vn.marginRight);let vr=0,Ji=0;switch(Te){case"top":vr=an.top-(T.offsetHeight+Sn+Kn);break;case"bottom":vr=an.top+an.height;break;case"left":Ji=an.left-(T.offsetWidth+gr+tr);break;case"right":Ji=an.left+an.width}switch(Lt){case"top":vr=an.top;break;case"bottom":vr=an.top+an.height-T.offsetHeight;break;case"left":Ji=an.left;break;case"right":Ji=an.left+an.width-T.offsetWidth;break;case"center":"top"===Te||"bottom"===Te?Ji=an.left+an.width/2-T.offsetWidth/2:vr=an.top+an.height/2-T.offsetHeight/2}T.style.transform=`translate(${Math.round(Ji)}px, ${Math.round(vr)}px)`;const Ti=T.getBoundingClientRect(),ls=document.documentElement,Zs=window.innerHeight||ls.clientHeight,Wo=window.innerWidth||ls.clientWidth;return Ti.left>=0&&Ti.top>=0&&Ti.right<=Wo&&Ti.bottom<=Zs}};function Ms(U,le,T,$,ge){let Te=Array.isArray(T)?T:T.split(ti);const Lt=["top","bottom","left","right","top-left","top-right","bottom-left","bottom-right","left-top","left-bottom","right-top","right-bottom"],an=le.classList,vn=vr=>{const[Ji,Ti]=vr.split("-"),ls=[];return ge&&(ls.push(`${ge}-${Ji}`),Ti&&ls.push(`${ge}-${Ji}-${Ti}`),ls.forEach(Zs=>{an.add(Zs)})),ls};ge&&Lt.forEach(vr=>{an.remove(`${ge}-${vr}`)});let Sn=Te.findIndex(vr=>"auto"===vr);Sn>=0&&Lt.forEach(function(vr){null==Te.find(Ji=>-1!==Ji.search("^"+vr))&&Te.splice(Sn++,1,vr)});const Kn=le.style;
1Kn.position="absolute",Kn.top="0",Kn.left="0",Kn["will-change"]="transform";let gr=null,tr=!1;for(gr of Te){let vr=vn(gr);if(gi.positionElements(U,le,gr,$)){tr=!0;break}ge&&vr.forEach(Ji=>{an.remove(Ji)})}return tr||(gr=Te[0],vn(gr),gi.positionElements(U,le,gr,$)),gr}let Ps=(()=>{class U extends Bo{constructor(){super(...arguments),this.autoClose=!0,this.placement=["bottom-left","bottom-right","top-left","top-right"],this.restoreFocus=!0}}return U.\u0275fac=function(){let le;return function($){return(le||(le=t.\u0275\u0275getInheritedFactory(U)))($||U)}}(),U.\u0275prov=t.\u0275\u0275defineInjectable({token:U,factory:U.\u0275fac,providedIn:"root"}),U})(),bs=(()=>{class U{}return U.\u0275fac=function(T){return new(T||U)},U.\u0275prov=t.\u0275\u0275defineInjectable({token:U,factory:function(){return function Gs(){return new wo}()},providedIn:"root"}),U})(),wo=(()=>{class U extends bs{parse(T){if(null!=T){const $=T.trim().split("-");if(1===$.length&&Gn($[0]))return{year:Qn($[0]),month:null,day:null};if(2===$.length&&Gn($[0])&&Gn($[1]))return{year:Qn($[0]),month:Qn($[1]),day:null};if(3===$.length&&Gn($[0])&&Gn($[1])&&Gn($[2]))return{year:Qn($[0]),month:Qn($[1]),day:Qn($[2])}}return null}format(T){return T?`${T.year}-${Gn(T.month)?jr(T.month):""}-${Gn(T.day)?jr(T.day):""}`:""}}return U.\u0275fac=function(){let le;return function($){return(le||(le=t.\u0275\u0275getInheritedFactory(U)))($||U)}}(),U.\u0275prov=t.\u0275\u0275defineInjectable({token:U,factory:U.\u0275fac}),U})(),ea=(()=>{class U{constructor(T,$,ge,Te,Lt,an,vn,Sn,Kn,gr){this._parserFormatter=T,this._elRef=$,this._vcRef=ge,this._renderer=Te,this._ngZone=Lt,this._calendar=an,this._dateAdapter=vn,this._document=Sn,this._changeDetector=Kn,this._cRef=null,this._disabled=!1,this._elWithFocus=null,this._model=null,this.dateSelect=new t.EventEmitter,this.navigate=new t.EventEmitter,this.closed=new t.EventEmitter,this._onChange=tr=>{},this._onTouched=()=>{},this._validatorChange=()=>{},["autoClose","container","positionTarget","placement"].forEach(tr=>this[tr]=gr[tr]),this._zoneSubscription=Lt.onStable.subscribe(()=>this._updatePopupPosition())}get disabled(){return this._disabled}set disabled(T){this._disabled=""===T||T&&"false"!==T,this.isOpen()&&this._cRef.instance.setDisabledState(this._disabled)}registerOnChange(T){this._onChange=T}registerOnTouched(T){this._onTouched=T}registerOnValidatorChange(T){this._validatorChange=T}setDisabledState(T){this.disabled=T}validate(T){const{value:$}=T;if(null!=$){const ge=this._fromDateStruct(this._dateAdapter.fromModel($));if(!ge)return{ngbDate:{invalid:$}};if(this.minDate&&ge.before(zr.from(this.minDate)))return{ngbDate:{minDate:{minDate:this.minDate,actual:$}}};if(this.maxDate&&ge.after(zr.from(this.maxDate)))return{ngbDate:{maxDate:{maxDate:this.maxDate,actual:$}}}}return null}writeValue(T){this._model=this._fromDateStruct(this._dateAdapter.fromModel(T)),this._writeModelValue(this._model)}manualDateChange(T,$=!1){const ge=T!==this._inputValue;ge&&(this._inputValue=T,this._model=this._fromDateStruct(this._parserFormatter.parse(T))),(ge||!$)&&this._onChange(this._model?this._dateAdapter.toModel(this._model):""===T?null:T),$&&this._model&&this._writeModelValue(this._model)}isOpen(){return!!this._cRef}open(){this.isOpen()||(this._cRef=this._vcRef.createComponent(Uo),this._applyPopupStyling(this._cRef.location.nativeElement),this._applyDatepickerInputs(this._cRef.instance),this._subscribeForDatepickerOutputs(this._cRef.instance),this._cRef.instance.ngOnInit(),this._cRef.instance.writeValue(this._dateAdapter.toModel(this._model)),this._cRef.instance.registerOnChange(T=>{this.writeValue(T),this._onChange(T),this._onTouched()}),this._cRef.changeDetectorRef.detectChanges(),this._cRef.instance.setDisabledState(this.disabled),"body"===this.container&&this._document.querySelector(this.container).appendChild(this._cRef.location.nativeElement),this._elWithFocus=this._document.activeElement,Ea(this._ngZone,this._cRef.location.nativeElement,this.closed,!0),this._cRef.instance.focus(),ks(this._ngZone,this._document,this.autoClose,()=>this.close(),this.closed,[],[this._elRef.nativeElement,this._cRef.location.nativeElement]))}close(){if(this.isOpen()){this._vcRef.remove(this._vcRef.indexOf(this._cRef.hostView)),this._cRef=null,this.closed.emit
1(),this._changeDetector.markForCheck();let T=this._elWithFocus;Fr(this.restoreFocus)?T=this._document.querySelector(this.restoreFocus):void 0!==this.restoreFocus&&(T=this.restoreFocus),T&&T.focus?T.focus():this._document.body.focus()}}toggle(){this.isOpen()?this.close():this.open()}navigateTo(T){this.isOpen()&&this._cRef.instance.navigateTo(T)}onBlur(){this._onTouched()}onFocus(){this._elWithFocus=this._elRef.nativeElement}ngOnChanges(T){if((T.minDate||T.maxDate)&&(this._validatorChange(),this.isOpen()&&(T.minDate&&(this._cRef.instance.minDate=this.minDate),T.maxDate&&(this._cRef.instance.maxDate=this.maxDate),this._cRef.instance.ngOnChanges(T))),T.datepickerClass){const{currentValue:$,previousValue:ge}=T.datepickerClass;this._applyPopupClass($,ge)}}ngOnDestroy(){this.close(),this._zoneSubscription.unsubscribe()}_applyDatepickerInputs(T){["dayTemplate","dayTemplateData","displayMonths","firstDayOfWeek","footerTemplate","markDisabled","minDate","maxDate","navigation","outsideDays","showNavigation","showWeekNumbers","weekdays"].forEach($=>{void 0!==this[$]&&(T[$]=this[$])}),T.startDate=this.startDate||this._model}_applyPopupClass(T,$){const ge=this._cRef?.location.nativeElement;ge&&(T&&this._renderer.addClass(ge,T),$&&this._renderer.removeClass(ge,$))}_applyPopupStyling(T){this._renderer.addClass(T,"dropdown-menu"),this._renderer.addClass(T,"show"),"body"===this.container&&this._renderer.addClass(T,"ngb-dp-body"),this._applyPopupClass(this.datepickerClass)}_subscribeForDatepickerOutputs(T){T.navigate.subscribe($=>this.navigate.emit($)),T.dateSelect.subscribe($=>{this.dateSelect.emit($),(!0===this.autoClose||"inside"===this.autoClose)&&this.close()})}_writeModelValue(T){const $=this._parserFormatter.format(T);this._inputValue=$,this._renderer.setProperty(this._elRef.nativeElement,"value",$),this.isOpen()&&(this._cRef.instance.writeValue(this._dateAdapter.toModel(T)),this._onTouched())}_fromDateStruct(T){const $=T?new zr(T.year,T.month,T.day):null;return this._calendar.isValid($)?$:null}_updatePopupPosition(){if(!this._cRef)return;let T;if(T=Fr(this.positionTarget)?this._document.querySelector(this.positionTarget):this.positionTarget instanceof HTMLElement?this.positionTarget:this._elRef.nativeElement,this.positionTarget&&!T)throw new Error("ngbDatepicker could not find element declared in [positionTarget] to position against.");Ms(T,this._cRef.location.nativeElement,this.placement,"body"===this.container)}}return U.\u0275fac=function(T){return new(T||U)(t.\u0275\u0275directiveInject(bs),t.\u0275\u0275directiveInject(t.ElementRef),t.\u0275\u0275directiveInject(t.ViewContainerRef),t.\u0275\u0275directiveInject(t.Renderer2),t.\u0275\u0275directiveInject(t.NgZone),t.\u0275\u0275directiveInject(Go),t.\u0275\u0275directiveInject(os),t.\u0275\u0275directiveInject(n.K0),t.\u0275\u0275directiveInject(t.ChangeDetectorRef),t.\u0275\u0275directiveInject(Ps))},U.\u0275dir=t.\u0275\u0275defineDirective({type:U,selectors:[["input","ngbDatepicker",""]],hostVars:1,hostBindings:function(T,$){1&T&&t.\u0275\u0275listener("input",function(Te){return $.manualDateChange(Te.target.value)})("change",function(Te){return $.manualDateChange(Te.target.value,!0)})("focus",function(){return $.onFocus()})("blur",function(){return $.onBlur()}),2&T&&t.\u0275\u0275hostProperty("disabled",$.disabled)},inputs:{autoClose:"autoClose",datepickerClass:"datepickerClass",dayTemplate:"dayTemplate",dayTemplateData:"dayTemplateData",displayMonths:"displayMonths",firstDayOfWeek:"firstDayOfWeek",footerTemplate:"footerTemplate",markDisabled:"markDisabled",minDate:"minDate",maxDate:"maxDate",navigation:"navigation",outsideDays:"outsideDays",placement:"placement",restoreFocus:"restoreFocus",showWeekNumbers:"showWeekNumbers",startDate:"startDate",container:"container",positionTarget:"positionTarget",weekdays:"weekdays",disabled:"disabled"},outputs:{dateSelect:"dateSelect",navigate:"navigate",closed:"closed"},exportAs:["ngbDatepicker"],features:[t.\u0275\u0275ProvidersFeature([{provide:Q.JU,useExisting:(0,t.forwardRef)(()=>U),multi:!0},{provide:Q.Cf,useExisting:(0,t.forwardRef)(()=>U),multi:!0}
1,{provide:Bo,useExisting:Ps}]),t.\u0275\u0275NgOnChangesFeature]}),U})();new Date(1882,10,12),new Date(2174,10,25);let To=(()=>{class U{}return U.\u0275fac=function(T){return new(T||U)},U.\u0275mod=t.\u0275\u0275defineNgModule({type:U}),U.\u0275inj=t.\u0275\u0275defineInjector({imports:[[n.ez,Q.u5]]}),U})(),Vi=(()=>{class U{constructor(){this.autoClose=!0,this.placement=["bottom-left","bottom-right","top-left","top-right"]}}return U.\u0275fac=function(T){return new(T||U)},U.\u0275prov=t.\u0275\u0275defineInjectable({token:U,factory:U.\u0275fac,providedIn:"root"}),U})(),ys=(()=>{class U{}return U.\u0275fac=function(T){return new(T||U)},U.\u0275dir=t.\u0275\u0275defineDirective({type:U,selectors:[["",8,"navbar"]]}),U})(),Gr=(()=>{class U{constructor(T,$){this.elementRef=T,this._renderer=$,this._disabled=!1}set disabled(T){this._disabled=""===T||!0===T,this._renderer.setProperty(this.elementRef.nativeElement,"disabled",this._disabled)}get disabled(){return this._disabled}}return U.\u0275fac=function(T){return new(T||U)(t.\u0275\u0275directiveInject(t.ElementRef),t.\u0275\u0275directiveInject(t.Renderer2))},U.\u0275dir=t.\u0275\u0275defineDirective({type:U,selectors:[["","ngbDropdownItem",""]],hostAttrs:[1,"dropdown-item"],hostVars:3,hostBindings:function(T,$){2&T&&(t.\u0275\u0275hostProperty("tabIndex",$.disabled?-1:0),t.\u0275\u0275classProp("disabled",$.disabled))},inputs:{disabled:"disabled"}}),U})(),Bs=(()=>{class U{constructor(T,$){this.dropdown=T,this.placement="bottom",this.isOpen=!1,this.nativeElement=$.nativeElement}}return U.\u0275fac=function(T){return new(T||U)(t.\u0275\u0275directiveInject((0,t.forwardRef)(()=>No)),t.\u0275\u0275directiveInject(t.ElementRef))},U.\u0275dir=t.\u0275\u0275defineDirective({type:U,selectors:[["","ngbDropdownMenu",""]],contentQueries:function(T,$,ge){if(1&T&&t.\u0275\u0275contentQuery(ge,Gr,4),2&T){let Te;t.\u0275\u0275queryRefresh(Te=t.\u0275\u0275loadQuery())&&($.menuItems=Te)}},hostVars:5,hostBindings:function(T,$){1&T&&t.\u0275\u0275listener("keydown.ArrowUp",function(Te){return $.dropdown.onKeyDown(Te)})("keydown.ArrowDown",function(Te){return $.dropdown.onKeyDown(Te)})("keydown.Home",function(Te){return $.dropdown.onKeyDown(Te)})("keydown.End",function(Te){return $.dropdown.onKeyDown(Te)})("keydown.Enter",function(Te){return $.dropdown.onKeyDown(Te)})("keydown.Space",function(Te){return $.dropdown.onKeyDown(Te)})("keydown.Tab",function(Te){return $.dropdown.onKeyDown(Te)})("keydown.Shift.Tab",function(Te){return $.dropdown.onKeyDown(Te)}),2&T&&(t.\u0275\u0275attribute("x-placement",$.placement),t.\u0275\u0275classProp("dropdown-menu",!0)("show",$.dropdown.isOpen()))}}),U})(),$i=(()=>{class U{constructor(T,$){this.dropdown=T,this.nativeElement=$.nativeElement}}return U.\u0275fac=function(T){return new(T||U)(t.\u0275\u0275directiveInject((0,t.forwardRef)(()=>No)),t.\u0275\u0275directiveInject(t.ElementRef))},U.\u0275dir=t.\u0275\u0275defineDirective({type:U,selectors:[["","ngbDropdownAnchor",""]],hostAttrs:[1,"dropdown-toggle"],hostVars:1,hostBindings:function(T,$){2&T&&t.\u0275\u0275attribute("aria-expanded",$.dropdown.isOpen())}}),U})(),ps=(()=>{class U extends $i{constructor(T,$){super(T,$)}}return U.\u0275fac=function(T){return new(T||U)(t.\u0275\u0275directiveInject((0,t.forwardRef)(()=>No)),t.\u0275\u0275directiveInject(t.ElementRef))},U.\u0275dir=t.\u0275\u0275defineDirective({type:U,selectors:[["","ngbDropdownToggle",""]],hostAttrs:[1,"dropdown-toggle"],hostVars:1,hostBindings:function(T,$){1&T&&t.\u0275\u0275listener("click",function(){return $.dropdown.toggle()})("keydown.ArrowUp",function(Te){return $.dropdown.onKeyDown(Te)})("keydown.ArrowDown",function(Te){return $.dropdown.onKeyDown(Te)})("keydown.Home",function(Te){return $.dropdown.onKeyDown(Te)})("keydown.End",function(Te){return $.dropdown.onKeyDown(Te)})("keydown.Tab",function(Te){return $.dropdown.onKeyDown(Te)})("keydown.Shift.Tab",function(Te){return $.dropdown.onKeyDown(Te)}),2&T&&t.\u0275\u0275attribute("aria-expanded",$.dropdown.isOpen())},features:[t.\u0275\u0275ProvidersFeature([{provide:$i,useExisting:(0,t.forwardRef)(()=>U)}]),t.\u0275\u0275InheritDefinitionFeature]}),U})(),No=(()=>{class U{constructor(T,$,ge,Te,Lt,an,vn){this._changeDetector=T,this._document=ge,this._ngZone=Te,this._elementRef=Lt,this._renderer=an,this._closed$=new r.x,this._bodyContainer=null,this._open=!1,this.openChange=new t.EventEmitter,this.placement=$.placement,this.container=$.container,this.autoClose=$.autoClose,this.display=vn?"static":"dynamic",this._zoneSubscription=Te.onStable.subscribe(()=>{this._positionMenu()})}ngAfterContentInit(){this._ngZone.onStable.pipe((0,I.q)(1)).subscribe(()=>{this._applyPlacementClasses(),this._open&&this._setCloseHandlers()})}ngOnChanges(T){if(T.container&&this._open&&this._applyContainer(this.container),T.placement&&!T.placement.isFirstChange&&this._applyPlacementClasses(),T.dropdownClass){const{currentValue:$,previousValue:ge}=T.dropdownClass;this._applyCustomDropdownClass($,ge)}}isOpen(){return this._open}open(){this._open||(this._open=!0,this._applyContainer(this.container),this.openChange.emit(!0),this._setCloseHandlers(),this._anchor&&this._anchor.nativeElement.focus())}_setCloseHandlers(){ks(this._ngZone,this._document,this.autoClose,T=>{this.close(),0===T&&this._anchor.nativeElement.focus()},this._closed$,this._menu?[this._menu.nativeElement]:[],this._anchor?[this._anchor.nativeElement]:[],".dropdown-item,.dropdown-divider")}close(){this._open&&(this._open=!1,this._resetContainer(),this._closed$.next(),this.openChange.emit(!1),this._changeDetector.markForCheck())}toggle(){this.isOpen()?this.close():this.open()}ngOnDestroy(){this._resetContainer(),this._closed$.next(),this._zoneSubscription.unsubscribe()}onKeyDown(T){const $=T.which,ge=this._getMenuElements();let Te=-1,Lt=null;const an=this._isEventFromToggle(T);if(!an&&ge.length&&ge.forEach((vn,Sn)=>{vn.contains(T.target)&&(Lt=vn),vn===this._document.activeElement&&(Te=Sn)}),$!==er.Space&&$!==er.Enter){if($!==er.Tab){if(an||Lt){if(this.open(),ge.length){switch($){case er.ArrowDown:Te=Math.min(Te+1,ge.length-1);break;case er.ArrowUp:if(this._isDropup()&&-1===Te){Te=ge.length-1;break}Te=Math.max(Te-1,0);break;case er.Home:Te=0;break;case er.End:Te=ge.length-1}ge[Te].focus()}T.preventDefault()}}else if(T.target&&this.isOpen()&&this.autoClose){if(this._anchor.nativeElement===T.target)return void("body"!==this.container||T.shiftKey?T.shiftKey&&this.close():(this._renderer.setAttribute(this._menu.nativeElement,"tabindex","0"),this._menu.nativeElement.focus(),this._renderer.removeAttribute(this._menu.nativeElement,"tabindex")));if("body"===this.container){const vn=this._menu.nativeElement.querySelectorAll(Xi);T.shiftKey&&T.target===vn[0]?(this._anchor.nativeElement.focus(),T.preventDefault()):!T.shiftKey&&T.target===vn[vn.length-1]&&(this._anchor.nativeElement.focus(),this.close())}else(0,a.R)(T.target,"focusout").pipe((0,I.q)(1)).subscribe(({relatedTarget:vn})=>{this._elementRef.nativeElement.contains(vn)||this.close()})}}else Lt&&(!0===this.autoClose||"inside"===this.autoClose)&&(0,a.R)(Lt,"click").pipe((0,I.q)(1)).subscribe(()=>this.close())}_isDropup(){return this._elementRef.nativeElement.classList.contains("dropup")}_isEventFromToggle(T){return this._anchor.nativeElement.contains(T.target)}_getMenuElements(){const T=this._menu;return null==T?[]:T.menuItems.filter($=>!$.disabled).map($=>$.elementRef.nativeElement)}_positionMenu(){const T=this._menu;this.isOpen()&&T&&this._applyPlacementClasses("dynamic"===this.display?Ms(this._anchor.nativeElement,this._bodyContainer||this._menu.nativeElement,this.placement,"body"===this.container):this._getFirstPlacement(this.placement))}_getFirstPlacement(T){return Array.isArray(T)?T[0]:T.split(" ")[0]}_resetContainer(){const T=this._renderer;if(this._menu){const ge=this._menu.nativeElement;
1T.appendChild(this._elementRef.nativeElement,ge),T.removeStyle(ge,"position"),T.removeStyle(ge,"transform")}this._bodyContainer&&(T.removeChild(this._document.body,this._bodyContainer),this._bodyContainer=null)}_applyContainer(T=null){if(this._resetContainer(),"body"===T){const $=this._renderer,ge=this._menu.nativeElement,Te=this._bodyContainer=this._bodyContainer||$.createElement("div");$.setStyle(Te,"position","absolute"),$.setStyle(ge,"position","static"),$.setStyle(Te,"z-index","1050"),$.appendChild(Te,ge),$.appendChild(this._document.body,Te)}this._applyCustomDropdownClass(this.dropdownClass)}_applyCustomDropdownClass(T,$){const ge="body"===this.container?this._bodyContainer:this._elementRef.nativeElement;ge&&($&&this._renderer.removeClass(ge,$),T&&this._renderer.addClass(ge,T))}_applyPlacementClasses(T){const $=this._menu;if($){T||(T=this._getFirstPlacement(this.placement));const ge=this._renderer,Te=this._elementRef.nativeElement;ge.removeClass(Te,"dropup"),ge.removeClass(Te,"dropdown"),$.placement="static"===this.display?null:T;const Lt=-1!==T.search("^top")?"dropup":"dropdown";ge.addClass(Te,Lt);const an=this._bodyContainer;an&&(ge.removeClass(an,"dropup"),ge.removeClass(an,"dropdown"),ge.addClass(an,Lt))}}}return U.\u0275fac=function(T){return new(T||U)(t.\u0275\u0275directiveInject(t.ChangeDetectorRef),t.\u0275\u0275directiveInject(Vi),t.\u0275\u0275directiveInject(n.K0),t.\u0275\u0275directiveInject(t.NgZone),t.\u0275\u0275directiveInject(t.ElementRef),t.\u0275\u0275directiveInject(t.Renderer2),t.\u0275\u0275directiveInject(ys,8))},U.\u0275dir=t.\u0275\u0275defineDirective({type:U,selectors:[["","ngbDropdown",""]],contentQueries:function(T,$,ge){if(1&T&&(t.\u0275\u0275contentQuery(ge,Bs,5),t.\u0275\u0275contentQuery(ge,$i,5)),2&T){let Te;t.\u0275\u0275queryRefresh(Te=t.\u0275\u0275loadQuery())&&($._menu=Te.first),t.\u0275\u0275queryRefresh(Te=t.\u0275\u0275loadQuery())&&($._anchor=Te.first)}},hostVars:2,hostBindings:function(T,$){2&T&&t.\u0275\u0275classProp("show",$.isOpen())},inputs:{autoClose:"autoClose",dropdownClass:"dropdownClass",_open:["open","_open"],placement:"placement",container:"container",display:"display"},outputs:{openChange:"openChange"},exportAs:["ngbDropdown"],features:[t.\u0275\u0275NgOnChangesFeature]}),U})(),Oa=(()=>{class U{}return U.\u0275fac=function(T){return new(T||U)},U.\u0275mod=t.\u0275\u0275defineNgModule({type:U}),U.\u0275inj=t.\u0275\u0275defineInjector({}),U})();class ts{constructor(le,T,$){this.nodes=le,this.viewRef=T,this.componentRef=$}}class $e{constructor(le,T,$,ge,Te,Lt){this._type=le,this._injector=T,this._viewContainerRef=$,this._renderer=ge,this._ngZone=Te,this._applicationRef=Lt,this._windowRef=null,this._contentRef=null}open(le,T,$=!1){this._windowRef||(this._contentRef=this._getContentRef(le,T),this._windowRef=this._viewContainerRef.createComponent(this._type,{index:this._viewContainerRef.length,injector:this._injector,projectableNodes:this._contentRef.nodes}));const{nativeElement:ge}=this._windowRef.location,Te=this._ngZone.onStable.pipe((0,I.q)(1),(0,K.z)(()=>_i(this._ngZone,ge,({classList:Lt})=>Lt.add("show"),{animation:$,runningTransition:"continue"})));return{windowRef:this._windowRef,transition$:Te}}close(le=!1){return this._windowRef?_i(this._ngZone,this._windowRef.location.nativeElement,({classList:T})=>T.remove("show"),{animation:le,runningTransition:"stop"}).pipe((0,Y.b)(()=>{this._windowRef&&(this._viewContainerRef.remove(this._viewContainerRef.indexOf(this._windowRef.hostView)),this._windowRef=null),this._contentRef?.viewRef&&(this._applicationRef.detachView(this._contentRef.viewRef),this._contentRef.viewRef.destroy(),this._contentRef=null)})):(0,d.of)(void 0)}_getContentRef(le,T){if(le){if(le instanceof t.TemplateRef){const $=le.createEmbeddedView(T);return this._applicationRef.attachView($),new ts([$.rootNodes],$)}return new ts([[this._renderer.createText(`${le}`)]])}return new ts([])}}let _e=(()=>{class U{constructor(T,$){this._el=T,this._zone=$}ngOnInit(){this._zone.onStable.asObservable().pipe((0,I.q)(1)).subscribe(()=>{_i(this._zone,this._el.nativeElement,(T,$)=>{$&&ri(T),T.classList.add("show")},{animation:this.animation,runningTransition:"continue"})})}hide(){return _i(this._zone,this._el.nativeElement,({classList:T})=>T.remove("show"),{animation:this.animation,runningTransition:"stop"})}}return U.\u0275fac=function(T){return new(T||U)(t.\u0275\u0275directiveInject(t.ElementRef),t.\u0275\u0275directiveInject(t.NgZone))},U.\u0275cmp=t.\u0275\u0275defineComponent({type:U,selectors:[["ngb-modal-backdrop"]],hostAttrs:[2,"z-index","1050"],hostVars:6,hostBindings:function(T,$){2&T&&(t.\u0275\u0275classMap("modal-backdrop"+($.backdropClass?" "+$.backdropClass:"")),t.\u0275\u0275classProp("show",!$.animation)("fade",$.animation))},inputs:{animation:"animation",backdropClass:"backdropClass"},decls:0,vars:0,template:function(T,$){},encapsulation:2}),U})();class pe{close(le){}dismiss(le){}}class Ie{constructor(le,T,$,ge){this._windowCmptRef=le,this._contentRef=T,this._backdropCmptRef=$,this._beforeDismiss=ge,this._closed=new r.x,this._dismissed=new r.x,this._hidden=new r.x,le.
1instance.dismissEvent.subscribe(Te=>{this.dismiss(Te)}),this.result=new Promise((Te,Lt)=>{this._resolve=Te,this._reject=Lt}),this.result.then(null,()=>{})}get componentInstance(){if(this._contentRef&&this._contentRef.componentRef)return this._contentRef.componentRef.instance}get closed(){return this._closed.asObservable().pipe((0,l.R)(this._hidden))}get dismissed(){return this._dismissed.asObservable().pipe((0,l.R)(this._hidden))}get hidden(){return this._hidden.asObservable()}get shown(){return this._windowCmptRef.instance.shown.asObservable()}close(le){this._windowCmptRef&&(this._closed.next(le),this._resolve(le),this._removeModalElements())}_dismiss(le){this._dismissed.next(le),this._reject(le),this._removeModalElements()}dismiss(le){if(this._windowCmptRef)if(this._beforeDismiss){const T=this._beforeDismiss();!function mi(U){return U&&U.then}(T)?!1!==T&&this._dismiss(le):T.then($=>{!1!==$&&this._dismiss(le)},()=>{})}else this._dismiss(le)}_removeModalElements(){const le=this._windowCmptRef.instance.hide(),T=this._backdropCmptRef?this._backdropCmptRef.instance.hide():(0,d.of)(void 0);le.subscribe(()=>{const{nativeElement:$}=this._windowCmptRef.location;$.parentNode.removeChild($),this._windowCmptRef.destroy(),this._contentRef&&this._contentRef.viewRef&&this._contentRef.viewRef.destroy(),this._windowCmptRef=null,this._contentRef=null}),T.subscribe(()=>{if(this._backdropCmptRef){const{nativeElement:$}=this._backdropCmptRef.location;$.parentNode.removeChild($),this._backdropCmptRef.destroy(),this._backdropCmptRef=null}}),(0,b.$)(le,T).subscribe(()=>{this._hidden.next(),this._hidden.complete()})}}var N=(()=>{return(U=N||(N={}))[U.BACKDROP_CLICK=0]="BACKDROP_CLICK",U[U.ESC=1]="ESC",N;var U})();let J=(()=>{class U{constructor(T,$,ge){this._document=T,this._elRef=$,this._zone=ge,this._closed$=new r.x,this._elWithFocus=null,this.backdrop=!0,this.keyboard=!0,this.dismissEvent=new t.EventEmitter,this.shown=new r.x,this.hidden=new r.x}dismiss(T){this.dismissEvent.emit(T)}ngOnInit(){this._elWithFocus=this._document.activeElement,this._zone.onStable.asObservable().pipe((0,I.q)(1)).subscribe(()=>{this._show()})}ngOnDestroy(){this._disableEventHandling()}hide(){const{nativeElement:T}=this._elRef,$={animation:this.animation,runningTransition:"stop"},ge=_i(this._zone,T,()=>T.classList.remove("show"),$),Te=_i(this._zone,this._dialogEl.nativeElement,()=>{},$),Lt=(0,b.$)(ge,Te);return Lt.subscribe(()=>{this.hidden.next(),this.hidden.complete()}),this._disableEventHandling(),this._restoreFocus(),Lt}_show(){const T={animation:this.animation,runningTransition:"continue"},$=_i(this._zone,this._elRef.nativeElement,(Te,Lt)=>{Lt&&ri(Te),Te.classList.add("show")},T),ge=_i(this._zone,this._dialogEl.nativeElement,()=>{},T);(0,b.$)($,ge).subscribe(()=>{this.shown.next(),this.shown.complete()}),this._enableEventHandling(),this._setFocus()}_enableEventHandling(){const{nativeElement:T}=this._elRef;this._zone.runOutsideAngular(()=>{(0,a.R)(T,"keydown").pipe((0,l.R)(this._closed$),(0,C.h)(ge=>ge.which===er.Escape)).subscribe(ge=>{this.keyboard?requestAnimationFrame(()=>{ge.defaultPrevented||this._zone.run(()=>this.dismiss(N.ESC))}):"static"===this.backdrop&&this._bumpBackdrop()});let $=!1;(0,a.R)(this._dialogEl.nativeElement,"mousedown").pipe((0,l.R)(this._closed$),(0,Y.b)(()=>$=!1),(0,V.w)(()=>(0,a.R)(T,"mouseup").pipe((0,l.R)(this._closed$),(0,I.q)(1))),(0,C.h)(({target:ge})=>T===ge)).subscribe(()=>{$=!0}),(0,a.R)(T,"click").pipe((0,l.R)(this._closed$)).subscribe(({target:ge})=>{T===ge&&("static"===this.backdrop?this._bumpBackdrop():!0===this.backdrop&&!$&&this._zone.run(()=>this.dismiss(N.BACKDROP_CLICK))),$=!1})})}_disableEventHandling(){this._closed$.next()}_setFocus(){const{nativeElement:T}=this._elRef;if(!T.contains(document.activeElement)){const $=T.querySelector("[ngbAutofocus]"),ge=zs(T)[0];($||ge||T).focus()}}_restoreFocus(){const T=this._document.body,$=this._elWithFocus;let ge;ge=$&&$.focus&&T.contains($)?$:T,this._zone.runOutsideAngular(()=>{setTimeout(()=>ge.focus()),this._elWithFocus=null})}_bumpBackdrop(){"static"===this.backdrop&&_i(this._zone,this._elRef.nativeElement,({classList:T})=>(T.add("modal-static"),()=>T.remove("modal-static")),{animation:this.animation,runningTransition:"continue"})}}return U.\u0275fac=function(T){return new(T||U)(t.\u0275\u0275directiveInject(n.K0),t.\u0275\u0275directiveInject(t.ElementRef),t.\u0275\u0275directiveInject(t.NgZone))},U.\u0275cmp=t.\u0275\u0275defineComponent({type:U,selectors:[["ngb-modal-window"]],viewQuery:function(T,$){if(1&T&&t.\u0275\u0275viewQuery(St,7),2&T){let ge;t.\u0275\u0275queryRefresh(ge=t.\u0275\u0275loadQuery())&&($._dialogEl=ge.first)}},hostAttrs:["role","dialog","tabindex","-1"],hostVars:7,hostBindings:function(T,$){2&T&&(t.\u0275\u0275attribute("aria-modal",!0)("aria-labelledby",$.ariaLabelledBy)("aria-describedby",$.ariaDescribedBy),t.\u0275\u0275classMap("modal d-block"+($.windowClass?" "+$.windowClass:"")),t.\u0275\u0275classProp("fade",$.animation))},inputs:{animation:"animation",ariaLabelledBy:"ariaLabelledBy",ariaDescribedBy:"ariaDescribedBy",backdrop:"backdrop",centered:"centered",keyboard:"keyboard",scrollable:"scrollable",size:"size",windowClass:"windowClass",modalDialogClass:"modalDialogClass"},outputs:{dismissEvent:"dismiss"},ngContentSelectors:ye,decls:4,vars:2,consts:[["role","document"],["dialog",""],[1,"modal-content"]],template:function(T,$){1&T&&(t.\u0275\u0275projectionDef(),t.\u0275\u0275elementStart(0,"div",0,1)(2,"div",2),t.\u0275\u0275projection(3),t.\u0275\u0275elementEnd()()),2&T&&t.\u0275\u0275classMap("modal-dialog"+($.size?" modal-"+$.size:"")+($.centered?" modal-dialog-centered":"")+($.scrollable?" modal-dialog-scrollable":"")+($.modalDialogClass?" "+$.modalDialogClass:""))},styles:["ngb-modal-window .component-host-scrollable{display:flex;flex-direction:column;overflow:hidden}\n"],encapsulation:2}),U})(),H=(()=>{class U{constructor(T){this._document=T}hide(){const T=Math.abs(window.innerWidth-this._document.documentElement.clientWidth),$=this._document.body,ge=$.style,{overflow:Te,paddingRight:Lt}=ge;if(T>0){const an=parseFloat(window.getComputedStyle($).paddingRight);ge.paddingRight=`${an+T}px`}return ge.overflow="hidden",()=>{T>0&&(ge.paddingRight=Lt),ge.overflow=Te}}}return U.\u0275fac=function(T){return new(T||U)(t.\u0275\u0275inject(n.K0))},U.\u0275prov=t.\u0275\u0275defineInjectable({token:U,factory:U.\u0275fac,providedIn:"root"}),U})(),de=(()=>{class U{constructor(T,$,ge,Te,Lt,an){this._applicationRef=T,this._injector=$,this._document=ge,this._scrollBar=Te,this._rendererFactory=Lt,this._ngZone=an,this._activeWindowCmptHasChanged=new r.x,this._ariaHiddenValues=new Map,this._scrollBarRestoreFn=null,this._backdropAttributes=["animation","backdropClass"],this._modalRef
1s=[],this._windowAttributes=["animation","ariaLabelledBy","ariaDescribedBy","backdrop","centered","keyboard","scrollable","size","windowClass","modalDialogClass"],this._windowCmpts=[],this._activeInstances=new t.EventEmitter,this._activeWindowCmptHasChanged.subscribe(()=>{if(this._windowCmpts.length){const vn=this._windowCmpts[this._windowCmpts.length-1];Ea(this._ngZone,vn.location.nativeElement,this._activeWindowCmptHasChanged),this._revertAriaHidden(),this._setAriaHidden(vn.location.nativeElement)}})}_restoreScrollBar(){const T=this._scrollBarRestoreFn;T&&(this._scrollBarRestoreFn=null,T())}_hideScrollBar(){this._scrollBarRestoreFn||(this._scrollBarRestoreFn=this._scrollBar.hide())}open(T,$,ge,Te){const Lt=Te.container instanceof HTMLElement?Te.container:wi(Te.container)?this._document.querySelector(Te.container):this._document.body,an=this._rendererFactory.createRenderer(null,null);if(!Lt)throw new Error(`The specified modal container "${Te.container||"body"}" was not found in the DOM.`);this._hideScrollBar();const vn=new pe,Sn=this._getContentRef(T,Te.injector||$,ge,vn,Te);let Kn=!1!==Te.backdrop?this._attachBackdrop(T,Lt):void 0,gr=this._attachWindowComponent(T,Lt,Sn),tr=new Ie(gr,Sn,Kn,Te.beforeDismiss);return this._registerModalRef(tr),this._registerWindowCmpt(gr),tr.hidden.pipe((0,I.q)(1)).subscribe(()=>Promise.resolve(!0).then(()=>{this._modalRefs.length||(an.removeClass(this._document.body,"modal-open"),this._restoreScrollBar(),this._revertAriaHidden())})),vn.close=vr=>{tr.close(vr)},vn.dismiss=vr=>{tr.dismiss(vr)},this._applyWindowOptions(gr.instance,Te),1===this._modalRefs.length&&an.addClass(this._document.body,"modal-open"),Kn&&Kn.instance&&(this._applyBackdropOptions(Kn.instance,Te),Kn.changeDetectorRef.detectChanges()),gr.changeDetectorRef.detectChanges(),tr}get activeInstances(){return this._activeInstances}dismissAll(T){this._modalRefs.forEach($=>$.dismiss(T))}hasOpenModals(){return this._modalRefs.length>0}_attachBackdrop(T,$){let Te=T.resolveComponentFactory(_e).create(this._injector);return this._applicationRef.attachView(Te.hostView),$.appendChild(Te.location.nativeElement),Te}_attachWindowComponent(T,$,ge){let Lt=T.resolveComponentFactory(J).create(this._injector,ge.nodes);return this._applicationRef.attachView(Lt.hostView),$.appendChild(Lt.location.nativeElement),Lt}_applyWindowOptions(T,$){this._windowAttributes.forEach(ge=>{wi($[ge])&&(T[ge]=$[ge])})}_applyBackdropOptions(T,$){this._backdropAttributes.forEach(ge=>{wi($[ge])&&(T[ge]=$[ge])})}_getContentRef(T,$,ge,Te,Lt){return ge?ge instanceof t.TemplateRef?this._createFromTemplateRef(ge,Te):Fr(ge)?this._createFromString(ge):this._createFromComponent(T,$,ge,Te,Lt):new ts([])}_createFromTemplateRef(T,$){const Te=T.createEmbeddedView({$implicit:$,close(Lt){$.close(Lt)},dismiss(Lt){$.dismiss(Lt)}});return this._applicationRef.attachView(Te),new ts([Te.rootNodes],Te)}_createFromString(T){const $=this._document.createTextNode(`${T}`);return new ts([[$]])}_createFromComponent(T,$,ge,Te,Lt){const an=T.resolveComponentFactory(ge),vn=t.Injector.create({providers:[{provide:pe,useValue:Te}],parent:$}),Sn=an.create(vn),Kn=Sn.location.nativeElement;return Lt.scrollable&&Kn.classList.add("component-host-scrollable"),this._applicationRef.attachView(Sn.hostView),new ts([[Kn]],Sn.hostView,Sn)}_setAriaHidden(T){const $=T.parentElement;$&&T!==this._document.body&&(Array.from($.children).forEach(ge=>{ge!==T&&"SCRIPT"!==ge.nodeName&&(this._ariaHiddenValues.set(ge,ge.getAttribute("aria-hidden")),ge.setAttribute("aria-hidden","true"))}),this._setAriaHidden($))}_revertAriaHidden(){this._ariaHiddenValues.forEach((T,$)=>{T?$.setAttribute("aria-hidden",T):$.removeAttribute("aria-hidden")}),this._ariaHiddenValues.clear()}_registerModalRef(T){const $=()=>{const ge=this._modalRefs.indexOf(T);ge>-1&&(this._modalRefs.splice(ge,1),this._activeInstances.emit(this._modalRefs))};this._modalRefs.push(T),this._activeInstances.emit(this._modalRefs),T.result.then($,$)}_registerWindowCmpt(T){this._windowCmpts.push(T),this._activeWindowCmptHasChanged.next(),T.onDestroy(()=>{const $=this._windowCmpts.indexOf(T);$>-1&&(this._windowCmpts.splice($,1),this._activeWindowCmptHasChanged.next())})}}return U.\u0275fac=function(T){return new(T||U)(t.\u0275\u0275inject(t.ApplicationRef),t.\u0275\u0275inject(t.Injector),t.\u0275\u0275inject(n.K0),t.\u0275\u0275inject(H),t.\u0275\u0275inject(t.RendererFactory2),t.\u0275\u0275inject(t.NgZone))},U.\u0275prov=t.\u0275\u0275defineInjectable({token:U,factory:U.\u0275fac,providedIn:"root"}),U})(),Pe=(()=>{class U{constructor(T){this._ngbConfig=T,this.backdrop=!0,this.keyboard=!0}get animation(){return void 0===this._animation?this._ngbConfig.animation:this._animation}set animation(T){this._animation=T}}return U.\u0275fac=function(T){return new(T||U)(t.\u0275\u0275inject(to))},U.\u0275prov=t.\u0275\u0275defineInjectable({token:U,factory:U.\u0275fac,providedIn:"root"}),U})(),Fe=(()=>
1{class U{constructor(T,$,ge,Te){this._moduleCFR=T,this._injector=$,this._modalStack=ge,this._config=Te}open(T,$={}){const ge={...this._config,animation:this._config.animation,...$};return this._modalStack.open(this._moduleCFR,this._injector,T,ge)}get activeInstances(){return this._modalStack.activeInstances}dismissAll(T){this._modalStack.dismissAll(T)}hasOpenModals(){return this._modalStack.hasOpenModals()}}return U.\u0275fac=function(T){return new(T||U)(t.\u0275\u0275inject(t.ComponentFactoryResolver),t.\u0275\u0275inject(t.Injector),t.\u0275\u0275inject(de),t.\u0275\u0275inject(Pe))},U.\u0275prov=t.\u0275\u0275defineInjectable({token:U,factory:U.\u0275fac,providedIn:"root"}),U})(),Qe=(()=>{class U{}return U.\u0275fac=function(T){return new(T||U)},U.\u0275mod=t.\u0275\u0275defineNgModule({type:U}),U.\u0275inj=t.\u0275\u0275defineInjector({providers:[Fe]}),U})(),Nt=(()=>{class U{constructor(T){this._ngbConfig=T,this.destroyOnHide=!0,this.orientation="horizontal",this.roles="tablist",this.keyboard=!1}get animation(){return void 0===this._animation?this._ngbConfig.animation:this._animation}set animation(T){this._animation=T}}return U.\u0275fac=function(T){return new(T||U)(t.\u0275\u0275inject(to))},U.\u0275prov=t.\u0275\u0275defineInjectable({token:U,factory:U.\u0275fac,providedIn:"root"}),U})();const fn=U=>wi(U)&&""!==U;let Un=0,Hn=(()=>{class U{constructor(T){this.templateRef=T}}return U.\u0275fac=function(T){return new(T||U)(t.\u0275\u0275directiveInject(t.TemplateRef))},U.\u0275dir=t.\u0275\u0275defineDirective({type:U,selectors:[["ng-template","ngbNavContent",""]]}),U})(),Tr=(()=>{class U{constructor(T,$){this.elementRef=$,this.disabled=!1,this.shown=new t.EventEmitter,this.hidden=new t.EventEmitter,this._nav=T}ngAfterContentChecked(){this.contentTpl=this.contentTpls.first}ngOnInit(){wi(this.domId)||(this.domId="ngb-nav-"+Un++)}get active(){return this._nav.activeId===this.id}get id(){return fn(this._id)?this._id:this.domId}get panelDomId(){return`${this.domId}-panel`}isPanelInDom(){return(wi(this.destroyOnHide)?!this.destroyOnHide:!this._nav.destroyOnHide)||this.active}}return U.\u0275fac=function(T){return new(T||U)(t.\u0275\u0275directiveInject((0,t.forwardRef)(()=>Er)),t.\u0275\u0275directiveInject(t.ElementRef))},U.\u0275dir=t.\u0275\u0275defineDirective({type:U,selectors:[["","ngbNavItem",""]],contentQueries:function(T,$,ge){if(1&T&&t.\u0275\u0275contentQuery(ge,Hn,4),2&T){let Te;t.\u0275\u0275queryRefresh(Te=t.\u0275\u0275loadQuery())&&($.contentTpls=Te)}},hostVars:2,hostBindings:function(T,$){2&T&&t.\u0275\u0275classProp("nav-item",!0)},inputs:{destroyOnHide:"destroyOnHide",disabled:"disabled",domId:"domId",_id:["ngbNavItem","_id"]},outputs:{shown:"shown",hidden:"hidden"},exportAs:["ngbNavItem"]}),U})(),Er=(()=>{class U{constructor(T,$,ge,Te){this.role=T,this._cd=ge,this._document=Te,this.activeIdChange=new t.EventEmitter,this.shown=new t.EventEmitter,this.hidden=new t.EventEmitter,this.destroy$=new r.x,this.navItemChange$=new r.x,this.navChange=new t.EventEmitter,this.animation=$.animation,this.destroyOnHide=$.destroyOnHide,this.orientation=$.orientation,this.roles=$.roles,this.keyboard=$.keyboard}click(T){T.disabled||this._updateActiveId(T.id)}onKeyDown(T){if("tablist"!==this.roles||!this.keyboard)return;const $=T.which,ge=this.links.filter(an=>!an.navItem.disabled),{length:Te}=ge;let Lt=-1;if(ge.forEach((an,vn)=>{an.elRef.nativeElement===this._document.activeElement&&(Lt=vn)}),Te){switch($){case er.ArrowLeft:if("vertical"===this.orientation)return;Lt=(Lt-1+Te)%Te;break;case er.ArrowRight:if("vertical"===this.orientation)return;Lt=(Lt+1)%Te;break;case er.ArrowDown:if("horizontal"===this.orientation)return;Lt=(Lt+1)%Te;break;case er.ArrowUp:if("horizontal"===this.orientation)return;Lt=(Lt-1+Te)%Te;break;case er.Home:Lt=0;break;case er.End:Lt=Te-1}"changeWithArrows"===this.keyboard&&this.select(ge[Lt].navItem.id),ge[Lt].elRef.nativeElement.focus(),T.preventDefault()}}select(T){this._updateActiveId(T,!1)}ngAfterContentInit(){if(!wi(this.activeId)){const T=this.items.first?this.items.first.id:null;fn(T)&&(this._updateActiveId(T,!1),this._cd.detectChanges())}this.items.changes.pipe((0,l.R)(this.destroy$)).subscribe(()=>this._notifyItemChanged(this.activeId))}ngOnChanges({activeId:T}){T&&!T.firstChange&&this._notifyItemChanged(T.currentValue)}ngOnDestroy(){this.destroy$.next()}_updateActiveId(T,$=!0){if(this.activeId!==T){let ge=!1;$&&this.navChange.emit({activeId:this.activeId,nextId:T,preventDefault:()=>{ge=!0}}),ge||(this.activeId=T,this.activeIdChange.emit(T),this._notifyItemChanged(T))}}_notifyItemChanged(T){this.navItemChange$.next(this._getItemById(T))}_getItemById(T){return this.items&&this.items.find($=>
1$.id===T)||null}}return U.\u0275fac=function(T){return new(T||U)(t.\u0275\u0275injectAttribute("role"),t.\u0275\u0275directiveInject(Nt),t.\u0275\u0275directiveInject(t.ChangeDetectorRef),t.\u0275\u0275directiveInject(n.K0))},U.\u0275dir=t.\u0275\u0275defineDirective({type:U,selectors:[["","ngbNav",""]],contentQueries:function(T,$,ge){if(1&T&&(t.\u0275\u0275contentQuery(ge,Tr,4),t.\u0275\u0275contentQuery(ge,Ci,5)),2&T){let Te;t.\u0275\u0275queryRefresh(Te=t.\u0275\u0275loadQuery())&&($.items=Te),t.\u0275\u0275queryRefresh(Te=t.\u0275\u0275loadQuery())&&($.links=Te)}},hostVars:6,hostBindings:function(T,$){1&T&&t.\u0275\u0275listener("keydown.arrowLeft",function(Te){return $.onKeyDown(Te)})("keydown.arrowRight",function(Te){return $.onKeyDown(Te)})("keydown.arrowDown",function(Te){return $.onKeyDown(Te)})("keydown.arrowUp",function(Te){return $.onKeyDown(Te)})("keydown.Home",function(Te){return $.onKeyDown(Te)})("keydown.End",function(Te){return $.onKeyDown(Te)}),2&T&&(t.\u0275\u0275attribute("aria-orientation","vertical"===$.orientation&&"tablist"===$.roles?"vertical":void 0)("role",$.role?$.role:$.roles?"tablist":void 0),t.\u0275\u0275classProp("nav",!0)("flex-column","vertical"===$.orientation))},inputs:{activeId:"activeId",animation:"animation",destroyOnHide:"destroyOnHide",orientation:"orientation",roles:"roles",keyboard:"keyboard"},outputs:{activeIdChange:"activeIdChange",shown:"shown",hidden:"hidden",navChange:"navChange"},exportAs:["ngbNav"],features:[t.\u0275\u0275NgOnChangesFeature]}),U})(),Ci=(()=>{class U{constructor(T,$,ge,Te){this.role=T,this.navItem=$,this.nav=ge,this.elRef=Te}hasNavItemClass(){return this.navItem.elementRef.nativeElement.nodeType===Node.COMMENT_NODE}}return U.\u0275fac=function(T){return new(T||U)(t.\u0275\u0275injectAttribute("role"),t.\u0275\u0275directiveInject(Tr),t.\u0275\u0275directiveInject(Er),t.\u0275\u0275directiveInject(t.ElementRef))},U.\u0275dir=t.\u0275\u0275defineDirective({type:U,selectors:[["a","ngbNavLink",""]],hostAttrs:["href",""],hostVars:14,hostBindings:function(T,$){1&T&&t.\u0275\u0275listener("click",function(Te){return $.nav.click($.navItem),Te.preventDefault()}),2&T&&(t.\u0275\u0275hostProperty("id",$.navItem.domId),t.\u0275\u0275attribute("role",$.role?$.role:$.nav.roles?"tab":void 0)("tabindex",$.navItem.disabled?-1:void 0)("aria-controls",$.navItem.isPanelInDom()?$.navItem.panelDomId:null)("aria-selected",$.navItem.active)("aria-disabled",$.navItem.disabled),t.\u0275\u0275classProp("nav-link",!0)("nav-item",$.hasNavItemClass())("active",$.navItem.active)("disabled",$.navItem.disabled))}}),U})();const po=({classList:U})=>(U.remove("show"),()=>U.remove("active")),jo=(U,le)=>{le&&ri(U),U.classList.add("show")};let ni=(()=>{class U{constructor(T){this.elRef=T}}return U.\u0275fac=function(T){return new(T||U)(t.\u0275\u0275directiveInject(t.ElementRef))},U.\u0275dir=t.\u0275\u0275defineDirective({type:U,selectors:[["","ngbNavPane",""]],hostAttrs:[1,"tab-pane"],hostVars:5,hostBindings:function(T,$){2&T&&(t.\u0275\u0275hostProperty("id",$.item.panelDomId),t.\u0275\u0275attribute("role",$.role?$.role:$.nav.roles?"tabpanel":void 0)("aria-labelledby",$.item.domId),t.\u0275\u0275classProp("fade",$.nav.animation))},inputs:{item:"item",nav:"nav",role:"role"}}),U})(),Ha=(()=>{class U{constructor(T,$){this._cd=T,this._ngZone=$,this._activePane=null}isPanelTransitioning(T){return this._activePane?.item===T}ngAfterViewInit(){this._updateActivePane(),this.nav.navItemChange$.pipe((0,l.R)(this.nav.destroy$),(0,B.O)(this._activePane?.item||null),(0,L.x)(),(0,ee.T)(1)).subscribe(T=>{const $={animation:this.nav.animation,runningTransition:"stop"};this._cd.detectChanges(),this._activePane?_i(this._ngZone,this._activePane.elRef.nativeElement,po,$).subscribe(()=>{const ge=this._activePane?.item;this._activePane=this._getPaneForItem(T),this._cd.markForCheck(),this._activePane&&(this._activePane.elRef.nativeElement.classList.add("active"),_i(this._ngZone,this._activePane.elRef.nativeElement,jo,$).subscribe(()=>{T&&(T.shown.emit(),this.nav.shown.emit(T.id))})),ge&&(ge.hidden.emit(),this.nav.hidden.emit(ge.id))}):this._updateActivePane()})}_updateActivePane(){this._activePane=this._getActivePane(),this._activePane?.elRef.nativeElement.classList.add("show"),this._activePane?.elRef.nativeElement.classList.add("active")}_getPaneForItem(T){return this._panes&&this._panes.find($=>$.item===T)||null}_getActivePane(){return this._panes&&this._panes.find(T=>T.item.active)||null}}return U.\u0275fac=function(T){return new(T||U)(t.\u0275\u0275directiveInject(t.ChangeDetectorRef),t.\u0275\u0275directiveInject(t.NgZone))},U.\u0275cmp=t.\u0275\u0275defineComponent({type:U,selectors:[["","ngbNavOutlet",""]],viewQuery:function(T,$){if(1&T&&t.\u0275\u0275viewQuery(ni,5),2&T){let ge;t.\u0275\u0275queryRefresh(ge=t.\u0275\u0275loadQuery())&&($._panes=ge)}},hostVars:2,hostBindings:function(T,$){2&T&&t.\u0275\u0275classProp("tab-content",!0)},inputs:{paneRole:"paneRole",nav:["ngbNavOutlet","nav"]},attrs:wt,decls:1,vars:1,consts:[["ngFor","",3,"ngForOf"],["ngbNavPane","",3,"item","nav","role",4,"ngIf"],["ngbNavPane","",3,"item","nav","role"],[3,"ngTemplateOutlet","ngTemplateOutletContext"]],template:function(T,$){1&T&&t.\u0275\u0275template(0,Le,1,1,"ng-template",0),2&T&&t.\u0275\u0275property("ngForOf",$.nav.items)},dependencies:[n.sg,n.O5,ni,n.tP],encapsulation:2,changeDetection:0}),U})(),Us=(()=>{class U{}return U.\u0275fac=function(T){return new(T||U)},U.\u0275mod=t.\u0275\u0275defineNgModule({type:U}),U.\u0275inj=t.\u0275\u0275defineInjector({imports:[[n.ez]]}),U})(),xa=(()=>{class U{constructor(){this.disabled=!1,this.boundaryLinks=!1,this.directionLinks=!0,this.ellipses=!0,this.maxSize=0,this.pageSize=10,this.rotate=!1}}return U.\u0275fac=function(T){return new(T||U)},U.\u0275prov=t.\u0275\u0275defineInjectable({token:U,factory:U.\u0275fac,providedIn:"root"}),U})(),Ma=(()=>{class U{constructor(T){this.templateRef=T}}return U.\u0275fac=function(T){return new(T||U)(t.\u0275\u0275directiveInject(t.TemplateRef))},U.\u0275dir=t.\u0275\u0275defineDirective({type:U,selectors:[["ng-template","ngbPaginationEllipsis",""]]}),U})(),ws=(()=>{class U{constructor(T){this.templateRef=T}}return U.\u0275fac=function(T){return new(T||U)(t.\u0275\u0275directiveInject(t.TemplateRef))},U.\u0275dir=t.\u0275\u0275defineDirective({type:U,selectors:[["ng-template","ngbPaginationFirst",""]]}),U})(),aa=(()=>{class U{constructor(T){this.templateRef=T}}return U.\u0275fac=function(T){return new(T||U)(t.\u0275\u0275directiveInject(t.TemplateRef))},U.\u0275dir=t.\u0275\u0275defineDirective({type:U,selectors:[["ng-template","ngbPaginationLast",""]]}),U})(),Pa=(()=>{class U{constructor(T){this.templateRef=T}}return U.\u0275fac=function(T){return new(T||U)(t.\u0275\u0275directiveInject(t.TemplateRef))},U.\u0275dir=t.\u0275\u0275defineDirective({type:U,selectors:[["ng-template","ngbPaginationNext",""]]}),U})(),La=(()=>{class U{constructor(T){this.templateRef=T}}return U.\u0275fac=function(T){return new(T||U)(t.\u0275\u0275directiveInject(t.TemplateRef))},U.\u0275dir=t.\u0275\u0275defineDirective({type:U,selectors:[["ng-template","ngbPaginationNumber",""]]}),U})(),ba=(()=>{class U{constructor(T){this.templateRef=T}}return U.\u0275fac=function(T){return new(T||U)(t.\u0275\u0275directiveInject(t.TemplateRef))},U.\u0275dir=t.\u0275\u0275defineDirective({type:U,selectors:[["ng-template","ngbPaginationPrevious",""]]}),U})(),la=(()=>{class U{constructor(T){this.templateRef=T}}return U.\u0275fac=function(T){return new(T||U)(t.\u0275\u0275directiveInject(t.TemplateRef))},U.\u0275dir=t.\u0275\u0275defineDirective({type:U,selectors:[["ng-template","ngbPaginationPages",""]]}),U})(),Sa=(()=>{class U{constructor(T){this.pageCount=0,this.pages=[],this.page=1,this.pageChange=new t.EventEmitter(!0),this.disabled=T.disabled,this.boundaryLinks=T.boundaryLinks,this.directionLinks=T.directionLinks,this.ellipses=T.ellipses,this.maxSize=T.maxSize,this.pageSize=T.pageSize,this.rotate=T.rotate,this.size=T.size}hasPrevious(){return this.page>1}hasNext(){return this.page<this.pageCount}nextDisabled(){return!this.hasNext()||this.disabled}previousDisabled(){return!this.hasPrevious()||this.disabled}selectPage(T){this._updatePages(T)}ngOnChanges(T){this._updatePages(this.page)}isEllipsis(T){return-1===T}_applyEllipses(T,$){this.ellipses&&(T>0&&(T>2?this.pages.unshift(-1):2===T&&this.pages.unshift(2),this.pages.unshift(1)),$<this.pageCount&&($<this.pageCount-2?this.pages.push(-1):$===this.pageCount-2&&this.pages.push(this.pageCount-1),this.pages.push(this.pageCount)))}_applyRotation(){let T=0,$=this.pageCount,ge=Math.floor(this.maxSize/2);return this.page<=ge?$=this.maxSize:this.pageCount-this.page<ge?T=this.pageCount-this.maxSize:(T=this.page-ge-1,$=this.page+(this.maxSize%2==0?ge-1:ge)),[T,$]}_applyPagination(){let $=(Math.ceil(this.page/this.maxSize)-1)*this.maxSize;return[$,$+this.maxSize]}_setPageInRange(T){const $=this.page;this.page=mr(T,this.pageCount,1),this.page!==$&&Gn(this.collectionSize)&&this.pageChange.emit(this.page)}_updatePages(T){this.pageCount=Math.ceil(this.collectionSize/this.pageSize),Gn(this.pageCount)||(this.pageCount=0),this.pages.length=0;for(let $=1;$<=this.pageCount;$++)this.pages.push($);if(this._setPageInRange(T),this.maxSize>0&&this.pageCount>this.maxSize){let $=0,ge=this.pageCount;[$,ge]=this.rotate?this._applyRotation():this._applyPagination(),this.pages=this.pages.slice($,ge),this._applyEllipses($,ge)}}}return U.\u0275fac=function(T){return new(T||U)(t.\u0275\u0275directiveInject(xa))},U.\u0275cmp=t.\u0275\u0275defineComponent({type:U,selectors:[["ngb-pagination"]],contentQueries:function(T,$,ge){if(1&T&&(t.\u0275\u0275contentQuery(ge,Ma,5),t.\u0275\u0275contentQuery(ge,ws,5),t.\u0275\u0275contentQuery(ge,aa,5),t.\u0275\u0275contentQuery(ge,Pa,5),t.\u0275\u0275contentQuery(ge,La,5),t.\u0275\u0275contentQuery(ge,ba,5),t.\u0275\u0275contentQuery(ge,la,5)),2&T){let Te;t.\u0275\u0275queryRefresh(Te=t.\u0275\u0275loadQuery())&&($.tplEllipsis=Te.first),t.\u0275\u0275queryRefresh(Te=t.\u0275\u0275loadQuery())&&($.tplFirst=Te.first),t.\u0275\u0275queryRefresh(Te=t.\u0275\u0275loadQuery())&&($.tplLast=Te.first),t.\u0275\u0275queryRefresh(Te=t.\u0275\u0275loadQuery())&&($.tplNext=Te.first),t.\u0275\u0275queryRefresh(Te=t.\u0275\u0275loadQuery())&&($.tplNumber=Te.first),t.\u0275\u0275queryRefresh(Te=t.\u0275\u0275loadQuery())&&($.tplPrevious=Te.first),t.\u0275\u0275queryRefresh(Te=t.\u0275\u0275loadQuery())&&($.tplPages=Te.first)}},hostAttrs:["role","navigation"],inputs:{disabled:"disabled",boundaryLinks:"boundaryLinks",directionLinks:"directionLinks",ellipses:"ellipses",rotate:"rotate",collectionSize:"collectionSize",maxSize:"maxSize",page:"page",pageSize:"pageSize",size:"size"},outputs:{pageChange:"pageChange"},features:[t.\u0275\u0275NgOnChangesFeature],decls:20,vars:12,consts:function(){let le,T,$,ge,Te,Lt,an,vn;return le=$localize`:@@ngb.pagination.first:««`,T=$localize`:@@ngb.pagination.previous:«`,$=$localize`:@@ngb.pagination.next:»`,ge=$localize`:@@ngb.pagination.last:»»`,Te=$localize`:@@ngb.pagination.first-aria:First`,Lt=$localize`:@@ngb.pagination.previous-aria:Previous`,an=$localize`:@@ngb.pagination.next-aria:Next`,vn=$localize`:@@ngb.pagination.last-aria:Last`,[["first",""],["previous",""],["next",""],["last",""],["ellipsis",""],["defaultNumber",""],["defaultPages",""],["class","page-item",3,"disabled",4,"ngIf"],[3,"ngTemplateOutlet","ngTemplateOutletContext"],["aria-hidden","true"],le,T,$,ge,["class","sr-only",4,"ngIf"],[1,"sr-only"],["class","page-item",3,"active","disabled",4,"ngFor","ngForOf"],[1,"page-item"],["class","page-link","tabindex","-1","aria-disabled","true",4,"ngIf"],["class","page-link","href","",3,"click",4,"ngIf"],["tabindex","-1","aria-disabled","true",1,"page-link"],["href","",1,"page-link",3,"click"],["aria-label",Te,"href","",1,"page-link",3,"click"],["aria-label",Lt,"href","",1,"page-link",3,"click"],["aria-label",an,"href","",1,"page-link",3,"click"],["aria-label",vn,"href","",1,"page-link",3,"click"]]},template:function(T,$){if(1&T&&(t.\u0275\u0275template(0,qe,2,0,"ng-template",null,0,t.\u0275\u0275templateRefExtractor),t.\u0275\u0275template(2,at,2,0,"ng-template",null,1,t.\u0275\u0275templateRefExtractor),t.\u0275\u0275template(4,Jt,2,0,"ng-template",null,2,t.\u0275\u0275templateRefExtractor),t.\u0275\u0275template(6,$t,2,0,"ng-template",null,3,t.\u0275\u0275templateRefExtractor),t.\u0275\u0275template(8,rn,1,0,"ng-template",null,4,t.\u0275\u0275templateRefExtractor),t.\u0275\u0275template(10,qt,2,2,"ng-template",null,5,t.\u0275\u0275templateRefExtractor),t.\u0275\u0275template(12,Ne,1,1,"ng-template",null,6,t.\u0275\u0275templateRefExtractor),t.\u0275\u0275elementStart(14,"ul"),t.\u0275\u0275template(15,En,3,9,"li",7),t.\u0275\u0275template(16,Cn,3,8,"li",7),t.\u0275\u0275template(17,bn,0,0,"ng-template",8),t.\u0275\u0275template(18,Dn,3,9,"li",7),t.\u0275\u0275template(19,Nn,3,9,"li",7),t.\u0275\u0275elementEnd()),2&T){const ge=t.\u0275\u0275reference(13);t.\u0275\u0275advance(14),t.\u0275\u0275classMap("pagination"+($.size?" pagination-"+$.size:"")),t.\u0275\u0275advance(1),t.\u0275\u0275property("ngIf",$.boundaryLinks),t.\u0275\u0275advance(1),t.\u0275\u0275property("ngIf",$.directionLinks),t.\u0275\u0275advance(1),t.\u0275\u0275property("ngTemplateOutlet",(null==$.tplPages?null:$.tplPages.templateRef)||ge)("ngTemplateOutletContext",t.\u0275\u0275pureFunction3(8,Rn,$.page,$.pages,$.disabled)),t.\u0275\u0275advance(1),t.\u0275\u0275property("ngIf",$.directionLinks),t.\u0275\u0275advance(1),t.\u0275\u0275property("ngIf",$.boundaryLinks)}},dependencies:[n.O5,n.sg,n.tP],encapsulation:2,changeDetection:0}),U})(),Ta=(()=>{class U{}return U.\u0275fac=function(T){return new(T||U)},U.\u0275mod=t.\u0275\u0275defineNgModule({type:U}),U.\u0275inj=t.\u0275\u0275defineInjector({imports:[[n.ez]]}),U})();class Rs{constructor(le,T){this.open=le,this.close=T,T||(this.close=le)}isManual(){return"manual"===this.open||"manual"===this.close}}const Ba={hover:["mouseenter","mouseleave"],focus:["focusin","focusout"]},rt=U=>U>0?(0,te.g)(U):le=>le;let nn=(()=>{class U{}return U.\u0275fac=function(T){return new(T||U)},U.\u0275mod=t.\u0275\u0275defineNgModule({type:U}),U.\u0275inj=t.\u0275\u0275defineInjector({imports:[[n.ez]]}),U})(),Sr=(()=>{class U{}return U.\u0275fac=function(T){return new(T||U)},U.\u0275mod=t.\u0275\u0275defineNgModule({type:U}),U.\u0275inj=t.\u0275\u0275defineInjector({imports:[[n.ez]]}),U})(),Jr=(()=>{class U{constructor(){this.max=10,this.readonly=!1,this.resettable=!1}}return U.\u0275fac=function(T){return new(T||U)},U.\u0275prov=t.\u0275\u0275defineInjectable({token:U,factory:U.\u0275fac,providedIn:"root"}),U})(),kn=(()=>{class U{constructor(T,$){this._changeDetectorRef=$,this.contexts=[],this.disabled=!1,this.hover=new t.EventEmitter,this.leave=ne
1w t.EventEmitter,this.rateChange=new t.EventEmitter(!0),this.onChange=ge=>{},this.onTouched=()=>{},this.max=T.max,this.readonly=T.readonly}ariaValueText(){return`${this.nextRate} out of ${this.max}`}isInteractive(){return!this.readonly&&!this.disabled}enter(T){this.isInteractive()&&this._updateState(T),this.hover.emit(T)}handleBlur(){this.onTouched()}handleClick(T){this.isInteractive()&&this.update(this.resettable&&this.rate===T?0:T)}handleKeyDown(T){switch(T.which){case er.ArrowDown:case er.ArrowLeft:this.update(this.rate-1);break;case er.ArrowUp:case er.ArrowRight:this.update(this.rate+1);break;case er.Home:this.update(0);break;case er.End:this.update(this.max);break;default:return}T.preventDefault()}ngOnChanges(T){T.rate&&this.update(this.rate),T.max&&this._updateMax()}ngOnInit(){this._setupContexts(),this._updateState(this.rate)}registerOnChange(T){this.onChange=T}registerOnTouched(T){this.onTouched=T}reset(){this.leave.emit(this.nextRate),this._updateState(this.rate)}setDisabledState(T){this.disabled=T}update(T,$=!0){const ge=mr(T,this.max,0);this.isInteractive()&&this.rate!==ge&&(this.rate=ge,this.rateChange.emit(this.rate)),$&&(this.onChange(this.rate),this.onTouched()),this._updateState(this.rate)}writeValue(T){this.update(T,!1),this._changeDetectorRef.markForCheck()}
1_updateState(T){this.nextRate=T,this.contexts.forEach(($,ge)=>$.fill=Math.round(100*mr(T-ge,1,0)))}_updateMax(){this.max>0&&(this._setupContexts(),this.update(this.rate))}_setupContexts(){this.contexts=Array.from({length:this.max},(T,$)=>({fill:0,index:$}))}}return U.\u0275fac=function(T){return new(T||U)(t.\u0275\u0275directiveInject(Jr),t.\u0275\u0275directiveInject(t.ChangeDetectorRef))},U.\u0275cmp=t.\u0275\u0275defineComponent({type:U,selectors:[["ngb-rating"]],contentQueries:function(T,$,ge){if(1&T&&t.\u0275\u0275contentQuery(ge,t.TemplateRef,5),2&T){let Te;t.\u0275\u0275queryRefresh(Te=t.\u0275\u0275loadQuery())&&($.starTemplateFromContent=Te.first)}},hostAttrs:["role","slider","aria-valuemin","0",1,"d-inline-flex"],hostVars:5,hostBindings:function(T,$){1&T&&t.\u0275\u0275listener("blur",function(){return $.handleBlur()})("keydown",function(Te){return $.handleKeyDown(Te)})("mouseleave",function(){return $.reset()}),2&T&&(t.\u0275\u0275hostProperty("tabindex",$.disabled?-1:0),t.\u0275\u0275attribute("aria-valuemax",$.max)("aria-valuenow",$.nextRate)("aria-valuetext",$.ariaValueText())("aria-disabled",!!$.readonly||null))},inputs:{max:"max",rate:"rate",readonly:"readonly",resettable:"resettable",starTemplate:"starTemplate"},outputs:{hover:"hover",leave:"leave",rateChange:"rateChange"},features:[t.\u0275\u0275ProvidersFeature([{provide:Q.JU,useExisting:(0,t.forwardRef)(()=>U),multi:!0}]),t.\u0275\u0275NgOnChangesFeature],decls:3,vars:1,consts:[["t",""],["ngFor","",3,"ngForOf"],[1,"sr-only"],[3,"mouseenter","click"],[3,"ngTemplateOutlet","ngTemplateOutletContext"]],template:function(T,$){1&T&&(t.\u0275\u0275template(0,rr,1,1,"ng-template",null,0,t.\u0275\u0275templateRefExtractor),t.\u0275\u0275template(2,Mn,4,5,"ng-template",1)),2&T&&(t.\u0275\u0275advance(2),t.\u0275\u0275property("ngForOf",$.contexts))},dependencies:[n.sg,n.tP],encapsulation:2,changeDetection:0}),U})(),Ir=(()=>{class U{}return U.\u0275fac=function(T){return new(T||U)},U.\u0275mod=t.\u0275\u0275defineNgModule({type:U}),U.\u0275inj=t.\u0275\u0275defineInjector({imports:[[n.ez]]}),U})();class Yr{constructor(le,T,$){this.hour=Qn(le),this.minute=Qn(T),this.second=Qn($)}changeHour(le=1){this.updateHour((isNaN(this.hour)?0:this.hour)+le)}updateHour(le){this.hour=Gn(le)?(le<0?24+le:le)%24:NaN}changeMinute(le=1){this.updateMinute((isNaN(this.minute)?0:this.minute)+le)}updateMinute(le){Gn(le)?(this.minute=le%60<0?60+le%60:le%60,this.changeHour(Math.floor(le/60))):this.minute=NaN}changeSecond(le=1){this.updateSecond((isNaN(this.second)?0:this.second)+le)}updateSecond(le){Gn(le)?(this.second=le<0?60+le%60:le%60,this.changeMinute(Math.floor(le/60))):this.second=NaN}isValid(le=!0){return Gn(this.hour)&&Gn(this.minute)&&(!le||Gn(this.second))}toString(){return`${this.hour||0}:${this.minute||0}:${this.second||0}`}}let ka=(()=>{class U{constructor(){this.meridian=!1,this.spinners=!0,this.seconds=!1,this.hourStep=1,this.minuteStep=1,this.secondStep=1,this.disabled=!1,this.readonlyInputs=!1,this.size="medium"}}return U.\u0275fac=function(T){return new(T||U)},U.\u0275prov=t.\u0275\u0275defineInjectable({token:U,factory:U.\u0275fac,providedIn:"root"}),U})(),Cl=(()=>{class U{}return U.\u0275fac=function(T){return new(T||U)},U.\u0275prov=t.\u0275\u0275defineInjectable({token:U,factory:function(){return function Vl(){return new Ua}()},providedIn:"root"}),U})(),Ua=(()=>{class U extends Cl{fromModel(T){return T&&qn(T.hour)&&qn(T.minute)?{hour:T.hour,minute:T.minute,second:qn(T.second)?T.second:null}:null}toModel(T){return T&&qn(T.hour)&&qn(T.minute)?{hour:T.hour,minute:T.minute,second:qn(T.second)?T.second:null}:null}}return U.\u0275fac=function(){let le;return function($){return(le||(le=t.\u0275\u0275getInheritedFactory(U)))($||U)}}(),U.\u0275prov=t.\u0275\u0275defineInjectable({token:U,factory:U.\u0275fac}),U})(),ml=(()=>{class U{}return U.\u0275fac=function(T){return new(T||U)},U.\u0275prov=t.\u0275\u0275defineInjectable({token:U,factory:function(T){let $=null;return $=T?new T:function $l(U){return new Rc(U)}(t.\u0275\u0275inject(t.LOCALE_ID)),$},providedIn:"root"}),U})(),Rc=(()=>{class U extends ml{constructor(T){super(),this._periods=(0,n.ol)(T,n.x.Standalone,n.Tn.Narrow)}
1getMorningPeriod(){return this._periods[0]}getAfternoonPeriod(){return this._periods[1]}}return U.\u0275fac=function(T){return new(T||U)(t.\u0275\u0275inject(t.LOCALE_ID))},U.\u0275prov=t.\u0275\u0275defineInjectable({token:U,factory:U.\u0275fac}),U})();const xc=/[^0-9]/g;let ol=(()=>{class U{constructor(T,$,ge,Te){this._config=T,this._ngbTimeAdapter=$,this._cd=ge,this.i18n=Te,this.onChange=Lt=>{},this.onTouched=()=>{},this.meridian=T.meridian,this.spinners=T.spinners,this.seconds=T.seconds,this.hourStep=T.hourStep,this.minuteStep=T.minuteStep,this.secondStep=T.secondStep,this.disabled=T.disabled,this.readonlyInputs=T.readonlyInputs,this.size=T.size}set hourStep(T){this._hourStep=qn(T)?T:this._config.hourStep}get hourStep(){return this._hourStep}set minuteStep(T){this._minuteStep=qn(T)?T:this._config.minuteStep}get minuteStep(){return this._minuteStep}set secondStep(T){this._secondStep=qn(T)?T:this._config.secondStep}get secondStep(){return this._secondStep}writeValue(T){const $=this._ngbTimeAdapter.fromModel(T);this.model=$?new Yr($.hour,$.minute,$.second):new Yr,!this.seconds&&(!$||!Gn($.second))&&(this.model.second=0),this._cd.markForCheck()}registerOnChange(T){this.onChange=T}registerOnTouched(T){this.onTouched=T}setDisabledState(T){this.disabled=T}changeHour(T){this.model.changeHour(T),this.propagateModelChange()}changeMinute(T){this.model.changeMinute(T),this.propagateModelChange()}changeSecond(T){this.model.changeSecond(T),this.propagateModelChange()}updateHour(T){const $=this.model.hour>=12,ge=Qn(T);this.model.updateHour(this.meridian&&($&&ge<12||!$&&12===ge)?ge+12:ge),this.propagateModelChange()}updateMinute(T){this.model.updateMinute(Qn(T)),this.propagateModelChange()}updateSecond(T){this.model.updateSecond(Qn(T)),this.propagateModelChange()}toggleMeridian(){this.meridian&&this.changeHour(12)}formatInput(T){T.value=T.value.replace(xc,"")}formatHour(T){return Gn(T)?jr(this.meridian?T%12==0?12:T%12:T%24):jr(NaN)}formatMinSec(T){return jr(Gn(T)?T:NaN)}handleBlur(){this.onTouched()}get isSmallSize(){return"small"===this.size}get isLargeSize(){return"large"===this.size}ngOnChanges(T){T.seconds&&!this.seconds&&this.model&&!Gn(this.model.second)&&(this.model.second=0,this.propagateModelChange(!1))}propagateModelChange(T=!0){T&&this.onTouched(),this.model.isValid(this.seconds)?this.onChange(this._ngbTimeAdapter.toModel({hour:this.model.hour,minute:this.model.minute,second:this.model.second})):this.onChange(this._ngbTimeAdapter.toModel(null))}}return U.\u0275fac=function(T){return new(T||U)(t.\u0275\u0275directiveInject(ka),t.\u0275\u0275directiveInject(Cl),t.\u0275\u0275directiveInject(t.ChangeDetectorRef),t.\u0275\u0275directiveInject(ml))},U.\u0275cmp=t.\u0275\u0275defineComponent({type:U,selectors:[["ngb-timepicker"]],inputs:{meridian:"meridian",spinners:"spinners",seconds:"seconds",hourStep:"hourStep",minuteStep:"minuteStep",secondStep:"secondStep",readonlyInputs:"readonlyInputs",size:"size"},features:[t.\u0275\u0275ProvidersFeature([{provide:Q.JU,useExisting:(0,t.forwardRef)(()=>U),multi:!0}]),t.\u0275\u0275NgOnChangesFeature],decls:16,vars:25,consts:function(){let le,T,$,ge,Te,Lt,an,vn,Sn,Kn,gr,tr,vr,Ji;return le=$localize`:@@ngb.timepicker.HH:HH`,T=$localize`:@@ngb.timepicker.hours:Hours`,$=$localize`:@@ngb.timepicker.MM:MM`,ge=$localize`:@@ngb.timepicker.minutes:Minutes`,Te=$localize`:@@ngb.timepicker.increment-hours:Increment hours`,Lt=$localize`:@@ngb.timepicker.decrement-hours:Decrement hours`,an=$localize`:@@ngb.timepicker.increment-minutes:Increment minutes`,vn=$localize`:@@ngb.timepicker.decrement-minutes:Decrement minutes`,Sn=$localize`:@@ngb.timepicker.SS:SS`,Kn=$localize`:@@ngb.timepicker.seconds:Seconds`,gr=$localize`:@@ngb.timepicker.increment-seconds:Increment seconds`,tr=$localize`:@@ngb.timepicker.decrement-seconds:Decrement seconds`,vr=$localize`:@@ngb.timepicker.PM:${"\ufffd0\ufffd"}:INTERPOLATION:`,Ji=$localize`:@@ngb.timepicker.AM:${"\ufffd0\ufffd"}:INTERPOLATION:`,[[3,"disabled"],[1,"ngb-tp"],[1,"ngb-tp-input-container","ngb-tp-hour"],["tabindex","-1","type","button","class","btn btn-link",3,"btn-sm","btn-lg","disabled","click",4,"ngIf"],["type","text","maxlength","2","inputmode","numeric","placeholder",le,"aria-label",T,1,"ngb-tp-input","form-control",3,"value","readOnly","disabled","change","blur","input","keydown.ArrowUp","keydown.ArrowDown"],[1,"ngb-tp-spacer"],[1,"ngb-tp-input-container","ngb-tp-minute"],["type","text","maxlength","2","inputmode","numeric","placeholder",$,"aria-label",ge,1,"ngb-tp-input","form-control",3,"value","readOnly","disabled","change","blur","input","keydown.ArrowUp","keydown.ArrowDown"],["class","ngb-tp-spacer",4,"ngIf"],["class","ngb-tp-input-container ngb-tp-second",4,"ngIf"],["class","ngb-tp-meridian",4,"ngIf"],["tabindex","-1","type","button",1,"btn","btn-link",3,"disabled","click"],[1,"chevron","
1ngb-tp-chevron"],[1,"sr-only"],Te,[1,"chevron","ngb-tp-chevron","bottom"],Lt,an,vn,[1,"ngb-tp-input-container","ngb-tp-second"],["type","text","maxlength","2","inputmode","numeric","placeholder",Sn,"aria-label",Kn,1,"ngb-tp-input","form-control",3,"value","readOnly","disabled","change","blur","input","keydown.ArrowUp","keydown.ArrowDown"],gr,tr,[1,"ngb-tp-meridian"],["type","button",1,"btn","btn-outline-primary",3,"disabled","click"],[4,"ngIf","ngIfElse"],["am",""],vr,Ji]},template:function(T,$){1&T&&(t.\u0275\u0275elementStart(0,"fieldset",0)(1,"div",1)(2,"div",2),t.\u0275\u0275template(3,Xn,4,7,"button",3),t.\u0275\u0275elementStart(4,"input",4),t.\u0275\u0275listener("change",function(Te){return $.updateHour(Te.target.value)})("blur",function(){return $.handleBlur()})("input",function(Te){return $.formatInput(Te.target)})("keydown.ArrowUp",function(Te){return $.changeHour($.hourStep),Te.preventDefault()})("keydown.ArrowDown",function(Te){return $.changeHour(-$.hourStep),Te.preventDefault()}),t.\u0275\u0275elementEnd(),t.\u0275\u0275template(5,cr,4,7,"button",3),t.\u0275\u0275elementEnd(),t.\u0275\u0275elementStart(6,"div",5),t.\u0275\u0275text(7,":"),t.\u0275\u0275elementEnd(),t.\u0275\u0275elementStart(8,"div",6),t.\u0275\u0275template(9,Qr,4,7,"button",3),t.\u0275\u0275elementStart(10,"input",7),t.\u0275\u0275listener("change",function(Te){return $.updateMinute(Te.target.value)})("blur",function(){return $.handleBlur()})("input",function(Te){return $.formatInput(Te.target)})("keydown.ArrowUp",function(Te){return $.changeMinute($.minuteStep),Te.preventDefault()})("keydown.ArrowDown",function(Te){return $.changeMinute(-$.minuteStep),Te.preventDefault()}),t.\u0275\u0275elementEnd(),t.\u0275\u0275template(11,Xr,4,7,"button",3),t.\u0275\u0275elementEnd(),t.\u0275\u0275template(12,wr,2,0,"div",8),t.\u0275\u0275template(13,ii,4,9,"div",9),t.\u0275\u0275template(14,fi,1,0,"div",8),t.\u0275\u0275template(15,Wr,5,9,"div",10),t.\u0275\u0275elementEnd()()),2&T&&(t.\u0275\u0275classProp("disabled",$.disabled),t.\u0275\u0275property("disabled",$.disabled),t.\u0275\u0275advance(3),t.\u0275\u0275property("ngIf",$.spinners),t.\u0275\u0275advance(1),t.\u0275\u0275classProp("form-control-sm",$.isSmallSize)("form-control-lg",$.isLargeSize),t.\u0275\u0275property("value",$.formatHour(null==$.model?null:$.model.hour))("readOnly",$.readonlyInputs)("disabled",$.disabled),t.\u0275\u0275advance(1),t.\u0275\u0275property("ngIf",$.spinners),t.\u0275\u0275advance(4),t.\u0275\u0275property("ngIf",$.spinners),t.\u0275\u0275advance(1),t.\u0275\u0275classProp("form-control-sm",$.isSmallSize)("form-control-lg",$.isLargeSize),t.\u0275\u0275property("value",$.formatMinSec(null==$.model?null:$.model.minute))("readOnly",$.readonlyInputs)("disabled",$.disabled),t.\u0275\u0275advance(1),t.\u0275\u0275property("ngIf",$.spinners),t.\u0275\u0275advance(1),t.\u0275\u0275property("ngIf",$.seconds),t.\u0275\u0275advance(1),t.\u0275\u0275property("ngIf",$.seconds),t.\u0275\u0275advance(1),t.\u0275\u0275property("ngIf",$.meridian),t.\u0275\u0275advance(1),t.\u0275\u0275property("ngIf",$.meridian))},dependencies:[n.O5],styles:['ngb-timepicker{font-size:1rem}.ngb-tp{display:flex;align-items:center}.ngb-tp-input-container{width:4em}.ngb-tp-chevron:before{border-style:solid;border-width:.29em .29em 0 0;content:"";display:inline-block;height:.69em;left:.05em;position:relative;top:.15em;transform:rotate(-45deg);vertical-align:middle;width:.69em}.ngb-tp-chevron.bottom:before{top:-.3em;transform:rotate(135deg)}.ngb-tp-input{text-align:center}.ngb-tp-hour,.ngb-tp-minute,.ngb-tp-second,.ngb-tp-meridian{display:flex;flex-direction:column;align-items:center;justify-content:space-around}.ngb-tp-spacer{width:1em;text-align:center}\n'],encapsulation:2}),U})(),Dl=(()=>{class U{}return U.\u0275fac=function(T){return new(T||U)},U.\u0275mod=t.\u0275\u0275defineNgModule({type:U}),U.\u0275inj=t.\u0275\u0275defineInjector({imports:[[n.ez]]}),U})(),Ol=(()=>{class U{}return U.\u0275fac=function(T){return new(T||U)},U.\u0275mod=t.\u0275\u0275defineNgModule({type:U}),U.\u0275inj=t.\u0275\u0275defineInjector({imports:[[n.ez]]}),U})(),Ml=(()=>{class U{constructor(T){this._ngbConfig=T,this.autoClose=!0,this.placement="auto",this.triggers="hover focus",this.disableTooltip=!1,this.openDelay=0,this.closeDelay=0}get animation(){return void 0===this._animation?this._ngbConfig.animation:this._animation}set animation(T){this._animation=T}}return U.\u0275fac=function(T){return new(T||U)(t.\u0275\u0275inject(to))},U.\u0275prov=t.\u0275\u0275defineInjectable({token:U,factory:U.\u0275fac,providedIn:"root"}),U})(),Hl=0,kl=(()=>{class U{}return U.\u0275fac=function(T){return new(T||U)},U.\u0275cmp=t.\u0275\u0275defineComponent({type:U,selectors:[["ngb-tooltip-window"]],hostAttrs:["role","tooltip"],hostVars:5,hostBindings:function(T,$){2&T&&(t.\u0275\u0275hostProperty("id",$.id),t.\u0275\u0275classMap("tooltip"+($.tooltipClass?" "+$.tooltipClass:"")),t.\u0275\u0275classProp("fade",$.animation))},inputs:{animation:"animation",id:"id",tooltipClass:"tooltipClass"},ngContentSelectors:ye,decls:3,vars:0,consts:[[1,"arrow"],[1,"tooltip-inner"]],template:function(T,$){1&T&&(t.\u0275\u0275projectionDef(),t.\u0275\u0275element(0,"div",0),t.\u0275\u0275elementStart(1,"div",1),t.\u0275\u0275projection(2),t.\u0275\u0275elementEnd())},styles:["ngb-tooltip-window{pointer-events:none}ngb-tooltip-window .tooltip-inner{pointer-events:auto}ngb-tooltip-window.bs-tooltip-top .arrow,ngb-tooltip-window.bs-tooltip-bottom .arrow{left:calc(50% - 0.4rem)}ngb-tooltip-window.bs-tooltip-top-left .arrow,ngb-tooltip-window.bs-tooltip-bottom-left .arrow{left:1em}ngb-tooltip-window.bs-tooltip-top-right .arrow,ngb-tooltip-window.bs-tooltip-bottom-right .arrow{left:auto;right:.8rem}ngb-tooltip-window.bs-tooltip-left .arrow,ngb-tooltip-window.bs-tooltip-right .arrow{top:calc(50% - 0.4rem)}ngb-tooltip-window.bs-tooltip-left-top .arrow,ngb-tooltip-window.bs-tooltip-right-top .arrow{top:.4rem}ngb-tooltip-window.bs-tooltip-left-bottom .arrow,ngb-tooltip-window.bs-tooltip-right-bottom .arrow{top:auto;bottom:.4rem}\n"],encapsulation:2,changeDetection:0}),U})(),zl=(()=>{class U{constructor(T,$,ge,Te,Lt,an,vn,Sn,Kn){this._elementRef=T,this._renderer=$,this._ngZone=an,this._document=vn,this._changeDetector=Sn,this.shown=new t.EventEmitter,this.hidden=new t.EventEmitter,this._ngbTooltipWindowId="ngb-tooltip-"+Hl++,this._windowRef=null,this.animation=Lt.animation,this.autoClose=Lt.autoClose,this.placement=Lt.placement,this.triggers=Lt.triggers,this.container=Lt.container,this.disableTooltip=Lt.disableTooltip,this.tooltipClass=Lt.tooltipClass,this.openDelay=Lt.openDelay,this.closeDelay=Lt.closeDelay,this._popupService=new $e(kl,ge,Te,$,this._ngZone,Kn),this._zoneSubscription=an.onStable.subscribe(()=>{this._windowRef&&Ms(this._elementRef.nativeElement,this._windowRef.location.nativeElement,this.placement,"body"===this.container,"bs-tooltip")})}set ngbTooltip(T){this._ngbTooltip=T,!T&&this._windowRef&&this.close()}get ngbTooltip(){return this._ngbTooltip}open(T){if(!this._windowRef&&this._ngbTooltip&&!this.disableTooltip){const{windowRef:$,transition$:ge}=this._popupService.open(this._ngbTooltip,T,this.animation);this._windowRef=$,this._windowRef.instance.animation=this.animation,this._windowRef.instance.tooltipClass=this.tooltipClass,this._windowRef.instance.id=this._ngbTooltipWindowId,this._renderer.setAttribute(this._elementRef.nativeElement,"aria-describedby",this._ngbTooltipWindowId),"body"===this.container&&this._document.querySelector(this.container).appendChild(this._windowRef.location.nativeElement),this._windowRef.changeDetectorRef.detectChanges(),this._windowRef.changeDetectorRef.markForCheck(),ks(this._ngZone,this._document,this.autoClose,()=>this.close(),this.hidden,[this._windowRef.location.nativeElement]),ge.subscribe(()=>this.shown.emit())}}close(){null!=this._windowRef&&(this._renderer.removeAttribute(this._elementRef.nativeElement,"aria-describedby"),this._popupService.close(this.animation).subscribe(()=>{this._windowRef=null,this.hidden.emit(),this._changeDetector.markForCheck()}))}toggle(){this._windowRef?this.close():this.open()}isOpen(){return null!=this._windowRef}ngOnInit(){this._unregisterListenersFn=function Ht(U,le,T,$,ge,Te,Lt=0,an=0){const vn=function Xa(U,le=Ba){const T=(U||"").trim();if(0===T.length)return[];const $=T.split(/\s+/).map(Te=>Te.split(":")).map(Te=>{let Lt=le[Te[0]]||Te;return new Rs(Lt[0],Lt[1])}),ge=$.filter(Te=>Te.isManual());if(ge.length>1)throw"Triggers parse error: only one manual trigger is allowed";if(1===ge.length&&$.length>1)throw"Triggers parse error: manual trigger can't be mixed with other triggers";return $}(T);if(1===vn.length&&vn[0].isManual())return()=>{};const Sn=function Ve(U,le,T,$){return new o.y(ge=>{const Te=[],Lt=()=>ge.next(!0),an=()=>ge.next(!1),vn=()=>ge.next(!$());return T.forEach(Sn=>{Sn.open===Sn.close?Te.push(U.listen(le,Sn.open,vn)):Te.push(U.listen(le,Sn.open,Lt),U.listen(le,Sn.close,an))}),()=>{Te.forEach(Sn=>Sn())}})}(U,le,vn,$).pipe(function be(U,le,T){return $=>{let ge=null;const Te=$.pipe((0,g.U)(vn=>({open:vn})),(0,C.h)(vn=>{const Sn=T();
1return Sn===vn.open||ge&&ge.open!==Sn?(ge&&ge.open!==vn.open&&(ge=null),!1):(ge=vn,!0)}),(0,ae.B)()),Lt=Te.pipe((0,C.h)(vn=>vn.open),rt(U)),an=Te.pipe((0,C.h)(vn=>!vn.open),rt(le));return(0,M.T)(Lt,an).pipe((0,C.h)(vn=>vn===ge&&(ge=null,vn.open!==T())),(0,g.U)(vn=>vn.open))}}(Lt,an,$)).subscribe(Kn=>Kn?ge():Te());return()=>Sn.unsubscribe()}(this._renderer,this._elementRef.nativeElement,this.triggers,this.isOpen.bind(this),this.open.bind(this),this.close.bind(this),+this.openDelay,+this.closeDelay)}ngOnChanges({tooltipClass:T}){T&&this.isOpen()&&(this._windowRef.instance.tooltipClass=T.currentValue)}ngOnDestroy(){this.close(),this._unregisterListenersFn&&this._unregisterListenersFn(),this._zoneSubscription.unsubscribe()}}return U.\u0275fac=function(T){return new(T||U)(t.\u0275\u0275directiveInject(t.ElementRef),t.\u0275\u0275directiveInject(t.Renderer2),t.\u0275\u0275directiveInject(t.Injector),t.\u0275\u0275directiveInject(t.ViewContainerRef),t.\u0275\u0275directiveInject(Ml),t.\u0275\u0275directiveInject(t.NgZone),t.\u0275\u0275directiveInject(n.K0),t.\u0275\u0275directiveInject(t.ChangeDetectorRef),t.\u0275\u0275directiveInject(t.ApplicationRef))},U.\u0275dir=t.\u0275\u0275defineDirective({type:U,selectors:[["","ngbTooltip",""]],inputs:{animation:"animation",autoClose:"autoClose",placement:"placement",triggers:"triggers",container:"container",disableTooltip:"disableTooltip",tooltipClass:"tooltipClass",openDelay:"openDelay",closeDelay:"closeDelay",ngbTooltip:"ngbTooltip"},outputs:{shown:"shown",hidden:"hidden"},exportAs:["ngbTooltip"],features:[t.\u0275\u0275NgOnChangesFeature]}),U})(),ca=(()=>{class U{}return U.\u0275fac=function(T){return new(T||U)},U.\u0275mod=t.\u0275\u0275defineNgModule({type:U}),U.\u0275inj=t.\u0275\u0275defineInjector({}),U})(),Lc=(()=>{class U{constructor(){this.highlightClass="ngb-highlight",this.accentSensitive=!0}ngOnChanges(T){!this.accentSensitive&&!String.prototype.normalize&&(console.warn("The `accentSensitive` input in `ngb-highlight` cannot be set to `false` in a browser that does not implement the `String.normalize` function. You will have to include a polyfill in your application to use this feature in the current browser."),this.accentSensitive=!0);const $=Cr(this.result),ge=Array.isArray(this.term)?this.term:[this.term],Te=Sn=>this.accentSensitive?Sn:Eo(Sn),Lt=ge.map(Sn=>function Ao(U){return U.replace(/[-[\]{}()*+?.,\\^$|#\s]/g,"\\$&")}(Te(Cr(Sn)))).filter(Sn=>Sn),an=this.accentSensitive?$:Eo($),vn=Lt.length?an.split(new RegExp(`(${Lt.join("|")})`,"gmi")):[$];if(this.accentSensitive)this.parts=vn;else{let Sn=0;this.parts=vn.map(Kn=>$.substring(Sn,Sn+=Kn.length))}}}return U.\u0275fac=function(T){return new(T||U)},U.\u0275cmp=t.\u0275\u0275defineComponent({type:U,selectors:[["ngb-highlight"]],inputs:{highlightClass:"highlightClass",result:"result",term:"term",accentSensitive:"accentSensitive"},features:[t.\u0275\u0275NgOnChangesFeature],decls:1,vars:1,consts:[["ngFor","",3,"ngForOf"],[3,"class",4,"ngIf","ngIfElse"],["even",""]],template:function(T,$){1&T&&t.\u0275\u0275template(0,tn,3,2,"ng-template",0),2&T&&t.\u0275\u0275property("ngForOf",$.parts)},dependencies:[n.sg,n.O5],styles:[".ngb-highlight{font-weight:700}\n"],encapsulation:2,changeDetection:0}),U})(),Bc=(()=>{class U{constructor(){this.activeIdx=0,this.focusFirst=!0,this.formatter=Cr,this.selectEvent=new t.EventEmitter,this.activeChangeEvent=ne
1w t.EventEmitter}hasActive(){return this.activeIdx>-1&&this.activeIdx<this.results.length}getActive(){return this.results[this.activeIdx]}markActive(T){this.activeIdx=T,this._activeChanged()}next(){this.activeIdx===this.results.length-1?this.activeIdx=this.focusFirst?(this.activeIdx+1)%this.results.length:-1:this.activeIdx++,this._activeChanged()}prev(){this.activeIdx<0?this.activeIdx=this.results.length-1:0===this.activeIdx?this.activeIdx=this.focusFirst?this.results.length-1:-1:this.activeIdx--,this._activeChanged()}resetActive(){this.activeIdx=this.focusFirst?0:-1,this._activeChanged()}select(T){this.selectEvent.emit(T)}ngOnInit(){this.resetActive()}_activeChanged(){this.activeChangeEvent.emit(this.activeIdx>=0?this.id+"-"+this.activeIdx:void 0)}}return U.\u0275fac=function(T){return new(T||U)},U.\u0275cmp=t.\u0275\u0275defineComponent({type:U,selectors:[["ngb-typeahead-window"]],hostAttrs:["role","listbox"],hostVars:3,hostBindings:function(T,$){1&T&&t.\u0275\u0275listener("mousedown",function(Te){return Te.preventDefault()}),2&T&&(t.\u0275\u0275hostProperty("id",$.id),t.\u0275\u0275classMap("dropdown-menu show"+($.popupClass?" "+$.popupClass:"")))},inputs:{id:"id",focusFirst:"focusFirst",results:"results",term:"term",formatter:"formatter",resultTemplate:"resultTemplate",popupClass:"popupClass"},outputs:{selectEvent:"select",activeChangeEvent:"activeChange"},exportAs:["ngbTypeaheadWindow"],decls:3,vars:1,consts:[["rt",""],["ngFor","",3,"ngForOf"],[3,"result","term"],["type","button","role","option",1,"dropdown-item",3,"id","mouseenter","click"],[3,"ngTemplateOutlet","ngTemplateOutletContext"]],template:function(T,$){1&T&&(t.\u0275\u0275template(0,Gt,1,2,"ng-template",null,0,t.\u0275\u0275templateRefExtractor),t.\u0275\u0275template(2,An,2,9,"ng-template",1)),2&T&&(t.\u0275\u0275advance(2),t.\u0275\u0275property("ngForOf",$.results))},dependencies:[Lc,n.sg,n.tP],encapsulation:2}),U})(),Uc=(()=>{class U{constructor(){this.editable=!0,this.focusFirst=!0,this.showHint=!1,this.placement=["bottom-left","bottom-right","top-left","top-right"]}}return U.\u0275fac=function(T){return new(T||U)},U.\u0275prov=t.\u0275\u0275defineInjectable({token:U,factory:U.\u0275fac,providedIn:"root"}),U})();const Gl=new t.InjectionToken("live announcer delay",{providedIn:"root",factory:function Pl(){return 100}});function Yl(U,le=!1){let T=U.body.querySelector("#ngb-live");return null==T&&le&&(T=U.createElement("div"),T.setAttribute("id","ngb-live"),T.setAttribute("aria-live","polite"),T.setAttribute("aria-atomic","true"),T.classList.add("sr-only"),U.body.appendChild(T)),T}let wc=(()=>{class U{constructor(T,$){this._document=T,this._delay=$}ngOnDestroy(){const T=Yl(this._document);T&&T.parentElement.removeChild(T)}say(T){const $=Yl(this._document,!0),ge=this._delay;if(null!=$){$.textContent="";const Te=()=>$.textContent=T;null===ge?Te():setTimeout(Te,ge)}}}return U.\u0275fac=function(T){return new(T||U)(t.\u0275\u0275inject(n.K0),t.\u0275\u0275inject(Gl))},U.\u0275prov=t.\u0275\u0275defineInjectable({token:U,factory:U.\u0275fac,providedIn:"root"}),U})(),Fc=0,Ql=(()=>{class U{constructor(T,$,ge,Te,Lt,an,vn,Sn,Kn,gr,tr){this._elementRef=T,this._renderer=ge,this._live=vn,this._document=Sn,this._ngZone=Kn,this._changeDetector=gr,this._subscription=null,this._closed$=new r.x,this._inputValueBackup=null,this._windowRef=null,this.autocomplete="off",this.placement="bottom-left",this.selectItem=new t.EventEmitter,this.activeDescendant=null,this.popupId="ngb-typeahead-"+Fc++,this._onTouched=()=>{},this._onChange=vr=>{},this.container=Lt.container,this.editable=Lt.editable,this.focusFirst=Lt.focusFirst,this.showHint=Lt.showHint,this.placement=Lt.placement,this._valueChanges=(0,a.R)(T.nativeElement,"input").pipe((0,g.U)(vr=>vr.target.value)),this._resubscribeTypeahead=new m.X(null),this._popupService=new $e(Bc,Te,$,ge,this._ngZone,tr),this._zoneSubscription=an.onStable.subscribe(()=>{this.isPopupOpen()&&Ms(this._elementRef.nativeElement,this._windowRef.location.nativeElement,this.placement,"body"===this.container)})}ngOnInit(){this._subscribeToUserInput()}ngOnChanges({ngbTypeahead:T}){T&&!T.firstChange&&(this._unsubscribeFromUserInput(),this._subscribeToUserInput())}ngOnDestroy(){this._closePopup(),this._unsubscribeFromUserInput(),this._zoneSubscription.unsubscribe()}registerOnChange(T){this._onChange=T}registerOnTouched(T){this._onTouched=T}writeValue(T){this._writeInputValue(this._formatItemForInput(T)),this.showHint&&(this._inputValueBackup=T)}setDisabledState(T){this._renderer.setProperty(this._elementRef.nativeElement,"disabled",T)}dismissPopup(){this.isPopupOpen()&&(this._resubscribeTypeahead.next(null),this._closePopup(),this.showHint&&null!==this._inputValueBackup&&this._writeInputValue(this._inputValueBackup),this._changeDetector.markForCheck())}isPopupOpen(){return null!=this._windowRef}handleBlur(){this._resubscribeTypeahead.next(null),this._onTouched()}handleKeyDown(T){if(this.isPopupOpen())switch(T.which){case er.ArrowDown:T.preventDefault(),this._windowRef.instance.next(),this._showHint();break;case er.ArrowUp:T.preventDefault(),this._windowRef.instance.prev(),this._showHint();break;case er.Enter:case er.Tab:{const $=this._windowRef.instance.getActive();wi($)&&(T.preventDefault(),T.stopPropagation(),this._selectResult($)),this._closePopup();break}}}_openPopup(){if(!this.isPopupOpen()){this._inputValueBackup=this._elementRef.nativeElement.value;const{windowRef:T}=this._popupService.open();this._windowRef=T,this._windowRef.instance.id=this.popupId,this._windowRef.instance.selectEvent.subscribe($=>this._selectResultClosePopup($)),this._windowRef.instance.activeChangeEvent.subscribe($=>this.activeDescendant=$),this._windowRef.instance.popupClass=this.popupClass,"body"===this.container&&this._document.querySelector(this.container).appendChild(this._windowRef.location.nativeElement),this._changeDetector.markForCheck(),ks(this._ngZone,this._document,"outside",()=>this.dismissPopup(),this._closed$,[this._elementRef.nativeElement,this._windowRef.location.nativeElement])}}_closePopup(){this._popupService.close().subscribe(()=>{this._closed$.next(),this._windowRef=null,this.activeDescendant=null})}_selectResult(T){let $=!1;this.selectItem.emit({item:T,preventDefault:()=>{$=!0}}),this._resubscribeTypeahead.next(null),$||(this.writeValue(T),this._onChange(T))}_selectResultClosePopup(T){this._selectResult(T),this._closePopup()}_showHint(){if(this.showHint&&this._windowRef?.instance.hasActive()&&null!=this._inputValueBackup){const T=this._inputValueBackup.toLowerCase(),$=this._formatItemForInput(this._windowRef.instance.getActive());T===$.substr(0,this._inputValueBackup.length).toLowerCase()?(this._writeInputValue(this._inputValueBackup+$.substr(this._inputValueBackup.length)),this._elementRef.nativeElement.setSelectionRange.apply(this._elementRef.nativeElement,[this._inputValueBackup.length,$.length])):this._writeInputValue($)}}_formatItemForInput(T){return null!=T&&this.inputFormatter?this.inputFormatter(T):Cr(T)}_writeInputValue(T){this._renderer.setProperty(this._elementRef.nativeElement,"value",Cr(T))}_subscribeToUserInput(){const T=this._valueChanges.pipe((0,Y.b)($=>{this._inputValueBackup=this.showHint?$:null,this._onChange(this.editable?$:void 0)}),this.ngbTypeahead?this.ngbTypeahead:()=>(0,d.of)([]));this._subscription=this._resubscribeTypeahead.pipe((0,V.w)(()=>T)).subscribe($=>{$&&0!==$.length?(this._openPopup(),this._windowRef.instance.focusFirst=this.focusFirst,this._windowRef.instance.results=$,this._windowRef.instance.term=this._elementRef.nativeElement.value,this.resultFormatter&&(this._windowRef.instance.formatter=this.resultFormatter),this.resultTemplate&&(this._windowRef.instance.resultTemplate=this.resultTemplate),this._windowRef.instance.resetActive(),this._windowRef.changeDetectorRef.detectChanges(),this._showHint()):this._closePopup();const ge=$?$.length:0;this._live.say(0===ge?"No results available":`${ge} result${1===ge?"":"s"} available`)})}_unsubscribeFromUserInput(){this._subscription&&this._subscription.unsubscribe(),this._subscription=null}}return U.\u0275fac=function(T){return new(T||U)(t.\u0275\u0275directiveInject(t.ElementRef),t.\u0275\u0275directiveInject(t.ViewContainerRef),t.\u0275\u0275directiveInject(t.Renderer2),t.\u0275\u0275directiveInject(t.Injector),t.\u0275\u0275directiveInject(Uc),t.\u0275\u0275directiveInject(t.NgZone),t.\u0275\u0275directiveInject(wc),t.\u0275\u0275directiveInject(n.K0),t.\u0275\u0275directiveInject(t.NgZone),t.\u0275\u0275directiveInject(t.ChangeDetectorRef),t.\u0275\u0275directiveInject(t.ApplicationRef))},U.\u0275dir=t.\u0275\u0275defineDirective({type:U,selectors:[["input","ngbTypeahead",""]],hostAttrs:["autocapitalize","off","autocorrect","off","role","combobox","aria-multiline","false"],hostVars:7,hostBindings:function(T,$){1&T&&t.\u0275\u0275listener("blur",function(){return $.handleBlur()})("keydown",function(Te){return $.handleKeyDown(Te)}),2&T&&(t.\u0275\u0275hostProperty("autocomplete",$.autocomplete),t.\u0275\u0275attribute("aria-autocomplete",$.showHint?"both":"list")("aria-activedescendant",$.activeDescendant)("aria-owns",$.isPopupOpen()?$.popupId:null)("aria-expanded",$.isPopupOpen()),t.\u0275\u0275classProp("open",$.isPopupOpen()))},inputs:{autocomplete:"autocomplete",container:"container",editable:"editable",focusFirst:"focusFirst",inputFormatter:"inputFormatter",ngbTypeahead:"ngbTypeahead",resultFormatter:"resultFormatter",resultTemplate:"resultTemplate",showHint:"showHint",placement:"placement",popupClass:"popupClass"},outputs:{selectItem:"selectItem"},exportAs:["ngbTypeahead"],features:[t.\u0275\u0275ProvidersFeature([{provide:Q.JU,useExisting:(0,t.forwardRef)(()=>U),multi:!0}]),t.\u0275\u0275NgOnChangesFeature]}),U})(),bl=(()=>{class U{}return U.\u0275fac=function(T){return new(T||U)},U.\u0275mod=t.\u0275\u0275defineNgModule({type:U}),U.\u0275inj=t.\u0275\u0275defineInjector({imports:[[n.ez]]}),U})();const Xl=[jt,xi,Ro,zo,hr,To,Oa,Qe,Us,Ta,nn,Sr,Ir,Dl,Ol,ca,bl];let Fs=(()=>{class U{}return U.\u0275fac=function(T){return new(T||U)},U.\u0275mod=t.\u0275\u0275defineNgModule({type:U}),U.\u0275inj=t.\u0275\u0275defineInjector({imports:[Xl,jt,xi,Ro,zo,hr,To,Oa,Qe,Us,Ta,nn,Sr,Ir,Dl,Ol,ca,bl]}),U})()},19672:(R,c,e)=>{"use strict";e.d(c,{JHc:()=>Mn,dd1:()=>Gi,muF:()=>hn,y8$:()=>te,i9b:()=>ce,fSU:()=>Ee,aTt:()=>Ft,VId:()=>xe,Qam:()=>$n,X9S:()=>_t,e6P:()=>un,Lq6:()=>
1vt,Pdh:()=>En,BKB:()=>bn,yOA:()=>cr,nh9:()=>fi,jbD:()=>St,dwp:()=>Ae,x7Z:()=>st,oqv:()=>Le,CRj:()=>Y,NJD:()=>oe,RRz:()=>ye,rmD:()=>ee,rJA:()=>K,LvC:()=>V,wT7:()=>Ai,nm_:()=>ae,S_O:()=>Dt,vnf:()=>Ut,uTg:()=>sr,w1X:()=>Rn,fhz:()=>Vt,H9g:()=>zr,b1u:()=>Pt,fQg:()=>oi,WS:()=>qt,TJt:()=>dt,nMt:()=>Zt,ATj:()=>lt,HBf:()=>Cn,O6Y:()=>zn,_Vz:()=>Mr,F8e:()=>Xn,Gp8:()=>Q,WMN:()=>Nn,BgY:()=>k});var t=e(94650),n=e(70655),o=e(61135),i=e(45191),d=e(39646),r=e(56451),p=(e(74177),e(18505)),h=e(54004),m=e(68675),_=e(71884),v=e(54482),E=e(25403),O=e(38737),M=e(39300),P=e(21094),D=e(24006),l=e(36895);function C(se){return"boolean"==typeof se}function I(se){return"function"==typeof se}function g(se){return"number"==typeof se}function B(se){return"object"==typeof se&&null!==se}function L(se){return"string"==typeof se}class V{constructor(me,W){this.layoutService=me,this.validationService=W,this._hasFocus=!1}get control(){const me=this.group.get(this.model.id);if(null===me)throw new Error(`form group does not contain an abstract control with id ${this.model.id}`);return me}get id(){return this.layoutService.getElementId(this.model)}get hasFocus(){return this._hasFocus}get isInvalid(){return this.control.invalid}get isValid(){return this.control.valid}get errorMessages(){return this.validationService.createErrorMessages(this.control,this.model)}get showErrorMessages(){return this.validationService.showErrorMessages(this.control,this.model,this.hasFocus)}getClass(me,W,De=this.model){const et=De===this.model?this.layout:this.layoutService.findByModel(De,this.formLayout)??De.layout;return this.layoutService.getClass(et,me,W)}onBlur(me){me instanceof Event&&me.stopPropagation(),this._hasFocus=!1,this.blur.emit(me)}onChange(me){me instanceof Event&&me.stopPropagation(),this.change.emit(me)}onCustomEvent(me,W=null,De=!1){De?this.customEvent?.emit(me):L(W)&&this.customEvent?.emit({customEvent:me,customEventType:W})}onFocus(me){me instanceof Event&&me.stopPropagation(),this._hasFocus=!0,this.focus.emit(me)}}class Y extends V{get array(){return this.control}get startTemplate(){return this.layoutService.getStartTemplate(this.model,this.templates)}get endTemplate(){return this.layoutService.getEndTemplate(this.model,this.templates)}markForCheck(){this.components instanceof t.QueryList&&this.components.forEach(me=>me.markForCheck())}}class X extends V{markForCheck(){this.components instanceof t.QueryList&&this.components.forEach(me=>me.markForCheck())}}const te=new t.InjectionToken("DYNAMIC_FORM_CONTROL_MAP_FN");let K=(()=>{class se{constructor(W){this.DYNAMIC_FORM_CONTROL_MAP_FN=W,this.forms=[],this.formControls={},this.DYNAMIC_FORM_CONTROL_MAP_FN=W}getForms(){return this.forms.values()}registerForm(W){this.forms.push(W)}unregisterForm(W){const De=this.forms.indexOf(W);-1!==De&&this.forms.splice(De,1)}getFormControlRef(W,De){const et=this.formControls[W];return g(De)?Array.isArray(et)?et[De]:void 0:et}registerFormControl(W,De,et){if(g(et)){const kt=this.formControls[W.id]||[];Array.isArray(kt)?(kt.splice(et,0,De),this.formControls[W.id]=kt):console.warn(`registerFormControlRef is called with index for a non-array form control: ${W.id}`)}else this.formControls[W.id]=De}unregisterFormControl(W,De){const et=this.formControls[W];g(De)?Array.isArray(et)&&void 0!==et[De]&&et.splice(De,1):void 0!==et&&delete this.formControls[W]}getCustomComponentType(W){return I(this.DYNAMIC_FORM_CONTROL_MAP_FN)?this.DYNAMIC_FORM_CONTROL_MAP_FN(W):null}}return se.\u0275fac=function(W){return new(W||se)(t.\u0275\u0275inject(te,8))},se.\u0275prov=t.\u0275\u0275defineInjectable({token:se,factory:se.\u0275fac,providedIn:"root"}),se})(),ee=(()=>{class se{constructor(W,De){this.changeDetectorRef=W,this.componentService=De}ngOnInit(){this.componentService.registerForm(this)}ngOnDestroy(){this.componentService.unregisterForm(this)}trackByFn(W,De){return De.id}markForCheck(){this.changeDetectorRef.markForCheck(),this.components instanceof t.QueryList&&this.components.forEach(W=>W.markForCheck())}detectChanges(){this.changeDetectorRef.detectChanges()}onBlur(W){this.blur?.emit(W)}onChange(W){this.change?.emit(W)}onFocus(W){this.focus?.emit(W)}onCustomEvent(W,De){De.emit(W)}}return se.\u0275fac=function(W){return new(W||se)(t.\u0275\u0275directiveInject(t.ChangeDetectorRef),t.\u0275\u0275directiveInject(K))},se.\u0275dir=t.\u0275\u0275defineDirective({type:se}),se})();var ae=(()=>{return(se=ae||(ae={})).Blur="blur",se.Change="change",se.Focus="focus",ae;var se})();function Q(se){return B(se)&&se.hasOwnProperty("$event")}const j="SERIALIZABLE";function k(se){return(me,W)=>{Reflect.defineMetadata(j,{key:W,name:se||W},me,W)}}function ie(se,me){return function G(se){const me=[];for(const W in se){const De=Reflect.getMetadata(j,se,W);De&&me.push(De)}return me}(me||se).reduce((W,De)=>(W[De.name]=se[De.key],W),{})}let ne=(()=>{class se{constructor(W,De=null){this.parent=null,this.asyncValidators=W.asyncValidators??null,this.errorMessages=W.errorMessages??null,this.hidden=!!C(W.hidden)&&W.hidden,this.id=W.id,this.label=W.label??null,this.labelTooltip=W.labelTooltip??null,this.controlTooltip=W.controlTooltip??null,this.layout=De,this.name=W.name??W.id,this.relations=Array.isArray(W.relations)?W.relations:[],this.updateOn=L(W.updateOn)?W.updateOn:null,this.validators=W.validators??null,this._disabled=!!C(W.disabled)&&W.disabled,this.disabled$=new o.X(this._disabled),this.disabled$.subscribe(et=>this._disabled=et),this.disabledChanges=this.disabled$.asObservable()}get disabled(){return this.disabled$.getValue()}set disabled(W){this.disabled$.next(W)}get hasErrorMessages(){return B(this.errorMessages)}toJSON(){return ie(this)}}return(0,n.__decorate)([k()],se.prototype,"asyncValidators",void 0),(0,n.__decorate)([k("disabled")],se.prototype,"_disabled",void 0),(0,n.__decorate)([k()],se.prototype,"errorMessages",void 0),(0,n.__decorate)([k()],se.prototype,"hidden",void 0),(0,n.__decorate)([k()],se.prototype,"id",void 0),(0,n.__decorate)([k()],se.prototype,"label",void 0),(0,n.__decorate)([k()],se.prototype,"labelTooltip",void 0),(0,n.__decorate)([k()],se.prototype,"controlTooltip",void 0),(0,n.__decorate)([k()],se.prototype,"layout",void 0),(0,n.__decorate)([k()],se.prototype,"name",void 0),(0,n.__decorate)([k()],se.prototype,"relations",void 0),(0,n.__decorate)([k()],se.prototype,"updateOn",void 0),(0,n.__decorate)([k()],se.prototype,"validators",void 0),se})(),q=(()=>{class se extends ne{constructor(W,De){super(W,De),this.additional=B(W.additional)?W.additional:null,this.hint=W.hint??null,this.required=!!C(W.required)&&W.required,this.tabIndex=W.tabIndex??null,this._value=W.value??null,this.value$=new o.X(this._value),this.value$.subscribe(et=>this._value=et),this.valueChanges=this.value$.asObservable()}get value(){return this.value$.getValue()}set value(W){this.value$.next(W)}getAdditional(W,De){return null!==this.additional&&this.additional.hasOwnProperty(W)?this.additional[W]:De}}return(0,n.__decorate)([k()],se.prototype,"additional",void 0),(0,n.__decorate)([k()],se.prototype,"hint",void 0),(0,n.__decorate)([k()],se.prototype,"required",void 0),(0,n.__decorate)([k()],se.prototype,"tabIndex",void 0),(0,n.__decorate)([k("value")],se.prototype,"_value",void 0),se})(),oe=(()=>{class se{constructor(W,De=[],et=-1){this.$implicit=this,this.context=W,this.group=De,this.index=et}get parent(){return this.context}get(W){return this.group[W]}toJSON(){return ie(this)}}return(0,n.__decorate)([k()],se.prototype,"group",void 0),(0,n.__decorate)([k()],se.prototype,"index",void 0),se})();const ce="ARRAY";let ye=(()=>{class se extends ne{constructor(W,De){if(super(W,De),this.groups=[],this.type=ce,!I(W.groupFactory))throw new Error("group factory function must be specified for DynamicFormArrayModel");if(this.groupFactory=W.groupFactory,this.groupAsyncValidators=W.groupAsyncValidators??null,this.groupPrototype=this.groupFactory(),this.groupValidators=W.groupValidators??null,this.initialCount=g(W.initialCount)?W.initialCount:1,Array.isArray(W.groups))W.groups.forEach((et,kt)=>{this.groups.push(new oe(this,et.group,et.index??kt))});else for(let et=0;et<this.initialCount;et++)this.addGroup()}updateGroupIndex(){this.groups.forEach((W,De)=>
1W.index=De)}get size(){return this.groups.length}get(W){return this.groups[W]}addGroup(){return this.insertGroup(this.groups.length)}insertGroup(W){const De=new oe(this,this.groupFactory());return this.groups.splice(W,0,De),this.updateGroupIndex(),De}moveGroup(W,De){this.groups.splice(W+De,0,...this.groups.splice(W,1)),this.updateGroupIndex()}removeGroup(W){this.groups.splice(W,1),this.updateGroupIndex()}clear(){this.groups.splice(0),this.updateGroupIndex()}}return(0,n.__decorate)([k()],se.prototype,"groupAsyncValidators",void 0),(0,n.__decorate)([k()],se.prototype,"groupValidators",void 0),(0,n.__decorate)([k()],se.prototype,"groups",void 0),(0,n.__decorate)([k()],se.prototype,"initialCount",void 0),(0,n.__decorate)([k()],se.prototype,"groupPrototype",void 0),(0,n.__decorate)([k()],se.prototype,"type",void 0),se})(),Me=(()=>{class se extends q{constructor(W,De){super(W,De),this.labelPosition=W.labelPosition??null,this.checked=!!C(this.value)&&this.value}get checked(){return this.value??!1}set checked(W){this.value=W}toggle(){this.checked=!this.checked}}return(0,n.__decorate)([k()],se.prototype,"labelPosition",void 0),se})();const Ee="CHECKBOX";let Ae=(()=>{class se extends Me{constructor(W,De){super(W,De),this.type=Ee,this.indeterminate=!!C(W.indeterminate)&&W.indeterminate}}return(0,n.__decorate)([k()],se.prototype,"indeterminate",void 0),(0,n.__decorate)([k()],se.prototype,"type",void 0),se})(),Je=(()=>{class se extends q{constructor(W,De){super(W,De),this.autoComplete=W.autoComplete??"on",this.autoFocus=!!C(W.autoFocus)&&W.autoFocus,this.maxLength=g(W.maxLength)?W.maxLength:null,this.minLength=g(W.minLength)?W.minLength:null,this.placeholder=W.placeholder??"",this.prefix=W.prefix??null,this.readOnly=!!C(W.readOnly)&&W.readOnly,this.spellCheck=!!C(W.spellCheck)&&W.spellCheck,this.suffix=W.suffix??null}}return(0,n.__decorate)([k()],se.prototype,"autoComplete",void 0),(0,n.__decorate)([k()],se.prototype,"autoFocus",void 0),(0,n.__decorate)([k()],se.prototype,"maxLength",void 0),(0,n.__decorate)([k()],se.prototype,"minLength",void 0),(0,n.__decorate)([k()],se.prototype,"placeholder",void 0),(0,n.__decorate)([k()],se.prototype,"prefix",void 0),(0,n.__decorate)([k()],se.prototype,"readOnly",void 0),(0,n.__decorate)([k()],se.prototype,"spellCheck",void 0),(0,n.__decorate)([k()],se.prototype,"suffix",void 0),se})();const _t="INPUT";let Pt=(()=>{class se extends Je{constructor(W,De){super(W,De),this.files=null,this.list$=null,this._list=null,this._listId=null,this.type=_t,this.accept=W.accept??null,this.inputType=W.inputType??"text",this.mask=W.mask??"",this.maskConfig=W.maskConfig?{...P.um,...W.maskConfig}:P.um,this.max=void 0!==W.max?W.max:null,this.min=void 0!==W.min?W.min:null,this.multiple=C(W.multiple)?W.multiple:null,this.pattern=W.pattern??null,this.step=g(W.step)?W.step:null,void 0!==W.list&&(this.list=W.list,this._listId=`${this.id}List`)}get listId(){return this._listId}get hasList(){return(0,i.b)(this.list$)}set list(W){Array.isArray(W)?(this._list=W,this.list$=(0,d.of)(this._list)):(0,i.b)(W)?this.list$=W.pipe((0,p.b)(De=>this._list=De)):(this._list=null,this.list$=null)}}return(0,n.__decorate)([k()],se.prototype,"accept",void 0),(0,n.__decorate)([k()],se.prototype,"inputType",void 0),(0,n.__decorate)([k()],se.prototype,"mask",void 0),(0,n.__decorate)([k()],se.prototype,"maskConfig",void 0),(0,n.__decorate)([k()],se.prototype,"max",void 0),(0,n.__decorate)([k()],se.prototype,"min",void 0),(0,n.__decorate)([k()],se.prototype,"multiple",void 0),(0,n.__decorate)([k()],se.prototype,"pattern",void 0),(0,n.__decorate)([k()],se.prototype,"step",void 0),(0,n.__decorate)([k("list")],se.prototype,"_list",void 0),(0,n.__decorate)([k()],se.prototype,"type",void 0),se})();var xt=(()=>{return(se=xt||(xt={})).Start="START",se.End="END",xt;var se})();let lt=(()=>{class se{constructor(W){this.templateRef=W,this.align=xt.End,this.as=null}}return se.\u0275fac=function(W){return new(W||se)(t.\u0275\u0275directiveInject(t.TemplateRef))},se.\u0275dir=t.\u0275\u0275defineDirective({type:se,selectors:[["ng-template","modelId",""],["ng-template","modelType",""]],inputs:{align:"align",as:"as",index:"index",modelId:"modelId",modelType:"modelType"}}),se})(),Ut=(()=>{class se{findById(W,De){if(B(De))for(const et of Object.keys(De))if(et===W)return De[et];return null}findByModel(W,De){let et=null;
1if(B(De))for(const kt of Object.keys(De))kt.split(",").forEach(On=>{const Bt=On.trim();(Bt===W.id||Bt===W.type)&&(et=De[kt])});return et}filterTemplatesByModel(W,De){return De instanceof t.QueryList||Array.isArray(De)?De.filter(kt=>kt.modelId===W.id||kt.modelType===W.type):[]}getAlignedTemplate(W,De,et){return this.filterTemplatesByModel(W,De).find(kt=>null===kt.as&&kt.align===et)}getStartTemplate(W,De){return this.getAlignedTemplate(W,De,xt.Start)}getEndTemplate(W,De){return this.getAlignedTemplate(W,De,xt.End)}getClass(W,De,et){if(B(W)&&W.hasOwnProperty(De)){const kt=W[De];if(kt.hasOwnProperty(et))return kt[et]}return""}getHostClass(W){let et="";return B(W)&&["element","grid"].forEach(kt=>{B(W[kt])&&L(W[kt]?.host)&&(et+=` ${W[kt]?.host}`)}),et}getElementId(W){let De=W.id,et=W.parent;for(;null!==et;){if(et instanceof oe){De=`${et.context.id}-${et.index}-${W.id}`;break}et=et.parent}return De}}return se.\u0275fac=function(W){return new(W||se)},se.\u0275prov=t.\u0275\u0275defineInjectable({token:se,factory:se.\u0275fac,providedIn:"root"}),se})();var ke=(()=>{return(se=ke||(ke={})).Blur="blur",se.Change="change",se.Submit="submit",ke;var se})();const ot=new t.InjectionToken("DYNAMIC_VALIDATORS"),hn=new t.InjectionToken("DYNAMIC_ERROR_MESSAGES_MATCHER");let Vt=(()=>{class se{constructor(W,De,et,kt){this._NG_VALIDATORS=W,this._NG_ASYNC_VALIDATORS=De,this._DYNAMIC_VALIDATORS=et,this._DYNAMIC_ERROR_MESSAGES_MATCHER=kt}getValidatorFn(W,De=null,et=this._NG_VALIDATORS){let kt;if(D.kI.hasOwnProperty(W)?kt=D.kI[W]:this._DYNAMIC_VALIDATORS&&this._DYNAMIC_VALIDATORS.has(W)?kt=this._DYNAMIC_VALIDATORS.get(W):et&&(kt=et.find(On=>On.name===W)),void 0===kt)throw new Error(`validator "${W}" is not provided via NG_VALIDATORS, NG_ASYNC_VALIDATORS or DYNAMIC_FORM_VALIDATORS`);return null!==De?kt(De):kt}getValidatorFns(W,De=this._NG_VALIDATORS){let et=[];return B(W)&&(et=Object.keys(W).map(kt=>{const On=W[kt];return this.isValidatorDescriptor(On)?this.getValidatorFn(On.name,On.args,De):this.getValidatorFn(kt,On,De)})),et}getValidator(W,De=null){return this.getValidatorFn(W,De)}getAsyncValidator(W,De=null){return this.getValidatorFn(W,De,this._NG_ASYNC_VALIDATORS)}getValidators(W){return this.getValidatorFns(W)}getAsyncValidators(W){return this.getValidatorFns(W,this._NG_ASYNC_VALIDATORS)}updateValidators(W,De,et){et.validators=W,null===W?De.clearValidators():De.setValidators(this.getValidators(W)),De.updateValueAndValidity()}updateAsyncValidators(W,De,et){et.asyncValidators=W,null===W?De.clearAsyncValidators():De.setAsyncValidators(this.getAsyncValidators(W)),De.updateValueAndValidity()}showErrorMessages(W,De,et){const kt=W.invalid&&De.hasErrorMessages,On=this._DYNAMIC_ERROR_MESSAGES_MATCHER?this._DYNAMIC_ERROR_MESSAGES_MATCHER(W,De,et):((se,me,W)=>se.touched&&!W)(W,0,et);return kt&&On}parseErrorMessageConfig(W,De,et=null){return W.replace(/{{\s*(.+?)\s*}}/gm,(kt,On)=>{let Bt=De,Fn=On;return On.indexOf("validator.")>=0&&et&&(Bt=et,Fn=On.replace("validator.","")),null!=Bt[Fn]?Bt[Fn]:null})}createErrorMessages(W,De){const et=[];if(De.hasErrorMessages){const kt=De.errorMessages;Object.keys(W.errors||{}).forEach(On=>{let Bt=On;if(("minlength"===On||"maxlength"===On)&&(Bt=Bt.replace("length","Length")),kt.hasOwnProperty(Bt)){const Fn=W.getError(On);et.push(this.parseErrorMessageConfig(kt[Bt],De,Fn))}})}return et}isFormHook(W){return L(W)&&Object.values(ke).includes(W)}isValidatorDescriptor(W){return!!B(W)&&W.hasOwnProperty("name")&&W.hasOwnProperty("args")}}return se.\u0275fac=function(W){return new(W||se)(t.\u0275\u0275inject(D.Cf,8),t.\u0275\u0275inject(D.SD,8),t.\u0275\u0275inject(ot,8),t.\u0275\u0275inject(hn,8))},se.\u0275prov=t.\u0275\u0275defineInjectable({token:se,factory:se.\u0275fac,providedIn:"root"}),se})();const $n="GROUP";let Dt=(()=>{class se extends ne{constructor(W,De){super(W,De),this.type=$n,this.group=Array.isArray(W.group)?W.group:[],this.legend=W.legend??null}get(W){return this.group[W]}set(W,De){this.group[W]=De}add(W){this.group.push(W)}insert(W,De){this.group.splice(W,0,De)}move(W,De){this.group.splice(W+De,0,...this.group.splice(W,1))}remove(W){this.group.splice(W,1)}size(){return this.group.length}}return(0,n.__decorate)([k()],se.prototype,"group",void 0),(0,n.__decorate)([k()],se.prototype,"legend",void 0),(0,n.__decorate)([k()],se.prototype,"type",void 0),se})();const Ft="CHECKBOX_GROUP";let St=(()=>{class se extends Dt{constructor(W,De){super(W,De),this.type=Ft}check(...W){W.forEach(De=>this.group[De].checked=!0)}uncheck(...W){W.forEach(De=>this.group[De].checked=!1)}checkAll(){this.group.forEach(W=>W.checked=!0)}uncheckAll(){this.group.forEach(W=>W.checked=!1)}}return(0,n.__decorate)([k()],se.prototype,"group",void 0),(0,n.__decorate)([k()],se.prototype,"type",void 0),se})();const wt="COLORPICKER";let Xt=(()=>{class se extends q{constructor(W,De){super(W,De),this.type=wt,this.format=L(W.format)?W.format:null,this.inline=!!C(W.inline)&&W.inline}}return(0,n.__decorate)([k()],se.prototype,"format",void 0),(0,n.__decorate)([k()],se.prototype,"inline",void 0),(0,n.__decorate)([k()],se.prototype,"type",void 0),se})(),st=(()=>{class se extends q{constructor(W,De){super(W,De),this.format=W.format??null,this.max=W.max??null,this.min=W.min??null,this.placeholder=W.placeholder??null}}return(0,n.__decorate)([k()],se.prototype,"format",void 0),(0,n.__decorate)([k()],se.prototype,"max",void 0),(0,n.__decorate)([k()],se.prototype,"min",void 0),(0,n.__decorate)([k()],se.prototype,"placeholder",void 0),se})();const xe="DATEPICKER";let Le=(()=>{class se extends st{constructor(W,De){super(W,De),this.type=xe,this.autoFocus=!!C(W.autoF
1ocus)&&W.autoFocus,this.focusedDate=W.focusedDate??null,this.inline=!!C(W.inline)&&W.inline,this.prefix=W.prefix??null,this.readOnly=!!C(W.readOnly)&&W.readOnly,this.toggleIcon=L(W.toggleIcon)?W.toggleIcon:null,this.toggleLabel=L(W.toggleLabel)?W.toggleLabel:null,this.suffix=W.suffix??null}}return(0,n.__decorate)([k()],se.prototype,"autoFocus",void 0),(0,n.__decorate)([k()],se.prototype,"focusedDate",void 0),(0,n.__decorate)([k()],se.prototype,"inline",void 0),(0,n.__decorate)([k()],se.prototype,"prefix",void 0),(0,n.__decorate)([k()],se.prototype,"readOnly",void 0),(0,n.__decorate)([k()],se.prototype,"suffix",void 0),(0,n.__decorate)([k()],se.prototype,"toggleIcon",void 0),(0,n.__decorate)([k()],se.prototype,"toggleLabel",void 0),(0,n.__decorate)([k()],se.prototype,"type",void 0),se})(),at=(()=>{class se extends Je{constructor(W,De){super(W,De),this.type="EDITOR"}}return(0,n.__decorate)([k()],se.prototype,"type",void 0),se})(),Jt=(()=>{class se extends q{constructor(W,De){super(W,De),this.multiple=!!C(W.multiple)&&W.multiple}}return(0,n.__decorate)([k()],se.prototype,"multiple",void 0),se})();const $t="FILE_UPLOAD";let rn=(()=>{class se extends Jt{constructor(W,De){super(W,De),this.type=$t,this.accept=Array.isArray(W.accept)?W.accept:null,this.autoUpload=!C(W.autoUpload)||W.autoUpload,this.maxSize=g(W.maxSize)?W.maxSize:null,this.minSize=g(W.minSize)?W.minSize:null,this.removeUrl=W.removeUrl??null,this.showFileList=!C(W.showFileList)||W.showFileList,this.url=W.url??null}}return(0,n.__decorate)([k()],se.prototype,"accept",void 0),(0,n.__decorate)([k()],se.prototype,"autoUpload",void 0),(0,n.__decorate)([k()],se.prototype,"maxSize",void 0),(0,n.__decorate)([k()],se.prototype,"minSize",void 0),(0,n.__decorate)([k()],se.prototype,"removeUrl",void 0),(0,n.__decorate)([k()],se.prototype,"showFileList",void 0),(0,n.__decorate)([k()],se.prototype,"url",void 0),(0,n.__decorate)([k()],se.prototype,"type",void 0),se})(),Wt=(()=>{class se{constructor(W){this.disabled=!!C(W.disabled)&&W.disabled,this.label=W.label??null,this.value=W.value}get text(){return this.label}set text(W){this.label=W}toJSON(){return ie(this)}}return(0,n.__decorate)([k()],se.prototype,"disabled",void 0),(0,n.__decorate)([k()],se.prototype,"label",void 0),(0,n.__decorate)([k()],se.prototype,"value",void 0),se})(),qt=(()=>{class se extends q{constructor(W,De){super(W,De),this._options=[],this.options=W.options}updateOptions$(){this.options$=(0,d.of)(this.options)}set options(W){Array.isArray(W)?(this._options=W.map(De=>new Wt(De)),this.updateOptions$()):(0,i.b)(W)?this.options$=W.pipe((0,h.U)(De=>(this._options=De.map(et=>new Wt(et)),this._options))):this.updateOptions$()}get options(){return this._options}add(W){return this.insert(this.options.length,W)}get(W){return this.options[W]}insert(W,De){const et=new Wt(De);return this.options.splice(W,0,et),this.updateOptions$(),et}remove(...W){W.forEach(De=>this.options.splice(De,1)),this.updateOptions$()}}return(0,n.__decorate)([k("options")],se.prototype,"_options",void 0),se})();const un="RADIO_GROUP";let dt=(()=>{class se extends qt{constructor(W,De){super(W,De),this.type=un,this.legend=W.legend??null}select(W){this.value=this.get(W).value}}return(0,n.__decorate)([k()],se.prototype,"legend",void 0),(0,n.__decorate)([k()],se.prototype,"type",void 0),se})(),je=(()=>{class se extends q{constructor(W,De){super(W,De),this.type="RATING",this.max=g(W.max)?W.max:10}}return(0,n.__decorate)([k()],se.prototype,"max",void 0),(0,n.__decorate)([k()],se.prototype,"type",void 0),se})();const vt="SELECT";let Zt=(()=>{class se extends qt{constructor(W,De){super(W,De),this.type=vt,this.compareWithFn=I(W.compareWithFn)?W.compareWithFn:Object.is,this.filterable=!!C(W.filterable)&&W.filterable,this.multiple=!!C(W.multiple)&&W.multiple,this.placeholder=W.placeholder??"",this.prefix=W.prefix??null,this.suffix=W.suffix??null}select(...W){this.value=this.multiple?W.map(De=>this.get(De).value):this.get(W[0]).value}}return(0,n.__decorate)([k()],se.prototype,"filterable",void 0),(0,n.__decorate)([k()],se.prototype,"multiple",void 0),(0,n.__decorate)([k()],se.prototype,"placeholder",void 0),(0,n.__decorate)([k()],se.prototype,"prefix",void 0),(0,n.__decorate)([k()],se.prototype,"suffix",void 0),(0,n.__decorate)([k()],se.prototype,"type",void 0),se})(),Ne=(()=>{class se extends q{constructor(W,De){super(W,De),this.type="SLIDER",this.max=g(W.max)?W.max:10,this.min=g(W.min)?W.min:0,this.step=g(W.step)?W.step:1,this.vertical=!!C(W.vertical)&&W.vertical}}return(0,n.__decorate)([k()],se.prototype,"max",void 0),(0,n.__decorate)([k()],se.prototype,"min",void 0),(0,n.__decorate)([k()],se.prototype,"step",void 0),(0,n.__decorate)([k()],se.prototype,"vertical",void 0),(0,n.__decorate)([k()],se.prototype,"type",void 0),se})(),bt=(()=>{class se extends Me{constructor(W,De){super(W,De),this.type="SWITCH",this.offLabel=W.offLabel??null,this.onLabel=W.onLabel??null}}return(0,n.__decorate)([k()],se.prototype,"offLabel",void 0),(0,n.__decorate)([k()],se.prototype,"onLabel",void 0),(0,n.__decorate)([k()],se.prototype,"type",void 0),se})();const En="TEXTAREA";let Cn=(()=>{class se extends Je{constructor(W,De){super(W,De),this.type=En,this.cols=g(W.cols
1)?W.cols:20,this.rows=g(W.rows)?W.rows:2,this.wrap=W.wrap??"soft"}}return(0,n.__decorate)([k()],se.prototype,"cols",void 0),(0,n.__decorate)([k()],se.prototype,"rows",void 0),(0,n.__decorate)([k()],se.prototype,"wrap",void 0),(0,n.__decorate)([k()],se.prototype,"type",void 0),se})();const bn="TIMEPICKER";let cn=(()=>{class se extends st{constructor(W,De){super(W,De),this.type=bn,this.meridian=!!C(W.meridian)&&W.meridian,this.showSeconds=!!C(W.showSeconds)&&W.showSeconds}}return(0,n.__decorate)([k()],se.prototype,"meridian",void 0),(0,n.__decorate)([k()],se.prototype,"showSeconds",void 0),(0,n.__decorate)([k()],se.prototype,"type",void 0),se})();function Nn(se,me){return L(me)&&/^(\d{4})-(\d{2})-(\d{2})T(\d{2}):(\d{2}):(\d{2}(?:\.\d*))(?:Z|([+\-])([\d|:]*))?$/.test(me)?new Date(me):me}let Rn=(()=>{class se{constructor(W,De){this.componentService=W,this.validationService=De}createAbstractControlOptions(W=null,De=null,et=null){return{asyncValidators:null!==De?this.validationService.getAsyncValidators(De):null,validators:null!==W?this.validationService.getValidators(W):null,updateOn:null!==et&&this.validationService.isFormHook(et)?et:ke.Change}}createFormArray(W){const De=[],et=this.createAbstractControlOptions(W.validators,W.asyncValidators,W.updateOn);for(let kt=0;kt<W.size;kt++){const On=W.get(kt),Bt=this.createAbstractControlOptions(W.groupValidators,W.groupAsyncValidators,W.updateOn);De.push(this.createFormGroup(On.group,Bt,On))}return new D.Oe(De,et)}createFormGroup(W,De=null,et=null){const kt={};return W.forEach(On=>{switch(On.parent=et,On.type){case ce:kt[On.id]=this.createFormArray(On);break;case $n:case Ft:const Bt=On,Fn=this.createAbstractControlOptions(Bt.validators,Bt.asyncValidators,Bt.updateOn);kt[On.id]=this.createFormGroup(Bt.group,Fn,Bt);break;default:const ai={value:On.value,disabled:On.disabled},li=this.createAbstractControlOptions(On.validators,On.asyncValidators,On.updateOn);kt[On.id]=new D.NI(ai,li)}}),new D.cw(kt,De)}getPathSegment(W){return W instanceof oe?W.index.toString():W.id}getPath(W,De=!1){const et=[this.getPathSegment(W)];let kt=W.parent;for(;kt;)et.unshift(this.getPathSegment(kt)),kt=kt.parent;return De?et.join("."):et}addFormGroupControl(W,De,...et){De instanceof Dt?this.insertFormGroupControl(De.size(),W,De,...et):this.insertFormGroupControl(De.length,W,De,...et)}moveFormGroupControl(W,De,et){et instanceof Dt?et.move(W,De):et.splice(W+De,0,...et.splice(W,1))}insertFormGroupControl(W,De,et,...kt){const Bt=this.createFormGroup(kt,null,et instanceof Dt?et:null).controls;Object.keys(Bt).forEach((Fn,qr)=>{const ai=kt[qr];et instanceof Dt?et.insert(W,ai):et.splice(W,0,ai),De.addControl(Fn,Bt[Fn])})}removeFormGroupControl(W,De,et){et instanceof Dt?(De.removeControl(et.get(W).id),et.remove(W)):(De.removeControl(et[W].id),et.splice(W,1))}addFormArrayGroup(W,De){const et=De.addGroup();W.push(this.createFormGroup(et.group,null,et))}insertFormArrayGroup(W,De,et){const kt=et.insertGroup(W);De.insert(W,this.createFormGroup(kt.group,null,kt))}moveFormArrayGroup(W,De,et,kt){const On=W+De,Bt=De>=0;if(!(W>=0&&W<kt.size&&On>=0&&On<kt.size))throw new Error("form array group cannot be moved due to index or new index being out of bounds");{const Fn=[];for(let qr=Bt?W:On;qr<=(Bt?On:W);qr++)Fn.push(et.at(qr));Fn.forEach((qr,ai)=>{let li;li=Bt?0===ai?On:W+ai-1:ai===Fn.length-1?On:On+ai+1,et.setControl(li,qr)}),kt.moveGroup(W,De)}}removeFormArrayGroup(W,De,et){De.removeAt(W),et.removeGroup(W)}clearFormArray(W,De){W.clear(),De.clear()}findById(W,De){const et=(On,Bt)=>{for(const Fn of Bt){if(Fn.id===On){kt=Fn;break}Fn instanceof Dt&&et(On,Fn.group)}};let kt=null;return et(W,De),kt}findModelById(W,De){return this.findById(W,De)}findControlByModel(W,De){return De.root.get(this.getPath(W,!0))}detectChanges(W){if(W instanceof ee)W.markForCheck(),W.detectChanges();else for(const De of this.componentService.getForms())De.markForCheck(),De.detectChanges()}fromJSON(W){const De=L(W)?JSON.parse(W,Nn):W,et=[];return De.forEach(kt=>{const On=kt.layout??null;switch(kt.type){case ce:const Bt=kt;Array.isArray(Bt.groups)&&Bt.groups.forEach(Fn=>{Fn.group=this.fromJSON(Fn.group)}),Bt.groupFactory=()=>this.fromJSON(Bt.groupPrototype),et.push(new ye(kt,On));break;case Ee:et.push(new Ae(kt,On));break;case Ft:kt.group=this.fromJSON(kt.group),et.push(new St(kt,On));break;case wt:et.push(new Xt(kt,On));break;case xe:et.push(new Le(kt,On));break;case"EDITOR":et.push(new at(kt,On));break;
1case $t:kt.value=null,et.push(new rn(kt,On));break;case $n:kt.group=this.fromJSON(kt.group),et.push(new Dt(kt,On));break;case _t:et.push(new Pt(kt,On));break;case un:et.push(new dt(kt,On));break;case"RATING":et.push(new je(kt,On));break;case vt:et.push(new Zt(kt,On));break;case"SLIDER":et.push(new Ne(kt,On));break;case"SWITCH":et.push(new bt(kt,On));break;case En:et.push(new Cn(kt,On));break;case bn:et.push(new cn(kt,On));break;default:throw new Error(`unknown form control model type defined on JSON object with id "${kt.id}"`)}}),et}}return se.\u0275fac=function(W){return new(W||se)(t.\u0275\u0275inject(K),t.\u0275\u0275inject(Vt))},se.\u0275prov=t.\u0275\u0275defineInjectable({token:se,factory:se.\u0275fac,providedIn:"root"}),se})();const zn="ENABLED",Mr="VISIBLE",Mn="AND",Xn="OR",cr=new t.InjectionToken("DYNAMIC_MATCHERS"),fi=[{provide:cr,useValue:{match:"DISABLED",opposingMatch:zn,onChange(se,me){me.disabled=se}},multi:!0},{provide:cr,useValue:{match:"HIDDEN",opposingMatch:Mr,onChange(se,me){me.hidden=se}},multi:!0},{provide:cr,useValue:{match:"REQUIRED",opposingMatch:"OPTIONAL",onChange(se,me,W,De){let et=null;se?et=B(me.validators)?{...me.validators,required:null}:{required:null}:B(me.validators)&&(delete me.validators.required,et={...me.validators}),De.get(Vt).updateValidators(et,W,me),De.get(Rn).detectChanges()}},multi:!0}];let sr=(()=>{class se{constructor(W,De){this.MATCHERS=W,this.injector=De}getRelatedFormControls(W,De){const et=(On,Bt)=>{const Fn=Bt.rootPath??Bt.id;if(L(Fn)&&!On.hasOwnProperty(Fn)){const qr=Bt.rootPath?De.root.get(Bt.rootPath):De.get(Bt.id);qr instanceof D.NI?On[Fn]=qr:console.warn(`No related form control with id ${Bt.id} could be found`)}return On};return W.relations.reduce((On,Bt)=>Bt.when.reduce(et,On),{})}
1findRelationByMatcher(W,De){return W.find(et=>[De.match,De.opposingMatch].includes(et.match))}matchesCondition(W,De,et){const kt=W.operator??Xn;return W.when.reduce((On,Bt,Fn)=>{const qr=Bt.rootPath??Bt.id;let ai;for(const[li,Ks]of Object.entries(De))if(li===qr){ai=Ks;break}return ai&&W.match===et.match?!(Fn>0&&kt===Mn&&!On||!(Fn>0&&kt===Xn&&On)&&Bt.value!==ai.value&&Bt.status!==ai.status):!(!ai||W.match!==et.opposingMatch||!(Fn>0&&kt===Mn&&On)&&(Fn>0&&kt===Xn&&!On||Bt.value===ai.value||Bt.status===ai.status))},!1)}subscribeRelations(W,De,et){const kt=this.getRelatedFormControls(W,De),On=[];return Object.values(kt).forEach(Bt=>{const Fn=Bt.valueChanges.pipe((0,m.O)(Bt.value),(0,_.x)()),qr=Bt.statusChanges.pipe((0,m.O)(Bt.status),(0,_.x)());On.push((0,r.T)(Fn,qr).subscribe(()=>{this.MATCHERS.forEach(ai=>{const li=this.findRelationByMatcher(W.relations,ai);if(void 0!==li){const Ks=this.matchesCondition(li,kt,ai);ai.onChange(Ks,W,et,this.injector)}})}))}),On}}return se.\u0275fac=function(W){return new(W||se)(t.\u0275\u0275inject(cr,8),t.\u0275\u0275inject(t.Injector))},se.\u0275prov=t.\u0275\u0275defineInjectable({token:se,factory:se.\u0275fac,providedIn:"root"}),se})(),Ai=(()=>{class se{constructor(W,De,et,kt,On,Bt){this.changeDetectorRef=W,this.componentFactoryResolver=De,this.layoutService=et,this.validationService=kt,this.componentService=On,this.relationService=Bt,this._hasFocus=!1,this.context=null,this.componentSubscriptions=[],this.subscriptions=[]}ngOnChanges(W){const De=W.group,kt=W.model;(W.layout||kt)&&this.onLayoutOrModelChange(),kt&&this.onModelChange(),(De||kt)&&this.onGroupOrModelChange()}ngOnInit(){this.subscriptions.push(this.control.statusChanges.pipe(function b(se,me=null){return me=me??se,(0,v.e)((W,De)=>{let et=[],kt=0;W.subscribe((0,E.x)(De,On=>{let Bt=null;kt++%me==0&&et.push([]);for(const Fn of et)Fn.push(On),se<=Fn.length&&(Bt=Bt??[],Bt.push(Fn));if(Bt)for(const Fn of Bt)(0,O.P)(et,Fn),De.next(Fn)},()=>{for(const On of et)De.next(On);De.complete()},void 0,()=>{et=null}))})}(2,1),(0,h.U)(W=>W[0]),(0,M.h)(W=>"PENDING"===W)).subscribe(W=>this.markForCheck()))}ngOnDestroy(){this.destroyFormControlComponent(),this.unsubscribe()}get id(){return this.layoutService.getElementId(this.model)}get hasFocus(){return this._hasFocus}get isInvalid(){return this.control.invalid}get isValid(){return this.control.valid}get errorMessages(){return this.validationService.createErrorMessages(this.control,this.model)}get showErrorMessages(){return this.validationService.showErrorMessages(this.control,this.model,this.hasFocus)}get hasLabel(){return L(this.model.label)}get hasHint(){return L(this.model.hint)}get hint(){return this.model.hint??null}get isCheckbox(){return this.model.type===Ee}get templates(){return void 0!==this.inputTemplateList?this.inputTemplateList:this.contentTemplateList}get startTemplate(){return this.model.type!==ce?this.layoutService.getStartTemplate(this.model,this.templates):void 0}get endTemplate(){return this.model.type!==ce?this.layoutService.getEndTemplate(this.model,this.templates):void 0}getClass(W,De){return this.layoutService.getClass(this.controlLayout,W,De)}markForCheck(){this.changeDetectorRef.markForCheck();const W=this.componentRef&&this.componentRef.instance;W&&(W instanceof X||W instanceof Y)&&W.markForCheck()}createFormControlComponent(){const W=this.componentType;if(null!==W){const De=this.componentFactoryResolver.resolveComponentFactory(W);this.componentViewContainerRef.clear(),this.componentRef=this.componentViewContainerRef.createComponent(De);const et=this.componentRef.instance;et.formLayout=this.layout,et.group=this.group,et.layout=this.controlLayout,et.model=this.model,this.templates&&(et.templates=this.templates),this.componentSubscriptions.push(et.blur.subscribe(kt=>this.onBlur(kt))),this.componentSubscriptions.push(et.change.subscribe(kt=>this.onChange(kt))),this.componentSubscriptions.push(et.focus.subscribe(kt=>this.onFocus(kt))),void 0!==et.customEvent&&this.componentSubscriptions.push(et.customEvent.subscribe(kt=>this.onCustomEvent(kt))),this.registerFormControlComponentRef(this.componentRef)}}destroyFormControlComponent(){this.componentRef&&(this.componentSubscriptions.forEach(W=>W.unsubscribe()),this.componentSubscriptions=[],this.unregisterFormControlComponentRef(),this.componentRef.destroy())}createDynamicFormControlEvent(W,De){return{$event:W,context:this.context,control:this.control,group:this.group,model:this.model,type:De}}unsubscribe(){this.subscriptions.forEach(W=>W.unsubscribe()),this.subscriptions=[]}
1onControlValueChanges(W){this.model instanceof q&&this.model.value!==W&&(this.model.value=W)}onModelValueUpdates(W){this.control.value!==W&&this.control.setValue(W)}onModelDisabledUpdates(W){W?this.control.disable():this.control.enable()}onLayoutOrModelChange(){this.controlLayout=this.layoutService.findByModel(this.model,this.layout)??this.model.layout,this.klass=`${Array.isArray(this.hostClass)?this.hostClass.join(" "):""} ${this.layoutService.getHostClass(this.controlLayout)}`}onModelChange(){this.destroyFormControlComponent(),this.createFormControlComponent()}onGroupOrModelChange(){this.model&&(this.unsubscribe(),this.group&&(this.control=this.group.get(this.model.id),this.subscriptions.push(this.control.valueChanges.subscribe(W=>this.onControlValueChanges(W)))),this.subscriptions.push(this.model.disabledChanges.subscribe(W=>this.onModelDisabledUpdates(W))),this.model instanceof q&&this.subscriptions.push(this.model.valueChanges.subscribe(De=>this.onModelValueUpdates(De))),this.model.relations.length>0&&this.subscriptions.push(...this.relationService.subscribeRelations(this.model,this.group,this.control)))}onChange(W){if(W instanceof Event){if(this.model.type===_t){const De=this.model;"file"===De.inputType&&(De.files=W.target.files)}this.change.emit(this.createDynamicFormControlEvent(W,ae.Change))}else Q(W)?this.change.emit(W):this.change.emit(this.createDynamicFormControlEvent(W,ae.Change))}onBlur(W){Q(W)?this.blur.emit(W):(this._hasFocus=!1,this.blur.emit(this.createDynamicFormControlEvent(W,ae.Blur)))}onFocus(W){Q(W)?this.focus.emit(W):(this._hasFocus=!0,this.focus.emit(this.createDynamicFormControlEvent(W,ae.Focus)))}onCustomEvent(W){const De=this.customEvent;Q(W)?De.emit(W):De.emit(this.createDynamicFormControlEvent(W.customEvent,W.customEventType))}registerFormControlComponentRef(W){this.context instanceof oe?this.componentService.registerFormControl(this.model,W,this.context.index):this.componentService.registerFormControl(this.model,W)}unregisterFormControlComponentRef(){this.context instanceof oe?this.componentService.unregisterFormControl(this.model.id,this.context.index):this.componentService.unregisterFormControl(this.model.id)}}return se.\u0275fac=function(W){return new(W||se)(t.\u0275\u0275directiveInject(t.ChangeDetectorRef),t.\u0275\u0275directiveInject(t.ComponentFactoryResolver),t.\u0275\u0275directiveInject(Ut),t.\u0275\u0275directiveInject(Vt),t.\u0275\u0275directiveInject(K),t.\u0275\u0275directiveInject(sr))},se.\u0275dir=t.\u0275\u0275defineDirective({type:se,features:[t.\u0275\u0275NgOnChangesFeature]}),se})(),oi=(()=>{class se{constructor(W,De){this.elementRef=W,this.renderer=De}ngAfterViewInit(){L(this.listId)&&this.renderer.setAttribute(this.elementRef.nativeElement,"list",this.listId)}}return se.\u0275fac=function(W){return new(W||se)(t.\u0275\u0275directiveInject(t.ElementRef),t.\u0275\u0275directiveInject(t.Renderer2))},se.\u0275dir=t.\u0275\u0275defineDirective({type:se,selectors:[["","dynamicList",""]],inputs:{listId:["dynamicList","listId"]}}),se})();const Gi="off";let zr=(()=>{class se{static forRoot(){return{ngModule:se,providers:[Rn,Ut,Vt,K,sr]}}}return se.\u0275fac=function(W){return new(W||se)},se.\u0275mod=t.\u0275\u0275defineNgModule({type:se}),se.\u0275inj=t.\u0275\u0275defineInjector({imports:[[l.ez,D.UX]]}),se})()},88776:(R,c,e)=>{"use strict";e.d(c,{eX:()=>oe,sQ:()=>ot,jK:()=>it,GW:()=>te,l4:()=>ce});var t=e(56451),n=e(69751),o=e(77579),i=e(38502),d=e(60515),r=e(39646),a=e(62843),p=e(30576);class m{constructor(Ft,St,wt){this.kind=Ft,this.value=St,this.error=wt,this.hasValue="N"===Ft}observe(Ft){return _(this,Ft)}do(Ft,St,wt){const{kind:Xt,value:st,error:xe}=this;return"N"===Xt?Ft?.(st):"E"===Xt?St?.(xe):wt?.()}accept(Ft,St,wt){var Xt;return(0,p.m)(null===(Xt=Ft)||void 0===Xt?void 0:Xt.next)?this.observe(Ft):this.do(Ft,St,wt)}toObservable(){const{kind:Ft,value:St,error:wt}=this,Xt="N"===Ft?(0,r.of)(St):"E"===Ft?(0,a._)(()=>wt):"C"===Ft?d.E:0;if(!Xt)throw new TypeError(`Unexpected notification kind ${Ft}`);return Xt}static createNext(Ft){return new m("N",Ft)}static createError(Ft){return new m("E",void 0,Ft)}static createComplete(){return m.completeNotification}}function _(Dt,Ft){var St,wt,Xt;const{kind:st,value:xe,error:Le}=Dt;if("string"!=typeof st)throw new TypeError('Invalid notification, missing "kind"');"N"===st?null===(St=Ft.next)||void 0===St||St.call(Ft,xe):"E"===st?null===(wt=Ft.error)||void 0===wt||wt.call(Ft,Le):null===(Xt=Ft.complete)||void 0===Xt||Xt.call(Ft)}m.completeNotification=new m("C");var v=e(54482),E=e(25403),b=e(54004),M=e(70262),P=e(39300),D=e(38421);function l(Dt,Ft,St,wt){return(0,v.e)((Xt,st)=>{let xe;Ft&&"function"!=typeof Ft?({duration:St,element:xe,connector:wt}=Ft):xe=Ft;const Le=new Map,qe=qt=>{Le.forEach(qt),qt(st)},at=qt=>qe(un=>un.error(qt));let Jt=0,$t=!1;const rn=new E.Q(st,qt=>{try{const un=Dt(qt);
1let dt=Le.get(un);if(!dt){Le.set(un,dt=wt?wt():new o.x);const ht=function Wt(qt,un){const dt=new n.y(ht=>{Jt++;const je=un.subscribe(ht);return()=>{je.unsubscribe(),0==--Jt&&$t&&rn.unsubscribe()}});return dt.key=qt,dt}(un,dt);if(st.next(ht),St){const je=(0,E.x)(dt,()=>{dt.complete(),je?.unsubscribe()},void 0,void 0,()=>Le.delete(un));rn.add((0,D.Xf)(St(ht)).subscribe(je))}}dt.next(xe?xe(qt):qt)}catch(un){at(un)}},()=>qe(qt=>qt.complete()),at,()=>Le.clear(),()=>($t=!0,0===Jt));Xt.subscribe(rn)})}var C=e(86099),I=e(36129),B=e(95698),L=e(94650),V=e(89653);const Y={dispatch:!0,functional:!1,useEffectsErrorHandler:!0},X="__@ngrx/effects_create__";function te(Dt,Ft={}){const St=Ft.functional?Dt:Dt(),wt={...Y,...Ft};return Object.defineProperty(St,X,{value:wt}),St}function Q(Dt){return Object.getPrototypeOf(Dt)}function k(Dt){return"function"==typeof Dt}function G(Dt){return Dt.filter(k)}function ie(Dt,Ft,St){const wt=Q(Dt).constructor.name,Xt=function ae(Dt){return function K(Dt){return Object.getOwnPropertyNames(Dt).filter(wt=>!(!Dt[wt]||!Dt[wt].hasOwnProperty(X))&&Dt[wt][X].hasOwnProperty("dispatch")).map(wt=>({propertyName:wt,...Dt[wt][X]}))}(Dt)}(Dt).map(({propertyName:st,dispatch:xe,useEffectsErrorHandler:Le})=>{const qe="function"==typeof Dt[st]?Dt[st]():Dt[st],at=Le?St(qe,Ft):qe;return!1===xe?at.pipe((0,i.l)()):at.pipe(function O(){return(0,v.e)((Dt,Ft)=>{Dt.subscribe((0,E.x)(Ft,St=>{Ft.next(m.createNext(St))},()=>{Ft.next(m.createComplete()),Ft.complete()},St=>{Ft.next(m.createError(St)),Ft.complete()}))})}()).pipe((0,b.U)($t=>({effect:Dt[st],notification:$t,propertyName:st,sourceName:wt,sourceInstance:Dt})))});return(0,t.T)(...Xt)}const ne=10;function q(Dt,Ft,St=ne){return Dt.pipe((0,M.K)(wt=>(Ft&&Ft.handleError(wt),St<=1?Dt:q(Dt,Ft,St-1))))}let oe=(()=>{class Dt extends n.y{constructor(St){super(),St&&(this.source=St)}lift(St){const wt=new Dt;return wt.source=this,wt.operator=St,wt}}return Dt.\u0275fac=function(St){return new(St||Dt)(L.\u0275\u0275inject(V.Y$))},Dt.\u0275prov=L.\u0275\u0275defineInjectable({token:Dt,factory:Dt.\u0275fac,providedIn:"root"}),Dt})();function ce(...Dt){return(0,P.h)(Ft=>Dt.some(St=>"string"==typeof St?St===Ft.type:St.type===Ft.type))}const ye=new L.InjectionToken("@ngrx/effects Internal Root Guard"),Me=new L.InjectionToken("@ngrx/effects User Provided Effects"),Ee=new L.InjectionToken("@ngrx/effects Internal Root Effects"),Ae=new L.InjectionToken("@ngrx/effects Internal Root Effects Instances"),Je=new L.InjectionToken("@ngrx/effects Internal Feature Effects"),_t=new L.InjectionToken("@ngrx/effects Internal Feature Effects Instance Groups"),It=new L.InjectionToken("@ngrx/effects Effects Error Handler",{providedIn:"root",factory:()=>q}),it="@ngrx/effects/init";(0,V.PH)(it);const nt="ngrxOnIdentifyEffects",tt="ngrxOnInitEffects";function Tt(Dt){return At(Dt,tt)}function At(Dt,Ft){return Dt&&Ft in Dt&&"function"==typeof Dt[Ft]}let Rt=(()=>{class Dt extends o.x{constructor(St,wt){super(),this.errorHandler=St,this.effectsErrorHandler=wt}addEffects(St){this.next(St)}toActions(){return this.pipe(l(St=>function j(Dt){return"Object"!==Dt.constructor.name&&"Function"!==Dt.constructor.name}(St)?Q(St):St),(0,C.z)(St=>St.pipe(l(Pt))),(0,C.z)(St=>{const wt=St.pipe((0,I.z)(st=>function xt(Dt,Ft){return St=>{const wt=ie(St,Dt,Ft);return function pn(Dt){return At(Dt,"ngrxOnRunEffects")}(St)?St.ngrxOnRunEffects(wt):wt}}(this.errorHandler,this.effectsErrorHandler)(st)),(0,b.U)(st=>(function Xe(Dt,Ft){if("N"===Dt.notification.kind){const St=Dt.notification.value;!function pt(Dt){return"function"!=typeof Dt&&Dt&&Dt.type&&"string"==typeof Dt.type}(St)&&Ft.handleError(new Error(`Effect ${function Mt({propertyName:Dt,sourceInstance:Ft,sourceName:St}){const wt="function"==typeof Ft[Dt];return`"${St}.${String(Dt)}${wt?"()":""}"`}(Dt)} dispatched an invalid action: ${function Yt(Dt){try{return JSON.stringify(Dt)}catch{return Dt}}(St)}`))}}(st,this.errorHandler),st.notification)),(0,P.h)(st=>"N"===st.kind&&null!=st.value),function g(){return(0,v.e)((Dt,Ft)=>{Dt.subscribe((0,E.x)(Ft,St=>_(St,Ft)))})}()),Xt=St.pipe((0,B.q)(1),(0,P.h)(Tt),(0,b.U)(st=>st.ngrxOnInitEffects()));return(0,t.T)(wt,Xt)}))}}return Dt.\u0275fac=function(St){return new(St||Dt)(L.\u0275\u0275inject(L.ErrorHandler),L.\u0275\u0275inject(It))},Dt.\u0275prov=L.\u0275\u0275defineInjectable({token:Dt,factory:Dt.\u0275fac,providedIn:"root"}),Dt})();function Pt(Dt){return function mt(Dt){return At(Dt,nt)}(Dt)?Dt.ngrxOnIdentifyEffects():""}let lt=(()=>{class Dt{constructor(St,wt){this.effectSources=St,this.store=wt,this.effectsSubscription=null}get isStarted(){return!!this.effectsSubscription}start(){this.effectsSubscription||(this.effectsSubscription=this.effectSources.toActions().subscribe(this.store))}ngOnDestroy(){this.effectsSubscription&&(this.effectsSubscription.unsubscribe(),this.effectsSubscription=null)}}return Dt.\u0275fac=function(St){return new(St||Dt)(L.\u0275\u0275inject(Rt),L.\u0275\u0275inject(V.yh))},Dt.\u0275prov=L.\u0275\u0275defineInjectable({token:Dt,factory:Dt.\u0275fac,providedIn:"root"}),Dt})(),Ut=(()=>{class Dt{constructor(St,wt,Xt,st,xe,Le,qe){this.sources=St,wt.start();for(const at of st)St.addEffects(at);Xt.dispatch({type:it})}addEffects(St){this.sources.addEffects(St)}}return Dt.\u0275fac=function(St){return new(St||Dt)(L.\u0275\u0275inject(Rt),L.\u0275\u0275inject(lt),L.\u0275\u0275inject(V.yh),L.\u0275\u0275inject(Ae),L.\u0275\u0275inject(V.cr,8),L.\u0275\u0275inject(V.CK,8),L.\u0275\u0275inject(ye,8))},Dt.\u0275mod=L.\u0275\u0275defineNgModule({type:Dt}),Dt.\u0275inj=L.\u0275\u0275defineInjector({}),Dt})(),ke=(()=>{class Dt{constructor(St,wt,Xt,st){const xe=wt.flat();for(const Le of xe)St.addEffects(Le)}}return Dt.\u0275fac=function(St){return new(St||Dt)(L.\u0275\u0275inject(Ut),L.\u0275\u0275inject(_t),L.\u0275\u0275inject(V.cr,8),L.\u0275\u0275inject(V.CK,8))},Dt.\u0275mod=L.\u0275\u0275defineNgModule({type:Dt}),Dt.\u0275inj=L.\u0275\u0275defineInjector({}),Dt})(),ot=(()=>
1{class Dt{static forFeature(...St){const wt=St.flat(),Xt=G(wt);return{ngModule:ke,providers:[Xt,{provide:Je,multi:!0,useValue:wt},{provide:Me,multi:!0,useValue:[]},{provide:_t,multi:!0,useFactory:gt,deps:[Je,Me]}]}}static forRoot(...St){const wt=St.flat(),Xt=G(wt);return{ngModule:Ut,providers:[Xt,{provide:Ee,useValue:[wt]},{provide:ye,useFactory:zt},{provide:Me,multi:!0,useValue:[]},{provide:Ae,useFactory:gt,deps:[Ee,Me]}]}}}return Dt.\u0275fac=function(St){return new(St||Dt)},Dt.\u0275mod=L.\u0275\u0275defineNgModule({type:Dt}),Dt.\u0275inj=L.\u0275\u0275defineInjector({}),Dt})();function gt(Dt,Ft){const St=[];for(const wt of Dt)St.push(...wt);for(const wt of Ft)St.push(...wt);return St.map(wt=>k(wt)?(0,L.inject)(wt):wt)}function zt(){const Dt=(0,L.inject)(lt,{optional:!0,skipSelf:!0}),Ft=(0,L.inject)(Ee,{self:!0});if((1!==Ft.length||0!==Ft[0].length)&&Dt)throw new TypeError("EffectsModule.forRoot() called twice. Feature modules should use EffectsModule.forFeature() instead.");return"guarded"}},66943:(R,c,e)=>{"use strict";e.d(c,{GC:()=>B,Qi:()=>K,mg:()=>b,tE:()=>a});var t=e(89653),n=e(94650),o=e(34793),i=e(11365);const d="@ngrx/router-store/request",a=((0,t.PH)(d,(0,t.Ky)()),"@ngrx/router-store/navigation"),h=((0,t.PH)(a,(0,t.Ky)()),"@ngrx/router-store/cancel"),_=((0,t.PH)(h,(0,t.Ky)()),"@ngrx/router-store/error"),E=((0,t.PH)(_,(0,t.Ky)()),"@ngrx/router-store/navigated");function b(j,k){const G=k;switch(G.type){case a:case _:case h:return{state:G.payload.routerState,navigationId:G.payload.event.id};default:return j}}(0,t.PH)(E,(0,t.Ky)());class M{serialize(k){return{root:this.serializeRoute(k.root),url:k.url}}serializeRoute(k){const G=k.children.map(ie=>this.serializeRoute(ie));return{params:k.params,data:k.data,url:k.url,outlet:k.outlet,title:k.title,routeConfig:k.routeConfig?{path:k.routeConfig.path,pathMatch:k.routeConfig.pathMatch,redirectTo:k.routeConfig.redirectTo,outlet:k.routeConfig.outlet,title:"string"==typeof k.routeConfig.title?k.routeConfig.title:void 0}:null,queryParams:k.queryParams,fragment:k.fragment,firstChild:G[0],children:G}}}var P=(()=>{return(j=P||(P={}))[j.PreActivation=1]="PreActivation",j[j.PostActivation=2]="PostActivation",P;var j})();const D="router",l=new n.InjectionToken("@ngrx/router-store Internal Configuration"),C=new n.InjectionToken("@ngrx/router-store Configuration");function I(j){return{stateKey:D,serializer:M,navigationActionTiming:P.PreActivation,...j}}class g{serialize(k){return{root:this.serializeRoute(k.root),url:k.url}}serializeRoute(k){const G=k.children.map(ie=>this.serializeRoute(ie));return{params:k.params,paramMap:k.paramMap,data:k.data,url:k.url,outlet:k.outlet,title:k.title,routeConfig:k.routeConfig?{component:k.routeConfig.component,path:k.routeConfig.path,pathMatch:k.routeConfig.pathMatch,redirectTo:k.routeConfig.redirectTo,outlet:k.routeConfig.outlet,title:k.routeConfig.title}:null,queryParams:k.queryParams,queryParamMap:k.queryParamMap,fragment:k.fragment,component:k.routeConfig?k.routeC
1onfig.component:void 0,root:void 0,parent:void 0,firstChild:G[0],pathFromRoot:void 0,children:G}}}class B{}var L=(()=>{return(j=L||(L={}))[j.NONE=1]="NONE",j[j.ROUTER=2]="ROUTER",j[j.STORE=3]="STORE",L;var j})();let V=(()=>{class j{constructor(G,ie,ne,q,oe,ce){this.store=G,this.router=ie,this.serializer=ne,this.errorHandler=q,this.config=oe,this.activeRuntimeChecks=ce,this.lastEvent=null,this.routerState=null,this.trigger=L.NONE,this.stateKey=this.config.stateKey,!(0,t.rM)()&&(0,n.isDevMode)()&&(ce?.strictActionSerializability||ce?.strictStateSerializability)&&this.serializer instanceof g&&console.warn("@ngrx/router-store: The serializability runtime checks cannot be enabled with the FullRouterStateSerializer. The FullRouterStateSerializer has an unserializable router state and actions that are not serializable. To use the serializability runtime checks either use the MinimalRouterStateSerializer or implement a custom router state serializer."),this.setUpStoreStateListener(),this.setUpRouterEventsListener()}setUpStoreStateListener(){this.store.pipe((0,t.Ys)(this.stateKey),(0,i.M)(this.store)).subscribe(([G,ie])=>{this.navigateIfNeeded(G,ie)})}navigateIfNeeded(G,ie){if(!G||!G.state||this.trigger===L.ROUTER||this.lastEvent instanceof o.OD)return;const ne=G.state.url;(function Y(j,k){return X(j)===X(k)})(this.router.url,ne)||(this.storeState=ie,this.trigger=L.STORE,this.router.navigateByUrl(ne).catch(q=>{this.errorHandler.handleError(q)}))}setUpRouterEventsListener(){const G=this.config.navigationActionTiming===P.PostActivation;let ie;this.router.events.pipe((0,i.M)(this.store)).subscribe(([ne,q])=>{this.lastEvent=ne,ne instanceof o.OD?(this.routerState=this.serializer.serialize(this.router.routerState.snapshot),this.trigger!==L.STORE&&(this.storeState=q,this.dispatchRouterRequest(ne))):ne instanceof o.R9?(ie=ne,!G&&this.trigger!==L.STORE&&this.dispatchRouterNavigation(ne)):ne instanceof o.gk?(this.dispatchRouterCancel(ne),this.reset()):ne instanceof o.Q3?(this.dispatchRouterError(ne),this.reset()):ne instanceof o.m2&&(this.trigger!==L.STORE&&(G&&this.dispatchRouterNavigation(ie),this.dispatchRouterNavigated(ne)),this.reset())})}dispatchRouterRequest(G){this.dispatchRouterAction(d,{event:G})}dispatchRouterNavigation(G){const ie=this.serializer.serialize(G.state);this.dispatchRouterAction(a,{routerState:ie,event:new o.R9(G.id,G.url,G.urlAfterRedirects,ie)})}dispatchRouterCancel(G){this.dispatchRouterAction(h,{storeState:this.storeState,event:G})}dispatchRouterError(G){this.dispatchRouterAction(_,{storeState:this.storeState,event:new o.Q3(G.id,G.url,`${G}`)})}dispatchRouterNavigated(G){const ie=this.serializer.serialize(this.router.routerState.snapshot);this.dispatchRouterAction(E,{event:G,routerState:ie})}dispatchRouterAction(G,ie){this.trigger=L.ROUTER;try{this.store.dispatch({type:G,payload:{routerState:this.routerState,...ie,event:0===this.config.routerState?ie.event:{id:ie.event.id,url:ie.event.url,urlAfterRedirects:ie.event.urlAfterRedirects}}})}finally{this.trigger=L.NONE}}reset(){this.trigger=L.NONE,this.storeState=null,this.routerState=null}}return j.\u0275fac=function(G){return new(G||j)(n.\u0275\u0275inject(t.yh),n.\u0275\u0275inject(o.F0),n.\u0275\u0275inject(B),n.\u0275\u0275inject(n.ErrorHandler),n.\u0275\u0275inject(C),n.\u0275\u0275inject(t.hg))},j.\u0275prov=n.\u0275\u0275defineInjectable({token:j,factory:j.\u0275fac}),j})();function X(j){return j?.length>0&&"/"===j[j.length-1]?j.substring(0,j.length-1):j}function te(j={}){return(0,n.makeEnvironmentProviders)([{provide:l,useValue:j},{provide:C,useFactory:I,deps:[l]},{provide:B,useClass:j.serializer?j.serializer:0===j.routerState?g:M},{provide:n.ENVIRONMENT_INITIALIZER,multi:!0,useFactory:()=>()=>(0,n.inject)(V)},V])}let K=(()=>{class j{static forRoot(G={}){return{ngModule:j,providers:[te(G)]}}}return j.\u0275fac=function(G){return new(G||j)},j.\u0275mod=n.\u0275\u0275defineNgModule({type:j}),j.\u0275inj=n.\u0275\u0275defineInjector({}),j})()},89653:(R,c,e)=>{"use strict";e.d(c,{hg:()=>Je,Y$:()=>Tt,yh:()=>Ut,CK:()=>oi,Aw:()=>Gi,cr:()=>Wr,su:()=>ce,PH:()=>O,ZF:()=>je,P1:()=>un,rM:()=>Jt,Ky:()=>b,Ys:()=>ot});var t=e(94650),n=e(61135),o=e(69751),i=e(77579),d=e(233),r=e(85363),a=e(11365),p=e(22940),h=e(54004),_=e(71884);const v={};function O(ut,tn){if(v[ut]=(v[ut]||0)+1,"function"==typeof tn)return P(ut,(...dn)=>({...tn(...dn),type:ut}));switch(tn?tn._as:"empty"){case"empty":return P(ut,()=>({type:ut}));case"props":return P(ut,dn=>({...dn,type:ut}));default:throw new Error("Unexpected config.")}}function b(){return{_as:"props",_p:void 0}}function P(ut,tn){return Object.defineProperty(tn,"type",{value:ut,writable:!1})}const B="@ngrx/store/init";let L=(()=>{class ut extends n.X{constructor(){super({type:B})}next(Gt){if("function"==typeof Gt)throw new TypeError("\n Dispatch expected an object, instead it received a function.\n If you're using the createAction function, make sure to invoke the function\n before dispatching the action. For example, someAction should be someAction().");if(typeof Gt>"u")throw new TypeError("Actions must be objects");if(typeof Gt.type>"u")throw new TypeError("Actions must have a type property");super.next(Gt)}complete(){}ngOnDestroy(){super.complete()}}return ut.\u0275fac=function(Gt){return new(Gt||ut)},ut.\u0275prov=t.\u0275\u0275defineInjectable({token:ut,factory:ut.\u0275fac}),ut})();const V=[L],Y=new t.InjectionToken("@ngrx/store Internal Root Guard"),X=new t.InjectionToken("@ngrx/store Internal Initial State"),te=new t.InjectionToken("@ngrx/store Initial State"),K=new t.InjectionToken("@ngrx/store Reducer Factory"),ee=new t.InjectionToken("@ngrx/store Internal Reducer Factory Provider"),ae=new t.InjectionToken("@ngrx/store Initial Reducers"),Q=new t.InjectionToken("@ngrx/store Internal Initial Reducers"),j=new t.InjectionToken("@ngrx/store Store Features"),k=new t.InjectionToken("@ngrx/store Internal Store Reducers"),G=new t.InjectionToken("@ngrx/store Internal Feature Reducers"),ie=new t.InjectionToken("@ngrx/store Internal Feature Configs"),ne=new t.InjectionToken("@ngrx/store Internal Store Features"),q=ne
1w t.InjectionToken("@ngrx/store Internal Feature Reducers Token"),oe=new t.InjectionToken("@ngrx/store Feature Reducers"),ce=new t.InjectionToken("@ngrx/store User Provided Meta Reducers"),ye=new t.InjectionToken("@ngrx/store Meta Reducers"),Me=new t.InjectionToken("@ngrx/store Internal Resolved Meta Reducers"),Ee=new t.InjectionToken("@ngrx/store User Runtime Checks Config"),Ae=new t.InjectionToken("@ngrx/store Internal User Runtime Checks Config"),Je=new t.InjectionToken("@ngrx/store Internal Runtime Checks"),_t=new t.InjectionToken("@ngrx/store Check if Action types are unique");function Be(ut,tn={}){const Gt=Object.keys(ut),dn={};for(let An=0;An<Gt.length;An++){const Qn=Gt[An];"function"==typeof ut[Qn]&&(dn[Qn]=ut[Qn])}const gn=Object.keys(dn);return function(Qn,Cr){Qn=void 0===Qn?tn:Qn;let mr=!1;const Fr={};for(let Gn=0;Gn<gn.length;Gn++){const qn=gn[Gn],mi=Qn[qn],jr=(0,dn[qn])(mi,Cr);Fr[qn]=jr,mr=mr||jr!==mi}return mr?Fr:Qn}}function pt(...ut){return function(tn){if(0===ut.length)return tn;const Gt=ut[ut.length-1];return ut.slice(0,-1).reduceRight((gn,An)=>An(gn),Gt(tn))}}function Mt(ut,tn){return Array.isArray(tn)&&tn.length>0&&(ut=pt.apply(null,[...tn,ut])),(Gt,dn)=>{const gn=ut(Gt);return(An,Qn)=>gn(An=void 0===An?dn:An,Qn)}}new t.InjectionToken("@ngrx/store Root Store Provider"),new t.InjectionToken("@ngrx/store Feature State Provider");class nt extends o.y{}class mt extends L{}let pn=(()=>{class ut extends n.X{constructor(Gt,dn,gn,An){super(An(gn,dn)),this.dispatcher=Gt,this.initialState=dn,this.reducers=gn,this.reducerFactory=An}get currentReducers(){return this.reducers}addFeature(Gt){this.addFeatures([Gt])}addFeatures(Gt){const dn=Gt.reduce((gn,{reducers:An,reducerFactory:Qn,metaReducers:Cr,initialState:mr,key:Fr})=>{const Gn="function"==typeof An?function Yt(ut){const tn=Array.isArray(ut)&&ut.length>0?pt(...ut):Gt=>Gt;return(Gt,dn)=>(Gt=tn(Gt),(gn,An)=>Gt(gn=void 0===gn?dn:gn,An))}(Cr)(An,mr):Mt(Qn,Cr)(An,mr);return gn[Fr]=Gn,gn},{});this.addReducers(dn)}removeFeature(Gt){this.removeFeatures([Gt])}removeFeatures(Gt){this.removeReducers(Gt.map(dn=>dn.key))}addReducer(Gt,dn){this.addReducers({[Gt]:dn})}addReducers(Gt){this.reducers={...this.reducers,...Gt},this.updateReducers(Object.keys(Gt))}removeReducer(Gt){this.removeReducers([Gt])}removeReducers(Gt){Gt.forEach(dn=>{this.reducers=function Xe(ut,tn){return Object.keys(ut).filter(Gt=>Gt!==tn).reduce((Gt,dn)=>Object.assign(Gt,{[dn]:ut[dn]}),{})}(this.reducers,dn)}),this.updateReducers(Gt)}updateReducers(Gt){this.next(this.reducerFactory(this.reducers,this.initialState)),this.dispatcher.next({type:"@ngrx/store/update-reducers",features:Gt})}ngOnDestroy(){this.complete()}}return ut.\u0275fac=function(Gt){return new(Gt||ut)(t.\u0275\u0275inject(mt),t.\u0275\u0275inject(te),t.\u0275\u0275inject(ae),t.\u0275\u0275inject(K))},ut.\u0275prov=t.\u0275\u0275defineInjectable({token:ut,factory:ut.\u0275fac}),ut})();const tt=[pn,{provide:nt,useExisting:pn},{provide:mt,useExisting:L}];let Tt=(()=>{class ut extends i.x{ngOnDestroy(){this.complete()}}return ut.\u0275fac=function(){let tn;return function(dn){return(tn||(tn=t.\u0275\u0275getInheritedFactory(ut)))(dn||ut)}}(),ut.\u0275prov=t.\u0275\u0275defineInjectable({token:ut,factory:ut.\u0275fac}),ut})();const At=[Tt];class Rt extends o.y{}let Pt=(()=>{class ut extends n.X{constructor(Gt,dn,gn,An){super(An);const Fr=Gt.pipe((0,r.Q)(d.N)).pipe((0,a.M)(dn)).pipe((0,p.R)(xt,{state:An}));this.stateSubscription=Fr.subscribe(({state:Gn,action:qn})=>{this.next(Gn),gn.next(qn)})}ngOnDestroy(){this.stateSubscription.unsubscribe(),this.complete()}}return ut.INIT=B,ut.\u0275fac=function(Gt){return new(Gt||ut)(t.\u0275\u0275inject(L),t.\u0275\u0275inject(nt),t.\u0275\u0275inject(Tt),t.\u0275\u0275inject(te))},ut.\u0275prov=t.\u0275\u0275defineInjectable({token:ut,factory:ut.\u0275fac}),ut})();function xt(ut={state:void 0},[tn,Gt]){const{state:dn}=ut;return{state:Gt(dn,tn),action:tn}}const lt=[Pt,{provide:Rt,useExisting:Pt}];let Ut=(()=>{class ut extends o.y{constructor(Gt,dn,gn){super(),this.actionsObserver=dn,this.reducerManager=gn,this.source=Gt}select(Gt,...dn){return ot.call(null,Gt,...dn)(this)}lift(Gt){const dn=new ut(this,this.actionsObserver,this.reducerManager);return dn.operator=Gt,dn}
1dispatch(Gt){this.actionsObserver.next(Gt)}next(Gt){this.actionsObserver.next(Gt)}error(Gt){this.actionsObserver.error(Gt)}complete(){this.actionsObserver.complete()}addReducer(Gt,dn){this.reducerManager.addReducer(Gt,dn)}removeReducer(Gt){this.reducerManager.removeReducer(Gt)}}return ut.\u0275fac=function(Gt){return new(Gt||ut)(t.\u0275\u0275inject(Rt),t.\u0275\u0275inject(L),t.\u0275\u0275inject(pn))},ut.\u0275prov=t.\u0275\u0275defineInjectable({token:ut,factory:ut.\u0275fac}),ut})();const ke=[Ut];function ot(ut,tn,...Gt){return function(gn){let An;if("string"==typeof ut){const Qn=[tn,...Gt].filter(Boolean);An=gn.pipe(function m(...ut){const tn=ut.length;if(0===tn)throw new Error("list of properties cannot be empty.");return(0,h.U)(Gt=>{let dn=Gt;for(let gn=0;gn<tn;gn++){const An=dn?.[ut[gn]];if(!(typeof An<"u"))return;dn=An}return dn})}(ut,...Qn))}else{if("function"!=typeof ut)throw new TypeError(`Unexpected type '${typeof ut}' in select operator, expected 'string' or 'function'`);An=gn.pipe((0,h.U)(Qn=>ut(Qn,tn)))}return An.pipe((0,_.x)())}}const gt="https://ngrx.io/guide/store/configuration/runtime-checks";function zt(ut){return void 0===ut}function hn(ut){return null===ut}function Vt(ut){return Array.isArray(ut)}function St(ut){return"object"==typeof ut&&null!==ut}function st(ut){return"function"==typeof ut}let qe=!1;function Jt(){return qe}function $t(ut,tn){return ut===tn}function qt(ut,tn=$t,Gt=$t){let An,dn=null,gn=null;return{memoized:function Fr(){if(void 0!==An)return An.result;if(!dn)return gn=ut.apply(null,arguments),dn=arguments,gn;if(!function rn(ut,tn,Gt){for(let dn=0;dn<ut.length;dn++)if(!Gt(ut[dn],tn[dn]))return!0;return!1}(arguments,dn,tn))return gn;const Gn=ut.apply(null,arguments);return dn=arguments,Gt(gn,Gn)?gn:(gn=Gn,Gn)},reset:function Qn(){dn=null,gn=null},setResult:function Cr(Gn){An={result:Gn}},clearResult:function mr(){An=void 0}}}function un(...ut){return function ht(ut,tn={stateFn:dt}){return function(...Gt){let dn=Gt;if(Array.isArray(dn[0])){const[Gn,...qn]=dn;dn=[...Gn,...qn]}else 1===dn.length&&function vt(ut){return!!ut&&"object"==typeof ut&&Object.values(ut).every(tn=>"function"==typeof tn)}(dn[0])&&(dn=function Zt(ut){const tn=Object.values(ut),Gt=Object.keys(ut);return[...tn,(...gn)=>Gt.reduce((An,Qn,Cr)=>({...An,[Qn]:gn[Cr]}),{})]}(dn[0]));const gn=dn.slice(0,dn.length-1),An=dn[dn.length-1],Qn=gn.filter(Gn=>Gn.release&&"function"==typeof Gn.release),Cr=ut(function(...Gn){return An.apply(null,Gn)}),mr=qt(function(Gn,qn){return tn.stateFn.apply(null,[Gn,gn,qn,Cr])});return Object.assign(mr.memoized,{release:function Fr(){mr.reset(),Cr.reset(),Qn.forEach(Gn=>Gn.release())},projector:Cr.memoized,setResult:mr.setResult,clearResult:mr.clearResult})}}(qt)(...ut)}function dt(ut,tn,Gt,dn){if(void 0===Gt){const An=tn.map(Qn=>Qn(ut));return dn.memoized.apply(null,An)}const gn=tn.map(An=>An(ut,Gt));return dn.memoized.apply(null,[...gn,Gt])}function je(ut){return un(tn=>{const Gt=tn[ut];return!Jt()&&(0,t.isDevMode)()&&!(ut in tn)&&console.warn(`@ngrx/store: The feature name "${ut}" does not exist in the state, therefore createFeatureSelector cannot access it. Be sure it is imported in a loaded module using StoreModule.forRoot('${ut}', ...) or StoreModule.forFeature('${ut}', ...). If the default state is intended to be undefined, as is the case with router state, this development-only warning message can be ignored.`),Gt},tn=>tn)}function bt(ut){return ut instanceof t.InjectionToken?(0,t.inject)(ut):ut}function En(ut,tn){return tn.map((Gt,dn)=>{if(ut[dn]instanceof t.InjectionToken){const gn=(0,t.inject)(ut[dn]);return{key:Gt.key,reducerFactory:gn.reducerFactory?gn.reducerFactory:Be,metaReducers:gn.metaReducers?gn.metaReducers:[],initialState:gn.initialState}}return Gt})}function wn(ut){return ut.map(tn=>tn instanceof t.InjectionToken?(0,t.inject)(tn):tn)}function nr(ut){return"function"==typeof ut?ut():ut}function Cn(ut,tn){return ut.concat(tn)}function bn(){if((0,t.inject)(Ut,{optional:!0,skipSelf:!0}))throw new TypeError("The root Store has been provided more than once. Feature modules should provide feature states instead.");return"guarded"}function Dn(ut){Object.freeze(ut);const tn=st(ut);return Object.getOwnPropertyNames(ut).forEach(Gt=>{if(!Gt.startsWith("\u0275")&&function Le(ut,tn){return Object.prototype.hasOwnProperty.call(ut,tn)}(ut,Gt)&&(!tn||"caller"!==Gt&&"callee"!==Gt&&"arguments"!==Gt)){const dn=ut[Gt];(St(dn)||st(dn))&&!Object.isFrozen(dn)&&Dn(dn)}}),ut}function Nn(ut,tn=[]){return(zt(ut)||hn(ut))&&0===tn.length?{path:["root"],value:ut}:Object.keys(ut).reduce((dn,gn)=>{if(dn)return dn;const An=ut[gn];return function xe(ut){return st(ut)&&ut.hasOwnProperty("\u0275cmp")}
1(An)?dn:!(zt(An)||hn(An)||function Ft(ut){return"number"==typeof ut}(An)||function Dt(ut){return"boolean"==typeof ut}(An)||function $n(ut){return"string"==typeof ut}(An)||Vt(An))&&(function Xt(ut){if(!function wt(ut){return St(ut)&&!Vt(ut)}(ut))return!1;const tn=Object.getPrototypeOf(ut);return tn===Object.prototype||null===tn}(An)?Nn(An,[...tn,gn]):{path:[...tn,gn],value:An})},!1)}function Rn(ut,tn){if(!1===ut)return;const Gt=ut.path.join("."),dn=new Error(`Detected unserializable ${tn} at "${Gt}". ${gt}#strict${tn}serializability`);throw dn.value=ut.value,dn.unserializablePath=Gt,dn}function zn(ut){return(0,t.isDevMode)()?{strictStateSerializability:!1,strictActionSerializability:!1,strictStateImmutability:!0,strictActionImmutability:!0,strictActionWithinNgZone:!1,strictActionTypeUniqueness:!1,...ut}:{strictStateSerializability:!1,strictActionSerializability:!1,strictStateImmutability:!1,strictActionImmutability:!1,strictActionWithinNgZone:!1,strictActionTypeUniqueness:!1}}function ur({strictActionSerializability:ut,strictStateSerializability:tn}){return Gt=>ut||tn?function In(ut,tn){return function(Gt,dn){tn.action(dn)&&Rn(Nn(dn),"action");const gn=ut(Gt,dn);return tn.state()&&Rn(Nn(gn),"state"),gn}}(Gt,{action:dn=>ut&&!rr(dn),state:()=>tn}):Gt}function Rr({strictActionImmutability:ut,strictStateImmutability:tn}){return Gt=>ut||tn?function cn(ut,tn){return function(Gt,dn){const gn=tn.action(dn)?Dn(dn):dn,An=ut(Gt,gn);return tn.state()?Dn(An):An}}(Gt,{action:dn=>ut&&!rr(dn),state:()=>tn}):Gt}function rr(ut){return ut.type.startsWith("@ngrx")}function Mr({strictActionWithinNgZone:ut}){return tn=>ut?function Jn(ut,tn){return function(Gt,dn){if(tn.action(dn)&&!t.NgZone.isInAngularZone())throw new Error(`Action '${dn.type}' running outside NgZone. ${gt}#strictactionwithinngzone`);return ut(Gt,dn)}}(tn,{action:Gt=>ut&&!rr(Gt)}):tn}function Mn(ut){return[{provide:Ae,useValue:ut},{provide:Ee,useFactory:cr,deps:[Ae]},{provide:Je,deps:[Ee],useFactory:zn},{provide:ye,multi:!0,deps:[Je],useFactory:Rr},{provide:ye,multi:!0,deps:[Je],useFactory:ur},{provide:ye,multi:!0,deps:[Je],useFactory:Mr}]}function Xn(){return[{provide:_t,multi:!0,deps:[Je],useFactory:Qr}]}function cr(ut){return ut}function Qr(ut){if(!ut.strictActionTypeUniqueness)return;const tn=Object.entries(v).filter(([,Gt])=>Gt>1).map(([Gt])=>Gt);if(tn.length)throw new Error(`Action types are registered more than once, ${tn.map(Gt=>`"${Gt}"`).join(", ")}. ${gt}#strictactiontypeuniqueness`)}function wr(ut={},tn={}){return[{provide:Y,useFactory:bn},{provide:X,useValue:tn.initialState},{provide:te,useFactory:nr,deps:[X]},{provide:Q,useValue:ut},{provide:k,useExisting:ut instanceof t.InjectionToken?ut:Q},{provide:ae,deps:[Q,[new t.Inject(k)]],useFactory:bt},{provide:ce,useValue:tn.metaReducers?tn.metaReducers:[]},{provide:Me,deps:[ye,ce],useFactory:Cn},{provide:ee,useValue:tn.reducerFactory?tn.reducerFactory:Be},{provide:K,deps:[ee,Me],useFactory:Mt},V,tt,At,lt,ke,Mn(tn.runtimeChecks),Xn()]}function Ai(ut,tn,Gt={}){return[{provide:ie,multi:!0,useValue:ut instanceof Object?{}:Gt},{provide:j,multi:!0,useValue:{key:ut instanceof Object?ut.name:ut,reducerFactory:Gt instanceof t.InjectionToken||!Gt.reducerFactory?Be:Gt.reducerFactory,metaReducers:Gt instanceof t.InjectionToken||!Gt.metaReducers?[]:Gt.metaReducers,initialState:Gt instanceof t.InjectionToken||!Gt.initialState?void 0:Gt.initialState}},{provide:ne,deps:[ie,j],useFactory:En},{provide:G,multi:!0,useValue:ut instanceof Object?ut.reducer:tn},{provide:q,multi:!0,useExisting:tn instanceof t.InjectionToken?tn:G},{provide:oe,multi:!0,deps:[G,[new t.Inject(q)]],useFactory:wn},Xn()]}let Wr=(()=>{class ut{constructor(Gt,dn,gn,An,Qn,Cr){}}return ut.\u0275fac=function(Gt){return new(Gt||ut)(t.\u0275\u0275inject(L),t.\u0275\u0275inject(nt),t.\u0275\u0275inject(Tt),t.\u0275\u0275inject(Ut),t.\u0275\u0275inject(Y,8),t.\u0275\u0275inject(_t,8))},ut.\u0275mod=t.\u0275\u0275defineNgModule({type:ut}),ut.\u0275inj=t.\u0275\u0275defineInjector({}),ut})(),oi=(()=>{class ut{constructor(Gt,dn,gn,An,Qn){this.features=Gt,this.featureReducers=dn,this.reducerManager=gn;const Cr=Gt.map((mr,Fr)=>{const qn=dn.shift()[Fr];return{...mr,reducers:qn,initialState:nr(mr.initialState)}});gn.addFeatures(Cr)}ngOnDestroy(){this.reducerManager.removeFeatures(this.features)}}return ut.\u0275fac=function(Gt){return new(Gt||ut)(t.\u0275\u0275inject(ne),t.\u0275\u0275inject(oe),t.\u0275\u0275inject(pn),t.\u0275\u0275inject(Wr),t.\u0275\u0275inject(_t,8))},ut.\u0275mod=t.\u0275\u0275defineNgModule({type:ut}),ut.\u0275inj=t.\u0275\u0275defineInjector({}),ut})(),Gi=(()=>{class ut{static forRoot(Gt,dn){return{ngModule:Wr,providers:[...wr(Gt,dn)]}}
1static forFeature(Gt,dn,gn={}){return{ngModule:oi,providers:[...Ai(Gt,dn,gn)]}}}return ut.\u0275fac=function(Gt){return new(Gt||ut)},ut.\u0275mod=t.\u0275\u0275defineNgModule({type:ut}),ut.\u0275inj=t.\u0275\u0275defineInjector({}),ut})()},38419:(R,c,e)=>{"use strict";e.d(c,{Y:()=>o,Z:()=>n});var t=e(94650);const n=new t.InjectionToken("REQUEST"),o=new t.InjectionToken("RESPONSE")},89383:(R,c,e)=>{"use strict";e.d(c,{X$:()=>ae,Zw:()=>v,aw:()=>Q,gC:()=>O,sK:()=>K});var t=e(94650),n=e(39646),o=e(45191),i=e(4128),d=e(71350),r=e(49770),a=e(95698),p=e(34782),h=e(54004),m=e(24351),_=e(63900);class v{}let E=(()=>{class j extends v{getTranslation(G){return(0,n.of)({})}}return j.\u0275fac=function(){let k;return function(ie){return(k||(k=t.\u0275\u0275getInheritedFactory(j)))(ie||j)}}(),j.\u0275prov=t.\u0275\u0275defineInjectable({token:j,factory:j.\u0275fac}),j})();class O{}let b=(()=>{class j{handle(G){return G.key}}return j.\u0275fac=function(G){return new(G||j)},j.\u0275prov=t.\u0275\u0275defineInjectable({token:j,factory:j.\u0275fac}),j})();function M(j,k){if(j===k)return!0;if(null===j||null===k)return!1;if(j!=j&&k!=k)return!0;let ne,q,oe,G=typeof j;if(G==typeof k&&"object"==G){if(!Array.isArray(j)){if(Array.isArray(k))return!1;for(q in oe=Object.create(null),j){if(!M(j[q],k[q]))return!1;oe[q]=!0}for(q in k)if(!(q in oe)&&typeof k[q]<"u")return!1;return!0}if(!Array.isArray(k))return!1;if((ne=j.length)==k.length){for(q=0;q<ne;q++)if(!M(j[q],k[q]))return!1;return!0}}return!1}function P(j){return typeof j<"u"&&null!==j}function D(j){return j&&"object"==typeof j&&!Array.isArray(j)}function l(j,k){let G=Object.assign({},j);return D(j)&&D(k)&&Object.keys(k).forEach(ie=>{D(k[ie])?ie in j?G[ie]=l(j[ie],k[ie]):Object.assign(G,{[ie]:k[ie]}):Object.assign(G,{[ie]:k[ie]})}),G}class C{}let I=(()=>{class j extends C{constructor(){super(...arguments),this.templateMatcher=/{{\s?([^{}\s]*)\s?}}/g}interpolate(G,ie){let ne;return ne="string"==typeof G?this.interpolateString(G,ie):"function"==typeof G?this.interpolateFunction(G,ie):G,ne}getValue(G,ie){let ne="string"==typeof ie?ie.split("."):[ie];ie="";do{ie+=ne.shift(),!P(G)||!P(G[ie])||"object"!=typeof G[ie]&&ne.length?ne.length?ie+=".":G=void 0:(G=G[ie],ie="")}while(ne.length);return G}interpolateFunction(G,ie){return G(ie)}interpolateString(G,ie){return ie?G.replace(this.templateMatcher,(ne,q)=>{let oe=this.getValue(ie,q);return P(oe)?oe:ne}):G}}return j.\u0275fac=function(){let k;return function(ie){return(k||(k=t.\u0275\u0275getInheritedFactory(j)))(ie||j)}}(),j.\u0275prov=t.\u0275\u0275defineInjectable({token:j,factory:j.\u0275fac}),j})();class g{}let B=(()=>{class j extends g{compile(G,ie){return G}compileTranslations(G,ie){return G}}return j.\u0275fac=function(){let k;return function(ie){return(k||(k=t.\u0275\u0275getInheritedFactory(j)))(ie||j)}}(),j.\u0275prov=t.\u0275\u0275defineInjectable({token:j,factory:j.\u0275fac}),j})();class L{constructor(){this.currentLang=this.defaultLang,this.translations={},this.langs=[],this.onTranslationChange=new t.EventEmitter,this.onLangChange=new t.EventEmitter,this.onDefaultLangChange=new t.EventEmitter}}const V=new t.InjectionToken("USE_STORE"),Y=new t.InjectionToken("USE_DEFAULT_LANG"),X=new t.InjectionToken("DEFAULT_LANGUAGE"),te=new t.InjectionToken("USE_EXTEND");let K=(()=>{class j{constructor(G,ie,ne,q,oe,ce=!0,ye=!1,Me=!1,Ee){this.store=G,this.currentLoader=ie,this.compiler=ne,this.parser=q,this.missingTranslationHandler=oe,this.useDefaultLang=ce,this.isolate=ye,this.extend=Me,this.pending=!1,this._onTranslationChange=new t.EventEmitter,this._onLangChange=new t.EventEmitter,this._onDefaultLangChange=new t.EventEmitter,this._langs=[],this._translations={},this._translationRequests={},Ee&&this.setDefaultLang(Ee)}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(G){this.isolate?this._defaultLang=G:this.store.defaultLang=G}
1get currentLang(){return this.isolate?this._currentLang:this.store.currentLang}set currentLang(G){this.isolate?this._currentLang=G:this.store.currentLang=G}get langs(){return this.isolate?this._langs:this.store.langs}set langs(G){this.isolate?this._langs=G:this.store.langs=G}get translations(){return this.isolate?this._translations:this.store.translations}set translations(G){this.isolate?this._translations=G:this.store.translations=G}setDefaultLang(G){if(G===this.defaultLang)return;let ie=this.retrieveTranslations(G);typeof ie<"u"?(null==this.defaultLang&&(this.defaultLang=G),ie.pipe((0,a.q)(1)).subscribe(ne=>{this.changeDefaultLang(G)})):this.changeDefaultLang(G)}getDefaultLang(){return this.defaultLang}use(G){if(G===this.currentLang)return(0,n.of)(this.translations[G]);let ie=this.retrieveTranslations(G);return typeof ie<"u"?(this.currentLang||(this.currentLang=G),ie.pipe((0,a.q)(1)).subscribe(ne=>{this.changeLang(G)}),ie):(this.changeLang(G),(0,n.of)(this.translations[G]))}retrieveTranslations(G){let ie;return(typeof this.translations[G]>"u"||this.extend)&&(this._translationRequests[G]=this._translationRequests[G]||this.getTranslation(G),ie=this._translationRequests[G]),ie}getTranslation(G){this.pending=!0;const ie=this.currentLoader.getTranslation(G).pipe((0,p.d)(1),(0,a.q)(1));return this.loadingTranslations=ie.pipe((0,h.U)(ne=>this.compiler.compileTranslations(ne,G)),(0,p.d)(1),(0,a.q)(1)),this.loadingTranslations.subscribe({next:ne=>{this.translations[G]=this.extend&&this.translations[G]?{...ne,...this.translations[G]}:ne,this.updateLangs(),this.pending=!1},error:ne=>{this.pending=!1}}),ie}setTranslation(G,ie,ne=!1){ie=this.compiler.compileTranslations(ie,G),this.translations[G]=(ne||this.extend)&&this.translations[G]?l(this.translations[G],ie):ie,this.updateLangs(),this.onTranslationChange.emit({lang:G,translations:this.translations[G]})}getLangs(){return this.langs}addLangs(G){G.forEach(ie=>{-1===this.langs.indexOf(ie)&&this.langs.push(ie)})}updateLangs(){this.addLangs(Object.keys(this.translations))}getParsedResult(G,ie,ne){let q;if(ie instanceof Array){let oe={},ce=!1;for(let ye of ie)oe[ye]=this.getParsedResult(G,ye,ne),(0,o.b)(oe[ye])&&(ce=!0);if(ce){const ye=ie.map(Me=>(0,o.b)(oe[Me])?oe[Me]:(0,n.of)(oe[Me]));return(0,i.D)(ye).pipe((0,h.U)(Me=>{let Ee={};return Me.forEach((Ae,Je)=>{Ee[ie[Je]]=Ae}),Ee}))}return oe}if(G&&(q=this.parser.interpolate(this.parser.getValue(G,ie),ne)),typeof q>"u"&&null!=this.defaultLang&&this.defaultLang!==this.currentLang&&this.useDefaultLang&&(q=this.parser.interpolate(this.parser.getValue(this.translations[this.defaultLang],ie),ne)),typeof q>"u"){let oe={key:ie,translateService:this};typeof ne<"u"&&(oe.interpolateParams=ne),q=this.missingTranslationHandler.handle(oe)}return typeof q<"u"?q:ie}get(G,ie){if(!P(G)||!G.length)throw new Error('Parameter "key" required');if(this.pending)return this.loadingTranslations.pipe((0,m.b)(ne=>(ne=this.getParsedResult(ne,G,ie),(0,o.b)(ne)?ne:(0,n.of)(ne))));{let ne=this.getParsedResult(this.translations[this.currentLang],G,ie);return(0,o.b)(ne)?ne:(0,n.of)(ne)}}getStreamOnTranslationChange(G,ie){if(!P(G)||!G.length)throw new Error('Parameter "key" required');return(0,d.z)((0,r.P)(()=>this.get(G,ie)),this.onTranslationChange.pipe((0,_.w)(ne=>{const q=this.getParsedResult(ne.translations,G,ie);return"function"==typeof q.subscribe?q:(0,n.of)(q)})))}stream(G,ie){if(!P(G)||!G.length)throw new Error('Parameter "key" required');return(0,d.z)((0,r.P)(()=>this.get(G,ie)),this.onLangChange.pipe((0,_.w)(ne=>{const q=this.getParsedResult(ne.translations,G,ie);return(0,o.b)(q)?q:(0,n.of)(q)})))}instant(G,ie){if(!P(G)||!G.length)throw new Error('Parameter "key" required');let ne=this.getParsedResult(this.translations[this.currentLang],G,ie);if((0,o.b)(ne)){if(G instanceof Array){let q={};return G.forEach((oe,ce)=>{q[G[ce]]=G[ce]}),q}return G}return ne}set(G,ie,ne=this.currentLang){this.translations[ne][G]=this.compiler.compile(ie,ne),this.updateLangs(),this.onTranslationChange.emit({lang:ne,translations:this.translations[ne]})}changeLang(G){this.currentLang=G,this.onLangChange.emit({lang:G,translations:this.translations[G]}),null==this.defaultLang&&this.changeDefaultLang(G)}changeDefaultLang(G){this.defaultLang=G,this.onDefaultLangChange.emit({lang:G,translations:this.translations[G]})}reloadLang(G){return this.resetLang(G),this.getTranslation(G)}resetLang(G){this._translationRequests[G]=void 0,this.translations[G]=void 0}getBrowserLang(){if(typeof window>"u"||typeof window.navigator>"u")return;let G=window.navigator.languages?window.navigator.languages[0]:null;return G=G||window.navigator.language||window.navigator.browserLanguage||window.navigator.userLanguage,typeof G>"u"?void 0:(-1!==G.indexOf("-")&&(G=G.split("-")[0]),-1!==G.indexOf("_")&&(G=G.split("_")[0]),G)}getBrowserCultureLang(){if(typeof window>"u"||typeof window.navigator>"u")return;let G=window.navigator.languages?window.navigator.languages[0]:null;return G=G||window.navigator.language||window.navigator.browserLanguage||window.navigator.userLanguage,G}}return j.\u0275fac=function(G){return new(G||j)(t.\u0275\u0275inject(L),t.\u0275\u0275inject(v),t.\u0275\u0275inject(g),t.\u0275\u0275inject(C),t.\u0275\u0275inject(O),t.\u0275\u0275inject(Y),t.\u0275\u0275inject(V),t.\u0275\u0275inject(te),t.\u0275\u0275inject(X))},j.\u0275prov=t.\u0275\u0275defineInjectable({token:j,factory:j.\u0275fac}),j})(),ae=(()=>{class j{constructor(G,ie){this.translate=G,this._ref=ie,this.value="",this.lastKey=null,this.lastParams=[]}updateValue(G,ie,ne){let q=oe=>{this.value=void 0!==oe?oe:G,this.lastKey=G,this._ref.markForCheck()};if(ne){let oe=this.translate.getParsedResult(ne,G,ie);(0,o.b)(oe.subscribe)?oe.subscribe(q):q(oe)}this.translate.get(G,ie).subscribe(q)}transform(G,...ie){if(!G||!G.length)return G;if(M(G,this.lastKey)&&M(ie,this.lastParams))return this.value;let ne;if(P(ie[0])&&ie.length)if("string"==typeof ie[0]&&ie[0].length){let q=ie[0].replace(/(\')?([a-zA-Z0-9_]+)(\')?(\s)?:/g,'"$2":').replace(/:(\s)?(\')(.*?)(\')/g,':"$3"');try{ne=JSON.parse(q)}catch{throw new SyntaxError(`Wrong parameter in TranslatePipe. Expected a valid Object, received: ${ie[0]}`)}}else"object"==typeof ie[0]&&!Array.isArray(ie[0])&&(ne=ie[0]);
1return this.lastKey=G,this.lastParams=ie,this.updateValue(G,ne),this._dispose(),this.onTranslationChange||(this.onTranslationChange=this.translate.onTranslationChange.subscribe(q=>{this.lastKey&&q.lang===this.translate.currentLang&&(this.lastKey=null,this.updateValue(G,ne,q.translations))})),this.onLangChange||(this.onLangChange=this.translate.onLangChange.subscribe(q=>{this.lastKey&&(this.lastKey=null,this.updateValue(G,ne,q.translations))})),this.onDefaultLangChange||(this.onDefaultLangChange=this.translate.onDefaultLangChange.subscribe(()=>{this.lastKey&&(this.lastKey=null,this.updateValue(G,ne))})),this.value}_dispose(){typeof this.onTranslationChange<"u"&&(this.onTranslationChange.unsubscribe(),this.onTranslationChange=void 0),typeof this.onLangChange<"u"&&(this.onLangChange.unsubscribe(),this.onLangChange=void 0),typeof this.onDefaultLangChange<"u"&&(this.onDefaultLangChange.unsubscribe(),this.onDefaultLangChange=void 0)}ngOnDestroy(){this._dispose()}}return j.\u0275fac=function(G){return new(G||j)(t.\u0275\u0275directiveInject(K,16),t.\u0275\u0275directiveInject(t.ChangeDetectorRef,16))},j.\u0275pipe=t.\u0275\u0275definePipe({name:"translate",type:j,pure:!1}),j.\u0275prov=t.\u0275\u0275defineInjectable({token:j,factory:j.\u0275fac}),j})(),Q=(()=>{class j{static forRoot(G={}){return{ngModule:j,providers:[G.loader||{provide:v,useClass:E},G.compiler||{provide:g,useClass:B},G.parser||{provide:C,useClass:I},G.missingTranslationHandler||{provide:O,useClass:b},L,{provide:V,useValue:G.isolate},{provide:Y,useValue:G.useDefaultLang},{provide:te,useValue:G.extend},{provide:X,useValue:G.defaultLanguage},K]}}static forChild(G={}){return{ngModule:j,providers:[G.loader||{provide:v,useClass:E},G.compiler||{provide:g,useClass:B},G.parser||{provide:C,useClass:I},G.missingTranslationHandler||{provide:O,useClass:b},{provide:V,useValue:G.isolate},{provide:Y,useValue:G.useDefaultLang},{provide:te,useValue:G.extend},{provide:X,useValue:G.defaultLanguage},K]}}}return j.\u0275fac=function(G){return new(G||j)},j.\u0275mod=t.\u0275\u0275defineNgModule({type:j}),j.\u0275inj=t.\u0275\u0275defineInjector({}),j})()},37641:(R,c,e)=>{"use strict";e.d(c,{ij:()=>b,w0:()=>P});var t=e(94650),n=e(36895),o=e(4707),i=e(62843);const d={target:null,action:"click",duration:650,easing:"easeInOutQuad",offset:0,offsetMap:new Map},r={easeInQuad:D=>D*D,easeOutQuad:D=>D*(2-D),easeInOutQuad:D=>D<.5?2*D*D:(4-2*D)*D-1,easeInCubic:D=>D*D*D,easeOutCubic:D=>--D*D*D+1,easeInOutCubic:D=>D<.5?4*D*D*D:(D-1)*(2*D-2)*(2*D-2)+1,easeInQuart:D=>D*D*D*D,easeOutQuart:D=>1- --D*D*D*D,easeInOutQuart:D=>D<.5?8*D*D*D*D:1-8*--D*D*D*D,easeInQuint:D=>D*D*D*D*D,easeOutQuint:D=>1+--D*D*D*D*D,easeInOutQuint:D=>D<.5?16*D*D*D*D*D:1+16*--D*D*D*D*D,easeOutElastic:D=>Math.pow(2,-10*D)*Math.sin((D-1/4)*(2*Math.PI)/1)+1};function m(D){return D===window}class O{constructor(l,C,I,g,B,L){this.container=l,this.listenerTarget=C,this.isWindow=I,this.to=g,this.options=B,this.isBrowser=L,this.loop=()=>{this.timeLapsed+=this.tick,this.percentage=this.timeLapsed/this.options.duration,this.percentage=this.percentage>1?1:this.percentage,this.position=this.startPosition+(this.startPosition-this.to<=0?1:-1)*this.distance*r[this.options.easing](this.percentage),null!==this.lastPosition&&this.position===this.lastPosition?this.stop():(this.source$.next(this.position),this.isWindow?this.listenerTarget.scrollTo(0,Math.floor(this.position)):this.container.scrollTop=Math.floor(this.position),this.lastPosition=this.position)},this.tick=16,this.interval=null,this.lastPosition=null,this.timeLapsed=0,this.windowScrollTop=window.pageYOffset||document.documentElement.scrollTop||document.body.scrollTop||0,this.startPosition=this.container?this.isWindow?this.windowScrollTop:this.container.scrollTop:this.windowScrollTop,this.container&&!this.isWindow&&(this.to=this.to-this.container.getBoundingClientRect().top+this.startPosition);const V=this.startPosition-this.to;this.distance=this.container?Math.abs(this.startPosition-this.to):this.to,this.mappedOffset=this.options.offset,this.isBrowser&&this.options.offsetMap.forEach((Y,X)=>this.mappedOffset=window.innerWidth>X?Y:this.mappedOffset),this.distance+=this.mappedOffset*(V<=0?1:-1),this.source$=new o.t}start(){return clearInterval(this.interval),this.interval=setInterval(this.loop,this.tick),this.source$.asObservable()}stop(){clearInterval(this.interval),this.interval=null,this.source$.complete()}}let b=(()=>{class D{constructor(C,I){this.document=C,this.platformId=I,this.interruptiveEvents=["mousewheel","DOMMouseScroll","touchstart"]}scrollTo(C){return(0,n.NF)(this.platformId)?this.start(C):(new o.t).asObservable()}start(C){const I={...d,...C};this.animation&&this.animation.stop();const g=this.getNode(I.target);if(I.target&&!g)return(0,i._)(()=>new Error("Unable to find Target Element"));const B=this.getContainer(I,g);if(I.container&&!B)return(0,i._)(()=>new Error("Unable to find Container Element"));const L=this.getListenerTarget(B)||window;let V=B?B.getBoundingClientRect().top:0;g&&(V=m(L)?window.scrollY+g.getBoundingClientRect().top:g.getBoundingClientRect().top),this.animation=new O(B,L,m(L),V,I,(0,n.NF)(this.platformId));const Y=()=>this.animation.stop();this.addInterruptiveEventListeners(L,Y);const X=this.animation.start();return this.subscribeToAnimation(X,L,Y),X}subscribeToAnimation(C,I,g){const B=C.subscribe({complete:()=>{this.removeInterruptiveEventListeners(this.interruptiveEvents,I,g),B.unsubscribe()}})}getContainer(C,I){let g=null;return C.container?g=this.getNode(C.container,!0):I&&(g=this.getFirstScrollableParent(I)),g}addInterruptiveEventListeners(C,I){C||(C=window),this.interruptiveEvents.forEac
1h(g=>C.addEventListener(g,I,!!this.supportPassive()&&{passive:!0}))}supportPassive(){let C=!1;try{const I=Object.defineProperty({},"passive",{get:()=>{C=!0}});window.addEventListener("testPassive",null,I),window.removeEventListener("testPassive",null,I)}catch{}return C}removeInterruptiveEventListeners(C,I,g){I||(I=window),C.forEach(B=>I.removeEventListener(B,g))}getFirstScrollableParent(C){let I=window.getComputedStyle(C);const g=/(auto|scroll|overlay)/;if("fixed"===I.position)return null;let B=C;for(;B.parentElement;)if(B=B.parentElement,I=window.getComputedStyle(B),"absolute"!==I.position&&"hidden"!==I.overflow&&"hidden"!==I.overflowY&&(g.test(I.overflow+I.overflowY)||"BODY"===B.tagName))return B;return null}getNode(C,I=!1){let g;return function h(D){return"string"==typeof D||D instanceof String}(C)?g=!I||"body"!==C&&"BODY"!==C?this.document.getElementById(function p(D){return"#"===D.substring(0,1)?D.substring(1):D}(C)):this.document.body:function E(D){return!isNaN(parseFloat(D))&&isFinite(D)}(C)?g=this.document.getElementById(String(C)):function _(D){return D instanceof t.ElementRef}(C)?g=C.nativeElement:function v(D){return D instanceof HTMLElement}(C)&&(g=C),g}getListenerTarget(C){return C?this.isDocumentBody(C)?window:C:null}isDocumentBody(C){return"BODY"===C.tagName.toUpperCase()}}return D.\u0275fac=function(C){return new(C||D)(t.\u0275\u0275inject(n.K0),t.\u0275\u0275inject(t.PLATFORM_ID))},D.\u0275prov=t.\u0275\u0275defineInjectable({token:D,factory:D.\u0275fac}),D})(),P=(()=>{class D{static forRoot(){return{ngModule:D,providers:[b]}}}return D.\u0275fac=function(C){return new(C||D)},D.\u0275mod=t.\u0275\u0275defineNgModule({type:D}),D.\u0275inj=t.\u0275\u0275defineInjector({}),D})()},33723:(R,c,e)=>{"use strict";e.d(c,{HU:()=>Y,OI:()=>E,Ti:()=>I,_Q:()=>L,b:()=>p});var t=e(94650),n=e(61135),o=e(4707),i=e(39300);class d{constructor(){this.pageTracking={autoTrackVirtualPages:!0,basePath:"",excludedRoutes:[],clearIds:!1,clearHash:!1,clearQueryParams:!1,idsRegExp:/^\d+$|^[0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12}$/},this.developerMode=!1,this.ga={},this.appInsights={},this.gtm={},this.gst={}}}const r=new t.InjectionToken("ANGULARTICS2");class a{trackLocation(Me){return new n.X({url:"/"})}prepareExternalUrl(Me){return Me}}let p=(()=>{class ye{constructor(Ee,Ae){this.tracker=Ee,this.pageTrack=new o.t(10),this.eventTrack=new o.t(10),this.exceptionTrack=new o.t(10),this.setAlias=new o.t(10),this.setUsername=new o.t(10),this.setUserProperties=new o.t(10),this.setUserPropertiesOnce=new o.t(10),this.setSuperProperties=new o.t(10),this.setSuperPropertiesOnce=new o.t(10),this.userTimings=new o.t(10);const Je=new d;this.settings={...Je,...Ae.settings},this.settings.pageTracking={...Je.pageTracking,...Ae.settings.pageTracking},this.tracker.trackLocation(this.settings).subscribe(_t=>this.trackUrlChange(_t.url))}filterDeveloperMode(){return(0,i.h)((Ee,Ae)=>!this.settings.developerMode)}trackUrlChange(Ee){if(this.settings.pageTracking.autoTrackVirtualPages&&!this.matchesExcludedRoute(Ee)){const Ae=this.clearUrl(Ee);let Je;Je=this.settings.pageTracking.basePath.length?this.settings.pageTracking.basePath+Ae:this.tracker.prepareExternalUrl(Ae),this.pageTrack.next({path:Je})}}matchesExcludedRoute(Ee){for(const Ae of this.settings.pageTracking.excludedRoutes)if(Ae instanceof RegExp&&Ae.test(Ee)||-1!==Ee.indexOf(Ae))return!0;return!1}clearUrl(Ee){return this.settings.pageTracking.clearIds||this.settings.pageTracking.clearQueryParams||this.settings.pageTracking.clearHash?Ee.split("/").map(Ae=>this.settings.pageTracking.clearQueryParams?Ae.split("?")[0]:Ae).map(Ae=>this.settings.pageTracking.clearHash?Ae.split("#")[0]:Ae).filter(Ae=>!this.settings.pageTracking.clearIds||!Ae.match(this.settings.pageTracking.idsRegExp)).join("/"):Ee}}return ye.\u0275fac=function(Ee){return new(Ee||ye)(t.\u0275\u0275inject(a),t.\u0275\u0275inject(r))},ye.\u0275prov=t.\u0275\u0275defineInjectable({token:ye,factory:ye.\u0275fac,providedIn:"root"}),ye})(),_=(()=>{class ye{}return ye.\u0275fac=function(Ee){return new(Ee||ye)},ye.\u0275mod=t.\u0275\u0275defineNgModule({type:ye}),ye.\u0275inj=t.\u0275\u0275defineInjector({}),ye})(),E=(()=>{class ye{static forRoot(Ee={}){return{ngModule:ye,providers:[{provide:r,useValue:{settings:Ee}},a,p]}}}return ye.\u0275fac=function(Ee){return new(Ee||ye)},ye.\u0275mod=t.\u0275\u0275defineNgModule({type:ye}),ye.\u0275inj=t.\u0275\u0275defineInjector({imports:[[_]]}),ye})();class C{constructor(){this.additionalAccountNames=[],this.userId=null,this.transport="",this.anonymizeIp=!1}}let I=(()=>{class ye{constructor(Ee){this.angulartics2=Ee,this.dimensionsAndMetrics=[];const Ae=new C;this.angulartics2.settings.ga={...Ae,...this.angulartics2.settings.ga},this.settings=this.angulartics2.settings.ga,this.angulartics2.setUsername.subscribe(Je=>this.setUsername(Je)),this.angulartics2.setUserProperties.subscribe(Je=>this.setUserProperties(Je))}startTracking(){this.angulartics2.pageTrack.pipe(this.angulartics2.filterDeveloperMode()).subscribe(Ee=>this.pageTrack(Ee.path)),this.angulartics2.eventTrack.pipe(this.angulartics2.filterDeveloperMode()).subscribe(Ee=>this.eventTrack(Ee.action,Ee.properties)),this.angulartics2.exceptionTrack.pipe(this.angulartics2.filterDeveloperMode()).subscribe(Ee=>this.exceptionTrack(Ee)),this.angulartics2.userTimings.pipe(this.angulartics2.filterDeveloperMode()).subscribe(Ee=>this.userTimings(Ee))}pageTrack(Ee){if(typeof _gaq<"u"&&_gaq){_gaq.push(["_trackPageview",Ee]);for(const Ae of this.angulartics2.settings.ga.additionalAccountNames)_gaq.push([Ae+"._trackPageview",Ee])}if(typeof ga<"u"&&ga){if(this.angulartics2.settings.ga.userId){ga("set","&uid",this.angulartics2.settings.ga.userId);for(const Ae of this.angulartics2.settings.ga.additionalAccountNames)ga(Ae+".set","&uid",this.angulartics2.settings.ga.userId)}
1if(this.angulartics2.settings.ga.anonymizeIp){ga("set","anonymizeIp",!0);for(const Ae of this.angulartics2.settings.ga.additionalAccountNames)ga(Ae+".set","anonymizeIp",!0)}ga("send","pageview",Ee);for(const Ae of this.angulartics2.settings.ga.additionalAccountNames)ga(Ae+".send","pageview",Ee)}}eventTrack(Ee,Ae){if((!Ae||!Ae.category)&&((Ae=Ae||{}).category="Event"),Ae.value){const Je=parseInt(Ae.value,10);Ae.value=isNaN(Je)?0:Je}if(typeof ga<"u"){const Je={eventCategory:Ae.category,eventAction:Ee,eventLabel:Ae.label,eventValue:Ae.value,nonInteraction:Ae.noninteraction,page:Ae.page||location.hash.substring(1)||location.pathname,userId:this.angulartics2.settings.ga.userId,hitCallback:Ae.hitCallback,...this.angulartics2.settings.ga.transport&&{transport:this.angulartics2.settings.ga.transport}};this.setDimensionsAndMetrics(Ae),ga("send","event",Je);for(const _t of this.angulartics2.settings.ga.additionalAccountNames)ga(_t+".send","event",Je)}else typeof _gaq<"u"&&_gaq.push(["_trackEvent",Ae.category,Ee,Ae.label,Ae.value,Ae.noninteraction])}exceptionTrack(Ee){void 0===Ee.fatal&&(console.log('No "fatal" provided, sending with fatal=true'),Ee.fatal=!0),Ee.exDescription=Ee.description;const Ae={exFatal:Ee.fatal,exDescription:Ee.description};ga("send","exception",Ae);for(const Je of this.angulartics2.settings.ga.additionalAccountNames)ga(Je+".send","exception",Ae)}userTimings(Ee){if(Ee&&Ee.timingCategory&&Ee.timingVar&&Ee.timingValue){if(typeof ga<"u"){ga("send","timing",Ee);for(const Ae of this.angulartics2.settings.ga.additionalAccountNames)ga(Ae+".send","timing",Ee)}}else console.error("Properties timingCategory, timingVar, and timingValue are required to be set.")}setUsername(Ee){this.angulartics2.settings.ga.userId=Ee,!(typeof ga>"u")&&ga("set","userId",Ee)}setUserProperties(Ee){this.setDimensionsAndMetrics(Ee)}setDimensionsAndMetrics(Ee){typeof ga>"u"||(this.dimensionsAndMetrics.forEach(Ae=>{Ee.hasOwnProperty(Ae)||(ga("set",Ae,void 0),this.angulartics2.settings.ga.additionalAccountNames.forEach(Je=>{ga(`${Je}.set`,Ae,void 0)}))}),this.dimensionsAndMetrics=[],Object.keys(Ee).forEach(Ae=>{(0===Ae.lastIndexOf("dimension",0)||0===Ae.lastIndexOf("metric",0))&&(ga("set",Ae,Ee[Ae]),this.angulartics2.settings.ga.additionalAccountNames.forEach(Je=>{ga(`${Je}.set`,Ae,Ee[Ae])}),this.dimensionsAndMetrics.push(Ae))}))}}return ye.\u0275fac=function(Ee){return new(Ee||ye)(t.\u0275\u0275inject(p))},ye.\u0275prov=t.\u0275\u0275defineInjectable({token:ye,factory:ye.\u0275fac,providedIn:"root"}),ye})();class B{constructor(){this.userId=null}}let L=(()=>{class ye{constructor(Ee){this.angulartics2=Ee,typeof dataLayer<"u"&&dataLayer&&(dataLayer=window.dataLayer=window.dataLayer||[]);const Ae=new B;this.angulartics2.settings.gtm={...Ae,...this.angulartics2.settings.gtm},this.angulartics2.setUsername.subscribe(Je=>this.setUsername(Je))}startTracking(){this.angulartics2.pageTrack.pipe(this.angulartics2.filterDeveloperMode()).subscribe(Ee=>this.pageTrack(Ee.path)),this.angulartics2.eventTrack.pipe(this.angulartics2.filterDeveloperMode()).subscribe(Ee=>this.eventTrack(Ee.action,Ee.properties)),this.angulartics2.exceptionTrack.pipe(this.angulartics2.filterDeveloperMode()).subscribe(Ee=>this.exceptionTrack(Ee))}pageTrack(Ee){this.pushLayer({event:"Page View","content-name":Ee,userId:this.angulartics2.settings.gtm.userId})}pushLayer(Ee){typeof dataLayer<"u"&&dataLayer&&dataLayer.push(Ee)}eventTrack(Ee,Ae){this.pushLayer({event:(Ae=Ae||{}).event||"interaction",target:Ae.category||"Event",action:Ee,label:Ae.label,value:Ae.value,interactionType:Ae.noninteraction,userId:this.angulartics2.settings.gtm.userId,...Ae.gtmCustom})}exceptionTrack(Ee){Ee&&Ee.appId&&Ee.appName&&Ee.appVersion?(void 0===Ee.fatal&&(console.log('No "fatal" provided, sending with fatal=true'),Ee.exFatal=!0),Ee.exDescription=Ee.event?Ee.event.stack:Ee.description,this.eventTrack(`Exception thrown for ${Ee.appName} <${Ee.appId}@${Ee.appVersion}>`,{category:"Exception",label:Ee.exDescription})):console.error("Must be setted appId, appName and appVersion.")}setUsername(Ee){this.angulartics2.settings.gtm.userId=Ee}}return ye.\u0275fac=function(Ee){return new(Ee||ye)(t.\u0275\u0275inject(p))},ye.\u0275prov=t.\u0275\u0275defineInjectable({token:ye,factory:ye.\u0275fac,providedIn:"root"}),ye})();class V{constructor(){this.trackingIds=[],typeof ga<"u"&&ga&&ga(()=>
1{ga.getAll().forEach(Me=>{const Ee=Me.get("trackingId");void 0!==Ee&&-1===this.trackingIds.indexOf(Ee)&&this.trackingIds.push(Ee)})})}}let Y=(()=>{class ye{constructor(Ee){this.angulartics2=Ee,this.dimensionsAndMetrics={};const Ae=new V;this.angulartics2.settings.gst={...Ae,...this.angulartics2.settings.gst}}startTracking(){this.angulartics2.pageTrack.pipe(this.angulartics2.filterDeveloperMode()).subscribe(Ee=>this.pageTrack(Ee.path)),this.angulartics2.eventTrack.pipe(this.angulartics2.filterDeveloperMode()).subscribe(Ee=>this.eventTrack(Ee.action,Ee.properties)),this.angulartics2.exceptionTrack.pipe(this.angulartics2.filterDeveloperMode()).subscribe(Ee=>this.exceptionTrack(Ee)),this.angulartics2.userTimings.pipe(this.angulartics2.filterDeveloperMode()).subscribe(Ee=>this.userTimings(this.convertTimings(Ee))),this.angulartics2.setUsername.pipe(this.angulartics2.filterDeveloperMode()).subscribe(Ee=>this.setUsername(Ee)),this.angulartics2.setUserProperties.pipe(this.angulartics2.filterDeveloperMode()).subscribe(Ee=>this.setUserProperties(Ee))}pageTrack(Ee){if(typeof gtag<"u"&>ag){const Ae={page_path:Ee,page_location:window.location.protocol+"//"+window.location.host+Ee,...this.dimensionsAndMetrics};this.angulartics2.settings.gst.customMap&&(Ae.custom_map=this.angulartics2.settings.gst.customMap),this.angulartics2.settings.gst.userId&&(Ae.user_id=this.angulartics2.settings.gst.userId),this.angulartics2.settings.gst.anonymizeIp&&(Ae.anonymize_ip=this.angulartics2.settings.gst.anonymizeIp);for(const Je of this.angulartics2.settings.gst.trackingIds)gtag("config",Je,Ae)}}eventTrack(Ee,Ae={}){this.eventTrackInternal(Ee,{event_category:Ae.category||"interaction",event_label:Ae.label,value:Ae.value,non_interaction:Ae.noninteraction,...Ae.gstCustom})}exceptionTrack(Ee){void 0===Ee.fatal&&(console.log('No "fatal" provided, sending with fatal=true'),Ee.fatal=!0),Ee.exDescription=Ee.event?Ee.event.stack:Ee.description,this.eventTrack("exception",{gstCustom:{description:Ee.exDescription,fatal:Ee.fatal,...Ee.gstCustom}})}userTimings(Ee){Ee?this.eventTrackInternal("timing_complete",{name:Ee.name,value:Ee.value,event_category:Ee.category,event_label:Ee.label}):console.error('User timings - "properties" parameter is required to be set.')}convertTimings(Ee){return{name:Ee.timingVar,value:Ee.timingValue,category:Ee.timingCategory,label:Ee.timingLabel}}setUsername(Ee){this.angulartics2.settings.gst.userId=Ee,typeof gtag<"u"&>ag&>ag("set",{user_id:"string"!=typeof Ee&&Ee?Ee.userId:Ee})}setUserProperties(Ee){this.setDimensionsAndMetrics(Ee)}setDimensionsAndMetrics(Ee){this.dimensionsAndMetrics={...this.dimensionsAndMetrics,...Ee},Object.keys(this.dimensionsAndMetrics).forEach(Ae=>{null==this.dimensionsAndMetrics[Ae]&&delete this.dimensionsAndMetrics[Ae]}),typeof gtag<"u"&>ag&>ag("set",this.dimensionsAndMetrics)}eventTrackInternal(Ee,Ae={}){this.cleanProperties(Ae),typeof gtag<"u"&>ag&>ag("event",Ee,Ae)}cleanProperties(Ee){if(Ee.value){const Ae=parseInt(Ee.value,10);Ee.value=isNaN(Ae)?0:Ae}}}return ye.\u0275fac=function(Ee){return new(Ee||ye)(t.\u0275\u0275inject(p))},ye.\u0275prov=t.\u0275\u0275defineInjectable({token:ye,factory:ye.\u0275fac,providedIn:"root"}),ye})()},52959:(R,c,e)=>{"use strict";e.d(c,{af:()=>g,qu:()=>ne,I8:()=>a});var t={};e.r(t),e.d(t,{JsonPatchError:()=>M,_areEquals:()=>Y,applyOperation:()=>I,applyPatch:()=>g,applyReducer:()=>B,deepClone:()=>P,getValueByPointer:()=>C,validate:()=>V,validator:()=>L});var n={};e.r(n),e.d(n,{compare:()=>ne,generate:()=>G,observe:()=>k,unobserve:()=>j});var oe,o=(oe=function(ce,ye){return(oe=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(Me,Ee){Me.__proto__=Ee}||function(Me,Ee){for(var Ae in Ee)Ee.hasOwnProperty(Ae)&&(Me[Ae]=Ee[Ae])})(ce,ye)},function(ce,ye){function Me(){this.constructor=ce}oe(ce,ye),ce.prototype=null===ye?Object.create(ye):(Me.prototype=ye.prototype,new Me)}),i=Object.prototype.hasOwnProperty;function d(oe,ce){return i.call(oe,ce)}function r(oe){if(Array.isArray(oe)){for(var ce=new Array(oe.length),ye=0;ye<ce.length;ye++)ce[ye]=""+ye;return ce}if(Object.keys)return Object.keys(oe);var Me=[];for(var Ee in oe)d(oe,Ee)&&Me.push(Ee);return Me}function a(oe){switch(typeof oe){case"object":return JSON.parse(JSON.stringify(oe));case"undefined":return null;default:return oe}}function p(oe){for(var Me,ce=0,ye=oe.length;ce<ye;
vendor: 9,221 bytes, line 1
1){if(!((Me=oe.charCodeAt(ce))>=48&&Me<=57))return!1;ce++}return!0}function h(oe){return-1===oe.indexOf("/")&&-1===oe.indexOf("~")?oe:oe.replace(/~/g,"~0").replace(/\//g,"~1")}function m(oe){return oe.replace(/~1/g,"/").replace(/~0/g,"~")}function E(oe){if(void 0===oe)return!0;if(oe)if(Array.isArray(oe)){for(var ce=0,ye=oe.length;ce<ye;ce++)if(E(oe[ce]))return!0}else if("object"==typeof oe)for(var Me=r(oe),Ee=Me.length,Ae=0;Ae<Ee;Ae++)if(E(oe[Me[Ae]]))return!0;return!1}function O(oe,ce){var ye=[oe];for(var Me in ce){var Ee="object"==typeof ce[Me]?JSON.stringify(ce[Me],null,2):ce[Me];typeof Ee<"u"&&ye.push(Me+": "+Ee)}return ye.join("\n")}var b=function(oe){function ce(ye,Me,Ee,Ae,Je){var _t=this.constructor,It=oe.call(this,O(ye,{name:Me,index:Ee,operation:Ae,tree:Je}))||this;return It.name=Me,It.index=Ee,It.operation=Ae,It.tree=Je,Object.setPrototypeOf(It,_t.prototype),It.message=O(ye,{name:Me,index:Ee,operation:Ae,tree:Je}),It}return o(ce,oe),ce}(Error),M=b,P=a,D={add:function(oe,ce,ye){return oe[ce]=this.value,{newDocument:ye}},remove:function(oe,ce,ye){var Me=oe[ce];return delete oe[ce],{newDocument:ye,removed:Me}},replace:function(oe,ce,ye){var Me=oe[ce];return oe[ce]=this.value,{newDocument:ye,removed:Me}},move:function(oe,ce,ye){var Me=C(ye,this.path);Me&&(Me=a(Me));var Ee=I(ye,{op:"remove",path:this.from}).removed;return I(ye,{op:"add",path:this.path,value:Ee}),{newDocument:ye,removed:Me}},copy:function(oe,ce,ye){var Me=C(ye,this.from);return I(ye,{op:"add",path:this.path,value:a(Me)}),{newDocument:ye}},test:function(oe,ce,ye){return{newDocument:ye,test:Y(oe[ce],this.value)}},_get:function(oe,ce,ye){return this.value=oe[ce],{newDocument:ye}}},l={add:function(oe,ce,ye){return p(ce)?oe.splice(ce,0,this.value):oe[ce]=this.value,{newDocument:ye,index:ce}},remove:function(oe,ce,ye){return{newDocument:ye,removed:oe.splice(ce,1)[0]}},replace:function(oe,ce,ye){var Me=oe[ce];return oe[ce]=this.value,{newDocument:ye,removed:Me}},move:D.move,copy:D.copy,test:D.test,_get:D._get};function C(oe,ce){if(""==ce)return oe;var ye={op:"_get",path:ce};return I(oe,ye),ye.value}function I(oe,ce,ye,Me,Ee,Ae){if(void 0===ye&&(ye=!1),void 0===Me&&(Me=!0),void 0===Ee&&(Ee=!0),void 0===Ae&&(Ae=0),ye&&("function"==typeof ye?ye(ce,0,oe,ce.path):L(ce,0)),""===ce.path){var Je={newDocument:oe};if("add"===ce.op)return Je.newDocument=ce.value,Je;if("replace"===ce.op)return Je.newDocument=ce.value,Je.removed=oe,Je;if("move"===ce.op||"copy"===ce.op)return Je.newDocument=C(oe,ce.from),"move"===ce.op&&(Je.removed=oe),Je;if("test"===ce.op){if(Je.test=Y(oe,ce.value),!1===Je.test)throw new M("Test operation failed","TEST_OPERATION_FAILED",Ae,ce,oe);return Je.newDocument=oe,Je}if("remove"===ce.op)return Je.removed=oe,Je.newDocument=null,Je;if("_get"===ce.op)return ce.value=oe,Je;if(ye)throw new M("Operation `op` property is not one of operations defined in RFC-6902","OPERATION_OP_INVALID",Ae,ce,oe);return Je}Me||(oe=a(oe));var It=(ce.path||"").split("/"),it=oe,Be=1,Xe=It.length,pt=void 0,Mt=void 0,Yt=void 0;for(Yt="function"==typeof ye?ye:L;;){if((Mt=It[Be])&&-1!=Mt.indexOf("~")&&(Mt=m(Mt)),Ee&&("__proto__"==Mt||"prototype"==Mt&&Be>0&&"constructor"==It[Be-1]))throw new TypeError("JSON-Patch: modifying `__proto__` or `constructor/prototype` prop is banned for security reasons, if this was on purpose, please set `banPrototypeModifications` flag false and pass it to this function. More info in fast-json-patch README");if(ye&&void 0===pt&&(void 0===it[Mt]?pt=It.slice(0,Be).join("/"):Be==Xe-1&&(pt=ce.path),void 0!==pt&&Yt(ce,0,oe,pt)),Be++,Array.isArray(it)){if("-"===Mt)Mt=it.length;else{if(ye&&!p(Mt))throw new M("Expected an unsigned base-10 integer value, making the new referenced value the array element with the zero-based index","OPERATION_PATH_ILLEGAL_ARRAY_INDEX",Ae,ce,oe);p(Mt)&&(Mt=~~Mt)}if(Be>=Xe){if(ye&&"add"===ce.op&&Mt>it.length)throw new M("The specified index MUST NOT be greater than the number of elements in the array","OPERATION_VALUE_OUT_OF_BOUNDS",Ae,ce,oe);if(!1===(Je=l[ce.op].call(ce,it,Mt,oe)).test)throw new M("Test operation failed","TEST_OPERATION_FAILED",Ae,ce,oe);return Je}}else if(Be>=Xe){if(!1===(Je=D[ce.op].call(ce,it,Mt,oe)).test)throw new M("Test operation failed","TEST_OPERATION_FAILED",Ae,ce,oe);return Je}if(it=it[Mt],ye&&Be<Xe&&(!it||"object"!=typeof it))throw new M("Cannot perform operation at the desired path","OPERATION_PATH_UNRESOLVABLE",Ae,ce,oe)}}function g(oe,ce,ye,Me,Ee){if(void 0===Me&&(Me=!0),void 0===Ee&&(Ee=!0),ye&&!Array.isArray(ce))throw new M("Patch sequence must be an array","SEQUENCE_NOT_AN_ARRAY");Me||(oe=a(oe));for(var Ae=new Array(ce.length),Je=0,_t=ce.length;Je<_t;Je++)Ae[Je]=I(oe,ce[Je],ye,!0,Ee,Je),oe=Ae[Je].newDocument;return Ae.newDocument=oe,Ae}function B(oe,ce,ye){var Me=I(oe,ce);if(!1===Me.test)throw new M("Test operation failed","TEST_OPERATION_FAILED",ye,ce,oe);return Me.newDocument}function L(oe,ce,ye,Me){if("object"!=typeof oe||null===oe||Array.isArray(oe))throw new M("Operation is not an object","OPERATION_NOT_AN_OBJECT",ce,oe,ye);if(!D[oe.op])throw new M("Operation `op` property is not one of operations defined in RFC-6902","OPERATION_OP_INVALID",ce,oe,ye);if("string"!=typeof oe.path)throw new M("Operation `path` property is not a string","OPERATION_PATH_INVALID",ce,oe,ye);if(0!==oe.path.indexOf("/")&&oe.path.length>0)throw new M('Operation `path` property must start with "/"',"OPERATION_PATH_INVALID",ce,oe,ye);if(("move"===oe.op||"copy"===oe.op)&&"string"!=typeof oe.from)throw new M("Operation `from` property is not present (applicable in `move` and `copy` operations)","OPERATION_FROM_REQUIRED",ce,oe,ye);if(("add"===oe.op||"replace"===oe.op||"test"===oe.op)&&void 0===oe.value)throw new M("Operation `value` property is not present (applicable in `add`, `replace` and `test` operations)","OPERATION_VALUE_REQUIRED",ce,oe,ye);if(("add"===oe.op||"replace"===oe.op||"test"===oe.op)&&E(oe.value))throw new M("Operation `value` property is not present (applicable in `add`, `replace` and `test` operations)","OPERATION_VALUE_CANNOT_CONTAIN_UNDEFINED",ce,oe,ye);if(ye)if("add"==oe.op){var Ee=oe.path.split("/").length,Ae=Me.split("/").length;if(Ee!==Ae+1&&Ee!==Ae)throw new M("Cannot perform an `add` operation at the desired path","OPERATION_PATH_CANNOT_ADD",ce,oe,ye)}else if("replace"===oe.op||"remove"===oe.op||"_get"===oe.op){if(oe.path!==Me)throw new M("Cannot perform the operation at a path that does not exist","OPERATION_PATH_UNRESOLVABLE",ce,oe,ye)}else if("move"===oe.op||"copy"===oe.op){var _t=V([{op:"_get",path:oe.from,value:void 0}],ye);if(_t&&"OPERATION_PATH_UNRESOLVABLE"===_t.name)throw new M("Cannot perform the operation from a path that does not exist","OPERATION_FROM_UNRESOLVABLE",ce,oe,ye)}}function V(oe,ce,ye){try{if(!Array.isArray(oe))throw new M("Patch sequence must be an array","SEQUENCE_NOT_AN_ARRAY");if(ce)g(a(ce),a(oe),ye||!0);else{ye=ye||L;for(var Me=0;Me<oe.length;Me++)ye(oe[Me],Me,ce,void 0)}}catch(Ee){if(Ee instanceof M)return Ee;throw Ee}}function Y(oe,ce){if(oe===ce)return!0;if(oe&&ce&&"object"==typeof oe&&"object"==typeof ce){var Ee,Ae,Je,ye=Array.isArray(oe),Me=Array.isArray(ce);if(ye&&Me){if((Ae=oe.length)!=ce.length)return!1;for(Ee=Ae;0!=Ee--;)if(!Y(oe[Ee],ce[Ee]))return!1;return!0}if(ye!=Me)return!1;var _t=Object.keys(oe);if((Ae=_t.length)!==Object.keys(ce).length)return!1;for(Ee=Ae;0!=Ee--;)if(!ce.hasOwnProperty(_t[Ee]))return!1;for(Ee=Ae;0!=Ee--;)if(!Y(oe[Je=_t[Ee]],ce[Je]))return!1;return!0}return oe!=oe&&ce!=ce}var X=new WeakMap,te=function oe(ce){this.observers=new Map,this.obj=ce},K=function oe(ce,ye){this.callback=ce,this.observer=ye};function j(oe,ce){ce.unobserve()}function k(oe,ce){var Me,Ee=function ee(oe){return X.get(oe)}(oe);if(Ee){var Ae=function ae(oe,ce){return oe.observers.get(ce)}(Ee,ce);Me=Ae&&Ae.observer}else Ee=new te(oe),X.set(oe,Ee);if(Me)return Me;if(Me={},Ee.value=a(oe),ce){Me.callback=ce,Me.next=null;var Je=function(){G(Me)},_t=function(){clearTimeout(Me.next),Me.next=setTimeout(Je)};typeof window<"u"&&(window.addEventListener("mouseup",_t),window.addEventListener("keyup",_t),window.addEventListener("mousedown",_t),window.addEventListener("keydown",_t),window.addEventListener("change",_t))}return Me.patches=[],Me.object=oe,Me.unobserve=function(){G(Me),clearTimeout(Me.next),function Q(oe,ce){oe.observers.delete(ce.callback)}(Ee,Me),typeof window<"u"&&(window.removeEventListener("mouseup",_t),window.removeEventListener("keyup",_t),window.removeEventListener("mousedown",_t),window.removeEventListener("keydown",_t),window.removeEventListener("change",_t))},Ee.observers.set(ce,new K(ce,Me)),Me}function G(oe,ce){void 0===ce&&(ce=!1);var ye=X.get(oe.object);ie(ye.value,oe.object,oe.patches,"",ce),oe.patches.length&&g(ye.value,oe.patches);var Me=oe.patches;return Me.length>0&&(oe.patches=[],oe.callback&&oe.callback(Me)),Me}function ie(oe,ce,ye,Me,Ee){if(ce!==oe){"function"==typeof ce.toJSON&&(ce=ce.toJSON());for(var Ae=r(ce),Je=r(oe),It=!1,it=Je.length-1;it>=0;it--){var Xe=oe[Be=Je[it]];if(!d(ce,Be)||void 0===ce[Be]&&void 0!==Xe&&!1===Array.isArray(ce))Array.isArray(oe)===Array.isArray(ce)?(Ee&&ye.push({op:"test",path:Me+"/"+h(Be),value:a(Xe)}),ye.push({op:"remove",path:Me+"/"+h(Be)}
1),It=!0):(Ee&&ye.push({op:"test",path:Me,value:oe}),ye.push({op:"replace",path:Me,value:ce}));else{var pt=ce[Be];"object"==typeof Xe&&null!=Xe&&"object"==typeof pt&&null!=pt&&Array.isArray(Xe)===Array.isArray(pt)?ie(Xe,pt,ye,Me+"/"+h(Be),Ee):Xe!==pt&&(Ee&&ye.push({op:"test",path:Me+"/"+h(Be),value:a(Xe)}),ye.push({op:"replace",path:Me+"/"+h(Be),value:a(pt)}))}}if(It||Ae.length!=Je.length)for(it=0;it<Ae.length;it++){var Be;!d(oe,Be=Ae[it])&&void 0!==ce[Be]&&ye.push({op:"add",path:Me+"/"+h(Be),value:a(ce[Be])})}}}function ne(oe,ce,ye){void 0===ye&&(ye=!1);var Me=[];return ie(oe,ce,Me,"",ye),Me}Object.assign({},t,n,{JsonPatchError:b,deepClone:a,escapePathComponent:h,unescapePathComponent:m})},77296:(R,c,e)=>{"use strict";e.d(c,{Ry:()=>pt,Rq:()=>Yt});var t=e(94650),n=e(39646),o=e(54968),i=e(86099),d=e(54004),r=e(18505),a=e(39300),p=e(34986),h=e(54482),m=e(25403),_=e(38421),E=e(5963);function M(nt,mt,en,pn){const tt=window&&!!window.document&&window.document.documentElement;let Tt=tt&&mt?window:en;if(nt&&(Tt=nt&&tt&&"string"==typeof nt?function P(nt,mt,en){return(en?window.document:mt).querySelector(nt)}(nt,en.nativeElement,pn):nt,!Tt))throw new Error("ngx-infinite-scroll {resolveContainerElement()}: selector for");return Tt}function D(nt){return nt&&!nt.firstChange}const C={clientHeight:"clientHeight",offsetHeight:"offsetHeight",scrollHeight:"scrollHeight",pageYOffset:"pageYOffset",offsetTop:"offsetTop",scrollTop:"scrollTop",top:"top"},I={clientHeight:"clientWidth",offsetHeight:"offsetWidth",scrollHeight:"scrollWidth",pageYOffset:"pageXOffset",offsetTop:"offsetLeft",scrollTop:"scrollLeft",top:"left"};class g{constructor(mt=!0){this.vertical=mt,this.propsMap=mt?C:I}clientHeightKey(){return this.propsMap.clientHeight}offsetHeightKey(){return this.propsMap.offsetHeight}scrollHeightKey(){return this.propsMap.scrollHeight}pageYOffsetKey(){return this.propsMap.pageYOffset}offsetTopKey(){return this.propsMap.offsetTop}scrollTopKey(){return this.propsMap.scrollTop}topKey(){return this.propsMap.top}}function Y(nt){return["Window","global"].some(en=>Object.prototype.toString.call(nt).includes(en))}function X(nt,mt){return nt?mt.document.documentElement:null}function te(nt,mt){const en=function Q({container:nt,isWindow:mt,axis:en}){const{offsetHeightKey:pn,clientHeightKey:tt}=ae(en);return j(nt,mt,pn,tt)}(mt);return mt.isWindow?function K(nt,mt,en){const{axis:pn,container:tt,isWindow:Tt}=en,{offsetHeightKey:At,clientHeightKey:Rt}=ae(pn),Pt=nt+G(X(Tt,tt),pn,Tt),xt=j(mt.nativeElement,Tt,At,Rt),lt=function k(nt,mt,en){const pn=mt.topKey();if(nt.getBoundingClientRect)return nt.getBoundingClientRect()[pn]+G(nt,mt,en)}(mt.nativeElement,pn,Tt)+xt;return{height:nt,scrolled:Pt,totalToScroll:lt,isWindow:Tt}}(en,nt,mt):function ee(nt,mt,en){const{axis:pn,container:tt}=en;return{height:nt,scrolled:tt[pn.scrollTopKey()],totalToScroll:tt[pn.scrollHeightKey()],isWindow:!1}}(en,0,mt)}function ae(nt){return{offsetHeightKey:nt.offsetHeightKey(),clientHeightKey:nt.clientHeightKey()}}function j(nt,mt,en,pn){if(isNaN(nt[en])){const tt=X(mt,nt);return tt?tt[pn]:0}return nt[en]}function G(nt,mt,en){const pn=mt.pageYOffsetKey(),tt=mt.scrollTopKey(),Tt=mt.offsetTopKey();return isNaN(window.pageYOffset)?X(en,nt)[tt]:nt.ownerDocument?nt.ownerDocument.defaultView[pn]:nt[Tt]}function ie(nt,mt={down:0,up:0},en){let pn,tt;if(nt.totalToScroll<=0)return!1;const Tt=nt.isWindow?nt.scrolled:nt.height+nt.scrolled;return en?(pn=(nt.totalToScroll-Tt)/nt.totalToScroll,tt=(mt?.down?mt.down:0)/10):(pn=nt.scrolled/(nt.scrolled+(nt.totalToScroll-Tt)),tt=(mt?.up?mt.up:0)/10),pn<=tt}class Je{constructor({totalToScroll:mt}){this.lastScrollPosition=0,this.lastTotalToScroll=0,this.totalToScroll=0,this.triggered={down:0,up:0},this.totalToScroll=mt}updateScrollPosition(mt){return this.lastScrollPosition=mt}updateTotalToScroll(mt){this.lastTotalToScroll!==mt&&(this.lastTotalToScroll=this.totalToScroll,this.totalToScroll=mt)}updateScroll(mt,en){this.updateScrollPosition(mt),this.updateTotalToScroll(en)}updateTriggeredFlag(mt,en){en?this.triggered.down=mt:this.triggered.up=mt}isTriggeredScroll(mt,en){return en?this.triggered.down===mt:this.triggered.up===mt}}function _t(nt){const{scrollContainer:mt,scrollWindow:en,element:pn,fromRoot:tt}=nt,Tt=function L({windowElement:nt,axis:mt}){return function V(nt,mt){const en=nt.isWindow||mt&&!mt.nativeElement?mt:mt.nativeElement;return{...nt,container:en}}({axis:mt,isWindow:Y(nt)},nt)}({axis:new g(!nt.horizontal),windowElement:M(mt,en,pn,tt)}),At=new Je({totalToScroll:te(pn,Tt)}),Pt={up:nt.upDistance,down:nt.downDistance};return function It(nt){let mt=(0,o.R)(nt.container,"scroll");return nt.throttle&&(mt=mt.pipe(function O(nt,mt=p.z,en){const pn=(0,E.H)(nt,mt);return function v(nt,mt){return(0,h.e)((en,pn)=>{const{leading:tt=!0,trailing:Tt=!1}=mt??{};let At=!1,Rt=null,Pt=null,xt=!1;const lt=()=>{Pt?.unsubscribe(),Pt=null,Tt&&(ot(),xt&&pn.complete())},Ut=()=>{Pt=null,xt&&pn.complete()},ke=gt=>Pt=(0,_.Xf)(nt(gt)).subscribe((0,m.x)(pn,lt,Ut)),ot=()=>{if(At){At=!1;const gt=Rt;Rt=null,pn.next(gt),!xt&&ke(gt)}};en.subscribe((0,m.x)(pn,gt=>{At=!0,Rt=gt,(!Pt||Pt.closed)&&(tt?ot():ke(gt))},()=>{xt=!0,(!(Tt&&At&&Pt)||Pt.closed)&&pn.complete()}
1))})}(()=>pn,en)}(nt.throttle,void 0,{leading:!0,trailing:!0}))),mt}({container:Tt.container,throttle:nt.throttle}).pipe((0,i.z)(()=>(0,n.of)(te(pn,Tt))),(0,d.U)(xt=>function it(nt,mt,en){const{scrollDown:pn,fire:tt}=function q(nt,mt,en){const pn=function ne(nt,mt){return nt<mt.scrolled}(nt,mt);return{fire:ie(mt,en,pn),scrollDown:pn}}(nt,mt,en);return{scrollDown:pn,fire:tt,stats:mt}}(At.lastScrollPosition,xt,Pt)),(0,r.b)(({stats:xt})=>At.updateScroll(xt.scrolled,xt.totalToScroll)),(0,a.h)(({fire:xt,scrollDown:lt,stats:{totalToScroll:Ut}})=>function B(nt,mt,en){return!!(nt&&mt||!en&&mt)}(nt.alwaysCallback,xt,At.isTriggeredScroll(Ut,lt))),(0,r.b)(({scrollDown:xt,stats:{totalToScroll:lt}})=>{At.updateTriggeredFlag(lt,xt)}),(0,d.U)(Xe))}const Be={DOWN:"[NGX_ISE] DOWN",UP:"[NGX_ISE] UP"};function Xe(nt){const{scrollDown:mt,stats:{scrolled:en}}=nt;return{type:mt?Be.DOWN:Be.UP,payload:{currentScrollPosition:en}}}let pt=(()=>{class nt{constructor(en,pn){this.element=en,this.zone=pn,this.scrolled=new t.EventEmitter,this.scrolledUp=new t.EventEmitter,this.infiniteScrollDistance=2,this.infiniteScrollUpDistance=1.5,this.infiniteScrollThrottle=150,this.infiniteScrollDisabled=!1,this.infiniteScrollContainer=null,this.scrollWindow=!0,this.immediateCheck=!1,this.horizontal=!1,this.alwaysCallback=!1,this.fromRoot=!1}ngAfterViewInit(){this.infiniteScrollDisabled||this.setup()}ngOnChanges({infiniteScrollContainer:en,infiniteScrollDisabled:pn,infiniteScrollDistance:tt}){const Tt=D(en),At=D(pn),Rt=D(tt),Pt=!At&&!this.infiniteScrollDisabled||At&&!pn.currentValue||Rt;(Tt||At||Rt)&&(this.destroyScroller(),Pt&&this.setup())}setup(){(function l(){return typeof window<"u"})()&&this.zone.runOutsideAngular(()=>{this.disposeScroller=_t({fromRoot:this.fromRoot,alwaysCallback:this.alwaysCallback,disable:this.infiniteScrollDisabled,downDistance:this.infiniteScrollDistance,element:this.element,horizontal:this.horizontal,scrollC
1ontainer:this.infiniteScrollContainer,scrollWindow:this.scrollWindow,throttle:this.infiniteScrollThrottle,upDistance:this.infiniteScrollUpDistance}).subscribe(en=>this.handleOnScroll(en))})}handleOnScroll({type:en,payload:pn}){const tt=en===Be.DOWN?this.scrolled:this.scrolledUp;(function Mt(nt){return nt.observed??nt.observers.length>0})(tt)&&this.zone.run(()=>tt.emit(pn))}ngOnDestroy(){this.destroyScroller()}destroyScroller(){this.disposeScroller&&this.disposeScroller.unsubscribe()}}return nt.\u0275fac=function(en){return new(en||nt)(t.\u0275\u0275directiveInject(t.ElementRef),t.\u0275\u0275directiveInject(t.NgZone))},nt.\u0275dir=t.\u0275\u0275defineDirective({type:nt,selectors:[["","infiniteScroll",""],["","infinite-scroll",""],["","data-infinite-scroll",""]],inputs:{infiniteScrollDistance:"infiniteScrollDistance",infiniteScrollUpDistance:"infiniteScrollUpDistance",infiniteScrollThrottle:"infiniteScrollThrottle",infiniteScrollDisabled:"infiniteScrollDisabled",infiniteScrollContainer:"infiniteScrollContainer",scrollWindow:"scrollWindow",immediateCheck:"immediateCheck",horizontal:"horizontal",alwaysCallback:"alwaysCallback",fromRoot:"fromRoot"},outputs:{scrolled:"scrolled",scrolledUp:"scrolledUp"},features:[t.\u0275\u0275NgOnChangesFeature]}),nt})(),Yt=(()=>{class nt{}return nt.\u0275fac=function(en){return new(en||nt)},nt.\u0275mod=t.\u0275\u0275defineNgModule({type:nt}),nt.\u0275inj=t.\u0275\u0275defineInjector({}),nt})()},21094:(R,c,e)=>{"use strict";e.d(c,{hx:()=>E,um:()=>p,yI:()=>M});var t=e(49671),n=e(94650),o=e(24006),i=e(36895);const d=new n.InjectionToken("ngx-mask config"),r=new n.InjectionToken("new ngx-mask config"),a=new n.InjectionToken("initial ngx-mask config"),p={suffix:"",prefix:"",thousandSeparator:" ",decimalMarker:[".",","],clearIfNotMatch:!1,showTemplate:!1,showMaskTyped:!1,placeHolderCharacter:"_",dropSpecialCharacters:!0,hiddenInput:void 0,shownMaskExpression:"",separatorLimit:"",allowNegativeNumbers:!1,validation:!0,specialCharacters:["-","/","(",")",".",":"," ","+",",","@","[","]",'"',"'"],leadZeroDateTime:!1,triggerOnMaskChange:!1,maskFilled:new n.EventEmitter,patterns:{0:{pattern:new RegExp("\\d")},9:{pattern:new RegExp("\\d"),optional:!0},X:{pattern:new RegExp("\\d"),symbol:"*"},A:{pattern:new RegExp("[a-zA-Z0-9]")},S:{pattern:new RegExp("[a-zA-Z]")},U:{pattern:new RegExp("[A-Z]")},L:{pattern:new RegExp("[a-z]")},d:{pattern:new RegExp("\\d")},m:{pattern:new RegExp("\\d")},M:{pattern:new RegExp("\\d")},H:{pattern:new RegExp("\\d")},h:{pattern:new RegExp("\\d")},s:{pattern:new RegExp("\\d")}}},h=["Hh:m0:s0","Hh:m0","m0:s0"],m=["percent","Hh","s0","m0","separator","d0/M0/0000","d0/M0","d0","M0"];let _=(()=>{class D{constructor(C){this._config=C,this.maskExpression="",this.actualValue="",this.shownMaskExpression="",this._formatWithSeparators=(I,g,B,L)=>{let V=[],Y="";if(Array.isArray(B)){const ae=new RegExp(B.map(Q=>"[\\^$.|?*+()".indexOf(Q)>=0?`\\${Q}`:Q).join("|"));V=I.split(ae),Y=I.match(ae)?.[0]??""}else V=I.split(B),Y=B;const X=V.length>1?`${Y}${V[1]}`:"";let te=V[0];const K=this.separatorLimit.replace(/\s/g,"");K&&+K&&(te="-"===te[0]?`-${te.slice(1,te.length).slice(0,K.length)}`:te.slice(0,K.length));const ee=/(\d+)(\d{3})/;for(;g&&ee.test(te);)te=te.replace(ee,"$1"+g+"$2");return void 0===L?te+X:0===L?te:te+X.substr(0,L+1)},this.percentage=I=>Number(I)>=0&&Number(I)<=100,this.getPrecision=I=>{const g=I.split(".");return g.length>1?Number(g[g.length-1]):1/0},this.checkAndRemoveSuffix=I=>{for(let g=this.suffix?.length-1;g>=0;g--){const B=this.suffix.substr(g,this.suffix?.length);if(I.includes(B)&&(g-1<0||!I.includes(this.suffix.substr(g-1,this.suffix?.length))))return I.replace(B,"")}return I},this.checkInputPrecision=(I,g,B)=>{if(g<1/0){if(Array.isArray(B)){const Y=B.find(X=>X!==this.thousandSeparator);B=Y||B[0]}const L=new RegExp(this._charToRegExpExpression(B)+`\\d{${g}}.*$`),V=I.match(L);V&&V[0].length-1>g&&(I=I.substring(0,I.length-(V[0].length-1-g))),0===g&&this._compareOrIncludes(I[I.length-1],B,this.thousandSeparator)&&(I=I.substring(0,I.length-1))}return I},this._shift=new Set,this.clearIfNotMatch=this._config.clearIfNotMatch,this.dropSpecialCharacters=this._config.dropSpecialCharacters,this.maskSpecialCharacters=this._config.specialCharacters,this.maskAvailablePatterns=this._config.patterns,this.prefix=this._config.prefix,this.suffix=this._config.suffix,this.thousandSeparator=this._config.thousandSeparator,this.decimalMarker=this._config.decimalMarker,this.hiddenInput=this._config.hiddenInput,this.showMaskTyped=this._config.showMaskTyped,this.placeHolderCharacter=this._config.placeHolderCharacter,this.validation=this._config.validation,this.separatorLimit=this._config.separatorLimit,this.allowNegativeNumbers=this._config.allowNegativeNumbers,this.leadZeroDateTime=this._config.leadZeroDateTime}applyMaskWithPattern(C,I){const[g,B]=I;return this.customPattern=B,this.applyMask(C,g)}
1applyMask(C,I,g=0,B=!1,L=!1,V=(()=>{})){if(!I||"string"!=typeof C)return"";let Y=0,X="",te=!1,K=!1,ee=1,ae=!1;C.slice(0,this.prefix.length)===this.prefix&&(C=C.slice(this.prefix.length,C.length)),this.suffix&&C?.length>0&&(C=this.checkAndRemoveSuffix(C));const Q=C.toString().split("");"IP"===I&&(this.ipError=Q.filter(q=>"."===q).length<3&&Q.length<7,I="099.099.099.099");const j=[];for(let q=0;q<C.length;q++)C[q]?.match("\\d")&&j.push(C[q]);if("CPF_CNPJ"===I&&(this.cpfCnpjError=11!==j.length&&14!==j.length,I=j.length>11?"00.000.000/0000-00":"000.000.000-00"),I.startsWith("percent")){if(C.match("[a-z]|[A-Z]")||C.match(/[-!$%^&*()_+|~=`{}\[\]:";'<>?,\/.]/)){C=this._stripToDecimal(C);const q=this.getPrecision(I);C=this.checkInputPrecision(C,q,this.decimalMarker)}C.indexOf(".")>0&&!this.percentage(C.substring(0,C.indexOf(".")))&&(C=`${C.substring(0,C.indexOf(".")-1)}${C.substring(C.indexOf("."),C.length)}`),X=this.percentage(C)?C:C.substring(0,C.length-1)}else if(I.startsWith("separator")){(C.match("[w\u0430-\u044f\u0410-\u042f]")||C.match("[\u0401\u0451\u0410-\u044f]")||C.match("[a-z]|[A-Z]")||C.match(/[-@#!$%\\^&*()_\xa3\xac'+|~=`{}\[\]:";<>.?\/]/)||C.match("[^A-Za-z0-9,]"))&&(C=this._stripToDecimal(C)),C=C.length>1&&"0"===C[0]&&!this._compareOrIncludes(C[1],this.decimalMarker,this.thousandSeparator)&&!L?C.slice(1,C.length):C,L&&(C=this._compareOrIncludes(C[C.length-1],this.decimalMarker,this.thousandSeparator)?C.slice(0,C.length-1):C);const q=this._charToRegExpExpression(this.thousandSeparator);let oe='@#!$%^&*()_+|~=`{}\\[\\]:\\s,\\.";<>?\\/'.replace(q,"");if(Array.isArray(this.decimalMarker))for(const Je of this.decimalMarker)oe=oe.replace(this._charToRegExpExpression(Je),"");else oe=oe.replace(this._charToRegExpExpression(this.decimalMarker),"");const ce=new RegExp("["+oe+"]");(C.match(ce)||1===C.length&&this._compareOrIncludes(C,this.decimalMarker,this.thousandSeparator))&&(C=C.substring(0,C.length-1));const ye=this.getPrecision(I),Me=(C=this.checkInputPrecision(C,ye,this.decimalMarker)).replace(new RegExp(q,"g"),"");X=this._formatWithSeparators(Me,this.thousandSeparator,this.decimalMarker,ye);const Ee=X.indexOf(",")-C.indexOf(","),Ae=X.length-C.length;if(Ae>0&&","!==X[g]){K=!0;let Je=0;do{this._shift.add(g+Je),Je++}while(Je<Ae)}else 0!==Ee&&g>0&&!(X.indexOf(",")>=g&&g>3)||!(X.indexOf(".")>=g&&g>3)&&Ae<=0?(this._shift.clear(),K=!0,ee=Ae,this._shift.add(g+=Ae)):this._shift.clear()}else for(let q=0,oe=Q[0];q<Q.length&&Y!==I.length;q++,oe=Q[q])if(this._checkSymbolMask(oe,I[Y])&&"?"===I[Y+1])X+=oe,Y+=2;else if("*"===I[Y+1]&&te&&this._checkSymbolMask(oe,I[Y+2]))X+=oe,Y+=3,te=!1;else if(this._checkSymbolMask(oe,I[Y])&&"*"===I[Y+1])X+=oe,te=!0;else if("?"===I[Y+1]&&this._checkSymbolMask(oe,I[Y+2]))X+=oe,Y+=3;else if(this._checkSymbolMask(oe,I[Y])){if("H"===I[Y]&&Number(oe)>2){Y+=1,this._shiftStep(I,Y,Q.length),q--,this.leadZeroDateTime&&(X+="0");continue}if("h"===I[Y]&&"2"===X&&Number(oe)>3){Y+=1,q--;continue}if("m"===I[Y]&&Number(oe)>5){Y+=1,this._shiftStep(I,Y,Q.length),q--,this.leadZeroDateTime&&(X+="0");continue}if("s"===I[Y]&&Number(oe)>5){Y+=1,this._shiftStep(I,Y,Q.length),q--,this.leadZeroDateTime&&(X+="0");continue}const ce=31;if("d"===I[Y]&&(Number(oe)>3&&this.leadZeroDateTime||Number(C.slice(Y,Y+2))>ce||"/"===C[Y+1])){Y+=1,this._shiftStep(I,Y,Q.length),q--,this.leadZeroDateTime&&(X+="0");continue}if("M"===I[Y]){const Me=0===Y&&(Number(oe)>2||Number(C.slice(Y,Y+2))>12||"/"===C[Y+1]),Ee=C.slice(Y-3,Y-1).includes("/")&&("/"===C[Y-2]&&Number(C.slice(Y-1,Y+1))>12&&"/"!==C[Y]||"/"===C[Y]||"/"===C[Y-3]&&Number(C.slice(Y-2,Y))>12&&"/"!==C[Y-1]||"/"===C[Y-1]),Ae=Number(C.slice(Y-3,Y-1))<=ce&&!C.slice(Y-3,Y-1).includes("/")&&"/"===C[Y-1]&&(Number(C.slice(Y,Y+2))>12||"/"===C[Y+1]),Je=Number(C.slice(Y-3,Y-1))>ce&&!C.slice(Y-3,Y-1).includes("/")&&!C.slice(Y-2,Y).includes("/")&&Number(C.slice(Y-2,Y))>12,_t=Number(C.slice(Y-3,Y-1))<=ce&&!C.slice(Y-3,Y-1).includes("/")&&"/"!==C[Y-1]&&Number(C.slice(Y-1,Y+1))>12;if(Number(oe)>1&&this.leadZeroDateTime||Me||Ee||Ae||Je||_t){Y+=1,this._shiftStep(I,Y,Q.length),q--,this.leadZeroDateTime&&(X+="0");continue}}X+=oe,Y++}else" "===oe&&" "===I[Y]?(X+=oe,Y++):-1!==this.maskSpecialCharacters.indexOf(I[Y])?(X+=I[Y],Y++,this._shiftStep(I,Y,Q.length),q--):this.maskSpecialCharacters.indexOf(oe)>-1&&this.maskAvailablePatterns[I[Y]]&&this.maskAvailablePatterns[I[Y]]?.optional?(Q[Y]&&"099.099.099.099"!==I&&"000.000.000-00"!==I&&"00.000.000/0000-00"!==I&&
1!I.match(/^9+\.0+$/)&&(X+=Q[Y]),Y++,q--):"*"===this.maskExpression[Y+1]&&this._findSpecialChar(this.maskExpression[Y+2])&&this._findSpecialChar(oe)===this.maskExpression[Y+2]&&te||"?"===this.maskExpression[Y+1]&&this._findSpecialChar(this.maskExpression[Y+2])&&this._findSpecialChar(oe)===this.maskExpression[Y+2]&&te?(Y+=3,X+=oe):this.showMaskTyped&&this.maskSpecialCharacters.indexOf(oe)<0&&oe!==this.placeHolderCharacter&&(ae=!0);X.length+1===I.length&&-1!==this.maskSpecialCharacters.indexOf(I[I.length-1])&&(X+=I[I.length-1]);let k=g+1;for(;this._shift.has(k);)ee++,k++;let G=B&&!I.startsWith("separator")?Y:this._shift.has(g)?ee:0;ae&&G--,V(G,K),ee<0&&this._shift.clear();let ie=!1;L&&(ie=Q.every(q=>this.maskSpecialCharacters.includes(q)));let ne=`${this.prefix}${ie?"":X}${this.suffix}`;return 0===X.length&&(ne=`${this.prefix}${X}`),ne}_findSpecialChar(C){return this.maskSpecialCharacters.find(I=>I===C)}_checkSymbolMask(C,I){return this.maskAvailablePatterns=this.customPattern?this.customPattern:this.maskAvailablePatterns,this.maskAvailablePatterns[I]&&this.maskAvailablePatterns[I].pattern&&this.maskAvailablePatterns[I].pattern.test(C)}_stripToDecimal(C){return C.split("").filter((I,g)=>I.match("^-?\\d")||I.match("\\s")||"."===I||","===I||"-"===I&&0===g&&this.allowNegativeNumbers).join("")}_charToRegExpExpression(C){return C&&(" "===C?"\\s":"[\\^$.|?*+()".indexOf(C)>=0?`\\${C}`:C)}_shiftStep(C,I,g){const B=/[*?]/g.test(C.slice(0,I))?g:I;this._shift.add(B+this.prefix.length||0)}_compareOrIncludes(C,I,g){return Array.isArray(I)?I.filter(B=>B!==g).includes(C):C===I}}return D.\u0275fac=function(C){return new(C||D)(n.\u0275\u0275inject(d))},D.\u0275prov=n.\u0275\u0275defineInjectable({token:D,factory:D.\u0275fac}),D})(),v=(()=>{class D extends _{constructor(C,I,g,B){super(I),this.document=C,this._config=I,this._elementRef=g,this._renderer=B,this.maskExpression="",this.isNumberValue=!1,this.placeHolderCharacter="_",this.maskIsShown="",this.selStart=null,this.selEnd=null,this.writingValue=!1,this.maskChanged=!1,this.triggerOnMaskChange=!1,this.onChange=L=>{}}applyMask(C,I,g=0,B=!1,L=!1,V=(()=>{})){if(!I)return C!==this.actualValue?this.actualValue:C;if(this.maskIsShown=this.showMaskTyped?this.showMaskInInput():"","IP"===this.maskExpression&&this.showMaskTyped&&(this.maskIsShown=this.showMaskInInput(C||"#")),"CPF_CNPJ"===this.maskExpression&&this.showMaskTyped&&(this.maskIsShown=this.showMaskInInput(C||"#")),!C&&this.showMaskTyped)return this.formControlResult(this.prefix),this.prefix+this.maskIsShown;const Y=C&&"number"==typeof this.selStart?C[this.selStart]:"";let X="";if(this.hiddenInput&&!this.writingValue){let ae=this.actualValue.split("");""!==C&&ae.length?"number"==typeof this.selStart&&"number"==typeof this.selEnd&&(C.length>ae.length?ae.splice(this.selStart,0,Y):C.length<ae.length&&(ae.length-C.length==1?ae.splice(this.selStart-1,1):ae.splice(this.selStart,this.selEnd-this.selStart))):ae=[],this.showMaskTyped&&(C=this.removeMask(C)),X=this.actualValue.length&&ae.length<=C.length?this.shiftTypedSymbols(ae.join("")):C}X=Boolean(X)&&X.length?X:C;const te=super.applyMask(X,I,g,B,L,V);if(this.actualValue=this.getActualValue(te),"."===this.thousandSeparator&&"."===this.decimalMarker&&(this.decimalMarker=","),this.maskExpression.startsWith("separator")&&!0===this.dropSpecialCharacters&&(this.maskSpecialCharacters=this.maskSpecialCharacters.filter(ae=>!this._compareOrIncludes(ae,this.decimalMarker,this.thousandSeparator))),this.formControlResult(te),!this.showMaskTyped)return this.hiddenInput&&te&&te.length?this.hideInput(te,this.maskExpression):te;const K=te.length,ee=this.prefix+this.maskIsShown;if(this.maskExpression.includes("H")){const ae=this._numberSkipedSymbols(te);return te+ee.slice(K+ae)}return"IP"===this.maskExpression||"CPF_CNPJ"===this.maskExpression?te+ee:te+ee.slice(K)}_numberSkipedSymbols(C){const I=/(^|\D)(\d\D)/g;let g=I.exec(C),B=0;for(;null!=g;)B+=1,g=I.exec(C);return B}applyValueChanges(C,I,g,B=(()=>{})){const L=this._elementRef.nativeElement;L.value=this.applyMask(L.value,this.maskExpression,C,I,g,B),L!==this._getActiveElement()&&this.clearIfNotMatchFn()}hideInput(C,I){return C.split("").map((g,B)=>this.maskAvailablePatterns&&this.maskAvailablePatterns[I[B]]&&this.maskAvailablePatterns[I[B]]?.symbol?this.maskAvailablePatterns[I[B]]?.symbol
1:g).join("")}getActualValue(C){const I=C.split("").filter((g,B)=>this._checkSymbolMask(g,this.maskExpression[B])||this.maskSpecialCharacters.includes(this.maskExpression[B])&&g===this.maskExpression[B]);return I.join("")===C?I.join(""):C}shiftTypedSymbols(C){let I="";return(C&&C.split("").map((B,L)=>{if(this.maskSpecialCharacters.includes(C[L+1])&&C[L+1]!==this.maskExpression[L+1])return I=B,C[L+1];if(I.length){const V=I;return I="",V}return B})||[]).join("")}numberToString(C){return C||0===C?Number(C).toLocaleString("fullwide",{useGrouping:!1,maximumFractionDigits:20}):String(C)}showMaskInInput(C){if(this.showMaskTyped&&this.shownMaskExpression){if(this.maskExpression.length!==this.shownMaskExpression.length)throw new Error("Mask expression must match mask placeholder length");return this.shownMaskExpression}if(this.showMaskTyped){if(C){if("IP"===this.maskExpression)return this._checkForIp(C);if("CPF_CNPJ"===this.maskExpression)return this._checkForCpfCnpj(C)}return this.maskExpression.replace(/\w/g,this.placeHolderCharacter)}return""}clearIfNotMatchFn(){const C=this._elementRef.nativeElement;this.clearIfNotMatch&&this.prefix.length+this.maskExpression.length+this.suffix.length!==C.value.replace(/_/g,"").length&&(this.formElementProperty=["value",""],this.applyMask(C.value,this.maskExpression))}set formElementProperty([C,I]){Promise.resolve().then(()=>this._renderer.setProperty(this._elementRef.nativeElement,C,I))}checkSpecialCharAmount(C){return C.split("").filter(g=>this._findSpecialChar(g)).length}removeMask(C){return this._removeMask(this._removeSuffix(this._removePrefix(C)),this.maskSpecialCharacters.concat("_").concat(this.placeHolderCharacter))}_checkForIp(C){if("#"===C)return`${this.placeHolderCharacter}.${this.placeHolderCharacter}.${this.placeHolderCharacter}.${this.placeHolderCharacter}`;const I=[];for(let g=0;g<C.length;g++)C[g]?.match("\\d")&&I.push(C[g]);return I.length<=3?`${this.placeHolderCharacter}.${this.placeHolderCharacter}.${this.placeHolderCharacter}`:I.length>3&&I.length<=6?`${this.placeHolderCharacter}.${this.placeHolderCharacter}`:I.length>6&&I.length<=9?this.placeHolderCharacter:""}_checkForCpfCnpj(C){const I=`${this.placeHolderCharacter}${this.placeHolderCharacter}${this.placeHolderCharacter}.${this.placeHolderCharacter}${this.placeHolderCharacter}${this.placeHolderCharacter}.${this.placeHolderCharacter}${this.placeHolderCharacter}${this.placeHolderCharacter}-${this.placeHolderCharacter}${this.placeHolderCharacter}`,g=`${this.placeHolderCharacter}${this.placeHolderCharacter}.${this.placeHolderCharacter}${this.placeHolderCharacter}${this.placeHolderCharacter}.${this.placeHolderCharacter}${this.placeHolderCharacter}${this.placeHolderCharacter}/${this.placeHolderCharacter}${this.placeHolderCharacter}${this.placeHolderCharacter}${this.placeHolderCharacter}-${this.placeHolderCharacter}${this.placeHolderCharacter}`;if("#"===C)return I;const B=[];for(let L=0;L<C.length;L++)C[L]?.match("\\d")&&B.push(C[L]);return B.length<=3?I.slice(B.length,I.length):B.length>3&&B.length<=6?I.slice(B.length+1,I.length):B.length>6&&B.length<=9?I.slice(B.length+2,I.length):B.length>9&&B.length<11?I.slice(B.length+3,I.length):11===B.length?"":12===B.length?g.slice(17===C.length?16:15,g.length):B.length>12&&B.length<=14?g.slice(B.length+4,g.length):""}_getActiveElement(C=this.document){const I=C?.activeElement?.shadowRoot;return I?.activeElement?this._getActiveElement(I):C.activeElement}formControlResult(C){this.writingValue||!this.triggerOnMaskChange&&this.maskChanged?this.maskChanged=!1:Array.isArray(this.dropSpecialCharacters)?this.onChange(this._toNumber(this._removeMask(this._removeSuffix(this._removePrefix(C)),this.dropSpecialCharacters))):this.onChange(this.dropSpecialCharacters?this._toNumber(this._checkSymbols(C)):this._removeSuffix(C))}_toNumber(C){if(!this.isNumberValue||""===C)return C;const I=Number(C);return Number.isNaN(I)?C:I}_removeMask(C,I){return C&&C.replace(this._regExpForRemove(I),"")}_removePrefix(C){return this.prefix?C&&C.replace(this.prefix,""):C}_removeSuffix(C){return this.suffix?C&&C.replace(this.suffix,""):C}_retrieveSeparatorValue(C){return this._removeMask(this._removeSuffix(this._removePrefix(C)),this.maskSpecialCharacters)}_regExpForRemove(C){return new RegExp(C.map(I=>`\\${I}`).join("|"),"gi")}
1_checkSymbols(C){if(""===C)return C;const I=this._retrieveSeparatorPrecision(this.maskExpression);let g=this._retrieveSeparatorValue(C);return"."!==this.decimalMarker&&!Array.isArray(this.decimalMarker)&&(g=g.replace(this.decimalMarker,".")),this.isNumberValue?I?C===this.decimalMarker?null:this._checkPrecision(this.maskExpression,g):Number(g):g}_retrieveSeparatorPrecision(C){const I=C.match(new RegExp("^separator\\.([^d]*)"));return I?Number(I[1]):null}_checkPrecision(C,I){return C.indexOf("2")>0?Number(I).toFixed(2):Number(I)}}return D.\u0275fac=function(C){return new(C||D)(n.\u0275\u0275inject(i.K0),n.\u0275\u0275inject(d),n.\u0275\u0275inject(n.ElementRef),n.\u0275\u0275inject(n.Renderer2))},D.\u0275prov=n.\u0275\u0275defineInjectable({token:D,factory:D.\u0275fac}),D})(),E=(()=>{class D{constructor(C,I,g){this.document=C,this._maskService=I,this._config=g,this.maskExpression="",this.specialCharacters=[],this.patterns={},this.prefix="",this.suffix="",this.thousandSeparator=" ",this.decimalMarker=".",this.dropSpecialCharacters=null,this.hiddenInput=null,this.showMaskTyped=null,this.placeHolderCharacter=null,this.shownMaskExpression=null,this.showTemplate=null,this.clearIfNotMatch=null,this.validation=null,this.separatorLimit=null,this.allowNegativeNumbers=null,this.leadZeroDateTime=null,this.triggerOnMaskChange=null,this.maskFilled=new n.EventEmitter,this._maskValue="",this._position=null,this._maskExpressionArray=[],this._justPasted=!1,this.onChange=B=>{},this.onTouch=()=>{}}ngOnChanges(C){const{maskExpression:I,specialCharacters:g,patterns:B,prefix:L,suffix:V,thousandSeparator:Y,decimalMarker:X,dropSpecialCharacters:te,hiddenInput:K,showMaskTyped:ee,placeHolderCharacter:ae,shownMaskExpression:Q,showTemplate:j,clearIfNotMatch:k,validation:G,separatorLimit:ie,allowNegativeNumbers:ne,leadZeroDateTime:q,triggerOnMaskChange:oe}=C;if(I&&(I.currentValue!==I.previousValue&&!I.firstChange&&(this._maskService.maskChanged=!0),I.currentValue&&I.currentValue.split("||").length>1?(this._maskExpressionArray=I.currentValue.split("||").sort((ce,ye)=>ce.length-ye.length),this._setMask()):(this._maskExpressionArray=[],this._maskValue=I.currentValue||"",this._maskService.maskExpression=this._maskValue)),g){if(!g.currentValue||!Array.isArray(g.currentValue))return;this._maskService.maskSpecialCharacters=g.currentValue||[]}B&&B.currentValue&&(this._maskService.maskAvailablePatterns=B.currentValue),L&&(this._maskService.prefix=L.currentValue),V&&(this._maskService.suffix=V.currentValue),Y&&(this._maskService.thousandSeparator=Y.currentValue),X&&(this._maskService.decimalMarker=X.currentValue),te&&(this._maskService.dropSpecialCharacters=te.currentValue),K&&(this._maskService.hiddenInput=K.currentValue),ee&&(this._maskService.showMaskTyped=ee.currentValue),ae&&(this._maskService.placeHolderCharacter=ae.currentValue),Q&&(this._maskService.shownMaskExpression=Q.currentValue),j&&(this._maskService.showTemplate=j.currentValue),k&&(this._maskService.clearIfNotMatch=k.currentValue),G&&(this._maskService.validation=G.currentValue),ie&&(this._maskService.separatorLimit=ie.currentValue),ne&&(this._maskService.allowNegativeNumbers=ne.currentValue,this._maskService.allowNegativeNumbers&&(this._maskService.maskSpecialCharacters=this._maskService.maskSpecialCharacters.filter(ce=>"-"!==ce))),q&&(this._maskService.leadZeroDateTime=q.currentValue),oe&&(this._maskService.triggerOnMaskChange=oe.currentValue),this._applyMask()}validate({value:C}){if(!this._maskService.validation||!this._maskValue)return null;if(this._maskService.ipError)return this._createValidationError(C);if(this._maskService.cpfCnpjError)return this._createValidationError(C);if(this._maskValue.startsWith("separator")||m.includes(this._maskValue)||this._maskService.clearIfNotMatch)return null;if(h.includes(this._maskValue))return this._validateTime(C);if(C&&C.toString().length>=1){let I=0;for(const g in this._maskService.maskAvailablePatterns)if(this._maskService.maskAvailablePatterns[g].optional&&(this._maskValue.indexOf(g)!==this._maskValue.lastIndexOf(g)?I+=this._maskValue.split("").filter(L=>L===g).join("").length:-1!==this._maskValue.indexOf(g)&&I++,-1!==this._maskValue.indexOf(g)&&C.toString().length>=this._maskValue.indexOf(g)||I===this._maskValue.length))return null;if(1===this._maskValue.indexOf("{")&&C.toString().length===this._maskValue.length+Number(this._maskValue.split("{")[1].split("}")[0])-4||1===this._maskValue.indexOf("*")||1===this._maskValue.indexOf("?"))return null;if(this._maskValue.indexOf("*")>1&&C.toString().length<this._maskValue.indexOf("*")||this._maskValue.indexOf("?")>1&&C.toString().length<this._maskValue.indexOf("?")||1===this._maskValue.indexOf("{"))return this._createValidationError(C);if(-1===this._maskValue.indexOf("*")||-1===this._maskValue.indexOf("?")){const g=this._maskService.dropSpecialCharacters?this._maskValue.length-this._maskService.checkSpecialCharAmount(this._maskValue)-I:this._maskValue.length-I;if(C.toString().length<g)return this._createValidationError(C)}}return C&&this.maskFilled.emit(),null}onPaste(){this._justPasted=!0}onModelChange(C){(""===C||null==C)&&this._maskService.actualValue&&(this._maskService.actualValue=this._maskService.getActualValue(""))}onInput(C){const I=C.target;if(this._inputValue=I.value,this._setMask(),!this._maskValue)return void this.onChange(I.value);const g=1===I.selectionStart?I.selectionStart+this._maskService.prefix.length:I.selectionStart;let B=0,L=!1;if(this._maskService.applyValueChanges(g,this._justPasted,"Backspace"===this._code||"Delete"===this._code,(Y,X)=>{this._justPasted=!1,B=Y,L=X}),this._getActiveElement()!==I)return;this._position=1===this._position&&1===this._inputValue.length?null:this._position;let V=this._position?this._inputValue.length+g+B:g+("Backspace"!==this._code||L?B:0);V>this._getActualInputLength()&&(V=this._getActualInputLength()),V<0&&(V=0),I.setSelectionRange(V,V),this._position=null}onBlur(){this._maskValue&&this._maskService.clearIfNotMatchFn(),this.onTouch()}onClick(C){if(!this._maskValue)return;const I=C.target;null!==I&&null!==I.selectionStart&&I.selectionStart===I.selectionEnd&&I.selectionStart>this._maskService.prefix.length&&38!==C.keyCode&&this._maskService.showMaskTyped&&(this._maskService.maskIsShown=this._maskService.showMaskInInput(),I.setSelectionRange&&this._maskService.prefix+this._maskService.maskIsShown===I.value?(I.focus(),I.setSelectionRange(0,0)):I.selectionStart>this._maskService.actualValue.length&&I.setSelectionRange(this._maskService.actualValue.length,this._maskService.actualValue.length));const L=I.value&&I.value!==this._maskService.prefix?I.value:this._maskService.prefix+this._maskService.maskIsShown;I.value!==L&&(I.value=L),(I.selectionStart||I.selectionEnd)<=this._maskService.prefix.length?I.selectionStart=this._maskService.prefix.length:I.selectionEnd>this._getActualInputLength()&&(I.selectionEnd=this._getActualInputLength())}onKeyDown(C){if(!this._maskValue)return;this._code=C.code?C.code:C.key;const I=C.target;if(this._inputValue=I.value,this._setMask(),38===C.keyCode&&C.preventDefault(),37===C.keyCode||8===C.keyCode||46===C.keyCode){if(8===C.keyCode&&0===I.value.length&&(I.selectionStart=I.selectionEnd),8===C.keyCode&&0!==I.selectionStart)if(this.specialCharacters=this.specialCharacters?.length?this.specialCharacters:this._config.specialCharacters,this.prefix.length>1&&I.selectionStart<=this.prefix.length)I.setSelectionRange(this.prefix.length,I.selectionEnd);else if(this._inputValue.length!==I.selectionStart&&1!==I.selectionStart)for(;this.specialCharacters.includes(this._inputValue[I.selectionStart-1].toString())&&
1(this.prefix.length>=1&&I.selectionStart>this.prefix.length||0===this.prefix.length);)I.setSelectionRange(I.selectionStart-1,I.selectionEnd);this.checkSelectionOnDeletion(I),this._maskService.prefix.length&&I.selectionStart<=this._maskService.prefix.length&&I.selectionEnd<=this._maskService.prefix.length&&C.preventDefault(),8===C.keyCode&&!I.readOnly&&0===I.selectionStart&&I.selectionEnd===I.value.length&&0!==I.value.length&&(this._position=this._maskService.prefix?this._maskService.prefix.length:0,this._maskService.applyMask(this._maskService.prefix,this._maskService.maskExpression,this._position))}this.suffix&&this.suffix.length>1&&this._inputValue.length-this.suffix.length<I.selectionStart?I.setSelectionRange(this._inputValue.length-this.suffix.length,this._inputValue.length):(65===C.keyCode&&C.ctrlKey||65===C.keyCode&&C.metaKey)&&(I.setSelectionRange(0,this._getActualInputLength()),C.preventDefault()),this._maskService.selStart=I.selectionStart,this._maskService.selEnd=I.selectionEnd}writeValue(C){var I=this;return(0,t.Z)(function*(){"object"==typeof C&&null!==C&&"value"in C&&("disable"in C&&I.setDisabledState(Boolean(C.disable)),C=C.value),("number"==typeof C||I._maskValue.startsWith("separator"))&&(C=I._maskService.numberToString(C),Array.isArray(I.decimalMarker)||(C="."!==I.decimalMarker?C.replace(".",I.decimalMarker):C),I._maskService.isNumberValue=!0),"string"!=typeof C&&(C=""),I._inputValue=C,I._setMask(),C&&I._maskService.maskExpression||I._maskService.maskExpression&&(I._maskService.prefix||I._maskService.showMaskTyped)?(I._maskService.writingValue=!0,I._maskService.formElementProperty=["value",I._maskService.applyMask(C,I._maskService.maskExpression)],I._maskService.writingValue=!1):I._maskService.formElementProperty=["value",C],I._inputValue=C})()}registerOnChange(C){this.onChange=C,this._maskService.onChange=this.onChange}registerOnTouched(C){this.onTouch=C}_getActiveElement(C=this.document){const I=C?.activeElement?.shadowRoot;return I?.activeElement?this._getActiveElement(I):C.activeElement}checkSelectionOnDeletion(C){C.selectionStart=Math.min(Math.max(this.prefix.length,C.selectionStart),this._inputValue.length-this.suffix.length),C.selectionEnd=Math.min(Math.max(this.prefix.length,C.selectionEnd),this._inputValue.length-this.suffix.length)}setDisabledState(C){this._maskService.formElementProperty=["disabled",C]}_repeatPatternSymbols(C){return C.match(/{[0-9]+}/)&&C.split("").reduce((I,g,B)=>{if(this._start="{"===g?B:this._start,"}"!==g)return this._maskService._findSpecialChar(g)?I+g:I;this._end=B;const L=Number(C.slice(this._start+1,this._end));return I+new Array(L+1).join(C[this._start-1])},"")||C}_applyMask(){this._maskService.maskExpression=this._repeatPatternSymbols(this._maskValue||""),this._maskService.formElementProperty=["value",this._maskService.applyMask(this._inputValue,this._maskService.maskExpression)]}_validateTime(C){const I=this._maskValue.split("").filter(g=>":"!==g).length;return C&&(0==+C[C.length-1]&&C.length<I||C.length<=I-2)?this._createValidationError(C):null}_getActualInputLength(){return this._maskService.actualValue.length||this._maskService.actualValue.length+this._maskService.prefix.length}_createValidationError(C){return{mask:{requiredMask:this._maskValue,actualValue:C}}}_setMask(){this._maskExpressionArray.length>0&&this._maskExpressionArray.some(C=>{const I=this._maskService.removeMask(this._inputValue)?.length<=this._maskService.removeMask(C)?.length;if(this._inputValue&&I)return this._maskValue=C,this.maskExpression=C,this._maskService.maskExpression=C,I;this._maskValue=this._maskExpressionArray[this._maskExpressionArray.length-1],this.maskExpression=this._maskExpressionArray[this._maskExpressionArray.length-1],this._maskService.maskExpression=this._maskExpressionArray[this._maskExpressionArray.length-1]})}}return D.\u0275fac=function(C){return new(C||D)(n.\u0275\u0275directiveInject(i.K0),n.\u0275\u0275directiveInject(v),n.\u0275\u0275directiveInject(d))},D.\u0275dir=n.\u0275\u0275defineDirective({type:D,selectors:[["input","mask",""],["textarea","mask",""]],hostBindings:function(C,I){1&C&&n.\u0275\u0275listener("paste",function(){return I.onPaste()})("ngModelChange",function(B){return I.onModelChange(B)})("input",function(B){return I.onInput(B)})("blur",function(){return I.onBlur()})("click",function(B){return I.onClick(B)})("keydown",function(B){return I.onKeyDown(B)})},inputs:{maskExpression:["mask","maskExpression"],specialCharacters:"specialCharacters",patterns:"patterns",prefix:"prefix",suffix:"suffix",thous
1andSeparator:"thousandSeparator",decimalMarker:"decimalMarker",dropSpecialCharacters:"dropSpecialCharacters",hiddenInput:"hiddenInput",showMaskTyped:"showMaskTyped",placeHolderCharacter:"placeHolderCharacter",shownMaskExpression:"shownMaskExpression",showTemplate:"showTemplate",clearIfNotMatch:"clearIfNotMatch",validation:"validation",separatorLimit:"separatorLimit",allowNegativeNumbers:"allowNegativeNumbers",leadZeroDateTime:"leadZeroDateTime",triggerOnMaskChange:"triggerOnMaskChange"},outputs:{maskFilled:"maskFilled"},exportAs:["mask","ngxMask"],features:[n.\u0275\u0275ProvidersFeature([{provide:o.JU,useExisting:(0,n.forwardRef)(()=>D),multi:!0},{provide:o.Cf,useExisting:(0,n.forwardRef)(()=>D),multi:!0},v]),n.\u0275\u0275NgOnChangesFeature]}),D})();function b(D,l){return l instanceof Function?{...D,...l()}:{...D,...l}}let M=(()=>{class D{static forRoot(C){return{ngModule:D,providers:[{provide:r,useValue:C},{provide:a,useValue:p},{provide:d,useFactory:b,deps:[a,r]},_]}}static forChild(){return{ngModule:D}}}return D.\u0275fac=function(C){return new(C||D)},D.\u0275mod=n.\u0275\u0275defineNgModule({type:D}),D.\u0275inj=n.\u0275\u0275defineInjector({}),D})();const P=typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{};P.KeyboardEvent||(P.KeyboardEvent=function(D,l){})},28648:(R,c,e)=>{"use strict";e.d(c,{JX:()=>I,_s:()=>b});var t=e(94650),n=e(36895);class E{constructor(){this.change=new t.EventEmitter,this.instances={},this.DEFAULT_ID="DEFAULT_PAGINATION_ID"}defaultId(){return this.DEFAULT_ID}register(B){return null==B.id&&(B.id=this.DEFAULT_ID),this.instances[B.id]?this.updateInstance(B):(this.instances[B.id]=B,!0)}updateInstance(B){let L=!1;for(let V in this.instances[B.id])B[V]!==this.instances[B.id][V]&&(this.instances[B.id][V]=B[V],L=!0);return L}getCurrentPage(B){return this.instances[B]?this.instances[B].currentPage:1}setCurrentPage(B,L){if(this.instances[B]){let V=this.instances[B];L<=Math.ceil(V.totalItems/V.itemsPerPage)&&1<=L&&(this.instances[B].currentPage=L,this.change.emit(B))}}setTotalItems(B,L){this.instances[B]&&0<=L&&(this.instances[B].totalItems=L,this.change.emit(B))}setItemsPerPage(B,L){this.instances[B]&&(this.instances[B].itemsPerPage=L,this.change.emit(B))}getInstance(B=this.DEFAULT_ID){return this.instances[B]?this.clone(this.instances[B]):{}}clone(B){var L={};for(var V in B)B.hasOwnProperty(V)&&(L[V]=B[V]);return L}}const O=Number.MAX_SAFE_INTEGER;let b=(()=>{class g{constructor(L){this.service=L,this.state={}}transform(L,V){if(!(L instanceof Array)){let j=V.id||this.service.defaultId();return this.state[j]?this.state[j].slice:L}let K,ee,Y=V.totalItems&&V.totalItems!==L.length,X=this.createInstance(L,V),te=X.id,ae=X.itemsPerPage,Q=this.service.register(X);if(!Y&&L instanceof Array){if(ae=+ae||O,K=(X.currentPage-1)*ae,ee=K+ae,this.stateIsIdentical(te,L,K,ee))return this.state[te].slice;{let k=L.slice(K,ee);return this.saveState(te,L,k,K,ee),this.service.change.emit(te),k}}return Q&&this.service.change.emit(te),this.saveState(te,L,L,K,ee),L}createInstance(L,V){return this.checkConfig(V),{id:null!=V.id?V.id:this.service.defaultId(),itemsPerPage:+V.itemsPerPage||0,currentPage:+V.currentPage||1,totalItems:+V.totalItems||L.length}}checkConfig(L){const Y=["itemsPerPage","currentPage"].filter(X=>!(X in L));if(0<Y.length)throw new Error(`PaginatePipe: Argument is missing the following required properties: ${Y.join(", ")}`)}saveState(L,V,Y,X,te){this.state[L]={collection:V,size:V.length,slice:Y,start:X,end:te}}stateIsIdentical(L,V,Y,X){let te=this.state[L];return!(!te||te.size!==V.length||te.start!==Y||te.end!==X)&&te.slice.every((ee,ae)=>ee===V[Y+ae])}}return g.\u0275fac=function(L){return new(L||g)(t.\u0275\u0275directiveInject(E,16))},g.\u0275pipe=t.\u0275\u0275definePipe({name:"paginate",type:g,pure:!1}),g})(),I=(()=>{class g{}return g.\u0275fac=function(L){return new(L||g)},g.\u0275mod=t.\u0275\u0275defineNgModule({type:g}),g.\u0275inj=t.\u0275\u0275defineInjector({providers:[E],imports:[[n.ez]]}),g})()},48568:(R,c,e)=>{"use strict";e.d(c,{S:()=>h,o:()=>p});var t=e(94650),n=e(24006),o=e(36895);function i(m,_){if(1&m&&(t.\u0275\u0275elementStart(0,"label",2)(1,"span",3),t.\u0275\u0275text(2),t.\u0275\u0275elementEnd(),t.\u0275\u0275elementStart(3,"span",4),t.\u0275\u0275text(4),t.\u0275\u0275elementEnd()()),2&m){const v=t.\u0275\u0275nextContext();t.\u0275\u0275advance(1),t.\u0275\u0275styleProp("color",v.getColor("checkedTextColor")),t.\u0275\u0275attribute("aria-label",v.checkedLabel),t.\u0275\u0275advance(1),t.\u0275\u0275textInterpolate(v.checkedLabel),t.\u0275\u0275advance(1),t.\u0275\u0275styleProp("color",v.getColor("uncheckedTextColor")),t.\u0275\u0275attribute("aria-label",v.uncheckedLabel),t.\u0275\u0275advance(1),t.\u0275\u0275textInterpolate(v.uncheckedLabel)}}const d=["*"],r=new t.InjectionToken("UI_SWITCH_OPTIONS"),a={provide:n.JU,useExisting:(0,t.forwardRef)(()=>p),multi:!0};let p=(()=>{class m{constructor(v={},E){this.cdr=E,this.change=new t.EventEmitter,this.changeEvent=ne
1w t.EventEmitter,this.valueChange=new t.EventEmitter,this.onTouchedCallback=O=>{},this.onChangeCallback=O=>{},this.size=v&&v.size||"medium",this.color=v&&v.color,this.switchOffColor=v&&v.switchOffColor,this.switchColor=v&&v.switchColor,this.defaultBgColor=v&&v.defaultBgColor,this.defaultBoColor=v&&v.defaultBoColor,this.checkedLabel=v&&v.checkedLabel,this.uncheckedLabel=v&&v.uncheckedLabel,this.checkedTextColor=v&&v.checkedTextColor,this.uncheckedTextColor=v&&v.uncheckedTextColor}set checked(v){this._checked=!1!==v}get checked(){return this._checked}set disabled(v){this._disabled=!1!==v}get disabled(){return this._disabled}set reverse(v){this._reverse=!1!==v}get reverse(){return this._reverse}set loading(v){this._loading=!1!==v}get loading(){return this._loading}getColor(v=""){return"borderColor"===v?this.defaultBoColor:"switchColor"===v?this.reverse?this.checked&&this.switchOffColor||this.switchColor:this.checked?this.switchColor:this.switchOffColor||this.switchColor:"checkedTextColor"===v?this.reverse?this.uncheckedTextColor:this.checkedTextColor:"uncheckedTextColor"===v?this.reverse?this.checkedTextColor:this.uncheckedTextColor:this.reverse?this.checked?this.defaultBgColor:this.color:this.checked?this.color:this.defaultBgColor}onClick(v){this.disabled||(this.checked=!this.checked,this.change.emit(this.checked),this.valueChange.emit(this.checked),this.changeEvent.emit(v),this.onChangeCallback(this.checked),this.onTouchedCallback(this.checked),this.cdr.markForCheck())}onToggle(v){this.disabled||(this.beforeChange?this._beforeChange=this.beforeChange.subscribe(E=>{E&&this.onClick(v)}):this.onClick(v))}writeValue(v){v!==this.checked&&(this.checked=!!v),this.onChangeCallback(this.checked),this.cdr&&this.cdr.markForCheck()}registerOnChange(v){this.onChangeCallback=v}registerOnTouched(v){this.onTouchedCallback=v}setDisabledState(v){this.disabled=v}ngOnDestroy(){this._beforeChange&&this._beforeChange.unsubscribe()}}return m.\u0275fac=function(v){return new(v||m)(t.\u0275\u0275directiveInject(r,8),t.\u0275\u0275directiveInject(t.ChangeDetectorRef))},m.\u0275cmp=t.\u0275\u0275defineComponent({type:m,selectors:[["ui-switch"]],hostBindings:function(v,E){1&v&&t.\u0275\u0275listener("click",function(b){return E.onToggle(b)})},inputs:{size:"size",color:"color",switchOffColor:"switchOffColor",switchColor:"switchColor",defaultBgColor:"defaultBgColor",defaultBoColor:"defaultBoColor",checkedLabel:"checkedLabel",uncheckedLabel:"uncheckedLabel",checkedTextColor:"checkedTextColor",uncheckedTextColor:"uncheckedTextColor",beforeChange:"beforeChange",ariaLabel:"ariaLabel",checked:"checked",disabled:"disabled",reverse:"reverse",loading:"loading"},outputs:{change:"change",changeEvent:"changeEvent",valueChange:"valueChange"},features:[t.\u0275\u0275ProvidersFeature([a])],ngContentSelectors:d,decls:4,vars:21,consts:[["type","button","role","switch",1,"switch"],["class","switch-pane",4,"ngIf"],[1,"switch-pane"],[1,"switch-label-checked"],[1,"switch-label-unchecked"]],template:function(v,E){1&v&&(t.\u0275\u0275projectionDef(),t.\u0275\u0275elementStart(0,"button",0),t.\u0275\u0275template(1,i,5,8,"label",1),t.\u0275\u0275elementStart(2,"small"),t.\u0275\u0275projection(3),t.\u0275\u0275elementEnd()()),2&v&&(t.\u0275\u0275styleProp("background-color",E.getColor())("border-color",E.getColor("borderColor")),t.\u0275\u0275classProp("checked",E.checked)("disabled",E.disabled)("loading",E.loading)("switch-large","large"===E.size)("switch-medium","medium"===E.size)("switch-small","small"===E.size),t.\u0275\u0275attribute("aria-checked",E.checked)("aria-label",E.ariaLabel),t.\u0275\u0275advance(1),t.\u0275\u0275property("ngIf",E.checkedLabel||E.uncheckedLabel),t.\u0275\u0275advance(1),t.\u0275\u0275styleProp("background",E.getColor("switchColor")))},dependencies:[o.O5],encapsulation:2}),m})(),h=(()=>{class m{static forRoot(v){return{ngModule:m,providers:[{provide:r,useValue:v||{}}]}}}return m.\u0275fac=function(v){return new(v||m)},m.\u0275mod=t.\u0275\u0275defineNgModule({type:m}),m.\u0275inj=t.\u0275\u0275defineInjector({imports:[o.ez,n.u5,n.u5]}),m})()}},R=>{R(R.s=46098)}]);
Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.