(self.webpackChunkMobiBox=self.webpackChunkMobiBox||[]).push([[179],{45014:(Ze,ee,_)=>{"use strict";_.d(ee,{Q:()=>g});var c=_(4942),b=_(17484),M=_(88611),F=_(56291),O=_(55062),w=_(10805),y=_(94080);let g=(()=>{class x{constructor(T,V,B,q){(0,c.Z)(this,"apiUrlService",void 0),(0,c.Z)(this,"messageService",void 0),(0,c.Z)(this,"encrypt",void 0),(0,c.Z)(this,"_memberService",void 0),(0,c.Z)(this,"notificationTimes",0),this.apiUrlService=T,this.messageService=V,this.encrypt=B,this._memberService=q}GetCountsForNotifications(){let T=localStorage.getItem("currentUser"),V=JSON.parse(T);T&&2==V.RoleId&&this.apiUrlService.PostRequestCore(F.J.GetCountsForNotifications,{MembershipUserID:V.MG}).subscribe(q=>{if(q){let de=q.Result;de.ServicesCount>0?($("#SMServices").removeClass("d-none"),$("#SMServices").empty().append("+"+de.ServicesCount)):$("#SMServices").addClass("d-none"),de.OffersCount>0?($("#SMOffers").removeClass("d-none"),$("#SMOffers").empty().append("+"+de.OffersCount)):$("#SMOffers").addClass("d-none"),de.CRsCount>0?($("#SMConversionRules").removeClass("d-none"),$("#SMConversionRules").empty().append("+"+de.CRsCount)):$("#SMConversionRules").addClass("d-none"),de.CAPsCount>0?($("#SMCaps").removeClass("d-none"),$("#SMCaps").empty().append("+"+de.CAPsCount)):$("#SMCaps").addClass("d-none"),de.PortalsCount>0?($("#SMPortals").removeClass("d-none"),$("#SMPortals").empty().append("+"+de.PortalsCount)):$("#SMPortals").addClass("d-none"),de.ThemesCount>0?($("#SMThemes").removeClass("d-none"),$("#SMThemes").empty().append("+"+de.ThemesCount)):$("#SMThemes").addClass("d-none"),de.RatesCount>0?($("#SMRates").removeClass("d-none"),$("#SMRates").empty().append("+"+de.RatesCount)):$("#SMRates").addClass("d-none");let se=de.ServicesCount+de.OffersCount+de.CRsCount+de.CAPsCount+de.PortalsCount+de.ThemesCount;se>0?(this.notificationTimes<1&&(this.notificationTimes+=1,this.messageService.add({key:"errorAPI",severity:"info",summary:"Warning",detail:"Please check your pending requests"})),$("#SMRequests").removeClass("d-none"),$("#SMRequests").empty().append("+"+se)):$("#SMRequests").addClass("d-none")}})}resetNotificationTimes(){this.notificationTimes=0}}return(0,c.Z)(x,"\u0275fac",function(T){return new(T||x)(O.LFG(b.i),O.LFG(w.ez),O.LFG(M.d),O.LFG(y.n))}),(0,c.Z)(x,"\u0275prov",O.Yz7({token:x,factory:x.\u0275fac})),x})()},80887:(Ze,ee,_)=>{"use strict";_.d(ee,{M:()=>w});var c=_(4942),b=_(17484),M=_(88611),F=_(55062),O=_(10805);let w=(()=>{class y{constructor(x,N,T){(0,c.Z)(this,"apiUrlService",void 0),(0,c.Z)(this,"messageService",void 0),(0,c.Z)(this,"encrypt",void 0),(0,c.Z)(this,"notificationTimes",0),this.apiUrlService=x,this.messageService=N,this.encrypt=T}resetNotificationTimes(){this.notificationTimes=0}}return(0,c.Z)(y,"\u0275fac",function(x){return new(x||y)(F.LFG(b.i),F.LFG(O.ez),F.LFG(M.d))}),(0,c.Z)(y,"\u0275prov",F.Yz7({token:y,factory:y.\u0275fac})),y})()},56291:(Ze,ee,_)=>{"use strict";_.d(ee,{J:()=>M});var c=_(4942),b=_(53588);class M{}(0,c.Z)(M,"baseUrlUtilities","ddLs/"),(0,c.Z)(M,"baseUrlShared","shared/"),(0,c.Z)(M,"baseUrlClientManager","client-sub-manager/"),(0,c.Z)(M,"baseUrlClientGeneral",M.baseUrlClientManager+"general/"),(0,c.Z)(M,"baseUrlRequests",M.baseUrlClientManager+"requests/"),(0,c.Z)(M,"GetAssignedClients",M.baseUrlClientGeneral+"GetAssignedClients"),(0,c.Z)(M,"GetAllServicesCAPs",M.baseUrlClientGeneral+"GetAllServicesCAPs"),(0,c.Z)(M,"GetScheduledActions",M.baseUrlClientGeneral+"GetScheduledActions"),(0,c.Z)(M,"SaveRateScheduledAction",M.baseUrlClientGeneral+"SaveRateScheduledAction"),(0,c.Z)(M,"DeleteScheduledAction",M.baseUrlClientGeneral+"DeleteScheduledAction"),(0,c.Z)(M,"GetRequests",M.baseUrlRequests+"GetRequests"),(0,c.Z)(M,"GetRequestsSimulator",M.baseUrlShared+"simulator-self-managed/GetRequests"),(0,c.Z)(M,"UpdateRequest",M.baseUrlRequests+"UpdateRequest"),(0,c.Z)(M,"GetHistory",M.baseUrlRequests+"GetHistory"),(0,c.Z)(M,"GetThemesHistory",M.baseUrlRequests+"Simulator/GetHistory "),(0,c.Z)(M,"GetCountsForNotifications",M.baseUrlRequests+"GetCountsForNotifications"),(0,c.Z)(M,"UpdateThemeRequest",M.baseUrlRequests+"Simulator/UpdateRequest"),(0,c.Z)(M,"GetPayoutRequests",M.baseUrlRequests+"GetPayoutRequests"),(0,c.Z)(M,"UpdatePayoutRequest",M.baseUrlRequests+"UpdatePayoutRequest"),(0,c.Z)(M,"GetPayoutHistory",M.baseUrlRequests+"GetPayoutHistory"),(0,c.Z)(M,"GetServices",M.baseUrlShared+"simulator-self-managed/GetServices"),(0,c.Z)(M,"SimulatorSelfManagedGetCountriesAndOperators",M.baseUrlShared+"simulator-self-managed/GetCountriesAndOperators"),(0,c.Z)(M,"GetClientsServicesDDLs",M.baseUrlUtilities+"GetClientsServicesDDLs"),(0,c.Z)(M,"GetCountriesOnly",M.baseUrlUtilities+"GetCountries"),(0,c.Z)(M,"GetCountriesAndOperators",M.baseUrlUtilities+"GetCountriesAndOperators"),(0,c.Z)(M,"GetOfferTypes",M.baseUrlUtilities+"GetOfferTypes?read=true"),(0,c.Z)(M,"GetClientsForDDL",M.baseUrlUtilities+"GetClientsDDL"),(0,c.Z)(M,"GetScheduledActionsDDl",M.baseUrlUtilities+"GetScheduledActions"),(0,c.Z)(M,"GetServicesVerticals",M.baseUrlUtilities+"GetServicesVerticals"),(0,c.Z)(M,"GetStatuses",M.baseUrlUtilities+"GetStatuses"),(0,c.Z)(M,"GetConversionsData",M.baseUrlShared+"GetConversionsData"),(0,c.Z)(M,"GetConvertedPhoneNumbers",M.baseUrlShared+"GetConvertedPhoneNumbers"),(0,c.Z)(M,"GetClientsForAccounting",b.a.baseUrlUtilities+"GetClientsForAccounting")},81140:(Ze,ee,_)=>{"use strict";_.d(ee,{$:()=>V});var c=_(4942),b=_(2925),M=_(94577),F=_(8929),O=_(12139),y=_(24766),g=_(17484),x=_(83021),N=_(55062),T=_(94080);let V=(()=>{class B{constructor(de,se,De,he,xe){(0,c.Z)(this,"apiUrlService",void 0),(0,c.Z)(this,"route",void 0),(0,c.Z)(this,"router",void 0),(0,c.Z)(this,"_memberService",void 0),(0,c.Z)(this,"_cookiesService",void 0),(0,c.Z)(this,"currentUserSubject",void 0),(0,c.Z)(this,"currentUser",void 0),(0,c.Z)(this,"isExist",void 0),(0,c.Z)(this,"toAuthentication",!1),(0,c.Z)(this,"destroy$",new F.xQ),this.apiUrlService=de,this.route=se,this.router=De,this._memberService=he,this._cookiesService=xe,this.currentUserSubject=new O.BehaviorSubject(JSON.parse(localStorage.getItem("currentUser"))),this.currentUser=this.currentUserSubject.asObservable()}get currentUserValue(){return this.currentUserSubject.value}setCurrentUserSubject(de){this.currentUserSubject.next(de)}get currentUserRole(){return this.currentUserSubject.value&&this.currentUserSubject.value.RoleId}get GetIsExist(){return this.isExist}get isWhiteLabeled(){return this.currentUserSubject.value&&1==this.currentUserSubject.value.IsWhiteLabeled}getUser(de){return new Promise(se=>{M.g.currentAuthenticatedUser({bypassCache:!0}).then(De=>{localStorage.getItem("currentUser")?(this.currentUserSubject=new O.BehaviorSubject(JSON.parse(localStorage.getItem("currentUser"))),this.childCall(),this.router.events.subscribe(xe=>{xe instanceof b.m2&&"/"===xe.urlAfterRedirects&&this.router.navigate(1==this.currentUserSubject.value.IsWhiteLabeled?["external/client/home"]:["role/"+this.currentUserSubject.value.RoleId+"/home"])})):(this._cookiesService.setCookie("currentActiveUser","true"),this._cookiesService.setCookie("currentActiveUserName",De.username),null!=de||"null"!=de?this.apiUrlService.GetRequestCoreOutRole("users/get-user"+(de&&null!=de?"?key="+de:"")).subscribe(xe=>{localStorage.setItem("currentUser",JSON.stringify(xe.currentUser)),this.currentUserSubject=new O.BehaviorSubject(JSON.parse(localStorage.getItem("currentUser"))),this.childCall(),this.router.navigate(1==this.currentUserSubject.value.IsWhiteLabeled?["external/client/home"]:["role/"+this.currentUserSubject.value.RoleId+"/home"]),se(!0)},xe=>{se(!1)}):se(!1)),se(!0)}).catch(De=>{!(window.location.href.includes("external")&&window.location.href.includes("auth"))&&!(window.location.href.includes("authentication")&&window.location.href.includes("auth"))&&(localStorage.removeItem("currentUser"),this.currentUserSubject.next(null),this._cookiesService.deleteCookie("currentActiveUser"),this._cookiesService.deleteCookie("currentActiveUserName"),window.open(y.N.baseWebsite,"_self")),se(!0)})})}childCall(){let de=localStorage.getItem("currentUser");if(de){let se=JSON.parse(de);this._memberService.setMembershipUserID(se.MG),this._memberService.setName(se.Name),this._memberService.setEmail(se.Email),this._memberService.setRoleID(se.RoleId),this._memberService.setRoleName(se.RoleName),this._memberService.setShow(se.Show),this._memberService.setIDCategory(se.IDCategory),this._memberService.setIDEntity(se.IDEntity),this._memberService.setClientGUID(se.ClientGUID),this._memberService.setCreativesGoogleDriveURL(se.CreativesGoogleDriveURL),this._memberService.setShowPayment(se.ShowPayment),this._memberService.setIDPaymentProvider(se.IDPaymentProvider),this._memberService.setIDAggregator(se.ID),this._memberService.setIsFreeLancer(se.isFreeLancer),this._memberService.setOldPath(se.OldPath),this._memberService.setPassword(se.Password),this._memberService.setEmails(se.Emails),this._memberService.setPhoneNumbers(se.PhoneNumbers),this._memberService.setNotificationEmails(se.NotificationEmails),this._memberService.setAutoLoginMembershipUserID(se.AutoLoginMembershipUserID),this._memberService.setAutoLoginName(se.AutoLoginName),this._memberService.setAutoLoginRoleID(se.AutoLoginRoleID),this._memberService.setAutoLoginRoleName(se.AutoLoginRoleName),this._memberService.setGroupId(se.IDGroup),this._memberService.setIsWhiteLabeled(se.IsWhiteLabeled),this._memberService.setWhiteLabeledLogo(se.WhiteLabeledLogo),this._memberService.setWhiteLabeledDomainName(se.WhiteLabeledDomainName),this._memberService.setWhiteLabeledShowPoweredBy(se.WhiteLabeledShowPoweredBy),this._memberService.setIsReseller(se.IsReseller),this._memberService.setShowUserAction(se.ShowUserAction),this._memberService.setShowUserAction(se.ShowNotifications),this._memberService.setKey(se.Key),this._memberService.setEntityDomain(se.EntityDomain)}}logout(de=!1){let se,De;if(this.currentUserSubject=new O.BehaviorSubject(JSON.parse(localStorage.getItem("currentUser"))),this.currentUserSubject.value&&(se=this.currentUserSubject.value.IsWhiteLabeled,De=this.currentUserSubject.value.WhiteLabeledDomainName),localStorage.removeItem("currentUser"),this.currentUserSubject.next(null),this._cookiesService.deleteCookie("currentActiveUser"),this._cookiesService.deleteCookie("currentActiveUserName"),1==se)M.g.signOut(),window.open(De,"_self");else if(de){let xe=window.location.href.split("#/")[0]+"#/authentication/"+this._memberService.getKey()+"/auth";window.open(xe,"_self")}else M.g.signOut(),window.open(this._memberService.getEntityDomain(),"_self")}ngOnDestroy(){this.destroy$.next(!0),this.destroy$.unsubscribe()}}return(0,c.Z)(B,"\u0275fac",function(de){return new(de||B)(N.LFG(g.i),N.LFG(b.gz),N.LFG(b.F0),N.LFG(T.n),N.LFG(x.F))}),(0,c.Z)(B,"\u0275prov",N.Yz7({token:B,factory:B.\u0275fac,providedIn:"root"})),B})()},83021:(Ze,ee,_)=>{"use strict";_.d(ee,{F:()=>F});var c=_(4942),b=_(24766),M=_(55062);let F=(()=>{class O{constructor(){}setCookie(y,g){const x=new Date,N=g;x.setTime(x.getTime()+2592e6),document.cookie=y+"="+N+"; expires="+x.toUTCString()+"; domain="+b.N.cookieDomain}getCookie(y){const x=("; "+document.cookie).split("; "+y+"=");if(2==x.length)return x.pop().split(";").shift()}deleteCookie(y){const g=new Date;g.setTime(g.getTime()+-864e5),document.cookie=y+"=; expires="+g.toUTCString()+"; path=/;domain="+b.N.cookieDomain}}return(0,c.Z)(O,"\u0275fac",function(y){return new(y||O)}),(0,c.Z)(O,"\u0275prov",M.Yz7({token:O,factory:O.\u0275fac,providedIn:"root"})),O})()},94080:(Ze,ee,_)=>{"use strict";_.d(ee,{n:()=>M});var c=_(4942),b=_(55062);let M=(()=>{class O{constructor(){(0,c.Z)(this,"member",new F)}Member(y,g,x,N,T,V,B,q,de,se,De,he,xe,Me,be,Y,Be,le,R,U,W,oe,ge,Q,ye,Le,Ye,we,Ge){this.member._MembershipUserID=y,this.member._Name=g,this.member._RoleID=x,this.member._RoleName=N,this.member._Show=T,this.member._IDCategory=V,this.member._IDEntity=B,this.member._ClientGUID=q,this.member._CreativesGoogleDriveURL=de,this.member._ShowPayment=se,this.member._IDPaymentProvider=De,this.member._IDAggregator=he,this.member._IsFreeLancer=Me,this.member._OldPath=be,this.member._Password=Y,this.member._Emails=Be,this.member._PhoneNumbers=le,this.member._NotificationEmails=R,this.member._Email=U,this.member._IDGroup=xe,this.member._IsWhiteLabeled=W,this.member._WhiteLabeledLogo=oe,this.member._WhiteLabeledDomainName=ge,this.member._WhiteLabeledShowPoweredBy=Q,this.member._IsReseller=ye,this.member._ShowUserAction=Le,this.member._ShowNotification=Ye,this.member._Key=we,this.member._EntityDomain=Ge}getMembershipUserID(){return this.member._MembershipUserID}setMembershipUserID(y){this.member._MembershipUserID=y}getName(){return this.member._Name}setName(y){this.member._Name=y}getEmail(){return this.member._Email}setEmail(y){this.member._Email=y}getRoleID(){return this.member._RoleID}setRoleID(y){this.member._RoleID=y}getRoleName(){return this.member._RoleName}setRoleName(y){this.member._RoleName=y}getShow(){return this.member._Show}setShow(y){this.member._Show=y}getIDCategory(){return this.member._IDCategory}setIDCategory(y){this.member._IDCategory=y}getIDEntity(){return this.member._IDEntity}setIDEntity(y){this.member._IDEntity=y}getClientGUID(){return this.member._ClientGUID}setClientGUID(y){this.member._ClientGUID=y}getCreativesGoogleDriveURL(){return this.member._CreativesGoogleDriveURL}setCreativesGoogleDriveURL(y){this.member._CreativesGoogleDriveURL=y}getShowPayment(){return this.member._ShowPayment}setShowPayment(y){this.member._ShowPayment=y}getIDPaymentProvider(){return this.member._IDPaymentProvider}setIDPaymentProvider(y){this.member._IDPaymentProvider=y}getIDAggregator(){return this.member._IDAggregator}setIDAggregator(y){this.member._IDAggregator=y}getIsFreeLancer(){return this.member._IsFreeLancer}setIsFreeLancer(y){this.member._IsFreeLancer=y}getAutoLoginMembershipUserID(){return this.member._AutoLoginMembershipUserID}setAutoLoginMembershipUserID(y){this.member._AutoLoginMembershipUserID=y}getAutoLoginName(){return this.member._AutoLoginName}setAutoLoginName(y){this.member._AutoLoginName=y}getAutoLoginRoleID(){return this.member._AutoLoginRoleID}setAutoLoginRoleID(y){this.member._AutoLoginRoleID=y}getAutoLoginRoleName(){return this.member._AutoLoginRoleName}setAutoLoginRoleName(y){this.member._AutoLoginRoleName=y}getOldPath(){return this.member._OldPath}setOldPath(y){this.member._OldPath=y}setPassword(y){this.member._Password=y}getPassword(){return this.member._Password}setEmails(y){this.member._Emails=y}getEmails(){return this.member._Emails}setPhoneNumbers(y){this.member._PhoneNumbers=y}getPhoneNumbers(){return this.member._PhoneNumbers}setNotificationEmails(y){this.member._NotificationEmails=y}getNotificationEmails(){return this.member._NotificationEmails}getGroupId(){return this.member._IDGroup}setGroupId(y){this.member._IDGroup=y}getIsWhiteLabeled(){return this.member._IsWhiteLabeled}setIsWhiteLabeled(y){this.member._IsWhiteLabeled=y}getWhiteLabeledLogo(){return this.member._WhiteLabeledLogo}setWhiteLabeledLogo(y){this.member._WhiteLabeledLogo=y}getWhiteLabeledDomainName(){return this.member._WhiteLabeledDomainName}setWhiteLabeledDomainName(y){this.member._WhiteLabeledDomainName=y}getWhiteLabeledShowPoweredBy(){return this.member._WhiteLabeledShowPoweredBy}setWhiteLabeledShowPoweredBy(y){this.member._WhiteLabeledShowPoweredBy=y}getIsReseller(){return this.member._IsWhiteLabeled}setIsReseller(y){this.member._IsWhiteLabeled=y}getShowUserAction(){return this.member._ShowUserAction}setShowUserAction(y){this.member._ShowUserAction=y}getShowNotification(){return this.member._ShowNotification}setShowNotification(y){this.member._ShowNotification=y}getKey(){return this.member._Key}setKey(y){this.member._Key=y}getEntityDomain(){return this.member._EntityDomain}setEntityDomain(y){this.member._EntityDomain=y}}return(0,c.Z)(O,"\u0275fac",function(y){return new(y||O)}),(0,c.Z)(O,"\u0275prov",b.Yz7({token:O,factory:O.\u0275fac})),O})();class F{constructor(){(0,c.Z)(this,"_MembershipUserID",null),(0,c.Z)(this,"_Name",null),(0,c.Z)(this,"_Email",null),(0,c.Z)(this,"_RoleID",null),(0,c.Z)(this,"_RoleName",null),(0,c.Z)(this,"_Show",null),(0,c.Z)(this,"_IDCategory",null),(0,c.Z)(this,"_IDEntity",null),(0,c.Z)(this,"_ClientGUID",null),(0,c.Z)(this,"_CreativesGoogleDriveURL",null),(0,c.Z)(this,"_ShowPayment",null),(0,c.Z)(this,"_IDPaymentProvider",null),(0,c.Z)(this,"_IDAggregator",null),(0,c.Z)(this,"_IDGroup",null),(0,c.Z)(this,"_IsFreeLancer",null),(0,c.Z)(this,"_AutoLoginMembershipUserID",""),(0,c.Z)(this,"_AutoLoginName",null),(0,c.Z)(this,"_AutoLoginRoleID",null),(0,c.Z)(this,"_AutoLoginRoleName",null),(0,c.Z)(this,"_OldPath",null),(0,c.Z)(this,"_Password",null),(0,c.Z)(this,"_Emails",void 0),(0,c.Z)(this,"_PhoneNumbers",void 0),(0,c.Z)(this,"_NotificationEmails",void 0),(0,c.Z)(this,"_IsWhiteLabeled",null),(0,c.Z)(this,"_WhiteLabeledLogo",null),(0,c.Z)(this,"_WhiteLabeledDomainName",null),(0,c.Z)(this,"_WhiteLabeledShowPoweredBy",null),(0,c.Z)(this,"_IsReseller",null),(0,c.Z)(this,"_ShowUserAction",null),(0,c.Z)(this,"_ShowNotification",null),(0,c.Z)(this,"_Key",null),(0,c.Z)(this,"_EntityDomain",null)}}},53588:(Ze,ee,_)=>{"use strict";_.d(ee,{a:()=>b});var c=_(4942);class b{}(0,c.Z)(b,"ManageProfile","users/profile"),(0,c.Z)(b,"baseUrlUtilities","ddls/"),(0,c.Z)(b,"GetAppsPublisherTypes",b.baseUrlUtilities+"GetAppsPublisherTypes"),(0,c.Z)(b,"GetFacebookAppsStatuses",b.baseUrlUtilities+"GetFacebookAppsStatuses"),(0,c.Z)(b,"GetClientsServicesDDLs",b.baseUrlUtilities+"GetClientsServicesDDLs"),(0,c.Z)(b,"GetBillingChannelsKeywordTypes",b.baseUrlUtilities+"GetBillingChannelsKeywordTypes"),(0,c.Z)(b,"GetCGTypes",b.baseUrlUtilities+"GetCGTypes"),(0,c.Z)(b,"GetNoneTerminatedCurrencies",b.baseUrlUtilities+"GetNoneTerminatedCurrencies"),(0,c.Z)(b,"GetNoneTerminatedChannelTypes",b.baseUrlUtilities+"GetNoneTerminatedChannelTypes"),(0,c.Z)(b,"GetCountriesOnly",b.baseUrlUtilities+"GetCountries"),(0,c.Z)(b,"GetCountriesAndOperators",b.baseUrlUtilities+"GetCountriesAndOperators"),(0,c.Z)(b,"GetMethodDDL",b.baseUrlUtilities+"GetMethodDDL"),(0,c.Z)(b,"GetMethodDDL2",b.baseUrlUtilities+"GetMethodDDL2"),(0,c.Z)(b,"GetConversionEvents",b.baseUrlUtilities+"GetConversionEvents"),(0,c.Z)(b,"GetSupportedLanguagesByBillingChannel",b.baseUrlUtilities+"GetSupportedLanguagesByBillingChannel"),(0,c.Z)(b,"GetMasterAggregators",b.baseUrlUtilities+"GetMasterAggregators"),(0,c.Z)(b,"GetClientsPaymentForDDL",b.baseUrlUtilities+"GetClientsPaymentForDDL"),(0,c.Z)(b,"GetPLMNLookUpProviders",b.baseUrlUtilities+"GetPLMNLookUpProviders"),(0,c.Z)(b,"GetNetworksWithCampaigns",b.baseUrlUtilities+"GetNetworksWithCampaigns"),(0,c.Z)(b,"GetPaymentProvidersTypes1",b.baseUrlUtilities+"GetPaymentProvidersType1"),(0,c.Z)(b,"GetPaymentProvidersTypes",b.baseUrlUtilities+"GetPaymentProvidersTypes"),(0,c.Z)(b,"GetPaymentProviders",b.baseUrlUtilities+"GetPaymentProviders"),(0,c.Z)(b,"GetClientsForDDLAppsMgr",b.baseUrlUtilities+"GetClientsDDLForApps"),(0,c.Z)(b,"GetLanguages",b.baseUrlUtilities+"GetLanguages"),(0,c.Z)(b,"GetSubscriptionFlows",b.baseUrlUtilities+"GetSubscriptionFlows"),(0,c.Z)(b,"GetSMSFlowTypesAndMacros",b.baseUrlUtilities+"GetSMSFlowTypesAndMacros"),(0,c.Z)(b,"GetAllNetworks",b.baseUrlUtilities+"GetAllNetworks"),(0,c.Z)(b,"GetClientPaymentProviders",b.baseUrlUtilities+"GetClientPaymentProviders")},17484:(Ze,ee,_)=>{"use strict";_.d(ee,{i:()=>q});var c=_(4942),b=_(80529),M=_(61737),F=_(55123),w=_(24850),y=_(27221),g=_(24766),x=_(88611),N=_(12139),V=_(55062),B=_(10805);let q=(()=>{class de{constructor(De,he,xe){(0,c.Z)(this,"http",void 0),(0,c.Z)(this,"encrypt",void 0),(0,c.Z)(this,"messageService",void 0),(0,c.Z)(this,"blockedPanelSubject",new N.BehaviorSubject(!1)),(0,c.Z)(this,"baseUrl",g.N.baseDomain),(0,c.Z)(this,"baseUrlV2",g.N.baseDomainV2),(0,c.Z)(this,"baseUrlV3",g.N.baseDomainV3),(0,c.Z)(this,"recentToken",""),(0,c.Z)(this,"headers",new b.WM),(0,c.Z)(this,"requestoptions",void 0),this.http=De,this.encrypt=he,this.messageService=xe}PostRequest(De,he){return he.constructor==={}.constructor&&(he=this.encrypt.encrypdecyption(he,1)),this.http.post(this.baseUrl+De,he).pipe((0,w.U)(xe=>{if("MobiBoxLoginLocal/Default.aspx"!=De){if("=DQ+w2a9-$UmRzz&36xAA2E"==xe.Result||"=DQ+w2a9-$UmRzz&36xAA2E"==xe.Description)localStorage.removeItem("currentUser"),window.location.reload();else if(xe.Error&&0!=xe.Error)return this.messageService.add({key:"errorAPI",severity:"error",summary:"Internal Server Error",detail:"The execution of some services failed in some way."}),void this.blockedPanelSubject.next(!1)}else"MobiBoxLoginLocal/Default.aspx"==De&&xe.Error&&2==xe.Error&&(xe.Descripion="Time out, please try again!!");return xe}),(0,y.K)(xe=>(this.messageService.add({key:"errorAPI",severity:"error",summary:"Connection Error",detail:"Time out, please try again!!"}),this.blockedPanelSubject.next(!1),(0,M._)("Something went wrong!"))))}PostRequestWithMediaCore(De,he){let xe=new FormData;if(""!==he&&null!=he)for(let be in he)if((0,F.isArray)(he[be]))for(var Me=0;Me<he[be].length;Me++)xe.append(be,he[be][Me]);else he.hasOwnProperty(be)&&(("ServiceDetails"==be||"Details"==be)&&(he[be]=this.encrypt.encrypdecyption(he[be],1)),xe.append(be,he[be]));return this.http.post(this.baseUrlV2+De,xe).pipe((0,w.U)(be=>be),(0,y.K)(be=>(this.blockedPanelSubject.next(!1),(0,M._)("Something went wrong!"))))}GetRequestCore(De){return this.http.get(this.baseUrlV2+De,{headers:{"Content-Type":"application/json"}}).pipe((0,w.U)(Me=>Me),(0,y.K)(Me=>(this.blockedPanelSubject.next(!1),(0,M._)("Something went wrong!"))))}GetRequestCoreOutRole(De){return this.http.get(this.baseUrlV3+De,{headers:{"Content-Type":"application/json"}}).pipe((0,w.U)(Me=>Me),(0,y.K)(Me=>(0,M._)("Something went wrong!")))}GetRequestCoreWithHeaders(De,he){return this.http.get(this.baseUrlV2+De,he).pipe((0,w.U)(xe=>xe),(0,y.K)(xe=>(this.blockedPanelSubject.next(!1),(0,M._)("Something went wrong!"))))}PostRequestAlt(De,he,xe){let Me=new b.WM;if(""!==he&&null!=he)for(let Y in he)he.hasOwnProperty(Y)&&(Me=Me.set(Y,he[Y]));return this.http.post(De,xe,{headers:Me}).pipe((0,w.U)(Y=>Y),(0,y.K)(Y=>(0,M._)("Something went wrong!")))}PostRequestCore(De,he){return he.constructor==={}.constructor&&(he=this.encrypt.encrypdecyption(he,1)),this.http.post(this.baseUrlV2+De,{data:he},{headers:{"Content-Type":"application/json"}}).pipe((0,w.U)(be=>be),(0,y.K)(be=>(this.blockedPanelSubject.next(!1),(0,M._)("Something went wrong!"))))}PostRequestCoreNew(De,he){return this.http.post(this.baseUrlV2+De,he,{headers:{"Content-Type":"application/json"}}).pipe((0,w.U)(Me=>Me),(0,y.K)(Me=>(this.blockedPanelSubject.next(!1),(0,M._)(Me))))}PostRequestCoreNewOutRole(De,he){return this.http.post(this.baseUrlV3+De,he,{headers:{"Content-Type":"application/json"}}).pipe((0,w.U)(Me=>Me),(0,y.K)(Me=>(0,M._)(Me)))}DeleteRequest(De){return this.http.delete(this.baseUrlV2+De).pipe((0,w.U)(xe=>xe),(0,y.K)(xe=>(0,M._)(xe)))}GetRequest(De,he){let xe=new b.WM;if(""!==he&&null!=he)for(let be in he)he.hasOwnProperty(be)&&(xe=xe.set(be,he[be]));return this.http.get(De,{headers:xe}).pipe((0,w.U)(be=>be.Error&&0!=be.Error?(this.messageService.add({key:"errorAPI",severity:"error",summary:"Internal Server Error",detail:"The execution of some services failed in some way."}),void this.blockedPanelSubject.next(!1)):be),(0,y.K)(be=>(this.messageService.add({key:"errorAPI",severity:"error",summary:"Connection Error",detail:"Time out, please try again!!"}),this.blockedPanelSubject.next(!1),(0,M._)("Something went wrong!"))))}}return(0,c.Z)(de,"\u0275fac",function(De){return new(De||de)(V.LFG(b.eN),V.LFG(x.d),V.LFG(B.ez))}),(0,c.Z)(de,"\u0275prov",V.Yz7({token:de,factory:de.\u0275fac,providedIn:"root"})),de})()},88611:(Ze,ee,_)=>{"use strict";_.d(ee,{d:()=>w});var c=_(4942),b=_(7206),F=_(55062),O=_(94080);let w=(()=>{class y{constructor(x){(0,c.Z)(this,"_memberService",void 0),(0,c.Z)(this,"json",void 0),(0,c.Z)(this,"encryptvalue",void 0),(0,c.Z)(this,"decryptedvalue",void 0),(0,c.Z)(this,"key","odHUr8Zscf5ujMRu"),(0,c.Z)(this,"iv","PfecMZ7zM2RQs6TB"),this._memberService=x}encrypdecyption(x,N){let T=b.enc.Utf8.parse(this.key),V=b.enc.Utf8.parse(this.iv);if(1==N){this.json=x,this._memberService.getName()&&(this.json.SU=this._memberService.getName(),this.json.SP=this._memberService.getPassword());let B=JSON.stringify(this.json).replace(/\n|\r/g,""),q=b.AES.encrypt(b.enc.Utf8.parse(B),T,{keySize:16,iv:V,mode:b.mode.CBC,padding:b.pad.Pkcs7});return this.encryptvalue=encodeURIComponent(q.toString()),this.encryptvalue}{let q=b.AES.decrypt(x,T,{keySize:16,iv:V,mode:b.mode.CBC,padding:b.pad.Pkcs7});return this.decryptedvalue=q.toString(b.enc.Utf8),this.decryptedvalue}}}return(0,c.Z)(y,"\u0275fac",function(x){return new(x||y)(F.LFG(O.n))}),(0,c.Z)(y,"\u0275prov",F.Yz7({token:y,factory:y.\u0275fac,providedIn:"root"})),y})()},24766:(Ze,ee,_)=>{"use strict";_.d(ee,{N:()=>c});const c={baseWebsite:"https://mymobibox.com/home",cookieDomain:"mymobibox.com",baseConsole:"http://mymobibox.com/#/",baseDomain:"https://rpt.mymobibox.com/",baseDomainV2:"https://rptcore.mymobibox.com/api/roles/",baseDomainV3:"https://rptcore.mymobibox.com/api/"}},31255:(Ze,ee,_)=>{"use strict";var c=_(11481),b=_(55062),M=_(16699),F=_(4942),O=_(80529),w=_(24006),y=_(37340);function x(v){return new b.vHH(3e3,!1)}function nn(){return typeof window<"u"&&typeof window.document<"u"}function qt(){return typeof process<"u"&&"[object process]"==={}.toString.call(process)}function Ut(v){switch(v.length){case 0:return new y.ZN;case 1:return v[0];default:return new y.ZE(v)}}function jt(v,h,f,C,j=new Map,pe=new Map){const Re=[],We=[];let at=-1,ht=null;if(C.forEach(Tt=>{const Ot=Tt.get("offset"),gn=Ot==at,Kt=gn&&ht||new Map;Tt.forEach((Jt,mn)=>{let An=mn,Wn=Jt;if("offset"!==mn)switch(An=h.normalizePropertyName(An,Re),Wn){case y.k1:Wn=j.get(mn);break;case y.l3:Wn=pe.get(mn);break;default:Wn=h.normalizeStyleValue(mn,An,Wn,Re)}Kt.set(An,Wn)}),gn||We.push(Kt),ht=Kt,at=Ot}),Re.length)throw function Ye(v){return new b.vHH(3502,!1)}();return We}function hn(v,h,f,C){switch(h){case"start":v.onStart(()=>C(f&&xn(f,"start",v)));break;case"done":v.onDone(()=>C(f&&xn(f,"done",v)));break;case"destroy":v.onDestroy(()=>C(f&&xn(f,"destroy",v)))}}function xn(v,h,f){const pe=Tn(v.element,v.triggerName,v.fromState,v.toState,h||v.phaseName,f.totalTime??v.totalTime,!!f.disabled),Re=v._data;return null!=Re&&(pe._data=Re),pe}function Tn(v,h,f,C,j="",pe=0,Re){return{element:v,triggerName:h,fromState:f,toState:C,phaseName:j,totalTime:pe,disabled:!!Re}}function wn(v,h,f){let C=v.get(h);return C||v.set(h,C=f),C}function zt(v){const h=v.indexOf(":");return[v.substring(1,h),v.slice(h+1)]}let je=(v,h)=>!1,ne=(v,h,f)=>[],re=null;function $e(v){const h=v.parentNode||v.host;return h===re?null:h}(qt()||typeof Element<"u")&&(nn()?(re=(()=>document.documentElement)(),je=(v,h)=>{for(;h;){if(h===v)return!0;h=$e(h)}return!1}):je=(v,h)=>v.contains(h),ne=(v,h,f)=>{if(f)return Array.from(v.querySelectorAll(h));const C=v.querySelector(h);return C?[C]:[]});let lt=null,Ht=!1;const cn=je,ln=ne;let Gn=(()=>{class v{validateStyleProperty(f){return function Nt(v){lt||(lt=function pn(){return typeof document<"u"?document.body:null}()||{},Ht=!!lt.style&&"WebkitAppearance"in lt.style);let h=!0;return lt.style&&!function vt(v){return"ebkit"==v.substring(1,6)}(v)&&(h=v in lt.style,!h&&Ht&&(h="Webkit"+v.charAt(0).toUpperCase()+v.slice(1)in lt.style)),h}(f)}matchesElement(f,C){return!1}containsElement(f,C){return cn(f,C)}getParentElement(f){return $e(f)}query(f,C,j){return ln(f,C,j)}computeStyle(f,C,j){return j||""}animate(f,C,j,pe,Re,We=[],at){return new y.ZN(j,pe)}}return v.\u0275fac=function(f){return new(f||v)},v.\u0275prov=b.Yz7({token:v,factory:v.\u0275fac}),v})(),wr=(()=>{class v{}return v.NOOP=new Gn,v})();const On=1e3,nr="ng-enter",er="ng-leave",or="ng-trigger",Vn=".ng-trigger",ct="ng-animating",qe=".ng-animating";function et(v){if("number"==typeof v)return v;const h=v.match(/^(-?[\.\d]+)(m?s)/);return!h||h.length<2?0:Et(parseFloat(h[1]),h[2])}function Et(v,h){return"s"===h?v*On:v}function St(v,h,f){return v.hasOwnProperty("duration")?v:function Xt(v,h,f){let j,pe=0,Re="";if("string"==typeof v){const We=v.match(/^(-?[\.\d]+)(m?s)(?:\s+(-?[\.\d]+)(m?s))?(?:\s+([-a-z]+(?:\(.+?\))?))?$/i);if(null===We)return h.push(x()),{duration:0,delay:0,easing:""};j=Et(parseFloat(We[1]),We[2]);const at=We[3];null!=at&&(pe=Et(parseFloat(at),We[4]));const ht=We[5];ht&&(Re=ht)}else j=v;if(!f){let We=!1,at=h.length;j<0&&(h.push(function N(){return new b.vHH(3100,!1)}()),We=!0),pe<0&&(h.push(function T(){return new b.vHH(3101,!1)}()),We=!0),We&&h.splice(at,0,x())}return{duration:j,delay:pe,easing:Re}}(v,h,f)}function vn(v,h={}){return Object.keys(v).forEach(f=>{h[f]=v[f]}),h}function Pn(v){const h=new Map;return Object.keys(v).forEach(f=>{h.set(f,v[f])}),h}function Yn(v,h=new Map,f){if(f)for(let[C,j]of f)h.set(C,j);for(let[C,j]of v)h.set(C,j);return h}function Pe(v,h,f){return f?h+":"+f+";":""}function ie(v){let h="";for(let f=0;f<v.style.length;f++){const C=v.style.item(f);h+=Pe(0,C,v.style.getPropertyValue(C))}for(const f in v.style)v.style.hasOwnProperty(f)&&!f.startsWith("_")&&(h+=Pe(0,sr(f),v.style[f]));v.setAttribute("style",h)}function J(v,h,f){v.style&&(h.forEach((C,j)=>{const pe=$n(j);f&&!f.has(j)&&f.set(j,v.style[pe]),v.style[pe]=C}),qt()&&ie(v))}function ue(v,h){v.style&&(h.forEach((f,C)=>{const j=$n(C);v.style[j]=""}),qt()&&ie(v))}function Je(v){return Array.isArray(v)?1==v.length?v[0]:(0,y.vP)(v):v}const _t=new RegExp("{{\\s*(.+?)\\s*}}","g");function At(v){let h=[];if("string"==typeof v){let f;for(;f=_t.exec(v);)h.push(f[1]);_t.lastIndex=0}return h}function kt(v,h,f){const C=v.toString(),j=C.replace(_t,(pe,Re)=>{let We=h[Re];return null==We&&(f.push(function B(v){return new b.vHH(3003,!1)}()),We=""),We.toString()});return j==C?v:j}function Vt(v){const h=[];let f=v.next();for(;!f.done;)h.push(f.value),f=v.next();return h}const _n=/-+([a-z0-9])/g;function $n(v){return v.replace(_n,(...h)=>h[1].toUpperCase())}function sr(v){return v.replace(/([a-z])([A-Z])/g,"$1-$2").toLowerCase()}function Er(v,h,f){switch(h.type){case 7:return v.visitTrigger(h,f);case 0:return v.visitState(h,f);case 1:return v.visitTransition(h,f);case 2:return v.visitSequence(h,f);case 3:return v.visitGroup(h,f);case 4:return v.visitAnimate(h,f);case 5:return v.visitKeyframes(h,f);case 6:return v.visitStyle(h,f);case 8:return v.visitReference(h,f);case 9:return v.visitAnimateChild(h,f);case 10:return v.visitAnimateRef(h,f);case 11:return v.visitQuery(h,f);case 12:return v.visitStagger(h,f);default:throw function q(v){return new b.vHH(3004,!1)}()}}function Fi(v,h){return window.getComputedStyle(v)[h]}const _e="*";function Ce(v,h){const f=[];return"string"==typeof v?v.split(/\s*,\s*/).forEach(C=>function ce(v,h,f){if(":"==v[0]){const at=function Ue(v,h){switch(v){case":enter":return"void => *";case":leave":return"* => void";case":increment":return(f,C)=>parseFloat(C)>parseFloat(f);case":decrement":return(f,C)=>parseFloat(C)<parseFloat(f);default:return h.push(function ge(v){return new b.vHH(3016,!1)}()),"* => *"}}(v,f);if("function"==typeof at)return void h.push(at);v=at}const C=v.match(/^(\*|[-\w]+)\s*(<?[=-]>)\s*(\*|[-\w]+)$/);if(null==C||C.length<4)return f.push(function oe(v){return new b.vHH(3015,!1)}()),h;const j=C[1],pe=C[2],Re=C[3];h.push(tt(j,Re));"<"==pe[0]&&!(j==_e&&Re==_e)&&h.push(tt(Re,j))}(C,f,h)):f.push(v),f}const Oe=new Set(["true","1"]),Qe=new Set(["false","0"]);function tt(v,h){const f=Oe.has(v)||Qe.has(v),C=Oe.has(h)||Qe.has(h);return(j,pe)=>{let Re=v==_e||v==j,We=h==_e||h==pe;return!Re&&f&&"boolean"==typeof j&&(Re=j?Oe.has(v):Qe.has(v)),!We&&C&&"boolean"==typeof pe&&(We=pe?Oe.has(h):Qe.has(h)),Re&&We}}const wt=new RegExp("s*:selfs*,?","g");function Ct(v,h,f,C){return new Gt(v).build(h,f,C)}class Gt{constructor(h){this._driver=h}build(h,f,C){const j=new an(f);return this._resetContextStyleTimingState(j),Er(this,Je(h),j)}_resetContextStyleTimingState(h){h.currentQuerySelector="",h.collectedStyles=new Map,h.collectedStyles.set("",new Map),h.currentTime=0}visitTrigger(h,f){let C=f.queryCount=0,j=f.depCount=0;const pe=[],Re=[];return"@"==h.name.charAt(0)&&f.errors.push(function se(){return new b.vHH(3006,!1)}()),h.definitions.forEach(We=>{if(this._resetContextStyleTimingState(f),0==We.type){const at=We,ht=at.name;ht.toString().split(/\s*,\s*/).forEach(Tt=>{at.name=Tt,pe.push(this.visitState(at,f))}),at.name=ht}else if(1==We.type){const at=this.visitTransition(We,f);C+=at.queryCount,j+=at.depCount,Re.push(at)}else f.errors.push(function De(){return new b.vHH(3007,!1)}())}),{type:7,name:h.name,states:pe,transitions:Re,queryCount:C,depCount:j,options:null}}visitState(h,f){const C=this.visitStyle(h.styles,f),j=h.options&&h.options.params||null;if(C.containsDynamicStyles){const pe=new Set,Re=j||{};C.styles.forEach(We=>{We instanceof Map&&We.forEach(at=>{At(at).forEach(ht=>{Re.hasOwnProperty(ht)||pe.add(ht)})})}),pe.size&&(Vt(pe.values()),f.errors.push(function he(v,h){return new b.vHH(3008,!1)}()))}return{type:0,name:h.name,style:C,options:j?{params:j}:null}}visitTransition(h,f){f.queryCount=0,f.depCount=0;const C=Er(this,Je(h.animation),f);return{type:1,matchers:Ce(h.expr,f.errors),animation:C,queryCount:f.queryCount,depCount:f.depCount,options:on(h.options)}}visitSequence(h,f){return{type:2,steps:h.steps.map(C=>Er(this,C,f)),options:on(h.options)}}visitGroup(h,f){const C=f.currentTime;let j=0;const pe=h.steps.map(Re=>{f.currentTime=C;const We=Er(this,Re,f);return j=Math.max(j,f.currentTime),We});return f.currentTime=j,{type:3,steps:pe,options:on(h.options)}}visitAnimate(h,f){const C=function Hn(v,h){if(v.hasOwnProperty("duration"))return v;if("number"==typeof v)return Pr(St(v,h).duration,0,"");const f=v;if(f.split(/\s+/).some(pe=>"{"==pe.charAt(0)&&"{"==pe.charAt(1))){const pe=Pr(0,0,"");return pe.dynamic=!0,pe.strValue=f,pe}const j=St(f,h);return Pr(j.duration,j.delay,j.easing)}(h.timings,f.errors);f.currentAnimateTimings=C;let j,pe=h.styles?h.styles:(0,y.oB)({});if(5==pe.type)j=this.visitKeyframes(pe,f);else{let Re=h.styles,We=!1;if(!Re){We=!0;const ht={};C.easing&&(ht.easing=C.easing),Re=(0,y.oB)(ht)}f.currentTime+=C.duration+C.delay;const at=this.visitStyle(Re,f);at.isEmptyStep=We,j=at}return f.currentAnimateTimings=null,{type:4,timings:C,style:j,options:null}}visitStyle(h,f){const C=this._makeStyleAst(h,f);return this._validateStyleAst(C,f),C}_makeStyleAst(h,f){const C=[],j=Array.isArray(h.styles)?h.styles:[h.styles];for(let We of j)"string"==typeof We?We===y.l3?C.push(We):f.errors.push(new b.vHH(3002,!1)):C.push(Pn(We));let pe=!1,Re=null;return C.forEach(We=>{if(We instanceof Map&&(We.has("easing")&&(Re=We.get("easing"),We.delete("easing")),!pe))for(let at of We.values())if(at.toString().indexOf("{{")>=0){pe=!0;break}}),{type:6,styles:C,easing:Re,offset:h.offset,containsDynamicStyles:pe,options:null}}_validateStyleAst(h,f){const C=f.currentAnimateTimings;let j=f.currentTime,pe=f.currentTime;C&&pe>0&&(pe-=C.duration+C.delay),h.styles.forEach(Re=>{"string"!=typeof Re&&Re.forEach((We,at)=>{const ht=f.collectedStyles.get(f.currentQuerySelector),Tt=ht.get(at);let Ot=!0;Tt&&(pe!=j&&pe>=Tt.startTime&&j<=Tt.endTime&&(f.errors.push(function be(v,h,f,C,j){return new b.vHH(3010,!1)}()),Ot=!1),pe=Tt.startTime),Ot&&ht.set(at,{startTime:pe,endTime:j}),f.options&&function nt(v,h,f){const C=h.params||{},j=At(v);j.length&&j.forEach(pe=>{C.hasOwnProperty(pe)||f.push(function V(v){return new b.vHH(3001,!1)}())})}(We,f.options,f.errors)})})}visitKeyframes(h,f){const C={type:5,styles:[],options:null};if(!f.currentAnimateTimings)return f.errors.push(function Y(){return new b.vHH(3011,!1)}()),C;let pe=0;const Re=[];let We=!1,at=!1,ht=0;const Tt=h.steps.map(Wn=>{const dr=this._makeStyleAst(Wn,f);let Sr=null!=dr.offset?dr.offset:function rr(v){if("string"==typeof v)return null;let h=null;if(Array.isArray(v))v.forEach(f=>{if(f instanceof Map&&f.has("offset")){const C=f;h=parseFloat(C.get("offset")),C.delete("offset")}});else if(v instanceof Map&&v.has("offset")){const f=v;h=parseFloat(f.get("offset")),f.delete("offset")}return h}(dr.styles),Cr=0;return null!=Sr&&(pe++,Cr=dr.offset=Sr),at=at||Cr<0||Cr>1,We=We||Cr<ht,ht=Cr,Re.push(Cr),dr});at&&f.errors.push(function Be(){return new b.vHH(3012,!1)}()),We&&f.errors.push(function le(){return new b.vHH(3200,!1)}());const Ot=h.steps.length;let gn=0;pe>0&&pe<Ot?f.errors.push(function R(){return new b.vHH(3202,!1)}()):0==pe&&(gn=1/(Ot-1));const Kt=Ot-1,Jt=f.currentTime,mn=f.currentAnimateTimings,An=mn.duration;return Tt.forEach((Wn,dr)=>{const Sr=gn>0?dr==Kt?1:gn*dr:Re[dr],Cr=Sr*An;f.currentTime=Jt+mn.delay+Cr,mn.duration=Cr,this._validateStyleAst(Wn,f),Wn.offset=Sr,C.styles.push(Wn)}),C}visitReference(h,f){return{type:8,animation:Er(this,Je(h.animation),f),options:on(h.options)}}visitAnimateChild(h,f){return f.depCount++,{type:9,options:on(h.options)}}visitAnimateRef(h,f){return{type:10,animation:this.visitReference(h.animation,f),options:on(h.options)}}visitQuery(h,f){const C=f.currentQuerySelector,j=h.options||{};f.queryCount++,f.currentQuery=h;const[pe,Re]=function un(v){const h=!!v.split(/\s*,\s*/).find(f=>":self"==f);return h&&(v=v.replace(wt,"")),v=v.replace(/@\*/g,Vn).replace(/@\w+/g,f=>Vn+"-"+f.slice(1)).replace(/:animating/g,qe),[v,h]}(h.selector);f.currentQuerySelector=C.length?C+" "+pe:pe,wn(f.collectedStyles,f.currentQuerySelector,new Map);const We=Er(this,Je(h.animation),f);return f.currentQuery=null,f.currentQuerySelector=C,{type:11,selector:pe,limit:j.limit||0,optional:!!j.optional,includeSelf:Re,animation:We,originalSelector:h.selector,options:on(h.options)}}visitStagger(h,f){f.currentQuery||f.errors.push(function U(){return new b.vHH(3013,!1)}());const C="full"===h.timings?{duration:0,delay:0,easing:"full"}:St(h.timings,f.errors,!0);return{type:12,animation:Er(this,Je(h.animation),f),timings:C,options:null}}}class an{constructor(h){this.errors=h,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 on(v){return v?(v=vn(v)).params&&(v.params=function Mn(v){return v?vn(v):null}(v.params)):v={},v}function Pr(v,h,f){return{duration:v,delay:h,easing:f}}function vr(v,h,f,C,j,pe,Re=null,We=!1){return{type:1,element:v,keyframes:h,preStyleProps:f,postStyleProps:C,duration:j,delay:pe,totalTime:j+pe,easing:Re,subTimeline:We}}class Lr{constructor(){this._map=new Map}get(h){return this._map.get(h)||[]}append(h,f){let C=this._map.get(h);C||this._map.set(h,C=[]),C.push(...f)}has(h){return this._map.has(h)}clear(){this._map.clear()}}const Jn=new RegExp(":enter","g"),Ur=new RegExp(":leave","g");function ui(v,h,f,C,j,pe=new Map,Re=new Map,We,at,ht=[]){return(new Ai).buildKeyframes(v,h,f,C,j,pe,Re,We,at,ht)}class Ai{buildKeyframes(h,f,C,j,pe,Re,We,at,ht,Tt=[]){ht=ht||new Lr;const Ot=new Ui(h,f,ht,j,pe,Tt,[]);Ot.options=at;const gn=at.delay?et(at.delay):0;Ot.currentTimeline.delayNextStep(gn),Ot.currentTimeline.setStyles([Re],null,Ot.errors,at),Er(this,C,Ot);const Kt=Ot.timelines.filter(Jt=>Jt.containsAnimation());if(Kt.length&&We.size){let Jt;for(let mn=Kt.length-1;mn>=0;mn--){const An=Kt[mn];if(An.element===f){Jt=An;break}}Jt&&!Jt.allowOnlyTimelineStyles()&&Jt.setStyles([We],null,Ot.errors,at)}return Kt.length?Kt.map(Jt=>Jt.buildKeyframes()):[vr(f,[],[],[],0,gn,"",!1)]}visitTrigger(h,f){}visitState(h,f){}visitTransition(h,f){}visitAnimateChild(h,f){const C=f.subInstructions.get(f.element);if(C){const j=f.createSubContext(h.options),pe=f.currentTimeline.currentTime,Re=this._visitSubInstructions(C,j,j.options);pe!=Re&&f.transformIntoNewTimeline(Re)}f.previousNode=h}visitAnimateRef(h,f){const C=f.createSubContext(h.options);C.transformIntoNewTimeline(),this._applyAnimationRefDelays([h.options,h.animation.options],f,C),this.visitReference(h.animation,C),f.transformIntoNewTimeline(C.currentTimeline.currentTime),f.previousNode=h}_applyAnimationRefDelays(h,f,C){for(const j of h){const pe=j?.delay;if(pe){const Re="number"==typeof pe?pe:et(kt(pe,j?.params??{},f.errors));C.delayNextStep(Re)}}}_visitSubInstructions(h,f,C){let pe=f.currentTimeline.currentTime;const Re=null!=C.duration?et(C.duration):null,We=null!=C.delay?et(C.delay):null;return 0!==Re&&h.forEach(at=>{const ht=f.appendInstructionToTimeline(at,Re,We);pe=Math.max(pe,ht.duration+ht.delay)}),pe}visitReference(h,f){f.updateOptions(h.options,!0),Er(this,h.animation,f),f.previousNode=h}visitSequence(h,f){const C=f.subContextCount;let j=f;const pe=h.options;if(pe&&(pe.params||pe.delay)&&(j=f.createSubContext(pe),j.transformIntoNewTimeline(),null!=pe.delay)){6==j.previousNode.type&&(j.currentTimeline.snapshotCurrentStyles(),j.previousNode=Ln);const Re=et(pe.delay);j.delayNextStep(Re)}h.steps.length&&(h.steps.forEach(Re=>Er(this,Re,j)),j.currentTimeline.applyStylesToKeyframe(),j.subContextCount>C&&j.transformIntoNewTimeline()),f.previousNode=h}visitGroup(h,f){const C=[];let j=f.currentTimeline.currentTime;const pe=h.options&&h.options.delay?et(h.options.delay):0;h.steps.forEach(Re=>{const We=f.createSubContext(h.options);pe&&We.delayNextStep(pe),Er(this,Re,We),j=Math.max(j,We.currentTimeline.currentTime),C.push(We.currentTimeline)}),C.forEach(Re=>f.currentTimeline.mergeTimelineCollectedStyles(Re)),f.transformIntoNewTimeline(j),f.previousNode=h}_visitTiming(h,f){if(h.dynamic){const C=h.strValue;return St(f.params?kt(C,f.params,f.errors):C,f.errors)}return{duration:h.duration,delay:h.delay,easing:h.easing}}visitAnimate(h,f){const C=f.currentAnimateTimings=this._visitTiming(h.timings,f),j=f.currentTimeline;C.delay&&(f.incrementTime(C.delay),j.snapshotCurrentStyles());const pe=h.style;5==pe.type?this.visitKeyframes(pe,f):(f.incrementTime(C.duration),this.visitStyle(pe,f),j.applyStylesToKeyframe()),f.currentAnimateTimings=null,f.previousNode=h}visitStyle(h,f){const C=f.currentTimeline,j=f.currentAnimateTimings;!j&&C.hasCurrentStyleProperties()&&C.forwardFrame();const pe=j&&j.easing||h.easing;h.isEmptyStep?C.applyEmptyStep(pe):C.setStyles(h.styles,pe,f.errors,f.options),f.previousNode=h}visitKeyframes(h,f){const C=f.currentAnimateTimings,j=f.currentTimeline.duration,pe=C.duration,We=f.createSubContext().currentTimeline;We.easing=C.easing,h.styles.forEach(at=>{We.forwardTime((at.offset||0)*pe),We.setStyles(at.styles,at.easing,f.errors,f.options),We.applyStylesToKeyframe()}),f.currentTimeline.mergeTimelineCollectedStyles(We),f.transformIntoNewTimeline(j+pe),f.previousNode=h}visitQuery(h,f){const C=f.currentTimeline.currentTime,j=h.options||{},pe=j.delay?et(j.delay):0;pe&&(6===f.previousNode.type||0==C&&f.currentTimeline.hasCurrentStyleProperties())&&(f.currentTimeline.snapshotCurrentStyles(),f.previousNode=Ln);let Re=C;const We=f.invokeQuery(h.selector,h.originalSelector,h.limit,h.includeSelf,!!j.optional,f.errors);f.currentQueryTotal=We.length;let at=null;We.forEach((ht,Tt)=>{f.currentQueryIndex=Tt;const Ot=f.createSubContext(h.options,ht);pe&&Ot.delayNextStep(pe),ht===f.element&&(at=Ot.currentTimeline),Er(this,h.animation,Ot),Ot.currentTimeline.applyStylesToKeyframe(),Re=Math.max(Re,Ot.currentTimeline.currentTime)}),f.currentQueryIndex=0,f.currentQueryTotal=0,f.transformIntoNewTimeline(Re),at&&(f.currentTimeline.mergeTimelineCollectedStyles(at),f.currentTimeline.snapshotCurrentStyles()),f.previousNode=h}visitStagger(h,f){const C=f.parentContext,j=f.currentTimeline,pe=h.timings,Re=Math.abs(pe.duration),We=Re*(f.currentQueryTotal-1);let at=Re*f.currentQueryIndex;switch(pe.duration<0?"reverse":pe.easing){case"reverse":at=We-at;break;case"full":at=C.currentStaggerTime}const Tt=f.currentTimeline;at&&Tt.delayNextStep(at);const Ot=Tt.currentTime;Er(this,h.animation,f),f.previousNode=h,C.currentStaggerTime=j.currentTime-Ot+(j.startTime-C.currentTimeline.startTime)}}const Ln={};class Ui{constructor(h,f,C,j,pe,Re,We,at){this._driver=h,this.element=f,this.subInstructions=C,this._enterClassName=j,this._leaveClassName=pe,this.errors=Re,this.timelines=We,this.parentContext=null,this.currentAnimateTimings=null,this.previousNode=Ln,this.subContextCount=0,this.options={},this.currentQueryIndex=0,this.currentQueryTotal=0,this.currentStaggerTime=0,this.currentTimeline=at||new li(this._driver,f,0),We.push(this.currentTimeline)}get params(){return this.options.params}updateOptions(h,f){if(!h)return;const C=h;let j=this.options;null!=C.duration&&(j.duration=et(C.duration)),null!=C.delay&&(j.delay=et(C.delay));const pe=C.params;if(pe){let Re=j.params;Re||(Re=this.options.params={}),Object.keys(pe).forEach(We=>{(!f||!Re.hasOwnProperty(We))&&(Re[We]=kt(pe[We],Re,this.errors))})}}_copyOptions(){const h={};if(this.options){const f=this.options.params;if(f){const C=h.params={};Object.keys(f).forEach(j=>{C[j]=f[j]})}}return h}createSubContext(h=null,f,C){const j=f||this.element,pe=new Ui(this._driver,j,this.subInstructions,this._enterClassName,this._leaveClassName,this.errors,this.timelines,this.currentTimeline.fork(j,C||0));return pe.previousNode=this.previousNode,pe.currentAnimateTimings=this.currentAnimateTimings,pe.options=this._copyOptions(),pe.updateOptions(h),pe.currentQueryIndex=this.currentQueryIndex,pe.currentQueryTotal=this.currentQueryTotal,pe.parentContext=this,this.subContextCount++,pe}transformIntoNewTimeline(h){return this.previousNode=Ln,this.currentTimeline=this.currentTimeline.fork(this.element,h),this.timelines.push(this.currentTimeline),this.currentTimeline}appendInstructionToTimeline(h,f,C){const j={duration:f??h.duration,delay:this.currentTimeline.currentTime+(C??0)+h.delay,easing:""},pe=new uo(this._driver,h.element,h.keyframes,h.preStyleProps,h.postStyleProps,j,h.stretchStartingKeyframe);return this.timelines.push(pe),j}incrementTime(h){this.currentTimeline.forwardTime(this.currentTimeline.duration+h)}delayNextStep(h){h>0&&this.currentTimeline.delayNextStep(h)}invokeQuery(h,f,C,j,pe,Re){let We=[];if(j&&We.push(this.element),h.length>0){h=(h=h.replace(Jn,"."+this._enterClassName)).replace(Ur,"."+this._leaveClassName);let ht=this._driver.query(this.element,h,1!=C);0!==C&&(ht=C<0?ht.slice(ht.length+C,ht.length):ht.slice(0,C)),We.push(...ht)}return!pe&&0==We.length&&Re.push(function W(v){return new b.vHH(3014,!1)}()),We}}class li{constructor(h,f,C,j){this._driver=h,this.element=f,this.startTime=C,this._elementTimelineStylesLookup=j,this.duration=0,this.easing=null,this._previousKeyframe=new Map,this._currentKeyframe=new Map,this._keyframes=new Map,this._styleSummary=new Map,this._localTimelineStyles=new Map,this._pendingStyles=new Map,this._backFill=new Map,this._currentEmptyStepKeyframe=null,this._elementTimelineStylesLookup||(this._elementTimelineStylesLookup=new Map),this._globalTimelineStyles=this._elementTimelineStylesLookup.get(f),this._globalTimelineStyles||(this._globalTimelineStyles=this._localTimelineStyles,this._elementTimelineStylesLookup.set(f,this._localTimelineStyles)),this._loadKeyframe()}containsAnimation(){switch(this._keyframes.size){case 0:return!1;case 1:return this.hasCurrentStyleProperties();default:return!0}}hasCurrentStyleProperties(){return this._currentKeyframe.size>0}get currentTime(){return this.startTime+this.duration}delayNextStep(h){const f=1===this._keyframes.size&&this._pendingStyles.size;this.duration||f?(this.forwardTime(this.currentTime+h),f&&this.snapshotCurrentStyles()):this.startTime+=h}fork(h,f){return this.applyStylesToKeyframe(),new li(this._driver,h,f||this.currentTime,this._elementTimelineStylesLookup)}_loadKeyframe(){this._currentKeyframe&&(this._previousKeyframe=this._currentKeyframe),this._currentKeyframe=this._keyframes.get(this.duration),this._currentKeyframe||(this._currentKeyframe=new Map,this._keyframes.set(this.duration,this._currentKeyframe))}forwardFrame(){this.duration+=1,this._loadKeyframe()}forwardTime(h){this.applyStylesToKeyframe(),this.duration=h,this._loadKeyframe()}_updateStyle(h,f){this._localTimelineStyles.set(h,f),this._globalTimelineStyles.set(h,f),this._styleSummary.set(h,{time:this.currentTime,value:f})}allowOnlyTimelineStyles(){return this._currentEmptyStepKeyframe!==this._currentKeyframe}applyEmptyStep(h){h&&this._previousKeyframe.set("easing",h);for(let[f,C]of this._globalTimelineStyles)this._backFill.set(f,C||y.l3),this._currentKeyframe.set(f,y.l3);this._currentEmptyStepKeyframe=this._currentKeyframe}setStyles(h,f,C,j){f&&this._previousKeyframe.set("easing",f);const pe=j&&j.params||{},Re=function Eo(v,h){const f=new Map;let C;return v.forEach(j=>{if("*"===j){C=C||h.keys();for(let pe of C)f.set(pe,y.l3)}else Yn(j,f)}),f}(h,this._globalTimelineStyles);for(let[We,at]of Re){const ht=kt(at,pe,C);this._pendingStyles.set(We,ht),this._localTimelineStyles.has(We)||this._backFill.set(We,this._globalTimelineStyles.get(We)??y.l3),this._updateStyle(We,ht)}}applyStylesToKeyframe(){0!=this._pendingStyles.size&&(this._pendingStyles.forEach((h,f)=>{this._currentKeyframe.set(f,h)}),this._pendingStyles.clear(),this._localTimelineStyles.forEach((h,f)=>{this._currentKeyframe.has(f)||this._currentKeyframe.set(f,h)}))}snapshotCurrentStyles(){for(let[h,f]of this._localTimelineStyles)this._pendingStyles.set(h,f),this._updateStyle(h,f)}getFinalKeyframe(){return this._keyframes.get(this.duration)}get properties(){const h=[];for(let f in this._currentKeyframe)h.push(f);return h}mergeTimelineCollectedStyles(h){h._styleSummary.forEach((f,C)=>{const j=this._styleSummary.get(C);(!j||f.time>j.time)&&this._updateStyle(C,f.value)})}buildKeyframes(){this.applyStylesToKeyframe();const h=new Set,f=new Set,C=1===this._keyframes.size&&0===this.duration;let j=[];this._keyframes.forEach((We,at)=>{const ht=Yn(We,new Map,this._backFill);ht.forEach((Tt,Ot)=>{Tt===y.k1?h.add(Ot):Tt===y.l3&&f.add(Ot)}),C||ht.set("offset",at/this.duration),j.push(ht)});const pe=h.size?Vt(h.values()):[],Re=f.size?Vt(f.values()):[];if(C){const We=j[0],at=new Map(We);We.set("offset",0),at.set("offset",1),j=[We,at]}return vr(this.element,j,pe,Re,this.duration,this.startTime,this.easing,!1)}}class uo extends li{constructor(h,f,C,j,pe,Re,We=!1){super(h,f,Re.delay),this.keyframes=C,this.preStyleProps=j,this.postStyleProps=pe,this._stretchStartingKeyframe=We,this.timings={duration:Re.duration,delay:Re.delay,easing:Re.easing}}containsAnimation(){return this.keyframes.length>1}buildKeyframes(){let h=this.keyframes,{delay:f,duration:C,easing:j}=this.timings;if(this._stretchStartingKeyframe&&f){const pe=[],Re=C+f,We=f/Re,at=Yn(h[0]);at.set("offset",0),pe.push(at);const ht=Yn(h[0]);ht.set("offset",ki(We)),pe.push(ht);const Tt=h.length-1;for(let Ot=1;Ot<=Tt;Ot++){let gn=Yn(h[Ot]);const Kt=gn.get("offset");gn.set("offset",ki((f+Kt*C)/Re)),pe.push(gn)}C=Re,f=0,j="",h=pe}return vr(this.element,h,this.preStyleProps,this.postStyleProps,C,f,j,!0)}}function ki(v,h=3){const f=Math.pow(10,h-1);return Math.round(v*f)/f}class Ar{}const kr=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 Mr extends Ar{normalizePropertyName(h,f){return $n(h)}normalizeStyleValue(h,f,C,j){let pe="";const Re=C.toString().trim();if(kr.has(f)&&0!==C&&"0"!==C)if("number"==typeof C)pe="px";else{const We=C.match(/^[+-]?[\d\.]+([a-z]*)$/);We&&0==We[1].length&&j.push(function de(v,h){return new b.vHH(3005,!1)}())}return Re+pe}}function Co(v,h,f,C,j,pe,Re,We,at,ht,Tt,Ot,gn){return{type:0,element:v,triggerName:h,isRemovalTransition:j,fromState:f,fromStyles:pe,toState:C,toStyles:Re,timelines:We,queriedElements:at,preStyleProps:ht,postStyleProps:Tt,totalTime:Ot,errors:gn}}const Tr={};class Ki{constructor(h,f,C){this._triggerName=h,this.ast=f,this._stateStyles=C}match(h,f,C,j){return function Yi(v,h,f,C,j){return v.some(pe=>pe(h,f,C,j))}(this.ast.matchers,h,f,C,j)}buildStyles(h,f,C){let j=this._stateStyles.get("*");return void 0!==h&&(j=this._stateStyles.get(h?.toString())||j),j?j.buildStyles(f,C):new Map}build(h,f,C,j,pe,Re,We,at,ht,Tt){const Ot=[],gn=this.ast.options&&this.ast.options.params||Tr,Jt=this.buildStyles(C,We&&We.params||Tr,Ot),mn=at&&at.params||Tr,An=this.buildStyles(j,mn,Ot),Wn=new Set,dr=new Map,Sr=new Map,Cr="void"===j,wi={params:Bo(mn,gn),delay:this.ast.options?.delay},Xr=Tt?[]:ui(h,f,this.ast.animation,pe,Re,Jt,An,wi,ht,Ot);let ei=0;if(Xr.forEach(Gr=>{ei=Math.max(Gr.duration+Gr.delay,ei)}),Ot.length)return Co(f,this._triggerName,C,j,Cr,Jt,An,[],[],dr,Sr,ei,Ot);Xr.forEach(Gr=>{const Ei=Gr.element,hs=wn(dr,Ei,new Set);Gr.preStyleProps.forEach(gi=>hs.add(gi));const yo=wn(Sr,Ei,new Set);Gr.postStyleProps.forEach(gi=>yo.add(gi)),Ei!==f&&Wn.add(Ei)});const Mi=Vt(Wn.values());return Co(f,this._triggerName,C,j,Cr,Jt,An,Xr,Mi,dr,Sr,ei)}}function Bo(v,h){const f=vn(h);for(const C in v)v.hasOwnProperty(C)&&null!=v[C]&&(f[C]=v[C]);return f}class fi{constructor(h,f,C){this.styles=h,this.defaultParams=f,this.normalizer=C}buildStyles(h,f){const C=new Map,j=vn(this.defaultParams);return Object.keys(h).forEach(pe=>{const Re=h[pe];null!==Re&&(j[pe]=Re)}),this.styles.styles.forEach(pe=>{"string"!=typeof pe&&pe.forEach((Re,We)=>{Re&&(Re=kt(Re,j,f));const at=this.normalizer.normalizePropertyName(We,f);Re=this.normalizer.normalizeStyleValue(We,at,Re,f),C.set(We,Re)})}),C}}class lo{constructor(h,f,C){this.name=h,this.ast=f,this._normalizer=C,this.transitionFactories=[],this.states=new Map,f.states.forEach(j=>{this.states.set(j.name,new fi(j.style,j.options&&j.options.params||{},C))}),Do(this.states,"true","1"),Do(this.states,"false","0"),f.transitions.forEach(j=>{this.transitionFactories.push(new Ki(h,j,this.states))}),this.fallbackTransition=function Io(v,h,f){return new Ki(v,{type:1,animation:{type:2,steps:[],options:null},matchers:[(Re,We)=>!0],options:null,queryCount:0,depCount:0},h)}(h,this.states)}get containsQueries(){return this.ast.queryCount>0}matchTransition(h,f,C,j){return this.transitionFactories.find(Re=>Re.match(h,f,C,j))||null}matchStyles(h,f,C){return this.fallbackTransition.buildStyles(h,f,C)}}function Do(v,h,f){v.has(h)?v.has(f)||v.set(f,v.get(h)):v.has(f)&&v.set(h,v.get(f))}const Bi=new Lr;class ns{constructor(h,f,C){this.bodyNode=h,this._driver=f,this._normalizer=C,this._animations=new Map,this._playersById=new Map,this.players=[]}register(h,f){const C=[],j=[],pe=Ct(this._driver,f,C,j);if(C.length)throw function we(v){return new b.vHH(3503,!1)}();this._animations.set(h,pe)}_buildPlayer(h,f,C){const j=h.element,pe=jt(0,this._normalizer,0,h.keyframes,f,C);return this._driver.animate(j,pe,h.duration,h.delay,h.easing,[],!0)}create(h,f,C={}){const j=[],pe=this._animations.get(h);let Re;const We=new Map;if(pe?(Re=ui(this._driver,f,pe,nr,er,new Map,new Map,C,Bi,j),Re.forEach(Tt=>{const Ot=wn(We,Tt.element,new Map);Tt.postStyleProps.forEach(gn=>Ot.set(gn,null))})):(j.push(function Ge(){return new b.vHH(3300,!1)}()),Re=[]),j.length)throw function ke(v){return new b.vHH(3504,!1)}();We.forEach((Tt,Ot)=>{Tt.forEach((gn,Kt)=>{Tt.set(Kt,this._driver.computeStyle(Ot,Kt,y.l3))})});const ht=Ut(Re.map(Tt=>{const Ot=We.get(Tt.element);return this._buildPlayer(Tt,new Map,Ot)}));return this._playersById.set(h,ht),ht.onDestroy(()=>this.destroy(h)),this.players.push(ht),ht}destroy(h){const f=this._getPlayer(h);f.destroy(),this._playersById.delete(h);const C=this.players.indexOf(f);C>=0&&this.players.splice(C,1)}_getPlayer(h){const f=this._playersById.get(h);if(!f)throw function ve(v){return new b.vHH(3301,!1)}();return f}listen(h,f,C,j){const pe=Tn(f,"","","");return hn(this._getPlayer(h),C,pe,j),()=>{}}command(h,f,C,j){if("register"==C)return void this.register(h,j[0]);if("create"==C)return void this.create(h,f,j[0]||{});const pe=this._getPlayer(h);switch(C){case"play":pe.play();break;case"pause":pe.pause();break;case"reset":pe.reset();break;case"restart":pe.restart();break;case"finish":pe.finish();break;case"init":pe.init();break;case"setPosition":pe.setPosition(parseFloat(j[0]));break;case"destroy":this.destroy(h)}}}const Cs="ng-animate-queued",xo="ng-animate-disabled",Is=[],Ao={namespaceId:"",setForRemoval:!1,setForMove:!1,hasAnimation:!1,removedBeforeQueried:!1},co={namespaceId:"",setForMove:!1,setForRemoval:!1,hasAnimation:!1,removedBeforeQueried:!0},Qr="__ng_removed";class Ti{get params(){return this.options.params}constructor(h,f=""){this.namespaceId=f;const C=h&&h.hasOwnProperty("value");if(this.value=function Hi(v){return v??null}(C?h.value:h),C){const pe=vn(h);delete pe.value,this.options=pe}else this.options={};this.options.params||(this.options.params={})}absorbOptions(h){const f=h.params;if(f){const C=this.options.params;Object.keys(f).forEach(j=>{null==C[j]&&(C[j]=f[j])})}}}const Pi="void",Jr=new Ti(Pi);class is{constructor(h,f,C){this.id=h,this.hostElement=f,this._engine=C,this.players=[],this._triggers=new Map,this._queue=[],this._elementListeners=new Map,this._hostClassName="ng-tns-"+h,tr(f,this._hostClassName)}listen(h,f,C,j){if(!this._triggers.has(f))throw function ze(v,h){return new b.vHH(3302,!1)}();if(null==C||0==C.length)throw function Ie(v){return new b.vHH(3303,!1)}();if(!function Ji(v){return"start"==v||"done"==v}(C))throw function ft(v,h){return new b.vHH(3400,!1)}();const pe=wn(this._elementListeners,h,[]),Re={name:f,phase:C,callback:j};pe.push(Re);const We=wn(this._engine.statesByElement,h,new Map);return We.has(f)||(tr(h,or),tr(h,or+"-"+f),We.set(f,Jr)),()=>{this._engine.afterFlush(()=>{const at=pe.indexOf(Re);at>=0&&pe.splice(at,1),this._triggers.has(f)||We.delete(f)})}}register(h,f){return!this._triggers.has(h)&&(this._triggers.set(h,f),!0)}_getTrigger(h){const f=this._triggers.get(h);if(!f)throw function pt(v){return new b.vHH(3401,!1)}();return f}trigger(h,f,C,j=!0){const pe=this._getTrigger(f),Re=new Qi(this.id,f,h);let We=this._engine.statesByElement.get(h);We||(tr(h,or),tr(h,or+"-"+f),this._engine.statesByElement.set(h,We=new Map));let at=We.get(f);const ht=new Ti(C,this.id);if(!(C&&C.hasOwnProperty("value"))&&at&&ht.absorbOptions(at.options),We.set(f,ht),at||(at=Jr),ht.value!==Pi&&at.value===ht.value){if(!function ho(v,h){const f=Object.keys(v),C=Object.keys(h);if(f.length!=C.length)return!1;for(let j=0;j<f.length;j++){const pe=f[j];if(!h.hasOwnProperty(pe)||v[pe]!==h[pe])return!1}return!0}(at.params,ht.params)){const mn=[],An=pe.matchStyles(at.value,at.params,mn),Wn=pe.matchStyles(ht.value,ht.params,mn);mn.length?this._engine.reportError(mn):this._engine.afterFlush(()=>{ue(h,An),J(h,Wn)})}return}const gn=wn(this._engine.playersByElement,h,[]);gn.forEach(mn=>{mn.namespaceId==this.id&&mn.triggerName==f&&mn.queued&&mn.destroy()});let Kt=pe.matchTransition(at.value,ht.value,h,ht.params),Jt=!1;if(!Kt){if(!j)return;Kt=pe.fallbackTransition,Jt=!0}return this._engine.totalQueuedPlayers++,this._queue.push({element:h,triggerName:f,transition:Kt,fromState:at,toState:ht,player:Re,isFallbackTransition:Jt}),Jt||(tr(h,Cs),Re.onStart(()=>{fo(h,Cs)})),Re.onDone(()=>{let mn=this.players.indexOf(Re);mn>=0&&this.players.splice(mn,1);const An=this._engine.playersByElement.get(h);if(An){let Wn=An.indexOf(Re);Wn>=0&&An.splice(Wn,1)}}),this.players.push(Re),gn.push(Re),Re}deregister(h){this._triggers.delete(h),this._engine.statesByElement.forEach(f=>f.delete(h)),this._elementListeners.forEach((f,C)=>{this._elementListeners.set(C,f.filter(j=>j.name!=h))})}clearElementCache(h){this._engine.statesByElement.delete(h),this._elementListeners.delete(h);const f=this._engine.playersByElement.get(h);f&&(f.forEach(C=>C.destroy()),this._engine.playersByElement.delete(h))}_signalRemovalForInnerTriggers(h,f){const C=this._engine.driver.query(h,Vn,!0);C.forEach(j=>{if(j[Qr])return;const pe=this._engine.fetchNamespacesByElement(j);pe.size?pe.forEach(Re=>Re.triggerLeaveAnimation(j,f,!1,!0)):this.clearElementCache(j)}),this._engine.afterFlushAnimationsDone(()=>C.forEach(j=>this.clearElementCache(j)))}triggerLeaveAnimation(h,f,C,j){const pe=this._engine.statesByElement.get(h),Re=new Map;if(pe){const We=[];if(pe.forEach((at,ht)=>{if(Re.set(ht,at.value),this._triggers.has(ht)){const Tt=this.trigger(h,ht,Pi,j);Tt&&We.push(Tt)}}),We.length)return this._engine.markElementAsRemoved(this.id,h,!0,f,Re),C&&Ut(We).onDone(()=>this._engine.processLeaveNode(h)),!0}return!1}prepareLeaveAnimationListeners(h){const f=this._elementListeners.get(h),C=this._engine.statesByElement.get(h);if(f&&C){const j=new Set;f.forEach(pe=>{const Re=pe.name;if(j.has(Re))return;j.add(Re);const at=this._triggers.get(Re).fallbackTransition,ht=C.get(Re)||Jr,Tt=new Ti(Pi),Ot=new Qi(this.id,Re,h);this._engine.totalQueuedPlayers++,this._queue.push({element:h,triggerName:Re,transition:at,fromState:ht,toState:Tt,player:Ot,isFallbackTransition:!0})})}}removeNode(h,f){const C=this._engine;if(h.childElementCount&&this._signalRemovalForInnerTriggers(h,f),this.triggerLeaveAnimation(h,f,!0))return;let j=!1;if(C.totalAnimations){const pe=C.players.length?C.playersByQueriedElement.get(h):[];if(pe&&pe.length)j=!0;else{let Re=h;for(;Re=Re.parentNode;)if(C.statesByElement.get(Re)){j=!0;break}}}if(this.prepareLeaveAnimationListeners(h),j)C.markElementAsRemoved(this.id,h,!1,f);else{const pe=h[Qr];(!pe||pe===Ao)&&(C.afterFlush(()=>this.clearElementCache(h)),C.destroyInnerAnimations(h),C._onRemovalComplete(h,f))}}insertNode(h,f){tr(h,this._hostClassName)}drainQueuedTransitions(h){const f=[];return this._queue.forEach(C=>{const j=C.player;if(j.destroyed)return;const pe=C.element,Re=this._elementListeners.get(pe);Re&&Re.forEach(We=>{if(We.name==C.triggerName){const at=Tn(pe,C.triggerName,C.fromState.value,C.toState.value);at._data=h,hn(C.player,We.phase,at,We.callback)}}),j.markedForDestroy?this._engine.afterFlush(()=>{j.destroy()}):f.push(C)}),this._queue=[],f.sort((C,j)=>{const pe=C.transition.ast.depCount,Re=j.transition.ast.depCount;return 0==pe||0==Re?pe-Re:this._engine.driver.containsElement(C.element,j.element)?1:-1})}destroy(h){this.players.forEach(f=>f.destroy()),this._signalRemovalForInnerTriggers(this.hostElement,h)}elementContainsData(h){let f=!1;return this._elementListeners.has(h)&&(f=!0),f=!!this._queue.find(C=>C.element===h)||f,f}}class To{_onRemovalComplete(h,f){this.onRemovalComplete(h,f)}constructor(h,f,C){this.bodyNode=h,this.driver=f,this._normalizer=C,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=(j,pe)=>{}}get queuedPlayers(){const h=[];return this._namespaceList.forEach(f=>{f.players.forEach(C=>{C.queued&&h.push(C)})}),h}createNamespace(h,f){const C=new is(h,f,this);return this.bodyNode&&this.driver.containsElement(this.bodyNode,f)?this._balanceNamespaceList(C,f):(this.newHostElements.set(f,C),this.collectEnterElement(f)),this._namespaceLookup[h]=C}_balanceNamespaceList(h,f){const C=this._namespaceList,j=this.namespacesByHostElement;if(C.length-1>=0){let Re=!1,We=this.driver.getParentElement(f);for(;We;){const at=j.get(We);if(at){const ht=C.indexOf(at);C.splice(ht+1,0,h),Re=!0;break}We=this.driver.getParentElement(We)}Re||C.unshift(h)}else C.push(h);return j.set(f,h),h}register(h,f){let C=this._namespaceLookup[h];return C||(C=this.createNamespace(h,f)),C}registerTrigger(h,f,C){let j=this._namespaceLookup[h];j&&j.register(f,C)&&this.totalAnimations++}destroy(h,f){if(!h)return;const C=this._fetchNamespace(h);this.afterFlush(()=>{this.namespacesByHostElement.delete(C.hostElement),delete this._namespaceLookup[h];const j=this._namespaceList.indexOf(C);j>=0&&this._namespaceList.splice(j,1)}),this.afterFlushAnimationsDone(()=>C.destroy(f))}_fetchNamespace(h){return this._namespaceLookup[h]}fetchNamespacesByElement(h){const f=new Set,C=this.statesByElement.get(h);if(C)for(let j of C.values())if(j.namespaceId){const pe=this._fetchNamespace(j.namespaceId);pe&&f.add(pe)}return f}trigger(h,f,C,j){if(vi(f)){const pe=this._fetchNamespace(h);if(pe)return pe.trigger(f,C,j),!0}return!1}insertNode(h,f,C,j){if(!vi(f))return;const pe=f[Qr];if(pe&&pe.setForRemoval){pe.setForRemoval=!1,pe.setForMove=!0;const Re=this.collectedLeaveElements.indexOf(f);Re>=0&&this.collectedLeaveElements.splice(Re,1)}if(h){const Re=this._fetchNamespace(h);Re&&Re.insertNode(f,C)}j&&this.collectEnterElement(f)}collectEnterElement(h){this.collectedEnterElements.push(h)}markElementAsDisabled(h,f){f?this.disabledNodes.has(h)||(this.disabledNodes.add(h),tr(h,xo)):this.disabledNodes.has(h)&&(this.disabledNodes.delete(h),fo(h,xo))}removeNode(h,f,C,j){if(vi(f)){const pe=h?this._fetchNamespace(h):null;if(pe?pe.removeNode(f,j):this.markElementAsRemoved(h,f,!1,j),C){const Re=this.namespacesByHostElement.get(f);Re&&Re.id!==h&&Re.removeNode(f,j)}}else this._onRemovalComplete(f,j)}markElementAsRemoved(h,f,C,j,pe){this.collectedLeaveElements.push(f),f[Qr]={namespaceId:h,setForRemoval:j,hasAnimation:C,removedBeforeQueried:!1,previousTriggersValues:pe}}listen(h,f,C,j,pe){return vi(f)?this._fetchNamespace(h).listen(f,C,j,pe):()=>{}}_buildInstruction(h,f,C,j,pe){return h.transition.build(this.driver,h.element,h.fromState.value,h.toState.value,C,j,h.fromState.options,h.toState.options,f,pe)}destroyInnerAnimations(h){let f=this.driver.query(h,Vn,!0);f.forEach(C=>this.destroyActiveAnimationsForElement(C)),0!=this.playersByQueriedElement.size&&(f=this.driver.query(h,qe,!0),f.forEach(C=>this.finishActiveQueriedAnimationOnElement(C)))}destroyActiveAnimationsForElement(h){const f=this.playersByElement.get(h);f&&f.forEach(C=>{C.queued?C.markedForDestroy=!0:C.destroy()})}finishActiveQueriedAnimationOnElement(h){const f=this.playersByQueriedElement.get(h);f&&f.forEach(C=>C.finish())}whenRenderingDone(){return new Promise(h=>{if(this.players.length)return Ut(this.players).onDone(()=>h());h()})}processLeaveNode(h){const f=h[Qr];if(f&&f.setForRemoval){if(h[Qr]=Ao,f.namespaceId){this.destroyInnerAnimations(h);const C=this._fetchNamespace(f.namespaceId);C&&C.clearElementCache(h)}this._onRemovalComplete(h,f.setForRemoval)}h.classList?.contains(xo)&&this.markElementAsDisabled(h,!1),this.driver.query(h,".ng-animate-disabled",!0).forEach(C=>{this.markElementAsDisabled(C,!1)})}flush(h=-1){let f=[];if(this.newHostElements.size&&(this.newHostElements.forEach((C,j)=>this._balanceNamespaceList(C,j)),this.newHostElements.clear()),this.totalAnimations&&this.collectedEnterElements.length)for(let C=0;C<this.collectedEnterElements.length;C++)tr(this.collectedEnterElements[C],"ng-star-inserted");if(this._namespaceList.length&&(this.totalQueuedPlayers||this.collectedLeaveElements.length)){const C=[];try{f=this._flushAnimations(C,h)}finally{for(let j=0;j<C.length;j++)C[j]()}}else for(let C=0;C<this.collectedLeaveElements.length;C++)this.processLeaveNode(this.collectedLeaveElements[C]);if(this.totalQueuedPlayers=0,this.collectedEnterElements.length=0,this.collectedLeaveElements.length=0,this._flushFns.forEach(C=>C()),this._flushFns=[],this._whenQuietFns.length){const C=this._whenQuietFns;this._whenQuietFns=[],f.length?Ut(f).onDone(()=>{C.forEach(j=>j())}):C.forEach(j=>j())}}reportError(h){throw function mt(v){return new b.vHH(3402,!1)}()}_flushAnimations(h,f){const C=new Lr,j=[],pe=new Map,Re=[],We=new Map,at=new Map,ht=new Map,Tt=new Set;this.disabledNodes.forEach(sn=>{Tt.add(sn);const yn=this.driver.query(sn,".ng-animate-queued",!0);for(let fn=0;fn<yn.length;fn++)Tt.add(yn[fn])});const Ot=this.bodyNode,gn=Array.from(this.statesByElement.keys()),Kt=zo(gn,this.collectedEnterElements),Jt=new Map;let mn=0;Kt.forEach((sn,yn)=>{const fn=nr+mn++;Jt.set(yn,fn),sn.forEach(Kn=>tr(Kn,fn))});const An=[],Wn=new Set,dr=new Set;for(let sn=0;sn<this.collectedLeaveElements.length;sn++){const yn=this.collectedLeaveElements[sn],fn=yn[Qr];fn&&fn.setForRemoval&&(An.push(yn),Wn.add(yn),fn.hasAnimation?this.driver.query(yn,".ng-star-inserted",!0).forEach(Kn=>Wn.add(Kn)):dr.add(yn))}const Sr=new Map,Cr=zo(gn,Array.from(Wn));Cr.forEach((sn,yn)=>{const fn=er+mn++;Sr.set(yn,fn),sn.forEach(Kn=>tr(Kn,fn))}),h.push(()=>{Kt.forEach((sn,yn)=>{const fn=Jt.get(yn);sn.forEach(Kn=>fo(Kn,fn))}),Cr.forEach((sn,yn)=>{const fn=Sr.get(yn);sn.forEach(Kn=>fo(Kn,fn))}),An.forEach(sn=>{this.processLeaveNode(sn)})});const wi=[],Xr=[];for(let sn=this._namespaceList.length-1;sn>=0;sn--)this._namespaceList[sn].drainQueuedTransitions(f).forEach(fn=>{const Kn=fn.player,Ir=fn.element;if(wi.push(Kn),this.collectedEnterElements.length){const Wr=Ir[Qr];if(Wr&&Wr.setForMove){if(Wr.previousTriggersValues&&Wr.previousTriggersValues.has(fn.triggerName)){const vo=Wr.previousTriggersValues.get(fn.triggerName),mi=this.statesByElement.get(fn.element);if(mi&&mi.has(fn.triggerName)){const Vr=mi.get(fn.triggerName);Vr.value=vo,mi.set(fn.triggerName,Vr)}}return void Kn.destroy()}}const Si=!Ot||!this.driver.containsElement(Ot,Ir),$r=Sr.get(Ir),Gi=Jt.get(Ir),gr=this._buildInstruction(fn,C,Gi,$r,Si);if(gr.errors&&gr.errors.length)return void Xr.push(gr);if(Si)return Kn.onStart(()=>ue(Ir,gr.fromStyles)),Kn.onDestroy(()=>J(Ir,gr.toStyles)),void j.push(Kn);if(fn.isFallbackTransition)return Kn.onStart(()=>ue(Ir,gr.fromStyles)),Kn.onDestroy(()=>J(Ir,gr.toStyles)),void j.push(Kn);const Rs=[];gr.timelines.forEach(Wr=>{Wr.stretchStartingKeyframe=!0,this.disabledNodes.has(Wr.element)||Rs.push(Wr)}),gr.timelines=Rs,C.append(Ir,gr.timelines),Re.push({instruction:gr,player:Kn,element:Ir}),gr.queriedElements.forEach(Wr=>wn(We,Wr,[]).push(Kn)),gr.preStyleProps.forEach((Wr,vo)=>{if(Wr.size){let mi=at.get(vo);mi||at.set(vo,mi=new Set),Wr.forEach((Vr,_o)=>mi.add(_o))}}),gr.postStyleProps.forEach((Wr,vo)=>{let mi=ht.get(vo);mi||ht.set(vo,mi=new Set),Wr.forEach((Vr,_o)=>mi.add(_o))})});if(Xr.length){const sn=[];Xr.forEach(yn=>{sn.push(function Pt(v,h){return new b.vHH(3505,!1)}())}),wi.forEach(yn=>yn.destroy()),this.reportError(sn)}const ei=new Map,Mi=new Map;Re.forEach(sn=>{const yn=sn.element;C.has(yn)&&(Mi.set(yn,yn),this._beforeAnimationBuild(sn.player.namespaceId,sn.instruction,ei))}),j.forEach(sn=>{const yn=sn.element;this._getPreviousPlayers(yn,!1,sn.namespaceId,sn.triggerName,null).forEach(Kn=>{wn(ei,yn,[]).push(Kn),Kn.destroy()})});const Gr=An.filter(sn=>jr(sn,at,ht)),Ei=new Map;_i(Ei,this.driver,dr,ht,y.l3).forEach(sn=>{jr(sn,at,ht)&&Gr.push(sn)});const yo=new Map;Kt.forEach((sn,yn)=>{_i(yo,this.driver,new Set(sn),at,y.k1)}),Gr.forEach(sn=>{const yn=Ei.get(sn),fn=yo.get(sn);Ei.set(sn,new Map([...Array.from(yn?.entries()??[]),...Array.from(fn?.entries()??[])]))});const gi=[],Ms=[],Os={};Re.forEach(sn=>{const{element:yn,player:fn,instruction:Kn}=sn;if(C.has(yn)){if(Tt.has(yn))return fn.onDestroy(()=>J(yn,Kn.toStyles)),fn.disabled=!0,fn.overrideTotalTime(Kn.totalTime),void j.push(fn);let Ir=Os;if(Mi.size>1){let $r=yn;const Gi=[];for(;$r=$r.parentNode;){const gr=Mi.get($r);if(gr){Ir=gr;break}Gi.push($r)}Gi.forEach(gr=>Mi.set(gr,Ir))}const Si=this._buildAnimation(fn.namespaceId,Kn,ei,pe,yo,Ei);if(fn.setRealPlayer(Si),Ir===Os)gi.push(fn);else{const $r=this.playersByElement.get(Ir);$r&&$r.length&&(fn.parentPlayer=Ut($r)),j.push(fn)}}else ue(yn,Kn.fromStyles),fn.onDestroy(()=>J(yn,Kn.toStyles)),Ms.push(fn),Tt.has(yn)&&j.push(fn)}),Ms.forEach(sn=>{const yn=pe.get(sn.element);if(yn&&yn.length){const fn=Ut(yn);sn.setRealPlayer(fn)}}),j.forEach(sn=>{sn.parentPlayer?sn.syncPlayerEvents(sn.parentPlayer):sn.destroy()});for(let sn=0;sn<An.length;sn++){const yn=An[sn],fn=yn[Qr];if(fo(yn,er),fn&&fn.hasAnimation)continue;let Kn=[];if(We.size){let Si=We.get(yn);Si&&Si.length&&Kn.push(...Si);let $r=this.driver.query(yn,qe,!0);for(let Gi=0;Gi<$r.length;Gi++){let gr=We.get($r[Gi]);gr&&gr.length&&Kn.push(...gr)}}const Ir=Kn.filter(Si=>!Si.destroyed);Ir.length?ss(this,yn,Ir):this.processLeaveNode(yn)}return An.length=0,gi.forEach(sn=>{this.players.push(sn),sn.onDone(()=>{sn.destroy();const yn=this.players.indexOf(sn);this.players.splice(yn,1)}),sn.play()}),gi}elementContainsData(h,f){let C=!1;const j=f[Qr];return j&&j.setForRemoval&&(C=!0),this.playersByElement.has(f)&&(C=!0),this.playersByQueriedElement.has(f)&&(C=!0),this.statesByElement.has(f)&&(C=!0),this._fetchNamespace(h).elementContainsData(f)||C}afterFlush(h){this._flushFns.push(h)}afterFlushAnimationsDone(h){this._whenQuietFns.push(h)}_getPreviousPlayers(h,f,C,j,pe){let Re=[];if(f){const We=this.playersByQueriedElement.get(h);We&&(Re=We)}else{const We=this.playersByElement.get(h);if(We){const at=!pe||pe==Pi;We.forEach(ht=>{ht.queued||!at&&ht.triggerName!=j||Re.push(ht)})}}return(C||j)&&(Re=Re.filter(We=>!(C&&C!=We.namespaceId||j&&j!=We.triggerName))),Re}_beforeAnimationBuild(h,f,C){const pe=f.element,Re=f.isRemovalTransition?void 0:h,We=f.isRemovalTransition?void 0:f.triggerName;for(const at of f.timelines){const ht=at.element,Tt=ht!==pe,Ot=wn(C,ht,[]);this._getPreviousPlayers(ht,Tt,Re,We,f.toState).forEach(Kt=>{const Jt=Kt.getRealPlayer();Jt.beforeDestroy&&Jt.beforeDestroy(),Kt.destroy(),Ot.push(Kt)})}ue(pe,f.fromStyles)}_buildAnimation(h,f,C,j,pe,Re){const We=f.triggerName,at=f.element,ht=[],Tt=new Set,Ot=new Set,gn=f.timelines.map(Jt=>{const mn=Jt.element;Tt.add(mn);const An=mn[Qr];if(An&&An.removedBeforeQueried)return new y.ZN(Jt.duration,Jt.delay);const Wn=mn!==at,dr=function Or(v){const h=[];return Zs(v,h),h}((C.get(mn)||Is).map(ei=>ei.getRealPlayer())).filter(ei=>!!ei.element&&ei.element===mn),Sr=pe.get(mn),Cr=Re.get(mn),wi=jt(0,this._normalizer,0,Jt.keyframes,Sr,Cr),Xr=this._buildPlayer(Jt,wi,dr);if(Jt.subTimeline&&j&&Ot.add(mn),Wn){const ei=new Qi(h,We,mn);ei.setRealPlayer(Xr),ht.push(ei)}return Xr});ht.forEach(Jt=>{wn(this.playersByQueriedElement,Jt.element,[]).push(Jt),Jt.onDone(()=>function Ho(v,h,f){let C=v.get(h);if(C){if(C.length){const j=C.indexOf(f);C.splice(j,1)}0==C.length&&v.delete(h)}return C}(this.playersByQueriedElement,Jt.element,Jt))}),Tt.forEach(Jt=>tr(Jt,ct));const Kt=Ut(gn);return Kt.onDestroy(()=>{Tt.forEach(Jt=>fo(Jt,ct)),J(at,f.toStyles)}),Ot.forEach(Jt=>{wn(j,Jt,[]).push(Kt)}),Kt}_buildPlayer(h,f,C){return f.length>0?this.driver.animate(h.element,f,h.duration,h.delay,h.easing,C):new y.ZN(h.duration,h.delay)}}class Qi{constructor(h,f,C){this.namespaceId=h,this.triggerName=f,this.element=C,this._player=new y.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(h){this._containsRealPlayer||(this._player=h,this._queuedCallbacks.forEach((f,C)=>{f.forEach(j=>hn(h,C,void 0,j))}),this._queuedCallbacks.clear(),this._containsRealPlayer=!0,this.overrideTotalTime(h.totalTime),this.queued=!1)}getRealPlayer(){return this._player}overrideTotalTime(h){this.totalTime=h}syncPlayerEvents(h){const f=this._player;f.triggerCallback&&h.onStart(()=>f.triggerCallback("start")),h.onDone(()=>this.finish()),h.onDestroy(()=>this.destroy())}_queueEvent(h,f){wn(this._queuedCallbacks,h,[]).push(f)}onDone(h){this.queued&&this._queueEvent("done",h),this._player.onDone(h)}onStart(h){this.queued&&this._queueEvent("start",h),this._player.onStart(h)}onDestroy(h){this.queued&&this._queueEvent("destroy",h),this._player.onDestroy(h)}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(h){this.queued||this._player.setPosition(h)}getPosition(){return this.queued?0:this._player.getPosition()}triggerCallback(h){const f=this._player;f.triggerCallback&&f.triggerCallback(h)}}function vi(v){return v&&1===v.nodeType}function os(v,h){const f=v.style.display;return v.style.display=h??"none",f}function _i(v,h,f,C,j){const pe=[];f.forEach(at=>pe.push(os(at)));const Re=[];C.forEach((at,ht)=>{const Tt=new Map;at.forEach(Ot=>{const gn=h.computeStyle(ht,Ot,j);Tt.set(Ot,gn),(!gn||0==gn.length)&&(ht[Qr]=co,Re.push(ht))}),v.set(ht,Tt)});let We=0;return f.forEach(at=>os(at,pe[We++])),Re}function zo(v,h){const f=new Map;if(v.forEach(We=>f.set(We,[])),0==h.length)return f;const C=1,j=new Set(h),pe=new Map;function Re(We){if(!We)return C;let at=pe.get(We);if(at)return at;const ht=We.parentNode;return at=f.has(ht)?ht:j.has(ht)?C:Re(ht),pe.set(We,at),at}return h.forEach(We=>{const at=Re(We);at!==C&&f.get(at).push(We)}),f}function tr(v,h){v.classList?.add(h)}function fo(v,h){v.classList?.remove(h)}function ss(v,h,f){Ut(f).onDone(()=>v.processLeaveNode(h))}function Zs(v,h){for(let f=0;f<v.length;f++){const C=v[f];C instanceof y.ZE?Zs(C.players,h):h.push(C)}}function jr(v,h,f){const C=f.get(v);if(!C)return!1;let j=h.get(v);return j?C.forEach(pe=>j.add(pe)):h.set(v,C),f.delete(v),!0}class Po{constructor(h,f,C){this.bodyNode=h,this._driver=f,this._normalizer=C,this._triggerCache={},this.onRemovalComplete=(j,pe)=>{},this._transitionEngine=new To(h,f,C),this._timelineEngine=new ns(h,f,C),this._transitionEngine.onRemovalComplete=(j,pe)=>this.onRemovalComplete(j,pe)}registerTrigger(h,f,C,j,pe){const Re=h+"-"+j;let We=this._triggerCache[Re];if(!We){const at=[],ht=[],Tt=Ct(this._driver,pe,at,ht);if(at.length)throw function Le(v,h){return new b.vHH(3404,!1)}();We=function Zi(v,h,f){return new lo(v,h,f)}(j,Tt,this._normalizer),this._triggerCache[Re]=We}this._transitionEngine.registerTrigger(f,j,We)}register(h,f){this._transitionEngine.register(h,f)}destroy(h,f){this._transitionEngine.destroy(h,f)}onInsert(h,f,C,j){this._transitionEngine.insertNode(h,f,C,j)}onRemove(h,f,C,j){this._transitionEngine.removeNode(h,f,j||!1,C)}disableAnimations(h,f){this._transitionEngine.markElementAsDisabled(h,f)}process(h,f,C,j){if("@"==C.charAt(0)){const[pe,Re]=zt(C);this._timelineEngine.command(pe,f,Re,j)}else this._transitionEngine.trigger(h,f,C,j)}listen(h,f,C,j,pe){if("@"==C.charAt(0)){const[Re,We]=zt(C);return this._timelineEngine.listen(Re,f,We,pe)}return this._transitionEngine.listen(h,f,C,j,pe)}flush(h=-1){this._transitionEngine.flush(h)}get players(){return this._transitionEngine.players.concat(this._timelineEngine.players)}whenRenderingDone(){return this._transitionEngine.whenRenderingDone()}}let zi=(()=>{class v{constructor(f,C,j){this._element=f,this._startStyles=C,this._endStyles=j,this._state=0;let pe=v.initialStylesByElement.get(f);pe||v.initialStylesByElement.set(f,pe=new Map),this._initialStyles=pe}start(){this._state<1&&(this._startStyles&&J(this._element,this._startStyles,this._initialStyles),this._state=1)}finish(){this.start(),this._state<2&&(J(this._element,this._initialStyles),this._endStyles&&(J(this._element,this._endStyles),this._endStyles=null),this._state=1)}destroy(){this.finish(),this._state<3&&(v.initialStylesByElement.delete(this._element),this._startStyles&&(ue(this._element,this._startStyles),this._endStyles=null),this._endStyles&&(ue(this._element,this._endStyles),this._endStyles=null),J(this._element,this._initialStyles),this._state=3)}}return v.initialStylesByElement=new WeakMap,v})();function ir(v){let h=null;return v.forEach((f,C)=>{(function Go(v){return"display"===v||"position"===v})(C)&&(h=h||new Map,h.set(C,f))}),h}class bi{constructor(h,f,C,j){this.element=h,this.keyframes=f,this.options=C,this._specialStyles=j,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=C.duration,this._delay=C.delay||0,this.time=this._duration+this._delay}_onFinish(){this._finished||(this._finished=!0,this._onDoneFns.forEach(h=>h()),this._onDoneFns=[])}init(){this._buildPlayer(),this._preparePlayerBeforeStart()}_buildPlayer(){if(this._initialized)return;this._initialized=!0;const h=this.keyframes;this.domPlayer=this._triggerWebAnimation(this.element,h,this.options),this._finalKeyframe=h.length?h[h.length-1]:new Map,this.domPlayer.addEventListener("finish",()=>this._onFinish())}_preparePlayerBeforeStart(){this._delay?this._resetDomPlayerState():this.domPlayer.pause()}_convertKeyframesToObject(h){const f=[];return h.forEach(C=>{f.push(Object.fromEntries(C))}),f}_triggerWebAnimation(h,f,C){return h.animate(this._convertKeyframesToObject(f),C)}onStart(h){this._originalOnStartFns.push(h),this._onStartFns.push(h)}onDone(h){this._originalOnDoneFns.push(h),this._onDoneFns.push(h)}onDestroy(h){this._onDestroyFns.push(h)}play(){this._buildPlayer(),this.hasStarted()||(this._onStartFns.forEach(h=>h()),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(h=>h()),this._onDestroyFns=[])}setPosition(h){void 0===this.domPlayer&&this.init(),this.domPlayer.currentTime=h*this.time}getPosition(){return this.domPlayer.currentTime/this.time}get totalTime(){return this._delay+this._duration}beforeDestroy(){const h=new Map;this.hasStarted()&&this._finalKeyframe.forEach((C,j)=>{"offset"!==j&&h.set(j,this._finished?C:Fi(this.element,j))}),this.currentSnapshot=h}triggerCallback(h){const f="start"===h?this._onStartFns:this._onDoneFns;f.forEach(C=>C()),f.length=0}}class te{validateStyleProperty(h){return!0}validateAnimatableStyleProperty(h){return!0}matchesElement(h,f){return!1}containsElement(h,f){return cn(h,f)}getParentElement(h){return $e(h)}query(h,f,C){return ln(h,f,C)}computeStyle(h,f,C){return window.getComputedStyle(h)[f]}animate(h,f,C,j,pe,Re=[]){const at={duration:C,delay:j,fill:0==j?"both":"forwards"};pe&&(at.easing=pe);const ht=new Map,Tt=Re.filter(Kt=>Kt instanceof bi);(function xr(v,h){return 0===v||0===h})(C,j)&&Tt.forEach(Kt=>{Kt.currentSnapshot.forEach((Jt,mn)=>ht.set(mn,Jt))});let Ot=function rn(v){return v.length?v[0]instanceof Map?v:v.map(h=>Pn(h)):[]}(f).map(Kt=>Yn(Kt));Ot=function Di(v,h,f){if(f.size&&h.length){let C=h[0],j=[];if(f.forEach((pe,Re)=>{C.has(Re)||j.push(Re),C.set(Re,pe)}),j.length)for(let pe=1;pe<h.length;pe++){let Re=h[pe];j.forEach(We=>Re.set(We,Fi(v,We)))}}return h}(h,Ot,ht);const gn=function Qs(v,h){let f=null,C=null;return Array.isArray(h)&&h.length?(f=ir(h[0]),h.length>1&&(C=ir(h[h.length-1]))):h instanceof Map&&(f=ir(h)),f||C?new zi(v,f,C):null}(h,Ot);return new bi(h,Ot,at,gn)}}var Z=_(36895);let z=(()=>{class v extends y._j{constructor(f,C){super(),this._nextAnimationId=0,this._renderer=f.createRenderer(C.body,{id:"0",encapsulation:b.ifc.None,styles:[],data:{animation:[]}})}build(f){const C=this._nextAnimationId.toString();this._nextAnimationId++;const j=Array.isArray(f)?(0,y.vP)(f):f;return en(this._renderer,null,C,"register",[j]),new Te(C,this._renderer)}}return v.\u0275fac=function(f){return new(f||v)(b.LFG(b.FYo),b.LFG(Z.K0))},v.\u0275prov=b.Yz7({token:v,factory:v.\u0275fac}),v})();class Te extends y.LC{constructor(h,f){super(),this._id=h,this._renderer=f}create(h,f){return new st(this._id,h,f||{},this._renderer)}}class st{constructor(h,f,C,j){this.id=h,this.element=f,this._renderer=j,this.parentPlayer=null,this._started=!1,this.totalTime=0,this._command("create",C)}_listen(h,f){return this._renderer.listen(this.element,`@@${this.id}:${h}`,f)}_command(h,...f){return en(this._renderer,this.element,this.id,h,f)}onDone(h){this._listen("done",h)}onStart(h){this._listen("start",h)}onDestroy(h){this._listen("destroy",h)}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(h){this._command("setPosition",h)}getPosition(){return this._renderer.engine.players[+this.id]?.getPosition()??0}}function en(v,h,f,C,j){return v.setProperty(h,`@@${f}:${C}`,j)}const Fn="@.disabled";let Mo=(()=>{class v{constructor(f,C,j){this.delegate=f,this.engine=C,this._zone=j,this._currentId=0,this._microtaskId=1,this._animationCallbacksBuffer=[],this._rendererCache=new Map,this._cdRecurDepth=0,this.promise=Promise.resolve(0),C.onRemovalComplete=(pe,Re)=>{const We=Re?.parentNode(pe);We&&Re.removeChild(We,pe)}}createRenderer(f,C){const pe=this.delegate.createRenderer(f,C);if(!(f&&C&&C.data&&C.data.animation)){let Tt=this._rendererCache.get(pe);return Tt||(Tt=new Oo("",pe,this.engine,()=>this._rendererCache.delete(pe)),this._rendererCache.set(pe,Tt)),Tt}const Re=C.id,We=C.id+"-"+this._currentId;this._currentId++,this.engine.register(We,f);const at=Tt=>{Array.isArray(Tt)?Tt.forEach(at):this.engine.registerTrigger(Re,We,f,Tt.name,Tt)};return C.data.animation.forEach(at),new Ro(this,We,pe,this.engine)}begin(){this._cdRecurDepth++,this.delegate.begin&&this.delegate.begin()}_scheduleCountTask(){this.promise.then(()=>{this._microtaskId++})}scheduleListenerCallback(f,C,j){f>=0&&f<this._microtaskId?this._zone.run(()=>C(j)):(0==this._animationCallbacksBuffer.length&&Promise.resolve(null).then(()=>{this._zone.run(()=>{this._animationCallbacksBuffer.forEach(pe=>{const[Re,We]=pe;Re(We)}),this._animationCallbacksBuffer=[]})}),this._animationCallbacksBuffer.push([C,j]))}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 v.\u0275fac=function(f){return new(f||v)(b.LFG(b.FYo),b.LFG(Po),b.LFG(b.R0b))},v.\u0275prov=b.Yz7({token:v,factory:v.\u0275fac}),v})();class Oo{constructor(h,f,C,j){this.namespaceId=h,this.delegate=f,this.engine=C,this._onDestroy=j,this.destroyNode=this.delegate.destroyNode?pe=>f.destroyNode(pe):null}get data(){return this.delegate.data}destroy(){this.engine.destroy(this.namespaceId,this.delegate),this.delegate.destroy(),this._onDestroy?.()}createElement(h,f){return this.delegate.createElement(h,f)}createComment(h){return this.delegate.createComment(h)}createText(h){return this.delegate.createText(h)}appendChild(h,f){this.delegate.appendChild(h,f),this.engine.onInsert(this.namespaceId,f,h,!1)}insertBefore(h,f,C,j=!0){this.delegate.insertBefore(h,f,C),this.engine.onInsert(this.namespaceId,f,h,j)}removeChild(h,f,C){this.engine.onRemove(this.namespaceId,f,this.delegate,C)}selectRootElement(h,f){return this.delegate.selectRootElement(h,f)}parentNode(h){return this.delegate.parentNode(h)}nextSibling(h){return this.delegate.nextSibling(h)}setAttribute(h,f,C,j){this.delegate.setAttribute(h,f,C,j)}removeAttribute(h,f,C){this.delegate.removeAttribute(h,f,C)}addClass(h,f){this.delegate.addClass(h,f)}removeClass(h,f){this.delegate.removeClass(h,f)}setStyle(h,f,C,j){this.delegate.setStyle(h,f,C,j)}removeStyle(h,f,C){this.delegate.removeStyle(h,f,C)}setProperty(h,f,C){"@"==f.charAt(0)&&f==Fn?this.disableAnimations(h,!!C):this.delegate.setProperty(h,f,C)}setValue(h,f){this.delegate.setValue(h,f)}listen(h,f,C){return this.delegate.listen(h,f,C)}disableAnimations(h,f){this.engine.disableAnimations(h,f)}}class Ro extends Oo{constructor(h,f,C,j,pe){super(f,C,j,pe),this.factory=h,this.namespaceId=f}setProperty(h,f,C){"@"==f.charAt(0)?"."==f.charAt(1)&&f==Fn?this.disableAnimations(h,C=void 0===C||!!C):this.engine.process(this.namespaceId,h,f.slice(1),C):this.delegate.setProperty(h,f,C)}listen(h,f,C){if("@"==f.charAt(0)){const j=function as(v){switch(v){case"body":return document.body;case"document":return document;case"window":return window;default:return v}}(h);let pe=f.slice(1),Re="";return"@"!=pe.charAt(0)&&([pe,Re]=function ma(v){const h=v.indexOf(".");return[v.substring(0,h),v.slice(h+1)]}(pe)),this.engine.listen(this.namespaceId,j,pe,Re,We=>{this.factory.scheduleListenerCallback(We._data||-1,C,We)})}return this.delegate.listen(h,f,C)}}const Ds=[{provide:y._j,useClass:z},{provide:Ar,useFactory:function jn(){return new Mr}},{provide:Po,useClass:(()=>{class v extends Po{constructor(f,C,j,pe){super(f.body,C,j)}ngOnDestroy(){this.flush()}}return v.\u0275fac=function(f){return new(f||v)(b.LFG(Z.K0),b.LFG(wr),b.LFG(Ar),b.LFG(b.z2F))},v.\u0275prov=b.Yz7({token:v,factory:v.\u0275fac}),v})()},{provide:b.FYo,useFactory:function ya(v,h,f){return new Mo(v,h,f)},deps:[c.se,Po,b.R0b]}],Rr=[{provide:wr,useFactory:()=>new te},{provide:b.QbO,useValue:"BrowserAnimations"},...Ds],us=[{provide:wr,useClass:Gn},{provide:b.QbO,useValue:"NoopAnimations"},...Ds];let $o=(()=>{class v{static withConfig(f){return{ngModule:v,providers:f.disableAnimations?us:Rr}}}return v.\u0275fac=function(f){return new(f||v)},v.\u0275mod=b.oAB({type:v}),v.\u0275inj=b.cJS({providers:Rr,imports:[c.b2]}),v})();var qi=_(2925),Ya=_(241),ls=_(10805),Br=_(29766),Xi=_(21493),xs=_(12453),eo=_(94577),qr=_(81140);let va=(()=>{class v{constructor(f,C){(0,F.Z)(this,"router",void 0),(0,F.Z)(this,"authenticationService",void 0),this.router=f,this.authenticationService=C}canActivate(){return eo.g.currentAuthenticatedUser().then(()=>!!this.authenticationService.currentUserValue).catch(f=>!1)}}return(0,F.Z)(v,"\u0275fac",function(f){return new(f||v)(b.LFG(qi.F0),b.LFG(qr.$))}),(0,F.Z)(v,"\u0275prov",b.Yz7({token:v,factory:v.\u0275fac})),v})();var As=_(24766);let _a=(()=>{class v{constructor(f,C){(0,F.Z)(this,"router",void 0),(0,F.Z)(this,"authenticationService",void 0),this.router=f,this.authenticationService=C}canActivate(){return eo.g.currentAuthenticatedUser().then(()=>!this.authenticationService.currentUserValue).catch(f=>(window.open(As.N.baseWebsite,"_self"),!1))}}return(0,F.Z)(v,"\u0275fac",function(f){return new(f||v)(b.LFG(qi.F0),b.LFG(qr.$))}),(0,F.Z)(v,"\u0275prov",b.Yz7({token:v,factory:v.\u0275fac})),v})();var Ts=_(83021),cs=_(61737),Wo=_(2994),ds=_(27221);let Ps=(()=>{class v{constructor(f,C,j){(0,F.Z)(this,"router",void 0),(0,F.Z)(this,"messageService",void 0),(0,F.Z)(this,"_authenticationService",void 0),this.router=f,this.messageService=C,this._authenticationService=j}intercept(f,C){return C.handle(f).pipe((0,Wo.b)(j=>{j instanceof O.Zn&&(201==j.status&&this.messageService.add({key:"successGlobal",severity:"success",summary:"Created",detail:j.body}),202==j.status&&this.messageService.add({key:"successGlobal",severity:"success",summary:"Updated",detail:j.body}),204==j.status&&this.messageService.add({key:"successGlobal",severity:"success",summary:"Deleted",detail:j.body}))}),(0,ds.K)(j=>{if(401===j.status||403===j.status){if(401!==j.status||!f.url.includes("get-user"))return this._authenticationService.logout(!0),(0,cs._)(j);this.router.navigate(["role-selection"])}else if(200!==j.status)return this.messageService.add({key:"errorAPI",severity:"error",summary:"Error",detail:this.getServerErrorMessage(j)}),(0,cs._)(j)}))}getServerErrorMessage(f){switch(f.status){case 404:return`Not Found: ${f.error?f.error:f.message}`;case 403:return`Access Denied: ${f.message}`;case 400:return`Bad Request ${f.error.Message?f.error.Message:f.error}`;case 409:return`Conflict: ${f.error.Message?f.error.Message:f.message}`;case 500:return`Internal Server Error: ${f.error.Message}`;default:return`Unknown Server Error: ${f.message}`}}}return(0,F.Z)(v,"\u0275fac",function(f){return new(f||v)(b.LFG(qi.F0),b.LFG(ls.ez),b.LFG(qr.$))}),(0,F.Z)(v,"\u0275prov",b.Yz7({token:v,factory:v.\u0275fac})),v})();var Js=_(63527),qs=_(61709);const cr=[{provide:O.TP,useClass:(()=>{class v{constructor(f,C){(0,F.Z)(this,"router",void 0),(0,F.Z)(this,"_authenticationService",void 0),this.router=f,this._authenticationService=C}intercept(f,C){return this.getToken().pipe((0,qs.zg)(j=>(f=f.clone({setHeaders:{Authorization:`Bearer ${j}`}}),C.handle(f))))}getToken(){return(0,Js.D)(new Promise((f,C)=>{eo.g.currentSession().then(j=>{j.isValid()?f(j.getIdToken().getJwtToken()):(f(null),this._authenticationService.logout(!0))}).catch(j=>f(null))}))}}return(0,F.Z)(v,"\u0275fac",function(f){return new(f||v)(b.LFG(qi.F0),b.LFG(qr.$))}),(0,F.Z)(v,"\u0275prov",b.Yz7({token:v,factory:v.\u0275fac})),v})(),multi:!0},{provide:O.TP,useClass:Ps,multi:!0}];var fs=_(17484),hr=_(88611),to=_(45014),ur=_(80887),ci=_(94080),br=_(8929);let Un=(()=>{class v{constructor(f,C,j,pe,Re){(0,F.Z)(this,"titleService",void 0),(0,F.Z)(this,"clientsSubManagersNotificationService",void 0),(0,F.Z)(this,"networksSubManagersNotificationService",void 0),(0,F.Z)(this,"route",void 0),(0,F.Z)(this,"router",void 0),(0,F.Z)(this,"currentUser",void 0),(0,F.Z)(this,"destroy$",new br.xQ),this.titleService=f,this.clientsSubManagersNotificationService=C,this.networksSubManagersNotificationService=j,this.route=pe,this.router=Re}ngOnInit(){this.router.events.subscribe(f=>{if(f instanceof qi.m2){const C=this.route.firstChild;C.snapshot.data.title&&this.titleService.setTitle(C.snapshot.data.title),gtag("config","UA-90917149-1",{page_path:f.urlAfterRedirects}),this.clientsSubManagersNotificationService.GetCountsForNotifications()}})}}return(0,F.Z)(v,"\u0275fac",function(f){return new(f||v)(b.Y36(c.Dx),b.Y36(to.Q),b.Y36(ur.M),b.Y36(qi.gz),b.Y36(qi.F0))}),(0,F.Z)(v,"\u0275cmp",b.Xpm({type:v,selectors:[["app-root"]],decls:3,vars:2,consts:[["position","top-center","key","errorAPI",3,"baseZIndex"],["position","top-center","key","successGlobal",3,"baseZIndex"]],template:function(f,C){1&f&&b._UZ(0,"p-toast",0)(1,"p-toast",1)(2,"router-outlet"),2&f&&(b.Q6J("baseZIndex",5e4),b.xp6(1),b.Q6J("baseZIndex",5e4))},dependencies:[qi.lC,xs.FN],encapsulation:2})),v})();const mo=[{path:"role-selection",loadChildren:()=>Promise.all([_.e(8521),_.e(2913),_.e(9154)]).then(_.bind(_,89154)).then(v=>v.WebSiteMasterModule),canActivate:[_a]},{path:"role",loadChildren:()=>Promise.all([_.e(5349),_.e(8592),_.e(6468)]).then(_.bind(_,6468)).then(v=>v.RolesMasterModule),canActivate:[va]},{path:"external",loadChildren:()=>Promise.all([_.e(8521),_.e(5349),_.e(2913),_.e(8592),_.e(5198)]).then(_.bind(_,5198)).then(v=>v.WhiteLabeledModule)},{path:"authentication",loadChildren:()=>Promise.all([_.e(5751),_.e(8783),_.e(8521),_.e(5349),_.e(8592),_.e(3799)]).then(_.bind(_,23799)).then(v=>v.AuthenticationModule)},{path:"#",redirectTo:"",pathMatch:"full"},{path:"",redirectTo:"",pathMatch:"full"},{path:"**",redirectTo:"role/notFound",pathMatch:"full"}];let pr=(()=>{class v{}return(0,F.Z)(v,"\u0275fac",function(f){return new(f||v)}),(0,F.Z)(v,"\u0275mod",b.oAB({type:v,bootstrap:[Un]})),(0,F.Z)(v,"\u0275inj",b.cJS({providers:[fs.i,hr.d,Z.uU,ci.n,va,_a,ls.ez,to.Q,ur.M,Ts.F,cr,{provide:b.ip1,useFactory:Xs,deps:[qr.$],multi:!0}],imports:[c.b2,qi.Bz.forRoot(mo,{useHash:!0}),w.u5,w.UX,O.JF,$o,xs.EV,Br.Gg,Xi.S,Ya.nm.forRoot()]})),v})();function Xs(v){return()=>v.getUser()}(0,b.G48)(),M.d.configure({aws_project_region:"eu-central-1",aws_cognito_region:"eu-central-1",aws_user_pools_id:"eu-central-1_IkhGdRQzr",aws_user_pools_web_client_id:"4f696gj5lbbc9kefjo18f71mag",oauth:{domain:"mobiboxtestingcom.auth.eu-central-1.amazoncognito.com",scope:["aws.cognito.signin.user.admin","email","openid","phone","profile"],redirectSignIn:"https://console.mymobibox.com/",redirectSignOut:"https://mymobibox.com/",responseType:"code"},federationTarget:"COGNITO_USER_POOLS",aws_cognito_username_attributes:[],aws_cognito_social_providers:["FACEBOOK","GOOGLE"],aws_cognito_signup_attributes:["EMAIL"],aws_cognito_mfa_configuration:"OFF",aws_cognito_mfa_types:[],aws_cognito_password_protection_settings:{passwordPolicyMinLength:8,passwordPolicyCharacters:[]},aws_cognito_verification_mechanisms:["EMAIL"]}),c.q6().bootstrapModule(pr).catch(v=>console.error(v))},94577:(Ze,ee,_)=>{"use strict";_.d(ee,{g:()=>$a});var c=function(e,r){return(c=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(i,a){i.__proto__=a}||function(i,a){for(var u in a)a.hasOwnProperty(u)&&(i[u]=a[u])})(e,r)};function b(e,r){function i(){this.constructor=e}c(e,r),e.prototype=null===r?Object.create(r):(i.prototype=r.prototype,new i)}var M=function(){return M=Object.assign||function(r){for(var i,a=1,u=arguments.length;a<u;a++)for(var s in i=arguments[a])Object.prototype.hasOwnProperty.call(i,s)&&(r[s]=i[s]);return r},M.apply(this,arguments)};function g(e,r,i,a){return new(i||(i=Promise))(function(s,m){function A(K){try{E(a.next(K))}catch(me){m(me)}}function ae(K){try{E(a.throw(K))}catch(me){m(me)}}function E(K){K.done?s(K.value):function u(s){return s instanceof i?s:new i(function(m){m(s)})}(K.value).then(A,ae)}E((a=a.apply(e,r||[])).next())})}function x(e,r){var a,u,s,m,i={label:0,sent:function(){if(1&s[0])throw s[1];return s[1]},trys:[],ops:[]};return m={next:A(0),throw:A(1),return:A(2)},"function"==typeof Symbol&&(m[Symbol.iterator]=function(){return this}),m;function A(E){return function(K){return function ae(E){if(a)throw new TypeError("Generator is already executing.");for(;i;)try{if(a=1,u&&(s=2&E[0]?u.return:E[0]?u.throw||((s=u.return)&&s.call(u),0):u.next)&&!(s=s.call(u,E[1])).done)return s;switch(u=0,s&&(E=[2&E[0],s.value]),E[0]){case 0:case 1:s=E;break;case 4:return i.label++,{value:E[1],done:!1};case 5:i.label++,u=E[1],E=[0];continue;case 7:E=i.ops.pop(),i.trys.pop();continue;default:if(!(s=(s=i.trys).length>0&&s[s.length-1])&&(6===E[0]||2===E[0])){i=0;continue}if(3===E[0]&&(!s||E[1]>s[0]&&E[1]<s[3])){i.label=E[1];break}if(6===E[0]&&i.label<s[1]){i.label=s[1],s=E;break}if(s&&i.label<s[2]){i.label=s[2],i.ops.push(E);break}s[2]&&i.ops.pop(),i.trys.pop();continue}E=r.call(e,i)}catch(K){E=[6,K],u=0}finally{a=s=0}if(5&E[0])throw E[1];return{value:E[0]?E[1]:void 0,done:!0}}([E,K])}}}function B(e,r){var i="function"==typeof Symbol&&e[Symbol.iterator];if(!i)return e;var u,m,a=i.call(e),s=[];try{for(;(void 0===r||r-- >0)&&!(u=a.next()).done;)s.push(u.value)}catch(A){m={error:A}}finally{try{u&&!u.done&&(i=a.return)&&i.call(a)}finally{if(m)throw m.error}}return s}var R=(()=>{return(e=R||(R={})).Cognito="COGNITO",e.Google="Google",e.Facebook="Facebook",e.Amazon="LoginWithAmazon",e.Apple="SignInWithApple",R;var e})();function U(e){return e&&!!["provider"].find(function(i){return e.hasOwnProperty(i)})}function ge(e){return void 0!==e.redirectSignIn}var Q=(()=>{return(e=Q||(Q={})).NoConfig="noConfig",e.MissingAuthConfig="missingAuthConfig",e.EmptyUsername="emptyUsername",e.InvalidUsername="invalidUsername",e.EmptyPassword="emptyPassword",e.EmptyCode="emptyCode",e.SignUpError="signUpError",e.NoMFA="noMFA",e.InvalidMFA="invalidMFA",e.EmptyChallengeResponse="emptyChallengeResponse",e.NoUserSession="noUserSession",e.Default="default",e.DeviceConfig="deviceConfig",e.NetworkError="networkError",e.AutoSignInError="autoSignInError",Q;var e})(),Ye=_(78624),we=_(60281),Ge=_(28008),ke={},ve=function(){function e(){}return e.setItem=function(r,i){return ke[r]=i,ke[r]},e.getItem=function(r){return Object.prototype.hasOwnProperty.call(ke,r)?ke[r]:void 0},e.removeItem=function(r){return delete ke[r]},e.clear=function(){return ke={}},e}(),ze=function(){function e(){try{this.storageWindow=window.localStorage,this.storageWindow.setItem("aws.amplify.test-ls",1),this.storageWindow.removeItem("aws.amplify.test-ls")}catch{this.storageWindow=ve}}return e.prototype.getStorage=function(){return this.storageWindow},e}(),Ut=function(){return{isBrowser:typeof window<"u"&&typeof window.document<"u",isNode:typeof process<"u"&&null!=process.versions&&null!=process.versions.node}},Tn=new Ye.k("Util"),wn=function(e){function r(i){var a=e.call(this,i)||this;return a.nonRetryable=!0,a}return(0,Ge.ZT)(r,e),r}(Error),ot=new Ye.k("CognitoCredentials"),vt=new Promise(function(e,r){return Ut().isBrowser?window.gapi&&window.gapi.auth2&&window.gapi.auth2?(ot.debug("google api already loaded"),e()):void setTimeout(function(){return e()},2e3):(ot.debug("not in the browser, directly resolved"),e())}),lt=function(){function e(){this.initialized=!1,this.refreshGoogleToken=this.refreshGoogleToken.bind(this),this._refreshGoogleTokenImpl=this._refreshGoogleTokenImpl.bind(this)}return e.prototype.refreshGoogleToken=function(){return(0,Ge.mG)(this,void 0,void 0,function(){return(0,Ge.Jh)(this,function(r){switch(r.label){case 0:return this.initialized?[3,2]:(ot.debug("need to wait for the Google SDK loaded"),[4,vt]);case 1:r.sent(),this.initialized=!0,ot.debug("finish waiting"),r.label=2;case 2:return[2,this._refreshGoogleTokenImpl()]}})})},e.prototype._refreshGoogleTokenImpl=function(){var r=null;return Ut().isBrowser&&(r=window.gapi&&window.gapi.auth2?window.gapi.auth2:null),r?new Promise(function(i,a){r.getAuthInstance().then(function(u){u||(ot.debug("google Auth undefined"),a(new wn("google Auth undefined")));var s=u.currentUser.get();s.isSignedIn()?(ot.debug("refreshing the google access token"),s.reloadAuthResponse().then(function(m){i({token:m.id_token,expires_at:m.expires_at})}).catch(function(m){a(m&&"network_error"===m.error?"Network error reloading google auth response":new wn("Failed to reload google auth response"))})):a(new wn("User is not signed in with Google"))}).catch(function(u){ot.debug("Failed to refresh google token",u),a(new wn("Failed to refresh google token"))})}):(ot.debug("no gapi auth2 available"),Promise.reject("no gapi auth2 available"))},e}(),Ht=new Ye.k("CognitoCredentials"),Nt=new Promise(function(e,r){return Ut().isBrowser?window.FB?(Ht.debug("FB SDK already loaded"),e()):void setTimeout(function(){return e()},2e3):(Ht.debug("not in the browser, directly resolved"),e())}),It=function(){function e(){this.initialized=!1,this.refreshFacebookToken=this.refreshFacebookToken.bind(this),this._refreshFacebookTokenImpl=this._refreshFacebookTokenImpl.bind(this)}return e.prototype.refreshFacebookToken=function(){return(0,Ge.mG)(this,void 0,void 0,function(){return(0,Ge.Jh)(this,function(r){switch(r.label){case 0:return this.initialized?[3,2]:(Ht.debug("need to wait for the Facebook SDK loaded"),[4,Nt]);case 1:r.sent(),this.initialized=!0,Ht.debug("finish waiting"),r.label=2;case 2:return[2,this._refreshFacebookTokenImpl()]}})})},e.prototype._refreshFacebookTokenImpl=function(){var r=null;if(Ut().isBrowser&&(r=window.FB),!r){var i="no fb sdk available";return Ht.debug(i),Promise.reject(new wn(i))}return new Promise(function(a,u){r.getLoginStatus(function(s){if(s&&s.authResponse){var A=s.authResponse,ae=A.accessToken,me=1e3*A.expiresIn+(new Date).getTime();ae||(Ht.debug(m="the jwtToken is undefined"),u(new wn(m))),a({token:ae,expires_at:me})}else{var m;Ht.debug(m="no response from facebook when refreshing the jwt token"),u(new wn(m))}},{scope:"public_profile,email"})})},e}(),pn=new lt,cn=new It,ln=_(16699);function er(e,r,i,a){return new(i||(i=Promise))(function(s,m){function A(K){try{E(a.next(K))}catch(me){m(me)}}function ae(K){try{E(a.throw(K))}catch(me){m(me)}}function E(K){K.done?s(K.value):function u(s){return s instanceof i?s:new i(function(m){m(s)})}(K.value).then(A,ae)}E((a=a.apply(e,r||[])).next())})}function or(e,r){var a,u,s,m,i={label:0,sent:function(){if(1&s[0])throw s[1];return s[1]},trys:[],ops:[]};return m={next:A(0),throw:A(1),return:A(2)},"function"==typeof Symbol&&(m[Symbol.iterator]=function(){return this}),m;function A(E){return function(K){return function ae(E){if(a)throw new TypeError("Generator is already executing.");for(;i;)try{if(a=1,u&&(s=2&E[0]?u.return:E[0]?u.throw||((s=u.return)&&s.call(u),0):u.next)&&!(s=s.call(u,E[1])).done)return s;switch(u=0,s&&(E=[2&E[0],s.value]),E[0]){case 0:case 1:s=E;break;case 4:return i.label++,{value:E[1],done:!1};case 5:i.label++,u=E[1],E=[0];continue;case 7:E=i.ops.pop(),i.trys.pop();continue;default:if(!(s=(s=i.trys).length>0&&s[s.length-1])&&(6===E[0]||2===E[0])){i=0;continue}if(3===E[0]&&(!s||E[1]>s[0]&&E[1]<s[3])){i.label=E[1];break}if(6===E[0]&&i.label<s[1]){i.label=s[1],s=E;break}if(s&&i.label<s[2]){i.label=s[2],i.ops.push(E);break}s[2]&&i.ops.pop(),i.trys.pop();continue}E=r.call(e,i)}catch(K){E=[6,K],u=0}finally{a=s=0}if(5&E[0])throw E[1];return{value:E[0]?E[1]:void 0,done:!0}}([E,K])}}}var ue=_(70655),_e=(()=>((_e||(_e={})).filterSensitiveLog=function(r){return(0,ue.pi)({},r)},_e))(),ce=(()=>((ce||(ce={})).filterSensitiveLog=function(r){return(0,ue.pi)({},r)},ce))(),Oe=(()=>((Oe||(Oe={})).filterSensitiveLog=function(r){return(0,ue.pi)({},r)},Oe))(),Qe=(()=>((Qe||(Qe={})).filterSensitiveLog=function(r){return(0,ue.pi)({},r)},Qe))(),kr=function(){function e(r){this.statusCode=r.statusCode,this.headers=r.headers||{},this.body=r.body}return e.isInstance=function(r){return!!r&&("number"==typeof r.statusCode&&"object"==typeof r.headers)},e}(),Tr=function(){return Tr=Object.assign||function(r){for(var i,a=1,u=arguments.length;a<u;a++)for(var s in i=arguments[a])Object.prototype.hasOwnProperty.call(i,s)&&(r[s]=i[s]);return r},Tr.apply(this,arguments)};function Bi(e,r){var i="function"==typeof Symbol&&e[Symbol.iterator];if(!i)return e;var u,m,a=i.call(e),s=[];try{for(;(void 0===r||r-- >0)&&!(u=a.next()).done;)s.push(u.value)}catch(A){m={error:A}}finally{try{u&&!u.done&&(i=a.return)&&i.call(a)}finally{if(m)throw m.error}}return s}var Ti=function(){function e(r){this.method=r.method||"GET",this.hostname=r.hostname||"localhost",this.port=r.port,this.query=r.query||{},this.headers=r.headers||{},this.body=r.body,this.protocol=r.protocol?":"!==r.protocol.substr(-1)?r.protocol+":":r.protocol:"https:",this.path=r.path?"/"!==r.path.charAt(0)?"/"+r.path:r.path:"/"}return e.isInstance=function(r){return!!r&&("method"in r&&"protocol"in r&&"hostname"in r&&"path"in r&&"object"==typeof r.query&&"object"==typeof r.headers)},e.prototype.clone=function(){var r=new e(Tr(Tr({},this),{headers:Tr({},this.headers)}));return r.query&&(r.query=function Pi(e){return Object.keys(e).reduce(function(r,i){var a,u=e[i];return Tr(Tr({},r),((a={})[i]=Array.isArray(u)?function ns(){for(var e=[],r=0;r<arguments.length;r++)e=e.concat(Bi(arguments[r]));return e}(u):u,a))},{})}(r.query)),r},e}(),Mo=function(e,r){return(0,ue.mG)(void 0,void 0,void 0,function(){var i,a,u,s,A,ae,E,K,me,G,Se,Fe,He,dt,bt;return(0,ue.Jh)(this,function(Rt){switch(Rt.label){case 0:return a=[(0,ue.pi)({},e)],bt={},[4,In(e.body,r)];case 1:switch(i=ue.pi.apply(void 0,a.concat([(bt.body=Rt.sent(),bt)])),s="UnknownError",s=yr(e,i.body)){case"ExternalServiceException":case"com.amazonaws.cognitoidentity#ExternalServiceException":return[3,2];case"InternalErrorException":case"com.amazonaws.cognitoidentity#InternalErrorException":return[3,4];case"InvalidIdentityPoolConfigurationException":case"com.amazonaws.cognitoidentity#InvalidIdentityPoolConfigurationException":return[3,6];case"InvalidParameterException":case"com.amazonaws.cognitoidentity#InvalidParameterException":return[3,8];case"NotAuthorizedException":case"com.amazonaws.cognitoidentity#NotAuthorizedException":return[3,10];case"ResourceConflictException":case"com.amazonaws.cognitoidentity#ResourceConflictException":return[3,12];case"ResourceNotFoundException":case"com.amazonaws.cognitoidentity#ResourceNotFoundException":return[3,14];case"TooManyRequestsException":case"com.amazonaws.cognitoidentity#TooManyRequestsException":return[3,16]}return[3,18];case 2:return A=[{}],[4,go(i,r)];case 3:return u=ue.pi.apply(void 0,[ue.pi.apply(void 0,A.concat([Rt.sent()])),{name:s,$metadata:rt(e)}]),[3,19];case 4:return ae=[{}],[4,cr(i,r)];case 5:return u=ue.pi.apply(void 0,[ue.pi.apply(void 0,ae.concat([Rt.sent()])),{name:s,$metadata:rt(e)}]),[3,19];case 6:return E=[{}],[4,fs(i,r)];case 7:return u=ue.pi.apply(void 0,[ue.pi.apply(void 0,E.concat([Rt.sent()])),{name:s,$metadata:rt(e)}]),[3,19];case 8:return K=[{}],[4,hr(i,r)];case 9:return u=ue.pi.apply(void 0,[ue.pi.apply(void 0,K.concat([Rt.sent()])),{name:s,$metadata:rt(e)}]),[3,19];case 10:return me=[{}],[4,ur(i,r)];case 11:return u=ue.pi.apply(void 0,[ue.pi.apply(void 0,me.concat([Rt.sent()])),{name:s,$metadata:rt(e)}]),[3,19];case 12:return G=[{}],[4,ci(i,r)];case 13:return u=ue.pi.apply(void 0,[ue.pi.apply(void 0,G.concat([Rt.sent()])),{name:s,$metadata:rt(e)}]),[3,19];case 14:return Se=[{}],[4,br(i,r)];case 15:return u=ue.pi.apply(void 0,[ue.pi.apply(void 0,Se.concat([Rt.sent()])),{name:s,$metadata:rt(e)}]),[3,19];case 16:return Fe=[{}],[4,Un(i,r)];case 17:return u=ue.pi.apply(void 0,[ue.pi.apply(void 0,Fe.concat([Rt.sent()])),{name:s,$metadata:rt(e)}]),[3,19];case 18:s=(He=i.body).code||He.Code||s,u=(0,ue.pi)((0,ue.pi)({},He),{name:""+s,message:He.message||He.Message||s,$fault:"client",$metadata:rt(e)}),Rt.label=19;case 19:return u.message=dt=u.message||u.Message||s,delete u.Message,[2,Promise.reject(Object.assign(new Error(dt),u))]}})})},Ro=function(e,r){return(0,ue.mG)(void 0,void 0,void 0,function(){var i,a,u,s,A,ae,E,K,me,G,Se,Fe,He,dt,bt;return(0,ue.Jh)(this,function(Rt){switch(Rt.label){case 0:return a=[(0,ue.pi)({},e)],bt={},[4,In(e.body,r)];case 1:switch(i=ue.pi.apply(void 0,a.concat([(bt.body=Rt.sent(),bt)])),s="UnknownError",s=yr(e,i.body)){case"ExternalServiceException":case"com.amazonaws.cognitoidentity#ExternalServiceException":return[3,2];case"InternalErrorException":case"com.amazonaws.cognitoidentity#InternalErrorException":return[3,4];case"InvalidParameterException":case"com.amazonaws.cognitoidentity#InvalidParameterException":return[3,6];case"LimitExceededException":case"com.amazonaws.cognitoidentity#LimitExceededException":return[3,8];case"NotAuthorizedException":case"com.amazonaws.cognitoidentity#NotAuthorizedException":return[3,10];case"ResourceConflictException":case"com.amazonaws.cognitoidentity#ResourceConflictException":return[3,12];case"ResourceNotFoundException":case"com.amazonaws.cognitoidentity#ResourceNotFoundException":return[3,14];case"TooManyRequestsException":case"com.amazonaws.cognitoidentity#TooManyRequestsException":return[3,16]}return[3,18];case 2:return A=[{}],[4,go(i,r)];case 3:return u=ue.pi.apply(void 0,[ue.pi.apply(void 0,A.concat([Rt.sent()])),{name:s,$metadata:rt(e)}]),[3,19];case 4:return ae=[{}],[4,cr(i,r)];case 5:return u=ue.pi.apply(void 0,[ue.pi.apply(void 0,ae.concat([Rt.sent()])),{name:s,$metadata:rt(e)}]),[3,19];case 6:return E=[{}],[4,hr(i,r)];case 7:return u=ue.pi.apply(void 0,[ue.pi.apply(void 0,E.concat([Rt.sent()])),{name:s,$metadata:rt(e)}]),[3,19];case 8:return K=[{}],[4,to(i,r)];case 9:return u=ue.pi.apply(void 0,[ue.pi.apply(void 0,K.concat([Rt.sent()])),{name:s,$metadata:rt(e)}]),[3,19];case 10:return me=[{}],[4,ur(i,r)];case 11:return u=ue.pi.apply(void 0,[ue.pi.apply(void 0,me.concat([Rt.sent()])),{name:s,$metadata:rt(e)}]),[3,19];case 12:return G=[{}],[4,ci(i,r)];case 13:return u=ue.pi.apply(void 0,[ue.pi.apply(void 0,G.concat([Rt.sent()])),{name:s,$metadata:rt(e)}]),[3,19];case 14:return Se=[{}],[4,br(i,r)];case 15:return u=ue.pi.apply(void 0,[ue.pi.apply(void 0,Se.concat([Rt.sent()])),{name:s,$metadata:rt(e)}]),[3,19];case 16:return Fe=[{}],[4,Un(i,r)];case 17:return u=ue.pi.apply(void 0,[ue.pi.apply(void 0,Fe.concat([Rt.sent()])),{name:s,$metadata:rt(e)}]),[3,19];case 18:s=(He=i.body).code||He.Code||s,u=(0,ue.pi)((0,ue.pi)({},He),{name:""+s,message:He.message||He.Message||s,$fault:"client",$metadata:rt(e)}),Rt.label=19;case 19:return u.message=dt=u.message||u.Message||s,delete u.Message,[2,Promise.reject(Object.assign(new Error(dt),u))]}})})},go=function(e,r){return(0,ue.mG)(void 0,void 0,void 0,function(){var a;return(0,ue.Jh)(this,function(s){return a=Gi(e.body,r),[2,(0,ue.pi)({name:"ExternalServiceException",$fault:"client",$metadata:rt(e)},a)]})})},cr=function(e,r){return(0,ue.mG)(void 0,void 0,void 0,function(){var a;return(0,ue.Jh)(this,function(s){return a=ta(e.body,r),[2,(0,ue.pi)({name:"InternalErrorException",$fault:"server",$metadata:rt(e)},a)]})})},fs=function(e,r){return(0,ue.mG)(void 0,void 0,void 0,function(){var a;return(0,ue.Jh)(this,function(s){return a=qc(e.body,r),[2,(0,ue.pi)({name:"InvalidIdentityPoolConfigurationException",$fault:"client",$metadata:rt(e)},a)]})})},hr=function(e,r){return(0,ue.mG)(void 0,void 0,void 0,function(){var a;return(0,ue.Jh)(this,function(s){return a=xu(e.body,r),[2,(0,ue.pi)({name:"InvalidParameterException",$fault:"client",$metadata:rt(e)},a)]})})},to=function(e,r){return(0,ue.mG)(void 0,void 0,void 0,function(){var a;return(0,ue.Jh)(this,function(s){return a=na(e.body,r),[2,(0,ue.pi)({name:"LimitExceededException",$fault:"client",$metadata:rt(e)},a)]})})},ur=function(e,r){return(0,ue.mG)(void 0,void 0,void 0,function(){var a;return(0,ue.Jh)(this,function(s){return a=Ns(e.body,r),[2,(0,ue.pi)({name:"NotAuthorizedException",$fault:"client",$metadata:rt(e)},a)]})})},ci=function(e,r){return(0,ue.mG)(void 0,void 0,void 0,function(){var a;return(0,ue.Jh)(this,function(s){return a=Xc(e.body,r),[2,(0,ue.pi)({name:"ResourceConflictException",$fault:"client",$metadata:rt(e)},a)]})})},br=function(e,r){return(0,ue.mG)(void 0,void 0,void 0,function(){var a;return(0,ue.Jh)(this,function(s){return a=mr(e.body,r),[2,(0,ue.pi)({name:"ResourceNotFoundException",$fault:"client",$metadata:rt(e)},a)]})})},Un=function(e,r){return(0,ue.mG)(void 0,void 0,void 0,function(){var a;return(0,ue.Jh)(this,function(s){return a=rd(e.body,r),[2,(0,ue.pi)({name:"TooManyRequestsException",$fault:"client",$metadata:rt(e)},a)]})})},An=function(e,r){return Object.entries(e).reduce(function(i,a){var u,s=(0,ue.CR)(a,2),m=s[0],A=s[1];return null===A?i:(0,ue.pi)((0,ue.pi)({},i),((u={})[m]=A,u))},{})},Kn=function(e,r){return{AccessKeyId:null!=e.AccessKeyId?e.AccessKeyId:void 0,Expiration:null!=e.Expiration?new Date(Math.round(1e3*e.Expiration)):void 0,SecretKey:null!=e.SecretKey?e.SecretKey:void 0,SessionToken:null!=e.SessionToken?e.SessionToken:void 0}},Gi=function(e,r){return{message:null!=e.message?e.message:void 0}},ta=function(e,r){return{message:null!=e.message?e.message:void 0}},qc=function(e,r){return{message:null!=e.message?e.message:void 0}},xu=function(e,r){return{message:null!=e.message?e.message:void 0}},na=function(e,r){return{message:null!=e.message?e.message:void 0}},Ns=function(e,r){return{message:null!=e.message?e.message:void 0}},Xc=function(e,r){return{message:null!=e.message?e.message:void 0}},mr=function(e,r){return{message:null!=e.message?e.message:void 0}},rd=function(e,r){return{message:null!=e.message?e.message:void 0}},rt=function(e){var r;return{httpStatusCode:e.statusCode,requestId:null!==(r=e.headers["x-amzn-requestid"])&&void 0!==r?r:e.headers["x-amzn-request-id"],extendedRequestId:e.headers["x-amz-id-2"],cfId:e.headers["x-amz-cf-id"]}},Nr=function(e,r,i,a,u){return(0,ue.mG)(void 0,void 0,void 0,function(){var s,A,K;return(0,ue.Jh)(this,function(me){switch(me.label){case 0:return[4,e.endpoint()];case 1:return s=me.sent(),K={protocol:void 0===(A=s.protocol)?"https":A,hostname:s.hostname,port:s.port,method:"POST",path:i,headers:r},void 0!==a&&(K.hostname=a),void 0!==u&&(K.body=u),[2,new Ti(K)]}})})},In=function(e,r){return function(e,r){return function(e,r){return void 0===e&&(e=new Uint8Array),e instanceof Uint8Array?Promise.resolve(e):r.streamCollector(e)||Promise.resolve(new Uint8Array)}(e,r).then(function(i){return r.utf8Encoder(i)})}(e,r).then(function(i){return i.length?JSON.parse(i):{}})},yr=function(e,r){var a=function(s){var m=s;return m.indexOf(":")>=0&&(m=m.split(":")[0]),m.indexOf("#")>=0&&(m=m.split("#")[1]),m},u=("x-amzn-errortype",Object.keys(e.headers).find(function(A){return A.toLowerCase()==="x-amzn-errortype".toLowerCase()}));return void 0!==u?a(e.headers[u]):void 0!==r.code?a(r.code):void 0!==r.__type?a(r.__type):""},Ko=function(){return Ko=Object.assign||function(r){for(var i,a=1,u=arguments.length;a<u;a++)for(var s in i=arguments[a])Object.prototype.hasOwnProperty.call(i,s)&&(r[s]=i[s]);return r},Ko.apply(this,arguments)};function Oi(e,r,i,a){return new(i||(i=Promise))(function(s,m){function A(K){try{E(a.next(K))}catch(me){m(me)}}function ae(K){try{E(a.throw(K))}catch(me){m(me)}}function E(K){K.done?s(K.value):function u(s){return s instanceof i?s:new i(function(m){m(s)})}(K.value).then(A,ae)}E((a=a.apply(e,r||[])).next())})}function D(e,r){var a,u,s,m,i={label:0,sent:function(){if(1&s[0])throw s[1];return s[1]},trys:[],ops:[]};return m={next:A(0),throw:A(1),return:A(2)},"function"==typeof Symbol&&(m[Symbol.iterator]=function(){return this}),m;function A(E){return function(K){return function ae(E){if(a)throw new TypeError("Generator is already executing.");for(;i;)try{if(a=1,u&&(s=2&E[0]?u.return:E[0]?u.throw||((s=u.return)&&s.call(u),0):u.next)&&!(s=s.call(u,E[1])).done)return s;switch(u=0,s&&(E=[2&E[0],s.value]),E[0]){case 0:case 1:s=E;break;case 4:return i.label++,{value:E[1],done:!1};case 5:i.label++,u=E[1],E=[0];continue;case 7:E=i.ops.pop(),i.trys.pop();continue;default:if(!(s=(s=i.trys).length>0&&s[s.length-1])&&(6===E[0]||2===E[0])){i=0;continue}if(3===E[0]&&(!s||E[1]>s[0]&&E[1]<s[3])){i.label=E[1];break}if(6===E[0]&&i.label<s[1]){i.label=s[1],s=E;break}if(s&&i.label<s[2]){i.label=s[2],i.ops.push(E);break}s[2]&&i.ops.pop(),i.trys.pop();continue}E=r.call(e,i)}catch(K){E=[6,K],u=0}finally{a=s=0}if(5&E[0])throw E[1];return{value:E[0]?E[1]:void 0,done:!0}}([E,K])}}}var io=function(e,r){return function(i,a){return function(u){return Oi(void 0,void 0,void 0,function(){var s,m;return D(this,function(A){switch(A.label){case 0:return[4,i(u)];case 1:return s=A.sent().response,[4,r(s,e)];case 2:return m=A.sent(),[2,{response:s,output:m}]}})})}}},Al=function(e,r){return function(i,a){return function(u){return Oi(void 0,void 0,void 0,function(){var s;return D(this,function(m){switch(m.label){case 0:return[4,r(u.input,e)];case 1:return s=m.sent(),[2,i(Ko(Ko({},u),{request:s}))]}})})}}},gs={name:"deserializerMiddleware",step:"deserialize",tags:["DESERIALIZER"],override:!0},Sa={name:"serializerMiddleware",step:"serialize",tags:["SERIALIZER"],override:!0};function Tl(e,r,i){return{applyToStack:function(a){a.add(io(e,i),gs),a.add(Al(e,r),Sa)}}}var Ri=function(){return Ri=Object.assign||function(r){for(var i,a=1,u=arguments.length;a<u;a++)for(var s in i=arguments[a])Object.prototype.hasOwnProperty.call(i,s)&&(r[s]=i[s]);return r},Ri.apply(this,arguments)};function Mu(e,r){var i="function"==typeof Symbol&&e[Symbol.iterator];if(!i)return e;var u,m,a=i.call(e),s=[];try{for(;(void 0===r||r-- >0)&&!(u=a.next()).done;)s.push(u.value)}catch(A){m={error:A}}finally{try{u&&!u.done&&(i=a.return)&&i.call(a)}finally{if(m)throw m.error}}return s}function Ou(){for(var e=[],r=0;r<arguments.length;r++)e=e.concat(Mu(arguments[r]));return e}var Ca=function(){var e=[],r=[],i=new Set,m=function(K){return e.forEach(function(me){K.add(me.middleware,Ri({},me))}),r.forEach(function(me){K.addRelativeTo(me.middleware,Ri({},me))}),K},A=function(K){var me=[];return K.before.forEach(function(G){0===G.before.length&&0===G.after.length?me.push(G):me.push.apply(me,Ou(A(G)))}),me.push(K),K.after.reverse().forEach(function(G){0===G.before.length&&0===G.after.length?me.push(G):me.push.apply(me,Ou(A(G)))}),me},E={add:function(K,me){void 0===me&&(me={});var G=me.name,Se=me.override,Fe=Ri({step:"initialize",priority:"normal",middleware:K},me);if(G){if(i.has(G)){if(!Se)throw new Error("Duplicate middleware name '"+G+"'");var He=e.findIndex(function(bt){return bt.name===G}),dt=e[He];if(dt.step!==Fe.step||dt.priority!==Fe.priority)throw new Error('"'+G+'" middleware with '+dt.priority+" priority in "+dt.step+" step cannot be overridden by same-name middleware with "+Fe.priority+" priority in "+Fe.step+" step.");e.splice(He,1)}i.add(G)}e.push(Fe)},addRelativeTo:function(K,me){var G=me.name,Se=me.override,Fe=Ri({middleware:K},me);if(G){if(i.has(G)){if(!Se)throw new Error("Duplicate middleware name '"+G+"'");var He=r.findIndex(function(bt){return bt.name===G}),dt=r[He];if(dt.toMiddleware!==Fe.toMiddleware||dt.relation!==Fe.relation)throw new Error('"'+G+'" middleware '+dt.relation+' "'+dt.toMiddleware+'" middleware cannot be overridden by same-name middleware '+Fe.relation+' "'+Fe.toMiddleware+'" middleware.');r.splice(He,1)}i.add(G)}r.push(Fe)},clone:function(){return m(Ca())},use:function(K){K.applyToStack(E)},remove:function(K){return"string"==typeof K?function(K){var me=!1,G=function(Se){return!Se.name||Se.name!==K||(me=!0,i.delete(K),!1)};return e=e.filter(G),r=r.filter(G),me}(K):function(K){var me=!1,G=function(Se){return Se.middleware!==K||(me=!0,Se.name&&i.delete(Se.name),!1)};return e=e.filter(G),r=r.filter(G),me}(K)},removeByTag:function(K){var me=!1,G=function(Se){var Fe=Se.tags,He=Se.name;return!Fe||!Fe.includes(K)||(He&&i.delete(He),me=!0,!1)};return e=e.filter(G),r=r.filter(G),me},concat:function(K){var me=m(Ca());return me.use(K),me},applyToStack:m,resolve:function(K,me){var G,Se;try{for(var Fe=function Ml(e){var r="function"==typeof Symbol&&Symbol.iterator,i=r&&e[r],a=0;if(i)return i.call(e);if(e&&"number"==typeof e.length)return{next:function(){return e&&a>=e.length&&(e=void 0),{value:e&&e[a++],done:!e}}};throw new TypeError(r?"Object is not iterable.":"Symbol.iterator is not defined.")}(function(){var K=[],me=[],G={};e.forEach(function(Fe){var He=Ri(Ri({},Fe),{before:[],after:[]});He.name&&(G[He.name]=He),K.push(He)}),r.forEach(function(Fe){var He=Ri(Ri({},Fe),{before:[],after:[]});He.name&&(G[He.name]=He),me.push(He)}),me.forEach(function(Fe){if(Fe.toMiddleware){var He=G[Fe.toMiddleware];if(void 0===He)throw new Error(Fe.toMiddleware+" is not found when adding "+(Fe.name||"anonymous")+" middleware "+Fe.relation+" "+Fe.toMiddleware);"after"===Fe.relation&&He.after.push(Fe),"before"===Fe.relation&&He.before.push(Fe)}});var Se=function(K){return K.sort(function(me,G){return kh[G.step]-kh[me.step]||jh[G.priority||"normal"]-jh[me.priority||"normal"]})}(K).map(A).reduce(function(Fe,He){return Fe.push.apply(Fe,Ou(He)),Fe},[]);return Se.map(function(Fe){return Fe.middleware})}().reverse()),He=Fe.next();!He.done;He=Fe.next())K=(0,He.value)(K,me)}catch(bt){G={error:bt}}finally{try{He&&!He.done&&(Se=Fe.return)&&Se.call(Fe)}finally{if(G)throw G.error}}return K}};return E},kh={initialize:5,serialize:4,build:3,finalizeRequest:2,deserialize:1},jh={high:3,normal:2,low:1},hm=function(){function e(r){this.middlewareStack=Ca(),this.config=r}return e.prototype.send=function(r,i,a){var s="function"==typeof i?i:a,m=r.resolveMiddleware(this.middlewareStack,this.config,"function"!=typeof i?i:void 0);if(!s)return m(r).then(function(A){return A.output});m(r).then(function(A){return s(null,A.output)},function(A){return s(A)}).catch(function(){})},e.prototype.destroy=function(){this.config.requestHandler.destroy&&this.config.requestHandler.destroy()},e}(),Bh=function e(){this.middlewareStack=Ca()},sd=function(e,r){return(sd=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(i,a){i.__proto__=a}||function(i,a){for(var u in a)a.hasOwnProperty(u)&&(i[u]=a[u])})(e,r)};function Nl(e,r){var i="function"==typeof Symbol&&e[Symbol.iterator];if(!i)return e;var u,m,a=i.call(e),s=[];try{for(;(void 0===r||r-- >0)&&!(u=a.next()).done;)s.push(u.value)}catch(A){m={error:A}}finally{try{u&&!u.done&&(i=a.return)&&i.call(a)}finally{if(m)throw m.error}}return s}var Us=function(){var e=Object.getPrototypeOf(this).constructor,r=Function.bind.apply(String,function $h(){for(var e=[],r=0;r<arguments.length;r++)e=e.concat(Nl(arguments[r]));return e}([null],arguments)),i=new r;return Object.setPrototypeOf(i,e.prototype),i};Us.prototype=Object.create(String.prototype,{constructor:{value:Us,enumerable:!1,writable:!0,configurable:!0}}),Object.setPrototypeOf(Us,String),function(e){function r(){return null!==e&&e.apply(this,arguments)||this}(function Vh(e,r){function i(){this.constructor=e}sd(e,r),e.prototype=null===r?Object.create(r):(i.prototype=r.prototype,new i)})(r,e),r.prototype.deserializeJSON=function(){return JSON.parse(e.prototype.toString.call(this))},r.prototype.toJSON=function(){return e.prototype.toString.call(this)},r.fromObject=function(i){return i instanceof r?i:new r(i instanceof String||"string"==typeof i?i:JSON.stringify(i))}}(Us);var Nu=function(e){function r(i){var a=e.call(this)||this;return a.input=i,a}return(0,ue.ZT)(r,e),r.prototype.resolveMiddleware=function(i,a,u){this.middlewareStack.use(Tl(a,this.serialize,this.deserialize));var s=i.concat(this.middlewareStack),K=a.requestHandler;return s.resolve(function(me){return K.handle(me.request,u||{})},{logger:a.logger,clientName:"CognitoIdentityClient",commandName:"GetCredentialsForIdentityCommand",inputFilterSensitiveLog:_e.filterSensitiveLog,outputFilterSensitiveLog:ce.filterSensitiveLog})},r.prototype.serialize=function(i,a){return function(e,r){return(0,ue.mG)(void 0,void 0,void 0,function(){var i,a;return(0,ue.Jh)(this,function(u){return i={"content-type":"application/x-amz-json-1.1","x-amz-target":"AWSCognitoIdentityService.GetCredentialsForIdentity"},a=JSON.stringify(function(e,r){return(0,ue.pi)((0,ue.pi)((0,ue.pi)({},null!=e.CustomRoleArn&&{CustomRoleArn:e.CustomRoleArn}),null!=e.IdentityId&&{IdentityId:e.IdentityId}),null!=e.Logins&&{Logins:An(e.Logins,r)})}(e,r)),[2,Nr(r,i,"/",void 0,a)]})})}(i,a)},r.prototype.deserialize=function(i,a){return function(e,r){return(0,ue.mG)(void 0,void 0,void 0,function(){var i,a,u;return(0,ue.Jh)(this,function(s){switch(s.label){case 0:return e.statusCode>=300?[2,Mo(e,r)]:[4,In(e.body,r)];case 1:return i=s.sent(),a=function(e,r){return{Credentials:null!=e.Credentials?Kn(e.Credentials):void 0,IdentityId:null!=e.IdentityId?e.IdentityId:void 0}}(i),u=(0,ue.pi)({$metadata:rt(e)},a),[2,Promise.resolve(u)]}})})}(i,a)},r}(Bh),Fl=function(e,r){return(Fl=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(i,a){i.__proto__=a}||function(i,a){for(var u in a)a.hasOwnProperty(u)&&(i[u]=a[u])})(e,r)},Fu=function(e){function r(i,a){void 0===a&&(a=!0);var u=e.call(this,i)||this;return u.tryNextLink=a,u}return function cd(e,r){function i(){this.constructor=e}Fl(e,r),e.prototype=null===r?Object.create(r):(i.prototype=r.prototype,new i)}(r,e),r}(Error);function yd(e){return Promise.all(Object.keys(e).reduce(function(r,i){var a=e[i];return r.push("string"==typeof a?[i,a]:a().then(function(u){return[i,u]})),r},[])).then(function(r){return r.reduce(function(i,a){var u=function et(e,r){var i="function"==typeof Symbol&&e[Symbol.iterator];if(!i)return e;var u,m,a=i.call(e),s=[];try{for(;(void 0===r||r-- >0)&&!(u=a.next()).done;)s.push(u.value)}catch(A){m={error:A}}finally{try{u&&!u.done&&(i=a.return)&&i.call(a)}finally{if(m)throw m.error}}return s}(a,2);return i[u[0]]=u[1],i},{})})}function nu(e){var r=this;return function(){return er(r,void 0,void 0,function(){var i,a,u,s,m,A,ae,K,me,G,Se,Fe;return or(this,function(He){switch(He.label){case 0:return me=(K=e.client).send,G=Nu.bind,Fe={CustomRoleArn:e.customRoleArn,IdentityId:e.identityId},e.logins?[4,yd(e.logins)]:[3,2];case 1:return Se=He.sent(),[3,3];case 2:Se=void 0,He.label=3;case 3:return[4,me.apply(K,[new(G.apply(Nu,[void 0,(Fe.Logins=Se,Fe)]))])];case 4:return i=He.sent().Credentials,a=void 0===i?function Ll(){throw new Fu("Response from Amazon Cognito contained no credentials")}():i,s=void 0===(u=a.AccessKeyId)?function vd(){throw new Fu("Response from Amazon Cognito contained no access key ID")}():u,m=a.Expiration,ae=void 0===(A=a.SecretKey)?function _d(){throw new Fu("Response from Amazon Cognito contained no secret key")}():A,[2,{identityId:e.identityId,accessKeyId:s,secretAccessKey:ae,sessionToken:a.SessionToken,expiration:m}]}})})}}var oa=function(e){function r(i){var a=e.call(this)||this;return a.input=i,a}return(0,ue.ZT)(r,e),r.prototype.resolveMiddleware=function(i,a,u){this.middlewareStack.use(Tl(a,this.serialize,this.deserialize));var s=i.concat(this.middlewareStack),K=a.requestHandler;return s.resolve(function(me){return K.handle(me.request,u||{})},{logger:a.logger,clientName:"CognitoIdentityClient",commandName:"GetIdCommand",inputFilterSensitiveLog:Oe.filterSensitiveLog,outputFilterSensitiveLog:Qe.filterSensitiveLog})},r.prototype.serialize=function(i,a){return function(e,r){return(0,ue.mG)(void 0,void 0,void 0,function(){var i,a;return(0,ue.Jh)(this,function(u){return i={"content-type":"application/x-amz-json-1.1","x-amz-target":"AWSCognitoIdentityService.GetId"},a=JSON.stringify(function(e,r){return(0,ue.pi)((0,ue.pi)((0,ue.pi)({},null!=e.AccountId&&{AccountId:e.AccountId}),null!=e.IdentityPoolId&&{IdentityPoolId:e.IdentityPoolId}),null!=e.Logins&&{Logins:An(e.Logins,r)})}(e,r)),[2,Nr(r,i,"/",void 0,a)]})})}(i,a)},r.prototype.deserialize=function(i,a){return function(e,r){return(0,ue.mG)(void 0,void 0,void 0,function(){var i,a,u;return(0,ue.Jh)(this,function(s){switch(s.label){case 0:return e.statusCode>=300?[2,Ro(e,r)]:[4,In(e.body,r)];case 1:return i=s.sent(),a=function(e,r){return{IdentityId:null!=e.IdentityId?e.IdentityId:void 0}}(i),u=(0,ue.pi)({$metadata:rt(e)},a),[2,Promise.resolve(u)]}})})}(i,a)},r}(Bh),Ul="IdentityIds",ep=function(){function e(r){void 0===r&&(r="aws:cognito-identity-ids"),this.dbName=r}return e.prototype.getItem=function(r){return this.withObjectStore("readonly",function(i){var a=i.get(r);return new Promise(function(u){a.onerror=function(){return u(null)},a.onsuccess=function(){return u(a.result?a.result.value:null)}})}).catch(function(){return null})},e.prototype.removeItem=function(r){return this.withObjectStore("readwrite",function(i){var a=i.delete(r);return new Promise(function(u,s){a.onerror=function(){return s(a.error)},a.onsuccess=function(){return u()}})})},e.prototype.setItem=function(r,i){return this.withObjectStore("readwrite",function(a){var u=a.put({id:r,value:i});return new Promise(function(s,m){u.onerror=function(){return m(u.error)},u.onsuccess=function(){return s()}})})},e.prototype.getDb=function(){var r=self.indexedDB.open(this.dbName,1);return new Promise(function(i,a){r.onsuccess=function(){i(r.result)},r.onerror=function(){a(r.error)},r.onblocked=function(){a(new Error("Unable to access DB"))},r.onupgradeneeded=function(){var u=r.result;u.onerror=function(){a(new Error("Failed to create object store"))},u.createObjectStore(Ul,{keyPath:"id"})}})},e.prototype.withObjectStore=function(r,i){return this.getDb().then(function(a){var u=a.transaction(Ul,r);return u.oncomplete=function(){return a.close()},new Promise(function(s,m){u.onerror=function(){return m(u.error)},s(i(u.objectStore(Ul)))}).catch(function(s){throw a.close(),s})})},e}(),bd=function(){function e(r){void 0===r&&(r={}),this.store=r}return e.prototype.getItem=function(r){return r in this.store?this.store[r]:null},e.prototype.removeItem=function(r){delete this.store[r]},e.prototype.setItem=function(r,i){this.store[r]=i},e}(),wd=new bd;var tp=new Ye.k("Parser"),np=function(e){var a,r={};return e.aws_mobile_analytics_app_id&&(r.Analytics={AWSPinpoint:{appId:e.aws_mobile_analytics_app_id,region:e.aws_mobile_analytics_app_region}}),(e.aws_cognito_identity_pool_id||e.aws_user_pools_id)&&(r.Auth={userPoolId:e.aws_user_pools_id,userPoolWebClientId:e.aws_user_pools_web_client_id,region:e.aws_cognito_region,identityPoolId:e.aws_cognito_identity_pool_id,identityPoolRegion:e.aws_cognito_region,mandatorySignIn:"enable"===e.aws_mandatory_sign_in,signUpVerificationMethod:e.aws_cognito_sign_up_verification_method||"code"}),a=e.aws_user_files_s3_bucket?{AWSS3:{bucket:e.aws_user_files_s3_bucket,region:e.aws_user_files_s3_bucket_region,dangerouslyConnectToHttpEndpointForTesting:e.aws_user_files_s3_dangerously_connect_to_http_endpoint_for_testing}}:e?e.Storage||e:{},e.Logging&&(r.Logging=(0,Ge.pi)((0,Ge.pi)({},e.Logging),{region:e.aws_project_region})),e.geo&&(r.Geo=Object.assign({},e.geo),e.geo.amazon_location_service&&(r.Geo={AmazonLocationService:e.geo.amazon_location_service})),r.Analytics=Object.assign({},r.Analytics,e.Analytics),r.Auth=Object.assign({},r.Auth,e.Auth),r.Storage=Object.assign({},a),r.Logging=Object.assign({},r.Logging,e.Logging),tp.debug("parse config",e,"to amplifyconfig",r),r},rp=_(89801);function Vl(e,r,i,a){return new(i||(i=Promise))(function(s,m){function A(K){try{E(a.next(K))}catch(me){m(me)}}function ae(K){try{E(a.throw(K))}catch(me){m(me)}}function E(K){K.done?s(K.value):function u(s){return s instanceof i?s:new i(function(m){m(s)})}(K.value).then(A,ae)}E((a=a.apply(e,r||[])).next())})}function ku(e,r){var a,u,s,m,i={label:0,sent:function(){if(1&s[0])throw s[1];return s[1]},trys:[],ops:[]};return m={next:A(0),throw:A(1),return:A(2)},"function"==typeof Symbol&&(m[Symbol.iterator]=function(){return this}),m;function A(E){return function(K){return function ae(E){if(a)throw new TypeError("Generator is already executing.");for(;i;)try{if(a=1,u&&(s=2&E[0]?u.return:E[0]?u.throw||((s=u.return)&&s.call(u),0):u.next)&&!(s=s.call(u,E[1])).done)return s;switch(u=0,s&&(E=[2&E[0],s.value]),E[0]){case 0:case 1:s=E;break;case 4:return i.label++,{value:E[1],done:!1};case 5:i.label++,u=E[1],E=[0];continue;case 7:E=i.ops.pop(),i.trys.pop();continue;default:if(!(s=(s=i.trys).length>0&&s[s.length-1])&&(6===E[0]||2===E[0])){i=0;continue}if(3===E[0]&&(!s||E[1]>s[0]&&E[1]<s[3])){i.label=E[1];break}if(6===E[0]&&i.label<s[1]){i.label=s[1],s=E;break}if(s&&i.label<s[2]){i.label=s[2],i.ops.push(E);break}s[2]&&i.ops.pop(),i.trys.pop();continue}E=r.call(e,i)}catch(K){E=[6,K],u=0}finally{a=s=0}if(5&E[0])throw E[1];return{value:E[0]?E[1]:void 0,done:!0}}([E,K])}}}var js=function(e){return encodeURIComponent(e).replace(/[!'()*]/g,gp)},gp=function(e){return"%"+e.charCodeAt(0).toString(16).toUpperCase()};function yp(e){return void 0===e&&(e=0),new Promise(function(r,i){e&&setTimeout(function(){var a=new Error("Request did not complete within "+e+" ms");a.name="TimeoutError",i(a)},e)})}for(var vp=function(){function e(r){this.requestTimeout=(void 0===r?{}:r).requestTimeout}return e.prototype.destroy=function(){},e.prototype.handle=function(r,i){var u=(void 0===i?{}:i).abortSignal,s=this.requestTimeout;if(u?.aborted){var m=new Error("Request aborted");return m.name="AbortError",Promise.reject(m)}var A=r.path;if(r.query){var ae=function mp(e){var r,i,a=[];try{for(var u=function Gl(e){var r="function"==typeof Symbol&&Symbol.iterator,i=r&&e[r],a=0;if(i)return i.call(e);if(e&&"number"==typeof e.length)return{next:function(){return e&&a>=e.length&&(e=void 0),{value:e&&e[a++],done:!e}}};throw new TypeError(r?"Object is not iterable.":"Symbol.iterator is not defined.")}(Object.keys(e).sort()),s=u.next();!s.done;s=u.next()){var m=s.value,A=e[m];if(m=js(m),Array.isArray(A))for(var ae=0,E=A.length;ae<E;ae++)a.push(m+"="+js(A[ae]));else{var K=m;(A||"string"==typeof A)&&(K+="="+js(A)),a.push(K)}}}catch(me){r={error:me}}finally{try{s&&!s.done&&(i=u.return)&&i.call(u)}finally{if(r)throw r.error}}return a.join("&")}(r.query);ae&&(A+="?"+ae)}var E=r.port,K=r.method,me=r.protocol+"//"+r.hostname+(E?":"+E:"")+A,Se={body:"GET"===K||"HEAD"===K?void 0:r.body,headers:new Headers(r.headers),method:K};typeof AbortController<"u"&&(Se.signal=u);var Fe=new Request(me,Se),He=[fetch(Fe).then(function(dt){var bt,Rt,tn=dt.headers,bn={};try{for(var Bn=function aa(e){var r="function"==typeof Symbol&&Symbol.iterator,i=r&&e[r],a=0;if(i)return i.call(e);if(e&&"number"==typeof e.length)return{next:function(){return e&&a>=e.length&&(e=void 0),{value:e&&e[a++],done:!e}}};throw new TypeError(r?"Object is not iterable.":"Symbol.iterator is not defined.")}(tn.entries()),Xn=Bn.next();!Xn.done;Xn=Bn.next()){var ri=Xn.value;bn[ri[0]]=ri[1]}}catch(Es){bt={error:Es}}finally{try{Xn&&!Xn.done&&(Rt=Bn.return)&&Rt.call(Bn)}finally{if(bt)throw bt.error}}return void 0!==dt.body?{response:new kr({headers:bn,statusCode:dt.status,body:dt.body})}:dt.blob().then(function(Es){return{response:new kr({headers:bn,statusCode:dt.status,body:Es})}})}),yp(s)];return u&&He.push(new Promise(function(dt,bt){u.onabort=function(){var Rt=new Error("Request aborted");Rt.name="AbortError",bt(Rt)}})),Promise.race(He)},e}(),Yo={},$i=new Array(64),Yr=0,Aa="A".charCodeAt(0),Hu="Z".charCodeAt(0);Yr+Aa<=Hu;Yr++){var ys=String.fromCharCode(Yr+Aa);Yo[ys]=Yr,$i[Yr]=ys}for(Yr=0,Aa="a".charCodeAt(0),Hu="z".charCodeAt(0);Yr+Aa<=Hu;Yr++)ys=String.fromCharCode(Yr+Aa),Yo[ys]=zu=Yr+26,$i[zu]=ys;for(Yr=0;Yr<10;Yr++){var zu;Yo[Yr.toString(10)]=Yr+52,ys=Yr.toString(10),Yo[ys]=zu=Yr+52,$i[zu]=ys}Yo["+"]=62,$i[62]="+",Yo["/"]=63,$i[63]="/";var ou=6,Gu=8;function $u(e){var r=e.length/4*3;"=="===e.substr(-2)?r-=2:"="===e.substr(-1)&&r--;for(var i=new ArrayBuffer(r),a=new DataView(i),u=0;u<e.length;u+=4){for(var s=0,m=0,A=u,ae=u+3;A<=ae;A++)"="!==e[A]?(s|=Yo[e[A]]<<(ae-A)*ou,m+=ou):s>>=ou;var E=u/4*3;s>>=m%Gu;for(var K=Math.floor(m/Gu),me=0;me<K;me++){var G=(K-me-1)*Gu;a.setUint8(E+me,(s&255<<G)>>G)}}return new Uint8Array(i)}function bp(e){return new Promise(function(r,i){var a=new FileReader;a.onloadend=function(){var u;if(2!==a.readyState)return i(new Error("Reader aborted too early"));var s=null!==(u=a.result)&&void 0!==u?u:"",m=s.indexOf(",");r(s.substring(m>-1?m+1:s.length))},a.onabort=function(){return i(new Error("Read aborted"))},a.onerror=function(){return i(a.error)},a.readAsDataURL(e)})}var ua=function(){return ua=Object.assign||function(r){for(var i,a=1,u=arguments.length;a<u;a++)for(var s in i=arguments[a])Object.prototype.hasOwnProperty.call(i,s)&&(r[s]=i[s]);return r},ua.apply(this,arguments)};function Wu(e,r,i,a){return new(i||(i=Promise))(function(s,m){function A(K){try{E(a.next(K))}catch(me){m(me)}}function ae(K){try{E(a.throw(K))}catch(me){m(me)}}function E(K){K.done?s(K.value):function u(s){return s instanceof i?s:new i(function(m){m(s)})}(K.value).then(A,ae)}E((a=a.apply(e,r||[])).next())})}function Ku(e,r){var a,u,s,m,i={label:0,sent:function(){if(1&s[0])throw s[1];return s[1]},trys:[],ops:[]};return m={next:A(0),throw:A(1),return:A(2)},"function"==typeof Symbol&&(m[Symbol.iterator]=function(){return this}),m;function A(E){return function(K){return function ae(E){if(a)throw new TypeError("Generator is already executing.");for(;i;)try{if(a=1,u&&(s=2&E[0]?u.return:E[0]?u.throw||((s=u.return)&&s.call(u),0):u.next)&&!(s=s.call(u,E[1])).done)return s;switch(u=0,s&&(E=[2&E[0],s.value]),E[0]){case 0:case 1:s=E;break;case 4:return i.label++,{value:E[1],done:!1};case 5:i.label++,u=E[1],E=[0];continue;case 7:E=i.ops.pop(),i.trys.pop();continue;default:if(!(s=(s=i.trys).length>0&&s[s.length-1])&&(6===E[0]||2===E[0])){i=0;continue}if(3===E[0]&&(!s||E[1]>s[0]&&E[1]<s[3])){i.label=E[1];break}if(6===E[0]&&i.label<s[1]){i.label=s[1],s=E;break}if(s&&i.label<s[2]){i.label=s[2],i.ops.push(E);break}s[2]&&i.ops.pop(),i.trys.pop();continue}E=r.call(e,i)}catch(K){E=[6,K],u=0}finally{a=s=0}if(5&E[0])throw E[1];return{value:E[0]?E[1]:void 0,done:!0}}([E,K])}}}function Cp(e,r){var i="function"==typeof Symbol&&e[Symbol.iterator];if(!i)return e;var u,m,a=i.call(e),s=[];try{for(;(void 0===r||r-- >0)&&!(u=a.next()).done;)s.push(u.value)}catch(A){m={error:A}}finally{try{u&&!u.done&&(i=a.return)&&i.call(a)}finally{if(m)throw m.error}}return s}var Ld={name:"retryMiddleware",tags:["RETRY"],step:"finalizeRequest",priority:"high",override:!0},Ud=function(e){return{applyToStack:function(r){r.add(function(e){return function(r,i){return function(a){return Wu(void 0,void 0,void 0,function(){var u;return Ku(this,function(s){return!(null===(u=e?.retryStrategy)||void 0===u)&&u.mode&&(i.userAgent=function Ip(){for(var e=[],r=0;r<arguments.length;r++)e=e.concat(Cp(arguments[r]));return e}(i.userAgent||[],[["cfg/retry-mode",e.retryStrategy.mode]])),[2,e.retryStrategy.retry(r,a)]})})}}}(e),Ld)}}},Pp=["AuthFailure","InvalidSignatureException","RequestExpired","RequestInTheFuture","RequestTimeTooSkewed","SignatureDoesNotMatch"],Yl=["BandwidthLimitExceeded","EC2ThrottledException","LimitExceededException","PriorRequestNotComplete","ProvisionedThroughputExceededException","RequestLimitExceeded","RequestThrottled","RequestThrottledException","SlowDown","ThrottledException","Throttling","ThrottlingException","TooManyRequestsException","TransactionInProgressException"],jd=["AbortError","TimeoutError","RequestTimeout","RequestTimeoutException"],Bd=[500,502,503,504],Zu=function(e){var r,i;return 429===(null===(r=e.$metadata)||void 0===r?void 0:r.httpStatusCode)||Yl.includes(e.name)||1==(null===(i=e.$retryable)||void 0===i?void 0:i.throttling)},Op=_(19444),Vd=500,Fp=function(e){var r=e,i=e,a=function(A){return"TimeoutError"===A.name?10:5},u=function(A){return a(A)<=i};return Object.freeze({hasRetryTokens:u,retrieveRetryTokens:function(A){if(!u(A))throw new Error("No retry token available");var ae=a(A);return i-=ae,ae},releaseRetryTokens:function(A){i+=A??1,i=Math.min(i,r)}})},Lp=function(e,r){return Math.floor(Math.min(2e4,Math.random()*Math.pow(2,r)*e))},Up=function(e){return!!e&&(function(e){return void 0!==e.$retryable}(e)||function(e){return Pp.includes(e.name)}(e)||Zu(e)||function(e){var r;return jd.includes(e.name)||Bd.includes((null===(r=e.$metadata)||void 0===r?void 0:r.httpStatusCode)||0)}(e))},zd="standard",Gd=function(){function e(r,i){var a,u,s;this.maxAttemptsProvider=r,this.mode=zd,this.retryDecider=null!==(a=i?.retryDecider)&&void 0!==a?a:Up,this.delayDecider=null!==(u=i?.delayDecider)&&void 0!==u?u:Lp,this.retryQuota=null!==(s=i?.retryQuota)&&void 0!==s?s:Fp(Vd)}return e.prototype.shouldRetry=function(r,i,a){return i<a&&this.retryDecider(r)&&this.retryQuota.hasRetryTokens(r)},e.prototype.getMaxAttempts=function(){return Wu(this,void 0,void 0,function(){var r;return Ku(this,function(a){switch(a.label){case 0:return a.trys.push([0,2,,3]),[4,this.maxAttemptsProvider()];case 1:return r=a.sent(),[3,3];case 2:return a.sent(),r=3,[3,3];case 3:return[2,r]}})})},e.prototype.retry=function(r,i){return Wu(this,void 0,void 0,function(){var a,u,s,m,A,ae,E,K;return Ku(this,function(me){switch(me.label){case 0:return u=0,s=0,[4,this.getMaxAttempts()];case 1:m=me.sent(),Ti.isInstance(A=i.request)&&(A.headers["amz-sdk-invocation-id"]=(0,Op.v4)()),ae=function(){var G,Se,Fe,He,dt;return Ku(this,function(bt){switch(bt.label){case 0:return bt.trys.push([0,2,,5]),Ti.isInstance(A)&&(A.headers["amz-sdk-request"]="attempt="+(u+1)+"; max="+m),[4,r(i)];case 1:return G=bt.sent(),Se=G.response,Fe=G.output,E.retryQuota.releaseRetryTokens(a),Fe.$metadata.attempts=u+1,Fe.$metadata.totalRetryDelay=s,[2,{value:{response:Se,output:Fe}}];case 2:return He=bt.sent(),u++,E.shouldRetry(He,u,m)?(a=E.retryQuota.retrieveRetryTokens(He),dt=E.delayDecider(Zu(He)?500:100,u),s+=dt,[4,new Promise(function(Rt){return setTimeout(Rt,dt)})]):[3,4];case 3:return bt.sent(),[2,"continue"];case 4:throw He.$metadata||(He.$metadata={}),He.$metadata.attempts=u,He.$metadata.totalRetryDelay=s,He;case 5:return[2]}})},E=this,me.label=2;case 2:return[5,ae()];case 3:return"object"==typeof(K=me.sent())?[2,K.value]:[3,2];case 4:return[2]}})})},e}(),kp=function(e){var r=au(e.maxAttempts);return ua(ua({},e),{maxAttempts:r,retryStrategy:e.retryStrategy||new Gd(r)})},au=function(e){if(void 0===e&&(e=3),"number"==typeof e){var r=Promise.resolve(e);return function(){return r}}return e};var Qd=_(87230),ry=_.n(Qd),Xl=_(12622),qd="cognito-identity.{region}.amazonaws.com",Kp=new Set(["af-south-1","ap-east-1","ap-northeast-1","ap-northeast-2","ap-south-1","ap-southeast-1","ap-southeast-2","ca-central-1","eu-central-1","eu-north-1","eu-south-1","eu-west-1","eu-west-2","eu-west-3","me-south-1","sa-east-1","us-east-1","us-east-2","us-west-1","us-west-2"]),ef=new Set(["cn-north-1","cn-northwest-1"]),Yp=new Set(["us-iso-east-1"]),Zp=new Set(["us-isob-east-1"]),Qp=new Set(["us-gov-east-1","us-gov-west-1"]);function tc(e,r){var i="function"==typeof Symbol&&e[Symbol.iterator];if(!i)return e;var u,m,a=i.call(e),s=[];try{for(;(void 0===r||r-- >0)&&!(u=a.next()).done;)s.push(u.value)}catch(A){m={error:A}}finally{try{u&&!u.done&&(i=a.return)&&i.call(a)}finally{if(m)throw m.error}}return s}var e,r,i,sf={apiVersion:"2014-06-30",disableHostPrefix:!1,logger:{},regionInfoProvider:function(e,r){var i=void 0;switch(e){case"ap-northeast-1":i={hostname:"cognito-identity.ap-northeast-1.amazonaws.com",partition:"aws"};break;case"ap-northeast-2":i={hostname:"cognito-identity.ap-northeast-2.amazonaws.com",partition:"aws"};break;case"ap-south-1":i={hostname:"cognito-identity.ap-south-1.amazonaws.com",partition:"aws"};break;case"ap-southeast-1":i={hostname:"cognito-identity.ap-southeast-1.amazonaws.com",partition:"aws"};break;case"ap-southeast-2":i={hostname:"cognito-identity.ap-southeast-2.amazonaws.com",partition:"aws"};break;case"ca-central-1":i={hostname:"cognito-identity.ca-central-1.amazonaws.com",partition:"aws"};break;case"cn-north-1":i={hostname:"cognito-identity.cn-north-1.amazonaws.com.cn",partition:"aws-cn"};break;case"eu-central-1":i={hostname:"cognito-identity.eu-central-1.amazonaws.com",partition:"aws"};break;case"eu-north-1":i={hostname:"cognito-identity.eu-north-1.amazonaws.com",partition:"aws"};break;case"eu-west-1":i={hostname:"cognito-identity.eu-west-1.amazonaws.com",partition:"aws"};break;case"eu-west-2":i={hostname:"cognito-identity.eu-west-2.amazonaws.com",partition:"aws"};break;case"eu-west-3":i={hostname:"cognito-identity.eu-west-3.amazonaws.com",partition:"aws"};break;case"fips-us-east-1":i={hostname:"cognito-identity-fips.us-east-1.amazonaws.com",partition:"aws",signingRegion:"us-east-1"};break;case"fips-us-east-2":i={hostname:"cognito-identity-fips.us-east-2.amazonaws.com",partition:"aws",signingRegion:"us-east-2"};break;case"fips-us-gov-west-1":i={hostname:"cognito-identity-fips.us-gov-west-1.amazonaws.com",partition:"aws-us-gov",signingRegion:"us-gov-west-1"};break;case"fips-us-west-2":i={hostname:"cognito-identity-fips.us-west-2.amazonaws.com",partition:"aws",signingRegion:"us-west-2"};break;case"sa-east-1":i={hostname:"cognito-identity.sa-east-1.amazonaws.com",partition:"aws"};break;case"us-east-1":i={hostname:"cognito-identity.us-east-1.amazonaws.com",partition:"aws"};break;case"us-east-2":i={hostname:"cognito-identity.us-east-2.amazonaws.com",partition:"aws"};break;case"us-gov-west-1":i={hostname:"cognito-identity.us-gov-west-1.amazonaws.com",partition:"aws-us-gov"};break;case"us-west-1":i={hostname:"cognito-identity.us-west-1.amazonaws.com",partition:"aws"};break;case"us-west-2":i={hostname:"cognito-identity.us-west-2.amazonaws.com",partition:"aws"};break;default:Kp.has(e)&&(i={hostname:qd.replace("{region}",e),partition:"aws"}),ef.has(e)&&(i={hostname:"cognito-identity.{region}.amazonaws.com.cn".replace("{region}",e),partition:"aws-cn"}),Yp.has(e)&&(i={hostname:"cognito-identity.{region}.c2s.ic.gov".replace("{region}",e),partition:"aws-iso"}),Zp.has(e)&&(i={hostname:"cognito-identity.{region}.sc2s.sgov.gov".replace("{region}",e),partition:"aws-iso-b"}),Qp.has(e)&&(i={hostname:"cognito-identity.{region}.amazonaws.com".replace("{region}",e),partition:"aws-us-gov"}),void 0===i&&(i={hostname:qd.replace("{region}",e),partition:"aws"})}return Promise.resolve((0,ue.pi)({signingService:"cognito-identity"},i))},serviceId:"Cognito Identity",urlParser:function(e){var A,r=new URL(e),i=r.hostname,a=r.pathname,u=r.port,s=r.protocol,m=r.search;return m&&(A=function fy(e){var r,i,a={};if(e=e.replace(/^\?/,""))try{for(var u=function ec(e){var r="function"==typeof Symbol&&Symbol.iterator,i=r&&e[r],a=0;if(i)return i.call(e);if(e&&"number"==typeof e.length)return{next:function(){return e&&a>=e.length&&(e=void 0),{value:e&&e[a++],done:!e}}};throw new TypeError(r?"Object is not iterable.":"Symbol.iterator is not defined.")}(e.split("&")),s=u.next();!s.done;s=u.next()){var A=tc(s.value.split("="),2),ae=A[0],E=A[1],K=void 0===E?null:E;ae=decodeURIComponent(ae),K&&(K=decodeURIComponent(K)),ae in a?Array.isArray(a[ae])?a[ae].push(K):a[ae]=[a[ae],K]:a[ae]=K}}catch(me){r={error:me}}finally{try{s&&!s.done&&(i=u.return)&&i.call(u)}finally{if(r)throw r.error}}return a}(m)),{hostname:i,port:u?parseInt(u):void 0,protocol:s,path:a,query:A}}},af=(0,ue.pi)((0,ue.pi)({},sf),{runtime:"browser",base64Decoder:$u,base64Encoder:function zm(e){for(var r="",i=0;i<e.length;i+=3){for(var a=0,u=0,s=i,m=Math.min(i+3,e.length);s<m;s++)a|=e[s]<<(m-s-1)*Gu,u+=Gu;var A=Math.ceil(u/ou);a<<=A*ou-u;for(var ae=1;ae<=A;ae++){var E=(A-ae)*ou;r+=$i[(a&63<<E)>>E]}r+="==".slice(0,4-A)}return r},bodyLengthChecker:function Bp(e){if("string"==typeof e){for(var r=e.length,i=r-1;i>=0;i--){var a=e.charCodeAt(i);a>127&&a<=2047?r++:a>2047&&a<=65535&&(r+=2)}return r}return"number"==typeof e.byteLength?e.byteLength:"number"==typeof e.size?e.size:void 0},credentialDefaultProvider:function(e){return function(){return Promise.reject(new Error("Credential is missing"))}},defaultUserAgentProvider:(e={serviceId:sf.serviceId,clientVersion:"3.6.1"},r=e.serviceId,i=e.clientVersion,function(){return function ql(e,r,i,a){return new(i||(i=Promise))(function(s,m){function A(K){try{E(a.next(K))}catch(me){m(me)}}function ae(K){try{E(a.throw(K))}catch(me){m(me)}}function E(K){K.done?s(K.value):function u(s){return s instanceof i?s:new i(function(m){m(s)})}(K.value).then(A,ae)}E((a=a.apply(e,r||[])).next())})}(void 0,void 0,void 0,function(){var a,u,s,m,A,ae,E,K,me;return function Hp(e,r){var a,u,s,m,i={label:0,sent:function(){if(1&s[0])throw s[1];return s[1]},trys:[],ops:[]};return m={next:A(0),throw:A(1),return:A(2)},"function"==typeof Symbol&&(m[Symbol.iterator]=function(){return this}),m;function A(E){return function(K){return function ae(E){if(a)throw new TypeError("Generator is already executing.");for(;i;)try{if(a=1,u&&(s=2&E[0]?u.return:E[0]?u.throw||((s=u.return)&&s.call(u),0):u.next)&&!(s=s.call(u,E[1])).done)return s;switch(u=0,s&&(E=[2&E[0],s.value]),E[0]){case 0:case 1:s=E;break;case 4:return i.label++,{value:E[1],done:!1};case 5:i.label++,u=E[1],E=[0];continue;case 7:E=i.ops.pop(),i.trys.pop();continue;default:if(!(s=(s=i.trys).length>0&&s[s.length-1])&&(6===E[0]||2===E[0])){i=0;continue}if(3===E[0]&&(!s||E[1]>s[0]&&E[1]<s[3])){i.label=E[1];break}if(6===E[0]&&i.label<s[1]){i.label=s[1],s=E;break}if(s&&i.label<s[2]){i.label=s[2],i.ops.push(E);break}s[2]&&i.ops.pop(),i.trys.pop();continue}E=r.call(e,i)}catch(K){E=[6,K],u=0}finally{a=s=0}if(5&E[0])throw E[1];return{value:E[0]?E[1]:void 0,done:!0}}([E,K])}}}(this,function(G){return a=null!==(s=window?.navigator)&&void 0!==s&&s.userAgent?ry().parse(window.navigator.userAgent):void 0,u=[["aws-sdk-js",i],["os/"+((null===(m=a?.os)||void 0===m?void 0:m.name)||"other"),null===(A=a?.os)||void 0===A?void 0:A.version],["lang/js"],["md/browser",(null!==(E=null===(ae=a?.browser)||void 0===ae?void 0:ae.name)&&void 0!==E?E:"unknown")+"_"+(null!==(me=null===(K=a?.browser)||void 0===K?void 0:K.version)&&void 0!==me?me:"unknown")]],r&&u.push(["api/"+r,i]),[2,u]})})}),maxAttempts:3,region:function(){return Promise.reject("Region is missing")},requestHandler:new vp,sha256:rp.Sha256,streamCollector:function(e){return"function"==typeof Blob&&e instanceof Blob?function Pd(e){return Vl(this,void 0,void 0,function(){var r,i;return ku(this,function(a){switch(a.label){case 0:return[4,bp(e)];case 1:return r=a.sent(),i=$u(r),[2,new Uint8Array(i)]}})})}(e):function _p(e){return Vl(this,void 0,void 0,function(){var r,i,a,u,s,m,A;return ku(this,function(ae){switch(ae.label){case 0:r=new Uint8Array(0),i=e.getReader(),a=!1,ae.label=1;case 1:return a?[3,3]:[4,i.read()];case 2:return u=ae.sent(),s=u.done,(m=u.value)&&(A=r,(r=new Uint8Array(A.length+m.length)).set(A),r.set(m,A.length)),a=s,[3,1];case 3:return[2,r]}})})}(e)},utf8Decoder:Xl.fromUtf8,utf8Encoder:Xl.toUtf8}),Uo=function(){return Uo=Object.assign||function(r){for(var i,a=1,u=arguments.length;a<u;a++)for(var s in i=arguments[a])Object.prototype.hasOwnProperty.call(i,s)&&(r[s]=i[s]);return r},Uo.apply(this,arguments)};var cg=function(e){var r;return Uo(Uo({},e),{tls:null===(r=e.tls)||void 0===r||r,endpoint:e.endpoint?hf(e):function(){return dg(e)},isCustomEndpoint:!!e.endpoint})},hf=function(e){var r=e.endpoint;if("string"==typeof r){var a=Promise.resolve((0,e.urlParser)(r));return function(){return a}}if("object"==typeof r){var u=Promise.resolve(r);return function(){return u}}return r},dg=function(e){return function lf(e,r,i,a){return new(i||(i=Promise))(function(s,m){function A(K){try{E(a.next(K))}catch(me){m(me)}}function ae(K){try{E(a.throw(K))}catch(me){m(me)}}function E(K){K.done?s(K.value):function u(s){return s instanceof i?s:new i(function(m){m(s)})}(K.value).then(A,ae)}E((a=a.apply(e,r||[])).next())})}(void 0,void 0,void 0,function(){var r,i,a,s,m;return function og(e,r){var a,u,s,m,i={label:0,sent:function(){if(1&s[0])throw s[1];return s[1]},trys:[],ops:[]};return m={next:A(0),throw:A(1),return:A(2)},"function"==typeof Symbol&&(m[Symbol.iterator]=function(){return this}),m;function A(E){return function(K){return function ae(E){if(a)throw new TypeError("Generator is already executing.");for(;i;)try{if(a=1,u&&(s=2&E[0]?u.return:E[0]?u.throw||((s=u.return)&&s.call(u),0):u.next)&&!(s=s.call(u,E[1])).done)return s;switch(u=0,s&&(E=[2&E[0],s.value]),E[0]){case 0:case 1:s=E;break;case 4:return i.label++,{value:E[1],done:!1};case 5:i.label++,u=E[1],E=[0];continue;case 7:E=i.ops.pop(),i.trys.pop();continue;default:if(!(s=(s=i.trys).length>0&&s[s.length-1])&&(6===E[0]||2===E[0])){i=0;continue}if(3===E[0]&&(!s||E[1]>s[0]&&E[1]<s[3])){i.label=E[1];break}if(6===E[0]&&i.label<s[1]){i.label=s[1],s=E;break}if(s&&i.label<s[2]){i.label=s[2],i.ops.push(E);break}s[2]&&i.ops.pop(),i.trys.pop();continue}E=r.call(e,i)}catch(K){E=[6,K],u=0}finally{a=s=0}if(5&E[0])throw E[1];return{value:E[0]?E[1]:void 0,done:!0}}([E,K])}}}(this,function(A){switch(A.label){case 0:return i=void 0===(r=e.tls)||r,[4,e.region()];case 1:if(a=A.sent(),!new RegExp(/^([a-zA-Z0-9]|[a-zA-Z0-9][a-zA-Z0-9-]{0,61}[a-zA-Z0-9])$/).test(a))throw new Error("Invalid region in client config");return[4,e.regionInfoProvider(a)];case 2:if(!(s=(null!==(m=A.sent())&&void 0!==m?m:{}).hostname))throw new Error("Cannot resolve hostname from client config");return[2,e.urlParser((i?"https:":"http:")+"//"+s)]}})})},hu=function(e){if(!e.region)throw new Error("Region is missing");return Uo(Uo({},e),{region:ic(e.region)})},ic=function(e){if("string"==typeof e){var r=Promise.resolve(e);return function(){return r}}return e},Vs=function(){return Vs=Object.assign||function(r){for(var i,a=1,u=arguments.length;a<u;a++)for(var s in i=arguments[a])Object.prototype.hasOwnProperty.call(i,s)&&(r[s]=i[s]);return r},Vs.apply(this,arguments)};var sc="content-length",wg={step:"build",tags:["SET_CONTENT_LENGTH","CONTENT_LENGTH"],name:"contentLengthMiddleware",override:!0},ac=function(e){return{applyToStack:function(r){r.add(function bg(e){var r=this;return function(i){return function(a){return function gg(e,r,i,a){return new(i||(i=Promise))(function(s,m){function A(K){try{E(a.next(K))}catch(me){m(me)}}function ae(K){try{E(a.throw(K))}catch(me){m(me)}}function E(K){K.done?s(K.value):function u(s){return s instanceof i?s:new i(function(m){m(s)})}(K.value).then(A,ae)}E((a=a.apply(e,r||[])).next())})}(r,void 0,void 0,function(){var u,s,m,A,ae;return function mg(e,r){var a,u,s,m,i={label:0,sent:function(){if(1&s[0])throw s[1];return s[1]},trys:[],ops:[]};return m={next:A(0),throw:A(1),return:A(2)},"function"==typeof Symbol&&(m[Symbol.iterator]=function(){return this}),m;function A(E){return function(K){return function ae(E){if(a)throw new TypeError("Generator is already executing.");for(;i;)try{if(a=1,u&&(s=2&E[0]?u.return:E[0]?u.throw||((s=u.return)&&s.call(u),0):u.next)&&!(s=s.call(u,E[1])).done)return s;switch(u=0,s&&(E=[2&E[0],s.value]),E[0]){case 0:case 1:s=E;break;case 4:return i.label++,{value:E[1],done:!1};case 5:i.label++,u=E[1],E=[0];continue;case 7:E=i.ops.pop(),i.trys.pop();continue;default:if(!(s=(s=i.trys).length>0&&s[s.length-1])&&(6===E[0]||2===E[0])){i=0;continue}if(3===E[0]&&(!s||E[1]>s[0]&&E[1]<s[3])){i.label=E[1];break}if(6===E[0]&&i.label<s[1]){i.label=s[1],s=E;break}if(s&&i.label<s[2]){i.label=s[2],i.ops.push(E);break}s[2]&&i.ops.pop(),i.trys.pop();continue}E=r.call(e,i)}catch(K){E=[6,K],u=0}finally{a=s=0}if(5&E[0])throw E[1];return{value:E[0]?E[1]:void 0,done:!0}}([E,K])}}}(this,function(E){return Ti.isInstance(u=a.request)&&(m=u.headers,(s=u.body)&&-1===Object.keys(m).map(function(K){return K.toLowerCase()}).indexOf(sc)&&void 0!==(A=e(s))&&(u.headers=Vs(Vs({},u.headers),((ae={})[sc]=String(A),ae)))),[2,i(Vs(Vs({},a),{request:u}))]})})}}}(e.bodyLengthChecker),wg)}}};var dc={name:"hostHeaderMiddleware",step:"build",priority:"low",tags:["HOST"],override:!0},_s=function(e){return{applyToStack:function(r){r.add(function(e){return function(r){return function(i){return function Eg(e,r,i,a){return new(i||(i=Promise))(function(s,m){function A(K){try{E(a.next(K))}catch(me){m(me)}}function ae(K){try{E(a.throw(K))}catch(me){m(me)}}function E(K){K.done?s(K.value):function u(s){return s instanceof i?s:new i(function(m){m(s)})}(K.value).then(A,ae)}E((a=a.apply(e,r||[])).next())})}(void 0,void 0,void 0,function(){var a,u;return function Sg(e,r){var a,u,s,m,i={label:0,sent:function(){if(1&s[0])throw s[1];return s[1]},trys:[],ops:[]};return m={next:A(0),throw:A(1),return:A(2)},"function"==typeof Symbol&&(m[Symbol.iterator]=function(){return this}),m;function A(E){return function(K){return function ae(E){if(a)throw new TypeError("Generator is already executing.");for(;i;)try{if(a=1,u&&(s=2&E[0]?u.return:E[0]?u.throw||((s=u.return)&&s.call(u),0):u.next)&&!(s=s.call(u,E[1])).done)return s;switch(u=0,s&&(E=[2&E[0],s.value]),E[0]){case 0:case 1:s=E;break;case 4:return i.label++,{value:E[1],done:!1};case 5:i.label++,u=E[1],E=[0];continue;case 7:E=i.ops.pop(),i.trys.pop();continue;default:if(!(s=(s=i.trys).length>0&&s[s.length-1])&&(6===E[0]||2===E[0])){i=0;continue}if(3===E[0]&&(!s||E[1]>s[0]&&E[1]<s[3])){i.label=E[1];break}if(6===E[0]&&i.label<s[1]){i.label=s[1],s=E;break}if(s&&i.label<s[2]){i.label=s[2],i.ops.push(E);break}s[2]&&i.ops.pop(),i.trys.pop();continue}E=r.call(e,i)}catch(K){E=[6,K],u=0}finally{a=s=0}if(5&E[0])throw E[1];return{value:E[0]?E[1]:void 0,done:!0}}([E,K])}}}(this,function(m){return Ti.isInstance(i.request)?(a=i.request,(void 0===(u=(e.requestHandler.metadata||{}).handlerProtocol)?"":u).indexOf("h2")>=0&&!a.headers[":authority"]?(delete a.headers.host,a.headers[":authority"]=""):a.headers.host||(a.headers.host=a.hostname),[2,r(i)]):[2,r(i)]})})}}}(e),dc)}}};var Fg=function(){return function(e,r){return function(i){return function Og(e,r,i,a){return new(i||(i=Promise))(function(s,m){function A(K){try{E(a.next(K))}catch(me){m(me)}}function ae(K){try{E(a.throw(K))}catch(me){m(me)}}function E(K){K.done?s(K.value):function u(s){return s instanceof i?s:new i(function(m){m(s)})}(K.value).then(A,ae)}E((a=a.apply(e,r||[])).next())})}(void 0,void 0,void 0,function(){var a,u,s,m,A,ae,E,K,me;return function pu(e,r){var a,u,s,m,i={label:0,sent:function(){if(1&s[0])throw s[1];return s[1]},trys:[],ops:[]};return m={next:A(0),throw:A(1),return:A(2)},"function"==typeof Symbol&&(m[Symbol.iterator]=function(){return this}),m;function A(E){return function(K){return function ae(E){if(a)throw new TypeError("Generator is already executing.");for(;i;)try{if(a=1,u&&(s=2&E[0]?u.return:E[0]?u.throw||((s=u.return)&&s.call(u),0):u.next)&&!(s=s.call(u,E[1])).done)return s;switch(u=0,s&&(E=[2&E[0],s.value]),E[0]){case 0:case 1:s=E;break;case 4:return i.label++,{value:E[1],done:!1};case 5:i.label++,u=E[1],E=[0];continue;case 7:E=i.ops.pop(),i.trys.pop();continue;default:if(!(s=(s=i.trys).length>0&&s[s.length-1])&&(6===E[0]||2===E[0])){i=0;continue}if(3===E[0]&&(!s||E[1]>s[0]&&E[1]<s[3])){i.label=E[1];break}if(6===E[0]&&i.label<s[1]){i.label=s[1],s=E;break}if(s&&i.label<s[2]){i.label=s[2],i.ops.push(E);break}s[2]&&i.ops.pop(),i.trys.pop();continue}E=r.call(e,i)}catch(K){E=[6,K],u=0}finally{a=s=0}if(5&E[0])throw E[1];return{value:E[0]?E[1]:void 0,done:!0}}([E,K])}}}(this,function(G){switch(G.label){case 0:return a=r.clientName,u=r.commandName,s=r.inputFilterSensitiveLog,m=r.logger,A=r.outputFilterSensitiveLog,[4,e(i)];case 1:return ae=G.sent(),m?("function"==typeof m.info&&(K=(E=ae.output).$metadata,me=function Tg(e,r){var i={};for(var a in e)Object.prototype.hasOwnProperty.call(e,a)&&r.indexOf(a)<0&&(i[a]=e[a]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var u=0;for(a=Object.getOwnPropertySymbols(e);u<a.length;u++)r.indexOf(a[u])<0&&Object.prototype.propertyIsEnumerable.call(e,a[u])&&(i[a[u]]=e[a[u]])}return i}(E,["$metadata"]),m.info({clientName:a,commandName:u,input:s(i.input),output:A(me),metadata:K})),[2,ae]):[2,ae]}})})}}},Lg={name:"loggerMiddleware",tags:["LOGGER"],step:"initialize",override:!0},Ug=function(e){return{applyToStack:function(r){r.add(Fg(),Lg)}}},gu=function(){return gu=Object.assign||function(r){for(var i,a=1,u=arguments.length;a<u;a++)for(var s in i=arguments[a])Object.prototype.hasOwnProperty.call(i,s)&&(r[s]=i[s]);return r},gu.apply(this,arguments)};var Wi=function(){return Wi=Object.assign||function(r){for(var i,a=1,u=arguments.length;a<u;a++)for(var s in i=arguments[a])Object.prototype.hasOwnProperty.call(i,s)&&(r[s]=i[s]);return r},Wi.apply(this,arguments)};function Zo(e,r,i,a){return new(i||(i=Promise))(function(s,m){function A(K){try{E(a.next(K))}catch(me){m(me)}}function ae(K){try{E(a.throw(K))}catch(me){m(me)}}function E(K){K.done?s(K.value):function u(s){return s instanceof i?s:new i(function(m){m(s)})}(K.value).then(A,ae)}E((a=a.apply(e,r||[])).next())})}function Qo(e,r){var a,u,s,m,i={label:0,sent:function(){if(1&s[0])throw s[1];return s[1]},trys:[],ops:[]};return m={next:A(0),throw:A(1),return:A(2)},"function"==typeof Symbol&&(m[Symbol.iterator]=function(){return this}),m;function A(E){return function(K){return function ae(E){if(a)throw new TypeError("Generator is already executing.");for(;i;)try{if(a=1,u&&(s=2&E[0]?u.return:E[0]?u.throw||((s=u.return)&&s.call(u),0):u.next)&&!(s=s.call(u,E[1])).done)return s;switch(u=0,s&&(E=[2&E[0],s.value]),E[0]){case 0:case 1:s=E;break;case 4:return i.label++,{value:E[1],done:!1};case 5:i.label++,u=E[1],E=[0];continue;case 7:E=i.ops.pop(),i.trys.pop();continue;default:if(!(s=(s=i.trys).length>0&&s[s.length-1])&&(6===E[0]||2===E[0])){i=0;continue}if(3===E[0]&&(!s||E[1]>s[0]&&E[1]<s[3])){i.label=E[1];break}if(6===E[0]&&i.label<s[1]){i.label=s[1],s=E;break}if(s&&i.label<s[2]){i.label=s[2],i.ops.push(E);break}s[2]&&i.ops.pop(),i.trys.pop();continue}E=r.call(e,i)}catch(K){E=[6,K],u=0}finally{a=s=0}if(5&E[0])throw E[1];return{value:E[0]?E[1]:void 0,done:!0}}([E,K])}}}function Jo(e){var r="function"==typeof Symbol&&Symbol.iterator,i=r&&e[r],a=0;if(i)return i.call(e);if(e&&"number"==typeof e.length)return{next:function(){return e&&a>=e.length&&(e=void 0),{value:e&&e[a++],done:!e}}};throw new TypeError(r?"Object is not iterable.":"Symbol.iterator is not defined.")}function Rf(e,r){var i="function"==typeof Symbol&&e[Symbol.iterator];if(!i)return e;var u,m,a=i.call(e),s=[];try{for(;(void 0===r||r-- >0)&&!(u=a.next()).done;)s.push(u.value)}catch(A){m={error:A}}finally{try{u&&!u.done&&(i=a.return)&&i.call(a)}finally{if(m)throw m.error}}return s}for(var ll={},yc={},zs=0;zs<256;zs++){var Gs=zs.toString(16).toLowerCase();1===Gs.length&&(Gs="0"+Gs),ll[zs]=Gs,yc[Gs]=zs}function da(e){for(var r="",i=0;i<e.byteLength;i++)r+=ll[e[i]];return r}var _c="X-Amz-Date",Bf="X-Amz-Signature",wc="X-Amz-Security-Token",Ec="authorization",Sc=_c.toLowerCase(),$g=[Ec,Sc,"date"],Hf=Bf.toLowerCase(),cl="x-amz-content-sha256",Cc=wc.toLowerCase(),Dc={authorization:!0,"cache-control":!0,connection:!0,expect:!0,from:!0,"keep-alive":!0,"max-forwards":!0,pragma:!0,referer:!0,te:!0,trailer:!0,"transfer-encoding":!0,upgrade:!0,"user-agent":!0,"x-amzn-trace-id":!0},xc=/^proxy-/,zf=/^sec-/,dl="AWS4-HMAC-SHA256",Gf="AWS4-HMAC-SHA256-PAYLOAD",$f="UNSIGNED-PAYLOAD",Eu="aws4_request",ka={},fl=[];function Su(e,r,i){return e+"/"+r+"/"+i+"/"+Eu}function Yf(e,r,i){var a=new e(r);return a.update(i),a.digest()}function hl(e,r,i){var a,u,s=e.headers,m={};try{for(var A=Jo(Object.keys(s).sort()),ae=A.next();!ae.done;ae=A.next()){var E=ae.value,K=E.toLowerCase();(K in Dc||r?.has(K)||xc.test(K)||zf.test(K))&&(!i||i&&!i.has(K))||(m[K]=s[E].trim().replace(/\s+/g," "))}}catch(me){a={error:me}}finally{try{ae&&!ae.done&&(u=A.return)&&u.call(A)}finally{if(a)throw a.error}}return m}var Jy=function(e){return"function"==typeof ArrayBuffer&&e instanceof ArrayBuffer||"[object ArrayBuffer]"===Object.prototype.toString.call(e)};function Ac(e,r){var i=e.headers,a=e.body;return Zo(this,void 0,void 0,function(){var u,s,m,A,ae,E,K;return Qo(this,function(me){switch(me.label){case 0:try{for(u=Jo(Object.keys(i)),s=u.next();!s.done;s=u.next())if((m=s.value).toLowerCase()===cl)return[2,i[m]]}catch(G){E={error:G}}finally{try{s&&!s.done&&(K=u.return)&&K.call(u)}finally{if(E)throw E.error}}return null!=a?[3,1]:[2,"e3b0c44298fc1c149afbf4c8996fb92427ae41e4649b934ca495991b7852b855"];case 1:return"string"==typeof a||ArrayBuffer.isView(a)||Jy(a)?((A=new r).update(a),ae=da,[4,A.digest()]):[3,3];case 2:return[2,ae.apply(void 0,[me.sent()])];case 3:return[2,$f]}})})}function Tc(e){var r=e.headers,i=e.query,a=function Ua(e,r){var i={};for(var a in e)Object.prototype.hasOwnProperty.call(e,a)&&r.indexOf(a)<0&&(i[a]=e[a]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var u=0;for(a=Object.getOwnPropertySymbols(e);u<a.length;u++)r.indexOf(a[u])<0&&Object.prototype.propertyIsEnumerable.call(e,a[u])&&(i[a[u]]=e[a[u]])}return i}(e,["headers","query"]);return Wi(Wi({},a),{headers:Wi({},r),query:i?Yg(i):void 0})}function Yg(e){return Object.keys(e).reduce(function(r,i){var a,u=e[i];return Wi(Wi({},r),((a={})[i]=Array.isArray(u)?function Nf(){for(var e=[],r=0;r<arguments.length;r++)e=e.concat(Rf(arguments[r]));return e}(u):u,a))},{})}function Pc(e){var r,i;e="function"==typeof e.clone?e.clone():Tc(e);try{for(var a=Jo(Object.keys(e.headers)),u=a.next();!u.done;u=a.next()){var s=u.value;$g.indexOf(s.toLowerCase())>-1&&delete e.headers[s]}}catch(m){r={error:m}}finally{try{u&&!u.done&&(i=a.return)&&i.call(a)}finally{if(r)throw r.error}}return e}var Zf=function(){function e(r){var i=r.applyChecksum,a=r.credentials,u=r.region,m=r.sha256,A=r.uriEscapePath,ae=void 0===A||A;this.service=r.service,this.sha256=m,this.uriEscapePath=ae,this.applyChecksum="boolean"!=typeof i||i,this.regionProvider=Qf(u),this.credentialProvider=ja(a)}return e.prototype.presign=function(r,i){return void 0===i&&(i={}),Zo(this,void 0,void 0,function(){var a,u,s,m,A,ae,E,K,me,G,Se,Fe,He,dt,bt,Rt,tn,bn,Bn,Xn,ri,so,Es,bh;return Qo(this,function(Wa){switch(Wa.label){case 0:return u=void 0===(a=i.signingDate)?new Date:a,m=void 0===(s=i.expiresIn)?3600:s,A=i.unsignableHeaders,ae=i.unhoistableHeaders,E=i.signableHeaders,K=i.signingRegion,me=i.signingService,[4,this.credentialProvider()];case 1:return G=Wa.sent(),null==K?[3,2]:(Fe=K,[3,4]);case 2:return[4,this.regionProvider()];case 3:Fe=Wa.sent(),Wa.label=4;case 4:return Se=Fe,He=pl(u),dt=He.longDate,bt=He.shortDate,m>604800?[2,Promise.reject("Signature version 4 presigned URLs must have an expiration date less than one week in the future")]:(Rt=Su(bt,Se,me??this.service),tn=function si(e,r){var i,a,u;void 0===r&&(r={});var s="function"==typeof e.clone?e.clone():Tc(e),m=s.headers,A=s.query,ae=void 0===A?{}:A;try{for(var E=Jo(Object.keys(m)),K=E.next();!K.done;K=E.next()){var me=K.value,G=me.toLowerCase();"x-amz-"===G.substr(0,6)&&(null===(u=r.unhoistableHeaders)||void 0===u||!u.has(G))&&(ae[me]=m[me],delete m[me])}}catch(Se){i={error:Se}}finally{try{K&&!K.done&&(a=E.return)&&a.call(E)}finally{if(i)throw i.error}}return Wi(Wi({},e),{headers:m,query:ae})}(Pc(r),{unhoistableHeaders:ae}),G.sessionToken&&(tn.query[wc]=G.sessionToken),tn.query["X-Amz-Algorithm"]=dl,tn.query["X-Amz-Credential"]=G.accessKeyId+"/"+Rt,tn.query[_c]=dt,tn.query["X-Amz-Expires"]=m.toString(10),bn=hl(tn,A,E),tn.query["X-Amz-SignedHeaders"]=Mc(bn),Bn=tn.query,Xn=Bf,ri=this.getSignature,so=[dt,Rt,this.getSigningKey(G,Se,bt,me)],Es=this.createCanonicalRequest,bh=[tn,bn],[4,Ac(r,this.sha256)]);case 5:return[4,ri.apply(this,so.concat([Es.apply(this,bh.concat([Wa.sent()]))]))];case 6:return Bn[Xn]=Wa.sent(),[2,tn]}})})},e.prototype.sign=function(r,i){return Zo(this,void 0,void 0,function(){return Qo(this,function(a){return"string"==typeof r?[2,this.signString(r,i)]:r.headers&&r.payload?[2,this.signEvent(r,i)]:[2,this.signRequest(r,i)]})})},e.prototype.signEvent=function(r,i){var a=r.headers,u=r.payload,s=i.signingDate,m=void 0===s?new Date:s,A=i.priorSignature,ae=i.signingRegion,E=i.signingService;return Zo(this,void 0,void 0,function(){var K,me,G,Fe,He,dt,bt,Rt,tn,bn;return Qo(this,function(Bn){switch(Bn.label){case 0:return null==ae?[3,1]:(me=ae,[3,3]);case 1:return[4,this.regionProvider()];case 2:me=Bn.sent(),Bn.label=3;case 3:return K=me,G=pl(m),Fe=G.longDate,He=Su(G.shortDate,K,E??this.service),[4,Ac({headers:{},body:u},this.sha256)];case 4:return dt=Bn.sent(),(bt=new this.sha256).update(a),tn=da,[4,bt.digest()];case 5:return Rt=tn.apply(void 0,[Bn.sent()]),bn=[Gf,Fe,He,A,Rt,dt].join("\n"),[2,this.signString(bn,{signingDate:m,signingRegion:K,signingService:E})]}})})},e.prototype.signString=function(r,i){var a=void 0===i?{}:i,u=a.signingDate,s=void 0===u?new Date:u,m=a.signingRegion,A=a.signingService;return Zo(this,void 0,void 0,function(){var ae,E,K,me,G,Se,Fe,He;return Qo(this,function(dt){switch(dt.label){case 0:return[4,this.credentialProvider()];case 1:return ae=dt.sent(),null==m?[3,2]:(K=m,[3,4]);case 2:return[4,this.regionProvider()];case 3:K=dt.sent(),dt.label=4;case 4:return E=K,me=pl(s).shortDate,Fe=(Se=this.sha256).bind,[4,this.getSigningKey(ae,E,me,A)];case 5:return(G=new(Fe.apply(Se,[void 0,dt.sent()]))).update(r),He=da,[4,G.digest()];case 6:return[2,He.apply(void 0,[dt.sent()])]}})})},e.prototype.signRequest=function(r,i){var a=void 0===i?{}:i,u=a.signingDate,s=void 0===u?new Date:u,m=a.signableHeaders,A=a.unsignableHeaders,ae=a.signingRegion,E=a.signingService;return Zo(this,void 0,void 0,function(){var K,me,G,Se,Fe,He,dt,bt,Rt,tn,bn;return Qo(this,function(Bn){switch(Bn.label){case 0:return[4,this.credentialProvider()];case 1:return K=Bn.sent(),null==ae?[3,2]:(G=ae,[3,4]);case 2:return[4,this.regionProvider()];case 3:G=Bn.sent(),Bn.label=4;case 4:return me=G,Se=Pc(r),Fe=pl(s),He=Fe.longDate,bt=Su(dt=Fe.shortDate,me,E??this.service),Se.headers[Sc]=He,K.sessionToken&&(Se.headers[Cc]=K.sessionToken),[4,Ac(Se,this.sha256)];case 5:return Rt=Bn.sent(),!function Kg(e,r){var i,a;e=e.toLowerCase();try{for(var u=Jo(Object.keys(r)),s=u.next();!s.done;s=u.next())if(e===s.value.toLowerCase())return!0}catch(A){i={error:A}}finally{try{s&&!s.done&&(a=u.return)&&a.call(u)}finally{if(i)throw i.error}}return!1}(cl,Se.headers)&&this.applyChecksum&&(Se.headers[cl]=Rt),tn=hl(Se,A,m),[4,this.getSignature(He,bt,this.getSigningKey(K,me,dt,E),this.createCanonicalRequest(Se,tn,Rt))];case 6:return bn=Bn.sent(),Se.headers[Ec]=dl+" Credential="+K.accessKeyId+"/"+bt+", SignedHeaders="+Mc(tn)+", Signature="+bn,[2,Se]}})})},e.prototype.createCanonicalRequest=function(r,i,a){var u=Object.keys(i).sort();return r.method+"\n"+this.getCanonicalPath(r)+"\n"+function Qy(e){var r,i,a=e.query,u=void 0===a?{}:a,s=[],m={},A=function(me){if(me.toLowerCase()===Hf)return"continue";s.push(me);var G=u[me];"string"==typeof G?m[me]=js(me)+"="+js(G):Array.isArray(G)&&(m[me]=G.slice(0).sort().reduce(function(Se,Fe){return Se.concat([js(me)+"="+js(Fe)])},[]).join("&"))};try{for(var ae=Jo(Object.keys(u).sort()),E=ae.next();!E.done;E=ae.next())A(E.value)}catch(me){r={error:me}}finally{try{E&&!E.done&&(i=ae.return)&&i.call(ae)}finally{if(r)throw r.error}}return s.map(function(me){return m[me]}).filter(function(me){return me}).join("&")}(r)+"\n"+u.map(function(s){return s+":"+i[s]}).join("\n")+"\n\n"+u.join(";")+"\n"+a},e.prototype.createStringToSign=function(r,i,a){return Zo(this,void 0,void 0,function(){var u,s;return Qo(this,function(m){switch(m.label){case 0:return(u=new this.sha256).update(a),[4,u.digest()];case 1:return s=m.sent(),[2,dl+"\n"+r+"\n"+i+"\n"+da(s)]}})})},e.prototype.getCanonicalPath=function(r){var i=r.path;return this.uriEscapePath?"/"+encodeURIComponent(i.replace(/^\//,"")).replace(/%2F/g,"/"):i},e.prototype.getSignature=function(r,i,a,u){return Zo(this,void 0,void 0,function(){var s,m,A,ae,E;return Qo(this,function(K){switch(K.label){case 0:return[4,this.createStringToSign(r,i,u)];case 1:return s=K.sent(),ae=(A=this.sha256).bind,[4,a];case 2:return(m=new(ae.apply(A,[void 0,K.sent()]))).update(s),E=da,[4,m.digest()];case 3:return[2,E.apply(void 0,[K.sent()])]}})})},e.prototype.getSigningKey=function(r,i,a,u){return function(e,r,i,a,u){return Zo(void 0,void 0,void 0,function(){var s,m,A,ae,E,me,G,Se;return Qo(this,function(Fe){switch(Fe.label){case 0:return[4,Yf(e,r.secretAccessKey,r.accessKeyId)];case 1:if(s=Fe.sent(),(m=i+":"+a+":"+u+":"+da(s)+":"+r.sessionToken)in ka)return[2,ka[m]];for(fl.push(m);fl.length>50;)delete ka[fl.shift()];A="AWS4"+r.secretAccessKey,Fe.label=2;case 2:Fe.trys.push([2,7,8,9]),ae=Jo([i,a,u,Eu]),E=ae.next(),Fe.label=3;case 3:return E.done?[3,6]:[4,Yf(e,A,E.value)];case 4:A=Fe.sent(),Fe.label=5;case 5:return E=ae.next(),[3,3];case 6:return[3,9];case 7:return me=Fe.sent(),G={error:me},[3,9];case 8:try{E&&!E.done&&(Se=ae.return)&&Se.call(ae)}finally{if(G)throw G.error}return[7];case 9:return[2,ka[m]=A]}})})}(this.sha256,r,a,i,u||this.service)},e}(),pl=function(e){var r=function Zg(e){return function Qg(e){return"number"==typeof e?new Date(1e3*e):"string"==typeof e?Number(e)?new Date(1e3*Number(e)):new Date(e):e}(e).toISOString().replace(/\.\d{3}Z$/,"Z")}(e).replace(/[\-:]/g,"");return{longDate:r,shortDate:r.substr(0,8)}},Mc=function(e){return Object.keys(e).sort().join(";")},Qf=function(e){if("string"==typeof e){var r=Promise.resolve(e);return function(){return r}}return e},ja=function(e){if("object"==typeof e){var r=Promise.resolve(e);return function(){return r}}return e};function Oc(e){if("object"==typeof e){var r=Promise.resolve(e);return function(){return r}}return e}var Ba=function(){return Ba=Object.assign||function(r){for(var i,a=1,u=arguments.length;a<u;a++)for(var s in i=arguments[a])Object.prototype.hasOwnProperty.call(i,s)&&(r[s]=i[s]);return r},Ba.apply(this,arguments)};function rh(e,r){var i="function"==typeof Symbol&&e[Symbol.iterator];if(!i)return e;var u,m,a=i.call(e),s=[];try{for(;(void 0===r||r-- >0)&&!(u=a.next()).done;)s.push(u.value)}catch(A){m={error:A}}finally{try{u&&!u.done&&(i=a.return)&&i.call(a)}finally{if(m)throw m.error}}return s}function gl(){for(var e=[],r=0;r<arguments.length;r++)e=e.concat(rh(arguments[r]));return e}var Va="user-agent",ih=/[^\!\#\$\%\&\'\*\+\-\.\^\_\`\|\~\d\w]/g,vl=function(e){var r=rh(e,2),i=r[0],a=r[1],u=i.indexOf("/"),s=i.substring(0,u),m=i.substring(u+1);return"api"===s&&(m=m.toLowerCase()),[s,m,a].filter(function(A){return A&&A.length>0}).map(function(A){return A?.replace(ih,"_")}).join("/")},oh={name:"getUserAgentMiddleware",step:"build",priority:"low",tags:["SET_USER_AGENT","USER_AGENT"],override:!0},sh=function(e){return{applyToStack:function(r){r.add(function(e){return function(r,i){return function(a){return function eh(e,r,i,a){return new(i||(i=Promise))(function(s,m){function A(K){try{E(a.next(K))}catch(me){m(me)}}function ae(K){try{E(a.throw(K))}catch(me){m(me)}}function E(K){K.done?s(K.value):function u(s){return s instanceof i?s:new i(function(m){m(s)})}(K.value).then(A,ae)}E((a=a.apply(e,r||[])).next())})}(void 0,void 0,void 0,function(){var u,s,m,A,ae,E,K,me;return function th(e,r){var a,u,s,m,i={label:0,sent:function(){if(1&s[0])throw s[1];return s[1]},trys:[],ops:[]};return m={next:A(0),throw:A(1),return:A(2)},"function"==typeof Symbol&&(m[Symbol.iterator]=function(){return this}),m;function A(E){return function(K){return function ae(E){if(a)throw new TypeError("Generator is already executing.");for(;i;)try{if(a=1,u&&(s=2&E[0]?u.return:E[0]?u.throw||((s=u.return)&&s.call(u),0):u.next)&&!(s=s.call(u,E[1])).done)return s;switch(u=0,s&&(E=[2&E[0],s.value]),E[0]){case 0:case 1:s=E;break;case 4:return i.label++,{value:E[1],done:!1};case 5:i.label++,u=E[1],E=[0];continue;case 7:E=i.ops.pop(),i.trys.pop();continue;default:if(!(s=(s=i.trys).length>0&&s[s.length-1])&&(6===E[0]||2===E[0])){i=0;continue}if(3===E[0]&&(!s||E[1]>s[0]&&E[1]<s[3])){i.label=E[1];break}if(6===E[0]&&i.label<s[1]){i.label=s[1],s=E;break}if(s&&i.label<s[2]){i.label=s[2],i.ops.push(E);break}s[2]&&i.ops.pop(),i.trys.pop();continue}E=r.call(e,i)}catch(K){E=[6,K],u=0}finally{a=s=0}if(5&E[0])throw E[1];return{value:E[0]?E[1]:void 0,done:!0}}([E,K])}}}(this,function(G){switch(G.label){case 0:return Ti.isInstance(u=a.request)?(s=u.headers,m=(null===(K=i?.userAgent)||void 0===K?void 0:K.map(vl))||[],[4,e.defaultUserAgentProvider()]):[2,r(a)];case 1:return A=G.sent().map(vl),ae=(null===(me=e?.customUserAgent)||void 0===me?void 0:me.map(vl))||[],s["x-amz-user-agent"]=gl(A,m,ae).join(" "),E=gl(A.filter(function(Se){return Se.startsWith("aws-sdk-")}),ae).join(" "),"browser"!==e.runtime&&E&&(s[Va]=s[Va]?s[Va]+" "+E:E),[2,r(Ba(Ba({},a),{request:u}))]}})})}}}(e),oh)}}},ah=function(e){function r(i){var a=this,u=(0,ue.pi)((0,ue.pi)({},af),i),s=hu(u),A=function Jg(e){var E,r=this,a=Oc(e.credentials||e.credentialDefaultProvider(e)),u=e.signingEscapePath,s=void 0===u||u,m=e.systemClockOffset,A=void 0===m?e.systemClockOffset||0:m,ae=e.sha256;return E=e.signer?Oc(e.signer):function(){return Oc(e.region)().then(function(K){return function Gy(e,r,i,a){return new(i||(i=Promise))(function(s,m){function A(K){try{E(a.next(K))}catch(me){m(me)}}function ae(K){try{E(a.throw(K))}catch(me){m(me)}}function E(K){K.done?s(K.value):function u(s){return s instanceof i?s:new i(function(m){m(s)})}(K.value).then(A,ae)}E((a=a.apply(e,r||[])).next())})}(r,void 0,void 0,function(){return function ol(e,r){var a,u,s,m,i={label:0,sent:function(){if(1&s[0])throw s[1];return s[1]},trys:[],ops:[]};return m={next:A(0),throw:A(1),return:A(2)},"function"==typeof Symbol&&(m[Symbol.iterator]=function(){return this}),m;function A(E){return function(K){return function ae(E){if(a)throw new TypeError("Generator is already executing.");for(;i;)try{if(a=1,u&&(s=2&E[0]?u.return:E[0]?u.throw||((s=u.return)&&s.call(u),0):u.next)&&!(s=s.call(u,E[1])).done)return s;switch(u=0,s&&(E=[2&E[0],s.value]),E[0]){case 0:case 1:s=E;break;case 4:return i.label++,{value:E[1],done:!1};case 5:i.label++,u=E[1],E=[0];continue;case 7:E=i.ops.pop(),i.trys.pop();continue;default:if(!(s=(s=i.trys).length>0&&s[s.length-1])&&(6===E[0]||2===E[0])){i=0;continue}if(3===E[0]&&(!s||E[1]>s[0]&&E[1]<s[3])){i.label=E[1];break}if(6===E[0]&&i.label<s[1]){i.label=s[1],s=E;break}if(s&&i.label<s[2]){i.label=s[2],i.ops.push(E);break}s[2]&&i.ops.pop(),i.trys.pop();continue}E=r.call(e,i)}catch(K){E=[6,K],u=0}finally{a=s=0}if(5&E[0])throw E[1];return{value:E[0]?E[1]:void 0,done:!0}}([E,K])}}}(this,function(me){switch(me.label){case 0:return[4,e.regionInfoProvider(K)];case 1:return[2,[me.sent()||{},K]]}})})}).then(function(K){var me=function Pf(e,r){var i="function"==typeof Symbol&&e[Symbol.iterator];if(!i)return e;var u,m,a=i.call(e),s=[];try{for(;(void 0===r||r-- >0)&&!(u=a.next()).done;)s.push(u.value)}catch(A){m={error:A}}finally{try{u&&!u.done&&(i=a.return)&&i.call(a)}finally{if(m)throw m.error}}return s}(K,2),G=me[0],He=G.signingService;return e.signingRegion=e.signingRegion||G.signingRegion||me[1],e.signingName=e.signingName||He||e.serviceId,new Zf({credentials:a,region:e.signingRegion,service:e.signingName,sha256:ae,uriEscapePath:s})})},gu(gu({},e),{systemClockOffset:A,signingEscapePath:s,credentials:a,signer:E})}(cg(s)),K=function Nc(e){return Ba(Ba({},e),{customUserAgent:"string"==typeof e.customUserAgent?[[e.customUserAgent]]:e.customUserAgent})}(kp(A));return(a=e.call(this,K)||this).config=K,a.middlewareStack.use(Ud(a.config)),a.middlewareStack.use(ac(a.config)),a.middlewareStack.use(_s(a.config)),a.middlewareStack.use(Ug(a.config)),a.middlewareStack.use(sh(a.config)),a}return(0,ue.ZT)(r,e),r.prototype.destroy=function(){e.prototype.destroy.call(this)},r}(hm),kc="aws-amplify/5.1.0",ha={userAgent:kc+" js",product:"",navigator:null,isReactNative:!1};typeof navigator<"u"&&navigator.product&&("ReactNative"===(ha.product=navigator.product||"",ha.navigator=navigator||null,navigator.product)?(ha.userAgent=kc+" react-native",ha.isReactNative=!0):(ha.userAgent=kc+" js",ha.isReactNative=!1));var s0=function(e){return""+ha.userAgent+(e||"")};function jc(e){var r=new ah({region:e.region,customUserAgent:s0()});return r.middlewareStack.add(function(i,a){return function(u){return i(function a0(e){return(0,Ge.pi)((0,Ge.pi)({},e),{request:(0,Ge.pi)((0,Ge.pi)({},e.request),{headers:(0,Ge.pi)((0,Ge.pi)({},e.request.headers),{"cache-control":"no-store"})})})}(u))}},{step:"build",name:"cacheControlMiddleWare"}),r}var zn=new Ye.k("Credentials"),c0=typeof Symbol<"u"&&"function"==typeof Symbol.for?Symbol.for("amplify_default"):"@@amplify_default",f0=function(){function e(r){this._gettingCredPromise=null,this._refreshHandlers={},this.Auth=void 0,this.configure(r),this._refreshHandlers.google=pn.refreshGoogleToken,this._refreshHandlers.facebook=cn.refreshFacebookToken}return e.prototype.getModuleName=function(){return"Credentials"},e.prototype.getCredSource=function(){return this._credentials_source},e.prototype.configure=function(r){if(!r)return this._config||{};this._config=Object.assign({},this._config,r);var i=this._config.refreshHandlers;return i&&(this._refreshHandlers=(0,Ge.pi)((0,Ge.pi)({},this._refreshHandlers),i)),this._storage=this._config.storage,this._storage||(this._storage=(new ze).getStorage()),this._storageSync=Promise.resolve(),"function"==typeof this._storage.sync&&(this._storageSync=this._storage.sync()),we.X.dispatch("core",{event:"credentials_configured",data:null,message:"Credentials has been configured successfully"},"Credentials",c0),this._config},e.prototype.get=function(){return zn.debug("getting credentials"),this._pickupCredentials()},e.prototype._getCognitoIdentityIdStorageKey=function(r){return"CognitoIdentityId-"+r},e.prototype._pickupCredentials=function(){return zn.debug("picking up credentials"),this._gettingCredPromise&&this._gettingCredPromise.isPending()?zn.debug("getting old cred promise"):(zn.debug("getting new cred promise"),this._gettingCredPromise=function(e){if(e.isResolved)return e;var r=!0,i=!1,a=!1,u=e.then(function(s){return a=!0,r=!1,s},function(s){throw i=!0,r=!1,s});return u.isFullfilled=function(){return a},u.isPending=function(){return r},u.isRejected=function(){return i},u}(this._keepAlive())),this._gettingCredPromise},e.prototype._keepAlive=function(){return(0,Ge.mG)(this,void 0,void 0,function(){var r,i,a,u,s,m,ae;return(0,Ge.Jh)(this,function(E){switch(E.label){case 0:if(zn.debug("checking if credentials exists and not expired"),(r=this._credentials)&&!this._isExpired(r)&&!this._isPastTTL())return zn.debug("credentials not changed and not expired, directly return"),[2,Promise.resolve(r)];if(zn.debug("need to get a new credential or refresh the existing one"),!(a=void 0===(i=this.Auth)?ln.d.Auth:i)||"function"!=typeof a.currentUserCredentials)return[2,this._setCredentialsForGuest()];if(this._isExpired(r)||!this._isPastTTL())return[3,6];zn.debug("ttl has passed but token is not yet expired"),E.label=1;case 1:return E.trys.push([1,5,,6]),[4,a.currentUserPoolUser()];case 2:return u=E.sent(),[4,a.currentSession()];case 3:return s=E.sent(),m=s.refreshToken,[4,new Promise(function(K,me){u.refreshSession(m,function(G,Se){return G?me(G):K(Se)})})];case 4:return E.sent(),[3,6];case 5:return ae=E.sent(),zn.debug("Error attempting to refreshing the session",ae),[3,6];case 6:return[2,a.currentUserCredentials()]}})})},e.prototype.refreshFederatedToken=function(r){zn.debug("Getting federated credentials");var i=r.provider,a=r.user,u=r.token,s=r.identity_id,m=r.expires_at;m=1970===new Date(m).getFullYear()?1e3*m:m;var A=this;return zn.debug("checking if federated jwt token expired"),m>(new Date).getTime()?(zn.debug("token not expired"),this._setCredentialsFromFederation({provider:i,token:u,user:a,identity_id:s,expires_at:m})):A._refreshHandlers[i]&&"function"==typeof A._refreshHandlers[i]?(zn.debug("getting refreshed jwt token from federation provider"),this._providerRefreshWithRetry({refreshHandler:A._refreshHandlers[i],provider:i,user:a})):(zn.debug("no refresh handler for provider:",i),this.clear(),Promise.reject("no refresh handler for provider"))},e.prototype._providerRefreshWithRetry=function(r){var i=this,u=r.provider,s=r.user;return function(e,r,i,a){return void 0===i&&(i=3e5),function je(e,r,i,a){return(0,Ge.mG)(this,void 0,void 0,function(){var u=this;return(0,Ge.Jh)(this,function(s){if("function"!=typeof e)throw Error("functionToRetry must be a function");return[2,new Promise(function(m,A){return(0,Ge.mG)(u,void 0,void 0,function(){var ae,E,K,me,G,Se,Fe;return(0,Ge.Jh)(this,function(He){switch(He.label){case 0:ae=0,E=!1,me=function(){},a&&a.then(function(){E=!0,clearTimeout(K),me()}),Se=function(){var dt,bt,Rt,tn;return(0,Ge.Jh)(this,function(bn){switch(bn.label){case 0:ae++,Tn.debug(e.name+" attempt #"+ae+" with this vars: "+JSON.stringify(r)),bn.label=1;case 1:return bn.trys.push([1,3,,7]),dt={},bt=m,[4,e.apply(void 0,(0,Ge.fl)(r))];case 2:return[2,(dt.value=bt.apply(void 0,[bn.sent()]),dt)];case 3:return Rt=bn.sent(),G=Rt,Tn.debug("error on "+e.name,Rt),function(e){return e&&e.nonRetryable}(Rt)?(Tn.debug(e.name+" non retryable error",Rt),[2,{value:A(Rt)}]):(tn=i(ae,r,Rt),Tn.debug(e.name+" retrying in "+tn+" ms"),!1===tn||E?[2,{value:A(Rt)}]:[3,4]);case 4:return[4,new Promise(function(Bn){me=Bn,K=setTimeout(me,tn)})];case 5:bn.sent(),bn.label=6;case 6:return[3,7];case 7:return[2]}})},He.label=1;case 1:return E?[3,3]:[5,Se()];case 2:return"object"==typeof(Fe=He.sent())?[2,Fe.value]:[3,1];case 3:return A(G),[2]}})})})]})})}(e,r,function re(e){return void 0===e&&(e=3e5),function(a){var u=100*Math.pow(2,a)+100*Math.random();return!(u>e)&&u}}(i),a)}(r.refreshHandler,[],1e4).then(function(A){return zn.debug("refresh federated token sucessfully",A),i._setCredentialsFromFederation({provider:u,token:A.token,user:s,identity_id:A.identity_id,expires_at:A.expires_at})}).catch(function(A){return"string"==typeof A&&0===A.toLowerCase().lastIndexOf("network error",A.length)||i.clear(),zn.debug("refresh federated token failed",A),Promise.reject("refreshing federation token failed: "+A)})},e.prototype._isExpired=function(r){if(!r)return zn.debug("no credentials for expiration check"),!0;zn.debug("are these credentials expired?",r);var i=Date.now();return r.expiration.getTime()<=i},e.prototype._isPastTTL=function(){return this._nextCredentialsRefresh<=Date.now()},e.prototype._setCredentialsForGuest=function(){var r;return(0,Ge.mG)(this,void 0,void 0,function(){var i,a,u,m,A,ae,E,K,Se=this;return(0,Ge.Jh)(this,function(Fe){switch(Fe.label){case 0:return zn.debug("setting credentials for guest"),!(null===(r=this._config)||void 0===r)&&r.identityPoolId||(this._config=Object.assign({},this._config,np(this._config||{}).Auth)),a=(i=this._config).identityPoolId,u=i.region,m=i.identityPoolRegion,i.mandatorySignIn?[2,Promise.reject("cannot get guest credentials when mandatory signin enabled")]:a?m||u?(ae=this,[4,this._getGuestIdentityId()]):(zn.debug("region is not configured for getting the credentials"),[2,Promise.reject("region is not configured for getting the credentials")]):(zn.debug("No Cognito Identity pool provided for unauthenticated access"),[2,Promise.reject("No Cognito Identity pool provided for unauthenticated access")]);case 1:return A=ae._identityId=Fe.sent(),E=jc({region:m||u}),K=void 0,K=A?nu({identityId:A,client:E})():(0,Ge.mG)(Se,void 0,void 0,function(){var He;return(0,Ge.Jh)(this,function(Rt){switch(Rt.label){case 0:return[4,E.send(new oa({IdentityPoolId:a}))];case 1:return He=Rt.sent().IdentityId,this._identityId=He,[2,nu({client:E,identityId:He})()]}})}).catch(function(He){return(0,Ge.mG)(Se,void 0,void 0,function(){return(0,Ge.Jh)(this,function(dt){throw He})})}),[2,this._loadCredentials(K,"guest",!1,null).then(function(He){return He}).catch(function(He){return(0,Ge.mG)(Se,void 0,void 0,function(){var bt=this;return(0,Ge.Jh)(this,function(Rt){switch(Rt.label){case 0:return"ResourceNotFoundException"===He.name&&He.message==="Identity '"+A+"' not found."?(zn.debug("Failed to load guest credentials"),[4,this._removeGuestIdentityId()]):[3,2];case 1:return Rt.sent(),K=(0,Ge.mG)(bt,void 0,void 0,function(){var tn;return(0,Ge.Jh)(this,function(Xn){switch(Xn.label){case 0:return[4,E.send(new oa({IdentityPoolId:a}))];case 1:return tn=Xn.sent().IdentityId,this._identityId=tn,[2,nu({client:E,identityId:tn})()]}})}).catch(function(tn){return(0,Ge.mG)(bt,void 0,void 0,function(){return(0,Ge.Jh)(this,function(bn){throw tn})})}),[2,this._loadCredentials(K,"guest",!1,null)];case 2:return[2,He]}})})})]}})})},e.prototype._setCredentialsFromFederation=function(r){var i=r.provider,a=r.token,u=r.identity_id,m={google:"accounts.google.com",facebook:"graph.facebook.com",amazon:"www.amazon.com",developer:"cognito-identity.amazonaws.com"}[i]||i;if(!m)return Promise.reject("You must specify a federated provider");var A={};A[m]=a;var ae=this._config,E=ae.identityPoolId,K=ae.region,me=ae.identityPoolRegion;if(!E)return zn.debug("No Cognito Federated Identity pool provided"),Promise.reject("No Cognito Federated Identity pool provided");if(!me&&!K)return zn.debug("region is not configured for getting the credentials"),Promise.reject("region is not configured for getting the credentials");var G=jc({region:me||K}),Se=void 0;return Se=u?nu({identityId:u,logins:A,client:G})():function Ed(e){var r=this,i=e.accountId,a=e.cache,u=void 0===a?function sa(){return"object"==typeof self&&self.indexedDB?new ep:"object"==typeof window&&window.localStorage?window.localStorage:wd}():a,s=e.client,m=e.customRoleArn,A=e.identityPoolId,ae=e.logins,E=e.userIdentifier,K=void 0===E?ae&&0!==Object.keys(ae).length?void 0:"ANONYMOUS":E,me=K?"aws:cognito-identity-credentials:"+A+":"+K:void 0,G=function(){return er(r,void 0,void 0,function(){var Se,Fe,He,dt,bt,Rt,tn,bn,Bn;return or(this,function(Xn){switch(Xn.label){case 0:return(Fe=me)?[4,u.getItem(me)]:[3,2];case 1:Fe=Xn.sent(),Xn.label=2;case 2:return(Se=Fe)?[3,7]:(Rt=(bt=s).send,tn=oa.bind,Bn={AccountId:i,IdentityPoolId:A},ae?[4,yd(ae)]:[3,4]);case 3:return bn=Xn.sent(),[3,5];case 4:bn=void 0,Xn.label=5;case 5:return[4,Rt.apply(bt,[new(tn.apply(oa,[void 0,(Bn.Logins=bn,Bn)]))])];case 6:He=Xn.sent().IdentityId,dt=void 0===He?function Sd(){throw new Fu("Response from Amazon Cognito contained no identity ID")}():He,Se=dt,me&&Promise.resolve(u.setItem(me,Se)).catch(function(){}),Xn.label=7;case 7:return[2,(G=nu({client:s,customRoleArn:m,logins:ae,identityId:Se}))()]}})})};return function(){return G().catch(function(Se){return er(r,void 0,void 0,function(){return or(this,function(Fe){throw me&&Promise.resolve(u.removeItem(me)).catch(function(){}),Se})})})}}({logins:A,identityPoolId:E,client:G})(),this._loadCredentials(Se,"federated",!0,r)},e.prototype._setCredentialsFromSession=function(r){var i=this;zn.debug("set credentials from session");var a=r.getIdToken().getJwtToken(),u=this._config,s=u.region,m=u.userPoolId,A=u.identityPoolId,ae=u.identityPoolRegion;if(!A)return zn.debug("No Cognito Federated Identity pool provided"),Promise.reject("No Cognito Federated Identity pool provided");if(!ae&&!s)return zn.debug("region is not configured for getting the credentials"),Promise.reject("region is not configured for getting the credentials");var K={};K["cognito-idp."+s+".amazonaws.com/"+m]=a;var me=jc({region:ae||s}),Se=(0,Ge.mG)(i,void 0,void 0,function(){var Fe,He,dt,bt,Rt,tn,bn,Bn,Xn,ri;return(0,Ge.Jh)(this,function(so){switch(so.label){case 0:return[4,this._getGuestIdentityId()];case 1:return(Fe=so.sent())?[3,3]:[4,me.send(new oa({IdentityPoolId:A,Logins:K}))];case 2:dt=so.sent().IdentityId,He=dt,so.label=3;case 3:return[4,me.send(new Nu({IdentityId:Fe||He,Logins:K}))];case 4:return bt=so.sent(),tn=(Rt=bt.Credentials).AccessKeyId,bn=Rt.Expiration,Bn=Rt.SecretKey,Xn=Rt.SessionToken,this._identityId=ri=bt.IdentityId,Fe?(zn.debug("The guest identity "+Fe+" has been successfully linked to the logins"),Fe===ri&&zn.debug("The guest identity "+Fe+" has become the primary identity"),[4,this._removeGuestIdentityId()]):[3,6];case 5:so.sent(),so.label=6;case 6:return[2,{accessKeyId:tn,secretAccessKey:Bn,sessionToken:Xn,expiration:bn,identityId:ri}]}})}).catch(function(Fe){return(0,Ge.mG)(i,void 0,void 0,function(){return(0,Ge.Jh)(this,function(He){throw Fe})})});return this._loadCredentials(Se,"userPool",!0,null)},e.prototype._loadCredentials=function(r,i,a,u){var s=this,m=this;return new Promise(function(A,ae){r.then(function(E){return(0,Ge.mG)(s,void 0,void 0,function(){var K,me,G,Se,Fe;return(0,Ge.Jh)(this,function(He){switch(He.label){case 0:if(zn.debug("Load credentials successfully",E),this._identityId&&!E.identityId&&(E.identityId=this._identityId),m._credentials=E,m._credentials.authenticated=a,m._credentials_source=i,m._nextCredentialsRefresh=(new Date).getTime()+3e6,"federated"===i){K=Object.assign({id:this._credentials.identityId},u.user),me=u.provider,G=u.token,Se=u.expires_at,Fe=u.identity_id;try{this._storage.setItem("aws-amplify-federatedInfo",JSON.stringify({provider:me,token:G,user:K,expires_at:Se,identity_id:Fe}))}catch(dt){zn.debug("Failed to put federated info into auth storage",dt)}}return"guest"!==i?[3,2]:[4,this._setGuestIdentityId(E.identityId)];case 1:He.sent(),He.label=2;case 2:return A(m._credentials),[2]}})})}).catch(function(E){if(E)return zn.debug("Failed to load credentials",r),zn.debug("Error loading credentials",E),void ae(E)})})},e.prototype.set=function(r,i){return"session"===i?this._setCredentialsFromSession(r):"federation"===i?this._setCredentialsFromFederation(r):"guest"===i?this._setCredentialsForGuest():(zn.debug("no source specified for setting credentials"),Promise.reject("invalid source"))},e.prototype.clear=function(){return(0,Ge.mG)(this,void 0,void 0,function(){return(0,Ge.Jh)(this,function(r){return this._credentials=null,this._credentials_source=null,zn.debug("removing aws-amplify-federatedInfo from storage"),this._storage.removeItem("aws-amplify-federatedInfo"),[2]})})},e.prototype._getGuestIdentityId=function(){return(0,Ge.mG)(this,void 0,void 0,function(){var r,i;return(0,Ge.Jh)(this,function(a){switch(a.label){case 0:r=this._config.identityPoolId,a.label=1;case 1:return a.trys.push([1,3,,4]),[4,this._storageSync];case 2:return a.sent(),[2,this._storage.getItem(this._getCognitoIdentityIdStorageKey(r))];case 3:return i=a.sent(),zn.debug("Failed to get the cached guest identityId",i),[3,4];case 4:return[2]}})})},e.prototype._setGuestIdentityId=function(r){return(0,Ge.mG)(this,void 0,void 0,function(){var i,a;return(0,Ge.Jh)(this,function(u){switch(u.label){case 0:i=this._config.identityPoolId,u.label=1;case 1:return u.trys.push([1,3,,4]),[4,this._storageSync];case 2:return u.sent(),this._storage.setItem(this._getCognitoIdentityIdStorageKey(i),r),[3,4];case 3:return a=u.sent(),zn.debug("Failed to cache guest identityId",a),[3,4];case 4:return[2]}})})},e.prototype._removeGuestIdentityId=function(){return(0,Ge.mG)(this,void 0,void 0,function(){var r;return(0,Ge.Jh)(this,function(i){return zn.debug("removing "+this._getCognitoIdentityIdStorageKey(r=this._config.identityPoolId)+" from storage"),this._storage.removeItem(this._getCognitoIdentityIdStorageKey(r)),[2]})})},e.prototype.shear=function(r){return{accessKeyId:r.accessKeyId,sessionToken:r.sessionToken,secretAccessKey:r.secretAccessKey,identityId:r.identityId,authenticated:r.authenticated}},e}(),lh=new f0(null);ln.d.register(lh);var _l=_(23555);function Bc(e,r){void 0===r&&(r={});var i=function ch(e){return e&&"j"===e[0]&&":"===e[1]?e.substr(2):e}(e);if(function g0(e,r){return typeof r>"u"&&(r=!e||"{"!==e[0]&&"["!==e[0]&&'"'!==e[0]),!r}(i,r.doNotParse))try{return JSON.parse(i)}catch{}return e}var Ws=function(){return Ws=Object.assign||function(e){for(var r,i=1,a=arguments.length;i<a;i++)for(var u in r=arguments[i])Object.prototype.hasOwnProperty.call(r,u)&&(e[u]=r[u]);return e},Ws.apply(this,arguments)},dh=function(){function e(r,i){var a=this;this.changeListeners=[],this.HAS_DOCUMENT_COOKIE=!1,this.cookies=function p0(e,r){return"string"==typeof e?_l.Q(e,r):"object"==typeof e&&null!==e?e:{}}(r,i),new Promise(function(){a.HAS_DOCUMENT_COOKIE=function h0(){return"object"==typeof document&&"string"==typeof document.cookie}()}).catch(function(){})}return e.prototype._updateBrowserValues=function(r){this.HAS_DOCUMENT_COOKIE&&(this.cookies=_l.Q(document.cookie,r))},e.prototype._emitChange=function(r){for(var i=0;i<this.changeListeners.length;++i)this.changeListeners[i](r)},e.prototype.get=function(r,i,a){return void 0===i&&(i={}),this._updateBrowserValues(a),Bc(this.cookies[r],i)},e.prototype.getAll=function(r,i){void 0===r&&(r={}),this._updateBrowserValues(i);var a={};for(var u in this.cookies)a[u]=Bc(this.cookies[u],r);return a},e.prototype.set=function(r,i,a){var u;"object"==typeof i&&(i=JSON.stringify(i)),this.cookies=Ws(Ws({},this.cookies),((u={})[r]=i,u)),this.HAS_DOCUMENT_COOKIE&&(document.cookie=_l.q(r,i,a)),this._emitChange({name:r,value:i,options:a})},e.prototype.remove=function(r,i){var a=i=Ws(Ws({},i),{expires:new Date(1970,1,1,0,0,1),maxAge:0});this.cookies=Ws({},this.cookies),delete this.cookies[r],this.HAS_DOCUMENT_COOKIE&&(document.cookie=_l.q(r,"",a)),this._emitChange({name:r,value:void 0,options:i})},e.prototype.addChangeListener=function(r){this.changeListeners.push(r)},e.prototype.removeChangeListener=function(r){var i=this.changeListeners.indexOf(r);i>=0&&this.changeListeners.splice(i,1)},e}();const bl=dh;var Vc=Ut().isBrowser,hh=function(){function e(r){void 0===r&&(r={}),this.cookies=new bl,this.store=Vc?window.localStorage:Object.create(null),this.cookies=r.req?new bl(r.req.headers.cookie):new bl,Object.assign(this.store,this.cookies.getAll())}return Object.defineProperty(e.prototype,"length",{get:function(){return Object.entries(this.store).length},enumerable:!0,configurable:!0}),e.prototype.clear=function(){var r=this;Array.from(new Array(this.length)).map(function(i,a){return r.key(a)}).forEach(function(i){return r.removeItem(i)})},e.prototype.getItem=function(r){return this.getLocalItem(r)},e.prototype.getLocalItem=function(r){return Object.prototype.hasOwnProperty.call(this.store,r)?this.store[r]:null},e.prototype.getUniversalItem=function(r){return this.cookies.get(r)},e.prototype.key=function(r){return Object.keys(this.store)[r]},e.prototype.removeItem=function(r){this.removeLocalItem(r),this.removeUniversalItem(r)},e.prototype.removeLocalItem=function(r){delete this.store[r]},e.prototype.removeUniversalItem=function(r){this.cookies.remove(r,{path:"/"})},e.prototype.setItem=function(r,i){this.setLocalItem(r,i);var a=r.split(".").pop();["LastAuthUser","accessToken","refreshToken","idToken"].includes(a??"")&&this.setUniversalItem(r,i,{expires:new Date(Date.now()+31536e6)})},e.prototype.setLocalItem=function(r,i){this.store[r]=i},e.prototype.setUniversalItem=function(r,i,a){void 0===a&&(a={}),this.cookies.set(r,i,(0,Ge.pi)((0,Ge.pi)({},a),{path:"/",sameSite:!0,secure:!(Vc&&"localhost"===window.location.hostname)}))},e}(),ni=_(49895),Ks=_(68762),Ha=function(e){var r=window.open(e,"_self");return r?Promise.resolve(r):Promise.reject()},sv=_(93172),Sn=_(34578),_0=typeof Symbol<"u"&&"function"==typeof Symbol.for?Symbol.for("amplify_default"):"@@amplify_default",Gc=function(e,r,i){we.X.dispatch("auth",{event:e,data:r,message:i},"Auth",_0)},za=new Ye.k("OAuth"),Ga=function(){function e(r){var i=r.config,a=r.cognitoClientId,u=r.scopes,s=void 0===u?[]:u;if(this._urlOpener=i.urlOpener||Ha,this._config=i,this._cognitoClientId=a,!this.isValidScopes(s))throw Error("scopes must be a String Array");this._scopes=s}return e.prototype.isValidScopes=function(r){return Array.isArray(r)&&r.every(function(i){return"string"==typeof i})},e.prototype.oauthSignIn=function(r,i,a,u,s,m){void 0===r&&(r="code"),void 0===s&&(s=R.Cognito);var A=this._generateState(32),ae=m?A+"-"+function Hc(e){return e.split("").map(function(r){return r.charCodeAt(0).toString(16).padStart(2,"0")}).join("")}(m):A;!function(e){window.sessionStorage.setItem("oauth_state",e)}(ae);var E=this._generateRandom(128);!function(e){window.sessionStorage.setItem("ouath_pkce_key",e)}(E);var K=this._generateChallenge(E),G=this._scopes.join(" "),Fe="https://"+i+"/oauth2/authorize?"+Object.entries(M(M({redirect_uri:a,response_type:r,client_id:u,identity_provider:s,scope:G,state:ae},"code"===r?{code_challenge:K}:{}),"code"===r?{code_challenge_method:"S256"}:{})).map(function(He){var dt=B(He,2),Rt=dt[1];return encodeURIComponent(dt[0])+"="+encodeURIComponent(Rt)}).join("&");za.debug("Redirecting to "+Fe),this._urlOpener(Fe,a)},e.prototype._handleCodeFlow=function(r){return g(this,void 0,void 0,function(){var i,a,u,s,m,A,ae,E,K,me,G,Se,Fe,He;return x(this,function(dt){switch(dt.label){case 0:return i=((0,Ks.Qc)(r).query||"").split("&").map(function(bt){return bt.split("=")}).reduce(function(bt,Rt){var tn,bn=B(Rt,2),Bn=bn[0],Xn=bn[1];return M(M({},bt),((tn={})[Bn]=Xn,tn))},{code:void 0}).code,a=(0,Ks.Qc)(r).pathname||"/",u=(0,Ks.Qc)(this._config.redirectSignIn).pathname||"/",i&&a===u?(Gc("codeFlow",{},"Retrieving tokens from "+(s="https://"+this._config.domain+"/oauth2/token")),m=ge(this._config)?this._cognitoClientId:this._config.clientID,A=ge(this._config)?this._config.redirectSignIn:this._config.redirectUri,ae=function(){var e=window.sessionStorage.getItem("ouath_pkce_key");return window.sessionStorage.removeItem("ouath_pkce_key"),e}(),E=M({grant_type:"authorization_code",code:i,client_id:m,redirect_uri:A},ae?{code_verifier:ae}:{}),za.debug("Calling token endpoint: "+s+" with",E),K=Object.entries(E).map(function(bt){var Rt=B(bt,2),bn=Rt[1];return encodeURIComponent(Rt[0])+"="+encodeURIComponent(bn)}).join("&"),[4,fetch(s,{method:"POST",headers:{"Content-Type":"application/x-www-form-urlencoded"},body:K})]):[2];case 1:return[4,dt.sent().json()];case 2:if(me=dt.sent(),G=me.access_token,Se=me.refresh_token,Fe=me.id_token,He=me.error)throw new Error(He);return[2,{accessToken:G,refreshToken:Se,idToken:Fe}]}})})},e.prototype._handleImplicitFlow=function(r){return g(this,void 0,void 0,function(){var i,a,u;return x(this,function(s){return i=((0,Ks.Qc)(r).hash||"#").substr(1).split("&").map(function(m){return m.split("=")}).reduce(function(m,A){var ae,E=B(A,2),K=E[0],me=E[1];return M(M({},m),((ae={})[K]=me,ae))},{id_token:void 0,access_token:void 0}),a=i.id_token,u=i.access_token,Gc("implicitFlow",{},"Got tokens from "+r),za.debug("Retrieving implicit tokens from "+r+" with"),[2,{accessToken:u,idToken:a,refreshToken:null}]})})},e.prototype.handleAuthResponse=function(r){return g(this,void 0,void 0,function(){var i,u,s,m,A,ae;return x(this,function(E){switch(E.label){case 0:if(E.trys.push([0,5,,6]),i=r?M(M({},((0,Ks.Qc)(r).hash||"#").substr(1).split("&").map(function(K){return K.split("=")}).reduce(function(K,me){var G=B(me,2);return K[G[0]]=G[1],K},{})),((0,Ks.Qc)(r).query||"").split("&").map(function(K){return K.split("=")}).reduce(function(K,me){var G=B(me,2);return K[G[0]]=G[1],K},{})):{},u=i.error_description,i.error)throw new Error(u);return s=this._validateState(i),za.debug("Starting "+this._config.responseType+" flow with "+r),"code"!==this._config.responseType?[3,2]:(m=[{}],[4,this._handleCodeFlow(r)]);case 1:return[2,M.apply(void 0,[M.apply(void 0,m.concat([E.sent()])),{state:s}])];case 2:return A=[{}],[4,this._handleImplicitFlow(r)];case 3:return[2,M.apply(void 0,[M.apply(void 0,A.concat([E.sent()])),{state:s}])];case 4:return[3,6];case 5:throw ae=E.sent(),za.error("Error handling auth response.",ae),ae;case 6:return[2]}})})},e.prototype._validateState=function(r){if(r){var i=function(){var e=window.sessionStorage.getItem("oauth_state");return window.sessionStorage.removeItem("oauth_state"),e}(),a=r.state;if(i&&i!==a)throw new Error("Invalid state in OAuth flow");return a}},e.prototype.signOut=function(){return g(this,void 0,void 0,function(){var r,i,a;return x(this,function(u){return r="https://"+this._config.domain+"/logout?",i=ge(this._config)?this._cognitoClientId:this._config.oauth.clientID,a=ge(this._config)?this._config.redirectSignOut:this._config.returnTo,r+=Object.entries({client_id:i,logout_uri:encodeURIComponent(a)}).map(function(s){var m=B(s,2);return m[0]+"="+m[1]}).join("&"),Gc("oAuthSignOut",{oAuth:"signOut"},"Signing out from "+r),za.debug("Signing out from "+r),[2,this._urlOpener(r,a)]})})},e.prototype._generateState=function(r){for(var i="",a=r,u="0123456789abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ";a>0;--a)i+=u[Math.round(Math.random()*(u.length-1))];return i},e.prototype._generateChallenge=function(r){var i=new Sn.Sha256;i.update(r);var a=i.digestSync(),u=sv.lW.from(a).toString("base64");return this._base64URL(u)},e.prototype._base64URL=function(r){return r.replace(/=/g,"").replace(/\+/g,"-").replace(/\//g,"_")},e.prototype._generateRandom=function(r){var a=new Uint8Array(r);if(typeof window<"u"&&window.crypto)window.crypto.getRandomValues(a);else for(var u=0;u<r;u+=1)a[u]=Math.random()*"ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789-._~".length|0;return this._bufferToString(a)},e.prototype._bufferToString=function(r){for(var i="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789",a=[],u=0;u<r.byteLength;u+=1)a.push(i[r[u]%i.length]);return a.join("")},e}();const b0=Ga;var Zr=(()=>(function(e){e.DEFAULT_MSG="Authentication Error",e.EMPTY_EMAIL="Email cannot be empty",e.EMPTY_PHONE="Phone number cannot be empty",e.EMPTY_USERNAME="Username cannot be empty",e.INVALID_USERNAME="The username should either be a string or one of the sign in types",e.EMPTY_PASSWORD="Password cannot be empty",e.EMPTY_CODE="Confirmation code cannot be empty",e.SIGN_UP_ERROR="Error creating account",e.NO_MFA="No valid MFA method provided",e.INVALID_MFA="Invalid MFA type",e.EMPTY_CHALLENGE="Challenge response cannot be empty",e.NO_USER_SESSION="Failed to get the session because the user is empty",e.NETWORK_ERROR="Network Error",e.DEVICE_CONFIG="Device tracking has not been configured in this User Pool",e.AUTOSIGNIN_ERROR="Please use your credentials to sign in"}(Zr||(Zr={})),Zr))(),Hr=new Ye.k("AuthError"),pa=function(e){function r(i){var a=this,u=yh[i],s=u.message,m=u.log;return(a=e.call(this,s)||this).constructor=r,Object.setPrototypeOf(a,r.prototype),a.name="AuthError",a.log=m||s,Hr.error(a.log),a}return b(r,e),r}(Error),mh=function(e){function r(i){var a=e.call(this,i)||this;return a.constructor=r,Object.setPrototypeOf(a,r.prototype),a.name="NoUserPoolError",a}return b(r,e),r}(pa),yh={noConfig:{message:Zr.DEFAULT_MSG,log:"\n Error: Amplify has not been configured correctly.\n This error is typically caused by one of the following scenarios:\n\n 1. Make sure you're passing the awsconfig object to Amplify.configure() in your app's entry point\n See https://aws-amplify.github.io/docs/js/authentication#configure-your-app for more information\n \n 2. There might be multiple conflicting versions of amplify packages in your node_modules.\n\t\t\t\tRefer to our docs site for help upgrading Amplify packages (https://docs.amplify.aws/lib/troubleshooting/upgrading/q/platform/js)\n "},missingAuthConfig:{message:Zr.DEFAULT_MSG,log:"\n Error: Amplify has not been configured correctly. \n The configuration object is missing required auth properties.\n This error is typically caused by one of the following scenarios:\n\n 1. Did you run `amplify push` after adding auth via `amplify add auth`?\n See https://aws-amplify.github.io/docs/js/authentication#amplify-project-setup for more information\n\n 2. This could also be caused by multiple conflicting versions of amplify packages, see (https://docs.amplify.aws/lib/troubleshooting/upgrading/q/platform/js) for help upgrading Amplify packages.\n "},emptyUsername:{message:Zr.EMPTY_USERNAME},invalidUsername:{message:Zr.INVALID_USERNAME},emptyPassword:{message:Zr.EMPTY_PASSWORD},emptyCode:{message:Zr.EMPTY_CODE},signUpError:{message:Zr.SIGN_UP_ERROR,log:"The first parameter should either be non-null string or object"},noMFA:{message:Zr.NO_MFA},invalidMFA:{message:Zr.INVALID_MFA},emptyChallengeResponse:{message:Zr.EMPTY_CHALLENGE},noUserSession:{message:Zr.NO_USER_SESSION},deviceConfig:{message:Zr.DEVICE_CONFIG},networkError:{message:Zr.NETWORK_ERROR},autoSignInError:{message:Zr.AUTOSIGNIN_ERROR},default:{message:Zr.DEFAULT_MSG}},Ft=new Ye.k("AuthClass"),$c="aws.cognito.signin.user.admin",_h=typeof Symbol<"u"&&"function"==typeof Symbol.for?Symbol.for("amplify_default"):"@@amplify_default",Qn=function(e,r,i){we.X.dispatch("auth",{event:e,data:r,message:i},"Auth",_h)},S0=function(){function e(r){var i=this;this.userPool=null,this.user=null,this.oAuthFlowInProgress=!1,this.autoSignInInitiated=!1,this.inflightSessionPromise=null,this.inflightSessionPromiseCounter=0,this.Credentials=lh,this.wrapRefreshSessionCallback=function(a){return function(s,m){return m?Qn("tokenRefresh",void 0,"New token retrieved"):Qn("tokenRefresh_failure",s,"Failed to retrieve new token"),a(s,m)}},this.configure(r),this.currentCredentials=this.currentCredentials.bind(this),this.currentUserCredentials=this.currentUserCredentials.bind(this),we.X.listen("auth",function(a){switch(a.payload.event){case"verify":case"signIn":i._storage.setItem("amplify-signin-with-hostedUI","false");break;case"signOut":i._storage.removeItem("amplify-signin-with-hostedUI");break;case"cognitoHostedUI":i._storage.setItem("amplify-signin-with-hostedUI","true")}})}return e.prototype.getModuleName=function(){return"Auth"},e.prototype.configure=function(r){var i=this;if(!r)return this._config||{};Ft.debug("configure Auth");var a=Object.assign({},this._config,np(r).Auth,r);this._config=a;var u=this._config,s=u.userPoolId,m=u.userPoolWebClientId,A=u.cookieStorage,ae=u.oauth,E=u.region,K=u.identityPoolId,me=u.mandatorySignIn,G=u.refreshHandlers,Se=u.identityPoolRegion,Fe=u.clientMetadata,He=u.endpoint;if(this._config.storage){if(!this._isValidAuthStorage(this._config.storage))throw Ft.error("The storage in the Auth config is not valid!"),new Error("Empty storage object");this._storage=this._config.storage}else this._storage=A?new ni.eR(A):r.ssr?new hh:(new ze).getStorage();if(this._storageSync=Promise.resolve(),"function"==typeof this._storage.sync&&(this._storageSync=this._storage.sync()),s){var dt={UserPoolId:s,ClientId:m,endpoint:He};dt.Storage=this._storage,this.userPool=new ni.AM(dt,this.wrapRefreshSessionCallback)}this.Credentials.configure({mandatorySignIn:me,region:E,userPoolId:s,identityPoolId:K,refreshHandlers:G,storage:this._storage,identityPoolRegion:Se});var bt=ae?ge(this._config.oauth)?ae:ae.awsCognito:void 0;if(bt){var Rt=Object.assign({cognitoClientId:m,UserPoolId:s,domain:bt.domain,scopes:bt.scope,redirectSignIn:bt.redirectSignIn,redirectSignOut:bt.redirectSignOut,responseType:bt.responseType,Storage:this._storage,urlOpener:bt.urlOpener,clientMetadata:Fe},bt.options);this._oAuthHandler=new b0({scopes:Rt.scopes,config:Rt,cognitoClientId:Rt.cognitoClientId});var tn={};!function(e){if(Ut().isBrowser&&window.location)Bn={url:window.location.href},tn[Xn=Bn.url]||(tn[Xn]=!0,i._handleAuthResponse(Xn));else if(!Ut().isNode)throw new Error("Not supported");var Bn,Xn}()}return Qn("configured",null,"The Auth category has been configured successfully"),this.autoSignInInitiated||"function"!=typeof this._storage.getItem||(this.isTrueStorageValue("amplify-polling-started")&&(Qn("autoSignIn_failure",null,Q.AutoSignInError),this._storage.removeItem("amplify-auto-sign-in")),this._storage.removeItem("amplify-polling-started")),this._config},e.prototype.signUp=function(r){for(var i=this,a=[],u=1;u<arguments.length;u++)a[u-1]=arguments[u];var s,m,A;if(!this.userPool)return this.rejectNoUserPool();var G,ae=null,E=null,K=[],me=null,Se={enabled:!1},Fe={},He={};if(r&&"string"==typeof r){ae=r,E=a?a[0]:null;var dt=a?a[1]:null,bt=a?a[2]:null;dt&&K.push(new ni.KC({Name:"email",Value:dt})),bt&&K.push(new ni.KC({Name:"phone_number",Value:bt}))}else{if(!r||"object"!=typeof r)return this.rejectAuthError(Q.SignUpError);ae=r.username,E=r.password,r&&r.clientMetadata?G=r.clientMetadata:this._config.clientMetadata&&(G=this._config.clientMetadata);var Rt=r.attributes;Rt&&Object.keys(Rt).map(function(bn){K.push(new ni.KC({Name:bn,Value:Rt[bn]}))});var tn=r.validationData;tn&&(me=[],Object.keys(tn).map(function(bn){me.push(new ni.KC({Name:bn,Value:tn[bn]}))})),(Se=null!==(s=r.autoSignIn)&&void 0!==s?s:{enabled:!1}).enabled&&(this._storage.setItem("amplify-auto-sign-in","true"),Fe=null!==(m=Se.validationData)&&void 0!==m?m:{},He=null!==(A=Se.clientMetaData)&&void 0!==A?A:{})}return ae?E?(Ft.debug("signUp attrs:",K),Ft.debug("signUp validation data:",me),new Promise(function(bn,Bn){i.userPool.signUp(ae,E,K,me,function(Xn,ri){Xn?(Qn("signUp_failure",Xn,ae+" failed to signup"),Bn(Xn)):(Qn("signUp",ri,ae+" has signed up successfully"),Se.enabled&&i.handleAutoSignIn(ae,E,Fe,He,ri),bn(ri))},G)})):this.rejectAuthError(Q.EmptyPassword):this.rejectAuthError(Q.EmptyUsername)},e.prototype.handleAutoSignIn=function(r,i,a,u,s){this.autoSignInInitiated=!0;var m=new ni.sD({Username:r,Password:i,ValidationData:a,ClientMetadata:u});s.userConfirmed?this.signInAfterUserConfirmed(m):"link"===this._config.signUpVerificationMethod?this.handleLinkAutoSignIn(m):this.handleCodeAutoSignIn(m)},e.prototype.handleCodeAutoSignIn=function(r){var i=this,a=function(u){"confirmSignUp"===u.payload.event&&i.signInAfterUserConfirmed(r,a)};we.X.listen("auth",a)},e.prototype.handleLinkAutoSignIn=function(r){var i=this;this._storage.setItem("amplify-polling-started","true");var a=Date.now(),u=setInterval(function(){Date.now()-a>18e4?(clearInterval(u),Qn("autoSignIn_failure",null,"Please confirm your account and use your credentials to sign in."),i._storage.removeItem("amplify-auto-sign-in")):i.signInAfterUserConfirmed(r,null,u)},5e3)},e.prototype.signInAfterUserConfirmed=function(r,i,a){return g(this,void 0,void 0,function(){var u,s,m=this;return x(this,function(A){switch(A.label){case 0:u=this.createCognitoUser(r.getUsername()),A.label=1;case 1:return A.trys.push([1,3,,4]),[4,u.authenticateUser(r,this.authCallbacks(u,function(ae){Qn("autoSignIn",ae,r.getUsername()+" has signed in successfully"),i&&we.X.remove("auth",i),a&&(clearInterval(a),m._storage.removeItem("amplify-polling-started")),m._storage.removeItem("amplify-auto-sign-in")},function(ae){Ft.error(ae),m._storage.removeItem("amplify-auto-sign-in")}))];case 2:return A.sent(),[3,4];case 3:return s=A.sent(),Ft.error(s),[3,4];case 4:return[2]}})})},e.prototype.confirmSignUp=function(r,i,a){var u=this;if(!this.userPool)return this.rejectNoUserPool();if(!r)return this.rejectAuthError(Q.EmptyUsername);if(!i)return this.rejectAuthError(Q.EmptyCode);var A,s=this.createCognitoUser(r),m=!a||"boolean"!=typeof a.forceAliasCreation||a.forceAliasCreation;return a&&a.clientMetadata?A=a.clientMetadata:this._config.clientMetadata&&(A=this._config.clientMetadata),new Promise(function(ae,E){s.confirmRegistration(i,m,function(K,me){K?E(K):(Qn("confirmSignUp",me,r+" has been confirmed successfully"),u.isTrueStorageValue("amplify-auto-sign-in")&&!u.autoSignInInitiated&&(Qn("autoSignIn_failure",null,Q.AutoSignInError),u._storage.removeItem("amplify-auto-sign-in")),ae(me))},A)})},e.prototype.isTrueStorageValue=function(r){var i=this._storage.getItem(r);return!!i&&"true"===i},e.prototype.resendSignUp=function(r,i){if(void 0===i&&(i=this._config.clientMetadata),!this.userPool)return this.rejectNoUserPool();if(!r)return this.rejectAuthError(Q.EmptyUsername);var a=this.createCognitoUser(r);return new Promise(function(u,s){a.resendConfirmationCode(function(m,A){m?s(m):u(A)},i)})},e.prototype.signIn=function(r,i,a){if(void 0===a&&(a=this._config.clientMetadata),!this.userPool)return this.rejectNoUserPool();var u=null,s=null,m={};if("string"==typeof r)u=r,s=i;else{if(!function ye(e){return!!e.username}(r))return this.rejectAuthError(Q.InvalidUsername);typeof i<"u"&&Ft.warn("The password should be defined under the first parameter object!"),u=r.username,s=r.password,m=r.validationData}if(!u)return this.rejectAuthError(Q.EmptyUsername);var A=new ni.sD({Username:u,Password:s,ValidationData:m,ClientMetadata:a});return s?this.signInWithPassword(A):this.signInWithoutPassword(A)},e.prototype.authCallbacks=function(r,i,a){var u=this,s=this;return{onSuccess:function(m){return g(u,void 0,void 0,function(){var A,ae,E,K;return x(this,function(me){switch(me.label){case 0:Ft.debug(m),delete r.challengeName,delete r.challengeParam,me.label=1;case 1:return me.trys.push([1,4,5,9]),[4,this.Credentials.clear()];case 2:return me.sent(),[4,this.Credentials.set(m,"session")];case 3:return A=me.sent(),Ft.debug("succeed to get cognito credentials",A),[3,9];case 4:return ae=me.sent(),Ft.debug("cannot get cognito credentials",ae),[3,9];case 5:return me.trys.push([5,7,,8]),[4,this.currentUserPoolUser()];case 6:return E=me.sent(),s.user=E,Qn("signIn",E,"A user "+r.getUsername()+" has been signed in"),i(E),[3,8];case 7:return K=me.sent(),Ft.error("Failed to get the signed in user",K),a(K),[3,8];case 8:return[7];case 9:return[2]}})})},onFailure:function(m){Ft.debug("signIn failure",m),Qn("signIn_failure",m,r.getUsername()+" failed to signin"),a(m)},customChallenge:function(m){Ft.debug("signIn custom challenge answer required"),r.challengeName="CUSTOM_CHALLENGE",r.challengeParam=m,i(r)},mfaRequired:function(m,A){Ft.debug("signIn MFA required"),r.challengeName=m,r.challengeParam=A,i(r)},mfaSetup:function(m,A){Ft.debug("signIn mfa setup",m),r.challengeName=m,r.challengeParam=A,i(r)},newPasswordRequired:function(m,A){Ft.debug("signIn new password"),r.challengeName="NEW_PASSWORD_REQUIRED",r.challengeParam={userAttributes:m,requiredAttributes:A},i(r)},totpRequired:function(m,A){Ft.debug("signIn totpRequired"),r.challengeName=m,r.challengeParam=A,i(r)},selectMFAType:function(m,A){Ft.debug("signIn selectMFAType",m),r.challengeName=m,r.challengeParam=A,i(r)}}},e.prototype.signInWithPassword=function(r){var i=this;if(this.pendingSignIn)throw new Error("Pending sign-in attempt already in progress");var a=this.createCognitoUser(r.getUsername());return this.pendingSignIn=new Promise(function(u,s){a.authenticateUser(r,i.authCallbacks(a,function(m){i.pendingSignIn=null,u(m)},function(m){i.pendingSignIn=null,s(m)}))}),this.pendingSignIn},e.prototype.signInWithoutPassword=function(r){var i=this,a=this.createCognitoUser(r.getUsername());return a.setAuthenticationFlowType("CUSTOM_AUTH"),new Promise(function(u,s){a.initiateAuth(r,i.authCallbacks(a,u,s))})},e.prototype.getMFAOptions=function(r){return new Promise(function(i,a){r.getMFAOptions(function(u,s){if(u)return Ft.debug("get MFA Options failed",u),void a(u);Ft.debug("get MFA options success",s),i(s)})})},e.prototype.getPreferredMFA=function(r,i){var a=this,u=this;return new Promise(function(s,m){r.getUserData(function(E,K){return g(a,void 0,void 0,function(){var me,G;return x(this,function(Se){switch(Se.label){case 0:if(!E)return[3,5];if(Ft.debug("getting preferred mfa failed",E),!this.isSessionInvalid(E))return[3,4];Se.label=1;case 1:return Se.trys.push([1,3,,4]),[4,this.cleanUpInvalidSession(r)];case 2:return Se.sent(),[3,4];case 3:return me=Se.sent(),m(new Error("Session is invalid due to: "+E.message+" and failed to clean up invalid session: "+me.message)),[2];case 4:return m(E),[2];case 5:return(G=u._getMfaTypeFromUserData(K))?(s(G),[2]):(m("invalid MFA Type"),[2])}})})},{bypassCache:!!i&&i.bypassCache,clientMetadata:a._config.clientMetadata})})},e.prototype._getMfaTypeFromUserData=function(r){var i=null,a=r.PreferredMfaSetting;if(a)i=a;else{var u=r.UserMFASettingList;u?0===u.length?i="NOMFA":Ft.debug("invalid case for getPreferredMFA",r):i=r.MFAOptions?"SMS_MFA":"NOMFA"}return i},e.prototype._getUserData=function(r,i){var a=this;return new Promise(function(u,s){r.getUserData(function(m,A){return g(a,void 0,void 0,function(){var ae;return x(this,function(E){switch(E.label){case 0:if(!m)return[3,5];if(Ft.debug("getting user data failed",m),!this.isSessionInvalid(m))return[3,4];E.label=1;case 1:return E.trys.push([1,3,,4]),[4,this.cleanUpInvalidSession(r)];case 2:return E.sent(),[3,4];case 3:return ae=E.sent(),s(new Error("Session is invalid due to: "+m.message+" and failed to clean up invalid session: "+ae.message)),[2];case 4:return s(m),[2];case 5:u(A),E.label=6;case 6:return[2]}})})},i)})},e.prototype.setPreferredMFA=function(r,i){return g(this,void 0,void 0,function(){var a,u,s,m,ae,E,me=this;return x(this,function(G){switch(G.label){case 0:return[4,this._getUserData(r,{bypassCache:!0,clientMetadata:a=this._config.clientMetadata})];case 1:switch(u=G.sent(),s=null,m=null,i){case"TOTP":case"SOFTWARE_TOKEN_MFA":return[3,2];case"SMS":case"SMS_MFA":return[3,3];case"NOMFA":return[3,4]}return[3,6];case 2:return m={PreferredMfa:!0,Enabled:!0},[3,7];case 3:return s={PreferredMfa:!0,Enabled:!0},[3,7];case 4:return ae=u.UserMFASettingList,[4,this._getMfaTypeFromUserData(u)];case 5:if("NOMFA"===(E=G.sent()))return[2,Promise.resolve("No change for mfa type")];if("SMS_MFA"===E)s={PreferredMfa:!1,Enabled:!1};else{if("SOFTWARE_TOKEN_MFA"!==E)return[2,this.rejectAuthError(Q.InvalidMFA)];m={PreferredMfa:!1,Enabled:!1}}return ae&&0!==ae.length&&ae.forEach(function(Se){"SMS_MFA"===Se?s={PreferredMfa:!1,Enabled:!1}:"SOFTWARE_TOKEN_MFA"===Se&&(m={PreferredMfa:!1,Enabled:!1})}),[3,7];case 6:return Ft.debug("no validmfa method provided"),[2,this.rejectAuthError(Q.NoMFA)];case 7:return[2,new Promise(function(Se,Fe){r.setUserMfaPreference(s,m,function(He,dt){if(He)return Ft.debug("Set user mfa preference error",He),Fe(He);Ft.debug("Set user mfa success",dt),Ft.debug("Caching the latest user data into local"),r.getUserData(function(bt,Rt){return g(me,void 0,void 0,function(){var tn;return x(this,function(bn){switch(bn.label){case 0:if(!bt)return[3,5];if(Ft.debug("getting user data failed",bt),!this.isSessionInvalid(bt))return[3,4];bn.label=1;case 1:return bn.trys.push([1,3,,4]),[4,this.cleanUpInvalidSession(r)];case 2:return bn.sent(),[3,4];case 3:return tn=bn.sent(),Fe(new Error("Session is invalid due to: "+bt.message+" and failed to clean up invalid session: "+tn.message)),[2];case 4:return[2,Fe(bt)];case 5:return[2,Se(dt)]}})})},{bypassCache:!0,clientMetadata:a})})})]}})})},e.prototype.disableSMS=function(r){return new Promise(function(i,a){r.disableMFA(function(u,s){if(u)return Ft.debug("disable mfa failed",u),void a(u);Ft.debug("disable mfa succeed",s),i(s)})})},e.prototype.enableSMS=function(r){return new Promise(function(i,a){r.enableMFA(function(u,s){if(u)return Ft.debug("enable mfa failed",u),void a(u);Ft.debug("enable mfa succeed",s),i(s)})})},e.prototype.setupTOTP=function(r){return new Promise(function(i,a){r.associateSoftwareToken({onFailure:function(u){Ft.debug("associateSoftwareToken failed",u),a(u)},associateSecretCode:function(u){Ft.debug("associateSoftwareToken sucess",u),i(u)}})})},e.prototype.verifyTotpToken=function(r,i){var a;Ft.debug("verification totp token",r,i),r&&"function"==typeof r.getSignInUserSession&&(a=r.getSignInUserSession());var u=a?.isValid();return new Promise(function(s,m){r.verifySoftwareToken(i,"My TOTP device",{onFailure:function(A){Ft.debug("verifyTotpToken failed",A),m(A)},onSuccess:function(A){u||Qn("signIn",r,"A user "+r.getUsername()+" has been signed in"),Qn("verify",r,"A user "+r.getUsername()+" has been verified"),Ft.debug("verifyTotpToken success",A),s(A)}})})},e.prototype.confirmSignIn=function(r,i,a,u){var s=this;if(void 0===u&&(u=this._config.clientMetadata),!i)return this.rejectAuthError(Q.EmptyCode);var m=this;return new Promise(function(A,ae){r.sendMFACode(i,{onSuccess:function(E){return g(s,void 0,void 0,function(){var K,me,G,Se;return x(this,function(Fe){switch(Fe.label){case 0:Ft.debug(E),Fe.label=1;case 1:return Fe.trys.push([1,4,5,10]),[4,this.Credentials.clear()];case 2:return Fe.sent(),[4,this.Credentials.set(E,"session")];case 3:return K=Fe.sent(),Ft.debug("succeed to get cognito credentials",K),[3,10];case 4:return me=Fe.sent(),Ft.debug("cannot get cognito credentials",me),[3,10];case 5:m.user=r,Fe.label=6;case 6:return Fe.trys.push([6,8,,9]),[4,this.currentUserPoolUser()];case 7:return G=Fe.sent(),r.attributes=G.attributes,[3,9];case 8:return Se=Fe.sent(),Ft.debug("cannot get updated Cognito User",Se),[3,9];case 9:return Qn("signIn",r,"A user "+r.getUsername()+" has been signed in"),A(r),[7];case 10:return[2]}})})},onFailure:function(E){Ft.debug("confirm signIn failure",E),ae(E)}},a,u)})},e.prototype.completeNewPassword=function(r,i,a,u){var s=this;if(void 0===a&&(a={}),void 0===u&&(u=this._config.clientMetadata),!i)return this.rejectAuthError(Q.EmptyPassword);var m=this;return new Promise(function(A,ae){r.completeNewPasswordChallenge(i,a,{onSuccess:function(E){return g(s,void 0,void 0,function(){var K,me;return x(this,function(G){switch(G.label){case 0:Ft.debug(E),G.label=1;case 1:return G.trys.push([1,4,5,6]),[4,this.Credentials.clear()];case 2:return G.sent(),[4,this.Credentials.set(E,"session")];case 3:return K=G.sent(),Ft.debug("succeed to get cognito credentials",K),[3,6];case 4:return me=G.sent(),Ft.debug("cannot get cognito credentials",me),[3,6];case 5:return m.user=r,Qn("signIn",r,"A user "+r.getUsername()+" has been signed in"),A(r),[7];case 6:return[2]}})})},onFailure:function(E){Ft.debug("completeNewPassword failure",E),Qn("completeNewPassword_failure",E,s.user+" failed to complete the new password flow"),ae(E)},mfaRequired:function(E,K){Ft.debug("signIn MFA required"),r.challengeName=E,r.challengeParam=K,A(r)},mfaSetup:function(E,K){Ft.debug("signIn mfa setup",E),r.challengeName=E,r.challengeParam=K,A(r)},totpRequired:function(E,K){Ft.debug("signIn mfa setup",E),r.challengeName=E,r.challengeParam=K,A(r)}},u)})},e.prototype.sendCustomChallengeAnswer=function(r,i,a){var u=this;return void 0===a&&(a=this._config.clientMetadata),this.userPool?i?new Promise(function(m,A){r.sendCustomChallengeAnswer(i,u.authCallbacks(r,m,A),a)}):this.rejectAuthError(Q.EmptyChallengeResponse):this.rejectNoUserPool()},e.prototype.deleteUserAttributes=function(r,i){var a=this;return new Promise(function(u,s){a.userSession(r).then(function(m){r.deleteAttributes(i,function(A,ae){return A?s(A):u(ae)})})})},e.prototype.deleteUser=function(){return g(this,void 0,void 0,function(){var r,i,a=this;return x(this,function(u){switch(u.label){case 0:return u.trys.push([0,2,,3]),[4,this._storageSync];case 1:return u.sent(),[3,3];case 2:throw r=u.sent(),Ft.debug("Failed to sync cache info into memory",r),new Error(r);case 3:return i=this._oAuthHandler&&"true"===this._storage.getItem("amplify-signin-with-hostedUI"),[2,new Promise(function(s,m){return g(a,void 0,void 0,function(){var A,ae=this;return x(this,function(E){if(this.userPool){if(!(A=this.userPool.getCurrentUser()))return Ft.debug("Failed to get user from user pool"),[2,m(new Error("No current user."))];A.getSession(function(K,me){return g(ae,void 0,void 0,function(){var G,Se=this;return x(this,function(Fe){switch(Fe.label){case 0:if(!K)return[3,5];if(Ft.debug("Failed to get the user session",K),!this.isSessionInvalid(K))return[3,4];Fe.label=1;case 1:return Fe.trys.push([1,3,,4]),[4,this.cleanUpInvalidSession(A)];case 2:return Fe.sent(),[3,4];case 3:return G=Fe.sent(),m(new Error("Session is invalid due to: "+K.message+" and failed to clean up invalid session: "+G.message)),[2];case 4:return[2,m(K)];case 5:A.deleteUser(function(He,dt){if(He)m(He);else{Qn("userDeleted",dt,"The authenticated user has been deleted."),A.signOut(),Se.user=null;try{Se.cleanCachedItems()}catch{Ft.debug("failed to clear cached items")}i?Se.oAuthSignOutRedirect(s,m):(Qn("signOut",Se.user,"A user has been signed out"),s(dt))}}),Fe.label=6;case 6:return[2]}})})})}else Ft.debug("no Congito User pool"),m(new Error("Cognito User pool does not exist"));return[2]})})})]}})})},e.prototype.updateUserAttributes=function(r,i,a){var u=this;void 0===a&&(a=this._config.clientMetadata);var s=[],m=this;return new Promise(function(A,ae){m.userSession(r).then(function(E){for(var K in i)"sub"!==K&&K.indexOf("_verified")<0&&s.push({Name:K,Value:i[K]});r.updateAttributes(s,function(G,Se,Fe){if(G)return Qn("updateUserAttributes_failure",G,"Failed to update attributes"),ae(G);var He=u.createUpdateAttributesResultList(i,Fe?.CodeDeliveryDetailsList);return Qn("updateUserAttributes",He,"Attributes successfully updated"),A(Se)},a)})})},e.prototype.createUpdateAttributesResultList=function(r,i){var a={};return Object.keys(r).forEach(function(u){a[u]={isUpdated:!0};var s=i?.find(function(m){return m.AttributeName===u});s&&(a[u].isUpdated=!1,a[u].codeDeliveryDetails=s)}),a},e.prototype.userAttributes=function(r){var i=this;return new Promise(function(a,u){i.userSession(r).then(function(s){r.getUserAttributes(function(m,A){m?u(m):a(A)})})})},e.prototype.verifiedContact=function(r){var i=this;return this.userAttributes(r).then(function(a){var u=i.attributesToObject(a),s={},m={};return u.email&&(u.email_verified?m.email=u.email:s.email=u.email),u.phone_number&&(u.phone_number_verified?m.phone_number=u.phone_number:s.phone_number=u.phone_number),{verified:m,unverified:s}})},e.prototype.isErrorWithMessage=function(r){return"object"==typeof r&&Object.prototype.hasOwnProperty.call(r,"message")},e.prototype.isTokenRevokedError=function(r){return this.isErrorWithMessage(r)&&"Access Token has been revoked"===r.message},e.prototype.isRefreshTokenRevokedError=function(r){return this.isErrorWithMessage(r)&&"Refresh Token has been revoked"===r.message},e.prototype.isUserDisabledError=function(r){return this.isErrorWithMessage(r)&&"User is disabled."===r.message},e.prototype.isUserDoesNotExistError=function(r){return this.isErrorWithMessage(r)&&"User does not exist."===r.message},e.prototype.isRefreshTokenExpiredError=function(r){return this.isErrorWithMessage(r)&&"Refresh Token has expired"===r.message},e.prototype.isSignedInHostedUI=function(){return this._oAuthHandler&&"true"===this._storage.getItem("amplify-signin-with-hostedUI")},e.prototype.isSessionInvalid=function(r){return this.isUserDisabledError(r)||this.isUserDoesNotExistError(r)||this.isTokenRevokedError(r)||this.isRefreshTokenRevokedError(r)||this.isRefreshTokenExpiredError(r)},e.prototype.cleanUpInvalidSession=function(r){return g(this,void 0,void 0,function(){var a=this;return x(this,function(u){switch(u.label){case 0:r.signOut(),this.user=null,u.label=1;case 1:return u.trys.push([1,3,,4]),[4,this.cleanCachedItems()];case 2:return u.sent(),[3,4];case 3:return u.sent(),Ft.debug("failed to clear cached items"),[3,4];case 4:return this.isSignedInHostedUI()?[2,new Promise(function(s,m){a.oAuthSignOutRedirect(s,m)})]:(Qn("signOut",this.user,"A user has been signed out"),[2])}})})},e.prototype.currentUserPoolUser=function(r){var i=this;return this.userPool?new Promise(function(a,u){i._storageSync.then(function(){return g(i,void 0,void 0,function(){var s,m,A,ae,E,me,G=this;return x(this,function(Se){switch(Se.label){case 0:return this.isOAuthInProgress()?(Ft.debug("OAuth signIn in progress, waiting for resolution..."),[4,new Promise(function(Fe){var He=setTimeout(function(){Ft.debug("OAuth signIn in progress timeout"),we.X.remove("auth",dt),Fe()},1e4);function dt(bt){var tn=bt.payload.event;("cognitoHostedUI"===tn||"cognitoHostedUI_failure"===tn)&&(Ft.debug("OAuth signIn resolved: "+tn),clearTimeout(He),we.X.remove("auth",dt),Fe())}we.X.listen("auth",dt)})]):[3,2];case 1:Se.sent(),Se.label=2;case 2:if(!(s=this.userPool.getCurrentUser()))return Ft.debug("Failed to get user from user pool"),u("No current user"),[2];Se.label=3;case 3:return Se.trys.push([3,7,,8]),[4,this._userSession(s)];case 4:return m=Se.sent(),(A=!!r&&r.bypassCache)?[4,this.Credentials.clear()]:[3,6];case 5:Se.sent(),Se.label=6;case 6:return ae=this._config.clientMetadata,(void 0===(E=m.getAccessToken().decodePayload().scope)?"":E).split(" ").includes($c)?(s.getUserData(function(Fe,He){return g(G,void 0,void 0,function(){var dt,bt,Rt,tn,Bn,Xn;return x(this,function(ri){switch(ri.label){case 0:if(!Fe)return[3,7];if(Ft.debug("getting user data failed",Fe),!this.isSessionInvalid(Fe))return[3,5];ri.label=1;case 1:return ri.trys.push([1,3,,4]),[4,this.cleanUpInvalidSession(s)];case 2:return ri.sent(),[3,4];case 3:return dt=ri.sent(),u(new Error("Session is invalid due to: "+Fe.message+" and failed to clean up invalid session: "+dt.message)),[2];case 4:return u(Fe),[3,6];case 5:a(s),ri.label=6;case 6:return[2];case 7:for(bt=He.PreferredMfaSetting||"NOMFA",Rt=[],tn=0;tn<He.UserAttributes.length;tn++)Bn=new ni.KC({Name:He.UserAttributes[tn].Name,Value:He.UserAttributes[tn].Value}),Rt.push(Bn);return Xn=this.attributesToObject(Rt),Object.assign(s,{attributes:Xn,preferredMFA:bt}),[2,a(s)]}})})},{bypassCache:A,clientMetadata:ae}),[3,8]):(Ft.debug("Unable to get the user data because the "+$c+" is not in the scopes of the access token"),[2,a(s)]);case 7:return me=Se.sent(),u(me),[3,8];case 8:return[2]}})})}).catch(function(s){return Ft.debug("Failed to sync cache info into memory",s),u(s)})}):this.rejectNoUserPool()},e.prototype.isOAuthInProgress=function(){return this.oAuthFlowInProgress},e.prototype.currentAuthenticatedUser=function(r){return g(this,void 0,void 0,function(){var i,a,u,s,m;return x(this,function(A){switch(A.label){case 0:Ft.debug("getting current authenticated user"),i=null,A.label=1;case 1:return A.trys.push([1,3,,4]),[4,this._storageSync];case 2:return A.sent(),[3,4];case 3:throw a=A.sent(),Ft.debug("Failed to sync cache info into memory",a),a;case 4:try{(u=JSON.parse(this._storage.getItem("aws-amplify-federatedInfo")))&&(i=M(M({},u.user),{token:u.token}))}catch{Ft.debug("cannot load federated user from auth storage")}return i?(this.user=i,Ft.debug("get current authenticated federated user",this.user),[2,this.user]):[3,5];case 5:Ft.debug("get current authenticated userpool user"),s=null,A.label=6;case 6:return A.trys.push([6,8,,9]),[4,this.currentUserPoolUser(r)];case 7:return s=A.sent(),[3,9];case 8:return"No userPool"===(m=A.sent())&&Ft.error("Cannot get the current user because the user pool is missing. Please make sure the Auth module is configured with a valid Cognito User Pool ID"),Ft.debug("The user is not authenticated by the error",m),[2,Promise.reject("The user is not authenticated")];case 9:return this.user=s,[2,this.user]}})})},e.prototype.currentSession=function(){var r=this;return Ft.debug("Getting current session"),this.userPool?new Promise(function(i,a){r.currentUserPoolUser().then(function(u){r.userSession(u).then(function(s){i(s)}).catch(function(s){Ft.debug("Failed to get the current session",s),a(s)})}).catch(function(u){Ft.debug("Failed to get the current user",u),a(u)})}):Promise.reject(new Error("No User Pool in the configuration."))},e.prototype._userSession=function(r){return g(this,void 0,void 0,function(){var i,a,u=this;return x(this,function(s){switch(s.label){case 0:if(!r)return Ft.debug("the user is null"),[2,this.rejectAuthError(Q.NoUserSession)];i=this._config.clientMetadata,0===this.inflightSessionPromiseCounter&&(this.inflightSessionPromise=new Promise(function(m,A){r.getSession(function(ae,E){return g(u,void 0,void 0,function(){var K;return x(this,function(me){switch(me.label){case 0:if(!ae)return[3,5];if(Ft.debug("Failed to get the session from user",r),!this.isSessionInvalid(ae))return[3,4];me.label=1;case 1:return me.trys.push([1,3,,4]),[4,this.cleanUpInvalidSession(r)];case 2:return me.sent(),[3,4];case 3:return K=me.sent(),A(new Error("Session is invalid due to: "+ae.message+" and failed to clean up invalid session: "+K.message)),[2];case 4:return A(ae),[2];case 5:return Ft.debug("Succeed to get the user session",E),m(E),[2]}})})},{clientMetadata:i})})),this.inflightSessionPromiseCounter++,s.label=1;case 1:return s.trys.push([1,,3,4]),[4,this.inflightSessionPromise];case 2:return a=s.sent(),r.signInUserSession=a,[2,a];case 3:return this.inflightSessionPromiseCounter--,[7];case 4:return[2]}})})},e.prototype.userSession=function(r){return this._userSession(r)},e.prototype.currentUserCredentials=function(){return g(this,void 0,void 0,function(){var r,i,a=this;return x(this,function(u){switch(u.label){case 0:Ft.debug("Getting current user credentials"),u.label=1;case 1:return u.trys.push([1,3,,4]),[4,this._storageSync];case 2:return u.sent(),[3,4];case 3:throw r=u.sent(),Ft.debug("Failed to sync cache info into memory",r),r;case 4:i=null;try{i=JSON.parse(this._storage.getItem("aws-amplify-federatedInfo"))}catch(s){Ft.debug("failed to get or parse item aws-amplify-federatedInfo",s)}return i?[2,this.Credentials.refreshFederatedToken(i)]:[2,this.currentSession().then(function(s){return Ft.debug("getting session success",s),a.Credentials.set(s,"session")}).catch(function(){return Ft.debug("getting guest credentials"),a.Credentials.set(null,"guest")})]}})})},e.prototype.currentCredentials=function(){return Ft.debug("getting current credentials"),this.Credentials.get()},e.prototype.verifyUserAttribute=function(r,i,a){return void 0===a&&(a=this._config.clientMetadata),new Promise(function(u,s){r.getAttributeVerificationCode(i,{onSuccess:function(m){return u(m)},onFailure:function(m){return s(m)}},a)})},e.prototype.verifyUserAttributeSubmit=function(r,i,a){return a?new Promise(function(u,s){r.verifyAttribute(i,a,{onSuccess:function(m){u(m)},onFailure:function(m){s(m)}})}):this.rejectAuthError(Q.EmptyCode)},e.prototype.verifyCurrentUserAttribute=function(r){var i=this;return i.currentUserPoolUser().then(function(a){return i.verifyUserAttribute(a,r)})},e.prototype.verifyCurrentUserAttributeSubmit=function(r,i){var a=this;return a.currentUserPoolUser().then(function(u){return a.verifyUserAttributeSubmit(u,r,i)})},e.prototype.cognitoIdentitySignOut=function(r,i){return g(this,void 0,void 0,function(){var a,u,s=this;return x(this,function(m){switch(m.label){case 0:return m.trys.push([0,2,,3]),[4,this._storageSync];case 1:return m.sent(),[3,3];case 2:throw a=m.sent(),Ft.debug("Failed to sync cache info into memory",a),a;case 3:return u=this._oAuthHandler&&"true"===this._storage.getItem("amplify-signin-with-hostedUI"),[2,new Promise(function(A,ae){r&&r.global?(Ft.debug("user global sign out",i),i.getSession(function(K,me){return g(s,void 0,void 0,function(){var G,Se=this;return x(this,function(Fe){switch(Fe.label){case 0:if(!K)return[3,5];if(Ft.debug("failed to get the user session",K),!this.isSessionInvalid(K))return[3,4];Fe.label=1;case 1:return Fe.trys.push([1,3,,4]),[4,this.cleanUpInvalidSession(i)];case 2:return Fe.sent(),[3,4];case 3:return G=Fe.sent(),ae(new Error("Session is invalid due to: "+K.message+" and failed to clean up invalid session: "+G.message)),[2];case 4:return[2,ae(K)];case 5:return i.globalSignOut({onSuccess:function(He){if(Ft.debug("global sign out success"),!u)return A();Se.oAuthSignOutRedirect(A,ae)},onFailure:function(He){return Ft.debug("global sign out failed",He),ae(He)}}),[2]}})})},{clientMetadata:s._config.clientMetadata})):(Ft.debug("user sign out",i),i.signOut(function(){if(!u)return A();s.oAuthSignOutRedirect(A,ae)}))})]}})})},e.prototype.oAuthSignOutRedirect=function(r,i){Ut().isBrowser?this.oAuthSignOutRedirectOrReject(i):this.oAuthSignOutAndResolve(r)},e.prototype.oAuthSignOutAndResolve=function(r){this._oAuthHandler.signOut(),r()},e.prototype.oAuthSignOutRedirectOrReject=function(r){this._oAuthHandler.signOut(),setTimeout(function(){return r(Error("Signout timeout fail"))},3e3)},e.prototype.signOut=function(r){return g(this,void 0,void 0,function(){var a;return x(this,function(u){switch(u.label){case 0:return u.trys.push([0,2,,3]),[4,this.cleanCachedItems()];case 1:return u.sent(),[3,3];case 2:return u.sent(),Ft.debug("failed to clear cached items"),[3,3];case 3:return this.userPool?(a=this.userPool.getCurrentUser())?[4,this.cognitoIdentitySignOut(r,a)]:[3,5]:[3,7];case 4:return u.sent(),[3,6];case 5:Ft.debug("no current Cognito user"),u.label=6;case 6:return[3,8];case 7:Ft.debug("no Cognito User pool"),u.label=8;case 8:return Qn("signOut",this.user,"A user has been signed out"),this.user=null,[2]}})})},e.prototype.cleanCachedItems=function(){return g(this,void 0,void 0,function(){return x(this,function(r){switch(r.label){case 0:return[4,this.Credentials.clear()];case 1:return r.sent(),[2]}})})},e.prototype.changePassword=function(r,i,a,u){var s=this;return void 0===u&&(u=this._config.clientMetadata),new Promise(function(m,A){s.userSession(r).then(function(ae){r.changePassword(i,a,function(E,K){return E?(Ft.debug("change password failure",E),A(E)):m(K)},u)})})},e.prototype.forgotPassword=function(r,i){if(void 0===i&&(i=this._config.clientMetadata),!this.userPool)return this.rejectNoUserPool();if(!r)return this.rejectAuthError(Q.EmptyUsername);var a=this.createCognitoUser(r);return new Promise(function(u,s){a.forgotPassword({onSuccess:function(){u()},onFailure:function(m){Ft.debug("forgot password failure",m),Qn("forgotPassword_failure",m,r+" forgotPassword failed"),s(m)},inputVerificationCode:function(m){Qn("forgotPassword",a,r+" has initiated forgot password flow"),u(m)}},i)})},e.prototype.forgotPasswordSubmit=function(r,i,a,u){if(void 0===u&&(u=this._config.clientMetadata),!this.userPool)return this.rejectNoUserPool();if(!r)return this.rejectAuthError(Q.EmptyUsername);if(!i)return this.rejectAuthError(Q.EmptyCode);if(!a)return this.rejectAuthError(Q.EmptyPassword);var s=this.createCognitoUser(r);return new Promise(function(m,A){s.confirmPassword(i,a,{onSuccess:function(ae){Qn("forgotPasswordSubmit",s,r+" forgotPasswordSubmit successful"),m(ae)},onFailure:function(ae){Qn("forgotPasswordSubmit_failure",ae,r+" forgotPasswordSubmit failed"),A(ae)}},u)})},e.prototype.currentUserInfo=function(){return g(this,void 0,void 0,function(){var r,i,a,u,s,A,ae;return x(this,function(E){switch(E.label){case 0:return(r=this.Credentials.getCredSource())&&"aws"!==r&&"userPool"!==r?[3,9]:[4,this.currentUserPoolUser().catch(function(K){return Ft.error(K)})];case 1:if(!(ae=E.sent()))return[2,null];E.label=2;case 2:return E.trys.push([2,8,,9]),[4,this.userAttributes(ae)];case 3:i=E.sent(),a=this.attributesToObject(i),u=null,E.label=4;case 4:return E.trys.push([4,6,,7]),[4,this.currentCredentials()];case 5:return u=E.sent(),[3,7];case 6:return s=E.sent(),Ft.debug("Failed to retrieve credentials while getting current user info",s),[3,7];case 7:return[2,{id:u?u.identityId:void 0,username:ae.getUsername(),attributes:a}];case 8:return A=E.sent(),Ft.error("currentUserInfo error",A),[2,{}];case 9:return"federated"===r?[2,(ae=this.user)||{}]:[2]}})})},e.prototype.federatedSignIn=function(r,i,a){return g(this,void 0,void 0,function(){var u,s,m,A,ae,E,Se,Fe;return x(this,function(He){switch(He.label){case 0:if(!this._config.identityPoolId&&!this._config.userPoolId)throw new Error("Federation requires either a User Pool or Identity Pool in config");if(typeof r>"u"&&this._config.identityPoolId&&!this._config.userPoolId)throw new Error("Federation with Identity Pools requires tokens passed as arguments");return U(r)||function W(e){return e&&!!["customProvider"].find(function(i){return e.hasOwnProperty(i)})}(r)||function oe(e){return e&&!!["customState"].find(function(i){return e.hasOwnProperty(i)})}(r)||typeof r>"u"?(ae=U(u=r||{provider:R.Cognito})?u.provider:u.customProvider,U(u),s=u.customState,this._config.userPoolId&&(m=ge(this._config.oauth)?this._config.userPoolWebClientId:this._config.oauth.clientID,A=ge(this._config.oauth)?this._config.oauth.redirectSignIn:this._config.oauth.redirectUri,this._oAuthHandler.oauthSignIn(this._config.oauth.responseType,this._config.oauth.domain,A,m,ae,s)),[3,4]):[3,1];case 1:ae=r;try{(E=JSON.stringify(JSON.parse(this._storage.getItem("aws-amplify-federatedInfo")).user))&&Ft.warn("There is already a signed in user: "+E+" in your app.\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tYou should not call Auth.federatedSignIn method again as it may cause unexpected behavior.")}catch{}return[4,this.Credentials.set({provider:ae,token:i.token,identity_id:i.identity_id,user:a,expires_at:i.expires_at},"federation")];case 2:return Se=He.sent(),[4,this.currentAuthenticatedUser()];case 3:return Fe=He.sent(),Qn("signIn",Fe,"A user "+Fe.username+" has been signed in"),Ft.debug("federated sign in credentials",Se),[2,Se];case 4:return[2]}})})},e.prototype._handleAuthResponse=function(r){return g(this,void 0,void 0,function(){var i,a,u,s,m,ae,E,K,me,G,Se,Fe,He;return x(this,function(dt){switch(dt.label){case 0:if(this.oAuthFlowInProgress)return Ft.debug("Skipping URL "+r+" current flow in progress"),[2];dt.label=1;case 1:if(dt.trys.push([1,,8,9]),this.oAuthFlowInProgress=!0,!this._config.userPoolId)throw new Error("OAuth responses require a User Pool defined in config");if(Qn("parsingCallbackUrl",{url:r},"The callback url is being parsed"),i=r||(Ut().isBrowser?window.location.href:""),a=!!((0,Ks.Qc)(i).query||"").split("&").map(function(bt){return bt.split("=")}).find(function(bt){var tn=B(bt,1)[0];return"code"===tn||"error"===tn}),u=!!((0,Ks.Qc)(i).hash||"#").substr(1).split("&").map(function(bt){return bt.split("=")}).find(function(bt){var tn=B(bt,1)[0];return"access_token"===tn||"error"===tn}),!a&&!u)return[3,7];this._storage.setItem("amplify-redirected-from-hosted-ui","true"),dt.label=2;case 2:return dt.trys.push([2,6,,7]),[4,this._oAuthHandler.handleAuthResponse(i)];case 3:return s=dt.sent(),m=s.accessToken,ae=s.refreshToken,E=s.state,K=new ni.MZ({IdToken:new ni.xk({IdToken:s.idToken}),RefreshToken:new ni.bR({RefreshToken:ae}),AccessToken:new ni.ZA({AccessToken:m})}),me=void 0,this._config.identityPoolId?[4,this.Credentials.set(K,"session")]:[3,5];case 4:me=dt.sent(),Ft.debug("AWS credentials",me),dt.label=5;case 5:return G=/-/.test(E),(Se=this.createCognitoUser(K.getIdToken().decodePayload()["cognito:username"])).setSignInUserSession(K),window&&typeof window.history<"u"&&window.history.replaceState({},null,this._config.oauth.redirectSignIn),Qn("signIn",Se,"A user "+Se.getUsername()+" has been signed in"),Qn("cognitoHostedUI",Se,"A user "+Se.getUsername()+" has been signed in via Cognito Hosted UI"),G&&(Fe=E.split("-").splice(1).join("-"),Qn("customOAuthState",function ph(e){return e.match(/.{2}/g).map(function(r){return String.fromCharCode(parseInt(r,16))}).join("")}(Fe),"State for user "+Se.getUsername())),[2,me];case 6:return He=dt.sent(),Ft.debug("Error in cognito hosted auth response",He),window&&typeof window.history<"u"&&window.history.replaceState({},null,this._config.oauth.redirectSignIn),Qn("signIn_failure",He,"The OAuth response flow failed"),Qn("cognitoHostedUI_failure",He,"A failure occurred when returning to the Cognito Hosted UI"),Qn("customState_failure",He,"A failure occurred when returning state"),[3,7];case 7:return[3,9];case 8:return this.oAuthFlowInProgress=!1,[7];case 9:return[2]}})})},e.prototype.essentialCredentials=function(r){return{accessKeyId:r.accessKeyId,sessionToken:r.sessionToken,secretAccessKey:r.secretAccessKey,identityId:r.identityId,authenticated:r.authenticated}},e.prototype.attributesToObject=function(r){var i=this,a={};return r&&r.map(function(u){a[u.Name]="email_verified"===u.Name||"phone_number_verified"===u.Name?i.isTruthyString(u.Value)||!0===u.Value:u.Value}),a},e.prototype.isTruthyString=function(r){return"function"==typeof r.toLowerCase&&"true"===r.toLowerCase()},e.prototype.createCognitoUser=function(r){var i={Username:r,Pool:this.userPool};i.Storage=this._storage;var a=this._config.authenticationFlowType,u=new ni.ws(i);return a&&u.setAuthenticationFlowType(a),u},e.prototype._isValidAuthStorage=function(r){return!!r&&"function"==typeof r.getItem&&"function"==typeof r.setItem&&"function"==typeof r.removeItem&&"function"==typeof r.clear},e.prototype.noUserPoolErrorHandler=function(r){return!r||r.userPoolId&&r.identityPoolId?Q.NoConfig:Q.MissingAuthConfig},e.prototype.rejectAuthError=function(r){return Promise.reject(new pa(r))},e.prototype.rejectNoUserPool=function(){var r=this.noUserPoolErrorHandler(this._config);return Promise.reject(new mh(r))},e.prototype.rememberDevice=function(){return g(this,void 0,void 0,function(){var r,i;return x(this,function(a){switch(a.label){case 0:return a.trys.push([0,2,,3]),[4,this.currentUserPoolUser()];case 1:return r=a.sent(),[3,3];case 2:return i=a.sent(),Ft.debug("The user is not authenticated by the error",i),[2,Promise.reject("The user is not authenticated")];case 3:return r.getCachedDeviceKeyAndPassword(),[2,new Promise(function(u,s){r.setDeviceStatusRemembered({onSuccess:function(m){u(m)},onFailure:function(m){s("InvalidParameterException"===m.code?new pa(Q.DeviceConfig):"NetworkError"===m.code?new pa(Q.NetworkError):m)}})})]}})})},e.prototype.forgetDevice=function(){return g(this,void 0,void 0,function(){var r,i;return x(this,function(a){switch(a.label){case 0:return a.trys.push([0,2,,3]),[4,this.currentUserPoolUser()];case 1:return r=a.sent(),[3,3];case 2:return i=a.sent(),Ft.debug("The user is not authenticated by the error",i),[2,Promise.reject("The user is not authenticated")];case 3:return r.getCachedDeviceKeyAndPassword(),[2,new Promise(function(u,s){r.forgetDevice({onSuccess:function(m){u(m)},onFailure:function(m){s("InvalidParameterException"===m.code?new pa(Q.DeviceConfig):"NetworkError"===m.code?new pa(Q.NetworkError):m)}})})]}})})},e.prototype.fetchDevices=function(){return g(this,void 0,void 0,function(){var r,i;return x(this,function(a){switch(a.label){case 0:return a.trys.push([0,2,,3]),[4,this.currentUserPoolUser()];case 1:return r=a.sent(),[3,3];case 2:throw i=a.sent(),Ft.debug("The user is not authenticated by the error",i),new Error("The user is not authenticated");case 3:return r.getCachedDeviceKeyAndPassword(),[2,new Promise(function(u,s){r.listDevices(60,null,{onSuccess:function(A){var ae=A.Devices.map(function(E){var K=E.DeviceAttributes.find(function(G){return"device_name"===G.Name})||{};return{id:E.DeviceKey,name:K.Value}});u(ae)},onFailure:function(A){s("InvalidParameterException"===A.code?new pa(Q.DeviceConfig):"NetworkError"===A.code?new pa(Q.NetworkError):A)}})})]}})})},e}(),$a=new S0(null);ln.d.register($a)},16699:(Ze,ee,_)=>{"use strict";_.d(ee,{d:()=>O});var c=_(28008),b=_(78624),M=new b.k("Amplify"),O=new(function(){function w(){this._components=[],this._config={},this._modules={},this.Auth=null,this.Analytics=null,this.API=null,this.Credentials=null,this.Storage=null,this.I18n=null,this.Cache=null,this.PubSub=null,this.Interactions=null,this.Pushnotification=null,this.UI=null,this.XR=null,this.Predictions=null,this.DataStore=null,this.Geo=null,this.Notifications=null,this.Logger=b.k,this.ServiceWorker=null}return w.prototype.register=function(y){M.debug("component registered in amplify",y),this._components.push(y),"function"==typeof y.getModuleName?(this._modules[y.getModuleName()]=y,this[y.getModuleName()]=y):M.debug("no getModuleName method for component",y),y.configure(this._config)},w.prototype.configure=function(y){var g=this;return y?(this._config=Object.assign(this._config,y),M.debug("amplify config",this._config),Object.entries(this._modules).forEach(function(x){var V=(0,c.CR)(x,2)[1];Object.keys(V).forEach(function(B){g._modules[B]&&(V[B]=g._modules[B])})}),this._components.map(function(x){x.configure(g._config)}),this._config):this._config},w.prototype.addPluggable=function(y){y&&y.getCategory&&"function"==typeof y.getCategory&&this._components.map(function(g){g.addPluggable&&"function"==typeof g.addPluggable&&g.addPluggable(y)})},w}())},60281:(Ze,ee,_)=>{"use strict";_.d(ee,{X:()=>y});var c=_(28008),M=new(_(78624).k)("Hub"),F=typeof Symbol<"u"&&"function"==typeof Symbol.for?Symbol.for("amplify_default"):"@@amplify_default",y=new(function(){function g(x){this.listeners=[],this.patterns=[],this.protectedChannels=["core","auth","api","analytics","interactions","pubsub","storage","ui","xr"],this.name=x}return g.prototype._remove=function(x,N){if(x instanceof RegExp){var T=this.patterns.find(function(B){return B.pattern.source===x.source});if(!T)return void M.warn("No listeners for "+x);this.patterns=(0,c.fl)(this.patterns.filter(function(B){return B!==T}))}else{var V=this.listeners[x];if(!V)return void M.warn("No listeners for "+x);this.listeners[x]=(0,c.fl)(V.filter(function(B){return B.callback!==N}))}},g.prototype.remove=function(x,N){this._remove(x,N)},g.prototype.dispatch=function(x,N,T,V){void 0===T&&(T=""),this.protectedChannels.indexOf(x)>-1&&(V===F||M.warn("WARNING: "+x+" is protected and dispatching on it can have unintended consequences"));var q={channel:x,payload:(0,c.pi)({},N),source:T,patternInfo:[]};try{this._toListeners(q)}catch(de){M.error(de)}},g.prototype.listen=function(x,N,T){var B,V=this;if(void 0===T&&(T="noname"),function O(g){return void 0!==g.onHubCapsule}(N))M.warn("WARNING onHubCapsule is Deprecated. Please pass in a callback."),B=N.onHubCapsule.bind(N);else{if("function"!=typeof N)throw new Error("No callback supplied to Hub");B=N}if(x instanceof RegExp)this.patterns.push({pattern:x,callback:B});else{var q=this.listeners[x];q||(this.listeners[x]=q=[]),q.push({name:T,callback:B})}return function(){V._remove(x,B)}},g.prototype._toListeners=function(x){var N=x.channel,T=x.payload,V=this.listeners[N];if(V&&V.forEach(function(q){M.debug("Dispatching to "+N+" with ",T);try{q.callback(x)}catch(de){M.error(de)}}),this.patterns.length>0){if(!T.message)return void M.warn("Cannot perform pattern matching without a message key");var B=T.message;this.patterns.forEach(function(q){var de=B.match(q.pattern);if(de){var De=(0,c.CR)(de).slice(1),he=(0,c.pi)((0,c.pi)({},x),{patternInfo:De});try{q.callback(he)}catch(xe){M.error(xe)}}})}},g}())("__default__")},78624:(Ze,ee,_)=>{"use strict";_.d(ee,{k:()=>T});var c=_(28008),x={VERBOSE:1,DEBUG:2,INFO:3,WARN:4,ERROR:5},N=(()=>{return(V=N||(N={})).DEBUG="DEBUG",V.ERROR="ERROR",V.INFO="INFO",V.WARN="WARN",V.VERBOSE="VERBOSE",N;var V})(),T=function(){function V(B,q){void 0===q&&(q=N.WARN),this.name=B,this.level=q,this._pluggables=[]}return V.prototype._padding=function(B){return B<10?"0"+B:""+B},V.prototype._ts=function(){var B=new Date;return[this._padding(B.getMinutes()),this._padding(B.getSeconds())].join(":")+"."+B.getMilliseconds()},V.prototype.configure=function(B){return B?(this._config=B,this._config):this._config},V.prototype._log=function(B){for(var q,de,se=[],De=1;De<arguments.length;De++)se[De-1]=arguments[De];var he=this.level;if(V.LOG_LEVEL&&(he=V.LOG_LEVEL),typeof window<"u"&&window.LOG_LEVEL&&(he=window.LOG_LEVEL),x[B]>=x[he]){var be=console.log.bind(console);B===N.ERROR&&console.error&&(be=console.error.bind(console)),B===N.WARN&&console.warn&&(be=console.warn.bind(console));var Y="["+B+"] "+this._ts()+" "+this.name,Be="";if(1===se.length&&"string"==typeof se[0])be(Be=Y+" - "+se[0]);else if(1===se.length)Be=Y+" "+se[0],be(Y,se[0]);else if("string"==typeof se[0]){var le=se.slice(1);1===le.length&&(le=le[0]),Be=Y+" - "+se[0]+" "+le,be(Y+" - "+se[0],le)}else Be=Y+" "+se,be(Y,se);try{for(var R=(0,c.XA)(this._pluggables),U=R.next();!U.done;U=R.next()){var W=U.value,oe={message:Be,timestamp:Date.now()};W.pushLogs([oe])}}catch(ge){q={error:ge}}finally{try{U&&!U.done&&(de=R.return)&&de.call(R)}finally{if(q)throw q.error}}}},V.prototype.log=function(){for(var B=[],q=0;q<arguments.length;q++)B[q]=arguments[q];this._log.apply(this,(0,c.fl)([N.INFO],B))},V.prototype.info=function(){for(var B=[],q=0;q<arguments.length;q++)B[q]=arguments[q];this._log.apply(this,(0,c.fl)([N.INFO],B))},V.prototype.warn=function(){for(var B=[],q=0;q<arguments.length;q++)B[q]=arguments[q];this._log.apply(this,(0,c.fl)([N.WARN],B))},V.prototype.error=function(){for(var B=[],q=0;q<arguments.length;q++)B[q]=arguments[q];this._log.apply(this,(0,c.fl)([N.ERROR],B))},V.prototype.debug=function(){for(var B=[],q=0;q<arguments.length;q++)B[q]=arguments[q];this._log.apply(this,(0,c.fl)([N.DEBUG],B))},V.prototype.verbose=function(){for(var B=[],q=0;q<arguments.length;q++)B[q]=arguments[q];this._log.apply(this,(0,c.fl)([N.VERBOSE],B))},V.prototype.addPluggable=function(B){B&&"Logging"===B.getCategoryName()&&(this._pluggables.push(B),B.configure(this._config))},V.prototype.listPluggables=function(){return this._pluggables},V.LOG_LEVEL=null,V}()},84285:(Ze,ee)=>{"use strict";Object.defineProperty(ee,"__esModule",{value:!0})},17487:(Ze,ee)=>{"use strict";Object.defineProperty(ee,"__esModule",{value:!0})},89984:(Ze,ee)=>{"use strict";Object.defineProperty(ee,"__esModule",{value:!0})},42093:(Ze,ee)=>{"use strict";Object.defineProperty(ee,"__esModule",{value:!0})},74849:(Ze,ee)=>{"use strict";Object.defineProperty(ee,"__esModule",{value:!0}),ee.isMsWindow=void 0;var _=["decrypt","digest","encrypt","exportKey","generateKey","importKey","sign","verify"];ee.isMsWindow=function b(M){if(function c(M){return"MSInputMethodContext"in M&&"msCrypto"in M}(M)&&void 0!==M.msCrypto.subtle){var F=M.msCrypto,O=F.getRandomValues,w=F.subtle;return _.map(function(y){return w[y]}).concat(O).every(function(y){return"function"==typeof y})}return!1}},11806:(Ze,ee,_)=>{"use strict";Object.defineProperty(ee,"__esModule",{value:!0});var c=_(11980);c.__exportStar(_(84285),ee),c.__exportStar(_(17487),ee),c.__exportStar(_(89984),ee),c.__exportStar(_(42093),ee),c.__exportStar(_(74849),ee)},89760:(Ze,ee)=>{"use strict";Object.defineProperty(ee,"__esModule",{value:!0}),ee.EMPTY_DATA_SHA_256=ee.SHA_256_HMAC_ALGO=ee.SHA_256_HASH=void 0,ee.SHA_256_HASH={name:"SHA-256"},ee.SHA_256_HMAC_ALGO={name:"HMAC",hash:ee.SHA_256_HASH},ee.EMPTY_DATA_SHA_256=new Uint8Array([227,176,196,66,152,252,28,20,154,251,244,200,153,111,185,36,39,174,65,228,100,155,147,76,164,149,153,27,120,82,184,85])},87895:(Ze,ee,_)=>{"use strict";Object.defineProperty(ee,"__esModule",{value:!0}),ee.Sha256=void 0;var c=_(99121),b=_(15139),M=_(34578),F=_(40710),O=_(11806),w=_(72521),y=function(){function g(x){this.hash=(0,F.supportsWebCrypto)((0,w.locateWindow)())?new b.Sha256(x):(0,O.isMsWindow)((0,w.locateWindow)())?new c.Sha256(x):new M.Sha256(x)}return g.prototype.update=function(x,N){this.hash.update(x,N)},g.prototype.digest=function(){return this.hash.digest()},g}();ee.Sha256=y},99121:(Ze,ee,_)=>{"use strict";Object.defineProperty(ee,"__esModule",{value:!0}),ee.Sha256=void 0;var c=_(35200),b=_(89760),M=_(12622),F=_(72521),O=function(){function g(x){x?(this.operation=function w(g){return new Promise(function(x,N){var T=(0,F.locateWindow)().msCrypto.subtle.importKey("raw",y(g),b.SHA_256_HMAC_ALGO,!1,["sign"]);T.oncomplete=function(){T.result&&x(T.result),N(new Error("ImportKey completed without importing key."))},T.onerror=function(){N(new Error("ImportKey failed to import key."))}})}(x).then(function(N){return(0,F.locateWindow)().msCrypto.subtle.sign(b.SHA_256_HMAC_ALGO,N)}),this.operation.catch(function(){})):this.operation=Promise.resolve((0,F.locateWindow)().msCrypto.subtle.digest("SHA-256"))}return g.prototype.update=function(x){var N=this;(0,c.isEmptyData)(x)||(this.operation=this.operation.then(function(T){return T.onerror=function(){N.operation=Promise.reject(new Error("Error encountered updating hash"))},T.process(y(x)),T}),this.operation.catch(function(){}))},g.prototype.digest=function(){return this.operation.then(function(x){return new Promise(function(N,T){x.onerror=function(){T(new Error("Error encountered finalizing hash"))},x.oncomplete=function(){x.result&&N(new Uint8Array(x.result)),T(new Error("Error encountered finalizing hash"))},x.finish()})})},g}();function y(g){return"string"==typeof g?(0,M.fromUtf8)(g):ArrayBuffer.isView(g)?new Uint8Array(g.buffer,g.byteOffset,g.byteLength/Uint8Array.BYTES_PER_ELEMENT):new Uint8Array(g)}ee.Sha256=O},89801:(Ze,ee,_)=>{"use strict";Object.defineProperty(ee,"__esModule",{value:!0}),ee.WebCryptoSha256=ee.Ie11Sha256=void 0,(0,_(75789).__exportStar)(_(87895),ee);var b=_(99121);Object.defineProperty(ee,"Ie11Sha256",{enumerable:!0,get:function(){return b.Sha256}});var M=_(15139);Object.defineProperty(ee,"WebCryptoSha256",{enumerable:!0,get:function(){return M.Sha256}})},35200:(Ze,ee)=>{"use strict";Object.defineProperty(ee,"__esModule",{value:!0}),ee.isEmptyData=void 0,ee.isEmptyData=function _(c){return"string"==typeof c?0===c.length:0===c.byteLength}},15139:(Ze,ee,_)=>{"use strict";Object.defineProperty(ee,"__esModule",{value:!0}),ee.Sha256=void 0;var c=_(7736),b=_(89760),M=_(72521),F=function(){function O(w){this.toHash=new Uint8Array(0),void 0!==w&&(this.key=new Promise(function(y,g){(0,M.locateWindow)().crypto.subtle.importKey("raw",(0,c.convertToBuffer)(w),b.SHA_256_HMAC_ALGO,!1,["sign"]).then(y,g)}),this.key.catch(function(){}))}return O.prototype.update=function(w){if(!(0,c.isEmptyData)(w)){var y=(0,c.convertToBuffer)(w),g=new Uint8Array(this.toHash.byteLength+y.byteLength);g.set(this.toHash,0),g.set(y,this.toHash.byteLength),this.toHash=g}},O.prototype.digest=function(){var w=this;return this.key?this.key.then(function(y){return(0,M.locateWindow)().crypto.subtle.sign(b.SHA_256_HMAC_ALGO,y,w.toHash).then(function(g){return new Uint8Array(g)})}):(0,c.isEmptyData)(this.toHash)?Promise.resolve(b.EMPTY_DATA_SHA_256):Promise.resolve().then(function(){return(0,M.locateWindow)().crypto.subtle.digest(b.SHA_256_HASH,w.toHash)}).then(function(y){return Promise.resolve(new Uint8Array(y))})},O}();ee.Sha256=F},6516:(Ze,ee,_)=>{"use strict";Object.defineProperty(ee,"__esModule",{value:!0}),ee.RawSha256=void 0;var c=_(54022),b=function(){function M(){this.state=Int32Array.from(c.INIT),this.temp=new Int32Array(64),this.buffer=new Uint8Array(64),this.bufferLength=0,this.bytesHashed=0,this.finished=!1}return M.prototype.update=function(F){if(this.finished)throw new Error("Attempted to update an already finished hash.");var O=0,w=F.byteLength;if(this.bytesHashed+=w,8*this.bytesHashed>c.MAX_HASHABLE_LENGTH)throw new Error("Cannot hash more than 2^53 - 1 bits");for(;w>0;)this.buffer[this.bufferLength++]=F[O++],w--,this.bufferLength===c.BLOCK_SIZE&&(this.hashBuffer(),this.bufferLength=0)},M.prototype.digest=function(){if(!this.finished){var F=8*this.bytesHashed,O=new DataView(this.buffer.buffer,this.buffer.byteOffset,this.buffer.byteLength),w=this.bufferLength;if(O.setUint8(this.bufferLength++,128),w%c.BLOCK_SIZE>=c.BLOCK_SIZE-8){for(var y=this.bufferLength;y<c.BLOCK_SIZE;y++)O.setUint8(y,0);this.hashBuffer(),this.bufferLength=0}for(y=this.bufferLength;y<c.BLOCK_SIZE-8;y++)O.setUint8(y,0);O.setUint32(c.BLOCK_SIZE-8,Math.floor(F/4294967296),!0),O.setUint32(c.BLOCK_SIZE-4,F),this.hashBuffer(),this.finished=!0}var g=new Uint8Array(c.DIGEST_LENGTH);for(y=0;y<8;y++)g[4*y]=this.state[y]>>>24&255,g[4*y+1]=this.state[y]>>>16&255,g[4*y+2]=this.state[y]>>>8&255,g[4*y+3]=this.state[y]>>>0&255;return g},M.prototype.hashBuffer=function(){for(var O=this.buffer,w=this.state,y=w[0],g=w[1],x=w[2],N=w[3],T=w[4],V=w[5],B=w[6],q=w[7],de=0;de<c.BLOCK_SIZE;de++){if(de<16)this.temp[de]=(255&O[4*de])<<24|(255&O[4*de+1])<<16|(255&O[4*de+2])<<8|255&O[4*de+3];else{var se=this.temp[de-2];this.temp[de]=(((se>>>17|se<<15)^(se>>>19|se<<13)^se>>>10)+this.temp[de-7]|0)+((((se=this.temp[de-15])>>>7|se<<25)^(se>>>18|se<<14)^se>>>3)+this.temp[de-16]|0)}var xe=(((T>>>6|T<<26)^(T>>>11|T<<21)^(T>>>25|T<<7))+(T&V^~T&B)|0)+(q+(c.KEY[de]+this.temp[de]|0)|0)|0,Me=((y>>>2|y<<30)^(y>>>13|y<<19)^(y>>>22|y<<10))+(y&g^y&x^g&x)|0;q=B,B=V,V=T,T=N+xe|0,N=x,x=g,g=y,y=xe+Me|0}w[0]+=y,w[1]+=g,w[2]+=x,w[3]+=N,w[4]+=T,w[5]+=V,w[6]+=B,w[7]+=q},M}();ee.RawSha256=b},54022:(Ze,ee)=>{"use strict";Object.defineProperty(ee,"__esModule",{value:!0}),ee.MAX_HASHABLE_LENGTH=ee.INIT=ee.KEY=ee.DIGEST_LENGTH=ee.BLOCK_SIZE=void 0,ee.BLOCK_SIZE=64,ee.DIGEST_LENGTH=32,ee.KEY=new Uint32Array([1116352408,1899447441,3049323471,3921009573,961987163,1508970993,2453635748,2870763221,3624381080,310598401,607225278,1426881987,1925078388,2162078206,2614888103,3248222580,3835390401,4022224774,264347078,604807628,770255983,1249150122,1555081692,1996064986,2554220882,2821834349,2952996808,3210313671,3336571891,3584528711,113926993,338241895,666307205,773529912,1294757372,1396182291,1695183700,1986661051,2177026350,2456956037,2730485921,2820302411,3259730800,3345764771,3516065817,3600352804,4094571909,275423344,430227734,506948616,659060556,883997877,958139571,1322822218,1537002063,1747873779,1955562222,2024104815,2227730452,2361852424,2428436474,2756734187,3204031479,3329325298]),ee.INIT=[1779033703,3144134277,1013904242,2773480762,1359893119,2600822924,528734635,1541459225],ee.MAX_HASHABLE_LENGTH=Math.pow(2,53)-1},34578:(Ze,ee,_)=>{"use strict";Object.defineProperty(ee,"__esModule",{value:!0}),(0,_(73541).__exportStar)(_(53039),ee)},53039:(Ze,ee,_)=>{"use strict";Object.defineProperty(ee,"__esModule",{value:!0}),ee.Sha256=void 0;var c=_(73541),b=_(54022),M=_(6516),F=_(7736),O=function(){function y(g){if(this.hash=new M.RawSha256,g){this.outer=new M.RawSha256;var x=function w(y){var g=(0,F.convertToBuffer)(y);if(g.byteLength>b.BLOCK_SIZE){var x=new M.RawSha256;x.update(g),g=x.digest()}var N=new Uint8Array(b.BLOCK_SIZE);return N.set(g),N}(g),N=new Uint8Array(b.BLOCK_SIZE);N.set(x);for(var T=0;T<b.BLOCK_SIZE;T++)x[T]^=54,N[T]^=92;for(this.hash.update(x),this.outer.update(N),T=0;T<x.byteLength;T++)x[T]=0}}return y.prototype.update=function(g){if(!(0,F.isEmptyData)(g)&&!this.error)try{this.hash.update((0,F.convertToBuffer)(g))}catch(x){this.error=x}},y.prototype.digestSync=function(){if(this.error)throw this.error;return this.outer?(this.outer.finished||this.outer.update(this.hash.digest()),this.outer.digest()):this.hash.digest()},y.prototype.digest=function(){return(0,c.__awaiter)(this,void 0,void 0,function(){return(0,c.__generator)(this,function(g){return[2,this.digestSync()]})})},y}();ee.Sha256=O},40710:(Ze,ee,_)=>{"use strict";Object.defineProperty(ee,"__esModule",{value:!0}),_(57840).__exportStar(_(70933),ee)},70933:(Ze,ee,_)=>{"use strict";Object.defineProperty(ee,"__esModule",{value:!0}),ee.supportsZeroByteGCM=ee.supportsSubtleCrypto=ee.supportsSecureRandom=ee.supportsWebCrypto=void 0;var c=_(57840),b=["decrypt","digest","encrypt","exportKey","generateKey","importKey","sign","verify"];function F(y){return"object"==typeof y&&"object"==typeof y.crypto&&"function"==typeof y.crypto.getRandomValues}function O(y){return y&&b.every(function(g){return"function"==typeof y[g]})}ee.supportsWebCrypto=function M(y){return!(!F(y)||"object"!=typeof y.crypto.subtle)&&O(y.crypto.subtle)},ee.supportsSecureRandom=F,ee.supportsSubtleCrypto=O,ee.supportsZeroByteGCM=function w(y){return c.__awaiter(this,void 0,void 0,function(){var g;return c.__generator(this,function(T){switch(T.label){case 0:if(!O(y))return[2,!1];T.label=1;case 1:return T.trys.push([1,4,,5]),[4,y.generateKey({name:"AES-GCM",length:128},!1,["encrypt"])];case 2:return g=T.sent(),[4,y.encrypt({name:"AES-GCM",iv:new Uint8Array(Array(12)),additionalData:new Uint8Array(Array(16)),tagLength:128},g,new Uint8Array(0))];case 3:return[2,16===T.sent().byteLength];case 4:return T.sent(),[2,!1];case 5:return[2]}})})}},82862:(Ze,ee,_)=>{"use strict";Object.defineProperty(ee,"__esModule",{value:!0}),ee.convertToBuffer=void 0;var c=_(12622),b=typeof Buffer<"u"&&Buffer.from?function(F){return Buffer.from(F,"utf8")}:c.fromUtf8;ee.convertToBuffer=function M(F){return F instanceof Uint8Array?F:"string"==typeof F?b(F):ArrayBuffer.isView(F)?new Uint8Array(F.buffer,F.byteOffset,F.byteLength/Uint8Array.BYTES_PER_ELEMENT):new Uint8Array(F)}},7736:(Ze,ee,_)=>{"use strict";Object.defineProperty(ee,"__esModule",{value:!0}),ee.uint32ArrayFrom=ee.numToUint8=ee.isEmptyData=ee.convertToBuffer=void 0;var c=_(82862);Object.defineProperty(ee,"convertToBuffer",{enumerable:!0,get:function(){return c.convertToBuffer}});var b=_(5516);Object.defineProperty(ee,"isEmptyData",{enumerable:!0,get:function(){return b.isEmptyData}});var M=_(85183);Object.defineProperty(ee,"numToUint8",{enumerable:!0,get:function(){return M.numToUint8}});var F=_(26777);Object.defineProperty(ee,"uint32ArrayFrom",{enumerable:!0,get:function(){return F.uint32ArrayFrom}})},5516:(Ze,ee)=>{"use strict";Object.defineProperty(ee,"__esModule",{value:!0}),ee.isEmptyData=void 0,ee.isEmptyData=function _(c){return"string"==typeof c?0===c.length:0===c.byteLength}},85183:(Ze,ee)=>{"use strict";Object.defineProperty(ee,"__esModule",{value:!0}),ee.numToUint8=void 0,ee.numToUint8=function _(c){return new Uint8Array([(4278190080&c)>>24,(16711680&c)>>16,(65280&c)>>8,255&c])}},26777:(Ze,ee)=>{"use strict";Object.defineProperty(ee,"__esModule",{value:!0}),ee.uint32ArrayFrom=void 0,ee.uint32ArrayFrom=function _(c){if(!Array.from){for(var b=new Uint32Array(c.length);0<c.length;)b[0]=c[0];return b}return Uint32Array.from(c)}},72521:(Ze,ee,_)=>{"use strict";_.r(ee),_.d(ee,{locateWindow:()=>b});const c={};function b(){return typeof window<"u"?window:typeof self<"u"?self:c}},12622:(Ze,ee,_)=>{"use strict";_.r(ee),_.d(ee,{fromUtf8:()=>O,toUtf8:()=>w});var O=function(y){return"function"==typeof TextEncoder?function M(y){return(new TextEncoder).encode(y)}(y):function(y){for(var g=[],x=0,N=y.length;x<N;x++){var T=y.charCodeAt(x);if(T<128)g.push(T);else if(T<2048)g.push(T>>6|192,63&T|128);else if(x+1<y.length&&55296==(64512&T)&&56320==(64512&y.charCodeAt(x+1))){var V=65536+((1023&T)<<10)+(1023&y.charCodeAt(++x));g.push(V>>18|240,V>>12&63|128,V>>6&63|128,63&V|128)}else g.push(T>>12|224,T>>6&63|128,63&T|128)}return Uint8Array.from(g)}(y)},w=function(y){return"function"==typeof TextDecoder?function F(y){return new TextDecoder("utf-8").decode(y)}(y):function(y){for(var g="",x=0,N=y.length;x<N;x++){var T=y[x];if(T<128)g+=String.fromCharCode(T);else if(192<=T&&T<224){var V=y[++x];g+=String.fromCharCode((31&T)<<6|63&V)}else if(240<=T&&T<365){var q="%"+[T,y[++x],y[++x],y[++x]].map(function(de){return de.toString(16)}).join("%");g+=decodeURIComponent(q)}else g+=String.fromCharCode((15&T)<<12|(63&y[++x])<<6|63&y[++x])}return g}(y)}},49895:(Ze,ee,_)=>{"use strict";_.d(ee,{sD:()=>c,ZA:()=>ln,xk:()=>wr,bR:()=>On,ws:()=>En,KC:()=>Et,AM:()=>jo,MZ:()=>Vn,eR:()=>kn,Ib:()=>ie});var M,c=function(){function Ve(Ce){var ce=Ce||{},Oe=ce.Username,Qe=ce.Password,tt=ce.AuthParameters,Xe=ce.ClientMetadata;this.validationData=ce.ValidationData||{},this.authParameters=tt||{},this.clientMetadata=Xe||{},this.username=Oe,this.password=Qe}var _e=Ve.prototype;return _e.getUsername=function(){return this.username},_e.getPassword=function(){return this.password},_e.getValidationData=function(){return this.validationData},_e.getAuthParameters=function(){return this.authParameters},_e.getClientMetadata=function(){return this.clientMetadata},Ve}(),b=_(93172);if(typeof window<"u"&&window.crypto&&(M=window.crypto),!M&&typeof window<"u"&&window.msCrypto&&(M=window.msCrypto),!M&&typeof global<"u"&&global.crypto&&(M=global.crypto),!M)try{M=_(56249)}catch{}function F(){if(M){if("function"==typeof M.getRandomValues)try{return M.getRandomValues(new Uint32Array(1))[0]}catch{}if("function"==typeof M.randomBytes)try{return M.randomBytes(4).readInt32LE()}catch{}}throw new Error("Native crypto module could not be used to get secure random number.")}var w=function(){function Ve(Ce,ce){Ce=this.words=Ce||[],this.sigBytes=null!=ce?ce:4*Ce.length}var _e=Ve.prototype;return _e.random=function(ce){for(var Ue=[],Oe=0;Oe<ce;Oe+=4)Ue.push(F());return new Ve(Ue,ce)},_e.toString=function(){return function O(Ve){for(var _e=Ve.words,Ce=Ve.sigBytes,ce=[],Ue=0;Ue<Ce;Ue++){var Oe=_e[Ue>>>2]>>>24-Ue%4*8&255;ce.push((Oe>>>4).toString(16)),ce.push((15&Oe).toString(16))}return ce.join("")}(this)},Ve}(),y=_(34578);const g=x;function x(Ve,_e){null!=Ve&&this.fromString(Ve,_e)}function N(){return new x(null)}var T,De=typeof navigator<"u";De&&"Microsoft Internet Explorer"==navigator.appName?(x.prototype.am=function de(Ve,_e,Ce,ce,Ue,Oe){for(var Qe=32767&_e,tt=_e>>15;--Oe>=0;){var Xe=32767&this[Ve],wt=this[Ve++]>>15,Ct=tt*Xe+wt*Qe;Ue=((Xe=Qe*Xe+((32767&Ct)<<15)+Ce[ce]+(1073741823&Ue))>>>30)+(Ct>>>15)+tt*wt+(Ue>>>30),Ce[ce++]=1073741823&Xe}return Ue},T=30):De&&"Netscape"!=navigator.appName?(x.prototype.am=function q(Ve,_e,Ce,ce,Ue,Oe){for(;--Oe>=0;){var Qe=_e*this[Ve++]+Ce[ce]+Ue;Ue=Math.floor(Qe/67108864),Ce[ce++]=67108863&Qe}return Ue},T=26):(x.prototype.am=function se(Ve,_e,Ce,ce,Ue,Oe){for(var Qe=16383&_e,tt=_e>>14;--Oe>=0;){var Xe=16383&this[Ve],wt=this[Ve++]>>14,Ct=tt*Xe+wt*Qe;Ue=((Xe=Qe*Xe+((16383&Ct)<<14)+Ce[ce]+Ue)>>28)+(Ct>>14)+tt*wt,Ce[ce++]=268435455&Xe}return Ue},T=28),x.prototype.DB=T,x.prototype.DM=(1<<T)-1,x.prototype.DV=1<<T,x.prototype.FV=Math.pow(2,52),x.prototype.F1=52-T,x.prototype.F2=2*T-52;var be,Y,xe="0123456789abcdefghijklmnopqrstuvwxyz",Me=new Array;for(be="0".charCodeAt(0),Y=0;Y<=9;++Y)Me[be++]=Y;for(be="a".charCodeAt(0),Y=10;Y<36;++Y)Me[be++]=Y;for(be="A".charCodeAt(0),Y=10;Y<36;++Y)Me[be++]=Y;function Be(Ve){return xe.charAt(Ve)}function le(Ve,_e){return Me[Ve.charCodeAt(_e)]??-1}function W(Ve){var _e=N();return _e.fromInt(Ve),_e}function we(Ve){var Ce,_e=1;return 0!=(Ce=Ve>>>16)&&(Ve=Ce,_e+=16),0!=(Ce=Ve>>8)&&(Ve=Ce,_e+=8),0!=(Ce=Ve>>4)&&(Ve=Ce,_e+=4),0!=(Ce=Ve>>2)&&(Ve=Ce,_e+=2),0!=(Ce=Ve>>1)&&(Ve=Ce,_e+=1),_e}function Tn(Ve){this.m=Ve,this.mp=Ve.invDigit(),this.mpl=32767&this.mp,this.mph=this.mp>>15,this.um=(1<<Ve.DB-15)-1,this.mt2=2*Ve.t}function ot(Ve){return b.lW.from((new w).random(Ve).toString(),"hex")}Tn.prototype.convert=function wn(Ve){var _e=N();return Ve.abs().dlShiftTo(this.m.t,_e),_e.divRemTo(this.m,null,_e),Ve.s<0&&_e.compareTo(x.ZERO)>0&&this.m.subTo(_e,_e),_e},Tn.prototype.revert=function zt(Ve){var _e=N();return Ve.copyTo(_e),this.reduce(_e),_e},Tn.prototype.reduce=function je(Ve){for(;Ve.t<=this.mt2;)Ve[Ve.t++]=0;for(var _e=0;_e<this.m.t;++_e){var Ce=32767&Ve[_e],ce=Ce*this.mpl+((Ce*this.mph+(Ve[_e]>>15)*this.mpl&this.um)<<15)&Ve.DM;for(Ve[Ce=_e+this.m.t]+=this.m.am(0,ce,Ve,_e,0,this.m.t);Ve[Ce]>=Ve.DV;)Ve[Ce]-=Ve.DV,Ve[++Ce]++}Ve.clamp(),Ve.drShiftTo(this.m.t,Ve),Ve.compareTo(this.m)>=0&&Ve.subTo(this.m,Ve)},Tn.prototype.mulTo=function re(Ve,_e,Ce){Ve.multiplyTo(_e,Ce),this.reduce(Ce)},Tn.prototype.sqrTo=function ne(Ve,_e){Ve.squareTo(_e),this.reduce(_e)},x.prototype.copyTo=function R(Ve){for(var _e=this.t-1;_e>=0;--_e)Ve[_e]=this[_e];Ve.t=this.t,Ve.s=this.s},x.prototype.fromInt=function U(Ve){this.t=1,this.s=Ve<0?-1:0,Ve>0?this[0]=Ve:Ve<-1?this[0]=Ve+this.DV:this.t=0},x.prototype.fromString=function oe(Ve,_e){var Ce;if(16==_e)Ce=4;else if(8==_e)Ce=3;else if(2==_e)Ce=1;else if(32==_e)Ce=5;else{if(4!=_e)throw new Error("Only radix 2, 4, 8, 16, 32 are supported");Ce=2}this.t=0,this.s=0;for(var ce=Ve.length,Ue=!1,Oe=0;--ce>=0;){var Qe=le(Ve,ce);Qe<0?"-"==Ve.charAt(ce)&&(Ue=!0):(Ue=!1,0==Oe?this[this.t++]=Qe:Oe+Ce>this.DB?(this[this.t-1]|=(Qe&(1<<this.DB-Oe)-1)<<Oe,this[this.t++]=Qe>>this.DB-Oe):this[this.t-1]|=Qe<<Oe,(Oe+=Ce)>=this.DB&&(Oe-=this.DB))}this.clamp(),Ue&&x.ZERO.subTo(this,this)},x.prototype.clamp=function ge(){for(var Ve=this.s&this.DM;this.t>0&&this[this.t-1]==Ve;)--this.t},x.prototype.dlShiftTo=function ke(Ve,_e){var Ce;for(Ce=this.t-1;Ce>=0;--Ce)_e[Ce+Ve]=this[Ce];for(Ce=Ve-1;Ce>=0;--Ce)_e[Ce]=0;_e.t=this.t+Ve,_e.s=this.s},x.prototype.drShiftTo=function ve(Ve,_e){for(var Ce=Ve;Ce<this.t;++Ce)_e[Ce-Ve]=this[Ce];_e.t=Math.max(this.t-Ve,0),_e.s=this.s},x.prototype.lShiftTo=function ze(Ve,_e){var tt,Ce=Ve%this.DB,ce=this.DB-Ce,Ue=(1<<ce)-1,Oe=Math.floor(Ve/this.DB),Qe=this.s<<Ce&this.DM;for(tt=this.t-1;tt>=0;--tt)_e[tt+Oe+1]=this[tt]>>ce|Qe,Qe=(this[tt]&Ue)<<Ce;for(tt=Oe-1;tt>=0;--tt)_e[tt]=0;_e[Oe]=Qe,_e.t=this.t+Oe+1,_e.s=this.s,_e.clamp()},x.prototype.rShiftTo=function Ie(Ve,_e){_e.s=this.s;var Ce=Math.floor(Ve/this.DB);if(Ce>=this.t)_e.t=0;else{var ce=Ve%this.DB,Ue=this.DB-ce,Oe=(1<<ce)-1;_e[0]=this[Ce]>>ce;for(var Qe=Ce+1;Qe<this.t;++Qe)_e[Qe-Ce-1]|=(this[Qe]&Oe)<<Ue,_e[Qe-Ce]=this[Qe]>>ce;ce>0&&(_e[this.t-Ce-1]|=(this.s&Oe)<<Ue),_e.t=this.t-Ce,_e.clamp()}},x.prototype.subTo=function ft(Ve,_e){for(var Ce=0,ce=0,Ue=Math.min(Ve.t,this.t);Ce<Ue;)ce+=this[Ce]-Ve[Ce],_e[Ce++]=ce&this.DM,ce>>=this.DB;if(Ve.t<this.t){for(ce-=Ve.s;Ce<this.t;)ce+=this[Ce],_e[Ce++]=ce&this.DM,ce>>=this.DB;ce+=this.s}else{for(ce+=this.s;Ce<Ve.t;)ce-=Ve[Ce],_e[Ce++]=ce&this.DM,ce>>=this.DB;ce-=Ve.s}_e.s=ce<0?-1:0,ce<-1?_e[Ce++]=this.DV+ce:ce>0&&(_e[Ce++]=ce),_e.t=Ce,_e.clamp()},x.prototype.multiplyTo=function pt(Ve,_e){var Ce=this.abs(),ce=Ve.abs(),Ue=Ce.t;for(_e.t=Ue+ce.t;--Ue>=0;)_e[Ue]=0;for(Ue=0;Ue<ce.t;++Ue)_e[Ue+Ce.t]=Ce.am(0,ce[Ue],_e,Ue,0,Ce.t);_e.s=0,_e.clamp(),this.s!=Ve.s&&x.ZERO.subTo(_e,_e)},x.prototype.squareTo=function mt(Ve){for(var _e=this.abs(),Ce=Ve.t=2*_e.t;--Ce>=0;)Ve[Ce]=0;for(Ce=0;Ce<_e.t-1;++Ce){var ce=_e.am(Ce,_e[Ce],Ve,2*Ce,0,1);(Ve[Ce+_e.t]+=_e.am(Ce+1,2*_e[Ce],Ve,2*Ce+1,ce,_e.t-Ce-1))>=_e.DV&&(Ve[Ce+_e.t]-=_e.DV,Ve[Ce+_e.t+1]=1)}Ve.t>0&&(Ve[Ve.t-1]+=_e.am(Ce,_e[Ce],Ve,2*Ce,0,1)),Ve.s=0,Ve.clamp()},x.prototype.divRemTo=function yt(Ve,_e,Ce){var ce=Ve.abs();if(!(ce.t<=0)){var Ue=this.abs();if(Ue.t<ce.t)return _e?.fromInt(0),void(null!=Ce&&this.copyTo(Ce));null==Ce&&(Ce=N());var Oe=N(),Qe=this.s,tt=Ve.s,Xe=this.DB-we(ce[ce.t-1]);Xe>0?(ce.lShiftTo(Xe,Oe),Ue.lShiftTo(Xe,Ce)):(ce.copyTo(Oe),Ue.copyTo(Ce));var wt=Oe.t,Ct=Oe[wt-1];if(0!=Ct){var $t=Ct*(1<<this.F1)+(wt>1?Oe[wt-2]>>this.F2:0),Gt=this.FV/$t,un=(1<<this.F1)/$t,Mn=1<<this.F2,an=Ce.t,rr=an-wt,Hn=_e??N();for(Oe.dlShiftTo(rr,Hn),Ce.compareTo(Hn)>=0&&(Ce[Ce.t++]=1,Ce.subTo(Hn,Ce)),x.ONE.dlShiftTo(wt,Hn),Hn.subTo(Oe,Oe);Oe.t<wt;)Oe[Oe.t++]=0;for(;--rr>=0;){var on=Ce[--an]==Ct?this.DM:Math.floor(Ce[an]*Gt+(Ce[an-1]+Mn)*un);if((Ce[an]+=Oe.am(0,on,Ce,rr,0,wt))<on)for(Oe.dlShiftTo(rr,Hn),Ce.subTo(Hn,Ce);Ce[an]<--on;)Ce.subTo(Hn,Ce)}null!=_e&&(Ce.drShiftTo(wt,_e),Qe!=tt&&x.ZERO.subTo(_e,_e)),Ce.t=wt,Ce.clamp(),Xe>0&&Ce.rShiftTo(Xe,Ce),Qe<0&&x.ZERO.subTo(Ce,Ce)}}},x.prototype.invDigit=function Zt(){if(this.t<1)return 0;var Ve=this[0];if(!(1&Ve))return 0;var _e=3&Ve;return(_e=(_e=(_e=(_e=_e*(2-(15&Ve)*_e)&15)*(2-(255&Ve)*_e)&255)*(2-((65535&Ve)*_e&65535))&65535)*(2-Ve*_e%this.DV)%this.DV)>0?this.DV-_e:-_e},x.prototype.addTo=function qt(Ve,_e){for(var Ce=0,ce=0,Ue=Math.min(Ve.t,this.t);Ce<Ue;)ce+=this[Ce]+Ve[Ce],_e[Ce++]=ce&this.DM,ce>>=this.DB;if(Ve.t<this.t){for(ce+=Ve.s;Ce<this.t;)ce+=this[Ce],_e[Ce++]=ce&this.DM,ce>>=this.DB;ce+=this.s}else{for(ce+=this.s;Ce<Ve.t;)ce+=Ve[Ce],_e[Ce++]=ce&this.DM,ce>>=this.DB;ce+=Ve.s}_e.s=ce<0?-1:0,ce>0?_e[Ce++]=ce:ce<-1&&(_e[Ce++]=this.DV+ce),_e.t=Ce,_e.clamp()},x.prototype.toString=function Q(Ve){if(this.s<0)return"-"+this.negate().toString(Ve);var _e;if(16==Ve)_e=4;else if(8==Ve)_e=3;else if(2==Ve)_e=1;else if(32==Ve)_e=5;else{if(4!=Ve)throw new Error("Only radix 2, 4, 8, 16, 32 are supported");_e=2}var ce,Ce=(1<<_e)-1,Ue=!1,Oe="",Qe=this.t,tt=this.DB-Qe*this.DB%_e;if(Qe-- >0)for(tt<this.DB&&(ce=this[Qe]>>tt)>0&&(Ue=!0,Oe=Be(ce));Qe>=0;)tt<_e?(ce=(this[Qe]&(1<<tt)-1)<<_e-tt,ce|=this[--Qe]>>(tt+=this.DB-_e)):(ce=this[Qe]>>(tt-=_e)&Ce,tt<=0&&(tt+=this.DB,--Qe)),ce>0&&(Ue=!0),Ue&&(Oe+=Be(ce));return Ue?Oe:"0"},x.prototype.negate=function ye(){var Ve=N();return x.ZERO.subTo(this,Ve),Ve},x.prototype.abs=function Le(){return this.s<0?this.negate():this},x.prototype.compareTo=function Ye(Ve){var _e=this.s-Ve.s;if(0!=_e)return _e;var Ce=this.t;if(0!=(_e=Ce-Ve.t))return this.s<0?-_e:_e;for(;--Ce>=0;)if(0!=(_e=this[Ce]-Ve[Ce]))return _e;return 0},x.prototype.bitLength=function Ge(){return this.t<=0?0:this.DB*(this.t-1)+we(this[this.t-1]^this.s&this.DM)},x.prototype.mod=function Pt(Ve){var _e=N();return this.abs().divRemTo(Ve,null,_e),this.s<0&&_e.compareTo(x.ZERO)>0&&Ve.subTo(_e,_e),_e},x.prototype.equals=function nn(Ve){return 0==this.compareTo(Ve)},x.prototype.add=function Ut(Ve){var _e=N();return this.addTo(Ve,_e),_e},x.prototype.subtract=function jt(Ve){var _e=N();return this.subTo(Ve,_e),_e},x.prototype.multiply=function hn(Ve){var _e=N();return this.multiplyTo(Ve,_e),_e},x.prototype.divide=function xn(Ve){var _e=N();return this.divRemTo(Ve,_e,null),_e},x.prototype.modPow=function $e(Ve,_e,Ce){var Ue,ce=Ve.bitLength(),Oe=W(1),Qe=new Tn(_e);if(ce<=0)return Oe;Ue=ce<18?1:ce<48?3:ce<144?4:ce<768?5:6;var tt=new Array,Xe=3,wt=Ue-1,Ct=(1<<Ue)-1;if(tt[1]=Qe.convert(this),Ue>1){var $t=N();for(Qe.sqrTo(tt[1],$t);Xe<=Ct;)tt[Xe]=N(),Qe.mulTo($t,tt[Xe-2],tt[Xe]),Xe+=2}var un,rr,Gt=Ve.t-1,Mn=!0,an=N();for(ce=we(Ve[Gt])-1;Gt>=0;){for(ce>=wt?un=Ve[Gt]>>ce-wt&Ct:(un=(Ve[Gt]&(1<<ce+1)-1)<<wt-ce,Gt>0&&(un|=Ve[Gt-1]>>this.DB+ce-wt)),Xe=Ue;!(1&un);)un>>=1,--Xe;if((ce-=Xe)<0&&(ce+=this.DB,--Gt),Mn)tt[un].copyTo(Oe),Mn=!1;else{for(;Xe>1;)Qe.sqrTo(Oe,an),Qe.sqrTo(an,Oe),Xe-=2;Xe>0?Qe.sqrTo(Oe,an):(rr=Oe,Oe=an,an=rr),Qe.mulTo(an,tt[un],Oe)}for(;Gt>=0&&!(Ve[Gt]&1<<ce);)Qe.sqrTo(Oe,an),rr=Oe,Oe=an,an=rr,--ce<0&&(ce=this.DB-1,--Gt)}var Hn=Qe.revert(Oe);return Ce(null,Hn),Hn},x.ZERO=W(0),x.ONE=W(1);var vt=/^[89a-f]/i,lt="FFFFFFFFFFFFFFFFC90FDAA22168C234C4C6628B80DC1CD129024E088A67CC74020BBEA63B139B22514A08798E3404DDEF9519B3CD3A431B302B0A6DF25F14374FE1356D6D51C245E485B576625E7EC6F44C42E9A637ED6B0BFF5CB6F406B7EDEE386BFB5A899FA5AE9F24117C4B1FE649286651ECE45B3DC2007CB8A163BF0598DA48361C55D39A69163FA8FD24CF5F83655D23DCA3AD961C62F356208552BB9ED529077096966D670C354E4ABC9804F1746C08CA18217C32905E462E36CE3BE39E772C180E86039B2783A2EC07A28FB5C55DF06F4C52C9DE2BCBF6955817183995497CEA956AE515D2261898FA051015728E5A8AAAC42DAD33170D04507A33A85521ABDF1CBA64ECFB850458DBEF0A8AEA71575D060C7DB3970F85A6E1E4C7ABF5AE8CDB0933D71E8C94E04A25619DCEE3D2261AD2EE6BF12FFA06D98A0864D87602733EC86A64521F2B18177B200CBBE117577A615D6C770988C0BAD946E208E24FA074E5AB3143DB5BFCE0FD108E4B82D120A93AD2CAFFFFFFFFFFFFFFFF",Nt=function(){function Ve(Ce){this.N=new g(lt,16),this.g=new g("2",16),this.k=new g(this.hexHash(""+this.padHex(this.N)+this.padHex(this.g)),16),this.smallAValue=this.generateRandomSmallA(),this.getLargeAValue(function(){}),this.infoBits=b.lW.from("Caldera Derived Key","utf8"),this.poolName=Ce}var _e=Ve.prototype;return _e.getSmallAValue=function(){return this.smallAValue},_e.getLargeAValue=function(ce){var Ue=this;this.largeAValue?ce(null,this.largeAValue):this.calculateA(this.smallAValue,function(Oe,Qe){Oe&&ce(Oe,null),Ue.largeAValue=Qe,ce(null,Ue.largeAValue)})},_e.generateRandomSmallA=function(){var ce=ot(128).toString("hex");return new g(ce,16)},_e.generateRandomString=function(){return ot(40).toString("base64")},_e.getRandomPassword=function(){return this.randomPassword},_e.getSaltDevices=function(){return this.SaltToHashDevices},_e.getVerifierDevices=function(){return this.verifierDevices},_e.generateHashDevice=function(ce,Ue,Oe){var Qe=this;this.randomPassword=this.generateRandomString();var Xe=this.hash(""+ce+Ue+":"+this.randomPassword),wt=ot(16).toString("hex");this.SaltToHashDevices=this.padHex(new g(wt,16)),this.g.modPow(new g(this.hexHash(this.SaltToHashDevices+Xe),16),this.N,function(Ct,$t){Ct&&Oe(Ct,null),Qe.verifierDevices=Qe.padHex($t),Oe(null,null)})},_e.calculateA=function(ce,Ue){var Oe=this;this.g.modPow(ce,this.N,function(Qe,tt){Qe&&Ue(Qe,null),tt.mod(Oe.N).equals(g.ZERO)&&Ue(new Error("Illegal paramater. A mod N cannot be 0."),null),Ue(null,tt)})},_e.calculateU=function(ce,Ue){return this.UHexHash=this.hexHash(this.padHex(ce)+this.padHex(Ue)),new g(this.UHexHash,16)},_e.hash=function(ce){var Ue=new y.Sha256;Ue.update(ce);var Oe=Ue.digestSync(),Qe=b.lW.from(Oe).toString("hex");return new Array(64-Qe.length).join("0")+Qe},_e.hexHash=function(ce){return this.hash(b.lW.from(ce,"hex"))},_e.computehkdf=function(ce,Ue){var Oe=b.lW.concat([this.infoBits,b.lW.from(String.fromCharCode(1),"utf8")]),Qe=new y.Sha256(Ue);Qe.update(ce);var tt=Qe.digestSync(),Xe=new y.Sha256(tt);return Xe.update(Oe),Xe.digestSync().slice(0,16)},_e.getPasswordAuthenticationKey=function(ce,Ue,Oe,Qe,tt){var Xe=this;if(Oe.mod(this.N).equals(g.ZERO))throw new Error("B cannot be zero.");if(this.UValue=this.calculateU(this.largeAValue,Oe),this.UValue.equals(g.ZERO))throw new Error("U cannot be zero.");var Ct=this.hash(""+this.poolName+ce+":"+Ue),$t=new g(this.hexHash(this.padHex(Qe)+Ct),16);this.calculateS($t,Oe,function(Gt,un){Gt&&tt(Gt,null);var Mn=Xe.computehkdf(b.lW.from(Xe.padHex(un),"hex"),b.lW.from(Xe.padHex(Xe.UValue),"hex"));tt(null,Mn)})},_e.calculateS=function(ce,Ue,Oe){var Qe=this;this.g.modPow(ce,this.N,function(tt,Xe){tt&&Oe(tt,null),Ue.subtract(Qe.k.multiply(Xe)).modPow(Qe.smallAValue.add(Qe.UValue.multiply(ce)),Qe.N,function(Ct,$t){Ct&&Oe(Ct,null),Oe(null,$t.mod(Qe.N))})})},_e.getNewPasswordRequiredChallengeUserAttributePrefix=function(){return"userAttributes."},_e.padHex=function(ce){if(!(ce instanceof g))throw new Error("Not a BigInteger");var Ue=ce.compareTo(g.ZERO)<0,Oe=ce.abs().toString(16);if(Oe=vt.test(Oe=Oe.length%2!=0?"0"+Oe:Oe)?"00"+Oe:Oe,Ue){var Qe=Oe.split("").map(function(Xe){var wt=15&~parseInt(Xe,16);return"0123456789ABCDEF".charAt(wt)}).join("");(Oe=new g(Qe,16).add(g.ONE).toString(16)).toUpperCase().startsWith("FF8")&&(Oe=Oe.substring(2))}return Oe},Ve}(),It=function(){function Ve(Ce){this.jwtToken=Ce||"",this.payload=this.decodePayload()}var _e=Ve.prototype;return _e.getJwtToken=function(){return this.jwtToken},_e.getExpiration=function(){return this.payload.exp},_e.getIssuedAt=function(){return this.payload.iat},_e.decodePayload=function(){var ce=this.jwtToken.split(".")[1];try{return JSON.parse(b.lW.from(ce,"base64").toString("utf8"))}catch{return{}}},Ve}();function cn(Ve,_e){return(cn=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(ce,Ue){return ce.__proto__=Ue,ce})(Ve,_e)}var ln=function(Ve){function _e(Ce){return Ve.call(this,(void 0===Ce?{}:Ce).AccessToken||"")||this}return function pn(Ve,_e){Ve.prototype=Object.create(_e.prototype),Ve.prototype.constructor=Ve,cn(Ve,_e)}(_e,Ve),_e}(It);function Gn(Ve,_e){return(Gn=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(ce,Ue){return ce.__proto__=Ue,ce})(Ve,_e)}var wr=function(Ve){function _e(Ce){return Ve.call(this,(void 0===Ce?{}:Ce).IdToken||"")||this}return function lr(Ve,_e){Ve.prototype=Object.create(_e.prototype),Ve.prototype.constructor=Ve,Gn(Ve,_e)}(_e,Ve),_e}(It),On=function(){function Ve(Ce){this.token=(void 0===Ce?{}:Ce).RefreshToken||""}return Ve.prototype.getToken=function(){return this.token},Ve}(),Cn="aws-amplify/5.0.4",nr={userAgent:Cn+" js",product:"",navigator:null,isReactNative:!1};typeof navigator<"u"&&navigator.product&&("ReactNative"===(nr.product=navigator.product||"",nr.navigator=navigator||null,navigator.product)?(nr.userAgent=Cn+" react-native",nr.isReactNative=!0):(nr.userAgent=Cn+" js",nr.isReactNative=!1));var Vn=function(){function Ve(Ce){var ce=void 0===Ce?{}:Ce,Ue=ce.IdToken,Oe=ce.RefreshToken,Qe=ce.AccessToken,tt=ce.ClockDrift;if(null==Qe||null==Ue)throw new Error("Id token and Access Token must be present.");this.idToken=Ue,this.refreshToken=Oe,this.accessToken=Qe,this.clockDrift=void 0===tt?this.calculateClockDrift():tt}var _e=Ve.prototype;return _e.getIdToken=function(){return this.idToken},_e.getRefreshToken=function(){return this.refreshToken},_e.getAccessToken=function(){return this.accessToken},_e.getClockDrift=function(){return this.clockDrift},_e.calculateClockDrift=function(){return Math.floor(new Date/1e3)-Math.min(this.accessToken.getIssuedAt(),this.idToken.getIssuedAt())},_e.isValid=function(){var Ue=Math.floor(new Date/1e3)-this.clockDrift;return Ue<this.accessToken.getExpiration()&&Ue<this.idToken.getExpiration()},Ve}(),ct=["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"],qe=["Sun","Mon","Tue","Wed","Thu","Fri","Sat"],et=function(){function Ve(){}return Ve.prototype.getNowString=function(){var ce=new Date,Ue=qe[ce.getUTCDay()],Oe=ct[ce.getUTCMonth()],Qe=ce.getUTCDate(),tt=ce.getUTCHours();tt<10&&(tt="0"+tt);var Xe=ce.getUTCMinutes();Xe<10&&(Xe="0"+Xe);var wt=ce.getUTCSeconds();return wt<10&&(wt="0"+wt),Ue+" "+Oe+" "+Qe+" "+tt+":"+Xe+":"+wt+" UTC "+ce.getUTCFullYear()},Ve}(),Et=function(){function Ve(Ce){var ce=void 0===Ce?{}:Ce,Oe=ce.Value;this.Name=ce.Name||"",this.Value=Oe||""}var _e=Ve.prototype;return _e.getValue=function(){return this.Value},_e.setValue=function(ce){return this.Value=ce,this},_e.getName=function(){return this.Name},_e.setName=function(ce){return this.Name=ce,this},_e.toString=function(){return JSON.stringify(this)},_e.toJSON=function(){return{Name:this.Name,Value:this.Value}},Ve}(),St={},Xt=function(){function Ve(){}return Ve.setItem=function(Ce,ce){return St[Ce]=ce,St[Ce]},Ve.getItem=function(Ce){return Object.prototype.hasOwnProperty.call(St,Ce)?St[Ce]:void 0},Ve.removeItem=function(Ce){return delete St[Ce]},Ve.clear=function(){return St={}},Ve}(),vn=function(){function Ve(){try{this.storageWindow=window.localStorage,this.storageWindow.setItem("aws.cognito.test-ls",1),this.storageWindow.removeItem("aws.cognito.test-ls")}catch{this.storageWindow=Xt}}return Ve.prototype.getStorage=function(){return this.storageWindow},Ve}(),rn=typeof navigator<"u"?nr.isReactNative?"react-native":navigator.userAgent:"nodejs",En=function(){function Ve(Ce){if(null==Ce||null==Ce.Username||null==Ce.Pool)throw new Error("Username and Pool information are required.");this.username=Ce.Username||"",this.pool=Ce.Pool,this.Session=null,this.client=Ce.Pool.client,this.signInUserSession=null,this.authenticationFlowType="USER_SRP_AUTH",this.storage=Ce.Storage||(new vn).getStorage(),this.keyPrefix="CognitoIdentityServiceProvider."+this.pool.getClientId(),this.userDataKey=this.keyPrefix+"."+this.username+".userData"}var _e=Ve.prototype;return _e.setSignInUserSession=function(ce){this.clearCachedUserData(),this.signInUserSession=ce,this.cacheTokens()},_e.getSignInUserSession=function(){return this.signInUserSession},_e.getUsername=function(){return this.username},_e.getAuthenticationFlowType=function(){return this.authenticationFlowType},_e.setAuthenticationFlowType=function(ce){this.authenticationFlowType=ce},_e.initiateAuth=function(ce,Ue){var Oe=this,Qe=ce.getAuthParameters();Qe.USERNAME=this.username;var tt=0!==Object.keys(ce.getValidationData()).length?ce.getValidationData():ce.getClientMetadata(),Xe={AuthFlow:"CUSTOM_AUTH",ClientId:this.pool.getClientId(),AuthParameters:Qe,ClientMetadata:tt};this.getUserContextData()&&(Xe.UserContextData=this.getUserContextData()),this.client.request("InitiateAuth",Xe,function(wt,Ct){if(wt)return Ue.onFailure(wt);var Gt=Ct.ChallengeParameters;return"CUSTOM_CHALLENGE"===Ct.ChallengeName?(Oe.Session=Ct.Session,Ue.customChallenge(Gt)):(Oe.signInUserSession=Oe.getCognitoUserSession(Ct.AuthenticationResult),Oe.cacheTokens(),Ue.onSuccess(Oe.signInUserSession))})},_e.authenticateUser=function(ce,Ue){return"USER_PASSWORD_AUTH"===this.authenticationFlowType?this.authenticateUserPlainUsernamePassword(ce,Ue):"USER_SRP_AUTH"===this.authenticationFlowType||"CUSTOM_AUTH"===this.authenticationFlowType?this.authenticateUserDefaultAuth(ce,Ue):Ue.onFailure(new Error("Authentication flow type is invalid."))},_e.authenticateUserDefaultAuth=function(ce,Ue){var Xe,wt,Oe=this,Qe=new Nt(this.pool.getUserPoolName()),tt=new et,Ct={};null!=this.deviceKey&&(Ct.DEVICE_KEY=this.deviceKey),Ct.USERNAME=this.username,Qe.getLargeAValue(function($t,Gt){$t&&Ue.onFailure($t),Ct.SRP_A=Gt.toString(16),"CUSTOM_AUTH"===Oe.authenticationFlowType&&(Ct.CHALLENGE_NAME="SRP_A");var un=0!==Object.keys(ce.getValidationData()).length?ce.getValidationData():ce.getClientMetadata(),Mn={AuthFlow:Oe.authenticationFlowType,ClientId:Oe.pool.getClientId(),AuthParameters:Ct,ClientMetadata:un};Oe.getUserContextData(Oe.username)&&(Mn.UserContextData=Oe.getUserContextData(Oe.username)),Oe.client.request("InitiateAuth",Mn,function(an,rr){if(an)return Ue.onFailure(an);var Hn=rr.ChallengeParameters;Oe.username=Hn.USER_ID_FOR_SRP,Oe.userDataKey=Oe.keyPrefix+"."+Oe.username+".userData",Xe=new g(Hn.SRP_B,16),wt=new g(Hn.SALT,16),Oe.getCachedDeviceKeyAndPassword(),Qe.getPasswordAuthenticationKey(Oe.username,ce.getPassword(),Xe,wt,function(on,Pr){on&&Ue.onFailure(on);var vr=tt.getNowString(),Lr=b.lW.concat([b.lW.from(Oe.pool.getUserPoolName(),"utf8"),b.lW.from(Oe.username,"utf8"),b.lW.from(Hn.SECRET_BLOCK,"base64"),b.lW.from(vr,"utf8")]),_r=new y.Sha256(Pr);_r.update(Lr);var ar=_r.digestSync(),Jn=b.lW.from(ar).toString("base64"),fr={};fr.USERNAME=Oe.username,fr.PASSWORD_CLAIM_SECRET_BLOCK=Hn.SECRET_BLOCK,fr.TIMESTAMP=vr,fr.PASSWORD_CLAIM_SIGNATURE=Jn,null!=Oe.deviceKey&&(fr.DEVICE_KEY=Oe.deviceKey);var ui={ChallengeName:"PASSWORD_VERIFIER",ClientId:Oe.pool.getClientId(),ChallengeResponses:fr,Session:rr.Session,ClientMetadata:un};Oe.getUserContextData()&&(ui.UserContextData=Oe.getUserContextData()),function Ai(Ln,Ui){return Oe.client.request("RespondToAuthChallenge",Ln,function(li,uo){return li&&"ResourceNotFoundException"===li.code&&-1!==li.message.toLowerCase().indexOf("device")?(fr.DEVICE_KEY=null,Oe.deviceKey=null,Oe.randomPassword=null,Oe.deviceGroupKey=null,Oe.clearCachedDeviceKeyAndPassword(),Ai(Ln,Ui)):Ui(li,uo)})}(ui,function(Ai,Ln){return Ai?Ue.onFailure(Ai):Oe.authenticateUserInternal(Ln,Qe,Ue)})})})})},_e.authenticateUserPlainUsernamePassword=function(ce,Ue){var Oe=this,Qe={};if(Qe.USERNAME=this.username,Qe.PASSWORD=ce.getPassword(),Qe.PASSWORD){var tt=new Nt(this.pool.getUserPoolName());this.getCachedDeviceKeyAndPassword(),null!=this.deviceKey&&(Qe.DEVICE_KEY=this.deviceKey);var Xe=0!==Object.keys(ce.getValidationData()).length?ce.getValidationData():ce.getClientMetadata(),wt={AuthFlow:"USER_PASSWORD_AUTH",ClientId:this.pool.getClientId(),AuthParameters:Qe,ClientMetadata:Xe};this.getUserContextData(this.username)&&(wt.UserContextData=this.getUserContextData(this.username)),this.client.request("InitiateAuth",wt,function(Ct,$t){return Ct?Ue.onFailure(Ct):Oe.authenticateUserInternal($t,tt,Ue)})}else Ue.onFailure(new Error("PASSWORD parameter is required"))},_e.authenticateUserInternal=function(ce,Ue,Oe){var Qe=this,tt=ce.ChallengeName,Xe=ce.ChallengeParameters;if("SMS_MFA"===tt)return this.Session=ce.Session,Oe.mfaRequired(tt,Xe);if("SELECT_MFA_TYPE"===tt)return this.Session=ce.Session,Oe.selectMFAType(tt,Xe);if("MFA_SETUP"===tt)return this.Session=ce.Session,Oe.mfaSetup(tt,Xe);if("SOFTWARE_TOKEN_MFA"===tt)return this.Session=ce.Session,Oe.totpRequired(tt,Xe);if("CUSTOM_CHALLENGE"===tt)return this.Session=ce.Session,Oe.customChallenge(Xe);if("NEW_PASSWORD_REQUIRED"===tt){this.Session=ce.Session;var wt=null,Ct=null,$t=[],Gt=Ue.getNewPasswordRequiredChallengeUserAttributePrefix();if(Xe&&(wt=JSON.parse(ce.ChallengeParameters.userAttributes),Ct=JSON.parse(ce.ChallengeParameters.requiredAttributes)),Ct)for(var un=0;un<Ct.length;un++)$t[un]=Ct[un].substr(Gt.length);return Oe.newPasswordRequired(wt,$t)}if("DEVICE_SRP_AUTH"===tt)return this.Session=ce.Session,void this.getDeviceResponse(Oe);this.signInUserSession=this.getCognitoUserSession(ce.AuthenticationResult),this.challengeName=tt,this.cacheTokens();var Mn=ce.AuthenticationResult.NewDeviceMetadata;if(null==Mn)return Oe.onSuccess(this.signInUserSession);Ue.generateHashDevice(ce.AuthenticationResult.NewDeviceMetadata.DeviceGroupKey,ce.AuthenticationResult.NewDeviceMetadata.DeviceKey,function(an){if(an)return Oe.onFailure(an);var rr={Salt:b.lW.from(Ue.getSaltDevices(),"hex").toString("base64"),PasswordVerifier:b.lW.from(Ue.getVerifierDevices(),"hex").toString("base64")};Qe.verifierDevices=rr.PasswordVerifier,Qe.deviceGroupKey=Mn.DeviceGroupKey,Qe.randomPassword=Ue.getRandomPassword(),Qe.client.request("ConfirmDevice",{DeviceKey:Mn.DeviceKey,AccessToken:Qe.signInUserSession.getAccessToken().getJwtToken(),DeviceSecretVerifierConfig:rr,DeviceName:rn},function(Hn,on){return Hn?Oe.onFailure(Hn):(Qe.deviceKey=ce.AuthenticationResult.NewDeviceMetadata.DeviceKey,Qe.cacheDeviceKeyAndPassword(),!0===on.UserConfirmationNecessary?Oe.onSuccess(Qe.signInUserSession,on.UserConfirmationNecessary):Oe.onSuccess(Qe.signInUserSession))})})},_e.completeNewPasswordChallenge=function(ce,Ue,Oe,Qe){var tt=this;if(!ce)return Oe.onFailure(new Error("New password is required."));var Xe=new Nt(this.pool.getUserPoolName()),wt=Xe.getNewPasswordRequiredChallengeUserAttributePrefix(),Ct={};Ue&&Object.keys(Ue).forEach(function(Gt){Ct[wt+Gt]=Ue[Gt]}),Ct.NEW_PASSWORD=ce,Ct.USERNAME=this.username;var $t={ChallengeName:"NEW_PASSWORD_REQUIRED",ClientId:this.pool.getClientId(),ChallengeResponses:Ct,Session:this.Session,ClientMetadata:Qe};this.getUserContextData()&&($t.UserContextData=this.getUserContextData()),this.client.request("RespondToAuthChallenge",$t,function(Gt,un){return Gt?Oe.onFailure(Gt):tt.authenticateUserInternal(un,Xe,Oe)})},_e.getDeviceResponse=function(ce,Ue){var Oe=this,Qe=new Nt(this.deviceGroupKey),tt=new et,Xe={};Xe.USERNAME=this.username,Xe.DEVICE_KEY=this.deviceKey,Qe.getLargeAValue(function(wt,Ct){wt&&ce.onFailure(wt),Xe.SRP_A=Ct.toString(16);var $t={ChallengeName:"DEVICE_SRP_AUTH",ClientId:Oe.pool.getClientId(),ChallengeResponses:Xe,ClientMetadata:Ue,Session:Oe.Session};Oe.getUserContextData()&&($t.UserContextData=Oe.getUserContextData()),Oe.client.request("RespondToAuthChallenge",$t,function(Gt,un){if(Gt)return ce.onFailure(Gt);var Mn=un.ChallengeParameters,an=new g(Mn.SRP_B,16),rr=new g(Mn.SALT,16);Qe.getPasswordAuthenticationKey(Oe.deviceKey,Oe.randomPassword,an,rr,function(Hn,on){if(Hn)return ce.onFailure(Hn);var Pr=tt.getNowString(),vr=b.lW.concat([b.lW.from(Oe.deviceGroupKey,"utf8"),b.lW.from(Oe.deviceKey,"utf8"),b.lW.from(Mn.SECRET_BLOCK,"base64"),b.lW.from(Pr,"utf8")]),Lr=new y.Sha256(on);Lr.update(vr);var _r=Lr.digestSync(),ar=b.lW.from(_r).toString("base64"),Jn={};Jn.USERNAME=Oe.username,Jn.PASSWORD_CLAIM_SECRET_BLOCK=Mn.SECRET_BLOCK,Jn.TIMESTAMP=Pr,Jn.PASSWORD_CLAIM_SIGNATURE=ar,Jn.DEVICE_KEY=Oe.deviceKey;var fr={ChallengeName:"DEVICE_PASSWORD_VERIFIER",ClientId:Oe.pool.getClientId(),ChallengeResponses:Jn,Session:un.Session};Oe.getUserContextData()&&(fr.UserContextData=Oe.getUserContextData()),Oe.client.request("RespondToAuthChallenge",fr,function(Ur,ui){return Ur?ce.onFailure(Ur):(Oe.signInUserSession=Oe.getCognitoUserSession(ui.AuthenticationResult),Oe.cacheTokens(),ce.onSuccess(Oe.signInUserSession))})})})})},_e.confirmRegistration=function(ce,Ue,Oe,Qe){var tt={ClientId:this.pool.getClientId(),ConfirmationCode:ce,Username:this.username,ForceAliasCreation:Ue,ClientMetadata:Qe};this.getUserContextData()&&(tt.UserContextData=this.getUserContextData()),this.client.request("ConfirmSignUp",tt,function(Xe){return Xe?Oe(Xe,null):Oe(null,"SUCCESS")})},_e.sendCustomChallengeAnswer=function(ce,Ue,Oe){var Qe=this,tt={};tt.USERNAME=this.username,tt.ANSWER=ce;var Xe=new Nt(this.pool.getUserPoolName());this.getCachedDeviceKeyAndPassword(),null!=this.deviceKey&&(tt.DEVICE_KEY=this.deviceKey);var wt={ChallengeName:"CUSTOM_CHALLENGE",ChallengeResponses:tt,ClientId:this.pool.getClientId(),Session:this.Session,ClientMetadata:Oe};this.getUserContextData()&&(wt.UserContextData=this.getUserContextData()),this.client.request("RespondToAuthChallenge",wt,function(Ct,$t){return Ct?Ue.onFailure(Ct):Qe.authenticateUserInternal($t,Xe,Ue)})},_e.sendMFACode=function(ce,Ue,Oe,Qe){var tt=this,Xe={};Xe.USERNAME=this.username,Xe.SMS_MFA_CODE=ce;var wt=Oe||"SMS_MFA";"SOFTWARE_TOKEN_MFA"===wt&&(Xe.SOFTWARE_TOKEN_MFA_CODE=ce),null!=this.deviceKey&&(Xe.DEVICE_KEY=this.deviceKey);var Ct={ChallengeName:wt,ChallengeResponses:Xe,ClientId:this.pool.getClientId(),Session:this.Session,ClientMetadata:Qe};this.getUserContextData()&&(Ct.UserContextData=this.getUserContextData()),this.client.request("RespondToAuthChallenge",Ct,function($t,Gt){if($t)return Ue.onFailure($t);if("DEVICE_SRP_AUTH"!==Gt.ChallengeName){if(tt.signInUserSession=tt.getCognitoUserSession(Gt.AuthenticationResult),tt.cacheTokens(),null==Gt.AuthenticationResult.NewDeviceMetadata)return Ue.onSuccess(tt.signInUserSession);var Mn=new Nt(tt.pool.getUserPoolName());Mn.generateHashDevice(Gt.AuthenticationResult.NewDeviceMetadata.DeviceGroupKey,Gt.AuthenticationResult.NewDeviceMetadata.DeviceKey,function(an){if(an)return Ue.onFailure(an);var rr={Salt:b.lW.from(Mn.getSaltDevices(),"hex").toString("base64"),PasswordVerifier:b.lW.from(Mn.getVerifierDevices(),"hex").toString("base64")};tt.verifierDevices=rr.PasswordVerifier,tt.deviceGroupKey=Gt.AuthenticationResult.NewDeviceMetadata.DeviceGroupKey,tt.randomPassword=Mn.getRandomPassword(),tt.client.request("ConfirmDevice",{DeviceKey:Gt.AuthenticationResult.NewDeviceMetadata.DeviceKey,AccessToken:tt.signInUserSession.getAccessToken().getJwtToken(),DeviceSecretVerifierConfig:rr,DeviceName:rn},function(Hn,on){return Hn?Ue.onFailure(Hn):(tt.deviceKey=Gt.AuthenticationResult.NewDeviceMetadata.DeviceKey,tt.cacheDeviceKeyAndPassword(),!0===on.UserConfirmationNecessary?Ue.onSuccess(tt.signInUserSession,on.UserConfirmationNecessary):Ue.onSuccess(tt.signInUserSession))})})}else tt.getDeviceResponse(Ue)})},_e.changePassword=function(ce,Ue,Oe,Qe){if(null==this.signInUserSession||!this.signInUserSession.isValid())return Oe(new Error("User is not authenticated"),null);this.client.request("ChangePassword",{PreviousPassword:ce,ProposedPassword:Ue,AccessToken:this.signInUserSession.getAccessToken().getJwtToken(),ClientMetadata:Qe},function(tt){return tt?Oe(tt,null):Oe(null,"SUCCESS")})},_e.enableMFA=function(ce){if(null==this.signInUserSession||!this.signInUserSession.isValid())return ce(new Error("User is not authenticated"),null);var Ue=[];Ue.push({DeliveryMedium:"SMS",AttributeName:"phone_number"}),this.client.request("SetUserSettings",{MFAOptions:Ue,AccessToken:this.signInUserSession.getAccessToken().getJwtToken()},function(Qe){return Qe?ce(Qe,null):ce(null,"SUCCESS")})},_e.setUserMfaPreference=function(ce,Ue,Oe){if(null==this.signInUserSession||!this.signInUserSession.isValid())return Oe(new Error("User is not authenticated"),null);this.client.request("SetUserMFAPreference",{SMSMfaSettings:ce,SoftwareTokenMfaSettings:Ue,AccessToken:this.signInUserSession.getAccessToken().getJwtToken()},function(Qe){return Qe?Oe(Qe,null):Oe(null,"SUCCESS")})},_e.disableMFA=function(ce){if(null==this.signInUserSession||!this.signInUserSession.isValid())return ce(new Error("User is not authenticated"),null);this.client.request("SetUserSettings",{MFAOptions:[],AccessToken:this.signInUserSession.getAccessToken().getJwtToken()},function(Oe){return Oe?ce(Oe,null):ce(null,"SUCCESS")})},_e.deleteUser=function(ce,Ue){var Oe=this;if(null==this.signInUserSession||!this.signInUserSession.isValid())return ce(new Error("User is not authenticated"),null);this.client.request("DeleteUser",{AccessToken:this.signInUserSession.getAccessToken().getJwtToken(),ClientMetadata:Ue},function(Qe){return Qe?ce(Qe,null):(Oe.clearCachedUser(),ce(null,"SUCCESS"))})},_e.updateAttributes=function(ce,Ue,Oe){var Qe=this;if(null==this.signInUserSession||!this.signInUserSession.isValid())return Ue(new Error("User is not authenticated"),null);this.client.request("UpdateUserAttributes",{AccessToken:this.signInUserSession.getAccessToken().getJwtToken(),UserAttributes:ce,ClientMetadata:Oe},function(tt,Xe){return tt?Ue(tt,null):Qe.getUserData(function(){return Ue(null,"SUCCESS",Xe)},{bypassCache:!0})})},_e.getUserAttributes=function(ce){if(null==this.signInUserSession||!this.signInUserSession.isValid())return ce(new Error("User is not authenticated"),null);this.client.request("GetUser",{AccessToken:this.signInUserSession.getAccessToken().getJwtToken()},function(Ue,Oe){if(Ue)return ce(Ue,null);for(var Qe=[],tt=0;tt<Oe.UserAttributes.length;tt++){var wt=new Et({Name:Oe.UserAttributes[tt].Name,Value:Oe.UserAttributes[tt].Value});Qe.push(wt)}return ce(null,Qe)})},_e.getMFAOptions=function(ce){if(null==this.signInUserSession||!this.signInUserSession.isValid())return ce(new Error("User is not authenticated"),null);this.client.request("GetUser",{AccessToken:this.signInUserSession.getAccessToken().getJwtToken()},function(Ue,Oe){return Ue?ce(Ue,null):ce(null,Oe.MFAOptions)})},_e.createGetUserRequest=function(){return this.client.promisifyRequest("GetUser",{AccessToken:this.signInUserSession.getAccessToken().getJwtToken()})},_e.refreshSessionIfPossible=function(ce){var Ue=this;return void 0===ce&&(ce={}),new Promise(function(Oe){var Qe=Ue.signInUserSession.getRefreshToken();Qe&&Qe.getToken()?Ue.refreshSession(Qe,Oe,ce.clientMetadata):Oe()})},_e.getUserData=function(ce,Ue){var Oe=this;if(null==this.signInUserSession||!this.signInUserSession.isValid())return this.clearCachedUserData(),ce(new Error("User is not authenticated"),null);var Qe=this.getUserDataFromCache();if(Qe)if(this.isFetchUserDataAndTokenRequired(Ue))this.fetchUserData().then(function(tt){return Oe.refreshSessionIfPossible(Ue).then(function(){return tt})}).then(function(tt){return ce(null,tt)}).catch(ce);else try{return void ce(null,JSON.parse(Qe))}catch(tt){return this.clearCachedUserData(),void ce(tt,null)}else this.fetchUserData().then(function(tt){ce(null,tt)}).catch(ce)},_e.getUserDataFromCache=function(){return this.storage.getItem(this.userDataKey)},_e.isFetchUserDataAndTokenRequired=function(ce){var Oe=(ce||{}).bypassCache;return void 0!==Oe&&Oe},_e.fetchUserData=function(){var ce=this;return this.createGetUserRequest().then(function(Ue){return ce.cacheUserData(Ue),Ue})},_e.deleteAttributes=function(ce,Ue){var Oe=this;if(null==this.signInUserSession||!this.signInUserSession.isValid())return Ue(new Error("User is not authenticated"),null);this.client.request("DeleteUserAttributes",{UserAttributeNames:ce,AccessToken:this.signInUserSession.getAccessToken().getJwtToken()},function(Qe){return Qe?Ue(Qe,null):Oe.getUserData(function(){return Ue(null,"SUCCESS")},{bypassCache:!0})})},_e.resendConfirmationCode=function(ce,Ue){var Oe={ClientId:this.pool.getClientId(),Username:this.username,ClientMetadata:Ue};this.client.request("ResendConfirmationCode",Oe,function(Qe,tt){return Qe?ce(Qe,null):ce(null,tt)})},_e.getSession=function(ce,Ue){if(void 0===Ue&&(Ue={}),null==this.username)return ce(new Error("Username is null. Cannot retrieve a new session"),null);if(null!=this.signInUserSession&&this.signInUserSession.isValid())return ce(null,this.signInUserSession);var Oe="CognitoIdentityServiceProvider."+this.pool.getClientId()+"."+this.username,Qe=Oe+".idToken",tt=Oe+".accessToken",Xe=Oe+".refreshToken",wt=Oe+".clockDrift";if(this.storage.getItem(Qe)){var Ct=new wr({IdToken:this.storage.getItem(Qe)}),$t=new ln({AccessToken:this.storage.getItem(tt)}),Gt=new On({RefreshToken:this.storage.getItem(Xe)}),un=parseInt(this.storage.getItem(wt),0)||0,an=new Vn({IdToken:Ct,AccessToken:$t,RefreshToken:Gt,ClockDrift:un});if(an.isValid())return this.signInUserSession=an,ce(null,this.signInUserSession);if(!Gt.getToken())return ce(new Error("Cannot retrieve a new session. Please authenticate."),null);this.refreshSession(Gt,ce,Ue.clientMetadata)}else ce(new Error("Local storage is missing an ID Token, Please authenticate"),null)},_e.refreshSession=function(ce,Ue,Oe){var Qe=this,tt=this.pool.wrapRefreshSessionCallback?this.pool.wrapRefreshSessionCallback(Ue):Ue,Xe={};Xe.REFRESH_TOKEN=ce.getToken();var wt="CognitoIdentityServiceProvider."+this.pool.getClientId(),Ct=wt+".LastAuthUser";this.storage.getItem(Ct)&&(this.username=this.storage.getItem(Ct),this.deviceKey=this.storage.getItem(wt+"."+this.username+".deviceKey"),Xe.DEVICE_KEY=this.deviceKey);var Gt={ClientId:this.pool.getClientId(),AuthFlow:"REFRESH_TOKEN_AUTH",AuthParameters:Xe,ClientMetadata:Oe};this.getUserContextData()&&(Gt.UserContextData=this.getUserContextData()),this.client.request("InitiateAuth",Gt,function(un,Mn){if(un)return"NotAuthorizedException"===un.code&&Qe.clearCachedUser(),tt(un,null);if(Mn){var an=Mn.AuthenticationResult;return Object.prototype.hasOwnProperty.call(an,"RefreshToken")||(an.RefreshToken=ce.getToken()),Qe.signInUserSession=Qe.getCognitoUserSession(an),Qe.cacheTokens(),tt(null,Qe.signInUserSession)}})},_e.cacheTokens=function(){var ce="CognitoIdentityServiceProvider."+this.pool.getClientId(),Oe=ce+"."+this.username+".accessToken",Qe=ce+"."+this.username+".refreshToken",tt=ce+"."+this.username+".clockDrift",Xe=ce+".LastAuthUser";this.storage.setItem(ce+"."+this.username+".idToken",this.signInUserSession.getIdToken().getJwtToken()),this.storage.setItem(Oe,this.signInUserSession.getAccessToken().getJwtToken()),this.storage.setItem(Qe,this.signInUserSession.getRefreshToken().getToken()),this.storage.setItem(tt,""+this.signInUserSession.getClockDrift()),this.storage.setItem(Xe,this.username)},_e.cacheUserData=function(ce){this.storage.setItem(this.userDataKey,JSON.stringify(ce))},_e.clearCachedUserData=function(){this.storage.removeItem(this.userDataKey)},_e.clearCachedUser=function(){this.clearCachedTokens(),this.clearCachedUserData()},_e.cacheDeviceKeyAndPassword=function(){var ce="CognitoIdentityServiceProvider."+this.pool.getClientId()+"."+this.username,Oe=ce+".randomPasswordKey",Qe=ce+".deviceGroupKey";this.storage.setItem(ce+".deviceKey",this.deviceKey),this.storage.setItem(Oe,this.randomPassword),this.storage.setItem(Qe,this.deviceGroupKey)},_e.getCachedDeviceKeyAndPassword=function(){var ce="CognitoIdentityServiceProvider."+this.pool.getClientId()+"."+this.username,Ue=ce+".deviceKey",Oe=ce+".randomPasswordKey",Qe=ce+".deviceGroupKey";this.storage.getItem(Ue)&&(this.deviceKey=this.storage.getItem(Ue),this.randomPassword=this.storage.getItem(Oe),this.deviceGroupKey=this.storage.getItem(Qe))},_e.clearCachedDeviceKeyAndPassword=function(){var ce="CognitoIdentityServiceProvider."+this.pool.getClientId()+"."+this.username,Oe=ce+".randomPasswordKey",Qe=ce+".deviceGroupKey";this.storage.removeItem(ce+".deviceKey"),this.storage.removeItem(Oe),this.storage.removeItem(Qe)},_e.clearCachedTokens=function(){var ce="CognitoIdentityServiceProvider."+this.pool.getClientId(),Oe=ce+"."+this.username+".accessToken",Qe=ce+"."+this.username+".refreshToken",tt=ce+".LastAuthUser",Xe=ce+"."+this.username+".clockDrift";this.storage.removeItem(ce+"."+this.username+".idToken"),this.storage.removeItem(Oe),this.storage.removeItem(Qe),this.storage.removeItem(tt),this.storage.removeItem(Xe)},_e.getCognitoUserSession=function(ce){var Ue=new wr(ce),Oe=new ln(ce),Qe=new On(ce);return new Vn({IdToken:Ue,AccessToken:Oe,RefreshToken:Qe})},_e.forgotPassword=function(ce,Ue){var Oe={ClientId:this.pool.getClientId(),Username:this.username,ClientMetadata:Ue};this.getUserContextData()&&(Oe.UserContextData=this.getUserContextData()),this.client.request("ForgotPassword",Oe,function(Qe,tt){return Qe?ce.onFailure(Qe):"function"==typeof ce.inputVerificationCode?ce.inputVerificationCode(tt):ce.onSuccess(tt)})},_e.confirmPassword=function(ce,Ue,Oe,Qe){var tt={ClientId:this.pool.getClientId(),Username:this.username,ConfirmationCode:ce,Password:Ue,ClientMetadata:Qe};this.getUserContextData()&&(tt.UserContextData=this.getUserContextData()),this.client.request("ConfirmForgotPassword",tt,function(Xe){return Xe?Oe.onFailure(Xe):Oe.onSuccess("SUCCESS")})},_e.getAttributeVerificationCode=function(ce,Ue,Oe){if(null==this.signInUserSession||!this.signInUserSession.isValid())return Ue.onFailure(new Error("User is not authenticated"));this.client.request("GetUserAttributeVerificationCode",{AttributeName:ce,AccessToken:this.signInUserSession.getAccessToken().getJwtToken(),ClientMetadata:Oe},function(Qe,tt){return Qe?Ue.onFailure(Qe):"function"==typeof Ue.inputVerificationCode?Ue.inputVerificationCode(tt):Ue.onSuccess("SUCCESS")})},_e.verifyAttribute=function(ce,Ue,Oe){if(null==this.signInUserSession||!this.signInUserSession.isValid())return Oe.onFailure(new Error("User is not authenticated"));this.client.request("VerifyUserAttribute",{AttributeName:ce,Code:Ue,AccessToken:this.signInUserSession.getAccessToken().getJwtToken()},function(Qe){return Qe?Oe.onFailure(Qe):Oe.onSuccess("SUCCESS")})},_e.getDevice=function(ce){if(null==this.signInUserSession||!this.signInUserSession.isValid())return ce.onFailure(new Error("User is not authenticated"));this.client.request("GetDevice",{AccessToken:this.signInUserSession.getAccessToken().getJwtToken(),DeviceKey:this.deviceKey},function(Ue,Oe){return Ue?ce.onFailure(Ue):ce.onSuccess(Oe)})},_e.forgetSpecificDevice=function(ce,Ue){if(null==this.signInUserSession||!this.signInUserSession.isValid())return Ue.onFailure(new Error("User is not authenticated"));this.client.request("ForgetDevice",{AccessToken:this.signInUserSession.getAccessToken().getJwtToken(),DeviceKey:ce},function(Oe){return Oe?Ue.onFailure(Oe):Ue.onSuccess("SUCCESS")})},_e.forgetDevice=function(ce){var Ue=this;this.forgetSpecificDevice(this.deviceKey,{onFailure:ce.onFailure,onSuccess:function(Qe){return Ue.deviceKey=null,Ue.deviceGroupKey=null,Ue.randomPassword=null,Ue.clearCachedDeviceKeyAndPassword(),ce.onSuccess(Qe)}})},_e.setDeviceStatusRemembered=function(ce){if(null==this.signInUserSession||!this.signInUserSession.isValid())return ce.onFailure(new Error("User is not authenticated"));this.client.request("UpdateDeviceStatus",{AccessToken:this.signInUserSession.getAccessToken().getJwtToken(),DeviceKey:this.deviceKey,DeviceRememberedStatus:"remembered"},function(Ue){return Ue?ce.onFailure(Ue):ce.onSuccess("SUCCESS")})},_e.setDeviceStatusNotRemembered=function(ce){if(null==this.signInUserSession||!this.signInUserSession.isValid())return ce.onFailure(new Error("User is not authenticated"));this.client.request("UpdateDeviceStatus",{AccessToken:this.signInUserSession.getAccessToken().getJwtToken(),DeviceKey:this.deviceKey,DeviceRememberedStatus:"not_remembered"},function(Ue){return Ue?ce.onFailure(Ue):ce.onSuccess("SUCCESS")})},_e.listDevices=function(ce,Ue,Oe){if(null==this.signInUserSession||!this.signInUserSession.isValid())return Oe.onFailure(new Error("User is not authenticated"));var Qe={AccessToken:this.signInUserSession.getAccessToken().getJwtToken(),Limit:ce};Ue&&(Qe.PaginationToken=Ue),this.client.request("ListDevices",Qe,function(tt,Xe){return tt?Oe.onFailure(tt):Oe.onSuccess(Xe)})},_e.globalSignOut=function(ce){var Ue=this;if(null==this.signInUserSession||!this.signInUserSession.isValid())return ce.onFailure(new Error("User is not authenticated"));this.client.request("GlobalSignOut",{AccessToken:this.signInUserSession.getAccessToken().getJwtToken()},function(Oe){return Oe?ce.onFailure(Oe):(Ue.clearCachedUser(),ce.onSuccess("SUCCESS"))})},_e.signOut=function(ce){var Ue=this;ce&&"function"==typeof ce?this.getSession(function(Oe,Qe){if(Oe)return ce(Oe);Ue.revokeTokens(function(tt){Ue.cleanClientData(),ce(tt)})}):this.cleanClientData()},_e.revokeTokens=function(ce){if(void 0===ce&&(ce=function(){}),"function"!=typeof ce)throw new Error("Invalid revokeTokenCallback. It should be a function.");if(!this.signInUserSession)return ce(new Error("User is not authenticated"));if(!this.signInUserSession.getAccessToken())return ce(new Error("No Access token available"));var tt=this.signInUserSession.getRefreshToken().getToken(),Xe=this.signInUserSession.getAccessToken();if(this.isSessionRevocable(Xe)&&tt)return this.revokeToken({token:tt,callback:ce});ce()},_e.isSessionRevocable=function(ce){if(ce&&"function"==typeof ce.decodePayload)try{return!!ce.decodePayload().origin_jti}catch{}return!1},_e.cleanClientData=function(){this.signInUserSession=null,this.clearCachedUser()},_e.revokeToken=function(ce){var Oe=ce.callback;this.client.requestWithRetry("RevokeToken",{Token:ce.token,ClientId:this.pool.getClientId()},function(Qe){if(Qe)return Oe(Qe);Oe()})},_e.sendMFASelectionAnswer=function(ce,Ue){var Oe=this,Qe={};Qe.USERNAME=this.username,Qe.ANSWER=ce;var tt={ChallengeName:"SELECT_MFA_TYPE",ChallengeResponses:Qe,ClientId:this.pool.getClientId(),Session:this.Session};this.getUserContextData()&&(tt.UserContextData=this.getUserContextData()),this.client.request("RespondToAuthChallenge",tt,function(Xe,wt){return Xe?Ue.onFailure(Xe):(Oe.Session=wt.Session,"SMS_MFA"===ce?Ue.mfaRequired(wt.ChallengeName,wt.ChallengeParameters):"SOFTWARE_TOKEN_MFA"===ce?Ue.totpRequired(wt.ChallengeName,wt.ChallengeParameters):void 0)})},_e.getUserContextData=function(){return this.pool.getUserContextData(this.username)},_e.associateSoftwareToken=function(ce){var Ue=this;null!=this.signInUserSession&&this.signInUserSession.isValid()?this.client.request("AssociateSoftwareToken",{AccessToken:this.signInUserSession.getAccessToken().getJwtToken()},function(Oe,Qe){return Oe?ce.onFailure(Oe):ce.associateSecretCode(Qe.SecretCode)}):this.client.request("AssociateSoftwareToken",{Session:this.Session},function(Oe,Qe){return Oe?ce.onFailure(Oe):(Ue.Session=Qe.Session,ce.associateSecretCode(Qe.SecretCode))})},_e.verifySoftwareToken=function(ce,Ue,Oe){var Qe=this;null!=this.signInUserSession&&this.signInUserSession.isValid()?this.client.request("VerifySoftwareToken",{AccessToken:this.signInUserSession.getAccessToken().getJwtToken(),UserCode:ce,FriendlyDeviceName:Ue},function(tt,Xe){return tt?Oe.onFailure(tt):Oe.onSuccess(Xe)}):this.client.request("VerifySoftwareToken",{Session:this.Session,UserCode:ce,FriendlyDeviceName:Ue},function(tt,Xe){if(tt)return Oe.onFailure(tt);Qe.Session=Xe.Session;var wt={};wt.USERNAME=Qe.username;var Ct={ChallengeName:"MFA_SETUP",ClientId:Qe.pool.getClientId(),ChallengeResponses:wt,Session:Qe.Session};Qe.getUserContextData()&&(Ct.UserContextData=Qe.getUserContextData()),Qe.client.request("RespondToAuthChallenge",Ct,function($t,Gt){return $t?Oe.onFailure($t):(Qe.signInUserSession=Qe.getCognitoUserSession(Gt.AuthenticationResult),Qe.cacheTokens(),Oe.onSuccess(Qe.signInUserSession))})})},Ve}();function Pe(){}_(33024),Pe.prototype.userAgent=nr.userAgent;var ie=function(_e){_e&&(Pe.prototype.userAgent&&!Pe.prototype.userAgent.includes(_e)&&(Pe.prototype.userAgent=Pe.prototype.userAgent.concat(" ",_e)),(!Pe.prototype.userAgent||""===Pe.prototype.userAgent)&&(Pe.prototype.userAgent=_e))};const J=Pe;function Je(Ve){var _e="function"==typeof Map?new Map:void 0;return Je=function(ce){if(null===ce||!function At(Ve){return-1!==Function.toString.call(Ve).indexOf("[native code]")}(ce))return ce;if("function"!=typeof ce)throw new TypeError("Super expression must either be null or a function");if(typeof _e<"u"){if(_e.has(ce))return _e.get(ce);_e.set(ce,Ue)}function Ue(){return nt(ce,arguments,Vt(this).constructor)}return Ue.prototype=Object.create(ce.prototype,{constructor:{value:Ue,enumerable:!1,writable:!0,configurable:!0}}),kt(Ue,ce)},Je(Ve)}function nt(Ve,_e,Ce){return(nt=function _t(){if(typeof Reflect>"u"||!Reflect.construct||Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch{return!1}}()?Reflect.construct.bind():function(Ue,Oe,Qe){var tt=[null];tt.push.apply(tt,Oe);var wt=new(Function.bind.apply(Ue,tt));return Qe&&kt(wt,Qe.prototype),wt}).apply(null,arguments)}function kt(Ve,_e){return(kt=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(ce,Ue){return ce.__proto__=Ue,ce})(Ve,_e)}function Vt(Ve){return(Vt=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(Ce){return Ce.__proto__||Object.getPrototypeOf(Ce)})(Ve)}var _n=function(Ve){function _e(Ce,ce,Ue,Oe){var Qe;return(Qe=Ve.call(this,Ce)||this).code=ce,Qe.name=Ue,Qe.statusCode=Oe,Qe}return function ue(Ve,_e){Ve.prototype=Object.create(_e.prototype),Ve.prototype.constructor=Ve,kt(Ve,_e)}(_e,Ve),_e}(Je(Error)),$n=function(){function Ve(Ce,ce,Ue){this.endpoint=ce||"https://cognito-idp."+Ce+".amazonaws.com/";var Qe=(Ue||{}).credentials;this.fetchOptions=Qe?{credentials:Qe}:{}}var _e=Ve.prototype;return _e.promisifyRequest=function(ce,Ue){var Oe=this;return new Promise(function(Qe,tt){Oe.request(ce,Ue,function(Xe,wt){Xe?tt(new _n(Xe.message,Xe.code,Xe.name,Xe.statusCode)):Qe(wt)})})},_e.requestWithRetry=function(ce,Ue,Oe){var Qe=this;(function Fr(Ve,_e,Ce){return void 0===Ce&&(Ce=Li),Er(Ve,_e,function Fi(Ve){return function(ce){var Ue=100*Math.pow(2,ce)+100*Math.random();return!(Ue>Ve)&&Ue}}(Ce))})(function(Xe){return new Promise(function(wt,Ct){Qe.request(ce,Xe,function($t,Gt){$t?Ct($t):wt(Gt)})})},[Ue],5e3).then(function(Xe){return Oe(null,Xe)}).catch(function(Xe){return Oe(Xe)})},_e.request=function(ce,Ue,Oe){var Xe,tt=Object.assign({},this.fetchOptions,{headers:{"Content-Type":"application/x-amz-json-1.1","X-Amz-Target":"AWSCognitoIdentityProviderService."+ce,"X-Amz-User-Agent":J.prototype.userAgent,"Cache-Control":"no-store"},method:"POST",mode:"cors",body:JSON.stringify(Ue)});fetch(this.endpoint,tt).then(function(Ct){return Xe=Ct,Ct},function(Ct){throw Ct instanceof TypeError?new Error("Network error"):Ct}).then(function(Ct){return Ct.json().catch(function(){return{}})}).then(function(Ct){if(Xe.ok)return Oe(null,Ct);var $t=(Ct.__type||Ct.code).split("#").pop(),Gt=new Error(Ct.message||Ct.Message||null);return Gt.name=$t,Gt.code=$t,Oe(Gt)}).catch(function(Ct){if(Xe&&Xe.headers&&Xe.headers.get("x-amzn-errortype"))try{var $t=Xe.headers.get("x-amzn-errortype").split(":")[0],Gt=new Error(Xe.status?Xe.status.toString():null);return Gt.code=$t,Gt.name=$t,Gt.statusCode=Xe.status,Oe(Gt)}catch{return Oe(Ct)}else Ct instanceof Error&&"Network error"===Ct.message&&(Ct.code="NetworkError");return Oe(Ct)})},Ve}(),sr={debug:function(){}},Di=(Error,function(_e){return _e&&_e.nonRetryable});function Er(Ve,_e,Ce,ce){if(void 0===ce&&(ce=1),"function"!=typeof Ve)throw Error("functionToRetry must be a function");return sr.debug(Ve.name+" attempt #"+ce+" with args: "+JSON.stringify(_e)),Ve.apply(void 0,_e).catch(function(Ue){if(sr.debug("error on "+Ve.name,Ue),Di(Ue))throw sr.debug(Ve.name+" non retryable error",Ue),Ue;var Oe=Ce(ce,_e,Ue);if(sr.debug(Ve.name+" retrying in "+Oe+" ms"),!1!==Oe)return new Promise(function(Qe){return setTimeout(Qe,Oe)}).then(function(){return Er(Ve,_e,Ce,ce+1)});throw Ue})}var Li=3e5,di=55,jo=function(){function Ve(Ce,ce){var Ue=Ce||{},Oe=Ue.UserPoolId,Qe=Ue.ClientId,tt=Ue.endpoint,Xe=Ue.fetchOptions,wt=Ue.AdvancedSecurityDataCollectionFlag;if(!Oe||!Qe)throw new Error("Both UserPoolId and ClientId are required.");if(Oe.length>di||!/^[\w-]+_[0-9a-zA-Z]+$/.test(Oe))throw new Error("Invalid UserPoolId format.");var Ct=Oe.split("_")[0];this.userPoolId=Oe,this.clientId=Qe,this.client=new $n(Ct,tt,Xe),this.advancedSecurityDataCollectionFlag=!1!==wt,this.storage=Ce.Storage||(new vn).getStorage(),ce&&(this.wrapRefreshSessionCallback=ce)}var _e=Ve.prototype;return _e.getUserPoolId=function(){return this.userPoolId},_e.getUserPoolName=function(){return this.getUserPoolId().split("_")[1]},_e.getClientId=function(){return this.clientId},_e.signUp=function(ce,Ue,Oe,Qe,tt,Xe){var wt=this,Ct={ClientId:this.clientId,Username:ce,Password:Ue,UserAttributes:Oe,ValidationData:Qe,ClientMetadata:Xe};this.getUserContextData(ce)&&(Ct.UserContextData=this.getUserContextData(ce)),this.client.request("SignUp",Ct,function($t,Gt){if($t)return tt($t,null);var Mn={user:new En({Username:ce,Pool:wt,Storage:wt.storage}),userConfirmed:Gt.UserConfirmed,userSub:Gt.UserSub,codeDeliveryDetails:Gt.CodeDeliveryDetails};return tt(null,Mn)})},_e.getCurrentUser=function(){var Ue=this.storage.getItem("CognitoIdentityServiceProvider."+this.clientId+".LastAuthUser");return Ue?new En({Username:Ue,Pool:this,Storage:this.storage}):null},_e.getUserContextData=function(ce){if(!(typeof AmazonCognitoAdvancedSecurityData>"u")){var Ue=AmazonCognitoAdvancedSecurityData;if(this.advancedSecurityDataCollectionFlag){var Oe=Ue.getData(ce,this.userPoolId,this.clientId);if(Oe)return{EncodedData:Oe}}return{}}},Ve}(),xi=_(47355),kn=function(){function Ve(Ce){if(!Ce.domain)throw new Error("The domain of cookieStorage can not be undefined.");if(this.domain=Ce.domain,this.path=Ce.path?Ce.path:"/",this.expires=Object.prototype.hasOwnProperty.call(Ce,"expires")?Ce.expires:365,this.secure=!Object.prototype.hasOwnProperty.call(Ce,"secure")||Ce.secure,Object.prototype.hasOwnProperty.call(Ce,"sameSite")){if(!["strict","lax","none"].includes(Ce.sameSite))throw new Error('The sameSite value of cookieStorage must be "lax", "strict" or "none".');if("none"===Ce.sameSite&&!this.secure)throw new Error("sameSite = None requires the Secure attribute in latest browser versions.");this.sameSite=Ce.sameSite}else this.sameSite=null}var _e=Ve.prototype;return _e.setItem=function(ce,Ue){var Oe={path:this.path,expires:this.expires,domain:this.domain,secure:this.secure};return this.sameSite&&(Oe.sameSite=this.sameSite),xi.set(ce,Ue,Oe),xi.get(ce)},_e.getItem=function(ce){return xi.get(ce)},_e.removeItem=function(ce){var Ue={path:this.path,expires:this.expires,domain:this.domain,secure:this.secure};return this.sameSite&&(Ue.sameSite=this.sameSite),xi.remove(ce,Ue)},_e.clear=function(){for(var ce=xi.get(),Ue=Object.keys(ce).length,Oe=0;Oe<Ue;++Oe)this.removeItem(Object.keys(ce)[Oe]);return{}},Ve}()},5343:(Ze,ee)=>{"use strict";ee.byteLength=function y(B){var q=w(B),se=q[1];return 3*(q[0]+se)/4-se},ee.toByteArray=function x(B){var q,be,de=w(B),se=de[0],De=de[1],he=new b(function g(B,q,de){return 3*(q+de)/4-de}(0,se,De)),xe=0,Me=De>0?se-4:se;for(be=0;be<Me;be+=4)q=c[B.charCodeAt(be)]<<18|c[B.charCodeAt(be+1)]<<12|c[B.charCodeAt(be+2)]<<6|c[B.charCodeAt(be+3)],he[xe++]=q>>16&255,he[xe++]=q>>8&255,he[xe++]=255&q;return 2===De&&(q=c[B.charCodeAt(be)]<<2|c[B.charCodeAt(be+1)]>>4,he[xe++]=255&q),1===De&&(q=c[B.charCodeAt(be)]<<10|c[B.charCodeAt(be+1)]<<4|c[B.charCodeAt(be+2)]>>2,he[xe++]=q>>8&255,he[xe++]=255&q),he},ee.fromByteArray=function V(B){for(var q,de=B.length,se=de%3,De=[],xe=0,Me=de-se;xe<Me;xe+=16383)De.push(T(B,xe,xe+16383>Me?Me:xe+16383));return 1===se?De.push(_[(q=B[de-1])>>2]+_[q<<4&63]+"=="):2===se&&De.push(_[(q=(B[de-2]<<8)+B[de-1])>>10]+_[q>>4&63]+_[q<<2&63]+"="),De.join("")};for(var _=[],c=[],b=typeof Uint8Array<"u"?Uint8Array:Array,M="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",F=0,O=M.length;F<O;++F)_[F]=M[F],c[M.charCodeAt(F)]=F;function w(B){var q=B.length;if(q%4>0)throw new Error("Invalid string. Length must be a multiple of 4");var de=B.indexOf("=");return-1===de&&(de=q),[de,de===q?0:4-de%4]}function N(B){return _[B>>18&63]+_[B>>12&63]+_[B>>6&63]+_[63&B]}function T(B,q,de){for(var De=[],he=q;he<de;he+=3)De.push(N((B[he]<<16&16711680)+(B[he+1]<<8&65280)+(255&B[he+2])));return De.join("")}c["-".charCodeAt(0)]=62,c["_".charCodeAt(0)]=63},87230:function(Ze){Ze.exports=function(ee){var _={};function c(b){if(_[b])return _[b].exports;var M=_[b]={i:b,l:!1,exports:{}};return ee[b].call(M.exports,M,M.exports,c),M.l=!0,M.exports}return c.m=ee,c.c=_,c.d=function(b,M,F){c.o(b,M)||Object.defineProperty(b,M,{enumerable:!0,get:F})},c.r=function(b){typeof Symbol<"u"&&Symbol.toStringTag&&Object.defineProperty(b,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(b,"__esModule",{value:!0})},c.t=function(b,M){if(1&M&&(b=c(b)),8&M||4&M&&"object"==typeof b&&b&&b.__esModule)return b;var F=Object.create(null);if(c.r(F),Object.defineProperty(F,"default",{enumerable:!0,value:b}),2&M&&"string"!=typeof b)for(var O in b)c.d(F,O,function(w){return b[w]}.bind(null,O));return F},c.n=function(b){var M=b&&b.__esModule?function(){return b.default}:function(){return b};return c.d(M,"a",M),M},c.o=function(b,M){return Object.prototype.hasOwnProperty.call(b,M)},c.p="",c(c.s=90)}({17:function(ee,_,c){"use strict";_.__esModule=!0,_.default=void 0;var b=c(18),M=function(){function F(){}return F.getFirstMatch=function(O,w){var y=w.match(O);return y&&y.length>0&&y[1]||""},F.getSecondMatch=function(O,w){var y=w.match(O);return y&&y.length>1&&y[2]||""},F.matchAndReturnConst=function(O,w,y){if(O.test(w))return y},F.getWindowsVersionName=function(O){switch(O){case"NT":return"NT";case"XP":case"NT 5.1":return"XP";case"NT 5.0":return"2000";case"NT 5.2":return"2003";case"NT 6.0":return"Vista";case"NT 6.1":return"7";case"NT 6.2":return"8";case"NT 6.3":return"8.1";case"NT 10.0":return"10";default:return}},F.getMacOSVersionName=function(O){var w=O.split(".").splice(0,2).map(function(y){return parseInt(y,10)||0});if(w.push(0),10===w[0])switch(w[1]){case 5:return"Leopard";case 6:return"Snow Leopard";case 7:return"Lion";case 8:return"Mountain Lion";case 9:return"Mavericks";case 10:return"Yosemite";case 11:return"El Capitan";case 12:return"Sierra";case 13:return"High Sierra";case 14:return"Mojave";case 15:return"Catalina";default:return}},F.getAndroidVersionName=function(O){var w=O.split(".").splice(0,2).map(function(y){return parseInt(y,10)||0});if(w.push(0),!(1===w[0]&&w[1]<5))return 1===w[0]&&w[1]<6?"Cupcake":1===w[0]&&w[1]>=6?"Donut":2===w[0]&&w[1]<2?"Eclair":2===w[0]&&2===w[1]?"Froyo":2===w[0]&&w[1]>2?"Gingerbread":3===w[0]?"Honeycomb":4===w[0]&&w[1]<1?"Ice Cream Sandwich":4===w[0]&&w[1]<4?"Jelly Bean":4===w[0]&&w[1]>=4?"KitKat":5===w[0]?"Lollipop":6===w[0]?"Marshmallow":7===w[0]?"Nougat":8===w[0]?"Oreo":9===w[0]?"Pie":void 0},F.getVersionPrecision=function(O){return O.split(".").length},F.compareVersions=function(O,w,y){void 0===y&&(y=!1);var g=F.getVersionPrecision(O),x=F.getVersionPrecision(w),N=Math.max(g,x),T=0,V=F.map([O,w],function(B){var q=N-F.getVersionPrecision(B),de=B+new Array(q+1).join(".0");return F.map(de.split("."),function(se){return new Array(20-se.length).join("0")+se}).reverse()});for(y&&(T=N-Math.min(g,x)),N-=1;N>=T;){if(V[0][N]>V[1][N])return 1;if(V[0][N]===V[1][N]){if(N===T)return 0;N-=1}else if(V[0][N]<V[1][N])return-1}},F.map=function(O,w){var y,g=[];if(Array.prototype.map)return Array.prototype.map.call(O,w);for(y=0;y<O.length;y+=1)g.push(w(O[y]));return g},F.find=function(O,w){var y,g;if(Array.prototype.find)return Array.prototype.find.call(O,w);for(y=0,g=O.length;y<g;y+=1){var x=O[y];if(w(x,y))return x}},F.assign=function(O){for(var w,y,g=O,x=arguments.length,N=new Array(x>1?x-1:0),T=1;T<x;T++)N[T-1]=arguments[T];if(Object.assign)return Object.assign.apply(Object,[O].concat(N));var V=function(){var B=N[w];"object"==typeof B&&null!==B&&Object.keys(B).forEach(function(q){g[q]=B[q]})};for(w=0,y=N.length;w<y;w+=1)V();return O},F.getBrowserAlias=function(O){return b.BROWSER_ALIASES_MAP[O]},F.getBrowserTypeByAlias=function(O){return b.BROWSER_MAP[O]||""},F}();_.default=M,ee.exports=_.default},18:function(ee,_,c){"use strict";_.__esModule=!0,_.ENGINE_MAP=_.OS_MAP=_.PLATFORMS_MAP=_.BROWSER_MAP=_.BROWSER_ALIASES_MAP=void 0,_.BROWSER_ALIASES_MAP={"Amazon Silk":"amazon_silk","Android Browser":"android",Bada:"bada",BlackBerry:"blackberry",Chrome:"chrome",Chromium:"chromium",Electron:"electron",Epiphany:"epiphany",Firefox:"firefox",Focus:"focus",Generic:"generic","Google Search":"google_search",Googlebot:"googlebot","Internet Explorer":"ie","K-Meleon":"k_meleon",Maxthon:"maxthon","Microsoft Edge":"edge","MZ Browser":"mz","NAVER Whale Browser":"naver",Opera:"opera","Opera Coast":"opera_coast",PhantomJS:"phantomjs",Puffin:"puffin",QupZilla:"qupzilla",QQ:"qq",QQLite:"qqlite",Safari:"safari",Sailfish:"sailfish","Samsung Internet for Android":"samsung_internet",SeaMonkey:"seamonkey",Sleipnir:"sleipnir",Swing:"swing",Tizen:"tizen","UC Browser":"uc",Vivaldi:"vivaldi","WebOS Browser":"webos",WeChat:"wechat","Yandex Browser":"yandex",Roku:"roku"},_.BROWSER_MAP={amazon_silk:"Amazon Silk",android:"Android Browser",bada:"Bada",blackberry:"BlackBerry",chrome:"Chrome",chromium:"Chromium",electron:"Electron",epiphany:"Epiphany",firefox:"Firefox",focus:"Focus",generic:"Generic",googlebot:"Googlebot",google_search:"Google Search",ie:"Internet Explorer",k_meleon:"K-Meleon",maxthon:"Maxthon",edge:"Microsoft Edge",mz:"MZ Browser",naver:"NAVER Whale Browser",opera:"Opera",opera_coast:"Opera Coast",phantomjs:"PhantomJS",puffin:"Puffin",qupzilla:"QupZilla",qq:"QQ Browser",qqlite:"QQ Browser Lite",safari:"Safari",sailfish:"Sailfish",samsung_internet:"Samsung Internet for Android",seamonkey:"SeaMonkey",sleipnir:"Sleipnir",swing:"Swing",tizen:"Tizen",uc:"UC Browser",vivaldi:"Vivaldi",webos:"WebOS Browser",wechat:"WeChat",yandex:"Yandex Browser"},_.PLATFORMS_MAP={tablet:"tablet",mobile:"mobile",desktop:"desktop",tv:"tv"},_.OS_MAP={WindowsPhone:"Windows Phone",Windows:"Windows",MacOS:"macOS",iOS:"iOS",Android:"Android",WebOS:"WebOS",BlackBerry:"BlackBerry",Bada:"Bada",Tizen:"Tizen",Linux:"Linux",ChromeOS:"Chrome OS",PlayStation4:"PlayStation 4",Roku:"Roku"},_.ENGINE_MAP={EdgeHTML:"EdgeHTML",Blink:"Blink",Trident:"Trident",Presto:"Presto",Gecko:"Gecko",WebKit:"WebKit"}},90:function(ee,_,c){"use strict";_.__esModule=!0,_.default=void 0;var b,M=(b=c(91))&&b.__esModule?b:{default:b},F=c(18);function O(y,g){for(var x=0;x<g.length;x++){var N=g[x];N.enumerable=N.enumerable||!1,N.configurable=!0,"value"in N&&(N.writable=!0),Object.defineProperty(y,N.key,N)}}var w=function(){function y(){}var g,N;return y.getParser=function(T,V){if(void 0===V&&(V=!1),"string"!=typeof T)throw new Error("UserAgent should be a string");return new M.default(T,V)},y.parse=function(T){return new M.default(T).getResult()},g=y,N=[{key:"BROWSER_MAP",get:function(){return F.BROWSER_MAP}},{key:"ENGINE_MAP",get:function(){return F.ENGINE_MAP}},{key:"OS_MAP",get:function(){return F.OS_MAP}},{key:"PLATFORMS_MAP",get:function(){return F.PLATFORMS_MAP}}],null&&O(g.prototype,null),N&&O(g,N),y}();_.default=w,ee.exports=_.default},91:function(ee,_,c){"use strict";_.__esModule=!0,_.default=void 0;var b=y(c(92)),M=y(c(93)),F=y(c(94)),O=y(c(95)),w=y(c(17));function y(x){return x&&x.__esModule?x:{default:x}}var g=function(){function x(T,V){if(void 0===V&&(V=!1),null==T||""===T)throw new Error("UserAgent parameter can't be empty");this._ua=T,this.parsedResult={},!0!==V&&this.parse()}var N=x.prototype;return N.getUA=function(){return this._ua},N.test=function(T){return T.test(this._ua)},N.parseBrowser=function(){var T=this;this.parsedResult.browser={};var V=w.default.find(b.default,function(B){if("function"==typeof B.test)return B.test(T);if(B.test instanceof Array)return B.test.some(function(q){return T.test(q)});throw new Error("Browser's test function is not valid")});return V&&(this.parsedResult.browser=V.describe(this.getUA())),this.parsedResult.browser},N.getBrowser=function(){return this.parsedResult.browser?this.parsedResult.browser:this.parseBrowser()},N.getBrowserName=function(T){return T?String(this.getBrowser().name).toLowerCase()||"":this.getBrowser().name||""},N.getBrowserVersion=function(){return this.getBrowser().version},N.getOS=function(){return this.parsedResult.os?this.parsedResult.os:this.parseOS()},N.parseOS=function(){var T=this;this.parsedResult.os={};var V=w.default.find(M.default,function(B){if("function"==typeof B.test)return B.test(T);if(B.test instanceof Array)return B.test.some(function(q){return T.test(q)});throw new Error("Browser's test function is not valid")});return V&&(this.parsedResult.os=V.describe(this.getUA())),this.parsedResult.os},N.getOSName=function(T){var V=this.getOS().name;return T?String(V).toLowerCase()||"":V||""},N.getOSVersion=function(){return this.getOS().version},N.getPlatform=function(){return this.parsedResult.platform?this.parsedResult.platform:this.parsePlatform()},N.getPlatformType=function(T){void 0===T&&(T=!1);var V=this.getPlatform().type;return T?String(V).toLowerCase()||"":V||""},N.parsePlatform=function(){var T=this;this.parsedResult.platform={};var V=w.default.find(F.default,function(B){if("function"==typeof B.test)return B.test(T);if(B.test instanceof Array)return B.test.some(function(q){return T.test(q)});throw new Error("Browser's test function is not valid")});return V&&(this.parsedResult.platform=V.describe(this.getUA())),this.parsedResult.platform},N.getEngine=function(){return this.parsedResult.engine?this.parsedResult.engine:this.parseEngine()},N.getEngineName=function(T){return T?String(this.getEngine().name).toLowerCase()||"":this.getEngine().name||""},N.parseEngine=function(){var T=this;this.parsedResult.engine={};var V=w.default.find(O.default,function(B){if("function"==typeof B.test)return B.test(T);if(B.test instanceof Array)return B.test.some(function(q){return T.test(q)});throw new Error("Browser's test function is not valid")});return V&&(this.parsedResult.engine=V.describe(this.getUA())),this.parsedResult.engine},N.parse=function(){return this.parseBrowser(),this.parseOS(),this.parsePlatform(),this.parseEngine(),this},N.getResult=function(){return w.default.assign({},this.parsedResult)},N.satisfies=function(T){var V=this,B={},q=0,de={},se=0;if(Object.keys(T).forEach(function(le){var R=T[le];"string"==typeof R?(de[le]=R,se+=1):"object"==typeof R&&(B[le]=R,q+=1)}),q>0){var De=Object.keys(B),he=w.default.find(De,function(le){return V.isOS(le)});if(he){var xe=this.satisfies(B[he]);if(void 0!==xe)return xe}var Me=w.default.find(De,function(le){return V.isPlatform(le)});if(Me){var be=this.satisfies(B[Me]);if(void 0!==be)return be}}if(se>0){var Y=Object.keys(de),Be=w.default.find(Y,function(le){return V.isBrowser(le,!0)});if(void 0!==Be)return this.compareVersion(de[Be])}},N.isBrowser=function(T,V){void 0===V&&(V=!1);var B=this.getBrowserName().toLowerCase(),q=T.toLowerCase(),de=w.default.getBrowserTypeByAlias(q);return V&&de&&(q=de.toLowerCase()),q===B},N.compareVersion=function(T){var V=[0],B=T,q=!1,de=this.getBrowserVersion();if("string"==typeof de)return">"===T[0]||"<"===T[0]?(B=T.substr(1),"="===T[1]?(q=!0,B=T.substr(2)):V=[],V.push(">"===T[0]?1:-1)):"="===T[0]?B=T.substr(1):"~"===T[0]&&(q=!0,B=T.substr(1)),V.indexOf(w.default.compareVersions(de,B,q))>-1},N.isOS=function(T){return this.getOSName(!0)===String(T).toLowerCase()},N.isPlatform=function(T){return this.getPlatformType(!0)===String(T).toLowerCase()},N.isEngine=function(T){return this.getEngineName(!0)===String(T).toLowerCase()},N.is=function(T,V){return void 0===V&&(V=!1),this.isBrowser(T,V)||this.isOS(T)||this.isPlatform(T)},N.some=function(T){var V=this;return void 0===T&&(T=[]),T.some(function(B){return V.is(B)})},x}();_.default=g,ee.exports=_.default},92:function(ee,_,c){"use strict";_.__esModule=!0,_.default=void 0;var b,M=(b=c(17))&&b.__esModule?b:{default:b},F=/version\/(\d+(\.?_?\d+)+)/i;_.default=[{test:[/googlebot/i],describe:function(w){var y={name:"Googlebot"},g=M.default.getFirstMatch(/googlebot\/(\d+(\.\d+))/i,w)||M.default.getFirstMatch(F,w);return g&&(y.version=g),y}},{test:[/opera/i],describe:function(w){var y={name:"Opera"},g=M.default.getFirstMatch(F,w)||M.default.getFirstMatch(/(?:opera)[\s/](\d+(\.?_?\d+)+)/i,w);return g&&(y.version=g),y}},{test:[/opr\/|opios/i],describe:function(w){var y={name:"Opera"},g=M.default.getFirstMatch(/(?:opr|opios)[\s/](\S+)/i,w)||M.default.getFirstMatch(F,w);return g&&(y.version=g),y}},{test:[/SamsungBrowser/i],describe:function(w){var y={name:"Samsung Internet for Android"},g=M.default.getFirstMatch(F,w)||M.default.getFirstMatch(/(?:SamsungBrowser)[\s/](\d+(\.?_?\d+)+)/i,w);return g&&(y.version=g),y}},{test:[/Whale/i],describe:function(w){var y={name:"NAVER Whale Browser"},g=M.default.getFirstMatch(F,w)||M.default.getFirstMatch(/(?:whale)[\s/](\d+(?:\.\d+)+)/i,w);return g&&(y.version=g),y}},{test:[/MZBrowser/i],describe:function(w){var y={name:"MZ Browser"},g=M.default.getFirstMatch(/(?:MZBrowser)[\s/](\d+(?:\.\d+)+)/i,w)||M.default.getFirstMatch(F,w);return g&&(y.version=g),y}},{test:[/focus/i],describe:function(w){var y={name:"Focus"},g=M.default.getFirstMatch(/(?:focus)[\s/](\d+(?:\.\d+)+)/i,w)||M.default.getFirstMatch(F,w);return g&&(y.version=g),y}},{test:[/swing/i],describe:function(w){var y={name:"Swing"},g=M.default.getFirstMatch(/(?:swing)[\s/](\d+(?:\.\d+)+)/i,w)||M.default.getFirstMatch(F,w);return g&&(y.version=g),y}},{test:[/coast/i],describe:function(w){var y={name:"Opera Coast"},g=M.default.getFirstMatch(F,w)||M.default.getFirstMatch(/(?:coast)[\s/](\d+(\.?_?\d+)+)/i,w);return g&&(y.version=g),y}},{test:[/opt\/\d+(?:.?_?\d+)+/i],describe:function(w){var y={name:"Opera Touch"},g=M.default.getFirstMatch(/(?:opt)[\s/](\d+(\.?_?\d+)+)/i,w)||M.default.getFirstMatch(F,w);return g&&(y.version=g),y}},{test:[/yabrowser/i],describe:function(w){var y={name:"Yandex Browser"},g=M.default.getFirstMatch(/(?:yabrowser)[\s/](\d+(\.?_?\d+)+)/i,w)||M.default.getFirstMatch(F,w);return g&&(y.version=g),y}},{test:[/ucbrowser/i],describe:function(w){var y={name:"UC Browser"},g=M.default.getFirstMatch(F,w)||M.default.getFirstMatch(/(?:ucbrowser)[\s/](\d+(\.?_?\d+)+)/i,w);return g&&(y.version=g),y}},{test:[/Maxthon|mxios/i],describe:function(w){var y={name:"Maxthon"},g=M.default.getFirstMatch(F,w)||M.default.getFirstMatch(/(?:Maxthon|mxios)[\s/](\d+(\.?_?\d+)+)/i,w);return g&&(y.version=g),y}},{test:[/epiphany/i],describe:function(w){var y={name:"Epiphany"},g=M.default.getFirstMatch(F,w)||M.default.getFirstMatch(/(?:epiphany)[\s/](\d+(\.?_?\d+)+)/i,w);return g&&(y.version=g),y}},{test:[/puffin/i],describe:function(w){var y={name:"Puffin"},g=M.default.getFirstMatch(F,w)||M.default.getFirstMatch(/(?:puffin)[\s/](\d+(\.?_?\d+)+)/i,w);return g&&(y.version=g),y}},{test:[/sleipnir/i],describe:function(w){var y={name:"Sleipnir"},g=M.default.getFirstMatch(F,w)||M.default.getFirstMatch(/(?:sleipnir)[\s/](\d+(\.?_?\d+)+)/i,w);return g&&(y.version=g),y}},{test:[/k-meleon/i],describe:function(w){var y={name:"K-Meleon"},g=M.default.getFirstMatch(F,w)||M.default.getFirstMatch(/(?:k-meleon)[\s/](\d+(\.?_?\d+)+)/i,w);return g&&(y.version=g),y}},{test:[/micromessenger/i],describe:function(w){var y={name:"WeChat"},g=M.default.getFirstMatch(/(?:micromessenger)[\s/](\d+(\.?_?\d+)+)/i,w)||M.default.getFirstMatch(F,w);return g&&(y.version=g),y}},{test:[/qqbrowser/i],describe:function(w){var y={name:/qqbrowserlite/i.test(w)?"QQ Browser Lite":"QQ Browser"},g=M.default.getFirstMatch(/(?:qqbrowserlite|qqbrowser)[/](\d+(\.?_?\d+)+)/i,w)||M.default.getFirstMatch(F,w);return g&&(y.version=g),y}},{test:[/msie|trident/i],describe:function(w){var y={name:"Internet Explorer"},g=M.default.getFirstMatch(/(?:msie |rv:)(\d+(\.?_?\d+)+)/i,w);return g&&(y.version=g),y}},{test:[/\sedg\//i],describe:function(w){var y={name:"Microsoft Edge"},g=M.default.getFirstMatch(/\sedg\/(\d+(\.?_?\d+)+)/i,w);return g&&(y.version=g),y}},{test:[/edg([ea]|ios)/i],describe:function(w){var y={name:"Microsoft Edge"},g=M.default.getSecondMatch(/edg([ea]|ios)\/(\d+(\.?_?\d+)+)/i,w);return g&&(y.version=g),y}},{test:[/vivaldi/i],describe:function(w){var y={name:"Vivaldi"},g=M.default.getFirstMatch(/vivaldi\/(\d+(\.?_?\d+)+)/i,w);return g&&(y.version=g),y}},{test:[/seamonkey/i],describe:function(w){var y={name:"SeaMonkey"},g=M.default.getFirstMatch(/seamonkey\/(\d+(\.?_?\d+)+)/i,w);return g&&(y.version=g),y}},{test:[/sailfish/i],describe:function(w){var y={name:"Sailfish"},g=M.default.getFirstMatch(/sailfish\s?browser\/(\d+(\.\d+)?)/i,w);return g&&(y.version=g),y}},{test:[/silk/i],describe:function(w){var y={name:"Amazon Silk"},g=M.default.getFirstMatch(/silk\/(\d+(\.?_?\d+)+)/i,w);return g&&(y.version=g),y}},{test:[/phantom/i],describe:function(w){var y={name:"PhantomJS"},g=M.default.getFirstMatch(/phantomjs\/(\d+(\.?_?\d+)+)/i,w);return g&&(y.version=g),y}},{test:[/slimerjs/i],describe:function(w){var y={name:"SlimerJS"},g=M.default.getFirstMatch(/slimerjs\/(\d+(\.?_?\d+)+)/i,w);return g&&(y.version=g),y}},{test:[/blackberry|\bbb\d+/i,/rim\stablet/i],describe:function(w){var y={name:"BlackBerry"},g=M.default.getFirstMatch(F,w)||M.default.getFirstMatch(/blackberry[\d]+\/(\d+(\.?_?\d+)+)/i,w);return g&&(y.version=g),y}},{test:[/(web|hpw)[o0]s/i],describe:function(w){var y={name:"WebOS Browser"},g=M.default.getFirstMatch(F,w)||M.default.getFirstMatch(/w(?:eb)?[o0]sbrowser\/(\d+(\.?_?\d+)+)/i,w);return g&&(y.version=g),y}},{test:[/bada/i],describe:function(w){var y={name:"Bada"},g=M.default.getFirstMatch(/dolfin\/(\d+(\.?_?\d+)+)/i,w);return g&&(y.version=g),y}},{test:[/tizen/i],describe:function(w){var y={name:"Tizen"},g=M.default.getFirstMatch(/(?:tizen\s?)?browser\/(\d+(\.?_?\d+)+)/i,w)||M.default.getFirstMatch(F,w);return g&&(y.version=g),y}},{test:[/qupzilla/i],describe:function(w){var y={name:"QupZilla"},g=M.default.getFirstMatch(/(?:qupzilla)[\s/](\d+(\.?_?\d+)+)/i,w)||M.default.getFirstMatch(F,w);return g&&(y.version=g),y}},{test:[/firefox|iceweasel|fxios/i],describe:function(w){var y={name:"Firefox"},g=M.default.getFirstMatch(/(?:firefox|iceweasel|fxios)[\s/](\d+(\.?_?\d+)+)/i,w);return g&&(y.version=g),y}},{test:[/electron/i],describe:function(w){var y={name:"Electron"},g=M.default.getFirstMatch(/(?:electron)\/(\d+(\.?_?\d+)+)/i,w);return g&&(y.version=g),y}},{test:[/MiuiBrowser/i],describe:function(w){var y={name:"Miui"},g=M.default.getFirstMatch(/(?:MiuiBrowser)[\s/](\d+(\.?_?\d+)+)/i,w);return g&&(y.version=g),y}},{test:[/chromium/i],describe:function(w){var y={name:"Chromium"},g=M.default.getFirstMatch(/(?:chromium)[\s/](\d+(\.?_?\d+)+)/i,w)||M.default.getFirstMatch(F,w);return g&&(y.version=g),y}},{test:[/chrome|crios|crmo/i],describe:function(w){var y={name:"Chrome"},g=M.default.getFirstMatch(/(?:chrome|crios|crmo)\/(\d+(\.?_?\d+)+)/i,w);return g&&(y.version=g),y}},{test:[/GSA/i],describe:function(w){var y={name:"Google Search"},g=M.default.getFirstMatch(/(?:GSA)\/(\d+(\.?_?\d+)+)/i,w);return g&&(y.version=g),y}},{test:function(w){var y=!w.test(/like android/i),g=w.test(/android/i);return y&&g},describe:function(w){var y={name:"Android Browser"},g=M.default.getFirstMatch(F,w);return g&&(y.version=g),y}},{test:[/playstation 4/i],describe:function(w){var y={name:"PlayStation 4"},g=M.default.getFirstMatch(F,w);return g&&(y.version=g),y}},{test:[/safari|applewebkit/i],describe:function(w){var y={name:"Safari"},g=M.default.getFirstMatch(F,w);return g&&(y.version=g),y}},{test:[/.*/i],describe:function(w){var y=-1!==w.search("\\(")?/^(.*)\/(.*)[ \t]\((.*)/:/^(.*)\/(.*) /;return{name:M.default.getFirstMatch(y,w),version:M.default.getSecondMatch(y,w)}}}],ee.exports=_.default},93:function(ee,_,c){"use strict";_.__esModule=!0,_.default=void 0;var b,M=(b=c(17))&&b.__esModule?b:{default:b},F=c(18);_.default=[{test:[/Roku\/DVP/],describe:function(w){var y=M.default.getFirstMatch(/Roku\/DVP-(\d+\.\d+)/i,w);return{name:F.OS_MAP.Roku,version:y}}},{test:[/windows phone/i],describe:function(w){var y=M.default.getFirstMatch(/windows phone (?:os)?\s?(\d+(\.\d+)*)/i,w);return{name:F.OS_MAP.WindowsPhone,version:y}}},{test:[/windows /i],describe:function(w){var y=M.default.getFirstMatch(/Windows ((NT|XP)( \d\d?.\d)?)/i,w),g=M.default.getWindowsVersionName(y);return{name:F.OS_MAP.Windows,version:y,versionName:g}}},{test:[/Macintosh(.*?) FxiOS(.*?)\//],describe:function(w){var y={name:F.OS_MAP.iOS},g=M.default.getSecondMatch(/(Version\/)(\d[\d.]+)/,w);return g&&(y.version=g),y}},{test:[/macintosh/i],describe:function(w){var y=M.default.getFirstMatch(/mac os x (\d+(\.?_?\d+)+)/i,w).replace(/[_\s]/g,"."),g=M.default.getMacOSVersionName(y),x={name:F.OS_MAP.MacOS,version:y};return g&&(x.versionName=g),x}},{test:[/(ipod|iphone|ipad)/i],describe:function(w){var y=M.default.getFirstMatch(/os (\d+([_\s]\d+)*) like mac os x/i,w).replace(/[_\s]/g,".");return{name:F.OS_MAP.iOS,version:y}}},{test:function(w){var y=!w.test(/like android/i),g=w.test(/android/i);return y&&g},describe:function(w){var y=M.default.getFirstMatch(/android[\s/-](\d+(\.\d+)*)/i,w),g=M.default.getAndroidVersionName(y),x={name:F.OS_MAP.Android,version:y};return g&&(x.versionName=g),x}},{test:[/(web|hpw)[o0]s/i],describe:function(w){var y=M.default.getFirstMatch(/(?:web|hpw)[o0]s\/(\d+(\.\d+)*)/i,w),g={name:F.OS_MAP.WebOS};return y&&y.length&&(g.version=y),g}},{test:[/blackberry|\bbb\d+/i,/rim\stablet/i],describe:function(w){var y=M.default.getFirstMatch(/rim\stablet\sos\s(\d+(\.\d+)*)/i,w)||M.default.getFirstMatch(/blackberry\d+\/(\d+([_\s]\d+)*)/i,w)||M.default.getFirstMatch(/\bbb(\d+)/i,w);return{name:F.OS_MAP.BlackBerry,version:y}}},{test:[/bada/i],describe:function(w){var y=M.default.getFirstMatch(/bada\/(\d+(\.\d+)*)/i,w);return{name:F.OS_MAP.Bada,version:y}}},{test:[/tizen/i],describe:function(w){var y=M.default.getFirstMatch(/tizen[/\s](\d+(\.\d+)*)/i,w);return{name:F.OS_MAP.Tizen,version:y}}},{test:[/linux/i],describe:function(){return{name:F.OS_MAP.Linux}}},{test:[/CrOS/],describe:function(){return{name:F.OS_MAP.ChromeOS}}},{test:[/PlayStation 4/],describe:function(w){var y=M.default.getFirstMatch(/PlayStation 4[/\s](\d+(\.\d+)*)/i,w);return{name:F.OS_MAP.PlayStation4,version:y}}}],ee.exports=_.default},94:function(ee,_,c){"use strict";_.__esModule=!0,_.default=void 0;var b,M=(b=c(17))&&b.__esModule?b:{default:b},F=c(18);_.default=[{test:[/googlebot/i],describe:function(){return{type:"bot",vendor:"Google"}}},{test:[/huawei/i],describe:function(w){var y=M.default.getFirstMatch(/(can-l01)/i,w)&&"Nova",g={type:F.PLATFORMS_MAP.mobile,vendor:"Huawei"};return y&&(g.model=y),g}},{test:[/nexus\s*(?:7|8|9|10).*/i],describe:function(){return{type:F.PLATFORMS_MAP.tablet,vendor:"Nexus"}}},{test:[/ipad/i],describe:function(){return{type:F.PLATFORMS_MAP.tablet,vendor:"Apple",model:"iPad"}}},{test:[/Macintosh(.*?) FxiOS(.*?)\//],describe:function(){return{type:F.PLATFORMS_MAP.tablet,vendor:"Apple",model:"iPad"}}},{test:[/kftt build/i],describe:function(){return{type:F.PLATFORMS_MAP.tablet,vendor:"Amazon",model:"Kindle Fire HD 7"}}},{test:[/silk/i],describe:function(){return{type:F.PLATFORMS_MAP.tablet,vendor:"Amazon"}}},{test:[/tablet(?! pc)/i],describe:function(){return{type:F.PLATFORMS_MAP.tablet}}},{test:function(w){var y=w.test(/ipod|iphone/i),g=w.test(/like (ipod|iphone)/i);return y&&!g},describe:function(w){var y=M.default.getFirstMatch(/(ipod|iphone)/i,w);return{type:F.PLATFORMS_MAP.mobile,vendor:"Apple",model:y}}},{test:[/nexus\s*[0-6].*/i,/galaxy nexus/i],describe:function(){return{type:F.PLATFORMS_MAP.mobile,vendor:"Nexus"}}},{test:[/[^-]mobi/i],describe:function(){return{type:F.PLATFORMS_MAP.mobile}}},{test:function(w){return"blackberry"===w.getBrowserName(!0)},describe:function(){return{type:F.PLATFORMS_MAP.mobile,vendor:"BlackBerry"}}},{test:function(w){return"bada"===w.getBrowserName(!0)},describe:function(){return{type:F.PLATFORMS_MAP.mobile}}},{test:function(w){return"windows phone"===w.getBrowserName()},describe:function(){return{type:F.PLATFORMS_MAP.mobile,vendor:"Microsoft"}}},{test:function(w){var y=Number(String(w.getOSVersion()).split(".")[0]);return"android"===w.getOSName(!0)&&y>=3},describe:function(){return{type:F.PLATFORMS_MAP.tablet}}},{test:function(w){return"android"===w.getOSName(!0)},describe:function(){return{type:F.PLATFORMS_MAP.mobile}}},{test:function(w){return"macos"===w.getOSName(!0)},describe:function(){return{type:F.PLATFORMS_MAP.desktop,vendor:"Apple"}}},{test:function(w){return"windows"===w.getOSName(!0)},describe:function(){return{type:F.PLATFORMS_MAP.desktop}}},{test:function(w){return"linux"===w.getOSName(!0)},describe:function(){return{type:F.PLATFORMS_MAP.desktop}}},{test:function(w){return"playstation 4"===w.getOSName(!0)},describe:function(){return{type:F.PLATFORMS_MAP.tv}}},{test:function(w){return"roku"===w.getOSName(!0)},describe:function(){return{type:F.PLATFORMS_MAP.tv}}}],ee.exports=_.default},95:function(ee,_,c){"use strict";_.__esModule=!0,_.default=void 0;var b,M=(b=c(17))&&b.__esModule?b:{default:b},F=c(18);_.default=[{test:function(w){return"microsoft edge"===w.getBrowserName(!0)},describe:function(w){if(/\sedg\//i.test(w))return{name:F.ENGINE_MAP.Blink};var y=M.default.getFirstMatch(/edge\/(\d+(\.?_?\d+)+)/i,w);return{name:F.ENGINE_MAP.EdgeHTML,version:y}}},{test:[/trident/i],describe:function(w){var y={name:F.ENGINE_MAP.Trident},g=M.default.getFirstMatch(/trident\/(\d+(\.?_?\d+)+)/i,w);return g&&(y.version=g),y}},{test:function(w){return w.test(/presto/i)},describe:function(w){var y={name:F.ENGINE_MAP.Presto},g=M.default.getFirstMatch(/presto\/(\d+(\.?_?\d+)+)/i,w);return g&&(y.version=g),y}},{test:function(w){var y=w.test(/gecko/i),g=w.test(/like gecko/i);return y&&!g},describe:function(w){var y={name:F.ENGINE_MAP.Gecko},g=M.default.getFirstMatch(/gecko\/(\d+(\.?_?\d+)+)/i,w);return g&&(y.version=g),y}},{test:[/(apple)?webkit\/537\.36/i],describe:function(){return{name:F.ENGINE_MAP.Blink}}},{test:[/(apple)?webkit/i],describe:function(w){var y={name:F.ENGINE_MAP.WebKit},g=M.default.getFirstMatch(/webkit\/(\d+(\.?_?\d+)+)/i,w);return g&&(y.version=g),y}}],ee.exports=_.default}})},93172:(Ze,ee,_)=>{"use strict";var b=_(5343),M=_(48461),F=_(66425);function w(){return g.TYPED_ARRAY_SUPPORT?2147483647:1073741823}function y(je,ne){if(w()<ne)throw new RangeError("Invalid typed array length");return g.TYPED_ARRAY_SUPPORT?(je=new Uint8Array(ne)).__proto__=g.prototype:(null===je&&(je=new g(ne)),je.length=ne),je}function g(je,ne,re){if(!(g.TYPED_ARRAY_SUPPORT||this instanceof g))return new g(je,ne,re);if("number"==typeof je){if("string"==typeof ne)throw new Error("If encoding is specified then the first argument must be a string");return V(this,je)}return x(this,je,ne,re)}function x(je,ne,re,$e){if("number"==typeof ne)throw new TypeError('"value" argument must not be a number');return typeof ArrayBuffer<"u"&&ne instanceof ArrayBuffer?function de(je,ne,re,$e){if(re<0||ne.byteLength<re)throw new RangeError("'offset' is out of bounds");if(ne.byteLength<re+($e||0))throw new RangeError("'length' is out of bounds");return ne=void 0===re&&void 0===$e?new Uint8Array(ne):void 0===$e?new Uint8Array(ne,re):new Uint8Array(ne,re,$e),g.TYPED_ARRAY_SUPPORT?(je=ne).__proto__=g.prototype:je=q(je,ne),je}(je,ne,re,$e):"string"==typeof ne?function B(je,ne,re){if(("string"!=typeof re||""===re)&&(re="utf8"),!g.isEncoding(re))throw new TypeError('"encoding" must be a valid string encoding');var $e=0|xe(ne,re),ot=(je=y(je,$e)).write(ne,re);return ot!==$e&&(je=je.slice(0,ot)),je}(je,ne,re):function se(je,ne){if(g.isBuffer(ne)){var re=0|De(ne.length);return 0===(je=y(je,re)).length||ne.copy(je,0,0,re),je}if(ne){if(typeof ArrayBuffer<"u"&&ne.buffer instanceof ArrayBuffer||"length"in ne)return"number"!=typeof ne.length||function zt(je){return je!=je}(ne.length)?y(je,0):q(je,ne);if("Buffer"===ne.type&&F(ne.data))return q(je,ne.data)}throw new TypeError("First argument must be a string, Buffer, ArrayBuffer, Array, or array-like object.")}(je,ne)}function N(je){if("number"!=typeof je)throw new TypeError('"size" argument must be a number');if(je<0)throw new RangeError('"size" argument must not be negative')}function V(je,ne){if(N(ne),je=y(je,ne<0?0:0|De(ne)),!g.TYPED_ARRAY_SUPPORT)for(var re=0;re<ne;++re)je[re]=0;return je}function q(je,ne){var re=ne.length<0?0:0|De(ne.length);je=y(je,re);for(var $e=0;$e<re;$e+=1)je[$e]=255&ne[$e];return je}function De(je){if(je>=w())throw new RangeError("Attempt to allocate Buffer larger than maximum size: 0x"+w().toString(16)+" bytes");return 0|je}function xe(je,ne){if(g.isBuffer(je))return je.length;if(typeof ArrayBuffer<"u"&&"function"==typeof ArrayBuffer.isView&&(ArrayBuffer.isView(je)||je instanceof ArrayBuffer))return je.byteLength;"string"!=typeof je&&(je=""+je);var re=je.length;if(0===re)return 0;for(var $e=!1;;)switch(ne){case"ascii":case"latin1":case"binary":return re;case"utf8":case"utf-8":case void 0:return jt(je).length;case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return 2*re;case"hex":return re>>>1;case"base64":return Tn(je).length;default:if($e)return jt(je).length;ne=(""+ne).toLowerCase(),$e=!0}}function Me(je,ne,re){var $e=!1;if((void 0===ne||ne<0)&&(ne=0),ne>this.length||((void 0===re||re>this.length)&&(re=this.length),re<=0)||(re>>>=0)<=(ne>>>=0))return"";for(je||(je="utf8");;)switch(je){case"hex":return ke(this,ne,re);case"utf8":case"utf-8":return ye(this,ne,re);case"ascii":return we(this,ne,re);case"latin1":case"binary":return Ge(this,ne,re);case"base64":return Q(this,ne,re);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return ve(this,ne,re);default:if($e)throw new TypeError("Unknown encoding: "+je);je=(je+"").toLowerCase(),$e=!0}}function be(je,ne,re){var $e=je[ne];je[ne]=je[re],je[re]=$e}function Y(je,ne,re,$e,ot){if(0===je.length)return-1;if("string"==typeof re?($e=re,re=0):re>2147483647?re=2147483647:re<-2147483648&&(re=-2147483648),re=+re,isNaN(re)&&(re=ot?0:je.length-1),re<0&&(re=je.length+re),re>=je.length){if(ot)return-1;re=je.length-1}else if(re<0){if(!ot)return-1;re=0}if("string"==typeof ne&&(ne=g.from(ne,$e)),g.isBuffer(ne))return 0===ne.length?-1:Be(je,ne,re,$e,ot);if("number"==typeof ne)return ne&=255,g.TYPED_ARRAY_SUPPORT&&"function"==typeof Uint8Array.prototype.indexOf?ot?Uint8Array.prototype.indexOf.call(je,ne,re):Uint8Array.prototype.lastIndexOf.call(je,ne,re):Be(je,[ne],re,$e,ot);throw new TypeError("val must be string, number or Buffer")}function Be(je,ne,re,$e,ot){var It,vt=1,lt=je.length,Ht=ne.length;if(void 0!==$e&&("ucs2"===($e=String($e).toLowerCase())||"ucs-2"===$e||"utf16le"===$e||"utf-16le"===$e)){if(je.length<2||ne.length<2)return-1;vt=2,lt/=2,Ht/=2,re/=2}function Nt(lr,Gn){return 1===vt?lr[Gn]:lr.readUInt16BE(Gn*vt)}if(ot){var pn=-1;for(It=re;It<lt;It++)if(Nt(je,It)===Nt(ne,-1===pn?0:It-pn)){if(-1===pn&&(pn=It),It-pn+1===Ht)return pn*vt}else-1!==pn&&(It-=It-pn),pn=-1}else for(re+Ht>lt&&(re=lt-Ht),It=re;It>=0;It--){for(var cn=!0,ln=0;ln<Ht;ln++)if(Nt(je,It+ln)!==Nt(ne,ln)){cn=!1;break}if(cn)return It}return-1}function le(je,ne,re,$e){re=Number(re)||0;var ot=je.length-re;$e?($e=Number($e))>ot&&($e=ot):$e=ot;var vt=ne.length;if(vt%2!=0)throw new TypeError("Invalid hex string");$e>vt/2&&($e=vt/2);for(var lt=0;lt<$e;++lt){var Ht=parseInt(ne.substr(2*lt,2),16);if(isNaN(Ht))return lt;je[re+lt]=Ht}return lt}function R(je,ne,re,$e){return wn(jt(ne,je.length-re),je,re,$e)}function U(je,ne,re,$e){return wn(function hn(je){for(var ne=[],re=0;re<je.length;++re)ne.push(255&je.charCodeAt(re));return ne}(ne),je,re,$e)}function W(je,ne,re,$e){return U(je,ne,re,$e)}function oe(je,ne,re,$e){return wn(Tn(ne),je,re,$e)}function ge(je,ne,re,$e){return wn(function xn(je,ne){for(var re,$e,vt=[],lt=0;lt<je.length&&!((ne-=2)<0);++lt)$e=(re=je.charCodeAt(lt))>>8,vt.push(re%256),vt.push($e);return vt}(ne,je.length-re),je,re,$e)}function Q(je,ne,re){return b.fromByteArray(0===ne&&re===je.length?je:je.slice(ne,re))}function ye(je,ne,re){re=Math.min(je.length,re);for(var $e=[],ot=ne;ot<re;){var Nt,It,pn,cn,vt=je[ot],lt=null,Ht=vt>239?4:vt>223?3:vt>191?2:1;if(ot+Ht<=re)switch(Ht){case 1:vt<128&&(lt=vt);break;case 2:128==(192&(Nt=je[ot+1]))&&(cn=(31&vt)<<6|63&Nt)>127&&(lt=cn);break;case 3:It=je[ot+2],128==(192&(Nt=je[ot+1]))&&128==(192&It)&&(cn=(15&vt)<<12|(63&Nt)<<6|63&It)>2047&&(cn<55296||cn>57343)&&(lt=cn);break;case 4:It=je[ot+2],pn=je[ot+3],128==(192&(Nt=je[ot+1]))&&128==(192&It)&&128==(192&pn)&&(cn=(15&vt)<<18|(63&Nt)<<12|(63&It)<<6|63&pn)>65535&&cn<1114112&&(lt=cn)}null===lt?(lt=65533,Ht=1):lt>65535&&($e.push((lt-=65536)>>>10&1023|55296),lt=56320|1023<),$e.push(lt),ot+=Ht}return function Ye(je){var ne=je.length;if(ne<=Le)return String.fromCharCode.apply(String,je);for(var re="",$e=0;$e<ne;)re+=String.fromCharCode.apply(String,je.slice($e,$e+=Le));return re}($e)}ee.lW=g,ee.h2=50,g.TYPED_ARRAY_SUPPORT=void 0!==global.TYPED_ARRAY_SUPPORT?global.TYPED_ARRAY_SUPPORT:function O(){try{var je=new Uint8Array(1);return je.__proto__={__proto__:Uint8Array.prototype,foo:function(){return 42}},42===je.foo()&&"function"==typeof je.subarray&&0===je.subarray(1,1).byteLength}catch{return!1}}(),w(),g.poolSize=8192,g._augment=function(je){return je.__proto__=g.prototype,je},g.from=function(je,ne,re){return x(null,je,ne,re)},g.TYPED_ARRAY_SUPPORT&&(g.prototype.__proto__=Uint8Array.prototype,g.__proto__=Uint8Array,typeof Symbol<"u"&&Symbol.species&&g[Symbol.species]===g&&Object.defineProperty(g,Symbol.species,{value:null,configurable:!0})),g.alloc=function(je,ne,re){return function T(je,ne,re,$e){return N(ne),ne<=0?y(je,ne):void 0!==re?"string"==typeof $e?y(je,ne).fill(re,$e):y(je,ne).fill(re):y(je,ne)}(null,je,ne,re)},g.allocUnsafe=function(je){return V(null,je)},g.allocUnsafeSlow=function(je){return V(null,je)},g.isBuffer=function(ne){return!(null==ne||!ne._isBuffer)},g.compare=function(ne,re){if(!g.isBuffer(ne)||!g.isBuffer(re))throw new TypeError("Arguments must be Buffers");if(ne===re)return 0;for(var $e=ne.length,ot=re.length,vt=0,lt=Math.min($e,ot);vt<lt;++vt)if(ne[vt]!==re[vt]){$e=ne[vt],ot=re[vt];break}return $e<ot?-1:ot<$e?1:0},g.isEncoding=function(ne){switch(String(ne).toLowerCase()){case"hex":case"utf8":case"utf-8":case"ascii":case"latin1":case"binary":case"base64":case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return!0;default:return!1}},g.concat=function(ne,re){if(!F(ne))throw new TypeError('"list" argument must be an Array of Buffers');if(0===ne.length)return g.alloc(0);var $e;if(void 0===re)for(re=0,$e=0;$e<ne.length;++$e)re+=ne[$e].length;var ot=g.allocUnsafe(re),vt=0;for($e=0;$e<ne.length;++$e){var lt=ne[$e];if(!g.isBuffer(lt))throw new TypeError('"list" argument must be an Array of Buffers');lt.copy(ot,vt),vt+=lt.length}return ot},g.byteLength=xe,g.prototype._isBuffer=!0,g.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 re=0;re<ne;re+=2)be(this,re,re+1);return this},g.prototype.swap32=function(){var ne=this.length;if(ne%4!=0)throw new RangeError("Buffer size must be a multiple of 32-bits");for(var re=0;re<ne;re+=4)be(this,re,re+3),be(this,re+1,re+2);return this},g.prototype.swap64=function(){var ne=this.length;if(ne%8!=0)throw new RangeError("Buffer size must be a multiple of 64-bits");for(var re=0;re<ne;re+=8)be(this,re,re+7),be(this,re+1,re+6),be(this,re+2,re+5),be(this,re+3,re+4);return this},g.prototype.toString=function(){var ne=0|this.length;return 0===ne?"":0===arguments.length?ye(this,0,ne):Me.apply(this,arguments)},g.prototype.equals=function(ne){if(!g.isBuffer(ne))throw new TypeError("Argument must be a Buffer");return this===ne||0===g.compare(this,ne)},g.prototype.inspect=function(){var ne="",re=ee.h2;return this.length>0&&(ne=this.toString("hex",0,re).match(/.{2}/g).join(" "),this.length>re&&(ne+=" ... ")),"<Buffer "+ne+">"},g.prototype.compare=function(ne,re,$e,ot,vt){if(!g.isBuffer(ne))throw new TypeError("Argument must be a Buffer");if(void 0===re&&(re=0),void 0===$e&&($e=ne?ne.length:0),void 0===ot&&(ot=0),void 0===vt&&(vt=this.length),re<0||$e>ne.length||ot<0||vt>this.length)throw new RangeError("out of range index");if(ot>=vt&&re>=$e)return 0;if(ot>=vt)return-1;if(re>=$e)return 1;if(this===ne)return 0;for(var lt=(vt>>>=0)-(ot>>>=0),Ht=($e>>>=0)-(re>>>=0),Nt=Math.min(lt,Ht),It=this.slice(ot,vt),pn=ne.slice(re,$e),cn=0;cn<Nt;++cn)if(It[cn]!==pn[cn]){lt=It[cn],Ht=pn[cn];break}return lt<Ht?-1:Ht<lt?1:0},g.prototype.includes=function(ne,re,$e){return-1!==this.indexOf(ne,re,$e)},g.prototype.indexOf=function(ne,re,$e){return Y(this,ne,re,$e,!0)},g.prototype.lastIndexOf=function(ne,re,$e){return Y(this,ne,re,$e,!1)},g.prototype.write=function(ne,re,$e,ot){if(void 0===re)ot="utf8",$e=this.length,re=0;else if(void 0===$e&&"string"==typeof re)ot=re,$e=this.length,re=0;else{if(!isFinite(re))throw new Error("Buffer.write(string, encoding, offset[, length]) is no longer supported");re|=0,isFinite($e)?($e|=0,void 0===ot&&(ot="utf8")):(ot=$e,$e=void 0)}var vt=this.length-re;if((void 0===$e||$e>vt)&&($e=vt),ne.length>0&&($e<0||re<0)||re>this.length)throw new RangeError("Attempt to write outside buffer bounds");ot||(ot="utf8");for(var lt=!1;;)switch(ot){case"hex":return le(this,ne,re,$e);case"utf8":case"utf-8":return R(this,ne,re,$e);case"ascii":return U(this,ne,re,$e);case"latin1":case"binary":return W(this,ne,re,$e);case"base64":return oe(this,ne,re,$e);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return ge(this,ne,re,$e);default:if(lt)throw new TypeError("Unknown encoding: "+ot);ot=(""+ot).toLowerCase(),lt=!0}},g.prototype.toJSON=function(){return{type:"Buffer",data:Array.prototype.slice.call(this._arr||this,0)}};var Le=4096;function we(je,ne,re){var $e="";re=Math.min(je.length,re);for(var ot=ne;ot<re;++ot)$e+=String.fromCharCode(127&je[ot]);return $e}function Ge(je,ne,re){var $e="";re=Math.min(je.length,re);for(var ot=ne;ot<re;++ot)$e+=String.fromCharCode(je[ot]);return $e}function ke(je,ne,re){var $e=je.length;(!ne||ne<0)&&(ne=0),(!re||re<0||re>$e)&&(re=$e);for(var ot="",vt=ne;vt<re;++vt)ot+=Ut(je[vt]);return ot}function ve(je,ne,re){for(var $e=je.slice(ne,re),ot="",vt=0;vt<$e.length;vt+=2)ot+=String.fromCharCode($e[vt]+256*$e[vt+1]);return ot}function ze(je,ne,re){if(je%1!=0||je<0)throw new RangeError("offset is not uint");if(je+ne>re)throw new RangeError("Trying to access beyond buffer length")}function Ie(je,ne,re,$e,ot,vt){if(!g.isBuffer(je))throw new TypeError('"buffer" argument must be a Buffer instance');if(ne>ot||ne<vt)throw new RangeError('"value" argument is out of bounds');if(re+$e>je.length)throw new RangeError("Index out of range")}function ft(je,ne,re,$e){ne<0&&(ne=65535+ne+1);for(var ot=0,vt=Math.min(je.length-re,2);ot<vt;++ot)je[re+ot]=(ne&255<<8*($e?ot:1-ot))>>>8*($e?ot:1-ot)}function pt(je,ne,re,$e){ne<0&&(ne=4294967295+ne+1);for(var ot=0,vt=Math.min(je.length-re,4);ot<vt;++ot)je[re+ot]=ne>>>8*($e?ot:3-ot)&255}function mt(je,ne,re,$e,ot,vt){if(re+$e>je.length)throw new RangeError("Index out of range");if(re<0)throw new RangeError("Index out of range")}function yt(je,ne,re,$e,ot){return ot||mt(je,0,re,4),M.write(je,ne,re,$e,23,4),re+4}function Pt(je,ne,re,$e,ot){return ot||mt(je,0,re,8),M.write(je,ne,re,$e,52,8),re+8}g.prototype.slice=function(ne,re){var ot,$e=this.length;if((ne=~~ne)<0?(ne+=$e)<0&&(ne=0):ne>$e&&(ne=$e),(re=void 0===re?$e:~~re)<0?(re+=$e)<0&&(re=0):re>$e&&(re=$e),re<ne&&(re=ne),g.TYPED_ARRAY_SUPPORT)(ot=this.subarray(ne,re)).__proto__=g.prototype;else{var vt=re-ne;ot=new g(vt,void 0);for(var lt=0;lt<vt;++lt)ot[lt]=this[lt+ne]}return ot},g.prototype.readUIntLE=function(ne,re,$e){ne|=0,re|=0,$e||ze(ne,re,this.length);for(var ot=this[ne],vt=1,lt=0;++lt<re&&(vt*=256);)ot+=this[ne+lt]*vt;return ot},g.prototype.readUIntBE=function(ne,re,$e){ne|=0,re|=0,$e||ze(ne,re,this.length);for(var ot=this[ne+--re],vt=1;re>0&&(vt*=256);)ot+=this[ne+--re]*vt;return ot},g.prototype.readUInt8=function(ne,re){return re||ze(ne,1,this.length),this[ne]},g.prototype.readUInt16LE=function(ne,re){return re||ze(ne,2,this.length),this[ne]|this[ne+1]<<8},g.prototype.readUInt16BE=function(ne,re){return re||ze(ne,2,this.length),this[ne]<<8|this[ne+1]},g.prototype.readUInt32LE=function(ne,re){return re||ze(ne,4,this.length),(this[ne]|this[ne+1]<<8|this[ne+2]<<16)+16777216*this[ne+3]},g.prototype.readUInt32BE=function(ne,re){return re||ze(ne,4,this.length),16777216*this[ne]+(this[ne+1]<<16|this[ne+2]<<8|this[ne+3])},g.prototype.readIntLE=function(ne,re,$e){ne|=0,re|=0,$e||ze(ne,re,this.length);for(var ot=this[ne],vt=1,lt=0;++lt<re&&(vt*=256);)ot+=this[ne+lt]*vt;return ot>=(vt*=128)&&(ot-=Math.pow(2,8*re)),ot},g.prototype.readIntBE=function(ne,re,$e){ne|=0,re|=0,$e||ze(ne,re,this.length);for(var ot=re,vt=1,lt=this[ne+--ot];ot>0&&(vt*=256);)lt+=this[ne+--ot]*vt;return lt>=(vt*=128)&&(lt-=Math.pow(2,8*re)),lt},g.prototype.readInt8=function(ne,re){return re||ze(ne,1,this.length),128&this[ne]?-1*(255-this[ne]+1):this[ne]},g.prototype.readInt16LE=function(ne,re){re||ze(ne,2,this.length);var $e=this[ne]|this[ne+1]<<8;return 32768&$e?4294901760|$e:$e},g.prototype.readInt16BE=function(ne,re){re||ze(ne,2,this.length);var $e=this[ne+1]|this[ne]<<8;return 32768&$e?4294901760|$e:$e},g.prototype.readInt32LE=function(ne,re){return re||ze(ne,4,this.length),this[ne]|this[ne+1]<<8|this[ne+2]<<16|this[ne+3]<<24},g.prototype.readInt32BE=function(ne,re){return re||ze(ne,4,this.length),this[ne]<<24|this[ne+1]<<16|this[ne+2]<<8|this[ne+3]},g.prototype.readFloatLE=function(ne,re){return re||ze(ne,4,this.length),M.read(this,ne,!0,23,4)},g.prototype.readFloatBE=function(ne,re){return re||ze(ne,4,this.length),M.read(this,ne,!1,23,4)},g.prototype.readDoubleLE=function(ne,re){return re||ze(ne,8,this.length),M.read(this,ne,!0,52,8)},g.prototype.readDoubleBE=function(ne,re){return re||ze(ne,8,this.length),M.read(this,ne,!1,52,8)},g.prototype.writeUIntLE=function(ne,re,$e,ot){ne=+ne,re|=0,$e|=0,ot||Ie(this,ne,re,$e,Math.pow(2,8*$e)-1,0);var lt=1,Ht=0;for(this[re]=255≠++Ht<$e&&(lt*=256);)this[re+Ht]=ne/lt&255;return re+$e},g.prototype.writeUIntBE=function(ne,re,$e,ot){ne=+ne,re|=0,$e|=0,ot||Ie(this,ne,re,$e,Math.pow(2,8*$e)-1,0);var lt=$e-1,Ht=1;for(this[re+lt]=255≠--lt>=0&&(Ht*=256);)this[re+lt]=ne/Ht&255;return re+$e},g.prototype.writeUInt8=function(ne,re,$e){return ne=+ne,re|=0,$e||Ie(this,ne,re,1,255,0),g.TYPED_ARRAY_SUPPORT||(ne=Math.floor(ne)),this[re]=255&ne,re+1},g.prototype.writeUInt16LE=function(ne,re,$e){return ne=+ne,re|=0,$e||Ie(this,ne,re,2,65535,0),g.TYPED_ARRAY_SUPPORT?(this[re]=255&ne,this[re+1]=ne>>>8):ft(this,ne,re,!0),re+2},g.prototype.writeUInt16BE=function(ne,re,$e){return ne=+ne,re|=0,$e||Ie(this,ne,re,2,65535,0),g.TYPED_ARRAY_SUPPORT?(this[re]=ne>>>8,this[re+1]=255&ne):ft(this,ne,re,!1),re+2},g.prototype.writeUInt32LE=function(ne,re,$e){return ne=+ne,re|=0,$e||Ie(this,ne,re,4,4294967295,0),g.TYPED_ARRAY_SUPPORT?(this[re+3]=ne>>>24,this[re+2]=ne>>>16,this[re+1]=ne>>>8,this[re]=255&ne):pt(this,ne,re,!0),re+4},g.prototype.writeUInt32BE=function(ne,re,$e){return ne=+ne,re|=0,$e||Ie(this,ne,re,4,4294967295,0),g.TYPED_ARRAY_SUPPORT?(this[re]=ne>>>24,this[re+1]=ne>>>16,this[re+2]=ne>>>8,this[re+3]=255&ne):pt(this,ne,re,!1),re+4},g.prototype.writeIntLE=function(ne,re,$e,ot){if(ne=+ne,re|=0,!ot){var vt=Math.pow(2,8*$e-1);Ie(this,ne,re,$e,vt-1,-vt)}var lt=0,Ht=1,Nt=0;for(this[re]=255≠++lt<$e&&(Ht*=256);)ne<0&&0===Nt&&0!==this[re+lt-1]&&(Nt=1),this[re+lt]=(ne/Ht>>0)-Nt&255;return re+$e},g.prototype.writeIntBE=function(ne,re,$e,ot){if(ne=+ne,re|=0,!ot){var vt=Math.pow(2,8*$e-1);Ie(this,ne,re,$e,vt-1,-vt)}var lt=$e-1,Ht=1,Nt=0;for(this[re+lt]=255≠--lt>=0&&(Ht*=256);)ne<0&&0===Nt&&0!==this[re+lt+1]&&(Nt=1),this[re+lt]=(ne/Ht>>0)-Nt&255;return re+$e},g.prototype.writeInt8=function(ne,re,$e){return ne=+ne,re|=0,$e||Ie(this,ne,re,1,127,-128),g.TYPED_ARRAY_SUPPORT||(ne=Math.floor(ne)),ne<0&&(ne=255+ne+1),this[re]=255&ne,re+1},g.prototype.writeInt16LE=function(ne,re,$e){return ne=+ne,re|=0,$e||Ie(this,ne,re,2,32767,-32768),g.TYPED_ARRAY_SUPPORT?(this[re]=255&ne,this[re+1]=ne>>>8):ft(this,ne,re,!0),re+2},g.prototype.writeInt16BE=function(ne,re,$e){return ne=+ne,re|=0,$e||Ie(this,ne,re,2,32767,-32768),g.TYPED_ARRAY_SUPPORT?(this[re]=ne>>>8,this[re+1]=255&ne):ft(this,ne,re,!1),re+2},g.prototype.writeInt32LE=function(ne,re,$e){return ne=+ne,re|=0,$e||Ie(this,ne,re,4,2147483647,-2147483648),g.TYPED_ARRAY_SUPPORT?(this[re]=255&ne,this[re+1]=ne>>>8,this[re+2]=ne>>>16,this[re+3]=ne>>>24):pt(this,ne,re,!0),re+4},g.prototype.writeInt32BE=function(ne,re,$e){return ne=+ne,re|=0,$e||Ie(this,ne,re,4,2147483647,-2147483648),ne<0&&(ne=4294967295+ne+1),g.TYPED_ARRAY_SUPPORT?(this[re]=ne>>>24,this[re+1]=ne>>>16,this[re+2]=ne>>>8,this[re+3]=255&ne):pt(this,ne,re,!1),re+4},g.prototype.writeFloatLE=function(ne,re,$e){return yt(this,ne,re,!0,$e)},g.prototype.writeFloatBE=function(ne,re,$e){return yt(this,ne,re,!1,$e)},g.prototype.writeDoubleLE=function(ne,re,$e){return Pt(this,ne,re,!0,$e)},g.prototype.writeDoubleBE=function(ne,re,$e){return Pt(this,ne,re,!1,$e)},g.prototype.copy=function(ne,re,$e,ot){if($e||($e=0),!ot&&0!==ot&&(ot=this.length),re>=ne.length&&(re=ne.length),re||(re=0),ot>0&&ot<$e&&(ot=$e),ot===$e||0===ne.length||0===this.length)return 0;if(re<0)throw new RangeError("targetStart out of bounds");if($e<0||$e>=this.length)throw new RangeError("sourceStart out of bounds");if(ot<0)throw new RangeError("sourceEnd out of bounds");ot>this.length&&(ot=this.length),ne.length-re<ot-$e&&(ot=ne.length-re+$e);var lt,vt=ot-$e;if(this===ne&&$e<re&&re<ot)for(lt=vt-1;lt>=0;--lt)ne[lt+re]=this[lt+$e];else if(vt<1e3||!g.TYPED_ARRAY_SUPPORT)for(lt=0;lt<vt;++lt)ne[lt+re]=this[lt+$e];else Uint8Array.prototype.set.call(ne,this.subarray($e,$e+vt),re);return vt},g.prototype.fill=function(ne,re,$e,ot){if("string"==typeof ne){if("string"==typeof re?(ot=re,re=0,$e=this.length):"string"==typeof $e&&(ot=$e,$e=this.length),1===ne.length){var vt=ne.charCodeAt(0);vt<256&&(ne=vt)}if(void 0!==ot&&"string"!=typeof ot)throw new TypeError("encoding must be a string");if("string"==typeof ot&&!g.isEncoding(ot))throw new TypeError("Unknown encoding: "+ot)}else"number"==typeof ne&&(ne&=255);if(re<0||this.length<re||this.length<$e)throw new RangeError("Out of range index");if($e<=re)return this;var lt;if(re>>>=0,$e=void 0===$e?this.length:$e>>>0,ne||(ne=0),"number"==typeof ne)for(lt=re;lt<$e;++lt)this[lt]=ne;else{var Ht=g.isBuffer(ne)?ne:jt(new g(ne,ot).toString()),Nt=Ht.length;for(lt=0;lt<$e-re;++lt)this[lt+re]=Ht[lt%Nt]}return this};var Zt=/[^+\/0-9A-Za-z-_]/g;function Ut(je){return je<16?"0"+je.toString(16):je.toString(16)}function jt(je,ne){ne=ne||1/0;for(var re,$e=je.length,ot=null,vt=[],lt=0;lt<$e;++lt){if((re=je.charCodeAt(lt))>55295&&re<57344){if(!ot){if(re>56319){(ne-=3)>-1&&vt.push(239,191,189);continue}if(lt+1===$e){(ne-=3)>-1&&vt.push(239,191,189);continue}ot=re;continue}if(re<56320){(ne-=3)>-1&&vt.push(239,191,189),ot=re;continue}re=65536+(ot-55296<<10|re-56320)}else ot&&(ne-=3)>-1&&vt.push(239,191,189);if(ot=null,re<128){if((ne-=1)<0)break;vt.push(re)}else if(re<2048){if((ne-=2)<0)break;vt.push(re>>6|192,63&re|128)}else if(re<65536){if((ne-=3)<0)break;vt.push(re>>12|224,re>>6&63|128,63&re|128)}else{if(!(re<1114112))throw new Error("Invalid code point");if((ne-=4)<0)break;vt.push(re>>18|240,re>>12&63|128,re>>6&63|128,63&re|128)}}return vt}function Tn(je){return b.toByteArray(function nn(je){if((je=function qt(je){return je.trim?je.trim():je.replace(/^\s+|\s+$/g,"")}(je).replace(Zt,"")).length<2)return"";for(;je.length%4!=0;)je+="=";return je}(je))}function wn(je,ne,re,$e){for(var ot=0;ot<$e&&!(ot+re>=ne.length||ot>=je.length);++ot)ne[ot+re]=je[ot];return ot}},23555:(Ze,ee)=>{"use strict";ee.Q=function M(w,y){if("string"!=typeof w)throw new TypeError("argument str must be a string");for(var g={},x=y||{},N=w.split(";"),T=x.decode||_,V=0;V<N.length;V++){var B=N[V],q=B.indexOf("=");if(!(q<0)){var de=B.substring(0,q).trim();if(null==g[de]){var se=B.substring(q+1,B.length).trim();'"'===se[0]&&(se=se.slice(1,-1)),g[de]=O(se,T)}}}return g},ee.q=function F(w,y,g){var x=g||{},N=x.encode||c;if("function"!=typeof N)throw new TypeError("option encode is invalid");if(!b.test(w))throw new TypeError("argument name is invalid");var T=N(y);if(T&&!b.test(T))throw new TypeError("argument val is invalid");var V=w+"="+T;if(null!=x.maxAge){var B=x.maxAge-0;if(isNaN(B)||!isFinite(B))throw new TypeError("option maxAge is invalid");V+="; Max-Age="+Math.floor(B)}if(x.domain){if(!b.test(x.domain))throw new TypeError("option domain is invalid");V+="; Domain="+x.domain}if(x.path){if(!b.test(x.path))throw new TypeError("option path is invalid");V+="; Path="+x.path}if(x.expires){if("function"!=typeof x.expires.toUTCString)throw new TypeError("option expires is invalid");V+="; Expires="+x.expires.toUTCString()}if(x.httpOnly&&(V+="; HttpOnly"),x.secure&&(V+="; Secure"),x.sameSite)switch("string"==typeof x.sameSite?x.sameSite.toLowerCase():x.sameSite){case!0:V+="; SameSite=Strict";break;case"lax":V+="; SameSite=Lax";break;case"strict":V+="; SameSite=Strict";break;case"none":V+="; SameSite=None";break;default:throw new TypeError("option sameSite is invalid")}return V};var _=decodeURIComponent,c=encodeURIComponent,b=/^[\u0009\u0020-\u007e\u0080-\u00ff]+$/;function O(w,y){try{return y(w)}catch{return w}}},77466:function(Ze,ee,_){var c;Ze.exports=(c=_(67585),_(58319),_(9493),_(37865),_(53057),function(){var b=c,F=b.lib.BlockCipher,O=b.algo,w=[],y=[],g=[],x=[],N=[],T=[],V=[],B=[],q=[],de=[];!function(){for(var he=[],xe=0;xe<256;xe++)he[xe]=xe<128?xe<<1:xe<<1^283;var Me=0,be=0;for(xe=0;xe<256;xe++){var Y=be^be<<1^be<<2^be<<3^be<<4;w[Me]=Y=Y>>>8^255&Y^99,y[Y]=Me;var U,Be=he[Me],le=he[Be],R=he[le];g[Me]=(U=257*he[Y]^16843008*Y)<<24|U>>>8,x[Me]=U<<16|U>>>16,N[Me]=U<<8|U>>>24,T[Me]=U,V[Y]=(U=16843009*R^65537*le^257*Be^16843008*Me)<<24|U>>>8,B[Y]=U<<16|U>>>16,q[Y]=U<<8|U>>>24,de[Y]=U,Me?(Me=Be^he[he[he[R^Be]]],be^=he[he[be]]):Me=be=1}}();var se=[0,1,2,4,8,16,32,64,128,27,54],De=O.AES=F.extend({_doReset:function(){if(!this._nRounds||this._keyPriorReset!==this._key){for(var xe=this._keyPriorReset=this._key,Me=xe.words,be=xe.sigBytes/4,Be=4*((this._nRounds=be+6)+1),le=this._keySchedule=[],R=0;R<Be;R++)R<be?le[R]=Me[R]:(he=le[R-1],R%be?be>6&&R%be==4&&(he=w[he>>>24]<<24|w[he>>>16&255]<<16|w[he>>>8&255]<<8|w[255&he]):(he=w[(he=he<<8|he>>>24)>>>24]<<24|w[he>>>16&255]<<16|w[he>>>8&255]<<8|w[255&he],he^=se[R/be|0]<<24),le[R]=le[R-be]^he);for(var U=this._invKeySchedule=[],W=0;W<Be;W++){if(R=Be-W,W%4)var he=le[R];else he=le[R-4];U[W]=W<4||R<=4?he:V[w[he>>>24]]^B[w[he>>>16&255]]^q[w[he>>>8&255]]^de[w[255&he]]}}},encryptBlock:function(he,xe){this._doCryptBlock(he,xe,this._keySchedule,g,x,N,T,w)},decryptBlock:function(he,xe){var Me=he[xe+1];he[xe+1]=he[xe+3],he[xe+3]=Me,this._doCryptBlock(he,xe,this._invKeySchedule,V,B,q,de,y),Me=he[xe+1],he[xe+1]=he[xe+3],he[xe+3]=Me},_doCryptBlock:function(he,xe,Me,be,Y,Be,le,R){for(var U=this._nRounds,W=he[xe]^Me[0],oe=he[xe+1]^Me[1],ge=he[xe+2]^Me[2],Q=he[xe+3]^Me[3],ye=4,Le=1;Le<U;Le++){var Ye=be[W>>>24]^Y[oe>>>16&255]^Be[ge>>>8&255]^le[255&Q]^Me[ye++],we=be[oe>>>24]^Y[ge>>>16&255]^Be[Q>>>8&255]^le[255&W]^Me[ye++],Ge=be[ge>>>24]^Y[Q>>>16&255]^Be[W>>>8&255]^le[255&oe]^Me[ye++],ke=be[Q>>>24]^Y[W>>>16&255]^Be[oe>>>8&255]^le[255&ge]^Me[ye++];W=Ye,oe=we,ge=Ge,Q=ke}Ye=(R[W>>>24]<<24|R[oe>>>16&255]<<16|R[ge>>>8&255]<<8|R[255&Q])^Me[ye++],we=(R[oe>>>24]<<24|R[ge>>>16&255]<<16|R[Q>>>8&255]<<8|R[255&W])^Me[ye++],Ge=(R[ge>>>24]<<24|R[Q>>>16&255]<<16|R[W>>>8&255]<<8|R[255&oe])^Me[ye++],ke=(R[Q>>>24]<<24|R[W>>>16&255]<<16|R[oe>>>8&255]<<8|R[255&ge])^Me[ye++],he[xe]=Ye,he[xe+1]=we,he[xe+2]=Ge,he[xe+3]=ke},keySize:8});b.AES=F._createHelper(De)}(),c.AES)},53057:function(Ze,ee,_){var b,M,F,O,w,y,g,N,V,B,de,se,De,xe,be,Be,le,U,W,c;Ze.exports=(c=_(67585),_(37865),void(c.lib.Cipher||(M=c,F=M.lib,O=F.Base,w=F.WordArray,y=F.BufferedBlockAlgorithm,g=M.enc,N=g.Base64,V=M.algo.EvpKDF,B=F.Cipher=y.extend({cfg:O.extend(),createEncryptor:function(oe,ge){return this.create(this._ENC_XFORM_MODE,oe,ge)},createDecryptor:function(oe,ge){return this.create(this._DEC_XFORM_MODE,oe,ge)},init:function(oe,ge,Q){this.cfg=this.cfg.extend(Q),this._xformMode=oe,this._key=ge,this.reset()},reset:function(){y.reset.call(this),this._doReset()},process:function(oe){return this._append(oe),this._process()},finalize:function(oe){return oe&&this._append(oe),this._doFinalize()},keySize:4,ivSize:4,_ENC_XFORM_MODE:1,_DEC_XFORM_MODE:2,_createHelper:function(){function oe(ge){return"string"==typeof ge?W:le}return function(ge){return{encrypt:function(Q,ye,Le){return oe(ye).encrypt(ge,Q,ye,Le)},decrypt:function(Q,ye,Le){return oe(ye).decrypt(ge,Q,ye,Le)}}}}()}),F.StreamCipher=B.extend({_doFinalize:function(){return this._process(!0)},blockSize:1}),de=M.mode={},se=F.BlockCipherMode=O.extend({createEncryptor:function(oe,ge){return this.Encryptor.create(oe,ge)},createDecryptor:function(oe,ge){return this.Decryptor.create(oe,ge)},init:function(oe,ge){this._cipher=oe,this._iv=ge}}),De=de.CBC=function(){var oe=se.extend();function ge(Q,ye,Le){var Ye,we=this._iv;we?(Ye=we,this._iv=b):Ye=this._prevBlock;for(var Ge=0;Ge<Le;Ge++)Q[ye+Ge]^=Ye[Ge]}return oe.Encryptor=oe.extend({processBlock:function(Q,ye){var Le=this._cipher,Ye=Le.blockSize;ge.call(this,Q,ye,Ye),Le.encryptBlock(Q,ye),this._prevBlock=Q.slice(ye,ye+Ye)}}),oe.Decryptor=oe.extend({processBlock:function(Q,ye){var Le=this._cipher,Ye=Le.blockSize,we=Q.slice(ye,ye+Ye);Le.decryptBlock(Q,ye),ge.call(this,Q,ye,Ye),this._prevBlock=we}}),oe}(),xe=(M.pad={}).Pkcs7={pad:function(oe,ge){for(var Q=4*ge,ye=Q-oe.sigBytes%Q,Le=ye<<24|ye<<16|ye<<8|ye,Ye=[],we=0;we<ye;we+=4)Ye.push(Le);var Ge=w.create(Ye,ye);oe.concat(Ge)},unpad:function(oe){oe.sigBytes-=255&oe.words[oe.sigBytes-1>>>2]}},F.BlockCipher=B.extend({cfg:B.cfg.extend({mode:De,padding:xe}),reset:function(){var oe;B.reset.call(this);var ge=this.cfg,Q=ge.iv,ye=ge.mode;this._xformMode==this._ENC_XFORM_MODE?oe=ye.createEncryptor:(oe=ye.createDecryptor,this._minBufferSize=1),this._mode&&this._mode.__creator==oe?this._mode.init(this,Q&&Q.words):(this._mode=oe.call(ye,this,Q&&Q.words),this._mode.__creator=oe)},_doProcessBlock:function(oe,ge){this._mode.processBlock(oe,ge)},_doFinalize:function(){var oe,ge=this.cfg.padding;return this._xformMode==this._ENC_XFORM_MODE?(ge.pad(this._data,this.blockSize),oe=this._process(!0)):(oe=this._process(!0),ge.unpad(oe)),oe},blockSize:4}),be=F.CipherParams=O.extend({init:function(oe){this.mixIn(oe)},toString:function(oe){return(oe||this.formatter).stringify(this)}}),Be=(M.format={}).OpenSSL={stringify:function(oe){var Q=oe.ciphertext,ye=oe.salt;return(ye?w.create([1398893684,1701076831]).concat(ye).concat(Q):Q).toString(N)},parse:function(oe){var ge,Q=N.parse(oe),ye=Q.words;return 1398893684==ye[0]&&1701076831==ye[1]&&(ge=w.create(ye.slice(2,4)),ye.splice(0,4),Q.sigBytes-=16),be.create({ciphertext:Q,salt:ge})}},le=F.SerializableCipher=O.extend({cfg:O.extend({format:Be}),encrypt:function(oe,ge,Q,ye){ye=this.cfg.extend(ye);var Le=oe.createEncryptor(Q,ye),Ye=Le.finalize(ge),we=Le.cfg;return be.create({ciphertext:Ye,key:Q,iv:we.iv,algorithm:oe,mode:we.mode,padding:we.padding,blockSize:oe.blockSize,formatter:ye.format})},decrypt:function(oe,ge,Q,ye){return ye=this.cfg.extend(ye),ge=this._parse(ge,ye.format),oe.createDecryptor(Q,ye).finalize(ge.ciphertext)},_parse:function(oe,ge){return"string"==typeof oe?ge.parse(oe,this):oe}}),U=(M.kdf={}).OpenSSL={execute:function(oe,ge,Q,ye){ye||(ye=w.random(8));var Le=V.create({keySize:ge+Q}).compute(oe,ye),Ye=w.create(Le.words.slice(ge),4*Q);return Le.sigBytes=4*ge,be.create({key:Le,iv:Ye,salt:ye})}},W=F.PasswordBasedCipher=le.extend({cfg:le.cfg.extend({kdf:U}),encrypt:function(oe,ge,Q,ye){var Le=(ye=this.cfg.extend(ye)).kdf.execute(Q,oe.keySize,oe.ivSize);ye.iv=Le.iv;var Ye=le.encrypt.call(this,oe,ge,Le.key,ye);return Ye.mixIn(Le),Ye},decrypt:function(oe,ge,Q,ye){ye=this.cfg.extend(ye),ge=this._parse(ge,ye.format);var Le=ye.kdf.execute(Q,oe.keySize,oe.ivSize,ge.salt);return ye.iv=Le.iv,le.decrypt.call(this,oe,ge,Le.key,ye)}}))))},67585:function(Ze,ee,_){var c;Ze.exports=(c=c||function(b,M){var F;if(typeof window<"u"&&window.crypto&&(F=window.crypto),!F&&typeof window<"u"&&window.msCrypto&&(F=window.msCrypto),!F&&typeof global<"u"&&global.crypto&&(F=global.crypto),!F)try{F=_(42480)}catch{}var O=function(){if(F){if("function"==typeof F.getRandomValues)try{return F.getRandomValues(new Uint32Array(1))[0]}catch{}if("function"==typeof F.randomBytes)try{return F.randomBytes(4).readInt32LE()}catch{}}throw new Error("Native crypto module could not be used to get secure random number.")},w=Object.create||function(){function he(){}return function(xe){var Me;return he.prototype=xe,Me=new he,he.prototype=null,Me}}(),y={},g=y.lib={},x=g.Base={extend:function(he){var xe=w(this);return he&&xe.mixIn(he),(!xe.hasOwnProperty("init")||this.init===xe.init)&&(xe.init=function(){xe.$super.init.apply(this,arguments)}),xe.init.prototype=xe,xe.$super=this,xe},create:function(){var he=this.extend();return he.init.apply(he,arguments),he},init:function(){},mixIn:function(he){for(var xe in he)he.hasOwnProperty(xe)&&(this[xe]=he[xe]);he.hasOwnProperty("toString")&&(this.toString=he.toString)},clone:function(){return this.init.prototype.extend(this)}},N=g.WordArray=x.extend({init:function(he,xe){he=this.words=he||[],this.sigBytes=null!=xe?xe:4*he.length},toString:function(he){return(he||V).stringify(this)},concat:function(he){var xe=this.words,Me=he.words,be=this.sigBytes,Y=he.sigBytes;if(this.clamp(),be%4)for(var Be=0;Be<Y;Be++)xe[be+Be>>>2]|=(Me[Be>>>2]>>>24-Be%4*8&255)<<24-(be+Be)%4*8;else for(Be=0;Be<Y;Be+=4)xe[be+Be>>>2]=Me[Be>>>2];return this.sigBytes+=Y,this},clamp:function(){var he=this.words,xe=this.sigBytes;he[xe>>>2]&=4294967295<<32-xe%4*8,he.length=b.ceil(xe/4)},clone:function(){var he=x.clone.call(this);return he.words=this.words.slice(0),he},random:function(he){for(var xe=[],Me=0;Me<he;Me+=4)xe.push(O());return new N.init(xe,he)}}),T=y.enc={},V=T.Hex={stringify:function(he){for(var xe=he.words,Me=he.sigBytes,be=[],Y=0;Y<Me;Y++){var Be=xe[Y>>>2]>>>24-Y%4*8&255;be.push((Be>>>4).toString(16)),be.push((15&Be).toString(16))}return be.join("")},parse:function(he){for(var xe=he.length,Me=[],be=0;be<xe;be+=2)Me[be>>>3]|=parseInt(he.substr(be,2),16)<<24-be%8*4;return new N.init(Me,xe/2)}},B=T.Latin1={stringify:function(he){for(var xe=he.words,Me=he.sigBytes,be=[],Y=0;Y<Me;Y++)be.push(String.fromCharCode(xe[Y>>>2]>>>24-Y%4*8&255));return be.join("")},parse:function(he){for(var xe=he.length,Me=[],be=0;be<xe;be++)Me[be>>>2]|=(255&he.charCodeAt(be))<<24-be%4*8;return new N.init(Me,xe)}},q=T.Utf8={stringify:function(he){try{return decodeURIComponent(escape(B.stringify(he)))}catch{throw new Error("Malformed UTF-8 data")}},parse:function(he){return B.parse(unescape(encodeURIComponent(he)))}},de=g.BufferedBlockAlgorithm=x.extend({reset:function(){this._data=new N.init,this._nDataBytes=0},_append:function(he){"string"==typeof he&&(he=q.parse(he)),this._data.concat(he),this._nDataBytes+=he.sigBytes},_process:function(he){var xe,Me=this._data,be=Me.words,Y=Me.sigBytes,Be=this.blockSize,R=Y/(4*Be),U=(R=he?b.ceil(R):b.max((0|R)-this._minBufferSize,0))*Be,W=b.min(4*U,Y);if(U){for(var oe=0;oe<U;oe+=Be)this._doProcessBlock(be,oe);xe=be.splice(0,U),Me.sigBytes-=W}return new N.init(xe,W)},clone:function(){var he=x.clone.call(this);return he._data=this._data.clone(),he},_minBufferSize:0}),De=(g.Hasher=de.extend({cfg:x.extend(),init:function(he){this.cfg=this.cfg.extend(he),this.reset()},reset:function(){de.reset.call(this),this._doReset()},update:function(he){return this._append(he),this._process(),this},finalize:function(he){return he&&this._append(he),this._doFinalize()},blockSize:16,_createHelper:function(he){return function(xe,Me){return new he.init(Me).finalize(xe)}},_createHmacHelper:function(he){return function(xe,Me){return new De.HMAC.init(he,Me).finalize(xe)}}}),y.algo={});return y}(Math),c)},58319:function(Ze,ee,_){var c,F;Ze.exports=(c=_(67585),F=c.lib.WordArray,c.enc.Base64={stringify:function(g){var x=g.words,N=g.sigBytes,T=this._map;g.clamp();for(var V=[],B=0;B<N;B+=3)for(var De=(x[B>>>2]>>>24-B%4*8&255)<<16|(x[B+1>>>2]>>>24-(B+1)%4*8&255)<<8|x[B+2>>>2]>>>24-(B+2)%4*8&255,he=0;he<4&&B+.75*he<N;he++)V.push(T.charAt(De>>>6*(3-he)&63));var xe=T.charAt(64);if(xe)for(;V.length%4;)V.push(xe);return V.join("")},parse:function(g){var x=g.length,N=this._map,T=this._reverseMap;if(!T){T=this._reverseMap=[];for(var V=0;V<N.length;V++)T[N.charCodeAt(V)]=V}var B=N.charAt(64);if(B){var q=g.indexOf(B);-1!==q&&(x=q)}return function y(g,x,N){for(var T=[],V=0,B=0;B<x;B++)if(B%4){var q=N[g.charCodeAt(B-1)]<<B%4*2,de=N[g.charCodeAt(B)]>>>6-B%4*2;T[V>>>2]|=(q|de)<<24-V%4*8,V++}return F.create(T,V)}(g,x,T)},_map:"ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/="},c.enc.Base64)},79012:function(Ze,ee,_){var c;Ze.exports=(c=_(67585),function(){var F=c.lib.WordArray,O=c.enc;function y(g){return g<<8&4278255360|g>>>8&16711935}O.Utf16=O.Utf16BE={stringify:function(g){for(var x=g.words,N=g.sigBytes,T=[],V=0;V<N;V+=2)T.push(String.fromCharCode(x[V>>>2]>>>16-V%4*8&65535));return T.join("")},parse:function(g){for(var x=g.length,N=[],T=0;T<x;T++)N[T>>>1]|=g.charCodeAt(T)<<16-T%2*16;return F.create(N,2*x)}},O.Utf16LE={stringify:function(g){for(var x=g.words,N=g.sigBytes,T=[],V=0;V<N;V+=2){var B=y(x[V>>>2]>>>16-V%4*8&65535);T.push(String.fromCharCode(B))}return T.join("")},parse:function(g){for(var x=g.length,N=[],T=0;T<x;T++)N[T>>>1]|=y(g.charCodeAt(T)<<16-T%2*16);return F.create(N,2*x)}}}(),c.enc.Utf16)},37865:function(Ze,ee,_){var b,M,F,O,w,g,c;Ze.exports=(c=_(67585),_(75162),_(43764),O=(M=(b=c).lib).WordArray,g=(w=b.algo).EvpKDF=(F=M.Base).extend({cfg:F.extend({keySize:4,hasher:w.MD5,iterations:1}),init:function(x){this.cfg=this.cfg.extend(x)},compute:function(x,N){for(var T,V=this.cfg,B=V.hasher.create(),q=O.create(),de=q.words,se=V.keySize,De=V.iterations;de.length<se;){T&&B.update(T),T=B.update(x).finalize(N),B.reset();for(var he=1;he<De;he++)T=B.finalize(T),B.reset();q.concat(T)}return q.sigBytes=4*se,q}}),b.EvpKDF=function(x,N,T){return g.create(T).compute(x,N)},c.EvpKDF)},41847:function(Ze,ee,_){var c,O,y;Ze.exports=(c=_(67585),_(53057),O=c.lib.CipherParams,y=c.enc.Hex,c.format.Hex={stringify:function(N){return N.ciphertext.toString(y)},parse:function(N){var T=y.parse(N);return O.create({ciphertext:T})}},c.format.Hex)},43764:function(Ze,ee,_){var c,w;Ze.exports=(c=_(67585),w=c.enc.Utf8,void(c.algo.HMAC=c.lib.Base.extend({init:function(x,N){x=this._hasher=new x.init,"string"==typeof N&&(N=w.parse(N));var T=x.blockSize,V=4*T;N.sigBytes>V&&(N=x.finalize(N)),N.clamp();for(var B=this._oKey=N.clone(),q=this._iKey=N.clone(),de=B.words,se=q.words,De=0;De<T;De++)de[De]^=1549556828,se[De]^=909522486;B.sigBytes=q.sigBytes=V,this.reset()},reset:function(){var x=this._hasher;x.reset(),x.update(this._iKey)},update:function(x){return this._hasher.update(x),this},finalize:function(x){var N=this._hasher,T=N.finalize(x);return N.reset(),N.finalize(this._oKey.clone().concat(T))}})))},7206:function(Ze,ee,_){var c;Ze.exports=(c=_(67585),_(70401),_(27412),_(79012),_(58319),_(9493),_(75162),_(31817),_(68769),_(83351),_(6787),_(21971),_(34973),_(43764),_(98812),_(37865),_(53057),_(4424),_(16635),_(53592),_(99354),_(77934),_(4413),_(64630),_(187),_(81691),_(63237),_(41847),_(77466),_(57243),_(10486),_(28182),_(73544),c)},27412:function(Ze,ee,_){var c;Ze.exports=(c=_(67585),function(){if("function"==typeof ArrayBuffer){var F=c.lib.WordArray,O=F.init,w=F.init=function(y){if(y instanceof ArrayBuffer&&(y=new Uint8Array(y)),(y instanceof Int8Array||typeof Uint8ClampedArray<"u"&&y instanceof Uint8ClampedArray||y instanceof Int16Array||y instanceof Uint16Array||y instanceof Int32Array||y instanceof Uint32Array||y instanceof Float32Array||y instanceof Float64Array)&&(y=new Uint8Array(y.buffer,y.byteOffset,y.byteLength)),y instanceof Uint8Array){for(var g=y.byteLength,x=[],N=0;N<g;N++)x[N>>>2]|=y[N]<<24-N%4*8;O.call(this,x,g)}else O.apply(this,arguments)};w.prototype=F}}(),c.lib.WordArray)},9493:function(Ze,ee,_){var c;Ze.exports=(c=_(67585),function(b){var M=c,F=M.lib,O=F.WordArray,w=F.Hasher,y=M.algo,g=[];!function(){for(var q=0;q<64;q++)g[q]=4294967296*b.abs(b.sin(q+1))|0}();var x=y.MD5=w.extend({_doReset:function(){this._hash=new O.init([1732584193,4023233417,2562383102,271733878])},_doProcessBlock:function(q,de){for(var se=0;se<16;se++){var De=de+se,he=q[De];q[De]=16711935&(he<<8|he>>>24)|4278255360&(he<<24|he>>>8)}var xe=this._hash.words,Me=q[de+0],be=q[de+1],Y=q[de+2],Be=q[de+3],le=q[de+4],R=q[de+5],U=q[de+6],W=q[de+7],oe=q[de+8],ge=q[de+9],Q=q[de+10],ye=q[de+11],Le=q[de+12],Ye=q[de+13],we=q[de+14],Ge=q[de+15],ke=xe[0],ve=xe[1],ze=xe[2],Ie=xe[3];ke=N(ke,ve,ze,Ie,Me,7,g[0]),Ie=N(Ie,ke,ve,ze,be,12,g[1]),ze=N(ze,Ie,ke,ve,Y,17,g[2]),ve=N(ve,ze,Ie,ke,Be,22,g[3]),ke=N(ke,ve,ze,Ie,le,7,g[4]),Ie=N(Ie,ke,ve,ze,R,12,g[5]),ze=N(ze,Ie,ke,ve,U,17,g[6]),ve=N(ve,ze,Ie,ke,W,22,g[7]),ke=N(ke,ve,ze,Ie,oe,7,g[8]),Ie=N(Ie,ke,ve,ze,ge,12,g[9]),ze=N(ze,Ie,ke,ve,Q,17,g[10]),ve=N(ve,ze,Ie,ke,ye,22,g[11]),ke=N(ke,ve,ze,Ie,Le,7,g[12]),Ie=N(Ie,ke,ve,ze,Ye,12,g[13]),ze=N(ze,Ie,ke,ve,we,17,g[14]),ke=T(ke,ve=N(ve,ze,Ie,ke,Ge,22,g[15]),ze,Ie,be,5,g[16]),Ie=T(Ie,ke,ve,ze,U,9,g[17]),ze=T(ze,Ie,ke,ve,ye,14,g[18]),ve=T(ve,ze,Ie,ke,Me,20,g[19]),ke=T(ke,ve,ze,Ie,R,5,g[20]),Ie=T(Ie,ke,ve,ze,Q,9,g[21]),ze=T(ze,Ie,ke,ve,Ge,14,g[22]),ve=T(ve,ze,Ie,ke,le,20,g[23]),ke=T(ke,ve,ze,Ie,ge,5,g[24]),Ie=T(Ie,ke,ve,ze,we,9,g[25]),ze=T(ze,Ie,ke,ve,Be,14,g[26]),ve=T(ve,ze,Ie,ke,oe,20,g[27]),ke=T(ke,ve,ze,Ie,Ye,5,g[28]),Ie=T(Ie,ke,ve,ze,Y,9,g[29]),ze=T(ze,Ie,ke,ve,W,14,g[30]),ke=V(ke,ve=T(ve,ze,Ie,ke,Le,20,g[31]),ze,Ie,R,4,g[32]),Ie=V(Ie,ke,ve,ze,oe,11,g[33]),ze=V(ze,Ie,ke,ve,ye,16,g[34]),ve=V(ve,ze,Ie,ke,we,23,g[35]),ke=V(ke,ve,ze,Ie,be,4,g[36]),Ie=V(Ie,ke,ve,ze,le,11,g[37]),ze=V(ze,Ie,ke,ve,W,16,g[38]),ve=V(ve,ze,Ie,ke,Q,23,g[39]),ke=V(ke,ve,ze,Ie,Ye,4,g[40]),Ie=V(Ie,ke,ve,ze,Me,11,g[41]),ze=V(ze,Ie,ke,ve,Be,16,g[42]),ve=V(ve,ze,Ie,ke,U,23,g[43]),ke=V(ke,ve,ze,Ie,ge,4,g[44]),Ie=V(Ie,ke,ve,ze,Le,11,g[45]),ze=V(ze,Ie,ke,ve,Ge,16,g[46]),ke=B(ke,ve=V(ve,ze,Ie,ke,Y,23,g[47]),ze,Ie,Me,6,g[48]),Ie=B(Ie,ke,ve,ze,W,10,g[49]),ze=B(ze,Ie,ke,ve,we,15,g[50]),ve=B(ve,ze,Ie,ke,R,21,g[51]),ke=B(ke,ve,ze,Ie,Le,6,g[52]),Ie=B(Ie,ke,ve,ze,Be,10,g[53]),ze=B(ze,Ie,ke,ve,Q,15,g[54]),ve=B(ve,ze,Ie,ke,be,21,g[55]),ke=B(ke,ve,ze,Ie,oe,6,g[56]),Ie=B(Ie,ke,ve,ze,Ge,10,g[57]),ze=B(ze,Ie,ke,ve,U,15,g[58]),ve=B(ve,ze,Ie,ke,Ye,21,g[59]),ke=B(ke,ve,ze,Ie,le,6,g[60]),Ie=B(Ie,ke,ve,ze,ye,10,g[61]),ze=B(ze,Ie,ke,ve,Y,15,g[62]),ve=B(ve,ze,Ie,ke,ge,21,g[63]),xe[0]=xe[0]+ke|0,xe[1]=xe[1]+ve|0,xe[2]=xe[2]+ze|0,xe[3]=xe[3]+Ie|0},_doFinalize:function(){var q=this._data,de=q.words,se=8*this._nDataBytes,De=8*q.sigBytes;de[De>>>5]|=128<<24-De%32;var he=b.floor(se/4294967296),xe=se;de[15+(De+64>>>9<<4)]=16711935&(he<<8|he>>>24)|4278255360&(he<<24|he>>>8),de[14+(De+64>>>9<<4)]=16711935&(xe<<8|xe>>>24)|4278255360&(xe<<24|xe>>>8),q.sigBytes=4*(de.length+1),this._process();for(var Me=this._hash,be=Me.words,Y=0;Y<4;Y++){var Be=be[Y];be[Y]=16711935&(Be<<8|Be>>>24)|4278255360&(Be<<24|Be>>>8)}return Me},clone:function(){var q=w.clone.call(this);return q._hash=this._hash.clone(),q}});function N(q,de,se,De,he,xe,Me){var be=q+(de&se|~de&De)+he+Me;return(be<<xe|be>>>32-xe)+de}function T(q,de,se,De,he,xe,Me){var be=q+(de&De|se&~De)+he+Me;return(be<<xe|be>>>32-xe)+de}function V(q,de,se,De,he,xe,Me){var be=q+(de^se^De)+he+Me;return(be<<xe|be>>>32-xe)+de}function B(q,de,se,De,he,xe,Me){var be=q+(se^(de|~De))+he+Me;return(be<<xe|be>>>32-xe)+de}M.MD5=w._createHelper(x),M.HmacMD5=w._createHmacHelper(x)}(Math),c.MD5)},4424:function(Ze,ee,_){var c;Ze.exports=(c=_(67585),_(53057),c.mode.CFB=function(){var b=c.lib.BlockCipherMode.extend();function M(F,O,w,y){var g,x=this._iv;x?(g=x.slice(0),this._iv=void 0):g=this._prevBlock,y.encryptBlock(g,0);for(var N=0;N<w;N++)F[O+N]^=g[N]}return b.Encryptor=b.extend({processBlock:function(F,O){var w=this._cipher,y=w.blockSize;M.call(this,F,O,y,w),this._prevBlock=F.slice(O,O+y)}}),b.Decryptor=b.extend({processBlock:function(F,O){var w=this._cipher,y=w.blockSize,g=F.slice(O,O+y);M.call(this,F,O,y,w),this._prevBlock=g}}),b}(),c.mode.CFB)},53592:function(Ze,ee,_){var c;Ze.exports=(c=_(67585),_(53057),c.mode.CTRGladman=function(){var b=c.lib.BlockCipherMode.extend();function M(w){if(255==(w>>24&255)){var y=w>>16&255,g=w>>8&255,x=255&w;255===y?(y=0,255===g?(g=0,255===x?x=0:++x):++g):++y,w=0,w+=y<<16,w+=g<<8,w+=x}else w+=1<<24;return w}var O=b.Encryptor=b.extend({processBlock:function(w,y){var g=this._cipher,x=g.blockSize,N=this._iv,T=this._counter;N&&(T=this._counter=N.slice(0),this._iv=void 0),function F(w){return 0===(w[0]=M(w[0]))&&(w[1]=M(w[1])),w}(T);var V=T.slice(0);g.encryptBlock(V,0);for(var B=0;B<x;B++)w[y+B]^=V[B]}});return b.Decryptor=O,b}(),c.mode.CTRGladman)},16635:function(Ze,ee,_){var b,M,c;Ze.exports=(c=_(67585),_(53057),c.mode.CTR=(M=(b=c.lib.BlockCipherMode.extend()).Encryptor=b.extend({processBlock:function(F,O){var w=this._cipher,y=w.blockSize,g=this._iv,x=this._counter;g&&(x=this._counter=g.slice(0),this._iv=void 0);var N=x.slice(0);w.encryptBlock(N,0),x[y-1]=x[y-1]+1|0;for(var T=0;T<y;T++)F[O+T]^=N[T]}}),b.Decryptor=M,b),c.mode.CTR)},77934:function(Ze,ee,_){var b,c;Ze.exports=(c=_(67585),_(53057),c.mode.ECB=((b=c.lib.BlockCipherMode.extend()).Encryptor=b.extend({processBlock:function(M,F){this._cipher.encryptBlock(M,F)}}),b.Decryptor=b.extend({processBlock:function(M,F){this._cipher.decryptBlock(M,F)}}),b),c.mode.ECB)},99354:function(Ze,ee,_){var b,M,c;Ze.exports=(c=_(67585),_(53057),c.mode.OFB=(M=(b=c.lib.BlockCipherMode.extend()).Encryptor=b.extend({processBlock:function(F,O){var w=this._cipher,y=w.blockSize,g=this._iv,x=this._keystream;g&&(x=this._keystream=g.slice(0),this._iv=void 0),w.encryptBlock(x,0);for(var N=0;N<y;N++)F[O+N]^=x[N]}}),b.Decryptor=M,b),c.mode.OFB)},4413:function(Ze,ee,_){var c;Ze.exports=(c=_(67585),_(53057),c.pad.AnsiX923={pad:function(b,M){var F=b.sigBytes,O=4*M,w=O-F%O,y=F+w-1;b.clamp(),b.words[y>>>2]|=w<<24-y%4*8,b.sigBytes+=w},unpad:function(b){b.sigBytes-=255&b.words[b.sigBytes-1>>>2]}},c.pad.Ansix923)},64630:function(Ze,ee,_){var c;Ze.exports=(c=_(67585),_(53057),c.pad.Iso10126={pad:function(b,M){var F=4*M,O=F-b.sigBytes%F;b.concat(c.lib.WordArray.random(O-1)).concat(c.lib.WordArray.create([O<<24],1))},unpad:function(b){b.sigBytes-=255&b.words[b.sigBytes-1>>>2]}},c.pad.Iso10126)},187:function(Ze,ee,_){var c;Ze.exports=(c=_(67585),_(53057),c.pad.Iso97971={pad:function(b,M){b.concat(c.lib.WordArray.create([2147483648],1)),c.pad.ZeroPadding.pad(b,M)},unpad:function(b){c.pad.ZeroPadding.unpad(b),b.sigBytes--}},c.pad.Iso97971)},63237:function(Ze,ee,_){var c;Ze.exports=(c=_(67585),_(53057),c.pad.NoPadding={pad:function(){},unpad:function(){}},c.pad.NoPadding)},81691:function(Ze,ee,_){var c;Ze.exports=(c=_(67585),_(53057),c.pad.ZeroPadding={pad:function(b,M){var F=4*M;b.clamp(),b.sigBytes+=F-(b.sigBytes%F||F)},unpad:function(b){var M=b.words,F=b.sigBytes-1;for(F=b.sigBytes-1;F>=0;F--)if(M[F>>>2]>>>24-F%4*8&255){b.sigBytes=F+1;break}}},c.pad.ZeroPadding)},98812:function(Ze,ee,_){var b,M,F,O,w,g,x,c;Ze.exports=(c=_(67585),_(75162),_(43764),O=(M=(b=c).lib).WordArray,g=(w=b.algo).HMAC,x=w.PBKDF2=(F=M.Base).extend({cfg:F.extend({keySize:4,hasher:w.SHA1,iterations:1}),init:function(N){this.cfg=this.cfg.extend(N)},compute:function(N,T){for(var V=this.cfg,B=g.create(V.hasher,N),q=O.create(),de=O.create([1]),se=q.words,De=de.words,he=V.keySize,xe=V.iterations;se.length<he;){var Me=B.update(T).finalize(de);B.reset();for(var be=Me.words,Y=be.length,Be=Me,le=1;le<xe;le++){Be=B.finalize(Be),B.reset();for(var R=Be.words,U=0;U<Y;U++)be[U]^=R[U]}q.concat(Me),De[0]++}return q.sigBytes=4*he,q}}),b.PBKDF2=function(N,T,V){return x.create(V).compute(N,T)},c.PBKDF2)},73544:function(Ze,ee,_){var c;Ze.exports=(c=_(67585),_(58319),_(9493),_(37865),_(53057),function(){var b=c,F=b.lib.StreamCipher,w=[],y=[],g=[],x=b.algo.RabbitLegacy=F.extend({_doReset:function(){var T=this._key.words,V=this.cfg.iv,B=this._X=[T[0],T[3]<<16|T[2]>>>16,T[1],T[0]<<16|T[3]>>>16,T[2],T[1]<<16|T[0]>>>16,T[3],T[2]<<16|T[1]>>>16],q=this._C=[T[2]<<16|T[2]>>>16,4294901760&T[0]|65535&T[1],T[3]<<16|T[3]>>>16,4294901760&T[1]|65535&T[2],T[0]<<16|T[0]>>>16,4294901760&T[2]|65535&T[3],T[1]<<16|T[1]>>>16,4294901760&T[3]|65535&T[0]];this._b=0;for(var de=0;de<4;de++)N.call(this);for(de=0;de<8;de++)q[de]^=B[de+4&7];if(V){var se=V.words,De=se[0],he=se[1],xe=16711935&(De<<8|De>>>24)|4278255360&(De<<24|De>>>8),Me=16711935&(he<<8|he>>>24)|4278255360&(he<<24|he>>>8),be=xe>>>16|4294901760&Me,Y=Me<<16|65535&xe;for(q[0]^=xe,q[1]^=be,q[2]^=Me,q[3]^=Y,q[4]^=xe,q[5]^=be,q[6]^=Me,q[7]^=Y,de=0;de<4;de++)N.call(this)}},_doProcessBlock:function(T,V){var B=this._X;N.call(this),w[0]=B[0]^B[5]>>>16^B[3]<<16,w[1]=B[2]^B[7]>>>16^B[5]<<16,w[2]=B[4]^B[1]>>>16^B[7]<<16,w[3]=B[6]^B[3]>>>16^B[1]<<16;for(var q=0;q<4;q++)w[q]=16711935&(w[q]<<8|w[q]>>>24)|4278255360&(w[q]<<24|w[q]>>>8),T[V+q]^=w[q]},blockSize:4,ivSize:2});function N(){for(var T=this._X,V=this._C,B=0;B<8;B++)y[B]=V[B];for(V[0]=V[0]+1295307597+this._b|0,V[1]=V[1]+3545052371+(V[0]>>>0<y[0]>>>0?1:0)|0,V[2]=V[2]+886263092+(V[1]>>>0<y[1]>>>0?1:0)|0,V[3]=V[3]+1295307597+(V[2]>>>0<y[2]>>>0?1:0)|0,V[4]=V[4]+3545052371+(V[3]>>>0<y[3]>>>0?1:0)|0,V[5]=V[5]+886263092+(V[4]>>>0<y[4]>>>0?1:0)|0,V[6]=V[6]+1295307597+(V[5]>>>0<y[5]>>>0?1:0)|0,V[7]=V[7]+3545052371+(V[6]>>>0<y[6]>>>0?1:0)|0,this._b=V[7]>>>0<y[7]>>>0?1:0,B=0;B<8;B++){var q=T[B]+V[B],de=65535&q,se=q>>>16;g[B]=((de*de>>>17)+de*se>>>15)+se*se^((4294901760&q)*q|0)+((65535&q)*q|0)}T[0]=g[0]+(g[7]<<16|g[7]>>>16)+(g[6]<<16|g[6]>>>16)|0,T[1]=g[1]+(g[0]<<8|g[0]>>>24)+g[7]|0,T[2]=g[2]+(g[1]<<16|g[1]>>>16)+(g[0]<<16|g[0]>>>16)|0,T[3]=g[3]+(g[2]<<8|g[2]>>>24)+g[1]|0,T[4]=g[4]+(g[3]<<16|g[3]>>>16)+(g[2]<<16|g[2]>>>16)|0,T[5]=g[5]+(g[4]<<8|g[4]>>>24)+g[3]|0,T[6]=g[6]+(g[5]<<16|g[5]>>>16)+(g[4]<<16|g[4]>>>16)|0,T[7]=g[7]+(g[6]<<8|g[6]>>>24)+g[5]|0}b.RabbitLegacy=F._createHelper(x)}(),c.RabbitLegacy)},28182:function(Ze,ee,_){var c;Ze.exports=(c=_(67585),_(58319),_(9493),_(37865),_(53057),function(){var b=c,F=b.lib.StreamCipher,w=[],y=[],g=[],x=b.algo.Rabbit=F.extend({_doReset:function(){for(var T=this._key.words,V=this.cfg.iv,B=0;B<4;B++)T[B]=16711935&(T[B]<<8|T[B]>>>24)|4278255360&(T[B]<<24|T[B]>>>8);var q=this._X=[T[0],T[3]<<16|T[2]>>>16,T[1],T[0]<<16|T[3]>>>16,T[2],T[1]<<16|T[0]>>>16,T[3],T[2]<<16|T[1]>>>16],de=this._C=[T[2]<<16|T[2]>>>16,4294901760&T[0]|65535&T[1],T[3]<<16|T[3]>>>16,4294901760&T[1]|65535&T[2],T[0]<<16|T[0]>>>16,4294901760&T[2]|65535&T[3],T[1]<<16|T[1]>>>16,4294901760&T[3]|65535&T[0]];for(this._b=0,B=0;B<4;B++)N.call(this);for(B=0;B<8;B++)de[B]^=q[B+4&7];if(V){var se=V.words,De=se[0],he=se[1],xe=16711935&(De<<8|De>>>24)|4278255360&(De<<24|De>>>8),Me=16711935&(he<<8|he>>>24)|4278255360&(he<<24|he>>>8),be=xe>>>16|4294901760&Me,Y=Me<<16|65535&xe;for(de[0]^=xe,de[1]^=be,de[2]^=Me,de[3]^=Y,de[4]^=xe,de[5]^=be,de[6]^=Me,de[7]^=Y,B=0;B<4;B++)N.call(this)}},_doProcessBlock:function(T,V){var B=this._X;N.call(this),w[0]=B[0]^B[5]>>>16^B[3]<<16,w[1]=B[2]^B[7]>>>16^B[5]<<16,w[2]=B[4]^B[1]>>>16^B[7]<<16,w[3]=B[6]^B[3]>>>16^B[1]<<16;for(var q=0;q<4;q++)w[q]=16711935&(w[q]<<8|w[q]>>>24)|4278255360&(w[q]<<24|w[q]>>>8),T[V+q]^=w[q]},blockSize:4,ivSize:2});function N(){for(var T=this._X,V=this._C,B=0;B<8;B++)y[B]=V[B];for(V[0]=V[0]+1295307597+this._b|0,V[1]=V[1]+3545052371+(V[0]>>>0<y[0]>>>0?1:0)|0,V[2]=V[2]+886263092+(V[1]>>>0<y[1]>>>0?1:0)|0,V[3]=V[3]+1295307597+(V[2]>>>0<y[2]>>>0?1:0)|0,V[4]=V[4]+3545052371+(V[3]>>>0<y[3]>>>0?1:0)|0,V[5]=V[5]+886263092+(V[4]>>>0<y[4]>>>0?1:0)|0,V[6]=V[6]+1295307597+(V[5]>>>0<y[5]>>>0?1:0)|0,V[7]=V[7]+3545052371+(V[6]>>>0<y[6]>>>0?1:0)|0,this._b=V[7]>>>0<y[7]>>>0?1:0,B=0;B<8;B++){var q=T[B]+V[B],de=65535&q,se=q>>>16;g[B]=((de*de>>>17)+de*se>>>15)+se*se^((4294901760&q)*q|0)+((65535&q)*q|0)}T[0]=g[0]+(g[7]<<16|g[7]>>>16)+(g[6]<<16|g[6]>>>16)|0,T[1]=g[1]+(g[0]<<8|g[0]>>>24)+g[7]|0,T[2]=g[2]+(g[1]<<16|g[1]>>>16)+(g[0]<<16|g[0]>>>16)|0,T[3]=g[3]+(g[2]<<8|g[2]>>>24)+g[1]|0,T[4]=g[4]+(g[3]<<16|g[3]>>>16)+(g[2]<<16|g[2]>>>16)|0,T[5]=g[5]+(g[4]<<8|g[4]>>>24)+g[3]|0,T[6]=g[6]+(g[5]<<16|g[5]>>>16)+(g[4]<<16|g[4]>>>16)|0,T[7]=g[7]+(g[6]<<8|g[6]>>>24)+g[5]|0}b.Rabbit=F._createHelper(x)}(),c.Rabbit)},10486:function(Ze,ee,_){var c;Ze.exports=(c=_(67585),_(58319),_(9493),_(37865),_(53057),function(){var b=c,F=b.lib.StreamCipher,O=b.algo,w=O.RC4=F.extend({_doReset:function(){for(var x=this._key,N=x.words,T=x.sigBytes,V=this._S=[],B=0;B<256;B++)V[B]=B;B=0;for(var q=0;B<256;B++){var de=B%T,De=V[B];V[B]=V[q=(q+V[B]+(N[de>>>2]>>>24-de%4*8&255))%256],V[q]=De}this._i=this._j=0},_doProcessBlock:function(x,N){x[N]^=y.call(this)},keySize:8,ivSize:0});function y(){for(var x=this._S,N=this._i,T=this._j,V=0,B=0;B<4;B++){var q=x[N=(N+1)%256];x[N]=x[T=(T+x[N])%256],x[T]=q,V|=x[(x[N]+x[T])%256]<<24-8*B}return this._i=N,this._j=T,V}b.RC4=F._createHelper(w);var g=O.RC4Drop=w.extend({cfg:w.cfg.extend({drop:192}),_doReset:function(){w._doReset.call(this);for(var x=this.cfg.drop;x>0;x--)y.call(this)}});b.RC4Drop=F._createHelper(g)}(),c.RC4)},34973:function(Ze,ee,_){var c;Ze.exports=(c=_(67585),function(b){var M=c,F=M.lib,O=F.WordArray,w=F.Hasher,y=M.algo,g=O.create([0,1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,7,4,13,1,10,6,15,3,12,0,9,5,2,14,11,8,3,10,14,4,9,15,8,1,2,7,0,6,13,11,5,12,1,9,11,10,0,8,12,4,13,3,7,15,14,5,6,2,4,0,5,9,7,12,2,10,14,1,3,8,11,6,15,13]),x=O.create([5,14,7,0,9,2,11,4,13,6,15,8,1,10,3,12,6,11,3,7,0,13,5,10,14,15,8,12,4,9,1,2,15,5,1,3,7,14,6,9,11,8,12,2,10,0,4,13,8,6,4,1,3,11,15,0,5,12,2,13,9,7,10,14,12,15,10,4,1,5,8,7,6,2,13,14,0,3,9,11]),N=O.create([11,14,15,12,5,8,7,9,11,13,14,15,6,7,9,8,7,6,8,13,11,9,7,15,7,12,15,9,11,7,13,12,11,13,6,7,14,9,13,15,14,8,13,6,5,12,7,5,11,12,14,15,14,15,9,8,9,14,5,6,8,6,5,12,9,15,5,11,6,8,13,12,5,12,13,14,11,8,5,6]),T=O.create([8,9,9,11,13,15,15,5,7,7,8,11,14,14,12,6,9,13,15,7,12,8,9,11,7,7,12,7,6,15,13,11,9,7,15,11,8,6,6,14,12,13,5,14,13,13,7,5,15,5,8,11,14,14,6,14,6,9,12,9,12,5,15,8,8,5,12,9,12,5,14,6,8,13,6,5,15,13,11,11]),V=O.create([0,1518500249,1859775393,2400959708,2840853838]),B=O.create([1352829926,1548603684,1836072691,2053994217,0]),q=y.RIPEMD160=w.extend({_doReset:function(){this._hash=O.create([1732584193,4023233417,2562383102,271733878,3285377520])},_doProcessBlock:function(be,Y){for(var Be=0;Be<16;Be++){var le=Y+Be,R=be[le];be[le]=16711935&(R<<8|R>>>24)|4278255360&(R<<24|R>>>8)}var Ye,we,Ge,ke,ve,ze,Ie,ft,pt,mt,yt,U=this._hash.words,W=V.words,oe=B.words,ge=g.words,Q=x.words,ye=N.words,Le=T.words;for(ze=Ye=U[0],Ie=we=U[1],ft=Ge=U[2],pt=ke=U[3],mt=ve=U[4],Be=0;Be<80;Be+=1)yt=Ye+be[Y+ge[Be]]|0,yt+=Be<16?de(we,Ge,ke)+W[0]:Be<32?se(we,Ge,ke)+W[1]:Be<48?De(we,Ge,ke)+W[2]:Be<64?he(we,Ge,ke)+W[3]:xe(we,Ge,ke)+W[4],yt=(yt=Me(yt|=0,ye[Be]))+ve|0,Ye=ve,ve=ke,ke=Me(Ge,10),Ge=we,we=yt,yt=ze+be[Y+Q[Be]]|0,yt+=Be<16?xe(Ie,ft,pt)+oe[0]:Be<32?he(Ie,ft,pt)+oe[1]:Be<48?De(Ie,ft,pt)+oe[2]:Be<64?se(Ie,ft,pt)+oe[3]:de(Ie,ft,pt)+oe[4],yt=(yt=Me(yt|=0,Le[Be]))+mt|0,ze=mt,mt=pt,pt=Me(ft,10),ft=Ie,Ie=yt;yt=U[1]+Ge+pt|0,U[1]=U[2]+ke+mt|0,U[2]=U[3]+ve+ze|0,U[3]=U[4]+Ye+Ie|0,U[4]=U[0]+we+ft|0,U[0]=yt},_doFinalize:function(){var be=this._data,Y=be.words,Be=8*this._nDataBytes,le=8*be.sigBytes;Y[le>>>5]|=128<<24-le%32,Y[14+(le+64>>>9<<4)]=16711935&(Be<<8|Be>>>24)|4278255360&(Be<<24|Be>>>8),be.sigBytes=4*(Y.length+1),this._process();for(var R=this._hash,U=R.words,W=0;W<5;W++){var oe=U[W];U[W]=16711935&(oe<<8|oe>>>24)|4278255360&(oe<<24|oe>>>8)}return R},clone:function(){var be=w.clone.call(this);return be._hash=this._hash.clone(),be}});function de(be,Y,Be){return be^Y^Be}function se(be,Y,Be){return be&Y|~be&Be}function De(be,Y,Be){return(be|~Y)^Be}function he(be,Y,Be){return be&Be|Y&~Be}function xe(be,Y,Be){return be^(Y|~Be)}function Me(be,Y){return be<<Y|be>>>32-Y}M.RIPEMD160=w._createHelper(q),M.HmacRIPEMD160=w._createHmacHelper(q)}(Math),c.RIPEMD160)},75162:function(Ze,ee,_){var b,M,F,O,y,g,c;Ze.exports=(c=_(67585),F=(M=(b=c).lib).WordArray,y=[],g=b.algo.SHA1=(O=M.Hasher).extend({_doReset:function(){this._hash=new F.init([1732584193,4023233417,2562383102,271733878,3285377520])},_doProcessBlock:function(x,N){for(var T=this._hash.words,V=T[0],B=T[1],q=T[2],de=T[3],se=T[4],De=0;De<80;De++){if(De<16)y[De]=0|x[N+De];else{var he=y[De-3]^y[De-8]^y[De-14]^y[De-16];y[De]=he<<1|he>>>31}var xe=(V<<5|V>>>27)+se+y[De];xe+=De<20?1518500249+(B&q|~B&de):De<40?1859775393+(B^q^de):De<60?(B&q|B&de|q&de)-1894007588:(B^q^de)-899497514,se=de,de=q,q=B<<30|B>>>2,B=V,V=xe}T[0]=T[0]+V|0,T[1]=T[1]+B|0,T[2]=T[2]+q|0,T[3]=T[3]+de|0,T[4]=T[4]+se|0},_doFinalize:function(){var x=this._data,N=x.words,T=8*this._nDataBytes,V=8*x.sigBytes;return N[V>>>5]|=128<<24-V%32,N[14+(V+64>>>9<<4)]=Math.floor(T/4294967296),N[15+(V+64>>>9<<4)]=T,x.sigBytes=4*N.length,this._process(),this._hash},clone:function(){var x=O.clone.call(this);return x._hash=this._hash.clone(),x}}),b.SHA1=O._createHelper(g),b.HmacSHA1=O._createHmacHelper(g),c.SHA1)},68769:function(Ze,ee,_){var b,F,O,w,y,c;Ze.exports=(c=_(67585),_(31817),F=(b=c).lib.WordArray,y=(O=b.algo).SHA224=(w=O.SHA256).extend({_doReset:function(){this._hash=new F.init([3238371032,914150663,812702999,4144912697,4290775857,1750603025,1694076839,3204075428])},_doFinalize:function(){var g=w._doFinalize.call(this);return g.sigBytes-=4,g}}),b.SHA224=w._createHelper(y),b.HmacSHA224=w._createHmacHelper(y),c.SHA224)},31817:function(Ze,ee,_){var c;Ze.exports=(c=_(67585),function(b){var M=c,F=M.lib,O=F.WordArray,w=F.Hasher,y=M.algo,g=[],x=[];!function(){function V(se){for(var De=b.sqrt(se),he=2;he<=De;he++)if(!(se%he))return!1;return!0}function B(se){return 4294967296*(se-(0|se))|0}for(var q=2,de=0;de<64;)V(q)&&(de<8&&(g[de]=B(b.pow(q,.5))),x[de]=B(b.pow(q,1/3)),de++),q++}();var N=[],T=y.SHA256=w.extend({_doReset:function(){this._hash=new O.init(g.slice(0))},_doProcessBlock:function(V,B){for(var q=this._hash.words,de=q[0],se=q[1],De=q[2],he=q[3],xe=q[4],Me=q[5],be=q[6],Y=q[7],Be=0;Be<64;Be++){if(Be<16)N[Be]=0|V[B+Be];else{var le=N[Be-15],U=N[Be-2];N[Be]=((le<<25|le>>>7)^(le<<14|le>>>18)^le>>>3)+N[Be-7]+((U<<15|U>>>17)^(U<<13|U>>>19)^U>>>10)+N[Be-16]}var ge=de&se^de&De^se&De,Le=Y+((xe<<26|xe>>>6)^(xe<<21|xe>>>11)^(xe<<7|xe>>>25))+(xe&Me^~xe&be)+x[Be]+N[Be];Y=be,be=Me,Me=xe,xe=he+Le|0,he=De,De=se,se=de,de=Le+(((de<<30|de>>>2)^(de<<19|de>>>13)^(de<<10|de>>>22))+ge)|0}q[0]=q[0]+de|0,q[1]=q[1]+se|0,q[2]=q[2]+De|0,q[3]=q[3]+he|0,q[4]=q[4]+xe|0,q[5]=q[5]+Me|0,q[6]=q[6]+be|0,q[7]=q[7]+Y|0},_doFinalize:function(){var V=this._data,B=V.words,q=8*this._nDataBytes,de=8*V.sigBytes;return B[de>>>5]|=128<<24-de%32,B[14+(de+64>>>9<<4)]=b.floor(q/4294967296),B[15+(de+64>>>9<<4)]=q,V.sigBytes=4*B.length,this._process(),this._hash},clone:function(){var V=w.clone.call(this);return V._hash=this._hash.clone(),V}});M.SHA256=w._createHelper(T),M.HmacSHA256=w._createHmacHelper(T)}(Math),c.SHA256)},21971:function(Ze,ee,_){var c;Ze.exports=(c=_(67585),_(70401),function(b){var M=c,F=M.lib,O=F.WordArray,w=F.Hasher,g=M.x64.Word,x=M.algo,N=[],T=[],V=[];!function(){for(var de=1,se=0,De=0;De<24;De++){N[de+5*se]=(De+1)*(De+2)/2%64;var xe=(2*de+3*se)%5;de=se%5,se=xe}for(de=0;de<5;de++)for(se=0;se<5;se++)T[de+5*se]=se+(2*de+3*se)%5*5;for(var Me=1,be=0;be<24;be++){for(var Y=0,Be=0,le=0;le<7;le++){if(1&Me){var R=(1<<le)-1;R<32?Be^=1<<R:Y^=1<<R-32}128&Me?Me=Me<<1^113:Me<<=1}V[be]=g.create(Y,Be)}}();var B=[];!function(){for(var de=0;de<25;de++)B[de]=g.create()}();var q=x.SHA3=w.extend({cfg:w.cfg.extend({outputLength:512}),_doReset:function(){for(var de=this._state=[],se=0;se<25;se++)de[se]=new g.init;this.blockSize=(1600-2*this.cfg.outputLength)/32},_doProcessBlock:function(de,se){for(var De=this._state,he=this.blockSize/2,xe=0;xe<he;xe++){var Me=de[se+2*xe],be=de[se+2*xe+1];Me=16711935&(Me<<8|Me>>>24)|4278255360&(Me<<24|Me>>>8),(Y=De[xe]).high^=be=16711935&(be<<8|be>>>24)|4278255360&(be<<24|be>>>8),Y.low^=Me}for(var Be=0;Be<24;Be++){for(var le=0;le<5;le++){for(var R=0,U=0,W=0;W<5;W++)R^=(Y=De[le+5*W]).high,U^=Y.low;var oe=B[le];oe.high=R,oe.low=U}for(le=0;le<5;le++){var ge=B[(le+4)%5],Q=B[(le+1)%5],ye=Q.high,Le=Q.low;for(R=ge.high^(ye<<1|Le>>>31),U=ge.low^(Le<<1|ye>>>31),W=0;W<5;W++)(Y=De[le+5*W]).high^=R,Y.low^=U}for(var Ye=1;Ye<25;Ye++){var we=(Y=De[Ye]).high,Ge=Y.low,ke=N[Ye];ke<32?(R=we<<ke|Ge>>>32-ke,U=Ge<<ke|we>>>32-ke):(R=Ge<<ke-32|we>>>64-ke,U=we<<ke-32|Ge>>>64-ke);var ve=B[T[Ye]];ve.high=R,ve.low=U}var ze=B[0],Ie=De[0];for(ze.high=Ie.high,ze.low=Ie.low,le=0;le<5;le++)for(W=0;W<5;W++){var ft=B[Ye=le+5*W],pt=B[(le+1)%5+5*W],mt=B[(le+2)%5+5*W];(Y=De[Ye]).high=ft.high^~pt.high&mt.high,Y.low=ft.low^~pt.low&mt.low}var Y,yt=V[Be];(Y=De[0]).high^=yt.high,Y.low^=yt.low}},_doFinalize:function(){var de=this._data,se=de.words,he=8*de.sigBytes,xe=32*this.blockSize;se[he>>>5]|=1<<24-he%32,se[(b.ceil((he+1)/xe)*xe>>>5)-1]|=128,de.sigBytes=4*se.length,this._process();for(var Me=this._state,be=this.cfg.outputLength/8,Y=be/8,Be=[],le=0;le<Y;le++){var R=Me[le],U=R.high,W=R.low;U=16711935&(U<<8|U>>>24)|4278255360&(U<<24|U>>>8),Be.push(W=16711935&(W<<8|W>>>24)|4278255360&(W<<24|W>>>8)),Be.push(U)}return new O.init(Be,be)},clone:function(){for(var de=w.clone.call(this),se=de._state=this._state.slice(0),De=0;De<25;De++)se[De]=se[De].clone();return de}});M.SHA3=w._createHelper(q),M.HmacSHA3=w._createHmacHelper(q)}(Math),c.SHA3)},6787:function(Ze,ee,_){var b,M,F,O,w,y,g,c;Ze.exports=(c=_(67585),_(70401),_(83351),F=(M=(b=c).x64).Word,O=M.WordArray,g=(w=b.algo).SHA384=(y=w.SHA512).extend({_doReset:function(){this._hash=new O.init([new F.init(3418070365,3238371032),new F.init(1654270250,914150663),new F.init(2438529370,812702999),new F.init(355462360,4144912697),new F.init(1731405415,4290775857),new F.init(2394180231,1750603025),new F.init(3675008525,1694076839),new F.init(1203062813,3204075428)])},_doFinalize:function(){var x=y._doFinalize.call(this);return x.sigBytes-=16,x}}),b.SHA384=y._createHelper(g),b.HmacSHA384=y._createHmacHelper(g),c.SHA384)},83351:function(Ze,ee,_){var c;Ze.exports=(c=_(67585),_(70401),function(){var b=c,F=b.lib.Hasher,O=b.x64,w=O.Word,y=O.WordArray,g=b.algo;function x(){return w.create.apply(w,arguments)}var N=[x(1116352408,3609767458),x(1899447441,602891725),x(3049323471,3964484399),x(3921009573,2173295548),x(961987163,4081628472),x(1508970993,3053834265),x(2453635748,2937671579),x(2870763221,3664609560),x(3624381080,2734883394),x(310598401,1164996542),x(607225278,1323610764),x(1426881987,3590304994),x(1925078388,4068182383),x(2162078206,991336113),x(2614888103,633803317),x(3248222580,3479774868),x(3835390401,2666613458),x(4022224774,944711139),x(264347078,2341262773),x(604807628,2007800933),x(770255983,1495990901),x(1249150122,1856431235),x(1555081692,3175218132),x(1996064986,2198950837),x(2554220882,3999719339),x(2821834349,766784016),x(2952996808,2566594879),x(3210313671,3203337956),x(3336571891,1034457026),x(3584528711,2466948901),x(113926993,3758326383),x(338241895,168717936),x(666307205,1188179964),x(773529912,1546045734),x(1294757372,1522805485),x(1396182291,2643833823),x(1695183700,2343527390),x(1986661051,1014477480),x(2177026350,1206759142),x(2456956037,344077627),x(2730485921,1290863460),x(2820302411,3158454273),x(3259730800,3505952657),x(3345764771,106217008),x(3516065817,3606008344),x(3600352804,1432725776),x(4094571909,1467031594),x(275423344,851169720),x(430227734,3100823752),x(506948616,1363258195),x(659060556,3750685593),x(883997877,3785050280),x(958139571,3318307427),x(1322822218,3812723403),x(1537002063,2003034995),x(1747873779,3602036899),x(1955562222,1575990012),x(2024104815,1125592928),x(2227730452,2716904306),x(2361852424,442776044),x(2428436474,593698344),x(2756734187,3733110249),x(3204031479,2999351573),x(3329325298,3815920427),x(3391569614,3928383900),x(3515267271,566280711),x(3940187606,3454069534),x(4118630271,4000239992),x(116418474,1914138554),x(174292421,2731055270),x(289380356,3203993006),x(460393269,320620315),x(685471733,587496836),x(852142971,1086792851),x(1017036298,365543100),x(1126000580,2618297676),x(1288033470,3409855158),x(1501505948,4234509866),x(1607167915,987167468),x(1816402316,1246189591)],T=[];!function(){for(var B=0;B<80;B++)T[B]=x()}();var V=g.SHA512=F.extend({_doReset:function(){this._hash=new y.init([new w.init(1779033703,4089235720),new w.init(3144134277,2227873595),new w.init(1013904242,4271175723),new w.init(2773480762,1595750129),new w.init(1359893119,2917565137),new w.init(2600822924,725511199),new w.init(528734635,4215389547),new w.init(1541459225,327033209)])},_doProcessBlock:function(B,q){for(var de=this._hash.words,se=de[0],De=de[1],he=de[2],xe=de[3],Me=de[4],be=de[5],Y=de[6],Be=de[7],le=se.high,R=se.low,U=De.high,W=De.low,oe=he.high,ge=he.low,Q=xe.high,ye=xe.low,Le=Me.high,Ye=Me.low,we=be.high,Ge=be.low,ke=Y.high,ve=Y.low,ze=Be.high,Ie=Be.low,ft=le,pt=R,mt=U,yt=W,Pt=oe,Zt=ge,nn=Q,qt=ye,Ut=Le,jt=Ye,hn=we,xn=Ge,Tn=ke,wn=ve,zt=ze,je=Ie,ne=0;ne<80;ne++){var re,$e,ot=T[ne];if(ne<16)$e=ot.high=0|B[q+2*ne],re=ot.low=0|B[q+2*ne+1];else{var vt=T[ne-15],lt=vt.high,Ht=vt.low,It=(Ht>>>1|lt<<31)^(Ht>>>8|lt<<24)^(Ht>>>7|lt<<25),pn=T[ne-2],cn=pn.high,ln=pn.low,Gn=(ln>>>19|cn<<13)^(ln<<3|cn>>>29)^(ln>>>6|cn<<26),wr=T[ne-7],Cn=T[ne-16],er=Cn.low;ot.high=$e=($e=($e=((lt>>>1|Ht<<31)^(lt>>>8|Ht<<24)^lt>>>7)+wr.high+((re=It+wr.low)>>>0<It>>>0?1:0))+((cn>>>19|ln<<13)^(cn<<3|ln>>>29)^cn>>>6)+((re+=Gn)>>>0<Gn>>>0?1:0))+Cn.high+((re+=er)>>>0<er>>>0?1:0),ot.low=re}var En,or=Ut&hn^~Ut&Tn,Vn=jt&xn^~jt&wn,ct=ft&mt^ft&Pt^mt&Pt,Et=(pt>>>28|ft<<4)^(pt<<30|ft>>>2)^(pt<<25|ft>>>7),vn=N[ne],rn=vn.low,Yn=zt+((Ut>>>14|jt<<18)^(Ut>>>18|jt<<14)^(Ut<<23|jt>>>9))+((En=je+((jt>>>14|Ut<<18)^(jt>>>18|Ut<<14)^(jt<<23|Ut>>>9)))>>>0<je>>>0?1:0),Pe=Et+(pt&yt^pt&Zt^yt&Zt);zt=Tn,je=wn,Tn=hn,wn=xn,hn=Ut,xn=jt,Ut=nn+(Yn=(Yn=(Yn=Yn+or+((En+=Vn)>>>0<Vn>>>0?1:0))+vn.high+((En+=rn)>>>0<rn>>>0?1:0))+$e+((En+=re)>>>0<re>>>0?1:0))+((jt=qt+En|0)>>>0<qt>>>0?1:0)|0,nn=Pt,qt=Zt,Pt=mt,Zt=yt,mt=ft,yt=pt,ft=Yn+(((ft>>>28|pt<<4)^(ft<<30|pt>>>2)^(ft<<25|pt>>>7))+ct+(Pe>>>0<Et>>>0?1:0))+((pt=En+Pe|0)>>>0<En>>>0?1:0)|0}R=se.low=R+pt,se.high=le+ft+(R>>>0<pt>>>0?1:0),W=De.low=W+yt,De.high=U+mt+(W>>>0<yt>>>0?1:0),ge=he.low=ge+Zt,he.high=oe+Pt+(ge>>>0<Zt>>>0?1:0),ye=xe.low=ye+qt,xe.high=Q+nn+(ye>>>0<qt>>>0?1:0),Ye=Me.low=Ye+jt,Me.high=Le+Ut+(Ye>>>0<jt>>>0?1:0),Ge=be.low=Ge+xn,be.high=we+hn+(Ge>>>0<xn>>>0?1:0),ve=Y.low=ve+wn,Y.high=ke+Tn+(ve>>>0<wn>>>0?1:0),Ie=Be.low=Ie+je,Be.high=ze+zt+(Ie>>>0<je>>>0?1:0)},_doFinalize:function(){var B=this._data,q=B.words,de=8*this._nDataBytes,se=8*B.sigBytes;return q[se>>>5]|=128<<24-se%32,q[30+(se+128>>>10<<5)]=Math.floor(de/4294967296),q[31+(se+128>>>10<<5)]=de,B.sigBytes=4*q.length,this._process(),this._hash.toX32()},clone:function(){var B=F.clone.call(this);return B._hash=this._hash.clone(),B},blockSize:32});b.SHA512=F._createHelper(V),b.HmacSHA512=F._createHmacHelper(V)}(),c.SHA512)},57243:function(Ze,ee,_){var c;Ze.exports=(c=_(67585),_(58319),_(9493),_(37865),_(53057),function(){var b=c,M=b.lib,F=M.WordArray,O=M.BlockCipher,w=b.algo,y=[57,49,41,33,25,17,9,1,58,50,42,34,26,18,10,2,59,51,43,35,27,19,11,3,60,52,44,36,63,55,47,39,31,23,15,7,62,54,46,38,30,22,14,6,61,53,45,37,29,21,13,5,28,20,12,4],g=[14,17,11,24,1,5,3,28,15,6,21,10,23,19,12,4,26,8,16,7,27,20,13,2,41,52,31,37,47,55,30,40,51,45,33,48,44,49,39,56,34,53,46,42,50,36,29,32],x=[1,2,4,6,8,10,12,14,15,17,19,21,23,25,27,28],N=[{0:8421888,268435456:32768,536870912:8421378,805306368:2,1073741824:512,1342177280:8421890,1610612736:8389122,1879048192:8388608,2147483648:514,2415919104:8389120,2684354560:33280,2952790016:8421376,3221225472:32770,3489660928:8388610,3758096384:0,4026531840:33282,134217728:0,402653184:8421890,671088640:33282,939524096:32768,1207959552:8421888,1476395008:512,1744830464:8421378,2013265920:2,2281701376:8389120,2550136832:33280,2818572288:8421376,3087007744:8389122,3355443200:8388610,3623878656:32770,3892314112:514,4160749568:8388608,1:32768,268435457:2,536870913:8421888,805306369:8388608,1073741825:8421378,1342177281:33280,1610612737:512,1879048193:8389122,2147483649:8421890,2415919105:8421376,2684354561:8388610,2952790017:33282,3221225473:514,3489660929:8389120,3758096385:32770,4026531841:0,134217729:8421890,402653185:8421376,671088641:8388608,939524097:512,1207959553:32768,1476395009:8388610,1744830465:2,2013265921:33282,2281701377:32770,2550136833:8389122,2818572289:514,3087007745:8421888,3355443201:8389120,3623878657:0,3892314113:33280,4160749569:8421378},{0:1074282512,16777216:16384,33554432:524288,50331648:1074266128,67108864:1073741840,83886080:1074282496,100663296:1073758208,117440512:16,134217728:540672,150994944:1073758224,167772160:1073741824,184549376:540688,201326592:524304,218103808:0,234881024:16400,251658240:1074266112,8388608:1073758208,25165824:540688,41943040:16,58720256:1073758224,75497472:1074282512,92274688:1073741824,109051904:524288,125829120:1074266128,142606336:524304,159383552:0,176160768:16384,192937984:1074266112,209715200:1073741840,226492416:540672,243269632:1074282496,260046848:16400,268435456:0,285212672:1074266128,301989888:1073758224,318767104:1074282496,335544320:1074266112,352321536:16,369098752:540688,385875968:16384,402653184:16400,419430400:524288,436207616:524304,452984832:1073741840,469762048:540672,486539264:1073758208,503316480:1073741824,520093696:1074282512,276824064:540688,293601280:524288,310378496:1074266112,327155712:16384,343932928:1073758208,360710144:1074282512,377487360:16,394264576:1073741824,411041792:1074282496,427819008:1073741840,444596224:1073758224,461373440:524304,478150656:0,494927872:16400,511705088:1074266128,528482304:540672},{0:260,1048576:0,2097152:67109120,3145728:65796,4194304:65540,5242880:67108868,6291456:67174660,7340032:67174400,8388608:67108864,9437184:67174656,10485760:65792,11534336:67174404,12582912:67109124,13631488:65536,14680064:4,15728640:256,524288:67174656,1572864:67174404,2621440:0,3670016:67109120,4718592:67108868,5767168:65536,6815744:65540,7864320:260,8912896:4,9961472:256,11010048:67174400,12058624:65796,13107200:65792,14155776:67109124,15204352:67174660,16252928:67108864,16777216:67174656,17825792:65540,18874368:65536,19922944:67109120,20971520:256,22020096:67174660,23068672:67108868,24117248:0,25165824:67109124,26214400:67108864,27262976:4,28311552:65792,29360128:67174400,30408704:260,31457280:65796,32505856:67174404,17301504:67108864,18350080:260,19398656:67174656,20447232:0,21495808:65540,22544384:67109120,23592960:256,24641536:67174404,25690112:65536,26738688:67174660,27787264:65796,28835840:67108868,29884416:67109124,30932992:67174400,31981568:4,33030144:65792},{0:2151682048,65536:2147487808,131072:4198464,196608:2151677952,262144:0,327680:4198400,393216:2147483712,458752:4194368,524288:2147483648,589824:4194304,655360:64,720896:2147487744,786432:2151678016,851968:4160,917504:4096,983040:2151682112,32768:2147487808,98304:64,163840:2151678016,229376:2147487744,294912:4198400,360448:2151682112,425984:0,491520:2151677952,557056:4096,622592:2151682048,688128:4194304,753664:4160,819200:2147483648,884736:4194368,950272:4198464,1015808:2147483712,1048576:4194368,1114112:4198400,1179648:2147483712,1245184:0,1310720:4160,1376256:2151678016,1441792:2151682048,1507328:2147487808,1572864:2151682112,1638400:2147483648,1703936:2151677952,1769472:4198464,1835008:2147487744,1900544:4194304,1966080:64,2031616:4096,1081344:2151677952,1146880:2151682112,1212416:0,1277952:4198400,1343488:4194368,1409024:2147483648,1474560:2147487808,1540096:64,1605632:2147483712,1671168:4096,1736704:2147487744,1802240:2151678016,1867776:4160,1933312:2151682048,1998848:4194304,2064384:4198464},{0:128,4096:17039360,8192:262144,12288:536870912,16384:537133184,20480:16777344,24576:553648256,28672:262272,32768:16777216,36864:537133056,40960:536871040,45056:553910400,49152:553910272,53248:0,57344:17039488,61440:553648128,2048:17039488,6144:553648256,10240:128,14336:17039360,18432:262144,22528:537133184,26624:553910272,30720:536870912,34816:537133056,38912:0,43008:553910400,47104:16777344,51200:536871040,55296:553648128,59392:16777216,63488:262272,65536:262144,69632:128,73728:536870912,77824:553648256,81920:16777344,86016:553910272,90112:537133184,94208:16777216,98304:553910400,102400:553648128,106496:17039360,110592:537133056,114688:262272,118784:536871040,122880:0,126976:17039488,67584:553648256,71680:16777216,75776:17039360,79872:537133184,83968:536870912,88064:17039488,92160:128,96256:553910272,100352:262272,104448:553910400,108544:0,112640:553648128,116736:16777344,120832:262144,124928:537133056,129024:536871040},{0:268435464,256:8192,512:270532608,768:270540808,1024:268443648,1280:2097152,1536:2097160,1792:268435456,2048:0,2304:268443656,2560:2105344,2816:8,3072:270532616,3328:2105352,3584:8200,3840:270540800,128:270532608,384:270540808,640:8,896:2097152,1152:2105352,1408:268435464,1664:268443648,1920:8200,2176:2097160,2432:8192,2688:268443656,2944:270532616,3200:0,3456:270540800,3712:2105344,3968:268435456,4096:268443648,4352:270532616,4608:270540808,4864:8200,5120:2097152,5376:268435456,5632:268435464,5888:2105344,6144:2105352,6400:0,6656:8,6912:270532608,7168:8192,7424:268443656,7680:270540800,7936:2097160,4224:8,4480:2105344,4736:2097152,4992:268435464,5248:268443648,5504:8200,5760:270540808,6016:270532608,6272:270540800,6528:270532616,6784:8192,7040:2105352,7296:2097160,7552:0,7808:268435456,8064:268443656},{0:1048576,16:33555457,32:1024,48:1049601,64:34604033,80:0,96:1,112:34603009,128:33555456,144:1048577,160:33554433,176:34604032,192:34603008,208:1025,224:1049600,240:33554432,8:34603009,24:0,40:33555457,56:34604032,72:1048576,88:33554433,104:33554432,120:1025,136:1049601,152:33555456,168:34603008,184:1048577,200:1024,216:34604033,232:1,248:1049600,256:33554432,272:1048576,288:33555457,304:34603009,320:1048577,336:33555456,352:34604032,368:1049601,384:1025,400:34604033,416:1049600,432:1,448:0,464:34603008,480:33554433,496:1024,264:1049600,280:33555457,296:34603009,312:1,328:33554432,344:1048576,360:1025,376:34604032,392:33554433,408:34603008,424:0,440:34604033,456:1049601,472:1024,488:33555456,504:1048577},{0:134219808,1:131072,2:134217728,3:32,4:131104,5:134350880,6:134350848,7:2048,8:134348800,9:134219776,10:133120,11:134348832,12:2080,13:0,14:134217760,15:133152,2147483648:2048,2147483649:134350880,2147483650:134219808,2147483651:134217728,2147483652:134348800,2147483653:133120,2147483654:133152,2147483655:32,2147483656:134217760,2147483657:2080,2147483658:131104,2147483659:134350848,2147483660:0,2147483661:134348832,2147483662:134219776,2147483663:131072,16:133152,17:134350848,18:32,19:2048,20:134219776,21:134217760,22:134348832,23:131072,24:0,25:131104,26:134348800,27:134219808,28:134350880,29:133120,30:2080,31:134217728,2147483664:131072,2147483665:2048,2147483666:134348832,2147483667:133152,2147483668:32,2147483669:134348800,2147483670:134217728,2147483671:134219808,2147483672:134350880,2147483673:134217760,2147483674:134219776,2147483675:0,2147483676:133120,2147483677:2080,2147483678:131104,2147483679:134350848}],T=[4160749569,528482304,33030144,2064384,129024,8064,504,2147483679],V=w.DES=O.extend({_doReset:function(){for(var De=this._key.words,he=[],xe=0;xe<56;xe++){var Me=y[xe]-1;he[xe]=De[Me>>>5]>>>31-Me%32&1}for(var be=this._subKeys=[],Y=0;Y<16;Y++){var Be=be[Y]=[],le=x[Y];for(xe=0;xe<24;xe++)Be[xe/6|0]|=he[(g[xe]-1+le)%28]<<31-xe%6,Be[4+(xe/6|0)]|=he[28+(g[xe+24]-1+le)%28]<<31-xe%6;for(Be[0]=Be[0]<<1|Be[0]>>>31,xe=1;xe<7;xe++)Be[xe]=Be[xe]>>>4*(xe-1)+3;Be[7]=Be[7]<<5|Be[7]>>>27}var R=this._invSubKeys=[];for(xe=0;xe<16;xe++)R[xe]=be[15-xe]},encryptBlock:function(se,De){this._doCryptBlock(se,De,this._subKeys)},decryptBlock:function(se,De){this._doCryptBlock(se,De,this._invSubKeys)},_doCryptBlock:function(se,De,he){this._lBlock=se[De],this._rBlock=se[De+1],B.call(this,4,252645135),B.call(this,16,65535),q.call(this,2,858993459),q.call(this,8,16711935),B.call(this,1,1431655765);for(var xe=0;xe<16;xe++){for(var Me=he[xe],be=this._lBlock,Y=this._rBlock,Be=0,le=0;le<8;le++)Be|=N[le][((Y^Me[le])&T[le])>>>0];this._lBlock=Y,this._rBlock=be^Be}var R=this._lBlock;this._lBlock=this._rBlock,this._rBlock=R,B.call(this,1,1431655765),q.call(this,8,16711935),q.call(this,2,858993459),B.call(this,16,65535),B.call(this,4,252645135),se[De]=this._lBlock,se[De+1]=this._rBlock},keySize:2,ivSize:2,blockSize:2});function B(se,De){var he=(this._lBlock>>>se^this._rBlock)&De;this._rBlock^=he,this._lBlock^=he<<se}function q(se,De){var he=(this._rBlock>>>se^this._lBlock)&De;this._lBlock^=he,this._rBlock^=he<<se}b.DES=O._createHelper(V);var de=w.TripleDES=O.extend({_doReset:function(){var De=this._key.words;if(2!==De.length&&4!==De.length&&De.length<6)throw new Error("Invalid key length - 3DES requires the key length to be 64, 128, 192 or >192.");var he=De.slice(0,2),xe=De.length<4?De.slice(0,2):De.slice(2,4),Me=De.length<6?De.slice(0,2):De.slice(4,6);this._des1=V.createEncryptor(F.create(he)),this._des2=V.createEncryptor(F.create(xe)),this._des3=V.createEncryptor(F.create(Me))},encryptBlock:function(se,De){this._des1.encryptBlock(se,De),this._des2.decryptBlock(se,De),this._des3.encryptBlock(se,De)},decryptBlock:function(se,De){this._des3.decryptBlock(se,De),this._des2.encryptBlock(se,De),this._des1.decryptBlock(se,De)},keySize:6,ivSize:2,blockSize:2});b.TripleDES=O._createHelper(de)}(),c.TripleDES)},70401:function(Ze,ee,_){var F,O,w,y,c;Ze.exports=(c=_(67585),O=(F=c.lib).Base,w=F.WordArray,(y=c.x64={}).Word=O.extend({init:function(N,T){this.high=N,this.low=T}}),y.WordArray=O.extend({init:function(N,T){N=this.words=N||[],this.sigBytes=null!=T?T:8*N.length},toX32:function(){for(var N=this.words,T=N.length,V=[],B=0;B<T;B++){var q=N[B];V.push(q.high),V.push(q.low)}return w.create(V,this.sigBytes)},clone:function(){for(var N=O.clone.call(this),T=N.words=this.words.slice(0),V=T.length,B=0;B<V;B++)T[B]=T[B].clone();return N}}),c)},48461:(Ze,ee)=>{ee.read=function(_,c,b,M,F){var O,w,y=8*F-M-1,g=(1<<y)-1,x=g>>1,N=-7,T=b?F-1:0,V=b?-1:1,B=_[c+T];for(T+=V,O=B&(1<<-N)-1,B>>=-N,N+=y;N>0;O=256*O+_[c+T],T+=V,N-=8);for(w=O&(1<<-N)-1,O>>=-N,N+=M;N>0;w=256*w+_[c+T],T+=V,N-=8);if(0===O)O=1-x;else{if(O===g)return w?NaN:1/0*(B?-1:1);w+=Math.pow(2,M),O-=x}return(B?-1:1)*w*Math.pow(2,O-M)},ee.write=function(_,c,b,M,F,O){var w,y,g,x=8*O-F-1,N=(1<<x)-1,T=N>>1,V=23===F?Math.pow(2,-24)-Math.pow(2,-77):0,B=M?0:O-1,q=M?1:-1,de=c<0||0===c&&1/c<0?1:0;for(c=Math.abs(c),isNaN(c)||c===1/0?(y=isNaN(c)?1:0,w=N):(w=Math.floor(Math.log(c)/Math.LN2),c*(g=Math.pow(2,-w))<1&&(w--,g*=2),(c+=w+T>=1?V/g:V*Math.pow(2,1-T))*g>=2&&(w++,g/=2),w+T>=N?(y=0,w=N):w+T>=1?(y=(c*g-1)*Math.pow(2,F),w+=T):(y=c*Math.pow(2,T-1)*Math.pow(2,F),w=0));F>=8;_[b+B]=255&y,B+=q,y/=256,F-=8);for(w=w<<F|y,x+=F;x>0;_[b+B]=255&w,B+=q,w/=256,x-=8);_[b+B-q]|=128*de}},66425:Ze=>{var ee={}.toString;Ze.exports=Array.isArray||function(_){return"[object Array]"==ee.call(_)}},33024:(Ze,ee,_)=>{Ze.exports=self.fetch||(self.fetch=_(75557).default||_(75557))},47355:(Ze,ee,_)=>{var c,b,M;void 0!==(b="function"==typeof(c=M=function(){function M(){for(var w=0,y={};w<arguments.length;w++){var g=arguments[w];for(var x in g)y[x]=g[x]}return y}function F(w){return w.replace(/(%[0-9A-Z]{2})+/g,decodeURIComponent)}return function O(w){function y(){}function g(N,T,V){if(!(typeof document>"u")){"number"==typeof(V=M({path:"/"},y.defaults,V)).expires&&(V.expires=new Date(1*new Date+864e5*V.expires)),V.expires=V.expires?V.expires.toUTCString():"";try{var B=JSON.stringify(T);/^[\{\[]/.test(B)&&(T=B)}catch{}T=w.write?w.write(T,N):encodeURIComponent(String(T)).replace(/%(23|24|26|2B|3A|3C|3E|3D|2F|3F|40|5B|5D|5E|60|7B|7D|7C)/g,decodeURIComponent),N=encodeURIComponent(String(N)).replace(/%(23|24|26|2B|5E|60|7C)/g,decodeURIComponent).replace(/[\(\)]/g,escape);var q="";for(var de in V)V[de]&&(q+="; "+de,!0!==V[de]&&(q+="="+V[de].split(";")[0]));return document.cookie=N+"="+T+q}}function x(N,T){if(!(typeof document>"u")){for(var V={},B=document.cookie?document.cookie.split("; "):[],q=0;q<B.length;q++){var de=B[q].split("="),se=de.slice(1).join("=");!T&&'"'===se.charAt(0)&&(se=se.slice(1,-1));try{var De=F(de[0]);if(se=(w.read||w)(se,De)||F(se),T)try{se=JSON.parse(se)}catch{}if(V[De]=se,N===De)break}catch{}}return N?V[N]:V}}return y.set=g,y.get=function(N){return x(N,!1)},y.getJSON=function(N){return x(N,!0)},y.remove=function(N,T){g(N,"",M(T,{expires:-1}))},y.defaults={},y.withConverter=O,y}(function(){})})?c.call(ee,_,ee,Ze):c)&&(Ze.exports=b),Ze.exports=M()},90516:Ze=>{"use strict";function ee(_,c){return Object.prototype.hasOwnProperty.call(_,c)}Ze.exports=function(_,c,b,M){b=b||"=";var F={};if("string"!=typeof _||0===_.length)return F;var O=/\+/g;_=_.split(c=c||"&");var w=1e3;M&&"number"==typeof M.maxKeys&&(w=M.maxKeys);var y=_.length;w>0&&y>w&&(y=w);for(var g=0;g<y;++g){var T,V,B,q,x=_[g].replace(O,"%20"),N=x.indexOf(b);N>=0?(T=x.substr(0,N),V=x.substr(N+1)):(T=x,V=""),B=decodeURIComponent(T),q=decodeURIComponent(V),ee(F,B)?Array.isArray(F[B])?F[B].push(q):F[B]=[F[B],q]:F[B]=q}return F}},75776:Ze=>{"use strict";var ee=function(_){switch(typeof _){case"string":return _;case"boolean":return _?"true":"false";case"number":return isFinite(_)?_:"";default:return""}};Ze.exports=function(_,c,b,M){return c=c||"&",b=b||"=",null===_&&(_=void 0),"object"==typeof _?Object.keys(_).map(function(F){var O=encodeURIComponent(ee(F))+b;return Array.isArray(_[F])?_[F].map(function(w){return O+encodeURIComponent(ee(w))}).join(c):O+encodeURIComponent(ee(_[F]))}).join(c):M?encodeURIComponent(ee(M))+b+encodeURIComponent(ee(_)):""}},17137:(Ze,ee,_)=>{"use strict";ee.decode=ee.parse=_(90516),ee.encode=ee.stringify=_(75776)},74387:(Ze,ee,_)=>{"use strict";Object.defineProperty(ee,"__esModule",{value:!0});var c=_(22648);ee.BehaviorSubject=c.BehaviorSubject},52222:(Ze,ee,_)=>{"use strict";Object.defineProperty(ee,"__esModule",{value:!0});var c=_(45135);ee.isArray=c.isArray},12139:(Ze,ee,_)=>{"use strict";Object.defineProperty(ee,"__esModule",{value:!0}),function c(b){for(var M in b)ee.hasOwnProperty(M)||(ee[M]=b[M])}(_(74387))},22648:(Ze,ee,_)=>{"use strict";_.r(ee),_.d(ee,{ArgumentOutOfRangeError:()=>W.W,AsyncSubject:()=>x,BehaviorSubject:()=>w.X,ConnectableObservable:()=>b.c,EMPTY:()=>qt.E,EmptyError:()=>oe.K,GroupedObservable:()=>M.T,NEVER:()=>vt,Notification:()=>Y.P,NotificationKind:()=>Y.W,ObjectUnsubscribedError:()=>ge.N,Observable:()=>c.y,ReplaySubject:()=>y.t,Scheduler:()=>Me.b,Subject:()=>O.xQ,Subscriber:()=>be.L,Subscription:()=>g.w,TimeoutError:()=>ye.W,UnsubscriptionError:()=>Q.B,VirtualAction:()=>xe,VirtualTimeScheduler:()=>he,animationFrameScheduler:()=>De,asapScheduler:()=>N.e,asyncScheduler:()=>T.P,bindCallback:()=>ke,bindNodeCallback:()=>ft,combineLatest:()=>Pt.aj,concat:()=>Zt.z,config:()=>Yn.v,defer:()=>nn.P,empty:()=>qt.c,forkJoin:()=>Ut.D,from:()=>jt.D,fromEvent:()=>hn.R,fromEventPattern:()=>Tn,generate:()=>wn,identity:()=>R.y,iif:()=>je,interval:()=>re,isObservable:()=>U,merge:()=>ot.T,never:()=>lt,noop:()=>le.Z,observable:()=>F.L,of:()=>Ht.of,onErrorResumeNext:()=>Nt,pairs:()=>It,partition:()=>Gn,pipe:()=>Be.z,queueScheduler:()=>V.c,race:()=>Cn,range:()=>or.w,scheduled:()=>En.x,throwError:()=>Vn._,timer:()=>ct.H,using:()=>qe,zip:()=>Et});var c=_(57451),b=_(71762),M=_(44002),F=_(93821),O=_(8929),w=_(591),y=_(42247),g=_(24096);class x extends O.xQ{constructor(){super(...arguments),this.value=null,this.hasNext=!1,this.hasCompleted=!1}_subscribe(ie){return this.hasError?(ie.error(this.thrownError),g.w.EMPTY):this.hasCompleted&&this.hasNext?(ie.next(this.value),ie.complete(),g.w.EMPTY):super._subscribe(ie)}next(ie){this.hasCompleted||(this.value=ie,this.hasNext=!0)}error(ie){this.hasCompleted||super.error(ie)}complete(){this.hasCompleted=!0,this.hasNext&&super.next(this.value),super.complete()}}var N=_(59931),T=_(20353),V=_(30341),B=_(56686),de=_(20198);const De=new class se extends de.v{flush(ie){this.active=!0,this.scheduled=void 0;const{actions:J}=this;let ue,Je=-1,nt=J.length;ie=ie||J.shift();do{if(ue=ie.execute(ie.state,ie.delay))break}while(++Je<nt&&(ie=J.shift()));if(this.active=!1,ue){for(;++Je<nt&&(ie=J.shift());)ie.unsubscribe();throw ue}}}(class q extends B.o{constructor(ie,J){super(ie,J),this.scheduler=ie,this.work=J}requestAsyncId(ie,J,ue=0){return null!==ue&&ue>0?super.requestAsyncId(ie,J,ue):(ie.actions.push(this),ie.scheduled||(ie.scheduled=requestAnimationFrame(()=>ie.flush(null))))}recycleAsyncId(ie,J,ue=0){if(null!==ue&&ue>0||null===ue&&this.delay>0)return super.recycleAsyncId(ie,J,ue);0===ie.actions.length&&(cancelAnimationFrame(J),ie.scheduled=void 0)}});let he=(()=>{class Pe extends de.v{constructor(J=xe,ue=Number.POSITIVE_INFINITY){super(J,()=>this.frame),this.maxFrames=ue,this.frame=0,this.index=-1}flush(){const{actions:J,maxFrames:ue}=this;let Je,nt;for(;(nt=J[0])&&nt.delay<=ue&&(J.shift(),this.frame=nt.delay,!(Je=nt.execute(nt.state,nt.delay))););if(Je){for(;nt=J.shift();)nt.unsubscribe();throw Je}}}return Pe.frameTimeFactor=10,Pe})();class xe extends B.o{constructor(ie,J,ue=(ie.index+=1)){super(ie,J),this.scheduler=ie,this.work=J,this.index=ue,this.active=!0,this.index=ie.index=ue}schedule(ie,J=0){if(!this.id)return super.schedule(ie,J);this.active=!1;const ue=new xe(this.scheduler,this.work);return this.add(ue),ue.schedule(ie,J)}requestAsyncId(ie,J,ue=0){this.delay=ie.frame+ue;const{actions:Je}=ie;return Je.push(this),Je.sort(xe.sortActions),!0}recycleAsyncId(ie,J,ue=0){}_execute(ie,J){if(!0===this.active)return super._execute(ie,J)}static sortActions(ie,J){return ie.delay===J.delay?ie.index===J.index?0:ie.index>J.index?1:-1:ie.delay>J.delay?1:-1}}var Me=_(62221),be=_(43489),Y=_(29312),Be=_(4843),le=_(67876),R=_(35379);function U(Pe){return!!Pe&&(Pe instanceof c.y||"function"==typeof Pe.lift&&"function"==typeof Pe.subscribe)}var W=_(94231),oe=_(84450),ge=_(95279),Q=_(87964),ye=_(80854),Le=_(24850),Ye=_(29476),we=_(66688),Ge=_(72866);function ke(Pe,ie,J){if(ie){if(!(0,Ge.K)(ie))return(...ue)=>ke(Pe,J)(...ue).pipe((0,Le.U)(Je=>(0,we.k)(Je)?ie(...Je):ie(Je)));J=ie}return function(...ue){const Je=this;let nt;const _t={context:Je,subject:nt,callbackFunc:Pe,scheduler:J};return new c.y(At=>{if(J)return J.schedule(ve,0,{args:ue,subscriber:At,params:_t});if(!nt){nt=new x;const kt=(...Vt)=>{nt.next(Vt.length<=1?Vt[0]:Vt),nt.complete()};try{Pe.apply(Je,[...ue,kt])}catch(Vt){(0,Ye._)(nt)?nt.error(Vt):console.warn(Vt)}}return nt.subscribe(At)})}}function ve(Pe){const{args:J,subscriber:ue,params:Je}=Pe,{callbackFunc:nt,context:_t,scheduler:At}=Je;let{subject:kt}=Je;if(!kt){kt=Je.subject=new x;const Vt=(..._n)=>{this.add(At.schedule(ze,0,{value:_n.length<=1?_n[0]:_n,subject:kt}))};try{nt.apply(_t,[...J,Vt])}catch(_n){kt.error(_n)}}this.add(kt.subscribe(ue))}function ze(Pe){const{value:ie,subject:J}=Pe;J.next(ie),J.complete()}function ft(Pe,ie,J){if(ie){if(!(0,Ge.K)(ie))return(...ue)=>ft(Pe,J)(...ue).pipe((0,Le.U)(Je=>(0,we.k)(Je)?ie(...Je):ie(Je)));J=ie}return function(...ue){const Je={subject:void 0,args:ue,callbackFunc:Pe,scheduler:J,context:this};return new c.y(nt=>{const{context:_t}=Je;let{subject:At}=Je;if(J)return J.schedule(pt,0,{params:Je,subscriber:nt,context:_t});if(!At){At=Je.subject=new x;const kt=(...Vt)=>{const _n=Vt.shift();_n?At.error(_n):(At.next(Vt.length<=1?Vt[0]:Vt),At.complete())};try{Pe.apply(_t,[...ue,kt])}catch(Vt){(0,Ye._)(At)?At.error(Vt):console.warn(Vt)}}return At.subscribe(nt)})}}function pt(Pe){const{params:ie,subscriber:J,context:ue}=Pe,{callbackFunc:Je,args:nt,scheduler:_t}=ie;let At=ie.subject;if(!At){At=ie.subject=new x;const kt=(...Vt)=>{const _n=Vt.shift();this.add(_n?_t.schedule(yt,0,{err:_n,subject:At}):_t.schedule(mt,0,{value:Vt.length<=1?Vt[0]:Vt,subject:At}))};try{Je.apply(ue,[...nt,kt])}catch(Vt){this.add(_t.schedule(yt,0,{err:Vt,subject:At}))}}this.add(At.subscribe(J))}function mt(Pe){const{value:ie,subject:J}=Pe;J.next(ie),J.complete()}function yt(Pe){const{err:ie,subject:J}=Pe;J.error(ie)}var Pt=_(36053),Zt=_(61221),nn=_(88514),qt=_(68896),Ut=_(30567),jt=_(63527),hn=_(23753),xn=_(67043);function Tn(Pe,ie,J){return J?Tn(Pe,ie).pipe((0,Le.U)(ue=>(0,we.k)(ue)?J(...ue):J(ue))):new c.y(ue=>{const Je=(..._t)=>ue.next(1===_t.length?_t[0]:_t);let nt;try{nt=Pe(Je)}catch(_t){return void ue.error(_t)}if((0,xn.m)(ie))return()=>ie(Je,nt)})}function wn(Pe,ie,J,ue,Je){let nt,_t;return 1==arguments.length?(_t=Pe.initialState,ie=Pe.condition,J=Pe.iterate,nt=Pe.resultSelector||R.y,Je=Pe.scheduler):void 0===ue||(0,Ge.K)(ue)?(_t=Pe,nt=R.y,Je=ue):(_t=Pe,nt=ue),new c.y(At=>{let kt=_t;if(Je)return Je.schedule(zt,0,{subscriber:At,iterate:J,condition:ie,resultSelector:nt,state:kt});for(;;){if(ie){let _n;try{_n=ie(kt)}catch($n){return void At.error($n)}if(!_n){At.complete();break}}let Vt;try{Vt=nt(kt)}catch(_n){return void At.error(_n)}if(At.next(Vt),At.closed)break;try{kt=J(kt)}catch(_n){return void At.error(_n)}}})}function zt(Pe){const{subscriber:ie,condition:J}=Pe;if(ie.closed)return;if(Pe.needIterate)try{Pe.state=Pe.iterate(Pe.state)}catch(Je){return void ie.error(Je)}else Pe.needIterate=!0;if(J){let Je;try{Je=J(Pe.state)}catch(nt){return void ie.error(nt)}if(!Je)return void ie.complete();if(ie.closed)return}let ue;try{ue=Pe.resultSelector(Pe.state)}catch(Je){return void ie.error(Je)}return ie.closed||(ie.next(ue),ie.closed)?void 0:this.schedule(Pe)}function je(Pe,ie=qt.E,J=qt.E){return(0,nn.P)(()=>Pe()?ie:J)}var ne=_(84241);function re(Pe=0,ie=T.P){return(!(0,ne.k)(Pe)||Pe<0)&&(Pe=0),(!ie||"function"!=typeof ie.schedule)&&(ie=T.P),new c.y(J=>(J.add(ie.schedule($e,Pe,{subscriber:J,counter:0,period:Pe})),J))}function $e(Pe){const{subscriber:ie,counter:J,period:ue}=Pe;ie.next(J),this.schedule({subscriber:ie,counter:J+1,period:ue},ue)}var ot=_(36787);const vt=new c.y(le.Z);function lt(){return vt}var Ht=_(21086);function Nt(...Pe){if(0===Pe.length)return qt.E;const[ie,...J]=Pe;return 1===Pe.length&&(0,we.k)(ie)?Nt(...ie):new c.y(ue=>{const Je=()=>ue.add(Nt(...J).subscribe(ue));return(0,jt.D)(ie).subscribe({next(nt){ue.next(nt)},error:Je,complete:Je})})}function It(Pe,ie){return new c.y(ie?J=>{const ue=Object.keys(Pe),Je=new g.w;return Je.add(ie.schedule(pn,0,{keys:ue,index:0,subscriber:J,subscription:Je,obj:Pe})),Je}:J=>{const ue=Object.keys(Pe);for(let Je=0;Je<ue.length&&!J.closed;Je++){const nt=ue[Je];Pe.hasOwnProperty(nt)&&J.next([nt,Pe[nt]])}J.complete()})}function pn(Pe){const{keys:ie,index:J,subscriber:ue,subscription:Je,obj:nt}=Pe;if(!ue.closed)if(J<ie.length){const _t=ie[J];ue.next([_t,nt[_t]]),Je.add(this.schedule({keys:ie,index:J+1,subscriber:ue,subscription:Je,obj:nt}))}else ue.complete()}var cn=_(45884),ln=_(33071),lr=_(92198);function Gn(Pe,ie,J){return[(0,lr.h)(ie,J)(new c.y((0,ln.s)(Pe))),(0,lr.h)((0,cn.f)(ie,J))(new c.y((0,ln.s)(Pe)))]}var wr=_(33009),On=_(826),Dr=_(69054);function Cn(...Pe){if(1===Pe.length){if(!(0,we.k)(Pe[0]))return Pe[0];Pe=Pe[0]}return(0,wr.n)(Pe,void 0).lift(new nr)}class nr{call(ie,J){return J.subscribe(new er(ie))}}class er extends On.L{constructor(ie){super(ie),this.hasFirst=!1,this.observables=[],this.subscriptions=[]}_next(ie){this.observables.push(ie)}_complete(){const ie=this.observables,J=ie.length;if(0===J)this.destination.complete();else{for(let ue=0;ue<J&&!this.hasFirst;ue++){let Je=ie[ue],nt=(0,Dr.D)(this,Je,Je,ue);this.subscriptions&&this.subscriptions.push(nt),this.add(nt)}this.observables=null}}notifyNext(ie,J,ue,Je,nt){if(!this.hasFirst){this.hasFirst=!0;for(let _t=0;_t<this.subscriptions.length;_t++)if(_t!==ue){let At=this.subscriptions[_t];At.unsubscribe(),this.remove(At)}this.subscriptions=null}this.destination.next(J)}}var or=_(93103),Vn=_(61737),ct=_(98723);function qe(Pe,ie){return new c.y(J=>{let ue,Je;try{ue=Pe()}catch(At){return void J.error(At)}try{Je=ie(ue)}catch(At){return void J.error(At)}const _t=(Je?(0,jt.D)(Je):qt.E).subscribe(J);return()=>{_t.unsubscribe(),ue&&ue.unsubscribe()}})}var et=_(5430);function Et(...Pe){const ie=Pe[Pe.length-1];return"function"==typeof ie&&Pe.pop(),(0,wr.n)(Pe,void 0).lift(new St(ie))}class St{constructor(ie){this.resultSelector=ie}call(ie,J){return J.subscribe(new Xt(ie,this.resultSelector))}}class Xt extends be.L{constructor(ie,J,ue=Object.create(null)){super(ie),this.iterators=[],this.active=0,this.resultSelector="function"==typeof J?J:null,this.values=ue}_next(ie){const J=this.iterators;(0,we.k)(ie)?J.push(new Pn(ie)):J.push("function"==typeof ie[et.hZ]?new vn(ie[et.hZ]()):new rn(this.destination,this,ie))}_complete(){const ie=this.iterators,J=ie.length;if(this.unsubscribe(),0!==J){this.active=J;for(let ue=0;ue<J;ue++){let Je=ie[ue];Je.stillUnsubscribed?this.destination.add(Je.subscribe(Je,ue)):this.active--}}else this.destination.complete()}notifyInactive(){this.active--,0===this.active&&this.destination.complete()}checkIterators(){const ie=this.iterators,J=ie.length,ue=this.destination;for(let _t=0;_t<J;_t++){let At=ie[_t];if("function"==typeof At.hasValue&&!At.hasValue())return}let Je=!1;const nt=[];for(let _t=0;_t<J;_t++){let At=ie[_t],kt=At.next();if(At.hasCompleted()&&(Je=!0),kt.done)return void ue.complete();nt.push(kt.value)}this.resultSelector?this._tryresultSelector(nt):ue.next(nt),Je&&ue.complete()}_tryresultSelector(ie){let J;try{J=this.resultSelector.apply(this,ie)}catch(ue){return void this.destination.error(ue)}this.destination.next(J)}}class vn{constructor(ie){this.iterator=ie,this.nextResult=ie.next()}hasValue(){return!0}next(){const ie=this.nextResult;return this.nextResult=this.iterator.next(),ie}hasCompleted(){const ie=this.nextResult;return ie&&ie.done}}class Pn{constructor(ie){this.array=ie,this.index=0,this.length=0,this.length=ie.length}[et.hZ](){return this}next(ie){const J=this.index++;return J<this.length?{value:this.array[J],done:!1}:{value:null,done:!0}}hasValue(){return this.array.length>this.index}hasCompleted(){return this.array.length===this.index}}class rn extends On.L{constructor(ie,J,ue){super(ie),this.parent=J,this.observable=ue,this.stillUnsubscribed=!0,this.buffer=[],this.isComplete=!1}[et.hZ](){return this}next(){const ie=this.buffer;return 0===ie.length&&this.isComplete?{value:null,done:!0}:{value:ie.shift(),done:!1}}hasValue(){return this.buffer.length>0}hasCompleted(){return 0===this.buffer.length&&this.isComplete}notifyComplete(){this.buffer.length>0?(this.isComplete=!0,this.parent.notifyInactive()):this.destination.complete()}notifyNext(ie,J,ue,Je,nt){this.buffer.push(J),this.parent.checkIterators()}subscribe(ie,J){return(0,Dr.D)(this,this.observable,this,J)}}var En=_(26266),Yn=_(92830)},45135:(Ze,ee,_)=>{"use strict";_.r(ee),_.d(ee,{AjaxError:()=>Ye,AjaxObservable:()=>ge,AjaxResponse:()=>ye,AjaxSubscriber:()=>Q,AjaxTimeoutError:()=>ve,AnonymousSubject:()=>O.ug,ArgumentOutOfRangeError:()=>ot.W,CombineLatestOperator:()=>Zt.Ms,EmptyError:()=>vt.K,GroupedObservable:()=>zt.T,Immediate:()=>lt.H,InnerSubscriber:()=>b.d,ObjectUnsubscribedError:()=>Ht.N,OuterSubscriber:()=>M.L,Scheduler:()=>F.b,SubjectSubscription:()=>w.W,SubscribeOnObservable:()=>jt,Subscriber:()=>y.L,TimeInterval:()=>wn,TimeoutError:()=>Nt.W,Timestamp:()=>xn,UnsubscriptionError:()=>It.B,WebSocketSubject:()=>yt,ajax:()=>ze,ajaxDelete:()=>le,ajaxGet:()=>Y,ajaxGetJSON:()=>oe,ajaxPatch:()=>U,ajaxPost:()=>Be,ajaxPut:()=>R,applyMixins:()=>pn,config:()=>c.v,defaultThrottleConfig:()=>je.d,dispatch:()=>nn.W,errorObject:()=>cn,fromIterable:()=>q,fromPromise:()=>T,hostReportError:()=>ln.z,identity:()=>lr.y,isArray:()=>Gn.k,isArrayLike:()=>wr.z,isDate:()=>On,isFunction:()=>Dr.m,isIterable:()=>Cn.T,isNumeric:()=>Ut.k,isObject:()=>nr.K,isObservable:()=>er.c,isPromise:()=>or.t,isScheduler:()=>Vn.K,iterator:()=>re.hZ,noop:()=>ct.Z,not:()=>qe.f,observable:()=>$e.L,pipe:()=>et.z,root:()=>he,rxSubscriber:()=>ne.b,subscribeTo:()=>Et.s,subscribeToArray:()=>St.V,subscribeToIterable:()=>V.u,subscribeToObservable:()=>Xt.h,subscribeToPromise:()=>x.A,subscribeToResult:()=>vn.D,toSubscriber:()=>Pn.Y,tryCatch:()=>Yn,webSocket:()=>Pt});var c=_(92830),b=_(51869),M=_(826),F=_(62221),O=_(8929),w=_(45283),y=_(43489),g=_(57451),x=_(83445),N=_(78687);function T(Pe,ie){return ie?(0,N.c)(Pe,ie):new g.y((0,x.A)(Pe))}var V=_(83720),B=_(16389);function q(Pe,ie){if(!Pe)throw new Error("Iterable cannot be null");return ie?(0,B.Q)(Pe,ie):new g.y((0,V.u)(Pe))}const de=typeof window<"u"&&window,se=typeof self<"u"&&typeof WorkerGlobalScope<"u"&&self instanceof WorkerGlobalScope&&self,he=de||typeof global<"u"&&global||se;function Y(Pe,ie=null){return new ge({method:"GET",url:Pe,headers:ie})}function Be(Pe,ie,J){return new ge({method:"POST",url:Pe,body:ie,headers:J})}function le(Pe,ie){return new ge({method:"DELETE",url:Pe,headers:ie})}function R(Pe,ie,J){return new ge({method:"PUT",url:Pe,body:ie,headers:J})}function U(Pe,ie,J){return new ge({method:"PATCH",url:Pe,body:ie,headers:J})}!function(){if(!he)throw new Error("RxJS could not find any global context (window, self, global)")}();const W=(0,_(24850).U)((Pe,ie)=>Pe.response);function oe(Pe,ie){return W(new ge({method:"GET",url:Pe,responseType:"json",headers:ie}))}class ge extends g.y{constructor(ie){super();const J={async:!0,createXHR:function(){return this.crossDomain?function Me(){if(he.XMLHttpRequest)return new he.XMLHttpRequest;if(he.XDomainRequest)return new he.XDomainRequest;throw new Error("CORS is not supported by your browser")}():function be(){if(he.XMLHttpRequest)return new he.XMLHttpRequest;{let Pe;try{const ie=["Msxml2.XMLHTTP","Microsoft.XMLHTTP","Msxml2.XMLHTTP.4.0"];for(let J=0;J<3;J++)try{if(Pe=ie[J],new he.ActiveXObject(Pe))break}catch{}return new he.ActiveXObject(Pe)}catch{throw new Error("XMLHttpRequest is not supported by your browser")}}}()},crossDomain:!0,withCredentials:!1,headers:{},method:"GET",responseType:"json",timeout:0};if("string"==typeof ie)J.url=ie;else for(const ue in ie)ie.hasOwnProperty(ue)&&(J[ue]=ie[ue]);this.request=J}_subscribe(ie){return new Q(ie,this.request)}}ge.create=(()=>{const Pe=ie=>new ge(ie);return Pe.get=Y,Pe.post=Be,Pe.delete=le,Pe.put=R,Pe.patch=U,Pe.getJSON=oe,Pe})();class Q extends y.L{constructor(ie,J){super(ie),this.request=J,this.done=!1;const ue=J.headers=J.headers||{};!J.crossDomain&&!this.getHeader(ue,"X-Requested-With")&&(ue["X-Requested-With"]="XMLHttpRequest"),!this.getHeader(ue,"Content-Type")&&!(he.FormData&&J.body instanceof he.FormData)&&typeof J.body<"u"&&(ue["Content-Type"]="application/x-www-form-urlencoded; charset=UTF-8"),J.body=this.serializeBody(J.body,this.getHeader(J.headers,"Content-Type")),this.send()}next(ie){this.done=!0;const{xhr:J,request:ue,destination:Je}=this;let nt;try{nt=new ye(ie,J,ue)}catch(_t){return Je.error(_t)}Je.next(nt)}send(){const{request:ie,request:{user:J,method:ue,url:Je,async:nt,password:_t,headers:At,body:kt}}=this;try{const Vt=this.xhr=ie.createXHR();this.setupEvents(Vt,ie),J?Vt.open(ue,Je,nt,J,_t):Vt.open(ue,Je,nt),nt&&(Vt.timeout=ie.timeout,Vt.responseType=ie.responseType),"withCredentials"in Vt&&(Vt.withCredentials=!!ie.withCredentials),this.setHeaders(Vt,At),kt?Vt.send(kt):Vt.send()}catch(Vt){this.error(Vt)}}serializeBody(ie,J){if(!ie||"string"==typeof ie)return ie;if(he.FormData&&ie instanceof he.FormData)return ie;if(J){const ue=J.indexOf(";");-1!==ue&&(J=J.substring(0,ue))}switch(J){case"application/x-www-form-urlencoded":return Object.keys(ie).map(ue=>`${encodeURIComponent(ue)}=${encodeURIComponent(ie[ue])}`).join("&");case"application/json":return JSON.stringify(ie);default:return ie}}setHeaders(ie,J){for(let ue in J)J.hasOwnProperty(ue)&&ie.setRequestHeader(ue,J[ue])}getHeader(ie,J){for(let ue in ie)if(ue.toLowerCase()===J.toLowerCase())return ie[ue]}setupEvents(ie,J){const ue=J.progressSubscriber;function Je(At){const{subscriber:kt,progressSubscriber:Vt,request:_n}=Je;let $n;Vt&&Vt.error(At);try{$n=new ve(this,_n)}catch(sr){$n=sr}kt.error($n)}if(ie.ontimeout=Je,Je.request=J,Je.subscriber=this,Je.progressSubscriber=ue,ie.upload&&"withCredentials"in ie){if(ue){let kt;kt=function(Vt){const{progressSubscriber:_n}=kt;_n.next(Vt)},he.XDomainRequest?ie.onprogress=kt:ie.upload.onprogress=kt,kt.progressSubscriber=ue}let At;At=function(kt){const{progressSubscriber:Vt,subscriber:_n,request:$n}=At;let sr;Vt&&Vt.error(kt);try{sr=new Ye("ajax error",this,$n)}catch(xr){sr=xr}_n.error(sr)},ie.onerror=At,At.request=J,At.subscriber=this,At.progressSubscriber=ue}function nt(At){}function _t(At){const{subscriber:kt,progressSubscriber:Vt,request:_n}=_t;if(4===this.readyState){let $n=1223===this.status?204:this.status;if(0===$n&&($n=("text"===this.responseType?this.response||this.responseText:this.response)?200:0),$n<400)Vt&&Vt.complete(),kt.next(At),kt.complete();else{let xr;Vt&&Vt.error(At);try{xr=new Ye("ajax error "+$n,this,_n)}catch(Di){xr=Di}kt.error(xr)}}}ie.onreadystatechange=nt,nt.subscriber=this,nt.progressSubscriber=ue,nt.request=J,ie.onload=_t,_t.subscriber=this,_t.progressSubscriber=ue,_t.request=J}unsubscribe(){const{done:ie,xhr:J}=this;!ie&&J&&4!==J.readyState&&"function"==typeof J.abort&&J.abort(),super.unsubscribe()}}class ye{constructor(ie,J,ue){this.originalEvent=ie,this.xhr=J,this.request=ue,this.status=J.status,this.responseType=J.responseType||ue.responseType,this.response=Ge(this.responseType,J)}}const Ye=(()=>{function Pe(ie,J,ue){return Error.call(this),this.message=ie,this.name="AjaxError",this.xhr=J,this.request=ue,this.status=J.status,this.responseType=J.responseType||ue.responseType,this.response=Ge(this.responseType,J),this}return Pe.prototype=Object.create(Error.prototype),Pe})();function Ge(Pe,ie){switch(Pe){case"json":return function we(Pe){return"response"in Pe?Pe.responseType?Pe.response:JSON.parse(Pe.response||Pe.responseText||"null"):JSON.parse(Pe.responseText||"null")}(ie);case"xml":return ie.responseXML;default:return"response"in ie?ie.response:ie.responseText}}const ve=function ke(Pe,ie){return Ye.call(this,"ajax timeout",Pe,ie),this.name="AjaxTimeoutError",this},ze=ge.create;var Ie=_(24096),ft=_(42247);const pt={url:"",deserializer:Pe=>JSON.parse(Pe.data),serializer:Pe=>JSON.stringify(Pe)};class yt extends O.ug{constructor(ie,J){if(super(),ie instanceof g.y)this.destination=J,this.source=ie;else{const ue=this._config=Object.assign({},pt);if(this._output=new O.xQ,"string"==typeof ie)ue.url=ie;else for(let Je in ie)ie.hasOwnProperty(Je)&&(ue[Je]=ie[Je]);if(!ue.WebSocketCtor&&WebSocket)ue.WebSocketCtor=WebSocket;else if(!ue.WebSocketCtor)throw new Error("no WebSocket constructor can be found");this.destination=new ft.t}}lift(ie){const J=new yt(this._config,this.destination);return J.operator=ie,J.source=this,J}_resetState(){this._socket=null,this.source||(this.destination=new ft.t),this._output=new O.xQ}multiplex(ie,J,ue){const Je=this;return new g.y(nt=>{try{Je.next(ie())}catch(At){nt.error(At)}const _t=Je.subscribe(At=>{try{ue(At)&&nt.next(At)}catch(kt){nt.error(kt)}},At=>nt.error(At),()=>nt.complete());return()=>{try{Je.next(J())}catch(At){nt.error(At)}_t.unsubscribe()}})}_connectSocket(){const{WebSocketCtor:ie,protocol:J,url:ue,binaryType:Je}=this._config,nt=this._output;let _t=null;try{_t=J?new ie(ue,J):new ie(ue),this._socket=_t,Je&&(this._socket.binaryType=Je)}catch(kt){return void nt.error(kt)}const At=new Ie.w(()=>{this._socket=null,_t&&1===_t.readyState&&_t.close()});_t.onopen=kt=>{const{_socket:Vt}=this;if(!Vt)return _t.close(),void this._resetState();const{openObserver:_n}=this._config;_n&&_n.next(kt);const $n=this.destination;this.destination=y.L.create(sr=>{if(1===_t.readyState)try{const{serializer:xr}=this._config;_t.send(xr(sr))}catch(xr){this.destination.error(xr)}},sr=>{const{closingObserver:xr}=this._config;xr&&xr.next(void 0),sr&&sr.code?_t.close(sr.code,sr.reason):nt.error(new TypeError("WebSocketSubject.error must be called with an object with an error code, and an optional reason: { code: number, reason: string }")),this._resetState()},()=>{const{closingObserver:sr}=this._config;sr&&sr.next(void 0),_t.close(),this._resetState()}),$n&&$n instanceof ft.t&&At.add($n.subscribe(this.destination))},_t.onerror=kt=>{this._resetState(),nt.error(kt)},_t.onclose=kt=>{this._resetState();const{closeObserver:Vt}=this._config;Vt&&Vt.next(kt),kt.wasClean?nt.complete():nt.error(kt)},_t.onmessage=kt=>{try{const{deserializer:Vt}=this._config;nt.next(Vt(kt))}catch(Vt){nt.error(Vt)}}}_subscribe(ie){const{source:J}=this;return J?J.subscribe(ie):(this._socket||this._connectSocket(),this._output.subscribe(ie),ie.add(()=>{const{_socket:ue}=this;0===this._output.observers.length&&(ue&&1===ue.readyState&&ue.close(),this._resetState())}),ie)}unsubscribe(){const{_socket:ie}=this;ie&&1===ie.readyState&&ie.close(),this._resetState(),super.unsubscribe()}}function Pt(Pe){return new yt(Pe)}var Zt=_(36053),nn=_(93103),qt=_(59931),Ut=_(84241);class jt extends g.y{constructor(ie,J=0,ue=qt.e){super(),this.source=ie,this.delayTime=J,this.scheduler=ue,(!(0,Ut.k)(J)||J<0)&&(this.delayTime=0),(!ue||"function"!=typeof ue.schedule)&&(this.scheduler=qt.e)}static create(ie,J=0,ue=qt.e){return new jt(ie,J,ue)}static dispatch(ie){const{source:J,subscriber:ue}=ie;return this.add(J.subscribe(ue))}_subscribe(ie){return this.scheduler.schedule(jt.dispatch,this.delayTime,{source:this.source,subscriber:ie})}}class xn{constructor(ie,J){this.value=ie,this.timestamp=J}}class wn{constructor(ie,J){this.value=ie,this.interval=J}}var zt=_(44002),je=_(22444),ne=_(57668),re=_(5430),$e=_(93821),ot=_(94231),vt=_(84450),lt=_(1450),Ht=_(95279),Nt=_(80854),It=_(87964);function pn(Pe,ie){for(let J=0,ue=ie.length;J<ue;J++){const Je=ie[J],nt=Object.getOwnPropertyNames(Je.prototype);for(let _t=0,At=nt.length;_t<At;_t++){const kt=nt[_t];Pe.prototype[kt]=Je.prototype[kt]}}}const cn={e:{}};var ln=_(22782),lr=_(35379),Gn=_(66688),wr=_(58515);function On(Pe){return Pe instanceof Date&&!isNaN(+Pe)}var Dr=_(67043),Cn=_(22198),nr=_(57830),er=_(28845),or=_(98955),Vn=_(72866),ct=_(67876),qe=_(45884),et=_(4843),Et=_(33071),St=_(13650),Xt=_(91810),vn=_(69054),Pn=_(5221);let rn;function En(){cn.e=void 0;try{return rn.apply(this,arguments)}catch(Pe){return cn.e=Pe,cn}finally{rn=void 0}}function Yn(Pe){return rn=Pe,En}},591:(Ze,ee,_)=>{"use strict";_.d(ee,{X:()=>M});var c=_(8929),b=_(95279);class M extends c.xQ{constructor(O){super(),this._value=O}get value(){return this.getValue()}_subscribe(O){const w=super._subscribe(O);return w&&!w.closed&&O.next(this._value),w}getValue(){if(this.hasError)throw this.thrownError;if(this.closed)throw new b.N;return this._value}next(O){super.next(this._value=O)}}},51869:(Ze,ee,_)=>{"use strict";_.d(ee,{d:()=>b});var c=_(43489);class b extends c.L{constructor(F,O,w){super(),this.parent=F,this.outerValue=O,this.outerIndex=w,this.index=0}_next(F){this.parent.notifyNext(this.outerValue,F,this.outerIndex,this.index++,this)}_error(F){this.parent.notifyError(F,this),this.unsubscribe()}_complete(){this.parent.notifyComplete(this),this.unsubscribe()}}},29312:(Ze,ee,_)=>{"use strict";_.d(ee,{P:()=>O,W:()=>F});var c=_(68896),b=_(21086),M=_(61737),F=(()=>{return(w=F||(F={})).NEXT="N",w.ERROR="E",w.COMPLETE="C",F;var w})();class O{constructor(y,g,x){this.kind=y,this.value=g,this.error=x,this.hasValue="N"===y}observe(y){switch(this.kind){case"N":return y.next&&y.next(this.value);case"E":return y.error&&y.error(this.error);case"C":return y.complete&&y.complete()}}do(y,g,x){switch(this.kind){case"N":return y&&y(this.value);case"E":return g&&g(this.error);case"C":return x&&x()}}accept(y,g,x){return y&&"function"==typeof y.next?this.observe(y):this.do(y,g,x)}toObservable(){switch(this.kind){case"N":return(0,b.of)(this.value);case"E":return(0,M._)(this.error);case"C":return(0,c.c)()}throw new Error("unexpected notification kind value")}static createNext(y){return typeof y<"u"?new O("N",y):O.undefinedValueNotification}static createError(y){return new O("E",void 0,y)}static createComplete(){return O.completeNotification}}O.completeNotification=new O("C"),O.undefinedValueNotification=new O("N",void 0)},57451:(Ze,ee,_)=>{"use strict";_.d(ee,{y:()=>w});var c=_(29476),b=_(5221),M=_(93821),F=_(4843),O=_(92830);let w=(()=>{class g{constructor(N){this._isScalar=!1,N&&(this._subscribe=N)}lift(N){const T=new g;return T.source=this,T.operator=N,T}subscribe(N,T,V){const{operator:B}=this,q=(0,b.Y)(N,T,V);if(q.add(B?B.call(q,this.source):this.source||O.v.useDeprecatedSynchronousErrorHandling&&!q.syncErrorThrowable?this._subscribe(q):this._trySubscribe(q)),O.v.useDeprecatedSynchronousErrorHandling&&q.syncErrorThrowable&&(q.syncErrorThrowable=!1,q.syncErrorThrown))throw q.syncErrorValue;return q}_trySubscribe(N){try{return this._subscribe(N)}catch(T){O.v.useDeprecatedSynchronousErrorHandling&&(N.syncErrorThrown=!0,N.syncErrorValue=T),(0,c._)(N)?N.error(T):console.warn(T)}}forEach(N,T){return new(T=y(T))((V,B)=>{let q;q=this.subscribe(de=>{try{N(de)}catch(se){B(se),q&&q.unsubscribe()}},B,V)})}_subscribe(N){const{source:T}=this;return T&&T.subscribe(N)}[M.L](){return this}pipe(...N){return 0===N.length?this:(0,F.U)(N)(this)}toPromise(N){return new(N=y(N))((T,V)=>{let B;this.subscribe(q=>B=q,q=>V(q),()=>T(B))})}}return g.create=x=>new g(x),g})();function y(g){if(g||(g=O.v.Promise||Promise),!g)throw new Error("no Promise impl found");return g}},73292:(Ze,ee,_)=>{"use strict";_.d(ee,{c:()=>M});var c=_(92830),b=_(22782);const M={closed:!0,next(F){},error(F){if(c.v.useDeprecatedSynchronousErrorHandling)throw F;(0,b.z)(F)},complete(){}}},826:(Ze,ee,_)=>{"use strict";_.d(ee,{L:()=>b});var c=_(43489);class b extends c.L{notifyNext(F,O,w,y,g){this.destination.next(O)}notifyError(F,O){this.destination.error(F)}notifyComplete(F){this.destination.complete()}}},42247:(Ze,ee,_)=>{"use strict";_.d(ee,{t:()=>V});var c=_(8929),b=_(30341),M=_(24096),F=_(43489),O=_(29312);class g extends F.L{constructor(de,se,De=0){super(de),this.scheduler=se,this.delay=De}static dispatch(de){const{notification:se,destination:De}=de;se.observe(De),this.unsubscribe()}scheduleMessage(de){this.destination.add(this.scheduler.schedule(g.dispatch,this.delay,new x(de,this.destination)))}_next(de){this.scheduleMessage(O.P.createNext(de))}_error(de){this.scheduleMessage(O.P.createError(de)),this.unsubscribe()}_complete(){this.scheduleMessage(O.P.createComplete()),this.unsubscribe()}}class x{constructor(de,se){this.notification=de,this.destination=se}}var N=_(95279),T=_(45283);class V extends c.xQ{constructor(de=Number.POSITIVE_INFINITY,se=Number.POSITIVE_INFINITY,De){super(),this.scheduler=De,this._events=[],this._infiniteTimeWindow=!1,this._bufferSize=de<1?1:de,this._windowTime=se<1?1:se,se===Number.POSITIVE_INFINITY?(this._infiniteTimeWindow=!0,this.next=this.nextInfiniteTimeWindow):this.next=this.nextTimeWindow}nextInfiniteTimeWindow(de){const se=this._events;se.push(de),se.length>this._bufferSize&&se.shift(),super.next(de)}nextTimeWindow(de){this._events.push(new B(this._getNow(),de)),this._trimBufferThenGetEvents(),super.next(de)}_subscribe(de){const se=this._infiniteTimeWindow,De=se?this._events:this._trimBufferThenGetEvents(),he=this.scheduler,xe=De.length;let Me;if(this.closed)throw new N.N;if(this.isStopped||this.hasError?Me=M.w.EMPTY:(this.observers.push(de),Me=new T.W(this,de)),he&&de.add(de=new g(de,he)),se)for(let be=0;be<xe&&!de.closed;be++)de.next(De[be]);else for(let be=0;be<xe&&!de.closed;be++)de.next(De[be].value);return this.hasError?de.error(this.thrownError):this.isStopped&&de.complete(),Me}_getNow(){return(this.scheduler||b.c).now()}_trimBufferThenGetEvents(){const de=this._getNow(),se=this._bufferSize,De=this._windowTime,he=this._events,xe=he.length;let Me=0;for(;Me<xe&&!(de-he[Me].time<De);)Me++;return xe>se&&(Me=Math.max(Me,xe-se)),Me>0&&he.splice(0,Me),he}}class B{constructor(de,se){this.time=de,this.value=se}}},62221:(Ze,ee,_)=>{"use strict";_.d(ee,{b:()=>c});let c=(()=>{class b{constructor(F,O=b.now){this.SchedulerAction=F,this.now=O}schedule(F,O=0,w){return new this.SchedulerAction(this,F).schedule(w,O)}}return b.now=()=>Date.now(),b})()},8929:(Ze,ee,_)=>{"use strict";_.d(ee,{Yc:()=>y,ug:()=>x,xQ:()=>g});var c=_(57451),b=_(43489),M=_(24096),F=_(95279),O=_(45283),w=_(57668);class y extends b.L{constructor(T){super(T),this.destination=T}}let g=(()=>{class N extends c.y{constructor(){super(),this.observers=[],this.closed=!1,this.isStopped=!1,this.hasError=!1,this.thrownError=null}[w.b](){return new y(this)}lift(V){const B=new x(this,this);return B.operator=V,B}next(V){if(this.closed)throw new F.N;if(!this.isStopped){const{observers:B}=this,q=B.length,de=B.slice();for(let se=0;se<q;se++)de[se].next(V)}}error(V){if(this.closed)throw new F.N;this.hasError=!0,this.thrownError=V,this.isStopped=!0;const{observers:B}=this,q=B.length,de=B.slice();for(let se=0;se<q;se++)de[se].error(V);this.observers.length=0}complete(){if(this.closed)throw new F.N;this.isStopped=!0;const{observers:V}=this,B=V.length,q=V.slice();for(let de=0;de<B;de++)q[de].complete();this.observers.length=0}unsubscribe(){this.isStopped=!0,this.closed=!0,this.observers=null}_trySubscribe(V){if(this.closed)throw new F.N;return super._trySubscribe(V)}_subscribe(V){if(this.closed)throw new F.N;return this.hasError?(V.error(this.thrownError),M.w.EMPTY):this.isStopped?(V.complete(),M.w.EMPTY):(this.observers.push(V),new O.W(this,V))}asObservable(){const V=new c.y;return V.source=this,V}}return N.create=(T,V)=>new x(T,V),N})();class x extends g{constructor(T,V){super(),this.destination=T,this.source=V}next(T){const{destination:V}=this;V&&V.next&&V.next(T)}error(T){const{destination:V}=this;V&&V.error&&this.destination.error(T)}complete(){const{destination:T}=this;T&&T.complete&&this.destination.complete()}_subscribe(T){const{source:V}=this;return V?this.source.subscribe(T):M.w.EMPTY}}},45283:(Ze,ee,_)=>{"use strict";_.d(ee,{W:()=>b});var c=_(24096);class b extends c.w{constructor(F,O){super(),this.subject=F,this.subscriber=O,this.closed=!1}unsubscribe(){if(this.closed)return;this.closed=!0;const F=this.subject,O=F.observers;if(this.subject=null,!O||0===O.length||F.isStopped||F.closed)return;const w=O.indexOf(this.subscriber);-1!==w&&O.splice(w,1)}}},43489:(Ze,ee,_)=>{"use strict";_.d(ee,{L:()=>y});var c=_(67043),b=_(73292),M=_(24096),F=_(57668),O=_(92830),w=_(22782);class y extends M.w{constructor(N,T,V){switch(super(),this.syncErrorValue=null,this.syncErrorThrown=!1,this.syncErrorThrowable=!1,this.isStopped=!1,arguments.length){case 0:this.destination=b.c;break;case 1:if(!N){this.destination=b.c;break}if("object"==typeof N){N instanceof y?(this.syncErrorThrowable=N.syncErrorThrowable,this.destination=N,N.add(this)):(this.syncErrorThrowable=!0,this.destination=new g(this,N));break}default:this.syncErrorThrowable=!0,this.destination=new g(this,N,T,V)}}[F.b](){return this}static create(N,T,V){const B=new y(N,T,V);return B.syncErrorThrowable=!1,B}next(N){this.isStopped||this._next(N)}error(N){this.isStopped||(this.isStopped=!0,this._error(N))}complete(){this.isStopped||(this.isStopped=!0,this._complete())}unsubscribe(){this.closed||(this.isStopped=!0,super.unsubscribe())}_next(N){this.destination.next(N)}_error(N){this.destination.error(N),this.unsubscribe()}_complete(){this.destination.complete(),this.unsubscribe()}_unsubscribeAndRecycle(){const{_parentOrParents:N}=this;return this._parentOrParents=null,this.unsubscribe(),this.closed=!1,this.isStopped=!1,this._parentOrParents=N,this}}class g extends y{constructor(N,T,V,B){super(),this._parentSubscriber=N;let q,de=this;(0,c.m)(T)?q=T:T&&(q=T.next,V=T.error,B=T.complete,T!==b.c&&(de=Object.create(T),(0,c.m)(de.unsubscribe)&&this.add(de.unsubscribe.bind(de)),de.unsubscribe=this.unsubscribe.bind(this))),this._context=de,this._next=q,this._error=V,this._complete=B}next(N){if(!this.isStopped&&this._next){const{_parentSubscriber:T}=this;O.v.useDeprecatedSynchronousErrorHandling&&T.syncErrorThrowable?this.__tryOrSetError(T,this._next,N)&&this.unsubscribe():this.__tryOrUnsub(this._next,N)}}error(N){if(!this.isStopped){const{_parentSubscriber:T}=this,{useDeprecatedSynchronousErrorHandling:V}=O.v;if(this._error)V&&T.syncErrorThrowable?(this.__tryOrSetError(T,this._error,N),this.unsubscribe()):(this.__tryOrUnsub(this._error,N),this.unsubscribe());else if(T.syncErrorThrowable)V?(T.syncErrorValue=N,T.syncErrorThrown=!0):(0,w.z)(N),this.unsubscribe();else{if(this.unsubscribe(),V)throw N;(0,w.z)(N)}}}complete(){if(!this.isStopped){const{_parentSubscriber:N}=this;if(this._complete){const T=()=>this._complete.call(this._context);O.v.useDeprecatedSynchronousErrorHandling&&N.syncErrorThrowable?(this.__tryOrSetError(N,T),this.unsubscribe()):(this.__tryOrUnsub(T),this.unsubscribe())}else this.unsubscribe()}}__tryOrUnsub(N,T){try{N.call(this._context,T)}catch(V){if(this.unsubscribe(),O.v.useDeprecatedSynchronousErrorHandling)throw V;(0,w.z)(V)}}__tryOrSetError(N,T,V){if(!O.v.useDeprecatedSynchronousErrorHandling)throw new Error("bad call");try{T.call(this._context,V)}catch(B){return O.v.useDeprecatedSynchronousErrorHandling?(N.syncErrorValue=B,N.syncErrorThrown=!0,!0):((0,w.z)(B),!0)}return!1}_unsubscribe(){const{_parentSubscriber:N}=this;this._context=null,this._parentSubscriber=null,N.unsubscribe()}}},24096:(Ze,ee,_)=>{"use strict";_.d(ee,{w:()=>O});var y,c=_(66688),b=_(57830),M=_(67043),F=_(87964);class O{constructor(g){this.closed=!1,this._parentOrParents=null,this._subscriptions=null,g&&(this._unsubscribe=g)}unsubscribe(){let g;if(this.closed)return;let{_parentOrParents:x,_unsubscribe:N,_subscriptions:T}=this;if(this.closed=!0,this._parentOrParents=null,this._subscriptions=null,x instanceof O)x.remove(this);else if(null!==x)for(let V=0;V<x.length;++V)x[V].remove(this);if((0,M.m)(N))try{N.call(this)}catch(V){g=V instanceof F.B?w(V.errors):[V]}if((0,c.k)(T)){let V=-1,B=T.length;for(;++V<B;){const q=T[V];if((0,b.K)(q))try{q.unsubscribe()}catch(de){g=g||[],de instanceof F.B?g=g.concat(w(de.errors)):g.push(de)}}}if(g)throw new F.B(g)}add(g){let x=g;if(!g)return O.EMPTY;switch(typeof g){case"function":x=new O(g);case"object":if(x===this||x.closed||"function"!=typeof x.unsubscribe)return x;if(this.closed)return x.unsubscribe(),x;if(!(x instanceof O)){const V=x;x=new O,x._subscriptions=[V]}break;default:throw new Error("unrecognized teardown "+g+" added to Subscription.")}let{_parentOrParents:N}=x;if(null===N)x._parentOrParents=this;else if(N instanceof O){if(N===this)return x;x._parentOrParents=[N,this]}else{if(-1!==N.indexOf(this))return x;N.push(this)}const T=this._subscriptions;return null===T?this._subscriptions=[x]:T.push(x),x}remove(g){const x=this._subscriptions;if(x){const N=x.indexOf(g);-1!==N&&x.splice(N,1)}}}function w(y){return y.reduce((g,x)=>g.concat(x instanceof F.B?x.errors:x),[])}O.EMPTY=((y=new O).closed=!0,y)},92830:(Ze,ee,_)=>{"use strict";_.d(ee,{v:()=>b});let c=!1;const b={Promise:void 0,set useDeprecatedSynchronousErrorHandling(M){if(M){const F=new Error;console.warn("DEPRECATED! RxJS was set to use deprecated synchronous error handling behavior by code at: \n"+F.stack)}else c&&console.log("RxJS: Back to a better error behavior. Thank you. <3");c=M},get useDeprecatedSynchronousErrorHandling(){return c}}},71762:(Ze,ee,_)=>{"use strict";_.d(ee,{N:()=>w,c:()=>O});var c=_(8929),b=_(57451),M=_(24096),F=_(74327);class O extends b.y{constructor(T,V){super(),this.source=T,this.subjectFactory=V,this._refCount=0,this._isComplete=!1}_subscribe(T){return this.getSubject().subscribe(T)}getSubject(){const T=this._subject;return(!T||T.isStopped)&&(this._subject=this.subjectFactory()),this._subject}connect(){let T=this._connection;return T||(this._isComplete=!1,T=this._connection=new M.w,T.add(this.source.subscribe(new y(this.getSubject(),this))),T.closed&&(this._connection=null,T=M.w.EMPTY)),T}refCount(){return(0,F.x)()(this)}}const w=(()=>{const N=O.prototype;return{operator:{value:null},_refCount:{value:0,writable:!0},_subject:{value:null,writable:!0},_connection:{value:null,writable:!0},_subscribe:{value:N._subscribe},_isComplete:{value:N._isComplete,writable:!0},getSubject:{value:N.getSubject},connect:{value:N.connect},refCount:{value:N.refCount}}})();class y extends c.Yc{constructor(T,V){super(T),this.connectable=V}_error(T){this._unsubscribe(),super._error(T)}_complete(){this.connectable._isComplete=!0,this._unsubscribe(),super._complete()}_unsubscribe(){const T=this.connectable;if(T){this.connectable=null;const V=T._connection;T._refCount=0,T._subject=null,T._connection=null,V&&V.unsubscribe()}}}},36053:(Ze,ee,_)=>{"use strict";_.d(ee,{Ms:()=>g,aj:()=>y});var c=_(72866),b=_(66688),M=_(826),F=_(69054),O=_(33009);const w={};function y(...N){let T=null,V=null;return(0,c.K)(N[N.length-1])&&(V=N.pop()),"function"==typeof N[N.length-1]&&(T=N.pop()),1===N.length&&(0,b.k)(N[0])&&(N=N[0]),(0,O.n)(N,V).lift(new g(T))}class g{constructor(T){this.resultSelector=T}call(T,V){return V.subscribe(new x(T,this.resultSelector))}}class x extends M.L{constructor(T,V){super(T),this.resultSelector=V,this.active=0,this.values=[],this.observables=[]}_next(T){this.values.push(w),this.observables.push(T)}_complete(){const T=this.observables,V=T.length;if(0===V)this.destination.complete();else{this.active=V,this.toRespond=V;for(let B=0;B<V;B++){const q=T[B];this.add((0,F.D)(this,q,q,B))}}}notifyComplete(T){0==(this.active-=1)&&this.destination.complete()}notifyNext(T,V,B,q,de){const se=this.values,he=this.toRespond?se[B]===w?--this.toRespond:this.toRespond:0;se[B]=V,0===he&&(this.resultSelector?this._tryResultSelector(se):this.destination.next(se.slice()))}_tryResultSelector(T){let V;try{V=this.resultSelector.apply(this,T)}catch(B){return void this.destination.error(B)}this.destination.next(V)}}},61221:(Ze,ee,_)=>{"use strict";_.d(ee,{z:()=>F});var c=_(21086),b=_(89146);function F(...O){return function M(){return(0,b.J)(1)}()((0,c.of)(...O))}},88514:(Ze,ee,_)=>{"use strict";_.d(ee,{P:()=>F});var c=_(57451),b=_(63527),M=_(68896);function F(O){return new c.y(w=>{let y;try{y=O()}catch(x){return void w.error(x)}return(y?(0,b.D)(y):(0,M.c)()).subscribe(w)})}},68896:(Ze,ee,_)=>{"use strict";_.d(ee,{E:()=>b,c:()=>M});var c=_(57451);const b=new c.y(O=>O.complete());function M(O){return O?function F(O){return new c.y(w=>O.schedule(()=>w.complete()))}(O):b}},30567:(Ze,ee,_)=>{"use strict";_.d(ee,{D:()=>w});var c=_(57451),b=_(66688),M=_(24850),F=_(57830),O=_(63527);function w(...g){if(1===g.length){const x=g[0];if((0,b.k)(x))return y(x,null);if((0,F.K)(x)&&Object.getPrototypeOf(x)===Object.prototype){const N=Object.keys(x);return y(N.map(T=>x[T]),N)}}if("function"==typeof g[g.length-1]){const x=g.pop();return y(g=1===g.length&&(0,b.k)(g[0])?g[0]:g,null).pipe((0,M.U)(N=>x(...N)))}return y(g,null)}function y(g,x){return new c.y(N=>{const T=g.length;if(0===T)return void N.complete();const V=new Array(T);let B=0,q=0;for(let de=0;de<T;de++){const se=(0,O.D)(g[de]);let De=!1;N.add(se.subscribe({next:he=>{De||(De=!0,q++),V[de]=he},error:he=>N.error(he),complete:()=>{B++,(B===T||!De)&&(q===T&&N.next(x?x.reduce((he,xe,Me)=>(he[xe]=V[Me],he),{}):V),N.complete())}}))}})}},63527:(Ze,ee,_)=>{"use strict";_.d(ee,{D:()=>F});var c=_(57451),b=_(33071),M=_(26266);function F(O,w){return w?(0,M.x)(O,w):O instanceof c.y?O:new c.y((0,b.s)(O))}},33009:(Ze,ee,_)=>{"use strict";_.d(ee,{n:()=>F});var c=_(57451),b=_(13650),M=_(66454);function F(O,w){return w?(0,M.r)(O,w):new c.y((0,b.V)(O))}},23753:(Ze,ee,_)=>{"use strict";_.d(ee,{R:()=>w});var c=_(57451),b=_(66688),M=_(67043),F=_(24850);function w(T,V,B,q){return(0,M.m)(B)&&(q=B,B=void 0),q?w(T,V,B).pipe((0,F.U)(de=>(0,b.k)(de)?q(...de):q(de))):new c.y(de=>{y(T,V,function se(De){de.next(arguments.length>1?Array.prototype.slice.call(arguments):De)},de,B)})}function y(T,V,B,q,de){let se;if(function N(T){return T&&"function"==typeof T.addEventListener&&"function"==typeof T.removeEventListener}(T)){const De=T;T.addEventListener(V,B,de),se=()=>De.removeEventListener(V,B,de)}else if(function x(T){return T&&"function"==typeof T.on&&"function"==typeof T.off}(T)){const De=T;T.on(V,B),se=()=>De.off(V,B)}else if(function g(T){return T&&"function"==typeof T.addListener&&"function"==typeof T.removeListener}(T)){const De=T;T.addListener(V,B),se=()=>De.removeListener(V,B)}else{if(!T||!T.length)throw new TypeError("Invalid event target");for(let De=0,he=T.length;De<he;De++)y(T[De],V,B,q,de)}q.add(se)}},36787:(Ze,ee,_)=>{"use strict";_.d(ee,{T:()=>O});var c=_(57451),b=_(72866),M=_(89146),F=_(33009);function O(...w){let y=Number.POSITIVE_INFINITY,g=null,x=w[w.length-1];return(0,b.K)(x)?(g=w.pop(),w.length>1&&"number"==typeof w[w.length-1]&&(y=w.pop())):"number"==typeof x&&(y=w.pop()),null===g&&1===w.length&&w[0]instanceof c.y?w[0]:(0,M.J)(y)((0,F.n)(w,g))}},21086:(Ze,ee,_)=>{"use strict";_.d(ee,{of:()=>F});var c=_(72866),b=_(33009),M=_(66454);function F(...O){let w=O[O.length-1];return(0,c.K)(w)?(O.pop(),(0,M.r)(O,w)):(0,b.n)(O)}},93103:(Ze,ee,_)=>{"use strict";_.d(ee,{W:()=>M,w:()=>b});var c=_(57451);function b(F=0,O,w){return new c.y(y=>{void 0===O&&(O=F,F=0);let g=0,x=F;if(w)return w.schedule(M,0,{index:g,count:O,start:F,subscriber:y});for(;;){if(g++>=O){y.complete();break}if(y.next(x++),y.closed)break}})}function M(F){const{start:O,index:w,count:y,subscriber:g}=F;w>=y?g.complete():(g.next(O),!g.closed&&(F.index=w+1,F.start=O+1,this.schedule(F)))}},61737:(Ze,ee,_)=>{"use strict";_.d(ee,{_:()=>b});var c=_(57451);function b(F,O){return new c.y(O?w=>O.schedule(M,0,{error:F,subscriber:w}):w=>w.error(F))}function M({error:F,subscriber:O}){O.error(F)}},98723:(Ze,ee,_)=>{"use strict";_.d(ee,{H:()=>O});var c=_(57451),b=_(20353),M=_(84241),F=_(72866);function O(y=0,g,x){let N=-1;return(0,M.k)(g)?N=Number(g)<1?1:Number(g):(0,F.K)(g)&&(x=g),(0,F.K)(x)||(x=b.P),new c.y(T=>{const V=(0,M.k)(y)?y:+y-x.now();return x.schedule(w,V,{index:0,period:N,subscriber:T})})}function w(y){const{index:g,period:x,subscriber:N}=y;if(N.next(g),!N.closed){if(-1===x)return N.complete();y.index=g+1,this.schedule(y,x)}}},27221:(Ze,ee,_)=>{"use strict";_.d(ee,{K:()=>F});var c=_(826),b=_(51869),M=_(69054);function F(y){return function(x){const N=new O(y),T=x.lift(N);return N.caught=T}}class O{constructor(g){this.selector=g}call(g,x){return x.subscribe(new w(g,this.selector,this.caught))}}class w extends c.L{constructor(g,x,N){super(g),this.selector=x,this.caught=N}error(g){if(!this.isStopped){let x;try{x=this.selector(g,this.caught)}catch(V){return void super.error(V)}this._unsubscribeAndRecycle();const N=new b.d(this,void 0,void 0);this.add(N);const T=(0,M.D)(this,x,void 0,void 0,N);T!==N&&this.add(T)}}}},21406:(Ze,ee,_)=>{"use strict";_.d(ee,{b:()=>b});var c=_(61709);function b(M,F){return(0,c.zg)(M,F,1)}},47314:(Ze,ee,_)=>{"use strict";_.d(ee,{d:()=>b});var c=_(43489);function b(O=null){return w=>w.lift(new M(O))}class M{constructor(w){this.defaultValue=w}call(w,y){return y.subscribe(new F(w,this.defaultValue))}}class F extends c.L{constructor(w,y){super(w),this.defaultValue=y,this.isEmpty=!0}_next(w){this.isEmpty=!1,this.destination.next(w)}_complete(){this.isEmpty&&this.destination.next(this.defaultValue),this.destination.complete()}}},92198:(Ze,ee,_)=>{"use strict";_.d(ee,{h:()=>b});var c=_(43489);function b(O,w){return function(g){return g.lift(new M(O,w))}}class M{constructor(w,y){this.predicate=w,this.thisArg=y}call(w,y){return y.subscribe(new F(w,this.predicate,this.thisArg))}}class F extends c.L{constructor(w,y,g){super(w),this.predicate=y,this.thisArg=g,this.count=0}_next(w){let y;try{y=this.predicate.call(this.thisArg,w,this.count++)}catch(g){return void this.destination.error(g)}y&&this.destination.next(w)}}},40537:(Ze,ee,_)=>{"use strict";_.d(ee,{x:()=>M});var c=_(43489),b=_(24096);function M(w){return y=>y.lift(new F(w))}class F{constructor(y){this.callback=y}call(y,g){return g.subscribe(new O(y,this.callback))}}class O extends c.L{constructor(y,g){super(y),this.add(new b.w(g))}}},87224:(Ze,ee,_)=>{"use strict";_.d(ee,{P:()=>y});var c=_(84450),b=_(92198),M=_(72986),F=_(47314),O=_(34907),w=_(35379);function y(g,x){const N=arguments.length>=2;return T=>T.pipe(g?(0,b.h)((V,B)=>g(V,B,T)):w.y,(0,M.q)(1),N?(0,F.d)(x):(0,O.T)(()=>new c.K))}},44002:(Ze,ee,_)=>{"use strict";_.d(ee,{T:()=>y});var c=_(24096),b=_(57451);class y extends b.y{constructor(N,T,V){super(),this.key=N,this.groupSubject=T,this.refCountSubscription=V}_subscribe(N){const T=new c.w,{refCountSubscription:V,groupSubject:B}=this;return V&&!V.closed&&T.add(new g(V)),T.add(B.subscribe(N)),T}}class g extends c.w{constructor(N){super(),this.parent=N,N.count++}unsubscribe(){const N=this.parent;!N.closed&&!this.closed&&(super.unsubscribe(),N.count-=1,0===N.count&&N.attemptedToUnsubscribe&&N.unsubscribe())}}},24850:(Ze,ee,_)=>{"use strict";_.d(ee,{U:()=>b});var c=_(43489);function b(O,w){return function(g){if("function"!=typeof O)throw new TypeError("argument is not a function. Are you looking for `mapTo()`?");return g.lift(new M(O,w))}}class M{constructor(w,y){this.project=w,this.thisArg=y}call(w,y){return y.subscribe(new F(w,this.project,this.thisArg))}}class F extends c.L{constructor(w,y,g){super(w),this.project=y,this.count=0,this.thisArg=g||this}_next(w){let y;try{y=this.project.call(this.thisArg,w,this.count++)}catch(g){return void this.destination.error(g)}this.destination.next(y)}}},89146:(Ze,ee,_)=>{"use strict";_.d(ee,{J:()=>M});var c=_(61709),b=_(35379);function M(F=Number.POSITIVE_INFINITY){return(0,c.zg)(b.y,F)}},61709:(Ze,ee,_)=>{"use strict";_.d(ee,{zg:()=>w});var c=_(69054),b=_(826),M=_(51869),F=_(24850),O=_(63527);function w(x,N,T=Number.POSITIVE_INFINITY){return"function"==typeof N?V=>V.pipe(w((B,q)=>(0,O.D)(x(B,q)).pipe((0,F.U)((de,se)=>N(B,de,q,se))),T)):("number"==typeof N&&(T=N),V=>V.lift(new y(x,T)))}class y{constructor(N,T=Number.POSITIVE_INFINITY){this.project=N,this.concurrent=T}call(N,T){return T.subscribe(new g(N,this.project,this.concurrent))}}class g extends b.L{constructor(N,T,V=Number.POSITIVE_INFINITY){super(N),this.project=T,this.concurrent=V,this.hasCompleted=!1,this.buffer=[],this.active=0,this.index=0}_next(N){this.active<this.concurrent?this._tryNext(N):this.buffer.push(N)}_tryNext(N){let T;const V=this.index++;try{T=this.project(N,V)}catch(B){return void this.destination.error(B)}this.active++,this._innerSub(T,N,V)}_innerSub(N,T,V){const B=new M.d(this,T,V),q=this.destination;q.add(B);const de=(0,c.D)(this,N,void 0,void 0,B);de!==B&&q.add(de)}_complete(){this.hasCompleted=!0,0===this.active&&0===this.buffer.length&&this.destination.complete(),this.unsubscribe()}notifyNext(N,T,V,B,q){this.destination.next(T)}notifyComplete(N){const T=this.buffer;this.remove(N),this.active--,T.length>0?this._next(T.shift()):0===this.active&&this.hasCompleted&&this.destination.complete()}}},74327:(Ze,ee,_)=>{"use strict";_.d(ee,{x:()=>b});var c=_(43489);function b(){return function(w){return w.lift(new M(w))}}class M{constructor(w){this.connectable=w}call(w,y){const{connectable:g}=this;g._refCount++;const x=new F(w,g),N=y.subscribe(x);return x.closed||(x.connection=g.connect()),N}}class F extends c.L{constructor(w,y){super(w),this.connectable=y}_unsubscribe(){const{connectable:w}=this;if(!w)return void(this.connection=null);this.connectable=null;const y=w._refCount;if(y<=0)return void(this.connection=null);if(w._refCount=y-1,y>1)return void(this.connection=null);const{connection:g}=this,x=w._connection;this.connection=null,x&&(!g||x===g)&&x.unsubscribe()}}},72986:(Ze,ee,_)=>{"use strict";_.d(ee,{q:()=>F});var c=_(43489),b=_(94231),M=_(68896);function F(y){return g=>0===y?(0,M.c)():g.lift(new O(y))}class O{constructor(g){if(this.total=g,this.total<0)throw new b.W}call(g,x){return x.subscribe(new w(g,this.total))}}class w extends c.L{constructor(g,x){super(g),this.total=x,this.count=0}_next(g){const x=this.total,N=++this.count;N<=x&&(this.destination.next(g),N===x&&(this.destination.complete(),this.unsubscribe()))}}},2994:(Ze,ee,_)=>{"use strict";_.d(ee,{b:()=>F});var c=_(43489),b=_(67876),M=_(67043);function F(y,g,x){return function(T){return T.lift(new O(y,g,x))}}class O{constructor(g,x,N){this.nextOrObserver=g,this.error=x,this.complete=N}call(g,x){return x.subscribe(new w(g,this.nextOrObserver,this.error,this.complete))}}class w extends c.L{constructor(g,x,N,T){super(g),this._tapNext=b.Z,this._tapError=b.Z,this._tapComplete=b.Z,this._tapError=N||b.Z,this._tapComplete=T||b.Z,(0,M.m)(x)?(this._context=this,this._tapNext=x):x&&(this._context=x,this._tapNext=x.next||b.Z,this._tapError=x.error||b.Z,this._tapComplete=x.complete||b.Z)}_next(g){try{this._tapNext.call(this._context,g)}catch(x){return void this.destination.error(x)}this.destination.next(g)}_error(g){try{this._tapError.call(this._context,g)}catch(x){return void this.destination.error(x)}this.destination.error(g)}_complete(){try{this._tapComplete.call(this._context)}catch(g){return void this.destination.error(g)}return this.destination.complete()}}},22444:(Ze,ee,_)=>{"use strict";_.d(ee,{d:()=>c});const c={leading:!0,trailing:!1}},34907:(Ze,ee,_)=>{"use strict";_.d(ee,{T:()=>M});var c=_(84450),b=_(43489);function M(y=w){return g=>g.lift(new F(y))}class F{constructor(g){this.errorFactory=g}call(g,x){return x.subscribe(new O(g,this.errorFactory))}}class O extends b.L{constructor(g,x){super(g),this.errorFactory=x,this.hasValue=!1}_next(g){this.hasValue=!0,this.destination.next(g)}_complete(){if(this.hasValue)return this.destination.complete();{let g;try{g=this.errorFactory()}catch(x){g=x}this.destination.error(g)}}}function w(){return new c.K}},66454:(Ze,ee,_)=>{"use strict";_.d(ee,{r:()=>M});var c=_(57451),b=_(24096);function M(F,O){return new c.y(w=>{const y=new b.w;let g=0;return y.add(O.schedule(function(){g!==F.length?(w.next(F[g++]),w.closed||y.add(this.schedule())):w.complete()})),y})}},16389:(Ze,ee,_)=>{"use strict";_.d(ee,{Q:()=>F});var c=_(57451),b=_(24096),M=_(5430);function F(O,w){if(!O)throw new Error("Iterable cannot be null");return new c.y(y=>{const g=new b.w;let x;return g.add(()=>{x&&"function"==typeof x.return&&x.return()}),g.add(w.schedule(()=>{x=O[M.hZ](),g.add(w.schedule(function(){if(y.closed)return;let N,T;try{const V=x.next();N=V.value,T=V.done}catch(V){return void y.error(V)}T?y.complete():(y.next(N),this.schedule())}))})),g})}},78687:(Ze,ee,_)=>{"use strict";_.d(ee,{c:()=>M});var c=_(57451),b=_(24096);function M(F,O){return new c.y(w=>{const y=new b.w;return y.add(O.schedule(()=>F.then(g=>{y.add(O.schedule(()=>{w.next(g),y.add(O.schedule(()=>w.complete()))}))},g=>{y.add(O.schedule(()=>w.error(g)))}))),y})}},26266:(Ze,ee,_)=>{"use strict";_.d(ee,{x:()=>V});var c=_(57451),b=_(24096),M=_(93821),O=_(78687),w=_(66454),y=_(16389),g=_(28845),x=_(98955),N=_(58515),T=_(22198);function V(B,q){if(null!=B){if((0,g.c)(B))return function F(B,q){return new c.y(de=>{const se=new b.w;return se.add(q.schedule(()=>{const De=B[M.L]();se.add(De.subscribe({next(he){se.add(q.schedule(()=>de.next(he)))},error(he){se.add(q.schedule(()=>de.error(he)))},complete(){se.add(q.schedule(()=>de.complete()))}}))})),se})}(B,q);if((0,x.t)(B))return(0,O.c)(B,q);if((0,N.z)(B))return(0,w.r)(B,q);if((0,T.T)(B)||"string"==typeof B)return(0,y.Q)(B,q)}throw new TypeError((null!==B&&typeof B||B)+" is not observable")}},56686:(Ze,ee,_)=>{"use strict";_.d(ee,{o:()=>M});var c=_(24096);class b extends c.w{constructor(O,w){super()}schedule(O,w=0){return this}}class M extends b{constructor(O,w){super(O,w),this.scheduler=O,this.work=w,this.pending=!1}schedule(O,w=0){if(this.closed)return this;this.state=O;const y=this.id,g=this.scheduler;return null!=y&&(this.id=this.recycleAsyncId(g,y,w)),this.pending=!0,this.delay=w,this.id=this.id||this.requestAsyncId(g,this.id,w),this}requestAsyncId(O,w,y=0){return setInterval(O.flush.bind(O,this),y)}recycleAsyncId(O,w,y=0){if(null!==y&&this.delay===y&&!1===this.pending)return w;clearInterval(w)}execute(O,w){if(this.closed)return new Error("executing a cancelled action");this.pending=!1;const y=this._execute(O,w);if(y)return y;!1===this.pending&&null!=this.id&&(this.id=this.recycleAsyncId(this.scheduler,this.id,null))}_execute(O,w){let g,y=!1;try{this.work(O)}catch(x){y=!0,g=!!x&&x||new Error(x)}if(y)return this.unsubscribe(),g}_unsubscribe(){const O=this.id,w=this.scheduler,y=w.actions,g=y.indexOf(this);this.work=null,this.state=null,this.pending=!1,this.scheduler=null,-1!==g&&y.splice(g,1),null!=O&&(this.id=this.recycleAsyncId(w,O,null)),this.delay=null}}},20198:(Ze,ee,_)=>{"use strict";_.d(ee,{v:()=>b});var c=_(62221);class b extends c.b{constructor(F,O=c.b.now){super(F,()=>b.delegate&&b.delegate!==this?b.delegate.now():O()),this.actions=[],this.active=!1,this.scheduled=void 0}schedule(F,O=0,w){return b.delegate&&b.delegate!==this?b.delegate.schedule(F,O,w):super.schedule(F,O,w)}flush(F){const{actions:O}=this;if(this.active)return void O.push(F);let w;this.active=!0;do{if(w=F.execute(F.state,F.delay))break}while(F=O.shift());if(this.active=!1,w){for(;F=O.shift();)F.unsubscribe();throw w}}}},59931:(Ze,ee,_)=>{"use strict";_.d(ee,{e:()=>w});var c=_(1450),b=_(56686),F=_(20198);const w=new class O extends F.v{flush(g){this.active=!0,this.scheduled=void 0;const{actions:x}=this;let N,T=-1,V=x.length;g=g||x.shift();do{if(N=g.execute(g.state,g.delay))break}while(++T<V&&(g=x.shift()));if(this.active=!1,N){for(;++T<V&&(g=x.shift());)g.unsubscribe();throw N}}}(class M extends b.o{constructor(g,x){super(g,x),this.scheduler=g,this.work=x}requestAsyncId(g,x,N=0){return null!==N&&N>0?super.requestAsyncId(g,x,N):(g.actions.push(this),g.scheduled||(g.scheduled=c.H.setImmediate(g.flush.bind(g,null))))}recycleAsyncId(g,x,N=0){if(null!==N&&N>0||null===N&&this.delay>0)return super.recycleAsyncId(g,x,N);0===g.actions.length&&(c.H.clearImmediate(x),g.scheduled=void 0)}})},20353:(Ze,ee,_)=>{"use strict";_.d(ee,{P:()=>M});var c=_(56686);const M=new(_(20198).v)(c.o)},30341:(Ze,ee,_)=>{"use strict";_.d(ee,{c:()=>O});var c=_(56686),M=_(20198);const O=new class F extends M.v{}(class b extends c.o{constructor(y,g){super(y,g),this.scheduler=y,this.work=g}schedule(y,g=0){return g>0?super.schedule(y,g):(this.delay=g,this.state=y,this.scheduler.flush(this),this)}execute(y,g){return g>0||this.closed?super.execute(y,g):this._execute(y,g)}requestAsyncId(y,g,x=0){return null!==x&&x>0||null===x&&this.delay>0?super.requestAsyncId(y,g,x):y.flush(this)}})},5430:(Ze,ee,_)=>{"use strict";_.d(ee,{hZ:()=>b});const b=function c(){return"function"==typeof Symbol&&Symbol.iterator?Symbol.iterator:"@@iterator"}()},93821:(Ze,ee,_)=>{"use strict";_.d(ee,{L:()=>c});const c="function"==typeof Symbol&&Symbol.observable||"@@observable"},57668:(Ze,ee,_)=>{"use strict";_.d(ee,{b:()=>c});const c="function"==typeof Symbol?Symbol("rxSubscriber"):"@@rxSubscriber_"+Math.random()},94231:(Ze,ee,_)=>{"use strict";_.d(ee,{W:()=>b});const b=(()=>{function M(){return Error.call(this),this.message="argument out of range",this.name="ArgumentOutOfRangeError",this}return M.prototype=Object.create(Error.prototype),M})()},84450:(Ze,ee,_)=>{"use strict";_.d(ee,{K:()=>b});const b=(()=>{function M(){return Error.call(this),this.message="no elements in sequence",this.name="EmptyError",this}return M.prototype=Object.create(Error.prototype),M})()},1450:(Ze,ee,_)=>{"use strict";_.d(ee,{H:()=>O});let c=1;const b=Promise.resolve(),M={};function F(y){return y in M&&(delete M[y],!0)}const O={setImmediate(y){const g=c++;return M[g]=!0,b.then(()=>F(g)&&y()),g},clearImmediate(y){F(y)}}},95279:(Ze,ee,_)=>{"use strict";_.d(ee,{N:()=>b});const b=(()=>{function M(){return Error.call(this),this.message="object unsubscribed",this.name="ObjectUnsubscribedError",this}return M.prototype=Object.create(Error.prototype),M})()},80854:(Ze,ee,_)=>{"use strict";_.d(ee,{W:()=>b});const b=(()=>{function M(){return Error.call(this),this.message="Timeout has occurred",this.name="TimeoutError",this}return M.prototype=Object.create(Error.prototype),M})()},87964:(Ze,ee,_)=>{"use strict";_.d(ee,{B:()=>b});const b=(()=>{function M(F){return Error.call(this),this.message=F?`${F.length} errors occurred during unsubscription:\n${F.map((O,w)=>`${w+1}) ${O.toString()}`).join("\n ")}`:"",this.name="UnsubscriptionError",this.errors=F,this}return M.prototype=Object.create(Error.prototype),M})()},29476:(Ze,ee,_)=>{"use strict";_.d(ee,{_:()=>b});var c=_(43489);function b(M){for(;M;){const{closed:F,destination:O,isStopped:w}=M;if(F||w)return!1;M=O&&O instanceof c.L?O:null}return!0}},22782:(Ze,ee,_)=>{"use strict";function c(b){setTimeout(()=>{throw b},0)}_.d(ee,{z:()=>c})},35379:(Ze,ee,_)=>{"use strict";function c(b){return b}_.d(ee,{y:()=>c})},66688:(Ze,ee,_)=>{"use strict";_.d(ee,{k:()=>c});const c=Array.isArray||(b=>b&&"number"==typeof b.length)},58515:(Ze,ee,_)=>{"use strict";_.d(ee,{z:()=>c});const c=b=>b&&"number"==typeof b.length&&"function"!=typeof b},67043:(Ze,ee,_)=>{"use strict";function c(b){return"function"==typeof b}_.d(ee,{m:()=>c})},28845:(Ze,ee,_)=>{"use strict";_.d(ee,{c:()=>b});var c=_(93821);function b(M){return M&&"function"==typeof M[c.L]}},22198:(Ze,ee,_)=>{"use strict";_.d(ee,{T:()=>b});var c=_(5430);function b(M){return M&&"function"==typeof M[c.hZ]}},84241:(Ze,ee,_)=>{"use strict";_.d(ee,{k:()=>b});var c=_(66688);function b(M){return!(0,c.k)(M)&&M-parseFloat(M)+1>=0}},57830:(Ze,ee,_)=>{"use strict";function c(b){return null!==b&&"object"==typeof b}_.d(ee,{K:()=>c})},98955:(Ze,ee,_)=>{"use strict";function c(b){return!!b&&"function"!=typeof b.subscribe&&"function"==typeof b.then}_.d(ee,{t:()=>c})},72866:(Ze,ee,_)=>{"use strict";function c(b){return b&&"function"==typeof b.schedule}_.d(ee,{K:()=>c})},67876:(Ze,ee,_)=>{"use strict";function c(){}_.d(ee,{Z:()=>c})},45884:(Ze,ee,_)=>{"use strict";function c(b,M){function F(){return!F.pred.apply(F.thisArg,arguments)}return F.pred=b,F.thisArg=M,F}_.d(ee,{f:()=>c})},4843:(Ze,ee,_)=>{"use strict";_.d(ee,{U:()=>M,z:()=>b});var c=_(35379);function b(...F){return M(F)}function M(F){return 0===F.length?c.y:1===F.length?F[0]:function(w){return F.reduce((y,g)=>g(y),w)}}},33071:(Ze,ee,_)=>{"use strict";_.d(ee,{s:()=>N});var c=_(13650),b=_(83445),M=_(83720),F=_(91810),O=_(58515),w=_(98955),y=_(57830),g=_(5430),x=_(93821);const N=T=>{if(T&&"function"==typeof T[x.L])return(0,F.h)(T);if((0,O.z)(T))return(0,c.V)(T);if((0,w.t)(T))return(0,b.A)(T);if(T&&"function"==typeof T[g.hZ])return(0,M.u)(T);{const B=`You provided ${(0,y.K)(T)?"an invalid object":`'${T}'`} where a stream was expected. You can provide an Observable, Promise, Array, or Iterable.`;throw new TypeError(B)}}},13650:(Ze,ee,_)=>{"use strict";_.d(ee,{V:()=>c});const c=b=>M=>{for(let F=0,O=b.length;F<O&&!M.closed;F++)M.next(b[F]);M.complete()}},83720:(Ze,ee,_)=>{"use strict";_.d(ee,{u:()=>b});var c=_(5430);const b=M=>F=>{const O=M[c.hZ]();for(;;){const w=O.next();if(w.done){F.complete();break}if(F.next(w.value),F.closed)break}return"function"==typeof O.return&&F.add(()=>{O.return&&O.return()}),F}},91810:(Ze,ee,_)=>{"use strict";_.d(ee,{h:()=>b});var c=_(93821);const b=M=>F=>{const O=M[c.L]();if("function"!=typeof O.subscribe)throw new TypeError("Provided object does not correctly implement Symbol.observable");return O.subscribe(F)}},83445:(Ze,ee,_)=>{"use strict";_.d(ee,{A:()=>b});var c=_(22782);const b=M=>F=>(M.then(O=>{F.closed||(F.next(O),F.complete())},O=>F.error(O)).then(null,c.z),F)},69054:(Ze,ee,_)=>{"use strict";_.d(ee,{D:()=>F});var c=_(51869),b=_(33071),M=_(57451);function F(O,w,y,g,x=new c.d(O,y,g)){if(!x.closed)return w instanceof M.y?w.subscribe(x):(0,b.s)(w)(x)}},5221:(Ze,ee,_)=>{"use strict";_.d(ee,{Y:()=>F});var c=_(43489),b=_(57668),M=_(73292);function F(O,w,y){if(O){if(O instanceof c.L)return O;if(O[b.b])return O[b.b]()}return O||w||y?new c.L(O,w,y):new c.L(M.c)}},55123:(Ze,ee,_)=>{"use strict";Object.defineProperty(ee,"__esModule",{value:!0}),function c(b){for(var M in b)ee.hasOwnProperty(M)||(ee[M]=b[M])}(_(52222))},75557:(Ze,ee,_)=>{"use strict";function c(b,M){return M=M||{},new Promise(function(F,O){var w=new XMLHttpRequest,y=[],g=[],x={},N=function(){return{ok:2==(w.status/100|0),statusText:w.statusText,status:w.status,url:w.responseURL,text:function(){return Promise.resolve(w.responseText)},json:function(){return Promise.resolve(w.responseText).then(JSON.parse)},blob:function(){return Promise.resolve(new Blob([w.response]))},clone:N,headers:{keys:function(){return y},entries:function(){return g},get:function(V){return x[V.toLowerCase()]},has:function(V){return V.toLowerCase()in x}}}};for(var T in w.open(M.method||"get",b,!0),w.onload=function(){w.getAllResponseHeaders().replace(/^(.*?):[^\S\n]*([\s\S]*?)$/gm,function(V,B,q){y.push(B=B.toLowerCase()),g.push([B,q]),x[B]=x[B]?x[B]+","+q:q}),F(N())},w.onerror=O,w.withCredentials="include"==M.credentials,M.headers)w.setRequestHeader(T,M.headers[T]);w.send(M.body||null)})}_.r(ee),_.d(ee,{default:()=>c})},11308:function(Ze,ee,_){var c;Ze=_.nmd(Ze),function(b){"object"==typeof global&&global;var w,y=2147483647,g=36,x=1,N=26,T=38,V=700,B=72,q=128,de="-",se=/^xn--/,De=/[^\x20-\x7E]/,he=/[\x2E\u3002\uFF0E\uFF61]/g,xe={overflow:"Overflow: input needs wider integers to process","not-basic":"Illegal input >= 0x80 (not a basic code point)","invalid-input":"Invalid input"},Me=g-x,be=Math.floor,Y=String.fromCharCode;function le(ke){throw RangeError(xe[ke])}function R(ke,ve){for(var ze=ke.length,Ie=[];ze--;)Ie[ze]=ve(ke[ze]);return Ie}function U(ke,ve){var ze=ke.split("@"),Ie="";return ze.length>1&&(Ie=ze[0]+"@",ke=ze[1]),Ie+R((ke=ke.replace(he,".")).split("."),ve).join(".")}function W(ke){for(var ft,pt,ve=[],ze=0,Ie=ke.length;ze<Ie;)(ft=ke.charCodeAt(ze++))>=55296&&ft<=56319&&ze<Ie?56320==(64512&(pt=ke.charCodeAt(ze++)))?ve.push(((1023&ft)<<10)+(1023&pt)+65536):(ve.push(ft),ze--):ve.push(ft);return ve}function oe(ke){return R(ke,function(ve){var ze="";return ve>65535&&(ze+=Y((ve-=65536)>>>10&1023|55296),ve=56320|1023&ve),ze+Y(ve)}).join("")}function ge(ke){return ke-48<10?ke-22:ke-65<26?ke-65:ke-97<26?ke-97:g}function Q(ke,ve){return ke+22+75*(ke<26)-((0!=ve)<<5)}function ye(ke,ve,ze){var Ie=0;for(ke=ze?be(ke/V):ke>>1,ke+=be(ke/ve);ke>Me*N>>1;Ie+=g)ke=be(ke/Me);return be(Ie+(Me+1)*ke/(ke+T))}function Le(ke){var Ie,yt,Pt,Zt,nn,qt,Ut,jt,hn,xn,ve=[],ze=ke.length,ft=0,pt=q,mt=B;for((yt=ke.lastIndexOf(de))<0&&(yt=0),Pt=0;Pt<yt;++Pt)ke.charCodeAt(Pt)>=128&&le("not-basic"),ve.push(ke.charCodeAt(Pt));for(Zt=yt>0?yt+1:0;Zt<ze;){for(nn=ft,qt=1,Ut=g;Zt>=ze&&le("invalid-input"),((jt=ge(ke.charCodeAt(Zt++)))>=g||jt>be((y-ft)/qt))&&le("overflow"),ft+=jt*qt,!(jt<(hn=Ut<=mt?x:Ut>=mt+N?N:Ut-mt));Ut+=g)qt>be(y/(xn=g-hn))&&le("overflow"),qt*=xn;mt=ye(ft-nn,Ie=ve.length+1,0==nn),be(ft/Ie)>y-pt&&le("overflow"),pt+=be(ft/Ie),ft%=Ie,ve.splice(ft++,0,pt)}return oe(ve)}function Ye(ke){var ve,ze,Ie,ft,pt,mt,yt,Pt,Zt,nn,qt,jt,hn,xn,Tn,Ut=[];for(jt=(ke=W(ke)).length,ve=q,ze=0,pt=B,mt=0;mt<jt;++mt)(qt=ke[mt])<128&&Ut.push(Y(qt));for(Ie=ft=Ut.length,ft&&Ut.push(de);Ie<jt;){for(yt=y,mt=0;mt<jt;++mt)(qt=ke[mt])>=ve&&qt<yt&&(yt=qt);for(yt-ve>be((y-ze)/(hn=Ie+1))&&le("overflow"),ze+=(yt-ve)*hn,ve=yt,mt=0;mt<jt;++mt)if((qt=ke[mt])<ve&&++ze>y&&le("overflow"),qt==ve){for(Pt=ze,Zt=g;!(Pt<(nn=Zt<=pt?x:Zt>=pt+N?N:Zt-pt));Zt+=g)Ut.push(Y(Q(nn+(Tn=Pt-nn)%(xn=g-nn),0))),Pt=be(Tn/xn);Ut.push(Y(Q(Pt,0))),pt=ye(ze,hn,Ie==ft),ze=0,++Ie}++ze,++ve}return Ut.join("")}w={version:"1.3.2",ucs2:{decode:W,encode:oe},decode:Le,encode:Ye,toASCII:function Ge(ke){return U(ke,function(ve){return De.test(ve)?"xn--"+Ye(ve):ve})},toUnicode:function we(ke){return U(ke,function(ve){return se.test(ve)?Le(ve.slice(4).toLowerCase()):ve})}},void 0!==(c=function(){return w}.call(ee,_,ee,Ze))&&(Ze.exports=c)}()},68762:(Ze,ee,_)=>{"use strict";var b=_(11308),M=_(70796);function F(){this.protocol=null,this.slashes=null,this.auth=null,this.host=null,this.port=null,this.hostname=null,this.hash=null,this.search=null,this.query=null,this.pathname=null,this.path=null,this.href=null}ee.Qc=Me;var O=/^([a-z0-9.+-]+:)/i,w=/:[0-9]*$/,y=/^(\/\/?(?!\/)[^\?\s]*)(\?[^\s]*)?$/,x=["{","}","|","\\","^","`"].concat(["<",">",'"',"`"," ","\r","\n","\t"]),N=["'"].concat(x),T=["%","/","?",";","#"].concat(N),V=["/","?","#"],q=/^[+a-z0-9A-Z_-]{0,63}$/,de=/^([+a-z0-9A-Z_-]{0,63})(.*)$/,se={javascript:!0,"javascript:":!0},De={javascript:!0,"javascript:":!0},he={http:!0,https:!0,ftp:!0,gopher:!0,file:!0,"http:":!0,"https:":!0,"ftp:":!0,"gopher:":!0,"file:":!0},xe=_(17137);function Me(le,R,U){if(le&&M.isObject(le)&&le instanceof F)return le;var W=new F;return W.parse(le,R,U),W}F.prototype.parse=function(le,R,U){if(!M.isString(le))throw new TypeError("Parameter 'url' must be a string, not "+typeof le);var W=le.indexOf("?"),oe=-1!==W&&W<le.indexOf("#")?"?":"#",ge=le.split(oe);ge[0]=ge[0].replace(/\\/g,"/");var ye=le=ge.join(oe);if(ye=ye.trim(),!U&&1===le.split("#").length){var Le=y.exec(ye);if(Le)return this.path=ye,this.href=ye,this.pathname=Le[1],Le[2]?(this.search=Le[2],this.query=R?xe.parse(this.search.substr(1)):this.search.substr(1)):R&&(this.search="",this.query={}),this}var Ye=O.exec(ye);if(Ye){var we=(Ye=Ye[0]).toLowerCase();this.protocol=we,ye=ye.substr(Ye.length)}if(U||Ye||ye.match(/^\/\/[^@\/]+@[^@\/]+/)){var Ge="//"===ye.substr(0,2);Ge&&(!Ye||!De[Ye])&&(ye=ye.substr(2),this.slashes=!0)}if(!De[Ye]&&(Ge||Ye&&!he[Ye])){for(var ke=-1,ve=0;ve<V.length;ve++)-1!==(ze=ye.indexOf(V[ve]))&&(-1===ke||ze<ke)&&(ke=ze);var Ie,ft;for(-1!==(ft=-1===ke?ye.lastIndexOf("@"):ye.lastIndexOf("@",ke))&&(Ie=ye.slice(0,ft),ye=ye.slice(ft+1),this.auth=decodeURIComponent(Ie)),ke=-1,ve=0;ve<T.length;ve++){var ze;-1!==(ze=ye.indexOf(T[ve]))&&(-1===ke||ze<ke)&&(ke=ze)}-1===ke&&(ke=ye.length),this.host=ye.slice(0,ke),ye=ye.slice(ke),this.parseHost(),this.hostname=this.hostname||"";var pt="["===this.hostname[0]&&"]"===this.hostname[this.hostname.length-1];if(!pt)for(var mt=this.hostname.split(/\./),yt=(ve=0,mt.length);ve<yt;ve++){var Pt=mt[ve];if(Pt&&!Pt.match(q)){for(var Zt="",nn=0,qt=Pt.length;nn<qt;nn++)Pt.charCodeAt(nn)>127?Zt+="x":Zt+=Pt[nn];if(!Zt.match(q)){var Ut=mt.slice(0,ve),jt=mt.slice(ve+1),hn=Pt.match(de);hn&&(Ut.push(hn[1]),jt.unshift(hn[2])),jt.length&&(ye="/"+jt.join(".")+ye),this.hostname=Ut.join(".");break}}}this.hostname=this.hostname.length>255?"":this.hostname.toLowerCase(),pt||(this.hostname=b.toASCII(this.hostname)),this.host=(this.hostname||"")+(this.port?":"+this.port:""),this.href+=this.host,pt&&(this.hostname=this.hostname.substr(1,this.hostname.length-2),"/"!==ye[0]&&(ye="/"+ye))}if(!se[we])for(ve=0,yt=N.length;ve<yt;ve++){var wn=N[ve];if(-1!==ye.indexOf(wn)){var zt=encodeURIComponent(wn);zt===wn&&(zt=escape(wn)),ye=ye.split(wn).join(zt)}}var je=ye.indexOf("#");-1!==je&&(this.hash=ye.substr(je),ye=ye.slice(0,je));var ne=ye.indexOf("?");return-1!==ne?(this.search=ye.substr(ne),this.query=ye.substr(ne+1),R&&(this.query=xe.parse(this.query)),ye=ye.slice(0,ne)):R&&(this.search="",this.query={}),ye&&(this.pathname=ye),he[we]&&this.hostname&&!this.pathname&&(this.pathname="/"),(this.pathname||this.search)&&(this.path=(this.pathname||"")+(this.search||"")),this.href=this.format(),this},F.prototype.format=function(){var le=this.auth||"";le&&(le=(le=encodeURIComponent(le)).replace(/%3A/i,":"),le+="@");var R=this.protocol||"",U=this.pathname||"",W=this.hash||"",oe=!1,ge="";this.host?oe=le+this.host:this.hostname&&(oe=le+(-1===this.hostname.indexOf(":")?this.hostname:"["+this.hostname+"]"),this.port&&(oe+=":"+this.port)),this.query&&M.isObject(this.query)&&Object.keys(this.query).length&&(ge=xe.stringify(this.query));var Q=this.search||ge&&"?"+ge||"";return R&&":"!==R.substr(-1)&&(R+=":"),this.slashes||(!R||he[R])&&!1!==oe?(oe="//"+(oe||""),U&&"/"!==U.charAt(0)&&(U="/"+U)):oe||(oe=""),W&&"#"!==W.charAt(0)&&(W="#"+W),Q&&"?"!==Q.charAt(0)&&(Q="?"+Q),R+oe+(U=U.replace(/[?#]/g,function(ye){return encodeURIComponent(ye)}))+(Q=Q.replace("#","%23"))+W},F.prototype.resolve=function(le){return this.resolveObject(Me(le,!1,!0)).format()},F.prototype.resolveObject=function(le){if(M.isString(le)){var R=new F;R.parse(le,!1,!0),le=R}for(var U=new F,W=Object.keys(this),oe=0;oe<W.length;oe++){var ge=W[oe];U[ge]=this[ge]}if(U.hash=le.hash,""===le.href)return U.href=U.format(),U;if(le.slashes&&!le.protocol){for(var Q=Object.keys(le),ye=0;ye<Q.length;ye++){var Le=Q[ye];"protocol"!==Le&&(U[Le]=le[Le])}return he[U.protocol]&&U.hostname&&!U.pathname&&(U.path=U.pathname="/"),U.href=U.format(),U}if(le.protocol&&le.protocol!==U.protocol){if(!he[le.protocol]){for(var Ye=Object.keys(le),we=0;we<Ye.length;we++){var Ge=Ye[we];U[Ge]=le[Ge]}return U.href=U.format(),U}if(U.protocol=le.protocol,le.host||De[le.protocol])U.pathname=le.pathname;else{for(var yt=(le.pathname||"").split("/");yt.length&&!(le.host=yt.shift()););le.host||(le.host=""),le.hostname||(le.hostname=""),""!==yt[0]&&yt.unshift(""),yt.length<2&&yt.unshift(""),U.pathname=yt.join("/")}return U.search=le.search,U.query=le.query,U.host=le.host||"",U.auth=le.auth,U.hostname=le.hostname||le.host,U.port=le.port,(U.pathname||U.search)&&(U.path=(U.pathname||"")+(U.search||"")),U.slashes=U.slashes||le.slashes,U.href=U.format(),U}var ze=U.pathname&&"/"===U.pathname.charAt(0),Ie=le.host||le.pathname&&"/"===le.pathname.charAt(0),ft=Ie||ze||U.host&&le.pathname,pt=ft,mt=U.pathname&&U.pathname.split("/")||[],Pt=(yt=le.pathname&&le.pathname.split("/")||[],U.protocol&&!he[U.protocol]);if(Pt&&(U.hostname="",U.port=null,U.host&&(""===mt[0]?mt[0]=U.host:mt.unshift(U.host)),U.host="",le.protocol&&(le.hostname=null,le.port=null,le.host&&(""===yt[0]?yt[0]=le.host:yt.unshift(le.host)),le.host=null),ft=ft&&(""===yt[0]||""===mt[0])),Ie)U.host=le.host||""===le.host?le.host:U.host,U.hostname=le.hostname||""===le.hostname?le.hostname:U.hostname,U.search=le.search,U.query=le.query,mt=yt;else if(yt.length)mt||(mt=[]),mt.pop(),mt=mt.concat(yt),U.search=le.search,U.query=le.query;else if(!M.isNullOrUndefined(le.search))return Pt&&(U.hostname=U.host=mt.shift(),(Zt=!!(U.host&&U.host.indexOf("@")>0)&&U.host.split("@"))&&(U.auth=Zt.shift(),U.host=U.hostname=Zt.shift())),U.search=le.search,U.query=le.query,(!M.isNull(U.pathname)||!M.isNull(U.search))&&(U.path=(U.pathname?U.pathname:"")+(U.search?U.search:"")),U.href=U.format(),U;if(!mt.length)return U.pathname=null,U.path=U.search?"/"+U.search:null,U.href=U.format(),U;for(var nn=mt.slice(-1)[0],qt=(U.host||le.host||mt.length>1)&&("."===nn||".."===nn)||""===nn,Ut=0,jt=mt.length;jt>=0;jt--)"."===(nn=mt[jt])?mt.splice(jt,1):".."===nn?(mt.splice(jt,1),Ut++):Ut&&(mt.splice(jt,1),Ut--);if(!ft&&!pt)for(;Ut--;Ut)mt.unshift("..");ft&&""!==mt[0]&&(!mt[0]||"/"!==mt[0].charAt(0))&&mt.unshift(""),qt&&"/"!==mt.join("/").substr(-1)&&mt.push("");var Zt,hn=""===mt[0]||mt[0]&&"/"===mt[0].charAt(0);return Pt&&(U.hostname=U.host=hn?"":mt.length?mt.shift():"",(Zt=!!(U.host&&U.host.indexOf("@")>0)&&U.host.split("@"))&&(U.auth=Zt.shift(),U.host=U.hostname=Zt.shift())),(ft=ft||U.host&&mt.length)&&!hn&&mt.unshift(""),mt.length?U.pathname=mt.join("/"):(U.pathname=null,U.path=null),(!M.isNull(U.pathname)||!M.isNull(U.search))&&(U.path=(U.pathname?U.pathname:"")+(U.search?U.search:"")),U.auth=le.auth||U.auth,U.slashes=U.slashes||le.slashes,U.href=U.format(),U},F.prototype.parseHost=function(){var le=this.host,R=w.exec(le);R&&(":"!==(R=R[0])&&(this.port=R.substr(1)),le=le.substr(0,le.length-R.length)),le&&(this.hostname=le)}},70796:Ze=>{"use strict";Ze.exports={isString:function(ee){return"string"==typeof ee},isObject:function(ee){return"object"==typeof ee&&null!==ee},isNull:function(ee){return null===ee},isNullOrUndefined:function(ee){return null==ee}}},19444:(Ze,ee,_)=>{var c=_(4542),b=_(66926),M=b;M.v1=c,M.v4=b,Ze.exports=M},77805:Ze=>{for(var ee=[],_=0;_<256;++_)ee[_]=(_+256).toString(16).substr(1);Ze.exports=function c(b,M){var F=M||0;return[ee[b[F++]],ee[b[F++]],ee[b[F++]],ee[b[F++]],"-",ee[b[F++]],ee[b[F++]],"-",ee[b[F++]],ee[b[F++]],"-",ee[b[F++]],ee[b[F++]],"-",ee[b[F++]],ee[b[F++]],ee[b[F++]],ee[b[F++]],ee[b[F++]],ee[b[F++]]].join("")}},7142:Ze=>{var ee=typeof crypto<"u"&&crypto.getRandomValues&&crypto.getRandomValues.bind(crypto)||typeof msCrypto<"u"&&"function"==typeof window.msCrypto.getRandomValues&&msCrypto.getRandomValues.bind(msCrypto);if(ee){var _=new Uint8Array(16);Ze.exports=function(){return ee(_),_}}else{var c=new Array(16);Ze.exports=function(){for(var F,M=0;M<16;M++)3&M||(F=4294967296*Math.random()),c[M]=F>>>((3&M)<<3)&255;return c}}},4542:(Ze,ee,_)=>{var M,F,c=_(7142),b=_(77805),O=0,w=0;Ze.exports=function y(g,x,N){var T=x&&N||0,V=x||[],B=(g=g||{}).node||M,q=void 0!==g.clockseq?g.clockseq:F;if(null==B||null==q){var de=c();null==B&&(B=M=[1|de[0],de[1],de[2],de[3],de[4],de[5]]),null==q&&(q=F=16383&(de[6]<<8|de[7]))}var se=void 0!==g.msecs?g.msecs:(new Date).getTime(),De=void 0!==g.nsecs?g.nsecs:w+1,he=se-O+(De-w)/1e4;if(he<0&&void 0===g.clockseq&&(q=q+1&16383),(he<0||se>O)&&void 0===g.nsecs&&(De=0),De>=1e4)throw new Error("uuid.v1(): Can't create more than 10M uuids/sec");O=se,w=De,F=q;var xe=(1e4*(268435455&(se+=122192928e5))+De)%4294967296;V[T++]=xe>>>24&255,V[T++]=xe>>>16&255,V[T++]=xe>>>8&255,V[T++]=255&xe;var Me=se/4294967296*1e4&268435455;V[T++]=Me>>>8&255,V[T++]=255&Me,V[T++]=Me>>>24&15|16,V[T++]=Me>>>16&255,V[T++]=q>>>8|128,V[T++]=255&q;for(var be=0;be<6;++be)V[T+be]=B[be];return x||b(V)}},66926:(Ze,ee,_)=>{var c=_(7142),b=_(77805);Ze.exports=function M(F,O,w){var y=O&&w||0;"string"==typeof F&&(O="binary"===F?new Array(16):null,F=null);var g=(F=F||{}).random||(F.rng||c)();if(g[6]=15&g[6]|64,g[8]=63&g[8]|128,O)for(var x=0;x<16;++x)O[y+x]=g[x];return O||b(g)}},28008:(Ze,ee,_)=>{"use strict";_.d(ee,{CR:()=>B,Jh:()=>x,XA:()=>V,ZT:()=>b,fl:()=>q,mG:()=>g,pi:()=>M});var c=function(R,U){return(c=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(W,oe){W.__proto__=oe}||function(W,oe){for(var ge in oe)oe.hasOwnProperty(ge)&&(W[ge]=oe[ge])})(R,U)};function b(R,U){function W(){this.constructor=R}c(R,U),R.prototype=null===U?Object.create(U):(W.prototype=U.prototype,new W)}var M=function(){return M=Object.assign||function(U){for(var W,oe=1,ge=arguments.length;oe<ge;oe++)for(var Q in W=arguments[oe])Object.prototype.hasOwnProperty.call(W,Q)&&(U[Q]=W[Q]);return U},M.apply(this,arguments)};function g(R,U,W,oe){return new(W||(W=Promise))(function(Q,ye){function Le(Ge){try{we(oe.next(Ge))}catch(ke){ye(ke)}}function Ye(Ge){try{we(oe.throw(Ge))}catch(ke){ye(ke)}}function we(Ge){Ge.done?Q(Ge.value):function ge(Q){return Q instanceof W?Q:new W(function(ye){ye(Q)})}(Ge.value).then(Le,Ye)}we((oe=oe.apply(R,U||[])).next())})}function x(R,U){var oe,ge,Q,ye,W={label:0,sent:function(){if(1&Q[0])throw Q[1];return Q[1]},trys:[],ops:[]};return ye={next:Le(0),throw:Le(1),return:Le(2)},"function"==typeof Symbol&&(ye[Symbol.iterator]=function(){return this}),ye;function Le(we){return function(Ge){return function Ye(we){if(oe)throw new TypeError("Generator is already executing.");for(;W;)try{if(oe=1,ge&&(Q=2&we[0]?ge.return:we[0]?ge.throw||((Q=ge.return)&&Q.call(ge),0):ge.next)&&!(Q=Q.call(ge,we[1])).done)return Q;switch(ge=0,Q&&(we=[2&we[0],Q.value]),we[0]){case 0:case 1:Q=we;break;case 4:return W.label++,{value:we[1],done:!1};case 5:W.label++,ge=we[1],we=[0];continue;case 7:we=W.ops.pop(),W.trys.pop();continue;default:if(!(Q=(Q=W.trys).length>0&&Q[Q.length-1])&&(6===we[0]||2===we[0])){W=0;continue}if(3===we[0]&&(!Q||we[1]>Q[0]&&we[1]<Q[3])){W.label=we[1];break}if(6===we[0]&&W.label<Q[1]){W.label=Q[1],Q=we;break}if(Q&&W.label<Q[2]){W.label=Q[2],W.ops.push(we);break}Q[2]&&W.ops.pop(),W.trys.pop();continue}we=U.call(R,W)}catch(Ge){we=[6,Ge],ge=0}finally{oe=Q=0}if(5&we[0])throw we[1];return{value:we[0]?we[1]:void 0,done:!0}}([we,Ge])}}}function V(R){var U="function"==typeof Symbol&&Symbol.iterator,W=U&&R[U],oe=0;if(W)return W.call(R);if(R&&"number"==typeof R.length)return{next:function(){return R&&oe>=R.length&&(R=void 0),{value:R&&R[oe++],done:!R}}};throw new TypeError(U?"Object is not iterable.":"Symbol.iterator is not defined.")}function B(R,U){var W="function"==typeof Symbol&&R[Symbol.iterator];if(!W)return R;var ge,ye,oe=W.call(R),Q=[];try{for(;(void 0===U||U-- >0)&&!(ge=oe.next()).done;)Q.push(ge.value)}catch(Le){ye={error:Le}}finally{try{ge&&!ge.done&&(W=oe.return)&&W.call(oe)}finally{if(ye)throw ye.error}}return Q}function q(){for(var R=[],U=0;U<arguments.length;U++)R=R.concat(B(arguments[U]));return R}},11980:(Ze,ee,_)=>{"use strict";_.r(ee),_.d(ee,{__assign:()=>M,__asyncDelegator:()=>he,__asyncGenerator:()=>De,__asyncValues:()=>xe,__await:()=>se,__awaiter:()=>g,__classPrivateFieldGet:()=>Be,__classPrivateFieldSet:()=>le,__createBinding:()=>N,__decorate:()=>O,__exportStar:()=>T,__extends:()=>b,__generator:()=>x,__importDefault:()=>Y,__importStar:()=>be,__makeTemplateObject:()=>Me,__metadata:()=>y,__param:()=>w,__read:()=>B,__rest:()=>F,__spread:()=>q,__spreadArrays:()=>de,__values:()=>V});var c=function(R,U){return(c=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(W,oe){W.__proto__=oe}||function(W,oe){for(var ge in oe)oe.hasOwnProperty(ge)&&(W[ge]=oe[ge])})(R,U)};function b(R,U){function W(){this.constructor=R}c(R,U),R.prototype=null===U?Object.create(U):(W.prototype=U.prototype,new W)}var M=function(){return M=Object.assign||function(U){for(var W,oe=1,ge=arguments.length;oe<ge;oe++)for(var Q in W=arguments[oe])Object.prototype.hasOwnProperty.call(W,Q)&&(U[Q]=W[Q]);return U},M.apply(this,arguments)};function F(R,U){var W={};for(var oe in R)Object.prototype.hasOwnProperty.call(R,oe)&&U.indexOf(oe)<0&&(W[oe]=R[oe]);if(null!=R&&"function"==typeof Object.getOwnPropertySymbols){var ge=0;for(oe=Object.getOwnPropertySymbols(R);ge<oe.length;ge++)U.indexOf(oe[ge])<0&&Object.prototype.propertyIsEnumerable.call(R,oe[ge])&&(W[oe[ge]]=R[oe[ge]])}return W}function O(R,U,W,oe){var ye,ge=arguments.length,Q=ge<3?U:null===oe?oe=Object.getOwnPropertyDescriptor(U,W):oe;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)Q=Reflect.decorate(R,U,W,oe);else for(var Le=R.length-1;Le>=0;Le--)(ye=R[Le])&&(Q=(ge<3?ye(Q):ge>3?ye(U,W,Q):ye(U,W))||Q);return ge>3&&Q&&Object.defineProperty(U,W,Q),Q}function w(R,U){return function(W,oe){U(W,oe,R)}}function y(R,U){if("object"==typeof Reflect&&"function"==typeof Reflect.metadata)return Reflect.metadata(R,U)}function g(R,U,W,oe){return new(W||(W=Promise))(function(Q,ye){function Le(Ge){try{we(oe.next(Ge))}catch(ke){ye(ke)}}function Ye(Ge){try{we(oe.throw(Ge))}catch(ke){ye(ke)}}function we(Ge){Ge.done?Q(Ge.value):function ge(Q){return Q instanceof W?Q:new W(function(ye){ye(Q)})}(Ge.value).then(Le,Ye)}we((oe=oe.apply(R,U||[])).next())})}function x(R,U){var oe,ge,Q,ye,W={label:0,sent:function(){if(1&Q[0])throw Q[1];return Q[1]},trys:[],ops:[]};return ye={next:Le(0),throw:Le(1),return:Le(2)},"function"==typeof Symbol&&(ye[Symbol.iterator]=function(){return this}),ye;function Le(we){return function(Ge){return function Ye(we){if(oe)throw new TypeError("Generator is already executing.");for(;W;)try{if(oe=1,ge&&(Q=2&we[0]?ge.return:we[0]?ge.throw||((Q=ge.return)&&Q.call(ge),0):ge.next)&&!(Q=Q.call(ge,we[1])).done)return Q;switch(ge=0,Q&&(we=[2&we[0],Q.value]),we[0]){case 0:case 1:Q=we;break;case 4:return W.label++,{value:we[1],done:!1};case 5:W.label++,ge=we[1],we=[0];continue;case 7:we=W.ops.pop(),W.trys.pop();continue;default:if(!(Q=(Q=W.trys).length>0&&Q[Q.length-1])&&(6===we[0]||2===we[0])){W=0;continue}if(3===we[0]&&(!Q||we[1]>Q[0]&&we[1]<Q[3])){W.label=we[1];break}if(6===we[0]&&W.label<Q[1]){W.label=Q[1],Q=we;break}if(Q&&W.label<Q[2]){W.label=Q[2],W.ops.push(we);break}Q[2]&&W.ops.pop(),W.trys.pop();continue}we=U.call(R,W)}catch(Ge){we=[6,Ge],ge=0}finally{oe=Q=0}if(5&we[0])throw we[1];return{value:we[0]?we[1]:void 0,done:!0}}([we,Ge])}}}function N(R,U,W,oe){void 0===oe&&(oe=W),R[oe]=U[W]}function T(R,U){for(var W in R)"default"!==W&&!U.hasOwnProperty(W)&&(U[W]=R[W])}function V(R){var U="function"==typeof Symbol&&Symbol.iterator,W=U&&R[U],oe=0;if(W)return W.call(R);if(R&&"number"==typeof R.length)return{next:function(){return R&&oe>=R.length&&(R=void 0),{value:R&&R[oe++],done:!R}}};throw new TypeError(U?"Object is not iterable.":"Symbol.iterator is not defined.")}function B(R,U){var W="function"==typeof Symbol&&R[Symbol.iterator];if(!W)return R;var ge,ye,oe=W.call(R),Q=[];try{for(;(void 0===U||U-- >0)&&!(ge=oe.next()).done;)Q.push(ge.value)}catch(Le){ye={error:Le}}finally{try{ge&&!ge.done&&(W=oe.return)&&W.call(oe)}finally{if(ye)throw ye.error}}return Q}function q(){for(var R=[],U=0;U<arguments.length;U++)R=R.concat(B(arguments[U]));return R}function de(){for(var R=0,U=0,W=arguments.length;U<W;U++)R+=arguments[U].length;var oe=Array(R),ge=0;for(U=0;U<W;U++)for(var Q=arguments[U],ye=0,Le=Q.length;ye<Le;ye++,ge++)oe[ge]=Q[ye];return oe}function se(R){return this instanceof se?(this.v=R,this):new se(R)}function De(R,U,W){if(!Symbol.asyncIterator)throw new TypeError("Symbol.asyncIterator is not defined.");var ge,oe=W.apply(R,U||[]),Q=[];return ge={},ye("next"),ye("throw"),ye("return"),ge[Symbol.asyncIterator]=function(){return this},ge;function ye(ve){oe[ve]&&(ge[ve]=function(ze){return new Promise(function(Ie,ft){Q.push([ve,ze,Ie,ft])>1||Le(ve,ze)})})}function Le(ve,ze){try{!function Ye(ve){ve.value instanceof se?Promise.resolve(ve.value.v).then(we,Ge):ke(Q[0][2],ve)}(oe[ve](ze))}catch(Ie){ke(Q[0][3],Ie)}}function we(ve){Le("next",ve)}function Ge(ve){Le("throw",ve)}function ke(ve,ze){ve(ze),Q.shift(),Q.length&&Le(Q[0][0],Q[0][1])}}function he(R){var U,W;return U={},oe("next"),oe("throw",function(ge){throw ge}),oe("return"),U[Symbol.iterator]=function(){return this},U;function oe(ge,Q){U[ge]=R[ge]?function(ye){return(W=!W)?{value:se(R[ge](ye)),done:"return"===ge}:Q?Q(ye):ye}:Q}}function xe(R){if(!Symbol.asyncIterator)throw new TypeError("Symbol.asyncIterator is not defined.");var W,U=R[Symbol.asyncIterator];return U?U.call(R):(R=V(R),W={},oe("next"),oe("throw"),oe("return"),W[Symbol.asyncIterator]=function(){return this},W);function oe(Q){W[Q]=R[Q]&&function(ye){return new Promise(function(Le,Ye){!function ge(Q,ye,Le,Ye){Promise.resolve(Ye).then(function(we){Q({value:we,done:Le})},ye)}(Le,Ye,(ye=R[Q](ye)).done,ye.value)})}}}function Me(R,U){return Object.defineProperty?Object.defineProperty(R,"raw",{value:U}):R.raw=U,R}function be(R){if(R&&R.__esModule)return R;var U={};if(null!=R)for(var W in R)Object.hasOwnProperty.call(R,W)&&(U[W]=R[W]);return U.default=R,U}function Y(R){return R&&R.__esModule?R:{default:R}}function Be(R,U){if(!U.has(R))throw new TypeError("attempted to get private field on non-instance");return U.get(R)}function le(R,U,W){if(!U.has(R))throw new TypeError("attempted to set private field on non-instance");return U.set(R,W),W}},75789:(Ze,ee,_)=>{"use strict";_.r(ee),_.d(ee,{__assign:()=>M,__asyncDelegator:()=>he,__asyncGenerator:()=>De,__asyncValues:()=>xe,__await:()=>se,__awaiter:()=>g,__classPrivateFieldGet:()=>Be,__classPrivateFieldSet:()=>le,__createBinding:()=>N,__decorate:()=>O,__exportStar:()=>T,__extends:()=>b,__generator:()=>x,__importDefault:()=>Y,__importStar:()=>be,__makeTemplateObject:()=>Me,__metadata:()=>y,__param:()=>w,__read:()=>B,__rest:()=>F,__spread:()=>q,__spreadArrays:()=>de,__values:()=>V});var c=function(R,U){return(c=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(W,oe){W.__proto__=oe}||function(W,oe){for(var ge in oe)oe.hasOwnProperty(ge)&&(W[ge]=oe[ge])})(R,U)};function b(R,U){function W(){this.constructor=R}c(R,U),R.prototype=null===U?Object.create(U):(W.prototype=U.prototype,new W)}var M=function(){return M=Object.assign||function(U){for(var W,oe=1,ge=arguments.length;oe<ge;oe++)for(var Q in W=arguments[oe])Object.prototype.hasOwnProperty.call(W,Q)&&(U[Q]=W[Q]);return U},M.apply(this,arguments)};function F(R,U){var W={};for(var oe in R)Object.prototype.hasOwnProperty.call(R,oe)&&U.indexOf(oe)<0&&(W[oe]=R[oe]);if(null!=R&&"function"==typeof Object.getOwnPropertySymbols){var ge=0;for(oe=Object.getOwnPropertySymbols(R);ge<oe.length;ge++)U.indexOf(oe[ge])<0&&Object.prototype.propertyIsEnumerable.call(R,oe[ge])&&(W[oe[ge]]=R[oe[ge]])}return W}function O(R,U,W,oe){var ye,ge=arguments.length,Q=ge<3?U:null===oe?oe=Object.getOwnPropertyDescriptor(U,W):oe;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)Q=Reflect.decorate(R,U,W,oe);else for(var Le=R.length-1;Le>=0;Le--)(ye=R[Le])&&(Q=(ge<3?ye(Q):ge>3?ye(U,W,Q):ye(U,W))||Q);return ge>3&&Q&&Object.defineProperty(U,W,Q),Q}function w(R,U){return function(W,oe){U(W,oe,R)}}function y(R,U){if("object"==typeof Reflect&&"function"==typeof Reflect.metadata)return Reflect.metadata(R,U)}function g(R,U,W,oe){return new(W||(W=Promise))(function(Q,ye){function Le(Ge){try{we(oe.next(Ge))}catch(ke){ye(ke)}}function Ye(Ge){try{we(oe.throw(Ge))}catch(ke){ye(ke)}}function we(Ge){Ge.done?Q(Ge.value):function ge(Q){return Q instanceof W?Q:new W(function(ye){ye(Q)})}(Ge.value).then(Le,Ye)}we((oe=oe.apply(R,U||[])).next())})}function x(R,U){var oe,ge,Q,ye,W={label:0,sent:function(){if(1&Q[0])throw Q[1];return Q[1]},trys:[],ops:[]};return ye={next:Le(0),throw:Le(1),return:Le(2)},"function"==typeof Symbol&&(ye[Symbol.iterator]=function(){return this}),ye;function Le(we){return function(Ge){return function Ye(we){if(oe)throw new TypeError("Generator is already executing.");for(;W;)try{if(oe=1,ge&&(Q=2&we[0]?ge.return:we[0]?ge.throw||((Q=ge.return)&&Q.call(ge),0):ge.next)&&!(Q=Q.call(ge,we[1])).done)return Q;switch(ge=0,Q&&(we=[2&we[0],Q.value]),we[0]){case 0:case 1:Q=we;break;case 4:return W.label++,{value:we[1],done:!1};case 5:W.label++,ge=we[1],we=[0];continue;case 7:we=W.ops.pop(),W.trys.pop();continue;default:if(!(Q=(Q=W.trys).length>0&&Q[Q.length-1])&&(6===we[0]||2===we[0])){W=0;continue}if(3===we[0]&&(!Q||we[1]>Q[0]&&we[1]<Q[3])){W.label=we[1];break}if(6===we[0]&&W.label<Q[1]){W.label=Q[1],Q=we;break}if(Q&&W.label<Q[2]){W.label=Q[2],W.ops.push(we);break}Q[2]&&W.ops.pop(),W.trys.pop();continue}we=U.call(R,W)}catch(Ge){we=[6,Ge],ge=0}finally{oe=Q=0}if(5&we[0])throw we[1];return{value:we[0]?we[1]:void 0,done:!0}}([we,Ge])}}}function N(R,U,W,oe){void 0===oe&&(oe=W),R[oe]=U[W]}function T(R,U){for(var W in R)"default"!==W&&!U.hasOwnProperty(W)&&(U[W]=R[W])}function V(R){var U="function"==typeof Symbol&&Symbol.iterator,W=U&&R[U],oe=0;if(W)return W.call(R);if(R&&"number"==typeof R.length)return{next:function(){return R&&oe>=R.length&&(R=void 0),{value:R&&R[oe++],done:!R}}};throw new TypeError(U?"Object is not iterable.":"Symbol.iterator is not defined.")}function B(R,U){var W="function"==typeof Symbol&&R[Symbol.iterator];if(!W)return R;var ge,ye,oe=W.call(R),Q=[];try{for(;(void 0===U||U-- >0)&&!(ge=oe.next()).done;)Q.push(ge.value)}catch(Le){ye={error:Le}}finally{try{ge&&!ge.done&&(W=oe.return)&&W.call(oe)}finally{if(ye)throw ye.error}}return Q}function q(){for(var R=[],U=0;U<arguments.length;U++)R=R.concat(B(arguments[U]));return R}function de(){for(var R=0,U=0,W=arguments.length;U<W;U++)R+=arguments[U].length;var oe=Array(R),ge=0;for(U=0;U<W;U++)for(var Q=arguments[U],ye=0,Le=Q.length;ye<Le;ye++,ge++)oe[ge]=Q[ye];return oe}function se(R){return this instanceof se?(this.v=R,this):new se(R)}function De(R,U,W){if(!Symbol.asyncIterator)throw new TypeError("Symbol.asyncIterator is not defined.");var ge,oe=W.apply(R,U||[]),Q=[];return ge={},ye("next"),ye("throw"),ye("return"),ge[Symbol.asyncIterator]=function(){return this},ge;function ye(ve){oe[ve]&&(ge[ve]=function(ze){return new Promise(function(Ie,ft){Q.push([ve,ze,Ie,ft])>1||Le(ve,ze)})})}function Le(ve,ze){try{!function Ye(ve){ve.value instanceof se?Promise.resolve(ve.value.v).then(we,Ge):ke(Q[0][2],ve)}(oe[ve](ze))}catch(Ie){ke(Q[0][3],Ie)}}function we(ve){Le("next",ve)}function Ge(ve){Le("throw",ve)}function ke(ve,ze){ve(ze),Q.shift(),Q.length&&Le(Q[0][0],Q[0][1])}}function he(R){var U,W;return U={},oe("next"),oe("throw",function(ge){throw ge}),oe("return"),U[Symbol.iterator]=function(){return this},U;function oe(ge,Q){U[ge]=R[ge]?function(ye){return(W=!W)?{value:se(R[ge](ye)),done:"return"===ge}:Q?Q(ye):ye}:Q}}function xe(R){if(!Symbol.asyncIterator)throw new TypeError("Symbol.asyncIterator is not defined.");var W,U=R[Symbol.asyncIterator];return U?U.call(R):(R=V(R),W={},oe("next"),oe("throw"),oe("return"),W[Symbol.asyncIterator]=function(){return this},W);function oe(Q){W[Q]=R[Q]&&function(ye){return new Promise(function(Le,Ye){!function ge(Q,ye,Le,Ye){Promise.resolve(Ye).then(function(we){Q({value:we,done:Le})},ye)}(Le,Ye,(ye=R[Q](ye)).done,ye.value)})}}}function Me(R,U){return Object.defineProperty?Object.defineProperty(R,"raw",{value:U}):R.raw=U,R}function be(R){if(R&&R.__esModule)return R;var U={};if(null!=R)for(var W in R)Object.hasOwnProperty.call(R,W)&&(U[W]=R[W]);return U.default=R,U}function Y(R){return R&&R.__esModule?R:{default:R}}function Be(R,U){if(!U.has(R))throw new TypeError("attempted to get private field on non-instance");return U.get(R)}function le(R,U,W){if(!U.has(R))throw new TypeError("attempted to set private field on non-instance");return U.set(R,W),W}},73541:(Ze,ee,_)=>{"use strict";_.r(ee),_.d(ee,{__assign:()=>M,__asyncDelegator:()=>he,__asyncGenerator:()=>De,__asyncValues:()=>xe,__await:()=>se,__awaiter:()=>g,__classPrivateFieldGet:()=>Be,__classPrivateFieldSet:()=>le,__createBinding:()=>N,__decorate:()=>O,__exportStar:()=>T,__extends:()=>b,__generator:()=>x,__importDefault:()=>Y,__importStar:()=>be,__makeTemplateObject:()=>Me,__metadata:()=>y,__param:()=>w,__read:()=>B,__rest:()=>F,__spread:()=>q,__spreadArrays:()=>de,__values:()=>V});var c=function(R,U){return(c=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(W,oe){W.__proto__=oe}||function(W,oe){for(var ge in oe)oe.hasOwnProperty(ge)&&(W[ge]=oe[ge])})(R,U)};function b(R,U){function W(){this.constructor=R}c(R,U),R.prototype=null===U?Object.create(U):(W.prototype=U.prototype,new W)}var M=function(){return M=Object.assign||function(U){for(var W,oe=1,ge=arguments.length;oe<ge;oe++)for(var Q in W=arguments[oe])Object.prototype.hasOwnProperty.call(W,Q)&&(U[Q]=W[Q]);return U},M.apply(this,arguments)};function F(R,U){var W={};for(var oe in R)Object.prototype.hasOwnProperty.call(R,oe)&&U.indexOf(oe)<0&&(W[oe]=R[oe]);if(null!=R&&"function"==typeof Object.getOwnPropertySymbols){var ge=0;for(oe=Object.getOwnPropertySymbols(R);ge<oe.length;ge++)U.indexOf(oe[ge])<0&&Object.prototype.propertyIsEnumerable.call(R,oe[ge])&&(W[oe[ge]]=R[oe[ge]])}return W}function O(R,U,W,oe){var ye,ge=arguments.length,Q=ge<3?U:null===oe?oe=Object.getOwnPropertyDescriptor(U,W):oe;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)Q=Reflect.decorate(R,U,W,oe);else for(var Le=R.length-1;Le>=0;Le--)(ye=R[Le])&&(Q=(ge<3?ye(Q):ge>3?ye(U,W,Q):ye(U,W))||Q);return ge>3&&Q&&Object.defineProperty(U,W,Q),Q}function w(R,U){return function(W,oe){U(W,oe,R)}}function y(R,U){if("object"==typeof Reflect&&"function"==typeof Reflect.metadata)return Reflect.metadata(R,U)}function g(R,U,W,oe){return new(W||(W=Promise))(function(Q,ye){function Le(Ge){try{we(oe.next(Ge))}catch(ke){ye(ke)}}function Ye(Ge){try{we(oe.throw(Ge))}catch(ke){ye(ke)}}function we(Ge){Ge.done?Q(Ge.value):function ge(Q){return Q instanceof W?Q:new W(function(ye){ye(Q)})}(Ge.value).then(Le,Ye)}we((oe=oe.apply(R,U||[])).next())})}function x(R,U){var oe,ge,Q,ye,W={label:0,sent:function(){if(1&Q[0])throw Q[1];return Q[1]},trys:[],ops:[]};return ye={next:Le(0),throw:Le(1),return:Le(2)},"function"==typeof Symbol&&(ye[Symbol.iterator]=function(){return this}),ye;function Le(we){return function(Ge){return function Ye(we){if(oe)throw new TypeError("Generator is already executing.");for(;W;)try{if(oe=1,ge&&(Q=2&we[0]?ge.return:we[0]?ge.throw||((Q=ge.return)&&Q.call(ge),0):ge.next)&&!(Q=Q.call(ge,we[1])).done)return Q;switch(ge=0,Q&&(we=[2&we[0],Q.value]),we[0]){case 0:case 1:Q=we;break;case 4:return W.label++,{value:we[1],done:!1};case 5:W.label++,ge=we[1],we=[0];continue;case 7:we=W.ops.pop(),W.trys.pop();continue;default:if(!(Q=(Q=W.trys).length>0&&Q[Q.length-1])&&(6===we[0]||2===we[0])){W=0;continue}if(3===we[0]&&(!Q||we[1]>Q[0]&&we[1]<Q[3])){W.label=we[1];break}if(6===we[0]&&W.label<Q[1]){W.label=Q[1],Q=we;break}if(Q&&W.label<Q[2]){W.label=Q[2],W.ops.push(we);break}Q[2]&&W.ops.pop(),W.trys.pop();continue}we=U.call(R,W)}catch(Ge){we=[6,Ge],ge=0}finally{oe=Q=0}if(5&we[0])throw we[1];return{value:we[0]?we[1]:void 0,done:!0}}([we,Ge])}}}function N(R,U,W,oe){void 0===oe&&(oe=W),R[oe]=U[W]}function T(R,U){for(var W in R)"default"!==W&&!U.hasOwnProperty(W)&&(U[W]=R[W])}function V(R){var U="function"==typeof Symbol&&Symbol.iterator,W=U&&R[U],oe=0;if(W)return W.call(R);if(R&&"number"==typeof R.length)return{next:function(){return R&&oe>=R.length&&(R=void 0),{value:R&&R[oe++],done:!R}}};throw new TypeError(U?"Object is not iterable.":"Symbol.iterator is not defined.")}function B(R,U){var W="function"==typeof Symbol&&R[Symbol.iterator];if(!W)return R;var ge,ye,oe=W.call(R),Q=[];try{for(;(void 0===U||U-- >0)&&!(ge=oe.next()).done;)Q.push(ge.value)}catch(Le){ye={error:Le}}finally{try{ge&&!ge.done&&(W=oe.return)&&W.call(oe)}finally{if(ye)throw ye.error}}return Q}function q(){for(var R=[],U=0;U<arguments.length;U++)R=R.concat(B(arguments[U]));return R}function de(){for(var R=0,U=0,W=arguments.length;U<W;U++)R+=arguments[U].length;var oe=Array(R),ge=0;for(U=0;U<W;U++)for(var Q=arguments[U],ye=0,Le=Q.length;ye<Le;ye++,ge++)oe[ge]=Q[ye];return oe}function se(R){return this instanceof se?(this.v=R,this):new se(R)}function De(R,U,W){if(!Symbol.asyncIterator)throw new TypeError("Symbol.asyncIterator is not defined.");var ge,oe=W.apply(R,U||[]),Q=[];return ge={},ye("next"),ye("throw"),ye("return"),ge[Symbol.asyncIterator]=function(){return this},ge;function ye(ve){oe[ve]&&(ge[ve]=function(ze){return new Promise(function(Ie,ft){Q.push([ve,ze,Ie,ft])>1||Le(ve,ze)})})}function Le(ve,ze){try{!function Ye(ve){ve.value instanceof se?Promise.resolve(ve.value.v).then(we,Ge):ke(Q[0][2],ve)}(oe[ve](ze))}catch(Ie){ke(Q[0][3],Ie)}}function we(ve){Le("next",ve)}function Ge(ve){Le("throw",ve)}function ke(ve,ze){ve(ze),Q.shift(),Q.length&&Le(Q[0][0],Q[0][1])}}function he(R){var U,W;return U={},oe("next"),oe("throw",function(ge){throw ge}),oe("return"),U[Symbol.iterator]=function(){return this},U;function oe(ge,Q){U[ge]=R[ge]?function(ye){return(W=!W)?{value:se(R[ge](ye)),done:"return"===ge}:Q?Q(ye):ye}:Q}}function xe(R){if(!Symbol.asyncIterator)throw new TypeError("Symbol.asyncIterator is not defined.");var W,U=R[Symbol.asyncIterator];return U?U.call(R):(R=V(R),W={},oe("next"),oe("throw"),oe("return"),W[Symbol.asyncIterator]=function(){return this},W);function oe(Q){W[Q]=R[Q]&&function(ye){return new Promise(function(Le,Ye){!function ge(Q,ye,Le,Ye){Promise.resolve(Ye).then(function(we){Q({value:we,done:Le})},ye)}(Le,Ye,(ye=R[Q](ye)).done,ye.value)})}}}function Me(R,U){return Object.defineProperty?Object.defineProperty(R,"raw",{value:U}):R.raw=U,R}function be(R){if(R&&R.__esModule)return R;var U={};if(null!=R)for(var W in R)Object.hasOwnProperty.call(R,W)&&(U[W]=R[W]);return U.default=R,U}function Y(R){return R&&R.__esModule?R:{default:R}}function Be(R,U){if(!U.has(R))throw new TypeError("attempted to get private field on non-instance");return U.get(R)}function le(R,U,W){if(!U.has(R))throw new TypeError("attempted to set private field on non-instance");return U.set(R,W),W}},57840:(Ze,ee,_)=>{"use strict";_.r(ee),_.d(ee,{__assign:()=>M,__asyncDelegator:()=>he,__asyncGenerator:()=>De,__asyncValues:()=>xe,__await:()=>se,__awaiter:()=>g,__classPrivateFieldGet:()=>Be,__classPrivateFieldSet:()=>le,__createBinding:()=>N,__decorate:()=>O,__exportStar:()=>T,__extends:()=>b,__generator:()=>x,__importDefault:()=>Y,__importStar:()=>be,__makeTemplateObject:()=>Me,__metadata:()=>y,__param:()=>w,__read:()=>B,__rest:()=>F,__spread:()=>q,__spreadArrays:()=>de,__values:()=>V});var c=function(R,U){return(c=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(W,oe){W.__proto__=oe}||function(W,oe){for(var ge in oe)oe.hasOwnProperty(ge)&&(W[ge]=oe[ge])})(R,U)};function b(R,U){function W(){this.constructor=R}c(R,U),R.prototype=null===U?Object.create(U):(W.prototype=U.prototype,new W)}var M=function(){return M=Object.assign||function(U){for(var W,oe=1,ge=arguments.length;oe<ge;oe++)for(var Q in W=arguments[oe])Object.prototype.hasOwnProperty.call(W,Q)&&(U[Q]=W[Q]);return U},M.apply(this,arguments)};function F(R,U){var W={};for(var oe in R)Object.prototype.hasOwnProperty.call(R,oe)&&U.indexOf(oe)<0&&(W[oe]=R[oe]);if(null!=R&&"function"==typeof Object.getOwnPropertySymbols){var ge=0;for(oe=Object.getOwnPropertySymbols(R);ge<oe.length;ge++)U.indexOf(oe[ge])<0&&Object.prototype.propertyIsEnumerable.call(R,oe[ge])&&(W[oe[ge]]=R[oe[ge]])}return W}function O(R,U,W,oe){var ye,ge=arguments.length,Q=ge<3?U:null===oe?oe=Object.getOwnPropertyDescriptor(U,W):oe;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)Q=Reflect.decorate(R,U,W,oe);else for(var Le=R.length-1;Le>=0;Le--)(ye=R[Le])&&(Q=(ge<3?ye(Q):ge>3?ye(U,W,Q):ye(U,W))||Q);return ge>3&&Q&&Object.defineProperty(U,W,Q),Q}function w(R,U){return function(W,oe){U(W,oe,R)}}function y(R,U){if("object"==typeof Reflect&&"function"==typeof Reflect.metadata)return Reflect.metadata(R,U)}function g(R,U,W,oe){return new(W||(W=Promise))(function(Q,ye){function Le(Ge){try{we(oe.next(Ge))}catch(ke){ye(ke)}}function Ye(Ge){try{we(oe.throw(Ge))}catch(ke){ye(ke)}}function we(Ge){Ge.done?Q(Ge.value):function ge(Q){return Q instanceof W?Q:new W(function(ye){ye(Q)})}(Ge.value).then(Le,Ye)}we((oe=oe.apply(R,U||[])).next())})}function x(R,U){var oe,ge,Q,ye,W={label:0,sent:function(){if(1&Q[0])throw Q[1];return Q[1]},trys:[],ops:[]};return ye={next:Le(0),throw:Le(1),return:Le(2)},"function"==typeof Symbol&&(ye[Symbol.iterator]=function(){return this}),ye;function Le(we){return function(Ge){return function Ye(we){if(oe)throw new TypeError("Generator is already executing.");for(;W;)try{if(oe=1,ge&&(Q=2&we[0]?ge.return:we[0]?ge.throw||((Q=ge.return)&&Q.call(ge),0):ge.next)&&!(Q=Q.call(ge,we[1])).done)return Q;switch(ge=0,Q&&(we=[2&we[0],Q.value]),we[0]){case 0:case 1:Q=we;break;case 4:return W.label++,{value:we[1],done:!1};case 5:W.label++,ge=we[1],we=[0];continue;case 7:we=W.ops.pop(),W.trys.pop();continue;default:if(!(Q=(Q=W.trys).length>0&&Q[Q.length-1])&&(6===we[0]||2===we[0])){W=0;continue}if(3===we[0]&&(!Q||we[1]>Q[0]&&we[1]<Q[3])){W.label=we[1];break}if(6===we[0]&&W.label<Q[1]){W.label=Q[1],Q=we;break}if(Q&&W.label<Q[2]){W.label=Q[2],W.ops.push(we);break}Q[2]&&W.ops.pop(),W.trys.pop();continue}we=U.call(R,W)}catch(Ge){we=[6,Ge],ge=0}finally{oe=Q=0}if(5&we[0])throw we[1];return{value:we[0]?we[1]:void 0,done:!0}}([we,Ge])}}}function N(R,U,W,oe){void 0===oe&&(oe=W),R[oe]=U[W]}function T(R,U){for(var W in R)"default"!==W&&!U.hasOwnProperty(W)&&(U[W]=R[W])}function V(R){var U="function"==typeof Symbol&&Symbol.iterator,W=U&&R[U],oe=0;if(W)return W.call(R);if(R&&"number"==typeof R.length)return{next:function(){return R&&oe>=R.length&&(R=void 0),{value:R&&R[oe++],done:!R}}};throw new TypeError(U?"Object is not iterable.":"Symbol.iterator is not defined.")}function B(R,U){var W="function"==typeof Symbol&&R[Symbol.iterator];if(!W)return R;var ge,ye,oe=W.call(R),Q=[];try{for(;(void 0===U||U-- >0)&&!(ge=oe.next()).done;)Q.push(ge.value)}catch(Le){ye={error:Le}}finally{try{ge&&!ge.done&&(W=oe.return)&&W.call(oe)}finally{if(ye)throw ye.error}}return Q}function q(){for(var R=[],U=0;U<arguments.length;U++)R=R.concat(B(arguments[U]));return R}function de(){for(var R=0,U=0,W=arguments.length;U<W;U++)R+=arguments[U].length;var oe=Array(R),ge=0;for(U=0;U<W;U++)for(var Q=arguments[U],ye=0,Le=Q.length;ye<Le;ye++,ge++)oe[ge]=Q[ye];return oe}function se(R){return this instanceof se?(this.v=R,this):new se(R)}function De(R,U,W){if(!Symbol.asyncIterator)throw new TypeError("Symbol.asyncIterator is not defined.");var ge,oe=W.apply(R,U||[]),Q=[];return ge={},ye("next"),ye("throw"),ye("return"),ge[Symbol.asyncIterator]=function(){return this},ge;function ye(ve){oe[ve]&&(ge[ve]=function(ze){return new Promise(function(Ie,ft){Q.push([ve,ze,Ie,ft])>1||Le(ve,ze)})})}function Le(ve,ze){try{!function Ye(ve){ve.value instanceof se?Promise.resolve(ve.value.v).then(we,Ge):ke(Q[0][2],ve)}(oe[ve](ze))}catch(Ie){ke(Q[0][3],Ie)}}function we(ve){Le("next",ve)}function Ge(ve){Le("throw",ve)}function ke(ve,ze){ve(ze),Q.shift(),Q.length&&Le(Q[0][0],Q[0][1])}}function he(R){var U,W;return U={},oe("next"),oe("throw",function(ge){throw ge}),oe("return"),U[Symbol.iterator]=function(){return this},U;function oe(ge,Q){U[ge]=R[ge]?function(ye){return(W=!W)?{value:se(R[ge](ye)),done:"return"===ge}:Q?Q(ye):ye}:Q}}function xe(R){if(!Symbol.asyncIterator)throw new TypeError("Symbol.asyncIterator is not defined.");var W,U=R[Symbol.asyncIterator];return U?U.call(R):(R=V(R),W={},oe("next"),oe("throw"),oe("return"),W[Symbol.asyncIterator]=function(){return this},W);function oe(Q){W[Q]=R[Q]&&function(ye){return new Promise(function(Le,Ye){!function ge(Q,ye,Le,Ye){Promise.resolve(Ye).then(function(we){Q({value:we,done:Le})},ye)}(Le,Ye,(ye=R[Q](ye)).done,ye.value)})}}}function Me(R,U){return Object.defineProperty?Object.defineProperty(R,"raw",{value:U}):R.raw=U,R}function be(R){if(R&&R.__esModule)return R;var U={};if(null!=R)for(var W in R)Object.hasOwnProperty.call(R,W)&&(U[W]=R[W]);return U.default=R,U}function Y(R){return R&&R.__esModule?R:{default:R}}function Be(R,U){if(!U.has(R))throw new TypeError("attempted to get private field on non-instance");return U.get(R)}function le(R,U,W){if(!U.has(R))throw new TypeError("attempted to set private field on non-instance");return U.set(R,W),W}},70655:(Ze,ee,_)=>{"use strict";_.d(ee,{CR:()=>De,Jh:()=>B,XA:()=>se,ZT:()=>b,fl:()=>he,mG:()=>V,pi:()=>M});var c=function(Le,Ye){return(c=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(we,Ge){we.__proto__=Ge}||function(we,Ge){for(var ke in Ge)Object.prototype.hasOwnProperty.call(Ge,ke)&&(we[ke]=Ge[ke])})(Le,Ye)};function b(Le,Ye){if("function"!=typeof Ye&&null!==Ye)throw new TypeError("Class extends value "+String(Ye)+" is not a constructor or null");function we(){this.constructor=Le}c(Le,Ye),Le.prototype=null===Ye?Object.create(Ye):(we.prototype=Ye.prototype,new we)}var M=function(){return M=Object.assign||function(Ye){for(var we,Ge=1,ke=arguments.length;Ge<ke;Ge++)for(var ve in we=arguments[Ge])Object.prototype.hasOwnProperty.call(we,ve)&&(Ye[ve]=we[ve]);return Ye},M.apply(this,arguments)};function V(Le,Ye,we,Ge){return new(we||(we=Promise))(function(ve,ze){function Ie(mt){try{pt(Ge.next(mt))}catch(yt){ze(yt)}}function ft(mt){try{pt(Ge.throw(mt))}catch(yt){ze(yt)}}function pt(mt){mt.done?ve(mt.value):function ke(ve){return ve instanceof we?ve:new we(function(ze){ze(ve)})}(mt.value).then(Ie,ft)}pt((Ge=Ge.apply(Le,Ye||[])).next())})}function B(Le,Ye){var Ge,ke,ve,ze,we={label:0,sent:function(){if(1&ve[0])throw ve[1];return ve[1]},trys:[],ops:[]};return ze={next:Ie(0),throw:Ie(1),return:Ie(2)},"function"==typeof Symbol&&(ze[Symbol.iterator]=function(){return this}),ze;function Ie(pt){return function(mt){return function ft(pt){if(Ge)throw new TypeError("Generator is already executing.");for(;ze&&(ze=0,pt[0]&&(we=0)),we;)try{if(Ge=1,ke&&(ve=2&pt[0]?ke.return:pt[0]?ke.throw||((ve=ke.return)&&ve.call(ke),0):ke.next)&&!(ve=ve.call(ke,pt[1])).done)return ve;switch(ke=0,ve&&(pt=[2&pt[0],ve.value]),pt[0]){case 0:case 1:ve=pt;break;case 4:return we.label++,{value:pt[1],done:!1};case 5:we.label++,ke=pt[1],pt=[0];continue;case 7:pt=we.ops.pop(),we.trys.pop();continue;default:if(!(ve=(ve=we.trys).length>0&&ve[ve.length-1])&&(6===pt[0]||2===pt[0])){we=0;continue}if(3===pt[0]&&(!ve||pt[1]>ve[0]&&pt[1]<ve[3])){we.label=pt[1];break}if(6===pt[0]&&we.label<ve[1]){we.label=ve[1],ve=pt;break}if(ve&&we.label<ve[2]){we.label=ve[2],we.ops.push(pt);break}ve[2]&&we.ops.pop(),we.trys.pop();continue}pt=Ye.call(Le,we)}catch(mt){pt=[6,mt],ke=0}finally{Ge=ve=0}if(5&pt[0])throw pt[1];return{value:pt[0]?pt[1]:void 0,done:!0}}([pt,mt])}}}function se(Le){var Ye="function"==typeof Symbol&&Symbol.iterator,we=Ye&&Le[Ye],Ge=0;if(we)return we.call(Le);if(Le&&"number"==typeof Le.length)return{next:function(){return Le&&Ge>=Le.length&&(Le=void 0),{value:Le&&Le[Ge++],done:!Le}}};throw new TypeError(Ye?"Object is not iterable.":"Symbol.iterator is not defined.")}function De(Le,Ye){var we="function"==typeof Symbol&&Le[Symbol.iterator];if(!we)return Le;var ke,ze,Ge=we.call(Le),ve=[];try{for(;(void 0===Ye||Ye-- >0)&&!(ke=Ge.next()).done;)ve.push(ke.value)}catch(Ie){ze={error:Ie}}finally{try{ke&&!ke.done&&(we=Ge.return)&&we.call(Ge)}finally{if(ze)throw ze.error}}return ve}function he(){for(var Le=[],Ye=0;Ye<arguments.length;Ye++)Le=Le.concat(De(arguments[Ye]));return Le}},56249:()=>{},42480:()=>{},37340:(Ze,ee,_)=>{"use strict";_.d(ee,{IO:()=>de,LC:()=>b,SB:()=>x,X$:()=>F,ZE:()=>xe,ZN:()=>he,_7:()=>q,_j:()=>c,eR:()=>T,jt:()=>O,k1:()=>Me,l3:()=>M,oB:()=>g,oQ:()=>V,pV:()=>B,vP:()=>y});class c{}class b{}const M="*";function F(be,Y){return{type:7,name:be,definitions:Y,options:{}}}function O(be,Y=null){return{type:4,styles:Y,timings:be}}function y(be,Y=null){return{type:2,steps:be,options:Y}}function g(be){return{type:6,styles:be,offset:null}}function x(be,Y,Be){return{type:0,name:be,styles:Y,options:Be}}function T(be,Y,Be=null){return{type:1,expr:be,animation:Y,options:Be}}function V(be,Y=null){return{type:8,animation:be,options:Y}}function B(be=null){return{type:9,options:be}}function q(be,Y=null){return{type:10,animation:be,options:Y}}function de(be,Y,Be=null){return{type:11,selector:be,animation:Y,options:Be}}function De(be){Promise.resolve().then(be)}class he{constructor(Y=0,Be=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=Y+Be}_onFinish(){this._finished||(this._finished=!0,this._onDoneFns.forEach(Y=>Y()),this._onDoneFns=[])}onStart(Y){this._originalOnStartFns.push(Y),this._onStartFns.push(Y)}onDone(Y){this._originalOnDoneFns.push(Y),this._onDoneFns.push(Y)}onDestroy(Y){this._onDestroyFns.push(Y)}hasStarted(){return this._started}init(){}play(){this.hasStarted()||(this._onStart(),this.triggerMicrotask()),this._started=!0}triggerMicrotask(){De(()=>this._onFinish())}_onStart(){this._onStartFns.forEach(Y=>Y()),this._onStartFns=[]}pause(){}restart(){}finish(){this._onFinish()}destroy(){this._destroyed||(this._destroyed=!0,this.hasStarted()||this._onStart(),this.finish(),this._onDestroyFns.forEach(Y=>Y()),this._onDestroyFns=[])}reset(){this._started=!1,this._finished=!1,this._onStartFns=this._originalOnStartFns,this._onDoneFns=this._originalOnDoneFns}setPosition(Y){this._position=this.totalTime?Y*this.totalTime:1}getPosition(){return this.totalTime?this._position/this.totalTime:1}triggerCallback(Y){const Be="start"==Y?this._onStartFns:this._onDoneFns;Be.forEach(le=>le()),Be.length=0}}class xe{constructor(Y){this._onDoneFns=[],this._onStartFns=[],this._finished=!1,this._started=!1,this._destroyed=!1,this._onDestroyFns=[],this.parentPlayer=null,this.totalTime=0,this.players=Y;let Be=0,le=0,R=0;const U=this.players.length;0==U?De(()=>this._onFinish()):this.players.forEach(W=>{W.onDone(()=>{++Be==U&&this._onFinish()}),W.onDestroy(()=>{++le==U&&this._onDestroy()}),W.onStart(()=>{++R==U&&this._onStart()})}),this.totalTime=this.players.reduce((W,oe)=>Math.max(W,oe.totalTime),0)}_onFinish(){this._finished||(this._finished=!0,this._onDoneFns.forEach(Y=>Y()),this._onDoneFns=[])}init(){this.players.forEach(Y=>Y.init())}onStart(Y){this._onStartFns.push(Y)}_onStart(){this.hasStarted()||(this._started=!0,this._onStartFns.forEach(Y=>Y()),this._onStartFns=[])}onDone(Y){this._onDoneFns.push(Y)}onDestroy(Y){this._onDestroyFns.push(Y)}hasStarted(){return this._started}play(){this.parentPlayer||this.init(),this._onStart(),this.players.forEach(Y=>Y.play())}pause(){this.players.forEach(Y=>Y.pause())}restart(){this.players.forEach(Y=>Y.restart())}finish(){this._onFinish(),this.players.forEach(Y=>Y.finish())}destroy(){this._onDestroy()}_onDestroy(){this._destroyed||(this._destroyed=!0,this._onFinish(),this.players.forEach(Y=>Y.destroy()),this._onDestroyFns.forEach(Y=>Y()),this._onDestroyFns=[])}reset(){this.players.forEach(Y=>Y.reset()),this._destroyed=!1,this._finished=!1,this._started=!1}setPosition(Y){const Be=Y*this.totalTime;this.players.forEach(le=>{const R=le.totalTime?Math.min(1,Be/le.totalTime):1;le.setPosition(R)})}getPosition(){const Y=this.players.reduce((Be,le)=>null===Be||le.totalTime>Be.totalTime?le:Be,null);return null!=Y?Y.getPosition():0}beforeDestroy(){this.players.forEach(Y=>{Y.beforeDestroy&&Y.beforeDestroy()})}triggerCallback(Y){const Be="start"==Y?this._onStartFns:this._onDoneFns;Be.forEach(le=>le()),Be.length=0}}const Me="!"},36895:(Ze,ee,_)=>{"use strict";_.d(ee,{Do:()=>xe,EM:()=>Qr,HT:()=>F,JF:()=>To,JJ:()=>Bo,K0:()=>w,Mx:()=>Ve,NF:()=>rs,Nd:()=>ii,O5:()=>$t,OU:()=>Do,Ov:()=>Ln,PC:()=>Lr,RF:()=>an,S$:()=>se,Ts:()=>Tr,V_:()=>x,Ye:()=>Me,b0:()=>he,bD:()=>Cs,ez:()=>ns,mk:()=>ce,n9:()=>rr,q:()=>M,sg:()=>Xe,tP:()=>_r,uU:()=>So,w_:()=>O});var c=_(55062);let b=null;function M(){return b}function F(v){b||(b=v)}class O{}const w=new c.OlP("DocumentToken");let y=(()=>{class v{historyGo(f){throw new Error("Not implemented")}}return v.\u0275fac=function(f){return new(f||v)},v.\u0275prov=c.Yz7({token:v,factory:function(){return function g(){return(0,c.LFG)(N)}()},providedIn:"platform"}),v})();const x=new c.OlP("Location Initialized");let N=(()=>{class v extends y{constructor(f){super(),this._doc=f,this._location=window.location,this._history=window.history}getBaseHrefFromDOM(){return M().getBaseHref(this._doc)}onPopState(f){const C=M().getGlobalEventTarget(this._doc,"window");return C.addEventListener("popstate",f,!1),()=>C.removeEventListener("popstate",f)}onHashChange(f){const C=M().getGlobalEventTarget(this._doc,"window");return C.addEventListener("hashchange",f,!1),()=>C.removeEventListener("hashchange",f)}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(f){this._location.pathname=f}pushState(f,C,j){T()?this._history.pushState(f,C,j):this._location.hash=j}replaceState(f,C,j){T()?this._history.replaceState(f,C,j):this._location.hash=j}forward(){this._history.forward()}back(){this._history.back()}historyGo(f=0){this._history.go(f)}getState(){return this._history.state}}return v.\u0275fac=function(f){return new(f||v)(c.LFG(w))},v.\u0275prov=c.Yz7({token:v,factory:function(){return function V(){return new N((0,c.LFG)(w))}()},providedIn:"platform"}),v})();function T(){return!!window.history.pushState}function B(v,h){if(0==v.length)return h;if(0==h.length)return v;let f=0;return v.endsWith("/")&&f++,h.startsWith("/")&&f++,2==f?v+h.substring(1):1==f?v+h:v+"/"+h}function q(v){const h=v.match(/#|\?|$/),f=h&&h.index||v.length;return v.slice(0,f-("/"===v[f-1]?1:0))+v.slice(f)}function de(v){return v&&"?"!==v[0]?"?"+v:v}let se=(()=>{class v{historyGo(f){throw new Error("Not implemented")}}return v.\u0275fac=function(f){return new(f||v)},v.\u0275prov=c.Yz7({token:v,factory:function(){return(0,c.f3M)(he)},providedIn:"root"}),v})();const De=new c.OlP("appBaseHref");let he=(()=>{class v extends se{constructor(f,C){super(),this._platformLocation=f,this._removeListenerFns=[],this._baseHref=C??this._platformLocation.getBaseHrefFromDOM()??(0,c.f3M)(w).location?.origin??""}ngOnDestroy(){for(;this._removeListenerFns.length;)this._removeListenerFns.pop()()}onPopState(f){this._removeListenerFns.push(this._platformLocation.onPopState(f),this._platformLocation.onHashChange(f))}getBaseHref(){return this._baseHref}prepareExternalUrl(f){return B(this._baseHref,f)}path(f=!1){const C=this._platformLocation.pathname+de(this._platformLocation.search),j=this._platformLocation.hash;return j&&f?`${C}${j}`:C}pushState(f,C,j,pe){const Re=this.prepareExternalUrl(j+de(pe));this._platformLocation.pushState(f,C,Re)}replaceState(f,C,j,pe){const Re=this.prepareExternalUrl(j+de(pe));this._platformLocation.replaceState(f,C,Re)}forward(){this._platformLocation.forward()}back(){this._platformLocation.back()}getState(){return this._platformLocation.getState()}historyGo(f=0){this._platformLocation.historyGo?.(f)}}return v.\u0275fac=function(f){return new(f||v)(c.LFG(y),c.LFG(De,8))},v.\u0275prov=c.Yz7({token:v,factory:v.\u0275fac,providedIn:"root"}),v})(),xe=(()=>{class v extends se{constructor(f,C){super(),this._platformLocation=f,this._baseHref="",this._removeListenerFns=[],null!=C&&(this._baseHref=C)}ngOnDestroy(){for(;this._removeListenerFns.length;)this._removeListenerFns.pop()()}onPopState(f){this._removeListenerFns.push(this._platformLocation.onPopState(f),this._platformLocation.onHashChange(f))}getBaseHref(){return this._baseHref}path(f=!1){let C=this._platformLocation.hash;return null==C&&(C="#"),C.length>0?C.substring(1):C}prepareExternalUrl(f){const C=B(this._baseHref,f);return C.length>0?"#"+C:C}pushState(f,C,j,pe){let Re=this.prepareExternalUrl(j+de(pe));0==Re.length&&(Re=this._platformLocation.pathname),this._platformLocation.pushState(f,C,Re)}replaceState(f,C,j,pe){let Re=this.prepareExternalUrl(j+de(pe));0==Re.length&&(Re=this._platformLocation.pathname),this._platformLocation.replaceState(f,C,Re)}forward(){this._platformLocation.forward()}back(){this._platformLocation.back()}getState(){return this._platformLocation.getState()}historyGo(f=0){this._platformLocation.historyGo?.(f)}}return v.\u0275fac=function(f){return new(f||v)(c.LFG(y),c.LFG(De,8))},v.\u0275prov=c.Yz7({token:v,factory:v.\u0275fac}),v})(),Me=(()=>{class v{constructor(f){this._subject=new c.vpe,this._urlChangeListeners=[],this._urlChangeSubscription=null,this._locationStrategy=f;const C=this._locationStrategy.getBaseHref();this._basePath=function le(v){if(new RegExp("^(https?:)?//").test(v)){const[,f]=v.split(/\/\/[^\/]+/);return f}return v}(q(Be(C))),this._locationStrategy.onPopState(j=>{this._subject.emit({url:this.path(!0),pop:!0,state:j.state,type:j.type})})}ngOnDestroy(){this._urlChangeSubscription?.unsubscribe(),this._urlChangeListeners=[]}path(f=!1){return this.normalize(this._locationStrategy.path(f))}getState(){return this._locationStrategy.getState()}isCurrentPathEqualTo(f,C=""){return this.path()==this.normalize(f+de(C))}normalize(f){return v.stripTrailingSlash(function Y(v,h){if(!v||!h.startsWith(v))return h;const f=h.substring(v.length);return""===f||["/",";","?","#"].includes(f[0])?f:h}(this._basePath,Be(f)))}prepareExternalUrl(f){return f&&"/"!==f[0]&&(f="/"+f),this._locationStrategy.prepareExternalUrl(f)}go(f,C="",j=null){this._locationStrategy.pushState(j,"",f,C),this._notifyUrlChangeListeners(this.prepareExternalUrl(f+de(C)),j)}replaceState(f,C="",j=null){this._locationStrategy.replaceState(j,"",f,C),this._notifyUrlChangeListeners(this.prepareExternalUrl(f+de(C)),j)}forward(){this._locationStrategy.forward()}back(){this._locationStrategy.back()}historyGo(f=0){this._locationStrategy.historyGo?.(f)}onUrlChange(f){return this._urlChangeListeners.push(f),this._urlChangeSubscription||(this._urlChangeSubscription=this.subscribe(C=>{this._notifyUrlChangeListeners(C.url,C.state)})),()=>{const C=this._urlChangeListeners.indexOf(f);this._urlChangeListeners.splice(C,1),0===this._urlChangeListeners.length&&(this._urlChangeSubscription?.unsubscribe(),this._urlChangeSubscription=null)}}_notifyUrlChangeListeners(f="",C){this._urlChangeListeners.forEach(j=>j(f,C))}subscribe(f,C,j){return this._subject.subscribe({next:f,error:C,complete:j})}}return v.normalizeQueryParams=de,v.joinWithSlash=B,v.stripTrailingSlash=q,v.\u0275fac=function(f){return new(f||v)(c.LFG(se))},v.\u0275prov=c.Yz7({token:v,factory:function(){return function be(){return new Me((0,c.LFG)(se))}()},providedIn:"root"}),v})();function Be(v){return v.replace(/\/index.html$/,"")}var U=(()=>((U=U||{})[U.Decimal=0]="Decimal",U[U.Percent=1]="Percent",U[U.Currency=2]="Currency",U[U.Scientific=3]="Scientific",U))(),oe=(()=>((oe=oe||{})[oe.Format=0]="Format",oe[oe.Standalone=1]="Standalone",oe))(),ge=(()=>((ge=ge||{})[ge.Narrow=0]="Narrow",ge[ge.Abbreviated=1]="Abbreviated",ge[ge.Wide=2]="Wide",ge[ge.Short=3]="Short",ge))(),Q=(()=>((Q=Q||{})[Q.Short=0]="Short",Q[Q.Medium=1]="Medium",Q[Q.Long=2]="Long",Q[Q.Full=3]="Full",Q))(),ye=(()=>((ye=ye||{})[ye.Decimal=0]="Decimal",ye[ye.Group=1]="Group",ye[ye.List=2]="List",ye[ye.PercentSign=3]="PercentSign",ye[ye.PlusSign=4]="PlusSign",ye[ye.MinusSign=5]="MinusSign",ye[ye.Exponential=6]="Exponential",ye[ye.SuperscriptingExponent=7]="SuperscriptingExponent",ye[ye.PerMille=8]="PerMille",ye[ye.Infinity=9]="Infinity",ye[ye.NaN=10]="NaN",ye[ye.TimeSeparator=11]="TimeSeparator",ye[ye.CurrencyDecimal=12]="CurrencyDecimal",ye[ye.CurrencyGroup=13]="CurrencyGroup",ye))();function ft(v,h){return zt((0,c.cg1)(v)[c.wAp.DateFormat],h)}function pt(v,h){return zt((0,c.cg1)(v)[c.wAp.TimeFormat],h)}function mt(v,h){return zt((0,c.cg1)(v)[c.wAp.DateTimeFormat],h)}function yt(v,h){const f=(0,c.cg1)(v),C=f[c.wAp.NumberSymbols][h];if(typeof C>"u"){if(h===ye.CurrencyDecimal)return f[c.wAp.NumberSymbols][ye.Decimal];if(h===ye.CurrencyGroup)return f[c.wAp.NumberSymbols][ye.Group]}return C}function hn(v){if(!v[c.wAp.ExtraData])throw new Error(`Missing extra locale data for the locale "${v[c.wAp.LocaleId]}". Use "registerLocaleData" to load new data. See the "I18n guide" on angular.io to know more.`)}function zt(v,h){for(let f=h;f>-1;f--)if(typeof v[f]<"u")return v[f];throw new Error("Locale data API: locale data undefined")}function je(v){const[h,f]=v.split(":");return{hours:+h,minutes:+f}}const ot=/^(\d{4,})-?(\d\d)-?(\d\d)(?:T(\d\d)(?::?(\d\d)(?::?(\d\d)(?:\.(\d+))?)?)?(Z|([+-])(\d\d):?(\d\d))?)?$/,vt={},lt=/((?:[^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 Ht=(()=>((Ht=Ht||{})[Ht.Short=0]="Short",Ht[Ht.ShortGMT=1]="ShortGMT",Ht[Ht.Long=2]="Long",Ht[Ht.Extended=3]="Extended",Ht))(),Nt=(()=>((Nt=Nt||{})[Nt.FullYear=0]="FullYear",Nt[Nt.Month=1]="Month",Nt[Nt.Date=2]="Date",Nt[Nt.Hours=3]="Hours",Nt[Nt.Minutes=4]="Minutes",Nt[Nt.Seconds=5]="Seconds",Nt[Nt.FractionalSeconds=6]="FractionalSeconds",Nt[Nt.Day=7]="Day",Nt))(),It=(()=>((It=It||{})[It.DayPeriods=0]="DayPeriods",It[It.Days=1]="Days",It[It.Months=2]="Months",It[It.Eras=3]="Eras",It))();function pn(v,h,f,C){let j=function En(v){if(Pe(v))return v;if("number"==typeof v&&!isNaN(v))return new Date(v);if("string"==typeof v){if(v=v.trim(),/^(\d{4}(-\d{1,2}(-\d{1,2})?)?)$/.test(v)){const[j,pe=1,Re=1]=v.split("-").map(We=>+We);return cn(j,pe-1,Re)}const f=parseFloat(v);if(!isNaN(v-f))return new Date(f);let C;if(C=v.match(ot))return function Yn(v){const h=new Date(0);let f=0,C=0;const j=v[8]?h.setUTCFullYear:h.setFullYear,pe=v[8]?h.setUTCHours:h.setHours;v[9]&&(f=Number(v[9]+v[10]),C=Number(v[9]+v[11])),j.call(h,Number(v[1]),Number(v[2])-1,Number(v[3]));const Re=Number(v[4]||0)-f,We=Number(v[5]||0)-C,at=Number(v[6]||0),ht=Math.floor(1e3*parseFloat("0."+(v[7]||0)));return pe.call(h,Re,We,at,ht),h}(C)}const h=new Date(v);if(!Pe(h))throw new Error(`Unable to convert "${v}" into a date`);return h}(v);h=ln(f,h)||h;let We,Re=[];for(;h;){if(We=lt.exec(h),!We){Re.push(h);break}{Re=Re.concat(We.slice(1));const Tt=Re.pop();if(!Tt)break;h=Tt}}let at=j.getTimezoneOffset();C&&(at=vn(C,at),j=function rn(v,h,f){const C=f?-1:1,j=v.getTimezoneOffset();return function Pn(v,h){return(v=new Date(v.getTime())).setMinutes(v.getMinutes()+h),v}(v,C*(vn(h,j)-j))}(j,C,!0));let ht="";return Re.forEach(Tt=>{const Ot=function Xt(v){if(St[v])return St[v];let h;switch(v){case"G":case"GG":case"GGG":h=Cn(It.Eras,ge.Abbreviated);break;case"GGGG":h=Cn(It.Eras,ge.Wide);break;case"GGGGG":h=Cn(It.Eras,ge.Narrow);break;case"y":h=On(Nt.FullYear,1,0,!1,!0);break;case"yy":h=On(Nt.FullYear,2,0,!0,!0);break;case"yyy":h=On(Nt.FullYear,3,0,!1,!0);break;case"yyyy":h=On(Nt.FullYear,4,0,!1,!0);break;case"Y":h=Et(1);break;case"YY":h=Et(2,!0);break;case"YYY":h=Et(3);break;case"YYYY":h=Et(4);break;case"M":case"L":h=On(Nt.Month,1,1);break;case"MM":case"LL":h=On(Nt.Month,2,1);break;case"MMM":h=Cn(It.Months,ge.Abbreviated);break;case"MMMM":h=Cn(It.Months,ge.Wide);break;case"MMMMM":h=Cn(It.Months,ge.Narrow);break;case"LLL":h=Cn(It.Months,ge.Abbreviated,oe.Standalone);break;case"LLLL":h=Cn(It.Months,ge.Wide,oe.Standalone);break;case"LLLLL":h=Cn(It.Months,ge.Narrow,oe.Standalone);break;case"w":h=et(1);break;case"ww":h=et(2);break;case"W":h=et(1,!0);break;case"d":h=On(Nt.Date,1);break;case"dd":h=On(Nt.Date,2);break;case"c":case"cc":h=On(Nt.Day,1);break;case"ccc":h=Cn(It.Days,ge.Abbreviated,oe.Standalone);break;case"cccc":h=Cn(It.Days,ge.Wide,oe.Standalone);break;case"ccccc":h=Cn(It.Days,ge.Narrow,oe.Standalone);break;case"cccccc":h=Cn(It.Days,ge.Short,oe.Standalone);break;case"E":case"EE":case"EEE":h=Cn(It.Days,ge.Abbreviated);break;case"EEEE":h=Cn(It.Days,ge.Wide);break;case"EEEEE":h=Cn(It.Days,ge.Narrow);break;case"EEEEEE":h=Cn(It.Days,ge.Short);break;case"a":case"aa":case"aaa":h=Cn(It.DayPeriods,ge.Abbreviated);break;case"aaaa":h=Cn(It.DayPeriods,ge.Wide);break;case"aaaaa":h=Cn(It.DayPeriods,ge.Narrow);break;case"b":case"bb":case"bbb":h=Cn(It.DayPeriods,ge.Abbreviated,oe.Standalone,!0);break;case"bbbb":h=Cn(It.DayPeriods,ge.Wide,oe.Standalone,!0);break;case"bbbbb":h=Cn(It.DayPeriods,ge.Narrow,oe.Standalone,!0);break;case"B":case"BB":case"BBB":h=Cn(It.DayPeriods,ge.Abbreviated,oe.Format,!0);break;case"BBBB":h=Cn(It.DayPeriods,ge.Wide,oe.Format,!0);break;case"BBBBB":h=Cn(It.DayPeriods,ge.Narrow,oe.Format,!0);break;case"h":h=On(Nt.Hours,1,-12);break;case"hh":h=On(Nt.Hours,2,-12);break;case"H":h=On(Nt.Hours,1);break;case"HH":h=On(Nt.Hours,2);break;case"m":h=On(Nt.Minutes,1);break;case"mm":h=On(Nt.Minutes,2);break;case"s":h=On(Nt.Seconds,1);break;case"ss":h=On(Nt.Seconds,2);break;case"S":h=On(Nt.FractionalSeconds,1);break;case"SS":h=On(Nt.FractionalSeconds,2);break;case"SSS":h=On(Nt.FractionalSeconds,3);break;case"Z":case"ZZ":case"ZZZ":h=er(Ht.Short);break;case"ZZZZZ":h=er(Ht.Extended);break;case"O":case"OO":case"OOO":case"z":case"zz":case"zzz":h=er(Ht.ShortGMT);break;case"OOOO":case"ZZZZ":case"zzzz":h=er(Ht.Long);break;default:return null}return St[v]=h,h}(Tt);ht+=Ot?Ot(j,f,at):"''"===Tt?"'":Tt.replace(/(^'|'$)/g,"").replace(/''/g,"'")}),ht}function cn(v,h,f){const C=new Date(0);return C.setFullYear(v,h,f),C.setHours(0,0,0),C}function ln(v,h){const f=function Ye(v){return(0,c.cg1)(v)[c.wAp.LocaleId]}(v);if(vt[f]=vt[f]||{},vt[f][h])return vt[f][h];let C="";switch(h){case"shortDate":C=ft(v,Q.Short);break;case"mediumDate":C=ft(v,Q.Medium);break;case"longDate":C=ft(v,Q.Long);break;case"fullDate":C=ft(v,Q.Full);break;case"shortTime":C=pt(v,Q.Short);break;case"mediumTime":C=pt(v,Q.Medium);break;case"longTime":C=pt(v,Q.Long);break;case"fullTime":C=pt(v,Q.Full);break;case"short":const j=ln(v,"shortTime"),pe=ln(v,"shortDate");C=lr(mt(v,Q.Short),[j,pe]);break;case"medium":const Re=ln(v,"mediumTime"),We=ln(v,"mediumDate");C=lr(mt(v,Q.Medium),[Re,We]);break;case"long":const at=ln(v,"longTime"),ht=ln(v,"longDate");C=lr(mt(v,Q.Long),[at,ht]);break;case"full":const Tt=ln(v,"fullTime"),Ot=ln(v,"fullDate");C=lr(mt(v,Q.Full),[Tt,Ot])}return C&&(vt[f][h]=C),C}function lr(v,h){return h&&(v=v.replace(/\{([^}]+)}/g,function(f,C){return null!=h&&C in h?h[C]:f})),v}function Gn(v,h,f="-",C,j){let pe="";(v<0||j&&v<=0)&&(j?v=1-v:(v=-v,pe=f));let Re=String(v);for(;Re.length<h;)Re="0"+Re;return C&&(Re=Re.slice(Re.length-h)),pe+Re}function On(v,h,f=0,C=!1,j=!1){return function(pe,Re){let We=function Dr(v,h){switch(v){case Nt.FullYear:return h.getFullYear();case Nt.Month:return h.getMonth();case Nt.Date:return h.getDate();case Nt.Hours:return h.getHours();case Nt.Minutes:return h.getMinutes();case Nt.Seconds:return h.getSeconds();case Nt.FractionalSeconds:return h.getMilliseconds();case Nt.Day:return h.getDay();default:throw new Error(`Unknown DateType value "${v}".`)}}(v,pe);if((f>0||We>-f)&&(We+=f),v===Nt.Hours)0===We&&-12===f&&(We=12);else if(v===Nt.FractionalSeconds)return function wr(v,h){return Gn(v,3).substring(0,h)}(We,h);const at=yt(Re,ye.MinusSign);return Gn(We,h,at,C,j)}}function Cn(v,h,f=oe.Format,C=!1){return function(j,pe){return function nr(v,h,f,C,j,pe){switch(f){case It.Months:return function ke(v,h,f){const C=(0,c.cg1)(v),pe=zt([C[c.wAp.MonthsFormat],C[c.wAp.MonthsStandalone]],h);return zt(pe,f)}(h,j,C)[v.getMonth()];case It.Days:return function Ge(v,h,f){const C=(0,c.cg1)(v),pe=zt([C[c.wAp.DaysFormat],C[c.wAp.DaysStandalone]],h);return zt(pe,f)}(h,j,C)[v.getDay()];case It.DayPeriods:const Re=v.getHours(),We=v.getMinutes();if(pe){const ht=function xn(v){const h=(0,c.cg1)(v);return hn(h),(h[c.wAp.ExtraData][2]||[]).map(C=>"string"==typeof C?je(C):[je(C[0]),je(C[1])])}(h),Tt=function Tn(v,h,f){const C=(0,c.cg1)(v);hn(C);const pe=zt([C[c.wAp.ExtraData][0],C[c.wAp.ExtraData][1]],h)||[];return zt(pe,f)||[]}(h,j,C),Ot=ht.findIndex(gn=>{if(Array.isArray(gn)){const[Kt,Jt]=gn,mn=Re>=Kt.hours&&We>=Kt.minutes,An=Re<Jt.hours||Re===Jt.hours&&We<Jt.minutes;if(Kt.hours<Jt.hours){if(mn&&An)return!0}else if(mn||An)return!0}else if(gn.hours===Re&&gn.minutes===We)return!0;return!1});if(-1!==Ot)return Tt[Ot]}return function we(v,h,f){const C=(0,c.cg1)(v),pe=zt([C[c.wAp.DayPeriodsFormat],C[c.wAp.DayPeriodsStandalone]],h);return zt(pe,f)}(h,j,C)[Re<12?0:1];case It.Eras:return function ve(v,h){return zt((0,c.cg1)(v)[c.wAp.Eras],h)}(h,C)[v.getFullYear()<=0?0:1];default:throw new Error(`unexpected translation type ${f}`)}}(j,pe,v,h,f,C)}}function er(v){return function(h,f,C){const j=-1*C,pe=yt(f,ye.MinusSign),Re=j>0?Math.floor(j/60):Math.ceil(j/60);switch(v){case Ht.Short:return(j>=0?"+":"")+Gn(Re,2,pe)+Gn(Math.abs(j%60),2,pe);case Ht.ShortGMT:return"GMT"+(j>=0?"+":"")+Gn(Re,1,pe);case Ht.Long:return"GMT"+(j>=0?"+":"")+Gn(Re,2,pe)+":"+Gn(Math.abs(j%60),2,pe);case Ht.Extended:return 0===C?"Z":(j>=0?"+":"")+Gn(Re,2,pe)+":"+Gn(Math.abs(j%60),2,pe);default:throw new Error(`Unknown zone width "${v}"`)}}}const or=0,Vn=4;function qe(v){return cn(v.getFullYear(),v.getMonth(),v.getDate()+(Vn-v.getDay()))}function et(v,h=!1){return function(f,C){let j;if(h){const pe=new Date(f.getFullYear(),f.getMonth(),1).getDay()-1,Re=f.getDate();j=1+Math.floor((Re+pe)/7)}else{const pe=qe(f),Re=function ct(v){const h=cn(v,or,1).getDay();return cn(v,0,1+(h<=Vn?Vn:Vn+7)-h)}(pe.getFullYear()),We=pe.getTime()-Re.getTime();j=1+Math.round(We/6048e5)}return Gn(j,v,yt(C,ye.MinusSign))}}function Et(v,h=!1){return function(f,C){return Gn(qe(f).getFullYear(),v,yt(C,ye.MinusSign),h)}}const St={};function vn(v,h){v=v.replace(/:/g,"");const f=Date.parse("Jan 01, 1970 00:00:00 "+v)/6e4;return isNaN(f)?h:f}function Pe(v){return v instanceof Date&&!isNaN(v.valueOf())}const ie=/^(\d+)?\.((\d+)(-(\d+))?)?$/,J=22,ue=".",Je="0",nt=";",_t=",",At="#";function Fr(v){const h=parseInt(v);if(isNaN(h))throw new Error("Invalid integer literal when parsing "+v);return h}function Ve(v,h){h=encodeURIComponent(h);for(const f of v.split(";")){const C=f.indexOf("="),[j,pe]=-1==C?[f,""]:[f.slice(0,C),f.slice(C+1)];if(j.trim()===h)return decodeURIComponent(pe)}return null}const _e=/\s+/,Ce=[];let ce=(()=>{class v{constructor(f,C,j,pe){this._iterableDiffers=f,this._keyValueDiffers=C,this._ngEl=j,this._renderer=pe,this.initialClasses=Ce,this.stateMap=new Map}set klass(f){this.initialClasses=null!=f?f.trim().split(_e):Ce}set ngClass(f){this.rawClass="string"==typeof f?f.trim().split(_e):f}ngDoCheck(){for(const C of this.initialClasses)this._updateState(C,!0);const f=this.rawClass;if(Array.isArray(f)||f instanceof Set)for(const C of f)this._updateState(C,!0);else if(null!=f)for(const C of Object.keys(f))this._updateState(C,Boolean(f[C]));this._applyStateDiff()}_updateState(f,C){const j=this.stateMap.get(f);void 0!==j?(j.enabled!==C&&(j.changed=!0,j.enabled=C),j.touched=!0):this.stateMap.set(f,{enabled:C,changed:!0,touched:!0})}_applyStateDiff(){for(const f of this.stateMap){const C=f[0],j=f[1];j.changed?(this._toggleClass(C,j.enabled),j.changed=!1):j.touched||(j.enabled&&this._toggleClass(C,!1),this.stateMap.delete(C)),j.touched=!1}}_toggleClass(f,C){(f=f.trim()).length>0&&f.split(_e).forEach(j=>{C?this._renderer.addClass(this._ngEl.nativeElement,j):this._renderer.removeClass(this._ngEl.nativeElement,j)})}}return v.\u0275fac=function(f){return new(f||v)(c.Y36(c.ZZ4),c.Y36(c.aQg),c.Y36(c.SBq),c.Y36(c.Qsj))},v.\u0275dir=c.lG2({type:v,selectors:[["","ngClass",""]],inputs:{klass:["class","klass"],ngClass:"ngClass"},standalone:!0}),v})();class tt{constructor(h,f,C,j){this.$implicit=h,this.ngForOf=f,this.index=C,this.count=j}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 Xe=(()=>{class v{set ngForOf(f){this._ngForOf=f,this._ngForOfDirty=!0}set ngForTrackBy(f){this._trackByFn=f}get ngForTrackBy(){return this._trackByFn}constructor(f,C,j){this._viewContainer=f,this._template=C,this._differs=j,this._ngForOf=null,this._ngForOfDirty=!0,this._differ=null}set ngForTemplate(f){f&&(this._template=f)}ngDoCheck(){if(this._ngForOfDirty){this._ngForOfDirty=!1;const f=this._ngForOf;!this._differ&&f&&(this._differ=this._differs.find(f).create(this.ngForTrackBy))}if(this._differ){const f=this._differ.diff(this._ngForOf);f&&this._applyChanges(f)}}_applyChanges(f){const C=this._viewContainer;f.forEachOperation((j,pe,Re)=>{if(null==j.previousIndex)C.createEmbeddedView(this._template,new tt(j.item,this._ngForOf,-1,-1),null===Re?void 0:Re);else if(null==Re)C.remove(null===pe?void 0:pe);else if(null!==pe){const We=C.get(pe);C.move(We,Re),wt(We,j)}});for(let j=0,pe=C.length;j<pe;j++){const We=C.get(j).context;We.index=j,We.count=pe,We.ngForOf=this._ngForOf}f.forEachIdentityChange(j=>{wt(C.get(j.currentIndex),j)})}static ngTemplateContextGuard(f,C){return!0}}return v.\u0275fac=function(f){return new(f||v)(c.Y36(c.s_b),c.Y36(c.Rgc),c.Y36(c.ZZ4))},v.\u0275dir=c.lG2({type:v,selectors:[["","ngFor","","ngForOf",""]],inputs:{ngForOf:"ngForOf",ngForTrackBy:"ngForTrackBy",ngForTemplate:"ngForTemplate"},standalone:!0}),v})();function wt(v,h){v.context.$implicit=h.item}let $t=(()=>{class v{constructor(f,C){this._viewContainer=f,this._context=new Gt,this._thenTemplateRef=null,this._elseTemplateRef=null,this._thenViewRef=null,this._elseViewRef=null,this._thenTemplateRef=C}set ngIf(f){this._context.$implicit=this._context.ngIf=f,this._updateView()}set ngIfThen(f){un("ngIfThen",f),this._thenTemplateRef=f,this._thenViewRef=null,this._updateView()}set ngIfElse(f){un("ngIfElse",f),this._elseTemplateRef=f,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(f,C){return!0}}return v.\u0275fac=function(f){return new(f||v)(c.Y36(c.s_b),c.Y36(c.Rgc))},v.\u0275dir=c.lG2({type:v,selectors:[["","ngIf",""]],inputs:{ngIf:"ngIf",ngIfThen:"ngIfThen",ngIfElse:"ngIfElse"},standalone:!0}),v})();class Gt{constructor(){this.$implicit=null,this.ngIf=null}}function un(v,h){if(h&&!h.createEmbeddedView)throw new Error(`${v} must be a TemplateRef, but received '${(0,c.AaK)(h)}'.`)}class Mn{constructor(h,f){this._viewContainerRef=h,this._templateRef=f,this._created=!1}create(){this._created=!0,this._viewContainerRef.createEmbeddedView(this._templateRef)}destroy(){this._created=!1,this._viewContainerRef.clear()}enforceState(h){h&&!this._created?this.create():!h&&this._created&&this.destroy()}}let an=(()=>{class v{constructor(){this._defaultViews=[],this._defaultUsed=!1,this._caseCount=0,this._lastCaseCheckIndex=0,this._lastCasesMatched=!1}set ngSwitch(f){this._ngSwitch=f,0===this._caseCount&&this._updateDefaultCases(!0)}_addCase(){return this._caseCount++}_addDefault(f){this._defaultViews.push(f)}_matchCase(f){const C=f==this._ngSwitch;return this._lastCasesMatched=this._lastCasesMatched||C,this._lastCaseCheckIndex++,this._lastCaseCheckIndex===this._caseCount&&(this._updateDefaultCases(!this._lastCasesMatched),this._lastCaseCheckIndex=0,this._lastCasesMatched=!1),C}_updateDefaultCases(f){if(this._defaultViews.length>0&&f!==this._defaultUsed){this._defaultUsed=f;for(const C of this._defaultViews)C.enforceState(f)}}}return v.\u0275fac=function(f){return new(f||v)},v.\u0275dir=c.lG2({type:v,selectors:[["","ngSwitch",""]],inputs:{ngSwitch:"ngSwitch"},standalone:!0}),v})(),rr=(()=>{class v{constructor(f,C,j){this.ngSwitch=j,j._addCase(),this._view=new Mn(f,C)}ngDoCheck(){this._view.enforceState(this.ngSwitch._matchCase(this.ngSwitchCase))}}return v.\u0275fac=function(f){return new(f||v)(c.Y36(c.s_b),c.Y36(c.Rgc),c.Y36(an,9))},v.\u0275dir=c.lG2({type:v,selectors:[["","ngSwitchCase",""]],inputs:{ngSwitchCase:"ngSwitchCase"},standalone:!0}),v})(),Lr=(()=>{class v{constructor(f,C,j){this._ngEl=f,this._differs=C,this._renderer=j,this._ngStyle=null,this._differ=null}set ngStyle(f){this._ngStyle=f,!this._differ&&f&&(this._differ=this._differs.find(f).create())}ngDoCheck(){if(this._differ){const f=this._differ.diff(this._ngStyle);f&&this._applyChanges(f)}}_setStyle(f,C){const[j,pe]=f.split("."),Re=-1===j.indexOf("-")?void 0:c.JOm.DashCase;null!=C?this._renderer.setStyle(this._ngEl.nativeElement,j,pe?`${C}${pe}`:C,Re):this._renderer.removeStyle(this._ngEl.nativeElement,j,Re)}_applyChanges(f){f.forEachRemovedItem(C=>this._setStyle(C.key,null)),f.forEachAddedItem(C=>this._setStyle(C.key,C.currentValue)),f.forEachChangedItem(C=>this._setStyle(C.key,C.currentValue))}}return v.\u0275fac=function(f){return new(f||v)(c.Y36(c.SBq),c.Y36(c.aQg),c.Y36(c.Qsj))},v.\u0275dir=c.lG2({type:v,selectors:[["","ngStyle",""]],inputs:{ngStyle:"ngStyle"},standalone:!0}),v})(),_r=(()=>{class v{constructor(f){this._viewContainerRef=f,this._viewRef=null,this.ngTemplateOutletContext=null,this.ngTemplateOutlet=null,this.ngTemplateOutletInjector=null}ngOnChanges(f){if(f.ngTemplateOutlet||f.ngTemplateOutletInjector){const C=this._viewContainerRef;if(this._viewRef&&C.remove(C.indexOf(this._viewRef)),this.ngTemplateOutlet){const{ngTemplateOutlet:j,ngTemplateOutletContext:pe,ngTemplateOutletInjector:Re}=this;this._viewRef=C.createEmbeddedView(j,pe,Re?{injector:Re}:void 0)}else this._viewRef=null}else this._viewRef&&f.ngTemplateOutletContext&&this.ngTemplateOutletContext&&(this._viewRef.context=this.ngTemplateOutletContext)}}return v.\u0275fac=function(f){return new(f||v)(c.Y36(c.s_b))},v.\u0275dir=c.lG2({type:v,selectors:[["","ngTemplateOutlet",""]],inputs:{ngTemplateOutletContext:"ngTemplateOutletContext",ngTemplateOutlet:"ngTemplateOutlet",ngTemplateOutletInjector:"ngTemplateOutletInjector"},standalone:!0,features:[c.TTD]}),v})();function Jn(v,h){return new c.vHH(2100,!1)}class fr{createSubscription(h,f){return h.subscribe({next:f,error:C=>{throw C}})}dispose(h){h.unsubscribe()}}class Ur{createSubscription(h,f){return h.then(f,C=>{throw C})}dispose(h){}}const ui=new Ur,Ai=new fr;let Ln=(()=>{class v{constructor(f){this._latestValue=null,this._subscription=null,this._obj=null,this._strategy=null,this._ref=f}ngOnDestroy(){this._subscription&&this._dispose(),this._ref=null}transform(f){return this._obj?f!==this._obj?(this._dispose(),this.transform(f)):this._latestValue:(f&&this._subscribe(f),this._latestValue)}_subscribe(f){this._obj=f,this._strategy=this._selectStrategy(f),this._subscription=this._strategy.createSubscription(f,C=>this._updateLatestValue(f,C))}_selectStrategy(f){if((0,c.QGY)(f))return ui;if((0,c.F4k)(f))return Ai;throw Jn()}_dispose(){this._strategy.dispose(this._subscription),this._latestValue=null,this._subscription=null,this._obj=null}_updateLatestValue(f,C){f===this._obj&&(this._latestValue=C,this._ref.markForCheck())}}return v.\u0275fac=function(f){return new(f||v)(c.Y36(c.sBO,16))},v.\u0275pipe=c.Yjl({name:"async",type:v,pure:!1,standalone:!0}),v})();const ji=new c.OlP("DATE_PIPE_DEFAULT_TIMEZONE"),Ar=new c.OlP("DATE_PIPE_DEFAULT_OPTIONS");let So=(()=>{class v{constructor(f,C,j){this.locale=f,this.defaultTimezone=C,this.defaultOptions=j}transform(f,C,j,pe){if(null==f||""===f||f!=f)return null;try{return pn(f,C??this.defaultOptions?.dateFormat??"mediumDate",pe||this.locale,j??this.defaultOptions?.timezone??this.defaultTimezone??void 0)}catch(Re){throw Jn()}}}return v.\u0275fac=function(f){return new(f||v)(c.Y36(c.soG,16),c.Y36(ji,24),c.Y36(Ar,24))},v.\u0275pipe=c.Yjl({name:"date",type:v,pure:!0,standalone:!0}),v})(),Tr=(()=>{class v{transform(f){return JSON.stringify(f,null,2)}}return v.\u0275fac=function(f){return new(f||v)},v.\u0275pipe=c.Yjl({name:"json",type:v,pure:!1,standalone:!0}),v})(),ii=(()=>{class v{constructor(f){this.differs=f,this.keyValues=[],this.compareFn=Yi}transform(f,C=Yi){if(!f||!(f instanceof Map)&&"object"!=typeof f)return null;this.differ||(this.differ=this.differs.find(f).create());const j=this.differ.diff(f),pe=C!==this.compareFn;return j&&(this.keyValues=[],j.forEachItem(Re=>{this.keyValues.push(function Ki(v,h){return{key:v,value:h}}(Re.key,Re.currentValue))})),(j||pe)&&(this.keyValues.sort(C),this.compareFn=C),this.keyValues}}return v.\u0275fac=function(f){return new(f||v)(c.Y36(c.aQg,16))},v.\u0275pipe=c.Yjl({name:"keyvalue",type:v,pure:!1,standalone:!0}),v})();function Yi(v,h){const f=v.key,C=h.key;if(f===C)return 0;if(void 0===f)return 1;if(void 0===C)return-1;if(null===f)return 1;if(null===C)return-1;if("string"==typeof f&&"string"==typeof C)return f<C?-1:1;if("number"==typeof f&&"number"==typeof C)return f-C;if("boolean"==typeof f&&"boolean"==typeof C)return f<C?-1:1;const j=String(f),pe=String(C);return j==pe?0:j<pe?-1:1}let Bo=(()=>{class v{constructor(f){this._locale=f}transform(f,C,j){if(!function lo(v){return!(null==v||""===v||v!=v)}(f))return null;j=j||this._locale;try{return function xr(v,h,f){return function _n(v,h,f,C,j,pe,Re=!1){let We="",at=!1;if(isFinite(v)){let ht=function Fi(v){let C,j,pe,Re,We,h=Math.abs(v)+"",f=0;for((j=h.indexOf(ue))>-1&&(h=h.replace(ue,"")),(pe=h.search(/e/i))>0?(j<0&&(j=pe),j+=+h.slice(pe+1),h=h.substring(0,pe)):j<0&&(j=h.length),pe=0;h.charAt(pe)===Je;pe++);if(pe===(We=h.length))C=[0],j=1;else{for(We--;h.charAt(We)===Je;)We--;for(j-=pe,C=[],Re=0;pe<=We;pe++,Re++)C[Re]=Number(h.charAt(pe))}return j>J&&(C=C.splice(0,J-1),f=j-1,j=1),{digits:C,exponent:f,integerLen:j}}(v);Re&&(ht=function Er(v){if(0===v.digits[0])return v;const h=v.digits.length-v.integerLen;return v.exponent?v.exponent+=2:(0===h?v.digits.push(0,0):1===h&&v.digits.push(0),v.integerLen+=2),v}(ht));let Tt=h.minInt,Ot=h.minFrac,gn=h.maxFrac;if(pe){const dr=pe.match(ie);if(null===dr)throw new Error(`${pe} is not a valid digit info`);const Sr=dr[1],Cr=dr[3],wi=dr[5];null!=Sr&&(Tt=Fr(Sr)),null!=Cr&&(Ot=Fr(Cr)),null!=wi?gn=Fr(wi):null!=Cr&&Ot>gn&&(gn=Ot)}!function Li(v,h,f){if(h>f)throw new Error(`The minimum number of digits after fraction (${h}) is higher than the maximum (${f}).`);let C=v.digits,j=C.length-v.integerLen;const pe=Math.min(Math.max(h,j),f);let Re=pe+v.integerLen,We=C[Re];if(Re>0){C.splice(Math.max(v.integerLen,Re));for(let Ot=Re;Ot<C.length;Ot++)C[Ot]=0}else{j=Math.max(0,j),v.integerLen=1,C.length=Math.max(1,Re=pe+1),C[0]=0;for(let Ot=1;Ot<Re;Ot++)C[Ot]=0}if(We>=5)if(Re-1<0){for(let Ot=0;Ot>Re;Ot--)C.unshift(0),v.integerLen++;C.unshift(1),v.integerLen++}else C[Re-1]++;for(;j<Math.max(0,pe);j++)C.push(0);let at=0!==pe;const ht=h+v.integerLen,Tt=C.reduceRight(function(Ot,gn,Kt,Jt){return Jt[Kt]=(gn+=Ot)<10?gn:gn-10,at&&(0===Jt[Kt]&&Kt>=ht?Jt.pop():at=!1),gn>=10?1:0},0);Tt&&(C.unshift(Tt),v.integerLen++)}(ht,Ot,gn);let Kt=ht.digits,Jt=ht.integerLen;const mn=ht.exponent;let An=[];for(at=Kt.every(dr=>!dr);Jt<Tt;Jt++)Kt.unshift(0);for(;Jt<0;Jt++)Kt.unshift(0);Jt>0?An=Kt.splice(Jt,Kt.length):(An=Kt,Kt=[0]);const Wn=[];for(Kt.length>=h.lgSize&&Wn.unshift(Kt.splice(-h.lgSize,Kt.length).join(""));Kt.length>h.gSize;)Wn.unshift(Kt.splice(-h.gSize,Kt.length).join(""));Kt.length&&Wn.unshift(Kt.join("")),We=Wn.join(yt(f,C)),An.length&&(We+=yt(f,j)+An.join("")),mn&&(We+=yt(f,ye.Exponential)+"+"+mn)}else We=yt(f,ye.Infinity);return We=v<0&&!at?h.negPre+We+h.negSuf:h.posPre+We+h.posSuf,We}(v,function Di(v,h="-"){const f={minInt:1,minFrac:0,maxFrac:0,posPre:"",posSuf:"",negPre:"",negSuf:"",gSize:0,lgSize:0},C=v.split(nt),j=C[0],pe=C[1],Re=-1!==j.indexOf(ue)?j.split(ue):[j.substring(0,j.lastIndexOf(Je)+1),j.substring(j.lastIndexOf(Je)+1)],We=Re[0],at=Re[1]||"";f.posPre=We.substring(0,We.indexOf(At));for(let Tt=0;Tt<at.length;Tt++){const Ot=at.charAt(Tt);Ot===Je?f.minFrac=f.maxFrac=Tt+1:Ot===At?f.maxFrac=Tt+1:f.posSuf+=Ot}const ht=We.split(_t);if(f.gSize=ht[1]?ht[1].length:0,f.lgSize=ht[2]||ht[1]?(ht[2]||ht[1]).length:0,pe){const Tt=j.length-f.posPre.length-f.posSuf.length,Ot=pe.indexOf(At);f.negPre=pe.substring(0,Ot).replace(/'/g,""),f.negSuf=pe.slice(Ot+Tt).replace(/'/g,"")}else f.negPre=h+f.posPre,f.negSuf=f.posSuf;return f}(function Pt(v,h){return(0,c.cg1)(v)[c.wAp.NumberFormats][h]}(h,U.Decimal),yt(h,ye.MinusSign)),h,ye.Group,ye.Decimal,f)}(function Io(v){if("string"==typeof v&&!isNaN(Number(v)-parseFloat(v)))return Number(v);if("number"!=typeof v)throw new Error(`${v} is not a number`);return v}(f),j,C)}catch(pe){throw Jn()}}}return v.\u0275fac=function(f){return new(f||v)(c.Y36(c.soG,16))},v.\u0275pipe=c.Yjl({name:"number",type:v,pure:!0,standalone:!0}),v})();let Do=(()=>{class v{transform(f,C,j){if(null==f)return null;if(!this.supports(f))throw Jn();return f.slice(C,j)}supports(f){return"string"==typeof f||Array.isArray(f)}}return v.\u0275fac=function(f){return new(f||v)},v.\u0275pipe=c.Yjl({name:"slice",type:v,pure:!1,standalone:!0}),v})(),ns=(()=>{class v{}return v.\u0275fac=function(f){return new(f||v)},v.\u0275mod=c.oAB({type:v}),v.\u0275inj=c.cJS({}),v})();const Cs="browser";function rs(v){return v===Cs}let Qr=(()=>{class v{}return v.\u0275prov=(0,c.Yz7)({token:v,providedIn:"root",factory:()=>new Ti((0,c.LFG)(w),window)}),v})();class Ti{constructor(h,f){this.document=h,this.window=f,this.offset=()=>[0,0]}setOffset(h){this.offset=Array.isArray(h)?()=>h:h}getScrollPosition(){return this.supportsScrolling()?[this.window.pageXOffset,this.window.pageYOffset]:[0,0]}scrollToPosition(h){this.supportsScrolling()&&this.window.scrollTo(h[0],h[1])}scrollToAnchor(h){if(!this.supportsScrolling())return;const f=function Jr(v,h){const f=v.getElementById(h)||v.getElementsByName(h)[0];if(f)return f;if("function"==typeof v.createTreeWalker&&v.body&&(v.body.createShadowRoot||v.body.attachShadow)){const C=v.createTreeWalker(v.body,NodeFilter.SHOW_ELEMENT);let j=C.currentNode;for(;j;){const pe=j.shadowRoot;if(pe){const Re=pe.getElementById(h)||pe.querySelector(`[name="${h}"]`);if(Re)return Re}j=C.nextNode()}}return null}(this.document,h);f&&(this.scrollToElement(f),f.focus())}setHistoryScrollRestoration(h){if(this.supportScrollRestoration()){const f=this.window.history;f&&f.scrollRestoration&&(f.scrollRestoration=h)}}scrollToElement(h){const f=h.getBoundingClientRect(),C=f.left+this.window.pageXOffset,j=f.top+this.window.pageYOffset,pe=this.offset();this.window.scrollTo(C-pe[0],j-pe[1])}supportScrollRestoration(){try{if(!this.supportsScrolling())return!1;const h=Pi(this.window.history)||Pi(Object.getPrototypeOf(this.window.history));return!(!h||!h.writable&&!h.set)}catch{return!1}}supportsScrolling(){try{return!!this.window&&!!this.window.scrollTo&&"pageXOffset"in this.window}catch{return!1}}}function Pi(v){return Object.getOwnPropertyDescriptor(v,"scrollRestoration")}class To{}},80529:(Ze,ee,_)=>{"use strict";_.d(ee,{JF:()=>er,TP:()=>ve,WM:()=>N,Zn:()=>Q,dt:()=>W,eN:()=>Ye});var c=_(36895),b=_(55062),M=_(21086),F=_(57451),O=_(21406),w=_(92198),y=_(24850);class g{}class x{}class N{constructor(qe){this.normalizedNames=new Map,this.lazyUpdate=null,qe?this.lazyInit="string"==typeof qe?()=>{this.headers=new Map,qe.split("\n").forEach(et=>{const Et=et.indexOf(":");if(Et>0){const St=et.slice(0,Et),Xt=St.toLowerCase(),vn=et.slice(Et+1).trim();this.maybeSetNormalizedName(St,Xt),this.headers.has(Xt)?this.headers.get(Xt).push(vn):this.headers.set(Xt,[vn])}})}:()=>{this.headers=new Map,Object.keys(qe).forEach(et=>{let Et=qe[et];const St=et.toLowerCase();"string"==typeof Et&&(Et=[Et]),Et.length>0&&(this.headers.set(St,Et),this.maybeSetNormalizedName(et,St))})}:this.headers=new Map}has(qe){return this.init(),this.headers.has(qe.toLowerCase())}get(qe){this.init();const et=this.headers.get(qe.toLowerCase());return et&&et.length>0?et[0]:null}keys(){return this.init(),Array.from(this.normalizedNames.values())}getAll(qe){return this.init(),this.headers.get(qe.toLowerCase())||null}append(qe,et){return this.clone({name:qe,value:et,op:"a"})}set(qe,et){return this.clone({name:qe,value:et,op:"s"})}delete(qe,et){return this.clone({name:qe,value:et,op:"d"})}maybeSetNormalizedName(qe,et){this.normalizedNames.has(et)||this.normalizedNames.set(et,qe)}init(){this.lazyInit&&(this.lazyInit instanceof N?this.copyFrom(this.lazyInit):this.lazyInit(),this.lazyInit=null,this.lazyUpdate&&(this.lazyUpdate.forEach(qe=>this.applyUpdate(qe)),this.lazyUpdate=null))}copyFrom(qe){qe.init(),Array.from(qe.headers.keys()).forEach(et=>{this.headers.set(et,qe.headers.get(et)),this.normalizedNames.set(et,qe.normalizedNames.get(et))})}clone(qe){const et=new N;return et.lazyInit=this.lazyInit&&this.lazyInit instanceof N?this.lazyInit:this,et.lazyUpdate=(this.lazyUpdate||[]).concat([qe]),et}applyUpdate(qe){const et=qe.name.toLowerCase();switch(qe.op){case"a":case"s":let Et=qe.value;if("string"==typeof Et&&(Et=[Et]),0===Et.length)return;this.maybeSetNormalizedName(qe.name,et);const St=("a"===qe.op?this.headers.get(et):void 0)||[];St.push(...Et),this.headers.set(et,St);break;case"d":const Xt=qe.value;if(Xt){let vn=this.headers.get(et);if(!vn)return;vn=vn.filter(Pn=>-1===Xt.indexOf(Pn)),0===vn.length?(this.headers.delete(et),this.normalizedNames.delete(et)):this.headers.set(et,vn)}else this.headers.delete(et),this.normalizedNames.delete(et)}}forEach(qe){this.init(),Array.from(this.normalizedNames.keys()).forEach(et=>qe(this.normalizedNames.get(et),this.headers.get(et)))}}class V{encodeKey(qe){return se(qe)}encodeValue(qe){return se(qe)}decodeKey(qe){return decodeURIComponent(qe)}decodeValue(qe){return decodeURIComponent(qe)}}const q=/%(\d[a-f0-9])/gi,de={40:"@","3A":":",24:"$","2C":",","3B":";","3D":"=","3F":"?","2F":"/"};function se(ct){return encodeURIComponent(ct).replace(q,(qe,et)=>de[et]??qe)}function De(ct){return`${ct}`}class he{constructor(qe={}){if(this.updates=null,this.cloneFrom=null,this.encoder=qe.encoder||new V,qe.fromString){if(qe.fromObject)throw new Error("Cannot specify both fromString and fromObject.");this.map=function B(ct,qe){const et=new Map;return ct.length>0&&ct.replace(/^\?/,"").split("&").forEach(St=>{const Xt=St.indexOf("="),[vn,Pn]=-1==Xt?[qe.decodeKey(St),""]:[qe.decodeKey(St.slice(0,Xt)),qe.decodeValue(St.slice(Xt+1))],rn=et.get(vn)||[];rn.push(Pn),et.set(vn,rn)}),et}(qe.fromString,this.encoder)}else qe.fromObject?(this.map=new Map,Object.keys(qe.fromObject).forEach(et=>{const Et=qe.fromObject[et],St=Array.isArray(Et)?Et.map(De):[De(Et)];this.map.set(et,St)})):this.map=null}has(qe){return this.init(),this.map.has(qe)}get(qe){this.init();const et=this.map.get(qe);return et?et[0]:null}getAll(qe){return this.init(),this.map.get(qe)||null}keys(){return this.init(),Array.from(this.map.keys())}append(qe,et){return this.clone({param:qe,value:et,op:"a"})}appendAll(qe){const et=[];return Object.keys(qe).forEach(Et=>{const St=qe[Et];Array.isArray(St)?St.forEach(Xt=>{et.push({param:Et,value:Xt,op:"a"})}):et.push({param:Et,value:St,op:"a"})}),this.clone(et)}set(qe,et){return this.clone({param:qe,value:et,op:"s"})}delete(qe,et){return this.clone({param:qe,value:et,op:"d"})}toString(){return this.init(),this.keys().map(qe=>{const et=this.encoder.encodeKey(qe);return this.map.get(qe).map(Et=>et+"="+this.encoder.encodeValue(Et)).join("&")}).filter(qe=>""!==qe).join("&")}clone(qe){const et=new he({encoder:this.encoder});return et.cloneFrom=this.cloneFrom||this,et.updates=(this.updates||[]).concat(qe),et}init(){null===this.map&&(this.map=new Map),null!==this.cloneFrom&&(this.cloneFrom.init(),this.cloneFrom.keys().forEach(qe=>this.map.set(qe,this.cloneFrom.map.get(qe))),this.updates.forEach(qe=>{switch(qe.op){case"a":case"s":const et=("a"===qe.op?this.map.get(qe.param):void 0)||[];et.push(De(qe.value)),this.map.set(qe.param,et);break;case"d":if(void 0===qe.value){this.map.delete(qe.param);break}{let Et=this.map.get(qe.param)||[];const St=Et.indexOf(De(qe.value));-1!==St&&Et.splice(St,1),Et.length>0?this.map.set(qe.param,Et):this.map.delete(qe.param)}}}),this.cloneFrom=this.updates=null)}}class Me{constructor(){this.map=new Map}set(qe,et){return this.map.set(qe,et),this}get(qe){return this.map.has(qe)||this.map.set(qe,qe.defaultValue()),this.map.get(qe)}delete(qe){return this.map.delete(qe),this}has(qe){return this.map.has(qe)}keys(){return this.map.keys()}}function Y(ct){return typeof ArrayBuffer<"u"&&ct instanceof ArrayBuffer}function Be(ct){return typeof Blob<"u"&&ct instanceof Blob}function le(ct){return typeof FormData<"u"&&ct instanceof FormData}class U{constructor(qe,et,Et,St){let Xt;if(this.url=et,this.body=null,this.reportProgress=!1,this.withCredentials=!1,this.responseType="json",this.method=qe.toUpperCase(),function be(ct){switch(ct){case"DELETE":case"GET":case"HEAD":case"OPTIONS":case"JSONP":return!1;default:return!0}}(this.method)||St?(this.body=void 0!==Et?Et:null,Xt=St):Xt=Et,Xt&&(this.reportProgress=!!Xt.reportProgress,this.withCredentials=!!Xt.withCredentials,Xt.responseType&&(this.responseType=Xt.responseType),Xt.headers&&(this.headers=Xt.headers),Xt.context&&(this.context=Xt.context),Xt.params&&(this.params=Xt.params)),this.headers||(this.headers=new N),this.context||(this.context=new Me),this.params){const vn=this.params.toString();if(0===vn.length)this.urlWithParams=et;else{const Pn=et.indexOf("?");this.urlWithParams=et+(-1===Pn?"?":Pn<et.length-1?"&":"")+vn}}else this.params=new he,this.urlWithParams=et}serializeBody(){return null===this.body?null:Y(this.body)||Be(this.body)||le(this.body)||function R(ct){return typeof URLSearchParams<"u"&&ct instanceof URLSearchParams}(this.body)||"string"==typeof this.body?this.body:this.body instanceof he?this.body.toString():"object"==typeof this.body||"boolean"==typeof this.body||Array.isArray(this.body)?JSON.stringify(this.body):this.body.toString()}detectContentTypeHeader(){return null===this.body||le(this.body)?null:Be(this.body)?this.body.type||null:Y(this.body)?null:"string"==typeof this.body?"text/plain":this.body instanceof he?"application/x-www-form-urlencoded;charset=UTF-8":"object"==typeof this.body||"number"==typeof this.body||"boolean"==typeof this.body?"application/json":null}clone(qe={}){const et=qe.method||this.method,Et=qe.url||this.url,St=qe.responseType||this.responseType,Xt=void 0!==qe.body?qe.body:this.body,vn=void 0!==qe.withCredentials?qe.withCredentials:this.withCredentials,Pn=void 0!==qe.reportProgress?qe.reportProgress:this.reportProgress;let rn=qe.headers||this.headers,En=qe.params||this.params;const Yn=qe.context??this.context;return void 0!==qe.setHeaders&&(rn=Object.keys(qe.setHeaders).reduce((Pe,ie)=>Pe.set(ie,qe.setHeaders[ie]),rn)),qe.setParams&&(En=Object.keys(qe.setParams).reduce((Pe,ie)=>Pe.set(ie,qe.setParams[ie]),En)),new U(et,Et,Xt,{params:En,headers:rn,context:Yn,reportProgress:Pn,responseType:St,withCredentials:vn})}}var W=(()=>((W=W||{})[W.Sent=0]="Sent",W[W.UploadProgress=1]="UploadProgress",W[W.ResponseHeader=2]="ResponseHeader",W[W.DownloadProgress=3]="DownloadProgress",W[W.Response=4]="Response",W[W.User=5]="User",W))();class oe{constructor(qe,et=200,Et="OK"){this.headers=qe.headers||new N,this.status=void 0!==qe.status?qe.status:et,this.statusText=qe.statusText||Et,this.url=qe.url||null,this.ok=this.status>=200&&this.status<300}}class ge extends oe{constructor(qe={}){super(qe),this.type=W.ResponseHeader}clone(qe={}){return new ge({headers:qe.headers||this.headers,status:void 0!==qe.status?qe.status:this.status,statusText:qe.statusText||this.statusText,url:qe.url||this.url||void 0})}}class Q extends oe{constructor(qe={}){super(qe),this.type=W.Response,this.body=void 0!==qe.body?qe.body:null}clone(qe={}){return new Q({body:void 0!==qe.body?qe.body:this.body,headers:qe.headers||this.headers,status:void 0!==qe.status?qe.status:this.status,statusText:qe.statusText||this.statusText,url:qe.url||this.url||void 0})}}class ye extends oe{constructor(qe){super(qe,0,"Unknown Error"),this.name="HttpErrorResponse",this.ok=!1,this.message=this.status>=200&&this.status<300?`Http failure during parsing for ${qe.url||"(unknown url)"}`:`Http failure response for ${qe.url||"(unknown url)"}: ${qe.status} ${qe.statusText}`,this.error=qe.error||null}}function Le(ct,qe){return{body:qe,headers:ct.headers,context:ct.context,observe:ct.observe,params:ct.params,reportProgress:ct.reportProgress,responseType:ct.responseType,withCredentials:ct.withCredentials}}let Ye=(()=>{class ct{constructor(et){this.handler=et}request(et,Et,St={}){let Xt;if(et instanceof U)Xt=et;else{let rn,En;rn=St.headers instanceof N?St.headers:new N(St.headers),St.params&&(En=St.params instanceof he?St.params:new he({fromObject:St.params})),Xt=new U(et,Et,void 0!==St.body?St.body:null,{headers:rn,context:St.context,params:En,reportProgress:St.reportProgress,responseType:St.responseType||"json",withCredentials:St.withCredentials})}const vn=(0,M.of)(Xt).pipe((0,O.b)(rn=>this.handler.handle(rn)));if(et instanceof U||"events"===St.observe)return vn;const Pn=vn.pipe((0,w.h)(rn=>rn instanceof Q));switch(St.observe||"body"){case"body":switch(Xt.responseType){case"arraybuffer":return Pn.pipe((0,y.U)(rn=>{if(null!==rn.body&&!(rn.body instanceof ArrayBuffer))throw new Error("Response is not an ArrayBuffer.");return rn.body}));case"blob":return Pn.pipe((0,y.U)(rn=>{if(null!==rn.body&&!(rn.body instanceof Blob))throw new Error("Response is not a Blob.");return rn.body}));case"text":return Pn.pipe((0,y.U)(rn=>{if(null!==rn.body&&"string"!=typeof rn.body)throw new Error("Response is not a string.");return rn.body}));default:return Pn.pipe((0,y.U)(rn=>rn.body))}case"response":return Pn;default:throw new Error(`Unreachable: unhandled observe type ${St.observe}}`)}}delete(et,Et={}){return this.request("DELETE",et,Et)}get(et,Et={}){return this.request("GET",et,Et)}head(et,Et={}){return this.request("HEAD",et,Et)}jsonp(et,Et){return this.request("JSONP",et,{params:(new he).append(Et,"JSONP_CALLBACK"),observe:"body",responseType:"json"})}options(et,Et={}){return this.request("OPTIONS",et,Et)}patch(et,Et,St={}){return this.request("PATCH",et,Le(St,Et))}post(et,Et,St={}){return this.request("POST",et,Le(St,Et))}put(et,Et,St={}){return this.request("PUT",et,Le(St,Et))}}return ct.\u0275fac=function(et){return new(et||ct)(b.LFG(g))},ct.\u0275prov=b.Yz7({token:ct,factory:ct.\u0275fac}),ct})();function we(ct,qe){return qe(ct)}function Ge(ct,qe){return(et,Et)=>qe.intercept(et,{handle:St=>ct(St,Et)})}const ve=new b.OlP("HTTP_INTERCEPTORS"),ze=new b.OlP("HTTP_INTERCEPTOR_FNS");function Ie(){let ct=null;return(qe,et)=>(null===ct&&(ct=((0,b.f3M)(ve,{optional:!0})??[]).reduceRight(Ge,we)),ct(qe,et))}let ft=(()=>{class ct extends g{constructor(et,Et){super(),this.backend=et,this.injector=Et,this.chain=null}handle(et){if(null===this.chain){const Et=Array.from(new Set(this.injector.get(ze)));this.chain=Et.reduceRight((St,Xt)=>function ke(ct,qe,et){return(Et,St)=>et.runInContext(()=>qe(Et,Xt=>ct(Xt,St)))}(St,Xt,this.injector),we)}return this.chain(et,Et=>this.backend.handle(Et))}}return ct.\u0275fac=function(et){return new(et||ct)(b.LFG(x),b.LFG(b.lqb))},ct.\u0275prov=b.Yz7({token:ct,factory:ct.\u0275fac}),ct})();const Tn=/^\)\]\}',?\n/;let zt=(()=>{class ct{constructor(et){this.xhrFactory=et}handle(et){if("JSONP"===et.method)throw new Error("Attempted to construct Jsonp request without HttpClientJsonpModule installed.");return new F.y(Et=>{const St=this.xhrFactory.build();if(St.open(et.method,et.urlWithParams),et.withCredentials&&(St.withCredentials=!0),et.headers.forEach((J,ue)=>St.setRequestHeader(J,ue.join(","))),et.headers.has("Accept")||St.setRequestHeader("Accept","application/json, text/plain, */*"),!et.headers.has("Content-Type")){const J=et.detectContentTypeHeader();null!==J&&St.setRequestHeader("Content-Type",J)}if(et.responseType){const J=et.responseType.toLowerCase();St.responseType="json"!==J?J:"text"}const Xt=et.serializeBody();let vn=null;const Pn=()=>{if(null!==vn)return vn;const J=St.statusText||"OK",ue=new N(St.getAllResponseHeaders()),Je=function wn(ct){return"responseURL"in ct&&ct.responseURL?ct.responseURL:/^X-Request-URL:/m.test(ct.getAllResponseHeaders())?ct.getResponseHeader("X-Request-URL"):null}(St)||et.url;return vn=new ge({headers:ue,status:St.status,statusText:J,url:Je}),vn},rn=()=>{let{headers:J,status:ue,statusText:Je,url:nt}=Pn(),_t=null;204!==ue&&(_t=typeof St.response>"u"?St.responseText:St.response),0===ue&&(ue=_t?200:0);let At=ue>=200&&ue<300;if("json"===et.responseType&&"string"==typeof _t){const kt=_t;_t=_t.replace(Tn,"");try{_t=""!==_t?JSON.parse(_t):null}catch(Vt){_t=kt,At&&(At=!1,_t={error:Vt,text:_t})}}At?(Et.next(new Q({body:_t,headers:J,status:ue,statusText:Je,url:nt||void 0})),Et.complete()):Et.error(new ye({error:_t,headers:J,status:ue,statusText:Je,url:nt||void 0}))},En=J=>{const{url:ue}=Pn(),Je=new ye({error:J,status:St.status||0,statusText:St.statusText||"Unknown Error",url:ue||void 0});Et.error(Je)};let Yn=!1;const Pe=J=>{Yn||(Et.next(Pn()),Yn=!0);let ue={type:W.DownloadProgress,loaded:J.loaded};J.lengthComputable&&(ue.total=J.total),"text"===et.responseType&&St.responseText&&(ue.partialText=St.responseText),Et.next(ue)},ie=J=>{let ue={type:W.UploadProgress,loaded:J.loaded};J.lengthComputable&&(ue.total=J.total),Et.next(ue)};return St.addEventListener("load",rn),St.addEventListener("error",En),St.addEventListener("timeout",En),St.addEventListener("abort",En),et.reportProgress&&(St.addEventListener("progress",Pe),null!==Xt&&St.upload&&St.upload.addEventListener("progress",ie)),St.send(Xt),Et.next({type:W.Sent}),()=>{St.removeEventListener("error",En),St.removeEventListener("abort",En),St.removeEventListener("load",rn),St.removeEventListener("timeout",En),et.reportProgress&&(St.removeEventListener("progress",Pe),null!==Xt&&St.upload&&St.upload.removeEventListener("progress",ie)),St.readyState!==St.DONE&&St.abort()}})}}return ct.\u0275fac=function(et){return new(et||ct)(b.LFG(c.JF))},ct.\u0275prov=b.Yz7({token:ct,factory:ct.\u0275fac}),ct})();const je=new b.OlP("XSRF_ENABLED"),re=new b.OlP("XSRF_COOKIE_NAME",{providedIn:"root",factory:()=>"XSRF-TOKEN"}),ot=new b.OlP("XSRF_HEADER_NAME",{providedIn:"root",factory:()=>"X-XSRF-TOKEN"});class vt{}let lt=(()=>{class ct{constructor(et,Et,St){this.doc=et,this.platform=Et,this.cookieName=St,this.lastCookieString="",this.lastToken=null,this.parseCount=0}getToken(){if("server"===this.platform)return null;const et=this.doc.cookie||"";return et!==this.lastCookieString&&(this.parseCount++,this.lastToken=(0,c.Mx)(et,this.cookieName),this.lastCookieString=et),this.lastToken}}return ct.\u0275fac=function(et){return new(et||ct)(b.LFG(c.K0),b.LFG(b.Lbi),b.LFG(re))},ct.\u0275prov=b.Yz7({token:ct,factory:ct.\u0275fac}),ct})();function Ht(ct,qe){const et=ct.url.toLowerCase();if(!(0,b.f3M)(je)||"GET"===ct.method||"HEAD"===ct.method||et.startsWith("http://")||et.startsWith("https://"))return qe(ct);const Et=(0,b.f3M)(vt).getToken(),St=(0,b.f3M)(ot);return null!=Et&&!ct.headers.has(St)&&(ct=ct.clone({headers:ct.headers.set(St,Et)})),qe(ct)}var It=(()=>((It=It||{})[It.Interceptors=0]="Interceptors",It[It.LegacyInterceptors=1]="LegacyInterceptors",It[It.CustomXsrfConfiguration=2]="CustomXsrfConfiguration",It[It.NoXsrfProtection=3]="NoXsrfProtection",It[It.JsonpSupport=4]="JsonpSupport",It[It.RequestsMadeViaParent=5]="RequestsMadeViaParent",It))();function pn(ct,qe){return{\u0275kind:ct,\u0275providers:qe}}function cn(...ct){const qe=[Ye,zt,ft,{provide:g,useExisting:ft},{provide:x,useExisting:zt},{provide:ze,useValue:Ht,multi:!0},{provide:je,useValue:!0},{provide:vt,useClass:lt}];for(const et of ct)qe.push(...et.\u0275providers);return(0,b.MR2)(qe)}const lr=new b.OlP("LEGACY_INTERCEPTOR_FN");let er=(()=>{class ct{}return ct.\u0275fac=function(et){return new(et||ct)},ct.\u0275mod=b.oAB({type:ct}),ct.\u0275inj=b.cJS({providers:[cn(pn(It.LegacyInterceptors,[{provide:lr,useFactory:Ie},{provide:ze,useExisting:lr,multi:!0}]))]}),ct})()},55062:(Ze,ee,_)=>{"use strict";_.d(ee,{QbO:()=>$w,tb:()=>L_,AFp:()=>I_,ip1:()=>C_,CZH:()=>Ih,hGG:()=>ME,z2F:()=>xh,sBO:()=>gE,Sil:()=>Qw,_Vd:()=>au,EJc:()=>Yw,Xts:()=>Fd,SBq:()=>qu,lqb:()=>ca,qLn:()=>el,vpe:()=>Ys,XFs:()=>lt,OlP:()=>mr,zs3:()=>Oa,ZZ4:()=>rm,aQg:()=>im,soG:()=>Dh,YKP:()=>bv,h0i:()=>El,PXZ:()=>lE,R0b:()=>ts,FiY:()=>ro,Lbi:()=>Gw,g9A:()=>x_,Qsj:()=>Zm,FYo:()=>Xu,JOm:()=>ms,q3G:()=>ti,tp0:()=>wo,Rgc:()=>Qc,dDg:()=>oE,eoX:()=>N_,GfV:()=>Vp,s_b:()=>Eh,ifc:()=>ue,MMx:()=>M0,Lck:()=>qb,eFA:()=>k_,G48:()=>pE,Gpc:()=>se,f3M:()=>Xt,$WT:()=>Ce,MR2:()=>Km,_c5:()=>PE,c2e:()=>Ww,zSh:()=>Zu,wAp:()=>Sn,vHH:()=>Y,lri:()=>O_,rWj:()=>R_,JZr:()=>be,EiD:()=>Sp,mCW:()=>Yo,qzn:()=>iu,JVY:()=>km,pB0:()=>Hm,eBb:()=>Bm,L6k:()=>jm,LAX:()=>Vm,D6c:()=>OE,cg1:()=>zc,kL8:()=>gh,dqk:()=>ln,Z0I:()=>Tn,eJc:()=>V0,CqO:()=>_c,QGY:()=>vc,F4k:()=>kf,RDi:()=>Nm,AaK:()=>B,z3N:()=>ks,qOj:()=>Af,TTD:()=>To,_Bn:()=>_v,jDz:()=>Ev,xp6:()=>qp,uIk:()=>Mf,Q2q:()=>Of,Tol:()=>Xg,Gre:()=>uh,ekj:()=>Cu,Suo:()=>t_,Xpm:()=>xr,lG2:()=>jo,Yz7:()=>Ut,cJS:()=>hn,oAB:()=>Li,Yjl:()=>xi,Y36:()=>du,_UZ:()=>ll,GkF:()=>Uf,BQk:()=>Gs,ynx:()=>zs,qZA:()=>mc,TgZ:()=>gc,EpF:()=>da,n5z:()=>xu,Ikx:()=>Hc,LFG:()=>Et,$8M:()=>qa,$Z:()=>lg,NdJ:()=>bc,CRH:()=>n_,kcU:()=>ea,O4$:()=>Xs,oxw:()=>Vf,ALo:()=>Gv,lcZ:()=>$v,xi3:()=>Wv,Dn7:()=>Kv,Hsn:()=>cl,F$t:()=>Hf,Q6J:()=>Ff,s9C:()=>Cc,MGl:()=>Ic,hYB:()=>Dc,cQ8:()=>xc,DdM:()=>Tv,VKq:()=>Pv,WLB:()=>Mv,kEZ:()=>Ov,l5B:()=>Rv,qbA:()=>Nv,HTZ:()=>Fv,Hh0:()=>Lv,qlk:()=>Uv,rFY:()=>kv,iGM:()=>Xv,MAs:()=>Gg,KtG:()=>Ds,evT:()=>Gp,Jf7:()=>uu,CHM:()=>ya,oJD:()=>Wu,uOi:()=>Rd,LSH:()=>Od,P3R:()=>su,B6R:()=>Di,kYT:()=>Fr,Akn:()=>qo,Udp:()=>Xf,YNc:()=>zg,W1O:()=>s_,_uU:()=>o0,Oqu:()=>Nc,hij:()=>Va,AsE:()=>Fc,xDo:()=>Uc,Gf:()=>e_});var c=_(8929),b=_(24096),M=_(57451),F=_(36787),O=_(71762);class y{constructor(n,o){this.subjectFactory=n,this.selector=o}call(n,o){const{selector:l}=this,d=this.subjectFactory(),p=l(d).subscribe(n);return p.add(o.subscribe(d)),p}}var g=_(74327);function x(){return new c.xQ}function T(t){for(let n in t)if(t[n]===T)return n;throw Error("Could not find renamed property on target object.")}function V(t,n){for(const o in n)n.hasOwnProperty(o)&&!t.hasOwnProperty(o)&&(t[o]=n[o])}function B(t){if("string"==typeof t)return t;if(Array.isArray(t))return"["+t.map(B).join(", ")+"]";if(null==t)return""+t;if(t.overriddenName)return`${t.overriddenName}`;if(t.name)return`${t.name}`;const n=t.toString();if(null==n)return""+n;const o=n.indexOf("\n");return-1===o?n:n.substring(0,o)}function q(t,n){return null==t||""===t?null===n?"":n:null==n||""===n?t:t+" "+n}const de=T({__forward_ref__:T});function se(t){return t.__forward_ref__=se,t.toString=function(){return B(this())},t}function De(t){return he(t)?t():t}function he(t){return"function"==typeof t&&t.hasOwnProperty(de)&&t.__forward_ref__===se}function xe(t){return t&&!!t.\u0275providers}const be="https://g.co/ng/security#xss";class Y extends Error{constructor(n,o){super(Be(n,o)),this.code=n}}function Be(t,n){return`NG0${Math.abs(t)}${n?": "+n.trim():""}`}function le(t){return"string"==typeof t?t:null==t?"":String(t)}function ge(t,n){throw new Y(-201,!1)}function yt(t,n){null==t&&function Pt(t,n,o,l){throw new Error(`ASSERTION ERROR: ${t}`+(null==l?"":` [Expected=> ${o} ${l} ${n} <=Actual]`))}(n,t,null,"!=")}function Ut(t){return{token:t.token,providedIn:t.providedIn||null,factory:t.factory,value:void 0}}function hn(t){return{providers:t.providers||[],imports:t.imports||[]}}function xn(t){return wn(t,re)||wn(t,ot)}function Tn(t){return null!==xn(t)}function wn(t,n){return t.hasOwnProperty(n)?t[n]:null}function ne(t){return t&&(t.hasOwnProperty($e)||t.hasOwnProperty(vt))?t[$e]:null}const re=T({\u0275prov:T}),$e=T({\u0275inj:T}),ot=T({ngInjectableDef:T}),vt=T({ngInjectorDef:T});var lt=(()=>((lt=lt||{})[lt.Default=0]="Default",lt[lt.Host=1]="Host",lt[lt.Self=2]="Self",lt[lt.SkipSelf=4]="SkipSelf",lt[lt.Optional=8]="Optional",lt))();let Ht;function It(t){const n=Ht;return Ht=t,n}function pn(t,n,o){const l=xn(t);return l&&"root"==l.providedIn?void 0===l.value?l.value=l.factory():l.value:o<.Optional?null:void 0!==n?n:void ge(B(t))}const ln=(()=>typeof globalThis<"u"&&globalThis||typeof global<"u"&&global||typeof window<"u"&&window||typeof self<"u"&&typeof WorkerGlobalScope<"u"&&self instanceof WorkerGlobalScope&&self)(),On={},Dr="__NG_DI_FLAG__",Cn="ngTempTokenPath",nr="ngTokenPath",er=/\n/gm,or="\u0275",Vn="__source";let ct;function qe(t){const n=ct;return ct=t,n}function et(t,n=lt.Default){if(void 0===ct)throw new Y(-203,!1);return null===ct?pn(t,void 0,n):ct.get(t,n<.Optional?null:void 0,n)}function Et(t,n=lt.Default){return(function Nt(){return Ht}()||et)(De(t),n)}function Xt(t,n=lt.Default){return Et(t,vn(n))}function vn(t){return typeof t>"u"||"number"==typeof t?t:0|(t.optional&&8)|(t.host&&1)|(t.self&&2)|(t.skipSelf&&4)}function Pn(t){const n=[];for(let o=0;o<t.length;o++){const l=De(t[o]);if(Array.isArray(l)){if(0===l.length)throw new Y(900,!1);let d,p=lt.Default;for(let I=0;I<l.length;I++){const L=l[I],H=En(L);"number"==typeof H?-1===H?d=L.token:p|=H:d=L}n.push(Et(d,p))}else n.push(Et(l))}return n}function rn(t,n){return t[Dr]=n,t.prototype[Dr]=n,t}function En(t){return t[Dr]}function ie(t){return{toString:t}.toString()}var J=(()=>((J=J||{})[J.OnPush=0]="OnPush",J[J.Default=1]="Default",J))(),ue=(()=>{return(t=ue||(ue={}))[t.Emulated=0]="Emulated",t[t.None=2]="None",t[t.ShadowDom=3]="ShadowDom",ue;var t})();const Je={},nt=[],_t=T({\u0275cmp:T}),At=T({\u0275dir:T}),kt=T({\u0275pipe:T}),Vt=T({\u0275mod:T}),_n=T({\u0275fac:T}),$n=T({__NG_ELEMENT_ID__:T});let sr=0;function xr(t){return ie(()=>{const n=Ue(t),o={...n,decls:t.decls,vars:t.vars,template:t.template,consts:t.consts||null,ngContentSelectors:t.ngContentSelectors,onPush:t.changeDetection===J.OnPush,directiveDefs:null,pipeDefs:null,dependencies:n.standalone&&t.dependencies||null,getStandaloneInjector:null,data:t.data||{},encapsulation:t.encapsulation||ue.Emulated,id:"c"+sr++,styles:t.styles||nt,_:null,schemas:t.schemas||null,tView:null};Oe(o);const l=t.dependencies;return o.directiveDefs=Qe(l,!1),o.pipeDefs=Qe(l,!0),o})}function Di(t,n,o){const l=t.\u0275cmp;l.directiveDefs=Qe(n,!1),l.pipeDefs=Qe(o,!0)}function Er(t){return kn(t)||Ve(t)}function Fi(t){return null!==t}function Li(t){return ie(()=>({type:t.type,bootstrap:t.bootstrap||nt,declarations:t.declarations||nt,imports:t.imports||nt,exports:t.exports||nt,transitiveCompileScopes:null,schemas:t.schemas||null,id:t.id||null}))}function Fr(t,n){return ie(()=>{const o=ce(t,!0);o.declarations=n.declarations||nt,o.imports=n.imports||nt,o.exports=n.exports||nt})}function di(t,n){if(null==t)return Je;const o={};for(const l in t)if(t.hasOwnProperty(l)){let d=t[l],p=d;Array.isArray(d)&&(p=d[1],d=d[0]),o[d]=l,n&&(n[d]=p)}return o}function jo(t){return ie(()=>{const n=Ue(t);return Oe(n),n})}function xi(t){return{type:t.type,name:t.name,factory:null,pure:!1!==t.pure,standalone:!0===t.standalone,onDestroy:t.type.prototype.ngOnDestroy||null}}function kn(t){return t[_t]||null}function Ve(t){return t[At]||null}function _e(t){return t[kt]||null}function Ce(t){const n=kn(t)||Ve(t)||_e(t);return null!==n&&n.standalone}function ce(t,n){const o=t[Vt]||null;if(!o&&!0===n)throw new Error(`Type ${B(t)} does not have '\u0275mod' property.`);return o}function Ue(t){const n={};return{type:t.type,providersResolver:null,factory:null,hostBindings:t.hostBindings||null,hostVars:t.hostVars||0,hostAttrs:t.hostAttrs||null,contentQueries:t.contentQueries||null,declaredInputs:n,exportAs:t.exportAs||null,standalone:!0===t.standalone,selectors:t.selectors||nt,viewQuery:t.viewQuery||null,features:t.features||null,setInput:null,findHostDirectiveDefs:null,hostDirectives:null,inputs:di(t.inputs,n),outputs:di(t.outputs)}}function Oe(t){t.features?.forEach(n=>n(t))}function Qe(t,n){if(!t)return null;const o=n?_e:Er;return()=>("function"==typeof t?t():t).map(l=>o(l)).filter(Fi)}const tt=0,Xe=1,wt=2,Ct=3,$t=4,Gt=5,un=6,Mn=7,an=8,rr=9,Hn=10,on=11,Pr=12,vr=13,Lr=14,_r=15,ar=16,Jn=17,fr=18,Ur=19,ui=20,Ai=21,Ln=22,li=1,uo=2,ki=7,Eo=8,ji=9,Ar=10;function kr(t){return Array.isArray(t)&&"object"==typeof t[li]}function Mr(t){return Array.isArray(t)&&!0===t[li]}function Co(t){return 0!=(4&t.flags)}function Tr(t){return t.componentOffset>-1}function Ki(t){return 1==(1&t.flags)}function ii(t){return!!t.template}function Yi(t){return 0!=(256&t[wt])}function Jr(t,n){return t.hasOwnProperty(_n)?t[_n]:null}class is{constructor(n,o,l){this.previousValue=n,this.currentValue=o,this.firstChange=l}isFirstChange(){return this.firstChange}}function To(){return Qi}function Qi(t){return t.type.prototype.ngOnChanges&&(t.setInput=Hi),Ho}function Ho(){const t=Ji(this),n=t?.current;if(n){const o=t.previous;if(o===Je)t.previous=n;else for(let l in n)o[l]=n[l];t.current=null,this.ngOnChanges(n)}}function Hi(t,n,o,l){const d=this.declaredInputs[o],p=Ji(t)||function os(t,n){return t[vi]=n}(t,{previous:Je,current:null}),I=p.current||(p.current={}),L=p.previous,H=L[d];I[d]=new is(H&&H.currentValue,n,L===Je),t[l]=n}To.ngInherit=!0;const vi="__ngSimpleChanges__";function Ji(t){return t[vi]||null}const tr=function(t,n,o){},fo="svg";function Or(t){for(;Array.isArray(t);)t=t[tt];return t}function ho(t,n){return Or(n[t])}function jr(t,n){return Or(n[t.index])}function Qs(t,n){return t.data[n]}function zi(t,n){return t[n]}function ir(t,n){const o=n[t];return kr(o)?o:o[tt]}function bi(t){return 64==(64&t[wt])}function Z(t,n){return null==n?null:t[n]}function z(t){t[fr]=0}function Te(t,n){t[Gt]+=n;let o=t,l=t[Ct];for(;null!==l&&(1===n&&1===o[Gt]||-1===n&&0===o[Gt]);)l[Gt]+=n,o=l,l=l[Ct]}const st={lFrame:fs(null),bindingsEnabled:!0};function Ro(){return st.bindingsEnabled}function Mt(){return st.lFrame.lView}function jn(){return st.lFrame.tView}function ya(t){return st.lFrame.contextLView=t,t[an]}function Ds(t){return st.lFrame.contextLView=null,t}function Rr(){let t=us();for(;null!==t&&64===t.type;)t=t.parent;return t}function us(){return st.lFrame.currentTNode}function hi(t,n){const o=st.lFrame;o.currentTNode=t,o.isParent=n}function po(){return st.lFrame.isParent}function pi(){st.lFrame.isParent=!1}function Br(){const t=st.lFrame;let n=t.bindingRootIndex;return-1===n&&(n=t.bindingRootIndex=t.tView.bindingStartIndex),n}function Xi(){return st.lFrame.bindingIndex}function eo(){return st.lFrame.bindingIndex++}function qr(t){const n=st.lFrame,o=n.bindingIndex;return n.bindingIndex=n.bindingIndex+t,o}function _a(t,n){const o=st.lFrame;o.bindingIndex=o.bindingRootIndex=t,cs(n)}function cs(t){st.lFrame.currentDirectiveIndex=t}function ds(){return st.lFrame.currentQueryIndex}function Ps(t){st.lFrame.currentQueryIndex=t}function Js(t){const n=t[Xe];return 2===n.type?n.declTNode:1===n.type?t[un]:null}function qs(t,n,o){if(o<.SkipSelf){let d=n,p=t;for(;!(d=d.parent,null!==d||o<.Host||(d=Js(p),null===d||(p=p[_r],10&d.type))););if(null===d)return!1;n=d,t=p}const l=st.lFrame=cr();return l.currentTNode=n,l.lView=t,!0}function go(t){const n=cr(),o=t[Xe];st.lFrame=n,n.currentTNode=o.firstChild,n.lView=t,n.tView=o,n.contextLView=t,n.bindingIndex=o.bindingStartIndex,n.inI18n=!1}function cr(){const t=st.lFrame,n=null===t?null:t.child;return null===n?fs(t):n}function fs(t){const n={currentTNode:null,isParent:!0,lView:null,tView:null,selectedIndex:-1,contextLView:null,elementDepthCount:0,currentNamespace:null,currentDirectiveIndex:-1,bindingRootIndex:-1,bindingIndex:-1,currentQueryIndex:0,parent:t,child:null,inI18n:!1};return null!==t&&(t.child=n),n}function hr(){const t=st.lFrame;return st.lFrame=t.parent,t.currentTNode=null,t.lView=null,t}const to=hr;function ur(){const t=hr();t.isParent=!0,t.tView=null,t.selectedIndex=-1,t.contextLView=null,t.elementDepthCount=0,t.currentDirectiveIndex=-1,t.currentNamespace=null,t.bindingRootIndex=-1,t.bindingIndex=-1,t.currentQueryIndex=0}function Un(){return st.lFrame.selectedIndex}function mo(t){st.lFrame.selectedIndex=t}function pr(){const t=st.lFrame;return Qs(t.tView,t.selectedIndex)}function Xs(){st.lFrame.currentNamespace=fo}function ea(){!function v(){st.lFrame.currentNamespace=null}()}function C(t,n){for(let o=n.directiveStart,l=n.directiveEnd;o<l;o++){const p=t.data[o].type.prototype,{ngAfterContentInit:I,ngAfterContentChecked:L,ngAfterViewInit:H,ngAfterViewChecked:fe,ngOnDestroy:Ae}=p;I&&(t.contentHooks||(t.contentHooks=[])).push(-o,I),L&&((t.contentHooks||(t.contentHooks=[])).push(o,L),(t.contentCheckHooks||(t.contentCheckHooks=[])).push(o,L)),H&&(t.viewHooks||(t.viewHooks=[])).push(-o,H),fe&&((t.viewHooks||(t.viewHooks=[])).push(o,fe),(t.viewCheckHooks||(t.viewCheckHooks=[])).push(o,fe)),null!=Ae&&(t.destroyHooks||(t.destroyHooks=[])).push(o,Ae)}}function j(t,n,o){We(t,n,3,o)}function pe(t,n,o,l){(3&t[wt])===o&&We(t,n,o,l)}function Re(t,n){let o=t[wt];(3&o)===n&&(o&=2047,o+=1,t[wt]=o)}function We(t,n,o,l){const p=l??-1,I=n.length-1;let L=0;for(let H=void 0!==l?65535&t[fr]:0;H<I;H++)if("number"==typeof n[H+1]){if(L=n[H],null!=l&&L>=l)break}else n[H]<0&&(t[fr]+=65536),(L<p||-1==p)&&(at(t,o,n,H),t[fr]=(4294901760&t[fr])+H+2),H++}function at(t,n,o,l){const d=o[l]<0,p=o[l+1],L=t[d?-o[l]:o[l]];if(d){if(t[wt]>>11<t[fr]>>16&&(3&t[wt])===n){t[wt]+=2048,tr(4,L,p);try{p.call(L)}finally{tr(5,L,p)}}}else{tr(4,L,p);try{p.call(L)}finally{tr(5,L,p)}}}const ht=-1;class Tt{constructor(n,o,l){this.factory=n,this.resolving=!1,this.canSeeViewProviders=o,this.injectImpl=l}}function Sr(t,n,o){let l=0;for(;l<o.length;){const d=o[l];if("number"==typeof d){if(0!==d)break;l++;const p=o[l++],I=o[l++],L=o[l++];t.setAttribute(n,I,L,p)}else{const p=d,I=o[++l];wi(p)?t.setProperty(n,p,I):t.setAttribute(n,p,I),l++}}return l}function Cr(t){return 3===t||4===t||6===t}function wi(t){return 64===t.charCodeAt(0)}function Xr(t,n){if(null!==n&&0!==n.length)if(null===t||0===t.length)t=n.slice();else{let o=-1;for(let l=0;l<n.length;l++){const d=n[l];"number"==typeof d?o=d:0===o||ei(t,o,d,null,-1===o||2===o?n[++l]:null)}}return t}function ei(t,n,o,l,d){let p=0,I=t.length;if(-1===n)I=-1;else for(;p<t.length;){const L=t[p++];if("number"==typeof L){if(L===n){I=-1;break}if(L>n){I=p-1;break}}}for(;p<t.length;){const L=t[p];if("number"==typeof L)break;if(L===o){if(null===l)return void(null!==d&&(t[p+1]=d));if(l===t[p+1])return void(t[p+2]=d)}p++,null!==l&&p++,null!==d&&p++}-1!==I&&(t.splice(I,0,n),p=I+1),t.splice(p++,0,o),null!==l&&t.splice(p++,0,l),null!==d&&t.splice(p++,0,d)}function Mi(t){return t!==ht}function Gr(t){return 32767&t}function hs(t,n){let o=function Ei(t){return t>>16}(t),l=n;for(;o>0;)l=l[_r],o--;return l}let yo=!0;function gi(t){const n=yo;return yo=t,n}const Os=255,sn=5;let yn=0;const fn={};function Ir(t,n){const o=$r(t,n);if(-1!==o)return o;const l=n[Xe];l.firstCreatePass&&(t.injectorIndex=n.length,Si(l.data,t),Si(n,null),Si(l.blueprint,null));const d=Gi(t,n),p=t.injectorIndex;if(Mi(d)){const I=Gr(d),L=hs(d,n),H=L[Xe].data;for(let fe=0;fe<8;fe++)n[p+fe]=L[I+fe]|H[I+fe]}return n[p+8]=d,p}function Si(t,n){t.push(0,0,0,0,0,0,0,0,n)}function $r(t,n){return-1===t.injectorIndex||t.parent&&t.parent.injectorIndex===t.injectorIndex||null===n[t.injectorIndex+8]?-1:t.injectorIndex}function Gi(t,n){if(t.parent&&-1!==t.parent.injectorIndex)return t.parent.injectorIndex;let o=0,l=null,d=n;for(;null!==d;){if(l=Ci(d),null===l)return ht;if(o++,d=d[_r],-1!==l.injectorIndex)return l.injectorIndex|o<<16}return ht}function gr(t,n,o){!function Kn(t,n,o){let l;"string"==typeof o?l=o.charCodeAt(0)||0:o.hasOwnProperty($n)&&(l=o[$n]),null==l&&(l=o[$n]=yn++);const d=l&Os;n.data[t+(d>>sn)]|=1<<d}(t,n,o)}function ba(t,n,o){if(o<.Optional||void 0!==t)return t;ge()}function Wr(t,n,o,l){if(o<.Optional&&void 0===l&&(l=null),!(o&(lt.Self|lt.Host))){const d=t[rr],p=It(void 0);try{return d?d.get(n,l,o<.Optional):pn(n,l,o<.Optional)}finally{It(p)}}return ba(l,0,o)}function vo(t,n,o,l=lt.Default,d){if(null!==t){if(1024&n[wt]){const I=function Au(t,n,o,l,d){let p=t,I=n;for(;null!==p&&null!==I&&1024&I[wt]&&!(256&I[wt]);){const L=mi(p,I,o,l|lt.Self,fn);if(L!==fn)return L;let H=p.parent;if(!H){const fe=I[Ai];if(fe){const Ae=fe.get(o,fn,l);if(Ae!==fn)return Ae}H=Ci(I),I=I[_r]}p=H}return d}(t,n,o,l,fn);if(I!==fn)return I}const p=mi(t,n,o,l,fn);if(p!==fn)return p}return Wr(n,o,l,d)}function mi(t,n,o,l,d){const p=function Du(t){if("string"==typeof t)return t.charCodeAt(0)||0;const n=t.hasOwnProperty($n)?t[$n]:void 0;return"number"==typeof n?n>=0?n&Os:qc:n}(o);if("function"==typeof p){if(!qs(n,t,l))return l<.Host?ba(d,0,l):Wr(n,o,l,d);try{const I=p(l);if(null!=I||l<.Optional)return I;ge()}finally{to()}}else if("number"==typeof p){let I=null,L=$r(t,n),H=ht,fe=l<.Host?n[ar][un]:null;for((-1===L||l<.SkipSelf)&&(H=-1===L?Gi(t,n):n[L+8],H!==ht&&Ja(l,!1)?(I=n[Xe],L=Gr(H),n=hs(H,n)):L=-1);-1!==L;){const Ae=n[Xe];if(Qa(p,L,Ae.data)){const Ke=Vr(L,n,o,I,l,fe);if(Ke!==fn)return Ke}H=n[L+8],H!==ht&&Ja(l,n[Xe].data[L+8]===fe)&&Qa(p,L,n)?(I=Ae,L=Gr(H),n=hs(H,n)):L=-1}}return d}function Vr(t,n,o,l,d,p){const I=n[Xe],L=I.data[t+8],Ae=_o(L,I,o,null==l?Tr(L)&&yo:l!=I&&0!=(3&L.type),d<.Host&&p===L);return null!==Ae?bo(n,I,Ae,L):fn}function _o(t,n,o,l,d){const p=t.providerIndexes,I=n.data,L=1048575&p,H=t.directiveStart,Ae=p>>20,it=d?L+Ae:t.directiveEnd;for(let gt=l?L:L+Ae;gt<it;gt++){const Dt=I[gt];if(gt<H&&o===Dt||gt>=H&&Dt.type===o)return gt}if(d){const gt=I[H];if(gt&&ii(gt)&>.type===o)return H}return null}function bo(t,n,o,l){let d=t[o];const p=n.data;if(function Ot(t){return t instanceof Tt}(d)){const I=d;I.resolving&&function U(t,n){const o=n?`. Dependency path: ${n.join(" > ")} > ${t}`:"";throw new Y(-200,`Circular dependency in DI detected for ${t}${o}`)}(function R(t){return"function"==typeof t?t.name||t.toString():"object"==typeof t&&null!=t&&"function"==typeof t.type?t.type.name||t.type.toString():le(t)}(p[o]));const L=gi(I.canSeeViewProviders);I.resolving=!0;const H=I.injectImpl?It(I.injectImpl):null;qs(t,l,lt.Default);try{d=t[o]=I.factory(void 0,p,t,l),n.firstCreatePass&&o>=l.directiveStart&&function f(t,n,o){const{ngOnChanges:l,ngOnInit:d,ngDoCheck:p}=n.type.prototype;if(l){const I=Qi(n);(o.preOrderHooks||(o.preOrderHooks=[])).push(t,I),(o.preOrderCheckHooks||(o.preOrderCheckHooks=[])).push(t,I)}d&&(o.preOrderHooks||(o.preOrderHooks=[])).push(0-t,d),p&&((o.preOrderHooks||(o.preOrderHooks=[])).push(t,p),(o.preOrderCheckHooks||(o.preOrderCheckHooks=[])).push(t,p))}(o,p[o],n)}finally{null!==H&&It(H),gi(L),I.resolving=!1,to()}}return d}function Qa(t,n,o){return!!(o[n+(t>>sn)]&1<<t)}function Ja(t,n){return!(t<.Self||t<.Host&&n)}class ta{constructor(n,o){this._tNode=n,this._lView=o}get(n,o,l){return vo(this._tNode,this._lView,n,vn(l),o)}}function qc(){return new ta(Rr(),Mt())}function xu(t){return ie(()=>{const n=t.prototype.constructor,o=n[_n]||na(n),l=Object.prototype;let d=Object.getPrototypeOf(t.prototype).constructor;for(;d&&d!==l;){const p=d[_n]||na(d);if(p&&p!==o)return p;d=Object.getPrototypeOf(d)}return p=>new p})}function na(t){return he(t)?()=>{const n=na(De(t));return n&&n()}:Jr(t)}function Ci(t){const n=t[Xe],o=n.type;return 2===o?n.declTNode:1===o?t[un]:null}function qa(t){return function Rs(t,n){if("class"===n)return t.classes;if("style"===n)return t.styles;const o=t.attrs;if(o){const l=o.length;let d=0;for(;d<l;){const p=o[d];if(Cr(p))break;if(0===p)d+=2;else if("number"==typeof p)for(d++;d<l&&"string"==typeof o[d];)d++;else{if(p===n)return o[d+1];d+=2}}}return null}(Rr(),t)}const ra="__parameters__";function Ns(t,n,o){return ie(()=>{const l=function ia(t){return function(...o){if(t){const l=t(...o);for(const d in l)this[d]=l[d]}}}(n);function d(...p){if(this instanceof d)return l.apply(this,p),this;const I=new d(...p);return L.annotation=I,L;function L(H,fe,Ae){const Ke=H.hasOwnProperty(ra)?H[ra]:Object.defineProperty(H,ra,{value:[]})[ra];for(;Ke.length<=Ae;)Ke.push(null);return(Ke[Ae]=Ke[Ae]||[]).push(I),H}}return o&&(d.prototype=Object.create(o.prototype)),d.prototype.ngMetadataName=t,d.annotationCls=d,d})}class mr{constructor(n,o){this._desc=n,this.ngMetadataName="InjectionToken",this.\u0275prov=void 0,"number"==typeof o?this.__NG_ELEMENT_ID__=o:void 0!==o&&(this.\u0275prov=Ut({token:this,providedIn:o.providedIn||"root",factory:o.factory}))}get multi(){return this}toString(){return`InjectionToken ${this._desc}`}}function yr(t,n){t.forEach(o=>Array.isArray(o)?yr(o,n):n(o))}function Ea(t,n,o){n>=t.length?t.push(o):t.splice(n,0,o)}function Xa(t,n){return n>=t.length-1?t.pop():t.splice(n,1)[0]}function Ko(t,n){const o=[];for(let l=0;l<t;l++)o.push(n);return o}function Oi(t,n,o){let l=P(t,n);return l>=0?t[1|l]=o:(l=~l,function xl(t,n,o,l){let d=t.length;if(d==n)t.push(o,l);else if(1===d)t.push(l,t[0]),t[0]=o;else{for(d--,t.push(t[d-1],t[d]);d>n;)t[d]=t[d-2],d--;t[n]=o,t[n+1]=l}}(t,l,n,o)),l}function D(t,n){const o=P(t,n);if(o>=0)return t[1|o]}function P(t,n){return function k(t,n,o){let l=0,d=t.length>>o;for(;d!==l;){const p=l+(d-l>>1),I=t[p<<o];if(n===I)return p<<o;I>n?d=p:l=p+1}return~(d<<o)}(t,n,1)}const ro=rn(Ns("Optional"),8),wo=rn(Ns("SkipSelf"),4);var ms=(()=>((ms=ms||{})[ms.Important=1]="Important",ms[ms.DashCase=2]="DashCase",ms))();const Nl=new Map;let $h=0;const ld="__ngContext__";function Ni(t,n){kr(n)?(t[ld]=n[ui],function Ru(t){Nl.set(t[ui],t)}(n)):t[ld]=n}let fd;function hd(t,n){return fd(t,n)}function Ia(t){const n=t[Ct];return Mr(n)?n[Ct]:n}function pd(t){return qh(t[vr])}function Da(t){return qh(t[$t])}function qh(t){for(;null!==t&&!Mr(t);)t=t[$t];return t}function tu(t,n,o,l,d){if(null!=l){let p,I=!1;Mr(l)?p=l:kr(l)&&(I=!0,l=l[tt]);const L=Or(l);0===t&&null!==o?null==d?Ed(n,o,L):sa(n,o,L,d||null,!0):1===t&&null!==o?sa(n,o,L,d||null,!0):2===t?function Id(t,n,o){const l=Lu(t,n);l&&function tp(t,n,o,l){t.removeChild(n,o,l)}(t,l,n,o)}(n,L,I):3===t&&n.destroyNode(L),null!=p&&function Tm(t,n,o,l,d){const p=o[ki];p!==Or(o)&&tu(n,t,l,p,d);for(let L=Ar;L<o.length;L++){const H=o[L];aa(H[Xe],H,t,n,l,p)}}(n,t,p,o,d)}}function md(t,n,o){return t.createElement(n,o)}function vd(t,n){const o=t[ji],l=o.indexOf(n),d=n[Ct];512&n[wt]&&(n[wt]&=-513,Te(d,-1)),o.splice(l,1)}function Ll(t,n){if(t.length<=Ar)return;const o=Ar+n,l=t[o];if(l){const d=l[Jn];null!==d&&d!==t&&vd(d,l),n>0&&(t[o-1][$t]=l[$t]);const p=Xa(t,Ar+n);!function Dm(t,n){aa(t,n,n[on],2,null,null),n[tt]=null,n[un]=null}(l[Xe],l);const I=p[Ur];null!==I&&I.detachView(p[Xe]),l[Ct]=null,l[$t]=null,l[wt]&=-65}return l}function _d(t,n){if(!(128&n[wt])){const o=n[on];o.destroyNode&&aa(t,n,o,3,null,null),function Am(t){let n=t[vr];if(!n)return oa(t[Xe],t);for(;n;){let o=null;if(kr(n))o=n[vr];else{const l=n[Ar];l&&(o=l)}if(!o){for(;n&&!n[$t]&&n!==t;)kr(n)&&oa(n[Xe],n),n=n[Ct];null===n&&(n=t),kr(n)&&oa(n[Xe],n),o=n&&n[$t]}n=o}}(n)}}function oa(t,n){if(!(128&n[wt])){n[wt]&=-65,n[wt]|=128,function ep(t,n){let o;if(null!=t&&null!=(o=t.destroyHooks))for(let l=0;l<o.length;l+=2){const d=n[o[l]];if(!(d instanceof Tt)){const p=o[l+1];if(Array.isArray(p))for(let I=0;I<p.length;I+=2){const L=d[p[I]],H=p[I+1];tr(4,L,H);try{H.call(L)}finally{tr(5,L,H)}}else{tr(4,d,p);try{p.call(d)}finally{tr(5,d,p)}}}}}(t,n),function Ul(t,n){const o=t.cleanup,l=n[Mn];let d=-1;if(null!==o)for(let p=0;p<o.length-1;p+=2)if("string"==typeof o[p]){const I=o[p+3];I>=0?l[d=I]():l[d=-I].unsubscribe(),p+=2}else{const I=l[d=o[p+1]];o[p].call(I)}if(null!==l){for(let p=d+1;p<l.length;p++)(0,l[p])();n[Mn]=null}}(t,n),1===n[Xe].type&&n[on].destroy();const o=n[Jn];if(null!==o&&Mr(n[Ct])){o!==n[Ct]&&vd(o,n);const l=n[Ur];null!==l&&l.detachView(t)}!function vm(t){Nl.delete(t[ui])}(n)}}function bd(t,n,o){return function wd(t,n,o){let l=n;for(;null!==l&&40&l.type;)l=(n=l).parent;if(null===l)return o[tt];{const{componentOffset:d}=l;if(d>-1){const{encapsulation:p}=t.data[l.directiveStart+d];if(p===ue.None||p===ue.Emulated)return null}return jr(l,o)}}(t,n.parent,o)}function sa(t,n,o,l,d){t.insertBefore(n,o,l,d)}function Ed(t,n,o){t.appendChild(n,o)}function Sd(t,n,o,l,d){null!==l?sa(t,n,o,l,d):Ed(t,n,o)}function Lu(t,n){return t.parentNode(n)}function Uu(t,n,o){return kl(t,n,o)}let Cd,Hl,Bu,zl,kl=function ip(t,n,o){return 40&t.type?jr(t,o):null};function jl(t,n,o,l){const d=bd(t,l,n),p=n[on],L=Uu(l.parent||n[un],l,n);if(null!=d)if(Array.isArray(o))for(let H=0;H<o.length;H++)Sd(p,d,o[H],L,!1);else Sd(p,d,o,L,!1);void 0!==Cd&&Cd(p,l,n,o,d)}function Bl(t,n){if(null!==n){const o=n.type;if(3&o)return jr(n,t);if(4&o)return ku(-1,t[n.index]);if(8&o){const l=n.child;if(null!==l)return Bl(t,l);{const d=t[n.index];return Mr(d)?ku(-1,d):Or(d)}}if(32&o)return hd(n,t)()||Or(t[n.index]);{const l=Vl(t,n);return null!==l?Array.isArray(l)?l[0]:Bl(Ia(t[ar]),l):Bl(t,n.next)}}return null}function Vl(t,n){return null!==n?t[ar][un].projection[n.projection]:null}function ku(t,n){const o=Ar+t+1;if(o<n.length){const l=n[o],d=l[Xe].firstChild;if(null!==d)return Bl(l,d)}return n[ki]}function Dd(t,n,o,l,d,p,I){for(;null!=o;){const L=l[o.index],H=o.type;if(I&&0===n&&(L&&Ni(Or(L),l),o.flags|=2),32!=(32&o.flags))if(8&H)Dd(t,n,o.child,l,d,p,!1),tu(n,t,d,L,p);else if(32&H){const fe=hd(o,l);let Ae;for(;Ae=fe();)tu(n,t,d,Ae,p);tu(n,t,d,L,p)}else 16&H?ap(t,n,l,o,d,p):tu(n,t,d,L,p);o=I?o.projectionNext:o.next}}function aa(t,n,o,l,d,p){Dd(o,l,t.firstChild,n,d,p,!1)}function ap(t,n,o,l,d,p){const I=o[ar],H=I[un].projection[l.projection];if(Array.isArray(H))for(let fe=0;fe<H.length;fe++)tu(n,t,d,H[fe],p);else Dd(t,n,H,I[Ct],d,p,!0)}function up(t,n,o){""===o?t.removeAttribute(n,"class"):t.setAttribute(n,"class",o)}function lp(t,n,o){const{mergedAttrs:l,classes:d,styles:p}=o;null!==l&&Sr(t,n,l),null!==d&&up(t,n,d),null!==p&&function Pm(t,n,o){t.setAttribute(n,"style",o)}(t,n,p)}function ru(t){return function xd(){if(void 0===Hl&&(Hl=null,ln.trustedTypes))try{Hl=ln.trustedTypes.createPolicy("angular",{createHTML:t=>t,createScript:t=>t,createScriptURL:t=>t})}catch{}return Hl}()?.createHTML(t)||t}function Nm(t){Bu=t}function Td(){if(void 0===zl&&(zl=null,ln.trustedTypes))try{zl=ln.trustedTypes.createPolicy("angular#unsafe-bypass",{createHTML:t=>t,createScript:t=>t,createScriptURL:t=>t})}catch{}return zl}function dp(t){return Td()?.createHTML(t)||t}function hp(t){return Td()?.createScriptURL(t)||t}class xa{constructor(n){this.changingThisBreaksApplicationSecurity=n}toString(){return`SafeValue must use [property]=binding: ${this.changingThisBreaksApplicationSecurity} (see ${be})`}}class Gl extends xa{getTypeName(){return"HTML"}}class pp extends xa{getTypeName(){return"Style"}}class Fm extends xa{getTypeName(){return"Script"}}class Lm extends xa{getTypeName(){return"URL"}}class Vu extends xa{getTypeName(){return"ResourceURL"}}function ks(t){return t instanceof xa?t.changingThisBreaksApplicationSecurity:t}function iu(t,n){const o=function Um(t){return t instanceof xa&&t.getTypeName()||null}(t);if(null!=o&&o!==n){if("ResourceURL"===o&&"URL"===n)return!0;throw new Error(`Required a safe ${n}, got a ${o} (see ${be})`)}return o===n}function km(t){return new Gl(t)}function jm(t){return new pp(t)}function Bm(t){return new Fm(t)}function Vm(t){return new Lm(t)}function Hm(t){return new Vu(t)}class gp{constructor(n){this.inertDocumentHelper=n}getInertBodyElement(n){n="<body><remove></remove>"+n;try{const o=(new window.DOMParser).parseFromString(ru(n),"text/html").body;return null===o?this.inertDocumentHelper.getInertBodyElement(n):(o.removeChild(o.firstChild),o)}catch{return null}}}class mp{constructor(n){this.defaultDoc=n,this.inertDocument=this.defaultDoc.implementation.createHTMLDocument("sanitization-inert")}getInertBodyElement(n){const o=this.inertDocument.createElement("template");return o.innerHTML=ru(n),o}}const vp=/^(?:(?:https?|mailto|data|ftp|tel|file|sms):|[^&:/?#]*(?:[/?#]|$))/gi;function Yo(t){return(t=String(t)).match(vp)?t:"unsafe:"+t}function $i(t){const n={};for(const o of t.split(","))n[o]=!0;return n}function Yr(...t){const n={};for(const o of t)for(const l in o)o.hasOwnProperty(l)&&(n[l]=!0);return n}const Aa=$i("area,br,col,hr,img,wbr"),Hu=$i("colgroup,dd,dt,li,p,tbody,td,tfoot,th,thead,tr"),ys=$i("rp,rt"),$l=Yr(Aa,Yr(Hu,$i("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")),Yr(ys,$i("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")),Yr(ys,Hu)),$u=$i("background,cite,href,itemtype,longdesc,poster,src,xlink:href"),Pd=Yr($u,$i("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"),$i("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")),_p=$i("script,style,template");class bp{constructor(){this.sanitizedSomething=!1,this.buf=[]}sanitizeChildren(n){let o=n.firstChild,l=!0;for(;o;)if(o.nodeType===Node.ELEMENT_NODE?l=this.startElement(o):o.nodeType===Node.TEXT_NODE?this.chars(o.nodeValue):this.sanitizedSomething=!0,l&&o.firstChild)o=o.firstChild;else for(;o;){o.nodeType===Node.ELEMENT_NODE&&this.endElement(o);let d=this.checkClobberedElement(o,o.nextSibling);if(d){o=d;break}o=this.checkClobberedElement(o,o.parentNode)}return this.buf.join("")}startElement(n){const o=n.nodeName.toLowerCase();if(!$l.hasOwnProperty(o))return this.sanitizedSomething=!0,!_p.hasOwnProperty(o);this.buf.push("<"),this.buf.push(o);const l=n.attributes;for(let d=0;d<l.length;d++){const p=l.item(d),I=p.name,L=I.toLowerCase();if(!Pd.hasOwnProperty(L)){this.sanitizedSomething=!0;continue}let H=p.value;$u[L]&&(H=Yo(H)),this.buf.push(" ",I,'="',Ep(H),'"')}return this.buf.push(">"),!0}endElement(n){const o=n.nodeName.toLowerCase();$l.hasOwnProperty(o)&&!Aa.hasOwnProperty(o)&&(this.buf.push("</"),this.buf.push(o),this.buf.push(">"))}chars(n){this.buf.push(Ep(n))}checkClobberedElement(n,o){if(o&&(n.compareDocumentPosition(o)&Node.DOCUMENT_POSITION_CONTAINED_BY)===Node.DOCUMENT_POSITION_CONTAINED_BY)throw new Error(`Failed to sanitize html because the element is clobbered: ${n.outerHTML}`);return o}}const wp=/[\uD800-\uDBFF][\uDC00-\uDFFF]/g,Wl=/([^\#-~ |!])/g;function Ep(t){return t.replace(/&/g,"&").replace(wp,function(n){return"&#"+(1024*(n.charCodeAt(0)-55296)+(n.charCodeAt(1)-56320)+65536)+";"}).replace(Wl,function(n){return"&#"+n.charCodeAt(0)+";"}).replace(/</g,"<").replace(/>/g,">")}let ua;function Sp(t,n){let o=null;try{ua=ua||function js(t){const n=new mp(t);return function yp(){try{return!!(new window.DOMParser).parseFromString(ru(""),"text/html")}catch{return!1}}()?new gp(n):n}(t);let l=n?String(n):"";o=ua.getInertBodyElement(l);let d=5,p=l;do{if(0===d)throw new Error("Failed to sanitize html because the input is unstable");d--,l=p,p=o.innerHTML,o=ua.getInertBodyElement(l)}while(l!==p);return ru((new bp).sanitizeChildren(Md(o)||o))}finally{if(o){const l=Md(o)||o;for(;l.firstChild;)l.removeChild(l.firstChild)}}}function Md(t){return"content"in t&&function $m(t){return t.nodeType===Node.ELEMENT_NODE&&"TEMPLATE"===t.nodeName}(t)?t.content:null}var ti=(()=>((ti=ti||{})[ti.NONE=0]="NONE",ti[ti.HTML=1]="HTML",ti[ti.STYLE=2]="STYLE",ti[ti.SCRIPT=3]="SCRIPT",ti[ti.URL=4]="URL",ti[ti.RESOURCE_URL=5]="RESOURCE_URL",ti))();function Wu(t){const n=Yu();return n?dp(n.sanitize(ti.HTML,t)||""):iu(t,"HTML")?dp(ks(t)):Sp(function cp(){return void 0!==Bu?Bu:typeof document<"u"?document:void 0}(),le(t))}function Od(t){const n=Yu();return n?n.sanitize(ti.URL,t)||"":iu(t,"URL")?ks(t):Yo(le(t))}function Rd(t){const n=Yu();if(n)return hp(n.sanitize(ti.RESOURCE_URL,t)||"");if(iu(t,"ResourceURL"))return hp(ks(t));throw new Y(904,!1)}function su(t,n,o){return function Wm(t,n){return"src"===n&&("embed"===t||"frame"===t||"iframe"===t||"media"===t||"script"===t)||"href"===n&&("base"===t||"link"===t)?Rd:Od}(n,o)(t)}function Yu(){const t=Mt();return t&&t[Pr]}const Fd=new mr("ENVIRONMENT_INITIALIZER"),Dp=new mr("INJECTOR",-1),xp=new mr("INJECTOR_DEF_TYPES");class Ap{get(n,o=On){if(o===On){const l=new Error(`NullInjectorError: No provider for ${B(n)}!`);throw l.name="NullInjectorError",l}return o}}function Km(t){return{\u0275providers:t}}function Tp(...t){return{\u0275providers:Ld(0,t),\u0275fromNgModule:!0}}function Ld(t,...n){const o=[],l=new Set;let d;return yr(n,p=>{const I=p;Kl(I,o,[],l)&&(d||(d=[]),d.push(I))}),void 0!==d&&Ud(d,o),o}function Ud(t,n){for(let o=0;o<t.length;o++){const{providers:d}=t[o];kd(d,p=>{n.push(p)})}}function Kl(t,n,o,l){if(!(t=De(t)))return!1;let d=null,p=ne(t);const I=!p&&kn(t);if(p||I){if(I&&!I.standalone)return!1;d=t}else{const H=t.ngModule;if(p=ne(H),!p)return!1;d=H}const L=l.has(d);if(I){if(L)return!1;if(l.add(d),I.dependencies){const H="function"==typeof I.dependencies?I.dependencies():I.dependencies;for(const fe of H)Kl(fe,n,o,l)}}else{if(!p)return!1;{if(null!=p.imports&&!L){let fe;l.add(d);try{yr(p.imports,Ae=>{Kl(Ae,n,o,l)&&(fe||(fe=[]),fe.push(Ae))})}finally{}void 0!==fe&&Ud(fe,n)}if(!L){const fe=Jr(d)||(()=>new d);n.push({provide:d,useFactory:fe,deps:nt},{provide:xp,useValue:d,multi:!0},{provide:Fd,useValue:()=>Et(d),multi:!0})}const H=p.providers;null==H||L||kd(H,Ae=>{n.push(Ae)})}}return d!==t&&void 0!==t.providers}function kd(t,n){for(let o of t)xe(o)&&(o=o.\u0275providers),Array.isArray(o)?kd(o,n):n(o)}const Pp=T({provide:String,useValue:T});function Yl(t){return null!==t&&"object"==typeof t&&Pp in t}function la(t){return"function"==typeof t}const Zu=new mr("Set Injector scope."),Qu={},Op={};let Zl;function Ju(){return void 0===Zl&&(Zl=new Ap),Zl}class ca{}class Vd extends ca{get destroyed(){return this._destroyed}constructor(n,o,l,d){super(),this.parent=o,this.source=l,this.scopes=d,this.records=new Map,this._ngOnDestroyHooks=new Set,this._onDestroyHooks=[],this._destroyed=!1,Pa(n,I=>this.processProvider(I)),this.records.set(Dp,Ta(void 0,this)),d.has("environment")&&this.records.set(ca,Ta(void 0,this));const p=this.records.get(Zu);null!=p&&"string"==typeof p.value&&this.scopes.add(p.value),this.injectorDefTypes=new Set(this.get(xp.multi,nt,lt.Self))}destroy(){this.assertNotDestroyed(),this._destroyed=!0;try{for(const n of this._ngOnDestroyHooks)n.ngOnDestroy();for(const n of this._onDestroyHooks)n()}finally{this.records.clear(),this._ngOnDestroyHooks.clear(),this.injectorDefTypes.clear(),this._onDestroyHooks.length=0}}onDestroy(n){this._onDestroyHooks.push(n)}runInContext(n){this.assertNotDestroyed();const o=qe(this),l=It(void 0);try{return n()}finally{qe(o),It(l)}}get(n,o=On,l=lt.Default){this.assertNotDestroyed(),l=vn(l);const d=qe(this),p=It(void 0);try{if(!(l<.SkipSelf)){let L=this.records.get(n);if(void 0===L){const H=function Up(t){return"function"==typeof t||"object"==typeof t&&t instanceof mr}(n)&&xn(n);L=H&&this.injectableDefInScope(H)?Ta(Ql(n),Qu):null,this.records.set(n,L)}if(null!=L)return this.hydrate(n,L)}return(l<.Self?Ju():this.parent).get(n,o=l<.Optional&&o===On?null:o)}catch(I){if("NullInjectorError"===I.name){if((I[Cn]=I[Cn]||[]).unshift(B(n)),d)throw I;return function Yn(t,n,o,l){const d=t[Cn];throw n[Vn]&&d.unshift(n[Vn]),t.message=function Pe(t,n,o,l=null){t=t&&"\n"===t.charAt(0)&&t.charAt(1)==or?t.slice(2):t;let d=B(n);if(Array.isArray(n))d=n.map(B).join(" -> ");else if("object"==typeof n){let p=[];for(let I in n)if(n.hasOwnProperty(I)){let L=n[I];p.push(I+":"+("string"==typeof L?JSON.stringify(L):B(L)))}d=`{${p.join(", ")}}`}return`${o}${l?"("+l+")":""}[${d}]: ${t.replace(er,"\n ")}`}("\n"+t.message,d,o,l),t[nr]=d,t[Cn]=null,t}(I,n,"R3InjectorError",this.source)}throw I}finally{It(p),qe(d)}}resolveInjectorInitializers(){const n=qe(this),o=It(void 0);try{const l=this.get(Fd.multi,nt,lt.Self);for(const d of l)d()}finally{qe(n),It(o)}}toString(){const n=[],o=this.records;for(const l of o.keys())n.push(B(l));return`R3Injector[${n.join(", ")}]`}assertNotDestroyed(){if(this._destroyed)throw new Y(205,!1)}processProvider(n){let o=la(n=De(n))?n:De(n&&n.provide);const l=function Np(t){return Yl(t)?Ta(void 0,t.useValue):Ta(Hd(t),Qu)}(n);if(la(n)||!0!==n.multi)this.records.get(o);else{let d=this.records.get(o);d||(d=Ta(void 0,Qu,!0),d.factory=()=>Pn(d.multi),this.records.set(o,d)),o=n,d.multi.push(n)}this.records.set(o,l)}hydrate(n,o){return o.value===Qu&&(o.value=Op,o.value=o.factory()),"object"==typeof o.value&&o.value&&function Lp(t){return null!==t&&"object"==typeof t&&"function"==typeof t.ngOnDestroy}(o.value)&&this._ngOnDestroyHooks.add(o.value),o.value}injectableDefInScope(n){if(!n.providedIn)return!1;const o=De(n.providedIn);return"string"==typeof o?"any"===o||this.scopes.has(o):this.injectorDefTypes.has(o)}}function Ql(t){const n=xn(t),o=null!==n?n.factory:Jr(t);if(null!==o)return o;if(t instanceof mr)throw new Y(204,!1);if(t instanceof Function)return function Rp(t){const n=t.length;if(n>0)throw Ko(n,"?"),new Y(204,!1);const o=function zt(t){const n=t&&(t[re]||t[ot]);return n?(function je(t){if(t.hasOwnProperty("name"))return t.name;(""+t).match(/^function\s*([^\s(]+)/)}(t),n):null}(t);return null!==o?()=>o.factory(t):()=>new t}(t);throw new Y(204,!1)}function Hd(t,n,o){let l;if(la(t)){const d=De(t);return Jr(d)||Ql(d)}if(Yl(t))l=()=>De(t.useValue);else if(function Bd(t){return!(!t||!t.useFactory)}(t))l=()=>t.useFactory(...Pn(t.deps||[]));else if(function jd(t){return!(!t||!t.useExisting)}(t))l=()=>Et(De(t.useExisting));else{const d=De(t&&(t.useClass||t.provide));if(!function Fp(t){return!!t.deps}(t))return Jr(d)||Ql(d);l=()=>new d(...Pn(t.deps))}return l}function Ta(t,n,o=!1){return{factory:t,value:n,multi:o?[]:void 0}}function Pa(t,n){for(const o of t)Array.isArray(o)?Pa(o,n):o&&xe(o)?Pa(o.\u0275providers,n):n(o)}class zd{}class Gd{}class kp{resolveComponentFactory(n){throw function $d(t){const n=Error(`No component factory found for ${B(t)}. Did you add it to @NgModule.entryComponents?`);return n.ngComponent=t,n}(n)}}let au=(()=>{class t{}return t.NULL=new kp,t})();function jp(){return Ma(Rr(),Mt())}function Ma(t,n){return new qu(jr(t,n))}let qu=(()=>{class t{constructor(o){this.nativeElement=o}}return t.__NG_ELEMENT_ID__=jp,t})();function Bp(t){return t instanceof qu?t.nativeElement:t}class Xu{}let Zm=(()=>{class t{}return t.__NG_ELEMENT_ID__=()=>function Wd(){const t=Mt(),o=ir(Rr().index,t);return(kr(o)?o:t)[on]}(),t})(),Qm=(()=>{class t{}return t.\u0275prov=Ut({token:t,providedIn:"root",factory:()=>null}),t})();class Vp{constructor(n){this.full=n,this.major=n.split(".")[0],this.minor=n.split(".")[1],this.patch=n.split(".").slice(2).join(".")}}const Jm=new Vp("15.2.3"),Kd={},ql="ngOriginalError";function Yd(t){return t[ql]}class el{constructor(){this._console=console}handleError(n){const o=this._findOriginalError(n);this._console.error("ERROR",n),o&&this._console.error("ORIGINAL ERROR",o)}_findOriginalError(n){let o=n&&Yd(n);for(;o&&Yd(o);)o=Yd(o);return o||null}}function uu(t){return t.ownerDocument.defaultView}function Gp(t){return t.ownerDocument}function Bs(t){return t instanceof Function?t():t}function Jd(t,n,o){let l=t.length;for(;;){const d=t.indexOf(n,o);if(-1===d)return d;if(0===d||t.charCodeAt(d-1)<=32){const p=n.length;if(d+p===l||t.charCodeAt(d+p)<=32)return d}o=d+1}}const Xl="ng-template";function qd(t,n,o){let l=0;for(;l<t.length;){let d=t[l++];if(o&&"class"===d){if(d=t[l],-1!==Jd(d.toLowerCase(),n,0))return!0}else if(1===d){for(;l<t.length&&"string"==typeof(d=t[l++]);)if(d.toLowerCase()===n)return!0;return!1}}return!1}function Xd(t){return 4===t.type&&t.value!==Xl}function $p(t,n,o){return n===(4!==t.type||o?t.value:Xl)}function Wp(t,n,o){let l=4;const d=t.attrs||[],p=function Zp(t){for(let n=0;n<t.length;n++)if(Cr(t[n]))return n;return t.length}(d);let I=!1;for(let L=0;L<n.length;L++){const H=n[L];if("number"!=typeof H){if(!I)if(4&l){if(l=2|1&l,""!==H&&!$p(t,H,o)||""===H&&1===n.length){if(Lo(l))return!1;I=!0}}else{const fe=8&l?H:n[++L];if(8&l&&null!==t.attrs){if(!qd(t.attrs,fe,o)){if(Lo(l))return!1;I=!0}continue}const Ke=Kp(8&l?"class":H,d,Xd(t),o);if(-1===Ke){if(Lo(l))return!1;I=!0;continue}if(""!==fe){let it;it=Ke>p?"":d[Ke+1].toLowerCase();const gt=8&l?it:null;if(gt&&-1!==Jd(gt,fe,0)||2&l&&fe!==it){if(Lo(l))return!1;I=!0}}}}else{if(!I&&!Lo(l)&&!Lo(H))return!1;if(I&&Lo(H))continue;I=!1,l=H|1&l}}return Lo(l)||I}function Lo(t){return 0==(1&t)}function Kp(t,n,o,l){if(null===n)return-1;let d=0;if(l||!o){let p=!1;for(;d<n.length;){const I=n[d];if(I===t)return d;if(3===I||6===I)p=!0;else{if(1===I||2===I){let L=n[++d];for(;"string"==typeof L;)L=n[++d];continue}if(4===I)break;if(0===I){d+=4;continue}}d+=p?1:2}return-1}return function Qp(t,n){let o=t.indexOf(4);if(o>-1)for(o++;o<t.length;){const l=t[o];if("number"==typeof l)return-1;if(l===n)return o;o++}return-1}(n,t)}function ef(t,n,o=!1){for(let l=0;l<n.length;l++)if(Wp(t,n[l],o))return!0;return!1}function Jp(t,n){e:for(let o=0;o<n.length;o++){const l=n[o];if(t.length===l.length){for(let d=0;d<t.length;d++)if(t[d]!==l[d])continue e;return!0}}return!1}function tl(t,n){return t?":not("+n.trim()+")":n}function iy(t){let n=t[0],o=1,l=2,d="",p=!1;for(;o<t.length;){let I=t[o];if("string"==typeof I)if(2&l){const L=t[++o];d+="["+I+(L.length>0?'="'+L+'"':"")+"]"}else 8&l?d+="."+I:4&l&&(d+=" "+I);else""!==d&&!Lo(I)&&(n+=tl(p,d),d=""),l=I,p=p||!Lo(l);o++}return""!==d&&(n+=tl(p,d)),n}const Rn={};function qp(t){Xp(jn(),Mt(),Un()+t,!1)}function Xp(t,n,o,l){if(!l)if(3==(3&n[wt])){const p=t.preOrderCheckHooks;null!==p&&j(n,p,o)}else{const p=t.preOrderHooks;null!==p&&pe(n,p,0,o)}mo(o)}function ng(t,n=null,o=null,l){const d=rg(t,n,o,l);return d.resolveInjectorInitializers(),d}function rg(t,n=null,o=null,l,d=new Set){const p=[o||nt,Tp(t)];return l=l||("object"==typeof t?void 0:B(t)),new Vd(p,n||Ju(),l||null,d)}let Oa=(()=>{class t{static create(o,l){if(Array.isArray(o))return ng({name:""},l,o,"");{const d=o.name??"";return ng({name:d},o.parent,o.providers,d)}}}return t.THROW_IF_NOT_FOUND=On,t.NULL=new Ap,t.\u0275prov=Ut({token:t,providedIn:"any",factory:()=>Et(Dp)}),t.__NG_ELEMENT_ID__=-1,t})();function du(t,n=lt.Default){const o=Mt();return null===o?Et(t,n):vo(Rr(),o,De(t),n)}function lg(){throw new Error("invalid")}function hf(t,n){const o=t.contentQueries;if(null!==o)for(let l=0;l<o.length;l+=2){const p=o[l+1];if(-1!==p){const I=t.data[p];Ps(o[l]),I.contentQueries(2,n[p],p)}}}function nl(t,n,o,l,d,p,I,L,H,fe,Ae){const Ke=n.blueprint.slice();return Ke[tt]=d,Ke[wt]=76|l,(null!==Ae||t&&1024&t[wt])&&(Ke[wt]|=1024),z(Ke),Ke[Ct]=Ke[_r]=t,Ke[an]=o,Ke[Hn]=I||t&&t[Hn],Ke[on]=L||t&&t[on],Ke[Pr]=H||t&&t[Pr]||null,Ke[rr]=fe||t&&t[rr]||null,Ke[un]=p,Ke[ui]=function ym(){return $h++}(),Ke[Ai]=Ae,Ke[ar]=2==n.type?t[ar]:Ke,Ke}function fu(t,n,o,l,d){let p=t.data[n];if(null===p)p=function pf(t,n,o,l,d){const p=us(),I=po(),H=t.data[n]=function wy(t,n,o,l,d,p){return{type:o,index:l,insertBeforeIndex:null,injectorIndex:n?n.injectorIndex:-1,directiveStart:-1,directiveEnd:-1,directiveStylingLast:-1,componentOffset:-1,propertyBindings:null,flags:0,providerIndexes:0,value:d,attrs:p,mergedAttrs:null,localNames:null,initialInputs:void 0,inputs:null,outputs:null,tView:null,next:null,prev:null,projectionNext:null,child:null,parent:n,projection:null,styles:null,stylesWithoutHost:null,residualStyles:void 0,classes:null,classesWithoutHost:null,residualClasses:void 0,classBindings:0,styleBindings:0}}(0,I?p:p&&p.parent,o,n,l,d);return null===t.firstChild&&(t.firstChild=H),null!==p&&(I?null==p.child&&null!==H.parent&&(p.child=H):null===p.next&&(p.next=H,H.prev=p)),H}(t,n,o,l,d),function va(){return st.lFrame.inI18n}()&&(p.flags|=32);else if(64&p.type){p.type=o,p.value=l,p.attrs=d;const I=function $o(){const t=st.lFrame,n=t.currentTNode;return t.isParent?n:n.parent}();p.injectorIndex=null===I?-1:I.injectorIndex}return hi(p,!0),p}function hu(t,n,o,l){if(0===o)return-1;const d=n.length;for(let p=0;p<o;p++)n.push(l),t.blueprint.push(l),t.data.push(null);return d}function ic(t,n,o){go(n);try{const l=t.viewQuery;null!==l&&If(1,l,o);const d=t.template;null!==d&&hg(t,n,d,1,o),t.firstCreatePass&&(t.firstCreatePass=!1),t.staticContentQueries&&hf(t,n),t.staticViewQueries&&If(2,t.viewQuery,o);const p=t.components;null!==p&&function fg(t,n){for(let o=0;o<n.length;o++)Oy(t,n[o])}(n,p)}catch(l){throw t.firstCreatePass&&(t.incompleteFirstPass=!0,t.firstCreatePass=!1),l}finally{n[wt]&=-5,ur()}}function Ra(t,n,o,l){const d=n[wt];if(128!=(128&d)){go(n);try{z(n),function xs(t){return st.lFrame.bindingIndex=t}(t.bindingStartIndex),null!==o&&hg(t,n,o,2,l);const I=3==(3&d);if(I){const fe=t.preOrderCheckHooks;null!==fe&&j(n,fe,null)}else{const fe=t.preOrderHooks;null!==fe&&pe(n,fe,0,null),Re(n,0)}if(function Ef(t){for(let n=pd(t);null!==n;n=Da(n)){if(!n[uo])continue;const o=n[ji];for(let l=0;l<o.length;l++){const d=o[l];512&d[wt]||Te(d[Ct],1),d[wt]|=512}}}(n),function My(t){for(let n=pd(t);null!==n;n=Da(n))for(let o=Ar;o<n.length;o++){const l=n[o],d=l[Xe];bi(l)&&Ra(d,l,d.template,l[an])}}(n),null!==t.contentQueries&&hf(t,n),I){const fe=t.contentCheckHooks;null!==fe&&j(n,fe)}else{const fe=t.contentHooks;null!==fe&&pe(n,fe,1),Re(n,1)}!function cg(t,n){const o=t.hostBindingOpCodes;if(null!==o)try{for(let l=0;l<o.length;l++){const d=o[l];if(d<0)mo(~d);else{const p=d,I=o[++l],L=o[++l];_a(I,p),L(2,n[p])}}}finally{mo(-1)}}(t,n);const L=t.components;null!==L&&function dg(t,n){for(let o=0;o<n.length;o++)Ig(t,n[o])}(n,L);const H=t.viewQuery;if(null!==H&&If(2,H,l),I){const fe=t.viewCheckHooks;null!==fe&&j(n,fe)}else{const fe=t.viewHooks;null!==fe&&pe(n,fe,2),Re(n,2)}!0===t.firstUpdatePass&&(t.firstUpdatePass=!1),n[wt]&=-41,512&n[wt]&&(n[wt]&=-513,Te(n[Ct],-1))}finally{ur()}}}function hg(t,n,o,l,d){const p=Un(),I=2&l;try{mo(-1),I&&n.length>Ln&&Xp(t,n,Ln,!1),tr(I?2:0,d),o(l,d)}finally{mo(p),tr(I?3:1,d)}}function Vs(t,n,o){if(Co(n)){const d=n.directiveEnd;for(let p=n.directiveStart;p<d;p++){const I=t.data[p];I.contentQueries&&I.contentQueries(1,o[p],p)}}}function gf(t,n,o){Ro()&&(function xy(t,n,o,l){const d=o.directiveStart,p=o.directiveEnd;Tr(o)&&function Py(t,n,o){const l=jr(n,t),d=pg(o),p=t[Hn],I=lc(t,nl(t,d,null,o.onPush?32:16,l,n,p,p.createRenderer(l,o),null,null,null));t[n.index]=I}(n,o,t.data[d+o.componentOffset]),t.firstCreatePass||Ir(o,n),Ni(l,n);const I=o.initialInputs;for(let L=d;L<p;L++){const H=t.data[L],fe=bo(n,t,L,o);Ni(fe,n),null!==I&&Eg(0,L-d,fe,H,0,I),ii(H)&&(ir(o.index,n)[an]=bo(n,t,L,o))}}(t,n,o,jr(o,n)),64==(64&o.flags)&&sc(t,n,o))}function mf(t,n,o=jr){const l=n.localNames;if(null!==l){let d=n.index+1;for(let p=0;p<l.length;p+=2){const I=l[p+1],L=-1===I?o(n,t):t[I];t[d++]=L}}}function pg(t){const n=t.tView;return null===n||n.incompleteFirstPass?t.tView=yf(1,null,t.template,t.decls,t.vars,t.directiveDefs,t.pipeDefs,t.viewQuery,t.schemas,t.consts):n}function yf(t,n,o,l,d,p,I,L,H,fe){const Ae=Ln+l,Ke=Ae+d,it=function gg(t,n){const o=[];for(let l=0;l<n;l++)o.push(l<t?null:Rn);return o}(Ae,Ke),gt="function"==typeof fe?fe():fe;return it[Xe]={type:t,blueprint:it,template:o,queries:null,viewQuery:L,declTNode:n,data:it.slice().fill(null,Ae),bindingStartIndex:Ae,expandoStartIndex:Ke,hostBindingOpCodes:null,firstCreatePass:!0,firstUpdatePass:!0,staticViewQueries:!1,staticContentQueries:!1,preOrderHooks:null,preOrderCheckHooks:null,contentHooks:null,contentCheckHooks:null,viewHooks:null,viewCheckHooks:null,destroyHooks:null,cleanup:null,contentQueries:null,components:null,directiveRegistry:"function"==typeof p?p():p,pipeRegistry:"function"==typeof I?I():I,firstChild:null,schemas:H,consts:gt,incompleteFirstPass:!1}}function yg(t,n,o,l){const d=Dg(n);null===o?d.push(l):(d.push(o),t.firstCreatePass&&xg(t).push(l,d.length-1))}function oc(t,n,o,l){for(let d in t)if(t.hasOwnProperty(d)){o=null===o?{}:o;const p=t[d];null===l?vf(o,n,d,p):l.hasOwnProperty(d)&&vf(o,n,l[d],p)}return o}function vf(t,n,o,l){t.hasOwnProperty(o)?t[o].push(n,l):t[o]=[n,l]}function Ii(t,n,o,l,d,p,I,L){const H=jr(n,o);let Ae,fe=n.inputs;!L&&null!=fe&&(Ae=fe[l])?(dc(t,o,Ae,l,d),Tr(n)&&vg(o,n.index)):3&n.type&&(l=function Sy(t){return"class"===t?"className":"for"===t?"htmlFor":"formaction"===t?"formAction":"innerHtml"===t?"innerHTML":"readonly"===t?"readOnly":"tabindex"===t?"tabIndex":t}(l),d=null!=I?I(d,n.value||"",l):d,p.setProperty(H,l,d))}function vg(t,n){const o=ir(n,t);16&o[wt]||(o[wt]|=32)}function _f(t,n,o,l){if(Ro()){const d=null===l?null:{"":-1},p=function wg(t,n){const o=t.directiveRegistry;let l=null,d=null;if(o)for(let p=0;p<o.length;p++){const I=o[p];if(ef(n,I.selectors,!1))if(l||(l=[]),ii(I))if(null!==I.findHostDirectiveDefs){const L=[];d=d||new Map,I.findHostDirectiveDefs(I,L,d),l.unshift(...L,I),ac(t,n,L.length)}else l.unshift(I),ac(t,n,0);else d=d||new Map,I.findHostDirectiveDefs?.(I,l,d),l.push(I)}return null===l?null:[l,d]}(t,o);let I,L;null===p?I=L=null:[I,L]=p,null!==I&&_g(t,n,o,I,d,L),d&&function uc(t,n,o){if(n){const l=t.localNames=[];for(let d=0;d<n.length;d+=2){const p=o[n[d+1]];if(null==p)throw new Y(-301,!1);l.push(n[d],p)}}}(o,l,d)}o.mergedAttrs=Xr(o.mergedAttrs,o.attrs)}function _g(t,n,o,l,d,p){for(let fe=0;fe<l.length;fe++)gr(Ir(o,n),t,l[fe].type);!function bf(t,n,o){t.flags|=1,t.directiveStart=n,t.directiveEnd=n+o,t.providerIndexes=n}(o,t.data.length,l.length);for(let fe=0;fe<l.length;fe++){const Ae=l[fe];Ae.providersResolver&&Ae.providersResolver(Ae)}let I=!1,L=!1,H=hu(t,n,l.length,null);for(let fe=0;fe<l.length;fe++){const Ae=l[fe];o.mergedAttrs=Xr(o.mergedAttrs,Ae.hostAttrs),Ty(t,o,n,H,Ae),Ay(H,Ae,d),null!==Ae.contentQueries&&(o.flags|=4),(null!==Ae.hostBindings||null!==Ae.hostAttrs||0!==Ae.hostVars)&&(o.flags|=64);const Ke=Ae.type.prototype;!I&&(Ke.ngOnChanges||Ke.ngOnInit||Ke.ngDoCheck)&&((t.preOrderHooks||(t.preOrderHooks=[])).push(o.index),I=!0),!L&&(Ke.ngOnChanges||Ke.ngDoCheck)&&((t.preOrderCheckHooks||(t.preOrderCheckHooks=[])).push(o.index),L=!0),H++}!function Ey(t,n,o){const d=n.directiveEnd,p=t.data,I=n.attrs,L=[];let H=null,fe=null;for(let Ae=n.directiveStart;Ae<d;Ae++){const Ke=p[Ae],it=o?o.get(Ke):null,Dt=it?it.outputs:null;H=oc(Ke.inputs,Ae,H,it?it.inputs:null),fe=oc(Ke.outputs,Ae,fe,Dt);const Bt=null===H||null===I||Xd(n)?null:Sg(H,Ae,I);L.push(Bt)}null!==H&&(H.hasOwnProperty("class")&&(n.flags|=8),H.hasOwnProperty("style")&&(n.flags|=16)),n.initialInputs=L,n.inputs=H,n.outputs=fe}(t,o,p)}function sc(t,n,o){const l=o.directiveStart,d=o.directiveEnd,p=o.index,I=function Ts(){return st.lFrame.currentDirectiveIndex}();try{mo(p);for(let L=l;L<d;L++){const H=t.data[L],fe=n[L];cs(L),(null!==H.hostBindings||0!==H.hostVars||null!==H.hostAttrs)&&bg(H,fe)}}finally{mo(-1),cs(I)}}function bg(t,n){null!==t.hostBindings&&t.hostBindings(1,n)}function ac(t,n,o){n.componentOffset=o,(t.components||(t.components=[])).push(n.index)}function Ay(t,n,o){if(o){if(n.exportAs)for(let l=0;l<n.exportAs.length;l++)o[n.exportAs[l]]=t;ii(n)&&(o[""]=t)}}function Ty(t,n,o,l,d){t.data[l]=d;const p=d.factory||(d.factory=Jr(d.type)),I=new Tt(p,ii(d),du);t.blueprint[l]=I,o[l]=I,function Iy(t,n,o,l,d){const p=d.hostBindings;if(p){let I=t.hostBindingOpCodes;null===I&&(I=t.hostBindingOpCodes=[]);const L=~n.index;(function Dy(t){let n=t.length;for(;n>0;){const o=t[--n];if("number"==typeof o&&o<0)return o}return 0})(I)!=L&&I.push(L),I.push(o,l,p)}}(t,n,l,hu(t,o,d.hostVars,Rn),d)}function vs(t,n,o,l,d,p){const I=jr(t,n);!function wf(t,n,o,l,d,p,I){if(null==p)t.removeAttribute(n,d,o);else{const L=null==I?le(p):I(p,l||"",d);t.setAttribute(n,d,L,o)}}(n[on],I,p,t.value,o,l,d)}function Eg(t,n,o,l,d,p){const I=p[n];if(null!==I){const L=l.setInput;for(let H=0;H<I.length;){const fe=I[H++],Ae=I[H++],Ke=I[H++];null!==L?l.setInput(o,Ke,fe,Ae):o[Ae]=Ke}}}function Sg(t,n,o){let l=null,d=0;for(;d<o.length;){const p=o[d];if(0!==p)if(5!==p){if("number"==typeof p)break;if(t.hasOwnProperty(p)){null===l&&(l=[]);const I=t[p];for(let L=0;L<I.length;L+=2)if(I[L]===n){l.push(p,I[L+1],o[d+1]);break}}d+=2}else d+=2;else d+=4}return l}function Cg(t,n,o,l){return[t,!0,!1,n,null,0,l,o,null,null]}function Ig(t,n){const o=ir(n,t);if(bi(o)){const l=o[Xe];48&o[wt]?Ra(l,o,l.template,o[an]):o[Gt]>0&&Sf(o)}}function Sf(t){for(let l=pd(t);null!==l;l=Da(l))for(let d=Ar;d<l.length;d++){const p=l[d];if(bi(p))if(512&p[wt]){const I=p[Xe];Ra(I,p,I.template,p[an])}else p[Gt]>0&&Sf(p)}const o=t[Xe].components;if(null!==o)for(let l=0;l<o.length;l++){const d=ir(o[l],t);bi(d)&&d[Gt]>0&&Sf(d)}}function Oy(t,n){const o=ir(n,t),l=o[Xe];(function rl(t,n){for(let o=n.length;o<t.blueprint.length;o++)n.push(t.blueprint[o])})(l,o),ic(l,o,o[an])}function lc(t,n){return t[vr]?t[Lr][$t]=n:t[vr]=n,t[Lr]=n,n}function Cf(t){for(;t;){t[wt]|=32;const n=Ia(t);if(Yi(t)&&!n)return t;t=n}return null}function cc(t,n,o,l=!0){const d=n[Hn];d.begin&&d.begin();try{Ra(t,n,t.template,o)}catch(I){throw l&&Df(n,I),I}finally{d.end&&d.end()}}function If(t,n,o){Ps(0),n(t,o)}function Dg(t){return t[Mn]||(t[Mn]=[])}function xg(t){return t.cleanup||(t.cleanup=[])}function Df(t,n){const o=t[rr],l=o?o.get(el,null):null;l&&l.handleError(n)}function dc(t,n,o,l,d){for(let p=0;p<o.length;){const I=o[p++],L=o[p++],H=n[I],fe=t.data[I];null!==fe.setInput?fe.setInput(H,d,l,L):H[L]=d}}function _s(t,n,o){const l=ho(n,t);!function Xh(t,n,o){t.setValue(n,o)}(t[on],l,o)}function Na(t,n,o){let l=o?t.styles:null,d=o?t.classes:null,p=0;if(null!==n)for(let I=0;I<n.length;I++){const L=n[I];"number"==typeof L?p=L:1==p?d=q(d,L):2==p&&(l=q(l,L+": "+n[++I]+";"))}o?t.styles=l:t.stylesWithoutHost=l,o?t.classes=d:t.classesWithoutHost=d}function fc(t,n,o,l,d=!1){for(;null!==o;){const p=n[o.index];if(null!==p&&l.push(Or(p)),Mr(p))for(let L=Ar;L<p.length;L++){const H=p[L],fe=H[Xe].firstChild;null!==fe&&fc(H[Xe],H,fe,l)}const I=o.type;if(8&I)fc(t,n,o.child,l);else if(32&I){const L=hd(o,n);let H;for(;H=L();)l.push(H)}else if(16&I){const L=Vl(n,o);if(Array.isArray(L))l.push(...L);else{const H=Ia(n[ar]);fc(H[Xe],H,L,l,!0)}}o=d?o.projectionNext:o.next}return l}class Fa{get rootNodes(){const n=this._lView,o=n[Xe];return fc(o,n,o.firstChild,[])}constructor(n,o){this._lView=n,this._cdRefInjectingView=o,this._appRef=null,this._attachedToViewContainer=!1}get context(){return this._lView[an]}set context(n){this._lView[an]=n}get destroyed(){return 128==(128&this._lView[wt])}destroy(){if(this._appRef)this._appRef.detachView(this);else if(this._attachedToViewContainer){const n=this._lView[Ct];if(Mr(n)){const o=n[Eo],l=o?o.indexOf(this):-1;l>-1&&(Ll(n,l),Xa(o,l))}this._attachedToViewContainer=!1}_d(this._lView[Xe],this._lView)}onDestroy(n){yg(this._lView[Xe],this._lView,null,n)}markForCheck(){Cf(this._cdRefInjectingView||this._lView)}detach(){this._lView[wt]&=-65}reattach(){this._lView[wt]|=64}detectChanges(){cc(this._lView[Xe],this._lView,this.context)}checkNoChanges(){}attachToViewContainerRef(){if(this._appRef)throw new Y(902,!1);this._attachedToViewContainer=!0}detachFromAppRef(){this._appRef=null,function Fu(t,n){aa(t,n,n[on],2,null,null)}(this._lView[Xe],this._lView)}attachToAppRef(n){if(this._attachedToViewContainer)throw new Y(902,!1);this._appRef=n}}class Tg extends Fa{constructor(n){super(n),this._view=n}detectChanges(){const n=this._view;cc(n[Xe],n,n[an],!1)}checkNoChanges(){}get context(){return null}}class Pg extends au{constructor(n){super(),this.ngModule=n}resolveComponentFactory(n){const o=kn(n);return new pu(o,this.ngModule)}}function Mg(t){const n=[];for(let o in t)t.hasOwnProperty(o)&&n.push({propName:t[o],templateName:o});return n}class Og{constructor(n,o){this.injector=n,this.parentInjector=o}get(n,o,l){l=vn(l);const d=this.injector.get(n,Kd,l);return d!==Kd||o===Kd?d:this.parentInjector.get(n,o,l)}}class pu extends Gd{get inputs(){return Mg(this.componentDef.inputs)}get outputs(){return Mg(this.componentDef.outputs)}constructor(n,o){super(),this.componentDef=n,this.ngModule=o,this.componentType=n.type,this.selector=function tf(t){return t.map(iy).join(",")}(n.selectors),this.ngContentSelectors=n.ngContentSelectors?n.ngContentSelectors:[],this.isBoundToModule=!!o}create(n,o,l,d){let p=(d=d||this.ngModule)instanceof ca?d:d?.injector;p&&null!==this.componentDef.getStandaloneInjector&&(p=this.componentDef.getStandaloneInjector(p)||p);const I=p?new Og(n,p):n,L=I.get(Xu,null);if(null===L)throw new Y(407,!1);const H=I.get(Qm,null),fe=L.createRenderer(null,this.componentDef),Ae=this.componentDef.selectors[0][0]||"div",Ke=l?function mg(t,n,o){return t.selectRootElement(n,o===ue.ShadowDom)}(fe,l,this.componentDef.encapsulation):md(fe,Ae,function Ry(t){const n=t.toLowerCase();return"svg"===n?fo:"math"===n?"math":null}(Ae)),it=this.componentDef.onPush?288:272,gt=yf(0,null,null,1,0,null,null,null,null,null),Dt=nl(null,gt,null,it,null,null,L,fe,H,I,null);let Bt,Wt;go(Dt);try{const dn=this.componentDef;let Dn,Lt=null;dn.findHostDirectiveDefs?(Dn=[],Lt=new Map,dn.findHostDirectiveDefs(dn,Dn,Lt),Dn.push(dn)):Dn=[dn];const Nn=function xf(t,n){const o=t[Xe],l=Ln;return t[l]=n,fu(o,l,2,"#host",null)}(Dt,Ke),zr=function Rg(t,n,o,l,d,p,I,L){const H=d[Xe];!function Fy(t,n,o,l){for(const d of t)n.mergedAttrs=Xr(n.mergedAttrs,d.hostAttrs);null!==n.mergedAttrs&&(Na(n,n.mergedAttrs,!0),null!==o&&lp(l,o,n))}(l,t,n,I);const fe=p.createRenderer(n,o),Ae=nl(d,pg(o),null,o.onPush?32:16,d[t.index],t,p,fe,L||null,null,null);return H.firstCreatePass&&ac(H,t,l.length-1),lc(d,Ae),d[t.index]=Ae}(Nn,Ke,dn,Dn,Dt,L,fe);Wt=Qs(gt,Ln),Ke&&function il(t,n,o,l){if(l)Sr(t,o,["ng-version",Jm.full]);else{const{attrs:d,classes:p}=function oy(t){const n=[],o=[];let l=1,d=2;for(;l<t.length;){let p=t[l];if("string"==typeof p)2===d?""!==p&&n.push(p,t[++l]):8===d&&o.push(p);else{if(!Lo(d))break;d=p}l++}return{attrs:n,classes:o}}(n.selectors[0]);d&&Sr(t,o,d),p&&p.length>0&&up(t,o,p.join(" "))}}(fe,dn,Ke,l),void 0!==o&&function Uy(t,n,o){const l=t.projection=[];for(let d=0;d<n.length;d++){const p=o[d];l.push(null!=p?Array.from(p):null)}}(Wt,this.ngContentSelectors,o),Bt=function Ly(t,n,o,l,d,p){const I=Rr(),L=d[Xe],H=jr(I,d);_g(L,d,I,o,null,l);for(let Ae=0;Ae<o.length;Ae++)Ni(bo(d,L,I.directiveStart+Ae,I),d);sc(L,d,I),H&&Ni(H,d);const fe=bo(d,L,I.directiveStart+I.componentOffset,I);if(t[an]=d[an]=fe,null!==p)for(const Ae of p)Ae(fe,n);return Vs(L,I,t),fe}(zr,dn,Dn,Lt,Dt,[ky]),ic(gt,Dt,null)}finally{ur()}return new Ny(this.componentType,Bt,Ma(Wt,Dt),Dt,Wt)}}class Ny extends zd{constructor(n,o,l,d,p){super(),this.location=l,this._rootLView=d,this._tNode=p,this.instance=o,this.hostView=this.changeDetectorRef=new Tg(d),this.componentType=n}setInput(n,o){const l=this._tNode.inputs;let d;if(null!==l&&(d=l[n])){const p=this._rootLView;dc(p[Xe],p,d,n,o),vg(p,this._tNode.index)}}get injector(){return new ta(this._tNode,this._rootLView)}destroy(){this.hostView.destroy()}onDestroy(n){this.hostView.onDestroy(n)}}function ky(){const t=Rr();C(Mt()[Xe],t)}function Af(t){let n=function Ng(t){return Object.getPrototypeOf(t.prototype).constructor}(t.type),o=!0;const l=[t];for(;n;){let d;if(ii(t))d=n.\u0275cmp||n.\u0275dir;else{if(n.\u0275cmp)throw new Y(903,!1);d=n.\u0275dir}if(d){if(o){l.push(d);const I=t;I.inputs=Tf(t.inputs),I.declaredInputs=Tf(t.declaredInputs),I.outputs=Tf(t.outputs);const L=d.hostBindings;L&&Fg(t,L);const H=d.viewQuery,fe=d.contentQueries;if(H&&By(t,H),fe&&Vy(t,fe),V(t.inputs,d.inputs),V(t.declaredInputs,d.declaredInputs),V(t.outputs,d.outputs),ii(d)&&d.data.animation){const Ae=t.data;Ae.animation=(Ae.animation||[]).concat(d.data.animation)}}const p=d.features;if(p)for(let I=0;I<p.length;I++){const L=p[I];L&&L.ngInherit&&L(t),L===Af&&(o=!1)}}n=Object.getPrototypeOf(n)}!function jy(t){let n=0,o=null;for(let l=t.length-1;l>=0;l--){const d=t[l];d.hostVars=n+=d.hostVars,d.hostAttrs=Xr(d.hostAttrs,o=Xr(o,d.hostAttrs))}}(l)}function Tf(t){return t===Je?{}:t===nt?[]:t}function By(t,n){const o=t.viewQuery;t.viewQuery=o?(l,d)=>{n(l,d),o(l,d)}:n}function Vy(t,n){const o=t.contentQueries;t.contentQueries=o?(l,d,p)=>{n(l,d,p),o(l,d,p)}:n}function Fg(t,n){const o=t.hostBindings;t.hostBindings=o?(l,d)=>{n(l,d),o(l,d)}:n}function ol(t){return!!sl(t)&&(Array.isArray(t)||!(t instanceof Map)&&Symbol.iterator in t)}function sl(t){return null!==t&&("function"==typeof t||"object"==typeof t)}function bs(t,n,o){return t[n]=o}function al(t,n){return t[n]}function oi(t,n,o){return!Object.is(t[n],o)&&(t[n]=o,!0)}function La(t,n,o,l){const d=oi(t,n,o);return oi(t,n+1,l)||d}function pc(t,n,o,l,d){const p=La(t,n,o,l);return oi(t,n+2,d)||p}function ko(t,n,o,l,d,p){const I=La(t,n,o,l);return La(t,n+2,d,p)||I}function Mf(t,n,o,l){const d=Mt();return oi(d,eo(),n)&&(jn(),vs(pr(),d,t,n,o,l)),Mf}function yu(t,n,o,l){return oi(t,eo(),o)?n+le(o)+l:Rn}function vu(t,n,o,l,d,p){const L=La(t,Xi(),o,d);return qr(2),L?n+le(o)+l+le(d)+p:Rn}function Of(t,n,o,l,d,p){const I=Mt(),L=yu(I,n,o,l);return L!==Rn&&vs(pr(),I,t,L,d,p),Of}function zg(t,n,o,l,d,p,I,L){const H=Mt(),fe=jn(),Ae=t+Ln,Ke=fe.firstCreatePass?function ul(t,n,o,l,d,p,I,L,H){const fe=n.consts,Ae=fu(n,t,4,I||null,Z(fe,L));_f(n,o,Ae,Z(fe,H)),C(n,Ae);const Ke=Ae.tView=yf(2,Ae,l,d,p,n.directiveRegistry,n.pipeRegistry,null,n.schemas,fe);return null!==n.queries&&(n.queries.template(n,Ae),Ke.queries=n.queries.embeddedTView(Ae)),Ae}(Ae,fe,H,n,o,l,d,p,I):fe.data[Ae];hi(Ke,!1);const it=H[on].createComment("");jl(fe,H,it,Ke),Ni(it,H),lc(H,H[Ae]=Cg(it,H,it,Ke)),Ki(Ke)&&gf(fe,H,Ke),null!=I&&mf(H,Ke,L)}function Gg(t){return zi(function qi(){return st.lFrame.contextLView}(),Ln+t)}function Ff(t,n,o){const l=Mt();return oi(l,eo(),n)&&Ii(jn(),pr(),l,t,n,l[on],o,!1),Ff}function Lf(t,n,o,l,d){const I=d?"class":"style";dc(t,o,n.inputs[I],I,l)}function gc(t,n,o,l){const d=Mt(),p=jn(),I=Ln+t,L=d[on],H=p.firstCreatePass?function Zy(t,n,o,l,d,p){const I=n.consts,H=fu(n,t,2,l,Z(I,d));return _f(n,o,H,Z(I,p)),null!==H.attrs&&Na(H,H.attrs,!1),null!==H.mergedAttrs&&Na(H,H.mergedAttrs,!0),null!==n.queries&&n.queries.elementStart(n,H),H}(I,p,d,n,o,l):p.data[I],fe=d[I]=md(L,n,function h(){return st.lFrame.currentNamespace}()),Ae=Ki(H);return hi(H,!0),lp(L,fe,H),32!=(32&H.flags)&&jl(p,d,fe,H),0===function Fn(){return st.lFrame.elementDepthCount}()&&Ni(fe,d),function Mo(){st.lFrame.elementDepthCount++}(),Ae&&(gf(p,d,H),Vs(p,H,d)),null!==l&&mf(d,H),gc}function mc(){let t=Rr();po()?pi():(t=t.parent,hi(t,!1));const n=t;!function Oo(){st.lFrame.elementDepthCount--}();const o=jn();return o.firstCreatePass&&(C(o,t),Co(t)&&o.queries.elementEnd(t)),null!=n.classesWithoutHost&&function mn(t){return 0!=(8&t.flags)}(n)&&Lf(o,n,Mt(),n.classesWithoutHost,!0),null!=n.stylesWithoutHost&&function An(t){return 0!=(16&t.flags)}(n)&&Lf(o,n,Mt(),n.stylesWithoutHost,!1),mc}function ll(t,n,o,l){return gc(t,n,o,l),mc(),ll}function zs(t,n,o){const l=Mt(),d=jn(),p=t+Ln,I=d.firstCreatePass?function yc(t,n,o,l,d){const p=n.consts,I=Z(p,l),L=fu(n,t,8,"ng-container",I);return null!==I&&Na(L,I,!0),_f(n,o,L,Z(p,d)),null!==n.queries&&n.queries.elementStart(n,L),L}(p,d,l,n,o):d.data[p];hi(I,!0);const L=l[p]=l[on].createComment("");return jl(d,l,L,I),Ni(L,l),Ki(I)&&(gf(d,l,I),Vs(d,I,l)),null!=o&&mf(l,I),zs}function Gs(){let t=Rr();const n=jn();return po()?pi():(t=t.parent,hi(t,!1)),n.firstCreatePass&&(C(n,t),Co(t)&&n.queries.elementEnd(t)),Gs}function Uf(t,n,o){return zs(t,n,o),Gs(),Uf}function da(){return Mt()}function vc(t){return!!t&&"function"==typeof t.then}function kf(t){return!!t&&"function"==typeof t.subscribe}const _c=kf;function bc(t,n,o,l){const d=Mt(),p=jn(),I=Rr();return function wc(t,n,o,l,d,p,I){const L=Ki(l),fe=t.firstCreatePass&&xg(t),Ae=n[an],Ke=Dg(n);let it=!0;if(3&l.type||I){const Bt=jr(l,n),Wt=I?I(Bt):Bt,dn=Ke.length,Dn=I?Nn=>I(Or(Nn[l.index])):l.index;let Lt=null;if(!I&&L&&(Lt=function Bf(t,n,o,l){const d=t.cleanup;if(null!=d)for(let p=0;p<d.length-1;p+=2){const I=d[p];if(I===o&&d[p+1]===l){const L=n[Mn],H=d[p+2];return L.length>H?L[H]:null}"string"==typeof I&&(p+=2)}return null}(t,n,d,l.index)),null!==Lt)(Lt.__ngLastListenerFn__||Lt).__ngNextListenerFn__=p,Lt.__ngLastListenerFn__=p,it=!1;else{p=Sc(l,n,Ae,p,!1);const Nn=o.listen(Wt,d,p);Ke.push(p,Nn),fe&&fe.push(d,Dn,dn,dn+1)}}else p=Sc(l,n,Ae,p,!1);const gt=l.outputs;let Dt;if(it&&null!==gt&&(Dt=gt[d])){const Bt=Dt.length;if(Bt)for(let Wt=0;Wt<Bt;Wt+=2){const zr=n[Dt[Wt]][Dt[Wt+1]].subscribe(p),ai=Ke.length;Ke.push(p,zr),fe&&fe.push(d,l.index,ai,-(ai+1))}}}(p,d,d[on],I,t,n,l),bc}function Ec(t,n,o,l){try{return tr(6,n,o),!1!==o(l)}catch(d){return Df(t,d),!1}finally{tr(7,n,o)}}function Sc(t,n,o,l,d){return function p(I){if(I===Function)return l;Cf(t.componentOffset>-1?ir(t.index,n):n);let H=Ec(n,o,l,I),fe=p.__ngNextListenerFn__;for(;fe;)H=Ec(n,o,fe,I)&&H,fe=fe.__ngNextListenerFn__;return d&&!1===H&&(I.preventDefault(),I.returnValue=!1),H}}function Vf(t=1){return function ci(t){return(st.lFrame.contextLView=function br(t,n){for(;t>0;)n=n[_r],t--;return n}(t,st.lFrame.contextLView))[an]}(t)}function $g(t,n){let o=null;const l=function Yp(t){const n=t.attrs;if(null!=n){const o=n.indexOf(5);if(!(1&o))return n[o+1]}return null}(t);for(let d=0;d<n.length;d++){const p=n[d];if("*"!==p){if(null===l?ef(t,p,!0):Jp(l,p))return d}else o=d}return o}function Hf(t){const n=Mt()[ar][un];if(!n.projection){const l=n.projection=Ko(t?t.length:1,null),d=l.slice();let p=n.child;for(;null!==p;){const I=t?$g(p,t):0;null!==I&&(d[I]?d[I].projectionNext=p:l[I]=p,d[I]=p),p=p.next}}}function cl(t,n=0,o){const l=Mt(),d=jn(),p=fu(d,Ln+t,16,null,o||null);null===p.projection&&(p.projection=n),pi(),32!=(32&p.flags)&&function sp(t,n,o){ap(n[on],0,n,o,bd(t,o,n),Uu(o.parent||n[un],o,n))}(d,l,p)}function Cc(t,n,o){return Ic(t,"",n,"",o),Cc}function Ic(t,n,o,l,d){const p=Mt(),I=yu(p,n,o,l);return I!==Rn&&Ii(jn(),pr(),p,t,I,p[on],d,!1),Ic}function Dc(t,n,o,l,d,p,I){const L=Mt(),H=vu(L,n,o,l,d,p);return H!==Rn&&Ii(jn(),pr(),L,t,H,L[on],I,!1),Dc}function xc(t,n,o,l,d,p,I,L,H){const fe=Mt(),Ae=function _u(t,n,o,l,d,p,I,L){const fe=pc(t,Xi(),o,d,I);return qr(3),fe?n+le(o)+l+le(d)+p+le(I)+L:Rn}(fe,n,o,l,d,p,I,L);return Ae!==Rn&&Ii(jn(),pr(),fe,t,Ae,fe[on],H,!1),xc}function Eu(t,n){return t<<17|n<<2}function $s(t){return t>>17&32767}function Su(t){return 2|t}function fa(t){return(131068&t)>>2}function Kf(t,n){return-131069&t|n<<2}function hl(t){return 1|t}function Tc(t,n,o,l,d){const p=t[o+1],I=null===n;let L=l?$s(p):fa(p),H=!1;for(;0!==L&&(!1===H||I);){const Ae=t[L+1];Yg(t[L],n)&&(H=!0,t[L+1]=l?hl(Ae):Su(Ae)),L=l?$s(Ae):fa(Ae)}H&&(t[o+1]=l?Su(p):hl(p))}function Yg(t,n){return null===t||null==n||(Array.isArray(t)?t[1]:t)===n||!(!Array.isArray(t)||"string"!=typeof n)&&P(t,n)>=0}const si={textEnd:0,key:0,keyEnd:0,value:0,valueEnd:0};function Pc(t){return t.substring(si.key,si.keyEnd)}function Zg(t){return t.substring(si.value,si.valueEnd)}function Zf(t,n){const o=si.textEnd;return o===n?-1:(n=si.keyEnd=function Jg(t,n,o){for(;n<o&&t.charCodeAt(n)>32;)n++;return n}(t,si.key=n,o),ja(t,n,o))}function Mc(t,n){const o=si.textEnd;let l=si.key=ja(t,n,o);return o===l?-1:(l=si.keyEnd=function Oc(t,n,o){let l;for(;n<o&&(45===(l=t.charCodeAt(n))||95===l||(-33&l)>=65&&(-33&l)<=90||l>=48&&l<=57);)n++;return n}(t,l,o),l=Jf(t,l,o),l=si.value=ja(t,l,o),l=si.valueEnd=function qg(t,n,o){let l=-1,d=-1,p=-1,I=n,L=I;for(;I<o;){const H=t.charCodeAt(I++);if(59===H)return L;34===H||39===H?L=I=qf(t,H,I,o):n===I-4&&85===p&&82===d&&76===l&&40===H?L=I=qf(t,41,I,o):H>32&&(L=I),p=d,d=l,l=-33&H}return L}(t,l,o),Jf(t,l,o))}function Qf(t){si.key=0,si.keyEnd=0,si.value=0,si.valueEnd=0,si.textEnd=t.length}function ja(t,n,o){for(;n<o&&t.charCodeAt(n)<=32;)n++;return n}function Jf(t,n,o,l){return(n=ja(t,n,o))<o&&n++,n}function qf(t,n,o,l){let d=-1,p=o;for(;p<l;){const I=t.charCodeAt(p++);if(I==n&&92!==d)return p;d=92==I&&92===d?0:I}throw new Error}function Xf(t,n,o){return Xo(t,n,o,!1),Xf}function Cu(t,n){return Xo(t,n,null,!0),Cu}function qo(t){es(e0,Ba,t,!1)}function Ba(t,n){for(let o=function pl(t){return Qf(t),Mc(t,ja(t,0,si.textEnd))}(n);o>=0;o=Mc(n,o))e0(t,Pc(n),Zg(n))}function Xg(t){es(Oi,ws,t,!0)}function ws(t,n){for(let o=function Qg(t){return Qf(t),Zf(t,ja(t,0,si.textEnd))}(n);o>=0;o=Zf(n,o))Oi(t,Pc(n),!0)}function Xo(t,n,o,l){const d=Mt(),p=jn(),I=qr(2);p.firstUpdatePass&&th(p,t,I,l),n!==Rn&&oi(d,I,n)&&t0(p,p.data[Un()],d,d[on],t,d[I+1]=function nv(t,n){return null==t||("string"==typeof n?t+=n:"object"==typeof t&&(t=B(ks(t)))),t}(n,o),l,I)}function es(t,n,o,l){const d=jn(),p=qr(2);d.firstUpdatePass&&th(d,null,p,l);const I=Mt();if(o!==Rn&&oi(I,p,o)){const L=d.data[Un()];if(r0(L,l)&&!eh(d,p)){let H=l?L.classesWithoutHost:L.stylesWithoutHost;null!==H&&(o=q(H,o||"")),Lf(d,L,I,o,l)}else!function tv(t,n,o,l,d,p,I,L){d===Rn&&(d=nt);let H=0,fe=0,Ae=0<d.length?d[0]:null,Ke=0<p.length?p[0]:null;for(;null!==Ae||null!==Ke;){const it=H<d.length?d[H+1]:void 0,gt=fe<p.length?p[fe+1]:void 0;let Bt,Dt=null;Ae===Ke?(H+=2,fe+=2,it!==gt&&(Dt=Ke,Bt=gt)):null===Ke||null!==Ae&&Ae<Ke?(H+=2,Dt=Ae):(fe+=2,Dt=Ke,Bt=gt),null!==Dt&&t0(t,n,o,l,Dt,Bt,I,L),Ae=H<d.length?d[H]:null,Ke=fe<p.length?p[fe]:null}}(d,L,I,I[on],I[p+1],I[p+1]=function yl(t,n,o){if(null==o||""===o)return nt;const l=[],d=ks(o);if(Array.isArray(d))for(let p=0;p<d.length;p++)t(l,d[p],!0);else if("object"==typeof d)for(const p in d)d.hasOwnProperty(p)&&t(l,p,d[p]);else"string"==typeof d&&n(l,d);return l}(t,n,o),l,p)}}function eh(t,n){return n>=t.expandoStartIndex}function th(t,n,o,l){const d=t.data;if(null===d[o+1]){const p=d[Un()],I=eh(t,o);r0(p,l)&&null===n&&!I&&(n=!1),n=function Xy(t,n,o,l){const d=function Wo(t){const n=st.lFrame.currentDirectiveIndex;return-1===n?null:t[n]}(t);let p=l?n.residualClasses:n.residualStyles;if(null===d)0===(l?n.classBindings:n.styleBindings)&&(o=ml(o=gl(null,t,n,o,l),n.attrs,l),p=null);else{const I=n.directiveStylingLast;if(-1===I||t[I]!==d)if(o=gl(d,t,n,o,l),null===p){let H=function ev(t,n,o){const l=o?n.classBindings:n.styleBindings;if(0!==fa(l))return t[$s(l)]}(t,n,l);void 0!==H&&Array.isArray(H)&&(H=gl(null,t,n,H[1],l),H=ml(H,n.attrs,l),function nh(t,n,o,l){t[$s(o?n.classBindings:n.styleBindings)]=l}(t,n,l,H))}else p=function rh(t,n,o){let l;const d=n.directiveEnd;for(let p=1+n.directiveStylingLast;p<d;p++)l=ml(l,t[p].hostAttrs,o);return ml(l,n.attrs,o)}(t,n,l)}return void 0!==p&&(l?n.residualClasses=p:n.residualStyles=p),o}(d,p,n,l),function Ac(t,n,o,l,d,p){let I=p?n.classBindings:n.styleBindings,L=$s(I),H=fa(I);t[l]=o;let Ae,fe=!1;if(Array.isArray(o)?(Ae=o[1],(null===Ae||P(o,Ae)>0)&&(fe=!0)):Ae=o,d)if(0!==H){const it=$s(t[L+1]);t[l+1]=Eu(it,L),0!==it&&(t[it+1]=Kf(t[it+1],l)),t[L+1]=function fl(t,n){return 131071&t|n<<17}(t[L+1],l)}else t[l+1]=Eu(L,0),0!==L&&(t[L+1]=Kf(t[L+1],l)),L=l;else t[l+1]=Eu(H,0),0===L?L=l:t[H+1]=Kf(t[H+1],l),H=l;fe&&(t[l+1]=Su(t[l+1])),Tc(t,Ae,l,!0),Tc(t,Ae,l,!1),function Kg(t,n,o,l,d){const p=d?t.residualClasses:t.residualStyles;null!=p&&"string"==typeof n&&P(p,n)>=0&&(o[l+1]=hl(o[l+1]))}(n,Ae,t,l,p),I=Eu(L,H),p?n.classBindings=I:n.styleBindings=I}(d,p,n,o,I,l)}}function gl(t,n,o,l,d){let p=null;const I=o.directiveEnd;let L=o.directiveStylingLast;for(-1===L?L=o.directiveStart:L++;L<I&&(p=n[L],l=ml(l,p.hostAttrs,d),p!==t);)L++;return null!==t&&(o.directiveStylingLast=L),l}function ml(t,n,o){const l=o?1:2;let d=-1;if(null!==n)for(let p=0;p<n.length;p++){const I=n[p];"number"==typeof I?d=I:d===l&&(Array.isArray(t)||(t=void 0===t?[]:["",t]),Oi(t,I,!!o||n[++p]))}return void 0===t?null:t}function e0(t,n,o){Oi(t,n,ks(o))}function t0(t,n,o,l,d,p,I,L){if(!(3&n.type))return;const H=t.data,fe=H[L+1],Ae=function Yf(t){return 1==(1&t)}(fe)?n0(H,n,o,d,fa(fe),I):void 0;Rc(Ae)||(Rc(p)||function ka(t){return 2==(2&t)}(fe)&&(p=n0(H,null,o,d,L,I)),function ju(t,n,o,l,d){if(n)d?t.addClass(o,l):t.removeClass(o,l);else{let p=-1===l.indexOf("-")?void 0:ms.DashCase;null==d?t.removeStyle(o,l,p):("string"==typeof d&&d.endsWith("!important")&&(d=d.slice(0,-10),p|=ms.Important),t.setStyle(o,l,d,p))}}(l,I,ho(Un(),o),d,p))}function n0(t,n,o,l,d,p){const I=null===n;let L;for(;d>0;){const H=t[d],fe=Array.isArray(H),Ae=fe?H[1]:H,Ke=null===Ae;let it=o[d+1];it===Rn&&(it=Ke?nt:void 0);let gt=Ke?D(it,l):Ae===l?it:void 0;if(fe&&!Rc(gt)&&(gt=D(H,l)),Rc(gt)&&(L=gt,I))return L;const Dt=t[d+1];d=I?$s(Dt):fa(Dt)}if(null!==n){let H=p?n.residualClasses:n.residualStyles;null!=H&&(L=D(H,l))}return L}function Rc(t){return void 0!==t}function r0(t,n){return 0!=(t.flags&(n?8:16))}function o0(t,n=""){const o=Mt(),l=jn(),d=t+Ln,p=l.firstCreatePass?fu(l,d,1,n,null):l.data[d],I=o[d]=function gd(t,n){return t.createText(n)}(o[on],n);jl(l,o,I,p),hi(p,!1)}function Nc(t){return Va("",t,""),Nc}function Va(t,n,o){const l=Mt(),d=yu(l,t,n,o);return d!==Rn&&_s(l,Un(),d),Va}function Fc(t,n,o,l,d){const p=Mt(),I=vu(p,t,n,o,l,d);return I!==Rn&&_s(p,Un(),I),Fc}function Uc(t,n,o,l,d,p,I,L,H,fe,Ae){const Ke=Mt(),it=function bu(t,n,o,l,d,p,I,L,H,fe,Ae,Ke){const it=Xi();let gt=ko(t,it,o,d,I,H);return gt=oi(t,it+4,Ae)||gt,qr(5),gt?n+le(o)+l+le(d)+p+le(I)+L+le(H)+fe+le(Ae)+Ke:Rn}(Ke,t,n,o,l,d,p,I,L,H,fe,Ae);return it!==Rn&&_s(Ke,Un(),it),Uc}function uh(t,n,o){es(Oi,ws,yu(Mt(),t,n,o),!0)}function Hc(t,n,o){const l=Mt();return oi(l,eo(),n)&&Ii(jn(),pr(),l,t,n,l[on],o,!0),Hc}const ni=void 0;var y0=["en",[["a","p"],["AM","PM"],ni],[["AM","PM"],ni,ni],[["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"]],ni,[["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"]],ni,[["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}",ni,"{1} 'at' {0}",ni],[".",",",";","%","+","-","E","\xd7","\u2030","\u221e","NaN",":"],["#,##0.###","#,##0%","\xa4#,##0.00","#E0"],"USD","$","US Dollar",{},"ltr",function Ks(t){const o=Math.floor(Math.abs(t)),l=t.toString().replace(/^[^.]*\.?/,"").length;return 1===o&&0===l?1:5}];let Ha={};function zc(t){const n=function _0(t){return t.toLowerCase().replace(/_/g,"-")}(t);let o=v0(n);if(o)return o;const l=n.split("-")[0];if(o=v0(l),o)return o;if("en"===l)return y0;throw new Y(701,!1)}function gh(t){return zc(t)[Sn.PluralCase]}function v0(t){return t in Ha||(Ha[t]=ln.ng&&ln.ng.common&&ln.ng.common.locales&&ln.ng.common.locales[t]),Ha[t]}var Sn=(()=>((Sn=Sn||{})[Sn.LocaleId=0]="LocaleId",Sn[Sn.DayPeriodsFormat=1]="DayPeriodsFormat",Sn[Sn.DayPeriodsStandalone=2]="DayPeriodsStandalone",Sn[Sn.DaysFormat=3]="DaysFormat",Sn[Sn.DaysStandalone=4]="DaysStandalone",Sn[Sn.MonthsFormat=5]="MonthsFormat",Sn[Sn.MonthsStandalone=6]="MonthsStandalone",Sn[Sn.Eras=7]="Eras",Sn[Sn.FirstDayOfWeek=8]="FirstDayOfWeek",Sn[Sn.WeekendRange=9]="WeekendRange",Sn[Sn.DateFormat=10]="DateFormat",Sn[Sn.TimeFormat=11]="TimeFormat",Sn[Sn.DateTimeFormat=12]="DateTimeFormat",Sn[Sn.NumberSymbols=13]="NumberSymbols",Sn[Sn.NumberFormats=14]="NumberFormats",Sn[Sn.CurrencyCode=15]="CurrencyCode",Sn[Sn.CurrencySymbol=16]="CurrencySymbol",Sn[Sn.CurrencyName=17]="CurrencyName",Sn[Sn.Currencies=18]="Currencies",Sn[Sn.Directionality=19]="Directionality",Sn[Sn.PluralCase=20]="PluralCase",Sn[Sn.ExtraData=21]="ExtraData",Sn))();const Ga="en-US";let mh=Ga;function D0(t,n,o,l,d){if(t=De(t),Array.isArray(t))for(let p=0;p<t.length;p++)D0(t[p],n,o,l,d);else{const p=jn(),I=Mt();let L=la(t)?t:De(t.provide),H=Hd(t);const fe=Rr(),Ae=1048575&fe.providerIndexes,Ke=fe.directiveStart,it=fe.providerIndexes>>20;if(la(t)||!t.multi){const gt=new Tt(H,d,du),Dt=A0(L,n,d?Ae:Ae+it,Ke);-1===Dt?(gr(Ir(fe,I),p,L),x0(p,t,n.length),n.push(L),fe.directiveStart++,fe.directiveEnd++,d&&(fe.providerIndexes+=1048576),o.push(gt),I.push(gt)):(o[Dt]=gt,I[Dt]=gt)}else{const gt=A0(L,n,Ae+it,Ke),Dt=A0(L,n,Ae,Ae+it),Wt=Dt>=0&&o[Dt];if(d&&!Wt||!d&&!(gt>=0&&o[gt])){gr(Ir(fe,I),p,L);const dn=function Jb(t,n,o,l,d){const p=new Tt(t,o,du);return p.multi=[],p.index=n,p.componentProviders=0,vv(p,d,l&&!o),p}(d?Qb:Zb,o.length,d,l,H);!d&&Wt&&(o[Dt].providerFactory=dn),x0(p,t,n.length,0),n.push(L),fe.directiveStart++,fe.directiveEnd++,d&&(fe.providerIndexes+=1048576),o.push(dn),I.push(dn)}else x0(p,t,gt>-1?gt:Dt,vv(o[d?Dt:gt],H,!d&&l));!d&&l&&Wt&&o[Dt].componentProviders++}}}function x0(t,n,o,l){const d=la(n),p=function Mp(t){return!!t.useClass}(n);if(d||p){const H=(p?De(n.useClass):n).prototype.ngOnDestroy;if(H){const fe=t.destroyHooks||(t.destroyHooks=[]);if(!d&&n.multi){const Ae=fe.indexOf(o);-1===Ae?fe.push(o,[l,H]):fe[Ae+1].push(l,H)}else fe.push(o,H)}}}function vv(t,n,o){return o&&t.componentProviders++,t.multi.push(n)-1}function A0(t,n,o,l){for(let d=o;d<l;d++)if(n[d]===t)return d;return-1}function Zb(t,n,o,l){return T0(this.multi,[])}function Qb(t,n,o,l){const d=this.multi;let p;if(this.providerFactory){const I=this.providerFactory.componentProviders,L=bo(o,o[Xe],this.providerFactory.index,l);p=L.slice(0,I),T0(d,p);for(let H=I;H<L.length;H++)p.push(L[H])}else p=[],T0(d,p);return p}function T0(t,n){for(let o=0;o<t.length;o++)n.push((0,t[o])());return n}function _v(t,n=[]){return o=>{o.providersResolver=(l,d)=>function Yb(t,n,o){const l=jn();if(l.firstCreatePass){const d=ii(t);D0(o,l.data,l.blueprint,d,!0),D0(n,l.data,l.blueprint,d,!1)}}(l,d?d(t):t,n)}}class El{}class bv{}function qb(t,n){return new wv(t,n??null)}class wv extends El{constructor(n,o){super(),this._parent=o,this._bootstrapComponents=[],this.destroyCbs=[],this.componentFactoryResolver=new Pg(this);const l=ce(n);this._bootstrapComponents=Bs(l.bootstrap),this._r3Injector=rg(n,o,[{provide:El,useValue:this},{provide:au,useValue:this.componentFactoryResolver}],B(n),new Set(["environment"])),this._r3Injector.resolveInjectorInitializers(),this.instance=this._r3Injector.get(n)}get injector(){return this._r3Injector}destroy(){const n=this._r3Injector;!n.destroyed&&n.destroy(),this.destroyCbs.forEach(o=>o()),this.destroyCbs=null}onDestroy(n){this.destroyCbs.push(n)}}class P0 extends bv{constructor(n){super(),this.moduleType=n}create(n){return new wv(this.moduleType,n)}}class Xb extends El{constructor(n,o,l){super(),this.componentFactoryResolver=new Pg(this),this.instance=null;const d=new Vd([...n,{provide:El,useValue:this},{provide:au,useValue:this.componentFactoryResolver}],o||Ju(),l,new Set(["environment"]));this.injector=d,d.resolveInjectorInitializers()}destroy(){this.injector.destroy()}onDestroy(n){this.injector.onDestroy(n)}}function M0(t,n,o=null){return new Xb(t,n,o).injector}let ew=(()=>{class t{constructor(o){this._injector=o,this.cachedInjectors=new Map}getOrCreateStandaloneInjector(o){if(!o.standalone)return null;if(!this.cachedInjectors.has(o.id)){const l=Ld(0,o.type),d=l.length>0?M0([l],this._injector,`Standalone[${o.type.name}]`):null;this.cachedInjectors.set(o.id,d)}return this.cachedInjectors.get(o.id)}ngOnDestroy(){try{for(const o of this.cachedInjectors.values())null!==o&&o.destroy()}finally{this.cachedInjectors.clear()}}}return t.\u0275prov=Ut({token:t,providedIn:"environment",factory:()=>new t(Et(ca))}),t})();function Ev(t){t.getStandaloneInjector=n=>n.get(ew).getOrCreateStandaloneInjector(t)}function Tv(t,n,o){const l=Br()+t,d=Mt();return d[l]===Rn?bs(d,l,o?n.call(o):n()):al(d,l)}function Pv(t,n,o,l){return jv(Mt(),Br(),t,n,o,l)}function Mv(t,n,o,l,d){return Bv(Mt(),Br(),t,n,o,l,d)}function Ov(t,n,o,l,d,p){return Vv(Mt(),Br(),t,n,o,l,d,p)}function Rv(t,n,o,l,d,p,I){return function Hv(t,n,o,l,d,p,I,L,H){const fe=n+o;return ko(t,fe,d,p,I,L)?bs(t,fe+4,H?l.call(H,d,p,I,L):l(d,p,I,L)):Yc(t,fe+4)}(Mt(),Br(),t,n,o,l,d,p,I)}function Nv(t,n,o,l,d,p,I,L){const H=Br()+t,fe=Mt(),Ae=ko(fe,H,o,l,d,p);return oi(fe,H+4,I)||Ae?bs(fe,H+5,L?n.call(L,o,l,d,p,I):n(o,l,d,p,I)):al(fe,H+5)}function Fv(t,n,o,l,d,p,I,L,H){const fe=Br()+t,Ae=Mt(),Ke=ko(Ae,fe,o,l,d,p);return La(Ae,fe+4,I,L)||Ke?bs(Ae,fe+6,H?n.call(H,o,l,d,p,I,L):n(o,l,d,p,I,L)):al(Ae,fe+6)}function Lv(t,n,o,l,d,p,I,L,H,fe){const Ae=Br()+t,Ke=Mt();let it=ko(Ke,Ae,o,l,d,p);return pc(Ke,Ae+4,I,L,H)||it?bs(Ke,Ae+7,fe?n.call(fe,o,l,d,p,I,L,H):n(o,l,d,p,I,L,H)):al(Ke,Ae+7)}function Uv(t,n,o,l,d,p,I,L,H,fe,Ae){const Ke=Br()+t,it=Mt(),gt=ko(it,Ke,o,l,d,p);return ko(it,Ke+4,I,L,H,fe)||gt?bs(it,Ke+8,Ae?n.call(Ae,o,l,d,p,I,L,H,fe):n(o,l,d,p,I,L,H,fe)):al(it,Ke+8)}function kv(t,n,o,l){return function zv(t,n,o,l,d,p){let I=n+o,L=!1;for(let H=0;H<d.length;H++)oi(t,I++,d[H])&&(L=!0);return L?bs(t,I,l.apply(p,d)):Yc(t,I)}(Mt(),Br(),t,n,o,l)}function Yc(t,n){const o=t[n];return o===Rn?void 0:o}function jv(t,n,o,l,d,p){const I=n+o;return oi(t,I,d)?bs(t,I+1,p?l.call(p,d):l(d)):Yc(t,I+1)}function Bv(t,n,o,l,d,p,I){const L=n+o;return La(t,L,d,p)?bs(t,L+2,I?l.call(I,d,p):l(d,p)):Yc(t,L+2)}function Vv(t,n,o,l,d,p,I,L){const H=n+o;return pc(t,H,d,p,I)?bs(t,H+3,L?l.call(L,d,p,I):l(d,p,I)):Yc(t,H+3)}function Gv(t,n){const o=jn();let l;const d=t+Ln;o.firstCreatePass?(l=function lw(t,n){if(n)for(let o=n.length-1;o>=0;o--){const l=n[o];if(t===l.name)return l}}(n,o.pipeRegistry),o.data[d]=l,l.onDestroy&&(o.destroyHooks||(o.destroyHooks=[])).push(d,l.onDestroy)):l=o.data[d];const p=l.factory||(l.factory=Jr(l.type)),I=It(du);try{const L=gi(!1),H=p();return gi(L),function Yy(t,n,o,l){o>=t.data.length&&(t.data[o]=null,t.blueprint[o]=null),n[o]=l}(o,Mt(),d,H),H}finally{It(I)}}function $v(t,n,o){const l=t+Ln,d=Mt(),p=zi(d,l);return Zc(d,l)?jv(d,Br(),n,p.transform,o,p):p.transform(o)}function Wv(t,n,o,l){const d=t+Ln,p=Mt(),I=zi(p,d);return Zc(p,d)?Bv(p,Br(),n,I.transform,o,l,I):I.transform(o,l)}function Kv(t,n,o,l,d){const p=t+Ln,I=Mt(),L=zi(I,p);return Zc(I,p)?Vv(I,Br(),n,L.transform,o,l,d,L):L.transform(o,l,d)}function Zc(t,n){return t[Xe].data[n].pure}function R0(t){return n=>{setTimeout(t,void 0,n)}}const Ys=class fw extends c.xQ{constructor(n=!1){super(),this.__isAsync=n}emit(n){super.next(n)}subscribe(n,o,l){let d=n,p=o||(()=>null),I=l;if(n&&"object"==typeof n){const H=n;d=H.next?.bind(H),p=H.error?.bind(H),I=H.complete?.bind(H)}this.__isAsync&&(p=R0(p),d&&(d=R0(d)),I&&(I=R0(I)));const L=super.subscribe({next:d,error:p,complete:I});return n instanceof b.w&&n.add(L),L}};function hw(){return this._results[Symbol.iterator]()}class N0{get changes(){return this._changes||(this._changes=new Ys)}constructor(n=!1){this._emitDistinctChangesOnly=n,this.dirty=!0,this._results=[],this._changesDetected=!1,this._changes=null,this.length=0,this.first=void 0,this.last=void 0;const o=N0.prototype;o[Symbol.iterator]||(o[Symbol.iterator]=hw)}get(n){return this._results[n]}map(n){return this._results.map(n)}filter(n){return this._results.filter(n)}find(n){return this._results.find(n)}reduce(n,o){return this._results.reduce(n,o)}forEach(n){this._results.forEach(n)}some(n){return this._results.some(n)}toArray(){return this._results.slice()}toString(){return this._results.toString()}reset(n,o){const l=this;l.dirty=!1;const d=function In(t){return t.flat(Number.POSITIVE_INFINITY)}(n);(this._changesDetected=!function Nr(t,n,o){if(t.length!==n.length)return!1;for(let l=0;l<t.length;l++){let d=t[l],p=n[l];if(o&&(d=o(d),p=o(p)),p!==d)return!1}return!0}(l._results,d,o))&&(l._results=d,l.length=d.length,l.last=d[this.length-1],l.first=d[0])}notifyOnChanges(){this._changes&&(this._changesDetected||!this._emitDistinctChangesOnly)&&this._changes.emit(this)}setDirty(){this.dirty=!0}destroy(){this.changes.complete(),this.changes.unsubscribe()}}let Qc=(()=>{class t{}return t.__NG_ELEMENT_ID__=mw,t})();const pw=Qc,gw=class extends pw{constructor(n,o,l){super(),this._declarationLView=n,this._declarationTContainer=o,this.elementRef=l}createEmbeddedView(n,o){const l=this._declarationTContainer.tView,d=nl(this._declarationLView,l,n,16,null,l.declTNode,null,null,null,null,o||null);d[Jn]=this._declarationLView[this._declarationTContainer.index];const I=this._declarationLView[Ur];return null!==I&&(d[Ur]=I.createEmbeddedView(l)),ic(l,d,n),new Fa(d)}};function mw(){return wh(Rr(),Mt())}function wh(t,n){return 4&t.type?new gw(n,t,Ma(t,n)):null}let Eh=(()=>{class t{}return t.__NG_ELEMENT_ID__=yw,t})();function yw(){return Qv(Rr(),Mt())}const vw=Eh,Yv=class extends vw{constructor(n,o,l){super(),this._lContainer=n,this._hostTNode=o,this._hostLView=l}get element(){return Ma(this._hostTNode,this._hostLView)}get injector(){return new ta(this._hostTNode,this._hostLView)}get parentInjector(){const n=Gi(this._hostTNode,this._hostLView);if(Mi(n)){const o=hs(n,this._hostLView),l=Gr(n);return new ta(o[Xe].data[l+8],o)}return new ta(null,this._hostLView)}clear(){for(;this.length>0;)this.remove(this.length-1)}get(n){const o=Zv(this._lContainer);return null!==o&&o[n]||null}get length(){return this._lContainer.length-Ar}createEmbeddedView(n,o,l){let d,p;"number"==typeof l?d=l:null!=l&&(d=l.index,p=l.injector);const I=n.createEmbeddedView(o||{},p);return this.insert(I,d),I}createComponent(n,o,l,d,p){const I=n&&!function Ls(t){return"function"==typeof t}(n);let L;if(I)L=o;else{const Ke=o||{};L=Ke.index,l=Ke.injector,d=Ke.projectableNodes,p=Ke.environmentInjector||Ke.ngModuleRef}const H=I?n:new pu(kn(n)),fe=l||this.parentInjector;if(!p&&null==H.ngModule){const it=(I?fe:this.parentInjector).get(ca,null);it&&(p=it)}const Ae=H.create(fe,d,void 0,p);return this.insert(Ae.hostView,L),Ae}insert(n,o){const l=n._lView,d=l[Xe];if(function te(t){return Mr(t[Ct])}(l)){const Ae=this.indexOf(n);if(-1!==Ae)this.detach(Ae);else{const Ke=l[Ct],it=new Yv(Ke,Ke[un],Ke[Ct]);it.detach(it.indexOf(n))}}const p=this._adjustIndex(o),I=this._lContainer;!function yd(t,n,o,l){const d=Ar+l,p=o.length;l>0&&(o[d-1][$t]=n),l<p-Ar?(n[$t]=o[d],Ea(o,Ar+l,n)):(o.push(n),n[$t]=null),n[Ct]=o;const I=n[Jn];null!==I&&o!==I&&function nu(t,n){const o=t[ji];n[ar]!==n[Ct][Ct][ar]&&(t[uo]=!0),null===o?t[ji]=[n]:o.push(n)}(I,n);const L=n[Ur];null!==L&&L.insertView(t),n[wt]|=64}(d,l,I,p);const L=ku(p,I),H=l[on],fe=Lu(H,I[ki]);return null!==fe&&function xm(t,n,o,l,d,p){l[tt]=d,l[un]=n,aa(t,l,o,1,d,p)}(d,I[un],H,l,fe,L),n.attachToViewContainerRef(),Ea(F0(I),p,n),n}move(n,o){return this.insert(n,o)}indexOf(n){const o=Zv(this._lContainer);return null!==o?o.indexOf(n):-1}remove(n){const o=this._adjustIndex(n,-1),l=Ll(this._lContainer,o);l&&(Xa(F0(this._lContainer),o),_d(l[Xe],l))}detach(n){const o=this._adjustIndex(n,-1),l=Ll(this._lContainer,o);return l&&null!=Xa(F0(this._lContainer),o)?new Fa(l):null}_adjustIndex(n,o=0){return n??this.length+o}};function Zv(t){return t[Eo]}function F0(t){return t[Eo]||(t[Eo]=[])}function Qv(t,n){let o;const l=n[t.index];if(Mr(l))o=l;else{let d;if(8&t.type)d=Or(l);else{const p=n[on];d=p.createComment("");const I=jr(t,n);sa(p,Lu(p,I),d,function rp(t,n){return t.nextSibling(n)}(p,I),!1)}n[t.index]=o=Cg(l,n,d,t),lc(n,o)}return new Yv(o,t,n)}class L0{constructor(n){this.queryList=n,this.matches=null}clone(){return new L0(this.queryList)}setDirty(){this.queryList.setDirty()}}class U0{constructor(n=[]){this.queries=n}createEmbeddedView(n){const o=n.queries;if(null!==o){const l=null!==n.contentQueries?n.contentQueries[0]:o.length,d=[];for(let p=0;p<l;p++){const I=o.getByIndex(p);d.push(this.queries[I.indexInDeclarationView].clone())}return new U0(d)}return null}insertView(n){this.dirtyQueriesWithMatches(n)}detachView(n){this.dirtyQueriesWithMatches(n)}dirtyQueriesWithMatches(n){for(let o=0;o<this.queries.length;o++)null!==o_(n,o).matches&&this.queries[o].setDirty()}}class Jv{constructor(n,o,l=null){this.predicate=n,this.flags=o,this.read=l}}class k0{constructor(n=[]){this.queries=n}elementStart(n,o){for(let l=0;l<this.queries.length;l++)this.queries[l].elementStart(n,o)}elementEnd(n){for(let o=0;o<this.queries.length;o++)this.queries[o].elementEnd(n)}embeddedTView(n){let o=null;for(let l=0;l<this.length;l++){const d=null!==o?o.length:0,p=this.getByIndex(l).embeddedTView(n,d);p&&(p.indexInDeclarationView=l,null!==o?o.push(p):o=[p])}return null!==o?new k0(o):null}template(n,o){for(let l=0;l<this.queries.length;l++)this.queries[l].template(n,o)}getByIndex(n){return this.queries[n]}get length(){return this.queries.length}track(n){this.queries.push(n)}}class j0{constructor(n,o=-1){this.metadata=n,this.matches=null,this.indexInDeclarationView=-1,this.crossesNgTemplate=!1,this._appliesToNextNode=!0,this._declarationNodeIndex=o}elementStart(n,o){this.isApplyingToNode(o)&&this.matchTNode(n,o)}elementEnd(n){this._declarationNodeIndex===n.index&&(this._appliesToNextNode=!1)}template(n,o){this.elementStart(n,o)}embeddedTView(n,o){return this.isApplyingToNode(n)?(this.crossesNgTemplate=!0,this.addMatch(-n.index,o),new j0(this.metadata)):null}isApplyingToNode(n){if(this._appliesToNextNode&&1!=(1&this.metadata.flags)){const o=this._declarationNodeIndex;let l=n.parent;for(;null!==l&&8&l.type&&l.index!==o;)l=l.parent;return o===(null!==l?l.index:-1)}return this._appliesToNextNode}matchTNode(n,o){const l=this.metadata.predicate;if(Array.isArray(l))for(let d=0;d<l.length;d++){const p=l[d];this.matchTNodeWithReadOption(n,o,_w(o,p)),this.matchTNodeWithReadOption(n,o,_o(o,n,p,!1,!1))}else l===Qc?4&o.type&&this.matchTNodeWithReadOption(n,o,-1):this.matchTNodeWithReadOption(n,o,_o(o,n,l,!1,!1))}matchTNodeWithReadOption(n,o,l){if(null!==l){const d=this.metadata.read;if(null!==d)if(d===qu||d===Eh||d===Qc&&4&o.type)this.addMatch(o.index,-2);else{const p=_o(o,n,d,!1,!1);null!==p&&this.addMatch(o.index,p)}else this.addMatch(o.index,l)}}addMatch(n,o){null===this.matches?this.matches=[n,o]:this.matches.push(n,o)}}function _w(t,n){const o=t.localNames;if(null!==o)for(let l=0;l<o.length;l+=2)if(o[l]===n)return o[l+1];return null}function ww(t,n,o,l){return-1===o?function bw(t,n){return 11&t.type?Ma(t,n):4&t.type?wh(t,n):null}(n,t):-2===o?function Ew(t,n,o){return o===qu?Ma(n,t):o===Qc?wh(n,t):o===Eh?Qv(n,t):void 0}(t,n,l):bo(t,t[Xe],o,n)}function qv(t,n,o,l){const d=n[Ur].queries[l];if(null===d.matches){const p=t.data,I=o.matches,L=[];for(let H=0;H<I.length;H+=2){const fe=I[H];L.push(fe<0?null:ww(n,p[fe],I[H+1],o.metadata.read))}d.matches=L}return d.matches}function B0(t,n,o,l){const d=t.queries.getByIndex(o),p=d.matches;if(null!==p){const I=qv(t,n,d,o);for(let L=0;L<p.length;L+=2){const H=p[L];if(H>0)l.push(I[L/2]);else{const fe=p[L+1],Ae=n[-H];for(let Ke=Ar;Ke<Ae.length;Ke++){const it=Ae[Ke];it[Jn]===it[Ct]&&B0(it[Xe],it,fe,l)}if(null!==Ae[ji]){const Ke=Ae[ji];for(let it=0;it<Ke.length;it++){const gt=Ke[it];B0(gt[Xe],gt,fe,l)}}}}}return l}function Xv(t){const n=Mt(),o=jn(),l=ds();Ps(l+1);const d=o_(o,l);if(t.dirty&&function Go(t){return 4==(4&t[wt])}(n)===(2==(2&d.metadata.flags))){if(null===d.matches)t.reset([]);else{const p=d.crossesNgTemplate?B0(o,n,l,[]):qv(o,n,d,l);t.reset(p,Bp),t.notifyOnChanges()}return!0}return!1}function e_(t,n,o){const l=jn();l.firstCreatePass&&(i_(l,new Jv(t,n,o),-1),2==(2&n)&&(l.staticViewQueries=!0)),r_(l,Mt(),n)}function t_(t,n,o,l){const d=jn();if(d.firstCreatePass){const p=Rr();i_(d,new Jv(n,o,l),p.index),function Cw(t,n){const o=t.contentQueries||(t.contentQueries=[]);n!==(o.length?o[o.length-1]:-1)&&o.push(t.queries.length-1,n)}(d,t),2==(2&o)&&(d.staticContentQueries=!0)}r_(d,Mt(),o)}function n_(){return function Sw(t,n){return t[Ur].queries[n].queryList}(Mt(),ds())}function r_(t,n,o){const l=new N0(4==(4&o));yg(t,n,l,l.destroy),null===n[Ur]&&(n[Ur]=new U0),n[Ur].queries.push(new L0(l))}function i_(t,n,o){null===t.queries&&(t.queries=new k0),t.queries.track(new j0(n,o))}function o_(t,n){return t.queries.getByIndex(n)}function s_(t,n){return wh(t,n)}function V0(t){return!!ce(t)}function Ch(...t){}const C_=new mr("Application Initializer");let Ih=(()=>{class t{constructor(o){this.appInits=o,this.resolve=Ch,this.reject=Ch,this.initialized=!1,this.done=!1,this.donePromise=new Promise((l,d)=>{this.resolve=l,this.reject=d})}runInitializers(){if(this.initialized)return;const o=[],l=()=>{this.done=!0,this.resolve()};if(this.appInits)for(let d=0;d<this.appInits.length;d++){const p=this.appInits[d]();if(vc(p))o.push(p);else if(_c(p)){const I=new Promise((L,H)=>{p.subscribe({complete:L,error:H})});o.push(I)}}Promise.all(o).then(()=>{l()}).catch(d=>{this.reject(d)}),0===o.length&&l(),this.initialized=!0}}return t.\u0275fac=function(o){return new(o||t)(Et(C_,8))},t.\u0275prov=Ut({token:t,factory:t.\u0275fac,providedIn:"root"}),t})();const I_=new mr("AppId",{providedIn:"root",factory:function D_(){return`${W0()}${W0()}${W0()}`}});function W0(){return String.fromCharCode(97+Math.floor(25*Math.random()))}const x_=new mr("Platform Initializer"),Gw=new mr("Platform ID",{providedIn:"platform",factory:()=>"unknown"}),$w=new mr("AnimationModuleType");let Ww=(()=>{class t{log(o){console.log(o)}warn(o){console.warn(o)}}return t.\u0275fac=function(o){return new(o||t)},t.\u0275prov=Ut({token:t,factory:t.\u0275fac,providedIn:"platform"}),t})();const Dh=new mr("LocaleId",{providedIn:"root",factory:()=>Xt(Dh,lt.Optional|lt.SkipSelf)||function Kw(){return typeof $localize<"u"&&$localize.locale||Ga}()}),Yw=new mr("DefaultCurrencyCode",{providedIn:"root",factory:()=>"USD"});class Zw{constructor(n,o){this.ngModuleFactory=n,this.componentFactories=o}}let Qw=(()=>{class t{compileModuleSync(o){return new P0(o)}compileModuleAsync(o){return Promise.resolve(this.compileModuleSync(o))}compileModuleAndAllComponentsSync(o){const l=this.compileModuleSync(o),p=Bs(ce(o).declarations).reduce((I,L)=>{const H=kn(L);return H&&I.push(new pu(H)),I},[]);return new Zw(l,p)}compileModuleAndAllComponentsAsync(o){return Promise.resolve(this.compileModuleAndAllComponentsSync(o))}clearCache(){}clearCacheFor(o){}getModuleId(o){}}return t.\u0275fac=function(o){return new(o||t)},t.\u0275prov=Ut({token:t,factory:t.\u0275fac,providedIn:"root"}),t})();const Xw=(()=>Promise.resolve(0))();function K0(t){typeof Zone>"u"?Xw.then(()=>{t&&t.apply(null,null)}):Zone.current.scheduleMicroTask("scheduleMicrotask",t)}class ts{constructor({enableLongStackTrace:n=!1,shouldCoalesceEventChangeDetection:o=!1,shouldCoalesceRunChangeDetection:l=!1}){if(this.hasPendingMacrotasks=!1,this.hasPendingMicrotasks=!1,this.isStable=!0,this.onUnstable=new Ys(!1),this.onMicrotaskEmpty=new Ys(!1),this.onStable=new Ys(!1),this.onError=new Ys(!1),typeof Zone>"u")throw new Y(908,!1);Zone.assertZonePatched();const d=this;d._nesting=0,d._outer=d._inner=Zone.current,Zone.TaskTrackingZoneSpec&&(d._inner=d._inner.fork(new Zone.TaskTrackingZoneSpec)),n&&Zone.longStackTraceZoneSpec&&(d._inner=d._inner.fork(Zone.longStackTraceZoneSpec)),d.shouldCoalesceEventChangeDetection=!l&&o,d.shouldCoalesceRunChangeDetection=l,d.lastRequestAnimationFrameId=-1,d.nativeRequestAnimationFrame=function eE(){let t=ln.requestAnimationFrame,n=ln.cancelAnimationFrame;if(typeof Zone<"u"&&t&&n){const o=t[Zone.__symbol__("OriginalDelegate")];o&&(t=o);const l=n[Zone.__symbol__("OriginalDelegate")];l&&(n=l)}return{nativeRequestAnimationFrame:t,nativeCancelAnimationFrame:n}}().nativeRequestAnimationFrame,function rE(t){const n=()=>{!function nE(t){t.isCheckStableRunning||-1!==t.lastRequestAnimationFrameId||(t.lastRequestAnimationFrameId=t.nativeRequestAnimationFrame.call(ln,()=>{t.fakeTopEventTask||(t.fakeTopEventTask=Zone.root.scheduleEventTask("fakeTopEventTask",()=>{t.lastRequestAnimationFrameId=-1,Z0(t),t.isCheckStableRunning=!0,Y0(t),t.isCheckStableRunning=!1},void 0,()=>{},()=>{})),t.fakeTopEventTask.invoke()}),Z0(t))}(t)};t._inner=t._inner.fork({name:"angular",properties:{isAngularZone:!0},onInvokeTask:(o,l,d,p,I,L)=>{try{return P_(t),o.invokeTask(d,p,I,L)}finally{(t.shouldCoalesceEventChangeDetection&&"eventTask"===p.type||t.shouldCoalesceRunChangeDetection)&&n(),M_(t)}},onInvoke:(o,l,d,p,I,L,H)=>{try{return P_(t),o.invoke(d,p,I,L,H)}finally{t.shouldCoalesceRunChangeDetection&&n(),M_(t)}},onHasTask:(o,l,d,p)=>{o.hasTask(d,p),l===d&&("microTask"==p.change?(t._hasPendingMicrotasks=p.microTask,Z0(t),Y0(t)):"macroTask"==p.change&&(t.hasPendingMacrotasks=p.macroTask))},onHandleError:(o,l,d,p)=>(o.handleError(d,p),t.runOutsideAngular(()=>t.onError.emit(p)),!1)})}(d)}static isInAngularZone(){return typeof Zone<"u"&&!0===Zone.current.get("isAngularZone")}static assertInAngularZone(){if(!ts.isInAngularZone())throw new Y(909,!1)}static assertNotInAngularZone(){if(ts.isInAngularZone())throw new Y(909,!1)}run(n,o,l){return this._inner.run(n,o,l)}runTask(n,o,l,d){const p=this._inner,I=p.scheduleEventTask("NgZoneEvent: "+d,n,tE,Ch,Ch);try{return p.runTask(I,o,l)}finally{p.cancelTask(I)}}runGuarded(n,o,l){return this._inner.runGuarded(n,o,l)}runOutsideAngular(n){return this._outer.run(n)}}const tE={};function Y0(t){if(0==t._nesting&&!t.hasPendingMicrotasks&&!t.isStable)try{t._nesting++,t.onMicrotaskEmpty.emit(null)}finally{if(t._nesting--,!t.hasPendingMicrotasks)try{t.runOutsideAngular(()=>t.onStable.emit(null))}finally{t.isStable=!0}}}function Z0(t){t.hasPendingMicrotasks=!!(t._hasPendingMicrotasks||(t.shouldCoalesceEventChangeDetection||t.shouldCoalesceRunChangeDetection)&&-1!==t.lastRequestAnimationFrameId)}function P_(t){t._nesting++,t.isStable&&(t.isStable=!1,t.onUnstable.emit(null))}function M_(t){t._nesting--,Y0(t)}class iE{constructor(){this.hasPendingMicrotasks=!1,this.hasPendingMacrotasks=!1,this.isStable=!0,this.onUnstable=new Ys,this.onMicrotaskEmpty=new Ys,this.onStable=new Ys,this.onError=new Ys}run(n,o,l){return n.apply(o,l)}runGuarded(n,o,l){return n.apply(o,l)}runOutsideAngular(n){return n()}runTask(n,o,l,d){return n.apply(o,l)}}const O_=new mr(""),R_=new mr("");let Q0,oE=(()=>{class t{constructor(o,l,d){this._ngZone=o,this.registry=l,this._pendingCount=0,this._isZoneStable=!0,this._didWork=!1,this._callbacks=[],this.taskTrackingZone=null,Q0||(function sE(t){Q0=t}(d),d.addToWindow(l)),this._watchAngularEvents(),o.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:()=>{ts.assertNotInAngularZone(),K0(()=>{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())K0(()=>{for(;0!==this._callbacks.length;){let o=this._callbacks.pop();clearTimeout(o.timeoutId),o.doneCb(this._didWork)}this._didWork=!1});else{let o=this.getPendingTasks();this._callbacks=this._callbacks.filter(l=>!l.updateCb||!l.updateCb(o)||(clearTimeout(l.timeoutId),!1)),this._didWork=!0}}getPendingTasks(){return this.taskTrackingZone?this.taskTrackingZone.macroTasks.map(o=>({source:o.source,creationLocation:o.creationLocation,data:o.data})):[]}addCallback(o,l,d){let p=-1;l&&l>0&&(p=setTimeout(()=>{this._callbacks=this._callbacks.filter(I=>I.timeoutId!==p),o(this._didWork,this.getPendingTasks())},l)),this._callbacks.push({doneCb:o,timeoutId:p,updateCb:d})}whenStable(o,l,d){if(d&&!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(o,l,d),this._runCallbacksIfReady()}getPendingRequestCount(){return this._pendingCount}registerApplication(o){this.registry.registerApplication(o,this)}unregisterApplication(o){this.registry.unregisterApplication(o)}findProviders(o,l,d){return[]}}return t.\u0275fac=function(o){return new(o||t)(Et(ts),Et(N_),Et(R_))},t.\u0275prov=Ut({token:t,factory:t.\u0275fac}),t})(),N_=(()=>{class t{constructor(){this._applications=new Map}registerApplication(o,l){this._applications.set(o,l)}unregisterApplication(o){this._applications.delete(o)}unregisterAllApplications(){this._applications.clear()}getTestability(o){return this._applications.get(o)||null}getAllTestabilities(){return Array.from(this._applications.values())}getAllRootElements(){return Array.from(this._applications.keys())}findTestabilityInTree(o,l=!0){return Q0?.findTestabilityInTree(this,o,l)??null}}return t.\u0275fac=function(o){return new(o||t)},t.\u0275prov=Ut({token:t,factory:t.\u0275fac,providedIn:"platform"}),t})();const ga=!1;let Ka=null;const F_=new mr("AllowMultipleToken"),J0=new mr("PlatformDestroyListeners"),L_=new mr("appBootstrapListener");class lE{constructor(n,o){this.name=n,this.token=o}}function k_(t,n,o=[]){const l=`Platform: ${n}`,d=new mr(l);return(p=[])=>{let I=q0();if(!I||I.injector.get(F_,!1)){const L=[...o,...p,{provide:d,useValue:!0}];t?t(L):function cE(t){if(Ka&&!Ka.get(F_,!1))throw new Y(400,!1);Ka=t;const n=t.get(B_);(function U_(t){const n=t.get(x_,null);n&&n.forEach(o=>o())})(t)}(function j_(t=[],n){return Oa.create({name:n,providers:[{provide:Zu,useValue:"platform"},{provide:J0,useValue:new Set([()=>Ka=null])},...t]})}(L,l))}return function fE(t){const n=q0();if(!n)throw new Y(401,!1);return n}()}}function q0(){return Ka?.get(B_)??null}let B_=(()=>{class t{constructor(o){this._injector=o,this._modules=[],this._destroyListeners=[],this._destroyed=!1}bootstrapModuleFactory(o,l){const d=function H_(t,n){let o;return o="noop"===t?new iE:("zone.js"===t?void 0:t)||new ts(n),o}(l?.ngZone,function V_(t){return{enableLongStackTrace:!1,shouldCoalesceEventChangeDetection:!(!t||!t.ngZoneEventCoalescing)||!1,shouldCoalesceRunChangeDetection:!(!t||!t.ngZoneRunCoalescing)||!1}}(l)),p=[{provide:ts,useValue:d}];return d.run(()=>{const I=Oa.create({providers:p,parent:this.injector,name:o.moduleType.name}),L=o.create(I),H=L.injector.get(el,null);if(!H)throw new Y(402,!1);return d.runOutsideAngular(()=>{const fe=d.onError.subscribe({next:Ae=>{H.handleError(Ae)}});L.onDestroy(()=>{Ah(this._modules,L),fe.unsubscribe()})}),function z_(t,n,o){try{const l=o();return vc(l)?l.catch(d=>{throw n.runOutsideAngular(()=>t.handleError(d)),d}):l}catch(l){throw n.runOutsideAngular(()=>t.handleError(l)),l}}(H,d,()=>{const fe=L.injector.get(Ih);return fe.runInitializers(),fe.donePromise.then(()=>(function yh(t){yt(t,"Expected localeId to be defined"),"string"==typeof t&&(mh=t.toLowerCase().replace(/_/g,"-"))}(L.injector.get(Dh,Ga)||Ga),this._moduleDoBootstrap(L),L))})})}bootstrapModule(o,l=[]){const d=G_({},l);return function aE(t,n,o){const l=new P0(o);return Promise.resolve(l)}(0,0,o).then(p=>this.bootstrapModuleFactory(p,d))}_moduleDoBootstrap(o){const l=o.injector.get(xh);if(o._bootstrapComponents.length>0)o._bootstrapComponents.forEach(d=>l.bootstrap(d));else{if(!o.instance.ngDoBootstrap)throw new Y(-403,!1);o.instance.ngDoBootstrap(l)}this._modules.push(o)}onDestroy(o){this._destroyListeners.push(o)}get injector(){return this._injector}destroy(){if(this._destroyed)throw new Y(404,!1);this._modules.slice().forEach(l=>l.destroy()),this._destroyListeners.forEach(l=>l());const o=this._injector.get(J0,null);o&&(o.forEach(l=>l()),o.clear()),this._destroyed=!0}get destroyed(){return this._destroyed}}return t.\u0275fac=function(o){return new(o||t)(Et(Oa))},t.\u0275prov=Ut({token:t,factory:t.\u0275fac,providedIn:"platform"}),t})();function G_(t,n){return Array.isArray(n)?n.reduce(G_,t):{...t,...n}}let xh=(()=>{class t{get destroyed(){return this._destroyed}get injector(){return this._injector}constructor(o,l,d){this._zone=o,this._injector=l,this._exceptionHandler=d,this._bootstrapListeners=[],this._views=[],this._runningTick=!1,this._stable=!0,this._destroyed=!1,this._destroyListeners=[],this.componentTypes=[],this.components=[],this._onMicrotaskEmptySubscription=this._zone.onMicrotaskEmpty.subscribe({next:()=>{this._zone.run(()=>{this.tick()})}});const p=new M.y(L=>{this._stable=this._zone.isStable&&!this._zone.hasPendingMacrotasks&&!this._zone.hasPendingMicrotasks,this._zone.runOutsideAngular(()=>{L.next(this._stable),L.complete()})}),I=new M.y(L=>{let H;this._zone.runOutsideAngular(()=>{H=this._zone.onStable.subscribe(()=>{ts.assertNotInAngularZone(),K0(()=>{!this._stable&&!this._zone.hasPendingMacrotasks&&!this._zone.hasPendingMicrotasks&&(this._stable=!0,L.next(!0))})})});const fe=this._zone.onUnstable.subscribe(()=>{ts.assertInAngularZone(),this._stable&&(this._stable=!1,this._zone.runOutsideAngular(()=>{L.next(!1)}))});return()=>{H.unsubscribe(),fe.unsubscribe()}});this.isStable=(0,F.T)(p,I.pipe(function N(){return t=>(0,g.x)()(function w(t,n){return function(l){let d;if(d="function"==typeof t?t:function(){return t},"function"==typeof n)return l.lift(new y(d,n));const p=Object.create(l,O.N);return p.source=l,p.subjectFactory=d,p}}(x)(t))}()))}bootstrap(o,l){const d=o instanceof Gd;if(!this._injector.get(Ih).done){!d&&Ce(o);throw new Y(405,ga)}let I;I=d?o:this._injector.get(au).resolveComponentFactory(o),this.componentTypes.push(I.componentType);const L=function uE(t){return t.isBoundToModule}(I)?void 0:this._injector.get(El),fe=I.create(Oa.NULL,[],l||I.selector,L),Ae=fe.location.nativeElement,Ke=fe.injector.get(O_,null);return Ke?.registerApplication(Ae),fe.onDestroy(()=>{this.detachView(fe.hostView),Ah(this.components,fe),Ke?.unregisterApplication(Ae)}),this._loadComponent(fe),fe}tick(){if(this._runningTick)throw new Y(101,!1);try{this._runningTick=!0;for(let o of this._views)o.detectChanges()}catch(o){this._zone.runOutsideAngular(()=>this._exceptionHandler.handleError(o))}finally{this._runningTick=!1}}attachView(o){const l=o;this._views.push(l),l.attachToAppRef(this)}detachView(o){const l=o;Ah(this._views,l),l.detachFromAppRef()}_loadComponent(o){this.attachView(o.hostView),this.tick(),this.components.push(o);const l=this._injector.get(L_,[]);l.push(...this._bootstrapListeners),l.forEach(d=>d(o))}ngOnDestroy(){if(!this._destroyed)try{this._destroyListeners.forEach(o=>o()),this._views.slice().forEach(o=>o.destroy()),this._onMicrotaskEmptySubscription.unsubscribe()}finally{this._destroyed=!0,this._views=[],this._bootstrapListeners=[],this._destroyListeners=[]}}onDestroy(o){return this._destroyListeners.push(o),()=>Ah(this._destroyListeners,o)}destroy(){if(this._destroyed)throw new Y(406,!1);const o=this._injector;o.destroy&&!o.destroyed&&o.destroy()}get viewCount(){return this._views.length}warnIfDestroyed(){}}return t.\u0275fac=function(o){return new(o||t)(Et(ts),Et(ca),Et(el))},t.\u0275prov=Ut({token:t,factory:t.\u0275fac,providedIn:"root"}),t})();function Ah(t,n){const o=t.indexOf(n);o>-1&&t.splice(o,1)}function pE(){}let gE=(()=>{class t{}return t.__NG_ELEMENT_ID__=mE,t})();function mE(t){return function yE(t,n,o){if(Tr(t)&&!o){const l=ir(t.index,n);return new Fa(l,l)}return 47&t.type?new Fa(n[ar],n):null}(Rr(),Mt(),16==(16&t))}class Z_{constructor(){}supports(n){return ol(n)}create(n){return new SE(n)}}const EE=(t,n)=>n;class SE{constructor(n){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=n||EE}forEachItem(n){let o;for(o=this._itHead;null!==o;o=o._next)n(o)}forEachOperation(n){let o=this._itHead,l=this._removalsHead,d=0,p=null;for(;o||l;){const I=!l||o&&o.currentIndex<J_(l,d,p)?o:l,L=J_(I,d,p),H=I.currentIndex;if(I===l)d--,l=l._nextRemoved;else if(o=o._next,null==I.previousIndex)d++;else{p||(p=[]);const fe=L-d,Ae=H-d;if(fe!=Ae){for(let it=0;it<fe;it++){const gt=it<p.length?p[it]:p[it]=0,Dt=gt+it;Ae<=Dt&&Dt<fe&&(p[it]=gt+1)}p[I.previousIndex]=Ae-fe}}L!==H&&n(I,L,H)}}forEachPreviousItem(n){let o;for(o=this._previousItHead;null!==o;o=o._nextPrevious)n(o)}forEachAddedItem(n){let o;for(o=this._additionsHead;null!==o;o=o._nextAdded)n(o)}forEachMovedItem(n){let o;for(o=this._movesHead;null!==o;o=o._nextMoved)n(o)}forEachRemovedItem(n){let o;for(o=this._removalsHead;null!==o;o=o._nextRemoved)n(o)}forEachIdentityChange(n){let o;for(o=this._identityChangesHead;null!==o;o=o._nextIdentityChange)n(o)}diff(n){if(null==n&&(n=[]),!ol(n))throw new Y(900,!1);return this.check(n)?this:null}onDestroy(){}check(n){this._reset();let d,p,I,o=this._itHead,l=!1;if(Array.isArray(n)){this.length=n.length;for(let L=0;L<this.length;L++)p=n[L],I=this._trackByFn(L,p),null!==o&&Object.is(o.trackById,I)?(l&&(o=this._verifyReinsertion(o,p,I,L)),Object.is(o.item,p)||this._addIdentityChange(o,p)):(o=this._mismatch(o,p,I,L),l=!0),o=o._next}else d=0,function Wy(t,n){if(Array.isArray(t))for(let o=0;o<t.length;o++)n(t[o]);else{const o=t[Symbol.iterator]();let l;for(;!(l=o.next()).done;)n(l.value)}}(n,L=>{I=this._trackByFn(d,L),null!==o&&Object.is(o.trackById,I)?(l&&(o=this._verifyReinsertion(o,L,I,d)),Object.is(o.item,L)||this._addIdentityChange(o,L)):(o=this._mismatch(o,L,I,d),l=!0),o=o._next,d++}),this.length=d;return this._truncate(o),this.collection=n,this.isDirty}get isDirty(){return null!==this._additionsHead||null!==this._movesHead||null!==this._removalsHead||null!==this._identityChangesHead}_reset(){if(this.isDirty){let n;for(n=this._previousItHead=this._itHead;null!==n;n=n._next)n._nextPrevious=n._next;for(n=this._additionsHead;null!==n;n=n._nextAdded)n.previousIndex=n.currentIndex;for(this._additionsHead=this._additionsTail=null,n=this._movesHead;null!==n;n=n._nextMoved)n.previousIndex=n.currentIndex;this._movesHead=this._movesTail=null,this._removalsHead=this._removalsTail=null,this._identityChangesHead=this._identityChangesTail=null}}_mismatch(n,o,l,d){let p;return null===n?p=this._itTail:(p=n._prev,this._remove(n)),null!==(n=null===this._unlinkedRecords?null:this._unlinkedRecords.get(l,null))?(Object.is(n.item,o)||this._addIdentityChange(n,o),this._reinsertAfter(n,p,d)):null!==(n=null===this._linkedRecords?null:this._linkedRecords.get(l,d))?(Object.is(n.item,o)||this._addIdentityChange(n,o),this._moveAfter(n,p,d)):n=this._addAfter(new CE(o,l),p,d),n}_verifyReinsertion(n,o,l,d){let p=null===this._unlinkedRecords?null:this._unlinkedRecords.get(l,null);return null!==p?n=this._reinsertAfter(p,n._prev,d):n.currentIndex!=d&&(n.currentIndex=d,this._addToMoves(n,d)),n}_truncate(n){for(;null!==n;){const o=n._next;this._addToRemovals(this._unlink(n)),n=o}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(n,o,l){null!==this._unlinkedRecords&&this._unlinkedRecords.remove(n);const d=n._prevRemoved,p=n._nextRemoved;return null===d?this._removalsHead=p:d._nextRemoved=p,null===p?this._removalsTail=d:p._prevRemoved=d,this._insertAfter(n,o,l),this._addToMoves(n,l),n}_moveAfter(n,o,l){return this._unlink(n),this._insertAfter(n,o,l),this._addToMoves(n,l),n}_addAfter(n,o,l){return this._insertAfter(n,o,l),this._additionsTail=null===this._additionsTail?this._additionsHead=n:this._additionsTail._nextAdded=n,n}_insertAfter(n,o,l){const d=null===o?this._itHead:o._next;return n._next=d,n._prev=o,null===d?this._itTail=n:d._prev=n,null===o?this._itHead=n:o._next=n,null===this._linkedRecords&&(this._linkedRecords=new Q_),this._linkedRecords.put(n),n.currentIndex=l,n}_remove(n){return this._addToRemovals(this._unlink(n))}_unlink(n){null!==this._linkedRecords&&this._linkedRecords.remove(n);const o=n._prev,l=n._next;return null===o?this._itHead=l:o._next=l,null===l?this._itTail=o:l._prev=o,n}_addToMoves(n,o){return n.previousIndex===o||(this._movesTail=null===this._movesTail?this._movesHead=n:this._movesTail._nextMoved=n),n}_addToRemovals(n){return null===this._unlinkedRecords&&(this._unlinkedRecords=new Q_),this._unlinkedRecords.put(n),n.currentIndex=null,n._nextRemoved=null,null===this._removalsTail?(this._removalsTail=this._removalsHead=n,n._prevRemoved=null):(n._prevRemoved=this._removalsTail,this._removalsTail=this._removalsTail._nextRemoved=n),n}_addIdentityChange(n,o){return n.item=o,this._identityChangesTail=null===this._identityChangesTail?this._identityChangesHead=n:this._identityChangesTail._nextIdentityChange=n,n}}class CE{constructor(n,o){this.item=n,this.trackById=o,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 IE{constructor(){this._head=null,this._tail=null}add(n){null===this._head?(this._head=this._tail=n,n._nextDup=null,n._prevDup=null):(this._tail._nextDup=n,n._prevDup=this._tail,n._nextDup=null,this._tail=n)}get(n,o){let l;for(l=this._head;null!==l;l=l._nextDup)if((null===o||o<=l.currentIndex)&&Object.is(l.trackById,n))return l;return null}remove(n){const o=n._prevDup,l=n._nextDup;return null===o?this._head=l:o._nextDup=l,null===l?this._tail=o:l._prevDup=o,null===this._head}}class Q_{constructor(){this.map=new Map}put(n){const o=n.trackById;let l=this.map.get(o);l||(l=new IE,this.map.set(o,l)),l.add(n)}get(n,o){const d=this.map.get(n);return d?d.get(n,o):null}remove(n){const o=n.trackById;return this.map.get(o).remove(n)&&this.map.delete(o),n}get isEmpty(){return 0===this.map.size}clear(){this.map.clear()}}function J_(t,n,o){const l=t.previousIndex;if(null===l)return l;let d=0;return o&&l<o.length&&(d=o[l]),l+n+d}class q_{constructor(){}supports(n){return n instanceof Map||sl(n)}create(){return new DE}}class DE{constructor(){this._records=new Map,this._mapHead=null,this._appendAfter=null,this._previousMapHead=null,this._changesHead=null,this._changesTail=null,this._additionsHead=null,this._additionsTail=null,this._removalsHead=null,this._removalsTail=null}get isDirty(){return null!==this._additionsHead||null!==this._changesHead||null!==this._removalsHead}forEachItem(n){let o;for(o=this._mapHead;null!==o;o=o._next)n(o)}forEachPreviousItem(n){let o;for(o=this._previousMapHead;null!==o;o=o._nextPrevious)n(o)}forEachChangedItem(n){let o;for(o=this._changesHead;null!==o;o=o._nextChanged)n(o)}forEachAddedItem(n){let o;for(o=this._additionsHead;null!==o;o=o._nextAdded)n(o)}forEachRemovedItem(n){let o;for(o=this._removalsHead;null!==o;o=o._nextRemoved)n(o)}diff(n){if(n){if(!(n instanceof Map||sl(n)))throw new Y(900,!1)}else n=new Map;return this.check(n)?this:null}onDestroy(){}check(n){this._reset();let o=this._mapHead;if(this._appendAfter=null,this._forEach(n,(l,d)=>{if(o&&o.key===d)this._maybeAddToChanges(o,l),this._appendAfter=o,o=o._next;else{const p=this._getOrCreateRecordForKey(d,l);o=this._insertBeforeOrAppend(o,p)}}),o){o._prev&&(o._prev._next=null),this._removalsHead=o;for(let l=o;null!==l;l=l._nextRemoved)l===this._mapHead&&(this._mapHead=null),this._records.delete(l.key),l._nextRemoved=l._next,l.previousValue=l.currentValue,l.currentValue=null,l._prev=null,l._next=null}return this._changesTail&&(this._changesTail._nextChanged=null),this._additionsTail&&(this._additionsTail._nextAdded=null),this.isDirty}_insertBeforeOrAppend(n,o){if(n){const l=n._prev;return o._next=n,o._prev=l,n._prev=o,l&&(l._next=o),n===this._mapHead&&(this._mapHead=o),this._appendAfter=n,n}return this._appendAfter?(this._appendAfter._next=o,o._prev=this._appendAfter):this._mapHead=o,this._appendAfter=o,null}_getOrCreateRecordForKey(n,o){if(this._records.has(n)){const d=this._records.get(n);this._maybeAddToChanges(d,o);const p=d._prev,I=d._next;return p&&(p._next=I),I&&(I._prev=p),d._next=null,d._prev=null,d}const l=new xE(n);return this._records.set(n,l),l.currentValue=o,this._addToAdditions(l),l}_reset(){if(this.isDirty){let n;for(this._previousMapHead=this._mapHead,n=this._previousMapHead;null!==n;n=n._next)n._nextPrevious=n._next;for(n=this._changesHead;null!==n;n=n._nextChanged)n.previousValue=n.currentValue;for(n=this._additionsHead;null!=n;n=n._nextAdded)n.previousValue=n.currentValue;this._changesHead=this._changesTail=null,this._additionsHead=this._additionsTail=null,this._removalsHead=null}}_maybeAddToChanges(n,o){Object.is(o,n.currentValue)||(n.previousValue=n.currentValue,n.currentValue=o,this._addToChanges(n))}_addToAdditions(n){null===this._additionsHead?this._additionsHead=this._additionsTail=n:(this._additionsTail._nextAdded=n,this._additionsTail=n)}_addToChanges(n){null===this._changesHead?this._changesHead=this._changesTail=n:(this._changesTail._nextChanged=n,this._changesTail=n)}_forEach(n,o){n instanceof Map?n.forEach(o):Object.keys(n).forEach(l=>o(n[l],l))}}class xE{constructor(n){this.key=n,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 X_(){return new rm([new Z_])}let rm=(()=>{class t{constructor(o){this.factories=o}static create(o,l){if(null!=l){const d=l.factories.slice();o=o.concat(d)}return new t(o)}static extend(o){return{provide:t,useFactory:l=>t.create(o,l||X_()),deps:[[t,new wo,new ro]]}}find(o){const l=this.factories.find(d=>d.supports(o));if(null!=l)return l;throw new Y(901,!1)}}return t.\u0275prov=Ut({token:t,providedIn:"root",factory:X_}),t})();function eb(){return new im([new q_])}let im=(()=>{class t{constructor(o){this.factories=o}static create(o,l){if(l){const d=l.factories.slice();o=o.concat(d)}return new t(o)}static extend(o){return{provide:t,useFactory:l=>t.create(o,l||eb()),deps:[[t,new wo,new ro]]}}find(o){const l=this.factories.find(d=>d.supports(o));if(l)return l;throw new Y(901,!1)}}return t.\u0275prov=Ut({token:t,providedIn:"root",factory:eb}),t})();const PE=k_(null,"core",[]);let ME=(()=>{class t{constructor(o){}}return t.\u0275fac=function(o){return new(o||t)(Et(xh))},t.\u0275mod=Li({type:t}),t.\u0275inj=hn({}),t})();function OE(t){return"boolean"==typeof t?t:null!=t&&"false"!==t}},24006:(Ze,ee,_)=>{"use strict";_.d(ee,{Cf:()=>he,F:()=>tt,Fd:()=>Ao,Fj:()=>q,JJ:()=>zt,JL:()=>je,JU:()=>g,Kr:()=>xo,NI:()=>Ct,On:()=>_r,Q7:()=>Jr,UX:()=>bi,Wl:()=>N,YN:()=>Io,_:()=>Ui,_Y:()=>ar,a5:()=>hn,c5:()=>_i,kI:()=>be,nD:()=>Ji,oH:()=>ji,on:()=>Qi,qQ:()=>Qr,qu:()=>Po,sg:()=>So,u:()=>Yi,u5:()=>Go,wO:()=>Hi,wV:()=>fr});var c=_(55062),b=_(36895),M=_(63527),F=_(30567),O=_(24850);let w=(()=>{class te{constructor(z,Te){this._renderer=z,this._elementRef=Te,this.onChange=st=>{},this.onTouched=()=>{}}setProperty(z,Te){this._renderer.setProperty(this._elementRef.nativeElement,z,Te)}registerOnTouched(z){this.onTouched=z}registerOnChange(z){this.onChange=z}setDisabledState(z){this.setProperty("disabled",z)}}return te.\u0275fac=function(z){return new(z||te)(c.Y36(c.Qsj),c.Y36(c.SBq))},te.\u0275dir=c.lG2({type:te}),te})(),y=(()=>{class te extends w{}return te.\u0275fac=function(){let Z;return function(Te){return(Z||(Z=c.n5z(te)))(Te||te)}}(),te.\u0275dir=c.lG2({type:te,features:[c.qOj]}),te})();const g=new c.OlP("NgValueAccessor"),x={provide:g,useExisting:(0,c.Gpc)(()=>N),multi:!0};let N=(()=>{class te extends y{writeValue(z){this.setProperty("checked",z)}}return te.\u0275fac=function(){let Z;return function(Te){return(Z||(Z=c.n5z(te)))(Te||te)}}(),te.\u0275dir=c.lG2({type:te,selectors:[["input","type","checkbox","formControlName",""],["input","type","checkbox","formControl",""],["input","type","checkbox","ngModel",""]],hostBindings:function(z,Te){1&z&&c.NdJ("change",function(en){return Te.onChange(en.target.checked)})("blur",function(){return Te.onTouched()})},features:[c._Bn([x]),c.qOj]}),te})();const T={provide:g,useExisting:(0,c.Gpc)(()=>q),multi:!0},B=new c.OlP("CompositionEventMode");let q=(()=>{class te extends w{constructor(z,Te,st){super(z,Te),this._compositionMode=st,this._composing=!1,null==this._compositionMode&&(this._compositionMode=!function V(){const te=(0,b.q)()?(0,b.q)().getUserAgent():"";return/android (\d+)/.test(te.toLowerCase())}())}writeValue(z){this.setProperty("value",z??"")}_handleInput(z){(!this._compositionMode||this._compositionMode&&!this._composing)&&this.onChange(z)}_compositionStart(){this._composing=!0}_compositionEnd(z){this._composing=!1,this._compositionMode&&this.onChange(z)}}return te.\u0275fac=function(z){return new(z||te)(c.Y36(c.Qsj),c.Y36(c.SBq),c.Y36(B,8))},te.\u0275dir=c.lG2({type:te,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(z,Te){1&z&&c.NdJ("input",function(en){return Te._handleInput(en.target.value)})("blur",function(){return Te.onTouched()})("compositionstart",function(){return Te._compositionStart()})("compositionend",function(en){return Te._compositionEnd(en.target.value)})},features:[c._Bn([T]),c.qOj]}),te})();const de=!1;function se(te){return null==te||("string"==typeof te||Array.isArray(te))&&0===te.length}function De(te){return null!=te&&"number"==typeof te.length}const he=new c.OlP("NgValidators"),xe=new c.OlP("NgAsyncValidators"),Me=/^(?=.{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 be{static min(Z){return Y(Z)}static max(Z){return Be(Z)}static required(Z){return le(Z)}static requiredTrue(Z){return function R(te){return!0===te.value?null:{required:!0}}(Z)}static email(Z){return U(Z)}static minLength(Z){return W(Z)}static maxLength(Z){return oe(Z)}static pattern(Z){return ge(Z)}static nullValidator(Z){return null}static compose(Z){return ve(Z)}static composeAsync(Z){return Ie(Z)}}function Y(te){return Z=>{if(se(Z.value)||se(te))return null;const z=parseFloat(Z.value);return!isNaN(z)&&z<te?{min:{min:te,actual:Z.value}}:null}}function Be(te){return Z=>{if(se(Z.value)||se(te))return null;const z=parseFloat(Z.value);return!isNaN(z)&&z>te?{max:{max:te,actual:Z.value}}:null}}function le(te){return se(te.value)?{required:!0}:null}function U(te){return se(te.value)||Me.test(te.value)?null:{email:!0}}function W(te){return Z=>se(Z.value)||!De(Z.value)?null:Z.value.length<te?{minlength:{requiredLength:te,actualLength:Z.value.length}}:null}function oe(te){return Z=>De(Z.value)&&Z.value.length>te?{maxlength:{requiredLength:te,actualLength:Z.value.length}}:null}function ge(te){if(!te)return Q;let Z,z;return"string"==typeof te?(z="","^"!==te.charAt(0)&&(z+="^"),z+=te,"$"!==te.charAt(te.length-1)&&(z+="$"),Z=new RegExp(z)):(z=te.toString(),Z=te),Te=>{if(se(Te.value))return null;const st=Te.value;return Z.test(st)?null:{pattern:{requiredPattern:z,actualValue:st}}}}function Q(te){return null}function ye(te){return null!=te}function Le(te){const Z=(0,c.QGY)(te)?(0,M.D)(te):te;if(de&&!(0,c.CqO)(Z)){let z="Expected async validator to return Promise or Observable.";throw"object"==typeof te&&(z+=" Are you using a synchronous validator where an async validator is expected?"),new c.vHH(-1101,z)}return Z}function Ye(te){let Z={};return te.forEach(z=>{Z=null!=z?{...Z,...z}:Z}),0===Object.keys(Z).length?null:Z}function we(te,Z){return Z.map(z=>z(te))}function ke(te){return te.map(Z=>function Ge(te){return!te.validate}(Z)?Z:z=>Z.validate(z))}function ve(te){if(!te)return null;const Z=te.filter(ye);return 0==Z.length?null:function(z){return Ye(we(z,Z))}}function ze(te){return null!=te?ve(ke(te)):null}function Ie(te){if(!te)return null;const Z=te.filter(ye);return 0==Z.length?null:function(z){const Te=we(z,Z).map(Le);return(0,F.D)(Te).pipe((0,O.U)(Ye))}}function ft(te){return null!=te?Ie(ke(te)):null}function pt(te,Z){return null===te?[Z]:Array.isArray(te)?[...te,Z]:[te,Z]}function mt(te){return te._rawValidators}function yt(te){return te._rawAsyncValidators}function Pt(te){return te?Array.isArray(te)?te:[te]:[]}function Zt(te,Z){return Array.isArray(te)?te.includes(Z):te===Z}function nn(te,Z){const z=Pt(Z);return Pt(te).forEach(st=>{Zt(z,st)||z.push(st)}),z}function qt(te,Z){return Pt(Z).filter(z=>!Zt(te,z))}class Ut{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(Z){this._rawValidators=Z||[],this._composedValidatorFn=ze(this._rawValidators)}_setAsyncValidators(Z){this._rawAsyncValidators=Z||[],this._composedAsyncValidatorFn=ft(this._rawAsyncValidators)}get validator(){return this._composedValidatorFn||null}get asyncValidator(){return this._composedAsyncValidatorFn||null}_registerOnDestroy(Z){this._onDestroyCallbacks.push(Z)}_invokeOnDestroyCallbacks(){this._onDestroyCallbacks.forEach(Z=>Z()),this._onDestroyCallbacks=[]}reset(Z){this.control&&this.control.reset(Z)}hasError(Z,z){return!!this.control&&this.control.hasError(Z,z)}getError(Z,z){return this.control?this.control.getError(Z,z):null}}class jt extends Ut{get formDirective(){return null}get path(){return null}}class hn extends Ut{constructor(){super(...arguments),this._parent=null,this.name=null,this.valueAccessor=null}}class xn{constructor(Z){this._cd=Z}get isTouched(){return!!this._cd?.control?.touched}get isUntouched(){return!!this._cd?.control?.untouched}get isPristine(){return!!this._cd?.control?.pristine}get isDirty(){return!!this._cd?.control?.dirty}get isValid(){return!!this._cd?.control?.valid}get isInvalid(){return!!this._cd?.control?.invalid}get isPending(){return!!this._cd?.control?.pending}get isSubmitted(){return!!this._cd?.submitted}}let zt=(()=>{class te extends xn{constructor(z){super(z)}}return te.\u0275fac=function(z){return new(z||te)(c.Y36(hn,2))},te.\u0275dir=c.lG2({type:te,selectors:[["","formControlName",""],["","ngModel",""],["","formControl",""]],hostVars:14,hostBindings:function(z,Te){2&z&&c.ekj("ng-untouched",Te.isUntouched)("ng-touched",Te.isTouched)("ng-pristine",Te.isPristine)("ng-dirty",Te.isDirty)("ng-valid",Te.isValid)("ng-invalid",Te.isInvalid)("ng-pending",Te.isPending)},features:[c.qOj]}),te})(),je=(()=>{class te extends xn{constructor(z){super(z)}}return te.\u0275fac=function(z){return new(z||te)(c.Y36(jt,10))},te.\u0275dir=c.lG2({type:te,selectors:[["","formGroupName",""],["","formArrayName",""],["","ngModelGroup",""],["","formGroup",""],["form",3,"ngNoForm",""],["","ngForm",""]],hostVars:16,hostBindings:function(z,Te){2&z&&c.ekj("ng-untouched",Te.isUntouched)("ng-touched",Te.isTouched)("ng-pristine",Te.isPristine)("ng-dirty",Te.isDirty)("ng-valid",Te.isValid)("ng-invalid",Te.isInvalid)("ng-pending",Te.isPending)("ng-submitted",Te.isSubmitted)},features:[c.qOj]}),te})();function Gn(te,Z){return te?`with name: '${Z}'`:`at index: ${Z}`}const Cn=!1,nr="VALID",er="INVALID",or="PENDING",Vn="DISABLED";function ct(te){return(St(te)?te.validators:te)||null}function et(te,Z){return(St(Z)?Z.asyncValidators:te)||null}function St(te){return null!=te&&!Array.isArray(te)&&"object"==typeof te}function Xt(te,Z,z){const Te=te.controls;if(!(Z?Object.keys(Te):Te).length)throw new c.vHH(1e3,Cn?function wr(te){return`\n There are no form controls registered with this ${te?"group":"array"} yet. If you're using ngModel,\n you may want to check next tick (e.g. use setTimeout).\n `}(Z):"");if(!Te[z])throw new c.vHH(1001,Cn?function On(te,Z){return`Cannot find form control ${Gn(te,Z)}`}(Z,z):"")}function vn(te,Z,z){te._forEachChild((Te,st)=>{if(void 0===z[st])throw new c.vHH(1002,Cn?function Dr(te,Z){return`Must supply a value for form control ${Gn(te,Z)}`}(Z,st):"")})}class Pn{constructor(Z,z){this._pendingDirty=!1,this._hasOwnPendingAsyncValidator=!1,this._pendingTouched=!1,this._onCollectionChange=()=>{},this._parent=null,this.pristine=!0,this.touched=!1,this._onDisabledChange=[],this._assignValidators(Z),this._assignAsyncValidators(z)}get validator(){return this._composedValidatorFn}set validator(Z){this._rawValidators=this._composedValidatorFn=Z}get asyncValidator(){return this._composedAsyncValidatorFn}set asyncValidator(Z){this._rawAsyncValidators=this._composedAsyncValidatorFn=Z}get parent(){return this._parent}get valid(){return this.status===nr}get invalid(){return this.status===er}get pending(){return this.status==or}get disabled(){return this.status===Vn}get enabled(){return this.status!==Vn}get dirty(){return!this.pristine}get untouched(){return!this.touched}get updateOn(){return this._updateOn?this._updateOn:this.parent?this.parent.updateOn:"change"}setValidators(Z){this._assignValidators(Z)}setAsyncValidators(Z){this._assignAsyncValidators(Z)}addValidators(Z){this.setValidators(nn(Z,this._rawValidators))}addAsyncValidators(Z){this.setAsyncValidators(nn(Z,this._rawAsyncValidators))}removeValidators(Z){this.setValidators(qt(Z,this._rawValidators))}removeAsyncValidators(Z){this.setAsyncValidators(qt(Z,this._rawAsyncValidators))}hasValidator(Z){return Zt(this._rawValidators,Z)}hasAsyncValidator(Z){return Zt(this._rawAsyncValidators,Z)}clearValidators(){this.validator=null}clearAsyncValidators(){this.asyncValidator=null}markAsTouched(Z={}){this.touched=!0,this._parent&&!Z.onlySelf&&this._parent.markAsTouched(Z)}markAllAsTouched(){this.markAsTouched({onlySelf:!0}),this._forEachChild(Z=>Z.markAllAsTouched())}markAsUntouched(Z={}){this.touched=!1,this._pendingTouched=!1,this._forEachChild(z=>{z.markAsUntouched({onlySelf:!0})}),this._parent&&!Z.onlySelf&&this._parent._updateTouched(Z)}markAsDirty(Z={}){this.pristine=!1,this._parent&&!Z.onlySelf&&this._parent.markAsDirty(Z)}markAsPristine(Z={}){this.pristine=!0,this._pendingDirty=!1,this._forEachChild(z=>{z.markAsPristine({onlySelf:!0})}),this._parent&&!Z.onlySelf&&this._parent._updatePristine(Z)}markAsPending(Z={}){this.status=or,!1!==Z.emitEvent&&this.statusChanges.emit(this.status),this._parent&&!Z.onlySelf&&this._parent.markAsPending(Z)}disable(Z={}){const z=this._parentMarkedDirty(Z.onlySelf);this.status=Vn,this.errors=null,this._forEachChild(Te=>{Te.disable({...Z,onlySelf:!0})}),this._updateValue(),!1!==Z.emitEvent&&(this.valueChanges.emit(this.value),this.statusChanges.emit(this.status)),this._updateAncestors({...Z,skipPristineCheck:z}),this._onDisabledChange.forEach(Te=>Te(!0))}enable(Z={}){const z=this._parentMarkedDirty(Z.onlySelf);this.status=nr,this._forEachChild(Te=>{Te.enable({...Z,onlySelf:!0})}),this.updateValueAndValidity({onlySelf:!0,emitEvent:Z.emitEvent}),this._updateAncestors({...Z,skipPristineCheck:z}),this._onDisabledChange.forEach(Te=>Te(!1))}_updateAncestors(Z){this._parent&&!Z.onlySelf&&(this._parent.updateValueAndValidity(Z),Z.skipPristineCheck||this._parent._updatePristine(),this._parent._updateTouched())}setParent(Z){this._parent=Z}getRawValue(){return this.value}updateValueAndValidity(Z={}){this._setInitialStatus(),this._updateValue(),this.enabled&&(this._cancelExistingSubscription(),this.errors=this._runValidator(),this.status=this._calculateStatus(),(this.status===nr||this.status===or)&&this._runAsyncValidator(Z.emitEvent)),!1!==Z.emitEvent&&(this.valueChanges.emit(this.value),this.statusChanges.emit(this.status)),this._parent&&!Z.onlySelf&&this._parent.updateValueAndValidity(Z)}_updateTreeValidity(Z={emitEvent:!0}){this._forEachChild(z=>z._updateTreeValidity(Z)),this.updateValueAndValidity({onlySelf:!0,emitEvent:Z.emitEvent})}_setInitialStatus(){this.status=this._allControlsDisabled()?Vn:nr}_runValidator(){return this.validator?this.validator(this):null}_runAsyncValidator(Z){if(this.asyncValidator){this.status=or,this._hasOwnPendingAsyncValidator=!0;const z=Le(this.asyncValidator(this));this._asyncValidationSubscription=z.subscribe(Te=>{this._hasOwnPendingAsyncValidator=!1,this.setErrors(Te,{emitEvent:Z})})}}_cancelExistingSubscription(){this._asyncValidationSubscription&&(this._asyncValidationSubscription.unsubscribe(),this._hasOwnPendingAsyncValidator=!1)}setErrors(Z,z={}){this.errors=Z,this._updateControlsErrors(!1!==z.emitEvent)}get(Z){let z=Z;return null==z||(Array.isArray(z)||(z=z.split(".")),0===z.length)?null:z.reduce((Te,st)=>Te&&Te._find(st),this)}getError(Z,z){const Te=z?this.get(z):this;return Te&&Te.errors?Te.errors[Z]:null}hasError(Z,z){return!!this.getError(Z,z)}get root(){let Z=this;for(;Z._parent;)Z=Z._parent;return Z}_updateControlsErrors(Z){this.status=this._calculateStatus(),Z&&this.statusChanges.emit(this.status),this._parent&&this._parent._updateControlsErrors(Z)}_initObservables(){this.valueChanges=new c.vpe,this.statusChanges=new c.vpe}_calculateStatus(){return this._allControlsDisabled()?Vn:this.errors?er:this._hasOwnPendingAsyncValidator||this._anyControlsHaveStatus(or)?or:this._anyControlsHaveStatus(er)?er:nr}_anyControlsHaveStatus(Z){return this._anyControls(z=>z.status===Z)}_anyControlsDirty(){return this._anyControls(Z=>Z.dirty)}_anyControlsTouched(){return this._anyControls(Z=>Z.touched)}_updatePristine(Z={}){this.pristine=!this._anyControlsDirty(),this._parent&&!Z.onlySelf&&this._parent._updatePristine(Z)}_updateTouched(Z={}){this.touched=this._anyControlsTouched(),this._parent&&!Z.onlySelf&&this._parent._updateTouched(Z)}_registerOnCollectionChange(Z){this._onCollectionChange=Z}_setUpdateStrategy(Z){St(Z)&&null!=Z.updateOn&&(this._updateOn=Z.updateOn)}_parentMarkedDirty(Z){return!Z&&!(!this._parent||!this._parent.dirty)&&!this._parent._anyControlsDirty()}_find(Z){return null}_assignValidators(Z){this._rawValidators=Array.isArray(Z)?Z.slice():Z,this._composedValidatorFn=function qe(te){return Array.isArray(te)?ze(te):te||null}(this._rawValidators)}_assignAsyncValidators(Z){this._rawAsyncValidators=Array.isArray(Z)?Z.slice():Z,this._composedAsyncValidatorFn=function Et(te){return Array.isArray(te)?ft(te):te||null}(this._rawAsyncValidators)}}class rn extends Pn{constructor(Z,z,Te){super(ct(z),et(Te,z)),this.controls=Z,this._initObservables(),this._setUpdateStrategy(z),this._setUpControls(),this.updateValueAndValidity({onlySelf:!0,emitEvent:!!this.asyncValidator})}registerControl(Z,z){return this.controls[Z]?this.controls[Z]:(this.controls[Z]=z,z.setParent(this),z._registerOnCollectionChange(this._onCollectionChange),z)}addControl(Z,z,Te={}){this.registerControl(Z,z),this.updateValueAndValidity({emitEvent:Te.emitEvent}),this._onCollectionChange()}removeControl(Z,z={}){this.controls[Z]&&this.controls[Z]._registerOnCollectionChange(()=>{}),delete this.controls[Z],this.updateValueAndValidity({emitEvent:z.emitEvent}),this._onCollectionChange()}setControl(Z,z,Te={}){this.controls[Z]&&this.controls[Z]._registerOnCollectionChange(()=>{}),delete this.controls[Z],z&&this.registerControl(Z,z),this.updateValueAndValidity({emitEvent:Te.emitEvent}),this._onCollectionChange()}contains(Z){return this.controls.hasOwnProperty(Z)&&this.controls[Z].enabled}setValue(Z,z={}){vn(this,!0,Z),Object.keys(Z).forEach(Te=>{Xt(this,!0,Te),this.controls[Te].setValue(Z[Te],{onlySelf:!0,emitEvent:z.emitEvent})}),this.updateValueAndValidity(z)}patchValue(Z,z={}){null!=Z&&(Object.keys(Z).forEach(Te=>{const st=this.controls[Te];st&&st.patchValue(Z[Te],{onlySelf:!0,emitEvent:z.emitEvent})}),this.updateValueAndValidity(z))}reset(Z={},z={}){this._forEachChild((Te,st)=>{Te.reset(Z[st],{onlySelf:!0,emitEvent:z.emitEvent})}),this._updatePristine(z),this._updateTouched(z),this.updateValueAndValidity(z)}getRawValue(){return this._reduceChildren({},(Z,z,Te)=>(Z[Te]=z.getRawValue(),Z))}_syncPendingControls(){let Z=this._reduceChildren(!1,(z,Te)=>!!Te._syncPendingControls()||z);return Z&&this.updateValueAndValidity({onlySelf:!0}),Z}_forEachChild(Z){Object.keys(this.controls).forEach(z=>{const Te=this.controls[z];Te&&Z(Te,z)})}_setUpControls(){this._forEachChild(Z=>{Z.setParent(this),Z._registerOnCollectionChange(this._onCollectionChange)})}_updateValue(){this.value=this._reduceValue()}_anyControls(Z){for(const[z,Te]of Object.entries(this.controls))if(this.contains(z)&&Z(Te))return!0;return!1}_reduceValue(){return this._reduceChildren({},(z,Te,st)=>((Te.enabled||this.disabled)&&(z[st]=Te.value),z))}_reduceChildren(Z,z){let Te=Z;return this._forEachChild((st,en)=>{Te=z(Te,st,en)}),Te}_allControlsDisabled(){for(const Z of Object.keys(this.controls))if(this.controls[Z].enabled)return!1;return Object.keys(this.controls).length>0||this.disabled}_find(Z){return this.controls.hasOwnProperty(Z)?this.controls[Z]:null}}class Pe extends rn{}const J=new c.OlP("CallSetDisabledState",{providedIn:"root",factory:()=>ue}),ue="always";function Je(te,Z){return[...Z.path,te]}function nt(te,Z,z=ue){Vt(te,Z),Z.valueAccessor.writeValue(te.value),(te.disabled||"always"===z)&&Z.valueAccessor.setDisabledState?.(te.disabled),function $n(te,Z){Z.valueAccessor.registerOnChange(z=>{te._pendingValue=z,te._pendingChange=!0,te._pendingDirty=!0,"change"===te.updateOn&&xr(te,Z)})}(te,Z),function Di(te,Z){const z=(Te,st)=>{Z.valueAccessor.writeValue(Te),st&&Z.viewToModelUpdate(Te)};te.registerOnChange(z),Z._registerOnDestroy(()=>{te._unregisterOnChange(z)})}(te,Z),function sr(te,Z){Z.valueAccessor.registerOnTouched(()=>{te._pendingTouched=!0,"blur"===te.updateOn&&te._pendingChange&&xr(te,Z),"submit"!==te.updateOn&&te.markAsTouched()})}(te,Z),function kt(te,Z){if(Z.valueAccessor.setDisabledState){const z=Te=>{Z.valueAccessor.setDisabledState(Te)};te.registerOnDisabledChange(z),Z._registerOnDestroy(()=>{te._unregisterOnDisabledChange(z)})}}(te,Z)}function _t(te,Z,z=!0){const Te=()=>{};Z.valueAccessor&&(Z.valueAccessor.registerOnChange(Te),Z.valueAccessor.registerOnTouched(Te)),_n(te,Z),te&&(Z._invokeOnDestroyCallbacks(),te._registerOnCollectionChange(()=>{}))}function At(te,Z){te.forEach(z=>{z.registerOnValidatorChange&&z.registerOnValidatorChange(Z)})}function Vt(te,Z){const z=mt(te);null!==Z.validator?te.setValidators(pt(z,Z.validator)):"function"==typeof z&&te.setValidators([z]);const Te=yt(te);null!==Z.asyncValidator?te.setAsyncValidators(pt(Te,Z.asyncValidator)):"function"==typeof Te&&te.setAsyncValidators([Te]);const st=()=>te.updateValueAndValidity();At(Z._rawValidators,st),At(Z._rawAsyncValidators,st)}function _n(te,Z){let z=!1;if(null!==te){if(null!==Z.validator){const st=mt(te);if(Array.isArray(st)&&st.length>0){const en=st.filter(qn=>qn!==Z.validator);en.length!==st.length&&(z=!0,te.setValidators(en))}}if(null!==Z.asyncValidator){const st=yt(te);if(Array.isArray(st)&&st.length>0){const en=st.filter(qn=>qn!==Z.asyncValidator);en.length!==st.length&&(z=!0,te.setAsyncValidators(en))}}}const Te=()=>{};return At(Z._rawValidators,Te),At(Z._rawAsyncValidators,Te),z}function xr(te,Z){te._pendingDirty&&te.markAsDirty(),te.setValue(te._pendingValue,{emitModelToViewChange:!1}),Z.viewToModelUpdate(te._pendingValue),te._pendingChange=!1}function Er(te,Z){Vt(te,Z)}function kn(te,Z){if(!te.hasOwnProperty("model"))return!1;const z=te.model;return!!z.isFirstChange()||!Object.is(Z,z.currentValue)}function _e(te,Z){te._syncPendingControls(),Z.forEach(z=>{const Te=z.control;"submit"===Te.updateOn&&Te._pendingChange&&(z.viewToModelUpdate(Te._pendingValue),Te._pendingChange=!1)})}function Ce(te,Z){if(!Z)return null;let z,Te,st;return Array.isArray(Z),Z.forEach(en=>{en.constructor===q?z=en:function Ve(te){return Object.getPrototypeOf(te.constructor)===y}(en)?Te=en:st=en}),st||Te||z||null}const Oe={provide:jt,useExisting:(0,c.Gpc)(()=>tt)},Qe=(()=>Promise.resolve())();let tt=(()=>{class te extends jt{constructor(z,Te,st){super(),this.callSetDisabledState=st,this.submitted=!1,this._directives=new Set,this.ngSubmit=new c.vpe,this.form=new rn({},ze(z),ft(Te))}ngAfterViewInit(){this._setUpdateStrategy()}get formDirective(){return this}get control(){return this.form}get path(){return[]}get controls(){return this.form.controls}addControl(z){Qe.then(()=>{const Te=this._findContainer(z.path);z.control=Te.registerControl(z.name,z.control),nt(z.control,z,this.callSetDisabledState),z.control.updateValueAndValidity({emitEvent:!1}),this._directives.add(z)})}getControl(z){return this.form.get(z.path)}removeControl(z){Qe.then(()=>{const Te=this._findContainer(z.path);Te&&Te.removeControl(z.name),this._directives.delete(z)})}addFormGroup(z){Qe.then(()=>{const Te=this._findContainer(z.path),st=new rn({});Er(st,z),Te.registerControl(z.name,st),st.updateValueAndValidity({emitEvent:!1})})}removeFormGroup(z){Qe.then(()=>{const Te=this._findContainer(z.path);Te&&Te.removeControl(z.name)})}getFormGroup(z){return this.form.get(z.path)}updateModel(z,Te){Qe.then(()=>{this.form.get(z.path).setValue(Te)})}setValue(z){this.control.setValue(z)}onSubmit(z){return this.submitted=!0,_e(this.form,this._directives),this.ngSubmit.emit(z),"dialog"===z?.target?.method}onReset(){this.resetForm()}resetForm(z){this.form.reset(z),this.submitted=!1}_setUpdateStrategy(){this.options&&null!=this.options.updateOn&&(this.form._updateOn=this.options.updateOn)}_findContainer(z){return z.pop(),z.length?this.form.get(z):this.form}}return te.\u0275fac=function(z){return new(z||te)(c.Y36(he,10),c.Y36(xe,10),c.Y36(J,8))},te.\u0275dir=c.lG2({type:te,selectors:[["form",3,"ngNoForm","",3,"formGroup",""],["ng-form"],["","ngForm",""]],hostBindings:function(z,Te){1&z&&c.NdJ("submit",function(en){return Te.onSubmit(en)})("reset",function(){return Te.onReset()})},inputs:{options:["ngFormOptions","options"]},outputs:{ngSubmit:"ngSubmit"},exportAs:["ngForm"],features:[c._Bn([Oe]),c.qOj]}),te})();function Xe(te,Z){const z=te.indexOf(Z);z>-1&&te.splice(z,1)}function wt(te){return"object"==typeof te&&null!==te&&2===Object.keys(te).length&&"value"in te&&"disabled"in te}const Ct=class extends Pn{constructor(Z=null,z,Te){super(ct(z),et(Te,z)),this.defaultValue=null,this._onChange=[],this._pendingChange=!1,this._applyFormState(Z),this._setUpdateStrategy(z),this._initObservables(),this.updateValueAndValidity({onlySelf:!0,emitEvent:!!this.asyncValidator}),St(z)&&(z.nonNullable||z.initialValueIsDefault)&&(this.defaultValue=wt(Z)?Z.value:Z)}setValue(Z,z={}){this.value=this._pendingValue=Z,this._onChange.length&&!1!==z.emitModelToViewChange&&this._onChange.forEach(Te=>Te(this.value,!1!==z.emitViewToModelChange)),this.updateValueAndValidity(z)}patchValue(Z,z={}){this.setValue(Z,z)}reset(Z=this.defaultValue,z={}){this._applyFormState(Z),this.markAsPristine(z),this.markAsUntouched(z),this.setValue(this.value,z),this._pendingChange=!1}_updateValue(){}_anyControls(Z){return!1}_allControlsDisabled(){return this.disabled}registerOnChange(Z){this._onChange.push(Z)}_unregisterOnChange(Z){Xe(this._onChange,Z)}registerOnDisabledChange(Z){this._onDisabledChange.push(Z)}_unregisterOnDisabledChange(Z){Xe(this._onDisabledChange,Z)}_forEachChild(Z){}_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(Z){wt(Z)?(this.value=this._pendingValue=Z.value,Z.disabled?this.disable({onlySelf:!0,emitEvent:!1}):this.enable({onlySelf:!0,emitEvent:!1})):this.value=this._pendingValue=Z}},vr={provide:hn,useExisting:(0,c.Gpc)(()=>_r)},Lr=(()=>Promise.resolve())();let _r=(()=>{class te extends hn{constructor(z,Te,st,en,qn,Fn){super(),this._changeDetectorRef=qn,this.callSetDisabledState=Fn,this.control=new Ct,this._registered=!1,this.update=new c.vpe,this._parent=z,this._setValidators(Te),this._setAsyncValidators(st),this.valueAccessor=Ce(0,en)}ngOnChanges(z){if(this._checkForErrors(),!this._registered||"name"in z){if(this._registered&&(this._checkName(),this.formDirective)){const Te=z.name.previousValue;this.formDirective.removeControl({name:Te,path:this._getPath(Te)})}this._setUpControl()}"isDisabled"in z&&this._updateDisabled(z),kn(z,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(z){this.viewModel=z,this.update.emit(z)}_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(){nt(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(z){Lr.then(()=>{this.control.setValue(z,{emitViewToModelChange:!1}),this._changeDetectorRef?.markForCheck()})}_updateDisabled(z){const Te=z.isDisabled.currentValue,st=0!==Te&&(0,c.D6c)(Te);Lr.then(()=>{st&&!this.control.disabled?this.control.disable():!st&&this.control.disabled&&this.control.enable(),this._changeDetectorRef?.markForCheck()})}_getPath(z){return this._parent?Je(z,this._parent):[z]}}return te.\u0275fac=function(z){return new(z||te)(c.Y36(jt,9),c.Y36(he,10),c.Y36(xe,10),c.Y36(g,10),c.Y36(c.sBO,8),c.Y36(J,8))},te.\u0275dir=c.lG2({type:te,selectors:[["","ngModel","",3,"formControlName","",3,"formControl",""]],inputs:{name:"name",isDisabled:["disabled","isDisabled"],model:["ngModel","model"],options:["ngModelOptions","options"]},outputs:{update:"ngModelChange"},exportAs:["ngModel"],features:[c._Bn([vr]),c.qOj,c.TTD]}),te})(),ar=(()=>{class te{}return te.\u0275fac=function(z){return new(z||te)},te.\u0275dir=c.lG2({type:te,selectors:[["form",3,"ngNoForm","",3,"ngNativeValidate",""]],hostAttrs:["novalidate",""]}),te})();const Jn={provide:g,useExisting:(0,c.Gpc)(()=>fr),multi:!0};let fr=(()=>{class te extends y{writeValue(z){this.setProperty("value",z??"")}registerOnChange(z){this.onChange=Te=>{z(""==Te?null:parseFloat(Te))}}}return te.\u0275fac=function(){let Z;return function(Te){return(Z||(Z=c.n5z(te)))(Te||te)}}(),te.\u0275dir=c.lG2({type:te,selectors:[["input","type","number","formControlName",""],["input","type","number","formControl",""],["input","type","number","ngModel",""]],hostBindings:function(z,Te){1&z&&c.NdJ("input",function(en){return Te.onChange(en.target.value)})("blur",function(){return Te.onTouched()})},features:[c._Bn([Jn]),c.qOj]}),te})();const Ur={provide:g,useExisting:(0,c.Gpc)(()=>Ui),multi:!0};let Ai=(()=>{class te{}return te.\u0275fac=function(z){return new(z||te)},te.\u0275mod=c.oAB({type:te}),te.\u0275inj=c.cJS({}),te})(),Ln=(()=>{class te{constructor(){this._accessors=[]}add(z,Te){this._accessors.push([z,Te])}remove(z){for(let Te=this._accessors.length-1;Te>=0;--Te)if(this._accessors[Te][1]===z)return void this._accessors.splice(Te,1)}select(z){this._accessors.forEach(Te=>{this._isSameGroup(Te,z)&&Te[1]!==z&&Te[1].fireUncheck(z.value)})}_isSameGroup(z,Te){return!!z[0].control&&z[0]._parent===Te._control._parent&&z[1].name===Te.name}}return te.\u0275fac=function(z){return new(z||te)},te.\u0275prov=c.Yz7({token:te,factory:te.\u0275fac,providedIn:Ai}),te})(),Ui=(()=>{class te extends y{constructor(z,Te,st,en){super(z,Te),this._registry=st,this._injector=en,this.setDisabledStateFired=!1,this.onChange=()=>{},this.callSetDisabledState=(0,c.f3M)(J,{optional:!0})??ue}ngOnInit(){this._control=this._injector.get(hn),this._checkName(),this._registry.add(this._control,this)}ngOnDestroy(){this._registry.remove(this)}writeValue(z){this._state=z===this.value,this.setProperty("checked",this._state)}registerOnChange(z){this._fn=z,this.onChange=()=>{z(this.value),this._registry.select(this)}}setDisabledState(z){(this.setDisabledStateFired||z||"whenDisabledForLegacyCode"===this.callSetDisabledState)&&this.setProperty("disabled",z),this.setDisabledStateFired=!0}fireUncheck(z){this.writeValue(z)}_checkName(){!this.name&&this.formControlName&&(this.name=this.formControlName)}}return te.\u0275fac=function(z){return new(z||te)(c.Y36(c.Qsj),c.Y36(c.SBq),c.Y36(Ln),c.Y36(c.zs3))},te.\u0275dir=c.lG2({type:te,selectors:[["input","type","radio","formControlName",""],["input","type","radio","formControl",""],["input","type","radio","ngModel",""]],hostBindings:function(z,Te){1&z&&c.NdJ("change",function(){return Te.onChange()})("blur",function(){return Te.onTouched()})},inputs:{name:"name",formControlName:"formControlName",value:"value"},features:[c._Bn([Ur]),c.qOj]}),te})();const ki=new c.OlP("NgModelWithFormControlWarning"),Eo={provide:hn,useExisting:(0,c.Gpc)(()=>ji)};let ji=(()=>{class te extends hn{set isDisabled(z){}constructor(z,Te,st,en,qn){super(),this._ngModelWarningConfig=en,this.callSetDisabledState=qn,this.update=new c.vpe,this._ngModelWarningSent=!1,this._setValidators(z),this._setAsyncValidators(Te),this.valueAccessor=Ce(0,st)}ngOnChanges(z){if(this._isControlChanged(z)){const Te=z.form.previousValue;Te&&_t(Te,this,!1),nt(this.form,this,this.callSetDisabledState),this.form.updateValueAndValidity({emitEvent:!1})}kn(z,this.viewModel)&&(this.form.setValue(this.model),this.viewModel=this.model)}ngOnDestroy(){this.form&&_t(this.form,this,!1)}get path(){return[]}get control(){return this.form}viewToModelUpdate(z){this.viewModel=z,this.update.emit(z)}_isControlChanged(z){return z.hasOwnProperty("form")}}return te._ngModelWarningSentOnce=!1,te.\u0275fac=function(z){return new(z||te)(c.Y36(he,10),c.Y36(xe,10),c.Y36(g,10),c.Y36(ki,8),c.Y36(J,8))},te.\u0275dir=c.lG2({type:te,selectors:[["","formControl",""]],inputs:{form:["formControl","form"],isDisabled:["disabled","isDisabled"],model:["ngModel","model"]},outputs:{update:"ngModelChange"},exportAs:["ngForm"],features:[c._Bn([Eo]),c.qOj,c.TTD]}),te})();const Ar={provide:jt,useExisting:(0,c.Gpc)(()=>So)};let So=(()=>{class te extends jt{constructor(z,Te,st){super(),this.callSetDisabledState=st,this.submitted=!1,this._onCollectionChange=()=>this._updateDomValue(),this.directives=[],this.form=null,this.ngSubmit=new c.vpe,this._setValidators(z),this._setAsyncValidators(Te)}ngOnChanges(z){this._checkFormPresent(),z.hasOwnProperty("form")&&(this._updateValidators(),this._updateDomValue(),this._updateRegistrations(),this._oldForm=this.form)}ngOnDestroy(){this.form&&(_n(this.form,this),this.form._onCollectionChange===this._onCollectionChange&&this.form._registerOnCollectionChange(()=>{}))}get formDirective(){return this}get control(){return this.form}get path(){return[]}addControl(z){const Te=this.form.get(z.path);return nt(Te,z,this.callSetDisabledState),Te.updateValueAndValidity({emitEvent:!1}),this.directives.push(z),Te}getControl(z){return this.form.get(z.path)}removeControl(z){_t(z.control||null,z,!1),function ce(te,Z){const z=te.indexOf(Z);z>-1&&te.splice(z,1)}(this.directives,z)}addFormGroup(z){this._setUpFormContainer(z)}removeFormGroup(z){this._cleanUpFormContainer(z)}getFormGroup(z){return this.form.get(z.path)}addFormArray(z){this._setUpFormContainer(z)}removeFormArray(z){this._cleanUpFormContainer(z)}getFormArray(z){return this.form.get(z.path)}updateModel(z,Te){this.form.get(z.path).setValue(Te)}onSubmit(z){return this.submitted=!0,_e(this.form,this.directives),this.ngSubmit.emit(z),"dialog"===z?.target?.method}onReset(){this.resetForm()}resetForm(z){this.form.reset(z),this.submitted=!1}_updateDomValue(){this.directives.forEach(z=>{const Te=z.control,st=this.form.get(z.path);Te!==st&&(_t(Te||null,z),(te=>te instanceof Ct)(st)&&(nt(st,z,this.callSetDisabledState),z.control=st))}),this.form._updateTreeValidity({emitEvent:!1})}_setUpFormContainer(z){const Te=this.form.get(z.path);Er(Te,z),Te.updateValueAndValidity({emitEvent:!1})}_cleanUpFormContainer(z){if(this.form){const Te=this.form.get(z.path);Te&&function Fi(te,Z){return _n(te,Z)}(Te,z)&&Te.updateValueAndValidity({emitEvent:!1})}}_updateRegistrations(){this.form._registerOnCollectionChange(this._onCollectionChange),this._oldForm&&this._oldForm._registerOnCollectionChange(()=>{})}_updateValidators(){Vt(this.form,this),this._oldForm&&_n(this._oldForm,this)}_checkFormPresent(){}}return te.\u0275fac=function(z){return new(z||te)(c.Y36(he,10),c.Y36(xe,10),c.Y36(J,8))},te.\u0275dir=c.lG2({type:te,selectors:[["","formGroup",""]],hostBindings:function(z,Te){1&z&&c.NdJ("submit",function(en){return Te.onSubmit(en)})("reset",function(){return Te.onReset()})},inputs:{form:["formGroup","form"]},outputs:{ngSubmit:"ngSubmit"},exportAs:["ngForm"],features:[c._Bn([Ar]),c.qOj,c.TTD]}),te})();const ii={provide:hn,useExisting:(0,c.Gpc)(()=>Yi)};let Yi=(()=>{class te extends hn{set isDisabled(z){}constructor(z,Te,st,en,qn){super(),this._ngModelWarningConfig=qn,this._added=!1,this.update=new c.vpe,this._ngModelWarningSent=!1,this._parent=z,this._setValidators(Te),this._setAsyncValidators(st),this.valueAccessor=Ce(0,en)}ngOnChanges(z){this._added||this._setUpControl(),kn(z,this.viewModel)&&(this.viewModel=this.model,this.formDirective.updateModel(this,this.model))}ngOnDestroy(){this.formDirective&&this.formDirective.removeControl(this)}viewToModelUpdate(z){this.viewModel=z,this.update.emit(z)}get path(){return Je(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 te._ngModelWarningSentOnce=!1,te.\u0275fac=function(z){return new(z||te)(c.Y36(jt,13),c.Y36(he,10),c.Y36(xe,10),c.Y36(g,10),c.Y36(ki,8))},te.\u0275dir=c.lG2({type:te,selectors:[["","formControlName",""]],inputs:{name:["formControlName","name"],isDisabled:["disabled","isDisabled"],model:["ngModel","model"]},outputs:{update:"ngModelChange"},features:[c._Bn([ii]),c.qOj,c.TTD]}),te})();const Bo={provide:g,useExisting:(0,c.Gpc)(()=>lo),multi:!0};function fi(te,Z){return null==te?`${Z}`:(Z&&"object"==typeof Z&&(Z="Object"),`${te}: ${Z}`.slice(0,50))}let lo=(()=>{class te extends y{constructor(){super(...arguments),this._optionMap=new Map,this._idCounter=0,this._compareWith=Object.is}set compareWith(z){this._compareWith=z}writeValue(z){this.value=z;const st=fi(this._getOptionId(z),z);this.setProperty("value",st)}registerOnChange(z){this.onChange=Te=>{this.value=this._getOptionValue(Te),z(this.value)}}_registerOption(){return(this._idCounter++).toString()}_getOptionId(z){for(const Te of Array.from(this._optionMap.keys()))if(this._compareWith(this._optionMap.get(Te),z))return Te;return null}_getOptionValue(z){const Te=function Zi(te){return te.split(":")[0]}(z);return this._optionMap.has(Te)?this._optionMap.get(Te):z}}return te.\u0275fac=function(){let Z;return function(Te){return(Z||(Z=c.n5z(te)))(Te||te)}}(),te.\u0275dir=c.lG2({type:te,selectors:[["select","formControlName","",3,"multiple",""],["select","formControl","",3,"multiple",""],["select","ngModel","",3,"multiple",""]],hostBindings:function(z,Te){1&z&&c.NdJ("change",function(en){return Te.onChange(en.target.value)})("blur",function(){return Te.onTouched()})},inputs:{compareWith:"compareWith"},features:[c._Bn([Bo]),c.qOj]}),te})(),Io=(()=>{class te{constructor(z,Te,st){this._element=z,this._renderer=Te,this._select=st,this._select&&(this.id=this._select._registerOption())}set ngValue(z){null!=this._select&&(this._select._optionMap.set(this.id,z),this._setElementValue(fi(this.id,z)),this._select.writeValue(this._select.value))}set value(z){this._setElementValue(z),this._select&&this._select.writeValue(this._select.value)}_setElementValue(z){this._renderer.setProperty(this._element.nativeElement,"value",z)}ngOnDestroy(){this._select&&(this._select._optionMap.delete(this.id),this._select.writeValue(this._select.value))}}return te.\u0275fac=function(z){return new(z||te)(c.Y36(c.SBq),c.Y36(c.Qsj),c.Y36(lo,9))},te.\u0275dir=c.lG2({type:te,selectors:[["option"]],inputs:{ngValue:"ngValue",value:"value"}}),te})();const Do={provide:g,useExisting:(0,c.Gpc)(()=>yi),multi:!0};function Bi(te,Z){return null==te?`${Z}`:("string"==typeof Z&&(Z=`'${Z}'`),Z&&"object"==typeof Z&&(Z="Object"),`${te}: ${Z}`.slice(0,50))}let yi=(()=>{class te extends y{constructor(){super(...arguments),this._optionMap=new Map,this._idCounter=0,this._compareWith=Object.is}set compareWith(z){this._compareWith=z}writeValue(z){let Te;if(this.value=z,Array.isArray(z)){const st=z.map(en=>this._getOptionId(en));Te=(en,qn)=>{en._setSelected(st.indexOf(qn.toString())>-1)}}else Te=(st,en)=>{st._setSelected(!1)};this._optionMap.forEach(Te)}registerOnChange(z){this.onChange=Te=>{const st=[],en=Te.selectedOptions;if(void 0!==en){const qn=en;for(let Fn=0;Fn<qn.length;Fn++){const Oo=this._getOptionValue(qn[Fn].value);st.push(Oo)}}else{const qn=Te.options;for(let Fn=0;Fn<qn.length;Fn++){const Mo=qn[Fn];if(Mo.selected){const Oo=this._getOptionValue(Mo.value);st.push(Oo)}}}this.value=st,z(st)}}_registerOption(z){const Te=(this._idCounter++).toString();return this._optionMap.set(Te,z),Te}_getOptionId(z){for(const Te of Array.from(this._optionMap.keys()))if(this._compareWith(this._optionMap.get(Te)._value,z))return Te;return null}_getOptionValue(z){const Te=function ns(te){return te.split(":")[0]}(z);return this._optionMap.has(Te)?this._optionMap.get(Te)._value:z}}return te.\u0275fac=function(){let Z;return function(Te){return(Z||(Z=c.n5z(te)))(Te||te)}}(),te.\u0275dir=c.lG2({type:te,selectors:[["select","multiple","","formControlName",""],["select","multiple","","formControl",""],["select","multiple","","ngModel",""]],hostBindings:function(z,Te){1&z&&c.NdJ("change",function(en){return Te.onChange(en.target)})("blur",function(){return Te.onTouched()})},inputs:{compareWith:"compareWith"},features:[c._Bn([Do]),c.qOj]}),te})(),xo=(()=>{class te{constructor(z,Te,st){this._element=z,this._renderer=Te,this._select=st,this._select&&(this.id=this._select._registerOption(this))}set ngValue(z){null!=this._select&&(this._value=z,this._setElementValue(Bi(this.id,z)),this._select.writeValue(this._select.value))}set value(z){this._select?(this._value=z,this._setElementValue(Bi(this.id,z)),this._select.writeValue(this._select.value)):this._setElementValue(z)}_setElementValue(z){this._renderer.setProperty(this._element.nativeElement,"value",z)}_setSelected(z){this._renderer.setProperty(this._element.nativeElement,"selected",z)}ngOnDestroy(){this._select&&(this._select._optionMap.delete(this.id),this._select.writeValue(this._select.value))}}return te.\u0275fac=function(z){return new(z||te)(c.Y36(c.SBq),c.Y36(c.Qsj),c.Y36(yi,9))},te.\u0275dir=c.lG2({type:te,selectors:[["option"]],inputs:{ngValue:"ngValue",value:"value"}}),te})();function Vo(te){return"number"==typeof te?te:parseInt(te,10)}function rs(te){return"number"==typeof te?te:parseFloat(te)}let Vi=(()=>{class te{constructor(){this._validator=Q}ngOnChanges(z){if(this.inputName in z){const Te=this.normalizeInput(z[this.inputName].currentValue);this._enabled=this.enabled(Te),this._validator=this._enabled?this.createValidator(Te):Q,this._onChange&&this._onChange()}}validate(z){return this._validator(z)}registerOnValidatorChange(z){this._onChange=z}enabled(z){return null!=z}}return te.\u0275fac=function(z){return new(z||te)},te.\u0275dir=c.lG2({type:te,features:[c.TTD]}),te})();const Is={provide:he,useExisting:(0,c.Gpc)(()=>Ao),multi:!0};let Ao=(()=>{class te extends Vi{constructor(){super(...arguments),this.inputName="max",this.normalizeInput=z=>rs(z),this.createValidator=z=>Be(z)}}return te.\u0275fac=function(){let Z;return function(Te){return(Z||(Z=c.n5z(te)))(Te||te)}}(),te.\u0275dir=c.lG2({type:te,selectors:[["input","type","number","max","","formControlName",""],["input","type","number","max","","formControl",""],["input","type","number","max","","ngModel",""]],hostVars:1,hostBindings:function(z,Te){2&z&&c.uIk("max",Te._enabled?Te.max:null)},inputs:{max:"max"},features:[c._Bn([Is]),c.qOj]}),te})();const co={provide:he,useExisting:(0,c.Gpc)(()=>Qr),multi:!0};let Qr=(()=>{class te extends Vi{constructor(){super(...arguments),this.inputName="min",this.normalizeInput=z=>rs(z),this.createValidator=z=>Y(z)}}return te.\u0275fac=function(){let Z;return function(Te){return(Z||(Z=c.n5z(te)))(Te||te)}}(),te.\u0275dir=c.lG2({type:te,selectors:[["input","type","number","min","","formControlName",""],["input","type","number","min","","formControl",""],["input","type","number","min","","ngModel",""]],hostVars:1,hostBindings:function(z,Te){2&z&&c.uIk("min",Te._enabled?Te.min:null)},inputs:{min:"min"},features:[c._Bn([co]),c.qOj]}),te})();const Ti={provide:he,useExisting:(0,c.Gpc)(()=>Jr),multi:!0};let Jr=(()=>{class te extends Vi{constructor(){super(...arguments),this.inputName="required",this.normalizeInput=c.D6c,this.createValidator=z=>le}enabled(z){return z}}return te.\u0275fac=function(){let Z;return function(Te){return(Z||(Z=c.n5z(te)))(Te||te)}}(),te.\u0275dir=c.lG2({type:te,selectors:[["","required","","formControlName","",3,"type","checkbox"],["","required","","formControl","",3,"type","checkbox"],["","required","","ngModel","",3,"type","checkbox"]],hostVars:1,hostBindings:function(z,Te){2&z&&c.uIk("required",Te._enabled?"":null)},inputs:{required:"required"},features:[c._Bn([Ti]),c.qOj]}),te})();const To={provide:he,useExisting:(0,c.Gpc)(()=>Qi),multi:!0};let Qi=(()=>{class te extends Vi{constructor(){super(...arguments),this.inputName="email",this.normalizeInput=c.D6c,this.createValidator=z=>U}enabled(z){return z}}return te.\u0275fac=function(){let Z;return function(Te){return(Z||(Z=c.n5z(te)))(Te||te)}}(),te.\u0275dir=c.lG2({type:te,selectors:[["","email","","formControlName",""],["","email","","formControl",""],["","email","","ngModel",""]],inputs:{email:"email"},features:[c._Bn([To]),c.qOj]}),te})();const Ho={provide:he,useExisting:(0,c.Gpc)(()=>Hi),multi:!0};let Hi=(()=>{class te extends Vi{constructor(){super(...arguments),this.inputName="minlength",this.normalizeInput=z=>Vo(z),this.createValidator=z=>W(z)}}return te.\u0275fac=function(){let Z;return function(Te){return(Z||(Z=c.n5z(te)))(Te||te)}}(),te.\u0275dir=c.lG2({type:te,selectors:[["","minlength","","formControlName",""],["","minlength","","formControl",""],["","minlength","","ngModel",""]],hostVars:1,hostBindings:function(z,Te){2&z&&c.uIk("minlength",Te._enabled?Te.minlength:null)},inputs:{minlength:"minlength"},features:[c._Bn([Ho]),c.qOj]}),te})();const vi={provide:he,useExisting:(0,c.Gpc)(()=>Ji),multi:!0};let Ji=(()=>{class te extends Vi{constructor(){super(...arguments),this.inputName="maxlength",this.normalizeInput=z=>Vo(z),this.createValidator=z=>oe(z)}}return te.\u0275fac=function(){let Z;return function(Te){return(Z||(Z=c.n5z(te)))(Te||te)}}(),te.\u0275dir=c.lG2({type:te,selectors:[["","maxlength","","formControlName",""],["","maxlength","","formControl",""],["","maxlength","","ngModel",""]],hostVars:1,hostBindings:function(z,Te){2&z&&c.uIk("maxlength",Te._enabled?Te.maxlength:null)},inputs:{maxlength:"maxlength"},features:[c._Bn([vi]),c.qOj]}),te})();const os={provide:he,useExisting:(0,c.Gpc)(()=>_i),multi:!0};let _i=(()=>{class te extends Vi{constructor(){super(...arguments),this.inputName="pattern",this.normalizeInput=z=>z,this.createValidator=z=>ge(z)}}return te.\u0275fac=function(){let Z;return function(Te){return(Z||(Z=c.n5z(te)))(Te||te)}}(),te.\u0275dir=c.lG2({type:te,selectors:[["","pattern","","formControlName",""],["","pattern","","formControl",""],["","pattern","","ngModel",""]],hostVars:1,hostBindings:function(z,Te){2&z&&c.uIk("pattern",Te._enabled?Te.pattern:null)},inputs:{pattern:"pattern"},features:[c._Bn([os]),c.qOj]}),te})(),ss=(()=>{class te{}return te.\u0275fac=function(z){return new(z||te)},te.\u0275mod=c.oAB({type:te}),te.\u0275inj=c.cJS({imports:[Ai]}),te})();class Or extends Pn{constructor(Z,z,Te){super(ct(z),et(Te,z)),this.controls=Z,this._initObservables(),this._setUpdateStrategy(z),this._setUpControls(),this.updateValueAndValidity({onlySelf:!0,emitEvent:!!this.asyncValidator})}at(Z){return this.controls[this._adjustIndex(Z)]}push(Z,z={}){this.controls.push(Z),this._registerControl(Z),this.updateValueAndValidity({emitEvent:z.emitEvent}),this._onCollectionChange()}insert(Z,z,Te={}){this.controls.splice(Z,0,z),this._registerControl(z),this.updateValueAndValidity({emitEvent:Te.emitEvent})}removeAt(Z,z={}){let Te=this._adjustIndex(Z);Te<0&&(Te=0),this.controls[Te]&&this.controls[Te]._registerOnCollectionChange(()=>{}),this.controls.splice(Te,1),this.updateValueAndValidity({emitEvent:z.emitEvent})}setControl(Z,z,Te={}){let st=this._adjustIndex(Z);st<0&&(st=0),this.controls[st]&&this.controls[st]._registerOnCollectionChange(()=>{}),this.controls.splice(st,1),z&&(this.controls.splice(st,0,z),this._registerControl(z)),this.updateValueAndValidity({emitEvent:Te.emitEvent}),this._onCollectionChange()}get length(){return this.controls.length}setValue(Z,z={}){vn(this,!1,Z),Z.forEach((Te,st)=>{Xt(this,!1,st),this.at(st).setValue(Te,{onlySelf:!0,emitEvent:z.emitEvent})}),this.updateValueAndValidity(z)}patchValue(Z,z={}){null!=Z&&(Z.forEach((Te,st)=>{this.at(st)&&this.at(st).patchValue(Te,{onlySelf:!0,emitEvent:z.emitEvent})}),this.updateValueAndValidity(z))}reset(Z=[],z={}){this._forEachChild((Te,st)=>{Te.reset(Z[st],{onlySelf:!0,emitEvent:z.emitEvent})}),this._updatePristine(z),this._updateTouched(z),this.updateValueAndValidity(z)}getRawValue(){return this.controls.map(Z=>Z.getRawValue())}clear(Z={}){this.controls.length<1||(this._forEachChild(z=>z._registerOnCollectionChange(()=>{})),this.controls.splice(0),this.updateValueAndValidity({emitEvent:Z.emitEvent}))}_adjustIndex(Z){return Z<0?Z+this.length:Z}_syncPendingControls(){let Z=this.controls.reduce((z,Te)=>!!Te._syncPendingControls()||z,!1);return Z&&this.updateValueAndValidity({onlySelf:!0}),Z}_forEachChild(Z){this.controls.forEach((z,Te)=>{Z(z,Te)})}_updateValue(){this.value=this.controls.filter(Z=>Z.enabled||this.disabled).map(Z=>Z.value)}_anyControls(Z){return this.controls.some(z=>z.enabled&&Z(z))}_setUpControls(){this._forEachChild(Z=>this._registerControl(Z))}_allControlsDisabled(){for(const Z of this.controls)if(Z.enabled)return!1;return this.controls.length>0||this.disabled}_registerControl(Z){Z.setParent(this),Z._registerOnCollectionChange(this._onCollectionChange)}_find(Z){return this.at(Z)??null}}function jr(te){return!!te&&(void 0!==te.asyncValidators||void 0!==te.validators||void 0!==te.updateOn)}let Po=(()=>{class te{constructor(){this.useNonNullable=!1}get nonNullable(){const z=new te;return z.useNonNullable=!0,z}group(z,Te=null){const st=this._reduceControls(z);let en={};return jr(Te)?en=Te:null!==Te&&(en.validators=Te.validator,en.asyncValidators=Te.asyncValidator),new rn(st,en)}record(z,Te=null){const st=this._reduceControls(z);return new Pe(st,Te)}control(z,Te,st){let en={};return this.useNonNullable?(jr(Te)?en=Te:(en.validators=Te,en.asyncValidators=st),new Ct(z,{...en,nonNullable:!0})):new Ct(z,Te,st)}array(z,Te,st){const en=z.map(qn=>this._createControl(qn));return new Or(en,Te,st)}_reduceControls(z){const Te={};return Object.keys(z).forEach(st=>{Te[st]=this._createControl(z[st])}),Te}_createControl(z){return z instanceof Ct||z instanceof Pn?z:Array.isArray(z)?this.control(z[0],z.length>1?z[1]:null,z.length>2?z[2]:null):this.control(z)}}return te.\u0275fac=function(z){return new(z||te)},te.\u0275prov=c.Yz7({token:te,factory:te.\u0275fac,providedIn:"root"}),te})(),Go=(()=>{class te{static withConfig(z){return{ngModule:te,providers:[{provide:J,useValue:z.callSetDisabledState??ue}]}}}return te.\u0275fac=function(z){return new(z||te)},te.\u0275mod=c.oAB({type:te}),te.\u0275inj=c.cJS({imports:[ss]}),te})(),bi=(()=>{class te{static withConfig(z){return{ngModule:te,providers:[{provide:ki,useValue:z.warnOnNgModelWithFormControl??"always"},{provide:J,useValue:z.callSetDisabledState??ue}]}}}return te.\u0275fac=function(z){return new(z||te)},te.\u0275mod=c.oAB({type:te}),te.\u0275inj=c.cJS({imports:[ss]}),te})()},11481:(Ze,ee,_)=>{"use strict";_.d(ee,{Dx:()=>Ht,H7:()=>Pn,b2:()=>re,q6:()=>wn,se:()=>ye});var c=_(36895),b=_(55062);class M extends c.w_{constructor(){super(...arguments),this.supportsDOMEvents=!0}}class F extends M{static makeCurrent(){(0,c.HT)(new F)}onAndCancel(ie,J,ue){return ie.addEventListener(J,ue,!1),()=>{ie.removeEventListener(J,ue,!1)}}dispatchEvent(ie,J){ie.dispatchEvent(J)}remove(ie){ie.parentNode&&ie.parentNode.removeChild(ie)}createElement(ie,J){return(J=J||this.getDefaultDocument()).createElement(ie)}createHtmlDocument(){return document.implementation.createHTMLDocument("fakeTitle")}getDefaultDocument(){return document}isElementNode(ie){return ie.nodeType===Node.ELEMENT_NODE}isShadowRoot(ie){return ie instanceof DocumentFragment}getGlobalEventTarget(ie,J){return"window"===J?window:"document"===J?ie:"body"===J?ie.body:null}getBaseHref(ie){const J=function w(){return O=O||document.querySelector("base"),O?O.getAttribute("href"):null}();return null==J?null:function g(Pe){y=y||document.createElement("a"),y.setAttribute("href",Pe);const ie=y.pathname;return"/"===ie.charAt(0)?ie:`/${ie}`}(J)}resetBaseElement(){O=null}getUserAgent(){return window.navigator.userAgent}getCookie(ie){return(0,c.Mx)(document.cookie,ie)}}let y,O=null;const x=new b.OlP("TRANSITION_ID"),T=[{provide:b.ip1,useFactory:function N(Pe,ie,J){return()=>{J.get(b.CZH).donePromise.then(()=>{const ue=(0,c.q)(),Je=ie.querySelectorAll(`style[ng-transition="${Pe}"]`);for(let nt=0;nt<Je.length;nt++)ue.remove(Je[nt])})}},deps:[x,c.K0,b.zs3],multi:!0}];let B=(()=>{class Pe{build(){return new XMLHttpRequest}}return Pe.\u0275fac=function(J){return new(J||Pe)},Pe.\u0275prov=b.Yz7({token:Pe,factory:Pe.\u0275fac}),Pe})();const q=new b.OlP("EventManagerPlugins");let de=(()=>{class Pe{constructor(J,ue){this._zone=ue,this._eventNameToPlugin=new Map,J.forEach(Je=>{Je.manager=this}),this._plugins=J.slice().reverse()}addEventListener(J,ue,Je){return this._findPluginFor(ue).addEventListener(J,ue,Je)}addGlobalEventListener(J,ue,Je){return this._findPluginFor(ue).addGlobalEventListener(J,ue,Je)}getZone(){return this._zone}_findPluginFor(J){const ue=this._eventNameToPlugin.get(J);if(ue)return ue;const Je=this._plugins;for(let nt=0;nt<Je.length;nt++){const _t=Je[nt];if(_t.supports(J))return this._eventNameToPlugin.set(J,_t),_t}throw new Error(`No event manager plugin found for event ${J}`)}}return Pe.\u0275fac=function(J){return new(J||Pe)(b.LFG(q),b.LFG(b.R0b))},Pe.\u0275prov=b.Yz7({token:Pe,factory:Pe.\u0275fac}),Pe})();class se{constructor(ie){this._doc=ie}addGlobalEventListener(ie,J,ue){const Je=(0,c.q)().getGlobalEventTarget(this._doc,ie);if(!Je)throw new Error(`Unsupported event target ${Je} for event ${J}`);return this.addEventListener(Je,J,ue)}}let De=(()=>{class Pe{constructor(){this.usageCount=new Map}addStyles(J){for(const ue of J)1===this.changeUsageCount(ue,1)&&this.onStyleAdded(ue)}removeStyles(J){for(const ue of J)0===this.changeUsageCount(ue,-1)&&this.onStyleRemoved(ue)}onStyleRemoved(J){}onStyleAdded(J){}getAllStyles(){return this.usageCount.keys()}changeUsageCount(J,ue){const Je=this.usageCount;let nt=Je.get(J)??0;return nt+=ue,nt>0?Je.set(J,nt):Je.delete(J),nt}ngOnDestroy(){for(const J of this.getAllStyles())this.onStyleRemoved(J);this.usageCount.clear()}}return Pe.\u0275fac=function(J){return new(J||Pe)},Pe.\u0275prov=b.Yz7({token:Pe,factory:Pe.\u0275fac}),Pe})(),he=(()=>{class Pe extends De{constructor(J){super(),this.doc=J,this.styleRef=new Map,this.hostNodes=new Set,this.resetHostNodes()}onStyleAdded(J){for(const ue of this.hostNodes)this.addStyleToHost(ue,J)}onStyleRemoved(J){const ue=this.styleRef;ue.get(J)?.forEach(nt=>nt.remove()),ue.delete(J)}ngOnDestroy(){super.ngOnDestroy(),this.styleRef.clear(),this.resetHostNodes()}addHost(J){this.hostNodes.add(J);for(const ue of this.getAllStyles())this.addStyleToHost(J,ue)}removeHost(J){this.hostNodes.delete(J)}addStyleToHost(J,ue){const Je=this.doc.createElement("style");Je.textContent=ue,J.appendChild(Je);const nt=this.styleRef.get(ue);nt?nt.push(Je):this.styleRef.set(ue,[Je])}resetHostNodes(){const J=this.hostNodes;J.clear(),J.add(this.doc.head)}}return Pe.\u0275fac=function(J){return new(J||Pe)(b.LFG(c.K0))},Pe.\u0275prov=b.Yz7({token:Pe,factory:Pe.\u0275fac}),Pe})();const xe={svg:"http://www.w3.org/2000/svg",xhtml:"http://www.w3.org/1999/xhtml",xlink:"http://www.w3.org/1999/xlink",xml:"http://www.w3.org/XML/1998/namespace",xmlns:"http://www.w3.org/2000/xmlns/",math:"http://www.w3.org/1998/MathML/"},Me=/%COMP%/g,Y="%COMP%",Be=`_nghost-${Y}`,le=`_ngcontent-${Y}`,U=new b.OlP("RemoveStylesOnCompDestory",{providedIn:"root",factory:()=>!1});function ge(Pe,ie){return ie.flat(100).map(J=>J.replace(Me,Pe))}function Q(Pe){return ie=>{if("__ngUnwrap__"===ie)return Pe;!1===Pe(ie)&&(ie.preventDefault(),ie.returnValue=!1)}}let ye=(()=>{class Pe{constructor(J,ue,Je,nt){this.eventManager=J,this.sharedStylesHost=ue,this.appId=Je,this.removeStylesOnCompDestory=nt,this.rendererByCompId=new Map,this.defaultRenderer=new Le(J)}createRenderer(J,ue){if(!J||!ue)return this.defaultRenderer;const Je=this.getOrCreateRenderer(J,ue);return Je instanceof ze?Je.applyToHost(J):Je instanceof ve&&Je.applyStyles(),Je}getOrCreateRenderer(J,ue){const Je=this.rendererByCompId;let nt=Je.get(ue.id);if(!nt){const _t=this.eventManager,At=this.sharedStylesHost,kt=this.removeStylesOnCompDestory;switch(ue.encapsulation){case b.ifc.Emulated:nt=new ze(_t,At,ue,this.appId,kt);break;case b.ifc.ShadowDom:return new ke(_t,At,J,ue);default:nt=new ve(_t,At,ue,kt)}nt.onDestroy=()=>Je.delete(ue.id),Je.set(ue.id,nt)}return nt}ngOnDestroy(){this.rendererByCompId.clear()}begin(){}end(){}}return Pe.\u0275fac=function(J){return new(J||Pe)(b.LFG(de),b.LFG(he),b.LFG(b.AFp),b.LFG(U))},Pe.\u0275prov=b.Yz7({token:Pe,factory:Pe.\u0275fac}),Pe})();class Le{constructor(ie){this.eventManager=ie,this.data=Object.create(null),this.destroyNode=null}destroy(){}createElement(ie,J){return J?document.createElementNS(xe[J]||J,ie):document.createElement(ie)}createComment(ie){return document.createComment(ie)}createText(ie){return document.createTextNode(ie)}appendChild(ie,J){(Ge(ie)?ie.content:ie).appendChild(J)}insertBefore(ie,J,ue){ie&&(Ge(ie)?ie.content:ie).insertBefore(J,ue)}removeChild(ie,J){ie&&ie.removeChild(J)}selectRootElement(ie,J){let ue="string"==typeof ie?document.querySelector(ie):ie;if(!ue)throw new Error(`The selector "${ie}" did not match any elements`);return J||(ue.textContent=""),ue}parentNode(ie){return ie.parentNode}nextSibling(ie){return ie.nextSibling}setAttribute(ie,J,ue,Je){if(Je){J=Je+":"+J;const nt=xe[Je];nt?ie.setAttributeNS(nt,J,ue):ie.setAttribute(J,ue)}else ie.setAttribute(J,ue)}removeAttribute(ie,J,ue){if(ue){const Je=xe[ue];Je?ie.removeAttributeNS(Je,J):ie.removeAttribute(`${ue}:${J}`)}else ie.removeAttribute(J)}addClass(ie,J){ie.classList.add(J)}removeClass(ie,J){ie.classList.remove(J)}setStyle(ie,J,ue,Je){Je&(b.JOm.DashCase|b.JOm.Important)?ie.style.setProperty(J,ue,Je&b.JOm.Important?"important":""):ie.style[J]=ue}removeStyle(ie,J,ue){ue&b.JOm.DashCase?ie.style.removeProperty(J):ie.style[J]=""}setProperty(ie,J,ue){ie[J]=ue}setValue(ie,J){ie.nodeValue=J}listen(ie,J,ue){return"string"==typeof ie?this.eventManager.addGlobalEventListener(ie,J,Q(ue)):this.eventManager.addEventListener(ie,J,Q(ue))}}function Ge(Pe){return"TEMPLATE"===Pe.tagName&&void 0!==Pe.content}class ke extends Le{constructor(ie,J,ue,Je){super(ie),this.sharedStylesHost=J,this.hostEl=ue,this.shadowRoot=ue.attachShadow({mode:"open"}),this.sharedStylesHost.addHost(this.shadowRoot);const nt=ge(Je.id,Je.styles);for(const _t of nt){const At=document.createElement("style");At.textContent=_t,this.shadowRoot.appendChild(At)}}nodeOrShadowRoot(ie){return ie===this.hostEl?this.shadowRoot:ie}appendChild(ie,J){return super.appendChild(this.nodeOrShadowRoot(ie),J)}insertBefore(ie,J,ue){return super.insertBefore(this.nodeOrShadowRoot(ie),J,ue)}removeChild(ie,J){return super.removeChild(this.nodeOrShadowRoot(ie),J)}parentNode(ie){return this.nodeOrShadowRoot(super.parentNode(this.nodeOrShadowRoot(ie)))}destroy(){this.sharedStylesHost.removeHost(this.shadowRoot)}}class ve extends Le{constructor(ie,J,ue,Je,nt=ue.id){super(ie),this.sharedStylesHost=J,this.removeStylesOnCompDestory=Je,this.rendererUsageCount=0,this.styles=ge(nt,ue.styles)}applyStyles(){this.sharedStylesHost.addStyles(this.styles),this.rendererUsageCount++}destroy(){this.removeStylesOnCompDestory&&(this.sharedStylesHost.removeStyles(this.styles),this.rendererUsageCount--,0===this.rendererUsageCount&&this.onDestroy?.())}}class ze extends ve{constructor(ie,J,ue,Je,nt){const _t=Je+"-"+ue.id;super(ie,J,ue,nt,_t),this.contentAttr=function W(Pe){return le.replace(Me,Pe)}(_t),this.hostAttr=function oe(Pe){return Be.replace(Me,Pe)}(_t)}applyToHost(ie){this.applyStyles(),this.setAttribute(ie,this.hostAttr,"")}createElement(ie,J){const ue=super.createElement(ie,J);return super.setAttribute(ue,this.contentAttr,""),ue}}let Ie=(()=>{class Pe extends se{constructor(J){super(J)}supports(J){return!0}addEventListener(J,ue,Je){return J.addEventListener(ue,Je,!1),()=>this.removeEventListener(J,ue,Je)}removeEventListener(J,ue,Je){return J.removeEventListener(ue,Je)}}return Pe.\u0275fac=function(J){return new(J||Pe)(b.LFG(c.K0))},Pe.\u0275prov=b.Yz7({token:Pe,factory:Pe.\u0275fac}),Pe})();const ft=["alt","control","meta","shift"],pt={"\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"},mt={alt:Pe=>Pe.altKey,control:Pe=>Pe.ctrlKey,meta:Pe=>Pe.metaKey,shift:Pe=>Pe.shiftKey};let yt=(()=>{class Pe extends se{constructor(J){super(J)}supports(J){return null!=Pe.parseEventName(J)}addEventListener(J,ue,Je){const nt=Pe.parseEventName(ue),_t=Pe.eventCallback(nt.fullKey,Je,this.manager.getZone());return this.manager.getZone().runOutsideAngular(()=>(0,c.q)().onAndCancel(J,nt.domEventName,_t))}static parseEventName(J){const ue=J.toLowerCase().split("."),Je=ue.shift();if(0===ue.length||"keydown"!==Je&&"keyup"!==Je)return null;const nt=Pe._normalizeKey(ue.pop());let _t="",At=ue.indexOf("code");if(At>-1&&(ue.splice(At,1),_t="code."),ft.forEach(Vt=>{const _n=ue.indexOf(Vt);_n>-1&&(ue.splice(_n,1),_t+=Vt+".")}),_t+=nt,0!=ue.length||0===nt.length)return null;const kt={};return kt.domEventName=Je,kt.fullKey=_t,kt}static matchEventFullKeyCode(J,ue){let Je=pt[J.key]||J.key,nt="";return ue.indexOf("code.")>-1&&(Je=J.code,nt="code."),!(null==Je||!Je)&&(Je=Je.toLowerCase()," "===Je?Je="space":"."===Je&&(Je="dot"),ft.forEach(_t=>{_t!==Je&&(0,mt[_t])(J)&&(nt+=_t+".")}),nt+=Je,nt===ue)}static eventCallback(J,ue,Je){return nt=>{Pe.matchEventFullKeyCode(nt,J)&&Je.runGuarded(()=>ue(nt))}}static _normalizeKey(J){return"esc"===J?"escape":J}}return Pe.\u0275fac=function(J){return new(J||Pe)(b.LFG(c.K0))},Pe.\u0275prov=b.Yz7({token:Pe,factory:Pe.\u0275fac}),Pe})();const wn=(0,b.eFA)(b._c5,"browser",[{provide:b.Lbi,useValue:c.bD},{provide:b.g9A,useValue:function jt(){F.makeCurrent()},multi:!0},{provide:c.K0,useFactory:function xn(){return(0,b.RDi)(document),document},deps:[]}]),zt=new b.OlP(""),je=[{provide:b.rWj,useClass:class V{addToWindow(ie){b.dqk.getAngularTestability=(ue,Je=!0)=>{const nt=ie.findTestabilityInTree(ue,Je);if(null==nt)throw new Error("Could not find testability for element.");return nt},b.dqk.getAllAngularTestabilities=()=>ie.getAllTestabilities(),b.dqk.getAllAngularRootElements=()=>ie.getAllRootElements(),b.dqk.frameworkStabilizers||(b.dqk.frameworkStabilizers=[]),b.dqk.frameworkStabilizers.push(ue=>{const Je=b.dqk.getAllAngularTestabilities();let nt=Je.length,_t=!1;const At=function(kt){_t=_t||kt,nt--,0==nt&&ue(_t)};Je.forEach(function(kt){kt.whenStable(At)})})}findTestabilityInTree(ie,J,ue){return null==J?null:ie.getTestability(J)??(ue?(0,c.q)().isShadowRoot(J)?this.findTestabilityInTree(ie,J.host,!0):this.findTestabilityInTree(ie,J.parentElement,!0):null)}},deps:[]},{provide:b.lri,useClass:b.dDg,deps:[b.R0b,b.eoX,b.rWj]},{provide:b.dDg,useClass:b.dDg,deps:[b.R0b,b.eoX,b.rWj]}],ne=[{provide:b.zSh,useValue:"root"},{provide:b.qLn,useFactory:function hn(){return new b.qLn},deps:[]},{provide:q,useClass:Ie,multi:!0,deps:[c.K0,b.R0b,b.Lbi]},{provide:q,useClass:yt,multi:!0,deps:[c.K0]},{provide:ye,useClass:ye,deps:[de,he,b.AFp,U]},{provide:b.FYo,useExisting:ye},{provide:De,useExisting:he},{provide:he,useClass:he,deps:[c.K0]},{provide:de,useClass:de,deps:[q,b.R0b]},{provide:c.JF,useClass:B,deps:[]},[]];let re=(()=>{class Pe{constructor(J){}static withServerTransition(J){return{ngModule:Pe,providers:[{provide:b.AFp,useValue:J.appId},{provide:x,useExisting:b.AFp},T]}}}return Pe.\u0275fac=function(J){return new(J||Pe)(b.LFG(zt,12))},Pe.\u0275mod=b.oAB({type:Pe}),Pe.\u0275inj=b.cJS({providers:[...ne,...je],imports:[c.ez,b.hGG]}),Pe})(),Ht=(()=>{class Pe{constructor(J){this._doc=J}getTitle(){return this._doc.title}setTitle(J){this._doc.title=J||""}}return Pe.\u0275fac=function(J){return new(J||Pe)(b.LFG(c.K0))},Pe.\u0275prov=b.Yz7({token:Pe,factory:function(J){let ue=null;return ue=J?new J:function lt(){return new Ht((0,b.LFG)(c.K0))}(),ue},providedIn:"root"}),Pe})();typeof window<"u"&&window;let Pn=(()=>{class Pe{}return Pe.\u0275fac=function(J){return new(J||Pe)},Pe.\u0275prov=b.Yz7({token:Pe,factory:function(J){let ue=null;return ue=J?new(J||Pe):b.LFG(En),ue},providedIn:"root"}),Pe})(),En=(()=>{class Pe extends Pn{constructor(J){super(),this._doc=J}sanitize(J,ue){if(null==ue)return null;switch(J){case b.q3G.NONE:return ue;case b.q3G.HTML:return(0,b.qzn)(ue,"HTML")?(0,b.z3N)(ue):(0,b.EiD)(this._doc,String(ue)).toString();case b.q3G.STYLE:return(0,b.qzn)(ue,"Style")?(0,b.z3N)(ue):ue;case b.q3G.SCRIPT:if((0,b.qzn)(ue,"Script"))return(0,b.z3N)(ue);throw new Error("unsafe value used in a script context");case b.q3G.URL:return(0,b.qzn)(ue,"URL")?(0,b.z3N)(ue):(0,b.mCW)(String(ue));case b.q3G.RESOURCE_URL:if((0,b.qzn)(ue,"ResourceURL"))return(0,b.z3N)(ue);throw new Error(`unsafe value used in a resource URL context (see ${b.JZr})`);default:throw new Error(`Unexpected SecurityContext ${J} (see ${b.JZr})`)}}bypassSecurityTrustHtml(J){return(0,b.JVY)(J)}bypassSecurityTrustStyle(J){return(0,b.L6k)(J)}bypassSecurityTrustScript(J){return(0,b.eBb)(J)}bypassSecurityTrustUrl(J){return(0,b.LAX)(J)}bypassSecurityTrustResourceUrl(J){return(0,b.pB0)(J)}}return Pe.\u0275fac=function(J){return new(J||Pe)(b.LFG(c.K0))},Pe.\u0275prov=b.Yz7({token:Pe,factory:function(J){let ue=null;return ue=J?new J:function rn(Pe){return new En(Pe.get(c.K0))}(b.LFG(b.zs3)),ue},providedIn:"root"}),Pe})()},2925:(Ze,ee,_)=>{"use strict";_.d(ee,{gz:()=>Bi,gk:()=>ar,m2:()=>_r,Q3:()=>fr,OD:()=>Lr,F0:()=>Vr,rH:()=>bo,Od:()=>Du,Bz:()=>yr,lC:()=>Ji});var c=_(55062),b=_(63527),M=_(21086),F=_(591),O=_(84450),w=_(36053),y=_(61221),g=_(88514),x=_(4843),N=_(61737),T=_(57451),V=_(68896),B=_(71762),q=_(8929),de=_(36895),se=_(24850),De=_(826),he=_(51869),xe=_(69054);function Me(D,P){return"function"==typeof P?S=>S.pipe(Me((k,X)=>(0,b.D)(D(k,X)).pipe((0,se.U)((Ee,Ne)=>P(k,Ee,X,Ne))))):S=>S.lift(new be(D))}class be{constructor(P){this.project=P}call(P,S){return S.subscribe(new Y(P,this.project))}}class Y extends De.L{constructor(P,S){super(P),this.project=S,this.index=0}_next(P){let S;const k=this.index++;try{S=this.project(P,k)}catch(X){return void this.destination.error(X)}this._innerSub(S,P,k)}_innerSub(P,S,k){const X=this.innerSubscription;X&&X.unsubscribe();const Ee=new he.d(this,S,k),Ne=this.destination;Ne.add(Ee),this.innerSubscription=(0,xe.D)(this,P,void 0,void 0,Ee),this.innerSubscription!==Ee&&Ne.add(this.innerSubscription)}_complete(){const{innerSubscription:P}=this;(!P||P.closed)&&super._complete(),this.unsubscribe()}_unsubscribe(){this.innerSubscription=null}notifyComplete(P){this.destination.remove(P),this.innerSubscription=null,this.isStopped&&super._complete()}notifyNext(P,S,k,X,Ee){this.destination.next(S)}}var Be=_(72986),le=_(72866),U=_(92198),W=_(61709),oe=_(87224),ge=_(21406),Q=_(2994),ye=_(27221),Le=_(43489);function Ye(D,P){let S=!1;return arguments.length>=2&&(S=!0),function(X){return X.lift(new we(D,P,S))}}class we{constructor(P,S,k=!1){this.accumulator=P,this.seed=S,this.hasSeed=k}call(P,S){return S.subscribe(new Ge(P,this.accumulator,this.seed,this.hasSeed))}}class Ge extends Le.L{constructor(P,S,k,X){super(P),this.accumulator=S,this._seed=k,this.hasSeed=X,this.index=0}get seed(){return this._seed}set seed(P){this.hasSeed=!0,this._seed=P}_next(P){if(this.hasSeed)return this._tryNext(P);this.seed=P,this.destination.next(P)}_tryNext(P){const S=this.index++;let k;try{k=this.accumulator(this.seed,P,S)}catch(X){this.destination.error(X)}this.seed=k,this.destination.next(k)}}var ke=_(94231);function ve(D){return function(S){return 0===D?(0,V.c)():S.lift(new ze(D))}}class ze{constructor(P){if(this.total=P,this.total<0)throw new ke.W}call(P,S){return S.subscribe(new Ie(P,this.total))}}class Ie extends Le.L{constructor(P,S){super(P),this.total=S,this.ring=new Array,this.count=0}_next(P){const S=this.ring,k=this.total,X=this.count++;S.length<k?S.push(P):S[X%k]=P}_complete(){const P=this.destination;let S=this.count;if(S>0){const k=this.count>=this.total?this.total:this.count,X=this.ring;for(let Ee=0;Ee<k;Ee++){const Ne=S++%k;P.next(X[Ne])}}P.complete()}}var ft=_(34907),pt=_(47314),mt=_(35379);function yt(D,P){const S=arguments.length>=2;return k=>k.pipe(D?(0,U.h)((X,Ee)=>D(X,Ee,k)):mt.y,ve(1),S?(0,pt.d)(P):(0,ft.T)(()=>new O.K))}class Zt{constructor(P,S){this.predicate=P,this.inclusive=S}call(P,S){return S.subscribe(new nn(P,this.predicate,this.inclusive))}}class nn extends Le.L{constructor(P,S,k){super(P),this.predicate=S,this.inclusive=k,this.index=0}_next(P){const S=this.destination;let k;try{k=this.predicate(P,this.index++)}catch(X){return void S.error(X)}this.nextOrComplete(P,k)}nextOrComplete(P,S){const k=this.destination;Boolean(S)?k.next(P):(this.inclusive&&k.next(P),k.complete())}}class Ut{constructor(P){this.value=P}call(P,S){return S.subscribe(new jt(P,this.value))}}class jt extends Le.L{constructor(P,S){super(P),this.value=S}_next(P){this.destination.next(this.value)}}var hn=_(40537),xn=_(74327),Tn=_(89146),wn=_(11481);const zt="primary",je=Symbol("RouteTitle");class ne{constructor(P){this.params=P||{}}has(P){return Object.prototype.hasOwnProperty.call(this.params,P)}get(P){if(this.has(P)){const S=this.params[P];return Array.isArray(S)?S[0]:S}return null}getAll(P){if(this.has(P)){const S=this.params[P];return Array.isArray(S)?S:[S]}return[]}get keys(){return Object.keys(this.params)}}function re(D){return new ne(D)}function $e(D,P,S){const k=S.path.split("/");if(k.length>D.length||"full"===S.pathMatch&&(P.hasChildren()||k.length<D.length))return null;const X={};for(let Ee=0;Ee<k.length;Ee++){const Ne=k[Ee],ut=D[Ee];if(Ne.startsWith(":"))X[Ne.substring(1)]=ut;else if(Ne!==ut.path)return null}return{consumed:D.slice(0,k.length),posParams:X}}function vt(D,P){const S=D?Object.keys(D):void 0,k=P?Object.keys(P):void 0;if(!S||!k||S.length!=k.length)return!1;let X;for(let Ee=0;Ee<S.length;Ee++)if(X=S[Ee],!lt(D[X],P[X]))return!1;return!0}function lt(D,P){if(Array.isArray(D)&&Array.isArray(P)){if(D.length!==P.length)return!1;const S=[...D].sort(),k=[...P].sort();return S.every((X,Ee)=>k[Ee]===X)}return D===P}function Ht(D){return Array.prototype.concat.apply([],D)}function Nt(D){return D.length>0?D[D.length-1]:null}function pn(D,P){for(const S in D)D.hasOwnProperty(S)&&P(D[S],S)}function cn(D){return(0,c.CqO)(D)?D:(0,c.QGY)(D)?(0,b.D)(Promise.resolve(D)):(0,M.of)(D)}const ln=!1,lr={exact:function Dr(D,P,S){if(!Et(D.segments,P.segments)||!or(D.segments,P.segments,S)||D.numberOfChildren!==P.numberOfChildren)return!1;for(const k in P.children)if(!D.children[k]||!Dr(D.children[k],P.children[k],S))return!1;return!0},subset:nr},Gn={exact:function On(D,P){return vt(D,P)},subset:function Cn(D,P){return Object.keys(P).length<=Object.keys(D).length&&Object.keys(P).every(S=>lt(D[S],P[S]))},ignored:()=>!0};function wr(D,P,S){return lr[S.paths](D.root,P.root,S.matrixParams)&&Gn[S.queryParams](D.queryParams,P.queryParams)&&!("exact"===S.fragment&&D.fragment!==P.fragment)}function nr(D,P,S){return er(D,P,P.segments,S)}function er(D,P,S,k){if(D.segments.length>S.length){const X=D.segments.slice(0,S.length);return!(!Et(X,S)||P.hasChildren()||!or(X,S,k))}if(D.segments.length===S.length){if(!Et(D.segments,S)||!or(D.segments,S,k))return!1;for(const X in P.children)if(!D.children[X]||!nr(D.children[X],P.children[X],k))return!1;return!0}{const X=S.slice(0,D.segments.length),Ee=S.slice(D.segments.length);return!!(Et(D.segments,X)&&or(D.segments,X,k)&&D.children[zt])&&er(D.children[zt],P,Ee,k)}}function or(D,P,S){return P.every((k,X)=>Gn[S](D[X].parameters,k.parameters))}class Vn{constructor(P=new ct([],{}),S={},k=null){this.root=P,this.queryParams=S,this.fragment=k}get queryParamMap(){return this._queryParamMap||(this._queryParamMap=re(this.queryParams)),this._queryParamMap}toString(){return Pn.serialize(this)}}class ct{constructor(P,S){this.segments=P,this.children=S,this.parent=null,pn(S,(k,X)=>k.parent=this)}hasChildren(){return this.numberOfChildren>0}get numberOfChildren(){return Object.keys(this.children).length}toString(){return rn(this)}}class qe{constructor(P,S){this.path=P,this.parameters=S}get parameterMap(){return this._parameterMap||(this._parameterMap=re(this.parameters)),this._parameterMap}toString(){return nt(this)}}function Et(D,P){return D.length===P.length&&D.every((S,k)=>S.path===P[k].path)}let Xt=(()=>{class D{}return D.\u0275fac=function(S){return new(S||D)},D.\u0275prov=c.Yz7({token:D,factory:function(){return new vn},providedIn:"root"}),D})();class vn{parse(P){const S=new Di(P);return new Vn(S.parseRootSegment(),S.parseQueryParams(),S.parseFragment())}serialize(P){const S=`/${En(P.root,!0)}`,k=function At(D){const P=Object.keys(D).map(S=>{const k=D[S];return Array.isArray(k)?k.map(X=>`${Pe(S)}=${Pe(X)}`).join("&"):`${Pe(S)}=${Pe(k)}`}).filter(S=>!!S);return P.length?`?${P.join("&")}`:""}(P.queryParams);return`${S}${k}${"string"==typeof P.fragment?`#${function ie(D){return encodeURI(D)}(P.fragment)}`:""}`}}const Pn=new vn;function rn(D){return D.segments.map(P=>nt(P)).join("/")}function En(D,P){if(!D.hasChildren())return rn(D);if(P){const S=D.children[zt]?En(D.children[zt],!1):"",k=[];return pn(D.children,(X,Ee)=>{Ee!==zt&&k.push(`${Ee}:${En(X,!1)}`)}),k.length>0?`${S}(${k.join("//")})`:S}{const S=function St(D,P){let S=[];return pn(D.children,(k,X)=>{X===zt&&(S=S.concat(P(k,X)))}),pn(D.children,(k,X)=>{X!==zt&&(S=S.concat(P(k,X)))}),S}(D,(k,X)=>X===zt?[En(D.children[zt],!1)]:[`${X}:${En(k,!1)}`]);return 1===Object.keys(D.children).length&&null!=D.children[zt]?`${rn(D)}/${S[0]}`:`${rn(D)}/(${S.join("//")})`}}function Yn(D){return encodeURIComponent(D).replace(/%40/g,"@").replace(/%3A/gi,":").replace(/%24/g,"$").replace(/%2C/gi,",")}function Pe(D){return Yn(D).replace(/%3B/gi,";")}function J(D){return Yn(D).replace(/\(/g,"%28").replace(/\)/g,"%29").replace(/%26/gi,"&")}function ue(D){return decodeURIComponent(D)}function Je(D){return ue(D.replace(/\+/g,"%20"))}function nt(D){return`${J(D.path)}${function _t(D){return Object.keys(D).map(P=>`;${J(P)}=${J(D[P])}`).join("")}(D.parameters)}`}const kt=/^[^\/()?;=#]+/;function Vt(D){const P=D.match(kt);return P?P[0]:""}const _n=/^[^=?&#]+/,sr=/^[^&#]+/;class Di{constructor(P){this.url=P,this.remaining=P}parseRootSegment(){return this.consumeOptional("/"),""===this.remaining||this.peekStartsWith("?")||this.peekStartsWith("#")?new ct([],{}):new ct([],this.parseChildren())}parseQueryParams(){const P={};if(this.consumeOptional("?"))do{this.parseQueryParam(P)}while(this.consumeOptional("&"));return P}parseFragment(){return this.consumeOptional("#")?decodeURIComponent(this.remaining):null}parseChildren(){if(""===this.remaining)return{};this.consumeOptional("/");const P=[];for(this.peekStartsWith("(")||P.push(this.parseSegment());this.peekStartsWith("/")&&!this.peekStartsWith("//")&&!this.peekStartsWith("/(");)this.capture("/"),P.push(this.parseSegment());let S={};this.peekStartsWith("/(")&&(this.capture("/"),S=this.parseParens(!0));let k={};return this.peekStartsWith("(")&&(k=this.parseParens(!1)),(P.length>0||Object.keys(S).length>0)&&(k[zt]=new ct(P,S)),k}parseSegment(){const P=Vt(this.remaining);if(""===P&&this.peekStartsWith(";"))throw new c.vHH(4009,ln);return this.capture(P),new qe(ue(P),this.parseMatrixParams())}parseMatrixParams(){const P={};for(;this.consumeOptional(";");)this.parseParam(P);return P}parseParam(P){const S=Vt(this.remaining);if(!S)return;this.capture(S);let k="";if(this.consumeOptional("=")){const X=Vt(this.remaining);X&&(k=X,this.capture(k))}P[ue(S)]=ue(k)}parseQueryParam(P){const S=function $n(D){const P=D.match(_n);return P?P[0]:""}(this.remaining);if(!S)return;this.capture(S);let k="";if(this.consumeOptional("=")){const Ne=function xr(D){const P=D.match(sr);return P?P[0]:""}(this.remaining);Ne&&(k=Ne,this.capture(k))}const X=Je(S),Ee=Je(k);if(P.hasOwnProperty(X)){let Ne=P[X];Array.isArray(Ne)||(Ne=[Ne],P[X]=Ne),Ne.push(Ee)}else P[X]=Ee}parseParens(P){const S={};for(this.capture("(");!this.consumeOptional(")")&&this.remaining.length>0;){const k=Vt(this.remaining),X=this.remaining[k.length];if("/"!==X&&")"!==X&&";"!==X)throw new c.vHH(4010,ln);let Ee;k.indexOf(":")>-1?(Ee=k.slice(0,k.indexOf(":")),this.capture(Ee),this.capture(":")):P&&(Ee=zt);const Ne=this.parseChildren();S[Ee]=1===Object.keys(Ne).length?Ne[zt]:new ct([],Ne),this.consumeOptional("//")}return S}peekStartsWith(P){return this.remaining.startsWith(P)}consumeOptional(P){return!!this.peekStartsWith(P)&&(this.remaining=this.remaining.substring(P.length),!0)}capture(P){if(!this.consumeOptional(P))throw new c.vHH(4011,ln)}}function Er(D){return D.segments.length>0?new ct([],{[zt]:D}):D}function Fi(D){const P={};for(const k of Object.keys(D.children)){const Ee=Fi(D.children[k]);(Ee.segments.length>0||Ee.hasChildren())&&(P[k]=Ee)}return function Li(D){if(1===D.numberOfChildren&&D.children[zt]){const P=D.children[zt];return new ct(D.segments.concat(P.segments),P.children)}return D}(new ct(D.segments,P))}function Fr(D){return D instanceof Vn}const di=!1;function Ve(D,P,S,k,X){if(0===S.length)return ce(P.root,P.root,P.root,k,X);const Ee=function Qe(D){if("string"==typeof D[0]&&1===D.length&&"/"===D[0])return new Oe(!0,0,D);let P=0,S=!1;const k=D.reduce((X,Ee,Ne)=>{if("object"==typeof Ee&&null!=Ee){if(Ee.outlets){const ut={};return pn(Ee.outlets,(xt,Yt)=>{ut[Yt]="string"==typeof xt?xt.split("/"):xt}),[...X,{outlets:ut}]}if(Ee.segmentPath)return[...X,Ee.segmentPath]}return"string"!=typeof Ee?[...X,Ee]:0===Ne?(Ee.split("/").forEach((ut,xt)=>{0==xt&&"."===ut||(0==xt&&""===ut?S=!0:".."===ut?P++:""!=ut&&X.push(ut))}),X):[...X,Ee]},[]);return new Oe(S,P,k)}(S);return Ee.toRoot()?ce(P.root,P.root,new ct([],{}),k,X):function Ne(xt){const Yt=function wt(D,P,S,k){if(D.isAbsolute)return new tt(P.root,!0,0);if(-1===k)return new tt(S,S===P.root,0);return function Ct(D,P,S){let k=D,X=P,Ee=S;for(;Ee>X;){if(Ee-=X,k=k.parent,!k)throw new c.vHH(4005,di&&"Invalid number of '../'");X=k.segments.length}return new tt(k,!1,X-Ee)}(S,k+(_e(D.commands[0])?0:1),D.numberOfDoubleDots)}(Ee,P,D.snapshot?._urlSegment,xt),Qt=Yt.processChildren?un(Yt.segmentGroup,Yt.index,Ee.commands):Gt(Yt.segmentGroup,Yt.index,Ee.commands);return ce(P.root,Yt.segmentGroup,Qt,k,X)}(D.snapshot?._lastPathIndex)}function _e(D){return"object"==typeof D&&null!=D&&!D.outlets&&!D.segmentPath}function Ce(D){return"object"==typeof D&&null!=D&&D.outlets}function ce(D,P,S,k,X){let Ne,Ee={};k&&pn(k,(xt,Yt)=>{Ee[Yt]=Array.isArray(xt)?xt.map(Qt=>`${Qt}`):`${xt}`}),Ne=D===P?S:Ue(D,P,S);const ut=Er(Fi(Ne));return new Vn(ut,Ee,X)}function Ue(D,P,S){const k={};return pn(D.children,(X,Ee)=>{k[Ee]=X===P?S:Ue(X,P,S)}),new ct(D.segments,k)}class Oe{constructor(P,S,k){if(this.isAbsolute=P,this.numberOfDoubleDots=S,this.commands=k,P&&k.length>0&&_e(k[0]))throw new c.vHH(4003,di&&"Root segment cannot have matrix parameters");const X=k.find(Ce);if(X&&X!==Nt(k))throw new c.vHH(4004,di&&"{outlets:{}} has to be the last command")}toRoot(){return this.isAbsolute&&1===this.commands.length&&"/"==this.commands[0]}}class tt{constructor(P,S,k){this.segmentGroup=P,this.processChildren=S,this.index=k}}function Gt(D,P,S){if(D||(D=new ct([],{})),0===D.segments.length&&D.hasChildren())return un(D,P,S);const k=function Mn(D,P,S){let k=0,X=P;const Ee={match:!1,pathIndex:0,commandIndex:0};for(;X<D.segments.length;){if(k>=S.length)return Ee;const Ne=D.segments[X],ut=S[k];if(Ce(ut))break;const xt=`${ut}`,Yt=k<S.length-1?S[k+1]:null;if(X>0&&void 0===xt)break;if(xt&&Yt&&"object"==typeof Yt&&void 0===Yt.outlets){if(!on(xt,Yt,Ne))return Ee;k+=2}else{if(!on(xt,{},Ne))return Ee;k++}X++}return{match:!0,pathIndex:X,commandIndex:k}}(D,P,S),X=S.slice(k.commandIndex);if(k.match&&k.pathIndex<D.segments.length){const Ee=new ct(D.segments.slice(0,k.pathIndex),{});return Ee.children[zt]=new ct(D.segments.slice(k.pathIndex),D.children),un(Ee,0,X)}return k.match&&0===X.length?new ct(D.segments,{}):k.match&&!D.hasChildren()?an(D,P,S):k.match?un(D,0,X):an(D,P,S)}function un(D,P,S){if(0===S.length)return new ct(D.segments,{});{const k=function $t(D){return Ce(D[0])?D[0].outlets:{[zt]:D}}(S),X={};return!k[zt]&&D.children[zt]&&1===D.numberOfChildren&&0===D.children[zt].segments.length?un(D.children[zt],P,S):(pn(k,(Ee,Ne)=>{"string"==typeof Ee&&(Ee=[Ee]),null!==Ee&&(X[Ne]=Gt(D.children[Ne],P,Ee))}),pn(D.children,(Ee,Ne)=>{void 0===k[Ne]&&(X[Ne]=Ee)}),new ct(D.segments,X))}}function an(D,P,S){const k=D.segments.slice(0,P);let X=0;for(;X<S.length;){const Ee=S[X];if(Ce(Ee)){const xt=rr(Ee.outlets);return new ct(k,xt)}if(0===X&&_e(S[0])){k.push(new qe(D.segments[P].path,Hn(S[0]))),X++;continue}const Ne=Ce(Ee)?Ee.outlets[zt]:`${Ee}`,ut=X<S.length-1?S[X+1]:null;Ne&&ut&&_e(ut)?(k.push(new qe(Ne,Hn(ut))),X+=2):(k.push(new qe(Ne,{})),X++)}return new ct(k,{})}function rr(D){const P={};return pn(D,(S,k)=>{"string"==typeof S&&(S=[S]),null!==S&&(P[k]=an(new ct([],{}),0,S))}),P}function Hn(D){const P={};return pn(D,(S,k)=>P[k]=`${S}`),P}function on(D,P,S){return D==S.path&&vt(P,S.parameters)}const Pr="imperative";class vr{constructor(P,S){this.id=P,this.url=S}}class Lr extends vr{constructor(P,S,k="imperative",X=null){super(P,S),this.type=0,this.navigationTrigger=k,this.restoredState=X}toString(){return`NavigationStart(id: ${this.id}, url: '${this.url}')`}}class _r extends vr{constructor(P,S,k){super(P,S),this.urlAfterRedirects=k,this.type=1}toString(){return`NavigationEnd(id: ${this.id}, url: '${this.url}', urlAfterRedirects: '${this.urlAfterRedirects}')`}}class ar extends vr{constructor(P,S,k,X){super(P,S),this.reason=k,this.code=X,this.type=2}toString(){return`NavigationCancel(id: ${this.id}, url: '${this.url}')`}}class Jn extends vr{constructor(P,S,k,X){super(P,S),this.reason=k,this.code=X,this.type=16}}class fr extends vr{constructor(P,S,k,X){super(P,S),this.error=k,this.target=X,this.type=3}toString(){return`NavigationError(id: ${this.id}, url: '${this.url}', error: ${this.error})`}}class Ur extends vr{constructor(P,S,k,X){super(P,S),this.urlAfterRedirects=k,this.state=X,this.type=4}toString(){return`RoutesRecognized(id: ${this.id}, url: '${this.url}', urlAfterRedirects: '${this.urlAfterRedirects}', state: ${this.state})`}}class ui extends vr{constructor(P,S,k,X){super(P,S),this.urlAfterRedirects=k,this.state=X,this.type=7}toString(){return`GuardsCheckStart(id: ${this.id}, url: '${this.url}', urlAfterRedirects: '${this.urlAfterRedirects}', state: ${this.state})`}}class Ai extends vr{constructor(P,S,k,X,Ee){super(P,S),this.urlAfterRedirects=k,this.state=X,this.shouldActivate=Ee,this.type=8}toString(){return`GuardsCheckEnd(id: ${this.id}, url: '${this.url}', urlAfterRedirects: '${this.urlAfterRedirects}', state: ${this.state}, shouldActivate: ${this.shouldActivate})`}}class Ln extends vr{constructor(P,S,k,X){super(P,S),this.urlAfterRedirects=k,this.state=X,this.type=5}toString(){return`ResolveStart(id: ${this.id}, url: '${this.url}', urlAfterRedirects: '${this.urlAfterRedirects}', state: ${this.state})`}}class Ui extends vr{constructor(P,S,k,X){super(P,S),this.urlAfterRedirects=k,this.state=X,this.type=6}toString(){return`ResolveEnd(id: ${this.id}, url: '${this.url}', urlAfterRedirects: '${this.urlAfterRedirects}', state: ${this.state})`}}class li{constructor(P){this.route=P,this.type=9}toString(){return`RouteConfigLoadStart(path: ${this.route.path})`}}class uo{constructor(P){this.route=P,this.type=10}toString(){return`RouteConfigLoadEnd(path: ${this.route.path})`}}class ki{constructor(P){this.snapshot=P,this.type=11}toString(){return`ChildActivationStart(path: '${this.snapshot.routeConfig&&this.snapshot.routeConfig.path||""}')`}}class Eo{constructor(P){this.snapshot=P,this.type=12}toString(){return`ChildActivationEnd(path: '${this.snapshot.routeConfig&&this.snapshot.routeConfig.path||""}')`}}class ji{constructor(P){this.snapshot=P,this.type=13}toString(){return`ActivationStart(path: '${this.snapshot.routeConfig&&this.snapshot.routeConfig.path||""}')`}}class Ar{constructor(P){this.snapshot=P,this.type=14}toString(){return`ActivationEnd(path: '${this.snapshot.routeConfig&&this.snapshot.routeConfig.path||""}')`}}class So{constructor(P,S,k){this.routerEvent=P,this.position=S,this.anchor=k,this.type=15}toString(){return`Scroll(anchor: '${this.anchor}', position: '${this.position?`${this.position[0]}, ${this.position[1]}`:null}')`}}let Co=(()=>{class D{createUrlTree(S,k,X,Ee,Ne,ut){return Ve(S||k.root,X,Ee,Ne,ut)}}return D.\u0275fac=function(S){return new(S||D)},D.\u0275prov=c.Yz7({token:D,factory:D.\u0275fac}),D})(),Ki=(()=>{class D{}return D.\u0275fac=function(S){return new(S||D)},D.\u0275prov=c.Yz7({token:D,factory:function(P){return Co.\u0275fac(P)},providedIn:"root"}),D})();class ii{constructor(P){this._root=P}get root(){return this._root.value}parent(P){const S=this.pathFromRoot(P);return S.length>1?S[S.length-2]:null}children(P){const S=Yi(P,this._root);return S?S.children.map(k=>k.value):[]}firstChild(P){const S=Yi(P,this._root);return S&&S.children.length>0?S.children[0].value:null}siblings(P){const S=Bo(P,this._root);return S.length<2?[]:S[S.length-2].children.map(X=>X.value).filter(X=>X!==P)}pathFromRoot(P){return Bo(P,this._root).map(S=>S.value)}}function Yi(D,P){if(D===P.value)return P;for(const S of P.children){const k=Yi(D,S);if(k)return k}return null}function Bo(D,P){if(D===P.value)return[P];for(const S of P.children){const k=Bo(D,S);if(k.length)return k.unshift(P),k}return[]}class fi{constructor(P,S){this.value=P,this.children=S}toString(){return`TreeNode(${this.value})`}}function Zi(D){const P={};return D&&D.children.forEach(S=>P[S.value.outlet]=S),P}class lo extends ii{constructor(P,S){super(P),this.snapshot=S,Vo(this,P)}toString(){return this.snapshot.toString()}}function Io(D,P){const S=function Do(D,P){const Ne=new yi([],{},{},"",{},zt,P,null,D.root,-1,{});return new xo("",new fi(Ne,[]))}(D,P),k=new F.X([new qe("",{})]),X=new F.X({}),Ee=new F.X({}),Ne=new F.X({}),ut=new F.X(""),xt=new Bi(k,X,Ne,ut,Ee,zt,P,S.root);return xt.snapshot=S.root,new lo(new fi(xt,[]),S)}class Bi{constructor(P,S,k,X,Ee,Ne,ut,xt){this.url=P,this.params=S,this.queryParams=k,this.fragment=X,this.data=Ee,this.outlet=Ne,this.component=ut,this.title=this.data?.pipe((0,se.U)(Yt=>Yt[je]))??(0,M.of)(void 0),this._futureSnapshot=xt}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,se.U)(P=>re(P)))),this._paramMap}get queryParamMap(){return this._queryParamMap||(this._queryParamMap=this.queryParams.pipe((0,se.U)(P=>re(P)))),this._queryParamMap}toString(){return this.snapshot?this.snapshot.toString():`Future(${this._futureSnapshot})`}}function ns(D,P="emptyOnly"){const S=D.pathFromRoot;let k=0;if("always"!==P)for(k=S.length-1;k>=1;){const X=S[k],Ee=S[k-1];if(X.routeConfig&&""===X.routeConfig.path)k--;else{if(Ee.component)break;k--}}return function Cs(D){return D.reduce((P,S)=>({params:{...P.params,...S.params},data:{...P.data,...S.data},resolve:{...S.data,...P.resolve,...S.routeConfig?.data,...S._resolvedData}}),{params:{},data:{},resolve:{}})}(S.slice(k))}class yi{get title(){return this.data?.[je]}constructor(P,S,k,X,Ee,Ne,ut,xt,Yt,Qt,Zn){this.url=P,this.params=S,this.queryParams=k,this.fragment=X,this.data=Ee,this.outlet=Ne,this.component=ut,this.routeConfig=xt,this._urlSegment=Yt,this._lastPathIndex=Qt,this._resolve=Zn}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=re(this.params)),this._paramMap}get queryParamMap(){return this._queryParamMap||(this._queryParamMap=re(this.queryParams)),this._queryParamMap}toString(){return`Route(url:'${this.url.map(k=>k.toString()).join("/")}', path:'${this.routeConfig?this.routeConfig.path:""}')`}}class xo extends ii{constructor(P,S){super(S),this.url=P,Vo(this,S)}toString(){return rs(this._root)}}function Vo(D,P){P.value._routerState=D,P.children.forEach(S=>Vo(D,S))}function rs(D){const P=D.children.length>0?` { ${D.children.map(rs).join(", ")} } `:"";return`${D.value}${P}`}function Vi(D){if(D.snapshot){const P=D.snapshot,S=D._futureSnapshot;D.snapshot=S,vt(P.queryParams,S.queryParams)||D.queryParams.next(S.queryParams),P.fragment!==S.fragment&&D.fragment.next(S.fragment),vt(P.params,S.params)||D.params.next(S.params),function ot(D,P){if(D.length!==P.length)return!1;for(let S=0;S<D.length;++S)if(!vt(D[S],P[S]))return!1;return!0}(P.url,S.url)||D.url.next(S.url),vt(P.data,S.data)||D.data.next(S.data)}else D.snapshot=D._futureSnapshot,D.data.next(D._futureSnapshot.data)}function Is(D,P){const S=vt(D.params,P.params)&&function et(D,P){return Et(D,P)&&D.every((S,k)=>vt(S.parameters,P[k].parameters))}(D.url,P.url);return S&&!(!D.parent!=!P.parent)&&(!D.parent||Is(D.parent,P.parent))}function co(D,P,S){if(S&&D.shouldReuseRoute(P.value,S.value.snapshot)){const k=S.value;k._futureSnapshot=P.value;const X=function Qr(D,P,S){return P.children.map(k=>{for(const X of S.children)if(D.shouldReuseRoute(k.value,X.value.snapshot))return co(D,k,X);return co(D,k)})}(D,P,S);return new fi(k,X)}{if(D.shouldAttach(P.value)){const Ee=D.retrieve(P.value);if(null!==Ee){const Ne=Ee.route;return Ne.value._futureSnapshot=P.value,Ne.children=P.children.map(ut=>co(D,ut)),Ne}}const k=function Ti(D){return new Bi(new F.X(D.url),new F.X(D.params),new F.X(D.queryParams),new F.X(D.fragment),new F.X(D.data),D.outlet,D.component,D)}(P.value),X=P.children.map(Ee=>co(D,Ee));return new fi(k,X)}}const Pi="ngNavigationCancelingError";function Jr(D,P){const{redirectTo:S,navigationBehaviorOptions:k}=Fr(P)?{redirectTo:P,navigationBehaviorOptions:void 0}:P,X=is(!1,0,P);return X.url=S,X.navigationBehaviorOptions=k,X}function is(D,P,S){const k=new Error("NavigationCancelingError: "+(D||""));return k[Pi]=!0,k.cancellationCode=P,S&&(k.url=S),k}function To(D){return Qi(D)&&Fr(D.url)}function Qi(D){return D&&D[Pi]}class Ho{constructor(){this.outlet=null,this.route=null,this.resolver=null,this.injector=null,this.children=new Hi,this.attachRef=null}}let Hi=(()=>{class D{constructor(){this.contexts=new Map}onChildOutletCreated(S,k){const X=this.getOrCreateContext(S);X.outlet=k,this.contexts.set(S,X)}onChildOutletDestroyed(S){const k=this.getContext(S);k&&(k.outlet=null,k.attachRef=null)}onOutletDeactivated(){const S=this.contexts;return this.contexts=new Map,S}onOutletReAttached(S){this.contexts=S}getOrCreateContext(S){let k=this.getContext(S);return k||(k=new Ho,this.contexts.set(S,k)),k}getContext(S){return this.contexts.get(S)||null}}return D.\u0275fac=function(S){return new(S||D)},D.\u0275prov=c.Yz7({token:D,factory:D.\u0275fac,providedIn:"root"}),D})();const vi=!1;let Ji=(()=>{class D{constructor(){this.activated=null,this._activatedRoute=null,this.name=zt,this.activateEvents=new c.vpe,this.deactivateEvents=new c.vpe,this.attachEvents=new c.vpe,this.detachEvents=new c.vpe,this.parentContexts=(0,c.f3M)(Hi),this.location=(0,c.f3M)(c.s_b),this.changeDetector=(0,c.f3M)(c.sBO),this.environmentInjector=(0,c.f3M)(c.lqb)}ngOnChanges(S){if(S.name){const{firstChange:k,previousValue:X}=S.name;if(k)return;this.isTrackedInParentContexts(X)&&(this.deactivate(),this.parentContexts.onChildOutletDestroyed(X)),this.initializeOutletWithName()}}ngOnDestroy(){this.isTrackedInParentContexts(this.name)&&this.parentContexts.onChildOutletDestroyed(this.name)}isTrackedInParentContexts(S){return this.parentContexts.getContext(S)?.outlet===this}ngOnInit(){this.initializeOutletWithName()}initializeOutletWithName(){if(this.parentContexts.onChildOutletCreated(this.name,this),this.activated)return;const S=this.parentContexts.getContext(this.name);S?.route&&(S.attachRef?this.attach(S.attachRef,S.route):this.activateWith(S.route,S.injector))}get isActivated(){return!!this.activated}get component(){if(!this.activated)throw new c.vHH(4012,vi);return this.activated.instance}get activatedRoute(){if(!this.activated)throw new c.vHH(4012,vi);return this._activatedRoute}get activatedRouteData(){return this._activatedRoute?this._activatedRoute.snapshot.data:{}}detach(){if(!this.activated)throw new c.vHH(4012,vi);this.location.detach();const S=this.activated;return this.activated=null,this._activatedRoute=null,this.detachEvents.emit(S.instance),S}attach(S,k){this.activated=S,this._activatedRoute=k,this.location.insert(S.hostView),this.attachEvents.emit(S.instance)}deactivate(){if(this.activated){const S=this.component;this.activated.destroy(),this.activated=null,this._activatedRoute=null,this.deactivateEvents.emit(S)}}activateWith(S,k){if(this.isActivated)throw new c.vHH(4013,vi);this._activatedRoute=S;const X=this.location,Ne=S.snapshot.component,ut=this.parentContexts.getOrCreateContext(this.name).children,xt=new os(S,ut,X.injector);if(k&&function _i(D){return!!D.resolveComponentFactory}(k)){const Yt=k.resolveComponentFactory(Ne);this.activated=X.createComponent(Yt,X.length,xt)}else this.activated=X.createComponent(Ne,{index:X.length,injector:xt,environmentInjector:k??this.environmentInjector});this.changeDetector.markForCheck(),this.activateEvents.emit(this.activated.instance)}}return D.\u0275fac=function(S){return new(S||D)},D.\u0275dir=c.lG2({type:D,selectors:[["router-outlet"]],inputs:{name:"name"},outputs:{activateEvents:"activate",deactivateEvents:"deactivate",attachEvents:"attach",detachEvents:"detach"},exportAs:["outlet"],standalone:!0,features:[c.TTD]}),D})();class os{constructor(P,S,k){this.route=P,this.childContexts=S,this.parent=k}get(P,S){return P===Bi?this.route:P===Hi?this.childContexts:this.parent.get(P,S)}}let zo=(()=>{class D{}return D.\u0275fac=function(S){return new(S||D)},D.\u0275cmp=c.Xpm({type:D,selectors:[["ng-component"]],standalone:!0,features:[c.jDz],decls:1,vars:0,template:function(S,k){1&S&&c._UZ(0,"router-outlet")},dependencies:[Ji],encapsulation:2}),D})();function tr(D,P){return D.providers&&!D._injector&&(D._injector=(0,c.MMx)(D.providers,P,`Route: ${D.path}`)),D._injector??P}function zi(D){const P=D.children&&D.children.map(zi),S=P?{...D,children:P}:{...D};return!S.component&&!S.loadComponent&&(P||S.loadChildren)&&S.outlet&&S.outlet!==zt&&(S.component=zo),S}function ir(D){return D.outlet||zt}function Go(D,P){const S=D.filter(k=>ir(k)===P);return S.push(...D.filter(k=>ir(k)!==P)),S}function bi(D){if(!D)return null;if(D.routeConfig?._injector)return D.routeConfig._injector;for(let P=D.parent;P;P=P.parent){const S=P.routeConfig;if(S?._loadedInjector)return S._loadedInjector;if(S?._injector)return S._injector}return null}class Z{constructor(P,S,k,X){this.routeReuseStrategy=P,this.futureState=S,this.currState=k,this.forwardEvent=X}activate(P){const S=this.futureState._root,k=this.currState?this.currState._root:null;this.deactivateChildRoutes(S,k,P),Vi(this.futureState.root),this.activateChildRoutes(S,k,P)}deactivateChildRoutes(P,S,k){const X=Zi(S);P.children.forEach(Ee=>{const Ne=Ee.value.outlet;this.deactivateRoutes(Ee,X[Ne],k),delete X[Ne]}),pn(X,(Ee,Ne)=>{this.deactivateRouteAndItsChildren(Ee,k)})}deactivateRoutes(P,S,k){const X=P.value,Ee=S?S.value:null;if(X===Ee)if(X.component){const Ne=k.getContext(X.outlet);Ne&&this.deactivateChildRoutes(P,S,Ne.children)}else this.deactivateChildRoutes(P,S,k);else Ee&&this.deactivateRouteAndItsChildren(S,k)}deactivateRouteAndItsChildren(P,S){P.value.component&&this.routeReuseStrategy.shouldDetach(P.value.snapshot)?this.detachAndStoreRouteSubtree(P,S):this.deactivateRouteAndOutlet(P,S)}detachAndStoreRouteSubtree(P,S){const k=S.getContext(P.value.outlet),X=k&&P.value.component?k.children:S,Ee=Zi(P);for(const Ne of Object.keys(Ee))this.deactivateRouteAndItsChildren(Ee[Ne],X);if(k&&k.outlet){const Ne=k.outlet.detach(),ut=k.children.onOutletDeactivated();this.routeReuseStrategy.store(P.value.snapshot,{componentRef:Ne,route:P,contexts:ut})}}deactivateRouteAndOutlet(P,S){const k=S.getContext(P.value.outlet),X=k&&P.value.component?k.children:S,Ee=Zi(P);for(const Ne of Object.keys(Ee))this.deactivateRouteAndItsChildren(Ee[Ne],X);k&&k.outlet&&(k.outlet.deactivate(),k.children.onOutletDeactivated(),k.attachRef=null,k.resolver=null,k.route=null)}activateChildRoutes(P,S,k){const X=Zi(S);P.children.forEach(Ee=>{this.activateRoutes(Ee,X[Ee.value.outlet],k),this.forwardEvent(new Ar(Ee.value.snapshot))}),P.children.length&&this.forwardEvent(new Eo(P.value.snapshot))}activateRoutes(P,S,k){const X=P.value,Ee=S?S.value:null;if(Vi(X),X===Ee)if(X.component){const Ne=k.getOrCreateContext(X.outlet);this.activateChildRoutes(P,S,Ne.children)}else this.activateChildRoutes(P,S,k);else if(X.component){const Ne=k.getOrCreateContext(X.outlet);if(this.routeReuseStrategy.shouldAttach(X.snapshot)){const ut=this.routeReuseStrategy.retrieve(X.snapshot);this.routeReuseStrategy.store(X.snapshot,null),Ne.children.onOutletReAttached(ut.contexts),Ne.attachRef=ut.componentRef,Ne.route=ut.route.value,Ne.outlet&&Ne.outlet.attach(ut.componentRef,ut.route.value),Vi(ut.route.value),this.activateChildRoutes(P,null,Ne.children)}else{const ut=bi(X.snapshot),xt=ut?.get(c._Vd)??null;Ne.attachRef=null,Ne.route=X,Ne.resolver=xt,Ne.injector=ut,Ne.outlet&&Ne.outlet.activateWith(X,Ne.injector),this.activateChildRoutes(P,null,Ne.children)}}else this.activateChildRoutes(P,null,k)}}class z{constructor(P){this.path=P,this.route=this.path[this.path.length-1]}}class Te{constructor(P,S){this.component=P,this.route=S}}function st(D,P,S){const k=D._root;return Fn(k,P?P._root:null,S,[k.value])}function qn(D,P){const S=Symbol(),k=P.get(D,S);return k===S?"function"!=typeof D||(0,c.Z0I)(D)?P.get(D):D:k}function Fn(D,P,S,k,X={canDeactivateChecks:[],canActivateChecks:[]}){const Ee=Zi(P);return D.children.forEach(Ne=>{(function Mo(D,P,S,k,X={canDeactivateChecks:[],canActivateChecks:[]}){const Ee=D.value,Ne=P?P.value:null,ut=S?S.getContext(D.value.outlet):null;if(Ne&&Ee.routeConfig===Ne.routeConfig){const xt=function Oo(D,P,S){if("function"==typeof S)return S(D,P);switch(S){case"pathParamsChange":return!Et(D.url,P.url);case"pathParamsOrQueryParamsChange":return!Et(D.url,P.url)||!vt(D.queryParams,P.queryParams);case"always":return!0;case"paramsOrQueryParamsChange":return!Is(D,P)||!vt(D.queryParams,P.queryParams);default:return!Is(D,P)}}(Ne,Ee,Ee.routeConfig.runGuardsAndResolvers);xt?X.canActivateChecks.push(new z(k)):(Ee.data=Ne.data,Ee._resolvedData=Ne._resolvedData),Fn(D,P,Ee.component?ut?ut.children:null:S,k,X),xt&&ut&&ut.outlet&&ut.outlet.isActivated&&X.canDeactivateChecks.push(new Te(ut.outlet.component,Ne))}else Ne&&Ro(P,ut,X),X.canActivateChecks.push(new z(k)),Fn(D,null,Ee.component?ut?ut.children:null:S,k,X)})(Ne,Ee[Ne.value.outlet],S,k.concat([Ne.value]),X),delete Ee[Ne.value.outlet]}),pn(Ee,(Ne,ut)=>Ro(Ne,S.getContext(ut),X)),X}function Ro(D,P,S){const k=Zi(D),X=D.value;pn(k,(Ee,Ne)=>{Ro(Ee,X.component?P?P.children.getContext(Ne):null:P,S)}),S.canDeactivateChecks.push(new Te(X.component&&P&&P.outlet&&P.outlet.isActivated?P.outlet.component:null,X))}function as(D){return"function"==typeof D}function hi(D){return D instanceof O.K||"EmptyError"===D?.name}const po=Symbol("INITIAL_VALUE");function pi(){return Me(D=>(0,w.aj)(D.map(P=>P.pipe((0,Be.q)(1),function R(...D){const P=D[D.length-1];return(0,le.K)(P)?(D.pop(),S=>(0,y.z)(D,S,P)):S=>(0,y.z)(D,S)}(po)))).pipe((0,se.U)(P=>{for(const S of P)if(!0!==S){if(S===po)return po;if(!1===S||S instanceof Vn)return S}return!0}),(0,U.h)(P=>P!==po),(0,Be.q)(1)))}function As(D){return(0,x.z)((0,Q.b)(P=>{if(Fr(P))throw Jr(0,P)}),(0,se.U)(P=>!0===P))}const Ts={matched:!1,consumedSegments:[],remainingSegments:[],parameters:{},positionalParamSegments:{}};function cs(D,P,S,k,X){const Ee=Wo(D,P,S);return Ee.matched?function _a(D,P,S,k){const X=P.canMatch;if(!X||0===X.length)return(0,M.of)(!0);const Ee=X.map(Ne=>{const ut=qn(Ne,D);return cn(function Rr(D){return D&&as(D.canMatch)}(ut)?ut.canMatch(P,S):D.runInContext(()=>ut(P,S)))});return(0,M.of)(Ee).pipe(pi(),As())}(k=tr(P,k),P,S).pipe((0,se.U)(Ne=>!0===Ne?Ee:{...Ts})):(0,M.of)(Ee)}function Wo(D,P,S){if(""===P.path)return"full"===P.pathMatch&&(D.hasChildren()||S.length>0)?{...Ts}:{matched:!0,consumedSegments:[],remainingSegments:S,parameters:{},positionalParamSegments:{}};const X=(P.matcher||$e)(S,D,P);if(!X)return{...Ts};const Ee={};pn(X.posParams,(ut,xt)=>{Ee[xt]=ut.path});const Ne=X.consumed.length>0?{...Ee,...X.consumed[X.consumed.length-1].parameters}:Ee;return{matched:!0,consumedSegments:X.consumed,remainingSegments:S.slice(X.consumed.length),parameters:Ne,positionalParamSegments:X.posParams??{}}}function ds(D,P,S,k){if(S.length>0&&function qs(D,P,S){return S.some(k=>cr(D,P,k)&&ir(k)!==zt)}(D,S,k)){const Ee=new ct(P,function Js(D,P,S,k){const X={};X[zt]=k,k._sourceSegment=D,k._segmentIndexShift=P.length;for(const Ee of S)if(""===Ee.path&&ir(Ee)!==zt){const Ne=new ct([],{});Ne._sourceSegment=D,Ne._segmentIndexShift=P.length,X[ir(Ee)]=Ne}return X}(D,P,k,new ct(S,D.children)));return Ee._sourceSegment=D,Ee._segmentIndexShift=P.length,{segmentGroup:Ee,slicedSegments:[]}}if(0===S.length&&function go(D,P,S){return S.some(k=>cr(D,P,k))}(D,S,k)){const Ee=new ct(D.segments,function Ps(D,P,S,k,X){const Ee={};for(const Ne of k)if(cr(D,S,Ne)&&!X[ir(Ne)]){const ut=new ct([],{});ut._sourceSegment=D,ut._segmentIndexShift=P.length,Ee[ir(Ne)]=ut}return{...X,...Ee}}(D,P,S,k,D.children));return Ee._sourceSegment=D,Ee._segmentIndexShift=P.length,{segmentGroup:Ee,slicedSegments:S}}const X=new ct(D.segments,D.children);return X._sourceSegment=D,X._segmentIndexShift=P.length,{segmentGroup:X,slicedSegments:S}}function cr(D,P,S){return(!(D.hasChildren()||P.length>0)||"full"!==S.pathMatch)&&""===S.path}function fs(D,P,S,k){return!!(ir(D)===k||k!==zt&&cr(P,S,D))&&("**"===D.path||Wo(P,D,S).matched)}function hr(D,P,S){return 0===P.length&&!D.children[S]}const to=!1;class ur{constructor(P){this.segmentGroup=P||null}}class ci{constructor(P){this.urlTree=P}}function br(D){return(0,N._)(new ur(D))}function Un(D){return(0,N._)(new ci(D))}class Za{constructor(P,S,k,X,Ee){this.injector=P,this.configLoader=S,this.urlSerializer=k,this.urlTree=X,this.config=Ee,this.allowRedirects=!0}apply(){const P=ds(this.urlTree.root,[],[],this.config).segmentGroup,S=new ct(P.segments,P.children);return this.expandSegmentGroup(this.injector,this.config,S,zt).pipe((0,se.U)(Ee=>this.createUrlTree(Fi(Ee),this.urlTree.queryParams,this.urlTree.fragment))).pipe((0,ye.K)(Ee=>{if(Ee instanceof ci)return this.allowRedirects=!1,this.match(Ee.urlTree);throw Ee instanceof ur?this.noMatchError(Ee):Ee}))}match(P){return this.expandSegmentGroup(this.injector,this.config,P.root,zt).pipe((0,se.U)(X=>this.createUrlTree(Fi(X),P.queryParams,P.fragment))).pipe((0,ye.K)(X=>{throw X instanceof ur?this.noMatchError(X):X}))}noMatchError(P){return new c.vHH(4002,to)}createUrlTree(P,S,k){const X=Er(P);return new Vn(X,S,k)}expandSegmentGroup(P,S,k,X){return 0===k.segments.length&&k.hasChildren()?this.expandChildren(P,S,k).pipe((0,se.U)(Ee=>new ct([],Ee))):this.expandSegment(P,k,S,k.segments,X,!0)}expandChildren(P,S,k){const X=[];for(const Ee of Object.keys(k.children))"primary"===Ee?X.unshift(Ee):X.push(Ee);return(0,b.D)(X).pipe((0,ge.b)(Ee=>{const Ne=k.children[Ee],ut=Go(S,Ee);return this.expandSegmentGroup(P,ut,Ne,Ee).pipe((0,se.U)(xt=>({segment:xt,outlet:Ee})))}),Ye((Ee,Ne)=>(Ee[Ne.outlet]=Ne.segment,Ee),{}),yt())}expandSegment(P,S,k,X,Ee,Ne){return(0,b.D)(k).pipe((0,ge.b)(ut=>this.expandSegmentAgainstRoute(P,S,k,ut,X,Ee,Ne).pipe((0,ye.K)(Yt=>{if(Yt instanceof ur)return(0,M.of)(null);throw Yt}))),(0,oe.P)(ut=>!!ut),(0,ye.K)((ut,xt)=>{if(hi(ut))return hr(S,X,Ee)?(0,M.of)(new ct([],{})):br(S);throw ut}))}expandSegmentAgainstRoute(P,S,k,X,Ee,Ne,ut){return fs(X,S,Ee,Ne)?void 0===X.redirectTo?this.matchSegmentAgainstRoute(P,S,X,Ee,Ne):ut&&this.allowRedirects?this.expandSegmentAgainstRouteUsingRedirect(P,S,k,X,Ee,Ne):br(S):br(S)}expandSegmentAgainstRouteUsingRedirect(P,S,k,X,Ee,Ne){return"**"===X.path?this.expandWildCardWithParamsAgainstRouteUsingRedirect(P,k,X,Ne):this.expandRegularSegmentAgainstRouteUsingRedirect(P,S,k,X,Ee,Ne)}expandWildCardWithParamsAgainstRouteUsingRedirect(P,S,k,X){const Ee=this.applyRedirectCommands([],k.redirectTo,{});return k.redirectTo.startsWith("/")?Un(Ee):this.lineralizeSegments(k,Ee).pipe((0,W.zg)(Ne=>{const ut=new ct(Ne,{});return this.expandSegment(P,ut,S,Ne,X,!1)}))}expandRegularSegmentAgainstRouteUsingRedirect(P,S,k,X,Ee,Ne){const{matched:ut,consumedSegments:xt,remainingSegments:Yt,positionalParamSegments:Qt}=Wo(S,X,Ee);if(!ut)return br(S);const Zn=this.applyRedirectCommands(xt,X.redirectTo,Qt);return X.redirectTo.startsWith("/")?Un(Zn):this.lineralizeSegments(X,Zn).pipe((0,W.zg)(Kr=>this.expandSegment(P,S,k,Kr.concat(Yt),Ne,!1)))}matchSegmentAgainstRoute(P,S,k,X,Ee){return"**"===k.path?(P=tr(k,P),k.loadChildren?(k._loadedRoutes?(0,M.of)({routes:k._loadedRoutes,injector:k._loadedInjector}):this.configLoader.loadChildren(P,k)).pipe((0,se.U)(ut=>(k._loadedRoutes=ut.routes,k._loadedInjector=ut.injector,new ct(X,{})))):(0,M.of)(new ct(X,{}))):cs(S,k,X,P).pipe(Me(({matched:Ne,consumedSegments:ut,remainingSegments:xt})=>Ne?this.getChildConfig(P=k._injector??P,k,X).pipe((0,W.zg)(Qt=>{const Zn=Qt.injector??P,Kr=Qt.routes,{segmentGroup:ro,slicedSegments:Fo}=ds(S,ut,xt,Kr),wo=new ct(ro.segments,ro.children);if(0===Fo.length&&wo.hasChildren())return this.expandChildren(Zn,Kr,wo).pipe((0,se.U)(Sa=>new ct(ut,Sa)));if(0===Kr.length&&0===Fo.length)return(0,M.of)(new ct(ut,{}));const io=ir(k)===Ee;return this.expandSegment(Zn,wo,Kr,Fo,io?zt:Ee,!0).pipe((0,se.U)(gs=>new ct(ut.concat(gs.segments),gs.children)))})):br(S)))}getChildConfig(P,S,k){return S.children?(0,M.of)({routes:S.children,injector:P}):S.loadChildren?void 0!==S._loadedRoutes?(0,M.of)({routes:S._loadedRoutes,injector:S._loadedInjector}):function va(D,P,S,k){const X=P.canLoad;if(void 0===X||0===X.length)return(0,M.of)(!0);const Ee=X.map(Ne=>{const ut=qn(Ne,D);return cn(function Mt(D){return D&&as(D.canLoad)}(ut)?ut.canLoad(P,S):D.runInContext(()=>ut(P,S)))});return(0,M.of)(Ee).pipe(pi(),As())}(P,S,k).pipe((0,W.zg)(X=>X?this.configLoader.loadChildren(P,S).pipe((0,Q.b)(Ee=>{S._loadedRoutes=Ee.routes,S._loadedInjector=Ee.injector})):function pr(D){return(0,N._)(is(to,3))}())):(0,M.of)({routes:[],injector:P})}lineralizeSegments(P,S){let k=[],X=S.root;for(;;){if(k=k.concat(X.segments),0===X.numberOfChildren)return(0,M.of)(k);if(X.numberOfChildren>1||!X.children[zt])return P.redirectTo,(0,N._)(new c.vHH(4e3,to));X=X.children[zt]}}applyRedirectCommands(P,S,k){return this.applyRedirectCreateUrlTree(S,this.urlSerializer.parse(S),P,k)}applyRedirectCreateUrlTree(P,S,k,X){const Ee=this.createSegmentGroup(P,S.root,k,X);return new Vn(Ee,this.createQueryParams(S.queryParams,this.urlTree.queryParams),S.fragment)}createQueryParams(P,S){const k={};return pn(P,(X,Ee)=>{if("string"==typeof X&&X.startsWith(":")){const ut=X.substring(1);k[Ee]=S[ut]}else k[Ee]=X}),k}createSegmentGroup(P,S,k,X){const Ee=this.createSegments(P,S.segments,k,X);let Ne={};return pn(S.children,(ut,xt)=>{Ne[xt]=this.createSegmentGroup(P,ut,k,X)}),new ct(Ee,Ne)}createSegments(P,S,k,X){return S.map(Ee=>Ee.path.startsWith(":")?this.findPosParam(P,Ee,X):this.findOrReturn(Ee,k))}findPosParam(P,S,k){const X=k[S.path.substring(1)];if(!X)throw new c.vHH(4001,to);return X}findOrReturn(P,S){let k=0;for(const X of S){if(X.path===P.path)return S.splice(k),X;k++}return P}}class h{}class j{constructor(P,S,k,X,Ee,Ne,ut){this.injector=P,this.rootComponentType=S,this.config=k,this.urlTree=X,this.url=Ee,this.paramsInheritanceStrategy=Ne,this.urlSerializer=ut}recognize(){const P=ds(this.urlTree.root,[],[],this.config.filter(S=>void 0===S.redirectTo)).segmentGroup;return this.processSegmentGroup(this.injector,this.config,P,zt).pipe((0,se.U)(S=>{if(null===S)return null;const k=new yi([],Object.freeze({}),Object.freeze({...this.urlTree.queryParams}),this.urlTree.fragment,{},zt,this.rootComponentType,null,this.urlTree.root,-1,{}),X=new fi(k,S),Ee=new xo(this.url,X);return this.inheritParamsAndData(Ee._root),Ee}))}inheritParamsAndData(P){const S=P.value,k=ns(S,this.paramsInheritanceStrategy);S.params=Object.freeze(k.params),S.data=Object.freeze(k.data),P.children.forEach(X=>this.inheritParamsAndData(X))}processSegmentGroup(P,S,k,X){return 0===k.segments.length&&k.hasChildren()?this.processChildren(P,S,k):this.processSegment(P,S,k,k.segments,X)}processChildren(P,S,k){return(0,b.D)(Object.keys(k.children)).pipe((0,ge.b)(X=>{const Ee=k.children[X],Ne=Go(S,X);return this.processSegmentGroup(P,Ne,Ee,X)}),Ye((X,Ee)=>X&&Ee?(X.push(...Ee),X):null),function Pt(D,P=!1){return S=>S.lift(new Zt(D,P))}(X=>null!==X),(0,pt.d)(null),yt(),(0,se.U)(X=>{if(null===X)return null;const Ee=at(X);return function pe(D){D.sort((P,S)=>P.value.outlet===zt?-1:S.value.outlet===zt?1:P.value.outlet.localeCompare(S.value.outlet))}(Ee),Ee}))}processSegment(P,S,k,X,Ee){return(0,b.D)(S).pipe((0,ge.b)(Ne=>this.processSegmentAgainstRoute(Ne._injector??P,Ne,k,X,Ee)),(0,oe.P)(Ne=>!!Ne),(0,ye.K)(Ne=>{if(hi(Ne))return hr(k,X,Ee)?(0,M.of)([]):(0,M.of)(null);throw Ne}))}processSegmentAgainstRoute(P,S,k,X,Ee){if(S.redirectTo||!fs(S,k,X,Ee))return(0,M.of)(null);let Ne;if("**"===S.path){const ut=X.length>0?Nt(X).parameters:{},xt=Ot(k)+X.length,Yt=new yi(X,ut,Object.freeze({...this.urlTree.queryParams}),this.urlTree.fragment,Kt(S),ir(S),S.component??S._loadedComponent??null,S,Tt(k),xt,Jt(S));Ne=(0,M.of)({snapshot:Yt,consumedSegments:[],remainingSegments:[]})}else Ne=cs(k,S,X,P).pipe((0,se.U)(({matched:ut,consumedSegments:xt,remainingSegments:Yt,parameters:Qt})=>{if(!ut)return null;const Zn=Ot(k)+xt.length;return{snapshot:new yi(xt,Qt,Object.freeze({...this.urlTree.queryParams}),this.urlTree.fragment,Kt(S),ir(S),S.component??S._loadedComponent??null,S,Tt(k),Zn,Jt(S)),consumedSegments:xt,remainingSegments:Yt}}));return Ne.pipe(Me(ut=>{if(null===ut)return(0,M.of)(null);const{snapshot:xt,consumedSegments:Yt,remainingSegments:Qt}=ut;P=S._injector??P;const Zn=S._loadedInjector??P,Kr=function Re(D){return D.children?D.children:D.loadChildren?D._loadedRoutes:[]}(S),{segmentGroup:ro,slicedSegments:Fo}=ds(k,Yt,Qt,Kr.filter(io=>void 0===io.redirectTo));if(0===Fo.length&&ro.hasChildren())return this.processChildren(Zn,Kr,ro).pipe((0,se.U)(io=>null===io?null:[new fi(xt,io)]));if(0===Kr.length&&0===Fo.length)return(0,M.of)([new fi(xt,[])]);const wo=ir(S)===Ee;return this.processSegment(Zn,Kr,ro,Fo,wo?zt:Ee).pipe((0,se.U)(io=>null===io?null:[new fi(xt,io)]))}))}}function We(D){const P=D.value.routeConfig;return P&&""===P.path&&void 0===P.redirectTo}function at(D){const P=[],S=new Set;for(const k of D){if(!We(k)){P.push(k);continue}const X=P.find(Ee=>k.value.routeConfig===Ee.value.routeConfig);void 0!==X?(X.children.push(...k.children),S.add(X)):P.push(k)}for(const k of S){const X=at(k.children);P.push(new fi(k.value,X))}return P.filter(k=>!S.has(k))}function Tt(D){let P=D;for(;P._sourceSegment;)P=P._sourceSegment;return P}function Ot(D){let P=D,S=P._segmentIndexShift??0;for(;P._sourceSegment;)P=P._sourceSegment,S+=P._segmentIndexShift??0;return S-1}function Kt(D){return D.data||{}}function Jt(D){return D.resolve||{}}function wi(D){return"string"==typeof D.title||null===D.title}function Xr(D){return Me(P=>{const S=D(P);return S?(0,b.D)(S).pipe((0,se.U)(()=>P)):(0,M.of)(P)})}const Gr=new c.OlP("ROUTES");let Ei=(()=>{class D{constructor(S,k){this.injector=S,this.compiler=k,this.componentLoaders=new WeakMap,this.childrenLoaders=new WeakMap}loadComponent(S){if(this.componentLoaders.get(S))return this.componentLoaders.get(S);if(S._loadedComponent)return(0,M.of)(S._loadedComponent);this.onLoadStartListener&&this.onLoadStartListener(S);const k=cn(S.loadComponent()).pipe((0,se.U)(yo),(0,Q.b)(Ee=>{this.onLoadEndListener&&this.onLoadEndListener(S),S._loadedComponent=Ee}),(0,hn.x)(()=>{this.componentLoaders.delete(S)})),X=new B.c(k,()=>new q.xQ).pipe((0,xn.x)());return this.componentLoaders.set(S,X),X}loadChildren(S,k){if(this.childrenLoaders.get(k))return this.childrenLoaders.get(k);if(k._loadedRoutes)return(0,M.of)({routes:k._loadedRoutes,injector:k._loadedInjector});this.onLoadStartListener&&this.onLoadStartListener(k);const Ee=this.loadModuleFactoryOrRoutes(k.loadChildren).pipe((0,se.U)(ut=>{this.onLoadEndListener&&this.onLoadEndListener(k);let xt,Yt,Qt=!1;Array.isArray(ut)?Yt=ut:(xt=ut.create(S).injector,Yt=Ht(xt.get(Gr,[],c.XFs.Self|c.XFs.Optional)));return{routes:Yt.map(zi),injector:xt}}),(0,hn.x)(()=>{this.childrenLoaders.delete(k)})),Ne=new B.c(Ee,()=>new q.xQ).pipe((0,xn.x)());return this.childrenLoaders.set(k,Ne),Ne}loadModuleFactoryOrRoutes(S){return cn(S()).pipe((0,se.U)(yo),(0,W.zg)(X=>X instanceof c.YKP||Array.isArray(X)?(0,M.of)(X):(0,b.D)(this.compiler.compileModuleAsync(X))))}}return D.\u0275fac=function(S){return new(S||D)(c.LFG(c.zs3),c.LFG(c.Sil))},D.\u0275prov=c.Yz7({token:D,factory:D.\u0275fac,providedIn:"root"}),D})();function yo(D){return function hs(D){return D&&"object"==typeof D&&"default"in D}(D)?D.default:D}let Ms=(()=>{class D{get hasRequestedNavigation(){return 0!==this.navigationId}constructor(){this.currentNavigation=null,this.lastSuccessfulNavigation=null,this.events=new q.xQ,this.configLoader=(0,c.f3M)(Ei),this.environmentInjector=(0,c.f3M)(c.lqb),this.urlSerializer=(0,c.f3M)(Xt),this.rootContexts=(0,c.f3M)(Hi),this.navigationId=0,this.afterPreactivation=()=>(0,M.of)(void 0),this.rootComponentType=null,this.configLoader.onLoadEndListener=X=>this.events.next(new uo(X)),this.configLoader.onLoadStartListener=X=>this.events.next(new li(X))}complete(){this.transitions?.complete()}handleNavigationRequest(S){const k=++this.navigationId;this.transitions?.next({...this.transitions.value,...S,id:k})}setupNavigations(S){return this.transitions=new F.X({id:0,targetPageId:0,currentUrlTree:S.currentUrlTree,currentRawUrl:S.currentUrlTree,extractedUrl:S.urlHandlingStrategy.extract(S.currentUrlTree),urlAfterRedirects:S.urlHandlingStrategy.extract(S.currentUrlTree),rawUrl:S.currentUrlTree,extras:{},resolve:null,reject:null,promise:Promise.resolve(!0),source:Pr,restoredState:null,currentSnapshot:S.routerState.snapshot,targetSnapshot:null,currentRouterState:S.routerState,targetRouterState:null,guards:{canActivateChecks:[],canDeactivateChecks:[]},guardsResult:null}),this.transitions.pipe((0,U.h)(k=>0!==k.id),(0,se.U)(k=>({...k,extractedUrl:S.urlHandlingStrategy.extract(k.rawUrl)})),Me(k=>{let X=!1,Ee=!1;return(0,M.of)(k).pipe((0,Q.b)(Ne=>{this.currentNavigation={id:Ne.id,initialUrl:Ne.rawUrl,extractedUrl:Ne.extractedUrl,trigger:Ne.source,extras:Ne.extras,previousNavigation:this.lastSuccessfulNavigation?{...this.lastSuccessfulNavigation,previousNavigation:null}:null}}),Me(Ne=>{const ut=S.browserUrlTree.toString(),xt=!S.navigated||Ne.extractedUrl.toString()!==ut||ut!==S.currentUrlTree.toString();if(!xt&&"reload"!==(Ne.extras.onSameUrlNavigation??S.onSameUrlNavigation)){const Qt="";return this.events.next(new Jn(Ne.id,S.serializeUrl(k.rawUrl),Qt,0)),S.rawUrlTree=Ne.rawUrl,Ne.resolve(null),V.E}if(S.urlHandlingStrategy.shouldProcessUrl(Ne.rawUrl))return Os(Ne.source)&&(S.browserUrlTree=Ne.extractedUrl),(0,M.of)(Ne).pipe(Me(Qt=>{const Zn=this.transitions?.getValue();return this.events.next(new Lr(Qt.id,this.urlSerializer.serialize(Qt.extractedUrl),Qt.source,Qt.restoredState)),Zn!==this.transitions?.getValue()?V.E:Promise.resolve(Qt)}),function ea(D,P,S,k){return Me(X=>function Xs(D,P,S,k,X){return new Za(D,P,S,k,X).apply()}(D,P,S,X.extractedUrl,k).pipe((0,se.U)(Ee=>({...X,urlAfterRedirects:Ee}))))}(this.environmentInjector,this.configLoader,this.urlSerializer,S.config),(0,Q.b)(Qt=>{this.currentNavigation={...this.currentNavigation,finalUrl:Qt.urlAfterRedirects},k.urlAfterRedirects=Qt.urlAfterRedirects}),function mn(D,P,S,k,X){return(0,W.zg)(Ee=>function C(D,P,S,k,X,Ee,Ne="emptyOnly"){return new j(D,P,S,k,X,Ne,Ee).recognize().pipe(Me(ut=>null===ut?function f(D){return new T.y(P=>P.error(D))}(new h):(0,M.of)(ut)))}(D,P,S,Ee.urlAfterRedirects,k.serialize(Ee.urlAfterRedirects),k,X).pipe((0,se.U)(Ne=>({...Ee,targetSnapshot:Ne}))))}(this.environmentInjector,this.rootComponentType,S.config,this.urlSerializer,S.paramsInheritanceStrategy),(0,Q.b)(Qt=>{if(k.targetSnapshot=Qt.targetSnapshot,"eager"===S.urlUpdateStrategy){if(!Qt.extras.skipLocationChange){const Kr=S.urlHandlingStrategy.merge(Qt.urlAfterRedirects,Qt.rawUrl);S.setBrowserUrl(Kr,Qt)}S.browserUrlTree=Qt.urlAfterRedirects}const Zn=new Ur(Qt.id,this.urlSerializer.serialize(Qt.extractedUrl),this.urlSerializer.serialize(Qt.urlAfterRedirects),Qt.targetSnapshot);this.events.next(Zn)}));if(xt&&S.urlHandlingStrategy.shouldProcessUrl(S.rawUrlTree)){const{id:Qt,extractedUrl:Zn,source:Kr,restoredState:ro,extras:Fo}=Ne,wo=new Lr(Qt,this.urlSerializer.serialize(Zn),Kr,ro);this.events.next(wo);const io=Io(Zn,this.rootComponentType).snapshot;return k={...Ne,targetSnapshot:io,urlAfterRedirects:Zn,extras:{...Fo,skipLocationChange:!1,replaceUrl:!1}},(0,M.of)(k)}{const Qt="";return this.events.next(new Jn(Ne.id,S.serializeUrl(k.extractedUrl),Qt,1)),S.rawUrlTree=Ne.rawUrl,Ne.resolve(null),V.E}}),(0,Q.b)(Ne=>{const ut=new ui(Ne.id,this.urlSerializer.serialize(Ne.extractedUrl),this.urlSerializer.serialize(Ne.urlAfterRedirects),Ne.targetSnapshot);this.events.next(ut)}),(0,se.U)(Ne=>k={...Ne,guards:st(Ne.targetSnapshot,Ne.currentSnapshot,this.rootContexts)}),function qi(D,P){return(0,W.zg)(S=>{const{targetSnapshot:k,currentSnapshot:X,guards:{canActivateChecks:Ee,canDeactivateChecks:Ne}}=S;return 0===Ne.length&&0===Ee.length?(0,M.of)({...S,guardsResult:!0}):function Ya(D,P,S,k){return(0,b.D)(D).pipe((0,W.zg)(X=>function qr(D,P,S,k,X){const Ee=P&&P.routeConfig?P.routeConfig.canDeactivate:null;if(!Ee||0===Ee.length)return(0,M.of)(!0);const Ne=Ee.map(ut=>{const xt=bi(P)??X,Yt=qn(ut,xt);return cn(function Ds(D){return D&&as(D.canDeactivate)}(Yt)?Yt.canDeactivate(D,P,S,k):xt.runInContext(()=>Yt(D,P,S,k))).pipe((0,oe.P)())});return(0,M.of)(Ne).pipe(pi())}(X.component,X.route,S,P,k)),(0,oe.P)(X=>!0!==X,!0))}(Ne,k,X,D).pipe((0,W.zg)(ut=>ut&&function ma(D){return"boolean"==typeof D}(ut)?function ls(D,P,S,k){return(0,b.D)(P).pipe((0,ge.b)(X=>(0,y.z)(function Xi(D,P){return null!==D&&P&&P(new ki(D)),(0,M.of)(!0)}(X.route.parent,k),function Br(D,P){return null!==D&&P&&P(new ji(D)),(0,M.of)(!0)}(X.route,k),function eo(D,P,S){const k=P[P.length-1],Ee=P.slice(0,P.length-1).reverse().map(Ne=>function en(D){const P=D.routeConfig?D.routeConfig.canActivateChild:null;return P&&0!==P.length?{node:D,guards:P}:null}(Ne)).filter(Ne=>null!==Ne).map(Ne=>(0,g.P)(()=>{const ut=Ne.guards.map(xt=>{const Yt=bi(Ne.node)??S,Qt=qn(xt,Yt);return cn(function ya(D){return D&&as(D.canActivateChild)}(Qt)?Qt.canActivateChild(k,D):Yt.runInContext(()=>Qt(k,D))).pipe((0,oe.P)())});return(0,M.of)(ut).pipe(pi())}));return(0,M.of)(Ee).pipe(pi())}(D,X.path,S),function xs(D,P,S){const k=P.routeConfig?P.routeConfig.canActivate:null;if(!k||0===k.length)return(0,M.of)(!0);const X=k.map(Ee=>(0,g.P)(()=>{const Ne=bi(P)??S,ut=qn(Ee,Ne);return cn(function jn(D){return D&&as(D.canActivate)}(ut)?ut.canActivate(P,D):Ne.runInContext(()=>ut(P,D))).pipe((0,oe.P)())}));return(0,M.of)(X).pipe(pi())}(D,X.route,S))),(0,oe.P)(X=>!0!==X,!0))}(k,Ee,D,P):(0,M.of)(ut)),(0,se.U)(ut=>({...S,guardsResult:ut})))})}(this.environmentInjector,Ne=>this.events.next(Ne)),(0,Q.b)(Ne=>{if(k.guardsResult=Ne.guardsResult,Fr(Ne.guardsResult))throw Jr(0,Ne.guardsResult);const ut=new Ai(Ne.id,this.urlSerializer.serialize(Ne.extractedUrl),this.urlSerializer.serialize(Ne.urlAfterRedirects),Ne.targetSnapshot,!!Ne.guardsResult);this.events.next(ut)}),(0,U.h)(Ne=>!!Ne.guardsResult||(S.restoreHistory(Ne),this.cancelNavigationTransition(Ne,"",3),!1)),Xr(Ne=>{if(Ne.guards.canActivateChecks.length)return(0,M.of)(Ne).pipe((0,Q.b)(ut=>{const xt=new Ln(ut.id,this.urlSerializer.serialize(ut.extractedUrl),this.urlSerializer.serialize(ut.urlAfterRedirects),ut.targetSnapshot);this.events.next(xt)}),Me(ut=>{let xt=!1;return(0,M.of)(ut).pipe(function An(D,P){return(0,W.zg)(S=>{const{targetSnapshot:k,guards:{canActivateChecks:X}}=S;if(!X.length)return(0,M.of)(S);let Ee=0;return(0,b.D)(X).pipe((0,ge.b)(Ne=>function Wn(D,P,S,k){const X=D.routeConfig,Ee=D._resolve;return void 0!==X?.title&&!wi(X)&&(Ee[je]=X.title),function dr(D,P,S,k){const X=function Sr(D){return[...Object.keys(D),...Object.getOwnPropertySymbols(D)]}(D);if(0===X.length)return(0,M.of)({});const Ee={};return(0,b.D)(X).pipe((0,W.zg)(Ne=>function Cr(D,P,S,k){const X=bi(P)??k,Ee=qn(D,X);return cn(Ee.resolve?Ee.resolve(P,S):X.runInContext(()=>Ee(P,S)))}(D[Ne],P,S,k).pipe((0,oe.P)(),(0,Q.b)(ut=>{Ee[Ne]=ut}))),ve(1),function qt(D){return P=>P.lift(new Ut(D))}(Ee),(0,ye.K)(Ne=>hi(Ne)?V.E:(0,N._)(Ne)))}(Ee,D,P,k).pipe((0,se.U)(Ne=>(D._resolvedData=Ne,D.data=ns(D,S).resolve,X&&wi(X)&&(D.data[je]=X.title),null)))}(Ne.route,k,D,P)),(0,Q.b)(()=>Ee++),ve(1),(0,W.zg)(Ne=>Ee===X.length?(0,M.of)(S):V.E))})}(S.paramsInheritanceStrategy,this.environmentInjector),(0,Q.b)({next:()=>xt=!0,complete:()=>{xt||(S.restoreHistory(ut),this.cancelNavigationTransition(ut,"",2))}}))}),(0,Q.b)(ut=>{const xt=new Ui(ut.id,this.urlSerializer.serialize(ut.extractedUrl),this.urlSerializer.serialize(ut.urlAfterRedirects),ut.targetSnapshot);this.events.next(xt)}))}),Xr(Ne=>{const ut=xt=>{const Yt=[];xt.routeConfig?.loadComponent&&!xt.routeConfig._loadedComponent&&Yt.push(this.configLoader.loadComponent(xt.routeConfig).pipe((0,Q.b)(Qt=>{xt.component=Qt}),(0,se.U)(()=>{})));for(const Qt of xt.children)Yt.push(...ut(Qt));return Yt};return(0,w.aj)(ut(Ne.targetSnapshot.root)).pipe((0,pt.d)(),(0,Be.q)(1))}),Xr(()=>this.afterPreactivation()),(0,se.U)(Ne=>{const ut=function Ao(D,P,S){const k=co(D,P._root,S?S._root:void 0);return new lo(k,P)}(S.routeReuseStrategy,Ne.targetSnapshot,Ne.currentRouterState);return k={...Ne,targetRouterState:ut}}),(0,Q.b)(Ne=>{S.currentUrlTree=Ne.urlAfterRedirects,S.rawUrlTree=S.urlHandlingStrategy.merge(Ne.urlAfterRedirects,Ne.rawUrl),S.routerState=Ne.targetRouterState,"deferred"===S.urlUpdateStrategy&&(Ne.extras.skipLocationChange||S.setBrowserUrl(S.rawUrlTree,Ne),S.browserUrlTree=Ne.urlAfterRedirects)}),((D,P,S)=>(0,se.U)(k=>(new Z(P,k.targetRouterState,k.currentRouterState,S).activate(D),k)))(this.rootContexts,S.routeReuseStrategy,Ne=>this.events.next(Ne)),(0,Q.b)({next:Ne=>{X=!0,this.lastSuccessfulNavigation=this.currentNavigation,S.navigated=!0,this.events.next(new _r(Ne.id,this.urlSerializer.serialize(Ne.extractedUrl),this.urlSerializer.serialize(S.currentUrlTree))),S.titleStrategy?.updateTitle(Ne.targetRouterState.snapshot),Ne.resolve(!0)},complete:()=>{X=!0}}),(0,hn.x)(()=>{X||Ee||this.cancelNavigationTransition(k,"",1),this.currentNavigation?.id===k.id&&(this.currentNavigation=null)}),(0,ye.K)(Ne=>{if(Ee=!0,Qi(Ne)){To(Ne)||(S.navigated=!0,S.restoreHistory(k,!0));const ut=new ar(k.id,this.urlSerializer.serialize(k.extractedUrl),Ne.message,Ne.cancellationCode);if(this.events.next(ut),To(Ne)){const xt=S.urlHandlingStrategy.merge(Ne.url,S.rawUrlTree),Yt={skipLocationChange:k.extras.skipLocationChange,replaceUrl:"eager"===S.urlUpdateStrategy||Os(k.source)};S.scheduleNavigation(xt,Pr,null,Yt,{resolve:k.resolve,reject:k.reject,promise:k.promise})}else k.resolve(!1)}else{S.restoreHistory(k,!0);const ut=new fr(k.id,this.urlSerializer.serialize(k.extractedUrl),Ne,k.targetSnapshot??void 0);this.events.next(ut);try{k.resolve(S.errorHandler(Ne))}catch(xt){k.reject(xt)}}return V.E}))}))}cancelNavigationTransition(S,k,X){const Ee=new ar(S.id,this.urlSerializer.serialize(S.extractedUrl),k,X);this.events.next(Ee),S.resolve(!1)}}return D.\u0275fac=function(S){return new(S||D)},D.\u0275prov=c.Yz7({token:D,factory:D.\u0275fac,providedIn:"root"}),D})();function Os(D){return D!==Pr}let sn=(()=>{class D{buildTitle(S){let k,X=S.root;for(;void 0!==X;)k=this.getResolvedTitleForRoute(X)??k,X=X.children.find(Ee=>Ee.outlet===zt);return k}getResolvedTitleForRoute(S){return S.data[je]}}return D.\u0275fac=function(S){return new(S||D)},D.\u0275prov=c.Yz7({token:D,factory:function(){return(0,c.f3M)(yn)},providedIn:"root"}),D})(),yn=(()=>{class D extends sn{constructor(S){super(),this.title=S}updateTitle(S){const k=this.buildTitle(S);void 0!==k&&this.title.setTitle(k)}}return D.\u0275fac=function(S){return new(S||D)(c.LFG(wn.Dx))},D.\u0275prov=c.Yz7({token:D,factory:D.\u0275fac,providedIn:"root"}),D})(),fn=(()=>{class D{}return D.\u0275fac=function(S){return new(S||D)},D.\u0275prov=c.Yz7({token:D,factory:function(){return(0,c.f3M)(Ir)},providedIn:"root"}),D})();class Kn{shouldDetach(P){return!1}store(P,S){}shouldAttach(P){return!1}retrieve(P){return null}shouldReuseRoute(P,S){return P.routeConfig===S.routeConfig}}let Ir=(()=>{class D extends Kn{}return D.\u0275fac=function(){let P;return function(k){return(P||(P=c.n5z(D)))(k||D)}}(),D.\u0275prov=c.Yz7({token:D,factory:D.\u0275fac,providedIn:"root"}),D})();const $r=new c.OlP("",{providedIn:"root",factory:()=>({})});let Gi=(()=>{class D{}return D.\u0275fac=function(S){return new(S||D)},D.\u0275prov=c.Yz7({token:D,factory:function(){return(0,c.f3M)(gr)},providedIn:"root"}),D})(),gr=(()=>{class D{shouldProcessUrl(S){return!0}extract(S){return S}merge(S,k){return S}}return D.\u0275fac=function(S){return new(S||D)},D.\u0275prov=c.Yz7({token:D,factory:D.\u0275fac,providedIn:"root"}),D})();function ba(D){throw D}function Wr(D,P,S){return P.parse("/")}const vo={paths:"exact",fragment:"ignored",matrixParams:"ignored",queryParams:"exact"},mi={paths:"subset",fragment:"ignored",matrixParams:"ignored",queryParams:"subset"};let Vr=(()=>{class D{get navigationId(){return this.navigationTransitions.navigationId}get browserPageId(){return this.location.getState()?.\u0275routerPageId}get events(){return this.navigationTransitions.events}constructor(){this.disposed=!1,this.currentPageId=0,this.console=(0,c.f3M)(c.c2e),this.isNgZoneEnabled=!1,this.options=(0,c.f3M)($r,{optional:!0})||{},this.errorHandler=this.options.errorHandler||ba,this.malformedUriErrorHandler=this.options.malformedUriErrorHandler||Wr,this.navigated=!1,this.lastSuccessfulId=-1,this.urlHandlingStrategy=(0,c.f3M)(Gi),this.routeReuseStrategy=(0,c.f3M)(fn),this.urlCreationStrategy=(0,c.f3M)(Ki),this.titleStrategy=(0,c.f3M)(sn),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=Ht((0,c.f3M)(Gr,{optional:!0})??[]),this.navigationTransitions=(0,c.f3M)(Ms),this.urlSerializer=(0,c.f3M)(Xt),this.location=(0,c.f3M)(de.Ye),this.isNgZoneEnabled=(0,c.f3M)(c.R0b)instanceof c.R0b&&c.R0b.isInAngularZone(),this.resetConfig(this.config),this.currentUrlTree=new Vn,this.rawUrlTree=this.currentUrlTree,this.browserUrlTree=this.currentUrlTree,this.routerState=Io(this.currentUrlTree,null),this.navigationTransitions.setupNavigations(this).subscribe(S=>{this.lastSuccessfulId=S.id,this.currentPageId=S.targetPageId},S=>{this.console.warn(`Unhandled Navigation Error: ${S}`)})}resetRootComponentType(S){this.routerState.root.component=S,this.navigationTransitions.rootComponentType=S}initialNavigation(){if(this.setUpLocationChangeListener(),!this.navigationTransitions.hasRequestedNavigation){const S=this.location.getState();this.navigateToSyncWithBrowser(this.location.path(!0),Pr,S)}}setUpLocationChangeListener(){this.locationSubscription||(this.locationSubscription=this.location.subscribe(S=>{const k="popstate"===S.type?"popstate":"hashchange";"popstate"===k&&setTimeout(()=>{this.navigateToSyncWithBrowser(S.url,k,S.state)},0)}))}navigateToSyncWithBrowser(S,k,X){const Ee={replaceUrl:!0},Ne=X?.navigationId?X:null;if(X){const xt={...X};delete xt.navigationId,delete xt.\u0275routerPageId,0!==Object.keys(xt).length&&(Ee.state=xt)}const ut=this.parseUrl(S);this.scheduleNavigation(ut,k,Ne,Ee)}get url(){return this.serializeUrl(this.currentUrlTree)}getCurrentNavigation(){return this.navigationTransitions.currentNavigation}resetConfig(S){this.config=S.map(zi),this.navigated=!1,this.lastSuccessfulId=-1}ngOnDestroy(){this.dispose()}dispose(){this.navigationTransitions.complete(),this.locationSubscription&&(this.locationSubscription.unsubscribe(),this.locationSubscription=void 0),this.disposed=!0}createUrlTree(S,k={}){const{relativeTo:X,queryParams:Ee,fragment:Ne,queryParamsHandling:ut,preserveFragment:xt}=k,Yt=xt?this.currentUrlTree.fragment:Ne;let Qt=null;switch(ut){case"merge":Qt={...this.currentUrlTree.queryParams,...Ee};break;case"preserve":Qt=this.currentUrlTree.queryParams;break;default:Qt=Ee||null}return null!==Qt&&(Qt=this.removeEmptyProps(Qt)),this.urlCreationStrategy.createUrlTree(X,this.routerState,this.currentUrlTree,S,Qt,Yt??null)}navigateByUrl(S,k={skipLocationChange:!1}){const X=Fr(S)?S:this.parseUrl(S),Ee=this.urlHandlingStrategy.merge(X,this.rawUrlTree);return this.scheduleNavigation(Ee,Pr,null,k)}navigate(S,k={skipLocationChange:!1}){return function _o(D){for(let P=0;P<D.length;P++){const S=D[P];if(null==S)throw new c.vHH(4008,false)}}(S),this.navigateByUrl(this.createUrlTree(S,k),k)}serializeUrl(S){return this.urlSerializer.serialize(S)}parseUrl(S){let k;try{k=this.urlSerializer.parse(S)}catch(X){k=this.malformedUriErrorHandler(X,this.urlSerializer,S)}return k}isActive(S,k){let X;if(X=!0===k?{...vo}:!1===k?{...mi}:k,Fr(S))return wr(this.currentUrlTree,S,X);const Ee=this.parseUrl(S);return wr(this.currentUrlTree,Ee,X)}removeEmptyProps(S){return Object.keys(S).reduce((k,X)=>{const Ee=S[X];return null!=Ee&&(k[X]=Ee),k},{})}scheduleNavigation(S,k,X,Ee,Ne){if(this.disposed)return Promise.resolve(!1);let ut,xt,Yt,Qt;return Ne?(ut=Ne.resolve,xt=Ne.reject,Yt=Ne.promise):Yt=new Promise((Zn,Kr)=>{ut=Zn,xt=Kr}),Qt="computed"===this.canceledNavigationResolution?X&&X.\u0275routerPageId?X.\u0275routerPageId:Ee.replaceUrl||Ee.skipLocationChange?this.browserPageId??0:(this.browserPageId??0)+1:0,this.navigationTransitions.handleNavigationRequest({targetPageId:Qt,source:k,restoredState:X,currentUrlTree:this.currentUrlTree,currentRawUrl:this.currentUrlTree,rawUrl:S,extras:Ee,resolve:ut,reject:xt,promise:Yt,currentSnapshot:this.routerState.snapshot,currentRouterState:this.routerState}),Yt.catch(Zn=>Promise.reject(Zn))}setBrowserUrl(S,k){const X=this.urlSerializer.serialize(S),Ee={...k.extras.state,...this.generateNgRouterState(k.id,k.targetPageId)};this.location.isCurrentPathEqualTo(X)||k.extras.replaceUrl?this.location.replaceState(X,"",Ee):this.location.go(X,"",Ee)}restoreHistory(S,k=!1){if("computed"===this.canceledNavigationResolution){const X=this.currentPageId-S.targetPageId;"popstate"!==S.source&&"eager"!==this.urlUpdateStrategy&&this.currentUrlTree!==this.getCurrentNavigation()?.finalUrl||0===X?this.currentUrlTree===this.getCurrentNavigation()?.finalUrl&&0===X&&(this.resetState(S),this.browserUrlTree=S.currentUrlTree,this.resetUrlToCurrentUrlTree()):this.location.historyGo(X)}else"replace"===this.canceledNavigationResolution&&(k&&this.resetState(S),this.resetUrlToCurrentUrlTree())}resetState(S){this.routerState=S.currentRouterState,this.currentUrlTree=S.currentUrlTree,this.rawUrlTree=this.urlHandlingStrategy.merge(this.currentUrlTree,S.rawUrl)}resetUrlToCurrentUrlTree(){this.location.replaceState(this.urlSerializer.serialize(this.rawUrlTree),"",this.generateNgRouterState(this.lastSuccessfulId,this.currentPageId))}generateNgRouterState(S,k){return"computed"===this.canceledNavigationResolution?{navigationId:S,\u0275routerPageId:k}:{navigationId:S}}}return D.\u0275fac=function(S){return new(S||D)},D.\u0275prov=c.Yz7({token:D,factory:D.\u0275fac,providedIn:"root"}),D})(),bo=(()=>{class D{constructor(S,k,X,Ee,Ne,ut){this.router=S,this.route=k,this.tabIndexAttribute=X,this.renderer=Ee,this.el=Ne,this.locationStrategy=ut,this._preserveFragment=!1,this._skipLocationChange=!1,this._replaceUrl=!1,this.href=null,this.commands=null,this.onChanges=new q.xQ;const xt=Ne.nativeElement.tagName?.toLowerCase();this.isAnchorElement="a"===xt||"area"===xt,this.isAnchorElement?this.subscription=S.events.subscribe(Yt=>{Yt instanceof _r&&this.updateHref()}):this.setTabIndexIfNotOnNativeEl("0")}set preserveFragment(S){this._preserveFragment=(0,c.D6c)(S)}get preserveFragment(){return this._preserveFragment}set skipLocationChange(S){this._skipLocationChange=(0,c.D6c)(S)}get skipLocationChange(){return this._skipLocationChange}set replaceUrl(S){this._replaceUrl=(0,c.D6c)(S)}get replaceUrl(){return this._replaceUrl}setTabIndexIfNotOnNativeEl(S){null!=this.tabIndexAttribute||this.isAnchorElement||this.applyAttributeValue("tabindex",S)}ngOnChanges(S){this.isAnchorElement&&this.updateHref(),this.onChanges.next(this)}set routerLink(S){null!=S?(this.commands=Array.isArray(S)?S:[S],this.setTabIndexIfNotOnNativeEl("0")):(this.commands=null,this.setTabIndexIfNotOnNativeEl(null))}onClick(S,k,X,Ee,Ne){return!!(null===this.urlTree||this.isAnchorElement&&(0!==S||k||X||Ee||Ne||"string"==typeof this.target&&"_self"!=this.target))||(this.router.navigateByUrl(this.urlTree,{skipLocationChange:this.skipLocationChange,replaceUrl:this.replaceUrl,state:this.state}),!this.isAnchorElement)}ngOnDestroy(){this.subscription?.unsubscribe()}updateHref(){this.href=null!==this.urlTree&&this.locationStrategy?this.locationStrategy?.prepareExternalUrl(this.router.serializeUrl(this.urlTree)):null;const S=null===this.href?null:(0,c.P3R)(this.href,this.el.nativeElement.tagName.toLowerCase(),"href");this.applyAttributeValue("href",S)}applyAttributeValue(S,k){const X=this.renderer,Ee=this.el.nativeElement;null!==k?X.setAttribute(Ee,S,k):X.removeAttribute(Ee,S)}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 D.\u0275fac=function(S){return new(S||D)(c.Y36(Vr),c.Y36(Bi),c.$8M("tabindex"),c.Y36(c.Qsj),c.Y36(c.SBq),c.Y36(de.S$))},D.\u0275dir=c.lG2({type:D,selectors:[["","routerLink",""]],hostVars:1,hostBindings:function(S,k){1&S&&c.NdJ("click",function(Ee){return k.onClick(Ee.button,Ee.ctrlKey,Ee.shiftKey,Ee.altKey,Ee.metaKey)}),2&S&&c.uIk("target",k.target)},inputs:{target:"target",queryParams:"queryParams",fragment:"fragment",queryParamsHandling:"queryParamsHandling",state:"state",relativeTo:"relativeTo",preserveFragment:"preserveFragment",skipLocationChange:"skipLocationChange",replaceUrl:"replaceUrl",routerLink:"routerLink"},standalone:!0,features:[c.TTD]}),D})(),Du=(()=>{class D{get isActive(){return this._isActive}constructor(S,k,X,Ee,Ne){this.router=S,this.element=k,this.renderer=X,this.cdr=Ee,this.link=Ne,this.classes=[],this._isActive=!1,this.routerLinkActiveOptions={exact:!1},this.isActiveChange=new c.vpe,this.routerEventsSubscription=S.events.subscribe(ut=>{ut instanceof _r&&this.update()})}ngAfterContentInit(){(0,M.of)(this.links.changes,(0,M.of)(null)).pipe((0,Tn.J)()).subscribe(S=>{this.update(),this.subscribeToEachLinkOnChanges()})}subscribeToEachLinkOnChanges(){this.linkInputChangesSubscription?.unsubscribe();const S=[...this.links.toArray(),this.link].filter(k=>!!k).map(k=>k.onChanges);this.linkInputChangesSubscription=(0,b.D)(S).pipe((0,Tn.J)()).subscribe(k=>{this._isActive!==this.isLinkActive(this.router)(k)&&this.update()})}set routerLinkActive(S){const k=Array.isArray(S)?S:S.split(" ");this.classes=k.filter(X=>!!X)}ngOnChanges(S){this.update()}ngOnDestroy(){this.routerEventsSubscription.unsubscribe(),this.linkInputChangesSubscription?.unsubscribe()}update(){!this.links||!this.router.navigated||Promise.resolve().then(()=>{const S=this.hasActiveLinks();this._isActive!==S&&(this._isActive=S,this.cdr.markForCheck(),this.classes.forEach(k=>{S?this.renderer.addClass(this.element.nativeElement,k):this.renderer.removeClass(this.element.nativeElement,k)}),S&&void 0!==this.ariaCurrentWhenActive?this.renderer.setAttribute(this.element.nativeElement,"aria-current",this.ariaCurrentWhenActive.toString()):this.renderer.removeAttribute(this.element.nativeElement,"aria-current"),this.isActiveChange.emit(S))})}isLinkActive(S){const k=function Qa(D){return!!D.paths}(this.routerLinkActiveOptions)?this.routerLinkActiveOptions:this.routerLinkActiveOptions.exact||!1;return X=>!!X.urlTree&&S.isActive(X.urlTree,k)}hasActiveLinks(){const S=this.isLinkActive(this.router);return this.link&&S(this.link)||this.links.some(S)}}return D.\u0275fac=function(S){return new(S||D)(c.Y36(Vr),c.Y36(c.SBq),c.Y36(c.Qsj),c.Y36(c.sBO),c.Y36(bo,8))},D.\u0275dir=c.lG2({type:D,selectors:[["","routerLinkActive",""]],contentQueries:function(S,k,X){if(1&S&&c.Suo(X,bo,5),2&S){let Ee;c.iGM(Ee=c.CRH())&&(k.links=Ee)}},inputs:{routerLinkActiveOptions:"routerLinkActiveOptions",ariaCurrentWhenActive:"ariaCurrentWhenActive",routerLinkActive:"routerLinkActive"},outputs:{isActiveChange:"isActiveChange"},exportAs:["routerLinkActive"],standalone:!0,features:[c.TTD]}),D})();class Ja{}let xu=(()=>{class D{constructor(S,k,X,Ee,Ne){this.router=S,this.injector=X,this.preloadingStrategy=Ee,this.loader=Ne}setUpPreloading(){this.subscription=this.router.events.pipe((0,U.h)(S=>S instanceof _r),(0,ge.b)(()=>this.preload())).subscribe(()=>{})}preload(){return this.processRoutes(this.injector,this.router.config)}ngOnDestroy(){this.subscription&&this.subscription.unsubscribe()}processRoutes(S,k){const X=[];for(const Ee of k){Ee.providers&&!Ee._injector&&(Ee._injector=(0,c.MMx)(Ee.providers,S,`Route: ${Ee.path}`));const Ne=Ee._injector??S,ut=Ee._loadedInjector??Ne;Ee.loadChildren&&!Ee._loadedRoutes&&void 0===Ee.canLoad||Ee.loadComponent&&!Ee._loadedComponent?X.push(this.preloadConfig(Ne,Ee)):(Ee.children||Ee._loadedRoutes)&&X.push(this.processRoutes(ut,Ee.children??Ee._loadedRoutes))}return(0,b.D)(X).pipe((0,Tn.J)())}preloadConfig(S,k){return this.preloadingStrategy.preload(k,()=>{let X;X=k.loadChildren&&void 0===k.canLoad?this.loader.loadChildren(S,k):(0,M.of)(null);const Ee=X.pipe((0,W.zg)(Ne=>null===Ne?(0,M.of)(void 0):(k._loadedRoutes=Ne.routes,k._loadedInjector=Ne.injector,this.processRoutes(Ne.injector??S,Ne.routes))));if(k.loadComponent&&!k._loadedComponent){const Ne=this.loader.loadComponent(k);return(0,b.D)([Ee,Ne]).pipe((0,Tn.J)())}return Ee})}}return D.\u0275fac=function(S){return new(S||D)(c.LFG(Vr),c.LFG(c.Sil),c.LFG(c.lqb),c.LFG(Ja),c.LFG(Ei))},D.\u0275prov=c.Yz7({token:D,factory:D.\u0275fac,providedIn:"root"}),D})();const na=new c.OlP("");let Au=(()=>{class D{constructor(S,k,X,Ee,Ne={}){this.urlSerializer=S,this.transitions=k,this.viewportScroller=X,this.zone=Ee,this.options=Ne,this.lastId=0,this.lastSource="imperative",this.restoredId=0,this.store={},Ne.scrollPositionRestoration=Ne.scrollPositionRestoration||"disabled",Ne.anchorScrolling=Ne.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(S=>{S instanceof Lr?(this.store[this.lastId]=this.viewportScroller.getScrollPosition(),this.lastSource=S.navigationTrigger,this.restoredId=S.restoredState?S.restoredState.navigationId:0):S instanceof _r&&(this.lastId=S.id,this.scheduleScrollEvent(S,this.urlSerializer.parse(S.urlAfterRedirects).fragment))})}consumeScrollEvents(){return this.transitions.events.subscribe(S=>{S instanceof So&&(S.position?"top"===this.options.scrollPositionRestoration?this.viewportScroller.scrollToPosition([0,0]):"enabled"===this.options.scrollPositionRestoration&&this.viewportScroller.scrollToPosition(S.position):S.anchor&&"enabled"===this.options.anchorScrolling?this.viewportScroller.scrollToAnchor(S.anchor):"disabled"!==this.options.scrollPositionRestoration&&this.viewportScroller.scrollToPosition([0,0]))})}scheduleScrollEvent(S,k){this.zone.runOutsideAngular(()=>{setTimeout(()=>{this.zone.run(()=>{this.transitions.events.next(new So(S,"popstate"===this.lastSource?this.store[this.restoredId]:null,k))})},0)})}ngOnDestroy(){this.routerEventsSubscription?.unsubscribe(),this.scrollEventsSubscription?.unsubscribe()}}return D.\u0275fac=function(S){c.$Z()},D.\u0275prov=c.Yz7({token:D,factory:D.\u0275fac}),D})();var Ci=(()=>((Ci=Ci||{})[Ci.COMPLETE=0]="COMPLETE",Ci[Ci.FAILED=1]="FAILED",Ci[Ci.REDIRECTING=2]="REDIRECTING",Ci))();const no=!1;function No(D,P){return{\u0275kind:D,\u0275providers:P}}const ia=new c.OlP("",{providedIn:"root",factory:()=>!1});function mr(){const D=(0,c.f3M)(c.zs3);return P=>{const S=D.get(c.z2F);if(P!==S.components[0])return;const k=D.get(Vr),X=D.get(Il);1===D.get(Tu)&&k.initialNavigation(),D.get(Dl,null,c.XFs.Optional)?.setUpPreloading(),D.get(na,null,c.XFs.Optional)?.init(),k.resetRootComponentType(S.componentTypes[0]),X.closed||(X.next(),X.unsubscribe())}}const Il=new c.OlP(no?"bootstrap done indicator":"",{factory:()=>new q.xQ}),Tu=new c.OlP(no?"initial navigation":"",{providedIn:"root",factory:()=>1});function nd(){let D=[];return D=no?[{provide:c.Xts,multi:!0,useFactory:()=>{const P=(0,c.f3M)(Vr);return()=>P.events.subscribe(S=>{console.group?.(`Router Event: ${S.constructor.name}`),console.log(function kr(D){if(!("type"in D))return`Unknown Router Event: ${D.constructor.name}`;switch(D.type){case 14:return`ActivationEnd(path: '${D.snapshot.routeConfig?.path||""}')`;case 13:return`ActivationStart(path: '${D.snapshot.routeConfig?.path||""}')`;case 12:return`ChildActivationEnd(path: '${D.snapshot.routeConfig?.path||""}')`;case 11:return`ChildActivationStart(path: '${D.snapshot.routeConfig?.path||""}')`;case 8:return`GuardsCheckEnd(id: ${D.id}, url: '${D.url}', urlAfterRedirects: '${D.urlAfterRedirects}', state: ${D.state}, shouldActivate: ${D.shouldActivate})`;case 7:return`GuardsCheckStart(id: ${D.id}, url: '${D.url}', urlAfterRedirects: '${D.urlAfterRedirects}', state: ${D.state})`;case 2:return`NavigationCancel(id: ${D.id}, url: '${D.url}')`;case 16:return`NavigationSkipped(id: ${D.id}, url: '${D.url}')`;case 1:return`NavigationEnd(id: ${D.id}, url: '${D.url}', urlAfterRedirects: '${D.urlAfterRedirects}')`;case 3:return`NavigationError(id: ${D.id}, url: '${D.url}', error: ${D.error})`;case 0:return`NavigationStart(id: ${D.id}, url: '${D.url}')`;case 6:return`ResolveEnd(id: ${D.id}, url: '${D.url}', urlAfterRedirects: '${D.urlAfterRedirects}', state: ${D.state})`;case 5:return`ResolveStart(id: ${D.id}, url: '${D.url}', urlAfterRedirects: '${D.urlAfterRedirects}', state: ${D.state})`;case 10:return`RouteConfigLoadEnd(path: ${D.route.path})`;case 9:return`RouteConfigLoadStart(path: ${D.route.path})`;case 4:return`RoutesRecognized(id: ${D.id}, url: '${D.url}', urlAfterRedirects: '${D.urlAfterRedirects}', state: ${D.state})`;case 15:return`Scroll(anchor: '${D.anchor}', position: '${D.position?`${D.position[0]}, ${D.position[1]}`:null}')`}}(S)),console.log(S),console.groupEnd?.()})}}]:[],No(1,D)}const Dl=new c.OlP(no?"router preloader":"");function rd(D){return No(0,[{provide:Dl,useExisting:xu},{provide:Ja,useExisting:D}])}const rt=!1,Ls=new c.OlP(rt?"router duplicate forRoot guard":"ROUTER_FORROOT_GUARD"),Nr=[de.Ye,{provide:Xt,useClass:vn},Vr,Hi,{provide:Bi,useFactory:function ps(D){return D.routerState.root},deps:[Vr]},Ei,rt?{provide:ia,useValue:!0}:[]];function In(){return new c.PXZ("Router",Vr)}let yr=(()=>{class D{constructor(S){}static forRoot(S,k){return{ngModule:D,providers:[Nr,rt&&k?.enableTracing?nd().\u0275providers:[],{provide:Gr,multi:!0,useValue:S},{provide:Ls,useFactory:id,deps:[[Vr,new c.FiY,new c.tp0]]},{provide:$r,useValue:k||{}},k?.useHash?{provide:de.S$,useClass:de.Do}:{provide:de.S$,useClass:de.b0},{provide:na,useFactory:()=>{const D=(0,c.f3M)(de.EM),P=(0,c.f3M)(c.R0b),S=(0,c.f3M)($r),k=(0,c.f3M)(Ms),X=(0,c.f3M)(Xt);return S.scrollOffset&&D.setOffset(S.scrollOffset),new Au(X,k,D,P,S)}},k?.preloadingStrategy?rd(k.preloadingStrategy).\u0275providers:[],{provide:c.PXZ,multi:!0,useFactory:In},k?.initialNavigation?Nh(k):[],[{provide:xl,useFactory:mr},{provide:c.tb,multi:!0,useExisting:xl}]]}}static forChild(S){return{ngModule:D,providers:[{provide:Gr,multi:!0,useValue:S}]}}}return D.\u0275fac=function(S){return new(S||D)(c.LFG(Ls,8))},D.\u0275mod=c.oAB({type:D}),D.\u0275inj=c.cJS({imports:[zo]}),D})();function id(D){if(rt&&D)throw new c.vHH(4007,"The Router was provided more than once. This can happen if 'forRoot' is used outside of the root injector. Lazy loaded modules should use RouterModule.forChild() instead.");return"guarded"}function Nh(D){return["disabled"===D.initialNavigation?No(3,[{provide:c.ip1,multi:!0,useFactory:()=>{const P=(0,c.f3M)(Vr);return()=>{P.setUpLocationChangeListener()}}},{provide:Tu,useValue:2}]).\u0275providers:[],"enabledBlocking"===D.initialNavigation?No(2,[{provide:Tu,useValue:0},{provide:c.ip1,multi:!0,deps:[c.zs3],useFactory:P=>{const S=P.get(de.V_,Promise.resolve());return()=>S.then(()=>new Promise(k=>{const X=P.get(Vr),Ee=P.get(Il);(function qa(D,P){D.events.pipe((0,U.h)(S=>S instanceof _r||S instanceof ar||S instanceof fr||S instanceof Jn),(0,se.U)(S=>S instanceof _r||S instanceof Jn?Ci.COMPLETE:S instanceof ar&&(0===S.code||1===S.code)?Ci.REDIRECTING:Ci.FAILED),(0,U.h)(S=>S!==Ci.REDIRECTING),(0,Be.q)(1)).subscribe(()=>{P()})})(X,()=>{k(!0)}),P.get(Ms).afterPreactivation=()=>(k(!0),Ee.closed?(0,M.of)(void 0):Ee),X.initialNavigation()}))}}]).\u0275providers:[]]}const xl=new c.OlP(rt?"Router Initializer":"")},241:(Ze,ee,_)=>{"use strict";_.d(ee,{PG:()=>T,nm:()=>B});var c=_(55062),b=_(24006),M=_(23753),F=_(36895);const O=["editorContainer"],y=new c.OlP("NGX_MONACO_EDITOR_CONFIG");let x,g=!1,N=(()=>{class q{constructor(se){this.config=se,this.onInit=new c.vpe,this._insideNg=!1}set insideNg(se){this._insideNg=se,this._editor&&(this._editor.dispose(),this.initMonaco(this._options,this.insideNg))}get insideNg(){return this._insideNg}ngAfterViewInit(){g?x.then(()=>{this.initMonaco(this._options,this.insideNg)}):(g=!0,x=new Promise(se=>{const De=this.config.baseUrl||"./assets";if("object"==typeof window.monaco)return this.initMonaco(this._options,this.insideNg),void se();const he=()=>{window.require.config({paths:{vs:`${De}/monaco/min/vs`}}),window.require(["vs/editor/editor.main"],()=>{"function"==typeof this.config.onMonacoLoad&&this.config.onMonacoLoad(),this.initMonaco(this._options,this.insideNg),se()})};if(window.require)he();else{const xe=document.createElement("script");xe.type="text/javascript",xe.src=`${De}/monaco/min/vs/loader.js`,xe.addEventListener("load",he),document.body.appendChild(xe)}}))}ngOnDestroy(){this._windowResizeSubscription&&this._windowResizeSubscription.unsubscribe(),this._editor&&(this._editor.dispose(),this._editor=void 0)}}return q.\u0275fac=function(se){return new(se||q)(c.Y36(y))},q.\u0275cmp=c.Xpm({type:q,selectors:[["ng-component"]],viewQuery:function(se,De){if(1&se&&c.Gf(O,7),2&se){let he;c.iGM(he=c.CRH())&&(De._editorContainer=he.first)}},inputs:{insideNg:"insideNg"},outputs:{onInit:"onInit"},decls:0,vars:0,template:function(se,De){},encapsulation:2}),q})(),T=(()=>{class q extends N{constructor(se,De){super(De),this.zone=se,this.editorConfig=De,this._value="",this.propagateChange=he=>{},this.onTouched=()=>{}}set options(se){this._options=Object.assign({},this.config.defaultOptions,se),this._editor&&(this._editor.dispose(),this.initMonaco(se,this.insideNg))}get options(){return this._options}set model(se){this.options.model=se,this._editor&&(this._editor.dispose(),this.initMonaco(this.options,this.insideNg))}writeValue(se){this._value=se||"",setTimeout(()=>{this._editor&&!this.options.model&&this._editor.setValue(this._value)})}registerOnChange(se){this.propagateChange=se}registerOnTouched(se){this.onTouched=se}initMonaco(se,De){const he=!!se.model;if(he){const xe=monaco.editor.getModel(se.model.uri||"");xe?(se.model=xe,se.model.setValue(this._value)):se.model=monaco.editor.createModel(se.model.value,se.model.language,se.model.uri)}De?this._editor=monaco.editor.create(this._editorContainer.nativeElement,se):this.zone.runOutsideAngular(()=>{this._editor=monaco.editor.create(this._editorContainer.nativeElement,se)}),he||this._editor.setValue(this._value),this._editor.onDidChangeModelContent(xe=>{const Me=this._editor.getValue();this.zone.run(()=>{this.propagateChange(Me),this._value=Me})}),this._editor.onDidBlurEditorWidget(()=>{this.onTouched()}),this._windowResizeSubscription&&this._windowResizeSubscription.unsubscribe(),this._windowResizeSubscription=(0,M.R)(window,"resize").subscribe(()=>this._editor.layout()),this.onInit.emit(this._editor)}}return q.\u0275fac=function(se){return new(se||q)(c.Y36(c.R0b),c.Y36(y))},q.\u0275cmp=c.Xpm({type:q,selectors:[["ngx-monaco-editor"]],inputs:{options:"options",model:"model"},features:[c._Bn([{provide:b.JU,useExisting:(0,c.Gpc)(()=>q),multi:!0}]),c.qOj],decls:2,vars:0,consts:[[1,"editor-container"],["editorContainer",""]],template:function(se,De){1&se&&c._UZ(0,"div",0,1)},styles:["[_nghost-%COMP%]{display:block;height:200px}.editor-container[_ngcontent-%COMP%]{width:100%;height:98%}"]}),q})(),B=(()=>{class q{static forRoot(se={}){return{ngModule:q,providers:[{provide:y,useValue:se}]}}}return q.\u0275fac=function(se){return new(se||q)},q.\u0275mod=c.oAB({type:q}),q.\u0275inj=c.cJS({imports:[F.ez]}),q})()},10805:(Ze,ee,_)=>{"use strict";_.d(ee,{$_:()=>De,F0:()=>B,Lk:()=>g,YP:()=>y,a6:()=>x,b4:()=>de,ez:()=>V,h4:()=>se,iZ:()=>T,jx:()=>he,m8:()=>xe,pg:()=>N,wB:()=>w,ws:()=>Me});var c=_(55062),b=_(8929),M=_(60982),F=_(36895);const O=["*"];var w=(()=>{return(Y=w||(w={}))[Y.ACCEPT=0]="ACCEPT",Y[Y.REJECT=1]="REJECT",Y[Y.CANCEL=2]="CANCEL",w;var Y})();let y=(()=>{class Y{constructor(){this.requireConfirmationSource=new b.xQ,this.acceptConfirmationSource=new b.xQ,this.requireConfirmation$=this.requireConfirmationSource.asObservable(),this.accept=this.acceptConfirmationSource.asObservable()}confirm(le){return this.requireConfirmationSource.next(le),this}close(){return this.requireConfirmationSource.next(null),this}onAccept(){this.acceptConfirmationSource.next(null)}}return Y.\u0275fac=function(le){return new(le||Y)},Y.\u0275prov=c.Yz7({token:Y,factory:Y.\u0275fac}),Y})(),g=(()=>{class Y{constructor(){this.activeItemKeyChange=new b.xQ,this.activeItemKeyChange$=this.activeItemKeyChange.asObservable()}changeKey(le){this.activeItemKey=le,this.activeItemKeyChange.next(this.activeItemKey)}reset(){this.activeItemKey=null,this.activeItemKeyChange.next(this.activeItemKey)}}return Y.\u0275fac=function(le){return new(le||Y)},Y.\u0275prov=c.Yz7({token:Y,factory:Y.\u0275fac}),Y})(),x=(()=>{class Y{}return Y.STARTS_WITH="startsWith",Y.CONTAINS="contains",Y.NOT_CONTAINS="notContains",Y.ENDS_WITH="endsWith",Y.EQUALS="equals",Y.NOT_EQUALS="notEquals",Y.IN="in",Y.LESS_THAN="lt",Y.LESS_THAN_OR_EQUAL_TO="lte",Y.GREATER_THAN="gt",Y.GREATER_THAN_OR_EQUAL_TO="gte",Y.BETWEEN="between",Y.IS="is",Y.IS_NOT="isNot",Y.BEFORE="before",Y.AFTER="after",Y.DATE_IS="dateIs",Y.DATE_IS_NOT="dateIsNot",Y.DATE_BEFORE="dateBefore",Y.DATE_AFTER="dateAfter",Y})(),N=(()=>{class Y{}return Y.AND="and",Y.OR="or",Y})(),T=(()=>{class Y{constructor(){this.filters={startsWith:(le,R,U)=>{if(null==R||""===R.trim())return!0;if(null==le)return!1;let W=M.gb.removeAccents(R.toString()).toLocaleLowerCase(U);return M.gb.removeAccents(le.toString()).toLocaleLowerCase(U).slice(0,W.length)===W},contains:(le,R,U)=>{if(null==R||"string"==typeof R&&""===R.trim())return!0;if(null==le)return!1;let W=M.gb.removeAccents(R.toString()).toLocaleLowerCase(U);return-1!==M.gb.removeAccents(le.toString()).toLocaleLowerCase(U).indexOf(W)},notContains:(le,R,U)=>{if(null==R||"string"==typeof R&&""===R.trim())return!0;if(null==le)return!1;let W=M.gb.removeAccents(R.toString()).toLocaleLowerCase(U);return-1===M.gb.removeAccents(le.toString()).toLocaleLowerCase(U).indexOf(W)},endsWith:(le,R,U)=>{if(null==R||""===R.trim())return!0;if(null==le)return!1;let W=M.gb.removeAccents(R.toString()).toLocaleLowerCase(U),oe=M.gb.removeAccents(le.toString()).toLocaleLowerCase(U);return-1!==oe.indexOf(W,oe.length-W.length)},equals:(le,R,U)=>null==R||"string"==typeof R&&""===R.trim()||null!=le&&(le.getTime&&R.getTime?le.getTime()===R.getTime():M.gb.removeAccents(le.toString()).toLocaleLowerCase(U)==M.gb.removeAccents(R.toString()).toLocaleLowerCase(U)),notEquals:(le,R,U)=>!(null==R||"string"==typeof R&&""===R.trim()||null!=le&&(le.getTime&&R.getTime?le.getTime()===R.getTime():M.gb.removeAccents(le.toString()).toLocaleLowerCase(U)==M.gb.removeAccents(R.toString()).toLocaleLowerCase(U))),in:(le,R)=>{if(null==R||0===R.length)return!0;for(let U=0;U<R.length;U++)if(M.gb.equals(le,R[U]))return!0;return!1},between:(le,R)=>null==R||null==R[0]||null==R[1]||null!=le&&(le.getTime?R[0].getTime()<=le.getTime()&&le.getTime()<=R[1].getTime():R[0]<=le&&le<=R[1]),lt:(le,R,U)=>null==R||null!=le&&(le.getTime&&R.getTime?le.getTime()<R.getTime():le<R),lte:(le,R,U)=>null==R||null!=le&&(le.getTime&&R.getTime?le.getTime()<=R.getTime():le<=R),gt:(le,R,U)=>null==R||null!=le&&(le.getTime&&R.getTime?le.getTime()>R.getTime():le>R),gte:(le,R,U)=>null==R||null!=le&&(le.getTime&&R.getTime?le.getTime()>=R.getTime():le>=R),is:(le,R,U)=>this.filters.equals(le,R,U),isNot:(le,R,U)=>this.filters.notEquals(le,R,U),before:(le,R,U)=>this.filters.lt(le,R,U),after:(le,R,U)=>this.filters.gt(le,R,U),dateIs:(le,R)=>null==R||null!=le&&le.toDateString()===R.toDateString(),dateIsNot:(le,R)=>null==R||null!=le&&le.toDateString()!==R.toDateString(),dateBefore:(le,R)=>null==R||null!=le&&le.getTime()<R.getTime(),dateAfter:(le,R)=>null==R||null!=le&&le.getTime()>R.getTime()}}filter(le,R,U,W,oe){let ge=[];if(le)for(let Q of le)for(let ye of R){let Le=M.gb.resolveFieldData(Q,ye);if(this.filters[W](Le,U,oe)){ge.push(Q);break}}return ge}register(le,R){this.filters[le]=R}}return Y.\u0275fac=function(le){return new(le||Y)},Y.\u0275prov=c.Yz7({token:Y,factory:Y.\u0275fac,providedIn:"root"}),Y})(),V=(()=>{class Y{constructor(){this.messageSource=new b.xQ,this.clearSource=new b.xQ,this.messageObserver=this.messageSource.asObservable(),this.clearObserver=this.clearSource.asObservable()}add(le){le&&this.messageSource.next(le)}addAll(le){le&&le.length&&this.messageSource.next(le)}clear(le){this.clearSource.next(le||null)}}return Y.\u0275fac=function(le){return new(le||Y)},Y.\u0275prov=c.Yz7({token:Y,factory:Y.\u0275fac}),Y})(),B=(()=>{class Y{constructor(){this.clickSource=new b.xQ,this.clickObservable=this.clickSource.asObservable()}add(le){le&&this.clickSource.next(le)}}return Y.\u0275fac=function(le){return new(le||Y)},Y.\u0275prov=c.Yz7({token:Y,factory:Y.\u0275fac,providedIn:"root"}),Y})(),de=(()=>{class Y{constructor(){this.ripple=!1,this.overlayOptions={},this.filterMatchModeOptions={text:[x.STARTS_WITH,x.CONTAINS,x.NOT_CONTAINS,x.ENDS_WITH,x.EQUALS,x.NOT_EQUALS],numeric:[x.EQUALS,x.NOT_EQUALS,x.LESS_THAN,x.LESS_THAN_OR_EQUAL_TO,x.GREATER_THAN,x.GREATER_THAN_OR_EQUAL_TO],date:[x.DATE_IS,x.DATE_IS_NOT,x.DATE_BEFORE,x.DATE_AFTER]},this.translation={startsWith:"Starts with",contains:"Contains",notContains:"Not contains",endsWith:"Ends with",equals:"Equals",notEquals:"Not equals",noFilter:"No Filter",lt:"Less than",lte:"Less than or equal to",gt:"Greater than",gte:"Greater than or equal to",is:"Is",isNot:"Is not",before:"Before",after:"After",dateIs:"Date is",dateIsNot:"Date is not",dateBefore:"Date is before",dateAfter:"Date is after",clear:"Clear",apply:"Apply",matchAll:"Match All",matchAny:"Match Any",addRule:"Add Rule",removeRule:"Remove Rule",accept:"Yes",reject:"No",choose:"Choose",upload:"Upload",cancel:"Cancel",dayNames:["Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday"],dayNamesShort:["Sun","Mon","Tue","Wed","Thu","Fri","Sat"],dayNamesMin:["Su","Mo","Tu","We","Th","Fr","Sa"],monthNames:["January","February","March","April","May","June","July","August","September","October","November","December"],monthNamesShort:["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"],dateFormat:"mm/dd/yy",firstDayOfWeek:0,today:"Today",weekHeader:"Wk",weak:"Weak",medium:"Medium",strong:"Strong",passwordPrompt:"Enter a password",emptyMessage:"No results found",emptyFilterMessage:"No results found"},this.zIndex={modal:1100,overlay:1e3,menu:1e3,tooltip:1100},this.translationSource=new b.xQ,this.translationObserver=this.translationSource.asObservable()}getTranslation(le){return this.translation[le]}setTranslation(le){this.translation={...this.translation,...le},this.translationSource.next(this.translation)}}return Y.\u0275fac=function(le){return new(le||Y)},Y.\u0275prov=c.Yz7({token:Y,factory:Y.\u0275fac,providedIn:"root"}),Y})(),se=(()=>{class Y{}return Y.\u0275fac=function(le){return new(le||Y)},Y.\u0275cmp=c.Xpm({type:Y,selectors:[["p-header"]],ngContentSelectors:O,decls:1,vars:0,template:function(le,R){1&le&&(c.F$t(),c.Hsn(0))},encapsulation:2}),Y})(),De=(()=>{class Y{}return Y.\u0275fac=function(le){return new(le||Y)},Y.\u0275cmp=c.Xpm({type:Y,selectors:[["p-footer"]],ngContentSelectors:O,decls:1,vars:0,template:function(le,R){1&le&&(c.F$t(),c.Hsn(0))},encapsulation:2}),Y})(),he=(()=>{class Y{constructor(le){this.template=le}getType(){return this.name}}return Y.\u0275fac=function(le){return new(le||Y)(c.Y36(c.Rgc))},Y.\u0275dir=c.lG2({type:Y,selectors:[["","pTemplate",""]],inputs:{type:"type",name:["pTemplate","name"]}}),Y})(),xe=(()=>{class Y{}return Y.\u0275fac=function(le){return new(le||Y)},Y.\u0275mod=c.oAB({type:Y}),Y.\u0275inj=c.cJS({imports:[F.ez]}),Y})(),Me=(()=>{class Y{}return Y.STARTS_WITH="startsWith",Y.CONTAINS="contains",Y.NOT_CONTAINS="notContains",Y.ENDS_WITH="endsWith",Y.EQUALS="equals",Y.NOT_EQUALS="notEquals",Y.NO_FILTER="noFilter",Y.LT="lt",Y.LTE="lte",Y.GT="gt",Y.GTE="gte",Y.IS="is",Y.IS_NOT="isNot",Y.BEFORE="before",Y.AFTER="after",Y.CLEAR="clear",Y.APPLY="apply",Y.MATCH_ALL="matchAll",Y.MATCH_ANY="matchAny",Y.ADD_RULE="addRule",Y.REMOVE_RULE="removeRule",Y.ACCEPT="accept",Y.REJECT="reject",Y.CHOOSE="choose",Y.UPLOAD="upload",Y.CANCEL="cancel",Y.DAY_NAMES="dayNames",Y.DAY_NAMES_SHORT="dayNamesShort",Y.DAY_NAMES_MIN="dayNamesMin",Y.MONTH_NAMES="monthNames",Y.MONTH_NAMES_SHORT="monthNamesShort",Y.FIRST_DAY_OF_WEEK="firstDayOfWeek",Y.TODAY="today",Y.WEEK_HEADER="weekHeader",Y.WEAK="weak",Y.MEDIUM="medium",Y.STRONG="strong",Y.PASSWORD_PROMPT="passwordPrompt",Y.EMPTY_MESSAGE="emptyMessage",Y.EMPTY_FILTER_MESSAGE="emptyFilterMessage",Y})()},29766:(Ze,ee,_)=>{"use strict";_.d(ee,{Gg:()=>De,cL:()=>se});var c=_(36895),b=_(55062),M=_(24006),F=_(10805),O=_(51740);const w=["inputtext"];function y(he,xe){1&he&&b.GkF(0)}function g(he,xe){if(1&he&&(b.TgZ(0,"span",12),b._uU(1),b.qZA()),2&he){const Me=b.oxw().$implicit,be=b.oxw();b.xp6(1),b.Oqu(be.field?be.resolveFieldData(Me,be.field):Me)}}function x(he,xe){if(1&he){const Me=b.EpF();b.TgZ(0,"span",13),b.NdJ("click",function(Y){b.CHM(Me);const Be=b.oxw().index,le=b.oxw();return b.KtG(le.removeItem(Y,Be))}),b.qZA()}}const N=function(he){return{$implicit:he}};function T(he,xe){if(1&he){const Me=b.EpF();b.TgZ(0,"li",7,8),b.NdJ("click",function(Y){const le=b.CHM(Me).$implicit,R=b.oxw();return b.KtG(R.onItemClick(Y,le))}),b.YNc(2,y,1,0,"ng-container",9),b.YNc(3,g,2,1,"span",10),b.YNc(4,x,1,0,"span",11),b.qZA()}if(2&he){const Me=xe.$implicit,be=b.oxw();b.xp6(2),b.Q6J("ngTemplateOutlet",be.itemTemplate)("ngTemplateOutletContext",b.VKq(4,N,Me)),b.xp6(1),b.Q6J("ngIf",!be.itemTemplate),b.xp6(1),b.Q6J("ngIf",!be.disabled)}}function V(he,xe){if(1&he){const Me=b.EpF();b.TgZ(0,"li")(1,"i",14),b.NdJ("click",function(){b.CHM(Me);const Y=b.oxw();return b.KtG(Y.clear())}),b.qZA()()}}const B=function(he,xe){return{"p-inputtext p-chips-multiple-container":!0,"p-focus":he,"p-disabled":xe}},q=function(he){return{"p-chips-clearable":he}},de={provide:M.JU,useExisting:(0,b.Gpc)(()=>se),multi:!0};let se=(()=>{class he{constructor(Me,be){this.el=Me,this.cd=be,this.allowDuplicate=!0,this.showClear=!1,this.onAdd=new b.vpe,this.onRemove=new b.vpe,this.onFocus=new b.vpe,this.onBlur=new b.vpe,this.onChipClick=new b.vpe,this.onClear=new b.vpe,this.onModelChange=()=>{},this.onModelTouched=()=>{}}ngAfterContentInit(){this.templates.forEach(Me=>{Me.getType(),this.itemTemplate=Me.template}),this.updateFilledState()}onClick(){this.inputViewChild.nativeElement.focus()}onInput(){this.updateFilledState()}onPaste(Me){this.disabled||(this.separator&&((Me.clipboardData||window.clipboardData).getData("Text").split(this.separator).forEach(Y=>{this.addItem(Me,Y,!0)}),this.inputViewChild.nativeElement.value=""),this.updateFilledState())}updateFilledState(){this.filled=!(!this.value||0===this.value.length)||this.inputViewChild&&this.inputViewChild.nativeElement&&""!=this.inputViewChild.nativeElement.value}onItemClick(Me,be){this.onChipClick.emit({originalEvent:Me,value:be})}writeValue(Me){this.value=Me,this.updateMaxedOut(),this.updateFilledState(),this.cd.markForCheck()}registerOnChange(Me){this.onModelChange=Me}registerOnTouched(Me){this.onModelTouched=Me}setDisabledState(Me){this.disabled=Me,this.cd.markForCheck()}resolveFieldData(Me,be){if(Me&&be){if(-1==be.indexOf("."))return Me[be];{let le=be.split("."),R=Me;for(var Y=0,Be=le.length;Y<Be;++Y)R=R[le[Y]];return R}}return null}onInputFocus(Me){this.focus=!0,this.onFocus.emit(Me)}onInputBlur(Me){this.focus=!1,this.addOnBlur&&this.inputViewChild.nativeElement.value&&this.addItem(Me,this.inputViewChild.nativeElement.value,!1),this.onModelTouched(),this.onBlur.emit(Me)}removeItem(Me,be){if(this.disabled)return;let Y=this.value[be];this.value=this.value.filter((Be,le)=>le!=be),this.onModelChange(this.value),this.onRemove.emit({originalEvent:Me,value:Y}),this.updateFilledState(),this.updateMaxedOut()}addItem(Me,be,Y){this.value=this.value||[],be&&be.trim().length&&(this.allowDuplicate||-1===this.value.indexOf(be))&&(this.value=[...this.value,be],this.onModelChange(this.value),this.onAdd.emit({originalEvent:Me,value:be})),this.updateFilledState(),this.updateMaxedOut(),this.inputViewChild.nativeElement.value="",Y&&Me.preventDefault()}clear(){this.value=null,this.updateFilledState(),this.onModelChange(this.value),this.onClear.emit()}onKeydown(Me){switch(Me.which){case 8:if(0===this.inputViewChild.nativeElement.value.length&&this.value&&this.value.length>0){this.value=[...this.value];let be=this.value.pop();this.onModelChange(this.value),this.onRemove.emit({originalEvent:Me,value:be}),this.updateFilledState()}break;case 13:this.addItem(Me,this.inputViewChild.nativeElement.value,!0);break;case 9:this.addOnTab&&""!==this.inputViewChild.nativeElement.value&&this.addItem(Me,this.inputViewChild.nativeElement.value,!0);break;default:this.max&&this.value&&this.max===this.value.length?Me.preventDefault():this.separator&&(this.separator===Me.key||Me.key.match(this.separator))&&this.addItem(Me,this.inputViewChild.nativeElement.value,!0)}}updateMaxedOut(){this.inputViewChild&&this.inputViewChild.nativeElement&&(this.max&&this.value&&this.max===this.value.length?(this.inputViewChild.nativeElement.blur(),this.inputViewChild.nativeElement.disabled=!0):(this.disabled&&this.inputViewChild.nativeElement.blur(),this.inputViewChild.nativeElement.disabled=this.disabled||!1))}}return he.\u0275fac=function(Me){return new(Me||he)(b.Y36(b.SBq),b.Y36(b.sBO))},he.\u0275cmp=b.Xpm({type:he,selectors:[["p-chips"]],contentQueries:function(Me,be,Y){if(1&Me&&b.Suo(Y,F.jx,4),2&Me){let Be;b.iGM(Be=b.CRH())&&(be.templates=Be)}},viewQuery:function(Me,be){if(1&Me&&b.Gf(w,5),2&Me){let Y;b.iGM(Y=b.CRH())&&(be.inputViewChild=Y.first)}},hostAttrs:[1,"p-element","p-inputwrapper"],hostVars:6,hostBindings:function(Me,be){2&Me&&b.ekj("p-inputwrapper-filled",be.filled)("p-inputwrapper-focus",be.focus)("p-chips-clearable",be.showClear)},inputs:{style:"style",styleClass:"styleClass",disabled:"disabled",field:"field",placeholder:"placeholder",max:"max",ariaLabelledBy:"ariaLabelledBy",tabindex:"tabindex",inputId:"inputId",allowDuplicate:"allowDuplicate",inputStyle:"inputStyle",inputStyleClass:"inputStyleClass",addOnTab:"addOnTab",addOnBlur:"addOnBlur",separator:"separator",showClear:"showClear"},outputs:{onAdd:"onAdd",onRemove:"onRemove",onFocus:"onFocus",onBlur:"onBlur",onChipClick:"onChipClick",onClear:"onClear"},features:[b._Bn([de])],decls:7,vars:21,consts:[[3,"ngClass","ngStyle","click"],[3,"ngClass"],["class","p-chips-token",3,"click",4,"ngFor","ngForOf"],[1,"p-chips-input-token",3,"ngClass"],["type","text",3,"disabled","ngStyle","keydown","input","paste","focus","blur"],["inputtext",""],[4,"ngIf"],[1,"p-chips-token",3,"click"],["token",""],[4,"ngTemplateOutlet","ngTemplateOutletContext"],["class","p-chips-token-label",4,"ngIf"],["class","p-chips-token-icon pi pi-times-circle",3,"click",4,"ngIf"],[1,"p-chips-token-label"],[1,"p-chips-token-icon","pi","pi-times-circle",3,"click"],[1,"p-chips-clear-icon","pi","pi-times",3,"click"]],template:function(Me,be){1&Me&&(b.TgZ(0,"div",0),b.NdJ("click",function(){return be.onClick()}),b.TgZ(1,"ul",1),b.YNc(2,T,5,6,"li",2),b.TgZ(3,"li",3)(4,"input",4,5),b.NdJ("keydown",function(Be){return be.onKeydown(Be)})("input",function(){return be.onInput()})("paste",function(Be){return be.onPaste(Be)})("focus",function(Be){return be.onInputFocus(Be)})("blur",function(Be){return be.onInputBlur(Be)}),b.qZA()(),b.YNc(6,V,2,0,"li",6),b.qZA()()),2&Me&&(b.Tol(be.styleClass),b.Q6J("ngClass","p-chips p-component")("ngStyle",be.style),b.xp6(1),b.Q6J("ngClass",b.WLB(16,B,be.focus,be.disabled)),b.xp6(1),b.Q6J("ngForOf",be.value),b.xp6(1),b.Q6J("ngClass",b.VKq(19,q,be.showClear&&!be.disabled)),b.xp6(1),b.Tol(be.inputStyleClass),b.Q6J("disabled",be.disabled)("ngStyle",be.inputStyle),b.uIk("id",be.inputId)("placeholder",be.value&&be.value.length?null:be.placeholder)("tabindex",be.tabindex)("aria-labelledby",be.ariaLabelledBy),b.xp6(2),b.Q6J("ngIf",null!=be.value&&be.filled&&!be.disabled&&be.showClear))},dependencies:[c.mk,c.sg,c.O5,c.tP,c.PC],styles:[".p-chips{display:inline-flex}.p-chips-multiple-container{margin:0;padding:0;list-style-type:none;cursor:text;overflow:hidden;display:flex;align-items:center;flex-wrap:wrap}.p-chips-token{cursor:default;display:inline-flex;align-items:center;flex:0 0 auto;max-width:100%}.p-chips-token-label{min-width:0%;overflow:auto}.p-chips-token-label::-webkit-scrollbar{display:none}.p-chips-input-token{flex:1 1 auto;display:inline-flex}.p-chips-token-icon{cursor:pointer}.p-chips-input-token input{border:0 none;outline:0 none;background-color:transparent;margin:0;padding:0;box-shadow:none;border-radius:0;width:100%}.p-fluid .p-chips{display:flex}.p-chips-clear-icon{position:absolute;top:50%;margin-top:-.5rem;cursor:pointer}.p-chips-clearable .p-inputtext{position:relative}\n"],encapsulation:2,changeDetection:0}),he})(),De=(()=>{class he{}return he.\u0275fac=function(Me){return new(Me||he)},he.\u0275mod=b.oAB({type:he}),he.\u0275inj=b.cJS({imports:[c.ez,O.j,F.m8,O.j,F.m8]}),he})()},21493:(Ze,ee,_)=>{"use strict";_.d(ee,{V:()=>Ge,S:()=>ke});var c=_(55062),b=_(37340),M=_(36895),F=_(19592),O=_(10805);let w=(()=>{class ve{constructor(Ie){this.el=Ie}onkeydown(Ie){if(!0!==this.pFocusTrapDisabled){Ie.preventDefault();const ft=F.p.getNextFocusableElement(this.el.nativeElement,Ie.shiftKey);ft&&(ft.focus(),ft.select?.())}}}return ve.\u0275fac=function(Ie){return new(Ie||ve)(c.Y36(c.SBq))},ve.\u0275dir=c.lG2({type:ve,selectors:[["","pFocusTrap",""]],hostAttrs:[1,"p-element"],hostBindings:function(Ie,ft){1&Ie&&c.NdJ("keydown.tab",function(mt){return ft.onkeydown(mt)})("keydown.shift.tab",function(mt){return ft.onkeydown(mt)})},inputs:{pFocusTrapDisabled:"pFocusTrapDisabled"}}),ve})(),y=(()=>{class ve{}return ve.\u0275fac=function(Ie){return new(Ie||ve)},ve.\u0275mod=c.oAB({type:ve}),ve.\u0275inj=c.cJS({imports:[M.ez]}),ve})();var g=_(91795),x=_(60982);const N=["titlebar"],T=["content"],V=["footer"];function B(ve,ze){if(1&ve){const Ie=c.EpF();c.TgZ(0,"div",11),c.NdJ("mousedown",function(pt){c.CHM(Ie);const mt=c.oxw(3);return c.KtG(mt.initResize(pt))}),c.qZA()}}function q(ve,ze){if(1&ve&&(c.TgZ(0,"span",18),c._uU(1),c.qZA()),2&ve){const Ie=c.oxw(4);c.uIk("id",Ie.id+"-label"),c.xp6(1),c.Oqu(Ie.header)}}function de(ve,ze){if(1&ve&&(c.TgZ(0,"span",18),c.Hsn(1,1),c.qZA()),2&ve){const Ie=c.oxw(4);c.uIk("id",Ie.id+"-label")}}function se(ve,ze){1&ve&&c.GkF(0)}const De=function(){return{"p-dialog-header-icon p-dialog-header-maximize p-link":!0}};function he(ve,ze){if(1&ve){const Ie=c.EpF();c.TgZ(0,"button",19),c.NdJ("click",function(){c.CHM(Ie);const pt=c.oxw(4);return c.KtG(pt.maximize())})("keydown.enter",function(){c.CHM(Ie);const pt=c.oxw(4);return c.KtG(pt.maximize())}),c._UZ(1,"span",20),c.qZA()}if(2&ve){const Ie=c.oxw(4);c.Q6J("ngClass",c.DdM(2,De)),c.xp6(1),c.Q6J("ngClass",Ie.maximized?Ie.minimizeIcon:Ie.maximizeIcon)}}const xe=function(){return{"p-dialog-header-icon p-dialog-header-close p-link":!0}};function Me(ve,ze){if(1&ve){const Ie=c.EpF();c.TgZ(0,"button",21),c.NdJ("click",function(pt){c.CHM(Ie);const mt=c.oxw(4);return c.KtG(mt.close(pt))})("keydown.enter",function(pt){c.CHM(Ie);const mt=c.oxw(4);return c.KtG(mt.close(pt))}),c._UZ(1,"span",22),c.qZA()}if(2&ve){const Ie=c.oxw(4);c.Q6J("ngClass",c.DdM(4,xe)),c.uIk("aria-label",Ie.closeAriaLabel)("tabindex",Ie.closeTabindex),c.xp6(1),c.Q6J("ngClass",Ie.closeIcon)}}function be(ve,ze){if(1&ve){const Ie=c.EpF();c.TgZ(0,"div",12,13),c.NdJ("mousedown",function(pt){c.CHM(Ie);const mt=c.oxw(3);return c.KtG(mt.initDrag(pt))}),c.YNc(2,q,2,2,"span",14),c.YNc(3,de,2,1,"span",14),c.YNc(4,se,1,0,"ng-container",9),c.TgZ(5,"div",15),c.YNc(6,he,2,3,"button",16),c.YNc(7,Me,2,5,"button",17),c.qZA()()}if(2&ve){const Ie=c.oxw(3);c.xp6(2),c.Q6J("ngIf",!Ie.headerFacet&&!Ie.headerTemplate),c.xp6(1),c.Q6J("ngIf",Ie.headerFacet),c.xp6(1),c.Q6J("ngTemplateOutlet",Ie.headerTemplate),c.xp6(2),c.Q6J("ngIf",Ie.maximizable),c.xp6(1),c.Q6J("ngIf",Ie.closable)}}function Y(ve,ze){1&ve&&c.GkF(0)}function Be(ve,ze){1&ve&&c.GkF(0)}function le(ve,ze){if(1&ve&&(c.TgZ(0,"div",23,24),c.Hsn(2,2),c.YNc(3,Be,1,0,"ng-container",9),c.qZA()),2&ve){const Ie=c.oxw(3);c.xp6(3),c.Q6J("ngTemplateOutlet",Ie.footerTemplate)}}const R=function(ve,ze,Ie,ft){return{"p-dialog p-component":!0,"p-dialog-rtl":ve,"p-dialog-draggable":ze,"p-dialog-resizable":Ie,"p-dialog-maximized":ft}},U=function(ve,ze){return{transform:ve,transition:ze}},W=function(ve){return{value:"visible",params:ve}};function oe(ve,ze){if(1&ve){const Ie=c.EpF();c.TgZ(0,"div",3,4),c.NdJ("@animation.start",function(pt){c.CHM(Ie);const mt=c.oxw(2);return c.KtG(mt.onAnimationStart(pt))})("@animation.done",function(pt){c.CHM(Ie);const mt=c.oxw(2);return c.KtG(mt.onAnimationEnd(pt))}),c.YNc(2,B,1,0,"div",5),c.YNc(3,be,8,5,"div",6),c.TgZ(4,"div",7,8),c.Hsn(6),c.YNc(7,Y,1,0,"ng-container",9),c.qZA(),c.YNc(8,le,4,1,"div",10),c.qZA()}if(2&ve){const Ie=c.oxw(2);c.Tol(Ie.styleClass),c.Q6J("ngClass",c.l5B(15,R,Ie.rtl,Ie.draggable,Ie.resizable,Ie.maximized))("ngStyle",Ie.style)("pFocusTrapDisabled",!1===Ie.focusTrap)("@animation",c.VKq(23,W,c.WLB(20,U,Ie.transformOptions,Ie.transitionOptions))),c.uIk("aria-labelledby",Ie.id+"-label"),c.xp6(2),c.Q6J("ngIf",Ie.resizable),c.xp6(1),c.Q6J("ngIf",Ie.showHeader),c.xp6(1),c.Tol(Ie.contentStyleClass),c.Q6J("ngClass","p-dialog-content")("ngStyle",Ie.contentStyle),c.xp6(3),c.Q6J("ngTemplateOutlet",Ie.contentTemplate),c.xp6(1),c.Q6J("ngIf",Ie.footerFacet||Ie.footerTemplate)}}const ge=function(ve,ze,Ie,ft,pt,mt,yt,Pt,Zt,nn){return{"p-dialog-mask":!0,"p-component-overlay p-component-overlay-enter":ve,"p-dialog-mask-scrollblocker":ze,"p-dialog-left":Ie,"p-dialog-right":ft,"p-dialog-top":pt,"p-dialog-top-left":mt,"p-dialog-top-right":yt,"p-dialog-bottom":Pt,"p-dialog-bottom-left":Zt,"p-dialog-bottom-right":nn}};function Q(ve,ze){if(1&ve&&(c.TgZ(0,"div",1),c.YNc(1,oe,9,25,"div",2),c.qZA()),2&ve){const Ie=c.oxw();c.Tol(Ie.maskStyleClass),c.Q6J("ngClass",c.rFY(4,ge,[Ie.modal,Ie.modal||Ie.blockScroll,"left"===Ie.position,"right"===Ie.position,"top"===Ie.position,"topleft"===Ie.position||"top-left"===Ie.position,"topright"===Ie.position||"top-right"===Ie.position,"bottom"===Ie.position,"bottomleft"===Ie.position||"bottom-left"===Ie.position,"bottomright"===Ie.position||"bottom-right"===Ie.position])),c.xp6(1),c.Q6J("ngIf",Ie.visible)}}const ye=["*",[["p-header"]],[["p-footer"]]],Le=["*","p-header","p-footer"],Ye=(0,b.oQ)([(0,b.oB)({transform:"{{transform}}",opacity:0}),(0,b.jt)("{{transition}}")]),we=(0,b.oQ)([(0,b.jt)("{{transition}}",(0,b.oB)({transform:"{{transform}}",opacity:0}))]);let Ge=(()=>{class ve{constructor(Ie,ft,pt,mt,yt){this.el=Ie,this.renderer=ft,this.zone=pt,this.cd=mt,this.config=yt,this.draggable=!0,this.resizable=!0,this.closeOnEscape=!0,this.closable=!0,this.showHeader=!0,this.blockScroll=!1,this.autoZIndex=!0,this.baseZIndex=0,this.minX=0,this.minY=0,this.focusOnShow=!0,this.keepInViewport=!0,this.focusTrap=!0,this.transitionOptions="150ms cubic-bezier(0, 0, 0.2, 1)",this.closeIcon="pi pi-times",this.closeTabindex="-1",this.minimizeIcon="pi pi-window-minimize",this.maximizeIcon="pi pi-window-maximize",this.onShow=new c.vpe,this.onHide=new c.vpe,this.visibleChange=new c.vpe,this.onResizeInit=new c.vpe,this.onResizeEnd=new c.vpe,this.onDragEnd=new c.vpe,this.onMaximize=new c.vpe,this.id=(0,x.Th)(),this._style={},this._position="center",this.transformOptions="scale(0.7)"}get positionLeft(){return 0}set positionLeft(Ie){console.log("positionLeft property is deprecated.")}get positionTop(){return 0}set positionTop(Ie){console.log("positionTop property is deprecated.")}get responsive(){return!1}set responsive(Ie){console.log("Responsive property is deprecated.")}get breakpoint(){return 649}set breakpoint(Ie){console.log("Breakpoint property is not utilized and deprecated, use breakpoints or CSS media queries instead.")}ngAfterContentInit(){this.templates.forEach(Ie=>{switch(Ie.getType()){case"header":this.headerTemplate=Ie.template;break;case"content":default:this.contentTemplate=Ie.template;break;case"footer":this.footerTemplate=Ie.template}})}ngOnInit(){this.breakpoints&&this.createStyle()}get visible(){return this._visible}set visible(Ie){this._visible=Ie,this._visible&&!this.maskVisible&&(this.maskVisible=!0)}get style(){return this._style}set style(Ie){Ie&&(this._style={...Ie},this.originalStyle=Ie)}get position(){return this._position}set position(Ie){switch(this._position=Ie,Ie){case"topleft":case"bottomleft":case"left":this.transformOptions="translate3d(-100%, 0px, 0px)";break;case"topright":case"bottomright":case"right":this.transformOptions="translate3d(100%, 0px, 0px)";break;case"bottom":this.transformOptions="translate3d(0px, 100%, 0px)";break;case"top":this.transformOptions="translate3d(0px, -100%, 0px)";break;default:this.transformOptions="scale(0.7)"}}focus(){let Ie=F.p.findSingle(this.container,"[autofocus]");Ie&&this.zone.runOutsideAngular(()=>{setTimeout(()=>Ie.focus(),5)})}close(Ie){this.visibleChange.emit(!1),Ie.preventDefault()}enableModality(){this.closable&&this.dismissableMask&&(this.maskClickListener=this.renderer.listen(this.wrapper,"mousedown",Ie=>{this.wrapper&&this.wrapper.isSameNode(Ie.target)&&this.close(Ie)})),this.modal&&F.p.addClass(document.body,"p-overflow-hidden")}disableModality(){this.wrapper&&(this.dismissableMask&&this.unbindMaskClickListener(),this.modal&&F.p.removeClass(document.body,"p-overflow-hidden"),this.cd.destroyed||this.cd.detectChanges())}maximize(){this.maximized=!this.maximized,!this.modal&&!this.blockScroll&&(this.maximized?F.p.addClass(document.body,"p-overflow-hidden"):F.p.removeClass(document.body,"p-overflow-hidden")),this.onMaximize.emit({maximized:this.maximized})}unbindMaskClickListener(){this.maskClickListener&&(this.maskClickListener(),this.maskClickListener=null)}moveOnTop(){this.autoZIndex&&(x.P9.set("modal",this.container,this.baseZIndex+this.config.zIndex.modal),this.wrapper.style.zIndex=String(parseInt(this.container.style.zIndex,10)-1))}createStyle(){if(!this.styleElement){this.styleElement=document.createElement("style"),this.styleElement.type="text/css",document.head.appendChild(this.styleElement);let Ie="";for(let ft in this.breakpoints)Ie+=`\n @media screen and (max-width: ${ft}) {\n .p-dialog[${this.id}] {\n width: ${this.breakpoints[ft]} !important;\n }\n }\n `;this.styleElement.innerHTML=Ie}}initDrag(Ie){F.p.hasClass(Ie.target,"p-dialog-header-icon")||F.p.hasClass(Ie.target.parentElement,"p-dialog-header-icon")||this.draggable&&(this.dragging=!0,this.lastPageX=Ie.pageX,this.lastPageY=Ie.pageY,this.container.style.margin="0",F.p.addClass(document.body,"p-unselectable-text"))}onKeydown(Ie){if(this.focusTrap&&9===Ie.which){Ie.preventDefault();let ft=F.p.getFocusableElements(this.container);if(ft&&ft.length>0)if(ft[0].ownerDocument.activeElement){let pt=ft.indexOf(ft[0].ownerDocument.activeElement);Ie.shiftKey?-1==pt||0===pt?ft[ft.length-1].focus():ft[pt-1].focus():-1==pt||pt===ft.length-1?ft[0].focus():ft[pt+1].focus()}else ft[0].focus()}}onDrag(Ie){if(this.dragging){let ft=F.p.getOuterWidth(this.container),pt=F.p.getOuterHeight(this.container),mt=Ie.pageX-this.lastPageX,yt=Ie.pageY-this.lastPageY,Pt=this.container.getBoundingClientRect(),Zt=Pt.left+mt,nn=Pt.top+yt,qt=F.p.getViewport();this.container.style.position="fixed",this.keepInViewport?(Zt>=this.minX&&Zt+ft<qt.width&&(this._style.left=Zt+"px",this.lastPageX=Ie.pageX,this.container.style.left=Zt+"px"),nn>=this.minY&&nn+pt<qt.height&&(this._style.top=nn+"px",this.lastPageY=Ie.pageY,this.container.style.top=nn+"px")):(this.lastPageX=Ie.pageX,this.container.style.left=Zt+"px",this.lastPageY=Ie.pageY,this.container.style.top=nn+"px")}}endDrag(Ie){this.dragging&&(this.dragging=!1,F.p.removeClass(document.body,"p-unselectable-text"),this.cd.detectChanges(),this.onDragEnd.emit(Ie))}resetPosition(){this.container.style.position="",this.container.style.left="",this.container.style.top="",this.container.style.margin=""}center(){this.resetPosition()}initResize(Ie){this.resizable&&(this.resizing=!0,this.lastPageX=Ie.pageX,this.lastPageY=Ie.pageY,F.p.addClass(document.body,"p-unselectable-text"),this.onResizeInit.emit(Ie))}onResize(Ie){if(this.resizing){let ft=Ie.pageX-this.lastPageX,pt=Ie.pageY-this.lastPageY,mt=F.p.getOuterWidth(this.container),yt=F.p.getOuterHeight(this.container),Pt=F.p.getOuterHeight(this.contentViewChild.nativeElement),Zt=mt+ft,nn=yt+pt,qt=this.container.style.minWidth,Ut=this.container.style.minHeight,jt=this.container.getBoundingClientRect(),hn=F.p.getViewport();(!parseInt(this.container.style.top)||!parseInt(this.container.style.left))&&(Zt+=ft,nn+=pt),(!qt||Zt>parseInt(qt))&&jt.left+Zt<hn.width&&(this._style.width=Zt+"px",this.container.style.width=this._style.width),(!Ut||nn>parseInt(Ut))&&jt.top+nn<hn.height&&(this.contentViewChild.nativeElement.style.height=Pt+nn-yt+"px",this._style.height&&(this._style.height=nn+"px",this.container.style.height=this._style.height)),this.lastPageX=Ie.pageX,this.lastPageY=Ie.pageY}}resizeEnd(Ie){this.resizing&&(this.resizing=!1,F.p.removeClass(document.body,"p-unselectable-text"),this.onResizeEnd.emit(Ie))}bindGlobalListeners(){this.draggable&&(this.bindDocumentDragListener(),this.bindDocumentDragEndListener()),this.resizable&&this.bindDocumentResizeListeners(),this.closeOnEscape&&this.closable&&this.bindDocumentEscapeListener()}unbindGlobalListeners(){this.unbindDocumentDragListener(),this.unbindDocumentDragEndListener(),this.unbindDocumentResizeListeners(),this.unbindDocumentEscapeListener()}bindDocumentDragListener(){this.zone.runOutsideAngular(()=>{this.documentDragListener=this.onDrag.bind(this),window.document.addEventListener("mousemove",this.documentDragListener)})}unbindDocumentDragListener(){this.documentDragListener&&(window.document.removeEventListener("mousemove",this.documentDragListener),this.documentDragListener=null)}bindDocumentDragEndListener(){this.zone.runOutsideAngular(()=>{this.documentDragEndListener=this.endDrag.bind(this),window.document.addEventListener("mouseup",this.documentDragEndListener)})}unbindDocumentDragEndListener(){this.documentDragEndListener&&(window.document.removeEventListener("mouseup",this.documentDragEndListener),this.documentDragEndListener=null)}bindDocumentResizeListeners(){this.zone.runOutsideAngular(()=>{this.documentResizeListener=this.onResize.bind(this),this.documentResizeEndListener=this.resizeEnd.bind(this),window.document.addEventListener("mousemove",this.documentResizeListener),window.document.addEventListener("mouseup",this.documentResizeEndListener)})}unbindDocumentResizeListeners(){this.documentResizeListener&&this.documentResizeEndListener&&(window.document.removeEventListener("mousemove",this.documentResizeListener),window.document.removeEventListener("mouseup",this.documentResizeEndListener),this.documentResizeListener=null,this.documentResizeEndListener=null)}bindDocumentEscapeListener(){this.documentEscapeListener=this.renderer.listen(this.el?this.el.nativeElement.ownerDocument:"document","keydown",ft=>{27==ft.which&&this.close(ft)})}unbindDocumentEscapeListener(){this.documentEscapeListener&&(this.documentEscapeListener(),this.documentEscapeListener=null)}appendContainer(){this.appendTo&&("body"===this.appendTo?document.body.appendChild(this.wrapper):F.p.appendChild(this.wrapper,this.appendTo))}restoreAppend(){this.container&&this.appendTo&&this.el.nativeElement.appendChild(this.wrapper)}onAnimationStart(Ie){switch(Ie.toState){case"visible":this.container=Ie.element,this.wrapper=this.container.parentElement,this.appendContainer(),this.moveOnTop(),this.bindGlobalListeners(),this.container.setAttribute(this.id,""),this.modal&&this.enableModality(),!this.modal&&this.blockScroll&&F.p.addClass(document.body,"p-overflow-hidden"),this.focusOnShow&&this.focus();break;case"void":this.wrapper&&this.modal&&F.p.addClass(this.wrapper,"p-component-overlay-leave")}}onAnimationEnd(Ie){switch(Ie.toState){case"void":this.onContainerDestroy(),this.onHide.emit({}),this.cd.markForCheck();break;case"visible":this.onShow.emit({})}}onContainerDestroy(){this.unbindGlobalListeners(),this.dragging=!1,this.maskVisible=!1,this.maximized&&(F.p.removeClass(document.body,"p-overflow-hidden"),this.maximized=!1),this.modal&&this.disableModality(),this.blockScroll&&F.p.removeClass(document.body,"p-overflow-hidden"),this.container&&this.autoZIndex&&x.P9.clear(this.container),this.container=null,this.wrapper=null,this._style=this.originalStyle?{...this.originalStyle}:{}}destroyStyle(){this.styleElement&&(document.head.removeChild(this.styleElement),this.styleElement=null)}ngOnDestroy(){this.container&&(this.restoreAppend(),this.onContainerDestroy()),this.destroyStyle()}}return ve.\u0275fac=function(Ie){return new(Ie||ve)(c.Y36(c.SBq),c.Y36(c.Qsj),c.Y36(c.R0b),c.Y36(c.sBO),c.Y36(O.b4))},ve.\u0275cmp=c.Xpm({type:ve,selectors:[["p-dialog"]],contentQueries:function(Ie,ft,pt){if(1&Ie&&(c.Suo(pt,O.h4,5),c.Suo(pt,O.$_,5),c.Suo(pt,O.jx,4)),2&Ie){let mt;c.iGM(mt=c.CRH())&&(ft.headerFacet=mt.first),c.iGM(mt=c.CRH())&&(ft.footerFacet=mt.first),c.iGM(mt=c.CRH())&&(ft.templates=mt)}},viewQuery:function(Ie,ft){if(1&Ie&&(c.Gf(N,5),c.Gf(T,5),c.Gf(V,5)),2&Ie){let pt;c.iGM(pt=c.CRH())&&(ft.headerViewChild=pt.first),c.iGM(pt=c.CRH())&&(ft.contentViewChild=pt.first),c.iGM(pt=c.CRH())&&(ft.footerViewChild=pt.first)}},hostAttrs:[1,"p-element"],inputs:{header:"header",draggable:"draggable",resizable:"resizable",positionLeft:"positionLeft",positionTop:"positionTop",contentStyle:"contentStyle",contentStyleClass:"contentStyleClass",modal:"modal",closeOnEscape:"closeOnEscape",dismissableMask:"dismissableMask",rtl:"rtl",closable:"closable",responsive:"responsive",appendTo:"appendTo",breakpoints:"breakpoints",styleClass:"styleClass",maskStyleClass:"maskStyleClass",showHeader:"showHeader",breakpoint:"breakpoint",blockScroll:"blockScroll",autoZIndex:"autoZIndex",baseZIndex:"baseZIndex",minX:"minX",minY:"minY",focusOnShow:"focusOnShow",maximizable:"maximizable",keepInViewport:"keepInViewport",focusTrap:"focusTrap",transitionOptions:"transitionOptions",closeIcon:"closeIcon",closeAriaLabel:"closeAriaLabel",closeTabindex:"closeTabindex",minimizeIcon:"minimizeIcon",maximizeIcon:"maximizeIcon",visible:"visible",style:"style",position:"position"},outputs:{onShow:"onShow",onHide:"onHide",visibleChange:"visibleChange",onResizeInit:"onResizeInit",onResizeEnd:"onResizeEnd",onDragEnd:"onDragEnd",onMaximize:"onMaximize"},ngContentSelectors:Le,decls:1,vars:1,consts:[[3,"class","ngClass",4,"ngIf"],[3,"ngClass"],["pFocusTrap","","role","dialog",3,"ngClass","ngStyle","class","pFocusTrapDisabled",4,"ngIf"],["pFocusTrap","","role","dialog",3,"ngClass","ngStyle","pFocusTrapDisabled"],["container",""],["class","p-resizable-handle","style","z-index: 90;",3,"mousedown",4,"ngIf"],["class","p-dialog-header",3,"mousedown",4,"ngIf"],[3,"ngClass","ngStyle"],["content",""],[4,"ngTemplateOutlet"],["class","p-dialog-footer",4,"ngIf"],[1,"p-resizable-handle",2,"z-index","90",3,"mousedown"],[1,"p-dialog-header",3,"mousedown"],["titlebar",""],["class","p-dialog-title",4,"ngIf"],[1,"p-dialog-header-icons"],["type","button","tabindex","-1","pRipple","",3,"ngClass","click","keydown.enter",4,"ngIf"],["type","button","pRipple","",3,"ngClass","click","keydown.enter",4,"ngIf"],[1,"p-dialog-title"],["type","button","tabindex","-1","pRipple","",3,"ngClass","click","keydown.enter"],[1,"p-dialog-header-maximize-icon",3,"ngClass"],["type","button","pRipple","",3,"ngClass","click","keydown.enter"],[1,"p-dialog-header-close-icon",3,"ngClass"],[1,"p-dialog-footer"],["footer",""]],template:function(Ie,ft){1&Ie&&(c.F$t(ye),c.YNc(0,Q,2,15,"div",0)),2&Ie&&c.Q6J("ngIf",ft.maskVisible)},dependencies:[M.mk,M.O5,M.tP,M.PC,w,g.H],styles:[".p-dialog-mask{position:fixed;top:0;left:0;width:100%;height:100%;display:flex;justify-content:center;align-items:center;pointer-events:none}.p-dialog-mask.p-component-overlay{pointer-events:auto}.p-dialog{display:flex;flex-direction:column;pointer-events:auto;max-height:90%;transform:scale(1);position:relative}.p-dialog-content{overflow-y:auto;flex-grow:1}.p-dialog-header{display:flex;align-items:center;justify-content:space-between;flex-shrink:0}.p-dialog-draggable .p-dialog-header{cursor:move}.p-dialog-footer{flex-shrink:0}.p-dialog .p-dialog-header-icons{display:flex;align-items:center}.p-dialog .p-dialog-header-icon{display:flex;align-items:center;justify-content:center;overflow:hidden;position:relative}.p-fluid .p-dialog-footer .p-button{width:auto}.p-dialog-top .p-dialog,.p-dialog-bottom .p-dialog,.p-dialog-left .p-dialog,.p-dialog-right .p-dialog,.p-dialog-top-left .p-dialog,.p-dialog-top-right .p-dialog,.p-dialog-bottom-left .p-dialog,.p-dialog-bottom-right .p-dialog{margin:.75rem;transform:translateZ(0)}.p-dialog-maximized{transition:none;transform:none;width:100vw!important;height:100vh!important;top:0!important;left:0!important;max-height:100%;height:100%}.p-dialog-maximized .p-dialog-content{flex-grow:1}.p-dialog-left{justify-content:flex-start}.p-dialog-right{justify-content:flex-end}.p-dialog-top{align-items:flex-start}.p-dialog-top-left{justify-content:flex-start;align-items:flex-start}.p-dialog-top-right{justify-content:flex-end;align-items:flex-start}.p-dialog-bottom{align-items:flex-end}.p-dialog-bottom-left{justify-content:flex-start;align-items:flex-end}.p-dialog-bottom-right{justify-content:flex-end;align-items:flex-end}.p-dialog .p-resizable-handle{position:absolute;font-size:.1px;display:block;cursor:se-resize;width:12px;height:12px;right:1px;bottom:1px}.p-confirm-dialog .p-dialog-content{display:flex;align-items:center}\n"],encapsulation:2,data:{animation:[(0,b.X$)("animation",[(0,b.eR)("void => visible",[(0,b._7)(Ye)]),(0,b.eR)("visible => void",[(0,b._7)(we)])])]},changeDetection:0}),ve})(),ke=(()=>{class ve{}return ve.\u0275fac=function(Ie){return new(Ie||ve)},ve.\u0275mod=c.oAB({type:ve}),ve.\u0275inj=c.cJS({imports:[M.ez,y,g.T,O.m8]}),ve})()},19592:(Ze,ee,_)=>{"use strict";_.d(ee,{V:()=>b,p:()=>c});let c=(()=>{class M{static addClass(O,w){O&&w&&(O.classList?O.classList.add(w):O.className+=" "+w)}static addMultipleClasses(O,w){if(O&&w)if(O.classList){let y=w.trim().split(" ");for(let g=0;g<y.length;g++)O.classList.add(y[g])}else{let y=w.split(" ");for(let g=0;g<y.length;g++)O.className+=" "+y[g]}}static removeClass(O,w){O&&w&&(O.classList?O.classList.remove(w):O.className=O.className.replace(new RegExp("(^|\\b)"+w.split(" ").join("|")+"(\\b|$)","gi")," "))}static hasClass(O,w){return!(!O||!w)&&(O.classList?O.classList.contains(w):new RegExp("(^| )"+w+"( |$)","gi").test(O.className))}static siblings(O){return Array.prototype.filter.call(O.parentNode.children,function(w){return w!==O})}static find(O,w){return Array.from(O.querySelectorAll(w))}static findSingle(O,w){return O?O.querySelector(w):null}static index(O){let w=O.parentNode.childNodes,y=0;for(var g=0;g<w.length;g++){if(w[g]==O)return y;1==w[g].nodeType&&y++}return-1}static indexWithinGroup(O,w){let y=O.parentNode?O.parentNode.childNodes:[],g=0;for(var x=0;x<y.length;x++){if(y[x]==O)return g;y[x].attributes&&y[x].attributes[w]&&1==y[x].nodeType&&g++}return-1}static appendOverlay(O,w,y="self"){"self"!==y&&O&&w&&this.appendChild(O,w)}static alignOverlay(O,w,y="self",g=!0){O&&w&&(g&&(O.style.minWidth||(O.style.minWidth=M.getOuterWidth(w)+"px")),"self"===y?this.relativePosition(O,w):this.absolutePosition(O,w))}static relativePosition(O,w){const y=he=>{if(he)return"relative"===getComputedStyle(he).getPropertyValue("position")?he:y(he.parentElement)},g=O.offsetParent?{width:O.offsetWidth,height:O.offsetHeight}:this.getHiddenElementDimensions(O),x=w.offsetHeight,N=w.getBoundingClientRect(),T=this.getWindowScrollTop(),V=this.getWindowScrollLeft(),B=this.getViewport(),de=y(O)?.getBoundingClientRect()||{top:-1*T,left:-1*V};let se,De;N.top+x+g.height>B.height?(se=N.top-de.top-g.height,O.style.transformOrigin="bottom",N.top+se<0&&(se=-1*N.top)):(se=x+N.top-de.top,O.style.transformOrigin="top"),De=g.width>B.width?-1*(N.left-de.left):N.left-de.left+g.width>B.width?-1*(N.left-de.left+g.width-B.width):N.left-de.left,O.style.top=se+"px",O.style.left=De+"px"}static absolutePosition(O,w){const y=O.offsetParent?{width:O.offsetWidth,height:O.offsetHeight}:this.getHiddenElementDimensions(O),g=y.height,x=y.width,N=w.offsetHeight,T=w.offsetWidth,V=w.getBoundingClientRect(),B=this.getWindowScrollTop(),q=this.getWindowScrollLeft(),de=this.getViewport();let se,De;V.top+N+g>de.height?(se=V.top+B-g,O.style.transformOrigin="bottom",se<0&&(se=B)):(se=N+V.top+B,O.style.transformOrigin="top"),De=V.left+x>de.width?Math.max(0,V.left+q+T-x):V.left+q,O.style.top=se+"px",O.style.left=De+"px"}static getParents(O,w=[]){return null===O.parentNode?w:this.getParents(O.parentNode,w.concat([O.parentNode]))}static getScrollableParents(O){let w=[];if(O){let y=this.getParents(O);const g=/(auto|scroll)/,x=N=>{let T=window.getComputedStyle(N,null);return g.test(T.getPropertyValue("overflow"))||g.test(T.getPropertyValue("overflowX"))||g.test(T.getPropertyValue("overflowY"))};for(let N of y){let T=1===N.nodeType&&N.dataset.scrollselectors;if(T){let V=T.split(",");for(let B of V){let q=this.findSingle(N,B);q&&x(q)&&w.push(q)}}9!==N.nodeType&&x(N)&&w.push(N)}}return w}static getHiddenElementOuterHeight(O){O.style.visibility="hidden",O.style.display="block";let w=O.offsetHeight;return O.style.display="none",O.style.visibility="visible",w}static getHiddenElementOuterWidth(O){O.style.visibility="hidden",O.style.display="block";let w=O.offsetWidth;return O.style.display="none",O.style.visibility="visible",w}static getHiddenElementDimensions(O){let w={};return O.style.visibility="hidden",O.style.display="block",w.width=O.offsetWidth,w.height=O.offsetHeight,O.style.display="none",O.style.visibility="visible",w}static scrollInView(O,w){let y=getComputedStyle(O).getPropertyValue("borderTopWidth"),g=y?parseFloat(y):0,x=getComputedStyle(O).getPropertyValue("paddingTop"),N=x?parseFloat(x):0,T=O.getBoundingClientRect(),B=w.getBoundingClientRect().top+document.body.scrollTop-(T.top+document.body.scrollTop)-g-N,q=O.scrollTop,de=O.clientHeight,se=this.getOuterHeight(w);B<0?O.scrollTop=q+B:B+se>de&&(O.scrollTop=q+B-de+se)}static fadeIn(O,w){O.style.opacity=0;let y=+new Date,g=0,x=function(){g=+O.style.opacity.replace(",",".")+((new Date).getTime()-y)/w,O.style.opacity=g,y=+new Date,+g<1&&(window.requestAnimationFrame&&requestAnimationFrame(x)||setTimeout(x,16))};x()}static fadeOut(O,w){var y=1,N=50/w;let T=setInterval(()=>{(y-=N)<=0&&(y=0,clearInterval(T)),O.style.opacity=y},50)}static getWindowScrollTop(){let O=document.documentElement;return(window.pageYOffset||O.scrollTop)-(O.clientTop||0)}static getWindowScrollLeft(){let O=document.documentElement;return(window.pageXOffset||O.scrollLeft)-(O.clientLeft||0)}static matches(O,w){var y=Element.prototype;return(y.matches||y.webkitMatchesSelector||y.mozMatchesSelector||y.msMatchesSelector||function(x){return-1!==[].indexOf.call(document.querySelectorAll(x),this)}).call(O,w)}static getOuterWidth(O,w){let y=O.offsetWidth;if(w){let g=getComputedStyle(O);y+=parseFloat(g.marginLeft)+parseFloat(g.marginRight)}return y}static getHorizontalPadding(O){let w=getComputedStyle(O);return parseFloat(w.paddingLeft)+parseFloat(w.paddingRight)}static getHorizontalMargin(O){let w=getComputedStyle(O);return parseFloat(w.marginLeft)+parseFloat(w.marginRight)}static innerWidth(O){let w=O.offsetWidth,y=getComputedStyle(O);return w+=parseFloat(y.paddingLeft)+parseFloat(y.paddingRight),w}static width(O){let w=O.offsetWidth,y=getComputedStyle(O);return w-=parseFloat(y.paddingLeft)+parseFloat(y.paddingRight),w}static getInnerHeight(O){let w=O.offsetHeight,y=getComputedStyle(O);return w+=parseFloat(y.paddingTop)+parseFloat(y.paddingBottom),w}static getOuterHeight(O,w){let y=O.offsetHeight;if(w){let g=getComputedStyle(O);y+=parseFloat(g.marginTop)+parseFloat(g.marginBottom)}return y}static getHeight(O){let w=O.offsetHeight,y=getComputedStyle(O);return w-=parseFloat(y.paddingTop)+parseFloat(y.paddingBottom)+parseFloat(y.borderTopWidth)+parseFloat(y.borderBottomWidth),w}static getWidth(O){let w=O.offsetWidth,y=getComputedStyle(O);return w-=parseFloat(y.paddingLeft)+parseFloat(y.paddingRight)+parseFloat(y.borderLeftWidth)+parseFloat(y.borderRightWidth),w}static getViewport(){let O=window,w=document,y=w.documentElement,g=w.getElementsByTagName("body")[0];return{width:O.innerWidth||y.clientWidth||g.clientWidth,height:O.innerHeight||y.clientHeight||g.clientHeight}}static getOffset(O){var w=O.getBoundingClientRect();return{top:w.top+(window.pageYOffset||document.documentElement.scrollTop||document.body.scrollTop||0),left:w.left+(window.pageXOffset||document.documentElement.scrollLeft||document.body.scrollLeft||0)}}static replaceElementWith(O,w){let y=O.parentNode;if(!y)throw"Can't replace element";return y.replaceChild(w,O)}static getUserAgent(){return navigator.userAgent}static isIE(){var O=window.navigator.userAgent;return O.indexOf("MSIE ")>0||(O.indexOf("Trident/")>0?(O.indexOf("rv:"),!0):O.indexOf("Edge/")>0)}static isIOS(){return/iPad|iPhone|iPod/.test(navigator.userAgent)&&!window.MSStream}static isAndroid(){return/(android)/i.test(navigator.userAgent)}static isTouchDevice(){return"ontouchstart"in window||navigator.maxTouchPoints>0}static appendChild(O,w){if(this.isElement(w))w.appendChild(O);else{if(!w.el||!w.el.nativeElement)throw"Cannot append "+w+" to "+O;w.el.nativeElement.appendChild(O)}}static removeChild(O,w){if(this.isElement(w))w.removeChild(O);else{if(!w.el||!w.el.nativeElement)throw"Cannot remove "+O+" from "+w;w.el.nativeElement.removeChild(O)}}static removeElement(O){"remove"in Element.prototype?O.remove():O.parentNode.removeChild(O)}static isElement(O){return"object"==typeof HTMLElement?O instanceof HTMLElement:O&&"object"==typeof O&&null!==O&&1===O.nodeType&&"string"==typeof O.nodeName}static calculateScrollbarWidth(O){if(O){let w=getComputedStyle(O);return O.offsetWidth-O.clientWidth-parseFloat(w.borderLeftWidth)-parseFloat(w.borderRightWidth)}{if(null!==this.calculatedScrollbarWidth)return this.calculatedScrollbarWidth;let w=document.createElement("div");w.className="p-scrollbar-measure",document.body.appendChild(w);let y=w.offsetWidth-w.clientWidth;return document.body.removeChild(w),this.calculatedScrollbarWidth=y,y}}static calculateScrollbarHeight(){if(null!==this.calculatedScrollbarHeight)return this.calculatedScrollbarHeight;let O=document.createElement("div");O.className="p-scrollbar-measure",document.body.appendChild(O);let w=O.offsetHeight-O.clientHeight;return document.body.removeChild(O),this.calculatedScrollbarWidth=w,w}static invokeElementMethod(O,w,y){O[w].apply(O,y)}static clearSelection(){if(window.getSelection)window.getSelection().empty?window.getSelection().empty():window.getSelection().removeAllRanges&&window.getSelection().rangeCount>0&&window.getSelection().getRangeAt(0).getClientRects().length>0&&window.getSelection().removeAllRanges();else if(document.selection&&document.selection.empty)try{document.selection.empty()}catch{}}static getBrowser(){if(!this.browser){let O=this.resolveUserAgent();this.browser={},O.browser&&(this.browser[O.browser]=!0,this.browser.version=O.version),this.browser.chrome?this.browser.webkit=!0:this.browser.webkit&&(this.browser.safari=!0)}return this.browser}static resolveUserAgent(){let O=navigator.userAgent.toLowerCase(),w=/(chrome)[ \/]([\w.]+)/.exec(O)||/(webkit)[ \/]([\w.]+)/.exec(O)||/(opera)(?:.*version|)[ \/]([\w.]+)/.exec(O)||/(msie) ([\w.]+)/.exec(O)||O.indexOf("compatible")<0&&/(mozilla)(?:.*? rv:([\w.]+)|)/.exec(O)||[];return{browser:w[1]||"",version:w[2]||"0"}}static isInteger(O){return Number.isInteger?Number.isInteger(O):"number"==typeof O&&isFinite(O)&&Math.floor(O)===O}static isHidden(O){return!O||null===O.offsetParent}static isVisible(O){return O&&null!=O.offsetParent}static isExist(O){return null!==O&&typeof O<"u"&&O.nodeName&&O.parentNode}static focus(O,w){O&&document.activeElement!==O&&O.focus(w)}static getFocusableElements(O){let w=M.find(O,'button:not([tabindex = "-1"]):not([disabled]):not([style*="display:none"]):not([hidden]),\n [href]:not([tabindex = "-1"]):not([disabled]):not([style*="display:none"]):not([hidden]),\n input:not([tabindex = "-1"]):not([disabled]):not([style*="display:none"]):not([hidden]), select:not([tabindex = "-1"]):not([disabled]):not([style*="display:none"]):not([hidden]),\n textarea:not([tabindex = "-1"]):not([disabled]):not([style*="display:none"]):not([hidden]), [tabIndex]:not([tabIndex = "-1"]):not([disabled]):not([style*="display:none"]):not([hidden]),\n [contenteditable]:not([tabIndex = "-1"]):not([disabled]):not([style*="display:none"]):not([hidden]):not(.p-disabled)'),y=[];for(let g of w)(g.offsetWidth||g.offsetHeight||g.getClientRects().length)&&y.push(g);return y}static getNextFocusableElement(O,w=!1){const y=M.getFocusableElements(O);let g=0;if(y&&y.length>0){const x=y.indexOf(y[0].ownerDocument.activeElement);w?g=-1==x||0===x?y.length-1:x-1:-1!=x&&x!==y.length-1&&(g=x+1)}return y[g]}static generateZIndex(){return this.zindex=this.zindex||999,++this.zindex}static getSelection(){return window.getSelection?window.getSelection().toString():document.getSelection?document.getSelection().toString():document.selection?document.selection.createRange().text:null}static getTargetElement(O,w){if(!O)return null;switch(O){case"document":return document;case"window":return window;case"@next":return w?.nextElementSibling;case"@prev":return w?.previousElementSibling;case"@parent":return w?.parentElement;case"@grandparent":return w?.parentElement.parentElement;default:const y=typeof O;if("string"===y)return document.querySelector(O);if("object"===y&&O.hasOwnProperty("nativeElement"))return this.isExist(O.nativeElement)?O.nativeElement:void 0;const x=(N=O)&&N.constructor&&N.call&&N.apply?O():O;return x&&9===x.nodeType||this.isExist(x)?x:null}var N}}return M.zindex=1e3,M.calculatedScrollbarWidth=null,M.calculatedScrollbarHeight=null,M})();class b{constructor(F,O=(()=>{})){this.element=F,this.listener=O}bindScrollListener(){this.scrollableParents=c.getScrollableParents(this.element);for(let F=0;F<this.scrollableParents.length;F++)this.scrollableParents[F].addEventListener("scroll",this.listener)}unbindScrollListener(){if(this.scrollableParents)for(let F=0;F<this.scrollableParents.length;F++)this.scrollableParents[F].removeEventListener("scroll",this.listener)}destroy(){this.unbindScrollListener(),this.element=null,this.listener=null,this.scrollableParents=null}}},51740:(Ze,ee,_)=>{"use strict";_.d(ee,{j:()=>O,o:()=>F});var c=_(55062),b=_(36895),M=_(24006);let F=(()=>{class w{constructor(g,x,N){this.el=g,this.ngModel=x,this.cd=N}ngAfterViewInit(){this.updateFilledState(),this.cd.detectChanges()}ngDoCheck(){this.updateFilledState()}onInput(g){this.updateFilledState()}updateFilledState(){this.filled=this.el.nativeElement.value&&this.el.nativeElement.value.length||this.ngModel&&this.ngModel.model}}return w.\u0275fac=function(g){return new(g||w)(c.Y36(c.SBq),c.Y36(M.On,8),c.Y36(c.sBO))},w.\u0275dir=c.lG2({type:w,selectors:[["","pInputText",""]],hostAttrs:[1,"p-inputtext","p-component","p-element"],hostVars:2,hostBindings:function(g,x){1&g&&c.NdJ("input",function(T){return x.onInput(T)}),2&g&&c.ekj("p-filled",x.filled)}}),w})(),O=(()=>{class w{}return w.\u0275fac=function(g){return new(g||w)},w.\u0275mod=c.oAB({type:w}),w.\u0275inj=c.cJS({imports:[b.ez]}),w})()},91795:(Ze,ee,_)=>{"use strict";_.d(ee,{H:()=>O,T:()=>w});var c=_(55062),b=_(36895),M=_(19592),F=_(10805);let O=(()=>{class y{constructor(x,N,T){this.el=x,this.zone=N,this.config=T}ngAfterViewInit(){this.config&&this.config.ripple&&this.zone.runOutsideAngular(()=>{this.create(),this.mouseDownListener=this.onMouseDown.bind(this),this.el.nativeElement.addEventListener("mousedown",this.mouseDownListener)})}onMouseDown(x){let N=this.getInk();if(!N||"none"===getComputedStyle(N,null).display)return;if(M.p.removeClass(N,"p-ink-active"),!M.p.getHeight(N)&&!M.p.getWidth(N)){let q=Math.max(M.p.getOuterWidth(this.el.nativeElement),M.p.getOuterHeight(this.el.nativeElement));N.style.height=q+"px",N.style.width=q+"px"}let T=M.p.getOffset(this.el.nativeElement),V=x.pageX-T.left+document.body.scrollTop-M.p.getWidth(N)/2,B=x.pageY-T.top+document.body.scrollLeft-M.p.getHeight(N)/2;N.style.top=B+"px",N.style.left=V+"px",M.p.addClass(N,"p-ink-active"),this.timeout=setTimeout(()=>{let q=this.getInk();q&&M.p.removeClass(q,"p-ink-active")},401)}getInk(){const x=this.el.nativeElement.children;for(let N=0;N<x.length;N++)if("string"==typeof x[N].className&&-1!==x[N].className.indexOf("p-ink"))return x[N];return null}resetInk(){let x=this.getInk();x&&M.p.removeClass(x,"p-ink-active")}onAnimationEnd(x){this.timeout&&clearTimeout(this.timeout),M.p.removeClass(x.currentTarget,"p-ink-active")}create(){let x=document.createElement("span");x.className="p-ink",this.el.nativeElement.appendChild(x),this.animationListener=this.onAnimationEnd.bind(this),x.addEventListener("animationend",this.animationListener)}remove(){let x=this.getInk();x&&(this.el.nativeElement.removeEventListener("mousedown",this.mouseDownListener),x.removeEventListener("animationend",this.animationListener),M.p.removeElement(x))}ngOnDestroy(){this.config&&this.config.ripple&&this.remove()}}return y.\u0275fac=function(x){return new(x||y)(c.Y36(c.SBq),c.Y36(c.R0b),c.Y36(F.b4,8))},y.\u0275dir=c.lG2({type:y,selectors:[["","pRipple",""]],hostAttrs:[1,"p-ripple","p-element"]}),y})(),w=(()=>{class y{}return y.\u0275fac=function(x){return new(x||y)},y.\u0275mod=c.oAB({type:y}),y.\u0275inj=c.cJS({imports:[b.ez]}),y})()},12453:(Ze,ee,_)=>{"use strict";_.d(ee,{EV:()=>xe,FN:()=>he});var c=_(55062),b=_(36895),M=_(10805),F=_(60982),O=_(91795),w=_(37340);const y=["container"],g=function(Me,be,Y,Be){return{"pi-info-circle":Me,"pi-exclamation-triangle":be,"pi-times-circle":Y,"pi-check":Be}};function x(Me,be){if(1&Me&&(c.ynx(0),c._UZ(1,"span",6),c.TgZ(2,"div",7)(3,"div",8),c._uU(4),c.qZA(),c.TgZ(5,"div",9),c._uU(6),c.qZA()(),c.BQk()),2&Me){const Y=c.oxw();c.xp6(1),c.Tol("p-toast-message-icon pi"+(Y.message.icon?" "+Y.message.icon:"")),c.Q6J("ngClass",c.l5B(5,g,"info"==Y.message.severity,"warn"==Y.message.severity,"error"==Y.message.severity,"success"==Y.message.severity)),c.xp6(3),c.Oqu(Y.message.summary),c.xp6(2),c.Oqu(Y.message.detail)}}function N(Me,be){1&Me&&c.GkF(0)}function T(Me,be){if(1&Me){const Y=c.EpF();c.TgZ(0,"button",10),c.NdJ("click",function(le){c.CHM(Y);const R=c.oxw();return c.KtG(R.onCloseIconClick(le))})("keydown.enter",function(le){c.CHM(Y);const R=c.oxw();return c.KtG(R.onCloseIconClick(le))}),c._UZ(1,"span",11),c.qZA()}}const V=function(Me){return[Me,"p-toast-message"]},B=function(Me,be,Y,Be){return{showTransformParams:Me,hideTransformParams:be,showTransitionParams:Y,hideTransitionParams:Be}},q=function(Me){return{value:"visible",params:Me}},de=function(Me){return{$implicit:Me}};function se(Me,be){if(1&Me){const Y=c.EpF();c.TgZ(0,"p-toastItem",3),c.NdJ("onClose",function(le){c.CHM(Y);const R=c.oxw();return c.KtG(R.onMessageClose(le))})("@toastAnimation.start",function(le){c.CHM(Y);const R=c.oxw();return c.KtG(R.onAnimationStart(le))})("@toastAnimation.done",function(le){c.CHM(Y);const R=c.oxw();return c.KtG(R.onAnimationEnd(le))}),c.qZA()}if(2&Me){const Y=be.$implicit,Be=be.index,le=c.oxw();c.Q6J("message",Y)("index",Be)("template",le.template)("@toastAnimation",void 0)("showTransformOptions",le.showTransformOptions)("hideTransformOptions",le.hideTransformOptions)("showTransitionOptions",le.showTransitionOptions)("hideTransitionOptions",le.hideTransitionOptions)}}let De=(()=>{class Me{constructor(Y){this.zone=Y,this.onClose=new c.vpe}ngAfterViewInit(){this.initTimeout()}initTimeout(){this.message.sticky||this.zone.runOutsideAngular(()=>{this.timeout=setTimeout(()=>{this.onClose.emit({index:this.index,message:this.message})},this.message.life||3e3)})}clearTimeout(){this.timeout&&(clearTimeout(this.timeout),this.timeout=null)}onMouseEnter(){this.clearTimeout()}onMouseLeave(){this.initTimeout()}onCloseIconClick(Y){this.clearTimeout(),this.onClose.emit({index:this.index,message:this.message}),Y.preventDefault()}ngOnDestroy(){this.clearTimeout()}}return Me.\u0275fac=function(Y){return new(Y||Me)(c.Y36(c.R0b))},Me.\u0275cmp=c.Xpm({type:Me,selectors:[["p-toastItem"]],viewQuery:function(Y,Be){if(1&Y&&c.Gf(y,5),2&Y){let le;c.iGM(le=c.CRH())&&(Be.containerViewChild=le.first)}},hostAttrs:[1,"p-element"],inputs:{message:"message",index:"index",template:"template",showTransformOptions:"showTransformOptions",hideTransformOptions:"hideTransformOptions",showTransitionOptions:"showTransitionOptions",hideTransitionOptions:"hideTransitionOptions"},outputs:{onClose:"onClose"},decls:6,vars:21,consts:[[3,"ngClass","mouseenter","mouseleave"],["container",""],["role","alert","aria-live","assertive","aria-atomic","true",1,"p-toast-message-content",3,"ngClass"],[4,"ngIf"],[4,"ngTemplateOutlet","ngTemplateOutletContext"],["type","button","class","p-toast-icon-close p-link","pRipple","",3,"click","keydown.enter",4,"ngIf"],[3,"ngClass"],[1,"p-toast-message-text"],[1,"p-toast-summary"],[1,"p-toast-detail"],["type","button","pRipple","",1,"p-toast-icon-close","p-link",3,"click","keydown.enter"],[1,"p-toast-icon-close-icon","pi","pi-times"]],template:function(Y,Be){1&Y&&(c.TgZ(0,"div",0,1),c.NdJ("mouseenter",function(){return Be.onMouseEnter()})("mouseleave",function(){return Be.onMouseLeave()}),c.TgZ(2,"div",2),c.YNc(3,x,7,10,"ng-container",3),c.YNc(4,N,1,0,"ng-container",4),c.YNc(5,T,2,0,"button",5),c.qZA()()),2&Y&&(c.Tol(Be.message.styleClass),c.Q6J("ngClass",c.VKq(10,V,"p-toast-message-"+Be.message.severity))("@messageState",c.VKq(17,q,c.l5B(12,B,Be.showTransformOptions,Be.hideTransformOptions,Be.showTransitionOptions,Be.hideTransitionOptions))),c.uIk("id",Be.message.id),c.xp6(2),c.Q6J("ngClass",Be.message.contentStyleClass),c.xp6(1),c.Q6J("ngIf",!Be.template),c.xp6(1),c.Q6J("ngTemplateOutlet",Be.template)("ngTemplateOutletContext",c.VKq(19,de,Be.message)),c.xp6(1),c.Q6J("ngIf",!1!==Be.message.closable))},dependencies:[b.mk,b.O5,b.tP,O.H],encapsulation:2,data:{animation:[(0,w.X$)("messageState",[(0,w.SB)("visible",(0,w.oB)({transform:"translateY(0)",opacity:1})),(0,w.eR)("void => *",[(0,w.oB)({transform:"{{showTransformParams}}",opacity:0}),(0,w.jt)("{{showTransitionParams}}")]),(0,w.eR)("* => void",[(0,w.jt)("{{hideTransitionParams}}",(0,w.oB)({height:0,opacity:0,transform:"{{hideTransformParams}}"}))])])]},changeDetection:0}),Me})(),he=(()=>{class Me{constructor(Y,Be,le){this.messageService=Y,this.cd=Be,this.config=le,this.autoZIndex=!0,this.baseZIndex=0,this.position="top-right",this.preventOpenDuplicates=!1,this.preventDuplicates=!1,this.showTransformOptions="translateY(100%)",this.hideTransformOptions="translateY(-100%)",this.showTransitionOptions="300ms ease-out",this.hideTransitionOptions="250ms ease-in",this.onClose=new c.vpe,this.id=(0,F.Th)()}ngOnInit(){this.messageSubscription=this.messageService.messageObserver.subscribe(Y=>{if(Y)if(Array.isArray(Y)){const Be=Y.filter(le=>this.canAdd(le));this.add(Be)}else this.canAdd(Y)&&this.add([Y])}),this.clearSubscription=this.messageService.clearObserver.subscribe(Y=>{Y?this.key===Y&&(this.messages=null):this.messages=null,this.cd.markForCheck()})}ngAfterViewInit(){this.breakpoints&&this.createStyle()}add(Y){this.messages=this.messages?[...this.messages,...Y]:[...Y],this.preventDuplicates&&(this.messagesArchieve=this.messagesArchieve?[...this.messagesArchieve,...Y]:[...Y]),this.cd.markForCheck()}canAdd(Y){let Be=this.key===Y.key;return Be&&this.preventOpenDuplicates&&(Be=!this.containsMessage(this.messages,Y)),Be&&this.preventDuplicates&&(Be=!this.containsMessage(this.messagesArchieve,Y)),Be}containsMessage(Y,Be){return!!Y&&null!=Y.find(le=>le.summary===Be.summary&&le.detail==Be.detail&&le.severity===Be.severity)}ngAfterContentInit(){this.templates.forEach(Y=>{Y.getType(),this.template=Y.template})}onMessageClose(Y){this.messages.splice(Y.index,1),this.onClose.emit({message:Y.message}),this.cd.detectChanges()}onAnimationStart(Y){"void"===Y.fromState&&(this.containerViewChild.nativeElement.setAttribute(this.id,""),this.autoZIndex&&""===this.containerViewChild.nativeElement.style.zIndex&&F.P9.set("modal",this.containerViewChild.nativeElement,this.baseZIndex||this.config.zIndex.modal))}onAnimationEnd(Y){"void"===Y.toState&&this.autoZIndex&&F.gb.isEmpty(this.messages)&&F.P9.clear(this.containerViewChild.nativeElement)}createStyle(){if(!this.styleElement){this.styleElement=document.createElement("style"),this.styleElement.type="text/css",document.head.appendChild(this.styleElement);let Y="";for(let Be in this.breakpoints){let le="";for(let R in this.breakpoints[Be])le+=R+":"+this.breakpoints[Be][R]+" !important;";Y+=`\n @media screen and (max-width: ${Be}) {\n .p-toast[${this.id}] {\n ${le}\n }\n }\n `}this.styleElement.innerHTML=Y}}destroyStyle(){this.styleElement&&(document.head.removeChild(this.styleElement),this.styleElement=null)}ngOnDestroy(){this.messageSubscription&&this.messageSubscription.unsubscribe(),this.containerViewChild&&this.autoZIndex&&F.P9.clear(this.containerViewChild.nativeElement),this.clearSubscription&&this.clearSubscription.unsubscribe(),this.destroyStyle()}}return Me.\u0275fac=function(Y){return new(Y||Me)(c.Y36(M.ez),c.Y36(c.sBO),c.Y36(M.b4))},Me.\u0275cmp=c.Xpm({type:Me,selectors:[["p-toast"]],contentQueries:function(Y,Be,le){if(1&Y&&c.Suo(le,M.jx,4),2&Y){let R;c.iGM(R=c.CRH())&&(Be.templates=R)}},viewQuery:function(Y,Be){if(1&Y&&c.Gf(y,5),2&Y){let le;c.iGM(le=c.CRH())&&(Be.containerViewChild=le.first)}},hostAttrs:[1,"p-element"],inputs:{key:"key",autoZIndex:"autoZIndex",baseZIndex:"baseZIndex",style:"style",styleClass:"styleClass",position:"position",preventOpenDuplicates:"preventOpenDuplicates",preventDuplicates:"preventDuplicates",showTransformOptions:"showTransformOptions",hideTransformOptions:"hideTransformOptions",showTransitionOptions:"showTransitionOptions",hideTransitionOptions:"hideTransitionOptions",breakpoints:"breakpoints"},outputs:{onClose:"onClose"},decls:3,vars:5,consts:[[3,"ngClass","ngStyle"],["container",""],[3,"message","index","template","showTransformOptions","hideTransformOptions","showTransitionOptions","hideTransitionOptions","onClose",4,"ngFor","ngForOf"],[3,"message","index","template","showTransformOptions","hideTransformOptions","showTransitionOptions","hideTransitionOptions","onClose"]],template:function(Y,Be){1&Y&&(c.TgZ(0,"div",0,1),c.YNc(2,se,1,8,"p-toastItem",2),c.qZA()),2&Y&&(c.Tol(Be.styleClass),c.Q6J("ngClass","p-toast p-component p-toast-"+Be.position)("ngStyle",Be.style),c.xp6(2),c.Q6J("ngForOf",Be.messages))},dependencies:[b.mk,b.sg,b.PC,De],styles:[".p-toast{position:fixed;width:25rem}.p-toast-message{overflow:hidden}.p-toast-message-content{display:flex;align-items:flex-start}.p-toast-message-text{flex:1 1 auto}.p-toast-top-right{top:20px;right:20px}.p-toast-top-left{top:20px;left:20px}.p-toast-bottom-left{bottom:20px;left:20px}.p-toast-bottom-right{bottom:20px;right:20px}.p-toast-top-center{top:20px;left:50%;transform:translate(-50%)}.p-toast-bottom-center{bottom:20px;left:50%;transform:translate(-50%)}.p-toast-center{left:50%;top:50%;min-width:20vw;transform:translate(-50%,-50%)}.p-toast-icon-close{display:flex;align-items:center;justify-content:center;overflow:hidden;position:relative}.p-toast-icon-close.p-link{cursor:pointer}\n"],encapsulation:2,data:{animation:[(0,w.X$)("toastAnimation",[(0,w.eR)(":enter, :leave",[(0,w.IO)("@*",(0,w.pV)())])])]},changeDetection:0}),Me})(),xe=(()=>{class Me{}return Me.\u0275fac=function(Y){return new(Y||Me)},Me.\u0275mod=c.oAB({type:Me}),Me.\u0275inj=c.cJS({imports:[b.ez,O.T,M.m8]}),Me})()},60982:(Ze,ee,_)=>{"use strict";_.d(ee,{P9:()=>O,Th:()=>M,gb:()=>c});class c{static equals(y,g,x){return x?this.resolveFieldData(y,x)===this.resolveFieldData(g,x):this.equalsByValue(y,g)}static equalsByValue(y,g){if(y===g)return!0;if(y&&g&&"object"==typeof y&&"object"==typeof g){var T,V,B,x=Array.isArray(y),N=Array.isArray(g);if(x&&N){if((V=y.length)!=g.length)return!1;for(T=V;0!=T--;)if(!this.equalsByValue(y[T],g[T]))return!1;return!0}if(x!=N)return!1;var q=this.isDate(y),de=this.isDate(g);if(q!=de)return!1;if(q&&de)return y.getTime()==g.getTime();var se=y instanceof RegExp,De=g instanceof RegExp;if(se!=De)return!1;if(se&&De)return y.toString()==g.toString();var he=Object.keys(y);if((V=he.length)!==Object.keys(g).length)return!1;for(T=V;0!=T--;)if(!Object.prototype.hasOwnProperty.call(g,he[T]))return!1;for(T=V;0!=T--;)if(!this.equalsByValue(y[B=he[T]],g[B]))return!1;return!0}return y!=y&&g!=g}static resolveFieldData(y,g){if(y&&g){if(this.isFunction(g))return g(y);if(-1==g.indexOf("."))return y[g];{let x=g.split("."),N=y;for(let T=0,V=x.length;T<V;++T){if(null==N)return null;N=N[x[T]]}return N}}return null}static isFunction(y){return!!(y&&y.constructor&&y.call&&y.apply)}static reorderArray(y,g,x){y&&g!==x&&(x>=y.length&&(x%=y.length,g%=y.length),y.splice(x,0,y.splice(g,1)[0]))}static insertIntoOrderedArray(y,g,x,N){if(x.length>0){let T=!1;for(let V=0;V<x.length;V++)if(this.findIndexInList(x[V],N)>g){x.splice(V,0,y),T=!0;break}T||x.push(y)}else x.push(y)}static findIndexInList(y,g){let x=-1;if(g)for(let N=0;N<g.length;N++)if(g[N]==y){x=N;break}return x}static contains(y,g){if(null!=y&&g&&g.length)for(let x of g)if(this.equals(y,x))return!0;return!1}static removeAccents(y){return y&&y.search(/[\xC0-\xFF]/g)>-1&&(y=y.replace(/[\xC0-\xC5]/g,"A").replace(/[\xC6]/g,"AE").replace(/[\xC7]/g,"C").replace(/[\xC8-\xCB]/g,"E").replace(/[\xCC-\xCF]/g,"I").replace(/[\xD0]/g,"D").replace(/[\xD1]/g,"N").replace(/[\xD2-\xD6\xD8]/g,"O").replace(/[\xD9-\xDC]/g,"U").replace(/[\xDD]/g,"Y").replace(/[\xDE]/g,"P").replace(/[\xE0-\xE5]/g,"a").replace(/[\xE6]/g,"ae").replace(/[\xE7]/g,"c").replace(/[\xE8-\xEB]/g,"e").replace(/[\xEC-\xEF]/g,"i").replace(/[\xF1]/g,"n").replace(/[\xF2-\xF6\xF8]/g,"o").replace(/[\xF9-\xFC]/g,"u").replace(/[\xFE]/g,"p").replace(/[\xFD\xFF]/g,"y")),y}static isDate(y){return"[object Date]"===Object.prototype.toString.call(y)}static isEmpty(y){return null==y||""===y||Array.isArray(y)&&0===y.length||!this.isDate(y)&&"object"==typeof y&&0===Object.keys(y).length}static isNotEmpty(y){return!this.isEmpty(y)}static compare(y,g,x,N=1){let T=-1;const V=this.isEmpty(y),B=this.isEmpty(g);return T=V&&B?0:V?N:B?-N:"string"==typeof y&&"string"==typeof g?y.localeCompare(g,x,{numeric:!0}):y<g?-1:y>g?1:0,T}static sort(y,g,x=1,N,T=1){return(1===T?x:T)*c.compare(y,g,N,x)}static merge(y,g){if(null!=y||null!=g)return null!=y&&"object"!=typeof y||null!=g&&"object"!=typeof g?null!=y&&"string"!=typeof y||null!=g&&"string"!=typeof g?g||y:[y||"",g||""].join(" "):{...y||{},...g||{}}}}var b=0;function M(){return"pr_id_"+ ++b}var O=function F(){let w=[];const N=T=>T&&parseInt(T.style.zIndex,10)||0;return{get:N,set:(T,V,B)=>{V&&(V.style.zIndex=String(((T,V)=>{let B=w.length>0?w[w.length-1]:{key:T,value:V},q=B.value+(B.key===T?0:V)+1;return w.push({key:T,value:q}),q})(T,B)))},clear:T=>{T&&((T=>{w=w.filter(V=>V.value!==T)})(N(T)),T.style.zIndex="")},getCurrent:()=>w.length>0?w[w.length-1].value:0}}()},4942:(Ze,ee,_)=>{"use strict";_.d(ee,{Z:()=>b});var c=_(83997);function b(M,F,O){return(F=(0,c.Z)(F))in M?Object.defineProperty(M,F,{value:O,enumerable:!0,configurable:!0,writable:!0}):M[F]=O,M}},83997:(Ze,ee,_)=>{"use strict";_.d(ee,{Z:()=>M});var c=_(71002);function M(F){var O=function b(F,O){if("object"!==(0,c.Z)(F)||null===F)return F;var w=F[Symbol.toPrimitive];if(void 0!==w){var y=w.call(F,O||"default");if("object"!==(0,c.Z)(y))return y;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===O?String:Number)(F)}(F,"string");return"symbol"===(0,c.Z)(O)?O:String(O)}},71002:(Ze,ee,_)=>{"use strict";function c(b){return(c="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(M){return typeof M}:function(M){return M&&"function"==typeof Symbol&&M.constructor===Symbol&&M!==Symbol.prototype?"symbol":typeof M})(b)}_.d(ee,{Z:()=>c})}},Ze=>{Ze(Ze.s=31255)}]);