globalThis.$localize=Object.assign(globalThis.$localize||{},{locale:"en"});"use strict";(function(global){global.ng=global.ng||{};global.ng.common=global.ng.common||{};global.ng.common.locales=global.ng.common.locales||{};const u=undefined;function plural(val){const n=val,i=Math.floor(Math.abs(val)),v=val.toString().replace(/^[^.]*\.?/,"").length;if(i===1&&v===0)return 1;return 5}global.ng.common.locales["en"]=["en",[["a","p"],["AM","PM"],u],[["AM","PM"],u,u],[["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"]],u,[["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"]],u,[["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}",u,"{1} 'at' {0}",u],[".",",",";","%","+","-","E","\xD7","\u2030","\u221E","NaN",":"],["#,##0.###","#,##0%","\xA4#,##0.00","#E0"],"USD","$","US Dollar",{},"ltr",plural,[[["mi","n","in the morning","in the afternoon","in the evening","at night"],["midnight","noon","in the morning","in the afternoon","in the evening","at night"],u],[["midnight","noon","morning","afternoon","evening","night"],u,u],["00:00","12:00",["06:00","12:00"],["12:00","18:00"],["18:00","21:00"],["21:00","06:00"]]]]})(typeof globalThis!=="undefined"&&globalThis||typeof global!=="undefined"&&global||typeof window!=="undefined"&&window);;(self.webpackChunkng_orcid=self.webpackChunkng_orcid||[]).push([[179],{59456:(Qe,he,s)=>{"use strict";s.d(he,{$f:()=>A,Xf:()=>b,ZB:()=>r,Zs:()=>f,mE:()=>p,y5:()=>C});var a=s(34221);const r={windowRef:()=>window,documentRef:()=>document};function b(m){!function D(m){window.performance&&window.performance.mark(a.kF.navigationStartPrefix+m)}(m)}function A(m){return m.split("?")[0]}function p(m){if(window.performance){let _;return window.performance.mark(a.kF.navigationEndPrefix+m),window.performance.measure(m,a.kF.navigationStartPrefix+m,a.kF.navigationEndPrefix+m),window.performance.getEntriesByName(m).forEach(g=>{_=g.duration}),function E(m){window.performance&&(window.performance.clearMarks(a.kF.navigationStartPrefix+m),window.performance.clearMarks(a.kF.navigationEndPrefix+m),window.performance.clearMeasures(m))}(m),_}}function f(m){return m.memberName+" - "+m.clientName}function C(m){(function c(){const m=r.windowRef();return m.dataLayer=m.dataLayer||[],m.dataLayer})().push(m)}},17217:(Qe,he,s)=>{"use strict";s.d(he,{q:()=>b});var a=s(96814),r=s(65879);let b=(()=>{var A;class D{}return(A=D).\u0275fac=function(E){return new(E||A)},A.\u0275mod=r.oAB({type:A}),A.\u0275inj=r.cJS({imports:[a.ez]}),D})()},71142:(Qe,he,s)=>{"use strict";s.d(he,{iT:()=>p,tu:()=>a.t});var a=s(6319),r=s(96814),b=s(62831),A=s(71088),D=s(65879);let p=(()=>{var E;class f{}return(E=f).\u0275fac=function(C){return new(C||E)},E.\u0275mod=D.oAB({type:E}),E.\u0275inj=D.cJS({imports:[r.ez,b.ud,A.xu]}),f})()},6319:(Qe,he,s)=>{"use strict";s.d(he,{t:()=>C});var a=s(71088),r=s(65879),b=s(88165),A=s(45125),D=s(97734),p=s(34221),E=s(6666);const f=/((CPU[ +]OS|iPhone[ +]OS|CPU[ +]iPhone|CPU IPhone OS)[ +]+(13[_.]4|13[_.]([5-9]|\d{2,})|13[_.]7|13[_.]([8-9]|\d{2,})|(1[4-9]|[2-9]\d|\d{3,})[_.]\d+|14[_.]0|14[_.]([1-9]|\d{2,})|14[_.]4|14[_.]([5-9]|\d{2,})|14[_.]8|14[_.](9|\d{2,})|(1[5-9]|[2-9]\d|\d{3,})[_.]\d+|15[_.]0|15[_.]([1-9]|\d{2,})|(1[6-9]|[2-9]\d|\d{3,})[_.]\d+|16[_.]0|16[_.]([1-9]|\d{2,})|(1[7-9]|[2-9]\d|\d{3,})[_.]\d+|17[_.]0|17[_.]([1-9]|\d{2,})|(1[8-9]|[2-9]\d|\d{3,})[_.]\d+)(?:[_.]\d+)?)|((?:Chrome).*OPR\/(74|(7[5-9]|[8-9]\d|\d{3,}))\.\d+\.\d+)|(Edge\/(80|(8[1-9]|9\d|\d{3,})|83|(8[4-9]|9\d|\d{3,}))(?:\.\d+)?)|((Chromium|Chrome)\/(80|(8[1-9]|9\d|\d{3,})|83|(8[4-9]|9\d|\d{3,}))\.\d+(?:\.\d+)?)|(Version\/(13\.1|13\.([2-9]|\d{2,})|(1[4-9]|[2-9]\d|\d{3,})\.\d+|14\.0|14\.([1-9]|\d{2,})|(1[5-9]|[2-9]\d|\d{3,})\.\d+|15\.0|15\.([1-9]|\d{2,})|(1[6-9]|[2-9]\d|\d{3,})\.\d+|16\.0|16\.([1-9]|\d{2,})|(1[7-9]|[2-9]\d|\d{3,})\.\d+|17\.0|17\.([1-9]|\d{2,})|(1[8-9]|[2-9]\d|\d{3,})\.\d+)(?:\.\d+)? Safari\/)|(Firefox\/(78|(79|[8-9]\d|\d{3,}))\.\d+\.\d+)|(Firefox\/(78|(79|[8-9]\d|\d{3,}))\.\d+(pre|[ab]\d+[a-z]*)?)/;var c=s(62831);let C=(()=>{var m;class _{constructor(P,U,d,q,j,K){this.locale=P,this._breakpointObserver=U,this._router=q,this.window=K,this.previouslyHadQueryParameters=!1,this.platform={unsupportedBrowser:!1,desktop:!1,tabletOrHandset:!1,tablet:!1,handset:!1,edge:!1,ie:!1,firefox:!1,safary:!1,columns4:!1,columns8:!1,columns12:!1,rtl:!1,ltr:!0,queryParameters:this.getQueryParams(),screenDirection:"ltr",hasOauthParameters:!1,social:!1,institutional:!1,currentRoute:"",reactivation:!1,reactivationCode:"",summaryScreen:!1},this.platformSubject=new A.X(this.platform),this.platform.rtl="ar"===P,this.platform.ltr=!this.platform.rtl,this.platform.screenDirection=this.platform.rtl?"rtl":"ltr",f.test(navigator.userAgent)||(this.platform.unsupportedBrowser=!0),this.platform.firefox=j.FIREFOX,this.platform.safary=j.SAFARI,this.platform.ie=j.TRIDENT,this.platform.edge=j.EDGE,this.platformSubject.next(this.platform),d.queryParams.pipe((0,D.h)(L=>Object.keys(L).length>0||this.previouslyHadQueryParameters)).subscribe(L=>{this.previouslyHadQueryParameters=!0,this.platform.queryParameters=L;const w=this.hasOauthParameters(),k=this.updateSocialState(L),X=this.updatesInstitutionalState(L);(this.platform.hasOauthParameters!==w||this.platform.social!==k||this.platform.institutional!==X)&&this.platformSubject.next(this.platform)}),q.events.subscribe(L=>{L instanceof b.m2&&(this.platform.currentRoute=L.url,this.platformSubject.next(this.platform))}),this._breakpointObserver.observe([a.u3.Handset]).subscribe(L=>{this.platform.handset=!!L.matches,this.platformSubject.next(this.platform)}),this._breakpointObserver.observe([a.u3.Tablet]).subscribe(L=>{this.platform.tablet=!!L.matches,this.platformSubject.next(this.platform)}),this._breakpointObserver.observe([a.u3.Handset,a.u3.Tablet]).subscribe(L=>{L.matches?(this.platform.tabletOrHandset=!0,this.platform.desktop=!1):(this.platform.tabletOrHandset=!1,this.platform.desktop=!0),this.platformSubject.next(this.platform)}),this._breakpointObserver.observe(["(min-width: 839.99px)","(min-width: 599.99px)"]).subscribe(L=>{L.breakpoints["(min-width: 839.99px)"]?(this.platform.columns8=!1,this.platform.columns12=!0,this.platform.columns4=!1):L.breakpoints["(min-width: 599.99px)"]?(this.platform.columns8=!0,this.platform.columns12=!1,this.platform.columns4=!1):(this.platform.columns8=!1,this.platform.columns12=!1,this.platform.columns4=!0),this.platformSubject.next(this.platform)})}updateOauthState(P){const U=this.platform.hasOauthParameters;return this.platform.queryParameters=P,this.platform.hasOauthParameters=!!(P.hasOwnProperty("oauth")||P.hasOwnProperty("Oauth")||P.hasOwnProperty("client_id")),U}updateSocialState(P){const U=this.platform.social;return this.platform.social=!!(P.hasOwnProperty("providerId")&&("facebook"===P.providerId||"google"===P.providerId)||this.window.location.pathname.toLowerCase().indexOf(p.NE.social)>=0),U}updatesInstitutionalState(P){const U=this.platform.social;return this.platform.institutional=!!(P.hasOwnProperty("providerId")&&P.providerId&&"facebook"!==P.providerId&&"google"!==P.providerId||this._router.url.indexOf(p.NE.institutional)>=0),U}get(){return this.platform={...this.platform,hasOauthParameters:this.hasOauthParameters(),social:this.window.location.pathname.toLowerCase().indexOf("social-linking")>=0,institutional:this.window.location.pathname.toLowerCase().indexOf("institutional-linking")>=0||this.window.location.pathname.toLowerCase().indexOf("institutional-signin")>=0,reactivation:this.window.location.pathname.toLowerCase().indexOf("reactivation")>=0,reactivationCode:this.getReactivationCode(),summaryScreen:this.window.location.pathname.endsWith("/summary")},this.platformSubject.next(this.platform),this.platformSubject.asObservable()}remove(){this.platform.social=!1,this.platform.institutional=!1,this.platformSubject.next(this.platform)}hasOauthParameters(){const P=this.platform.queryParameters;return!(!Object.keys(P).length||!(P.hasOwnProperty("client_id")||P.hasOwnProperty("redirect_uri")||P.hasOwnProperty("response_type")))}getQueryParams(){const P={};return new URLSearchParams(this.window.location.search).forEach((U,d)=>P[d]=U),P}getCurrentRoute(){return this._router.url}getReactivationCode(){const P=window.location.href.split("/");return P[P.length-1]}}return(m=_).\u0275fac=function(P){return new(P||m)(r.LFG(r.soG),r.LFG(a.Yg),r.LFG(b.gz),r.LFG(b.F0),r.LFG(c.t4),r.LFG(E.m9))},m.\u0275prov=r.Yz7({token:m,factory:m.\u0275fac,providedIn:"root"}),_})()},79884:(Qe,he,s)=>{"use strict";s.d(he,{L:()=>pe});var a=s(87845),r=s(56223),b=s(6990),D=s(72079),p=s(88419),E=s(19352),f=s(65879),c=s(27599),C=s(80528),m=s(71142);const _=["countrySelect"];function g($e,Je){1&$e&&f._UZ(0,"div",32)}function P($e,Je){if(1&$e&&(f.ynx(0),f.TgZ(1,"mat-option",37),f._uU(2),f.qZA(),f.BQk()),2&$e){const qe=Je.$implicit;f.xp6(1),f.Q6J("value",qe.value),f.xp6(1),f.hij(" ",qe.key," ")}}function U($e,Je){if(1&$e&&(f.TgZ(0,"mat-hint"),f._UZ(1,"app-source-hit",38),f.qZA()),2&$e){const qe=f.oxw(2).$implicit,it=f.oxw(2);f.xp6(1),f.Q6J("createdDate",it.countriesMap[qe.putCode].createdDate)("source",qe.sourceName||qe.source)("assertion",qe.assertionOriginName||qe.assertionOriginOrcid)}}const d=function($e){return{"two-line-hint":$e}};function q($e,Je){if(1&$e&&(f.TgZ(0,"mat-form-field",33)(1,"mat-select",34,35),f.YNc(3,P,3,2,"ng-container",36),f.ALo(4,"sortBy"),f.qZA(),f.YNc(5,U,2,3,"mat-hint",12),f.qZA()),2&$e){const qe=f.oxw(),it=qe.index,rt=qe.$implicit,tt=f.oxw(2);f.Q6J("ngClass",f.VKq(11,d,tt.isMobile)),f.uIk("id","cy-country-"+it),f.xp6(1),f.MGl("id","cy-country-select-",it,"")("placeholder"," ",tt.ngOrcidCountry,""),f.Q6J("aria-label",tt.ariaLabelSelect),f.xp6(2),f.Q6J("ngForOf",f.Dn7(4,7,tt.countryCodes,"asc","key")),f.xp6(2),f.Q6J("ngIf",rt.putCode.indexOf("new")<0)}}function j($e,Je){if(1&$e&&(f.TgZ(0,"mat-hint"),f._UZ(1,"app-source-hit",38),f.qZA()),2&$e){const qe=f.oxw(2).$implicit,it=f.oxw(2);f.xp6(1),f.Q6J("createdDate",it.countriesMap[qe.putCode].createdDate)("source",qe.sourceName||qe.source)("assertion",qe.assertionOriginName||qe.assertionOriginOrcid)}}const K=function($e){return{"website-input":$e}};function L($e,Je){if(1&$e&&(f.TgZ(0,"mat-form-field",39),f._UZ(1,"input",40,41),f.YNc(3,j,2,3,"mat-hint",12),f.qZA()),2&$e){const qe=f.oxw().$implicit,it=f.oxw(2);f.xp6(1),f.Q6J("readonly",!0)("ngClass",f.VKq(5,K,"rtl"===it.screenDirection))("value",qe.countryName||""),f.uIk("aria-label",it.ariaLabelCountryLocationReadOnly),f.xp6(2),f.Q6J("ngIf",qe.putCode.indexOf("new")<0)}}const w=function($e){return{direction:$e}},k=function($e){return{"no-wrap":$e}};function X($e,Je){if(1&$e){const qe=f.EpF();f.TgZ(0,"div",21),f.YNc(1,g,1,0,"div",22),f.TgZ(2,"div",23)(3,"div",24),f._UZ(4,"img",25),f.YNc(5,q,6,13,"mat-form-field",26),f.YNc(6,L,4,7,"mat-form-field",27),f.qZA(),f.TgZ(7,"div",28),f._UZ(8,"app-visibility-selector",29),f.TgZ(9,"button",30),f.NdJ("click",function(){const tt=f.CHM(qe).$implicit,_t=f.oxw(2);return f.KtG(_t.deleteCountry(tt.putCode))}),f.TgZ(10,"mat-icon",31),f._uU(11,"delete "),f.qZA()()()(),f._UZ(12,"hr",18),f.qZA()}if(2&$e){const qe=Je.$implicit,it=Je.index,rt=f.oxw(2);f.Q6J("ngStyle",f.VKq(8,w,rt.screenDirection))("formGroupName",qe.putCode),f.uIk("id","draggable-"+it),f.xp6(2),f.Q6J("ngClass",f.VKq(10,k,!rt.isMobile)),f.xp6(3),f.Q6J("ngIf",!(qe.source&&qe.source!==rt.id)),f.xp6(1),f.Q6J("ngIf",qe.source&&qe.source!==rt.id),f.xp6(2),f.Q6J("itemTitle",qe.countryName||""),f.xp6(1),f.uIk("aria-label",rt.ariaLabelDelete+" "+(qe.countryName||""))}}function de($e,Je){if(1&$e){const qe=f.EpF();f.ynx(0),f.TgZ(1,"div",8)(2,"h2",16),f.SDv(3,17),f.qZA()(),f._UZ(4,"hr",18),f.TgZ(5,"section",19),f.NdJ("cdkDropListDropped",function(rt){f.CHM(qe);const tt=f.oxw();return f.KtG(tt.drop(rt))}),f.YNc(6,X,13,12,"div",20),f.qZA(),f.BQk()}if(2&$e){const qe=f.oxw();f.xp6(6),f.Q6J("ngForOf",qe.countries)}}function re($e,Je){1&$e&&(f.ynx(0),f.SDv(1,42),f.BQk())}function be($e,Je){1&$e&&(f.ynx(0),f.SDv(1,43),f.BQk())}let pe=(()=>{var $e;class Je{constructor(it,rt,tt,_t){this.dialogRef=it,this._recordCountryService=rt,this._changeDetectorRef=tt,this._platform=_t,this.ariaLabelSave="Save changes to Countries",this.ariaLabelCancel="Cancel changes and close Countries",this.ariaLabelDelete="Delete Country or location",this.ariaLabelSelect="Select country or location",this.ariaLabelCountryLocationReadOnly="Select country or location",this.ariaLabelClose="Close Countries",this.$destroy=new D.xQ,this.addedEmailsCount=0,this.loadingCountries=!0,this.loadingCountryCodes=!0,this.ngOrcidCountry="Select a country or location",this.countryOrLocationLabel="Country or location"}ngOnInit(){this._recordCountryService.getAddresses().pipe((0,p.P)()).subscribe(it=>{this.defaultVisibility=it.visibility.visibility,this.originalBackendCountries=(0,b.cloneDeep)(it),this.countries=this.originalBackendCountries.addresses,this.countriesMap={},this.originalBackendCountries.addresses.map(rt=>this.countriesMap[rt.putCode]=rt),this.backendJsonToForm(this.originalBackendCountries),this.loadingCountries=!1}),this._recordCountryService.getCountryCodes().pipe((0,p.P)()).subscribe(it=>{this.countryCodes=it,this.loadingCountryCodes=!1}),this._platform.get().pipe((0,E.R)(this.$destroy)).subscribe(it=>{this.isMobile=it.columns4||it.columns8,this.screenDirection=it.screenDirection})}backendJsonToForm(it){const tt={};it.addresses.forEach(_t=>{tt[_t.putCode]=new r.nJ({country:new r.p4(_t.iso2Country.value),visibility:new r.p4(_t.visibility.visibility,{})})}),this.countryForm=new r.nJ(tt)}formToBackend(it){const rt={errors:[],addresses:[],visibility:this.originalBackendCountries.visibility};return this._changeDetectorRef.detach(),this.countries.reverse(),this.countries.map(tt=>tt.putCode).filter(tt=>it.getRawValue()[tt].country).forEach((tt,_t)=>{var ot;const ze=it.getRawValue()[tt].country,Ze=it.getRawValue()[tt].visibility;it.getRawValue()[tt]&&rt.addresses.push({putCode:0===tt.indexOf("new-")?null:tt,countryName:null==(ot=this.countryCodes.find(Ct=>Ct.value===ze))?void 0:ot.key,iso2Country:{value:ze},displayIndex:_t+1,visibility:{visibility:Ze}})}),rt}saveEvent(){this.loadingCountries=!0,this._recordCountryService.postAddresses(this.formToBackend(this.countryForm)).subscribe(it=>{this.closeEvent()})}closeEvent(){this.dialogRef.close()}drop(it){(0,a.bA)(this.countries,it.previousIndex,it.currentIndex)}addCountry(){this.countryForm.addControl("new-"+this.addedEmailsCount,new r.nJ({country:new r.p4,visibility:new r.p4(this.defaultVisibility,{})})),this.countries.push({putCode:"new-"+this.addedEmailsCount,visibility:{visibility:this.defaultVisibility}}),this.addedEmailsCount++,this._changeDetectorRef.detectChanges(),this.inputs.last.focus()}deleteCountry(it){const rt=this.countries.findIndex(tt=>tt.putCode===it);this.countries.splice(rt,1),this.countryForm.removeControl(it)}ngOnDestroy(){this.$destroy.next(!0),this.$destroy.unsubscribe()}}return($e=Je).\u0275fac=function(it){return new(it||$e)(f.Y36(c.hV),f.Y36(C.r),f.Y36(f.sBO),f.Y36(m.tu))},$e.\u0275cmp=f.Xpm({type:$e,selectors:[["app-modal-country"]],viewQuery:function(it,rt){if(1&it&&f.Gf(_,5),2&it){let tt;f.iGM(tt=f.CRH())&&(rt.inputs=tt)}},decls:21,vars:9,consts:function(){let qe,it,rt,tt,_t,ze,Ze;return qe="Countries",it="Save changes",rt="Cancel",tt="Add countries or locations to your ORCID record to highlight where you conduct your research or where your research is focused. You can add as many countries or locations as you want.",_t="My countries/locations",ze="Add a country or location",Ze="Add another country or location",[[3,"loading","noSidebar"],[3,"closeLabel"],qe,["mat-raised-button","","color","primary","id","save-countries-button",3,"click"],it,["mat-stroked-button","","color","primary","id","cancel-countries-button",3,"click"],rt,[1,"container","no-padding",3,"formGroup"],[1,"row"],[1,"col","no-gutters"],[1,"orc-font-body-small"],tt,[4,"ngIf"],["id","add-link",1,"col","add-more","no-gutters",3,"click"],[1,"large-material-icon"],[1,"mat-body-1"],[1,"col","no-gutters","orc-font-body"],_t,[1,"dashed-line"],["id","my-countries","id","country-dropList","cdkDropList","",1,"row","country-list",3,"cdkDropListDropped"],["cdkDrag","","class","row country-box",3,"ngStyle","formGroupName",4,"ngFor","ngForOf"],["cdkDrag","",1,"row","country-box",3,"ngStyle","formGroupName"],["class","row drag-placeholder",4,"cdkDragPlaceholder"],[1,"row","country-input-line",3,"ngClass"],[1,"col","l12","m8","s4","top","no-wrap","no-gutters","input-container"],["cdkDragHandle","","src","./assets/vectors/draggable.svg","aria-label","drag handle"],["appearance","outline","class","mat-form-field-min",3,"ngClass",4,"ngIf"],["appearance","outline","class","mat-form-field-min description read-only",4,"ngIf"],[1,"col","no-wrap","actions-wrapper","no-gutters"],["formControlName","visibility",3,"itemTitle"],["mat-icon-button","",1,"delete-button",3,"click"],[1,"material-icons-outlined","extra-large-material-icon"],[1,"row","drag-placeholder"],["appearance","outline",1,"mat-form-field-min",3,"ngClass"],["formControlName","country",3,"aria-label","id","placeholder"],["countrySelect",""],[4,"ngFor","ngForOf"],[3,"value"],[3,"createdDate","source","assertion"],["appearance","outline",1,"mat-form-field-min","description","read-only"],["matInput","",1,"cy-description-input",3,"readonly","ngClass","value"],["descriptionInput",""],ze,Ze]},template:function(it,rt){1&it&&(f.TgZ(0,"app-modal",0)(1,"app-modal-header",1),f.SDv(2,2),f.qZA(),f.TgZ(3,"app-modal-footer")(4,"button",3),f.NdJ("click",function(){return rt.saveEvent()}),f.SDv(5,4),f.qZA(),f.TgZ(6,"button",5),f.NdJ("click",function(){return rt.closeEvent()}),f.SDv(7,6),f.qZA()(),f.TgZ(8,"div",7)(9,"div",8)(10,"div",9)(11,"p",10),f.SDv(12,11),f.qZA()()(),f.YNc(13,de,7,1,"ng-container",12),f.TgZ(14,"div",8)(15,"a",13),f.NdJ("click",function(){return rt.addCountry()}),f.TgZ(16,"mat-icon",14),f._uU(17,"add_circle_outline"),f.qZA(),f.TgZ(18,"span",15),f.YNc(19,re,2,0,"ng-container",12),f.YNc(20,be,2,0,"ng-container",12),f.qZA()()()()()),2&it&&(f.Q6J("loading",rt.loadingCountries||rt.loadingCountryCodes)("noSidebar",!0),f.xp6(1),f.Q6J("closeLabel",rt.ariaLabelClose),f.xp6(3),f.uIk("aria-label",rt.ariaLabelSave),f.xp6(2),f.uIk("aria-label",rt.ariaLabelCancel),f.xp6(2),f.Q6J("formGroup",rt.countryForm),f.xp6(5),f.Q6J("ngIf",(null==rt.countries?null:rt.countries.length)>0),f.xp6(6),f.Q6J("ngIf",0===(null==rt.countries?null:rt.countries.length)),f.xp6(1),f.Q6J("ngIf",0!==(null==rt.countries?null:rt.countries.length)))},styles:[".country-input-line .mat-form-field-flex{background-color:#fff}[_nghost-%COMP%] mat-form-field mat-icon{color:#bdbdbd}[_nghost-%COMP%] mat-form-field.email-activated mat-icon{color:#a6ce39}",".actions-wrapper[_ngcontent-%COMP%]{flex-wrap:nowrap}.country-list.cdk-drop-list-dragging[_ngcontent-%COMP%] .country-box[_ngcontent-%COMP%]:not(.cdk-drag-placeholder){transition:transform .25s cubic-bezier(0,0,.2,1)}.country-input-line[_ngcontent-%COMP%]{margin-top:10px;margin-bottom:4px}.country-input-line[_ngcontent-%COMP%] img[_ngcontent-%COMP%]{margin-top:6px;cursor:move;z-index:1;margin-inline-start:6px;margin-inline-end:10px}.mat-form-field[_ngcontent-%COMP%]{width:100%;margin-inline-end:16px} .columns-4-or-8 .mat-form-field{width:100%;margin-inline-end:auto}.add-more[_ngcontent-%COMP%]{margin-top:16px}.add-more[_ngcontent-%COMP%] span[_ngcontent-%COMP%]{padding-left:6px} .columns-4-or-8 .country-input-line .input-container{padding-bottom:30px} .columns-4-or-8 .country-input-line .actions-wrapper{padding-bottom:10px;justify-content:space-between} .columns-4-or-8 .actions-wrapper{width:100%}.delete-button[_ngcontent-%COMP%], app-visibility-selector[_ngcontent-%COMP%]{margin-left:16px}.delete-button[_ngcontent-%COMP%]{margin-top:-3px}"]}),Je})()},93643:(Qe,he,s)=>{"use strict";s.d(he,{o:()=>Bt});var a=s(56223),r=s(6990),A=s(72079),D=s(19352),p=s(17927),E=s(88419),f=s(67555),c=s(65879),C=s(27599),m=s(15017),_=s(71142),g=s(45081),P=s(95972);const U=["emailInput"];function d(gt,nt){1>&&(c.TgZ(0,"mat-error"),c.SDv(1,40),c.qZA())}function q(gt,nt){1>&&(c.TgZ(0,"mat-error"),c.SDv(1,41),c.qZA())}function j(gt,nt){1>&&(c.TgZ(0,"mat-error"),c.SDv(1,42),c.qZA())}function K(gt,nt){1>&&(c.TgZ(0,"mat-error"),c.SDv(1,43),c.qZA())}const L=function(gt){return[gt,"email"]};function w(gt,nt){if(1>&&(c.TgZ(0,"mat-form-field",37),c._uU(1,"\n "),c._UZ(2,"input",38),c._uU(3,"\n "),c.TgZ(4,"mat-icon",39),c._uU(5,"verified"),c.qZA(),c._uU(6,"\n "),c.YNc(7,d,2,0,"mat-error",23),c._uU(8,"\n "),c.YNc(9,q,2,0,"mat-error",23),c._uU(10,"\n "),c.YNc(11,j,2,0,"mat-error",23),c._uU(12,"\n\n "),c.YNc(13,K,2,0,"mat-error",23),c._uU(14,"\n "),c.qZA()),2>){const oe=c.oxw(2).$implicit,Ce=c.oxw();c.xp6(2),c.uIk("aria-label",Ce.ariaLabelPrimaryEmail),c.xp6(5),c.Q6J("ngIf",Ce.emailsForm.hasError("required",c.VKq(5,L,oe.putCode))),c.xp6(2),c.Q6J("ngIf",Ce.emailsForm.hasError("duplicated",c.VKq(7,L,oe.putCode))),c.xp6(2),c.Q6J("ngIf",Ce.emailsForm.hasError("email",c.VKq(9,L,oe.putCode))),c.xp6(2),c.Q6J("ngIf",Ce.emailsForm.hasError("backendError",c.VKq(11,L,oe.putCode)))}}function k(gt,nt){if(1>&&(c.TgZ(0,"strong",44),c._uU(1,"\n "),c.TgZ(2,"mat-icon",45),c._uU(3,"verified"),c.qZA(),c._uU(4,"\n "),c.TgZ(5,"span",46),c.SDv(6,47),c.qZA(),c._uU(7),c.qZA()),2>){const oe=c.oxw(2).$implicit,Ce=c.oxw();c.xp6(7),c.hij("\n ",Ce.emailsForm.value[oe.putCode].email,"")}}function X(gt,nt){1>&&(c.TgZ(0,"a",50),c.SDv(1,51),c.qZA())}function de(gt,nt){if(1>){const oe=c.EpF();c.TgZ(0,"a",52),c.NdJ("click",function(){c.CHM(oe);const ve=c.oxw(3).$implicit,xe=c.oxw();return c.KtG(xe.verifyEmail(ve))}),c.SDv(1,53),c.qZA()}}function re(gt,nt){if(1>&&(c.ynx(0),c._uU(1,"\n "),c.YNc(2,X,2,0,"a",48),c._uU(3,"\n "),c.YNc(4,de,2,0,"a",49),c._uU(5,"\n "),c.BQk()),2>){const oe=c.oxw(2).$implicit,Ce=c.oxw();c.xp6(2),c.Q6J("ngIf",Ce.verificationEmailWasSend(oe.putCode)),c.xp6(2),c.Q6J("ngIf",!Ce.verificationEmailWasSend(oe.putCode))}}function be(gt,nt){1>&&(c.TgZ(0,"mat-error",54),c.SDv(1,55),c.qZA())}const pe=function(gt){return{"privacy-selector":gt}},$e=function(gt){return[gt,"visibility"]};function Je(gt,nt){if(1>&&(c.TgZ(0,"div",28),c._uU(1,"\n "),c.TgZ(2,"div",29),c._uU(3,"\n "),c.YNc(4,w,15,13,"mat-form-field",30),c._uU(5,"\n\n "),c.YNc(6,k,8,1,"strong",31),c._uU(7,"\n "),c.qZA(),c._uU(8,"\n "),c.TgZ(9,"div",32),c._uU(10,"\n "),c.TgZ(11,"div",33),c._uU(12,"\n "),c.YNc(13,re,6,2,"ng-container",23),c._uU(14,"\n "),c.qZA(),c._uU(15,"\n "),c.TgZ(16,"div",34),c._uU(17,"\n "),c._UZ(18,"app-visibility-selector",35),c._uU(19,"\n "),c._UZ(20,"div"),c._uU(21,"\n "),c.qZA(),c._uU(22,"\n "),c.qZA(),c._uU(23,"\n "),c.YNc(24,be,2,0,"mat-error",36),c._uU(25,"\n "),c.qZA()),2>){const oe=c.oxw().$implicit,Ce=c.oxw();c.Q6J("formGroupName",oe.putCode),c.xp6(4),c.Q6J("ngIf",!Ce.showEmailAsVerified(oe.putCode)),c.xp6(2),c.Q6J("ngIf",Ce.showEmailAsVerified(oe.putCode)),c.xp6(7),c.Q6J("ngIf",Ce.showNonVerifiedData(oe.putCode)),c.xp6(3),c.Q6J("ngClass",c.VKq(10,pe,!Ce.showNonVerifiedData(oe.putCode))),c.xp6(2),c.Q6J("ariaLabelPrivate",Ce.ariaLabelVisibilityPrimaryEmailPrivate)("ariaLabelPublic",Ce.ariaLabelVisibilityPrimaryEmailPublic)("ariaLabelTrustedParty",Ce.ariaLabelVisibilityPrimaryEmailTrustedParty)("itemTitle",Ce.emailsForm.value[oe.putCode].email),c.xp6(6),c.Q6J("ngIf",Ce.emailsForm.get(c.VKq(12,$e,oe.putCode))&&(Ce.emailsForm.get(c.VKq(14,$e,oe.putCode)).touched||Ce.emailsForm.get(c.VKq(16,$e,oe.putCode)).dirty)&&Ce.emailsForm.hasError("unverified",c.VKq(18,$e,oe.putCode)))}}function qe(gt,nt){if(1>&&(c.ynx(0),c._uU(1,"\n "),c.TgZ(2,"strong",57),c.SDv(3,58),c.qZA(),c._uU(4,"\n\n "),c.TgZ(5,"p"),c._uU(6,"\n "),c.ynx(7),c.SDv(8,59),c.BQk(),c._uU(9,"\n "),c._UZ(10,"br"),c._uU(11,"\n "),c.ynx(12),c.SDv(13,60),c.BQk(),c._uU(14,"\n "),c.qZA(),c._uU(15,"\n "),c.TgZ(16,"p",61),c._uU(17),c.qZA(),c._uU(18,"\n\n "),c.TgZ(19,"p"),c._uU(20,"\n "),c.TgZ(21,"strong"),c.SDv(22,62),c.qZA(),c._uU(23," "),c._UZ(24,"br"),c._uU(25,"\n "),c.ynx(26),c.SDv(27,63),c.BQk(),c._uU(28,"\n "),c.TgZ(29,"a",64),c.SDv(30,65),c.qZA(),c._uU(31,"\n "),c.ynx(32),c.SDv(33,66),c.BQk(),c._uU(34,"\n\n "),c.TgZ(35,"a",67),c.SDv(36,68),c.qZA(),c._uU(37,"\n "),c.qZA(),c._uU(38,"\n "),c.BQk()),2>){const oe=c.oxw(2).$implicit,Ce=c.oxw();c.xp6(17),c.Oqu(oe.value),c.xp6(12),c.uIk("aria-label",Ce.ariaLabelKnowledgeBase),c.xp6(6),c.uIk("aria-label",Ce.ariaLabelKnowledgeSupport)}}function it(gt,nt){if(1>&&(c.ynx(0),c._uU(1,"\n "),c.TgZ(2,"strong",57),c.ynx(3),c.SDv(4,69),c.BQk(),c._uU(5),c.qZA(),c._uU(6,"\n "),c.TgZ(7,"p"),c.SDv(8,70),c.qZA(),c._uU(9,"\n "),c.BQk()),2>){const oe=c.oxw(2).$implicit;c.xp6(5),c.hij("\n ",oe.value,"")}}function rt(gt,nt){if(1>&&(c.TgZ(0,"app-alert-message",56),c._uU(1,"\n "),c.YNc(2,qe,39,3,"ng-container",23),c._uU(3,"\n "),c.YNc(4,it,10,1,"ng-container",23),c._uU(5,"\n "),c.qZA()),2>){const oe=c.oxw().$implicit,Ce=c.oxw();c.xp6(2),c.Q6J("ngIf",!Ce.verificationEmailWasSend(oe.putCode)),c.xp6(2),c.Q6J("ngIf",Ce.verificationEmailWasSend(oe.putCode))}}function tt(gt,nt){if(1>&&(c.ynx(0),c._uU(1,"\n "),c.YNc(2,Je,26,20,"div",26),c._uU(3,"\n "),c.YNc(4,rt,6,2,"app-alert-message",27),c._uU(5,"\n "),c.BQk()),2>){const oe=nt.$implicit,Ce=c.oxw();c.xp6(2),c.Q6J("ngIf",oe.primary),c.xp6(2),c.Q6J("ngIf",oe.primary&&!Ce.showEmailAsVerified(oe.putCode))}}function _t(gt,nt){1>&&(c.TgZ(0,"mat-error"),c.SDv(1,82),c.qZA())}function ze(gt,nt){1>&&(c.TgZ(0,"mat-error"),c.SDv(1,83),c.qZA())}function Ze(gt,nt){1>&&(c.TgZ(0,"mat-error"),c.SDv(1,84),c.qZA())}function ot(gt,nt){1>&&(c.TgZ(0,"mat-error"),c.SDv(1,85),c.qZA())}function Ct(gt,nt){1>&&(c.TgZ(0,"mat-error"),c.SDv(1,86),c.qZA())}const De=function(gt){return{"email-activated":gt}};function ft(gt,nt){if(1>&&(c.TgZ(0,"mat-form-field",79),c._uU(1,"\n "),c._UZ(2,"input",80,81),c._uU(4,"\n "),c.TgZ(5,"mat-icon",39),c._uU(6,"verified"),c.qZA(),c._uU(7,"\n "),c.YNc(8,_t,2,0,"mat-error",23),c._uU(9,"\n "),c.YNc(10,ze,2,0,"mat-error",23),c._uU(11,"\n "),c.YNc(12,Ze,2,0,"mat-error",23),c._uU(13,"\n "),c.YNc(14,ot,2,0,"mat-error",23),c._uU(15,"\n\n "),c.YNc(16,Ct,2,0,"mat-error",23),c._uU(17,"\n "),c.qZA()),2>){const oe=c.oxw(2).$implicit,Ce=c.oxw();c.Q6J("ngClass",c.VKq(8,De,Ce.showEmailAsVerified(oe.putCode))),c.xp6(2),c.Q6J("id",oe.putCode),c.uIk("aria-label",Ce.ariaLabelOtherEmailAddresses),c.xp6(6),c.Q6J("ngIf",Ce.emailsForm.hasError("backendErrors",c.VKq(10,L,oe.putCode))),c.xp6(2),c.Q6J("ngIf",Ce.emailsForm.hasError("duplicated",c.VKq(12,L,oe.putCode))),c.xp6(2),c.Q6J("ngIf",Ce.emailsForm.hasError("required",c.VKq(14,L,oe.putCode))),c.xp6(2),c.Q6J("ngIf",Ce.emailsForm.hasError("email",c.VKq(16,L,oe.putCode))),c.xp6(2),c.Q6J("ngIf",Ce.emailsForm.hasError("backendError",c.VKq(18,L,oe.putCode)))}}function st(gt,nt){if(1>&&(c.TgZ(0,"strong",87),c._uU(1,"\n "),c.TgZ(2,"mat-icon",88),c._uU(3,"verified"),c.qZA(),c._uU(4,"\n "),c.TgZ(5,"span",46),c.SDv(6,89),c.qZA(),c._uU(7),c.qZA()),2>){const oe=c.oxw(2).$implicit,Ce=c.oxw();c.xp6(7),c.hij("\n ",Ce.emailsForm.value[oe.putCode].email,"")}}function bt(gt,nt){if(1>){const oe=c.EpF();c.TgZ(0,"a",52),c.NdJ("click",function(){c.CHM(oe);const ve=c.oxw(2).$implicit,xe=c.oxw();return c.KtG(xe.makePrimary(ve))}),c.SDv(1,90),c.qZA()}}function _e(gt,nt){1>&&(c.TgZ(0,"a",50),c.SDv(1,91),c.qZA())}function H(gt,nt){if(1>){const oe=c.EpF();c.TgZ(0,"a",52),c.NdJ("click",function(){c.CHM(oe);const ve=c.oxw(3).$implicit,xe=c.oxw();return c.KtG(xe.verifyEmail(ve))}),c.SDv(1,92),c.qZA()}}function Te(gt,nt){if(1>&&(c.ynx(0),c._uU(1,"\n "),c.YNc(2,_e,2,0,"a",48),c._uU(3,"\n "),c.YNc(4,H,2,0,"a",49),c._uU(5,"\n "),c.BQk()),2>){const oe=c.oxw(2).$implicit,Ce=c.oxw();c.xp6(2),c.Q6J("ngIf",Ce.verificationEmailWasSend(oe.putCode)),c.xp6(2),c.Q6J("ngIf",!Ce.verificationEmailWasSend(oe.putCode))}}function Me(gt,nt){1>&&c._UZ(0,"hr")}function Pe(gt,nt){1>&&(c.TgZ(0,"mat-error",54),c.SDv(1,93),c.qZA())}const dt=function(gt){return{"visibility-hidden":gt}};function Pt(gt,nt){if(1>){const oe=c.EpF();c.TgZ(0,"div",28),c._uU(1,"\n "),c.TgZ(2,"div",29),c._uU(3,"\n "),c.YNc(4,ft,18,20,"mat-form-field",72),c._uU(5,"\n\n "),c.YNc(6,st,8,1,"strong",73),c._uU(7,"\n "),c.qZA(),c._uU(8,"\n\n "),c.TgZ(9,"div",32),c._uU(10,"\n "),c.TgZ(11,"div",74),c._uU(12,"\n "),c.YNc(13,bt,2,0,"a",49),c._uU(14,"\n\n "),c.YNc(15,Te,6,2,"ng-container",23),c._uU(16,"\n "),c.qZA(),c._uU(17,"\n\n "),c.TgZ(18,"div",75),c._uU(19,"\n "),c._UZ(20,"app-visibility-selector",76),c._uU(21,"\n "),c.TgZ(22,"button",77),c.NdJ("click",function(){c.CHM(oe);const ve=c.oxw().$implicit,xe=c.oxw();return c.KtG(xe.deleteEmail(ve.putCode))}),c._uU(23,"\n "),c.TgZ(24,"mat-icon",78),c._uU(25,"delete"),c.qZA(),c._uU(26,"\n "),c.qZA(),c._uU(27,"\n "),c.qZA(),c._uU(28,"\n "),c.qZA(),c._uU(29,"\n "),c.YNc(30,Me,1,0,"hr",23),c._uU(31,"\n "),c.YNc(32,Pe,2,0,"mat-error",36),c._uU(33,"\n "),c.qZA()}if(2>){const oe=c.oxw().$implicit,Ce=c.oxw();c.Q6J("formGroupName",oe.putCode),c.xp6(4),c.Q6J("ngIf",!Ce.showEmailAsVerified(oe.putCode)),c.xp6(2),c.Q6J("ngIf",Ce.showEmailAsVerified(oe.putCode)),c.xp6(7),c.Q6J("ngIf",Ce.showEmailAsVerified(oe.putCode)),c.xp6(2),c.Q6J("ngIf",Ce.showNonVerifiedData(oe.putCode,!0)),c.xp6(3),c.Q6J("ngClass",c.VKq(14,dt,!Ce.showVisibility(oe.putCode,oe.action))),c.xp6(2),c.Q6J("hidden",!Ce.showVisibility(oe.putCode,oe.action))("ariaLabelPrivate",Ce.ariaLabelVisibilityOtherEmailPublic)("ariaLabelPublic",Ce.ariaLabelVisibilityOtherEmailTrustedParty)("ariaLabelTrustedParty",Ce.ariaLabelVisibilityOtherEmailPrivate)("itemTitle",Ce.emailsForm.value[oe.putCode].email),c.xp6(2),c.uIk("aria-label",Ce.ariaLabelDelete+" "+(Ce.emailsForm.value[oe.putCode].email||"")),c.xp6(8),c.Q6J("ngIf",Ce.isMobile),c.xp6(2),c.Q6J("ngIf",Ce.emailsForm.get(c.VKq(16,$e,oe.putCode))&&(Ce.emailsForm.get(c.VKq(18,$e,oe.putCode)).touched||Ce.emailsForm.get(c.VKq(20,$e,oe.putCode)).dirty)&&Ce.emailsForm.hasError("unverified",c.VKq(22,$e,oe.putCode)))}}function Qt(gt,nt){if(1>&&(c.TgZ(0,"app-alert-message",56),c._uU(1,"\n "),c.TgZ(2,"strong",57),c.ynx(3),c.SDv(4,94),c.BQk(),c._uU(5),c.qZA(),c._uU(6,"\n "),c.TgZ(7,"p"),c.SDv(8,95),c.qZA(),c._uU(9,"\n "),c.qZA()),2>){const oe=c.oxw().$implicit;c.xp6(5),c.hij("\n ",oe.value,"")}}function cn(gt,nt){if(1>&&(c.ynx(0),c._uU(1,"\n "),c.YNc(2,Pt,34,24,"div",26),c._uU(3,"\n "),c.TgZ(4,"div",71),c._uU(5,"\n "),c.YNc(6,Qt,10,1,"app-alert-message",27),c._uU(7,"\n "),c.qZA(),c._uU(8,"\n "),c.BQk()),2>){const oe=nt.$implicit,Ce=c.oxw();c.xp6(2),c.Q6J("ngIf",!oe.primary),c.xp6(4),c.Q6J("ngIf",!oe.primary&&Ce.verificationEmailWasSend(oe.putCode))}}function Ie(gt,nt){1>&&(c.ynx(0),c._uU(1,"\n "),c.TgZ(2,"p",56),c.SDv(3,96),c.qZA(),c._uU(4,"\n "),c.BQk())}function ne(gt,nt){1>&&(c.ynx(0),c.SDv(1,100),c.BQk())}function ce(gt,nt){1>&&(c.ynx(0),c.SDv(1,101),c.BQk())}function Ve(gt,nt){if(1>){const oe=c.EpF();c.TgZ(0,"div",97),c._uU(1,"\n "),c.TgZ(2,"a",98),c.NdJ("click",function(){c.CHM(oe);const ve=c.oxw();return c.KtG(ve.addEmail(null,!0))}),c._uU(3,"\n "),c.TgZ(4,"mat-icon",99),c._uU(5,"add_circle_outline "),c.qZA(),c._uU(6,"\n "),c.YNc(7,ne,2,0,"ng-container",23),c._uU(8,"\n "),c.YNc(9,ce,2,0,"ng-container",23),c._uU(10,"\n "),c.qZA(),c._uU(11,"\n "),c.qZA()}if(2>){const oe=c.oxw();c.xp6(7),c.Q6J("ngIf",1===oe.emails.length),c.xp6(2),c.Q6J("ngIf",oe.emails.length>1)}}const mt=function(gt,nt){return{"orc-font-body-small":gt,"orc-font-small-print":nt}};function Ut(gt,nt){if(1>&&(c.TgZ(0,"div",102),c._uU(1,"\n "),c.TgZ(2,"div",103),c._uU(3,"\n "),c.TgZ(4,"mat-icon"),c._uU(5,"info"),c.qZA(),c._uU(6,"\n "),c.qZA(),c._uU(7,"\n "),c.TgZ(8,"div",104),c._uU(9,"\n "),c.TgZ(10,"p"),c.SDv(11,105),c.qZA(),c._uU(12,"\n "),c.qZA(),c._uU(13,"\n "),c.qZA()),2>){const oe=c.oxw();c.Q6J("ngClass",c.WLB(1,mt,!oe.isMobile,oe.isMobile))}}let Bt=(()=>{var gt;class nt{constructor(Ce,ve,xe,at,Ot,Fe){this.dialogRef=Ce,this._recordEmails=ve,this._changeDetectorRef=xe,this._platform=at,this._snackBar=Ot,this._userInfo=Fe,this.ariaLabelKnowledgeBase="ORCID knowledge base (Opens in a new tab)",this.ariaLabelKnowledgeSupport="ORCID support page (Opens in a new tab)",this.ariaLabelOrcidTermsOfUseLink="ORCID terms of use (Opens in a new tab)",this.ariaLabelSave="Save changes to Emails",this.ariaLabelCancel="Cancel changes and close Emails",this.ariaLabelDelete="Delete Email",this.ariaLabelClose="Close Emails",this.ariaLabelPrimaryEmail="Primary email address",this.ariaLabelOtherEmailAddresses="Other email addresses",this.ariaLabelVisibilityPrimaryEmailPublic="Set primary email visibility to Everyone",this.ariaLabelVisibilityPrimaryEmailTrustedParty="Set primary email visibility to Trusted Parties",this.ariaLabelVisibilityPrimaryEmailPrivate="Set primary email visibility to Only Me",this.ariaLabelVisibilityOtherEmailPublic="Set other email visibility to Everyone",this.ariaLabelVisibilityOtherEmailTrustedParty="Set other email visibility to Trusted Parties",this.ariaLabelVisibilityOtherEmailPrivate="Set other email visibility to Only Me",this.verificationsSend=[],this.$destroy=new A.xQ,this.addedEmailsCount=0,this.emailsForm=new a.nJ({}),this.emails=[],this.defaultVisibility="PRIVATE",this.tempPrivacyState="PUBLIC"}ngOnInit(){this._userInfo.getUserInfo().subscribe(Ce=>{this.userInfo=Ce}),this._platform.get().pipe((0,D.R)(this.$destroy)).subscribe(Ce=>this.isMobile=Ce.columns4||Ce.columns8),this._recordEmails.getEmails().pipe((0,p.b)(Ce=>{this.originalEmailsBackendCopy=(0,r.cloneDeep)(Ce).emails,this.backendJsonToForm((0,r.cloneDeep)(Ce))}),(0,E.P)()).subscribe()}backendJsonToForm(Ce){this.emailsForm=new a.nJ({},{validators:[],updateOn:"change"}),Ce.emails.map(xe=>{this.addEmail(xe)})}formToBackend(Ce,ve){const xe=[];return ve.map(at=>at.putCode).filter(at=>Ce.value[at].email).forEach((at,Ot)=>{Ce.value[at]&&xe.push({value:Ce.value[at].email,visibility:Ce.value[at].visibility,primary:ve[Ot].primary})}),xe}addEmail(Ce,ve){if(Ce||ve&&this.emailsForm.valid){const xe=(ve?"newEmailInput":"emailInput-")+this.addedEmailsCount;this.emails.push({putCode:xe,action:Ce?"UPDATE":"ADD",...Ce}),this.emailsForm.addControl(xe,new a.nJ({email:new a.p4(Ce?Ce.value:"",{validators:[a.kI.required,f.a.email,this.allEmailsAreUnique(xe)],asyncValidators:[this._recordEmails.backendEmailValidate(this.originalEmailsBackendCopy)],updateOn:"change"}),visibility:new a.p4(Ce?Ce.visibility:this.defaultVisibility,{validators:[this.emailsIsUnverified(xe)]})})),this.addedEmailsCount++,Ce||(this._changeDetectorRef.detectChanges(),this.inputs.last.nativeElement.focus())}else this._snackBar.showValidationError("Please review and fix the issue")}makePrimary(Ce){this.emails.forEach(ve=>ve.primary=ve.putCode===Ce.putCode),this.triggerGeneralFormValidation()}triggerGeneralFormValidation(){Object.keys(this.emailsForm.controls).forEach(Ce=>{this.emailsForm.controls[Ce].controls.email.updateValueAndValidity()})}allEmailsAreUnique(Ce){return ve=>{const at=this.listDuplicateInputKeys(this.emailsForm);return this.removeDuplicateErrorFromOtherControls(at,this.emailsForm),at.indexOf(Ce)>=0?{duplicated:!0}:{}}}emailsIsUnverified(Ce){return ve=>"PRIVATE"===ve.value||this.showEmailAsVerified(Ce)?{}:{unverified:!0}}removeDuplicateErrorFromOtherControls(Ce,ve=new a.nJ({})){Object.keys(ve.controls).forEach(xe=>{const at=ve.controls[xe].controls.email;-1===Ce.indexOf(xe)&&at.errors&&at.errors.duplicated&&(delete at.errors.duplicated,at.updateValueAndValidity({onlySelf:!0}))})}listDuplicateInputKeys(Ce){const ve=[];return Object.keys(Ce.controls).forEach(xe=>{let at=Ce.controls[xe].controls.email.value;at=at.toLowerCase().trim(),Object.keys(Ce.controls).forEach(Ot=>{let Fe=Ce.controls[Ot].controls.email.value;Fe=Fe.toLowerCase().trim(),at&&Fe&&at===Fe&&xe!==Ot&&ve.push(Ot)})}),ve}verifyEmail(Ce){var at;const ve=null==(at=this.emailsForm.value[Ce.putCode])?void 0:at.email,xe=this.originalEmailsBackendCopy.find(Ot=>Ot.value===ve);this._recordEmails.verifyEmail(xe.value).pipe((0,E.P)()).subscribe(()=>{this.verificationsSend.push(xe.value)})}saveEvent(){if(this.emailsForm.valid){const Ce=this.formToBackend(this.emailsForm,this.emails);this._recordEmails.postEmails({emails:Ce,errors:[]}).pipe((0,E.P)()).subscribe(),this.closeEvent()}else this._snackBar.showValidationError()}closeEvent(){this.dialogRef.close()}deleteEmail(Ce){const ve=this.emails.findIndex(xe=>xe.putCode===Ce);this.emails.splice(ve,1),this.emailsForm.removeControl(Ce)}showNonVerifiedData(Ce,ve){var Ot,Fe;if(Ce.startsWith("new"))return!1;const xe=null==(Ot=this.emailsForm.value[Ce])?void 0:Ot.email,at=this.originalEmailsBackendCopy.find(je=>je.value===xe);return(!xe||this.verificationsSend.indexOf(xe)>-1||!ve||null==(Fe=this.originalEmailsBackendCopy.find(je=>je.value===xe))||!Fe.primary)&&at&&!at.verified}showVisibility(Ce,ve){var Fe;if(Ce.startsWith("new"))return!1;const xe=null==(Fe=this.emailsForm.value[Ce])?void 0:Fe.email,at=this.originalEmailsBackendCopy.find(je=>je.value===xe),Ot=!!at;return!(Ot&&at.primary&&this.emailsForm.hasError("duplicated",[Ce,"email"]))&&(!Ot&&"UPDATE"===ve&&this.emailsForm.patchValue({[Ce]:{visibility:"PRIVATE"}}),Ot)}verificationEmailWasSend(Ce){var xe;if(Ce.startsWith("new"))return!1;const ve=null==(xe=this.emailsForm.value[Ce])?void 0:xe.email;return this.verificationsSend.indexOf(ve)>-1}showEmailAsVerified(Ce){var Ot;if(Ce.startsWith("new"))return!1;const ve=null==(Ot=this.emailsForm.value[Ce])?void 0:Ot.email,xe=this.originalEmailsBackendCopy.find(Fe=>Fe.value===ve),at=null==xe?void 0:xe.verified;return!(at&&xe.primary&&this.emailsForm.hasError("duplicated",[Ce,"email"]))&&at}ngOnDestroy(){this.$destroy.next(!0),this.$destroy.unsubscribe()}}return(gt=nt).\u0275fac=function(Ce){return new(Ce||gt)(c.Y36(C.hV),c.Y36(m.o),c.Y36(c.sBO),c.Y36(_.tu),c.Y36(g.o),c.Y36(P.$))},gt.\u0275cmp=c.Xpm({type:gt,selectors:[["app-modal-email"]],viewQuery:function(Ce,ve){if(1&Ce&&c.Gf(U,5),2&Ce){let xe;c.iGM(xe=c.CRH())&&(ve.inputs=xe)}},decls:69,vars:11,consts:function(){let oe,Ce,ve,xe,at,Ot,Fe,je,kt,We,Ft,Kt,xt,Mt,pt,St,Zt,Ye,Ee,vt,ye,we,ge,T,V,G,R,Y,le,ke,ht,Gt,Wt,mn,wn,ut,Xe,Nt,Tt,qt,Yt,fn,dn;return oe="Emails",Ce="Save changes",ve="Cancel",xe="ORCID works best when you have multiple email addresses.",at="Per the",Ot="ORCID terms of use",Fe="you may only add email addresses that you have control over. Each time you add an email address we will send you an email asking you to verify it.",je="Primary email address",kt="Other email addresses",We="An email is required",Ft="Email can not be duplicated",Kt="Invalid email format",xt="This email is already associated with an ORCID record.",Mt="Primary email address",pt="Resend verification email",St="Resend verification email",Zt="Only verified email addresses can be displayed publicly or shared with trusted parties. Please verify your email",Ye="Please verify your primary email address!",Ee="You need to verify your primary email in order to access all of ORCID\u2019s editing features.",vt="To verify your email, click the link in the message sent to:",ye="Need help?",we="Visit our",ge="knowledge base",T="or contact",V="support.",G="We\u2019ve sent a verification email to",R="Please check your email inbox (or maybe your spam folder) for an email with a link to complete the process.",Y="This email is already associated with an ORCID record.",le="Additional emails cannot be duplicated",ke="An email is required",ht="Invalid email format",Gt="This email is already associated with an ORCID record.",Wt="Other email addresses",mn="Make primary email",wn="Resend verification email",ut="Resend verification email",Xe="Only verified email addresses can be displayed publicly or shared with trusted parties. Please verify your email",Nt="We\u2019ve sent a verification email to",Tt="Please check your email inbox (or maybe your spam folder) for an email with a link to complete the process.",qt="You haven\u2019t added any other email addresses yet.",Yt="Add other email address",fn="Add another email address",dn="Adding additional email addresses is not allowed when you are managing another ORCID record.",[[3,"noSidebar"],[3,"closeLabel"],oe,["mat-raised-button","","color","primary","id","save-emails-button",3,"click"],Ce,["mat-stroked-button","","color","primary","id","cancel-emails-button",3,"click"],ve,[3,"formGroup"],[1,"row"],[1,"col","orc-font-body-small"],[1,"orcid-works-best"],xe,[1,"terms-of-use"],at,["target","_blank","rel","noopener noreferrer","href","/content/orcid-terms-use"],Ot,Fe,["id","primary-emails",1,"row"],[1,"col","orc-font-body"],je,[4,"ngFor","ngForOf"],["id","my-other-emails"],kt,[4,"ngIf"],["class","row orc-font-body-small",4,"ngIf"],["class","info",3,"ngClass",4,"ngIf"],["class","row email-input-line",3,"formGroupName",4,"ngIf"],["class","orc-font-body-small",4,"ngIf"],[1,"row","email-input-line",3,"formGroupName"],[1,"col","l12","m8","s4","email-input-container"],["appearance","outline","class","mat-form-field-min verify-icon",4,"ngIf"],["tabindex","0","class","orc-font-body-large email-activated primary-email-label verify-icon",4,"ngIf"],[1,"col","actions-wrapper","no-gutters"],[1,"actions-sub-wrapper"],[1,"actions-sub-wrapper",3,"ngClass"],["formControlName","visibility","id","cy-primary-email-visibility",3,"ariaLabelPrivate","ariaLabelPublic","ariaLabelTrustedParty","itemTitle"],["class","mat-caption only-verified",4,"ngIf"],["appearance","outline",1,"mat-form-field-min","verify-icon"],["matInput","","formControlName","email","type","email","appTrim",""],["matPrefix",""],We,Ft,Kt,xt,["tabindex","0",1,"orc-font-body-large","email-activated","primary-email-label","verify-icon"],["matPrefix","",1,"title-material-icon","other-names"],[1,"sr-only"],Mt,["class","orc-font-body-small disabled underline",4,"ngIf"],["class","orc-font-body-small underline",3,"click",4,"ngIf"],[1,"orc-font-body-small","disabled","underline"],pt,[1,"orc-font-body-small","underline",3,"click"],St,[1,"mat-caption","only-verified"],Zt,[1,"orc-font-body-small"],[1,"orc-font-body"],Ye,Ee,vt,[1,"email-container"],ye,we,["target","_blank","rel","noopener noreferrer","href","https://support.orcid.org/hc/articles/360006973793",1,"underline"],ge,T,["target","_blank","rel","noopener noreferrer","href","https://support.orcid.org/",1,"underline"],V,G,R,[1,"col","l12","m8","s4"],["appearance","outline","class","mat-form-field-min verify-icon additional-email",3,"ngClass",4,"ngIf"],["class","orc-font-body email-activated primary-email-label verify-icon","tabindex","0",4,"ngIf"],[1,"actions-sub-wrapper","url-wrapper"],[1,"actions-sub-wrapper","visibility-wrapper",3,"ngClass"],["formControlName","visibility",3,"hidden","ariaLabelPrivate","ariaLabelPublic","ariaLabelTrustedParty","itemTitle"],["mat-icon-button","",1,"delete-button",3,"click"],[1,"material-icons-outlined","extra-large-material-icon"],["appearance","outline",1,"mat-form-field-min","verify-icon","additional-email",3,"ngClass"],["matInput","","formControlName","email","type","email","appTrim","",3,"id"],["emailInput",""],Y,le,ke,ht,Gt,["tabindex","0",1,"orc-font-body","email-activated","primary-email-label","verify-icon"],["matPrefix","",1,"large-material-icon"],Wt,mn,wn,ut,Xe,Nt,Tt,qt,[1,"row","orc-font-body-small"],["id","add-link",1,"col","add-more",3,"click"],[1,"large-material-icon"],Yt,fn,[1,"info",3,"ngClass"],[1,"col"],[1,"col","l11","m6","s3"],dn]},template:function(Ce,ve){1&Ce&&(c.TgZ(0,"app-modal",0),c._uU(1,"\n "),c.TgZ(2,"app-modal-header",1),c.SDv(3,2),c.qZA(),c._uU(4,"\n "),c.TgZ(5,"app-modal-footer"),c._uU(6,"\n "),c.TgZ(7,"button",3),c.NdJ("click",function(){return ve.saveEvent()}),c.SDv(8,4),c.qZA(),c._uU(9,"\n "),c.TgZ(10,"button",5),c.NdJ("click",function(){return ve.closeEvent()}),c.SDv(11,6),c.qZA(),c._uU(12,"\n "),c.qZA(),c._uU(13,"\n\n "),c.TgZ(14,"div",7),c._uU(15,"\n "),c.TgZ(16,"div",8),c._uU(17,"\n "),c.TgZ(18,"div",9),c._uU(19,"\n "),c.TgZ(20,"p",10),c.SDv(21,11),c.qZA(),c._uU(22,"\n "),c.TgZ(23,"p",12),c._uU(24,"\n "),c.TgZ(25,"i"),c._uU(26,"\n "),c.ynx(27),c.SDv(28,13),c.BQk(),c._uU(29,"\n "),c.TgZ(30,"a",14),c.SDv(31,15),c.qZA(),c._uU(32,"\n "),c.ynx(33),c.SDv(34,16),c.BQk(),c._uU(35,"\n "),c.qZA(),c._uU(36,"\n "),c.qZA(),c._uU(37,"\n "),c.qZA(),c._uU(38,"\n "),c.qZA(),c._uU(39,"\n\n "),c._uU(40,"\n "),c.TgZ(41,"section",17),c._uU(42,"\n "),c.TgZ(43,"h2",18),c.SDv(44,19),c.qZA(),c._uU(45,"\n\n "),c.YNc(46,tt,6,2,"ng-container",20),c._uU(47,"\n "),c.qZA(),c._uU(48,"\n\n "),c.TgZ(49,"section",21),c._uU(50,"\n "),c.TgZ(51,"div",8),c._uU(52,"\n "),c.TgZ(53,"h2",18),c.SDv(54,22),c.qZA(),c._uU(55,"\n "),c.qZA(),c._uU(56,"\n\n "),c._uU(57,"\n\n "),c.YNc(58,cn,9,2,"ng-container",20),c._uU(59,"\n "),c.YNc(60,Ie,5,0,"ng-container",23),c._uU(61,"\n\n "),c.YNc(62,Ve,12,2,"div",24),c._uU(63,"\n\n "),c.YNc(64,Ut,14,4,"div",25),c._uU(65,"\n "),c.qZA(),c._uU(66,"\n "),c.qZA(),c._uU(67,"\n"),c.qZA(),c._uU(68,"\n")),2&Ce&&(c.Q6J("noSidebar",!0),c.xp6(2),c.Q6J("closeLabel",ve.ariaLabelClose),c.xp6(5),c.uIk("aria-label",ve.ariaLabelSave),c.xp6(3),c.uIk("aria-label",ve.ariaLabelCancel),c.xp6(4),c.Q6J("formGroup",ve.emailsForm),c.xp6(16),c.uIk("aria-label",ve.ariaLabelOrcidTermsOfUseLink),c.xp6(16),c.Q6J("ngForOf",ve.emails),c.xp6(12),c.Q6J("ngForOf",ve.emails),c.xp6(2),c.Q6J("ngIf",1===ve.emails.length),c.xp6(2),c.Q6J("ngIf","true"!==(null==ve.userInfo?null:ve.userInfo.IN_DELEGATION_MODE)||"true"===(null==ve.userInfo?null:ve.userInfo.DELEGATED_BY_ADMIN)),c.xp6(2),c.Q6J("ngIf","true"===(null==ve.userInfo?null:ve.userInfo.IN_DELEGATION_MODE)&&"true"!==(null==ve.userInfo?null:ve.userInfo.DELEGATED_BY_ADMIN)))},styles:["[_nghost-%COMP%] .verify-icon.email-activated mat-icon{color:#a6ce39}[_nghost-%COMP%] .verify-icon mat-icon{color:#bdbdbd}.add-more[_ngcontent-%COMP%]{color:#085c77}.info[_ngcontent-%COMP%]{border-color:#ff9c00!important}.info[_ngcontent-%COMP%] mat-icon[_ngcontent-%COMP%]{color:#ff9c00!important}",".row[_ngcontent-%COMP%] .col[_ngcontent-%COMP%]{padding-inline-start:0}.orcid-works-best[_ngcontent-%COMP%]{margin-bottom:16px}.terms-of-use[_ngcontent-%COMP%]{margin-top:0}.add-more-email[_ngcontent-%COMP%]{display:flex;align-items:center}.add-more-email[_ngcontent-%COMP%] mat-icon[_ngcontent-%COMP%]{margin-inline-end:8px}.email-input-line[_ngcontent-%COMP%]{justify-content:space-between;align-items:center}mat-form-field[_ngcontent-%COMP%]{width:100%;top:12px}mat-form-field[_ngcontent-%COMP%] mat-icon[_ngcontent-%COMP%]{line-height:1.1}.visibility-wrapper[_ngcontent-%COMP%]{width:60%}.url-wrapper[_ngcontent-%COMP%]{width:40%}.actions-wrapper[_ngcontent-%COMP%]{width:51%}.actions-wrapper[_ngcontent-%COMP%], .actions-sub-wrapper[_ngcontent-%COMP%]{display:flex;flex-wrap:nowrap;flex-shrink:0;align-items:center;justify-content:space-between}.actions-wrapper[_ngcontent-%COMP%] .actions-sub-wrapper[_ngcontent-%COMP%], .actions-sub-wrapper[_ngcontent-%COMP%] .actions-sub-wrapper[_ngcontent-%COMP%]{justify-content:end}.actions-wrapper[_ngcontent-%COMP%] .actions-sub-wrapper[_ngcontent-%COMP%] a[_ngcontent-%COMP%], .actions-sub-wrapper[_ngcontent-%COMP%] .actions-sub-wrapper[_ngcontent-%COMP%] a[_ngcontent-%COMP%]{width:100%;max-width:240px}.actions-wrapper[_ngcontent-%COMP%] .privacy-selector[_ngcontent-%COMP%], .actions-sub-wrapper[_ngcontent-%COMP%] .privacy-selector[_ngcontent-%COMP%]{justify-content:unset;padding-inline-start:8px}.primary-email-label[_ngcontent-%COMP%]{display:flex;align-items:center;word-break:break-all}.primary-email-label[_ngcontent-%COMP%] mat-icon[_ngcontent-%COMP%]{margin-inline-start:6px;margin-inline-end:16px;width:32px}.primary-email-label[_ngcontent-%COMP%] mat-icon[_ngcontent-%COMP%], .primary-email-label[_ngcontent-%COMP%] .other-names[_ngcontent-%COMP%]{margin-inline-start:12px}.email-input-line[_ngcontent-%COMP%]{margin-top:5px;margin-bottom:8px}.email-input-line[_ngcontent-%COMP%] img[_ngcontent-%COMP%]{margin-top:6px;cursor:move;z-index:1;margin-inline-end:18px}.email-input-line[_ngcontent-%COMP%] .email-activated[_ngcontent-%COMP%]{margin-bottom:12px;margin-top:10px}.email-input-container[_ngcontent-%COMP%]{max-width:49%;padding-inline-end:24px}.add-more[_ngcontent-%COMP%]{margin-top:16px}.add-more[_ngcontent-%COMP%] mat-icon[_ngcontent-%COMP%]{padding-inline-end:8px} app-alert-message{margin-bottom:20px} app-alert-message p{margin:0} app-alert-message p.email-container{margin:16px 0} .columns-4-or-8 .mat-form-field{margin-inline-end:auto} .columns-4-or-8 .email-input-container{padding:0;max-width:100%;padding-inline-end:0} .columns-4-or-8 .actions-wrapper, .columns-4-or-8 .actions-sub-wrapper{width:100%;flex-wrap:wrap} .columns-4-or-8 .actions-sub-wrapper{justify-content:space-between!important}.additional-email[_ngcontent-%COMP%] .mat-form-field-wrapper{padding-bottom:18px!important}.only-verified[_ngcontent-%COMP%]{padding:0 4px}.visibility-hidden[_ngcontent-%COMP%]{justify-content:end!important}.info[_ngcontent-%COMP%]{padding:16px;margin-top:32px;border:solid 2px;border-radius:4px;height:30px;display:flex;align-items:center}.info[_ngcontent-%COMP%] p[_ngcontent-%COMP%]{margin:0}.delete-button[_ngcontent-%COMP%]{margin-inline-start:16px}app-visibility-selector[_ngcontent-%COMP%]{margin-inline-start:16px} .columns-4-or-8 app-visibility-selector{margin-inline-start:0;margin-top:16px;margin-bottom:16px}"]}),nt})()},83888:(Qe,he,s)=>{"use strict";s.d(he,{d:()=>Je});var a=s(87845),r=s(56223),b=s(27599),A=s(6990),p=s(72079),E=s(19352),f=s(88419),c=s(6666),C=s(65879),m=s(6297),_=s(71142),g=s(45081),P=s(12160);const U=["keywordInput"];function d(qe,it){1&qe&&C._UZ(0,"div",35)}function q(qe,it){if(1&qe&&(C.TgZ(0,"mat-hint",36),C._UZ(1,"app-source-hit",37),C.qZA()),2&qe){const rt=C.oxw().$implicit;C.xp6(1),C.Q6J("createdDate",rt.createdDate)("source",rt.sourceName||rt.source)("assertion",rt.assertionOriginName||rt.assertionOriginOrcid)}}function j(qe,it){1&qe&&(C.TgZ(0,"mat-error"),C.SDv(1,38),C.qZA())}const K=function(qe){return{direction:qe}},L=function(qe){return{"no-wrap":qe}},w=function(qe){return{"read-only":qe}},k=function(qe){return{"keyword-input":qe}},X=function(qe){return{privacy:qe}},de=function(qe){return{selector:qe}};function re(qe,it){if(1&qe){const rt=C.EpF();C.TgZ(0,"div",21),C.YNc(1,d,1,0,"div",22),C.TgZ(2,"div",23)(3,"div",24)(4,"div",25),C._UZ(5,"img",26),C.qZA(),C.TgZ(6,"div",12)(7,"mat-form-field",27),C._UZ(8,"input",28,29),C.YNc(10,q,2,3,"mat-hint",30),C.YNc(11,j,2,0,"mat-error",11),C.qZA()()(),C.TgZ(12,"div",31),C._UZ(13,"app-visibility-selector",32),C.TgZ(14,"button",33),C.NdJ("click",function(){const ze=C.CHM(rt).$implicit,Ze=C.oxw(2);return C.KtG(Ze.deleteKeyword(ze.putCode))}),C.TgZ(15,"mat-icon",34),C._uU(16,"delete "),C.qZA()()()(),C._UZ(17,"hr",18),C.qZA()}if(2&qe){const rt=it.$implicit,tt=C.oxw(2);let _t,ze,Ze,ot;C.Q6J("ngStyle",C.VKq(14,K,tt.screenDirection))("formGroupName",rt.putCode),C.xp6(2),C.Q6J("ngClass",C.VKq(16,L,!tt.isMobile)),C.xp6(5),C.Q6J("ngClass",C.VKq(18,w,rt.source&&rt.source!==tt.id)),C.xp6(1),C.MGl("placeholder"," ",tt.ngOrcidKeyword,""),C.Q6J("readonly",rt.source&&rt.source!==tt.id)("ngClass",C.VKq(20,k,"rtl"===tt.screenDirection)),C.uIk("aria-label",rt.putCode.indexOf("new")<0?tt.ariaLabelKeyword:tt.ariaLabelNewKeyword),C.xp6(2),C.Q6J("ngIf",rt.putCode.indexOf("new")<0),C.xp6(1),C.Q6J("ngIf",null==(_t=tt.keywordsForm.get(rt.putCode))||null==(ze=_t.get("content"))||null==ze.errors?null:ze.errors.maxlength),C.xp6(1),C.Q6J("ngClass",C.VKq(22,X,!tt.platform.columns12)),C.xp6(1),C.Q6J("ngClass",C.VKq(24,de,!tt.platform.columns12))("itemTitle",(null==(Ze=tt.keywordsForm.get(rt.putCode))?null:Ze.get("content").value)||""),C.xp6(1),C.uIk("aria-label",tt.ariaLabelDelete+" "+((null==(ot=tt.keywordsForm.get(rt.putCode))?null:ot.get("content").value)||""))}}function be(qe,it){if(1&qe){const rt=C.EpF();C.ynx(0),C.TgZ(1,"div",12)(2,"h2",16),C.SDv(3,17),C.qZA()(),C._UZ(4,"hr",18),C.TgZ(5,"div",19),C.NdJ("cdkDropListDropped",function(_t){C.CHM(rt);const ze=C.oxw();return C.KtG(ze.drop(_t))}),C.YNc(6,re,18,26,"div",20),C.qZA(),C.BQk()}if(2&qe){const rt=C.oxw();C.xp6(6),C.Q6J("ngForOf",rt.keywords)}}function pe(qe,it){1&qe&&(C.ynx(0),C.SDv(1,39),C.BQk())}function $e(qe,it){1&qe&&(C.ynx(0),C.SDv(1,40),C.BQk())}let Je=(()=>{var qe;class it{constructor(tt,_t,ze,Ze,ot,Ct,De,ft){this.window=tt,this.data=_t,this.dialogRef=ze,this._recordKeywordService=Ze,this._changeDetectorRef=ot,this._platform=Ct,this._snackBar=De,this._userService=ft,this.ariaLabelSave="Save changes to Keywords",this.ariaLabelCancel="Cancel changes to Keywords",this.ariaLabelDelete="Delete Keyword",this.ariaLabelNewKeyword="New Keyword",this.ariaLabelKeyword="Keyword",this.ariaLabelKeywordsClose="Close Keywords",this.$destroy=new p.xQ,this.addedKeywordsCount=0,this.screenDirection="ltr",this.loadingKeywords=!0,this.keywordMaxLength=99,this.ngOrcidKeyword="Keyword",this._platform.get().pipe((0,E.R)(this.$destroy)).subscribe(st=>{this.platform=st,this.isMobile=st.columns4||st.columns8,this.screenDirection=st.screenDirection}),this._userService.getUserSession().pipe((0,E.R)(this.$destroy)).subscribe(st=>{this.userSession=st})}ngOnInit(){this._recordKeywordService.getKeywords().pipe((0,f.P)()).subscribe(tt=>{this.defaultVisibility=tt.visibility.visibility,this.originalBackendKeywords=(0,A.cloneDeep)(tt),this.keywords=this.originalBackendKeywords.keywords,this.backendJsonToForm(this.originalBackendKeywords),this.loadingKeywords=!1})}backendJsonToForm(tt){const ze={};tt.keywords.forEach(Ze=>{ze[Ze.putCode]=new r.nJ({content:new r.p4(Ze.content,{validators:[r.kI.maxLength(this.keywordMaxLength)],updateOn:"change"}),visibility:new r.p4(Ze.visibility.visibility,{})})}),this.keywordsForm=new r.nJ(ze)}formToBackend(tt){const _t={errors:[],keywords:[],visibility:this.originalBackendKeywords.visibility},ze=(0,A.cloneDeep)(this.keywords);return ze.reverse(),ze.map(Ze=>Ze.putCode).filter(Ze=>tt.getRawValue()[Ze].content).forEach((Ze,ot)=>{const Ct=tt.getRawValue()[Ze].content.trim(),De=tt.getRawValue()[Ze].visibility;tt.getRawValue()[Ze]&&_t.keywords.push({putCode:0===Ze.indexOf("new-")?null:Ze,content:Ct,displayIndex:ot+1,source:this.userSession.userInfo.EFFECTIVE_USER_ORCID,visibility:{visibility:De}})}),_t}saveEvent(){this.keywordsForm.valid?(this.loadingKeywords=!0,this._recordKeywordService.postKeywords(this.formToBackend(this.keywordsForm)).subscribe(tt=>{this.closeEvent()})):this._snackBar.showValidationError()}closeEvent(){this.dialogRef.close()}drop(tt){(0,a.bA)(this.keywords,tt.previousIndex,tt.currentIndex)}addKeyword(){const tt="new-"+this.addedKeywordsCount;this.keywordsForm.addControl(tt,new r.nJ({content:new r.p4("",{validators:[r.kI.maxLength(this.keywordMaxLength)],updateOn:"change"}),visibility:new r.p4(this.defaultVisibility,{})})),this.keywords.push({putCode:tt,visibility:{visibility:this.defaultVisibility}}),this.addedKeywordsCount++,this._changeDetectorRef.detectChanges(),this.inputs.last.nativeElement.focus()}deleteKeyword(tt){const _t=this.keywords.findIndex(ze=>ze.putCode===tt);this.keywords.splice(_t,1),this.keywordsForm.removeControl(tt)}ngOnDestroy(){this.$destroy.next(!0),this.$destroy.unsubscribe()}onSubmit(){}}return(qe=it).\u0275fac=function(tt){return new(tt||qe)(C.Y36(c.m9),C.Y36(b.eJ),C.Y36(b.hV),C.Y36(m.B),C.Y36(C.sBO),C.Y36(_.tu),C.Y36(g.o),C.Y36(P.KD))},qe.\u0275cmp=C.Xpm({type:qe,selectors:[["app-modal-keyword"]],viewQuery:function(tt,_t){if(1&tt&&C.Gf(U,5),2&tt){let ze;C.iGM(ze=C.CRH())&&(_t.inputs=ze)}},decls:21,vars:9,consts:function(){let rt,tt,_t,ze,Ze,ot,Ct,De;return rt="Keywords",tt="Save changes",_t="Cancel",ze="Keywords are words or phrases which describe your research activities. Adding keywords can help people find you when searching the ORCID registry.",Ze="My keywords",ot="Must be less than 100 characters",Ct="Add a keyword",De="Add another keyword",[[3,"loading","noSidebar"],[3,"closeLabel"],rt,["mat-raised-button","","color","primary","id","save-keywords-button",3,"click"],tt,["mat-stroked-button","","color","primary","id","cancel-keywords-button",3,"click"],_t,[1,"container","no-padding",3,"formGroup","ngSubmit"],["id","my-keywords"],[1,"orc-font-body-small"],ze,[4,"ngIf"],[1,"row"],["id","add-keyword",1,"col","add-more","no-gutters",3,"click"],[1,"large-material-icon"],[1,"mat-body-1"],[1,"col","no-gutters","orc-font-body"],Ze,[1,"dashed-line"],["id","keyword-dropList","cdkDropList","",1,"row","keyword-list",3,"cdkDropListDropped"],["cdkDrag","","class","row keyword-box",3,"ngStyle","formGroupName",4,"ngFor","ngForOf"],["cdkDrag","",1,"row","keyword-box",3,"ngStyle","formGroupName"],["class","row drag-placeholder",4,"cdkDragPlaceholder"],[1,"row","keywords-input-line",3,"ngClass"],[1,"col","l12","m8","s4","top","no-wrap","no-gutters","input-container"],[1,"image-container"],["cdkDragHandle","","src","./assets/vectors/draggable.svg","aria-label","drag handle",1,"icon-drag"],["appearance","outline",1,"mat-form-field-min",3,"ngClass"],["matInput","","formControlName","content",1,"content-input",3,"readonly","placeholder","ngClass"],["keywordInput",""],["class","mat-caption",4,"ngIf"],[1,"col","no-wrap","actions-wrapper","no-gutters",3,"ngClass"],["formControlName","visibility",3,"ngClass","itemTitle"],["mat-icon-button","",1,"delete-button",3,"click"],[1,"material-icons-outlined","extra-large-material-icon"],[1,"row","drag-placeholder"],[1,"mat-caption"],[3,"createdDate","source","assertion"],ot,Ct,De]},template:function(tt,_t){1&tt&&(C.TgZ(0,"app-modal",0)(1,"app-modal-header",1),C.ynx(2),C.SDv(3,2),C.BQk(),C.qZA(),C.TgZ(4,"app-modal-footer")(5,"button",3),C.NdJ("click",function(){return _t.saveEvent()}),C.SDv(6,4),C.qZA(),C.TgZ(7,"button",5),C.NdJ("click",function(){return _t.closeEvent()}),C.SDv(8,6),C.qZA()(),C.TgZ(9,"div",7),C.NdJ("ngSubmit",function(){return _t.onSubmit()}),C.TgZ(10,"section",8)(11,"p",9),C.SDv(12,10),C.qZA(),C.YNc(13,be,7,1,"ng-container",11),C.TgZ(14,"div",12)(15,"a",13),C.NdJ("click",function(){return _t.addKeyword()}),C.TgZ(16,"mat-icon",14),C._uU(17,"add_circle_outline"),C.qZA(),C.TgZ(18,"span",15),C.YNc(19,pe,2,0,"ng-container",11),C.YNc(20,$e,2,0,"ng-container",11),C.qZA()()()()()()),2&tt&&(C.Q6J("loading",_t.loadingKeywords)("noSidebar",!0),C.xp6(1),C.Q6J("closeLabel",_t.ariaLabelKeywordsClose),C.xp6(4),C.uIk("aria-label",_t.ariaLabelSave),C.xp6(2),C.uIk("aria-label",_t.ariaLabelCancel),C.xp6(2),C.Q6J("formGroup",_t.keywordsForm),C.xp6(4),C.Q6J("ngIf",(null==_t.keywords?null:_t.keywords.length)>0),C.xp6(6),C.Q6J("ngIf",0===(null==_t.keywords?null:_t.keywords.length)),C.xp6(1),C.Q6J("ngIf",0!==(null==_t.keywords?null:_t.keywords.length)))},styles:[".keyword-input-line .mat-form-field-flex{background-color:#fff}[_nghost-%COMP%] mat-form-field mat-icon{color:#bdbdbd}[_nghost-%COMP%] mat-form-field.email-activated mat-icon{color:#a6ce39}",".actions-wrapper[_ngcontent-%COMP%]{flex-wrap:nowrap;display:flex;justify-content:center}.keyword-list.cdk-drop-list-dragging[_ngcontent-%COMP%] .keyword-box[_ngcontent-%COMP%]:not(.cdk-drag-placeholder){transition:transform .25s cubic-bezier(0,0,.2,1)}.icon-drag[_ngcontent-%COMP%]{height:32px;margin:4px 0;cursor:move;margin-inline-start:6px;margin-inline-end:10px}.keywords-input-line[_ngcontent-%COMP%]{margin-top:10px;margin-bottom:4px}.keywords-input-line[_ngcontent-%COMP%] .image-container[_ngcontent-%COMP%]{height:100%;display:flex;justify-content:space-around}.mat-form-field[_ngcontent-%COMP%]{width:100%}.keyword-input[_ngcontent-%COMP%]{text-align:right!important} .columns-4-or-8 .mat-form-field{width:100%;margin-inline-end:auto}.add-more[_ngcontent-%COMP%]{margin-top:16px}.add-more[_ngcontent-%COMP%] span[_ngcontent-%COMP%]{padding-left:6px} .columns-4-or-8 .keywords-input-line .input-container{padding-bottom:30px} .columns-4-or-8 .keywords-input-line .actions-wrapper{padding-bottom:10px;justify-content:space-between} .columns-4-or-8 .actions-wrapper{width:100%}.delete-button[_ngcontent-%COMP%], app-visibility-selector[_ngcontent-%COMP%]{margin-inline-start:16px}.delete-button[_ngcontent-%COMP%]{margin-top:-3px}"]}),it})()},71057:(Qe,he,s)=>{"use strict";s.d(he,{r:()=>q});var a=s(87845),r=s(56223),b=s(6990),D=s(72079),p=s(88419),E=s(19352),f=s(65879),c=s(27599),C=s(98202),m=s(71142);function _(j,K){1&j&&f._UZ(0,"div",35)}const g=function(j){return{direction:j}},P=function(j){return{"no-wrap":j}};function U(j,K){if(1&j){const L=f.EpF();f.TgZ(0,"div",22),f._uU(1,"\n "),f.YNc(2,_,1,0,"div",23),f._uU(3,"\n "),f.TgZ(4,"div",24),f._uU(5,"\n "),f.TgZ(6,"div",25),f._uU(7,"\n "),f._UZ(8,"img",26),f._uU(9,"\n "),f.TgZ(10,"div",27),f._uU(11,"\n "),f.TgZ(12,"a",28),f._uU(13),f.qZA(),f._uU(14,"\n "),f.TgZ(15,"mat-hint",29),f._uU(16,"\n "),f._UZ(17,"app-source-hit",30),f._uU(18,"\n "),f.qZA(),f._uU(19,"\n "),f.qZA(),f._uU(20,"\n "),f.qZA(),f._uU(21,"\n "),f.TgZ(22,"div",31),f._uU(23,"\n "),f.TgZ(24,"app-visibility-selector",32),f._uU(25,"\n "),f.qZA(),f._uU(26,"\n "),f.TgZ(27,"button",33),f.NdJ("click",function(){const X=f.CHM(L).$implicit,de=f.oxw(2);return f.KtG(de.deletePersonalIdentifier(X.putCode))}),f._uU(28,"\n "),f.TgZ(29,"mat-icon",34),f._uU(30,"delete"),f.qZA(),f._uU(31,"\n "),f.qZA(),f._uU(32,"\n "),f.qZA(),f._uU(33,"\n "),f.qZA(),f._uU(34,"\n "),f._UZ(35,"hr",19),f._uU(36,"\n "),f.qZA()}if(2&j){const L=K.$implicit,w=K.index,k=f.oxw(2);f.Q6J("ngStyle",f.VKq(13,g,k.screenDirection))("formGroupName",L.putCode),f.uIk("id","draggable-"+w),f.xp6(4),f.Q6J("ngClass",f.VKq(15,P,!k.isMobile)),f.xp6(8),f.Q6J("href",L.url,f.LSH),f.uIk("aria-label",L.commonName+" : "+L.reference+" "+k.ariaLabelIdentifierUrl),f.xp6(1),f.AsE("",L.commonName,":\n ",L.reference,""),f.xp6(4),f.Q6J("createdDate",L.createdDate)("source",L.sourceName||L.source)("assertion",L.assertionOriginName||L.assertionOriginOrcid),f.xp6(7),f.Q6J("itemTitle",L.commonName+":"+L.reference),f.xp6(3),f.uIk("aria-label",k.ariaLabelDelete+" "+L.commonName+":"+L.reference)}}function d(j,K){if(1&j){const L=f.EpF();f.ynx(0),f._uU(1,"\n "),f.TgZ(2,"div",8),f._uU(3,"\n "),f.TgZ(4,"h2",17),f.SDv(5,18),f.qZA(),f._uU(6,"\n "),f.qZA(),f._uU(7,"\n "),f._UZ(8,"hr",19),f._uU(9,"\n "),f.TgZ(10,"section",20),f.NdJ("cdkDropListDropped",function(k){f.CHM(L);const X=f.oxw();return f.KtG(X.drop(k))}),f._uU(11,"\n "),f.YNc(12,U,37,17,"div",21),f._uU(13,"\n "),f.qZA(),f._uU(14,"\n "),f.BQk()}if(2&j){const L=f.oxw();f.xp6(12),f.Q6J("ngForOf",L.personIdentifiers)}}let q=(()=>{var j;class K{constructor(w,k,X,de){this.dialogRef=w,this._recordPersonalIdentifiers=k,this._changeDetectorRef=X,this._platform=de,this.ariaLabelSave="Save changes to Other identifiers",this.ariaLabelCancel="Cancel changes and close Other identifiers",this.ariaLabelClose="Close Other identifiers",this.ariaLabelDelete="Delete identifier",this.ariaLabelIdentifier="Identifier",this.ariaLabelOtherIdsSupport="Find out how to add other identifiers to your ORCID record (Opens in a new tab)",this.ariaLabelIdentifierUrl="(Opens in a new tab)",this.$destroy=new D.xQ,this.personIdentifiersForm=new r.nJ({}),this.screenDirection="ltr",this.loadingPersonalIdentifiers=!0}ngOnInit(){this._recordPersonalIdentifiers.getPersonalIdentifiers().pipe((0,p.P)()).subscribe(w=>{this.personIdentifiers=(0,b.cloneDeep)(w.externalIdentifiers),this.originalPersonalIdentifiers=(0,b.cloneDeep)(w),this.backendJsonToForm(w),this.loadingPersonalIdentifiers=!1}),this._platform.get().pipe((0,E.R)(this.$destroy)).subscribe(w=>{this.isMobile=w.columns4||w.columns8,this.screenDirection=w.screenDirection})}backendJsonToForm(w){const X={};w.externalIdentifiers.forEach(de=>{X[de.putCode]=new r.nJ({visibility:new r.p4(de.visibility.visibility,{})})}),this.personIdentifiersForm=new r.nJ(X)}formToBackend(w){const k={errors:[],externalIdentifiers:[],visibility:this.originalPersonalIdentifiers.visibility};return this._changeDetectorRef.detach(),this.personIdentifiers.reverse(),this.personIdentifiers.map(X=>X.putCode).forEach((X,de)=>{const re=w.value[X].visibility;w.value[X]&&k.externalIdentifiers.push({putCode:0===X.indexOf("new-")?null:X,displayIndex:de+1,visibility:{visibility:re}})}),k}saveEvent(){this.loadingPersonalIdentifiers=!0,this._recordPersonalIdentifiers.postPersonalIdentifiers(this.formToBackend(this.personIdentifiersForm)).subscribe(w=>{this.closeEvent()})}closeEvent(){this.dialogRef.close()}drop(w){(0,a.bA)(this.personIdentifiers,w.previousIndex,w.currentIndex)}deletePersonalIdentifier(w){const k=this.personIdentifiers.findIndex(X=>X.putCode===w);this.personIdentifiers.splice(k,1),this.personIdentifiersForm.removeControl(w)}ngOnDestroy(){this.$destroy.next(!0),this.$destroy.unsubscribe()}}return(j=K).\u0275fac=function(w){return new(w||j)(f.Y36(c.hV),f.Y36(C.D),f.Y36(f.sBO),f.Y36(m.tu))},j.\u0275cmp=f.Xpm({type:j,selectors:[["app-modal-person-identifiers"]],decls:41,vars:8,consts:function(){let L,w,k,X,de,re,be;return L="Other IDs",w="Save changes",k="Cancel",X="Other identifiers, also called Person identifiers, are unique IDs that systems such as ISNI and Scopus use to identify you. These identifiers can only be added to your record by trusted organizations you have connected to ORCID.",de="Find out more on our",re="Other identifiers support page.",be="My other identifiers",[[3,"loading","noSidebar"],[3,"closeLabel"],L,["mat-raised-button","","color","primary","id","save-personal-id-button",3,"click"],w,["mat-stroked-button","","color","primary","id","cancel-personal-id-button",3,"click"],k,[1,"container","no-padding",3,"formGroup"],[1,"row"],[1,"col","no-gutters"],[1,"orc-font-body-small"],X,[1,"orc-font-body-small","find-out"],de,["target","_blank","rel","noopener noreferrer","href","https://support.orcid.org/hc/en-us/articles/360006894854-Add-person-identifiers-other-identifiers-to-your-ORCID-record"],re,[4,"ngIf"],[1,"col","no-gutters","orc-font-body"],be,[1,"dashed-line"],["id","my-other-identifiers","id","ids-list","cdkDropList","",1,"row",3,"cdkDropListDropped"],["cdkDrag","","class","row",3,"ngStyle","formGroupName",4,"ngFor","ngForOf"],["cdkDrag","",1,"row",3,"ngStyle","formGroupName"],["class","row drag-placeholder",4,"cdkDragPlaceholder"],[1,"row","personal-identifier-input-line",3,"ngClass"],[1,"col","l12","m8","s4","top","no-wrap","no-gutters","personal-identifiers-wrapper"],["cdkDragHandle","","src","./assets/vectors/draggable.svg","aria-label","drag handle"],[1,"person-identifier"],["target","_blank","rel","me nofollow noopener noreferrer",1,"underline",3,"href"],[1,"mat-caption"],[3,"createdDate","source","assertion"],[1,"col","no-wrap","actions-wrapper","no-gutters","personal-identifiers-controls-wrapper"],["formControlName","visibility",3,"itemTitle"],["mat-icon-button","",1,"delete-button",3,"click"],[1,"material-icons-outlined","extra-large-material-icon"],[1,"row","drag-placeholder"]]},template:function(w,k){1&w&&(f.TgZ(0,"app-modal",0),f._uU(1,"\n "),f.TgZ(2,"app-modal-header",1),f.SDv(3,2),f.qZA(),f._uU(4,"\n "),f.TgZ(5,"app-modal-footer"),f._uU(6,"\n "),f.TgZ(7,"button",3),f.NdJ("click",function(){return k.saveEvent()}),f.SDv(8,4),f.qZA(),f._uU(9,"\n "),f.TgZ(10,"button",5),f.NdJ("click",function(){return k.closeEvent()}),f.SDv(11,6),f.qZA(),f._uU(12,"\n "),f.qZA(),f._uU(13,"\n\n "),f.TgZ(14,"div",7),f._uU(15,"\n "),f.TgZ(16,"div",8),f._uU(17,"\n "),f.TgZ(18,"div",9),f._uU(19,"\n "),f.TgZ(20,"p",10),f._uU(21,"\n "),f.ynx(22),f.SDv(23,11),f.BQk(),f._uU(24,"\n "),f.qZA(),f._uU(25,"\n "),f.TgZ(26,"p",12),f._uU(27,"\n "),f.ynx(28),f.SDv(29,13),f.BQk(),f._uU(30,"\n "),f.TgZ(31,"a",14),f.SDv(32,15),f.qZA(),f._uU(33,"\n "),f.qZA(),f._uU(34,"\n "),f.qZA(),f._uU(35,"\n "),f.qZA(),f._uU(36,"\n "),f.YNc(37,d,15,1,"ng-container",16),f._uU(38,"\n "),f.qZA(),f._uU(39,"\n"),f.qZA(),f._uU(40,"\n")),2&w&&(f.Q6J("loading",k.loadingPersonalIdentifiers)("noSidebar",!0),f.xp6(2),f.Q6J("closeLabel",k.ariaLabelClose),f.xp6(5),f.uIk("aria-label",k.ariaLabelSave),f.xp6(3),f.uIk("aria-label",k.ariaLabelCancel),f.xp6(4),f.Q6J("formGroup",k.personIdentifiersForm),f.xp6(17),f.uIk("aria-label",k.ariaLabelIdentifier+" "+k.ariaLabelOtherIdsSupport),f.xp6(6),f.Q6J("ngIf",(null==k.personIdentifiers?null:k.personIdentifiers.length)>0))},styles:[".actions-wrapper[_ngcontent-%COMP%]{flex-wrap:nowrap}.add-more[_ngcontent-%COMP%]{margin-top:16px} .columns-4-or-8 .mat-form-field{width:100%;margin-inline-end:auto} .columns-4-or-8 .personal-identifiers-wrapper{margin:16px 0} .columns-4-or-8 .personal-identifiers-controls-wrapper{justify-content:space-between;width:100%}.personal-identifier-input-line[_ngcontent-%COMP%]{margin-top:10px;margin-bottom:4px}.personal-identifier-input-line[_ngcontent-%COMP%] img[_ngcontent-%COMP%]{margin-top:3px;cursor:move;z-index:1;margin-inline-start:6px;margin-inline-end:10px}.personal-identifier-input-line[_ngcontent-%COMP%] .person-identifier[_ngcontent-%COMP%]{display:flex;flex-direction:column}.personal-identifier-input-line[_ngcontent-%COMP%] .person-identifier[_ngcontent-%COMP%] a[_ngcontent-%COMP%]{word-break:break-all}.person-identifiers-list.cdk-drop-list-dragging[_ngcontent-%COMP%] .person-identifiers-box[_ngcontent-%COMP%]:not(.cdk-drag-placeholder){transition:transform .25s cubic-bezier(0,0,.2,1)}.mat-form-field[_ngcontent-%COMP%]{width:100%}.icon-drag[_ngcontent-%COMP%]{cursor:move;height:32px;margin:4px}.find-out[_ngcontent-%COMP%]{display:inline;margin-top:8px}.line[_ngcontent-%COMP%]{overflow-wrap:break-word;word-break:break-word}.delete-button[_ngcontent-%COMP%], app-visibility-selector[_ngcontent-%COMP%]{margin-inline-start:16px}.delete-button[_ngcontent-%COMP%]{margin-top:-3px}"]}),K})()},23898:(Qe,he,s)=>{"use strict";s.d(he,{T:()=>_e});var a=s(87845),r=s(56223),b=s(6990),D=s(72079),p=s(19352),E=s(88419),f=s(34221),c=s(6666),C=s(67555),m=s(65879),_=s(27599),g=s(71142),P=s(12160),U=s(13352),d=s(45081);const q=["descriptionInput"];function j(H,Te){1&H&&m._UZ(0,"div",31)}function K(H,Te){1&H&&(m.TgZ(0,"mat-error"),m.SDv(1,38),m.qZA())}function L(H,Te){1&H&&(m.TgZ(0,"mat-error"),m.SDv(1,39),m.qZA())}function w(H,Te){1&H&&(m.TgZ(0,"mat-error"),m.SDv(1,40),m.qZA())}function k(H,Te){1&H&&(m.TgZ(0,"mat-error"),m.SDv(1,41),m.qZA())}function X(H,Te){1&H&&(m.TgZ(0,"mat-error"),m.SDv(1,42),m.qZA())}function de(H,Te){if(1&H&&(m.TgZ(0,"mat-hint",43),m._UZ(1,"app-source-hit",44),m.qZA()),2&H){const Me=m.oxw(2).$implicit;m.xp6(1),m.Q6J("createdDate",Me.createdDate)("source",Me.sourceName||Me.source)("assertion",Me.assertionOriginName||Me.assertionOriginOrcid)}}const re=function(H){return{"read-only":H}},be=function(H){return{"website-input":H}};function pe(H,Te){if(1&H&&(m.ynx(0),m.TgZ(1,"mat-form-field",32),m._UZ(2,"input",33,34),m.YNc(4,K,2,0,"mat-error",10),m.qZA(),m.TgZ(5,"mat-form-field",35),m._UZ(6,"input",36),m.YNc(7,L,2,0,"mat-error",10),m.YNc(8,w,2,0,"mat-error",10),m.YNc(9,k,2,0,"mat-error",10),m.YNc(10,X,2,0,"mat-error",10),m.YNc(11,de,2,3,"mat-hint",37),m.qZA(),m.BQk()),2&H){const Me=m.oxw().$implicit,Pe=m.oxw(2);let dt,Pt;m.xp6(1),m.Q6J("ngClass",m.VKq(16,re,Me.source&&Me.source!==Pe.id)),m.xp6(1),m.MGl("placeholder"," ",Pe.ngOrcidDescription,""),m.Q6J("readonly",Me.source&&Me.source!==Pe.id)("ngClass",m.VKq(18,be,"rtl"===Pe.screenDirection)),m.uIk("aria-label",Pe.ariaLabelTitle),m.xp6(2),m.Q6J("ngIf",null==(dt=Pe.websitesForm.get(Me.putCode))||null==(Pt=dt.get("description"))||null==Pt.errors?null:Pt.errors.maxlength),m.xp6(1),m.Q6J("ngClass",m.VKq(20,re,Me.source&&Me.source!==Pe.id)),m.xp6(1),m.s9C("placeholder",Pe.ngOrcidUrl),m.Q6J("readonly",Me.source&&Me.source!==Pe.id)("ngClass",m.VKq(22,be,"rtl"===Pe.screenDirection)),m.uIk("aria-label",Pe.ariaLabelURL),m.xp6(1),m.Q6J("ngIf",Pe.websitesForm.get(Me.putCode).hasError("required","url")),m.xp6(1),m.Q6J("ngIf",Pe.websitesForm.get(Me.putCode).hasError("maxlength","url")),m.xp6(1),m.Q6J("ngIf",Pe.websitesForm.get(Me.putCode).hasError("pattern","url")),m.xp6(1),m.Q6J("ngIf",Pe.websitesForm.get(Me.putCode).hasError("duplicated","url")),m.xp6(1),m.Q6J("ngIf",Me.putCode.indexOf("new")<0)}}function $e(H,Te){1&H&&(m.TgZ(0,"mat-error"),m.SDv(1,45),m.qZA())}function Je(H,Te){1&H&&(m.TgZ(0,"mat-error"),m.SDv(1,46),m.qZA())}function qe(H,Te){1&H&&(m.TgZ(0,"mat-error"),m.SDv(1,47),m.qZA())}function it(H,Te){1&H&&(m.TgZ(0,"mat-error"),m.SDv(1,48),m.qZA())}function rt(H,Te){1&H&&(m.TgZ(0,"mat-error"),m.SDv(1,49),m.qZA())}function tt(H,Te){if(1&H&&(m.TgZ(0,"mat-hint",43),m._UZ(1,"app-source-hit",44),m.qZA()),2&H){const Me=m.oxw(2).$implicit;m.xp6(1),m.Q6J("createdDate",Me.createdDate)("source",Me.sourceName||Me.source)("assertion",Me.assertionOriginName||Me.assertionOriginOrcid)}}function _t(H,Te){if(1&H&&(m.ynx(0),m.TgZ(1,"mat-form-field",32),m._UZ(2,"input",33,34),m.YNc(4,$e,2,0,"mat-error",10),m.qZA(),m.TgZ(5,"mat-form-field",35),m._UZ(6,"input",36),m.YNc(7,Je,2,0,"mat-error",10),m.YNc(8,qe,2,0,"mat-error",10),m.YNc(9,it,2,0,"mat-error",10),m.YNc(10,rt,2,0,"mat-error",10),m.YNc(11,tt,2,3,"mat-hint",37),m.qZA(),m.BQk()),2&H){const Me=m.oxw().$implicit,Pe=m.oxw(2);let dt,Pt;m.xp6(1),m.Q6J("ngClass",m.VKq(16,re,Me.source&&Me.source!==Pe.id)),m.xp6(1),m.MGl("placeholder"," ",Pe.ngOrcidDescription,""),m.Q6J("readonly",Me.source&&Me.source!==Pe.id)("ngClass",m.VKq(18,be,"rtl"===Pe.screenDirection)),m.uIk("aria-label",Pe.ariaLabelTitle),m.xp6(2),m.Q6J("ngIf",null==(dt=Pe.websitesForm.get(Me.putCode))||null==(Pt=dt.get("description"))||null==Pt.errors?null:Pt.errors.maxlength),m.xp6(1),m.Q6J("ngClass",m.VKq(20,re,Me.source&&Me.source!==Pe.id)),m.xp6(1),m.s9C("placeholder",Pe.ngOrcidUrl),m.Q6J("readonly",Me.source&&Me.source!==Pe.id)("ngClass",m.VKq(22,be,"rtl"===Pe.screenDirection)),m.uIk("aria-label",Pe.ariaLabelURL),m.xp6(1),m.Q6J("ngIf",Pe.websitesForm.get(Me.putCode).hasError("required","url")),m.xp6(1),m.Q6J("ngIf",Pe.websitesForm.get(Me.putCode).hasError("maxlength","url")),m.xp6(1),m.Q6J("ngIf",Pe.websitesForm.get(Me.putCode).hasError("pattern","url")),m.xp6(1),m.Q6J("ngIf",Pe.websitesForm.get(Me.putCode).hasError("duplicated","url")),m.xp6(1),m.Q6J("ngIf",Me.putCode.indexOf("new")<0)}}const ze=function(H){return{direction:H}},Ze=function(H){return{"no-wrap":H}},ot=function(H){return{privacy:H}},Ct=function(H){return{selector:H}};function De(H,Te){if(1&H){const Me=m.EpF();m.TgZ(0,"div",20),m.YNc(1,j,1,0,"div",21),m.TgZ(2,"div",22)(3,"div",23)(4,"div",24),m._UZ(5,"img",25),m.qZA(),m.TgZ(6,"div",26),m.YNc(7,pe,12,24,"ng-container",10),m.YNc(8,_t,12,24,"ng-container",10),m.qZA()(),m.TgZ(9,"div",27),m._UZ(10,"app-visibility-selector",28),m.TgZ(11,"button",29),m.NdJ("click",function(){const Pt=m.CHM(Me).$implicit,Qt=m.oxw(2);return m.KtG(Qt.deleteWebsite(Pt.putCode))}),m.TgZ(12,"mat-icon",30),m._uU(13,"delete "),m.qZA()()()(),m._UZ(14,"hr",17),m.qZA()}if(2&H){const Me=Te.$implicit,Pe=Te.index,dt=m.oxw(2);let Pt,Qt;m.Q6J("ngStyle",m.VKq(10,ze,dt.screenDirection))("formGroupName",Me.putCode),m.uIk("id","draggable-"+Pe),m.xp6(2),m.Q6J("ngClass",m.VKq(12,Ze,!dt.isMobile)),m.xp6(5),m.Q6J("ngIf",!(Me.source&&Me.source!==dt.id)),m.xp6(1),m.Q6J("ngIf",Me.source&&Me.source!==dt.id),m.xp6(1),m.Q6J("ngClass",m.VKq(14,ot,!dt.platform.columns12)),m.xp6(1),m.Q6J("ngClass",m.VKq(16,Ct,!dt.platform.columns12))("itemTitle",(null==(Pt=dt.websitesForm.get(Me.putCode))?null:Pt.get("description").value)||""),m.xp6(1),m.uIk("aria-label",dt.ariaLabelDelete+" "+((null==(Qt=dt.websitesForm.get(Me.putCode))?null:Qt.get("description").value)||""))}}function ft(H,Te){if(1&H){const Me=m.EpF();m.ynx(0),m.TgZ(1,"div",11)(2,"h2",15),m.SDv(3,16),m.qZA()(),m._UZ(4,"hr",17),m.TgZ(5,"div",18),m.NdJ("cdkDropListDropped",function(dt){m.CHM(Me);const Pt=m.oxw();return m.KtG(Pt.drop(dt))}),m.YNc(6,De,15,18,"div",19),m.qZA(),m.BQk()}if(2&H){const Me=m.oxw();m.xp6(6),m.Q6J("ngForOf",Me.websites)}}function st(H,Te){1&H&&(m.ynx(0),m.SDv(1,50),m.BQk())}function bt(H,Te){1&H&&(m.ynx(0),m.SDv(1,51),m.BQk())}let _e=(()=>{var H;class Te{constructor(Pe,dt,Pt,Qt,cn,Ie,ne){this.window=Pe,this.dialogRef=dt,this._changeDetectorRef=Pt,this._platform=Qt,this._userService=cn,this._recordWebsitesService=Ie,this._snackBar=ne,this.ariaLabelSave="Save changes to Websites & social links",this.ariaLabelCancel="Cancel changes to Websites & social links",this.ariaLabelDelete="Delete Websites or social link",this.ariaLabelClose="Close Websites and social links",this.ariaLabelTitle="Websites or social link Title",this.ariaLabelURL="Link URL",this.$destroy=new D.xQ,this.screenDirection="ltr",this.addedWebsiteCount=0,this.loadingWebsites=!0,this.urlMaxLength=1999,this.urlTitleMaxLength=354,this.ngOrcidDescription="Link Title",this.ngOrcidUrl="Link URL",this._platform.get().pipe((0,p.R)(this.$destroy)).subscribe(ce=>{this.platform=ce,this.isMobile=ce.columns4||ce.columns8,this.screenDirection=ce.screenDirection}),this._userService.getUserSession().pipe((0,p.R)(this.$destroy)).subscribe(ce=>{this.userSession=ce})}ngOnInit(){this._recordWebsitesService.getWebsites().pipe((0,E.P)()).subscribe(Pe=>{this.defaultVisibility=Pe.visibility.visibility,this.originalBackendWebsites=(0,b.cloneDeep)(Pe),this.websites=this.originalBackendWebsites.websites;const dt={};this.originalBackendWebsites.websites.map(Pt=>dt[Pt.putCode]=Pt),this.backendJsonToForm(this.originalBackendWebsites),this.loadingWebsites=!1})}onSubmit(){}backendJsonToForm(Pe){const Pt={};Pe.websites.forEach(Qt=>{Pt[Qt.putCode]=new r.nJ({description:new r.p4(null==Qt.urlName?"":Qt.urlName.trim(),{validators:[r.kI.maxLength(this.urlTitleMaxLength)],updateOn:"change"}),url:new r.p4(Qt.url.value.trim(),{validators:[r.kI.required,C.a.patternAfterTrimming(f.Oe),this.allUrlsAreUnique(Qt.putCode),r.kI.maxLength(this.urlMaxLength)],updateOn:"change"}),visibility:new r.p4(Qt.visibility.visibility,{})})}),this.websitesForm=new r.nJ(Pt)}formToBackend(Pe){const dt={errors:[],websites:[],visibility:this.originalBackendWebsites.visibility};return this._changeDetectorRef.detach(),this.websites.reverse(),this.websites.map(Pt=>Pt.putCode).filter(Pt=>Pe.getRawValue()[Pt].url).forEach((Pt,Qt)=>{const cn=Pe.getRawValue()[Pt].description.trim(),Ie=Pe.getRawValue()[Pt].url.trim(),ne=Pe.getRawValue()[Pt].visibility;Pe.getRawValue()[Pt]&&dt.websites.push({putCode:0===Pt.indexOf("new-")?null:Pt,url:Ie,urlName:cn,displayIndex:Qt+1,source:this.userSession.userInfo.EFFECTIVE_USER_ORCID,visibility:{visibility:ne}})}),dt}saveEvent(){this.websitesForm.markAllAsTouched(),this.websitesForm.updateValueAndValidity(),this.websitesForm.valid?(this.loadingWebsites=!0,this._recordWebsitesService.postWebsites(this.formToBackend(this.websitesForm)).subscribe(()=>{this.closeEvent()},Pe=>{})):this._snackBar.showValidationError()}closeEvent(){this.dialogRef.close()}drop(Pe){(0,a.bA)(this.websites,Pe.previousIndex,Pe.currentIndex)}addWebsite(){const Pe="new-"+this.addedWebsiteCount;this.websitesForm.addControl(Pe,new r.nJ({description:new r.p4("",{validators:[r.kI.maxLength(this.urlTitleMaxLength)],updateOn:"change"}),url:new r.p4("",{validators:[r.kI.required,C.a.patternAfterTrimming(f.Oe),this.allUrlsAreUnique(Pe),r.kI.maxLength(this.urlMaxLength)],updateOn:"change"}),visibility:new r.p4(this.defaultVisibility,{})})),this.websites.push({putCode:"new-"+this.addedWebsiteCount,visibility:{visibility:this.defaultVisibility}}),this.addedWebsiteCount++,this._changeDetectorRef.detectChanges(),this.inputs.last.nativeElement.focus()}deleteWebsite(Pe){const dt=this.websites.findIndex(Pt=>Pt.putCode===Pe);this.websites.splice(dt,1),this.websitesForm.removeControl(Pe)}toMyLinks(){this.window.document.getElementById("my-links").scrollIntoView()}allUrlsAreUnique(Pe){return dt=>{if(!b.isUndefined(dt.value)&&!b.isEmpty(dt.value)&&this.websitesForm){const Pt=this.websitesForm,Qt=this.listDuplicateInputKeys(Pt);if(this.removeDuplicateErrorFromOtherControls(Qt,Pt),Qt.indexOf(Pe)>=0)return{duplicated:!0}}return{}}}listDuplicateInputKeys(Pe){const dt=[];return Object.keys(Pe.controls).forEach(Pt=>{let Qt=Pe.controls[Pt].controls.url.value;Qt=Qt.toLowerCase().trim(),Qt=this.removeProtocol(Qt),Object.keys(Pe.controls).forEach(cn=>{let Ie=Pe.controls[cn].controls.url.value;Ie=Ie.toLowerCase().trim(),Ie=this.removeProtocol(Ie),Qt&&Ie&&Qt===Ie&&Pt!==cn&&dt.push(cn)})}),dt}removeDuplicateErrorFromOtherControls(Pe,dt=new r.nJ({})){Object.keys(dt.controls).forEach(Pt=>{const Qt=dt.controls[Pt].controls.url;-1===Pe.indexOf(Pt)&&Qt.errors&&Qt.errors.duplicated&&(delete Qt.errors.duplicated,Qt.updateValueAndValidity({onlySelf:!0}))})}ngOnDestroy(){this.$destroy.next(!0),this.$destroy.unsubscribe()}removeProtocol(Pe){let dt=Pe;return 0===Pe.indexOf("http://")&&(dt=dt.replace("http://","")),0===Pe.indexOf("https://")&&(dt=dt.replace("https://","")),dt}}return(H=Te).\u0275fac=function(Pe){return new(Pe||H)(m.Y36(c.m9),m.Y36(_.hV),m.Y36(m.sBO),m.Y36(g.tu),m.Y36(P.KD),m.Y36(U.i),m.Y36(d.o))},H.\u0275cmp=m.Xpm({type:H,selectors:[["app-modal-websites"]],viewQuery:function(Pe,dt){if(1&Pe&&m.Gf(q,5),2&Pe){let Pt;m.iGM(Pt=m.CRH())&&(dt.inputs=Pt)}},decls:20,vars:9,consts:function(){let Me,Pe,dt,Pt,Qt,cn,Ie,ne,ce,Ve,mt,Ut,Bt,gt,nt,oe,Ce;return Me="Websites & social links",Pe="Save changes",dt="Cancel",Pt="Add links to personal websites, department profiles, Wikipedia pages or social media accounts.",Qt="My links",cn="Must be less than 355 characters",Ie="An URL is required",ne="Must be less than 2000 characters",ce="Invalid URL",Ve="URL can not be duplicated",mt="Must be less than 355 characters",Ut="An URL is required",Bt="Must be less than 2000 characters",gt="Invalid URL",nt="URL can not be duplicated",oe="Add a link",Ce="Add another link",[[3,"loading","noSidebar"],[3,"closeLabel"],Me,["mat-raised-button","","color","primary","id","save-websites-button",3,"click"],Pe,["mat-stroked-button","","color","primary","id","cancel-websites-button",3,"click"],dt,[1,"container","no-padding",3,"formGroup","ngSubmit"],["id","my-links",1,"orc-font-body-small"],Pt,[4,"ngIf"],[1,"row"],["id","add-link",1,"col","add-more","no-gutters",3,"click"],[1,"large-material-icon"],[1,"mat-body-1"],[1,"col","no-gutters","orc-font-body"],Qt,[1,"dashed-line"],["id","website-dropList","cdkDropList","",1,"row","websites-list",3,"cdkDropListDropped"],["cdkDrag","","class","row websites-box",3,"ngStyle","formGroupName",4,"ngFor","ngForOf"],["cdkDrag","",1,"row","websites-box",3,"ngStyle","formGroupName"],["class","row drag-placeholder",4,"cdkDragPlaceholder"],[1,"row","websites-input-line",3,"ngClass"],[1,"col","l12","m8","s4","top","no-wrap","no-gutters","input-container"],[1,"image-container"],["cdkDragHandle","","src","./assets/vectors/draggable.svg","aria-label","drag handle",1,"icon-drag"],[1,"row","web-site-input-container"],[1,"col","no-wrap","actions-wrapper",3,"ngClass"],["formControlName","visibility",3,"ngClass","itemTitle"],["mat-icon-button","",1,"delete-button",3,"click"],[1,"material-icons-outlined","extra-large-material-icon"],[1,"row","drag-placeholder"],["appearance","outline",1,"mat-form-field-min","description",3,"ngClass"],["matInput","","formControlName","description",1,"cy-description-input",3,"readonly","placeholder","ngClass"],["descriptionInput",""],["appearance","outline",1,"mat-form-field-min",3,"ngClass"],["matInput","","formControlName","url",1,"cy-url-input",3,"readonly","placeholder","ngClass"],["class","mat-caption",4,"ngIf"],cn,Ie,ne,ce,Ve,[1,"mat-caption"],[3,"createdDate","source","assertion"],mt,Ut,Bt,gt,nt,oe,Ce]},template:function(Pe,dt){1&Pe&&(m.TgZ(0,"app-modal",0)(1,"app-modal-header",1),m.ynx(2),m.SDv(3,2),m.BQk(),m.qZA(),m.TgZ(4,"app-modal-footer")(5,"button",3),m.NdJ("click",function(){return dt.saveEvent()}),m.SDv(6,4),m.qZA(),m.TgZ(7,"button",5),m.NdJ("click",function(){return dt.closeEvent()}),m.SDv(8,6),m.qZA()(),m.TgZ(9,"div",7),m.NdJ("ngSubmit",function(){return dt.onSubmit()}),m.TgZ(10,"p",8),m.SDv(11,9),m.qZA(),m.YNc(12,ft,7,1,"ng-container",10),m.TgZ(13,"div",11)(14,"a",12),m.NdJ("click",function(){return dt.addWebsite()}),m.TgZ(15,"mat-icon",13),m._uU(16,"add_circle_outline"),m.qZA(),m.TgZ(17,"span",14),m.YNc(18,st,2,0,"ng-container",10),m.YNc(19,bt,2,0,"ng-container",10),m.qZA()()()()()),2&Pe&&(m.Q6J("loading",dt.loadingWebsites)("noSidebar",!0),m.xp6(1),m.Q6J("closeLabel",dt.ariaLabelClose),m.xp6(4),m.uIk("aria-label",dt.ariaLabelSave),m.xp6(2),m.uIk("aria-label",dt.ariaLabelCancel),m.xp6(2),m.Q6J("formGroup",dt.websitesForm),m.xp6(3),m.Q6J("ngIf",(null==dt.websites?null:dt.websites.length)>0),m.xp6(6),m.Q6J("ngIf",0===(null==dt.websites?null:dt.websites.length)),m.xp6(1),m.Q6J("ngIf",0!==(null==dt.websites?null:dt.websites.length)))},styles:["[_nghost-%COMP%]{width:100%} .columns-4-or-8 .mat-form-field{width:100%;margin-inline-end:auto}.websites-list.cdk-drop-list-dragging[_ngcontent-%COMP%] .websites-box[_ngcontent-%COMP%]:not(.cdk-drag-placeholder){transition:transform .25s cubic-bezier(0,0,.2,1)}.description[_ngcontent-%COMP%] .mat-form-field-wrapper{padding-bottom:16px!important;margin-bottom:4px}.websites-input-line[_ngcontent-%COMP%] .image-container[_ngcontent-%COMP%]{height:80%;display:flex;align-items:center;justify-content:space-around}.websites-input-line[_ngcontent-%COMP%] .image-container[_ngcontent-%COMP%] img[_ngcontent-%COMP%]{cursor:move;margin-inline-start:6px;margin-inline-end:10px}.websites-input-line[_ngcontent-%COMP%] .input-container[_ngcontent-%COMP%]{margin-top:10px;margin-bottom:4px}.websites-input-line[_ngcontent-%COMP%] button[_ngcontent-%COMP%]{margin:auto 0}.websites-input-line[_ngcontent-%COMP%] .privacy[_ngcontent-%COMP%]{width:100%;max-height:60px;margin:0}.websites-input-line[_ngcontent-%COMP%] .privacy[_ngcontent-%COMP%] button[_ngcontent-%COMP%]{margin:0 0 0 auto!important}.websites-input-line[_ngcontent-%COMP%] .selector[_ngcontent-%COMP%]{margin:0!important} .columns-4-or-8 .websites-input-line .input-container{padding-bottom:30px}.icon-drag[_ngcontent-%COMP%]{height:32px;margin:4px}.actions-wrapper[_ngcontent-%COMP%]{flex-wrap:nowrap;display:flex;align-items:center;height:80%} .columns-4-or-8 .websites-input-line .actions-wrapper{padding-bottom:10px}.mat-form-field[_ngcontent-%COMP%]{width:100%;margin-inline-end:16px} .columns-4-or-8 .mat-form-field{margin-inline-end:0}.website-input[_ngcontent-%COMP%]{text-align:right!important}.add-more[_ngcontent-%COMP%]{margin-top:16px}.add-more[_ngcontent-%COMP%] span[_ngcontent-%COMP%]{margin:auto;padding-left:6px}.drag-placeholder[_ngcontent-%COMP%]{min-height:120px}.actions-wrapper[_ngcontent-%COMP%]{padding:0 32px 0 0}.web-site-input-container[_ngcontent-%COMP%]{display:flex;flex-direction:column}.web-site-input-container[_ngcontent-%COMP%] p[_ngcontent-%COMP%]{margin:0;padding-bottom:6px}.web-site-input-container[_ngcontent-%COMP%] .not-editable-url[_ngcontent-%COMP%]{position:relative;display:flex;flex-direction:column;padding-bottom:15px}.web-site-input-container[_ngcontent-%COMP%] .not-editable-url[_ngcontent-%COMP%] a[_ngcontent-%COMP%]{word-break:break-all}.web-site-input-container[_ngcontent-%COMP%] .not-editable-description[_ngcontent-%COMP%]{padding-top:15px} .columns-4-or-8 .actions-wrapper{padding:0}.delete-button[_ngcontent-%COMP%], app-visibility-selector[_ngcontent-%COMP%]{margin-inline-start:16px}.delete-button[_ngcontent-%COMP%]{margin-top:-3px}button.mat-focus-indicator.delete-button.mat-icon-button[_ngcontent-%COMP%]{margin-inline-start:16px}"]}),Te})()},75803:(Qe,he,s)=>{"use strict";s.d(he,{m:()=>p});var a=s(96814),r=s(30617),b=s(21865),A=s(94505),D=s(65879);let p=(()=>{var E;class f{}return(E=f).\u0275fac=function(C){return new(C||E)},E.\u0275mod=D.oAB({type:E}),E.\u0275inj=D.cJS({imports:[a.ez,r.Ps,b.y,A.yu]}),f})()},45081:(Qe,he,s)=>{"use strict";s.d(he,{o:()=>U});var a=s(51418),r=s(75803),b=s(22939),A=s(65879),D=s(71142),p=s(96814),E=s(30617),f=s(94505);function c(d,q){1&d&&(A.TgZ(0,"mat-icon",8),A._uU(1,"error"),A.qZA())}function C(d,q){if(1&d){const j=A.EpF();A.TgZ(0,"button",9),A.NdJ("click",function(){A.CHM(j);const L=A.oxw();return A.KtG(L.snackBarRef.dismiss())}),A.TgZ(1,"mat-icon"),A._uU(2,"close"),A.qZA()()}if(2&d){const j=A.oxw();A.uIk("aria-label",j.labelClose)}}function m(d,q){if(1&d&&(A.TgZ(0,"a",10),A._uU(1),A.qZA()),2&d){const j=A.oxw();A.Q6J("href",j.data.displayMessage.actionURL,A.LSH),A.xp6(1),A.hij(" ",j.data.displayMessage.action," ")}}let _=(()=>{var d;class q{constructor(K,L,w){var k,X;this.snackBarRef=K,this.data=L,this._platform=w,this._contentDirection="ltr",this.labelClose="Close",this.isIE=!1,this.closable=null==(k=L.displayMessage)?void 0:k.closable,this._contentDirection=null==(X=L.displayMessage)?void 0:X.contentDirection,this._platform.get().pipe((0,a.q)(1)).subscribe(de=>{this.isIE=de.ie})}ngOnInit(){}}return(d=q).\u0275fac=function(K){return new(K||d)(A.Y36(b.OX),A.Y36(b.qD),A.Y36(D.tu))},d.\u0275cmp=A.Xpm({type:d,selectors:[["app-snackbar"]],hostVars:1,hostBindings:function(K,L){2&K&&A.uIk("dir",L._contentDirection)},decls:11,vars:6,consts:[["class","errorGroup",4,"ngIf"],[1,"close-button-container"],["mat-icon-button","",3,"click",4,"ngIf"],[1,"box","mat-body-1"],[1,"mat-subheading-2"],[1,"error-container"],["rel","noopener noreferrer","target","_blank","class","white-url",3,"href",4,"ngIf"],[1,"mat-caption"],[1,"errorGroup"],["mat-icon-button","",3,"click"],["rel","noopener noreferrer","target","_blank",1,"white-url",3,"href"]],template:function(K,L){1&K&&(A.YNc(0,c,2,0,"mat-icon",0),A.TgZ(1,"div",1),A.YNc(2,C,3,1,"button",2),A.qZA(),A.TgZ(3,"div",3)(4,"div",4),A._uU(5),A.qZA(),A.TgZ(6,"div",5),A._uU(7),A.YNc(8,m,2,2,"a",6),A.qZA(),A.TgZ(9,"div",7),A._uU(10),A.qZA()()),2&K&&(A.Q6J("ngIf",!L.isIE),A.xp6(2),A.Q6J("ngIf",L.closable),A.xp6(3),A.Oqu(null==L.data.displayMessage?null:L.data.displayMessage.title),A.xp6(2),A.hij(" ",null==L.data.displayMessage?null:L.data.displayMessage.message," "),A.xp6(1),A.Q6J("ngIf",(null==L.data.displayMessage?null:L.data.displayMessage.action)&&(null==L.data.displayMessage?null:L.data.displayMessage.actionURL)),A.xp6(2),A.Oqu(null==L.data?null:L.data.caption))},dependencies:[p.O5,E.Hw,f.eB],styles:["mat-icon[_ngcontent-%COMP%], div[_ngcontent-%COMP%]{color:#fff}","[_nghost-%COMP%]{display:flex;align-items:center;overflow-wrap:anywhere}.close-button-container[_ngcontent-%COMP%]{position:absolute;right:0;top:4px;width:50px}[dir=rtl][_ngcontent-%COMP%] .close-button-container[_ngcontent-%COMP%]{left:0}mat-icon.errorGroup[_ngcontent-%COMP%]{font-size:30px;height:30px;width:35px;margin:10px}[dir=rtl][_ngcontent-%COMP%] mat-icon.errorGroup[_ngcontent-%COMP%]{margin-left:10px}.mat-subheading-2[_ngcontent-%COMP%]{margin:0}.mat-caption[_ngcontent-%COMP%]{text-align:right}.error-container[_ngcontent-%COMP%]{margin-bottom:10px}"]}),q})();var g=s(20553),P=s(21865);let U=(()=>{var d;class q{constructor(K,L){this._snackBar=K,this.horizontalPosition="right",this.contentDirection="ltr",L.get().pipe((0,a.q)(1)).subscribe(w=>{w.rtl&&(this.horizontalPosition="left",this.contentDirection="rtl")})}showErrorMessage(K,L){let w;null!=L&&L.display&&(!L.display.displayOnlyOnVerboseEnvironment||g.N.VERBOSE_SNACKBAR_ERRORS_REPORTS)&&(w={...L.display,contentDirection:L.display.contentDirection||this.contentDirection,closable:typeof L.display.closable<"u"&&L.display.closable},this._snackBar.openFromComponent(_,{data:{displayMessage:w,caption:K.message},horizontalPosition:this.horizontalPosition,verticalPosition:"bottom",panelClass:"orcid-error",duration:1e4})),null!=L&&L.analytics&&console.error(`\n __Report error GA__\n description: ${L.analytics.code}/${K.message}\`.replace(/ /g, '')\n fatal: ${L.analytics.fatal}\n `)}showValidationError(K="Please review the form and fix the issues before saving",L="Form validation error"){this._snackBar.openFromComponent(_,{data:{displayMessage:{contentDirection:this.contentDirection,closable:!0,title:L,message:K}},horizontalPosition:this.horizontalPosition,verticalPosition:"bottom",panelClass:"orcid-error",duration:15e3})}showSuccessMessage(K){this._snackBar.openFromComponent(_,{data:{displayMessage:K},horizontalPosition:this.horizontalPosition,verticalPosition:"bottom",panelClass:"orcid-success",duration:1e3*(K.closable?90:15)})}}return(d=q).\u0275fac=function(K){return new(K||d)(A.LFG(P.pl),A.LFG(D.tu))},d.\u0275prov=A.Yz7({token:d,factory:d.\u0275fac,providedIn:r.m}),q})()},6666:(Qe,he,s)=>{"use strict";s.d(he,{m9:()=>b,Yp:()=>c,y$:()=>C});var a=s(96814),r=s(65879);const b=new r.OlP("WindowToken");class A{get nativeWindow(){throw new Error("Not implemented.")}}const c=[{provide:A,useClass:(()=>{var m;class _ extends A{constructor(){window.outOfRouterNavigation||(window.outOfRouterNavigation=P=>{window.location.href=P}),super()}get nativeWindow(){return window}}return(m=_).\u0275fac=function(P){return new(P||m)},m.\u0275prov=r.Yz7({token:m,factory:m.\u0275fac}),_})()},{provide:b,useFactory:function p(m,_){return(0,a.NF)(_)?m.nativeWindow:new Object},deps:[A,r.Lbi]}];let C=(()=>{var m;class _{}return(m=_).\u0275fac=function(P){return new(P||m)},m.\u0275mod=r.oAB({type:m}),m.\u0275inj=r.cJS({providers:[c]}),_})()},34221:(Qe,he,s)=>{"use strict";s.d(he,{RW:()=>Ie,jC:()=>rt,Z4:()=>qe,CS:()=>it,FH:()=>Ve,Lc:()=>_e,NE:()=>st,vK:()=>bt,L8:()=>at,iN:()=>K,VP:()=>L,mp:()=>ne,jO:()=>Kt,dQ:()=>$e,hD:()=>pe,kT:()=>H,qZ:()=>be,bM:()=>ft,UH:()=>ze,nH:()=>_t,EG:()=>De,d$:()=>Ze,Tq:()=>Ct,Yi:()=>ot,lb:()=>je,tF:()=>Ot,$m:()=>Fe,gO:()=>We,gW:()=>kt,Ei:()=>Ft,Rs:()=>w,Rc:()=>k,h1:()=>X,kF:()=>Te,yV:()=>Je,Oe:()=>de,ur:()=>re,kD:()=>ce,Ow:()=>tt,eT:()=>pt,Xw:()=>xt,NH:()=>Pe,oy:()=>mt,z8:()=>Ut,U6:()=>Bt,ev:()=>nt,tt:()=>gt,Bo:()=>oe});var a=s(56223),r=s(93643),b=s(18850),A=s(89188),D=s(11362),p=s(82777),E=s(81981),f=s(54558),c=s(74191),C=s(67022),m=s(34572),_=s(79884),g=s(83888),P=s(23898),U=s(71057),d=s(50714);s(20553);const K=/^([^@\s]|(".+"))+@([^@\s\."'\(\)\[\]\{\}\\/,:;]+\.)+([^@\s\."'\(\)\[\]\{\}\\/,:;]{2,})+$/,L=/^\s*?(.+)@(.+?)\s*$/,w=/(\d{4}[- ]{0,}){3}\d{3}[\dX]$/,k=/(\d{4}[- ]{0,}){3}\d{3}[\dX]$/i,X=/(orcid\.org\/|qa\.orcid\.org\/|sandbox\.orcid\.org\/|dev\.orcid\.org\/|localhost.*)(\d{4}[- ]{0,}){3}\d{3}[\dX]$/i,de=/^(?:http(s)?:\/\/)?[\w.-]+(?:\.[\w\.-]+)+[\w\-\._~:/?#%[\]@!\$&'\(\)\*\+\\,;=.>< ]+$/i,re=/^((https?):\/\/)[\w.-]+(?:\.[\w\.-]+)+[\w\-\._~:/?#%[\]@!\$&'\(\)\*\+\\,;=.>< ]+$/i,be=/([@\$!])/,pe=/(?=.*[0-9]).*/,$e=/(?=.*[^\d\s]).*/,Je=/(?=redirect_uri=)(.*?)(?=orcidapi)|(?=redirect_uri=)(.*?)$/,qe=/^(\d+(\.\d{1,2})?|\.?\d{1,2})$/,it=/(?=.*\d)^(([1-9]\d{0,2}(,\d{3})*)|0)?(\.\d{1,2})?$/,rt=/^\d+$/,tt=/\s+/g,_t="edit",ze="delete",Ze="hide",ot="show",Ct="select",De="expand",ft="collapse",st={myOrcid:"my-orcid",twoFactor:"2fa-signin",twoFactorSetup:"2FA/setup",institutionalLinking:"institutional-linking",social:"social-linking",institutional:"institutional-signin",inbox:"inbox",login:"login",signin:"signin",authorize:"oauth/authorize",search:"orcid-search/search",reactivation:"reactivation",resetPassword:"reset-password",register:"register",thirdPartySignIn:"third-party-signin-completed",account:"account",trustedParties:"trusted-parties",resetPasswordEmail:"reset-password-email",selfService:"self-service",developerTools:"developer-tools",home:""},bt={[st.home]:"ORCID",[st.twoFactor]:"2FA - ORCID",[st.twoFactorSetup]:"2FA - ORCID",[st.institutionalLinking]:"Institutional linking - ORCID",[st.social]:"Social linking - ORCID",[st.institutional]:"Institutional sign in - ORCID",[st.inbox]:"Notifications inbox - ORCID",[st.login]:"Sign in - ORCID",[st.signin]:"Sign in - ORCID",[st.authorize]:"Oauth - ORCID",[st.search]:"Search - ORCID",[st.reactivation]:"Account reactivation - ORCID",[st.resetPassword]:"Reset password - ORCID",[st.register]:"Register - ORCID",[st.thirdPartySignIn]:"Sign in - ORCID",[st.account]:"Account settings - ORCID",[st.trustedParties]:"Trusted parties - ORCID",[st.resetPasswordEmail]:"Reset password - ORCID",[st.selfService]:"Self Service - ORCID",[st.developerTools]:"Developer tools - ORCID"},_e={orcidPageTitle:"- ORCID",orcidMyPageTitle:"- My ORCID"},H=[st.twoFactor,st.twoFactorSetup,st.social,st.institutionalLinking,st.institutional,st.login,st.signin,st.authorize,st.resetPassword,st.register],Te={navigationStartPrefix:"start_",navigationEndPrefix:"ends_"};function Me(St){return St&&w.test(St)}function Pe(St){const Ye=k.exec(St);if(null!=Ye){const Ee=(St=(St=Ye[0].toString().replace(/ /g,"")).toString().replace(/-/g,"")).toString().replace(/(.{4})/g,"$1-");St=Ee.substring(0,Ee.length-1).toUpperCase()}return St}var Ie=function(St){return St[St.addManually=0]="addManually",St[St.doi=1]="doi",St[St.searchAndLink=2]="searchAndLink",St[St.pubMed=3]="pubMed",St[St.bibText=4]="bibText",St}(Ie||{}),ne=function(St){return St[St.doi=0]="doi",St[St.pubMed=1]="pubMed",St}(ne||{});const ce=["PUBLIC","LIMITED","PRIVATE"],Ve=10;function mt(St){return St.url.toLowerCase().includes("oauth/authorize")}function Ut(St){return Object.keys(St).map(Zt=>`${Zt}=${encodeURIComponent(St[Zt])}`).join("&")}function Bt(St){return St[0]&&Me(St[0].path)?{consumed:[St[0]]}:{consumed:[]}}function gt(St){return St[0]&&Me(St[0].path)&&St[1]&&"summary"===St[1].path?{consumed:[St[0],St[1]]}:{consumed:[]}}function nt(St){if(St[0]&&St[0].path.match(new RegExp(st.reactivation,"g")))return{consumed:St}}function oe(St){if(St[1]&&St[1].path.match(new RegExp(st.thirdPartySignIn,"g"))||St[2]&&St[2].path.match(new RegExp(st.thirdPartySignIn,"g")))return{consumed:St}}const at=50,Ot=99,Fe=999,je=4999,kt=1999,We=254,Ft=2083;function Kt(St){if(St instanceof a.p4)return St.errors??null;if(St instanceof a.nJ){const Zt=St.errors,Ye=Zt?{groupErrors:Zt}:{};return Object.keys(St.controls).forEach(Ee=>{const vt=Kt(St.get(Ee));vt instanceof Array?vt.forEach(ye=>{null===ye||(Ye[Ee]=vt)}):null!==vt&&(Ye[Ee]=vt)}),Object.keys(Ye).length>0?Ye:null}if(St instanceof a.vC){const Zt=St.errors,Ye=Zt?[Zt]:[];return St.controls.forEach(Ee=>{const vt=Kt(Ee);Ye.push(vt)}),Ye.length>0?Ye:null}}function xt(St,Zt){switch(St){case b.X:switch(Zt){case"employment":return "Manage employment dialog";case"education":return "Manage education dialog";case"qualification":return "Manage qualification dialog";case"distinction":return "Manage distinction dialog";case"invited-position":return "Manage invited position dialog";case"membership":return "Manage membership dialog";case"service":return "Manage service dialog"}case d.Y4:return "Manage bibtex dialog";case C.S:return "Manage external identifier dialog";case A.Q:return "Manage your names dialog";case m.D:return "Manage your biography dialog";case r.o:return "Manage your emails dialog";case _.L:return "Manage your countries dialog";case g.d:return "Manage your keywords dialog";case U.r:return "Manage your other IDs dialog";case P.T:return "Manage your websites & social links dialog";case D.e:return "Manage funding dialog";case p.D:return "Manage funding search dialog";case f.L:return "Manage work dialog";case E.z:return "Manage work search dialog";case c.G:return "Manage peer review dialog"}}function pt(St,Zt){return St.filter(Ye=>Ye.type===Zt)[0]}},24953:(Qe,he,s)=>{"use strict";s.d(he,{I:()=>f});var a=s(69862),r=s(71142),b=s(6666),A=s(21476),D=s(65879);let p=(()=>{var c;class C extends A.ye{constructor(){super(...arguments),this.firstPageLabel="First page",this.itemsPerPageLabel="Items per page:",this.lastPageLabel="Last page",this.nextPageLabel="Next page",this.previousPageLabel="Previous page",this.ofLabel="of",this.pageLabel="Page",this.getRangeLabel=(_,g,P)=>{const U=0===P||0===g?0:Math.ceil(P/g);return` ${this.pageLabel} ${_+1} ${this.ofLabel} ${U}`}}}return(c=C).\u0275fac=function(){let m;return function(g){return(m||(m=D.n5z(c)))(g||c)}}(),c.\u0275prov=D.Yz7({token:c,factory:c.\u0275fac}),C})();var E=s(75803);let f=(()=>{var c;class C{}return(c=C).\u0275fac=function(_){return new(_||c)},c.\u0275mod=D.oAB({type:c}),c.\u0275inj=D.cJS({providers:[b.Yp,{provide:A.ye,useClass:p}],imports:[a.JF,r.iT,a.PD,b.y$,E.m]}),C})()},31409:(Qe,he,s)=>{"use strict";s.d(he,{j:()=>g});var a=s(8367),r=s(88419),b=s(96124),A=s(17927),D=s(76406),p=s(62413),E=s(51418),f=s(20553),c=s(30742),C=s(65879),m=s(69862),_=s(4049);let g=(()=>{var P;class U{constructor(q,j){this._http=q,this._errorHandler=j}getInstitutionsNames(q,j){const K=this.getDiscoFeedInstitutionsNames(q);let L;return j&&j.length>0?(L=K.filter(w=>(w=w.toLowerCase(),j=j.toLocaleLowerCase(),-1!==w.indexOf(j.toLowerCase()))),L=L.slice(0,f.N.INSTITUTIONAL_AUTOCOMPLETE_DISPLAY_AMOUNT)):L=K,L}getInstitutionBaseOnName(q,j){return q=q.toLowerCase(),j.find(K=>{var L;return null==(L=null==K?void 0:K.DisplayNames)?void 0:L.find(w=>"en"===w.lang&&w.value.toLocaleLowerCase()===q)})}getInstitutionBaseOnID(q){return this.getDiscoFeed().pipe((0,r.P)(),(0,b.U)(j=>this.getInstitutionBaseOnIDFromObject(j,q)))}getInstitutionBaseOnIDFromObject(q,j){return q.find(K=>(null==K?void 0:K.entityID)===j)}getInstitutionNameBaseOnId(q){return this.getInstitutionBaseOnID(q).pipe((0,b.U)(j=>this.getInstitutionNameBaseOnIdFromObject(j)))}getInstitutionNameBaseOnIdFromObject(q){var j,K;return null==(K=null==(j=null==q?void 0:q.DisplayNames)?void 0:j.filter(L=>"en"===L.lang).map(L=>L.value))?void 0:K[0]}getDiscoFeed(){return this.discoFeedSubject?this.discoFeedSubject.pipe((0,E.q)(1)):(this.discoFeedSubject=new a.t(1),this._http.get(f.N.BASE_URL+"Shibboleth.sso/DiscoFeed").pipe((0,A.b)(q=>{this.discoFeedSubject.next(q)}),(0,D.X)(3),(0,p.K)(q=>this._errorHandler.handleError(q,c.l.STANDARD_VERBOSE))))}getDiscoFeedInstitutionsNames(q){return this.discoFeedToInstitutionNames(q)}discoFeedToInstitutionNames(q){const j=[];return q.map(K=>K.DisplayNames.filter(L=>"en"===L.lang).map(L=>j.push(L.value))),j}}return(P=U).\u0275fac=function(q){return new(q||P)(C.LFG(m.eN),C.LFG(_.q))},P.\u0275prov=C.Yz7({token:P,factory:P.\u0275fac,providedIn:"root"}),U})()},4049:(Qe,he,s)=>{"use strict";s.d(he,{q:()=>_});var a=s(69862),r=s(49193),b=s(16222),A=s(75222),D=s(62413),p=s(51418),E=s(30742),f=s(65879),c=s(30414),C=s(71142),m=s(45081);let _=(()=>{var g;class P{constructor(d,q,j){this._cookie=d,this._platform=q,this._snackBar=j,this.browserSupport="unchecked",this.checkBrowser()}handleError(d,q=E.l.STANDARD_NO_VERBOSE){return(0,r.of)({}).pipe((0,A.w)(()=>{const j=this.browserSupport+this.checkCSRF();if(d instanceof a.UA){const K=d.url.split("/"),L=K[K.length-1];return(0,b._)({...d,message:`${d.status}/${d.name}/${j}/${L}`})}return(0,b._)({...d,message:`${d.name}'/'${d.message}/${j}`})})).pipe((0,D.K)(j=>(j instanceof a.UA?console.error(`\n__Server error__\n(status:${j.status} (${j.statusText}) url: ${j.url})\nname: "${j.name}"\nmessage: "${j.message}"\nok: "${j.ok}"\n `):console.error(`\n__Local error__\n(name:${j.name})\nmessage: "${j.message}"\nstack: "${j.stack}"\n `),this._snackBar.showErrorMessage(j,q),(0,b._)(j))))}xml2jsParser(d){console.error(d)}checkBrowser(){this._platform.get().pipe((0,p.q)(1)).subscribe(d=>{this.browserSupport=d.unsupportedBrowser?"unsupported":""})}checkCSRF(){return this._cookie.get("XSRF-TOKEN")?"":"no-XSRF"}}return(g=P).\u0275fac=function(d){return new(d||g)(f.LFG(c.N),f.LFG(C.tu),f.LFG(m.o))},g.\u0275prov=f.Yz7({token:g,factory:g.\u0275fac,providedIn:"root"}),P})()},39359:(Qe,he,s)=>{"use strict";s.d(he,{k:()=>C});var a=s(20553),r=s(45125),b=s(54699),A=s(59456),D=s(62413),p=s(30742),E=s(6666),f=s(65879),c=s(4049);let C=(()=>{var m;class _{constructor(P,U){this._errorHandler=P,this._window=U,this._loading=new r.X(!1),this.loading$=this._loading.asObservable(),this.isLoaded=!1}pushTag(P){return new b.y(U=>{this.isLoaded?((0,A.y5)(P),this.isGtmRunning()?(U.next(),U.complete()):U.error({name:"GTM - Error",message:"Gtm is not adding uniqueEventId attributes"})):this.addGtmToDom().pipe((0,D.K)(d=>this._errorHandler.handleError(d,p.l.STANDARD_NO_VERBOSE_NO_GA))).subscribe(d=>{d&&((0,A.y5)(P),this.isGtmRunning()?(U.next(),U.complete()):U.error({name:"GTM - Error",message:"Gtm is not adding uniqueEventId attributes"}))},()=>{U.error({name:"GTM - Error",message:"Unable to add GTM"})})})}isGtmRunning(){return(this._window.dataLayer||[]).some(U=>U["gtm.uniqueEventId"])}addGtmToDom(){return new b.y(P=>{this.isLoaded&&(P.next(!0),P.complete());const U=A.ZB.documentRef();(0,A.y5)({"gtm.start":(new Date).getTime(),event:"gtm.js"});const d=U.createElement("script");d.id="GTM",d.async=!0,d.src="https://www.googletagmanager.com/gtm.js?id="+a.N.GOOGLE_TAG_MANAGER,d.setAttributeNode(U.createAttribute("data-ot-ignore")),d.addEventListener("load",()=>{this.isLoaded=!0,P.next(!0),P.complete()}),d.addEventListener("error",()=>{P.error({name:"GTM - Error",message:"Unable to add GTM"})}),U.head.insertBefore(d,U.head.firstChild)})}reportPageView(P){a.N.debugger&&console.debug(`GTM Navigation ${P}`),this.pushTag({event:"page",pageName:P}).subscribe()}reportEvent(P,U){let d,q;"string"!=typeof U&&(d=U.clientId,q=U.redirectUrl,U="OAuth "+(0,A.Zs)(U)),a.N.debugger&&console.debug(`GTM - Event /${P}/${U}/`);let j={event:P,label:U};return d&&(j.clientId=d),"Reauthorize"===P&&(j.redirectUrl=q),this.pushTag(j)}reportNavigationEnd(P,U){if(U)return a.N.debugger&&console.debug(`GTM - Took ${U} to load ${P}`),this.pushTag({event:"timing_complete",orcid:(0,A.$f)(P),duration:Math.round(U),pageName:P})}}return(m=_).\u0275fac=function(P){return new(P||m)(f.LFG(c.q),f.LFG(E.m9))},m.\u0275prov=f.Yz7({token:m,factory:m.\u0275fac,providedIn:"root"}),_})()},90196:(Qe,he,s)=>{"use strict";s.d(he,{m:()=>g});var a=s(69862),r=s(8367),b=s(17927),A=s(75222),D=s(76406),p=s(62413),E=s(96124),f=s(34221),c=s(30742),C=s(20553),m=s(65879),_=s(4049);let g=(()=>{var P;class U{constructor(q,j){this._http=q,this._errorHandler=j,this.nextLoadRequireAFullBackendSyncronization=!1,this.currentLevel=0,this.inboxSubject=new r.t(1),this.headers=new a.WM({"Access-Control-Allow-Origin":"*"})}get(q=!1,j=!1){return null===this.currentlyIncludingArchive?this.currentlyIncludingArchive=j:this.currentlyIncludingArchive!==j&&(this.currentlyIncludingArchive=j,this.currentLevel=0,this.lastEmittedValue=null),q&&this.lastEmittedValue&&this.currentLevel++,this.getNotifications(this.currentLevel,j).pipe((0,b.b)(K=>{this.nextLoadRequireAFullBackendSyncronization&&(this.lastEmittedValue=null,this.nextLoadRequireAFullBackendSyncronization=!1),this.lastEmittedValue=this.lastEmittedValue?this.lastEmittedValue.concat(K):K,this.inboxSubject.next(this.lastEmittedValue)}),(0,A.w)(()=>this.inboxSubject.asObservable()))}getNotifications(q,j){return this._http.get(this.nextLoadRequireAFullBackendSyncronization?`inbox/notifications.json?firstResult=0&maxResults=${f.FH*q+f.FH}&includeArchived=${j}`:C.N.BASE_URL+`inbox/notifications.json?firstResult=${f.FH*q}&maxResults=${f.FH}&includeArchived=${j}`,{headers:this.headers}).pipe((0,D.X)(3),(0,p.K)(K=>this._errorHandler.handleError(K,c.l.STANDARD_VERBOSE)))}flagAsArchive(q,j=!0){return this._http.post(C.N.BASE_URL+`inbox/${q}/archive.json`,q,{headers:this.headers}).pipe((0,D.X)(3),(0,p.K)(K=>this._errorHandler.handleError(K,c.l.STANDARD_VERBOSE)),(0,b.b)(K=>{this.lastEmittedValue.forEach((L,w)=>{L.putCode===K.putCode&&(this.currentlyIncludingArchive?(L.archivedDate=K.archivedDate,L.readDate=K.readDate):(this.lastEmittedValue.splice(w,1),this.nextLoadRequireAFullBackendSyncronization=!0))}),j&&this.emitUpdate()}))}emitUpdate(){this.inboxSubject.next(this.lastEmittedValue)}flagAsRead(q){return this._http.post(C.N.BASE_URL+`inbox/${q}/read.json`,q,{headers:this.headers}).pipe((0,D.X)(3),(0,p.K)(j=>this._errorHandler.handleError(j)),(0,b.b)(j=>{this.lastEmittedValue.forEach(K=>{K.putCode===j.putCode&&(K.readDate=j.readDate)}),this.inboxSubject.next(this.lastEmittedValue)}))}retrieveUnreadCount(){return this._http.get(C.N.BASE_URL+"inbox/unreadCount.json")}totalNumber(){return this._http.get(C.N.BASE_URL+"inbox/totalCount.json",{headers:this.headers}).pipe((0,D.X)(3),(0,E.U)(q=>(q.archived=q.all-q.nonArchived,q)),(0,p.K)(q=>this._errorHandler.handleError(q)))}}return(P=U).\u0275fac=function(q){return new(q||P)(m.LFG(a.eN),m.LFG(_.q))},P.\u0275prov=m.Yz7({token:P,factory:P.\u0275fac,providedIn:"root"}),U})()},12160:(Qe,he,s)=>{"use strict";s.d(he,{Yc:()=>C,zT:()=>g,KD:()=>P.K});var a=s(54699),r=s(76406),b=s(62413),A=s(96743),D=s(20553),p=s(99603),E=s(65879),f=s(69862),c=s(4049);let C=(()=>{var U;class d{constructor(j,K){this._http=j,this._errorHandler=K,this.parser=new p.Parser}getNews(){return this._http.get(D.N.API_NEWS,{responseType:"text"}).pipe((0,r.X)(3),(0,b.K)(K=>this._errorHandler.handleError(K)),(0,A.zg)(K=>new a.y(L=>{this.parser.parseString(K,(w,k)=>{w?this._errorHandler.xml2jsParser(w):k&&k.rss&&k.rss.channel&&k.rss.channel[0]&&k.rss.channel[0].item?L.next(k.rss.channel[0].item.filter((X,de)=>de<6)):this._errorHandler.xml2jsParser("invalid data response")})})))}}return(U=d).\u0275fac=function(j){return new(j||U)(E.LFG(f.eN),E.LFG(c.q))},U.\u0275prov=E.Yz7({token:U,factory:U.\u0275fac,providedIn:"root"}),d})();s(45574);var _=s(49193);let g=(()=>{var U;class d{constructor(j,K){this._http=j,this._errorHandler=K}getOrgDisambiguated(j,K){return j&&K?this._http.get(D.N.API_WEB+`orgs/disambiguated/${j}?value=${encodeURIComponent(K)}`).pipe((0,r.X)(3),(0,b.K)(L=>this._errorHandler.handleError(L))):(0,_.of)(null)}}return(U=d).\u0275fac=function(j){return new(j||U)(E.LFG(f.eN),E.LFG(c.q))},U.\u0275prov=E.Yz7({token:U,factory:U.\u0275fac,providedIn:"root"}),d})();var P=s(45323)},54969:(Qe,he,s)=>{"use strict";s.d(he,{T:()=>m});var a=s(20553),r=s(17927),b=s(75222),A=s(76406),D=s(62413),p=s(49193),E=s(30742),f=s(65879),c=s(69862),C=s(4049);let m=(()=>{var _;class g{constructor(U,d){this._http=U,this._errorHandler=d}changeLanguage(U){return U=U.toLocaleLowerCase().replace("-","_"),(0,p.of)({}).pipe((0,r.b)(()=>{if(!a.N.production)throw new Error("change-language-require-production-mode");if(!Object.keys(a.N.LANGUAGE_MENU_OPTIONS).find(d=>d.toLocaleLowerCase().replace("-","_")===U))throw new Error(`invalid-language-code-${U}`)}),(0,b.w)(()=>this._http.get(a.N.API_WEB+"lang.json?lang="+U).pipe((0,A.X)(3))),(0,D.K)(d=>this._errorHandler.handleError(d,E.l.STANDARD_VERBOSE)))}}return(_=g).\u0275fac=function(U){return new(U||_)(f.LFG(c.eN),f.LFG(C.q))},_.\u0275prov=f.Yz7({token:_,factory:_.\u0275fac,providedIn:"root"}),g})()},26084:(Qe,he,s)=>{"use strict";s.d(he,{D:()=>w});var a=s(69862),r=s(8367),b=s(49193),A=s(49870),D=s(96124),p=s(76406),E=s(62413),f=s(75222),c=s(17927);var _=s(70959),g=s(6666),P=s(34221),U=s(30742),d=s(20553),q=s(65879),j=s(4049),K=s(88165);const L=["login_required","interaction_required","invalid_scope","unsupported_response_type"];let w=(()=>{var k;class X{constructor(re,be,pe,$e){this._http=re,this._errorHandler=be,this._router=pe,this.window=$e,this.requestInfoSubject=new r.t(1),this.headers=new a.WM({"Access-Control-Allow-Origin":"*"})}loadRequestInfoFormFromMemory(){return this.requestInfoSubject}updateRequestInfoFormInMemory(re){this.requestInfoSubject.next(re)}loadRequestInfoForm(){return this._http.get(d.N.BASE_URL+"oauth/custom/requestInfoForm.json",{headers:this.headers}).pipe((0,D.U)(re=>re.clientId?re:void 0),(0,p.X)(3),(0,E.K)(re=>this._errorHandler.handleError(re)),(0,f.w)(re=>this.handleSessionErrors(re)))}authorize(re){return this._http.post(d.N.BASE_URL+"oauth/custom/authorize.json",{persistentTokenEnabled:!0,emailAccessAllowed:!0,approved:re},{headers:this.headers,withCredentials:!0}).pipe((0,p.X)(3),(0,E.K)(pe=>this._errorHandler.handleError(pe,U.l.STANDARD_VERBOSE)),(0,c.b)(pe=>{this.requestInfoSubject.next(pe)}))}declareOauthSession(re,be){return this.declareOauthSession$&&void 0!==be.checkTrigger.timerUpdate||(this.declareOauthSession$=this._http.post(d.N.BASE_URL+`oauth/custom/init.json?${(0,P.z8)(re)}`,re,{headers:this.headers}).pipe((0,p.X)(3),(0,E.K)(pe=>this._errorHandler.handleError(pe,U.l.STANDARD_VERBOSE)),(0,f.w)(pe=>this.handleSessionErrors(pe,re)),function C(k,X,de){let re;return re=k&&"object"==typeof k?k:{bufferSize:k,windowTime:X,refCount:!1,scheduler:de},be=>be.lift(function m({bufferSize:k=Number.POSITIVE_INFINITY,windowTime:X=Number.POSITIVE_INFINITY,refCount:de,scheduler:re}){let be,$e,pe=0,Je=!1,qe=!1;return function(rt){pe++,(!be||Je)&&(Je=!1,be=new r.t(k,X,re),$e=rt.subscribe({next(_t){be.next(_t)},error(_t){Je=!0,be.error(_t)},complete(){qe=!0,$e=void 0,be.complete()}}));const tt=be.subscribe(this);this.add(()=>{pe--,tt.unsubscribe(),$e&&!qe&&de&&0===pe&&($e.unsubscribe(),$e=void 0,be=void 0)})}}(re))}(1))),this.declareOauthSession$.pipe((0,_.Z)())}handleSessionErrors(re,be){return re?re.error&&L.find(pe=>pe===re.error)?(this.window.outOfRouterNavigation(`${re.redirectUrl}#error=${re.error}`),A.C):((re.error||re.errors&&re.errors.length)&&this._router.navigate([P.NE.authorize],{queryParams:be}).then(pe=>{pe&&this._errorHandler.handleError(new Error(`${re.error||re.errors}.${re.errorDescription}`),U.l.OAUTH_PARAMETERS).subscribe()}),(0,b.of)(re)):(0,b.of)(null)}loadShibbolethSignInData(){return this._http.get(d.N.BASE_URL+"shibboleth/signinData.json",{headers:this.headers}).pipe((0,p.X)(3),(0,E.K)(re=>this._errorHandler.handleError(re,U.l.STANDARD_VERBOSE)))}loadSocialSigninData(){return this._http.get(d.N.BASE_URL+"social/signinData.json",{headers:this.headers}).pipe((0,p.X)(3),(0,E.K)(re=>this._errorHandler.handleError(re,U.l.STANDARD_VERBOSE)))}}return(k=X).\u0275fac=function(re){return new(re||k)(q.LFG(a.eN),q.LFG(j.q),q.LFG(K.F0),q.LFG(g.m9))},k.\u0275prov=q.Yz7({token:k,factory:k.\u0275fac,providedIn:"root"}),X})()},45574:(Qe,he,s)=>{"use strict";s.d(he,{P:()=>b});var a=s(42679),r=s(65879);let b=(()=>{var A;class D{transform(E,f,c=null){return this.sort(E,null==f?void 0:f.sortAsc,null==f?void 0:f.sort,c,(null==f?void 0:f.publicRecordId)||(null==f?void 0:f.privateRecordId))}sort(E,f=!1,c="end",C=null,m){if("PROFESSIONAL_ACTIVITIES"===C&&"type"===c){const _=E.filter(j=>"PROFESSIONAL_ACTIVITIES"!==j.type),g=E.filter(j=>"PROFESSIONAL_ACTIVITIES"===j.type)[0],P=this.sortByEndDateAndType(g.affiliationGroup,a.c4.distinction),U=this.sortByEndDateAndType(g.affiliationGroup,a.c4["invited-position"]),d=this.sortByEndDateAndType(g.affiliationGroup,a.c4.membership),q=this.sortByEndDateAndType(g.affiliationGroup,a.c4.service);return _.push({type:"PROFESSIONAL_ACTIVITIES",affiliationGroup:f?[...P,...U,...d,...q]:[...q,...d,...U,...P]}),_}return E.forEach(_=>{let g=_.affiliationGroup;if((!C||C===_.type)&&(("start"===c||"end"===c)&&(g=g.sort((P,U)=>this.sortByDate(P,U,f,c))),"title"===c&&(g.sort((P,U)=>(""+P.defaultAffiliation.affiliationName.value).localeCompare(""+U.defaultAffiliation.affiliationName.value)),f||g.reverse()),"source"===c)){const P=this.getSelfAssertedOrValidatedAffiliations(g,f,m,"self-asserted"),U=this.getSelfAssertedOrValidatedAffiliations(g,f,m,"validated");_.affiliationGroup=f?[...U,...P]:[...P,...U]}}),E}yearMonthDaytoDate(E){const f=new Date(864e13);return E.year&&f.setFullYear(Number.parseInt(E.year,10)),f.setMonth(E.month?Number.parseInt(E.month,10):1),f.setDate(E.day?Number.parseInt(E.day,10):1),f}sortByDate(E,f,c,C){let m=this.yearMonthDaytoDate(E.defaultAffiliation.startDate),_=this.yearMonthDaytoDate(f.defaultAffiliation.startDate),g=this.yearMonthDaytoDate(E.defaultAffiliation.endDate),P=this.yearMonthDaytoDate(f.defaultAffiliation.endDate);return E.defaultAffiliation.affiliationType.value===a.c4.distinction&&"end"===C&&(m=this.yearMonthDaytoDate(E.defaultAffiliation.endDate),g=this.yearMonthDaytoDate(E.defaultAffiliation.startDate)),f.defaultAffiliation.affiliationType.value===a.c4.distinction&&"end"===C&&(_=this.yearMonthDaytoDate(f.defaultAffiliation.endDate),P=this.yearMonthDaytoDate(f.defaultAffiliation.startDate)),"end"===C?g.getTime()!==P.getTime()?(P.getTime()-g.getTime())*(c?-1:1):_.getTime()!==m.getTime()?(_.getTime()-m.getTime())*(c?-1:1):(""+E.defaultAffiliation.affiliationName.value).localeCompare(""+f.defaultAffiliation.affiliationName.value)*(c?1:-1):"start"===C?_.getTime()!==m.getTime()?(_.getTime()-m.getTime())*(c?-1:1):P.getTime()!==g.getTime()?(P.getTime()-g.getTime())*(c?-1:1):(""+E.defaultAffiliation.affiliationName.value).localeCompare(""+f.defaultAffiliation.affiliationName.value)*(c?1:-1):void 0}sortByEndDateAndType(E,f){return E.filter(c=>c.defaultAffiliation.affiliationType.value===f).sort((c,C)=>this.sortByDate(c,C,!1,"end"))}getSelfAssertedOrValidatedAffiliations(E,f,c,C){return E.filter(m=>{const _=this.isSelfAsserted(m,c);return"self-asserted"===C?_:!_}).sort((m,_)=>(""+m.defaultAffiliation.affiliationName.value).localeCompare(""+_.defaultAffiliation.affiliationName.value))}isSelfAsserted(E,f){return E.defaultAffiliation.assertionOriginOrcid===f||E.defaultAffiliation.source===f}}return(A=D).\u0275fac=function(E){return new(E||A)},A.\u0275prov=r.Yz7({token:A,factory:A.\u0275fac,providedIn:"root"}),D})()},46018:(Qe,he,s)=>{"use strict";s.d(he,{l:()=>j});var a=s(69862),r=s(45125),b=s(8367),A=s(49193),D=s(76406),p=s(62413),E=s(17927),f=s(75222),c=s(96124),C=s(20553),m=s(6990),_=s(34221),g=s(65879),P=s(4049),U=s(42679);let d=(()=>{var K;class L{constructor(){this.expectedUiOrderGroups=[],this.expectedUiOrderGroups[U.dw.EMPLOYMENT]=[U.$6.EMPLOYMENT],this.expectedUiOrderGroups[U.dw.EDUCATION_AND_QUALIFICATION]=[U.$6.EDUCATION,U.$6.QUALIFICATION],this.expectedUiOrderGroups[U.dw.INVITED_POSITION_AND_DISTINCTION]=[U.$6.INVITED_POSITION,U.$6.DISTINCTION],this.expectedUiOrderGroups[U.dw.MEMBERSHIP_AND_SERVICE]=[U.$6.MEMBERSHIP,U.$6.SERVICE]}transform(k,X){return Object.keys(k.affiliationGroups).length?Object.keys(this.expectedUiOrderGroups).map(de=>({type:de,affiliationGroup:this.expectedUiOrderGroups[de].map(re=>Object.keys(k.affiliationGroups).filter(be=>be===re).map(be=>k.affiliationGroups[be])).reduce((re,be)=>re.concat(be)).reduce((re,be)=>re.concat(be))})):[]}}return(K=L).\u0275fac=function(k){return new(k||K)},K.\u0275prov=g.Yz7({token:K,factory:K.\u0275fac,providedIn:"root"}),L})();var q=s(45574);let j=(()=>{var K;class L{get $loading(){return this._$loading.asObservable()}constructor(k,X,de,re){this._http=k,this._errorHandler=X,this._affiliationsGroupingService=de,this._affiliationsSortService=re,this.headers=new a.WM({"Access-Control-Allow-Origin":"*"}),this._$loading=new r.X(!0)}getAffiliations(k={forceReload:!1}){if(this.$affiliations){if(!k.forceReload)return this.$affiliations}else this.$affiliations=new b.t(1);return k.cleanCacheIfExist&&this.$affiliations&&this.$affiliations.next(void 0),this._$loading.next(!0),this.getGroupAndSortAffiliations(k).pipe((0,D.X)(3),(0,p.K)(X=>this._errorHandler.handleError(X)),(0,p.K)(()=>(0,A.of)([])),(0,E.b)(X=>{this._$loading.next(!1),this.lastEmittedValue=(0,m.cloneDeep)(X),this.$affiliations.next(X)})).subscribe(),this.$affiliations.asObservable()}getAffiliationsDetails(k,X,de){return this.getAffiliationDetails(X,k,de).pipe((0,E.b)(re=>{re&&re.url&&re.url.value&&this.lastEmittedValue.forEach(be=>{be.affiliationGroup.map(pe=>{pe.affiliations.map($e=>{$e.affiliationType.value===k&&$e.putCode.value===X&&($e.url.value=re.url.value)})})}),this.$affiliations.next(this.lastEmittedValue)}),(0,f.w)(()=>this.$affiliations.asObservable()))}getAffiliationDetails(k,X,de){return this._http.get(C.N.API_WEB+`${null!=de&&de.publicRecordId?(null==de?void 0:de.publicRecordId)+"/":"affiliations/"}affiliationDetails.json?id=${k}&type=${X}`).pipe((0,D.X)(3),(0,p.K)(re=>this._errorHandler.handleError(re)))}getGroupAndSortAffiliations(k){return k.publicRecordId?this._http.get(C.N.API_WEB+`${k.publicRecordId}/affiliationGroups.json`).pipe((0,D.X)(3),(0,c.U)(X=>this._affiliationsGroupingService.transform(X)),(0,c.U)(X=>this._affiliationsSortService.transform(X)),(0,p.K)(X=>this._errorHandler.handleError(X))):this._http.get(C.N.API_WEB+"affiliations/affiliationGroups.json").pipe((0,D.X)(3),(0,c.U)(X=>this._affiliationsGroupingService.transform(X)),(0,c.U)(X=>this._affiliationsSortService.transform(X)),(0,p.K)(X=>this._errorHandler.handleError(X)))}changeUserRecordContext(k,X){const de=this.lastEmittedValue.find(pe=>"PROFESSIONAL_ACTIVITIES"===pe.type),re=[...(0,_.eT)(this.lastEmittedValue,"INVITED_POSITION_AND_DISTINCTION").affiliationGroup,...(0,_.eT)(this.lastEmittedValue,"MEMBERSHIP_AND_SERVICE").affiliationGroup];de?de.affiliationGroup=re:this.lastEmittedValue.push({type:"PROFESSIONAL_ACTIVITIES",affiliationGroup:re});const be=this._affiliationsSortService.transform(this.lastEmittedValue,k,X);this.lastEmittedValue=(0,m.cloneDeep)(be),this.$affiliations.next(be)}postAffiliation(k){return this._http.post(C.N.API_WEB+"affiliations/affiliation.json",k,{headers:this.headers}).pipe((0,D.X)(3),(0,p.K)(X=>this._errorHandler.handleError(X)),(0,E.b)(()=>this.getAffiliations({forceReload:!0})))}getOrganization(k){return this._http.get(C.N.API_WEB+"affiliations/disambiguated/name/"+k+"?limit=100",{headers:this.headers}).pipe((0,D.X)(3),(0,p.K)(X=>this._errorHandler.handleError(X)))}getOrganizationDisambiguated(k){return this._http.get(C.N.API_WEB+"affiliations/disambiguated/id/"+k,{headers:this.headers}).pipe((0,D.X)(3),(0,p.K)(X=>this._errorHandler.handleError(X)))}updateVisibility(k,X){return this._http.get(C.N.API_WEB+"affiliations/"+k+"/visibility/"+X).pipe((0,D.X)(3),(0,p.K)(de=>this._errorHandler.handleError(de)),(0,E.b)(()=>this.getAffiliations({forceReload:!0})))}delete(k){return this._http.delete(C.N.API_WEB+"affiliations/affiliation.json?id="+encodeURIComponent(k)).pipe((0,D.X)(3),(0,p.K)(X=>this._errorHandler.handleError(X)),(0,E.b)(()=>this.getAffiliations({forceReload:!0})))}updatePreferredSource(k){return this._http.get(C.N.API_WEB+"affiliations/updateToMaxDisplay.json?putCode="+k).pipe((0,D.X)(3),(0,p.K)(X=>this._errorHandler.handleError(X)),(0,E.b)(()=>this.getAffiliations({forceReload:!0})))}getEmployments(){return this._http.get(C.N.API_WEB+"affiliations/employments.json",{headers:this.headers}).pipe((0,D.X)(3),(0,p.K)(k=>this._errorHandler.handleError(k)))}}return(K=L).\u0275fac=function(k){return new(k||K)(g.LFG(a.eN),g.LFG(P.q),g.LFG(d),g.LFG(q.P))},K.\u0275prov=g.Yz7({token:K,factory:K.\u0275fac,providedIn:"root"}),L})()},10111:(Qe,he,s)=>{"use strict";s.d(he,{C:()=>_});var a=s(8367),r=s(49193),b=s(96124),A=s(76406),D=s(62413),p=s(17927),E=s(69862),f=s(20553),c=s(65879),C=s(4049),m=s(59817);let _=(()=>{var g;class P{constructor(d,q,j){this._http=d,this._errorHandler=q,this._recordPublicSidebar=j,this.headers=new E.WM({"Access-Control-Allow-Origin":"*"})}getBiography(d={forceReload:!1}){if(d.publicRecordId)return this._recordPublicSidebar.getPublicRecordSideBar(d).pipe((0,b.U)(q=>q.biography));if(this.$biography){if(!d.forceReload)return this.$biography}else this.$biography=new a.t(1);return d.cleanCacheIfExist&&this.$biography&&this.$biography.next(void 0),this._http.get(f.N.API_WEB+"account/biographyForm.json",{headers:this.headers}).pipe((0,A.X)(3),(0,D.K)(q=>this._errorHandler.handleError(q)),(0,D.K)(()=>(0,r.of)({})),(0,p.b)(q=>{this.$biography.next(q)})).subscribe(),this.$biography}postBiography(d){return this._http.post(f.N.API_WEB+"account/biographyForm.json",d,{headers:this.headers}).pipe((0,A.X)(3),(0,D.K)(q=>this._errorHandler.handleError(q)),(0,p.b)(()=>this.getBiography({forceReload:!0})))}}return(g=P).\u0275fac=function(d){return new(d||g)(c.LFG(E.eN),c.LFG(C.q),c.LFG(m.s))},g.\u0275prov=c.Yz7({token:g,factory:g.\u0275fac,providedIn:"root"}),P})()},80528:(Qe,he,s)=>{"use strict";s.d(he,{r:()=>P});var a=s(69862),r=s(49193),b=s(77504),A=s(8367),D=s(51418),p=s(96124),E=s(76406),f=s(62413),c=s(17927),C=s(20553),m=s(65879),_=s(4049),g=s(59817);let P=(()=>{var U;class d{constructor(j,K,L){this._http=j,this._errorHandler=K,this._recordPublicSidebar=L,this.headers=new a.WM({"Access-Control-Allow-Origin":"*"})}getCountryCodes(){return(0,r.of)([{key:"Afghanistan",value:"AF"},{key:"Albania",value:"AL"},{key:"Algeria",value:"DZ"},{key:"American Samoa",value:"AS"},{key:"Andorra",value:"AD"},{key:"Angola",value:"AO"},{key:"Anguilla",value:"AI"},{key:"Antarctica",value:"AQ"},{key:"Antigua and Barbuda",value:"AG"},{key:"Argentina",value:"AR"},{key:"Armenia",value:"AM"},{key:"Aruba",value:"AW"},{key:"Australia",value:"AU"},{key:"Austria",value:"AT"},{key:"Azerbaijan",value:"AZ"},{key:"Bahamas",value:"BS"},{key:"Bahrain",value:"BH"},{key:"Bangladesh",value:"BD"},{key:"Barbados",value:"BB"},{key:"Belarus",value:"BY"},{key:"Belgium",value:"BE"},{key:"Belize",value:"BZ"},{key:"Benin",value:"BJ"},{key:"Bermuda",value:"BM"},{key:"Bhutan",value:"BT"},{key:"Bolivia",value:"BO"},{key:"Bosnia and Herzegovina",value:"BA"},{key:"Botswana",value:"BW"},{key:"Bouvet Island",value:"BV"},{key:"Brazil",value:"BR"},{key:"British Antarctic Territory",value:"BQ"},{key:"British Indian Ocean Territory",value:"IO"},{key:"British Virgin Islands",value:"VG"},{key:"Brunei",value:"BN"},{key:"Bulgaria",value:"BG"},{key:"Burkina Faso",value:"BF"},{key:"Burundi",value:"BI"},{key:"Cambodia",value:"KH"},{key:"Cameroon",value:"CM"},{key:"Canada",value:"CA"},{key:"Cape Verde",value:"CV"},{key:"Cayman Islands",value:"KY"},{key:"Central African Republic",value:"CF"},{key:"Chad",value:"TD"},{key:"Chile",value:"CL"},{key:"China",value:"CN"},{key:"Christmas Island",value:"CX"},{key:"Cocos [Keeling] Islands",value:"CC"},{key:"Colombia",value:"CO"},{key:"Comoros",value:"KM"},{key:"Congo - Brazzaville",value:"CG"},{key:"Congo - Kinshasa",value:"CD"},{key:"Cook Islands",value:"CK"},{key:"Costa Rica",value:"CR"},{key:"Croatia",value:"HR"},{key:"Cuba",value:"CU"},{key:"Cura\xE7ao",value:"CW"},{key:"Cyprus",value:"CY"},{key:"Czech Republic",value:"CZ"},{key:"C\xF4te d'Ivoire",value:"CI"},{key:"Denmark",value:"DK"},{key:"Djibouti",value:"DJ"},{key:"Dominica",value:"DM"},{key:"Dominican Republic",value:"DO"},{key:"Ecuador",value:"EC"},{key:"Egypt",value:"EG"},{key:"El Salvador",value:"SV"},{key:"Equatorial Guinea",value:"GQ"},{key:"Eritrea",value:"ER"},{key:"Estonia",value:"EE"},{key:"Ethiopia",value:"ET"},{key:"Falkland Islands",value:"FK"},{key:"Faroe Islands",value:"FO"},{key:"Fiji",value:"FJ"},{key:"Finland",value:"FI"},{key:"France",value:"FR"},{key:"French Guiana",value:"GF"},{key:"French Polynesia",value:"PF"},{key:"French Southern Territories",value:"TF"},{key:"Gabon",value:"GA"},{key:"Gambia",value:"GM"},{key:"Georgia",value:"GE"},{key:"Germany",value:"DE"},{key:"Ghana",value:"GH"},{key:"Gibraltar",value:"GI"},{key:"Greece",value:"GR"},{key:"Greenland",value:"GL"},{key:"Grenada",value:"GD"},{key:"Guadeloupe",value:"GP"},{key:"Guam",value:"GU"},{key:"Guatemala",value:"GT"},{key:"Guernsey",value:"GG"},{key:"Guinea",value:"GN"},{key:"Guinea-Bissau",value:"GW"},{key:"Guyana",value:"GY"},{key:"Haiti",value:"HT"},{key:"Heard Island and McDonald Islands",value:"HM"},{key:"Honduras",value:"HN"},{key:"Hong Kong SAR China",value:"HK"},{key:"Hungary",value:"HU"},{key:"Iceland",value:"IS"},{key:"India",value:"IN"},{key:"Indonesia",value:"ID"},{key:"Iran",value:"IR"},{key:"Iraq",value:"IQ"},{key:"Ireland",value:"IE"},{key:"Isle of Man",value:"IM"},{key:"Israel",value:"IL"},{key:"Italy",value:"IT"},{key:"Jamaica",value:"JM"},{key:"Japan",value:"JP"},{key:"Jersey",value:"JE"},{key:"Jordan",value:"JO"},{key:"Kazakhstan",value:"KZ"},{key:"Kenya",value:"KE"},{key:"Kiribati",value:"KI"},{key:"Kosovo",value:"XK"},{key:"Kuwait",value:"KW"},{key:"Kyrgyzstan",value:"KG"},{key:"Laos",value:"LA"},{key:"Latvia",value:"LV"},{key:"Lebanon",value:"LB"},{key:"Lesotho",value:"LS"},{key:"Liberia",value:"LR"},{key:"Libya",value:"LY"},{key:"Liechtenstein",value:"LI"},{key:"Lithuania",value:"LT"},{key:"Luxembourg",value:"LU"},{key:"Macau SAR China",value:"MO"},{key:"Madagascar",value:"MG"},{key:"Malawi",value:"MW"},{key:"Malaysia",value:"MY"},{key:"Maldives",value:"MV"},{key:"Mali",value:"ML"},{key:"Malta",value:"MT"},{key:"Marshall Islands",value:"MH"},{key:"Martinique",value:"MQ"},{key:"Mauritania",value:"MR"},{key:"Mauritius",value:"MU"},{key:"Mayotte",value:"YT"},{key:"Mexico",value:"MX"},{key:"Micronesia",value:"FM"},{key:"Moldova",value:"MD"},{key:"Monaco",value:"MC"},{key:"Mongolia",value:"MN"},{key:"Montenegro",value:"ME"},{key:"Montserrat",value:"MS"},{key:"Morocco",value:"MA"},{key:"Mozambique",value:"MZ"},{key:"Myanmar [Burma]",value:"MM"},{key:"Namibia",value:"NA"},{key:"Nauru",value:"NR"},{key:"Nepal",value:"NP"},{key:"Netherlands",value:"NL"},{key:"New Caledonia",value:"NC"},{key:"New Zealand",value:"NZ"},{key:"Nicaragua",value:"NI"},{key:"Niger",value:"NE"},{key:"Nigeria",value:"NG"},{key:"Niue",value:"NU"},{key:"Norfolk Island",value:"NF"},{key:"North Korea",value:"KP"},{key:"North Macedonia",value:"MK"},{key:"Northern Mariana Islands",value:"MP"},{key:"Norway",value:"NO"},{key:"Oman",value:"OM"},{key:"Pakistan",value:"PK"},{key:"Palau",value:"PW"},{key:"Palestinian Territories",value:"PS"},{key:"Panama",value:"PA"},{key:"Papua New Guinea",value:"PG"},{key:"Paraguay",value:"PY"},{key:"Peru",value:"PE"},{key:"Philippines",value:"PH"},{key:"Pitcairn Islands",value:"PN"},{key:"Poland",value:"PL"},{key:"Portugal",value:"PT"},{key:"Puerto Rico",value:"PR"},{key:"Qatar",value:"QA"},{key:"Romania",value:"RO"},{key:"Russia",value:"RU"},{key:"Rwanda",value:"RW"},{key:"R\xE9union",value:"RE"},{key:"Saint Barth\xE9lemy",value:"BL"},{key:"Saint Helena",value:"SH"},{key:"Saint Kitts and Nevis",value:"KN"},{key:"Saint Lucia",value:"LC"},{key:"Saint Martin",value:"MF"},{key:"Saint Pierre and Miquelon",value:"PM"},{key:"Saint Vincent and the Grenadines",value:"VC"},{key:"Samoa",value:"WS"},{key:"San Marino",value:"SM"},{key:"Saudi Arabia",value:"SA"},{key:"Senegal",value:"SN"},{key:"Serbia",value:"RS"},{key:"Seychelles",value:"SC"},{key:"Sierra Leone",value:"SL"},{key:"Singapore",value:"SG"},{key:"Sint Maarten (Dutch Part)",value:"SX"},{key:"Slovakia",value:"SK"},{key:"Slovenia",value:"SI"},{key:"Solomon Islands",value:"SB"},{key:"Somalia",value:"SO"},{key:"South Africa",value:"ZA"},{key:"South Georgia and the South Sandwich Islands",value:"GS"},{key:"South Korea",value:"KR"},{key:"South Sudan",value:"SS"},{key:"Spain",value:"ES"},{key:"Sri Lanka",value:"LK"},{key:"Sudan",value:"SD"},{key:"Suriname",value:"SR"},{key:"Svalbard and Jan Mayen",value:"SJ"},{key:"Swaziland",value:"SZ"},{key:"Sweden",value:"SE"},{key:"Switzerland",value:"CH"},{key:"Syria",value:"SY"},{key:"S\xE3o Tom\xE9 and Pr\xEDncipe",value:"ST"},{key:"Taiwan",value:"TW"},{key:"Tajikistan",value:"TJ"},{key:"Tanzania",value:"TZ"},{key:"Thailand",value:"TH"},{key:"Timor-Leste",value:"TL"},{key:"Togo",value:"TG"},{key:"Tokelau",value:"TK"},{key:"Tonga",value:"TO"},{key:"Trinidad and Tobago",value:"TT"},{key:"Tunisia",value:"TN"},{key:"T\xFCrkiye",value:"TR"},{key:"Turkmenistan",value:"TM"},{key:"Turks and Caicos Islands",value:"TC"},{key:"Tuvalu",value:"TV"},{key:"U.S. Minor Outlying Islands",value:"UM"},{key:"U.S. Virgin Islands",value:"VI"},{key:"Uganda",value:"UG"},{key:"Ukraine",value:"UA"},{key:"United Arab Emirates",value:"AE"},{key:"United Kingdom",value:"GB"},{key:"United States",value:"US"},{key:"Uruguay",value:"UY"},{key:"Uzbekistan",value:"UZ"},{key:"Vanuatu",value:"VU"},{key:"Vatican City",value:"VA"},{key:"Venezuela",value:"VE"},{key:"Vietnam",value:"VN"},{key:"Wallis and Futuna",value:"WF"},{key:"Western Sahara",value:"EH"},{key:"Yemen",value:"YE"},{key:"Zambia",value:"ZM"},{key:"Zimbabwe",value:"ZW"},{key:"\xC5land Islands",value:"AX"}])}getAddresses(j={forceReload:!1}){if(j.publicRecordId)return(0,b.D)([this._recordPublicSidebar.getPublicRecordSideBar(j).pipe((0,D.q)(1)),this.getCountryCodes().pipe((0,D.q)(1))]).pipe((0,p.U)(K=>{const L=K[0].countries,w=K[1];return null==L||L.addresses.forEach(k=>{k.countryName=w.find(X=>X.value===k.iso2Country.value).key||""}),L}));if(this.$addresses){if(!j.forceReload)return this.$addresses}else this.$addresses=new A.t(1);return j.cleanCacheIfExist&&this.$addresses&&this.$addresses.next(void 0),(0,b.D)([this._http.get(C.N.API_WEB+"account/countryForm.json",{headers:this.headers}).pipe((0,D.q)(1)),this.getCountryCodes().pipe((0,D.q)(1))]).pipe((0,E.X)(3),(0,f.K)(K=>this._errorHandler.handleError(K)),(0,f.K)(()=>(0,r.of)({addresses:[]})),(0,c.b)(K=>{this.reverseSort(K[0])}),(0,c.b)(K=>{this.$addresses.next(K[0])}),(0,p.U)(K=>{const L=K[0],w=K[1];return L.addresses.forEach(k=>{k.countryName=w.find(X=>X.value===k.iso2Country.value).key||""}),L})).subscribe(),this.$addresses}postAddresses(j){return this._http.post(C.N.API_WEB+"account/countryForm.json",j,{headers:this.headers}).pipe((0,E.X)(3),(0,f.K)(K=>this._errorHandler.handleError(K)),(0,c.b)(()=>this.getAddresses({forceReload:!0})))}reverseSort(j){j.addresses.sort((K,L)=>K.displayIndex-L.displayIndex),j.addresses.reverse()}}return(U=d).\u0275fac=function(j){return new(j||U)(m.LFG(a.eN),m.LFG(_.q),m.LFG(g.s))},U.\u0275prov=m.Yz7({token:U,factory:U.\u0275fac,providedIn:"root"}),d})()},15017:(Qe,he,s)=>{"use strict";s.d(he,{o:()=>P});var a=s(69862),r=s(8367),b=s(91226),A=s(49193),D=s(96124),p=s(76406),E=s(62413),f=s(17927),c=s(75222),C=s(20553),m=s(65879),_=s(4049),g=s(59817);let P=(()=>{var U;class d{constructor(j,K,L){this._http=j,this._errorHandler=K,this._recordPublicSidebar=L,this.headers=new a.WM({"Access-Control-Allow-Origin":"*"})}getEmails(j={forceReload:!1}){if(j.publicRecordId)return this._recordPublicSidebar.getPublicRecordSideBar(j).pipe((0,D.U)(K=>K.emails));if(this.$emailsSubject){if(!j.forceReload)return this.$emailsSubject}else this.$emailsSubject=new r.t(1);return j.cleanCacheIfExist&&this.$emailsSubject.next(b.E),this._http.get(C.N.API_WEB+"account/emails.json",{headers:this.headers}).pipe((0,p.X)(3),(0,E.K)(K=>this._errorHandler.handleError(K)),(0,E.K)(K=>(0,A.of)({emails:[]})),(0,D.U)(K=>(K.emails.sort(this.sortByEmailByValue).sort(this.sortByEmailByVerifiedState).sort(this.sortByEmailPrimaryState),K)),(0,f.b)(K=>{this.$emailsSubject.next(K)})).subscribe(),this.$emailsSubject}postEmails(j){return this._http.post(C.N.API_WEB+"account/emails.json",j,{headers:this.headers}).pipe((0,p.X)(3),(0,E.K)(K=>this._errorHandler.handleError(K)),(0,c.w)(()=>this.getEmails({forceReload:!0})))}editEmail(j,K){return this._http.post(C.N.API_WEB+"account/email/edit.json",{original:j,edited:K},{headers:this.headers}).pipe((0,p.X)(3),(0,E.K)(L=>this._errorHandler.handleError(L)),(0,c.w)(()=>this.getEmails({forceReload:!0})))}verifyEmail(j){return this._http.get(C.N.API_WEB+`account/verifyEmail.json?email=${encodeURIComponent(j)}`,{headers:this.headers}).pipe((0,p.X)(3),(0,E.K)(K=>this._errorHandler.handleError(K)),(0,c.w)(()=>this.getEmails()))}visibility(j){const K=JSON.stringify(j);return this._http.post(C.N.API_WEB+"account/email/visibility",K,{headers:this.headers}).pipe((0,p.X)(3),(0,E.K)(L=>this._errorHandler.handleError(L)),(0,c.w)(()=>this.getEmails({forceReload:!0})))}validateRegisterValue(j){return this._http.post(C.N.API_WEB+"account/validateEmail.json",j).pipe((0,p.X)(3),(0,E.K)(K=>this._errorHandler.handleError(K)))}backendEmailValidate(j){return K=>{if(""===K.value)return(0,A.of)(null);const L={value:K.value};return j.filter(k=>k.value===L.value).length?(0,A.of)(null):this.validateRegisterValue(L).pipe((0,D.U)(k=>k.errors.length>0?{backendError:k.errors}:null))}}sortByEmailByValue(j,K){return j.valueK.value?1:0}sortByEmailByVerifiedState(j,K){return j.verified===K.verified?0:j.verified?-1:1}sortByEmailPrimaryState(j,K){return j.primary===K.primary?0:j.primary?-1:1}}return(U=d).\u0275fac=function(j){return new(j||U)(m.LFG(a.eN),m.LFG(_.q),m.LFG(g.s))},U.\u0275prov=m.Yz7({token:U,factory:U.\u0275fac,providedIn:"root"}),d})()},75340:(Qe,he,s)=>{"use strict";s.d(he,{i:()=>_});var a=s(69862),r=s(8367),b=s(45125),A=s(49193),D=s(76406),p=s(62413),E=s(17927),f=s(75222),c=s(20553),C=s(65879),m=s(4049);let _=(()=>{var g;class P{get $loading(){return this._$loading.asObservable()}constructor(d,q){this._http=d,this._errorHandler=q,this.headers=new a.WM({"Access-Control-Allow-Origin":"*"}),this.$fundings=new r.t,this._$loading=new b.X(!0)}getFundings(d){return this._$loading.next(!0),null!=d&&d.publicRecordId?this._http.get(c.N.API_WEB+d.publicRecordId+"/fundingGroups.json?&sort="+(null!=d.sort?d.sort:"date")+"&sortAsc="+(null!=d.sortAsc&&d.sortAsc)).pipe((0,D.X)(3),(0,p.K)(q=>this._errorHandler.handleError(q)),(0,p.K)(()=>(0,A.of)([])),(0,E.b)(q=>{this._$loading.next(!1),this.lastEmittedValue=q,this.$fundings.next(q)}),(0,f.w)(q=>this.$fundings.asObservable())).subscribe():this.getAndSortFundings(d).pipe((0,D.X)(3),(0,p.K)(q=>this._errorHandler.handleError(q)),(0,E.b)(q=>{this._$loading.next(!1),this.lastEmittedValue=q,this.$fundings.next(q)}),(0,f.w)(q=>this.$fundings.asObservable())).subscribe(),this.$fundings.asObservable()}getFundingDetails(d){return this._http.get(c.N.API_WEB+`fundings/fundingDetails.json?id=${d}`).pipe((0,D.X)(3),(0,p.K)(q=>this._errorHandler.handleError(q)))}getPublicFundingDetails(d,q){return this._http.get(c.N.API_WEB+d+`/fundingDetails.json?id=${q}`).pipe((0,D.X)(3),(0,p.K)(j=>this._errorHandler.handleError(j)))}changeUserRecordContext(d){this.getFundings(d).subscribe()}getAndSortFundings(d){return this._http.get(c.N.API_WEB+"fundings/fundingGroups.json?&sort="+(null!=(null==d?void 0:d.sort)?d.sort:"date")+"&sortAsc="+(null!=(null==d?void 0:d.sortAsc)&&d.sortAsc)).pipe((0,D.X)(3),(0,p.K)(q=>this._errorHandler.handleError(q)))}set(d){throw new Error("Method not implemented.")}updateVisibility(d,q){return this._http.get(c.N.API_WEB+"fundings/"+d+"/visibility/"+q).pipe((0,D.X)(3),(0,p.K)(j=>this._errorHandler.handleError(j)),(0,E.b)(()=>this.getFundings({forceReload:!0})))}delete(d){return this._http.delete(c.N.API_WEB+"fundings/funding.json?id="+encodeURIComponent(d)).pipe((0,D.X)(3),(0,p.K)(q=>this._errorHandler.handleError(q)),(0,E.b)(()=>this.getFundings({forceReload:!0})))}getFunding(){return this._http.get(c.N.API_WEB+"fundings/funding.json").pipe((0,D.X)(3),(0,p.K)(d=>this._errorHandler.handleError(d)))}save(d){return this._http.post(c.N.API_WEB+"fundings/funding.json",d).pipe((0,D.X)(3),(0,p.K)(q=>this._errorHandler.handleError(q)),(0,E.b)(()=>this.getFundings({forceReload:!0})))}getOrganization(d){return this._http.get(c.N.API_WEB+"fundings/disambiguated/name/"+d+"?limit=100&funders-only=true",{headers:this.headers}).pipe((0,D.X)(3),(0,p.K)(q=>this._errorHandler.handleError(q)))}loadFundingImportWizardList(){return this._http.get(c.N.API_WEB+"workspace/retrieve-funding-import-wizards.json")}updatePreferredSource(d){return this._http.get(c.N.API_WEB+"fundings/updateToMaxDisplay.json?putCode="+d).pipe((0,D.X)(3),(0,p.K)(q=>this._errorHandler.handleError(q)),(0,E.b)(()=>this.getFundings({forceReload:!0})))}}return(g=P).\u0275fac=function(d){return new(d||g)(C.LFG(a.eN),C.LFG(m.q))},g.\u0275prov=C.Yz7({token:g,factory:g.\u0275fac,providedIn:"root"}),P})()},6297:(Qe,he,s)=>{"use strict";s.d(he,{B:()=>_});var a=s(69862),r=s(8367),b=s(49193),A=s(96124),D=s(76406),p=s(62413),E=s(17927),f=s(20553),c=s(65879),C=s(4049),m=s(59817);let _=(()=>{var g;class P{constructor(d,q,j){this._http=d,this._errorHandler=q,this._recordPublicSidebar=j,this.headers=new a.WM({"Access-Control-Allow-Origin":"*"})}getKeywords(d={forceReload:!1}){if(d.publicRecordId)return this._recordPublicSidebar.getPublicRecordSideBar(d).pipe((0,A.U)(q=>q.keyword));if(this.$keywords){if(!d.forceReload)return this.$keywords}else this.$keywords=new r.t(1);return d.cleanCacheIfExist&&this.$keywords&&this.$keywords.next(void 0),this._http.get(f.N.API_WEB+"my-orcid/keywordsForms.json",{headers:this.headers}).pipe((0,D.X)(3),(0,p.K)(q=>this._errorHandler.handleError(q)),(0,p.K)(()=>(0,b.of)({keywords:[]})),(0,E.b)(q=>{this.$keywords.next(q)})).subscribe(),this.$keywords}postKeywords(d){return this._http.post(f.N.API_WEB+"my-orcid/keywordsForms.json",d,{headers:this.headers}).pipe((0,D.X)(3),(0,p.K)(q=>this._errorHandler.handleError(q)),(0,E.b)(()=>this.getKeywords({forceReload:!0})))}}return(g=P).\u0275fac=function(d){return new(d||g)(c.LFG(a.eN),c.LFG(C.q),c.LFG(m.s))},g.\u0275prov=c.Yz7({token:g,factory:g.\u0275fac,providedIn:"root"}),P})()},47127:(Qe,he,s)=>{"use strict";s.d(he,{f:()=>_});var a=s(8367),r=s(49193),b=s(96124),A=s(76406),D=s(62413),p=s(17927),E=s(69862),f=s(20553),c=s(65879),C=s(4049),m=s(59817);let _=(()=>{var g;class P{constructor(d,q,j){this._http=d,this._errorHandler=q,this._recordPublicSidebar=j,this.headers=new E.WM({"Access-Control-Allow-Origin":"*"})}getNames(d={forceReload:!1}){if(d.publicRecordId)return this._recordPublicSidebar.getPublicRecordSideBar(d).pipe((0,b.U)(q=>q.names));if(this.$names){if(!d.forceReload)return this.$names}else this.$names=new a.t(1);return d.cleanCacheIfExist&&this.$names&&this.$names.next(void 0),this._http.get(f.N.API_WEB+"account/nameForm.json",{headers:this.headers}).pipe((0,A.X)(3),(0,D.K)(q=>this._errorHandler.handleError(q)),(0,D.K)(()=>(0,r.of)({})),(0,p.b)(q=>{this.$names.next(q)})).subscribe(),this.$names}postNames(d){return this._http.post(f.N.API_WEB+"account/nameForm.json",d,{headers:this.headers}).pipe((0,A.X)(3),(0,D.K)(q=>this._errorHandler.handleError(q)),(0,p.b)(()=>this.getNames({forceReload:!0})))}}return(g=P).\u0275fac=function(d){return new(d||g)(c.LFG(E.eN),c.LFG(C.q),c.LFG(m.s))},g.\u0275prov=c.Yz7({token:g,factory:g.\u0275fac,providedIn:"root"}),P})()},2778:(Qe,he,s)=>{"use strict";s.d(he,{$:()=>P});var a=s(69862),r=s(8367),b=s(49193),A=s(96124),D=s(76406),p=s(62413),E=s(17927),f=s(20553),c=s(6990),m=s(65879),_=s(4049),g=s(59817);let P=(()=>{var U;class d{constructor(j,K,L){this._http=j,this._errorHandler=K,this._recordPublicSidebar=L,this.headers=new a.WM({"Access-Control-Allow-Origin":"*"})}getOtherNames(j={forceReload:!1}){if(j.publicRecordId)return this._recordPublicSidebar.getPublicRecordSideBar(j).pipe((0,A.U)(K=>null==K?void 0:K.otherNames),(0,A.U)(K=>(null!=K&&K.otherNames&&(K.otherNames=(0,c.flatMap)((0,c.groupBy)(null==K?void 0:K.otherNames,L=>null==L?void 0:L.content.toLowerCase().trim()))),K)));if(this.$otherNames){if(!j.forceReload)return this.$otherNames;j.cleanCacheIfExist&&this.$otherNames&&this.$otherNames.next(void 0)}else this.$otherNames=new r.t(1);return this._http.get(f.N.API_WEB+"my-orcid/otherNamesForms.json",{headers:this.headers}).pipe((0,D.X)(3),(0,p.K)(K=>this._errorHandler.handleError(K)),(0,p.K)(()=>(0,b.of)({otherNames:[]})),(0,E.b)(K=>{this.$otherNames.next(K)})).subscribe(),this.$otherNames}postOtherNames(j){return this._http.post(f.N.API_WEB+"my-orcid/otherNamesForms.json",j,{headers:this.headers}).pipe((0,D.X)(3),(0,p.K)(K=>this._errorHandler.handleError(K)),(0,E.b)(()=>this.getOtherNames({forceReload:!0})))}}return(U=d).\u0275fac=function(j){return new(j||U)(m.LFG(a.eN),m.LFG(_.q),m.LFG(g.s))},U.\u0275prov=m.Yz7({token:U,factory:U.\u0275fac,providedIn:"root"}),d})()},28325:(Qe,he,s)=>{"use strict";s.d(he,{b:()=>m});var a=s(8367),r=s(49193),b=s(69862),A=s(20553),D=s(76406),p=s(62413),E=s(17927),f=s(65879),c=s(4049),C=s(23738);let m=(()=>{var _;class g{constructor(U,d,q){this._http=U,this._errorHandler=d,this._togglz=q,this.$peer=new a.t,this.headers=new b.WM({"Access-Control-Allow-Origin":"*"})}getPeerReviewGroups(U){let d;return null!=U&&U.cleanCacheIfExist&&this.$peer&&this.$peer.next(void 0),d=U.publicRecordId?U.publicRecordId+"/peer-reviews-minimized.json?sortAsc=":"peer-reviews/peer-reviews-minimized.json?sortAsc=",this._http.get(A.N.API_WEB+d+(null==U.sortAsc||U.sortAsc)).pipe((0,D.X)(3),(0,p.K)(q=>this._errorHandler.handleError(q)),(0,p.K)(()=>(0,r.of)([])),(0,E.b)(q=>{this.lastEmittedValue=q,this.$peer.next(q)})).subscribe(),this.$peer.asObservable()}getPeerReviewsByGroupId(U,d){return null!=U&&U.publicRecordId?this._http.get(A.N.API_WEB+U.publicRecordId+"/peer-reviews-by-group-id.json?sortAsc="+(null==U.sortAsc||U.sortAsc)+"&groupId="+encodeURIComponent(d)).pipe((0,D.X)(3),(0,p.K)(q=>this._errorHandler.handleError(q)),(0,p.K)(()=>(0,r.of)([]))):this._http.get(A.N.API_WEB+"peer-reviews/peer-reviews-by-group-id.json?sortAsc="+(null==U.sortAsc||U.sortAsc)+"&groupId="+encodeURIComponent(d)).pipe((0,D.X)(3),(0,p.K)(q=>this._errorHandler.handleError(q)),(0,p.K)(()=>(0,r.of)([])))}changeUserRecordContext(U){this.getPeerReviewGroups(U).subscribe()}getPeerReviewById(U){return this._http.get(A.N.API_WEB+"peer-reviews/peer-review.json?putCode="+U)}getPeerReviewImportWizardList(){return this._http.get(A.N.API_WEB+"workspace/retrieve-peer-review-import-wizards.json")}getPublicPeerReviewById(U,d){return this._http.get(A.N.API_WEB+U+"/peer-review.json?putCode="+d)}updateVisibility(U,d,q){return this._http.get(A.N.API_WEB+"peer-reviews/"+U+"/visibility/"+d).pipe((0,D.X)(3),(0,p.K)(j=>this._errorHandler.handleError(j)),(0,E.b)(()=>{q?this.getPeerReviewsByGroupId({forceReload:!0},q):this.getPeerReviewGroups({forceReload:!0})}))}delete(U){return this._http.delete(A.N.API_WEB+"peer-reviews/"+U,{headers:this.headers}).pipe((0,D.X)(3),(0,p.K)(d=>this._errorHandler.handleError(d)),(0,E.b)(()=>this.getPeerReviewGroups({forceReload:!0})))}updatePreferredSource(U){return this._http.get(A.N.API_WEB+"peer-reviews/updateToMaxDisplay.json?putCode="+U).pipe((0,D.X)(3),(0,p.K)(d=>this._errorHandler.handleError(d)),(0,E.b)(()=>this.getPeerReviewGroups({forceReload:!0})))}}return(_=g).\u0275fac=function(U){return new(U||_)(f.LFG(b.eN),f.LFG(c.q),f.LFG(C.b))},_.\u0275prov=f.Yz7({token:_,factory:_.\u0275fac,providedIn:"root"}),g})()},17940:(Qe,he,s)=>{"use strict";s.d(he,{a:()=>g});var a=s(8367),r=s(17927),b=s(88419),A=s(96124),D=s(75222),p=s(76406),E=s(62413),f=s(20553),c=s(65879),C=s(4049),m=s(69862),_=s(45323);let g=(()=>{var P;class U{constructor(q,j,K){this._errorHandler=q,this._http=j,this._user=K}getPerson(q){return null!=q&&q.publicRecordId?this.getPublicRecordPerson(q):this.getPrivateRecordPerson(q)}getPublicRecordPerson(q){return this.$personPublicRecordSubject&&!q.forceReload||(this.$personPublicRecordSubject=new a.t(1),this.getPersonHttpCall(q.publicRecordId).pipe((0,r.b)(j=>{this.setupFullCountryCodes(j)}),(0,r.b)(j=>{this.$personPublicRecordSubject.next(j)})).subscribe()),this.$personPublicRecordSubject.asObservable()}getPrivateRecordPerson(q){if(this.$personPrivateRecordSubject){if(!q.forceReload)return this.$personPrivateRecordSubject}else this.$personPrivateRecordSubject=new a.t(1);return this._user.getUserSession().pipe((0,b.P)(),(0,A.U)(j=>j.userInfo.EFFECTIVE_USER_ORCID),(0,D.w)(j=>this.getPersonHttpCall(j)),(0,r.b)(j=>{this.setupFullCountryCodes(j)}),(0,r.b)(j=>{this.$personPrivateRecordSubject.next(j)})).subscribe(),this.$personPrivateRecordSubject}getPersonHttpCall(q){return this._http.get(f.N.API_WEB+`${q}/person.json`).pipe((0,p.X)(3),(0,E.K)(j=>this._errorHandler.handleError(j)))}setupFullCountryCodes(q){q.publicGroupedAddresses&&Object.keys(q.publicGroupedAddresses).map(j=>{q.countryNames&&q.countryNames[j]&&(q.publicGroupedAddresses[q.countryNames[j]]=q.publicGroupedAddresses[j],delete q.publicGroupedAddresses[j])})}}return(P=U).\u0275fac=function(q){return new(q||P)(c.LFG(C.q),c.LFG(m.eN),c.LFG(_.K))},P.\u0275prov=c.Yz7({token:P,factory:P.\u0275fac,providedIn:"root"}),U})()},98202:(Qe,he,s)=>{"use strict";s.d(he,{D:()=>P});var a=s(69862),r=s(8367),b=s(49193),A=s(96124),D=s(76406),p=s(62413),E=s(17927),f=s(75222),c=s(20553),C=s(65879),m=s(4049),_=s(17940),g=s(59817);let P=(()=>{var U;class d{constructor(j,K,L,w){this._http=j,this._errorHandler=K,this._recordPerson=L,this._recordPublicSidebar=w,this.headers=new a.WM({"Access-Control-Allow-Origin":"*"})}getPersonalIdentifiers(j={}){return j.publicRecordId?this._recordPublicSidebar.getPublicRecordSideBar(j).pipe((0,A.U)(K=>K.externalIdentifier)):this.getPrivateRecordIdentifiers(j).asObservable()}getPrivateRecordIdentifiers(j){if(this.$privatePersonIdentifier){if(!j.forceReload)return this.$privatePersonIdentifier}else this.$privatePersonIdentifier=new r.t(1);return j.cleanCacheIfExist&&this.$privatePersonIdentifier&&this.$privatePersonIdentifier.next(void 0),this._http.get(c.N.API_WEB+"my-orcid/externalIdentifiers.json",{headers:this.headers}).pipe((0,D.X)(3),(0,p.K)(K=>this._errorHandler.handleError(K)),(0,p.K)(()=>(0,b.of)({externalIdentifiers:[]})),(0,A.U)(K=>K),(0,E.b)(K=>{this.$privatePersonIdentifier.next(K)})).subscribe(),this.$privatePersonIdentifier}postPersonalIdentifiers(j){return this._http.post(c.N.API_WEB+"my-orcid/externalIdentifiers.json",j,{headers:this.headers}).pipe((0,D.X)(3),(0,p.K)(K=>this._errorHandler.handleError(K)),(0,f.w)(()=>this.getPersonalIdentifiers({forceReload:!0})))}}return(U=d).\u0275fac=function(j){return new(j||U)(C.LFG(a.eN),C.LFG(m.q),C.LFG(_.a),C.LFG(g.s))},U.\u0275prov=C.Yz7({token:U,factory:U.\u0275fac,providedIn:"root"}),d})()},59817:(Qe,he,s)=>{"use strict";s.d(he,{s:()=>C});var a=s(69862),r=s(8367),b=s(49193),A=s(76406),D=s(62413),p=s(17927),E=s(20553),f=s(65879),c=s(4049);let C=(()=>{var m;class _{constructor(P,U){this._http=P,this._errorHandler=U,this.headers=new a.WM({"Access-Control-Allow-Origin":"*"})}getPublicRecordSideBar(P){if(P.publicRecordId)return!this.$SideBarPublicUserRecordSubject||P.forceReload&&!this.sleepForceReloads?(this.sleepForceReloads=!0,this.$SideBarPublicUserRecordSubject=new r.t(1),setTimeout(()=>{this.sleepForceReloads=!1},100),this._http.get(E.N.API_WEB+P.publicRecordId+"/public-record.json",{headers:this.headers}).pipe((0,A.X)(3),(0,D.K)(U=>this._errorHandler.handleError(U)),(0,D.K)(U=>(0,b.of)({})),(0,p.b)(U=>this.$SideBarPublicUserRecordSubject.next(U)))):this.$SideBarPublicUserRecordSubject.asObservable();(0,b.of)({})}}return(m=_).\u0275fac=function(P){return new(P||m)(f.LFG(a.eN),f.LFG(c.q))},m.\u0275prov=f.Yz7({token:m,factory:m.\u0275fac,providedIn:"root"}),_})()},60759:(Qe,he,s)=>{"use strict";s.d(he,{y:()=>_});var a=s(69862),r=s(8367),b=s(49193),A=s(76406),D=s(62413),p=s(96124),E=s(17927),f=s(20553),c=s(34221),C=s(65879),m=s(4049);let _=(()=>{var g;class P{constructor(d,q){this._http=d,this._errorHandler=q,this.$researchResourcesSubject=new r.t,this.headers=new a.WM({"Access-Control-Allow-Origin":"*"})}getResearchResourcePage(d){let q;return d||(d={}),d.pageSize=(null==d?void 0:d.pageSize)||c.L8,d.offset=(null==d?void 0:d.offset)||0,q=null!=d&&d.publicRecordId?d.publicRecordId+"/researchResourcePage.json":"research-resources/researchResourcePage.json",null!=d&&d.cleanCacheIfExist&&this.$researchResourcesSubject&&this.$researchResourcesSubject.next(void 0),this._http.get(f.N.API_WEB+q+"?offset="+d.offset+"&sort="+(null!=d.sort?d.sort:"date")+"&sortAsc="+(null!=d.sortAsc&&d.sortAsc)+"&pageSize="+d.pageSize).pipe((0,A.X)(3),(0,D.K)(j=>this._errorHandler.handleError(j)),(0,D.K)(()=>(0,b.of)({groups:[]})),(0,p.U)(j=>(j.pageSize=d.pageSize,j.pageIndex=d.offset?Math.floor(d.offset/d.pageSize):0,j)),(0,E.b)(j=>{this.$researchResourcesSubject.next(j)})).subscribe(),this.$researchResourcesSubject.asObservable()}changeUserRecordContext(d){return this.getResearchResourcePage(d)}getResearchResourceById(d){return this._http.get(f.N.API_WEB+"research-resources/researchResource.json?id="+d)}getPublicResearchResourceById(d,q){return this._http.get(f.N.API_WEB+d+"/researchResource.json?id="+q)}updateVisibility(d,q){return this._http.get(f.N.API_WEB+"research-resources/"+d+"/visibility/"+q).pipe((0,A.X)(3),(0,D.K)(j=>this._errorHandler.handleError(j)),(0,E.b)(()=>this.getResearchResourcePage({forceReload:!0})))}delete(d){return this._http.delete(f.N.API_WEB+"research-resources/"+d,{headers:this.headers}).pipe((0,A.X)(3),(0,D.K)(q=>this._errorHandler.handleError(q)),(0,E.b)(()=>this.getResearchResourcePage({forceReload:!0})))}updatePreferredSource(d){return this._http.get(f.N.API_WEB+"research-resources/updateToMaxDisplay.json?putCode="+d).pipe((0,A.X)(3),(0,D.K)(q=>this._errorHandler.handleError(q)),(0,E.b)(()=>this.getResearchResourcePage({forceReload:!0})))}}return(g=P).\u0275fac=function(d){return new(d||g)(C.LFG(a.eN),C.LFG(m.q))},g.\u0275prov=C.Yz7({token:g,factory:g.\u0275fac,providedIn:"root"}),P})()},13352:(Qe,he,s)=>{"use strict";s.d(he,{i:()=>_});var a=s(8367),r=s(49193),b=s(69862),A=s(20553),D=s(96124),p=s(76406),E=s(62413),f=s(17927),c=s(65879),C=s(4049),m=s(59817);let _=(()=>{var g;class P{constructor(d,q,j){this._http=d,this._errorHandler=q,this._recordPublicSidebar=j,this.headers=new b.WM({"Access-Control-Allow-Origin":"*"})}getWebsites(d={forceReload:!1}){if(d.publicRecordId)return this._recordPublicSidebar.getPublicRecordSideBar(d).pipe((0,D.U)(q=>q.website));if(this.$websites){if(!d.forceReload)return this.$websites}else this.$websites=new a.t(1);return d.cleanCacheIfExist&&this.$websites&&this.$websites.next(void 0),this._http.get(A.N.API_WEB+"my-orcid/websitesForms.json",{headers:this.headers}).pipe((0,p.X)(3),(0,E.K)(q=>this._errorHandler.handleError(q)),(0,E.K)(()=>(0,r.of)({websites:[]})),(0,f.b)(q=>{this.$websites.next(q)})).subscribe(),this.$websites}postWebsites(d){return this._http.post(A.N.API_WEB+"my-orcid/websitesForms.json",d,{headers:this.headers}).pipe((0,p.X)(3),(0,E.K)(q=>this._errorHandler.handleError(q)),(0,f.b)(()=>this.getWebsites({forceReload:!0})))}}return(g=P).\u0275fac=function(d){return new(d||g)(c.LFG(b.eN),c.LFG(C.q),c.LFG(m.s))},g.\u0275prov=c.Yz7({token:g,factory:g.\u0275fac,providedIn:"root"}),P})()},77226:(Qe,he,s)=>{"use strict";s.d(he,{Y:()=>d});var a=s(8367),r=s(45125),b=s(49193),A=s(96124),D=s(75222),p=s(76406),E=s(62413),f=s(17927),c=s(51418),C=s(67886),m=s(20553),_=s(34221),g=s(65879),P=s(69862),U=s(4049);let d=(()=>{var q;class j{get $loading(){return this._$loading.asObservable()}constructor(L,w){this._http=L,this._errorHandler=w,this.lastEmittedValue=null,this.groupingSuggestionsSubjectInitialized=!1,this.groupingSuggestionsSubject=new a.t(1),this.$workSubject=new a.t(1),this.offset=0,this.sortOrder="date",this.sortAsc=!1,this.pageSize=_.L8,this.contributionRoles=C.tM,this.userRecordOptions={},this._$loading=new r.X(!0)}sort(L=0,w="date",k=!1,X){return this.getWorksData(L,w,k,X).pipe((0,A.U)(de=>{this.lastEmittedValue=de,this.$workSubject.next(de)}),(0,D.w)(de=>this.$workSubject.asObservable()))}getWorks(L){let w;return L||(L={}),null!=L&&L.cleanCacheIfExist&&this.$workSubject&&this.$workSubject.next(void 0),L.pageSize=(null==L?void 0:L.pageSize)||_.L8,L.offset=L.offset||0,this.pageSize=L.pageSize,this.offset=L.offset,this.sortOrder=L.sort,this.sortAsc=L.sortAsc,this._$loading.next(!0),w=L.publicRecordId?L.publicRecordId+"/worksExtendedPage.json":"works/worksExtendedPage.json",this._http.get(m.N.API_WEB+w+"?offset="+L.offset+"&sort="+(null!=L.sort?L.sort:"date")+"&sortAsc="+(null!=L.sortAsc&&L.sortAsc)+"&pageSize="+L.pageSize).pipe((0,p.X)(3),(0,E.K)(k=>this._errorHandler.handleError(k)),(0,E.K)(()=>(0,b.of)({groups:[]})),(0,A.U)(k=>(k.pageSize=L.pageSize,k.pageIndex=L.offset?Math.floor(L.offset/L.pageSize):0,k.groups=this.calculateVisibilityErrors(k.groups),k)),(0,f.b)(k=>{this._$loading.next(!1),this.lastEmittedValue=k,this.$workSubject.next(k)}),(0,f.b)(()=>{L.publicRecordId||this.getWorksGroupingSuggestions({force:!0})})).subscribe(),this.$workSubject.asObservable()}calculateVisibilityErrors(L){return null==L?void 0:L.map(w=>(w.visibilityError=!!w.works.find(k=>k.visibility.visibility!==w.activeVisibility),w))}changeUserRecordContext(L){return this.userRecordOptions=L,this.getWorks(L).pipe((0,c.q)(1))}getDetails(L,w){return this.getWorkInfo(L,w).pipe((0,f.b)(k=>{this.lastEmittedValue.groups.map(X=>{X.works=X.works.map(de=>de.putCode.value===L?k:de)}),this.$workSubject.next(this.lastEmittedValue)}),(0,D.w)(()=>this.$workSubject.asObservable()))}getWorkInfo(L,w){return this._http.get(m.N.API_WEB+`${w?w+"/":"works/"}getWorkInfo.json?workId=${L}`).pipe((0,p.X)(3),(0,E.K)(k=>this._errorHandler.handleError(k)))}getWorksInfo(L,w){return this._http.get(m.N.API_WEB+`works/worksInfo/${L.join(",")}`).pipe((0,p.X)(3),(0,E.K)(k=>this._errorHandler.handleError(k)))}getWorksData(L,w,k,X){return this._http.get(m.N.API_WEB+`${X?X+"/":"works/"}worksPage.json?offset=${L}&sort=${w}&sortAsc=${k}&pageSize=50`).pipe((0,p.X)(3),(0,E.K)(de=>this._errorHandler.handleError(de)))}save(L,w=!0,k=!1){return this._http.post(m.N.API_WEB+"works/work.json",L).pipe((0,p.X)(3),(0,E.K)(X=>this._errorHandler.handleError(X)),(0,f.b)(()=>{k||this.getWorks({forceReload:!0})}))}getWork(){return this._http.get(m.N.API_WEB+"works/work.json").pipe((0,p.X)(3),(0,A.U)(L=>(L.workExternalIdentifiers=[],L)),(0,E.K)(L=>this._errorHandler.handleError(L)))}set(L){throw new Error("Method not implemented.")}updateVisibility(L,w){const k={forceReload:!0,offset:this.offset,sort:this.sortOrder,sortAsc:this.sortAsc};return this._http.get(m.N.API_WEB+"works/"+L+"/visibility/"+w).pipe((0,p.X)(3),(0,E.K)(X=>this._errorHandler.handleError(X)),(0,f.b)(()=>this.getWorks(k)))}updatePreferredSource(L){return this._http.get(m.N.API_WEB+"works/updateToMaxDisplay.json?putCode="+L).pipe((0,p.X)(3),(0,E.K)(w=>this._errorHandler.handleError(w)),(0,f.b)(()=>this.getWorks({...this.userRecordOptions,forceReload:!0})))}loadWorkIdTypes(){return this._http.get(`${m.N.API_WEB}works/idTypes.json?query=`).pipe((0,p.X)(3),(0,E.K)(L=>this._errorHandler.handleError(L)))}validateWorkIdTypes(L,w){return this._http.get(`${m.N.API_WEB}works/id/${L}?value=${w}`).pipe((0,p.X)(3),(0,E.K)(k=>this._errorHandler.handleError(k)))}delete(L){return this._http.delete(m.N.API_WEB+"works/"+(Array.isArray(L)?L.join(","):L)).pipe((0,p.X)(3),(0,E.K)(w=>this._errorHandler.handleError(w)),(0,f.b)(()=>this.getWorks({forceReload:!0})))}combine(L){return this.combinePutCodes(L.join(","))}combinePutCodes(L){return this._http.post(m.N.API_WEB+"works/group/"+L,{}).pipe((0,p.X)(3),(0,E.K)(w=>this._errorHandler.handleError(w)),(0,f.b)(()=>this.getWorks({forceReload:!0})))}visibility(L,w){return this._http.get(m.N.API_WEB+"works/"+L.join(",")+"/visibility/"+w).pipe((0,p.X)(3),(0,E.K)(k=>this._errorHandler.handleError(k)),(0,f.b)(()=>this.getWorks({forceReload:!0})))}export(){return this._http.get(m.N.API_WEB+"works/works.bib",{responseType:"text"})}exportSelected(L){return this._http.get(m.N.API_WEB+"works/export/bibtex?workIdsStr="+L.join(","),{responseType:"text"})}loadWorkImportWizardList(){return this._http.get(m.N.API_WEB+"workspace/retrieve-work-import-wizards.json")}loadExternalId(L,w){let k="works/resolve/doi?value=";return w===_.mp.pubMed&&(k=new RegExp(/((.*[\/,\\](pmc))|(PMC)\/?\d{5})/g).exec(L)?"works/resolve/pmc/?value=":"works/resolve/pmid?value="),this._http.get(m.N.API_WEB+k+L)}worksValidate(L){return this._http.post(m.N.API_WEB+"works/worksValidate.json",JSON.stringify(L),{headers:{"Access-Control-Allow-Origin":"*"}})}getWorksGroupingSuggestions(L={force:!1}){return(L.force||!this.groupingSuggestionsSubjectInitialized)&&(this.groupingSuggestionsSubjectInitialized=!0,this._http.get(m.N.API_WEB+"works/groupingSuggestions.json",{headers:{"Access-Control-Allow-Origin":"*"}}).subscribe(w=>this.groupingSuggestionsSubject.next(w))),this.groupingSuggestionsSubject.asObservable()}getContributionRoleByKey(L){return this.contributionRoles.find(w=>w.key===L)||C.YM.find(w=>w.key===L)}}return(q=j).\u0275fac=function(L){return new(L||q)(g.LFG(P.eN),g.LFG(U.q))},q.\u0275prov=g.Yz7({token:q,factory:q.\u0275fac,providedIn:"root"}),j})()},6152:(Qe,he,s)=>{"use strict";s.d(he,{B:()=>it});var a=s(69862),r=s(72079),b=s(8367),A=s(23291),D=s(49193),p=s(53075),E=s(17927),f=s(19352),c=s(76406),C=s(62413),m=s(96124),_=s(20553),g=s(65879),P=s(4049),U=s(10111),d=s(6297),q=s(47127),j=s(2778),K=s(15017),L=s(80528),w=s(13352),k=s(46018),X=s(75340),de=s(98202),re=s(28325),be=s(60759),pe=s(77226),$e=s(17940),Je=s(59817),qe=s(95972);let it=(()=>{var rt;class tt{constructor(ze,Ze,ot,Ct,De,ft,st,bt,_e,H,Te,Me,Pe,dt,Pt,Qt,cn,Ie){this._http=ze,this._errorHandler=Ze,this._recordBiographyService=ot,this._recordKeywordService=Ct,this._recordNamesService=De,this._recordOtherNamesService=ft,this._recordEmailsService=st,this._recordCountryService=bt,this._recordWebsitesService=_e,this._recordAffiliations=H,this._recordFundings=Te,this._recordPersonalIdentifier=Me,this._recordPeerReviewService=Pe,this._recordResearchResourceService=dt,this._recordWorkService=Pt,this._recordPerson=Qt,this._recordPublicSidebar=cn,this._userInfo=Ie,this.$destroy=new r.xQ,this.headers=new a.WM({"Access-Control-Allow-Origin":"*"}),this.subscriptionSourceCountDebugger=0}getRecord(ze){var ot;if(this.recordSubject$){if(null==ze||!ze.forceReload)return this.recordSubject$.asObservable()}else this.recordSubject$=new b.t(1),this.attachDebugger();this.recordSubject$&&null!=ze&&ze.cleanCacheIfExist&&this.recordSubject$.next(void 0);const Ze=this.subscriptionSourceCountDebugger;return this.subscriptionSourceCountDebugger=this.subscriptionSourceCountDebugger+1,this.$destroy.next(),(0,A.aj)([this._recordEmailsService.getEmails(ze).pipe((0,p.O)(void 0)),this._recordOtherNamesService.getOtherNames(ze).pipe((0,p.O)(void 0)),this._recordCountryService.getAddresses(ze).pipe((0,p.O)(void 0)),this._recordKeywordService.getKeywords(ze).pipe((0,p.O)(void 0)),this._recordWebsitesService.getWebsites(ze).pipe((0,p.O)(void 0)),this._recordPersonalIdentifier.getPersonalIdentifiers(ze).pipe((0,p.O)(void 0)),this._recordNamesService.getNames(ze).pipe((0,p.O)(void 0)),this._recordBiographyService.getBiography(ze).pipe((0,p.O)(void 0)),this._recordAffiliations.getAffiliations(ze).pipe((0,p.O)(void 0)),this._recordFundings.getFundings(ze).pipe((0,p.O)(void 0)),null==(ot=this.getPreferences(ze))?void 0:ot.pipe((0,p.O)(void 0)),this._recordPeerReviewService.getPeerReviewGroups(ze).pipe((0,p.O)(void 0)),this._recordResearchResourceService.getResearchResourcePage(ze).pipe((0,p.O)(void 0)),this._recordWorkService.getWorks(ze).pipe((0,p.O)(void 0)),this.getLastModifiedTime(ze).pipe((0,p.O)(void 0)),this._userInfo.getUserInfo(ze).pipe((0,p.O)(void 0))]).pipe((0,E.b)(([Ct,De,ft,st,bt,_e,H,Te,Me,Pe,dt,Pt,Qt,cn,Ie,ne])=>{this.recordSubject$.next({subscriptionCount:Ze,emails:Ct,otherNames:De,countries:ft,keyword:st,website:bt,externalIdentifier:_e,names:H,biography:Te,affiliations:Me,fundings:Pe,preferences:dt,peerReviews:Pt,researchResources:Qt,works:cn,lastModifiedTime:Ie,userInfo:ne})}),(0,f.R)(this.$destroy)).subscribe(),this.recordSubject$.asObservable()}attachDebugger(){_.N.debugger&&this.recordSubject$.subscribe(ze=>{console.debug(ze)})}getExternalIdentifier(){return this._http.get(_.N.API_WEB+"my-orcid/externalIdentifiers.json",{headers:this.headers}).pipe((0,c.X)(3),(0,C.K)(ze=>this._errorHandler.handleError(ze)))}getKeywords(){return this._http.get(_.N.API_WEB+"my-orcid/keywordsForms.json",{headers:this.headers}).pipe((0,c.X)(3),(0,C.K)(ze=>this._errorHandler.handleError(ze)))}postExternalIdentifier(ze){return this._http.post(_.N.API_WEB+"my-orcid/externalIdentifiers.json",ze,{headers:this.headers}).pipe((0,c.X)(3),(0,C.K)(Ze=>this._errorHandler.handleError(Ze)))}postKeywords(ze){return this._http.post(_.N.API_WEB+"my-orcid/keywordsForms.json",ze,{headers:this.headers}).pipe((0,c.X)(3),(0,C.K)(Ze=>this._errorHandler.handleError(Ze)))}getPreferences(ze={forceReload:!1}){return ze.publicRecordId?(0,D.of)(void 0):this._http.get(_.N.API_WEB+"account/preferences.json",{headers:this.headers}).pipe((0,c.X)(3),(0,C.K)(Ze=>this._errorHandler.handleError(Ze)),(0,C.K)(()=>(0,D.of)({})))}postPreferences(ze){return this._http.post(_.N.API_WEB+"account/preferences.json",ze,{headers:this.headers}).pipe((0,c.X)(3),(0,C.K)(Ze=>this._errorHandler.handleError(Ze)))}getLastModifiedTime(ze={forceReload:!1}){return ze.publicRecordId?this._recordPublicSidebar.getPublicRecordSideBar(ze).pipe((0,m.U)(Ze=>Ze.lastModifiedTime)):(0,D.of)(void 0)}}return(rt=tt).\u0275fac=function(ze){return new(ze||rt)(g.LFG(a.eN),g.LFG(P.q),g.LFG(U.C),g.LFG(d.B),g.LFG(q.f),g.LFG(j.$),g.LFG(K.o),g.LFG(L.r),g.LFG(w.i),g.LFG(k.l),g.LFG(X.i),g.LFG(de.D),g.LFG(re.b),g.LFG(be.y),g.LFG(pe.Y),g.LFG($e.a),g.LFG(Je.s),g.LFG(qe.$))},rt.\u0275prov=g.Yz7({token:rt,factory:rt.\u0275fac,providedIn:"root"}),tt})()},10011:(Qe,he,s)=>{"use strict";s.d(he,{o:()=>f});var a=s(20553),r=s(62413),b=s(96124),A=s(34221),D=s(65879),p=s(69862),E=s(4049);let f=(()=>{var c;class C{constructor(_,g){this._http=_,this._errorHandler=g,this.quickSearchEDisMax='{!edismax qf="given-and-family-names^50.0 family-name^10.0 given-names^10.0 credit-name^10.0 other-names^5.0 text^1.0" pf="given-and-family-names^50.0" bq="current-institution-affiliation-name:[* TO *]^100.0 past-institution-affiliation-name:[* TO *]^70" mm=1}'}search(_){return this._http.get(`${a.N.API_PUB}/expanded-search/${this.buildSearchUrl(_)}`,{headers:{Accept:"application/json"}}).pipe((0,r.K)(g=>this._errorHandler.handleError(g)),(0,b.U)(g=>{var P;return g["expanded-result"]=null==(P=g["expanded-result"])?void 0:P.map(U=>(!U["given-names"]&&!U["family-names"]&&(U["given-names"]="Name is private"),U)),g}))}buildSearchUrl(_){const g={};Object.keys(_).map(U=>{"string"==typeof _[U]&&(g[U]=this.escapeReservedChar(_[U]))});const P=this.extractOrcidId(g.orcid)||this.extractOrcidId(g.searchQuery);if(g&&P)return this.encodeUrlWithPagination(`orcid:${P}`,_);if(g&&g.searchQuery)return this.encodeUrlWithPagination(this.quickSearchEDisMax+g.searchQuery,_);if(g){const U=[];if(g.firstName){let d=`given-names:${g.firstName}`;"true"===g.otherFields&&(d+=` OR other-names:${g.firstName}`),U.push(`(${d})`)}if(g.lastName){let d=`family-name:${g.lastName}`;"true"===g.otherFields&&(d+=` OR other-names:${g.lastName}`),U.push(`(${d})`)}return g.keyword&&U.push(`keyword:${g.keyword}`),g.institution&&(g.institution.match(/^[0-9]*$/)?U.push(`ringgold-org-id:${g.institution}`):g.institution.startsWith("grid.")?U.push(`grid-org-id:${g.institution}`):g.institution.startsWith("http")?U.push(`ror-org-id:${g.institution}`):U.push(`affiliation-org-name:${g.institution}`)),this.setEdismaxAndEncodedUrlWithPagination(U.join(" AND "),_)}}escapeReservedChar(_){return _.replace(/([!^&*()+=\[\]\\/{}|:?~])/g,"\\$1").toLowerCase().trim()}extractOrcidId(_){const g=A.Rc.exec(_);return g?g[0].toUpperCase():null}searchParametersAdapter(_){const g={};return Object.keys(_).forEach(P=>{"string"==typeof _[P]?_[P].trim()&&"false"!==_[P]&&(g[P]=_[P].trim()):_[P]&&(g[P]=_[P])}),g}setEdismaxAndEncodedUrlWithPagination(_,g){return"?bq="+encodeURIComponent("current-institution-affiliation-name:[* TO *]^100.0 past-institution-affiliation-name:[* TO *]^70")+`&defType=edismax&q=${encodeURIComponent(_)}`+this.handlePagination(g)}encodeUrlWithPagination(_,g){return`?q=${encodeURIComponent(_)}`+this.handlePagination(g)}handlePagination(_){return`&start=${_.pageIndex*_.pageSize||0}&rows=${_.pageSize||A.L8}`}}return(c=C).\u0275fac=function(_){return new(_||c)(D.LFG(p.eN),D.LFG(E.q))},c.\u0275prov=D.Yz7({token:c,factory:c.\u0275fac,providedIn:"root"}),C})()},25180:(Qe,he,s)=>{"use strict";s.d(he,{y:()=>c});var a=s(88165),r=s(8367),b=s(23291),A=s(97734),D=s(96124),p=s(34221),E=s(65879),f=s(6593);let c=(()=>{var C;class m{constructor(g,P){this._titleService=g,this._router=P,this._displayName=new r.t(1)}init(){this._displayName.next(""),(0,b.aj)([this._router.events.pipe((0,A.h)(g=>g instanceof a.m2),(0,D.U)(g=>g)),this._displayName.asObservable()]).subscribe(([g,P])=>{null!=g&&g.url.startsWith("/my-orcid")||!p.Rs.test(null==g?void 0:g.url)||!P?Object.keys(p.vK).forEach(U=>{g.url.startsWith("/"+U)&&this.setTitle(P?`${P} ${p.Lc.orcidMyPageTitle}`:p.vK[U])}):this.setTitle(`${P} ${p.Lc.orcidPageTitle}`)})}setTitle(g){/[\u0600-\u06FF]/.test(g)&&(g=g.replace(/-/g,"\u1b78")),this._titleService.setTitle(g)}setDisplayName(g){this._displayName.next(g)}}return(C=m).\u0275fac=function(g){return new(g||C)(E.LFG(f.Dx),E.LFG(a.F0))},C.\u0275prov=E.Yz7({token:C,factory:C.\u0275fac}),m})()},23738:(Qe,he,s)=>{"use strict";s.d(he,{b:()=>c});var a=s(8367),r=s(75222),A=s(96124),D=s(20553),p=s(65879),E=s(69862),f=s(12160);let c=(()=>{var C;class m{constructor(g,P){this._http=g,this.userService=P}getConfig(){return this._http.get(D.N.API_WEB+"config.json",{withCredentials:!0})}getTogglz(){return this.togglzSubject||(this.togglzSubject=new a.t(1),this.userService.$userStatusChecked.asObservable().pipe(function b(C,m){return m?(0,r.w)(()=>C,m):(0,r.w)(()=>C)}(this.getConfig())).subscribe(g=>{this.togglzSubject.next(g)})),this.togglzSubject.asObservable()}getStateOf(g){return this.getTogglz().pipe((0,A.U)(P=>"true"===P.messages[g]))}getMessageOf(g){return this.getTogglz().pipe((0,A.U)(P=>P.messages[g]))}getMaintenanceMessages(){return this.getMessageOf("MAINTENANCE_MESSAGE").pipe((0,A.U)(g=>{const P=g,d=(new DOMParser).parseFromString(P,"text/html");return{plainHtml:P,closableElements:this.nodelistToArray(d.querySelectorAll("div.closable")),nonClosableElements:this.nodelistToArray(d.querySelectorAll("div.regular"))}}))}nodelistToArray(g){const P=[];return g.forEach(U=>{P.push(U)}),P}}return(C=m).\u0275fac=function(g){return new(g||C)(p.LFG(E.eN),p.LFG(f.KD))},C.\u0275prov=p.Yz7({token:C,factory:C.\u0275fac,providedIn:"root"}),m})()},95972:(Qe,he,s)=>{"use strict";s.d(he,{$:()=>c});var a=s(6990),b=s(96124),A=s(20553),D=s(65879),p=s(69862),E=s(88165),f=s(71142);let c=(()=>{var C;class m{constructor(g,P,U){this._http=g,this._router=P,this._platform=U,this._platform.get().subscribe(d=>this.platform=d)}getUserInfo(g){return this._http.get(A.N.API_WEB+(null!=g&&g.publicRecordId?g.publicRecordId+"/":"")+"userInfo.json",{withCredentials:!0}).pipe((0,b.U)(P=>(P.USER_NOT_FOUND=(0,a.isEmpty)(P),P.RECORD_WITH_ISSUES=!("true"!==P.IS_LOCKED&&"true"!==P.IS_DEACTIVATED&&!P.PRIMARY_RECORD),this.platform.queryParameters.hasOwnProperty("orcid")&&!this.platform.hasOauthParameters&&this._router.navigate(["/my-orcid"],{queryParams:{orcid:P.EFFECTIVE_USER_ORCID}}),P)))}}return(C=m).\u0275fac=function(g){return new(g||C)(D.LFG(p.eN),D.LFG(E.F0),D.LFG(f.tu))},C.\u0275prov=D.Yz7({token:C,factory:C.\u0275fac,providedIn:"root"}),m})()},45323:(Qe,he,s)=>{"use strict";s.d(he,{K:()=>ze});var a=s(69862),r=s(8367),b=s(45125),A=s(72079),D=s(47354),p=s(71928),E=s(23291),f=s(49193),c=s(96124),C=s(76406),m=s(62413),_=s(19352),g=s(97734),P=s(75222),U=s(53075),d=s(17927),q=s(88419),j=s(51418),K=s(70959),L=s(47279),w=s(6735);class X{constructor(ot,Ct){this.notifier=ot,this.source=Ct}call(ot,Ct){return Ct.subscribe(new de(ot,this.notifier,this.source))}}class de extends L.L{constructor(ot,Ct,De){super(ot),this.notifier=Ct,this.source=De}error(ot){if(!this.isStopped){let Ct=this.errors,De=this.retries,ft=this.retriesSubscription;if(De)this.errors=null,this.retriesSubscription=null;else{Ct=new A.xQ;try{const{notifier:st}=this;De=st(Ct)}catch(st){return super.error(st)}ft=(0,w.D)(this,De)}this._unsubscribeAndRecycle(),this.errors=Ct,this.retries=De,this.retriesSubscription=ft,Ct.next(ot)}}_unsubscribe(){const{errors:ot,retriesSubscription:Ct}=this;ot&&(ot.unsubscribe(),this.errors=null),Ct&&(Ct.unsubscribe(),this.retriesSubscription=null),this.retries=null}notifyNext(ot,Ct,De,ft,st){const{_unsubscribe:bt}=this;this._unsubscribe=null,this._unsubscribeAndRecycle(),this._unsubscribe=bt,this.source.subscribe(this)}}var re=s(29384),be=s(6666),pe=s(30742),$e=s(20553),Je=s(65879),qe=s(4049),it=s(71142),rt=s(26084),tt=s(31409),_t=s(95972);let ze=(()=>{var Ze;class ot{constructor(De,ft,st,bt,_e,H,Te){this._http=De,this._errorHandler=ft,this._platform=st,this._oauth=bt,this._disco=_e,this._userInfo=H,this.window=Te,this.headers=new a.WM({"Access-Control-Allow-Origin":"*"}),this.$userStatusChecked=new r.t,this.loggingStateComesFromTheServer=!1,this.$userSessionSubject=new r.t(1),this.sessionInitialized=!1,this.keepRefreshingUserSession=!0,this.hiddenTab=!1,this.START_IMMEDIATELY_AND_CHECK_EVERY_TWENTY_FIVE_MINUTES={start:0,interval:15e5},this.START_IN_TWENTY_FIVE_MINUTES_AND_CHECK_EVERY_TWENTY_FIVE_MINUTES={start:15e5,interval:15e5},this.interval$=new b.X(this.START_IMMEDIATELY_AND_CHECK_EVERY_TWENTY_FIVE_MINUTES),this.reset$=new A.xQ,this._recheck=new A.xQ}getUserStatus(){return this._http.get($e.N.API_WEB+"userStatus.json",{withCredentials:!0}).pipe((0,c.U)(De=>!!De.loggedIn)).pipe((0,C.X)(3),(0,m.K)(De=>this._errorHandler.handleError(De,pe.l.STANDARD_VERBOSE)))}getNameForm(){return this._http.get($e.N.API_WEB+"account/nameForm.json",{withCredentials:!0})}getUserSession(){return this.sessionInitialized?this.$userSessionSubject:(this.sessionInitialized=!0,this.interval$.subscribe(De=>{(0,D.T)((0,p.H)(De.start,De.interval).pipe((0,_.R)(this.reset$),(0,c.U)(ft=>({timerUpdate:ft}))),this._recheck).pipe((0,g.h)(ft=>this.keepRefreshingUserSession),(0,P.w)(ft=>(this.$userStatusChecked.next(null),this.getUserStatus().pipe((0,c.U)(st=>({loggedIn:st,checkTrigger:ft}))))),(0,g.h)(ft=>(this.loggingStateComesFromTheServer=!0,this.userStatusHasChange(ft))),(0,U.O)(this.loggingStateComesFromTheServer?{}:{loggedIn:!0,checkTrigger:{timerUpdate:-1}}),(0,g.h)(ft=>void 0!==ft.checkTrigger),(0,P.w)(ft=>{if(ft)return this.handleUserDataUpdate(ft)}),(0,c.U)(ft=>this.computesUpdatedUserData(ft)),(0,d.b)(ft=>$e.N.debugger?console.debug(ft):null),(0,d.b)(ft=>{this.$userSessionSubject.next(ft)})).subscribe()}),this.$userSessionSubject.asObservable())}userStatusHasChange(De){return!(De.loggedIn===this.currentlyLoggedIn&&!De.checkTrigger.forceSessionUpdate)}computesUpdatedUserData(De){return{...De,loggedIn:!!De.userInfo||!!De.nameForm,displayName:this.getDisplayName(De.nameForm),orcidUrl:this.getOrcidUrl(De),effectiveOrcidUrl:this.getOrcidUrl(De,!0),oauthSessionIsLoggedIn:!!De.oauthSession&&!!De.oauthSession.userOrcid&&!!De.oauthSession.userName}}getOrcidUrl(De,ft=!1){if(De&&De.userInfo){const st=ft?De.userInfo.EFFECTIVE_USER_ORCID:De.userInfo.REAL_USER_ORCID;if(st)return"https:"+$e.N.BASE_URL+st}}handleUserDataUpdate(De){this.currentlyLoggedIn=De.loggedIn;const ft=this._userInfo.getUserInfo().pipe(this.handleErrors),st=this.getNameForm().pipe(this.handleErrors),bt=this.getOauthSession(De),_e=this.getThirdPartySignInData();return(0,E.aj)([De.loggedIn?ft:(0,f.of)(void 0),De.loggedIn?st:(0,f.of)(void 0),bt,De.loggedIn?(0,f.of)(void 0):_e]).pipe((0,c.U)(([H,Te,Me,Pe])=>({userInfo:H,nameForm:Te,oauthSession:Me,thirdPartyAuthData:Pe})))}getOauthSession(De){return this._platform.get().pipe((0,q.P)(),(0,P.w)(ft=>{if(ft.hasOauthParameters){let st=ft.queryParameters;return De.checkTrigger.postLoginUpdate&&(st={...st,prompt:void 0}),this._oauth.declareOauthSession(st,De).pipe((0,d.b)(bt=>this.keepRefreshingUserSession=!bt.error),(0,d.b)(()=>$e.N.debugger?console.debug("Oauth session declare"):null))}return(0,f.of)(null)}))}getThirdPartySignInData(){return this._platform.get().pipe((0,q.P)(),(0,P.w)(De=>De.social?this._oauth.loadSocialSigninData().pipe((0,j.q)(1),(0,c.U)(ft=>({signinData:ft,entityDisplayName:this.loadSocialSignInData(ft.entityID)}))):De.institutional||"register"===De.currentRoute?this._oauth.loadShibbolethSignInData().pipe((0,j.q)(1),(0,P.w)(ft=>this._disco.getInstitutionNameBaseOnId(ft.providerId).pipe((0,c.U)(st=>({entityDisplayName:st,signinData:ft}))))):(0,f.of)(null)))}loadSocialSignInData(De){return("facebook"===De||"google"===De)&&(De=De.charAt(0).toUpperCase()+De.slice(1)),De}refreshUserSession(De=!1,ft=!1){return this._recheck.next({forceSessionUpdate:De,postLoginUpdate:ft}),this.getUserSession().pipe((0,j.q)(2),(0,K.Z)())}getDisplayName(De){if(null!=De)return De.creditName&&De.creditName.value&&De.creditName.value.length?De.creditName.value:(De.givenNames&&De.givenNames.value||" ")+" "+(De.familyName&&De.familyName.value||" ")}handleErrors(De){return De.pipe(function k(Ze){return ot=>ot.lift(new X(Ze,ot))}(ft=>ft.pipe((0,re.g)(2e3)).pipe((0,d.b)(st=>{if(!this.currentlyLoggedIn||!this.loggingStateComesFromTheServer)throw new Error("currentlyLoggedInWithErrors")})))).pipe((0,m.K)(ft=>(0,f.of)(null)))}switchAccount(De){const ft=(new a.LE).append("username",De.giverOrcid.path);return this._http.post(`${$e.N.API_WEB}switch-user`,"",{headers:this.headers,params:ft}).pipe((0,m.K)(st=>0===st.status?(this.refreshUserSession(!0),(0,f.of)(st)):this._errorHandler.handleError(st,pe.l.STANDARD_VERBOSE)))}setTimerAsHiddenState(De){De&&!this.hiddenTab?(this.hiddenTab=De,this.reset$.next(),this.interval$.next(this.START_IN_TWENTY_FIVE_MINUTES_AND_CHECK_EVERY_TWENTY_FIVE_MINUTES)):!De&&this.hiddenTab&&(this.hiddenTab=De,this.reset$.next(),this.interval$.next(this.START_IMMEDIATELY_AND_CHECK_EVERY_TWENTY_FIVE_MINUTES))}noRedirectLogout(){return this._http.get(`${$e.N.API_WEB}signout`,{headers:this.headers,observe:"response",responseType:"text"}).pipe((0,d.b)(()=>{},()=>{this.window.location.reload()}))}}return(Ze=ot).\u0275fac=function(De){return new(De||Ze)(Je.LFG(a.eN),Je.LFG(qe.q),Je.LFG(it.tu),Je.LFG(rt.D),Je.LFG(tt.j),Je.LFG(_t.$),Je.LFG(be.m9))},Ze.\u0275prov=Je.Yz7({token:Ze,factory:Ze.\u0275fac,providedIn:"root"}),ot})()},23318:(Qe,he,s)=>{"use strict";s.d(he,{p:()=>A});var a=s(6666),r=s(34221),b=s(65879);let A=(()=>{var D;class p{constructor(f){this._window=f}hide(){this.zE=this._window.zE,this.zE("webWidget","hide")}show(){this.zE=this._window.zE,this.zE("webWidget","show")}open(){this.zE("webWidget","open")}adaptPluginToPlatform(f){"rtl"===f.screenDirection&&this.zE("webWidget","updateSettings",{webWidget:{position:{horizontal:"left",vertical:"bottom"}}})}autofillTicketForm(f,c,C){let m="";const _=this._window.location.href.match(r.yV);_&&_[0]&&0===_[0].indexOf("redirect_uri=")&&(m=decodeURIComponent(_[0].split("redirect_uri=")[1])),this.zE("webWidget","updateSettings",{webWidget:{helpCenter:{suppress:!0},contactForm:{ticketForms:[{id:360003482054}],fields:[{id:"name",prefill:{"*":f&&f.displayName||""}},{id:"360028693514",prefill:{"*":f&&f.userInfo&&f.userInfo.EFFECTIVE_USER_ORCID||""}},{id:"email",prefill:{"*":f&&f.userInfo&&f.userInfo.PRIMARY_EMAIL||""}},{id:"subject",prefill:{"*":c||""}},{id:"360039623413",prefill:{"*":m||""}},{id:"description",prefill:{"*":C&&`\n_________________\nThe following is an error code for the support staff, please do not delete or modify it.\nLeave your comments above if required.\n"${C}"`}}]}}})}}return(D=p).\u0275fac=function(f){return new(f||D)(b.LFG(a.m9))},D.\u0275prov=b.Yz7({token:D,factory:D.\u0275fac,providedIn:"root"}),p})()},30742:(Qe,he,s)=>{"use strict";s.d(he,{l:()=>a});const a={JUST_GA:{analytics:{code:"000",fatal:!0}},STANDARD_NO_VERBOSE:{display:{title:"Oh no! An error occurred",message:"Internal Orcid QA error please",displayOnlyOnVerboseEnvironment:!0,action:"visit our knowledge base.",actionURL:"https://support.orcid.org/hc/en-us/articles/360047687054"},analytics:{code:"001",fatal:!0}},STANDARD_NO_VERBOSE_NO_GA:{display:{title:"Oh no! An error occurred",message:"Internal Orcid QA, error please",displayOnlyOnVerboseEnvironment:!0,action:"visit our knowledge base.",actionURL:"https://support.orcid.org/hc/en-us/articles/360047687054"}},STANDARD_VERBOSE:{display:{title:"Oh no! An error occurred",message:"Please try again, and if the error persists please",action:"visit our knowledge base.",actionURL:"https://support.orcid.org/hc/en-us/articles/360047687054"},analytics:{code:"002",fatal:!0}},RESET_PASSWORD_COULD_NOT_RECOVER:{display:{title:"Oh no! An error occurred",message:"We couldn't recover your account details. Please try again, and if the error persists please",action:"visit our knowledge base.",actionURL:"https://support.orcid.org/hc/en-us/articles/360047687054"},analytics:{code:"003",fatal:!0}},REGISTER:{display:{title:"Oh no! An error occurred",message:"We couldn't complete your registration. Please try again, and if the error persists please",action:"visit our knowledge base.",actionURL:"https://support.orcid.org/hc/en-us/articles/360047687054"},analytics:{code:"003",fatal:!0}},REGISTER_REACTIVATED_EMAIL:{display:{title:"Oh no! An error occurred",message:"We couldn't reactivate your ORCID account. Please try again, and if the error persists please",action:"visit our knowledge base.",actionURL:"https://support.orcid.org/hc/en-us/articles/360047687054"},analytics:{code:"004",fatal:!0}},OAUTH_PARAMETERS:{analytics:{code:"005",fatal:!0}}}},92147:(Qe,he,s)=>{"use strict";s.d(he,{$:()=>c});var a=s(51418),r=s(96124),b=s(6666),A=s(65879),D=s(12160),p=s(88165),E=s(71142),f=s(4049);let c=(()=>{var C;class m{constructor(g,P,U,d,q){this._user=g,this._router=P,this._platform=U,this._errorHandler=d,this.window=q}canActivateChild(g,P){const U=g.queryParams;return this._user.getUserSession().pipe((0,a.q)(1),(0,r.U)(d=>{if(d.oauthSession){if(U.email||U.orcid)return this.isUserLoggedInOrExist(d,U);if(U.show_login&&(U.email||U.orcid))return this.isUserLoggedInOrExist(d,U);if("false"===U.show_login)return this.isUserLoggedInOrExist(d,U);if(!d.oauthSession.forceLogin&&d.oauthSessionIsLoggedIn)return this._router.createUrlTree(["/oauth/authorize"],{queryParams:U})}return!0}))}isUserLoggedInOrExist(g,P){return!(!g.oauthSession.userId&&!g.oauthSessionIsLoggedIn)||this.redirectToRegister(P)}redirectToRegister(g){return this._router.createUrlTree(["/register"],{queryParams:g})}}return(C=m).\u0275fac=function(g){return new(g||C)(A.LFG(D.KD),A.LFG(p.F0),A.LFG(E.tu),A.LFG(f.q),A.LFG(b.m9))},C.\u0275prov=A.Yz7({token:C,factory:C.\u0275fac,providedIn:"root"}),m})()},63977:(Qe,he,s)=>{"use strict";s.d(he,{x:()=>g});var a=s(96814),r=s(94505),b=s(23680),A=s(30617),D=s(16718),p=s(88165),E=s(56223),f=s(24953),c=s(65879);let C=(()=>{var P;class U{}return(P=U).\u0275fac=function(q){return new(q||P)},P.\u0275mod=c.oAB({type:P}),P.\u0275inj=c.cJS({imports:[a.ez,r.yu]}),U})();var m=s(26385),_=s(17217);let g=(()=>{var P;class U{}return(P=U).\u0275fac=function(q){return new(q||P)},P.\u0275mod=c.oAB({type:P}),P.\u0275inj=c.cJS({imports:[a.ez,f.I,D.jT,r.yu,p.Bz,A.Ps,E.u5,E.UX,b.si,A.Ps,C,m.t,_.q]}),U})()},18850:(Qe,he,s)=>{"use strict";s.d(he,{X:()=>kt});var a=s(72079),r=s(49193),b=s(91226),A=s(56223),D=s(6666),p=s(88419),E=s(17927),f=s(75222),c=s(96124),C=s(34221),m=s(65166),_=s(65879),g=s(71142),P=s(27599),U=s(80528),d=s(46018),q=s(45081),j=s(6152);function K(We,Ft){if(1&We){const Kt=_.EpF();_.TgZ(0,"a",3),_.NdJ("click",function(){_.CHM(Kt);const Mt=_.oxw();return _.KtG(Mt.toAffiliationDetails())}),_.SDv(1,85),_.qZA()}}function L(We,Ft){if(1&We){const Kt=_.EpF();_.TgZ(0,"a",3),_.NdJ("click",function(){_.CHM(Kt);const Mt=_.oxw();return _.KtG(Mt.toAffiliationDetails())}),_.SDv(1,86),_.qZA()}}function w(We,Ft){if(1&We){const Kt=_.EpF();_.TgZ(0,"a",3),_.NdJ("click",function(){_.CHM(Kt);const Mt=_.oxw();return _.KtG(Mt.toAffiliationDetails())}),_.SDv(1,87),_.qZA()}}function k(We,Ft){if(1&We){const Kt=_.EpF();_.TgZ(0,"a",3),_.NdJ("click",function(){_.CHM(Kt);const Mt=_.oxw();return _.KtG(Mt.toAffiliationDetails())}),_.SDv(1,88),_.qZA()}}function X(We,Ft){if(1&We){const Kt=_.EpF();_.TgZ(0,"a",3),_.NdJ("click",function(){_.CHM(Kt);const Mt=_.oxw();return _.KtG(Mt.toAffiliationDetails())}),_.SDv(1,89),_.qZA()}}function de(We,Ft){if(1&We){const Kt=_.EpF();_.TgZ(0,"a",3),_.NdJ("click",function(){_.CHM(Kt);const Mt=_.oxw();return _.KtG(Mt.toAffiliationDetails())}),_.SDv(1,90),_.qZA()}}function re(We,Ft){if(1&We){const Kt=_.EpF();_.TgZ(0,"a",3),_.NdJ("click",function(){_.CHM(Kt);const Mt=_.oxw();return _.KtG(Mt.toAffiliationDetails())}),_.SDv(1,91),_.qZA()}}function be(We,Ft){1&We&&(_.TgZ(0,"span",24),_._uU(1,"*"),_.qZA())}function pe(We,Ft){1&We&&(_.TgZ(0,"p",92)(1,"span",24),_._uU(2,"*"),_.qZA(),_.ynx(3),_.SDv(4,93),_.BQk(),_.qZA())}function $e(We,Ft){if(1&We&&(_.TgZ(0,"mat-option",65)(1,"div",95),_._uU(2),_.qZA(),_.TgZ(3,"div",96),_._uU(4),_.qZA()()),2&We){const Kt=Ft.$implicit;_.Q6J("value",Kt),_.xp6(2),_.hij(" ",Kt.value," "),_.xp6(2),_.lnq(" ",Kt.city," ",Kt.region," ",Kt.country," ")}}function Je(We,Ft){if(1&We&&(_.ynx(0,94),_.YNc(1,$e,5,5,"mat-option",50),_.ALo(2,"async"),_.BQk()),2&We){const Kt=_.oxw();_.xp6(1),_.Q6J("ngForOf",_.lcZ(2,1,Kt.filteredOptions))}}function qe(We,Ft){if(1&We&&(_.TgZ(0,"mat-hint"),_.ynx(1),_.SDv(2,97),_.BQk(),_._uU(3),_.qZA()),2&We){const Kt=_.oxw();_.xp6(3),_.hij(" ",Kt.selectedOrganizationFromDatabase.value," ")}}function it(We,Ft){1&We&&(_.TgZ(0,"mat-hint"),_.SDv(1,98),_.qZA())}function rt(We,Ft){if(1&We){const Kt=_.EpF();_.TgZ(0,"button",99),_.NdJ("click",function(){_.CHM(Kt);const Mt=_.oxw();return _.KtG(Mt.clearForm())}),_.TgZ(1,"mat-icon"),_._uU(2,"close"),_.qZA()()}}function tt(We,Ft){1&We&&(_.TgZ(0,"mat-error",100),_.SDv(1,101),_.qZA())}function _t(We,Ft){1&We&&(_.TgZ(0,"mat-error"),_.SDv(1,102),_.qZA())}function ze(We,Ft){1&We&&(_.TgZ(0,"mat-error",103),_.SDv(1,104),_.qZA())}function Ze(We,Ft){1&We&&(_.TgZ(0,"mat-error"),_.SDv(1,105),_.qZA())}function ot(We,Ft){1&We&&(_.TgZ(0,"mat-error"),_.SDv(1,106),_.qZA())}function Ct(We,Ft){if(1&We&&(_.TgZ(0,"mat-option",65),_._uU(1),_.qZA()),2&We){const Kt=Ft.$implicit;_.Q6J("value",Kt.key),_.xp6(1),_.hij(" ",Kt.key," ")}}function De(We,Ft){1&We&&(_.TgZ(0,"mat-error",107),_.SDv(1,108),_.qZA())}function ft(We,Ft){1&We&&(_.TgZ(0,"strong"),_.SDv(1,109),_.qZA())}function st(We,Ft){1&We&&(_.TgZ(0,"strong"),_.SDv(1,110),_.qZA())}function bt(We,Ft){1&We&&(_.TgZ(0,"strong"),_.SDv(1,111),_.qZA())}function _e(We,Ft){1&We&&(_.TgZ(0,"strong"),_.SDv(1,112),_.qZA())}function H(We,Ft){1&We&&(_.TgZ(0,"strong"),_.SDv(1,113),_.qZA())}function Te(We,Ft){1&We&&(_.TgZ(0,"strong"),_.SDv(1,114),_.qZA())}function Me(We,Ft){1&We&&(_.TgZ(0,"strong"),_.SDv(1,115),_.qZA())}function Pe(We,Ft){1&We&&(_.TgZ(0,"span",24),_._uU(1,"*"),_.qZA())}function dt(We,Ft){1&We&&(_.TgZ(0,"mat-error"),_.SDv(1,116),_.qZA())}function Pt(We,Ft){1&We&&(_.TgZ(0,"strong"),_.SDv(1,117),_.qZA())}function Qt(We,Ft){1&We&&(_.TgZ(0,"strong"),_.SDv(1,118),_.qZA())}function cn(We,Ft){1&We&&(_.TgZ(0,"strong"),_.SDv(1,119),_.qZA())}function Ie(We,Ft){1&We&&(_.TgZ(0,"strong"),_.SDv(1,120),_.qZA())}function ne(We,Ft){1&We&&(_.TgZ(0,"mat-error"),_.SDv(1,121),_.qZA())}function ce(We,Ft){if(1&We&&(_.TgZ(0,"mat-option",65),_._uU(1),_.qZA()),2&We){const Kt=Ft.$implicit;_.Q6J("value",Kt),_.xp6(1),_.hij(" ",Kt," ")}}function Ve(We,Ft){if(1&We&&(_.TgZ(0,"mat-option",65),_._uU(1),_.ALo(2,"trailingZeros"),_.qZA()),2&We){const Kt=Ft.$implicit;_.Q6J("value",Kt),_.xp6(1),_.hij(" ",_.lcZ(2,2,Kt)," ")}}function mt(We,Ft){if(1&We&&(_.TgZ(0,"mat-option",65),_._uU(1),_.ALo(2,"trailingZeros"),_.qZA()),2&We){const Kt=Ft.$implicit;_.Q6J("value",Kt),_.xp6(1),_.hij(" ",_.lcZ(2,2,Kt)," ")}}function Ut(We,Ft){1&We&&(_.TgZ(0,"mat-error",78),_.SDv(1,122),_.qZA())}function Bt(We,Ft){if(1&We&&(_.TgZ(0,"mat-option",65),_._uU(1),_.qZA()),2&We){const Kt=Ft.$implicit;_.Q6J("value",Kt),_.xp6(1),_.hij(" ",Kt," ")}}function gt(We,Ft){if(1&We&&(_.TgZ(0,"mat-option",65),_._uU(1),_.ALo(2,"trailingZeros"),_.qZA()),2&We){const Kt=Ft.$implicit;_.Q6J("value",Kt),_.xp6(1),_.hij(" ",_.lcZ(2,2,Kt)," ")}}function nt(We,Ft){if(1&We&&(_.TgZ(0,"mat-option",65),_._uU(1),_.ALo(2,"trailingZeros"),_.qZA()),2&We){const Kt=Ft.$implicit;_.Q6J("value",Kt),_.xp6(1),_.hij(" ",_.lcZ(2,2,Kt)," ")}}function oe(We,Ft){1&We&&(_.TgZ(0,"mat-error",78),_.SDv(1,135),_.qZA())}function Ce(We,Ft){1&We&&(_.TgZ(0,"mat-error",78),_.SDv(1,136),_.qZA())}const ve=function(We){return{error:We}};function xe(We,Ft){if(1&We&&(_.ynx(0,123),_.TgZ(1,"div",16)(2,"label",75)(3,"strong"),_.SDv(4,124),_.qZA()()(),_.TgZ(5,"div",125)(6,"div",62)(7,"mat-form-field",126)(8,"mat-select",127)(9,"mat-option",65),_.SDv(10,128),_.qZA(),_.YNc(11,Bt,2,2,"mat-option",50),_.qZA()()(),_.TgZ(12,"div",62)(13,"mat-form-field",129)(14,"mat-select",130)(15,"mat-option",65),_.SDv(16,131),_.qZA(),_.YNc(17,gt,3,4,"mat-option",50),_.qZA()()(),_.TgZ(18,"div",62)(19,"mat-form-field",132)(20,"mat-select",133)(21,"mat-option",65),_.SDv(22,134),_.qZA(),_.YNc(23,nt,3,4,"mat-option",50),_.qZA()()(),_.YNc(24,oe,2,0,"mat-error",73),_.TgZ(25,"div",16),_.YNc(26,Ce,2,0,"mat-error",73),_.qZA()(),_.BQk()),2&We){const Kt=_.oxw();_.xp6(2),_.Q6J("ngClass",_.VKq(12,ve,Kt.affiliationForm.hasError("date","endDateGroup"))),_.xp6(6),_.s9C("aria-label",Kt.dateLabel+" "+Kt.ngOrcidYear),_.s9C("placeholder",Kt.ngOrcidYear),_.xp6(3),_.Q6J("ngForOf",Kt.yearsEndDate),_.xp6(3),_.s9C("aria-label",Kt.dateLabel+" "+Kt.ngOrcidMonth),_.s9C("placeholder",Kt.ngOrcidMonth),_.xp6(3),_.Q6J("ngForOf",Kt.months),_.xp6(3),_.s9C("aria-label",Kt.dateLabel+" "+Kt.ngOrcidDay),_.s9C("placeholder",Kt.ngOrcidDay),_.xp6(3),_.Q6J("ngForOf",Kt.days),_.xp6(1),_.Q6J("ngIf",null==Kt.affiliationForm.get("endDateGroup").errors?null:Kt.affiliationForm.get("endDateGroup").errors.date),_.xp6(2),_.Q6J("ngIf",null==Kt.affiliationForm.errors?null:Kt.affiliationForm.errors.invalidEndDate)}}function at(We,Ft){1&We&&(_.TgZ(0,"mat-error",78),_.SDv(1,137),_.qZA())}function Ot(We,Ft){1&We&&(_.TgZ(0,"mat-error"),_.SDv(1,138),_.qZA())}const Fe=function(We,Ft){return{"orc-font-body":We,"orc-font-body-large":Ft}},je=function(We){return{"two-line-hint":We}};let kt=(()=>{var We;class Ft{get type(){return this._type}set type(xt){this._type=xt,this.dateLabel="distinction"!==xt?"Start date":"Date of distinction"}get organizationIsInvalidAndTouched(){return this.affiliationForm.hasError("required","organization")&&(this.affiliationForm.get("organization").dirty||this.affiliationForm.get("organization").touched)}get cityIsInvalidAndTouched(){return this.affiliationForm.hasError("required","city")&&(this.affiliationForm.get("city").dirty||this.affiliationForm.get("city").touched)}get countryIsInvalidAndTouched(){return this.affiliationForm.hasError("required","country")&&(this.affiliationForm.get("country").dirty||this.affiliationForm.get("country").touched)}constructor(xt,Mt,pt,St,Zt,Ye,Ee,vt){this.window=xt,this._platform=Mt,this.dialogRef=pt,this._recordCountryService=St,this._recordAffiliationService=Zt,this._formBuilder=Ye,this._snackbar=Ee,this._record=vt,this.$destroy=new a.xQ,this.closeLabel="Close",this.saveLabel="Save changes to",this.ngOrcidYear="Year",this.ngOrcidMonth="Month",this.ngOrcidDay="Day",this.cancelChanges="Cancel changes and close",this.linkLabel="Link",this.endDateLabel="End date",this.loadingCountryCodes=!0,this.loadingAffiliations=!0,this.organization="",this.city="",this.region="",this.country="",this.department="",this.title="",this.link="",this.years=Array(110).fill(0).map((ye,we)=>we+(new Date).getFullYear()-108).reverse(),this.yearsEndDate=Array(120).fill(0).map((ye,we)=>we+(new Date).getFullYear()-108).reverse(),this.months=Array(12).fill(0).map((ye,we)=>we+1),this.days=Array(31).fill(0).map((ye,we)=>we+1),this.ngOrcidSelectACountryOrLocation="Select a country or location",this.ngOrcidDefaultVisibilityLabel="Control who can see this information by setting the visibility. Your default visibility is",this.requireOrganizationDisambiguatedDataOnRefresh=!1,this._platform.get().subscribe(ye=>{this.platform=ye,this.isMobile=ye.columns4||ye.columns8})}ngOnInit(){var xt,Mt;this.initialValues(),this.affiliationForm=this._formBuilder.group({organization:new A.p4(this.organization,{validators:[A.kI.required,A.kI.maxLength(C.$m)]}),city:new A.p4(this.city,{validators:[A.kI.required,A.kI.maxLength(C.$m)]}),region:new A.p4(this.region,{validators:[A.kI.maxLength(C.$m)]}),country:new A.p4("",{validators:[A.kI.required]}),department:new A.p4(this.department,{validators:[A.kI.maxLength(C.$m)]}),title:new A.p4(this.title,{validators:[A.kI.maxLength(C.$m)]}),startDateGroup:this._formBuilder.group({startDateDay:["",[]],startDateMonth:["",[]],startDateYear:["",[]]},{validator:(0,m.sm)("startDate")}),endDateGroup:this._formBuilder.group({endDateDay:[""],endDateMonth:[""],endDateYear:[""]},{validator:(0,m.sm)("endDate")}),link:new A.p4(this.link,{validators:[A.kI.pattern(C.Oe),A.kI.maxLength(C.gW)]}),visibility:new A.p4(this.defaultVisibility,{validators:[A.kI.required]})},{validator:(0,m.h)()}),this._record.getPreferences().pipe((0,p.P)()).subscribe(pt=>{var St,Zt;this.defaultVisibility=pt.default_visibility,this.loadingAffiliations=!1,this.affiliationForm.patchValue({visibility:null!=(Zt=null==(St=this.affiliation)?void 0:St.visibility)&&Zt.visibility?this.affiliation.visibility.visibility:this.defaultVisibility})}),this.filteredOptions=this.affiliationForm.get("organization").valueChanges.pipe((0,E.b)(pt=>{"object"==typeof pt&&pt.disambiguatedAffiliationIdentifier&&(this.selectedOrganizationFromDatabase=pt,this.requireOrganizationDisambiguatedDataOnRefresh=!0,this.displayOrganizationHint=!0,this.fillForm(pt)),pt||(this.selectedOrganizationFromDatabase=void 0,this.requireOrganizationDisambiguatedDataOnRefresh=!0,this.displayOrganizationHint=!1,this.affiliationForm.patchValue({city:"",region:"",country:""}))}),(0,f.w)(pt=>"string"!=typeof pt||this.selectedOrganizationFromDatabase?(0,r.of)([]):this._filter(pt||"").pipe((0,E.b)(St=>{this.displayOrganizationHint=!0})))),this.affiliation&&(this.affiliation.endDate.year&&this.affiliationForm.patchValue({endDateGroup:{endDateYear:this.affiliation.endDate.year?Number(this.affiliation.endDate.year):"",endDateMonth:this.affiliation.endDate.month?Number(this.affiliation.endDate.month):"",endDateDay:this.affiliation.endDate.day?Number(this.affiliation.endDate.day):""}}),this.affiliation.startDate.year&&this.affiliationForm.patchValue({startDateGroup:{startDateYear:this.affiliation.startDate.year?Number(this.affiliation.startDate.year):"",startDateMonth:this.affiliation.startDate.month?Number(this.affiliation.startDate.month):"",startDateDay:this.affiliation.startDate.day?Number(this.affiliation.startDate.day):""}}),null!=(xt=this.affiliation.visibility)&&xt.visibility&&this.affiliationForm.patchValue({visibility:this.affiliation.visibility.visibility})),this._recordCountryService.getCountryCodes().pipe((0,p.P)()).subscribe(pt=>{this.countryCodes=pt,this.loadingCountryCodes=!1,this.affiliation&&this.affiliationForm.patchValue({country:this.countryCodes.find(St=>St.value===this.affiliation.country.value).key})}),null!=(Mt=this.affiliation)&&Mt.putCode?this.loadingAffiliations=!1:this.affiliationForm.patchValue({visibility:this.defaultVisibility})}initialValues(){var xt,Mt,pt,St,Zt,Ye,Ee;this.affiliation&&(this.displayOrganizationHint=!0,this.affiliation.orgDisambiguatedName&&(this.selectedOrganizationFromDatabase={value:this.affiliation.orgDisambiguatedName}),this.organization={value:null==(xt=this.affiliation.affiliationName)?void 0:xt.value},this.city=null==(Mt=this.affiliation.city)?void 0:Mt.value,this.region=null==(pt=this.affiliation.region)?void 0:pt.value,this.country=null==(St=this.affiliation.country)?void 0:St.value,this.department=null==(Zt=this.affiliation.departmentName)?void 0:Zt.value,this.title=null==(Ye=this.affiliation.roleTitle)?void 0:Ye.value,this.link=null==(Ee=this.affiliation.url)?void 0:Ee.value)}autoCompleteDisplayOrganization(xt){return xt.value}formToBackendAffiliation(xt){var pt,St,Zt,Ye,Ee,vt,ye,we,ge,T,V,G,R,Y,le,ke,ht,Gt,Wt,mn,wn,ut,Xe,Nt;const Mt={visibility:{visibility:xt.get("visibility").value?xt.get("visibility").value:this.defaultVisibility},putCode:{value:null!=(pt=this.options)&&pt.createACopy?null:null==(Zt=null==(St=this.affiliation)?void 0:St.putCode)?void 0:Zt.value},city:{value:xt.get("city").value},region:{value:xt.get("region").value},country:{value:this.countryCodes.find(Tt=>Tt.key===xt.get("country").value).value},roleTitle:{value:xt.get("title").value},departmentName:{value:xt.get("department").value?xt.get("department").value:""},affiliationType:{value:this.type},startDate:{day:xt.get("startDateGroup.startDateDay").value?this.addTrailingZero(xt.get("startDateGroup.startDateDay").value):"",month:xt.get("startDateGroup.startDateMonth").value?this.addTrailingZero(xt.get("startDateGroup.startDateMonth").value):"",year:xt.get("startDateGroup.startDateYear").value?xt.get("startDateGroup.startDateYear").value:""},endDate:{day:xt.get("endDateGroup.endDateDay").value?this.addTrailingZero(xt.get("endDateGroup.endDateDay").value):"",month:xt.get("endDateGroup.endDateMonth")?this.addTrailingZero(xt.get("endDateGroup.endDateMonth").value):"",year:xt.get("endDateGroup.endDateYear").value?xt.get("endDateGroup.endDateYear").value:""},url:{value:xt.get("link").value},source:null!=(Ye=this.options)&&Ye.createACopy?null:null==(Ee=this.affiliation)?void 0:Ee.source,sourceName:null==(vt=this.affiliation)?void 0:vt.sourceName,dateSortString:null==(ye=this.affiliation)?void 0:ye.dateSortString,affiliationExternalIdentifiers:null==(we=this.affiliation)?void 0:we.affiliationExternalIdentifiers,affiliationTypeForDisplay:null==(ge=this.affiliation)?void 0:ge.affiliationTypeForDisplay,assertionOriginClientId:null==(T=this.affiliation)?void 0:T.assertionOriginClientId,assertionOriginName:null==(V=this.affiliation)?void 0:V.assertionOriginName,assertionOriginOrcid:null==(G=this.affiliation)?void 0:G.assertionOriginOrcid,disambiguationSource:null==(R=this.affiliation)?void 0:R.disambiguationSource,disambiguatedAffiliationSourceId:null==(Y=this.affiliation)?void 0:Y.disambiguatedAffiliationSourceId,orgDisambiguatedId:null==(le=this.affiliation)?void 0:le.orgDisambiguatedId,orgDisambiguatedCity:null==(ke=this.affiliation)?void 0:ke.orgDisambiguatedCity,orgDisambiguatedCountry:null==(ht=this.affiliation)?void 0:ht.orgDisambiguatedCountry,orgDisambiguatedExternalIdentifiers:null==(Gt=this.affiliation)?void 0:Gt.orgDisambiguatedExternalIdentifiers,orgDisambiguatedName:null==(Wt=this.affiliation)?void 0:Wt.orgDisambiguatedName,orgDisambiguatedRegion:null==(mn=this.affiliation)?void 0:mn.orgDisambiguatedRegion,orgDisambiguatedUrl:null==(wn=this.affiliation)?void 0:wn.orgDisambiguatedUrl};return Mt.affiliationName=this.selectedOrganizationFromDatabase?{value:this.selectedOrganizationFromDatabase.value}:{value:null!=(ut=xt.get("organization").value)&&ut.value?null==(Xe=xt.get("organization").value)?void 0:Xe.value:xt.get("organization").value},this.requireOrganizationDisambiguatedDataOnRefresh?null!=(Nt=this.selectedOrganizationFromDatabase)&&Nt.disambiguatedAffiliationIdentifier?this._recordAffiliationService.getOrganizationDisambiguated(this.selectedOrganizationFromDatabase.disambiguatedAffiliationIdentifier).pipe((0,c.U)(Tt=>(Mt.disambiguatedAffiliationSourceId={value:Tt.sourceId},Mt.disambiguationSource={value:Tt.sourceType},Mt.orgDisambiguatedId={value:this.selectedOrganizationFromDatabase.sourceType},Mt))):(Mt.disambiguatedAffiliationSourceId=void 0,Mt.disambiguationSource=void 0,Mt.orgDisambiguatedId=void 0,(0,r.of)(Mt)):(0,r.of)(Mt)}fillForm(xt){this.affiliationForm.patchValue({city:xt.city,region:xt.region,country:this.countryCodes.find(Mt=>Mt.value===xt.country).key})}clearForm(){this.affiliationForm.patchValue({organization:""})}_filter(xt){return xt?this._recordAffiliationService.getOrganization(xt).pipe((0,p.P)()):b.E}addTrailingZero(xt){return xt&&Number(xt)<10?"0"+xt:xt}toOrganization(){this.window.document.getElementById("organization").scrollIntoView()}toAffiliationDetails(){this.window.document.getElementById("affiliation-details").scrollIntoView()}toVisibility(){this.window.document.getElementById("visibility").scrollIntoView()}saveEvent(){this.affiliationForm.valid?(this.loadingAffiliations=!0,this.formToBackendAffiliation(this.affiliationForm).pipe((0,f.w)(xt=>this._recordAffiliationService.postAffiliation(xt)),(0,p.P)()).subscribe(xt=>{var Mt;(null==(Mt=null==xt?void 0:xt.errors)?void 0:Mt.length)>0?(this.loadingAffiliations=!1,this._snackbar.showValidationError(null==xt?void 0:xt.errors[0],"Please review and fix the issue")):this.closeEvent()})):this._snackbar.showValidationError()}closeEvent(){this.dialogRef.close()}ngOnDestroy(){this.$destroy.next(!0),this.$destroy.unsubscribe()}}return(We=Ft).\u0275fac=function(xt){return new(xt||We)(_.Y36(D.m9),_.Y36(g.tu),_.Y36(P.hV),_.Y36(U.r),_.Y36(d.l),_.Y36(A.QS),_.Y36(q.o),_.Y36(j.B))},We.\u0275cmp=_.Xpm({type:We,selectors:[["app-modal-affiliations"]],inputs:{type:"type",affiliation:"affiliation",options:"options"},decls:172,vars:126,consts:function(){let Kt,xt,Mt,pt,St,Zt,Ye,Ee,vt,ye,we,ge,T,V,G,R,Y,le,ke,ht,Gt,Wt,mn,wn,ut,Xe,Nt,Tt,qt,Yt,fn,dn,en,Tn,Ei,wi,Ci,Ii,zi,Ji,Qn,oi,ji,Ki,qn,Ai,xi,Fi,ki,Hi,Lr,Ri,jr,co;return Kt="Organization",xt="Visibility",Mt="Save changes",pt="Cancel",St="Organization",Zt="Organization",Ye="City",Ee="Region, State or County",vt="Country or location",ye="Department",we="Year",ge="Month",T="Day",V="Link",G="A link to a profile page or description of the role. Links should be in the full URL format e.g. http://www.website.com/page.html",R="Visibility",Y="Employment details",le="Qualification details",ke="Education details",ht="Invited Position details",Gt="Distinction details",Wt="Membership details",mn="Service details",wn="Required information",ut="Identify as:",Xe="Unidentified organization",Nt="Please enter an organization",Tt="Must be less than 1000 characters",qt="Please enter a city",Yt="Must be less than 1000 characters",fn="Must be less than 1000 characters",dn="Please enter a country or location",en="Employment details",Tn="Qualification details",Ei="Education details",wi="Invited Position details",Ci="Distinction details",Ii="Membership details",zi="Service details",Ji="Must be less than 1000 characters",Qn="Degree/title",oi="Role/title",ji="Distinction/award",Ki="Membership type",qn="Must be less than 1000 characters",Ai="Invalid date",xi="End date",Fi="Year",ki="Month",Hi="Day",Lr="Invalid date",Ri="End date must come after start date",jr="Invalid Link",co="Must be less than 2000 characters",[[3,"loading"],[3,"closeLabel"],["id","side-bar-title"],[1,"side-bar",3,"click"],Kt,["id","side-bar-url-1"],["class","side-bar",3,"click",4,"ngIf"],["id","side-bar-url-2"],xt,["mat-raised-button","","color","primary","type","submit","id","save-affiliation-button",3,"click"],Mt,["mat-stroked-button","","color","primary","id","cancel-affiliation-button",3,"click"],pt,[3,"formGroup"],[3,"id"],["id","organization",1,"title",3,"ngClass"],[1,"row"],[3,"ngClass"],St,["class","required",4,"ngIf"],["class","required-information mat-caption",4,"ngIf"],["for","organization-input","id","organization-label",1,"mat-caption",3,"ngClass"],["id","organizationLabel"],Zt,[1,"required"],["id","cy-org-dd-div",1,"input-container"],["appearance","outline","id","cy-org-dd-mat-form",1,"mat-form-field-min",3,"ngClass"],["aria-labelledby","organizationLabel","id","organization-input","matInput","","formControlName","organization",3,"matAutocomplete"],["autoActiveFirstOption","","id","cy-org-dd",3,"displayWith"],["auto","matAutocomplete"],["id","cy-org-filtered-options",4,"ngIf"],[4,"ngIf"],["class","clear","matSuffix","","mat-icon-button","","aria-label","Clear",3,"click",4,"ngIf"],["role","alert","aria-describedby","organization-label","class","mat-caption",4,"ngIf"],["for","city-input","id","city-label",1,"mat-caption",3,"ngClass"],["id","cityLabel"],Ye,[1,"input-container"],["appearance","outline",1,"mat-form-field-min"],["id","city-input","matInput","","formControlName","city","aria-labelledby","cityLabel"],["role","alert","aria-describedby","city-label","class","mat-caption",4,"ngIf"],["for","region-input",1,"mat-caption"],Ee,["id","region-input","aria-labelledby","regionLabel","matInput","","formControlName","region"],["for","country-input","id","country-label",1,"mat-caption",3,"ngClass"],["id","countryLabel"],vt,["appearance","outline",1,"mat-form-field-min",3,"ngClass"],["id","country-input","formControlName","country",3,"placeholder"],["countrySelect",""],[3,"value",4,"ngFor","ngForOf"],["role","alert","aria-describedby","country-label",4,"ngIf"],["id","affiliation-details",1,"title",3,"ngClass"],["for","department-input",1,"mat-caption"],["id","deparmentLabel"],ye,["id","department-input","matInput","","formControlName","department","aria-labelledby","deparmentLabel"],["for","title-input","id","award-label",1,"mat-caption"],["aria-labelledby","award-label","id","title-input","matInput","","formControlName","title"],["formGroupName","startDateGroup","id","cy-affiliation-start-date-group"],["for","cy-start-date-year-sel",1,"mat-caption",3,"ngClass"],["id","cy-start-date-group",1,"row","input-container","date-group"],[1,"col","l4","date"],["id","start-date-year-input","appearance","outline",1,"mat-form-field-min"],["formControlName","startDateYear","id","cy-start-date-year-sel",3,"aria-label","placeholder"],[3,"value"],we,["id","start-date-month-input","appearance","outline",1,"mat-form-field-min"],["formControlName","startDateMonth","id","cy-start-date-month-sel",3,"aria-label","placeholder"],ge,["id","start-date-day-input","appearance","outline",1,"mat-form-field-min"],["formControlName","startDateDay","id","cy-start-date-day-sel",3,"aria-label","placeholder"],T,["class","mat-caption",4,"ngIf"],["formGroupName","endDateGroup","id","cy-affiliation-end-date-group",4,"ngIf"],["for","url-input",1,"mat-caption",3,"ngClass"],V,["id","url-input","matInput","","formControlName","link"],[1,"mat-caption"],G,["id","visibility",1,"title","visibility",3,"ngClass"],R,[1,"orc-font-body-small"],[1,"col","no-wrap","actions-wrapper","no-gutters"],["formControlName","visibility",3,"itemTitle"],Y,le,ke,ht,Gt,Wt,mn,[1,"required-information","mat-caption"],wn,["id","cy-org-filtered-options"],[1,"row","orc-font-body-small","title"],[1,"row","orc-font-small-print"],ut,Xe,["matSuffix","","mat-icon-button","","aria-label","Clear",1,"clear",3,"click"],["role","alert","aria-describedby","organization-label",1,"mat-caption"],Nt,Tt,["role","alert","aria-describedby","city-label",1,"mat-caption"],qt,Yt,fn,["role","alert","aria-describedby","country-label"],dn,en,Tn,Ei,wi,Ci,Ii,zi,Ji,Qn,oi,ji,Ki,qn,Ai,["formGroupName","endDateGroup","id","cy-affiliation-end-date-group"],xi,["id","cy-end-date-group",1,"row","input-container","date-group"],["id","end-date-year-input","appearance","outline",1,"mat-form-field-min"],["formControlName","endDateYear","id","cy-end-date-year-sel",3,"aria-label","placeholder"],Fi,["id","end-date-month-input","appearance","outline",1,"mat-form-field-min"],["formControlName","endDateMonth","id","cy-end-date-month-sel",3,"aria-label","placeholder"],ki,["id","end-date-day-input","appearance","outline",1,"mat-form-field-min"],["formControlName","endDateDay","id","cy-end-date-day-sel",3,"aria-label","placeholder"],Hi,Lr,Ri,jr,co]},template:function(xt,Mt){if(1&xt&&(_.TgZ(0,"app-modal",0)(1,"app-modal-header",1),_.ALo(2,"affiliationTypeLabel"),_._uU(3),_.ALo(4,"affiliationTypeLabel"),_.qZA(),_.TgZ(5,"app-modal-side-bar"),_.ynx(6,2),_.TgZ(7,"a",3),_.NdJ("click",function(){return Mt.toOrganization()}),_.SDv(8,4),_.qZA(),_.BQk(),_.ynx(9,5),_.YNc(10,K,2,0,"a",6),_.YNc(11,L,2,0,"a",6),_.YNc(12,w,2,0,"a",6),_.YNc(13,k,2,0,"a",6),_.YNc(14,X,2,0,"a",6),_.YNc(15,de,2,0,"a",6),_.YNc(16,re,2,0,"a",6),_.BQk(),_.ynx(17,7),_.TgZ(18,"a",3),_.NdJ("click",function(){return Mt.toVisibility()}),_.SDv(19,8),_.qZA(),_.BQk(),_.qZA(),_.TgZ(20,"app-modal-footer")(21,"button",9),_.NdJ("click",function(){return Mt.saveEvent()}),_.SDv(22,10),_.ALo(23,"affiliationTypeLabel"),_.qZA(),_.TgZ(24,"button",11),_.NdJ("click",function(){return Mt.closeEvent()}),_.SDv(25,12),_.ALo(26,"affiliationTypeLabel"),_.qZA()(),_.TgZ(27,"form",13)(28,"section",14)(29,"div",15)(30,"div",16)(31,"h2",17)(32,"strong"),_.SDv(33,18),_.qZA(),_.YNc(34,be,2,0,"span",19),_.qZA(),_.YNc(35,pe,5,0,"p",20),_.qZA()(),_._UZ(36,"hr"),_.TgZ(37,"div",16)(38,"label",21)(39,"strong",22),_.SDv(40,23),_.qZA(),_.TgZ(41,"span",24),_._uU(42,"*"),_.qZA()()(),_.TgZ(43,"div",25)(44,"mat-form-field",26),_._UZ(45,"input",27),_.TgZ(46,"mat-autocomplete",28,29),_.YNc(48,Je,3,3,"ng-container",30),_.qZA(),_.YNc(49,qe,4,1,"mat-hint",31),_.YNc(50,it,2,0,"mat-hint",31),_.YNc(51,rt,3,0,"button",32),_.YNc(52,tt,2,0,"mat-error",33),_.YNc(53,_t,2,0,"mat-error",31),_.qZA()(),_.TgZ(54,"div",16)(55,"label",34)(56,"strong",35),_.SDv(57,36),_.qZA(),_.TgZ(58,"span",24),_._uU(59,"*"),_.qZA()()(),_.TgZ(60,"div",37)(61,"mat-form-field",38),_._UZ(62,"input",39),_.YNc(63,ze,2,0,"mat-error",40),_.YNc(64,Ze,2,0,"mat-error",31),_.qZA()(),_.TgZ(65,"div",16)(66,"label",41)(67,"strong"),_.SDv(68,42),_.qZA()()(),_.TgZ(69,"div",37)(70,"mat-form-field",38),_._UZ(71,"input",43),_.YNc(72,ot,2,0,"mat-error",31),_.qZA()(),_.TgZ(73,"div",16)(74,"label",44)(75,"strong",45),_.SDv(76,46),_.qZA(),_.TgZ(77,"span",24),_._uU(78,"*"),_.qZA()()(),_.TgZ(79,"div",37)(80,"mat-form-field",47)(81,"mat-select",48,49),_.YNc(83,Ct,2,2,"mat-option",50),_.ALo(84,"sortBy"),_.qZA(),_.YNc(85,De,2,0,"mat-error",51),_.qZA()()(),_.TgZ(86,"section",14)(87,"div",52)(88,"div",16)(89,"h2",17),_.YNc(90,ft,2,0,"strong",31),_.YNc(91,st,2,0,"strong",31),_.YNc(92,bt,2,0,"strong",31),_.YNc(93,_e,2,0,"strong",31),_.YNc(94,H,2,0,"strong",31),_.YNc(95,Te,2,0,"strong",31),_.YNc(96,Me,2,0,"strong",31),_.YNc(97,Pe,2,0,"span",19),_.qZA()()(),_._UZ(98,"hr"),_.TgZ(99,"div",16)(100,"label",53)(101,"strong",54),_.SDv(102,55),_.qZA()()(),_.TgZ(103,"div",37)(104,"mat-form-field",38),_._UZ(105,"input",56),_.YNc(106,dt,2,0,"mat-error",31),_.qZA()(),_.TgZ(107,"div",16)(108,"label",57),_.YNc(109,Pt,2,0,"strong",31),_.YNc(110,Qt,2,0,"strong",31),_.YNc(111,cn,2,0,"strong",31),_.YNc(112,Ie,2,0,"strong",31),_.qZA()(),_.TgZ(113,"div",37)(114,"mat-form-field",38),_._UZ(115,"input",58),_.YNc(116,ne,2,0,"mat-error",31),_.qZA()(),_.ynx(117,59),_.TgZ(118,"div",16)(119,"label",60)(120,"strong"),_._uU(121),_.qZA()()(),_.TgZ(122,"div",61)(123,"div",62)(124,"mat-form-field",63)(125,"mat-select",64)(126,"mat-option",65),_.SDv(127,66),_.qZA(),_.YNc(128,ce,2,2,"mat-option",50),_.qZA()()(),_.TgZ(129,"div",62)(130,"mat-form-field",67)(131,"mat-select",68)(132,"mat-option",65),_.SDv(133,69),_.qZA(),_.YNc(134,Ve,3,4,"mat-option",50),_.qZA()()(),_.TgZ(135,"div",62)(136,"mat-form-field",70)(137,"mat-select",71)(138,"mat-option",65),_.SDv(139,72),_.qZA(),_.YNc(140,mt,3,4,"mat-option",50),_.qZA()()(),_.YNc(141,Ut,2,0,"mat-error",73),_.qZA(),_.BQk(),_.YNc(142,xe,27,14,"ng-container",74),_.TgZ(143,"div",16)(144,"label",75)(145,"strong"),_.SDv(146,76),_.qZA()()(),_.TgZ(147,"div",37)(148,"mat-form-field",38),_._UZ(149,"input",77),_.ALo(150,"affiliationTypeLabel"),_.TgZ(151,"mat-hint",78),_.SDv(152,79),_.qZA(),_.YNc(153,at,2,0,"mat-error",73),_.YNc(154,Ot,2,0,"mat-error",31),_.qZA()()(),_.TgZ(155,"section",14)(156,"form")(157,"h2",80)(158,"p")(159,"strong"),_.SDv(160,81),_.qZA()()(),_._UZ(161,"hr"),_.TgZ(162,"p",82),_._uU(163),_.TgZ(164,"strong"),_._uU(165),_.ALo(166,"visibilityStringLabel"),_.qZA(),_._uU(167,". "),_.qZA()(),_.TgZ(168,"div",16)(169,"div",83),_._UZ(170,"app-visibility-selector",84),_.ALo(171,"affiliationTypeLabel"),_.qZA()()()()()),2&xt){const pt=_.MAs(47);_.Q6J("loading",Mt.loadingCountryCodes||Mt.loadingAffiliations),_.xp6(1),_.Q6J("closeLabel",Mt.closeLabel+" "+_.lcZ(2,79,Mt.type)),_.xp6(2),_.hij(" ",_.lcZ(4,81,Mt.type)," "),_.xp6(7),_.Q6J("ngIf","employment"===Mt.type),_.xp6(1),_.Q6J("ngIf","qualification"===Mt.type),_.xp6(1),_.Q6J("ngIf","education"===Mt.type),_.xp6(1),_.Q6J("ngIf","invited-position"===Mt.type),_.xp6(1),_.Q6J("ngIf","distinction"===Mt.type),_.xp6(1),_.Q6J("ngIf","membership"===Mt.type),_.xp6(1),_.Q6J("ngIf","service"===Mt.type),_.xp6(5),_.uIk("aria-label",Mt.saveLabel+" "+_.lcZ(23,83,Mt.type)),_.xp6(3),_.uIk("aria-label",Mt.cancelChanges+" "+_.lcZ(26,85,Mt.type)),_.xp6(3),_.Q6J("formGroup",Mt.affiliationForm),_.xp6(1),_.MGl("id","",Mt.type,"-organization"),_.xp6(1),_.Q6J("ngClass",_.WLB(97,Fe,!Mt.platform.columns12,Mt.platform.columns12)),_.xp6(2),_.Q6J("ngClass",_.WLB(100,Fe,!Mt.platform.columns12,Mt.platform.columns12)),_.xp6(3),_.Q6J("ngIf",!Mt.platform.columns12),_.xp6(1),_.Q6J("ngIf",Mt.platform.columns12),_.xp6(3),_.Q6J("ngClass",_.VKq(103,ve,Mt.organizationIsInvalidAndTouched)),_.xp6(6),_.Q6J("ngClass",_.VKq(105,je,(null==Mt.selectedOrganizationFromDatabase?null:Mt.selectedOrganizationFromDatabase.value.length)>50)),_.xp6(1),_.Q6J("matAutocomplete",pt),_.uIk("aria-invalid",Mt.organizationIsInvalidAndTouched),_.xp6(1),_.Q6J("displayWith",Mt.autoCompleteDisplayOrganization),_.xp6(2),_.Q6J("ngIf",Mt.filteredOptions),_.xp6(1),_.Q6J("ngIf",Mt.selectedOrganizationFromDatabase&&Mt.displayOrganizationHint),_.xp6(1),_.Q6J("ngIf",!Mt.selectedOrganizationFromDatabase&&Mt.affiliationForm.get("organization").value&&Mt.displayOrganizationHint),_.xp6(1),_.Q6J("ngIf",Mt.affiliationForm.get("organization").value),_.xp6(1),_.Q6J("ngIf",Mt.organizationIsInvalidAndTouched),_.xp6(1),_.Q6J("ngIf",null==Mt.affiliationForm.get("organization").errors?null:Mt.affiliationForm.get("organization").errors.maxlength),_.xp6(2),_.Q6J("ngClass",_.VKq(107,ve,Mt.cityIsInvalidAndTouched)),_.xp6(7),_.uIk("aria-invalid",Mt.cityIsInvalidAndTouched),_.xp6(1),_.Q6J("ngIf",Mt.affiliationForm.get("city").hasError("required")),_.xp6(1),_.Q6J("ngIf",null==Mt.affiliationForm.get("city").errors?null:Mt.affiliationForm.get("city").errors.maxlength),_.xp6(8),_.Q6J("ngIf",null==Mt.affiliationForm.get("region").errors?null:Mt.affiliationForm.get("region").errors.maxlength),_.xp6(2),_.Q6J("ngClass",_.VKq(109,ve,Mt.countryIsInvalidAndTouched)),_.xp6(6),_.Q6J("ngClass",_.VKq(111,je,Mt.isMobile)),_.xp6(1),_.s9C("placeholder",Mt.ngOrcidSelectACountryOrLocation),_.uIk("aria-invalid",Mt.countryIsInvalidAndTouched),_.xp6(2),_.Q6J("ngForOf",_.Dn7(84,87,Mt.countryCodes,"asc","key")),_.xp6(2),_.Q6J("ngIf",Mt.countryIsInvalidAndTouched),_.xp6(1),_.MGl("id","",Mt.type,"-details"),_.xp6(1),_.Q6J("ngClass",_.WLB(113,Fe,!Mt.platform.columns12,Mt.platform.columns12)),_.xp6(2),_.Q6J("ngClass",_.WLB(116,Fe,!Mt.platform.columns12,Mt.platform.columns12)),_.xp6(1),_.Q6J("ngIf","employment"===Mt.type),_.xp6(1),_.Q6J("ngIf","qualification"===Mt.type),_.xp6(1),_.Q6J("ngIf","education"===Mt.type),_.xp6(1),_.Q6J("ngIf","invited-position"===Mt.type),_.xp6(1),_.Q6J("ngIf","distinction"===Mt.type),_.xp6(1),_.Q6J("ngIf","membership"===Mt.type),_.xp6(1),_.Q6J("ngIf","service"===Mt.type),_.xp6(1),_.Q6J("ngIf",!Mt.platform.columns12),_.xp6(9),_.Q6J("ngIf",null==Mt.affiliationForm.get("department").errors?null:Mt.affiliationForm.get("department").errors.maxlength),_.xp6(3),_.Q6J("ngIf","education"===Mt.type),_.xp6(1),_.Q6J("ngIf","employment"===Mt.type||"qualification"===Mt.type||"invited-position"===Mt.type||"service"===Mt.type),_.xp6(1),_.Q6J("ngIf","distinction"===Mt.type),_.xp6(1),_.Q6J("ngIf","membership"===Mt.type),_.xp6(4),_.Q6J("ngIf",null==Mt.affiliationForm.get("title").errors?null:Mt.affiliationForm.get("title").errors.maxlength),_.xp6(3),_.Q6J("ngClass",_.VKq(119,ve,Mt.affiliationForm.hasError("date","startDateGroup"))),_.xp6(2),_.Oqu(Mt.dateLabel),_.xp6(4),_.s9C("aria-label",Mt.dateLabel+" "+Mt.ngOrcidYear),_.s9C("placeholder",Mt.ngOrcidYear),_.xp6(3),_.Q6J("ngForOf",Mt.years),_.xp6(3),_.s9C("aria-label",Mt.dateLabel+" "+Mt.ngOrcidMonth),_.s9C("placeholder",Mt.ngOrcidMonth),_.xp6(3),_.Q6J("ngForOf",Mt.months),_.xp6(3),_.s9C("aria-label",Mt.dateLabel+" "+Mt.ngOrcidDay),_.s9C("placeholder",Mt.ngOrcidDay),_.xp6(3),_.Q6J("ngForOf",Mt.days),_.xp6(1),_.Q6J("ngIf",null==Mt.affiliationForm.get("startDateGroup").errors?null:Mt.affiliationForm.get("startDateGroup").errors.date),_.xp6(1),_.Q6J("ngIf","distinction"!==Mt.type),_.xp6(2),_.Q6J("ngClass",_.VKq(121,ve,Mt.affiliationForm.hasError("pattern","link"))),_.xp6(5),_.uIk("aria-label",_.lcZ(150,91,Mt.type)+" "+Mt.linkLabel),_.xp6(4),_.Q6J("ngIf",Mt.affiliationForm.get("link").hasError("pattern")),_.xp6(1),_.Q6J("ngIf",null==Mt.affiliationForm.get("link").errors?null:Mt.affiliationForm.get("link").errors.maxlength),_.xp6(1),_.MGl("id","",Mt.type," + 'visibility'"),_.xp6(2),_.Q6J("ngClass",_.WLB(123,Fe,!Mt.platform.columns12,Mt.platform.columns12)),_.xp6(6),_.hij(" ",Mt.ngOrcidDefaultVisibilityLabel," "),_.xp6(2),_.Oqu(_.lcZ(166,93,Mt.defaultVisibility)),_.xp6(5),_.Q6J("itemTitle",_.lcZ(171,95,Mt.type))}},styles:["[_nghost-%COMP%]{width:100%}hr[_ngcontent-%COMP%]{margin-bottom:16px}label[_ngcontent-%COMP%]{margin:6px 0 3px}[_nghost-%COMP%] .columns-4-or-8 .mat-form-field{width:100%;margin-inline-end:auto}.required[_ngcontent-%COMP%]{margin-left:3px}.required-information[_ngcontent-%COMP%]{margin-left:auto!important;margin-top:10px!important}.required-information[_ngcontent-%COMP%] span[_ngcontent-%COMP%]{margin-right:3px!important}.input-container[_ngcontent-%COMP%], .date-group[_ngcontent-%COMP%]{margin:0}.actions-wrapper[_ngcontent-%COMP%]{flex-wrap:nowrap}.mat-form-field[_ngcontent-%COMP%]{width:100%}.mat-option[_ngcontent-%COMP%]{min-height:64px;line-height:32px;height:auto;margin-bottom:8px;white-space:normal;line-height:1.4}.mat-option[_ngcontent-%COMP%] .title[_ngcontent-%COMP%]{display:flex;width:100%;font-weight:500}.title[_ngcontent-%COMP%] p[_ngcontent-%COMP%]{margin:6px 0}.mat-form-field[_ngcontent-%COMP%]{padding:0!important}.input-box[_ngcontent-%COMP%]{flex-grow:1;max-width:402px}.input-box[_ngcontent-%COMP%] input[_ngcontent-%COMP%]{width:100%;height:40px;margin:4px 0;border-width:1px;border-style:solid;padding:0 12px}.visibility[_ngcontent-%COMP%]{margin-top:60px}.delete[_ngcontent-%COMP%]{margin-left:auto}.other-names-wrapper[_ngcontent-%COMP%]{margin:20px 0 30px}.side-bar[_ngcontent-%COMP%]{text-decoration:underline}.input-container[_ngcontent-%COMP%]{max-width:402px}[_nghost-%COMP%] .date-group[_ngcontent-%COMP%]{padding-bottom:1.475em}[_nghost-%COMP%] .date-group[_ngcontent-%COMP%] .date[_ngcontent-%COMP%]{padding-left:0}[_nghost-%COMP%] .date-group[_ngcontent-%COMP%] .date[_ngcontent-%COMP%] .mat-form-field-wrapper{padding-bottom:0!important}button[_ngcontent-%COMP%], .clear[_ngcontent-%COMP%]{z-index:1}label.mat-caption[_ngcontent-%COMP%]{margin-bottom:8px}","input[_ngcontent-%COMP%]{border:solid 1px #e3e3e3}[_ngcontent-%COMP%]::placeholder{color:#707070}[_ngcontent-%COMP%]:-ms-input-placeholder{color:#707070}.error[_ngcontent-%COMP%], .required[_ngcontent-%COMP%]{color:#d32f2f}input.mat-input-element[_ngcontent-%COMP%]{border:transparent;font-size:14px!important}.mat-select[_ngcontent-%COMP%]{font-size:14px!important}"]}),Ft})()},82777:(Qe,he,s)=>{"use strict";s.d(he,{D:()=>p});var a=s(19352),r=s(72079),b=s(65879),A=s(27599),D=s(75340);let p=(()=>{var E;class f{constructor(C,m){this.dialogRef=C,this._recordFundingsService=m,this.$destroy=new r.xQ,this.loadingFunding=!0,this.total=0}ngOnInit(){this.loadFundingImportWizardList()}loadFundingImportWizardList(){this._recordFundingsService.loadFundingImportWizardList().pipe((0,a.R)(this.$destroy)).subscribe(C=>{this.recordImportWizardsOriginal=C,this.recordImportWizards=this.recordImportWizardsOriginal,this.loadingFunding=!1,this.total=this.recordImportWizardsOriginal.length})}saveEvent(){this.loadingFunding=!0}closeEvent(){this.dialogRef.close()}ngOnDestroy(){this.$destroy.next(!0),this.$destroy.unsubscribe()}}return(E=f).\u0275fac=function(C){return new(C||E)(b.Y36(A.hV),b.Y36(D.i))},E.\u0275cmp=b.Xpm({type:E,selectors:[["app-modal-funding-search-link"]],decls:17,vars:4,consts:function(){let c,C,m,_;return c="Link funding",C="Search and Link wizards are our recommended way to populate your record. They make adding works, funding and peer reviews simple and save you time over updating your record manually. Select a platform from the list below to start linking items to your record.",m="More information about linking funding to your ORCID record",_="Available Search & Link wizards",[[3,"loading","noSidebar"],c,[1,"row"],[1,"orc-font-small-print"],C,["rel","noopener noreferrer","target","_blank","href","https://support.orcid.org/hc/en-us/articles/360006897214-Add-funding-information-to-your-ORCID-record",1,"underline"],m,_,[3,"recordImportWizards"]]},template:function(C,m){1&C&&(b.TgZ(0,"app-modal",0)(1,"app-modal-header"),b.ynx(2),b.SDv(3,1),b.BQk(),b.qZA(),b.TgZ(4,"div",2)(5,"div",3)(6,"p"),b.SDv(7,4),b.qZA(),b.TgZ(8,"a",5),b.SDv(9,6),b.qZA()()(),b.TgZ(10,"div",2)(11,"h3"),b.ynx(12),b.SDv(13,7),b.BQk(),b._uU(14),b.qZA(),b._UZ(15,"hr"),b.qZA(),b._UZ(16,"app-search-link-wizard",8),b.qZA()),2&C&&(b.Q6J("loading",m.loadingFunding)("noSidebar",!0),b.xp6(14),b.hij(" (",m.total,") "),b.xp6(2),b.Q6J("recordImportWizards",m.recordImportWizards))},styles:["h3[_ngcontent-%COMP%]{margin:32px 0 8px}"]}),f})()},11362:(Qe,he,s)=>{"use strict";s.d(he,{e:()=>Mt});var a=s(27599),r=s(56223),b=s(65166),A=s(2780),D=s(34221),p=s(72079),E=s(49193),f=s(91226),c=s(88419),C=s(17927),m=s(75222),_=s(6666),g=s(3471),P=s(6593),d=s(65879),q=s(71142),j=s(12160),K=s(80528),L=s(75340),w=s(45081),k=s(6152);function X(pt,St){1&pt&&(d.TgZ(0,"span",26),d._uU(1,"*"),d.qZA())}function de(pt,St){1&pt&&(d.TgZ(0,"p",129)(1,"span",26),d._uU(2,"*"),d.qZA(),d.ynx(3),d.SDv(4,130),d.BQk(),d.qZA())}function re(pt,St){if(1&pt&&(d.TgZ(0,"mat-option",80),d._uU(1),d.ALo(2,"recordFundingTypesLabel"),d.qZA()),2&pt){const Zt=St.$implicit;d.Q6J("value",Zt.value),d.xp6(1),d.hij(" ",d.lcZ(2,2,Zt.value)," ")}}function be(pt,St){1&pt&&(d.TgZ(0,"mat-error"),d.SDv(1,131),d.qZA())}function pe(pt,St){1&pt&&(d.TgZ(0,"mat-error"),d.SDv(1,132),d.qZA())}function $e(pt,St){1&pt&&(d.TgZ(0,"mat-error",57),d.SDv(1,133),d.qZA())}function Je(pt,St){1&pt&&(d.TgZ(0,"mat-error"),d.SDv(1,134),d.qZA())}function qe(pt,St){1&pt&&(d.TgZ(0,"mat-icon",121),d._uU(1,"add_circle_outline"),d.qZA())}function it(pt,St){1&pt&&(d.TgZ(0,"mat-icon",121),d._uU(1,"remove_circle_outline"),d.qZA())}function rt(pt,St){1&pt&&(d.ynx(0),d.SDv(1,135),d.BQk())}function tt(pt,St){1&pt&&(d.ynx(0),d.SDv(1,136),d.BQk())}function _t(pt,St){1&pt&&(d.TgZ(0,"mat-error",57),d.SDv(1,137),d.qZA())}function ze(pt,St){1&pt&&(d.TgZ(0,"mat-error",57),d.SDv(1,138),d.qZA())}function Ze(pt,St){if(1&pt&&(d.TgZ(0,"mat-option",80),d._uU(1),d.qZA()),2&pt){const Zt=St.$implicit;d.Q6J("value",Zt.key),d.xp6(1),d.hij(" ",Zt.value," ")}}function ot(pt,St){1&pt&&(d.TgZ(0,"mat-error",57),d.SDv(1,139),d.qZA())}function Ct(pt,St){1&pt&&(d.TgZ(0,"mat-error"),d.SDv(1,140),d.qZA())}function De(pt,St){1&pt&&(d.TgZ(0,"mat-error"),d.SDv(1,141),d.qZA())}function ft(pt,St){1&pt&&(d.TgZ(0,"mat-error"),d.SDv(1,142),d.qZA())}function st(pt,St){if(1&pt&&(d.TgZ(0,"mat-option",80),d._uU(1),d.qZA()),2&pt){const Zt=St.$implicit;d.Q6J("value",Zt.key),d.xp6(1),d.hij(" ",Zt.value," ")}}function bt(pt,St){1&pt&&(d.TgZ(0,"mat-error",143),d.SDv(1,144),d.qZA())}function _e(pt,St){1&pt&&(d.TgZ(0,"mat-error",143),d.SDv(1,145),d.qZA())}function H(pt,St){if(1&pt&&(d.TgZ(0,"mat-option",80),d._uU(1),d.qZA()),2&pt){const Zt=St.$implicit;d.Q6J("value",Zt),d.xp6(1),d.hij(" ",Zt," ")}}function Te(pt,St){if(1&pt&&(d.TgZ(0,"mat-option",80),d._uU(1),d.ALo(2,"trailingZeros"),d.qZA()),2&pt){const Zt=St.$implicit;d.Q6J("value",Zt),d.xp6(1),d.hij(" ",d.lcZ(2,2,Zt)," ")}}function Me(pt,St){1&pt&&(d.TgZ(0,"mat-error",143),d.SDv(1,146),d.qZA())}function Pe(pt,St){if(1&pt&&(d.TgZ(0,"mat-option",80),d._uU(1),d.qZA()),2&pt){const Zt=St.$implicit;d.Q6J("value",Zt),d.xp6(1),d.hij(" ",Zt," ")}}function dt(pt,St){if(1&pt&&(d.TgZ(0,"mat-option",80),d._uU(1),d.ALo(2,"trailingZeros"),d.qZA()),2&pt){const Zt=St.$implicit;d.Q6J("value",Zt),d.xp6(1),d.hij(" ",d.lcZ(2,2,Zt)," ")}}function Pt(pt,St){1&pt&&(d.TgZ(0,"mat-error",143),d.SDv(1,147),d.qZA())}function Qt(pt,St){1&pt&&(d.TgZ(0,"mat-error",143),d.SDv(1,148),d.qZA())}function cn(pt,St){1&pt&&(d.TgZ(0,"span",26),d._uU(1,"*"),d.qZA())}function Ie(pt,St){1&pt&&(d.TgZ(0,"p",129)(1,"span",26),d._uU(2,"*"),d.qZA(),d.ynx(3),d.SDv(4,149),d.BQk(),d.qZA())}function ne(pt,St){if(1&pt&&(d.TgZ(0,"mat-option",80)(1,"div",150),d._uU(2),d.qZA(),d.TgZ(3,"div",151),d._uU(4),d.qZA()()),2&pt){const Zt=St.$implicit;d.Q6J("value",Zt),d.xp6(2),d.hij(" ",Zt.value," "),d.xp6(2),d.lnq(" ",Zt.city," ",Zt.region," ",Zt.country," ")}}function ce(pt,St){if(1&pt&&(d.TgZ(0,"mat-hint"),d.ynx(1),d.SDv(2,152),d.BQk(),d._uU(3),d.qZA()),2&pt){const Zt=d.oxw();d.xp6(3),d.hij(" ",Zt.selectedOrganizationFromDatabase.value," ")}}function Ve(pt,St){1&pt&&(d.TgZ(0,"mat-hint"),d.SDv(1,153),d.qZA())}function mt(pt,St){if(1&pt){const Zt=d.EpF();d.TgZ(0,"button",154),d.NdJ("click",function(){d.CHM(Zt);const Ee=d.oxw();return d.KtG(Ee.clearForm())}),d.TgZ(1,"mat-icon"),d._uU(2,"close"),d.qZA()()}}function Ut(pt,St){1&pt&&(d.TgZ(0,"mat-error",57),d.SDv(1,155),d.qZA())}function Bt(pt,St){1&pt&&(d.TgZ(0,"mat-error"),d.SDv(1,156),d.qZA())}function gt(pt,St){1&pt&&(d.TgZ(0,"mat-error",57),d.SDv(1,157),d.qZA())}function nt(pt,St){1&pt&&(d.TgZ(0,"mat-error"),d.SDv(1,158),d.qZA())}function oe(pt,St){1&pt&&(d.TgZ(0,"mat-error"),d.SDv(1,159),d.qZA())}function Ce(pt,St){if(1&pt&&(d.TgZ(0,"mat-option",80),d._uU(1),d.qZA()),2&pt){const Zt=St.$implicit;d.Q6J("value",Zt.key),d.xp6(1),d.hij(" ",Zt.key," ")}}function ve(pt,St){1&pt&&(d.TgZ(0,"mat-error"),d.SDv(1,160),d.qZA())}function xe(pt,St){1&pt&&(d.TgZ(0,"span",26),d._uU(1,"*"),d.qZA())}function at(pt,St){if(1&pt){const Zt=d.EpF();d.ynx(0),d.TgZ(1,"app-funding-external-identifiers-edit",162),d.NdJ("cancelEvent",function(){d.CHM(Zt);const Ee=d.oxw().index,vt=d.oxw();return d.KtG(vt.cancelExternalIdEdit(Ee))}),d.qZA(),d.BQk()}if(2&pt){const Zt=d.oxw(),Ye=Zt.$implicit,Ee=Zt.index;d.xp6(1),d.Q6J("grantForm",Ye)("index",Ee)}}function Ot(pt,St){if(1&pt){const Zt=d.EpF();d.ynx(0),d.TgZ(1,"app-funding-external-identifiers-view-only",163),d.NdJ("edit",function(){d.CHM(Zt);const Ee=d.oxw().index,vt=d.oxw();return d.KtG(vt.grantsArrayDisplayState[Ee]=!0)})("delete",function(){d.CHM(Zt);const Ee=d.oxw().index,vt=d.oxw();return d.KtG(vt.deleteGrant(Ee))}),d.qZA(),d.BQk()}if(2&pt){const Zt=d.oxw().$implicit;d.xp6(1),d.Q6J("grant",Zt.value)}}function Fe(pt,St){if(1&pt&&(d.TgZ(0,"div",161),d.YNc(1,at,2,2,"ng-container",31),d.YNc(2,Ot,2,1,"ng-container",31),d.qZA()),2&pt){const Zt=St.index,Ye=d.oxw();d.xp6(1),d.Q6J("ngIf",Ye.grantsArrayDisplayState[Zt]),d.xp6(1),d.Q6J("ngIf",!Ye.grantsArrayDisplayState[Zt])}}function je(pt,St){1&pt&&(d.ynx(0),d.SDv(1,164),d.BQk())}function kt(pt,St){1&pt&&(d.ynx(0),d.SDv(1,165),d.BQk())}const We=function(pt,St){return{"orc-font-body":pt,"orc-font-body-large":St}},Ft=function(pt){return{error:pt}},Kt=function(pt){return{"project-link-mobile":pt}},xt=function(pt){return{"two-line-hint":pt}};let Mt=(()=>{var pt;class St{constructor(Ye,Ee,vt,ye,we,ge,T,V,G,R){this.window=Ye,this._platform=Ee,this.dialogRef=vt,this.data=ye,this._userService=we,this._recordCountryService=ge,this._fundingsService=T,this._formBuilder=V,this._snackBar=G,this._record=R,this.$destroy=new p.xQ,this.showTranslationTitle=!1,this.languageMap=g.Wy,this.currencyCodeMap=g.G_,this.loadingFunding=!0,this.loadingCountryCodes=!0,this.fundingType="",this.fundingSubtype="",this.fundingProjectTitle="",this.fundingProjectLink="",this.description="",this.agencyName="",this.city="",this.region="",this.country="",this.countryForDisplay="",this.amount="",this.currencyCode="",this.grantsArrayDisplayState=[],this.disambiguatedFundingSourceId="",this.disambiguatedFundingSource="",this.translatedTitleContent="",this.translatedTitleLanguage="",this.fundingTypes=g.mv,this.fundingTitle=P.Dx,this.fundingTypesLabel=g.Do,this.fundingRelationships=Object.keys(g.gL),this.years=Array(110).fill(0).map((Y,le)=>le+(new Date).getFullYear()-108).reverse(),this.yearsEndDate=Array(120).fill(0).map((Y,le)=>le+(new Date).getFullYear()-108).reverse(),this.months=Array(12).fill(0).map((Y,le)=>le+1),this.totalFundingAmountCurrency="Currency",this.totalFundingAmount="Total funding amount",this.ariaLabelStartDate="Start date",this.ariaLabelEndDate="Start date",this.ariaLabelSaveChanges="Save funding changes",this.ariaLabelCancelChanges="Cancel changes and close Funding",this.ariaLabelClose="Close funding",this.ariaLabelDescription="Project description",this.ariaLabelAmount="Amount",this.ariaLabelFundingTitle="Funding",this.ngOrcidYear="Year",this.ngOrcidMonth="Month",this.ngOrcidFundingType="Select a funding type",this.ngOrcidSelectLanguage="Select a language",this.ngOrcidSelectACountryOrLocation="Select a country or location",this.ngOrcidDefaultVisibilityLabel="Control who can see this information by setting the visibility. Your default visibility is",this._platform.get().subscribe(Y=>{this.platform=Y,this.isMobile=Y.columns4||Y.columns8})}ngOnInit(){this.initialValues(),this.fundingForm=this._formBuilder.group({fundingType:new r.p4(this.fundingType,{validators:[r.kI.required]}),fundingSubtype:new r.p4(this.fundingSubtype,{validators:[r.kI.maxLength(D.gO)]}),fundingProjectTitle:new r.p4(this.fundingProjectTitle,{validators:[r.kI.required,r.kI.maxLength(D.$m)]}),translatedTitleGroup:this._formBuilder.group({translatedTitleContent:new r.p4("",{validators:[r.kI.maxLength(D.$m)]}),translatedTitleLanguage:[""]},{validators:[A.B,r.kI.maxLength(D.$m)]}),fundingProjectLink:new r.p4(this.fundingProjectLink,{validators:[r.kI.pattern(D.Oe),r.kI.maxLength(D.gW)]}),description:new r.p4(this.description,{validators:[r.kI.maxLength(D.lb)]}),amount:new r.p4(this.amount,{validators:pt=>pt.value?pt.value.match(D.jC)||pt.value.match(D.Z4)||pt.value.match(D.CS)?null:{pattern:pt.value}:null}),currencyCode:new r.p4(this.currencyCode,{}),startDateGroup:this._formBuilder.group({startDateMonth:[""],startDateYear:[""]},{validator:[(0,b.am)("startDate")]}),endDateGroup:this._formBuilder.group({endDateMonth:[""],endDateYear:[""]},{validator:(0,b.am)("endDate")}),agencyName:new r.p4(this.agencyName,{validators:[r.kI.required,r.kI.maxLength(D.$m)]}),city:new r.p4(this.city,{validators:[r.kI.required,r.kI.maxLength(D.$m)]}),region:new r.p4(this.region,{validators:[r.kI.maxLength(D.$m)]}),country:new r.p4(this.country,{validators:[r.kI.required,r.kI.maxLength(D.$m)]}),grants:new r.vC([]),visibility:new r.p4(this.defaultVisibility,{validators:[r.kI.required]})},{validator:(0,b.YE)()}),this.grantsArray=this.fundingForm.controls.grants,this.funding&&this.initFormValues(),this._record.getPreferences().pipe((0,c.P)()).subscribe(Ye=>{var Ee,vt,ye,we;this.defaultVisibility=Ye.default_visibility,this.fundingForm.patchValue({visibility:null!=(vt=null==(Ee=this.funding)?void 0:Ee.visibility)&&vt.visibility?null==(we=null==(ye=this.funding)?void 0:ye.visibility)?void 0:we.visibility:this.defaultVisibility})}),this.listenFormChanges(),this.getCountryCodes()}getCountryCodes(){this._recordCountryService.getCountryCodes().pipe((0,c.P)()).subscribe(Ye=>{this.countryCodes=Ye,this.loadingCountryCodes=!1,this.funding&&this.fundingForm.patchValue({country:this.countryCodes.find(Ee=>Ee.value===this.funding.country.value).key})})}autoCompleteDisplayOrganization(Ye){return Ye.value}listenFormChanges(){this.filteredOptions=this.fundingForm.get("agencyName").valueChanges.pipe((0,C.b)(Ye=>{"object"==typeof Ye&&Ye.disambiguatedAffiliationIdentifier&&(this.selectedOrganizationFromDatabase=Ye,this.displayOrganizationHint=!0,this.fillForm(Ye)),Ye||(this.selectedOrganizationFromDatabase=void 0,this.displayOrganizationHint=!1,this.fundingForm.patchValue({city:"",region:"",country:""}))}),(0,m.w)(Ye=>"string"!=typeof Ye||this.selectedOrganizationFromDatabase?(0,E.of)([]):this._filter(Ye||"").pipe((0,C.b)(Ee=>{this.displayOrganizationHint=!0})))),this.fundingForm.get("amount").valueChanges.subscribe(Ye=>{Ye&&(this.fundingForm.get("currencyCode").setValidators(r.kI.required),this.fundingForm.get("currencyCode").updateValueAndValidity({emitEvent:!0}),this.fundingForm.get("amount").updateValueAndValidity({emitEvent:!0}))})}initFormValues(){var Ye,Ee,vt,ye;this.funding.endDate.year&&this.fundingForm.patchValue({endDateGroup:{endDateYear:Number(this.funding.endDate.year),endDateMonth:Number(this.funding.endDate.month)}}),this.funding.startDate.year&&this.fundingForm.patchValue({startDateGroup:{startDateYear:Number(this.funding.startDate.year),startDateMonth:Number(this.funding.startDate.month)}}),null!=(Ye=this.funding.visibility)&&Ye.visibility&&this.fundingForm.patchValue({visibility:this.funding.visibility.visibility}),null!=(Ee=this.funding.fundingTitle)&&Ee.translatedTitle&&this.fundingForm.patchValue({translatedTitleGroup:{translatedTitleContent:null==(vt=this.funding.fundingTitle)?void 0:vt.translatedTitle.content,translatedTitleLanguage:null==(ye=this.funding.fundingTitle)?void 0:ye.translatedTitle.languageCode}}),this.funding.externalIdentifiers.forEach(we=>{this.addAnotherGrant(we)})}initialValues(){var Ye,Ee,vt,ye,we,ge,T,V,G,R,Y,le,ke,ht,Gt,Wt,mn,wn,ut,Xe;null!=(Ye=this.funding)&&Ye.putCode?(this.funding?this._fundingsService.getFundingDetails(this.funding.putCode.value).pipe((0,c.P)()).subscribe(Nt=>{var Tt,qt,Yt,fn,dn;this.loadingFunding=!1,this.fundingForm.patchValue({description:null==(Tt=Nt.description)?void 0:Tt.value}),this.fundingForm.patchValue({amount:null==(qt=Nt.amount)?void 0:qt.value}),this.fundingForm.patchValue({currencyCode:null==(Yt=Nt.currencyCode)?void 0:Yt.value}),this.fundingForm.patchValue({fundingSubtype:null==(dn=null==(fn=Nt.organizationDefinedFundingSubType)?void 0:fn.subtype)?void 0:dn.value})}):this.loadingFunding=!1,this.city=null==(Ee=this.funding.city)?void 0:Ee.value,this.region=null==(vt=this.funding.region)?void 0:vt.value,this.country=null==(ye=this.funding.country)?void 0:ye.value,this.fundingType=null==(we=this.funding.fundingType)?void 0:we.value,this.fundingSubtype=null==(T=null==(ge=this.funding.organizationDefinedFundingSubType)?void 0:ge.subtype)?void 0:T.value,this.fundingProjectTitle=null==(V=this.funding.fundingTitle)?void 0:V.title.value,this.translatedTitleContent=null==(R=null==(G=this.funding.fundingTitle)?void 0:G.translatedTitle)?void 0:R.content,this.translatedTitleLanguage=null==(le=null==(Y=this.funding.fundingTitle)?void 0:Y.translatedTitle)?void 0:le.languageCode,this.fundingProjectLink=null==(ke=this.funding.url)?void 0:ke.value,this.description=null==(ht=this.funding.description)?void 0:ht.value,this.currencyCode=null==(Gt=this.funding.currencyCode)?void 0:Gt.value,this.amount=null==(Wt=this.funding.amount)?void 0:Wt.value,this.disambiguatedFundingSourceId=null==(mn=this.funding.disambiguatedFundingSourceId)?void 0:mn.value,this.disambiguatedFundingSource=null==(wn=this.funding.disambiguationSource)?void 0:wn.value,this.showTranslationTitle=!(null==(Xe=null==(ut=this.funding.fundingTitle)?void 0:ut.translatedTitle)||!Xe.content),this.agencyName={value:this.funding.fundingName.value},this.disambiguatedFundingSourceId&&(this.selectedOrganizationFromDatabase={value:this.agencyName.value}),this.displayOrganizationHint=!0):this.loadingFunding=!1}formToBackendFunding(){var Ee,vt,ye,we,ge,T,V,G,R,Y,le,ke,ht,Gt;const Ye={visibility:{visibility:this.fundingForm.get("visibility").value?this.fundingForm.get("visibility").value:this.defaultVisibility},putCode:{value:null!=(Ee=this.options)&&Ee.createACopy?null:null==(ye=null==(vt=this.funding)?void 0:vt.putCode)?void 0:ye.value},fundingTitle:{title:this.fundingForm.value.fundingProjectTitle,errors:[],translatedTitle:{content:this.fundingForm.get("translatedTitleGroup.translatedTitleContent").value,languageCode:this.fundingForm.get("translatedTitleGroup.translatedTitleLanguage").value,errors:[]}},description:{value:this.fundingForm.value.description},organizationDefinedFundingSubType:{subtype:this.fundingForm.value.fundingSubtype,alreadyIndexed:!1},fundingType:{value:this.fundingForm.value.fundingType},currencyCode:{value:this.fundingForm.value.currencyCode},amount:{value:this.fundingForm.value.amount},url:{value:this.fundingForm.value.fundingProjectLink},startDate:{day:"",month:this.fundingForm.get("startDateGroup.startDateMonth").value?this.addTrailingZero(this.fundingForm.get("startDateGroup.startDateMonth").value):"",year:this.fundingForm.get("startDateGroup.startDateYear").value?this.fundingForm.get("startDateGroup.startDateYear").value:""},endDate:{day:"",month:this.fundingForm.get("endDateGroup.endDateMonth").value?this.addTrailingZero(this.fundingForm.get("endDateGroup.endDateMonth").value):"",year:this.fundingForm.get("endDateGroup.endDateYear").value?this.fundingForm.get("endDateGroup.endDateYear").value:""},externalIdentifiers:this.fundingForm.value.grants.map(Wt=>({externalIdentifierId:Wt.grantNumber,externalIdentifierType:g.it.grant_number,url:Wt.grantUrl,relationship:Wt.fundingRelationship})),contributors:null==(we=this.funding)?void 0:we.contributors,disambiguatedFundingSourceId:{value:this.disambiguatedFundingSourceId},disambiguationSource:{value:this.disambiguatedFundingSource},city:{value:this.fundingForm.value.city},region:{value:this.fundingForm.value.region},country:{value:this.countryCodes.find(Wt=>Wt.key===this.fundingForm.get("country").value).value},source:null!=(ge=this.options)&&ge.createACopy?null:null==(T=this.funding)?void 0:T.source,sourceName:null==(V=this.funding)?void 0:V.sourceName,dateSortString:null==(G=this.funding)?void 0:G.dateSortString,assertionOriginClientId:null==(R=this.funding)?void 0:R.assertionOriginClientId,assertionOriginName:null==(Y=this.funding)?void 0:Y.assertionOriginName,assertionOriginOrcid:null==(le=this.funding)?void 0:le.assertionOriginOrcid,countryForDisplay:null==(ke=this.funding)?void 0:ke.countryForDisplay};return this.selectedOrganizationFromDatabase?(Ye.fundingName={value:this.selectedOrganizationFromDatabase.value},Ye.disambiguatedFundingSourceId={value:this.disambiguatedFundingSourceId||this.selectedOrganizationFromDatabase.sourceId},Ye.disambiguationSource={value:this.disambiguatedFundingSource||this.selectedOrganizationFromDatabase.sourceType}):Ye.fundingName={value:null!=(ht=this.fundingForm.get("agencyName").value)&&ht.value?null==(Gt=this.fundingForm.get("agencyName").value)?void 0:Gt.value:this.fundingForm.get("agencyName").value},Ye}onSubmit(){}addAnotherGrant(Ye){var Ee,vt,ye;this.grantsArrayDisplayState.push(!Ye),this.grantsArray.push(this._formBuilder.group({grantNumber:[(null==(Ee=null==Ye?void 0:Ye.externalIdentifierId)?void 0:Ee.value)||"",[r.kI.maxLength(D.Ei)]],grantUrl:[(null==(vt=null==Ye?void 0:Ye.url)?void 0:vt.value)||"",[r.kI.pattern(D.Oe),r.kI.maxLength(D.gW)]],fundingRelationship:[(null==(ye=null==Ye?void 0:Ye.relationship)?void 0:ye.value)||g.gL.self,[]]})),this.checkGrantsChanges(this.grantsArray.controls.length-1)}deleteGrant(Ye){this.grantsArray.removeAt(Ye),this.grantsArrayDisplayState.splice(Ye,1)}saveEvent(){this.fundingForm.markAllAsTouched(),this.fundingForm.valid?(this.loadingFunding=!0,this._fundingsService.save(this.formToBackendFunding()).pipe((0,c.P)()).subscribe(()=>{this.closeEvent()})):this._snackBar.showValidationError()}fillForm(Ye){this.fundingForm.patchValue({city:Ye.city,region:Ye.region,country:this.countryCodes.find(Ee=>Ee.value===Ye.country).key}),this.disambiguatedFundingSourceId=Ye.sourceId,this.disambiguatedFundingSource=Ye.sourceType}clearForm(){this.fundingForm.patchValue({agencyName:"",city:"",region:"",country:""}),this.disambiguatedFundingSourceId="",this.disambiguatedFundingSource=""}_filter(Ye){return Ye?this._fundingsService.getOrganization(Ye).pipe((0,c.P)()):f.E}checkGrantsChanges(Ye){const Ee=this.grantsArray.controls[Ye];Ee.controls.grantNumber.valueChanges.subscribe(vt=>{vt?(Ee.controls.grantNumber.addValidators(r.kI.maxLength(D.Ei)),Ee.controls.grantNumber.updateValueAndValidity({emitEvent:!1})):(Ee.controls.grantNumber.removeValidators(r.kI.maxLength(D.Ei)),Ee.controls.grantNumber.updateValueAndValidity({emitEvent:!1}))}),Ee.controls.grantUrl.valueChanges.subscribe(vt=>{vt?(Ee.controls.grantNumber.addValidators(r.kI.required),Ee.controls.grantNumber.updateValueAndValidity({emitEvent:!1}),Ee.controls.grantUrl.setValidators([r.kI.pattern(D.Oe),r.kI.maxLength(D.gW)]),Ee.controls.grantUrl.updateValueAndValidity({emitEvent:!1})):(Ee.controls.grantNumber.removeValidators(r.kI.required),Ee.controls.grantNumber.updateValueAndValidity(),Ee.controls.grantUrl.clearValidators(),Ee.controls.grantUrl.updateValueAndValidity({emitEvent:!1}))}),Ee.controls.fundingRelationship.valueChanges.subscribe(vt=>{vt||Ee.controls.fundingRelationship.clearValidators(),Ee.controls.fundingRelationship.updateValueAndValidity({emitEvent:!1})})}closeEvent(){this.dialogRef.close()}toFundingDetails(){this.window.document.getElementById("funding-details").scrollIntoView()}toFundingAgency(){this.window.document.getElementById("funding-agency").scrollIntoView()}toVisibility(){this.window.document.getElementById("visibility").scrollIntoView()}toFundingIdentifiers(){this.window.document.getElementById("funding-identifiers").scrollIntoView()}cancelExternalIdEdit(Ye){!this.grantsArray.controls[Ye]||this.grantsArray.controls[Ye].value.grantUrl||this.grantsArray.controls[Ye].value.grantNumber?this.grantsArrayDisplayState[Ye]=!1:this.deleteGrant(Ye)}ngOnDestroy(){this.$destroy.next(!0),this.$destroy.unsubscribe()}addTrailingZero(Ye){return Ye&&Number(Ye)<10?"0"+Ye:Ye}}return(pt=St).\u0275fac=function(Ye){return new(Ye||pt)(d.Y36(_.m9),d.Y36(q.tu),d.Y36(a.hV),d.Y36(a.eJ),d.Y36(j.KD),d.Y36(K.r),d.Y36(L.i),d.Y36(r.QS),d.Y36(w.o),d.Y36(k.B))},pt.\u0275cmp=d.Xpm({type:pt,selectors:[["app-modal-funding"]],inputs:{type:"type",funding:"funding",options:"options"},decls:262,vars:141,consts:function(){let Zt,Ye,Ee,vt,ye,we,ge,T,V,G,R,Y,le,ke,ht,Gt,Wt,mn,wn,ut,Xe,Nt,Tt,qt,Yt,fn,dn,en,Tn,Ei,wi,Ci,Ii,zi,Ji,Qn,oi,ji,Ki,qn,Ai,xi,Fi,ki,Hi,Lr,Ri,jr,co,bn,Bo,_s,$r,Mo,Oo,qi,Hr,wr,hs;return Zt="Funding",Ye="Funding details",Ee="Funding agency",vt="Funding identifiers",ye="Visibility",we="Save changes",ge="Cancel",T="Funding details",V="Funding type",G="Funding subtype",R="Title of funded project",Y="Funding project translated title",le="Language of this title",ke="Project link",ht="A link to the project supported by this funding. Links should be in full URL format e.g. http://www.website.com/page.html",Gt="Description",Wt="Total funding amount",mn="Start date",wn="Year",ut="Month",Xe="End date",Nt="Year",Tt="Month",qt="Funding agency",Yt="Funding agency name",fn="City",dn="Region, State or County",en="Country or location",Tn="Funding identifiers",Ei="Visibility",wi="Required information",Ci="Select a funding type",Ii="Must be less than 255 characters",zi="Please enter a title",Ji="Must be less than 1000 characters",Qn="Show translated title",oi="Hide translated title",ji="Please enter a translated title",Ki="Must be less than 1000 characters",qn="Please select a language",Ai="Invalid URL",xi="Must be less than 2000 characters",Fi="Must be less than 5000 characters",ki="Amount should be a numeric value with format 1,234,567.89",Hi="Please select a currency",Lr="Invalid date",Ri="Invalid date",jr="End date must come after start date",co="Required information",bn="Identify as:",Bo="Unidentified organization",_s="Please enter an agency name",$r="Must be less than 1000 characters",Mo="Please enter a city",Oo="Must be less than 1000 characters",qi="Must be less than 1000 characters",Hr="Please enter a country or location",wr="Add another identifier",hs="Add an identifier",[[3,"loading"],[3,"closeLabel"],Zt,["id","side-bar-title"],[1,"side-bar",3,"click"],Ye,["id","side-bar-url-1"],Ee,["id","side-bar-url-2"],vt,["id","side-bar-url-3"],ye,["mat-raised-button","","color","primary","id","save-names-button",3,"click"],we,["mat-stroked-button","","color","primary","id","cancel-names-button",3,"click"],ge,[3,"formGroup","ngSubmit"],["id","funding-details"],["id","funding-detail",1,"title","top-title",3,"ngClass"],[1,"row"],[1,"orc-font-body"],T,["class","required",4,"ngIf"],["class","required-information mat-caption",4,"ngIf"],["id","funding-type",1,"mat-caption","title",3,"ngClass"],V,[1,"required"],[1,"input-container"],["appearance","outline",1,"mat-form-field-min"],["aria-labelledby","funding-type","formControlName","fundingType",3,"placeholder"],[3,"value",4,"ngFor","ngForOf"],[4,"ngIf"],["for","funding-subtype-input","id","funding-subtype",1,"mat-caption"],G,["aria-labelledby","funding-subtype","id","funding-subtype-input","matInput","","formControlName","fundingSubtype"],["for","funding-project-title-input","id","funding-funded-project",1,"mat-caption",3,"ngClass"],R,["aria-labelledby","funding-funded-project","id","funding-project-title-input","matInput","","formControlName","fundingProjectTitle"],["class","mat-caption",4,"ngIf"],[1,"col","add-more","translate-title",3,"click"],["class","large-material-icon","aria-hidden","true",4,"ngIf"],["id","",1,"mat-body-1"],["formGroupName","translatedTitleGroup",3,"hidden"],["for","funding-project-translated-title-input","id","funding-funded-project-translated-input",1,"mat-caption",3,"ngClass"],["x",""],Y,["aria-labelledby","funding-funded-project-translated-input","id","funding-project-translated-title-input","matInput","","formControlName","translatedTitleContent"],[1,"row","translate-title"],["for","language-title-input","id","language-title",1,"mat-caption",3,"ngClass"],le,[1,"input-container","language"],["aria-labelledby","language-title","id","language-title-input","formControlName","translatedTitleLanguage",3,"placeholder"],["for","funding-project-link-input","id","funding-project-link",1,"mat-caption",3,"ngClass"],ke,[1,"input-container",3,"ngClass"],["appearance","outline",1,"mat-form-field-min","three-line-hint"],["aria-labelledby","funding-project-link","id","funding-project-link-input","matInput","","formControlName","fundingProjectLink","placeholder",""],[1,"mat-caption"],ht,[1,"row","description"],["id","funding-description",1,"mat-caption"],Gt,["appearance","outline","aria-labelledby","funding-description",1,"mat-form-field-min","input-container"],["matInput","","formControlName","description","cdkTextareaAutosize","","cdkAutosizeMinRows","5","cdkAutosizeMaxRows","7"],["for","funding-amount-input","id","funding-total-funding-amount",1,"mat-caption"],Wt,[1,"date-group","mat-form-field-wrapper","input-container"],[1,"col","l4","date-input"],["id","funding-amount-input","appearance","outline",1,"mat-form-field-min","no-hint","input-container"],["formControlName","currencyCode",3,"placeholder","aria-label"],[1,"col","date-input","l4"],["appearance","outline",1,"mat-form-field-min","no-hint"],["id","amount-input","matInput","","formControlName","amount",3,"placeholder"],["class","mat-caption error-out-input-context",4,"ngIf"],["formGroupName","startDateGroup",1,"input-container"],[1,"mat-caption",3,"ngClass"],mn,[1,"row","date-group","mat-form-field-wrapper"],["id","start-date-year-input","appearance","outline",1,"mat-form-field-min","no-hint"],["formControlName","startDateYear",3,"aria-label","placeholder"],[3,"value"],wn,["id","start-date-month-input","appearance","outline",1,"mat-form-field-min","no-hint"],["formControlName","startDateMonth",3,"aria-label","placeholder"],ut,["formGroupName","endDateGroup",1,"row"],Xe,[1,"input-container","date-group","mat-form-field-wrapper"],["id","end-date-year-input","appearance","outline",1,"mat-form-field-min","no-hint"],["formControlName","endDateYear",3,"aria-label","placeholder"],Nt,["id","end-date-month-input","appearance","outline",1,"mat-form-field-min","no-hint"],["formControlName","endDateMonth",3,"aria-label","placeholder"],Tt,["id","funding-agency"],[1,"title",3,"ngClass"],qt,["for","funding-agency-name-input",1,"mat-caption",3,"ngClass"],Yt,["appearance","outline",1,"mat-form-field-min",3,"ngClass"],["aria-labelledby","funding-agency","id","funding-agency-name-input","matInput","","formControlName","agencyName",3,"matAutocomplete"],["autoActiveFirstOption","",3,"displayWith"],["auto","matAutocomplete"],["class","clear","matSuffix","","mat-icon-button","","aria-label","Clear",3,"click",4,"ngIf"],["id","funding-city","for","city-input",1,"mat-caption",3,"ngClass"],fn,["aria-labelledby","funding-city","id","city-input","matInput","","formControlName","city"],["for","region-input","id","funding-region-state",1,"mat-caption"],dn,["aria-labelledby","funding-region-state","id","region-input","matInput","","formControlName","region"],["for","country-input","id","funding-country-location",1,"mat-caption",3,"ngClass"],en,["id","country-input","appearance","outline",1,"mat-form-field-min",3,"ngClass"],["aria-labelledby","funding-countr-location","formControlName","country",3,"placeholder"],["countrySelect",""],["id","funding-ids"],["id","funding-identifiers",1,"title",3,"ngClass"],Tn,["formArrayName","grants"],["class","externalIdBox",4,"ngFor","ngForOf"],["id","add-link",1,"col","add-more","no-gutters",3,"click"],["aria-hidden","true",1,"large-material-icon"],[1,"mat-body-1"],["id","funding-visibility"],["id","visibility",1,"title",3,"ngClass"],Ei,[1,"orc-font-body-small"],[1,"col","no-wrap","actions-wrapper","no-gutters"],["formControlName","visibility",3,"itemTitle"],[1,"required-information","mat-caption"],wi,Ci,Ii,zi,Ji,Qn,oi,ji,Ki,qn,Ai,xi,Fi,[1,"mat-caption","error-out-input-context"],ki,Hi,Lr,Ri,jr,co,[1,"row","orc-font-body-small","title"],[1,"row","orc-font-small-print"],bn,Bo,["matSuffix","","mat-icon-button","","aria-label","Clear",1,"clear",3,"click"],_s,$r,Mo,Oo,qi,Hr,[1,"externalIdBox"],[3,"grantForm","index","cancelEvent"],[3,"grant","edit","delete"],wr,hs]},template:function(Ye,Ee){if(1&Ye&&(d.TgZ(0,"app-modal",0)(1,"app-modal-header",1),d.ynx(2),d.SDv(3,2),d.BQk(),d.qZA(),d.TgZ(4,"app-modal-side-bar"),d.ynx(5,3),d.TgZ(6,"a",4),d.NdJ("click",function(){return Ee.toFundingDetails()}),d.SDv(7,5),d.qZA(),d.BQk(),d.ynx(8,6),d.TgZ(9,"a",4),d.NdJ("click",function(){return Ee.toFundingAgency()}),d.SDv(10,7),d.qZA(),d.BQk(),d.ynx(11,8),d.TgZ(12,"a",4),d.NdJ("click",function(){return Ee.toFundingIdentifiers()}),d.SDv(13,9),d.qZA(),d.BQk(),d.ynx(14,10),d.TgZ(15,"a",4),d.NdJ("click",function(){return Ee.toVisibility()}),d.SDv(16,11),d.qZA(),d.BQk(),d.qZA(),d.TgZ(17,"app-modal-footer")(18,"button",12),d.NdJ("click",function(){return Ee.saveEvent()}),d.SDv(19,13),d.qZA(),d.TgZ(20,"button",14),d.NdJ("click",function(){return Ee.closeEvent()}),d.SDv(21,15),d.qZA()(),d.TgZ(22,"form",16),d.NdJ("ngSubmit",function(){return Ee.onSubmit()}),d.TgZ(23,"section",17)(24,"div",18)(25,"div",19)(26,"h2",20),d.SDv(27,21),d.qZA(),d.YNc(28,X,2,0,"span",22),d.YNc(29,de,5,0,"p",23),d.qZA()(),d._UZ(30,"hr"),d.TgZ(31,"div")(32,"div",19)(33,"label",24)(34,"strong"),d.SDv(35,25),d.qZA(),d.TgZ(36,"span",26),d._uU(37,"*"),d.qZA()()(),d.TgZ(38,"div",27)(39,"mat-form-field",28)(40,"mat-select",29),d.YNc(41,re,3,4,"mat-option",30),d.ALo(42,"keyvalue"),d.qZA(),d.YNc(43,be,2,0,"mat-error",31),d.qZA()()(),d.TgZ(44,"div",19)(45,"label",32)(46,"strong"),d.SDv(47,33),d.qZA()()(),d.TgZ(48,"div",27)(49,"mat-form-field",28),d._UZ(50,"input",34),d.YNc(51,pe,2,0,"mat-error",31),d.qZA()(),d.TgZ(52,"div")(53,"div",19)(54,"label",35)(55,"strong"),d.SDv(56,36),d.qZA(),d.TgZ(57,"span",26),d._uU(58,"*"),d.qZA()()(),d.TgZ(59,"div",27)(60,"mat-form-field",28),d._UZ(61,"input",37),d.YNc(62,$e,2,0,"mat-error",38),d.YNc(63,Je,2,0,"mat-error",31),d.qZA()(),d.TgZ(64,"div",19)(65,"a",39),d.NdJ("click",function(){return Ee.showTranslationTitle=!Ee.showTranslationTitle}),d.YNc(66,qe,2,0,"mat-icon",40),d.YNc(67,it,2,0,"mat-icon",40),d.TgZ(68,"span",41),d.YNc(69,rt,2,0,"ng-container",31),d.YNc(70,tt,2,0,"ng-container",31),d.qZA()()()(),d.TgZ(71,"div",42)(72,"div")(73,"div",19)(74,"label",43)(75,"strong",44),d.SDv(76,45),d.qZA()()(),d.TgZ(77,"div",27)(78,"mat-form-field",28),d._UZ(79,"input",46),d.qZA(),d.YNc(80,_t,2,0,"mat-error",38),d.YNc(81,ze,2,0,"mat-error",38),d.qZA()(),d.TgZ(82,"div")(83,"div",47)(84,"label",48)(85,"strong"),d.SDv(86,49),d.qZA()()(),d.TgZ(87,"div",50)(88,"mat-form-field",28)(89,"mat-select",51),d.YNc(90,Ze,2,2,"mat-option",30),d.ALo(91,"keyvalue"),d.qZA()(),d.YNc(92,ot,2,0,"mat-error",38),d.qZA()()(),d.TgZ(93,"div")(94,"div",19)(95,"label",52)(96,"strong"),d.SDv(97,53),d.qZA()()(),d.TgZ(98,"div",54)(99,"mat-form-field",55),d._UZ(100,"input",56),d.TgZ(101,"mat-hint",57),d.SDv(102,58),d.qZA(),d.YNc(103,Ct,2,0,"mat-error",31),d.YNc(104,De,2,0,"mat-error",31),d.qZA()()(),d.TgZ(105,"div",59)(106,"div",19)(107,"label",60)(108,"strong"),d.SDv(109,61),d.qZA()()(),d.TgZ(110,"mat-form-field",62)(111,"textarea",63),d._uU(112," "),d.qZA(),d.YNc(113,ft,2,0,"mat-error",31),d.qZA()(),d.TgZ(114,"div",19)(115,"div",19)(116,"label",64)(117,"strong"),d.SDv(118,65),d.qZA()()(),d.TgZ(119,"div",66)(120,"div",67)(121,"mat-form-field",68)(122,"mat-select",69),d.YNc(123,st,2,2,"mat-option",30),d.ALo(124,"keyvalue"),d.qZA()()(),d.TgZ(125,"div",70)(126,"mat-form-field",71),d._UZ(127,"input",72),d.qZA()(),d.YNc(128,bt,2,0,"mat-error",73),d.qZA(),d.TgZ(129,"div",19),d.YNc(130,_e,2,0,"mat-error",73),d.qZA()(),d.TgZ(131,"div",74)(132,"div",19)(133,"label",75)(134,"strong"),d.SDv(135,76),d.qZA()()(),d.TgZ(136,"div",77)(137,"div",19)(138,"div",67)(139,"mat-form-field",78)(140,"mat-select",79)(141,"mat-option",80),d.SDv(142,81),d.qZA(),d.YNc(143,H,2,2,"mat-option",30),d.qZA()()(),d.TgZ(144,"div",67)(145,"mat-form-field",82)(146,"mat-select",83)(147,"mat-option",80),d.SDv(148,84),d.qZA(),d.YNc(149,Te,3,4,"mat-option",30),d.qZA()()()(),d.TgZ(150,"div",19),d.YNc(151,Me,2,0,"mat-error",73),d.qZA()()(),d.TgZ(152,"div",85)(153,"div",19)(154,"label",75)(155,"strong"),d.SDv(156,86),d.qZA()()(),d.TgZ(157,"div",87)(158,"div",19)(159,"div",67)(160,"mat-form-field",88)(161,"mat-select",89)(162,"mat-option",80),d.SDv(163,90),d.qZA(),d.YNc(164,Pe,2,2,"mat-option",30),d.qZA()()(),d.TgZ(165,"div",67)(166,"mat-form-field",91)(167,"mat-select",92)(168,"mat-option",80),d.SDv(169,93),d.qZA(),d.YNc(170,dt,3,4,"mat-option",30),d.qZA()()()(),d.TgZ(171,"div",19),d.YNc(172,Pt,2,0,"mat-error",73),d.YNc(173,Qt,2,0,"mat-error",73),d.qZA()()()(),d.TgZ(174,"section",94)(175,"div",95)(176,"div",19)(177,"h2",20),d.SDv(178,96),d.qZA(),d.YNc(179,cn,2,0,"span",22),d.YNc(180,Ie,5,0,"p",23),d.qZA()(),d._UZ(181,"hr"),d.TgZ(182,"div",19)(183,"label",97)(184,"strong"),d.SDv(185,98),d.qZA(),d.TgZ(186,"span",26),d._uU(187,"*"),d.qZA()()(),d.TgZ(188,"div",27)(189,"mat-form-field",99),d._UZ(190,"input",100),d.TgZ(191,"mat-autocomplete",101,102),d.YNc(193,ne,5,5,"mat-option",30),d.ALo(194,"async"),d.qZA(),d.YNc(195,ce,4,1,"mat-hint",31),d.YNc(196,Ve,2,0,"mat-hint",31),d.YNc(197,mt,3,0,"button",103),d.YNc(198,Ut,2,0,"mat-error",38),d.YNc(199,Bt,2,0,"mat-error",31),d.qZA()(),d.TgZ(200,"div",19)(201,"label",104)(202,"strong"),d.SDv(203,105),d.qZA(),d.TgZ(204,"span",26),d._uU(205,"*"),d.qZA()()(),d.TgZ(206,"div",27)(207,"mat-form-field",28),d._UZ(208,"input",106),d.YNc(209,gt,2,0,"mat-error",38),d.YNc(210,nt,2,0,"mat-error",31),d.qZA()(),d.TgZ(211,"div",19)(212,"label",107)(213,"strong"),d.SDv(214,108),d.qZA()()(),d.TgZ(215,"div",27)(216,"mat-form-field",28),d._UZ(217,"input",109),d.YNc(218,oe,2,0,"mat-error",31),d.qZA()(),d.TgZ(219,"div",19)(220,"label",110)(221,"strong"),d.SDv(222,111),d.qZA(),d.TgZ(223,"span",26),d._uU(224,"*"),d.qZA()()(),d.TgZ(225,"div",27)(226,"mat-form-field",112)(227,"mat-select",113,114),d.YNc(229,Ce,2,2,"mat-option",30),d.ALo(230,"sortBy"),d.qZA(),d.YNc(231,ve,2,0,"mat-error",31),d.qZA()()(),d.TgZ(232,"section",115)(233,"div",116)(234,"div")(235,"h2",20),d.SDv(236,117),d.qZA(),d.YNc(237,xe,2,0,"span",22),d.qZA()(),d._UZ(238,"hr"),d.TgZ(239,"div",118),d.YNc(240,Fe,3,2,"div",119),d.TgZ(241,"div",19)(242,"a",120),d.NdJ("click",function(){return Ee.addAnotherGrant()}),d.TgZ(243,"mat-icon",121),d._uU(244,"add_circle_outline"),d.qZA(),d.TgZ(245,"span",122),d.YNc(246,je,2,0,"ng-container",31),d.YNc(247,kt,2,0,"ng-container",31),d.qZA()()()()(),d.TgZ(248,"section",123)(249,"div",124)(250,"h2",20),d.SDv(251,125),d.qZA()(),d._UZ(252,"hr"),d.TgZ(253,"p",126),d._uU(254),d.TgZ(255,"strong"),d._uU(256),d.ALo(257,"visibilityStringLabel"),d.qZA(),d._uU(258,". "),d.qZA(),d.TgZ(259,"div",19)(260,"div",127),d._UZ(261,"app-visibility-selector",128),d.qZA()()()()()),2&Ye){const vt=d.MAs(192);d.Q6J("loading",Ee.loadingFunding),d.xp6(1),d.Q6J("closeLabel",Ee.ariaLabelCancelChanges),d.xp6(17),d.uIk("aria-label",Ee.ariaLabelSaveChanges),d.xp6(2),d.uIk("aria-label",Ee.ariaLabelClose),d.xp6(2),d.Q6J("formGroup",Ee.fundingForm),d.xp6(2),d.Q6J("ngClass",d.WLB(103,We,!Ee.platform.columns12,Ee.platform.columns12)),d.xp6(4),d.Q6J("ngIf",!Ee.platform.columns12),d.xp6(1),d.Q6J("ngIf",Ee.platform.columns12),d.xp6(4),d.Q6J("ngClass",d.VKq(106,Ft,Ee.fundingForm.get("fundingType").hasError("required")&&Ee.fundingForm.get("fundingType").touched)),d.xp6(7),d.s9C("placeholder",Ee.ngOrcidFundingType),d.xp6(1),d.Q6J("ngForOf",d.lcZ(42,89,Ee.fundingTypes)),d.xp6(2),d.Q6J("ngIf",Ee.fundingForm.get("fundingType").hasError("required")),d.xp6(8),d.Q6J("ngIf",null==Ee.fundingForm.get("fundingSubtype").errors?null:Ee.fundingForm.get("fundingSubtype").errors.maxlength),d.xp6(3),d.Q6J("ngClass",d.VKq(108,Ft,Ee.fundingForm.get("fundingProjectTitle").hasError("required")&&(Ee.fundingForm.get("fundingProjectTitle").touched||Ee.fundingForm.get("fundingProjectTitle").dirty))),d.xp6(8),d.Q6J("ngIf",Ee.fundingForm.hasError("required","fundingProjectTitle")),d.xp6(1),d.Q6J("ngIf",null==Ee.fundingForm.get("fundingProjectTitle").errors?null:Ee.fundingForm.get("fundingProjectTitle").errors.maxlength),d.xp6(3),d.Q6J("ngIf",!Ee.showTranslationTitle),d.xp6(1),d.Q6J("ngIf",Ee.showTranslationTitle),d.xp6(2),d.Q6J("ngIf",!Ee.showTranslationTitle),d.xp6(1),d.Q6J("ngIf",Ee.showTranslationTitle),d.xp6(1),d.Q6J("hidden",!Ee.showTranslationTitle),d.xp6(3),d.Q6J("ngClass",d.VKq(110,Ft,Ee.fundingForm.hasError("invalidTranslatedTitleContent","translatedTitleGroup"))),d.xp6(6),d.Q6J("ngIf",Ee.fundingForm.hasError("invalidTranslatedTitleContent","translatedTitleGroup")),d.xp6(1),d.Q6J("ngIf",null==Ee.fundingForm.get("translatedTitleGroup.translatedTitleContent").errors?null:Ee.fundingForm.get("translatedTitleGroup.translatedTitleContent").errors.maxlength),d.xp6(3),d.Q6J("ngClass",d.VKq(112,Ft,Ee.fundingForm.hasError("invalidTranslatedTitleLanguage","translatedTitleGroup"))),d.xp6(5),d.s9C("placeholder",Ee.ngOrcidSelectLanguage),d.xp6(1),d.Q6J("ngForOf",d.lcZ(91,91,Ee.languageMap)),d.xp6(2),d.Q6J("ngIf",Ee.fundingForm.hasError("invalidTranslatedTitleLanguage","translatedTitleGroup")),d.xp6(3),d.Q6J("ngClass",d.VKq(114,Ft,Ee.fundingForm.get("fundingProjectLink").hasError("pattern")&&Ee.fundingForm.get("fundingProjectLink").touched)),d.xp6(3),d.Q6J("ngClass",d.VKq(116,Kt,Ee.isMobile)),d.xp6(5),d.Q6J("ngIf",Ee.fundingForm.get("fundingProjectLink").hasError("pattern")),d.xp6(1),d.Q6J("ngIf",null==Ee.fundingForm.get("fundingProjectLink").errors?null:Ee.fundingForm.get("fundingProjectLink").errors.maxlength),d.xp6(7),d.uIk("aria-label",Ee.ariaLabelDescription),d.xp6(2),d.Q6J("ngIf",null==Ee.fundingForm.get("description").errors?null:Ee.fundingForm.get("description").errors.maxlength),d.xp6(9),d.Q6J("placeholder",Ee.totalFundingAmountCurrency)("aria-label",Ee.totalFundingAmountCurrency),d.xp6(1),d.Q6J("ngForOf",d.lcZ(124,93,Ee.currencyCodeMap)),d.xp6(4),d.Q6J("placeholder",Ee.ariaLabelAmount),d.uIk("aria-label",Ee.totalFundingAmount),d.xp6(1),d.Q6J("ngIf",Ee.fundingForm.get("amount").hasError("pattern")&&Ee.fundingForm.get("amount").touched),d.xp6(2),d.Q6J("ngIf",null==Ee.fundingForm.get("currencyCode").errors?null:Ee.fundingForm.get("currencyCode").errors.required),d.xp6(3),d.Q6J("ngClass",d.VKq(118,Ft,Ee.fundingForm.hasError("date","startDateGroup"))),d.xp6(7),d.s9C("aria-label",Ee.ariaLabelStartDate+" "+Ee.ngOrcidYear),d.s9C("placeholder",Ee.ngOrcidYear),d.xp6(3),d.Q6J("ngForOf",Ee.years),d.xp6(3),d.s9C("aria-label",Ee.ariaLabelStartDate+" "+Ee.ngOrcidMonth),d.s9C("placeholder",Ee.ngOrcidMonth),d.xp6(3),d.Q6J("ngForOf",Ee.months),d.xp6(2),d.Q6J("ngIf",null==Ee.fundingForm.get("startDateGroup").errors?null:Ee.fundingForm.get("startDateGroup").errors.date),d.xp6(3),d.Q6J("ngClass",d.VKq(120,Ft,Ee.fundingForm.hasError("date","endDateGroup"))),d.xp6(7),d.s9C("aria-label",Ee.ariaLabelEndDate+" "+Ee.ngOrcidYear),d.s9C("placeholder",Ee.ngOrcidYear),d.xp6(3),d.Q6J("ngForOf",Ee.yearsEndDate),d.xp6(3),d.s9C("aria-label",Ee.ariaLabelEndDate+" "+Ee.ngOrcidMonth),d.s9C("placeholder",Ee.ngOrcidMonth),d.xp6(3),d.Q6J("ngForOf",Ee.months),d.xp6(2),d.Q6J("ngIf",null==Ee.fundingForm.get("endDateGroup").errors?null:Ee.fundingForm.get("endDateGroup").errors.date),d.xp6(1),d.Q6J("ngIf",null==Ee.fundingForm.errors?null:Ee.fundingForm.errors.invalidEndDate),d.xp6(2),d.Q6J("ngClass",d.WLB(122,We,!Ee.platform.columns12,Ee.platform.columns12)),d.xp6(4),d.Q6J("ngIf",!Ee.platform.columns12),d.xp6(1),d.Q6J("ngIf",Ee.platform.columns12),d.xp6(3),d.Q6J("ngClass",d.VKq(125,Ft,Ee.fundingForm.get("agencyName").hasError("required")&&(Ee.fundingForm.get("agencyName").touched||Ee.fundingForm.get("agencyName").dirty))),d.xp6(6),d.Q6J("ngClass",d.VKq(127,xt,(null==Ee.selectedOrganizationFromDatabase?null:Ee.selectedOrganizationFromDatabase.value.length)>50)),d.xp6(1),d.Q6J("matAutocomplete",vt),d.xp6(1),d.Q6J("displayWith",Ee.autoCompleteDisplayOrganization),d.xp6(2),d.Q6J("ngForOf",d.lcZ(194,95,Ee.filteredOptions)),d.xp6(2),d.Q6J("ngIf",Ee.selectedOrganizationFromDatabase&&Ee.displayOrganizationHint),d.xp6(1),d.Q6J("ngIf",!Ee.selectedOrganizationFromDatabase&&Ee.fundingForm.get("agencyName").value&&Ee.displayOrganizationHint),d.xp6(1),d.Q6J("ngIf",Ee.fundingForm.get("agencyName").value),d.xp6(1),d.Q6J("ngIf",Ee.fundingForm.hasError("required","agencyName")),d.xp6(1),d.Q6J("ngIf",null==Ee.fundingForm.get("agencyName").errors?null:Ee.fundingForm.get("agencyName").errors.maxlength),d.xp6(2),d.Q6J("ngClass",d.VKq(129,Ft,Ee.fundingForm.get("city").hasError("required")&&(Ee.fundingForm.get("city").touched||Ee.fundingForm.get("city").dirty))),d.xp6(8),d.Q6J("ngIf",Ee.fundingForm.get("city").hasError("required")&&Ee.fundingForm.get("city").touched),d.xp6(1),d.Q6J("ngIf",null==Ee.fundingForm.get("city").errors?null:Ee.fundingForm.get("city").errors.maxlength),d.xp6(8),d.Q6J("ngIf",null==Ee.fundingForm.get("region").errors?null:Ee.fundingForm.get("region").errors.maxlength),d.xp6(2),d.Q6J("ngClass",d.VKq(131,Ft,Ee.fundingForm.get("country").hasError("required")&&Ee.fundingForm.get("country").touched)),d.xp6(6),d.Q6J("ngClass",d.VKq(133,xt,Ee.isMobile)),d.xp6(1),d.s9C("placeholder",Ee.ngOrcidSelectACountryOrLocation),d.xp6(2),d.Q6J("ngForOf",d.Dn7(230,97,Ee.countryCodes,"asc","key")),d.xp6(2),d.Q6J("ngIf",Ee.fundingForm.get("country").hasError("required")&&Ee.fundingForm.get("country").touched),d.xp6(2),d.Q6J("ngClass",d.WLB(135,We,!Ee.platform.columns12,Ee.platform.columns12)),d.xp6(4),d.Q6J("ngIf",!Ee.platform.columns12),d.xp6(3),d.Q6J("ngForOf",Ee.grantsArray.controls),d.xp6(6),d.Q6J("ngIf",Ee.grantsArray.length),d.xp6(1),d.Q6J("ngIf",!Ee.grantsArray.length),d.xp6(2),d.Q6J("ngClass",d.WLB(138,We,!Ee.platform.columns12,Ee.platform.columns12)),d.xp6(5),d.hij(" ",Ee.ngOrcidDefaultVisibilityLabel," "),d.xp6(2),d.Oqu(d.lcZ(257,101,Ee.defaultVisibility)),d.xp6(5),d.Q6J("itemTitle",Ee.ariaLabelFundingTitle)}},styles:["input[_ngcontent-%COMP%]{border:solid 1px #e3e3e3}[_ngcontent-%COMP%]::placeholder{color:#707070}[_ngcontent-%COMP%]:-ms-input-placeholder{color:#707070}.error[_ngcontent-%COMP%], .required[_ngcontent-%COMP%]{color:#d32f2f}input.mat-input-element[_ngcontent-%COMP%]{border:transparent;font-size:14px!important}textarea.mat-input-element[_ngcontent-%COMP%], .mat-select[_ngcontent-%COMP%]{font-size:14px!important}.externalIdBox[_ngcontent-%COMP%]{border-bottom:dashed #eeeeee 1px}",".hide[_ngcontent-%COMP%]{display:none}label.mat-caption[_ngcontent-%COMP%]{margin-bottom:8px}mat-form-field[_ngcontent-%COMP%]{width:100%}[_nghost-%COMP%]{width:100%}hr[_ngcontent-%COMP%]{height:2px;border:0;margin:0 0 20px}.title[_ngcontent-%COMP%] p[_ngcontent-%COMP%]{margin:6px 0}.mat-form-field[_ngcontent-%COMP%]{width:100%}.mat-option[_ngcontent-%COMP%]{height:64px;line-height:32px}.side-bar[_ngcontent-%COMP%]{text-decoration:underline}mat-radio-button[_ngcontent-%COMP%]{margin-top:16px;padding-left:2px}.date-container[_ngcontent-%COMP%]{display:flex;flex-direction:row;flex-wrap:nowrap}.date-container[_ngcontent-%COMP%] mat-form-field[_ngcontent-%COMP%]{width:120px;margin-left:4px}.no-margin[_ngcontent-%COMP%]{margin:0}.add-more[_ngcontent-%COMP%]{margin-bottom:27px;padding-inline-start:0}.add-more[_ngcontent-%COMP%] a[_ngcontent-%COMP%]{margin:0}.add-more[_ngcontent-%COMP%] span[_ngcontent-%COMP%]{margin:auto;padding-inline-start:6px}.funding[_ngcontent-%COMP%]{margin-top:26px}.required-information[_ngcontent-%COMP%]{margin-left:auto!important;display:flex;align-items:center}.required-information[_ngcontent-%COMP%] span[_ngcontent-%COMP%]{margin-right:3px!important}mat-radio-group[_ngcontent-%COMP%]{display:flex;flex-direction:column}[_nghost-%COMP%] .date-group[_ngcontent-%COMP%] .date-input[_ngcontent-%COMP%]{padding-left:0}.project-link-mobile[_ngcontent-%COMP%]{padding-bottom:1.475em}.description[_ngcontent-%COMP%]{margin-top:26px!important}.delete-grant[_ngcontent-%COMP%]{align-content:end;justify-content:flex-end}.error-out-input-context[_ngcontent-%COMP%]{padding:0 8px}.input-container[_ngcontent-%COMP%]{max-width:402px}.externalIdBox[_ngcontent-%COMP%]{padding-bottom:16px;margin-bottom:16px}.language[_ngcontent-%COMP%]{padding-bottom:1.475em}.language[_ngcontent-%COMP%] .mat-form-field-wrapper{padding-bottom:0!important}.language[_ngcontent-%COMP%] mat-error[_ngcontent-%COMP%]{padding:0 1em;margin-top:.2em}.mat-option[_ngcontent-%COMP%]{min-height:64px;line-height:32px;height:auto;margin-bottom:8px;white-space:normal;line-height:1.4}.mat-option[_ngcontent-%COMP%] .title[_ngcontent-%COMP%]{display:flex;width:100%;font-weight:500}"]}),St})()},74191:(Qe,he,s)=>{"use strict";s.d(he,{G:()=>E});var a=s(72079),r=s(88419),b=s(20553),A=s(65879),D=s(27599),p=s(28325);let E=(()=>{var f;class c{constructor(m,_){this.dialogRef=m,this._recordPeerReviewService=_,this.$destroy=new a.xQ,this.loadingPeerReviews=!0,this.total=0}ngOnInit(){this._recordPeerReviewService.getPeerReviewImportWizardList().pipe((0,r.P)()).subscribe(m=>{this.recordImportWizards=m,this.loadingPeerReviews=!1,this.total=m.length})}openImportWizardUrlFilter(m){return"RETIRED"===m.status?m.clientWebsite:b.N.BASE_URL+"oauth/authorize?client_id="+m.id+"&response_type=code&scope="+m.scopes+"&redirect_uri="+m.redirectUri}toggle(m){m.show=!m.show}ngOnDestroy(){this.$destroy.next(!0),this.$destroy.unsubscribe()}}return(f=c).\u0275fac=function(m){return new(m||f)(A.Y36(D.hV),A.Y36(p.b))},f.\u0275cmp=A.Xpm({type:f,selectors:[["app-modal-peer-reviews"]],decls:17,vars:4,consts:function(){let C,m,_,g;return C="Link peer reviews",m="Search and Link wizards are our recommended way to populate your record. They make adding works, funding and peer reviews simple and save you time over updating your record manually. Select a platform from the list below to start linking items to your record.",_="More information about linking peer reviews to your ORCID record",g="Available Search & Link wizards",[[3,"loading","noSidebar"],C,[1,"row"],[1,"orc-font-small-print"],m,["rel","noopener noreferrer","target","_blank","href","https://support.orcid.org/hc/articles/360006971333",1,"underline"],_,g,[3,"recordImportWizards"]]},template:function(m,_){1&m&&(A.TgZ(0,"app-modal",0)(1,"app-modal-header"),A.ynx(2),A.SDv(3,1),A.BQk(),A.qZA(),A.TgZ(4,"div",2)(5,"div",3)(6,"p"),A.SDv(7,4),A.qZA(),A.TgZ(8,"a",5),A.SDv(9,6),A.qZA()()(),A.TgZ(10,"div",2)(11,"h3"),A.ynx(12),A.SDv(13,7),A.BQk(),A._uU(14),A.qZA(),A._UZ(15,"hr"),A.qZA(),A._UZ(16,"app-search-link-wizard",8),A.qZA()),2&m&&(A.Q6J("loading",_.loadingPeerReviews)("noSidebar",!0),A.xp6(14),A.hij(" (",_.total,") "),A.xp6(2),A.Q6J("recordImportWizards",_.recordImportWizards))},styles:["h3[_ngcontent-%COMP%]{margin:32px 0 8px}label.mat-caption[_ngcontent-%COMP%]{margin-bottom:8px}"]}),c})()},34572:(Qe,he,s)=>{"use strict";s.d(he,{D:()=>C});var a=s(27599),r=s(56223),b=s(19352),A=s(72079),D=s(6666),p=s(65879),E=s(71142),f=s(10111);const c=function(m,_){return{"orc-font-body":m,"orc-font-body-large":_}};let C=(()=>{var m;class _{constructor(P,U,d,q,j,K){this.window=P,this._platform=U,this.dialogRef=d,this.data=q,this._cdref=j,this._recordBiographyService=K,this.$destroy=new A.xQ,this.biography="",this.biographyVisibility="PRIVATE",this.loadingBiography=!0,this.ngOrcidAddYourBiography="Add your biography",this.ngOrcidDefaultVisibilityLabel="Control who can see your biography by setting the visibility. Your default visibility setting is",this.closeAriaLabel="Close Biography",this.saveAriaLabel="Save changes to Biography",this.cancelAriaLabel="Cancel changes close Biography",this.visibilityPublicAriaLabel="Set biography visibility to Everyone",this.visibilityTrustedPartyAriaLabel="Set biography visibility to Trusted Parties",this.visibilityPrivateAriaLabel="Set biography visibility to Only Me",this.ariaLabelBiography="Biography",this._platform.get().pipe((0,b.R)(this.$destroy)).subscribe(L=>{this.platform=L})}ngOnInit(){var P,U,d,q;this.loadingBiography=!1,this.userRecord=this.data,this.defaultVisibility=null==(U=null==(P=this.userRecord)?void 0:P.preferences)?void 0:U.default_visibility,this.biographyVisibility=this.defaultVisibility,null!=(q=null==(d=this.userRecord)?void 0:d.biography)&&q.biography&&(this.biography=this.userRecord.biography.biography.value,this.biographyVisibility=this.userRecord.biography.visibility.visibility),this.biographyForm=new r.nJ({biography:new r.p4(this.biography),visibility:new r.p4(this.biographyVisibility)})}onSubmit(){}formToBackend(P){const U={errors:[],required:void 0,visibility:P.get("visibility").value};return{errors:[],biography:P.get("biography").value,visibility:U}}saveEvent(){this.loadingBiography=!0,this._recordBiographyService.postBiography(this.formToBackend(this.biographyForm)).subscribe(P=>{this.closeEvent()},P=>{})}closeEvent(){this.dialogRef.close()}toBiography(){this.window.document.getElementById("biography").scrollIntoView()}toVisibility(){this.window.document.getElementById("visibility").scrollIntoView()}ngOnDestroy(){this.$destroy.next(!0),this.$destroy.unsubscribe()}}return(m=_).\u0275fac=function(P){return new(P||m)(p.Y36(D.m9),p.Y36(E.tu),p.Y36(a.hV),p.Y36(a.eJ),p.Y36(p.sBO),p.Y36(f.C))},m.\u0275cmp=p.Xpm({type:m,selectors:[["app-modal-biography"]],decls:48,vars:24,consts:function(){let g,P,U,d,q,j,K,L,w;return g="Biography",P="Biography",U="Visibility",d="Save changes",q="Cancel",j="Biography",K="Information about yourself, your research interests and other pertinent details that enhance your ORCID record.",L="Biography",w="Visibility",[[3,"loading"],[3,"closeLabel"],g,["id","side-bar-title"],[1,"side-bar",3,"click"],P,["id","side-bar-url-1"],U,["mat-raised-button","","color","primary","id","save-biography-button",3,"click"],d,["mat-stroked-button","","color","primary","id","cancel-biography-button",3,"click"],q,[3,"formGroup","ngSubmit"],["id","biography"],[1,"title",3,"ngClass"],j,[1,"orc-font-body-small"],K,["for","biography-input",1,"mat-caption"],L,["appearance","outline",1,"mat-form-field-min","biography"],["maxlength","5000","id","biography-input","matInput","","formControlName","biography","cdkAutosizeMinRows","5","cdkAutosizeMaxRows","1000",3,"placeholder","cdkTextareaAutosize"],["id","visibility"],w,[1,"row","visibility"],[1,"col","no-wrap","actions-wrapper","no-gutters"],["formControlName","visibility",3,"ariaLabelPrivate","ariaLabelPublic","ariaLabelTrustedParty","itemTitle"]]},template:function(P,U){1&P&&(p.TgZ(0,"app-modal",0)(1,"app-modal-header",1),p.ynx(2),p.SDv(3,2),p.BQk(),p.qZA(),p.TgZ(4,"app-modal-side-bar"),p.ynx(5,3),p.TgZ(6,"a",4),p.NdJ("click",function(){return U.toBiography()}),p.SDv(7,5),p.qZA(),p.BQk(),p.ynx(8,6),p.TgZ(9,"a",4),p.NdJ("click",function(){return U.toVisibility()}),p.SDv(10,7),p.qZA(),p.BQk(),p.qZA(),p.TgZ(11,"app-modal-footer")(12,"button",8),p.NdJ("click",function(){return U.saveEvent()}),p.SDv(13,9),p.qZA(),p.TgZ(14,"button",10),p.NdJ("click",function(){return U.closeEvent()}),p.SDv(15,11),p.qZA()(),p.TgZ(16,"form",12),p.NdJ("ngSubmit",function(){return U.onSubmit()}),p.TgZ(17,"section",13)(18,"div",14)(19,"p")(20,"strong"),p.SDv(21,15),p.qZA()()(),p._UZ(22,"hr"),p.TgZ(23,"p",16),p.SDv(24,17),p.qZA(),p.TgZ(25,"label",18)(26,"strong"),p.SDv(27,19),p.qZA()(),p.TgZ(28,"mat-form-field",20)(29,"textarea",21),p._uU(30," "),p.qZA(),p.TgZ(31,"mat-hint"),p._uU(32),p.qZA()()(),p.TgZ(33,"section",22)(34,"div",14)(35,"p")(36,"strong"),p.SDv(37,23),p.qZA()()(),p._UZ(38,"hr"),p.TgZ(39,"p",16),p._uU(40),p.TgZ(41,"strong"),p._uU(42),p.ALo(43,"visibilityStringLabel"),p.qZA(),p._uU(44,". "),p.qZA(),p.TgZ(45,"div",24)(46,"div",25),p._UZ(47,"app-visibility-selector",26),p.qZA()()()()()),2&P&&(p.Q6J("loading",U.loadingBiography),p.xp6(1),p.Q6J("closeLabel",U.closeAriaLabel),p.xp6(11),p.uIk("aria-label",U.saveAriaLabel),p.xp6(2),p.uIk("aria-label",U.cancelAriaLabel),p.xp6(2),p.Q6J("formGroup",U.biographyForm),p.xp6(2),p.Q6J("ngClass",p.WLB(18,c,!U.platform.columns12,U.platform.columns12)),p.xp6(11),p.MGl("placeholder"," ",U.ngOrcidAddYourBiography,""),p.Q6J("cdkTextareaAutosize",!0),p.xp6(3),p.hij("",null==U.biographyForm.get("biography").value?null:U.biographyForm.get("biography").value.length,"/5000"),p.xp6(2),p.Q6J("ngClass",p.WLB(21,c,!U.platform.columns12,U.platform.columns12)),p.xp6(6),p.hij(" ",U.ngOrcidDefaultVisibilityLabel," "),p.xp6(2),p.Oqu(p.lcZ(43,16,U.defaultVisibility)),p.xp6(5),p.Q6J("ariaLabelPrivate",U.visibilityPrivateAriaLabel)("ariaLabelPublic",U.visibilityPublicAriaLabel)("ariaLabelTrustedParty",U.visibilityTrustedPartyAriaLabel)("itemTitle",U.ariaLabelBiography))},styles:["textarea.mat-input-element[_ngcontent-%COMP%]{font-size:14px!important}","[_nghost-%COMP%]{width:100%}hr[_ngcontent-%COMP%]{height:2px;border:0;margin:0}.title[_ngcontent-%COMP%] p[_ngcontent-%COMP%]{margin:6px 0}label.mat-caption[_ngcontent-%COMP%]{margin-bottom:8px}.mat-form-field[_ngcontent-%COMP%]{width:100%}.side-bar[_ngcontent-%COMP%]{text-decoration:underline}"]}),_})()},89188:(Qe,he,s)=>{"use strict";s.d(he,{Q:()=>bt});var a=s(87845),r=s(56223),b=s(27599),A=s(6990),p=s(72079),E=s(19352),f=s(88419),c=s(75222),C=s(51418),m=s(6666),_=s(67555),g=s(65879),P=s(71142),U=s(12160),d=s(47127),q=s(2778),j=s(45081);const K=["nameInput"];function L(_e,H){1&_e&&(g.TgZ(0,"span",29),g._uU(1,"*"),g.qZA())}function w(_e,H){1&_e&&(g.TgZ(0,"p",58)(1,"span",29),g._uU(2,"*"),g.qZA(),g.ynx(3),g.SDv(4,59),g.BQk(),g.qZA())}function k(_e,H){1&_e&&(g.TgZ(0,"mat-error",60),g.SDv(1,61),g.qZA())}function X(_e,H){1&_e&&(g.TgZ(0,"mat-error"),g.SDv(1,62),g.qZA())}function de(_e,H){1&_e&&(g.TgZ(0,"mat-error"),g.SDv(1,63),g.qZA())}function re(_e,H){1&_e&&(g.TgZ(0,"mat-error",60),g.SDv(1,64),g.qZA())}function be(_e,H){1&_e&&(g.TgZ(0,"mat-error"),g.SDv(1,65),g.qZA())}function pe(_e,H){1&_e&&(g.TgZ(0,"mat-error"),g.SDv(1,66),g.qZA())}function $e(_e,H){1&_e&&(g.TgZ(0,"mat-error"),g.SDv(1,67),g.qZA())}function Je(_e,H){1&_e&&g._UZ(0,"div",82)}function qe(_e,H){if(1&_e&&(g.TgZ(0,"mat-hint",60),g._UZ(1,"app-source-hit",83),g.qZA()),2&_e){const Te=g.oxw().$implicit;g.xp6(1),g.Q6J("createdDate",Te.createdDate)("source",Te.sourceName||Te.source)("assertion",Te.assertionOriginName||Te.assertionOriginOrcid)}}function it(_e,H){1&_e&&(g.TgZ(0,"mat-error"),g.SDv(1,84),g.qZA())}const rt=function(_e){return{"no-wrap":_e}},tt=function(_e){return[_e,"otherName"]},_t=function(_e){return{privacy:_e}},ze=function(_e){return{selector:_e}};function Ze(_e,H){if(1&_e){const Te=g.EpF();g.TgZ(0,"div",70),g.YNc(1,Je,1,0,"div",71),g.TgZ(2,"div",72)(3,"div",73),g._UZ(4,"img",74),g.TgZ(5,"mat-form-field",31),g._UZ(6,"input",75,76),g.YNc(8,qe,2,3,"mat-hint",33),g.YNc(9,it,2,0,"mat-error",34),g.qZA()(),g.TgZ(10,"div",77),g._UZ(11,"app-visibility-selector",78),g.TgZ(12,"button",79),g.NdJ("click",function(){const dt=g.CHM(Te).$implicit,Pt=g.oxw(2);return g.KtG(Pt.deleteOtherName(dt.putCode))}),g.TgZ(13,"mat-icon",80),g._uU(14,"delete "),g.qZA()()()(),g._UZ(15,"hr",81),g.qZA()}if(2&_e){const Te=H.$implicit,Me=g.oxw(2);g.Q6J("formGroupName",Te.putCode),g.xp6(2),g.Q6J("ngClass",g.VKq(13,rt,!Me.isMobile)),g.xp6(4),g.s9C("placeholder",Me.ngOrcidAddOtherName),g.uIk("aria-label",Me.inputAlsoKnownAsAriaLabel),g.xp6(2),g.Q6J("ngIf",Te.putCode.indexOf("new")<0),g.xp6(1),g.Q6J("ngIf",Me.namesForm.hasError("maxlength",g.VKq(15,tt,Te.putCode))),g.xp6(1),g.Q6J("ngClass",g.VKq(17,_t,!Me.platform.columns12)),g.xp6(1),g.Q6J("ngClass",g.VKq(19,ze,!Me.platform.columns12))("ariaLabelPrivate",Me.visibilityNamesPrivateAriaLabel)("ariaLabelPublic",Me.visibilityNamesPublicAriaLabel)("ariaLabelTrustedParty",Me.visibilityNamesTrustedPartyAriaLabel)("itemTitle",Te.content),g.xp6(1),g.uIk("aria-label",Me.deleteOtherNameAriaLabel)}}function ot(_e,H){if(1&_e){const Te=g.EpF();g.ynx(0),g.TgZ(1,"div",68),g.NdJ("cdkDropListDropped",function(Pe){g.CHM(Te);const dt=g.oxw();return g.KtG(dt.drop(Pe))}),g.YNc(2,Ze,16,21,"div",69),g.qZA(),g.BQk()}if(2&_e){const Te=g.oxw();g.xp6(2),g.Q6J("ngForOf",Te.otherNames)}}function Ct(_e,H){1&_e&&(g.ynx(0),g.SDv(1,85),g.BQk())}function De(_e,H){1&_e&&(g.ynx(0),g.SDv(1,86),g.BQk())}const ft=function(_e,H){return{"orc-font-body":_e,"orc-font-body-large":H}},st=function(_e){return{error:_e}};let bt=(()=>{var _e;class H{constructor(Me,Pe,dt,Pt,Qt,cn,Ie,ne,ce){this.window=Me,this._platform=Pe,this.dialogRef=dt,this.data=Pt,this._userService=Qt,this._recordNameService=cn,this._recordOtherNamesService=Ie,this._changeDetectorRef=ne,this._snackBar=ce,this.$destroy=new p.xQ,this.addedOtherNameCount=0,this.loadingNames=!0,this.nameMaxLength=99,this.otherNameMaxLength=254,this.ngOrcidAddGivenName="Add given name",this.ngOrcidAddFamilyName="Add family name",this.ngOrcidAddPublishedName="Add a published or credit name",this.ngOrcidAddOtherName="Add other name",this.ngOrcidDefaultVisibilityLabel="Control who can see your given, family and published names by setting the visibility. The default visibility for your names is",this.closeAriaLabel="Close Names",this.saveAriaLabel="Save changes to Names",this.cancelAriaLabel="Cancel changes and close Names",this.inputGivenNamesAriaLabel="Your given names",this.inputFamilyNamesAriaLabel="Your family names",this.inputPublishedNamesAriaLabel="Your published names",this.inputAlsoKnownAsAriaLabel="I am also known as",this.visibilityNamesPublicAriaLabel="Set names visibility to Everyone",this.visibilityNamesTrustedPartyAriaLabel="Set names visibility to Trusted Parties",this.visibilityNamesPrivateAriaLabel="Set names visibility to Only Me",this.visibilityOtherNamesPublicAriaLabel="Set other names visibility to Everyone",this.visibilityOtherNamesTrustedPartyAriaLabel="Set other names visibility to Trusted Parties",this.visibilityOtherNamesPrivateAriaLabel="Set other names visibility to Only Me",this.deleteOtherNameAriaLabel="Delete other name",this.ariaLabelYourNames="Your names",this._platform.get().subscribe(Ve=>{this.platform=Ve,this.isMobile=Ve.columns4||Ve.columns8}),this._userService.getUserSession().pipe((0,E.R)(this.$destroy)).subscribe(Ve=>{this.userSession=Ve})}ngOnInit(){this.userRecord=this.data,this.publicVisibility="PUBLIC",this._recordNameService.getNames().pipe((0,f.P)()).subscribe(Me=>{this.defaultVisibility=Me.visibility.visibility,this._recordOtherNamesService.getOtherNames().pipe((0,f.P)()).subscribe(Pe=>{this.originalBackendOtherNames=(0,A.cloneDeep)(Pe),this.otherNamesDefaultVisibility=Pe.visibility.visibility,this.otherNames=this.originalBackendOtherNames.otherNames;const dt={};this.originalBackendOtherNames.otherNames.map(Pt=>dt[Pt.putCode]=Pt),this.backendJsonToForm(Me,this.originalBackendOtherNames),this.loadingNames=!1})})}onSubmit(){}backendJsonToForm(Me,Pe){const Pt={};Pe.otherNames.forEach(ce=>{Pt[ce.putCode]=new r.nJ({otherName:new r.p4({value:ce.content,disabled:ce.source!==this.id},[r.kI.maxLength(this.otherNameMaxLength)]),visibility:new r.p4(ce.visibility.visibility,{})})}),this.namesForm=new r.nJ(Pt);const cn=Me.familyName?Me.familyName.value:"",Ie=Me.creditName?Me.creditName.value:"",ne=Me.visibility.visibility;this.namesForm.addControl("givenNames",new r.p4(Me.givenNames?Me.givenNames.value:"",{validators:[r.kI.required,_.a.illegalName,r.kI.maxLength(this.nameMaxLength)]})),this.namesForm.addControl("familyName",new r.p4(cn,{validators:[_.a.illegalName,r.kI.maxLength(this.nameMaxLength)]})),this.namesForm.addControl("publishedName",new r.p4(Ie,{validators:[r.kI.maxLength(this.nameMaxLength)]})),this.namesForm.addControl("visibility",new r.p4(ne,{}))}formToBackendNames(Me){const Pe=Me.get("visibility").value;return{errors:[],givenNames:Me.get("givenNames").value.trim(),familyName:Me.get("familyName").value.trim(),creditName:Me.get("publishedName").value.trim(),visibility:{visibility:Pe}}}formToBackendOtherNames(Me){const Pe={errors:[],otherNames:[],visibility:this.originalBackendOtherNames.visibility};return this._changeDetectorRef.detach(),this.otherNames.reverse(),this.otherNames.map(dt=>dt.putCode).filter(dt=>Me.getRawValue()[dt].otherName).forEach((dt,Pt)=>{const Qt=Me.getRawValue()[dt].otherName.trim(),cn=Me.getRawValue()[dt].visibility;Me.getRawValue()[dt]&&Pe.otherNames.push({putCode:0===dt.indexOf("new-")?null:dt,content:Qt,displayIndex:Pt+1,source:this.userSession.userInfo.EFFECTIVE_USER_ORCID,visibility:{visibility:cn}})}),Pe}saveEvent(){this.namesForm.valid?(this.loadingNames=!0,this._recordNameService.postNames(this.formToBackendNames(this.namesForm)).pipe((0,c.w)(Me=>this._recordOtherNamesService.postOtherNames(this.formToBackendOtherNames(this.namesForm))),(0,c.w)(Me=>this._userService.refreshUserSession(!0).pipe((0,C.q)(1)))).subscribe(Me=>{this.closeEvent()},Me=>{})):this._snackBar.showValidationError()}closeEvent(){this.dialogRef.close()}drop(Me){(0,a.bA)(this.otherNames,Me.previousIndex,Me.currentIndex)}addOtherName(){this.namesForm.addControl("new-"+this.addedOtherNameCount,new r.nJ({otherName:new r.p4("",[r.kI.maxLength(this.otherNameMaxLength)]),visibility:new r.p4(this.otherNamesDefaultVisibility)})),this.otherNames.push({putCode:"new-"+this.addedOtherNameCount,visibility:{visibility:this.otherNamesDefaultVisibility}}),this.addedOtherNameCount++,this._changeDetectorRef.detectChanges(),this.inputs.last.nativeElement.focus()}deleteOtherName(Me){const Pe=this.otherNames.findIndex(dt=>dt.putCode===Me);this.otherNames.splice(Pe,1),this.namesForm.removeControl(Me)}toGivenNames(){this.window.document.getElementById("given-names").scrollIntoView()}toPublishedName(){this.window.document.getElementById("published-name").scrollIntoView()}toVisibility(){this.window.document.getElementById("visibility").scrollIntoView()}toAlsoKnownAs(){this.window.document.getElementById("also-known-as").scrollIntoView()}ngOnDestroy(){this.$destroy.next(!0),this.$destroy.unsubscribe()}}return(_e=H).\u0275fac=function(Me){return new(Me||_e)(g.Y36(m.m9),g.Y36(P.tu),g.Y36(b.hV),g.Y36(b.eJ),g.Y36(U.KD),g.Y36(d.f),g.Y36(q.$),g.Y36(g.sBO),g.Y36(j.o))},_e.\u0275cmp=g.Xpm({type:_e,selectors:[["app-modal-name"]],viewQuery:function(Me,Pe){if(1&Me&&g.Gf(K,5),2&Me){let dt;g.iGM(dt=g.CRH())&&(Pe.inputs=dt)}},decls:95,vars:42,consts:function(){let Te,Me,Pe,dt,Pt,Qt,cn,Ie,ne,ce,Ve,mt,Ut,Bt,gt,nt,oe,Ce,ve,xe,at,Ot,Fe,je,kt,We,Ft,Kt;return Te="Names",Me="Your names",Pe="Also known as",dt="Save changes",Pt="Cancel",Qt="Your names",cn="ORCID has a number of options for adding and managing your names.",Ie="Find out more about managing names in your ORCID record",ne="Your given and family names",ce="Given names",Ve="Family names",mt="Your published name",Ut="How you prefer your name to appear when credited. Adding a published name lets you control how your name is displayed in your ORCID record.",Bt="Published name",gt="Who can see your names",nt="Also known as",oe="Add other names you may be known by. These can include abbreviated names, middle names, former names or names in a different character set or language. Adding other names can help people find your record when they search the ORCID registry.",Ce="Required information",ve="Please enter your first/given name",xe="Invalid name characters or format",at="Must be less than 100 characters",Ot="Please enter your first/given name",Fe="Invalid name characters or format",je="Must be less than 100 characters",kt="Must be less than 100 characters",We="Must be less than 255 characters",Ft="Add other name",Kt="Add another name",[[3,"loading"],[3,"closeLabel"],Te,["id","side-bar-title"],[1,"side-bar",3,"click"],Me,["id","side-bar-url-1"],Pe,["mat-raised-button","","color","primary","id","save-names-button",3,"click"],dt,["mat-stroked-button","","color","primary","id","cancel-names-button",3,"click"],Pt,[3,"formGroup","ngSubmit"],["id","given-names"],[1,"title",3,"ngClass"],[1,"row"],[1,"orc-font-body-large"],Qt,["class","required",4,"ngIf"],["class","required-information mat-caption",4,"ngIf"],[1,"orc-font-body-small","orcid-has-number"],cn,["rel","noopener noreferrer","target","_blank","href","https://support.orcid.org/hc/en-us/articles/360006973853-Add-and-edit-your-name-on-your-ORCID-record",1,"underline","orc-font-body-small"],Ie,[1,"title"],[1,"your-given-names","orc-font-body"],ne,["for","given-names-input",1,"mat-caption",3,"ngClass"],ce,[1,"required"],[1,"input-container"],["appearance","outline",1,"mat-form-field-min"],["id","given-names-input","matInput","","formControlName","givenNames",3,"placeholder"],["class","mat-caption",4,"ngIf"],[4,"ngIf"],["for","family-names-input",1,"mat-caption"],Ve,["id","family-names-input","matInput","","formControlName","familyName",3,"placeholder"],["id","published-name",1,"title"],[1,"orc-font-body"],mt,[1,"orc-font-body-small"],Ut,["for","published-names-input",1,"mat-caption"],Bt,["id","published-names-input","matInput","","formControlName","publishedName",3,"placeholder"],["id","visibility",1,"title"],gt,[1,"row","names-visibility"],[1,"col","no-wrap","actions-wrapper","no-gutters"],["formControlName","visibility",3,"ariaLabelPrivate","ariaLabelPublic","ariaLabelTrustedParty","itemTitle"],["id","also-known-as"],[3,"ngClass"],nt,oe,["role","button","id","add-link","tabindex","0",1,"col","add-more","no-gutters",3,"click"],[1,"large-material-icon"],[1,"mat-body-1"],[1,"required-information","mat-caption"],Ce,[1,"mat-caption"],ve,xe,at,Ot,Fe,je,kt,["id","otherName-dropList","cdkDropList","",1,"row","other-names-list",3,"cdkDropListDropped"],["cdkDrag","","class","row other-names-box",3,"formGroupName",4,"ngFor","ngForOf"],["cdkDrag","",1,"row","other-names-box",3,"formGroupName"],["class","row drag-placeholder",4,"cdkDragPlaceholder"],[1,"row","other-names-input-line",3,"ngClass"],[1,"col","l12","m8","s4","top","no-wrap","no-gutters","input-container"],["cdkDragHandle","","src","./assets/vectors/draggable.svg","role","none",1,"icon-drag"],["id","alternative-names-input","matInput","","formControlName","otherName",3,"placeholder"],["nameInput",""],[1,"col","no-wrap","actions-wrapper","no-gutters","actions-wrapper-last",3,"ngClass"],["formControlName","visibility",3,"ngClass","ariaLabelPrivate","ariaLabelPublic","ariaLabelTrustedParty","itemTitle"],["id","delete-button","mat-icon-button","",3,"click"],[1,"material-icons-outlined","extra-large-material-icon"],[1,"dashed-line"],[1,"row","drag-placeholder"],[3,"createdDate","source","assertion"],We,Ft,Kt]},template:function(Me,Pe){1&Me&&(g.TgZ(0,"app-modal",0)(1,"app-modal-header",1),g.ynx(2),g.SDv(3,2),g.BQk(),g.qZA(),g.TgZ(4,"app-modal-side-bar"),g.ynx(5,3),g.TgZ(6,"a",4),g.NdJ("click",function(){return Pe.toGivenNames()}),g.SDv(7,5),g.qZA(),g.BQk(),g.ynx(8,6),g.TgZ(9,"a",4),g.NdJ("click",function(){return Pe.toAlsoKnownAs()}),g.SDv(10,7),g.qZA(),g.BQk(),g.qZA(),g.TgZ(11,"app-modal-footer")(12,"button",8),g.NdJ("click",function(){return Pe.saveEvent()}),g.SDv(13,9),g.qZA(),g.TgZ(14,"button",10),g.NdJ("click",function(){return Pe.closeEvent()}),g.SDv(15,11),g.qZA()(),g.TgZ(16,"form",12),g.NdJ("ngSubmit",function(){return Pe.onSubmit()}),g.TgZ(17,"section",13)(18,"div",14)(19,"div",15)(20,"h2",16),g.ynx(21),g.SDv(22,17),g.BQk(),g.YNc(23,L,2,0,"span",18),g.qZA(),g.YNc(24,w,5,0,"p",19),g.qZA()(),g._UZ(25,"hr"),g.TgZ(26,"p",20),g.SDv(27,21),g.qZA(),g.TgZ(28,"a",22),g.SDv(29,23),g.qZA(),g.TgZ(30,"div",24)(31,"h3",25),g.SDv(32,26),g.qZA()(),g.TgZ(33,"div",15)(34,"label",27)(35,"strong"),g.SDv(36,28),g.qZA(),g.TgZ(37,"span",29),g._uU(38,"*"),g.qZA()()(),g.TgZ(39,"div",30)(40,"mat-form-field",31),g._UZ(41,"input",32),g.YNc(42,k,2,0,"mat-error",33),g.YNc(43,X,2,0,"mat-error",34),g.YNc(44,de,2,0,"mat-error",34),g.qZA()(),g.TgZ(45,"div",15)(46,"label",35)(47,"strong"),g.SDv(48,36),g.qZA()()(),g.TgZ(49,"div",30)(50,"mat-form-field",31),g._UZ(51,"input",37),g.YNc(52,re,2,0,"mat-error",33),g.YNc(53,be,2,0,"mat-error",34),g.YNc(54,pe,2,0,"mat-error",34),g.qZA()(),g.TgZ(55,"div",38)(56,"h3",39),g.SDv(57,40),g.qZA()(),g.TgZ(58,"p",41),g.SDv(59,42),g.qZA(),g.TgZ(60,"div",15)(61,"label",43)(62,"strong"),g.SDv(63,44),g.qZA()()(),g.TgZ(64,"div",30)(65,"mat-form-field",31),g._UZ(66,"input",45),g.YNc(67,$e,2,0,"mat-error",34),g.qZA()(),g.TgZ(68,"div",46)(69,"h3",39),g.SDv(70,47),g.qZA()(),g.TgZ(71,"p",41),g._uU(72),g.TgZ(73,"strong"),g._uU(74),g.ALo(75,"visibilityStringLabel"),g.qZA(),g._uU(76,". "),g.qZA(),g.TgZ(77,"div",48)(78,"div",49),g._UZ(79,"app-visibility-selector",50),g.qZA()()(),g.TgZ(80,"section",51)(81,"div",24)(82,"h2",52),g.SDv(83,53),g.qZA()(),g._UZ(84,"hr"),g.TgZ(85,"p",41),g.SDv(86,54),g.qZA(),g.YNc(87,ot,3,1,"ng-container",34),g.TgZ(88,"div",15)(89,"a",55),g.NdJ("click",function(){return Pe.addOtherName()}),g.TgZ(90,"mat-icon",56),g._uU(91,"add_circle_outline"),g.qZA(),g.TgZ(92,"span",57),g.YNc(93,Ct,2,0,"ng-container",34),g.YNc(94,De,2,0,"ng-container",34),g.qZA()()()()()()),2&Me&&(g.Q6J("loading",Pe.loadingNames),g.xp6(1),g.Q6J("closeLabel",Pe.closeAriaLabel),g.xp6(11),g.uIk("aria-label",Pe.saveAriaLabel),g.xp6(2),g.uIk("aria-label",Pe.cancelAriaLabel),g.xp6(2),g.Q6J("formGroup",Pe.namesForm),g.xp6(2),g.Q6J("ngClass",g.WLB(34,ft,!Pe.platform.columns12,Pe.platform.columns12)),g.xp6(5),g.Q6J("ngIf",!Pe.platform.columns12),g.xp6(1),g.Q6J("ngIf",Pe.platform.columns12),g.xp6(10),g.Q6J("ngClass",g.VKq(37,st,null==Pe.namesForm?null:Pe.namesForm.hasError("required","givenNames"))),g.xp6(7),g.MGl("placeholder"," ",Pe.ngOrcidAddGivenName,""),g.uIk("aria-label",Pe.inputGivenNamesAriaLabel),g.xp6(1),g.Q6J("ngIf",null==Pe.namesForm?null:Pe.namesForm.get("givenNames").hasError("required")),g.xp6(1),g.Q6J("ngIf",null==Pe.namesForm?null:Pe.namesForm.get("givenNames").hasError("illegalName")),g.xp6(1),g.Q6J("ngIf",null==Pe.namesForm?null:Pe.namesForm.get("givenNames").hasError("maxlength")),g.xp6(7),g.MGl("placeholder"," ",Pe.ngOrcidAddFamilyName,""),g.uIk("aria-label",Pe.inputFamilyNamesAriaLabel),g.xp6(1),g.Q6J("ngIf",null==Pe.namesForm?null:Pe.namesForm.get("familyName").hasError("required")),g.xp6(1),g.Q6J("ngIf",null==Pe.namesForm?null:Pe.namesForm.get("familyName").hasError("illegalName")),g.xp6(1),g.Q6J("ngIf",null==Pe.namesForm?null:Pe.namesForm.get("familyName").hasError("maxlength")),g.xp6(12),g.MGl("placeholder"," ",Pe.ngOrcidAddPublishedName,""),g.uIk("aria-label",Pe.inputPublishedNamesAriaLabel),g.xp6(1),g.Q6J("ngIf",null==Pe.namesForm?null:Pe.namesForm.get("publishedName").hasError("maxlength")),g.xp6(5),g.hij(" ",Pe.ngOrcidDefaultVisibilityLabel," "),g.xp6(2),g.Oqu(g.lcZ(75,32,Pe.publicVisibility)),g.xp6(5),g.Q6J("ariaLabelPrivate",Pe.visibilityOtherNamesPrivateAriaLabel)("ariaLabelPublic",Pe.visibilityOtherNamesPublicAriaLabel)("ariaLabelTrustedParty",Pe.visibilityOtherNamesTrustedPartyAriaLabel)("itemTitle",Pe.ariaLabelYourNames),g.xp6(3),g.Q6J("ngClass",g.WLB(39,ft,!Pe.platform.columns12,Pe.platform.columns12)),g.xp6(5),g.Q6J("ngIf",(null==Pe.otherNames?null:Pe.otherNames.length)>0),g.xp6(6),g.Q6J("ngIf",0===(null==Pe.otherNames?null:Pe.otherNames.length)),g.xp6(1),g.Q6J("ngIf",0!==(null==Pe.otherNames?null:Pe.otherNames.length)))},styles:["input[_ngcontent-%COMP%]{border:solid 1px #e3e3e3}[_ngcontent-%COMP%]::placeholder{color:#707070}[_ngcontent-%COMP%]:-ms-input-placeholder{color:#707070}.error[_ngcontent-%COMP%], .required[_ngcontent-%COMP%]{color:#d32f2f}input.mat-input-element[_ngcontent-%COMP%]{border:transparent;font-size:14px!important}","[_nghost-%COMP%]{width:100%}label[_ngcontent-%COMP%]{margin:6px 0 3px}hr.dashed-line[_ngcontent-%COMP%]{margin-bottom:0!important}h2[_ngcontent-%COMP%], h3[_ngcontent-%COMP%]{margin:6px 0} .columns-4-or-8 .mat-form-field{width:100%;margin-inline-end:auto}.other-names-list.cdk-drop-list-dragging[_ngcontent-%COMP%] .other-names-box[_ngcontent-%COMP%]:not(.cdk-drag-placeholder){transition:transform .25s cubic-bezier(0,0,.2,1)}.required[_ngcontent-%COMP%]{margin-left:3px}.required-information[_ngcontent-%COMP%]{margin-left:auto!important;margin-top:10px!important}.required-information[_ngcontent-%COMP%] span[_ngcontent-%COMP%]{margin-right:3px!important}.input-container[_ngcontent-%COMP%]{max-width:402px}.names-visibility[_ngcontent-%COMP%]{margin-bottom:18px}.other-names-input-line[_ngcontent-%COMP%]{margin-top:20px}.other-names-input-line[_ngcontent-%COMP%] img[_ngcontent-%COMP%]{margin-top:6px;cursor:move;z-index:1;margin-inline-end:18px}.other-names-input-line[_ngcontent-%COMP%] .input-container[_ngcontent-%COMP%]{max-width:366px}.other-names-input-line[_ngcontent-%COMP%] .privacy[_ngcontent-%COMP%]{width:100%}.other-names-input-line[_ngcontent-%COMP%] .privacy[_ngcontent-%COMP%] button[_ngcontent-%COMP%]{margin-left:auto}.other-names-input-line[_ngcontent-%COMP%] .selector[_ngcontent-%COMP%]{margin:0!important}.icon-drag[_ngcontent-%COMP%]{height:32px;margin:4px}.actions-wrapper[_ngcontent-%COMP%]{flex-wrap:nowrap}.mat-form-field[_ngcontent-%COMP%]{width:100%}.title[_ngcontent-%COMP%] p[_ngcontent-%COMP%]{margin:6px 0}.title[_ngcontent-%COMP%] .your-given-names[_ngcontent-%COMP%]{margin-bottom:10px}label.mat-caption[_ngcontent-%COMP%]{margin-bottom:8px}.mat-form-field[_ngcontent-%COMP%]{padding:0!important}.input-box[_ngcontent-%COMP%]{flex-grow:1}.input-box[_ngcontent-%COMP%] input[_ngcontent-%COMP%]{width:100%;height:40px;margin:4px 0;border-width:1px;border-style:solid;padding:0 12px}hr[_ngcontent-%COMP%]{margin-bottom:16px}.family-names[_ngcontent-%COMP%]{margin-top:18px}.delete[_ngcontent-%COMP%]{margin-left:auto}.other-names-wrapper[_ngcontent-%COMP%]{margin:20px 0 30px}.orcid-has-number[_ngcontent-%COMP%]{margin-bottom:0}.add-more[_ngcontent-%COMP%]{margin-top:16px}.add-more[_ngcontent-%COMP%] span[_ngcontent-%COMP%]{margin:auto;padding-left:6px} .mat-form-field-subscript-wrapper{margin-top:4px}.side-bar[_ngcontent-%COMP%]{text-decoration:underline} .columns-4-or-8 .other-names-input-line .input-container{padding-bottom:30px} .columns-4-or-8 .other-names-input-line .actions-wrapper{padding-bottom:10px;justify-content:space-between} .columns-4-or-8 .actions-wrapper{width:100%} .columns-4-or-8 .columns-4-or-8 .cdk-drag-placeholder{opacity:0}.actions-wrapper-last[_ngcontent-%COMP%] app-visibility-selector[_ngcontent-%COMP%]{margin-inline-end:16px;margin-inline-start:16px}.actions-wrapper-last[_ngcontent-%COMP%] app-visibility-selector[_ngcontent-%COMP%] .mat-icon-button[_ngcontent-%COMP%]{top:-3px}"]}),H})()},54558:(Qe,he,s)=>{"use strict";s.d(he,{L:()=>f});var a=s(27599),r=s(6666),b=s(65879),A=s(77226);const D=["workFormComponent"];function p(c,C){if(1&c){const m=b.EpF();b.TgZ(0,"button",20),b.NdJ("click",function(){b.CHM(m);const g=b.oxw();return b.KtG(g.workFormComponent.saveEvent())}),b.SDv(1,21),b.qZA()}if(2&c){const m=b.oxw();b.uIk("aria-label",m.saveAndClose)}}function E(c,C){if(1&c&&b._UZ(0,"app-work-form",22,23),2&c){const m=b.oxw();b.Q6J("work",m.work)("userRecord",m.userRecord)}}let f=(()=>{var c;class C{constructor(_,g,P,U){this._workService=_,this._dialogRef=g,this._window=P,this.data=U,this.closeLabel="Close Works",this.cancelAndClose="Cancel changes and close Works",this.saveAndClose="Save changes to Works",this.loading=!0,this.showTranslationTitle=!1}ngOnInit(){var g;let _;_=null!=(g=this.work)&&g.putCode?this._workService.getWorkInfo(this.work.putCode.value):this._workService.getWork(),_.subscribe(P=>{var U;null!=(U=this.options)&&U.createACopy&&(P.putCode=null),this.work=P,this.loading=!1})}closeEvent(){this._dialogRef.close()}toWorkDetails(){this._window.document.getElementById("work-detail").scrollIntoView()}toIdentifiers(){this._window.document.getElementById("work-identifiers").scrollIntoView()}toContributors(){this._window.document.getElementById("work-contributors").scrollIntoView()}toCitation(){this._window.document.getElementById("work-citation").scrollIntoView()}toOtherInformation(){this._window.document.getElementById("work-other-info").scrollIntoView()}toVisibility(){this._window.document.getElementById("work-visibility").scrollIntoView()}}return(c=C).\u0275fac=function(_){return new(_||c)(b.Y36(A.Y),b.Y36(a.hV),b.Y36(r.m9),b.Y36(a.eJ))},c.\u0275cmp=b.Xpm({type:c,selectors:[["app-work-modal"]],viewQuery:function(_,g){if(1&_&&b.Gf(D,5),2&_){let P;b.iGM(P=b.CRH())&&(g.workFormComponent=P.first)}},inputs:{options:"options",userRecord:"userRecord"},decls:28,vars:5,consts:function(){let m,_,g,P,U,d,q,j,K;return m="Works",_="Work details",g="Citation",P="Identifiers",U="Contributors",d="Other information",q="Visibility",j="Cancel",K="Save changes",[[3,"loading"],[3,"closeLabel"],m,["id","side-bar-title"],[1,"side-bar",3,"click"],_,["id","side-bar-url-1"],g,["id","side-bar-url-2"],P,["id","side-bar-url-3"],U,["id","side-bar-url-4"],d,["id","side-bar-url-5"],q,["mat-raised-button","","color","primary","id","save-work-button",3,"click",4,"ngIf"],["mat-stroked-button","","color","primary","id","cancel-work-button",3,"click"],j,[3,"work","userRecord",4,"ngIf"],["mat-raised-button","","color","primary","id","save-work-button",3,"click"],K,[3,"work","userRecord"],["workFormComponent",""]]},template:function(_,g){1&_&&(b.TgZ(0,"app-modal",0)(1,"app-modal-header",1),b.ynx(2),b.SDv(3,2),b.BQk(),b.qZA(),b.TgZ(4,"app-modal-side-bar"),b.ynx(5,3),b.TgZ(6,"a",4),b.NdJ("click",function(){return g.toWorkDetails()}),b.SDv(7,5),b.qZA(),b.BQk(),b.ynx(8,6),b.TgZ(9,"a",4),b.NdJ("click",function(){return g.toCitation()}),b.SDv(10,7),b.qZA(),b.BQk(),b.ynx(11,8),b.TgZ(12,"a",4),b.NdJ("click",function(){return g.toIdentifiers()}),b.SDv(13,9),b.qZA(),b.BQk(),b.ynx(14,10),b.TgZ(15,"a",4),b.NdJ("click",function(){return g.toContributors()}),b.SDv(16,11),b.qZA(),b.BQk(),b.ynx(17,12),b.TgZ(18,"a",4),b.NdJ("click",function(){return g.toOtherInformation()}),b.SDv(19,13),b.qZA(),b.BQk(),b.ynx(20,14),b.TgZ(21,"a",4),b.NdJ("click",function(){return g.toVisibility()}),b.SDv(22,15),b.qZA(),b.BQk(),b.qZA(),b.TgZ(23,"app-modal-footer"),b.YNc(24,p,2,1,"button",16),b.TgZ(25,"button",17),b.NdJ("click",function(){return g.closeEvent()}),b.SDv(26,18),b.qZA()(),b.YNc(27,E,2,2,"app-work-form",19),b.qZA()),2&_&&(b.Q6J("loading",g.loading),b.xp6(1),b.Q6J("closeLabel",g.closeLabel),b.xp6(23),b.Q6J("ngIf",g.work),b.xp6(1),b.uIk("aria-label",g.cancelAndClose),b.xp6(2),b.Q6J("ngIf",g.work&&!g.loading))},styles:["label.mat-caption[_ngcontent-%COMP%]{margin-bottom:8px}.side-bar[_ngcontent-%COMP%]{text-decoration:underline}"]}),C})()},50714:(Qe,he,s)=>{"use strict";s.d(he,{Y4:()=>Je});var a=s(72079),r=s(88419),b=s(56223),A=s(25726),D=s.n(A),p=s(51643),E=s.n(p),f=s(6666),c=s(65879),C=s(27599),m=s(45081),_=s(77226),g=s(23738);function P(rt,tt){if(1&rt){const _t=c.EpF();c.TgZ(0,"app-modal-footer")(1,"button",10),c.NdJ("click",function(){c.CHM(_t);const Ze=c.oxw();return c.KtG(Ze.saveEvent())}),c.ynx(2),c.SDv(3,11),c.BQk(),c.qZA(),c.TgZ(4,"button",12),c.NdJ("click",function(){c.CHM(_t);const Ze=c.oxw();return c.KtG(Ze.closeEvent())}),c.SDv(5,13),c.qZA()()}}function U(rt,tt){if(1&rt){const _t=c.EpF();c.TgZ(0,"div",14)(1,"input",15,16),c.NdJ("change",function(Ze){c.CHM(_t);const ot=c.oxw();return c.KtG(ot.bibTexInputChange(Ze))}),c.qZA(),c.TgZ(3,"button",17),c.NdJ("click",function(){c.CHM(_t);const Ze=c.MAs(2);return c.KtG(Ze.click())}),c.SDv(4,18),c.qZA()()}2&rt&&(c.xp6(1),c.Q6J("hidden",!0))}function d(rt,tt){1&rt&&(c.ynx(0),c.SDv(1,21),c.BQk())}function q(rt,tt){1&rt&&(c.ynx(0),c.SDv(1,22),c.BQk())}function j(rt,tt){if(1&rt&&(c.TgZ(0,"div",19)(1,"mat-error",20),c.YNc(2,d,2,0,"ng-container",2),c.YNc(3,q,2,0,"ng-container",2),c.qZA()()),2&rt){const _t=c.oxw();c.xp6(2),c.Q6J("ngIf",_t.bibtexErrorParsing),c.xp6(1),c.Q6J("ngIf",_t.bibtexErrorNoEntries)}}function K(rt,tt){if(1&rt&&(c.TgZ(0,"div",19)(1,"code"),c._uU(2),c.qZA()()),2&rt){const _t=c.oxw();c.xp6(2),c.Oqu(_t.bibtexErrorParsingText)}}function L(rt,tt){1&rt&&(c.ynx(0),c.SDv(1,27),c.BQk())}function w(rt,tt){if(1&rt&&(c.ynx(0),c._uU(1),c.ynx(2),c.SDv(3,28),c.BQk()()),2&rt){const _t=c.oxw(2);c.xp6(1),c.hij(" (",_t.selectedWorks.length,") ")}}function k(rt,tt){if(1&rt&&(c.TgZ(0,"h2",38),c._uU(1),c.qZA()),2&rt){const _t=c.oxw().$implicit;c.xp6(1),c.hij(" ",null==_t||null==_t.title?null:_t.title.value," ")}}function X(rt,tt){1&rt&&(c.TgZ(0,"span"),c._uU(1," | "),c.qZA())}function de(rt,tt){if(1&rt&&(c.TgZ(0,"p",34)(1,"span",39),c.SDv(2,40),c.qZA(),c.TgZ(3,"a",41),c._uU(4),c.qZA()()),2&rt){const _t=c.oxw().$implicit;c.xp6(3),c.s9C("href",null==_t||null==_t.url?null:_t.url.value,c.LSH),c.xp6(1),c.hij(" ",null==_t||null==_t.url?null:_t.url.value,"")}}function re(rt,tt){if(1&rt&&(c.TgZ(0,"mat-error",42),c._uU(1),c.qZA()),2&rt){const _t=c.oxw().$implicit;c.xp6(1),c.hij(" ",_t.errors," ")}}function be(rt,tt){if(1&rt){const _t=c.EpF();c.ynx(0),c.TgZ(1,"div",31)(2,"div",3)(3,"mat-checkbox",32),c.NdJ("change",function(){const ot=c.CHM(_t).$implicit,Ct=c.oxw(3);return c.KtG(Ct.updateCheck(ot))}),c.YNc(4,k,2,1,"h2",33),c.TgZ(5,"p",34),c._uU(6),c.qZA(),c.TgZ(7,"p",34),c._uU(8),c.ALo(9,"monthDayYearDateToString"),c.YNc(10,X,2,0,"span",2),c._uU(11),c.qZA(),c._UZ(12,"app-display-external-ids",35),c.YNc(13,de,5,2,"p",36),c.qZA()(),c.YNc(14,re,2,1,"mat-error",37),c.qZA(),c._UZ(15,"mat-divider",3),c.BQk()}if(2&rt){const _t=tt.$implicit;c.xp6(1),c.Q6J("formGroupName",_t.putCode.value),c.xp6(2),c.Q6J("disabled",(null==_t||null==_t.errors?null:_t.errors.length)>0),c.xp6(1),c.Q6J("ngIf",null==_t||null==_t.title?null:_t.title.value),c.xp6(2),c.hij(" ",null==_t||null==_t.journalTitle?null:_t.journalTitle.value," "),c.xp6(2),c.hij(" ",c.lcZ(9,10,null==_t?null:_t.publicationDate)," "),c.xp6(2),c.Q6J("ngIf",_t.publicationDate),c.xp6(1),c.hij(" ",null==_t||null==_t.workType?null:_t.workType.value," "),c.xp6(1),c.Q6J("externalIdentifiers",null==_t?null:_t.workExternalIdentifiers),c.xp6(1),c.Q6J("ngIf",null==_t?null:_t.url),c.xp6(1),c.Q6J("ngIf",null==_t?null:_t.errors)}}function pe(rt,tt){if(1&rt&&(c.TgZ(0,"div",29),c.YNc(1,be,16,12,"ng-container",30),c.qZA()),2&rt){const _t=c.oxw(2);c.Q6J("formGroup",_t.importForm),c.xp6(1),c.Q6J("ngForOf",_t.worksFromBibtex)}}function $e(rt,tt){if(1&rt){const _t=c.EpF();c.ynx(0),c.TgZ(1,"div",3)(2,"h3"),c.ynx(3),c.SDv(4,23),c.BQk(),c._uU(5),c.qZA(),c._UZ(6,"mat-divider",24),c.TgZ(7,"div",3)(8,"div",3)(9,"p")(10,"mat-checkbox",25),c.NdJ("change",function(){c.CHM(_t);const Ze=c.oxw();return c.KtG(Ze.updateCheckAll())})("ngModelChange",function(Ze){c.CHM(_t);const ot=c.oxw();return c.KtG(ot.selectAll=Ze)}),c.YNc(11,L,2,0,"ng-container",2),c.YNc(12,w,4,1,"ng-container",2),c.qZA()()()(),c._UZ(13,"mat-divider",3),c.YNc(14,pe,2,2,"div",26),c.qZA(),c.BQk()}if(2&rt){const _t=c.oxw();c.xp6(5),c.hij(" (",_t.worksFromBibtex.length,") "),c.xp6(5),c.Q6J("ngModel",_t.selectAll)("disabled",_t.isAnInvalidWork),c.xp6(1),c.Q6J("ngIf",0===_t.selectedWorks.length),c.xp6(1),c.Q6J("ngIf",_t.selectedWorks.length>0),c.xp6(2),c.Q6J("ngIf",_t.worksFromBibtex.length>0&&!_t.loadingWorks)}}let Je=(()=>{var rt;class tt{constructor(ze,Ze,ot,Ct,De){this.dialogRef=ze,this._snackBar=Ze,this._recordWorksService=ot,this._window=Ct,this._togglz=De,this.$destroy=new a.xQ,this.loadingWorks=!1,this.bibtexErrorParsingText="",this.bibtexErrorParsing=!1,this.bibtexErrorNoEntries=!1,this.worksFromBibtex=[],this.selectedWorks=[],this.group={},this.addedWorkCount=0,this.isAnInvalidWork=!1}ngOnInit(){}bibTexInputChange(ze){this.bibtexErrorParsingText=void 0,this.bibtexErrorParsing=!1,this.loadingWorks=!0;const Ze=ze.target.files;for(const ot of Ze){const Ct=new FileReader;Ct.readAsText(ot);const De=this;Ct.onloadend=function(ft){let st=null;try{if(st=D().toJSON(Ct.result),"string"==typeof st&&st.substring(0,5).toLowerCase().indexOf("error")>-1)De.bibtexErrorParsingText=st,De.bibtexErrorParsing=!0,De.loadingWorks=!1;else if(st){const bt=[];for(0===st.length&&(De.bibtexErrorNoEntries=!0,De.loadingWorks=!1);st.length>0;){const _e=st.shift(),H=_e.entryType.toLowerCase();"preamble"!==H&&"comment"!==H&&bt.push(De.populateWork(_e))}bt.length>0&&De._recordWorksService.worksValidate(bt).pipe((0,r.P)()).subscribe(_e=>{De.worksFromBibtex=[],_e.forEach(H=>{De.worksFromBibtex.push(H),H.errors.length>0&&!De.isAnInvalidWork&&(De.isAnInvalidWork=!0,De._snackBar.showValidationError())}),De.worksFromBibtex.forEach(H=>{const Te="new-"+De.addedWorkCount++;H.putCode={value:Te},De.group[Te]=new b.nJ({checked:new b.p4(!1)})}),De.importForm=new b.nJ(De.group),De.loadingWorks=!1})}}catch(bt){De.bibtexErrorParsingText=bt,De.bibtexErrorParsing=!0,De.loadingWorks=!1}}}}populateWork(ze){const Ze={},ot=D().toBibtex([ze]);if(Ze.citation={citation:{value:ot},citationType:{value:"bibtex"}},ze.entryType){const Ct=ze.entryType.toLowerCase();it.hasOwnProperty(Ct)&&(Ze.workCategory={value:E().decodeLatex(it[Ct][0])},Ze.workType={value:it[Ct][1]})}if(ze.entryTags){const Ct=ze.entryTags,De={};for(const ft in Ct)Ct.hasOwnProperty(ft)&&(De[ft.toLowerCase()]=Ct[ft]);if(De.hasOwnProperty("booktitle")&&(De.hasOwnProperty("title")?De.hasOwnProperty("journal")||(Ze.journalTitle={value:E().decodeLatex(De.booktitle)}):Ze.title={value:E().decodeLatex(De.booktitle)}),De.hasOwnProperty("doi")&&this.externalIdentifierId(Ze,"doi",De.doi),De.hasOwnProperty("pmid")&&this.externalIdentifierId(Ze,"pmid",De.pmid),De.hasOwnProperty("eprint")&&De.hasOwnProperty("eprinttype")&&"arxiv"===De.eprinttype&&this.externalIdentifierId(Ze,"arxiv",Ct.eprint),De.hasOwnProperty("isbn")&&this.externalIdentifierId(Ze,"isbn",De.isbn),De.hasOwnProperty("issn")&&this.externalIdentifierId(Ze,"issn",De.issn),De.hasOwnProperty("pissn")&&this.externalIdentifierId(Ze,"issn",De.pissn),De.hasOwnProperty("eissn")&&this.externalIdentifierId(Ze,"issn",De.eissn),De.hasOwnProperty("lissn")&&this.externalIdentifierId(Ze,"issn",De.lissn),De.hasOwnProperty("url")&&this.externalIdentifierId(Ze,"uri",De.url),De.hasOwnProperty("journal")&&(Ze.journalTitle={value:E().decodeLatex(De.journal)}),De.hasOwnProperty("title")&&(Ze.title={value:E().decodeLatex(De.title)}),De.hasOwnProperty("year")&&(isNaN(De.year)||(Ze.publicationDate={year:De.year.trim()})),De.hasOwnProperty("month")&&De.hasOwnProperty("year")&&!isNaN(De.year)&&""!==De.year.trim()){let ft=De.month.trim();qe.indexOf(ft.trim().substring(0,3))>=0&&(ft=qe.indexOf(ft.trim().substring(0,3))+1),!isNaN(ft)&&ft>0&&ft<=12&&(Ze.publicationDate={year:De.year.trim(),month:this.pad(ft,2)})}if(De.hasOwnProperty("url")&&(Ze.url={value:De.url}),Ze.contributorsGroupedByOrcid=[],De.hasOwnProperty("author")){const ft=this.removeEndingAnd(De.author);this.addContributors(ft.split(" and "),"author",Ze)}if(De.hasOwnProperty("editor")){const ft=this.removeEndingAnd(De.editor);this.addContributors(ft.split(" and "),"editor",Ze)}}return Ze}addContributors(ze,Ze,ot){ze.forEach(Ct=>{(Ct=E().decodeLatex(Ct).trim())&&ot.contributorsGroupedByOrcid.push({creditName:{content:Ct},rolesAndSequences:[{contributorRole:Ze,contributorSequence:null}]})})}externalIdentifierId(ze,Ze,ot){var ft,st;if(!ot)return void console.warn("Empty value for ext id: "+Ze);let Ct="self";"issn"===Ze?"book"!==ze.workType.value&&(Ct="part-of"):"isbn"===Ze&&["book","manual","report","other_output"].indexOf(ze.workType.value)<0&&(Ct="part-of");const De={externalIdentifierId:{value:ot},externalIdentifierType:{value:Ze},relationship:{value:Ct}};void 0===ze.workExternalIdentifiers?(ze.workExternalIdentifiers=[],ze.workExternalIdentifiers[0]=De):null==(null==(st=null==(ft=ze.workExternalIdentifiers[0])?void 0:ft.externalIdentifierId)?void 0:st.value)?ze.workExternalIdentifiers[0]=De:"uri"!==Ze&&ze.workExternalIdentifiers.push(De)}pad(ze,Ze){let ot=ze+"";for(;ot.length{this.selectAll&&this.selectedWorks.push(ze),this.importForm.patchValue({[ze.putCode.value]:{checked:!!this.selectAll}})})}updateCheck(ze){this.selectedWorks.some(Ze=>Ze.putCode.value===ze.putCode.value)?this.selectedWorks=this.selectedWorks.filter(Ze=>Ze.putCode.value!==ze.putCode.value):this.selectedWorks.push(ze)}saveEvent(){this.selectedWorks.length>0?(this.loadingWorks=!0,this.selectedWorks.forEach((ze,Ze)=>{ze.putCode=null,this._recordWorksService.save(ze,Ze!==this.selectedWorks.length-1).subscribe(()=>{Ze===this.selectedWorks.length-1&&(this.loadingWorks=!1,this.worksFromBibtex=[],this.closeEvent())})})):this._snackBar.showValidationError("You haven\u2019t selected any items to import.","Please review and fix the issue")}displayBackendError(ze){this._snackBar.showValidationError(ze,"Please review and fix the issue")}getCreditNameFromUserRecord(){var Ct,De,ft,st,bt,_e,H,Te,Me;const ze=null==(ft=null==(De=null==(Ct=this.userRecord)?void 0:Ct.names)?void 0:De.creditName)?void 0:ft.value,Ze=null==(_e=null==(bt=null==(st=this.userRecord)?void 0:st.names)?void 0:bt.givenNames)?void 0:_e.value,ot=null==(Me=null==(Te=null==(H=this.userRecord)?void 0:H.names)?void 0:Te.familyName)?void 0:Me.value;return ze||(ot?`${Ze} ${ot}`:Ze)}removeEndingAnd(ze){return ze.endsWith(" and")&&(ze=ze.substring(0,ze.length-4)),ze}closeEvent(){this.dialogRef.close()}ngOnDestroy(){this.$destroy.next(!0),this.$destroy.unsubscribe()}}return(rt=tt).\u0275fac=function(ze){return new(ze||rt)(c.Y36(C.hV),c.Y36(m.o),c.Y36(_.Y),c.Y36(f.m9),c.Y36(g.b))},rt.\u0275cmp=c.Xpm({type:rt,selectors:[["app-work-doi-bibtex-modal"]],inputs:{userRecord:"userRecord"},decls:15,vars:7,consts:function(){let _t,ze,Ze,ot,Ct,De,ft,st,bt,_e,H,Te;return _t="Works - Import BibTeX",ze="Import citations from BibTex (.bib) files, including files exported from Google Scholar.",Ze="More information on importing BibTeX files into ORCID",ot="Import works to your record",Ct="Cancel",De="Choose BibTeX file to import",ft="This file cannot be read. Please check the BibTeX formatting and try again.",st="Error parsing Bibtex. No Bibtex entries found in file",bt="Works found in BibTeX",_e="Select all",H="Selected",Te="URL:",[[3,"loading","noSidebar"],_t,[4,"ngIf"],[1,"row"],[1,"orc-font-small-print"],ze,["href","https://support.orcid.org/hc/en-us/articles/360006894794-Importing-works-from-a-BibTeX-file","rel","noopener noreferrer","target","_blank",1,"underline"],Ze,["class","col l6 choose-bibtex",4,"ngIf"],["class","row bibtex-error",4,"ngIf"],["mat-raised-button","","color","primary","id","cy-import-works",3,"click"],ot,["mat-stroked-button","","color","primary","id","cancel-button",3,"click"],Ct,[1,"col","l6","choose-bibtex"],["type","file","onclick","this.value=null","accept",".bib",3,"hidden","change"],["bibTexInput",""],["mat-raised-button","","color","primary",3,"click"],De,[1,"row","bibtex-error"],[1,"mat-caption"],ft,st,bt,[1,"row","orcid-divider"],[3,"ngModel","disabled","change","ngModelChange"],["class","row",3,"formGroup",4,"ngIf"],_e,H,[1,"row",3,"formGroup"],[4,"ngFor","ngForOf"],[1,"row","work-info",3,"formGroupName"],["formControlName","checked",3,"disabled","change"],["class","orc-font-body",4,"ngIf"],[1,"orc-font-body-small"],[3,"externalIdentifiers"],["class","orc-font-body-small",4,"ngIf"],["class","bibtex-error mat-caption",4,"ngIf"],[1,"orc-font-body"],[1,"prefixTitle"],Te,["target","_blank",3,"href"],[1,"bibtex-error","mat-caption"]]},template:function(ze,Ze){1&ze&&(c.TgZ(0,"app-modal",0)(1,"app-modal-header"),c.ynx(2),c.SDv(3,1),c.BQk(),c.qZA(),c.YNc(4,P,6,0,"app-modal-footer",2),c.TgZ(5,"div",3)(6,"div",4)(7,"p"),c.SDv(8,5),c.qZA(),c.TgZ(9,"a",6),c.SDv(10,7),c.qZA()()(),c.YNc(11,U,5,1,"div",8),c.YNc(12,j,4,2,"div",9),c.YNc(13,K,3,1,"div",9),c.YNc(14,$e,15,6,"ng-container",2),c.qZA()),2&ze&&(c.Q6J("loading",Ze.loadingWorks)("noSidebar",!0),c.xp6(4),c.Q6J("ngIf",Ze.worksFromBibtex.length>0&&!Ze.loadingWorks),c.xp6(7),c.Q6J("ngIf",0===Ze.worksFromBibtex.length),c.xp6(1),c.Q6J("ngIf",Ze.bibtexErrorParsing||Ze.bibtexErrorNoEntries),c.xp6(1),c.Q6J("ngIf",Ze.bibtexErrorParsing),c.xp6(1),c.Q6J("ngIf",Ze.worksFromBibtex.length>0&&!Ze.loadingWorks))},styles:[".choose-bibtex[_ngcontent-%COMP%]{padding:0;margin-top:16px;margin-bottom:6px}.choose-bibtex[_ngcontent-%COMP%] button[_ngcontent-%COMP%]{min-width:237px}.work-info[_ngcontent-%COMP%]{margin-bottom:16px;width:100%;word-break:break-word}.work-info[_ngcontent-%COMP%] div[_ngcontent-%COMP%]{word-break:break-word}.work-info[_ngcontent-%COMP%] div[_ngcontent-%COMP%] h2[_ngcontent-%COMP%]{width:48em;overflow:hidden;text-overflow:ellipsis;margin-bottom:0}.work-info[_ngcontent-%COMP%] div[_ngcontent-%COMP%] p[_ngcontent-%COMP%]{margin:0}.work-info[_ngcontent-%COMP%] div[_ngcontent-%COMP%] .mat-checkbox-inner-container{margin:0 8px 0 0!important}.work-info[_ngcontent-%COMP%] div[_ngcontent-%COMP%] .details[_ngcontent-%COMP%]{margin-left:24px}.work-info[_ngcontent-%COMP%] div[_ngcontent-%COMP%] .added[_ngcontent-%COMP%]{margin-left:16px}.no-info[_ngcontent-%COMP%]{display:flex;margin-top:20px;align-items:center}.no-info[_ngcontent-%COMP%] mat-icon[_ngcontent-%COMP%]{margin-inline-end:4px}.bibtex-error[_ngcontent-%COMP%]{margin:6px 2px}.bibtex-error[_ngcontent-%COMP%] code[_ngcontent-%COMP%]{border-radius:3px;padding:6px}","code[_ngcontent-%COMP%]{background-color:#eee}"]}),tt})();const qe=["jan","feb","mar","apr","may","jun","jul","aug","sep","oct","nov","dec"],it={article:["publication","journal-article"],book:["publication","book"],booklet:["other_output","other"],conference:["conference","conference-paper"],inbook:["publication","book-chapter"],incollection:["publication","book-chapter"],inproceedings:["conference","conference-paper"],manual:["publication","manual"],mastersthesis:["publication","supervised-student-publication"],misc:["other_output","other"],phdthesis:["publication","dissertation-thesis"],proceedings:["conference","conference-paper"],techreport:["publication","report"],unpublished:["other_output","other"]}},67022:(Qe,he,s)=>{"use strict";s.d(he,{S:()=>be});var a=s(72079),r=s(88419),b=s(56223),A=s(34221),D=s(6666),p=s(65879),E=s(27599),f=s(77226);const c=["workFormComponent"],C=["externalIdRef"];function m(pe,$e){1&pe&&(p.ynx(0),p.SDv(1,4),p.BQk())}function _(pe,$e){1&pe&&(p.ynx(0),p.SDv(1,5),p.BQk())}function g(pe,$e){if(1&pe){const Je=p.EpF();p.TgZ(0,"app-modal-side-bar"),p.ynx(1,6),p.TgZ(2,"a",7),p.NdJ("click",function(){p.CHM(Je);const it=p.oxw();return p.KtG(it.toWorkDetails())}),p.SDv(3,8),p.qZA(),p.BQk(),p.ynx(4,9),p.TgZ(5,"a",10),p.NdJ("click",function(){p.CHM(Je);const it=p.oxw();return p.KtG(it.toCitation())}),p.SDv(6,11),p.qZA(),p.BQk(),p.ynx(7,12),p.TgZ(8,"a",13),p.NdJ("click",function(){p.CHM(Je);const it=p.oxw();return p.KtG(it.toIdentifiers())}),p.SDv(9,14),p.qZA(),p.BQk(),p.ynx(10,15),p.TgZ(11,"a",16),p.NdJ("click",function(){p.CHM(Je);const it=p.oxw();return p.KtG(it.toContributors())}),p.SDv(12,17),p.qZA(),p.BQk(),p.ynx(13,18),p.TgZ(14,"a",19),p.NdJ("click",function(){p.CHM(Je);const it=p.oxw();return p.KtG(it.toOtherInformation())}),p.SDv(15,20),p.qZA(),p.BQk(),p.ynx(16,21),p.TgZ(17,"a",16),p.NdJ("click",function(){p.CHM(Je);const it=p.oxw();return p.KtG(it.toVisibility())}),p.SDv(18,22),p.qZA(),p.BQk(),p.qZA()}}function P(pe,$e){if(1&pe){const Je=p.EpF();p.TgZ(0,"app-modal-footer")(1,"button",23),p.NdJ("click",function(){p.CHM(Je);const it=p.oxw();return p.KtG(it.workFormComponent.saveEvent())}),p.SDv(2,24),p.qZA(),p.TgZ(3,"button",25),p.NdJ("click",function(){p.CHM(Je);const it=p.oxw();return p.KtG(it.closeEvent())}),p.SDv(4,26),p.qZA()()}}function U(pe,$e){1&pe&&(p.ynx(0),p.SDv(1,37),p.BQk())}function d(pe,$e){1&pe&&(p.ynx(0),p.SDv(1,38),p.BQk())}function q(pe,$e){1&pe&&(p.ynx(0),p.SDv(1,39),p.BQk())}function j(pe,$e){1&pe&&(p.ynx(0),p.SDv(1,40),p.BQk())}function K(pe,$e){1&pe&&(p.TgZ(0,"mat-error"),p.SDv(1,41),p.qZA())}function L(pe,$e){1&pe&&(p.TgZ(0,"mat-error"),p.SDv(1,42),p.qZA())}function w(pe,$e){1&pe&&(p.ynx(0),p.SDv(1,43),p.BQk())}function k(pe,$e){1&pe&&(p.ynx(0),p.SDv(1,44),p.BQk())}const X=function(pe){return{"two-line-hint":pe}};function de(pe,$e){if(1&pe){const Je=p.EpF();p.TgZ(0,"form",27)(1,"div",28)(2,"div",29)(3,"p"),p.YNc(4,U,2,0,"ng-container",1),p.YNc(5,d,2,0,"ng-container",1),p.qZA()()(),p.TgZ(6,"div",28)(7,"label",30)(8,"strong"),p.YNc(9,q,2,0,"ng-container",1),p.YNc(10,j,2,0,"ng-container",1),p.qZA()()(),p.TgZ(11,"div",31)(12,"mat-form-field",32),p._UZ(13,"input",33,34),p.YNc(15,K,2,0,"mat-error",1),p.YNc(16,L,2,0,"mat-error",1),p.qZA()(),p.TgZ(17,"div",35)(18,"button",36),p.NdJ("click",function(){p.CHM(Je);const it=p.oxw();return p.KtG(it.retrieveWork())}),p.YNc(19,w,2,0,"ng-container",1),p.YNc(20,k,2,0,"ng-container",1),p.qZA()()()}if(2&pe){const Je=p.oxw();let qe;p.Q6J("formGroup",Je.externalIdentifierForm),p.xp6(4),p.Q6J("ngIf",Je.type===Je.EXTERNAL_ID_TYPE_WORK.doi),p.xp6(1),p.Q6J("ngIf",Je.type===Je.EXTERNAL_ID_TYPE_WORK.pubMed),p.xp6(4),p.Q6J("ngIf",Je.type===Je.EXTERNAL_ID_TYPE_WORK.doi),p.xp6(1),p.Q6J("ngIf",Je.type===Je.EXTERNAL_ID_TYPE_WORK.pubMed),p.xp6(2),p.Q6J("ngClass",p.VKq(12,X,Je.metadataNotFound)),p.xp6(3),p.Q6J("ngIf",Je.type===Je.EXTERNAL_ID_TYPE_WORK.doi&&(null==Je.externalIdentifierForm||null==(qe=Je.externalIdentifierForm.get("externalId"))||null==qe.errors?null:qe.errors.pattern)),p.xp6(1),p.Q6J("ngIf",Je.metadataNotFound),p.xp6(2),p.s9C("id","cy-retrieve-work-details-from-"+Je.type),p.Q6J("disabled",Je.loading),p.xp6(1),p.Q6J("ngIf",Je.type===Je.EXTERNAL_ID_TYPE_WORK.doi),p.xp6(1),p.Q6J("ngIf",Je.type===Je.EXTERNAL_ID_TYPE_WORK.pubMed)}}function re(pe,$e){if(1&pe&&p._UZ(0,"app-work-form",45,46),2&pe){const Je=p.oxw();p.Q6J("work",Je.work)("userRecord",Je.userRecord)("externalIdentifier",!0)}}let be=(()=>{var pe;class $e{constructor(qe,it,rt,tt){this.dialogRef=qe,this._formBuilder=it,this._recordWorksService=rt,this._window=tt,this.$destroy=new a.xQ,this.EXTERNAL_ID_TYPE_WORK=A.mp,this.loading=!1,this.metadataNotFound=!1}ngOnInit(){this.externalIdentifierForm=this._formBuilder.group({externalId:new b.p4("")}),this.type===A.mp.doi&&this.externalIdentifierForm.controls.externalId.setValidators([b.kI.pattern(A.Oe)])}ngAfterViewInit(){this.externalIdElement.nativeElement.focus()}retrieveWork(){this.externalIdentifierForm.valid&&(this.loading=!0,this._recordWorksService.loadExternalId(this.externalIdentifierForm.get("externalId").value,this.type).pipe((0,r.P)()).subscribe(qe=>{qe?this.work=qe:(this.externalIdentifierForm.get("externalId").setErrors({metadataNotFound:!0}),this.metadataNotFound=!0),this.loading=!1}))}closeEvent(){this.dialogRef.close()}ngOnDestroy(){this.$destroy.next(!0),this.$destroy.unsubscribe()}toWorkDetails(){this._window.document.getElementById("work-detail").scrollIntoView()}toIdentifiers(){this._window.document.getElementById("work-identifiers").scrollIntoView()}toContributors(){this._window.document.getElementById("work-contributors").scrollIntoView()}toCitation(){this._window.document.getElementById("work-citation").scrollIntoView()}toOtherInformation(){this._window.document.getElementById("work-other-info").scrollIntoView()}toVisibility(){this._window.document.getElementById("work-visibility").scrollIntoView()}}return(pe=$e).\u0275fac=function(qe){return new(qe||pe)(p.Y36(E.hV),p.Y36(b.QS),p.Y36(f.Y),p.Y36(D.m9))},pe.\u0275cmp=p.Xpm({type:pe,selectors:[["app-work-doi-modal"]],viewQuery:function(qe,it){if(1&qe&&(p.Gf(c,5),p.Gf(C,5)),2&qe){let rt;p.iGM(rt=p.CRH())&&(it.workFormComponent=rt.first),p.iGM(rt=p.CRH())&&(it.externalIdElement=rt.first)}},inputs:{userRecord:"userRecord",type:"type"},decls:8,vars:8,consts:function(){let Je,qe,it,rt,tt,_t,ze,Ze,ot,Ct,De,ft,st,bt,_e,H,Te,Me;return Je="Works - Add work from DOI",qe="Works - Add work from PubMed",it="Work details",rt="Citation",tt="Identifiers",_t="Contributors",ze="Other information",Ze="Visibility",ot="Add this work to your ORCID record",Ct="Cancel",De="You can use the full DOI URL or just the identifier value.",ft="Type or paste the full PubMed URL or just the identifier value",st="DOI identifier value or full URL",bt="PubMed identifier value or full URL",_e="Invalid id for the selected identifier type",H="Unable to import using this identifier. Please add work using a different option.",Te="Retrieve work details from DOI",Me="Retrieve work details from PubMed",[[3,"loading","noSidebar"],[4,"ngIf"],[3,"formGroup",4,"ngIf"],[3,"work","userRecord","externalIdentifier",4,"ngIf"],Je,qe,["id","side-bar-title"],["id","cy-external-id-to-work-details",1,"side-bar",3,"click"],it,["id","side-bar-url-1"],["id","cy-external-id-to-citation",1,"side-bar",3,"click"],rt,["id","side-bar-url-2"],["id","cy-external-id-to-identifiers",1,"side-bar",3,"click"],tt,["id","side-bar-url-3"],[1,"side-bar",3,"click"],_t,["id","side-bar-url-4"],["id","cy-external-id-to-other-info",1,"side-bar",3,"click"],ze,["id","side-bar-url-5"],Ze,["mat-raised-button","","color","primary","id","save-work-button",3,"click"],ot,["mat-stroked-button","","color","primary","id","cancel-work-button",3,"click"],Ct,[3,"formGroup"],[1,"row"],[1,"orc-font-small-print"],["for","external-id-input",1,"mat-caption"],[1,"input-container"],["appearance","outline",1,"mat-form-field-min",3,"ngClass"],["id","external-id-input","matInput","","formControlName","externalId"],["externalIdRef",""],[1,"retrieve-work"],["mat-raised-button","","color","primary",3,"disabled","id","click"],De,ft,st,bt,_e,H,Te,Me,[3,"work","userRecord","externalIdentifier"],["workFormComponent",""]]},template:function(qe,it){1&qe&&(p.TgZ(0,"app-modal",0)(1,"app-modal-header"),p.YNc(2,m,2,0,"ng-container",1),p.YNc(3,_,2,0,"ng-container",1),p.qZA(),p.YNc(4,g,19,0,"app-modal-side-bar",1),p.YNc(5,P,5,0,"app-modal-footer",1),p.YNc(6,de,21,14,"form",2),p.YNc(7,re,2,3,"app-work-form",3),p.qZA()),2&qe&&(p.Q6J("loading",it.loading)("noSidebar",!(it.work&&!it.loading)),p.xp6(2),p.Q6J("ngIf",it.type===it.EXTERNAL_ID_TYPE_WORK.doi),p.xp6(1),p.Q6J("ngIf",it.type===it.EXTERNAL_ID_TYPE_WORK.pubMed),p.xp6(1),p.Q6J("ngIf",it.work&&!it.loading),p.xp6(1),p.Q6J("ngIf",it.work),p.xp6(1),p.Q6J("ngIf",!it.work),p.xp6(1),p.Q6J("ngIf",it.work&&!it.loading))},styles:[".input-container[_ngcontent-%COMP%]{max-width:500px}.input-container[_ngcontent-%COMP%] .mat-form-field-wrapper{padding-bottom:25px!important}.mat-form-field[_ngcontent-%COMP%]{width:100%}.retrieve-work[_ngcontent-%COMP%]{padding:0}.retrieve-work[_ngcontent-%COMP%] button[_ngcontent-%COMP%]{max-width:500px}"]}),$e})()},81981:(Qe,he,s)=>{"use strict";s.d(he,{z:()=>C});var a=s(72079),r=s(19352),b=s(6990),D=s(65879),p=s(27599),E=s(77226);function f(m,_){if(1&m&&(D.TgZ(0,"mat-option",22),D._uU(1),D.qZA()),2&m){const g=_.$implicit;D.Q6J("value",g),D.xp6(1),D.hij(" ",g," ")}}function c(m,_){if(1&m&&(D.TgZ(0,"mat-option",22),D._uU(1),D.qZA()),2&m){const g=_.$implicit;D.Q6J("value",g),D.xp6(1),D.hij(" ",g," ")}}let C=(()=>{var m;class _{constructor(P,U){this.dialogRef=P,this._recordWorksService=U,this.$destroy=new a.xQ,this.loadingWorks=!0,this.workTypes=[],this.geographicalAreas=[],this.workTypeSelected="All",this.geographicalAreaSelected="All",this.total=0}ngOnInit(){this.loadWorkImportWizardList()}loadWorkImportWizardList(){this._recordWorksService.loadWorkImportWizardList().pipe((0,r.R)(this.$destroy)).subscribe(P=>{this.recordImportWizardsOriginal=(0,b.sortBy)(P,"name"),this.recordImportWizards=this.recordImportWizardsOriginal,P.forEach(U=>{U.actTypes.forEach(d=>{this.workTypes.includes(d)||this.workTypes.push(d)}),U.geoAreas.forEach(d=>{this.geographicalAreas.includes(d)||this.geographicalAreas.push(d)})}),this.loadingWorks=!1,this.total=this.recordImportWizardsOriginal.length})}searchAndLink(){this.recordImportWizards=[],this.recordImportWizardsOriginal.forEach(P=>{"All"===this.workTypeSelected&&"All"===this.geographicalAreaSelected?this.recordImportWizards=this.recordImportWizardsOriginal:("All"===this.workTypeSelected&&P.geoAreas.includes(this.geographicalAreaSelected)||"All"===this.geographicalAreaSelected&&P.actTypes.includes(this.workTypeSelected)||P.actTypes.includes(this.workTypeSelected)&&P.geoAreas.includes(this.geographicalAreaSelected))&&this.recordImportWizards.push(P)}),this.total=this.recordImportWizards.length}ngOnDestroy(){this.$destroy.next(!0),this.$destroy.unsubscribe()}}return(m=_).\u0275fac=function(P){return new(P||m)(D.Y36(p.hV),D.Y36(E.Y))},m.\u0275cmp=D.Xpm({type:m,selectors:[["app-modal-works-search-link"]],decls:40,vars:8,consts:function(){let g,P,U,d,q,j,K,L;return g="Link works",P="Search and Link wizards are our recommended way to populate your record. They make adding works, funding and peer reviews simple and save you time over updating your record manually. Select a platform from the list below to start linking items to your record.",U="More information about linking works to your ORCID record",d="Available Search & Link wizards",q="Work type",j="All",K="Geographical area",L="All",[[3,"loading","noSidebar"],g,[1,"row"],[1,"orc-font-small-print"],P,["rel","noopener noreferrer","target","_blank","href","https://support.orcid.org/hc/en-us/articles/360006973653-Add-works-by-direct-import-from-other-systems","target","_blank","rel","noopener noreferrer",1,"underline"],U,d,[1,"row","search-link-options"],[1,"select"],[1,"title"],[1,"mat-caption"],q,["appearance","outline",1,"mat-form-field-min","search-link-select"],[3,"value","valueChange","selectionChange"],["value","All"],j,[3,"value",4,"ngFor","ngForOf"],K,["id","geographical-area-input","appearance","outline",1,"mat-form-field-min","search-link-select"],L,[3,"recordImportWizards"],[3,"value"]]},template:function(P,U){1&P&&(D.TgZ(0,"app-modal",0)(1,"app-modal-header"),D.ynx(2),D.SDv(3,1),D.BQk(),D.qZA(),D.TgZ(4,"div",2)(5,"div",3)(6,"p"),D.SDv(7,4),D.qZA(),D.TgZ(8,"a",5),D.SDv(9,6),D.qZA()()(),D.TgZ(10,"div",2)(11,"h3"),D.ynx(12),D.SDv(13,7),D.BQk(),D._uU(14),D.qZA(),D._UZ(15,"hr"),D.qZA(),D.TgZ(16,"div",8)(17,"div",9)(18,"div",10)(19,"label",11)(20,"strong"),D.SDv(21,12),D.qZA()()(),D.TgZ(22,"mat-form-field",13)(23,"mat-select",14),D.NdJ("valueChange",function(q){return U.workTypeSelected=q})("selectionChange",function(){return U.searchAndLink()}),D.TgZ(24,"mat-option",15),D.ynx(25),D.SDv(26,16),D.BQk(),D.qZA(),D.YNc(27,f,2,2,"mat-option",17),D.qZA()()(),D.TgZ(28,"div",9)(29,"div",10)(30,"label",11)(31,"strong"),D.SDv(32,18),D.qZA()()(),D.TgZ(33,"mat-form-field",19)(34,"mat-select",14),D.NdJ("valueChange",function(q){return U.geographicalAreaSelected=q})("selectionChange",function(){return U.searchAndLink()}),D.TgZ(35,"mat-option",15),D.ynx(36),D.SDv(37,20),D.BQk(),D.qZA(),D.YNc(38,c,2,2,"mat-option",17),D.qZA()()()(),D._UZ(39,"app-search-link-wizard",21),D.qZA()),2&P&&(D.Q6J("loading",U.loadingWorks)("noSidebar",!0),D.xp6(14),D.hij(" (",U.total,") "),D.xp6(9),D.Q6J("value",U.workTypeSelected),D.xp6(4),D.Q6J("ngForOf",U.workTypes),D.xp6(7),D.Q6J("value",U.geographicalAreaSelected),D.xp6(4),D.Q6J("ngForOf",U.geographicalAreas),D.xp6(1),D.Q6J("recordImportWizards",U.recordImportWizards))},styles:["h3[_ngcontent-%COMP%]{margin:32px 0 8px}.search-link-options[_ngcontent-%COMP%]{justify-content:space-between}.search-link-options[_ngcontent-%COMP%] .select[_ngcontent-%COMP%]{width:calc(50% - 40px)}.search-link-options[_ngcontent-%COMP%] .title[_ngcontent-%COMP%]{margin:5px 0}.search-link-options[_ngcontent-%COMP%] mat-form-field[_ngcontent-%COMP%]{width:100%}.search-link-options[_ngcontent-%COMP%] .search-link-select[_ngcontent-%COMP%] .mat-form-field-wrapper{padding-bottom:1em!important}"]}),_})()},65166:(Qe,he,s)=>{"use strict";function a(E){return f=>{const c=f.get(E+"Year").value,C=f.get(E+"Month").value,m=f.get(E+"Day").value;if(!c&&!C&&!m)return null;let _;return c&&!C&&!m&&(_=new Date(c)),c&&C&&!m&&(_=new Date(c+"-"+(C<10?"0"+C:C))),c&&C&&m?(_=new Date(c,C-1,m),_.getFullYear()===c&&_.getMonth()===C-1&&_.getDate()===m?null:{date:!0}):_&&!isNaN(_.getTime())?null:{date:!0}}}function r(E){return f=>{const c=f.get(E+"Year").value,C=f.get(E+"Month").value;if(!c&&!C)return null;let m;return c&&!C&&(m=new Date(c)),c&&C&&(m=new Date(c+"-"+(C<10?"0"+C:C))),m&&!isNaN(m.getTime())?null:{date:!0}}}function b(){return E=>{const f=Object.keys(E.get("endDateGroup").errors||{}),c=Object.keys(E.get("startDateGroup").errors||{});if(f.length||c.length)return null;const C=E.get("endDateGroup.endDateYear").value;let m=E.get("endDateGroup.endDateMonth").value;const _=E.get("startDateGroup.startDateYear").value;let g=E.get("startDateGroup.startDateMonth").value;if(!C||!_)return null;g||(g=1),m||(m=12);const P=D(_,C,g,m);return m&&!g&&_&&C&&_===C||P.endDate{const f=Object.keys(E.get("endDateGroup").errors||{}),c=Object.keys(E.get("startDateGroup").errors||{});if(f.length||c.length)return null;const C=E.get("endDateGroup.endDateYear").value;let m=E.get("endDateGroup.endDateMonth").value,_=E.get("endDateGroup.endDateDay").value;const g=E.get("startDateGroup.startDateYear").value;let P=E.get("startDateGroup.startDateMonth").value,U=E.get("startDateGroup.startDateDay").value;if(!C||!g)return null;P||(P=1),U||(U=1),m||(m=12),_||(_=31);const d=D(g,C,P,m,U,_);return m&&!P&&g&&C&&g===C||_&&!U&&g&&C&&m&&_&&g===C&&m===_||d.endDateb,am:()=>r,h:()=>A,sm:()=>a})},2780:(Qe,he,s)=>{"use strict";function a({value:r}){const b=null==r?void 0:r.translatedTitleContent,A=null==r?void 0:r.translatedTitleLanguage;return b&&!A?{invalidTranslatedTitleLanguage:!0}:!b&&A?{invalidTranslatedTitleContent:!0}:null}s.d(he,{B:()=>a})},42679:(Qe,he,s)=>{"use strict";s.d(he,{$6:()=>a,UF:()=>A,c4:()=>b,dw:()=>r});var a=function(D){return D.EMPLOYMENT="EMPLOYMENT",D.EDUCATION="EDUCATION",D.QUALIFICATION="QUALIFICATION",D.INVITED_POSITION="INVITED_POSITION",D.DISTINCTION="DISTINCTION",D.MEMBERSHIP="MEMBERSHIP",D.SERVICE="SERVICE",D}(a||{}),r=function(D){return D.EMPLOYMENT="EMPLOYMENT",D.EDUCATION_AND_QUALIFICATION="EDUCATION_AND_QUALIFICATION",D.INVITED_POSITION_AND_DISTINCTION="INVITED_POSITION_AND_DISTINCTION",D.MEMBERSHIP_AND_SERVICE="MEMBERSHIP_AND_SERVICE",D.PROFESSIONAL_ACTIVITIES="PROFESSIONAL_ACTIVITIES",D}(r||{}),b=function(D){return D.employment="employment",D.education="education",D.qualification="qualification",D["invited-position"]="invited-position",D.distinction="distinction",D.membership="membership",D.service="service",D["professional-activities"]="professional-activities",D}(b||{});const A={[b.employment]:"Employment",[b.education]:"Education",[b.qualification]:"Qualification",[b["invited-position"]]:"Invited position",[b.distinction]:"Distinction",[b.membership]:"Membership",[b.service]:"Service"}},3471:(Qe,he,s)=>{"use strict";s.d(he,{Do:()=>r,G_:()=>f,TN:()=>D,Wy:()=>E,gL:()=>b,it:()=>p,mv:()=>a,xV:()=>A});var a=function(c){return c.award="award",c.contract="contract",c.grant="grant",c.salary_award="salary-award",c}(a||{});const r={[a.award]:"Award",[a.contract]:"Contract",[a.grant]:"Grant",[a.salary_award]:"Salary award"};var b=function(c){return c.self="self",c["part-of"]="part-of",c}(b||{});const A={self:"Self","part-of":"Part of"},D={self:"The identifier applies to the funding award itself.","part-of":"The identifier applies to the larger award of which the project is part."};var p=function(c){return c.grant_number="grant_number",c}(p||{});const E={ab:"Abkhazian",aa:"Afar",af:"Afrikaans",ak:"Akan",sq:"Albanian",am:"Amharic",ar:"Arabic",an:"Aragonese",hy:"Armenian",as:"Assamese",av:"Avaric",ae:"Avestan",ay:"Aymara",az:"Azerbaijani",bm:"Bambara",bn:"Bangla",ba:"Bashkir",eu:"Basque",be:"Belarusian",bh:"Bihari",bi:"Bislama",bs:"Bosnian",br:"Breton",bg:"Bulgarian",my:"Burmese",ca:"Catalan",ch:"Chamorro",ce:"Chechen",zh_CN:"Chinese (simplified)",zh_TW:"Chinese (traditional)",cu:"Church Slavic",cv:"Chuvash",kw:"Cornish",co:"Corsican",cr:"Cree",hr:"Croatian",cs:"Czech",da:"Danish",dv:"Divehi",nl:"Dutch",dz:"Dzongkha",en:"English",eo:"Esperanto",et:"Estonian",ee:"Ewe",fo:"Faroese",fj:"Fijian",fi:"Finnish",fr:"French",ff:"Fulah",gl:"Galician",lg:"Ganda",ka:"Georgian",de:"German",el:"Greek",gn:"Guarani",gu:"Gujarati",ht:"Haitian Creole",ha:"Hausa",iw:"Hebrew",hz:"Herero",hi:"Hindi",ho:"Hiri Motu",hu:"Hungarian",is:"Icelandic",io:"Ido",ig:"Igbo",in:"Indonesian",ia:"Interlingua",ie:"Interlingue",iu:"Inuktitut",ik:"Inupiaq",ga:"Irish",it:"Italian",ja:"Japanese",jv:"Javanese",kl:"Kalaallisut",kn:"Kannada",kr:"Kanuri",ks:"Kashmiri",kk:"Kazakh",km:"Khmer",ki:"Kikuyu",rw:"Kinyarwanda",kv:"Komi",kg:"Kongo",ko:"Korean",kj:"Kuanyama",ku:"Kurdish",ky:"Kyrgyz",lo:"Lao",la:"Latin",lv:"Latvian",li:"Limburgish",ln:"Lingala",lt:"Lithuanian",lu:"Luba-Katanga",lb:"Luxembourgish",mk:"Macedonian",mg:"Malagasy",ms:"Malay",ml:"Malayalam",mt:"Maltese",gv:"Manx",mi:"Maori",mr:"Marathi",mh:"Marshallese",mo:"Moldavian",mn:"Mongolian",na:"Nauru",nv:"Navajo",ng:"Ndonga",ne:"Nepali",nd:"North Ndebele",se:"Northern Sami",no:"Norwegian",nb:"Norwegian Bokm\xe5l",nn:"Norwegian Nynorsk",ny:"Nyanja",oc:"Occitan",or:"Odia",oj:"Ojibwa",om:"Oromo",os:"Ossetic",pi:"Pali",ps:"Pashto",fa:"Persian",pl:"Polish",pt:"Portuguese",pa:"Punjabi",qu:"Quechua",ro:"Romanian",rm:"Romansh",rn:"Rundi",ru:"Russian",sm:"Samoan",sg:"Sango",sa:"Sanskrit",sc:"Sardinian",gd:"Scottish Gaelic",sr:"Serbian",sn:"Shona",ii:"Sichuan Yi",sd:"Sindhi",si:"Sinhala",sk:"Slovak",sl:"Slovenian",so:"Somali",nr:"South Ndebele",st:"Southern Sotho",es:"Spanish",su:"Sundanese",sw:"Swahili",ss:"Swati",sv:"Swedish",tl:"Tagalog",ty:"Tahitian",tg:"Tajik",ta:"Tamil",tt:"Tatar",te:"Telugu",th:"Thai",bo:"Tibetan",ti:"Tigrinya",to:"Tongan",ts:"Tsonga",tn:"Tswana",tr:"Turkish",tk:"Turkmen",tw:"Twi",uk:"Ukrainian",ur:"Urdu",ug:"Uyghur",uz:"Uzbek",ve:"Venda",vi:"Vietnamese",vo:"Volap\xfck",wa:"Walloon",cy:"Welsh",fy:"Western Frisian",wo:"Wolof",xh:"Xhosa",ji:"Yiddish",yo:"Yoruba",za:"Zhuang",zu:"Zulu"},f={ADP:"ADP",AED:"AED",AFA:"AFA",AFN:"AFN",ALL:"ALL",AMD:"AMD",ANG:"ANG",AOA:"AOA",ARS:"ARS",ATS:"ATS",AUD:"AUD",AWG:"AWG",AYM:"AYM",AZM:"AZM",AZN:"AZN",BAM:"BAM",BBD:"BBD",BDT:"BDT",BEF:"BEF",BGL:"BGL",BGN:"BGN",BHD:"BHD",BIF:"BIF",BMD:"BMD",BND:"BND",BOB:"BOB",BOV:"BOV",BRL:"BRL",BSD:"BSD",BTN:"BTN",BWP:"BWP",BYB:"BYB",BYN:"BYN",BYR:"BYR",BZD:"BZD",CAD:"CAD",CDF:"CDF",CHE:"CHE",CHF:"CHF",CHW:"CHW",CLF:"CLF",CLP:"CLP",CNY:"CNY",COP:"COP",COU:"COU",CRC:"CRC",CSD:"CSD",CUC:"CUC",CUP:"CUP",CVE:"CVE",CYP:"CYP",CZK:"CZK",DEM:"DEM",DJF:"DJF",DKK:"DKK",DOP:"DOP",DZD:"DZD",EEK:"EEK",EGP:"EGP",ERN:"ERN",ESP:"ESP",ETB:"ETB",EUR:"EUR",FIM:"FIM",FJD:"FJD",FKP:"FKP",FRF:"FRF",GBP:"GBP",GEL:"GEL",GHC:"GHC",GHS:"GHS",GIP:"GIP",GMD:"GMD",GNF:"GNF",GRD:"GRD",GTQ:"GTQ",GWP:"GWP",GYD:"GYD",HKD:"HKD",HNL:"HNL",HRK:"HRK",HTG:"HTG",HUF:"HUF",IDR:"IDR",IEP:"IEP",ILS:"ILS",INR:"INR",IQD:"IQD",IRR:"IRR",ISK:"ISK",ITL:"ITL",JMD:"JMD",JOD:"JOD",JPY:"JPY",KES:"KES",KGS:"KGS",KHR:"KHR",KMF:"KMF",KPW:"KPW",KRW:"KRW",KWD:"KWD",KYD:"KYD",KZT:"KZT",LAK:"LAK",LBP:"LBP",LKR:"LKR",LRD:"LRD",LSL:"LSL",LTL:"LTL",LUF:"LUF",LVL:"LVL",LYD:"LYD",MAD:"MAD",MDL:"MDL",MGA:"MGA",MGF:"MGF",MKD:"MKD",MMK:"MMK",MNT:"MNT",MOP:"MOP",MRO:"MRO",MRU:"MRU",MTL:"MTL",MUR:"MUR",MVR:"MVR",MWK:"MWK",MXN:"MXN",MXV:"MXV",MYR:"MYR",MZM:"MZM",MZN:"MZN",NAD:"NAD",NGN:"NGN",NIO:"NIO",NLG:"NLG",NOK:"NOK",NPR:"NPR",NZD:"NZD",OMR:"OMR",PAB:"PAB",PEN:"PEN",PGK:"PGK",PHP:"PHP",PKR:"PKR",PLN:"PLN",PTE:"PTE",PYG:"PYG",QAR:"QAR",ROL:"ROL",RON:"RON",RSD:"RSD",RUB:"RUB",RUR:"RUR",RWF:"RWF",SAR:"SAR",SBD:"SBD",SCR:"SCR",SDD:"SDD",SDG:"SDG",SEK:"SEK",SGD:"SGD",SHP:"SHP",SIT:"SIT",SKK:"SKK",SLL:"SLL",SOS:"SOS",SRD:"SRD",SRG:"SRG",SSP:"SSP",STD:"STD",STN:"STN",SVC:"SVC",SYP:"SYP",THB:"THB",THJ:"THJ",TMM:"TMM",TMT:"TMT",TND:"TND",TOP:"TOP",TPE:"TPE",TRL:"TRL",TRY:"TRY",TTD:"TTD",TWD:"TWD",TZS:"TZS",UAH:"UAH",UGX:"UGX",USD:"USD",USS:"USS",UYI:"UYI",UYU:"UYU",UZS:"UZS",VEB:"VEB",VEF:"VEF",VES:"VES",VND:"VND",VUV:"VUV",WST:"WST",XAF:"XAF",XAG:"XAG",XAU:"XAU",XBA:"XBA",XBB:"XBB",XBC:"XBC",XBD:"XBD",XCD:"XCD",XDR:"XDR",XFO:"XFO",XFU:"XFU",XOF:"XOF",XPD:"XPD",XPF:"XPF",XPT:"XPT",XSU:"XSU",XTS:"XTS",XUA:"XUA",XXX:"XXX",YER:"YER",YUM:"YUM",ZAR:"ZAR",ZMK:"ZMK",ZMW:"ZMW",ZWD:"ZWD",ZWL:"ZWL",ZWN:"ZWN",ZWR:"ZWR"}},67886:(Qe,he,s)=>{"use strict";s.d(he,{CH:()=>A,JT:()=>C,Jp:()=>r,MI:()=>f,Ns:()=>a,P9:()=>E,Pe:()=>g,Uq:()=>b,Wy:()=>_,YH:()=>c,YM:()=>U,Zx:()=>j,ip:()=>p,o$:()=>D,tM:()=>P,uJ:()=>d,xR:()=>q});var a=function(K){return K.publication="publication",K.conference="conference",K.intellectual_property="intellectual_property",K.other_output="other_output",K}(a||{}),r=function(K){return K.book="book",K.bookChapter="book-chapter",K.bookReview="book-review",K.dictionaryEntry="dictionary-entry",K.dissertationThesis="dissertation-thesis",K.editedBook="edited-book",K.encyclopediaEntry="encyclopedia-entry",K.journalArticle="journal-article",K.journalIssue="journal-issue",K.magazineArticle="magazine-article",K.manual="manual",K.newsletterArticle="newsletter-article",K.newspaperArticle="newspaper-article",K.onlineResource="online-resource",K.preprint="preprint",K.report="report",K.researchTool="research-tool",K.supervisedStudentPublication="supervised-student-publication",K.test="test",K.translation="translation",K.website="website",K.workingPaper="working-paper",K.review="review",K}(r||{}),b=function(K){return K.conferenceAbstract="conference-abstract",K.conferencePaper="conference-paper",K.conferencePoster="conference-poster",K}(b||{}),A=function(K){return K.disclosure="disclosure",K.license="license",K.patent="patent",K.registeredCopyright="registered-copyright",K.trademark="trademark",K}(A||{}),D=function(K){return K.annotation="annotation",K.artisticPerformance="artistic-performance",K.dataManagementPlan="data-management-plan",K.dataSet="data-set",K.invention="invention",K.lectureSpeech="lecture-speech",K.other="other",K.physicalObject="physical-object",K.researchTechnique="research-technique",K.software="software",K.spinOffCompany="spin-off-company",K.standardsAndPolicy="standards-and-policy",K.technicalStandard="technical-standard",K}(D||{});const p={[a.conference]:"Conference",[a.intellectual_property]:"Intellectual property",[a.other_output]:"Other",[a.publication]:"Publication"},E={[a.conference]:{[b.conferenceAbstract]:"Conference abstract",[b.conferencePaper]:"Conference paper",[b.conferencePoster]:"Conference poster"},[a.publication]:{[r.bookChapter]:"Book chapter",[r.bookReview]:"Book review",[r.book]:"Book",[r.dictionaryEntry]:"Dictionary entry",[r.dissertationThesis]:"Dissertation/Thesis",[r.editedBook]:"Edited book",[r.encyclopediaEntry]:"Encyclopedia entry",[r.journalArticle]:"Journal article",[r.journalIssue]:"Journal issue",[r.magazineArticle]:"Magazine article",[r.manual]:"Manual",[r.newsletterArticle]:"Newsletter article",[r.newspaperArticle]:"Newspaper article",[r.onlineResource]:"Online resource",[r.preprint]:"Preprint",[r.report]:"Report",[r.researchTool]:"Research tool",[r.supervisedStudentPublication]:"Supervised student publication",[r.test]:"Test",[r.translation]:"Translation",[r.website]:"Website",[r.workingPaper]:"Working paper",[r.review]:"Review"},[a.intellectual_property]:{[A.disclosure]:"Disclosure",[A.license]:"License",[A.patent]:"Patent",[A.registeredCopyright]:"Registered copyright",[A.trademark]:"Trademark"},[a.other_output]:{[D.annotation]:"Annotation",[D.artisticPerformance]:"Artistic performance",[D.dataManagementPlan]:"Data management plan",[D.dataSet]:"Data set",[D.invention]:"Invention",[D.lectureSpeech]:"Lecture/speech",[D.physicalObject]:"Physical object",[D.researchTechnique]:"Research technique",[D.software]:"Software",[D.spinOffCompany]:"Spin off company",[D.standardsAndPolicy]:"Standards and policy",[D.technicalStandard]:"Technical Standard",[D.other]:"Other"}};var f=function(K){return K.publisher="publisher",K.conferenceTitle="conferenceTitle",K.bookTitle="bookTitle",K.journalTitle="journalTitle",K.magazineTitle="magazineTitle",K.newsletterTitle="newsletterTitle",K.newspaperTitle="newspaperTitle",K.institution="institution",K.custodian="custodian",K.trademark="trademark",K}(f||{});const c={[f.publisher]:"Publisher",[f.conferenceTitle]:"Conference title",[f.bookTitle]:"Book title",[f.journalTitle]:"Journal title",[f.magazineTitle]:"Magazine title",[f.newsletterTitle]:"Newsletter title",[f.newspaperTitle]:"Newspaper title",[f.institution]:"Institution",[f.custodian]:"Custodian",[f.trademark]:"Trademark"},C={[b.conferenceAbstract]:f.conferenceTitle,[b.conferencePaper]:f.conferenceTitle,[b.conferencePoster]:f.conferenceTitle,[r.book]:f.publisher,[r.bookChapter]:f.bookTitle,[r.bookReview]:f.publisher,[r.dictionaryEntry]:f.publisher,[r.editedBook]:f.publisher,[r.dissertationThesis]:f.journalTitle,[r.encyclopediaEntry]:f.publisher,[r.journalArticle]:f.journalTitle,[r.journalIssue]:f.journalTitle,[r.magazineArticle]:f.magazineTitle,[r.manual]:f.publisher,[r.newsletterArticle]:f.newsletterTitle,[r.newspaperArticle]:f.newspaperTitle,[r.onlineResource]:f.publisher,[r.preprint]:f.journalTitle,[r.report]:f.institution,[r.researchTool]:f.institution,[r.supervisedStudentPublication]:f.institution,[r.test]:f.institution,[r.translation]:f.publisher,[r.website]:f.publisher,[r.workingPaper]:f.institution,[A.disclosure]:f.publisher,[A.license]:f.publisher,[A.patent]:f.publisher,[r.review]:f.publisher,[A.registeredCopyright]:f.publisher,[A.trademark]:f.journalTitle,[D.annotation]:f.custodian,[D.artisticPerformance]:f.publisher,[D.dataManagementPlan]:f.journalTitle,[D.dataSet]:f.publisher,[D.invention]:f.publisher,[D.lectureSpeech]:f.publisher,[D.physicalObject]:f.custodian,[D.researchTechnique]:f.publisher,[D.software]:f.journalTitle,[D.spinOffCompany]:f.publisher,[D.standardsAndPolicy]:f.publisher,[D.technicalStandard]:f.publisher,[D.other]:f.publisher},_={Abkhazian:"ab",Afar:"aa",Afrikaans:"af",Akan:"ak",Albanian:"sq",Amharic:"am",Arabic:"ar",Aragonese:"an",Armenian:"hy",Assamese:"as",Avaric:"av",Avestan:"ae",Aymara:"ay",Azerbaijani:"az",Bambara:"bm",Bangla:"bn",Bashkir:"ba",Basque:"eu",Belarusian:"be",Bihari:"bh",Bislama:"bi",Bosnian:"bs",Breton:"br",Bulgarian:"bg",Burmese:"my",Catalan:"ca",Chamorro:"ch",Chechen:"ce","Chinese (simplified)":"zh_CN","Chinese (traditional)":"zh_TW","Church Slavic":"cu",Chuvash:"cv",Cornish:"kw",Corsican:"co",Cree:"cr",Croatian:"hr",Czech:"cs",Danish:"da",Divehi:"dv",Dutch:"nl",Dzongkha:"dz",English:"en",Esperanto:"eo",Estonian:"et",Ewe:"ee",Faroese:"fo",Fijian:"fj",Finnish:"fi",French:"fr",Fulah:"ff",Galician:"gl",Ganda:"lg",Georgian:"ka",German:"de",Greek:"el",Guarani:"gn",Gujarati:"gu","Haitian Creole":"ht",Hausa:"ha",Hebrew:"iw",Herero:"hz",Hindi:"hi","Hiri Motu":"ho",Hungarian:"hu",Icelandic:"is",Ido:"io",Igbo:"ig",Indonesian:"in",Interlingua:"ia",Interlingue:"ie",Inuktitut:"iu",Inupiaq:"ik",Irish:"ga",Italian:"it",Japanese:"ja",Javanese:"jv",Kalaallisut:"kl",Kannada:"kn",Kanuri:"kr",Kashmiri:"ks",Kazakh:"kk",Khmer:"km",Kikuyu:"ki",Kinyarwanda:"rw",Komi:"kv",Kongo:"kg",Korean:"ko",Kuanyama:"kj",Kurdish:"ku",Kyrgyz:"ky",Lao:"lo",Latin:"la",Latvian:"lv",Limburgish:"li",Lingala:"ln",Lithuanian:"lt","Luba-Katanga":"lu",Luxembourgish:"lb",Macedonian:"mk",Malagasy:"mg",Malay:"ms",Malayalam:"ml",Maltese:"mt",Manx:"gv",Maori:"mi",Marathi:"mr",Marshallese:"mh",Moldavian:"mo",Mongolian:"mn",Nauru:"na",Navajo:"nv",Ndonga:"ng",Nepali:"ne","North Ndebele":"nd","Northern Sami":"se",Norwegian:"no","Norwegian Bokm\xe5l":"nb","Norwegian Nynorsk":"nn",Nyanja:"ny",Occitan:"oc",Odia:"or",Ojibwa:"oj",Oromo:"om",Ossetic:"os",Pali:"pi",Pashto:"ps",Persian:"fa",Polish:"pl",Portuguese:"pt",Punjabi:"pa",Quechua:"qu",Romanian:"ro",Romansh:"rm",Rundi:"rn",Russian:"ru",Samoan:"sm",Sango:"sg",Sanskrit:"sa",Sardinian:"sc","Scottish Gaelic":"gd",Serbian:"sr",Shona:"sn","Sichuan Yi":"ii",Sindhi:"sd",Sinhala:"si",Slovak:"sk",Slovenian:"sl",Somali:"so","South Ndebele":"nr","Southern Sotho":"st",Spanish:"es",Sundanese:"su",Swahili:"sw",Swati:"ss",Swedish:"sv",Tagalog:"tl",Tahitian:"ty",Tajik:"tg",Tamil:"ta",Tatar:"tt",Telugu:"te",Thai:"th",Tibetan:"bo",Tigrinya:"ti",Tongan:"to",Tsonga:"ts",Tswana:"tn",Turkish:"tr",Turkmen:"tk",Twi:"tw",Ukrainian:"uk",Urdu:"ur",Uyghur:"ug",Uzbek:"uz",Venda:"ve",Vietnamese:"vi",Volap\u00fck:"vo",Walloon:"wa",Welsh:"cy","Western Frisian":"fy",Wolof:"wo",Xhosa:"xh",Yiddish:"ji",Yoruba:"yo"},g={"formatted-apa":"APA",bibtex:"BIBTEX","formatted-chicago":"CHICAGO","formatted-harvard":"HARVARD","formatted-ieee":"IEEE","formatted-mla":"MLA",ris:"RIS","formatted-unspecified":"UNSPECIFIED","formatted-vancouver":"VANCOUVER"},P=[{key:"no specified role",value:null,translation:"No specified role"},{key:"conceptualization",value:"http://credit.niso.org/contributor-roles/conceptualization/",translation:"Conceptualization"},{key:"data curation",value:"http://credit.niso.org/contributor-roles/data-curation/",translation:"Data curation"},{key:"formal analysis",value:"http://credit.niso.org/contributor-roles/formal-analysis/",translation:"Formal analysis"},{key:"funding acquisition",value:"http://credit.niso.org/contributor-roles/funding-acquisition/",translation:"Funding acquisition"},{key:"investigation",value:"http://credit.niso.org/contributor-roles/investigation/",translation:"Investigation"},{key:"methodology",value:"http://credit.niso.org/contributor-roles/methodology/",translation:"Methodology"},{key:"project administration",value:"http://credit.niso.org/contributor-roles/project-administration/",translation:"Project administration"},{key:"resources",value:"http://credit.niso.org/contributor-roles/resources/",translation:"Resources"},{key:"software",value:"http://credit.niso.org/contributor-roles/software/",translation:"Software"},{key:"supervision",value:"http://credit.niso.org/contributor-roles/supervision/",translation:"Supervision"},{key:"validation",value:"http://credit.niso.org/contributor-roles/validation/",translation:"Validation"},{key:"visualization",value:"http://credit.niso.org/contributor-roles/visualization/",translation:"Visualization"},{key:"writing - original draft",value:"http://credit.niso.org/contributor-roles/writing-original-draft/",translation:"Writing - original draft"},{key:"writing - review & editing",value:"http://credit.niso.org/contributor-roles/writing-review-editing/",translation:"Writing - review & editing"}],U=[{key:"author",value:null,translation:"Author"},{key:"assignee",value:null,translation:"Assignee"},{key:"editor",value:null,translation:"Editor"},{key:"chair-or-translator",value:null,translation:"Chair or Translator"},{key:"co-investigator",value:null,translation:"Co-investigator"},{key:"co-inventor",value:null,translation:"Co-inventor"},{key:"graduate-student",value:null,translation:"Graduate Student"},{key:"other-inventor",value:null,translation:"Other inventor"},{key:"principal-investigator",value:null,translation:"Principal Investigator"},{key:"postdoctoral-researcher",value:null,translation:"Postdoctoral Researcher"},{key:"support-staff",value:null,translation:"Support Staff"},{key:"lead",value:null,translation:"Lead"},{key:"co-lead",value:null,translation:"Co-lead"},{key:"supported-by",value:null,translation:"Supported by"},{key:"other-contribution",value:null,translation:"Other contribution"}];var d=function(K){return K.self="self",K["part-of"]="part-of",K["version-of"]="version-of",K["funded-by"]="funded-by",K}(d||{});const q={self:"Self","part-of":"Part of","version-of":"Version of","funded-by":"Funded by"},j={self:"The identifier applies to the work itself. For example, a DOI for a book chapter.","part-of":"The identifier applies to part of a larger work. For example, the ISBN of the book in which the work was published.","version-of":"The identifier applies to an alternate version of the work. For example, an earlier draft of an article.","funded-by":"The identifier applies to the funding for the work."}},67555:(Qe,he,s)=>{"use strict";s.d(he,{a:()=>b});var a=s(56223),r=s(34221);let b=(()=>{var A;class D{static notPattern(E){return f=>{const C=a.kI.pattern(E)(f);return C&&C.pattern||""===f.value?null:{notPattern:"the pattern is valid"}}}static patternAfterTrimming(E){return f=>""===f.value.trim()||E.test(f.value.trim())?null:{pattern:"the pattern is valid"}}static matchValues(E,f,c=!0){return C=>{const m=C.controls[E],_=C.controls[f];if(!m||!_||_.errors&&!_.errors.mismatch)return null;(c?m.value:m.value.toLowerCase())!==(c?_.value:_.value.toLowerCase())?_.setErrors({mismatch:!0}):_.hasError("mismatch")&&(delete _.errors.mismatch,_.updateValueAndValidity())}}}return(A=D).email=p=>{const f=a.kI.pattern(r.iN)(p);return p.value&&null!=f&&f.pattern?{email:!0}:null},A.emailGeneric=p=>{const f=a.kI.pattern(r.VP)(p);return p.value&&null!=f&&f.pattern?{email:!0}:null},A.illegalName=p=>{const f=a.kI.pattern(r.qZ)(p);return!p.value||!p.value.startsWith("http")&&null!=f&&f.pattern?null:{illegalName:!0}},D})()},20553:(Qe,he,s)=>{"use strict";s.d(he,{N:()=>a});const a={production:!0,debugger:!1,ROBOTS:"all",API_NEWS:"https://info.orcid.org/feed/",API_PUB:"//pub./v3.0",API_WEB:"///",BASE_URL:"///",INFO_SITE:"https://info.orcid.org/",SHOW_TEST_WARNING_BANNER:!1,GOOGLE_ANALYTICS_TESTING_MODE:!1,GOOGLE_TAG_MANAGER:"GTM-WDKLQXL",GOOGLE_RECAPTCHA:"6Lfj4AoTAAAAAAjr0x3Gu2RcVpA1-0LJAhV-GRQj",ZENDESK:"b8313acd-6439-4894-b431-8c5a2ae9e7cb",HELP_HERO_ID:"oYFQMrzFHA",INSTITUTIONAL_AUTOCOMPLETE_DISPLAY_AMOUNT:20,VERBOSE_SNACKBAR_ERRORS_REPORTS:!1,LANGUAGE_MENU_OPTIONS:{ar:"\u0627\u0644\u0639\u0631\u0628\u064a\u0629",cs:"\u010ce\u0161tina",de:"Deutsch",en:"English",es:"Espa\xf1ol",fr:"Fran\xe7ais",it:"Italiano",ja:"\u65e5\u672c\u8a9e",ko:"\ud55c\uad6d\uc5b4",pl:"Polski",pt:"Portugu\xeas",ru:"\u0420\u0443\u0441\u0441\u043a\u0438\u0439",tr:"T\xfcrk\xe7e","zh-CN":"\u7b80\u4f53\u4e2d\u6587","zh-TW":"\u7e41\u9ad4\u4e2d\u6587"},proxyMode:!1}},5521:(Qe,he,s)=>{"use strict";var a=s(6593),r=s(65879),b=s(86825);function D(z){return new r.vHH(3e3,!1)}function bt(z){switch(z.length){case 0:return new b.ZN;case 1:return z[0];default:return new b.ZE(z)}}function _e(z,M,y=new Map,v=new Map){const W=[],fe=[];let Ue=-1,et=null;if(M.forEach(At=>{const $t=At.get("offset"),ln=$t==Ue,Jt=ln&&et||new Map;At.forEach((Zn,Rn)=>{let pn=Rn,Bn=Zn;if("offset"!==Rn)switch(pn=z.normalizePropertyName(pn,W),Bn){case b.k1:Bn=y.get(Rn);break;case b.l3:Bn=v.get(Rn);break;default:Bn=z.normalizeStyleValue(Rn,pn,Bn,W)}Jt.set(pn,Bn)}),ln||fe.push(Jt),et=Jt,Ue=$t}),W.length)throw function Je(z){return new r.vHH(3502,!1)}();return fe}function H(z,M,y,v){switch(M){case"start":z.onStart(()=>v(y&&Te(y,"start",z)));break;case"done":z.onDone(()=>v(y&&Te(y,"done",z)));break;case"destroy":z.onDestroy(()=>v(y&&Te(y,"destroy",z)))}}function Te(z,M,y){const fe=Me(z.element,z.triggerName,z.fromState,z.toState,M||z.phaseName,y.totalTime??z.totalTime,!!y.disabled),Ue=z._data;return null!=Ue&&(fe._data=Ue),fe}function Me(z,M,y,v,W="",fe=0,Ue){return{element:z,triggerName:M,fromState:y,toState:v,phaseName:W,totalTime:fe,disabled:!!Ue}}function Pe(z,M,y){let v=z.get(M);return v||z.set(M,v=y),v}function dt(z){const M=z.indexOf(":");return[z.substring(1,M),z.slice(M+1)]}const Pt=(()=>typeof document>"u"?null:document.documentElement)();function Qt(z){const M=z.parentNode||z.host||null;return M===Pt?null:M}let Ie=null,ne=!1;function Ut(z,M){for(;M;){if(M===z)return!0;M=Qt(M)}return!1}function Bt(z,M,y){if(y)return Array.from(z.querySelectorAll(M));const v=z.querySelector(M);return v?[v]:[]}let nt=(()=>{var z;class M{validateStyleProperty(v){return function ce(z){Ie||(Ie=function mt(){return typeof document<"u"?document.body:null}()||{},ne=!!Ie.style&&"WebkitAppearance"in Ie.style);let M=!0;return Ie.style&&!function cn(z){return"ebkit"==z.substring(1,6)}(z)&&(M=z in Ie.style,!M&&ne&&(M="Webkit"+z.charAt(0).toUpperCase()+z.slice(1)in Ie.style)),M}(v)}matchesElement(v,W){return!1}containsElement(v,W){return Ut(v,W)}getParentElement(v){return Qt(v)}query(v,W,fe){return Bt(v,W,fe)}computeStyle(v,W,fe){return fe||""}animate(v,W,fe,Ue,et,At=[],$t){return new b.ZN(fe,Ue)}}return(z=M).\u0275fac=function(v){return new(v||z)},z.\u0275prov=r.Yz7({token:z,factory:z.\u0275fac}),M})(),oe=(()=>{class M{}return M.NOOP=new nt,M})();const Ce=1e3,at="ng-enter",Ot="ng-leave",Fe="ng-trigger",je=".ng-trigger",kt="ng-animating",We=".ng-animating";function Ft(z){if("number"==typeof z)return z;const M=z.match(/^(-?[\.\d]+)(m?s)/);return!M||M.length<2?0:Kt(parseFloat(M[1]),M[2])}function Kt(z,M){return"s"===M?z*Ce:z}function xt(z,M,y){return z.hasOwnProperty("duration")?z:function Mt(z,M,y){let W,fe=0,Ue="";if("string"==typeof z){const et=z.match(/^(-?[\.\d]+)(m?s)(?:\s+(-?[\.\d]+)(m?s))?(?:\s+([-a-z]+(?:\(.+?\))?))?$/i);if(null===et)return M.push(D()),{duration:0,delay:0,easing:""};W=Kt(parseFloat(et[1]),et[2]);const At=et[3];null!=At&&(fe=Kt(parseFloat(At),et[4]));const $t=et[5];$t&&(Ue=$t)}else W=z;if(!y){let et=!1,At=M.length;W<0&&(M.push(function p(){return new r.vHH(3100,!1)}()),et=!0),fe<0&&(M.push(function E(){return new r.vHH(3101,!1)}()),et=!0),et&&M.splice(At,0,D())}return{duration:W,delay:fe,easing:Ue}}(z,M,y)}function pt(z,M={}){return Object.keys(z).forEach(y=>{M[y]=z[y]}),M}function St(z){const M=new Map;return Object.keys(z).forEach(y=>{M.set(y,z[y])}),M}function Ee(z,M=new Map,y){if(y)for(let[v,W]of y)M.set(v,W);for(let[v,W]of z)M.set(v,W);return M}function vt(z,M,y){M.forEach((v,W)=>{const fe=le(W);y&&!y.has(W)&&y.set(W,z.style[fe]),z.style[fe]=v})}function ye(z,M){M.forEach((y,v)=>{const W=le(v);z.style[W]=""})}function we(z){return Array.isArray(z)?1==z.length?z[0]:(0,b.vP)(z):z}const T=new RegExp("{{\\s*(.+?)\\s*}}","g");function V(z){let M=[];if("string"==typeof z){let y;for(;y=T.exec(z);)M.push(y[1]);T.lastIndex=0}return M}function G(z,M,y){const v=z.toString(),W=v.replace(T,(fe,Ue)=>{let et=M[Ue];return null==et&&(y.push(function c(z){return new r.vHH(3003,!1)}()),et=""),et.toString()});return W==v?z:W}function R(z){const M=[];let y=z.next();for(;!y.done;)M.push(y.value),y=z.next();return M}const Y=/-+([a-z0-9])/g;function le(z){return z.replace(Y,(...M)=>M[1].toUpperCase())}function Wt(z,M,y){switch(M.type){case 7:return z.visitTrigger(M,y);case 0:return z.visitState(M,y);case 1:return z.visitTransition(M,y);case 2:return z.visitSequence(M,y);case 3:return z.visitGroup(M,y);case 4:return z.visitAnimate(M,y);case 5:return z.visitKeyframes(M,y);case 6:return z.visitStyle(M,y);case 8:return z.visitReference(M,y);case 9:return z.visitAnimateChild(M,y);case 10:return z.visitAnimateRef(M,y);case 11:return z.visitQuery(M,y);case 12:return z.visitStagger(M,y);default:throw function C(z){return new r.vHH(3004,!1)}()}}function mn(z,M){return window.getComputedStyle(z)[M]}const Yt="*";function fn(z,M){const y=[];return"string"==typeof z?z.split(/\s*,\s*/).forEach(v=>function dn(z,M,y){if(":"==z[0]){const At=function en(z,M){switch(z){case":enter":return"void => *";case":leave":return"* => void";case":increment":return(y,v)=>parseFloat(v)>parseFloat(y);case":decrement":return(y,v)=>parseFloat(v) *"}}(z,y);if("function"==typeof At)return void M.push(At);z=At}const v=z.match(/^(\*|[-\w]+)\s*()\s*(\*|[-\w]+)$/);if(null==v||v.length<4)return y.push(function de(z){return new r.vHH(3015,!1)}()),M;const W=v[1],fe=v[2],Ue=v[3];M.push(wi(W,Ue));"<"==fe[0]&&!(W==Yt&&Ue==Yt)&&M.push(wi(Ue,W))}(v,y,M)):y.push(z),y}const Tn=new Set(["true","1"]),Ei=new Set(["false","0"]);function wi(z,M){const y=Tn.has(z)||Ei.has(z),v=Tn.has(M)||Ei.has(M);return(W,fe)=>{let Ue=z==Yt||z==W,et=M==Yt||M==fe;return!Ue&&y&&"boolean"==typeof W&&(Ue=W?Tn.has(z):Ei.has(z)),!et&&v&&"boolean"==typeof fe&&(et=fe?Tn.has(M):Ei.has(M)),Ue&&et}}const Ii=new RegExp("s*:selfs*,?","g");function zi(z,M,y,v){return new Qn(z).build(M,y,v)}class Qn{constructor(M){this._driver=M}build(M,y,v){const W=new Ki(y);return this._resetContextStyleTimingState(W),Wt(this,we(M),W)}_resetContextStyleTimingState(M){M.currentQuerySelector="",M.collectedStyles=new Map,M.collectedStyles.set("",new Map),M.currentTime=0}visitTrigger(M,y){let v=y.queryCount=0,W=y.depCount=0;const fe=[],Ue=[];return"@"==M.name.charAt(0)&&y.errors.push(function _(){return new r.vHH(3006,!1)}()),M.definitions.forEach(et=>{if(this._resetContextStyleTimingState(y),0==et.type){const At=et,$t=At.name;$t.toString().split(/\s*,\s*/).forEach(ln=>{At.name=ln,fe.push(this.visitState(At,y))}),At.name=$t}else if(1==et.type){const At=this.visitTransition(et,y);v+=At.queryCount,W+=At.depCount,Ue.push(At)}else y.errors.push(function g(){return new r.vHH(3007,!1)}())}),{type:7,name:M.name,states:fe,transitions:Ue,queryCount:v,depCount:W,options:null}}visitState(M,y){const v=this.visitStyle(M.styles,y),W=M.options&&M.options.params||null;if(v.containsDynamicStyles){const fe=new Set,Ue=W||{};v.styles.forEach(et=>{et instanceof Map&&et.forEach(At=>{V(At).forEach($t=>{Ue.hasOwnProperty($t)||fe.add($t)})})}),fe.size&&(R(fe.values()),y.errors.push(function P(z,M){return new r.vHH(3008,!1)}()))}return{type:0,name:M.name,style:v,options:W?{params:W}:null}}visitTransition(M,y){y.queryCount=0,y.depCount=0;const v=Wt(this,we(M.animation),y);return{type:1,matchers:fn(M.expr,y.errors),animation:v,queryCount:y.queryCount,depCount:y.depCount,options:xi(M.options)}}visitSequence(M,y){return{type:2,steps:M.steps.map(v=>Wt(this,v,y)),options:xi(M.options)}}visitGroup(M,y){const v=y.currentTime;let W=0;const fe=M.steps.map(Ue=>{y.currentTime=v;const et=Wt(this,Ue,y);return W=Math.max(W,y.currentTime),et});return y.currentTime=W,{type:3,steps:fe,options:xi(M.options)}}visitAnimate(M,y){const v=function Ai(z,M){if(z.hasOwnProperty("duration"))return z;if("number"==typeof z)return Fi(xt(z,M).duration,0,"");const y=z;if(y.split(/\s+/).some(fe=>"{"==fe.charAt(0)&&"{"==fe.charAt(1))){const fe=Fi(0,0,"");return fe.dynamic=!0,fe.strValue=y,fe}const W=xt(y,M);return Fi(W.duration,W.delay,W.easing)}(M.timings,y.errors);y.currentAnimateTimings=v;let W,fe=M.styles?M.styles:(0,b.oB)({});if(5==fe.type)W=this.visitKeyframes(fe,y);else{let Ue=M.styles,et=!1;if(!Ue){et=!0;const $t={};v.easing&&($t.easing=v.easing),Ue=(0,b.oB)($t)}y.currentTime+=v.duration+v.delay;const At=this.visitStyle(Ue,y);At.isEmptyStep=et,W=At}return y.currentAnimateTimings=null,{type:4,timings:v,style:W,options:null}}visitStyle(M,y){const v=this._makeStyleAst(M,y);return this._validateStyleAst(v,y),v}_makeStyleAst(M,y){const v=[],W=Array.isArray(M.styles)?M.styles:[M.styles];for(let et of W)"string"==typeof et?et===b.l3?v.push(et):y.errors.push(new r.vHH(3002,!1)):v.push(St(et));let fe=!1,Ue=null;return v.forEach(et=>{if(et instanceof Map&&(et.has("easing")&&(Ue=et.get("easing"),et.delete("easing")),!fe))for(let At of et.values())if(At.toString().indexOf("{{")>=0){fe=!0;break}}),{type:6,styles:v,easing:Ue,offset:M.offset,containsDynamicStyles:fe,options:null}}_validateStyleAst(M,y){const v=y.currentAnimateTimings;let W=y.currentTime,fe=y.currentTime;v&&fe>0&&(fe-=v.duration+v.delay),M.styles.forEach(Ue=>{"string"!=typeof Ue&&Ue.forEach((et,At)=>{const $t=y.collectedStyles.get(y.currentQuerySelector),ln=$t.get(At);let Jt=!0;ln&&(fe!=W&&fe>=ln.startTime&&W<=ln.endTime&&(y.errors.push(function q(z,M,y,v,W){return new r.vHH(3010,!1)}()),Jt=!1),fe=ln.startTime),Jt&&$t.set(At,{startTime:fe,endTime:W}),y.options&&function ge(z,M,y){const v=M.params||{},W=V(z);W.length&&W.forEach(fe=>{v.hasOwnProperty(fe)||y.push(function f(z){return new r.vHH(3001,!1)}())})}(et,y.options,y.errors)})})}visitKeyframes(M,y){const v={type:5,styles:[],options:null};if(!y.currentAnimateTimings)return y.errors.push(function j(){return new r.vHH(3011,!1)}()),v;let fe=0;const Ue=[];let et=!1,At=!1,$t=0;const ln=M.steps.map(pr=>{const Cr=this._makeStyleAst(pr,y);let Ir=null!=Cr.offset?Cr.offset:function qn(z){if("string"==typeof z)return null;let M=null;if(Array.isArray(z))z.forEach(y=>{if(y instanceof Map&&y.has("offset")){const v=y;M=parseFloat(v.get("offset")),v.delete("offset")}});else if(z instanceof Map&&z.has("offset")){const y=z;M=parseFloat(y.get("offset")),y.delete("offset")}return M}(Cr.styles),dr=0;return null!=Ir&&(fe++,dr=Cr.offset=Ir),At=At||dr<0||dr>1,et=et||dr<$t,$t=dr,Ue.push(dr),Cr});At&&y.errors.push(function K(){return new r.vHH(3012,!1)}()),et&&y.errors.push(function L(){return new r.vHH(3200,!1)}());const Jt=M.steps.length;let Zn=0;fe>0&&fe{const Ir=Zn>0?Cr==Rn?1:Zn*Cr:Ue[Cr],dr=Ir*Oi;y.currentTime=pn+Bn.delay+dr,Bn.duration=dr,this._validateStyleAst(pr,y),pr.offset=Ir,v.styles.push(pr)}),v}visitReference(M,y){return{type:8,animation:Wt(this,we(M.animation),y),options:xi(M.options)}}visitAnimateChild(M,y){return y.depCount++,{type:9,options:xi(M.options)}}visitAnimateRef(M,y){return{type:10,animation:this.visitReference(M.animation,y),options:xi(M.options)}}visitQuery(M,y){const v=y.currentQuerySelector,W=M.options||{};y.queryCount++,y.currentQuery=M;const[fe,Ue]=function oi(z){const M=!!z.split(/\s*,\s*/).find(y=>":self"==y);return M&&(z=z.replace(Ii,"")),z=z.replace(/@\*/g,je).replace(/@\w+/g,y=>je+"-"+y.slice(1)).replace(/:animating/g,We),[z,M]}(M.selector);y.currentQuerySelector=v.length?v+" "+fe:fe,Pe(y.collectedStyles,y.currentQuerySelector,new Map);const et=Wt(this,we(M.animation),y);return y.currentQuery=null,y.currentQuerySelector=v,{type:11,selector:fe,limit:W.limit||0,optional:!!W.optional,includeSelf:Ue,animation:et,originalSelector:M.selector,options:xi(M.options)}}visitStagger(M,y){y.currentQuery||y.errors.push(function k(){return new r.vHH(3013,!1)}());const v="full"===M.timings?{duration:0,delay:0,easing:"full"}:xt(M.timings,y.errors,!0);return{type:12,animation:Wt(this,we(M.animation),y),timings:v,options:null}}}class Ki{constructor(M){this.errors=M,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 xi(z){return z?(z=pt(z)).params&&(z.params=function ji(z){return z?pt(z):null}(z.params)):z={},z}function Fi(z,M,y){return{duration:z,delay:M,easing:y}}function ki(z,M,y,v,W,fe,Ue=null,et=!1){return{type:1,element:z,keyframes:M,preStyleProps:y,postStyleProps:v,duration:W,delay:fe,totalTime:W+fe,easing:Ue,subTimeline:et}}class Hi{constructor(){this._map=new Map}get(M){return this._map.get(M)||[]}append(M,y){let v=this._map.get(M);v||this._map.set(M,v=[]),v.push(...y)}has(M){return this._map.has(M)}clear(){this._map.clear()}}const jr=new RegExp(":enter","g"),bn=new RegExp(":leave","g");function Bo(z,M,y,v,W,fe=new Map,Ue=new Map,et,At,$t=[]){return(new _s).buildKeyframes(z,M,y,v,W,fe,Ue,et,At,$t)}class _s{buildKeyframes(M,y,v,W,fe,Ue,et,At,$t,ln=[]){$t=$t||new Hi;const Jt=new Mo(M,y,$t,W,fe,ln,[]);Jt.options=At;const Zn=At.delay?Ft(At.delay):0;Jt.currentTimeline.delayNextStep(Zn),Jt.currentTimeline.setStyles([Ue],null,Jt.errors,At),Wt(this,v,Jt);const Rn=Jt.timelines.filter(pn=>pn.containsAnimation());if(Rn.length&&et.size){let pn;for(let Bn=Rn.length-1;Bn>=0;Bn--){const Oi=Rn[Bn];if(Oi.element===y){pn=Oi;break}}pn&&!pn.allowOnlyTimelineStyles()&&pn.setStyles([et],null,Jt.errors,At)}return Rn.length?Rn.map(pn=>pn.buildKeyframes()):[ki(y,[],[],[],0,Zn,"",!1)]}visitTrigger(M,y){}visitState(M,y){}visitTransition(M,y){}visitAnimateChild(M,y){const v=y.subInstructions.get(y.element);if(v){const W=y.createSubContext(M.options),fe=y.currentTimeline.currentTime,Ue=this._visitSubInstructions(v,W,W.options);fe!=Ue&&y.transformIntoNewTimeline(Ue)}y.previousNode=M}visitAnimateRef(M,y){const v=y.createSubContext(M.options);v.transformIntoNewTimeline(),this._applyAnimationRefDelays([M.options,M.animation.options],y,v),this.visitReference(M.animation,v),y.transformIntoNewTimeline(v.currentTimeline.currentTime),y.previousNode=M}_applyAnimationRefDelays(M,y,v){for(const W of M){const fe=null==W?void 0:W.delay;if(fe){const Ue="number"==typeof fe?fe:Ft(G(fe,(null==W?void 0:W.params)??{},y.errors));v.delayNextStep(Ue)}}}_visitSubInstructions(M,y,v){let fe=y.currentTimeline.currentTime;const Ue=null!=v.duration?Ft(v.duration):null,et=null!=v.delay?Ft(v.delay):null;return 0!==Ue&&M.forEach(At=>{const $t=y.appendInstructionToTimeline(At,Ue,et);fe=Math.max(fe,$t.duration+$t.delay)}),fe}visitReference(M,y){y.updateOptions(M.options,!0),Wt(this,M.animation,y),y.previousNode=M}visitSequence(M,y){const v=y.subContextCount;let W=y;const fe=M.options;if(fe&&(fe.params||fe.delay)&&(W=y.createSubContext(fe),W.transformIntoNewTimeline(),null!=fe.delay)){6==W.previousNode.type&&(W.currentTimeline.snapshotCurrentStyles(),W.previousNode=$r);const Ue=Ft(fe.delay);W.delayNextStep(Ue)}M.steps.length&&(M.steps.forEach(Ue=>Wt(this,Ue,W)),W.currentTimeline.applyStylesToKeyframe(),W.subContextCount>v&&W.transformIntoNewTimeline()),y.previousNode=M}visitGroup(M,y){const v=[];let W=y.currentTimeline.currentTime;const fe=M.options&&M.options.delay?Ft(M.options.delay):0;M.steps.forEach(Ue=>{const et=y.createSubContext(M.options);fe&&et.delayNextStep(fe),Wt(this,Ue,et),W=Math.max(W,et.currentTimeline.currentTime),v.push(et.currentTimeline)}),v.forEach(Ue=>y.currentTimeline.mergeTimelineCollectedStyles(Ue)),y.transformIntoNewTimeline(W),y.previousNode=M}_visitTiming(M,y){if(M.dynamic){const v=M.strValue;return xt(y.params?G(v,y.params,y.errors):v,y.errors)}return{duration:M.duration,delay:M.delay,easing:M.easing}}visitAnimate(M,y){const v=y.currentAnimateTimings=this._visitTiming(M.timings,y),W=y.currentTimeline;v.delay&&(y.incrementTime(v.delay),W.snapshotCurrentStyles());const fe=M.style;5==fe.type?this.visitKeyframes(fe,y):(y.incrementTime(v.duration),this.visitStyle(fe,y),W.applyStylesToKeyframe()),y.currentAnimateTimings=null,y.previousNode=M}visitStyle(M,y){const v=y.currentTimeline,W=y.currentAnimateTimings;!W&&v.hasCurrentStyleProperties()&&v.forwardFrame();const fe=W&&W.easing||M.easing;M.isEmptyStep?v.applyEmptyStep(fe):v.setStyles(M.styles,fe,y.errors,y.options),y.previousNode=M}visitKeyframes(M,y){const v=y.currentAnimateTimings,W=y.currentTimeline.duration,fe=v.duration,et=y.createSubContext().currentTimeline;et.easing=v.easing,M.styles.forEach(At=>{et.forwardTime((At.offset||0)*fe),et.setStyles(At.styles,At.easing,y.errors,y.options),et.applyStylesToKeyframe()}),y.currentTimeline.mergeTimelineCollectedStyles(et),y.transformIntoNewTimeline(W+fe),y.previousNode=M}visitQuery(M,y){const v=y.currentTimeline.currentTime,W=M.options||{},fe=W.delay?Ft(W.delay):0;fe&&(6===y.previousNode.type||0==v&&y.currentTimeline.hasCurrentStyleProperties())&&(y.currentTimeline.snapshotCurrentStyles(),y.previousNode=$r);let Ue=v;const et=y.invokeQuery(M.selector,M.originalSelector,M.limit,M.includeSelf,!!W.optional,y.errors);y.currentQueryTotal=et.length;let At=null;et.forEach(($t,ln)=>{y.currentQueryIndex=ln;const Jt=y.createSubContext(M.options,$t);fe&&Jt.delayNextStep(fe),$t===y.element&&(At=Jt.currentTimeline),Wt(this,M.animation,Jt),Jt.currentTimeline.applyStylesToKeyframe(),Ue=Math.max(Ue,Jt.currentTimeline.currentTime)}),y.currentQueryIndex=0,y.currentQueryTotal=0,y.transformIntoNewTimeline(Ue),At&&(y.currentTimeline.mergeTimelineCollectedStyles(At),y.currentTimeline.snapshotCurrentStyles()),y.previousNode=M}visitStagger(M,y){const v=y.parentContext,W=y.currentTimeline,fe=M.timings,Ue=Math.abs(fe.duration),et=Ue*(y.currentQueryTotal-1);let At=Ue*y.currentQueryIndex;switch(fe.duration<0?"reverse":fe.easing){case"reverse":At=et-At;break;case"full":At=v.currentStaggerTime}const ln=y.currentTimeline;At&&ln.delayNextStep(At);const Jt=ln.currentTime;Wt(this,M.animation,y),y.previousNode=M,v.currentStaggerTime=W.currentTime-Jt+(W.startTime-v.currentTimeline.startTime)}}const $r={};class Mo{constructor(M,y,v,W,fe,Ue,et,At){this._driver=M,this.element=y,this.subInstructions=v,this._enterClassName=W,this._leaveClassName=fe,this.errors=Ue,this.timelines=et,this.parentContext=null,this.currentAnimateTimings=null,this.previousNode=$r,this.subContextCount=0,this.options={},this.currentQueryIndex=0,this.currentQueryTotal=0,this.currentStaggerTime=0,this.currentTimeline=At||new Oo(this._driver,y,0),et.push(this.currentTimeline)}get params(){return this.options.params}updateOptions(M,y){if(!M)return;const v=M;let W=this.options;null!=v.duration&&(W.duration=Ft(v.duration)),null!=v.delay&&(W.delay=Ft(v.delay));const fe=v.params;if(fe){let Ue=W.params;Ue||(Ue=this.options.params={}),Object.keys(fe).forEach(et=>{(!y||!Ue.hasOwnProperty(et))&&(Ue[et]=G(fe[et],Ue,this.errors))})}}_copyOptions(){const M={};if(this.options){const y=this.options.params;if(y){const v=M.params={};Object.keys(y).forEach(W=>{v[W]=y[W]})}}return M}createSubContext(M=null,y,v){const W=y||this.element,fe=new Mo(this._driver,W,this.subInstructions,this._enterClassName,this._leaveClassName,this.errors,this.timelines,this.currentTimeline.fork(W,v||0));return fe.previousNode=this.previousNode,fe.currentAnimateTimings=this.currentAnimateTimings,fe.options=this._copyOptions(),fe.updateOptions(M),fe.currentQueryIndex=this.currentQueryIndex,fe.currentQueryTotal=this.currentQueryTotal,fe.parentContext=this,this.subContextCount++,fe}transformIntoNewTimeline(M){return this.previousNode=$r,this.currentTimeline=this.currentTimeline.fork(this.element,M),this.timelines.push(this.currentTimeline),this.currentTimeline}appendInstructionToTimeline(M,y,v){const W={duration:y??M.duration,delay:this.currentTimeline.currentTime+(v??0)+M.delay,easing:""},fe=new qi(this._driver,M.element,M.keyframes,M.preStyleProps,M.postStyleProps,W,M.stretchStartingKeyframe);return this.timelines.push(fe),W}incrementTime(M){this.currentTimeline.forwardTime(this.currentTimeline.duration+M)}delayNextStep(M){M>0&&this.currentTimeline.delayNextStep(M)}invokeQuery(M,y,v,W,fe,Ue){let et=[];if(W&&et.push(this.element),M.length>0){M=(M=M.replace(jr,"."+this._enterClassName)).replace(bn,"."+this._leaveClassName);let $t=this._driver.query(this.element,M,1!=v);0!==v&&($t=v<0?$t.slice($t.length+v,$t.length):$t.slice(0,v)),et.push(...$t)}return!fe&&0==et.length&&Ue.push(function X(z){return new r.vHH(3014,!1)}()),et}}class Oo{constructor(M,y,v,W){this._driver=M,this.element=y,this.startTime=v,this._elementTimelineStylesLookup=W,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(y),this._globalTimelineStyles||(this._globalTimelineStyles=this._localTimelineStyles,this._elementTimelineStylesLookup.set(y,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(M){const y=1===this._keyframes.size&&this._pendingStyles.size;this.duration||y?(this.forwardTime(this.currentTime+M),y&&this.snapshotCurrentStyles()):this.startTime+=M}fork(M,y){return this.applyStylesToKeyframe(),new Oo(this._driver,M,y||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(M){this.applyStylesToKeyframe(),this.duration=M,this._loadKeyframe()}_updateStyle(M,y){this._localTimelineStyles.set(M,y),this._globalTimelineStyles.set(M,y),this._styleSummary.set(M,{time:this.currentTime,value:y})}allowOnlyTimelineStyles(){return this._currentEmptyStepKeyframe!==this._currentKeyframe}applyEmptyStep(M){M&&this._previousKeyframe.set("easing",M);for(let[y,v]of this._globalTimelineStyles)this._backFill.set(y,v||b.l3),this._currentKeyframe.set(y,b.l3);this._currentEmptyStepKeyframe=this._currentKeyframe}setStyles(M,y,v,W){y&&this._previousKeyframe.set("easing",y);const fe=W&&W.params||{},Ue=function wr(z,M){const y=new Map;let v;return z.forEach(W=>{if("*"===W){v=v||M.keys();for(let fe of v)y.set(fe,b.l3)}else Ee(W,y)}),y}(M,this._globalTimelineStyles);for(let[et,At]of Ue){const $t=G(At,fe,v);this._pendingStyles.set(et,$t),this._localTimelineStyles.has(et)||this._backFill.set(et,this._globalTimelineStyles.get(et)??b.l3),this._updateStyle(et,$t)}}applyStylesToKeyframe(){0!=this._pendingStyles.size&&(this._pendingStyles.forEach((M,y)=>{this._currentKeyframe.set(y,M)}),this._pendingStyles.clear(),this._localTimelineStyles.forEach((M,y)=>{this._currentKeyframe.has(y)||this._currentKeyframe.set(y,M)}))}snapshotCurrentStyles(){for(let[M,y]of this._localTimelineStyles)this._pendingStyles.set(M,y),this._updateStyle(M,y)}getFinalKeyframe(){return this._keyframes.get(this.duration)}get properties(){const M=[];for(let y in this._currentKeyframe)M.push(y);return M}mergeTimelineCollectedStyles(M){M._styleSummary.forEach((y,v)=>{const W=this._styleSummary.get(v);(!W||y.time>W.time)&&this._updateStyle(v,y.value)})}buildKeyframes(){this.applyStylesToKeyframe();const M=new Set,y=new Set,v=1===this._keyframes.size&&0===this.duration;let W=[];this._keyframes.forEach((et,At)=>{const $t=Ee(et,new Map,this._backFill);$t.forEach((ln,Jt)=>{ln===b.k1?M.add(Jt):ln===b.l3&&y.add(Jt)}),v||$t.set("offset",At/this.duration),W.push($t)});const fe=M.size?R(M.values()):[],Ue=y.size?R(y.values()):[];if(v){const et=W[0],At=new Map(et);et.set("offset",0),At.set("offset",1),W=[et,At]}return ki(this.element,W,fe,Ue,this.duration,this.startTime,this.easing,!1)}}class qi extends Oo{constructor(M,y,v,W,fe,Ue,et=!1){super(M,y,Ue.delay),this.keyframes=v,this.preStyleProps=W,this.postStyleProps=fe,this._stretchStartingKeyframe=et,this.timings={duration:Ue.duration,delay:Ue.delay,easing:Ue.easing}}containsAnimation(){return this.keyframes.length>1}buildKeyframes(){let M=this.keyframes,{delay:y,duration:v,easing:W}=this.timings;if(this._stretchStartingKeyframe&&y){const fe=[],Ue=v+y,et=y/Ue,At=Ee(M[0]);At.set("offset",0),fe.push(At);const $t=Ee(M[0]);$t.set("offset",Hr(et)),fe.push($t);const ln=M.length-1;for(let Jt=1;Jt<=ln;Jt++){let Zn=Ee(M[Jt]);const Rn=Zn.get("offset");Zn.set("offset",Hr((y+Rn*v)/Ue)),fe.push(Zn)}v=Ue,y=0,W="",M=fe}return ki(this.element,M,this.preStyleProps,this.postStyleProps,v,y,W,!0)}}function Hr(z,M=3){const y=Math.pow(10,M-1);return Math.round(z*y)/y}class On{}const Go=new Set(["width","height","minWidth","minHeight","maxWidth","maxHeight","left","top","bottom","right","fontSize","outlineWidth","outlineOffset","paddingTop","paddingLeft","paddingBottom","paddingRight","marginTop","marginLeft","marginBottom","marginRight","borderRadius","borderWidth","borderTopWidth","borderLeftWidth","borderRightWidth","borderBottomWidth","textIndent","perspective"]);class Is extends On{normalizePropertyName(M,y){return le(M)}normalizeStyleValue(M,y,v,W){let fe="";const Ue=v.toString().trim();if(Go.has(y)&&0!==v&&"0"!==v)if("number"==typeof v)fe="px";else{const et=v.match(/^[+-]?[\d\.]+([a-z]*)$/);et&&0==et[1].length&&W.push(function m(z,M){return new r.vHH(3005,!1)}())}return Ue+fe}}function Co(z,M,y,v,W,fe,Ue,et,At,$t,ln,Jt,Zn){return{type:0,element:z,triggerName:M,isRemovalTransition:W,fromState:y,fromStyles:fe,toState:v,toStyles:Ue,timelines:et,queriedElements:At,preStyleProps:$t,postStyleProps:ln,totalTime:Jt,errors:Zn}}const Mr={};class uo{constructor(M,y,v){this._triggerName=M,this.ast=y,this._stateStyles=v}match(M,y,v,W){return function or(z,M,y,v,W){return z.some(fe=>fe(M,y,v,W))}(this.ast.matchers,M,y,v,W)}buildStyles(M,y,v){let W=this._stateStyles.get("*");return void 0!==M&&(W=this._stateStyles.get(null==M?void 0:M.toString())||W),W?W.buildStyles(y,v):new Map}build(M,y,v,W,fe,Ue,et,At,$t,ln){var Lo;const Jt=[],Zn=this.ast.options&&this.ast.options.params||Mr,pn=this.buildStyles(v,et&&et.params||Mr,Jt),Bn=At&&At.params||Mr,Oi=this.buildStyles(W,Bn,Jt),pr=new Set,Cr=new Map,Ir=new Map,dr="void"===W,ss={params:er(Bn,Zn),delay:null==(Lo=this.ast.options)?void 0:Lo.delay},Yi=ln?[]:Bo(M,y,this.ast.animation,fe,Ue,pn,Oi,ss,$t,Jt);let Kr=0;if(Yi.forEach(wo=>{Kr=Math.max(wo.duration+wo.delay,Kr)}),Jt.length)return Co(y,this._triggerName,v,W,dr,pn,Oi,[],[],Cr,Ir,Kr,Jt);Yi.forEach(wo=>{const Xs=wo.element,Cs=Pe(Cr,Xs,new Set);wo.preStyleProps.forEach(_r=>Cs.add(_r));const Ga=Pe(Ir,Xs,new Set);wo.postStyleProps.forEach(_r=>Ga.add(_r)),Xs!==y&&pr.add(Xs)});const Yo=R(pr.values());return Co(y,this._triggerName,v,W,dr,pn,Oi,Yi,Yo,Cr,Ir,Kr)}}function er(z,M){const y=pt(M);for(const v in z)z.hasOwnProperty(v)&&null!=z[v]&&(y[v]=z[v]);return y}class xr{constructor(M,y,v){this.styles=M,this.defaultParams=y,this.normalizer=v}buildStyles(M,y){const v=new Map,W=pt(this.defaultParams);return Object.keys(M).forEach(fe=>{const Ue=M[fe];null!==Ue&&(W[fe]=Ue)}),this.styles.styles.forEach(fe=>{"string"!=typeof fe&&fe.forEach((Ue,et)=>{Ue&&(Ue=G(Ue,W,y));const At=this.normalizer.normalizePropertyName(et,y);Ue=this.normalizer.normalizeStyleValue(et,At,Ue,y),v.set(et,Ue)})}),v}}class ta{constructor(M,y,v){this.name=M,this.ast=y,this._normalizer=v,this.transitionFactories=[],this.states=new Map,y.states.forEach(W=>{this.states.set(W.name,new xr(W.style,W.options&&W.options.params||{},v))}),yo(this.states,"true","1"),yo(this.states,"false","0"),y.transitions.forEach(W=>{this.transitionFactories.push(new uo(M,W,this.states))}),this.fallbackTransition=function vo(z,M,y){return new uo(z,{type:1,animation:{type:2,steps:[],options:null},matchers:[(Ue,et)=>!0],options:null,queryCount:0,depCount:0},M)}(M,this.states)}get containsQueries(){return this.ast.queryCount>0}matchTransition(M,y,v,W){return this.transitionFactories.find(Ue=>Ue.match(M,y,v,W))||null}matchStyles(M,y,v){return this.fallbackTransition.buildStyles(M,y,v)}}function yo(z,M,y){z.has(M)?z.has(y)||z.set(y,z.get(M)):z.has(y)&&z.set(M,z.get(y))}const zo=new Hi;class Ps{constructor(M,y,v){this.bodyNode=M,this._driver=y,this._normalizer=v,this._animations=new Map,this._playersById=new Map,this.players=[]}register(M,y){const v=[],fe=zi(this._driver,y,v,[]);if(v.length)throw function qe(z){return new r.vHH(3503,!1)}();this._animations.set(M,fe)}_buildPlayer(M,y,v){const W=M.element,fe=_e(this._normalizer,M.keyframes,y,v);return this._driver.animate(W,fe,M.duration,M.delay,M.easing,[],!0)}create(M,y,v={}){const W=[],fe=this._animations.get(M);let Ue;const et=new Map;if(fe?(Ue=Bo(this._driver,y,fe,at,Ot,new Map,new Map,v,zo,W),Ue.forEach(ln=>{const Jt=Pe(et,ln.element,new Map);ln.postStyleProps.forEach(Zn=>Jt.set(Zn,null))})):(W.push(function it(){return new r.vHH(3300,!1)}()),Ue=[]),W.length)throw function rt(z){return new r.vHH(3504,!1)}();et.forEach((ln,Jt)=>{ln.forEach((Zn,Rn)=>{ln.set(Rn,this._driver.computeStyle(Jt,Rn,b.l3))})});const $t=bt(Ue.map(ln=>{const Jt=et.get(ln.element);return this._buildPlayer(ln,new Map,Jt)}));return this._playersById.set(M,$t),$t.onDestroy(()=>this.destroy(M)),this.players.push($t),$t}destroy(M){const y=this._getPlayer(M);y.destroy(),this._playersById.delete(M);const v=this.players.indexOf(y);v>=0&&this.players.splice(v,1)}_getPlayer(M){const y=this._playersById.get(M);if(!y)throw function tt(z){return new r.vHH(3301,!1)}();return y}listen(M,y,v,W){const fe=Me(y,"","","");return H(this._getPlayer(M),v,fe,W),()=>{}}command(M,y,v,W){if("register"==v)return void this.register(M,W[0]);if("create"==v)return void this.create(M,y,W[0]||{});const fe=this._getPlayer(M);switch(v){case"play":fe.play();break;case"pause":fe.pause();break;case"reset":fe.reset();break;case"restart":fe.restart();break;case"finish":fe.finish();break;case"init":fe.init();break;case"setPosition":fe.setPosition(parseFloat(W[0]));break;case"destroy":this.destroy(M)}}}const Pi="ng-animate-queued",$n="ng-animate-disabled",mr=[],Ur={namespaceId:"",setForRemoval:!1,setForMove:!1,hasAnimation:!1,removedBeforeQueried:!1},$i={namespaceId:"",setForMove:!1,setForRemoval:!1,hasAnimation:!1,removedBeforeQueried:!0},sr="__ng_removed";class ho{get params(){return this.options.params}constructor(M,y=""){this.namespaceId=y;const v=M&&M.hasOwnProperty("value");if(this.value=function Ao(z){return z??null}(v?M.value:M),v){const fe=pt(M);delete fe.value,this.options=fe}else this.options={};this.options.params||(this.options.params={})}absorbOptions(M){const y=M.params;if(y){const v=this.options.params;Object.keys(y).forEach(W=>{null==v[W]&&(v[W]=y[W])})}}}const Dn="void",So=new ho(Dn);class tr{constructor(M,y,v){this.id=M,this.hostElement=y,this._engine=v,this.players=[],this._triggers=new Map,this._queue=[],this._elementListeners=new Map,this._hostClassName="ng-tns-"+M,Zi(y,this._hostClassName)}listen(M,y,v,W){if(!this._triggers.has(y))throw function _t(z,M){return new r.vHH(3302,!1)}();if(null==v||0==v.length)throw function ze(z){return new r.vHH(3303,!1)}();if(!function ts(z){return"start"==z||"done"==z}(v))throw function Ze(z,M){return new r.vHH(3400,!1)}();const fe=Pe(this._elementListeners,M,[]),Ue={name:y,phase:v,callback:W};fe.push(Ue);const et=Pe(this._engine.statesByElement,M,new Map);return et.has(y)||(Zi(M,Fe),Zi(M,Fe+"-"+y),et.set(y,So)),()=>{this._engine.afterFlush(()=>{const At=fe.indexOf(Ue);At>=0&&fe.splice(At,1),this._triggers.has(y)||et.delete(y)})}}register(M,y){return!this._triggers.has(M)&&(this._triggers.set(M,y),!0)}_getTrigger(M){const y=this._triggers.get(M);if(!y)throw function ot(z){return new r.vHH(3401,!1)}();return y}trigger(M,y,v,W=!0){const fe=this._getTrigger(y),Ue=new li(this.id,y,M);let et=this._engine.statesByElement.get(M);et||(Zi(M,Fe),Zi(M,Fe+"-"+y),this._engine.statesByElement.set(M,et=new Map));let At=et.get(y);const $t=new ho(v,this.id);if(!(v&&v.hasOwnProperty("value"))&&At&&$t.absorbOptions(At.options),et.set(y,$t),At||(At=So),$t.value!==Dn&&At.value===$t.value){if(!function fo(z,M){const y=Object.keys(z),v=Object.keys(M);if(y.length!=v.length)return!1;for(let W=0;W{ye(M,Oi),vt(M,pr)})}return}const Zn=Pe(this._engine.playersByElement,M,[]);Zn.forEach(Bn=>{Bn.namespaceId==this.id&&Bn.triggerName==y&&Bn.queued&&Bn.destroy()});let Rn=fe.matchTransition(At.value,$t.value,M,$t.params),pn=!1;if(!Rn){if(!W)return;Rn=fe.fallbackTransition,pn=!0}return this._engine.totalQueuedPlayers++,this._queue.push({element:M,triggerName:y,transition:Rn,fromState:At,toState:$t,player:Ue,isFallbackTransition:pn}),pn||(Zi(M,Pi),Ue.onStart(()=>{Xr(M,Pi)})),Ue.onDone(()=>{let Bn=this.players.indexOf(Ue);Bn>=0&&this.players.splice(Bn,1);const Oi=this._engine.playersByElement.get(M);if(Oi){let pr=Oi.indexOf(Ue);pr>=0&&Oi.splice(pr,1)}}),this.players.push(Ue),Zn.push(Ue),Ue}deregister(M){this._triggers.delete(M),this._engine.statesByElement.forEach(y=>y.delete(M)),this._elementListeners.forEach((y,v)=>{this._elementListeners.set(v,y.filter(W=>W.name!=M))})}clearElementCache(M){this._engine.statesByElement.delete(M),this._elementListeners.delete(M);const y=this._engine.playersByElement.get(M);y&&(y.forEach(v=>v.destroy()),this._engine.playersByElement.delete(M))}_signalRemovalForInnerTriggers(M,y){const v=this._engine.driver.query(M,je,!0);v.forEach(W=>{if(W[sr])return;const fe=this._engine.fetchNamespacesByElement(W);fe.size?fe.forEach(Ue=>Ue.triggerLeaveAnimation(W,y,!1,!0)):this.clearElementCache(W)}),this._engine.afterFlushAnimationsDone(()=>v.forEach(W=>this.clearElementCache(W)))}triggerLeaveAnimation(M,y,v,W){const fe=this._engine.statesByElement.get(M),Ue=new Map;if(fe){const et=[];if(fe.forEach((At,$t)=>{if(Ue.set($t,At.value),this._triggers.has($t)){const ln=this.trigger(M,$t,Dn,W);ln&&et.push(ln)}}),et.length)return this._engine.markElementAsRemoved(this.id,M,!0,y,Ue),v&&bt(et).onDone(()=>this._engine.processLeaveNode(M)),!0}return!1}prepareLeaveAnimationListeners(M){const y=this._elementListeners.get(M),v=this._engine.statesByElement.get(M);if(y&&v){const W=new Set;y.forEach(fe=>{const Ue=fe.name;if(W.has(Ue))return;W.add(Ue);const At=this._triggers.get(Ue).fallbackTransition,$t=v.get(Ue)||So,ln=new ho(Dn),Jt=new li(this.id,Ue,M);this._engine.totalQueuedPlayers++,this._queue.push({element:M,triggerName:Ue,transition:At,fromState:$t,toState:ln,player:Jt,isFallbackTransition:!0})})}}removeNode(M,y){const v=this._engine;if(M.childElementCount&&this._signalRemovalForInnerTriggers(M,y),this.triggerLeaveAnimation(M,y,!0))return;let W=!1;if(v.totalAnimations){const fe=v.players.length?v.playersByQueriedElement.get(M):[];if(fe&&fe.length)W=!0;else{let Ue=M;for(;Ue=Ue.parentNode;)if(v.statesByElement.get(Ue)){W=!0;break}}}if(this.prepareLeaveAnimationListeners(M),W)v.markElementAsRemoved(this.id,M,!1,y);else{const fe=M[sr];(!fe||fe===Ur)&&(v.afterFlush(()=>this.clearElementCache(M)),v.destroyInnerAnimations(M),v._onRemovalComplete(M,y))}}insertNode(M,y){Zi(M,this._hostClassName)}drainQueuedTransitions(M){const y=[];return this._queue.forEach(v=>{const W=v.player;if(W.destroyed)return;const fe=v.element,Ue=this._elementListeners.get(fe);Ue&&Ue.forEach(et=>{if(et.name==v.triggerName){const At=Me(fe,v.triggerName,v.fromState.value,v.toState.value);At._data=M,H(v.player,et.phase,At,et.callback)}}),W.markedForDestroy?this._engine.afterFlush(()=>{W.destroy()}):y.push(v)}),this._queue=[],y.sort((v,W)=>{const fe=v.transition.ast.depCount,Ue=W.transition.ast.depCount;return 0==fe||0==Ue?fe-Ue:this._engine.driver.containsElement(v.element,W.element)?1:-1})}destroy(M){this.players.forEach(y=>y.destroy()),this._signalRemovalForInnerTriggers(this.hostElement,M)}}class bo{_onRemovalComplete(M,y){this.onRemovalComplete(M,y)}constructor(M,y,v){this.bodyNode=M,this.driver=y,this._normalizer=v,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=(W,fe)=>{}}get queuedPlayers(){const M=[];return this._namespaceList.forEach(y=>{y.players.forEach(v=>{v.queued&&M.push(v)})}),M}createNamespace(M,y){const v=new tr(M,y,this);return this.bodyNode&&this.driver.containsElement(this.bodyNode,y)?this._balanceNamespaceList(v,y):(this.newHostElements.set(y,v),this.collectEnterElement(y)),this._namespaceLookup[M]=v}_balanceNamespaceList(M,y){const v=this._namespaceList,W=this.namespacesByHostElement;if(v.length-1>=0){let Ue=!1,et=this.driver.getParentElement(y);for(;et;){const At=W.get(et);if(At){const $t=v.indexOf(At);v.splice($t+1,0,M),Ue=!0;break}et=this.driver.getParentElement(et)}Ue||v.unshift(M)}else v.push(M);return W.set(y,M),M}register(M,y){let v=this._namespaceLookup[M];return v||(v=this.createNamespace(M,y)),v}registerTrigger(M,y,v){let W=this._namespaceLookup[M];W&&W.register(y,v)&&this.totalAnimations++}destroy(M,y){M&&(this.afterFlush(()=>{}),this.afterFlushAnimationsDone(()=>{const v=this._fetchNamespace(M);this.namespacesByHostElement.delete(v.hostElement);const W=this._namespaceList.indexOf(v);W>=0&&this._namespaceList.splice(W,1),v.destroy(y),delete this._namespaceLookup[M]}))}_fetchNamespace(M){return this._namespaceLookup[M]}fetchNamespacesByElement(M){const y=new Set,v=this.statesByElement.get(M);if(v)for(let W of v.values())if(W.namespaceId){const fe=this._fetchNamespace(W.namespaceId);fe&&y.add(fe)}return y}trigger(M,y,v,W){if(Ui(y)){const fe=this._fetchNamespace(M);if(fe)return fe.trigger(y,v,W),!0}return!1}insertNode(M,y,v,W){if(!Ui(y))return;const fe=y[sr];if(fe&&fe.setForRemoval){fe.setForRemoval=!1,fe.setForMove=!0;const Ue=this.collectedLeaveElements.indexOf(y);Ue>=0&&this.collectedLeaveElements.splice(Ue,1)}if(M){const Ue=this._fetchNamespace(M);Ue&&Ue.insertNode(y,v)}W&&this.collectEnterElement(y)}collectEnterElement(M){this.collectedEnterElements.push(M)}markElementAsDisabled(M,y){y?this.disabledNodes.has(M)||(this.disabledNodes.add(M),Zi(M,$n)):this.disabledNodes.has(M)&&(this.disabledNodes.delete(M),Xr(M,$n))}removeNode(M,y,v){if(Ui(y)){const W=M?this._fetchNamespace(M):null;W?W.removeNode(y,v):this.markElementAsRemoved(M,y,!1,v);const fe=this.namespacesByHostElement.get(y);fe&&fe.id!==M&&fe.removeNode(y,v)}else this._onRemovalComplete(y,v)}markElementAsRemoved(M,y,v,W,fe){this.collectedLeaveElements.push(y),y[sr]={namespaceId:M,setForRemoval:W,hasAnimation:v,removedBeforeQueried:!1,previousTriggersValues:fe}}listen(M,y,v,W,fe){return Ui(y)?this._fetchNamespace(M).listen(y,v,W,fe):()=>{}}_buildInstruction(M,y,v,W,fe){return M.transition.build(this.driver,M.element,M.fromState.value,M.toState.value,v,W,M.fromState.options,M.toState.options,y,fe)}destroyInnerAnimations(M){let y=this.driver.query(M,je,!0);y.forEach(v=>this.destroyActiveAnimationsForElement(v)),0!=this.playersByQueriedElement.size&&(y=this.driver.query(M,We,!0),y.forEach(v=>this.finishActiveQueriedAnimationOnElement(v)))}destroyActiveAnimationsForElement(M){const y=this.playersByElement.get(M);y&&y.forEach(v=>{v.queued?v.markedForDestroy=!0:v.destroy()})}finishActiveQueriedAnimationOnElement(M){const y=this.playersByQueriedElement.get(M);y&&y.forEach(v=>v.finish())}whenRenderingDone(){return new Promise(M=>{if(this.players.length)return bt(this.players).onDone(()=>M());M()})}processLeaveNode(M){var v;const y=M[sr];if(y&&y.setForRemoval){if(M[sr]=Ur,y.namespaceId){this.destroyInnerAnimations(M);const W=this._fetchNamespace(y.namespaceId);W&&W.clearElementCache(M)}this._onRemovalComplete(M,y.setForRemoval)}null!=(v=M.classList)&&v.contains($n)&&this.markElementAsDisabled(M,!1),this.driver.query(M,".ng-animate-disabled",!0).forEach(W=>{this.markElementAsDisabled(W,!1)})}flush(M=-1){let y=[];if(this.newHostElements.size&&(this.newHostElements.forEach((v,W)=>this._balanceNamespaceList(v,W)),this.newHostElements.clear()),this.totalAnimations&&this.collectedEnterElements.length)for(let v=0;vv()),this._flushFns=[],this._whenQuietFns.length){const v=this._whenQuietFns;this._whenQuietFns=[],y.length?bt(y).onDone(()=>{v.forEach(W=>W())}):v.forEach(W=>W())}}reportError(M){throw function Ct(z){return new r.vHH(3402,!1)}()}_flushAnimations(M,y){const v=new Hi,W=[],fe=new Map,Ue=[],et=new Map,At=new Map,$t=new Map,ln=new Set;this.disabledNodes.forEach(Sn=>{ln.add(Sn);const An=this.driver.query(Sn,".ng-animate-queued",!0);for(let kn=0;kn{const kn=at+Bn++;pn.set(An,kn),Sn.forEach(_i=>Zi(_i,kn))});const Oi=[],pr=new Set,Cr=new Set;for(let Sn=0;Snpr.add(_i)):Cr.add(An))}const Ir=new Map,dr=Fr(Zn,Array.from(pr));dr.forEach((Sn,An)=>{const kn=Ot+Bn++;Ir.set(An,kn),Sn.forEach(_i=>Zi(_i,kn))}),M.push(()=>{Rn.forEach((Sn,An)=>{const kn=pn.get(An);Sn.forEach(_i=>Xr(_i,kn))}),dr.forEach((Sn,An)=>{const kn=Ir.get(An);Sn.forEach(_i=>Xr(_i,kn))}),Oi.forEach(Sn=>{this.processLeaveNode(Sn)})});const ss=[],Yi=[];for(let Sn=this._namespaceList.length-1;Sn>=0;Sn--)this._namespaceList[Sn].drainQueuedTransitions(y).forEach(kn=>{const _i=kn.player,kr=kn.element;if(ss.push(_i),this.collectedEnterElements.length){const Pr=kr[sr];if(Pr&&Pr.setForMove){if(Pr.previousTriggersValues&&Pr.previousTriggersValues.has(kn.triggerName)){const vs=Pr.previousTriggersValues.get(kn.triggerName),Vr=this.statesByElement.get(kn.element);if(Vr&&Vr.has(kn.triggerName)){const Sa=Vr.get(kn.triggerName);Sa.value=vs,Vr.set(kn.triggerName,Sa)}}return void _i.destroy()}}const no=!Jt||!this.driver.containsElement(Jt,kr),io=Ir.get(kr),Qs=pn.get(kr),Si=this._buildInstruction(kn,v,Qs,io,no);if(Si.errors&&Si.errors.length)return void Yi.push(Si);if(no)return _i.onStart(()=>ye(kr,Si.fromStyles)),_i.onDestroy(()=>vt(kr,Si.toStyles)),void W.push(_i);if(kn.isFallbackTransition)return _i.onStart(()=>ye(kr,Si.fromStyles)),_i.onDestroy(()=>vt(kr,Si.toStyles)),void W.push(_i);const ya=[];Si.timelines.forEach(Pr=>{Pr.stretchStartingKeyframe=!0,this.disabledNodes.has(Pr.element)||ya.push(Pr)}),Si.timelines=ya,v.append(kr,Si.timelines),Ue.push({instruction:Si,player:_i,element:kr}),Si.queriedElements.forEach(Pr=>Pe(et,Pr,[]).push(_i)),Si.preStyleProps.forEach((Pr,vs)=>{if(Pr.size){let Vr=At.get(vs);Vr||At.set(vs,Vr=new Set),Pr.forEach((Sa,$l)=>Vr.add($l))}}),Si.postStyleProps.forEach((Pr,vs)=>{let Vr=$t.get(vs);Vr||$t.set(vs,Vr=new Set),Pr.forEach((Sa,$l)=>Vr.add($l))})});if(Yi.length){const Sn=[];Yi.forEach(An=>{Sn.push(function ft(z,M){return new r.vHH(3505,!1)}())}),ss.forEach(An=>An.destroy()),this.reportError(Sn)}const Kr=new Map,Yo=new Map;Ue.forEach(Sn=>{const An=Sn.element;v.has(An)&&(Yo.set(An,An),this._beforeAnimationBuild(Sn.player.namespaceId,Sn.instruction,Kr))}),W.forEach(Sn=>{const An=Sn.element;this._getPreviousPlayers(An,!1,Sn.namespaceId,Sn.triggerName,null).forEach(_i=>{Pe(Kr,An,[]).push(_i),_i.destroy()})});const Lo=Oi.filter(Sn=>yr(Sn,At,$t)),wo=new Map;Zr(wo,this.driver,Cr,$t,b.l3).forEach(Sn=>{yr(Sn,At,$t)&&Lo.push(Sn)});const Cs=new Map;Rn.forEach((Sn,An)=>{Zr(Cs,this.driver,new Set(Sn),At,b.k1)}),Lo.forEach(Sn=>{const An=wo.get(Sn),kn=Cs.get(Sn);wo.set(Sn,new Map([...(null==An?void 0:An.entries())??[],...(null==kn?void 0:kn.entries())??[]]))});const Ga=[],_r=[],Ys={};Ue.forEach(Sn=>{const{element:An,player:kn,instruction:_i}=Sn;if(v.has(An)){if(ln.has(An))return kn.onDestroy(()=>vt(An,_i.toStyles)),kn.disabled=!0,kn.overrideTotalTime(_i.totalTime),void W.push(kn);let kr=Ys;if(Yo.size>1){let io=An;const Qs=[];for(;io=io.parentNode;){const Si=Yo.get(io);if(Si){kr=Si;break}Qs.push(io)}Qs.forEach(Si=>Yo.set(Si,kr))}const no=this._buildAnimation(kn.namespaceId,_i,Kr,fe,Cs,wo);if(kn.setRealPlayer(no),kr===Ys)Ga.push(kn);else{const io=this.playersByElement.get(kr);io&&io.length&&(kn.parentPlayer=bt(io)),W.push(kn)}}else ye(An,_i.fromStyles),kn.onDestroy(()=>vt(An,_i.toStyles)),_r.push(kn),ln.has(An)&&W.push(kn)}),_r.forEach(Sn=>{const An=fe.get(Sn.element);if(An&&An.length){const kn=bt(An);Sn.setRealPlayer(kn)}}),W.forEach(Sn=>{Sn.parentPlayer?Sn.syncPlayerEvents(Sn.parentPlayer):Sn.destroy()});for(let Sn=0;Sn!no.destroyed);kr.length?In(this,An,kr):this.processLeaveNode(An)}return Oi.length=0,Ga.forEach(Sn=>{this.players.push(Sn),Sn.onDone(()=>{Sn.destroy();const An=this.players.indexOf(Sn);this.players.splice(An,1)}),Sn.play()}),Ga}afterFlush(M){this._flushFns.push(M)}afterFlushAnimationsDone(M){this._whenQuietFns.push(M)}_getPreviousPlayers(M,y,v,W,fe){let Ue=[];if(y){const et=this.playersByQueriedElement.get(M);et&&(Ue=et)}else{const et=this.playersByElement.get(M);if(et){const At=!fe||fe==Dn;et.forEach($t=>{$t.queued||!At&&$t.triggerName!=W||Ue.push($t)})}}return(v||W)&&(Ue=Ue.filter(et=>!(v&&v!=et.namespaceId||W&&W!=et.triggerName))),Ue}_beforeAnimationBuild(M,y,v){const fe=y.element,Ue=y.isRemovalTransition?void 0:M,et=y.isRemovalTransition?void 0:y.triggerName;for(const At of y.timelines){const $t=At.element,ln=$t!==fe,Jt=Pe(v,$t,[]);this._getPreviousPlayers($t,ln,Ue,et,y.toState).forEach(Rn=>{const pn=Rn.getRealPlayer();pn.beforeDestroy&&pn.beforeDestroy(),Rn.destroy(),Jt.push(Rn)})}ye(fe,y.fromStyles)}_buildAnimation(M,y,v,W,fe,Ue){const et=y.triggerName,At=y.element,$t=[],ln=new Set,Jt=new Set,Zn=y.timelines.map(pn=>{const Bn=pn.element;ln.add(Bn);const Oi=Bn[sr];if(Oi&&Oi.removedBeforeQueried)return new b.ZN(pn.duration,pn.delay);const pr=Bn!==At,Cr=function Yr(z){const M=[];return hr(z,M),M}((v.get(Bn)||mr).map(Kr=>Kr.getRealPlayer())).filter(Kr=>!!Kr.element&&Kr.element===Bn),Ir=fe.get(Bn),dr=Ue.get(Bn),ss=_e(this._normalizer,pn.keyframes,Ir,dr),Yi=this._buildPlayer(pn,ss,Cr);if(pn.subTimeline&&W&&Jt.add(Bn),pr){const Kr=new li(M,et,Bn);Kr.setRealPlayer(Yi),$t.push(Kr)}return Yi});$t.forEach(pn=>{Pe(this.playersByQueriedElement,pn.element,[]).push(pn),pn.onDone(()=>function fs(z,M,y){let v=z.get(M);if(v){if(v.length){const W=v.indexOf(y);v.splice(W,1)}0==v.length&&z.delete(M)}return v}(this.playersByQueriedElement,pn.element,pn))}),ln.forEach(pn=>Zi(pn,kt));const Rn=bt(Zn);return Rn.onDestroy(()=>{ln.forEach(pn=>Xr(pn,kt)),vt(At,y.toStyles)}),Jt.forEach(pn=>{Pe(W,pn,[]).push(Rn)}),Rn}_buildPlayer(M,y,v){return y.length>0?this.driver.animate(M.element,y,M.duration,M.delay,M.easing,v):new b.ZN(M.duration,M.delay)}}class li{constructor(M,y,v){this.namespaceId=M,this.triggerName=y,this.element=v,this._player=new b.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(M){this._containsRealPlayer||(this._player=M,this._queuedCallbacks.forEach((y,v)=>{y.forEach(W=>H(M,v,void 0,W))}),this._queuedCallbacks.clear(),this._containsRealPlayer=!0,this.overrideTotalTime(M.totalTime),this.queued=!1)}getRealPlayer(){return this._player}overrideTotalTime(M){this.totalTime=M}syncPlayerEvents(M){const y=this._player;y.triggerCallback&&M.onStart(()=>y.triggerCallback("start")),M.onDone(()=>this.finish()),M.onDestroy(()=>this.destroy())}_queueEvent(M,y){Pe(this._queuedCallbacks,M,[]).push(y)}onDone(M){this.queued&&this._queueEvent("done",M),this._player.onDone(M)}onStart(M){this.queued&&this._queueEvent("start",M),this._player.onStart(M)}onDestroy(M){this.queued&&this._queueEvent("destroy",M),this._player.onDestroy(M)}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(M){this.queued||this._player.setPosition(M)}getPosition(){return this.queued?0:this._player.getPosition()}triggerCallback(M){const y=this._player;y.triggerCallback&&y.triggerCallback(M)}}function Ui(z){return z&&1===z.nodeType}function na(z,M){const y=z.style.display;return z.style.display=M??"none",y}function Zr(z,M,y,v,W){const fe=[];y.forEach(At=>fe.push(na(At)));const Ue=[];v.forEach((At,$t)=>{const ln=new Map;At.forEach(Jt=>{const Zn=M.computeStyle($t,Jt,W);ln.set(Jt,Zn),(!Zn||0==Zn.length)&&($t[sr]=$i,Ue.push($t))}),z.set($t,ln)});let et=0;return y.forEach(At=>na(At,fe[et++])),Ue}function Fr(z,M){const y=new Map;if(z.forEach(et=>y.set(et,[])),0==M.length)return y;const W=new Set(M),fe=new Map;function Ue(et){if(!et)return 1;let At=fe.get(et);if(At)return At;const $t=et.parentNode;return At=y.has($t)?$t:W.has($t)?1:Ue($t),fe.set(et,At),At}return M.forEach(et=>{const At=Ue(et);1!==At&&y.get(At).push(et)}),y}function Zi(z,M){var y;null==(y=z.classList)||y.add(M)}function Xr(z,M){var y;null==(y=z.classList)||y.remove(M)}function In(z,M,y){bt(y).onDone(()=>z.processLeaveNode(M))}function hr(z,M){for(let y=0;yW.add(fe)):M.set(z,v),y.delete(z),!0}class Sr{constructor(M,y,v){this.bodyNode=M,this._driver=y,this._normalizer=v,this._triggerCache={},this.onRemovalComplete=(W,fe)=>{},this._transitionEngine=new bo(M,y,v),this._timelineEngine=new Ps(M,y,v),this._transitionEngine.onRemovalComplete=(W,fe)=>this.onRemovalComplete(W,fe)}registerTrigger(M,y,v,W,fe){const Ue=M+"-"+W;let et=this._triggerCache[Ue];if(!et){const At=[],ln=zi(this._driver,fe,At,[]);if(At.length)throw function $e(z,M){return new r.vHH(3404,!1)}();et=function ur(z,M,y){return new ta(z,M,y)}(W,ln,this._normalizer),this._triggerCache[Ue]=et}this._transitionEngine.registerTrigger(y,W,et)}register(M,y){this._transitionEngine.register(M,y)}destroy(M,y){this._transitionEngine.destroy(M,y)}onInsert(M,y,v,W){this._transitionEngine.insertNode(M,y,v,W)}onRemove(M,y,v){this._transitionEngine.removeNode(M,y,v)}disableAnimations(M,y){this._transitionEngine.markElementAsDisabled(M,y)}process(M,y,v,W){if("@"==v.charAt(0)){const[fe,Ue]=dt(v);this._timelineEngine.command(fe,y,Ue,W)}else this._transitionEngine.trigger(M,y,v,W)}listen(M,y,v,W,fe){if("@"==v.charAt(0)){const[Ue,et]=dt(v);return this._timelineEngine.listen(Ue,y,et,fe)}return this._transitionEngine.listen(M,y,v,W,fe)}flush(M=-1){this._transitionEngine.flush(M)}get players(){return[...this._transitionEngine.players,...this._timelineEngine.players]}whenRenderingDone(){return this._transitionEngine.whenRenderingDone()}afterFlushAnimationsDone(M){this._transitionEngine.afterFlushAnimationsDone(M)}}let Ko=(()=>{class M{constructor(v,W,fe){this._element=v,this._startStyles=W,this._endStyles=fe,this._state=0;let Ue=M.initialStylesByElement.get(v);Ue||M.initialStylesByElement.set(v,Ue=new Map),this._initialStyles=Ue}start(){this._state<1&&(this._startStyles&&vt(this._element,this._startStyles,this._initialStyles),this._state=1)}finish(){this.start(),this._state<2&&(vt(this._element,this._initialStyles),this._endStyles&&(vt(this._element,this._endStyles),this._endStyles=null),this._state=1)}destroy(){this.finish(),this._state<3&&(M.initialStylesByElement.delete(this._element),this._startStyles&&(ye(this._element,this._startStyles),this._endStyles=null),this._endStyles&&(ye(this._element,this._endStyles),this._endStyles=null),vt(this._element,this._initialStyles),this._state=3)}}return M.initialStylesByElement=new WeakMap,M})();function Gn(z){let M=null;return z.forEach((y,v)=>{(function gs(z){return"display"===z||"position"===z})(v)&&(M=M||new Map,M.set(v,y))}),M}class ar{constructor(M,y,v,W){this.element=M,this.keyframes=y,this.options=v,this._specialStyles=W,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=v.duration,this._delay=v.delay||0,this.time=this._duration+this._delay}_onFinish(){this._finished||(this._finished=!0,this._onDoneFns.forEach(M=>M()),this._onDoneFns=[])}init(){this._buildPlayer(),this._preparePlayerBeforeStart()}_buildPlayer(){if(this._initialized)return;this._initialized=!0;const M=this.keyframes;this.domPlayer=this._triggerWebAnimation(this.element,M,this.options),this._finalKeyframe=M.length?M[M.length-1]:new Map,this.domPlayer.addEventListener("finish",()=>this._onFinish())}_preparePlayerBeforeStart(){this._delay?this._resetDomPlayerState():this.domPlayer.pause()}_convertKeyframesToObject(M){const y=[];return M.forEach(v=>{y.push(Object.fromEntries(v))}),y}_triggerWebAnimation(M,y,v){return M.animate(this._convertKeyframesToObject(y),v)}onStart(M){this._originalOnStartFns.push(M),this._onStartFns.push(M)}onDone(M){this._originalOnDoneFns.push(M),this._onDoneFns.push(M)}onDestroy(M){this._onDestroyFns.push(M)}play(){this._buildPlayer(),this.hasStarted()||(this._onStartFns.forEach(M=>M()),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(M=>M()),this._onDestroyFns=[])}setPosition(M){void 0===this.domPlayer&&this.init(),this.domPlayer.currentTime=M*this.time}getPosition(){return+(this.domPlayer.currentTime??0)/this.time}get totalTime(){return this._delay+this._duration}beforeDestroy(){const M=new Map;this.hasStarted()&&this._finalKeyframe.forEach((v,W)=>{"offset"!==W&&M.set(W,this._finished?v:mn(this.element,W))}),this.currentSnapshot=M}triggerCallback(M){const y="start"===M?this._onStartFns:this._onDoneFns;y.forEach(v=>v()),y.length=0}}class Vi{validateStyleProperty(M){return!0}validateAnimatableStyleProperty(M){return!0}matchesElement(M,y){return!1}containsElement(M,y){return Ut(M,y)}getParentElement(M){return Qt(M)}query(M,y,v){return Bt(M,y,v)}computeStyle(M,y,v){return window.getComputedStyle(M)[y]}animate(M,y,v,W,fe,Ue=[]){const At={duration:v,delay:W,fill:0==W?"both":"forwards"};fe&&(At.easing=fe);const $t=new Map,ln=Ue.filter(Rn=>Rn instanceof ar);(function ht(z,M){return 0===z||0===M})(v,W)&&ln.forEach(Rn=>{Rn.currentSnapshot.forEach((pn,Bn)=>$t.set(Bn,pn))});let Jt=function Zt(z){return z.length?z[0]instanceof Map?z:z.map(M=>St(M)):[]}(y).map(Rn=>Ee(Rn));Jt=function Gt(z,M,y){if(y.size&&M.length){let v=M[0],W=[];if(y.forEach((fe,Ue)=>{v.has(Ue)||W.push(Ue),v.set(Ue,fe)}),W.length)for(let fe=1;feUe.set(et,mn(z,et)))}}return M}(M,Jt,$t);const Zn=function Qr(z,M){let y=null,v=null;return Array.isArray(M)&&M.length?(y=Gn(M[0]),M.length>1&&(v=Gn(M[M.length-1]))):M instanceof Map&&(y=Gn(M)),y||v?new Ko(z,y,v):null}(M,Jt);return new ar(M,Jt,At,Zn)}}var ci=s(96814);let ps=(()=>{var z;class M extends b._j{constructor(v,W){super(),this._nextAnimationId=0,this._renderer=v.createRenderer(W.body,{id:"0",encapsulation:r.ifc.None,styles:[],data:{animation:[]}})}build(v){const W=this._nextAnimationId.toString();this._nextAnimationId++;const fe=Array.isArray(v)?(0,b.vP)(v):v;return Do(this._renderer,null,W,"register",[fe]),new Ns(W,this._renderer)}}return(z=M).\u0275fac=function(v){return new(v||z)(r.LFG(r.FYo),r.LFG(ci.K0))},z.\u0275prov=r.Yz7({token:z,factory:z.\u0275fac}),M})();class Ns extends b.LC{constructor(M,y){super(),this._id=M,this._renderer=y}create(M,y){return new fr(this._id,M,y||{},this._renderer)}}class fr{constructor(M,y,v,W){this.id=M,this.element=y,this._renderer=W,this.parentPlayer=null,this._started=!1,this.totalTime=0,this._command("create",v)}_listen(M,y){return this._renderer.listen(this.element,`@@${this.id}:${M}`,y)}_command(M,...y){return Do(this._renderer,this.element,this.id,M,y)}onDone(M){this._listen("done",M)}onStart(M){this._listen("start",M)}onDestroy(M){this._listen("destroy",M)}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(M){this._command("setPosition",M)}getPosition(){var M;return(null==(M=this._renderer.engine.players[+this.id])?void 0:M.getPosition())??0}}function Do(z,M,y,v,W){return z.setProperty(M,`@@${y}:${v}`,W)}const ms="@.disabled";let rl=(()=>{var z;class M{constructor(v,W,fe){this.delegate=v,this.engine=W,this._zone=fe,this._currentId=0,this._microtaskId=1,this._animationCallbacksBuffer=[],this._rendererCache=new Map,this._cdRecurDepth=0,W.onRemovalComplete=(Ue,et)=>{const At=null==et?void 0:et.parentNode(Ue);At&&et.removeChild(At,Ue)}}createRenderer(v,W){const Ue=this.delegate.createRenderer(v,W);if(!(v&&W&&W.data&&W.data.animation)){let Jt=this._rendererCache.get(Ue);return Jt||(Jt=new Ks("",Ue,this.engine,()=>this._rendererCache.delete(Ue)),this._rendererCache.set(Ue,Jt)),Jt}const et=W.id,At=W.id+"-"+this._currentId;this._currentId++,this.engine.register(At,v);const $t=Jt=>{Array.isArray(Jt)?Jt.forEach($t):this.engine.registerTrigger(et,At,v,Jt.name,Jt)};return W.data.animation.forEach($t),new ae(this,At,Ue,this.engine)}begin(){this._cdRecurDepth++,this.delegate.begin&&this.delegate.begin()}_scheduleCountTask(){queueMicrotask(()=>{this._microtaskId++})}scheduleListenerCallback(v,W,fe){v>=0&&vW(fe)):(0==this._animationCallbacksBuffer.length&&queueMicrotask(()=>{this._zone.run(()=>{this._animationCallbacksBuffer.forEach(Ue=>{const[et,At]=Ue;et(At)}),this._animationCallbacksBuffer=[]})}),this._animationCallbacksBuffer.push([W,fe]))}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(z=M).\u0275fac=function(v){return new(v||z)(r.LFG(r.FYo),r.LFG(Sr),r.LFG(r.R0b))},z.\u0275prov=r.Yz7({token:z,factory:z.\u0275fac}),M})();class Ks{constructor(M,y,v,W){this.namespaceId=M,this.delegate=y,this.engine=v,this._onDestroy=W}get data(){return this.delegate.data}destroyNode(M){var y,v;null==(v=(y=this.delegate).destroyNode)||v.call(y,M)}destroy(){var M;this.engine.destroy(this.namespaceId,this.delegate),this.engine.afterFlushAnimationsDone(()=>{queueMicrotask(()=>{this.delegate.destroy()})}),null==(M=this._onDestroy)||M.call(this)}createElement(M,y){return this.delegate.createElement(M,y)}createComment(M){return this.delegate.createComment(M)}createText(M){return this.delegate.createText(M)}appendChild(M,y){this.delegate.appendChild(M,y),this.engine.onInsert(this.namespaceId,y,M,!1)}insertBefore(M,y,v,W=!0){this.delegate.insertBefore(M,y,v),this.engine.onInsert(this.namespaceId,y,M,W)}removeChild(M,y,v){this.engine.onRemove(this.namespaceId,y,this.delegate)}selectRootElement(M,y){return this.delegate.selectRootElement(M,y)}parentNode(M){return this.delegate.parentNode(M)}nextSibling(M){return this.delegate.nextSibling(M)}setAttribute(M,y,v,W){this.delegate.setAttribute(M,y,v,W)}removeAttribute(M,y,v){this.delegate.removeAttribute(M,y,v)}addClass(M,y){this.delegate.addClass(M,y)}removeClass(M,y){this.delegate.removeClass(M,y)}setStyle(M,y,v,W){this.delegate.setStyle(M,y,v,W)}removeStyle(M,y,v){this.delegate.removeStyle(M,y,v)}setProperty(M,y,v){"@"==y.charAt(0)&&y==ms?this.disableAnimations(M,!!v):this.delegate.setProperty(M,y,v)}setValue(M,y){this.delegate.setValue(M,y)}listen(M,y,v){return this.delegate.listen(M,y,v)}disableAnimations(M,y){this.engine.disableAnimations(M,y)}}class ae extends Ks{constructor(M,y,v,W,fe){super(y,v,W,fe),this.factory=M,this.namespaceId=y}setProperty(M,y,v){"@"==y.charAt(0)?"."==y.charAt(1)&&y==ms?this.disableAnimations(M,v=void 0===v||!!v):this.engine.process(this.namespaceId,M,y.slice(1),v):this.delegate.setProperty(M,y,v)}listen(M,y,v){if("@"==y.charAt(0)){const W=function Q(z){switch(z){case"body":return document.body;case"document":return document;case"window":return window;default:return z}}(M);let fe=y.slice(1),Ue="";return"@"!=fe.charAt(0)&&([fe,Ue]=function Ae(z){const M=z.indexOf(".");return[z.substring(0,M),z.slice(M+1)]}(fe)),this.engine.listen(this.namespaceId,W,fe,Ue,et=>{this.factory.scheduleListenerCallback(et._data||-1,v,et)})}return this.delegate.listen(M,y,v)}}const vn=[{provide:b._j,useClass:ps},{provide:On,useFactory:function Le(){return new Is}},{provide:Sr,useClass:(()=>{var z;class M extends Sr{constructor(v,W,fe,Ue){super(v.body,W,fe)}ngOnDestroy(){this.flush()}}return(z=M).\u0275fac=function(v){return new(v||z)(r.LFG(ci.K0),r.LFG(oe),r.LFG(On),r.LFG(r.z2F))},z.\u0275prov=r.Yz7({token:z,factory:z.\u0275fac}),M})()},{provide:r.FYo,useFactory:function on(z,M,y){return new rl(z,M,y)},deps:[a.se,Sr,r.R0b]}],Er=[{provide:oe,useFactory:()=>new Vi},{provide:r.QbO,useValue:"BrowserAnimations"},...vn],go=[{provide:oe,useClass:nt},{provide:r.QbO,useValue:"NoopAnimations"},...vn];let Or=(()=>{var z;class M{static withConfig(v){return{ngModule:M,providers:v.disableAnimations?go:Er}}}return(z=M).\u0275fac=function(v){return new(v||z)},z.\u0275mod=r.oAB({type:z}),z.\u0275inj=r.cJS({providers:Er,imports:[a.b2]}),M})();var Bi=s(20553),Wi=s(88165),Wo=s(6666),Vs=s(30414),Ws=s(94505);function To(z,M){if(1&z){const y=r.EpF();r.TgZ(0,"button",11),r.NdJ("click",function(){r.CHM(y);const W=r.oxw();return r.KtG(W.onDismiss())}),r.SDv(1,12),r.qZA()}}const jo=[{path:"",component:(()=>{var z;class M{constructor(v,W){this.window=v,this._cookieService=W,this.canDismiss=Bi.N.CAN_DISABLE_TEST_WARNING_BANNER,this.display="none",this.labelWarning="Warning, testing website",this.hostUrl=v.location.host,(!this._cookieService.get("testWarningCookie")||!this.canDismiss)&&(this.display="auto")}onDismiss(){this.display="none",this._cookieService.set("testWarningCookie","dont show message",365)}ngOnInit(){}}return(z=M).\u0275fac=function(v){return new(v||z)(r.Y36(Wo.m9),r.Y36(Vs.N))},z.\u0275cmp=r.Xpm({type:z,selectors:[["app-environment-banner"]],hostVars:2,hostBindings:function(v,W){2&v&&r.Udp("display",W.display)},decls:32,vars:3,consts:function(){let y,v,W,fe,Ue,et,At;return y="Warning!",v="is a test website.",W="is the official website. Sandbox only sends email messages to",fe="mailinator.com",Ue="email addresses, see Sandbox FAQ for",et="more information",At="Dismiss",[[1,"alert","alert-banner","mat-body-1"],y,v,["href","https://orcid.org","target","orcid.org",1,"mat-button-font","black-url"],W,["href","https://mailinator.com",1,"mat-button-font","black-url"],fe,Ue,["href","https://support.orcid.org/hc/articles/360006972573","target","common.js.domain.warn.more_information",1,"mat-button-font","black-url"],et,["mat-flat-button","","color","primary",3,"click",4,"ngIf"],["mat-flat-button","","color","primary",3,"click"],At]},template:function(v,W){1&v&&(r.TgZ(0,"section",0),r._uU(1,"\n "),r.TgZ(2,"p"),r._uU(3,"\n "),r.ynx(4),r.SDv(5,1),r.BQk(),r._uU(6,"\n "),r.ynx(7),r._uU(8),r.BQk(),r._uU(9,"\n "),r.ynx(10),r.SDv(11,2),r.BQk(),r._uU(12,"\n "),r.TgZ(13,"a",3),r._uU(14,"orcid.org"),r.qZA(),r._uU(15,"\n "),r.ynx(16),r.SDv(17,4),r.BQk(),r._uU(18,"\n "),r.TgZ(19,"a",5),r.SDv(20,6),r.qZA(),r._uU(21,"\n "),r.ynx(22),r.SDv(23,7),r.BQk(),r._uU(24,"\n "),r.TgZ(25,"a",8),r.SDv(26,9),r.qZA(),r._uU(27,"\n "),r.qZA(),r._uU(28,"\n "),r.YNc(29,To,2,0,"button",10),r._uU(30,"\n"),r.qZA(),r._uU(31,"\n")),2&v&&(r.uIk("aria-label",W.labelWarning),r.xp6(8),r.Oqu(W.hostUrl),r.xp6(21),r.Q6J("ngIf",W.canDismiss))},dependencies:[ci.O5,Ws.eB],styles:["[_nghost-%COMP%]{background-color:#f5c120;display:flex;padding:15px}.alert-banner[_ngcontent-%COMP%]{display:flex;flex-direction:row;align-items:center;width:100%;justify-content:space-between}button[_ngcontent-%COMP%]{flex-shrink:0}.mat-body-1[_ngcontent-%COMP%] p[_ngcontent-%COMP%]{margin:0}.columns-12 [_nghost-%COMP%] .alert-banner[_ngcontent-%COMP%] > div[_ngcontent-%COMP%]{padding-right:15px}.columns-8 [_nghost-%COMP%] .alert-banner[_ngcontent-%COMP%], .columns-4 [_nghost-%COMP%] .alert-banner[_ngcontent-%COMP%]{flex-direction:column;align-items:flex-end}"]}),M})(),outlet:"banner"}];let Il=(()=>{var z;class M{}return(z=M).\u0275fac=function(v){return new(v||z)},z.\u0275mod=r.oAB({type:z}),z.\u0275inj=r.cJS({imports:[Wi.Bz.forChild(jo)]}),M})(),lr=(()=>{var z;class M{}return(z=M).\u0275fac=function(v){return new(v||z)},z.\u0275mod=r.oAB({type:z}),z.\u0275inj=r.cJS({imports:[ci.ez,Il,Ws.yu]}),M})();var Fn=s(34221),Di=s(96124),gr=s(12160);let Es=(()=>{var z;class M{constructor(v,W){this._userInfo=v,this._router=W}canActivateChild(v,W){return this._userInfo.getUserSession().pipe((0,Di.U)(fe=>fe.loggedIn||this._router.createUrlTree([Fn.NE.signin])))}}return(z=M).\u0275fac=function(v){return new(v||z)(r.LFG(gr.KD),r.LFG(Wi.F0))},z.\u0275prov=r.Yz7({token:z,factory:z.\u0275fac,providedIn:"root"}),M})();var ra=s(92147),Jr=s(49193),Io=s(49870),qr=s(77504),Rs=s(51418),ns=s(75222),Ho=s(62413),oa=s(30742),is=s(71142),js=s(39359),po=s(4049);let It=(()=>{var z;class M{constructor(v,W,fe,Ue,et,At){this._user=v,this._router=W,this._platform=fe,this.window=Ue,this._googleTagManagerService=et,this._errorHandler=At}canActivateChild(v,W){return this._user.getUserSession().pipe((0,Rs.q)(1),(0,ns.w)(fe=>{var et;const Ue=fe.oauthSession;if("true"===(null==(et=fe.userInfo)?void 0:et.LOCKED))return(0,Jr.of)(this._router.createUrlTree(["/my-orcid"]));if(Ue){if(Ue.error)return(0,Jr.of)(!0);if(Ue&&Ue.redirectUrl&&Ue.responseType&&Ue.redirectUrl.includes(Ue.responseType+"="))return this.reportAlreadyAuthorize(Ue);if(Ue.forceLogin||!fe.oauthSessionIsLoggedIn)return this.redirectToLoginPage(Ue)}return(0,Jr.of)(!0)}))}sendUserToRedirectURL(v){return this.window.location.href=v.redirectUrl,Io.C}reportAlreadyAuthorize(v){const W=[];return W.push(this._googleTagManagerService.reportEvent("Reauthorize",v)),(0,qr.D)(W).pipe((0,Ho.K)(fe=>(this._errorHandler.handleError(fe,oa.l.STANDARD_NO_VERBOSE_NO_GA),this.sendUserToRedirectURL(v))),(0,ns.w)(()=>Io.C))}redirectToLoginPage(v){return this._platform.get().pipe((0,Di.U)(W=>{const fe={...W.queryParameters,redirect_uri:v.redirectUrl};return this._router.createUrlTree(["/signin"],{queryParams:fe})}))}}return(z=M).\u0275fac=function(v){return new(v||z)(r.LFG(gr.KD),r.LFG(Wi.F0),r.LFG(is.tu),r.LFG(Wo.m9),r.LFG(js.k),r.LFG(po.q))},z.\u0275prov=r.Yz7({token:z,factory:z.\u0275fac,providedIn:"root"}),M})(),Ht=(()=>{var z;class M{constructor(v,W){this._user=v,this._router=W}canActivateChild(v,W){return this._user.getUserSession().pipe((0,Di.U)(fe=>!(fe.oauthSession&&!fe.oauthSession.forceLogin&&fe.oauthSessionIsLoggedIn)||this._router.createUrlTree(["/oauth/authorize"],{queryParams:v.queryParams})))}}return(z=M).\u0275fac=function(v){return new(v||z)(r.LFG(gr.KD),r.LFG(Wi.F0))},z.\u0275prov=r.Yz7({token:z,factory:z.\u0275fac,providedIn:"root"}),M})();var zt=s(26084);let Cn=(()=>{var z;class M{constructor(v,W,fe,Ue){this._userInfo=v,this._router=W,this._platformInfo=fe,this._oauthService=Ue}canActivateChild(v,W){return this._userInfo.getUserSession().pipe((0,Rs.q)(1),(0,Di.U)(fe=>{var Ue,et;return!(null==(et=null==(Ue=fe.thirdPartyAuthData)?void 0:Ue.signinData)||!et.providerId)||this._router.createUrlTree(["/signin"])}),(0,Ho.K)(()=>(0,Jr.of)(this._router.createUrlTree(["/signin"]))))}}return(z=M).\u0275fac=function(v){return new(v||z)(r.LFG(gr.KD),r.LFG(Wi.F0),r.LFG(is.tu),r.LFG(zt.D))},z.\u0275prov=r.Yz7({token:z,factory:z.\u0275fac,providedIn:"root"}),M})();var Wn=s(17927),fi=s(54969);const nr="lang_refresh";let vi=(()=>{var z;class M{constructor(v,W,fe,Ue,et,At){this.locale=v,this._user=W,this.window=fe,this._errorHandler=Ue,this._languageService=et,this._cookie=At}canActivateChild(v,W){let fe;return this._user.getUserSession().pipe((0,Wn.b)(()=>{fe=this.getLanguageContext(v.queryParams),Bi.N.debugger&&console.debug("language context",fe)}),(0,ns.w)(()=>this.currentAppLanguageMatchTheParamLanguage(fe)?(this._cookie.delete(nr),(0,Jr.of)(!0)):this._languageService.changeLanguage(fe.param).pipe((0,ns.w)(()=>(0,Jr.of)(this.window.location.href=(null==W?void 0:W.url)||"/").pipe((0,ns.w)(()=>Io.C))))),(0,ns.w)(()=>this.currentAppLanguageMatchCookieLanguage(fe)?(this._cookie.delete(nr),(0,Jr.of)(!0)):this._cookie.get(nr)!==fe.cookie?(this._cookie.set(nr,fe.cookie),(0,Jr.of)(this.window.location.href=(null==W?void 0:W.url)||"/").pipe((0,ns.w)(()=>Io.C))):this._errorHandler.handleError(new Error("cacheIssueDetected/"))),(0,Ho.K)(()=>(0,Jr.of)(!0)))}getLanguageContext(v){return{param:this.normalizeLanguageCode(v.lang||v.LANG),app:this.normalizeLanguageCode(this.locale),cookie:this.normalizeLanguageCode(this._cookie.get("locale_v3"))}}normalizeLanguageCode(v){return v&&v.toLocaleLowerCase().replace("_","-")}currentAppLanguageMatchTheParamLanguage(v){return!(v.param&&v.app&&-1===v.app.indexOf(v.param))}currentAppLanguageMatchCookieLanguage(v){return!(v.app&&-1===v.app.indexOf(v.cookie||"en"))}}return(z=M).\u0275fac=function(v){return new(v||z)(r.LFG(r.soG),r.LFG(gr.KD),r.LFG(Wo.m9),r.LFG(po.q),r.LFG(fi.T),r.LFG(Vs.N))},z.\u0275prov=r.Yz7({token:z,factory:z.\u0275fac,providedIn:"root"}),M})();var sa=s(88419);let Ua=(()=>{var z;class M{constructor(v,W,fe,Ue,et){this._router=v,this.window=W,this._googleTagManagerService=fe,this._errorHandler=Ue,this._user=et}canActivateChild(v,W){return this._user.getUserSession().pipe((0,sa.P)(),(0,Di.U)(fe=>fe.oauthSession),(0,Di.U)(fe=>{const Ue=[];return Ue.push(this._googleTagManagerService.reportEvent("Sign-In",fe||"Website")),this._googleTagManagerService.addGtmToDom().pipe((0,Ho.K)(et=>this._errorHandler.handleError(et,oa.l.STANDARD_NO_VERBOSE_NO_GA))).subscribe(et=>{et&&(0,qr.D)(Ue).pipe((0,Ho.K)(At=>this._errorHandler.handleError(At,oa.l.STANDARD_NO_VERBOSE_NO_GA))).subscribe()}),this._router.parseUrl(W.url.replace(/\/third-party-signin-completed/,""))}))}}return(z=M).\u0275fac=function(v){return new(v||z)(r.LFG(Wi.F0),r.LFG(Wo.m9),r.LFG(js.k),r.LFG(po.q),r.LFG(gr.KD))},z.\u0275prov=r.Yz7({token:z,factory:z.\u0275fac,providedIn:"root"}),M})(),mo=(()=>{var z;class M{constructor(v,W,fe,Ue){this._userInfo=v,this._router=W,this._platformInfo=fe,this._oauthService=Ue}canActivateChild(v,W){return this._userInfo.getUserSession().pipe((0,Rs.q)(1),(0,Di.U)(fe=>!fe.loggedIn||this._router.createUrlTree(["/my-orcid"])))}}return(z=M).\u0275fac=function(v){return new(v||z)(r.LFG(gr.KD),r.LFG(Wi.F0),r.LFG(is.tu),r.LFG(zt.D))},z.\u0275prov=r.Yz7({token:z,factory:z.\u0275fac,providedIn:"root"}),M})();var Ms=s(23291),Ls=s(23738);let Po=(()=>{var z;class M{constructor(v,W,fe){this._userInfo=v,this._router=W,this._togglz=fe}canActivateChild(v,W){return(0,Ms.aj)([this._userInfo.getUserSession()]).pipe((0,Di.U)(fe=>{const Ue=fe[0];return!!(Ue.loggedIn&&"false"===Ue.userInfo.IN_DELEGATION_MODE||"true"===Ue.userInfo.DELEGATED_BY_ADMIN)||this._router.createUrlTree([Fn.NE.myOrcid])}))}}return(z=M).\u0275fac=function(v){return new(v||z)(r.LFG(gr.KD),r.LFG(Wi.F0),r.LFG(Ls.b))},z.\u0275prov=r.Yz7({token:z,factory:z.\u0275fac,providedIn:"root"}),M})();const x=[{path:Fn.NE.home,loadChildren:()=>Promise.all([s.e(438),s.e(592),s.e(584)]).then(s.bind(s,38584)).then(z=>z.HomeModule)},{matcher:Fn.tt,loadChildren:()=>Promise.all([s.e(187),s.e(481),s.e(438),s.e(492),s.e(592),s.e(870)]).then(s.bind(s,1236)).then(z=>z.TrustedSummaryModule)},{matcher:Fn.U6,loadChildren:()=>Promise.all([s.e(187),s.e(965),s.e(120),s.e(481),s.e(438),s.e(559),s.e(492),s.e(328),s.e(36),s.e(230),s.e(318),s.e(693),s.e(592),s.e(384)]).then(s.bind(s,65384)).then(z=>z.RecordModule)},{path:Fn.NE.inbox,canActivateChild:[Es],loadChildren:()=>Promise.all([s.e(187),s.e(965),s.e(120),s.e(481),s.e(438),s.e(559),s.e(492),s.e(328),s.e(592),s.e(225)]).then(s.bind(s,4225)).then(z=>z.InboxModule)},{path:Fn.NE.authorize,canActivateChild:[vi,It],loadChildren:()=>Promise.all([s.e(965),s.e(481),s.e(592),s.e(680)]).then(s.bind(s,86680)).then(z=>z.AuthorizeModule)},{path:Fn.NE.institutional,loadChildren:()=>Promise.all([s.e(187),s.e(965),s.e(120),s.e(318),s.e(299)]).then(s.bind(s,24299)).then(z=>z.InstitutionalModule)},{path:Fn.NE.social,canActivateChild:[Cn],loadChildren:()=>Promise.all([s.e(187),s.e(965),s.e(120),s.e(251),s.e(294),s.e(358)]).then(s.bind(s,30358)).then(z=>z.LinkAccountModule)},{path:Fn.NE.institutionalLinking,canActivateChild:[Cn],loadChildren:()=>Promise.all([s.e(187),s.e(965),s.e(120),s.e(251),s.e(294),s.e(358)]).then(s.bind(s,30358)).then(z=>z.LinkAccountModule)},{path:Fn.NE.login,redirectTo:Fn.NE.signin},{path:Fn.NE.signin,canActivateChild:[vi,ra.$],loadChildren:()=>Promise.all([s.e(187),s.e(965),s.e(120),s.e(251),s.e(294)]).then(s.bind(s,19294)).then(z=>z.SignInModule)},{path:Fn.NE.resetPassword,loadChildren:()=>Promise.all([s.e(187),s.e(965),s.e(120),s.e(592),s.e(850)]).then(s.bind(s,28850)).then(z=>z.PasswordRecoveryModule)},{path:Fn.NE.register,canMatch:[(()=>{var z;class M{constructor(v,W,fe){this._user=v,this._router=W,this._togglz=fe}canMatch(v,W){return this._togglz.getStateOf("REGISTRATION_2_0").pipe((0,Di.U)(fe=>(fe?localStorage.setItem("REGISTRATION_2_0","enabled"):localStorage.removeItem("REGISTRATION_2_0"),!0)))}}return(z=M).\u0275fac=function(v){return new(v||z)(r.LFG(gr.KD),r.LFG(Wi.F0),r.LFG(Ls.b))},z.\u0275prov=r.Yz7({token:z,factory:z.\u0275fac,providedIn:"root"}),M})()],canActivateChild:[vi,Ht],loadChildren:()=>"enabled"!==localStorage.getItem("REGISTRATION_2_0")?Promise.all([s.e(187),s.e(965),s.e(120),s.e(559),s.e(36),s.e(190),s.e(891),s.e(592),s.e(340)]).then(s.bind(s,33340)).then(z=>z.RegisterModuleLegacy):Promise.all([s.e(187),s.e(965),s.e(120),s.e(559),s.e(36),s.e(190),s.e(891),s.e(819)]).then(s.bind(s,68819)).then(z=>z.Register2Module)},{path:Fn.NE.search,loadChildren:()=>Promise.all([s.e(187),s.e(965),s.e(120),s.e(481),s.e(438),s.e(559),s.e(492),s.e(592),s.e(428)]).then(s.bind(s,51428)).then(z=>z.SearchModule)},{path:Fn.NE.myOrcid,canActivateChild:[vi,Es],loadChildren:()=>Promise.all([s.e(187),s.e(965),s.e(120),s.e(481),s.e(438),s.e(559),s.e(492),s.e(328),s.e(36),s.e(230),s.e(318),s.e(693),s.e(592),s.e(384)]).then(s.bind(s,65384)).then(z=>z.RecordModule)},{path:Fn.NE.account,canActivateChild:[Es,Po],loadChildren:()=>Promise.all([s.e(187),s.e(965),s.e(120),s.e(481),s.e(438),s.e(559),s.e(492),s.e(328),s.e(36),s.e(251),s.e(230),s.e(213),s.e(592),s.e(394)]).then(s.bind(s,38394)).then(z=>z.AccountSettingsModule)},{path:Fn.NE.trustedParties,canActivateChild:[Es],loadChildren:()=>Promise.all([s.e(187),s.e(965),s.e(120),s.e(481),s.e(438),s.e(559),s.e(492),s.e(328),s.e(36),s.e(230),s.e(213),s.e(592),s.e(882)]).then(s.bind(s,70891)).then(z=>z.AccountTrustedPartiesModule)},{path:Fn.NE.twoFactor,canActivateChild:[mo],loadChildren:()=>Promise.all([s.e(187),s.e(965),s.e(120),s.e(190),s.e(251),s.e(592),s.e(787)]).then(s.bind(s,93787)).then(z=>z.TwoFactorModule)},{path:Fn.NE.twoFactorSetup,canActivateChild:[Es],loadChildren:()=>Promise.all([s.e(187),s.e(965),s.e(120),s.e(481),s.e(438),s.e(190),s.e(592),s.e(694)]).then(s.bind(s,11694)).then(z=>z.TwoFactorSetupModule)},{path:Fn.NE.resetPasswordEmail+"/:key",loadChildren:()=>Promise.all([s.e(187),s.e(965),s.e(120),s.e(190),s.e(592),s.e(910)]).then(s.bind(s,72910)).then(z=>z.ResetPasswordModule)},{matcher:Fn.Bo,canActivateChild:[Ua],loadChildren:()=>Promise.all([s.e(187),s.e(965),s.e(120),s.e(481),s.e(438),s.e(559),s.e(492),s.e(328),s.e(36),s.e(230),s.e(318),s.e(693),s.e(592),s.e(384)]).then(s.bind(s,65384)).then(z=>z.RecordModule)},{matcher:Fn.ev,canActivateChild:[vi,Ht],loadChildren:()=>Promise.all([s.e(187),s.e(965),s.e(120),s.e(559),s.e(36),s.e(190),s.e(891),s.e(592),s.e(340)]).then(s.bind(s,33340)).then(z=>z.RegisterModuleLegacy)},{path:Fn.NE.selfService,canActivateChild:[Es],loadChildren:()=>s.e(454).then(s.bind(s,38454)).then(z=>z.SelfServiceModule)},{path:Fn.NE.developerTools,canActivateChild:[Es],loadChildren:()=>Promise.all([s.e(187),s.e(965),s.e(120),s.e(481),s.e(438),s.e(559),s.e(492),s.e(328),s.e(230),s.e(693),s.e(25)]).then(s.bind(s,45965)).then(z=>z.DeveloperToolsModule)},{path:"**",redirectTo:"/"}];let ie=(()=>{var z;class M{}return(z=M).\u0275fac=function(v){return new(v||z)},z.\u0275mod=r.oAB({type:z}),z.\u0275inj=r.cJS({imports:[Wi.Bz.forRoot(x,{}),Wi.Bz]}),M})();var He=s(59456),ee=s(6319),Re=s(23318),lt=s(25180),jt=s(97734);const _n=[{id:"public-layout.about",label:"About",route:"what-is-orcid"},{id:"public-layout.for_researchers",label:"For Researchers",route:"benefits-for-researchers"},{id:"public-layout.membership",label:"Membership",route:"about-membership"},{id:"public-layout.documentation",label:"Documentation",route:"documentation"},{id:"public-layout.resources",label:"Resources",route:"resources"},{id:"public-layout.newsEvents",label:"News & Events",route:""},{id:"public-layout.sign_in",label:"SIGN IN",requirements:{desktop:!0,logging:!1},route:"signin"},{id:"public-layout.sign_out",label:"Sign out",requirements:{desktop:!0,logging:!0},route:"signout"}];var zn=s(30617),Yn=s(26385),ui=s(10011),Un=s(56223),Gi=s(23680),gi=s(16718);function Xi(z,M){1&z&&(r.TgZ(0,"mat-icon"),r._uU(1,"check"),r.qZA())}function Br(z,M){1&z&&r._UZ(0,"mat-icon")}const eo=function(z){return{"orcid-mat-menu-item-active":z}};function No(z,M){if(1&z){const y=r.EpF();r.TgZ(0,"div",6),r.NdJ("click",function(){const fe=r.CHM(y).$implicit,Ue=r.oxw();return r.KtG(Ue.changeLanguage(fe.key))}),r.TgZ(1,"button",7),r.YNc(2,Xi,2,0,"mat-icon",8),r.YNc(3,Br,1,0,"mat-icon",8),r._uU(4),r.qZA()()}if(2&z){const y=M.$implicit,v=r.oxw();r.Q6J("ngClass",r.VKq(6,eo,y.key===v.locale)),r.xp6(1),r.Q6J("ngClass",r.VKq(8,eo,y.key===v.locale)),r.uIk("aria-label",y.value),r.xp6(1),r.Q6J("ngIf",y.key===v.locale),r.xp6(1),r.Q6J("ngIf",y.key!==v.locale),r.xp6(1),r.hij(" ",y.value," ")}}let cr=(()=>{var z;class M{constructor(v,W,fe){this.locale=v,this.window=W,this._language=fe,this.labelLanguage="Select your preferred language. Current language is",this.languageMenuOptions=Bi.N.LANGUAGE_MENU_OPTIONS,this.locale="en-US"===this.locale?"en":this.locale,this.labelLanguage+=` ${Bi.N.LANGUAGE_MENU_OPTIONS[this.locale]}`}changeLanguage(v){this._language.changeLanguage(v).subscribe(()=>{this.window.location.reload()})}ngOnInit(){}}return(z=M).\u0275fac=function(v){return new(v||z)(r.Y36(r.soG),r.Y36(Wo.m9),r.Y36(fi.T))},z.\u0275cmp=r.Xpm({type:z,selectors:[["app-language"]],decls:10,vars:7,consts:[["mat-button","",1,"orcid-button-light-grey",3,"matMenuTriggerFor"],[1,"row","middle","space-between","button-box","no-wrap"],[1,"col","no-gutters"],["id","cy-language-menu"],["languageMenu","matMenu"],["mat-menu-item","","class","orcid-menu-item-small",3,"ngClass","click",4,"ngFor","ngForOf"],["mat-menu-item","",1,"orcid-menu-item-small",3,"ngClass","click"],["mat-menu-item","",1,"orcid-menu-item-small",3,"ngClass"],[4,"ngIf"]],template:function(v,W){if(1&v&&(r.TgZ(0,"button",0)(1,"div",1)(2,"p",2),r._uU(3),r.qZA(),r.TgZ(4,"mat-icon"),r._uU(5,"expand_more"),r.qZA()()(),r.TgZ(6,"mat-menu",3,4),r.YNc(8,No,5,10,"div",5),r.ALo(9,"keyvalue"),r.qZA()),2&v){const fe=r.MAs(7);r.Q6J("matMenuTriggerFor",fe),r.uIk("aria-label",W.labelLanguage),r.xp6(3),r.Oqu(W.languageMenuOptions[W.locale]),r.xp6(3),r.uIk("aria-label",W.labelLanguage),r.xp6(2),r.Q6J("ngForOf",r.lcZ(9,5,W.languageMenuOptions))}},dependencies:[ci.mk,ci.sg,ci.O5,gi.W0,gi.tN,gi.D8,Ws.eB,zn.Hw,ci.Nd],styles:["[_nghost-%COMP%] > button[_ngcontent-%COMP%]{padding:0 7px 0 12px}[_nghost-%COMP%] > button[_ngcontent-%COMP%] p[_ngcontent-%COMP%]{margin:0 7px 0 0}[_nghost-%COMP%] > button[_ngcontent-%COMP%] mat-icon[_ngcontent-%COMP%]{height:auto;width:auto}"]}),M})();var Ro=s(90196);function Ti(z,M){if(1&z&&(r.ynx(0,27),r._uU(1),r.BQk()),2&z){const y=r.oxw(2);r.xp6(1),r.Oqu(y.displayName)}}function Os(z,M){1&z&&(r.TgZ(0,"mat-icon"),r._uU(1,"expand_more"),r.qZA())}function ol(z,M){if(1&z){const y=r.EpF();r.TgZ(0,"button",24),r.NdJ("menuOpened",function(){r.CHM(y);const W=r.oxw();return r.KtG(W.state=!0)})("menuClosed",function(){r.CHM(y);const W=r.oxw();return r.KtG(W.state=!1)}),r._UZ(1,"img",7),r.YNc(2,Ti,2,1,"ng-container",25),r.YNc(3,Os,2,0,"mat-icon",26),r.qZA()}if(2&z){const y=r.oxw(),v=r.MAs(4);r.Q6J("matMenuTriggerFor",v),r.uIk("aria-label",y.labelUserMenu+" "+y.displayName),r.xp6(2),r.Q6J("ngIf",y.platform.columns12),r.xp6(1),r.Q6J("ngIf",y.platform.columns12)}}function Mi(z,M){if(1&z){const y=r.EpF();r.TgZ(0,"button",28),r.NdJ("click",function(){r.CHM(y);const W=r.oxw();return r.KtG(W.goto("signin"))}),r.ynx(1),r.SDv(2,29),r.BQk(),r._uU(3,"/"),r.ynx(4),r.SDv(5,30),r.BQk(),r.qZA()}if(2&z){const y=r.oxw();r.uIk("aria-label",y.labelSigninRegister)}}function aa(z,M){if(1&z){const y=r.EpF();r.TgZ(0,"button",31),r.NdJ("click",function(){r.CHM(y);const W=r.oxw();return r.KtG(W.goto("account"))}),r.TgZ(1,"mat-icon"),r._uU(2,"settings"),r.qZA(),r.TgZ(3,"span"),r.SDv(4,32),r.qZA()()}}function la(z,M){if(1&z){const y=r.EpF();r.TgZ(0,"button",33),r.NdJ("click",function(){r.CHM(y);const W=r.oxw();return r.KtG(W.goto("group/developer-tools"))}),r.TgZ(1,"mat-icon"),r._uU(2,"code"),r.qZA(),r.TgZ(3,"span"),r.SDv(4,34),r.qZA()()}}function Gr(z,M){if(1&z){const y=r.EpF();r.TgZ(0,"button",35),r.NdJ("click",function(){r.CHM(y);const W=r.oxw();return r.KtG(W.goto("developer-tools"))}),r.TgZ(1,"mat-icon"),r._uU(2,"code"),r.qZA(),r.TgZ(3,"span"),r.SDv(4,36),r.qZA()()}}function fc(z,M){if(1&z){const y=r.EpF();r.TgZ(0,"button",37),r.NdJ("click",function(){r.CHM(y);const W=r.oxw();return r.KtG(W.goto("self-service"))}),r.TgZ(1,"mat-icon"),r._uU(2,"build"),r.qZA(),r.TgZ(3,"span"),r.SDv(4,38),r.qZA()()}}function gc(z,M){if(1&z){const y=r.EpF();r.TgZ(0,"button",39),r.NdJ("click",function(){r.CHM(y);const W=r.oxw();return r.KtG(W.goto("manage-members"))}),r.TgZ(1,"mat-icon"),r._uU(2,"group"),r.qZA(),r.TgZ(3,"span"),r.SDv(4,40),r.qZA()()}}function ca(z,M){if(1&z){const y=r.EpF();r.TgZ(0,"button",41),r.NdJ("click",function(){r.CHM(y);const W=r.oxw();return r.KtG(W.goto("admin-actions"))}),r.TgZ(1,"mat-icon"),r._uU(2,"verified_user"),r.qZA(),r.TgZ(3,"span"),r.SDv(4,42),r.qZA()()}}let pi=(()=>{var z;class M{constructor(v,W,fe,Ue,et,At){this._router=v,this._userInfo=W,this.window=fe,this._inboxService=et,this._togglz=At,this.state=!1,this.labelSigninRegister="Sign in to ORCID or register for your ORCID iD",this.labelUserMenu="User menu",this.inboxUnread=0,W.getUserSession().subscribe($t=>{$t.loggedIn?(this.userInfo=$t.userInfo,this.displayName=$t.displayName,this.isAccountDelegate=$t.userInfo.REAL_USER_ORCID===$t.userInfo.EFFECTIVE_USER_ORCID):(this.userInfo=null,this.displayName=null)}),Ue.get().subscribe($t=>{this.platform=$t})}ngOnInit(){this._inboxService.retrieveUnreadCount().pipe((0,sa.P)()).subscribe(v=>this.inboxUnread=v)}goto(v){"my-orcid"===v?this._router.navigate([Fn.NE.myOrcid]):"signin"===v?this._router.navigate([Fn.NE.signin]):"inbox"===v?this._router.navigate([Fn.NE.inbox]):"account"===v?this._router.navigate([Fn.NE.account]):"trusted-parties"===v||"trusted-parties"===v?this._router.navigate([Fn.NE.trustedParties]):"developer-tools"===v?this._router.navigate([Fn.NE.developerTools]):this.window.location.href=Bi.N.BASE_URL+v}navigateTo(v){"/signout"===v&&Bi.N.proxyMode?this._userInfo.noRedirectLogout().subscribe():this.window.location.href=v}}return(z=M).\u0275fac=function(v){return new(v||z)(r.Y36(Wi.F0),r.Y36(gr.KD),r.Y36(Wo.m9),r.Y36(is.tu),r.Y36(Ro.m),r.Y36(Ls.b))},z.\u0275cmp=r.Xpm({type:z,selectors:[["app-user-menu"]],decls:35,vars:10,consts:function(){let y,v,W,fe,Ue,et,At,$t,ln,Jt,Zn,Rn;return y="View my ORCID record",v="Inbox",W="Trusted parties",fe="Logout",Ue="SIGN IN",et="REGISTER",At="Account settings",$t="Developer tools",ln="Developer tools",Jt="Member tools",Zn="Manage members",Rn="Admin page",[["role","navigation"],["class","user-menu-button","mat-button","","color","primary","id","cy-user-info",3,"matMenuTriggerFor","menuOpened","menuClosed",4,"ngIf"],["mat-button","","color","primary","class","name-container","id","menu-signin-button",3,"click",4,"ngIf"],["id","cy-user-menu",1,"user-menu"],["menu","matMenu"],["mat-menu-item","","id","cy-my-orcid",1,"main-button",3,"click"],[1,"row","main-button-container"],["src","./assets/vectors/profile-icon.svg","alt",""],[1,"col","name-container"],[1,"mat-title"],[1,"mat-caption"],y,["mat-menu-item","","id","cy-inbox",3,"click"],v,["mat-menu-item","","id","cy-account-settings",3,"click",4,"ngIf"],["mat-menu-item","","id","cy-trusted-parties-panel",3,"click"],W,["mat-menu-item","","id","cy-delegation-developer-tools",3,"click",4,"ngIf"],["mat-menu-item","","id","cy-developer-tools",3,"click",4,"ngIf"],["mat-menu-item","","id","cy-self-service",3,"click",4,"ngIf"],["mat-menu-item","","id","cy-manage-members",3,"click",4,"ngIf"],["mat-menu-item","","id","cy-admin-actions",3,"click",4,"ngIf"],["mat-menu-item","","id","cy-signout",3,"click"],fe,["mat-button","","color","primary","id","cy-user-info",1,"user-menu-button",3,"matMenuTriggerFor","menuOpened","menuClosed"],["class","name-container",4,"ngIf"],[4,"ngIf"],[1,"name-container"],["mat-button","","color","primary","id","menu-signin-button",1,"name-container",3,"click"],Ue,et,["mat-menu-item","","id","cy-account-settings",3,"click"],At,["mat-menu-item","","id","cy-delegation-developer-tools",3,"click"],$t,["mat-menu-item","","id","cy-developer-tools",3,"click"],ln,["mat-menu-item","","id","cy-self-service",3,"click"],Jt,["mat-menu-item","","id","cy-manage-members",3,"click"],Zn,["mat-menu-item","","id","cy-admin-actions",3,"click"],Rn]},template:function(v,W){1&v&&(r.TgZ(0,"section",0),r.YNc(1,ol,4,4,"button",1),r.YNc(2,Mi,6,1,"button",2),r.qZA(),r.TgZ(3,"mat-menu",3,4)(5,"button",5),r.NdJ("click",function(){return W.goto("my-orcid")}),r.TgZ(6,"div",6),r._UZ(7,"img",7),r.TgZ(8,"div",8)(9,"div",9),r._uU(10),r.qZA(),r.TgZ(11,"div",10),r.SDv(12,11),r.qZA()()()(),r.TgZ(13,"button",12),r.NdJ("click",function(){return W.goto("inbox")}),r.TgZ(14,"mat-icon"),r._uU(15,"inbox"),r.qZA(),r.TgZ(16,"span"),r.SDv(17,13),r.qZA(),r._uU(18),r.qZA(),r.YNc(19,aa,5,0,"button",14),r.TgZ(20,"button",15),r.NdJ("click",function(){return W.goto("trusted-parties")}),r.TgZ(21,"mat-icon"),r._uU(22,"key"),r.qZA(),r.TgZ(23,"span"),r.SDv(24,16),r.qZA()(),r.YNc(25,la,5,0,"button",17),r.YNc(26,Gr,5,0,"button",18),r.YNc(27,fc,5,0,"button",19),r.YNc(28,gc,5,0,"button",20),r.YNc(29,ca,5,0,"button",21),r.TgZ(30,"button",22),r.NdJ("click",function(){return W.navigateTo("/signout")}),r.TgZ(31,"mat-icon"),r._uU(32,"exit_to_app"),r.qZA(),r.TgZ(33,"span"),r.SDv(34,23),r.qZA()()()),2&v&&(r.xp6(1),r.Q6J("ngIf",W.userInfo),r.xp6(1),r.Q6J("ngIf",!W.userInfo&&!W.platform.columns4),r.xp6(8),r.Oqu(W.displayName),r.xp6(8),r.hij(" (",W.inboxUnread,") "),r.xp6(1),r.Q6J("ngIf",W.userInfo&&("false"===W.userInfo.IN_DELEGATION_MODE||"true"===W.userInfo.DELEGATED_BY_ADMIN)),r.xp6(6),r.Q6J("ngIf",W.userInfo&&("false"===W.userInfo.IN_DELEGATION_MODE||"true"===W.userInfo.DELEGATED_BY_ADMIN)&&"true"==W.userInfo.MEMBER_MENU),r.xp6(1),r.Q6J("ngIf",W.userInfo&&("false"===W.userInfo.IN_DELEGATION_MODE||"true"===W.userInfo.DELEGATED_BY_ADMIN)&&"true"!=W.userInfo.MEMBER_MENU),r.xp6(1),r.Q6J("ngIf",W.userInfo&&W.userInfo.SELF_SERVICE_MENU),r.xp6(1),r.Q6J("ngIf",W.userInfo&&W.userInfo.ADMIN_MENU),r.xp6(1),r.Q6J("ngIf",W.userInfo&&W.userInfo.ADMIN_MENU))},dependencies:[ci.O5,gi.W0,gi.tN,gi.D8,Ws.eB,zn.Hw],styles:[".main-button[_ngcontent-%COMP%]{border-bottom:1px rgba(0,0,0,.12) solid}",".main-button[_ngcontent-%COMP%]{height:auto}.main-button[_ngcontent-%COMP%] .main-button-container[_ngcontent-%COMP%]{cursor:pointer;padding-bottom:8px;padding-top:4px;align-items:start;width:auto;flex-wrap:nowrap;max-width:248px;overflow:hidden;text-overflow:ellipsis}.main-button[_ngcontent-%COMP%] .main-button-container[_ngcontent-%COMP%] img[_ngcontent-%COMP%]{height:36px;width:36px}.main-button[_ngcontent-%COMP%] .main-button-container[_ngcontent-%COMP%] .name-container[_ngcontent-%COMP%]{flex-direction:column;align-items:start;overflow:hidden}.main-button[_ngcontent-%COMP%] .main-button-container[_ngcontent-%COMP%] .name-container[_ngcontent-%COMP%] .mat-caption[_ngcontent-%COMP%]{text-align:left}.main-button[_ngcontent-%COMP%] .main-button-container[_ngcontent-%COMP%] .name-container[_ngcontent-%COMP%] .mat-title[_ngcontent-%COMP%]{margin:0;width:199px;overflow:hidden;text-overflow:ellipsis;white-space:initial;word-break:break-word}.columns-4 [_nghost-%COMP%] .user-menu-button[_ngcontent-%COMP%]{padding:0}[_nghost-%COMP%] .user-menu-button[_ngcontent-%COMP%] .user-menu-button-container[_ngcontent-%COMP%]{flex-direction:row}[_nghost-%COMP%] .user-menu-button[_ngcontent-%COMP%] img[_ngcontent-%COMP%]{height:20px;width:20px;margin-right:10px}.columns-4 [_nghost-%COMP%] .user-menu-button[_ngcontent-%COMP%] img[_ngcontent-%COMP%], .columns-8 [_nghost-%COMP%] .user-menu-button[_ngcontent-%COMP%] img[_ngcontent-%COMP%]{height:24px;width:24px;margin:0}.columns-4 [_nghost-%COMP%] .name-container[_ngcontent-%COMP%]{padding:0}[_nghost-%COMP%] .small-login-icon[_ngcontent-%COMP%]{margin-right:12px}"]}),M})();function Ar(z,M){1&z&&r._UZ(0,"app-user-menu")}function eu(z,M){if(1&z&&(r.TgZ(0,"div",7),r.YNc(1,Ar,1,0,"app-user-menu",8),r._UZ(2,"app-language",9),r.qZA()),2&z){const y=r.oxw();r.xp6(1),r.Q6J("ngIf",y.signinRegisterButton),r.xp6(1),r.uIk("aria-label",y.labelSearch)}}let Pl=(()=>{var z;class M{constructor(v,W,fe,Ue,et,At,$t,ln){this.window=v,this._search=W,this._platform=fe,this._togglz=Ue,this.router=et,this.route=At,this._changeDetection=$t,this.location=ln,this.labelSearch="Search the ORCID registry",this.labelSearchBy="Search by name, affiliation or ORCID iD",this.signinRegisterButton=!0,this.whereToSearch=[this.firstLetterUppercase("registry"),this.firstLetterUppercase("website")],this.whereToSearchSelected=this.firstLetterUppercase("registry"),this.searchPlaceHolder=this.firstLetterUppercase("Search...")}changeWhereToSearch(v){this.whereToSearchSelected=v}setWhatToSearch(v){this.whatToSearch=Object.keys(v).length&&v.searchQuery?v.searchQuery:""}ngOnInit(){this._platform.platformSubject.subscribe(v=>{this.platform=v}),this.router.events.subscribe(()=>this.signinRegisterButton=this.location.path()!==`/${Fn.NE.signin}`)}search(v,W){v===this.firstLetterUppercase("registry")?this.router.navigate(["/orcid-search/search"],{queryParams:{searchQuery:W.trim()}}):this.window.location.href="/search/node/"+W}goTo(v){this.window.location.href=v}firstLetterUppercase(v){return v.charAt(0).toUpperCase()+v.slice(1)}}return(z=M).\u0275fac=function(v){return new(v||z)(r.Y36(Wo.m9),r.Y36(ui.o),r.Y36(is.tu),r.Y36(Ls.b),r.Y36(Wi.F0),r.Y36(Wi.gz),r.Y36(r.sBO),r.Y36(ci.Ye))},z.\u0275cmp=r.Xpm({type:z,selectors:[["app-search"]],decls:9,vars:5,consts:[["class","row h-end language-menu no-wrap",4,"ngIf"],["role","search",1,"row","h-end","search-box","middle"],["id","ariaLabelWhere","hidden",""],[1,"input-box-new-info",3,"keyup.enter"],["autocomplete","off","name","whatToSearch","type","text","id","cy-search",3,"ngModel","placeholder","ngModelChange"],["type","button","matRipple","","id","cy-search-btn",1,"col","middle","search-icon",3,"click"],["matSuffix",""],[1,"row","h-end","language-menu","no-wrap"],[4,"ngIf"],["role","navigation","id","cy-language-comp"]],template:function(v,W){1&v&&(r.YNc(0,eu,3,2,"div",0),r.TgZ(1,"form",1)(2,"div",2),r._uU(3,"Search on"),r.qZA(),r.TgZ(4,"div",3),r.NdJ("keyup.enter",function(){return W.search(W.whereToSearchSelected,W.whatToSearch)}),r.TgZ(5,"input",4),r.NdJ("ngModelChange",function(Ue){return W.whatToSearch=Ue}),r.qZA()(),r.TgZ(6,"button",5),r.NdJ("click",function(){return W.search(W.whereToSearchSelected,W.whatToSearch)}),r.TgZ(7,"mat-icon",6),r._uU(8,"search"),r.qZA()()()),2&v&&(r.Q6J("ngIf",W.platform.columns12),r.xp6(5),r.Q6J("ngModel",W.whatToSearch)("placeholder",W.searchPlaceHolder),r.uIk("aria-label",W.labelSearchBy),r.xp6(1),r.uIk("aria-label",W.labelSearch))},dependencies:[ci.O5,zn.Hw,Un._Y,Un.Fj,Un.JJ,Un.JL,Un.On,Un.F,Gi.wG,cr,pi],styles:[".search-where[_ngcontent-%COMP%]{background-color:#747476;color:#fff}.input-box[_ngcontent-%COMP%] input[_ngcontent-%COMP%]::placeholder{color:#707070}.input-box[_ngcontent-%COMP%] input[_ngcontent-%COMP%]{border-color:#747476}.input-box-new-info[_ngcontent-%COMP%] input[_ngcontent-%COMP%]{border:solid 1px #e3e3e3}.input-box-new-info[_ngcontent-%COMP%] [_ngcontent-%COMP%]::placeholder{color:#707070}.input-box-new-info[_ngcontent-%COMP%] [_ngcontent-%COMP%]:-ms-input-placeholder{color:#707070}.search-icon[_ngcontent-%COMP%]{background-color:#747476;color:#fff}.search-box[_ngcontent-%COMP%] .columns-4[_ngcontent-%COMP%], .search-box[_ngcontent-%COMP%] .columns-8[_ngcontent-%COMP%]{background-color:#f5f5f5}","[_nghost-%COMP%]{width:100%}.language-menu[_ngcontent-%COMP%]{margin-bottom:18px}.language-menu[_ngcontent-%COMP%] button[_ngcontent-%COMP%]{height:34px}.language-menu[_ngcontent-%COMP%] button[_ngcontent-%COMP%] div[_ngcontent-%COMP%]{height:34px;width:auto;padding:0 12px}.language-menu[_ngcontent-%COMP%] button[_ngcontent-%COMP%] div[_ngcontent-%COMP%] .col[_ngcontent-%COMP%]{margin:0;padding:0}.advance-search-box[_ngcontent-%COMP%] button[_ngcontent-%COMP%]{padding:0}.search-box[_ngcontent-%COMP%]{flex:1px}.search-box[_ngcontent-%COMP%] > div[_ngcontent-%COMP%], .search-box[_ngcontent-%COMP%] > button[_ngcontent-%COMP%]{height:42px}.search-box[_ngcontent-%COMP%] .search-where[_ngcontent-%COMP%]{width:auto;box-sizing:border-box;border-radius:4px 0 0 4px;padding:0 12px;margin:0}.search-box[_ngcontent-%COMP%] .search-where[_ngcontent-%COMP%] > div[_ngcontent-%COMP%]{padding:0 8px;width:auto}.search-box[_ngcontent-%COMP%] .input-box[_ngcontent-%COMP%]{flex-grow:1;max-width:214px}.search-box[_ngcontent-%COMP%] .input-box[_ngcontent-%COMP%] input[_ngcontent-%COMP%]{border-width:1px;border-style:solid;width:100%}.search-box[_ngcontent-%COMP%] .input-box-new-info[_ngcontent-%COMP%]{width:334px}.search-box[_ngcontent-%COMP%] .input-box-new-info[_ngcontent-%COMP%] input[_ngcontent-%COMP%]{border-radius:3px;margin-left:2px;width:100%}.search-box[_ngcontent-%COMP%] .search-icon[_ngcontent-%COMP%]{width:40px;height:42px;border-radius:0 4px 4px 0;padding-left:9px}.search-box[_ngcontent-%COMP%] .search-icon[_ngcontent-%COMP%] mat-icon[_ngcontent-%COMP%]{font-size:24px;height:24px;width:24px}[dir=rtl] [_nghost-%COMP%] .search-box[_ngcontent-%COMP%] .search-icon[_ngcontent-%COMP%] mat-icon[_ngcontent-%COMP%]{padding-right:2px}.search-box[_ngcontent-%COMP%] input[_ngcontent-%COMP%]{height:42px;box-sizing:border-box;padding-left:12px;padding-right:12px}.search-box[_ngcontent-%COMP%] mat-icon[_ngcontent-%COMP%]{width:12px;height:20px}.columns-8 [_nghost-%COMP%] .search-box[_ngcontent-%COMP%], .columns-4 [_nghost-%COMP%] .search-box[_ngcontent-%COMP%]{padding:12px 0;justify-content:center;max-width:calc(100% - 28px);flex-wrap:initial}.columns-8 [_nghost-%COMP%] .search-box[_ngcontent-%COMP%] .search-where[_ngcontent-%COMP%], .columns-8 [_nghost-%COMP%] .search-box[_ngcontent-%COMP%] .search-icon[_ngcontent-%COMP%], .columns-4 [_nghost-%COMP%] .search-box[_ngcontent-%COMP%] .search-where[_ngcontent-%COMP%], .columns-4 [_nghost-%COMP%] .search-box[_ngcontent-%COMP%] .search-icon[_ngcontent-%COMP%]{flex-shrink:0;border-radius:0}.columns-8 [_nghost-%COMP%] .search-box[_ngcontent-%COMP%] .input-box[_ngcontent-%COMP%], .columns-8 [_nghost-%COMP%] .search-box[_ngcontent-%COMP%] .input-box-new-info[_ngcontent-%COMP%], .columns-4 [_nghost-%COMP%] .search-box[_ngcontent-%COMP%] .input-box[_ngcontent-%COMP%], .columns-4 [_nghost-%COMP%] .search-box[_ngcontent-%COMP%] .input-box-new-info[_ngcontent-%COMP%]{flex-grow:1;max-width:none}.columns-8 [_nghost-%COMP%] .search-box[_ngcontent-%COMP%] .input-box[_ngcontent-%COMP%] input[_ngcontent-%COMP%], .columns-8 [_nghost-%COMP%] .search-box[_ngcontent-%COMP%] .input-box-new-info[_ngcontent-%COMP%] input[_ngcontent-%COMP%], .columns-4 [_nghost-%COMP%] .search-box[_ngcontent-%COMP%] .input-box[_ngcontent-%COMP%] input[_ngcontent-%COMP%], .columns-4 [_nghost-%COMP%] .search-box[_ngcontent-%COMP%] .input-box-new-info[_ngcontent-%COMP%] input[_ngcontent-%COMP%]{width:100%}[dir=rtl] [_nghost-%COMP%] .search-where[_ngcontent-%COMP%]{border-radius:0 4px 4px 0}[dir=rtl] [_nghost-%COMP%] .search-icon[_ngcontent-%COMP%]{border-radius:4px 0 0 4px}button[_ngcontent-%COMP%]{border:none}"]}),M})();const Dr=function(z){return{open:z}};let Nl=(()=>{var z;class M{get isOpen(){return this.isOpenValue}set isOpen(v){this.isOpenValue=v}constructor(){this.isOpenValue=!1,this.labelMenu="main menu",this.isOpenChange=new r.vpe}ngOnInit(){}}return(z=M).\u0275fac=function(v){return new(v||z)},z.\u0275cmp=r.Xpm({type:z,selectors:[["app-menu-icon"]],inputs:{isOpen:"isOpen"},outputs:{isOpenChange:"isOpenChange"},decls:6,vars:5,consts:[["aria-haspopup","true",1,"hamburger"],[1,"hamburger__icon",3,"ngClass"]],template:function(v,W){1&v&&(r.TgZ(0,"button",0)(1,"div",1),r._UZ(2,"span")(3,"span")(4,"span")(5,"span"),r.qZA()()),2&v&&(r.uIk("aria-label",W.labelMenu)("aria-expanded",W.isOpen),r.xp6(1),r.Q6J("ngClass",r.VKq(3,Dr,W.isOpen)))},dependencies:[ci.mk],styles:["[_nghost-%COMP%]{height:19px}.hamburger__icon[_ngcontent-%COMP%]{width:33px;height:19px;transform:rotate(0);transition:.5s ease-in-out;cursor:pointer;position:relative;flex:1;align-self:center}.hamburger__icon[_ngcontent-%COMP%] span[_ngcontent-%COMP%]{display:block;position:absolute;height:3px;width:100%;border-radius:0;opacity:1;left:0;transform:rotate(0);transition:.25s ease-in-out}.hamburger__icon[_ngcontent-%COMP%] span[_ngcontent-%COMP%]:nth-child(1){top:0}.hamburger__icon[_ngcontent-%COMP%] span[_ngcontent-%COMP%]:nth-child(2), .hamburger__icon[_ngcontent-%COMP%] span[_ngcontent-%COMP%]:nth-child(3){top:8px}.hamburger__icon[_ngcontent-%COMP%] span[_ngcontent-%COMP%]:nth-child(4){top:16px}.hamburger__icon.open[_ngcontent-%COMP%] span[_ngcontent-%COMP%]:nth-child(1){top:16px;width:0%;left:50%}.hamburger__icon.open[_ngcontent-%COMP%] span[_ngcontent-%COMP%]:nth-child(2){transform:rotate(45deg)}.hamburger__icon.open[_ngcontent-%COMP%] span[_ngcontent-%COMP%]:nth-child(3){transform:rotate(-45deg)}.hamburger__icon.open[_ngcontent-%COMP%] span[_ngcontent-%COMP%]:nth-child(4){top:16px;width:0%;left:50%}",".hamburger__icon.open[_ngcontent-%COMP%] span[_ngcontent-%COMP%], .hamburger__icon[_ngcontent-%COMP%] span[_ngcontent-%COMP%]{background:rgba(0,0,0,.87)}"]}),M})();function Rl(z,M){if(1&z&&(r.TgZ(0,"div",4)(1,"div"),r._UZ(2,"p",5),r.qZA()()),2&z){const y=M.$implicit;r.xp6(2),r.Q6J("innerHtml",y.innerHTML,r.oJD)}}function Ma(z,M){if(1&z&&(r.TgZ(0,"div",4),r._UZ(1,"p",5),r.qZA()),2&z){const y=r.oxw(2);r.xp6(1),r.Q6J("innerHtml",y.maintenanceMessage.plainHtml,r.oJD)}}function sl(z,M){if(1&z&&(r.TgZ(0,"section",1),r.YNc(1,Rl,3,1,"div",2),r.YNc(2,Ma,2,1,"div",3),r.qZA()),2&z){const y=r.oxw();r.uIk("aria-label",y.labelMaintenance),r.xp6(1),r.Q6J("ngForOf",y.maintenanceMessage.nonClosableElements),r.xp6(1),r.Q6J("ngIf",0===y.maintenanceMessage.closableElements.length&&0===y.maintenanceMessage.nonClosableElements.length)}}let ws=(()=>{var z;class M{constructor(v){this.labelMaintenance="Maintenance message",v.getMaintenanceMessages().subscribe(W=>{this.maintenanceMessage=W})}ngOnInit(){}}return(z=M).\u0275fac=function(v){return new(v||z)(r.Y36(Ls.b))},z.\u0275cmp=r.Xpm({type:z,selectors:[["app-maintenance-message"]],decls:1,vars:1,consts:[["class","container",4,"ngIf"],[1,"container"],["class","col l12 m8 s4 middle text-container",4,"ngFor","ngForOf"],["class","col l12 m8 s4 middle text-container",4,"ngIf"],[1,"col","l12","m8","s4","middle","text-container"],[3,"innerHtml"]],template:function(v,W){1&v&&r.YNc(0,sl,3,3,"section",0),2&v&&r.Q6J("ngIf",W.maintenanceMessage&&W.maintenanceMessage.plainHtml)},dependencies:[ci.sg,ci.O5],styles:[".closable, .text-container[_ngcontent-%COMP%]{border-top:#979797 1px solid}",".text-container[_ngcontent-%COMP%]{text-align:center}"]}),M})();function ua(z,M){1&z&&(r.TgZ(0,"div",11),r.SDv(1,12),r.qZA())}function Ln(z,M){1&z&&(r.TgZ(0,"div",16),r._UZ(1,"app-language",17),r.qZA())}function Oa(z,M){1&z&&(r.TgZ(0,"div",16),r._UZ(1,"app-user-menu"),r.qZA())}function Ca(z,M){if(1&z){const y=r.EpF();r.TgZ(0,"div",13),r.YNc(1,Ln,2,0,"div",14),r.YNc(2,Oa,2,0,"div",14),r.TgZ(3,"app-menu-icon",15),r.NdJ("click",function(){r.CHM(y);const W=r.oxw();return r.KtG(W.mobileMenuState=!W.mobileMenuState)}),r.qZA()()}if(2&z){const y=r.oxw();r.xp6(1),r.Q6J("ngIf",y.mobileMenuState),r.xp6(1),r.Q6J("ngIf",!y.mobileMenuState),r.xp6(1),r.Q6J("isOpen",y.mobileMenuState)}}function tu(z,M){1&z&&(r.TgZ(0,"div",18),r._UZ(1,"app-search"),r.qZA())}function Ll(z,M){1&z&&(r.TgZ(0,"div",19),r._UZ(1,"app-search"),r.qZA())}function pc(z,M){if(1&z&&(r.TgZ(0,"mat-icon"),r._uU(1),r.qZA()),2&z){const y=r.oxw(2).$implicit;r.xp6(1),r.Oqu(y.hover?"arrow_drop_up":"arrow_drop_down")}}function mc(z,M){1&z&&r.GkF(0)}const da=function(z,M){return{$implicit:z,parents:M}};function al(z,M){if(1&z&&(r.ynx(0),r.YNc(1,mc,1,0,"ng-container",24),r.BQk()),2&z){const y=r.oxw(2).$implicit,v=r.oxw(2).parents;r.oxw();const W=r.MAs(4);r.xp6(1),r.Q6J("ngTemplateOutlet",W)("ngTemplateOutletContext",r.WLB(2,da,y.buttons,v.concat(y.id)))}}const va=function(z){return{active:z}};function Ec(z,M){if(1&z){const y=r.EpF();r.TgZ(0,"li",29)(1,"button",30),r.NdJ("focus",function(){r.CHM(y);const W=r.oxw().$implicit,fe=r.oxw(2).parents,Ue=r.oxw(2);return r.KtG(Ue.mouseEnter(fe.concat(W.id)))})("click",function(){r.CHM(y);const W=r.oxw().$implicit,fe=r.oxw(2).parents,Ue=r.oxw(2);return r.KtG(Ue.click(fe.concat(W.id),W))})("mouseenter",function(){r.CHM(y);const W=r.oxw().$implicit,fe=r.oxw(2).parents,Ue=r.oxw(2);return r.KtG(Ue.mouseEnter(fe.concat(W.id)))}),r.TgZ(2,"div",31)(3,"div"),r._uU(4),r.ALo(5,"uppercase"),r.qZA(),r.YNc(6,pc,2,1,"mat-icon",32),r.qZA()(),r.YNc(7,al,2,5,"ng-container",32),r.qZA()}if(2&z){const y=r.oxw().$implicit,v=r.oxw(2).parents,W=r.oxw(2);r.xp6(1),r.Q6J("ngClass",r.VKq(8,va,y.activeRoute===W.currentRoute))("color",W.menuButtonColor(v))("id",y.id),r.xp6(3),r.Oqu(r.lcZ(5,6,y.label)),r.xp6(2),r.Q6J("ngIf",!W.platform.columns12&&y.buttons.length),r.xp6(1),r.Q6J("ngIf",y.hover&&y.buttons.length)}}function Ne(z,M){if(1&z&&(r.ynx(0),r.YNc(1,Ec,8,10,"li",28),r.BQk()),2&z){const y=M.$implicit,v=r.oxw(4);r.xp6(1),r.Q6J("ngIf",!0===v.checkMenuItemRequirements(y.requirements))}}function _a(z,M){if(1&z&&(r.TgZ(0,"ul",26),r.YNc(1,Ne,2,1,"ng-container",27),r.qZA()),2&z){const y=r.oxw().$implicit;r.xp6(1),r.Q6J("ngForOf",y)}}function tn(z,M){if(1&z&&r.YNc(0,_a,2,1,"ul",25),2&z){const y=M.parents,v=r.oxw(2);r.Q6J("ngIf",!v.isDesktopThirdLevelMenu(y))}}function Hn(z,M){1&z&&r.GkF(0)}function di(z,M){if(1&z){const y=r.EpF();r.TgZ(0,"li",16)(1,"button",33),r.NdJ("click",function(){r.CHM(y);const W=r.oxw(3);return r.KtG(W.goto("signin"))}),r.ynx(2),r.SDv(3,34),r.BQk(),r._uU(4,"/"),r.ynx(5),r.SDv(6,35),r.BQk(),r.qZA()()}}function wl(z,M){if(1&z){const y=r.EpF();r.TgZ(0,"li",16)(1,"button",33),r.NdJ("click",function(){r.CHM(y);const W=r.oxw(3);return r.KtG(W.goto("signout"))}),r.ynx(2),r.SDv(3,36),r.BQk(),r.qZA()()}}const Tr=function(){return{logging:!1}},xl=function(){return{logging:!0}};function Zo(z,M){if(1&z&&(r.TgZ(0,"ul",26),r.YNc(1,di,7,0,"li",14),r.YNc(2,wl,4,0,"li",14),r.qZA()),2&z){const y=r.oxw(2);r.xp6(1),r.Q6J("ngIf",y.checkMenuItemRequirements(r.DdM(2,Tr))&&y.signinRegisterButton),r.xp6(1),r.Q6J("ngIf",y.checkMenuItemRequirements(r.DdM(3,xl)))}}const Xo=function(z){return{container:z}},ll=function(){return[]},Fl=function(){return{desktop:!1}};function nu(z,M){if(1&z){const y=r.EpF();r.TgZ(0,"nav",20),r.NdJ("mouseleave",function(){r.CHM(y);const W=r.oxw();return r.KtG(W.mouseLeave())}),r.TgZ(1,"div",21)(2,"div",22),r.YNc(3,tn,1,1,"ng-template",null,23,r.W1O),r.YNc(5,Hn,1,0,"ng-container",24),r.YNc(6,Zo,3,4,"ul",25),r.qZA(),r._UZ(7,"mat-divider",26),r.qZA()()}if(2&z){const y=r.MAs(4),v=r.oxw();r.uIk("aria-label",v.labelMenu),r.xp6(2),r.Q6J("ngClass",r.VKq(5,Xo,v.platform.columns12)),r.xp6(3),r.Q6J("ngTemplateOutlet",y)("ngTemplateOutletContext",r.WLB(8,da,v.menu,r.DdM(7,ll))),r.xp6(1),r.Q6J("ngIf",v.checkMenuItemRequirements(r.DdM(11,Fl)))}}let pd=(()=>{var z;class M{set currentRoute(v){this._currentRoute=v,this.setChildOfCurrentRouteAsSecondaryMenu()}get currentRoute(){return this._currentRoute}constructor(v,W,fe,Ue,et,At,$t){this._router=v,this.window=fe,this._user=$t,this.hideMainMenu=!1,this.mobileMenuState=!1,this.menu=this.createMenuList(_n),this.signinRegisterButton=!0,this.labelLogo="orcid mini logo",this.labelMenu="main menu",v.events.pipe((0,jt.h)(ln=>ln instanceof Wi.OD)).subscribe(ln=>{this.currentRoute=v.url,this.setChildOfCurrentRouteAsSecondaryMenu()}),W.get().subscribe(ln=>{this.platform=ln}),Ue.getUserSession().subscribe(ln=>{this.user=ln.userInfo}),et.getTogglz().subscribe(ln=>{this.togglz=ln}),v.events.subscribe(()=>{const ln=At.path();this.signinRegisterButton=ln!==`/${Fn.NE.signin}`,this.hideMainMenu=Fn.Rs.test(ln)||-1!==ln.indexOf(`/${Fn.NE.myOrcid}`)||ln===`/${Fn.NE.account}`||ln===`/${Fn.NE.trustedParties}`||ln===`/${Fn.NE.selfService}`||ln===`/${Fn.NE.inbox}`||ln===`/${Fn.NE.developerTools}`||-1!==ln.indexOf(`/${Fn.NE.register}`)})}ngOnInit(){}mouseLeave(){this.platform.columns12&&this.setChildOfCurrentRouteAsSecondaryMenu()}setChildOfCurrentRouteAsSecondaryMenu(){this.menu.forEach(v=>{v.hover=null!=v.activeRoute&&"/"!==this.currentRoute?"/"+v.activeRoute===this.currentRoute:"/"+v.route===this.currentRoute})}click(v,W){this.platform.columns12?void 0!==W.route&&this.goto(W.route):void 0===W.route||W.buttons&&W.buttons.length?this.updateMenu(this.menu,v,!0):this.goto(W.route)}mouseEnter(v){this.platform.columns12&&this.updateMenu(this.menu,v)}updateMenu(v,W,fe){if(W.length){const Ue=W.shift();null!=v&&v.forEach(et=>{et.id===Ue?W.length>0?(et.hover=!0,this.updateMenu(et.buttons,W,fe)):et.hover=!fe||!et.hover:et.hover=!1})}}createMenuList(v){const W=[];return v&&v.length?(v.forEach(fe=>{const Ue={...fe,hover:!1,active:!1,buttons:this.createMenuList(fe.buttons)};W.push(Ue)}),W):[]}checkMenuItemRequirements(v){if(!v)return!0;if(typeof v.desktop<"u"&&v.desktop&&!this.platform.columns12)return!1;if(typeof v.desktop<"u"&&!v.desktop&&this.platform.columns12)return!1;if(typeof v.logging<"u"&&v.logging&&!this.user)return!1;if(typeof v.logging<"u"&&!v.logging&&this.user)return!1;if(v.requiresAll)for(const W of v.requiresAll){const fe=Object.keys(W)[0],Ue=W[fe];if(!this.user||!(this.user[fe]===Ue||typeof this.user[fe]>"u"&&"false"===Ue))return!1}else{if(v.requiresAny){for(const W of v.requiresAny){const fe=Object.keys(W)[0],Ue=W[fe];if(this.user&&(this.user[fe]===Ue||typeof this.user[fe]>"u"&&"false"===Ue))return!0}return!1}if(typeof v.togglz<"u"){if(!this.togglz||!this.togglz.messages)return!1;let W=!1;if(Object.keys(v.togglz).forEach(fe=>{Object.keys(this.togglz.messages).indexOf(fe)?this.togglz.messages[fe]!==v.togglz[fe]&&(W=!0):W=!0}),W)return!1}}return!0}isDesktopThirdLevelMenu(v){return v.length>1&&this.platform.columns12}isDesktopSecondLevelMenu(v){return 1===v.length&&this.platform.columns12}isMobileThirdLevelMenu(v){return v.length>1&&!this.platform.columns12}menuButtonColor(v){return this.isDesktopSecondLevelMenu(v)||this.isMobileThirdLevelMenu(v)?"primary":null}goto(v){"signin"===v?(this._router.navigate([Fn.NE.signin]),this.mobileMenuState=!1):"signout"===v&&Bi.N.proxyMode?this._user.noRedirectLogout().subscribe():this.window.outOfRouterNavigation(Bi.N.INFO_SITE+v)}}return(z=M).\u0275fac=function(v){return new(v||z)(r.Y36(Wi.F0),r.Y36(is.tu),r.Y36(Wo.m9),r.Y36(gr.KD),r.Y36(Ls.b),r.Y36(ci.Ye),r.Y36(gr.KD))},z.\u0275cmp=r.Xpm({type:z,selectors:[["app-header"]],inputs:{currentRoute:"currentRoute"},decls:13,vars:6,consts:function(){let y,v,W,fe;return y="Connecting research and researchers",v="SIGN IN",W="REGISTER",fe="Sign out",[["role","presentation",1,"container"],[1,"row","end"],["role","banner",1,"col","l5","m8","s4","middle","logo-menu-container"],["routerLink","/",1,"logo-container"],["src","./assets/vectors/orcid.logo.svg","alt","orcid logo","role","link","id","home-logo","aria-label","Home"],["role","link","class","mat-body-2",4,"ngIf"],["role","navigation",1,"col","no-gutters"],["class","row middle no-gutters",4,"ngIf"],["class","col l6 offset-l1 m8 s4 middle no-gutters",4,"ngIf"],["class","col l5 offset-l3 m8 s4 middle",4,"ngIf"],[3,"mouseleave",4,"ngIf"],["role","link",1,"mat-body-2"],y,[1,"row","middle","no-gutters"],["class","col no-gutters",4,"ngIf"],[3,"isOpen","click"],[1,"col","no-gutters"],["id","cy-language-mob",1,"col","no-gutters"],[1,"col","l6","offset-l1","m8","s4","middle","no-gutters"],[1,"col","l5","offset-l3","m8","s4","middle"],[3,"mouseleave"],[1,"top-bar-new-info"],[1,"menu-container",3,"ngClass"],["recursiveList",""],[4,"ngTemplateOutlet","ngTemplateOutletContext"],["class","row",4,"ngIf"],[1,"row"],[4,"ngFor","ngForOf"],["class","col no-gutters button-wrapper",4,"ngIf"],[1,"col","no-gutters","button-wrapper"],["mat-button","",1,"no-hover-effect",3,"ngClass","color","id","focus","click","mouseenter"],[1,"button-box"],[4,"ngIf"],["mat-stroked-button","",1,"sign-in-button",3,"click"],v,W,fe]},template:function(v,W){1&v&&(r.TgZ(0,"header",0)(1,"div",1)(2,"div",2)(3,"a",3),r._UZ(4,"img",4),r.YNc(5,ua,2,0,"div",5),r.qZA(),r.TgZ(6,"div",6),r.YNc(7,Ca,4,3,"div",7),r.qZA()(),r.YNc(8,tu,2,0,"div",8),r.qZA()(),r._UZ(9,"mat-divider"),r.YNc(10,Ll,2,0,"div",9),r.YNc(11,nu,8,12,"nav",10),r._UZ(12,"app-maintenance-message")),2&v&&(r.xp6(3),r.uIk("aria-label",W.labelLogo),r.xp6(2),r.Q6J("ngIf",W.platform.columns12),r.xp6(2),r.Q6J("ngIf",!W.platform.columns12),r.xp6(1),r.Q6J("ngIf",W.platform.columns12),r.xp6(2),r.Q6J("ngIf",!W.platform.columns12),r.xp6(1),r.Q6J("ngIf",(W.mobileMenuState||W.platform.columns12)&&!W.hideMainMenu))},dependencies:[ci.mk,ci.sg,ci.O5,ci.tP,Ws.eB,Wi.rH,zn.Hw,Yn.d,Pl,Nl,cr,pi,ws,ci.gd],styles:[".container[_ngcontent-%COMP%] .logo-container[_ngcontent-%COMP%]{color:#0009}.top-bar[_ngcontent-%COMP%]{color:#fff;background-color:#2e7f9f}.top-bar[_ngcontent-%COMP%] .menu-container[_ngcontent-%COMP%] .row[_ngcontent-%COMP%] button.active[_ngcontent-%COMP%]{background-color:#e3e3e3;color:#000000de}.top-bar[_ngcontent-%COMP%] .menu-container[_ngcontent-%COMP%] .row[_ngcontent-%COMP%] button.sign-in-button[_ngcontent-%COMP%]{border-color:#fafafa}.top-bar[_ngcontent-%COMP%] .menu-container[_ngcontent-%COMP%] .row[_ngcontent-%COMP%] .row[_ngcontent-%COMP%], .top-bar-new-info[_ngcontent-%COMP%]{color:#2e7f9f}.top-bar-new-info[_ngcontent-%COMP%] .menu-container[_ngcontent-%COMP%] .row[_ngcontent-%COMP%] button.active[_ngcontent-%COMP%]{color:#98ce00}.top-bar-new-info[_ngcontent-%COMP%] .menu-container[_ngcontent-%COMP%] .row[_ngcontent-%COMP%] button.sign-in-button[_ngcontent-%COMP%]{border-color:#fafafa}.top-bar-new-info[_ngcontent-%COMP%] .menu-container[_ngcontent-%COMP%] .row[_ngcontent-%COMP%] button[_ngcontent-%COMP%]:hover, .top-bar-new-info[_ngcontent-%COMP%] .menu-container[_ngcontent-%COMP%] .row[_ngcontent-%COMP%] button[_ngcontent-%COMP%]:focus{color:#98ce00}.top-bar-new-info[_ngcontent-%COMP%] .menu-container[_ngcontent-%COMP%] .row[_ngcontent-%COMP%] .row[_ngcontent-%COMP%]{color:#2e7f9f}.columns-8 [_nghost-%COMP%] header.container.fixed-header-mode[_ngcontent-%COMP%] > .row[_ngcontent-%COMP%], .columns-4 [_nghost-%COMP%] header.container.fixed-header-mode[_ngcontent-%COMP%] > .row[_ngcontent-%COMP%]{background-color:#fff}.columns-8 [_nghost-%COMP%] .top-bar[_ngcontent-%COMP%], .columns-4 [_nghost-%COMP%] .top-bar[_ngcontent-%COMP%]{background-color:#085c77}.columns-8 [_nghost-%COMP%] .top-bar[_ngcontent-%COMP%] .menu-container[_ngcontent-%COMP%] .row[_ngcontent-%COMP%] .row[_ngcontent-%COMP%], .columns-4 [_nghost-%COMP%] .top-bar[_ngcontent-%COMP%] .menu-container[_ngcontent-%COMP%] .row[_ngcontent-%COMP%] .row[_ngcontent-%COMP%]{background-color:#1e708d}.columns-8 [_nghost-%COMP%] .top-bar[_ngcontent-%COMP%] .menu-container[_ngcontent-%COMP%] .row[_ngcontent-%COMP%] .row[_ngcontent-%COMP%] button[_ngcontent-%COMP%], .columns-4 [_nghost-%COMP%] .top-bar[_ngcontent-%COMP%] .menu-container[_ngcontent-%COMP%] .row[_ngcontent-%COMP%] .row[_ngcontent-%COMP%] button[_ngcontent-%COMP%]{color:#fff}.columns-8 [_nghost-%COMP%] .top-bar[_ngcontent-%COMP%] .menu-container[_ngcontent-%COMP%] .row[_ngcontent-%COMP%] .row[_ngcontent-%COMP%] .row[_ngcontent-%COMP%], .columns-4 [_nghost-%COMP%] .top-bar[_ngcontent-%COMP%] .menu-container[_ngcontent-%COMP%] .row[_ngcontent-%COMP%] .row[_ngcontent-%COMP%] .row[_ngcontent-%COMP%]{background-color:#f5f5f5}.columns-8 [_nghost-%COMP%] .top-bar[_ngcontent-%COMP%] .menu-container[_ngcontent-%COMP%] .row[_ngcontent-%COMP%] .row[_ngcontent-%COMP%] .row[_ngcontent-%COMP%] button[_ngcontent-%COMP%], .columns-4 [_nghost-%COMP%] .top-bar[_ngcontent-%COMP%] .menu-container[_ngcontent-%COMP%] .row[_ngcontent-%COMP%] .row[_ngcontent-%COMP%] .row[_ngcontent-%COMP%] button[_ngcontent-%COMP%]{color:#2e7f9f}.columns-8 [_nghost-%COMP%] .top-bar[_ngcontent-%COMP%] .menu-container[_ngcontent-%COMP%] .row[_ngcontent-%COMP%] .row[_ngcontent-%COMP%] .row[_ngcontent-%COMP%] .row[_ngcontent-%COMP%], .columns-4 [_nghost-%COMP%] .top-bar[_ngcontent-%COMP%] .menu-container[_ngcontent-%COMP%] .row[_ngcontent-%COMP%] .row[_ngcontent-%COMP%] .row[_ngcontent-%COMP%] .row[_ngcontent-%COMP%]{background-color:#fff}.columns-8 [_nghost-%COMP%] .top-bar-new-info[_ngcontent-%COMP%], .columns-4 [_nghost-%COMP%] .top-bar-new-info[_ngcontent-%COMP%]{background-color:#003449;color:#fff}.columns-8 [_nghost-%COMP%] .top-bar-new-info[_ngcontent-%COMP%] .menu-container[_ngcontent-%COMP%] .row[_ngcontent-%COMP%] button[_ngcontent-%COMP%]:hover, .columns-8 [_nghost-%COMP%] .top-bar-new-info[_ngcontent-%COMP%] .menu-container[_ngcontent-%COMP%] .row[_ngcontent-%COMP%] button[_ngcontent-%COMP%]:focus, .columns-4 [_nghost-%COMP%] .top-bar-new-info[_ngcontent-%COMP%] .menu-container[_ngcontent-%COMP%] .row[_ngcontent-%COMP%] button[_ngcontent-%COMP%]:hover, .columns-4 [_nghost-%COMP%] .top-bar-new-info[_ngcontent-%COMP%] .menu-container[_ngcontent-%COMP%] .row[_ngcontent-%COMP%] button[_ngcontent-%COMP%]:focus{background-color:#d4e7a1;color:#000000de}.columns-8 [_nghost-%COMP%] .top-bar-new-info[_ngcontent-%COMP%] .menu-container[_ngcontent-%COMP%] .row[_ngcontent-%COMP%] .row[_ngcontent-%COMP%], .columns-4 [_nghost-%COMP%] .top-bar-new-info[_ngcontent-%COMP%] .menu-container[_ngcontent-%COMP%] .row[_ngcontent-%COMP%] .row[_ngcontent-%COMP%]{background-color:#1e708d}.columns-8 [_nghost-%COMP%] .top-bar-new-info[_ngcontent-%COMP%] .menu-container[_ngcontent-%COMP%] .row[_ngcontent-%COMP%] .row[_ngcontent-%COMP%] button[_ngcontent-%COMP%], .columns-4 [_nghost-%COMP%] .top-bar-new-info[_ngcontent-%COMP%] .menu-container[_ngcontent-%COMP%] .row[_ngcontent-%COMP%] .row[_ngcontent-%COMP%] button[_ngcontent-%COMP%]{color:#fff}.columns-8 [_nghost-%COMP%] .top-bar-new-info[_ngcontent-%COMP%] .menu-container[_ngcontent-%COMP%] .row[_ngcontent-%COMP%] .row[_ngcontent-%COMP%] button[_ngcontent-%COMP%]:hover, .columns-8 [_nghost-%COMP%] .top-bar-new-info[_ngcontent-%COMP%] .menu-container[_ngcontent-%COMP%] .row[_ngcontent-%COMP%] .row[_ngcontent-%COMP%] button[_ngcontent-%COMP%]:focus, .columns-4 [_nghost-%COMP%] .top-bar-new-info[_ngcontent-%COMP%] .menu-container[_ngcontent-%COMP%] .row[_ngcontent-%COMP%] .row[_ngcontent-%COMP%] button[_ngcontent-%COMP%]:hover, .columns-4 [_nghost-%COMP%] .top-bar-new-info[_ngcontent-%COMP%] .menu-container[_ngcontent-%COMP%] .row[_ngcontent-%COMP%] .row[_ngcontent-%COMP%] button[_ngcontent-%COMP%]:focus{background-color:#d4e7a1;color:#000000de}.columns-8 [_nghost-%COMP%] .top-bar-new-info[_ngcontent-%COMP%] .menu-container[_ngcontent-%COMP%] .row[_ngcontent-%COMP%] .row[_ngcontent-%COMP%] .row[_ngcontent-%COMP%], .columns-4 [_nghost-%COMP%] .top-bar-new-info[_ngcontent-%COMP%] .menu-container[_ngcontent-%COMP%] .row[_ngcontent-%COMP%] .row[_ngcontent-%COMP%] .row[_ngcontent-%COMP%]{background-color:#f5f5f5}.columns-8 [_nghost-%COMP%] .top-bar-new-info[_ngcontent-%COMP%] .menu-container[_ngcontent-%COMP%] .row[_ngcontent-%COMP%] .row[_ngcontent-%COMP%] .row[_ngcontent-%COMP%] button[_ngcontent-%COMP%], .columns-4 [_nghost-%COMP%] .top-bar-new-info[_ngcontent-%COMP%] .menu-container[_ngcontent-%COMP%] .row[_ngcontent-%COMP%] .row[_ngcontent-%COMP%] .row[_ngcontent-%COMP%] button[_ngcontent-%COMP%]{color:#2e7f9f}.columns-8 [_nghost-%COMP%] .top-bar-new-info[_ngcontent-%COMP%] .menu-container[_ngcontent-%COMP%] .row[_ngcontent-%COMP%] .row[_ngcontent-%COMP%] .row[_ngcontent-%COMP%] button[_ngcontent-%COMP%]:hover, .columns-8 [_nghost-%COMP%] .top-bar-new-info[_ngcontent-%COMP%] .menu-container[_ngcontent-%COMP%] .row[_ngcontent-%COMP%] .row[_ngcontent-%COMP%] .row[_ngcontent-%COMP%] button[_ngcontent-%COMP%]:focus, .columns-4 [_nghost-%COMP%] .top-bar-new-info[_ngcontent-%COMP%] .menu-container[_ngcontent-%COMP%] .row[_ngcontent-%COMP%] .row[_ngcontent-%COMP%] .row[_ngcontent-%COMP%] button[_ngcontent-%COMP%]:hover, .columns-4 [_nghost-%COMP%] .top-bar-new-info[_ngcontent-%COMP%] .menu-container[_ngcontent-%COMP%] .row[_ngcontent-%COMP%] .row[_ngcontent-%COMP%] .row[_ngcontent-%COMP%] button[_ngcontent-%COMP%]:focus{background-color:#d4e7a1;color:#000000de}.columns-8 [_nghost-%COMP%] .top-bar-new-info[_ngcontent-%COMP%] .menu-container[_ngcontent-%COMP%] .row[_ngcontent-%COMP%] .row[_ngcontent-%COMP%] .row[_ngcontent-%COMP%] .row[_ngcontent-%COMP%], .columns-4 [_nghost-%COMP%] .top-bar-new-info[_ngcontent-%COMP%] .menu-container[_ngcontent-%COMP%] .row[_ngcontent-%COMP%] .row[_ngcontent-%COMP%] .row[_ngcontent-%COMP%] .row[_ngcontent-%COMP%]{background-color:#fff}.top-bar[_ngcontent-%COMP%] .menu-container[_ngcontent-%COMP%] > .row[_ngcontent-%COMP%] > .col[_ngcontent-%COMP%] > button[_ngcontent-%COMP%], .top-bar-new-info[_ngcontent-%COMP%] .menu-container[_ngcontent-%COMP%] > .row[_ngcontent-%COMP%] > .col[_ngcontent-%COMP%] > button[_ngcontent-%COMP%]{font-size:18px;font-weight:600;line-height:normal;letter-spacing:1.3px}.top-bar[_ngcontent-%COMP%] .menu-container[_ngcontent-%COMP%] > .row[_ngcontent-%COMP%] > .col[_ngcontent-%COMP%] > button.sign-in-button[_ngcontent-%COMP%], .top-bar-new-info[_ngcontent-%COMP%] .menu-container[_ngcontent-%COMP%] > .row[_ngcontent-%COMP%] > .col[_ngcontent-%COMP%] > button.sign-in-button[_ngcontent-%COMP%]{font-size:14px;font-weight:700;line-height:normal;font-family:Noto Sans,sans-serif;letter-spacing:1.3px}","header.container[_ngcontent-%COMP%]{height:130px;padding-bottom:21px}header.container[_ngcontent-%COMP%] .logo-menu-container[_ngcontent-%COMP%] .logo-container[_ngcontent-%COMP%] .mat-body-2[_ngcontent-%COMP%]{line-height:16px}header.container[_ngcontent-%COMP%] img[_ngcontent-%COMP%]{height:50px}header.container[_ngcontent-%COMP%] .row[_ngcontent-%COMP%]{height:100%}header.container[_ngcontent-%COMP%] .row[_ngcontent-%COMP%] img[_ngcontent-%COMP%]{height:67px}nav[_ngcontent-%COMP%] ul[_ngcontent-%COMP%]{list-style:none;margin:0;padding:0}nav[_ngcontent-%COMP%] .top-bar[_ngcontent-%COMP%], nav[_ngcontent-%COMP%] .top-bar-new-info[_ngcontent-%COMP%]{height:60px;margin-bottom:60px}nav[_ngcontent-%COMP%] .top-bar[_ngcontent-%COMP%] .menu-container[_ngcontent-%COMP%], nav[_ngcontent-%COMP%] .top-bar-new-info[_ngcontent-%COMP%] .menu-container[_ngcontent-%COMP%]{height:100%;display:flex}nav[_ngcontent-%COMP%] .top-bar[_ngcontent-%COMP%] .menu-container[_ngcontent-%COMP%] .row[_ngcontent-%COMP%], nav[_ngcontent-%COMP%] .top-bar-new-info[_ngcontent-%COMP%] .menu-container[_ngcontent-%COMP%] .row[_ngcontent-%COMP%]{position:relative}nav[_ngcontent-%COMP%] .top-bar[_ngcontent-%COMP%] .menu-container[_ngcontent-%COMP%] .row[_ngcontent-%COMP%] .col[_ngcontent-%COMP%] button.active[_ngcontent-%COMP%], nav[_ngcontent-%COMP%] .top-bar-new-info[_ngcontent-%COMP%] .menu-container[_ngcontent-%COMP%] .row[_ngcontent-%COMP%] .col[_ngcontent-%COMP%] button.active[_ngcontent-%COMP%]{border-radius:0}nav[_ngcontent-%COMP%] .top-bar[_ngcontent-%COMP%] .menu-container[_ngcontent-%COMP%] .row[_ngcontent-%COMP%] .col[_ngcontent-%COMP%] .row[_ngcontent-%COMP%], nav[_ngcontent-%COMP%] .top-bar-new-info[_ngcontent-%COMP%] .menu-container[_ngcontent-%COMP%] .row[_ngcontent-%COMP%] .col[_ngcontent-%COMP%] .row[_ngcontent-%COMP%]{position:absolute;top:100%;left:0}.columns-8 [_nghost-%COMP%] header.container[_ngcontent-%COMP%], .columns-4 [_nghost-%COMP%] header.container[_ngcontent-%COMP%]{height:62px;padding-bottom:0}.columns-8 [_nghost-%COMP%] header.container[_ngcontent-%COMP%] .logo-menu-container[_ngcontent-%COMP%], .columns-4 [_nghost-%COMP%] header.container[_ngcontent-%COMP%] .logo-menu-container[_ngcontent-%COMP%]{padding-top:8px;padding-bottom:8px;display:flex;justify-content:space-between}.columns-8 [_nghost-%COMP%] header.container[_ngcontent-%COMP%] .logo-menu-container[_ngcontent-%COMP%] .logo-container[_ngcontent-%COMP%] .mat-body-2[_ngcontent-%COMP%], .columns-4 [_nghost-%COMP%] header.container[_ngcontent-%COMP%] .logo-menu-container[_ngcontent-%COMP%] .logo-container[_ngcontent-%COMP%] .mat-body-2[_ngcontent-%COMP%]{line-height:16px}.columns-8 [_nghost-%COMP%] header.container[_ngcontent-%COMP%] .logo-menu-container[_ngcontent-%COMP%] .logo-container[_ngcontent-%COMP%] img[_ngcontent-%COMP%], .columns-4 [_nghost-%COMP%] header.container[_ngcontent-%COMP%] .logo-menu-container[_ngcontent-%COMP%] .logo-container[_ngcontent-%COMP%] img[_ngcontent-%COMP%]{height:35px}.columns-8 [_nghost-%COMP%] header.container[_ngcontent-%COMP%] nav[_ngcontent-%COMP%] .top-bar[_ngcontent-%COMP%] .menu-container[_ngcontent-%COMP%] nav[_ngcontent-%COMP%] .top-bar[_ngcontent-%COMP%] .menu-container[_ngcontent-%COMP%], .columns-8 [_nghost-%COMP%] header.container[_ngcontent-%COMP%] nav[_ngcontent-%COMP%] .top-bar[_ngcontent-%COMP%] .menu-container[_ngcontent-%COMP%] nav[_ngcontent-%COMP%] .top-bar-new-info[_ngcontent-%COMP%] .menu-container[_ngcontent-%COMP%], .columns-8 [_nghost-%COMP%] header.container[_ngcontent-%COMP%] nav[_ngcontent-%COMP%] .top-bar-new-info[_ngcontent-%COMP%] .menu-container[_ngcontent-%COMP%] nav[_ngcontent-%COMP%] .top-bar[_ngcontent-%COMP%] .menu-container[_ngcontent-%COMP%], .columns-8 [_nghost-%COMP%] header.container[_ngcontent-%COMP%] nav[_ngcontent-%COMP%] .top-bar-new-info[_ngcontent-%COMP%] .menu-container[_ngcontent-%COMP%] nav[_ngcontent-%COMP%] .top-bar-new-info[_ngcontent-%COMP%] .menu-container[_ngcontent-%COMP%], .columns-4 [_nghost-%COMP%] header.container[_ngcontent-%COMP%] nav[_ngcontent-%COMP%] .top-bar[_ngcontent-%COMP%] .menu-container[_ngcontent-%COMP%] nav[_ngcontent-%COMP%] .top-bar[_ngcontent-%COMP%] .menu-container[_ngcontent-%COMP%], .columns-4 [_nghost-%COMP%] header.container[_ngcontent-%COMP%] nav[_ngcontent-%COMP%] .top-bar[_ngcontent-%COMP%] .menu-container[_ngcontent-%COMP%] nav[_ngcontent-%COMP%] .top-bar-new-info[_ngcontent-%COMP%] .menu-container[_ngcontent-%COMP%], .columns-4 [_nghost-%COMP%] header.container[_ngcontent-%COMP%] nav[_ngcontent-%COMP%] .top-bar-new-info[_ngcontent-%COMP%] .menu-container[_ngcontent-%COMP%] nav[_ngcontent-%COMP%] .top-bar[_ngcontent-%COMP%] .menu-container[_ngcontent-%COMP%], .columns-4 [_nghost-%COMP%] header.container[_ngcontent-%COMP%] nav[_ngcontent-%COMP%] .top-bar-new-info[_ngcontent-%COMP%] .menu-container[_ngcontent-%COMP%] nav[_ngcontent-%COMP%] .top-bar-new-info[_ngcontent-%COMP%] .menu-container[_ngcontent-%COMP%]{padding-top:60px}.columns-8 [_nghost-%COMP%] nav[_ngcontent-%COMP%], .columns-4 [_nghost-%COMP%] nav[_ngcontent-%COMP%]{position:absolute;width:100%;z-index:1000;height:100%;margin-top:-65px}.columns-8 [_nghost-%COMP%] nav[_ngcontent-%COMP%] .top-bar[_ngcontent-%COMP%], .columns-8 [_nghost-%COMP%] nav[_ngcontent-%COMP%] .top-bar-new-info[_ngcontent-%COMP%], .columns-4 [_nghost-%COMP%] nav[_ngcontent-%COMP%] .top-bar[_ngcontent-%COMP%], .columns-4 [_nghost-%COMP%] nav[_ngcontent-%COMP%] .top-bar-new-info[_ngcontent-%COMP%]{height:auto}.columns-8 [_nghost-%COMP%] nav[_ngcontent-%COMP%] .top-bar[_ngcontent-%COMP%] .menu-container[_ngcontent-%COMP%], .columns-8 [_nghost-%COMP%] nav[_ngcontent-%COMP%] .top-bar-new-info[_ngcontent-%COMP%] .menu-container[_ngcontent-%COMP%], .columns-4 [_nghost-%COMP%] nav[_ngcontent-%COMP%] .top-bar[_ngcontent-%COMP%] .menu-container[_ngcontent-%COMP%], .columns-4 [_nghost-%COMP%] nav[_ngcontent-%COMP%] .top-bar-new-info[_ngcontent-%COMP%] .menu-container[_ngcontent-%COMP%]{flex-direction:column;padding-top:32px;padding-bottom:32px}.columns-8 [_nghost-%COMP%] nav[_ngcontent-%COMP%] .top-bar[_ngcontent-%COMP%] .menu-container[_ngcontent-%COMP%] .row[_ngcontent-%COMP%], .columns-8 [_nghost-%COMP%] nav[_ngcontent-%COMP%] .top-bar-new-info[_ngcontent-%COMP%] .menu-container[_ngcontent-%COMP%] .row[_ngcontent-%COMP%], .columns-4 [_nghost-%COMP%] nav[_ngcontent-%COMP%] .top-bar[_ngcontent-%COMP%] .menu-container[_ngcontent-%COMP%] .row[_ngcontent-%COMP%], .columns-4 [_nghost-%COMP%] nav[_ngcontent-%COMP%] .top-bar-new-info[_ngcontent-%COMP%] .menu-container[_ngcontent-%COMP%] .row[_ngcontent-%COMP%]{flex-direction:column}.columns-8 [_nghost-%COMP%] nav[_ngcontent-%COMP%] .top-bar[_ngcontent-%COMP%] .menu-container[_ngcontent-%COMP%] .row[_ngcontent-%COMP%] .col[_ngcontent-%COMP%], .columns-8 [_nghost-%COMP%] nav[_ngcontent-%COMP%] .top-bar-new-info[_ngcontent-%COMP%] .menu-container[_ngcontent-%COMP%] .row[_ngcontent-%COMP%] .col[_ngcontent-%COMP%], .columns-4 [_nghost-%COMP%] nav[_ngcontent-%COMP%] .top-bar[_ngcontent-%COMP%] .menu-container[_ngcontent-%COMP%] .row[_ngcontent-%COMP%] .col[_ngcontent-%COMP%], .columns-4 [_nghost-%COMP%] nav[_ngcontent-%COMP%] .top-bar-new-info[_ngcontent-%COMP%] .menu-container[_ngcontent-%COMP%] .row[_ngcontent-%COMP%] .col[_ngcontent-%COMP%]{max-width:100%;text-overflow:ellipsis;overflow:hidden}.columns-8 [_nghost-%COMP%] nav[_ngcontent-%COMP%] .top-bar[_ngcontent-%COMP%] .menu-container[_ngcontent-%COMP%] .row[_ngcontent-%COMP%] .col[_ngcontent-%COMP%] button[_ngcontent-%COMP%], .columns-8 [_nghost-%COMP%] nav[_ngcontent-%COMP%] .top-bar-new-info[_ngcontent-%COMP%] .menu-container[_ngcontent-%COMP%] .row[_ngcontent-%COMP%] .col[_ngcontent-%COMP%] button[_ngcontent-%COMP%], .columns-4 [_nghost-%COMP%] nav[_ngcontent-%COMP%] .top-bar[_ngcontent-%COMP%] .menu-container[_ngcontent-%COMP%] .row[_ngcontent-%COMP%] .col[_ngcontent-%COMP%] button[_ngcontent-%COMP%], .columns-4 [_nghost-%COMP%] nav[_ngcontent-%COMP%] .top-bar-new-info[_ngcontent-%COMP%] .menu-container[_ngcontent-%COMP%] .row[_ngcontent-%COMP%] .col[_ngcontent-%COMP%] button[_ngcontent-%COMP%]{width:100%;text-align:left;padding-top:12px;padding-bottom:12px}.columns-8 [_nghost-%COMP%] nav[_ngcontent-%COMP%] .top-bar[_ngcontent-%COMP%] .menu-container[_ngcontent-%COMP%] .row[_ngcontent-%COMP%] .col[_ngcontent-%COMP%] button.sign-in-button[_ngcontent-%COMP%], .columns-8 [_nghost-%COMP%] nav[_ngcontent-%COMP%] .top-bar-new-info[_ngcontent-%COMP%] .menu-container[_ngcontent-%COMP%] .row[_ngcontent-%COMP%] .col[_ngcontent-%COMP%] button.sign-in-button[_ngcontent-%COMP%], .columns-4 [_nghost-%COMP%] nav[_ngcontent-%COMP%] .top-bar[_ngcontent-%COMP%] .menu-container[_ngcontent-%COMP%] .row[_ngcontent-%COMP%] .col[_ngcontent-%COMP%] button.sign-in-button[_ngcontent-%COMP%], .columns-4 [_nghost-%COMP%] nav[_ngcontent-%COMP%] .top-bar-new-info[_ngcontent-%COMP%] .menu-container[_ngcontent-%COMP%] .row[_ngcontent-%COMP%] .col[_ngcontent-%COMP%] button.sign-in-button[_ngcontent-%COMP%]{width:auto;padding-bottom:10px;padding-top:10px;margin-top:12px;left:16px}[dir=rtl] .columns-8 [_nghost-%COMP%] nav[_ngcontent-%COMP%] .top-bar[_ngcontent-%COMP%] .menu-container[_ngcontent-%COMP%] .row[_ngcontent-%COMP%] .col[_ngcontent-%COMP%] button.sign-in-button[_ngcontent-%COMP%], [dir=rtl] .columns-8 [_nghost-%COMP%] nav[_ngcontent-%COMP%] .top-bar-new-info[_ngcontent-%COMP%] .menu-container[_ngcontent-%COMP%] .row[_ngcontent-%COMP%] .col[_ngcontent-%COMP%] button.sign-in-button[_ngcontent-%COMP%], [dir=rtl] .columns-4 [_nghost-%COMP%] nav[_ngcontent-%COMP%] .top-bar[_ngcontent-%COMP%] .menu-container[_ngcontent-%COMP%] .row[_ngcontent-%COMP%] .col[_ngcontent-%COMP%] button.sign-in-button[_ngcontent-%COMP%], [dir=rtl] .columns-4 [_nghost-%COMP%] nav[_ngcontent-%COMP%] .top-bar-new-info[_ngcontent-%COMP%] .menu-container[_ngcontent-%COMP%] .row[_ngcontent-%COMP%] .col[_ngcontent-%COMP%] button.sign-in-button[_ngcontent-%COMP%]{left:0;right:16px}.columns-8 [_nghost-%COMP%] nav[_ngcontent-%COMP%] .top-bar[_ngcontent-%COMP%] .menu-container[_ngcontent-%COMP%] .row[_ngcontent-%COMP%] .col[_ngcontent-%COMP%] button[_ngcontent-%COMP%] .button-box[_ngcontent-%COMP%], .columns-8 [_nghost-%COMP%] nav[_ngcontent-%COMP%] .top-bar-new-info[_ngcontent-%COMP%] .menu-container[_ngcontent-%COMP%] .row[_ngcontent-%COMP%] .col[_ngcontent-%COMP%] button[_ngcontent-%COMP%] .button-box[_ngcontent-%COMP%], .columns-4 [_nghost-%COMP%] nav[_ngcontent-%COMP%] .top-bar[_ngcontent-%COMP%] .menu-container[_ngcontent-%COMP%] .row[_ngcontent-%COMP%] .col[_ngcontent-%COMP%] button[_ngcontent-%COMP%] .button-box[_ngcontent-%COMP%], .columns-4 [_nghost-%COMP%] nav[_ngcontent-%COMP%] .top-bar-new-info[_ngcontent-%COMP%] .menu-container[_ngcontent-%COMP%] .row[_ngcontent-%COMP%] .col[_ngcontent-%COMP%] button[_ngcontent-%COMP%] .button-box[_ngcontent-%COMP%]{display:flex;justify-content:space-between}.columns-8 [_nghost-%COMP%] nav[_ngcontent-%COMP%] .top-bar[_ngcontent-%COMP%] .menu-container[_ngcontent-%COMP%] .row[_ngcontent-%COMP%] .col[_ngcontent-%COMP%] .row[_ngcontent-%COMP%], .columns-8 [_nghost-%COMP%] nav[_ngcontent-%COMP%] .top-bar-new-info[_ngcontent-%COMP%] .menu-container[_ngcontent-%COMP%] .row[_ngcontent-%COMP%] .col[_ngcontent-%COMP%] .row[_ngcontent-%COMP%], .columns-4 [_nghost-%COMP%] nav[_ngcontent-%COMP%] .top-bar[_ngcontent-%COMP%] .menu-container[_ngcontent-%COMP%] .row[_ngcontent-%COMP%] .col[_ngcontent-%COMP%] .row[_ngcontent-%COMP%], .columns-4 [_nghost-%COMP%] nav[_ngcontent-%COMP%] .top-bar-new-info[_ngcontent-%COMP%] .menu-container[_ngcontent-%COMP%] .row[_ngcontent-%COMP%] .col[_ngcontent-%COMP%] .row[_ngcontent-%COMP%]{top:0;flex-direction:column;position:relative}.columns-8 [_nghost-%COMP%] nav[_ngcontent-%COMP%] .top-bar[_ngcontent-%COMP%] .menu-container[_ngcontent-%COMP%] .row[_ngcontent-%COMP%] .col[_ngcontent-%COMP%] .row[_ngcontent-%COMP%] button[_ngcontent-%COMP%], .columns-8 [_nghost-%COMP%] nav[_ngcontent-%COMP%] .top-bar-new-info[_ngcontent-%COMP%] .menu-container[_ngcontent-%COMP%] .row[_ngcontent-%COMP%] .col[_ngcontent-%COMP%] .row[_ngcontent-%COMP%] button[_ngcontent-%COMP%], .columns-4 [_nghost-%COMP%] nav[_ngcontent-%COMP%] .top-bar[_ngcontent-%COMP%] .menu-container[_ngcontent-%COMP%] .row[_ngcontent-%COMP%] .col[_ngcontent-%COMP%] .row[_ngcontent-%COMP%] button[_ngcontent-%COMP%], .columns-4 [_nghost-%COMP%] nav[_ngcontent-%COMP%] .top-bar-new-info[_ngcontent-%COMP%] .menu-container[_ngcontent-%COMP%] .row[_ngcontent-%COMP%] .col[_ngcontent-%COMP%] .row[_ngcontent-%COMP%] button[_ngcontent-%COMP%]{padding-left:32px;width:100%;text-align:left;padding-top:8px;padding-bottom:8px}[dir=rtl] .columns-8 [_nghost-%COMP%] nav[_ngcontent-%COMP%] .top-bar[_ngcontent-%COMP%] .menu-container[_ngcontent-%COMP%] .row[_ngcontent-%COMP%] .col[_ngcontent-%COMP%] .row[_ngcontent-%COMP%] button[_ngcontent-%COMP%], [dir=rtl] .columns-8 [_nghost-%COMP%] nav[_ngcontent-%COMP%] .top-bar-new-info[_ngcontent-%COMP%] .menu-container[_ngcontent-%COMP%] .row[_ngcontent-%COMP%] .col[_ngcontent-%COMP%] .row[_ngcontent-%COMP%] button[_ngcontent-%COMP%], [dir=rtl] .columns-4 [_nghost-%COMP%] nav[_ngcontent-%COMP%] .top-bar[_ngcontent-%COMP%] .menu-container[_ngcontent-%COMP%] .row[_ngcontent-%COMP%] .col[_ngcontent-%COMP%] .row[_ngcontent-%COMP%] button[_ngcontent-%COMP%], [dir=rtl] .columns-4 [_nghost-%COMP%] nav[_ngcontent-%COMP%] .top-bar-new-info[_ngcontent-%COMP%] .menu-container[_ngcontent-%COMP%] .row[_ngcontent-%COMP%] .col[_ngcontent-%COMP%] .row[_ngcontent-%COMP%] button[_ngcontent-%COMP%]{margin-left:auto;margin-right:16px}.columns-8 [_nghost-%COMP%] nav[_ngcontent-%COMP%] .top-bar[_ngcontent-%COMP%] .menu-container[_ngcontent-%COMP%] .row[_ngcontent-%COMP%] .col[_ngcontent-%COMP%] .row[_ngcontent-%COMP%] .row[_ngcontent-%COMP%] button[_ngcontent-%COMP%], .columns-8 [_nghost-%COMP%] nav[_ngcontent-%COMP%] .top-bar-new-info[_ngcontent-%COMP%] .menu-container[_ngcontent-%COMP%] .row[_ngcontent-%COMP%] .col[_ngcontent-%COMP%] .row[_ngcontent-%COMP%] .row[_ngcontent-%COMP%] button[_ngcontent-%COMP%], .columns-4 [_nghost-%COMP%] nav[_ngcontent-%COMP%] .top-bar[_ngcontent-%COMP%] .menu-container[_ngcontent-%COMP%] .row[_ngcontent-%COMP%] .col[_ngcontent-%COMP%] .row[_ngcontent-%COMP%] .row[_ngcontent-%COMP%] button[_ngcontent-%COMP%], .columns-4 [_nghost-%COMP%] nav[_ngcontent-%COMP%] .top-bar-new-info[_ngcontent-%COMP%] .menu-container[_ngcontent-%COMP%] .row[_ngcontent-%COMP%] .col[_ngcontent-%COMP%] .row[_ngcontent-%COMP%] .row[_ngcontent-%COMP%] button[_ngcontent-%COMP%]{padding-left:48px}[dir=rtl] .columns-8 [_nghost-%COMP%] nav[_ngcontent-%COMP%] .top-bar[_ngcontent-%COMP%] .menu-container[_ngcontent-%COMP%] .row[_ngcontent-%COMP%] .col[_ngcontent-%COMP%] .row[_ngcontent-%COMP%] .row[_ngcontent-%COMP%] button[_ngcontent-%COMP%], [dir=rtl] .columns-8 [_nghost-%COMP%] nav[_ngcontent-%COMP%] .top-bar-new-info[_ngcontent-%COMP%] .menu-container[_ngcontent-%COMP%] .row[_ngcontent-%COMP%] .col[_ngcontent-%COMP%] .row[_ngcontent-%COMP%] .row[_ngcontent-%COMP%] button[_ngcontent-%COMP%], [dir=rtl] .columns-4 [_nghost-%COMP%] nav[_ngcontent-%COMP%] .top-bar[_ngcontent-%COMP%] .menu-container[_ngcontent-%COMP%] .row[_ngcontent-%COMP%] .col[_ngcontent-%COMP%] .row[_ngcontent-%COMP%] .row[_ngcontent-%COMP%] button[_ngcontent-%COMP%], [dir=rtl] .columns-4 [_nghost-%COMP%] nav[_ngcontent-%COMP%] .top-bar-new-info[_ngcontent-%COMP%] .menu-container[_ngcontent-%COMP%] .row[_ngcontent-%COMP%] .col[_ngcontent-%COMP%] .row[_ngcontent-%COMP%] .row[_ngcontent-%COMP%] button[_ngcontent-%COMP%]{margin-left:auto;margin-right:32px}.columns-8 [_nghost-%COMP%] nav[_ngcontent-%COMP%] .top-bar[_ngcontent-%COMP%] .menu-container[_ngcontent-%COMP%] .row[_ngcontent-%COMP%] .col[_ngcontent-%COMP%] .row[_ngcontent-%COMP%] .row[_ngcontent-%COMP%] .row[_ngcontent-%COMP%] button[_ngcontent-%COMP%], .columns-8 [_nghost-%COMP%] nav[_ngcontent-%COMP%] .top-bar-new-info[_ngcontent-%COMP%] .menu-container[_ngcontent-%COMP%] .row[_ngcontent-%COMP%] .col[_ngcontent-%COMP%] .row[_ngcontent-%COMP%] .row[_ngcontent-%COMP%] .row[_ngcontent-%COMP%] button[_ngcontent-%COMP%], .columns-4 [_nghost-%COMP%] nav[_ngcontent-%COMP%] .top-bar[_ngcontent-%COMP%] .menu-container[_ngcontent-%COMP%] .row[_ngcontent-%COMP%] .col[_ngcontent-%COMP%] .row[_ngcontent-%COMP%] .row[_ngcontent-%COMP%] .row[_ngcontent-%COMP%] button[_ngcontent-%COMP%], .columns-4 [_nghost-%COMP%] nav[_ngcontent-%COMP%] .top-bar-new-info[_ngcontent-%COMP%] .menu-container[_ngcontent-%COMP%] .row[_ngcontent-%COMP%] .col[_ngcontent-%COMP%] .row[_ngcontent-%COMP%] .row[_ngcontent-%COMP%] .row[_ngcontent-%COMP%] button[_ngcontent-%COMP%]{padding-left:80px}[dir=rtl] .columns-8 [_nghost-%COMP%] nav[_ngcontent-%COMP%] .top-bar[_ngcontent-%COMP%] .menu-container[_ngcontent-%COMP%] .row[_ngcontent-%COMP%] .col[_ngcontent-%COMP%] .row[_ngcontent-%COMP%] .row[_ngcontent-%COMP%] .row[_ngcontent-%COMP%] button[_ngcontent-%COMP%], [dir=rtl] .columns-8 [_nghost-%COMP%] nav[_ngcontent-%COMP%] .top-bar-new-info[_ngcontent-%COMP%] .menu-container[_ngcontent-%COMP%] .row[_ngcontent-%COMP%] .col[_ngcontent-%COMP%] .row[_ngcontent-%COMP%] .row[_ngcontent-%COMP%] .row[_ngcontent-%COMP%] button[_ngcontent-%COMP%], [dir=rtl] .columns-4 [_nghost-%COMP%] nav[_ngcontent-%COMP%] .top-bar[_ngcontent-%COMP%] .menu-container[_ngcontent-%COMP%] .row[_ngcontent-%COMP%] .col[_ngcontent-%COMP%] .row[_ngcontent-%COMP%] .row[_ngcontent-%COMP%] .row[_ngcontent-%COMP%] button[_ngcontent-%COMP%], [dir=rtl] .columns-4 [_nghost-%COMP%] nav[_ngcontent-%COMP%] .top-bar-new-info[_ngcontent-%COMP%] .menu-container[_ngcontent-%COMP%] .row[_ngcontent-%COMP%] .col[_ngcontent-%COMP%] .row[_ngcontent-%COMP%] .row[_ngcontent-%COMP%] .row[_ngcontent-%COMP%] button[_ngcontent-%COMP%]{margin-left:auto;margin-right:64px}"]}),M})();const os=function(z){return{"space-around":z}};let to=(()=>{var z;class M{constructor(v,W){this.window=W,this.labelFooter="footer",this.infoSiteBaseUrl=Bi.N.INFO_SITE,v.get().subscribe(fe=>{this.platform=fe})}ngOnInit(){setTimeout(()=>{const v=this.window.document.getElementById("ot-sdk-btn");v&&(v.innerText="Cookie Settings")},200)}goTo(v){this.window.location.href=v}}return(z=M).\u0275fac=function(v){return new(v||z)(r.Y36(is.tu),r.Y36(Wo.m9))},z.\u0275cmp=r.Xpm({type:z,selectors:[["app-footer"]],decls:87,vars:8,consts:function(){let y,v,W,fe,Ue,et,At,$t,ln,Jt,Zn,Rn;return y="The text of this website is published under a",v="CC0 license.",W="Images and marks are subject to copyright and trademark protection",fe=".",Ue="About ORCID",et="Privacy Policy",At="Terms of Use",$t="Accessibility Statement",ln="ORCID Help Center",Jt="Dispute procedures",Zn="Brand Guidelines",Rn="Cookie Settings",[[1,"container"],[1,"row","logo","space-around"],[1,"col","baseline"],["src","./assets/vectors/orcid.logo.svg","alt","Orcid"],["href","https://twitter.com/orcid_org"],["src","./assets/vectors/glyphicons-social-32-twitter.svg","alt","Twitter",1,"social"],[1,"social",3,"href"],["src","./assets/vectors/glyphicons-social-38-rss.svg","alt","Rss",1,"social"],["href","https://github.com/ORCID",1,"social"],["src","./assets/vectors/glyphicons-social-22-github.svg","alt","Github",1,"social"],[1,"row","public-domain","space-around"],[1,"CC0","mat-caption"],["src","./assets/icons/public-domain.png","alt","public domain"],y,["href","http://creativecommons.org/publicdomain/zero/1.0/","rel","license noreferrer","target","footer.copyright_cc0",1,"mat-button-font"],v,W,fe,[1,"row","links","space-around"],[1,"col","mat-button-font","url-lists",3,"ngClass"],["href","/about",1,"col","s4","l-auto","m8"],Ue,["href","/privacy-policy",1,"col","s4","l-auto","m8"],et,["href","/content/orcid-terms-use",1,"col","s4","l-auto","m8"],At,["href","/content/orcid-accessibility-statement",1,"col","s4","l-auto","m8"],$t,["href","https://support.orcid.org/",1,"col","s4","l-auto","m8"],ln,["href","/orcid-dispute-procedures",1,"col","s4","l-auto","m8"],Jt,["href","/trademark-and-id-display-guidelines/",1,"col","s4","l-auto","m8"],Zn,["id","ot-sdk-btn",1,"col","s4","l-auto","m8","ot-sdk-show-settings"],Rn]},template:function(v,W){1&v&&(r.TgZ(0,"footer"),r._uU(1,"\n "),r.TgZ(2,"div",0),r._uU(3,"\n "),r.TgZ(4,"div",1),r._uU(5,"\n "),r.TgZ(6,"div",2),r._uU(7,"\n "),r.TgZ(8,"a"),r._uU(9,"\n "),r._UZ(10,"img",3),r._uU(11,"\n "),r.qZA(),r._uU(12,"\n "),r.TgZ(13,"a",4),r._uU(14,"\n "),r._UZ(15,"img",5),r._uU(16,"\n "),r.qZA(),r._uU(17,"\n "),r.TgZ(18,"a",6),r._uU(19,"\n "),r._UZ(20,"img",7),r._uU(21,"\n "),r.qZA(),r._uU(22,"\n "),r.TgZ(23,"a",8),r._uU(24,"\n "),r._UZ(25,"img",9),r._uU(26,"\n "),r.qZA(),r._uU(27,"\n "),r.qZA(),r._uU(28,"\n "),r.qZA(),r._uU(29,"\n\n "),r.TgZ(30,"div",10),r._uU(31,"\n "),r.TgZ(32,"div",11),r._uU(33,"\n "),r._UZ(34,"img",12),r._uU(35,"\n "),r.ynx(36),r.SDv(37,13),r.BQk(),r._uU(38,"\n "),r.TgZ(39,"a",14),r.SDv(40,15),r.qZA(),r._uU(41,"\n "),r.ynx(42),r.SDv(43,16),r.BQk(),r.ynx(44),r.SDv(45,17),r.BQk(),r._uU(46,"\n "),r.qZA(),r._uU(47,"\n "),r.qZA(),r._uU(48,"\n "),r.TgZ(49,"div",18),r._uU(50,"\n "),r.TgZ(51,"div",19),r._uU(52,"\n "),r.TgZ(53,"a",20),r.SDv(54,21),r.qZA(),r._uU(55,"\n\n "),r.TgZ(56,"a",22),r.SDv(57,23),r.qZA(),r._uU(58,"\n "),r.TgZ(59,"a",24),r.SDv(60,25),r.qZA(),r._uU(61,"\n "),r.TgZ(62,"a",26),r.SDv(63,27),r.qZA(),r._uU(64,"\n "),r.qZA(),r._uU(65,"\n "),r.qZA(),r._uU(66,"\n "),r.TgZ(67,"div",18),r._uU(68,"\n "),r.TgZ(69,"div",19),r._uU(70,"\n "),r.TgZ(71,"a",28),r.SDv(72,29),r.qZA(),r._uU(73,"\n "),r.TgZ(74,"a",30),r.SDv(75,31),r.qZA(),r._uU(76,"\n "),r.TgZ(77,"a",32),r.SDv(78,33),r.qZA(),r._uU(79,"\n "),r.TgZ(80,"a",34),r.SDv(81,35),r.qZA(),r._uU(82,"\n "),r.qZA(),r._uU(83,"\n "),r.qZA(),r._uU(84,"\n "),r.qZA(),r._uU(85,"\n"),r.qZA(),r._uU(86,"\n")),2&v&&(r.uIk("aria-label",W.labelFooter),r.xp6(18),r.MGl("href","",W.infoSiteBaseUrl,"blog/feed",r.LSH),r.xp6(33),r.Q6J("ngClass",r.VKq(4,os,!W.platform.columns12)),r.xp6(18),r.Q6J("ngClass",r.VKq(6,os,!W.platform.columns12)))},dependencies:[ci.mk],styles:["footer[_ngcontent-%COMP%]{background-color:#f5f5f5}footer[_ngcontent-%COMP%] a[_ngcontent-%COMP%]{color:#000000de}","footer[_ngcontent-%COMP%]{padding-bottom:16px}.columns-8 [_nghost-%COMP%] footer[_ngcontent-%COMP%], .columns-4 [_nghost-%COMP%] footer[_ngcontent-%COMP%]{padding-bottom:75px}.url-lists[_ngcontent-%COMP%]{margin:0;padding:0;list-style:none}.logo.row[_ngcontent-%COMP%]{height:35px;padding-top:24px;padding-bottom:16px}.logo.row[_ngcontent-%COMP%] > .col[_ngcontent-%COMP%]{width:290px}.logo.row[_ngcontent-%COMP%] a[_ngcontent-%COMP%]{margin-left:12px}[dir] [_nghost-%COMP%] .logo.row[_ngcontent-%COMP%] a[_ngcontent-%COMP%]{margin-left:auto;margin-right:12px}.logo.row[_ngcontent-%COMP%] a[_ngcontent-%COMP%] img[_ngcontent-%COMP%]{height:41px;width:auto;object-fit:cover}.logo.row[_ngcontent-%COMP%] a[_ngcontent-%COMP%] img.social[_ngcontent-%COMP%]{height:24px}.public-domain[_ngcontent-%COMP%] img[_ngcontent-%COMP%]{object-fit:cover;width:80px;height:15px;margin-right:8px}[dir] [_nghost-%COMP%] .public-domain[_ngcontent-%COMP%] img[_ngcontent-%COMP%]{margin-right:auto;margin-left:8px}.public-domain[_ngcontent-%COMP%] .CC0[_ngcontent-%COMP%]{text-align:center}.columns-4 [_nghost-%COMP%] .public-domain[_ngcontent-%COMP%] .CC0[_ngcontent-%COMP%], .columns-8 [_nghost-%COMP%] .public-domain[_ngcontent-%COMP%] .CC0[_ngcontent-%COMP%]{padding-bottom:15px}.links[_ngcontent-%COMP%] > .url-lists[_ngcontent-%COMP%]{justify-content:space-around}.columns-4 [_nghost-%COMP%] .links[_ngcontent-%COMP%] > .url-lists[_ngcontent-%COMP%] a[_ngcontent-%COMP%], .columns-8 [_nghost-%COMP%] .links[_ngcontent-%COMP%] > .url-lists[_ngcontent-%COMP%] a[_ngcontent-%COMP%]{justify-content:space-around}.links[_ngcontent-%COMP%] > .url-lists[_ngcontent-%COMP%] a[_ngcontent-%COMP%] button[_ngcontent-%COMP%]{padding:0 12px}a[_ngcontent-%COMP%]:hover, a[_ngcontent-%COMP%]:focus{text-decoration:underline}.links[_ngcontent-%COMP%] a[_ngcontent-%COMP%]{cursor:pointer;padding:7px 20px}.CC0[_ngcontent-%COMP%] > a[_ngcontent-%COMP%]:hover{text-decoration:underline}.ot-sdk-show-settings[_ngcontent-%COMP%]{color:inherit!important;line-height:inherit!important;border-width:initial!important;border-style:none!important;border-color:initial!important;border-image:initial!important;margin:0 auto!important;padding:7px 20px!important;transition:inherit!important;font-size:inherit!important;font-weight:inherit!important}.ot-sdk-show-settings[_ngcontent-%COMP%]:hover{color:inherit!important;background-color:inherit!important}"]}),M})();function xs(z,M){if(1&z&&(r.TgZ(0,"div",1)(1,"a",2),r._uU(2,"Skip to main content"),r.qZA()()),2&z){const y=r.oxw();r.xp6(1),r.Q6J("href",y.currentUrl+"#main",r.LSH)}}let N=(()=>{var z;class M{constructor(v,W,fe){this.router=v,this.route=W,this.window=fe,v.events.pipe((0,jt.h)(Ue=>Ue instanceof Wi.m2)).subscribe(Ue=>{this.currentUrl=Ue.urlAfterRedirects.replace("#main","")})}ngOnInit(){}skipMainMenu(){this.router.navigateByUrl(this.currentUrl+"#main")}}return(z=M).\u0275fac=function(v){return new(v||z)(r.Y36(Wi.F0),r.Y36(Wi.gz),r.Y36(Wo.m9))},z.\u0275cmp=r.Xpm({type:z,selectors:[["app-skip-main-nav"]],decls:1,vars:1,consts:[["id","skip-link",4,"ngIf"],["id","skip-link"],[1,"a11yLinks",3,"href"]],template:function(v,W){1&v&&r.YNc(0,xs,3,1,"div",0),2&v&&r.Q6J("ngIf",W.currentUrl)},dependencies:[ci.O5],styles:[".a11yLinks[_ngcontent-%COMP%]{position:absolute!important}.a11yLinks[_ngcontent-%COMP%]:not(:focus){clip:rect(1px 1px 1px 1px);clip:rect(1px,1px,1px,1px);overflow:hidden;height:1px}"]}),M})();function $(z,M){if(1&z){const y=r.EpF();r.TgZ(0,"button",2),r.NdJ("click",function(){r.CHM(y);const W=r.oxw();return r.KtG(W.onDismiss())}),r.Hsn(1,1),r.qZA()}}const Z=["*",[["label",8,"closebutton"]]],F=["*","label.closeButton"];let te=(()=>{var z;class M{constructor(v){this._cookie=v,this.dismissCookie="cookieName",this.canDismiss=!1,this.dismissCookieTime=365,this.dismiss=new r.vpe}ngOnInit(){}onDismiss(){this._cookie.set(this.dismissCookie,"dont show message",this.dismissCookieTime),this.dismiss.emit()}}return(z=M).\u0275fac=function(v){return new(v||z)(r.Y36(Vs.N))},z.\u0275cmp=r.Xpm({type:z,selectors:[["app-banner"]],inputs:{dismissCookie:"dismissCookie",canDismiss:"canDismiss",dismissCookieTime:"dismissCookieTime",ariaLabel:"ariaLabel"},outputs:{dismiss:"dismiss"},ngContentSelectors:F,decls:4,vars:2,consts:[[1,"alert","alert-banner","mat-body-1"],["mat-flat-button","","color","primary",3,"click",4,"ngIf"],["mat-flat-button","","color","primary",3,"click"]],template:function(v,W){1&v&&(r.F$t(Z),r.TgZ(0,"section",0)(1,"p"),r.Hsn(2),r.qZA(),r.YNc(3,$,2,0,"button",1),r.qZA()),2&v&&(r.uIk("aria-label",W.ariaLabel),r.xp6(3),r.Q6J("ngIf",W.canDismiss))},dependencies:[ci.O5,Ws.eB],styles:["[_nghost-%COMP%]{background-color:#f5c120;display:flex;padding:15px}.alert-banner[_ngcontent-%COMP%]{display:flex;flex-direction:row;align-items:center;width:100%;justify-content:space-between}button[_ngcontent-%COMP%]{flex-shrink:0}.mat-body-1[_ngcontent-%COMP%] p[_ngcontent-%COMP%]{margin:0}.columns-12 [_nghost-%COMP%] .alert-banner[_ngcontent-%COMP%] > div[_ngcontent-%COMP%]{padding-right:15px}.columns-8 [_nghost-%COMP%] .alert-banner[_ngcontent-%COMP%], .columns-4 [_nghost-%COMP%] .alert-banner[_ngcontent-%COMP%]{flex-direction:column;align-items:flex-end}.columns-8 [_nghost-%COMP%] .alert-banner[_ngcontent-%COMP%] p[_ngcontent-%COMP%], .columns-4 [_nghost-%COMP%] .alert-banner[_ngcontent-%COMP%] p[_ngcontent-%COMP%]{align-self:flex-start}"]}),M})();function Se(z,M){1&z&&(r.TgZ(0,"app-banner",2),r.ynx(1),r.SDv(2,3),r.BQk(),r._uU(3,"\n\n "),r.ynx(4),r.SDv(5,4),r.BQk(),r._uU(6,"\n\n "),r.TgZ(7,"a",5),r.SDv(8,6),r.qZA(),r._uU(9,".\n\n "),r.TgZ(10,"label",7),r.SDv(11,8),r.qZA(),r._uU(12,"\n"),r.qZA()),2&z&&r.Q6J("canDismiss",!1)}function Ge(z,M){if(1&z){const y=r.EpF();r.TgZ(0,"app-banner",9),r.NdJ("dismiss",function(){r.CHM(y);const W=r.oxw();return r.KtG(W.understoodClosableMessage(W.closableElementAtDisplay))}),r._uU(1,"\n "),r._UZ(2,"span",10),r._uU(3,"\n "),r.TgZ(4,"label",7),r.SDv(5,11),r.qZA(),r._uU(6,"\n"),r.qZA()}if(2&z){const y=r.oxw();r.Q6J("canDismiss",!0)("dismissCookieTime",365)("canDismiss",!0)("ariaLabel",y.closableElementAtDisplay.getAttribute("aria-label")),r.xp6(2),r.Q6J("innerHtml",y.closableElementAtDisplay.innerHTML,r.oJD)}}let Rt=(()=>{var z;class M{constructor(v,W,fe){this._cookie=fe,this.environment=Bi.N,this.ariaLabelCookiesPolicy="Cookies Policy",W.getMaintenanceMessages().subscribe(Ue=>{this.maintenanceMessages=Ue,this.updateClosableMessage()}),v.get().pipe((0,jt.h)(Ue=>Ue.unsupportedBrowser),(0,Rs.q)(1)).subscribe(Ue=>this.showUnsupportedBrowserBanner=Ue.unsupportedBrowser)}updateClosableMessage(){this.maintenanceMessages&&this.maintenanceMessages.closableElements&&this.maintenanceMessages.closableElements.forEach(v=>{v&&v.id&&!this._cookie.check(v.id)&&!this.closableElementAtDisplay&&(this.closableElementAtDisplay=v)})}understoodClosableMessage(v){this.closableElementAtDisplay=null,this._cookie.set(v.id,"understood",365),this.updateClosableMessage()}ngOnInit(){}}return(z=M).\u0275fac=function(v){return new(v||z)(r.Y36(is.tu),r.Y36(Ls.b),r.Y36(Vs.N))},z.\u0275cmp=r.Xpm({type:z,selectors:[["app-banners"]],decls:4,vars:2,consts:function(){let y,v,W,fe,Ue;return y="We notice you are using a browser that our site does not support. Some features on this site may not work correctly.",v="We recommend that you upgrade to a",W="supported browser",fe="Dismiss",Ue="Understood",[["ariaLabel","Unsupported browser",3,"canDismiss",4,"ngIf"],[3,"canDismiss","dismissCookie","dismissCookieTime","ariaLabel","dismiss",4,"ngIf"],["ariaLabel","Unsupported browser",3,"canDismiss"],y,v,["target","common.old_browser_3","href","https://support.orcid.org/hc/en-us/articles/360006895074-Technical-requirements-for-using-the-ORCID-site",1,"mat-button-font","black-url"],W,[1,"closeButton"],fe,[3,"canDismiss","dismissCookie","dismissCookieTime","ariaLabel","dismiss"],[3,"innerHtml"],Ue]},template:function(v,W){1&v&&(r.YNc(0,Se,13,1,"app-banner",0),r._uU(1,"\n\n"),r.YNc(2,Ge,7,5,"app-banner",1),r._uU(3,"\n")),2&v&&(r.Q6J("ngIf",W.showUnsupportedBrowserBanner),r.xp6(2),r.Q6J("ngIf",W.closableElementAtDisplay))},dependencies:[ci.O5,te]}),M})();var hn=s(49388);function Vt(z,M){1&z&&r._UZ(0,"app-banners")}function yn(z,M){1&z&&r._UZ(0,"app-header",5)}let si=(()=>{var z;class M{constructor(v,W,fe,Ue,et,At,$t,ln){this._userService=et,this._errorHandler=At,this._window=$t,this.currentlyDisplayingZendesk=!0,this.headlessMode=!1,this.currentRouteIsHeadlessOnOauthPage=!0,ln.init(),v.get().pipe((0,Wn.b)(Jt=>{this.platformInfo=Jt,this.currentRouteIsHeadlessOnOauthPage=this.showHeadlessOnOauthPage(Jt.currentRoute),this.setPlatformClasses(Jt),this.screenDirection=Jt.screenDirection,Jt.hasOauthParameters||this.currentlyDisplayingZendesk?Jt.hasOauthParameters&&this.currentlyDisplayingZendesk&&(Ue.hide(),this.currentlyDisplayingZendesk=!1):(Ue.show(),Ue.adaptPluginToPlatform(Jt),this.currentlyDisplayingZendesk=!0)})).subscribe(),W.events.subscribe(Jt=>{if(Jt instanceof Wi.OD&&((0,He.Xf)(Jt.url),this.currentRoute=Jt.url),Jt instanceof Wi.m2){const Zn=(0,He.mE)(Jt.url);fe.addGtmToDom().pipe((0,Ho.K)(Rn=>this._errorHandler.handleError(Rn,oa.l.STANDARD_NO_VERBOSE_NO_GA))).subscribe(Rn=>{Rn&&fe.reportNavigationEnd(Jt.url,Zn).subscribe(()=>{fe.reportPageView(Jt.urlAfterRedirects)})})}})}showHeadlessOnOauthPage(v){return!v||!!Fn.kT.filter(fe=>0===v.indexOf("/"+fe)).length}setPlatformClasses(v,W){this.headlessMode=(v.hasOauthParameters||W)&&this.currentRouteIsHeadlessOnOauthPage||v.summaryScreen,this.ie=v.ie,this.edge=v.edge,this.tabletOrHandset=v.tabletOrHandset,this.handset=v.handset,this.tablet=v.tablet,this.desktop=v.desktop,this.columns8=v.columns8,this.columns12=v.columns12,this.columns4=v.columns4}onVisibilityChange(v){this._userService.setTimerAsHiddenState(this._window.document.hidden)}}return(z=M).\u0275fac=function(v){return new(v||z)(r.Y36(ee.t),r.Y36(Wi.F0),r.Y36(js.k),r.Y36(Re.p),r.Y36(gr.KD),r.Y36(po.q),r.Y36(Wo.m9),r.Y36(lt.y))},z.\u0275cmp=r.Xpm({type:z,selectors:[["app-root"]],hostVars:18,hostBindings:function(v,W){1&v&&r.NdJ("visibilitychange",function(){return W.onVisibilityChange()},!1,r.Jf7),2&v&&r.ekj("edge",W.edge)("ie",W.ie)("tabletOrHandset",W.tabletOrHandset)("handset",W.handset)("tablet",W.tablet)("desktop",W.desktop)("columns-8",W.columns8)("columns-12",W.columns12)("columns-4",W.columns4)},decls:8,vars:3,consts:[[3,"dir"],["name","banner"],[4,"ngIf"],["currentRoute","",4,"ngIf"],[1,"router-container"],["currentRoute",""]],template:function(v,W){1&v&&(r._UZ(0,"app-skip-main-nav"),r.TgZ(1,"div",0),r._UZ(2,"router-outlet",1),r.YNc(3,Vt,1,0,"app-banners",2),r.YNc(4,yn,1,0,"app-header",3),r.TgZ(5,"div",4),r._UZ(6,"router-outlet")(7,"app-footer"),r.qZA()()),2&v&&(r.xp6(1),r.Q6J("dir",W.screenDirection),r.xp6(2),r.Q6J("ngIf",!W.headlessMode),r.xp6(1),r.Q6J("ngIf",!W.headlessMode))},dependencies:[ci.O5,Wi.lC,pd,to,N,Rt,hn.Lv],styles:["app-footer[_ngcontent-%COMP%]{position:absolute;bottom:0;left:0;width:100%}.router-container[_ngcontent-%COMP%]{flex:1 0 auto;display:flex;width:100%}"]}),M})();var Ni=s(24953),yi=s(63977);let Hs=(()=>{var z;class M{}return(z=M).\u0275fac=function(v){return new(v||z)},z.\u0275mod=r.oAB({type:z}),z.\u0275inj=r.cJS({}),M})(),Zs=(()=>{var z;class M{constructor(){this.formUrlEcondedUrls=["/sendReactivation.json","/social/signin/auth.json","/shibboleth/signin/auth.json","/signin/auth.json"]}construct(){}intercept(v,W){var et,Ue=v.urlWithParams;return["POST","PUT"].includes(v.method)?(et=this.formUrlEcondedUrls.find(At=>Ue.includes(At))?v.clone({headers:v.headers.set("Content-Type","application/x-www-form-urlencoded;charset=utf-8")}):v.clone({headers:v.headers.set("Content-Type","application/json;charset=utf-8")}),W.handle(et)):W.handle(v)}}return(z=M).\u0275fac=function(v){return new(v||z)},z.\u0275prov=r.Yz7({token:z,factory:z.\u0275fac}),M})();var Ba=s(69862);let kl=(()=>{var z;class M{constructor(){this.initializeApp()}initializeApp(){Bi.N.API_WEB=Bi.N.API_WEB.replace("",this.getSubDomain()),Bi.N.BASE_URL=Bi.N.BASE_URL.replace("",this.getSubDomain()),Bi.N.API_PUB=Bi.N.API_PUB.replace("",this.getSubDomain()),Bi.N.API_WEB=Bi.N.API_WEB.replace("",this.getCurrentLeanDomain()),Bi.N.BASE_URL=Bi.N.BASE_URL.replace("",this.getCurrentLeanDomain()),Bi.N.API_PUB=Bi.N.API_PUB.replace("",this.getCurrentLeanDomain())}getCurrentLeanDomain(){const v=window.location.port?":"+window.location.port:"";return window.location.hostname.split(".").slice(-2).join(".")+v}getSubDomain(){const v=window.location.hostname.split(".").slice(0,-2).join(".");return v?v+".":""}}return(z=M).\u0275fac=function(v){return new(v||z)},z.\u0275mod=r.oAB({type:z,bootstrap:[si]}),z.\u0275inj=r.cJS({providers:[lt.y,{provide:Ba.TP,useClass:Zs,multi:!0}],imports:[a.b2,ie,Ni.I,Or,yi.x,hn.vT,Hs,Bi.N.SHOW_TEST_WARNING_BANNER?lr:[]]}),M})();Bi.N.production&&(0,r.G48)(),a.q6().bootstrapModule(kl).catch(z=>console.error(z))},25726:(Qe,he)=>{!function(s){function a(){this.months=["jan","feb","mar","apr","may","jun","jul","aug","sep","oct","nov","dec"],this.notKey=[",","{","}"," ","="],this.pos=0,this.input="",this.entries=new Array,this.currentEntry="",this.setInput=function(r){this.input=r},this.getEntries=function(){return this.entries},this.isWhitespace=function(r){return" "==r||"\r"==r||"\t"==r||"\n"==r},this.match=function(r,b){if((null==b||null==b)&&(b=!0),this.skipWhitespace(b),this.input.substring(this.pos,this.pos+r.length)!=r)throw TypeError("Token mismatch: match","expected "+r+", found "+this.input.substring(this.pos));this.pos+=r.length,this.skipWhitespace(b)},this.tryMatch=function(r,b){return(null==b||null==b)&&(b=!0),this.skipWhitespace(b),this.input.substring(this.pos,this.pos+r.length)==r},this.matchAt=function(){for(;this.input.length>this.pos&&"@"!=this.input[this.pos];)this.pos++;return"@"==this.input[this.pos]},this.skipWhitespace=function(r){for(;this.isWhitespace(this.input[this.pos]);)this.pos++;if("%"==this.input[this.pos]&&1==r){for(;"\n"!=this.input[this.pos];)this.pos++;this.skipWhitespace(r)}},this.value_braces=function(){var r=0;this.match("{",!1);for(var b=this.pos,A=!1;;){if(!A)if("}"==this.input[this.pos]){if(!(r>0)){var D=this.pos;return this.match("}",!1),this.input.substring(b,D)}r--}else if("{"==this.input[this.pos])r++;else if(this.pos>=this.input.length-1)throw TypeError("Unterminated value: value_braces");A="\\"==this.input[this.pos]&&0==A,this.pos++}},this.value_comment=function(){for(var r="",b=0;!this.tryMatch("}",!1)||0!=b;){if(r+=this.input[this.pos],"{"==this.input[this.pos]&&b++,"}"==this.input[this.pos]&&b--,this.pos>=this.input.length-1)throw TypeError("Unterminated value: value_comment",+this.input.substring(start));this.pos++}return r},this.value_quotes=function(){this.match('"',!1);for(var r=this.pos,b=!1;;){if(!b){if('"'==this.input[this.pos]){var A=this.pos;return this.match('"',!1),this.input.substring(r,A)}if(this.pos>=this.input.length-1)throw TypeError("Unterminated value: value_quotes",this.input.substring(r))}b="\\"==this.input[this.pos]&&0==b,this.pos++}},this.single_value=function(){var r=this.pos;if(this.tryMatch("{"))return this.value_braces();if(this.tryMatch('"'))return this.value_quotes();var b=this.key();if(b.match("^[0-9]+$"))return b;if(this.months.indexOf(b.toLowerCase())>=0)return b.toLowerCase();throw"Value expected: single_value"+this.input.substring(r)+" for key: "+b},this.value=function(){var r=[];for(r.push(this.single_value());this.tryMatch("#");)this.match("#"),r.push(this.single_value());return r.join("")},this.key=function(r){for(var b=this.pos;;){if(this.pos>=this.input.length)throw TypeError("Runaway key: key");if(this.notKey.indexOf(this.input[this.pos])>=0)return r&&","!=this.input[this.pos]?(this.pos=b,null):this.input.substring(b,this.pos);this.pos++}},this.key_equals_value=function(){var r=this.key();if(this.tryMatch("=")){this.match("=");var b=this.value();return[r=r.trim(),b]}throw TypeError("Value expected, equals sign missing: key_equals_value",this.input.substring(this.pos))},this.key_value_list=function(){var r=this.key_equals_value();for(this.currentEntry.entryTags={},this.currentEntry.entryTags[r[0]]=r[1];this.tryMatch(",")&&(this.match(","),!this.tryMatch("}"));)r=this.key_equals_value(),this.currentEntry.entryTags[r[0]]=r[1]},this.entry_body=function(r){this.currentEntry={},this.currentEntry.citationKey=this.key(!0),this.currentEntry.entryType=r.substring(1),null!=this.currentEntry.citationKey&&this.match(","),this.key_value_list(),this.entries.push(this.currentEntry)},this.directive=function(){return this.match("@"),"@"+this.key()},this.preamble=function(){this.currentEntry={},this.currentEntry.entryType="PREAMBLE",this.currentEntry.entry=this.value_comment(),this.entries.push(this.currentEntry)},this.comment=function(){this.currentEntry={},this.currentEntry.entryType="COMMENT",this.currentEntry.entry=this.value_comment(),this.entries.push(this.currentEntry)},this.entry=function(r){this.entry_body(r)},this.alernativeCitationKey=function(){this.entries.forEach(function(r){!r.citationKey&&r.entryTags&&(r.citationKey="",r.entryTags.author&&(r.citationKey+=r.entryTags.author.split(",")[0]+=", "),r.citationKey+=r.entryTags.year)})},this.bibtex=function(){for(;this.matchAt();){var r=this.directive();this.match("{"),"@STRING"==r.toUpperCase()?this.string():"@PREAMBLE"==r.toUpperCase()?this.preamble():"@COMMENT"==r.toUpperCase()?this.comment():this.entry(r),this.match("}")}this.alernativeCitationKey()}}s.toJSON=function(r){var b=new a;return b.setInput(r),b.bibtex(),b.entries},s.toBibtex=function(r,b){void 0===b&&(b=!0);var A="",D=",",p="";for(var E in b||(D=",\n",p=" "),r){if(A+="@"+r[E].entryType,A+="{",r[E].citationKey&&(A+=r[E].citationKey+D),r[E].entry&&(A+=r[E].entry),r[E].entryTags){var f=p;for(var c in r[E].entryTags)0!=f.trim().length&&(f+=D+p),f+=c+(b?"={":" = {")+r[E].entryTags[c]+"}";A+=f}A+=b?"}\n":"\n}\n\n"}return A}}(he)},9919:(Qe,he)=>{"use strict";he.byteLength=function E(g){var P=p(g),d=P[1];return 3*(P[0]+d)/4-d},he.toByteArray=function c(g){var P,w,U=p(g),d=U[0],q=U[1],j=new r(function f(g,P,U){return 3*(P+U)/4-U}(0,d,q)),K=0,L=q>0?d-4:d;for(w=0;w>16&255,j[K++]=P>>8&255,j[K++]=255&P;return 2===q&&(P=a[g.charCodeAt(w)]<<2|a[g.charCodeAt(w+1)]>>4,j[K++]=255&P),1===q&&(P=a[g.charCodeAt(w)]<<10|a[g.charCodeAt(w+1)]<<4|a[g.charCodeAt(w+2)]>>2,j[K++]=P>>8&255,j[K++]=255&P),j},he.fromByteArray=function _(g){for(var P,U=g.length,d=U%3,q=[],j=16383,K=0,L=U-d;KL?L:K+j));return 1===d?q.push(s[(P=g[U-1])>>2]+s[P<<4&63]+"=="):2===d&&q.push(s[(P=(g[U-2]<<8)+g[U-1])>>10]+s[P>>4&63]+s[P<<2&63]+"="),q.join("")};for(var s=[],a=[],r=typeof Uint8Array<"u"?Uint8Array:Array,b="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",A=0;A<64;++A)s[A]=b[A],a[b.charCodeAt(A)]=A;function p(g){var P=g.length;if(P%4>0)throw new Error("Invalid string. Length must be a multiple of 4");var U=g.indexOf("=");return-1===U&&(U=P),[U,U===P?0:4-U%4]}function C(g){return s[g>>18&63]+s[g>>12&63]+s[g>>6&63]+s[63&g]}function m(g,P,U){for(var q=[],j=P;j{"use strict";var a=s(9919),r=s(22601),b="function"==typeof Symbol&&"function"==typeof Symbol.for?Symbol.for("nodejs.util.inspect.custom"):null;he.Buffer=E,he.SlowBuffer=function j(Ie){return+Ie!=Ie&&(Ie=0),E.alloc(+Ie)},he.INSPECT_MAX_BYTES=50;var A=2147483647;function p(Ie){if(Ie>A)throw new RangeError('The value "'+Ie+'" is invalid for option "size"');var ne=new Uint8Array(Ie);return Object.setPrototypeOf(ne,E.prototype),ne}function E(Ie,ne,ce){if("number"==typeof Ie){if("string"==typeof ne)throw new TypeError('The "string" argument must be of type string. Received type number');return m(Ie)}return f(Ie,ne,ce)}function f(Ie,ne,ce){if("string"==typeof Ie)return function _(Ie,ne){if(("string"!=typeof ne||""===ne)&&(ne="utf8"),!E.isEncoding(ne))throw new TypeError("Unknown encoding: "+ne);var ce=0|K(Ie,ne),Ve=p(ce),mt=Ve.write(Ie,ne);return mt!==ce&&(Ve=Ve.slice(0,mt)),Ve}(Ie,ne);if(ArrayBuffer.isView(Ie))return function P(Ie){if(Pt(Ie,Uint8Array)){var ne=new Uint8Array(Ie);return U(ne.buffer,ne.byteOffset,ne.byteLength)}return g(Ie)}(Ie);if(null==Ie)throw new TypeError("The first argument must be one of type string, Buffer, ArrayBuffer, Array, or Array-like Object. Received type "+typeof Ie);if(Pt(Ie,ArrayBuffer)||Ie&&Pt(Ie.buffer,ArrayBuffer)||typeof SharedArrayBuffer<"u"&&(Pt(Ie,SharedArrayBuffer)||Ie&&Pt(Ie.buffer,SharedArrayBuffer)))return U(Ie,ne,ce);if("number"==typeof Ie)throw new TypeError('The "value" argument must not be of type number. Received type number');var Ve=Ie.valueOf&&Ie.valueOf();if(null!=Ve&&Ve!==Ie)return E.from(Ve,ne,ce);var mt=function d(Ie){if(E.isBuffer(Ie)){var ne=0|q(Ie.length),ce=p(ne);return 0===ce.length||Ie.copy(ce,0,0,ne),ce}return void 0!==Ie.length?"number"!=typeof Ie.length||Qt(Ie.length)?p(0):g(Ie):"Buffer"===Ie.type&&Array.isArray(Ie.data)?g(Ie.data):void 0}(Ie);if(mt)return mt;if(typeof Symbol<"u"&&null!=Symbol.toPrimitive&&"function"==typeof Ie[Symbol.toPrimitive])return E.from(Ie[Symbol.toPrimitive]("string"),ne,ce);throw new TypeError("The first argument must be one of type string, Buffer, ArrayBuffer, Array, or Array-like Object. Received type "+typeof Ie)}function c(Ie){if("number"!=typeof Ie)throw new TypeError('"size" argument must be of type number');if(Ie<0)throw new RangeError('The value "'+Ie+'" is invalid for option "size"')}function m(Ie){return c(Ie),p(Ie<0?0:0|q(Ie))}function g(Ie){for(var ne=Ie.length<0?0:0|q(Ie.length),ce=p(ne),Ve=0;Ve=A)throw new RangeError("Attempt to allocate Buffer larger than maximum size: 0x"+A.toString(16)+" bytes");return 0|Ie}function K(Ie,ne){if(E.isBuffer(Ie))return Ie.length;if(ArrayBuffer.isView(Ie)||Pt(Ie,ArrayBuffer))return Ie.byteLength;if("string"!=typeof Ie)throw new TypeError('The "string" argument must be one of type string, Buffer, or ArrayBuffer. Received type '+typeof Ie);var ce=Ie.length,Ve=arguments.length>2&&!0===arguments[2];if(!Ve&&0===ce)return 0;for(var mt=!1;;)switch(ne){case"ascii":case"latin1":case"binary":return ce;case"utf8":case"utf-8":return H(Ie).length;case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return 2*ce;case"hex":return ce>>>1;case"base64":return Pe(Ie).length;default:if(mt)return Ve?-1:H(Ie).length;ne=(""+ne).toLowerCase(),mt=!0}}function L(Ie,ne,ce){var Ve=!1;if((void 0===ne||ne<0)&&(ne=0),ne>this.length||((void 0===ce||ce>this.length)&&(ce=this.length),ce<=0)||(ce>>>=0)<=(ne>>>=0))return"";for(Ie||(Ie="utf8");;)switch(Ie){case"hex":return ze(this,ne,ce);case"utf8":case"utf-8":return qe(this,ne,ce);case"ascii":return tt(this,ne,ce);case"latin1":case"binary":return _t(this,ne,ce);case"base64":return Je(this,ne,ce);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return Ze(this,ne,ce);default:if(Ve)throw new TypeError("Unknown encoding: "+Ie);Ie=(Ie+"").toLowerCase(),Ve=!0}}function w(Ie,ne,ce){var Ve=Ie[ne];Ie[ne]=Ie[ce],Ie[ce]=Ve}function k(Ie,ne,ce,Ve,mt){if(0===Ie.length)return-1;if("string"==typeof ce?(Ve=ce,ce=0):ce>2147483647?ce=2147483647:ce<-2147483648&&(ce=-2147483648),Qt(ce=+ce)&&(ce=mt?0:Ie.length-1),ce<0&&(ce=Ie.length+ce),ce>=Ie.length){if(mt)return-1;ce=Ie.length-1}else if(ce<0){if(!mt)return-1;ce=0}if("string"==typeof ne&&(ne=E.from(ne,Ve)),E.isBuffer(ne))return 0===ne.length?-1:X(Ie,ne,ce,Ve,mt);if("number"==typeof ne)return ne&=255,"function"==typeof Uint8Array.prototype.indexOf?mt?Uint8Array.prototype.indexOf.call(Ie,ne,ce):Uint8Array.prototype.lastIndexOf.call(Ie,ne,ce):X(Ie,[ne],ce,Ve,mt);throw new TypeError("val must be string, number or Buffer")}function X(Ie,ne,ce,Ve,mt){var oe,Ut=1,Bt=Ie.length,gt=ne.length;if(void 0!==Ve&&("ucs2"===(Ve=String(Ve).toLowerCase())||"ucs-2"===Ve||"utf16le"===Ve||"utf-16le"===Ve)){if(Ie.length<2||ne.length<2)return-1;Ut=2,Bt/=2,gt/=2,ce/=2}function nt(at,Ot){return 1===Ut?at[Ot]:at.readUInt16BE(Ot*Ut)}if(mt){var Ce=-1;for(oe=ce;oeBt&&(ce=Bt-gt),oe=ce;oe>=0;oe--){for(var ve=!0,xe=0;xemt&&(Ve=mt):Ve=mt;var Ut=ne.length;Ve>Ut/2&&(Ve=Ut/2);for(var Bt=0;Bt>8,Ut.push(ce%256),Ut.push(Ve);return Ut}(ne,Ie.length-ce),Ie,ce,Ve)}function Je(Ie,ne,ce){return a.fromByteArray(0===ne&&ce===Ie.length?Ie:Ie.slice(ne,ce))}function qe(Ie,ne,ce){ce=Math.min(Ie.length,ce);for(var Ve=[],mt=ne;mt239?4:Ut>223?3:Ut>191?2:1;if(mt+gt<=ce)switch(gt){case 1:Ut<128&&(Bt=Ut);break;case 2:128==(192&(nt=Ie[mt+1]))&&(ve=(31&Ut)<<6|63&nt)>127&&(Bt=ve);break;case 3:oe=Ie[mt+2],128==(192&(nt=Ie[mt+1]))&&128==(192&oe)&&(ve=(15&Ut)<<12|(63&nt)<<6|63&oe)>2047&&(ve<55296||ve>57343)&&(Bt=ve);break;case 4:oe=Ie[mt+2],Ce=Ie[mt+3],128==(192&(nt=Ie[mt+1]))&&128==(192&oe)&&128==(192&Ce)&&(ve=(15&Ut)<<18|(63&nt)<<12|(63&oe)<<6|63&Ce)>65535&&ve<1114112&&(Bt=ve)}null===Bt?(Bt=65533,gt=1):Bt>65535&&(Ve.push((Bt-=65536)>>>10&1023|55296),Bt=56320|1023&Bt),Ve.push(Bt),mt+=gt}return function rt(Ie){var ne=Ie.length;if(ne<=it)return String.fromCharCode.apply(String,Ie);for(var ce="",Ve=0;Vemt.length?E.from(Bt).copy(mt,Ut):Uint8Array.prototype.set.call(mt,Bt,Ut);else{if(!E.isBuffer(Bt))throw new TypeError('"list" argument must be an Array of Buffers');Bt.copy(mt,Ut)}Ut+=Bt.length}return mt},E.byteLength=K,E.prototype._isBuffer=!0,E.prototype.swap16=function(){var ne=this.length;if(ne%2!=0)throw new RangeError("Buffer size must be a multiple of 16-bits");for(var ce=0;cece&&(ne+=" ... "),""},b&&(E.prototype[b]=E.prototype.inspect),E.prototype.compare=function(ne,ce,Ve,mt,Ut){if(Pt(ne,Uint8Array)&&(ne=E.from(ne,ne.offset,ne.byteLength)),!E.isBuffer(ne))throw new TypeError('The "target" argument must be one of type Buffer or Uint8Array. Received type '+typeof ne);if(void 0===ce&&(ce=0),void 0===Ve&&(Ve=ne?ne.length:0),void 0===mt&&(mt=0),void 0===Ut&&(Ut=this.length),ce<0||Ve>ne.length||mt<0||Ut>this.length)throw new RangeError("out of range index");if(mt>=Ut&&ce>=Ve)return 0;if(mt>=Ut)return-1;if(ce>=Ve)return 1;if(this===ne)return 0;for(var Bt=(Ut>>>=0)-(mt>>>=0),gt=(Ve>>>=0)-(ce>>>=0),nt=Math.min(Bt,gt),oe=this.slice(mt,Ut),Ce=ne.slice(ce,Ve),ve=0;ve>>=0,isFinite(Ve)?(Ve>>>=0,void 0===mt&&(mt="utf8")):(mt=Ve,Ve=void 0)}var Ut=this.length-ce;if((void 0===Ve||Ve>Ut)&&(Ve=Ut),ne.length>0&&(Ve<0||ce<0)||ce>this.length)throw new RangeError("Attempt to write outside buffer bounds");mt||(mt="utf8");for(var Bt=!1;;)switch(mt){case"hex":return de(this,ne,ce,Ve);case"utf8":case"utf-8":return re(this,ne,ce,Ve);case"ascii":case"latin1":case"binary":return be(this,ne,ce,Ve);case"base64":return pe(this,ne,ce,Ve);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return $e(this,ne,ce,Ve);default:if(Bt)throw new TypeError("Unknown encoding: "+mt);mt=(""+mt).toLowerCase(),Bt=!0}},E.prototype.toJSON=function(){return{type:"Buffer",data:Array.prototype.slice.call(this._arr||this,0)}};var it=4096;function tt(Ie,ne,ce){var Ve="";ce=Math.min(Ie.length,ce);for(var mt=ne;mtVe)&&(ce=Ve);for(var mt="",Ut=ne;Utce)throw new RangeError("Trying to access beyond buffer length")}function Ct(Ie,ne,ce,Ve,mt,Ut){if(!E.isBuffer(Ie))throw new TypeError('"buffer" argument must be a Buffer instance');if(ne>mt||neIe.length)throw new RangeError("Index out of range")}function De(Ie,ne,ce,Ve,mt,Ut){if(ce+Ve>Ie.length)throw new RangeError("Index out of range");if(ce<0)throw new RangeError("Index out of range")}function ft(Ie,ne,ce,Ve,mt){return ne=+ne,ce>>>=0,mt||De(Ie,0,ce,4),r.write(Ie,ne,ce,Ve,23,4),ce+4}function st(Ie,ne,ce,Ve,mt){return ne=+ne,ce>>>=0,mt||De(Ie,0,ce,8),r.write(Ie,ne,ce,Ve,52,8),ce+8}E.prototype.slice=function(ne,ce){var Ve=this.length;(ne=~~ne)<0?(ne+=Ve)<0&&(ne=0):ne>Ve&&(ne=Ve),(ce=void 0===ce?Ve:~~ce)<0?(ce+=Ve)<0&&(ce=0):ce>Ve&&(ce=Ve),ce>>=0,ce>>>=0,Ve||ot(ne,ce,this.length);for(var mt=this[ne],Ut=1,Bt=0;++Bt>>=0,ce>>>=0,Ve||ot(ne,ce,this.length);for(var mt=this[ne+--ce],Ut=1;ce>0&&(Ut*=256);)mt+=this[ne+--ce]*Ut;return mt},E.prototype.readUint8=E.prototype.readUInt8=function(ne,ce){return ne>>>=0,ce||ot(ne,1,this.length),this[ne]},E.prototype.readUint16LE=E.prototype.readUInt16LE=function(ne,ce){return ne>>>=0,ce||ot(ne,2,this.length),this[ne]|this[ne+1]<<8},E.prototype.readUint16BE=E.prototype.readUInt16BE=function(ne,ce){return ne>>>=0,ce||ot(ne,2,this.length),this[ne]<<8|this[ne+1]},E.prototype.readUint32LE=E.prototype.readUInt32LE=function(ne,ce){return ne>>>=0,ce||ot(ne,4,this.length),(this[ne]|this[ne+1]<<8|this[ne+2]<<16)+16777216*this[ne+3]},E.prototype.readUint32BE=E.prototype.readUInt32BE=function(ne,ce){return ne>>>=0,ce||ot(ne,4,this.length),16777216*this[ne]+(this[ne+1]<<16|this[ne+2]<<8|this[ne+3])},E.prototype.readIntLE=function(ne,ce,Ve){ne>>>=0,ce>>>=0,Ve||ot(ne,ce,this.length);for(var mt=this[ne],Ut=1,Bt=0;++Bt=(Ut*=128)&&(mt-=Math.pow(2,8*ce)),mt},E.prototype.readIntBE=function(ne,ce,Ve){ne>>>=0,ce>>>=0,Ve||ot(ne,ce,this.length);for(var mt=ce,Ut=1,Bt=this[ne+--mt];mt>0&&(Ut*=256);)Bt+=this[ne+--mt]*Ut;return Bt>=(Ut*=128)&&(Bt-=Math.pow(2,8*ce)),Bt},E.prototype.readInt8=function(ne,ce){return ne>>>=0,ce||ot(ne,1,this.length),128&this[ne]?-1*(255-this[ne]+1):this[ne]},E.prototype.readInt16LE=function(ne,ce){ne>>>=0,ce||ot(ne,2,this.length);var Ve=this[ne]|this[ne+1]<<8;return 32768&Ve?4294901760|Ve:Ve},E.prototype.readInt16BE=function(ne,ce){ne>>>=0,ce||ot(ne,2,this.length);var Ve=this[ne+1]|this[ne]<<8;return 32768&Ve?4294901760|Ve:Ve},E.prototype.readInt32LE=function(ne,ce){return ne>>>=0,ce||ot(ne,4,this.length),this[ne]|this[ne+1]<<8|this[ne+2]<<16|this[ne+3]<<24},E.prototype.readInt32BE=function(ne,ce){return ne>>>=0,ce||ot(ne,4,this.length),this[ne]<<24|this[ne+1]<<16|this[ne+2]<<8|this[ne+3]},E.prototype.readFloatLE=function(ne,ce){return ne>>>=0,ce||ot(ne,4,this.length),r.read(this,ne,!0,23,4)},E.prototype.readFloatBE=function(ne,ce){return ne>>>=0,ce||ot(ne,4,this.length),r.read(this,ne,!1,23,4)},E.prototype.readDoubleLE=function(ne,ce){return ne>>>=0,ce||ot(ne,8,this.length),r.read(this,ne,!0,52,8)},E.prototype.readDoubleBE=function(ne,ce){return ne>>>=0,ce||ot(ne,8,this.length),r.read(this,ne,!1,52,8)},E.prototype.writeUintLE=E.prototype.writeUIntLE=function(ne,ce,Ve,mt){ne=+ne,ce>>>=0,Ve>>>=0,mt||Ct(this,ne,ce,Ve,Math.pow(2,8*Ve)-1,0);var Bt=1,gt=0;for(this[ce]=255≠++gt>>=0,Ve>>>=0,mt||Ct(this,ne,ce,Ve,Math.pow(2,8*Ve)-1,0);var Bt=Ve-1,gt=1;for(this[ce+Bt]=255≠--Bt>=0&&(gt*=256);)this[ce+Bt]=ne/gt&255;return ce+Ve},E.prototype.writeUint8=E.prototype.writeUInt8=function(ne,ce,Ve){return ne=+ne,ce>>>=0,Ve||Ct(this,ne,ce,1,255,0),this[ce]=255&ne,ce+1},E.prototype.writeUint16LE=E.prototype.writeUInt16LE=function(ne,ce,Ve){return ne=+ne,ce>>>=0,Ve||Ct(this,ne,ce,2,65535,0),this[ce]=255&ne,this[ce+1]=ne>>>8,ce+2},E.prototype.writeUint16BE=E.prototype.writeUInt16BE=function(ne,ce,Ve){return ne=+ne,ce>>>=0,Ve||Ct(this,ne,ce,2,65535,0),this[ce]=ne>>>8,this[ce+1]=255&ne,ce+2},E.prototype.writeUint32LE=E.prototype.writeUInt32LE=function(ne,ce,Ve){return ne=+ne,ce>>>=0,Ve||Ct(this,ne,ce,4,4294967295,0),this[ce+3]=ne>>>24,this[ce+2]=ne>>>16,this[ce+1]=ne>>>8,this[ce]=255&ne,ce+4},E.prototype.writeUint32BE=E.prototype.writeUInt32BE=function(ne,ce,Ve){return ne=+ne,ce>>>=0,Ve||Ct(this,ne,ce,4,4294967295,0),this[ce]=ne>>>24,this[ce+1]=ne>>>16,this[ce+2]=ne>>>8,this[ce+3]=255&ne,ce+4},E.prototype.writeIntLE=function(ne,ce,Ve,mt){if(ne=+ne,ce>>>=0,!mt){var Ut=Math.pow(2,8*Ve-1);Ct(this,ne,ce,Ve,Ut-1,-Ut)}var Bt=0,gt=1,nt=0;for(this[ce]=255≠++Bt>0)-nt&255;return ce+Ve},E.prototype.writeIntBE=function(ne,ce,Ve,mt){if(ne=+ne,ce>>>=0,!mt){var Ut=Math.pow(2,8*Ve-1);Ct(this,ne,ce,Ve,Ut-1,-Ut)}var Bt=Ve-1,gt=1,nt=0;for(this[ce+Bt]=255≠--Bt>=0&&(gt*=256);)ne<0&&0===nt&&0!==this[ce+Bt+1]&&(nt=1),this[ce+Bt]=(ne/gt>>0)-nt&255;return ce+Ve},E.prototype.writeInt8=function(ne,ce,Ve){return ne=+ne,ce>>>=0,Ve||Ct(this,ne,ce,1,127,-128),ne<0&&(ne=255+ne+1),this[ce]=255&ne,ce+1},E.prototype.writeInt16LE=function(ne,ce,Ve){return ne=+ne,ce>>>=0,Ve||Ct(this,ne,ce,2,32767,-32768),this[ce]=255&ne,this[ce+1]=ne>>>8,ce+2},E.prototype.writeInt16BE=function(ne,ce,Ve){return ne=+ne,ce>>>=0,Ve||Ct(this,ne,ce,2,32767,-32768),this[ce]=ne>>>8,this[ce+1]=255&ne,ce+2},E.prototype.writeInt32LE=function(ne,ce,Ve){return ne=+ne,ce>>>=0,Ve||Ct(this,ne,ce,4,2147483647,-2147483648),this[ce]=255&ne,this[ce+1]=ne>>>8,this[ce+2]=ne>>>16,this[ce+3]=ne>>>24,ce+4},E.prototype.writeInt32BE=function(ne,ce,Ve){return ne=+ne,ce>>>=0,Ve||Ct(this,ne,ce,4,2147483647,-2147483648),ne<0&&(ne=4294967295+ne+1),this[ce]=ne>>>24,this[ce+1]=ne>>>16,this[ce+2]=ne>>>8,this[ce+3]=255&ne,ce+4},E.prototype.writeFloatLE=function(ne,ce,Ve){return ft(this,ne,ce,!0,Ve)},E.prototype.writeFloatBE=function(ne,ce,Ve){return ft(this,ne,ce,!1,Ve)},E.prototype.writeDoubleLE=function(ne,ce,Ve){return st(this,ne,ce,!0,Ve)},E.prototype.writeDoubleBE=function(ne,ce,Ve){return st(this,ne,ce,!1,Ve)},E.prototype.copy=function(ne,ce,Ve,mt){if(!E.isBuffer(ne))throw new TypeError("argument should be a Buffer");if(Ve||(Ve=0),!mt&&0!==mt&&(mt=this.length),ce>=ne.length&&(ce=ne.length),ce||(ce=0),mt>0&&mt=this.length)throw new RangeError("Index out of range");if(mt<0)throw new RangeError("sourceEnd out of bounds");mt>this.length&&(mt=this.length),ne.length-ce>>=0,Ve=void 0===Ve?this.length:Ve>>>0,ne||(ne=0),"number"==typeof ne)for(Bt=ce;Bt55295&&ce<57344){if(!mt){if(ce>56319){(ne-=3)>-1&&Ut.push(239,191,189);continue}if(Bt+1===Ve){(ne-=3)>-1&&Ut.push(239,191,189);continue}mt=ce;continue}if(ce<56320){(ne-=3)>-1&&Ut.push(239,191,189),mt=ce;continue}ce=65536+(mt-55296<<10|ce-56320)}else mt&&(ne-=3)>-1&&Ut.push(239,191,189);if(mt=null,ce<128){if((ne-=1)<0)break;Ut.push(ce)}else if(ce<2048){if((ne-=2)<0)break;Ut.push(ce>>6|192,63&ce|128)}else if(ce<65536){if((ne-=3)<0)break;Ut.push(ce>>12|224,ce>>6&63|128,63&ce|128)}else{if(!(ce<1114112))throw new Error("Invalid code point");if((ne-=4)<0)break;Ut.push(ce>>18|240,ce>>12&63|128,ce>>6&63|128,63&ce|128)}}return Ut}function Pe(Ie){return a.toByteArray(function _e(Ie){if((Ie=(Ie=Ie.split("=")[0]).trim().replace(bt,"")).length<2)return"";for(;Ie.length%4!=0;)Ie+="=";return Ie}(Ie))}function dt(Ie,ne,ce,Ve){for(var mt=0;mt=ne.length||mt>=Ie.length);++mt)ne[mt+ce]=Ie[mt];return mt}function Pt(Ie,ne){return Ie instanceof ne||null!=Ie&&null!=Ie.constructor&&null!=Ie.constructor.name&&Ie.constructor.name===ne.name}function Qt(Ie){return Ie!=Ie}var cn=function(){for(var Ie="0123456789abcdef",ne=new Array(256),ce=0;ce<16;++ce)for(var Ve=16*ce,mt=0;mt<16;++mt)ne[Ve+mt]=Ie[ce]+Ie[mt];return ne}()},35227:Qe=>{function he(a){if(a)return function s(a){for(var r in he.prototype)a[r]=he.prototype[r];return a}(a)}Qe.exports=he,he.prototype.on=he.prototype.addEventListener=function(a,r){return this._callbacks=this._callbacks||{},(this._callbacks[a]=this._callbacks[a]||[]).push(r),this},he.prototype.once=function(a,r){var b=this;function A(){b.off(a,A),r.apply(this,arguments)}return this._callbacks=this._callbacks||{},A.fn=r,this.on(a,A),this},he.prototype.off=he.prototype.removeListener=he.prototype.removeAllListeners=he.prototype.removeEventListener=function(a,r){if(this._callbacks=this._callbacks||{},0==arguments.length)return this._callbacks={},this;var b=this._callbacks[a];if(!b)return this;if(1==arguments.length)return delete this._callbacks[a],this;for(var A,D=0;D{"use strict";var a,he="object"==typeof Reflect?Reflect:null,s=he&&"function"==typeof he.apply?he.apply:function(L,w,k){return Function.prototype.apply.call(L,w,k)};a=he&&"function"==typeof he.ownKeys?he.ownKeys:Object.getOwnPropertySymbols?function(L){return Object.getOwnPropertyNames(L).concat(Object.getOwnPropertySymbols(L))}:function(L){return Object.getOwnPropertyNames(L)};var b=Number.isNaN||function(L){return L!=L};function A(){A.init.call(this)}Qe.exports=A,Qe.exports.once=function d(K,L){return new Promise(function(w,k){function X(re){K.removeListener(L,de),k(re)}function de(){"function"==typeof K.removeListener&&K.removeListener("error",X),w([].slice.call(arguments))}j(K,L,de,{once:!0}),"error"!==L&&function q(K,L,w){"function"==typeof K.on&&j(K,"error",L,w)}(K,X,{once:!0})})},A.EventEmitter=A,A.prototype._events=void 0,A.prototype._eventsCount=0,A.prototype._maxListeners=void 0;var D=10;function p(K){if("function"!=typeof K)throw new TypeError('The "listener" argument must be of type Function. Received type '+typeof K)}function E(K){return void 0===K._maxListeners?A.defaultMaxListeners:K._maxListeners}function f(K,L,w,k){var X,de,re;if(p(w),void 0===(de=K._events)?(de=K._events=Object.create(null),K._eventsCount=0):(void 0!==de.newListener&&(K.emit("newListener",L,w.listener?w.listener:w),de=K._events),re=de[L]),void 0===re)re=de[L]=w,++K._eventsCount;else if("function"==typeof re?re=de[L]=k?[w,re]:[re,w]:k?re.unshift(w):re.push(w),(X=E(K))>0&&re.length>X&&!re.warned){re.warned=!0;var be=new Error("Possible EventEmitter memory leak detected. "+re.length+" "+String(L)+" listeners added. Use emitter.setMaxListeners() to increase limit");be.name="MaxListenersExceededWarning",be.emitter=K,be.type=L,be.count=re.length,function r(K){console&&console.warn&&console.warn(K)}(be)}return K}function c(){if(!this.fired)return this.target.removeListener(this.type,this.wrapFn),this.fired=!0,0===arguments.length?this.listener.call(this.target):this.listener.apply(this.target,arguments)}function C(K,L,w){var k={fired:!1,wrapFn:void 0,target:K,type:L,listener:w},X=c.bind(k);return X.listener=w,k.wrapFn=X,X}function m(K,L,w){var k=K._events;if(void 0===k)return[];var X=k[L];return void 0===X?[]:"function"==typeof X?w?[X.listener||X]:[X]:w?function U(K){for(var L=new Array(K.length),w=0;w0&&(re=w[0]),re instanceof Error)throw re;var be=new Error("Unhandled error."+(re?" ("+re.message+")":""));throw be.context=re,be}var pe=de[L];if(void 0===pe)return!1;if("function"==typeof pe)s(pe,this,w);else{var $e=pe.length,Je=g(pe,$e);for(k=0;k<$e;++k)s(Je[k],this,w)}return!0},A.prototype.on=A.prototype.addListener=function(L,w){return f(this,L,w,!1)},A.prototype.prependListener=function(L,w){return f(this,L,w,!0)},A.prototype.once=function(L,w){return p(w),this.on(L,C(this,L,w)),this},A.prototype.prependOnceListener=function(L,w){return p(w),this.prependListener(L,C(this,L,w)),this},A.prototype.off=A.prototype.removeListener=function(L,w){var k,X,de,re,be;if(p(w),void 0===(X=this._events))return this;if(void 0===(k=X[L]))return this;if(k===w||k.listener===w)0==--this._eventsCount?this._events=Object.create(null):(delete X[L],X.removeListener&&this.emit("removeListener",L,k.listener||w));else if("function"!=typeof k){for(de=-1,re=k.length-1;re>=0;re--)if(k[re]===w||k[re].listener===w){be=k[re].listener,de=re;break}if(de<0)return this;0===de?k.shift():function P(K,L){for(;L+1=0;X--)this.removeListener(L,w[X]);return this},A.prototype.listeners=function(L){return m(this,L,!0)},A.prototype.rawListeners=function(L){return m(this,L,!1)},A.listenerCount=function(K,L){return"function"==typeof K.listenerCount?K.listenerCount(L):_.call(K,L)},A.prototype.listenerCount=_,A.prototype.eventNames=function(){return this._eventsCount>0?a(this._events):[]}},22601:(Qe,he)=>{he.read=function(s,a,r,b,A){var D,p,E=8*A-b-1,f=(1<>1,C=-7,m=r?A-1:0,_=r?-1:1,g=s[a+m];for(m+=_,D=g&(1<<-C)-1,g>>=-C,C+=E;C>0;D=256*D+s[a+m],m+=_,C-=8);for(p=D&(1<<-C)-1,D>>=-C,C+=b;C>0;p=256*p+s[a+m],m+=_,C-=8);if(0===D)D=1-c;else{if(D===f)return p?NaN:1/0*(g?-1:1);p+=Math.pow(2,b),D-=c}return(g?-1:1)*p*Math.pow(2,D-b)},he.write=function(s,a,r,b,A,D){var p,E,f,c=8*D-A-1,C=(1<>1,_=23===A?Math.pow(2,-24)-Math.pow(2,-77):0,g=b?0:D-1,P=b?1:-1,U=a<0||0===a&&1/a<0?1:0;for(a=Math.abs(a),isNaN(a)||a===1/0?(E=isNaN(a)?1:0,p=C):(p=Math.floor(Math.log(a)/Math.LN2),a*(f=Math.pow(2,-p))<1&&(p--,f*=2),(a+=p+m>=1?_/f:_*Math.pow(2,1-m))*f>=2&&(p++,f/=2),p+m>=C?(E=0,p=C):p+m>=1?(E=(a*f-1)*Math.pow(2,A),p+=m):(E=a*Math.pow(2,m-1)*Math.pow(2,A),p=0));A>=8;s[r+g]=255&E,g+=P,E/=256,A-=8);for(p=p<0;s[r+g]=255&p,g+=P,p/=256,c-=8);s[r+g-P]|=128*U}},6990:function(Qe,he,s){var a;Qe=s.nmd(Qe),function(){var r,p="Expected a function",f="__lodash_hash_undefined__",C="__lodash_placeholder__",w=32,X=128,tt=1/0,_t=9007199254740991,ot=4294967295,ft=[["ary",X],["bind",1],["bindKey",2],["curry",8],["curryRight",16],["flip",512],["partial",w],["partialRight",64],["rearg",256]],st="[object Arguments]",bt="[object Array]",H="[object Boolean]",Te="[object Date]",Pe="[object Error]",dt="[object Function]",Pt="[object GeneratorFunction]",Qt="[object Map]",cn="[object Number]",ne="[object Object]",ce="[object Promise]",mt="[object RegExp]",Ut="[object Set]",Bt="[object String]",gt="[object Symbol]",oe="[object WeakMap]",ve="[object ArrayBuffer]",xe="[object DataView]",at="[object Float32Array]",Ot="[object Float64Array]",Fe="[object Int8Array]",je="[object Int16Array]",kt="[object Int32Array]",We="[object Uint8Array]",Ft="[object Uint8ClampedArray]",Kt="[object Uint16Array]",xt="[object Uint32Array]",Mt=/\b__p \+= '';/g,pt=/\b(__p \+=) '' \+/g,St=/(__e\(.*?\)|\b__t\)) \+\n'';/g,Zt=/&(?:amp|lt|gt|quot|#39);/g,Ye=/[&<>"']/g,Ee=RegExp(Zt.source),vt=RegExp(Ye.source),ye=/<%-([\s\S]+?)%>/g,we=/<%([\s\S]+?)%>/g,ge=/<%=([\s\S]+?)%>/g,T=/\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/,V=/^\w*$/,G=/[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|$))/g,R=/[\\^$.*+?()[\]{}|]/g,Y=RegExp(R.source),le=/^\s+/,ke=/\s/,ht=/\{(?:\n\/\* \[wrapped with .+\] \*\/)?\n?/,Gt=/\{\n\/\* \[wrapped with (.+)\] \*/,Wt=/,? & /,mn=/[^\x00-\x2f\x3a-\x40\x5b-\x60\x7b-\x7f]+/g,wn=/[()=,{}\[\]\/\s]/,ut=/\\(\\)?/g,Xe=/\$\{([^\\}]*(?:\\.[^\\}]*)*)\}/g,Nt=/\w*$/,Tt=/^[-+]0x[0-9a-f]+$/i,qt=/^0b[01]+$/i,Yt=/^\[object .+?Constructor\]$/,fn=/^0o[0-7]+$/i,dn=/^(?:0|[1-9]\d*)$/,en=/[\xc0-\xd6\xd8-\xf6\xf8-\xff\u0100-\u017f]/g,Tn=/($^)/,Ei=/['\n\r\u2028\u2029\\]/g,wi="\\ud800-\\udfff",Ji="\\u0300-\\u036f\\ufe20-\\ufe2f\\u20d0-\\u20ff",Qn="\\u2700-\\u27bf",oi="a-z\\xdf-\\xf6\\xf8-\\xff",xi="A-Z\\xc0-\\xd6\\xd8-\\xde",Fi="\\ufe0e\\ufe0f",ki="\\xac\\xb1\\xd7\\xf7\\x00-\\x2f\\x3a-\\x40\\x5b-\\x60\\x7b-\\xbf\\u2000-\\u206f \\t\\x0b\\f\\xa0\\ufeff\\n\\r\\u2028\\u2029\\u1680\\u180e\\u2000\\u2001\\u2002\\u2003\\u2004\\u2005\\u2006\\u2007\\u2008\\u2009\\u200a\\u202f\\u205f\\u3000",Lr="["+wi+"]",Ri="["+ki+"]",jr="["+Ji+"]",co="\\d+",bn="["+Qn+"]",Bo="["+oi+"]",_s="[^"+wi+ki+co+Qn+oi+xi+"]",$r="\\ud83c[\\udffb-\\udfff]",Oo="[^"+wi+"]",qi="(?:\\ud83c[\\udde6-\\uddff]){2}",Hr="[\\ud800-\\udbff][\\udc00-\\udfff]",wr="["+xi+"]",On="(?:"+Bo+"|"+_s+")",Ts="(?:"+wr+"|"+_s+")",Go="(?:['\u2019](?:d|ll|m|re|s|t|ve))?",Is="(?:['\u2019](?:D|LL|M|RE|S|T|VE))?",Co="(?:"+jr+"|"+$r+")?",Mr="["+Fi+"]?",er=Mr+Co+"(?:\\u200d(?:"+[Oo,qi,Hr].join("|")+")"+Mr+Co+")*",xr="(?:"+[bn,qi,Hr].join("|")+")"+er,ur="(?:"+[Oo+jr+"?",jr,qi,Hr,Lr].join("|")+")",ta=RegExp("['\u2019]","g"),vo=RegExp(jr,"g"),yo=RegExp($r+"(?="+$r+")|"+ur+er,"g"),zo=RegExp([wr+"?"+Bo+"+"+Go+"(?="+[Ri,wr,"$"].join("|")+")",Ts+"+"+Is+"(?="+[Ri,wr+On,"$"].join("|")+")",wr+"?"+On+"+"+Go,wr+"+"+Is,"\\d*(?:1ST|2ND|3RD|(?![123])\\dTH)(?=\\b|[a-z_])","\\d*(?:1st|2nd|3rd|(?![123])\\dth)(?=\\b|[A-Z_])",co,xr].join("|"),"g"),Ps=RegExp("[\\u200d"+wi+Ji+Fi+"]"),Pi=/[a-z][A-Z]|[A-Z]{2}[a-z]|[0-9][a-zA-Z]|[a-zA-Z][0-9]|[^a-zA-Z0-9 ]/,gn=["Array","Buffer","DataView","Date","Error","Float32Array","Float64Array","Function","Int8Array","Int16Array","Int32Array","Map","Math","Object","Promise","RegExp","Set","String","Symbol","TypeError","Uint8Array","Uint8ClampedArray","Uint16Array","Uint32Array","WeakMap","_","clearTimeout","isFinite","parseInt","setTimeout"],$n=-1,Nn={};Nn[at]=Nn[Ot]=Nn[Fe]=Nn[je]=Nn[kt]=Nn[We]=Nn[Ft]=Nn[Kt]=Nn[xt]=!0,Nn[st]=Nn[bt]=Nn[ve]=Nn[H]=Nn[xe]=Nn[Te]=Nn[Pe]=Nn[dt]=Nn[Qt]=Nn[cn]=Nn[ne]=Nn[mt]=Nn[Ut]=Nn[Bt]=Nn[oe]=!1;var jn={};jn[st]=jn[bt]=jn[ve]=jn[xe]=jn[H]=jn[Te]=jn[at]=jn[Ot]=jn[Fe]=jn[je]=jn[kt]=jn[Qt]=jn[cn]=jn[ne]=jn[mt]=jn[Ut]=jn[Bt]=jn[gt]=jn[We]=jn[Ft]=jn[Kt]=jn[xt]=!0,jn[Pe]=jn[dt]=jn[oe]=!1;var $i={"\\":"\\","'":"'","\n":"n","\r":"r","\u2028":"u2028","\u2029":"u2029"},sr=parseFloat,ho=parseInt,Dn="object"==typeof global&&global&&global.Object===Object&&global,So="object"==typeof self&&self&&self.Object===Object&&self,tr=Dn||So||Function("return this")(),bo=he&&!he.nodeType&&he,li=bo&&Qe&&!Qe.nodeType&&Qe,fs=li&&li.exports===bo,Ao=fs&&Dn.process,Ui=function(){try{return li&&li.require&&li.require("util").types||Ao&&Ao.binding&&Ao.binding("util")}catch{}}(),ts=Ui&&Ui.isArrayBuffer,na=Ui&&Ui.isDate,Zr=Ui&&Ui.isMap,Fr=Ui&&Ui.isRegExp,Zi=Ui&&Ui.isSet,Xr=Ui&&Ui.isTypedArray;function In(It,Ht,zt){switch(zt.length){case 0:return It.call(Ht);case 1:return It.call(Ht,zt[0]);case 2:return It.call(Ht,zt[0],zt[1]);case 3:return It.call(Ht,zt[0],zt[1],zt[2])}return It.apply(Ht,zt)}function Yr(It,Ht,zt,Cn){for(var Wn=-1,fi=null==It?0:It.length;++Wn-1}function Ko(It,Ht,zt){for(var Cn=-1,Wn=null==It?0:It.length;++Cn-1;);return zt}function Bi(It,Ht){for(var zt=It.length;zt--&&ms(Ht,It[zt],0)>-1;);return zt}var Wo=Ae({\u00c0:"A",\u00c1:"A",\u00c2:"A",\u00c3:"A",\u00c4:"A",\u00c5:"A",\u00e0:"a",\u00e1:"a",\u00e2:"a",\u00e3:"a",\u00e4:"a",\u00e5:"a",\u00c7:"C",\u00e7:"c",\u00d0:"D",\u00f0:"d",\u00c8:"E",\u00c9:"E",\u00ca:"E",\u00cb:"E",\u00e8:"e",\u00e9:"e",\u00ea:"e",\u00eb:"e",\u00cc:"I",\u00cd:"I",\u00ce:"I",\u00cf:"I",\u00ec:"i",\u00ed:"i",\u00ee:"i",\u00ef:"i",\u00d1:"N",\u00f1:"n",\u00d2:"O",\u00d3:"O",\u00d4:"O",\u00d5:"O",\u00d6:"O",\u00d8:"O",\u00f2:"o",\u00f3:"o",\u00f4:"o",\u00f5:"o",\u00f6:"o",\u00f8:"o",\u00d9:"U",\u00da:"U",\u00db:"U",\u00dc:"U",\u00f9:"u",\u00fa:"u",\u00fb:"u",\u00fc:"u",\u00dd:"Y",\u00fd:"y",\u00ff:"y",\u00c6:"Ae",\u00e6:"ae",\u00de:"Th",\u00fe:"th",\u00df:"ss",\u0100:"A",\u0102:"A",\u0104:"A",\u0101:"a",\u0103:"a",\u0105:"a",\u0106:"C",\u0108:"C",\u010a:"C",\u010c:"C",\u0107:"c",\u0109:"c",\u010b:"c",\u010d:"c",\u010e:"D",\u0110:"D",\u010f:"d",\u0111:"d",\u0112:"E",\u0114:"E",\u0116:"E",\u0118:"E",\u011a:"E",\u0113:"e",\u0115:"e",\u0117:"e",\u0119:"e",\u011b:"e",\u011c:"G",\u011e:"G",\u0120:"G",\u0122:"G",\u011d:"g",\u011f:"g",\u0121:"g",\u0123:"g",\u0124:"H",\u0126:"H",\u0125:"h",\u0127:"h",\u0128:"I",\u012a:"I",\u012c:"I",\u012e:"I",\u0130:"I",\u0129:"i",\u012b:"i",\u012d:"i",\u012f:"i",\u0131:"i",\u0134:"J",\u0135:"j",\u0136:"K",\u0137:"k",\u0138:"k",\u0139:"L",\u013b:"L",\u013d:"L",\u013f:"L",\u0141:"L",\u013a:"l",\u013c:"l",\u013e:"l",\u0140:"l",\u0142:"l",\u0143:"N",\u0145:"N",\u0147:"N",\u014a:"N",\u0144:"n",\u0146:"n",\u0148:"n",\u014b:"n",\u014c:"O",\u014e:"O",\u0150:"O",\u014d:"o",\u014f:"o",\u0151:"o",\u0154:"R",\u0156:"R",\u0158:"R",\u0155:"r",\u0157:"r",\u0159:"r",\u015a:"S",\u015c:"S",\u015e:"S",\u0160:"S",\u015b:"s",\u015d:"s",\u015f:"s",\u0161:"s",\u0162:"T",\u0164:"T",\u0166:"T",\u0163:"t",\u0165:"t",\u0167:"t",\u0168:"U",\u016a:"U",\u016c:"U",\u016e:"U",\u0170:"U",\u0172:"U",\u0169:"u",\u016b:"u",\u016d:"u",\u016f:"u",\u0171:"u",\u0173:"u",\u0174:"W",\u0175:"w",\u0176:"Y",\u0177:"y",\u0178:"Y",\u0179:"Z",\u017b:"Z",\u017d:"Z",\u017a:"z",\u017c:"z",\u017e:"z",\u0132:"IJ",\u0133:"ij",\u0152:"Oe",\u0153:"oe",\u0149:"'n",\u017f:"s"}),Vs=Ae({"&":"&","<":"<",">":">",'"':""","'":"'"});function Ws(It){return"\\"+$i[It]}function br(It){return Ps.test(It)}function lr(It){var Ht=-1,zt=Array(It.size);return It.forEach(function(Cn,Wn){zt[++Ht]=[Wn,Cn]}),zt}function Fn(It,Ht){return function(zt){return It(Ht(zt))}}function Di(It,Ht){for(var zt=-1,Cn=It.length,Wn=0,fi=[];++zt",""":'"',"'":"'"}),po=function It(Ht){var o,zt=(Ht=null==Ht?tr:po.defaults(tr.Object(),Ht,po.pick(tr,gn))).Array,Cn=Ht.Date,Wn=Ht.Error,fi=Ht.Function,nr=Ht.Math,vi=Ht.Object,sa=Ht.RegExp,Ua=Ht.String,mo=Ht.TypeError,Ms=zt.prototype,Po=vi.prototype,rs=Ht["__core-js_shared__"],x=fi.prototype.toString,ie=Po.hasOwnProperty,He=0,ee=(o=/[^.]+$/.exec(rs&&rs.keys&&rs.keys.IE_PROTO||""))?"Symbol(src)_1."+o:"",Re=Po.toString,lt=x.call(vi),jt=tr._,_n=sa("^"+x.call(ie).replace(R,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$"),zn=fs?Ht.Buffer:r,Yn=Ht.Symbol,ui=Ht.Uint8Array,Un=zn?zn.allocUnsafe:r,Gi=Fn(vi.getPrototypeOf,vi),gi=vi.create,Xi=Po.propertyIsEnumerable,Br=Ms.splice,eo=Yn?Yn.isConcatSpreadable:r,No=Yn?Yn.iterator:r,cr=Yn?Yn.toStringTag:r,Ro=function(){try{var o=pl(vi,"defineProperty");return o({},"",{}),o}catch{}}(),Ti=Ht.clearTimeout!==tr.clearTimeout&&Ht.clearTimeout,Os=Cn&&Cn.now!==tr.Date.now&&Cn.now,ol=Ht.setTimeout!==tr.setTimeout&&Ht.setTimeout,Mi=nr.ceil,aa=nr.floor,la=vi.getOwnPropertySymbols,Gr=zn?zn.isBuffer:r,fc=Ht.isFinite,gc=Ms.join,ca=Fn(vi.keys,vi),pi=nr.max,Ar=nr.min,eu=Cn.now,Pl=Ht.parseInt,Dr=nr.random,Nl=Ms.reverse,Rl=pl(Ht,"DataView"),Ma=pl(Ht,"Map"),sl=pl(Ht,"Promise"),ws=pl(Ht,"Set"),ua=pl(Ht,"WeakMap"),Ln=pl(vi,"create"),Oa=ua&&new ua,Ca={},tu=Xa(Rl),Ll=Xa(Ma),pc=Xa(sl),mc=Xa(ws),da=Xa(ua),al=Yn?Yn.prototype:r,va=al?al.valueOf:r,Ec=al?al.toString:r;function Ne(o){if(vr(o)&&!ti(o)&&!(o instanceof di)){if(o instanceof Hn)return o;if(ie.call(o,"__wrapped__"))return Lc(o)}return new Hn(o)}var _a=function(){function o(){}return function(u){if(!Qi(u))return{};if(gi)return gi(u);o.prototype=u;var S=new o;return o.prototype=r,S}}();function tn(){}function Hn(o,u){this.__wrapped__=o,this.__actions__=[],this.__chain__=!!u,this.__index__=0,this.__values__=r}function di(o){this.__wrapped__=o,this.__actions__=[],this.__dir__=1,this.__filtered__=!1,this.__iteratees__=[],this.__takeCount__=ot,this.__views__=[]}function Zo(o){var u=-1,S=null==o?0:o.length;for(this.clear();++u=u?o:u)),o}function Jt(o,u,S,J,Oe,Be){var ct,yt=1&u,wt=2&u,nn=4&u;if(S&&(ct=Oe?S(o,J,Oe,Be):S(o)),ct!==r)return ct;if(!Qi(o))return o;var sn=ti(o);if(sn){if(ct=function Kd(o){var u=o.length,S=new o.constructor(u);return u&&"string"==typeof o[0]&&ie.call(o,"index")&&(S.index=o.index,S.input=o.input),S}(o),!yt)return Qo(o,ct)}else{var rn=ro(o),En=rn==dt||rn==Pt;if(ga(o))return Dd(o,yt);if(rn==ne||rn==st||En&&!Oe){if(ct=wt||En?{}:Ou(o),!yt)return wt?function du(o,u){return Js(o,Hl(o),u)}(o,function et(o,u){return o&&Js(u,ao(u),o)}(ct,o)):function lh(o,u){return Js(o,ml(o),u)}(o,Ue(ct,o))}else{if(!jn[rn])return Oe?o:{};ct=function Ac(o,u,S){var J=o.constructor;switch(u){case ve:return Td(o);case H:case Te:return new J(+o);case xe:return function ls(o,u){var S=u?Td(o.buffer):o.buffer;return new o.constructor(S,o.byteOffset,o.byteLength)}(o,S);case at:case Ot:case Fe:case je:case kt:case We:case Ft:case Kt:case xt:return sh(o,S);case Qt:return new J;case cn:case Bt:return new J(o);case mt:return function cu(o){var u=new o.constructor(o.source,Nt.exec(o));return u.lastIndex=o.lastIndex,u}(o);case Ut:return new J;case gt:return function hl(o){return va?vi(va.call(o)):{}}(o)}}(o,rn,yt)}}Be||(Be=new Ni);var Pn=Be.get(o);if(Pn)return Pn;Be.set(o,ct),lp(o)?o.forEach(function(Vn){ct.add(Jt(Vn,u,S,Vn,o,Be))}):tf(o)&&o.forEach(function(Vn,mi){ct.set(mi,Jt(Vn,u,S,mi,o,Be))});var ai=sn?r:(nn?wt?$d:Wl:wt?ao:so)(o);return hr(ai||o,function(Vn,mi){ai&&(Vn=o[mi=Vn]),v(ct,mi,Jt(Vn,u,S,mi,o,Be))}),ct}function Rn(o,u,S){var J=S.length;if(null==o)return!J;for(o=vi(o);J--;){var Oe=S[J],ct=o[Oe];if(ct===r&&!(Oe in o)||!(0,u[Oe])(ct))return!1}return!0}function pn(o,u,S){if("function"!=typeof o)throw new mo(p);return Ql(function(){o.apply(r,S)},u)}function Bn(o,u,S,J){var Oe=-1,Be=Qr,ct=!0,yt=o.length,wt=[],nn=u.length;if(!yt)return wt;S&&(u=Gn(u,Or(S))),J?(Be=Ko,ct=!1):u.length>=200&&(Be=$a,ct=!1,u=new Vt(u));e:for(;++Oe-1},os.prototype.set=function Z(o,u){var S=this.__data__,J=W(S,o);return J<0?(++this.size,S.push([o,u])):S[J][1]=u,this},F.prototype.clear=function te(){this.size=0,this.__data__={hash:new Zo,map:new(Ma||os),string:new Zo}},F.prototype.delete=function Se(o){var u=Mu(this,o).delete(o);return this.size-=u?1:0,u},F.prototype.get=function Ge(o){return Mu(this,o).get(o)},F.prototype.has=function Rt(o){return Mu(this,o).has(o)},F.prototype.set=function hn(o,u){var S=Mu(this,o),J=S.size;return S.set(o,u),this.size+=S.size==J?0:1,this},Vt.prototype.add=Vt.prototype.push=function yn(o){return this.__data__.set(o,f),this},Vt.prototype.has=function si(o){return this.__data__.has(o)},Ni.prototype.clear=function yi(){this.__data__=new os,this.size=0},Ni.prototype.delete=function zr(o){var u=this.__data__,S=u.delete(o);return this.size=u.size,S},Ni.prototype.get=function Fs(o){return this.__data__.get(o)},Ni.prototype.has=function Hs(o){return this.__data__.has(o)},Ni.prototype.set=function Zs(o,u){var S=this.__data__;if(S instanceof os){var J=S.__data__;if(!Ma||J.length<199)return J.push([o,u]),this.size=++S.size,this;S=this.__data__=new F(J)}return S.set(o,u),this.size=S.size,this};var Oi=Kl(Lo),pr=Kl(wo,!0);function Cr(o,u){var S=!0;return Oi(o,function(J,Oe,Be){return S=!!u(J,Oe,Be)}),S}function Ir(o,u,S){for(var J=-1,Oe=o.length;++J0&&S(yt)?u>1?Yi(yt,u-1,S,J,Oe):gs(Oe,yt):J||(Oe[Oe.length]=yt)}return Oe}var Kr=Nd(),Yo=Nd(!0);function Lo(o,u){return o&&Kr(o,u,so)}function wo(o,u){return o&&Yo(o,u,so)}function Xs(o,u){return Sr(u,function(S){return La(o[S])})}function Cs(o,u){for(var S=0,J=(u=$s(u,o)).length;null!=o&&Su}function Sn(o,u){return null!=o&&ie.call(o,u)}function An(o,u){return null!=o&&u in vi(o)}function _i(o,u,S){for(var J=S?Ko:Qr,Oe=o[0].length,Be=o.length,ct=Be,yt=zt(Be),wt=1/0,nn=[];ct--;){var sn=o[ct];ct&&u&&(sn=Gn(sn,Or(u))),wt=Ar(sn.length,wt),yt[ct]=!S&&(u||Oe>=120&&sn.length>=120)?new Vt(ct&&sn):r}sn=o[0];var rn=-1,En=yt[0];e:for(;++rn=yt?wt:wt*("desc"==S[J]?-1:1)}return o.index-u.index}(Be,ct,S)})}function vd(o,u,S){for(var J=-1,Oe=u.length,Be={};++J-1;)yt!==o&&Br.call(yt,wt,1),Br.call(o,wt,1);return o}function Sd(o,u){for(var S=o?u.length:0,J=S-1;S--;){var Oe=u[S];if(S==J||Oe!==Be){var Be=Oe;fa(Oe)?Br.call(o,Oe,1):au(o,Oe)}}return o}function Oc(o,u){return o+aa(Dr()*(u-o+1))}function Aa(o,u){var S="";if(!o||u<1||u>_t)return S;do{u%2&&(S+=o),(u=aa(u/2))&&(o+=o)}while(u);return S}function ei(o,u){return Nc(Ic(o,u,$o),o+"")}function dl(o){return kl(lc(o))}function bd(o,u){var S=lc(o);return Rc(S,ln(u,0,S.length))}function za(o,u,S,J){if(!Qi(o))return o;for(var Oe=-1,Be=(u=$s(u,o)).length,ct=Be-1,yt=o;null!=yt&&++OeOe?0:Oe+u),(S=S>Oe?Oe:S)<0&&(S+=Oe),Oe=u>S?0:S-u>>>0,u>>>=0;for(var Be=zt(Oe);++J>>1,ct=o[Be];null!==ct&&!ko(ct)&&(S?ct<=u:ct=200){var nn=u?null:ch(o);if(nn)return gr(nn);ct=!1,Oe=$a,wt=new Vt}else wt=u?[]:yt;e:for(;++J=J?o:ks(o,u,S)}var oh=Ti||function(o){return tr.clearTimeout(o)};function Dd(o,u){if(u)return o.slice();var S=o.length,J=Un?Un(S):new o.constructor(S);return o.copy(J),J}function Td(o){var u=new o.constructor(o.byteLength);return new ui(u).set(new ui(o)),u}function sh(o,u){var S=u?Td(o.buffer):o.buffer;return new o.constructor(S,o.byteOffset,o.length)}function uu(o,u){if(o!==u){var S=o!==r,J=null===o,Oe=o==o,Be=ko(o),ct=u!==r,yt=null===u,wt=u==u,nn=ko(u);if(!yt&&!nn&&!Be&&o>u||Be&&ct&&wt&&!yt&&!nn||J&&ct&&wt||!S&&wt||!Oe)return 1;if(!J&&!Be&&!nn&&o1?S[Oe-1]:r,ct=Oe>2?S[2]:r;for(Be=o.length>3&&"function"==typeof Be?(Oe--,Be):r,ct&&Fo(S[0],S[1],ct)&&(Be=Oe<3?r:Be,Oe=1),u=vi(u);++J-1?Oe[Be?u[ct]:ct]:r}}function Ld(o){return ha(function(u){var S=u.length,J=S,Oe=Hn.prototype.thru;for(o&&u.reverse();J--;){var Be=u[J];if("function"!=typeof Be)throw new mo(p);if(Oe&&!ct&&"wrapper"==gl(Be))var ct=new Hn([],!0)}for(J=ct?J:S;++J1&&bi.reverse(),sn&&wtyt))return!1;var nn=Be.get(o),sn=Be.get(u);if(nn&&sn)return nn==u&&sn==o;var rn=-1,En=!0,Pn=2&S?new Vt:r;for(Be.set(o,u),Be.set(u,o);++rn-1&&o%1==0&&o1?"& ":"")+u[J],u=u.join(S>2?", ":" "),o.replace(ht,"{\n/* [wrapped with "+u+"] */\n")}(J,function Du(o,u){return hr(ft,function(S){var J="_."+S[0];u&S[1]&&!Qr(o,J)&&o.push(J)}),o.sort()}(function zd(o){var u=o.match(Gt);return u?u[1].split(Wt):[]}(J),S)))}function bu(o){var u=0,S=0;return function(){var J=eu(),Oe=16-(J-S);if(S=J,Oe>0){if(++u>=800)return arguments[0]}else u=0;return o.apply(r,arguments)}}function Rc(o,u){var S=-1,J=o.length,Oe=J-1;for(u=u===r?J:u;++S1?o[u-1]:r;return S="function"==typeof S?(o.pop(),S):r,Ml(o,S)});function Fu(o){var u=Ne(o);return u.__chain__=!0,u}function $c(o,u){return u(o)}var xh=ha(function(o){var u=o.length,S=u?o[0]:0,J=this.__wrapped__,Oe=function(Be){return $t(Be,o)};return!(u>1||this.__actions__.length)&&J instanceof di&&fa(S)?((J=J.slice(S,+S+(u?1:0))).__actions__.push({func:$c,args:[Oe],thisArg:r}),new Hn(J,this.__chain__).thru(function(Be){return u&&!Be.length&&Be.push(r),Be})):this.thru(Oe)}),tc=Va(function(o,u,S){ie.call(o,S)?++o[S]:At(o,S,1)}),Wg=_u(wc),jg=_u(Oh);function kh(o,u){return(ti(o)?hr:Oi)(o,Kn(u,3))}function $h(o,u){return(ti(o)?fo:pr)(o,Kn(u,3))}var Xg=Va(function(o,u,S){ie.call(o,S)?o[S].push(u):At(o,S,[u])}),ku=ei(function(o,u,S){var J=-1,Oe="function"==typeof u,Be=qo(o)?zt(o.length):[];return Oi(o,function(ct){Be[++J]=Oe?In(u,ct,S):no(ct,u,S)}),Be}),Ra=Va(function(o,u,S){At(o,S,u)});function Ya(o,u){return(ti(o)?Gn:Ul)(o,Kn(u,3))}var Bh=Va(function(o,u,S){o[S?0:1].push(u)},function(){return[[],[]]}),zh=ei(function(o,u){if(null==o)return[];var S=u.length;return S>1&&Fo(o,u[0],u[1])?u=[]:S>2&&Fo(u[0],u[1],u[2])&&(u=[u[0]]),Cd(o,Yi(u,1),[])}),$u=Os||function(){return tr.Date.now()};function Kh(o,u,S){return u=S?r:u,qs(o,X,r,r,r,r,u=o&&null==u?o.length:u)}function Vh(o,u){var S;if("function"!=typeof u)throw new mo(p);return o=Jn(o),function(){return--o>0&&(S=u.apply(this,arguments)),o<=1&&(u=r),S}}var Uu=ei(function(o,u,S){var J=1;if(S.length){var Oe=Di(S,jl(Uu));J|=w}return qs(o,J,u,S,Oe)}),Uc=ei(function(o,u,S){var J=3;if(S.length){var Oe=Di(S,jl(Uc));J|=w}return qs(u,J,o,S,Oe)});function Wh(o,u,S){var J,Oe,Be,ct,yt,wt,nn=0,sn=!1,rn=!1,En=!0;if("function"!=typeof o)throw new mo(p);function Pn(Rr){var As=J,xa=Oe;return J=Oe=r,nn=Rr,ct=o.apply(xa,As)}function Vn(Rr){var As=Rr-wt;return wt===r||As>=u||As<0||rn&&Rr-nn>=Be}function mi(){var Rr=$u();if(Vn(Rr))return bi(Rr);yt=Ql(mi,function ai(Rr){var Bf=u-(Rr-wt);return rn?Ar(Bf,Be-(Rr-nn)):Bf}(Rr))}function bi(Rr){return yt=r,En&&J?Pn(Rr):(J=Oe=r,ct)}function bs(){var Rr=$u(),As=Vn(Rr);if(J=arguments,Oe=this,wt=Rr,As){if(yt===r)return function Xn(Rr){return nn=Rr,yt=Ql(mi,u),sn?Pn(Rr):ct}(wt);if(rn)return oh(yt),yt=Ql(mi,u),Pn(wt)}return yt===r&&(yt=Ql(mi,u)),ct}return u=es(u)||0,Qi(S)&&(sn=!!S.leading,Be=(rn="maxWait"in S)?pi(es(S.maxWait)||0,u):Be,En="trailing"in S?!!S.trailing:En),bs.cancel=function Ss(){yt!==r&&oh(yt),nn=0,J=wt=Oe=yt=r},bs.flush=function Uo(){return yt===r?ct:bi($u())},bs}var Cl=ei(function(o,u){return pn(o,1,u)}),jh=ei(function(o,u,S){return pn(o,es(u)||0,S)});function nc(o,u){if("function"!=typeof o||null!=u&&"function"!=typeof u)throw new mo(p);var S=function(){var J=arguments,Oe=u?u.apply(this,J):J[0],Be=S.cache;if(Be.has(Oe))return Be.get(Oe);var ct=o.apply(this,J);return S.cache=Be.set(Oe,ct)||Be,ct};return S.cache=new(nc.Cache||F),S}function Bc(o){if("function"!=typeof o)throw new mo(p);return function(){var u=arguments;switch(u.length){case 0:return!o.call(this);case 1:return!o.call(this,u[0]);case 2:return!o.call(this,u[0],u[1]);case 3:return!o.call(this,u[0],u[1],u[2])}return!o.apply(this,u)}}nc.Cache=F;var ep=zl(function(o,u){var S=(u=1==u.length&&ti(u[0])?Gn(u[0],Or(Kn())):Gn(Yi(u,1),Or(Kn()))).length;return ei(function(J){for(var Oe=-1,Be=Ar(J.length,S);++Oe=u}),vl=io(function(){return arguments}())?io:function(o){return vr(o)&&ie.call(o,"callee")&&!Xi.call(o,"callee")},ti=zt.isArray,qh=ts?Or(ts):function Qs(o){return vr(o)&&_r(o)==ve};function qo(o){return null!=o&&Kc(o.length)&&!La(o)}function ir(o){return vr(o)&&qo(o)}var ga=Gr||Qu,Gu=na?Or(na):function Si(o){return vr(o)&&_r(o)==Te};function Qa(o){if(!vr(o))return!1;var u=_r(o);return u==Pe||"[object DOMException]"==u||"string"==typeof o.message&&"string"==typeof o.name&&!Vc(o)}function La(o){if(!Qi(o))return!1;var u=_r(o);return u==dt||u==Pt||"[object AsyncFunction]"==u||"[object Proxy]"==u}function ef(o){return"number"==typeof o&&o==Jn(o)}function Kc(o){return"number"==typeof o&&o>-1&&o%1==0&&o<=_t}function Qi(o){var u=typeof o;return null!=o&&("object"==u||"function"==u)}function vr(o){return null!=o&&"object"==typeof o}var tf=Zr?Or(Zr):function Pr(o){return vr(o)&&ro(o)==Qt};function sp(o){return"number"==typeof o||vr(o)&&_r(o)==cn}function Vc(o){if(!vr(o)||_r(o)!=ne)return!1;var u=Gi(o);if(null===u)return!0;var S=ie.call(u,"constructor")&&u.constructor;return"function"==typeof S&&S instanceof S&&x.call(S)==lt}var f_=Fr?Or(Fr):function Sa(o){return vr(o)&&_r(o)==mt},lp=Zi?Or(Zi):function $l(o){return vr(o)&&ro(o)==Ut};function g_(o){return"string"==typeof o||!ti(o)&&vr(o)&&_r(o)==Bt}function ko(o){return"symbol"==typeof o||vr(o)&&_r(o)==gt}var ic=Xr?Or(Xr):function md(o){return vr(o)&&Kc(o.length)&&!!Nn[_r(o)]},Ku=gu(ru),Vu=gu(function(o,u){return o<=u});function yl(o){if(!o)return[];if(qo(o))return g_(o)?qr(o):Qo(o);if(No&&o[No])return function Il(It){for(var Ht,zt=[];!(Ht=It.next()).done;)zt.push(Ht.value);return zt}(o[No]());var u=ro(o);return(u==Qt?lr:u==Ut?gr:lc)(o)}function ys(o){return o?(o=es(o))===tt||o===-tt?17976931348623157e292*(o<0?-1:1):o==o?o:0:0===o?o:0}function Jn(o){var u=ys(o),S=u%1;return u==u?S?u-S:u:0}function Wu(o){return o?ln(Jn(o),0,ot):0}function es(o){if("number"==typeof o)return o;if(ko(o))return NaN;if(Qi(o)){var u="function"==typeof o.valueOf?o.valueOf():o;o=Qi(u)?u+"":u}if("string"!=typeof o)return 0===o?o:+o;o=go(o);var S=qt.test(o);return S||fn.test(o)?ho(o.slice(2),S?2:8):Tt.test(o)?NaN:+o}function oc(o){return Js(o,ao(o))}function Li(o){return null==o?"":Wr(o)}var Wc=fl(function(o,u){if(Xl(u)||qo(u))Js(u,so(u),o);else for(var S in u)ie.call(u,S)&&v(o,S,u[S])}),sf=fl(function(o,u){Js(u,ao(u),o)}),jc=fl(function(o,u,S,J){Js(u,ao(u),o,J)}),cp=fl(function(o,u,S,J){Js(u,so(u),o,J)}),up=ha($t),af=ei(function(o,u){o=vi(o);var S=-1,J=u.length,Oe=J>2?u[2]:r;for(Oe&&Fo(u[0],u[1],Oe)&&(J=1);++S1),Be}),Js(o,$d(o),S),J&&(S=Jt(S,7,Cg));for(var Oe=u.length;Oe--;)au(S,u[Oe]);return S}),Mp=ha(function(o,u){return null==o?{}:function xo(o,u){return vd(o,u,function(S,J){return Hu(o,J)})}(o,u)});function _f(o,u){if(null==o)return{};var S=Gn($d(o),function(J){return[J]});return u=Kn(u),vd(o,S,function(J,Oe){return u(J,Oe[0])})}var Cp=Vl(so),Zu=Vl(ao);function lc(o){return null==o?[]:ia(o,so(o))}var mf=Wa(function(o,u,S){return u=u.toLowerCase(),o+(S?v_(u):u)});function v_(o){return Xu(Li(o).toLowerCase())}function Us(o){return(o=Li(o))&&o.replace(en,Wo).replace(vo,"")}var Ja=Wa(function(o,u,S){return o+(S?"-":"")+u.toLowerCase()}),S_=Wa(function(o,u,S){return o+(S?" ":"")+u.toLowerCase()}),Ap=Rd("toLowerCase"),ME=Wa(function(o,u,S){return o+(S?"_":"")+u.toLowerCase()}),Ip=Wa(function(o,u,S){return o+(S?" ":"")+Xu(u)}),Lp=Wa(function(o,u,S){return o+(S?" ":"")+u.toUpperCase()}),Xu=Rd("toUpperCase");function Sf(o,u,S){return o=Li(o),(u=S?r:u)===r?function jo(It){return Pi.test(It)}(o)?function is(It){return It.match(zo)||[]}(o):function fr(It){return It.match(mn)||[]}(o):o.match(u)||[]}var T_=ei(function(o,u){try{return In(o,r,u)}catch(S){return Qa(S)?S:new Wn(S)}}),cc=ha(function(o,u){return hr(u,function(S){S=ea(S),At(o,S,Uu(o[S],o))}),o});function I_(o){return function(){return o}}var bf=Ld(),Af=Ld(!0);function $o(o){return o}function Sl(o){return iu("function"==typeof o?o:Jt(o,1))}var Tf=ei(function(o,u){return function(S){return no(S,o,u)}}),xp=ei(function(o,u){return function(S){return no(o,S,u)}});function P_(o,u,S){var J=so(u),Oe=Xs(u,J);null==S&&(!Qi(u)||!Oe.length&&J.length)&&(S=u,u=o,o=this,Oe=Xs(u,so(u)));var Be=!(Qi(S)&&"chain"in S&&!S.chain),ct=La(o);return hr(Oe,function(yt){var wt=u[yt];o[yt]=wt,ct&&(o.prototype[yt]=function(){var nn=this.__chain__;if(Be||nn){var sn=o(this.__wrapped__);return(sn.__actions__=Qo(this.__actions__)).push({func:wt,args:arguments,thisArg:o}),sn.__chain__=nn,sn}return wt.apply(o,gs([this.value()],arguments))})}),o}function N_(){}var OE=hu(Gn),kp=hu(yr),CE=hu(ci);function $p(o){return Cu(o)?Q(ea(o)):function yd(o){return function(u){return Cs(u,o)}}(o)}var Nf=xd(),vE=xd(!0);function bl(){return[]}function Qu(){return!1}var Ff=Pa(function(o,u){return o+u},0),dc=pu("ceil"),kf=Pa(function(o,u){return o/u},1),Bp=pu("floor"),w_=Pa(function(o,u){return o*u},1),x_=pu("round"),Uf=Pa(function(o,u){return o-u},0);return Ne.after=function Qg(o,u){if("function"!=typeof u)throw new mo(p);return o=Jn(o),function(){if(--o<1)return u.apply(this,arguments)}},Ne.ary=Kh,Ne.assign=Wc,Ne.assignIn=sf,Ne.assignInWith=jc,Ne.assignWith=cp,Ne.at=up,Ne.before=Vh,Ne.bind=Uu,Ne.bindAll=cc,Ne.bindKey=Uc,Ne.castArray=function Yh(){if(!arguments.length)return[];var o=arguments[0];return ti(o)?o:[o]},Ne.chain=Fu,Ne.chunk=function gh(o,u,S){u=(S?Fo(o,u,S):u===r)?1:pi(Jn(u),0);var J=null==o?0:o.length;if(!J||u<1)return[];for(var Oe=0,Be=0,ct=zt(Mi(J/u));OeOe?0:Oe+S),(J=J===r||J>Oe?Oe:Jn(J))<0&&(J+=Oe),J=S>J?0:Wu(J);S>>0)?(o=Li(o))&&("string"==typeof u||null!=u&&!f_(u))&&!(u=Wr(u))&&br(o)?Ia(qr(o),0,S):o.split(u,S):[]},Ne.spread=function dE(o,u){if("function"!=typeof o)throw new mo(p);return u=null==u?0:pi(Jn(u),0),ei(function(S){var J=S[u],Oe=Ia(S,0,u);return J&&gs(Oe,J),In(o,this,Oe)})},Ne.tail=function Ph(o){var u=null==o?0:o.length;return u?ks(o,1,u):[]},Ne.take=function t_(o,u,S){return o&&o.length?ks(o,0,(u=S||u===r?1:Jn(u))<0?0:u):[]},Ne.takeRight=function Fc(o,u,S){var J=null==o?0:o.length;return J?ks(o,(u=J-(u=S||u===r?1:Jn(u)))<0?0:u,J):[]},Ne.takeRightWhile=function Pg(o,u){return o&&o.length?Cc(o,Kn(u,3),!1,!0):[]},Ne.takeWhile=function Nh(o,u){return o&&o.length?Cc(o,Kn(u,3)):[]},Ne.tap=function wh(o,u){return u(o),o},Ne.throttle=function Gc(o,u,S){var J=!0,Oe=!0;if("function"!=typeof o)throw new mo(p);return Qi(S)&&(J="leading"in S?!!S.leading:J,Oe="trailing"in S?!!S.trailing:Oe),Wh(o,u,{leading:J,maxWait:u,trailing:Oe})},Ne.thru=$c,Ne.toArray=yl,Ne.toPairs=Cp,Ne.toPairsIn=Zu,Ne.toPath=function ri(o){return ti(o)?Gn(o,ea):ko(o)?[o]:Qo(Au(Li(o)))},Ne.toPlainObject=oc,Ne.transform=function ff(o,u,S){var J=ti(o),Oe=J||ga(o)||ic(o);if(u=Kn(u,4),null==S){var Be=o&&o.constructor;S=Oe?J?new Be:[]:Qi(o)&&La(Be)?_a(Gi(o)):{}}return(Oe?hr:Lo)(o,function(ct,yt,wt){return u(S,ct,yt,wt)}),S},Ne.unary=function zc(o){return Kh(o,1)},Ne.union=Ng,Ne.unionBy=Rg,Ne.unionWith=Lg,Ne.uniq=function Rh(o){return o&&o.length?Da(o):[]},Ne.uniqBy=function Lh(o,u){return o&&o.length?Da(o,Kn(u,2)):[]},Ne.uniqWith=function wu(o,u){return u="function"==typeof u?u:r,o&&o.length?Da(o,r,u):[]},Ne.unset=function vp(o,u){return null==o||au(o,u)},Ne.unzip=kc,Ne.unzipWith=Ml,Ne.update=function yp(o,u,S){return null==o?o:Nr(o,u,vc(S))},Ne.updateWith=function gf(o,u,S,J){return J="function"==typeof J?J:r,null==o?o:Nr(o,u,vc(S),J)},Ne.values=lc,Ne.valuesIn=function pf(o){return null==o?[]:ia(o,ao(o))},Ne.without=wg,Ne.words=Sf,Ne.wrap=function Xh(o,u){return s_(vc(u),o)},Ne.xor=xg,Ne.xorBy=rE,Ne.xorWith=Fg,Ne.zip=n_,Ne.zipObject=function kg(o,u){return as(o||[],u||[],v)},Ne.zipObjectDeep=function ec(o,u){return as(o||[],u||[],za)},Ne.zipWith=xu,Ne.entries=Cp,Ne.entriesIn=Zu,Ne.extend=sf,Ne.extendWith=jc,P_(Ne,Ne),Ne.add=Ff,Ne.attempt=T_,Ne.camelCase=mf,Ne.capitalize=v_,Ne.ceil=dc,Ne.clamp=function Sp(o,u,S){return S===r&&(S=u,u=r),S!==r&&(S=(S=es(S))==S?S:0),u!==r&&(u=(u=es(u))==u?u:0),ln(es(o),u,S)},Ne.clone=function a_(o){return Jt(o,4)},Ne.cloneDeep=function tp(o){return Jt(o,5)},Ne.cloneDeepWith=function Qh(o,u){return Jt(o,5,u="function"==typeof u?u:r)},Ne.cloneWith=function l_(o,u){return Jt(o,4,u="function"==typeof u?u:r)},Ne.conformsTo=function Jh(o,u){return null==u||Rn(o,u,so(u))},Ne.deburr=Us,Ne.defaultTo=function wp(o,u){return null==o||o!=o?u:o},Ne.divide=kf,Ne.endsWith=function Ef(o,u,S){o=Li(o),u=Wr(u);var J=o.length,Oe=S=S===r?J:ln(Jn(S),0,J);return(S-=u.length)>=0&&o.slice(S,Oe)==u},Ne.eq=us,Ne.escape=function mE(o){return(o=Li(o))&&vt.test(o)?o.replace(Ye,Vs):o},Ne.escapeRegExp=function y_(o){return(o=Li(o))&&Y.test(o)?o.replace(R,"\\$&"):o},Ne.every=function Kg(o,u,S){var J=ti(o)?yr:Cr;return S&&Fo(o,u,S)&&(u=r),J(o,Kn(u,3))},Ne.find=Wg,Ne.findIndex=wc,Ne.findKey=function _p(o,u){return Do(o,Kn(u,3),Lo)},Ne.findLast=jg,Ne.findLastIndex=Oh,Ne.findLastKey=function fE(o,u){return Do(o,Kn(u,3),wo)},Ne.floor=Bp,Ne.forEach=kh,Ne.forEachRight=$h,Ne.forIn=function hp(o,u){return null==o?o:Kr(o,Kn(u,3),ao)},Ne.forInRight=function ju(o,u){return null==o?o:Yo(o,Kn(u,3),ao)},Ne.forOwn=function M_(o,u){return o&&Lo(o,Kn(u,3))},Ne.forOwnRight=function fp(o,u){return o&&wo(o,Kn(u,3))},Ne.get=sc,Ne.gt=_E,Ne.gte=c_,Ne.has=function gp(o,u){return null!=o&&Za(o,u,Sn)},Ne.hasIn=Hu,Ne.head=vh,Ne.identity=$o,Ne.includes=function Yg(o,u,S,J){o=qo(o)?o:lc(o),S=S&&!J?Jn(S):0;var Oe=o.length;return S<0&&(S=pi(Oe+S,0)),g_(o)?S<=Oe&&o.indexOf(u,S)>-1:!!Oe&&ms(o,u,S)>-1},Ne.indexOf=function yh(o,u,S){var J=null==o?0:o.length;if(!J)return-1;var Oe=null==S?0:Jn(S);return Oe<0&&(Oe=pi(J+Oe,0)),ms(o,u,Oe)},Ne.inRange=function bp(o,u,S){return u=ys(u),S===r?(S=u,u=0):S=ys(S),function kn(o,u,S){return o>=Ar(u,S)&&o=-_t&&o<=_t},Ne.isSet=lp,Ne.isString=g_,Ne.isSymbol=ko,Ne.isTypedArray=ic,Ne.isUndefined=function p_(o){return o===r},Ne.isWeakMap=function m_(o){return vr(o)&&ro(o)==oe},Ne.isWeakSet=function rc(o){return vr(o)&&"[object WeakSet]"==_r(o)},Ne.join=function Dg(o,u){return null==o?"":gc.call(o,u)},Ne.kebabCase=Ja,Ne.last=cs,Ne.lastIndexOf=function Sh(o,u,S){var J=null==o?0:o.length;if(!J)return-1;var Oe=J;return S!==r&&(Oe=(Oe=Jn(S))<0?pi(J+Oe,0):Ar(Oe,J-1)),u==u?function Jr(It,Ht,zt){for(var Cn=zt+1;Cn--;)if(It[Cn]===Ht)return Cn;return Cn}(o,u,Oe):Vo(o,Ks,Oe,!0)},Ne.lowerCase=S_,Ne.lowerFirst=Ap,Ne.lt=Ku,Ne.lte=Vu,Ne.max=function Ju(o){return o&&o.length?Ir(o,$o,Ys):r},Ne.maxBy=function _c(o,u){return o&&o.length?Ir(o,Kn(u,2),Ys):r},Ne.mean=function R_(o){return ae(o,$o)},Ne.meanBy=function Zc(o,u){return ae(o,Kn(u,2))},Ne.min=function $f(o){return o&&o.length?Ir(o,$o,ru):r},Ne.minBy=function L_(o,u){return o&&o.length?Ir(o,Kn(u,2),ru):r},Ne.stubArray=bl,Ne.stubFalse=Qu,Ne.stubObject=function Rf(){return{}},Ne.stubString=function Up(){return""},Ne.stubTrue=function Lf(){return!0},Ne.multiply=w_,Ne.nth=function El(o,u){return o&&o.length?ul(o,Jn(u)):r},Ne.noConflict=function Fp(){return tr._===this&&(tr._=jt),this},Ne.noop=N_,Ne.now=$u,Ne.pad=function EE(o,u,S){o=Li(o);var J=(u=Jn(u))?Io(o):0;if(!u||J>=u)return o;var Oe=(u-J)/2;return fu(aa(Oe),S)+o+fu(Mi(Oe),S)},Ne.padEnd=function Dp(o,u,S){o=Li(o);var J=(u=Jn(u))?Io(o):0;return u&&Ju){var J=o;o=u,u=J}if(S||o%1||u%1){var Oe=Dr();return Ar(o+Oe*(u-o+sr("1e-"+((Oe+"").length-1))),u)}return Oc(o,u)},Ne.reduce=function Gh(o,u,S){var J=ti(o)?ar:se,Oe=arguments.length<3;return J(o,Kn(u,4),S,Oe,Oi)},Ne.reduceRight=function oE(o,u,S){var J=ti(o)?Vi:se,Oe=arguments.length<3;return J(o,Kn(u,4),S,Oe,pr)},Ne.repeat=function Mf(o,u,S){return u=(S?Fo(o,u,S):u===r)?1:Jn(u),Aa(Li(o),u)},Ne.replace=function Tp(){var o=arguments,u=Li(o[0]);return o.length<3?u:u.replace(o[1],o[2])},Ne.result=function hf(o,u,S){var J=-1,Oe=(u=$s(u,o)).length;for(Oe||(Oe=1,o=r);++J_t)return[];var S=ot,J=Ar(o,ot);u=Kn(u),o-=ot;for(var Oe=vn(J,u);++S=Be)return o;var yt=S-Io(J);if(yt<1)return J;var wt=ct?Ia(ct,0,yt).join(""):o.slice(0,yt);if(Oe===r)return wt+J;if(ct&&(yt+=wt.length-yt),f_(Oe)){if(o.slice(yt).search(Oe)){var nn,sn=wt;for(Oe.global||(Oe=sa(Oe.source,Li(Nt.exec(Oe))+"g")),Oe.lastIndex=0;nn=Oe.exec(sn);)var rn=nn.index;wt=wt.slice(0,rn===r?yt:rn)}}else if(o.indexOf(Wr(Oe),yt)!=yt){var En=wt.lastIndexOf(Oe);En>-1&&(wt=wt.slice(0,En))}return wt+J},Ne.unescape=function yf(o){return(o=Li(o))&&Ee.test(o)?o.replace(Zt,ns):o},Ne.uniqueId=function xf(o){var u=++He;return Li(o)+u},Ne.upperCase=Lp,Ne.upperFirst=Xu,Ne.each=kh,Ne.eachRight=$h,Ne.first=vh,P_(Ne,function(){var o={};return Lo(Ne,function(u,S){ie.call(Ne.prototype,S)||(o[S]=u)}),o}(),{chain:!1}),Ne.VERSION="4.17.21",hr(["bind","bindKey","curry","curryRight","partial","partialRight"],function(o){Ne[o].placeholder=Ne}),hr(["drop","take"],function(o,u){di.prototype[o]=function(S){S=S===r?1:pi(Jn(S),0);var J=this.__filtered__&&!u?new di(this):this.clone();return J.__filtered__?J.__takeCount__=Ar(S,J.__takeCount__):J.__views__.push({size:Ar(S,ot),type:o+(J.__dir__<0?"Right":"")}),J},di.prototype[o+"Right"]=function(S){return this.reverse()[o](S).reverse()}}),hr(["filter","map","takeWhile"],function(o,u){var S=u+1,J=1==S||3==S;di.prototype[o]=function(Oe){var Be=this.clone();return Be.__iteratees__.push({iteratee:Kn(Oe,3),type:S}),Be.__filtered__=Be.__filtered__||J,Be}}),hr(["head","last"],function(o,u){var S="take"+(u?"Right":"");di.prototype[o]=function(){return this[S](1).value()[0]}}),hr(["initial","tail"],function(o,u){var S="drop"+(u?"":"Right");di.prototype[o]=function(){return this.__filtered__?new di(this):this[S](1)}}),di.prototype.compact=function(){return this.filter($o)},di.prototype.find=function(o){return this.filter(o).head()},di.prototype.findLast=function(o){return this.reverse().find(o)},di.prototype.invokeMap=ei(function(o,u){return"function"==typeof o?new di(this):this.map(function(S){return no(S,o,u)})}),di.prototype.reject=function(o){return this.filter(Bc(Kn(o)))},di.prototype.slice=function(o,u){o=Jn(o);var S=this;return S.__filtered__&&(o>0||u<0)?new di(S):(o<0?S=S.takeRight(-o):o&&(S=S.drop(o)),u!==r&&(S=(u=Jn(u))<0?S.dropRight(-u):S.take(u-o)),S)},di.prototype.takeRightWhile=function(o){return this.reverse().takeWhile(o).reverse()},di.prototype.toArray=function(){return this.take(ot)},Lo(di.prototype,function(o,u){var S=/^(?:filter|find|map|reject)|While$/.test(u),J=/^(?:head|last)$/.test(u),Oe=Ne[J?"take"+("last"==u?"Right":""):u],Be=J||/^find/.test(u);Oe&&(Ne.prototype[u]=function(){var ct=this.__wrapped__,yt=J?[1]:arguments,wt=ct instanceof di,nn=yt[0],sn=wt||ti(ct),rn=function(mi){var bi=Oe.apply(Ne,gs([mi],yt));return J&&En?bi[0]:bi};sn&&S&&"function"==typeof nn&&1!=nn.length&&(wt=sn=!1);var En=this.__chain__,Xn=Be&&!En,ai=wt&&!this.__actions__.length;if(!Be&&sn){ct=ai?ct:new di(this);var Vn=o.apply(ct,yt);return Vn.__actions__.push({func:$c,args:[rn],thisArg:r}),new Hn(Vn,En)}return Xn&&ai?o.apply(this,yt):(Vn=this.thru(rn),Xn?J?Vn.value()[0]:Vn.value():Vn)})}),hr(["pop","push","shift","sort","splice","unshift"],function(o){var u=Ms[o],S=/^(?:push|sort|unshift)$/.test(o)?"tap":"thru",J=/^(?:pop|shift)$/.test(o);Ne.prototype[o]=function(){var Oe=arguments;if(J&&!this.__chain__){var Be=this.value();return u.apply(ti(Be)?Be:[],Oe)}return this[S](function(ct){return u.apply(ti(ct)?ct:[],Oe)})}}),Lo(di.prototype,function(o,u){var S=Ne[u];if(S){var J=S.name+"";ie.call(Ca,J)||(Ca[J]=[]),Ca[J].push({name:u,func:S})}}),Ca[bc(r,2).name]=[{name:"wrapper",func:r}],di.prototype.clone=function wl(){var o=new di(this.__wrapped__);return o.__actions__=Qo(this.__actions__),o.__dir__=this.__dir__,o.__filtered__=this.__filtered__,o.__iteratees__=Qo(this.__iteratees__),o.__takeCount__=this.__takeCount__,o.__views__=Qo(this.__views__),o},di.prototype.reverse=function Tr(){if(this.__filtered__){var o=new di(this);o.__dir__=-1,o.__filtered__=!0}else(o=this.clone()).__dir__*=-1;return o},di.prototype.value=function xl(){var o=this.__wrapped__.value(),u=this.__dir__,S=ti(o),J=u<0,Oe=S?o.length:0,Be=function Gd(o,u,S){for(var J=-1,Oe=S.length;++J=this.__values__.length;return{done:o,value:o?r:this.__values__[this.__index__++]}},Ne.prototype.plant=function Gg(o){for(var u,S=this;S instanceof tn;){var J=Lc(S);J.__index__=0,J.__values__=r,u?Oe.__wrapped__=J:u=J;var Oe=J;S=S.__wrapped__}return Oe.__wrapped__=o,u},Ne.prototype.reverse=function zg(){var o=this.__wrapped__;if(o instanceof di){var u=o;return this.__actions__.length&&(u=new di(this)),(u=u.reverse()).__actions__.push({func:$c,args:[Nu],thisArg:r}),new Hn(u,this.__chain__)}return this.thru(Nu)},Ne.prototype.toJSON=Ne.prototype.valueOf=Ne.prototype.value=function Na(){return _l(this.__wrapped__,this.__actions__)},Ne.prototype.first=Ne.prototype.head,No&&(Ne.prototype[No]=function Bg(){return this}),Ne}();tr._=po,(a=function(){return po}.call(he,s,he,Qe))!==r&&(Qe.exports=a)}.call(this)},45125:(Qe,he,s)=>{"use strict";s.d(he,{X:()=>b});var a=s(72079),r=s(6229);class b extends a.xQ{constructor(D){super(),this._value=D}get value(){return this.getValue()}_subscribe(D){const p=super._subscribe(D);return p&&!p.closed&&D.next(this._value),p}getValue(){if(this.hasError)throw this.thrownError;if(this.closed)throw new r.N;return this._value}next(D){super.next(this._value=D)}}},61250:(Qe,he,s)=>{"use strict";s.d(he,{d:()=>r});var a=s(40254);class r extends a.L{constructor(A,D,p){super(),this.parent=A,this.outerValue=D,this.outerIndex=p,this.index=0}_next(A){this.parent.notifyNext(this.outerValue,A,this.outerIndex,this.index++,this)}_error(A){this.parent.notifyError(A,this),this.unsubscribe()}_complete(){this.parent.notifyComplete(this),this.unsubscribe()}}},56979:(Qe,he,s)=>{"use strict";s.d(he,{P:()=>D});var a=s(91226),r=s(49193),b=s(16222);class D{constructor(E,f,c){this.kind=E,this.value=f,this.error=c,this.hasValue="N"===E}observe(E){switch(this.kind){case"N":return E.next&&E.next(this.value);case"E":return E.error&&E.error(this.error);case"C":return E.complete&&E.complete()}}do(E,f,c){switch(this.kind){case"N":return E&&E(this.value);case"E":return f&&f(this.error);case"C":return c&&c()}}accept(E,f,c){return E&&"function"==typeof E.next?this.observe(E):this.do(E,f,c)}toObservable(){switch(this.kind){case"N":return(0,r.of)(this.value);case"E":return(0,b._)(this.error);case"C":return(0,a.c)()}throw new Error("unexpected notification kind value")}static createNext(E){return typeof E<"u"?new D("N",E):D.undefinedValueNotification}static createError(E){return new D("E",void 0,E)}static createComplete(){return D.completeNotification}}D.completeNotification=new D("C"),D.undefinedValueNotification=new D("N",void 0)},54699:(Qe,he,s)=>{"use strict";s.d(he,{y:()=>c});var a=s(40254),b=s(55297),A=s(17308),p=s(92677),E=s(54813),f=s(97213);let c=(()=>{class m{constructor(g){this._isScalar=!1,g&&(this._subscribe=g)}lift(g){const P=new m;return P.source=this,P.operator=g,P}subscribe(g,P,U){const{operator:d}=this,q=function D(m,_,g){if(m){if(m instanceof a.L)return m;if(m[b.b])return m[b.b]()}return m||_||g?new a.L(m,_,g):new a.L(A.c)}(g,P,U);if(q.add(d?d.call(q,this.source):this.source||f.config.useDeprecatedSynchronousErrorHandling&&!q.syncErrorThrowable?this._subscribe(q):this._trySubscribe(q)),f.config.useDeprecatedSynchronousErrorHandling&&q.syncErrorThrowable&&(q.syncErrorThrowable=!1,q.syncErrorThrown))throw q.syncErrorValue;return q}_trySubscribe(g){try{return this._subscribe(g)}catch(P){f.config.useDeprecatedSynchronousErrorHandling&&(g.syncErrorThrown=!0,g.syncErrorValue=P),function r(m){for(;m;){const{closed:_,destination:g,isStopped:P}=m;if(_||P)return!1;m=g&&g instanceof a.L?g:null}return!0}(g)?g.error(P):console.warn(P)}}forEach(g,P){return new(P=C(P))((U,d)=>{let q;q=this.subscribe(j=>{try{g(j)}catch(K){d(K),q&&q.unsubscribe()}},d,U)})}_subscribe(g){const{source:P}=this;return P&&P.subscribe(g)}[p.L](){return this}pipe(...g){return 0===g.length?this:(0,E.U)(g)(this)}toPromise(g){return new(g=C(g))((P,U)=>{let d;this.subscribe(q=>d=q,q=>U(q),()=>P(d))})}}return m.create=_=>new m(_),m})();function C(m){if(m||(m=f.config.Promise||Promise),!m)throw new Error("no Promise impl found");return m}},17308:(Qe,he,s)=>{"use strict";s.d(he,{c:()=>b});var a=s(97213),r=s(13510);const b={closed:!0,next(A){},error(A){if(a.config.useDeprecatedSynchronousErrorHandling)throw A;(0,r.z)(A)},complete(){}}},47279:(Qe,he,s)=>{"use strict";s.d(he,{L:()=>r});var a=s(40254);class r extends a.L{notifyNext(A,D,p,E,f){this.destination.next(D)}notifyError(A,D){this.destination.error(A)}notifyComplete(A){this.destination.complete()}}},8367:(Qe,he,s)=>{"use strict";s.d(he,{t:()=>d});var a=s(72079),r=s(61618),A=s(91781);const p=new class D extends A.v{}(class b extends r.o{constructor(K,L){super(K,L),this.scheduler=K,this.work=L}schedule(K,L=0){return L>0?super.schedule(K,L):(this.delay=L,this.state=K,this.scheduler.flush(this),this)}execute(K,L){return L>0||this.closed?super.execute(K,L):this._execute(K,L)}requestAsyncId(K,L,w=0){return null!==w&&w>0||null===w&&this.delay>0?super.requestAsyncId(K,L,w):K.flush(this)}});var E=s(7902),f=s(40254),c=s(56979);class _ extends f.L{constructor(K,L,w=0){super(K),this.scheduler=L,this.delay=w}static dispatch(K){const{notification:L,destination:w}=K;L.observe(w),this.unsubscribe()}scheduleMessage(K){this.destination.add(this.scheduler.schedule(_.dispatch,this.delay,new g(K,this.destination)))}_next(K){this.scheduleMessage(c.P.createNext(K))}_error(K){this.scheduleMessage(c.P.createError(K)),this.unsubscribe()}_complete(){this.scheduleMessage(c.P.createComplete()),this.unsubscribe()}}class g{constructor(K,L){this.notification=K,this.destination=L}}var P=s(6229),U=s(79806);class d extends a.xQ{constructor(K=Number.POSITIVE_INFINITY,L=Number.POSITIVE_INFINITY,w){super(),this.scheduler=w,this._events=[],this._infiniteTimeWindow=!1,this._bufferSize=K<1?1:K,this._windowTime=L<1?1:L,L===Number.POSITIVE_INFINITY?(this._infiniteTimeWindow=!0,this.next=this.nextInfiniteTimeWindow):this.next=this.nextTimeWindow}nextInfiniteTimeWindow(K){const L=this._events;L.push(K),L.length>this._bufferSize&&L.shift(),super.next(K)}nextTimeWindow(K){this._events.push(new q(this._getNow(),K)),this._trimBufferThenGetEvents(),super.next(K)}_subscribe(K){const L=this._infiniteTimeWindow,w=L?this._events:this._trimBufferThenGetEvents(),k=this.scheduler,X=w.length;let de;if(this.closed)throw new P.N;if(this.isStopped||this.hasError?de=E.w.EMPTY:(this.observers.push(K),de=new U.W(this,K)),k&&K.add(K=new _(K,k)),L)for(let re=0;reL&&(de=Math.max(de,X-L)),de>0&&k.splice(0,de),k}}class q{constructor(K,L){this.time=K,this.value=L}}},72079:(Qe,he,s)=>{"use strict";s.d(he,{Yc:()=>E,xQ:()=>f});var a=s(54699),r=s(40254),b=s(7902),A=s(6229),D=s(79806),p=s(55297);class E extends r.L{constructor(m){super(m),this.destination=m}}let f=(()=>{class C extends a.y{constructor(){super(),this.observers=[],this.closed=!1,this.isStopped=!1,this.hasError=!1,this.thrownError=null}[p.b](){return new E(this)}lift(_){const g=new c(this,this);return g.operator=_,g}next(_){if(this.closed)throw new A.N;if(!this.isStopped){const{observers:g}=this,P=g.length,U=g.slice();for(let d=0;dnew c(m,_),C})();class c extends f{constructor(m,_){super(),this.destination=m,this.source=_}next(m){const{destination:_}=this;_&&_.next&&_.next(m)}error(m){const{destination:_}=this;_&&_.error&&this.destination.error(m)}complete(){const{destination:m}=this;m&&m.complete&&this.destination.complete()}_subscribe(m){const{source:_}=this;return _?this.source.subscribe(m):b.w.EMPTY}}},79806:(Qe,he,s)=>{"use strict";s.d(he,{W:()=>r});var a=s(7902);class r extends a.w{constructor(A,D){super(),this.subject=A,this.subscriber=D,this.closed=!1}unsubscribe(){if(this.closed)return;this.closed=!0;const A=this.subject,D=A.observers;if(this.subject=null,!D||0===D.length||A.isStopped||A.closed)return;const p=D.indexOf(this.subscriber);-1!==p&&D.splice(p,1)}}},40254:(Qe,he,s)=>{"use strict";s.d(he,{L:()=>E});var a=s(38594),r=s(17308),b=s(7902),A=s(55297),D=s(97213),p=s(13510);class E extends b.w{constructor(C,m,_){switch(super(),this.syncErrorValue=null,this.syncErrorThrown=!1,this.syncErrorThrowable=!1,this.isStopped=!1,arguments.length){case 0:this.destination=r.c;break;case 1:if(!C){this.destination=r.c;break}if("object"==typeof C){C instanceof E?(this.syncErrorThrowable=C.syncErrorThrowable,this.destination=C,C.add(this)):(this.syncErrorThrowable=!0,this.destination=new f(this,C));break}default:this.syncErrorThrowable=!0,this.destination=new f(this,C,m,_)}}[A.b](){return this}static create(C,m,_){const g=new E(C,m,_);return g.syncErrorThrowable=!1,g}next(C){this.isStopped||this._next(C)}error(C){this.isStopped||(this.isStopped=!0,this._error(C))}complete(){this.isStopped||(this.isStopped=!0,this._complete())}unsubscribe(){this.closed||(this.isStopped=!0,super.unsubscribe())}_next(C){this.destination.next(C)}_error(C){this.destination.error(C),this.unsubscribe()}_complete(){this.destination.complete(),this.unsubscribe()}_unsubscribeAndRecycle(){const{_parentOrParents:C}=this;return this._parentOrParents=null,this.unsubscribe(),this.closed=!1,this.isStopped=!1,this._parentOrParents=C,this}}class f extends E{constructor(C,m,_,g){super(),this._parentSubscriber=C;let P,U=this;(0,a.m)(m)?P=m:m&&(P=m.next,_=m.error,g=m.complete,m!==r.c&&(U=Object.create(m),(0,a.m)(U.unsubscribe)&&this.add(U.unsubscribe.bind(U)),U.unsubscribe=this.unsubscribe.bind(this))),this._context=U,this._next=P,this._error=_,this._complete=g}next(C){if(!this.isStopped&&this._next){const{_parentSubscriber:m}=this;D.config.useDeprecatedSynchronousErrorHandling&&m.syncErrorThrowable?this.__tryOrSetError(m,this._next,C)&&this.unsubscribe():this.__tryOrUnsub(this._next,C)}}error(C){if(!this.isStopped){const{_parentSubscriber:m}=this,{useDeprecatedSynchronousErrorHandling:_}=D.config;if(this._error)_&&m.syncErrorThrowable?(this.__tryOrSetError(m,this._error,C),this.unsubscribe()):(this.__tryOrUnsub(this._error,C),this.unsubscribe());else if(m.syncErrorThrowable)_?(m.syncErrorValue=C,m.syncErrorThrown=!0):(0,p.z)(C),this.unsubscribe();else{if(this.unsubscribe(),_)throw C;(0,p.z)(C)}}}complete(){if(!this.isStopped){const{_parentSubscriber:C}=this;if(this._complete){const m=()=>this._complete.call(this._context);D.config.useDeprecatedSynchronousErrorHandling&&C.syncErrorThrowable?(this.__tryOrSetError(C,m),this.unsubscribe()):(this.__tryOrUnsub(m),this.unsubscribe())}else this.unsubscribe()}}__tryOrUnsub(C,m){try{C.call(this._context,m)}catch(_){if(this.unsubscribe(),D.config.useDeprecatedSynchronousErrorHandling)throw _;(0,p.z)(_)}}__tryOrSetError(C,m,_){if(!D.config.useDeprecatedSynchronousErrorHandling)throw new Error("bad call");try{m.call(this._context,_)}catch(g){return D.config.useDeprecatedSynchronousErrorHandling?(C.syncErrorValue=g,C.syncErrorThrown=!0,!0):((0,p.z)(g),!0)}return!1}_unsubscribe(){const{_parentSubscriber:C}=this;this._context=null,this._parentSubscriber=null,C.unsubscribe()}}},7902:(Qe,he,s)=>{"use strict";s.d(he,{w:()=>p});var a=s(11280),r=s(37755),b=s(38594);const D=(()=>{function f(c){return Error.call(this),this.message=c?`${c.length} errors occurred during unsubscription:\n${c.map((C,m)=>`${m+1}) ${C.toString()}`).join("\n ")}`:"",this.name="UnsubscriptionError",this.errors=c,this}return f.prototype=Object.create(Error.prototype),f})();class p{constructor(c){this.closed=!1,this._parentOrParents=null,this._subscriptions=null,c&&(this._unsubscribe=c)}unsubscribe(){let c;if(this.closed)return;let{_parentOrParents:C,_unsubscribe:m,_subscriptions:_}=this;if(this.closed=!0,this._parentOrParents=null,this._subscriptions=null,C instanceof p)C.remove(this);else if(null!==C)for(let g=0;gc.concat(C instanceof D?C.errors:C),[])}p.EMPTY=((f=new p).closed=!0,f)},97213:(Qe,he,s)=>{"use strict";s.d(he,{config:()=>r});let a=!1;const r={Promise:void 0,set useDeprecatedSynchronousErrorHandling(b){if(b){const A=new Error;console.warn("DEPRECATED! RxJS was set to use deprecated synchronous error handling behavior by code at: \n"+A.stack)}else a&&console.log("RxJS: Back to a better error behavior. Thank you. <3");a=b},get useDeprecatedSynchronousErrorHandling(){return a}}},44247:(Qe,he,s)=>{"use strict";s.d(he,{N:()=>p,c:()=>D});var a=s(72079),r=s(54699),b=s(7902),A=s(82851);class D extends r.y{constructor(m,_){super(),this.source=m,this.subjectFactory=_,this._refCount=0,this._isComplete=!1}_subscribe(m){return this.getSubject().subscribe(m)}getSubject(){const m=this._subject;return(!m||m.isStopped)&&(this._subject=this.subjectFactory()),this._subject}connect(){let m=this._connection;return m||(this._isComplete=!1,m=this._connection=new b.w,m.add(this.source.subscribe(new E(this.getSubject(),this))),m.closed&&(this._connection=null,m=b.w.EMPTY)),m}refCount(){return(0,A.x)()(this)}}const p=(()=>{const C=D.prototype;return{operator:{value:null},_refCount:{value:0,writable:!0},_subject:{value:null,writable:!0},_connection:{value:null,writable:!0},_subscribe:{value:C._subscribe},_isComplete:{value:C._isComplete,writable:!0},getSubject:{value:C.getSubject},connect:{value:C.connect},refCount:{value:C.refCount}}})();class E extends a.Yc{constructor(m,_){super(m),this.connectable=_}_error(m){this._unsubscribe(),super._error(m)}_complete(){this.connectable._isComplete=!0,this._unsubscribe(),super._complete()}_unsubscribe(){const m=this.connectable;if(m){this.connectable=null;const _=m._connection;m._refCount=0,m._subject=null,m._connection=null,_&&_.unsubscribe()}}}},23291:(Qe,he,s)=>{"use strict";s.d(he,{aj:()=>E});var a=s(99759),r=s(11280),b=s(47279),A=s(6735),D=s(12594);const p={};function E(...C){let m=null,_=null;return(0,a.K)(C[C.length-1])&&(_=C.pop()),"function"==typeof C[C.length-1]&&(m=C.pop()),1===C.length&&(0,r.k)(C[0])&&(C=C[0]),(0,D.n)(C,_).lift(new f(m))}class f{constructor(m){this.resultSelector=m}call(m,_){return _.subscribe(new c(m,this.resultSelector))}}class c extends b.L{constructor(m,_){super(m),this.resultSelector=_,this.active=0,this.values=[],this.observables=[]}_next(m){this.values.push(p),this.observables.push(m)}_complete(){const m=this.observables,_=m.length;if(0===_)this.destination.complete();else{this.active=_,this.toRespond=_;for(let g=0;g<_;g++){const P=m[g];this.add((0,A.D)(this,P,P,g))}}}notifyComplete(m){0==(this.active-=1)&&this.destination.complete()}notifyNext(m,_,g,P,U){const d=this.values,j=this.toRespond?d[g]===p?--this.toRespond:this.toRespond:0;d[g]=_,0===j&&(this.resultSelector?this._tryResultSelector(d):this.destination.next(d.slice()))}_tryResultSelector(m){let _;try{_=this.resultSelector.apply(this,m)}catch(g){return void this.destination.error(g)}this.destination.next(_)}}},93990:(Qe,he,s)=>{"use strict";s.d(he,{z:()=>A});var a=s(49193),r=s(87449);function A(...D){return function b(){return(0,r.J)(1)}()((0,a.of)(...D))}},24917:(Qe,he,s)=>{"use strict";s.d(he,{P:()=>A});var a=s(54699),r=s(5253),b=s(91226);function A(D){return new a.y(p=>{let E;try{E=D()}catch(c){return void p.error(c)}return(E?(0,r.D)(E):(0,b.c)()).subscribe(p)})}},91226:(Qe,he,s)=>{"use strict";s.d(he,{E:()=>r,c:()=>b});var a=s(54699);const r=new a.y(D=>D.complete());function b(D){return D?function A(D){return new a.y(p=>D.schedule(()=>p.complete()))}(D):r}},77504:(Qe,he,s)=>{"use strict";s.d(he,{D:()=>p});var a=s(54699),r=s(11280),b=s(96124),A=s(37755),D=s(5253);function p(...f){if(1===f.length){const c=f[0];if((0,r.k)(c))return E(c,null);if((0,A.K)(c)&&Object.getPrototypeOf(c)===Object.prototype){const C=Object.keys(c);return E(C.map(m=>c[m]),C)}}if("function"==typeof f[f.length-1]){const c=f.pop();return E(f=1===f.length&&(0,r.k)(f[0])?f[0]:f,null).pipe((0,b.U)(C=>c(...C)))}return E(f,null)}function E(f,c){return new a.y(C=>{const m=f.length;if(0===m)return void C.complete();const _=new Array(m);let g=0,P=0;for(let U=0;U{q||(q=!0,P++),_[U]=j},error:j=>C.error(j),complete:()=>{g++,(g===m||!q)&&(P===m&&C.next(c?c.reduce((j,K,L)=>(j[K]=_[L],j),{}):_),C.complete())}}))}})}},5253:(Qe,he,s)=>{"use strict";s.d(he,{D:()=>U});var a=s(54699),r=s(74372),b=s(7902),A=s(92677),E=s(65513),f=s(96258),m=s(36007),_=s(9990);function U(d,q){return q?function P(d,q){if(null!=d){if(function C(d){return d&&"function"==typeof d[A.L]}(d))return function D(d,q){return new a.y(j=>{const K=new b.w;return K.add(q.schedule(()=>{const L=d[A.L]();K.add(L.subscribe({next(w){K.add(q.schedule(()=>j.next(w)))},error(w){K.add(q.schedule(()=>j.error(w)))},complete(){K.add(q.schedule(()=>j.complete()))}}))})),K})}(d,q);if((0,m.t)(d))return function p(d,q){return new a.y(j=>{const K=new b.w;return K.add(q.schedule(()=>d.then(L=>{K.add(q.schedule(()=>{j.next(L),K.add(q.schedule(()=>j.complete()))}))},L=>{K.add(q.schedule(()=>j.error(L)))}))),K})}(d,q);if((0,_.z)(d))return(0,E.r)(d,q);if(function g(d){return d&&"function"==typeof d[f.hZ]}(d)||"string"==typeof d)return function c(d,q){if(!d)throw new Error("Iterable cannot be null");return new a.y(j=>{const K=new b.w;let L;return K.add(()=>{L&&"function"==typeof L.return&&L.return()}),K.add(q.schedule(()=>{L=d[f.hZ](),K.add(q.schedule(function(){if(j.closed)return;let w,k;try{const X=L.next();w=X.value,k=X.done}catch(X){return void j.error(X)}k?j.complete():(j.next(w),this.schedule())}))})),K})}(d,q)}throw new TypeError((null!==d&&typeof d||d)+" is not observable")}(d,q):d instanceof a.y?d:new a.y((0,r.s)(d))}},12594:(Qe,he,s)=>{"use strict";s.d(he,{n:()=>A});var a=s(54699),r=s(44947),b=s(65513);function A(D,p){return p?(0,b.r)(D,p):new a.y((0,r.V)(D))}},49016:(Qe,he,s)=>{"use strict";s.d(he,{R:()=>p});var a=s(54699),r=s(11280),b=s(38594),A=s(96124);function p(m,_,g,P){return(0,b.m)(g)&&(P=g,g=void 0),P?p(m,_,g).pipe((0,A.U)(U=>(0,r.k)(U)?P(...U):P(U))):new a.y(U=>{E(m,_,function d(q){U.next(arguments.length>1?Array.prototype.slice.call(arguments):q)},U,g)})}function E(m,_,g,P,U){let d;if(function C(m){return m&&"function"==typeof m.addEventListener&&"function"==typeof m.removeEventListener}(m)){const q=m;m.addEventListener(_,g,U),d=()=>q.removeEventListener(_,g,U)}else if(function c(m){return m&&"function"==typeof m.on&&"function"==typeof m.off}(m)){const q=m;m.on(_,g),d=()=>q.off(_,g)}else if(function f(m){return m&&"function"==typeof m.addListener&&"function"==typeof m.removeListener}(m)){const q=m;m.addListener(_,g),d=()=>q.removeListener(_,g)}else{if(!m||!m.length)throw new TypeError("Invalid event target");for(let q=0,j=m.length;q{"use strict";s.d(he,{T:()=>D});var a=s(54699),r=s(99759),b=s(87449),A=s(12594);function D(...p){let E=Number.POSITIVE_INFINITY,f=null,c=p[p.length-1];return(0,r.K)(c)?(f=p.pop(),p.length>1&&"number"==typeof p[p.length-1]&&(E=p.pop())):"number"==typeof c&&(E=p.pop()),null===f&&1===p.length&&p[0]instanceof a.y?p[0]:(0,b.J)(E)((0,A.n)(p,f))}},49870:(Qe,he,s)=>{"use strict";s.d(he,{C:()=>b});var a=s(54699),r=s(29918);const b=new a.y(r.Z)},49193:(Qe,he,s)=>{"use strict";s.d(he,{of:()=>A});var a=s(99759),r=s(12594),b=s(65513);function A(...D){let p=D[D.length-1];return(0,a.K)(p)?(D.pop(),(0,b.r)(D,p)):(0,r.n)(D)}},16222:(Qe,he,s)=>{"use strict";s.d(he,{_:()=>r});var a=s(54699);function r(A,D){return new a.y(D?p=>D.schedule(b,0,{error:A,subscriber:p}):p=>p.error(A))}function b({error:A,subscriber:D}){D.error(A)}},71928:(Qe,he,s)=>{"use strict";s.d(he,{H:()=>D});var a=s(54699),r=s(40435),b=s(66745),A=s(99759);function D(E=0,f,c){let C=-1;return(0,b.k)(f)?C=Number(f)<1?1:Number(f):(0,A.K)(f)&&(c=f),(0,A.K)(c)||(c=r.P),new a.y(m=>{const _=(0,b.k)(E)?E:+E-c.now();return c.schedule(p,_,{index:0,period:C,subscriber:m})})}function p(E){const{index:f,period:c,subscriber:C}=E;if(C.next(f),!C.closed){if(-1===c)return C.complete();E.index=f+1,this.schedule(E,c)}}},23433:(Qe,he,s)=>{"use strict";s.d(he,{e:()=>f});var a=s(40435),r=s(47279),b=s(6735);class D{constructor(C){this.durationSelector=C}call(C,m){return m.subscribe(new p(C,this.durationSelector))}}class p extends r.L{constructor(C,m){super(C),this.durationSelector=m,this.hasValue=!1}_next(C){if(this.value=C,this.hasValue=!0,!this.throttled){let m;try{const{durationSelector:g}=this;m=g(C)}catch(g){return this.destination.error(g)}const _=(0,b.D)(this,m);!_||_.closed?this.clearThrottle():this.add(this.throttled=_)}}clearThrottle(){const{value:C,hasValue:m,throttled:_}=this;_&&(this.remove(_),this.throttled=null,_.unsubscribe()),m&&(this.value=null,this.hasValue=!1,this.destination.next(C))}notifyNext(C,m,_,g){this.clearThrottle()}notifyComplete(){this.clearThrottle()}}var E=s(71928);function f(c,C=a.P){return function A(c){return function(m){return m.lift(new D(c))}}(()=>(0,E.H)(c,C))}},62413:(Qe,he,s)=>{"use strict";s.d(he,{K:()=>A});var a=s(47279),r=s(61250),b=s(6735);function A(E){return function(c){const C=new D(E),m=c.lift(C);return C.caught=m}}class D{constructor(f){this.selector=f}call(f,c){return c.subscribe(new p(f,this.selector,this.caught))}}class p extends a.L{constructor(f,c,C){super(f),this.selector=c,this.caught=C}error(f){if(!this.isStopped){let c;try{c=this.selector(f,this.caught)}catch(_){return void super.error(_)}this._unsubscribeAndRecycle();const C=new r.d(this,void 0,void 0);this.add(C);const m=(0,b.D)(this,c,void 0,void 0,C);m!==C&&this.add(m)}}}},59724:(Qe,he,s)=>{"use strict";s.d(he,{b:()=>r});var a=s(96743);function r(b,A){return(0,a.zg)(b,A,1)}},96776:(Qe,he,s)=>{"use strict";s.d(he,{b:()=>b});var a=s(40254),r=s(40435);function b(E,f=r.P){return c=>c.lift(new A(E,f))}class A{constructor(f,c){this.dueTime=f,this.scheduler=c}call(f,c){return c.subscribe(new D(f,this.dueTime,this.scheduler))}}class D extends a.L{constructor(f,c,C){super(f),this.dueTime=c,this.scheduler=C,this.debouncedSubscription=null,this.lastValue=null,this.hasValue=!1}_next(f){this.clearDebounce(),this.lastValue=f,this.hasValue=!0,this.add(this.debouncedSubscription=this.scheduler.schedule(p,this.dueTime,this))}_complete(){this.debouncedNext(),this.destination.complete()}debouncedNext(){if(this.clearDebounce(),this.hasValue){const{lastValue:f}=this;this.lastValue=null,this.hasValue=!1,this.destination.next(f)}}clearDebounce(){const f=this.debouncedSubscription;null!==f&&(this.remove(f),f.unsubscribe(),this.debouncedSubscription=null)}}function p(E){E.debouncedNext()}},7428:(Qe,he,s)=>{"use strict";s.d(he,{d:()=>r});var a=s(40254);function r(D=null){return p=>p.lift(new b(D))}class b{constructor(p){this.defaultValue=p}call(p,E){return E.subscribe(new A(p,this.defaultValue))}}class A extends a.L{constructor(p,E){super(p),this.defaultValue=E,this.isEmpty=!0}_next(p){this.isEmpty=!1,this.destination.next(p)}_complete(){this.isEmpty&&this.destination.next(this.defaultValue),this.destination.complete()}}},29384:(Qe,he,s)=>{"use strict";s.d(he,{g:()=>D});var a=s(40435),b=s(40254),A=s(56979);function D(c,C=a.P){const _=function r(c){return c instanceof Date&&!isNaN(+c)}(c)?+c-C.now():Math.abs(c);return g=>g.lift(new p(_,C))}class p{constructor(C,m){this.delay=C,this.scheduler=m}call(C,m){return m.subscribe(new E(C,this.delay,this.scheduler))}}class E extends b.L{constructor(C,m,_){super(C),this.delay=m,this.scheduler=_,this.queue=[],this.active=!1,this.errored=!1}static dispatch(C){const m=C.source,_=m.queue,g=C.scheduler,P=C.destination;for(;_.length>0&&_[0].time-g.now()<=0;)_.shift().notification.observe(P);if(_.length>0){const U=Math.max(0,_[0].time-g.now());this.schedule(C,U)}else this.unsubscribe(),m.active=!1}_schedule(C){this.active=!0,this.destination.add(C.schedule(E.dispatch,this.delay,{source:this,destination:this.destination,scheduler:C}))}scheduleNotification(C){if(!0===this.errored)return;const m=this.scheduler,_=new f(m.now()+this.delay,C);this.queue.push(_),!1===this.active&&this._schedule(m)}_next(C){this.scheduleNotification(A.P.createNext(C))}_error(C){this.errored=!0,this.queue=[],this.destination.error(C),this.unsubscribe()}_complete(){this.scheduleNotification(A.P.createComplete()),this.unsubscribe()}}class f{constructor(C,m){this.time=C,this.notification=m}}},32068:(Qe,he,s)=>{"use strict";s.d(he,{x:()=>r});var a=s(40254);function r(D,p){return E=>E.lift(new b(D,p))}class b{constructor(p,E){this.compare=p,this.keySelector=E}call(p,E){return E.subscribe(new A(p,this.compare,this.keySelector))}}class A extends a.L{constructor(p,E,f){super(p),this.keySelector=f,this.hasKey=!1,"function"==typeof E&&(this.compare=E)}compare(p,E){return p===E}_next(p){let E;try{const{keySelector:c}=this;E=c?c(p):p}catch(c){return this.destination.error(c)}let f=!1;if(this.hasKey)try{const{compare:c}=this;f=c(this.key,E)}catch(c){return this.destination.error(c)}else this.hasKey=!0;f||(this.key=E,this.destination.next(p))}}},97734:(Qe,he,s)=>{"use strict";s.d(he,{h:()=>r});var a=s(40254);function r(D,p){return function(f){return f.lift(new b(D,p))}}class b{constructor(p,E){this.predicate=p,this.thisArg=E}call(p,E){return E.subscribe(new A(p,this.predicate,this.thisArg))}}class A extends a.L{constructor(p,E,f){super(p),this.predicate=E,this.thisArg=f,this.count=0}_next(p){let E;try{E=this.predicate.call(this.thisArg,p,this.count++)}catch(f){return void this.destination.error(f)}E&&this.destination.next(p)}}},11541:(Qe,he,s)=>{"use strict";s.d(he,{x:()=>b});var a=s(40254),r=s(7902);function b(p){return E=>E.lift(new A(p))}class A{constructor(E){this.callback=E}call(E,f){return f.subscribe(new D(E,this.callback))}}class D extends a.L{constructor(E,f){super(E),this.add(new r.w(f))}}},88419:(Qe,he,s)=>{"use strict";s.d(he,{P:()=>E});var a=s(79319),r=s(97734),b=s(51418),A=s(7428),D=s(38698),p=s(60158);function E(f,c){const C=arguments.length>=2;return m=>m.pipe(f?(0,r.h)((_,g)=>f(_,g,m)):p.y,(0,b.q)(1),C?(0,A.d)(c):(0,D.T)(()=>new a.K))}},70959:(Qe,he,s)=>{"use strict";s.d(he,{Z:()=>E});var a=s(79319),r=s(97734),b=s(74599),A=s(38698),D=s(7428),p=s(60158);function E(f,c){const C=arguments.length>=2;return m=>m.pipe(f?(0,r.h)((_,g)=>f(_,g,m)):p.y,(0,b.h)(1),C?(0,D.d)(c):(0,A.T)(()=>new a.K))}},96124:(Qe,he,s)=>{"use strict";s.d(he,{U:()=>r});var a=s(40254);function r(D,p){return function(f){if("function"!=typeof D)throw new TypeError("argument is not a function. Are you looking for `mapTo()`?");return f.lift(new b(D,p))}}class b{constructor(p,E){this.project=p,this.thisArg=E}call(p,E){return E.subscribe(new A(p,this.project,this.thisArg))}}class A extends a.L{constructor(p,E,f){super(p),this.project=E,this.count=0,this.thisArg=f||this}_next(p){let E;try{E=this.project.call(this.thisArg,p,this.count++)}catch(f){return void this.destination.error(f)}this.destination.next(E)}}},87449:(Qe,he,s)=>{"use strict";s.d(he,{J:()=>b});var a=s(96743),r=s(60158);function b(A=Number.POSITIVE_INFINITY){return(0,a.zg)(r.y,A)}},96743:(Qe,he,s)=>{"use strict";s.d(he,{zg:()=>p});var a=s(6735),r=s(47279),b=s(61250),A=s(96124),D=s(5253);function p(c,C,m=Number.POSITIVE_INFINITY){return"function"==typeof C?_=>_.pipe(p((g,P)=>(0,D.D)(c(g,P)).pipe((0,A.U)((U,d)=>C(g,U,P,d))),m)):("number"==typeof C&&(m=C),_=>_.lift(new E(c,m)))}class E{constructor(C,m=Number.POSITIVE_INFINITY){this.project=C,this.concurrent=m}call(C,m){return m.subscribe(new f(C,this.project,this.concurrent))}}class f extends r.L{constructor(C,m,_=Number.POSITIVE_INFINITY){super(C),this.project=m,this.concurrent=_,this.hasCompleted=!1,this.buffer=[],this.active=0,this.index=0}_next(C){this.active0?this._next(m.shift()):0===this.active&&this.hasCompleted&&this.destination.complete()}}},82851:(Qe,he,s)=>{"use strict";s.d(he,{x:()=>r});var a=s(40254);function r(){return function(p){return p.lift(new b(p))}}class b{constructor(p){this.connectable=p}call(p,E){const{connectable:f}=this;f._refCount++;const c=new A(p,f),C=E.subscribe(c);return c.closed||(c.connection=f.connect()),C}}class A extends a.L{constructor(p,E){super(p),this.connectable=E}_unsubscribe(){const{connectable:p}=this;if(!p)return void(this.connection=null);this.connectable=null;const E=p._refCount;if(E<=0)return void(this.connection=null);if(p._refCount=E-1,E>1)return void(this.connection=null);const{connection:f}=this,c=p._connection;this.connection=null,c&&(!f||c===f)&&c.unsubscribe()}}},76406:(Qe,he,s)=>{"use strict";s.d(he,{X:()=>r});var a=s(40254);function r(D=-1){return p=>p.lift(new b(D,p))}class b{constructor(p,E){this.count=p,this.source=E}call(p,E){return E.subscribe(new A(p,this.count,this.source))}}class A extends a.L{constructor(p,E,f){super(p),this.count=E,this.source=f}error(p){if(!this.isStopped){const{source:E,count:f}=this;if(0===f)return super.error(p);f>-1&&(this.count=f-1),E.subscribe(this._unsubscribeAndRecycle())}}}},25705:(Qe,he,s)=>{"use strict";s.d(he,{B:()=>E});var a=s(44247);class b{constructor(c,C){this.subjectFactory=c,this.selector=C}call(c,C){const{selector:m}=this,_=this.subjectFactory(),g=m(_).subscribe(c);return g.add(C.subscribe(_)),g}}var A=s(82851),D=s(72079);function p(){return new D.xQ}function E(){return f=>(0,A.x)()(function r(f,c){return function(m){let _;if(_="function"==typeof f?f:function(){return f},"function"==typeof c)return m.lift(new b(_,c));const g=Object.create(m,a.N);return g.source=m,g.subjectFactory=_,g}}(p)(f))}},24521:(Qe,he,s)=>{"use strict";s.d(he,{T:()=>r});var a=s(40254);function r(D){return p=>p.lift(new b(D))}class b{constructor(p){this.total=p}call(p,E){return E.subscribe(new A(p,this.total))}}class A extends a.L{constructor(p,E){super(p),this.total=E,this.count=0}_next(p){++this.count>this.total&&this.destination.next(p)}}},53075:(Qe,he,s)=>{"use strict";s.d(he,{O:()=>b});var a=s(93990),r=s(99759);function b(...A){const D=A[A.length-1];return(0,r.K)(D)?(A.pop(),p=>(0,a.z)(A,p,D)):p=>(0,a.z)(A,p)}},75222:(Qe,he,s)=>{"use strict";s.d(he,{w:()=>p});var a=s(47279),r=s(61250),b=s(6735),A=s(96124),D=s(5253);function p(c,C){return"function"==typeof C?m=>m.pipe(p((_,g)=>(0,D.D)(c(_,g)).pipe((0,A.U)((P,U)=>C(_,P,g,U))))):m=>m.lift(new E(c))}class E{constructor(C){this.project=C}call(C,m){return m.subscribe(new f(C,this.project))}}class f extends a.L{constructor(C,m){super(C),this.project=m,this.index=0}_next(C){let m;const _=this.index++;try{m=this.project(C,_)}catch(g){return void this.destination.error(g)}this._innerSub(m,C,_)}_innerSub(C,m,_){const g=this.innerSubscription;g&&g.unsubscribe();const P=new r.d(this,m,_),U=this.destination;U.add(P),this.innerSubscription=(0,b.D)(this,C,void 0,void 0,P),this.innerSubscription!==P&&U.add(this.innerSubscription)}_complete(){const{innerSubscription:C}=this;(!C||C.closed)&&super._complete(),this.unsubscribe()}_unsubscribe(){this.innerSubscription=null}notifyComplete(C){this.destination.remove(C),this.innerSubscription=null,this.isStopped&&super._complete()}notifyNext(C,m,_,g,P){this.destination.next(m)}}},51418:(Qe,he,s)=>{"use strict";s.d(he,{q:()=>A});var a=s(40254),r=s(96310),b=s(91226);function A(E){return f=>0===E?(0,b.c)():f.lift(new D(E))}class D{constructor(f){if(this.total=f,this.total<0)throw new r.W}call(f,c){return c.subscribe(new p(f,this.total))}}class p extends a.L{constructor(f,c){super(f),this.total=c,this.count=0}_next(f){const c=this.total,C=++this.count;C<=c&&(this.destination.next(f),C===c&&(this.destination.complete(),this.unsubscribe()))}}},74599:(Qe,he,s)=>{"use strict";s.d(he,{h:()=>A});var a=s(40254),r=s(96310),b=s(91226);function A(E){return function(c){return 0===E?(0,b.c)():c.lift(new D(E))}}class D{constructor(f){if(this.total=f,this.total<0)throw new r.W}call(f,c){return c.subscribe(new p(f,this.total))}}class p extends a.L{constructor(f,c){super(f),this.total=c,this.ring=new Array,this.count=0}_next(f){const c=this.ring,C=this.total,m=this.count++;c.length0){const C=this.count>=this.total?this.total:this.count,m=this.ring;for(let _=0;_{"use strict";s.d(he,{R:()=>b});var a=s(47279),r=s(6735);function b(p){return E=>E.lift(new A(p))}class A{constructor(E){this.notifier=E}call(E,f){const c=new D(E),C=(0,r.D)(c,this.notifier);return C&&!c.seenValue?(c.add(C),f.subscribe(c)):c}}class D extends a.L{constructor(E){super(E),this.seenValue=!1}notifyNext(E,f,c,C,m){this.seenValue=!0,this.complete()}notifyComplete(){}}},17927:(Qe,he,s)=>{"use strict";s.d(he,{b:()=>A});var a=s(40254),r=s(29918),b=s(38594);function A(E,f,c){return function(m){return m.lift(new D(E,f,c))}}class D{constructor(f,c,C){this.nextOrObserver=f,this.error=c,this.complete=C}call(f,c){return c.subscribe(new p(f,this.nextOrObserver,this.error,this.complete))}}class p extends a.L{constructor(f,c,C,m){super(f),this._tapNext=r.Z,this._tapError=r.Z,this._tapComplete=r.Z,this._tapError=C||r.Z,this._tapComplete=m||r.Z,(0,b.m)(c)?(this._context=this,this._tapNext=c):c&&(this._context=c,this._tapNext=c.next||r.Z,this._tapError=c.error||r.Z,this._tapComplete=c.complete||r.Z)}_next(f){try{this._tapNext.call(this._context,f)}catch(c){return void this.destination.error(c)}this.destination.next(f)}_error(f){try{this._tapError.call(this._context,f)}catch(c){return void this.destination.error(c)}this.destination.error(f)}_complete(){try{this._tapComplete.call(this._context)}catch(f){return void this.destination.error(f)}return this.destination.complete()}}},38698:(Qe,he,s)=>{"use strict";s.d(he,{T:()=>b});var a=s(79319),r=s(40254);function b(E=p){return f=>f.lift(new A(E))}class A{constructor(f){this.errorFactory=f}call(f,c){return c.subscribe(new D(f,this.errorFactory))}}class D extends r.L{constructor(f,c){super(f),this.errorFactory=c,this.hasValue=!1}_next(f){this.hasValue=!0,this.destination.next(f)}_complete(){if(this.hasValue)return this.destination.complete();{let f;try{f=this.errorFactory()}catch(c){f=c}this.destination.error(f)}}}function p(){return new a.K}},65513:(Qe,he,s)=>{"use strict";s.d(he,{r:()=>b});var a=s(54699),r=s(7902);function b(A,D){return new a.y(p=>{const E=new r.w;let f=0;return E.add(D.schedule(function(){f!==A.length?(p.next(A[f++]),p.closed||E.add(this.schedule())):p.complete()})),E})}},61618:(Qe,he,s)=>{"use strict";s.d(he,{o:()=>b});var a=s(7902);class r extends a.w{constructor(D,p){super()}schedule(D,p=0){return this}}class b extends r{constructor(D,p){super(D,p),this.scheduler=D,this.work=p,this.pending=!1}schedule(D,p=0){if(this.closed)return this;this.state=D;const E=this.id,f=this.scheduler;return null!=E&&(this.id=this.recycleAsyncId(f,E,p)),this.pending=!0,this.delay=p,this.id=this.id||this.requestAsyncId(f,this.id,p),this}requestAsyncId(D,p,E=0){return setInterval(D.flush.bind(D,this),E)}recycleAsyncId(D,p,E=0){if(null!==E&&this.delay===E&&!1===this.pending)return p;clearInterval(p)}execute(D,p){if(this.closed)return new Error("executing a cancelled action");this.pending=!1;const E=this._execute(D,p);if(E)return E;!1===this.pending&&null!=this.id&&(this.id=this.recycleAsyncId(this.scheduler,this.id,null))}_execute(D,p){let f,E=!1;try{this.work(D)}catch(c){E=!0,f=!!c&&c||new Error(c)}if(E)return this.unsubscribe(),f}_unsubscribe(){const D=this.id,p=this.scheduler,E=p.actions,f=E.indexOf(this);this.work=null,this.state=null,this.pending=!1,this.scheduler=null,-1!==f&&E.splice(f,1),null!=D&&(this.id=this.recycleAsyncId(p,D,null)),this.delay=null}}},91781:(Qe,he,s)=>{"use strict";s.d(he,{v:()=>r});let a=(()=>{class b{constructor(D,p=b.now){this.SchedulerAction=D,this.now=p}schedule(D,p=0,E){return new this.SchedulerAction(this,D).schedule(E,p)}}return b.now=()=>Date.now(),b})();class r extends a{constructor(A,D=a.now){super(A,()=>r.delegate&&r.delegate!==this?r.delegate.now():D()),this.actions=[],this.active=!1,this.scheduled=void 0}schedule(A,D=0,p){return r.delegate&&r.delegate!==this?r.delegate.schedule(A,D,p):super.schedule(A,D,p)}flush(A){const{actions:D}=this;if(this.active)return void D.push(A);let p;this.active=!0;do{if(p=A.execute(A.state,A.delay))break}while(A=D.shift());if(this.active=!1,p){for(;A=D.shift();)A.unsubscribe();throw p}}}},73944:(Qe,he,s)=>{"use strict";s.d(he,{r:()=>D});var a=s(61618),b=s(91781);const D=new class A extends b.v{flush(E){this.active=!0,this.scheduled=void 0;const{actions:f}=this;let c,C=-1,m=f.length;E=E||f.shift();do{if(c=E.execute(E.state,E.delay))break}while(++C0?super.requestAsyncId(E,f,c):(E.actions.push(this),E.scheduled||(E.scheduled=requestAnimationFrame(()=>E.flush(null))))}recycleAsyncId(E,f,c=0){if(null!==c&&c>0||null===c&&this.delay>0)return super.recycleAsyncId(E,f,c);0===E.actions.length&&(cancelAnimationFrame(f),E.scheduled=void 0)}})},17024:(Qe,he,s)=>{"use strict";s.d(he,{e:()=>m});let a=1;const r=Promise.resolve(),b={};function A(_){return _ in b&&(delete b[_],!0)}const D={setImmediate(_){const g=a++;return b[g]=!0,r.then(()=>A(g)&&_()),g},clearImmediate(_){A(_)}};var E=s(61618),c=s(91781);const m=new class C extends c.v{flush(g){this.active=!0,this.scheduled=void 0;const{actions:P}=this;let U,d=-1,q=P.length;g=g||P.shift();do{if(U=g.execute(g.state,g.delay))break}while(++d0?super.requestAsyncId(g,P,U):(g.actions.push(this),g.scheduled||(g.scheduled=D.setImmediate(g.flush.bind(g,null))))}recycleAsyncId(g,P,U=0){if(null!==U&&U>0||null===U&&this.delay>0)return super.recycleAsyncId(g,P,U);0===g.actions.length&&(D.clearImmediate(P),g.scheduled=void 0)}})},40435:(Qe,he,s)=>{"use strict";s.d(he,{P:()=>b});var a=s(61618);const b=new(s(91781).v)(a.o)},96258:(Qe,he,s)=>{"use strict";s.d(he,{hZ:()=>r});const r=function a(){return"function"==typeof Symbol&&Symbol.iterator?Symbol.iterator:"@@iterator"}()},92677:(Qe,he,s)=>{"use strict";s.d(he,{L:()=>a});const a="function"==typeof Symbol&&Symbol.observable||"@@observable"},55297:(Qe,he,s)=>{"use strict";s.d(he,{b:()=>a});const a="function"==typeof Symbol?Symbol("rxSubscriber"):"@@rxSubscriber_"+Math.random()},96310:(Qe,he,s)=>{"use strict";s.d(he,{W:()=>r});const r=(()=>{function b(){return Error.call(this),this.message="argument out of range",this.name="ArgumentOutOfRangeError",this}return b.prototype=Object.create(Error.prototype),b})()},79319:(Qe,he,s)=>{"use strict";s.d(he,{K:()=>r});const r=(()=>{function b(){return Error.call(this),this.message="no elements in sequence",this.name="EmptyError",this}return b.prototype=Object.create(Error.prototype),b})()},6229:(Qe,he,s)=>{"use strict";s.d(he,{N:()=>r});const r=(()=>{function b(){return Error.call(this),this.message="object unsubscribed",this.name="ObjectUnsubscribedError",this}return b.prototype=Object.create(Error.prototype),b})()},13510:(Qe,he,s)=>{"use strict";function a(r){setTimeout(()=>{throw r},0)}s.d(he,{z:()=>a})},60158:(Qe,he,s)=>{"use strict";function a(r){return r}s.d(he,{y:()=>a})},11280:(Qe,he,s)=>{"use strict";s.d(he,{k:()=>a});const a=Array.isArray||(r=>r&&"number"==typeof r.length)},9990:(Qe,he,s)=>{"use strict";s.d(he,{z:()=>a});const a=r=>r&&"number"==typeof r.length&&"function"!=typeof r},38594:(Qe,he,s)=>{"use strict";function a(r){return"function"==typeof r}s.d(he,{m:()=>a})},66745:(Qe,he,s)=>{"use strict";s.d(he,{k:()=>r});var a=s(11280);function r(b){return!(0,a.k)(b)&&b-parseFloat(b)+1>=0}},37755:(Qe,he,s)=>{"use strict";function a(r){return null!==r&&"object"==typeof r}s.d(he,{K:()=>a})},95363:(Qe,he,s)=>{"use strict";s.d(he,{b:()=>r});var a=s(54699);function r(b){return!!b&&(b instanceof a.y||"function"==typeof b.lift&&"function"==typeof b.subscribe)}},36007:(Qe,he,s)=>{"use strict";function a(r){return!!r&&"function"!=typeof r.subscribe&&"function"==typeof r.then}s.d(he,{t:()=>a})},99759:(Qe,he,s)=>{"use strict";function a(r){return r&&"function"==typeof r.schedule}s.d(he,{K:()=>a})},29918:(Qe,he,s)=>{"use strict";function a(){}s.d(he,{Z:()=>a})},54813:(Qe,he,s)=>{"use strict";s.d(he,{U:()=>b,z:()=>r});var a=s(60158);function r(...A){return b(A)}function b(A){return 0===A.length?a.y:1===A.length?A[0]:function(p){return A.reduce((E,f)=>f(E),p)}}},74372:(Qe,he,s)=>{"use strict";s.d(he,{s:()=>m});var a=s(44947),r=s(13510),A=s(96258),p=s(92677),f=s(9990),c=s(36007),C=s(37755);const m=_=>{if(_&&"function"==typeof _[p.L])return(_=>g=>{const P=_[p.L]();if("function"!=typeof P.subscribe)throw new TypeError("Provided object does not correctly implement Symbol.observable");return P.subscribe(g)})(_);if((0,f.z)(_))return(0,a.V)(_);if((0,c.t)(_))return(_=>g=>(_.then(P=>{g.closed||(g.next(P),g.complete())},P=>g.error(P)).then(null,r.z),g))(_);if(_&&"function"==typeof _[A.hZ])return(_=>g=>{const P=_[A.hZ]();for(;;){const U=P.next();if(U.done){g.complete();break}if(g.next(U.value),g.closed)break}return"function"==typeof P.return&&g.add(()=>{P.return&&P.return()}),g})(_);{const P=`You provided ${(0,C.K)(_)?"an invalid object":`'${_}'`} where a stream was expected. You can provide an Observable, Promise, Array, or Iterable.`;throw new TypeError(P)}}},44947:(Qe,he,s)=>{"use strict";s.d(he,{V:()=>a});const a=r=>b=>{for(let A=0,D=r.length;A{"use strict";s.d(he,{D:()=>A});var a=s(61250),r=s(74372),b=s(54699);function A(D,p,E,f,c=new a.d(D,E,f)){if(!c.closed)return p instanceof b.y?p.subscribe(c):(0,r.s)(p)(c)}},9528:(Qe,he,s)=>{!function(a){a.parser=function(_e,H){return new b(_e,H)},a.SAXParser=b,a.SAXStream=C,a.createStream=function c(_e,H){return new C(_e,H)},a.MAX_BUFFER_LENGTH=65536;var E,r=["comment","sgmlDecl","textNode","tagName","doctype","procInstName","procInstBody","entity","attribName","attribValue","cdata","script"];function b(_e,H){if(!(this instanceof b))return new b(_e,H);var Te=this;(function D(_e){for(var H=0,Te=r.length;H"===Me?($e(H,"onsgmldeclaration",H.sgmlDecl),H.sgmlDecl="",H.state=re.TEXT):(w(Me)&&(H.state=re.SGML_DECL_QUOTED),H.sgmlDecl+=Me);continue;case re.SGML_DECL_QUOTED:Me===H.q&&(H.state=re.SGML_DECL,H.q=""),H.sgmlDecl+=Me;continue;case re.DOCTYPE:">"===Me?(H.state=re.TEXT,$e(H,"ondoctype",H.doctype),H.doctype=!0):(H.doctype+=Me,"["===Me?H.state=re.DOCTYPE_DTD:w(Me)&&(H.state=re.DOCTYPE_QUOTED,H.q=Me));continue;case re.DOCTYPE_QUOTED:H.doctype+=Me,Me===H.q&&(H.q="",H.state=re.DOCTYPE);continue;case re.DOCTYPE_DTD:H.doctype+=Me,"]"===Me?H.state=re.DOCTYPE:w(Me)&&(H.state=re.DOCTYPE_DTD_QUOTED,H.q=Me);continue;case re.DOCTYPE_DTD_QUOTED:H.doctype+=Me,Me===H.q&&(H.state=re.DOCTYPE_DTD,H.q="");continue;case re.COMMENT:"-"===Me?H.state=re.COMMENT_ENDING:H.comment+=Me;continue;case re.COMMENT_ENDING:"-"===Me?(H.state=re.COMMENT_ENDED,H.comment=qe(H.opt,H.comment),H.comment&&$e(H,"oncomment",H.comment),H.comment=""):(H.comment+="-"+Me,H.state=re.COMMENT);continue;case re.COMMENT_ENDED:">"!==Me?(tt(H,"Malformed comment"),H.comment+="--"+Me,H.state=re.COMMENT):H.state=re.TEXT;continue;case re.CDATA:"]"===Me?H.state=re.CDATA_ENDING:H.cdata+=Me;continue;case re.CDATA_ENDING:"]"===Me?H.state=re.CDATA_ENDING_2:(H.cdata+="]"+Me,H.state=re.CDATA);continue;case re.CDATA_ENDING_2:">"===Me?(H.cdata&&$e(H,"oncdata",H.cdata),$e(H,"onclosecdata"),H.cdata="",H.state=re.TEXT):"]"===Me?H.cdata+="]":(H.cdata+="]]"+Me,H.state=re.CDATA);continue;case re.PROC_INST:"?"===Me?H.state=re.PROC_INST_ENDING:L(Me)?H.state=re.PROC_INST_BODY:H.procInstName+=Me;continue;case re.PROC_INST_BODY:if(!H.procInstBody&&L(Me))continue;"?"===Me?H.state=re.PROC_INST_ENDING:H.procInstBody+=Me;continue;case re.PROC_INST_ENDING:">"===Me?($e(H,"onprocessinginstruction",{name:H.procInstName,body:H.procInstBody}),H.procInstName=H.procInstBody="",H.state=re.TEXT):(H.procInstBody+="?"+Me,H.state=re.PROC_INST_BODY);continue;case re.OPEN_TAG:X(q,Me)?H.tagName+=Me:(_t(H),">"===Me?ot(H):"/"===Me?H.state=re.OPEN_TAG_SLASH:(L(Me)||tt(H,"Invalid character in tag name"),H.state=re.ATTRIB));continue;case re.OPEN_TAG_SLASH:">"===Me?(ot(H,!0),Ct(H)):(tt(H,"Forward-slash in opening tag not followed by >"),H.state=re.ATTRIB);continue;case re.ATTRIB:if(L(Me))continue;">"===Me?ot(H):"/"===Me?H.state=re.OPEN_TAG_SLASH:X(d,Me)?(H.attribName=Me,H.attribValue="",H.state=re.ATTRIB_NAME):tt(H,"Invalid attribute name");continue;case re.ATTRIB_NAME:"="===Me?H.state=re.ATTRIB_VALUE:">"===Me?(tt(H,"Attribute without value"),H.attribValue=H.attribName,Ze(H),ot(H)):L(Me)?H.state=re.ATTRIB_NAME_SAW_WHITE:X(q,Me)?H.attribName+=Me:tt(H,"Invalid attribute name");continue;case re.ATTRIB_NAME_SAW_WHITE:if("="===Me)H.state=re.ATTRIB_VALUE;else{if(L(Me))continue;tt(H,"Attribute without value"),H.tag.attributes[H.attribName]="",H.attribValue="",$e(H,"onattribute",{name:H.attribName,value:""}),H.attribName="",">"===Me?ot(H):X(d,Me)?(H.attribName=Me,H.state=re.ATTRIB_NAME):(tt(H,"Invalid attribute name"),H.state=re.ATTRIB)}continue;case re.ATTRIB_VALUE:if(L(Me))continue;w(Me)?(H.q=Me,H.state=re.ATTRIB_VALUE_QUOTED):(tt(H,"Unquoted attribute value"),H.state=re.ATTRIB_VALUE_UNQUOTED,H.attribValue=Me);continue;case re.ATTRIB_VALUE_QUOTED:if(Me!==H.q){"&"===Me?H.state=re.ATTRIB_VALUE_ENTITY_Q:H.attribValue+=Me;continue}Ze(H),H.q="",H.state=re.ATTRIB_VALUE_CLOSED;continue;case re.ATTRIB_VALUE_CLOSED:L(Me)?H.state=re.ATTRIB:">"===Me?ot(H):"/"===Me?H.state=re.OPEN_TAG_SLASH:X(d,Me)?(tt(H,"No whitespace between attributes"),H.attribName=Me,H.attribValue="",H.state=re.ATTRIB_NAME):tt(H,"Invalid attribute name");continue;case re.ATTRIB_VALUE_UNQUOTED:if(!k(Me)){"&"===Me?H.state=re.ATTRIB_VALUE_ENTITY_U:H.attribValue+=Me;continue}Ze(H),">"===Me?ot(H):H.state=re.ATTRIB;continue;case re.CLOSE_TAG:if(H.tagName)">"===Me?Ct(H):X(q,Me)?H.tagName+=Me:H.script?(H.script+=""===Me?Ct(H):tt(H,"Invalid characters in closing tag");continue;case re.TEXT_ENTITY:case re.ATTRIB_VALUE_ENTITY_Q:case re.ATTRIB_VALUE_ENTITY_U:var Pt,Qt;switch(H.state){case re.TEXT_ENTITY:Pt=re.TEXT,Qt="textNode";break;case re.ATTRIB_VALUE_ENTITY_Q:Pt=re.ATTRIB_VALUE_QUOTED,Qt="attribValue";break;case re.ATTRIB_VALUE_ENTITY_U:Pt=re.ATTRIB_VALUE_UNQUOTED,Qt="attribValue"}if(";"===Me)if(H.opt.unparsedEntities){var cn=De(H);H.entity="",H.state=Pt,H.write(cn)}else H[Qt]+=De(H),H.entity="",H.state=Pt;else X(H.entity.length?K:j,Me)?H.entity+=Me:(tt(H,"Invalid character in entity name"),H[Qt]+="&"+H.entity+Me,H.entity="",H.state=Pt);continue;default:throw new Error(H,"Unknown state: "+H.state)}return H.position>=H.bufferCheckPosition&&function A(_e){for(var H=Math.max(a.MAX_BUFFER_LENGTH,10),Te=0,Me=0,Pe=r.length;MeH)switch(r[Me]){case"textNode":Je(_e);break;case"cdata":$e(_e,"oncdata",_e.cdata),_e.cdata="";break;case"script":$e(_e,"onscript",_e.script),_e.script="";break;default:it(_e,"Max buffer length exceeded: "+r[Me])}Te=Math.max(Te,dt)}_e.bufferCheckPosition=a.MAX_BUFFER_LENGTH-Te+_e.position}(H),H},resume:function(){return this.error=null,this},close:function(){return this.write(null)},flush:function(){!function p(_e){Je(_e),""!==_e.cdata&&($e(_e,"oncdata",_e.cdata),_e.cdata=""),""!==_e.script&&($e(_e,"onscript",_e.script),_e.script="")}(this)}};try{E=s(28270).Stream}catch{E=function(){}}E||(E=function(){});var f=a.EVENTS.filter(function(_e){return"error"!==_e&&"end"!==_e});function C(_e,H){if(!(this instanceof C))return new C(_e,H);E.apply(this),this._parser=new b(_e,H),this.writable=!0,this.readable=!0;var Te=this;this._parser.onend=function(){Te.emit("end")},this._parser.onerror=function(Me){Te.emit("error",Me),Te._parser.error=null},this._decoder=null,f.forEach(function(Me){Object.defineProperty(Te,"on"+Me,{get:function(){return Te._parser["on"+Me]},set:function(Pe){if(!Pe)return Te.removeAllListeners(Me),Te._parser["on"+Me]=Pe,Pe;Te.on(Me,Pe)},enumerable:!0,configurable:!1})})}(C.prototype=Object.create(E.prototype,{constructor:{value:C}})).write=function(_e){if("function"==typeof Buffer&&"function"==typeof Buffer.isBuffer&&Buffer.isBuffer(_e)){if(!this._decoder){var H=s(72024).s;this._decoder=new H("utf8")}_e=this._decoder.write(_e)}return this._parser.write(_e.toString()),this.emit("data",_e),!0},C.prototype.end=function(_e){return _e&&_e.length&&this.write(_e),this._parser.end(),!0},C.prototype.on=function(_e,H){var Te=this;return!Te._parser["on"+_e]&&-1!==f.indexOf(_e)&&(Te._parser["on"+_e]=function(){var Me=1===arguments.length?[arguments[0]]:Array.apply(null,arguments);Me.splice(0,0,_e),Te.emit.apply(Te,Me)}),E.prototype.on.call(Te,_e,H)};var m="[CDATA[",_="DOCTYPE",g="http://www.w3.org/XML/1998/namespace",P="http://www.w3.org/2000/xmlns/",U={xml:g,xmlns:P},d=/[:_A-Za-z\u00C0-\u00D6\u00D8-\u00F6\u00F8-\u02FF\u0370-\u037D\u037F-\u1FFF\u200C-\u200D\u2070-\u218F\u2C00-\u2FEF\u3001-\uD7FF\uF900-\uFDCF\uFDF0-\uFFFD]/,q=/[:_A-Za-z\u00C0-\u00D6\u00D8-\u00F6\u00F8-\u02FF\u0370-\u037D\u037F-\u1FFF\u200C-\u200D\u2070-\u218F\u2C00-\u2FEF\u3001-\uD7FF\uF900-\uFDCF\uFDF0-\uFFFD\u00B7\u0300-\u036F\u203F-\u2040.\d-]/,j=/[#:_A-Za-z\u00C0-\u00D6\u00D8-\u00F6\u00F8-\u02FF\u0370-\u037D\u037F-\u1FFF\u200C-\u200D\u2070-\u218F\u2C00-\u2FEF\u3001-\uD7FF\uF900-\uFDCF\uFDF0-\uFFFD]/,K=/[#:_A-Za-z\u00C0-\u00D6\u00D8-\u00F6\u00F8-\u02FF\u0370-\u037D\u037F-\u1FFF\u200C-\u200D\u2070-\u218F\u2C00-\u2FEF\u3001-\uD7FF\uF900-\uFDCF\uFDF0-\uFFFD\u00B7\u0300-\u036F\u203F-\u2040.\d-]/;function L(_e){return" "===_e||"\n"===_e||"\r"===_e||"\t"===_e}function w(_e){return'"'===_e||"'"===_e}function k(_e){return">"===_e||L(_e)}function X(_e,H){return _e.test(H)}function de(_e,H){return!X(_e,H)}var _e,H,Te,re=0;for(var be in a.STATE={BEGIN:re++,BEGIN_WHITESPACE:re++,TEXT:re++,TEXT_ENTITY:re++,OPEN_WAKA:re++,SGML_DECL:re++,SGML_DECL_QUOTED:re++,DOCTYPE:re++,DOCTYPE_QUOTED:re++,DOCTYPE_DTD:re++,DOCTYPE_DTD_QUOTED:re++,COMMENT_STARTING:re++,COMMENT:re++,COMMENT_ENDING:re++,COMMENT_ENDED:re++,CDATA:re++,CDATA_ENDING:re++,CDATA_ENDING_2:re++,PROC_INST:re++,PROC_INST_BODY:re++,PROC_INST_ENDING:re++,OPEN_TAG:re++,OPEN_TAG_SLASH:re++,ATTRIB:re++,ATTRIB_NAME:re++,ATTRIB_NAME_SAW_WHITE:re++,ATTRIB_VALUE:re++,ATTRIB_VALUE_QUOTED:re++,ATTRIB_VALUE_CLOSED:re++,ATTRIB_VALUE_UNQUOTED:re++,ATTRIB_VALUE_ENTITY_Q:re++,ATTRIB_VALUE_ENTITY_U:re++,CLOSE_TAG:re++,CLOSE_TAG_SAW_WHITE:re++,SCRIPT:re++,SCRIPT_ENDING:re++},a.XML_ENTITIES={amp:"&",gt:">",lt:"<",quot:'"',apos:"'"},a.ENTITIES={amp:"&",gt:">",lt:"<",quot:'"',apos:"'",AElig:198,Aacute:193,Acirc:194,Agrave:192,Aring:197,Atilde:195,Auml:196,Ccedil:199,ETH:208,Eacute:201,Ecirc:202,Egrave:200,Euml:203,Iacute:205,Icirc:206,Igrave:204,Iuml:207,Ntilde:209,Oacute:211,Ocirc:212,Ograve:210,Oslash:216,Otilde:213,Ouml:214,THORN:222,Uacute:218,Ucirc:219,Ugrave:217,Uuml:220,Yacute:221,aacute:225,acirc:226,aelig:230,agrave:224,aring:229,atilde:227,auml:228,ccedil:231,eacute:233,ecirc:234,egrave:232,eth:240,euml:235,iacute:237,icirc:238,igrave:236,iuml:239,ntilde:241,oacute:243,ocirc:244,ograve:242,oslash:248,otilde:245,ouml:246,szlig:223,thorn:254,uacute:250,ucirc:251,ugrave:249,uuml:252,yacute:253,yuml:255,copy:169,reg:174,nbsp:160,iexcl:161,cent:162,pound:163,curren:164,yen:165,brvbar:166,sect:167,uml:168,ordf:170,laquo:171,not:172,shy:173,macr:175,deg:176,plusmn:177,sup1:185,sup2:178,sup3:179,acute:180,micro:181,para:182,middot:183,cedil:184,ordm:186,raquo:187,frac14:188,frac12:189,frac34:190,iquest:191,times:215,divide:247,OElig:338,oelig:339,Scaron:352,scaron:353,Yuml:376,fnof:402,circ:710,tilde:732,Alpha:913,Beta:914,Gamma:915,Delta:916,Epsilon:917,Zeta:918,Eta:919,Theta:920,Iota:921,Kappa:922,Lambda:923,Mu:924,Nu:925,Xi:926,Omicron:927,Pi:928,Rho:929,Sigma:931,Tau:932,Upsilon:933,Phi:934,Chi:935,Psi:936,Omega:937,alpha:945,beta:946,gamma:947,delta:948,epsilon:949,zeta:950,eta:951,theta:952,iota:953,kappa:954,lambda:955,mu:956,nu:957,xi:958,omicron:959,pi:960,rho:961,sigmaf:962,sigma:963,tau:964,upsilon:965,phi:966,chi:967,psi:968,omega:969,thetasym:977,upsih:978,piv:982,ensp:8194,emsp:8195,thinsp:8201,zwnj:8204,zwj:8205,lrm:8206,rlm:8207,ndash:8211,mdash:8212,lsquo:8216,rsquo:8217,sbquo:8218,ldquo:8220,rdquo:8221,bdquo:8222,dagger:8224,Dagger:8225,bull:8226,hellip:8230,permil:8240,prime:8242,Prime:8243,lsaquo:8249,rsaquo:8250,oline:8254,frasl:8260,euro:8364,image:8465,weierp:8472,real:8476,trade:8482,alefsym:8501,larr:8592,uarr:8593,rarr:8594,darr:8595,harr:8596,crarr:8629,lArr:8656,uArr:8657,rArr:8658,dArr:8659,hArr:8660,forall:8704,part:8706,exist:8707,empty:8709,nabla:8711,isin:8712,notin:8713,ni:8715,prod:8719,sum:8721,minus:8722,lowast:8727,radic:8730,prop:8733,infin:8734,ang:8736,and:8743,or:8744,cap:8745,cup:8746,int:8747,there4:8756,sim:8764,cong:8773,asymp:8776,ne:8800,equiv:8801,le:8804,ge:8805,sub:8834,sup:8835,nsub:8836,sube:8838,supe:8839,oplus:8853,otimes:8855,perp:8869,sdot:8901,lceil:8968,rceil:8969,lfloor:8970,rfloor:8971,lang:9001,rang:9002,loz:9674,spades:9824,clubs:9827,hearts:9829,diams:9830},Object.keys(a.ENTITIES).forEach(function(_e){var H=a.ENTITIES[_e],Te="number"==typeof H?String.fromCharCode(H):H;a.ENTITIES[_e]=Te}),a.STATE)a.STATE[a.STATE[be]]=be;function pe(_e,H,Te){_e[H]&&_e[H](Te)}function $e(_e,H,Te){_e.textNode&&Je(_e),pe(_e,H,Te)}function Je(_e){_e.textNode=qe(_e.opt,_e.textNode),_e.textNode&&pe(_e,"ontext",_e.textNode),_e.textNode=""}function qe(_e,H){return _e.trim&&(H=H.trim()),_e.normalize&&(H=H.replace(/\s+/g," ")),H}function it(_e,H){return Je(_e),_e.trackPosition&&(H+="\nLine: "+_e.line+"\nColumn: "+_e.column+"\nChar: "+_e.c),H=new Error(H),_e.error=H,pe(_e,"onerror",H),_e}function rt(_e){return _e.sawRoot&&!_e.closedRoot&&tt(_e,"Unclosed root tag"),_e.state!==re.BEGIN&&_e.state!==re.BEGIN_WHITESPACE&&_e.state!==re.TEXT&&it(_e,"Unexpected end"),Je(_e),_e.c="",_e.closed=!0,pe(_e,"onend"),b.call(_e,_e.strict,_e.opt),_e}function tt(_e,H){if("object"!=typeof _e||!(_e instanceof b))throw new Error("bad call to strictFail");_e.strict&&it(_e,H)}function _t(_e){_e.strict||(_e.tagName=_e.tagName[_e.looseCase]());var H=_e.tags[_e.tags.length-1]||_e,Te=_e.tag={name:_e.tagName,attributes:{}};_e.opt.xmlns&&(Te.ns=H.ns),_e.attribList.length=0,$e(_e,"onopentagstart",Te)}function ze(_e,H){var Me=_e.indexOf(":")<0?["",_e]:_e.split(":"),Pe=Me[0],dt=Me[1];return H&&"xmlns"===_e&&(Pe="xmlns",dt=""),{prefix:Pe,local:dt}}function Ze(_e){if(_e.strict||(_e.attribName=_e.attribName[_e.looseCase]()),-1!==_e.attribList.indexOf(_e.attribName)||_e.tag.attributes.hasOwnProperty(_e.attribName))_e.attribName=_e.attribValue="";else{if(_e.opt.xmlns){var H=ze(_e.attribName,!0),Me=H.local;if("xmlns"===H.prefix)if("xml"===Me&&_e.attribValue!==g)tt(_e,"xml: prefix must be bound to "+g+"\nActual: "+_e.attribValue);else if("xmlns"===Me&&_e.attribValue!==P)tt(_e,"xmlns: prefix must be bound to "+P+"\nActual: "+_e.attribValue);else{var Pe=_e.tag,dt=_e.tags[_e.tags.length-1]||_e;Pe.ns===dt.ns&&(Pe.ns=Object.create(dt.ns)),Pe.ns[Me]=_e.attribValue}_e.attribList.push([_e.attribName,_e.attribValue])}else _e.tag.attributes[_e.attribName]=_e.attribValue,$e(_e,"onattribute",{name:_e.attribName,value:_e.attribValue});_e.attribName=_e.attribValue=""}}function ot(_e,H){if(_e.opt.xmlns){var Te=_e.tag,Me=ze(_e.tagName);Te.prefix=Me.prefix,Te.local=Me.local,Te.uri=Te.ns[Me.prefix]||"",Te.prefix&&!Te.uri&&(tt(_e,"Unbound namespace prefix: "+JSON.stringify(_e.tagName)),Te.uri=Me.prefix),Te.ns&&(_e.tags[_e.tags.length-1]||_e).ns!==Te.ns&&Object.keys(Te.ns).forEach(function(Bt){$e(_e,"onopennamespace",{prefix:Bt,uri:Te.ns[Bt]})});for(var dt=0,Pt=_e.attribList.length;dt",_e.tagName="",void(_e.state=re.SCRIPT);$e(_e,"onscript",_e.script),_e.script=""}var H=_e.tags.length,Te=_e.tagName;_e.strict||(Te=Te[_e.looseCase]());for(var Me=Te;H--&&_e.tags[H].name!==Me;)tt(_e,"Unexpected close tag");if(H<0)return tt(_e,"Unmatched closing tag: "+_e.tagName),_e.textNode+="",void(_e.state=re.TEXT);_e.tagName=Te;for(var dt=_e.tags.length;dt-->H;){var Pt=_e.tag=_e.tags.pop();_e.tagName=_e.tag.name,$e(_e,"onclosetag",_e.tagName);var Qt={};for(var cn in Pt.ns)Qt[cn]=Pt.ns[cn];_e.opt.xmlns&&Pt.ns!==(_e.tags[_e.tags.length-1]||_e).ns&&Object.keys(Pt.ns).forEach(function(ne){$e(_e,"onclosenamespace",{prefix:ne,uri:Pt.ns[ne]})})}0===H&&(_e.closedRoot=!0),_e.tagName=_e.attribValue=_e.attribName="",_e.attribList.length=0,_e.state=re.TEXT}function De(_e){var Me,H=_e.entity,Te=H.toLowerCase(),Pe="";return _e.ENTITIES[H]?_e.ENTITIES[H]:_e.ENTITIES[Te]?_e.ENTITIES[Te]:("#"===(H=Te).charAt(0)&&("x"===H.charAt(1)?(H=H.slice(2),Pe=(Me=parseInt(H,16)).toString(16)):(H=H.slice(1),Pe=(Me=parseInt(H,10)).toString(10))),H=H.replace(/^0+/,""),isNaN(Me)||Pe.toLowerCase()!==H?(tt(_e,"Invalid character entity"),"&"+_e.entity+";"):String.fromCodePoint(Me))}function ft(_e,H){"<"===H?(_e.state=re.OPEN_WAKA,_e.startTagPosition=_e.position):L(H)||(tt(_e,"Non-whitespace before first tag."),_e.textNode=H,_e.state=re.TEXT)}function st(_e,H){var Te="";return H<_e.length&&(Te=_e.charAt(H)),Te}re=a.STATE,String.fromCodePoint||(_e=String.fromCharCode,H=Math.floor,Te=function(){var Pe=[],Qt=-1,cn=arguments.length;if(!cn)return"";for(var Ie="";++Qt1114111||H(ne)!==ne)throw RangeError("Invalid code point: "+ne);ne<=65535?Pe.push(ne):Pe.push(55296+((ne-=65536)>>10),ne%1024+56320),(Qt+1===cn||Pe.length>16384)&&(Ie+=_e.apply(null,Pe),Pe.length=0)}return Ie},Object.defineProperty?Object.defineProperty(String,"fromCodePoint",{value:Te,configurable:!0,writable:!0}):String.fromCodePoint=Te)}(he)},28270:(Qe,he,s)=>{var a=s(35227);function r(){a.call(this)}r.prototype=new a,Qe.exports=r,r.Stream=r,r.prototype.pipe=function(b,A){var D=this;function p(g){b.writable&&!1===b.write(g)&&D.pause&&D.pause()}function E(){D.readable&&D.resume&&D.resume()}D.on("data",p),b.on("drain",E),!b._isStdio&&(!A||!1!==A.end)&&(D.on("end",c),D.on("close",C));var f=!1;function c(){f||(f=!0,b.end())}function C(){f||(f=!0,"function"==typeof b.destroy&&b.destroy())}function m(g){if(_(),!this.hasListeners("error"))throw g}function _(){D.off("data",p),b.off("drain",E),D.off("end",c),D.off("close",C),D.off("error",m),b.off("error",m),D.off("end",_),D.off("close",_),b.off("end",_),b.off("close",_)}return D.on("error",m),b.on("error",m),D.on("end",_),D.on("close",_),b.on("end",_),b.on("close",_),b.emit("pipe",D),b}},72024:(Qe,he,s)=>{"use strict";var a=s(54282).Buffer,r=a.isEncoding||function(j){switch((j=""+j)&&j.toLowerCase()){case"hex":case"utf8":case"utf-8":case"ascii":case"binary":case"base64":case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":case"raw":return!0;default:return!1}};function D(j){var K;switch(this.encoding=function A(j){var K=function b(j){if(!j)return"utf8";for(var K;;)switch(j){case"utf8":case"utf-8":return"utf8";case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return"utf16le";case"latin1":case"binary":return"latin1";case"base64":case"ascii":case"hex":return j;default:if(K)return;j=(""+j).toLowerCase(),K=!0}}(j);if("string"!=typeof K&&(a.isEncoding===r||!r(j)))throw new Error("Unknown encoding: "+j);return K||j}(j),this.encoding){case"utf16le":this.text=_,this.end=g,K=4;break;case"utf8":this.fillLast=c,K=4;break;case"base64":this.text=P,this.end=U,K=3;break;default:return this.write=d,void(this.end=q)}this.lastNeed=0,this.lastTotal=0,this.lastChar=a.allocUnsafe(K)}function p(j){return j<=127?0:j>>5==6?2:j>>4==14?3:j>>3==30?4:j>>6==2?-1:-2}function c(j){var K=this.lastTotal-this.lastNeed,L=function f(j,K,L){if(128!=(192&K[0]))return j.lastNeed=0,"\ufffd";if(j.lastNeed>1&&K.length>1){if(128!=(192&K[1]))return j.lastNeed=1,"\ufffd";if(j.lastNeed>2&&K.length>2&&128!=(192&K[2]))return j.lastNeed=2,"\ufffd"}}(this,j);return void 0!==L?L:this.lastNeed<=j.length?(j.copy(this.lastChar,K,0,this.lastNeed),this.lastChar.toString(this.encoding,0,this.lastTotal)):(j.copy(this.lastChar,K,0,j.length),void(this.lastNeed-=j.length))}function _(j,K){if((j.length-K)%2==0){var L=j.toString("utf16le",K);if(L){var w=L.charCodeAt(L.length-1);if(w>=55296&&w<=56319)return this.lastNeed=2,this.lastTotal=4,this.lastChar[0]=j[j.length-2],this.lastChar[1]=j[j.length-1],L.slice(0,-1)}return L}return this.lastNeed=1,this.lastTotal=2,this.lastChar[0]=j[j.length-1],j.toString("utf16le",K,j.length-1)}function g(j){var K=j&&j.length?this.write(j):"";return this.lastNeed?K+this.lastChar.toString("utf16le",0,this.lastTotal-this.lastNeed):K}function P(j,K){var L=(j.length-K)%3;return 0===L?j.toString("base64",K):(this.lastNeed=3-L,this.lastTotal=3,1===L?this.lastChar[0]=j[j.length-1]:(this.lastChar[0]=j[j.length-2],this.lastChar[1]=j[j.length-1]),j.toString("base64",K,j.length-L))}function U(j){var K=j&&j.length?this.write(j):"";return this.lastNeed?K+this.lastChar.toString("base64",0,3-this.lastNeed):K}function d(j){return j.toString(this.encoding)}function q(j){return j&&j.length?this.write(j):""}he.s=D,D.prototype.write=function(j){if(0===j.length)return"";var K,L;if(this.lastNeed){if(void 0===(K=this.fillLast(j)))return"";L=this.lastNeed,this.lastNeed=0}else L=0;return L=0?(k>0&&(j.lastNeed=k-1),k):--w=0?(k>0&&(j.lastNeed=k-2),k):--w=0?(k>0&&(2===k?k=0:j.lastNeed=k-3),k):0}(this,j,K);if(!this.lastNeed)return j.toString("utf8",K);this.lastTotal=L;var w=j.length-(L-this.lastNeed);return j.copy(this.lastChar,0,w),j.toString("utf8",K,w)},D.prototype.fillLast=function(j){if(this.lastNeed<=j.length)return j.copy(this.lastChar,this.lastTotal-this.lastNeed,0,this.lastNeed),this.lastChar.toString(this.encoding,0,this.lastTotal);j.copy(this.lastChar,this.lastTotal-this.lastNeed,0,j.length),this.lastNeed-=j.length}},54282:(Qe,he,s)=>{var a=s(39007),r=a.Buffer;function b(D,p){for(var E in D)p[E]=D[E]}function A(D,p,E){return r(D,p,E)}r.from&&r.alloc&&r.allocUnsafe&&r.allocUnsafeSlow?Qe.exports=a:(b(a,he),he.Buffer=A),b(r,A),A.from=function(D,p,E){if("number"==typeof D)throw new TypeError("Argument must not be a number");return r(D,p,E)},A.alloc=function(D,p,E){if("number"!=typeof D)throw new TypeError("Argument must be a number");var f=r(D);return void 0!==p?"string"==typeof E?f.fill(p,E):f.fill(p):f.fill(0),f},A.allocUnsafe=function(D){if("number"!=typeof D)throw new TypeError("Argument must be a number");return r(D)},A.allocUnsafeSlow=function(D){if("number"!=typeof D)throw new TypeError("Argument must be a number");return a.SlowBuffer(D)}},17564:(Qe,he)=>{var a={millisecond:1,second:1e3,minute:6e4,hour:36e5,day:864e5};for(var r in a)"millisecond"===r?a.ms=a[r]:a[r.charAt(0)]=a[r],a[r+"s"]=a[r];function b(p){this.count=0;var E=function D(p){var E=p.match(A);return E&&a[E[2]]?E.slice(1):null}(p);E&&(this.time=Number(E[0])*a[E[1]],this.type=E[1])}b.prototype.do=function(p){this.time&&(this.interval=setInterval(function f(){E.count++,p.call(E)},this.time));var E=this;return this},b.prototype.stop=function(){return this.interval&&(clearInterval(this.interval),delete this.interval),this};var A=/^\s*(\d+(?:\.\d+)?)\s*([a-z]+)\s*$/},78518:function(Qe,he){(function(){"use strict";he.stripBOM=function(s){return"\ufeff"===s[0]?s.substring(1):s}}).call(this)},62284:function(Qe,he,s){(function(){"use strict";var a,r,b,A,D,p={}.hasOwnProperty;a=s(22518),r=s(86082).defaults,A=function(E){return"string"==typeof E&&(E.indexOf("&")>=0||E.indexOf(">")>=0||E.indexOf("<")>=0)},D=function(E){return""},b=function(E){return E.replace("]]>","]]]]>")},he.Builder=function(){function E(f){var c,C;for(c in this.options={},C=r[.2])p.call(C,c)&&(this.options[c]=C[c]);for(c in f)p.call(f,c)&&(this.options[c]=f[c])}return E.prototype.buildObject=function(f){var c,C,m,_,g,P;return c=this.options.attrkey,C=this.options.charkey,1===Object.keys(f).length&&this.options.rootName===r[.2].rootName?f=f[g=Object.keys(f)[0]]:g=this.options.rootName,P=this,m=function(U,d){var q,j,K,L,w;if("object"!=typeof d)P.options.cdata&&A(d)?U.raw(D(d)):U.txt(d);else if(Array.isArray(d)){for(L in d)if(p.call(d,L))for(w in j=d[L])K=j[w],U=m(U.ele(w),K).up()}else for(w in d)if(p.call(d,w))if(j=d[w],w===c){if("object"==typeof j)for(q in j)U=U.att(q,j[q])}else if(w===C)U=P.options.cdata&&A(j)?U.raw(D(j)):U.txt(j);else if(Array.isArray(j))for(L in j)p.call(j,L)&&(U="string"==typeof(K=j[L])?P.options.cdata&&A(K)?U.ele(w).raw(D(K)).up():U.ele(w,K).up():m(U.ele(w),K).up());else"object"==typeof j?U=m(U.ele(w),j).up():"string"==typeof j&&P.options.cdata&&A(j)?U=U.ele(w).raw(D(j)).up():(null==j&&(j=""),U=U.ele(w,j.toString()).up());return U},_=a.create(g,this.options.xmldec,this.options.doctype,{headless:this.options.headless,allowSurrogateChars:this.options.allowSurrogateChars}),m(_,f).end(this.options.renderOpts)},E}()}).call(this)},86082:function(Qe,he){(function(){he.defaults={.1:{explicitCharkey:!1,trim:!0,normalize:!0,normalizeTags:!1,attrkey:"@",charkey:"#",explicitArray:!1,ignoreAttrs:!1,mergeAttrs:!1,explicitRoot:!1,validator:null,xmlns:!1,explicitChildren:!1,childkey:"@@",charsAsChildren:!1,includeWhiteChars:!1,async:!1,strict:!0,attrNameProcessors:null,attrValueProcessors:null,tagNameProcessors:null,valueProcessors:null,emptyTag:""},.2:{explicitCharkey:!1,trim:!1,normalize:!1,normalizeTags:!1,attrkey:"$",charkey:"_",explicitArray:!0,ignoreAttrs:!1,mergeAttrs:!1,explicitRoot:!0,validator:null,xmlns:!1,explicitChildren:!1,preserveChildrenOrder:!1,childkey:"$$",charsAsChildren:!1,includeWhiteChars:!1,async:!1,strict:!0,attrNameProcessors:null,attrValueProcessors:null,tagNameProcessors:null,valueProcessors:null,rootName:"root",xmldec:{version:"1.0",encoding:"UTF-8",standalone:!0},doctype:null,renderOpts:{pretty:!0,indent:" ",newline:"\n"},headless:!1,chunkSize:1e4,emptyTag:"",cdata:!1}}}).call(this)},87013:function(Qe,he,s){(function(){"use strict";var a,r,b,A,D,p,E,f,c=function(_,g){return function(){return _.apply(g,arguments)}},m={}.hasOwnProperty;E=s(9528),b=s(82016),a=s(78518),p=s(95350),f=s(17564).setImmediate,r=s(86082).defaults,A=function(_){return"object"==typeof _&&null!=_&&0===Object.keys(_).length},D=function(_,g,P){var U,d;for(U=0,d=_.length;U0&&(k[j.options.childkey]=de),de=k;return q.length>0?j.assignOrPush(pe,X,de):(j.options.explicitRoot&&(be=de,(de=Object.create(null))[X]=be),j.resultObject=de,j.saxParser.ended=!0,j.emit("end",j.resultObject))}}(this),d=function(j){return function(K){var L,w;if(w=q[q.length-1])return w[U]+=K,j.options.explicitChildren&&j.options.preserveChildrenOrder&&j.options.charsAsChildren&&(j.options.includeWhiteChars||""!==K.replace(/\\n/g,"").trim())&&(w[j.options.childkey]=w[j.options.childkey]||[],(L={"#name":"__text__"})[U]=K,j.options.normalize&&(L[U]=L[U].replace(/\s{2,}/g," ").trim()),w[j.options.childkey].push(L)),w}}(this),this.saxParser.ontext=d,this.saxParser.oncdata=function(K){var L;if(L=d(K))return L.cdata=!0}},g.prototype.parseString=function(P,U){var d;null!=U&&"function"==typeof U&&(this.on("end",function(q){return this.reset(),U(null,q)}),this.on("error",function(q){return this.reset(),U(q)}));try{return""===(P=P.toString()).trim()?(this.emit("end",null),!0):(P=a.stripBOM(P),this.options.async?(this.remaining=P,f(this.processAsync),this.saxParser):this.saxParser.write(P).close())}catch(q){if(d=q,!this.saxParser.errThrown&&!this.saxParser.ended)return this.emit("error",d),this.saxParser.errThrown=!0;if(this.saxParser.ended)throw d}},g.prototype.parseStringPromise=function(P){return new Promise((U=this,function(d,q){return U.parseString(P,function(j,K){return j?q(j):d(K)})}));var U},g}(b),he.parseString=function(_,g,P){var U,d;return null!=P?("function"==typeof P&&(U=P),"object"==typeof g&&(d=g)):("function"==typeof g&&(U=g),d={}),new he.Parser(d).parseString(_,U)},he.parseStringPromise=function(_,g){var P;return"object"==typeof g&&(P=g),new he.Parser(P).parseStringPromise(_)}}).call(this)},95350:function(Qe,he){(function(){"use strict";var s;s=new RegExp(/(?!xmlns)^.*:/),he.normalize=function(a){return a.toLowerCase()},he.firstCharLowerCase=function(a){return a.charAt(0).toLowerCase()+a.slice(1)},he.stripPrefix=function(a){return a.replace(s,"")},he.parseNumbers=function(a){return isNaN(a)||(a=a%1==0?parseInt(a,10):parseFloat(a)),a},he.parseBooleans=function(a){return/^(?:true|false)$/i.test(a)&&(a="true"===a.toLowerCase()),a}}).call(this)},99603:function(Qe,he,s){(function(){"use strict";var a,r,b,A,p={}.hasOwnProperty;r=s(86082),a=s(62284),b=s(87013),A=s(95350),he.defaults=r.defaults,he.processors=A,he.ValidationError=function(E){function f(c){this.message=c}return function(E,f){for(var c in f)p.call(f,c)&&(E[c]=f[c]);function C(){this.constructor=E}C.prototype=f.prototype,E.prototype=new C,E.__super__=f.prototype}(f,Error),f}(),he.Builder=a.Builder,he.Parser=b.Parser,he.parseString=b.parseString,he.parseStringPromise=b.parseStringPromise}).call(this)},22302:function(Qe){(function(){Qe.exports={Disconnected:1,Preceding:2,Following:4,Contains:8,ContainedBy:16,ImplementationSpecific:32}}).call(this)},47309:function(Qe){(function(){Qe.exports={Element:1,Attribute:2,Text:3,CData:4,EntityReference:5,EntityDeclaration:6,ProcessingInstruction:7,Comment:8,Document:9,DocType:10,DocumentFragment:11,NotationDeclaration:12,Declaration:201,Raw:202,AttributeDeclaration:203,ElementDeclaration:204,Dummy:205}}).call(this)},82249:function(Qe){(function(){var he,s,a,r,b,A,D,p=[].slice,E={}.hasOwnProperty;he=function(){var f,c,C,m,_,g;if(g=arguments[0],_=2<=arguments.length?p.call(arguments,1):[],b(Object.assign))Object.assign.apply(null,arguments);else for(f=0,C=_.length;f":"attribute: {"+D+"}, parent: <"+this.parent.name+">"},A.prototype.isEqualNode=function(D){return!(D.namespaceURI!==this.namespaceURI||D.prefix!==this.prefix||D.localName!==this.localName||D.value!==this.value)},A}()}).call(this)},94217:function(Qe,he,s){(function(){var a,b,D={}.hasOwnProperty;a=s(47309),b=s(27836),Qe.exports=function(p){function E(f,c){if(E.__super__.constructor.call(this,f),null==c)throw new Error("Missing CDATA text. "+this.debugInfo());this.name="#cdata-section",this.type=a.CData,this.value=this.stringify.cdata(c)}return function(p,E){for(var f in E)D.call(E,f)&&(p[f]=E[f]);function c(){this.constructor=p}c.prototype=E.prototype,p.prototype=new c,p.__super__=E.prototype}(E,p),E.prototype.clone=function(){return Object.create(this)},E.prototype.toString=function(f){return this.options.writer.cdata(this,this.options.writer.filterOptions(f))},E}(b)}).call(this)},27836:function(Qe,he,s){(function(){var r,A={}.hasOwnProperty;r=s(68921),Qe.exports=function(D){function p(E){p.__super__.constructor.call(this,E),this.value=""}return function(D,p){for(var E in p)A.call(p,E)&&(D[E]=p[E]);function f(){this.constructor=D}f.prototype=p.prototype,D.prototype=new f,D.__super__=p.prototype}(p,D),Object.defineProperty(p.prototype,"data",{get:function(){return this.value},set:function(E){return this.value=E||""}}),Object.defineProperty(p.prototype,"length",{get:function(){return this.value.length}}),Object.defineProperty(p.prototype,"textContent",{get:function(){return this.value},set:function(E){return this.value=E||""}}),p.prototype.clone=function(){return Object.create(this)},p.prototype.substringData=function(E,f){throw new Error("This DOM method is not implemented."+this.debugInfo())},p.prototype.appendData=function(E){throw new Error("This DOM method is not implemented."+this.debugInfo())},p.prototype.insertData=function(E,f){throw new Error("This DOM method is not implemented."+this.debugInfo())},p.prototype.deleteData=function(E,f){throw new Error("This DOM method is not implemented."+this.debugInfo())},p.prototype.replaceData=function(E,f,c){throw new Error("This DOM method is not implemented."+this.debugInfo())},p.prototype.isEqualNode=function(E){return!(!p.__super__.isEqualNode.apply(this,arguments).isEqualNode(E)||E.data!==this.data)},p}(r)}).call(this)},11697:function(Qe,he,s){(function(){var a,r,D={}.hasOwnProperty;a=s(47309),r=s(27836),Qe.exports=function(p){function E(f,c){if(E.__super__.constructor.call(this,f),null==c)throw new Error("Missing comment text. "+this.debugInfo());this.name="#comment",this.type=a.Comment,this.value=this.stringify.comment(c)}return function(p,E){for(var f in E)D.call(E,f)&&(p[f]=E[f]);function c(){this.constructor=p}c.prototype=E.prototype,p.prototype=new c,p.__super__=E.prototype}(E,p),E.prototype.clone=function(){return Object.create(this)},E.prototype.toString=function(f){return this.options.writer.comment(this,this.options.writer.filterOptions(f))},E}(r)}).call(this)},27052:function(Qe,he,s){(function(){var r,b;r=s(81828),b=s(51946),Qe.exports=function(){function A(){this.defaultParams={"canonical-form":!1,"cdata-sections":!1,comments:!1,"datatype-normalization":!1,"element-content-whitespace":!0,entities:!0,"error-handler":new r,infoset:!0,"validate-if-schema":!1,namespaces:!0,"namespace-declarations":!0,"normalize-characters":!1,"schema-location":"","schema-type":"","split-cdata-sections":!0,validate:!1,"well-formed":!0},this.params=Object.create(this.defaultParams)}return Object.defineProperty(A.prototype,"parameterNames",{get:function(){return new b(Object.keys(this.defaultParams))}}),A.prototype.getParameter=function(D){return this.params.hasOwnProperty(D)?this.params[D]:null},A.prototype.canSetParameter=function(D,p){return!0},A.prototype.setParameter=function(D,p){return null!=p?this.params[D]=p:delete this.params[D]},A}()}).call(this)},81828:function(Qe){(function(){Qe.exports=function(){function s(){}return s.prototype.handleError=function(a){throw new Error(a)},s}()}).call(this)},59663:function(Qe){(function(){Qe.exports=function(){function s(){}return s.prototype.hasFeature=function(a,r){return!0},s.prototype.createDocumentType=function(a,r,b){throw new Error("This DOM method is not implemented.")},s.prototype.createDocument=function(a,r,b){throw new Error("This DOM method is not implemented.")},s.prototype.createHTMLDocument=function(a){throw new Error("This DOM method is not implemented.")},s.prototype.getFeature=function(a,r){throw new Error("This DOM method is not implemented.")},s}()}).call(this)},51946:function(Qe){(function(){Qe.exports=function(){function s(a){this.arr=a||[]}return Object.defineProperty(s.prototype,"length",{get:function(){return this.arr.length}}),s.prototype.item=function(a){return this.arr[a]||null},s.prototype.contains=function(a){return-1!==this.arr.indexOf(a)},s}()}).call(this)},50843:function(Qe,he,s){(function(){var a,b,D={}.hasOwnProperty;b=s(68921),a=s(47309),Qe.exports=function(p){function E(f,c,C,m,_,g){if(E.__super__.constructor.call(this,f),null==c)throw new Error("Missing DTD element name. "+this.debugInfo());if(null==C)throw new Error("Missing DTD attribute name. "+this.debugInfo(c));if(!m)throw new Error("Missing DTD attribute type. "+this.debugInfo(c));if(!_)throw new Error("Missing DTD attribute default. "+this.debugInfo(c));if(0!==_.indexOf("#")&&(_="#"+_),!_.match(/^(#REQUIRED|#IMPLIED|#FIXED|#DEFAULT)$/))throw new Error("Invalid default value type; expected: #REQUIRED, #IMPLIED, #FIXED or #DEFAULT. "+this.debugInfo(c));if(g&&!_.match(/^(#FIXED|#DEFAULT)$/))throw new Error("Default value only applies to #FIXED or #DEFAULT. "+this.debugInfo(c));this.elementName=this.stringify.name(c),this.type=a.AttributeDeclaration,this.attributeName=this.stringify.name(C),this.attributeType=this.stringify.dtdAttType(m),g&&(this.defaultValue=this.stringify.dtdAttDefault(g)),this.defaultValueType=_}return function(p,E){for(var f in E)D.call(E,f)&&(p[f]=E[f]);function c(){this.constructor=p}c.prototype=E.prototype,p.prototype=new c,p.__super__=E.prototype}(E,p),E.prototype.toString=function(f){return this.options.writer.dtdAttList(this,this.options.writer.filterOptions(f))},E}(b)}).call(this)},33234:function(Qe,he,s){(function(){var a,b,D={}.hasOwnProperty;b=s(68921),a=s(47309),Qe.exports=function(p){function E(f,c,C){if(E.__super__.constructor.call(this,f),null==c)throw new Error("Missing DTD element name. "+this.debugInfo());C||(C="(#PCDATA)"),Array.isArray(C)&&(C="("+C.join(",")+")"),this.name=this.stringify.name(c),this.type=a.ElementDeclaration,this.value=this.stringify.dtdElementValue(C)}return function(p,E){for(var f in E)D.call(E,f)&&(p[f]=E[f]);function c(){this.constructor=p}c.prototype=E.prototype,p.prototype=new c,p.__super__=E.prototype}(E,p),E.prototype.toString=function(f){return this.options.writer.dtdElement(this,this.options.writer.filterOptions(f))},E}(b)}).call(this)},34410:function(Qe,he,s){(function(){var a,b,A,p={}.hasOwnProperty;A=s(82249).isObject,b=s(68921),a=s(47309),Qe.exports=function(E){function f(c,C,m,_){if(f.__super__.constructor.call(this,c),null==m)throw new Error("Missing DTD entity name. "+this.debugInfo(m));if(null==_)throw new Error("Missing DTD entity value. "+this.debugInfo(m));if(this.pe=!!C,this.name=this.stringify.name(m),this.type=a.EntityDeclaration,A(_)){if(!_.pubID&&!_.sysID)throw new Error("Public and/or system identifiers are required for an external entity. "+this.debugInfo(m));if(_.pubID&&!_.sysID)throw new Error("System identifier is required for a public external entity. "+this.debugInfo(m));if(this.internal=!1,null!=_.pubID&&(this.pubID=this.stringify.dtdPubID(_.pubID)),null!=_.sysID&&(this.sysID=this.stringify.dtdSysID(_.sysID)),null!=_.nData&&(this.nData=this.stringify.dtdNData(_.nData)),this.pe&&this.nData)throw new Error("Notation declaration is not allowed in a parameter entity. "+this.debugInfo(m))}else this.value=this.stringify.dtdEntityValue(_),this.internal=!0}return function(E,f){for(var c in f)p.call(f,c)&&(E[c]=f[c]);function C(){this.constructor=E}C.prototype=f.prototype,E.prototype=new C,E.__super__=f.prototype}(f,E),Object.defineProperty(f.prototype,"publicId",{get:function(){return this.pubID}}),Object.defineProperty(f.prototype,"systemId",{get:function(){return this.sysID}}),Object.defineProperty(f.prototype,"notationName",{get:function(){return this.nData||null}}),Object.defineProperty(f.prototype,"inputEncoding",{get:function(){return null}}),Object.defineProperty(f.prototype,"xmlEncoding",{get:function(){return null}}),Object.defineProperty(f.prototype,"xmlVersion",{get:function(){return null}}),f.prototype.toString=function(c){return this.options.writer.dtdEntity(this,this.options.writer.filterOptions(c))},f}(b)}).call(this)},56117:function(Qe,he,s){(function(){var a,b,D={}.hasOwnProperty;b=s(68921),a=s(47309),Qe.exports=function(p){function E(f,c,C){if(E.__super__.constructor.call(this,f),null==c)throw new Error("Missing DTD notation name. "+this.debugInfo(c));if(!C.pubID&&!C.sysID)throw new Error("Public or system identifiers are required for an external entity. "+this.debugInfo(c));this.name=this.stringify.name(c),this.type=a.NotationDeclaration,null!=C.pubID&&(this.pubID=this.stringify.dtdPubID(C.pubID)),null!=C.sysID&&(this.sysID=this.stringify.dtdSysID(C.sysID))}return function(p,E){for(var f in E)D.call(E,f)&&(p[f]=E[f]);function c(){this.constructor=p}c.prototype=E.prototype,p.prototype=new c,p.__super__=E.prototype}(E,p),Object.defineProperty(E.prototype,"publicId",{get:function(){return this.pubID}}),Object.defineProperty(E.prototype,"systemId",{get:function(){return this.sysID}}),E.prototype.toString=function(f){return this.options.writer.dtdNotation(this,this.options.writer.filterOptions(f))},E}(b)}).call(this)},24417:function(Qe,he,s){(function(){var a,b,A,p={}.hasOwnProperty;A=s(82249).isObject,b=s(68921),a=s(47309),Qe.exports=function(E){function f(c,C,m,_){var g;f.__super__.constructor.call(this,c),A(C)&&(C=(g=C).version,m=g.encoding,_=g.standalone),C||(C="1.0"),this.type=a.Declaration,this.version=this.stringify.xmlVersion(C),null!=m&&(this.encoding=this.stringify.xmlEncoding(m)),null!=_&&(this.standalone=this.stringify.xmlStandalone(_))}return function(E,f){for(var c in f)p.call(f,c)&&(E[c]=f[c]);function C(){this.constructor=E}C.prototype=f.prototype,E.prototype=new C,E.__super__=f.prototype}(f,E),f.prototype.toString=function(c){return this.options.writer.declaration(this,this.options.writer.filterOptions(c))},f}(b)}).call(this)},48914:function(Qe,he,s){(function(){var a,r,b,A,D,E,f,c,m={}.hasOwnProperty;c=s(82249).isObject,f=s(68921),a=s(47309),r=s(50843),A=s(34410),b=s(33234),D=s(56117),E=s(766),Qe.exports=function(_){function g(P,U,d){var q,j,K,L,w,k;if(g.__super__.constructor.call(this,P),this.type=a.DocType,P.children)for(j=0,K=(L=P.children).length;j=0;)this.up();return this.onEnd()},be.prototype.openCurrent=function(){if(this.currentNode)return this.currentNode.children=!0,this.openNode(this.currentNode)},be.prototype.openNode=function(pe){var Je,qe,it;if(!pe.isOpen){if(!this.root&&0===this.currentLevel&&pe.type===a.Element&&(this.root=pe),Je="",pe.type===a.Element){for(qe in this.writerOptions.state=r.OpenTag,Je=this.writer.indent(pe,this.writerOptions,this.currentLevel)+"<"+pe.name,it=pe.attribs)re.call(it,qe)&&(Je+=this.writer.attribute(it[qe],this.writerOptions,this.currentLevel));Je+=(pe.children?">":"/>")+this.writer.endline(pe,this.writerOptions,this.currentLevel),this.writerOptions.state=r.InsideTag}else this.writerOptions.state=r.OpenTag,Je=this.writer.indent(pe,this.writerOptions,this.currentLevel)+""),Je+=this.writer.endline(pe,this.writerOptions,this.currentLevel);return this.onData(Je,this.currentLevel),pe.isOpen=!0}},be.prototype.closeNode=function(pe){var $e;if(!pe.isClosed)return"",this.writerOptions.state=r.CloseTag,$e=pe.type===a.Element?this.writer.indent(pe,this.writerOptions,this.currentLevel)+""+this.writer.endline(pe,this.writerOptions,this.currentLevel):this.writer.indent(pe,this.writerOptions,this.currentLevel)+"]>"+this.writer.endline(pe,this.writerOptions,this.currentLevel),this.writerOptions.state=r.None,this.onData($e,this.currentLevel),pe.isClosed=!0},be.prototype.onData=function(pe,$e){return this.documentStarted=!0,this.onDataCallback(pe,$e+1)},be.prototype.onEnd=function(){return this.documentCompleted=!0,this.onEndCallback()},be.prototype.debugInfo=function(pe){return null==pe?"":"node: <"+pe+">"},be.prototype.ele=function(){return this.element.apply(this,arguments)},be.prototype.nod=function(pe,$e,Je){return this.node(pe,$e,Je)},be.prototype.txt=function(pe){return this.text(pe)},be.prototype.dat=function(pe){return this.cdata(pe)},be.prototype.com=function(pe){return this.comment(pe)},be.prototype.ins=function(pe,$e){return this.instruction(pe,$e)},be.prototype.dec=function(pe,$e,Je){return this.declaration(pe,$e,Je)},be.prototype.dtd=function(pe,$e,Je){return this.doctype(pe,$e,Je)},be.prototype.e=function(pe,$e,Je){return this.element(pe,$e,Je)},be.prototype.n=function(pe,$e,Je){return this.node(pe,$e,Je)},be.prototype.t=function(pe){return this.text(pe)},be.prototype.d=function(pe){return this.cdata(pe)},be.prototype.c=function(pe){return this.comment(pe)},be.prototype.r=function(pe){return this.raw(pe)},be.prototype.i=function(pe,$e){return this.instruction(pe,$e)},be.prototype.att=function(){return this.currentNode&&this.currentNode.type===a.DocType?this.attList.apply(this,arguments):this.attribute.apply(this,arguments)},be.prototype.a=function(){return this.currentNode&&this.currentNode.type===a.DocType?this.attList.apply(this,arguments):this.attribute.apply(this,arguments)},be.prototype.ent=function(pe,$e){return this.entity(pe,$e)},be.prototype.pent=function(pe,$e){return this.pEntity(pe,$e)},be.prototype.not=function(pe,$e){return this.notation(pe,$e)},be}()}).call(this)},82071:function(Qe,he,s){(function(){var a,b,D={}.hasOwnProperty;b=s(68921),a=s(47309),Qe.exports=function(p){function E(f){E.__super__.constructor.call(this,f),this.type=a.Dummy}return function(p,E){for(var f in E)D.call(E,f)&&(p[f]=E[f]);function c(){this.constructor=p}c.prototype=E.prototype,p.prototype=new c,p.__super__=E.prototype}(E,p),E.prototype.clone=function(){return Object.create(this)},E.prototype.toString=function(f){return""},E}(b)}).call(this)},57348:function(Qe,he,s){(function(){var a,r,A,D,p,E,f,c,m={}.hasOwnProperty;c=s(82249),f=c.isObject,E=c.isFunction,p=c.getValue,D=s(68921),a=s(47309),r=s(69743),A=s(766),Qe.exports=function(_){function g(P,U,d){var q,j,K,L;if(g.__super__.constructor.call(this,P),null==U)throw new Error("Missing element name. "+this.debugInfo());if(this.name=this.stringify.name(U),this.type=a.Element,this.attribs={},this.schemaTypeInfo=null,null!=d&&this.attribute(d),P.type===a.Document&&(this.isRoot=!0,this.documentObject=P,P.rootObject=this,P.children))for(j=0,K=(L=P.children).length;j=q;U=0<=q?++d:--d)if(!this.attribs[U].isEqualNode(P.attribs[U]))return!1;return!0},g}(D)}).call(this)},766:function(Qe){(function(){Qe.exports=function(){function s(a){this.nodes=a}return Object.defineProperty(s.prototype,"length",{get:function(){return Object.keys(this.nodes).length||0}}),s.prototype.clone=function(){return this.nodes=null},s.prototype.getNamedItem=function(a){return this.nodes[a]},s.prototype.setNamedItem=function(a){var r;return r=this.nodes[a.nodeName],this.nodes[a.nodeName]=a,r||null},s.prototype.removeNamedItem=function(a){var r;return r=this.nodes[a],delete this.nodes[a],r||null},s.prototype.item=function(a){return this.nodes[Object.keys(this.nodes)[a]]||null},s.prototype.getNamedItemNS=function(a,r){throw new Error("This DOM method is not implemented.")},s.prototype.setNamedItemNS=function(a){throw new Error("This DOM method is not implemented.")},s.prototype.removeNamedItemNS=function(a,r){throw new Error("This DOM method is not implemented.")},s}()}).call(this)},68921:function(Qe,he,s){(function(){var a,r,b,A,D,p,E,f,m,_,g,P,U,d,q,j,K,L={}.hasOwnProperty;K=s(82249),j=K.isObject,q=K.isFunction,d=K.isEmpty,U=K.getValue,f=null,b=null,A=null,D=null,p=null,g=null,P=null,_=null,E=null,r=null,m=null,a=null,Qe.exports=function(){function w(k){this.parent=k,this.parent&&(this.options=this.parent.options,this.stringify=this.parent.stringify),this.value=null,this.children=[],this.baseURI=null,f||(f=s(57348),b=s(94217),A=s(11697),D=s(24417),p=s(48914),g=s(36394),P=s(41523),_=s(83787),E=s(82071),r=s(47309),m=s(7152),s(766),a=s(22302))}return Object.defineProperty(w.prototype,"nodeName",{get:function(){return this.name}}),Object.defineProperty(w.prototype,"nodeType",{get:function(){return this.type}}),Object.defineProperty(w.prototype,"nodeValue",{get:function(){return this.value}}),Object.defineProperty(w.prototype,"parentNode",{get:function(){return this.parent}}),Object.defineProperty(w.prototype,"childNodes",{get:function(){return(!this.childNodeList||!this.childNodeList.nodes)&&(this.childNodeList=new m(this.children)),this.childNodeList}}),Object.defineProperty(w.prototype,"firstChild",{get:function(){return this.children[0]||null}}),Object.defineProperty(w.prototype,"lastChild",{get:function(){return this.children[this.children.length-1]||null}}),Object.defineProperty(w.prototype,"previousSibling",{get:function(){var k;return k=this.parent.children.indexOf(this),this.parent.children[k-1]||null}}),Object.defineProperty(w.prototype,"nextSibling",{get:function(){var k;return k=this.parent.children.indexOf(this),this.parent.children[k+1]||null}}),Object.defineProperty(w.prototype,"ownerDocument",{get:function(){return this.document()||null}}),Object.defineProperty(w.prototype,"textContent",{get:function(){var k,X,de,re,be;if(this.nodeType===r.Element||this.nodeType===r.DocumentFragment){for(be="",X=0,de=(re=this.children).length;X":null!=(de=this.parent)&&de.name?"node: <"+k+">, parent: <"+this.parent.name+">":"node: <"+k+">":""},w.prototype.ele=function(k,X,de){return this.element(k,X,de)},w.prototype.nod=function(k,X,de){return this.node(k,X,de)},w.prototype.txt=function(k){return this.text(k)},w.prototype.dat=function(k){return this.cdata(k)},w.prototype.com=function(k){return this.comment(k)},w.prototype.ins=function(k,X){return this.instruction(k,X)},w.prototype.doc=function(){return this.document()},w.prototype.dec=function(k,X,de){return this.declaration(k,X,de)},w.prototype.e=function(k,X,de){return this.element(k,X,de)},w.prototype.n=function(k,X,de){return this.node(k,X,de)},w.prototype.t=function(k){return this.text(k)},w.prototype.d=function(k){return this.cdata(k)},w.prototype.c=function(k){return this.comment(k)},w.prototype.r=function(k){return this.raw(k)},w.prototype.i=function(k,X){return this.instruction(k,X)},w.prototype.u=function(){return this.up()},w.prototype.importXMLBuilder=function(k){return this.importDocument(k)},w.prototype.replaceChild=function(k,X){throw new Error("This DOM method is not implemented."+this.debugInfo())},w.prototype.removeChild=function(k){throw new Error("This DOM method is not implemented."+this.debugInfo())},w.prototype.appendChild=function(k){throw new Error("This DOM method is not implemented."+this.debugInfo())},w.prototype.hasChildNodes=function(){return 0!==this.children.length},w.prototype.cloneNode=function(k){throw new Error("This DOM method is not implemented."+this.debugInfo())},w.prototype.normalize=function(){throw new Error("This DOM method is not implemented."+this.debugInfo())},w.prototype.isSupported=function(k,X){return!0},w.prototype.hasAttributes=function(){return 0!==this.attribs.length},w.prototype.compareDocumentPosition=function(k){var X,de;return(X=this)===k?0:this.document()!==k.document()?(de=a.Disconnected|a.ImplementationSpecific,Math.random()<.5?de|=a.Preceding:de|=a.Following,de):X.isAncestor(k)?a.Contains|a.Preceding:X.isDescendant(k)?a.Contains|a.Following:X.isPreceding(k)?a.Preceding:a.Following},w.prototype.isSameNode=function(k){throw new Error("This DOM method is not implemented."+this.debugInfo())},w.prototype.lookupPrefix=function(k){throw new Error("This DOM method is not implemented."+this.debugInfo())},w.prototype.isDefaultNamespace=function(k){throw new Error("This DOM method is not implemented."+this.debugInfo())},w.prototype.lookupNamespaceURI=function(k){throw new Error("This DOM method is not implemented."+this.debugInfo())},w.prototype.isEqualNode=function(k){var X,de,re;if(k.nodeType!==this.nodeType||k.children.length!==this.children.length)return!1;for(X=de=0,re=this.children.length-1;0<=re?de<=re:de>=re;X=0<=re?++de:--de)if(!this.children[X].isEqualNode(k.children[X]))return!1;return!0},w.prototype.getFeature=function(k,X){throw new Error("This DOM method is not implemented."+this.debugInfo())},w.prototype.setUserData=function(k,X,de){throw new Error("This DOM method is not implemented."+this.debugInfo())},w.prototype.getUserData=function(k){throw new Error("This DOM method is not implemented."+this.debugInfo())},w.prototype.contains=function(k){return!!k&&(k===this||this.isDescendant(k))},w.prototype.isDescendant=function(k){var X,re,be,pe;for(re=0,be=(pe=this.children).length;rede},w.prototype.treePosition=function(k){var X,de;return de=0,X=!1,this.foreachTreeNode(this.document(),function(re){if(de++,!X&&re===k)return X=!0}),X?de:-1},w.prototype.foreachTreeNode=function(k,X){var de,re,be,pe,$e;for(k||(k=this.document()),re=0,be=(pe=k.children).length;re0){for(this.stream.write(" ["),this.stream.write(this.endline(c,C,m)),C.state=r.InsideTag,g=0,P=(U=c.children).length;g"),this.stream.write(this.endline(c,C,m)),C.state=r.None,this.closeNode(c,C,m)},f.prototype.element=function(c,C,m){var P,U,d,q,j,L,w;for(j in m||(m=0),this.openNode(c,C,m),C.state=r.OpenTag,this.stream.write(this.indent(c,C,m)+"<"+c.name),L=c.attribs)p.call(L,j)&&this.attribute(L[j],C,m);if(U=0===(P=c.children.length)?null:c.children[0],0===P||c.children.every(function(k){return(k.type===a.Text||k.type===a.Raw)&&""===k.value}))C.allowEmpty?(this.stream.write(">"),C.state=r.CloseTag,this.stream.write("")):(C.state=r.CloseTag,this.stream.write(C.spaceBeforeSlash+"/>"));else if(!C.pretty||1!==P||U.type!==a.Text&&U.type!==a.Raw||null==U.value){for(this.stream.write(">"+this.endline(c,C,m)),C.state=r.InsideTag,d=0,q=(w=c.children).length;d")}else this.stream.write(">"),C.state=r.InsideTag,C.suppressPrettyCount++,this.writeChildNode(U,C,m+1),C.suppressPrettyCount--,C.state=r.CloseTag,this.stream.write("");return this.stream.write(this.endline(c,C,m)),C.state=r.None,this.closeNode(c,C,m)},f.prototype.processingInstruction=function(c,C,m){return this.stream.write(f.__super__.processingInstruction.call(this,c,C,m))},f.prototype.raw=function(c,C,m){return this.stream.write(f.__super__.raw.call(this,c,C,m))},f.prototype.text=function(c,C,m){return this.stream.write(f.__super__.text.call(this,c,C,m))},f.prototype.dtdAttList=function(c,C,m){return this.stream.write(f.__super__.dtdAttList.call(this,c,C,m))},f.prototype.dtdElement=function(c,C,m){return this.stream.write(f.__super__.dtdElement.call(this,c,C,m))},f.prototype.dtdEntity=function(c,C,m){return this.stream.write(f.__super__.dtdEntity.call(this,c,C,m))},f.prototype.dtdNotation=function(c,C,m){return this.stream.write(f.__super__.dtdNotation.call(this,c,C,m))},f}(A)}).call(this)},6830:function(Qe,he,s){(function(){var r,A={}.hasOwnProperty;r=s(1778),Qe.exports=function(D){function p(E){p.__super__.constructor.call(this,E)}return function(D,p){for(var E in p)A.call(p,E)&&(D[E]=p[E]);function f(){this.constructor=D}f.prototype=p.prototype,D.prototype=new f,D.__super__=p.prototype}(p,D),p.prototype.document=function(E,f){var C,m,_,g;for(f=this.filterOptions(f),_="",C=0,m=(g=E.children).length;C","]]]]>"),this.assertLegalChar(b))},r.prototype.comment=function(b){if(this.options.noValidation)return b;if((b=""+b||"").match(/--/))throw new Error("Comment text cannot contain double-hypen: "+b);return this.assertLegalChar(b)},r.prototype.raw=function(b){return this.options.noValidation?b:""+b||""},r.prototype.attValue=function(b){return this.options.noValidation?b:this.assertLegalChar(this.attEscape(b=""+b||""))},r.prototype.insTarget=function(b){return this.options.noValidation?b:this.assertLegalChar(""+b||"")},r.prototype.insValue=function(b){if(this.options.noValidation)return b;if((b=""+b||"").match(/\?>/))throw new Error("Invalid processing instruction value: "+b);return this.assertLegalChar(b)},r.prototype.xmlVersion=function(b){if(this.options.noValidation)return b;if(!(b=""+b||"").match(/1\.[0-9]+/))throw new Error("Invalid version number: "+b);return b},r.prototype.xmlEncoding=function(b){if(this.options.noValidation)return b;if(!(b=""+b||"").match(/^[A-Za-z](?:[A-Za-z0-9._-])*$/))throw new Error("Invalid encoding: "+b);return this.assertLegalChar(b)},r.prototype.xmlStandalone=function(b){return this.options.noValidation?b:b?"yes":"no"},r.prototype.dtdPubID=function(b){return this.options.noValidation?b:this.assertLegalChar(""+b||"")},r.prototype.dtdSysID=function(b){return this.options.noValidation?b:this.assertLegalChar(""+b||"")},r.prototype.dtdElementValue=function(b){return this.options.noValidation?b:this.assertLegalChar(""+b||"")},r.prototype.dtdAttType=function(b){return this.options.noValidation?b:this.assertLegalChar(""+b||"")},r.prototype.dtdAttDefault=function(b){return this.options.noValidation?b:this.assertLegalChar(""+b||"")},r.prototype.dtdEntityValue=function(b){return this.options.noValidation?b:this.assertLegalChar(""+b||"")},r.prototype.dtdNData=function(b){return this.options.noValidation?b:this.assertLegalChar(""+b||"")},r.prototype.convertAttKey="@",r.prototype.convertPIKey="?",r.prototype.convertTextKey="#text",r.prototype.convertCDataKey="#cdata",r.prototype.convertCommentKey="#comment",r.prototype.convertRawKey="#raw",r.prototype.assertLegalChar=function(b){var D;if(this.options.noValidation)return b;if("1.0"===this.options.version){if(D=b.match(/[\0-\x08\x0B\f\x0E-\x1F\uFFFE\uFFFF]|[\uD800-\uDBFF](?![\uDC00-\uDFFF])|(?:[^\uD800-\uDBFF]|^)[\uDC00-\uDFFF]/))throw new Error("Invalid character in string: "+b+" at index "+D.index)}else if("1.1"===this.options.version&&(D=b.match(/[\0\uFFFE\uFFFF]|[\uD800-\uDBFF](?![\uDC00-\uDFFF])|(?:[^\uD800-\uDBFF]|^)[\uDC00-\uDFFF]/)))throw new Error("Invalid character in string: "+b+" at index "+D.index);return b},r.prototype.assertLegalName=function(b){if(this.options.noValidation)return b;if(this.assertLegalChar(b),!b.match(/^([:A-Z_a-z\xC0-\xD6\xD8-\xF6\xF8-\u02FF\u0370-\u037D\u037F-\u1FFF\u200C\u200D\u2070-\u218F\u2C00-\u2FEF\u3001-\uD7FF\uF900-\uFDCF\uFDF0-\uFFFD]|[\uD800-\uDB7F][\uDC00-\uDFFF])([\x2D\.0-:A-Z_a-z\xB7\xC0-\xD6\xD8-\xF6\xF8-\u037D\u037F-\u1FFF\u200C\u200D\u203F\u2040\u2070-\u218F\u2C00-\u2FEF\u3001-\uD7FF\uF900-\uFDCF\uFDF0-\uFFFD]|[\uD800-\uDB7F][\uDC00-\uDFFF])*$/))throw new Error("Invalid character in name");return b},r.prototype.textEscape=function(b){return this.options.noValidation?b:b.replace(this.options.noDoubleEncoding?/(?!&\S+;)&/g:/&/g,"&").replace(//g,">").replace(/\r/g," ")},r.prototype.attEscape=function(b){return this.options.noValidation?b:b.replace(this.options.noDoubleEncoding?/(?!&\S+;)&/g:/&/g,"&").replace(/0?new Array(X).join(w.indent):""},K.prototype.endline=function(L,w,k){return!w.pretty||w.suppressPrettyCount?"":w.newline},K.prototype.attribute=function(L,w,k){var X;return this.openAttribute(L,w,k),X=" "+L.name+'="'+L.value+'"',this.closeAttribute(L,w,k),X},K.prototype.cdata=function(L,w,k){var X;return this.openNode(L,w,k),w.state=r.OpenTag,X=this.indent(L,w,k)+""+this.endline(L,w,k),w.state=r.None,this.closeNode(L,w,k),X},K.prototype.comment=function(L,w,k){var X;return this.openNode(L,w,k),w.state=r.OpenTag,X=this.indent(L,w,k)+"\x3c!-- ",w.state=r.InsideTag,X+=L.value,w.state=r.CloseTag,X+=" --\x3e"+this.endline(L,w,k),w.state=r.None,this.closeNode(L,w,k),X},K.prototype.declaration=function(L,w,k){var X;return this.openNode(L,w,k),w.state=r.OpenTag,X=this.indent(L,w,k)+"",X+=this.endline(L,w,k),w.state=r.None,this.closeNode(L,w,k),X},K.prototype.docType=function(L,w,k){var de,re,be,pe;if(k||(k=0),this.openNode(L,w,k),w.state=r.OpenTag,be=this.indent(L,w,k),be+="0){for(be+=" [",be+=this.endline(L,w,k),w.state=r.InsideTag,de=0,re=(pe=L.children).length;de",be+=this.endline(L,w,k),w.state=r.None,this.closeNode(L,w,k),be},K.prototype.element=function(L,w,k){var de,re,be,pe,$e,Je,qe,it,rt,tt,_t,ze,Ze;for(it in k||(k=0),rt=!1,tt="",this.openNode(L,w,k),w.state=r.OpenTag,tt+=this.indent(L,w,k)+"<"+L.name,_t=L.attribs)j.call(_t,it)&&(tt+=this.attribute(_t[it],w,k));if(be=0===(re=L.children.length)?null:L.children[0],0===re||L.children.every(function(ot){return(ot.type===a.Text||ot.type===a.Raw)&&""===ot.value}))w.allowEmpty?(tt+=">",w.state=r.CloseTag,tt+=""+this.endline(L,w,k)):(w.state=r.CloseTag,tt+=w.spaceBeforeSlash+"/>"+this.endline(L,w,k));else if(!w.pretty||1!==re||be.type!==a.Text&&be.type!==a.Raw||null==be.value){if(w.dontPrettyTextNodes)for(pe=0,Je=(ze=L.children).length;pe"+this.endline(L,w,k),w.state=r.InsideTag,$e=0,qe=(Ze=L.children).length;$e",rt&&w.suppressPrettyCount--,tt+=this.endline(L,w,k),w.state=r.None}else tt+=">",w.state=r.InsideTag,w.suppressPrettyCount++,rt=!0,tt+=this.writeChildNode(be,w,k+1),w.suppressPrettyCount--,rt=!1,w.state=r.CloseTag,tt+=""+this.endline(L,w,k);return this.closeNode(L,w,k),tt},K.prototype.writeChildNode=function(L,w,k){switch(L.type){case a.CData:return this.cdata(L,w,k);case a.Comment:return this.comment(L,w,k);case a.Element:return this.element(L,w,k);case a.Raw:return this.raw(L,w,k);case a.Text:return this.text(L,w,k);case a.ProcessingInstruction:return this.processingInstruction(L,w,k);case a.Dummy:return"";case a.Declaration:return this.declaration(L,w,k);case a.DocType:return this.docType(L,w,k);case a.AttributeDeclaration:return this.dtdAttList(L,w,k);case a.ElementDeclaration:return this.dtdElement(L,w,k);case a.EntityDeclaration:return this.dtdEntity(L,w,k);case a.NotationDeclaration:return this.dtdNotation(L,w,k);default:throw new Error("Unknown XML node type: "+L.constructor.name)}},K.prototype.processingInstruction=function(L,w,k){var X;return this.openNode(L,w,k),w.state=r.OpenTag,X=this.indent(L,w,k)+"",X+=this.endline(L,w,k),w.state=r.None,this.closeNode(L,w,k),X},K.prototype.raw=function(L,w,k){var X;return this.openNode(L,w,k),w.state=r.OpenTag,X=this.indent(L,w,k),w.state=r.InsideTag,X+=L.value,w.state=r.CloseTag,X+=this.endline(L,w,k),w.state=r.None,this.closeNode(L,w,k),X},K.prototype.text=function(L,w,k){var X;return this.openNode(L,w,k),w.state=r.OpenTag,X=this.indent(L,w,k),w.state=r.InsideTag,X+=L.value,w.state=r.CloseTag,X+=this.endline(L,w,k),w.state=r.None,this.closeNode(L,w,k),X},K.prototype.dtdAttList=function(L,w,k){var X;return this.openNode(L,w,k),w.state=r.OpenTag,X=this.indent(L,w,k)+""+this.endline(L,w,k),w.state=r.None,this.closeNode(L,w,k),X},K.prototype.dtdElement=function(L,w,k){var X;return this.openNode(L,w,k),w.state=r.OpenTag,X=this.indent(L,w,k)+""+this.endline(L,w,k),w.state=r.None,this.closeNode(L,w,k),X},K.prototype.dtdEntity=function(L,w,k){var X;return this.openNode(L,w,k),w.state=r.OpenTag,X=this.indent(L,w,k)+""+this.endline(L,w,k),w.state=r.None,this.closeNode(L,w,k),X},K.prototype.dtdNotation=function(L,w,k){var X;return this.openNode(L,w,k),w.state=r.OpenTag,X=this.indent(L,w,k)+""+this.endline(L,w,k),w.state=r.None,this.closeNode(L,w,k),X},K.prototype.openNode=function(L,w,k){},K.prototype.closeNode=function(L,w,k){},K.prototype.openAttribute=function(L,w,k){},K.prototype.closeAttribute=function(L,w,k){},K}()}).call(this)},22518:function(Qe,he,s){(function(){var a,r,b,A,D,p,E,f,c,C;C=s(82249),f=C.assign,c=C.isFunction,b=s(59663),A=s(8261),D=s(97590),E=s(6830),p=s(58461),a=s(47309),r=s(74680),Qe.exports.create=function(m,_,g,P){var U,d;if(null==m)throw new Error("Root element needs a name.");return P=f({},_,g,P),d=(U=new A(P)).element(m),P.headless||(U.declaration(P),(null!=P.pubID||null!=P.sysID)&&U.dtd(P)),d},Qe.exports.begin=function(m,_,g){var P;return c(m)&&(_=(P=[m,_])[0],g=P[1],m={}),_?new D(m,_,g):new A(m)},Qe.exports.stringWriter=function(m){return new E(m)},Qe.exports.streamWriter=function(m,_){return new p(m,_)},Qe.exports.implementation=new b,Qe.exports.nodeType=a,Qe.exports.writerState=r}).call(this)},51643:(Qe,he)=>{var r,A;r=he,A=new function b(){for(var D in this.orcidCharLatexMap={},this.orcidLatexCharMap={"\\`A":"\xc0","\\`E":"\xc8","\\`I":"\xcc","\\`O":"\xd2","\\`U":"\xd9","\\`a":"\xe0","\\`e":"\xe8","\\`i":"\xec","\\`o":"\xf2","\\`u":"\xf9","\\'A":"\xc1","\\'E":"\xc9","\\'I":"\xcd","\\'O":"\xd3","\\'U":"\xda","\\'Y":"\xdd","\\'a":"\xe1","\\'e":"\xe9","\\'i":"\xed","\\'o":"\xf3","\\'u":"\xfa","\\'y":"\xfd",'\\"A':"\xc4","\\r A":"\xc5",'\\"E':"\xcb",'\\"I':"\xcf",'\\"O':"\xd6",'\\"U':"\xdc",'\\"a':"\xe4","\\r a":"\xe5",'\\"e':"\xeb",'\\"i':"\xef",'\\"o':"\xf6",'\\"u':"\xfc","\\~A":"\xc3","\\~N":"\xd1","\\~O":"\xd5","\\~a":"\xe3","\\~n":"\xf1","\\~o":"\xf5","\\rU":"\u016e","\\ru":"\u016f","\\vC":"\u010c","\\vD":"\u010e","\\vE":"\u011a","\\vN":"\u0147","\\vR":"\u0158","\\vS":"\u0160","\\vT":"\u0164","\\vZ":"\u017d","\\vc":"\u010d","\\vd":"\u010f","\\ve":"\u011b","\\vn":"\u0148","\\vr":"\u0159","\\vs":"\u0161","\\vt":"\u0165","\\vz":"\u017e","\\#":"#","\\$":"$","\\%":"%","\\&":"&","\\\\":"\\","\\^":"^","\\_":"_","\\{":"{","\\}":"}","\\~":"~",'\\"':'"',"\\'":"\u2019","\\`":"\u2018","\\AA":"\xc5","\\AE":"\xc6","\\c{C}":"\xc7","\\O":"\xd8","\\aa":"\xe5","\\c{c}":"\xe7","\\ae":"\xe6","\\o":"\xf8","\\ss":"\xdf","\\textcopyright":"\xa9","\\textellipsis":"\u2026","\\textemdash":"\u2014","\\textendash":"\u2013","\\textregistered":"\xae","\\texttrademark":"\u2122","\\alpha":"\u03b1","\\beta":"\u03b2","\\gamma":"\u03b3","\\delta":"\u03b4","\\epsilon":"\u03b5","\\zeta":"\u03b6","\\eta":"\u03b7","\\theta":"\u03b8","\\iota":"\u03b9","\\kappa":"\u03ba","\\lambda":"\u03bb","\\mu":"\u03bc","\\nu":"\u03bd","\\xi":"\u03be","\\omicron":"\u03bf","\\pi":"\u03c0","\\rho":"\u03c1","\\sigma":"\u03c2","\\tau":"\u03c3","\\upsilon":"\u03c4","\\phi":"\u03c5","\\chi":"\u03c6","\\psi":"\u03c7","\\omega":"\u03c8","\\=A":"\u0100","\\=a":"\u0101","\\u{A}":"\u0102","\\u{a}":"\u0103","\\k A":"\u0104","\\k a":"\u0105","\\'C":"\u0106","\\'c":"\u0107","\\^C":"\u0108","\\^c":"\u0109","\\.C":"\u010a","\\.c":"\u010b","\\v{C}":"\u010c","\\v{c}":"\u010d","\\v{D}":"\u010e","\\=E":"\u0112","\\=e":"\u0113","\\u{E}":"\u0114","\\u{e}":"\u0115","\\.E":"\u0116","\\.e":"\u0117","\\k E":"\u0118","\\k e":"\u0119","\\v{E}":"\u011a","\\v{e}":"\u011b","\\^G":"\u011c","\\^g":"\u011d","\\u{G}":"\u011e","\\u{g}":"\u011f","\\.G":"\u0120","\\.g":"\u0121","\\c{G}":"\u0122","\\c{g}":"\u0123","\\^H":"\u0124","\\^h":"\u0125","\\dH":"\u0126","\\dh":"\u0127","\\~I":"\u0128","\\~i":"\u0129","\\=I":"\u012a","\\=i":"\u012b","\\u{I}":"\u012c","\\u{i}":"\u012d","\\k I":"\u012e","\\k i":"\u012f","\\.I":"\u0130","\\^J":"\u0134","\\^j":"\u0135","\\c{J}":"\u0136","\\c{j}":"\u0137","\\'L":"\u0139","\\'l":"\u013a","\\c{L}":"\u013b","\\c{l}":"\u013c","\\v{L}":"\u013d","\\v{l}":"\u013e","\\dL":"\u0141","\\dl":"\u0142","\\'N":"\u0143","\\'n":"\u0144","\\c{N}":"\u0145","\\c{n}":"\u0146","\\v{N}":"\u0147","\\v{n}":"\u0148","\\=O":"\u014c","\\=o":"\u014d","\\u{O}":"\u014e","\\u{o}":"\u014f","\\H{O}":"\u0150","\\H{o}":"\u0151","\\OE":"\u0152","\\oe":"\u0153","\\'R":"\u0154","\\'r":"\u0155","\\c{R}":"\u0156","\\c{r}":"\u0157","\\v{R}":"\u0158","\\v{r}":"\u0159","\\'R":"\u015a","\\'r":"\u015b","\\^S":"\u015c","\\^s":"\u015d","\\c{S}":"\u015e","\\c{s}":"\u015f","\\v{S}":"\u0160","\\v{s}":"\u0161","\\c{T}":"\u0162","\\c{t}":"\u0163","\\v{T}":"\u0164","\\v{t}":"\u0165","\\dT":"\u0166","\\dt":"\u0167","\\~U":"\u0168","\\~u":"\u0169","\\=U":"\u016a","\\=u":"\u016b","\\u{U}":"\u016c","\\u{u}":"\u016d","\\r U":"\u016e","\\r u":"\u016f","\\H{U}":"\u0170","\\H{u}":"\u0171","\\k U":"\u0172","\\k u":"\u0173","\\^W":"\u0174","\\^w":"\u0175","\\^Y":"\u0176","\\^y":"\u0177",'\\"Y':"\u0178","\\'Z":"\u0179","\\'z":"\u017a","\\.Z":"\u017b","\\.z":"\u017c","\\v{Z}":"\u017d","\\v{z}":"\u017e"},this.w3cCharLatexMap={},this.w3cLatexCharMap={"\\space":" ","\\#":"#","\\textdollar":"$","\\%":"%","\\&":"&","\\textquotesingle":"'","\\ast":"*","\\textbackslash":"\\","\\^{}":"^","\\_":"_","\\textasciigrave":"`","\\lbrace":"{","\\vert":"|","\\rbrace":"}","\\textasciitilde":"~","\\textexclamdown":"\xa1","\\textcent":"\xa2","\\textsterling":"\xa3","\\textcurrency":"\xa4","\\textyen":"\xa5","\\textbrokenbar":"\xa6","\\textsection":"\xa7","\\textasciidieresis":"\xa8","\\textcopyright":"\xa9","\\textordfeminine":"\xaa","\\guillemotleft":"\xab","\\lnot":"\xac","\\-":"\xad","\\textregistered":"\xae","\\textasciimacron":"\xaf","\\textdegree":"\xb0","\\pm":"\xb1","\\textasciiacute":"\xb4","\\mathrm{\\mu}":"\xb5","\\textparagraph":"\xb6","\\cdot":"\xb7","\\c{}":"\xb8","\\textordmasculine":"\xba","\\guillemotright":"\xbb","\\textonequarter":"\xbc","\\textonehalf":"\xbd","\\textthreequarters":"\xbe","\\textquestiondown":"\xbf","\\`{A}":"\xc0","\\'{A}":"\xc1","\\^{A}":"\xc2","\\~{A}":"\xc3",'\\"{A}':"\xc4","\\AA":"\xc5","\\AE":"\xc6","\\c{C}":"\xc7","\\`{E}":"\xc8","\\'{E}":"\xc9","\\^{E}":"\xca",'\\"{E}':"\xcb","\\`{I}":"\xcc","\\'{I}":"\xcd","\\^{I}":"\xce",'\\"{I}':"\xcf","\\DH":"\xd0","\\~{N}":"\xd1","\\`{O}":"\xd2","\\'{O}":"\xd3","\\^{O}":"\xd4","\\~{O}":"\xd5",'\\"{O}':"\xd6","\\texttimes":"\xd7","\\O":"\xd8","\\`{U}":"\xd9","\\'{U}":"\xda","\\^{U}":"\xdb",'\\"{U}':"\xdc","\\'{Y}":"\xdd","\\TH":"\xde","\\ss":"\xdf","\\`{a}":"\xe0","\\'{a}":"\xe1","\\^{a}":"\xe2","\\~{a}":"\xe3",'\\"{a}':"\xe4","\\aa":"\xe5","\\ae":"\xe6","\\c{c}":"\xe7","\\`{e}":"\xe8","\\'{e}":"\xe9","\\^{e}":"\xea",'\\"{e}':"\xeb","\\`{\\i}":"\xec","\\'{\\i}":"\xed","\\^{\\i}":"\xee",'\\"{\\i}':"\xef","\\dh":"\xf0","\\~{n}":"\xf1","\\`{o}":"\xf2","\\'{o}":"\xf3","\\^{o}":"\xf4","\\~{o}":"\xf5",'\\"{o}':"\xf6","\\div":"\xf7","\\o":"\xf8","\\`{u}":"\xf9","\\'{u}":"\xfa","\\^{u}":"\xfb",'\\"{u}':"\xfc","\\'{y}":"\xfd","\\th":"\xfe",'\\"{y}':"\xff","\\={A}":"\u0100","\\={a}":"\u0101","\\u{A}":"\u0102","\\u{a}":"\u0103","\\k{A}":"\u0104","\\k{a}":"\u0105","\\'{C}":"\u0106","\\'{c}":"\u0107","\\^{C}":"\u0108","\\^{c}":"\u0109","\\.{C}":"\u010a","\\.{c}":"\u010b","\\v{C}":"\u010c","\\v{c}":"\u010d","\\v{D}":"\u010e","\\v{d}":"\u010f","\\DJ":"\u0110","\\dj":"\u0111","\\={E}":"\u0112","\\={e}":"\u0113","\\u{E}":"\u0114","\\u{e}":"\u0115","\\.{E}":"\u0116","\\.{e}":"\u0117","\\k{E}":"\u0118","\\k{e}":"\u0119","\\v{E}":"\u011a","\\v{e}":"\u011b","\\^{G}":"\u011c","\\^{g}":"\u011d","\\u{G}":"\u011e","\\u{g}":"\u011f","\\.{G}":"\u0120","\\.{g}":"\u0121","\\c{G}":"\u0122","\\c{g}":"\u0123","\\^{H}":"\u0124","\\^{h}":"\u0125","\\Elzxh":"\u0127","\\~{I}":"\u0128","\\~{\\i}":"\u0129","\\={I}":"\u012a","\\={\\i}":"\u012b","\\u{I}":"\u012c","\\u{\\i}":"\u012d","\\k{I}":"\u012e","\\k{i}":"\u012f","\\.{I}":"\u0130","\\i":"\u0131","\\^{J}":"\u0134","\\^{\\j}":"\u0135","\\c{K}":"\u0136","\\c{k}":"\u0137","\\'{L}":"\u0139","\\'{l}":"\u013a","\\c{L}":"\u013b","\\c{l}":"\u013c","\\v{L}":"\u013d","\\v{l}":"\u013e","\\L":"\u0141","\\l":"\u0142","\\'{N}":"\u0143","\\'{n}":"\u0144","\\c{N}":"\u0145","\\c{n}":"\u0146","\\v{N}":"\u0147","\\v{n}":"\u0148","\\NG":"\u014a","\\ng":"\u014b","\\={O}":"\u014c","\\={o}":"\u014d","\\u{O}":"\u014e","\\u{o}":"\u014f","\\H{O}":"\u0150","\\H{o}":"\u0151","\\OE":"\u0152","\\oe":"\u0153","\\'{R}":"\u0154","\\'{r}":"\u0155","\\c{R}":"\u0156","\\c{r}":"\u0157","\\v{R}":"\u0158","\\v{r}":"\u0159","\\'{S}":"\u015a","\\'{s}":"\u015b","\\^{S}":"\u015c","\\^{s}":"\u015d","\\c{S}":"\u015e","\\c{s}":"\u015f","\\v{S}":"\u0160","\\v{s}":"\u0161","\\c{T}":"\u0162","\\c{t}":"\u0163","\\v{T}":"\u0164","\\v{t}":"\u0165","\\~{U}":"\u0168","\\~{u}":"\u0169","\\={U}":"\u016a","\\={u}":"\u016b","\\u{U}":"\u016c","\\u{u}":"\u016d","\\r{U}":"\u016e","\\r{u}":"\u016f","\\H{U}":"\u0170","\\H{u}":"\u0171","\\k{U}":"\u0172","\\k{u}":"\u0173","\\^{W}":"\u0174","\\^{w}":"\u0175","\\^{Y}":"\u0176","\\^{y}":"\u0177",'\\"{Y}':"\u0178","\\'{Z}":"\u0179","\\'{z}":"\u017a","\\.{Z}":"\u017b","\\.{z}":"\u017c","\\v{Z}":"\u017d","\\v{z}":"\u017e","\\texthvlig":"\u0195","\\textnrleg":"\u019e","\\eth":"\u01aa","\\textdoublepipe":"\u01c2","\\'{g}":"\u01f5","\\Elztrna":"\u0250","\\Elztrnsa":"\u0252","\\Elzopeno":"\u0254","\\Elzrtld":"\u0256","\\Elzschwa":"\u0259","\\varepsilon":"\u025b","\\Elzpgamma":"\u0263","\\Elzpbgam":"\u0264","\\Elztrnh":"\u0265","\\Elzbtdl":"\u026c","\\Elzrtll":"\u026d","\\Elztrnm":"\u026f","\\Elztrnmlr":"\u0270","\\Elzltlmr":"\u0271","\\Elzltln":"\u0272","\\Elzrtln":"\u0273","\\Elzclomeg":"\u0277","\\textphi":"\u0278","\\Elztrnr":"\u0279","\\Elztrnrl":"\u027a","\\Elzrttrnr":"\u027b","\\Elzrl":"\u027c","\\Elzrtlr":"\u027d","\\Elzfhr":"\u027e","\\Elzrtls":"\u0282","\\Elzesh":"\u0283","\\Elztrnt":"\u0287","\\Elzrtlt":"\u0288","\\Elzpupsil":"\u028a","\\Elzpscrv":"\u028b","\\Elzinvv":"\u028c","\\Elzinvw":"\u028d","\\Elztrny":"\u028e","\\Elzrtlz":"\u0290","\\Elzyogh":"\u0292","\\Elzglst":"\u0294","\\Elzreglst":"\u0295","\\Elzinglst":"\u0296","\\textturnk":"\u029e","\\Elzdyogh":"\u02a4","\\Elztesh":"\u02a7","\\textasciicaron":"\u02c7","\\Elzverts":"\u02c8","\\Elzverti":"\u02cc","\\Elzlmrk":"\u02d0","\\Elzhlmrk":"\u02d1","\\Elzsbrhr":"\u02d2","\\Elzsblhr":"\u02d3","\\Elzrais":"\u02d4","\\Elzlow":"\u02d5","\\textasciibreve":"\u02d8","\\textperiodcentered":"\u02d9","\\r{}":"\u02da","\\k{}":"\u02db","\\texttildelow":"\u02dc","\\H{}":"\u02dd","\\tone{55}":"\u02e5","\\tone{44}":"\u02e6","\\tone{33}":"\u02e7","\\tone{22}":"\u02e8","\\tone{11}":"\u02e9","\\`":"\u0300","\\'":"\u0301","\\^":"\u0302","\\~":"\u0303","\\=":"\u0304","\\u":"\u0306","\\.":"\u0307",'\\"':"\u0308","\\r":"\u030a","\\H":"\u030b","\\v":"\u030c","\\cyrchar\\C":"\u030f","\\Elzpalh":"\u0321","\\Elzrh":"\u0322","\\c":"\u0327","\\k":"\u0328","\\Elzsbbrg":"\u032a","\\Elzxl":"\u0335","\\Elzbar":"\u0336","\\'{H}":"\u0389","\\'{}{I}":"\u038a","\\'{}O":"\u038c","\\mathrm{'Y}":"\u038e","\\mathrm{'\\Omega}":"\u038f","\\acute{\\ddot{\\iota}}":"\u0390","\\Alpha":"\u0391","\\Beta":"\u0392","\\Gamma":"\u0393","\\Delta":"\u0394","\\Epsilon":"\u0395","\\Zeta":"\u0396","\\Eta":"\u0397","\\Theta":"\u0398","\\Iota":"\u0399","\\Kappa":"\u039a","\\Lambda":"\u039b","\\Xi":"\u039e","\\Pi":"\u03a0","\\Rho":"\u03a1","\\Sigma":"\u03a3","\\Tau":"\u03a4","\\Upsilon":"\u03a5","\\Phi":"\u03a6","\\Chi":"\u03a7","\\Psi":"\u03a8","\\Omega":"\u03a9","\\mathrm{\\ddot{I}}":"\u03aa","\\mathrm{\\ddot{Y}}":"\u03ab","\\'{$\\alpha$}":"\u03ac","\\acute{\\epsilon}":"\u03ad","\\acute{\\eta}":"\u03ae","\\acute{\\iota}":"\u03af","\\acute{\\ddot{\\upsilon}}":"\u03b0","\\alpha":"\u03b1","\\beta":"\u03b2","\\gamma":"\u03b3","\\delta":"\u03b4","\\epsilon":"\u03b5","\\zeta":"\u03b6","\\eta":"\u03b7","\\texttheta":"\u03b8","\\iota":"\u03b9","\\kappa":"\u03ba","\\lambda":"\u03bb","\\mu":"\u03bc","\\nu":"\u03bd","\\xi":"\u03be","\\pi":"\u03c0","\\rho":"\u03c1","\\varsigma":"\u03c2","\\sigma":"\u03c3","\\tau":"\u03c4","\\upsilon":"\u03c5","\\varphi":"\u03c6","\\chi":"\u03c7","\\psi":"\u03c8","\\omega":"\u03c9","\\ddot{\\iota}":"\u03ca","\\ddot{\\upsilon}":"\u03cb","\\acute{\\upsilon}":"\u03cd","\\acute{\\omega}":"\u03ce","\\Pisymbol{ppi022}{87}":"\u03d0","\\textvartheta":"\u03d1","\\phi":"\u03d5","\\varpi":"\u03d6","\\Stigma":"\u03da","\\Digamma":"\u03dc","\\digamma":"\u03dd","\\Koppa":"\u03de","\\Sampi":"\u03e0","\\varkappa":"\u03f0","\\varrho":"\u03f1","\\textTheta":"\u03f4","\\backepsilon":"\u03f6","\\cyrchar\\CYRYO":"\u0401","\\cyrchar\\CYRDJE":"\u0402","\\cyrchar{\\'\\CYRG}":"\u0403","\\cyrchar\\CYRIE":"\u0404","\\cyrchar\\CYRDZE":"\u0405","\\cyrchar\\CYRII":"\u0406","\\cyrchar\\CYRYI":"\u0407","\\cyrchar\\CYRJE":"\u0408","\\cyrchar\\CYRLJE":"\u0409","\\cyrchar\\CYRNJE":"\u040a","\\cyrchar\\CYRTSHE":"\u040b","\\cyrchar{\\'\\CYRK}":"\u040c","\\cyrchar\\CYRUSHRT":"\u040e","\\cyrchar\\CYRDZHE":"\u040f","\\cyrchar\\CYRA":"\u0410","\\cyrchar\\CYRB":"\u0411","\\cyrchar\\CYRV":"\u0412","\\cyrchar\\CYRG":"\u0413","\\cyrchar\\CYRD":"\u0414","\\cyrchar\\CYRE":"\u0415","\\cyrchar\\CYRZH":"\u0416","\\cyrchar\\CYRZ":"\u0417","\\cyrchar\\CYRI":"\u0418","\\cyrchar\\CYRISHRT":"\u0419","\\cyrchar\\CYRK":"\u041a","\\cyrchar\\CYRL":"\u041b","\\cyrchar\\CYRM":"\u041c","\\cyrchar\\CYRN":"\u041d","\\cyrchar\\CYRO":"\u041e","\\cyrchar\\CYRP":"\u041f","\\cyrchar\\CYRR":"\u0420","\\cyrchar\\CYRS":"\u0421","\\cyrchar\\CYRT":"\u0422","\\cyrchar\\CYRU":"\u0423","\\cyrchar\\CYRF":"\u0424","\\cyrchar\\CYRH":"\u0425","\\cyrchar\\CYRC":"\u0426","\\cyrchar\\CYRCH":"\u0427","\\cyrchar\\CYRSH":"\u0428","\\cyrchar\\CYRSHCH":"\u0429","\\cyrchar\\CYRHRDSN":"\u042a","\\cyrchar\\CYRERY":"\u042b","\\cyrchar\\CYRSFTSN":"\u042c","\\cyrchar\\CYREREV":"\u042d","\\cyrchar\\CYRYU":"\u042e","\\cyrchar\\CYRYA":"\u042f","\\cyrchar\\cyra":"\u0430","\\cyrchar\\cyrb":"\u0431","\\cyrchar\\cyrv":"\u0432","\\cyrchar\\cyrg":"\u0433","\\cyrchar\\cyrd":"\u0434","\\cyrchar\\cyre":"\u0435","\\cyrchar\\cyrzh":"\u0436","\\cyrchar\\cyrz":"\u0437","\\cyrchar\\cyri":"\u0438","\\cyrchar\\cyrishrt":"\u0439","\\cyrchar\\cyrk":"\u043a","\\cyrchar\\cyrl":"\u043b","\\cyrchar\\cyrm":"\u043c","\\cyrchar\\cyrn":"\u043d","\\cyrchar\\cyro":"\u043e","\\cyrchar\\cyrp":"\u043f","\\cyrchar\\cyrr":"\u0440","\\cyrchar\\cyrs":"\u0441","\\cyrchar\\cyrt":"\u0442","\\cyrchar\\cyru":"\u0443","\\cyrchar\\cyrf":"\u0444","\\cyrchar\\cyrh":"\u0445","\\cyrchar\\cyrc":"\u0446","\\cyrchar\\cyrch":"\u0447","\\cyrchar\\cyrsh":"\u0448","\\cyrchar\\cyrshch":"\u0449","\\cyrchar\\cyrhrdsn":"\u044a","\\cyrchar\\cyrery":"\u044b","\\cyrchar\\cyrsftsn":"\u044c","\\cyrchar\\cyrerev":"\u044d","\\cyrchar\\cyryu":"\u044e","\\cyrchar\\cyrya":"\u044f","\\cyrchar\\cyryo":"\u0451","\\cyrchar\\cyrdje":"\u0452","\\cyrchar{\\'\\cyrg}":"\u0453","\\cyrchar\\cyrie":"\u0454","\\cyrchar\\cyrdze":"\u0455","\\cyrchar\\cyrii":"\u0456","\\cyrchar\\cyryi":"\u0457","\\cyrchar\\cyrje":"\u0458","\\cyrchar\\cyrlje":"\u0459","\\cyrchar\\cyrnje":"\u045a","\\cyrchar\\cyrtshe":"\u045b","\\cyrchar{\\'\\cyrk}":"\u045c","\\cyrchar\\cyrushrt":"\u045e","\\cyrchar\\cyrdzhe":"\u045f","\\cyrchar\\CYROMEGA":"\u0460","\\cyrchar\\cyromega":"\u0461","\\cyrchar\\CYRYAT":"\u0462","\\cyrchar\\CYRIOTE":"\u0464","\\cyrchar\\cyriote":"\u0465","\\cyrchar\\CYRLYUS":"\u0466","\\cyrchar\\cyrlyus":"\u0467","\\cyrchar\\CYRIOTLYUS":"\u0468","\\cyrchar\\cyriotlyus":"\u0469","\\cyrchar\\CYRBYUS":"\u046a","\\cyrchar\\CYRIOTBYUS":"\u046c","\\cyrchar\\cyriotbyus":"\u046d","\\cyrchar\\CYRKSI":"\u046e","\\cyrchar\\cyrksi":"\u046f","\\cyrchar\\CYRPSI":"\u0470","\\cyrchar\\cyrpsi":"\u0471","\\cyrchar\\CYRFITA":"\u0472","\\cyrchar\\CYRIZH":"\u0474","\\cyrchar\\CYRUK":"\u0478","\\cyrchar\\cyruk":"\u0479","\\cyrchar\\CYROMEGARND":"\u047a","\\cyrchar\\cyromegarnd":"\u047b","\\cyrchar\\CYROMEGATITLO":"\u047c","\\cyrchar\\cyromegatitlo":"\u047d","\\cyrchar\\CYROT":"\u047e","\\cyrchar\\cyrot":"\u047f","\\cyrchar\\CYRKOPPA":"\u0480","\\cyrchar\\cyrkoppa":"\u0481","\\cyrchar\\cyrthousands":"\u0482","\\cyrchar\\cyrhundredthousands":"\u0488","\\cyrchar\\cyrmillions":"\u0489","\\cyrchar\\CYRSEMISFTSN":"\u048c","\\cyrchar\\cyrsemisftsn":"\u048d","\\cyrchar\\CYRRTICK":"\u048e","\\cyrchar\\cyrrtick":"\u048f","\\cyrchar\\CYRGUP":"\u0490","\\cyrchar\\cyrgup":"\u0491","\\cyrchar\\CYRGHCRS":"\u0492","\\cyrchar\\cyrghcrs":"\u0493","\\cyrchar\\CYRGHK":"\u0494","\\cyrchar\\cyrghk":"\u0495","\\cyrchar\\CYRZHDSC":"\u0496","\\cyrchar\\cyrzhdsc":"\u0497","\\cyrchar\\CYRZDSC":"\u0498","\\cyrchar\\cyrzdsc":"\u0499","\\cyrchar\\CYRKDSC":"\u049a","\\cyrchar\\cyrkdsc":"\u049b","\\cyrchar\\CYRKVCRS":"\u049c","\\cyrchar\\cyrkvcrs":"\u049d","\\cyrchar\\CYRKHCRS":"\u049e","\\cyrchar\\cyrkhcrs":"\u049f","\\cyrchar\\CYRKBEAK":"\u04a0","\\cyrchar\\cyrkbeak":"\u04a1","\\cyrchar\\CYRNDSC":"\u04a2","\\cyrchar\\cyrndsc":"\u04a3","\\cyrchar\\CYRNG":"\u04a4","\\cyrchar\\cyrng":"\u04a5","\\cyrchar\\CYRPHK":"\u04a6","\\cyrchar\\cyrphk":"\u04a7","\\cyrchar\\CYRABHHA":"\u04a8","\\cyrchar\\cyrabhha":"\u04a9","\\cyrchar\\CYRSDSC":"\u04aa","\\cyrchar\\cyrsdsc":"\u04ab","\\cyrchar\\CYRTDSC":"\u04ac","\\cyrchar\\cyrtdsc":"\u04ad","\\cyrchar\\CYRY":"\u04ae","\\cyrchar\\cyry":"\u04af","\\cyrchar\\CYRYHCRS":"\u04b0","\\cyrchar\\cyryhcrs":"\u04b1","\\cyrchar\\CYRHDSC":"\u04b2","\\cyrchar\\cyrhdsc":"\u04b3","\\cyrchar\\CYRTETSE":"\u04b4","\\cyrchar\\cyrtetse":"\u04b5","\\cyrchar\\CYRCHRDSC":"\u04b6","\\cyrchar\\cyrchrdsc":"\u04b7","\\cyrchar\\CYRCHVCRS":"\u04b8","\\cyrchar\\cyrchvcrs":"\u04b9","\\cyrchar\\CYRSHHA":"\u04ba","\\cyrchar\\cyrshha":"\u04bb","\\cyrchar\\CYRABHCH":"\u04bc","\\cyrchar\\cyrabhch":"\u04bd","\\cyrchar\\CYRABHCHDSC":"\u04be","\\cyrchar\\cyrabhchdsc":"\u04bf","\\cyrchar\\CYRpalochka":"\u04c0","\\cyrchar\\CYRKHK":"\u04c3","\\cyrchar\\cyrkhk":"\u04c4","\\cyrchar\\CYRNHK":"\u04c7","\\cyrchar\\cyrnhk":"\u04c8","\\cyrchar\\CYRCHLDSC":"\u04cb","\\cyrchar\\cyrchldsc":"\u04cc","\\cyrchar\\CYRAE":"\u04d4","\\cyrchar\\cyrae":"\u04d5","\\cyrchar\\CYRSCHWA":"\u04d8","\\cyrchar\\cyrschwa":"\u04d9","\\cyrchar\\CYRABHDZE":"\u04e0","\\cyrchar\\cyrabhdze":"\u04e1","\\cyrchar\\CYROTLD":"\u04e8","\\cyrchar\\cyrotld":"\u04e9","\\hspace{0.6em}":"\u2002","\\hspace{1em}":"\u2003","\\hspace{0.33em}":"\u2004","\\hspace{0.25em}":"\u2005","\\hspace{0.166em}":"\u2006","\\hphantom{0}":"\u2007","\\hphantom{,}":"\u2008","\\hspace{0.167em}":"\u2009","\\mkern1mu":"\u200a","\\textendash":"\u2013","\\textemdash":"\u2014","\\rule{1em}{1pt}":"\u2015","\\Vert":"\u2016","\\Elzreapos":"\u201b","\\textquotedblleft":"\u201c","\\textquotedblright":"\u201d","\\textdagger":"\u2020","\\textdaggerdbl":"\u2021","\\textbullet":"\u2022","\\ldots":"\u2026","\\textperthousand":"\u2030","\\textpertenthousand":"\u2031","\\backprime":"\u2035","\\guilsinglleft":"\u2039","\\guilsinglright":"\u203a","\\mkern4mu":"\u205f","\\nolinebreak":"\u2060","\\ensuremath{\\Elzpes}":"\u20a7","\\mbox{\\texteuro}":"\u20ac","\\dddot":"\u20db","\\ddddot":"\u20dc","\\mathbb{C}":"\u2102","\\mathscr{g}":"\u210a","\\mathscr{H}":"\u210b","\\mathfrak{H}":"\u210c","\\mathbb{H}":"\u210d","\\hslash":"\u210f","\\mathscr{I}":"\u2110","\\mathfrak{I}":"\u2111","\\mathscr{L}":"\u2112","\\mathscr{l}":"\u2113","\\mathbb{N}":"\u2115","\\cyrchar\\textnumero":"\u2116","\\wp":"\u2118","\\mathbb{P}":"\u2119","\\mathbb{Q}":"\u211a","\\mathscr{R}":"\u211b","\\mathfrak{R}":"\u211c","\\mathbb{R}":"\u211d","\\Elzxrat":"\u211e","\\texttrademark":"\u2122","\\mathbb{Z}":"\u2124","\\mho":"\u2127","\\mathfrak{Z}":"\u2128","\\ElsevierGlyph{2129}":"\u2129","\\mathscr{B}":"\u212c","\\mathfrak{C}":"\u212d","\\mathscr{e}":"\u212f","\\mathscr{E}":"\u2130","\\mathscr{F}":"\u2131","\\mathscr{M}":"\u2133","\\mathscr{o}":"\u2134","\\aleph":"\u2135","\\beth":"\u2136","\\gimel":"\u2137","\\daleth":"\u2138","\\textfrac{1}{3}":"\u2153","\\textfrac{2}{3}":"\u2154","\\textfrac{1}{5}":"\u2155","\\textfrac{2}{5}":"\u2156","\\textfrac{3}{5}":"\u2157","\\textfrac{4}{5}":"\u2158","\\textfrac{1}{6}":"\u2159","\\textfrac{5}{6}":"\u215a","\\textfrac{1}{8}":"\u215b","\\textfrac{3}{8}":"\u215c","\\textfrac{5}{8}":"\u215d","\\textfrac{7}{8}":"\u215e","\\leftarrow":"\u2190","\\uparrow":"\u2191","\\rightarrow":"\u2192","\\downarrow":"\u2193","\\leftrightarrow":"\u2194","\\updownarrow":"\u2195","\\nwarrow":"\u2196","\\nearrow":"\u2197","\\searrow":"\u2198","\\swarrow":"\u2199","\\nleftarrow":"\u219a","\\nrightarrow":"\u219b","\\arrowwaveleft":"\u219c","\\arrowwaveright":"\u219d","\\twoheadleftarrow":"\u219e","\\twoheadrightarrow":"\u21a0","\\leftarrowtail":"\u21a2","\\rightarrowtail":"\u21a3","\\mapsto":"\u21a6","\\hookleftarrow":"\u21a9","\\hookrightarrow":"\u21aa","\\looparrowleft":"\u21ab","\\looparrowright":"\u21ac","\\leftrightsquigarrow":"\u21ad","\\nleftrightarrow":"\u21ae","\\Lsh":"\u21b0","\\Rsh":"\u21b1","\\ElsevierGlyph{21B3}":"\u21b3","\\curvearrowleft":"\u21b6","\\curvearrowright":"\u21b7","\\circlearrowleft":"\u21ba","\\circlearrowright":"\u21bb","\\leftharpoonup":"\u21bc","\\leftharpoondown":"\u21bd","\\upharpoonright":"\u21be","\\upharpoonleft":"\u21bf","\\rightharpoonup":"\u21c0","\\rightharpoondown":"\u21c1","\\downharpoonright":"\u21c2","\\downharpoonleft":"\u21c3","\\rightleftarrows":"\u21c4","\\dblarrowupdown":"\u21c5","\\leftrightarrows":"\u21c6","\\leftleftarrows":"\u21c7","\\upuparrows":"\u21c8","\\rightrightarrows":"\u21c9","\\downdownarrows":"\u21ca","\\leftrightharpoons":"\u21cb","\\rightleftharpoons":"\u21cc","\\nLeftarrow":"\u21cd","\\nLeftrightarrow":"\u21ce","\\nRightarrow":"\u21cf","\\Leftarrow":"\u21d0","\\Uparrow":"\u21d1","\\Rightarrow":"\u21d2","\\Downarrow":"\u21d3","\\Leftrightarrow":"\u21d4","\\Updownarrow":"\u21d5","\\Lleftarrow":"\u21da","\\Rrightarrow":"\u21db","\\rightsquigarrow":"\u21dd","\\DownArrowUpArrow":"\u21f5","\\forall":"\u2200","\\complement":"\u2201","\\partial":"\u2202","\\exists":"\u2203","\\nexists":"\u2204","\\varnothing":"\u2205","\\nabla":"\u2207","\\in":"\u2208","\\not\\in":"\u2209","\\ni":"\u220b","\\not\\ni":"\u220c","\\prod":"\u220f","\\coprod":"\u2210","\\sum":"\u2211","\\mp":"\u2213","\\dotplus":"\u2214","\\setminus":"\u2216","\\circ":"\u2218","\\bullet":"\u2219","\\surd":"\u221a","\\propto":"\u221d","\\infty":"\u221e","\\rightangle":"\u221f","\\angle":"\u2220","\\measuredangle":"\u2221","\\sphericalangle":"\u2222","\\mid":"\u2223","\\nmid":"\u2224","\\parallel":"\u2225","\\nparallel":"\u2226","\\wedge":"\u2227","\\vee":"\u2228","\\cap":"\u2229","\\cup":"\u222a","\\int":"\u222b","\\int\\!\\int":"\u222c","\\int\\!\\int\\!\\int":"\u222d","\\oint":"\u222e","\\surfintegral":"\u222f","\\volintegral":"\u2230","\\clwintegral":"\u2231","\\ElsevierGlyph{2232}":"\u2232","\\ElsevierGlyph{2233}":"\u2233","\\therefore":"\u2234","\\because":"\u2235","\\Colon":"\u2237","\\ElsevierGlyph{2238}":"\u2238","\\mathbin{{:}\\!\\!{-}\\!\\!{:}}":"\u223a","\\homothetic":"\u223b","\\sim":"\u223c","\\backsim":"\u223d","\\lazysinv":"\u223e","\\wr":"\u2240","\\not\\sim":"\u2241","\\ElsevierGlyph{2242}":"\u2242","\\simeq":"\u2243","\\not\\simeq":"\u2244","\\cong":"\u2245","\\approxnotequal":"\u2246","\\not\\cong":"\u2247","\\approx":"\u2248","\\not\\approx":"\u2249","\\approxeq":"\u224a","\\tildetrpl":"\u224b","\\allequal":"\u224c","\\asymp":"\u224d","\\Bumpeq":"\u224e","\\bumpeq":"\u224f","\\doteq":"\u2250","\\doteqdot":"\u2251","\\fallingdotseq":"\u2252","\\risingdotseq":"\u2253","\\eqcirc":"\u2256","\\circeq":"\u2257","\\estimates":"\u2259","\\ElsevierGlyph{225A}":"\u225a","\\starequal":"\u225b","\\triangleq":"\u225c","\\ElsevierGlyph{225F}":"\u225f","\\not =":"\u2260","\\equiv":"\u2261","\\not\\equiv":"\u2262","\\leq":"\u2264","\\geq":"\u2265","\\leqq":"\u2266","\\geqq":"\u2267","\\lneqq":"\u2268","\\gneqq":"\u2269","\\ll":"\u226a","\\gg":"\u226b","\\between":"\u226c","\\not\\kern-0.3em\\times":"\u226d","\\not<":"\u226e","\\not>":"\u226f","\\not\\leq":"\u2270","\\not\\geq":"\u2271","\\lessequivlnt":"\u2272","\\greaterequivlnt":"\u2273","\\ElsevierGlyph{2274}":"\u2274","\\ElsevierGlyph{2275}":"\u2275","\\lessgtr":"\u2276","\\gtrless":"\u2277","\\notlessgreater":"\u2278","\\notgreaterless":"\u2279","\\prec":"\u227a","\\succ":"\u227b","\\preccurlyeq":"\u227c","\\succcurlyeq":"\u227d","\\precapprox":"\u227e","\\succapprox":"\u227f","\\not\\prec":"\u2280","\\not\\succ":"\u2281","\\subset":"\u2282","\\supset":"\u2283","\\not\\subset":"\u2284","\\not\\supset":"\u2285","\\subseteq":"\u2286","\\supseteq":"\u2287","\\not\\subseteq":"\u2288","\\not\\supseteq":"\u2289","\\subsetneq":"\u228a","\\supsetneq":"\u228b","\\uplus":"\u228e","\\sqsubset":"\u228f","\\sqsupset":"\u2290","\\sqsubseteq":"\u2291","\\sqsupseteq":"\u2292","\\sqcap":"\u2293","\\sqcup":"\u2294","\\oplus":"\u2295","\\ominus":"\u2296","\\otimes":"\u2297","\\oslash":"\u2298","\\odot":"\u2299","\\circledcirc":"\u229a","\\circledast":"\u229b","\\circleddash":"\u229d","\\boxplus":"\u229e","\\boxminus":"\u229f","\\boxtimes":"\u22a0","\\boxdot":"\u22a1","\\vdash":"\u22a2","\\dashv":"\u22a3","\\top":"\u22a4","\\perp":"\u22a5","\\truestate":"\u22a7","\\forcesextra":"\u22a8","\\Vdash":"\u22a9","\\Vvdash":"\u22aa","\\VDash":"\u22ab","\\nvdash":"\u22ac","\\nvDash":"\u22ad","\\nVdash":"\u22ae","\\nVDash":"\u22af","\\vartriangleleft":"\u22b2","\\vartriangleright":"\u22b3","\\trianglelefteq":"\u22b4","\\trianglerighteq":"\u22b5","\\original":"\u22b6","\\image":"\u22b7","\\multimap":"\u22b8","\\hermitconjmatrix":"\u22b9","\\intercal":"\u22ba","\\veebar":"\u22bb","\\rightanglearc":"\u22be","\\ElsevierGlyph{22C0}":"\u22c0","\\ElsevierGlyph{22C1}":"\u22c1","\\bigcap":"\u22c2","\\bigcup":"\u22c3","\\diamond":"\u22c4","\\star":"\u22c6","\\divideontimes":"\u22c7","\\bowtie":"\u22c8","\\ltimes":"\u22c9","\\rtimes":"\u22ca","\\leftthreetimes":"\u22cb","\\rightthreetimes":"\u22cc","\\backsimeq":"\u22cd","\\curlyvee":"\u22ce","\\curlywedge":"\u22cf","\\Subset":"\u22d0","\\Supset":"\u22d1","\\Cap":"\u22d2","\\Cup":"\u22d3","\\pitchfork":"\u22d4","\\lessdot":"\u22d6","\\gtrdot":"\u22d7","\\verymuchless":"\u22d8","\\verymuchgreater":"\u22d9","\\lesseqgtr":"\u22da","\\gtreqless":"\u22db","\\curlyeqprec":"\u22de","\\curlyeqsucc":"\u22df","\\not\\sqsubseteq":"\u22e2","\\not\\sqsupseteq":"\u22e3","\\Elzsqspne":"\u22e5","\\lnsim":"\u22e6","\\gnsim":"\u22e7","\\precedesnotsimilar":"\u22e8","\\succnsim":"\u22e9","\\ntriangleleft":"\u22ea","\\ntriangleright":"\u22eb","\\ntrianglelefteq":"\u22ec","\\ntrianglerighteq":"\u22ed","\\vdots":"\u22ee","\\cdots":"\u22ef","\\upslopeellipsis":"\u22f0","\\downslopeellipsis":"\u22f1","\\barwedge":"\u2305","\\varperspcorrespond":"\u2306","\\lceil":"\u2308","\\rceil":"\u2309","\\lfloor":"\u230a","\\rfloor":"\u230b","\\recorder":"\u2315",'\\mathchar"2208':"\u2316","\\ulcorner":"\u231c","\\urcorner":"\u231d","\\llcorner":"\u231e","\\lrcorner":"\u231f","\\frown":"\u2322","\\smile":"\u2323","\\ElsevierGlyph{E838}":"\u233d","\\Elzdlcorn":"\u23a3","\\lmoustache":"\u23b0","\\rmoustache":"\u23b1","\\textvisiblespace":"\u2423","\\ding{172}":"\u2460","\\ding{173}":"\u2461","\\ding{174}":"\u2462","\\ding{175}":"\u2463","\\ding{176}":"\u2464","\\ding{177}":"\u2465","\\ding{178}":"\u2466","\\ding{179}":"\u2467","\\ding{180}":"\u2468","\\ding{181}":"\u2469","\\circledS":"\u24c8","\\Elzdshfnc":"\u2506","\\Elzsqfnw":"\u2519","\\diagup":"\u2571","\\ding{110}":"\u25a0","\\square":"\u25a1","\\blacksquare":"\u25aa","\\fbox{~~}":"\u25ad","\\Elzvrecto":"\u25af","\\ElsevierGlyph{E381}":"\u25b1","\\ding{115}":"\u25b2","\\bigtriangleup":"\u25b3","\\blacktriangle":"\u25b4","\\vartriangle":"\u25b5","\\blacktriangleright":"\u25b8","\\triangleright":"\u25b9","\\ding{116}":"\u25bc","\\bigtriangledown":"\u25bd","\\blacktriangledown":"\u25be","\\triangledown":"\u25bf","\\blacktriangleleft":"\u25c2","\\triangleleft":"\u25c3","\\ding{117}":"\u25c6","\\lozenge":"\u25ca","\\bigcirc":"\u25cb","\\ding{108}":"\u25cf","\\Elzcirfl":"\u25d0","\\Elzcirfr":"\u25d1","\\Elzcirfb":"\u25d2","\\ding{119}":"\u25d7","\\Elzrvbull":"\u25d8","\\Elzsqfl":"\u25e7","\\Elzsqfr":"\u25e8","\\Elzsqfse":"\u25ea","\\ding{72}":"\u2605","\\ding{73}":"\u2606","\\ding{37}":"\u260e","\\ding{42}":"\u261b","\\ding{43}":"\u261e","\\rightmoon":"\u263e","\\mercury":"\u263f","\\venus":"\u2640","\\male":"\u2642","\\jupiter":"\u2643","\\saturn":"\u2644","\\uranus":"\u2645","\\neptune":"\u2646","\\pluto":"\u2647","\\aries":"\u2648","\\taurus":"\u2649","\\gemini":"\u264a","\\cancer":"\u264b","\\leo":"\u264c","\\virgo":"\u264d","\\libra":"\u264e","\\scorpio":"\u264f","\\sagittarius":"\u2650","\\capricornus":"\u2651","\\aquarius":"\u2652","\\pisces":"\u2653","\\ding{171}":"\u2660","\\ding{168}":"\u2663","\\ding{170}":"\u2665","\\ding{169}":"\u2666","\\quarternote":"\u2669","\\eighthnote":"\u266a","\\flat":"\u266d","\\natural":"\u266e","\\sharp":"\u266f","\\ding{33}":"\u2701","\\ding{34}":"\u2702","\\ding{35}":"\u2703","\\ding{36}":"\u2704","\\ding{38}":"\u2706","\\ding{39}":"\u2707","\\ding{40}":"\u2708","\\ding{41}":"\u2709","\\ding{44}":"\u270c","\\ding{45}":"\u270d","\\ding{46}":"\u270e","\\ding{47}":"\u270f","\\ding{48}":"\u2710","\\ding{49}":"\u2711","\\ding{50}":"\u2712","\\ding{51}":"\u2713","\\ding{52}":"\u2714","\\ding{53}":"\u2715","\\ding{54}":"\u2716","\\ding{55}":"\u2717","\\ding{56}":"\u2718","\\ding{57}":"\u2719","\\ding{58}":"\u271a","\\ding{59}":"\u271b","\\ding{60}":"\u271c","\\ding{61}":"\u271d","\\ding{62}":"\u271e","\\ding{63}":"\u271f","\\ding{64}":"\u2720","\\ding{65}":"\u2721","\\ding{66}":"\u2722","\\ding{67}":"\u2723","\\ding{68}":"\u2724","\\ding{69}":"\u2725","\\ding{70}":"\u2726","\\ding{71}":"\u2727","\\ding{74}":"\u272a","\\ding{75}":"\u272b","\\ding{76}":"\u272c","\\ding{77}":"\u272d","\\ding{78}":"\u272e","\\ding{79}":"\u272f","\\ding{80}":"\u2730","\\ding{81}":"\u2731","\\ding{82}":"\u2732","\\ding{83}":"\u2733","\\ding{84}":"\u2734","\\ding{85}":"\u2735","\\ding{86}":"\u2736","\\ding{87}":"\u2737","\\ding{88}":"\u2738","\\ding{89}":"\u2739","\\ding{90}":"\u273a","\\ding{91}":"\u273b","\\ding{92}":"\u273c","\\ding{93}":"\u273d","\\ding{94}":"\u273e","\\ding{95}":"\u273f","\\ding{96}":"\u2740","\\ding{97}":"\u2741","\\ding{98}":"\u2742","\\ding{99}":"\u2743","\\ding{100}":"\u2744","\\ding{101}":"\u2745","\\ding{102}":"\u2746","\\ding{103}":"\u2747","\\ding{104}":"\u2748","\\ding{105}":"\u2749","\\ding{106}":"\u274a","\\ding{107}":"\u274b","\\ding{109}":"\u274d","\\ding{111}":"\u274f","\\ding{112}":"\u2750","\\ding{113}":"\u2751","\\ding{114}":"\u2752","\\ding{118}":"\u2756","\\ding{120}":"\u2758","\\ding{121}":"\u2759","\\ding{122}":"\u275a","\\ding{123}":"\u275b","\\ding{124}":"\u275c","\\ding{125}":"\u275d","\\ding{126}":"\u275e","\\ding{161}":"\u2761","\\ding{162}":"\u2762","\\ding{163}":"\u2763","\\ding{164}":"\u2764","\\ding{165}":"\u2765","\\ding{166}":"\u2766","\\ding{167}":"\u2767","\\ding{182}":"\u2776","\\ding{183}":"\u2777","\\ding{184}":"\u2778","\\ding{185}":"\u2779","\\ding{186}":"\u277a","\\ding{187}":"\u277b","\\ding{188}":"\u277c","\\ding{189}":"\u277d","\\ding{190}":"\u277e","\\ding{191}":"\u277f","\\ding{192}":"\u2780","\\ding{193}":"\u2781","\\ding{194}":"\u2782","\\ding{195}":"\u2783","\\ding{196}":"\u2784","\\ding{197}":"\u2785","\\ding{198}":"\u2786","\\ding{199}":"\u2787","\\ding{200}":"\u2788","\\ding{201}":"\u2789","\\ding{202}":"\u278a","\\ding{203}":"\u278b","\\ding{204}":"\u278c","\\ding{205}":"\u278d","\\ding{206}":"\u278e","\\ding{207}":"\u278f","\\ding{208}":"\u2790","\\ding{209}":"\u2791","\\ding{210}":"\u2792","\\ding{211}":"\u2793","\\ding{212}":"\u2794","\\ding{216}":"\u2798","\\ding{217}":"\u2799","\\ding{218}":"\u279a","\\ding{219}":"\u279b","\\ding{220}":"\u279c","\\ding{221}":"\u279d","\\ding{222}":"\u279e","\\ding{223}":"\u279f","\\ding{224}":"\u27a0","\\ding{225}":"\u27a1","\\ding{226}":"\u27a2","\\ding{227}":"\u27a3","\\ding{228}":"\u27a4","\\ding{229}":"\u27a5","\\ding{230}":"\u27a6","\\ding{231}":"\u27a7","\\ding{232}":"\u27a8","\\ding{233}":"\u27a9","\\ding{234}":"\u27aa","\\ding{235}":"\u27ab","\\ding{236}":"\u27ac","\\ding{237}":"\u27ad","\\ding{238}":"\u27ae","\\ding{239}":"\u27af","\\ding{241}":"\u27b1","\\ding{242}":"\u27b2","\\ding{243}":"\u27b3","\\ding{244}":"\u27b4","\\ding{245}":"\u27b5","\\ding{246}":"\u27b6","\\ding{247}":"\u27b7","\\ding{248}":"\u27b8","\\ding{249}":"\u27b9","\\ding{250}":"\u27ba","\\ding{251}":"\u27bb","\\ding{252}":"\u27bc","\\ding{253}":"\u27bd","\\ding{254}":"\u27be","\\langle":"\u27e8","\\rangle":"\u27e9","\\longleftarrow":"\u27f5","\\longrightarrow":"\u27f6","\\longleftrightarrow":"\u27f7","\\Longleftarrow":"\u27f8","\\Longrightarrow":"\u27f9","\\Longleftrightarrow":"\u27fa","\\longmapsto":"\u27fc","\\sim\\joinrel\\leadsto":"\u27ff","\\ElsevierGlyph{E212}":"\u2905","\\UpArrowBar":"\u2912","\\DownArrowBar":"\u2913","\\ElsevierGlyph{E20C}":"\u2923","\\ElsevierGlyph{E20D}":"\u2924","\\ElsevierGlyph{E20B}":"\u2925","\\ElsevierGlyph{E20A}":"\u2926","\\ElsevierGlyph{E211}":"\u2927","\\ElsevierGlyph{E20E}":"\u2928","\\ElsevierGlyph{E20F}":"\u2929","\\ElsevierGlyph{E210}":"\u292a","\\ElsevierGlyph{E21C}":"\u2933","\\ElsevierGlyph{E21A}":"\u2936","\\ElsevierGlyph{E219}":"\u2937","\\Elolarr":"\u2940","\\Elorarr":"\u2941","\\ElzRlarr":"\u2942","\\ElzrLarr":"\u2944","\\Elzrarrx":"\u2947","\\LeftRightVector":"\u294e","\\RightUpDownVector":"\u294f","\\DownLeftRightVector":"\u2950","\\LeftUpDownVector":"\u2951","\\LeftVectorBar":"\u2952","\\RightVectorBar":"\u2953","\\RightUpVectorBar":"\u2954","\\RightDownVectorBar":"\u2955","\\DownLeftVectorBar":"\u2956","\\DownRightVectorBar":"\u2957","\\LeftUpVectorBar":"\u2958","\\LeftDownVectorBar":"\u2959","\\LeftTeeVector":"\u295a","\\RightTeeVector":"\u295b","\\RightUpTeeVector":"\u295c","\\RightDownTeeVector":"\u295d","\\DownLeftTeeVector":"\u295e","\\DownRightTeeVector":"\u295f","\\LeftUpTeeVector":"\u2960","\\LeftDownTeeVector":"\u2961","\\UpEquilibrium":"\u296e","\\ReverseUpEquilibrium":"\u296f","\\RoundImplies":"\u2970","\\ElsevierGlyph{E214}":"\u297c","\\ElsevierGlyph{E215}":"\u297d","\\Elztfnc":"\u2980","\\ElsevierGlyph{3018}":"\u2985","\\Elroang":"\u2986","\\ElsevierGlyph{E291}":"\u2994","\\Elzddfnc":"\u2999","\\Angle":"\u299c","\\Elzlpargt":"\u29a0","\\ElsevierGlyph{E260}":"\u29b5","\\ElsevierGlyph{E61B}":"\u29b6","\\ElzLap":"\u29ca","\\Elzdefas":"\u29cb","\\LeftTriangleBar":"\u29cf","\\RightTriangleBar":"\u29d0","\\ElsevierGlyph{E372}":"\u29dc","\\blacklozenge":"\u29eb","\\RuleDelayed":"\u29f4","\\Elxuplus":"\u2a04","\\ElzThr":"\u2a05","\\Elxsqcup":"\u2a06","\\ElzInf":"\u2a07","\\ElzSup":"\u2a08","\\ElzCint":"\u2a0d","\\clockoint":"\u2a0f","\\ElsevierGlyph{E395}":"\u2a10","\\sqrint":"\u2a16","\\ElsevierGlyph{E25A}":"\u2a25","\\ElsevierGlyph{E25B}":"\u2a2a","\\ElsevierGlyph{E25C}":"\u2a2d","\\ElsevierGlyph{E25D}":"\u2a2e","\\ElzTimes":"\u2a2f","\\ElsevierGlyph{E25E}":"\u2a34","\\ElsevierGlyph{E259}":"\u2a3c","\\amalg":"\u2a3f","\\ElzAnd":"\u2a53","\\ElzOr":"\u2a54","\\ElsevierGlyph{E36E}":"\u2a55","\\ElOr":"\u2a56","\\perspcorrespond":"\u2a5e","\\Elzminhat":"\u2a5f","\\stackrel{*}{=}":"\u2a6e","\\Equal":"\u2a75","\\leqslant":"\u2a7d","\\geqslant":"\u2a7e","\\lessapprox":"\u2a85","\\gtrapprox":"\u2a86","\\lneq":"\u2a87","\\gneq":"\u2a88","\\lnapprox":"\u2a89","\\gnapprox":"\u2a8a","\\lesseqqgtr":"\u2a8b","\\gtreqqless":"\u2a8c","\\eqslantless":"\u2a95","\\eqslantgtr":"\u2a96","\\Pisymbol{ppi020}{117}":"\u2a9d","\\Pisymbol{ppi020}{105}":"\u2a9e","\\NestedLessLess":"\u2aa1","\\NestedGreaterGreater":"\u2aa2","\\preceq":"\u2aaf","\\succeq":"\u2ab0","\\precneqq":"\u2ab5","\\succneqq":"\u2ab6","\\precnapprox":"\u2ab9","\\succnapprox":"\u2aba","\\subseteqq":"\u2ac5","\\supseteqq":"\u2ac6","\\subsetneqq":"\u2acb","\\supsetneqq":"\u2acc","\\ElsevierGlyph{E30D}":"\u2aeb","\\Elztdcol":"\u2af6","\\ElsevierGlyph{300A}":"\u300a","\\ElsevierGlyph{300B}":"\u300b","\\ElsevierGlyph{3019}":"\u3019","\\openbracketleft":"\u301a","\\openbracketright":"\u301b","\\mathbf{A}":"\u{1d400}","\\mathbf{B}":"\u{1d401}","\\mathbf{C}":"\u{1d402}","\\mathbf{D}":"\u{1d403}","\\mathbf{E}":"\u{1d404}","\\mathbf{F}":"\u{1d405}","\\mathbf{G}":"\u{1d406}","\\mathbf{H}":"\u{1d407}","\\mathbf{I}":"\u{1d408}","\\mathbf{J}":"\u{1d409}","\\mathbf{K}":"\u{1d40a}","\\mathbf{L}":"\u{1d40b}","\\mathbf{M}":"\u{1d40c}","\\mathbf{N}":"\u{1d40d}","\\mathbf{O}":"\u{1d40e}","\\mathbf{P}":"\u{1d40f}","\\mathbf{Q}":"\u{1d410}","\\mathbf{R}":"\u{1d411}","\\mathbf{S}":"\u{1d412}","\\mathbf{T}":"\u{1d413}","\\mathbf{U}":"\u{1d414}","\\mathbf{V}":"\u{1d415}","\\mathbf{W}":"\u{1d416}","\\mathbf{X}":"\u{1d417}","\\mathbf{Y}":"\u{1d418}","\\mathbf{Z}":"\u{1d419}","\\mathbf{a}":"\u{1d41a}","\\mathbf{b}":"\u{1d41b}","\\mathbf{c}":"\u{1d41c}","\\mathbf{d}":"\u{1d41d}","\\mathbf{e}":"\u{1d41e}","\\mathbf{f}":"\u{1d41f}","\\mathbf{g}":"\u{1d420}","\\mathbf{h}":"\u{1d421}","\\mathbf{i}":"\u{1d422}","\\mathbf{j}":"\u{1d423}","\\mathbf{k}":"\u{1d424}","\\mathbf{l}":"\u{1d425}","\\mathbf{m}":"\u{1d426}","\\mathbf{n}":"\u{1d427}","\\mathbf{o}":"\u{1d428}","\\mathbf{p}":"\u{1d429}","\\mathbf{q}":"\u{1d42a}","\\mathbf{r}":"\u{1d42b}","\\mathbf{s}":"\u{1d42c}","\\mathbf{t}":"\u{1d42d}","\\mathbf{u}":"\u{1d42e}","\\mathbf{v}":"\u{1d42f}","\\mathbf{w}":"\u{1d430}","\\mathbf{x}":"\u{1d431}","\\mathbf{y}":"\u{1d432}","\\mathbf{z}":"\u{1d433}","\\mathmit{A}":"\u{1d434}","\\mathmit{B}":"\u{1d435}","\\mathmit{C}":"\u{1d436}","\\mathmit{D}":"\u{1d437}","\\mathmit{E}":"\u{1d438}","\\mathmit{F}":"\u{1d439}","\\mathmit{G}":"\u{1d43a}","\\mathmit{H}":"\u{1d43b}","\\mathmit{I}":"\u{1d43c}","\\mathmit{J}":"\u{1d43d}","\\mathmit{K}":"\u{1d43e}","\\mathmit{L}":"\u{1d43f}","\\mathmit{M}":"\u{1d440}","\\mathmit{N}":"\u{1d441}","\\mathmit{O}":"\u{1d442}","\\mathmit{P}":"\u{1d443}","\\mathmit{Q}":"\u{1d444}","\\mathmit{R}":"\u{1d445}","\\mathmit{S}":"\u{1d446}","\\mathmit{T}":"\u{1d447}","\\mathmit{U}":"\u{1d448}","\\mathmit{V}":"\u{1d449}","\\mathmit{W}":"\u{1d44a}","\\mathmit{X}":"\u{1d44b}","\\mathmit{Y}":"\u{1d44c}","\\mathmit{Z}":"\u{1d44d}","\\mathmit{a}":"\u{1d44e}","\\mathmit{b}":"\u{1d44f}","\\mathmit{c}":"\u{1d450}","\\mathmit{d}":"\u{1d451}","\\mathmit{e}":"\u{1d452}","\\mathmit{f}":"\u{1d453}","\\mathmit{g}":"\u{1d454}","\\mathmit{i}":"\u{1d456}","\\mathmit{j}":"\u{1d457}","\\mathmit{k}":"\u{1d458}","\\mathmit{l}":"\u{1d459}","\\mathmit{m}":"\u{1d45a}","\\mathmit{n}":"\u{1d45b}","\\mathmit{o}":"\u{1d45c}","\\mathmit{p}":"\u{1d45d}","\\mathmit{q}":"\u{1d45e}","\\mathmit{r}":"\u{1d45f}","\\mathmit{s}":"\u{1d460}","\\mathmit{t}":"\u{1d461}","\\mathmit{u}":"\u{1d462}","\\mathmit{v}":"\u{1d463}","\\mathmit{w}":"\u{1d464}","\\mathmit{x}":"\u{1d465}","\\mathmit{y}":"\u{1d466}","\\mathmit{z}":"\u{1d467}","\\mathbit{A}":"\u{1d468}","\\mathbit{B}":"\u{1d469}","\\mathbit{C}":"\u{1d46a}","\\mathbit{D}":"\u{1d46b}","\\mathbit{E}":"\u{1d46c}","\\mathbit{F}":"\u{1d46d}","\\mathbit{G}":"\u{1d46e}","\\mathbit{H}":"\u{1d46f}","\\mathbit{I}":"\u{1d470}","\\mathbit{J}":"\u{1d471}","\\mathbit{K}":"\u{1d472}","\\mathbit{L}":"\u{1d473}","\\mathbit{M}":"\u{1d474}","\\mathbit{N}":"\u{1d475}","\\mathbit{O}":"\u{1d476}","\\mathbit{P}":"\u{1d477}","\\mathbit{Q}":"\u{1d478}","\\mathbit{R}":"\u{1d479}","\\mathbit{S}":"\u{1d47a}","\\mathbit{T}":"\u{1d47b}","\\mathbit{U}":"\u{1d47c}","\\mathbit{V}":"\u{1d47d}","\\mathbit{W}":"\u{1d47e}","\\mathbit{X}":"\u{1d47f}","\\mathbit{Y}":"\u{1d480}","\\mathbit{Z}":"\u{1d481}","\\mathbit{a}":"\u{1d482}","\\mathbit{b}":"\u{1d483}","\\mathbit{c}":"\u{1d484}","\\mathbit{d}":"\u{1d485}","\\mathbit{e}":"\u{1d486}","\\mathbit{f}":"\u{1d487}","\\mathbit{g}":"\u{1d488}","\\mathbit{h}":"\u{1d489}","\\mathbit{i}":"\u{1d48a}","\\mathbit{j}":"\u{1d48b}","\\mathbit{k}":"\u{1d48c}","\\mathbit{l}":"\u{1d48d}","\\mathbit{m}":"\u{1d48e}","\\mathbit{n}":"\u{1d48f}","\\mathbit{o}":"\u{1d490}","\\mathbit{p}":"\u{1d491}","\\mathbit{q}":"\u{1d492}","\\mathbit{r}":"\u{1d493}","\\mathbit{s}":"\u{1d494}","\\mathbit{t}":"\u{1d495}","\\mathbit{u}":"\u{1d496}","\\mathbit{v}":"\u{1d497}","\\mathbit{w}":"\u{1d498}","\\mathbit{x}":"\u{1d499}","\\mathbit{y}":"\u{1d49a}","\\mathbit{z}":"\u{1d49b}","\\mathscr{A}":"\u{1d49c}","\\mathscr{C}":"\u{1d49e}","\\mathscr{D}":"\u{1d49f}","\\mathscr{G}":"\u{1d4a2}","\\mathscr{J}":"\u{1d4a5}","\\mathscr{K}":"\u{1d4a6}","\\mathscr{N}":"\u{1d4a9}","\\mathscr{O}":"\u{1d4aa}","\\mathscr{P}":"\u{1d4ab}","\\mathscr{Q}":"\u{1d4ac}","\\mathscr{S}":"\u{1d4ae}","\\mathscr{T}":"\u{1d4af}","\\mathscr{U}":"\u{1d4b0}","\\mathscr{V}":"\u{1d4b1}","\\mathscr{W}":"\u{1d4b2}","\\mathscr{X}":"\u{1d4b3}","\\mathscr{Y}":"\u{1d4b4}","\\mathscr{Z}":"\u{1d4b5}","\\mathscr{a}":"\u{1d4b6}","\\mathscr{b}":"\u{1d4b7}","\\mathscr{c}":"\u{1d4b8}","\\mathscr{d}":"\u{1d4b9}","\\mathscr{f}":"\u{1d4bb}","\\mathscr{h}":"\u{1d4bd}","\\mathscr{i}":"\u{1d4be}","\\mathscr{j}":"\u{1d4bf}","\\mathscr{k}":"\u{1d4c0}","\\mathscr{m}":"\u{1d4c2}","\\mathscr{n}":"\u{1d4c3}","\\mathscr{p}":"\u{1d4c5}","\\mathscr{q}":"\u{1d4c6}","\\mathscr{r}":"\u{1d4c7}","\\mathscr{s}":"\u{1d4c8}","\\mathscr{t}":"\u{1d4c9}","\\mathscr{u}":"\u{1d4ca}","\\mathscr{v}":"\u{1d4cb}","\\mathscr{w}":"\u{1d4cc}","\\mathscr{x}":"\u{1d4cd}","\\mathscr{y}":"\u{1d4ce}","\\mathscr{z}":"\u{1d4cf}","\\mathbcal{A}":"\u{1d4d0}","\\mathbcal{B}":"\u{1d4d1}","\\mathbcal{C}":"\u{1d4d2}","\\mathbcal{D}":"\u{1d4d3}","\\mathbcal{E}":"\u{1d4d4}","\\mathbcal{F}":"\u{1d4d5}","\\mathbcal{G}":"\u{1d4d6}","\\mathbcal{H}":"\u{1d4d7}","\\mathbcal{I}":"\u{1d4d8}","\\mathbcal{J}":"\u{1d4d9}","\\mathbcal{K}":"\u{1d4da}","\\mathbcal{L}":"\u{1d4db}","\\mathbcal{M}":"\u{1d4dc}","\\mathbcal{N}":"\u{1d4dd}","\\mathbcal{O}":"\u{1d4de}","\\mathbcal{P}":"\u{1d4df}","\\mathbcal{Q}":"\u{1d4e0}","\\mathbcal{R}":"\u{1d4e1}","\\mathbcal{S}":"\u{1d4e2}","\\mathbcal{T}":"\u{1d4e3}","\\mathbcal{U}":"\u{1d4e4}","\\mathbcal{V}":"\u{1d4e5}","\\mathbcal{W}":"\u{1d4e6}","\\mathbcal{X}":"\u{1d4e7}","\\mathbcal{Y}":"\u{1d4e8}","\\mathbcal{Z}":"\u{1d4e9}","\\mathbcal{a}":"\u{1d4ea}","\\mathbcal{b}":"\u{1d4eb}","\\mathbcal{c}":"\u{1d4ec}","\\mathbcal{d}":"\u{1d4ed}","\\mathbcal{e}":"\u{1d4ee}","\\mathbcal{f}":"\u{1d4ef}","\\mathbcal{g}":"\u{1d4f0}","\\mathbcal{h}":"\u{1d4f1}","\\mathbcal{i}":"\u{1d4f2}","\\mathbcal{j}":"\u{1d4f3}","\\mathbcal{k}":"\u{1d4f4}","\\mathbcal{l}":"\u{1d4f5}","\\mathbcal{m}":"\u{1d4f6}","\\mathbcal{n}":"\u{1d4f7}","\\mathbcal{o}":"\u{1d4f8}","\\mathbcal{p}":"\u{1d4f9}","\\mathbcal{q}":"\u{1d4fa}","\\mathbcal{r}":"\u{1d4fb}","\\mathbcal{s}":"\u{1d4fc}","\\mathbcal{t}":"\u{1d4fd}","\\mathbcal{u}":"\u{1d4fe}","\\mathbcal{v}":"\u{1d4ff}","\\mathbcal{w}":"\u{1d500}","\\mathbcal{x}":"\u{1d501}","\\mathbcal{y}":"\u{1d502}","\\mathbcal{z}":"\u{1d503}","\\mathfrak{A}":"\u{1d504}","\\mathfrak{B}":"\u{1d505}","\\mathfrak{D}":"\u{1d507}","\\mathfrak{E}":"\u{1d508}","\\mathfrak{F}":"\u{1d509}","\\mathfrak{G}":"\u{1d50a}","\\mathfrak{J}":"\u{1d50d}","\\mathfrak{K}":"\u{1d50e}","\\mathfrak{L}":"\u{1d50f}","\\mathfrak{M}":"\u{1d510}","\\mathfrak{N}":"\u{1d511}","\\mathfrak{O}":"\u{1d512}","\\mathfrak{P}":"\u{1d513}","\\mathfrak{Q}":"\u{1d514}","\\mathfrak{S}":"\u{1d516}","\\mathfrak{T}":"\u{1d517}","\\mathfrak{U}":"\u{1d518}","\\mathfrak{V}":"\u{1d519}","\\mathfrak{W}":"\u{1d51a}","\\mathfrak{X}":"\u{1d51b}","\\mathfrak{Y}":"\u{1d51c}","\\mathfrak{a}":"\u{1d51e}","\\mathfrak{b}":"\u{1d51f}","\\mathfrak{c}":"\u{1d520}","\\mathfrak{d}":"\u{1d521}","\\mathfrak{e}":"\u{1d522}","\\mathfrak{f}":"\u{1d523}","\\mathfrak{g}":"\u{1d524}","\\mathfrak{h}":"\u{1d525}","\\mathfrak{i}":"\u{1d526}","\\mathfrak{j}":"\u{1d527}","\\mathfrak{k}":"\u{1d528}","\\mathfrak{l}":"\u{1d529}","\\mathfrak{m}":"\u{1d52a}","\\mathfrak{n}":"\u{1d52b}","\\mathfrak{o}":"\u{1d52c}","\\mathfrak{p}":"\u{1d52d}","\\mathfrak{q}":"\u{1d52e}","\\mathfrak{r}":"\u{1d52f}","\\mathfrak{s}":"\u{1d530}","\\mathfrak{t}":"\u{1d531}","\\mathfrak{u}":"\u{1d532}","\\mathfrak{v}":"\u{1d533}","\\mathfrak{w}":"\u{1d534}","\\mathfrak{x}":"\u{1d535}","\\mathfrak{y}":"\u{1d536}","\\mathfrak{z}":"\u{1d537}","\\mathbb{A}":"\u{1d538}","\\mathbb{B}":"\u{1d539}","\\mathbb{D}":"\u{1d53b}","\\mathbb{E}":"\u{1d53c}","\\mathbb{F}":"\u{1d53d}","\\mathbb{G}":"\u{1d53e}","\\mathbb{I}":"\u{1d540}","\\mathbb{J}":"\u{1d541}","\\mathbb{K}":"\u{1d542}","\\mathbb{L}":"\u{1d543}","\\mathbb{M}":"\u{1d544}","\\mathbb{O}":"\u{1d546}","\\mathbb{S}":"\u{1d54a}","\\mathbb{T}":"\u{1d54b}","\\mathbb{U}":"\u{1d54c}","\\mathbb{V}":"\u{1d54d}","\\mathbb{W}":"\u{1d54e}","\\mathbb{X}":"\u{1d54f}","\\mathbb{Y}":"\u{1d550}","\\mathbb{a}":"\u{1d552}","\\mathbb{b}":"\u{1d553}","\\mathbb{c}":"\u{1d554}","\\mathbb{d}":"\u{1d555}","\\mathbb{e}":"\u{1d556}","\\mathbb{f}":"\u{1d557}","\\mathbb{g}":"\u{1d558}","\\mathbb{h}":"\u{1d559}","\\mathbb{i}":"\u{1d55a}","\\mathbb{j}":"\u{1d55b}","\\mathbb{k}":"\u{1d55c}","\\mathbb{l}":"\u{1d55d}","\\mathbb{m}":"\u{1d55e}","\\mathbb{n}":"\u{1d55f}","\\mathbb{o}":"\u{1d560}","\\mathbb{p}":"\u{1d561}","\\mathbb{q}":"\u{1d562}","\\mathbb{r}":"\u{1d563}","\\mathbb{s}":"\u{1d564}","\\mathbb{t}":"\u{1d565}","\\mathbb{u}":"\u{1d566}","\\mathbb{v}":"\u{1d567}","\\mathbb{w}":"\u{1d568}","\\mathbb{x}":"\u{1d569}","\\mathbb{y}":"\u{1d56a}","\\mathbb{z}":"\u{1d56b}","\\mathbfrak{A}":"\u{1d56c}","\\mathbfrak{B}":"\u{1d56d}","\\mathbfrak{C}":"\u{1d56e}","\\mathbfrak{D}":"\u{1d56f}","\\mathbfrak{E}":"\u{1d570}","\\mathbfrak{F}":"\u{1d571}","\\mathbfrak{G}":"\u{1d572}","\\mathbfrak{H}":"\u{1d573}","\\mathbfrak{I}":"\u{1d574}","\\mathbfrak{J}":"\u{1d575}","\\mathbfrak{K}":"\u{1d576}","\\mathbfrak{L}":"\u{1d577}","\\mathbfrak{M}":"\u{1d578}","\\mathbfrak{N}":"\u{1d579}","\\mathbfrak{O}":"\u{1d57a}","\\mathbfrak{P}":"\u{1d57b}","\\mathbfrak{Q}":"\u{1d57c}","\\mathbfrak{R}":"\u{1d57d}","\\mathbfrak{S}":"\u{1d57e}","\\mathbfrak{T}":"\u{1d57f}","\\mathbfrak{U}":"\u{1d580}","\\mathbfrak{V}":"\u{1d581}","\\mathbfrak{W}":"\u{1d582}","\\mathbfrak{X}":"\u{1d583}","\\mathbfrak{Y}":"\u{1d584}","\\mathbfrak{Z}":"\u{1d585}","\\mathbfrak{a}":"\u{1d586}","\\mathbfrak{b}":"\u{1d587}","\\mathbfrak{c}":"\u{1d588}","\\mathbfrak{d}":"\u{1d589}","\\mathbfrak{e}":"\u{1d58a}","\\mathbfrak{f}":"\u{1d58b}","\\mathbfrak{g}":"\u{1d58c}","\\mathbfrak{h}":"\u{1d58d}","\\mathbfrak{i}":"\u{1d58e}","\\mathbfrak{j}":"\u{1d58f}","\\mathbfrak{k}":"\u{1d590}","\\mathbfrak{l}":"\u{1d591}","\\mathbfrak{m}":"\u{1d592}","\\mathbfrak{n}":"\u{1d593}","\\mathbfrak{o}":"\u{1d594}","\\mathbfrak{p}":"\u{1d595}","\\mathbfrak{q}":"\u{1d596}","\\mathbfrak{r}":"\u{1d597}","\\mathbfrak{s}":"\u{1d598}","\\mathbfrak{t}":"\u{1d599}","\\mathbfrak{u}":"\u{1d59a}","\\mathbfrak{v}":"\u{1d59b}","\\mathbfrak{w}":"\u{1d59c}","\\mathbfrak{x}":"\u{1d59d}","\\mathbfrak{y}":"\u{1d59e}","\\mathbfrak{z}":"\u{1d59f}","\\mathsf{A}":"\u{1d5a0}","\\mathsf{B}":"\u{1d5a1}","\\mathsf{C}":"\u{1d5a2}","\\mathsf{D}":"\u{1d5a3}","\\mathsf{E}":"\u{1d5a4}","\\mathsf{F}":"\u{1d5a5}","\\mathsf{G}":"\u{1d5a6}","\\mathsf{H}":"\u{1d5a7}","\\mathsf{I}":"\u{1d5a8}","\\mathsf{J}":"\u{1d5a9}","\\mathsf{K}":"\u{1d5aa}","\\mathsf{L}":"\u{1d5ab}","\\mathsf{M}":"\u{1d5ac}","\\mathsf{N}":"\u{1d5ad}","\\mathsf{O}":"\u{1d5ae}","\\mathsf{P}":"\u{1d5af}","\\mathsf{Q}":"\u{1d5b0}","\\mathsf{R}":"\u{1d5b1}","\\mathsf{S}":"\u{1d5b2}","\\mathsf{T}":"\u{1d5b3}","\\mathsf{U}":"\u{1d5b4}","\\mathsf{V}":"\u{1d5b5}","\\mathsf{W}":"\u{1d5b6}","\\mathsf{X}":"\u{1d5b7}","\\mathsf{Y}":"\u{1d5b8}","\\mathsf{Z}":"\u{1d5b9}","\\mathsf{a}":"\u{1d5ba}","\\mathsf{b}":"\u{1d5bb}","\\mathsf{c}":"\u{1d5bc}","\\mathsf{d}":"\u{1d5bd}","\\mathsf{e}":"\u{1d5be}","\\mathsf{f}":"\u{1d5bf}","\\mathsf{g}":"\u{1d5c0}","\\mathsf{h}":"\u{1d5c1}","\\mathsf{i}":"\u{1d5c2}","\\mathsf{j}":"\u{1d5c3}","\\mathsf{k}":"\u{1d5c4}","\\mathsf{l}":"\u{1d5c5}","\\mathsf{m}":"\u{1d5c6}","\\mathsf{n}":"\u{1d5c7}","\\mathsf{o}":"\u{1d5c8}","\\mathsf{p}":"\u{1d5c9}","\\mathsf{q}":"\u{1d5ca}","\\mathsf{r}":"\u{1d5cb}","\\mathsf{s}":"\u{1d5cc}","\\mathsf{t}":"\u{1d5cd}","\\mathsf{u}":"\u{1d5ce}","\\mathsf{v}":"\u{1d5cf}","\\mathsf{w}":"\u{1d5d0}","\\mathsf{x}":"\u{1d5d1}","\\mathsf{y}":"\u{1d5d2}","\\mathsf{z}":"\u{1d5d3}","\\mathsfbf{A}":"\u{1d5d4}","\\mathsfbf{B}":"\u{1d5d5}","\\mathsfbf{C}":"\u{1d5d6}","\\mathsfbf{D}":"\u{1d5d7}","\\mathsfbf{E}":"\u{1d5d8}","\\mathsfbf{F}":"\u{1d5d9}","\\mathsfbf{G}":"\u{1d5da}","\\mathsfbf{H}":"\u{1d5db}","\\mathsfbf{I}":"\u{1d5dc}","\\mathsfbf{J}":"\u{1d5dd}","\\mathsfbf{K}":"\u{1d5de}","\\mathsfbf{L}":"\u{1d5df}","\\mathsfbf{M}":"\u{1d5e0}","\\mathsfbf{N}":"\u{1d5e1}","\\mathsfbf{O}":"\u{1d5e2}","\\mathsfbf{P}":"\u{1d5e3}","\\mathsfbf{Q}":"\u{1d5e4}","\\mathsfbf{R}":"\u{1d5e5}","\\mathsfbf{S}":"\u{1d5e6}","\\mathsfbf{T}":"\u{1d5e7}","\\mathsfbf{U}":"\u{1d5e8}","\\mathsfbf{V}":"\u{1d5e9}","\\mathsfbf{W}":"\u{1d5ea}","\\mathsfbf{X}":"\u{1d5eb}","\\mathsfbf{Y}":"\u{1d5ec}","\\mathsfbf{Z}":"\u{1d5ed}","\\mathsfbf{a}":"\u{1d5ee}","\\mathsfbf{b}":"\u{1d5ef}","\\mathsfbf{c}":"\u{1d5f0}","\\mathsfbf{d}":"\u{1d5f1}","\\mathsfbf{e}":"\u{1d5f2}","\\mathsfbf{f}":"\u{1d5f3}","\\mathsfbf{g}":"\u{1d5f4}","\\mathsfbf{h}":"\u{1d5f5}","\\mathsfbf{i}":"\u{1d5f6}","\\mathsfbf{j}":"\u{1d5f7}","\\mathsfbf{k}":"\u{1d5f8}","\\mathsfbf{l}":"\u{1d5f9}","\\mathsfbf{m}":"\u{1d5fa}","\\mathsfbf{n}":"\u{1d5fb}","\\mathsfbf{o}":"\u{1d5fc}","\\mathsfbf{p}":"\u{1d5fd}","\\mathsfbf{q}":"\u{1d5fe}","\\mathsfbf{r}":"\u{1d5ff}","\\mathsfbf{s}":"\u{1d600}","\\mathsfbf{t}":"\u{1d601}","\\mathsfbf{u}":"\u{1d602}","\\mathsfbf{v}":"\u{1d603}","\\mathsfbf{w}":"\u{1d604}","\\mathsfbf{x}":"\u{1d605}","\\mathsfbf{y}":"\u{1d606}","\\mathsfbf{z}":"\u{1d607}","\\mathsfsl{A}":"\u{1d608}","\\mathsfsl{B}":"\u{1d609}","\\mathsfsl{C}":"\u{1d60a}","\\mathsfsl{D}":"\u{1d60b}","\\mathsfsl{E}":"\u{1d60c}","\\mathsfsl{F}":"\u{1d60d}","\\mathsfsl{G}":"\u{1d60e}","\\mathsfsl{H}":"\u{1d60f}","\\mathsfsl{I}":"\u{1d610}","\\mathsfsl{J}":"\u{1d611}","\\mathsfsl{K}":"\u{1d612}","\\mathsfsl{L}":"\u{1d613}","\\mathsfsl{M}":"\u{1d614}","\\mathsfsl{N}":"\u{1d615}","\\mathsfsl{O}":"\u{1d616}","\\mathsfsl{P}":"\u{1d617}","\\mathsfsl{Q}":"\u{1d618}","\\mathsfsl{R}":"\u{1d619}","\\mathsfsl{S}":"\u{1d61a}","\\mathsfsl{T}":"\u{1d61b}","\\mathsfsl{U}":"\u{1d61c}","\\mathsfsl{V}":"\u{1d61d}","\\mathsfsl{W}":"\u{1d61e}","\\mathsfsl{X}":"\u{1d61f}","\\mathsfsl{Y}":"\u{1d620}","\\mathsfsl{Z}":"\u{1d621}","\\mathsfsl{a}":"\u{1d622}","\\mathsfsl{b}":"\u{1d623}","\\mathsfsl{c}":"\u{1d624}","\\mathsfsl{d}":"\u{1d625}","\\mathsfsl{e}":"\u{1d626}","\\mathsfsl{f}":"\u{1d627}","\\mathsfsl{g}":"\u{1d628}","\\mathsfsl{h}":"\u{1d629}","\\mathsfsl{i}":"\u{1d62a}","\\mathsfsl{j}":"\u{1d62b}","\\mathsfsl{k}":"\u{1d62c}","\\mathsfsl{l}":"\u{1d62d}","\\mathsfsl{m}":"\u{1d62e}","\\mathsfsl{n}":"\u{1d62f}","\\mathsfsl{o}":"\u{1d630}","\\mathsfsl{p}":"\u{1d631}","\\mathsfsl{q}":"\u{1d632}","\\mathsfsl{r}":"\u{1d633}","\\mathsfsl{s}":"\u{1d634}","\\mathsfsl{t}":"\u{1d635}","\\mathsfsl{u}":"\u{1d636}","\\mathsfsl{v}":"\u{1d637}","\\mathsfsl{w}":"\u{1d638}","\\mathsfsl{x}":"\u{1d639}","\\mathsfsl{y}":"\u{1d63a}","\\mathsfsl{z}":"\u{1d63b}","\\mathsfbfsl{A}":"\u{1d63c}","\\mathsfbfsl{B}":"\u{1d63d}","\\mathsfbfsl{C}":"\u{1d63e}","\\mathsfbfsl{D}":"\u{1d63f}","\\mathsfbfsl{E}":"\u{1d640}","\\mathsfbfsl{F}":"\u{1d641}","\\mathsfbfsl{G}":"\u{1d642}","\\mathsfbfsl{H}":"\u{1d643}","\\mathsfbfsl{I}":"\u{1d644}","\\mathsfbfsl{J}":"\u{1d645}","\\mathsfbfsl{K}":"\u{1d646}","\\mathsfbfsl{L}":"\u{1d647}","\\mathsfbfsl{M}":"\u{1d648}","\\mathsfbfsl{N}":"\u{1d649}","\\mathsfbfsl{O}":"\u{1d64a}","\\mathsfbfsl{P}":"\u{1d64b}","\\mathsfbfsl{Q}":"\u{1d64c}","\\mathsfbfsl{R}":"\u{1d64d}","\\mathsfbfsl{S}":"\u{1d64e}","\\mathsfbfsl{T}":"\u{1d64f}","\\mathsfbfsl{U}":"\u{1d650}","\\mathsfbfsl{V}":"\u{1d651}","\\mathsfbfsl{W}":"\u{1d652}","\\mathsfbfsl{X}":"\u{1d653}","\\mathsfbfsl{Y}":"\u{1d654}","\\mathsfbfsl{Z}":"\u{1d655}","\\mathsfbfsl{a}":"\u{1d656}","\\mathsfbfsl{b}":"\u{1d657}","\\mathsfbfsl{c}":"\u{1d658}","\\mathsfbfsl{d}":"\u{1d659}","\\mathsfbfsl{e}":"\u{1d65a}","\\mathsfbfsl{f}":"\u{1d65b}","\\mathsfbfsl{g}":"\u{1d65c}","\\mathsfbfsl{h}":"\u{1d65d}","\\mathsfbfsl{i}":"\u{1d65e}","\\mathsfbfsl{j}":"\u{1d65f}","\\mathsfbfsl{k}":"\u{1d660}","\\mathsfbfsl{l}":"\u{1d661}","\\mathsfbfsl{m}":"\u{1d662}","\\mathsfbfsl{n}":"\u{1d663}","\\mathsfbfsl{o}":"\u{1d664}","\\mathsfbfsl{p}":"\u{1d665}","\\mathsfbfsl{q}":"\u{1d666}","\\mathsfbfsl{r}":"\u{1d667}","\\mathsfbfsl{s}":"\u{1d668}","\\mathsfbfsl{t}":"\u{1d669}","\\mathsfbfsl{u}":"\u{1d66a}","\\mathsfbfsl{v}":"\u{1d66b}","\\mathsfbfsl{w}":"\u{1d66c}","\\mathsfbfsl{x}":"\u{1d66d}","\\mathsfbfsl{y}":"\u{1d66e}","\\mathsfbfsl{z}":"\u{1d66f}","\\mathtt{A}":"\u{1d670}","\\mathtt{B}":"\u{1d671}","\\mathtt{C}":"\u{1d672}","\\mathtt{D}":"\u{1d673}","\\mathtt{E}":"\u{1d674}","\\mathtt{F}":"\u{1d675}","\\mathtt{G}":"\u{1d676}","\\mathtt{H}":"\u{1d677}","\\mathtt{I}":"\u{1d678}","\\mathtt{J}":"\u{1d679}","\\mathtt{K}":"\u{1d67a}","\\mathtt{L}":"\u{1d67b}","\\mathtt{M}":"\u{1d67c}","\\mathtt{N}":"\u{1d67d}","\\mathtt{O}":"\u{1d67e}","\\mathtt{P}":"\u{1d67f}","\\mathtt{Q}":"\u{1d680}","\\mathtt{R}":"\u{1d681}","\\mathtt{S}":"\u{1d682}","\\mathtt{T}":"\u{1d683}","\\mathtt{U}":"\u{1d684}","\\mathtt{V}":"\u{1d685}","\\mathtt{W}":"\u{1d686}","\\mathtt{X}":"\u{1d687}","\\mathtt{Y}":"\u{1d688}","\\mathtt{Z}":"\u{1d689}","\\mathtt{a}":"\u{1d68a}","\\mathtt{b}":"\u{1d68b}","\\mathtt{c}":"\u{1d68c}","\\mathtt{d}":"\u{1d68d}","\\mathtt{e}":"\u{1d68e}","\\mathtt{f}":"\u{1d68f}","\\mathtt{g}":"\u{1d690}","\\mathtt{h}":"\u{1d691}","\\mathtt{i}":"\u{1d692}","\\mathtt{j}":"\u{1d693}","\\mathtt{k}":"\u{1d694}","\\mathtt{l}":"\u{1d695}","\\mathtt{m}":"\u{1d696}","\\mathtt{n}":"\u{1d697}","\\mathtt{o}":"\u{1d698}","\\mathtt{p}":"\u{1d699}","\\mathtt{q}":"\u{1d69a}","\\mathtt{r}":"\u{1d69b}","\\mathtt{s}":"\u{1d69c}","\\mathtt{t}":"\u{1d69d}","\\mathtt{u}":"\u{1d69e}","\\mathtt{v}":"\u{1d69f}","\\mathtt{w}":"\u{1d6a0}","\\mathtt{x}":"\u{1d6a1}","\\mathtt{y}":"\u{1d6a2}","\\mathtt{z}":"\u{1d6a3}","\\mathbf{\\Alpha}":"\u{1d6a8}","\\mathbf{\\Beta}":"\u{1d6a9}","\\mathbf{\\Gamma}":"\u{1d6aa}","\\mathbf{\\Delta}":"\u{1d6ab}","\\mathbf{\\Epsilon}":"\u{1d6ac}","\\mathbf{\\Zeta}":"\u{1d6ad}","\\mathbf{\\Eta}":"\u{1d6ae}","\\mathbf{\\Theta}":"\u{1d6af}","\\mathbf{\\Iota}":"\u{1d6b0}","\\mathbf{\\Kappa}":"\u{1d6b1}","\\mathbf{\\Lambda}":"\u{1d6b2}","\\mathbf{\\Xi}":"\u{1d6b5}","\\mathbf{\\Pi}":"\u{1d6b7}","\\mathbf{\\Rho}":"\u{1d6b8}","\\mathbf{\\vartheta}":"\u{1d6b9}","\\mathbf{\\Sigma}":"\u{1d6ba}","\\mathbf{\\Tau}":"\u{1d6bb}","\\mathbf{\\Upsilon}":"\u{1d6bc}","\\mathbf{\\Phi}":"\u{1d6bd}","\\mathbf{\\Chi}":"\u{1d6be}","\\mathbf{\\Psi}":"\u{1d6bf}","\\mathbf{\\Omega}":"\u{1d6c0}","\\mathbf{\\nabla}":"\u{1d6c1}","\\mathbf{\\alpha}":"\u{1d6c2}","\\mathbf{\\beta}":"\u{1d6c3}","\\mathbf{\\gamma}":"\u{1d6c4}","\\mathbf{\\delta}":"\u{1d6c5}","\\mathbf{\\epsilon}":"\u{1d6c6}","\\mathbf{\\zeta}":"\u{1d6c7}","\\mathbf{\\eta}":"\u{1d6c8}","\\mathbf{\\theta}":"\u{1d6c9}","\\mathbf{\\iota}":"\u{1d6ca}","\\mathbf{\\kappa}":"\u{1d6cb}","\\mathbf{\\lambda}":"\u{1d6cc}","\\mathbf{\\mu}":"\u{1d6cd}","\\mathbf{\\nu}":"\u{1d6ce}","\\mathbf{\\xi}":"\u{1d6cf}","\\mathbf{\\pi}":"\u{1d6d1}","\\mathbf{\\rho}":"\u{1d6d2}","\\mathbf{\\varsigma}":"\u{1d6d3}","\\mathbf{\\sigma}":"\u{1d6d4}","\\mathbf{\\tau}":"\u{1d6d5}","\\mathbf{\\upsilon}":"\u{1d6d6}","\\mathbf{\\phi}":"\u{1d6d7}","\\mathbf{\\chi}":"\u{1d6d8}","\\mathbf{\\psi}":"\u{1d6d9}","\\mathbf{\\omega}":"\u{1d6da}","\\mathbf{\\varepsilon}":"\u{1d6dc}","\\mathbf{\\varkappa}":"\u{1d6de}","\\mathbf{\\varrho}":"\u{1d6e0}","\\mathbf{\\varpi}":"\u{1d6e1}","\\mathmit{\\Alpha}":"\u{1d6e2}","\\mathmit{\\Beta}":"\u{1d6e3}","\\mathmit{\\Gamma}":"\u{1d6e4}","\\mathmit{\\Delta}":"\u{1d6e5}","\\mathmit{\\Epsilon}":"\u{1d6e6}","\\mathmit{\\Zeta}":"\u{1d6e7}","\\mathmit{\\Eta}":"\u{1d6e8}","\\mathmit{\\Theta}":"\u{1d6e9}","\\mathmit{\\Iota}":"\u{1d6ea}","\\mathmit{\\Kappa}":"\u{1d6eb}","\\mathmit{\\Lambda}":"\u{1d6ec}","\\mathmit{\\Xi}":"\u{1d6ef}","\\mathmit{\\Pi}":"\u{1d6f1}","\\mathmit{\\Rho}":"\u{1d6f2}","\\mathmit{\\vartheta}":"\u{1d6f3}","\\mathmit{\\Sigma}":"\u{1d6f4}","\\mathmit{\\Tau}":"\u{1d6f5}","\\mathmit{\\Upsilon}":"\u{1d6f6}","\\mathmit{\\Phi}":"\u{1d6f7}","\\mathmit{\\Chi}":"\u{1d6f8}","\\mathmit{\\Psi}":"\u{1d6f9}","\\mathmit{\\Omega}":"\u{1d6fa}","\\mathmit{\\nabla}":"\u{1d6fb}","\\mathmit{\\alpha}":"\u{1d6fc}","\\mathmit{\\beta}":"\u{1d6fd}","\\mathmit{\\gamma}":"\u{1d6fe}","\\mathmit{\\delta}":"\u{1d6ff}","\\mathmit{\\epsilon}":"\u{1d700}","\\mathmit{\\zeta}":"\u{1d701}","\\mathmit{\\eta}":"\u{1d702}","\\mathmit{\\theta}":"\u{1d703}","\\mathmit{\\iota}":"\u{1d704}","\\mathmit{\\kappa}":"\u{1d705}","\\mathmit{\\lambda}":"\u{1d706}","\\mathmit{\\mu}":"\u{1d707}","\\mathmit{\\nu}":"\u{1d708}","\\mathmit{\\xi}":"\u{1d709}","\\mathmit{\\pi}":"\u{1d70b}","\\mathmit{\\rho}":"\u{1d70c}","\\mathmit{\\varsigma}":"\u{1d70d}","\\mathmit{\\sigma}":"\u{1d70e}","\\mathmit{\\tau}":"\u{1d70f}","\\mathmit{\\upsilon}":"\u{1d710}","\\mathmit{\\phi}":"\u{1d711}","\\mathmit{\\chi}":"\u{1d712}","\\mathmit{\\psi}":"\u{1d713}","\\mathmit{\\omega}":"\u{1d714}","\\mathmit{\\varkappa}":"\u{1d718}","\\mathmit{\\varrho}":"\u{1d71a}","\\mathmit{\\varpi}":"\u{1d71b}","\\mathbit{\\Alpha}":"\u{1d71c}","\\mathbit{\\Beta}":"\u{1d71d}","\\mathbit{\\Gamma}":"\u{1d71e}","\\mathbit{\\Delta}":"\u{1d71f}","\\mathbit{\\Epsilon}":"\u{1d720}","\\mathbit{\\Zeta}":"\u{1d721}","\\mathbit{\\Eta}":"\u{1d722}","\\mathbit{\\Theta}":"\u{1d723}","\\mathbit{\\Iota}":"\u{1d724}","\\mathbit{\\Kappa}":"\u{1d725}","\\mathbit{\\Lambda}":"\u{1d726}","\\mathbit{\\Xi}":"\u{1d729}","\\mathbit{\\Pi}":"\u{1d72b}","\\mathbit{\\Rho}":"\u{1d72c}","\\mathbit{\\Sigma}":"\u{1d72e}","\\mathbit{\\Tau}":"\u{1d72f}","\\mathbit{\\Upsilon}":"\u{1d730}","\\mathbit{\\Phi}":"\u{1d731}","\\mathbit{\\Chi}":"\u{1d732}","\\mathbit{\\Psi}":"\u{1d733}","\\mathbit{\\Omega}":"\u{1d734}","\\mathbit{\\nabla}":"\u{1d735}","\\mathbit{\\alpha}":"\u{1d736}","\\mathbit{\\beta}":"\u{1d737}","\\mathbit{\\gamma}":"\u{1d738}","\\mathbit{\\delta}":"\u{1d739}","\\mathbit{\\epsilon}":"\u{1d73a}","\\mathbit{\\zeta}":"\u{1d73b}","\\mathbit{\\eta}":"\u{1d73c}","\\mathbit{\\theta}":"\u{1d73d}","\\mathbit{\\iota}":"\u{1d73e}","\\mathbit{\\kappa}":"\u{1d73f}","\\mathbit{\\lambda}":"\u{1d740}","\\mathbit{\\mu}":"\u{1d741}","\\mathbit{\\nu}":"\u{1d742}","\\mathbit{\\xi}":"\u{1d743}","\\mathbit{\\pi}":"\u{1d745}","\\mathbit{\\rho}":"\u{1d746}","\\mathbit{\\varsigma}":"\u{1d747}","\\mathbit{\\sigma}":"\u{1d748}","\\mathbit{\\tau}":"\u{1d749}","\\mathbit{\\upsilon}":"\u{1d74a}","\\mathbit{\\phi}":"\u{1d74b}","\\mathbit{\\chi}":"\u{1d74c}","\\mathbit{\\psi}":"\u{1d74d}","\\mathbit{\\omega}":"\u{1d74e}","\\mathbit{\\vartheta}":"\u{1d751}","\\mathbit{\\varkappa}":"\u{1d752}","\\mathbit{\\varrho}":"\u{1d754}","\\mathbit{\\varpi}":"\u{1d755}","\\mathsfbf{\\Alpha}":"\u{1d756}","\\mathsfbf{\\Beta}":"\u{1d757}","\\mathsfbf{\\Gamma}":"\u{1d758}","\\mathsfbf{\\Delta}":"\u{1d759}","\\mathsfbf{\\Epsilon}":"\u{1d75a}","\\mathsfbf{\\Zeta}":"\u{1d75b}","\\mathsfbf{\\Eta}":"\u{1d75c}","\\mathsfbf{\\Theta}":"\u{1d75d}","\\mathsfbf{\\Iota}":"\u{1d75e}","\\mathsfbf{\\Kappa}":"\u{1d75f}","\\mathsfbf{\\Lambda}":"\u{1d760}","\\mathsfbf{\\Xi}":"\u{1d763}","\\mathsfbf{\\Pi}":"\u{1d765}","\\mathsfbf{\\Rho}":"\u{1d766}","\\mathsfbf{\\vartheta}":"\u{1d767}","\\mathsfbf{\\Sigma}":"\u{1d768}","\\mathsfbf{\\Tau}":"\u{1d769}","\\mathsfbf{\\Upsilon}":"\u{1d76a}","\\mathsfbf{\\Phi}":"\u{1d76b}","\\mathsfbf{\\Chi}":"\u{1d76c}","\\mathsfbf{\\Psi}":"\u{1d76d}","\\mathsfbf{\\Omega}":"\u{1d76e}","\\mathsfbf{\\nabla}":"\u{1d76f}","\\mathsfbf{\\alpha}":"\u{1d770}","\\mathsfbf{\\beta}":"\u{1d771}","\\mathsfbf{\\gamma}":"\u{1d772}","\\mathsfbf{\\delta}":"\u{1d773}","\\mathsfbf{\\epsilon}":"\u{1d774}","\\mathsfbf{\\zeta}":"\u{1d775}","\\mathsfbf{\\eta}":"\u{1d776}","\\mathsfbf{\\theta}":"\u{1d777}","\\mathsfbf{\\iota}":"\u{1d778}","\\mathsfbf{\\kappa}":"\u{1d779}","\\mathsfbf{\\lambda}":"\u{1d77a}","\\mathsfbf{\\mu}":"\u{1d77b}","\\mathsfbf{\\nu}":"\u{1d77c}","\\mathsfbf{\\xi}":"\u{1d77d}","\\mathsfbf{\\pi}":"\u{1d77f}","\\mathsfbf{\\rho}":"\u{1d780}","\\mathsfbf{\\varsigma}":"\u{1d781}","\\mathsfbf{\\sigma}":"\u{1d782}","\\mathsfbf{\\tau}":"\u{1d783}","\\mathsfbf{\\upsilon}":"\u{1d784}","\\mathsfbf{\\phi}":"\u{1d785}","\\mathsfbf{\\chi}":"\u{1d786}","\\mathsfbf{\\psi}":"\u{1d787}","\\mathsfbf{\\omega}":"\u{1d788}","\\mathsfbf{\\varepsilon}":"\u{1d78a}","\\mathsfbf{\\varkappa}":"\u{1d78c}","\\mathsfbf{\\varrho}":"\u{1d78e}","\\mathsfbf{\\varpi}":"\u{1d78f}","\\mathsfbfsl{\\Alpha}":"\u{1d790}","\\mathsfbfsl{\\Beta}":"\u{1d791}","\\mathsfbfsl{\\Gamma}":"\u{1d792}","\\mathsfbfsl{\\Delta}":"\u{1d793}","\\mathsfbfsl{\\Epsilon}":"\u{1d794}","\\mathsfbfsl{\\Zeta}":"\u{1d795}","\\mathsfbfsl{\\Eta}":"\u{1d796}","\\mathsfbfsl{\\vartheta}":"\u{1d797}","\\mathsfbfsl{\\Iota}":"\u{1d798}","\\mathsfbfsl{\\Kappa}":"\u{1d799}","\\mathsfbfsl{\\Lambda}":"\u{1d79a}","\\mathsfbfsl{\\Xi}":"\u{1d79d}","\\mathsfbfsl{\\Pi}":"\u{1d79f}","\\mathsfbfsl{\\Rho}":"\u{1d7a0}","\\mathsfbfsl{\\Sigma}":"\u{1d7a2}","\\mathsfbfsl{\\Tau}":"\u{1d7a3}","\\mathsfbfsl{\\Upsilon}":"\u{1d7a4}","\\mathsfbfsl{\\Phi}":"\u{1d7a5}","\\mathsfbfsl{\\Chi}":"\u{1d7a6}","\\mathsfbfsl{\\Psi}":"\u{1d7a7}","\\mathsfbfsl{\\Omega}":"\u{1d7a8}","\\mathsfbfsl{\\nabla}":"\u{1d7a9}","\\mathsfbfsl{\\alpha}":"\u{1d7aa}","\\mathsfbfsl{\\beta}":"\u{1d7ab}","\\mathsfbfsl{\\gamma}":"\u{1d7ac}","\\mathsfbfsl{\\delta}":"\u{1d7ad}","\\mathsfbfsl{\\epsilon}":"\u{1d7ae}","\\mathsfbfsl{\\zeta}":"\u{1d7af}","\\mathsfbfsl{\\eta}":"\u{1d7b0}","\\mathsfbfsl{\\iota}":"\u{1d7b2}","\\mathsfbfsl{\\kappa}":"\u{1d7b3}","\\mathsfbfsl{\\lambda}":"\u{1d7b4}","\\mathsfbfsl{\\mu}":"\u{1d7b5}","\\mathsfbfsl{\\nu}":"\u{1d7b6}","\\mathsfbfsl{\\xi}":"\u{1d7b7}","\\mathsfbfsl{\\pi}":"\u{1d7b9}","\\mathsfbfsl{\\rho}":"\u{1d7ba}","\\mathsfbfsl{\\varsigma}":"\u{1d7bb}","\\mathsfbfsl{\\sigma}":"\u{1d7bc}","\\mathsfbfsl{\\tau}":"\u{1d7bd}","\\mathsfbfsl{\\upsilon}":"\u{1d7be}","\\mathsfbfsl{\\phi}":"\u{1d7bf}","\\mathsfbfsl{\\chi}":"\u{1d7c0}","\\mathsfbfsl{\\psi}":"\u{1d7c1}","\\mathsfbfsl{\\omega}":"\u{1d7c2}","\\mathsfbfsl{\\varkappa}":"\u{1d7c6}","\\mathsfbfsl{\\varrho}":"\u{1d7c8}","\\mathsfbfsl{\\varpi}":"\u{1d7c9}","\\mathbf{0}":"\u{1d7ce}","\\mathbf{1}":"\u{1d7cf}","\\mathbf{2}":"\u{1d7d0}","\\mathbf{3}":"\u{1d7d1}","\\mathbf{4}":"\u{1d7d2}","\\mathbf{5}":"\u{1d7d3}","\\mathbf{6}":"\u{1d7d4}","\\mathbf{7}":"\u{1d7d5}","\\mathbf{8}":"\u{1d7d6}","\\mathbf{9}":"\u{1d7d7}","\\mathbb{0}":"\u{1d7d8}","\\mathbb{1}":"\u{1d7d9}","\\mathbb{2}":"\u{1d7da}","\\mathbb{3}":"\u{1d7db}","\\mathbb{4}":"\u{1d7dc}","\\mathbb{5}":"\u{1d7dd}","\\mathbb{6}":"\u{1d7de}","\\mathbb{7}":"\u{1d7df}","\\mathbb{8}":"\u{1d7e0}","\\mathbb{9}":"\u{1d7e1}","\\mathsf{0}":"\u{1d7e2}","\\mathsf{1}":"\u{1d7e3}","\\mathsf{2}":"\u{1d7e4}","\\mathsf{3}":"\u{1d7e5}","\\mathsf{4}":"\u{1d7e6}","\\mathsf{5}":"\u{1d7e7}","\\mathsf{6}":"\u{1d7e8}","\\mathsf{7}":"\u{1d7e9}","\\mathsf{8}":"\u{1d7ea}","\\mathsf{9}":"\u{1d7eb}","\\mathsfbf{0}":"\u{1d7ec}","\\mathsfbf{1}":"\u{1d7ed}","\\mathsfbf{2}":"\u{1d7ee}","\\mathsfbf{3}":"\u{1d7ef}","\\mathsfbf{4}":"\u{1d7f0}","\\mathsfbf{5}":"\u{1d7f1}","\\mathsfbf{6}":"\u{1d7f2}","\\mathsfbf{7}":"\u{1d7f3}","\\mathsfbf{8}":"\u{1d7f4}","\\mathsfbf{9}":"\u{1d7f5}","\\mathtt{0}":"\u{1d7f6}","\\mathtt{1}":"\u{1d7f7}","\\mathtt{2}":"\u{1d7f8}","\\mathtt{3}":"\u{1d7f9}","\\mathtt{4}":"\u{1d7fa}","\\mathtt{5}":"\u{1d7fb}","\\mathtt{6}":"\u{1d7fc}","\\mathtt{7}":"\u{1d7fd}","\\mathtt{8}":"\u{1d7fe}","\\mathtt{9}":"\u{1d7ff}"},this.orcidLatexCharMap)this.orcidLatexCharMap[D].length>this.maxLatexLength&&(this.maxLatexLength=this.orcidLatexCharMap[D].length),this.orcidCharLatexMap[this.orcidLatexCharMap[D]]=D;for(var D in this.w3cLatexCharMap)this.w3cLatexCharMap[D].length>this.maxLatexLength&&(this.maxLatexLength=this.w3cLatexCharMap[D].length),this.w3cCharLatexMap[this.w3cLatexCharMap[D]]=D;this.getUni=function(p){return this.w3cLatexCharMap[p]?this.w3cLatexCharMap[p]:this.orcidLatexCharMap[p]},this.hasLatexMatch=function(p){return p in this.orcidLatexCharMap||p in this.w3cLatexCharMap},this.getLatex=function(p){return this.w3cCharLatexMap[p]?this.w3cCharLatexMap[p]:this.orcidCharLatexMap[p]},this.hasUniMatch=function(p){return p in this.orcidCharLatexMap||p in this.w3cCharLatexMap},this.longestEscapeMatch=function(p,E){for(var c=p.substring(E,E+1+this.maxLatexLength<=p.length?E+1+this.maxLatexLength:p.length);c.length>0&&!this.hasLatexMatch(c);)c=c.substring(0,c.length-1);return c}},r.decodeLatex=function(D){for(var p="",E=0;E0?(p+=A.getUni(f),E+=f.length):(p+=D[E],E++)}else"{"==D[E]||"}"==D[E]||(p+=D[E]),E++;return p},r.encodeLatex=function(D){for(var p="",E=0;E{"use strict";s.d(he,{EY:()=>d,F4:()=>C,IO:()=>U,LC:()=>r,SB:()=>c,X$:()=>A,ZE:()=>j,ZN:()=>q,_j:()=>a,eR:()=>m,jt:()=>D,k1:()=>K,l3:()=>b,oB:()=>f,pV:()=>g,ru:()=>p,vP:()=>E});class a{}class r{}const b="*";function A(L,w){return{type:7,name:L,definitions:w,options:{}}}function D(L,w=null){return{type:4,styles:w,timings:L}}function p(L,w=null){return{type:3,steps:L,options:w}}function E(L,w=null){return{type:2,steps:L,options:w}}function f(L){return{type:6,styles:L,offset:null}}function c(L,w,k){return{type:0,name:L,styles:w,options:k}}function C(L){return{type:5,steps:L}}function m(L,w,k=null){return{type:1,expr:L,animation:w,options:k}}function g(L=null){return{type:9,options:L}}function U(L,w,k=null){return{type:11,selector:L,animation:w,options:k}}function d(L,w){return{type:12,timings:L,animation:w}}class q{constructor(w=0,k=0){this._onDoneFns=[],this._onStartFns=[],this._onDestroyFns=[],this._originalOnDoneFns=[],this._originalOnStartFns=[],this._started=!1,this._destroyed=!1,this._finished=!1,this._position=0,this.parentPlayer=null,this.totalTime=w+k}_onFinish(){this._finished||(this._finished=!0,this._onDoneFns.forEach(w=>w()),this._onDoneFns=[])}onStart(w){this._originalOnStartFns.push(w),this._onStartFns.push(w)}onDone(w){this._originalOnDoneFns.push(w),this._onDoneFns.push(w)}onDestroy(w){this._onDestroyFns.push(w)}hasStarted(){return this._started}init(){}play(){this.hasStarted()||(this._onStart(),this.triggerMicrotask()),this._started=!0}triggerMicrotask(){queueMicrotask(()=>this._onFinish())}_onStart(){this._onStartFns.forEach(w=>w()),this._onStartFns=[]}pause(){}restart(){}finish(){this._onFinish()}destroy(){this._destroyed||(this._destroyed=!0,this.hasStarted()||this._onStart(),this.finish(),this._onDestroyFns.forEach(w=>w()),this._onDestroyFns=[])}reset(){this._started=!1,this._finished=!1,this._onStartFns=this._originalOnStartFns,this._onDoneFns=this._originalOnDoneFns}setPosition(w){this._position=this.totalTime?w*this.totalTime:1}getPosition(){return this.totalTime?this._position/this.totalTime:1}triggerCallback(w){const k="start"==w?this._onStartFns:this._onDoneFns;k.forEach(X=>X()),k.length=0}}class j{constructor(w){this._onDoneFns=[],this._onStartFns=[],this._finished=!1,this._started=!1,this._destroyed=!1,this._onDestroyFns=[],this.parentPlayer=null,this.totalTime=0,this.players=w;let k=0,X=0,de=0;const re=this.players.length;0==re?queueMicrotask(()=>this._onFinish()):this.players.forEach(be=>{be.onDone(()=>{++k==re&&this._onFinish()}),be.onDestroy(()=>{++X==re&&this._onDestroy()}),be.onStart(()=>{++de==re&&this._onStart()})}),this.totalTime=this.players.reduce((be,pe)=>Math.max(be,pe.totalTime),0)}_onFinish(){this._finished||(this._finished=!0,this._onDoneFns.forEach(w=>w()),this._onDoneFns=[])}init(){this.players.forEach(w=>w.init())}onStart(w){this._onStartFns.push(w)}_onStart(){this.hasStarted()||(this._started=!0,this._onStartFns.forEach(w=>w()),this._onStartFns=[])}onDone(w){this._onDoneFns.push(w)}onDestroy(w){this._onDestroyFns.push(w)}hasStarted(){return this._started}play(){this.parentPlayer||this.init(),this._onStart(),this.players.forEach(w=>w.play())}pause(){this.players.forEach(w=>w.pause())}restart(){this.players.forEach(w=>w.restart())}finish(){this._onFinish(),this.players.forEach(w=>w.finish())}destroy(){this._onDestroy()}_onDestroy(){this._destroyed||(this._destroyed=!0,this._onFinish(),this.players.forEach(w=>w.destroy()),this._onDestroyFns.forEach(w=>w()),this._onDestroyFns=[])}reset(){this.players.forEach(w=>w.reset()),this._destroyed=!1,this._finished=!1,this._started=!1}setPosition(w){const k=w*this.totalTime;this.players.forEach(X=>{const de=X.totalTime?Math.min(1,k/X.totalTime):1;X.setPosition(de)})}getPosition(){const w=this.players.reduce((k,X)=>null===k||X.totalTime>k.totalTime?X:k,null);return null!=w?w.getPosition():0}beforeDestroy(){this.players.forEach(w=>{w.beforeDestroy&&w.beforeDestroy()})}triggerCallback(w){const k="start"==w?this._onStartFns:this._onDoneFns;k.forEach(X=>X()),k.length=0}}const K="!"},4300:(Qe,he,s)=>{"use strict";s.d(he,{$s:()=>$e,Em:()=>tt,Kd:()=>Fe,X6:()=>mt,Zf:()=>w,iD:()=>k,ic:()=>ze,mK:()=>Qt,qV:()=>Pt,qm:()=>St,rt:()=>Zt,s1:()=>rt,tE:()=>Ft,yG:()=>Ut});var a=s(96814),r=s(65879),b=s(62831),A=s(72079),D=s(7902),p=s(45125),E=s(49193),f=s(36028),c=s(17927),C=s(96776),m=s(97734),_=s(96124),g=s(51418),P=s(24521),U=s(32068),d=s(19352),q=s(42495),j=s(17131),K=s(71088);const L=" ";function w(Ye,Ee,vt){const ye=X(Ye,Ee);ye.some(we=>we.trim()==vt.trim())||(ye.push(vt.trim()),Ye.setAttribute(Ee,ye.join(L)))}function k(Ye,Ee,vt){const we=X(Ye,Ee).filter(ge=>ge!=vt.trim());we.length?Ye.setAttribute(Ee,we.join(L)):Ye.removeAttribute(Ee)}function X(Ye,Ee){return(Ye.getAttribute(Ee)||"").match(/\S+/g)||[]}const re="cdk-describedby-message",be="cdk-describedby-host";let pe=0,$e=(()=>{var Ye;class Ee{constructor(ye,we){this._platform=we,this._messageRegistry=new Map,this._messagesContainer=null,this._id=""+pe++,this._document=ye,this._id=(0,r.f3M)(r.AFp)+"-"+pe++}describe(ye,we,ge){if(!this._canBeDescribed(ye,we))return;const T=Je(we,ge);"string"!=typeof we?(qe(we,this._id),this._messageRegistry.set(T,{messageElement:we,referenceCount:0})):this._messageRegistry.has(T)||this._createMessageElement(we,ge),this._isElementDescribedByMessage(ye,T)||this._addMessageReference(ye,T)}removeDescription(ye,we,ge){var V;if(!we||!this._isElementNode(ye))return;const T=Je(we,ge);if(this._isElementDescribedByMessage(ye,T)&&this._removeMessageReference(ye,T),"string"==typeof we){const G=this._messageRegistry.get(T);G&&0===G.referenceCount&&this._deleteMessageElement(T)}0===(null==(V=this._messagesContainer)?void 0:V.childNodes.length)&&(this._messagesContainer.remove(),this._messagesContainer=null)}ngOnDestroy(){var we;const ye=this._document.querySelectorAll(`[${be}="${this._id}"]`);for(let ge=0;ge0!=ge.indexOf(re));ye.setAttribute("aria-describedby",we.join(" "))}_addMessageReference(ye,we){const ge=this._messageRegistry.get(we);w(ye,"aria-describedby",ge.messageElement.id),ye.setAttribute(be,this._id),ge.referenceCount++}_removeMessageReference(ye,we){const ge=this._messageRegistry.get(we);ge.referenceCount--,k(ye,"aria-describedby",ge.messageElement.id),ye.removeAttribute(be)}_isElementDescribedByMessage(ye,we){const ge=X(ye,"aria-describedby"),T=this._messageRegistry.get(we),V=T&&T.messageElement.id;return!!V&&-1!=ge.indexOf(V)}_canBeDescribed(ye,we){if(!this._isElementNode(ye))return!1;if(we&&"object"==typeof we)return!0;const ge=null==we?"":`${we}`.trim(),T=ye.getAttribute("aria-label");return!(!ge||T&&T.trim()===ge)}_isElementNode(ye){return ye.nodeType===this._document.ELEMENT_NODE}}return(Ye=Ee).\u0275fac=function(ye){return new(ye||Ye)(r.LFG(a.K0),r.LFG(b.t4))},Ye.\u0275prov=r.Yz7({token:Ye,factory:Ye.\u0275fac,providedIn:"root"}),Ee})();function Je(Ye,Ee){return"string"==typeof Ye?`${Ee||""}/${Ye}`:Ye}function qe(Ye,Ee){Ye.id||(Ye.id=`${re}-${Ee}-${pe++}`)}class it{constructor(Ee){this._items=Ee,this._activeItemIndex=-1,this._activeItem=null,this._wrap=!1,this._letterKeyStream=new A.xQ,this._typeaheadSubscription=D.w.EMPTY,this._vertical=!0,this._allowedModifierKeys=[],this._homeAndEnd=!1,this._pageUpAndDown={enabled:!1,delta:10},this._skipPredicateFn=vt=>vt.disabled,this._pressedLetters=[],this.tabOut=new A.xQ,this.change=new A.xQ,Ee instanceof r.n_E&&(this._itemChangesSubscription=Ee.changes.subscribe(vt=>{if(this._activeItem){const we=vt.toArray().indexOf(this._activeItem);we>-1&&we!==this._activeItemIndex&&(this._activeItemIndex=we)}}))}skipPredicate(Ee){return this._skipPredicateFn=Ee,this}withWrap(Ee=!0){return this._wrap=Ee,this}withVerticalOrientation(Ee=!0){return this._vertical=Ee,this}withHorizontalOrientation(Ee){return this._horizontal=Ee,this}withAllowedModifierKeys(Ee){return this._allowedModifierKeys=Ee,this}withTypeAhead(Ee=200){return this._typeaheadSubscription.unsubscribe(),this._typeaheadSubscription=this._letterKeyStream.pipe((0,c.b)(vt=>this._pressedLetters.push(vt)),(0,C.b)(Ee),(0,m.h)(()=>this._pressedLetters.length>0),(0,_.U)(()=>this._pressedLetters.join(""))).subscribe(vt=>{const ye=this._getItemsArray();for(let we=1;we!Ee[ge]||this._allowedModifierKeys.indexOf(ge)>-1);switch(vt){case f.Mf:return void this.tabOut.next();case f.JH:if(this._vertical&&we){this.setNextItemActive();break}return;case f.LH:if(this._vertical&&we){this.setPreviousItemActive();break}return;case f.SV:if(this._horizontal&&we){"rtl"===this._horizontal?this.setPreviousItemActive():this.setNextItemActive();break}return;case f.oh:if(this._horizontal&&we){"rtl"===this._horizontal?this.setNextItemActive():this.setPreviousItemActive();break}return;case f.Sd:if(this._homeAndEnd&&we){this.setFirstItemActive();break}return;case f.uR:if(this._homeAndEnd&&we){this.setLastItemActive();break}return;case f.Ku:if(this._pageUpAndDown.enabled&&we){const ge=this._activeItemIndex-this._pageUpAndDown.delta;this._setActiveItemByIndex(ge>0?ge:0,1);break}return;case f.VM:if(this._pageUpAndDown.enabled&&we){const ge=this._activeItemIndex+this._pageUpAndDown.delta,T=this._getItemsArray().length;this._setActiveItemByIndex(ge=f.A&&vt<=f.Z||vt>=f.xE&&vt<=f.aO)&&this._letterKeyStream.next(String.fromCharCode(vt))))}this._pressedLetters=[],Ee.preventDefault()}get activeItemIndex(){return this._activeItemIndex}get activeItem(){return this._activeItem}isTyping(){return this._pressedLetters.length>0}setFirstItemActive(){this._setActiveItemByIndex(0,1)}setLastItemActive(){this._setActiveItemByIndex(this._items.length-1,-1)}setNextItemActive(){this._activeItemIndex<0?this.setFirstItemActive():this._setActiveItemByDelta(1)}setPreviousItemActive(){this._activeItemIndex<0&&this._wrap?this.setLastItemActive():this._setActiveItemByDelta(-1)}updateActiveItem(Ee){const vt=this._getItemsArray(),ye="number"==typeof Ee?Ee:vt.indexOf(Ee);this._activeItem=vt[ye]??null,this._activeItemIndex=ye}destroy(){var Ee;this._typeaheadSubscription.unsubscribe(),null==(Ee=this._itemChangesSubscription)||Ee.unsubscribe(),this._letterKeyStream.complete(),this.tabOut.complete(),this.change.complete(),this._pressedLetters=[]}_setActiveItemByDelta(Ee){this._wrap?this._setActiveInWrapMode(Ee):this._setActiveInDefaultMode(Ee)}_setActiveInWrapMode(Ee){const vt=this._getItemsArray();for(let ye=1;ye<=vt.length;ye++){const we=(this._activeItemIndex+Ee*ye+vt.length)%vt.length;if(!this._skipPredicateFn(vt[we]))return void this.setActiveItem(we)}}_setActiveInDefaultMode(Ee){this._setActiveItemByIndex(this._activeItemIndex+Ee,Ee)}_setActiveItemByIndex(Ee,vt){const ye=this._getItemsArray();if(ye[Ee]){for(;this._skipPredicateFn(ye[Ee]);)if(!ye[Ee+=vt])return;this.setActiveItem(Ee)}}_getItemsArray(){return this._items instanceof r.n_E?this._items.toArray():this._items}}class rt extends it{setActiveItem(Ee){this.activeItem&&this.activeItem.setInactiveStyles(),super.setActiveItem(Ee),this.activeItem&&this.activeItem.setActiveStyles()}}class tt extends it{constructor(){super(...arguments),this._origin="program"}setFocusOrigin(Ee){return this._origin=Ee,this}setActiveItem(Ee){super.setActiveItem(Ee),this.activeItem&&this.activeItem.focus(this._origin)}}let ze=(()=>{var Ye;class Ee{constructor(ye){this._platform=ye}isDisabled(ye){return ye.hasAttribute("disabled")}isVisible(ye){return function ot(Ye){return!!(Ye.offsetWidth||Ye.offsetHeight||"function"==typeof Ye.getClientRects&&Ye.getClientRects().length)}(ye)&&"visible"===getComputedStyle(ye).visibility}isTabbable(ye){if(!this._platform.isBrowser)return!1;const we=function Ze(Ye){try{return Ye.frameElement}catch{return null}}(function Pe(Ye){return Ye.ownerDocument&&Ye.ownerDocument.defaultView||window}(ye));if(we&&(-1===H(we)||!this.isVisible(we)))return!1;let ge=ye.nodeName.toLowerCase(),T=H(ye);return ye.hasAttribute("contenteditable")?-1!==T:!("iframe"===ge||"object"===ge||this._platform.WEBKIT&&this._platform.IOS&&!function Te(Ye){let Ee=Ye.nodeName.toLowerCase(),vt="input"===Ee&&Ye.type;return"text"===vt||"password"===vt||"select"===Ee||"textarea"===Ee}(ye))&&("audio"===ge?!!ye.hasAttribute("controls")&&-1!==T:"video"===ge?-1!==T&&(null!==T||this._platform.FIREFOX||ye.hasAttribute("controls")):ye.tabIndex>=0)}isFocusable(ye,we){return function Me(Ye){return!function De(Ye){return function st(Ye){return"input"==Ye.nodeName.toLowerCase()}(Ye)&&"hidden"==Ye.type}(Ye)&&(function Ct(Ye){let Ee=Ye.nodeName.toLowerCase();return"input"===Ee||"select"===Ee||"button"===Ee||"textarea"===Ee}(Ye)||function ft(Ye){return function bt(Ye){return"a"==Ye.nodeName.toLowerCase()}(Ye)&&Ye.hasAttribute("href")}(Ye)||Ye.hasAttribute("contenteditable")||_e(Ye))}(ye)&&!this.isDisabled(ye)&&((null==we?void 0:we.ignoreVisibility)||this.isVisible(ye))}}return(Ye=Ee).\u0275fac=function(ye){return new(ye||Ye)(r.LFG(b.t4))},Ye.\u0275prov=r.Yz7({token:Ye,factory:Ye.\u0275fac,providedIn:"root"}),Ee})();function _e(Ye){if(!Ye.hasAttribute("tabindex")||void 0===Ye.tabIndex)return!1;let Ee=Ye.getAttribute("tabindex");return!(!Ee||isNaN(parseInt(Ee,10)))}function H(Ye){if(!_e(Ye))return null;const Ee=parseInt(Ye.getAttribute("tabindex")||"",10);return isNaN(Ee)?-1:Ee}class dt{get enabled(){return this._enabled}set enabled(Ee){this._enabled=Ee,this._startAnchor&&this._endAnchor&&(this._toggleAnchorTabIndex(Ee,this._startAnchor),this._toggleAnchorTabIndex(Ee,this._endAnchor))}constructor(Ee,vt,ye,we,ge=!1){this._element=Ee,this._checker=vt,this._ngZone=ye,this._document=we,this._hasAttached=!1,this.startAnchorListener=()=>this.focusLastTabbableElement(),this.endAnchorListener=()=>this.focusFirstTabbableElement(),this._enabled=!0,ge||this.attachAnchors()}destroy(){const Ee=this._startAnchor,vt=this._endAnchor;Ee&&(Ee.removeEventListener("focus",this.startAnchorListener),Ee.remove()),vt&&(vt.removeEventListener("focus",this.endAnchorListener),vt.remove()),this._startAnchor=this._endAnchor=null,this._hasAttached=!1}attachAnchors(){return!!this._hasAttached||(this._ngZone.runOutsideAngular(()=>{this._startAnchor||(this._startAnchor=this._createAnchor(),this._startAnchor.addEventListener("focus",this.startAnchorListener)),this._endAnchor||(this._endAnchor=this._createAnchor(),this._endAnchor.addEventListener("focus",this.endAnchorListener))}),this._element.parentNode&&(this._element.parentNode.insertBefore(this._startAnchor,this._element),this._element.parentNode.insertBefore(this._endAnchor,this._element.nextSibling),this._hasAttached=!0),this._hasAttached)}focusInitialElementWhenReady(Ee){return new Promise(vt=>{this._executeOnStable(()=>vt(this.focusInitialElement(Ee)))})}focusFirstTabbableElementWhenReady(Ee){return new Promise(vt=>{this._executeOnStable(()=>vt(this.focusFirstTabbableElement(Ee)))})}focusLastTabbableElementWhenReady(Ee){return new Promise(vt=>{this._executeOnStable(()=>vt(this.focusLastTabbableElement(Ee)))})}_getRegionBoundary(Ee){const vt=this._element.querySelectorAll(`[cdk-focus-region-${Ee}], [cdkFocusRegion${Ee}], [cdk-focus-${Ee}]`);return"start"==Ee?vt.length?vt[0]:this._getFirstTabbableElement(this._element):vt.length?vt[vt.length-1]:this._getLastTabbableElement(this._element)}focusInitialElement(Ee){const vt=this._element.querySelector("[cdk-focus-initial], [cdkFocusInitial]");if(vt){if(!this._checker.isFocusable(vt)){const ye=this._getFirstTabbableElement(vt);return null==ye||ye.focus(Ee),!!ye}return vt.focus(Ee),!0}return this.focusFirstTabbableElement(Ee)}focusFirstTabbableElement(Ee){const vt=this._getRegionBoundary("start");return vt&&vt.focus(Ee),!!vt}focusLastTabbableElement(Ee){const vt=this._getRegionBoundary("end");return vt&&vt.focus(Ee),!!vt}hasAttached(){return this._hasAttached}_getFirstTabbableElement(Ee){if(this._checker.isFocusable(Ee)&&this._checker.isTabbable(Ee))return Ee;const vt=Ee.children;for(let ye=0;ye=0;ye--){const we=vt[ye].nodeType===this._document.ELEMENT_NODE?this._getLastTabbableElement(vt[ye]):null;if(we)return we}return null}_createAnchor(){const Ee=this._document.createElement("div");return this._toggleAnchorTabIndex(this._enabled,Ee),Ee.classList.add("cdk-visually-hidden"),Ee.classList.add("cdk-focus-trap-anchor"),Ee.setAttribute("aria-hidden","true"),Ee}_toggleAnchorTabIndex(Ee,vt){Ee?vt.setAttribute("tabindex","0"):vt.removeAttribute("tabindex")}toggleAnchors(Ee){this._startAnchor&&this._endAnchor&&(this._toggleAnchorTabIndex(Ee,this._startAnchor),this._toggleAnchorTabIndex(Ee,this._endAnchor))}_executeOnStable(Ee){this._ngZone.isStable?Ee():this._ngZone.onStable.pipe((0,g.q)(1)).subscribe(Ee)}}let Pt=(()=>{var Ye;class Ee{constructor(ye,we,ge){this._checker=ye,this._ngZone=we,this._document=ge}create(ye,we=!1){return new dt(ye,this._checker,this._ngZone,this._document,we)}}return(Ye=Ee).\u0275fac=function(ye){return new(ye||Ye)(r.LFG(ze),r.LFG(r.R0b),r.LFG(a.K0))},Ye.\u0275prov=r.Yz7({token:Ye,factory:Ye.\u0275fac,providedIn:"root"}),Ee})(),Qt=(()=>{var Ye;class Ee{get enabled(){return this.focusTrap.enabled}set enabled(ye){this.focusTrap.enabled=(0,q.Ig)(ye)}get autoCapture(){return this._autoCapture}set autoCapture(ye){this._autoCapture=(0,q.Ig)(ye)}constructor(ye,we,ge){this._elementRef=ye,this._focusTrapFactory=we,this._previouslyFocusedElement=null,this.focusTrap=this._focusTrapFactory.create(this._elementRef.nativeElement,!0)}ngOnDestroy(){this.focusTrap.destroy(),this._previouslyFocusedElement&&(this._previouslyFocusedElement.focus(),this._previouslyFocusedElement=null)}ngAfterContentInit(){this.focusTrap.attachAnchors(),this.autoCapture&&this._captureFocus()}ngDoCheck(){this.focusTrap.hasAttached()||this.focusTrap.attachAnchors()}ngOnChanges(ye){const we=ye.autoCapture;we&&!we.firstChange&&this.autoCapture&&this.focusTrap.hasAttached()&&this._captureFocus()}_captureFocus(){this._previouslyFocusedElement=(0,b.ht)(),this.focusTrap.focusInitialElementWhenReady()}}return(Ye=Ee).\u0275fac=function(ye){return new(ye||Ye)(r.Y36(r.SBq),r.Y36(Pt),r.Y36(a.K0))},Ye.\u0275dir=r.lG2({type:Ye,selectors:[["","cdkTrapFocus",""]],inputs:{enabled:["cdkTrapFocus","enabled"],autoCapture:["cdkTrapFocusAutoCapture","autoCapture"]},exportAs:["cdkTrapFocus"],features:[r.TTD]}),Ee})();function mt(Ye){return 0===Ye.buttons||0===Ye.offsetX&&0===Ye.offsetY}function Ut(Ye){const Ee=Ye.touches&&Ye.touches[0]||Ye.changedTouches&&Ye.changedTouches[0];return!(!Ee||-1!==Ee.identifier||null!=Ee.radiusX&&1!==Ee.radiusX||null!=Ee.radiusY&&1!==Ee.radiusY)}const Bt=new r.OlP("cdk-input-modality-detector-options"),gt={ignoreKeys:[f.zL,f.jx,f.b2,f.MW,f.JU]},oe=(0,b.i$)({passive:!0,capture:!0});let Ce=(()=>{var Ye;class Ee{get mostRecentModality(){return this._modality.value}constructor(ye,we,ge,T){this._platform=ye,this._mostRecentTarget=null,this._modality=new p.X(null),this._lastTouchMs=0,this._onKeydown=V=>{var G,R;null!=(R=null==(G=this._options)?void 0:G.ignoreKeys)&&R.some(Y=>Y===V.keyCode)||(this._modality.next("keyboard"),this._mostRecentTarget=(0,b.sA)(V))},this._onMousedown=V=>{Date.now()-this._lastTouchMs<650||(this._modality.next(mt(V)?"keyboard":"mouse"),this._mostRecentTarget=(0,b.sA)(V))},this._onTouchstart=V=>{Ut(V)?this._modality.next("keyboard"):(this._lastTouchMs=Date.now(),this._modality.next("touch"),this._mostRecentTarget=(0,b.sA)(V))},this._options={...gt,...T},this.modalityDetected=this._modality.pipe((0,P.T)(1)),this.modalityChanged=this.modalityDetected.pipe((0,U.x)()),ye.isBrowser&&we.runOutsideAngular(()=>{ge.addEventListener("keydown",this._onKeydown,oe),ge.addEventListener("mousedown",this._onMousedown,oe),ge.addEventListener("touchstart",this._onTouchstart,oe)})}ngOnDestroy(){this._modality.complete(),this._platform.isBrowser&&(document.removeEventListener("keydown",this._onKeydown,oe),document.removeEventListener("mousedown",this._onMousedown,oe),document.removeEventListener("touchstart",this._onTouchstart,oe))}}return(Ye=Ee).\u0275fac=function(ye){return new(ye||Ye)(r.LFG(b.t4),r.LFG(r.R0b),r.LFG(a.K0),r.LFG(Bt,8))},Ye.\u0275prov=r.Yz7({token:Ye,factory:Ye.\u0275fac,providedIn:"root"}),Ee})();const ve=new r.OlP("liveAnnouncerElement",{providedIn:"root",factory:function xe(){return null}}),at=new r.OlP("LIVE_ANNOUNCER_DEFAULT_OPTIONS");let Ot=0,Fe=(()=>{var Ye;class Ee{constructor(ye,we,ge,T){this._ngZone=we,this._defaultOptions=T,this._document=ge,this._liveElement=ye||this._createLiveElement()}announce(ye,...we){const ge=this._defaultOptions;let T,V;return 1===we.length&&"number"==typeof we[0]?V=we[0]:[T,V]=we,this.clear(),clearTimeout(this._previousTimeout),T||(T=ge&&ge.politeness?ge.politeness:"polite"),null==V&&ge&&(V=ge.duration),this._liveElement.setAttribute("aria-live",T),this._liveElement.id&&this._exposeAnnouncerToModals(this._liveElement.id),this._ngZone.runOutsideAngular(()=>(this._currentPromise||(this._currentPromise=new Promise(G=>this._currentResolve=G)),clearTimeout(this._previousTimeout),this._previousTimeout=setTimeout(()=>{this._liveElement.textContent=ye,"number"==typeof V&&(this._previousTimeout=setTimeout(()=>this.clear(),V)),this._currentResolve(),this._currentPromise=this._currentResolve=void 0},100),this._currentPromise))}clear(){this._liveElement&&(this._liveElement.textContent="")}ngOnDestroy(){var ye,we;clearTimeout(this._previousTimeout),null==(ye=this._liveElement)||ye.remove(),this._liveElement=null,null==(we=this._currentResolve)||we.call(this),this._currentPromise=this._currentResolve=void 0}_createLiveElement(){const ye="cdk-live-announcer-element",we=this._document.getElementsByClassName(ye),ge=this._document.createElement("div");for(let T=0;T .cdk-overlay-container [aria-modal="true"]');for(let ge=0;ge{var Ye;class Ee{constructor(ye,we,ge,T,V){this._ngZone=ye,this._platform=we,this._inputModalityDetector=ge,this._origin=null,this._windowFocused=!1,this._originFromTouchInteraction=!1,this._elementInfo=new Map,this._monitoredElementCount=0,this._rootNodeFocusListenerCount=new Map,this._windowFocusListener=()=>{this._windowFocused=!0,this._windowFocusTimeoutId=window.setTimeout(()=>this._windowFocused=!1)},this._stopInputModalityDetector=new A.xQ,this._rootNodeFocusAndBlurListener=G=>{for(let Y=(0,b.sA)(G);Y;Y=Y.parentElement)"focus"===G.type?this._onFocus(G,Y):this._onBlur(G,Y)},this._document=T,this._detectionMode=(null==V?void 0:V.detectionMode)||0}monitor(ye,we=!1){const ge=(0,q.fI)(ye);if(!this._platform.isBrowser||1!==ge.nodeType)return(0,E.of)();const T=(0,b.kV)(ge)||this._getDocument(),V=this._elementInfo.get(ge);if(V)return we&&(V.checkChildren=!0),V.subject;const G={checkChildren:we,subject:new A.xQ,rootNode:T};return this._elementInfo.set(ge,G),this._registerGlobalListeners(G),G.subject}stopMonitoring(ye){const we=(0,q.fI)(ye),ge=this._elementInfo.get(we);ge&&(ge.subject.complete(),this._setClasses(we),this._elementInfo.delete(we),this._removeGlobalListeners(ge))}focusVia(ye,we,ge){const T=(0,q.fI)(ye);T===this._getDocument().activeElement?this._getClosestElementsInfo(T).forEach(([G,R])=>this._originChanged(G,we,R)):(this._setOrigin(we),"function"==typeof T.focus&&T.focus(ge))}ngOnDestroy(){this._elementInfo.forEach((ye,we)=>this.stopMonitoring(we))}_getDocument(){return this._document||document}_getWindow(){return this._getDocument().defaultView||window}_getFocusOrigin(ye){return this._origin?this._originFromTouchInteraction?this._shouldBeAttributedToTouch(ye)?"touch":"program":this._origin:this._windowFocused&&this._lastFocusOrigin?this._lastFocusOrigin:ye&&this._isLastInteractionFromInputLabel(ye)?"mouse":"program"}_shouldBeAttributedToTouch(ye){return 1===this._detectionMode||!(null==ye||!ye.contains(this._inputModalityDetector._mostRecentTarget))}_setClasses(ye,we){ye.classList.toggle("cdk-focused",!!we),ye.classList.toggle("cdk-touch-focused","touch"===we),ye.classList.toggle("cdk-keyboard-focused","keyboard"===we),ye.classList.toggle("cdk-mouse-focused","mouse"===we),ye.classList.toggle("cdk-program-focused","program"===we)}_setOrigin(ye,we=!1){this._ngZone.runOutsideAngular(()=>{this._origin=ye,this._originFromTouchInteraction="touch"===ye&&we,0===this._detectionMode&&(clearTimeout(this._originTimeoutId),this._originTimeoutId=setTimeout(()=>this._origin=null,this._originFromTouchInteraction?650:1))})}_onFocus(ye,we){const ge=this._elementInfo.get(we),T=(0,b.sA)(ye);!ge||!ge.checkChildren&&we!==T||this._originChanged(we,this._getFocusOrigin(T),ge)}_onBlur(ye,we){const ge=this._elementInfo.get(we);!ge||ge.checkChildren&&ye.relatedTarget instanceof Node&&we.contains(ye.relatedTarget)||(this._setClasses(we),this._emitOrigin(ge,null))}_emitOrigin(ye,we){ye.subject.observers.length&&this._ngZone.run(()=>ye.subject.next(we))}_registerGlobalListeners(ye){if(!this._platform.isBrowser)return;const we=ye.rootNode,ge=this._rootNodeFocusListenerCount.get(we)||0;ge||this._ngZone.runOutsideAngular(()=>{we.addEventListener("focus",this._rootNodeFocusAndBlurListener,We),we.addEventListener("blur",this._rootNodeFocusAndBlurListener,We)}),this._rootNodeFocusListenerCount.set(we,ge+1),1==++this._monitoredElementCount&&(this._ngZone.runOutsideAngular(()=>{this._getWindow().addEventListener("focus",this._windowFocusListener)}),this._inputModalityDetector.modalityDetected.pipe((0,d.R)(this._stopInputModalityDetector)).subscribe(T=>{this._setOrigin(T,!0)}))}_removeGlobalListeners(ye){const we=ye.rootNode;if(this._rootNodeFocusListenerCount.has(we)){const ge=this._rootNodeFocusListenerCount.get(we);ge>1?this._rootNodeFocusListenerCount.set(we,ge-1):(we.removeEventListener("focus",this._rootNodeFocusAndBlurListener,We),we.removeEventListener("blur",this._rootNodeFocusAndBlurListener,We),this._rootNodeFocusListenerCount.delete(we))}--this._monitoredElementCount||(this._getWindow().removeEventListener("focus",this._windowFocusListener),this._stopInputModalityDetector.next(),clearTimeout(this._windowFocusTimeoutId),clearTimeout(this._originTimeoutId))}_originChanged(ye,we,ge){this._setClasses(ye,we),this._emitOrigin(ge,we),this._lastFocusOrigin=we}_getClosestElementsInfo(ye){const we=[];return this._elementInfo.forEach((ge,T)=>{(T===ye||ge.checkChildren&&T.contains(ye))&&we.push([T,ge])}),we}_isLastInteractionFromInputLabel(ye){const{_mostRecentTarget:we,mostRecentModality:ge}=this._inputModalityDetector;if("mouse"!==ge||!we||we===ye||"INPUT"!==ye.nodeName&&"TEXTAREA"!==ye.nodeName||ye.disabled)return!1;const T=ye.labels;if(T)for(let V=0;V{var Ye;class Ee{constructor(ye,we){this._platform=ye,this._document=we,this._breakpointSubscription=(0,r.f3M)(K.Yg).observe("(forced-colors: active)").subscribe(()=>{this._hasCheckedHighContrastMode&&(this._hasCheckedHighContrastMode=!1,this._applyBodyHighContrastModeCssClasses())})}getHighContrastMode(){if(!this._platform.isBrowser)return 0;const ye=this._document.createElement("div");ye.style.backgroundColor="rgb(1,2,3)",ye.style.position="absolute",this._document.body.appendChild(ye);const we=this._document.defaultView||window,ge=we&&we.getComputedStyle?we.getComputedStyle(ye):null,T=(ge&&ge.backgroundColor||"").replace(/ /g,"");switch(ye.remove(),T){case"rgb(0,0,0)":case"rgb(45,50,54)":case"rgb(32,32,32)":return 2;case"rgb(255,255,255)":case"rgb(255,250,239)":return 1}return 0}ngOnDestroy(){this._breakpointSubscription.unsubscribe()}_applyBodyHighContrastModeCssClasses(){if(!this._hasCheckedHighContrastMode&&this._platform.isBrowser&&this._document.body){const ye=this._document.body.classList;ye.remove(pt,xt,Mt),this._hasCheckedHighContrastMode=!0;const we=this.getHighContrastMode();1===we?ye.add(pt,xt):2===we&&ye.add(pt,Mt)}}}return(Ye=Ee).\u0275fac=function(ye){return new(ye||Ye)(r.LFG(b.t4),r.LFG(a.K0))},Ye.\u0275prov=r.Yz7({token:Ye,factory:Ye.\u0275fac,providedIn:"root"}),Ee})(),Zt=(()=>{var Ye;class Ee{constructor(ye){ye._applyBodyHighContrastModeCssClasses()}}return(Ye=Ee).\u0275fac=function(ye){return new(ye||Ye)(r.LFG(St))},Ye.\u0275mod=r.oAB({type:Ye}),Ye.\u0275inj=r.cJS({imports:[j.Q8]}),Ee})()},49388:(Qe,he,s)=>{"use strict";s.d(he,{Is:()=>E,Lv:()=>f,vT:()=>c});var a=s(65879),r=s(96814);const b=new a.OlP("cdk-dir-doc",{providedIn:"root",factory:function A(){return(0,a.f3M)(r.K0)}}),D=/^(ar|ckb|dv|he|iw|fa|nqo|ps|sd|ug|ur|yi|.*[-_](Adlm|Arab|Hebr|Nkoo|Rohg|Thaa))(?!.*[-_](Latn|Cyrl)($|-|_))($|-|_)/i;function p(C){const m=(null==C?void 0:C.toLowerCase())||"";return"auto"===m&&typeof navigator<"u"&&null!=navigator&&navigator.language?D.test(navigator.language)?"rtl":"ltr":"rtl"===m?"rtl":"ltr"}let E=(()=>{var C;class m{constructor(g){this.value="ltr",this.change=new a.vpe,g&&(this.value=p((g.body?g.body.dir:null)||(g.documentElement?g.documentElement.dir:null)||"ltr"))}ngOnDestroy(){this.change.complete()}}return(C=m).\u0275fac=function(g){return new(g||C)(a.LFG(b,8))},C.\u0275prov=a.Yz7({token:C,factory:C.\u0275fac,providedIn:"root"}),m})(),f=(()=>{var C;class m{constructor(){this._dir="ltr",this._isInitialized=!1,this.change=new a.vpe}get dir(){return this._dir}set dir(g){const P=this._dir;this._dir=p(g),this._rawDir=g,P!==this._dir&&this._isInitialized&&this.change.emit(this._dir)}get value(){return this.dir}ngAfterContentInit(){this._isInitialized=!0}ngOnDestroy(){this.change.complete()}}return(C=m).\u0275fac=function(g){return new(g||C)},C.\u0275dir=a.lG2({type:C,selectors:[["","dir",""]],hostVars:1,hostBindings:function(g,P){2&g&&a.uIk("dir",P._rawDir)},inputs:{dir:"dir"},outputs:{change:"dirChange"},exportAs:["dir"],features:[a._Bn([{provide:E,useExisting:C}])]}),m})(),c=(()=>{var C;class m{}return(C=m).\u0275fac=function(g){return new(g||C)},C.\u0275mod=a.oAB({type:C}),C.\u0275inj=a.cJS({}),m})()},42495:(Qe,he,s)=>{"use strict";s.d(he,{Eq:()=>D,HM:()=>p,Ig:()=>r,du:()=>f,fI:()=>E,su:()=>b});var a=s(65879);function r(c){return null!=c&&"false"!=`${c}`}function b(c,C=0){return function A(c){return!isNaN(parseFloat(c))&&!isNaN(Number(c))}(c)?Number(c):C}function D(c){return Array.isArray(c)?c:[c]}function p(c){return null==c?"":"string"==typeof c?c:`${c}px`}function E(c){return c instanceof a.SBq?c.nativeElement:c}function f(c,C=/\s+/){const m=[];if(null!=c){const _=Array.isArray(c)?c:`${c}`.split(C);for(const g of _){const P=`${g}`.trim();P&&m.push(P)}}return m}},87845:(Qe,he,s)=>{"use strict";s.d(he,{Zt:()=>St,Bh:()=>je,Hk:()=>We,Wj:()=>vt,_t:()=>we,bA:()=>Qt});var a=s(65879),r=s(96814),b=s(16672),A=s(62831),D=s(42495),p=s(4300),E=s(72079),f=s(7902),c=s(54699),C=s(40435),m=s(66745);function g(ge){const{subscriber:T,counter:V,period:G}=ge;T.next(V),this.schedule({subscriber:T,counter:V+1,period:G},G)}var P=s(73944),U=s(47354),d=s(19352),q=s(96124),j=s(51418),K=s(53075),L=s(17927),w=s(75222),k=s(49388);function X(ge,T,V){for(let G in T)if(T.hasOwnProperty(G)){const R=T[G];R?ge.setProperty(G,R,null!=V&&V.has(G)?"important":""):ge.removeProperty(G)}return ge}function de(ge,T){const V=T?"":"none";X(ge.style,{"touch-action":T?"":"none","-webkit-user-drag":T?"":"none","-webkit-tap-highlight-color":T?"":"transparent","user-select":V,"-ms-user-select":V,"-webkit-user-select":V,"-moz-user-select":V})}function re(ge,T,V){X(ge.style,{position:T?"":"fixed",top:T?"":"0",opacity:T?"":"0",left:T?"":"-999em"},V)}function be(ge,T){return T&&"none"!=T?ge+" "+T:ge}function pe(ge){const T=ge.toLowerCase().indexOf("ms")>-1?1:1e3;return parseFloat(ge)*T}function Je(ge,T){return ge.getPropertyValue(T).split(",").map(G=>G.trim())}function qe(ge){const T=ge.getBoundingClientRect();return{top:T.top,right:T.right,bottom:T.bottom,left:T.left,width:T.width,height:T.height,x:T.x,y:T.y}}function it(ge,T,V){const{top:G,bottom:R,left:Y,right:le}=ge;return V>=G&&V<=R&&T>=Y&&T<=le}function rt(ge,T,V){ge.top+=T,ge.bottom=ge.top+ge.height,ge.left+=V,ge.right=ge.left+ge.width}function tt(ge,T,V,G){const{top:R,right:Y,bottom:le,left:ke,width:ht,height:Gt}=ge,Wt=ht*T,mn=Gt*T;return G>R-mn&&Gke-Wt&&V{this.positions.set(V,{scrollPosition:{top:V.scrollTop,left:V.scrollLeft},clientRect:qe(V)})})}handleScroll(T){const V=(0,A.sA)(T),G=this.positions.get(V);if(!G)return null;const R=G.scrollPosition;let Y,le;if(V===this._document){const Gt=this.getViewportScrollPosition();Y=Gt.top,le=Gt.left}else Y=V.scrollTop,le=V.scrollLeft;const ke=R.top-Y,ht=R.left-le;return this.positions.forEach((Gt,Wt)=>{Gt.clientRect&&V!==Wt&&V.contains(Wt)&&rt(Gt.clientRect,ke,ht)}),R.top=Y,R.left=le,{top:ke,left:ht}}getViewportScrollPosition(){return{top:window.scrollY,left:window.scrollX}}}function ze(ge){const T=ge.cloneNode(!0),V=T.querySelectorAll("[id]"),G=ge.nodeName.toLowerCase();T.removeAttribute("id");for(let R=0;Rde(G,V)))}constructor(T,V,G,R,Y,le){this._config=V,this._document=G,this._ngZone=R,this._viewportRuler=Y,this._dragDropRegistry=le,this._passiveTransform={x:0,y:0},this._activeTransform={x:0,y:0},this._hasStartedDragging=!1,this._moveEvents=new E.xQ,this._pointerMoveSubscription=f.w.EMPTY,this._pointerUpSubscription=f.w.EMPTY,this._scrollSubscription=f.w.EMPTY,this._resizeSubscription=f.w.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 E.xQ,this.started=new E.xQ,this.released=new E.xQ,this.ended=new E.xQ,this.entered=new E.xQ,this.exited=new E.xQ,this.dropped=new E.xQ,this.moved=this._moveEvents,this._pointerDown=ke=>{if(this.beforeStarted.next(),this._handles.length){const ht=this._getTargetHandle(ke);ht&&!this._disabledHandles.has(ht)&&!this.disabled&&this._initializeDragSequence(ht,ke)}else this.disabled||this._initializeDragSequence(this._rootElement,ke)},this._pointerMove=ke=>{const ht=this._getPointerPositionOnPage(ke);if(!this._hasStartedDragging){if(Math.abs(ht.x-this._pickupPositionOnPage.x)+Math.abs(ht.y-this._pickupPositionOnPage.y)>=this._config.dragStartThreshold){const ut=Date.now()>=this._dragStartTime+this._getDragStartDelay(ke),Xe=this._dropContainer;if(!ut)return void this._endDragSequence(ke);(!Xe||!Xe.isDragging()&&!Xe.isReceiving())&&(ke.preventDefault(),this._hasStartedDragging=!0,this._ngZone.run(()=>this._startDragSequence(ke)))}return}ke.preventDefault();const Gt=this._getConstrainedPointerPosition(ht);if(this._hasMoved=!0,this._lastKnownPointerPosition=ht,this._updatePointerDirectionDelta(Gt),this._dropContainer)this._updateActiveDropContainer(Gt,ht);else{const Wt=this.constrainPosition?this._initialClientRect:this._pickupPositionOnPage,mn=this._activeTransform;mn.x=Gt.x-Wt.x+this._passiveTransform.x,mn.y=Gt.y-Wt.y+this._passiveTransform.y,this._applyRootElementTransform(mn.x,mn.y)}this._moveEvents.observers.length&&this._ngZone.run(()=>{this._moveEvents.next({source:this,pointerPosition:Gt,event:ke,distance:this._getDragDistance(Gt),delta:this._pointerDirectionDelta})})},this._pointerUp=ke=>{this._endDragSequence(ke)},this._nativeDragStart=ke=>{if(this._handles.length){const ht=this._getTargetHandle(ke);ht&&!this._disabledHandles.has(ht)&&!this.disabled&&ke.preventDefault()}else this.disabled||ke.preventDefault()},this.withRootElement(T).withParent(V.parentDragRef||null),this._parentPositions=new _t(G),le.registerDragItem(this)}getPlaceholderElement(){return this._placeholder}getRootElement(){return this._rootElement}getVisibleElement(){return this.isDragging()?this.getPlaceholderElement():this.getRootElement()}withHandles(T){this._handles=T.map(G=>(0,D.fI)(G)),this._handles.forEach(G=>de(G,this.disabled)),this._toggleNativeDragInteractions();const V=new Set;return this._disabledHandles.forEach(G=>{this._handles.indexOf(G)>-1&&V.add(G)}),this._disabledHandles=V,this}withPreviewTemplate(T){return this._previewTemplate=T,this}withPlaceholderTemplate(T){return this._placeholderTemplate=T,this}withRootElement(T){const V=(0,D.fI)(T);return V!==this._rootElement&&(this._rootElement&&this._removeRootElementListeners(this._rootElement),this._ngZone.runOutsideAngular(()=>{V.addEventListener("mousedown",this._pointerDown,st),V.addEventListener("touchstart",this._pointerDown,ft),V.addEventListener("dragstart",this._nativeDragStart,st)}),this._initialTransform=void 0,this._rootElement=V),typeof SVGElement<"u"&&this._rootElement instanceof SVGElement&&(this._ownerSVGElement=this._rootElement.ownerSVGElement),this}withBoundaryElement(T){return this._boundaryElement=T?(0,D.fI)(T):null,this._resizeSubscription.unsubscribe(),T&&(this._resizeSubscription=this._viewportRuler.change(10).subscribe(()=>this._containInsideBoundaryOnResize())),this}withParent(T){return this._parentDragRef=T,this}dispose(){var T,V;this._removeRootElementListeners(this._rootElement),this.isDragging()&&(null==(T=this._rootElement)||T.remove()),null==(V=this._anchor)||V.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(T){!this._disabledHandles.has(T)&&this._handles.indexOf(T)>-1&&(this._disabledHandles.add(T),de(T,!0))}enableHandle(T){this._disabledHandles.has(T)&&(this._disabledHandles.delete(T),de(T,this.disabled))}withDirection(T){return this._direction=T,this}_withDropContainer(T){this._dropContainer=T}getFreeDragPosition(){const T=this.isDragging()?this._activeTransform:this._passiveTransform;return{x:T.x,y:T.y}}setFreeDragPosition(T){return this._activeTransform={x:0,y:0},this._passiveTransform.x=T.x,this._passiveTransform.y=T.y,this._dropContainer||this._applyRootElementTransform(T.x,T.y),this}withPreviewContainer(T){return this._previewContainer=T,this}_sortFromLastPointerPosition(){const T=this._lastKnownPointerPosition;T&&this._dropContainer&&this._updateActiveDropContainer(this._getConstrainedPointerPosition(T),T)}_removeSubscriptions(){this._pointerMoveSubscription.unsubscribe(),this._pointerUpSubscription.unsubscribe(),this._scrollSubscription.unsubscribe()}_destroyPreview(){var T,V;null==(T=this._preview)||T.remove(),null==(V=this._previewRef)||V.destroy(),this._preview=this._previewRef=null}_destroyPlaceholder(){var T,V;null==(T=this._placeholder)||T.remove(),null==(V=this._placeholderRef)||V.destroy(),this._placeholder=this._placeholderRef=null}_endDragSequence(T){if(this._dragDropRegistry.isDragging(this)&&(this._removeSubscriptions(),this._dragDropRegistry.stopDragging(this),this._toggleNativeDragInteractions(),this._handles&&(this._rootElement.style.webkitTapHighlightColor=this._rootElementTapHighlight),this._hasStartedDragging))if(this.released.next({source:this,event:T}),this._dropContainer)this._dropContainer._stopScrolling(),this._animatePreviewToPlaceholder().then(()=>{this._cleanupDragArtifacts(T),this._cleanupCachedDimensions(),this._dragDropRegistry.stopDragging(this)});else{this._passiveTransform.x=this._activeTransform.x;const V=this._getPointerPositionOnPage(T);this._passiveTransform.y=this._activeTransform.y,this._ngZone.run(()=>{this.ended.next({source:this,distance:this._getDragDistance(V),dropPoint:V,event:T})}),this._cleanupCachedDimensions(),this._dragDropRegistry.stopDragging(this)}}_startDragSequence(T){Pe(T)&&(this._lastTouchEventTime=Date.now()),this._toggleNativeDragInteractions();const V=this._dropContainer;if(V){const G=this._rootElement,R=G.parentNode,Y=this._placeholder=this._createPlaceholderElement(),le=this._anchor=this._anchor||this._document.createComment(""),ke=this._getShadowRoot();R.insertBefore(le,G),this._initialTransform=G.style.transform||"",this._preview=this._createPreviewElement(),re(G,!1,_e),this._document.body.appendChild(R.replaceChild(Y,G)),this._getPreviewInsertionPoint(R,ke).appendChild(this._preview),this.started.next({source:this,event:T}),V.start(),this._initialContainer=V,this._initialIndex=V.getItemIndex(this)}else this.started.next({source:this,event:T}),this._initialContainer=this._initialIndex=void 0;this._parentPositions.cache(V?V.getScrollableParents():[])}_initializeDragSequence(T,V){this._parentDragRef&&V.stopPropagation();const G=this.isDragging(),R=Pe(V),Y=!R&&0!==V.button,le=this._rootElement,ke=(0,A.sA)(V),ht=!R&&this._lastTouchEventTime&&this._lastTouchEventTime+800>Date.now(),Gt=R?(0,p.yG)(V):(0,p.X6)(V);if(ke&&ke.draggable&&"mousedown"===V.type&&V.preventDefault(),G||Y||ht||Gt)return;if(this._handles.length){const wn=le.style;this._rootElementTapHighlight=wn.webkitTapHighlightColor||"",wn.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(wn=>this._updateOnScroll(wn)),this._boundaryElement&&(this._boundaryRect=qe(this._boundaryElement));const Wt=this._previewTemplate;this._pickupPositionInElement=Wt&&Wt.template&&!Wt.matchSize?{x:0,y:0}:this._getPointerPositionInElement(this._initialClientRect,T,V);const mn=this._pickupPositionOnPage=this._lastKnownPointerPosition=this._getPointerPositionOnPage(V);this._pointerDirectionDelta={x:0,y:0},this._pointerPositionAtLastDirectionChange={x:mn.x,y:mn.y},this._dragStartTime=Date.now(),this._dragDropRegistry.startDragging(this,V)}_cleanupDragArtifacts(T){re(this._rootElement,!0,_e),this._anchor.parentNode.replaceChild(this._rootElement,this._anchor),this._destroyPreview(),this._destroyPlaceholder(),this._initialClientRect=this._boundaryRect=this._previewRect=this._initialTransform=void 0,this._ngZone.run(()=>{const V=this._dropContainer,G=V.getItemIndex(this),R=this._getPointerPositionOnPage(T),Y=this._getDragDistance(R),le=V._isOverContainer(R.x,R.y);this.ended.next({source:this,distance:Y,dropPoint:R,event:T}),this.dropped.next({item:this,currentIndex:G,previousIndex:this._initialIndex,container:V,previousContainer:this._initialContainer,isPointerOverContainer:le,distance:Y,dropPoint:R,event:T}),V.drop(this,G,this._initialIndex,this._initialContainer,le,Y,R,T),this._dropContainer=this._initialContainer})}_updateActiveDropContainer({x:T,y:V},{x:G,y:R}){let Y=this._initialContainer._getSiblingContainerFromPosition(this,T,V);!Y&&this._dropContainer!==this._initialContainer&&this._initialContainer._isOverContainer(T,V)&&(Y=this._initialContainer),Y&&Y!==this._dropContainer&&this._ngZone.run(()=>{this.exited.next({item:this,container:this._dropContainer}),this._dropContainer.exit(this),this._dropContainer=Y,this._dropContainer.enter(this,T,V,Y===this._initialContainer&&Y.sortingDisabled?this._initialIndex:void 0),this.entered.next({item:this,container:Y,currentIndex:Y.getItemIndex(this)})}),this.isDragging()&&(this._dropContainer._startScrollingIfNecessary(G,R),this._dropContainer._sortItem(this,T,V,this._pointerDirectionDelta),this.constrainPosition?this._applyPreviewTransform(T,V):this._applyPreviewTransform(T-this._pickupPositionInElement.x,V-this._pickupPositionInElement.y))}_createPreviewElement(){const T=this._previewTemplate,V=this.previewClass,G=T?T.template:null;let R;if(G&&T){const Y=T.matchSize?this._initialClientRect:null,le=T.viewContainer.createEmbeddedView(G,T.context);le.detectChanges(),R=dt(le,this._document),this._previewRef=le,T.matchSize?Pt(R,Y):R.style.transform=Te(this._pickupPositionOnPage.x,this._pickupPositionOnPage.y)}else R=ze(this._rootElement),Pt(R,this._initialClientRect),this._initialTransform&&(R.style.transform=this._initialTransform);return X(R.style,{"pointer-events":"none",margin:"0",position:"fixed",top:"0",left:"0","z-index":`${this._config.zIndex||1e3}`},_e),de(R,!1),R.classList.add("cdk-drag-preview"),R.setAttribute("dir",this._direction),V&&(Array.isArray(V)?V.forEach(Y=>R.classList.add(Y)):R.classList.add(V)),R}_animatePreviewToPlaceholder(){if(!this._hasMoved)return Promise.resolve();const T=this._placeholder.getBoundingClientRect();this._preview.classList.add("cdk-drag-animating"),this._applyPreviewTransform(T.left,T.top);const V=function $e(ge){const T=getComputedStyle(ge),V=Je(T,"transition-property"),G=V.find(ke=>"transform"===ke||"all"===ke);if(!G)return 0;const R=V.indexOf(G),Y=Je(T,"transition-duration"),le=Je(T,"transition-delay");return pe(Y[R])+pe(le[R])}(this._preview);return 0===V?Promise.resolve():this._ngZone.runOutsideAngular(()=>new Promise(G=>{const R=le=>{var ke;(!le||(0,A.sA)(le)===this._preview&&"transform"===le.propertyName)&&(null==(ke=this._preview)||ke.removeEventListener("transitionend",R),G(),clearTimeout(Y))},Y=setTimeout(R,1.5*V);this._preview.addEventListener("transitionend",R)}))}_createPlaceholderElement(){const T=this._placeholderTemplate,V=T?T.template:null;let G;return V?(this._placeholderRef=T.viewContainer.createEmbeddedView(V,T.context),this._placeholderRef.detectChanges(),G=dt(this._placeholderRef,this._document)):G=ze(this._rootElement),G.style.pointerEvents="none",G.classList.add("cdk-drag-placeholder"),G}_getPointerPositionInElement(T,V,G){const R=V===this._rootElement?null:V,Y=R?R.getBoundingClientRect():T,le=Pe(G)?G.targetTouches[0]:G,ke=this._getViewportScrollPosition();return{x:Y.left-T.left+(le.pageX-Y.left-ke.left),y:Y.top-T.top+(le.pageY-Y.top-ke.top)}}_getPointerPositionOnPage(T){const V=this._getViewportScrollPosition(),G=Pe(T)?T.touches[0]||T.changedTouches[0]||{pageX:0,pageY:0}:T,R=G.pageX-V.left,Y=G.pageY-V.top;if(this._ownerSVGElement){const le=this._ownerSVGElement.getScreenCTM();if(le){const ke=this._ownerSVGElement.createSVGPoint();return ke.x=R,ke.y=Y,ke.matrixTransform(le.inverse())}}return{x:R,y:Y}}_getConstrainedPointerPosition(T){const V=this._dropContainer?this._dropContainer.lockAxis:null;let{x:G,y:R}=this.constrainPosition?this.constrainPosition(T,this,this._initialClientRect,this._pickupPositionInElement):T;if("x"===this.lockAxis||"x"===V?R=this._pickupPositionOnPage.y-(this.constrainPosition?this._pickupPositionInElement.y:0):("y"===this.lockAxis||"y"===V)&&(G=this._pickupPositionOnPage.x-(this.constrainPosition?this._pickupPositionInElement.x:0)),this._boundaryRect){const{x:Y,y:le}=this.constrainPosition?{x:0,y:0}:this._pickupPositionInElement,ke=this._boundaryRect,{width:ht,height:Gt}=this._getPreviewRect(),Wt=ke.top+le,mn=ke.bottom-(Gt-le);G=Me(G,ke.left+Y,ke.right-(ht-Y)),R=Me(R,Wt,mn)}return{x:G,y:R}}_updatePointerDirectionDelta(T){const{x:V,y:G}=T,R=this._pointerDirectionDelta,Y=this._pointerPositionAtLastDirectionChange,le=Math.abs(V-Y.x),ke=Math.abs(G-Y.y);return le>this._config.pointerDirectionChangeThreshold&&(R.x=V>Y.x?1:-1,Y.x=V),ke>this._config.pointerDirectionChangeThreshold&&(R.y=G>Y.y?1:-1,Y.y=G),R}_toggleNativeDragInteractions(){if(!this._rootElement||!this._handles)return;const T=this._handles.length>0||!this.isDragging();T!==this._nativeInteractionsEnabled&&(this._nativeInteractionsEnabled=T,de(this._rootElement,T))}_removeRootElementListeners(T){T.removeEventListener("mousedown",this._pointerDown,st),T.removeEventListener("touchstart",this._pointerDown,ft),T.removeEventListener("dragstart",this._nativeDragStart,st)}_applyRootElementTransform(T,V){const G=Te(T,V),R=this._rootElement.style;null==this._initialTransform&&(this._initialTransform=R.transform&&"none"!=R.transform?R.transform:""),R.transform=be(G,this._initialTransform)}_applyPreviewTransform(T,V){var Y;const G=null!=(Y=this._previewTemplate)&&Y.template?void 0:this._initialTransform,R=Te(T,V);this._preview.style.transform=be(R,G)}_getDragDistance(T){const V=this._pickupPositionOnPage;return V?{x:T.x-V.x,y:T.y-V.y}:{x:0,y:0}}_cleanupCachedDimensions(){this._boundaryRect=this._previewRect=void 0,this._parentPositions.clear()}_containInsideBoundaryOnResize(){let{x:T,y:V}=this._passiveTransform;if(0===T&&0===V||this.isDragging()||!this._boundaryElement)return;const G=this._rootElement.getBoundingClientRect(),R=this._boundaryElement.getBoundingClientRect();if(0===R.width&&0===R.height||0===G.width&&0===G.height)return;const Y=R.left-G.left,le=G.right-R.right,ke=R.top-G.top,ht=G.bottom-R.bottom;R.width>G.width?(Y>0&&(T+=Y),le>0&&(T-=le)):T=0,R.height>G.height?(ke>0&&(V+=ke),ht>0&&(V-=ht)):V=0,(T!==this._passiveTransform.x||V!==this._passiveTransform.y)&&this.setFreeDragPosition({y:V,x:T})}_getDragStartDelay(T){const V=this.dragStartDelay;return"number"==typeof V?V:Pe(T)?V.touch:V?V.mouse:0}_updateOnScroll(T){const V=this._parentPositions.handleScroll(T);if(V){const G=(0,A.sA)(T);this._boundaryRect&&G!==this._boundaryElement&&G.contains(this._boundaryElement)&&rt(this._boundaryRect,V.top,V.left),this._pickupPositionOnPage.x+=V.left,this._pickupPositionOnPage.y+=V.top,this._dropContainer||(this._activeTransform.x-=V.left,this._activeTransform.y-=V.top,this._applyRootElementTransform(this._activeTransform.x,this._activeTransform.y))}}_getViewportScrollPosition(){var T;return(null==(T=this._parentPositions.positions.get(this._document))?void 0:T.scrollPosition)||this._parentPositions.getViewportScrollPosition()}_getShadowRoot(){return void 0===this._cachedShadowRoot&&(this._cachedShadowRoot=(0,A.kV)(this._rootElement)),this._cachedShadowRoot}_getPreviewInsertionPoint(T,V){const G=this._previewContainer||"global";if("parent"===G)return T;if("global"===G){const R=this._document;return V||R.fullscreenElement||R.webkitFullscreenElement||R.mozFullScreenElement||R.msFullscreenElement||R.body}return(0,D.fI)(G)}_getPreviewRect(){return(!this._previewRect||!this._previewRect.width&&!this._previewRect.height)&&(this._previewRect=this._preview?this._preview.getBoundingClientRect():this._initialClientRect),this._previewRect}_getTargetHandle(T){return this._handles.find(V=>T.target&&(T.target===V||V.contains(T.target)))}}function Te(ge,T){return`translate3d(${Math.round(ge)}px, ${Math.round(T)}px, 0)`}function Me(ge,T,V){return Math.max(T,Math.min(V,ge))}function Pe(ge){return"t"===ge.type[0]}function dt(ge,T){const V=ge.rootNodes;if(1===V.length&&V[0].nodeType===T.ELEMENT_NODE)return V[0];const G=T.createElement("div");return V.forEach(R=>G.appendChild(R)),G}function Pt(ge,T){ge.style.width=`${T.width}px`,ge.style.height=`${T.height}px`,ge.style.transform=Te(T.left,T.top)}function Qt(ge,T,V){const G=ne(T,ge.length-1),R=ne(V,ge.length-1);if(G===R)return;const Y=ge[G],le=R0)return null;const ke="horizontal"===this.orientation,ht=Y.findIndex(Tt=>Tt.drag===T),Gt=Y[le],mn=Gt.clientRect,wn=ht>le?1:-1,ut=this._getItemOffsetPx(Y[ht].clientRect,mn,wn),Xe=this._getSiblingOffsetPx(ht,Y,wn),Nt=Y.slice();return Qt(Y,ht,le),Y.forEach((Tt,qt)=>{if(Nt[qt]===Tt)return;const Yt=Tt.drag===T,fn=Yt?ut:Xe,dn=Yt?T.getPlaceholderElement():Tt.drag.getRootElement();Tt.offset+=fn,ke?(dn.style.transform=be(`translate3d(${Math.round(Tt.offset)}px, 0, 0)`,Tt.initialTransform),rt(Tt.clientRect,0,fn)):(dn.style.transform=be(`translate3d(0, ${Math.round(Tt.offset)}px, 0)`,Tt.initialTransform),rt(Tt.clientRect,fn,0))}),this._previousSwap.overlaps=it(mn,V,G),this._previousSwap.drag=Gt.drag,this._previousSwap.delta=ke?R.x:R.y,{previousIndex:ht,currentIndex:le}}enter(T,V,G,R){const Y=null==R||R<0?this._getItemIndexFromPointerPosition(T,V,G):R,le=this._activeDraggables,ke=le.indexOf(T),ht=T.getPlaceholderElement();let Gt=le[Y];if(Gt===T&&(Gt=le[Y+1]),!Gt&&(null==Y||-1===Y||Y-1&&le.splice(ke,1),Gt&&!this._dragDropRegistry.isDragging(Gt)){const Wt=Gt.getRootElement();Wt.parentElement.insertBefore(ht,Wt),le.splice(Y,0,T)}else(0,D.fI)(this._element).appendChild(ht),le.push(T);ht.style.transform="",this._cacheItemPositions()}withItems(T){this._activeDraggables=T.slice(),this._cacheItemPositions()}withSortPredicate(T){this._sortPredicate=T}reset(){this._activeDraggables.forEach(T=>{var G;const V=T.getRootElement();if(V){const R=null==(G=this._itemPositions.find(Y=>Y.drag===T))?void 0:G.initialTransform;V.style.transform=R||""}}),this._itemPositions=[],this._activeDraggables=[],this._previousSwap.drag=null,this._previousSwap.delta=0,this._previousSwap.overlaps=!1}getActiveItemsSnapshot(){return this._activeDraggables}getItemIndex(T){return("horizontal"===this.orientation&&"rtl"===this.direction?this._itemPositions.slice().reverse():this._itemPositions).findIndex(G=>G.drag===T)}updateOnScroll(T,V){this._itemPositions.forEach(({clientRect:G})=>{rt(G,T,V)}),this._itemPositions.forEach(({drag:G})=>{this._dragDropRegistry.isDragging(G)&&G._sortFromLastPointerPosition()})}_cacheItemPositions(){const T="horizontal"===this.orientation;this._itemPositions=this._activeDraggables.map(V=>{const G=V.getVisibleElement();return{drag:V,offset:0,initialTransform:G.style.transform||"",clientRect:qe(G)}}).sort((V,G)=>T?V.clientRect.left-G.clientRect.left:V.clientRect.top-G.clientRect.top)}_getItemOffsetPx(T,V,G){const R="horizontal"===this.orientation;let Y=R?V.left-T.left:V.top-T.top;return-1===G&&(Y+=R?V.width-T.width:V.height-T.height),Y}_getSiblingOffsetPx(T,V,G){const R="horizontal"===this.orientation,Y=V[T].clientRect,le=V[T+-1*G];let ke=Y[R?"width":"height"]*G;if(le){const ht=R?"left":"top",Gt=R?"right":"bottom";-1===G?ke-=le.clientRect[ht]-Y[Gt]:ke+=Y[ht]-le.clientRect[Gt]}return ke}_shouldEnterAsFirstChild(T,V){if(!this._activeDraggables.length)return!1;const G=this._itemPositions,R="horizontal"===this.orientation;if(G[0].drag!==this._activeDraggables[0]){const le=G[G.length-1].clientRect;return R?T>=le.right:V>=le.bottom}{const le=G[0].clientRect;return R?T<=le.left:V<=le.top}}_getItemIndexFromPointerPosition(T,V,G,R){const Y="horizontal"===this.orientation,le=this._itemPositions.findIndex(({drag:ke,clientRect:ht})=>ke!==T&&((!R||ke!==this._previousSwap.drag||!this._previousSwap.overlaps||(Y?R.x:R.y)!==this._previousSwap.delta)&&(Y?V>=Math.floor(ht.left)&&V=Math.floor(ht.top)&&G!0,this.sortPredicate=()=>!0,this.beforeStarted=new E.xQ,this.entered=new E.xQ,this.exited=new E.xQ,this.dropped=new E.xQ,this.sorted=new E.xQ,this.receivingStarted=new E.xQ,this.receivingStopped=new E.xQ,this._isDragging=!1,this._draggables=[],this._siblings=[],this._activeSiblings=new Set,this._viewportScrollSubscription=f.w.EMPTY,this._verticalScrollDirection=0,this._horizontalScrollDirection=0,this._stopScrollTimers=new E.xQ,this._cachedShadowRoot=null,this._startScrollInterval=()=>{this._stopScrolling(),function _(ge=0,T=C.P){return(!(0,m.k)(ge)||ge<0)&&(ge=0),(!T||"function"!=typeof T.schedule)&&(T=C.P),new c.y(V=>(V.add(T.schedule(g,ge,{subscriber:V,counter:0,period:ge})),V))}(0,P.r).pipe((0,d.R)(this._stopScrollTimers)).subscribe(()=>{const le=this._scrollNode,ke=this.autoScrollStep;1===this._verticalScrollDirection?le.scrollBy(0,-ke):2===this._verticalScrollDirection&&le.scrollBy(0,ke),1===this._horizontalScrollDirection?le.scrollBy(-ke,0):2===this._horizontalScrollDirection&&le.scrollBy(ke,0)})},this.element=(0,D.fI)(T),this._document=G,this.withScrollableParents([this.element]),V.registerDropContainer(this),this._parentPositions=new _t(G),this._sortStrategy=new ce(this.element,V),this._sortStrategy.withSortPredicate((le,ke)=>this.sortPredicate(le,ke,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(T,V,G,R){this._draggingStarted(),null==R&&this.sortingDisabled&&(R=this._draggables.indexOf(T)),this._sortStrategy.enter(T,V,G,R),this._cacheParentPositions(),this._notifyReceivingSiblings(),this.entered.next({item:T,container:this,currentIndex:this.getItemIndex(T)})}exit(T){this._reset(),this.exited.next({item:T,container:this})}drop(T,V,G,R,Y,le,ke,ht={}){this._reset(),this.dropped.next({item:T,currentIndex:V,previousIndex:G,container:this,previousContainer:R,isPointerOverContainer:Y,distance:le,dropPoint:ke,event:ht})}withItems(T){const V=this._draggables;return this._draggables=T,T.forEach(G=>G._withDropContainer(this)),this.isDragging()&&(V.filter(R=>R.isDragging()).every(R=>-1===T.indexOf(R))?this._reset():this._sortStrategy.withItems(this._draggables)),this}withDirection(T){return this._sortStrategy.direction=T,this}connectedTo(T){return this._siblings=T.slice(),this}withOrientation(T){return this._sortStrategy.orientation=T,this}withScrollableParents(T){const V=(0,D.fI)(this.element);return this._scrollableElements=-1===T.indexOf(V)?[V,...T]:T.slice(),this}getScrollableParents(){return this._scrollableElements}getItemIndex(T){return this._isDragging?this._sortStrategy.getItemIndex(T):this._draggables.indexOf(T)}isReceiving(){return this._activeSiblings.size>0}_sortItem(T,V,G,R){if(this.sortingDisabled||!this._clientRect||!tt(this._clientRect,.05,V,G))return;const Y=this._sortStrategy.sort(T,V,G,R);Y&&this.sorted.next({previousIndex:Y.previousIndex,currentIndex:Y.currentIndex,container:this,item:T})}_startScrollingIfNecessary(T,V){if(this.autoScrollDisabled)return;let G,R=0,Y=0;if(this._parentPositions.positions.forEach((le,ke)=>{ke===this._document||!le.clientRect||G||tt(le.clientRect,.05,T,V)&&([R,Y]=function nt(ge,T,V,G){const R=Bt(T,G),Y=gt(T,V);let le=0,ke=0;if(R){const ht=ge.scrollTop;1===R?ht>0&&(le=1):ge.scrollHeight-ht>ge.clientHeight&&(le=2)}if(Y){const ht=ge.scrollLeft;1===Y?ht>0&&(ke=1):ge.scrollWidth-ht>ge.clientWidth&&(ke=2)}return[le,ke]}(ke,le.clientRect,T,V),(R||Y)&&(G=ke))}),!R&&!Y){const{width:le,height:ke}=this._viewportRuler.getViewportSize(),ht={width:le,height:ke,top:0,right:le,bottom:ke,left:0};R=Bt(ht,V),Y=gt(ht,T),G=window}G&&(R!==this._verticalScrollDirection||Y!==this._horizontalScrollDirection||G!==this._scrollNode)&&(this._verticalScrollDirection=R,this._horizontalScrollDirection=Y,this._scrollNode=G,(R||Y)&&G?this._ngZone.runOutsideAngular(this._startScrollInterval):this._stopScrolling())}_stopScrolling(){this._stopScrollTimers.next()}_draggingStarted(){const T=(0,D.fI)(this.element).style;this.beforeStarted.next(),this._isDragging=!0,this._initialScrollSnap=T.msScrollSnapType||T.scrollSnapType||"",T.scrollSnapType=T.msScrollSnapType="none",this._sortStrategy.start(this._draggables),this._cacheParentPositions(),this._viewportScrollSubscription.unsubscribe(),this._listenToScrollEvents()}_cacheParentPositions(){const T=(0,D.fI)(this.element);this._parentPositions.cache(this._scrollableElements),this._clientRect=this._parentPositions.positions.get(T).clientRect}_reset(){this._isDragging=!1;const T=(0,D.fI)(this.element).style;T.scrollSnapType=T.msScrollSnapType=this._initialScrollSnap,this._siblings.forEach(V=>V._stopReceiving(this)),this._sortStrategy.reset(),this._stopScrolling(),this._viewportScrollSubscription.unsubscribe(),this._parentPositions.clear()}_isOverContainer(T,V){return null!=this._clientRect&&it(this._clientRect,T,V)}_getSiblingContainerFromPosition(T,V,G){return this._siblings.find(R=>R._canReceive(T,V,G))}_canReceive(T,V,G){if(!this._clientRect||!it(this._clientRect,V,G)||!this.enterPredicate(T,this))return!1;const R=this._getShadowRoot().elementFromPoint(V,G);if(!R)return!1;const Y=(0,D.fI)(this.element);return R===Y||Y.contains(R)}_startReceiving(T,V){const G=this._activeSiblings;!G.has(T)&&V.every(R=>this.enterPredicate(R,this)||this._draggables.indexOf(R)>-1)&&(G.add(T),this._cacheParentPositions(),this._listenToScrollEvents(),this.receivingStarted.next({initiator:T,receiver:this,items:V}))}_stopReceiving(T){this._activeSiblings.delete(T),this._viewportScrollSubscription.unsubscribe(),this.receivingStopped.next({initiator:T,receiver:this})}_listenToScrollEvents(){this._viewportScrollSubscription=this._dragDropRegistry.scrolled(this._getShadowRoot()).subscribe(T=>{if(this.isDragging()){const V=this._parentPositions.handleScroll(T);V&&this._sortStrategy.updateOnScroll(V.top,V.left)}else this.isReceiving()&&this._cacheParentPositions()})}_getShadowRoot(){if(!this._cachedShadowRoot){const T=(0,A.kV)((0,D.fI)(this.element));this._cachedShadowRoot=T||this._document}return this._cachedShadowRoot}_notifyReceivingSiblings(){const T=this._sortStrategy.getActiveItemsSnapshot().filter(V=>V.isDragging());this._siblings.forEach(V=>V._startReceiving(this,T))}}function Bt(ge,T){const{top:V,bottom:G,height:R}=ge,Y=.05*R;return T>=V-Y&&T<=V+Y?1:T>=G-Y&&T<=G+Y?2:0}function gt(ge,T){const{left:V,right:G,width:R}=ge,Y=.05*R;return T>=V-Y&&T<=V+Y?1:T>=G-Y&&T<=G+Y?2:0}const oe=(0,A.i$)({passive:!1,capture:!0});let Ce=(()=>{var ge;class T{constructor(G,R){this._ngZone=G,this._dropInstances=new Set,this._dragInstances=new Set,this._activeDragInstances=[],this._globalListeners=new Map,this._draggingPredicate=Y=>Y.isDragging(),this.pointerMove=new E.xQ,this.pointerUp=new E.xQ,this.scroll=new E.xQ,this._preventDefaultWhileDragging=Y=>{this._activeDragInstances.length>0&&Y.preventDefault()},this._persistentTouchmoveListener=Y=>{this._activeDragInstances.length>0&&(this._activeDragInstances.some(this._draggingPredicate)&&Y.preventDefault(),this.pointerMove.next(Y))},this._document=R}registerDropContainer(G){this._dropInstances.has(G)||this._dropInstances.add(G)}registerDragItem(G){this._dragInstances.add(G),1===this._dragInstances.size&&this._ngZone.runOutsideAngular(()=>{this._document.addEventListener("touchmove",this._persistentTouchmoveListener,oe)})}removeDropContainer(G){this._dropInstances.delete(G)}removeDragItem(G){this._dragInstances.delete(G),this.stopDragging(G),0===this._dragInstances.size&&this._document.removeEventListener("touchmove",this._persistentTouchmoveListener,oe)}startDragging(G,R){if(!(this._activeDragInstances.indexOf(G)>-1)&&(this._activeDragInstances.push(G),1===this._activeDragInstances.length)){const Y=R.type.startsWith("touch");this._globalListeners.set(Y?"touchend":"mouseup",{handler:le=>this.pointerUp.next(le),options:!0}).set("scroll",{handler:le=>this.scroll.next(le),options:!0}).set("selectstart",{handler:this._preventDefaultWhileDragging,options:oe}),Y||this._globalListeners.set("mousemove",{handler:le=>this.pointerMove.next(le),options:oe}),this._ngZone.runOutsideAngular(()=>{this._globalListeners.forEach((le,ke)=>{this._document.addEventListener(ke,le.handler,le.options)})})}}stopDragging(G){const R=this._activeDragInstances.indexOf(G);R>-1&&(this._activeDragInstances.splice(R,1),0===this._activeDragInstances.length&&this._clearGlobalListeners())}isDragging(G){return this._activeDragInstances.indexOf(G)>-1}scrolled(G){const R=[this.scroll];return G&&G!==this._document&&R.push(new c.y(Y=>this._ngZone.runOutsideAngular(()=>{const ke=ht=>{this._activeDragInstances.length&&Y.next(ht)};return G.addEventListener("scroll",ke,!0),()=>{G.removeEventListener("scroll",ke,!0)}}))),(0,U.T)(...R)}ngOnDestroy(){this._dragInstances.forEach(G=>this.removeDragItem(G)),this._dropInstances.forEach(G=>this.removeDropContainer(G)),this._clearGlobalListeners(),this.pointerMove.complete(),this.pointerUp.complete()}_clearGlobalListeners(){this._globalListeners.forEach((G,R)=>{this._document.removeEventListener(R,G.handler,G.options)}),this._globalListeners.clear()}}return(ge=T).\u0275fac=function(G){return new(G||ge)(a.LFG(a.R0b),a.LFG(r.K0))},ge.\u0275prov=a.Yz7({token:ge,factory:ge.\u0275fac,providedIn:"root"}),T})();const ve={dragStartThreshold:5,pointerDirectionChangeThreshold:5};let xe=(()=>{var ge;class T{constructor(G,R,Y,le){this._document=G,this._ngZone=R,this._viewportRuler=Y,this._dragDropRegistry=le}createDrag(G,R=ve){return new H(G,R,this._document,this._ngZone,this._viewportRuler,this._dragDropRegistry)}createDropList(G){return new Ut(G,this._dragDropRegistry,this._document,this._ngZone,this._viewportRuler)}}return(ge=T).\u0275fac=function(G){return new(G||ge)(a.LFG(r.K0),a.LFG(a.R0b),a.LFG(b.rL),a.LFG(Ce))},ge.\u0275prov=a.Yz7({token:ge,factory:ge.\u0275fac,providedIn:"root"}),T})();const at=new a.OlP("CDK_DRAG_PARENT"),Fe=new a.OlP("CdkDragHandle");let je=(()=>{var ge;class T{get disabled(){return this._disabled}set disabled(G){this._disabled=(0,D.Ig)(G),this._stateChanges.next(this)}constructor(G,R){this.element=G,this._stateChanges=new E.xQ,this._disabled=!1,this._parentDrag=R}ngOnDestroy(){this._stateChanges.complete()}}return(ge=T).\u0275fac=function(G){return new(G||ge)(a.Y36(a.SBq),a.Y36(at,12))},ge.\u0275dir=a.lG2({type:ge,selectors:[["","cdkDragHandle",""]],hostAttrs:[1,"cdk-drag-handle"],inputs:{disabled:["cdkDragHandleDisabled","disabled"]},standalone:!0,features:[a._Bn([{provide:Fe,useExisting:ge}])]}),T})();const kt=new a.OlP("CdkDragPlaceholder");let We=(()=>{var ge;class T{constructor(G){this.templateRef=G}}return(ge=T).\u0275fac=function(G){return new(G||ge)(a.Y36(a.Rgc))},ge.\u0275dir=a.lG2({type:ge,selectors:[["ng-template","cdkDragPlaceholder",""]],inputs:{data:"data"},standalone:!0,features:[a._Bn([{provide:kt,useExisting:ge}])]}),T})();const Ft=new a.OlP("CdkDragPreview"),xt=new a.OlP("CDK_DRAG_CONFIG"),pt=new a.OlP("CdkDropList");let St=(()=>{var ge;class T{get disabled(){return this._disabled||this.dropContainer&&this.dropContainer.disabled}set disabled(G){this._disabled=(0,D.Ig)(G),this._dragRef.disabled=this._disabled}constructor(G,R,Y,le,ke,ht,Gt,Wt,mn,wn,ut){this.element=G,this.dropContainer=R,this._ngZone=le,this._viewContainerRef=ke,this._dir=Gt,this._changeDetectorRef=mn,this._selfHandle=wn,this._parentDrag=ut,this._destroyed=new E.xQ,this.started=new a.vpe,this.released=new a.vpe,this.ended=new a.vpe,this.entered=new a.vpe,this.exited=new a.vpe,this.dropped=new a.vpe,this.moved=new c.y(Xe=>{const Nt=this._dragRef.moved.pipe((0,q.U)(Tt=>({source:this,pointerPosition:Tt.pointerPosition,event:Tt.event,delta:Tt.delta,distance:Tt.distance}))).subscribe(Xe);return()=>{Nt.unsubscribe()}}),this._dragRef=Wt.createDrag(G,{dragStartThreshold:ht&&null!=ht.dragStartThreshold?ht.dragStartThreshold:5,pointerDirectionChangeThreshold:ht&&null!=ht.pointerDirectionChangeThreshold?ht.pointerDirectionChangeThreshold:5,zIndex:null==ht?void 0:ht.zIndex}),this._dragRef.data=this,T._dragInstances.push(this),ht&&this._assignDefaults(ht),R&&(this._dragRef._withDropContainer(R._dropListRef),R.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(G){this._dragRef.setFreeDragPosition(G)}ngAfterViewInit(){this._ngZone.runOutsideAngular(()=>{this._ngZone.onStable.pipe((0,j.q)(1),(0,d.R)(this._destroyed)).subscribe(()=>{this._updateRootElement(),this._setupHandlesListener(),this.freeDragPosition&&this._dragRef.setFreeDragPosition(this.freeDragPosition)})})}ngOnChanges(G){const R=G.rootElementSelector,Y=G.freeDragPosition;R&&!R.firstChange&&this._updateRootElement(),Y&&!Y.firstChange&&this.freeDragPosition&&this._dragRef.setFreeDragPosition(this.freeDragPosition)}ngOnDestroy(){this.dropContainer&&this.dropContainer.removeItem(this);const G=T._dragInstances.indexOf(this);G>-1&&T._dragInstances.splice(G,1),this._ngZone.runOutsideAngular(()=>{this._destroyed.next(),this._destroyed.complete(),this._dragRef.dispose()})}_updateRootElement(){var Y;const G=this.element.nativeElement;let R=G;this.rootElementSelector&&(R=void 0!==G.closest?G.closest(this.rootElementSelector):null==(Y=G.parentElement)?void 0:Y.closest(this.rootElementSelector)),this._dragRef.withRootElement(R||G)}_getBoundaryElement(){const G=this.boundaryElement;return G?"string"==typeof G?this.element.nativeElement.closest(G):(0,D.fI)(G):null}_syncInputs(G){G.beforeStarted.subscribe(()=>{if(!G.isDragging()){const R=this._dir,Y=this.dragStartDelay,le=this._placeholderTemplate?{template:this._placeholderTemplate.templateRef,context:this._placeholderTemplate.data,viewContainer:this._viewContainerRef}:null,ke=this._previewTemplate?{template:this._previewTemplate.templateRef,context:this._previewTemplate.data,matchSize:this._previewTemplate.matchSize,viewContainer:this._viewContainerRef}:null;G.disabled=this.disabled,G.lockAxis=this.lockAxis,G.dragStartDelay="object"==typeof Y&&Y?Y:(0,D.su)(Y),G.constrainPosition=this.constrainPosition,G.previewClass=this.previewClass,G.withBoundaryElement(this._getBoundaryElement()).withPlaceholderTemplate(le).withPreviewTemplate(ke).withPreviewContainer(this.previewContainer||"global"),R&&G.withDirection(R.value)}}),G.beforeStarted.pipe((0,j.q)(1)).subscribe(()=>{var Y;if(this._parentDrag)return void G.withParent(this._parentDrag._dragRef);let R=this.element.nativeElement.parentElement;for(;R;){if(R.classList.contains("cdk-drag")){G.withParent((null==(Y=T._dragInstances.find(le=>le.element.nativeElement===R))?void 0:Y._dragRef)||null);break}R=R.parentElement}})}_handleEvents(G){G.started.subscribe(R=>{this.started.emit({source:this,event:R.event}),this._changeDetectorRef.markForCheck()}),G.released.subscribe(R=>{this.released.emit({source:this,event:R.event})}),G.ended.subscribe(R=>{this.ended.emit({source:this,distance:R.distance,dropPoint:R.dropPoint,event:R.event}),this._changeDetectorRef.markForCheck()}),G.entered.subscribe(R=>{this.entered.emit({container:R.container.data,item:this,currentIndex:R.currentIndex})}),G.exited.subscribe(R=>{this.exited.emit({container:R.container.data,item:this})}),G.dropped.subscribe(R=>{this.dropped.emit({previousIndex:R.previousIndex,currentIndex:R.currentIndex,previousContainer:R.previousContainer.data,container:R.container.data,isPointerOverContainer:R.isPointerOverContainer,item:this,distance:R.distance,dropPoint:R.dropPoint,event:R.event})})}_assignDefaults(G){const{lockAxis:R,dragStartDelay:Y,constrainPosition:le,previewClass:ke,boundaryElement:ht,draggingDisabled:Gt,rootElementSelector:Wt,previewContainer:mn}=G;this.disabled=Gt??!1,this.dragStartDelay=Y||0,R&&(this.lockAxis=R),le&&(this.constrainPosition=le),ke&&(this.previewClass=ke),ht&&(this.boundaryElement=ht),Wt&&(this.rootElementSelector=Wt),mn&&(this.previewContainer=mn)}_setupHandlesListener(){this._handles.changes.pipe((0,K.O)(this._handles),(0,L.b)(G=>{const R=G.filter(Y=>Y._parentDrag===this).map(Y=>Y.element);this._selfHandle&&this.rootElementSelector&&R.push(this.element),this._dragRef.withHandles(R)}),(0,w.w)(G=>(0,U.T)(...G.map(R=>R._stateChanges.pipe((0,K.O)(R))))),(0,d.R)(this._destroyed)).subscribe(G=>{const R=this._dragRef,Y=G.element.nativeElement;G.disabled?R.disableHandle(Y):R.enableHandle(Y)})}}return(ge=T)._dragInstances=[],ge.\u0275fac=function(G){return new(G||ge)(a.Y36(a.SBq),a.Y36(pt,12),a.Y36(r.K0),a.Y36(a.R0b),a.Y36(a.s_b),a.Y36(xt,8),a.Y36(k.Is,8),a.Y36(xe),a.Y36(a.sBO),a.Y36(Fe,10),a.Y36(at,12))},ge.\u0275dir=a.lG2({type:ge,selectors:[["","cdkDrag",""]],contentQueries:function(G,R,Y){if(1&G&&(a.Suo(Y,Ft,5),a.Suo(Y,kt,5),a.Suo(Y,Fe,5)),2&G){let le;a.iGM(le=a.CRH())&&(R._previewTemplate=le.first),a.iGM(le=a.CRH())&&(R._placeholderTemplate=le.first),a.iGM(le=a.CRH())&&(R._handles=le)}},hostAttrs:[1,"cdk-drag"],hostVars:4,hostBindings:function(G,R){2&G&&a.ekj("cdk-drag-disabled",R.disabled)("cdk-drag-dragging",R._dragRef.isDragging())},inputs:{data:["cdkDragData","data"],lockAxis:["cdkDragLockAxis","lockAxis"],rootElementSelector:["cdkDragRootElement","rootElementSelector"],boundaryElement:["cdkDragBoundary","boundaryElement"],dragStartDelay:["cdkDragStartDelay","dragStartDelay"],freeDragPosition:["cdkDragFreeDragPosition","freeDragPosition"],disabled:["cdkDragDisabled","disabled"],constrainPosition:["cdkDragConstrainPosition","constrainPosition"],previewClass:["cdkDragPreviewClass","previewClass"],previewContainer:["cdkDragPreviewContainer","previewContainer"]},outputs:{started:"cdkDragStarted",released:"cdkDragReleased",ended:"cdkDragEnded",entered:"cdkDragEntered",exited:"cdkDragExited",dropped:"cdkDragDropped",moved:"cdkDragMoved"},exportAs:["cdkDrag"],standalone:!0,features:[a._Bn([{provide:at,useExisting:ge}]),a.TTD]}),T})();const Zt=new a.OlP("CdkDropListGroup");let Ee=0,vt=(()=>{var ge;class T{get disabled(){return this._disabled||!!this._group&&this._group.disabled}set disabled(G){this._dropListRef.disabled=this._disabled=(0,D.Ig)(G)}constructor(G,R,Y,le,ke,ht,Gt){this.element=G,this._changeDetectorRef=Y,this._scrollDispatcher=le,this._dir=ke,this._group=ht,this._destroyed=new E.xQ,this.connectedTo=[],this.id="cdk-drop-list-"+Ee++,this.enterPredicate=()=>!0,this.sortPredicate=()=>!0,this.dropped=new a.vpe,this.entered=new a.vpe,this.exited=new a.vpe,this.sorted=new a.vpe,this._unsortedItems=new Set,this._dropListRef=R.createDropList(G),this._dropListRef.data=this,Gt&&this._assignDefaults(Gt),this._dropListRef.enterPredicate=(Wt,mn)=>this.enterPredicate(Wt.data,mn.data),this._dropListRef.sortPredicate=(Wt,mn,wn)=>this.sortPredicate(Wt,mn.data,wn.data),this._setupInputSyncSubscription(this._dropListRef),this._handleEvents(this._dropListRef),T._dropLists.push(this),ht&&ht._items.add(this)}addItem(G){this._unsortedItems.add(G),this._dropListRef.isDragging()&&this._syncItemsWithRef()}removeItem(G){this._unsortedItems.delete(G),this._dropListRef.isDragging()&&this._syncItemsWithRef()}getSortedItems(){return Array.from(this._unsortedItems).sort((G,R)=>G._dragRef.getVisibleElement().compareDocumentPosition(R._dragRef.getVisibleElement())&Node.DOCUMENT_POSITION_FOLLOWING?-1:1)}ngOnDestroy(){const G=T._dropLists.indexOf(this);G>-1&&T._dropLists.splice(G,1),this._group&&this._group._items.delete(this),this._unsortedItems.clear(),this._dropListRef.dispose(),this._destroyed.next(),this._destroyed.complete()}_setupInputSyncSubscription(G){this._dir&&this._dir.change.pipe((0,K.O)(this._dir.value),(0,d.R)(this._destroyed)).subscribe(R=>G.withDirection(R)),G.beforeStarted.subscribe(()=>{const R=(0,D.Eq)(this.connectedTo).map(Y=>"string"==typeof Y?T._dropLists.find(ke=>ke.id===Y):Y);if(this._group&&this._group._items.forEach(Y=>{-1===R.indexOf(Y)&&R.push(Y)}),!this._scrollableParentsResolved){const Y=this._scrollDispatcher.getAncestorScrollContainers(this.element).map(le=>le.getElementRef().nativeElement);this._dropListRef.withScrollableParents(Y),this._scrollableParentsResolved=!0}G.disabled=this.disabled,G.lockAxis=this.lockAxis,G.sortingDisabled=(0,D.Ig)(this.sortingDisabled),G.autoScrollDisabled=(0,D.Ig)(this.autoScrollDisabled),G.autoScrollStep=(0,D.su)(this.autoScrollStep,2),G.connectedTo(R.filter(Y=>Y&&Y!==this).map(Y=>Y._dropListRef)).withOrientation(this.orientation)})}_handleEvents(G){G.beforeStarted.subscribe(()=>{this._syncItemsWithRef(),this._changeDetectorRef.markForCheck()}),G.entered.subscribe(R=>{this.entered.emit({container:this,item:R.item.data,currentIndex:R.currentIndex})}),G.exited.subscribe(R=>{this.exited.emit({container:this,item:R.item.data}),this._changeDetectorRef.markForCheck()}),G.sorted.subscribe(R=>{this.sorted.emit({previousIndex:R.previousIndex,currentIndex:R.currentIndex,container:this,item:R.item.data})}),G.dropped.subscribe(R=>{this.dropped.emit({previousIndex:R.previousIndex,currentIndex:R.currentIndex,previousContainer:R.previousContainer.data,container:R.container.data,item:R.item.data,isPointerOverContainer:R.isPointerOverContainer,distance:R.distance,dropPoint:R.dropPoint,event:R.event}),this._changeDetectorRef.markForCheck()}),(0,U.T)(G.receivingStarted,G.receivingStopped).subscribe(()=>this._changeDetectorRef.markForCheck())}_assignDefaults(G){const{lockAxis:R,draggingDisabled:Y,sortingDisabled:le,listAutoScrollDisabled:ke,listOrientation:ht}=G;this.disabled=Y??!1,this.sortingDisabled=le??!1,this.autoScrollDisabled=ke??!1,this.orientation=ht||"vertical",R&&(this.lockAxis=R)}_syncItemsWithRef(){this._dropListRef.withItems(this.getSortedItems().map(G=>G._dragRef))}}return(ge=T)._dropLists=[],ge.\u0275fac=function(G){return new(G||ge)(a.Y36(a.SBq),a.Y36(xe),a.Y36(a.sBO),a.Y36(b.mF),a.Y36(k.Is,8),a.Y36(Zt,12),a.Y36(xt,8))},ge.\u0275dir=a.lG2({type:ge,selectors:[["","cdkDropList",""],["cdk-drop-list"]],hostAttrs:[1,"cdk-drop-list"],hostVars:7,hostBindings:function(G,R){2&G&&(a.uIk("id",R.id),a.ekj("cdk-drop-list-disabled",R.disabled)("cdk-drop-list-dragging",R._dropListRef.isDragging())("cdk-drop-list-receiving",R._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:[a._Bn([{provide:Zt,useValue:void 0},{provide:pt,useExisting:ge}])]}),T})(),we=(()=>{var ge;class T{}return(ge=T).\u0275fac=function(G){return new(G||ge)},ge.\u0275mod=a.oAB({type:ge}),ge.\u0275inj=a.cJS({providers:[xe],imports:[b.ZD]}),T})()},36028:(Qe,he,s)=>{"use strict";s.d(he,{A:()=>De,JH:()=>L,JU:()=>p,K5:()=>D,Ku:()=>g,LH:()=>j,L_:()=>_,MW:()=>at,Mf:()=>b,SV:()=>K,Sd:()=>d,VM:()=>P,Vb:()=>ki,Z:()=>xe,ZH:()=>r,aO:()=>_t,b2:()=>Fi,hY:()=>m,jx:()=>E,oh:()=>q,uR:()=>U,xE:()=>re,yY:()=>de,zL:()=>f});const r=8,b=9,D=13,p=16,E=17,f=18,m=27,_=32,g=33,P=34,U=35,d=36,q=37,j=38,K=39,L=40,de=46,re=48,_t=57,De=65,xe=90,at=91,Fi=224;function ki(Hi,...Lr){return Lr.length?Lr.some(Ri=>Hi[Ri]):Hi.altKey||Hi.shiftKey||Hi.ctrlKey||Hi.metaKey}},71088:(Qe,he,s)=>{"use strict";s.d(he,{Yg:()=>L,u3:()=>k,xu:()=>P});var a=s(65879),r=s(42495),b=s(72079),A=s(23291),D=s(93990),p=s(54699),E=s(51418),f=s(24521),c=s(96776),C=s(96124),m=s(53075),_=s(19352),g=s(62831);let P=(()=>{var X;class de{}return(X=de).\u0275fac=function(be){return new(be||X)},X.\u0275mod=a.oAB({type:X}),X.\u0275inj=a.cJS({}),de})();const U=new Set;let d,q=(()=>{var X;class de{constructor(be,pe){this._platform=be,this._nonce=pe,this._matchMedia=this._platform.isBrowser&&window.matchMedia?window.matchMedia.bind(window):K}matchMedia(be){return(this._platform.WEBKIT||this._platform.BLINK)&&function j(X,de){if(!U.has(X))try{d||(d=document.createElement("style"),de&&(d.nonce=de),d.setAttribute("type","text/css"),document.head.appendChild(d)),d.sheet&&(d.sheet.insertRule(`@media ${X} {body{ }}`,0),U.add(X))}catch(re){console.error(re)}}(be,this._nonce),this._matchMedia(be)}}return(X=de).\u0275fac=function(be){return new(be||X)(a.LFG(g.t4),a.LFG(a.Ojb,8))},X.\u0275prov=a.Yz7({token:X,factory:X.\u0275fac,providedIn:"root"}),de})();function K(X){return{matches:"all"===X||""===X,media:X,addListener:()=>{},removeListener:()=>{}}}let L=(()=>{var X;class de{constructor(be,pe){this._mediaMatcher=be,this._zone=pe,this._queries=new Map,this._destroySubject=new b.xQ}ngOnDestroy(){this._destroySubject.next(),this._destroySubject.complete()}isMatched(be){return w((0,r.Eq)(be)).some($e=>this._registerQuery($e).mql.matches)}observe(be){const $e=w((0,r.Eq)(be)).map(qe=>this._registerQuery(qe).observable);let Je=(0,A.aj)($e);return Je=(0,D.z)(Je.pipe((0,E.q)(1)),Je.pipe((0,f.T)(1),(0,c.b)(0))),Je.pipe((0,C.U)(qe=>{const it={matches:!1,breakpoints:{}};return qe.forEach(({matches:rt,query:tt})=>{it.matches=it.matches||rt,it.breakpoints[tt]=rt}),it}))}_registerQuery(be){if(this._queries.has(be))return this._queries.get(be);const pe=this._mediaMatcher.matchMedia(be),Je={observable:new p.y(qe=>{const it=rt=>this._zone.run(()=>qe.next(rt));return pe.addListener(it),()=>{pe.removeListener(it)}}).pipe((0,m.O)(pe),(0,C.U)(({matches:qe})=>({query:be,matches:qe})),(0,_.R)(this._destroySubject)),mql:pe};return this._queries.set(be,Je),Je}}return(X=de).\u0275fac=function(be){return new(be||X)(a.LFG(q),a.LFG(a.R0b))},X.\u0275prov=a.Yz7({token:X,factory:X.\u0275fac,providedIn:"root"}),de})();function w(X){return X.map(de=>de.split(",")).reduce((de,re)=>de.concat(re)).map(de=>de.trim())}const k={XSmall:"(max-width: 599.98px)",Small:"(min-width: 600px) and (max-width: 959.98px)",Medium:"(min-width: 960px) and (max-width: 1279.98px)",Large:"(min-width: 1280px) and (max-width: 1919.98px)",XLarge:"(min-width: 1920px)",Handset:"(max-width: 599.98px) and (orientation: portrait), (max-width: 959.98px) and (orientation: landscape)",Tablet:"(min-width: 600px) and (max-width: 839.98px) and (orientation: portrait), (min-width: 960px) and (max-width: 1279.98px) and (orientation: landscape)",Web:"(min-width: 840px) and (orientation: portrait), (min-width: 1280px) and (orientation: landscape)",HandsetPortrait:"(max-width: 599.98px) and (orientation: portrait)",TabletPortrait:"(min-width: 600px) and (max-width: 839.98px) and (orientation: portrait)",WebPortrait:"(min-width: 840px) and (orientation: portrait)",HandsetLandscape:"(max-width: 959.98px) and (orientation: landscape)",TabletLandscape:"(min-width: 960px) and (max-width: 1279.98px) and (orientation: landscape)",WebLandscape:"(min-width: 1280px) and (orientation: landscape)"}},17131:(Qe,he,s)=>{"use strict";s.d(he,{Q8:()=>c,wD:()=>f});var a=s(42495),r=s(65879),b=s(54699),A=s(72079),D=s(96776);let p=(()=>{var C;class m{create(g){return typeof MutationObserver>"u"?null:new MutationObserver(g)}}return(C=m).\u0275fac=function(g){return new(g||C)},C.\u0275prov=r.Yz7({token:C,factory:C.\u0275fac,providedIn:"root"}),m})(),E=(()=>{var C;class m{constructor(g){this._mutationObserverFactory=g,this._observedElements=new Map}ngOnDestroy(){this._observedElements.forEach((g,P)=>this._cleanupObserver(P))}observe(g){const P=(0,a.fI)(g);return new b.y(U=>{const q=this._observeElement(P).subscribe(U);return()=>{q.unsubscribe(),this._unobserveElement(P)}})}_observeElement(g){if(this._observedElements.has(g))this._observedElements.get(g).count++;else{const P=new A.xQ,U=this._mutationObserverFactory.create(d=>P.next(d));U&&U.observe(g,{characterData:!0,childList:!0,subtree:!0}),this._observedElements.set(g,{observer:U,stream:P,count:1})}return this._observedElements.get(g).stream}_unobserveElement(g){this._observedElements.has(g)&&(this._observedElements.get(g).count--,this._observedElements.get(g).count||this._cleanupObserver(g))}_cleanupObserver(g){if(this._observedElements.has(g)){const{observer:P,stream:U}=this._observedElements.get(g);P&&P.disconnect(),U.complete(),this._observedElements.delete(g)}}}return(C=m).\u0275fac=function(g){return new(g||C)(r.LFG(p))},C.\u0275prov=r.Yz7({token:C,factory:C.\u0275fac,providedIn:"root"}),m})(),f=(()=>{var C;class m{get disabled(){return this._disabled}set disabled(g){this._disabled=(0,a.Ig)(g),this._disabled?this._unsubscribe():this._subscribe()}get debounce(){return this._debounce}set debounce(g){this._debounce=(0,a.su)(g),this._subscribe()}constructor(g,P,U){this._contentObserver=g,this._elementRef=P,this._ngZone=U,this.event=new r.vpe,this._disabled=!1,this._currentSubscription=null}ngAfterContentInit(){!this._currentSubscription&&!this.disabled&&this._subscribe()}ngOnDestroy(){this._unsubscribe()}_subscribe(){this._unsubscribe();const g=this._contentObserver.observe(this._elementRef);this._ngZone.runOutsideAngular(()=>{this._currentSubscription=(this.debounce?g.pipe((0,D.b)(this.debounce)):g).subscribe(this.event)})}_unsubscribe(){var g;null==(g=this._currentSubscription)||g.unsubscribe()}}return(C=m).\u0275fac=function(g){return new(g||C)(r.Y36(E),r.Y36(r.SBq),r.Y36(r.R0b))},C.\u0275dir=r.lG2({type:C,selectors:[["","cdkObserveContent",""]],inputs:{disabled:["cdkObserveContentDisabled","disabled"],debounce:"debounce"},outputs:{event:"cdkObserveContent"},exportAs:["cdkObserveContent"]}),m})(),c=(()=>{var C;class m{}return(C=m).\u0275fac=function(g){return new(g||C)},C.\u0275mod=r.oAB({type:C}),C.\u0275inj=r.cJS({providers:[p]}),m})()},80748:(Qe,he,s)=>{"use strict";s.d(he,{pI:()=>Ve,xu:()=>ce,aV:()=>cn,X_:()=>$e,Xj:()=>ot,U8:()=>Bt,Iu:()=>Ct});var a=s(16672),r=s(96814),b=s(65879),A=s(42495),D=s(62831),p=s(97734),E=s(51418),f=s(19352),c=s(40254);class m{constructor(oe,Ce){this.predicate=oe,this.inclusive=Ce}call(oe,Ce){return Ce.subscribe(new _(oe,this.predicate,this.inclusive))}}class _ extends c.L{constructor(oe,Ce,ve){super(oe),this.predicate=Ce,this.inclusive=ve,this.index=0}_next(oe){const Ce=this.destination;let ve;try{ve=this.predicate(oe,this.index++)}catch(xe){return void Ce.error(xe)}this.nextOrComplete(oe,ve)}nextOrComplete(oe,Ce){const ve=this.destination;Ce?ve.next(oe):(this.inclusive&&ve.next(oe),ve.complete())}}var g=s(49388),P=s(68484),U=s(72079),d=s(7902),q=s(47354),j=s(36028);const K=(0,D.Mq)();class L{constructor(oe,Ce){this._viewportRuler=oe,this._previousHTMLStyles={top:"",left:""},this._isEnabled=!1,this._document=Ce}attach(){}enable(){if(this._canBeEnabled()){const oe=this._document.documentElement;this._previousScrollPosition=this._viewportRuler.getViewportScrollPosition(),this._previousHTMLStyles.left=oe.style.left||"",this._previousHTMLStyles.top=oe.style.top||"",oe.style.left=(0,A.HM)(-this._previousScrollPosition.left),oe.style.top=(0,A.HM)(-this._previousScrollPosition.top),oe.classList.add("cdk-global-scrollblock"),this._isEnabled=!0}}disable(){if(this._isEnabled){const oe=this._document.documentElement,ve=oe.style,xe=this._document.body.style,at=ve.scrollBehavior||"",Ot=xe.scrollBehavior||"";this._isEnabled=!1,ve.left=this._previousHTMLStyles.left,ve.top=this._previousHTMLStyles.top,oe.classList.remove("cdk-global-scrollblock"),K&&(ve.scrollBehavior=xe.scrollBehavior="auto"),window.scroll(this._previousScrollPosition.left,this._previousScrollPosition.top),K&&(ve.scrollBehavior=at,xe.scrollBehavior=Ot)}}_canBeEnabled(){if(this._document.documentElement.classList.contains("cdk-global-scrollblock")||this._isEnabled)return!1;const Ce=this._document.body,ve=this._viewportRuler.getViewportSize();return Ce.scrollHeight>ve.height||Ce.scrollWidth>ve.width}}class k{constructor(oe,Ce,ve,xe){this._scrollDispatcher=oe,this._ngZone=Ce,this._viewportRuler=ve,this._config=xe,this._scrollSubscription=null,this._detach=()=>{this.disable(),this._overlayRef.hasAttached()&&this._ngZone.run(()=>this._overlayRef.detach())}}attach(oe){this._overlayRef=oe}enable(){if(this._scrollSubscription)return;const oe=this._scrollDispatcher.scrolled(0).pipe((0,p.h)(Ce=>!Ce||!this._overlayRef.overlayElement.contains(Ce.getElementRef().nativeElement)));this._config&&this._config.threshold&&this._config.threshold>1?(this._initialScrollPosition=this._viewportRuler.getViewportScrollPosition().top,this._scrollSubscription=oe.subscribe(()=>{const Ce=this._viewportRuler.getViewportScrollPosition().top;Math.abs(Ce-this._initialScrollPosition)>this._config.threshold?this._detach():this._overlayRef.updatePosition()})):this._scrollSubscription=oe.subscribe(this._detach)}disable(){this._scrollSubscription&&(this._scrollSubscription.unsubscribe(),this._scrollSubscription=null)}detach(){this.disable(),this._overlayRef=null}}class X{enable(){}disable(){}attach(){}}function de(nt,oe){return oe.some(Ce=>nt.bottomCe.bottom||nt.rightCe.right)}function re(nt,oe){return oe.some(Ce=>nt.topCe.bottom||nt.leftCe.right)}class be{constructor(oe,Ce,ve,xe){this._scrollDispatcher=oe,this._viewportRuler=Ce,this._ngZone=ve,this._config=xe,this._scrollSubscription=null}attach(oe){this._overlayRef=oe}enable(){this._scrollSubscription||(this._scrollSubscription=this._scrollDispatcher.scrolled(this._config?this._config.scrollThrottle:0).subscribe(()=>{if(this._overlayRef.updatePosition(),this._config&&this._config.autoClose){const Ce=this._overlayRef.overlayElement.getBoundingClientRect(),{width:ve,height:xe}=this._viewportRuler.getViewportSize();de(Ce,[{width:ve,height:xe,bottom:xe,right:ve,top:0,left:0}])&&(this.disable(),this._ngZone.run(()=>this._overlayRef.detach()))}}))}disable(){this._scrollSubscription&&(this._scrollSubscription.unsubscribe(),this._scrollSubscription=null)}detach(){this.disable(),this._overlayRef=null}}let pe=(()=>{var nt;class oe{constructor(ve,xe,at,Ot){this._scrollDispatcher=ve,this._viewportRuler=xe,this._ngZone=at,this.noop=()=>new X,this.close=Fe=>new k(this._scrollDispatcher,this._ngZone,this._viewportRuler,Fe),this.block=()=>new L(this._viewportRuler,this._document),this.reposition=Fe=>new be(this._scrollDispatcher,this._viewportRuler,this._ngZone,Fe),this._document=Ot}}return(nt=oe).\u0275fac=function(ve){return new(ve||nt)(b.LFG(a.mF),b.LFG(a.rL),b.LFG(b.R0b),b.LFG(r.K0))},nt.\u0275prov=b.Yz7({token:nt,factory:nt.\u0275fac,providedIn:"root"}),oe})();class $e{constructor(oe){if(this.scrollStrategy=new X,this.panelClass="",this.hasBackdrop=!1,this.backdropClass="cdk-overlay-dark-backdrop",this.disposeOnNavigation=!1,oe){const Ce=Object.keys(oe);for(const ve of Ce)void 0!==oe[ve]&&(this[ve]=oe[ve])}}}class it{constructor(oe,Ce){this.connectionPair=oe,this.scrollableViewProperties=Ce}}let _t=(()=>{var nt;class oe{constructor(ve){this._attachedOverlays=[],this._document=ve}ngOnDestroy(){this.detach()}add(ve){this.remove(ve),this._attachedOverlays.push(ve)}remove(ve){const xe=this._attachedOverlays.indexOf(ve);xe>-1&&this._attachedOverlays.splice(xe,1),0===this._attachedOverlays.length&&this.detach()}}return(nt=oe).\u0275fac=function(ve){return new(ve||nt)(b.LFG(r.K0))},nt.\u0275prov=b.Yz7({token:nt,factory:nt.\u0275fac,providedIn:"root"}),oe})(),ze=(()=>{var nt;class oe extends _t{constructor(ve,xe){super(ve),this._ngZone=xe,this._keydownListener=at=>{const Ot=this._attachedOverlays;for(let Fe=Ot.length-1;Fe>-1;Fe--)if(Ot[Fe]._keydownEvents.observers.length>0){const je=Ot[Fe]._keydownEvents;this._ngZone?this._ngZone.run(()=>je.next(at)):je.next(at);break}}}add(ve){super.add(ve),this._isAttached||(this._ngZone?this._ngZone.runOutsideAngular(()=>this._document.body.addEventListener("keydown",this._keydownListener)):this._document.body.addEventListener("keydown",this._keydownListener),this._isAttached=!0)}detach(){this._isAttached&&(this._document.body.removeEventListener("keydown",this._keydownListener),this._isAttached=!1)}}return(nt=oe).\u0275fac=function(ve){return new(ve||nt)(b.LFG(r.K0),b.LFG(b.R0b,8))},nt.\u0275prov=b.Yz7({token:nt,factory:nt.\u0275fac,providedIn:"root"}),oe})(),Ze=(()=>{var nt;class oe extends _t{constructor(ve,xe,at){super(ve),this._platform=xe,this._ngZone=at,this._cursorStyleIsSet=!1,this._pointerDownListener=Ot=>{this._pointerDownEventTarget=(0,D.sA)(Ot)},this._clickListener=Ot=>{const Fe=(0,D.sA)(Ot),je="click"===Ot.type&&this._pointerDownEventTarget?this._pointerDownEventTarget:Fe;this._pointerDownEventTarget=null;const kt=this._attachedOverlays.slice();for(let We=kt.length-1;We>-1;We--){const Ft=kt[We];if(Ft._outsidePointerEvents.observers.length<1||!Ft.hasAttached())continue;if(Ft.overlayElement.contains(Fe)||Ft.overlayElement.contains(je))break;const Kt=Ft._outsidePointerEvents;this._ngZone?this._ngZone.run(()=>Kt.next(Ot)):Kt.next(Ot)}}}add(ve){if(super.add(ve),!this._isAttached){const xe=this._document.body;this._ngZone?this._ngZone.runOutsideAngular(()=>this._addEventListeners(xe)):this._addEventListeners(xe),this._platform.IOS&&!this._cursorStyleIsSet&&(this._cursorOriginalValue=xe.style.cursor,xe.style.cursor="pointer",this._cursorStyleIsSet=!0),this._isAttached=!0}}detach(){if(this._isAttached){const ve=this._document.body;ve.removeEventListener("pointerdown",this._pointerDownListener,!0),ve.removeEventListener("click",this._clickListener,!0),ve.removeEventListener("auxclick",this._clickListener,!0),ve.removeEventListener("contextmenu",this._clickListener,!0),this._platform.IOS&&this._cursorStyleIsSet&&(ve.style.cursor=this._cursorOriginalValue,this._cursorStyleIsSet=!1),this._isAttached=!1}}_addEventListeners(ve){ve.addEventListener("pointerdown",this._pointerDownListener,!0),ve.addEventListener("click",this._clickListener,!0),ve.addEventListener("auxclick",this._clickListener,!0),ve.addEventListener("contextmenu",this._clickListener,!0)}}return(nt=oe).\u0275fac=function(ve){return new(ve||nt)(b.LFG(r.K0),b.LFG(D.t4),b.LFG(b.R0b,8))},nt.\u0275prov=b.Yz7({token:nt,factory:nt.\u0275fac,providedIn:"root"}),oe})(),ot=(()=>{var nt;class oe{constructor(ve,xe){this._platform=xe,this._document=ve}ngOnDestroy(){var ve;null==(ve=this._containerElement)||ve.remove()}getContainerElement(){return this._containerElement||this._createContainer(),this._containerElement}_createContainer(){const ve="cdk-overlay-container";if(this._platform.isBrowser||(0,D.Oy)()){const at=this._document.querySelectorAll(`.${ve}[platform="server"], .${ve}[platform="test"]`);for(let Ot=0;Otthis._backdropClick.next(Ft),this._backdropTransitionendHandler=Ft=>{this._disposeBackdrop(Ft.target)},this._keydownEvents=new U.xQ,this._outsidePointerEvents=new U.xQ,xe.scrollStrategy&&(this._scrollStrategy=xe.scrollStrategy,this._scrollStrategy.attach(this)),this._positionStrategy=xe.positionStrategy}get overlayElement(){return this._pane}get backdropElement(){return this._backdropElement}get hostElement(){return this._host}attach(oe){!this._host.parentElement&&this._previousHostParent&&this._previousHostParent.appendChild(this._host);const Ce=this._portalOutlet.attach(oe);return this._positionStrategy&&this._positionStrategy.attach(this),this._updateStackingOrder(),this._updateElementSize(),this._updateElementDirection(),this._scrollStrategy&&this._scrollStrategy.enable(),this._ngZone.onStable.pipe((0,E.q)(1)).subscribe(()=>{this.hasAttached()&&this.updatePosition()}),this._togglePointerEvents(!0),this._config.hasBackdrop&&this._attachBackdrop(),this._config.panelClass&&this._toggleClasses(this._pane,this._config.panelClass,!0),this._attachments.next(),this._keyboardDispatcher.add(this),this._config.disposeOnNavigation&&(this._locationChanges=this._location.subscribe(()=>this.dispose())),this._outsideClickDispatcher.add(this),"function"==typeof(null==Ce?void 0:Ce.onDestroy)&&Ce.onDestroy(()=>{this.hasAttached()&&this._ngZone.runOutsideAngular(()=>Promise.resolve().then(()=>this.detach()))}),Ce}detach(){if(!this.hasAttached())return;this.detachBackdrop(),this._togglePointerEvents(!1),this._positionStrategy&&this._positionStrategy.detach&&this._positionStrategy.detach(),this._scrollStrategy&&this._scrollStrategy.disable();const oe=this._portalOutlet.detach();return this._detachments.next(),this._keyboardDispatcher.remove(this),this._detachContentWhenStable(),this._locationChanges.unsubscribe(),this._outsideClickDispatcher.remove(this),oe}dispose(){var Ce;const oe=this.hasAttached();this._positionStrategy&&this._positionStrategy.dispose(),this._disposeScrollStrategy(),this._disposeBackdrop(this._backdropElement),this._locationChanges.unsubscribe(),this._keyboardDispatcher.remove(this),this._portalOutlet.dispose(),this._attachments.complete(),this._backdropClick.complete(),this._keydownEvents.complete(),this._outsidePointerEvents.complete(),this._outsideClickDispatcher.remove(this),null==(Ce=this._host)||Ce.remove(),this._previousHostParent=this._pane=this._host=null,oe&&this._detachments.next(),this._detachments.complete()}hasAttached(){return this._portalOutlet.hasAttached()}backdropClick(){return this._backdropClick}attachments(){return this._attachments}detachments(){return this._detachments}keydownEvents(){return this._keydownEvents}outsidePointerEvents(){return this._outsidePointerEvents}getConfig(){return this._config}updatePosition(){this._positionStrategy&&this._positionStrategy.apply()}updatePositionStrategy(oe){oe!==this._positionStrategy&&(this._positionStrategy&&this._positionStrategy.dispose(),this._positionStrategy=oe,this.hasAttached()&&(oe.attach(this),this.updatePosition()))}updateSize(oe){this._config={...this._config,...oe},this._updateElementSize()}setDirection(oe){this._config={...this._config,direction:oe},this._updateElementDirection()}addPanelClass(oe){this._pane&&this._toggleClasses(this._pane,oe,!0)}removePanelClass(oe){this._pane&&this._toggleClasses(this._pane,oe,!1)}getDirection(){const oe=this._config.direction;return oe?"string"==typeof oe?oe:oe.value:"ltr"}updateScrollStrategy(oe){oe!==this._scrollStrategy&&(this._disposeScrollStrategy(),this._scrollStrategy=oe,this.hasAttached()&&(oe.attach(this),oe.enable()))}_updateElementDirection(){this._host.setAttribute("dir",this.getDirection())}_updateElementSize(){if(!this._pane)return;const oe=this._pane.style;oe.width=(0,A.HM)(this._config.width),oe.height=(0,A.HM)(this._config.height),oe.minWidth=(0,A.HM)(this._config.minWidth),oe.minHeight=(0,A.HM)(this._config.minHeight),oe.maxWidth=(0,A.HM)(this._config.maxWidth),oe.maxHeight=(0,A.HM)(this._config.maxHeight)}_togglePointerEvents(oe){this._pane.style.pointerEvents=oe?"":"none"}_attachBackdrop(){const oe="cdk-overlay-backdrop-showing";this._backdropElement=this._document.createElement("div"),this._backdropElement.classList.add("cdk-overlay-backdrop"),this._animationsDisabled&&this._backdropElement.classList.add("cdk-overlay-backdrop-noop-animation"),this._config.backdropClass&&this._toggleClasses(this._backdropElement,this._config.backdropClass,!0),this._host.parentElement.insertBefore(this._backdropElement,this._host),this._backdropElement.addEventListener("click",this._backdropClickHandler),!this._animationsDisabled&&typeof requestAnimationFrame<"u"?this._ngZone.runOutsideAngular(()=>{requestAnimationFrame(()=>{this._backdropElement&&this._backdropElement.classList.add(oe)})}):this._backdropElement.classList.add(oe)}_updateStackingOrder(){this._host.nextSibling&&this._host.parentNode.appendChild(this._host)}detachBackdrop(){const oe=this._backdropElement;if(oe){if(this._animationsDisabled)return void this._disposeBackdrop(oe);oe.classList.remove("cdk-overlay-backdrop-showing"),this._ngZone.runOutsideAngular(()=>{oe.addEventListener("transitionend",this._backdropTransitionendHandler)}),oe.style.pointerEvents="none",this._backdropTimeout=this._ngZone.runOutsideAngular(()=>setTimeout(()=>{this._disposeBackdrop(oe)},500))}}_toggleClasses(oe,Ce,ve){const xe=(0,A.Eq)(Ce||[]).filter(at=>!!at);xe.length&&(ve?oe.classList.add(...xe):oe.classList.remove(...xe))}_detachContentWhenStable(){this._ngZone.runOutsideAngular(()=>{const oe=this._ngZone.onStable.pipe((0,f.R)((0,q.T)(this._attachments,this._detachments))).subscribe(()=>{(!this._pane||!this._host||0===this._pane.children.length)&&(this._pane&&this._config.panelClass&&this._toggleClasses(this._pane,this._config.panelClass,!1),this._host&&this._host.parentElement&&(this._previousHostParent=this._host.parentElement,this._host.remove()),oe.unsubscribe())})})}_disposeScrollStrategy(){const oe=this._scrollStrategy;oe&&(oe.disable(),oe.detach&&oe.detach())}_disposeBackdrop(oe){oe&&(oe.removeEventListener("click",this._backdropClickHandler),oe.removeEventListener("transitionend",this._backdropTransitionendHandler),oe.remove(),this._backdropElement===oe&&(this._backdropElement=null)),this._backdropTimeout&&(clearTimeout(this._backdropTimeout),this._backdropTimeout=void 0)}}const De="cdk-overlay-connected-position-bounding-box",ft=/([A-Za-z%]+)$/;class st{get positions(){return this._preferredPositions}constructor(oe,Ce,ve,xe,at){this._viewportRuler=Ce,this._document=ve,this._platform=xe,this._overlayContainer=at,this._lastBoundingBoxSize={width:0,height:0},this._isPushed=!1,this._canPush=!0,this._growAfterOpen=!1,this._hasFlexibleDimensions=!0,this._positionLocked=!1,this._viewportMargin=0,this._scrollables=[],this._preferredPositions=[],this._positionChanges=new U.xQ,this._resizeSubscription=d.w.EMPTY,this._offsetX=0,this._offsetY=0,this._appliedPanelClasses=[],this.positionChanges=this._positionChanges,this.setOrigin(oe)}attach(oe){this._validatePositions(),oe.hostElement.classList.add(De),this._overlayRef=oe,this._boundingBox=oe.hostElement,this._pane=oe.overlayElement,this._isDisposed=!1,this._isInitialRender=!0,this._lastPosition=null,this._resizeSubscription.unsubscribe(),this._resizeSubscription=this._viewportRuler.change().subscribe(()=>{this._isInitialRender=!0,this.apply()})}apply(){if(this._isDisposed||!this._platform.isBrowser)return;if(!this._isInitialRender&&this._positionLocked&&this._lastPosition)return void this.reapplyLastPosition();this._clearPanelClasses(),this._resetOverlayElementStyles(),this._resetBoundingBoxStyles(),this._viewportRect=this._getNarrowedViewportRect(),this._originRect=this._getOriginRect(),this._overlayRect=this._pane.getBoundingClientRect(),this._containerRect=this._overlayContainer.getContainerElement().getBoundingClientRect();const oe=this._originRect,Ce=this._overlayRect,ve=this._viewportRect,xe=this._containerRect,at=[];let Ot;for(let Fe of this._preferredPositions){let je=this._getOriginPoint(oe,xe,Fe),kt=this._getOverlayPoint(je,Ce,Fe),We=this._getOverlayFit(kt,Ce,ve,Fe);if(We.isCompletelyWithinViewport)return this._isPushed=!1,void this._applyPosition(Fe,je);this._canFitWithFlexibleDimensions(We,kt,ve)?at.push({position:Fe,origin:je,overlayRect:Ce,boundingBoxRect:this._calculateBoundingBoxRect(je,Fe)}):(!Ot||Ot.overlayFit.visibleAreaje&&(je=We,Fe=kt)}return this._isPushed=!1,void this._applyPosition(Fe.position,Fe.origin)}if(this._canPush)return this._isPushed=!0,void this._applyPosition(Ot.position,Ot.originPoint);this._applyPosition(Ot.position,Ot.originPoint)}detach(){this._clearPanelClasses(),this._lastPosition=null,this._previousPushAmount=null,this._resizeSubscription.unsubscribe()}dispose(){this._isDisposed||(this._boundingBox&&bt(this._boundingBox.style,{top:"",left:"",right:"",bottom:"",height:"",width:"",alignItems:"",justifyContent:""}),this._pane&&this._resetOverlayElementStyles(),this._overlayRef&&this._overlayRef.hostElement.classList.remove(De),this.detach(),this._positionChanges.complete(),this._overlayRef=this._boundingBox=null,this._isDisposed=!0)}reapplyLastPosition(){if(this._isDisposed||!this._platform.isBrowser)return;const oe=this._lastPosition;if(oe){this._originRect=this._getOriginRect(),this._overlayRect=this._pane.getBoundingClientRect(),this._viewportRect=this._getNarrowedViewportRect(),this._containerRect=this._overlayContainer.getContainerElement().getBoundingClientRect();const Ce=this._getOriginPoint(this._originRect,this._containerRect,oe);this._applyPosition(oe,Ce)}else this.apply()}withScrollableContainers(oe){return this._scrollables=oe,this}withPositions(oe){return this._preferredPositions=oe,-1===oe.indexOf(this._lastPosition)&&(this._lastPosition=null),this._validatePositions(),this}withViewportMargin(oe){return this._viewportMargin=oe,this}withFlexibleDimensions(oe=!0){return this._hasFlexibleDimensions=oe,this}withGrowAfterOpen(oe=!0){return this._growAfterOpen=oe,this}withPush(oe=!0){return this._canPush=oe,this}withLockedPosition(oe=!0){return this._positionLocked=oe,this}setOrigin(oe){return this._origin=oe,this}withDefaultOffsetX(oe){return this._offsetX=oe,this}withDefaultOffsetY(oe){return this._offsetY=oe,this}withTransformOriginOn(oe){return this._transformOriginSelector=oe,this}_getOriginPoint(oe,Ce,ve){let xe,at;if("center"==ve.originX)xe=oe.left+oe.width/2;else{const Ot=this._isRtl()?oe.right:oe.left,Fe=this._isRtl()?oe.left:oe.right;xe="start"==ve.originX?Ot:Fe}return Ce.left<0&&(xe-=Ce.left),at="center"==ve.originY?oe.top+oe.height/2:"top"==ve.originY?oe.top:oe.bottom,Ce.top<0&&(at-=Ce.top),{x:xe,y:at}}_getOverlayPoint(oe,Ce,ve){let xe,at;return xe="center"==ve.overlayX?-Ce.width/2:"start"===ve.overlayX?this._isRtl()?-Ce.width:0:this._isRtl()?0:-Ce.width,at="center"==ve.overlayY?-Ce.height/2:"top"==ve.overlayY?0:-Ce.height,{x:oe.x+xe,y:oe.y+at}}_getOverlayFit(oe,Ce,ve,xe){const at=H(Ce);let{x:Ot,y:Fe}=oe,je=this._getOffset(xe,"x"),kt=this._getOffset(xe,"y");je&&(Ot+=je),kt&&(Fe+=kt);let Kt=0-Fe,xt=Fe+at.height-ve.height,Mt=this._subtractOverflows(at.width,0-Ot,Ot+at.width-ve.width),pt=this._subtractOverflows(at.height,Kt,xt),St=Mt*pt;return{visibleArea:St,isCompletelyWithinViewport:at.width*at.height===St,fitsInViewportVertically:pt===at.height,fitsInViewportHorizontally:Mt==at.width}}_canFitWithFlexibleDimensions(oe,Ce,ve){if(this._hasFlexibleDimensions){const xe=ve.bottom-Ce.y,at=ve.right-Ce.x,Ot=_e(this._overlayRef.getConfig().minHeight),Fe=_e(this._overlayRef.getConfig().minWidth);return(oe.fitsInViewportVertically||null!=Ot&&Ot<=xe)&&(oe.fitsInViewportHorizontally||null!=Fe&&Fe<=at)}return!1}_pushOverlayOnScreen(oe,Ce,ve){if(this._previousPushAmount&&this._positionLocked)return{x:oe.x+this._previousPushAmount.x,y:oe.y+this._previousPushAmount.y};const xe=H(Ce),at=this._viewportRect,Ot=Math.max(oe.x+xe.width-at.width,0),Fe=Math.max(oe.y+xe.height-at.height,0),je=Math.max(at.top-ve.top-oe.y,0),kt=Math.max(at.left-ve.left-oe.x,0);let We=0,Ft=0;return We=xe.width<=at.width?kt||-Ot:oe.xMt&&!this._isInitialRender&&!this._growAfterOpen&&(Ot=oe.y-Mt/2)}if("end"===Ce.overlayX&&!xe||"start"===Ce.overlayX&&xe)Kt=ve.width-oe.x+this._viewportMargin,We=oe.x-this._viewportMargin;else if("start"===Ce.overlayX&&!xe||"end"===Ce.overlayX&&xe)Ft=oe.x,We=ve.right-oe.x;else{const xt=Math.min(ve.right-oe.x+ve.left,oe.x),Mt=this._lastBoundingBoxSize.width;We=2*xt,Ft=oe.x-xt,We>Mt&&!this._isInitialRender&&!this._growAfterOpen&&(Ft=oe.x-Mt/2)}return{top:Ot,left:Ft,bottom:Fe,right:Kt,width:We,height:at}}_setBoundingBoxStyles(oe,Ce){const ve=this._calculateBoundingBoxRect(oe,Ce);!this._isInitialRender&&!this._growAfterOpen&&(ve.height=Math.min(ve.height,this._lastBoundingBoxSize.height),ve.width=Math.min(ve.width,this._lastBoundingBoxSize.width));const xe={};if(this._hasExactPosition())xe.top=xe.left="0",xe.bottom=xe.right=xe.maxHeight=xe.maxWidth="",xe.width=xe.height="100%";else{const at=this._overlayRef.getConfig().maxHeight,Ot=this._overlayRef.getConfig().maxWidth;xe.height=(0,A.HM)(ve.height),xe.top=(0,A.HM)(ve.top),xe.bottom=(0,A.HM)(ve.bottom),xe.width=(0,A.HM)(ve.width),xe.left=(0,A.HM)(ve.left),xe.right=(0,A.HM)(ve.right),xe.alignItems="center"===Ce.overlayX?"center":"end"===Ce.overlayX?"flex-end":"flex-start",xe.justifyContent="center"===Ce.overlayY?"center":"bottom"===Ce.overlayY?"flex-end":"flex-start",at&&(xe.maxHeight=(0,A.HM)(at)),Ot&&(xe.maxWidth=(0,A.HM)(Ot))}this._lastBoundingBoxSize=ve,bt(this._boundingBox.style,xe)}_resetBoundingBoxStyles(){bt(this._boundingBox.style,{top:"0",left:"0",right:"0",bottom:"0",height:"",width:"",alignItems:"",justifyContent:""})}_resetOverlayElementStyles(){bt(this._pane.style,{top:"",left:"",bottom:"",right:"",position:"",transform:""})}_setOverlayElementStyles(oe,Ce){const ve={},xe=this._hasExactPosition(),at=this._hasFlexibleDimensions,Ot=this._overlayRef.getConfig();if(xe){const We=this._viewportRuler.getViewportScrollPosition();bt(ve,this._getExactOverlayY(Ce,oe,We)),bt(ve,this._getExactOverlayX(Ce,oe,We))}else ve.position="static";let Fe="",je=this._getOffset(Ce,"x"),kt=this._getOffset(Ce,"y");je&&(Fe+=`translateX(${je}px) `),kt&&(Fe+=`translateY(${kt}px)`),ve.transform=Fe.trim(),Ot.maxHeight&&(xe?ve.maxHeight=(0,A.HM)(Ot.maxHeight):at&&(ve.maxHeight="")),Ot.maxWidth&&(xe?ve.maxWidth=(0,A.HM)(Ot.maxWidth):at&&(ve.maxWidth="")),bt(this._pane.style,ve)}_getExactOverlayY(oe,Ce,ve){let xe={top:"",bottom:""},at=this._getOverlayPoint(Ce,this._overlayRect,oe);return this._isPushed&&(at=this._pushOverlayOnScreen(at,this._overlayRect,ve)),"bottom"===oe.overlayY?xe.bottom=this._document.documentElement.clientHeight-(at.y+this._overlayRect.height)+"px":xe.top=(0,A.HM)(at.y),xe}_getExactOverlayX(oe,Ce,ve){let Ot,xe={left:"",right:""},at=this._getOverlayPoint(Ce,this._overlayRect,oe);return this._isPushed&&(at=this._pushOverlayOnScreen(at,this._overlayRect,ve)),Ot=this._isRtl()?"end"===oe.overlayX?"left":"right":"end"===oe.overlayX?"right":"left","right"===Ot?xe.right=this._document.documentElement.clientWidth-(at.x+this._overlayRect.width)+"px":xe.left=(0,A.HM)(at.x),xe}_getScrollVisibility(){const oe=this._getOriginRect(),Ce=this._pane.getBoundingClientRect(),ve=this._scrollables.map(xe=>xe.getElementRef().nativeElement.getBoundingClientRect());return{isOriginClipped:re(oe,ve),isOriginOutsideView:de(oe,ve),isOverlayClipped:re(Ce,ve),isOverlayOutsideView:de(Ce,ve)}}_subtractOverflows(oe,...Ce){return Ce.reduce((ve,xe)=>ve-Math.max(xe,0),oe)}_getNarrowedViewportRect(){const oe=this._document.documentElement.clientWidth,Ce=this._document.documentElement.clientHeight,ve=this._viewportRuler.getViewportScrollPosition();return{top:ve.top+this._viewportMargin,left:ve.left+this._viewportMargin,right:ve.left+oe-this._viewportMargin,bottom:ve.top+Ce-this._viewportMargin,width:oe-2*this._viewportMargin,height:Ce-2*this._viewportMargin}}_isRtl(){return"rtl"===this._overlayRef.getDirection()}_hasExactPosition(){return!this._hasFlexibleDimensions||this._isPushed}_getOffset(oe,Ce){return"x"===Ce?null==oe.offsetX?this._offsetX:oe.offsetX:null==oe.offsetY?this._offsetY:oe.offsetY}_validatePositions(){}_addPanelClasses(oe){this._pane&&(0,A.Eq)(oe).forEach(Ce=>{""!==Ce&&-1===this._appliedPanelClasses.indexOf(Ce)&&(this._appliedPanelClasses.push(Ce),this._pane.classList.add(Ce))})}_clearPanelClasses(){this._pane&&(this._appliedPanelClasses.forEach(oe=>{this._pane.classList.remove(oe)}),this._appliedPanelClasses=[])}_getOriginRect(){const oe=this._origin;if(oe instanceof b.SBq)return oe.nativeElement.getBoundingClientRect();if(oe instanceof Element)return oe.getBoundingClientRect();const Ce=oe.width||0,ve=oe.height||0;return{top:oe.y,bottom:oe.y+ve,left:oe.x,right:oe.x+Ce,height:ve,width:Ce}}}function bt(nt,oe){for(let Ce in oe)oe.hasOwnProperty(Ce)&&(nt[Ce]=oe[Ce]);return nt}function _e(nt){if("number"!=typeof nt&&null!=nt){const[oe,Ce]=nt.split(ft);return Ce&&"px"!==Ce?null:parseFloat(oe)}return nt||null}function H(nt){return{top:Math.floor(nt.top),right:Math.floor(nt.right),bottom:Math.floor(nt.bottom),left:Math.floor(nt.left),width:Math.floor(nt.width),height:Math.floor(nt.height)}}const Pe="cdk-global-overlay-wrapper";class dt{constructor(){this._cssPosition="static",this._topOffset="",this._bottomOffset="",this._alignItems="",this._xPosition="",this._xOffset="",this._width="",this._height="",this._isDisposed=!1}attach(oe){const Ce=oe.getConfig();this._overlayRef=oe,this._width&&!Ce.width&&oe.updateSize({width:this._width}),this._height&&!Ce.height&&oe.updateSize({height:this._height}),oe.hostElement.classList.add(Pe),this._isDisposed=!1}top(oe=""){return this._bottomOffset="",this._topOffset=oe,this._alignItems="flex-start",this}left(oe=""){return this._xOffset=oe,this._xPosition="left",this}bottom(oe=""){return this._topOffset="",this._bottomOffset=oe,this._alignItems="flex-end",this}right(oe=""){return this._xOffset=oe,this._xPosition="right",this}start(oe=""){return this._xOffset=oe,this._xPosition="start",this}end(oe=""){return this._xOffset=oe,this._xPosition="end",this}width(oe=""){return this._overlayRef?this._overlayRef.updateSize({width:oe}):this._width=oe,this}height(oe=""){return this._overlayRef?this._overlayRef.updateSize({height:oe}):this._height=oe,this}centerHorizontally(oe=""){return this.left(oe),this._xPosition="center",this}centerVertically(oe=""){return this.top(oe),this._alignItems="center",this}apply(){if(!this._overlayRef||!this._overlayRef.hasAttached())return;const oe=this._overlayRef.overlayElement.style,Ce=this._overlayRef.hostElement.style,ve=this._overlayRef.getConfig(),{width:xe,height:at,maxWidth:Ot,maxHeight:Fe}=ve,je=!("100%"!==xe&&"100vw"!==xe||Ot&&"100%"!==Ot&&"100vw"!==Ot),kt=!("100%"!==at&&"100vh"!==at||Fe&&"100%"!==Fe&&"100vh"!==Fe),We=this._xPosition,Ft=this._xOffset,Kt="rtl"===this._overlayRef.getConfig().direction;let xt="",Mt="",pt="";je?pt="flex-start":"center"===We?(pt="center",Kt?Mt=Ft:xt=Ft):Kt?"left"===We||"end"===We?(pt="flex-end",xt=Ft):("right"===We||"start"===We)&&(pt="flex-start",Mt=Ft):"left"===We||"start"===We?(pt="flex-start",xt=Ft):("right"===We||"end"===We)&&(pt="flex-end",Mt=Ft),oe.position=this._cssPosition,oe.marginLeft=je?"0":xt,oe.marginTop=kt?"0":this._topOffset,oe.marginBottom=this._bottomOffset,oe.marginRight=je?"0":Mt,Ce.justifyContent=pt,Ce.alignItems=kt?"flex-start":this._alignItems}dispose(){if(this._isDisposed||!this._overlayRef)return;const oe=this._overlayRef.overlayElement.style,Ce=this._overlayRef.hostElement,ve=Ce.style;Ce.classList.remove(Pe),ve.justifyContent=ve.alignItems=oe.marginTop=oe.marginBottom=oe.marginLeft=oe.marginRight=oe.position="",this._overlayRef=null,this._isDisposed=!0}}let Pt=(()=>{var nt;class oe{constructor(ve,xe,at,Ot){this._viewportRuler=ve,this._document=xe,this._platform=at,this._overlayContainer=Ot}global(){return new dt}flexibleConnectedTo(ve){return new st(ve,this._viewportRuler,this._document,this._platform,this._overlayContainer)}}return(nt=oe).\u0275fac=function(ve){return new(ve||nt)(b.LFG(a.rL),b.LFG(r.K0),b.LFG(D.t4),b.LFG(ot))},nt.\u0275prov=b.Yz7({token:nt,factory:nt.\u0275fac,providedIn:"root"}),oe})(),Qt=0,cn=(()=>{var nt;class oe{constructor(ve,xe,at,Ot,Fe,je,kt,We,Ft,Kt,xt,Mt){this.scrollStrategies=ve,this._overlayContainer=xe,this._componentFactoryResolver=at,this._positionBuilder=Ot,this._keyboardDispatcher=Fe,this._injector=je,this._ngZone=kt,this._document=We,this._directionality=Ft,this._location=Kt,this._outsideClickDispatcher=xt,this._animationsModuleType=Mt}create(ve){const xe=this._createHostElement(),at=this._createPaneElement(xe),Ot=this._createPortalOutlet(at),Fe=new $e(ve);return Fe.direction=Fe.direction||this._directionality.value,new Ct(Ot,xe,at,Fe,this._ngZone,this._keyboardDispatcher,this._document,this._location,this._outsideClickDispatcher,"NoopAnimations"===this._animationsModuleType)}position(){return this._positionBuilder}_createPaneElement(ve){const xe=this._document.createElement("div");return xe.id="cdk-overlay-"+Qt++,xe.classList.add("cdk-overlay-pane"),ve.appendChild(xe),xe}_createHostElement(){const ve=this._document.createElement("div");return this._overlayContainer.getContainerElement().appendChild(ve),ve}_createPortalOutlet(ve){return this._appRef||(this._appRef=this._injector.get(b.z2F)),new P.u0(ve,this._componentFactoryResolver,this._appRef,this._injector,this._document)}}return(nt=oe).\u0275fac=function(ve){return new(ve||nt)(b.LFG(pe),b.LFG(ot),b.LFG(b._Vd),b.LFG(Pt),b.LFG(ze),b.LFG(b.zs3),b.LFG(b.R0b),b.LFG(r.K0),b.LFG(g.Is),b.LFG(r.Ye),b.LFG(Ze),b.LFG(b.QbO,8))},nt.\u0275prov=b.Yz7({token:nt,factory:nt.\u0275fac,providedIn:"root"}),oe})();const Ie=[{originX:"start",originY:"bottom",overlayX:"start",overlayY:"top"},{originX:"start",originY:"top",overlayX:"start",overlayY:"bottom"},{originX:"end",originY:"top",overlayX:"end",overlayY:"bottom"},{originX:"end",originY:"bottom",overlayX:"end",overlayY:"top"}],ne=new b.OlP("cdk-connected-overlay-scroll-strategy");let ce=(()=>{var nt;class oe{constructor(ve){this.elementRef=ve}}return(nt=oe).\u0275fac=function(ve){return new(ve||nt)(b.Y36(b.SBq))},nt.\u0275dir=b.lG2({type:nt,selectors:[["","cdk-overlay-origin",""],["","overlay-origin",""],["","cdkOverlayOrigin",""]],exportAs:["cdkOverlayOrigin"],standalone:!0}),oe})(),Ve=(()=>{var nt;class oe{get offsetX(){return this._offsetX}set offsetX(ve){this._offsetX=ve,this._position&&this._updatePositionStrategy(this._position)}get offsetY(){return this._offsetY}set offsetY(ve){this._offsetY=ve,this._position&&this._updatePositionStrategy(this._position)}get hasBackdrop(){return this._hasBackdrop}set hasBackdrop(ve){this._hasBackdrop=(0,A.Ig)(ve)}get lockPosition(){return this._lockPosition}set lockPosition(ve){this._lockPosition=(0,A.Ig)(ve)}get flexibleDimensions(){return this._flexibleDimensions}set flexibleDimensions(ve){this._flexibleDimensions=(0,A.Ig)(ve)}get growAfterOpen(){return this._growAfterOpen}set growAfterOpen(ve){this._growAfterOpen=(0,A.Ig)(ve)}get push(){return this._push}set push(ve){this._push=(0,A.Ig)(ve)}constructor(ve,xe,at,Ot,Fe){this._overlay=ve,this._dir=Fe,this._hasBackdrop=!1,this._lockPosition=!1,this._growAfterOpen=!1,this._flexibleDimensions=!1,this._push=!1,this._backdropSubscription=d.w.EMPTY,this._attachSubscription=d.w.EMPTY,this._detachSubscription=d.w.EMPTY,this._positionSubscription=d.w.EMPTY,this.viewportMargin=0,this.open=!1,this.disableClose=!1,this.backdropClick=new b.vpe,this.positionChange=new b.vpe,this.attach=new b.vpe,this.detach=new b.vpe,this.overlayKeydown=new b.vpe,this.overlayOutsideClick=new b.vpe,this._templatePortal=new P.UE(xe,at),this._scrollStrategyFactory=Ot,this.scrollStrategy=this._scrollStrategyFactory()}get overlayRef(){return this._overlayRef}get dir(){return this._dir?this._dir.value:"ltr"}ngOnDestroy(){this._attachSubscription.unsubscribe(),this._detachSubscription.unsubscribe(),this._backdropSubscription.unsubscribe(),this._positionSubscription.unsubscribe(),this._overlayRef&&this._overlayRef.dispose()}ngOnChanges(ve){this._position&&(this._updatePositionStrategy(this._position),this._overlayRef.updateSize({width:this.width,minWidth:this.minWidth,height:this.height,minHeight:this.minHeight}),ve.origin&&this.open&&this._position.apply()),ve.open&&(this.open?this._attachOverlay():this._detachOverlay())}_createOverlay(){(!this.positions||!this.positions.length)&&(this.positions=Ie);const ve=this._overlayRef=this._overlay.create(this._buildConfig());this._attachSubscription=ve.attachments().subscribe(()=>this.attach.emit()),this._detachSubscription=ve.detachments().subscribe(()=>this.detach.emit()),ve.keydownEvents().subscribe(xe=>{this.overlayKeydown.next(xe),xe.keyCode===j.hY&&!this.disableClose&&!(0,j.Vb)(xe)&&(xe.preventDefault(),this._detachOverlay())}),this._overlayRef.outsidePointerEvents().subscribe(xe=>{this.overlayOutsideClick.next(xe)})}_buildConfig(){const ve=this._position=this.positionStrategy||this._createPositionStrategy(),xe=new $e({direction:this._dir,positionStrategy:ve,scrollStrategy:this.scrollStrategy,hasBackdrop:this.hasBackdrop});return(this.width||0===this.width)&&(xe.width=this.width),(this.height||0===this.height)&&(xe.height=this.height),(this.minWidth||0===this.minWidth)&&(xe.minWidth=this.minWidth),(this.minHeight||0===this.minHeight)&&(xe.minHeight=this.minHeight),this.backdropClass&&(xe.backdropClass=this.backdropClass),this.panelClass&&(xe.panelClass=this.panelClass),xe}_updatePositionStrategy(ve){const xe=this.positions.map(at=>({originX:at.originX,originY:at.originY,overlayX:at.overlayX,overlayY:at.overlayY,offsetX:at.offsetX||this.offsetX,offsetY:at.offsetY||this.offsetY,panelClass:at.panelClass||void 0}));return ve.setOrigin(this._getFlexibleConnectedPositionStrategyOrigin()).withPositions(xe).withFlexibleDimensions(this.flexibleDimensions).withPush(this.push).withGrowAfterOpen(this.growAfterOpen).withViewportMargin(this.viewportMargin).withLockedPosition(this.lockPosition).withTransformOriginOn(this.transformOriginSelector)}_createPositionStrategy(){const ve=this._overlay.position().flexibleConnectedTo(this._getFlexibleConnectedPositionStrategyOrigin());return this._updatePositionStrategy(ve),ve}_getFlexibleConnectedPositionStrategyOrigin(){return this.origin instanceof ce?this.origin.elementRef:this.origin}_attachOverlay(){this._overlayRef?this._overlayRef.getConfig().hasBackdrop=this.hasBackdrop:this._createOverlay(),this._overlayRef.hasAttached()||this._overlayRef.attach(this._templatePortal),this.hasBackdrop?this._backdropSubscription=this._overlayRef.backdropClick().subscribe(ve=>{this.backdropClick.emit(ve)}):this._backdropSubscription.unsubscribe(),this._positionSubscription.unsubscribe(),this.positionChange.observers.length>0&&(this._positionSubscription=this._position.positionChanges.pipe(function C(nt,oe=!1){return Ce=>Ce.lift(new m(nt,oe))}(()=>this.positionChange.observers.length>0)).subscribe(ve=>{this.positionChange.emit(ve),0===this.positionChange.observers.length&&this._positionSubscription.unsubscribe()}))}_detachOverlay(){this._overlayRef&&this._overlayRef.detach(),this._backdropSubscription.unsubscribe(),this._positionSubscription.unsubscribe()}}return(nt=oe).\u0275fac=function(ve){return new(ve||nt)(b.Y36(cn),b.Y36(b.Rgc),b.Y36(b.s_b),b.Y36(ne),b.Y36(g.Is,8))},nt.\u0275dir=b.lG2({type:nt,selectors:[["","cdk-connected-overlay",""],["","connected-overlay",""],["","cdkConnectedOverlay",""]],inputs:{origin:["cdkConnectedOverlayOrigin","origin"],positions:["cdkConnectedOverlayPositions","positions"],positionStrategy:["cdkConnectedOverlayPositionStrategy","positionStrategy"],offsetX:["cdkConnectedOverlayOffsetX","offsetX"],offsetY:["cdkConnectedOverlayOffsetY","offsetY"],width:["cdkConnectedOverlayWidth","width"],height:["cdkConnectedOverlayHeight","height"],minWidth:["cdkConnectedOverlayMinWidth","minWidth"],minHeight:["cdkConnectedOverlayMinHeight","minHeight"],backdropClass:["cdkConnectedOverlayBackdropClass","backdropClass"],panelClass:["cdkConnectedOverlayPanelClass","panelClass"],viewportMargin:["cdkConnectedOverlayViewportMargin","viewportMargin"],scrollStrategy:["cdkConnectedOverlayScrollStrategy","scrollStrategy"],open:["cdkConnectedOverlayOpen","open"],disableClose:["cdkConnectedOverlayDisableClose","disableClose"],transformOriginSelector:["cdkConnectedOverlayTransformOriginOn","transformOriginSelector"],hasBackdrop:["cdkConnectedOverlayHasBackdrop","hasBackdrop"],lockPosition:["cdkConnectedOverlayLockPosition","lockPosition"],flexibleDimensions:["cdkConnectedOverlayFlexibleDimensions","flexibleDimensions"],growAfterOpen:["cdkConnectedOverlayGrowAfterOpen","growAfterOpen"],push:["cdkConnectedOverlayPush","push"]},outputs:{backdropClick:"backdropClick",positionChange:"positionChange",attach:"attach",detach:"detach",overlayKeydown:"overlayKeydown",overlayOutsideClick:"overlayOutsideClick"},exportAs:["cdkConnectedOverlay"],standalone:!0,features:[b.TTD]}),oe})();const Ut={provide:ne,deps:[cn],useFactory:function mt(nt){return()=>nt.scrollStrategies.reposition()}};let Bt=(()=>{var nt;class oe{}return(nt=oe).\u0275fac=function(ve){return new(ve||nt)},nt.\u0275mod=b.oAB({type:nt}),nt.\u0275inj=b.cJS({providers:[cn,Ut],imports:[g.vT,P.eL,a.Cl,a.Cl]}),oe})()},62831:(Qe,he,s)=>{"use strict";s.d(he,{Mq:()=>P,Oy:()=>w,ht:()=>K,i$:()=>m,kV:()=>j,qK:()=>f,sA:()=>L,t4:()=>A,ud:()=>D});var a=s(65879),r=s(96814);let b;try{b=typeof Intl<"u"&&Intl.v8BreakIterator}catch{b=!1}let p,A=(()=>{var k;class X{constructor(re){this._platformId=re,this.isBrowser=this._platformId?(0,r.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&&!b)&&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(k=X).\u0275fac=function(re){return new(re||k)(a.LFG(a.Lbi))},k.\u0275prov=a.Yz7({token:k,factory:k.\u0275fac,providedIn:"root"}),X})(),D=(()=>{var k;class X{}return(k=X).\u0275fac=function(re){return new(re||k)},k.\u0275mod=a.oAB({type:k}),k.\u0275inj=a.cJS({}),X})();const E=["color","button","checkbox","date","datetime-local","email","file","hidden","image","month","number","password","radio","range","reset","search","submit","tel","text","time","url","week"];function f(){if(p)return p;if("object"!=typeof document||!document)return p=new Set(E),p;let k=document.createElement("input");return p=new Set(E.filter(X=>(k.setAttribute("type",X),k.type===X))),p}let c,g,d;function m(k){return function C(){if(null==c&&typeof window<"u")try{window.addEventListener("test",null,Object.defineProperty({},"passive",{get:()=>c=!0}))}finally{c=c||!1}return c}()?k:!!k.capture}function P(){if(null==g){if("object"!=typeof document||!document||"function"!=typeof Element||!Element)return g=!1,g;if("scrollBehavior"in document.documentElement.style)g=!0;else{const k=Element.prototype.scrollTo;g=!!k&&!/\{\s*\[native code\]\s*\}/.test(k.toString())}}return g}function j(k){if(function q(){if(null==d){const k=typeof document<"u"?document.head:null;d=!(!k||!k.createShadowRoot&&!k.attachShadow)}return d}()){const X=k.getRootNode?k.getRootNode():null;if(typeof ShadowRoot<"u"&&ShadowRoot&&X instanceof ShadowRoot)return X}return null}function K(){let k=typeof document<"u"&&document?document.activeElement:null;for(;k&&k.shadowRoot;){const X=k.shadowRoot.activeElement;if(X===k)break;k=X}return k}function L(k){return k.composedPath?k.composedPath()[0]:k.target}function w(){return typeof __karma__<"u"&&!!__karma__||typeof jasmine<"u"&&!!jasmine||typeof jest<"u"&&!!jest||typeof Mocha<"u"&&!!Mocha}},68484:(Qe,he,s)=>{"use strict";s.d(he,{C5:()=>C,Pl:()=>K,UE:()=>m,eL:()=>w,en:()=>g,u0:()=>U});var a=s(65879),r=s(96814);class c{attach(de){return this._attachedHost=de,de.attach(this)}detach(){let de=this._attachedHost;null!=de&&(this._attachedHost=null,de.detach())}get isAttached(){return null!=this._attachedHost}setAttachedHost(de){this._attachedHost=de}}class C extends c{constructor(de,re,be,pe,$e){super(),this.component=de,this.viewContainerRef=re,this.injector=be,this.componentFactoryResolver=pe,this.projectableNodes=$e}}class m extends c{constructor(de,re,be,pe){super(),this.templateRef=de,this.viewContainerRef=re,this.context=be,this.injector=pe}get origin(){return this.templateRef.elementRef}attach(de,re=this.context){return this.context=re,super.attach(de)}detach(){return this.context=void 0,super.detach()}}class _ extends c{constructor(de){super(),this.element=de instanceof a.SBq?de.nativeElement:de}}class g{constructor(){this._isDisposed=!1,this.attachDomPortal=null}hasAttached(){return!!this._attachedPortal}attach(de){return de instanceof C?(this._attachedPortal=de,this.attachComponentPortal(de)):de instanceof m?(this._attachedPortal=de,this.attachTemplatePortal(de)):this.attachDomPortal&&de instanceof _?(this._attachedPortal=de,this.attachDomPortal(de)):void 0}detach(){this._attachedPortal&&(this._attachedPortal.setAttachedHost(null),this._attachedPortal=null),this._invokeDisposeFn()}dispose(){this.hasAttached()&&this.detach(),this._invokeDisposeFn(),this._isDisposed=!0}setDisposeFn(de){this._disposeFn=de}_invokeDisposeFn(){this._disposeFn&&(this._disposeFn(),this._disposeFn=null)}}class U extends g{constructor(de,re,be,pe,$e){super(),this.outletElement=de,this._componentFactoryResolver=re,this._appRef=be,this._defaultInjector=pe,this.attachDomPortal=Je=>{const qe=Je.element,it=this._document.createComment("dom-portal");qe.parentNode.insertBefore(it,qe),this.outletElement.appendChild(qe),this._attachedPortal=Je,super.setDisposeFn(()=>{it.parentNode&&it.parentNode.replaceChild(qe,it)})},this._document=$e}attachComponentPortal(de){const be=(de.componentFactoryResolver||this._componentFactoryResolver).resolveComponentFactory(de.component);let pe;return de.viewContainerRef?(pe=de.viewContainerRef.createComponent(be,de.viewContainerRef.length,de.injector||de.viewContainerRef.injector,de.projectableNodes||void 0),this.setDisposeFn(()=>pe.destroy())):(pe=be.create(de.injector||this._defaultInjector||a.zs3.NULL),this._appRef.attachView(pe.hostView),this.setDisposeFn(()=>{this._appRef.viewCount>0&&this._appRef.detachView(pe.hostView),pe.destroy()})),this.outletElement.appendChild(this._getComponentRootNode(pe)),this._attachedPortal=de,pe}attachTemplatePortal(de){let re=de.viewContainerRef,be=re.createEmbeddedView(de.templateRef,de.context,{injector:de.injector});return be.rootNodes.forEach(pe=>this.outletElement.appendChild(pe)),be.detectChanges(),this.setDisposeFn(()=>{let pe=re.indexOf(be);-1!==pe&&re.remove(pe)}),this._attachedPortal=de,be}dispose(){super.dispose(),this.outletElement.remove()}_getComponentRootNode(de){return de.hostView.rootNodes[0]}}let K=(()=>{var X;class de extends g{constructor(be,pe,$e){super(),this._componentFactoryResolver=be,this._viewContainerRef=pe,this._isInitialized=!1,this.attached=new a.vpe,this.attachDomPortal=Je=>{const qe=Je.element,it=this._document.createComment("dom-portal");Je.setAttachedHost(this),qe.parentNode.insertBefore(it,qe),this._getRootNode().appendChild(qe),this._attachedPortal=Je,super.setDisposeFn(()=>{it.parentNode&&it.parentNode.replaceChild(qe,it)})},this._document=$e}get portal(){return this._attachedPortal}set portal(be){this.hasAttached()&&!be&&!this._isInitialized||(this.hasAttached()&&super.detach(),be&&super.attach(be),this._attachedPortal=be||null)}get attachedRef(){return this._attachedRef}ngOnInit(){this._isInitialized=!0}ngOnDestroy(){super.dispose(),this._attachedRef=this._attachedPortal=null}attachComponentPortal(be){be.setAttachedHost(this);const pe=null!=be.viewContainerRef?be.viewContainerRef:this._viewContainerRef,Je=(be.componentFactoryResolver||this._componentFactoryResolver).resolveComponentFactory(be.component),qe=pe.createComponent(Je,pe.length,be.injector||pe.injector,be.projectableNodes||void 0);return pe!==this._viewContainerRef&&this._getRootNode().appendChild(qe.hostView.rootNodes[0]),super.setDisposeFn(()=>qe.destroy()),this._attachedPortal=be,this._attachedRef=qe,this.attached.emit(qe),qe}attachTemplatePortal(be){be.setAttachedHost(this);const pe=this._viewContainerRef.createEmbeddedView(be.templateRef,be.context,{injector:be.injector});return super.setDisposeFn(()=>this._viewContainerRef.clear()),this._attachedPortal=be,this._attachedRef=pe,this.attached.emit(pe),pe}_getRootNode(){const be=this._viewContainerRef.element.nativeElement;return be.nodeType===be.ELEMENT_NODE?be:be.parentNode}}return(X=de).\u0275fac=function(be){return new(be||X)(a.Y36(a._Vd),a.Y36(a.s_b),a.Y36(r.K0))},X.\u0275dir=a.lG2({type:X,selectors:[["","cdkPortalOutlet",""]],inputs:{portal:["cdkPortalOutlet","portal"]},outputs:{attached:"attached"},exportAs:["cdkPortalOutlet"],features:[a.qOj]}),de})(),w=(()=>{var X;class de{}return(X=de).\u0275fac=function(be){return new(be||X)},X.\u0275mod=a.oAB({type:X}),X.\u0275inj=a.cJS({}),de})()},16672:(Qe,he,s)=>{"use strict";s.d(he,{Cl:()=>ze,ZD:()=>_t,mF:()=>w,rL:()=>de});var a=s(42495),r=s(65879),b=s(72079),A=s(49193),D=s(54699),p=s(49016),c=(s(73944),s(17024),s(23433)),C=s(97734),m=s(62831),_=s(96814),g=s(49388);let w=(()=>{var Ze;class ot{constructor(De,ft,st){this._ngZone=De,this._platform=ft,this._scrolled=new b.xQ,this._globalSubscription=null,this._scrolledCount=0,this.scrollContainers=new Map,this._document=st}register(De){this.scrollContainers.has(De)||this.scrollContainers.set(De,De.elementScrolled().subscribe(()=>this._scrolled.next(De)))}deregister(De){const ft=this.scrollContainers.get(De);ft&&(ft.unsubscribe(),this.scrollContainers.delete(De))}scrolled(De=20){return this._platform.isBrowser?new D.y(ft=>{this._globalSubscription||this._addGlobalListener();const st=De>0?this._scrolled.pipe((0,c.e)(De)).subscribe(ft):this._scrolled.subscribe(ft);return this._scrolledCount++,()=>{st.unsubscribe(),this._scrolledCount--,this._scrolledCount||this._removeGlobalListener()}}):(0,A.of)()}ngOnDestroy(){this._removeGlobalListener(),this.scrollContainers.forEach((De,ft)=>this.deregister(ft)),this._scrolled.complete()}ancestorScrolled(De,ft){const st=this.getAncestorScrollContainers(De);return this.scrolled(ft).pipe((0,C.h)(bt=>!bt||st.indexOf(bt)>-1))}getAncestorScrollContainers(De){const ft=[];return this.scrollContainers.forEach((st,bt)=>{this._scrollableContainsElement(bt,De)&&ft.push(bt)}),ft}_getWindow(){return this._document.defaultView||window}_scrollableContainsElement(De,ft){let st=(0,a.fI)(ft),bt=De.getElementRef().nativeElement;do{if(st==bt)return!0}while(st=st.parentElement);return!1}_addGlobalListener(){this._globalSubscription=this._ngZone.runOutsideAngular(()=>{const De=this._getWindow();return(0,p.R)(De.document,"scroll").subscribe(()=>this._scrolled.next())})}_removeGlobalListener(){this._globalSubscription&&(this._globalSubscription.unsubscribe(),this._globalSubscription=null)}}return(Ze=ot).\u0275fac=function(De){return new(De||Ze)(r.LFG(r.R0b),r.LFG(m.t4),r.LFG(_.K0,8))},Ze.\u0275prov=r.Yz7({token:Ze,factory:Ze.\u0275fac,providedIn:"root"}),ot})(),de=(()=>{var Ze;class ot{constructor(De,ft,st){this._platform=De,this._change=new b.xQ,this._changeListener=bt=>{this._change.next(bt)},this._document=st,ft.runOutsideAngular(()=>{if(De.isBrowser){const bt=this._getWindow();bt.addEventListener("resize",this._changeListener),bt.addEventListener("orientationchange",this._changeListener)}this.change().subscribe(()=>this._viewportSize=null)})}ngOnDestroy(){if(this._platform.isBrowser){const De=this._getWindow();De.removeEventListener("resize",this._changeListener),De.removeEventListener("orientationchange",this._changeListener)}this._change.complete()}getViewportSize(){this._viewportSize||this._updateViewportSize();const De={width:this._viewportSize.width,height:this._viewportSize.height};return this._platform.isBrowser||(this._viewportSize=null),De}getViewportRect(){const De=this.getViewportScrollPosition(),{width:ft,height:st}=this.getViewportSize();return{top:De.top,left:De.left,bottom:De.top+st,right:De.left+ft,height:st,width:ft}}getViewportScrollPosition(){if(!this._platform.isBrowser)return{top:0,left:0};const De=this._document,ft=this._getWindow(),st=De.documentElement,bt=st.getBoundingClientRect();return{top:-bt.top||De.body.scrollTop||ft.scrollY||st.scrollTop||0,left:-bt.left||De.body.scrollLeft||ft.scrollX||st.scrollLeft||0}}change(De=20){return De>0?this._change.pipe((0,c.e)(De)):this._change}_getWindow(){return this._document.defaultView||window}_updateViewportSize(){const De=this._getWindow();this._viewportSize=this._platform.isBrowser?{width:De.innerWidth,height:De.innerHeight}:{width:0,height:0}}}return(Ze=ot).\u0275fac=function(De){return new(De||Ze)(r.LFG(m.t4),r.LFG(r.R0b),r.LFG(_.K0,8))},Ze.\u0275prov=r.Yz7({token:Ze,factory:Ze.\u0275fac,providedIn:"root"}),ot})(),_t=(()=>{var Ze;class ot{}return(Ze=ot).\u0275fac=function(De){return new(De||Ze)},Ze.\u0275mod=r.oAB({type:Ze}),Ze.\u0275inj=r.cJS({}),ot})(),ze=(()=>{var Ze;class ot{}return(Ze=ot).\u0275fac=function(De){return new(De||Ze)},Ze.\u0275mod=r.oAB({type:Ze}),Ze.\u0275inj=r.cJS({imports:[g.vT,_t,g.vT,_t]}),ot})()},96814:(Qe,he,s)=>{"use strict";s.d(he,{Do:()=>d,ED:()=>co,EM:()=>Ao,HT:()=>A,JF:()=>Zr,K0:()=>p,Mx:()=>Ii,NF:()=>So,Nd:()=>zo,O5:()=>Fi,OU:()=>_o,Ov:()=>Ts,PC:()=>$r,PM:()=>tr,RF:()=>Ri,S$:()=>g,V_:()=>f,Ye:()=>q,b0:()=>U,bD:()=>$i,ez:()=>Ur,gd:()=>Mr,i8:()=>Go,mk:()=>Qn,n9:()=>jr,q:()=>b,rS:()=>Co,sg:()=>qn,tP:()=>Mo,uU:()=>er,w_:()=>D});var a=s(65879);let r=null;function b(){return r}function A(x){r||(r=x)}class D{}const p=new a.OlP("DocumentToken");let E=(()=>{var x;class ie{historyGo(ee){throw new Error("Not implemented")}}return(x=ie).\u0275fac=function(ee){return new(ee||x)},x.\u0275prov=a.Yz7({token:x,factory:function(){return(0,a.f3M)(c)},providedIn:"platform"}),ie})();const f=new a.OlP("Location Initialized");let c=(()=>{var x;class ie extends E{constructor(){super(),this._doc=(0,a.f3M)(p),this._location=window.location,this._history=window.history}getBaseHrefFromDOM(){return b().getBaseHref(this._doc)}onPopState(ee){const Re=b().getGlobalEventTarget(this._doc,"window");return Re.addEventListener("popstate",ee,!1),()=>Re.removeEventListener("popstate",ee)}onHashChange(ee){const Re=b().getGlobalEventTarget(this._doc,"window");return Re.addEventListener("hashchange",ee,!1),()=>Re.removeEventListener("hashchange",ee)}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(ee){this._location.pathname=ee}pushState(ee,Re,lt){this._history.pushState(ee,Re,lt)}replaceState(ee,Re,lt){this._history.replaceState(ee,Re,lt)}forward(){this._history.forward()}back(){this._history.back()}historyGo(ee=0){this._history.go(ee)}getState(){return this._history.state}}return(x=ie).\u0275fac=function(ee){return new(ee||x)},x.\u0275prov=a.Yz7({token:x,factory:function(){return new x},providedIn:"platform"}),ie})();function C(x,ie){if(0==x.length)return ie;if(0==ie.length)return x;let He=0;return x.endsWith("/")&&He++,ie.startsWith("/")&&He++,2==He?x+ie.substring(1):1==He?x+ie:x+"/"+ie}function m(x){const ie=x.match(/#|\?|$/),He=ie&&ie.index||x.length;return x.slice(0,He-("/"===x[He-1]?1:0))+x.slice(He)}function _(x){return x&&"?"!==x[0]?"?"+x:x}let g=(()=>{var x;class ie{historyGo(ee){throw new Error("Not implemented")}}return(x=ie).\u0275fac=function(ee){return new(ee||x)},x.\u0275prov=a.Yz7({token:x,factory:function(){return(0,a.f3M)(U)},providedIn:"root"}),ie})();const P=new a.OlP("appBaseHref");let U=(()=>{var x;class ie extends g{constructor(ee,Re){var lt;super(),this._platformLocation=ee,this._removeListenerFns=[],this._baseHref=Re??this._platformLocation.getBaseHrefFromDOM()??(null==(lt=(0,a.f3M)(p).location)?void 0:lt.origin)??""}ngOnDestroy(){for(;this._removeListenerFns.length;)this._removeListenerFns.pop()()}onPopState(ee){this._removeListenerFns.push(this._platformLocation.onPopState(ee),this._platformLocation.onHashChange(ee))}getBaseHref(){return this._baseHref}prepareExternalUrl(ee){return C(this._baseHref,ee)}path(ee=!1){const Re=this._platformLocation.pathname+_(this._platformLocation.search),lt=this._platformLocation.hash;return lt&&ee?`${Re}${lt}`:Re}pushState(ee,Re,lt,jt){const _n=this.prepareExternalUrl(lt+_(jt));this._platformLocation.pushState(ee,Re,_n)}replaceState(ee,Re,lt,jt){const _n=this.prepareExternalUrl(lt+_(jt));this._platformLocation.replaceState(ee,Re,_n)}forward(){this._platformLocation.forward()}back(){this._platformLocation.back()}getState(){return this._platformLocation.getState()}historyGo(ee=0){var Re,lt;null==(lt=(Re=this._platformLocation).historyGo)||lt.call(Re,ee)}}return(x=ie).\u0275fac=function(ee){return new(ee||x)(a.LFG(E),a.LFG(P,8))},x.\u0275prov=a.Yz7({token:x,factory:x.\u0275fac,providedIn:"root"}),ie})(),d=(()=>{var x;class ie extends g{constructor(ee,Re){super(),this._platformLocation=ee,this._baseHref="",this._removeListenerFns=[],null!=Re&&(this._baseHref=Re)}ngOnDestroy(){for(;this._removeListenerFns.length;)this._removeListenerFns.pop()()}onPopState(ee){this._removeListenerFns.push(this._platformLocation.onPopState(ee),this._platformLocation.onHashChange(ee))}getBaseHref(){return this._baseHref}path(ee=!1){let Re=this._platformLocation.hash;return null==Re&&(Re="#"),Re.length>0?Re.substring(1):Re}prepareExternalUrl(ee){const Re=C(this._baseHref,ee);return Re.length>0?"#"+Re:Re}pushState(ee,Re,lt,jt){let _n=this.prepareExternalUrl(lt+_(jt));0==_n.length&&(_n=this._platformLocation.pathname),this._platformLocation.pushState(ee,Re,_n)}replaceState(ee,Re,lt,jt){let _n=this.prepareExternalUrl(lt+_(jt));0==_n.length&&(_n=this._platformLocation.pathname),this._platformLocation.replaceState(ee,Re,_n)}forward(){this._platformLocation.forward()}back(){this._platformLocation.back()}getState(){return this._platformLocation.getState()}historyGo(ee=0){var Re,lt;null==(lt=(Re=this._platformLocation).historyGo)||lt.call(Re,ee)}}return(x=ie).\u0275fac=function(ee){return new(ee||x)(a.LFG(E),a.LFG(P,8))},x.\u0275prov=a.Yz7({token:x,factory:x.\u0275fac}),ie})(),q=(()=>{var x;class ie{constructor(ee){this._subject=new a.vpe,this._urlChangeListeners=[],this._urlChangeSubscription=null,this._locationStrategy=ee;const Re=this._locationStrategy.getBaseHref();this._basePath=function w(x){if(new RegExp("^(https?:)?//").test(x)){const[,He]=x.split(/\/\/[^\/]+/);return He}return x}(m(L(Re))),this._locationStrategy.onPopState(lt=>{this._subject.emit({url:this.path(!0),pop:!0,state:lt.state,type:lt.type})})}ngOnDestroy(){var ee;null==(ee=this._urlChangeSubscription)||ee.unsubscribe(),this._urlChangeListeners=[]}path(ee=!1){return this.normalize(this._locationStrategy.path(ee))}getState(){return this._locationStrategy.getState()}isCurrentPathEqualTo(ee,Re=""){return this.path()==this.normalize(ee+_(Re))}normalize(ee){return ie.stripTrailingSlash(function K(x,ie){if(!x||!ie.startsWith(x))return ie;const He=ie.substring(x.length);return""===He||["/",";","?","#"].includes(He[0])?He:ie}(this._basePath,L(ee)))}prepareExternalUrl(ee){return ee&&"/"!==ee[0]&&(ee="/"+ee),this._locationStrategy.prepareExternalUrl(ee)}go(ee,Re="",lt=null){this._locationStrategy.pushState(lt,"",ee,Re),this._notifyUrlChangeListeners(this.prepareExternalUrl(ee+_(Re)),lt)}replaceState(ee,Re="",lt=null){this._locationStrategy.replaceState(lt,"",ee,Re),this._notifyUrlChangeListeners(this.prepareExternalUrl(ee+_(Re)),lt)}forward(){this._locationStrategy.forward()}back(){this._locationStrategy.back()}historyGo(ee=0){var Re,lt;null==(lt=(Re=this._locationStrategy).historyGo)||lt.call(Re,ee)}onUrlChange(ee){return this._urlChangeListeners.push(ee),this._urlChangeSubscription||(this._urlChangeSubscription=this.subscribe(Re=>{this._notifyUrlChangeListeners(Re.url,Re.state)})),()=>{var lt;const Re=this._urlChangeListeners.indexOf(ee);this._urlChangeListeners.splice(Re,1),0===this._urlChangeListeners.length&&(null==(lt=this._urlChangeSubscription)||lt.unsubscribe(),this._urlChangeSubscription=null)}}_notifyUrlChangeListeners(ee="",Re){this._urlChangeListeners.forEach(lt=>lt(ee,Re))}subscribe(ee,Re,lt){return this._subject.subscribe({next:ee,error:Re,complete:lt})}}return(x=ie).normalizeQueryParams=_,x.joinWithSlash=C,x.stripTrailingSlash=m,x.\u0275fac=function(ee){return new(ee||x)(a.LFG(g))},x.\u0275prov=a.Yz7({token:x,factory:function(){return function j(){return new q((0,a.LFG)(g))}()},providedIn:"root"}),ie})();function L(x){return x.replace(/\/index.html$/,"")}var re=function(x){return x[x.Format=0]="Format",x[x.Standalone=1]="Standalone",x}(re||{}),be=function(x){return x[x.Narrow=0]="Narrow",x[x.Abbreviated=1]="Abbreviated",x[x.Wide=2]="Wide",x[x.Short=3]="Short",x}(be||{}),pe=function(x){return x[x.Short=0]="Short",x[x.Medium=1]="Medium",x[x.Long=2]="Long",x[x.Full=3]="Full",x}(pe||{}),$e=function(x){return x[x.Decimal=0]="Decimal",x[x.Group=1]="Group",x[x.List=2]="List",x[x.PercentSign=3]="PercentSign",x[x.PlusSign=4]="PlusSign",x[x.MinusSign=5]="MinusSign",x[x.Exponential=6]="Exponential",x[x.SuperscriptingExponent=7]="SuperscriptingExponent",x[x.PerMille=8]="PerMille",x[x.Infinity=9]="Infinity",x[x.NaN=10]="NaN",x[x.TimeSeparator=11]="TimeSeparator",x[x.CurrencyDecimal=12]="CurrencyDecimal",x[x.CurrencyGroup=13]="CurrencyGroup",x}($e||{});function ot(x,ie){return cn((0,a.cg1)(x)[a.wAp.DateFormat],ie)}function Ct(x,ie){return cn((0,a.cg1)(x)[a.wAp.TimeFormat],ie)}function De(x,ie){return cn((0,a.cg1)(x)[a.wAp.DateTimeFormat],ie)}function ft(x,ie){const He=(0,a.cg1)(x),ee=He[a.wAp.NumberSymbols][ie];if(typeof ee>"u"){if(ie===$e.CurrencyDecimal)return He[a.wAp.NumberSymbols][$e.Decimal];if(ie===$e.CurrencyGroup)return He[a.wAp.NumberSymbols][$e.Group]}return ee}function Pe(x){if(!x[a.wAp.ExtraData])throw new Error(`Missing extra locale data for the locale "${x[a.wAp.LocaleId]}". Use "registerLocaleData" to load new data. See the "I18n guide" on angular.io to know more.`)}function cn(x,ie){for(let He=ie;He>-1;He--)if(typeof x[He]<"u")return x[He];throw new Error("Locale data API: locale data undefined")}function Ie(x){const[ie,He]=x.split(":");return{hours:+ie,minutes:+He}}const mt=/^(\d{4,})-?(\d\d)-?(\d\d)(?:T(\d\d)(?::?(\d\d)(?::?(\d\d)(?:\.(\d+))?)?)?(Z|([+-])(\d\d):?(\d\d))?)?$/,Ut={},Bt=/((?:[^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 gt=function(x){return x[x.Short=0]="Short",x[x.ShortGMT=1]="ShortGMT",x[x.Long=2]="Long",x[x.Extended=3]="Extended",x}(gt||{}),nt=function(x){return x[x.FullYear=0]="FullYear",x[x.Month=1]="Month",x[x.Date=2]="Date",x[x.Hours=3]="Hours",x[x.Minutes=4]="Minutes",x[x.Seconds=5]="Seconds",x[x.FractionalSeconds=6]="FractionalSeconds",x[x.Day=7]="Day",x}(nt||{}),oe=function(x){return x[x.DayPeriods=0]="DayPeriods",x[x.Days=1]="Days",x[x.Months=2]="Months",x[x.Eras=3]="Eras",x}(oe||{});function Ce(x,ie,He,ee){let Re=function T(x){if(G(x))return x;if("number"==typeof x&&!isNaN(x))return new Date(x);if("string"==typeof x){if(x=x.trim(),/^(\d{4}(-\d{1,2}(-\d{1,2})?)?)$/.test(x)){const[Re,lt=1,jt=1]=x.split("-").map(_n=>+_n);return ve(Re,lt-1,jt)}const He=parseFloat(x);if(!isNaN(x-He))return new Date(He);let ee;if(ee=x.match(mt))return function V(x){const ie=new Date(0);let He=0,ee=0;const Re=x[8]?ie.setUTCFullYear:ie.setFullYear,lt=x[8]?ie.setUTCHours:ie.setHours;x[9]&&(He=Number(x[9]+x[10]),ee=Number(x[9]+x[11])),Re.call(ie,Number(x[1]),Number(x[2])-1,Number(x[3]));const jt=Number(x[4]||0)-He,_n=Number(x[5]||0)-ee,zn=Number(x[6]||0),Yn=Math.floor(1e3*parseFloat("0."+(x[7]||0)));return lt.call(ie,jt,_n,zn,Yn),ie}(ee)}const ie=new Date(x);if(!G(ie))throw new Error(`Unable to convert "${x}" into a date`);return ie}(x);ie=xe(He,ie)||ie;let _n,jt=[];for(;ie;){if(_n=Bt.exec(ie),!_n){jt.push(ie);break}{jt=jt.concat(_n.slice(1));const ui=jt.pop();if(!ui)break;ie=ui}}let zn=Re.getTimezoneOffset();ee&&(zn=ye(ee,zn),Re=function ge(x,ie,He){const ee=He?-1:1,Re=x.getTimezoneOffset();return function we(x,ie){return(x=new Date(x.getTime())).setMinutes(x.getMinutes()+ie),x}(x,ee*(ye(ie,Re)-Re))}(Re,ee,!0));let Yn="";return jt.forEach(ui=>{const Un=function vt(x){if(Ee[x])return Ee[x];let ie;switch(x){case"G":case"GG":case"GGG":ie=We(oe.Eras,be.Abbreviated);break;case"GGGG":ie=We(oe.Eras,be.Wide);break;case"GGGGG":ie=We(oe.Eras,be.Narrow);break;case"y":ie=je(nt.FullYear,1,0,!1,!0);break;case"yy":ie=je(nt.FullYear,2,0,!0,!0);break;case"yyy":ie=je(nt.FullYear,3,0,!1,!0);break;case"yyyy":ie=je(nt.FullYear,4,0,!1,!0);break;case"Y":ie=Ye(1);break;case"YY":ie=Ye(2,!0);break;case"YYY":ie=Ye(3);break;case"YYYY":ie=Ye(4);break;case"M":case"L":ie=je(nt.Month,1,1);break;case"MM":case"LL":ie=je(nt.Month,2,1);break;case"MMM":ie=We(oe.Months,be.Abbreviated);break;case"MMMM":ie=We(oe.Months,be.Wide);break;case"MMMMM":ie=We(oe.Months,be.Narrow);break;case"LLL":ie=We(oe.Months,be.Abbreviated,re.Standalone);break;case"LLLL":ie=We(oe.Months,be.Wide,re.Standalone);break;case"LLLLL":ie=We(oe.Months,be.Narrow,re.Standalone);break;case"w":ie=Zt(1);break;case"ww":ie=Zt(2);break;case"W":ie=Zt(1,!0);break;case"d":ie=je(nt.Date,1);break;case"dd":ie=je(nt.Date,2);break;case"c":case"cc":ie=je(nt.Day,1);break;case"ccc":ie=We(oe.Days,be.Abbreviated,re.Standalone);break;case"cccc":ie=We(oe.Days,be.Wide,re.Standalone);break;case"ccccc":ie=We(oe.Days,be.Narrow,re.Standalone);break;case"cccccc":ie=We(oe.Days,be.Short,re.Standalone);break;case"E":case"EE":case"EEE":ie=We(oe.Days,be.Abbreviated);break;case"EEEE":ie=We(oe.Days,be.Wide);break;case"EEEEE":ie=We(oe.Days,be.Narrow);break;case"EEEEEE":ie=We(oe.Days,be.Short);break;case"a":case"aa":case"aaa":ie=We(oe.DayPeriods,be.Abbreviated);break;case"aaaa":ie=We(oe.DayPeriods,be.Wide);break;case"aaaaa":ie=We(oe.DayPeriods,be.Narrow);break;case"b":case"bb":case"bbb":ie=We(oe.DayPeriods,be.Abbreviated,re.Standalone,!0);break;case"bbbb":ie=We(oe.DayPeriods,be.Wide,re.Standalone,!0);break;case"bbbbb":ie=We(oe.DayPeriods,be.Narrow,re.Standalone,!0);break;case"B":case"BB":case"BBB":ie=We(oe.DayPeriods,be.Abbreviated,re.Format,!0);break;case"BBBB":ie=We(oe.DayPeriods,be.Wide,re.Format,!0);break;case"BBBBB":ie=We(oe.DayPeriods,be.Narrow,re.Format,!0);break;case"h":ie=je(nt.Hours,1,-12);break;case"hh":ie=je(nt.Hours,2,-12);break;case"H":ie=je(nt.Hours,1);break;case"HH":ie=je(nt.Hours,2);break;case"m":ie=je(nt.Minutes,1);break;case"mm":ie=je(nt.Minutes,2);break;case"s":ie=je(nt.Seconds,1);break;case"ss":ie=je(nt.Seconds,2);break;case"S":ie=je(nt.FractionalSeconds,1);break;case"SS":ie=je(nt.FractionalSeconds,2);break;case"SSS":ie=je(nt.FractionalSeconds,3);break;case"Z":case"ZZ":case"ZZZ":ie=Kt(gt.Short);break;case"ZZZZZ":ie=Kt(gt.Extended);break;case"O":case"OO":case"OOO":case"z":case"zz":case"zzz":ie=Kt(gt.ShortGMT);break;case"OOOO":case"ZZZZ":case"zzzz":ie=Kt(gt.Long);break;default:return null}return Ee[x]=ie,ie}(ui);Yn+=Un?Un(Re,He,zn):"''"===ui?"'":ui.replace(/(^'|'$)/g,"").replace(/''/g,"'")}),Yn}function ve(x,ie,He){const ee=new Date(0);return ee.setFullYear(x,ie,He),ee.setHours(0,0,0),ee}function xe(x,ie){const He=function qe(x){return(0,a.cg1)(x)[a.wAp.LocaleId]}(x);if(Ut[He]=Ut[He]||{},Ut[He][ie])return Ut[He][ie];let ee="";switch(ie){case"shortDate":ee=ot(x,pe.Short);break;case"mediumDate":ee=ot(x,pe.Medium);break;case"longDate":ee=ot(x,pe.Long);break;case"fullDate":ee=ot(x,pe.Full);break;case"shortTime":ee=Ct(x,pe.Short);break;case"mediumTime":ee=Ct(x,pe.Medium);break;case"longTime":ee=Ct(x,pe.Long);break;case"fullTime":ee=Ct(x,pe.Full);break;case"short":const Re=xe(x,"shortTime"),lt=xe(x,"shortDate");ee=at(De(x,pe.Short),[Re,lt]);break;case"medium":const jt=xe(x,"mediumTime"),_n=xe(x,"mediumDate");ee=at(De(x,pe.Medium),[jt,_n]);break;case"long":const zn=xe(x,"longTime"),Yn=xe(x,"longDate");ee=at(De(x,pe.Long),[zn,Yn]);break;case"full":const ui=xe(x,"fullTime"),Un=xe(x,"fullDate");ee=at(De(x,pe.Full),[ui,Un])}return ee&&(Ut[He][ie]=ee),ee}function at(x,ie){return ie&&(x=x.replace(/\{([^}]+)}/g,function(He,ee){return null!=ie&&ee in ie?ie[ee]:He})),x}function Ot(x,ie,He="-",ee,Re){let lt="";(x<0||Re&&x<=0)&&(Re?x=1-x:(x=-x,lt=He));let jt=String(x);for(;jt.length0||_n>-He)&&(_n+=He),x===nt.Hours)0===_n&&-12===He&&(_n=12);else if(x===nt.FractionalSeconds)return function Fe(x,ie){return Ot(x,3).substring(0,ie)}(_n,ie);const zn=ft(jt,$e.MinusSign);return Ot(_n,ie,zn,ee,Re)}}function We(x,ie,He=re.Format,ee=!1){return function(Re,lt){return function Ft(x,ie,He,ee,Re,lt){switch(He){case oe.Months:return function tt(x,ie,He){const ee=(0,a.cg1)(x),lt=cn([ee[a.wAp.MonthsFormat],ee[a.wAp.MonthsStandalone]],ie);return cn(lt,He)}(ie,Re,ee)[x.getMonth()];case oe.Days:return function rt(x,ie,He){const ee=(0,a.cg1)(x),lt=cn([ee[a.wAp.DaysFormat],ee[a.wAp.DaysStandalone]],ie);return cn(lt,He)}(ie,Re,ee)[x.getDay()];case oe.DayPeriods:const jt=x.getHours(),_n=x.getMinutes();if(lt){const Yn=function dt(x){const ie=(0,a.cg1)(x);return Pe(ie),(ie[a.wAp.ExtraData][2]||[]).map(ee=>"string"==typeof ee?Ie(ee):[Ie(ee[0]),Ie(ee[1])])}(ie),ui=function Pt(x,ie,He){const ee=(0,a.cg1)(x);Pe(ee);const lt=cn([ee[a.wAp.ExtraData][0],ee[a.wAp.ExtraData][1]],ie)||[];return cn(lt,He)||[]}(ie,Re,ee),Un=Yn.findIndex(Gi=>{if(Array.isArray(Gi)){const[gi,Xi]=Gi,Br=jt>=gi.hours&&_n>=gi.minutes,eo=jt0?Math.floor(Re/60):Math.ceil(Re/60);switch(x){case gt.Short:return(Re>=0?"+":"")+Ot(jt,2,lt)+Ot(Math.abs(Re%60),2,lt);case gt.ShortGMT:return"GMT"+(Re>=0?"+":"")+Ot(jt,1,lt);case gt.Long:return"GMT"+(Re>=0?"+":"")+Ot(jt,2,lt)+":"+Ot(Math.abs(Re%60),2,lt);case gt.Extended:return 0===ee?"Z":(Re>=0?"+":"")+Ot(jt,2,lt)+":"+Ot(Math.abs(Re%60),2,lt);default:throw new Error(`Unknown zone width "${x}"`)}}}const xt=0,Mt=4;function St(x){return ve(x.getFullYear(),x.getMonth(),x.getDate()+(Mt-x.getDay()))}function Zt(x,ie=!1){return function(He,ee){let Re;if(ie){const lt=new Date(He.getFullYear(),He.getMonth(),1).getDay()-1,jt=He.getDate();Re=1+Math.floor((jt+lt)/7)}else{const lt=St(He),jt=function pt(x){const ie=ve(x,xt,1).getDay();return ve(x,0,1+(ie<=Mt?Mt:Mt+7)-ie)}(lt.getFullYear()),_n=lt.getTime()-jt.getTime();Re=1+Math.round(_n/6048e5)}return Ot(Re,x,ft(ee,$e.MinusSign))}}function Ye(x,ie=!1){return function(He,ee){return Ot(St(He).getFullYear(),x,ft(ee,$e.MinusSign),ie)}}const Ee={};function ye(x,ie){x=x.replace(/:/g,"");const He=Date.parse("Jan 01, 1970 00:00:00 "+x)/6e4;return isNaN(He)?ie:He}function G(x){return x instanceof Date&&!isNaN(x.valueOf())}function Ii(x,ie){ie=encodeURIComponent(ie);for(const He of x.split(";")){const ee=He.indexOf("="),[Re,lt]=-1==ee?[He,""]:[He.slice(0,ee),He.slice(ee+1)];if(Re.trim()===ie)return decodeURIComponent(lt)}return null}const zi=/\s+/,Ji=[];let Qn=(()=>{var x;class ie{constructor(ee,Re,lt,jt){this._iterableDiffers=ee,this._keyValueDiffers=Re,this._ngEl=lt,this._renderer=jt,this.initialClasses=Ji,this.stateMap=new Map}set klass(ee){this.initialClasses=null!=ee?ee.trim().split(zi):Ji}set ngClass(ee){this.rawClass="string"==typeof ee?ee.trim().split(zi):ee}ngDoCheck(){for(const Re of this.initialClasses)this._updateState(Re,!0);const ee=this.rawClass;if(Array.isArray(ee)||ee instanceof Set)for(const Re of ee)this._updateState(Re,!0);else if(null!=ee)for(const Re of Object.keys(ee))this._updateState(Re,!!ee[Re]);this._applyStateDiff()}_updateState(ee,Re){const lt=this.stateMap.get(ee);void 0!==lt?(lt.enabled!==Re&&(lt.changed=!0,lt.enabled=Re),lt.touched=!0):this.stateMap.set(ee,{enabled:Re,changed:!0,touched:!0})}_applyStateDiff(){for(const ee of this.stateMap){const Re=ee[0],lt=ee[1];lt.changed?(this._toggleClass(Re,lt.enabled),lt.changed=!1):lt.touched||(lt.enabled&&this._toggleClass(Re,!1),this.stateMap.delete(Re)),lt.touched=!1}}_toggleClass(ee,Re){(ee=ee.trim()).length>0&&ee.split(zi).forEach(lt=>{Re?this._renderer.addClass(this._ngEl.nativeElement,lt):this._renderer.removeClass(this._ngEl.nativeElement,lt)})}}return(x=ie).\u0275fac=function(ee){return new(ee||x)(a.Y36(a.ZZ4),a.Y36(a.aQg),a.Y36(a.SBq),a.Y36(a.Qsj))},x.\u0275dir=a.lG2({type:x,selectors:[["","ngClass",""]],inputs:{klass:["class","klass"],ngClass:"ngClass"},standalone:!0}),ie})();class Ki{constructor(ie,He,ee,Re){this.$implicit=ie,this.ngForOf=He,this.index=ee,this.count=Re}get first(){return 0===this.index}get last(){return this.index===this.count-1}get even(){return this.index%2==0}get odd(){return!this.even}}let qn=(()=>{var x;class ie{set ngForOf(ee){this._ngForOf=ee,this._ngForOfDirty=!0}set ngForTrackBy(ee){this._trackByFn=ee}get ngForTrackBy(){return this._trackByFn}constructor(ee,Re,lt){this._viewContainer=ee,this._template=Re,this._differs=lt,this._ngForOf=null,this._ngForOfDirty=!0,this._differ=null}set ngForTemplate(ee){ee&&(this._template=ee)}ngDoCheck(){if(this._ngForOfDirty){this._ngForOfDirty=!1;const ee=this._ngForOf;!this._differ&&ee&&(this._differ=this._differs.find(ee).create(this.ngForTrackBy))}if(this._differ){const ee=this._differ.diff(this._ngForOf);ee&&this._applyChanges(ee)}}_applyChanges(ee){const Re=this._viewContainer;ee.forEachOperation((lt,jt,_n)=>{if(null==lt.previousIndex)Re.createEmbeddedView(this._template,new Ki(lt.item,this._ngForOf,-1,-1),null===_n?void 0:_n);else if(null==_n)Re.remove(null===jt?void 0:jt);else if(null!==jt){const zn=Re.get(jt);Re.move(zn,_n),Ai(zn,lt)}});for(let lt=0,jt=Re.length;lt{Ai(Re.get(lt.currentIndex),lt)})}static ngTemplateContextGuard(ee,Re){return!0}}return(x=ie).\u0275fac=function(ee){return new(ee||x)(a.Y36(a.s_b),a.Y36(a.Rgc),a.Y36(a.ZZ4))},x.\u0275dir=a.lG2({type:x,selectors:[["","ngFor","","ngForOf",""]],inputs:{ngForOf:"ngForOf",ngForTrackBy:"ngForTrackBy",ngForTemplate:"ngForTemplate"},standalone:!0}),ie})();function Ai(x,ie){x.context.$implicit=ie.item}let Fi=(()=>{var x;class ie{constructor(ee,Re){this._viewContainer=ee,this._context=new ki,this._thenTemplateRef=null,this._elseTemplateRef=null,this._thenViewRef=null,this._elseViewRef=null,this._thenTemplateRef=Re}set ngIf(ee){this._context.$implicit=this._context.ngIf=ee,this._updateView()}set ngIfThen(ee){Hi("ngIfThen",ee),this._thenTemplateRef=ee,this._thenViewRef=null,this._updateView()}set ngIfElse(ee){Hi("ngIfElse",ee),this._elseTemplateRef=ee,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(ee,Re){return!0}}return(x=ie).\u0275fac=function(ee){return new(ee||x)(a.Y36(a.s_b),a.Y36(a.Rgc))},x.\u0275dir=a.lG2({type:x,selectors:[["","ngIf",""]],inputs:{ngIf:"ngIf",ngIfThen:"ngIfThen",ngIfElse:"ngIfElse"},standalone:!0}),ie})();class ki{constructor(){this.$implicit=null,this.ngIf=null}}function Hi(x,ie){if(ie&&!ie.createEmbeddedView)throw new Error(`${x} must be a TemplateRef, but received '${(0,a.AaK)(ie)}'.`)}class Lr{constructor(ie,He){this._viewContainerRef=ie,this._templateRef=He,this._created=!1}create(){this._created=!0,this._viewContainerRef.createEmbeddedView(this._templateRef)}destroy(){this._created=!1,this._viewContainerRef.clear()}enforceState(ie){ie&&!this._created?this.create():!ie&&this._created&&this.destroy()}}let Ri=(()=>{var x;class ie{constructor(){this._defaultViews=[],this._defaultUsed=!1,this._caseCount=0,this._lastCaseCheckIndex=0,this._lastCasesMatched=!1}set ngSwitch(ee){this._ngSwitch=ee,0===this._caseCount&&this._updateDefaultCases(!0)}_addCase(){return this._caseCount++}_addDefault(ee){this._defaultViews.push(ee)}_matchCase(ee){const Re=ee==this._ngSwitch;return this._lastCasesMatched=this._lastCasesMatched||Re,this._lastCaseCheckIndex++,this._lastCaseCheckIndex===this._caseCount&&(this._updateDefaultCases(!this._lastCasesMatched),this._lastCaseCheckIndex=0,this._lastCasesMatched=!1),Re}_updateDefaultCases(ee){if(this._defaultViews.length>0&&ee!==this._defaultUsed){this._defaultUsed=ee;for(const Re of this._defaultViews)Re.enforceState(ee)}}}return(x=ie).\u0275fac=function(ee){return new(ee||x)},x.\u0275dir=a.lG2({type:x,selectors:[["","ngSwitch",""]],inputs:{ngSwitch:"ngSwitch"},standalone:!0}),ie})(),jr=(()=>{var x;class ie{constructor(ee,Re,lt){this.ngSwitch=lt,lt._addCase(),this._view=new Lr(ee,Re)}ngDoCheck(){this._view.enforceState(this.ngSwitch._matchCase(this.ngSwitchCase))}}return(x=ie).\u0275fac=function(ee){return new(ee||x)(a.Y36(a.s_b),a.Y36(a.Rgc),a.Y36(Ri,9))},x.\u0275dir=a.lG2({type:x,selectors:[["","ngSwitchCase",""]],inputs:{ngSwitchCase:"ngSwitchCase"},standalone:!0}),ie})(),co=(()=>{var x;class ie{constructor(ee,Re,lt){lt._addDefault(new Lr(ee,Re))}}return(x=ie).\u0275fac=function(ee){return new(ee||x)(a.Y36(a.s_b),a.Y36(a.Rgc),a.Y36(Ri,9))},x.\u0275dir=a.lG2({type:x,selectors:[["","ngSwitchDefault",""]],standalone:!0}),ie})(),$r=(()=>{var x;class ie{constructor(ee,Re,lt){this._ngEl=ee,this._differs=Re,this._renderer=lt,this._ngStyle=null,this._differ=null}set ngStyle(ee){this._ngStyle=ee,!this._differ&&ee&&(this._differ=this._differs.find(ee).create())}ngDoCheck(){if(this._differ){const ee=this._differ.diff(this._ngStyle);ee&&this._applyChanges(ee)}}_setStyle(ee,Re){const[lt,jt]=ee.split("."),_n=-1===lt.indexOf("-")?void 0:a.JOm.DashCase;null!=Re?this._renderer.setStyle(this._ngEl.nativeElement,lt,jt?`${Re}${jt}`:Re,_n):this._renderer.removeStyle(this._ngEl.nativeElement,lt,_n)}_applyChanges(ee){ee.forEachRemovedItem(Re=>this._setStyle(Re.key,null)),ee.forEachAddedItem(Re=>this._setStyle(Re.key,Re.currentValue)),ee.forEachChangedItem(Re=>this._setStyle(Re.key,Re.currentValue))}}return(x=ie).\u0275fac=function(ee){return new(ee||x)(a.Y36(a.SBq),a.Y36(a.aQg),a.Y36(a.Qsj))},x.\u0275dir=a.lG2({type:x,selectors:[["","ngStyle",""]],inputs:{ngStyle:"ngStyle"},standalone:!0}),ie})(),Mo=(()=>{var x;class ie{constructor(ee){this._viewContainerRef=ee,this._viewRef=null,this.ngTemplateOutletContext=null,this.ngTemplateOutlet=null,this.ngTemplateOutletInjector=null}ngOnChanges(ee){if(ee.ngTemplateOutlet||ee.ngTemplateOutletInjector){const Re=this._viewContainerRef;if(this._viewRef&&Re.remove(Re.indexOf(this._viewRef)),this.ngTemplateOutlet){const{ngTemplateOutlet:lt,ngTemplateOutletContext:jt,ngTemplateOutletInjector:_n}=this;this._viewRef=Re.createEmbeddedView(lt,jt,_n?{injector:_n}:void 0)}else this._viewRef=null}else this._viewRef&&ee.ngTemplateOutletContext&&this.ngTemplateOutletContext&&(this._viewRef.context=this.ngTemplateOutletContext)}}return(x=ie).\u0275fac=function(ee){return new(ee||x)(a.Y36(a.s_b))},x.\u0275dir=a.lG2({type:x,selectors:[["","ngTemplateOutlet",""]],inputs:{ngTemplateOutletContext:"ngTemplateOutletContext",ngTemplateOutlet:"ngTemplateOutlet",ngTemplateOutletInjector:"ngTemplateOutletInjector"},standalone:!0,features:[a.TTD]}),ie})();function qi(x,ie){return new a.vHH(2100,!1)}class Hr{createSubscription(ie,He){return(0,a.rg0)(()=>ie.subscribe({next:He,error:ee=>{throw ee}}))}dispose(ie){(0,a.rg0)(()=>ie.unsubscribe())}}class wr{createSubscription(ie,He){return ie.then(He,ee=>{throw ee})}dispose(ie){}}const hs=new wr,On=new Hr;let Ts=(()=>{var x;class ie{constructor(ee){this._latestValue=null,this._subscription=null,this._obj=null,this._strategy=null,this._ref=ee}ngOnDestroy(){this._subscription&&this._dispose(),this._ref=null}transform(ee){return this._obj?ee!==this._obj?(this._dispose(),this.transform(ee)):this._latestValue:(ee&&this._subscribe(ee),this._latestValue)}_subscribe(ee){this._obj=ee,this._strategy=this._selectStrategy(ee),this._subscription=this._strategy.createSubscription(ee,Re=>this._updateLatestValue(ee,Re))}_selectStrategy(ee){if((0,a.QGY)(ee))return hs;if((0,a.F4k)(ee))return On;throw qi()}_dispose(){this._strategy.dispose(this._subscription),this._latestValue=null,this._subscription=null,this._obj=null}_updateLatestValue(ee,Re){ee===this._obj&&(this._latestValue=Re,this._ref.markForCheck())}}return(x=ie).\u0275fac=function(ee){return new(ee||x)(a.Y36(a.sBO,16))},x.\u0275pipe=a.Yjl({name:"async",type:x,pure:!1,standalone:!0}),ie})(),Go=(()=>{var x;class ie{transform(ee){if(null==ee)return null;if("string"!=typeof ee)throw qi();return ee.toLowerCase()}}return(x=ie).\u0275fac=function(ee){return new(ee||x)},x.\u0275pipe=a.Yjl({name:"lowercase",type:x,pure:!0,standalone:!0}),ie})();const Is=/(?:[0-9A-Za-z\xAA\xB5\xBA\xC0-\xD6\xD8-\xF6\xF8-\u02C1\u02C6-\u02D1\u02E0-\u02E4\u02EC\u02EE\u0370-\u0374\u0376\u0377\u037A-\u037D\u037F\u0386\u0388-\u038A\u038C\u038E-\u03A1\u03A3-\u03F5\u03F7-\u0481\u048A-\u052F\u0531-\u0556\u0559\u0560-\u0588\u05D0-\u05EA\u05EF-\u05F2\u0620-\u064A\u066E\u066F\u0671-\u06D3\u06D5\u06E5\u06E6\u06EE\u06EF\u06FA-\u06FC\u06FF\u0710\u0712-\u072F\u074D-\u07A5\u07B1\u07CA-\u07EA\u07F4\u07F5\u07FA\u0800-\u0815\u081A\u0824\u0828\u0840-\u0858\u0860-\u086A\u0870-\u0887\u0889-\u088E\u08A0-\u08C9\u0904-\u0939\u093D\u0950\u0958-\u0961\u0971-\u0980\u0985-\u098C\u098F\u0990\u0993-\u09A8\u09AA-\u09B0\u09B2\u09B6-\u09B9\u09BD\u09CE\u09DC\u09DD\u09DF-\u09E1\u09F0\u09F1\u09FC\u0A05-\u0A0A\u0A0F\u0A10\u0A13-\u0A28\u0A2A-\u0A30\u0A32\u0A33\u0A35\u0A36\u0A38\u0A39\u0A59-\u0A5C\u0A5E\u0A72-\u0A74\u0A85-\u0A8D\u0A8F-\u0A91\u0A93-\u0AA8\u0AAA-\u0AB0\u0AB2\u0AB3\u0AB5-\u0AB9\u0ABD\u0AD0\u0AE0\u0AE1\u0AF9\u0B05-\u0B0C\u0B0F\u0B10\u0B13-\u0B28\u0B2A-\u0B30\u0B32\u0B33\u0B35-\u0B39\u0B3D\u0B5C\u0B5D\u0B5F-\u0B61\u0B71\u0B83\u0B85-\u0B8A\u0B8E-\u0B90\u0B92-\u0B95\u0B99\u0B9A\u0B9C\u0B9E\u0B9F\u0BA3\u0BA4\u0BA8-\u0BAA\u0BAE-\u0BB9\u0BD0\u0C05-\u0C0C\u0C0E-\u0C10\u0C12-\u0C28\u0C2A-\u0C39\u0C3D\u0C58-\u0C5A\u0C5D\u0C60\u0C61\u0C80\u0C85-\u0C8C\u0C8E-\u0C90\u0C92-\u0CA8\u0CAA-\u0CB3\u0CB5-\u0CB9\u0CBD\u0CDD\u0CDE\u0CE0\u0CE1\u0CF1\u0CF2\u0D04-\u0D0C\u0D0E-\u0D10\u0D12-\u0D3A\u0D3D\u0D4E\u0D54-\u0D56\u0D5F-\u0D61\u0D7A-\u0D7F\u0D85-\u0D96\u0D9A-\u0DB1\u0DB3-\u0DBB\u0DBD\u0DC0-\u0DC6\u0E01-\u0E30\u0E32\u0E33\u0E40-\u0E46\u0E81\u0E82\u0E84\u0E86-\u0E8A\u0E8C-\u0EA3\u0EA5\u0EA7-\u0EB0\u0EB2\u0EB3\u0EBD\u0EC0-\u0EC4\u0EC6\u0EDC-\u0EDF\u0F00\u0F40-\u0F47\u0F49-\u0F6C\u0F88-\u0F8C\u1000-\u102A\u103F\u1050-\u1055\u105A-\u105D\u1061\u1065\u1066\u106E-\u1070\u1075-\u1081\u108E\u10A0-\u10C5\u10C7\u10CD\u10D0-\u10FA\u10FC-\u1248\u124A-\u124D\u1250-\u1256\u1258\u125A-\u125D\u1260-\u1288\u128A-\u128D\u1290-\u12B0\u12B2-\u12B5\u12B8-\u12BE\u12C0\u12C2-\u12C5\u12C8-\u12D6\u12D8-\u1310\u1312-\u1315\u1318-\u135A\u1380-\u138F\u13A0-\u13F5\u13F8-\u13FD\u1401-\u166C\u166F-\u167F\u1681-\u169A\u16A0-\u16EA\u16F1-\u16F8\u1700-\u1711\u171F-\u1731\u1740-\u1751\u1760-\u176C\u176E-\u1770\u1780-\u17B3\u17D7\u17DC\u1820-\u1878\u1880-\u1884\u1887-\u18A8\u18AA\u18B0-\u18F5\u1900-\u191E\u1950-\u196D\u1970-\u1974\u1980-\u19AB\u19B0-\u19C9\u1A00-\u1A16\u1A20-\u1A54\u1AA7\u1B05-\u1B33\u1B45-\u1B4C\u1B83-\u1BA0\u1BAE\u1BAF\u1BBA-\u1BE5\u1C00-\u1C23\u1C4D-\u1C4F\u1C5A-\u1C7D\u1C80-\u1C88\u1C90-\u1CBA\u1CBD-\u1CBF\u1CE9-\u1CEC\u1CEE-\u1CF3\u1CF5\u1CF6\u1CFA\u1D00-\u1DBF\u1E00-\u1F15\u1F18-\u1F1D\u1F20-\u1F45\u1F48-\u1F4D\u1F50-\u1F57\u1F59\u1F5B\u1F5D\u1F5F-\u1F7D\u1F80-\u1FB4\u1FB6-\u1FBC\u1FBE\u1FC2-\u1FC4\u1FC6-\u1FCC\u1FD0-\u1FD3\u1FD6-\u1FDB\u1FE0-\u1FEC\u1FF2-\u1FF4\u1FF6-\u1FFC\u2071\u207F\u2090-\u209C\u2102\u2107\u210A-\u2113\u2115\u2119-\u211D\u2124\u2126\u2128\u212A-\u212D\u212F-\u2139\u213C-\u213F\u2145-\u2149\u214E\u2183\u2184\u2C00-\u2CE4\u2CEB-\u2CEE\u2CF2\u2CF3\u2D00-\u2D25\u2D27\u2D2D\u2D30-\u2D67\u2D6F\u2D80-\u2D96\u2DA0-\u2DA6\u2DA8-\u2DAE\u2DB0-\u2DB6\u2DB8-\u2DBE\u2DC0-\u2DC6\u2DC8-\u2DCE\u2DD0-\u2DD6\u2DD8-\u2DDE\u2E2F\u3005\u3006\u3031-\u3035\u303B\u303C\u3041-\u3096\u309D-\u309F\u30A1-\u30FA\u30FC-\u30FF\u3105-\u312F\u3131-\u318E\u31A0-\u31BF\u31F0-\u31FF\u3400-\u4DBF\u4E00-\uA48C\uA4D0-\uA4FD\uA500-\uA60C\uA610-\uA61F\uA62A\uA62B\uA640-\uA66E\uA67F-\uA69D\uA6A0-\uA6E5\uA717-\uA71F\uA722-\uA788\uA78B-\uA7CA\uA7D0\uA7D1\uA7D3\uA7D5-\uA7D9\uA7F2-\uA801\uA803-\uA805\uA807-\uA80A\uA80C-\uA822\uA840-\uA873\uA882-\uA8B3\uA8F2-\uA8F7\uA8FB\uA8FD\uA8FE\uA90A-\uA925\uA930-\uA946\uA960-\uA97C\uA984-\uA9B2\uA9CF\uA9E0-\uA9E4\uA9E6-\uA9EF\uA9FA-\uA9FE\uAA00-\uAA28\uAA40-\uAA42\uAA44-\uAA4B\uAA60-\uAA76\uAA7A\uAA7E-\uAAAF\uAAB1\uAAB5\uAAB6\uAAB9-\uAABD\uAAC0\uAAC2\uAADB-\uAADD\uAAE0-\uAAEA\uAAF2-\uAAF4\uAB01-\uAB06\uAB09-\uAB0E\uAB11-\uAB16\uAB20-\uAB26\uAB28-\uAB2E\uAB30-\uAB5A\uAB5C-\uAB69\uAB70-\uABE2\uAC00-\uD7A3\uD7B0-\uD7C6\uD7CB-\uD7FB\uF900-\uFA6D\uFA70-\uFAD9\uFB00-\uFB06\uFB13-\uFB17\uFB1D\uFB1F-\uFB28\uFB2A-\uFB36\uFB38-\uFB3C\uFB3E\uFB40\uFB41\uFB43\uFB44\uFB46-\uFBB1\uFBD3-\uFD3D\uFD50-\uFD8F\uFD92-\uFDC7\uFDF0-\uFDFB\uFE70-\uFE74\uFE76-\uFEFC\uFF21-\uFF3A\uFF41-\uFF5A\uFF66-\uFFBE\uFFC2-\uFFC7\uFFCA-\uFFCF\uFFD2-\uFFD7\uFFDA-\uFFDC]|\uD800[\uDC00-\uDC0B\uDC0D-\uDC26\uDC28-\uDC3A\uDC3C\uDC3D\uDC3F-\uDC4D\uDC50-\uDC5D\uDC80-\uDCFA\uDE80-\uDE9C\uDEA0-\uDED0\uDF00-\uDF1F\uDF2D-\uDF40\uDF42-\uDF49\uDF50-\uDF75\uDF80-\uDF9D\uDFA0-\uDFC3\uDFC8-\uDFCF]|\uD801[\uDC00-\uDC9D\uDCB0-\uDCD3\uDCD8-\uDCFB\uDD00-\uDD27\uDD30-\uDD63\uDD70-\uDD7A\uDD7C-\uDD8A\uDD8C-\uDD92\uDD94\uDD95\uDD97-\uDDA1\uDDA3-\uDDB1\uDDB3-\uDDB9\uDDBB\uDDBC\uDE00-\uDF36\uDF40-\uDF55\uDF60-\uDF67\uDF80-\uDF85\uDF87-\uDFB0\uDFB2-\uDFBA]|\uD802[\uDC00-\uDC05\uDC08\uDC0A-\uDC35\uDC37\uDC38\uDC3C\uDC3F-\uDC55\uDC60-\uDC76\uDC80-\uDC9E\uDCE0-\uDCF2\uDCF4\uDCF5\uDD00-\uDD15\uDD20-\uDD39\uDD80-\uDDB7\uDDBE\uDDBF\uDE00\uDE10-\uDE13\uDE15-\uDE17\uDE19-\uDE35\uDE60-\uDE7C\uDE80-\uDE9C\uDEC0-\uDEC7\uDEC9-\uDEE4\uDF00-\uDF35\uDF40-\uDF55\uDF60-\uDF72\uDF80-\uDF91]|\uD803[\uDC00-\uDC48\uDC80-\uDCB2\uDCC0-\uDCF2\uDD00-\uDD23\uDE80-\uDEA9\uDEB0\uDEB1\uDF00-\uDF1C\uDF27\uDF30-\uDF45\uDF70-\uDF81\uDFB0-\uDFC4\uDFE0-\uDFF6]|\uD804[\uDC03-\uDC37\uDC71\uDC72\uDC75\uDC83-\uDCAF\uDCD0-\uDCE8\uDD03-\uDD26\uDD44\uDD47\uDD50-\uDD72\uDD76\uDD83-\uDDB2\uDDC1-\uDDC4\uDDDA\uDDDC\uDE00-\uDE11\uDE13-\uDE2B\uDE80-\uDE86\uDE88\uDE8A-\uDE8D\uDE8F-\uDE9D\uDE9F-\uDEA8\uDEB0-\uDEDE\uDF05-\uDF0C\uDF0F\uDF10\uDF13-\uDF28\uDF2A-\uDF30\uDF32\uDF33\uDF35-\uDF39\uDF3D\uDF50\uDF5D-\uDF61]|\uD805[\uDC00-\uDC34\uDC47-\uDC4A\uDC5F-\uDC61\uDC80-\uDCAF\uDCC4\uDCC5\uDCC7\uDD80-\uDDAE\uDDD8-\uDDDB\uDE00-\uDE2F\uDE44\uDE80-\uDEAA\uDEB8\uDF00-\uDF1A\uDF40-\uDF46]|\uD806[\uDC00-\uDC2B\uDCA0-\uDCDF\uDCFF-\uDD06\uDD09\uDD0C-\uDD13\uDD15\uDD16\uDD18-\uDD2F\uDD3F\uDD41\uDDA0-\uDDA7\uDDAA-\uDDD0\uDDE1\uDDE3\uDE00\uDE0B-\uDE32\uDE3A\uDE50\uDE5C-\uDE89\uDE9D\uDEB0-\uDEF8]|\uD807[\uDC00-\uDC08\uDC0A-\uDC2E\uDC40\uDC72-\uDC8F\uDD00-\uDD06\uDD08\uDD09\uDD0B-\uDD30\uDD46\uDD60-\uDD65\uDD67\uDD68\uDD6A-\uDD89\uDD98\uDEE0-\uDEF2\uDFB0]|\uD808[\uDC00-\uDF99]|\uD809[\uDC80-\uDD43]|\uD80B[\uDF90-\uDFF0]|[\uD80C\uD81C-\uD820\uD822\uD840-\uD868\uD86A-\uD86C\uD86F-\uD872\uD874-\uD879\uD880-\uD883][\uDC00-\uDFFF]|\uD80D[\uDC00-\uDC2E]|\uD811[\uDC00-\uDE46]|\uD81A[\uDC00-\uDE38\uDE40-\uDE5E\uDE70-\uDEBE\uDED0-\uDEED\uDF00-\uDF2F\uDF40-\uDF43\uDF63-\uDF77\uDF7D-\uDF8F]|\uD81B[\uDE40-\uDE7F\uDF00-\uDF4A\uDF50\uDF93-\uDF9F\uDFE0\uDFE1\uDFE3]|\uD821[\uDC00-\uDFF7]|\uD823[\uDC00-\uDCD5\uDD00-\uDD08]|\uD82B[\uDFF0-\uDFF3\uDFF5-\uDFFB\uDFFD\uDFFE]|\uD82C[\uDC00-\uDD22\uDD50-\uDD52\uDD64-\uDD67\uDD70-\uDEFB]|\uD82F[\uDC00-\uDC6A\uDC70-\uDC7C\uDC80-\uDC88\uDC90-\uDC99]|\uD835[\uDC00-\uDC54\uDC56-\uDC9C\uDC9E\uDC9F\uDCA2\uDCA5\uDCA6\uDCA9-\uDCAC\uDCAE-\uDCB9\uDCBB\uDCBD-\uDCC3\uDCC5-\uDD05\uDD07-\uDD0A\uDD0D-\uDD14\uDD16-\uDD1C\uDD1E-\uDD39\uDD3B-\uDD3E\uDD40-\uDD44\uDD46\uDD4A-\uDD50\uDD52-\uDEA5\uDEA8-\uDEC0\uDEC2-\uDEDA\uDEDC-\uDEFA\uDEFC-\uDF14\uDF16-\uDF34\uDF36-\uDF4E\uDF50-\uDF6E\uDF70-\uDF88\uDF8A-\uDFA8\uDFAA-\uDFC2\uDFC4-\uDFCB]|\uD837[\uDF00-\uDF1E]|\uD838[\uDD00-\uDD2C\uDD37-\uDD3D\uDD4E\uDE90-\uDEAD\uDEC0-\uDEEB]|\uD839[\uDFE0-\uDFE6\uDFE8-\uDFEB\uDFED\uDFEE\uDFF0-\uDFFE]|\uD83A[\uDC00-\uDCC4\uDD00-\uDD43\uDD4B]|\uD83B[\uDE00-\uDE03\uDE05-\uDE1F\uDE21\uDE22\uDE24\uDE27\uDE29-\uDE32\uDE34-\uDE37\uDE39\uDE3B\uDE42\uDE47\uDE49\uDE4B\uDE4D-\uDE4F\uDE51\uDE52\uDE54\uDE57\uDE59\uDE5B\uDE5D\uDE5F\uDE61\uDE62\uDE64\uDE67-\uDE6A\uDE6C-\uDE72\uDE74-\uDE77\uDE79-\uDE7C\uDE7E\uDE80-\uDE89\uDE8B-\uDE9B\uDEA1-\uDEA3\uDEA5-\uDEA9\uDEAB-\uDEBB]|\uD869[\uDC00-\uDEDF\uDF00-\uDFFF]|\uD86D[\uDC00-\uDF38\uDF40-\uDFFF]|\uD86E[\uDC00-\uDC1D\uDC20-\uDFFF]|\uD873[\uDC00-\uDEA1\uDEB0-\uDFFF]|\uD87A[\uDC00-\uDFE0]|\uD87E[\uDC00-\uDE1D]|\uD884[\uDC00-\uDF4A])\S*/g;let Co=(()=>{var x;class ie{transform(ee){if(null==ee)return null;if("string"!=typeof ee)throw qi();return ee.replace(Is,Re=>Re[0].toUpperCase()+Re.slice(1).toLowerCase())}}return(x=ie).\u0275fac=function(ee){return new(ee||x)},x.\u0275pipe=a.Yjl({name:"titlecase",type:x,pure:!0,standalone:!0}),ie})(),Mr=(()=>{var x;class ie{transform(ee){if(null==ee)return null;if("string"!=typeof ee)throw qi();return ee.toUpperCase()}}return(x=ie).\u0275fac=function(ee){return new(ee||x)},x.\u0275pipe=a.Yjl({name:"uppercase",type:x,pure:!0,standalone:!0}),ie})();const ii=new a.OlP("DATE_PIPE_DEFAULT_TIMEZONE"),or=new a.OlP("DATE_PIPE_DEFAULT_OPTIONS");let er=(()=>{var x;class ie{constructor(ee,Re,lt){this.locale=ee,this.defaultTimezone=Re,this.defaultOptions=lt}transform(ee,Re,lt,jt){var _n,zn;if(null==ee||""===ee||ee!=ee)return null;try{const Yn=Re??(null==(_n=this.defaultOptions)?void 0:_n.dateFormat)??"mediumDate",ui=lt??(null==(zn=this.defaultOptions)?void 0:zn.timezone)??this.defaultTimezone??void 0;return Ce(ee,Yn,jt||this.locale,ui)}catch(Yn){throw qi()}}}return(x=ie).\u0275fac=function(ee){return new(ee||x)(a.Y36(a.soG,16),a.Y36(ii,24),a.Y36(or,24))},x.\u0275pipe=a.Yjl({name:"date",type:x,pure:!0,standalone:!0}),ie})(),zo=(()=>{var x;class ie{constructor(ee){this.differs=ee,this.keyValues=[],this.compareFn=Ps}transform(ee,Re=Ps){if(!ee||!(ee instanceof Map)&&"object"!=typeof ee)return null;this.differ||(this.differ=this.differs.find(ee).create());const lt=this.differ.diff(ee),jt=Re!==this.compareFn;return lt&&(this.keyValues=[],lt.forEachItem(_n=>{this.keyValues.push(function yo(x,ie){return{key:x,value:ie}}(_n.key,_n.currentValue))})),(lt||jt)&&(this.keyValues.sort(Re),this.compareFn=Re),this.keyValues}}return(x=ie).\u0275fac=function(ee){return new(ee||x)(a.Y36(a.aQg,16))},x.\u0275pipe=a.Yjl({name:"keyvalue",type:x,pure:!1,standalone:!0}),ie})();function Ps(x,ie){const He=x.key,ee=ie.key;if(He===ee)return 0;if(void 0===He)return 1;if(void 0===ee)return-1;if(null===He)return 1;if(null===ee)return-1;if("string"==typeof He&&"string"==typeof ee)return He{var x;class ie{transform(ee,Re,lt){if(null==ee)return null;if(!this.supports(ee))throw qi();return ee.slice(Re,lt)}supports(ee){return"string"==typeof ee||Array.isArray(ee)}}return(x=ie).\u0275fac=function(ee){return new(ee||x)},x.\u0275pipe=a.Yjl({name:"slice",type:x,pure:!1,standalone:!0}),ie})(),Ur=(()=>{var x;class ie{}return(x=ie).\u0275fac=function(ee){return new(ee||x)},x.\u0275mod=a.oAB({type:x}),x.\u0275inj=a.cJS({}),ie})();const $i="browser",sr="server";function So(x){return x===$i}function tr(x){return x===sr}let Ao=(()=>{var x;class ie{}return(x=ie).\u0275prov=(0,a.Yz7)({token:x,providedIn:"root",factory:()=>new Ui((0,a.LFG)(p),window)}),ie})();class Ui{constructor(ie,He){this.document=ie,this.window=He,this.offset=()=>[0,0]}setOffset(ie){this.offset=Array.isArray(ie)?()=>ie:ie}getScrollPosition(){return this.supportsScrolling()?[this.window.pageXOffset,this.window.pageYOffset]:[0,0]}scrollToPosition(ie){this.supportsScrolling()&&this.window.scrollTo(ie[0],ie[1])}scrollToAnchor(ie){if(!this.supportsScrolling())return;const He=function ts(x,ie){const He=x.getElementById(ie)||x.getElementsByName(ie)[0];if(He)return He;if("function"==typeof x.createTreeWalker&&x.body&&"function"==typeof x.body.attachShadow){const ee=x.createTreeWalker(x.body,NodeFilter.SHOW_ELEMENT);let Re=ee.currentNode;for(;Re;){const lt=Re.shadowRoot;if(lt){const jt=lt.getElementById(ie)||lt.querySelector(`[name="${ie}"]`);if(jt)return jt}Re=ee.nextNode()}}return null}(this.document,ie);He&&(this.scrollToElement(He),He.focus())}setHistoryScrollRestoration(ie){this.supportsScrolling()&&(this.window.history.scrollRestoration=ie)}scrollToElement(ie){const He=ie.getBoundingClientRect(),ee=He.left+this.window.pageXOffset,Re=He.top+this.window.pageYOffset,lt=this.offset();this.window.scrollTo(ee-lt[0],Re-lt[1])}supportsScrolling(){try{return!!this.window&&!!this.window.scrollTo&&"pageXOffset"in this.window}catch{return!1}}}class Zr{}},69862:(Qe,he,s)=>{"use strict";s.d(he,{JF:()=>R,LE:()=>w,PD:()=>G,TP:()=>Pe,UA:()=>_t,WM:()=>g,eN:()=>Ze});var a=s(65879),r=s(49193),b=s(5253),A=s(54699),D=s(59724),p=s(97734),E=s(96124),f=s(11541),c=s(75222),C=s(96814);class m{}class _{}class g{constructor(Xe){this.normalizedNames=new Map,this.lazyUpdate=null,Xe?"string"==typeof Xe?this.lazyInit=()=>{this.headers=new Map,Xe.split("\n").forEach(Nt=>{const Tt=Nt.indexOf(":");if(Tt>0){const qt=Nt.slice(0,Tt),Yt=qt.toLowerCase(),fn=Nt.slice(Tt+1).trim();this.maybeSetNormalizedName(qt,Yt),this.headers.has(Yt)?this.headers.get(Yt).push(fn):this.headers.set(Yt,[fn])}})}:typeof Headers<"u"&&Xe instanceof Headers?(this.headers=new Map,Xe.forEach((Nt,Tt)=>{this.setHeaderEntries(Tt,Nt)})):this.lazyInit=()=>{this.headers=new Map,Object.entries(Xe).forEach(([Nt,Tt])=>{this.setHeaderEntries(Nt,Tt)})}:this.headers=new Map}has(Xe){return this.init(),this.headers.has(Xe.toLowerCase())}get(Xe){this.init();const Nt=this.headers.get(Xe.toLowerCase());return Nt&&Nt.length>0?Nt[0]:null}keys(){return this.init(),Array.from(this.normalizedNames.values())}getAll(Xe){return this.init(),this.headers.get(Xe.toLowerCase())||null}append(Xe,Nt){return this.clone({name:Xe,value:Nt,op:"a"})}set(Xe,Nt){return this.clone({name:Xe,value:Nt,op:"s"})}delete(Xe,Nt){return this.clone({name:Xe,value:Nt,op:"d"})}maybeSetNormalizedName(Xe,Nt){this.normalizedNames.has(Nt)||this.normalizedNames.set(Nt,Xe)}init(){this.lazyInit&&(this.lazyInit instanceof g?this.copyFrom(this.lazyInit):this.lazyInit(),this.lazyInit=null,this.lazyUpdate&&(this.lazyUpdate.forEach(Xe=>this.applyUpdate(Xe)),this.lazyUpdate=null))}copyFrom(Xe){Xe.init(),Array.from(Xe.headers.keys()).forEach(Nt=>{this.headers.set(Nt,Xe.headers.get(Nt)),this.normalizedNames.set(Nt,Xe.normalizedNames.get(Nt))})}clone(Xe){const Nt=new g;return Nt.lazyInit=this.lazyInit&&this.lazyInit instanceof g?this.lazyInit:this,Nt.lazyUpdate=(this.lazyUpdate||[]).concat([Xe]),Nt}applyUpdate(Xe){const Nt=Xe.name.toLowerCase();switch(Xe.op){case"a":case"s":let Tt=Xe.value;if("string"==typeof Tt&&(Tt=[Tt]),0===Tt.length)return;this.maybeSetNormalizedName(Xe.name,Nt);const qt=("a"===Xe.op?this.headers.get(Nt):void 0)||[];qt.push(...Tt),this.headers.set(Nt,qt);break;case"d":const Yt=Xe.value;if(Yt){let fn=this.headers.get(Nt);if(!fn)return;fn=fn.filter(dn=>-1===Yt.indexOf(dn)),0===fn.length?(this.headers.delete(Nt),this.normalizedNames.delete(Nt)):this.headers.set(Nt,fn)}else this.headers.delete(Nt),this.normalizedNames.delete(Nt)}}setHeaderEntries(Xe,Nt){const Tt=(Array.isArray(Nt)?Nt:[Nt]).map(Yt=>Yt.toString()),qt=Xe.toLowerCase();this.headers.set(qt,Tt),this.maybeSetNormalizedName(Xe,qt)}forEach(Xe){this.init(),Array.from(this.normalizedNames.keys()).forEach(Nt=>Xe(this.normalizedNames.get(Nt),this.headers.get(Nt)))}}class U{encodeKey(Xe){return K(Xe)}encodeValue(Xe){return K(Xe)}decodeKey(Xe){return decodeURIComponent(Xe)}decodeValue(Xe){return decodeURIComponent(Xe)}}const q=/%(\d[a-f0-9])/gi,j={40:"@","3A":":",24:"$","2C":",","3B":";","3D":"=","3F":"?","2F":"/"};function K(ut){return encodeURIComponent(ut).replace(q,(Xe,Nt)=>j[Nt]??Xe)}function L(ut){return`${ut}`}class w{constructor(Xe={}){if(this.updates=null,this.cloneFrom=null,this.encoder=Xe.encoder||new U,Xe.fromString){if(Xe.fromObject)throw new Error("Cannot specify both fromString and fromObject.");this.map=function d(ut,Xe){const Nt=new Map;return ut.length>0&&ut.replace(/^\?/,"").split("&").forEach(qt=>{const Yt=qt.indexOf("="),[fn,dn]=-1==Yt?[Xe.decodeKey(qt),""]:[Xe.decodeKey(qt.slice(0,Yt)),Xe.decodeValue(qt.slice(Yt+1))],en=Nt.get(fn)||[];en.push(dn),Nt.set(fn,en)}),Nt}(Xe.fromString,this.encoder)}else Xe.fromObject?(this.map=new Map,Object.keys(Xe.fromObject).forEach(Nt=>{const Tt=Xe.fromObject[Nt],qt=Array.isArray(Tt)?Tt.map(L):[L(Tt)];this.map.set(Nt,qt)})):this.map=null}has(Xe){return this.init(),this.map.has(Xe)}get(Xe){this.init();const Nt=this.map.get(Xe);return Nt?Nt[0]:null}getAll(Xe){return this.init(),this.map.get(Xe)||null}keys(){return this.init(),Array.from(this.map.keys())}append(Xe,Nt){return this.clone({param:Xe,value:Nt,op:"a"})}appendAll(Xe){const Nt=[];return Object.keys(Xe).forEach(Tt=>{const qt=Xe[Tt];Array.isArray(qt)?qt.forEach(Yt=>{Nt.push({param:Tt,value:Yt,op:"a"})}):Nt.push({param:Tt,value:qt,op:"a"})}),this.clone(Nt)}set(Xe,Nt){return this.clone({param:Xe,value:Nt,op:"s"})}delete(Xe,Nt){return this.clone({param:Xe,value:Nt,op:"d"})}toString(){return this.init(),this.keys().map(Xe=>{const Nt=this.encoder.encodeKey(Xe);return this.map.get(Xe).map(Tt=>Nt+"="+this.encoder.encodeValue(Tt)).join("&")}).filter(Xe=>""!==Xe).join("&")}clone(Xe){const Nt=new w({encoder:this.encoder});return Nt.cloneFrom=this.cloneFrom||this,Nt.updates=(this.updates||[]).concat(Xe),Nt}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 Nt=("a"===Xe.op?this.map.get(Xe.param):void 0)||[];Nt.push(L(Xe.value)),this.map.set(Xe.param,Nt);break;case"d":if(void 0===Xe.value){this.map.delete(Xe.param);break}{let Tt=this.map.get(Xe.param)||[];const qt=Tt.indexOf(L(Xe.value));-1!==qt&&Tt.splice(qt,1),Tt.length>0?this.map.set(Xe.param,Tt):this.map.delete(Xe.param)}}}),this.cloneFrom=this.updates=null)}}class X{constructor(){this.map=new Map}set(Xe,Nt){return this.map.set(Xe,Nt),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 re(ut){return typeof ArrayBuffer<"u"&&ut instanceof ArrayBuffer}function be(ut){return typeof Blob<"u"&&ut instanceof Blob}function pe(ut){return typeof FormData<"u"&&ut instanceof FormData}class Je{constructor(Xe,Nt,Tt,qt){let Yt;if(this.url=Nt,this.body=null,this.reportProgress=!1,this.withCredentials=!1,this.responseType="json",this.method=Xe.toUpperCase(),function de(ut){switch(ut){case"DELETE":case"GET":case"HEAD":case"OPTIONS":case"JSONP":return!1;default:return!0}}(this.method)||qt?(this.body=void 0!==Tt?Tt:null,Yt=qt):Yt=Tt,Yt&&(this.reportProgress=!!Yt.reportProgress,this.withCredentials=!!Yt.withCredentials,Yt.responseType&&(this.responseType=Yt.responseType),Yt.headers&&(this.headers=Yt.headers),Yt.context&&(this.context=Yt.context),Yt.params&&(this.params=Yt.params)),this.headers||(this.headers=new g),this.context||(this.context=new X),this.params){const fn=this.params.toString();if(0===fn.length)this.urlWithParams=Nt;else{const dn=Nt.indexOf("?");this.urlWithParams=Nt+(-1===dn?"?":dnwi.set(Ci,Xe.setHeaders[Ci]),en)),Xe.setParams&&(Tn=Object.keys(Xe.setParams).reduce((wi,Ci)=>wi.set(Ci,Xe.setParams[Ci]),Tn)),new Je(Nt,Tt,Yt,{params:Tn,headers:en,context:Ei,reportProgress:dn,responseType:qt,withCredentials:fn})}}var qe=function(ut){return ut[ut.Sent=0]="Sent",ut[ut.UploadProgress=1]="UploadProgress",ut[ut.ResponseHeader=2]="ResponseHeader",ut[ut.DownloadProgress=3]="DownloadProgress",ut[ut.Response=4]="Response",ut[ut.User=5]="User",ut}(qe||{});class it{constructor(Xe,Nt=200,Tt="OK"){this.headers=Xe.headers||new g,this.status=void 0!==Xe.status?Xe.status:Nt,this.statusText=Xe.statusText||Tt,this.url=Xe.url||null,this.ok=this.status>=200&&this.status<300}}class rt extends it{constructor(Xe={}){super(Xe),this.type=qe.ResponseHeader}clone(Xe={}){return new rt({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 tt extends it{constructor(Xe={}){super(Xe),this.type=qe.Response,this.body=void 0!==Xe.body?Xe.body:null}clone(Xe={}){return new tt({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 _t extends it{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 ze(ut,Xe){return{body:Xe,headers:ut.headers,context:ut.context,observe:ut.observe,params:ut.params,reportProgress:ut.reportProgress,responseType:ut.responseType,withCredentials:ut.withCredentials}}let Ze=(()=>{var ut;class Xe{constructor(Tt){this.handler=Tt}request(Tt,qt,Yt={}){let fn;if(Tt instanceof Je)fn=Tt;else{let Tn,Ei;Tn=Yt.headers instanceof g?Yt.headers:new g(Yt.headers),Yt.params&&(Ei=Yt.params instanceof w?Yt.params:new w({fromObject:Yt.params})),fn=new Je(Tt,qt,void 0!==Yt.body?Yt.body:null,{headers:Tn,context:Yt.context,params:Ei,reportProgress:Yt.reportProgress,responseType:Yt.responseType||"json",withCredentials:Yt.withCredentials})}const dn=(0,r.of)(fn).pipe((0,D.b)(Tn=>this.handler.handle(Tn)));if(Tt instanceof Je||"events"===Yt.observe)return dn;const en=dn.pipe((0,p.h)(Tn=>Tn instanceof tt));switch(Yt.observe||"body"){case"body":switch(fn.responseType){case"arraybuffer":return en.pipe((0,E.U)(Tn=>{if(null!==Tn.body&&!(Tn.body instanceof ArrayBuffer))throw new Error("Response is not an ArrayBuffer.");return Tn.body}));case"blob":return en.pipe((0,E.U)(Tn=>{if(null!==Tn.body&&!(Tn.body instanceof Blob))throw new Error("Response is not a Blob.");return Tn.body}));case"text":return en.pipe((0,E.U)(Tn=>{if(null!==Tn.body&&"string"!=typeof Tn.body)throw new Error("Response is not a string.");return Tn.body}));default:return en.pipe((0,E.U)(Tn=>Tn.body))}case"response":return en;default:throw new Error(`Unreachable: unhandled observe type ${Yt.observe}}`)}}delete(Tt,qt={}){return this.request("DELETE",Tt,qt)}get(Tt,qt={}){return this.request("GET",Tt,qt)}head(Tt,qt={}){return this.request("HEAD",Tt,qt)}jsonp(Tt,qt){return this.request("JSONP",Tt,{params:(new w).append(qt,"JSONP_CALLBACK"),observe:"body",responseType:"json"})}options(Tt,qt={}){return this.request("OPTIONS",Tt,qt)}patch(Tt,qt,Yt={}){return this.request("PATCH",Tt,ze(Yt,qt))}post(Tt,qt,Yt={}){return this.request("POST",Tt,ze(Yt,qt))}put(Tt,qt,Yt={}){return this.request("PUT",Tt,ze(Yt,qt))}}return(ut=Xe).\u0275fac=function(Tt){return new(Tt||ut)(a.LFG(m))},ut.\u0275prov=a.Yz7({token:ut,factory:ut.\u0275fac}),Xe})();function H(ut,Xe){return Xe(ut)}function Te(ut,Xe){return(Nt,Tt)=>Xe.intercept(Nt,{handle:qt=>ut(qt,Tt)})}const Pe=new a.OlP(""),dt=new a.OlP(""),Pt=new a.OlP("");function Qt(){let ut=null;return(Xe,Nt)=>{null===ut&&(ut=((0,a.f3M)(Pe,{optional:!0})??[]).reduceRight(Te,H));const Tt=(0,a.f3M)(a.HDt),qt=Tt.add();return ut(Xe,Nt).pipe((0,f.x)(()=>Tt.remove(qt)))}}let cn=(()=>{var ut;class Xe extends m{constructor(Tt,qt){super(),this.backend=Tt,this.injector=qt,this.chain=null,this.pendingTasks=(0,a.f3M)(a.HDt)}handle(Tt){if(null===this.chain){const Yt=Array.from(new Set([...this.injector.get(dt),...this.injector.get(Pt,[])]));this.chain=Yt.reduceRight((fn,dn)=>function Me(ut,Xe,Nt){return(Tt,qt)=>Nt.runInContext(()=>Xe(Tt,Yt=>ut(Yt,qt)))}(fn,dn,this.injector),H)}const qt=this.pendingTasks.add();return this.chain(Tt,Yt=>this.backend.handle(Yt)).pipe((0,f.x)(()=>this.pendingTasks.remove(qt)))}}return(ut=Xe).\u0275fac=function(Tt){return new(Tt||ut)(a.LFG(_),a.LFG(a.lqb))},ut.\u0275prov=a.Yz7({token:ut,factory:ut.\u0275fac}),Xe})();const ve=/^\)\]\}',?\n/;let at=(()=>{var ut;class Xe{constructor(Tt){this.xhrFactory=Tt}handle(Tt){if("JSONP"===Tt.method)throw new a.vHH(-2800,!1);const qt=this.xhrFactory;return(qt.\u0275loadImpl?(0,b.D)(qt.\u0275loadImpl()):(0,r.of)(null)).pipe((0,c.w)(()=>new A.y(fn=>{const dn=qt.build();if(dn.open(Tt.method,Tt.urlWithParams),Tt.withCredentials&&(dn.withCredentials=!0),Tt.headers.forEach((Qn,oi)=>dn.setRequestHeader(Qn,oi.join(","))),Tt.headers.has("Accept")||dn.setRequestHeader("Accept","application/json, text/plain, */*"),!Tt.headers.has("Content-Type")){const Qn=Tt.detectContentTypeHeader();null!==Qn&&dn.setRequestHeader("Content-Type",Qn)}if(Tt.responseType){const Qn=Tt.responseType.toLowerCase();dn.responseType="json"!==Qn?Qn:"text"}const en=Tt.serializeBody();let Tn=null;const Ei=()=>{if(null!==Tn)return Tn;const Qn=dn.statusText||"OK",oi=new g(dn.getAllResponseHeaders()),ji=function xe(ut){return"responseURL"in ut&&ut.responseURL?ut.responseURL:/^X-Request-URL:/m.test(ut.getAllResponseHeaders())?ut.getResponseHeader("X-Request-URL"):null}(dn)||Tt.url;return Tn=new rt({headers:oi,status:dn.status,statusText:Qn,url:ji}),Tn},wi=()=>{let{headers:Qn,status:oi,statusText:ji,url:Ki}=Ei(),qn=null;204!==oi&&(qn=typeof dn.response>"u"?dn.responseText:dn.response),0===oi&&(oi=qn?200:0);let Ai=oi>=200&&oi<300;if("json"===Tt.responseType&&"string"==typeof qn){const xi=qn;qn=qn.replace(ve,"");try{qn=""!==qn?JSON.parse(qn):null}catch(Fi){qn=xi,Ai&&(Ai=!1,qn={error:Fi,text:qn})}}Ai?(fn.next(new tt({body:qn,headers:Qn,status:oi,statusText:ji,url:Ki||void 0})),fn.complete()):fn.error(new _t({error:qn,headers:Qn,status:oi,statusText:ji,url:Ki||void 0}))},Ci=Qn=>{const{url:oi}=Ei(),ji=new _t({error:Qn,status:dn.status||0,statusText:dn.statusText||"Unknown Error",url:oi||void 0});fn.error(ji)};let Ii=!1;const zi=Qn=>{Ii||(fn.next(Ei()),Ii=!0);let oi={type:qe.DownloadProgress,loaded:Qn.loaded};Qn.lengthComputable&&(oi.total=Qn.total),"text"===Tt.responseType&&dn.responseText&&(oi.partialText=dn.responseText),fn.next(oi)},Ji=Qn=>{let oi={type:qe.UploadProgress,loaded:Qn.loaded};Qn.lengthComputable&&(oi.total=Qn.total),fn.next(oi)};return dn.addEventListener("load",wi),dn.addEventListener("error",Ci),dn.addEventListener("timeout",Ci),dn.addEventListener("abort",Ci),Tt.reportProgress&&(dn.addEventListener("progress",zi),null!==en&&dn.upload&&dn.upload.addEventListener("progress",Ji)),dn.send(en),fn.next({type:qe.Sent}),()=>{dn.removeEventListener("error",Ci),dn.removeEventListener("abort",Ci),dn.removeEventListener("load",wi),dn.removeEventListener("timeout",Ci),Tt.reportProgress&&(dn.removeEventListener("progress",zi),null!==en&&dn.upload&&dn.upload.removeEventListener("progress",Ji)),dn.readyState!==dn.DONE&&dn.abort()}})))}}return(ut=Xe).\u0275fac=function(Tt){return new(Tt||ut)(a.LFG(C.JF))},ut.\u0275prov=a.Yz7({token:ut,factory:ut.\u0275fac}),Xe})();const Ot=new a.OlP("XSRF_ENABLED"),Fe="XSRF-TOKEN",je=new a.OlP("XSRF_COOKIE_NAME",{providedIn:"root",factory:()=>Fe}),kt="X-XSRF-TOKEN",We=new a.OlP("XSRF_HEADER_NAME",{providedIn:"root",factory:()=>kt});class Ft{}let Kt=(()=>{var ut;class Xe{constructor(Tt,qt,Yt){this.doc=Tt,this.platform=qt,this.cookieName=Yt,this.lastCookieString="",this.lastToken=null,this.parseCount=0}getToken(){if("server"===this.platform)return null;const Tt=this.doc.cookie||"";return Tt!==this.lastCookieString&&(this.parseCount++,this.lastToken=(0,C.Mx)(Tt,this.cookieName),this.lastCookieString=Tt),this.lastToken}}return(ut=Xe).\u0275fac=function(Tt){return new(Tt||ut)(a.LFG(C.K0),a.LFG(a.Lbi),a.LFG(je))},ut.\u0275prov=a.Yz7({token:ut,factory:ut.\u0275fac}),Xe})();function xt(ut,Xe){const Nt=ut.url.toLowerCase();if(!(0,a.f3M)(Ot)||"GET"===ut.method||"HEAD"===ut.method||Nt.startsWith("http://")||Nt.startsWith("https://"))return Xe(ut);const Tt=(0,a.f3M)(Ft).getToken(),qt=(0,a.f3M)(We);return null!=Tt&&!ut.headers.has(qt)&&(ut=ut.clone({headers:ut.headers.set(qt,Tt)})),Xe(ut)}let Mt=(()=>{var ut;class Xe{constructor(Tt){this.injector=Tt}intercept(Tt,qt){return this.injector.runInContext(()=>xt(Tt,Yt=>qt.handle(Yt)))}}return(ut=Xe).\u0275fac=function(Tt){return new(Tt||ut)(a.LFG(a.lqb))},ut.\u0275prov=a.Yz7({token:ut,factory:ut.\u0275fac}),Xe})();var pt=function(ut){return ut[ut.Interceptors=0]="Interceptors",ut[ut.LegacyInterceptors=1]="LegacyInterceptors",ut[ut.CustomXsrfConfiguration=2]="CustomXsrfConfiguration",ut[ut.NoXsrfProtection=3]="NoXsrfProtection",ut[ut.JsonpSupport=4]="JsonpSupport",ut[ut.RequestsMadeViaParent=5]="RequestsMadeViaParent",ut[ut.Fetch=6]="Fetch",ut}(pt||{});function St(ut,Xe){return{\u0275kind:ut,\u0275providers:Xe}}function Zt(...ut){const Xe=[Ze,at,cn,{provide:m,useExisting:cn},{provide:_,useExisting:at},{provide:dt,useValue:xt,multi:!0},{provide:Ot,useValue:!0},{provide:Ft,useClass:Kt}];for(const Nt of ut)Xe.push(...Nt.\u0275providers);return(0,a.MR2)(Xe)}const Ee=new a.OlP("LEGACY_INTERCEPTOR_FN");function ye({cookieName:ut,headerName:Xe}){const Nt=[];return void 0!==ut&&Nt.push({provide:je,useValue:ut}),void 0!==Xe&&Nt.push({provide:We,useValue:Xe}),St(pt.CustomXsrfConfiguration,Nt)}let G=(()=>{var ut;class Xe{static disable(){return{ngModule:Xe,providers:[St(pt.NoXsrfProtection,[{provide:Ot,useValue:!1}]).\u0275providers]}}static withOptions(Tt={}){return{ngModule:Xe,providers:ye(Tt).\u0275providers}}}return(ut=Xe).\u0275fac=function(Tt){return new(Tt||ut)},ut.\u0275mod=a.oAB({type:ut}),ut.\u0275inj=a.cJS({providers:[Mt,{provide:Pe,useExisting:Mt,multi:!0},{provide:Ft,useClass:Kt},ye({cookieName:Fe,headerName:kt}).\u0275providers,{provide:Ot,useValue:!0}]}),Xe})(),R=(()=>{var ut;class Xe{}return(ut=Xe).\u0275fac=function(Tt){return new(Tt||ut)},ut.\u0275mod=a.oAB({type:ut}),ut.\u0275inj=a.cJS({providers:[Zt(St(pt.LegacyInterceptors,[{provide:Ee,useFactory:Qt},{provide:dt,useExisting:Ee,multi:!0}]))]}),Xe})()},65879:(Qe,he,s)=>{"use strict";s.d(he,{$8M:()=>ou,$WT:()=>xr,$Z:()=>kf,AFp:()=>nf,ALo:()=>ZO,AaK:()=>_,AsE:()=>pm,B6R:()=>hs,BQk:()=>qf,CHM:()=>di,CRH:()=>_C,DdM:()=>kO,Dn7:()=>QO,EJc:()=>Cb,EiD:()=>o_,EpF:()=>aM,F$t:()=>hM,F4k:()=>lM,FYo:()=>df,FiY:()=>Kl,G48:()=>o0,Gf:()=>uC,GfV:()=>hf,GkF:()=>im,Gpc:()=>U,Gre:()=>KM,HDt:()=>xC,Hsn:()=>fM,Ikx:()=>Em,JOm:()=>Tc,JVY:()=>Vg,JZr:()=>L,Jf7:()=>Xu,KtG:()=>wl,L6k:()=>Wg,LAX:()=>Hg,LFG:()=>ht,LSH:()=>nc,Lbi:()=>h_,Lck:()=>fS,MAs:()=>rM,MGl:()=>eg,MMx:()=>IO,MR2:()=>l_,N_p:()=>Sm,NdJ:()=>om,O4$:()=>W,Ojb:()=>f_,OlP:()=>je,Oqu:()=>gm,P3R:()=>Zh,PXZ:()=>Yb,Q6J:()=>em,QGY:()=>rm,QbO:()=>Vc,Qsj:()=>Ep,R0b:()=>lo,RDi:()=>kg,Rgc:()=>J_,SBq:()=>Hc,SDv:()=>yO,Sil:()=>Sb,Suo:()=>dC,TTD:()=>Un,TgZ:()=>Yf,Udp:()=>_m,VKq:()=>$O,VuI:()=>L0,W1O:()=>pC,WFA:()=>sm,WLB:()=>UO,XFs:()=>gt,Xpm:()=>wr,Xq5:()=>zE,Xts:()=>zc,Y36:()=>dc,YKP:()=>DO,YNc:()=>tM,Yjl:()=>uo,Yz7:()=>Pe,Z0I:()=>cn,ZZ4:()=>qm,_Bn:()=>AO,_UZ:()=>nm,_Vd:()=>ao,_c5:()=>C0,_uU:()=>xM,aQg:()=>eE,c2e:()=>wC,cJS:()=>Pt,cg1:()=>Om,d8E:()=>Mm,dDg:()=>jb,dqk:()=>at,eBb:()=>jg,eFA:()=>WC,eJc:()=>$m,ekj:()=>hm,eoX:()=>GC,f3M:()=>Wt,g9A:()=>rf,h0i:()=>Jc,hGG:()=>v0,hYB:()=>lm,hij:()=>ig,iGM:()=>cC,ifc:()=>fn,ip1:()=>LC,jDz:()=>PO,kEZ:()=>BO,kL8:()=>qM,kcU:()=>Ue,l5B:()=>GO,lG2:()=>Mr,lcZ:()=>XO,lnq:()=>mm,lqb:()=>pa,lri:()=>UC,mCW:()=>ku,n5z:()=>yd,n_E:()=>lg,oAB:()=>Go,oJD:()=>jh,oxw:()=>_M,pB0:()=>Zg,q3G:()=>Cl,qFp:()=>x0,qLn:()=>Ja,qOj:()=>jp,qZA:()=>Qf,qbA:()=>zO,qzn:()=>tc,rWj:()=>BC,rg0:()=>lt,s9C:()=>am,sBO:()=>s0,s_b:()=>dg,soG:()=>hg,tHW:()=>ym,tb:()=>Hm,tp0:()=>yc,uIk:()=>Zp,vHH:()=>w,vpe:()=>ma,wAp:()=>ud,xi3:()=>YO,xp6:()=>xf,ynx:()=>Jf,z2F:()=>fd,z3N:()=>Na,zSh:()=>ga,zs3:()=>Us});var a=s(72079),r=s(7902),b=s(54699),A=s(47354),D=s(45125),p=s(49193),E=s(25705),f=s(75222),c=s(32068);function C(e){for(let t in e)if(e[t]===C)return t;throw Error("Could not find renamed property on target object.")}function m(e,t){for(const n in t)t.hasOwnProperty(n)&&!e.hasOwnProperty(n)&&(e[n]=t[n])}function _(e){if("string"==typeof e)return e;if(Array.isArray(e))return"["+e.map(_).join(", ")+"]";if(null==e)return""+e;if(e.overriddenName)return`${e.overriddenName}`;if(e.name)return`${e.name}`;const t=e.toString();if(null==t)return""+t;const n=t.indexOf("\n");return-1===n?t:t.substring(0,n)}function g(e,t){return null==e||""===e?null===t?"":t:null==t||""===t?e:e+" "+t}const P=C({__forward_ref__:C});function U(e){return e.__forward_ref__=U,e.toString=function(){return _(this())},e}function d(e){return q(e)?e():e}function q(e){return"function"==typeof e&&e.hasOwnProperty(P)&&e.__forward_ref__===U}function j(e){return e&&!!e.\u0275providers}const L="https://g.co/ng/security#xss";class w extends Error{constructor(t,n){super(function k(e,t){return`NG0${Math.abs(e)}${t?": "+t:""}`}(t,n)),this.code=t}}function X(e){return"string"==typeof e?e:null==e?"":String(e)}function $e(e,t){throw new w(-201,!1)}function _e(e,t,n,i){throw new Error(`ASSERTION ERROR: ${e}`+(null==i?"":` [Expected=> ${n} ${i} ${t} <=Actual]`))}function Pe(e){return{token:e.token,providedIn:e.providedIn||null,factory:e.factory,value:void 0}}function Pt(e){return{providers:e.providers||[],imports:e.imports||[]}}function Qt(e){return Ie(e,Ve)||Ie(e,Ut)}function cn(e){return null!==Qt(e)}function Ie(e,t){return e.hasOwnProperty(t)?e[t]:null}function ce(e){return e&&(e.hasOwnProperty(mt)||e.hasOwnProperty(Bt))?e[mt]:null}const Ve=C({\u0275prov:C}),mt=C({\u0275inj:C}),Ut=C({ngInjectableDef:C}),Bt=C({ngInjectorDef:C});var gt=function(e){return e[e.Default=0]="Default",e[e.Host=1]="Host",e[e.Self=2]="Self",e[e.SkipSelf=4]="SkipSelf",e[e.Optional=8]="Optional",e}(gt||{});let nt;function Ce(e){const t=nt;return nt=e,t}function ve(e,t,n){const i=Qt(e);return i&&"root"==i.providedIn?void 0===i.value?i.value=i.factory():i.value:n>.Optional?null:void 0!==t?t:void $e(_(e))}const at=globalThis;class je{constructor(t,n){this._desc=t,this.ngMetadataName="InjectionToken",this.\u0275prov=void 0,"number"==typeof n?this.__NG_ELEMENT_ID__=n:void 0!==n&&(this.\u0275prov=Pe({token:this,providedIn:n.providedIn||"root",factory:n.factory}))}get multi(){return this}toString(){return`InjectionToken ${this._desc}`}}const vt={},ye="__NG_DI_FLAG__",we="ngTempTokenPath",T=/\n/gm,G="__source";let R;function le(e){const t=R;return R=e,t}function ke(e,t=gt.Default){if(void 0===R)throw new w(-203,!1);return null===R?ve(e,void 0,t):R.get(e,t>.Optional?null:void 0,t)}function ht(e,t=gt.Default){return(function oe(){return nt}()||ke)(d(e),t)}function Wt(e,t=gt.Default){return ht(e,mn(t))}function mn(e){return typeof e>"u"||"number"==typeof e?e:0|(e.optional&&8)|(e.host&&1)|(e.self&&2)|(e.skipSelf&&4)}function wn(e){const t=[];for(let n=0;nt){O=h-1;break}}}for(;hh?"":l[Ke+1].toLowerCase();const Lt=8&i?Et:null;if(Lt&&-1!==Qn(Lt,ue,0)||2&i&&ue!==Et){if(Ri(i))return!1;O=!0}}}}else{if(!O&&!Ri(i)&&!Ri(B))return!1;if(O&&Ri(B))continue;O=!1,i=B|1&i}}return Ri(i)||O}function Ri(e){return 0==(1&e)}function jr(e,t,n,i){if(null===t)return-1;let l=0;if(i||!n){let h=!1;for(;l-1)for(n++;n0?'="'+I+'"':"")+"]"}else 8&i?l+="."+O:4&i&&(l+=" "+O);else""!==l&&!Ri(O)&&(t+=Mo(h,l),l=""),i=O,h=h||!Ri(i);n++}return""!==l&&(t+=Mo(h,l)),t}function wr(e){return qt(()=>{const t=ta(e),n={...t,decls:e.decls,vars:e.vars,template:e.template,consts:e.consts||null,ngContentSelectors:e.ngContentSelectors,onPush:e.changeDetection===Yt.OnPush,directiveDefs:null,pipeDefs:null,dependencies:t.standalone&&e.dependencies||null,getStandaloneInjector:null,signals:e.signals??!1,data:e.data||{},encapsulation:e.encapsulation||fn.Emulated,styles:e.styles||en,_:null,schemas:e.schemas||null,tView:null,id:""};vo(n);const i=e.dependencies;return n.directiveDefs=yo(i,!1),n.pipeDefs=yo(i,!0),n.id=function Ps(e){let t=0;const n=[e.selectors,e.ngContentSelectors,e.hostVars,e.hostAttrs,e.consts,e.vars,e.decls,e.encapsulation,e.standalone,e.signals,e.exportAs,JSON.stringify(e.inputs),JSON.stringify(e.outputs),Object.getOwnPropertyNames(e.type.prototype),!!e.contentQueries,!!e.viewQuery].join("|");for(const l of n)t=Math.imul(31,t)+l.charCodeAt(0)<<0;return t+=2147483648,"c"+t}(n),n})}function hs(e,t,n){const i=e.\u0275cmp;i.directiveDefs=yo(t,!1),i.pipeDefs=yo(n,!0)}function On(e){return ii(e)||or(e)}function Ts(e){return null!==e}function Go(e){return qt(()=>({type:e.type,bootstrap:e.bootstrap||en,declarations:e.declarations||en,imports:e.imports||en,exports:e.exports||en,transitiveCompileScopes:null,schemas:e.schemas||null,id:e.id||null}))}function Co(e,t){if(null==e)return dn;const n={};for(const i in e)if(e.hasOwnProperty(i)){let l=e[i],h=l;Array.isArray(l)&&(h=l[1],l=l[0]),n[l]=i,t&&(t[l]=h)}return n}function Mr(e){return qt(()=>{const t=ta(e);return vo(t),t})}function uo(e){return{type:e.type,name:e.name,factory:null,pure:!1!==e.pure,standalone:!0===e.standalone,onDestroy:e.type.prototype.ngOnDestroy||null}}function ii(e){return e[Tn]||null}function or(e){return e[Ei]||null}function er(e){return e[wi]||null}function xr(e){const t=ii(e)||or(e)||er(e);return null!==t&&t.standalone}function ur(e,t){const n=e[Ci]||null;if(!n&&!0===t)throw new Error(`Type ${_(e)} does not have '\u0275mod' property.`);return n}function ta(e){const t={};return{type:e.type,providersResolver:null,factory:null,hostBindings:e.hostBindings||null,hostVars:e.hostVars||0,hostAttrs:e.hostAttrs||null,contentQueries:e.contentQueries||null,declaredInputs:t,inputTransforms:null,inputConfig:e.inputs||dn,exportAs:e.exportAs||null,standalone:!0===e.standalone,signals:!0===e.signals,selectors:e.selectors||en,viewQuery:e.viewQuery||null,features:e.features||null,setInput:null,findHostDirectiveDefs:null,hostDirectives:null,inputs:Co(e.inputs,t),outputs:Co(e.outputs)}}function vo(e){var t;null==(t=e.features)||t.forEach(n=>n(e))}function yo(e,t){if(!e)return null;const n=t?er:On;return()=>("function"==typeof e?e():e).map(i=>n(i)).filter(Ts)}const Pi=0,gn=1,$n=2,Nn=3,jn=4,_o=5,mr=6,Ur=7,$i=8,sr=9,ho=10,Dn=11,So=12,tr=13,bo=14,li=15,fs=16,Ao=17,Ui=18,ts=19,na=20,Zr=21,Fr=22,Zi=23,Xr=24,In=25,hr=1,fo=2,yr=7,Qr=9,Gn=11;function ar(e){return Array.isArray(e)&&"object"==typeof e[hr]}function Vi(e){return Array.isArray(e)&&!0===e[hr]}function ci(e){return 0!=(4&e.flags)}function ps(e){return e.componentOffset>-1}function Ns(e){return 1==(1&e.flags)}function fr(e){return!!e.template}function Do(e){return 0!=(512&e[$n])}function To(e,t){return e.hasOwnProperty(Ii)?e[Ii]:null}let lr=null,Fn=!1;function Di(e){const t=lr;return lr=e,t}const gr={version:0,dirty:!1,producerNode:void 0,producerLastReadVersion:void 0,producerIndexOfThis:void 0,nextProducerIndex:0,liveConsumerNode:void 0,liveConsumerIndexOfThis:void 0,consumerAllowSignalWrites:!1,consumerIsAlwaysLive:!1,producerMustRecompute:()=>!1,producerRecomputeValue:()=>{},consumerMarkedDirty:()=>{}};function ra(e){if(!po(e)||e.dirty){if(!e.producerMustRecompute(e)&&!Ho(e))return void(e.dirty=!1);e.producerRecomputeValue(e),e.dirty=!1}}function qr(e){var t;e.dirty=!0,function Jr(e){if(void 0===e.liveConsumerNode)return;const t=Fn;Fn=!0;try{for(const n of e.liveConsumerNode)n.dirty||qr(n)}finally{Fn=t}}(e),null==(t=e.consumerMarkedDirty)||t.call(e,e)}function Rs(e){return e&&(e.nextProducerIndex=0),Di(e)}function ns(e,t){if(Di(t),e&&void 0!==e.producerNode&&void 0!==e.producerIndexOfThis&&void 0!==e.producerLastReadVersion){if(po(e))for(let n=e.nextProducerIndex;ne.nextProducerIndex;)e.producerNode.pop(),e.producerLastReadVersion.pop(),e.producerIndexOfThis.pop()}}function Ho(e){It(e);for(let t=0;t0}function It(e){e.producerNode??(e.producerNode=[]),e.producerIndexOfThis??(e.producerIndexOfThis=[]),e.producerLastReadVersion??(e.producerLastReadVersion=[])}let sa=null;function lt(e){const t=Di(null);try{return e()}finally{Di(t)}}const _n=()=>{},zn=(()=>({...gr,consumerIsAlwaysLive:!0,consumerAllowSignalWrites:!1,consumerMarkedDirty:e=>{e.schedule(e.ref)},hasRun:!1,cleanupFn:_n}))();class ui{constructor(t,n,i){this.previousValue=t,this.currentValue=n,this.firstChange=i}isFirstChange(){return this.firstChange}}function Un(){return Gi}function Gi(e){return e.type.prototype.ngOnChanges&&(e.setInput=Xi),gi}function gi(){const e=eo(this),t=null==e?void 0:e.current;if(t){const n=e.previous;if(n===dn)e.previous=t;else for(let i in t)n[i]=t[i];e.current=null,this.ngOnChanges(t)}}function Xi(e,t,n,i){const l=this.declaredInputs[n],h=eo(e)||function No(e,t){return e[Br]=t}(e,{previous:dn,current:null}),O=h.current||(h.current={}),I=h.previous,B=I[l];O[l]=new ui(B&&B.currentValue,t,I===dn),e[i]=t}Un.ngInherit=!0;const Br="__ngSimpleChanges__";function eo(e){return e[Br]||null}const Ti=function(e,t,n){},Os="svg";function Mi(e){for(;Array.isArray(e);)e=e[Pi];return e}function la(e,t){return Mi(t[e])}function Gr(e,t){return Mi(t[e.index])}function gc(e,t){return e.data[t]}function ca(e,t){return e[t]}function pi(e,t){const n=t[e];return ar(n)?n:n[Pi]}function Dr(e,t){return null==t?null:e[t]}function Nl(e){e[Ao]=0}function Rl(e){1024&e[$n]||(e[$n]|=1024,sl(e,1))}function Ma(e){1024&e[$n]&&(e[$n]&=-1025,sl(e,-1))}function sl(e,t){let n=e[Nn];if(null===n)return;n[_o]+=t;let i=n;for(n=n[Nn];null!==n&&(1===t&&1===i[_o]||-1===t&&0===i[_o]);)n[_o]+=t,i=n,n=n[Nn]}const Ln={lFrame:Fs(null),bindingsEnabled:!0,skipHydrationRootTNode:null};function mc(){return Ln.bindingsEnabled}function da(){return null!==Ln.skipHydrationRootTNode}function tn(){return Ln.lFrame.lView}function Hn(){return Ln.lFrame.tView}function di(e){return Ln.lFrame.contextLView=e,e[$i]}function wl(e){return Ln.lFrame.contextLView=null,e}function Tr(){let e=xl();for(;null!==e&&64===e.type;)e=e.parent;return e}function xl(){return Ln.lFrame.currentTNode}function Zo(){const e=Ln.lFrame,t=e.currentTNode;return e.isParent?t:t.parent}function Xo(e,t){const n=Ln.lFrame;n.currentTNode=e,n.isParent=t}function ll(){return Ln.lFrame.isParent}function Fl(){Ln.lFrame.isParent=!1}function to(){const e=Ln.lFrame;let t=e.bindingRootIndex;return-1===t&&(t=e.bindingRootIndex=e.tView.bindingStartIndex),t}function xs(){return Ln.lFrame.bindingIndex}function $(){return Ln.lFrame.bindingIndex++}function Z(e){const t=Ln.lFrame,n=t.bindingIndex;return t.bindingIndex=t.bindingIndex+e,n}function te(e){Ln.lFrame.inI18n=e}function Se(e,t){const n=Ln.lFrame;n.bindingIndex=n.bindingRootIndex=e,Rt(t)}function Rt(e){Ln.lFrame.currentDirectiveIndex=e}function hn(e){const t=Ln.lFrame.currentDirectiveIndex;return-1===t?null:e[t]}function Vt(){return Ln.lFrame.currentQueryIndex}function yn(e){Ln.lFrame.currentQueryIndex=e}function si(e){const t=e[gn];return 2===t.type?t.declTNode:1===t.type?e[mr]:null}function Ni(e,t,n){if(n>.SkipSelf){let l=t,h=e;for(;!(l=l.parent,null!==l||n>.Host||(l=si(h),null===l||(h=h[bo],10&l.type))););if(null===l)return!1;t=l,e=h}const i=Ln.lFrame=zr();return i.currentTNode=t,i.lView=e,!0}function yi(e){const t=zr(),n=e[gn];Ln.lFrame=t,t.currentTNode=n.firstChild,t.lView=e,t.tView=n,t.contextLView=e,t.bindingIndex=n.bindingStartIndex,t.inI18n=!1}function zr(){const e=Ln.lFrame,t=null===e?null:e.child;return null===t?Fs(e):t}function Fs(e){const t={currentTNode:null,isParent:!0,lView:null,tView:null,selectedIndex:-1,contextLView:null,elementDepthCount:0,currentNamespace:null,currentDirectiveIndex:-1,bindingRootIndex:-1,bindingIndex:-1,currentQueryIndex:0,parent:e,child:null,inI18n:!1};return null!==e&&(e.child=t),t}function Hs(){const e=Ln.lFrame;return Ln.lFrame=e.parent,e.currentTNode=null,e.lView=null,e}const Zs=Hs;function Ba(){const e=Hs();e.isParent=!0,e.tView=null,e.selectedIndex=-1,e.contextLView=null,e.elementDepthCount=0,e.currentDirectiveIndex=-1,e.currentNamespace=null,e.bindingRootIndex=-1,e.bindingIndex=-1,e.currentQueryIndex=0}function M(){return Ln.lFrame.selectedIndex}function y(e){Ln.lFrame.selectedIndex=e}function v(){const e=Ln.lFrame;return gc(e.tView,e.selectedIndex)}function W(){Ln.lFrame.currentNamespace=Os}function Ue(){!function et(){Ln.lFrame.currentNamespace=null}()}let $t=!0;function ln(){return $t}function Jt(e){$t=e}function Rn(e,t){for(let n=t.directiveStart,i=t.directiveEnd;n=i)break}else t[B]<0&&(e[Ao]+=65536),(I>13>16&&(3&e[$n])===t&&(e[$n]+=8192,Cr(I,h)):Cr(I,h)}const dr=-1;class ss{constructor(t,n,i){this.factory=t,this.resolving=!1,this.canSeeViewProviders=n,this.injectImpl=i}}function _r(e){return e!==dr}function Ys(e){return 32767&e}function An(e,t){let n=function Sn(e){return e>>16}(e),i=t;for(;n>0;)i=i[bo],n--;return i}let kn=!0;function _i(e){const t=kn;return kn=e,t}const no=255,io=5;let Qs=0;const Si={};function cl(e,t){const n=vs(e,t);if(-1!==n)return n;const i=t[gn];i.firstCreatePass&&(e.injectorIndex=t.length,Pr(i.data,e),Pr(t,null),Pr(i.blueprint,null));const l=Vr(e,t),h=e.injectorIndex;if(_r(l)){const O=Ys(l),I=An(l,t),B=I[gn].data;for(let ue=0;ue<8;ue++)t[h+ue]=I[O+ue]|B[O+ue]}return t[h+8]=l,h}function Pr(e,t){e.push(0,0,0,0,0,0,0,0,t)}function vs(e,t){return-1===e.injectorIndex||e.parent&&e.parent.injectorIndex===e.injectorIndex||null===t[e.injectorIndex+8]?-1:e.injectorIndex}function Vr(e,t){if(e.parent&&-1!==e.parent.injectorIndex)return e.parent.injectorIndex;let n=0,i=null,l=t;for(;null!==l;){if(i=Oc(l),null===i)return dr;if(n++,l=l[bo],-1!==i.injectorIndex)return i.injectorIndex|n<<16}return dr}function Sa(e,t,n){!function ya(e,t,n){let i;"string"==typeof n?i=n.charCodeAt(0)||0:n.hasOwnProperty(zi)&&(i=n[zi]),null==i&&(i=n[zi]=Qs++);const l=i&no;t.data[e+(l>>io)]|=1<=0?t&no:vd:t}(n);if("function"==typeof h){if(!Ni(t,e,i))return i>.Host?md(l,0,i):iu(t,n,i,l);try{let O;if(O=h(i),null!=O||i>.Optional)return O;$e()}finally{Zs()}}else if("number"==typeof h){let O=null,I=vs(e,t),B=dr,ue=i>.Host?t[li][mr]:null;for((-1===I||i>.SkipSelf)&&(B=-1===I?Vr(e,t):t[I+8],B!==dr&&Od(i,!1)?(O=t[gn],I=Ys(B),t=An(B,t)):I=-1);-1!==I;){const me=t[gn];if(Bl(h,I,me.data)){const Ke=ru(I,t,n,O,i,ue);if(Ke!==Si)return Ke}B=t[I+8],B!==dr&&Od(i,t[gn].data[I+8]===ue)&&Bl(h,I,t)?(O=me,I=Ys(B),t=An(B,t)):I=-1}}return l}function ru(e,t,n,i,l,h){const O=t[gn],I=O.data[e+8],me=Ul(I,O,n,null==i?ps(I)&&kn:i!=O&&0!=(3&I.type),l>.Host&&h===I);return null!==me?ba(t,O,me,I):Si}function Ul(e,t,n,i,l){const h=e.providerIndexes,O=t.data,I=1048575&h,B=e.directiveStart,me=h>>20,Et=l?I+me:e.directiveEnd;for(let Lt=i?I:I+me;Lt=B&&Xt.type===n)return Lt}if(l){const Lt=O[B];if(Lt&&fr(Lt)&&Lt.type===n)return B}return null}function ba(e,t,n,i){let l=e[n];const h=t.data;if(function Yi(e){return e instanceof ss}(l)){const O=l;O.resolving&&function re(e,t){const n=t?`. Dependency path: ${t.join(" > ")} > ${e}`:"";throw new w(-200,`Circular dependency in DI detected for ${e}${n}`)}(function de(e){return"function"==typeof e?e.name||e.toString():"object"==typeof e&&null!=e&&"function"==typeof e.type?e.type.name||e.type.toString():X(e)}(h[n]));const I=_i(O.canSeeViewProviders);O.resolving=!0;const ue=O.injectImpl?Ce(O.injectImpl):null;Ni(e,i,gt.Default);try{l=e[n]=O.factory(void 0,h,e,i),t.firstCreatePass&&n>=i.directiveStart&&function Zn(e,t,n){const{ngOnChanges:i,ngOnInit:l,ngDoCheck:h}=t.type.prototype;if(i){const O=Gi(t);(n.preOrderHooks??(n.preOrderHooks=[])).push(e,O),(n.preOrderCheckHooks??(n.preOrderCheckHooks=[])).push(e,O)}l&&(n.preOrderHooks??(n.preOrderHooks=[])).push(0-e,l),h&&((n.preOrderHooks??(n.preOrderHooks=[])).push(e,h),(n.preOrderCheckHooks??(n.preOrderCheckHooks=[])).push(e,h))}(n,h[n],t)}finally{null!==ue&&Ce(ue),_i(I),O.resolving=!1,Zs()}}return l}function Bl(e,t,n){return!!(n[t+(e>>io)]&1<{const t=e.prototype.constructor,n=t[Ii]||Gl(t),i=Object.prototype;let l=Object.getPrototypeOf(e.prototype).constructor;for(;l&&l!==i;){const h=l[Ii]||Gl(l);if(h&&h!==n)return h;l=Object.getPrototypeOf(l)}return h=>new h})}function Gl(e){return q(e)?()=>{const t=Gl(d(e));return t&&t()}:To(e)}function Oc(e){const t=e[gn],n=t.type;return 2===n?t.declTNode:1===n?e[mr]:null}function ou(e){return function $l(e,t){if("class"===t)return e.classes;if("style"===t)return e.styles;const n=e.attrs;if(n){const i=n.length;let l=0;for(;l{const i=function za(e){return function(...n){if(e){const i=e(...n);for(const l in i)this[l]=i[l]}}}(t);function l(...h){if(this instanceof l)return i.apply(this,h),this;const O=new l(...h);return I.annotation=O,I;function I(B,ue,me){const Ke=B.hasOwnProperty(ei)?B[ei]:Object.defineProperty(B,ei,{value:[]})[ei];for(;Ke.length<=me;)Ke.push(null);return(Ke[me]=Ke[me]||[]).push(O),B}}return n&&(l.prototype=Object.create(n.prototype)),l.prototype.ngMetadataName=e,l.annotationCls=l,l})}function Ta(e,t){e.forEach(n=>Array.isArray(n)?Ta(n,t):t(n))}function vc(e,t,n){t>=e.length?e.push(n):e.splice(t,0,n)}function $s(e,t){return t>=e.length-1?e.pop():e.splice(t,1)[0]}function zl(e,t){const n=[];for(let i=0;i=0?e[1|i]=n:(i=~i,function Dd(e,t,n,i){let l=e.length;if(l==t)e.push(n,i);else if(1===l)e.push(i,e[0]),e[0]=n;else{for(l--,e.push(e[l-1],e[l]);l>t;)e[l]=e[l-2],l--;e[t]=n,e[t+1]=i}}(e,i,t,n)),i}function cu(e,t){const n=hl(e,t);if(n>=0)return e[1|n]}function hl(e,t){return function uu(e,t,n){let i=0,l=e.length>>n;for(;l!==i;){const h=i+(l-i>>1),O=e[h<t?l=h:i=h+1}return~(l<|^->||--!>|)/g,Cu="\u200b$1\u200b";const Zl=new Map;let _h=0;const Ic="__ngContext__";function oo(e,t){ar(t)?(e[Ic]=t[ts],function Xl(e){Zl.set(e[ts],e)}(t)):e[Ic]=t}let Du;function Lc(e,t){return Du(e,t)}function Jl(e){const t=e[Nn];return Vi(t)?t[Nn]:t}function Zd(e){return Eh(e[So])}function Dt(e){return Eh(e[jn])}function Eh(e){for(;null!==e&&!Vi(e);)e=e[jn];return e}function ql(e,t,n,i,l){if(null!=i){let h,O=!1;Vi(i)?h=i:ar(i)&&(O=!0,i=i[Pi]);const I=Mi(i);0===e&&null!==n?null==l?bh(t,n,I):El(t,n,I,l||null,!0):1===e&&null!==n?El(t,n,I,l||null,!0):2===e?function Lu(e,t,n){const i=Pu(e,t);i&&function Tg(e,t,n,i){e.removeChild(t,n,i)}(e,i,t,n)}(t,I,O):3===e&&t.destroyNode(I),null!=h&&function Ng(e,t,n,i,l){const h=n[yr];h!==Mi(n)&&ql(t,e,i,h,l);for(let I=Gn;It.replace(Fo,Cu))}(t))}function wc(e,t,n){return e.createElement(t,n)}function yh(e,t){const n=e[Qr],i=n.indexOf(t);Ma(t),n.splice(i,1)}function Iu(e,t){if(e.length<=Gn)return;const n=Gn+t,i=e[n];if(i){const l=i[fs];null!==l&&l!==e&&yh(l,i),t>0&&(e[n-1][jn]=i[jn]);const h=$s(e,Gn+t);!function Oh(e,t){Fc(e,t,t[Dn],2,null,null),t[Pi]=null,t[mr]=null}(i[gn],i);const O=h[Ui];null!==O&&O.detachView(h[gn]),i[Nn]=null,i[jn]=null,i[$n]&=-129}return i}function Yd(e,t){if(!(256&t[$n])){const n=t[Dn];t[Zi]&&oa(t[Zi]),t[Xr]&&oa(t[Xr]),n.destroyNode&&Fc(e,t,n,3,null,null),function Sg(e){let t=e[So];if(!t)return Qd(e[gn],e);for(;t;){let n=null;if(ar(t))n=t[So];else{const i=t[Gn];i&&(n=i)}if(!n){for(;t&&!t[jn]&&t!==e;)ar(t)&&Qd(t[gn],t),t=t[Nn];null===t&&(t=e),ar(t)&&Qd(t[gn],t),n=t&&t[jn]}t=n}}(t)}}function Qd(e,t){if(!(256&t[$n])){t[$n]&=-129,t[$n]|=256,function Dg(e,t){let n;if(null!=e&&null!=(n=e.destroyHooks))for(let i=0;i=0?i[O]():i[-O].unsubscribe(),h+=2}else n[h].call(i[n[h+1]]);null!==i&&(t[Ur]=null);const l=t[Zr];if(null!==l){t[Zr]=null;for(let h=0;h-1){const{encapsulation:h}=e.data[i.directiveStart+l];if(h===fn.None||h===fn.Emulated)return null}return Gr(i,n)}}function El(e,t,n,i,l){e.insertBefore(t,n,i,l)}function bh(e,t,n){e.appendChild(t,n)}function Jd(e,t,n,i,l){null!==i?El(e,t,n,i,l):bh(e,t,n)}function Pu(e,t){return e.parentNode(t)}function Nu(e,t,n){return Dh(e,t,n)}function Ah(e,t,n){return 40&e.type?Gr(e,n):null}let qd,wu,n_,xu,Dh=Ah;function Th(e,t){Dh=e,qd=t}function Ru(e,t,n,i){const l=cs(e,i,t),h=t[Dn],I=Nu(i.parent||t[mr],i,t);if(null!=l)if(Array.isArray(n))for(let B=0;Be,createScript:e=>e,createScriptURL:e=>e})}catch{}return wu}())?void 0:t.createHTML(e))||e}function kg(e){n_=e}function ec(){if(void 0!==n_)return n_;if(typeof document<"u")return document;throw new w(210,!1)}function Fu(){if(void 0===xu&&(xu=null,at.trustedTypes))try{xu=at.trustedTypes.createPolicy("angular#unsafe-bypass",{createHTML:e=>e,createScript:e=>e,createScriptURL:e=>e})}catch{}return xu}function wh(e){var t;return(null==(t=Fu())?void 0:t.createHTML(e))||e}function xh(e){var t;return(null==(t=Fu())?void 0:t.createScriptURL(e))||e}class Ol{constructor(t){this.changingThisBreaksApplicationSecurity=t}toString(){return`SafeValue must use [property]=binding: ${this.changingThisBreaksApplicationSecurity} (see ${L})`}}class $g extends Ol{getTypeName(){return"HTML"}}class Ug extends Ol{getTypeName(){return"Style"}}class Bg extends Ol{getTypeName(){return"Script"}}class Gg extends Ol{getTypeName(){return"URL"}}class zg extends Ol{getTypeName(){return"ResourceURL"}}function Na(e){return e instanceof Ol?e.changingThisBreaksApplicationSecurity:e}function tc(e,t){const n=function Kg(e){return e instanceof Ol&&e.getTypeName()||null}(e);if(null!=n&&n!==t){if("ResourceURL"===n&&"URL"===t)return!0;throw new Error(`Required a safe ${t}, got a ${n} (see ${L})`)}return n===t}function Vg(e){return new $g(e)}function Wg(e){return new Ug(e)}function jg(e){return new Bg(e)}function Hg(e){return new Gg(e)}function Zg(e){return new zg(e)}function Fh(e){const t=new $h(e);return function Xg(){try{return!!(new window.DOMParser).parseFromString(Ml(""),"text/html")}catch{return!1}}()?new kh(t):t}class kh{constructor(t){this.inertDocumentHelper=t}getInertBodyElement(t){t=""+t;try{const n=(new window.DOMParser).parseFromString(Ml(t),"text/html").body;return null===n?this.inertDocumentHelper.getInertBodyElement(t):(n.removeChild(n.firstChild),n)}catch{return null}}}class $h{constructor(t){this.defaultDoc=t,this.inertDocument=this.defaultDoc.implementation.createHTMLDocument("sanitization-inert")}getInertBodyElement(t){const n=this.inertDocument.createElement("template");return n.innerHTML=Ml(t),n}}const Yg=/^(?!javascript:)(?:[a-z0-9+.-]+:|[^&:\/?#]*(?:[\/?#]|$))/i;function ku(e){return(e=String(e)).match(Yg)?e:"unsafe:"+e}function Ra(e){const t={};for(const n of e.split(","))t[n]=!0;return t}function Ya(...e){const t={};for(const n of e)for(const i in n)n.hasOwnProperty(i)&&(t[i]=!0);return t}const Uh=Ra("area,br,col,hr,img,wbr"),Bh=Ra("colgroup,dd,dt,li,p,tbody,td,tfoot,th,thead,tr"),Gh=Ra("rp,rt"),i_=Ya(Uh,Ya(Bh,Ra("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")),Ya(Gh,Ra("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")),Ya(Gh,Bh)),r_=Ra("background,cite,href,itemtype,longdesc,poster,src,xlink:href"),zh=Ya(r_,Ra("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"),Ra("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")),$u=Ra("script,style,template");class Qg{constructor(){this.sanitizedSomething=!1,this.buf=[]}sanitizeChildren(t){let n=t.firstChild,i=!0;for(;n;)if(n.nodeType===Node.ELEMENT_NODE?i=this.startElement(n):n.nodeType===Node.TEXT_NODE?this.chars(n.nodeValue):this.sanitizedSomething=!0,i&&n.firstChild)n=n.firstChild;else for(;n;){n.nodeType===Node.ELEMENT_NODE&&this.endElement(n);let l=this.checkClobberedElement(n,n.nextSibling);if(l){n=l;break}n=this.checkClobberedElement(n,n.parentNode)}return this.buf.join("")}startElement(t){const n=t.nodeName.toLowerCase();if(!i_.hasOwnProperty(n))return this.sanitizedSomething=!0,!$u.hasOwnProperty(n);this.buf.push("<"),this.buf.push(n);const i=t.attributes;for(let l=0;l"),!0}endElement(t){const n=t.nodeName.toLowerCase();i_.hasOwnProperty(n)&&!Uh.hasOwnProperty(n)&&(this.buf.push(""))}chars(t){this.buf.push(Uu(t))}checkClobberedElement(t,n){if(n&&(t.compareDocumentPosition(n)&Node.DOCUMENT_POSITION_CONTAINED_BY)===Node.DOCUMENT_POSITION_CONTAINED_BY)throw new Error(`Failed to sanitize html because the element is clobbered: ${t.outerHTML}`);return n}}const Kh=/[\uD800-\uDBFF][\uDC00-\uDFFF]/g,Vh=/([^\#-~ |!])/g;function Uu(e){return e.replace(/&/g,"&").replace(Kh,function(t){return"&#"+(1024*(t.charCodeAt(0)-55296)+(t.charCodeAt(1)-56320)+65536)+";"}).replace(Vh,function(t){return"&#"+t.charCodeAt(0)+";"}).replace(//g,">")}let Uc;function o_(e,t){let n=null;try{Uc=Uc||Fh(e);let i=t?String(t):"";n=Uc.getInertBodyElement(i);let l=5,h=i;do{if(0===l)throw new Error("Failed to sanitize html because the input is unstable");l--,i=h,h=n.innerHTML,n=Uc.getInertBodyElement(i)}while(i!==h);return Ml((new Qg).sanitizeChildren(Bu(n)||n))}finally{if(n){const i=Bu(n)||n;for(;i.firstChild;)i.removeChild(i.firstChild)}}}function Bu(e){return"content"in e&&function Wh(e){return e.nodeType===Node.ELEMENT_NODE&&"TEMPLATE"===e.nodeName}(e)?e.content:null}var Cl=function(e){return e[e.NONE=0]="NONE",e[e.HTML=1]="HTML",e[e.STYLE=2]="STYLE",e[e.SCRIPT=3]="SCRIPT",e[e.URL=4]="URL",e[e.RESOURCE_URL=5]="RESOURCE_URL",e}(Cl||{});function jh(e){const t=Gc();return t?wh(t.sanitize(Cl.HTML,e)||""):tc(e,"HTML")?wh(Na(e)):o_(ec(),X(e))}function nc(e){const t=Gc();return t?t.sanitize(Cl.URL,e)||"":tc(e,"URL")?Na(e):ku(X(e))}function Bc(e){const t=Gc();if(t)return xh(t.sanitize(Cl.RESOURCE_URL,e)||"");if(tc(e,"ResourceURL"))return xh(Na(e));throw new w(904,!1)}function Zh(e,t,n){return function Hh(e,t){return"src"===t&&("embed"===e||"frame"===e||"iframe"===e||"media"===e||"script"===e)||"href"===t&&("base"===e||"link"===e)?Bc:nc}(t,n)(e)}function Gc(){const e=tn();return e&&e[ho].sanitizer}const zc=new je("ENVIRONMENT_INITIALIZER"),Xh=new je("INJECTOR",-1),Yh=new je("INJECTOR_DEF_TYPES");class a_{get(t,n=vt){if(n===vt){const i=new Error(`NullInjectorError: No provider for ${_(t)}!`);throw i.name="NullInjectorError",i}return n}}function l_(e){return{\u0275providers:e}}function tp(...e){return{\u0275providers:Qh(0,e),\u0275fromNgModule:!0}}function Qh(e,...t){const n=[],i=new Set;let l;const h=O=>{n.push(O)};return Ta(t,O=>{const I=O;us(I,h,[],i)&&(l||(l=[]),l.push(I))}),void 0!==l&&Jh(l,h),n}function Jh(e,t){for(let n=0;n{t(h,i)})}}function us(e,t,n,i){if(!(e=d(e)))return!1;let l=null,h=ce(e);const O=!h&&ii(e);if(h||O){if(O&&!O.standalone)return!1;l=e}else{const B=e.ngModule;if(h=ce(B),!h)return!1;l=B}const I=i.has(l);if(O){if(I)return!1;if(i.add(l),O.dependencies){const B="function"==typeof O.dependencies?O.dependencies():O.dependencies;for(const ue of B)us(ue,t,n,i)}}else{if(!h)return!1;{if(null!=h.imports&&!I){let ue;i.add(l);try{Ta(h.imports,me=>{us(me,t,n,i)&&(ue||(ue=[]),ue.push(me))})}finally{}void 0!==ue&&Jh(ue,t)}if(!I){const ue=To(l)||(()=>new l);t({provide:l,useFactory:ue,deps:en},l),t({provide:Yh,useValue:l,multi:!0},l),t({provide:zc,useValue:()=>ht(l),multi:!0},l)}const B=h.providers;if(null!=B&&!I){const ue=e;c_(B,me=>{t(me,ue)})}}}return l!==e&&void 0!==e.providers}function c_(e,t){for(let n of e)j(n)&&(n=n.\u0275providers),Array.isArray(n)?c_(n,t):t(n)}const vl=C({provide:String,useValue:C});function ti(e){return null!==e&&"object"==typeof e&&vl in e}function ir(e){return"function"==typeof e}const ga=new je("Set Injector scope."),Gu={},ip={};let u_;function zu(){return void 0===u_&&(u_=new a_),u_}class pa{}class Qa extends pa{get destroyed(){return this._destroyed}constructor(t,n,i,l){super(),this.parent=n,this.source=i,this.scopes=l,this.records=new Map,this._ngOnDestroyHooks=new Set,this._onDestroyHooks=[],this._destroyed=!1,__(t,O=>this.processProvider(O)),this.records.set(Xh,Qi(void 0,this)),l.has("environment")&&this.records.set(pa,Qi(void 0,this));const h=this.records.get(ga);null!=h&&"string"==typeof h.value&&this.scopes.add(h.value),this.injectorDefTypes=new Set(this.get(Yh.multi,en,gt.Self))}destroy(){this.assertNotDestroyed(),this._destroyed=!0;try{for(const n of this._ngOnDestroyHooks)n.ngOnDestroy();const t=this._onDestroyHooks;this._onDestroyHooks=[];for(const n of t)n()}finally{this.records.clear(),this._ngOnDestroyHooks.clear(),this.injectorDefTypes.clear()}}onDestroy(t){return this.assertNotDestroyed(),this._onDestroyHooks.push(t),()=>this.removeOnDestroy(t)}runInContext(t){this.assertNotDestroyed();const n=le(this),i=Ce(void 0);try{return t()}finally{le(n),Ce(i)}}get(t,n=vt,i=gt.Default){if(this.assertNotDestroyed(),t.hasOwnProperty(Ji))return t[Ji](this);i=mn(i);const h=le(this),O=Ce(void 0);try{if(!(i>.SkipSelf)){let B=this.records.get(t);if(void 0===B){const ue=function rp(e){return"function"==typeof e||"object"==typeof e&&e instanceof je}(t)&&Qt(t);B=ue&&this.injectableDefInScope(ue)?Qi(d_(t),Gu):null,this.records.set(t,B)}if(null!=B)return this.hydrate(t,B)}return(i>.Self?zu():this.parent).get(t,n=i>.Optional&&n===vt?null:n)}catch(I){if("NullInjectorError"===I.name){if((I[we]=I[we]||[]).unshift(_(t)),h)throw I;return function Nt(e,t,n,i){const l=e[we];throw t[G]&&l.unshift(t[G]),e.message=function Tt(e,t,n,i=null){e=e&&"\n"===e.charAt(0)&&"\u0275"==e.charAt(1)?e.slice(2):e;let l=_(t);if(Array.isArray(t))l=t.map(_).join(" -> ");else if("object"==typeof t){let h=[];for(let O in t)if(t.hasOwnProperty(O)){let I=t[O];h.push(O+":"+("string"==typeof I?JSON.stringify(I):_(I)))}l=`{${h.join(", ")}}`}return`${n}${i?"("+i+")":""}[${l}]: ${e.replace(T,"\n ")}`}("\n"+e.message,l,n,i),e.ngTokenPath=l,e[we]=null,e}(I,t,"R3InjectorError",this.source)}throw I}finally{Ce(O),le(h)}}resolveInjectorInitializers(){const t=le(this),n=Ce(void 0);try{const l=this.get(zc.multi,en,gt.Self);for(const h of l)h()}finally{le(t),Ce(n)}}toString(){const t=[],n=this.records;for(const i of n.keys())t.push(_(i));return`R3Injector[${t.join(", ")}]`}assertNotDestroyed(){if(this._destroyed)throw new w(205,!1)}processProvider(t){let n=ir(t=d(t))?t:d(t&&t.provide);const i=function ef(e){return ti(e)?Qi(void 0,e.useValue):Qi(Kc(e),Gu)}(t);if(ir(t)||!0!==t.multi)this.records.get(n);else{let l=this.records.get(n);l||(l=Qi(void 0,Gu,!0),l.factory=()=>wn(l.multi),this.records.set(n,l)),n=t,l.multi.push(t)}this.records.set(n,i)}hydrate(t,n){return n.value===Gu&&(n.value=ip,n.value=n.factory()),"object"==typeof n.value&&n.value&&function tf(e){return null!==e&&"object"==typeof e&&"function"==typeof e.ngOnDestroy}(n.value)&&this._ngOnDestroyHooks.add(n.value),n.value}injectableDefInScope(t){if(!t.providedIn)return!1;const n=d(t.providedIn);return"string"==typeof n?"any"===n||this.scopes.has(n):this.injectorDefTypes.has(n)}removeOnDestroy(t){const n=this._onDestroyHooks.indexOf(t);-1!==n&&this._onDestroyHooks.splice(n,1)}}function d_(e){const t=Qt(e),n=null!==t?t.factory:To(e);if(null!==n)return n;if(e instanceof je)throw new w(204,!1);if(e instanceof Function)return function La(e){const t=e.length;if(t>0)throw zl(t,"?"),new w(204,!1);const n=function ne(e){return e&&(e[Ve]||e[Ut])||null}(e);return null!==n?()=>n.factory(e):()=>new e}(e);throw new w(204,!1)}function Kc(e,t,n){let i;if(ir(e)){const l=d(e);return To(l)||d_(l)}if(ti(e))i=()=>d(e.useValue);else if(function qo(e){return!(!e||!e.useFactory)}(e))i=()=>e.useFactory(...wn(e.deps||[]));else if(function qh(e){return!(!e||!e.useExisting)}(e))i=()=>ht(d(e.useExisting));else{const l=d(e&&(e.useClass||e.provide));if(!function vr(e){return!!e.deps}(e))return To(l)||d_(l);i=()=>new l(...wn(e.deps))}return i}function Qi(e,t,n=!1){return{factory:e,value:t,multi:n?[]:void 0}}function __(e,t){for(const n of e)Array.isArray(n)?__(n,t):n&&j(n)?__(n.\u0275providers,t):t(n)}const nf=new je("AppId",{providedIn:"root",factory:()=>op}),op="ng",rf=new je("Platform Initializer"),h_=new je("Platform ID",{providedIn:"platform",factory:()=>"unknown"}),Vc=new je("AnimationModuleType"),f_=new je("CSP nonce",{providedIn:"root",factory:()=>{var e,t;return(null==(t=null==(e=ec().body)?void 0:e.querySelector("[ngCspNonce]"))?void 0:t.getAttribute("ngCspNonce"))||null}});let jc=(e,t,n)=>null;function E_(e,t,n=!1){return jc(e,t,n)}class gp{}class Hu{}class so{resolveComponentFactory(t){throw function pp(e){const t=Error(`No component factory found for ${_(e)}.`);return t.ngComponent=e,t}(t)}}let ao=(()=>{class t{}return t.NULL=new so,t})();function mp(){return ac(Tr(),tn())}function ac(e,t){return new Hc(Gr(e,t))}let Hc=(()=>{class t{constructor(i){this.nativeElement=i}}return t.__NG_ELEMENT_ID__=mp,t})();function uf(e){return e instanceof Hc?e.nativeElement:e}class df{}let Ep=(()=>{class t{constructor(){this.destroyNode=null}}return t.__NG_ELEMENT_ID__=()=>function Mp(){const e=tn(),n=pi(Tr().index,e);return(ar(n)?n:e)[Dn]}(),t})(),_f=(()=>{var e;class t{}return(e=t).\u0275prov=Pe({token:e,providedIn:"root",factory:()=>null}),t})();class hf{constructor(t){this.full=t,this.major=t.split(".")[0],this.minor=t.split(".")[1],this.patch=t.split(".").slice(2).join(".")}}const Op=new hf("16.2.11"),C_={};function mf(e,t=null,n=null,i){const l=v_(e,t,n,i);return l.resolveInjectorInitializers(),l}function v_(e,t=null,n=null,i,l=new Set){const h=[n||en,tp(e)];return i=i||("object"==typeof e?void 0:_(e)),new Qa(h,t||zu(),i||null,l)}let Us=(()=>{var e;class t{static create(i,l){if(Array.isArray(i))return mf({name:""},l,i,"");{const h=i.name??"";return mf({name:h},i.parent,i.providers,h)}}}return(e=t).THROW_IF_NOT_FOUND=vt,e.NULL=new a_,e.\u0275prov=Pe({token:e,providedIn:"any",factory:()=>ht(Xh)}),e.__NG_ELEMENT_ID__=-1,t})();function y_(e){return e.ngOriginalError}class Ja{constructor(){this._console=console}handleError(t){const n=this._findOriginalError(t);this._console.error("ERROR",t),n&&this._console.error("ORIGINAL ERROR",n)}_findOriginalError(t){let n=t&&y_(t);for(;n&&y_(n);)n=y_(n);return n||null}}function b_(e){return t=>{setTimeout(e,void 0,t)}}const ma=class Dp extends a.xQ{constructor(t=!1){super(),this.__isAsync=t}emit(t){super.next(t)}subscribe(t,n,i){var B,ue,me;let l=t,h=n||(()=>null),O=i;if(t&&"object"==typeof t){const Ke=t;l=null==(B=Ke.next)?void 0:B.bind(Ke),h=null==(ue=Ke.error)?void 0:ue.bind(Ke),O=null==(me=Ke.complete)?void 0:me.bind(Ke)}this.__isAsync&&(h=b_(h),l&&(l=b_(l)),O&&(O=b_(O)));const I=super.subscribe({next:l,error:h,complete:O});return t instanceof r.w&&t.add(I),I}};function Mf(...e){}class lo{constructor({enableLongStackTrace:t=!1,shouldCoalesceEventChangeDetection:n=!1,shouldCoalesceRunChangeDetection:i=!1}){if(this.hasPendingMacrotasks=!1,this.hasPendingMicrotasks=!1,this.isStable=!0,this.onUnstable=new ma(!1),this.onMicrotaskEmpty=new ma(!1),this.onStable=new ma(!1),this.onError=new ma(!1),typeof Zone>"u")throw new w(908,!1);Zone.assertZonePatched();const l=this;l._nesting=0,l._outer=l._inner=Zone.current,Zone.TaskTrackingZoneSpec&&(l._inner=l._inner.fork(new Zone.TaskTrackingZoneSpec)),t&&Zone.longStackTraceZoneSpec&&(l._inner=l._inner.fork(Zone.longStackTraceZoneSpec)),l.shouldCoalesceEventChangeDetection=!i&&n,l.shouldCoalesceRunChangeDetection=i,l.lastRequestAnimationFrameId=-1,l.nativeRequestAnimationFrame=function Tp(){const e="function"==typeof at.requestAnimationFrame;let t=at[e?"requestAnimationFrame":"setTimeout"],n=at[e?"cancelAnimationFrame":"clearTimeout"];if(typeof Zone<"u"&&t&&n){const i=t[Zone.__symbol__("OriginalDelegate")];i&&(t=i);const l=n[Zone.__symbol__("OriginalDelegate")];l&&(n=l)}return{nativeRequestAnimationFrame:t,nativeCancelAnimationFrame:n}}().nativeRequestAnimationFrame,function Np(e){const t=()=>{!function Pp(e){e.isCheckStableRunning||-1!==e.lastRequestAnimationFrameId||(e.lastRequestAnimationFrameId=e.nativeRequestAnimationFrame.call(at,()=>{e.fakeTopEventTask||(e.fakeTopEventTask=Zone.root.scheduleEventTask("fakeTopEventTask",()=>{e.lastRequestAnimationFrameId=-1,D_(e),e.isCheckStableRunning=!0,A_(e),e.isCheckStableRunning=!1},void 0,()=>{},()=>{})),e.fakeTopEventTask.invoke()}),D_(e))}(e)};e._inner=e._inner.fork({name:"angular",properties:{isAngularZone:!0},onInvokeTask:(n,i,l,h,O,I)=>{if(function Lp(e){var t;return!(!Array.isArray(e)||1!==e.length)&&!0===(null==(t=e[0].data)?void 0:t.__ignore_ng_zone__)}(I))return n.invokeTask(l,h,O,I);try{return Of(e),n.invokeTask(l,h,O,I)}finally{(e.shouldCoalesceEventChangeDetection&&"eventTask"===h.type||e.shouldCoalesceRunChangeDetection)&&t(),Cf(e)}},onInvoke:(n,i,l,h,O,I,B)=>{try{return Of(e),n.invoke(l,h,O,I,B)}finally{e.shouldCoalesceRunChangeDetection&&t(),Cf(e)}},onHasTask:(n,i,l,h)=>{n.hasTask(l,h),i===l&&("microTask"==h.change?(e._hasPendingMicrotasks=h.microTask,D_(e),A_(e)):"macroTask"==h.change&&(e.hasPendingMacrotasks=h.macroTask))},onHandleError:(n,i,l,h)=>(n.handleError(l,h),e.runOutsideAngular(()=>e.onError.emit(h)),!1)})}(l)}static isInAngularZone(){return typeof Zone<"u"&&!0===Zone.current.get("isAngularZone")}static assertInAngularZone(){if(!lo.isInAngularZone())throw new w(909,!1)}static assertNotInAngularZone(){if(lo.isInAngularZone())throw new w(909,!1)}run(t,n,i){return this._inner.run(t,n,i)}runTask(t,n,i,l){const h=this._inner,O=h.scheduleEventTask("NgZoneEvent: "+l,t,Ip,Mf,Mf);try{return h.runTask(O,n,i)}finally{h.cancelTask(O)}}runGuarded(t,n,i){return this._inner.runGuarded(t,n,i)}runOutsideAngular(t){return this._outer.run(t)}}const Ip={};function A_(e){if(0==e._nesting&&!e.hasPendingMicrotasks&&!e.isStable)try{e._nesting++,e.onMicrotaskEmpty.emit(null)}finally{if(e._nesting--,!e.hasPendingMicrotasks)try{e.runOutsideAngular(()=>e.onStable.emit(null))}finally{e.isStable=!0}}}function D_(e){e.hasPendingMicrotasks=!!(e._hasPendingMicrotasks||(e.shouldCoalesceEventChangeDetection||e.shouldCoalesceRunChangeDetection)&&-1!==e.lastRequestAnimationFrameId)}function Of(e){e._nesting++,e.isStable&&(e.isStable=!1,e.onUnstable.emit(null))}function Cf(e){e._nesting--,A_(e)}class Rp{constructor(){this.hasPendingMicrotasks=!1,this.hasPendingMacrotasks=!1,this.isStable=!0,this.onUnstable=new ma,this.onMicrotaskEmpty=new ma,this.onStable=new ma,this.onError=new ma}run(t,n,i){return t.apply(n,i)}runGuarded(t,n,i){return t.apply(n,i)}runOutsideAngular(t){return t()}runTask(t,n,i,l){return t.apply(n,i)}}const vf=new je("",{providedIn:"root",factory:yf});function yf(){const e=Wt(lo);let t=!0;const n=new b.y(l=>{t=e.isStable&&!e.hasPendingMacrotasks&&!e.hasPendingMicrotasks,e.runOutsideAngular(()=>{l.next(t),l.complete()})}),i=new b.y(l=>{let h;e.runOutsideAngular(()=>{h=e.onStable.subscribe(()=>{lo.assertNotInAngularZone(),queueMicrotask(()=>{!t&&!e.hasPendingMacrotasks&&!e.hasPendingMicrotasks&&(t=!0,l.next(!0))})})});const O=e.onUnstable.subscribe(()=>{lo.assertInAngularZone(),t&&(t=!1,e.runOutsideAngular(()=>{l.next(!1)}))});return()=>{h.unsubscribe(),O.unsubscribe()}});return(0,A.T)(n,i.pipe((0,E.B)()))}function Xu(e){return e.ownerDocument.defaultView}function wa(e){return e instanceof Function?e():e}let $o=(()=>{var e;class t{constructor(){this.renderDepth=0,this.handler=null}begin(){var i;null==(i=this.handler)||i.validateBegin(),this.renderDepth++}end(){var i;this.renderDepth--,0===this.renderDepth&&(null==(i=this.handler)||i.execute())}ngOnDestroy(){var i;null==(i=this.handler)||i.destroy(),this.handler=null}}return(e=t).\u0275prov=Pe({token:e,providedIn:"root",factory:()=>new e}),t})();function Sl(e){for(;e;){e[$n]|=64;const t=Jl(e);if(Do(e)&&!t)return e;e=t}return null}const Tf=new je("",{providedIn:"root",factory:()=>!1});let bl=null;function Qu(e,t){return e[t]??wf()}function Rf(e,t){var i;const n=wf();null!=(i=n.producerNode)&&i.length&&(e[t]=bl,n.lView=e,bl=Lf())}const Up={...gr,consumerIsAlwaysLive:!0,consumerMarkedDirty:e=>{Sl(e.lView)},lView:null};function Lf(){return Object.create(Up)}function wf(){return bl??(bl=Lf()),bl}const ri={};function xf(e){Ff(Hn(),tn(),M()+e,!1)}function Ff(e,t,n,i){if(!i)if(3==(3&t[$n])){const h=e.preOrderCheckHooks;null!==h&&pn(t,h,n)}else{const h=e.preOrderHooks;null!==h&&Bn(t,h,0,n)}y(n)}function dc(e,t=gt.Default){const n=tn();return null===n?ht(e,t):Mc(Tr(),n,d(e),t)}function kf(){throw new Error("invalid")}function Ju(e,t,n,i,l,h,O,I,B,ue,me){const Ke=t.blueprint.slice();return Ke[Pi]=l,Ke[$n]=140|i,(null!==ue||e&&2048&e[$n])&&(Ke[$n]|=2048),Nl(Ke),Ke[Nn]=Ke[bo]=e,Ke[$i]=n,Ke[ho]=O||e&&e[ho],Ke[Dn]=I||e&&e[Dn],Ke[sr]=B||e&&e[sr]||null,Ke[mr]=h,Ke[ts]=function hh(){return _h++}(),Ke[Fr]=me,Ke[na]=ue,Ke[li]=2==t.type?e[li]:Ke,Ke}function _c(e,t,n,i,l){let h=e.data[t];if(null===h)h=R_(e,t,n,i,l),function F(){return Ln.lFrame.inI18n}()&&(h.flags|=32);else if(64&h.type){h.type=n,h.value=i,h.attrs=l;const O=Zo();h.injectorIndex=null===O?-1:O.injectorIndex}return Xo(h,!0),h}function R_(e,t,n,i,l){const h=xl(),O=ll(),B=e.data[t]=function ct(e,t,n,i,l,h){let O=t?t.injectorIndex:-1,I=0;return da()&&(I|=128),{type:n,index:i,insertBeforeIndex:null,injectorIndex:O,directiveStart:-1,directiveEnd:-1,directiveStylingLast:-1,componentOffset:-1,propertyBindings:null,flags:I,providerIndexes:0,value:l,attrs:h,mergedAttrs:null,localNames:null,initialInputs:void 0,inputs:null,outputs:null,tView:null,next:null,prev:null,projectionNext:null,child:null,parent:t,projection:null,styles:null,stylesWithoutHost:null,residualStyles:void 0,classes:null,classesWithoutHost:null,residualClasses:void 0,classBindings:0,styleBindings:0}}(0,O?h:h&&h.parent,n,t,i,l);return null===e.firstChild&&(e.firstChild=B),null!==h&&(O?null==h.child&&null!==B.parent&&(h.child=B):null===h.next&&(h.next=B,B.prev=h)),B}function Zc(e,t,n,i){if(0===n)return-1;const l=t.length;for(let h=0;hIn&&Ff(e,t,In,!1),Ti(I?2:0,l);const ue=I?h:null,me=Rs(ue);try{null!==ue&&(ue.dirty=!1),n(i,l)}finally{ns(ue,me)}}finally{I&&null===t[Zi]&&Rf(t,Zi),y(O),Ti(I?3:1,l)}}function L_(e,t,n){if(ci(t)){const i=Di(null);try{const h=t.directiveEnd;for(let O=t.directiveStart;Onull;function yt(e,t,n,i){for(let l in e)if(e.hasOwnProperty(l)){n=null===n?{}:n;const h=e[l];null===i?wt(n,t,l,h):i.hasOwnProperty(l)&&wt(n,t,i[l],h)}return n}function wt(e,t,n,i){e.hasOwnProperty(n)?e[n].push(t,i):e[n]=[t,i]}function rn(e,t,n,i,l,h,O,I){const B=Gr(t,n);let me,ue=t.inputs;!I&&null!=ue&&(me=ue[i])?(Vp(e,n,me,i,l),ps(t)&&function En(e,t){const n=pi(t,e);16&n[$n]||(n[$n]|=64)}(n,t.index)):3&t.type&&(i=function sn(e){return"class"===e?"className":"for"===e?"htmlFor":"formaction"===e?"formAction":"innerHtml"===e?"innerHTML":"readonly"===e?"readOnly":"tabindex"===e?"tabIndex":e}(i),l=null!=O?O(l,t.value||"",i):l,h.setProperty(B,i,l))}function ai(e,t,n,i){if(mc()){const l=null===i?null:{"":-1},h=function Rr(e,t){var h;const n=e.directiveRegistry;let i=null,l=null;if(n)for(let O=0;O0;){const n=e[--t];if("number"==typeof n&&n<0)return n}return 0})(O)!=I&&O.push(I),O.push(n,i,h)}}(e,t,i,Zc(e,n,l.hostVars,ri),l)}function qa(e,t,n,i,l,h){const O=Gr(e,t);!function zp(e,t,n,i,l,h,O){if(null==h)e.removeAttribute(t,l,n);else{const I=null==O?X(h):O(h,i||"",l);e.setAttribute(t,l,I,n)}}(t[Dn],O,h,e.value,n,i,l)}function C1(e,t,n,i,l,h){const O=h[t];if(null!==O)for(let I=0;I{var e;class t{constructor(){this.all=new Set,this.queue=new Map}create(i,l,h){const O=typeof Zone>"u"?null:Zone.current,I=function jt(e,t,n){const i=Object.create(zn);n&&(i.consumerAllowSignalWrites=!0),i.fn=e,i.schedule=t;const l=O=>{i.cleanupFn=O};return i.ref={notify:()=>qr(i),run:()=>{if(i.dirty=!1,i.hasRun&&!Ho(i))return;i.hasRun=!0;const O=Rs(i);try{i.cleanupFn(),i.cleanupFn=_n,i.fn(l)}finally{ns(i,O)}},cleanup:()=>i.cleanupFn()},i.ref}(i,me=>{this.all.has(me)&&this.queue.set(me,O)},h);let B;this.all.add(I),I.notify();const ue=()=>{I.cleanup(),null==B||B(),this.all.delete(I),this.queue.delete(I)};return B=null==l?void 0:l.onDestroy(ue),{destroy:ue}}flush(){if(0!==this.queue.size)for(const[i,l]of this.queue)this.queue.delete(i),l?l.run(()=>i.run()):i.run()}get isQueueEmpty(){return 0===this.queue.size}}return(e=t).\u0275prov=Pe({token:e,providedIn:"root",factory:()=>new e}),t})();function zf(e,t,n){let i=n?e.styles:null,l=n?e.classes:null,h=0;if(null!==t)for(let O=0;O0){LE(e,1);const l=n.components;null!==l&&xE(e,l,1)}}function xE(e,t,n){for(let i=0;i-1&&(Iu(t,i),$s(n,i))}this._attachedToViewContainer=!1}Yd(this._lView[gn],this._lView)}onDestroy(t){!function ws(e,t){if(256==(256&e[$n]))throw new w(911,!1);null===e[Zr]&&(e[Zr]=[]),e[Zr].push(t)}(this._lView,t)}markForCheck(){Sl(this._cdRefInjectingView||this._lView)}detach(){this._lView[$n]&=-129}reattach(){this._lView[$n]|=128}detectChanges(){Kf(this._lView[gn],this._lView,this.context)}checkNoChanges(){}attachToViewContainerRef(){if(this._appRef)throw new w(902,!1);this._attachedToViewContainer=!0}detachFromAppRef(){this._appRef=null,function yg(e,t){Fc(e,t,t[Dn],2,null,null)}(this._lView[gn],this._lView)}attachToAppRef(t){if(this._attachedToViewContainer)throw new w(902,!1);this._appRef=t}}class P1 extends $_{constructor(t){super(t),this._view=t}detectChanges(){const t=this._view;Kf(t[gn],t,t[$i],!1)}checkNoChanges(){}get context(){return null}}class FE extends ao{constructor(t){super(),this.ngModule=t}resolveComponentFactory(t){const n=ii(t);return new U_(n,this.ngModule)}}function kE(e){const t=[];for(let n in e)e.hasOwnProperty(n)&&t.push({propName:e[n],templateName:n});return t}class R1{constructor(t,n){this.injector=t,this.parentInjector=n}get(t,n,i){i=mn(i);const l=this.injector.get(t,C_,i);return l!==C_||n===C_?l:this.parentInjector.get(t,n,i)}}class U_ extends Hu{get inputs(){const t=this.componentDef,n=t.inputTransforms,i=kE(t.inputs);if(null!==n)for(const l of i)n.hasOwnProperty(l.propName)&&(l.transform=n[l.propName]);return i}get outputs(){return kE(this.componentDef.outputs)}constructor(t,n){super(),this.componentDef=t,this.ngModule=n,this.componentType=t.type,this.selector=function qi(e){return e.map(Oo).join(",")}(t.selectors),this.ngContentSelectors=t.ngContentSelectors?t.ngContentSelectors:[],this.isBoundToModule=!!n}create(t,n,i,l){let h=(l=l||this.ngModule)instanceof pa?l:null==l?void 0:l.injector;h&&null!==this.componentDef.getStandaloneInjector&&(h=this.componentDef.getStandaloneInjector(h)||h);const O=h?new R1(t,h):t,I=O.get(df,null);if(null===I)throw new w(407,!1);const Ke={rendererFactory:I,sanitizer:O.get(_f,null),effectManager:O.get(PE,null),afterRenderEventManager:O.get($o,null)},Et=I.createRenderer(null,this.componentDef),Lt=this.componentDef.selectors[0][0]||"div",Xt=i?function o(e,t,n,i){const h=i.get(Tf,!1)||n===fn.ShadowDom,O=e.selectRootElement(t,h);return function u(e){S(e)}(O),O}(Et,i,this.componentDef.encapsulation,O):wc(Et,Lt,function N1(e){const t=e.toLowerCase();return"svg"===t?Os:"math"===t?"math":null}(Lt)),xn=this.componentDef.signals?4608:this.componentDef.onPush?576:528;let an=null;null!==Xt&&(an=E_(Xt,O,!0));const ni=F_(0,null,null,1,0,null,null,null,null,null,null),hi=Ju(null,ni,null,xn,null,null,Ke,Et,O,null,an);let rr,zs;yi(hi);try{const Dl=this.componentDef;let gd,nE=null;Dl.findHostDirectiveDefs?(gd=[],nE=new Map,Dl.findHostDirectiveDefs(Dl,gd,nE),gd.push(Dl)):gd=[Dl];const F0=function w1(e,t){const n=e[gn],i=In;return e[i]=t,_c(n,i,2,"#host",null)}(hi,Xt),k0=function x1(e,t,n,i,l,h,O){const I=l[gn];!function F1(e,t,n,i){for(const l of e)t.mergedAttrs=qn(t.mergedAttrs,l.hostAttrs);null!==t.mergedAttrs&&(zf(t,t.mergedAttrs,!0),null!==n&&Lh(i,n,t))}(i,e,t,O);let B=null;null!==t&&(B=E_(t,l[sr]));const ue=h.rendererFactory.createRenderer(t,n);let me=16;n.signals?me=4096:n.onPush&&(me=64);const Ke=Ju(l,Uf(n),null,me,l[e.index],e,h,ue,null,null,B);return I.firstCreatePass&&As(I,e,i.length-1),Gf(l,Ke),l[e.index]=Ke}(F0,Xt,Dl,gd,hi,Ke,Et);zs=gc(ni,In),Xt&&function $1(e,t,n,i){if(i)oi(e,n,["ng-version",Op.full]);else{const{attrs:l,classes:h}=function Hr(e){const t=[],n=[];let i=1,l=2;for(;i0&&Rh(e,n,h.join(" "))}}(Et,Dl,Xt,i),void 0!==n&&function U1(e,t,n){const i=e.projection=[];for(let l=0;l=0;i--){const l=e[i];l.hostVars=t+=l.hostVars,l.hostAttrs=qn(l.hostAttrs,n=qn(n,l.hostAttrs))}}(i)}function Vf(e){return e===dn?{}:e===en?[]:e}function z1(e,t){const n=e.viewQuery;e.viewQuery=n?(i,l)=>{t(i,l),n(i,l)}:t}function K1(e,t){const n=e.contentQueries;e.contentQueries=n?(i,l,h)=>{t(i,l,h),n(i,l,h)}:t}function V1(e,t){const n=e.hostBindings;e.hostBindings=n?(i,l)=>{t(i,l),n(i,l)}:t}function zE(e){const t=e.inputConfig,n={};for(const i in t)if(t.hasOwnProperty(i)){const l=t[i];Array.isArray(l)&&l[2]&&(n[i]=l[2])}e.inputTransforms=n}function Wf(e){return!!Hp(e)&&(Array.isArray(e)||!(e instanceof Map)&&Symbol.iterator in e)}function Hp(e){return null!==e&&("function"==typeof e||"object"==typeof e)}function el(e,t,n){return e[t]=n}function B_(e,t){return e[t]}function ds(e,t,n){return!Object.is(e[t],n)&&(e[t]=n,!0)}function Xc(e,t,n,i){const l=ds(e,t,n);return ds(e,t+1,i)||l}function jf(e,t,n,i,l){const h=Xc(e,t,n,i);return ds(e,t+2,l)||h}function Ea(e,t,n,i,l,h){const O=Xc(e,t,n,i);return Xc(e,t+2,l,h)||O}function Zp(e,t,n,i){const l=tn();return ds(l,$(),t)&&(Hn(),qa(v(),l,e,t,n,i)),Zp}function ed(e,t,n,i){return ds(e,$(),n)?t+X(n)+i:ri}function td(e,t,n,i,l,h){const I=Xc(e,xs(),n,l);return Z(2),I?t+X(n)+i+X(l)+h:ri}function tM(e,t,n,i,l,h,O,I){const B=tn(),ue=Hn(),me=e+In,Ke=ue.firstCreatePass?function gv(e,t,n,i,l,h,O,I,B){const ue=t.consts,me=_c(t,e,4,O||null,Dr(ue,I));ai(t,n,me,Dr(ue,B)),Rn(t,me);const Ke=me.tView=F_(2,me,i,l,h,t.directiveRegistry,t.pipeRegistry,null,t.schemas,ue,null);return null!==t.queries&&(t.queries.template(t,me),Ke.queries=t.queries.embeddedTView(me)),me}(me,ue,B,t,n,i,l,h,O):ue.data[me];Xo(Ke,!1);const Et=nM(ue,B,Ke,e);ln()&&Ru(ue,B,Et,Ke),oo(Et,B),Gf(B,B[me]=SE(Et,B,Et,Ke)),Ns(Ke)&&w_(ue,B,Ke),null!=O&&x_(B,Ke,I)}let nM=function iM(e,t,n,i){return Jt(!0),t[Dn].createComment("")};function rM(e){return ca(function nu(){return Ln.lFrame.contextLView}(),In+e)}function em(e,t,n){const i=tn();return ds(i,$(),t)&&rn(Hn(),v(),i,e,t,i[Dn],n,!1),em}function tm(e,t,n,i,l){const O=l?"class":"style";Vp(e,n,t.inputs[O],O,i)}function Yf(e,t,n,i){const l=tn(),h=Hn(),O=In+e,I=l[Dn],B=h.firstCreatePass?function Mv(e,t,n,i,l,h){const O=t.consts,B=_c(t,e,2,i,Dr(O,l));return ai(t,n,B,Dr(O,h)),null!==B.attrs&&zf(B,B.attrs,!1),null!==B.mergedAttrs&&zf(B,B.mergedAttrs,!0),null!==t.queries&&t.queries.elementStart(t,B),B}(O,h,l,t,n,i):h.data[O],ue=oM(h,l,B,I,t,e);l[O]=ue;const me=Ns(B);return Xo(B,!0),Lh(I,ue,B),32!=(32&B.flags)&&ln()&&Ru(h,l,ue,B),0===function tu(){return Ln.lFrame.elementDepthCount}()&&oo(ue,l),function Ll(){Ln.lFrame.elementDepthCount++}(),me&&(w_(h,l,B),L_(h,B,l)),null!==i&&x_(l,B),Yf}function Qf(){let e=Tr();ll()?Fl():(e=e.parent,Xo(e,!1));const t=e;(function al(e){return Ln.skipHydrationRootTNode===e})(t)&&function _a(){Ln.skipHydrationRootTNode=null}(),function pc(){Ln.lFrame.elementDepthCount--}();const n=Hn();return n.firstCreatePass&&(Rn(n,e),ci(e)&&n.queries.elementEnd(e)),null!=t.classesWithoutHost&&function wo(e){return 0!=(8&e.flags)}(t)&&tm(n,t,tn(),t.classesWithoutHost,!0),null!=t.stylesWithoutHost&&function Xs(e){return 0!=(16&e.flags)}(t)&&tm(n,t,tn(),t.stylesWithoutHost,!1),Qf}function nm(e,t,n,i){return Yf(e,t,n,i),Qf(),nm}let oM=(e,t,n,i,l,h)=>(Jt(!0),wc(i,l,function At(){return Ln.lFrame.currentNamespace}()));function Jf(e,t,n){const i=tn(),l=Hn(),h=e+In,O=l.firstCreatePass?function vv(e,t,n,i,l){const h=t.consts,O=Dr(h,i),I=_c(t,e,8,"ng-container",O);return null!==O&&zf(I,O,!0),ai(t,n,I,Dr(h,l)),null!==t.queries&&t.queries.elementStart(t,I),I}(h,l,i,t,n):l.data[h];Xo(O,!0);const I=sM(l,i,O,e);return i[h]=I,ln()&&Ru(l,i,I,O),oo(I,i),Ns(O)&&(w_(l,i,O),L_(l,O,i)),null!=n&&x_(i,O),Jf}function qf(){let e=Tr();const t=Hn();return ll()?Fl():(e=e.parent,Xo(e,!1)),t.firstCreatePass&&(Rn(t,e),ci(e)&&t.queries.elementEnd(e)),qf}function im(e,t,n){return Jf(e,t,n),qf(),im}let sM=(e,t,n,i)=>(Jt(!0),Xd(t[Dn],""));function aM(){return tn()}function rm(e){return!!e&&"function"==typeof e.then}function lM(e){return!!e&&"function"==typeof e.subscribe}function om(e,t,n,i){const l=tn(),h=Hn(),O=Tr();return cM(h,l,l[Dn],O,e,t,i),om}function sm(e,t){const n=Tr(),i=tn(),l=Hn();return cM(l,i,TE(hn(l.data),n,i),n,e,t),sm}function cM(e,t,n,i,l,h,O){const I=Ns(i),ue=e.firstCreatePass&&DE(e),me=t[$i],Ke=AE(t);let Et=!0;if(3&i.type||O){const un=Gr(i,t),Mn=O?O(un):un,xn=Ke.length,an=O?hi=>O(Mi(hi[i.index])):i.index;let ni=null;if(!O&&I&&(ni=function bv(e,t,n,i){const l=e.cleanup;if(null!=l)for(let h=0;hB?I[B]:null}"string"==typeof O&&(h+=2)}return null}(e,t,l,i.index)),null!==ni)(ni.__ngLastListenerFn__||ni).__ngNextListenerFn__=h,ni.__ngLastListenerFn__=h,Et=!1;else{h=dM(i,t,me,h,!1);const hi=n.listen(Mn,l,h);Ke.push(h,hi),ue&&ue.push(l,an,xn,xn+1)}}else h=dM(i,t,me,h,!1);const Lt=i.outputs;let Xt;if(Et&&null!==Lt&&(Xt=Lt[l])){const un=Xt.length;if(un)for(let Mn=0;Mn-1?pi(e.index,t):t);let B=uM(t,n,i,O),ue=h.__ngNextListenerFn__;for(;ue;)B=uM(t,n,ue,O)&&B,ue=ue.__ngNextListenerFn__;return l&&!1===B&&O.preventDefault(),B}}function _M(e=1){return function kl(e){return(Ln.lFrame.contextLView=function z(e,t){for(;e>0;)t=t[bo],e--;return t}(e,Ln.lFrame.contextLView))[$i]}(e)}function Av(e,t){let n=null;const i=function bn(e){const t=e.attrs;if(null!=t){const n=t.indexOf(5);if(!(1&n))return t[n+1]}return null}(e);for(let l=0;l>17&32767}function cm(e){return 2|e}function Yc(e){return(131068&e)>>2}function um(e,t){return-131069&e|t<<2}function dm(e){return 1|e}function vM(e,t,n,i,l){const h=e[n+1],O=null===t;let I=i?hc(h):Yc(h),B=!1;for(;0!==I&&(!1===B||O);){const me=e[I+1];Rv(e[I],t)&&(B=!0,e[I+1]=i?dm(me):cm(me)),I=i?hc(me):Yc(me)}B&&(e[n+1]=i?cm(h):dm(h))}function Rv(e,t){return null===e||null==t||(Array.isArray(e)?e[1]:e)===t||!(!Array.isArray(e)||"string"!=typeof t)&&hl(e,t)>=0}const Eo={textEnd:0,key:0,keyEnd:0,value:0,valueEnd:0};function yM(e){return e.substring(Eo.key,Eo.keyEnd)}function SM(e,t){const n=Eo.textEnd;return n===t?-1:(t=Eo.keyEnd=function Fv(e,t,n){for(;t32;)t++;return t}(e,Eo.key=t,n),ld(e,t,n))}function ld(e,t,n){for(;t=0;n=SM(t,n))ls(e,yM(t),!0)}function Fa(e,t,n,i){const l=tn(),h=Hn(),O=Z(2);h.firstUpdatePass&&PM(h,e,O,i),t!==ri&&ds(l,O,t)&&RM(h,h.data[M()],l,l[Dn],e,l[O+1]=function Zv(e,t){return null==e||""===e||("string"==typeof t?e+=t:"object"==typeof e&&(e=_(Na(e)))),e}(t,n),i,O)}function IM(e,t){return t>=e.expandoStartIndex}function PM(e,t,n,i){const l=e.data;if(null===l[n+1]){const h=l[M()],O=IM(e,n);wM(h,i)&&null===t&&!O&&(t=!1),t=function Gv(e,t,n,i){const l=hn(e);let h=i?t.residualClasses:t.residualStyles;if(null===l)0===(i?t.classBindings:t.styleBindings)&&(n=V_(n=fm(null,e,t,n,i),t.attrs,i),h=null);else{const O=t.directiveStylingLast;if(-1===O||e[O]!==l)if(n=fm(l,e,t,n,i),null===h){let B=function zv(e,t,n){const i=n?t.classBindings:t.styleBindings;if(0!==Yc(i))return e[hc(i)]}(e,t,i);void 0!==B&&Array.isArray(B)&&(B=fm(null,e,t,B[1],i),B=V_(B,t.attrs,i),function Kv(e,t,n,i){e[hc(n?t.classBindings:t.styleBindings)]=i}(e,t,i,B))}else h=function Vv(e,t,n){let i;const l=t.directiveEnd;for(let h=1+t.directiveStylingLast;h0)&&(ue=!0)):me=n,l)if(0!==B){const Et=hc(e[I+1]);e[i+1]=tg(Et,I),0!==Et&&(e[Et+1]=um(e[Et+1],i)),e[I+1]=function Tv(e,t){return 131071&e|t<<17}(e[I+1],i)}else e[i+1]=tg(I,0),0!==I&&(e[I+1]=um(e[I+1],i)),I=i;else e[i+1]=tg(B,0),0===I?I=i:e[B+1]=um(e[B+1],i),B=i;ue&&(e[i+1]=cm(e[i+1])),vM(e,me,i,!0),vM(e,me,i,!1),function Nv(e,t,n,i,l){const h=l?e.residualClasses:e.residualStyles;null!=h&&"string"==typeof t&&hl(h,t)>=0&&(n[i+1]=dm(n[i+1]))}(t,me,e,i,h),O=tg(I,B),h?t.classBindings=O:t.styleBindings=O}(l,h,t,n,O,i)}}function fm(e,t,n,i,l){let h=null;const O=n.directiveEnd;let I=n.directiveStylingLast;for(-1===I?I=n.directiveStart:I++;I0;){const B=e[l],ue=Array.isArray(B),me=ue?B[1]:B,Ke=null===me;let Et=n[l+1];Et===ri&&(Et=Ke?en:void 0);let Lt=Ke?cu(Et,i):me===i?Et:void 0;if(ue&&!ng(Lt)&&(Lt=cu(B,i)),ng(Lt)&&(I=Lt,O))return I;const Xt=e[l+1];l=O?hc(Xt):Yc(Xt)}if(null!==t){let B=h?t.residualClasses:t.residualStyles;null!=B&&(I=cu(B,i))}return I}function ng(e){return void 0!==e}function wM(e,t){return 0!=(e.flags&(t?8:16))}function xM(e,t=""){const n=tn(),i=Hn(),l=e+In,h=i.firstCreatePass?_c(i,l,1,t,null):i.data[l],O=FM(i,n,h,t,e);n[l]=O,ln()&&Ru(i,n,O,h),Xo(h,!1)}let FM=(e,t,n,i,l)=>(Jt(!0),Tu(t[Dn],i));function gm(e){return ig("",e,""),gm}function ig(e,t,n){const i=tn(),l=ed(i,e,t,n);return l!==ri&&Al(i,M(),l),ig}function pm(e,t,n,i,l){const h=tn(),O=td(h,e,t,n,i,l);return O!==ri&&Al(h,M(),O),pm}function mm(e,t,n,i,l,h,O){const I=tn(),B=function nd(e,t,n,i,l,h,O,I){const ue=jf(e,xs(),n,l,O);return Z(3),ue?t+X(n)+i+X(l)+h+X(O)+I:ri}(I,e,t,n,i,l,h,O);return B!==ri&&Al(I,M(),B),mm}function KM(e,t,n){!function ka(e,t,n,i){const l=Hn(),h=Z(2);l.firstUpdatePass&&PM(l,null,h,i);const O=tn();if(n!==ri&&ds(O,h,n)){const I=l.data[M()];if(wM(I,i)&&!IM(l,h)){let B=i?I.classesWithoutHost:I.stylesWithoutHost;null!==B&&(n=g(B,n||"")),tm(l,I,O,n,i)}else!function Hv(e,t,n,i,l,h,O,I){l===ri&&(l=en);let B=0,ue=0,me=01)for(let n=e.length-2;n>=0;n--){const i=e[n];sO(i)||Cy(i,t)&&null===vy(i)&&yy(i,t.index)}}function sO(e){return!(64&e.type)}function Cy(e,t){return sO(t)||e.index>t.index}function vy(e){const t=e.insertBeforeIndex;return Array.isArray(t)?t[0]:t}function yy(e,t){const n=e.insertBeforeIndex;Array.isArray(n)?n[0]=t:(Th(iO,rO),e.insertBeforeIndex=t)}function Ay(e,t,n){const i=R_(e,n,64,null,null);return oO(t,i),i}function Ly(){const e=[];let n,i,t=-1;function h(I,B){t=0;const ue=function sg(e,t){const n=t[e.currentCaseLViewIndex];return null===n?n:n<0?~n:n}(I,B);i=null!==ue?I.remove[ue]:en}function O(){if(t0?n[I]:(e.push(t,i),h(n[gn].data[~I],n),O())}return 0===e.length?null:(i=e.pop(),t=e.pop(),O())}return function l(I,B){for(n=B;e.length;)e.pop();return h(I.value,B),O}}const ag=/\ufffd(\d+):?\d*\ufffd/gi,xy=/\ufffd(\d+)\ufffd/,gO=/^\s*(\ufffd\d+:?\d*\ufffd)\s*,\s*(select|plural)\s*,/,Z_="\ufffd",Fy=/\ufffd\/?\*(\d+:\d+)\ufffd/gi,ky=/\ufffd(\/?[#*]\d+):?\d*\ufffd/gi,$y=/\uE500/g;function pO(e,t,n,i,l,h,O){const I=Zc(e,i,1,null);let B=I<n.length&&n.push(B)}return{type:i,mainBinding:l,cases:t,values:n}}function Cm(e){if(!e)return[];let t=0;const n=[],i=[],l=/[{}]/g;let h;for(l.lastIndex=0;h=l.exec(e);){const I=h.index;if("}"==h[0]){if(n.pop(),0==n.length){const B=e.substring(t,I);gO.test(B)?i.push(jy(B)):i.push(B),t=I+1}}else{if(0==n.length){const B=e.substring(t,I);i.push(B),t=I+1}n.push("{")}}const O=e.substring(t);return i.push(O),i}function Hy(e,t,n,i,l,h,O,I){const B=[],ue=[],me=[];t.cases.push(h),t.create.push(B),t.remove.push(ue),t.update.push(me);const Et=Fh(ec()).getInertBodyElement(O),Lt=Bu(Et)||Et;return Lt?OO(e,t,n,i,B,ue,me,Lt,l,I,0):0}function OO(e,t,n,i,l,h,O,I,B,ue,me){let Ke=0,Et=I.firstChild;for(;Et;){const Lt=Zc(e,n,1,null);switch(Et.nodeType){case Node.ELEMENT_NODE:const Xt=Et,un=Xt.tagName.toLowerCase();if(i_.hasOwnProperty(un)){vm(l,rg,un,B,Lt),e.data[Lt]=un;const ni=Xt.attributes;for(let hi=0;hi>>Bs.SHIFT;let Ke=e[me];null===Ke&&(Ke=e[me]=(O&Bs.COMMENT)===Bs.COMMENT?l.createComment(I):Tu(l,I)),ue&&null!==n&&El(l,n,Ke,i,!1)}})(l,B.create,me,I&&8&I.type?l[I.index]:null),te(!0)}function Sm(){te(!1)}function yO(e,t,n){ym(e,t,n),Sm()}function bm(e,t,n,i,l){if(e=d(e),Array.isArray(e))for(let h=0;h>20;if(ir(e)||!e.multi){const Lt=new ss(ue,l,dc),Xt=Dm(B,t,l?me:me+Et,Ke);-1===Xt?(Sa(cl(I,O),h,B),Am(h,e,t.length),t.push(B),I.directiveStart++,I.directiveEnd++,l&&(I.providerIndexes+=1048576),n.push(Lt),O.push(Lt)):(n[Xt]=Lt,O[Xt]=Lt)}else{const Lt=Dm(B,t,me+Et,Ke),Xt=Dm(B,t,me,me+Et),Mn=Xt>=0&&n[Xt];if(l&&!Mn||!l&&!(Lt>=0&&n[Lt])){Sa(cl(I,O),h,B);const xn=function hS(e,t,n,i,l){const h=new ss(e,n,dc);return h.multi=[],h.index=t,h.componentProviders=0,bO(h,l,i&&!n),h}(l?_S:dS,n.length,l,i,ue);!l&&Mn&&(n[Xt].providerFactory=xn),Am(h,e,t.length,0),t.push(B),I.directiveStart++,I.directiveEnd++,l&&(I.providerIndexes+=1048576),n.push(xn),O.push(xn)}else Am(h,e,Lt>-1?Lt:Xt,bO(n[l?Xt:Lt],ue,!l&&i));!l&&i&&Mn&&n[Xt].componentProviders++}}}function Am(e,t,n,i){const l=ir(t),h=function np(e){return!!e.useClass}(t);if(l||h){const B=(h?d(t.useClass):t).prototype.ngOnDestroy;if(B){const ue=e.destroyHooks||(e.destroyHooks=[]);if(!l&&t.multi){const me=ue.indexOf(n);-1===me?ue.push(n,[i,B]):ue[me+1].push(i,B)}else ue.push(n,B)}}}function bO(e,t,n){return n&&e.componentProviders++,e.multi.push(t)-1}function Dm(e,t,n,i){for(let l=n;l{n.providersResolver=(i,l)=>function uS(e,t,n){const i=Hn();if(i.firstCreatePass){const l=fr(e);bm(n,i.data,i.blueprint,l,!0),bm(t,i.data,i.blueprint,l,!1)}}(i,l?l(e):e,t)}}class Jc{}class DO{}function fS(e,t){return new Im(e,t??null,[])}class Im extends Jc{constructor(t,n,i){super(),this._parent=n,this._bootstrapComponents=[],this.destroyCbs=[],this.componentFactoryResolver=new FE(this);const l=ur(t);this._bootstrapComponents=wa(l.bootstrap),this._r3Injector=v_(t,n,[{provide:Jc,useValue:this},{provide:ao,useValue:this.componentFactoryResolver},...i],_(t),new Set(["environment"])),this._r3Injector.resolveInjectorInitializers(),this.instance=this._r3Injector.get(t)}get injector(){return this._r3Injector}destroy(){const t=this._r3Injector;!t.destroyed&&t.destroy(),this.destroyCbs.forEach(n=>n()),this.destroyCbs=null}onDestroy(t){this.destroyCbs.push(t)}}class Pm extends DO{constructor(t){super(),this.moduleType=t}create(t){return new Im(this.moduleType,t,[])}}class TO extends Jc{constructor(t){super(),this.componentFactoryResolver=new FE(this),this.instance=null;const n=new Qa([...t.providers,{provide:Jc,useValue:this},{provide:ao,useValue:this.componentFactoryResolver}],t.parent||zu(),t.debugName,new Set(["environment"]));this.injector=n,t.runEnvironmentInitializers&&n.resolveInjectorInitializers()}destroy(){this.injector.destroy()}onDestroy(t){this.injector.onDestroy(t)}}function IO(e,t,n=null){return new TO({providers:e,parent:t,debugName:n,runEnvironmentInitializers:!0}).injector}let pS=(()=>{var e;class t{constructor(i){this._injector=i,this.cachedInjectors=new Map}getOrCreateStandaloneInjector(i){if(!i.standalone)return null;if(!this.cachedInjectors.has(i)){const l=Qh(0,i.type),h=l.length>0?IO([l],this._injector,`Standalone[${i.type.name}]`):null;this.cachedInjectors.set(i,h)}return this.cachedInjectors.get(i)}ngOnDestroy(){try{for(const i of this.cachedInjectors.values())null!==i&&i.destroy()}finally{this.cachedInjectors.clear()}}}return(e=t).\u0275prov=Pe({token:e,providedIn:"environment",factory:()=>new e(ht(pa))}),t})();function PO(e){e.getStandaloneInjector=t=>t.get(pS).getOrCreateStandaloneInjector(e)}function kO(e,t,n){const i=to()+e,l=tn();return l[i]===ri?el(l,i,n?t.call(n):t()):B_(l,i)}function $O(e,t,n,i){return KO(tn(),to(),e,t,n,i)}function UO(e,t,n,i,l){return VO(tn(),to(),e,t,n,i,l)}function BO(e,t,n,i,l,h){return WO(tn(),to(),e,t,n,i,l,h)}function GO(e,t,n,i,l,h,O){return function jO(e,t,n,i,l,h,O,I,B){const ue=t+n;return Ea(e,ue,l,h,O,I)?el(e,ue+4,B?i.call(B,l,h,O,I):i(l,h,O,I)):Y_(e,ue+4)}(tn(),to(),e,t,n,i,l,h,O)}function zO(e,t,n,i,l,h,O,I){const B=to()+e,ue=tn(),me=Ea(ue,B,n,i,l,h);return ds(ue,B+4,O)||me?el(ue,B+5,I?t.call(I,n,i,l,h,O):t(n,i,l,h,O)):B_(ue,B+5)}function Y_(e,t){const n=e[t];return n===ri?void 0:n}function KO(e,t,n,i,l,h){const O=t+n;return ds(e,O,l)?el(e,O+1,h?i.call(h,l):i(l)):Y_(e,O+1)}function VO(e,t,n,i,l,h,O){const I=t+n;return Xc(e,I,l,h)?el(e,I+2,O?i.call(O,l,h):i(l,h)):Y_(e,I+2)}function WO(e,t,n,i,l,h,O,I){const B=t+n;return jf(e,B,l,h,O)?el(e,B+3,I?i.call(I,l,h,O):i(l,h,O)):Y_(e,B+3)}function ZO(e,t){const n=Hn();let i;const l=e+In;n.firstCreatePass?(i=function IS(e,t){if(t)for(let n=t.length-1;n>=0;n--){const i=t[n];if(e===i.name)return i}}(t,n.pipeRegistry),n.data[l]=i,i.onDestroy&&(n.destroyHooks??(n.destroyHooks=[])).push(l,i.onDestroy)):i=n.data[l];const h=i.factory||(i.factory=To(i.type)),I=Ce(dc);try{const B=_i(!1),ue=h();return _i(B),function Ev(e,t,n,i){n>=e.data.length&&(e.data[n]=null,e.blueprint[n]=null),t[n]=i}(n,tn(),l,ue),ue}finally{Ce(I)}}function XO(e,t,n){const i=e+In,l=tn(),h=ca(l,i);return Q_(l,i)?KO(l,to(),t,h.transform,n,h):h.transform(n)}function YO(e,t,n,i){const l=e+In,h=tn(),O=ca(h,l);return Q_(h,l)?VO(h,to(),t,O.transform,n,i,O):O.transform(n,i)}function QO(e,t,n,i,l){const h=e+In,O=tn(),I=ca(O,h);return Q_(O,h)?WO(O,to(),t,I.transform,n,i,l,I):I.transform(n,i,l)}function Q_(e,t){return e[gn].data[t].pure}function RS(){return this._results[Symbol.iterator]()}class lg{get changes(){return this._changes||(this._changes=new ma)}constructor(t=!1){this._emitDistinctChangesOnly=t,this.dirty=!0,this._results=[],this._changesDetected=!1,this._changes=null,this.length=0,this.first=void 0,this.last=void 0;const n=lg.prototype;n[Symbol.iterator]||(n[Symbol.iterator]=RS)}get(t){return this._results[t]}map(t){return this._results.map(t)}filter(t){return this._results.filter(t)}find(t){return this._results.find(t)}reduce(t,n){return this._results.reduce(t,n)}forEach(t){this._results.forEach(t)}some(t){return this._results.some(t)}toArray(){return this._results.slice()}toString(){return this._results.toString()}reset(t,n){const i=this;i.dirty=!1;const l=function as(e){return e.flat(Number.POSITIVE_INFINITY)}(t);(this._changesDetected=!function lu(e,t,n){if(e.length!==t.length)return!1;for(let i=0;i0&&(n[l-1][jn]=t),i{class t{}return t.__NG_ELEMENT_ID__=kS,t})();const xS=J_,FS=class extends xS{constructor(t,n,i){super(),this._declarationLView=t,this._declarationTContainer=n,this.elementRef=i}get ssrId(){var t;return(null==(t=this._declarationTContainer.tView)?void 0:t.ssrId)||null}createEmbeddedView(t,n){return this.createEmbeddedViewImpl(t,n)}createEmbeddedViewImpl(t,n,i){const l=function LS(e,t,n,i){const l=t.tView,I=Ju(e,l,n,4096&e[$n]?4096:16,null,t,null,null,null,(null==i?void 0:i.injector)??null,(null==i?void 0:i.hydrationInfo)??null);I[fs]=e[t.index];const ue=e[Ui];return null!==ue&&(I[Ui]=ue.createEmbeddedView(l)),Wp(l,I,n),I}(this._declarationLView,this._declarationTContainer,t,{injector:n,hydrationInfo:i});return new $_(l)}};function kS(){return cg(Tr(),tn())}function cg(e,t){return 4&e.type?new FS(t,e,ac(e,t)):null}let dg=(()=>{class t{}return t.__NG_ELEMENT_ID__=KS,t})();function KS(){return rC(Tr(),tn())}const VS=dg,nC=class extends VS{constructor(t,n,i){super(),this._lContainer=t,this._hostTNode=n,this._hostLView=i}get element(){return ac(this._hostTNode,this._hostLView)}get injector(){return new xo(this._hostTNode,this._hostLView)}get parentInjector(){const t=Vr(this._hostTNode,this._hostLView);if(_r(t)){const n=An(t,this._hostLView),i=Ys(t);return new xo(n[gn].data[i+8],n)}return new xo(null,this._hostLView)}clear(){for(;this.length>0;)this.remove(this.length-1)}get(t){const n=iC(this._lContainer);return null!==n&&n[t]||null}get length(){return this._lContainer.length-Gn}createEmbeddedView(t,n,i){let l,h;"number"==typeof i?l=i:null!=i&&(l=i.index,h=i.injector);const I=t.createEmbeddedViewImpl(n||{},h,null);return this.insertImpl(I,l,false),I}createComponent(t,n,i,l,h){const O=t&&!function _l(e){return"function"==typeof e}(t);let I;if(O)I=n;else{const un=n||{};I=un.index,i=un.injector,l=un.projectableNodes,h=un.environmentInjector||un.ngModuleRef}const B=O?t:new U_(ii(t)),ue=i||this.parentInjector;if(!h&&null==B.ngModule){const Mn=(O?ue:this.parentInjector).get(pa,null);Mn&&(h=Mn)}ii(B.componentType??{});const Lt=B.create(ue,l,null,h);return this.insertImpl(Lt.hostView,I,false),Lt}insert(t,n){return this.insertImpl(t,n,!1)}insertImpl(t,n,i){const l=t._lView;if(function Pl(e){return Vi(e[Nn])}(l)){const B=this.indexOf(t);if(-1!==B)this.detach(B);else{const ue=l[Nn],me=new nC(ue,ue[mr],ue[Nn]);me.detach(me.indexOf(t))}}const O=this._adjustIndex(n),I=this._lContainer;return wS(I,l,O,!i),t.attachToViewContainerRef(),vc(Rm(I),O,t),t}move(t,n){return this.insert(t,n)}indexOf(t){const n=iC(this._lContainer);return null!==n?n.indexOf(t):-1}remove(t){const n=this._adjustIndex(t,-1),i=Iu(this._lContainer,n);i&&($s(Rm(this._lContainer),n),Yd(i[gn],i))}detach(t){const n=this._adjustIndex(t,-1),i=Iu(this._lContainer,n);return i&&null!=$s(Rm(this._lContainer),n)?new $_(i):null}_adjustIndex(t,n=0){return t??this.length+n}};function iC(e){return e[8]}function Rm(e){return e[8]||(e[8]=[])}function rC(e,t){let n;const i=t[e.index];return Vi(i)?n=i:(n=SE(i,t,null,e),t[e.index]=n,Gf(t,n)),oC(n,t,e,i),new nC(n,e,t)}let oC=function sC(e,t,n,i){if(e[yr])return;let l;l=8&n.type?Mi(i):function WS(e,t){const n=e[Dn],i=n.createComment(""),l=Gr(t,e);return El(n,Pu(n,l),i,function Ig(e,t){return e.nextSibling(t)}(n,l),!1),i}(t,n),e[yr]=l};class Lm{constructor(t){this.queryList=t,this.matches=null}clone(){return new Lm(this.queryList)}setDirty(){this.queryList.setDirty()}}class wm{constructor(t=[]){this.queries=t}createEmbeddedView(t){const n=t.queries;if(null!==n){const i=null!==t.contentQueries?t.contentQueries[0]:n.length,l=[];for(let h=0;h0)i.push(O[I/2]);else{const ue=h[I+1],me=t[-B];for(let Ke=Gn;Ke{var e;class t{constructor(){this.initialized=!1,this.done=!1,this.donePromise=new Promise((i,l)=>{this.resolve=i,this.reject=l}),this.appInits=Wt(LC,{optional:!0})??[]}runInitializers(){if(this.initialized)return;const i=[];for(const h of this.appInits){const O=h();if(rm(O))i.push(O);else if(lM(O)){const I=new Promise((B,ue)=>{O.subscribe({complete:B,error:ue})});i.push(I)}}const l=()=>{this.done=!0,this.resolve()};Promise.all(i).then(()=>{l()}).catch(h=>{this.reject(h)}),0===i.length&&l(),this.initialized=!0}}return(e=t).\u0275fac=function(i){return new(i||e)},e.\u0275prov=Pe({token:e,factory:e.\u0275fac,providedIn:"root"}),t})(),wC=(()=>{var e;class t{log(i){console.log(i)}warn(i){console.warn(i)}}return(e=t).\u0275fac=function(i){return new(i||e)},e.\u0275prov=Pe({token:e,factory:e.\u0275fac,providedIn:"platform"}),t})();const hg=new je("LocaleId",{providedIn:"root",factory:()=>Wt(hg,gt.Optional|gt.SkipSelf)||function Ob(){return typeof $localize<"u"&&$localize.locale||dd}()}),Cb=new je("DefaultCurrencyCode",{providedIn:"root",factory:()=>"USD"});let xC=(()=>{var e;class t{constructor(){this.taskId=0,this.pendingTasks=new Set,this.hasPendingTasks=new D.X(!1)}add(){this.hasPendingTasks.next(!0);const i=this.taskId++;return this.pendingTasks.add(i),i}remove(i){this.pendingTasks.delete(i),0===this.pendingTasks.size&&this.hasPendingTasks.next(!1)}ngOnDestroy(){this.pendingTasks.clear(),this.hasPendingTasks.next(!1)}}return(e=t).\u0275fac=function(i){return new(i||e)},e.\u0275prov=Pe({token:e,factory:e.\u0275fac,providedIn:"root"}),t})();class yb{constructor(t,n){this.ngModuleFactory=t,this.componentFactories=n}}let Sb=(()=>{var e;class t{compileModuleSync(i){return new Pm(i)}compileModuleAsync(i){return Promise.resolve(this.compileModuleSync(i))}compileModuleAndAllComponentsSync(i){const l=this.compileModuleSync(i),O=wa(ur(i).declarations).reduce((I,B)=>{const ue=ii(B);return ue&&I.push(new U_(ue)),I},[]);return new yb(l,O)}compileModuleAndAllComponentsAsync(i){return Promise.resolve(this.compileModuleAndAllComponentsSync(i))}clearCache(){}clearCacheFor(i){}getModuleId(i){}}return(e=t).\u0275fac=function(i){return new(i||e)},e.\u0275prov=Pe({token:e,factory:e.\u0275fac,providedIn:"root"}),t})();const UC=new je(""),BC=new je("");let th,jb=(()=>{var e;class t{constructor(i,l,h){this._ngZone=i,this.registry=l,this._pendingCount=0,this._isZoneStable=!0,this._didWork=!1,this._callbacks=[],this.taskTrackingZone=null,th||(function Hb(e){th=e}(h),h.addToWindow(l)),this._watchAngularEvents(),i.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:()=>{lo.assertNotInAngularZone(),queueMicrotask(()=>{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())queueMicrotask(()=>{for(;0!==this._callbacks.length;){let i=this._callbacks.pop();clearTimeout(i.timeoutId),i.doneCb(this._didWork)}this._didWork=!1});else{let i=this.getPendingTasks();this._callbacks=this._callbacks.filter(l=>!l.updateCb||!l.updateCb(i)||(clearTimeout(l.timeoutId),!1)),this._didWork=!0}}getPendingTasks(){return this.taskTrackingZone?this.taskTrackingZone.macroTasks.map(i=>({source:i.source,creationLocation:i.creationLocation,data:i.data})):[]}addCallback(i,l,h){let O=-1;l&&l>0&&(O=setTimeout(()=>{this._callbacks=this._callbacks.filter(I=>I.timeoutId!==O),i(this._didWork,this.getPendingTasks())},l)),this._callbacks.push({doneCb:i,timeoutId:O,updateCb:h})}whenStable(i,l,h){if(h&&!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(i,l,h),this._runCallbacksIfReady()}getPendingRequestCount(){return this._pendingCount}registerApplication(i){this.registry.registerApplication(i,this)}unregisterApplication(i){this.registry.unregisterApplication(i)}findProviders(i,l,h){return[]}}return(e=t).\u0275fac=function(i){return new(i||e)(ht(lo),ht(GC),ht(BC))},e.\u0275prov=Pe({token:e,factory:e.\u0275fac}),t})(),GC=(()=>{var e;class t{constructor(){this._applications=new Map}registerApplication(i,l){this._applications.set(i,l)}unregisterApplication(i){this._applications.delete(i)}unregisterAllApplications(){this._applications.clear()}getTestability(i){return this._applications.get(i)||null}getAllTestabilities(){return Array.from(this._applications.values())}getAllRootElements(){return Array.from(this._applications.keys())}findTestabilityInTree(i,l=!0){return(null==th?void 0:th.findTestabilityInTree(this,i,l))??null}}return(e=t).\u0275fac=function(i){return new(i||e)},e.\u0275prov=Pe({token:e,factory:e.\u0275fac,providedIn:"platform"}),t})(),il=null;const zC=new je("AllowMultipleToken"),jm=new je("PlatformDestroyListeners"),Hm=new je("appBootstrapListener");class Yb{constructor(t,n){this.name=t,this.token=n}}function WC(e,t,n=[]){const i=`Platform: ${t}`,l=new je(i);return(h=[])=>{let O=Zm();if(!O||O.injector.get(zC,!1)){const I=[...n,...h,{provide:l,useValue:!0}];e?e(I):function Qb(e){if(il&&!il.get(zC,!1))throw new w(400,!1);(function KC(){!function mo(e){sa=e}(()=>{throw new w(600,!1)})})(),il=e;const t=e.get(HC);(function VC(e){const t=e.get(rf,null);null==t||t.forEach(n=>n())})(e)}(function jC(e=[],t){return Us.create({name:t,providers:[{provide:ga,useValue:"platform"},{provide:jm,useValue:new Set([()=>il=null])},...e]})}(I,i))}return function qb(e){const t=Zm();if(!t)throw new w(401,!1);return t}()}}function Zm(){return(null==il?void 0:il.get(HC))??null}let HC=(()=>{var e;class t{constructor(i){this._injector=i,this._modules=[],this._destroyListeners=[],this._destroyed=!1}bootstrapModuleFactory(i,l){const h=function e0(e="zone.js",t){return"noop"===e?new Rp:"zone.js"===e?new lo(t):e}(null==l?void 0:l.ngZone,function ZC(e){return{enableLongStackTrace:!1,shouldCoalesceEventChangeDetection:(null==e?void 0:e.eventCoalescing)??!1,shouldCoalesceRunChangeDetection:(null==e?void 0:e.runCoalescing)??!1}}({eventCoalescing:null==l?void 0:l.ngZoneEventCoalescing,runCoalescing:null==l?void 0:l.ngZoneRunCoalescing}));return h.run(()=>{const O=function gS(e,t,n){return new Im(e,t,n)}(i.moduleType,this.injector,function qC(e){return[{provide:lo,useFactory:e},{provide:zc,multi:!0,useFactory:()=>{const t=Wt(n0,{optional:!0});return()=>t.initialize()}},{provide:JC,useFactory:t0},{provide:vf,useFactory:yf}]}(()=>h)),I=O.injector.get(Ja,null);return h.runOutsideAngular(()=>{const B=h.onError.subscribe({next:ue=>{I.handleError(ue)}});O.onDestroy(()=>{gg(this._modules,O),B.unsubscribe()})}),function XC(e,t,n){try{const i=n();return rm(i)?i.catch(l=>{throw t.runOutsideAngular(()=>e.handleError(l)),l}):i}catch(i){throw t.runOutsideAngular(()=>e.handleError(i)),i}}(I,h,()=>{const B=O.injector.get(Km);return B.runInitializers(),B.donePromise.then(()=>(nO(O.injector.get(hg,dd)||dd),this._moduleDoBootstrap(O),O))})})}bootstrapModule(i,l=[]){const h=YC({},l);return function Zb(e,t,n){const i=new Pm(n);return Promise.resolve(i)}(0,0,i).then(O=>this.bootstrapModuleFactory(O,h))}_moduleDoBootstrap(i){const l=i.injector.get(fd);if(i._bootstrapComponents.length>0)i._bootstrapComponents.forEach(h=>l.bootstrap(h));else{if(!i.instance.ngDoBootstrap)throw new w(-403,!1);i.instance.ngDoBootstrap(l)}this._modules.push(i)}onDestroy(i){this._destroyListeners.push(i)}get injector(){return this._injector}destroy(){if(this._destroyed)throw new w(404,!1);this._modules.slice().forEach(l=>l.destroy()),this._destroyListeners.forEach(l=>l());const i=this._injector.get(jm,null);i&&(i.forEach(l=>l()),i.clear()),this._destroyed=!0}get destroyed(){return this._destroyed}}return(e=t).\u0275fac=function(i){return new(i||e)(ht(Us))},e.\u0275prov=Pe({token:e,factory:e.\u0275fac,providedIn:"platform"}),t})();function YC(e,t){return Array.isArray(t)?t.reduce(YC,e):{...e,...t}}let fd=(()=>{var e;class t{constructor(){this._bootstrapListeners=[],this._runningTick=!1,this._destroyed=!1,this._destroyListeners=[],this._views=[],this.internalErrorHandler=Wt(JC),this.zoneIsStable=Wt(vf),this.componentTypes=[],this.components=[],this.isStable=Wt(xC).hasPendingTasks.pipe((0,f.w)(i=>i?(0,p.of)(!1):this.zoneIsStable),(0,c.x)(),(0,E.B)()),this._injector=Wt(pa)}get destroyed(){return this._destroyed}get injector(){return this._injector}bootstrap(i,l){const h=i instanceof Hu;if(!this._injector.get(Km).done)throw!h&&xr(i),new w(405,!1);let I;I=h?i:this._injector.get(ao).resolveComponentFactory(i),this.componentTypes.push(I.componentType);const B=function Xb(e){return e.isBoundToModule}(I)?void 0:this._injector.get(Jc),me=I.create(Us.NULL,[],l||I.selector,B),Ke=me.location.nativeElement,Et=me.injector.get(UC,null);return null==Et||Et.registerApplication(Ke),me.onDestroy(()=>{this.detachView(me.hostView),gg(this.components,me),null==Et||Et.unregisterApplication(Ke)}),this._loadComponent(me),me}tick(){if(this._runningTick)throw new w(101,!1);try{this._runningTick=!0;for(let i of this._views)i.detectChanges()}catch(i){this.internalErrorHandler(i)}finally{this._runningTick=!1}}attachView(i){const l=i;this._views.push(l),l.attachToAppRef(this)}detachView(i){const l=i;gg(this._views,l),l.detachFromAppRef()}_loadComponent(i){this.attachView(i.hostView),this.tick(),this.components.push(i);const l=this._injector.get(Hm,[]);l.push(...this._bootstrapListeners),l.forEach(h=>h(i))}ngOnDestroy(){if(!this._destroyed)try{this._destroyListeners.forEach(i=>i()),this._views.slice().forEach(i=>i.destroy())}finally{this._destroyed=!0,this._views=[],this._bootstrapListeners=[],this._destroyListeners=[]}}onDestroy(i){return this._destroyListeners.push(i),()=>gg(this._destroyListeners,i)}destroy(){if(this._destroyed)throw new w(406,!1);const i=this._injector;i.destroy&&!i.destroyed&&i.destroy()}get viewCount(){return this._views.length}warnIfDestroyed(){}}return(e=t).\u0275fac=function(i){return new(i||e)},e.\u0275prov=Pe({token:e,factory:e.\u0275fac,providedIn:"root"}),t})();function gg(e,t){const n=e.indexOf(t);n>-1&&e.splice(n,1)}const JC=new je("",{providedIn:"root",factory:()=>Wt(Ja).handleError.bind(void 0)});function t0(){const e=Wt(lo),t=Wt(Ja);return n=>e.runOutsideAngular(()=>t.handleError(n))}let n0=(()=>{var e;class t{constructor(){this.zone=Wt(lo),this.applicationRef=Wt(fd)}initialize(){this._onMicrotaskEmptySubscription||(this._onMicrotaskEmptySubscription=this.zone.onMicrotaskEmpty.subscribe({next:()=>{this.zone.run(()=>{this.applicationRef.tick()})}}))}ngOnDestroy(){var i;null==(i=this._onMicrotaskEmptySubscription)||i.unsubscribe()}}return(e=t).\u0275fac=function(i){return new(i||e)},e.\u0275prov=Pe({token:e,factory:e.\u0275fac,providedIn:"root"}),t})();function o0(){}let s0=(()=>{class t{}return t.__NG_ELEMENT_ID__=a0,t})();function a0(e){return function l0(e,t,n){if(ps(e)&&!n){const i=pi(e.index,t);return new $_(i,i)}return 47&e.type?new $_(t[li],t):null}(Tr(),tn(),16==(16&e))}class r1{constructor(){}supports(t){return Wf(t)}create(t){return new f0(t)}}const h0=(e,t)=>t;class f0{constructor(t){this.length=0,this._linkedRecords=null,this._unlinkedRecords=null,this._previousItHead=null,this._itHead=null,this._itTail=null,this._additionsHead=null,this._additionsTail=null,this._movesHead=null,this._movesTail=null,this._removalsHead=null,this._removalsTail=null,this._identityChangesHead=null,this._identityChangesTail=null,this._trackByFn=t||h0}forEachItem(t){let n;for(n=this._itHead;null!==n;n=n._next)t(n)}forEachOperation(t){let n=this._itHead,i=this._removalsHead,l=0,h=null;for(;n||i;){const O=!i||n&&n.currentIndex{O=this._trackByFn(l,I),null!==n&&Object.is(n.trackById,O)?(i&&(n=this._verifyReinsertion(n,I,O,l)),Object.is(n.item,I)||this._addIdentityChange(n,I)):(n=this._mismatch(n,I,O,l),i=!0),n=n._next,l++}),this.length=l;return this._truncate(n),this.collection=t,this.isDirty}get isDirty(){return null!==this._additionsHead||null!==this._movesHead||null!==this._removalsHead||null!==this._identityChangesHead}_reset(){if(this.isDirty){let t;for(t=this._previousItHead=this._itHead;null!==t;t=t._next)t._nextPrevious=t._next;for(t=this._additionsHead;null!==t;t=t._nextAdded)t.previousIndex=t.currentIndex;for(this._additionsHead=this._additionsTail=null,t=this._movesHead;null!==t;t=t._nextMoved)t.previousIndex=t.currentIndex;this._movesHead=this._movesTail=null,this._removalsHead=this._removalsTail=null,this._identityChangesHead=this._identityChangesTail=null}}_mismatch(t,n,i,l){let h;return null===t?h=this._itTail:(h=t._prev,this._remove(t)),null!==(t=null===this._unlinkedRecords?null:this._unlinkedRecords.get(i,null))?(Object.is(t.item,n)||this._addIdentityChange(t,n),this._reinsertAfter(t,h,l)):null!==(t=null===this._linkedRecords?null:this._linkedRecords.get(i,l))?(Object.is(t.item,n)||this._addIdentityChange(t,n),this._moveAfter(t,h,l)):t=this._addAfter(new g0(n,i),h,l),t}_verifyReinsertion(t,n,i,l){let h=null===this._unlinkedRecords?null:this._unlinkedRecords.get(i,null);return null!==h?t=this._reinsertAfter(h,t._prev,l):t.currentIndex!=l&&(t.currentIndex=l,this._addToMoves(t,l)),t}_truncate(t){for(;null!==t;){const n=t._next;this._addToRemovals(this._unlink(t)),t=n}null!==this._unlinkedRecords&&this._unlinkedRecords.clear(),null!==this._additionsTail&&(this._additionsTail._nextAdded=null),null!==this._movesTail&&(this._movesTail._nextMoved=null),null!==this._itTail&&(this._itTail._next=null),null!==this._removalsTail&&(this._removalsTail._nextRemoved=null),null!==this._identityChangesTail&&(this._identityChangesTail._nextIdentityChange=null)}_reinsertAfter(t,n,i){null!==this._unlinkedRecords&&this._unlinkedRecords.remove(t);const l=t._prevRemoved,h=t._nextRemoved;return null===l?this._removalsHead=h:l._nextRemoved=h,null===h?this._removalsTail=l:h._prevRemoved=l,this._insertAfter(t,n,i),this._addToMoves(t,i),t}_moveAfter(t,n,i){return this._unlink(t),this._insertAfter(t,n,i),this._addToMoves(t,i),t}_addAfter(t,n,i){return this._insertAfter(t,n,i),this._additionsTail=null===this._additionsTail?this._additionsHead=t:this._additionsTail._nextAdded=t,t}_insertAfter(t,n,i){const l=null===n?this._itHead:n._next;return t._next=l,t._prev=n,null===l?this._itTail=t:l._prev=t,null===n?this._itHead=t:n._next=t,null===this._linkedRecords&&(this._linkedRecords=new o1),this._linkedRecords.put(t),t.currentIndex=i,t}_remove(t){return this._addToRemovals(this._unlink(t))}_unlink(t){null!==this._linkedRecords&&this._linkedRecords.remove(t);const n=t._prev,i=t._next;return null===n?this._itHead=i:n._next=i,null===i?this._itTail=n:i._prev=n,t}_addToMoves(t,n){return t.previousIndex===n||(this._movesTail=null===this._movesTail?this._movesHead=t:this._movesTail._nextMoved=t),t}_addToRemovals(t){return null===this._unlinkedRecords&&(this._unlinkedRecords=new o1),this._unlinkedRecords.put(t),t.currentIndex=null,t._nextRemoved=null,null===this._removalsTail?(this._removalsTail=this._removalsHead=t,t._prevRemoved=null):(t._prevRemoved=this._removalsTail,this._removalsTail=this._removalsTail._nextRemoved=t),t}_addIdentityChange(t,n){return t.item=n,this._identityChangesTail=null===this._identityChangesTail?this._identityChangesHead=t:this._identityChangesTail._nextIdentityChange=t,t}}class g0{constructor(t,n){this.item=t,this.trackById=n,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 p0{constructor(){this._head=null,this._tail=null}add(t){null===this._head?(this._head=this._tail=t,t._nextDup=null,t._prevDup=null):(this._tail._nextDup=t,t._prevDup=this._tail,t._nextDup=null,this._tail=t)}get(t,n){let i;for(i=this._head;null!==i;i=i._nextDup)if((null===n||n<=i.currentIndex)&&Object.is(i.trackById,t))return i;return null}remove(t){const n=t._prevDup,i=t._nextDup;return null===n?this._head=i:n._nextDup=i,null===i?this._tail=n:i._prevDup=n,null===this._head}}class o1{constructor(){this.map=new Map}put(t){const n=t.trackById;let i=this.map.get(n);i||(i=new p0,this.map.set(n,i)),i.add(t)}get(t,n){const l=this.map.get(t);return l?l.get(t,n):null}remove(t){const n=t.trackById;return this.map.get(n).remove(t)&&this.map.delete(n),t}get isEmpty(){return 0===this.map.size}clear(){this.map.clear()}}function s1(e,t,n){const i=e.previousIndex;if(null===i)return i;let l=0;return n&&i{if(n&&n.key===l)this._maybeAddToChanges(n,i),this._appendAfter=n,n=n._next;else{const h=this._getOrCreateRecordForKey(l,i);n=this._insertBeforeOrAppend(n,h)}}),n){n._prev&&(n._prev._next=null),this._removalsHead=n;for(let i=n;null!==i;i=i._nextRemoved)i===this._mapHead&&(this._mapHead=null),this._records.delete(i.key),i._nextRemoved=i._next,i.previousValue=i.currentValue,i.currentValue=null,i._prev=null,i._next=null}return this._changesTail&&(this._changesTail._nextChanged=null),this._additionsTail&&(this._additionsTail._nextAdded=null),this.isDirty}_insertBeforeOrAppend(t,n){if(t){const i=t._prev;return n._next=t,n._prev=i,t._prev=n,i&&(i._next=n),t===this._mapHead&&(this._mapHead=n),this._appendAfter=t,t}return this._appendAfter?(this._appendAfter._next=n,n._prev=this._appendAfter):this._mapHead=n,this._appendAfter=n,null}_getOrCreateRecordForKey(t,n){if(this._records.has(t)){const l=this._records.get(t);this._maybeAddToChanges(l,n);const h=l._prev,O=l._next;return h&&(h._next=O),O&&(O._prev=h),l._next=null,l._prev=null,l}const i=new E0(t);return this._records.set(t,i),i.currentValue=n,this._addToAdditions(i),i}_reset(){if(this.isDirty){let t;for(this._previousMapHead=this._mapHead,t=this._previousMapHead;null!==t;t=t._next)t._nextPrevious=t._next;for(t=this._changesHead;null!==t;t=t._nextChanged)t.previousValue=t.currentValue;for(t=this._additionsHead;null!=t;t=t._nextAdded)t.previousValue=t.currentValue;this._changesHead=this._changesTail=null,this._additionsHead=this._additionsTail=null,this._removalsHead=null}}_maybeAddToChanges(t,n){Object.is(n,t.currentValue)||(t.previousValue=t.currentValue,t.currentValue=n,this._addToChanges(t))}_addToAdditions(t){null===this._additionsHead?this._additionsHead=this._additionsTail=t:(this._additionsTail._nextAdded=t,this._additionsTail=t)}_addToChanges(t){null===this._changesHead?this._changesHead=this._changesTail=t:(this._changesTail._nextChanged=t,this._changesTail=t)}_forEach(t,n){t instanceof Map?t.forEach(n):Object.keys(t).forEach(i=>n(t[i],i))}}class E0{constructor(t){this.key=t,this.previousValue=null,this.currentValue=null,this._nextPrevious=null,this._next=null,this._prev=null,this._nextAdded=null,this._nextRemoved=null,this._nextChanged=null}}function l1(){return new qm([new r1])}let qm=(()=>{var e;class t{constructor(i){this.factories=i}static create(i,l){if(null!=l){const h=l.factories.slice();i=i.concat(h)}return new t(i)}static extend(i){return{provide:t,useFactory:l=>t.create(i,l||l1()),deps:[[t,new yc,new Kl]]}}find(i){const l=this.factories.find(h=>h.supports(i));if(null!=l)return l;throw new w(901,!1)}}return(e=t).\u0275prov=Pe({token:e,providedIn:"root",factory:l1}),t})();function c1(){return new eE([new a1])}let eE=(()=>{var e;class t{constructor(i){this.factories=i}static create(i,l){if(l){const h=l.factories.slice();i=i.concat(h)}return new t(i)}static extend(i){return{provide:t,useFactory:l=>t.create(i,l||c1()),deps:[[t,new yc,new Kl]]}}find(i){const l=this.factories.find(h=>h.supports(i));if(l)return l;throw new w(901,!1)}}return(e=t).\u0275prov=Pe({token:e,providedIn:"root",factory:c1}),t})();const C0=WC(null,"core",[]);let v0=(()=>{var e;class t{constructor(i){}}return(e=t).\u0275fac=function(i){return new(i||e)(ht(fd))},e.\u0275mod=Go({type:e}),e.\u0275inj=Pt({}),t})();function L0(e){return"boolean"==typeof e?e:null!=e&&"false"!==e}function x0(e){const t=ii(e);if(!t)return null;const n=new U_(t);return{get selector(){return n.selector},get type(){return n.componentType},get inputs(){return n.inputs},get outputs(){return n.outputs},get ngContentSelectors(){return n.ngContentSelectors},get isStandalone(){return t.standalone},get isSignal(){return t.signals}}}},56223:(Qe,he,s)=>{"use strict";s.d(he,{CE:()=>zo,Cf:()=>q,F:()=>Ai,Fj:()=>P,JJ:()=>ne,JL:()=>ce,JU:()=>f,NI:()=>ki,On:()=>qi,Q7:()=>Fr,QS:()=>Vo,SD:()=>j,UX:()=>Ks,Zs:()=>Zi,_Y:()=>Hr,a5:()=>Pt,gN:()=>dt,kI:()=>L,nD:()=>yr,nJ:()=>V,oH:()=>er,p4:()=>Hi,qu:()=>fr,sg:()=>ur,u:()=>gn,u5:()=>rl,vC:()=>ci,x0:()=>vo});var a=s(65879),r=s(96814),b=s(5253),A=s(77504),D=s(96124);let p=(()=>{var ae;class Q{constructor(se,Le){this._renderer=se,this._elementRef=Le,this.onChange=on=>{},this.onTouched=()=>{}}setProperty(se,Le){this._renderer.setProperty(this._elementRef.nativeElement,se,Le)}registerOnTouched(se){this.onTouched=se}registerOnChange(se){this.onChange=se}setDisabledState(se){this.setProperty("disabled",se)}}return(ae=Q).\u0275fac=function(se){return new(se||ae)(a.Y36(a.Qsj),a.Y36(a.SBq))},ae.\u0275dir=a.lG2({type:ae}),Q})(),E=(()=>{var ae;class Q extends p{}return(ae=Q).\u0275fac=function(){let Ae;return function(Le){return(Ae||(Ae=a.n5z(ae)))(Le||ae)}}(),ae.\u0275dir=a.lG2({type:ae,features:[a.qOj]}),Q})();const f=new a.OlP("NgValueAccessor"),m={provide:f,useExisting:(0,a.Gpc)(()=>P),multi:!0},g=new a.OlP("CompositionEventMode");let P=(()=>{var ae;class Q extends p{constructor(se,Le,on){super(se,Le),this._compositionMode=on,this._composing=!1,null==this._compositionMode&&(this._compositionMode=!function _(){const ae=(0,r.q)()?(0,r.q)().getUserAgent():"";return/android (\d+)/.test(ae.toLowerCase())}())}writeValue(se){this.setProperty("value",se??"")}_handleInput(se){(!this._compositionMode||this._compositionMode&&!this._composing)&&this.onChange(se)}_compositionStart(){this._composing=!0}_compositionEnd(se){this._composing=!1,this._compositionMode&&this.onChange(se)}}return(ae=Q).\u0275fac=function(se){return new(se||ae)(a.Y36(a.Qsj),a.Y36(a.SBq),a.Y36(g,8))},ae.\u0275dir=a.lG2({type:ae,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(se,Le){1&se&&a.NdJ("input",function(vn){return Le._handleInput(vn.target.value)})("blur",function(){return Le.onTouched()})("compositionstart",function(){return Le._compositionStart()})("compositionend",function(vn){return Le._compositionEnd(vn.target.value)})},features:[a._Bn([m]),a.qOj]}),Q})();function U(ae){return null==ae||("string"==typeof ae||Array.isArray(ae))&&0===ae.length}function d(ae){return null!=ae&&"number"==typeof ae.length}const q=new a.OlP("NgValidators"),j=new a.OlP("NgAsyncValidators"),K=/^(?=.{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 L{static min(Q){return function w(ae){return Q=>{if(U(Q.value)||U(ae))return null;const Ae=parseFloat(Q.value);return!isNaN(Ae)&&Ae{if(U(Q.value)||U(ae))return null;const Ae=parseFloat(Q.value);return!isNaN(Ae)&&Ae>ae?{max:{max:ae,actual:Q.value}}:null}}(Q)}static required(Q){return X(Q)}static requiredTrue(Q){return de(Q)}static email(Q){return function re(ae){return U(ae.value)||K.test(ae.value)?null:{email:!0}}(Q)}static minLength(Q){return function be(ae){return Q=>U(Q.value)||!d(Q.value)?null:Q.value.length{if(U(se.value))return null;const Le=se.value;return Q.test(Le)?null:{pattern:{requiredPattern:Ae,actualValue:Le}}}}(Q)}static nullValidator(Q){return null}static compose(Q){return Ze(Q)}static composeAsync(Q){return Ct(Q)}}function X(ae){return U(ae.value)?{required:!0}:null}function de(ae){return!0===ae.value?null:{required:!0}}function pe(ae){return Q=>d(Q.value)&&Q.value.length>ae?{maxlength:{requiredLength:ae,actualLength:Q.value.length}}:null}function Je(ae){return null}function qe(ae){return null!=ae}function it(ae){return(0,a.QGY)(ae)?(0,b.D)(ae):ae}function rt(ae){let Q={};return ae.forEach(Ae=>{Q=null!=Ae?{...Q,...Ae}:Q}),0===Object.keys(Q).length?null:Q}function tt(ae,Q){return Q.map(Ae=>Ae(ae))}function ze(ae){return ae.map(Q=>function _t(ae){return!ae.validate}(Q)?Q:Ae=>Q.validate(Ae))}function Ze(ae){if(!ae)return null;const Q=ae.filter(qe);return 0==Q.length?null:function(Ae){return rt(tt(Ae,Q))}}function ot(ae){return null!=ae?Ze(ze(ae)):null}function Ct(ae){if(!ae)return null;const Q=ae.filter(qe);return 0==Q.length?null:function(Ae){const se=tt(Ae,Q).map(it);return(0,A.D)(se).pipe((0,D.U)(rt))}}function De(ae){return null!=ae?Ct(ze(ae)):null}function ft(ae,Q){return null===ae?[Q]:Array.isArray(ae)?[...ae,Q]:[ae,Q]}function st(ae){return ae._rawValidators}function bt(ae){return ae._rawAsyncValidators}function _e(ae){return ae?Array.isArray(ae)?ae:[ae]:[]}function H(ae,Q){return Array.isArray(ae)?ae.includes(Q):ae===Q}function Te(ae,Q){const Ae=_e(Q);return _e(ae).forEach(Le=>{H(Ae,Le)||Ae.push(Le)}),Ae}function Me(ae,Q){return _e(Q).filter(Ae=>!H(ae,Ae))}class Pe{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(Q){this._rawValidators=Q||[],this._composedValidatorFn=ot(this._rawValidators)}_setAsyncValidators(Q){this._rawAsyncValidators=Q||[],this._composedAsyncValidatorFn=De(this._rawAsyncValidators)}get validator(){return this._composedValidatorFn||null}get asyncValidator(){return this._composedAsyncValidatorFn||null}_registerOnDestroy(Q){this._onDestroyCallbacks.push(Q)}_invokeOnDestroyCallbacks(){this._onDestroyCallbacks.forEach(Q=>Q()),this._onDestroyCallbacks=[]}reset(Q=void 0){this.control&&this.control.reset(Q)}hasError(Q,Ae){return!!this.control&&this.control.hasError(Q,Ae)}getError(Q,Ae){return this.control?this.control.getError(Q,Ae):null}}class dt extends Pe{get formDirective(){return null}get path(){return null}}class Pt extends Pe{constructor(){super(...arguments),this._parent=null,this.name=null,this.valueAccessor=null}}class Qt{constructor(Q){this._cd=Q}get isTouched(){var Q,Ae;return!(null==(Ae=null==(Q=this._cd)?void 0:Q.control)||!Ae.touched)}get isUntouched(){var Q,Ae;return!(null==(Ae=null==(Q=this._cd)?void 0:Q.control)||!Ae.untouched)}get isPristine(){var Q,Ae;return!(null==(Ae=null==(Q=this._cd)?void 0:Q.control)||!Ae.pristine)}get isDirty(){var Q,Ae;return!(null==(Ae=null==(Q=this._cd)?void 0:Q.control)||!Ae.dirty)}get isValid(){var Q,Ae;return!(null==(Ae=null==(Q=this._cd)?void 0:Q.control)||!Ae.valid)}get isInvalid(){var Q,Ae;return!(null==(Ae=null==(Q=this._cd)?void 0:Q.control)||!Ae.invalid)}get isPending(){var Q,Ae;return!(null==(Ae=null==(Q=this._cd)?void 0:Q.control)||!Ae.pending)}get isSubmitted(){var Q;return!(null==(Q=this._cd)||!Q.submitted)}}let ne=(()=>{var ae;class Q extends Qt{constructor(se){super(se)}}return(ae=Q).\u0275fac=function(se){return new(se||ae)(a.Y36(Pt,2))},ae.\u0275dir=a.lG2({type:ae,selectors:[["","formControlName",""],["","ngModel",""],["","formControl",""]],hostVars:14,hostBindings:function(se,Le){2&se&&a.ekj("ng-untouched",Le.isUntouched)("ng-touched",Le.isTouched)("ng-pristine",Le.isPristine)("ng-dirty",Le.isDirty)("ng-valid",Le.isValid)("ng-invalid",Le.isInvalid)("ng-pending",Le.isPending)},features:[a.qOj]}),Q})(),ce=(()=>{var ae;class Q extends Qt{constructor(se){super(se)}}return(ae=Q).\u0275fac=function(se){return new(se||ae)(a.Y36(dt,10))},ae.\u0275dir=a.lG2({type:ae,selectors:[["","formGroupName",""],["","formArrayName",""],["","ngModelGroup",""],["","formGroup",""],["form",3,"ngNoForm",""],["","ngForm",""]],hostVars:16,hostBindings:function(se,Le){2&se&&a.ekj("ng-untouched",Le.isUntouched)("ng-touched",Le.isTouched)("ng-pristine",Le.isPristine)("ng-dirty",Le.isDirty)("ng-valid",Le.isValid)("ng-invalid",Le.isInvalid)("ng-pending",Le.isPending)("ng-submitted",Le.isSubmitted)},features:[a.qOj]}),Q})();const Kt="VALID",xt="INVALID",Mt="PENDING",pt="DISABLED";function St(ae){return(vt(ae)?ae.validators:ae)||null}function Ye(ae,Q){return(vt(Q)?Q.asyncValidators:ae)||null}function vt(ae){return null!=ae&&!Array.isArray(ae)&&"object"==typeof ae}function ye(ae,Q,Ae){const se=ae.controls;if(!(Q?Object.keys(se):se).length)throw new a.vHH(1e3,"");if(!se[Ae])throw new a.vHH(1001,"")}function we(ae,Q,Ae){ae._forEachChild((se,Le)=>{if(void 0===Ae[Le])throw new a.vHH(1002,"")})}class ge{constructor(Q,Ae){this._pendingDirty=!1,this._hasOwnPendingAsyncValidator=!1,this._pendingTouched=!1,this._onCollectionChange=()=>{},this._parent=null,this.pristine=!0,this.touched=!1,this._onDisabledChange=[],this._assignValidators(Q),this._assignAsyncValidators(Ae)}get validator(){return this._composedValidatorFn}set validator(Q){this._rawValidators=this._composedValidatorFn=Q}get asyncValidator(){return this._composedAsyncValidatorFn}set asyncValidator(Q){this._rawAsyncValidators=this._composedAsyncValidatorFn=Q}get parent(){return this._parent}get valid(){return this.status===Kt}get invalid(){return this.status===xt}get pending(){return this.status==Mt}get disabled(){return this.status===pt}get enabled(){return this.status!==pt}get dirty(){return!this.pristine}get untouched(){return!this.touched}get updateOn(){return this._updateOn?this._updateOn:this.parent?this.parent.updateOn:"change"}setValidators(Q){this._assignValidators(Q)}setAsyncValidators(Q){this._assignAsyncValidators(Q)}addValidators(Q){this.setValidators(Te(Q,this._rawValidators))}addAsyncValidators(Q){this.setAsyncValidators(Te(Q,this._rawAsyncValidators))}removeValidators(Q){this.setValidators(Me(Q,this._rawValidators))}removeAsyncValidators(Q){this.setAsyncValidators(Me(Q,this._rawAsyncValidators))}hasValidator(Q){return H(this._rawValidators,Q)}hasAsyncValidator(Q){return H(this._rawAsyncValidators,Q)}clearValidators(){this.validator=null}clearAsyncValidators(){this.asyncValidator=null}markAsTouched(Q={}){this.touched=!0,this._parent&&!Q.onlySelf&&this._parent.markAsTouched(Q)}markAllAsTouched(){this.markAsTouched({onlySelf:!0}),this._forEachChild(Q=>Q.markAllAsTouched())}markAsUntouched(Q={}){this.touched=!1,this._pendingTouched=!1,this._forEachChild(Ae=>{Ae.markAsUntouched({onlySelf:!0})}),this._parent&&!Q.onlySelf&&this._parent._updateTouched(Q)}markAsDirty(Q={}){this.pristine=!1,this._parent&&!Q.onlySelf&&this._parent.markAsDirty(Q)}markAsPristine(Q={}){this.pristine=!0,this._pendingDirty=!1,this._forEachChild(Ae=>{Ae.markAsPristine({onlySelf:!0})}),this._parent&&!Q.onlySelf&&this._parent._updatePristine(Q)}markAsPending(Q={}){this.status=Mt,!1!==Q.emitEvent&&this.statusChanges.emit(this.status),this._parent&&!Q.onlySelf&&this._parent.markAsPending(Q)}disable(Q={}){const Ae=this._parentMarkedDirty(Q.onlySelf);this.status=pt,this.errors=null,this._forEachChild(se=>{se.disable({...Q,onlySelf:!0})}),this._updateValue(),!1!==Q.emitEvent&&(this.valueChanges.emit(this.value),this.statusChanges.emit(this.status)),this._updateAncestors({...Q,skipPristineCheck:Ae}),this._onDisabledChange.forEach(se=>se(!0))}enable(Q={}){const Ae=this._parentMarkedDirty(Q.onlySelf);this.status=Kt,this._forEachChild(se=>{se.enable({...Q,onlySelf:!0})}),this.updateValueAndValidity({onlySelf:!0,emitEvent:Q.emitEvent}),this._updateAncestors({...Q,skipPristineCheck:Ae}),this._onDisabledChange.forEach(se=>se(!1))}_updateAncestors(Q){this._parent&&!Q.onlySelf&&(this._parent.updateValueAndValidity(Q),Q.skipPristineCheck||this._parent._updatePristine(),this._parent._updateTouched())}setParent(Q){this._parent=Q}getRawValue(){return this.value}updateValueAndValidity(Q={}){this._setInitialStatus(),this._updateValue(),this.enabled&&(this._cancelExistingSubscription(),this.errors=this._runValidator(),this.status=this._calculateStatus(),(this.status===Kt||this.status===Mt)&&this._runAsyncValidator(Q.emitEvent)),!1!==Q.emitEvent&&(this.valueChanges.emit(this.value),this.statusChanges.emit(this.status)),this._parent&&!Q.onlySelf&&this._parent.updateValueAndValidity(Q)}_updateTreeValidity(Q={emitEvent:!0}){this._forEachChild(Ae=>Ae._updateTreeValidity(Q)),this.updateValueAndValidity({onlySelf:!0,emitEvent:Q.emitEvent})}_setInitialStatus(){this.status=this._allControlsDisabled()?pt:Kt}_runValidator(){return this.validator?this.validator(this):null}_runAsyncValidator(Q){if(this.asyncValidator){this.status=Mt,this._hasOwnPendingAsyncValidator=!0;const Ae=it(this.asyncValidator(this));this._asyncValidationSubscription=Ae.subscribe(se=>{this._hasOwnPendingAsyncValidator=!1,this.setErrors(se,{emitEvent:Q})})}}_cancelExistingSubscription(){this._asyncValidationSubscription&&(this._asyncValidationSubscription.unsubscribe(),this._hasOwnPendingAsyncValidator=!1)}setErrors(Q,Ae={}){this.errors=Q,this._updateControlsErrors(!1!==Ae.emitEvent)}get(Q){let Ae=Q;return null==Ae||(Array.isArray(Ae)||(Ae=Ae.split(".")),0===Ae.length)?null:Ae.reduce((se,Le)=>se&&se._find(Le),this)}getError(Q,Ae){const se=Ae?this.get(Ae):this;return se&&se.errors?se.errors[Q]:null}hasError(Q,Ae){return!!this.getError(Q,Ae)}get root(){let Q=this;for(;Q._parent;)Q=Q._parent;return Q}_updateControlsErrors(Q){this.status=this._calculateStatus(),Q&&this.statusChanges.emit(this.status),this._parent&&this._parent._updateControlsErrors(Q)}_initObservables(){this.valueChanges=new a.vpe,this.statusChanges=new a.vpe}_calculateStatus(){return this._allControlsDisabled()?pt:this.errors?xt:this._hasOwnPendingAsyncValidator||this._anyControlsHaveStatus(Mt)?Mt:this._anyControlsHaveStatus(xt)?xt:Kt}_anyControlsHaveStatus(Q){return this._anyControls(Ae=>Ae.status===Q)}_anyControlsDirty(){return this._anyControls(Q=>Q.dirty)}_anyControlsTouched(){return this._anyControls(Q=>Q.touched)}_updatePristine(Q={}){this.pristine=!this._anyControlsDirty(),this._parent&&!Q.onlySelf&&this._parent._updatePristine(Q)}_updateTouched(Q={}){this.touched=this._anyControlsTouched(),this._parent&&!Q.onlySelf&&this._parent._updateTouched(Q)}_registerOnCollectionChange(Q){this._onCollectionChange=Q}_setUpdateStrategy(Q){vt(Q)&&null!=Q.updateOn&&(this._updateOn=Q.updateOn)}_parentMarkedDirty(Q){return!Q&&!(!this._parent||!this._parent.dirty)&&!this._parent._anyControlsDirty()}_find(Q){return null}_assignValidators(Q){this._rawValidators=Array.isArray(Q)?Q.slice():Q,this._composedValidatorFn=function Zt(ae){return Array.isArray(ae)?ot(ae):ae||null}(this._rawValidators)}_assignAsyncValidators(Q){this._rawAsyncValidators=Array.isArray(Q)?Q.slice():Q,this._composedAsyncValidatorFn=function Ee(ae){return Array.isArray(ae)?De(ae):ae||null}(this._rawAsyncValidators)}}class T extends ge{constructor(Q,Ae,se){super(St(Ae),Ye(se,Ae)),this.controls=Q,this._initObservables(),this._setUpdateStrategy(Ae),this._setUpControls(),this.updateValueAndValidity({onlySelf:!0,emitEvent:!!this.asyncValidator})}registerControl(Q,Ae){return this.controls[Q]?this.controls[Q]:(this.controls[Q]=Ae,Ae.setParent(this),Ae._registerOnCollectionChange(this._onCollectionChange),Ae)}addControl(Q,Ae,se={}){this.registerControl(Q,Ae),this.updateValueAndValidity({emitEvent:se.emitEvent}),this._onCollectionChange()}removeControl(Q,Ae={}){this.controls[Q]&&this.controls[Q]._registerOnCollectionChange(()=>{}),delete this.controls[Q],this.updateValueAndValidity({emitEvent:Ae.emitEvent}),this._onCollectionChange()}setControl(Q,Ae,se={}){this.controls[Q]&&this.controls[Q]._registerOnCollectionChange(()=>{}),delete this.controls[Q],Ae&&this.registerControl(Q,Ae),this.updateValueAndValidity({emitEvent:se.emitEvent}),this._onCollectionChange()}contains(Q){return this.controls.hasOwnProperty(Q)&&this.controls[Q].enabled}setValue(Q,Ae={}){we(this,0,Q),Object.keys(Q).forEach(se=>{ye(this,!0,se),this.controls[se].setValue(Q[se],{onlySelf:!0,emitEvent:Ae.emitEvent})}),this.updateValueAndValidity(Ae)}patchValue(Q,Ae={}){null!=Q&&(Object.keys(Q).forEach(se=>{const Le=this.controls[se];Le&&Le.patchValue(Q[se],{onlySelf:!0,emitEvent:Ae.emitEvent})}),this.updateValueAndValidity(Ae))}reset(Q={},Ae={}){this._forEachChild((se,Le)=>{se.reset(Q?Q[Le]:null,{onlySelf:!0,emitEvent:Ae.emitEvent})}),this._updatePristine(Ae),this._updateTouched(Ae),this.updateValueAndValidity(Ae)}getRawValue(){return this._reduceChildren({},(Q,Ae,se)=>(Q[se]=Ae.getRawValue(),Q))}_syncPendingControls(){let Q=this._reduceChildren(!1,(Ae,se)=>!!se._syncPendingControls()||Ae);return Q&&this.updateValueAndValidity({onlySelf:!0}),Q}_forEachChild(Q){Object.keys(this.controls).forEach(Ae=>{const se=this.controls[Ae];se&&Q(se,Ae)})}_setUpControls(){this._forEachChild(Q=>{Q.setParent(this),Q._registerOnCollectionChange(this._onCollectionChange)})}_updateValue(){this.value=this._reduceValue()}_anyControls(Q){for(const[Ae,se]of Object.entries(this.controls))if(this.contains(Ae)&&Q(se))return!0;return!1}_reduceValue(){return this._reduceChildren({},(Ae,se,Le)=>((se.enabled||this.disabled)&&(Ae[Le]=se.value),Ae))}_reduceChildren(Q,Ae){let se=Q;return this._forEachChild((Le,on)=>{se=Ae(se,Le,on)}),se}_allControlsDisabled(){for(const Q of Object.keys(this.controls))if(this.controls[Q].enabled)return!1;return Object.keys(this.controls).length>0||this.disabled}_find(Q){return this.controls.hasOwnProperty(Q)?this.controls[Q]:null}}const V=T;class R extends T{}const le=new a.OlP("CallSetDisabledState",{providedIn:"root",factory:()=>ke}),ke="always";function ht(ae,Q){return[...Q.path,ae]}function Gt(ae,Q,Ae=ke){var se,Le;ut(ae,Q),Q.valueAccessor.writeValue(ae.value),(ae.disabled||"always"===Ae)&&(null==(Le=(se=Q.valueAccessor).setDisabledState)||Le.call(se,ae.disabled)),function Nt(ae,Q){Q.valueAccessor.registerOnChange(Ae=>{ae._pendingValue=Ae,ae._pendingChange=!0,ae._pendingDirty=!0,"change"===ae.updateOn&&qt(ae,Q)})}(ae,Q),function Yt(ae,Q){const Ae=(se,Le)=>{Q.valueAccessor.writeValue(se),Le&&Q.viewToModelUpdate(se)};ae.registerOnChange(Ae),Q._registerOnDestroy(()=>{ae._unregisterOnChange(Ae)})}(ae,Q),function Tt(ae,Q){Q.valueAccessor.registerOnTouched(()=>{ae._pendingTouched=!0,"blur"===ae.updateOn&&ae._pendingChange&&qt(ae,Q),"submit"!==ae.updateOn&&ae.markAsTouched()})}(ae,Q),function wn(ae,Q){if(Q.valueAccessor.setDisabledState){const Ae=se=>{Q.valueAccessor.setDisabledState(se)};ae.registerOnDisabledChange(Ae),Q._registerOnDestroy(()=>{ae._unregisterOnDisabledChange(Ae)})}}(ae,Q)}function Wt(ae,Q,Ae=!0){const se=()=>{};Q.valueAccessor&&(Q.valueAccessor.registerOnChange(se),Q.valueAccessor.registerOnTouched(se)),Xe(ae,Q),ae&&(Q._invokeOnDestroyCallbacks(),ae._registerOnCollectionChange(()=>{}))}function mn(ae,Q){ae.forEach(Ae=>{Ae.registerOnValidatorChange&&Ae.registerOnValidatorChange(Q)})}function ut(ae,Q){const Ae=st(ae);null!==Q.validator?ae.setValidators(ft(Ae,Q.validator)):"function"==typeof Ae&&ae.setValidators([Ae]);const se=bt(ae);null!==Q.asyncValidator?ae.setAsyncValidators(ft(se,Q.asyncValidator)):"function"==typeof se&&ae.setAsyncValidators([se]);const Le=()=>ae.updateValueAndValidity();mn(Q._rawValidators,Le),mn(Q._rawAsyncValidators,Le)}function Xe(ae,Q){let Ae=!1;if(null!==ae){if(null!==Q.validator){const Le=st(ae);if(Array.isArray(Le)&&Le.length>0){const on=Le.filter(vn=>vn!==Q.validator);on.length!==Le.length&&(Ae=!0,ae.setValidators(on))}}if(null!==Q.asyncValidator){const Le=bt(ae);if(Array.isArray(Le)&&Le.length>0){const on=Le.filter(vn=>vn!==Q.asyncValidator);on.length!==Le.length&&(Ae=!0,ae.setAsyncValidators(on))}}}const se=()=>{};return mn(Q._rawValidators,se),mn(Q._rawAsyncValidators,se),Ae}function qt(ae,Q){ae._pendingDirty&&ae.markAsDirty(),ae.setValue(ae._pendingValue,{emitModelToViewChange:!1}),Q.viewToModelUpdate(ae._pendingValue),ae._pendingChange=!1}function fn(ae,Q){ut(ae,Q)}function Ii(ae,Q){if(!ae.hasOwnProperty("model"))return!1;const Ae=ae.model;return!!Ae.isFirstChange()||!Object.is(Q,Ae.currentValue)}function Ji(ae,Q){ae._syncPendingControls(),Q.forEach(Ae=>{const se=Ae.control;"submit"===se.updateOn&&se._pendingChange&&(Ae.viewToModelUpdate(se._pendingValue),se._pendingChange=!1)})}function Qn(ae,Q){if(!Q)return null;let Ae,se,Le;return Array.isArray(Q),Q.forEach(on=>{on.constructor===P?Ae=on:function zi(ae){return Object.getPrototypeOf(ae.constructor)===E}(on)?se=on:Le=on}),Le||se||Ae||null}const Ki={provide:dt,useExisting:(0,a.Gpc)(()=>Ai)},qn=(()=>Promise.resolve())();let Ai=(()=>{var ae;class Q extends dt{constructor(se,Le,on){super(),this.callSetDisabledState=on,this.submitted=!1,this._directives=new Set,this.ngSubmit=new a.vpe,this.form=new T({},ot(se),De(Le))}ngAfterViewInit(){this._setUpdateStrategy()}get formDirective(){return this}get control(){return this.form}get path(){return[]}get controls(){return this.form.controls}addControl(se){qn.then(()=>{const Le=this._findContainer(se.path);se.control=Le.registerControl(se.name,se.control),Gt(se.control,se,this.callSetDisabledState),se.control.updateValueAndValidity({emitEvent:!1}),this._directives.add(se)})}getControl(se){return this.form.get(se.path)}removeControl(se){qn.then(()=>{const Le=this._findContainer(se.path);Le&&Le.removeControl(se.name),this._directives.delete(se)})}addFormGroup(se){qn.then(()=>{const Le=this._findContainer(se.path),on=new T({});fn(on,se),Le.registerControl(se.name,on),on.updateValueAndValidity({emitEvent:!1})})}removeFormGroup(se){qn.then(()=>{const Le=this._findContainer(se.path);Le&&Le.removeControl(se.name)})}getFormGroup(se){return this.form.get(se.path)}updateModel(se,Le){qn.then(()=>{this.form.get(se.path).setValue(Le)})}setValue(se){this.control.setValue(se)}onSubmit(se){var Le;return this.submitted=!0,Ji(this.form,this._directives),this.ngSubmit.emit(se),"dialog"===(null==(Le=null==se?void 0:se.target)?void 0:Le.method)}onReset(){this.resetForm()}resetForm(se=void 0){this.form.reset(se),this.submitted=!1}_setUpdateStrategy(){this.options&&null!=this.options.updateOn&&(this.form._updateOn=this.options.updateOn)}_findContainer(se){return se.pop(),se.length?this.form.get(se):this.form}}return(ae=Q).\u0275fac=function(se){return new(se||ae)(a.Y36(q,10),a.Y36(j,10),a.Y36(le,8))},ae.\u0275dir=a.lG2({type:ae,selectors:[["form",3,"ngNoForm","",3,"formGroup",""],["ng-form"],["","ngForm",""]],hostBindings:function(se,Le){1&se&&a.NdJ("submit",function(vn){return Le.onSubmit(vn)})("reset",function(){return Le.onReset()})},inputs:{options:["ngFormOptions","options"]},outputs:{ngSubmit:"ngSubmit"},exportAs:["ngForm"],features:[a._Bn([Ki]),a.qOj]}),Q})();function xi(ae,Q){const Ae=ae.indexOf(Q);Ae>-1&&ae.splice(Ae,1)}function Fi(ae){return"object"==typeof ae&&null!==ae&&2===Object.keys(ae).length&&"value"in ae&&"disabled"in ae}const ki=class extends ge{constructor(Q=null,Ae,se){super(St(Ae),Ye(se,Ae)),this.defaultValue=null,this._onChange=[],this._pendingChange=!1,this._applyFormState(Q),this._setUpdateStrategy(Ae),this._initObservables(),this.updateValueAndValidity({onlySelf:!0,emitEvent:!!this.asyncValidator}),vt(Ae)&&(Ae.nonNullable||Ae.initialValueIsDefault)&&(this.defaultValue=Fi(Q)?Q.value:Q)}setValue(Q,Ae={}){this.value=this._pendingValue=Q,this._onChange.length&&!1!==Ae.emitModelToViewChange&&this._onChange.forEach(se=>se(this.value,!1!==Ae.emitViewToModelChange)),this.updateValueAndValidity(Ae)}patchValue(Q,Ae={}){this.setValue(Q,Ae)}reset(Q=this.defaultValue,Ae={}){this._applyFormState(Q),this.markAsPristine(Ae),this.markAsUntouched(Ae),this.setValue(this.value,Ae),this._pendingChange=!1}_updateValue(){}_anyControls(Q){return!1}_allControlsDisabled(){return this.disabled}registerOnChange(Q){this._onChange.push(Q)}_unregisterOnChange(Q){xi(this._onChange,Q)}registerOnDisabledChange(Q){this._onDisabledChange.push(Q)}_unregisterOnDisabledChange(Q){xi(this._onDisabledChange,Q)}_forEachChild(Q){}_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(Q){Fi(Q)?(this.value=this._pendingValue=Q.value,Q.disabled?this.disable({onlySelf:!0,emitEvent:!1}):this.enable({onlySelf:!0,emitEvent:!1})):this.value=this._pendingValue=Q}},Hi=ki;let Ri=(()=>{var ae;class Q extends dt{ngOnInit(){this._checkParentType(),this.formDirective.addFormGroup(this)}ngOnDestroy(){this.formDirective&&this.formDirective.removeFormGroup(this)}get control(){return this.formDirective.getFormGroup(this)}get path(){return ht(null==this.name?this.name:this.name.toString(),this._parent)}get formDirective(){return this._parent?this._parent.formDirective:null}_checkParentType(){}}return(ae=Q).\u0275fac=function(){let Ae;return function(Le){return(Ae||(Ae=a.n5z(ae)))(Le||ae)}}(),ae.\u0275dir=a.lG2({type:ae,features:[a.qOj]}),Q})();const Mo={provide:Pt,useExisting:(0,a.Gpc)(()=>qi)},Oo=(()=>Promise.resolve())();let qi=(()=>{var ae;class Q extends Pt{constructor(se,Le,on,vn,Er,go){super(),this._changeDetectorRef=Er,this.callSetDisabledState=go,this.control=new ki,this._registered=!1,this.name="",this.update=new a.vpe,this._parent=se,this._setValidators(Le),this._setAsyncValidators(on),this.valueAccessor=Qn(0,vn)}ngOnChanges(se){if(this._checkForErrors(),!this._registered||"name"in se){if(this._registered&&(this._checkName(),this.formDirective)){const Le=se.name.previousValue;this.formDirective.removeControl({name:Le,path:this._getPath(Le)})}this._setUpControl()}"isDisabled"in se&&this._updateDisabled(se),Ii(se,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(se){this.viewModel=se,this.update.emit(se)}_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(){Gt(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(se){Oo.then(()=>{var Le;this.control.setValue(se,{emitViewToModelChange:!1}),null==(Le=this._changeDetectorRef)||Le.markForCheck()})}_updateDisabled(se){const Le=se.isDisabled.currentValue,on=0!==Le&&(0,a.VuI)(Le);Oo.then(()=>{var vn;on&&!this.control.disabled?this.control.disable():!on&&this.control.disabled&&this.control.enable(),null==(vn=this._changeDetectorRef)||vn.markForCheck()})}_getPath(se){return this._parent?ht(se,this._parent):[se]}}return(ae=Q).\u0275fac=function(se){return new(se||ae)(a.Y36(dt,9),a.Y36(q,10),a.Y36(j,10),a.Y36(f,10),a.Y36(a.sBO,8),a.Y36(le,8))},ae.\u0275dir=a.lG2({type:ae,selectors:[["","ngModel","",3,"formControlName","",3,"formControl",""]],inputs:{name:"name",isDisabled:["disabled","isDisabled"],model:["ngModel","model"],options:["ngModelOptions","options"]},outputs:{update:"ngModelChange"},exportAs:["ngModel"],features:[a._Bn([Mo]),a.qOj,a.TTD]}),Q})(),Hr=(()=>{var ae;class Q{}return(ae=Q).\u0275fac=function(se){return new(se||ae)},ae.\u0275dir=a.lG2({type:ae,selectors:[["form",3,"ngNoForm","",3,"ngNativeValidate",""]],hostAttrs:["novalidate",""]}),Q})(),Go=(()=>{var ae;class Q{}return(ae=Q).\u0275fac=function(se){return new(se||ae)},ae.\u0275mod=a.oAB({type:ae}),ae.\u0275inj=a.cJS({}),Q})();const ii=new a.OlP("NgModelWithFormControlWarning"),or={provide:Pt,useExisting:(0,a.Gpc)(()=>er)};let er=(()=>{var ae;class Q extends Pt{set isDisabled(se){}constructor(se,Le,on,vn,Er){super(),this._ngModelWarningConfig=vn,this.callSetDisabledState=Er,this.update=new a.vpe,this._ngModelWarningSent=!1,this._setValidators(se),this._setAsyncValidators(Le),this.valueAccessor=Qn(0,on)}ngOnChanges(se){if(this._isControlChanged(se)){const Le=se.form.previousValue;Le&&Wt(Le,this,!1),Gt(this.form,this,this.callSetDisabledState),this.form.updateValueAndValidity({emitEvent:!1})}Ii(se,this.viewModel)&&(this.form.setValue(this.model),this.viewModel=this.model)}ngOnDestroy(){this.form&&Wt(this.form,this,!1)}get path(){return[]}get control(){return this.form}viewToModelUpdate(se){this.viewModel=se,this.update.emit(se)}_isControlChanged(se){return se.hasOwnProperty("form")}}return(ae=Q)._ngModelWarningSentOnce=!1,ae.\u0275fac=function(se){return new(se||ae)(a.Y36(q,10),a.Y36(j,10),a.Y36(f,10),a.Y36(ii,8),a.Y36(le,8))},ae.\u0275dir=a.lG2({type:ae,selectors:[["","formControl",""]],inputs:{form:["formControl","form"],isDisabled:["disabled","isDisabled"],model:["ngModel","model"]},outputs:{update:"ngModelChange"},exportAs:["ngForm"],features:[a._Bn([or]),a.qOj,a.TTD]}),Q})();const xr={provide:dt,useExisting:(0,a.Gpc)(()=>ur)};let ur=(()=>{var ae;class Q extends dt{constructor(se,Le,on){super(),this.callSetDisabledState=on,this.submitted=!1,this._onCollectionChange=()=>this._updateDomValue(),this.directives=[],this.form=null,this.ngSubmit=new a.vpe,this._setValidators(se),this._setAsyncValidators(Le)}ngOnChanges(se){this._checkFormPresent(),se.hasOwnProperty("form")&&(this._updateValidators(),this._updateDomValue(),this._updateRegistrations(),this._oldForm=this.form)}ngOnDestroy(){this.form&&(Xe(this.form,this),this.form._onCollectionChange===this._onCollectionChange&&this.form._registerOnCollectionChange(()=>{}))}get formDirective(){return this}get control(){return this.form}get path(){return[]}addControl(se){const Le=this.form.get(se.path);return Gt(Le,se,this.callSetDisabledState),Le.updateValueAndValidity({emitEvent:!1}),this.directives.push(se),Le}getControl(se){return this.form.get(se.path)}removeControl(se){Wt(se.control||null,se,!1),function oi(ae,Q){const Ae=ae.indexOf(Q);Ae>-1&&ae.splice(Ae,1)}(this.directives,se)}addFormGroup(se){this._setUpFormContainer(se)}removeFormGroup(se){this._cleanUpFormContainer(se)}getFormGroup(se){return this.form.get(se.path)}addFormArray(se){this._setUpFormContainer(se)}removeFormArray(se){this._cleanUpFormContainer(se)}getFormArray(se){return this.form.get(se.path)}updateModel(se,Le){this.form.get(se.path).setValue(Le)}onSubmit(se){var Le;return this.submitted=!0,Ji(this.form,this.directives),this.ngSubmit.emit(se),"dialog"===(null==(Le=null==se?void 0:se.target)?void 0:Le.method)}onReset(){this.resetForm()}resetForm(se=void 0){this.form.reset(se),this.submitted=!1}_updateDomValue(){this.directives.forEach(se=>{const Le=se.control,on=this.form.get(se.path);Le!==on&&(Wt(Le||null,se),(ae=>ae instanceof ki)(on)&&(Gt(on,se,this.callSetDisabledState),se.control=on))}),this.form._updateTreeValidity({emitEvent:!1})}_setUpFormContainer(se){const Le=this.form.get(se.path);fn(Le,se),Le.updateValueAndValidity({emitEvent:!1})}_cleanUpFormContainer(se){if(this.form){const Le=this.form.get(se.path);Le&&function dn(ae,Q){return Xe(ae,Q)}(Le,se)&&Le.updateValueAndValidity({emitEvent:!1})}}_updateRegistrations(){this.form._registerOnCollectionChange(this._onCollectionChange),this._oldForm&&this._oldForm._registerOnCollectionChange(()=>{})}_updateValidators(){ut(this.form,this),this._oldForm&&Xe(this._oldForm,this)}_checkFormPresent(){}}return(ae=Q).\u0275fac=function(se){return new(se||ae)(a.Y36(q,10),a.Y36(j,10),a.Y36(le,8))},ae.\u0275dir=a.lG2({type:ae,selectors:[["","formGroup",""]],hostBindings:function(se,Le){1&se&&a.NdJ("submit",function(vn){return Le.onSubmit(vn)})("reset",function(){return Le.onReset()})},inputs:{form:["formGroup","form"]},outputs:{ngSubmit:"ngSubmit"},exportAs:["ngForm"],features:[a._Bn([xr]),a.qOj,a.TTD]}),Q})();const ta={provide:dt,useExisting:(0,a.Gpc)(()=>vo)};let vo=(()=>{var ae;class Q extends Ri{constructor(se,Le,on){super(),this.name=null,this._parent=se,this._setValidators(Le),this._setAsyncValidators(on)}_checkParentType(){Ps(this._parent)}}return(ae=Q).\u0275fac=function(se){return new(se||ae)(a.Y36(dt,13),a.Y36(q,10),a.Y36(j,10))},ae.\u0275dir=a.lG2({type:ae,selectors:[["","formGroupName",""]],inputs:{name:["formGroupName","name"]},features:[a._Bn([ta]),a.qOj]}),Q})();const yo={provide:dt,useExisting:(0,a.Gpc)(()=>zo)};let zo=(()=>{var ae;class Q extends dt{constructor(se,Le,on){super(),this.name=null,this._parent=se,this._setValidators(Le),this._setAsyncValidators(on)}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 ht(null==this.name?this.name:this.name.toString(),this._parent)}_checkParentType(){Ps(this._parent)}}return(ae=Q).\u0275fac=function(se){return new(se||ae)(a.Y36(dt,13),a.Y36(q,10),a.Y36(j,10))},ae.\u0275dir=a.lG2({type:ae,selectors:[["","formArrayName",""]],inputs:{name:["formArrayName","name"]},features:[a._Bn([yo]),a.qOj]}),Q})();function Ps(ae){return!(ae instanceof vo||ae instanceof ur||ae instanceof zo)}const Pi={provide:Pt,useExisting:(0,a.Gpc)(()=>gn)};let gn=(()=>{var ae;class Q extends Pt{set isDisabled(se){}constructor(se,Le,on,vn,Er){super(),this._ngModelWarningConfig=Er,this._added=!1,this.name=null,this.update=new a.vpe,this._ngModelWarningSent=!1,this._parent=se,this._setValidators(Le),this._setAsyncValidators(on),this.valueAccessor=Qn(0,vn)}ngOnChanges(se){this._added||this._setUpControl(),Ii(se,this.viewModel)&&(this.viewModel=this.model,this.formDirective.updateModel(this,this.model))}ngOnDestroy(){this.formDirective&&this.formDirective.removeControl(this)}viewToModelUpdate(se){this.viewModel=se,this.update.emit(se)}get path(){return ht(null==this.name?this.name:this.name.toString(),this._parent)}get formDirective(){return this._parent?this._parent.formDirective:null}_checkParentType(){}_setUpControl(){this._checkParentType(),this.control=this.formDirective.addControl(this),this._added=!0}}return(ae=Q)._ngModelWarningSentOnce=!1,ae.\u0275fac=function(se){return new(se||ae)(a.Y36(dt,13),a.Y36(q,10),a.Y36(j,10),a.Y36(f,10),a.Y36(ii,8))},ae.\u0275dir=a.lG2({type:ae,selectors:[["","formControlName",""]],inputs:{name:["formControlName","name"],isDisabled:["disabled","isDisabled"],model:["ngModel","model"]},outputs:{update:"ngModelChange"},features:[a._Bn([Pi]),a.qOj,a.TTD]}),Q})();let li=(()=>{var ae;class Q{constructor(){this._validator=Je}ngOnChanges(se){if(this.inputName in se){const Le=this.normalizeInput(se[this.inputName].currentValue);this._enabled=this.enabled(Le),this._validator=this._enabled?this.createValidator(Le):Je,this._onChange&&this._onChange()}}validate(se){return this._validator(se)}registerOnValidatorChange(se){this._onChange=se}enabled(se){return null!=se}}return(ae=Q).\u0275fac=function(se){return new(se||ae)},ae.\u0275dir=a.lG2({type:ae,features:[a.TTD]}),Q})();const na={provide:q,useExisting:(0,a.Gpc)(()=>Fr),multi:!0},Zr={provide:q,useExisting:(0,a.Gpc)(()=>Zi),multi:!0};let Fr=(()=>{var ae;class Q extends li{constructor(){super(...arguments),this.inputName="required",this.normalizeInput=a.VuI,this.createValidator=se=>X}enabled(se){return se}}return(ae=Q).\u0275fac=function(){let Ae;return function(Le){return(Ae||(Ae=a.n5z(ae)))(Le||ae)}}(),ae.\u0275dir=a.lG2({type:ae,selectors:[["","required","","formControlName","",3,"type","checkbox"],["","required","","formControl","",3,"type","checkbox"],["","required","","ngModel","",3,"type","checkbox"]],hostVars:1,hostBindings:function(se,Le){2&se&&a.uIk("required",Le._enabled?"":null)},inputs:{required:"required"},features:[a._Bn([na]),a.qOj]}),Q})(),Zi=(()=>{var ae;class Q extends Fr{constructor(){super(...arguments),this.createValidator=se=>de}}return(ae=Q).\u0275fac=function(){let Ae;return function(Le){return(Ae||(Ae=a.n5z(ae)))(Le||ae)}}(),ae.\u0275dir=a.lG2({type:ae,selectors:[["input","type","checkbox","required","","formControlName",""],["input","type","checkbox","required","","formControl",""],["input","type","checkbox","required","","ngModel",""]],hostVars:1,hostBindings:function(se,Le){2&se&&a.uIk("required",Le._enabled?"":null)},features:[a._Bn([Zr]),a.qOj]}),Q})();const fo={provide:q,useExisting:(0,a.Gpc)(()=>yr),multi:!0};let yr=(()=>{var ae;class Q extends li{constructor(){super(...arguments),this.inputName="maxlength",this.normalizeInput=se=>function tr(ae){return"number"==typeof ae?ae:parseInt(ae,10)}(se),this.createValidator=se=>pe(se)}}return(ae=Q).\u0275fac=function(){let Ae;return function(Le){return(Ae||(Ae=a.n5z(ae)))(Le||ae)}}(),ae.\u0275dir=a.lG2({type:ae,selectors:[["","maxlength","","formControlName",""],["","maxlength","","formControl",""],["","maxlength","","ngModel",""]],hostVars:1,hostBindings:function(se,Le){2&se&&a.uIk("maxlength",Le._enabled?Le.maxlength:null)},inputs:{maxlength:"maxlength"},features:[a._Bn([fo]),a.qOj]}),Q})(),ar=(()=>{var ae;class Q{}return(ae=Q).\u0275fac=function(se){return new(se||ae)},ae.\u0275mod=a.oAB({type:ae}),ae.\u0275inj=a.cJS({imports:[Go]}),Q})();class Vi extends ge{constructor(Q,Ae,se){super(St(Ae),Ye(se,Ae)),this.controls=Q,this._initObservables(),this._setUpdateStrategy(Ae),this._setUpControls(),this.updateValueAndValidity({onlySelf:!0,emitEvent:!!this.asyncValidator})}at(Q){return this.controls[this._adjustIndex(Q)]}push(Q,Ae={}){this.controls.push(Q),this._registerControl(Q),this.updateValueAndValidity({emitEvent:Ae.emitEvent}),this._onCollectionChange()}insert(Q,Ae,se={}){this.controls.splice(Q,0,Ae),this._registerControl(Ae),this.updateValueAndValidity({emitEvent:se.emitEvent})}removeAt(Q,Ae={}){let se=this._adjustIndex(Q);se<0&&(se=0),this.controls[se]&&this.controls[se]._registerOnCollectionChange(()=>{}),this.controls.splice(se,1),this.updateValueAndValidity({emitEvent:Ae.emitEvent})}setControl(Q,Ae,se={}){let Le=this._adjustIndex(Q);Le<0&&(Le=0),this.controls[Le]&&this.controls[Le]._registerOnCollectionChange(()=>{}),this.controls.splice(Le,1),Ae&&(this.controls.splice(Le,0,Ae),this._registerControl(Ae)),this.updateValueAndValidity({emitEvent:se.emitEvent}),this._onCollectionChange()}get length(){return this.controls.length}setValue(Q,Ae={}){we(this,0,Q),Q.forEach((se,Le)=>{ye(this,!1,Le),this.at(Le).setValue(se,{onlySelf:!0,emitEvent:Ae.emitEvent})}),this.updateValueAndValidity(Ae)}patchValue(Q,Ae={}){null!=Q&&(Q.forEach((se,Le)=>{this.at(Le)&&this.at(Le).patchValue(se,{onlySelf:!0,emitEvent:Ae.emitEvent})}),this.updateValueAndValidity(Ae))}reset(Q=[],Ae={}){this._forEachChild((se,Le)=>{se.reset(Q[Le],{onlySelf:!0,emitEvent:Ae.emitEvent})}),this._updatePristine(Ae),this._updateTouched(Ae),this.updateValueAndValidity(Ae)}getRawValue(){return this.controls.map(Q=>Q.getRawValue())}clear(Q={}){this.controls.length<1||(this._forEachChild(Ae=>Ae._registerOnCollectionChange(()=>{})),this.controls.splice(0),this.updateValueAndValidity({emitEvent:Q.emitEvent}))}_adjustIndex(Q){return Q<0?Q+this.length:Q}_syncPendingControls(){let Q=this.controls.reduce((Ae,se)=>!!se._syncPendingControls()||Ae,!1);return Q&&this.updateValueAndValidity({onlySelf:!0}),Q}_forEachChild(Q){this.controls.forEach((Ae,se)=>{Q(Ae,se)})}_updateValue(){this.value=this.controls.filter(Q=>Q.enabled||this.disabled).map(Q=>Q.value)}_anyControls(Q){return this.controls.some(Ae=>Ae.enabled&&Q(Ae))}_setUpControls(){this._forEachChild(Q=>this._registerControl(Q))}_allControlsDisabled(){for(const Q of this.controls)if(Q.enabled)return!1;return this.controls.length>0||this.disabled}_registerControl(Q){Q.setParent(this),Q._registerOnCollectionChange(this._onCollectionChange)}_find(Q){return this.at(Q)??null}}const ci=Vi;function Ns(ae){return!!ae&&(void 0!==ae.asyncValidators||void 0!==ae.validators||void 0!==ae.updateOn)}let fr=(()=>{var ae;class Q{constructor(){this.useNonNullable=!1}get nonNullable(){const se=new Q;return se.useNonNullable=!0,se}group(se,Le=null){const on=this._reduceControls(se);let vn={};return Ns(Le)?vn=Le:null!==Le&&(vn.validators=Le.validator,vn.asyncValidators=Le.asyncValidator),new T(on,vn)}record(se,Le=null){const on=this._reduceControls(se);return new R(on,Le)}control(se,Le,on){let vn={};return this.useNonNullable?(Ns(Le)?vn=Le:(vn.validators=Le,vn.asyncValidators=on),new ki(se,{...vn,nonNullable:!0})):new ki(se,Le,on)}array(se,Le,on){const vn=se.map(Er=>this._createControl(Er));return new Vi(vn,Le,on)}_reduceControls(se){const Le={};return Object.keys(se).forEach(on=>{Le[on]=this._createControl(se[on])}),Le}_createControl(se){return se instanceof ki||se instanceof ge?se:Array.isArray(se)?this.control(se[0],se.length>1?se[1]:null,se.length>2?se[2]:null):this.control(se)}}return(ae=Q).\u0275fac=function(se){return new(se||ae)},ae.\u0275prov=a.Yz7({token:ae,factory:ae.\u0275fac,providedIn:"root"}),Q})(),Vo=(()=>{var ae;class Q extends fr{group(se,Le=null){return super.group(se,Le)}control(se,Le,on){return super.control(se,Le,on)}array(se,Le,on){return super.array(se,Le,on)}}return(ae=Q).\u0275fac=function(){let Ae;return function(Le){return(Ae||(Ae=a.n5z(ae)))(Le||ae)}}(),ae.\u0275prov=a.Yz7({token:ae,factory:ae.\u0275fac,providedIn:"root"}),Q})(),rl=(()=>{var ae;class Q{static withConfig(se){return{ngModule:Q,providers:[{provide:le,useValue:se.callSetDisabledState??ke}]}}}return(ae=Q).\u0275fac=function(se){return new(se||ae)},ae.\u0275mod=a.oAB({type:ae}),ae.\u0275inj=a.cJS({imports:[ar]}),Q})(),Ks=(()=>{var ae;class Q{static withConfig(se){return{ngModule:Q,providers:[{provide:ii,useValue:se.warnOnNgModelWithFormControl??"always"},{provide:le,useValue:se.callSetDisabledState??ke}]}}}return(ae=Q).\u0275fac=function(se){return new(se||ae)},ae.\u0275mod=a.oAB({type:ae}),ae.\u0275inj=a.cJS({imports:[ar]}),Q})()},23680:(Qe,he,s)=>{"use strict";s.d(he,{rD:()=>Me,K7:()=>We,HF:()=>Ot,Y2:()=>oe,BQ:()=>re,rN:()=>xt,nP:()=>xe,us:()=>at,wG:()=>Ce,si:()=>ve,IR:()=>gt,DH:()=>kt,MP:()=>Mt,CB:()=>St,jH:()=>Zt,pj:()=>qe,Kr:()=>it,Id:()=>Je,FD:()=>tt,dB:()=>_t,sb:()=>rt});var a=s(65879),r=s(4300),b=s(49388),D=s(96814),p=s(62831),E=s(42495),f=s(54699),c=s(72079),C=s(36028);const P=["text"],de=new a.OlP("mat-sanity-checks",{providedIn:"root",factory:function X(){return!0}});let re=(()=>{var G;class R{constructor(le,ke,ht){this._sanityChecks=ke,this._document=ht,this._hasDoneGlobalChecks=!1,le._applyBodyHighContrastModeCssClasses(),this._hasDoneGlobalChecks||(this._hasDoneGlobalChecks=!0)}_checkIsEnabled(le){return!(0,p.Oy)()&&("boolean"==typeof this._sanityChecks?this._sanityChecks:!!this._sanityChecks[le])}}return(G=R).\u0275fac=function(le){return new(le||G)(a.LFG(r.qm),a.LFG(de,8),a.LFG(D.K0))},G.\u0275mod=a.oAB({type:G}),G.\u0275inj=a.cJS({imports:[b.vT,b.vT]}),R})();function Je(G){return class extends G{get disabled(){return this._disabled}set disabled(R){this._disabled=(0,E.Ig)(R)}constructor(...R){super(...R),this._disabled=!1}}}function qe(G,R){return class extends G{get color(){return this._color}set color(Y){const le=Y||this.defaultColor;le!==this._color&&(this._color&&this._elementRef.nativeElement.classList.remove(`mat-${this._color}`),le&&this._elementRef.nativeElement.classList.add(`mat-${le}`),this._color=le)}constructor(...Y){super(...Y),this.defaultColor=R,this.color=R}}}function it(G){return class extends G{get disableRipple(){return this._disableRipple}set disableRipple(R){this._disableRipple=(0,E.Ig)(R)}constructor(...R){super(...R),this._disableRipple=!1}}}function rt(G,R=0){return class extends G{get tabIndex(){return this.disabled?-1:this._tabIndex}set tabIndex(Y){this._tabIndex=null!=Y?(0,E.su)(Y):this.defaultTabIndex}constructor(...Y){super(...Y),this._tabIndex=R,this.defaultTabIndex=R}}}function tt(G){return class extends G{updateErrorState(){const R=this.errorState,ht=(this.errorStateMatcher||this._defaultErrorStateMatcher).isErrorState(this.ngControl?this.ngControl.control:null,this._parentFormGroup||this._parentForm);ht!==R&&(this.errorState=ht,this.stateChanges.next())}constructor(...R){super(...R),this.errorState=!1}}}function _t(G){return class extends G{constructor(...R){super(...R),this._isInitialized=!1,this._pendingSubscribers=[],this.initialized=new f.y(Y=>{this._isInitialized?this._notifySubscriber(Y):this._pendingSubscribers.push(Y)})}_markInitialized(){this._isInitialized=!0,this._pendingSubscribers.forEach(this._notifySubscriber),this._pendingSubscribers=null}_notifySubscriber(R){R.next(),R.complete()}}}let Me=(()=>{var G;class R{isErrorState(le,ke){return!!(le&&le.invalid&&(le.touched||ke&&ke.submitted))}}return(G=R).\u0275fac=function(le){return new(le||G)},G.\u0275prov=a.Yz7({token:G,factory:G.\u0275fac,providedIn:"root"}),R})();class cn{constructor(R,Y,le,ke=!1){this._renderer=R,this.element=Y,this.config=le,this._animationForciblyDisabledThroughCss=ke,this.state=3}fadeOut(){this._renderer.fadeOutRipple(this)}}const Ie=(0,p.i$)({passive:!0,capture:!0});class ne{constructor(){this._events=new Map,this._delegateEventHandler=R=>{var le;const Y=(0,p.sA)(R);Y&&(null==(le=this._events.get(R.type))||le.forEach((ke,ht)=>{(ht===Y||ht.contains(Y))&&ke.forEach(Gt=>Gt.handleEvent(R))}))}}addHandler(R,Y,le,ke){const ht=this._events.get(Y);if(ht){const Gt=ht.get(le);Gt?Gt.add(ke):ht.set(le,new Set([ke]))}else this._events.set(Y,new Map([[le,new Set([ke])]])),R.runOutsideAngular(()=>{document.addEventListener(Y,this._delegateEventHandler,Ie)})}removeHandler(R,Y,le){const ke=this._events.get(R);if(!ke)return;const ht=ke.get(Y);ht&&(ht.delete(le),0===ht.size&&ke.delete(Y),0===ke.size&&(this._events.delete(R),document.removeEventListener(R,this._delegateEventHandler,Ie)))}}const ce={enterDuration:225,exitDuration:150},mt=(0,p.i$)({passive:!0,capture:!0}),Ut=["mousedown","touchstart"],Bt=["mouseup","mouseleave","touchend","touchcancel"];class gt{constructor(R,Y,le,ke){this._target=R,this._ngZone=Y,this._platform=ke,this._isPointerDown=!1,this._activeRipples=new Map,this._pointerUpEventsRegistered=!1,ke.isBrowser&&(this._containerElement=(0,E.fI)(le))}fadeInRipple(R,Y,le={}){const ke=this._containerRect=this._containerRect||this._containerElement.getBoundingClientRect(),ht={...ce,...le.animation};le.centered&&(R=ke.left+ke.width/2,Y=ke.top+ke.height/2);const Gt=le.radius||function nt(G,R,Y){const le=Math.max(Math.abs(G-Y.left),Math.abs(G-Y.right)),ke=Math.max(Math.abs(R-Y.top),Math.abs(R-Y.bottom));return Math.sqrt(le*le+ke*ke)}(R,Y,ke),Wt=R-ke.left,mn=Y-ke.top,wn=ht.enterDuration,ut=document.createElement("div");ut.classList.add("mat-ripple-element"),ut.style.left=Wt-Gt+"px",ut.style.top=mn-Gt+"px",ut.style.height=2*Gt+"px",ut.style.width=2*Gt+"px",null!=le.color&&(ut.style.backgroundColor=le.color),ut.style.transitionDuration=`${wn}ms`,this._containerElement.appendChild(ut);const Xe=window.getComputedStyle(ut),Tt=Xe.transitionDuration,qt="none"===Xe.transitionProperty||"0s"===Tt||"0s, 0s"===Tt||0===ke.width&&0===ke.height,Yt=new cn(this,ut,le,qt);ut.style.transform="scale3d(1, 1, 1)",Yt.state=0,le.persistent||(this._mostRecentTransientRipple=Yt);let fn=null;return!qt&&(wn||ht.exitDuration)&&this._ngZone.runOutsideAngular(()=>{const dn=()=>this._finishRippleTransition(Yt),en=()=>this._destroyRipple(Yt);ut.addEventListener("transitionend",dn),ut.addEventListener("transitioncancel",en),fn={onTransitionEnd:dn,onTransitionCancel:en}}),this._activeRipples.set(Yt,fn),(qt||!wn)&&this._finishRippleTransition(Yt),Yt}fadeOutRipple(R){if(2===R.state||3===R.state)return;const Y=R.element,le={...ce,...R.config.animation};Y.style.transitionDuration=`${le.exitDuration}ms`,Y.style.opacity="0",R.state=2,(R._animationForciblyDisabledThroughCss||!le.exitDuration)&&this._finishRippleTransition(R)}fadeOutAll(){this._getActiveRipples().forEach(R=>R.fadeOut())}fadeOutAllNonPersistent(){this._getActiveRipples().forEach(R=>{R.config.persistent||R.fadeOut()})}setupTriggerEvents(R){const Y=(0,E.fI)(R);!this._platform.isBrowser||!Y||Y===this._triggerElement||(this._removeTriggerEvents(),this._triggerElement=Y,Ut.forEach(le=>{gt._eventManager.addHandler(this._ngZone,le,Y,this)}))}handleEvent(R){"mousedown"===R.type?this._onMousedown(R):"touchstart"===R.type?this._onTouchStart(R):this._onPointerUp(),this._pointerUpEventsRegistered||(this._ngZone.runOutsideAngular(()=>{Bt.forEach(Y=>{this._triggerElement.addEventListener(Y,this,mt)})}),this._pointerUpEventsRegistered=!0)}_finishRippleTransition(R){0===R.state?this._startFadeOutTransition(R):2===R.state&&this._destroyRipple(R)}_startFadeOutTransition(R){const Y=R===this._mostRecentTransientRipple,{persistent:le}=R.config;R.state=1,!le&&(!Y||!this._isPointerDown)&&R.fadeOut()}_destroyRipple(R){const Y=this._activeRipples.get(R)??null;this._activeRipples.delete(R),this._activeRipples.size||(this._containerRect=null),R===this._mostRecentTransientRipple&&(this._mostRecentTransientRipple=null),R.state=3,null!==Y&&(R.element.removeEventListener("transitionend",Y.onTransitionEnd),R.element.removeEventListener("transitioncancel",Y.onTransitionCancel)),R.element.remove()}_onMousedown(R){const Y=(0,r.X6)(R),le=this._lastTouchStartEvent&&Date.now(){!R.config.persistent&&(1===R.state||R.config.terminateOnPointerUp&&0===R.state)&&R.fadeOut()}))}_getActiveRipples(){return Array.from(this._activeRipples.keys())}_removeTriggerEvents(){const R=this._triggerElement;R&&(Ut.forEach(Y=>gt._eventManager.removeHandler(Y,R,this)),this._pointerUpEventsRegistered&&Bt.forEach(Y=>R.removeEventListener(Y,this,mt)))}}gt._eventManager=new ne;const oe=new a.OlP("mat-ripple-global-options");let Ce=(()=>{var G;class R{get disabled(){return this._disabled}set disabled(le){le&&this.fadeOutAllNonPersistent(),this._disabled=le,this._setupTriggerEventsIfEnabled()}get trigger(){return this._trigger||this._elementRef.nativeElement}set trigger(le){this._trigger=le,this._setupTriggerEventsIfEnabled()}constructor(le,ke,ht,Gt,Wt){this._elementRef=le,this._animationMode=Wt,this.radius=0,this._disabled=!1,this._isInitialized=!1,this._globalOptions=Gt||{},this._rippleRenderer=new gt(this,ke,le,ht)}ngOnInit(){this._isInitialized=!0,this._setupTriggerEventsIfEnabled()}ngOnDestroy(){this._rippleRenderer._removeTriggerEvents()}fadeOutAll(){this._rippleRenderer.fadeOutAll()}fadeOutAllNonPersistent(){this._rippleRenderer.fadeOutAllNonPersistent()}get rippleConfig(){return{centered:this.centered,radius:this.radius,color:this.color,animation:{...this._globalOptions.animation,..."NoopAnimations"===this._animationMode?{enterDuration:0,exitDuration:0}:{},...this.animation},terminateOnPointerUp:this._globalOptions.terminateOnPointerUp}}get rippleDisabled(){return this.disabled||!!this._globalOptions.disabled}_setupTriggerEventsIfEnabled(){!this.disabled&&this._isInitialized&&this._rippleRenderer.setupTriggerEvents(this.trigger)}launch(le,ke=0,ht){return"number"==typeof le?this._rippleRenderer.fadeInRipple(le,ke,{...this.rippleConfig,...ht}):this._rippleRenderer.fadeInRipple(0,0,{...this.rippleConfig,...le})}}return(G=R).\u0275fac=function(le){return new(le||G)(a.Y36(a.SBq),a.Y36(a.R0b),a.Y36(p.t4),a.Y36(oe,8),a.Y36(a.QbO,8))},G.\u0275dir=a.lG2({type:G,selectors:[["","mat-ripple",""],["","matRipple",""]],hostAttrs:[1,"mat-ripple"],hostVars:2,hostBindings:function(le,ke){2&le&&a.ekj("mat-ripple-unbounded",ke.unbounded)},inputs:{color:["matRippleColor","color"],unbounded:["matRippleUnbounded","unbounded"],centered:["matRippleCentered","centered"],radius:["matRippleRadius","radius"],animation:["matRippleAnimation","animation"],disabled:["matRippleDisabled","disabled"],trigger:["matRippleTrigger","trigger"]},exportAs:["matRipple"]}),R})(),ve=(()=>{var G;class R{}return(G=R).\u0275fac=function(le){return new(le||G)},G.\u0275mod=a.oAB({type:G}),G.\u0275inj=a.cJS({imports:[re,re]}),R})(),xe=(()=>{var G;class R{constructor(le){this._animationMode=le,this.state="unchecked",this.disabled=!1,this.appearance="full"}}return(G=R).\u0275fac=function(le){return new(le||G)(a.Y36(a.QbO,8))},G.\u0275cmp=a.Xpm({type:G,selectors:[["mat-pseudo-checkbox"]],hostAttrs:[1,"mat-pseudo-checkbox"],hostVars:12,hostBindings:function(le,ke){2&le&&a.ekj("mat-pseudo-checkbox-indeterminate","indeterminate"===ke.state)("mat-pseudo-checkbox-checked","checked"===ke.state)("mat-pseudo-checkbox-disabled",ke.disabled)("mat-pseudo-checkbox-minimal","minimal"===ke.appearance)("mat-pseudo-checkbox-full","full"===ke.appearance)("_mat-animation-noopable","NoopAnimations"===ke._animationMode)},inputs:{state:"state",disabled:"disabled",appearance:"appearance"},decls:0,vars:0,template:function(le,ke){},styles:['.mat-pseudo-checkbox{border-radius:2px;cursor:pointer;display:inline-block;vertical-align:middle;box-sizing:border-box;position:relative;flex-shrink:0;transition:border-color 90ms cubic-bezier(0, 0, 0.2, 0.1),background-color 90ms cubic-bezier(0, 0, 0.2, 0.1)}.mat-pseudo-checkbox::after{position:absolute;opacity:0;content:"";border-bottom:2px solid currentColor;transition:opacity 90ms cubic-bezier(0, 0, 0.2, 0.1)}.mat-pseudo-checkbox._mat-animation-noopable{transition:none !important;animation:none !important}.mat-pseudo-checkbox._mat-animation-noopable::after{transition:none}.mat-pseudo-checkbox-disabled{cursor:default}.mat-pseudo-checkbox-indeterminate::after{left:1px;opacity:1;border-radius:2px}.mat-pseudo-checkbox-checked::after{left:1px;border-left:2px solid currentColor;transform:rotate(-45deg);opacity:1;box-sizing:content-box}.mat-pseudo-checkbox-full{border:2px solid}.mat-pseudo-checkbox-full.mat-pseudo-checkbox-checked,.mat-pseudo-checkbox-full.mat-pseudo-checkbox-indeterminate{border-color:rgba(0,0,0,0)}.mat-pseudo-checkbox{width:18px;height:18px}.mat-pseudo-checkbox-minimal.mat-pseudo-checkbox-checked::after{width:14px;height:6px;transform-origin:center;top:-4.2426406871px;left:0;bottom:0;right:0;margin:auto}.mat-pseudo-checkbox-minimal.mat-pseudo-checkbox-indeterminate::after{top:8px;width:16px}.mat-pseudo-checkbox-full.mat-pseudo-checkbox-checked::after{width:10px;height:4px;transform-origin:center;top:-2.8284271247px;left:0;bottom:0;right:0;margin:auto}.mat-pseudo-checkbox-full.mat-pseudo-checkbox-indeterminate::after{top:6px;width:12px}'],encapsulation:2,changeDetection:0}),R})(),at=(()=>{var G;class R{}return(G=R).\u0275fac=function(le){return new(le||G)},G.\u0275mod=a.oAB({type:G}),G.\u0275inj=a.cJS({imports:[re]}),R})();const Ot=new a.OlP("MAT_OPTION_PARENT_COMPONENT"),Fe=Je(class{});let je=0,kt=(()=>{var G;class R extends Fe{constructor(le){super(),this._labelId="mat-optgroup-label-"+je++,this._inert=(null==le?void 0:le.inertGroups)??!1}}return(G=R).\u0275fac=function(le){return new(le||G)(a.Y36(Ot,8))},G.\u0275dir=a.lG2({type:G,inputs:{label:"label"},features:[a.qOj]}),R})();const We=new a.OlP("MatOptgroup");let Kt=0;class xt{constructor(R,Y=!1){this.source=R,this.isUserInput=Y}}let Mt=(()=>{var G;class R{get multiple(){return this._parent&&this._parent.multiple}get selected(){return this._selected}get disabled(){return this.group&&this.group.disabled||this._disabled}set disabled(le){this._disabled=(0,E.Ig)(le)}get disableRipple(){return!(!this._parent||!this._parent.disableRipple)}get hideSingleSelectionIndicator(){return!(!this._parent||!this._parent.hideSingleSelectionIndicator)}constructor(le,ke,ht,Gt){this._element=le,this._changeDetectorRef=ke,this._parent=ht,this.group=Gt,this._selected=!1,this._active=!1,this._disabled=!1,this._mostRecentViewValue="",this.id="mat-option-"+Kt++,this.onSelectionChange=new a.vpe,this._stateChanges=new c.xQ}get active(){return this._active}get viewValue(){var le;return((null==(le=this._text)?void 0:le.nativeElement.textContent)||"").trim()}select(le=!0){this._selected||(this._selected=!0,this._changeDetectorRef.markForCheck(),le&&this._emitSelectionChangeEvent())}deselect(le=!0){this._selected&&(this._selected=!1,this._changeDetectorRef.markForCheck(),le&&this._emitSelectionChangeEvent())}focus(le,ke){const ht=this._getHostElement();"function"==typeof ht.focus&&ht.focus(ke)}setActiveStyles(){this._active||(this._active=!0,this._changeDetectorRef.markForCheck())}setInactiveStyles(){this._active&&(this._active=!1,this._changeDetectorRef.markForCheck())}getLabel(){return this.viewValue}_handleKeydown(le){(le.keyCode===C.K5||le.keyCode===C.L_)&&!(0,C.Vb)(le)&&(this._selectViaInteraction(),le.preventDefault())}_selectViaInteraction(){this.disabled||(this._selected=!this.multiple||!this._selected,this._changeDetectorRef.markForCheck(),this._emitSelectionChangeEvent(!0))}_getTabIndex(){return this.disabled?"-1":"0"}_getHostElement(){return this._element.nativeElement}ngAfterViewChecked(){if(this._selected){const le=this.viewValue;le!==this._mostRecentViewValue&&(this._mostRecentViewValue&&this._stateChanges.next(),this._mostRecentViewValue=le)}}ngOnDestroy(){this._stateChanges.complete()}_emitSelectionChangeEvent(le=!1){this.onSelectionChange.emit(new xt(this,le))}}return(G=R).\u0275fac=function(le){a.$Z()},G.\u0275dir=a.lG2({type:G,viewQuery:function(le,ke){if(1&le&&a.Gf(P,7),2&le){let ht;a.iGM(ht=a.CRH())&&(ke._text=ht.first)}},inputs:{value:"value",id:"id",disabled:"disabled"},outputs:{onSelectionChange:"onSelectionChange"}}),R})();function St(G,R,Y){if(Y.length){let le=R.toArray(),ke=Y.toArray(),ht=0;for(let Gt=0;GtY+le?Math.max(0,G-le+R):Y}},26385:(Qe,he,s)=>{"use strict";s.d(he,{d:()=>A,t:()=>D});var a=s(65879),r=s(42495),b=s(23680);let A=(()=>{var p;class E{constructor(){this._vertical=!1,this._inset=!1}get vertical(){return this._vertical}set vertical(c){this._vertical=(0,r.Ig)(c)}get inset(){return this._inset}set inset(c){this._inset=(0,r.Ig)(c)}}return(p=E).\u0275fac=function(c){return new(c||p)},p.\u0275cmp=a.Xpm({type:p,selectors:[["mat-divider"]],hostAttrs:["role","separator",1,"mat-divider"],hostVars:7,hostBindings:function(c,C){2&c&&(a.uIk("aria-orientation",C.vertical?"vertical":"horizontal"),a.ekj("mat-divider-vertical",C.vertical)("mat-divider-horizontal",!C.vertical)("mat-divider-inset",C.inset))},inputs:{vertical:"vertical",inset:"inset"},decls:0,vars:0,template:function(c,C){},styles:[".mat-divider{--mat-divider-width:1px;display:block;margin:0;border-top-style:solid;border-top-color:var(--mat-divider-color);border-top-width:var(--mat-divider-width)}.mat-divider.mat-divider-vertical{border-top:0;border-right-style:solid;border-right-color:var(--mat-divider-color);border-right-width:var(--mat-divider-width)}.mat-divider.mat-divider-inset{margin-left:80px}[dir=rtl] .mat-divider.mat-divider-inset{margin-left:auto;margin-right:80px}"],encapsulation:2,changeDetection:0}),E})(),D=(()=>{var p;class E{}return(p=E).\u0275fac=function(c){return new(c||p)},p.\u0275mod=a.oAB({type:p}),p.\u0275inj=a.cJS({imports:[b.BQ,b.BQ]}),E})()},30617:(Qe,he,s)=>{"use strict";s.d(he,{Hw:()=>De,Ps:()=>ft});var a=s(65879),r=s(23680),b=s(42495),A=s(96814),D=s(49193),p=s(16222),E=s(77504),f=s(7902),c=s(17927),C=s(96124),m=s(62413),_=s(11541),g=s(25705),P=s(51418),U=s(69862),d=s(6593);const q=["*"];let j;function L(st){var bt;return(null==(bt=function K(){if(void 0===j&&(j=null,typeof window<"u")){const st=window;void 0!==st.trustedTypes&&(j=st.trustedTypes.createPolicy("angular#components",{createHTML:bt=>bt}))}return j}())?void 0:bt.createHTML(st))||st}function w(st){return Error(`Unable to find icon with the name "${st}"`)}function X(st){return Error(`The URL provided to MatIconRegistry was not trusted as a resource URL via Angular's DomSanitizer. Attempted URL was "${st}".`)}function de(st){return Error(`The literal provided to MatIconRegistry was not trusted as safe HTML by Angular's DomSanitizer. Attempted literal was "${st}".`)}class re{constructor(bt,_e,H){this.url=bt,this.svgText=_e,this.options=H}}let be=(()=>{var st;class bt{constructor(H,Te,Me,Pe){this._httpClient=H,this._sanitizer=Te,this._errorHandler=Pe,this._svgIconConfigs=new Map,this._iconSetConfigs=new Map,this._cachedIconsByUrl=new Map,this._inProgressUrlFetches=new Map,this._fontCssClassesByAlias=new Map,this._resolvers=[],this._defaultFontSetClass=["material-icons","mat-ligature-font"],this._document=Me}addSvgIcon(H,Te,Me){return this.addSvgIconInNamespace("",H,Te,Me)}addSvgIconLiteral(H,Te,Me){return this.addSvgIconLiteralInNamespace("",H,Te,Me)}addSvgIconInNamespace(H,Te,Me,Pe){return this._addSvgIconConfig(H,Te,new re(Me,null,Pe))}addSvgIconResolver(H){return this._resolvers.push(H),this}addSvgIconLiteralInNamespace(H,Te,Me,Pe){const dt=this._sanitizer.sanitize(a.q3G.HTML,Me);if(!dt)throw de(Me);const Pt=L(dt);return this._addSvgIconConfig(H,Te,new re("",Pt,Pe))}addSvgIconSet(H,Te){return this.addSvgIconSetInNamespace("",H,Te)}addSvgIconSetLiteral(H,Te){return this.addSvgIconSetLiteralInNamespace("",H,Te)}addSvgIconSetInNamespace(H,Te,Me){return this._addSvgIconSetConfig(H,new re(Te,null,Me))}addSvgIconSetLiteralInNamespace(H,Te,Me){const Pe=this._sanitizer.sanitize(a.q3G.HTML,Te);if(!Pe)throw de(Te);const dt=L(Pe);return this._addSvgIconSetConfig(H,new re("",dt,Me))}registerFontClassAlias(H,Te=H){return this._fontCssClassesByAlias.set(H,Te),this}classNameForFontAlias(H){return this._fontCssClassesByAlias.get(H)||H}setDefaultFontSetClass(...H){return this._defaultFontSetClass=H,this}getDefaultFontSetClass(){return this._defaultFontSetClass}getSvgIconFromUrl(H){const Te=this._sanitizer.sanitize(a.q3G.RESOURCE_URL,H);if(!Te)throw X(H);const Me=this._cachedIconsByUrl.get(Te);return Me?(0,D.of)(Je(Me)):this._loadSvgIconFromConfig(new re(H,null)).pipe((0,c.b)(Pe=>this._cachedIconsByUrl.set(Te,Pe)),(0,C.U)(Pe=>Je(Pe)))}getNamedSvgIcon(H,Te=""){const Me=qe(Te,H);let Pe=this._svgIconConfigs.get(Me);if(Pe)return this._getSvgFromConfig(Pe);if(Pe=this._getIconConfigFromResolvers(Te,H),Pe)return this._svgIconConfigs.set(Me,Pe),this._getSvgFromConfig(Pe);const dt=this._iconSetConfigs.get(Te);return dt?this._getSvgFromIconSetConfigs(H,dt):(0,p._)(w(Me))}ngOnDestroy(){this._resolvers=[],this._svgIconConfigs.clear(),this._iconSetConfigs.clear(),this._cachedIconsByUrl.clear()}_getSvgFromConfig(H){return H.svgText?(0,D.of)(Je(this._svgElementFromConfig(H))):this._loadSvgIconFromConfig(H).pipe((0,C.U)(Te=>Je(Te)))}_getSvgFromIconSetConfigs(H,Te){const Me=this._extractIconWithNameFromAnySet(H,Te);if(Me)return(0,D.of)(Me);const Pe=Te.filter(dt=>!dt.svgText).map(dt=>this._loadSvgIconSetFromConfig(dt).pipe((0,m.K)(Pt=>{const cn=`Loading icon set URL: ${this._sanitizer.sanitize(a.q3G.RESOURCE_URL,dt.url)} failed: ${Pt.message}`;return this._errorHandler.handleError(new Error(cn)),(0,D.of)(null)})));return(0,E.D)(Pe).pipe((0,C.U)(()=>{const dt=this._extractIconWithNameFromAnySet(H,Te);if(!dt)throw w(H);return dt}))}_extractIconWithNameFromAnySet(H,Te){for(let Me=Te.length-1;Me>=0;Me--){const Pe=Te[Me];if(Pe.svgText&&Pe.svgText.toString().indexOf(H)>-1){const dt=this._svgElementFromConfig(Pe),Pt=this._extractSvgIconFromSet(dt,H,Pe.options);if(Pt)return Pt}}return null}_loadSvgIconFromConfig(H){return this._fetchIcon(H).pipe((0,c.b)(Te=>H.svgText=Te),(0,C.U)(()=>this._svgElementFromConfig(H)))}_loadSvgIconSetFromConfig(H){return H.svgText?(0,D.of)(null):this._fetchIcon(H).pipe((0,c.b)(Te=>H.svgText=Te))}_extractSvgIconFromSet(H,Te,Me){const Pe=H.querySelector(`[id="${Te}"]`);if(!Pe)return null;const dt=Pe.cloneNode(!0);if(dt.removeAttribute("id"),"svg"===dt.nodeName.toLowerCase())return this._setSvgAttributes(dt,Me);if("symbol"===dt.nodeName.toLowerCase())return this._setSvgAttributes(this._toSvgElement(dt),Me);const Pt=this._svgElementFromString(L(""));return Pt.appendChild(dt),this._setSvgAttributes(Pt,Me)}_svgElementFromString(H){const Te=this._document.createElement("DIV");Te.innerHTML=H;const Me=Te.querySelector("svg");if(!Me)throw Error(" tag not found");return Me}_toSvgElement(H){const Te=this._svgElementFromString(L("")),Me=H.attributes;for(let Pe=0;PeL(cn)),(0,_.x)(()=>this._inProgressUrlFetches.delete(dt)),(0,g.B)());return this._inProgressUrlFetches.set(dt,Qt),Qt}_addSvgIconConfig(H,Te,Me){return this._svgIconConfigs.set(qe(H,Te),Me),this}_addSvgIconSetConfig(H,Te){const Me=this._iconSetConfigs.get(H);return Me?Me.push(Te):this._iconSetConfigs.set(H,[Te]),this}_svgElementFromConfig(H){if(!H.svgElement){const Te=this._svgElementFromString(H.svgText);this._setSvgAttributes(Te,H.options),H.svgElement=Te}return H.svgElement}_getIconConfigFromResolvers(H,Te){for(let Me=0;Mebt?bt.pathname+bt.search:""}}}),Ze=["clip-path","color-profile","src","cursor","fill","filter","marker","marker-start","marker-mid","marker-end","mask","stroke"],ot=Ze.map(st=>`[${st}]`).join(", "),Ct=/^url\(['"]?#(.*?)['"]?\)$/;let De=(()=>{var st;class bt extends rt{get inline(){return this._inline}set inline(H){this._inline=(0,b.Ig)(H)}get svgIcon(){return this._svgIcon}set svgIcon(H){H!==this._svgIcon&&(H?this._updateSvgIcon(H):this._svgIcon&&this._clearSvgElement(),this._svgIcon=H)}get fontSet(){return this._fontSet}set fontSet(H){const Te=this._cleanupFontValue(H);Te!==this._fontSet&&(this._fontSet=Te,this._updateFontIconClasses())}get fontIcon(){return this._fontIcon}set fontIcon(H){const Te=this._cleanupFontValue(H);Te!==this._fontIcon&&(this._fontIcon=Te,this._updateFontIconClasses())}constructor(H,Te,Me,Pe,dt,Pt){super(H),this._iconRegistry=Te,this._location=Pe,this._errorHandler=dt,this._inline=!1,this._previousFontSetClass=[],this._currentIconFetch=f.w.EMPTY,Pt&&(Pt.color&&(this.color=this.defaultColor=Pt.color),Pt.fontSet&&(this.fontSet=Pt.fontSet)),Me||H.nativeElement.setAttribute("aria-hidden","true")}_splitIconName(H){if(!H)return["",""];const Te=H.split(":");switch(Te.length){case 1:return["",Te[0]];case 2:return Te;default:throw Error(`Invalid icon name: "${H}"`)}}ngOnInit(){this._updateFontIconClasses()}ngAfterViewChecked(){const H=this._elementsWithExternalReferences;if(H&&H.size){const Te=this._location.getPathname();Te!==this._previousPath&&(this._previousPath=Te,this._prependPathToReferences(Te))}}ngOnDestroy(){this._currentIconFetch.unsubscribe(),this._elementsWithExternalReferences&&this._elementsWithExternalReferences.clear()}_usingFontIcon(){return!this.svgIcon}_setSvgElement(H){this._clearSvgElement();const Te=this._location.getPathname();this._previousPath=Te,this._cacheChildrenWithExternalReferences(H),this._prependPathToReferences(Te),this._elementRef.nativeElement.appendChild(H)}_clearSvgElement(){const H=this._elementRef.nativeElement;let Te=H.childNodes.length;for(this._elementsWithExternalReferences&&this._elementsWithExternalReferences.clear();Te--;){const Me=H.childNodes[Te];(1!==Me.nodeType||"svg"===Me.nodeName.toLowerCase())&&Me.remove()}}_updateFontIconClasses(){if(!this._usingFontIcon())return;const H=this._elementRef.nativeElement,Te=(this.fontSet?this._iconRegistry.classNameForFontAlias(this.fontSet).split(/ +/):this._iconRegistry.getDefaultFontSetClass()).filter(Me=>Me.length>0);this._previousFontSetClass.forEach(Me=>H.classList.remove(Me)),Te.forEach(Me=>H.classList.add(Me)),this._previousFontSetClass=Te,this.fontIcon!==this._previousFontIconClass&&!Te.includes("mat-ligature-font")&&(this._previousFontIconClass&&H.classList.remove(this._previousFontIconClass),this.fontIcon&&H.classList.add(this.fontIcon),this._previousFontIconClass=this.fontIcon)}_cleanupFontValue(H){return"string"==typeof H?H.trim().split(" ")[0]:H}_prependPathToReferences(H){const Te=this._elementsWithExternalReferences;Te&&Te.forEach((Me,Pe)=>{Me.forEach(dt=>{Pe.setAttribute(dt.name,`url('${H}#${dt.value}')`)})})}_cacheChildrenWithExternalReferences(H){const Te=H.querySelectorAll(ot),Me=this._elementsWithExternalReferences=this._elementsWithExternalReferences||new Map;for(let Pe=0;Pe{const Pt=Te[Pe],Qt=Pt.getAttribute(dt),cn=Qt?Qt.match(Ct):null;if(cn){let Ie=Me.get(Pt);Ie||(Ie=[],Me.set(Pt,Ie)),Ie.push({name:dt,value:cn[1]})}})}_updateSvgIcon(H){if(this._svgNamespace=null,this._svgName=null,this._currentIconFetch.unsubscribe(),H){const[Te,Me]=this._splitIconName(H);Te&&(this._svgNamespace=Te),Me&&(this._svgName=Me),this._currentIconFetch=this._iconRegistry.getNamedSvgIcon(Me,Te).pipe((0,P.q)(1)).subscribe(Pe=>this._setSvgElement(Pe),Pe=>{this._errorHandler.handleError(new Error(`Error retrieving icon ${Te}:${Me}! ${Pe.message}`))})}}}return(st=bt).\u0275fac=function(H){return new(H||st)(a.Y36(a.SBq),a.Y36(be),a.$8M("aria-hidden"),a.Y36(_t),a.Y36(a.qLn),a.Y36(tt,8))},st.\u0275cmp=a.Xpm({type:st,selectors:[["mat-icon"]],hostAttrs:["role","img",1,"mat-icon","notranslate"],hostVars:8,hostBindings:function(H,Te){2&H&&(a.uIk("data-mat-icon-type",Te._usingFontIcon()?"font":"svg")("data-mat-icon-name",Te._svgName||Te.fontIcon)("data-mat-icon-namespace",Te._svgNamespace||Te.fontSet)("fontIcon",Te._usingFontIcon()?Te.fontIcon:null),a.ekj("mat-icon-inline",Te.inline)("mat-icon-no-color","primary"!==Te.color&&"accent"!==Te.color&&"warn"!==Te.color))},inputs:{color:"color",inline:"inline",svgIcon:"svgIcon",fontSet:"fontSet",fontIcon:"fontIcon"},exportAs:["matIcon"],features:[a.qOj],ngContentSelectors:q,decls:1,vars:0,template:function(H,Te){1&H&&(a.F$t(),a.Hsn(0))},styles:["mat-icon,mat-icon.mat-primary,mat-icon.mat-accent,mat-icon.mat-warn{color:var(--mat-icon-color)}.mat-icon{-webkit-user-select:none;user-select:none;background-repeat:no-repeat;display:inline-block;fill:currentColor;height:24px;width:24px;overflow:hidden}.mat-icon.mat-icon-inline{font-size:inherit;height:inherit;line-height:inherit;width:inherit}.mat-icon.mat-ligature-font[fontIcon]::before{content:attr(fontIcon)}[dir=rtl] .mat-icon-rtl-mirror{transform:scale(-1, 1)}.mat-form-field:not(.mat-form-field-appearance-legacy) .mat-form-field-prefix .mat-icon,.mat-form-field:not(.mat-form-field-appearance-legacy) .mat-form-field-suffix .mat-icon{display:block}.mat-form-field:not(.mat-form-field-appearance-legacy) .mat-form-field-prefix .mat-icon-button .mat-icon,.mat-form-field:not(.mat-form-field-appearance-legacy) .mat-form-field-suffix .mat-icon-button .mat-icon{margin:auto}"],encapsulation:2,changeDetection:0}),bt})(),ft=(()=>{var st;class bt{}return(st=bt).\u0275fac=function(H){return new(H||st)},st.\u0275mod=a.oAB({type:st}),st.\u0275inj=a.cJS({imports:[r.BQ,r.BQ]}),bt})()},94505:(Qe,he,s)=>{"use strict";s.d(he,{eB:()=>C,yu:()=>_});var a=s(65879),r=s(23680),b=s(4300);const A=["mat-button",""],D=["*"],f=["mat-button","mat-flat-button","mat-icon-button","mat-raised-button","mat-stroked-button","mat-mini-fab","mat-fab"],c=(0,r.pj)((0,r.Id)((0,r.Kr)(class{constructor(g){this._elementRef=g}})));let C=(()=>{var g;class P extends c{constructor(d,q,j){super(d),this._focusMonitor=q,this._animationMode=j,this.isRoundButton=this._hasHostAttributes("mat-fab","mat-mini-fab"),this.isIconButton=this._hasHostAttributes("mat-icon-button");for(const K of f)this._hasHostAttributes(K)&&this._getHostElement().classList.add(K);d.nativeElement.classList.add("mat-button-base"),this.isRoundButton&&(this.color="accent")}ngAfterViewInit(){this._focusMonitor.monitor(this._elementRef,!0)}ngOnDestroy(){this._focusMonitor.stopMonitoring(this._elementRef)}focus(d,q){d?this._focusMonitor.focusVia(this._getHostElement(),d,q):this._getHostElement().focus(q)}_getHostElement(){return this._elementRef.nativeElement}_isRippleDisabled(){return this.disableRipple||this.disabled}_hasHostAttributes(...d){return d.some(q=>this._getHostElement().hasAttribute(q))}}return(g=P).\u0275fac=function(d){return new(d||g)(a.Y36(a.SBq),a.Y36(b.tE),a.Y36(a.QbO,8))},g.\u0275cmp=a.Xpm({type:g,selectors:[["button","mat-button",""],["button","mat-raised-button",""],["button","mat-icon-button",""],["button","mat-fab",""],["button","mat-mini-fab",""],["button","mat-stroked-button",""],["button","mat-flat-button",""]],viewQuery:function(d,q){if(1&d&&a.Gf(r.wG,5),2&d){let j;a.iGM(j=a.CRH())&&(q.ripple=j.first)}},hostAttrs:[1,"mat-focus-indicator"],hostVars:5,hostBindings:function(d,q){2&d&&(a.uIk("disabled",q.disabled||null),a.ekj("_mat-animation-noopable","NoopAnimations"===q._animationMode)("mat-button-disabled",q.disabled))},inputs:{disabled:"disabled",disableRipple:"disableRipple",color:"color"},exportAs:["matButton"],features:[a.qOj],attrs:A,ngContentSelectors:D,decls:4,vars:5,consts:[[1,"mat-button-wrapper"],["matRipple","",1,"mat-button-ripple",3,"matRippleDisabled","matRippleCentered","matRippleTrigger"],[1,"mat-button-focus-overlay"]],template:function(d,q){1&d&&(a.F$t(),a.TgZ(0,"span",0),a.Hsn(1),a.qZA(),a._UZ(2,"span",1)(3,"span",2)),2&d&&(a.xp6(2),a.ekj("mat-button-ripple-round",q.isRoundButton||q.isIconButton),a.Q6J("matRippleDisabled",q._isRippleDisabled())("matRippleCentered",q.isIconButton)("matRippleTrigger",q._getHostElement()))},dependencies:[r.wG],styles:[".mat-button .mat-button-focus-overlay,.mat-icon-button .mat-button-focus-overlay{opacity:0}.mat-button:hover:not(.mat-button-disabled) .mat-button-focus-overlay,.mat-stroked-button:hover:not(.mat-button-disabled) .mat-button-focus-overlay{opacity:.04}@media(hover: none){.mat-button:hover:not(.mat-button-disabled) .mat-button-focus-overlay,.mat-stroked-button:hover:not(.mat-button-disabled) .mat-button-focus-overlay{opacity:0}}.mat-button,.mat-icon-button,.mat-stroked-button,.mat-flat-button{box-sizing:border-box;position:relative;-webkit-user-select:none;user-select:none;cursor:pointer;outline:none;border:none;-webkit-tap-highlight-color:rgba(0,0,0,0);display:inline-block;white-space:nowrap;text-decoration:none;vertical-align:baseline;text-align:center;margin:0;min-width:64px;line-height:36px;padding:0 16px;border-radius:4px;overflow:visible}.mat-button::-moz-focus-inner,.mat-icon-button::-moz-focus-inner,.mat-stroked-button::-moz-focus-inner,.mat-flat-button::-moz-focus-inner{border:0}.mat-button.mat-button-disabled,.mat-icon-button.mat-button-disabled,.mat-stroked-button.mat-button-disabled,.mat-flat-button.mat-button-disabled{cursor:default}.mat-button.cdk-keyboard-focused .mat-button-focus-overlay,.mat-button.cdk-program-focused .mat-button-focus-overlay,.mat-icon-button.cdk-keyboard-focused .mat-button-focus-overlay,.mat-icon-button.cdk-program-focused .mat-button-focus-overlay,.mat-stroked-button.cdk-keyboard-focused .mat-button-focus-overlay,.mat-stroked-button.cdk-program-focused .mat-button-focus-overlay,.mat-flat-button.cdk-keyboard-focused .mat-button-focus-overlay,.mat-flat-button.cdk-program-focused .mat-button-focus-overlay{opacity:.12}.mat-button::-moz-focus-inner,.mat-icon-button::-moz-focus-inner,.mat-stroked-button::-moz-focus-inner,.mat-flat-button::-moz-focus-inner{border:0}.mat-raised-button{box-sizing:border-box;position:relative;-webkit-user-select:none;user-select:none;cursor:pointer;outline:none;border:none;-webkit-tap-highlight-color:rgba(0,0,0,0);display:inline-block;white-space:nowrap;text-decoration:none;vertical-align:baseline;text-align:center;margin:0;min-width:64px;line-height:36px;padding:0 16px;border-radius:4px;overflow:visible;transform:translate3d(0, 0, 0);transition:background 400ms cubic-bezier(0.25, 0.8, 0.25, 1),box-shadow 280ms cubic-bezier(0.4, 0, 0.2, 1)}.mat-raised-button::-moz-focus-inner{border:0}.mat-raised-button.mat-button-disabled{cursor:default}.mat-raised-button.cdk-keyboard-focused .mat-button-focus-overlay,.mat-raised-button.cdk-program-focused .mat-button-focus-overlay{opacity:.12}.mat-raised-button::-moz-focus-inner{border:0}.mat-raised-button._mat-animation-noopable{transition:none !important;animation:none !important}.mat-stroked-button{border:1px solid currentColor;padding:0 15px;line-height:34px}.mat-stroked-button .mat-button-ripple.mat-ripple,.mat-stroked-button .mat-button-focus-overlay{top:-1px;left:-1px;right:-1px;bottom:-1px}.mat-fab{box-sizing:border-box;position:relative;-webkit-user-select:none;user-select:none;cursor:pointer;outline:none;border:none;-webkit-tap-highlight-color:rgba(0,0,0,0);display:inline-block;white-space:nowrap;text-decoration:none;vertical-align:baseline;text-align:center;margin:0;min-width:64px;line-height:36px;padding:0 16px;border-radius:4px;overflow:visible;transform:translate3d(0, 0, 0);transition:background 400ms cubic-bezier(0.25, 0.8, 0.25, 1),box-shadow 280ms cubic-bezier(0.4, 0, 0.2, 1);min-width:0;border-radius:50%;width:56px;height:56px;padding:0;flex-shrink:0}.mat-fab::-moz-focus-inner{border:0}.mat-fab.mat-button-disabled{cursor:default}.mat-fab.cdk-keyboard-focused .mat-button-focus-overlay,.mat-fab.cdk-program-focused .mat-button-focus-overlay{opacity:.12}.mat-fab::-moz-focus-inner{border:0}.mat-fab._mat-animation-noopable{transition:none !important;animation:none !important}.mat-fab .mat-button-wrapper{padding:16px 0;display:inline-block;line-height:24px}.mat-mini-fab{box-sizing:border-box;position:relative;-webkit-user-select:none;user-select:none;cursor:pointer;outline:none;border:none;-webkit-tap-highlight-color:rgba(0,0,0,0);display:inline-block;white-space:nowrap;text-decoration:none;vertical-align:baseline;text-align:center;margin:0;min-width:64px;line-height:36px;padding:0 16px;border-radius:4px;overflow:visible;transform:translate3d(0, 0, 0);transition:background 400ms cubic-bezier(0.25, 0.8, 0.25, 1),box-shadow 280ms cubic-bezier(0.4, 0, 0.2, 1);min-width:0;border-radius:50%;width:40px;height:40px;padding:0;flex-shrink:0}.mat-mini-fab::-moz-focus-inner{border:0}.mat-mini-fab.mat-button-disabled{cursor:default}.mat-mini-fab.cdk-keyboard-focused .mat-button-focus-overlay,.mat-mini-fab.cdk-program-focused .mat-button-focus-overlay{opacity:.12}.mat-mini-fab::-moz-focus-inner{border:0}.mat-mini-fab._mat-animation-noopable{transition:none !important;animation:none !important}.mat-mini-fab .mat-button-wrapper{padding:8px 0;display:inline-block;line-height:24px}.mat-icon-button{padding:0;min-width:0;width:40px;height:40px;flex-shrink:0;line-height:40px;border-radius:50%}.mat-icon-button i,.mat-icon-button .mat-icon{line-height:24px}.mat-button-ripple.mat-ripple,.mat-button-focus-overlay{top:0;left:0;right:0;bottom:0;position:absolute;pointer-events:none;border-radius:inherit}.mat-button-ripple.mat-ripple:not(:empty){transform:translateZ(0)}.mat-button-focus-overlay{opacity:0;transition:opacity 200ms cubic-bezier(0.35, 0, 0.25, 1),background-color 200ms cubic-bezier(0.35, 0, 0.25, 1)}._mat-animation-noopable .mat-button-focus-overlay{transition:none}.mat-button-ripple-round{border-radius:50%;z-index:1}.mat-button .mat-button-wrapper>*,.mat-flat-button .mat-button-wrapper>*,.mat-stroked-button .mat-button-wrapper>*,.mat-raised-button .mat-button-wrapper>*,.mat-icon-button .mat-button-wrapper>*,.mat-fab .mat-button-wrapper>*,.mat-mini-fab .mat-button-wrapper>*{vertical-align:middle}.mat-form-field:not(.mat-form-field-appearance-legacy) .mat-form-field-prefix .mat-icon-button,.mat-form-field:not(.mat-form-field-appearance-legacy) .mat-form-field-suffix .mat-icon-button{display:inline-flex;justify-content:center;align-items:center;font-size:inherit;width:2.5em;height:2.5em}.mat-flat-button::before,.mat-raised-button::before,.mat-fab::before,.mat-mini-fab::before{margin:calc(calc(var(--mat-focus-indicator-border-width, 3px) + 2px) * -1)}.mat-stroked-button::before{margin:calc(calc(var(--mat-focus-indicator-border-width, 3px) + 3px) * -1)}.cdk-high-contrast-active .mat-button,.cdk-high-contrast-active .mat-flat-button,.cdk-high-contrast-active .mat-raised-button,.cdk-high-contrast-active .mat-icon-button,.cdk-high-contrast-active .mat-fab,.cdk-high-contrast-active .mat-mini-fab{outline:solid 1px}.mat-datepicker-toggle .mat-mdc-button-base{width:40px;height:40px;padding:8px 0}.mat-datepicker-actions .mat-button-base+.mat-button-base{margin-left:8px}[dir=rtl] .mat-datepicker-actions .mat-button-base+.mat-button-base{margin-left:0;margin-right:8px}"],encapsulation:2,changeDetection:0}),P})(),_=(()=>{var g;class P{}return(g=P).\u0275fac=function(d){return new(d||g)},g.\u0275mod=a.oAB({type:g}),g.\u0275inj=a.cJS({imports:[r.si,r.BQ,r.BQ]}),P})()},27599:(Qe,he,s)=>{"use strict";s.d(he,{eJ:()=>je,on:()=>xt,yj:()=>vt,hV:()=>Fe});var a=s(4300),r=s(80748),b=s(62831),A=s(68484),D=s(96814),p=s(65879),E=s(36028),f=s(72079),c=s(24917),C=s(49193),m=s(49388),_=s(53075);function g(ye,we){}class P{constructor(){this.role="dialog",this.panelClass="",this.hasBackdrop=!0,this.backdropClass="",this.disableClose=!1,this.width="",this.height="",this.data=null,this.ariaDescribedBy=null,this.ariaLabelledBy=null,this.ariaLabel=null,this.ariaModal=!0,this.autoFocus="first-tabbable",this.restoreFocus=!0,this.closeOnNavigation=!0,this.closeOnDestroy=!0,this.closeOnOverlayDetachments=!0}}let d=(()=>{var ye;class we extends A.en{constructor(T,V,G,R,Y,le,ke,ht){super(),this._elementRef=T,this._focusTrapFactory=V,this._config=R,this._interactivityChecker=Y,this._ngZone=le,this._overlayRef=ke,this._focusMonitor=ht,this._elementFocusedBeforeDialogWasOpened=null,this._closeInteractionType=null,this._ariaLabelledByQueue=[],this.attachDomPortal=Gt=>{this._portalOutlet.hasAttached();const Wt=this._portalOutlet.attachDomPortal(Gt);return this._contentAttached(),Wt},this._document=G,this._config.ariaLabelledBy&&this._ariaLabelledByQueue.push(this._config.ariaLabelledBy)}_contentAttached(){this._initializeFocusTrap(),this._handleBackdropClicks(),this._captureInitialFocus()}_captureInitialFocus(){this._trapFocus()}ngOnDestroy(){this._restoreFocus()}attachComponentPortal(T){this._portalOutlet.hasAttached();const V=this._portalOutlet.attachComponentPortal(T);return this._contentAttached(),V}attachTemplatePortal(T){this._portalOutlet.hasAttached();const V=this._portalOutlet.attachTemplatePortal(T);return this._contentAttached(),V}_recaptureFocus(){this._containsFocus()||this._trapFocus()}_forceFocus(T,V){this._interactivityChecker.isFocusable(T)||(T.tabIndex=-1,this._ngZone.runOutsideAngular(()=>{const G=()=>{T.removeEventListener("blur",G),T.removeEventListener("mousedown",G),T.removeAttribute("tabindex")};T.addEventListener("blur",G),T.addEventListener("mousedown",G)})),T.focus(V)}_focusByCssSelector(T,V){let G=this._elementRef.nativeElement.querySelector(T);G&&this._forceFocus(G,V)}_trapFocus(){const T=this._elementRef.nativeElement;switch(this._config.autoFocus){case!1:case"dialog":this._containsFocus()||T.focus();break;case!0:case"first-tabbable":this._focusTrap.focusInitialElementWhenReady().then(V=>{V||this._focusDialogContainer()});break;case"first-heading":this._focusByCssSelector('h1, h2, h3, h4, h5, h6, [role="heading"]');break;default:this._focusByCssSelector(this._config.autoFocus)}}_restoreFocus(){const T=this._config.restoreFocus;let V=null;if("string"==typeof T?V=this._document.querySelector(T):"boolean"==typeof T?V=T?this._elementFocusedBeforeDialogWasOpened:null:T&&(V=T),this._config.restoreFocus&&V&&"function"==typeof V.focus){const G=(0,b.ht)(),R=this._elementRef.nativeElement;(!G||G===this._document.body||G===R||R.contains(G))&&(this._focusMonitor?(this._focusMonitor.focusVia(V,this._closeInteractionType),this._closeInteractionType=null):V.focus())}this._focusTrap&&this._focusTrap.destroy()}_focusDialogContainer(){this._elementRef.nativeElement.focus&&this._elementRef.nativeElement.focus()}_containsFocus(){const T=this._elementRef.nativeElement,V=(0,b.ht)();return T===V||T.contains(V)}_initializeFocusTrap(){this._focusTrap=this._focusTrapFactory.create(this._elementRef.nativeElement),this._document&&(this._elementFocusedBeforeDialogWasOpened=(0,b.ht)())}_handleBackdropClicks(){this._overlayRef.backdropClick().subscribe(()=>{this._config.disableClose&&this._recaptureFocus()})}}return(ye=we).\u0275fac=function(T){return new(T||ye)(p.Y36(p.SBq),p.Y36(a.qV),p.Y36(D.K0,8),p.Y36(P),p.Y36(a.ic),p.Y36(p.R0b),p.Y36(r.Iu),p.Y36(a.tE))},ye.\u0275cmp=p.Xpm({type:ye,selectors:[["cdk-dialog-container"]],viewQuery:function(T,V){if(1&T&&p.Gf(A.Pl,7),2&T){let G;p.iGM(G=p.CRH())&&(V._portalOutlet=G.first)}},hostAttrs:["tabindex","-1",1,"cdk-dialog-container"],hostVars:6,hostBindings:function(T,V){2&T&&p.uIk("id",V._config.id||null)("role",V._config.role)("aria-modal",V._config.ariaModal)("aria-labelledby",V._config.ariaLabel?null:V._ariaLabelledByQueue[0])("aria-label",V._config.ariaLabel)("aria-describedby",V._config.ariaDescribedBy||null)},features:[p.qOj],decls:1,vars:0,consts:[["cdkPortalOutlet",""]],template:function(T,V){1&T&&p.YNc(0,g,0,0,"ng-template",0)},dependencies:[A.Pl],styles:[".cdk-dialog-container{display:block;width:100%;height:100%;min-height:inherit;max-height:inherit}"],encapsulation:2}),we})();class q{constructor(we,ge){this.overlayRef=we,this.config=ge,this.closed=new f.xQ,this.disableClose=ge.disableClose,this.backdropClick=we.backdropClick(),this.keydownEvents=we.keydownEvents(),this.outsidePointerEvents=we.outsidePointerEvents(),this.id=ge.id,this.keydownEvents.subscribe(T=>{T.keyCode===E.hY&&!this.disableClose&&!(0,E.Vb)(T)&&(T.preventDefault(),this.close(void 0,{focusOrigin:"keyboard"}))}),this.backdropClick.subscribe(()=>{this.disableClose||this.close(void 0,{focusOrigin:"mouse"})}),this._detachSubscription=we.detachments().subscribe(()=>{!1!==ge.closeOnOverlayDetachments&&this.close()})}close(we,ge){if(this.containerInstance){const T=this.closed;this.containerInstance._closeInteractionType=(null==ge?void 0:ge.focusOrigin)||"program",this._detachSubscription.unsubscribe(),this.overlayRef.dispose(),T.next(we),T.complete(),this.componentInstance=this.containerInstance=null}}updatePosition(){return this.overlayRef.updatePosition(),this}updateSize(we="",ge=""){return this.overlayRef.updateSize({width:we,height:ge}),this}addPanelClass(we){return this.overlayRef.addPanelClass(we),this}removePanelClass(we){return this.overlayRef.removePanelClass(we),this}}const j=new p.OlP("DialogScrollStrategy"),K=new p.OlP("DialogData"),L=new p.OlP("DefaultDialogConfig"),k={provide:j,deps:[r.aV],useFactory:function w(ye){return()=>ye.scrollStrategies.block()}};let X=0,de=(()=>{var ye;class we{get openDialogs(){return this._parentDialog?this._parentDialog.openDialogs:this._openDialogsAtThisLevel}get afterOpened(){return this._parentDialog?this._parentDialog.afterOpened:this._afterOpenedAtThisLevel}constructor(T,V,G,R,Y,le){this._overlay=T,this._injector=V,this._defaultOptions=G,this._parentDialog=R,this._overlayContainer=Y,this._openDialogsAtThisLevel=[],this._afterAllClosedAtThisLevel=new f.xQ,this._afterOpenedAtThisLevel=new f.xQ,this._ariaHiddenElements=new Map,this.afterAllClosed=(0,c.P)(()=>this.openDialogs.length?this._getAfterAllClosed():this._getAfterAllClosed().pipe((0,_.O)(void 0))),this._scrollStrategy=le}open(T,V){(V={...this._defaultOptions||new P,...V}).id=V.id||"cdk-dialog-"+X++,V.id&&this.getDialogById(V.id);const R=this._getOverlayConfig(V),Y=this._overlay.create(R),le=new q(Y,V),ke=this._attachContainer(Y,le,V);return le.containerInstance=ke,this._attachDialogContent(T,le,ke,V),this.openDialogs.length||this._hideNonDialogContentFromAssistiveTechnology(),this.openDialogs.push(le),le.closed.subscribe(()=>this._removeOpenDialog(le,!0)),this.afterOpened.next(le),le}closeAll(){re(this.openDialogs,T=>T.close())}getDialogById(T){return this.openDialogs.find(V=>V.id===T)}ngOnDestroy(){re(this._openDialogsAtThisLevel,T=>{!1===T.config.closeOnDestroy&&this._removeOpenDialog(T,!1)}),re(this._openDialogsAtThisLevel,T=>T.close()),this._afterAllClosedAtThisLevel.complete(),this._afterOpenedAtThisLevel.complete(),this._openDialogsAtThisLevel=[]}_getOverlayConfig(T){const V=new r.X_({positionStrategy:T.positionStrategy||this._overlay.position().global().centerHorizontally().centerVertically(),scrollStrategy:T.scrollStrategy||this._scrollStrategy(),panelClass:T.panelClass,hasBackdrop:T.hasBackdrop,direction:T.direction,minWidth:T.minWidth,minHeight:T.minHeight,maxWidth:T.maxWidth,maxHeight:T.maxHeight,width:T.width,height:T.height,disposeOnNavigation:T.closeOnNavigation});return T.backdropClass&&(V.backdropClass=T.backdropClass),V}_attachContainer(T,V,G){var Gt;const R=G.injector||(null==(Gt=G.viewContainerRef)?void 0:Gt.injector),Y=[{provide:P,useValue:G},{provide:q,useValue:V},{provide:r.Iu,useValue:T}];let le;G.container?"function"==typeof G.container?le=G.container:(le=G.container.type,Y.push(...G.container.providers(G))):le=d;const ke=new A.C5(le,G.viewContainerRef,p.zs3.create({parent:R||this._injector,providers:Y}),G.componentFactoryResolver);return T.attach(ke).instance}_attachDialogContent(T,V,G,R){if(T instanceof p.Rgc){const Y=this._createInjector(R,V,G,void 0);let le={$implicit:R.data,dialogRef:V};R.templateContext&&(le={...le,..."function"==typeof R.templateContext?R.templateContext():R.templateContext}),G.attachTemplatePortal(new A.UE(T,null,le,Y))}else{const Y=this._createInjector(R,V,G,this._injector),le=G.attachComponentPortal(new A.C5(T,R.viewContainerRef,Y,R.componentFactoryResolver));V.componentRef=le,V.componentInstance=le.instance}}_createInjector(T,V,G,R){var ke;const Y=T.injector||(null==(ke=T.viewContainerRef)?void 0:ke.injector),le=[{provide:K,useValue:T.data},{provide:q,useValue:V}];return T.providers&&("function"==typeof T.providers?le.push(...T.providers(V,T,G)):le.push(...T.providers)),T.direction&&(!Y||!Y.get(m.Is,null,{optional:!0}))&&le.push({provide:m.Is,useValue:{value:T.direction,change:(0,C.of)()}}),p.zs3.create({parent:Y||R,providers:le})}_removeOpenDialog(T,V){const G=this.openDialogs.indexOf(T);G>-1&&(this.openDialogs.splice(G,1),this.openDialogs.length||(this._ariaHiddenElements.forEach((R,Y)=>{R?Y.setAttribute("aria-hidden",R):Y.removeAttribute("aria-hidden")}),this._ariaHiddenElements.clear(),V&&this._getAfterAllClosed().next()))}_hideNonDialogContentFromAssistiveTechnology(){const T=this._overlayContainer.getContainerElement();if(T.parentElement){const V=T.parentElement.children;for(let G=V.length-1;G>-1;G--){const R=V[G];R!==T&&"SCRIPT"!==R.nodeName&&"STYLE"!==R.nodeName&&!R.hasAttribute("aria-live")&&(this._ariaHiddenElements.set(R,R.getAttribute("aria-hidden")),R.setAttribute("aria-hidden","true"))}}}_getAfterAllClosed(){const T=this._parentDialog;return T?T._getAfterAllClosed():this._afterAllClosedAtThisLevel}}return(ye=we).\u0275fac=function(T){return new(T||ye)(p.LFG(r.aV),p.LFG(p.zs3),p.LFG(L,8),p.LFG(ye,12),p.LFG(r.Xj),p.LFG(j))},ye.\u0275prov=p.Yz7({token:ye,factory:ye.\u0275fac}),we})();function re(ye,we){let ge=ye.length;for(;ge--;)we(ye[ge])}let be=(()=>{var ye;class we{}return(ye=we).\u0275fac=function(T){return new(T||ye)},ye.\u0275mod=p.oAB({type:ye}),ye.\u0275inj=p.cJS({providers:[de,k],imports:[r.U8,A.eL,a.rt,A.eL]}),we})();var pe=s(23680),$e=s(47354),Je=s(97734),qe=s(51418),it=s(86825);class tt{constructor(){this.role="dialog",this.panelClass="",this.hasBackdrop=!0,this.backdropClass="",this.disableClose=!1,this.width="",this.height="",this.maxWidth="80vw",this.data=null,this.ariaDescribedBy=null,this.ariaLabelledBy=null,this.ariaLabel=null,this.ariaModal=!0,this.autoFocus="first-tabbable",this.restoreFocus=!0,this.delayFocusTrap=!0,this.closeOnNavigation=!0}}let De=(()=>{var ye;class we extends d{constructor(T,V,G,R,Y,le,ke,ht){super(T,V,G,R,Y,le,ke,ht),this._animationStateChanged=new p.vpe}_captureInitialFocus(){this._config.delayFocusTrap||this._trapFocus()}_openAnimationDone(T){this._config.delayFocusTrap&&this._trapFocus(),this._animationStateChanged.next({state:"opened",totalTime:T})}}return(ye=we).\u0275fac=function(T){return new(T||ye)(p.Y36(p.SBq),p.Y36(a.qV),p.Y36(D.K0,8),p.Y36(tt),p.Y36(a.ic),p.Y36(p.R0b),p.Y36(r.Iu),p.Y36(a.tE))},ye.\u0275cmp=p.Xpm({type:ye,selectors:[["ng-component"]],features:[p.qOj],decls:0,vars:0,template:function(T,V){},encapsulation:2}),we})();class _e{constructor(we,ge,T){this._ref=we,this._containerInstance=T,this._afterOpened=new f.xQ,this._beforeClosed=new f.xQ,this._state=0,this.disableClose=ge.disableClose,this.id=we.id,T._animationStateChanged.pipe((0,Je.h)(V=>"opened"===V.state),(0,qe.q)(1)).subscribe(()=>{this._afterOpened.next(),this._afterOpened.complete()}),T._animationStateChanged.pipe((0,Je.h)(V=>"closed"===V.state),(0,qe.q)(1)).subscribe(()=>{clearTimeout(this._closeFallbackTimeout),this._finishDialogClose()}),we.overlayRef.detachments().subscribe(()=>{this._beforeClosed.next(this._result),this._beforeClosed.complete(),this._finishDialogClose()}),(0,$e.T)(this.backdropClick(),this.keydownEvents().pipe((0,Je.h)(V=>V.keyCode===E.hY&&!this.disableClose&&!(0,E.Vb)(V)))).subscribe(V=>{this.disableClose||(V.preventDefault(),function H(ye,we,ge){ye._closeInteractionType=we,ye.close(ge)}(this,"keydown"===V.type?"keyboard":"mouse"))})}close(we){this._result=we,this._containerInstance._animationStateChanged.pipe((0,Je.h)(ge=>"closing"===ge.state),(0,qe.q)(1)).subscribe(ge=>{this._beforeClosed.next(we),this._beforeClosed.complete(),this._ref.overlayRef.detachBackdrop(),this._closeFallbackTimeout=setTimeout(()=>this._finishDialogClose(),ge.totalTime+100)}),this._state=1,this._containerInstance._startExitAnimation()}afterOpened(){return this._afterOpened}afterClosed(){return this._ref.closed}beforeClosed(){return this._beforeClosed}backdropClick(){return this._ref.backdropClick}keydownEvents(){return this._ref.keydownEvents}updatePosition(we){let ge=this._ref.config.positionStrategy;return we&&(we.left||we.right)?we.left?ge.left(we.left):ge.right(we.right):ge.centerHorizontally(),we&&(we.top||we.bottom)?we.top?ge.top(we.top):ge.bottom(we.bottom):ge.centerVertically(),this._ref.updatePosition(),this}updateSize(we="",ge=""){return this._ref.updateSize(we,ge),this}addPanelClass(we){return this._ref.addPanelClass(we),this}removePanelClass(we){return this._ref.removePanelClass(we),this}getState(){return this._state}_finishDialogClose(){this._state=2,this._ref.close(this._result,{focusOrigin:this._closeInteractionType}),this.componentInstance=null}}let cn=0,Ie=(()=>{var ye;class we{get openDialogs(){return this._parentDialog?this._parentDialog.openDialogs:this._openDialogsAtThisLevel}get afterOpened(){return this._parentDialog?this._parentDialog.afterOpened:this._afterOpenedAtThisLevel}_getAfterAllClosed(){const T=this._parentDialog;return T?T._getAfterAllClosed():this._afterAllClosedAtThisLevel}constructor(T,V,G,R,Y,le,ke,ht,Gt,Wt){this._overlay=T,this._defaultOptions=G,this._parentDialog=R,this._dialogRefConstructor=ke,this._dialogContainerType=ht,this._dialogDataToken=Gt,this._openDialogsAtThisLevel=[],this._afterAllClosedAtThisLevel=new f.xQ,this._afterOpenedAtThisLevel=new f.xQ,this._idPrefix="mat-dialog-",this.dialogConfigClass=tt,this.afterAllClosed=(0,c.P)(()=>this.openDialogs.length?this._getAfterAllClosed():this._getAfterAllClosed().pipe((0,_.O)(void 0))),this._scrollStrategy=le,this._dialog=V.get(de)}open(T,V){let G;(V={...this._defaultOptions||new tt,...V}).id=V.id||`${this._idPrefix}${cn++}`,V.scrollStrategy=V.scrollStrategy||this._scrollStrategy();const R=this._dialog.open(T,{...V,positionStrategy:this._overlay.position().global().centerHorizontally().centerVertically(),disableClose:!0,closeOnDestroy:!1,closeOnOverlayDetachments:!1,container:{type:this._dialogContainerType,providers:()=>[{provide:this.dialogConfigClass,useValue:V},{provide:P,useValue:V}]},templateContext:()=>({dialogRef:G}),providers:(Y,le,ke)=>(G=new this._dialogRefConstructor(Y,V,ke),G.updatePosition(null==V?void 0:V.position),[{provide:this._dialogContainerType,useValue:ke},{provide:this._dialogDataToken,useValue:le.data},{provide:this._dialogRefConstructor,useValue:G}])});return G.componentRef=R.componentRef,G.componentInstance=R.componentInstance,this.openDialogs.push(G),this.afterOpened.next(G),G.afterClosed().subscribe(()=>{const Y=this.openDialogs.indexOf(G);Y>-1&&(this.openDialogs.splice(Y,1),this.openDialogs.length||this._getAfterAllClosed().next())}),G}closeAll(){this._closeDialogs(this.openDialogs)}getDialogById(T){return this.openDialogs.find(V=>V.id===T)}ngOnDestroy(){this._closeDialogs(this._openDialogsAtThisLevel),this._afterAllClosedAtThisLevel.complete(),this._afterOpenedAtThisLevel.complete()}_closeDialogs(T){let V=T.length;for(;V--;)T[V].close()}}return(ye=we).\u0275fac=function(T){p.$Z()},ye.\u0275prov=p.Yz7({token:ye,factory:ye.\u0275fac}),we})();const oe={params:{enterAnimationDuration:"150ms",exitAnimationDuration:"75ms"}},Ce={dialogContainer:(0,it.X$)("dialogContainer",[(0,it.SB)("void, exit",(0,it.oB)({opacity:0,transform:"scale(0.7)"})),(0,it.SB)("enter",(0,it.oB)({transform:"none"})),(0,it.eR)("* => enter",(0,it.ru)([(0,it.jt)("{{enterAnimationDuration}} cubic-bezier(0, 0, 0.2, 1)",(0,it.oB)({transform:"none",opacity:1})),(0,it.IO)("@*",(0,it.pV)(),{optional:!0})]),oe),(0,it.eR)("* => void, * => exit",(0,it.ru)([(0,it.jt)("{{exitAnimationDuration}} cubic-bezier(0.4, 0.0, 0.2, 1)",(0,it.oB)({opacity:0})),(0,it.IO)("@*",(0,it.pV)(),{optional:!0})]),oe)])};function ve(ye,we){}const xe_params_enterAnimationDuration="150ms",xe_params_exitAnimationDuration="75ms";class at extends tt{constructor(){super(...arguments),this.enterAnimationDuration=oe.params.enterAnimationDuration,this.exitAnimationDuration=oe.params.exitAnimationDuration}}let Ot=(()=>{var ye;class we extends De{_onAnimationDone({toState:T,totalTime:V}){"enter"===T?this._openAnimationDone(V):"exit"===T&&this._animationStateChanged.next({state:"closed",totalTime:V})}_onAnimationStart({toState:T,totalTime:V}){"enter"===T?this._animationStateChanged.next({state:"opening",totalTime:V}):("exit"===T||"void"===T)&&this._animationStateChanged.next({state:"closing",totalTime:V})}_startExitAnimation(){this._state="exit",this._changeDetectorRef.markForCheck()}constructor(T,V,G,R,Y,le,ke,ht,Gt){super(T,V,G,R,Y,le,ke,Gt),this._changeDetectorRef=ht,this._state="enter"}_getAnimationState(){return{value:this._state,params:{enterAnimationDuration:this._config.enterAnimationDuration||xe_params_enterAnimationDuration,exitAnimationDuration:this._config.exitAnimationDuration||xe_params_exitAnimationDuration}}}}return(ye=we).\u0275fac=function(T){return new(T||ye)(p.Y36(p.SBq),p.Y36(a.qV),p.Y36(D.K0,8),p.Y36(at),p.Y36(a.ic),p.Y36(p.R0b),p.Y36(r.Iu),p.Y36(p.sBO),p.Y36(a.tE))},ye.\u0275cmp=p.Xpm({type:ye,selectors:[["mat-dialog-container"]],hostAttrs:["tabindex","-1",1,"mat-dialog-container"],hostVars:7,hostBindings:function(T,V){1&T&&p.WFA("@dialogContainer.start",function(R){return V._onAnimationStart(R)})("@dialogContainer.done",function(R){return V._onAnimationDone(R)}),2&T&&(p.Ikx("id",V._config.id),p.uIk("aria-modal",V._config.ariaModal)("role",V._config.role)("aria-labelledby",V._config.ariaLabel?null:V._ariaLabelledByQueue[0])("aria-label",V._config.ariaLabel)("aria-describedby",V._config.ariaDescribedBy||null),p.d8E("@dialogContainer",V._getAnimationState()))},features:[p.qOj],decls:1,vars:0,consts:[["cdkPortalOutlet",""]],template:function(T,V){1&T&&p.YNc(0,ve,0,0,"ng-template",0)},dependencies:[A.Pl],styles:[".mat-dialog-container{display:block;padding:24px;border-radius:4px;box-sizing:border-box;overflow:auto;outline:0;width:100%;height:100%;min-height:inherit;max-height:inherit}.cdk-high-contrast-active .mat-dialog-container{outline:solid 1px}.mat-dialog-content{display:block;margin:0 -24px;padding:0 24px;max-height:65vh;overflow:auto;-webkit-overflow-scrolling:touch}.mat-dialog-title{margin:0 0 20px;display:block}.mat-dialog-actions{padding:8px 0;display:flex;flex-wrap:wrap;min-height:52px;align-items:center;box-sizing:content-box;margin-bottom:-24px}.mat-dialog-actions.mat-dialog-actions-align-center,.mat-dialog-actions[align=center]{justify-content:center}.mat-dialog-actions.mat-dialog-actions-align-end,.mat-dialog-actions[align=end]{justify-content:flex-end}.mat-dialog-actions .mat-button-base+.mat-button-base,.mat-dialog-actions .mat-mdc-button-base+.mat-mdc-button-base{margin-left:8px}[dir=rtl] .mat-dialog-actions .mat-button-base+.mat-button-base,[dir=rtl] .mat-dialog-actions .mat-mdc-button-base+.mat-mdc-button-base{margin-left:0;margin-right:8px}"],encapsulation:2,data:{animation:[Ce.dialogContainer]}}),we})();class Fe extends _e{}const je=new p.OlP("MatDialogData"),kt=new p.OlP("mat-dialog-default-options"),We=new p.OlP("mat-dialog-scroll-strategy"),Kt={provide:We,deps:[r.aV],useFactory:function Ft(ye){return()=>ye.scrollStrategies.block()}};let xt=(()=>{var ye;class we extends Ie{constructor(T,V,G,R,Y,le,ke,ht){super(T,V,R,le,ke,Y,Fe,Ot,je,ht),this.dialogConfigClass=at}}return(ye=we).\u0275fac=function(T){return new(T||ye)(p.LFG(r.aV),p.LFG(p.zs3),p.LFG(D.Ye,8),p.LFG(kt,8),p.LFG(We),p.LFG(ye,12),p.LFG(r.Xj),p.LFG(p.QbO,8))},ye.\u0275prov=p.Yz7({token:ye,factory:ye.\u0275fac}),we})(),vt=(()=>{var ye;class we{}return(ye=we).\u0275fac=function(T){return new(T||ye)},ye.\u0275mod=p.oAB({type:ye}),ye.\u0275inj=p.cJS({providers:[xt,Kt],imports:[be,r.U8,A.eL,pe.BQ,pe.BQ]}),we})()},16718:(Qe,he,s)=>{"use strict";s.d(he,{W0:()=>gt,tN:()=>nt,jT:()=>ve,D8:()=>oe});var a=s(65879),r=s(4300),b=s(42495),A=s(36028),D=s(72079),p=s(47354),E=s(7902),f=s(49193),c=s(17024),C=s(53075),m=s(75222),_=s(51418),g=s(19352),P=s(97734),U=s(29384),d=s(23680),q=s(96814),j=s(68484),K=s(86825),L=s(49388),w=s(80748),k=s(62831);const X=["mat-menu-item",""];function de(xe,at){1&xe&&(a.O4$(),a.TgZ(0,"svg",3),a._UZ(1,"polygon",4),a.qZA())}const re=[[["mat-icon"],["","matMenuItemIcon",""]],"*"],be=["mat-icon, [matMenuItemIcon]","*"],Je=new a.OlP("MAT_MENU_PANEL"),qe=(0,d.Kr)((0,d.Id)(class{}));let it=(()=>{var xe;class at extends qe{constructor(Fe,je,kt,We,Ft){var Kt;super(),this._elementRef=Fe,this._document=je,this._focusMonitor=kt,this._parentMenu=We,this._changeDetectorRef=Ft,this.role="menuitem",this._hovered=new D.xQ,this._focused=new D.xQ,this._highlighted=!1,this._triggersSubmenu=!1,null==(Kt=null==We?void 0:We.addItem)||Kt.call(We,this)}focus(Fe,je){this._focusMonitor&&Fe?this._focusMonitor.focusVia(this._getHostElement(),Fe,je):this._getHostElement().focus(je),this._focused.next(this)}ngAfterViewInit(){this._focusMonitor&&this._focusMonitor.monitor(this._elementRef,!1)}ngOnDestroy(){this._focusMonitor&&this._focusMonitor.stopMonitoring(this._elementRef),this._parentMenu&&this._parentMenu.removeItem&&this._parentMenu.removeItem(this),this._hovered.complete(),this._focused.complete()}_getTabIndex(){return this.disabled?"-1":"0"}_getHostElement(){return this._elementRef.nativeElement}_checkDisabled(Fe){this.disabled&&(Fe.preventDefault(),Fe.stopPropagation())}_handleMouseEnter(){this._hovered.next(this)}getLabel(){var kt;const Fe=this._elementRef.nativeElement.cloneNode(!0),je=Fe.querySelectorAll("mat-icon, .material-icons");for(let We=0;We enter",(0,K.jt)("120ms cubic-bezier(0, 0, 0.2, 1)",(0,K.oB)({opacity:1,transform:"scale(1)"}))),(0,K.eR)("* => void",(0,K.jt)("100ms 25ms linear",(0,K.oB)({opacity:0})))]),fadeInItems:(0,K.X$)("fadeInItems",[(0,K.SB)("showing",(0,K.oB)({opacity:1})),(0,K.eR)("void => *",[(0,K.oB)({opacity:0}),(0,K.jt)("400ms 100ms cubic-bezier(0.55, 0, 0.55, 0.2)")])])};let st=0;const bt=new a.OlP("mat-menu-default-options",{providedIn:"root",factory:function _e(){return{overlapTrigger:!1,xPosition:"after",yPosition:"below",backdropClass:"cdk-overlay-transparent-backdrop"}}});let H=(()=>{var xe;class at{get xPosition(){return this._xPosition}set xPosition(Fe){this._xPosition=Fe,this.setPositionClasses()}get yPosition(){return this._yPosition}set yPosition(Fe){this._yPosition=Fe,this.setPositionClasses()}get overlapTrigger(){return this._overlapTrigger}set overlapTrigger(Fe){this._overlapTrigger=(0,b.Ig)(Fe)}get hasBackdrop(){return this._hasBackdrop}set hasBackdrop(Fe){this._hasBackdrop=(0,b.Ig)(Fe)}set panelClass(Fe){const je=this._previousPanelClass;je&&je.length&&je.split(" ").forEach(kt=>{this._classList[kt]=!1}),this._previousPanelClass=Fe,Fe&&Fe.length&&(Fe.split(" ").forEach(kt=>{this._classList[kt]=!0}),this._elementRef.nativeElement.className="")}get classList(){return this.panelClass}set classList(Fe){this.panelClass=Fe}constructor(Fe,je,kt,We){this._elementRef=Fe,this._ngZone=je,this._changeDetectorRef=We,this._directDescendantItems=new a.n_E,this._classList={},this._panelAnimationState="void",this._animationDone=new D.xQ,this.closed=new a.vpe,this.close=this.closed,this.panelId="mat-menu-panel-"+st++,this.overlayPanelClass=kt.overlayPanelClass||"",this._xPosition=kt.xPosition,this._yPosition=kt.yPosition,this.backdropClass=kt.backdropClass,this._overlapTrigger=kt.overlapTrigger,this._hasBackdrop=kt.hasBackdrop}ngOnInit(){this.setPositionClasses()}ngAfterContentInit(){this._updateDirectDescendants(),this._keyManager=new r.Em(this._directDescendantItems).withWrap().withTypeAhead().withHomeAndEnd(),this._keyManager.tabOut.subscribe(()=>this.closed.emit("tab")),this._directDescendantItems.changes.pipe((0,C.O)(this._directDescendantItems),(0,m.w)(Fe=>(0,p.T)(...Fe.map(je=>je._focused)))).subscribe(Fe=>this._keyManager.updateActiveItem(Fe)),this._directDescendantItems.changes.subscribe(Fe=>{var kt;const je=this._keyManager;if("enter"===this._panelAnimationState&&null!=(kt=je.activeItem)&&kt._hasFocus()){const We=Fe.toArray(),Ft=Math.max(0,Math.min(We.length-1,je.activeItemIndex||0));We[Ft]&&!We[Ft].disabled?je.setActiveItem(Ft):je.setNextItemActive()}})}ngOnDestroy(){var Fe,je;null==(Fe=this._keyManager)||Fe.destroy(),this._directDescendantItems.destroy(),this.closed.complete(),null==(je=this._firstItemFocusSubscription)||je.unsubscribe()}_hovered(){return this._directDescendantItems.changes.pipe((0,C.O)(this._directDescendantItems),(0,m.w)(je=>(0,p.T)(...je.map(kt=>kt._hovered))))}addItem(Fe){}removeItem(Fe){}_handleKeydown(Fe){const je=Fe.keyCode,kt=this._keyManager;switch(je){case A.hY:(0,A.Vb)(Fe)||(Fe.preventDefault(),this.closed.emit("keydown"));break;case A.oh:this.parentMenu&&"ltr"===this.direction&&this.closed.emit("keydown");break;case A.SV:this.parentMenu&&"rtl"===this.direction&&this.closed.emit("keydown");break;default:return(je===A.LH||je===A.JH)&&kt.setFocusOrigin("keyboard"),void kt.onKeydown(Fe)}Fe.stopPropagation()}focusFirstItem(Fe="program"){var je;null==(je=this._firstItemFocusSubscription)||je.unsubscribe(),this._firstItemFocusSubscription=this._ngZone.onStable.pipe((0,_.q)(1)).subscribe(()=>{let kt=null;if(this._directDescendantItems.length&&(kt=this._directDescendantItems.first._getHostElement().closest('[role="menu"]')),!kt||!kt.contains(document.activeElement)){const We=this._keyManager;We.setFocusOrigin(Fe).setFirstItemActive(),!We.activeItem&&kt&&kt.focus()}})}resetActiveItem(){this._keyManager.setActiveItem(-1)}setElevation(Fe){const je=Math.min(this._baseElevation+Fe,24),kt=`${this._elevationPrefix}${je}`,We=Object.keys(this._classList).find(Ft=>Ft.startsWith(this._elevationPrefix));(!We||We===this._previousElevation)&&(this._previousElevation&&(this._classList[this._previousElevation]=!1),this._classList[kt]=!0,this._previousElevation=kt)}setPositionClasses(Fe=this.xPosition,je=this.yPosition){var We;const kt=this._classList;kt["mat-menu-before"]="before"===Fe,kt["mat-menu-after"]="after"===Fe,kt["mat-menu-above"]="above"===je,kt["mat-menu-below"]="below"===je,null==(We=this._changeDetectorRef)||We.markForCheck()}_startAnimation(){this._panelAnimationState="enter"}_resetAnimation(){this._panelAnimationState="void"}_onAnimationDone(Fe){this._animationDone.next(Fe),this._isAnimating=!1}_onAnimationStart(Fe){this._isAnimating=!0,"enter"===Fe.toState&&0===this._keyManager.activeItemIndex&&(Fe.element.scrollTop=0)}_updateDirectDescendants(){this._allItems.changes.pipe((0,C.O)(this._allItems)).subscribe(Fe=>{this._directDescendantItems.reset(Fe.filter(je=>je._parentMenu===this)),this._directDescendantItems.notifyOnChanges()})}}return(xe=at).\u0275fac=function(Fe){return new(Fe||xe)(a.Y36(a.SBq),a.Y36(a.R0b),a.Y36(bt),a.Y36(a.sBO))},xe.\u0275dir=a.lG2({type:xe,contentQueries:function(Fe,je,kt){if(1&Fe&&(a.Suo(kt,ze,5),a.Suo(kt,it,5),a.Suo(kt,it,4)),2&Fe){let We;a.iGM(We=a.CRH())&&(je.lazyContent=We.first),a.iGM(We=a.CRH())&&(je._allItems=We),a.iGM(We=a.CRH())&&(je.items=We)}},viewQuery:function(Fe,je){if(1&Fe&&a.Gf(a.Rgc,5),2&Fe){let kt;a.iGM(kt=a.CRH())&&(je.templateRef=kt.first)}},inputs:{backdropClass:"backdropClass",ariaLabel:["aria-label","ariaLabel"],ariaLabelledby:["aria-labelledby","ariaLabelledby"],ariaDescribedby:["aria-describedby","ariaDescribedby"],xPosition:"xPosition",yPosition:"yPosition",overlapTrigger:"overlapTrigger",hasBackdrop:"hasBackdrop",panelClass:["class","panelClass"],classList:"classList"},outputs:{closed:"closed",close:"close"}}),at})();const Me=new a.OlP("mat-menu-scroll-strategy"),dt={provide:Me,deps:[w.aV],useFactory:function Pe(xe){return()=>xe.scrollStrategies.reposition()}},Pt=(0,k.i$)({passive:!0});let cn=(()=>{var xe;class at{get _deprecatedMatMenuTriggerFor(){return this.menu}set _deprecatedMatMenuTriggerFor(Fe){this.menu=Fe}get menu(){return this._menu}set menu(Fe){var je;Fe!==this._menu&&(this._menu=Fe,this._menuCloseSubscription.unsubscribe(),Fe&&(this._menuCloseSubscription=Fe.close.subscribe(kt=>{this._destroyMenu(kt),("click"===kt||"tab"===kt)&&this._parentMaterialMenu&&this._parentMaterialMenu.closed.emit(kt)})),null==(je=this._menuItemInstance)||je._setTriggersSubmenu(this.triggersSubmenu()))}constructor(Fe,je,kt,We,Ft,Kt,xt,Mt,pt){this._overlay=Fe,this._element=je,this._viewContainerRef=kt,this._menuItemInstance=Kt,this._dir=xt,this._focusMonitor=Mt,this._ngZone=pt,this._overlayRef=null,this._menuOpen=!1,this._closingActionsSubscription=E.w.EMPTY,this._hoverSubscription=E.w.EMPTY,this._menuCloseSubscription=E.w.EMPTY,this._changeDetectorRef=(0,a.f3M)(a.sBO),this._handleTouchStart=St=>{(0,r.yG)(St)||(this._openedBy="touch")},this._openedBy=void 0,this.restoreFocus=!0,this.menuOpened=new a.vpe,this.onMenuOpen=this.menuOpened,this.menuClosed=new a.vpe,this.onMenuClose=this.menuClosed,this._scrollStrategy=We,this._parentMaterialMenu=Ft instanceof H?Ft:void 0,je.nativeElement.addEventListener("touchstart",this._handleTouchStart,Pt)}ngAfterContentInit(){this._handleHover()}ngOnDestroy(){this._overlayRef&&(this._overlayRef.dispose(),this._overlayRef=null),this._element.nativeElement.removeEventListener("touchstart",this._handleTouchStart,Pt),this._menuCloseSubscription.unsubscribe(),this._closingActionsSubscription.unsubscribe(),this._hoverSubscription.unsubscribe()}get menuOpen(){return this._menuOpen}get dir(){return this._dir&&"rtl"===this._dir.value?"rtl":"ltr"}triggersSubmenu(){return!!(this._menuItemInstance&&this._parentMaterialMenu&&this.menu)}toggleMenu(){return this._menuOpen?this.closeMenu():this.openMenu()}openMenu(){const Fe=this.menu;if(this._menuOpen||!Fe)return;const je=this._createOverlay(Fe),kt=je.getConfig(),We=kt.positionStrategy;this._setPosition(Fe,We),kt.hasBackdrop=null==Fe.hasBackdrop?!this.triggersSubmenu():Fe.hasBackdrop,je.attach(this._getPortal(Fe)),Fe.lazyContent&&Fe.lazyContent.attach(this.menuData),this._closingActionsSubscription=this._menuClosingActions().subscribe(()=>this.closeMenu()),this._initMenu(Fe),Fe instanceof H&&(Fe._startAnimation(),Fe._directDescendantItems.changes.pipe((0,g.R)(Fe.close)).subscribe(()=>{We.withLockedPosition(!1).reapplyLastPosition(),We.withLockedPosition(!0)}))}closeMenu(){var Fe;null==(Fe=this.menu)||Fe.close.emit()}focus(Fe,je){this._focusMonitor&&Fe?this._focusMonitor.focusVia(this._element,Fe,je):this._element.nativeElement.focus(je)}updatePosition(){var Fe;null==(Fe=this._overlayRef)||Fe.updatePosition()}_destroyMenu(Fe){var kt;if(!this._overlayRef||!this.menuOpen)return;const je=this.menu;this._closingActionsSubscription.unsubscribe(),this._overlayRef.detach(),this.restoreFocus&&("keydown"===Fe||!this._openedBy||!this.triggersSubmenu())&&this.focus(this._openedBy),this._openedBy=void 0,je instanceof H?(je._resetAnimation(),je.lazyContent?je._animationDone.pipe((0,P.h)(We=>"void"===We.toState),(0,_.q)(1),(0,g.R)(je.lazyContent._attached)).subscribe({next:()=>je.lazyContent.detach(),complete:()=>this._setIsMenuOpen(!1)}):this._setIsMenuOpen(!1)):(this._setIsMenuOpen(!1),null==(kt=null==je?void 0:je.lazyContent)||kt.detach())}_initMenu(Fe){Fe.parentMenu=this.triggersSubmenu()?this._parentMaterialMenu:void 0,Fe.direction=this.dir,this._setMenuElevation(Fe),Fe.focusFirstItem(this._openedBy||"program"),this._setIsMenuOpen(!0)}_setMenuElevation(Fe){if(Fe.setElevation){let je=0,kt=Fe.parentMenu;for(;kt;)je++,kt=kt.parentMenu;Fe.setElevation(je)}}_setIsMenuOpen(Fe){Fe!==this._menuOpen&&(this._menuOpen=Fe,this._menuOpen?this.menuOpened.emit():this.menuClosed.emit(),this.triggersSubmenu()&&this._menuItemInstance._setHighlighted(Fe),this._changeDetectorRef.markForCheck())}_createOverlay(Fe){if(!this._overlayRef){const je=this._getOverlayConfig(Fe);this._subscribeToPositions(Fe,je.positionStrategy),this._overlayRef=this._overlay.create(je),this._overlayRef.keydownEvents().subscribe()}return this._overlayRef}_getOverlayConfig(Fe){return new w.X_({positionStrategy:this._overlay.position().flexibleConnectedTo(this._element).withLockedPosition().withGrowAfterOpen().withTransformOriginOn(".mat-menu-panel, .mat-mdc-menu-panel"),backdropClass:Fe.backdropClass||"cdk-overlay-transparent-backdrop",panelClass:Fe.overlayPanelClass,scrollStrategy:this._scrollStrategy(),direction:this._dir})}_subscribeToPositions(Fe,je){Fe.setPositionClasses&&je.positionChanges.subscribe(kt=>{const We="start"===kt.connectionPair.overlayX?"after":"before",Ft="top"===kt.connectionPair.overlayY?"below":"above";this._ngZone?this._ngZone.run(()=>Fe.setPositionClasses(We,Ft)):Fe.setPositionClasses(We,Ft)})}_setPosition(Fe,je){let[kt,We]="before"===Fe.xPosition?["end","start"]:["start","end"],[Ft,Kt]="above"===Fe.yPosition?["bottom","top"]:["top","bottom"],[xt,Mt]=[Ft,Kt],[pt,St]=[kt,We],Zt=0;if(this.triggersSubmenu()){if(St=kt="before"===Fe.xPosition?"start":"end",We=pt="end"===kt?"start":"end",this._parentMaterialMenu){if(null==this._parentInnerPadding){const Ye=this._parentMaterialMenu.items.first;this._parentInnerPadding=Ye?Ye._getHostElement().offsetTop:0}Zt="bottom"===Ft?this._parentInnerPadding:-this._parentInnerPadding}}else Fe.overlapTrigger||(xt="top"===Ft?"bottom":"top",Mt="top"===Kt?"bottom":"top");je.withPositions([{originX:kt,originY:xt,overlayX:pt,overlayY:Ft,offsetY:Zt},{originX:We,originY:xt,overlayX:St,overlayY:Ft,offsetY:Zt},{originX:kt,originY:Mt,overlayX:pt,overlayY:Kt,offsetY:-Zt},{originX:We,originY:Mt,overlayX:St,overlayY:Kt,offsetY:-Zt}])}_menuClosingActions(){const Fe=this._overlayRef.backdropClick(),je=this._overlayRef.detachments(),kt=this._parentMaterialMenu?this._parentMaterialMenu.closed:(0,f.of)(),We=this._parentMaterialMenu?this._parentMaterialMenu._hovered().pipe((0,P.h)(Ft=>Ft!==this._menuItemInstance),(0,P.h)(()=>this._menuOpen)):(0,f.of)();return(0,p.T)(Fe,kt,We,je)}_handleMousedown(Fe){(0,r.X6)(Fe)||(this._openedBy=0===Fe.button?"mouse":void 0,this.triggersSubmenu()&&Fe.preventDefault())}_handleKeydown(Fe){const je=Fe.keyCode;(je===A.K5||je===A.L_)&&(this._openedBy="keyboard"),this.triggersSubmenu()&&(je===A.SV&&"ltr"===this.dir||je===A.oh&&"rtl"===this.dir)&&(this._openedBy="keyboard",this.openMenu())}_handleClick(Fe){this.triggersSubmenu()?(Fe.stopPropagation(),this.openMenu()):this.toggleMenu()}_handleHover(){!this.triggersSubmenu()||!this._parentMaterialMenu||(this._hoverSubscription=this._parentMaterialMenu._hovered().pipe((0,P.h)(Fe=>Fe===this._menuItemInstance&&!Fe.disabled),(0,U.g)(0,c.e)).subscribe(()=>{this._openedBy="mouse",this.menu instanceof H&&this.menu._isAnimating?this.menu._animationDone.pipe((0,_.q)(1),(0,U.g)(0,c.e),(0,g.R)(this._parentMaterialMenu._hovered())).subscribe(()=>this.openMenu()):this.openMenu()}))}_getPortal(Fe){return(!this._portal||this._portal.templateRef!==Fe.templateRef)&&(this._portal=new j.UE(Fe.templateRef,this._viewContainerRef)),this._portal}}return(xe=at).\u0275fac=function(Fe){return new(Fe||xe)(a.Y36(w.aV),a.Y36(a.SBq),a.Y36(a.s_b),a.Y36(Me),a.Y36(Je,8),a.Y36(it,10),a.Y36(L.Is,8),a.Y36(r.tE),a.Y36(a.R0b))},xe.\u0275dir=a.lG2({type:xe,hostVars:3,hostBindings:function(Fe,je){1&Fe&&a.NdJ("click",function(We){return je._handleClick(We)})("mousedown",function(We){return je._handleMousedown(We)})("keydown",function(We){return je._handleKeydown(We)}),2&Fe&&a.uIk("aria-haspopup",je.menu?"menu":null)("aria-expanded",je.menuOpen)("aria-controls",je.menuOpen?je.menu.panelId:null)},inputs:{_deprecatedMatMenuTriggerFor:["mat-menu-trigger-for","_deprecatedMatMenuTriggerFor"],menu:["matMenuTriggerFor","menu"],menuData:["matMenuTriggerData","menuData"],restoreFocus:["matMenuTriggerRestoreFocus","restoreFocus"]},outputs:{menuOpened:"menuOpened",onMenuOpen:"onMenuOpen",menuClosed:"menuClosed",onMenuClose:"onMenuClose"}}),at})();var ce=s(16672);function Ve(xe,at){if(1&xe){const Ot=a.EpF();a.TgZ(0,"div",0),a.NdJ("keydown",function(je){a.CHM(Ot);const kt=a.oxw();return a.KtG(kt._handleKeydown(je))})("click",function(){a.CHM(Ot);const je=a.oxw();return a.KtG(je.closed.emit("click"))})("@transformMenu.start",function(je){a.CHM(Ot);const kt=a.oxw();return a.KtG(kt._onAnimationStart(je))})("@transformMenu.done",function(je){a.CHM(Ot);const kt=a.oxw();return a.KtG(kt._onAnimationDone(je))}),a.TgZ(1,"div",1),a.Hsn(2),a.qZA()()}if(2&xe){const Ot=a.oxw();a.Q6J("id",Ot.panelId)("ngClass",Ot._classList)("@transformMenu",Ot._panelAnimationState),a.uIk("aria-label",Ot.ariaLabel||null)("aria-labelledby",Ot.ariaLabelledby||null)("aria-describedby",Ot.ariaDescribedby||null)}}const mt=["*"],Ut=["mat-menu-item",""];function Bt(xe,at){1&xe&&(a.O4$(),a.TgZ(0,"svg",2),a._UZ(1,"polygon",3),a.qZA())}let gt=(()=>{var xe;class at extends H{constructor(Fe,je,kt,We){super(Fe,je,kt,We),this._elevationPrefix="mat-elevation-z",this._baseElevation=4}}return(xe=at).\u0275fac=function(Fe){return new(Fe||xe)(a.Y36(a.SBq),a.Y36(a.R0b),a.Y36(bt),a.Y36(a.sBO))},xe.\u0275cmp=a.Xpm({type:xe,selectors:[["mat-menu"]],hostAttrs:["ngSkipHydration",""],hostVars:4,hostBindings:function(Fe,je){2&Fe&&a.uIk("aria-label",null)("aria-labelledby",null)("aria-describedby",null)("mat-id-collision",null)},exportAs:["matMenu"],features:[a._Bn([{provide:Je,useExisting:xe}]),a.qOj],ngContentSelectors:mt,decls:1,vars:0,consts:[["tabindex","-1","role","menu",1,"mat-menu-panel",3,"id","ngClass","keydown","click"],[1,"mat-menu-content"]],template:function(Fe,je){1&Fe&&(a.F$t(),a.YNc(0,Ve,3,6,"ng-template"))},dependencies:[q.mk],styles:['mat-menu{display:none}.mat-menu-panel{min-width:112px;max-width:280px;overflow:auto;-webkit-overflow-scrolling:touch;max-height:calc(100vh - 48px);border-radius:4px;outline:0;min-height:64px;position:relative}.mat-menu-panel.ng-animating{pointer-events:none}.cdk-high-contrast-active .mat-menu-panel{outline:solid 1px}.mat-menu-content:not(:empty){padding-top:8px;padding-bottom:8px}.mat-menu-item{-webkit-user-select:none;user-select:none;cursor:pointer;outline:none;border:none;-webkit-tap-highlight-color:rgba(0,0,0,0);white-space:nowrap;overflow:hidden;text-overflow:ellipsis;display:block;line-height:48px;height:48px;padding:0 16px;text-align:left;text-decoration:none;max-width:100%;position:relative}.mat-menu-item::-moz-focus-inner{border:0}.mat-menu-item[disabled]{cursor:default}[dir=rtl] .mat-menu-item{text-align:right}.mat-menu-item .mat-icon{margin-right:16px;vertical-align:middle}.mat-menu-item .mat-icon svg{vertical-align:top}[dir=rtl] .mat-menu-item .mat-icon{margin-left:16px;margin-right:0}.mat-menu-item[disabled]::after{display:block;position:absolute;content:"";top:0;left:0;bottom:0;right:0}.cdk-high-contrast-active .mat-menu-item{margin-top:1px}.mat-menu-item-submenu-trigger{padding-right:32px}[dir=rtl] .mat-menu-item-submenu-trigger{padding-right:16px;padding-left:32px}.mat-menu-submenu-icon{position:absolute;top:50%;right:16px;transform:translateY(-50%);width:5px;height:10px;fill:currentColor}[dir=rtl] .mat-menu-submenu-icon{right:auto;left:16px;transform:translateY(-50%) scaleX(-1)}.cdk-high-contrast-active .mat-menu-submenu-icon{fill:CanvasText}button.mat-menu-item{width:100%}.mat-menu-item .mat-menu-ripple{top:0;left:0;right:0;bottom:0;position:absolute;pointer-events:none}'],encapsulation:2,data:{animation:[Ct.transformMenu,Ct.fadeInItems]},changeDetection:0}),at})(),nt=(()=>{var xe;class at extends it{}return(xe=at).\u0275fac=function(){let Ot;return function(je){return(Ot||(Ot=a.n5z(xe)))(je||xe)}}(),xe.\u0275cmp=a.Xpm({type:xe,selectors:[["","mat-menu-item",""]],hostAttrs:[1,"mat-focus-indicator"],hostVars:20,hostBindings:function(Fe,je){2&Fe&&(a.uIk("role",je.role)("tabindex",je._getTabIndex())("aria-disabled",je.disabled.toString())("disabled",je.disabled||null),a.ekj("mat-menu-item",!0)("mat-menu-item-highlighted",je._highlighted)("mat-menu-item-submenu-trigger",je._triggersSubmenu)("mat-mdc-menu-item",!1)("mat-mdc-focus-indicator",!1)("mdc-list-item",!1)("mat-mdc-menu-item-highlighted",!1)("mat-mdc-menu-item-submenu-trigger",!1))},inputs:{disabled:"disabled",disableRipple:"disableRipple"},exportAs:["matMenuItem"],features:[a._Bn([{provide:it,useExisting:xe}]),a.qOj],attrs:Ut,ngContentSelectors:mt,decls:3,vars:3,consts:[["matRipple","",1,"mat-menu-ripple",3,"matRippleDisabled","matRippleTrigger"],["class","mat-menu-submenu-icon","viewBox","0 0 5 10","focusable","false","aria-hidden","true",4,"ngIf"],["viewBox","0 0 5 10","focusable","false","aria-hidden","true",1,"mat-menu-submenu-icon"],["points","0,0 5,5 0,10"]],template:function(Fe,je){1&Fe&&(a.F$t(),a.Hsn(0),a._UZ(1,"div",0),a.YNc(2,Bt,2,0,"svg",1)),2&Fe&&(a.xp6(1),a.Q6J("matRippleDisabled",je.disableRipple||je.disabled)("matRippleTrigger",je._getHostElement()),a.xp6(1),a.Q6J("ngIf",je._triggersSubmenu))},dependencies:[q.O5,d.wG],encapsulation:2,changeDetection:0}),at})(),oe=(()=>{var xe;class at extends cn{}return(xe=at).\u0275fac=function(){let Ot;return function(je){return(Ot||(Ot=a.n5z(xe)))(je||xe)}}(),xe.\u0275dir=a.lG2({type:xe,selectors:[["","mat-menu-trigger-for",""],["","matMenuTriggerFor",""]],hostAttrs:[1,"mat-menu-trigger"],exportAs:["matMenuTrigger"],features:[a.qOj]}),at})(),ve=(()=>{var xe;class at{}return(xe=at).\u0275fac=function(Fe){return new(Fe||xe)},xe.\u0275mod=a.oAB({type:xe}),xe.\u0275inj=a.cJS({providers:[dt],imports:[q.ez,d.BQ,d.si,w.U8,ce.ZD,d.BQ]}),at})()},21865:(Qe,he,s)=>{"use strict";s.d(he,{pl:()=>U,y:()=>P});var a=s(80748),r=s(68484),b=s(96814),A=s(65879),D=s(23680),p=s(94505),E=s(22939),f=s(4300),c=s(71088);function C(d,q){if(1&d){const j=A.EpF();A.TgZ(0,"div",2)(1,"button",3),A.NdJ("click",function(){A.CHM(j);const L=A.oxw();return A.KtG(L.action())}),A._uU(2),A.qZA()()}if(2&d){const j=A.oxw();A.xp6(2),A.Oqu(j.data.action)}}function m(d,q){}let _=(()=>{var d;class q{constructor(K,L){this.snackBarRef=K,this.data=L}action(){this.snackBarRef.dismissWithAction()}get hasAction(){return!!this.data.action}}return(d=q).\u0275fac=function(K){return new(K||d)(A.Y36(E.OX),A.Y36(E.qD))},d.\u0275cmp=A.Xpm({type:d,selectors:[["simple-snack-bar"]],hostAttrs:[1,"mat-simple-snackbar"],decls:3,vars:2,consts:[[1,"mat-simple-snack-bar-content"],["class","mat-simple-snackbar-action",4,"ngIf"],[1,"mat-simple-snackbar-action"],["mat-button","",3,"click"]],template:function(K,L){1&K&&(A.TgZ(0,"span",0),A._uU(1),A.qZA(),A.YNc(2,C,3,1,"div",1)),2&K&&(A.xp6(1),A.Oqu(L.data.message),A.xp6(1),A.Q6J("ngIf",L.hasAction))},dependencies:[b.O5,p.eB],styles:[".mat-simple-snackbar{display:flex;justify-content:space-between;align-items:center;line-height:20px;opacity:1}.mat-simple-snackbar-action{flex-shrink:0;margin:-8px -8px -8px 8px}.mat-simple-snackbar-action button{max-height:36px;min-width:0}[dir=rtl] .mat-simple-snackbar-action{margin-left:-8px;margin-right:8px}.mat-simple-snack-bar-content{overflow:hidden;text-overflow:ellipsis}"],encapsulation:2,changeDetection:0}),q})(),g=(()=>{var d;class q extends E.xi{_afterPortalAttached(){super._afterPortalAttached(),"center"===this.snackBarConfig.horizontalPosition&&this._elementRef.nativeElement.classList.add("mat-snack-bar-center"),"top"===this.snackBarConfig.verticalPosition&&this._elementRef.nativeElement.classList.add("mat-snack-bar-top")}}return(d=q).\u0275fac=function(){let j;return function(L){return(j||(j=A.n5z(d)))(L||d)}}(),d.\u0275cmp=A.Xpm({type:d,selectors:[["snack-bar-container"]],hostAttrs:[1,"mat-snack-bar-container"],hostVars:1,hostBindings:function(K,L){1&K&&A.WFA("@state.done",function(k){return L.onAnimationEnd(k)}),2&K&&A.d8E("@state",L._animationState)},features:[A.qOj],decls:3,vars:3,consts:[["aria-hidden","true"],["cdkPortalOutlet",""]],template:function(K,L){1&K&&(A.TgZ(0,"div",0),A.YNc(1,m,0,0,"ng-template",1),A.qZA(),A._UZ(2,"div")),2&K&&(A.xp6(2),A.uIk("aria-live",L._live)("role",L._role)("id",L._liveElementId))},dependencies:[r.Pl],styles:[".mat-snack-bar-container{border-radius:4px;box-sizing:border-box;display:block;margin:24px;max-width:33vw;min-width:344px;padding:14px 16px;min-height:48px;transform-origin:center}.cdk-high-contrast-active .mat-snack-bar-container{border:solid 1px}.mat-snack-bar-handset{width:100%}.mat-snack-bar-handset .mat-snack-bar-container{margin:8px;max-width:100%;min-width:0;width:100%}"],encapsulation:2,data:{animation:[E.Et.snackBarState]}}),q})(),P=(()=>{var d;class q{}return(d=q).\u0275fac=function(K){return new(K||d)},d.\u0275mod=A.oAB({type:d}),d.\u0275inj=A.cJS({imports:[a.U8,r.eL,b.ez,p.yu,D.BQ,D.BQ]}),q})(),U=(()=>{var d;class q extends E.rA{constructor(K,L,w,k,X,de){super(K,L,w,k,X,de),this.simpleSnackBarComponent=_,this.snackBarContainerComponent=g,this.handsetCssClass="mat-snack-bar-handset"}}return(d=q).\u0275fac=function(K){return new(K||d)(A.LFG(a.aV),A.LFG(f.Kd),A.LFG(A.zs3),A.LFG(c.Yg),A.LFG(d,12),A.LFG(E.Ve))},d.\u0275prov=A.Yz7({token:d,factory:d.\u0275fac,providedIn:P}),q})()},21476:(Qe,he,s)=>{"use strict";s.d(he,{ik:()=>g,n7:()=>j,ye:()=>m});var a=s(65879),r=s(72079),b=s(23680),A=s(42495);let m=(()=>{var k;class X{constructor(){this.changes=new r.xQ,this.itemsPerPageLabel="Items per page:",this.nextPageLabel="Next page",this.previousPageLabel="Previous page",this.firstPageLabel="First page",this.lastPageLabel="Last page",this.getRangeLabel=(re,be,pe)=>{if(0==pe||0==be)return`0 of ${pe}`;const $e=re*be;return`${$e+1} \u2013 ${$e<(pe=Math.max(pe,0))?Math.min($e+be,pe):$e+be} of ${pe}`}}}return(k=X).\u0275fac=function(re){return new(re||k)},k.\u0275prov=a.Yz7({token:k,factory:k.\u0275fac,providedIn:"root"}),X})();const g={provide:m,deps:[[new a.FiY,new a.tp0,m]],useFactory:function _(k){return k||new m}},q=(0,b.Id)((0,b.dB)(class{}));let j=(()=>{var k;class X extends q{get pageIndex(){return this._pageIndex}set pageIndex(re){this._pageIndex=Math.max((0,A.su)(re),0),this._changeDetectorRef.markForCheck()}get length(){return this._length}set length(re){this._length=(0,A.su)(re),this._changeDetectorRef.markForCheck()}get pageSize(){return this._pageSize}set pageSize(re){this._pageSize=Math.max((0,A.su)(re),0),this._updateDisplayedPageSizeOptions()}get pageSizeOptions(){return this._pageSizeOptions}set pageSizeOptions(re){this._pageSizeOptions=(re||[]).map(be=>(0,A.su)(be)),this._updateDisplayedPageSizeOptions()}get hidePageSize(){return this._hidePageSize}set hidePageSize(re){this._hidePageSize=(0,A.Ig)(re)}get showFirstLastButtons(){return this._showFirstLastButtons}set showFirstLastButtons(re){this._showFirstLastButtons=(0,A.Ig)(re)}constructor(re,be,pe){if(super(),this._intl=re,this._changeDetectorRef=be,this._pageIndex=0,this._length=0,this._pageSizeOptions=[],this._hidePageSize=!1,this._showFirstLastButtons=!1,this.selectConfig={},this.page=new a.vpe,this._intlChanges=re.changes.subscribe(()=>this._changeDetectorRef.markForCheck()),pe){const{pageSize:$e,pageSizeOptions:Je,hidePageSize:qe,showFirstLastButtons:it}=pe;null!=$e&&(this._pageSize=$e),null!=Je&&(this._pageSizeOptions=Je),null!=qe&&(this._hidePageSize=qe),null!=it&&(this._showFirstLastButtons=it)}}ngOnInit(){this._initialized=!0,this._updateDisplayedPageSizeOptions(),this._markInitialized()}ngOnDestroy(){this._intlChanges.unsubscribe()}nextPage(){if(!this.hasNextPage())return;const re=this.pageIndex;this.pageIndex=this.pageIndex+1,this._emitPageEvent(re)}previousPage(){if(!this.hasPreviousPage())return;const re=this.pageIndex;this.pageIndex=this.pageIndex-1,this._emitPageEvent(re)}firstPage(){if(!this.hasPreviousPage())return;const re=this.pageIndex;this.pageIndex=0,this._emitPageEvent(re)}lastPage(){if(!this.hasNextPage())return;const re=this.pageIndex;this.pageIndex=this.getNumberOfPages()-1,this._emitPageEvent(re)}hasPreviousPage(){return this.pageIndex>=1&&0!=this.pageSize}hasNextPage(){const re=this.getNumberOfPages()-1;return this.pageIndexre-be),this._changeDetectorRef.markForCheck())}_emitPageEvent(re){this.page.emit({previousPageIndex:re,pageIndex:this.pageIndex,pageSize:this.pageSize,length:this.length})}}return(k=X).\u0275fac=function(re){a.$Z()},k.\u0275dir=a.lG2({type:k,inputs:{color:"color",pageIndex:"pageIndex",length:"length",pageSize:"pageSize",pageSizeOptions:"pageSizeOptions",hidePageSize:"hidePageSize",showFirstLastButtons:"showFirstLastButtons",selectConfig:"selectConfig"},outputs:{page:"page"},features:[a.qOj]}),X})()},22939:(Qe,he,s)=>{"use strict";s.d(he,{Et:()=>X,OX:()=>d,Ve:()=>Je,qD:()=>q,rA:()=>qe,xi:()=>re});var a=s(65879),r=s(72079),b=s(96814),A=s(86825),D=s(68484),p=s(62831),E=s(51418),f=s(19352),c=s(4300),C=s(71088),m=s(80748);const U=Math.pow(2,31)-1;class d{constructor(tt,_t){this._overlayRef=_t,this._afterDismissed=new r.xQ,this._afterOpened=new r.xQ,this._onAction=new r.xQ,this._dismissedByAction=!1,this.containerInstance=tt,tt._onExit.subscribe(()=>this._finishDismiss())}dismiss(){this._afterDismissed.closed||this.containerInstance.exit(),clearTimeout(this._durationTimeoutId)}dismissWithAction(){this._onAction.closed||(this._dismissedByAction=!0,this._onAction.next(),this._onAction.complete(),this.dismiss()),clearTimeout(this._durationTimeoutId)}closeWithAction(){this.dismissWithAction()}_dismissAfter(tt){this._durationTimeoutId=setTimeout(()=>this.dismiss(),Math.min(tt,U))}_open(){this._afterOpened.closed||(this._afterOpened.next(),this._afterOpened.complete())}_finishDismiss(){this._overlayRef.dispose(),this._onAction.closed||this._onAction.complete(),this._afterDismissed.next({dismissedByAction:this._dismissedByAction}),this._afterDismissed.complete(),this._dismissedByAction=!1}afterDismissed(){return this._afterDismissed}afterOpened(){return this.containerInstance._onEnter}onAction(){return this._onAction}}const q=new a.OlP("MatSnackBarData");class j{constructor(){this.politeness="assertive",this.announcementMessage="",this.duration=0,this.data=null,this.horizontalPosition="center",this.verticalPosition="bottom"}}const X={snackBarState:(0,A.X$)("state",[(0,A.SB)("void, hidden",(0,A.oB)({transform:"scale(0.8)",opacity:0})),(0,A.SB)("visible",(0,A.oB)({transform:"scale(1)",opacity:1})),(0,A.eR)("* => visible",(0,A.jt)("150ms cubic-bezier(0, 0, 0.2, 1)")),(0,A.eR)("* => void, * => hidden",(0,A.jt)("75ms cubic-bezier(0.4, 0.0, 1, 1)",(0,A.oB)({opacity:0})))])};let de=0,re=(()=>{var rt;class tt extends D.en{constructor(ze,Ze,ot,Ct,De){super(),this._ngZone=ze,this._elementRef=Ze,this._changeDetectorRef=ot,this._platform=Ct,this.snackBarConfig=De,this._document=(0,a.f3M)(b.K0),this._trackedModals=new Set,this._announceDelay=150,this._destroyed=!1,this._onAnnounce=new r.xQ,this._onExit=new r.xQ,this._onEnter=new r.xQ,this._animationState="void",this._liveElementId="mat-snack-bar-container-live-"+de++,this.attachDomPortal=ft=>{this._assertNotAttached();const st=this._portalOutlet.attachDomPortal(ft);return this._afterPortalAttached(),st},this._live="assertive"!==De.politeness||De.announcementMessage?"off"===De.politeness?"off":"polite":"assertive",this._platform.FIREFOX&&("polite"===this._live&&(this._role="status"),"assertive"===this._live&&(this._role="alert"))}attachComponentPortal(ze){this._assertNotAttached();const Ze=this._portalOutlet.attachComponentPortal(ze);return this._afterPortalAttached(),Ze}attachTemplatePortal(ze){this._assertNotAttached();const Ze=this._portalOutlet.attachTemplatePortal(ze);return this._afterPortalAttached(),Ze}onAnimationEnd(ze){const{fromState:Ze,toState:ot}=ze;if(("void"===ot&&"void"!==Ze||"hidden"===ot)&&this._completeExit(),"visible"===ot){const Ct=this._onEnter;this._ngZone.run(()=>{Ct.next(),Ct.complete()})}}enter(){this._destroyed||(this._animationState="visible",this._changeDetectorRef.detectChanges(),this._screenReaderAnnounce())}exit(){return this._ngZone.run(()=>{this._animationState="hidden",this._elementRef.nativeElement.setAttribute("mat-exit",""),clearTimeout(this._announceTimeoutId)}),this._onExit}ngOnDestroy(){this._destroyed=!0,this._clearFromModals(),this._completeExit()}_completeExit(){this._ngZone.onMicrotaskEmpty.pipe((0,E.q)(1)).subscribe(()=>{this._ngZone.run(()=>{this._onExit.next(),this._onExit.complete()})})}_afterPortalAttached(){const ze=this._elementRef.nativeElement,Ze=this.snackBarConfig.panelClass;Ze&&(Array.isArray(Ze)?Ze.forEach(ot=>ze.classList.add(ot)):ze.classList.add(Ze)),this._exposeToModals()}_exposeToModals(){const ze=this._liveElementId,Ze=this._document.querySelectorAll('body > .cdk-overlay-container [aria-modal="true"]');for(let ot=0;ot{const Ze=ze.getAttribute("aria-owns");if(Ze){const ot=Ze.replace(this._liveElementId,"").trim();ot.length>0?ze.setAttribute("aria-owns",ot):ze.removeAttribute("aria-owns")}}),this._trackedModals.clear()}_assertNotAttached(){this._portalOutlet.hasAttached()}_screenReaderAnnounce(){this._announceTimeoutId||this._ngZone.runOutsideAngular(()=>{this._announceTimeoutId=setTimeout(()=>{const ze=this._elementRef.nativeElement.querySelector("[aria-hidden]"),Ze=this._elementRef.nativeElement.querySelector("[aria-live]");if(ze&&Ze){let ot=null;this._platform.isBrowser&&document.activeElement instanceof HTMLElement&&ze.contains(document.activeElement)&&(ot=document.activeElement),ze.removeAttribute("aria-hidden"),Ze.appendChild(ze),null==ot||ot.focus(),this._onAnnounce.next(),this._onAnnounce.complete()}},this._announceDelay)})}}return(rt=tt).\u0275fac=function(ze){return new(ze||rt)(a.Y36(a.R0b),a.Y36(a.SBq),a.Y36(a.sBO),a.Y36(p.t4),a.Y36(j))},rt.\u0275dir=a.lG2({type:rt,viewQuery:function(ze,Ze){if(1&ze&&a.Gf(D.Pl,7),2&ze){let ot;a.iGM(ot=a.CRH())&&(Ze._portalOutlet=ot.first)}},features:[a.qOj]}),tt})();const Je=new a.OlP("mat-snack-bar-default-options",{providedIn:"root",factory:function $e(){return new j}});let qe=(()=>{var rt;class tt{get _openedSnackBarRef(){const ze=this._parentSnackBar;return ze?ze._openedSnackBarRef:this._snackBarRefAtThisLevel}set _openedSnackBarRef(ze){this._parentSnackBar?this._parentSnackBar._openedSnackBarRef=ze:this._snackBarRefAtThisLevel=ze}constructor(ze,Ze,ot,Ct,De,ft){this._overlay=ze,this._live=Ze,this._injector=ot,this._breakpointObserver=Ct,this._parentSnackBar=De,this._defaultConfig=ft,this._snackBarRefAtThisLevel=null}openFromComponent(ze,Ze){return this._attach(ze,Ze)}openFromTemplate(ze,Ze){return this._attach(ze,Ze)}open(ze,Ze="",ot){const Ct={...this._defaultConfig,...ot};return Ct.data={message:ze,action:Ze},Ct.announcementMessage===ze&&(Ct.announcementMessage=void 0),this.openFromComponent(this.simpleSnackBarComponent,Ct)}dismiss(){this._openedSnackBarRef&&this._openedSnackBarRef.dismiss()}ngOnDestroy(){this._snackBarRefAtThisLevel&&this._snackBarRefAtThisLevel.dismiss()}_attachSnackBarContainer(ze,Ze){const Ct=a.zs3.create({parent:Ze&&Ze.viewContainerRef&&Ze.viewContainerRef.injector||this._injector,providers:[{provide:j,useValue:Ze}]}),De=new D.C5(this.snackBarContainerComponent,Ze.viewContainerRef,Ct),ft=ze.attach(De);return ft.instance.snackBarConfig=Ze,ft.instance}_attach(ze,Ze){const ot={...new j,...this._defaultConfig,...Ze},Ct=this._createOverlay(ot),De=this._attachSnackBarContainer(Ct,ot),ft=new d(De,Ct);if(ze instanceof a.Rgc){const st=new D.UE(ze,null,{$implicit:ot.data,snackBarRef:ft});ft.instance=De.attachTemplatePortal(st)}else{const st=this._createInjector(ot,ft),bt=new D.C5(ze,void 0,st),_e=De.attachComponentPortal(bt);ft.instance=_e.instance}return this._breakpointObserver.observe(C.u3.HandsetPortrait).pipe((0,f.R)(Ct.detachments())).subscribe(st=>{Ct.overlayElement.classList.toggle(this.handsetCssClass,st.matches)}),ot.announcementMessage&&De._onAnnounce.subscribe(()=>{this._live.announce(ot.announcementMessage,ot.politeness)}),this._animateSnackBar(ft,ot),this._openedSnackBarRef=ft,this._openedSnackBarRef}_animateSnackBar(ze,Ze){ze.afterDismissed().subscribe(()=>{this._openedSnackBarRef==ze&&(this._openedSnackBarRef=null),Ze.announcementMessage&&this._live.clear()}),this._openedSnackBarRef?(this._openedSnackBarRef.afterDismissed().subscribe(()=>{ze.containerInstance.enter()}),this._openedSnackBarRef.dismiss()):ze.containerInstance.enter(),Ze.duration&&Ze.duration>0&&ze.afterOpened().subscribe(()=>ze._dismissAfter(Ze.duration))}_createOverlay(ze){const Ze=new m.X_;Ze.direction=ze.direction;let ot=this._overlay.position().global();const Ct="rtl"===ze.direction,De="left"===ze.horizontalPosition||"start"===ze.horizontalPosition&&!Ct||"end"===ze.horizontalPosition&&Ct,ft=!De&&"center"!==ze.horizontalPosition;return De?ot.left("0"):ft?ot.right("0"):ot.centerHorizontally(),"top"===ze.verticalPosition?ot.top("0"):ot.bottom("0"),Ze.positionStrategy=ot,this._overlay.create(Ze)}_createInjector(ze,Ze){return a.zs3.create({parent:ze&&ze.viewContainerRef&&ze.viewContainerRef.injector||this._injector,providers:[{provide:d,useValue:Ze},{provide:q,useValue:ze.data}]})}}return(rt=tt).\u0275fac=function(ze){return new(ze||rt)(a.LFG(m.aV),a.LFG(c.Kd),a.LFG(a.zs3),a.LFG(C.Yg),a.LFG(rt,12),a.LFG(Je))},rt.\u0275prov=a.Yz7({token:rt,factory:rt.\u0275fac}),tt})()},6593:(Qe,he,s)=>{"use strict";s.d(he,{Dx:()=>mt,H7:()=>xt,b2:()=>cn,h_:()=>ne,q6:()=>Pe,se:()=>be});var a=s(65879),r=s(96814);class b extends r.w_{constructor(){super(...arguments),this.supportsDOMEvents=!0}}class A extends b{static makeCurrent(){(0,r.HT)(new A)}onAndCancel(V,G,R){return V.addEventListener(G,R),()=>{V.removeEventListener(G,R)}}dispatchEvent(V,G){V.dispatchEvent(G)}remove(V){V.parentNode&&V.parentNode.removeChild(V)}createElement(V,G){return(G=G||this.getDefaultDocument()).createElement(V)}createHtmlDocument(){return document.implementation.createHTMLDocument("fakeTitle")}getDefaultDocument(){return document}isElementNode(V){return V.nodeType===Node.ELEMENT_NODE}isShadowRoot(V){return V instanceof DocumentFragment}getGlobalEventTarget(V,G){return"window"===G?window:"document"===G?V:"body"===G?V.body:null}getBaseHref(V){const G=function p(){return D=D||document.querySelector("base"),D?D.getAttribute("href"):null}();return null==G?null:function f(T){E=E||document.createElement("a"),E.setAttribute("href",T);const V=E.pathname;return"/"===V.charAt(0)?V:`/${V}`}(G)}resetBaseElement(){D=null}getUserAgent(){return window.navigator.userAgent}getCookie(V){return(0,r.Mx)(document.cookie,V)}}let E,D=null,C=(()=>{var T;class V{build(){return new XMLHttpRequest}}return(T=V).\u0275fac=function(R){return new(R||T)},T.\u0275prov=a.Yz7({token:T,factory:T.\u0275fac}),V})();const m=new a.OlP("EventManagerPlugins");let _=(()=>{var T;class V{constructor(R,Y){this._zone=Y,this._eventNameToPlugin=new Map,R.forEach(le=>{le.manager=this}),this._plugins=R.slice().reverse()}addEventListener(R,Y,le){return this._findPluginFor(Y).addEventListener(R,Y,le)}getZone(){return this._zone}_findPluginFor(R){let Y=this._eventNameToPlugin.get(R);if(Y)return Y;if(Y=this._plugins.find(ke=>ke.supports(R)),!Y)throw new a.vHH(5101,!1);return this._eventNameToPlugin.set(R,Y),Y}}return(T=V).\u0275fac=function(R){return new(R||T)(a.LFG(m),a.LFG(a.R0b))},T.\u0275prov=a.Yz7({token:T,factory:T.\u0275fac}),V})();class g{constructor(V){this._doc=V}}const P="ng-app-id";let U=(()=>{var T;class V{constructor(R,Y,le,ke={}){this.doc=R,this.appId=Y,this.nonce=le,this.platformId=ke,this.styleRef=new Map,this.hostNodes=new Set,this.styleNodesInDOM=this.collectServerRenderedStyles(),this.platformIsServer=(0,r.PM)(ke),this.resetHostNodes()}addStyles(R){for(const Y of R)1===this.changeUsageCount(Y,1)&&this.onStyleAdded(Y)}removeStyles(R){for(const Y of R)this.changeUsageCount(Y,-1)<=0&&this.onStyleRemoved(Y)}ngOnDestroy(){const R=this.styleNodesInDOM;R&&(R.forEach(Y=>Y.remove()),R.clear());for(const Y of this.getAllStyles())this.onStyleRemoved(Y);this.resetHostNodes()}addHost(R){this.hostNodes.add(R);for(const Y of this.getAllStyles())this.addStyleToHost(R,Y)}removeHost(R){this.hostNodes.delete(R)}getAllStyles(){return this.styleRef.keys()}onStyleAdded(R){for(const Y of this.hostNodes)this.addStyleToHost(Y,R)}onStyleRemoved(R){var le,ke;const Y=this.styleRef;null==(ke=null==(le=Y.get(R))?void 0:le.elements)||ke.forEach(ht=>ht.remove()),Y.delete(R)}collectServerRenderedStyles(){var Y;const R=null==(Y=this.doc.head)?void 0:Y.querySelectorAll(`style[${P}="${this.appId}"]`);if(null!=R&&R.length){const le=new Map;return R.forEach(ke=>{null!=ke.textContent&&le.set(ke.textContent,ke)}),le}return null}changeUsageCount(R,Y){const le=this.styleRef;if(le.has(R)){const ke=le.get(R);return ke.usage+=Y,ke.usage}return le.set(R,{usage:Y,elements:[]}),Y}getStyleElement(R,Y){const le=this.styleNodesInDOM,ke=null==le?void 0:le.get(Y);if((null==ke?void 0:ke.parentNode)===R)return le.delete(Y),ke.removeAttribute(P),ke;{const ht=this.doc.createElement("style");return this.nonce&&ht.setAttribute("nonce",this.nonce),ht.textContent=Y,this.platformIsServer&&ht.setAttribute(P,this.appId),ht}}addStyleToHost(R,Y){var Gt;const le=this.getStyleElement(R,Y);R.appendChild(le);const ke=this.styleRef,ht=null==(Gt=ke.get(Y))?void 0:Gt.elements;ht?ht.push(le):ke.set(Y,{elements:[le],usage:1})}resetHostNodes(){const R=this.hostNodes;R.clear(),R.add(this.doc.head)}}return(T=V).\u0275fac=function(R){return new(R||T)(a.LFG(r.K0),a.LFG(a.AFp),a.LFG(a.Ojb,8),a.LFG(a.Lbi))},T.\u0275prov=a.Yz7({token:T,factory:T.\u0275fac}),V})();const d={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/"},q=/%COMP%/g,j="%COMP%",K=`_nghost-${j}`,L=`_ngcontent-${j}`,k=new a.OlP("RemoveStylesOnCompDestroy",{providedIn:"root",factory:()=>!1});function re(T,V){return V.map(G=>G.replace(q,T))}let be=(()=>{var T;class V{constructor(R,Y,le,ke,ht,Gt,Wt,mn=null){this.eventManager=R,this.sharedStylesHost=Y,this.appId=le,this.removeStylesOnCompDestroy=ke,this.doc=ht,this.platformId=Gt,this.ngZone=Wt,this.nonce=mn,this.rendererByCompId=new Map,this.platformIsServer=(0,r.PM)(Gt),this.defaultRenderer=new pe(R,ht,Wt,this.platformIsServer)}createRenderer(R,Y){if(!R||!Y)return this.defaultRenderer;this.platformIsServer&&Y.encapsulation===a.ifc.ShadowDom&&(Y={...Y,encapsulation:a.ifc.Emulated});const le=this.getOrCreateRenderer(R,Y);return le instanceof tt?le.applyToHost(R):le instanceof rt&&le.applyStyles(),le}getOrCreateRenderer(R,Y){const le=this.rendererByCompId;let ke=le.get(Y.id);if(!ke){const ht=this.doc,Gt=this.ngZone,Wt=this.eventManager,mn=this.sharedStylesHost,wn=this.removeStylesOnCompDestroy,ut=this.platformIsServer;switch(Y.encapsulation){case a.ifc.Emulated:ke=new tt(Wt,mn,Y,this.appId,wn,ht,Gt,ut);break;case a.ifc.ShadowDom:return new it(Wt,mn,R,Y,ht,Gt,this.nonce,ut);default:ke=new rt(Wt,mn,Y,wn,ht,Gt,ut)}le.set(Y.id,ke)}return ke}ngOnDestroy(){this.rendererByCompId.clear()}}return(T=V).\u0275fac=function(R){return new(R||T)(a.LFG(_),a.LFG(U),a.LFG(a.AFp),a.LFG(k),a.LFG(r.K0),a.LFG(a.Lbi),a.LFG(a.R0b),a.LFG(a.Ojb))},T.\u0275prov=a.Yz7({token:T,factory:T.\u0275fac}),V})();class pe{constructor(V,G,R,Y){this.eventManager=V,this.doc=G,this.ngZone=R,this.platformIsServer=Y,this.data=Object.create(null),this.destroyNode=null}destroy(){}createElement(V,G){return G?this.doc.createElementNS(d[G]||G,V):this.doc.createElement(V)}createComment(V){return this.doc.createComment(V)}createText(V){return this.doc.createTextNode(V)}appendChild(V,G){(qe(V)?V.content:V).appendChild(G)}insertBefore(V,G,R){V&&(qe(V)?V.content:V).insertBefore(G,R)}removeChild(V,G){V&&V.removeChild(G)}selectRootElement(V,G){let R="string"==typeof V?this.doc.querySelector(V):V;if(!R)throw new a.vHH(-5104,!1);return G||(R.textContent=""),R}parentNode(V){return V.parentNode}nextSibling(V){return V.nextSibling}setAttribute(V,G,R,Y){if(Y){G=Y+":"+G;const le=d[Y];le?V.setAttributeNS(le,G,R):V.setAttribute(G,R)}else V.setAttribute(G,R)}removeAttribute(V,G,R){if(R){const Y=d[R];Y?V.removeAttributeNS(Y,G):V.removeAttribute(`${R}:${G}`)}else V.removeAttribute(G)}addClass(V,G){V.classList.add(G)}removeClass(V,G){V.classList.remove(G)}setStyle(V,G,R,Y){Y&(a.JOm.DashCase|a.JOm.Important)?V.style.setProperty(G,R,Y&a.JOm.Important?"important":""):V.style[G]=R}removeStyle(V,G,R){R&a.JOm.DashCase?V.style.removeProperty(G):V.style[G]=""}setProperty(V,G,R){V[G]=R}setValue(V,G){V.nodeValue=G}listen(V,G,R){if("string"==typeof V&&!(V=(0,r.q)().getGlobalEventTarget(this.doc,V)))throw new Error(`Unsupported event target ${V} for event ${G}`);return this.eventManager.addEventListener(V,G,this.decoratePreventDefault(R))}decoratePreventDefault(V){return G=>{if("__ngUnwrap__"===G)return V;!1===(this.platformIsServer?this.ngZone.runGuarded(()=>V(G)):V(G))&&G.preventDefault()}}}function qe(T){return"TEMPLATE"===T.tagName&&void 0!==T.content}class it extends pe{constructor(V,G,R,Y,le,ke,ht,Gt){super(V,le,ke,Gt),this.sharedStylesHost=G,this.hostEl=R,this.shadowRoot=R.attachShadow({mode:"open"}),this.sharedStylesHost.addHost(this.shadowRoot);const Wt=re(Y.id,Y.styles);for(const mn of Wt){const wn=document.createElement("style");ht&&wn.setAttribute("nonce",ht),wn.textContent=mn,this.shadowRoot.appendChild(wn)}}nodeOrShadowRoot(V){return V===this.hostEl?this.shadowRoot:V}appendChild(V,G){return super.appendChild(this.nodeOrShadowRoot(V),G)}insertBefore(V,G,R){return super.insertBefore(this.nodeOrShadowRoot(V),G,R)}removeChild(V,G){return super.removeChild(this.nodeOrShadowRoot(V),G)}parentNode(V){return this.nodeOrShadowRoot(super.parentNode(this.nodeOrShadowRoot(V)))}destroy(){this.sharedStylesHost.removeHost(this.shadowRoot)}}class rt extends pe{constructor(V,G,R,Y,le,ke,ht,Gt){super(V,le,ke,ht),this.sharedStylesHost=G,this.removeStylesOnCompDestroy=Y,this.styles=Gt?re(Gt,R.styles):R.styles}applyStyles(){this.sharedStylesHost.addStyles(this.styles)}destroy(){this.removeStylesOnCompDestroy&&this.sharedStylesHost.removeStyles(this.styles)}}class tt extends rt{constructor(V,G,R,Y,le,ke,ht,Gt){const Wt=Y+"-"+R.id;super(V,G,R,le,ke,ht,Gt,Wt),this.contentAttr=function X(T){return L.replace(q,T)}(Wt),this.hostAttr=function de(T){return K.replace(q,T)}(Wt)}applyToHost(V){this.applyStyles(),this.setAttribute(V,this.hostAttr,"")}createElement(V,G){const R=super.createElement(V,G);return super.setAttribute(R,this.contentAttr,""),R}}let _t=(()=>{var T;class V extends g{constructor(R){super(R)}supports(R){return!0}addEventListener(R,Y,le){return R.addEventListener(Y,le,!1),()=>this.removeEventListener(R,Y,le)}removeEventListener(R,Y,le){return R.removeEventListener(Y,le)}}return(T=V).\u0275fac=function(R){return new(R||T)(a.LFG(r.K0))},T.\u0275prov=a.Yz7({token:T,factory:T.\u0275fac}),V})();const ze=["alt","control","meta","shift"],Ze={"\b":"Backspace","\t":"Tab","\x7f":"Delete","\x1b":"Escape",Del:"Delete",Esc:"Escape",Left:"ArrowLeft",Right:"ArrowRight",Up:"ArrowUp",Down:"ArrowDown",Menu:"ContextMenu",Scroll:"ScrollLock",Win:"OS"},ot={alt:T=>T.altKey,control:T=>T.ctrlKey,meta:T=>T.metaKey,shift:T=>T.shiftKey};let Ct=(()=>{var T;class V extends g{constructor(R){super(R)}supports(R){return null!=V.parseEventName(R)}addEventListener(R,Y,le){const ke=V.parseEventName(Y),ht=V.eventCallback(ke.fullKey,le,this.manager.getZone());return this.manager.getZone().runOutsideAngular(()=>(0,r.q)().onAndCancel(R,ke.domEventName,ht))}static parseEventName(R){const Y=R.toLowerCase().split("."),le=Y.shift();if(0===Y.length||"keydown"!==le&&"keyup"!==le)return null;const ke=V._normalizeKey(Y.pop());let ht="",Gt=Y.indexOf("code");if(Gt>-1&&(Y.splice(Gt,1),ht="code."),ze.forEach(mn=>{const wn=Y.indexOf(mn);wn>-1&&(Y.splice(wn,1),ht+=mn+".")}),ht+=ke,0!=Y.length||0===ke.length)return null;const Wt={};return Wt.domEventName=le,Wt.fullKey=ht,Wt}static matchEventFullKeyCode(R,Y){let le=Ze[R.key]||R.key,ke="";return Y.indexOf("code.")>-1&&(le=R.code,ke="code."),!(null==le||!le)&&(le=le.toLowerCase()," "===le?le="space":"."===le&&(le="dot"),ze.forEach(ht=>{ht!==le&&(0,ot[ht])(R)&&(ke+=ht+".")}),ke+=le,ke===Y)}static eventCallback(R,Y,le){return ke=>{V.matchEventFullKeyCode(ke,R)&&le.runGuarded(()=>Y(ke))}}static _normalizeKey(R){return"esc"===R?"escape":R}}return(T=V).\u0275fac=function(R){return new(R||T)(a.LFG(r.K0))},T.\u0275prov=a.Yz7({token:T,factory:T.\u0275fac}),V})();const Pe=(0,a.eFA)(a._c5,"browser",[{provide:a.Lbi,useValue:r.bD},{provide:a.g9A,useValue:function _e(){A.makeCurrent()},multi:!0},{provide:r.K0,useFactory:function Te(){return(0,a.RDi)(document),document},deps:[]}]),dt=new a.OlP(""),Pt=[{provide:a.rWj,useClass:class c{addToWindow(V){a.dqk.getAngularTestability=(R,Y=!0)=>{const le=V.findTestabilityInTree(R,Y);if(null==le)throw new a.vHH(5103,!1);return le},a.dqk.getAllAngularTestabilities=()=>V.getAllTestabilities(),a.dqk.getAllAngularRootElements=()=>V.getAllRootElements(),a.dqk.frameworkStabilizers||(a.dqk.frameworkStabilizers=[]),a.dqk.frameworkStabilizers.push(R=>{const Y=a.dqk.getAllAngularTestabilities();let le=Y.length,ke=!1;const ht=function(Gt){ke=ke||Gt,le--,0==le&&R(ke)};Y.forEach(Gt=>{Gt.whenStable(ht)})})}findTestabilityInTree(V,G,R){return null==G?null:V.getTestability(G)??(R?(0,r.q)().isShadowRoot(G)?this.findTestabilityInTree(V,G.host,!0):this.findTestabilityInTree(V,G.parentElement,!0):null)}},deps:[]},{provide:a.lri,useClass:a.dDg,deps:[a.R0b,a.eoX,a.rWj]},{provide:a.dDg,useClass:a.dDg,deps:[a.R0b,a.eoX,a.rWj]}],Qt=[{provide:a.zSh,useValue:"root"},{provide:a.qLn,useFactory:function H(){return new a.qLn},deps:[]},{provide:m,useClass:_t,multi:!0,deps:[r.K0,a.R0b,a.Lbi]},{provide:m,useClass:Ct,multi:!0,deps:[r.K0]},be,U,_,{provide:a.FYo,useExisting:be},{provide:r.JF,useClass:C,deps:[]},[]];let cn=(()=>{var T;class V{constructor(R){}static withServerTransition(R){return{ngModule:V,providers:[{provide:a.AFp,useValue:R.appId}]}}}return(T=V).\u0275fac=function(R){return new(R||T)(a.LFG(dt,12))},T.\u0275mod=a.oAB({type:T}),T.\u0275inj=a.cJS({providers:[...Qt,...Pt],imports:[r.ez,a.hGG]}),V})(),ne=(()=>{var T;class V{constructor(R){this._doc=R,this._dom=(0,r.q)()}addTag(R,Y=!1){return R?this._getOrCreateElement(R,Y):null}addTags(R,Y=!1){return R?R.reduce((le,ke)=>(ke&&le.push(this._getOrCreateElement(ke,Y)),le),[]):[]}getTag(R){return R&&this._doc.querySelector(`meta[${R}]`)||null}getTags(R){if(!R)return[];const Y=this._doc.querySelectorAll(`meta[${R}]`);return Y?[].slice.call(Y):[]}updateTag(R,Y){if(!R)return null;Y=Y||this._parseSelector(R);const le=this.getTag(Y);return le?this._setMetaElementAttributes(R,le):this._getOrCreateElement(R,!0)}removeTag(R){this.removeTagElement(this.getTag(R))}removeTagElement(R){R&&this._dom.remove(R)}_getOrCreateElement(R,Y=!1){if(!Y){const ht=this._parseSelector(R),Gt=this.getTags(ht).filter(Wt=>this._containsAttributes(R,Wt))[0];if(void 0!==Gt)return Gt}const le=this._dom.createElement("meta");return this._setMetaElementAttributes(R,le),this._doc.getElementsByTagName("head")[0].appendChild(le),le}_setMetaElementAttributes(R,Y){return Object.keys(R).forEach(le=>Y.setAttribute(this._getMetaKeyMap(le),R[le])),Y}_parseSelector(R){const Y=R.name?"name":"property";return`${Y}="${R[Y]}"`}_containsAttributes(R,Y){return Object.keys(R).every(le=>Y.getAttribute(this._getMetaKeyMap(le))===R[le])}_getMetaKeyMap(R){return ce[R]||R}}return(T=V).\u0275fac=function(R){return new(R||T)(a.LFG(r.K0))},T.\u0275prov=a.Yz7({token:T,factory:function(R){let Y=null;return Y=R?new R:function Ie(){return new ne((0,a.LFG)(r.K0))}(),Y},providedIn:"root"}),V})();const ce={httpEquiv:"http-equiv"};let mt=(()=>{var T;class V{constructor(R){this._doc=R}getTitle(){return this._doc.title}setTitle(R){this._doc.title=R||""}}return(T=V).\u0275fac=function(R){return new(R||T)(a.LFG(r.K0))},T.\u0275prov=a.Yz7({token:T,factory:function(R){let Y=null;return Y=R?new R:function Ve(){return new mt((0,a.LFG)(r.K0))}(),Y},providedIn:"root"}),V})();typeof window<"u"&&window;let xt=(()=>{var T;class V{}return(T=V).\u0275fac=function(R){return new(R||T)},T.\u0275prov=a.Yz7({token:T,factory:function(R){let Y=null;return Y=R?new(R||T):a.LFG(pt),Y},providedIn:"root"}),V})(),pt=(()=>{var T;class V extends xt{constructor(R){super(),this._doc=R}sanitize(R,Y){if(null==Y)return null;switch(R){case a.q3G.NONE:return Y;case a.q3G.HTML:return(0,a.qzn)(Y,"HTML")?(0,a.z3N)(Y):(0,a.EiD)(this._doc,String(Y)).toString();case a.q3G.STYLE:return(0,a.qzn)(Y,"Style")?(0,a.z3N)(Y):Y;case a.q3G.SCRIPT:if((0,a.qzn)(Y,"Script"))return(0,a.z3N)(Y);throw new a.vHH(5200,!1);case a.q3G.URL:return(0,a.qzn)(Y,"URL")?(0,a.z3N)(Y):(0,a.mCW)(String(Y));case a.q3G.RESOURCE_URL:if((0,a.qzn)(Y,"ResourceURL"))return(0,a.z3N)(Y);throw new a.vHH(5201,!1);default:throw new a.vHH(5202,!1)}}bypassSecurityTrustHtml(R){return(0,a.JVY)(R)}bypassSecurityTrustStyle(R){return(0,a.L6k)(R)}bypassSecurityTrustScript(R){return(0,a.eBb)(R)}bypassSecurityTrustUrl(R){return(0,a.LAX)(R)}bypassSecurityTrustResourceUrl(R){return(0,a.pB0)(R)}}return(T=V).\u0275fac=function(R){return new(R||T)(a.LFG(r.K0))},T.\u0275prov=a.Yz7({token:T,factory:function(R){let Y=null;return Y=R?new R:function Mt(T){return new pt(T.get(r.K0))}(a.LFG(a.zs3)),Y},providedIn:"root"}),V})()},88165:(Qe,he,s)=>{"use strict";s.d(he,{gz:()=>xr,m2:()=>Ai,OD:()=>qn,F0:()=>Ti,rH:()=>Mi,Bz:()=>Hn,lC:()=>$n});var a=s(65879),r=s(95363),b=s(5253),A=s(49193),D=s(45125),p=s(23291),E=s(79319),f=s(93990),c=s(24917),C=s(54813),m=s(16222),_=s(91226),g=s(44247),P=s(72079),U=s(7902),d=s(96814),q=s(96124),j=s(75222),K=s(51418),L=s(53075),w=s(97734),k=s(96743),X=s(88419),de=s(59724),re=s(17927),be=s(62413),pe=s(40254);class Je{constructor($,Z,F=!1){this.accumulator=$,this.seed=Z,this.hasSeed=F}call($,Z){return Z.subscribe(new qe($,this.accumulator,this.seed,this.hasSeed))}}class qe extends pe.L{constructor($,Z,F,te){super($),this.accumulator=Z,this._seed=F,this.hasSeed=te,this.index=0}get seed(){return this._seed}set seed($){this.hasSeed=!0,this._seed=$}_next($){if(this.hasSeed)return this._tryNext($);this.seed=$,this.destination.next($)}_tryNext($){const Z=this.index++;let F;try{F=this.accumulator(this.seed,$,Z)}catch(te){this.destination.error(te)}this.seed=F,this.destination.next(F)}}var it=s(7428),rt=s(70959),tt=s(74599);class ze{constructor($){this.value=$}call($,Z){return Z.subscribe(new Ze($,this.value))}}class Ze extends pe.L{constructor($,Z){super($),this.value=Z}_next($){this.destination.next(this.value)}}var ot=s(11541),Ct=s(82851),De=s(19352),ft=s(87449),st=s(6593);const bt="primary",_e=Symbol("RouteTitle");class H{constructor($){this.params=$||{}}has($){return Object.prototype.hasOwnProperty.call(this.params,$)}get($){if(this.has($)){const Z=this.params[$];return Array.isArray(Z)?Z[0]:Z}return null}getAll($){if(this.has($)){const Z=this.params[$];return Array.isArray(Z)?Z:[Z]}return[]}get keys(){return Object.keys(this.params)}}function Te(N){return new H(N)}function Me(N,$,Z){const F=Z.path.split("/");if(F.length>N.length||"full"===Z.pathMatch&&($.hasChildren()||F.lengthF[Se]===te)}return N===$}function Qt(N){return N.length>0?N[N.length-1]:null}function cn(N){return(0,r.b)(N)?N:(0,a.QGY)(N)?(0,b.D)(Promise.resolve(N)):(0,A.of)(N)}const Ie={exact:function mt(N,$,Z){if(!at(N.segments,$.segments)||!nt(N.segments,$.segments,Z)||N.numberOfChildren!==$.numberOfChildren)return!1;for(const F in $.children)if(!N.children[F]||!mt(N.children[F],$.children[F],Z))return!1;return!0},subset:Bt},ne={exact:function Ve(N,$){return dt(N,$)},subset:function Ut(N,$){return Object.keys($).length<=Object.keys(N).length&&Object.keys($).every(Z=>Pt(N[Z],$[Z]))},ignored:()=>!0};function ce(N,$,Z){return Ie[Z.paths](N.root,$.root,Z.matrixParams)&&ne[Z.queryParams](N.queryParams,$.queryParams)&&!("exact"===Z.fragment&&N.fragment!==$.fragment)}function Bt(N,$,Z){return gt(N,$,$.segments,Z)}function gt(N,$,Z,F){if(N.segments.length>Z.length){const te=N.segments.slice(0,Z.length);return!(!at(te,Z)||$.hasChildren()||!nt(te,Z,F))}if(N.segments.length===Z.length){if(!at(N.segments,Z)||!nt(N.segments,Z,F))return!1;for(const te in $.children)if(!N.children[te]||!Bt(N.children[te],$.children[te],F))return!1;return!0}{const te=Z.slice(0,N.segments.length),Se=Z.slice(N.segments.length);return!!(at(N.segments,te)&&nt(N.segments,te,F)&&N.children[bt])&>(N.children[bt],$,Se,F)}}function nt(N,$,Z){return $.every((F,te)=>ne[Z](N[te].parameters,F.parameters))}class oe{constructor($=new Ce([],{}),Z={},F=null){this.root=$,this.queryParams=Z,this.fragment=F}get queryParamMap(){return this._queryParamMap||(this._queryParamMap=Te(this.queryParams)),this._queryParamMap}toString(){return kt.serialize(this)}}class Ce{constructor($,Z){this.segments=$,this.children=Z,this.parent=null,Object.values(Z).forEach(F=>F.parent=this)}hasChildren(){return this.numberOfChildren>0}get numberOfChildren(){return Object.keys(this.children).length}toString(){return We(this)}}class ve{constructor($,Z){this.path=$,this.parameters=Z}get parameterMap(){return this._parameterMap||(this._parameterMap=Te(this.parameters)),this._parameterMap}toString(){return Ye(this)}}function at(N,$){return N.length===$.length&&N.every((Z,F)=>Z.path===$[F].path)}let Fe=(()=>{var N;class ${}return(N=$).\u0275fac=function(F){return new(F||N)},N.\u0275prov=a.Yz7({token:N,factory:function(){return new je},providedIn:"root"}),$})();class je{parse($){const Z=new le($);return new oe(Z.parseRootSegment(),Z.parseQueryParams(),Z.parseFragment())}serialize($){const Z=`/${Ft($.root,!0)}`,F=function vt(N){const $=Object.keys(N).map(Z=>{const F=N[Z];return Array.isArray(F)?F.map(te=>`${xt(Z)}=${xt(te)}`).join("&"):`${xt(Z)}=${xt(F)}`}).filter(Z=>!!Z);return $.length?`?${$.join("&")}`:""}($.queryParams);return`${Z}${F}${"string"==typeof $.fragment?`#${function Mt(N){return encodeURI(N)}($.fragment)}`:""}`}}const kt=new je;function We(N){return N.segments.map($=>Ye($)).join("/")}function Ft(N,$){if(!N.hasChildren())return We(N);if($){const Z=N.children[bt]?Ft(N.children[bt],!1):"",F=[];return Object.entries(N.children).forEach(([te,Se])=>{te!==bt&&F.push(`${te}:${Ft(Se,!1)}`)}),F.length>0?`${Z}(${F.join("//")})`:Z}{const Z=function Ot(N,$){let Z=[];return Object.entries(N.children).forEach(([F,te])=>{F===bt&&(Z=Z.concat($(te,F)))}),Object.entries(N.children).forEach(([F,te])=>{F!==bt&&(Z=Z.concat($(te,F)))}),Z}(N,(F,te)=>te===bt?[Ft(N.children[bt],!1)]:[`${te}:${Ft(F,!1)}`]);return 1===Object.keys(N.children).length&&null!=N.children[bt]?`${We(N)}/${Z[0]}`:`${We(N)}/(${Z.join("//")})`}}function Kt(N){return encodeURIComponent(N).replace(/%40/g,"@").replace(/%3A/gi,":").replace(/%24/g,"$").replace(/%2C/gi,",")}function xt(N){return Kt(N).replace(/%3B/gi,";")}function pt(N){return Kt(N).replace(/\(/g,"%28").replace(/\)/g,"%29").replace(/%26/gi,"&")}function St(N){return decodeURIComponent(N)}function Zt(N){return St(N.replace(/\+/g,"%20"))}function Ye(N){return`${pt(N.path)}${function Ee(N){return Object.keys(N).map($=>`;${pt($)}=${pt(N[$])}`).join("")}(N.parameters)}`}const ye=/^[^\/()?;#]+/;function we(N){const $=N.match(ye);return $?$[0]:""}const ge=/^[^\/()?;=#]+/,V=/^[^=?&#]+/,R=/^[^&#]+/;class le{constructor($){this.url=$,this.remaining=$}parseRootSegment(){return this.consumeOptional("/"),""===this.remaining||this.peekStartsWith("?")||this.peekStartsWith("#")?new Ce([],{}):new Ce([],this.parseChildren())}parseQueryParams(){const $={};if(this.consumeOptional("?"))do{this.parseQueryParam($)}while(this.consumeOptional("&"));return $}parseFragment(){return this.consumeOptional("#")?decodeURIComponent(this.remaining):null}parseChildren(){if(""===this.remaining)return{};this.consumeOptional("/");const $=[];for(this.peekStartsWith("(")||$.push(this.parseSegment());this.peekStartsWith("/")&&!this.peekStartsWith("//")&&!this.peekStartsWith("/(");)this.capture("/"),$.push(this.parseSegment());let Z={};this.peekStartsWith("/(")&&(this.capture("/"),Z=this.parseParens(!0));let F={};return this.peekStartsWith("(")&&(F=this.parseParens(!1)),($.length>0||Object.keys(Z).length>0)&&(F[bt]=new Ce($,Z)),F}parseSegment(){const $=we(this.remaining);if(""===$&&this.peekStartsWith(";"))throw new a.vHH(4009,!1);return this.capture($),new ve(St($),this.parseMatrixParams())}parseMatrixParams(){const $={};for(;this.consumeOptional(";");)this.parseParam($);return $}parseParam($){const Z=function T(N){const $=N.match(ge);return $?$[0]:""}(this.remaining);if(!Z)return;this.capture(Z);let F="";if(this.consumeOptional("=")){const te=we(this.remaining);te&&(F=te,this.capture(F))}$[St(Z)]=St(F)}parseQueryParam($){const Z=function G(N){const $=N.match(V);return $?$[0]:""}(this.remaining);if(!Z)return;this.capture(Z);let F="";if(this.consumeOptional("=")){const Ge=function Y(N){const $=N.match(R);return $?$[0]:""}(this.remaining);Ge&&(F=Ge,this.capture(F))}const te=Zt(Z),Se=Zt(F);if($.hasOwnProperty(te)){let Ge=$[te];Array.isArray(Ge)||(Ge=[Ge],$[te]=Ge),Ge.push(Se)}else $[te]=Se}parseParens($){const Z={};for(this.capture("(");!this.consumeOptional(")")&&this.remaining.length>0;){const F=we(this.remaining),te=this.remaining[F.length];if("/"!==te&&")"!==te&&";"!==te)throw new a.vHH(4010,!1);let Se;F.indexOf(":")>-1?(Se=F.slice(0,F.indexOf(":")),this.capture(Se),this.capture(":")):$&&(Se=bt);const Ge=this.parseChildren();Z[Se]=1===Object.keys(Ge).length?Ge[bt]:new Ce([],Ge),this.consumeOptional("//")}return Z}peekStartsWith($){return this.remaining.startsWith($)}consumeOptional($){return!!this.peekStartsWith($)&&(this.remaining=this.remaining.substring($.length),!0)}capture($){if(!this.consumeOptional($))throw new a.vHH(4011,!1)}}function ke(N){return N.segments.length>0?new Ce([],{[bt]:N}):N}function ht(N){const $={};for(const F of Object.keys(N.children)){const Se=ht(N.children[F]);if(F===bt&&0===Se.segments.length&&Se.hasChildren())for(const[Ge,Rt]of Object.entries(Se.children))$[Ge]=Rt;else(Se.segments.length>0||Se.hasChildren())&&($[F]=Se)}return function Gt(N){if(1===N.numberOfChildren&&N.children[bt]){const $=N.children[bt];return new Ce(N.segments.concat($.segments),$.children)}return N}(new Ce(N.segments,$))}function Wt(N){return N instanceof oe}function wn(N){let $;const te=ke(function Z(Se){const Ge={};for(const hn of Se.children){const Vt=Z(hn);Ge[hn.outlet]=Vt}const Rt=new Ce(Se.url,Ge);return Se===N&&($=Rt),Rt}(N.root));return $??te}function ut(N,$,Z,F){let te=N;for(;te.parent;)te=te.parent;if(0===$.length)return Tt(te,te,te,Z,F);const Se=function fn(N){if("string"==typeof N[0]&&1===N.length&&"/"===N[0])return new Yt(!0,0,N);let $=0,Z=!1;const F=N.reduce((te,Se,Ge)=>{if("object"==typeof Se&&null!=Se){if(Se.outlets){const Rt={};return Object.entries(Se.outlets).forEach(([hn,Vt])=>{Rt[hn]="string"==typeof Vt?Vt.split("/"):Vt}),[...te,{outlets:Rt}]}if(Se.segmentPath)return[...te,Se.segmentPath]}return"string"!=typeof Se?[...te,Se]:0===Ge?(Se.split("/").forEach((Rt,hn)=>{0==hn&&"."===Rt||(0==hn&&""===Rt?Z=!0:".."===Rt?$++:""!=Rt&&te.push(Rt))}),te):[...te,Se]},[]);return new Yt(Z,$,F)}($);if(Se.toRoot())return Tt(te,te,new Ce([],{}),Z,F);const Ge=function en(N,$,Z){if(N.isAbsolute)return new dn($,!0,0);if(!Z)return new dn($,!1,NaN);if(null===Z.parent)return new dn(Z,!0,0);const F=Xe(N.commands[0])?0:1;return function Tn(N,$,Z){let F=N,te=$,Se=Z;for(;Se>te;){if(Se-=te,F=F.parent,!F)throw new a.vHH(4005,!1);te=F.segments.length}return new dn(F,!1,te-Se)}(Z,Z.segments.length-1+F,N.numberOfDoubleDots)}(Se,te,N),Rt=Ge.processChildren?Ci(Ge.segmentGroup,Ge.index,Se.commands):wi(Ge.segmentGroup,Ge.index,Se.commands);return Tt(te,Ge.segmentGroup,Rt,Z,F)}function Xe(N){return"object"==typeof N&&null!=N&&!N.outlets&&!N.segmentPath}function Nt(N){return"object"==typeof N&&null!=N&&N.outlets}function Tt(N,$,Z,F,te){let Ge,Se={};F&&Object.entries(F).forEach(([hn,Vt])=>{Se[hn]=Array.isArray(Vt)?Vt.map(yn=>`${yn}`):`${Vt}`}),Ge=N===$?Z:qt(N,$,Z);const Rt=ke(ht(Ge));return new oe(Rt,Se,te)}function qt(N,$,Z){const F={};return Object.entries(N.children).forEach(([te,Se])=>{F[te]=Se===$?Z:qt(Se,$,Z)}),new Ce(N.segments,F)}class Yt{constructor($,Z,F){if(this.isAbsolute=$,this.numberOfDoubleDots=Z,this.commands=F,$&&F.length>0&&Xe(F[0]))throw new a.vHH(4003,!1);const te=F.find(Nt);if(te&&te!==Qt(F))throw new a.vHH(4004,!1)}toRoot(){return this.isAbsolute&&1===this.commands.length&&"/"==this.commands[0]}}class dn{constructor($,Z,F){this.segmentGroup=$,this.processChildren=Z,this.index=F}}function wi(N,$,Z){if(N||(N=new Ce([],{})),0===N.segments.length&&N.hasChildren())return Ci(N,$,Z);const F=function Ii(N,$,Z){let F=0,te=$;const Se={match:!1,pathIndex:0,commandIndex:0};for(;te=Z.length)return Se;const Ge=N.segments[te],Rt=Z[F];if(Nt(Rt))break;const hn=`${Rt}`,Vt=F0&&void 0===hn)break;if(hn&&Vt&&"object"==typeof Vt&&void 0===Vt.outlets){if(!oi(hn,Vt,Ge))return Se;F+=2}else{if(!oi(hn,{},Ge))return Se;F++}te++}return{match:!0,pathIndex:te,commandIndex:F}}(N,$,Z),te=Z.slice(F.commandIndex);if(F.match&&F.pathIndexSe!==bt)&&N.children[bt]&&1===N.numberOfChildren&&0===N.children[bt].segments.length){const Se=Ci(N.children[bt],$,Z);return new Ce(N.segments,Se.children)}return Object.entries(F).forEach(([Se,Ge])=>{"string"==typeof Ge&&(Ge=[Ge]),null!==Ge&&(te[Se]=wi(N.children[Se],$,Ge))}),Object.entries(N.children).forEach(([Se,Ge])=>{void 0===F[Se]&&(te[Se]=Ge)}),new Ce(N.segments,te)}}function zi(N,$,Z){const F=N.segments.slice(0,$);let te=0;for(;te{"string"==typeof F&&(F=[F]),null!==F&&($[Z]=zi(new Ce([],{}),0,F))}),$}function Qn(N){const $={};return Object.entries(N).forEach(([Z,F])=>$[Z]=`${F}`),$}function oi(N,$,Z){return N==Z.path&&dt($,Z.parameters)}const ji="imperative";class Ki{constructor($,Z){this.id=$,this.url=Z}}class qn extends Ki{constructor($,Z,F="imperative",te=null){super($,Z),this.type=0,this.navigationTrigger=F,this.restoredState=te}toString(){return`NavigationStart(id: ${this.id}, url: '${this.url}')`}}class Ai extends Ki{constructor($,Z,F){super($,Z),this.urlAfterRedirects=F,this.type=1}toString(){return`NavigationEnd(id: ${this.id}, url: '${this.url}', urlAfterRedirects: '${this.urlAfterRedirects}')`}}class xi extends Ki{constructor($,Z,F,te){super($,Z),this.reason=F,this.code=te,this.type=2}toString(){return`NavigationCancel(id: ${this.id}, url: '${this.url}')`}}class Fi extends Ki{constructor($,Z,F,te){super($,Z),this.reason=F,this.code=te,this.type=16}}class ki extends Ki{constructor($,Z,F,te){super($,Z),this.error=F,this.target=te,this.type=3}toString(){return`NavigationError(id: ${this.id}, url: '${this.url}', error: ${this.error})`}}class Hi extends Ki{constructor($,Z,F,te){super($,Z),this.urlAfterRedirects=F,this.state=te,this.type=4}toString(){return`RoutesRecognized(id: ${this.id}, url: '${this.url}', urlAfterRedirects: '${this.urlAfterRedirects}', state: ${this.state})`}}class Lr extends Ki{constructor($,Z,F,te){super($,Z),this.urlAfterRedirects=F,this.state=te,this.type=7}toString(){return`GuardsCheckStart(id: ${this.id}, url: '${this.url}', urlAfterRedirects: '${this.urlAfterRedirects}', state: ${this.state})`}}class Ri extends Ki{constructor($,Z,F,te,Se){super($,Z),this.urlAfterRedirects=F,this.state=te,this.shouldActivate=Se,this.type=8}toString(){return`GuardsCheckEnd(id: ${this.id}, url: '${this.url}', urlAfterRedirects: '${this.urlAfterRedirects}', state: ${this.state}, shouldActivate: ${this.shouldActivate})`}}class jr extends Ki{constructor($,Z,F,te){super($,Z),this.urlAfterRedirects=F,this.state=te,this.type=5}toString(){return`ResolveStart(id: ${this.id}, url: '${this.url}', urlAfterRedirects: '${this.urlAfterRedirects}', state: ${this.state})`}}class co extends Ki{constructor($,Z,F,te){super($,Z),this.urlAfterRedirects=F,this.state=te,this.type=6}toString(){return`ResolveEnd(id: ${this.id}, url: '${this.url}', urlAfterRedirects: '${this.urlAfterRedirects}', state: ${this.state})`}}class bn{constructor($){this.route=$,this.type=9}toString(){return`RouteConfigLoadStart(path: ${this.route.path})`}}class Bo{constructor($){this.route=$,this.type=10}toString(){return`RouteConfigLoadEnd(path: ${this.route.path})`}}class _s{constructor($){this.snapshot=$,this.type=11}toString(){return`ChildActivationStart(path: '${this.snapshot.routeConfig&&this.snapshot.routeConfig.path||""}')`}}class $r{constructor($){this.snapshot=$,this.type=12}toString(){return`ChildActivationEnd(path: '${this.snapshot.routeConfig&&this.snapshot.routeConfig.path||""}')`}}class Mo{constructor($){this.snapshot=$,this.type=13}toString(){return`ActivationStart(path: '${this.snapshot.routeConfig&&this.snapshot.routeConfig.path||""}')`}}class Oo{constructor($){this.snapshot=$,this.type=14}toString(){return`ActivationEnd(path: '${this.snapshot.routeConfig&&this.snapshot.routeConfig.path||""}')`}}class qi{constructor($,Z,F){this.routerEvent=$,this.position=Z,this.anchor=F,this.type=15}toString(){return`Scroll(anchor: '${this.anchor}', position: '${this.position?`${this.position[0]}, ${this.position[1]}`:null}')`}}class Hr{}class wr{constructor($){this.url=$}}class On{constructor(){this.outlet=null,this.route=null,this.injector=null,this.children=new Ts,this.attachRef=null}}let Ts=(()=>{var N;class ${constructor(){this.contexts=new Map}onChildOutletCreated(F,te){const Se=this.getOrCreateContext(F);Se.outlet=te,this.contexts.set(F,Se)}onChildOutletDestroyed(F){const te=this.getContext(F);te&&(te.outlet=null,te.attachRef=null)}onOutletDeactivated(){const F=this.contexts;return this.contexts=new Map,F}onOutletReAttached(F){this.contexts=F}getOrCreateContext(F){let te=this.getContext(F);return te||(te=new On,this.contexts.set(F,te)),te}getContext(F){return this.contexts.get(F)||null}}return(N=$).\u0275fac=function(F){return new(F||N)},N.\u0275prov=a.Yz7({token:N,factory:N.\u0275fac,providedIn:"root"}),$})();class Go{constructor($){this._root=$}get root(){return this._root.value}parent($){const Z=this.pathFromRoot($);return Z.length>1?Z[Z.length-2]:null}children($){const Z=Is($,this._root);return Z?Z.children.map(F=>F.value):[]}firstChild($){const Z=Is($,this._root);return Z&&Z.children.length>0?Z.children[0].value:null}siblings($){const Z=Co($,this._root);return Z.length<2?[]:Z[Z.length-2].children.map(te=>te.value).filter(te=>te!==$)}pathFromRoot($){return Co($,this._root).map(Z=>Z.value)}}function Is(N,$){if(N===$.value)return $;for(const Z of $.children){const F=Is(N,Z);if(F)return F}return null}function Co(N,$){if(N===$.value)return[$];for(const Z of $.children){const F=Co(N,Z);if(F.length)return F.unshift($),F}return[]}class Mr{constructor($,Z){this.value=$,this.children=Z}toString(){return`TreeNode(${this.value})`}}function uo(N){const $={};return N&&N.children.forEach(Z=>$[Z.value.outlet]=Z),$}class ii extends Go{constructor($,Z){super($),this.snapshot=Z,zo(this,$)}toString(){return this.snapshot.toString()}}function or(N,$){const Z=function er(N,$){const Ge=new vo([],{},{},"",{},bt,$,null,{});return new yo("",new Mr(Ge,[]))}(0,$),F=new D.X([new ve("",{})]),te=new D.X({}),Se=new D.X({}),Ge=new D.X({}),Rt=new D.X(""),hn=new xr(F,te,Ge,Rt,Se,bt,$,Z.root);return hn.snapshot=Z.root,new ii(new Mr(hn,[]),Z)}class xr{constructor($,Z,F,te,Se,Ge,Rt,hn){var Vt;this.urlSubject=$,this.paramsSubject=Z,this.queryParamsSubject=F,this.fragmentSubject=te,this.dataSubject=Se,this.outlet=Ge,this.component=Rt,this._futureSnapshot=hn,this.title=(null==(Vt=this.dataSubject)?void 0:Vt.pipe((0,q.U)(yn=>yn[_e])))??(0,A.of)(void 0),this.url=$,this.params=Z,this.queryParams=F,this.fragment=te,this.data=Se}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,q.U)($=>Te($)))),this._paramMap}get queryParamMap(){return this._queryParamMap||(this._queryParamMap=this.queryParams.pipe((0,q.U)($=>Te($)))),this._queryParamMap}toString(){return this.snapshot?this.snapshot.toString():`Future(${this._futureSnapshot})`}}function ur(N,$="emptyOnly"){const Z=N.pathFromRoot;let F=0;if("always"!==$)for(F=Z.length-1;F>=1;){const te=Z[F],Se=Z[F-1];if(te.routeConfig&&""===te.routeConfig.path)F--;else{if(Se.component)break;F--}}return function ta(N){return N.reduce(($,Z)=>{var Ge;return{params:{...$.params,...Z.params},data:{...$.data,...Z.data},resolve:{...Z.data,...$.resolve,...null==(Ge=Z.routeConfig)?void 0:Ge.data,...Z._resolvedData}}},{params:{},data:{},resolve:{}})}(Z.slice(F))}class vo{get title(){var $;return null==($=this.data)?void 0:$[_e]}constructor($,Z,F,te,Se,Ge,Rt,hn,Vt){this.url=$,this.params=Z,this.queryParams=F,this.fragment=te,this.data=Se,this.outlet=Ge,this.component=Rt,this.routeConfig=hn,this._resolve=Vt}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=Te(this.params)),this._paramMap}get queryParamMap(){return this._queryParamMap||(this._queryParamMap=Te(this.queryParams)),this._queryParamMap}toString(){return`Route(url:'${this.url.map(F=>F.toString()).join("/")}', path:'${this.routeConfig?this.routeConfig.path:""}')`}}class yo extends Go{constructor($,Z){super(Z),this.url=$,zo(this,Z)}toString(){return Ps(this._root)}}function zo(N,$){$.value._routerState=N,$.children.forEach(Z=>zo(N,Z))}function Ps(N){const $=N.children.length>0?` { ${N.children.map(Ps).join(", ")} } `:"";return`${N.value}${$}`}function Pi(N){if(N.snapshot){const $=N.snapshot,Z=N._futureSnapshot;N.snapshot=Z,dt($.queryParams,Z.queryParams)||N.queryParamsSubject.next(Z.queryParams),$.fragment!==Z.fragment&&N.fragmentSubject.next(Z.fragment),dt($.params,Z.params)||N.paramsSubject.next(Z.params),function Pe(N,$){if(N.length!==$.length)return!1;for(let Z=0;Zdt(Z.parameters,$[F].parameters))}(N.url,$.url);return Z&&!(!N.parent!=!$.parent)&&(!N.parent||gn(N.parent,$.parent))}let $n=(()=>{var N;class ${constructor(){this.activated=null,this._activatedRoute=null,this.name=bt,this.activateEvents=new a.vpe,this.deactivateEvents=new a.vpe,this.attachEvents=new a.vpe,this.detachEvents=new a.vpe,this.parentContexts=(0,a.f3M)(Ts),this.location=(0,a.f3M)(a.s_b),this.changeDetector=(0,a.f3M)(a.sBO),this.environmentInjector=(0,a.f3M)(a.lqb),this.inputBinder=(0,a.f3M)(jn,{optional:!0}),this.supportsBindingToComponentInputs=!0}get activatedComponentRef(){return this.activated}ngOnChanges(F){if(F.name){const{firstChange:te,previousValue:Se}=F.name;if(te)return;this.isTrackedInParentContexts(Se)&&(this.deactivate(),this.parentContexts.onChildOutletDestroyed(Se)),this.initializeOutletWithName()}}ngOnDestroy(){var F;this.isTrackedInParentContexts(this.name)&&this.parentContexts.onChildOutletDestroyed(this.name),null==(F=this.inputBinder)||F.unsubscribeFromRouteData(this)}isTrackedInParentContexts(F){var te;return(null==(te=this.parentContexts.getContext(F))?void 0:te.outlet)===this}ngOnInit(){this.initializeOutletWithName()}initializeOutletWithName(){if(this.parentContexts.onChildOutletCreated(this.name,this),this.activated)return;const F=this.parentContexts.getContext(this.name);null!=F&&F.route&&(F.attachRef?this.attach(F.attachRef,F.route):this.activateWith(F.route,F.injector))}get isActivated(){return!!this.activated}get component(){if(!this.activated)throw new a.vHH(4012,!1);return this.activated.instance}get activatedRoute(){if(!this.activated)throw new a.vHH(4012,!1);return this._activatedRoute}get activatedRouteData(){return this._activatedRoute?this._activatedRoute.snapshot.data:{}}detach(){if(!this.activated)throw new a.vHH(4012,!1);this.location.detach();const F=this.activated;return this.activated=null,this._activatedRoute=null,this.detachEvents.emit(F.instance),F}attach(F,te){var Se;this.activated=F,this._activatedRoute=te,this.location.insert(F.hostView),null==(Se=this.inputBinder)||Se.bindActivatedRouteToOutletComponent(this),this.attachEvents.emit(F.instance)}deactivate(){if(this.activated){const F=this.component;this.activated.destroy(),this.activated=null,this._activatedRoute=null,this.deactivateEvents.emit(F)}}activateWith(F,te){var yn;if(this.isActivated)throw new a.vHH(4013,!1);this._activatedRoute=F;const Se=this.location,Rt=F.snapshot.component,hn=this.parentContexts.getOrCreateContext(this.name).children,Vt=new Nn(F,hn,Se.injector);this.activated=Se.createComponent(Rt,{index:Se.length,injector:Vt,environmentInjector:te??this.environmentInjector}),this.changeDetector.markForCheck(),null==(yn=this.inputBinder)||yn.bindActivatedRouteToOutletComponent(this),this.activateEvents.emit(this.activated.instance)}}return(N=$).\u0275fac=function(F){return new(F||N)},N.\u0275dir=a.lG2({type:N,selectors:[["router-outlet"]],inputs:{name:"name"},outputs:{activateEvents:"activate",deactivateEvents:"deactivate",attachEvents:"attach",detachEvents:"detach"},exportAs:["outlet"],standalone:!0,features:[a.TTD]}),$})();class Nn{constructor($,Z,F){this.route=$,this.childContexts=Z,this.parent=F}get($,Z){return $===xr?this.route:$===Ts?this.childContexts:this.parent.get($,Z)}}const jn=new a.OlP("");let _o=(()=>{var N;class ${constructor(){this.outletDataSubscriptions=new Map}bindActivatedRouteToOutletComponent(F){this.unsubscribeFromRouteData(F),this.subscribeToRouteData(F)}unsubscribeFromRouteData(F){var te;null==(te=this.outletDataSubscriptions.get(F))||te.unsubscribe(),this.outletDataSubscriptions.delete(F)}subscribeToRouteData(F){const{activatedRoute:te}=F,Se=(0,p.aj)([te.queryParams,te.params,te.data]).pipe((0,j.w)(([Ge,Rt,hn],Vt)=>(hn={...Ge,...Rt,...hn},0===Vt?(0,A.of)(hn):Promise.resolve(hn)))).subscribe(Ge=>{if(!F.isActivated||!F.activatedComponentRef||F.activatedRoute!==te||null===te.component)return void this.unsubscribeFromRouteData(F);const Rt=(0,a.qFp)(te.component);if(Rt)for(const{templateName:hn}of Rt.inputs)F.activatedComponentRef.setInput(hn,Ge[hn]);else this.unsubscribeFromRouteData(F)});this.outletDataSubscriptions.set(F,Se)}}return(N=$).\u0275fac=function(F){return new(F||N)},N.\u0275prov=a.Yz7({token:N,factory:N.\u0275fac}),$})();function Ur(N,$,Z){if(Z&&N.shouldReuseRoute($.value,Z.value.snapshot)){const F=Z.value;F._futureSnapshot=$.value;const te=function $i(N,$,Z){return $.children.map(F=>{for(const te of Z.children)if(N.shouldReuseRoute(F.value,te.value.snapshot))return Ur(N,F,te);return Ur(N,F)})}(N,$,Z);return new Mr(F,te)}{if(N.shouldAttach($.value)){const Se=N.retrieve($.value);if(null!==Se){const Ge=Se.route;return Ge.value._futureSnapshot=$.value,Ge.children=$.children.map(Rt=>Ur(N,Rt)),Ge}}const F=function sr(N){return new xr(new D.X(N.url),new D.X(N.params),new D.X(N.queryParams),new D.X(N.fragment),new D.X(N.data),N.outlet,N.component,N)}($.value),te=$.children.map(Se=>Ur(N,Se));return new Mr(F,te)}}const ho="ngNavigationCancelingError";function Dn(N,$){const{redirectTo:Z,navigationBehaviorOptions:F}=Wt($)?{redirectTo:$,navigationBehaviorOptions:void 0}:$,te=So(!1,0,$);return te.url=Z,te.navigationBehaviorOptions=F,te}function So(N,$,Z){const F=new Error("NavigationCancelingError: "+(N||""));return F[ho]=!0,F.cancellationCode=$,Z&&(F.url=Z),F}function bo(N){return N&&N[ho]}let li=(()=>{var N;class ${}return(N=$).\u0275fac=function(F){return new(F||N)},N.\u0275cmp=a.Xpm({type:N,selectors:[["ng-component"]],standalone:!0,features:[a.jDz],decls:1,vars:0,template:function(F,te){1&F&&a._UZ(0,"router-outlet")},dependencies:[$n],encapsulation:2}),$})();function In(N){const $=N.children&&N.children.map(In),Z=$?{...N,children:$}:{...N};return!Z.component&&!Z.loadComponent&&($||Z.loadChildren)&&Z.outlet&&Z.outlet!==bt&&(Z.component=li),Z}function Yr(N){return N.outlet||bt}function fo(N){var $;if(!N)return null;if(null!=($=N.routeConfig)&&$._injector)return N.routeConfig._injector;for(let Z=N.parent;Z;Z=Z.parent){const F=Z.routeConfig;if(null!=F&&F._loadedInjector)return F._loadedInjector;if(null!=F&&F._injector)return F._injector}return null}class Qr{constructor($,Z,F,te,Se){this.routeReuseStrategy=$,this.futureState=Z,this.currState=F,this.forwardEvent=te,this.inputBindingEnabled=Se}activate($){const Z=this.futureState._root,F=this.currState?this.currState._root:null;this.deactivateChildRoutes(Z,F,$),Pi(this.futureState.root),this.activateChildRoutes(Z,F,$)}deactivateChildRoutes($,Z,F){const te=uo(Z);$.children.forEach(Se=>{const Ge=Se.value.outlet;this.deactivateRoutes(Se,te[Ge],F),delete te[Ge]}),Object.values(te).forEach(Se=>{this.deactivateRouteAndItsChildren(Se,F)})}deactivateRoutes($,Z,F){const te=$.value,Se=Z?Z.value:null;if(te===Se)if(te.component){const Ge=F.getContext(te.outlet);Ge&&this.deactivateChildRoutes($,Z,Ge.children)}else this.deactivateChildRoutes($,Z,F);else Se&&this.deactivateRouteAndItsChildren(Z,F)}deactivateRouteAndItsChildren($,Z){$.value.component&&this.routeReuseStrategy.shouldDetach($.value.snapshot)?this.detachAndStoreRouteSubtree($,Z):this.deactivateRouteAndOutlet($,Z)}detachAndStoreRouteSubtree($,Z){const F=Z.getContext($.value.outlet),te=F&&$.value.component?F.children:Z,Se=uo($);for(const Ge of Object.keys(Se))this.deactivateRouteAndItsChildren(Se[Ge],te);if(F&&F.outlet){const Ge=F.outlet.detach(),Rt=F.children.onOutletDeactivated();this.routeReuseStrategy.store($.value.snapshot,{componentRef:Ge,route:$,contexts:Rt})}}deactivateRouteAndOutlet($,Z){const F=Z.getContext($.value.outlet),te=F&&$.value.component?F.children:Z,Se=uo($);for(const Ge of Object.keys(Se))this.deactivateRouteAndItsChildren(Se[Ge],te);F&&(F.outlet&&(F.outlet.deactivate(),F.children.onOutletDeactivated()),F.attachRef=null,F.route=null)}activateChildRoutes($,Z,F){const te=uo(Z);$.children.forEach(Se=>{this.activateRoutes(Se,te[Se.value.outlet],F),this.forwardEvent(new Oo(Se.value.snapshot))}),$.children.length&&this.forwardEvent(new $r($.value.snapshot))}activateRoutes($,Z,F){const te=$.value,Se=Z?Z.value:null;if(Pi(te),te===Se)if(te.component){const Ge=F.getOrCreateContext(te.outlet);this.activateChildRoutes($,Z,Ge.children)}else this.activateChildRoutes($,Z,F);else if(te.component){const Ge=F.getOrCreateContext(te.outlet);if(this.routeReuseStrategy.shouldAttach(te.snapshot)){const Rt=this.routeReuseStrategy.retrieve(te.snapshot);this.routeReuseStrategy.store(te.snapshot,null),Ge.children.onOutletReAttached(Rt.contexts),Ge.attachRef=Rt.componentRef,Ge.route=Rt.route.value,Ge.outlet&&Ge.outlet.attach(Rt.componentRef,Rt.route.value),Pi(Rt.route.value),this.activateChildRoutes($,null,Ge.children)}else{const Rt=fo(te.snapshot);Ge.attachRef=null,Ge.route=te,Ge.injector=Rt,Ge.outlet&&Ge.outlet.activateWith(te,Ge.injector),this.activateChildRoutes($,null,Ge.children)}}else this.activateChildRoutes($,null,F)}}class Ko{constructor($){this.path=$,this.route=this.path[this.path.length-1]}}class Gn{constructor($,Z){this.component=$,this.route=Z}}function gs(N,$,Z){const F=N._root;return ci(F,$?$._root:null,Z,[F.value])}function Vi(N,$){const Z=Symbol(),F=$.get(N,Z);return F===Z?"function"!=typeof N||(0,a.Z0I)(N)?$.get(N):N:F}function ci(N,$,Z,F,te={canDeactivateChecks:[],canActivateChecks:[]}){const Se=uo($);return N.children.forEach(Ge=>{(function ps(N,$,Z,F,te={canDeactivateChecks:[],canActivateChecks:[]}){const Se=N.value,Ge=$?$.value:null,Rt=Z?Z.getContext(N.value.outlet):null;if(Ge&&Se.routeConfig===Ge.routeConfig){const hn=function Ns(N,$,Z){if("function"==typeof Z)return Z(N,$);switch(Z){case"pathParamsChange":return!at(N.url,$.url);case"pathParamsOrQueryParamsChange":return!at(N.url,$.url)||!dt(N.queryParams,$.queryParams);case"always":return!0;case"paramsOrQueryParamsChange":return!gn(N,$)||!dt(N.queryParams,$.queryParams);default:return!gn(N,$)}}(Ge,Se,Se.routeConfig.runGuardsAndResolvers);hn?te.canActivateChecks.push(new Ko(F)):(Se.data=Ge.data,Se._resolvedData=Ge._resolvedData),ci(N,$,Se.component?Rt?Rt.children:null:Z,F,te),hn&&Rt&&Rt.outlet&&Rt.outlet.isActivated&&te.canDeactivateChecks.push(new Gn(Rt.outlet.component,Ge))}else Ge&&fr($,Rt,te),te.canActivateChecks.push(new Ko(F)),ci(N,null,Se.component?Rt?Rt.children:null:Z,F,te)})(Ge,Se[Ge.value.outlet],Z,F.concat([Ge.value]),te),delete Se[Ge.value.outlet]}),Object.entries(Se).forEach(([Ge,Rt])=>fr(Rt,Z.getContext(Ge),te)),te}function fr(N,$,Z){const F=uo(N),te=N.value;Object.entries(F).forEach(([Se,Ge])=>{fr(Ge,te.component?$?$.children.getContext(Se):null:$,Z)}),Z.canDeactivateChecks.push(new Gn(te.component&&$&&$.outlet&&$.outlet.isActivated?$.outlet.component:null,te))}function Do(N){return"function"==typeof N}function Le(N){return N instanceof E.K||"EmptyError"===(null==N?void 0:N.name)}const on=Symbol("INITIAL_VALUE");function vn(){return(0,j.w)(N=>(0,p.aj)(N.map($=>$.pipe((0,K.q)(1),(0,L.O)(on)))).pipe((0,q.U)($=>{for(const Z of $)if(!0!==Z){if(Z===on)return on;if(!1===Z||Z instanceof oe)return Z}return!0}),(0,w.h)($=>$!==on),(0,K.q)(1)))}function Vs(N){return(0,C.z)((0,re.b)($=>{if(Wt($))throw Dn(0,$)}),(0,q.U)($=>!0===$))}class To{constructor($){this.segmentGroup=$||null}}class br{constructor($){this.urlTree=$}}function jo(N){return(0,m._)(new To(N))}function Il(N){return(0,m._)(new br(N))}class Di{constructor($,Z){this.urlSerializer=$,this.urlTree=Z}noMatchError($){return new a.vHH(4002,!1)}lineralizeSegments($,Z){let F=[],te=Z.root;for(;;){if(F=F.concat(te.segments),0===te.numberOfChildren)return(0,A.of)(F);if(te.numberOfChildren>1||!te.children[bt])return(0,m._)(new a.vHH(4e3,!1));te=te.children[bt]}}applyRedirectCommands($,Z,F){return this.applyRedirectCreateUrlTree(Z,this.urlSerializer.parse(Z),$,F)}applyRedirectCreateUrlTree($,Z,F,te){const Se=this.createSegmentGroup($,Z.root,F,te);return new oe(Se,this.createQueryParams(Z.queryParams,this.urlTree.queryParams),Z.fragment)}createQueryParams($,Z){const F={};return Object.entries($).forEach(([te,Se])=>{if("string"==typeof Se&&Se.startsWith(":")){const Rt=Se.substring(1);F[te]=Z[Rt]}else F[te]=Se}),F}createSegmentGroup($,Z,F,te){const Se=this.createSegments($,Z.segments,F,te);let Ge={};return Object.entries(Z.children).forEach(([Rt,hn])=>{Ge[Rt]=this.createSegmentGroup($,hn,F,te)}),new Ce(Se,Ge)}createSegments($,Z,F,te){return Z.map(Se=>Se.path.startsWith(":")?this.findPosParam($,Se,te):this.findOrReturn(Se,F))}findPosParam($,Z,F){const te=F[Z.path.substring(1)];if(!te)throw new a.vHH(4001,!1);return te}findOrReturn($,Z){let F=0;for(const te of Z){if(te.path===$.path)return Z.splice(F),te;F++}return $}}const gr={matched:!1,consumedSegments:[],remainingSegments:[],parameters:{},positionalParamSegments:{}};function Es(N,$,Z,F,te){const Se=ra(N,$,Z);return Se.matched?(F=function fs(N,$){return N.providers&&!N._injector&&(N._injector=(0,a.MMx)(N.providers,$,`Route: ${N.path}`)),N._injector??$}($,F),function Ws(N,$,Z,F){const te=$.canMatch;if(!te||0===te.length)return(0,A.of)(!0);const Se=te.map(Ge=>{const Rt=Vi(Ge,N);return cn(function Q(N){return N&&Do(N.canMatch)}(Rt)?Rt.canMatch($,Z):N.runInContext(()=>Rt($,Z)))});return(0,A.of)(Se).pipe(vn(),Vs())}(F,$,Z).pipe((0,q.U)(Ge=>!0===Ge?Se:{...gr}))):(0,A.of)(Se)}function ra(N,$,Z){if(""===$.path)return"full"===$.pathMatch&&(N.hasChildren()||Z.length>0)?{...gr}:{matched:!0,consumedSegments:[],remainingSegments:Z,parameters:{},positionalParamSegments:{}};const te=($.matcher||Me)(Z,N,$);if(!te)return{...gr};const Se={};Object.entries(te.posParams??{}).forEach(([Rt,hn])=>{Se[Rt]=hn.path});const Ge=te.consumed.length>0?{...Se,...te.consumed[te.consumed.length-1].parameters}:Se;return{matched:!0,consumedSegments:te.consumed,remainingSegments:Z.slice(te.consumed.length),parameters:Ge,positionalParamSegments:te.posParams??{}}}function Jr(N,$,Z,F){return Z.length>0&&function Rs(N,$,Z){return Z.some(F=>Ho(N,$,F)&&Yr(F)!==bt)}(N,Z,F)?{segmentGroup:new Ce($,qr(F,new Ce(Z,N.children))),slicedSegments:[]}:0===Z.length&&function ns(N,$,Z){return Z.some(F=>Ho(N,$,F))}(N,Z,F)?{segmentGroup:new Ce(N.segments,Io(N,0,Z,F,N.children)),slicedSegments:Z}:{segmentGroup:new Ce(N.segments,N.children),slicedSegments:Z}}function Io(N,$,Z,F,te){const Se={};for(const Ge of F)if(Ho(N,Z,Ge)&&!te[Yr(Ge)]){const Rt=new Ce([],{});Se[Yr(Ge)]=Rt}return{...te,...Se}}function qr(N,$){const Z={};Z[bt]=$;for(const F of N)if(""===F.path&&Yr(F)!==bt){const te=new Ce([],{});Z[Yr(F)]=te}return Z}function Ho(N,$,Z){return(!(N.hasChildren()||$.length>0)||"full"!==Z.pathMatch)&&""===Z.path}class po{constructor($,Z,F,te,Se,Ge,Rt){this.injector=$,this.configLoader=Z,this.rootComponentType=F,this.config=te,this.urlTree=Se,this.paramsInheritanceStrategy=Ge,this.urlSerializer=Rt,this.allowRedirects=!0,this.applyRedirects=new Di(this.urlSerializer,this.urlTree)}noMatchError($){return new a.vHH(4002,!1)}recognize(){const $=Jr(this.urlTree.root,[],[],this.config).segmentGroup;return this.processSegmentGroup(this.injector,this.config,$,bt).pipe((0,be.K)(Z=>{if(Z instanceof br)return this.allowRedirects=!1,this.urlTree=Z.urlTree,this.match(Z.urlTree);throw Z instanceof To?this.noMatchError(Z):Z}),(0,q.U)(Z=>{const F=new vo([],Object.freeze({}),Object.freeze({...this.urlTree.queryParams}),this.urlTree.fragment,{},bt,this.rootComponentType,null,{}),te=new Mr(F,Z),Se=new yo("",te),Ge=function mn(N,$,Z=null,F=null){return ut(wn(N),$,Z,F)}(F,[],this.urlTree.queryParams,this.urlTree.fragment);return Ge.queryParams=this.urlTree.queryParams,Se.url=this.urlSerializer.serialize(Ge),this.inheritParamsAndData(Se._root),{state:Se,tree:Ge}}))}match($){return this.processSegmentGroup(this.injector,this.config,$.root,bt).pipe((0,be.K)(F=>{throw F instanceof To?this.noMatchError(F):F}))}inheritParamsAndData($){const Z=$.value,F=ur(Z,this.paramsInheritanceStrategy);Z.params=Object.freeze(F.params),Z.data=Object.freeze(F.data),$.children.forEach(te=>this.inheritParamsAndData(te))}processSegmentGroup($,Z,F,te){return 0===F.segments.length&&F.hasChildren()?this.processChildren($,Z,F):this.processSegment($,Z,F,F.segments,te,!0)}processChildren($,Z,F){const te=[];for(const Se of Object.keys(F.children))"primary"===Se?te.unshift(Se):te.push(Se);return(0,b.D)(te).pipe((0,de.b)(Se=>{const Ge=F.children[Se],Rt=function hr(N,$){const Z=N.filter(F=>Yr(F)===$);return Z.push(...N.filter(F=>Yr(F)!==$)),Z}(Z,Se);return this.processSegmentGroup($,Rt,Ge,Se)}),function $e(N,$){let Z=!1;return arguments.length>=2&&(Z=!0),function(te){return te.lift(new Je(N,$,Z))}}((Se,Ge)=>(Se.push(...Ge),Se)),(0,it.d)(null),(0,rt.Z)(),(0,k.zg)(Se=>{if(null===Se)return jo(F);const Ge=zt(Se);return function It(N){N.sort(($,Z)=>$.value.outlet===bt?-1:Z.value.outlet===bt?1:$.value.outlet.localeCompare(Z.value.outlet))}(Ge),(0,A.of)(Ge)}))}processSegment($,Z,F,te,Se,Ge){return(0,b.D)(Z).pipe((0,de.b)(Rt=>this.processSegmentAgainstRoute(Rt._injector??$,Z,Rt,F,te,Se,Ge).pipe((0,be.K)(hn=>{if(hn instanceof To)return(0,A.of)(null);throw hn}))),(0,X.P)(Rt=>!!Rt),(0,be.K)(Rt=>{if(Le(Rt))return function is(N,$,Z){return 0===$.length&&!N.children[Z]}(F,te,Se)?(0,A.of)([]):jo(F);throw Rt}))}processSegmentAgainstRoute($,Z,F,te,Se,Ge,Rt){return function oa(N,$,Z,F){return!!(Yr(N)===F||F!==bt&&Ho($,Z,N))&&("**"===N.path||ra($,N,Z).matched)}(F,te,Se,Ge)?void 0===F.redirectTo?this.matchSegmentAgainstRoute($,te,F,Se,Ge,Rt):Rt&&this.allowRedirects?this.expandSegmentAgainstRouteUsingRedirect($,te,Z,F,Se,Ge):jo(te):jo(te)}expandSegmentAgainstRouteUsingRedirect($,Z,F,te,Se,Ge){return"**"===te.path?this.expandWildCardWithParamsAgainstRouteUsingRedirect($,F,te,Ge):this.expandRegularSegmentAgainstRouteUsingRedirect($,Z,F,te,Se,Ge)}expandWildCardWithParamsAgainstRouteUsingRedirect($,Z,F,te){const Se=this.applyRedirects.applyRedirectCommands([],F.redirectTo,{});return F.redirectTo.startsWith("/")?Il(Se):this.applyRedirects.lineralizeSegments(F,Se).pipe((0,k.zg)(Ge=>{const Rt=new Ce(Ge,{});return this.processSegment($,Z,Rt,Ge,te,!1)}))}expandRegularSegmentAgainstRouteUsingRedirect($,Z,F,te,Se,Ge){const{matched:Rt,consumedSegments:hn,remainingSegments:Vt,positionalParamSegments:yn}=ra(Z,te,Se);if(!Rt)return jo(Z);const si=this.applyRedirects.applyRedirectCommands(hn,te.redirectTo,yn);return te.redirectTo.startsWith("/")?Il(si):this.applyRedirects.lineralizeSegments(te,si).pipe((0,k.zg)(Ni=>this.processSegment($,F,Z,Ni.concat(Vt),Ge,!1)))}matchSegmentAgainstRoute($,Z,F,te,Se,Ge){let Rt;if("**"===F.path){const hn=te.length>0?Qt(te).parameters:{},Vt=new vo(te,hn,Object.freeze({...this.urlTree.queryParams}),this.urlTree.fragment,Wn(F),Yr(F),F.component??F._loadedComponent??null,F,fi(F));Rt=(0,A.of)({snapshot:Vt,consumedSegments:[],remainingSegments:[]}),Z.children={}}else Rt=Es(Z,F,te,$).pipe((0,q.U)(({matched:hn,consumedSegments:Vt,remainingSegments:yn,parameters:si})=>hn?{snapshot:new vo(Vt,si,Object.freeze({...this.urlTree.queryParams}),this.urlTree.fragment,Wn(F),Yr(F),F.component??F._loadedComponent??null,F,fi(F)),consumedSegments:Vt,remainingSegments:yn}:null));return Rt.pipe((0,j.w)(hn=>null===hn?jo(Z):this.getChildConfig($=F._injector??$,F,te).pipe((0,j.w)(({routes:Vt})=>{const yn=F._loadedInjector??$,{snapshot:si,consumedSegments:Ni,remainingSegments:yi}=hn,{segmentGroup:zr,slicedSegments:Fs}=Jr(Z,Ni,yi,Vt);if(0===Fs.length&&zr.hasChildren())return this.processChildren(yn,Vt,zr).pipe((0,q.U)(Zs=>null===Zs?null:[new Mr(si,Zs)]));if(0===Vt.length&&0===Fs.length)return(0,A.of)([new Mr(si,[])]);const Hs=Yr(F)===Se;return this.processSegment(yn,Vt,zr,Fs,Hs?bt:Se,!0).pipe((0,q.U)(Zs=>[new Mr(si,Zs)]))}))))}getChildConfig($,Z,F){return Z.children?(0,A.of)({routes:Z.children,injector:$}):Z.loadChildren?void 0!==Z._loadedRoutes?(0,A.of)({routes:Z._loadedRoutes,injector:Z._loadedInjector}):function Wo(N,$,Z,F){const te=$.canLoad;if(void 0===te||0===te.length)return(0,A.of)(!0);const Se=te.map(Ge=>{const Rt=Vi(Ge,N);return cn(function ms(N){return N&&Do(N.canLoad)}(Rt)?Rt.canLoad($,Z):N.runInContext(()=>Rt($,Z)))});return(0,A.of)(Se).pipe(vn(),Vs())}($,Z,F).pipe((0,k.zg)(te=>te?this.configLoader.loadChildren($,Z).pipe((0,re.b)(Se=>{Z._loadedRoutes=Se.routes,Z._loadedInjector=Se.injector})):function Fn(N){return(0,m._)(So(!1,3))}())):(0,A.of)({routes:[],injector:$})}}function Ht(N){const $=N.value.routeConfig;return $&&""===$.path}function zt(N){const $=[],Z=new Set;for(const F of N){if(!Ht(F)){$.push(F);continue}const te=$.find(Se=>F.value.routeConfig===Se.value.routeConfig);void 0!==te?(te.children.push(...F.children),Z.add(te)):$.push(F)}for(const F of Z){const te=zt(F.children);$.push(new Mr(F.value,te))}return $.filter(F=>!Z.has(F))}function Wn(N){return N.data||{}}function fi(N){return N.resolve||{}}function Ls(N){return"string"==typeof N.title||null===N.title}function Po(N){return(0,j.w)($=>{const Z=N($);return Z?(0,b.D)(Z).pipe((0,q.U)(()=>$)):(0,A.of)($)})}const rs=new a.OlP("ROUTES");let x=(()=>{var N;class ${constructor(){this.componentLoaders=new WeakMap,this.childrenLoaders=new WeakMap,this.compiler=(0,a.f3M)(a.Sil)}loadComponent(F){if(this.componentLoaders.get(F))return this.componentLoaders.get(F);if(F._loadedComponent)return(0,A.of)(F._loadedComponent);this.onLoadStartListener&&this.onLoadStartListener(F);const te=cn(F.loadComponent()).pipe((0,q.U)(ee),(0,re.b)(Ge=>{this.onLoadEndListener&&this.onLoadEndListener(F),F._loadedComponent=Ge}),(0,ot.x)(()=>{this.componentLoaders.delete(F)})),Se=new g.c(te,()=>new P.xQ).pipe((0,Ct.x)());return this.componentLoaders.set(F,Se),Se}loadChildren(F,te){if(this.childrenLoaders.get(te))return this.childrenLoaders.get(te);if(te._loadedRoutes)return(0,A.of)({routes:te._loadedRoutes,injector:te._loadedInjector});this.onLoadStartListener&&this.onLoadStartListener(te);const Ge=function ie(N,$,Z,F){return cn(N.loadChildren()).pipe((0,q.U)(ee),(0,k.zg)(te=>te instanceof a.YKP||Array.isArray(te)?(0,A.of)(te):(0,b.D)($.compileModuleAsync(te))),(0,q.U)(te=>{F&&F(N);let Se,Ge,Rt=!1;return Array.isArray(te)?(Ge=te,!0):(Se=te.create(Z).injector,Ge=Se.get(rs,[],{optional:!0,self:!0}).flat()),{routes:Ge.map(In),injector:Se}}))}(te,this.compiler,F,this.onLoadEndListener).pipe((0,ot.x)(()=>{this.childrenLoaders.delete(te)})),Rt=new g.c(Ge,()=>new P.xQ).pipe((0,Ct.x)());return this.childrenLoaders.set(te,Rt),Rt}}return(N=$).\u0275fac=function(F){return new(F||N)},N.\u0275prov=a.Yz7({token:N,factory:N.\u0275fac,providedIn:"root"}),$})();function ee(N){return function He(N){return N&&"object"==typeof N&&"default"in N}(N)?N.default:N}let Re=(()=>{var N;class ${get hasRequestedNavigation(){return 0!==this.navigationId}constructor(){this.currentNavigation=null,this.currentTransition=null,this.lastSuccessfulNavigation=null,this.events=new P.xQ,this.transitionAbortSubject=new P.xQ,this.configLoader=(0,a.f3M)(x),this.environmentInjector=(0,a.f3M)(a.lqb),this.urlSerializer=(0,a.f3M)(Fe),this.rootContexts=(0,a.f3M)(Ts),this.inputBindingEnabled=null!==(0,a.f3M)(jn,{optional:!0}),this.navigationId=0,this.afterPreactivation=()=>(0,A.of)(void 0),this.rootComponentType=null,this.configLoader.onLoadEndListener=Se=>this.events.next(new Bo(Se)),this.configLoader.onLoadStartListener=Se=>this.events.next(new bn(Se))}complete(){var F;null==(F=this.transitions)||F.complete()}handleNavigationRequest(F){var Se;const te=++this.navigationId;null==(Se=this.transitions)||Se.next({...this.transitions.value,...F,id:te})}setupNavigations(F,te,Se){return this.transitions=new D.X({id:0,currentUrlTree:te,currentRawUrl:te,currentBrowserUrl:te,extractedUrl:F.urlHandlingStrategy.extract(te),urlAfterRedirects:F.urlHandlingStrategy.extract(te),rawUrl:te,extras:{},resolve:null,reject:null,promise:Promise.resolve(!0),source:ji,restoredState:null,currentSnapshot:Se.snapshot,targetSnapshot:null,currentRouterState:Se,targetRouterState:null,guards:{canActivateChecks:[],canDeactivateChecks:[]},guardsResult:null}),this.transitions.pipe((0,w.h)(Ge=>0!==Ge.id),(0,q.U)(Ge=>({...Ge,extractedUrl:F.urlHandlingStrategy.extract(Ge.rawUrl)})),(0,j.w)(Ge=>{this.currentTransition=Ge;let Rt=!1,hn=!1;return(0,A.of)(Ge).pipe((0,re.b)(Vt=>{this.currentNavigation={id:Vt.id,initialUrl:Vt.rawUrl,extractedUrl:Vt.extractedUrl,trigger:Vt.source,extras:Vt.extras,previousNavigation:this.lastSuccessfulNavigation?{...this.lastSuccessfulNavigation,previousNavigation:null}:null}}),(0,j.w)(Vt=>{const yn=Vt.currentBrowserUrl.toString(),si=!F.navigated||Vt.extractedUrl.toString()!==yn||yn!==Vt.currentUrlTree.toString();if(!si&&"reload"!==(Vt.extras.onSameUrlNavigation??F.onSameUrlNavigation)){const yi="";return this.events.next(new Fi(Vt.id,this.urlSerializer.serialize(Vt.rawUrl),yi,0)),Vt.resolve(null),_.E}if(F.urlHandlingStrategy.shouldProcessUrl(Vt.rawUrl))return(0,A.of)(Vt).pipe((0,j.w)(yi=>{var Fs,Hs;const zr=null==(Fs=this.transitions)?void 0:Fs.getValue();return this.events.next(new qn(yi.id,this.urlSerializer.serialize(yi.extractedUrl),yi.source,yi.restoredState)),zr!==(null==(Hs=this.transitions)?void 0:Hs.getValue())?_.E:Promise.resolve(yi)}),function nr(N,$,Z,F,te,Se){return(0,k.zg)(Ge=>function js(N,$,Z,F,te,Se,Ge="emptyOnly"){return new po(N,$,Z,F,te,Ge,Se).recognize()}(N,$,Z,F,Ge.extractedUrl,te,Se).pipe((0,q.U)(({state:Rt,tree:hn})=>({...Ge,targetSnapshot:Rt,urlAfterRedirects:hn}))))}(this.environmentInjector,this.configLoader,this.rootComponentType,F.config,this.urlSerializer,F.paramsInheritanceStrategy),(0,re.b)(yi=>{Ge.targetSnapshot=yi.targetSnapshot,Ge.urlAfterRedirects=yi.urlAfterRedirects,this.currentNavigation={...this.currentNavigation,finalUrl:yi.urlAfterRedirects};const zr=new Hi(yi.id,this.urlSerializer.serialize(yi.extractedUrl),this.urlSerializer.serialize(yi.urlAfterRedirects),yi.targetSnapshot);this.events.next(zr)}));if(si&&F.urlHandlingStrategy.shouldProcessUrl(Vt.currentRawUrl)){const{id:yi,extractedUrl:zr,source:Fs,restoredState:Hs,extras:Zs}=Vt,Ba=new qn(yi,this.urlSerializer.serialize(zr),Fs,Hs);this.events.next(Ba);const kl=or(0,this.rootComponentType).snapshot;return this.currentTransition=Ge={...Vt,targetSnapshot:kl,urlAfterRedirects:zr,extras:{...Zs,skipLocationChange:!1,replaceUrl:!1}},(0,A.of)(Ge)}{const yi="";return this.events.next(new Fi(Vt.id,this.urlSerializer.serialize(Vt.extractedUrl),yi,1)),Vt.resolve(null),_.E}}),(0,re.b)(Vt=>{const yn=new Lr(Vt.id,this.urlSerializer.serialize(Vt.extractedUrl),this.urlSerializer.serialize(Vt.urlAfterRedirects),Vt.targetSnapshot);this.events.next(yn)}),(0,q.U)(Vt=>(this.currentTransition=Ge={...Vt,guards:gs(Vt.targetSnapshot,Vt.currentSnapshot,this.rootContexts)},Ge)),function Er(N,$){return(0,k.zg)(Z=>{const{targetSnapshot:F,currentSnapshot:te,guards:{canActivateChecks:Se,canDeactivateChecks:Ge}}=Z;return 0===Ge.length&&0===Se.length?(0,A.of)({...Z,guardsResult:!0}):function go(N,$,Z,F){return(0,b.D)(N).pipe((0,k.zg)(te=>function Wi(N,$,Z,F,te){const Se=$&&$.routeConfig?$.routeConfig.canDeactivate:null;if(!Se||0===Se.length)return(0,A.of)(!0);const Ge=Se.map(Rt=>{const hn=fo($)??te,Vt=Vi(Rt,hn);return cn(function ae(N){return N&&Do(N.canDeactivate)}(Vt)?Vt.canDeactivate(N,$,Z,F):hn.runInContext(()=>Vt(N,$,Z,F))).pipe((0,X.P)())});return(0,A.of)(Ge).pipe(vn())}(te.component,te.route,Z,$,F)),(0,X.P)(te=>!0!==te,!0))}(Ge,F,te,N).pipe((0,k.zg)(Rt=>Rt&&function Vo(N){return"boolean"==typeof N}(Rt)?function Or(N,$,Z,F){return(0,b.D)($).pipe((0,de.b)(te=>(0,f.z)(function $a(N,$){return null!==N&&$&&$(new _s(N)),(0,A.of)(!0)}(te.route.parent,F),function ia(N,$){return null!==N&&$&&$(new Mo(N)),(0,A.of)(!0)}(te.route,F),function Bi(N,$,Z){const F=$[$.length-1],Se=$.slice(0,$.length-1).reverse().map(Ge=>function ar(N){const $=N.routeConfig?N.routeConfig.canActivateChild:null;return $&&0!==$.length?{node:N,guards:$}:null}(Ge)).filter(Ge=>null!==Ge).map(Ge=>(0,c.P)(()=>{const Rt=Ge.guards.map(hn=>{const Vt=fo(Ge.node)??Z,yn=Vi(hn,Vt);return cn(function Ks(N){return N&&Do(N.canActivateChild)}(yn)?yn.canActivateChild(F,N):Vt.runInContext(()=>yn(F,N))).pipe((0,X.P)())});return(0,A.of)(Rt).pipe(vn())}));return(0,A.of)(Se).pipe(vn())}(N,te.path,Z),function Tl(N,$,Z){const F=$.routeConfig?$.routeConfig.canActivate:null;if(!F||0===F.length)return(0,A.of)(!0);const te=F.map(Se=>(0,c.P)(()=>{const Ge=fo($)??Z,Rt=Vi(Se,Ge);return cn(function rl(N){return N&&Do(N.canActivate)}(Rt)?Rt.canActivate($,N):Ge.runInContext(()=>Rt($,N))).pipe((0,X.P)())}));return(0,A.of)(te).pipe(vn())}(N,te.route,Z))),(0,X.P)(te=>!0!==te,!0))}(F,Se,N,$):(0,A.of)(Rt)),(0,q.U)(Rt=>({...Z,guardsResult:Rt})))})}(this.environmentInjector,Vt=>this.events.next(Vt)),(0,re.b)(Vt=>{if(Ge.guardsResult=Vt.guardsResult,Wt(Vt.guardsResult))throw Dn(0,Vt.guardsResult);const yn=new Ri(Vt.id,this.urlSerializer.serialize(Vt.extractedUrl),this.urlSerializer.serialize(Vt.urlAfterRedirects),Vt.targetSnapshot,!!Vt.guardsResult);this.events.next(yn)}),(0,w.h)(Vt=>!!Vt.guardsResult||(this.cancelNavigationTransition(Vt,"",3),!1)),Po(Vt=>{if(Vt.guards.canActivateChecks.length)return(0,A.of)(Vt).pipe((0,re.b)(yn=>{const si=new jr(yn.id,this.urlSerializer.serialize(yn.extractedUrl),this.urlSerializer.serialize(yn.urlAfterRedirects),yn.targetSnapshot);this.events.next(si)}),(0,j.w)(yn=>{let si=!1;return(0,A.of)(yn).pipe(function vi(N,$){return(0,k.zg)(Z=>{const{targetSnapshot:F,guards:{canActivateChecks:te}}=Z;if(!te.length)return(0,A.of)(Z);let Se=0;return(0,b.D)(te).pipe((0,de.b)(Ge=>function sa(N,$,Z,F){const te=N.routeConfig,Se=N._resolve;return void 0!==(null==te?void 0:te.title)&&!Ls(te)&&(Se[_e]=te.title),function Ua(N,$,Z,F){const te=function mo(N){return[...Object.keys(N),...Object.getOwnPropertySymbols(N)]}(N);if(0===te.length)return(0,A.of)({});const Se={};return(0,b.D)(te).pipe((0,k.zg)(Ge=>function Ms(N,$,Z,F){const te=fo($)??F,Se=Vi(N,te);return cn(Se.resolve?Se.resolve($,Z):te.runInContext(()=>Se($,Z)))}(N[Ge],$,Z,F).pipe((0,X.P)(),(0,re.b)(Rt=>{Se[Ge]=Rt}))),(0,tt.h)(1),function _t(N){return $=>$.lift(new ze(N))}(Se),(0,be.K)(Ge=>Le(Ge)?_.E:(0,m._)(Ge)))}(Se,N,$,F).pipe((0,q.U)(Ge=>(N._resolvedData=Ge,N.data=ur(N,Z).resolve,te&&Ls(te)&&(N.data[_e]=te.title),null)))}(Ge.route,F,N,$)),(0,re.b)(()=>Se++),(0,tt.h)(1),(0,k.zg)(Ge=>Se===te.length?(0,A.of)(Z):_.E))})}(F.paramsInheritanceStrategy,this.environmentInjector),(0,re.b)({next:()=>si=!0,complete:()=>{si||this.cancelNavigationTransition(yn,"",2)}}))}),(0,re.b)(yn=>{const si=new co(yn.id,this.urlSerializer.serialize(yn.extractedUrl),this.urlSerializer.serialize(yn.urlAfterRedirects),yn.targetSnapshot);this.events.next(si)}))}),Po(Vt=>{const yn=si=>{var yi;const Ni=[];null!=(yi=si.routeConfig)&&yi.loadComponent&&!si.routeConfig._loadedComponent&&Ni.push(this.configLoader.loadComponent(si.routeConfig).pipe((0,re.b)(zr=>{si.component=zr}),(0,q.U)(()=>{})));for(const zr of si.children)Ni.push(...yn(zr));return Ni};return(0,p.aj)(yn(Vt.targetSnapshot.root)).pipe((0,it.d)(),(0,K.q)(1))}),Po(()=>this.afterPreactivation()),(0,q.U)(Vt=>{const yn=function mr(N,$,Z){const F=Ur(N,$._root,Z?Z._root:void 0);return new ii(F,$)}(F.routeReuseStrategy,Vt.targetSnapshot,Vt.currentRouterState);return this.currentTransition=Ge={...Vt,targetRouterState:yn},Ge}),(0,re.b)(()=>{this.events.next(new Hr)}),((N,$,Z,F)=>(0,q.U)(te=>(new Qr($,te.targetRouterState,te.currentRouterState,Z,F).activate(N),te)))(this.rootContexts,F.routeReuseStrategy,Vt=>this.events.next(Vt),this.inputBindingEnabled),(0,K.q)(1),(0,re.b)({next:Vt=>{var yn;Rt=!0,this.lastSuccessfulNavigation=this.currentNavigation,this.events.next(new Ai(Vt.id,this.urlSerializer.serialize(Vt.extractedUrl),this.urlSerializer.serialize(Vt.urlAfterRedirects))),null==(yn=F.titleStrategy)||yn.updateTitle(Vt.targetRouterState.snapshot),Vt.resolve(!0)},complete:()=>{Rt=!0}}),(0,De.R)(this.transitionAbortSubject.pipe((0,re.b)(Vt=>{throw Vt}))),(0,ot.x)(()=>{var Vt;Rt||hn||this.cancelNavigationTransition(Ge,"",1),(null==(Vt=this.currentNavigation)?void 0:Vt.id)===Ge.id&&(this.currentNavigation=null)}),(0,be.K)(Vt=>{if(hn=!0,bo(Vt))this.events.next(new xi(Ge.id,this.urlSerializer.serialize(Ge.extractedUrl),Vt.message,Vt.cancellationCode)),function tr(N){return bo(N)&&Wt(N.url)}(Vt)?this.events.next(new wr(Vt.url)):Ge.resolve(!1);else{this.events.next(new ki(Ge.id,this.urlSerializer.serialize(Ge.extractedUrl),Vt,Ge.targetSnapshot??void 0));try{Ge.resolve(F.errorHandler(Vt))}catch(yn){Ge.reject(yn)}}return _.E}))}))}cancelNavigationTransition(F,te,Se){const Ge=new xi(F.id,this.urlSerializer.serialize(F.extractedUrl),te,Se);this.events.next(Ge),F.resolve(!1)}}return(N=$).\u0275fac=function(F){return new(F||N)},N.\u0275prov=a.Yz7({token:N,factory:N.\u0275fac,providedIn:"root"}),$})();function lt(N){return N!==ji}let jt=(()=>{var N;class ${buildTitle(F){let te,Se=F.root;for(;void 0!==Se;)te=this.getResolvedTitleForRoute(Se)??te,Se=Se.children.find(Ge=>Ge.outlet===bt);return te}getResolvedTitleForRoute(F){return F.data[_e]}}return(N=$).\u0275fac=function(F){return new(F||N)},N.\u0275prov=a.Yz7({token:N,factory:function(){return(0,a.f3M)(_n)},providedIn:"root"}),$})(),_n=(()=>{var N;class $ extends jt{constructor(F){super(),this.title=F}updateTitle(F){const te=this.buildTitle(F);void 0!==te&&this.title.setTitle(te)}}return(N=$).\u0275fac=function(F){return new(F||N)(a.LFG(st.Dx))},N.\u0275prov=a.Yz7({token:N,factory:N.\u0275fac,providedIn:"root"}),$})(),zn=(()=>{var N;class ${}return(N=$).\u0275fac=function(F){return new(F||N)},N.\u0275prov=a.Yz7({token:N,factory:function(){return(0,a.f3M)(ui)},providedIn:"root"}),$})();class Yn{shouldDetach($){return!1}store($,Z){}shouldAttach($){return!1}retrieve($){return null}shouldReuseRoute($,Z){return $.routeConfig===Z.routeConfig}}let ui=(()=>{var N;class $ extends Yn{}return(N=$).\u0275fac=function(){let Z;return function(te){return(Z||(Z=a.n5z(N)))(te||N)}}(),N.\u0275prov=a.Yz7({token:N,factory:N.\u0275fac,providedIn:"root"}),$})();const Un=new a.OlP("",{providedIn:"root",factory:()=>({})});let Gi=(()=>{var N;class ${}return(N=$).\u0275fac=function(F){return new(F||N)},N.\u0275prov=a.Yz7({token:N,factory:function(){return(0,a.f3M)(gi)},providedIn:"root"}),$})(),gi=(()=>{var N;class ${shouldProcessUrl(F){return!0}extract(F){return F}merge(F,te){return F}}return(N=$).\u0275fac=function(F){return new(F||N)},N.\u0275prov=a.Yz7({token:N,factory:N.\u0275fac,providedIn:"root"}),$})();var Xi=function(N){return N[N.COMPLETE=0]="COMPLETE",N[N.FAILED=1]="FAILED",N[N.REDIRECTING=2]="REDIRECTING",N}(Xi||{});function Br(N,$){N.events.pipe((0,w.h)(Z=>Z instanceof Ai||Z instanceof xi||Z instanceof ki||Z instanceof Fi),(0,q.U)(Z=>Z instanceof Ai||Z instanceof Fi?Xi.COMPLETE:Z instanceof xi&&(0===Z.code||1===Z.code)?Xi.REDIRECTING:Xi.FAILED),(0,w.h)(Z=>Z!==Xi.REDIRECTING),(0,K.q)(1)).subscribe(()=>{$()})}function eo(N){throw N}function No(N,$,Z){return $.parse("/")}const cr={paths:"exact",fragment:"ignored",matrixParams:"ignored",queryParams:"exact"},Ro={paths:"subset",fragment:"ignored",matrixParams:"ignored",queryParams:"subset"};let Ti=(()=>{var N;class ${get navigationId(){return this.navigationTransitions.navigationId}get browserPageId(){var F;return"computed"!==this.canceledNavigationResolution?this.currentPageId:(null==(F=this.location.getState())?void 0:F.\u0275routerPageId)??this.currentPageId}get events(){return this._events}constructor(){var F;this.disposed=!1,this.currentPageId=0,this.console=(0,a.f3M)(a.c2e),this.isNgZoneEnabled=!1,this._events=new P.xQ,this.options=(0,a.f3M)(Un,{optional:!0})||{},this.pendingTasks=(0,a.f3M)(a.HDt),this.errorHandler=this.options.errorHandler||eo,this.malformedUriErrorHandler=this.options.malformedUriErrorHandler||No,this.navigated=!1,this.lastSuccessfulId=-1,this.urlHandlingStrategy=(0,a.f3M)(Gi),this.routeReuseStrategy=(0,a.f3M)(zn),this.titleStrategy=(0,a.f3M)(jt),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=(null==(F=(0,a.f3M)(rs,{optional:!0}))?void 0:F.flat())??[],this.navigationTransitions=(0,a.f3M)(Re),this.urlSerializer=(0,a.f3M)(Fe),this.location=(0,a.f3M)(d.Ye),this.componentInputBindingEnabled=!!(0,a.f3M)(jn,{optional:!0}),this.eventsSubscription=new U.w,this.isNgZoneEnabled=(0,a.f3M)(a.R0b)instanceof a.R0b&&a.R0b.isInAngularZone(),this.resetConfig(this.config),this.currentUrlTree=new oe,this.rawUrlTree=this.currentUrlTree,this.browserUrlTree=this.currentUrlTree,this.routerState=or(0,null),this.navigationTransitions.setupNavigations(this,this.currentUrlTree,this.routerState).subscribe(te=>{this.lastSuccessfulId=te.id,this.currentPageId=this.browserPageId},te=>{this.console.warn(`Unhandled Navigation Error: ${te}`)}),this.subscribeToNavigationEvents()}subscribeToNavigationEvents(){const F=this.navigationTransitions.events.subscribe(te=>{try{const{currentTransition:Se}=this.navigationTransitions;if(null===Se)return void(ol(te)&&this._events.next(te));if(te instanceof qn)lt(Se.source)&&(this.browserUrlTree=Se.extractedUrl);else if(te instanceof Fi)this.rawUrlTree=Se.rawUrl;else if(te instanceof Hi){if("eager"===this.urlUpdateStrategy){if(!Se.extras.skipLocationChange){const Ge=this.urlHandlingStrategy.merge(Se.urlAfterRedirects,Se.rawUrl);this.setBrowserUrl(Ge,Se)}this.browserUrlTree=Se.urlAfterRedirects}}else if(te instanceof Hr)this.currentUrlTree=Se.urlAfterRedirects,this.rawUrlTree=this.urlHandlingStrategy.merge(Se.urlAfterRedirects,Se.rawUrl),this.routerState=Se.targetRouterState,"deferred"===this.urlUpdateStrategy&&(Se.extras.skipLocationChange||this.setBrowserUrl(this.rawUrlTree,Se),this.browserUrlTree=Se.urlAfterRedirects);else if(te instanceof xi)0!==te.code&&1!==te.code&&(this.navigated=!0),(3===te.code||2===te.code)&&this.restoreHistory(Se);else if(te instanceof wr){const Ge=this.urlHandlingStrategy.merge(te.url,Se.currentRawUrl),Rt={skipLocationChange:Se.extras.skipLocationChange,replaceUrl:"eager"===this.urlUpdateStrategy||lt(Se.source)};this.scheduleNavigation(Ge,ji,null,Rt,{resolve:Se.resolve,reject:Se.reject,promise:Se.promise})}te instanceof ki&&this.restoreHistory(Se,!0),te instanceof Ai&&(this.navigated=!0),ol(te)&&this._events.next(te)}catch(Se){this.navigationTransitions.transitionAbortSubject.next(Se)}});this.eventsSubscription.add(F)}resetRootComponentType(F){this.routerState.root.component=F,this.navigationTransitions.rootComponentType=F}initialNavigation(){if(this.setUpLocationChangeListener(),!this.navigationTransitions.hasRequestedNavigation){const F=this.location.getState();this.navigateToSyncWithBrowser(this.location.path(!0),ji,F)}}setUpLocationChangeListener(){this.locationSubscription||(this.locationSubscription=this.location.subscribe(F=>{const te="popstate"===F.type?"popstate":"hashchange";"popstate"===te&&setTimeout(()=>{this.navigateToSyncWithBrowser(F.url,te,F.state)},0)}))}navigateToSyncWithBrowser(F,te,Se){const Ge={replaceUrl:!0},Rt=null!=Se&&Se.navigationId?Se:null;if(Se){const Vt={...Se};delete Vt.navigationId,delete Vt.\u0275routerPageId,0!==Object.keys(Vt).length&&(Ge.state=Vt)}const hn=this.parseUrl(F);this.scheduleNavigation(hn,te,Rt,Ge)}get url(){return this.serializeUrl(this.currentUrlTree)}getCurrentNavigation(){return this.navigationTransitions.currentNavigation}get lastSuccessfulNavigation(){return this.navigationTransitions.lastSuccessfulNavigation}resetConfig(F){this.config=F.map(In),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,this.eventsSubscription.unsubscribe()}createUrlTree(F,te={}){const{relativeTo:Se,queryParams:Ge,fragment:Rt,queryParamsHandling:hn,preserveFragment:Vt}=te,yn=Vt?this.currentUrlTree.fragment:Rt;let Ni,si=null;switch(hn){case"merge":si={...this.currentUrlTree.queryParams,...Ge};break;case"preserve":si=this.currentUrlTree.queryParams;break;default:si=Ge||null}null!==si&&(si=this.removeEmptyProps(si));try{Ni=wn(Se?Se.snapshot:this.routerState.snapshot.root)}catch{("string"!=typeof F[0]||!F[0].startsWith("/"))&&(F=[]),Ni=this.currentUrlTree.root}return ut(Ni,F,si,yn??null)}navigateByUrl(F,te={skipLocationChange:!1}){const Se=Wt(F)?F:this.parseUrl(F),Ge=this.urlHandlingStrategy.merge(Se,this.rawUrlTree);return this.scheduleNavigation(Ge,ji,null,te)}navigate(F,te={skipLocationChange:!1}){return function Os(N){for(let $=0;${const Ge=F[Se];return null!=Ge&&(te[Se]=Ge),te},{})}scheduleNavigation(F,te,Se,Ge,Rt){if(this.disposed)return Promise.resolve(!1);let hn,Vt,yn;Rt?(hn=Rt.resolve,Vt=Rt.reject,yn=Rt.promise):yn=new Promise((Ni,yi)=>{hn=Ni,Vt=yi});const si=this.pendingTasks.add();return Br(this,()=>{queueMicrotask(()=>this.pendingTasks.remove(si))}),this.navigationTransitions.handleNavigationRequest({source:te,restoredState:Se,currentUrlTree:this.currentUrlTree,currentRawUrl:this.currentUrlTree,currentBrowserUrl:this.browserUrlTree,rawUrl:F,extras:Ge,resolve:hn,reject:Vt,promise:yn,currentSnapshot:this.routerState.snapshot,currentRouterState:this.routerState}),yn.catch(Ni=>Promise.reject(Ni))}setBrowserUrl(F,te){const Se=this.urlSerializer.serialize(F);if(this.location.isCurrentPathEqualTo(Se)||te.extras.replaceUrl){const Rt={...te.extras.state,...this.generateNgRouterState(te.id,this.browserPageId)};this.location.replaceState(Se,"",Rt)}else{const Ge={...te.extras.state,...this.generateNgRouterState(te.id,this.browserPageId+1)};this.location.go(Se,"",Ge)}}restoreHistory(F,te=!1){var Se;if("computed"===this.canceledNavigationResolution){const Rt=this.currentPageId-this.browserPageId;0!==Rt?this.location.historyGo(Rt):this.currentUrlTree===(null==(Se=this.getCurrentNavigation())?void 0:Se.finalUrl)&&0===Rt&&(this.resetState(F),this.browserUrlTree=F.currentUrlTree,this.resetUrlToCurrentUrlTree())}else"replace"===this.canceledNavigationResolution&&(te&&this.resetState(F),this.resetUrlToCurrentUrlTree())}resetState(F){this.routerState=F.currentRouterState,this.currentUrlTree=F.currentUrlTree,this.rawUrlTree=this.urlHandlingStrategy.merge(this.currentUrlTree,F.rawUrl)}resetUrlToCurrentUrlTree(){this.location.replaceState(this.urlSerializer.serialize(this.rawUrlTree),"",this.generateNgRouterState(this.lastSuccessfulId,this.currentPageId))}generateNgRouterState(F,te){return"computed"===this.canceledNavigationResolution?{navigationId:F,\u0275routerPageId:te}:{navigationId:F}}}return(N=$).\u0275fac=function(F){return new(F||N)},N.\u0275prov=a.Yz7({token:N,factory:N.\u0275fac,providedIn:"root"}),$})();function ol(N){return!(N instanceof Hr||N instanceof wr)}let Mi=(()=>{var N;class ${constructor(F,te,Se,Ge,Rt,hn){var yn;this.router=F,this.route=te,this.tabIndexAttribute=Se,this.renderer=Ge,this.el=Rt,this.locationStrategy=hn,this.href=null,this.commands=null,this.onChanges=new P.xQ,this.preserveFragment=!1,this.skipLocationChange=!1,this.replaceUrl=!1;const Vt=null==(yn=Rt.nativeElement.tagName)?void 0:yn.toLowerCase();this.isAnchorElement="a"===Vt||"area"===Vt,this.isAnchorElement?this.subscription=F.events.subscribe(si=>{si instanceof Ai&&this.updateHref()}):this.setTabIndexIfNotOnNativeEl("0")}setTabIndexIfNotOnNativeEl(F){null!=this.tabIndexAttribute||this.isAnchorElement||this.applyAttributeValue("tabindex",F)}ngOnChanges(F){this.isAnchorElement&&this.updateHref(),this.onChanges.next(this)}set routerLink(F){null!=F?(this.commands=Array.isArray(F)?F:[F],this.setTabIndexIfNotOnNativeEl("0")):(this.commands=null,this.setTabIndexIfNotOnNativeEl(null))}onClick(F,te,Se,Ge,Rt){return!!(null===this.urlTree||this.isAnchorElement&&(0!==F||te||Se||Ge||Rt||"string"==typeof this.target&&"_self"!=this.target))||(this.router.navigateByUrl(this.urlTree,{skipLocationChange:this.skipLocationChange,replaceUrl:this.replaceUrl,state:this.state}),!this.isAnchorElement)}ngOnDestroy(){var F;null==(F=this.subscription)||F.unsubscribe()}updateHref(){var te;this.href=null!==this.urlTree&&this.locationStrategy?null==(te=this.locationStrategy)?void 0:te.prepareExternalUrl(this.router.serializeUrl(this.urlTree)):null;const F=null===this.href?null:(0,a.P3R)(this.href,this.el.nativeElement.tagName.toLowerCase(),"href");this.applyAttributeValue("href",F)}applyAttributeValue(F,te){const Se=this.renderer,Ge=this.el.nativeElement;null!==te?Se.setAttribute(Ge,F,te):Se.removeAttribute(Ge,F)}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(F){return new(F||N)(a.Y36(Ti),a.Y36(xr),a.$8M("tabindex"),a.Y36(a.Qsj),a.Y36(a.SBq),a.Y36(d.S$))},N.\u0275dir=a.lG2({type:N,selectors:[["","routerLink",""]],hostVars:1,hostBindings:function(F,te){1&F&&a.NdJ("click",function(Ge){return te.onClick(Ge.button,Ge.ctrlKey,Ge.shiftKey,Ge.altKey,Ge.metaKey)}),2&F&&a.uIk("target",te.target)},inputs:{target:"target",queryParams:"queryParams",fragment:"fragment",queryParamsHandling:"queryParamsHandling",state:"state",relativeTo:"relativeTo",preserveFragment:["preserveFragment","preserveFragment",a.VuI],skipLocationChange:["skipLocationChange","skipLocationChange",a.VuI],replaceUrl:["replaceUrl","replaceUrl",a.VuI],routerLink:"routerLink"},standalone:!0,features:[a.Xq5,a.TTD]}),$})();class Gr{}let ca=(()=>{var N;class ${constructor(F,te,Se,Ge,Rt){this.router=F,this.injector=Se,this.preloadingStrategy=Ge,this.loader=Rt}setUpPreloading(){this.subscription=this.router.events.pipe((0,w.h)(F=>F instanceof Ai),(0,de.b)(()=>this.preload())).subscribe(()=>{})}preload(){return this.processRoutes(this.injector,this.router.config)}ngOnDestroy(){this.subscription&&this.subscription.unsubscribe()}processRoutes(F,te){const Se=[];for(const Ge of te){Ge.providers&&!Ge._injector&&(Ge._injector=(0,a.MMx)(Ge.providers,F,`Route: ${Ge.path}`));const Rt=Ge._injector??F,hn=Ge._loadedInjector??Rt;(Ge.loadChildren&&!Ge._loadedRoutes&&void 0===Ge.canLoad||Ge.loadComponent&&!Ge._loadedComponent)&&Se.push(this.preloadConfig(Rt,Ge)),(Ge.children||Ge._loadedRoutes)&&Se.push(this.processRoutes(hn,Ge.children??Ge._loadedRoutes))}return(0,b.D)(Se).pipe((0,ft.J)())}preloadConfig(F,te){return this.preloadingStrategy.preload(te,()=>{let Se;Se=te.loadChildren&&void 0===te.canLoad?this.loader.loadChildren(F,te):(0,A.of)(null);const Ge=Se.pipe((0,k.zg)(Rt=>null===Rt?(0,A.of)(void 0):(te._loadedRoutes=Rt.routes,te._loadedInjector=Rt.injector,this.processRoutes(Rt.injector??F,Rt.routes))));if(te.loadComponent&&!te._loadedComponent){const Rt=this.loader.loadComponent(te);return(0,b.D)([Ge,Rt]).pipe((0,ft.J)())}return Ge})}}return(N=$).\u0275fac=function(F){return new(F||N)(a.LFG(Ti),a.LFG(a.Sil),a.LFG(a.lqb),a.LFG(Gr),a.LFG(x))},N.\u0275prov=a.Yz7({token:N,factory:N.\u0275fac,providedIn:"root"}),$})();const pi=new a.OlP("");let Ar=(()=>{var N;class ${constructor(F,te,Se,Ge,Rt={}){this.urlSerializer=F,this.transitions=te,this.viewportScroller=Se,this.zone=Ge,this.options=Rt,this.lastId=0,this.lastSource="imperative",this.restoredId=0,this.store={},Rt.scrollPositionRestoration=Rt.scrollPositionRestoration||"disabled",Rt.anchorScrolling=Rt.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(F=>{F instanceof qn?(this.store[this.lastId]=this.viewportScroller.getScrollPosition(),this.lastSource=F.navigationTrigger,this.restoredId=F.restoredState?F.restoredState.navigationId:0):F instanceof Ai?(this.lastId=F.id,this.scheduleScrollEvent(F,this.urlSerializer.parse(F.urlAfterRedirects).fragment)):F instanceof Fi&&0===F.code&&(this.lastSource=void 0,this.restoredId=0,this.scheduleScrollEvent(F,this.urlSerializer.parse(F.url).fragment))})}consumeScrollEvents(){return this.transitions.events.subscribe(F=>{F instanceof qi&&(F.position?"top"===this.options.scrollPositionRestoration?this.viewportScroller.scrollToPosition([0,0]):"enabled"===this.options.scrollPositionRestoration&&this.viewportScroller.scrollToPosition(F.position):F.anchor&&"enabled"===this.options.anchorScrolling?this.viewportScroller.scrollToAnchor(F.anchor):"disabled"!==this.options.scrollPositionRestoration&&this.viewportScroller.scrollToPosition([0,0]))})}scheduleScrollEvent(F,te){this.zone.runOutsideAngular(()=>{setTimeout(()=>{this.zone.run(()=>{this.transitions.events.next(new qi(F,"popstate"===this.lastSource?this.store[this.restoredId]:null,te))})},0)})}ngOnDestroy(){var F,te;null==(F=this.routerEventsSubscription)||F.unsubscribe(),null==(te=this.scrollEventsSubscription)||te.unsubscribe()}}return(N=$).\u0275fac=function(F){a.$Z()},N.\u0275prov=a.Yz7({token:N,factory:N.\u0275fac}),$})();function Dr(N,$){return{\u0275kind:N,\u0275providers:$}}function ws(){const N=(0,a.f3M)(a.zs3);return $=>{var Se,Ge;const Z=N.get(a.z2F);if($!==Z.components[0])return;const F=N.get(Ti),te=N.get(ua);1===N.get(Ln)&&F.initialNavigation(),null==(Se=N.get(Ll,null,a.XFs.Optional))||Se.setUpPreloading(),null==(Ge=N.get(pi,null,a.XFs.Optional))||Ge.init(),F.resetRootComponentType(Z.componentTypes[0]),te.closed||(te.next(),te.complete(),te.unsubscribe())}}const ua=new a.OlP("",{factory:()=>new P.xQ}),Ln=new a.OlP("",{providedIn:"root",factory:()=>1}),Ll=new a.OlP("");function pc(N){return Dr(0,[{provide:Ll,useExisting:ca},{provide:Gr,useExisting:N}])}const Ne=new a.OlP("ROUTER_FORROOT_GUARD"),_a=[d.Ye,{provide:Fe,useClass:je},Ti,Ts,{provide:xr,useFactory:function Pl(N){return N.routerState.root},deps:[Ti]},x,[]];function tn(){return new a.PXZ("Router",Ti)}let Hn=(()=>{var N;class ${constructor(F){}static forRoot(F,te){return{ngModule:$,providers:[_a,[],{provide:rs,multi:!0,useValue:F},{provide:Ne,useFactory:xl,deps:[[Ti,new a.FiY,new a.tp0]]},{provide:Un,useValue:te||{}},null!=te&&te.useHash?{provide:d.S$,useClass:d.Do}:{provide:d.S$,useClass:d.b0},{provide:pi,useFactory:()=>{const N=(0,a.f3M)(d.EM),$=(0,a.f3M)(a.R0b),Z=(0,a.f3M)(Un),F=(0,a.f3M)(Re),te=(0,a.f3M)(Fe);return Z.scrollOffset&&N.setOffset(Z.scrollOffset),new Ar(te,F,N,$,Z)}},null!=te&&te.preloadingStrategy?pc(te.preloadingStrategy).\u0275providers:[],{provide:a.PXZ,multi:!0,useFactory:tn},null!=te&&te.initialNavigation?Zo(te):[],null!=te&&te.bindToComponentInputs?Dr(8,[_o,{provide:jn,useExisting:_o}]).\u0275providers:[],[{provide:Xo,useFactory:ws},{provide:a.tb,multi:!0,useExisting:Xo}]]}}static forChild(F){return{ngModule:$,providers:[{provide:rs,multi:!0,useValue:F}]}}}return(N=$).\u0275fac=function(F){return new(F||N)(a.LFG(Ne,8))},N.\u0275mod=a.oAB({type:N}),N.\u0275inj=a.cJS({}),$})();function xl(N){return"guarded"}function Zo(N){return["disabled"===N.initialNavigation?Dr(3,[{provide:a.ip1,multi:!0,useFactory:()=>{const $=(0,a.f3M)(Ti);return()=>{$.setUpLocationChangeListener()}}},{provide:Ln,useValue:2}]).\u0275providers:[],"enabledBlocking"===N.initialNavigation?Dr(2,[{provide:Ln,useValue:0},{provide:a.ip1,multi:!0,deps:[a.zs3],useFactory:$=>{const Z=$.get(d.V_,Promise.resolve());return()=>Z.then(()=>new Promise(F=>{const te=$.get(Ti),Se=$.get(ua);Br(te,()=>{F(!0)}),$.get(Re).afterPreactivation=()=>(F(!0),Se.closed?(0,A.of)(void 0):Se),te.initialNavigation()}))}}]).\u0275providers:[]]}const Xo=new a.OlP("")},30414:(Qe,he,s)=>{"use strict";s.d(he,{N:()=>b});var a=s(65879),r=s(96814);let b=(()=>{class A{constructor(p,E){this.document=p,this.platformId=E,this.documentIsAccessible=(0,r.NF)(this.platformId)}static getCookieRegExp(p){const E=p.replace(/([\[\]\{\}\(\)\|\=\;\+\?\,\.\*\^\$])/gi,"\\$1");return new RegExp("(?:^"+E+"|;\\s*"+E+")=(.*?)(?:;|$)","g")}static safeDecodeURIComponent(p){try{return decodeURIComponent(p)}catch{return p}}check(p){return!!this.documentIsAccessible&&(p=encodeURIComponent(p),A.getCookieRegExp(p).test(this.document.cookie))}get(p){if(this.documentIsAccessible&&this.check(p)){p=encodeURIComponent(p);const f=A.getCookieRegExp(p).exec(this.document.cookie);return f[1]?A.safeDecodeURIComponent(f[1]):""}return""}getAll(){if(!this.documentIsAccessible)return{};const p={},E=this.document;return E.cookie&&""!==E.cookie&&E.cookie.split(";").forEach(f=>{const[c,C]=f.split("=");p[A.safeDecodeURIComponent(c.replace(/^ /,""))]=A.safeDecodeURIComponent(C)}),p}set(p,E,f,c,C,m,_){if(!this.documentIsAccessible)return;if("number"==typeof f||f instanceof Date||c||C||m||_)return void this.set(p,E,{expires:f,path:c,domain:C,secure:m,sameSite:_||"Lax"});let g=encodeURIComponent(p)+"="+encodeURIComponent(E)+";";const P=f||{};P.expires&&(g+="number"==typeof P.expires?"expires="+new Date((new Date).getTime()+1e3*P.expires*60*60*24).toUTCString()+";":"expires="+P.expires.toUTCString()+";"),P.path&&(g+="path="+P.path+";"),P.domain&&(g+="domain="+P.domain+";"),!1===P.secure&&"None"===P.sameSite&&(P.secure=!0,console.warn(`[ngx-cookie-service] Cookie ${p} was forced with secure flag because sameSite=None.More details : https://github.com/stevermeister/ngx-cookie-service/issues/86#issuecomment-597720130`)),P.secure&&(g+="secure;"),P.sameSite||(P.sameSite="Lax"),g+="sameSite="+P.sameSite+";",this.document.cookie=g}delete(p,E,f,c,C="Lax"){this.documentIsAccessible&&this.set(p,"",{expires:new Date("Thu, 01 Jan 1970 00:00:01 GMT"),path:E,domain:f,secure:c,sameSite:C})}deleteAll(p,E,f,c="Lax"){if(!this.documentIsAccessible)return;const C=this.getAll();for(const m in C)C.hasOwnProperty(m)&&this.delete(m,p,E,f,c)}}return A.\u0275fac=function(p){return new(p||A)(a.LFG(r.K0),a.LFG(a.Lbi))},A.\u0275prov=a.Yz7({token:A,factory:A.\u0275fac,providedIn:"root"}),A})()}},Qe=>{Qe(Qe.s=5521)}]);