1(self.webpackChunkreserved_seats=self.webpackChunkreserved_seats||[]).push([[792],{5134:(ct,be,I)=>{"use strict";I.d(be,{n:()=>$});var c=I(5312);const g=c.c.public?"mksm/app":"mksm/teller",$={USER:{PERMISSIONS:`${c.c.apiBaseUri}permissions/?applicationId=16&userName={userName}`,WORKERS:`${c.c.apiBaseUri}active-directory/users/forGroup/?groupName={groupName}`},ORDER:{BOOKING_TYPES:`${c.c.apiBaseUri}${g}/booking/types`,GET_ORIGIN_CITIES:`${c.c.apiBaseUri}${g}/stop/pickUp?yeshuvDown={yeshuvDown}&rideTypeId={rideTypeId}`,GET_DESTINATION_CITIES:`${c.c.apiBaseUri}${g}/stop/dropDown?yeshuvUp={yeshuvUp}&rideTypeId={rideTypeId}`,GET_STOPS:`${c.c.apiBaseUri}${g}/stop/?yeshuvUp={yeshuvUp}&yeshuvDown={yeshuvDown}&rideTypeId={rideTypeId}`,PASSENGER_TYPES:`${c.c.apiBaseUri}${g}/passenger/types?sourceTypeId={sourceTypeId}&isAccessibility={isAccessibility}`,VALIDATE_PASSENGER_TYPES:`${c.c.apiBaseUri}${g}/passenger/validate`,VALIDATE_IDF_PASSENGER:`${c.c.apiBaseUri}${g}/passenger/idf/{idNumber}/valid`,DATES:`${c.c.apiBaseUri}${g}/date?yeshuvIdUp={yeshuvIdUp}&motStopIdUp={motStopIdUp}&yeshuvIdDown={yeshuvIdDown}&motStopIdDown={motStopIdDown}&passengerCnt={passengerCnt}&rideTypeId={rideTypeId}`,LINES:`${c.c.apiBaseUri}${g}/ride/{yeshuvIdUp}/{yeshuvIdDown}?travelDate={travelDate}&motStopIdUp={motStopIdUp}&motStopIdDown={motStopIdDown}&passengerCnt={passengerCnt}&rideTypeId={rideTypeId}`,PRICE:`${c.c.apiBaseUri}${g}/ride/price/{motStopIdUp}/{motStopIdDown}/?rideYeshuvTchilaId={rideYeshuvTchilaId}&rideYeshuvSiyumId={rideYeshuvSiyumId}&passengerTypeLst={passengerTypeLst}`,PAYMENT_TYPES:`${c.c.apiBaseUri}${g}/payment/{sourceTypeId}?passengers={passengers}`,GET_SEATS_AUTO:`${c.c.apiBaseUri}${g}/seat?travelDateTime={travelDateTime}&makat8={makat8}&numSeats={numSeats}&isAccessibility={isAccessibility}`,GET_SEATS_FOR_SELECTION:`${c.c.apiBaseUri}${g}/seat/rides/?travelDt={travelDt}&makat8={makat8}&rideTypeId={rideTypeId}`,SET_SEATS_MANUAL:`${c.c.apiBaseUri}${g}/seat`,RELEASE_SEATS:`${c.c.apiBaseUri}${g}/seat/{rideId}?displaySeats={displaySeats}&isAccessibility={isAccessibility}`,SAVE_ORDER:`${c.c.apiBaseUri}${g}/booking`,GET_RAVKAV_VALIDATION:`${c.c.apiBaseUri}${g}/passenger/ravkav/{ravKavNumber}/valid`,PAYMENT_SETUP:`${c.c.apiBaseUri}${g}/payment/setup`,ORDER_DETAILS:`${c.c.apiBaseUri}${g}/booking/details`,CANCEL_ORDER:`${c.c.apiBaseUri}${g}/booking?hashBookingId={hashBookingId}`,UPDATE_ORDER:`${c.c.apiBaseUri}${g}/booking`,INVOICE:`${c.c.apiBaseUri}${g}/payment/receipt/{orderNumber}`,INVOICE_PRINT:`${c.c.apiBaseUri}${g}/cashier/receipt/{orderNumber}?cashierName={cashierName}`},TICKETS:{GET_BOOKING_TICKETS:`${c.c.apiBaseUri}${g}/booking/tickets/?hashBookingId={hashBookingId}`},QUERY:{GET_RIDE_TYPES:`${c.c.apiBaseUri}${g}/ride/type`,GET_LINE_SIGNS:`${c.c.apiBaseUri}${g}/ride/lineSign`,GET_LIST_BOOKING:`${c.c.apiBaseUri}${g}/booking/list?bookingId={bookingId}&bookingFromDate={bookingFromDate}&bookingToDate={bookingToDate}&travelFromDate={travelFromDate}&travelToDate={travelToDate}&phoneNumber={phoneNumber}&status={status}&cashierName={cashierName}`,GET_BOOKING_AUDIT:`${c.c.apiBaseUri}${g}/booking/{bookingId}/audit`,GET_BOOKING_SUMMARY:`${c.c.apiBaseUri}${g}/booking/{bookingId}`,GET_LIST_RIDE:`${c.c.apiBaseUri}${g}/ride/list?fromDate={fromDate}&toDate={toDate}&rideTypeId={rideTypeId}&lineSign={lineSign}&yeshuvStart={yeshuvStart}&yeshuvEnd={yeshuvEnd}`,GET_CITIES_PICK_UP:`${c.c.apiBaseUri}${g}/stop/pickUp`,GET_CITIES_DROP_DOWN:`${c.c.apiBaseUri}${g}/stop/dropDown`,GET_RIDE_STOPS:`${c.c.apiBaseUri}${g}/stop/{rideId}`,GET_RIDE_SUMMARY:`${c.c.apiBaseUri}${g}/booking/{rideId}/details`,SEND_EMAIL_SMS_ORDER:`${c.c.apiBaseUri}${g}/booking/{bookingId}/emailSms`,GET_CASH_SUMMARIZE:`${c.c.apiBaseUri}${g}/cashier?cashierId={cashierId}&fromDateInsert={fromDateInsert}&toDateInsert={toDateInsert}`,UPDATE_CUSTOMER_DETAILS:`${c.c.apiBaseUri}${g}/booking/{bookingId}/customer`,CHECK_IN_PASSENGER:`${c.c.apiBaseUri}${g}/passenger`,REFUND_CUSTOMER:`${c.c.apiBaseUri}${g}/booking/refund?hashBookingId={hashBookingId}`,BOOKING_CONFIRMATION_EMAIL_CONTENT:`${c.c.apiBaseUri}${g}/booking/{bookingId}/emailPdf`,RECEIPT_EMAIL:`${c.c.apiBaseUri}${g}/cashier/receipt/email`},INTLTEL:{GET_COUNTRY:"https://ipapi.co/json/"}}},9861:(ct,be,I)=>{"use strict";I.d(be,{C:()=>g});
1const c=window.location.origin.includes("localhost")?"":"/reserved-seats-teller-app",g={clientId:"e9dbe5d9-9922-4703-ad93-cb25818c6c5a",authority:"https://login.microsoftonline.com/egged365.onmicrosoft.com/",redirectUri:window.location.origin+c,scopes:["api://a025dee9-9988-4652-829d-348d709e9cac/mksm","offline_access"]}},3545:(ct,be,I)=>{"use strict";I.d(be,{Q:()=>$});var c=I(1413),g=I(4438);let $=(()=>{class Y{constructor(){this.goToNextStep$=new c.B,this.resetOrder()}resetOrder(){this.order={originDestination:null,passengers:null,datesLines:null,seats:null,prices:null,payment:null},this.hideRequiredFieldsMessage=!1}static#e=this.\u0275fac=function(se){return new(se||Y)};static#t=this.\u0275prov=g.jDH({token:Y,factory:Y.\u0275fac,providedIn:"root"})}return Y})()},8757:(ct,be,I)=>{"use strict";I.d(be,{b:()=>de,u:()=>De});var c=I(1626),g=I(9437),$=I(5134),Y=I(3985),q=I(7673),ge=I(7709),se=I(4438),he=I(3545);const de=new c.rx(()=>null);let De=(()=>{class ce{constructor(we,Re,Be){this.http=we,this.orderService=Re,this.userService=Be}getPassengerTypes(){const we=$.n.ORDER.PASSENGER_TYPES.replace("{sourceTypeId}",this.userService.sourceTypeId.toString()).replace("{isAccessibility}",this.orderService.accessibility?"1":"0");return this.http.get(we).pipe((0,g.W)(ge.H4))}validatePassengerIdfId(we){const Re=$.n.ORDER.VALIDATE_IDF_PASSENGER.replace("{idNumber}",we.toString());return this.http.get(Re,{context:(new c._y).set(de,{action:"validatePassengerIdfId"})}).pipe((0,g.W)(Be=>400===Be.status?(0,q.of)(Be.error):(0,ge.H4)(Be)))}validateRavKav(we){const Re=$.n.ORDER.GET_RAVKAV_VALIDATION.replace("{ravKavNumber}",we);return this.http.get(Re).pipe((0,g.W)(ge.H4))}validatePassengerTypes(we){return this.http.post($.n.ORDER.VALIDATE_PASSENGER_TYPES,{sourceTypeId:this.userService.sourceTypeId,isAccessibility:this.orderService.accessibility?1:0,passengerList:we}).pipe((0,g.W)(ge.H4))}static#e=this.\u0275fac=function(Re){return new(Re||ce)(se.KVO(c.Qq),se.KVO(he.Q),se.KVO(Y.D))};static#t=this.\u0275prov=se.jDH({token:ce,factory:ce.\u0275fac,providedIn:"root"})}return ce})()},3664:(ct,be,I)=>{"use strict";I.d(be,{u:()=>q});var c=I(194),g=I(9861),$=I(4438),Y=I(855);let q=(()=>{class ge{constructor(he){this.msalService=he}getActiveAccount(){let he=this.msalService.instance.getActiveAccount();if(!he&&this.msalService.instance.getAllAccounts().length>0){let de=this.msalService.instance.getAllAccounts();this.msalService.instance.setActiveAccount(de[0]),he=de[0]}return he}getToken(){const he=this.getActiveAccount();return he?this.msalService.instance.acquireTokenSilent({scopes:g.C.scopes,account:he,redirectUri:g.C.redirectUri}).then(de=>(console.log("Access token acquired:",de.accessToken),de.accessToken)).catch(de=>(console.error("Silent token acquisition failed:",de),de instanceof c.CB&&(console.log("Interaction required, redirecting to login..."),this.msalService.loginRedirect()),null)):(console.log("No accounts found. Redirecting to login..."),Promise.resolve(null))}static#e=this.\u0275fac=function(de){return new(de||ge)($.KVO(Y.dl))};static#t=this.\u0275prov=$.jDH({token:ge,factory:ge.\u0275fac,providedIn:"root"})}return ge})()},3985:(ct,be,I)=>{"use strict";I.d(be,{D:()=>de});var c=I(7673),g=I(9437),$=I(6354),Y=I(5134),q=I(7709),ge=I(3664),se=I(4438),he=I(1626);let de=(()=>{class De{constructor(ie,we){this.http=ie,this.authService=we}getPermissions(){if(this.permissions)return(0,c.of)(this.permissions);const ie=this.getUser();if(!ie)return(0,c.of)({});const we=Y.n.USER.PERMISSIONS.replace("{userName}",ie.userName);return this.http.get(we).pipe((0,$.T)(Re=>{const Be={};return Re.map(ut=>(Be[ut.path]||(Be[ut.path]={}),Be[ut.path][ut.controlName]=!0,ut)),this.permissions=Be,Be}),(0,g.W)(q.H4))}isAllowed(ie,we){return!!this.permissions[ie]&&!!this.permissions[ie][we]}getUserName(ie){return ie&&(ie.username?ie.username.split("@")[0]:ie.idTokenClaims&&ie.idTokenClaims.preferred_username?ie.idTokenClaims.preferred_username.split("@")[0]:"")||null}getUser(){if(this.user)return this.user;const ie=this.authService.getActiveAccount();return ie?(this.user={employeeId:ie.idTokenClaims.employeeID,name:ie.name,userName:this.getUserName(ie),email:ie.username,office
1Location:ie.idTokenClaims.officeLocation?ie.idTokenClaims.officeLocation+"":""},this.user):null}static#e=this.\u0275fac=function(we){return new(we||De)(se.KVO(he.Qq),se.KVO(ge.u))};static#t=this.\u0275prov=se.jDH({token:De,factory:De.\u0275fac,providedIn:"root"})}return De})()},7709:(ct,be,I)=>{"use strict";I.d(be,{Fr:()=>se,Gi:()=>de,H4:()=>he,KT:()=>$,O:()=>De,hS:()=>ge,yz:()=>Y});var c=I(8810),g=I(5312);function $(ce,ie){ie||(ie=window.location.href),ce=ce.replace(/[\[\]]/g,"\\$&");const Re=new RegExp("[?&]"+ce+"(=([^&#]*)|&|#|$)").exec(ie);return Re?Re[2]?decodeURIComponent(Re[2].replace(/\+/g," ")):"":null}function Y(ce,ie){return ie=void 0===ie?g.c.public:ie,ce||(ce="LOCAL"!=g.c.envName?window.location.origin+(ie?"/reserved-seats-app":"/reserved-seats-teller-app"):window.location.origin),decodeURIComponent(ce)}function ge(ce){const ie=Math.max(document.documentElement.clientHeight||0,window.innerHeight||0),we=ce.getBoundingClientRect();return we.top>500&&ie-we.top<500?"modal-select-top":""}function se(){let ce=!1;return ie=navigator.userAgent||navigator.vendor||window.opera,(/(android|bb\d+|meego).+mobile|avantgo|bada\/|blackberry|blazer|compal|elaine|fennec|hiptop|iemobile|ip(hone|od)|iris|kindle|lge |maemo|midp|mmp|mobile.+firefox|netfront|opera m(ob|in)i|palm( os)?|phone|p(ixi|re)\/|plucker|pocket|psp|series(4|6)0|symbian|treo|up\.(browser|link)|vodafone|wap|windows ce|xda|xiino/i.test(ie)||/1207|6310|6590|3gso|4thp|50[1-6]i|770s|802s|a wa|abac|ac(er|oo|s\-)|ai(ko|rn)|al(av|ca|co)|amoi|an(ex|ny|yw)|aptu|ar(ch|go)|as(te|us)|attw|au(di|\-m|r |s )|avan|be(ck|ll|nq)|bi(lb|rd)|bl(ac|az)|br(e|v)w|bumb|bw\-(n|u)|c55\/|capi|ccwa|cdm\-|cell|chtm|cldc|cmd\-|co(mp|nd)|craw|da(it|ll|ng)|dbte|dc\-s|devi|dica|dmob|do(c|p)o|ds(12|\-d)|el(49|ai)|em(l2|ul)|er(ic|k0)|esl8|ez([4-7]0|os|wa|ze)|fetc|fly(\-|_)|g1 u|g560|gene|gf\-5|g\-mo|go(\.w|od)|gr(ad|un)|haie|hcit|hd\-(m|p|t)|hei\-|hi(pt|ta)|hp( i|ip)|hs\-c|ht(c(\-| |_|a|g|p|s|t)|tp)|hu(aw|tc)|i\-(20|go|ma)|i230|iac( |\-|\/)|ibro|idea|ig01|ikom|im1k|inno|ipaq|iris|ja(t|v)a|jbro|jemu|jigs|kddi|keji|kgt( |\/)|klon|kpt |kwc\-|kyo(c|k)|le(no|xi)|lg( g|\/(k|l|u)|50|54|\-[a-w])|libw|lynx|m1\-w|m3ga|m50\/|ma(te|ui|xo)|mc(01|21|ca)|m\-cr|me(rc|ri)|mi(o8|oa|ts)|mmef|mo(01|02|bi|de|do|t(\-| |o|v)|zz)|mt(50|p1|v )|mwbp|mywa|n10[0-2]|n20[2-3]|n30(0|2)|n50(0|2|5)|n7(0(0|1)|10)|ne((c|m)\-|on|tf|wf|wg|wt)|nok(6|i)|nzph|o2im|op(ti|wv)|oran|owg1|p800|pan(a|d|t)|pdxg|pg(13|\-([1-8]|c))|phil|pire|pl(ay|uc)|pn\-2|po(ck|rt|se)|prox|psio|pt\-g|qa\-a|qc(07|12|21|32|60|\-[2-7]|i\-)|qtek|r380|r600|raks|rim9|ro(ve|zo)|s55\/|sa(ge|ma|mm|ms|ny|va)|sc(01|h\-|oo|p\-)|sdk\/|se(c(\-|0|1)|47|mc|nd|ri)|sgh\-|shar|sie(\-|m)|sk\-0|sl(45|id)|sm(al|ar|b3|it|t5)|so(ft|ny)|sp(01|h\-|v\-|v )|sy(01|mb)|t2(18|50)|t6(00|10|18)|ta(gt|lk)|tcl\-|tdg\-|tel(i|m)|tim\-|t\-mo|to(pl|sh)|ts(70|m\-|m3|m5)|tx\-9|up(\.b|g1|si)|utst|v400|v750|veri|vi(rg|te)|vk(40|5[0-3]|\-v)|vm40|voda|vulc|vx(52|53|60|61|70|80|81|83|85|98)|w3c(\-| )|webc|whit|wi(g |nc|nw)|wmlb|wonu|x700|yas\-|your|zeto|zte\-/i.test(ie.substr(0,4)))&&(ce=!0),ce;var ie}function he(ce){const ie=ce.exceptionMessage||(ce.error?ce.error.exceptionMessage:null)||ce.message||ce.msg||ce.statusText||"Server Error";return console.error(ie),(0,c.$)(()=>ie)}function de(ce,ie){if(ce.startsWith("Exception: Error: ORA")){const we=ce.replace("Exception:","").replace("Error:","").trim().split("^");if(we&&we.length>=5)return ie?we[3]:we[0]}return null}function De(){return g.c.production?"www.egged.co.il":"dev.egged.co.il"}},5312:(ct,be,I)=>{"use strict";I.d(be,{c:()=>c});const c={production:!0,public:!0,envName:"",apiBaseUri:"https://api.egged.co.il/prod/ReservedSeatsApp/",recaptcha:{siteKey:"6LeFj74oAAAAAAecHHy4tiruX43Oj1bz4yVjPHo2"},appKey:"",applePayScriptSrc:"https://pps.creditguard.co.il/plugins/applePayOnIframe.js"}},9818:(ct,be,I)=>{"use strict";var c=I(345),g=I(4438),$=I(1457),Y=I(855),q=I(5312);let he=[{path:"",canActivate:q.c.public?[]:[Y.VA],loadChildren:()=>Promise.all([I.e(76),I.e(612)]).then(I.bind(I,4612)).then(b=>b.MainModule)},{path:"credit/callback",component:(()=>{class b{constructor(i){this.route=i}ngOnInit(){let i=window.location.origin;this.route.queryParams.subscribe(a=>{const f=a.txId;f&&(a.ErrorCode&&"000"!==a.ErrorCode?window.parent.window.postMessage({ErrorCode:a.ErrorCode,ErrorText:a.ErrorText},i):window.parent.window.postMessage({txId:f},i))})}static#e=this.\u0275fac=function(a){return new(a||b)(g.rXU($.nX))};static#t=this.\u0275cmp=g.VBU({type:b,selectors:[["app-credit-callback"]],decls:0,vars:0,template:function(a,f){}})}return b})()},{path:"ticket",loadChildren:()=>I.e(737).then(I.bind(I,6737)).then(b=>b.TicketModule)}];q.c.public&&(he=he.concat([{path:"receipt",loadChildren:()=>Promise.all([I.e(887),I.e(76),I.e(231)]).then(I.bind(I,1231)).then(b=>b.ReceiptModule)}])),he.push({path:"**",redirectTo:""});let de=(()=>{class b{static#e=this.\u0275fac=function(a){return new(a||b)};static#t=this.\u0275mod=g.$C({type:b});static#n=this.\u0275inj=g.G2t({imports:[$.iI.forRoot(he,{anchorScrolling:"enabled"}),$.iI]})}return b})();const De="G-GFWHED70XM",ce=`https://www.googletagmanager.com/gtag/js?i
1d=${De}`;let ie=(()=>{class b{constructor(){q.c.public&&q.c.production&&this.loadGoogleAnalyticsScript()}loadGoogleAnalyticsScript(){const i=window.document.createElement("script");i.type="text/javascript",i.async=!0;const a=window.document.createElement("script");a.type="text/javascript",document.documentElement.firstChild.appendChild(i),document.documentElement.firstChild.appendChild(a),i.src=ce,a.innerText=`window.dataLayer = window.dataLayer || [];function gtag(){dataLayer.push(arguments);}gtag('js', new Date()); gtag('config', '${De}');`}static#e=this.\u0275fac=function(a){return new(a||b)};static#t=this.\u0275prov=g.jDH({token:b,factory:b.\u0275fac,providedIn:"root"})}return b})(),Re=(()=>{class b{constructor(){q.c.public&&this.loadGoogleAnalyticsScript()}loadGoogleAnalyticsScript(){const i=window.document.createElement("script");i.type="text/javascript",i.async=!0,document.documentElement.firstChild.appendChild(i),i.innerText='(function (a, d, o, r, i, c, u, p, w, m) {\n m = d.getElementsByTagName(o)[0], a[c] = a[c]\n || {}, a[c].trigger = a[c].trigger || function () {\n (a[c].trigger.arg = a[c].trigger.arg || []).push(arguments)},\n a[c].on = a[c].on || function () {(a[c].on.arg = a[c].on.arg || []).push(arguments)},\n a[c].off = a[c].off || function () {(a[c].off.arg = a[c].off.arg || []).push(arguments)\n }, w = d.createElement(o), w.id = i, w.src = r, w.async = 1, w.setAttribute(p, u),\n m.parentNode.insertBefore(w, m), w = null}\n )(window, document, "script", "https://55902259.adoric-om.com/adoric.js", "Adoric_Script", "adoric","e3ccbf47b99ee294d86a20c89a8e6480", "data-key");'}static#e=this.\u0275fac=function(a){return new(a||b)};static#t=this.\u0275prov=g.jDH({token:b,factory:b.\u0275fac,providedIn:"root"})}return b})();var Be=I(7709),ut=I(3664),Le=I(3212),gt=I(5964),wt=I(1780);let Ut=(()=>{class b{constructor(i,a,f,v,w,N){this.authService=i,this.translate=a,this.gaService=f,this.msalService=v,this.adoricService=w,this.msalBroadcastService=N,this.title="Reserved Seats"}ngOnInit(){if(q.c.public){const i=(0,Be.KT)("language","");i&&this.translate.use(i)}else this.msalBroadcastService.msalSubject$.pipe((0,gt.p)(i=>i.eventType===Le.B.INITIALIZE_END)).subscribe(()=>{this.authService.getToken()})}static#e=this.\u0275fac=function(a){return new(a||b)(g.rXU(ut.u),g.rXU(wt.c$),g.rXU(ie),g.rXU(Y.dl),g.rXU(Re),g.rXU(Y.qb))};static#t=this.\u0275cmp=g.VBU({type:b,selectors:[["app-root"]],decls:1,vars:0,template:function(a,f){1&a&&g.nrm(0,"router-outlet")},dependencies:[$.n3]})}return b})();var et=I(1626),ne=I(467),F=I(7635),tt=function(b){return b[b.Error=0]="Error",b[b.Warning=1]="Warning",b[b.Info=2]="Info",b[b.Verbose=3]="Verbose",b[b.Trace=4]="Trace",b}(tt||{});class st{constructor(r,i,a){this.level=tt.Info;const v=r||st.createDefaultLoggerOptions();this.localCallback=v.loggerCallback||(()=>{}),this.piiLoggingEnabled=v.piiLoggingEnabled||!1,this.level="number"==typeof v.logLevel?v.logLevel:tt.Info,this.correlationId=v.correlationId||F.YM.EMPTY_STRING,this.packageName=i||F.YM.EMPTY_STRING,this.packageVersion=a||F.YM.EMPTY_STRING}static createDefaultLoggerOptions(){return{loggerCallback:()=>{},piiLoggingEnabled:!1,logLevel:tt.Info}}clone(r,i,a){return new st({loggerCallback:this.localCallback,piiLoggingEnabled:this.piiLoggingEnabled,logLevel:this.level,correlationId:a||this.correlationId},r,i)}logMessage(r,i){if(i.logLevel>this.level||!this.piiLoggingEnabled&&i.containsPii)return;const v=`[${(new Date).toUTCString()}] : [${i.correlationId||this.correlationId||""}] : ${this.packageName}@${this.packageVersion} : ${tt[i.logLevel]} - ${r}`;this.executeCallback(i.logLevel,v,i.containsPii||!1)}executeCallback(r,i,a){this.localCallback&&this.localCallback(r,i,a)}error(r,i){this.logMessage(r,{logLevel:tt.Error,containsPii:!1,correlationId:i||F.YM.EMPTY_STRING})}errorPii(r,i){this.logMessage(r,{logLevel:tt.Error,containsPii:!0,correlationId:i||F.YM.EMPTY_STRING})}warning(r,i){this.logMessage(r,{logLevel:tt.Warning,containsPii:!1,correlationId:i||F.YM.EMPTY_STRING})}warningPii(r,i){this.logMessage(r,{logLevel:tt.Warning,containsPii:!0,correlationId:i||F.YM.EMPTY_STRING})}info(r,i){this.logMessage(r,{logLevel:tt.Info,containsPii:!1,correlationId:i||F.YM.EMPTY_STRING})}infoPii(r,i){this.logMessage(r,{logLevel:tt.Info,containsPii:!0,correlationId:i||F.YM.EMPTY_STRING})}verbose(r,i){this.logMessage(r,{logLevel:tt.Verbose,containsPii:!1,correlationId:i||F.YM.EMPTY_STRING})}verbosePii(r,i){this.logMessage(r,{logLevel:tt.Verbose,containsPii:!0,correlationId:i||F.YM.EMPTY_STRING})}trace(r,i){this.logMessage(r,{logLevel:tt.Trace,containsPii:!1,correlationId:i||F.YM.EMPTY_STRING})}tracePii(r,i){this.logMessage(r,{logLevel:tt.Trace,containsPii:!0,correlationId:i||F.YM.EMPTY_STRING})}isPiiLoggingEnabled(){return this.piiLoggingEnabled||!1}}var te=I(3986),_e=I(7172);const Tt={createNewGuid:()=>{throw(0,te.SB)(_e.R9)},base64Decode:()=>{throw(0,te.SB)(_e.R9)},base64Encode:()=>{throw(0,te.SB)(_e.R9)},base64UrlEncode:()=>{throw(0,te.SB)(_e.R9)},encodeKid:()=>{throw(0,te.SB)(_e.R9)},getPublicKeyThumbprint:()=>(0,ne.A)(function*(){throw(0,te.SB)(_e.R9)})(),removeTokenBindingKey:()=>(0,ne.A)(function*(){throw(0,te.SB)(_e.R9)})(),clearKeystore:()=>(0,ne.A)(function*(){throw(0,te.SB)(_e.R9)})(),signJwt:()=>(0,ne.A)(function*(){throw(0,te.SB)(_e.R9)})(),hashString:()=>(0,ne.A)(function*(){throw(0,te.SB)(_e.R9)})()},vt="@azure/msal-common",Yt="14.16.0";function $e(b,r){const i=function At(b){if(!b)throw(0,te.SB)(_e.Bh);const i=/^([^\.\s]*)\.([^\.\s]+)\.([^\.\s]*)$/.exec(b);if(!i||i.length<4)throw(0,te.SB)(_e.gR);return i[2]}(b);try{const a=r(i);return JSON.parse(a)}catch{throw(0,te.SB)(_e.gR)}}function le(b,r){if(0===r||Date.now()-3e5>b+r)throw(0,te.SB)(_e.Yh)}function Q(){return Math.round((new Date).getTime()/1e3)}function ae(b,r){const i=Number(b)||0;return Q()+r>i}function Ue(b){return[ot(b),Mt(b),dn(b),nn(b),mt(b)].join(F.LR.CACHE_KEY_SEPARATOR).toLowerCase()}function ke(b,r,i,a,f){return{credentialType:F.aG.ID_TOKEN,homeAccountId:b,environment:r,clientId:a,secret:i,realm:f}}function lt(b,r,i,a,f,v,w,N,j,W,ue,Ke,rt,_t,u){const y={homeAccountId:b,credentialType:F.aG.ACCESS_TOKEN,secret:i,cachedAt:Q().toString(),expiresOn:w.toString(),extendedExpiresOn:N.toString(),environment:r,clientId:a,realm:f,target:v,tokenType:ue||F.IO.BEARER};if(Ke&&(y.userAssertionHash=Ke),W&&(y.refreshOn=W.toString()),_t&&(y.requestedClaims=_t,y.requestedClaimsHash=u),y.tokenType?.toLowerCase()!==F.IO.BEARER.toLowerCase())switch(y.credentialType=F.aG.ACCESS_TOKEN_WITH_AUTH_SCHEME,y.tokenType){case F.IO.POP:const l=$e(i,j);if(!l?.cnf?.kid)throw(0,te.SB)(_e.FA);y.keyId=l.cnf.kid;break;case F.IO.SSH:y.keyId=rt}return y}function Ht(b,r,i,a,f,v,w){const N={credentialType:F.aG.REFRESH_TOKEN,homeAccountId:b,environment:r,clientId:a,secret:i};return v&&(N.userAssertionHash=v),f&&(N.familyId=f),w&&(N.expiresOn=w.toString()),N}function Ne(b){return b.hasOwnProperty("homeAccountId")&&b.hasOwnProperty("environment")&&b.hasOwnProperty("credentialType")&&b.hasOwnProperty("clientId")&&b.hasOwnProperty("secret")}function Ee(b){return!!b&&Ne(b)&&b.hasOwnProperty("realm")&&b.hasOwnProperty("target")&&(b.credentialType===F.aG.ACCESS_TOKEN||b.credentialType===F.aG.ACCESS_TOKEN_WITH_AUTH_SCHEME)}function Qe(b){return!!b&&Ne(b)&&b.hasOwnProperty("realm")&&b.credentialType===F.aG.ID_TOKEN}function ze(b){return!!b&&Ne(b)&&b.credentialType===F.aG.REFRESH_TOKEN}function ot(b){return[b.homeAccountId,b.environment].join(F.LR.CACHE_KEY_SEPARATOR).toLowerCase()}function Mt(b){return[b.credentialType,b.credentialType===F.aG.REFRESH_TOKEN&&b.familyId||b.clientId,b.realm||""].join(F.LR.CACHE_KEY_SEPARATOR).toLowerCase()}function dn(b){return(b.target||"").toLowerCase()}function nn(b){return(b.requestedClaimsHash||"").toLowerCase()}function mt(b){return b.tokenType&&b.tokenType.toLowerCase()!==F.IO.BEARER.toLowerCase()?b.tokenType.toLowerCase():""}function xn(){return Q()+F.u0.REFRESH_TIME_SECONDS}function Hr(b,r,i){b.authorization_endpoint=r.authorization_endpoint,b.token_endpoint=r.token_endpoint,b.end_session_endpoint=r.end_session_endpoint,b.issuer=r.issuer,b.endpointsFromNetwork=i,b.jwks_uri=r.jwks_uri}function yn(b,r,i){b.aliases=r.aliases,b.preferred_cache=r.preferred_cache,b.preferred_network=r.preferred_network,b.aliasesFromNetwork=i}function Qt(b){return b.expiresAt<=Q()}var Pt=I(7806),Dr=I(2030),vn=I(5424);class An{constructor(r){const i=r?Dr.$.trimArrayEntries([...r]):[],a=i?Dr.$.removeEmptyStringsFromArray(i):[];this.validateInputScopes(a),this.scopes=new Set,a.forEach(f=>this.scopes.add(f))}static fromString(r){const a=(r||F.YM.EMPTY_STRING).split(" ");return new An(a)}static createSearchScopes(r){const i=new An(r);return i.containsOnlyOIDCScopes()?i.removeScope(F.YM.OFFLINE_ACCESS_SCOPE):i.removeOIDCScopes(),i}validateInputScopes(r){if(!r||r.length<1)throw(0,Pt.aD)(vn.zg)}containsScope(r){const i=this.printScopesLowerCase().split(" "),a=new An(i);return!!r&&a.scopes.has(r.toLowerCase())}containsScopeSet(r){return!(!r||r.scopes.size<=0)&&this.scopes.size>=r.scopes.size&&r.asArray().every(i=>this.containsScope(i))}containsOnlyOIDCScopes(){let r=0;return F._A.forEach(i=>
1{this.containsScope(i)&&(r+=1)}),this.scopes.size===r}appendScope(r){r&&this.scopes.add(r.trim())}appendScopes(r){try{r.forEach(i=>this.appendScope(i))}catch{throw(0,te.SB)(_e.Wf)}}removeScope(r){if(!r)throw(0,te.SB)(_e.f5);this.scopes.delete(r.trim())}removeOIDCScopes(){F._A.forEach(r=>{this.scopes.delete(r)})}unionScopeSets(r){if(!r)throw(0,te.SB)(_e.UA);const i=new Set;return r.scopes.forEach(a=>i.add(a.toLowerCase())),this.scopes.forEach(a=>i.add(a.toLowerCase())),i}intersectingScopeSets(r){if(!r)throw(0,te.SB)(_e.UA);r.containsOnlyOIDCScopes()||r.removeOIDCScopes();const i=this.unionScopeSets(r),a=r.getScopeCount(),f=this.getScopeCount();return i.size<f+a}getScopeCount(){return this.scopes.size}asArray(){const r=[];return this.scopes.forEach(i=>r.push(i)),r}printScopes(){return this.scopes?this.asArray().join(" "):F.YM.EMPTY_STRING}printScopesLowerCase(){return this.printScopes().toLowerCase()}}function ni(b,r){if(!b)throw(0,te.SB)(_e.fY);try{const i=r(b);return JSON.parse(i)}catch{throw(0,te.SB)(_e.lP)}}function Yn(b){if(!b)throw(0,te.SB)(_e.lP);const r=b.split(F.LR.CLIENT_INFO_SEPARATOR,2);return{uid:r[0],utid:r.length<2?F.YM.EMPTY_STRING:r[1]}}function Ii(b,r){return!!b&&!!r&&b===r.split(".")[1]}function Zt(b,r,i,a){if(a){const{oid:f,sub:v,tid:w,name:N,tfp:j,acr:W}=a,ue=w||j||W||"";return{tenantId:ue,localAccountId:f||v||"",name:N,isHomeTenant:Ii(ue,b)}}return{tenantId:i,localAccountId:r,isHomeTenant:Ii(i,b)}}function di(b,r,i,a){let f=b;if(r){const{isHomeTenant:v,...w}=r;f={...b,...w}}if(i){const{isHomeTenant:v,...w}=Zt(b.homeAccountId,b.localAccountId,b.tenantId,i);return f={...f,...w,idTokenClaims:i,idToken:a},f}return f}function cn(b){return b&&(b.tid||b.tfp||b.acr)||null}class Kt{generateAccountId(){return[this.homeAccountId,this.environment].join(F.LR.CACHE_KEY_SEPARATOR).toLowerCase()}generateAccountKey(){return Kt.generateAccountCacheKey({homeAccountId:this.homeAccountId,environment:this.environment,tenantId:this.realm,username:this.username,localAccountId:this.localAccountId})}getAccountInfo(){return{homeAccountId:this.homeAccountId,environment:this.environment,tenantId:this.realm,username:this.username,localAccountId:this.localAccountId,name:this.name,nativeAccountId:this.nativeAccountId,authorityType:this.authorityType,tenantProfiles:new Map((this.tenantProfiles||[]).map(r=>[r.tenantId,r]))}}isSingleTenant(){return!this.tenantProfiles}static generateAccountCacheKey(r){const i=r.homeAccountId.split(".")[1];return[r.homeAccountId,r.environment||"",i||r.tenantId||""].join(F.LR.CACHE_KEY_SEPARATOR).toLowerCase()}static createAccount(r,i,a){const f=new Kt;let v;f.authorityType=1===i.authorityType?F.Qd.ADFS_ACCOUNT_TYPE:"AAD"===i.protocolMode?F.Qd.MSSTS_ACCOUNT_TYPE:F.Qd.GENERIC_ACCOUNT_TYPE,r.clientInfo&&a&&(v=ni(r.clientInfo,a)),f.clientInfo=r.clientInfo,f.homeAccountId=r.homeAccountId,f.nativeAccountId=r.nativeAccountId;const w=r.environment||i&&i.getPreferredCache();if(!w)throw(0,te.SB)(_e.l3);if(f.environment=w,f.realm=v?.utid||cn(r.idTokenClaims)||"",f.localAccountId=v?.uid||r.idTokenClaims?.oid||r.idTokenClaims?.sub||"",f.username=r.idTokenClaims?.preferred_username||r.idTokenClaims?.upn||(r.idTokenClaims?.emails?r.idTokenClaims.emails[0]:null)||"",f.name=r.idTokenClaims?.name||"",f.cloudGraphHostName=r.cloudGraphHostName,f.msGraphHost=r.msGraphHost,r.tenantProfiles)f.tenantProfiles=r.tenantProfiles;else{const W=Zt(r.homeAccountId,f.localAccountId,f.realm,r.idTokenClaims);f.tenantProfiles=[W]}return f}static createFromAccountInfo(r,i,a){const f=new Kt;return f.authorityType=r.authorityType||F.Qd.GENERIC_ACCOUNT_TYPE,f.homeAccountId=r.homeAccountId,f.localAccountId=r.localAccountId,f.nativeAccountId=r.nativeAccountId,f.realm=r.tenantId,f.environment=r.environment,f.username=r.username,f.name=r.name,f.cloudGraphHostName=i,f.msGraphHost=a,f.tenantProfiles=Array.from(r.tenantProfiles?.values()||[]),f}static generateHomeAccountId(r,i,a,f,v){if(1!==i&&2!==i){if(r)try{const w=ni(r,f.base64Decode);if(w.uid&&w.utid)return`${w.uid}.${w.utid}`}catch{}a.warning("No client info in response")}return v?.sub||""}static isAccountEntity(r){return!!r&&r.hasOwnProperty("homeAccountId")&&r.hasOwnProperty("environment")&&r.hasOwnProperty("realm")&&r.hasOwnProperty("localAccountId")&&r.hasOwnProperty("username")&&r.hasOwnProperty("authorityType")}static accountInfoIsEqual(r,i,a){if(!r||!i)return!1;let f=!0;if(a){const v=r.idTokenClaims||{},w=i.idTokenClaims||{};f=v.iat===w.iat&&v.nonce===w.nonce}return r.homeAccountId===i.homeAccountId&&r.localAccountId===i.localAccountId&&r.username===i.username&&r.tenantId===i.tenantId&&r.environment===i.environment&&r.nativeAccountId===i.nativeAccountId&&f}}var Wt=I(1564);const Jr={"login.microsoftonline.com":{token_endpoint:"https://login.microsoftonline.com/{tenantid}/oauth2/v2.0/token",jwks_uri:"https://login.microsoftonline.com/{tenantid}/discovery/v2.0/keys",issuer:"https://login.microsoftonline.com/{tenantid}/v2.0",authorization_endpoint:"https://login.microsoftonline.com/{tenantid}/oauth2/v2.0/authorize",end_session_endpoint:"https://login.microsoftonline.com/{tenantid}/oauth2/v2.0/logout"},"login.chinacloudapi.cn":{token_endpoint:"https://login.chinacloudapi.cn/{tenantid}/oauth2/v2.0/token",jwks_uri:"https://login.chinacloudapi.cn/{tenantid}/discovery/v2.0/keys",issuer:"https://login.partner.microsoftonline.cn/{tenantid}/v2.0",authorization_endpoint:"https://login.chinacloudapi.cn/{tenantid}/oauth2/v2.0/authorize",end_session_endpoint:"https://login.chinacloudapi.cn/{tenantid}/oauth2/v2.0/logout"},"login.microsoftonline.us":{token_endpoint:"https://login.microsoftonline.us/{tenantid}/oauth2/v2.0/token",jwks_uri:"https://login.microsoftonline.us/{tenantid}/discovery/v2.0/keys",issuer:"https://login.microsoftonline.us/{tenantid}/v2.0",authorization_endpoint:"https://login.microsoftonline.us/{tenantid}/oauth2/v2.0/authorize",end_session_endpoint:"https://login.microsoftonline.us/{tenantid}/oauth2/v2.0/logout"}},Yi={tenant_discovery_endpoint:"https://{canonicalAuthority}/v2.0/.well-known/openid-configuration",metadata:[{preferred_network:"login.microsoftonline.com",preferred_cache:"login.windows.net",aliases:["login.microsoftonline.com","login.windows.net","login.microsoft.com","sts.windows.net"]},{preferred_network:"login.partner.microsoftonline.cn",preferred_cache:"login.partner.microsoftonline.cn",aliases:["login.partner.microsoftonline.cn","login.chinacloudapi.cn"]},{preferred_network:"login.microsoftonline.de",preferred_cache:"login.microsoftonline.de",aliases:["login.microsoftonline.de"]},{preferred_network:"login.microsoftonline.us",preferred_cache:"login.microsoftonline.us",aliases:["login.microsoftonline.us","login.usgovcloudapi.net"]},{preferred_network:"login-us.microsoftonline.com",preferred_cache:"login-us.microsoftonline.com",aliases:["login-us.microsoftonline.com"]}]},$n=new Set;function Oe(b,r,i,a){if(a?.trace(`getAliasesFromMetadata called with source: ${i}`),b&&r){const f=me(r,b);
1if(f)return a?.trace(`getAliasesFromMetadata: found cloud discovery metadata in ${i}, returning aliases`),f.aliases;a?.trace(`getAliasesFromMetadata: did not find cloud discovery metadata in ${i}`)}return null}function me(b,r){for(let i=0;i<b.length;i++){const a=b[i];if(a.aliases.includes(r))return a}return null}Yi.metadata.forEach(b=>{b.aliases.forEach(r=>{$n.add(r)})});const qe="cache_quota_exceeded",It="cache_error_unknown",$t={[qe]:"Exceeded cache storage capacity.",[It]:"Unexpected error occurred when using cache storage."};class Cn extends Error{constructor(r,i){const a=i||($t[r]?$t[r]:$t[It]);super(`${r}: ${a}`),Object.setPrototypeOf(this,Cn.prototype),this.name="CacheError",this.errorCode=r,this.errorMessage=a}}class Fn{constructor(r,i,a,f){this.clientId=r,this.cryptoImpl=i,this.commonLogger=a.clone(vt,Yt),this.staticAuthorityOptions=f}getAllAccounts(r){return this.buildTenantProfiles(this.getAccountsFilteredBy(r||{}),r)}getAccountInfoFilteredBy(r){const i=this.getAllAccounts(r);return i.length>1?i.sort(f=>f.idTokenClaims?-1:1)[0]:1===i.length?i[0]:null}getBaseAccountInfo(r){const i=this.getAccountsFilteredBy(r);return i.length>0?i[0].getAccountInfo():null}buildTenantProfiles(r,i){return r.flatMap(a=>this.getTenantProfilesFromAccountEntity(a,i?.tenantId,i))}getTenantedAccountInfoByFilter(r,i,a,f){let w,v=null;if(f&&!this.tenantProfileMatchesFilter(a,f))return null;const N=this.getIdToken(r,i,a.tenantId);return N&&(w=$e(N.secret,this.cryptoImpl.base64Decode),!this.idTokenClaimsMatchTenantProfileFilter(w,f))?null:(v=di(r,a,w,N?.secret),v)}getTenantProfilesFromAccountEntity(r,i,a){const f=r.getAccountInfo();let v=f.tenantProfiles||new Map;const w=this.getTokenKeys();if(i){const j=v.get(i);if(!j)return[];v=new Map([[i,j]])}const N=[];return v.forEach(j=>{const W=this.getTenantedAccountInfoByFilter(f,w,j,a);W&&N.push(W)}),N}tenantProfileMatchesFilter(r,i){return!(i.localAccountId&&!this.matchLocalAccountIdFromTenantProfile(r,i.localAccountId)||i.name&&r.name!==i.name||void 0!==i.isHomeTenant&&r.isHomeTenant!==i.isHomeTenant)}idTokenClaimsMatchTenantProfileFilter(r,i){return!(i&&(i.localAccountId&&!this.matchLocalAccountIdFromTokenClaims(r,i.localAccountId)||i.loginHint&&!this.matchLoginHintFromTokenClaims(r,i.loginHint)||i.username&&!this.matchUsername(r.preferred_username,i.username)||i.name&&!this.matchName(r,i.name)||i.sid&&!this.matchSid(r,i.sid)))}saveCacheRecord(r,i,a){var f=this;return(0,ne.A)(function*(){if(!r)throw(0,te.SB)(_e.n4);try{r.account&&f.setAccount(r.account),r.idToken&&!1!==i?.idToken&&f.setIdTokenCredential(r.idToken),r.accessToken&&!1!==i?.accessToken&&(yield f.saveAccessToken(r.accessToken)),r.refreshToken&&!1!==i?.refreshToken&&f.setRefreshTokenCredential(r.refreshToken),r.appMetadata&&f.setAppMetadata(r.appMetadata)}catch(v){throw f.commonLogger?.error("CacheManager.saveCacheRecord: failed"),v instanceof Error?(f.commonLogger?.errorPii(`CacheManager.saveCacheRecord: ${v.message}`,a),"QuotaExceededError"===v.name||"NS_ERROR_DOM_QUOTA_REACHED"===v.name||v.message.includes("exceeded the quota")?(f.commonLogger?.error("CacheManager.saveCacheRecord: exceeded storage quota",a),new Cn(qe)):new Cn(v.name,v.message)):(f.commonLogger?.errorPii(`CacheManager.saveCacheRecord: ${v}`,a),new Cn(It))}})()}saveAccessToken(r){var i=this;return(0,ne.A)(function*(){const a={clientId:r.clientId,credentialType:r.credentialType,environment:r.environment,homeAccountId:r.homeAccountId,realm:r.realm,tokenType:r.tokenType,requestedClaimsHash:r.requestedClaimsHash},f=i.getTokenKeys(),v=An.fromString(r.target),w=[];f.accessToken.forEach(N=>{if(!i.accessTokenKeyMatchesFilter(N,a,!1))return;const j=i.getAccessTokenCredential(N);j&&i.credentialMatchesFilter(j,a)&&An.fromString(j.target).intersectingScopeSets(v)&&w.push(i.removeAccessToken(N))}),yield Promise.all(w),i.setAccessTokenCredential(r)})()}getAccountsFilteredBy(r){const i=this.getAccountKeys(),a=[];return i.forEach(f=>{if(!this.isAccountKey(f,r.homeAccountId))return;const v=this.getAccount(f,this.commonLogger);if(!v||r.homeAccountId&&!this.matchHomeAccountId(v,r.homeAccountId)||r.username&&!this.matchUsername(v.username,r.username)||r.environment&&!this.matchEnvironment(v,r.environment)||r.realm&&!this.matchRealm(v,r.realm)||r.nativeAccountId&&!this.matchNativeAccountId(v,r.nativeAccountId)||r.authorityType&&!this.matchAuthorityType(v,r.authorityType))return;const w={localAccountId:r?.localAccountId,name:r?.name},N=v.tenantProfiles?.filter(j=>this.tenantProfileMatchesFilter(j,w));N&&0===N.length||a.push(v)}),a}isAccountKey(r,i,a){return!(r.split(F.LR.CACHE_KEY_SEPARATOR).length<3||i&&!r.toLowerCase().includes(i.toLowerCase())||a&&!r.toLowerCase().includes(a.toLowerCase()))}isCredentialKey(r){if(r.split(F.LR.CACHE_KEY_SEPARATOR).length<6)return!1;const i=r.toLowerCase();if(-1===i.indexOf(F.aG.ID_TOKEN.toLowerCase())&&-1===i.indexOf(F.aG.ACCESS_TOKEN.toLowerCase())&&-1===i.indexOf(F.aG.ACCESS_TOKEN_WITH_AUTH_SCHEME.toLowerCase())&&-1===i.indexOf(F.aG.REFRESH_TOKEN.toLowerCase()))return!1;if(i.indexOf(F.aG.REFRESH_TOKEN.toLowerCase())>-1){const f=`${F.aG.REFRESH_TOKEN}${F.LR.CACHE_KEY_SEPARATOR}${F.hB}${F.LR.CACHE_KEY_SEPARATOR}`;if(-1===i.indexOf(`${F.aG.REFRESH_TOKEN}${F.LR.CACHE_KEY_SEPARATOR}${this.clientId}${F.LR.CACHE_KEY_SEPARATOR}`.toLowerCase())&&-1===i.indexOf(f.toLowerCase()))return!1}else if(-1===i.indexOf(this.clientId.toLowerCase()))return!1;return!0}credentialMatchesFilter(r,i){return!(i.clientId&&!this.matchClientId(r,i.clientId)||i.userAssertionHash&&!this.matchUserAssertionHash(r,i.userAssertionHash)||"string"==typeof i.homeAccountId&&!this.matchHomeAccountId(r,i.homeAccountId)||i.environment&&!this.matchEnvironment(r,i.environment)||i.realm&&!this.matchRealm(r,i.realm)||i.credentialType&&!this.matchCredentialType(r,i.credentialType)||i.familyId&&!this.matchFamilyId(r,i.familyId)||i.target&&!this.matchTarget(r,i.target)||(i.requestedClaimsHash||r.requestedClaimsHash)&&r.requestedClaimsHash!==i.requestedClaimsHash||r.credentialType===F.aG.ACCESS_TOKEN_WITH_AUTH_SCHEME&&(i.tokenType&&!this.matchTokenType(r,i.tokenType)||i.tokenType===F.IO.SSH&&i.keyId&&!this.matchKeyId(r,i.keyId)))}getAppMetadataFilteredBy(r){const i=this.getKeys(),a={};
1return i.forEach(f=>{if(!this.isAppMetadata(f))return;const v=this.getAppMetadata(f);v&&(r.environment&&!this.matchEnvironment(v,r.environment)||r.clientId&&!this.matchClientId(v,r.clientId)||(a[f]=v))}),a}getAuthorityMetadataByAlias(r){const i=this.getAuthorityMetadataKeys();let a=null;return i.forEach(f=>{if(!this.isAuthorityMetadata(f)||-1===f.indexOf(this.clientId))return;const v=this.getAuthorityMetadata(f);v&&-1!==v.aliases.indexOf(r)&&(a=v)}),a}removeAllAccounts(){var r=this;return(0,ne.A)(function*(){const i=r.getAccountKeys(),a=[];i.forEach(f=>{a.push(r.removeAccount(f))}),yield Promise.all(a)})()}removeAccount(r){var i=this;return(0,ne.A)(function*(){const a=i.getAccount(r,i.commonLogger);a&&(yield i.removeAccountContext(a),i.removeItem(r))})()}removeAccountContext(r){var i=this;return(0,ne.A)(function*(){const a=i.getTokenKeys(),f=r.generateAccountId(),v=[];a.idToken.forEach(w=>{0===w.indexOf(f)&&i.removeIdToken(w)}),a.accessToken.forEach(w=>{0===w.indexOf(f)&&v.push(i.removeAccessToken(w))}),a.refreshToken.forEach(w=>{0===w.indexOf(f)&&i.removeRefreshToken(w)}),yield Promise.all(v)})()}updateOutdatedCachedAccount(r,i,a){if(i&&i.isSingleTenant()){this.commonLogger?.verbose("updateOutdatedCachedAccount: Found a single-tenant (outdated) account entity in the cache, migrating to multi-tenant account entity");const f=this.getAccountKeys().filter(W=>W.startsWith(i.homeAccountId)),v=[];f.forEach(W=>{const ue=this.getCachedAccountEntity(W);ue&&v.push(ue)});const w=v.find(W=>Ii(W.realm,W.homeAccountId))||v[0];w.tenantProfiles=v.map(W=>({tenantId:W.realm,localAccountId:W.localAccountId,name:W.name,isHomeTenant:Ii(W.realm,W.homeAccountId)}));const N=Fn.toObject(new Kt,{...w}),j=N.generateAccountKey();return f.forEach(W=>{W!==j&&this.removeOutdatedAccount(r)}),this.setAccount(N),a?.verbose("Updated an outdated account entity in the cache"),N}return i}removeAccessToken(r){var i=this;return(0,ne.A)(function*(){const a=i.getAccessTokenCredential(r);if(a){if(a.credentialType.toLowerCase()===F.aG.ACCESS_TOKEN_WITH_AUTH_SCHEME.toLowerCase()&&a.tokenType===F.IO.POP){const v=a.keyId;if(v)try{yield i.cryptoImpl.removeTokenBindingKey(v)}catch{throw(0,te.SB)(_e.QE)}}return i.removeItem(r)}})()}removeAppMetadata(){return this.getKeys().forEach(i=>{this.isAppMetadata(i)&&this.removeItem(i)}),!0}readAccountFromCache(r){const i=Kt.generateAccountCacheKey(r);return this.getAccount(i,this.commonLogger)}getIdToken(r,i,a,f,v){this.commonLogger.trace("CacheManager - getIdToken called");const N=this.getIdTokensByFilter({homeAccountId:r.homeAccountId,environment:r.environment,credentialType:F.aG.ID_TOKEN,clientId:this.clientId,realm:a},i),j=N.size;if(j<1)return this.commonLogger.info("CacheManager:getIdToken - No token found"),null;if(j>1){let W=N;if(!a){const ue=new Map;N.forEach((rt,_t)=>{rt.realm===r.tenantId&&ue.set(_t,rt)});const Ke=ue.size;if(Ke<1)return this.commonLogger.info("CacheManager:getIdToken - Multiple ID tokens found for account but none match account entity tenant id, returning first result"),N.values().next().value;if(1===Ke)return this.commonLogger.info("CacheManager:getIdToken - Multiple ID tokens found for account, defaulting to home tenant profile"),ue.values().next().value;W=ue}return this.commonLogger.info("CacheManager:getIdToken - Multiple matching ID tokens found, clearing them"),W.forEach((ue,Ke)=>{this.removeIdToken(Ke)}),f&&v&&f.addFields({multiMatchedID:N.size},v),null}return this.commonLogger.info("CacheManager:getIdToken - Returning ID token"),N.values().next().value}getIdTokensByFilter(r,i){const a=i&&i.idToken||this.getTokenKeys().idToken,f=new Map;return a.forEach(v=>{if(!this.idTokenKeyMatchesFilter(v,{clientId:this.clientId,...r}))return;const w=this.getIdTokenCredential(v);w&&this.credentialMatchesFilter(w,r)&&f.set(v,w)}),f}idTokenKeyMatchesFilter(r,i){const a=r.toLowerCase();return!(i.clientId&&-1===a.indexOf(i.clientId.toLowerCase())||i.homeAccountId&&-1===a.indexOf(i.homeAccountId.toLowerCase()))}removeIdToken(r){this.removeItem(r)}removeRefreshToken(r){this.removeItem(r)}getAccessToken(r,i,a,f,v,w){this.commonLogger.trace("CacheManager - getAccessToken called");const N=An.createSearchScopes(i.scopes),j=i.authenticationScheme||F.IO.BEARER,W=j&&j.toLowerCase()!==F.IO.BEARER.toLowerCase()?F.aG.ACCESS_TOKEN_WITH_AUTH_SCHEME:F.aG.ACCESS_TOKEN,ue={homeAccountId:r.homeAccountId,environment:r.environment,credentialType:W,clientId:this.clientId,realm:f||r.tenantId,target:N,tokenType:j,keyId:i.sshKid,requestedClaimsHash:i.requestedClaimsHash},Ke=a&&a.accessToken||this.getTokenKeys().accessToken,rt=[];Ke.forEach(u=>{if(this.accessTokenKeyMatchesFilter(u,ue,!0)){const y=this.getAccessTokenCredential(u);y&&this.credentialMatchesFilter(y,ue)&&rt.push(y)}});const _t=rt.length;return _t<1?(this.commonLogger.info("CacheManager:getAccessToken - No token found"),null):_t>1?(this.commonLogger.info("CacheManager:getAccessToken - Multiple access tokens found, clearing them"),rt.forEach(u=>{this.removeAccessToken(Ue(u))}),v&&w&&v.addFields({multiMatchedAT:rt.length},w),null):(this.commonLogger.info("CacheManager:getAccessToken - Returning access token"),rt[0])}accessTokenKeyMatchesFilter(r,i,a){const f=r.toLowerCase();if(i.clientId&&-1===f.indexOf(i.clientId.toLowerCase())||i.homeAccountId&&-1===f.indexOf(i.homeAccountId.toLowerCase())||i.realm&&-1===f.indexOf(i.realm.toLowerCase())||i.requestedClaimsHash&&-1===f.indexOf(i.requestedClaimsHash.toLowerCase()))return!1;if(i.target){const v=i.target.asArray();for(let w=0;w<v.length;w++){if(a&&!f.includes(v[w].toLowerCase()))return!1;if(!a&&f.includes(v[w].toLowerCase()))return!0}}return!0}getAccessTokensByFilter(r){const i=this.getTokenKeys(),a=[];
1return i.accessToken.forEach(f=>{if(!this.accessTokenKeyMatchesFilter(f,r,!0))return;const v=this.getAccessTokenCredential(f);v&&this.credentialMatchesFilter(v,r)&&a.push(v)}),a}getRefreshToken(r,i,a,f,v){this.commonLogger.trace("CacheManager - getRefreshToken called");const N={homeAccountId:r.homeAccountId,environment:r.environment,credentialType:F.aG.REFRESH_TOKEN,clientId:this.clientId,familyId:i?F.hB:void 0},j=a&&a.refreshToken||this.getTokenKeys().refreshToken,W=[];j.forEach(Ke=>{if(this.refreshTokenKeyMatchesFilter(Ke,N)){const rt=this.getRefreshTokenCredential(Ke);rt&&this.credentialMatchesFilter(rt,N)&&W.push(rt)}});const ue=W.length;return ue<1?(this.commonLogger.info("CacheManager:getRefreshToken - No refresh token found."),null):(ue>1&&f&&v&&f.addFields({multiMatchedRT:ue},v),this.commonLogger.info("CacheManager:getRefreshToken - returning refresh token"),W[0])}refreshTokenKeyMatchesFilter(r,i){const a=r.toLowerCase();return!(i.familyId&&-1===a.indexOf(i.familyId.toLowerCase())||!i.familyId&&i.clientId&&-1===a.indexOf(i.clientId.toLowerCase())||i.homeAccountId&&-1===a.indexOf(i.homeAccountId.toLowerCase()))}readAppMetadataFromCache(r){const a=this.getAppMetadataFilteredBy({environment:r,clientId:this.clientId}),f=Object.keys(a).map(w=>a[w]),v=f.length;if(v<1)return null;if(v>1)throw(0,te.SB)(_e.oV);return f[0]}isAppMetadataFOCI(r){const i=this.readAppMetadataFromCache(r);return!(!i||i.familyId!==F.hB)}matchHomeAccountId(r,i){return"string"==typeof r.homeAccountId&&i===r.homeAccountId}matchLocalAccountIdFromTokenClaims(r,i){return i===(r.oid||r.sub)}matchLocalAccountIdFromTenantProfile(r,i){return r.localAccountId===i}matchName(r,i){return i.toLowerCase()===r.name?.toLowerCase()}matchUsername(r,i){return!(!r||"string"!=typeof r||i?.toLowerCase()!==r.toLowerCase())}matchUserAssertionHash(r,i){return!(!r.userAssertionHash||i!==r.userAssertionHash)}matchEnvironment(r,i){if(this.staticAuthorityOptions){const f=function Te(b,r){let i;const a=b.canonicalAuthority;if(a){const f=new Wt.H(a).getUrlComponents().HostNameAndPort;i=Oe(f,b.cloudDiscoveryMetadata?.metadata,F.E_.CONFIG,r)||Oe(f,Yi.metadata,F.E_.HARDCODED_VALUES,r)||b.knownAuthorities}return i||[]}(this.staticAuthorityOptions,this.commonLogger);if(f.includes(i)&&f.includes(r.environment))return!0}const a=this.getAuthorityMetadataByAlias(i);return!!(a&&a.aliases.indexOf(r.environment)>-1)}matchCredentialType(r,i){return r.credentialType&&i.toLowerCase()===r.credentialType.toLowerCase()}matchClientId(r,i){return!(!r.clientId||i!==r.clientId)}matchFamilyId(r,i){return!(!r.familyId||i!==r.familyId)}matchRealm(r,i){return r.realm?.toLowerCase()===i.toLowerCase()}matchNativeAccountId(r,i){return!(!r.nativeAccountId||i!==r.nativeAccountId)}matchLoginHintFromTokenClaims(r,i){return r.login_hint===i||r.preferred_username===i||r.upn===i}matchSid(r,i){return r.sid===i}matchAuthorityType(r,i){return!(!r.authorityType||i.toLowerCase()!==r.authorityType.toLowerCase())}matchTarget(r,i){return!(r.credentialType!==F.aG.ACCESS_TOKEN&&r.credentialType!==F.aG.ACCESS_TOKEN_WITH_AUTH_SCHEME||!r.target)&&An.fromString(r.target).containsScopeSet(i)}matchTokenType(r,i){return!(!r.tokenType||r.tokenType!==i)}matchKeyId(r,i){return!(!r.keyId||r.keyId!==i)}isAppMetadata(r){return-1!==r.indexOf(F.GU)}isAuthorityMetadata(r){return-1!==r.indexOf(F.u0.CACHE_KEY)}generateAuthorityMetadataCacheKey(r){return`${F.u0.CACHE_KEY}-${this.clientId}-${r}`}static toObject(r,i){for(const a in i)r[a]=i[a];return r}}class fr extends Fn{setAccount(){throw(0,te.SB)(_e.R9)}getAccount(){throw(0,te.SB)(_e.R9)}getCachedAccountEntity(){throw(0,te.SB)(_e.R9)}setIdTokenCredential(){throw(0,te.SB)(_e.R9)}getIdTokenCredential(){throw(0,te.SB)(_e.R9)}setAccessTokenCredential(){throw(0,te.SB)(_e.R9)}getAccessTokenCredential(){throw(0,te.SB)(_e.R9)}setRefreshTokenCredential(){throw(0,te.SB)(_e.R9)}getRefreshTokenCredential(){throw(0,te.SB)(_e.R9)}setAppMetadata(){throw(0,te.SB)(_e.R9)}getAppMetadata(){throw(0,te.SB)(_e.R9)}setServerTelemetry(){throw(0,te.SB)(_e.R9)}getServerTelemetry(){throw(0,te.SB)(_e.R9)}setAuthorityMetadata(){throw(0,te.SB)(_e.R9)}getAuthorityMetadata(){throw(0,te.SB)(_e.R9)}getAuthorityMetadataKeys(){throw(0,te.SB)(_e.R9)}setThrottlingCache(){throw(0,te.SB)(_e.R9)}getThrottlingCache(){throw(0,te.SB)(_e.R9)}removeItem(){throw(0,te.SB)(_e.R9)}getKeys(){throw(0,te.SB)(_e.R9)}getAccountKeys(){throw(0,te.SB)(_e.R9)}getTokenKeys(){throw(0,te.SB)(_e.R9)}updateCredentialCacheKey(){throw(0,te.SB)(_e.R9)}removeOutdatedAccount(){throw(0,te.SB)(_e.R9)}}const ei={tokenRenewalOffsetSeconds:F.F0,preventCorsPreflight:!1},vr={loggerCallback:()=>{},piiLoggingEnabled:!1,logLevel:tt.Info,correlationId:F.YM.EMPTY_STRING},Mi={claimsBasedCachingEnabled:!1},zr={sendGetRequestAsync:()=>(0,ne.A)(function*(){throw(0,te.SB)(_e.R9)})(),sendPostRequestAsync:()=>(0,ne.A)(function*(){throw(0,te.SB)(_e.R9)})()},Zi={sku:F.YM.SKU,version:Yt,cpu:F.YM.EMPTY_STRING,os:F.YM.EMPTY_STRING},Vn={clientSecret:F.YM.EMPTY_STRING,clientAssertion:void 0},Lt={azureCloudInstance:"none",tenant:`${F.YM.DEFAULT_COMMON_TENANT}`},To={application:{appName:"",appVersion:""}};function yi(b){return{clientCapabilities:[],azureCloudOptions:Lt,
1skipAuthorityMetadataCache:!1,instanceAware:!1,...b}}function Do(b){return"OIDC"===b.authOptions.authority.options.protocolMode}const uo={sendGetRequestAsync:()=>Promise.reject((0,te.SB)(_e.R9)),sendPostRequestAsync:()=>Promise.reject((0,te.SB)(_e.R9))};var Me=I(4561);class Gi{startMeasurement(){}endMeasurement(){}flushMeasurement(){return null}}class Ki{generateId(){return"callback-id"}startMeasurement(r,i){return{end:()=>null,discard:()=>{},add:()=>{},increment:()=>{},event:{eventId:this.generateId(),status:Me.hU.InProgress,authority:"",libraryName:"",libraryVersion:"",clientId:"",name:r,startTimeMs:Date.now(),correlationId:i||""},measurement:new Gi}}startPerformanceMeasurement(){return new Gi}calculateQueuedTime(){return 0}addQueueMeasurement(){}setPreQueueTime(){}endMeasurement(){return null}discardMeasurements(){}removePerformanceCallback(){return!0}addPerformanceCallback(){return""}emitEvents(){}addFields(){}incrementFields(){}cacheEventByCorrelationId(){}}var Ae=I(7554);class Ji{navigateInternal(r,i){return Ji.defaultNavigateWindow(r,i)}navigateExternal(r,i){return Ji.defaultNavigateWindow(r,i)}static defaultNavigateWindow(r,i){return i.noHistory?window.location.replace(r):window.location.assign(r),new Promise(a=>{setTimeout(()=>{a(!0)},i.timeout)})}}var Zn=I(3461);class Ri extends Zn.lR{constructor(r,i,a){super(r.errorCode,r.errorMessage,r.subError),Object.setPrototypeOf(this,Ri.prototype),this.name="NetworkError",this.error=r,this.httpStatus=i,this.responseHeaders=a}}function Wi(b,r,i){return new Ri(b,r,i)}var K=I(6810),ee=I(6588);class fe{sendGetRequestAsync(r,i){return(0,ne.A)(function*(){let a,f={},v=0;const w=Xe(i);try{a=yield fetch(r,{method:Ae.CC.GET,headers:w})}catch{throw(0,K.bD)(window.navigator.onLine?ee.Zw:ee.l7)}f=Ge(a.headers);try{return v=a.status,{headers:f,body:yield a.json(),status:v}}catch{throw Wi((0,K.bD)(ee.db),v,f)}})()}sendPostRequestAsync(r,i){return(0,ne.A)(function*(){const a=i&&i.body||"",f=Xe(i);let v,w=0,N={};try{v=yield fetch(r,{method:Ae.CC.POST,headers:f,body:a})}catch{throw(0,K.bD)(window.navigator.onLine?ee.zv:ee.l7)}N=Ge(v.headers);try{return w=v.status,{headers:N,body:yield v.json(),status:w}}catch{throw Wi((0,K.bD)(ee.db),w,N)}})()}}function Xe(b){try{const r=new Headers;return b&&b.headers?(Object.entries(b.headers).forEach(([a,f])=>{r.append(a,f)}),r):r}catch{throw(0,K.bD)(ee.Tw)}}function Ge(b){try{const r={};return b.forEach((i,a)=>{r[a]=i}),r}catch{throw(0,K.bD)(ee.wI)}}var it=I(1474);const sn=1e4,Wn="3.28.1";class Xr{static loggerCallback(r,i){switch(r){case tt.Error:return void console.error(i);case tt.Info:return void console.info(i);case tt.Verbose:return void console.debug(i);case tt.Warning:return void console.warn(i);default:return void console.log(i)}}constructor(r){let i;this.browserEnvironment=typeof window<"u",this.config=function sr({auth:b,cache:r,system:i,telemetry:a},f){const v={clientId:F.YM.EMPTY_STRING,authority:`${F.YM.DEFAULT_AUTHORITY}`,knownAuthorities:[],cloudDiscoveryMetadata:F.YM.EMPTY_STRING,authorityMetadata:F.YM.EMPTY_STRING,redirectUri:typeof window<"u"?(0,it.Uu)():"",postLogoutRedirectUri:F.YM.EMPTY_STRING,navigateToLoginRequestUrl:!0,clientCapabilities:[],protocolMode:"AAD",OIDCOptions:{serverResponseType:F.zL.FRAGMENT,defaultScopes:[F.YM.OPENID_SCOPE,F.YM.PROFILE_SCOPE,F.YM.OFFLINE_ACCESS_SCOPE]},azureCloudOptions:{azureCloudInstance:"none",tenant:F.YM.EMPTY_STRING},skipAuthorityMetadataCache:!1,supportsNestedAppAuth:!1,instanceAware:!1},w={cacheLocation:Ae.Al.SessionStorage,temporaryCacheLocation:Ae.Al.SessionStorage,storeAuthStateInCookie:!1,secureCookies:!1,cacheMigrationEnabled:!(!r||r.cacheLocation!==Ae.Al.LocalStorage),claimsBasedCachingEnabled:!1},N={loggerCallback:()=>{},logLevel:tt.Info,piiLoggingEnabled:!1},W={...{...ei,loggerOptions:N,networkClient:f?new fe:uo,navigationClient:new Ji,loadFrameTimeout:0,windowHashTimeout:i?.loadFrameTimeout||6e4,iframeHashTimeout:i?.loadFrameTimeout||sn,navigateFrameWait:0,redirectNavigationTimeout:3e4,asyncPopups:!1,allowRedirectInIframe:!1,allowNativeBroker:!1,nativeBrokerHandshakeTimeout:i?.nativeBrokerHandshakeTimeout||2e3,pollIntervalMilliseconds:Ae.Q1.DEFAULT_POLL_INTERVAL_MS},...i,loggerOptions:i?.loggerOptions||N},ue={application:{appName:F.YM.EMPTY_STRING,appVersion:F.YM.EMPTY_STRING},client:new Ki};if("OIDC"!==b?.protocolMode&&b?.OIDCOptions&&new st(W.loggerOptions).warning(JSON.stringify((0,Pt.aD)(vn.bg))),b?.protocolMode&&"AAD"!==b.protocolMode&&W?.allowNativeBroker)throw(0,Pt.aD)(vn.J6);return{auth:{...v,...b,OIDCOptions:{...v.OIDCOptions,...b?.OIDCOptions}},cache:{...w,...r},system:W,telemetry:{...ue,...a}}}(r,this.browserEnvironment);try{i=window[Ae.Al.SessionStorage]}catch{}const a=i?.getItem(Ae.L$),f=i?.getItem(Ae.P3)?.toLowerCase(),v="true"===f||"false"!==f&&void 0,w={...this.config.system.loggerOptions},N=a&&Object.keys(tt).includes(a)?tt[a]:void 0;
1N&&(w.loggerCallback=Xr.loggerCallback,w.logLevel=N),void 0!==v&&(w.piiLoggingEnabled=v),this.logger=new st(w,"@azure/msal-browser",Wn),this.available=!1}getConfig(){return this.config}getLogger(){return this.logger}isAvailable(){return this.available}isBrowserEnvironment(){return this.browserEnvironment}}let Er=(()=>{class b extends Xr{getModuleName(){return b.MODULE_NAME}getId(){return b.ID}initialize(){var i=this;return(0,ne.A)(function*(){return i.available=typeof window<"u",i.available})()}}return b.MODULE_NAME="",b.ID="StandardOperatingContext",b})();const Tn="missing_kid_error",bn="missing_alg_error",qt={[Tn]:"The JOSE Header for the requested JWT, JWS or JWK object requires a keyId to be configured as the 'kid' header claim. No 'kid' value was provided.",[bn]:"The JOSE Header for the requested JWT, JWS or JWK object requires an algorithm to be specified as the 'alg' header claim. No 'alg' value was provided."};class br extends Zn.lR{constructor(r,i){super(r,i),this.name="JoseHeaderError",Object.setPrototypeOf(this,br.prototype)}}function ar(b){return new br(b,qt[b])}class Qn{constructor(r){this.typ=r.typ,this.alg=r.alg,this.kid=r.kid}static getShrHeaderString(r){if(!r.kid)throw ar(Tn);if(!r.alg)throw ar(bn);const i=new Qn({typ:r.typ||F.Lz.Pop,kid:r.kid,alg:r.alg});return JSON.stringify(i)}}var Pn=I(6195);function pr(b){return(new TextDecoder).decode(function zt(b){let r=b.replace(/-/g,"+").replace(/_/g,"/");switch(r.length%4){case 0:break;case 2:r+="==";break;case 3:r+="=";break;default:throw(0,K.bD)(ee._t)}const i=atob(r);return Uint8Array.from(i,a=>a.codePointAt(0)||0)}(b))}var Bt=I(1510);class rs{constructor(){this.dbName=Ae.$u,this.version=Ae.G8,this.tableName=Ae.WJ,this.dbOpen=!1}open(){var r=this;return(0,ne.A)(function*(){return new Promise((i,a)=>{const f=window.indexedDB.open(r.dbName,r.version);f.addEventListener("upgradeneeded",v=>{v.target.result.createObjectStore(r.tableName)}),f.addEventListener("success",v=>{r.db=v.target.result,r.dbOpen=!0,i()}),f.addEventListener("error",()=>a((0,K.bD)(ee.MG)))})})()}closeConnection(){const r=this.db;r&&this.dbOpen&&(r.close(),this.dbOpen=!1)}validateDbIsOpen(){var r=this;return(0,ne.A)(function*(){if(!r.dbOpen)return r.open()})()}getItem(r){var i=this;return(0,ne.A)(function*(){return yield i.validateDbIsOpen(),new Promise((a,f)=>{if(!i.db)return f((0,K.bD)(ee.rn));const N=i.db.transaction([i.tableName],"readonly").objectStore(i.tableName).get(r);N.addEventListener("success",j=>{const W=j;i.closeConnection(),a(W.target.result)}),N.addEventListener("error",j=>{i.closeConnection(),f(j)})})})()}setItem(r,i){var a=this;return(0,ne.A)(function*(){return yield a.validateDbIsOpen(),new Promise((f,v)=>{if(!a.db)return v((0,K.bD)(ee.rn));const j=a.db.transaction([a.tableName],"readwrite").objectStore(a.tableName).put(i,r);j.addEventListener("success",()=>{a.closeConnection(),f()}),j.addEventListener("error",W=>{a.closeConnection(),v(W)})})})()}removeItem(r){var i=this;return(0,ne.A)(function*(){return yield i.validateDbIsOpen(),new Promise((a,f)=>{if(!i.db)return f((0,K.bD)(ee.rn));const N=i.db.transaction([i.tableName],"readwrite").objectStore(i.tableName).delete(r);N.addEventListener("success",()=>{i.closeConnection(),a()}),N.addEventListener("error",j=>{i.closeConnection(),f(j)})})})()}getKeys(){var r=this;return(0,ne.A)(function*(){return yield r.validateDbIsOpen(),new Promise((i,a)=>{if(!r.db)return a((0,K.bD)(ee.rn));const w=r.db.transaction([r.tableName],"readonly").objectStore(r.tableName).getAllKeys();w.addEventListener("success",N=>{const j=N;r.closeConnection(),i(j.target.result)}),w.addEventListener("error",N=>{r.closeConnection(),a(N)})})})()}containsKey(r){var i=this;return(0,ne.A)(function*(){return yield i.validateDbIsOpen(),new Promise((a,f)=>{if(!i.db)return f((0,K.bD)(ee.rn));const N=i.db.transaction([i.tableName],"readonly").objectStore(i.tableName).count(r);N.addEventListener("success",j=>{const W=j;i.closeConnection(),a(1===W.target.result)}),N.addEventListener("error",j=>{i.closeConnection(),f(j)})})})()}deleteDatabase(){var r=this;return(0,ne.A)(function*(){return r.db&&r.dbOpen&&r.closeConnection(),new Promise((i,a)=>{const f=window.indexedDB.deleteDatabase(Ae.$u),v=setTimeout(()=>a(!1),200);f.addEventListener("success",()=>(clearTimeout(v),i(!0))),f.addEventListener("blocked",()=>(clearTimeout(v),i(!0))),f.addEventListener("error",()=>(clearTimeout(v),a(!1)))})})()}}class Qr{constructor(){this.cache=new Map}getItem(r){return this.cache.get(r)||null}setItem(r,i){this.cache.set(r,i)}removeItem(r){this.cache.delete(r)}getKeys(){const r=[];return this.cache.forEach((i,a)=>{r.push(a)}),r}containsKey(r){return this.cache.has(r)}clear(){this.cache.clear()}}class ws{constructor(r){this.inMemoryCache=new Qr,this.indexedDBCache=new rs,this.logger=r}handleDatabaseAccessError(r){if(!(r instanceof K.jT&&r.errorCode===ee.MG))throw r;this.logger.error("Could not access persistent storage. This may be caused by browser privacy features which block persistent storage in third-party contexts.")}getItem(r){var i=this;return(0,ne.A)(function*(){const a=i.inMemoryCache.getItem(r);if(!a)try{return i.logger.verbose("Queried item not found in in-memory cache, now querying persistent storage."),yield i.indexedDBCache.getItem(r)}catch(f){i.handleDatabaseAccessError(f)}return a})()}setItem(r,i){var a=this;return(0,ne.A)(function*(){a.inMemoryCache.setItem(r,i);try{yield a.indexedDBCache.setItem(r,i)}catch(f){a.handleDatabaseAccessError(f)}})()}removeItem(r){var i=this;return(0,ne.A)(function*(){i.inMemoryCache.removeItem(r);try{yield i.indexedDBCache.removeItem(r)}catch(a){i.handleDatabaseAccessError(a)}})()}getKeys(){var r=this;return(0,ne.A)(function*(){const i=r.inMemoryCache.getKeys();if(0===i.length)try{return r.logger.verbose("In-memory cache is empty, now querying persistent storage."),yield r.indexedDBCache.getKeys()}catch(a){r.handleDatabaseAccessError(a)}return i})()}containsKey(r){var i=this;return(0,ne.A)(function*(){const a=i.inMemoryCache.containsKey(r);if(!a)try{return i.logger.verbose("Key not found in in-memory cache, now querying persistent storage."),yield i.indexedDBCache.containsKey(r)}catch(f){i.handleDatabaseAccessError(f)}return a})()}clearInMemory(){this.logger.verbose("Deleting in-memory keystore"),this.inMemoryCache.clear(),this.logger.verbose("In-memory keystore deleted")}
1clearPersistent(){var r=this;return(0,ne.A)(function*(){try{r.logger.verbose("Deleting persistent keystore");const i=yield r.indexedDBCache.deleteDatabase();return i&&r.logger.verbose("Persistent keystore deleted"),i}catch(i){return r.handleDatabaseAccessError(i),!1}})()}}let Da=(()=>{class b{constructor(i,a,f){this.logger=i,(0,Bt.RW)(f??!1),this.cache=new ws(this.logger),this.performanceClient=a}createNewGuid(){return(0,Bt.Oy)()}base64Encode(i){return(0,Pn.KA)(i)}base64Decode(i){return pr(i)}base64UrlEncode(i){return(0,Pn.u4)(i)}encodeKid(i){return this.base64UrlEncode(JSON.stringify({kid:i}))}getPublicKeyThumbprint(i){var a=this;return(0,ne.A)(function*(){const f=a.performanceClient?.startMeasurement(Me.MX.CryptoOptsGetPublicKeyThumbprint,i.correlationId),v=yield(0,Bt.TZ)(b.EXTRACTABLE,b.POP_KEY_USAGES),w=yield(0,Bt.RI)(v.publicKey),j=As({e:w.e,kty:w.kty,n:w.n}),W=yield a.hashString(j),ue=yield(0,Bt.RI)(v.privateKey),Ke=yield(0,Bt.W6)(ue,!1,["sign"]);return yield a.cache.setItem(W,{privateKey:Ke,publicKey:v.publicKey,requestMethod:i.resourceRequestMethod,requestUri:i.resourceRequestUri}),f&&f.end({success:!0}),W})()}removeTokenBindingKey(i){var a=this;return(0,ne.A)(function*(){return yield a.cache.removeItem(i),!(yield a.cache.containsKey(i))})()}clearKeystore(){var i=this;return(0,ne.A)(function*(){i.cache.clearInMemory();try{return yield i.cache.clearPersistent(),!0}catch(a){return a instanceof Error?i.logger.error(`Clearing keystore failed with error: ${a.message}`):i.logger.error("Clearing keystore failed with unknown error"),!1}})()}signJwt(i,a,f,v){var w=this;return(0,ne.A)(function*(){const N=w.performanceClient?.startMeasurement(Me.MX.CryptoOptsSignJwt,v),j=yield w.cache.getItem(a);if(!j)throw(0,K.bD)(ee.e0);const W=yield(0,Bt.RI)(j.publicKey),ue=As(W),Ke=(0,Pn.u4)(JSON.stringify({kid:a})),rt=Qn.getShrHeaderString({...f?.header,alg:W.alg,kid:Ke}),_t=(0,Pn.u4)(rt);i.cnf={jwk:JSON.parse(ue)};const y=`${_t}.${(0,Pn.u4)(JSON.stringify(i))}`,h=(new TextEncoder).encode(y),m=yield(0,Bt._S)(j.privateKey,h),H=`${y}.${(0,Pn.dB)(new Uint8Array(m))}`;return N&&N.end({success:!0}),H})()}hashString(i){return(0,ne.A)(function*(){return(0,Bt.YZ)(i)})()}}return b.POP_KEY_USAGES=["sign","verify"],b.EXTRACTABLE=!0,b})();function As(b){return JSON.stringify(b,Object.keys(b).sort())}const ri=(b,r,i,a,f)=>(...v)=>{i.trace(`Executing function ${r}`);const w=a?.startMeasurement(r,f);if(f){const N=r+"CallCount";a?.incrementFields({[N]:1},f)}try{const N=b(...v);return w?.end({success:!0}),i.trace(`Returning result from ${r}`),N}catch(N){i.trace(`Error occurred in ${r}`);try{i.trace(JSON.stringify(N))}catch{i.trace("Unable to print error message.")}throw w?.end({success:!1},N),N}},dt=(b,r,i,a,f)=>(...v)=>{i.trace(`Executing function ${r}`);const w=a?.startMeasurement(r,f);if(f){const N=r+"CallCount";a?.incrementFields({[N]:1},f)}return a?.setPreQueueTime(r,f),b(...v).then(N=>(i.trace(`Returning result from ${r}`),w?.end({success:!0}),N)).catch(N=>{i.trace(`Error occurred in ${r}`);try{i.trace(JSON.stringify(N))}catch{i.trace("Unable to print error message.")}throw w?.end({success:!1},N),N})};let os=(()=>{class b{constructor(i,a,f,v){this.networkInterface=i,this.logger=a,this.performanceClient=f,this.correlationId=v}detectRegion(i,a){var f=this;return(0,ne.A)(function*(){f.performanceClient?.addQueueMeasurement(Me.MX.RegionDiscoveryDetectRegion,f.correlationId);let v=i;if(v)a.region_source=F.jZ.ENVIRONMENT_VARIABLE;else{const w=b.IMDS_OPTIONS;try{const N=yield dt(f.getRegionFromIMDS.bind(f),Me.MX.RegionDiscoveryGetRegionFromIMDS,f.logger,f.performanceClient,f.correlationId)(F.YM.IMDS_VERSION,w);if(N.status===F.Kk.httpSuccess&&(v=N.body,a.region_source=F.jZ.IMDS),N.status===F.Kk.httpBadRequest){const j=yield dt(f.getCurrentVersion.bind(f),Me.MX.RegionDiscoveryGetCurrentVersion,f.logger,f.performanceClient,f.correlationId)(w);if(!j)return a.region_source=F.jZ.FAILED_AUTO_DETECTION,null;const W=yield dt(f.getRegionFromIMDS.bind(f),Me.MX.RegionDiscoveryGetRegionFromIMDS,f.logger,f.performanceClient,f.correlationId)(j,w);W.status===F.Kk.httpSuccess&&(v=W.body,a.region_source=F.jZ.IMDS)}}catch{return a.region_source=F.jZ.FAILED_AUTO_DETECTION,null}}return v||(a.region_source=F.jZ.FAILED_AUTO_DETECTION),v||null})()}getRegionFromIMDS(i,a){var f=this;return(0,ne.A)(function*(){return f.performanceClient?.addQueueMeasurement(Me.MX.RegionDiscoveryGetRegionFromIMDS,f.correlationId),f.networkInterface.sendGetRequestAsync(`${F.YM.IMDS_ENDPOINT}?api-version=${i}&format=text`,a,F.YM.IMDS_TIMEOUT)})()}getCurrentVersion(i){var a=this;return(0,ne.A)(function*(){a.performanceClient?.addQueueMeasurement(Me.MX.RegionDiscoveryGetCurrentVersion,a.correlationId);try{const f=yield a.networkInterface.sendGetRequestAsync(`${F.YM.IMDS_ENDPOINT}?format=json`,i);return f.status===F.Kk.httpBadRequest&&f.body&&f.body["newest-versions"]&&f.body["newest-versions"].length>0?f.body["newest-versions"][0]:null}catch{return null}})()}}return b.IMDS_OPTIONS={headers:{Metadata:"true"}},b})();class kr{constructor(r,i,a,f,v,w,N,j){this.canonicalAuthority=r,this._canonicalAuthority.val
1idateAsUri(),this.networkInterface=i,this.cacheManager=a,this.authorityOptions=f,this.regionDiscoveryMetadata={region_used:void 0,region_source:void 0,region_outcome:void 0},this.logger=v,this.performanceClient=N,this.correlationId=w,this.managedIdentity=j||!1,this.regionDiscovery=new os(i,this.logger,this.performanceClient,this.correlationId)}getAuthorityType(r){if(r.HostNameAndPort.endsWith(F.YM.CIAM_AUTH_URL))return 3;const i=r.PathSegments;if(i.length)switch(i[0].toLowerCase()){case F.YM.ADFS:return 1;case F.YM.DSTS:return 2}return 0}get authorityType(){return this.getAuthorityType(this.canonicalAuthorityUrlComponents)}get protocolMode(){return this.authorityOptions.protocolMode}get options(){return this.authorityOptions}get canonicalAuthority(){return this._canonicalAuthority.urlString}set canonicalAuthority(r){this._canonicalAuthority=new Wt.H(r),this._canonicalAuthority.validateAsUri(),this._canonicalAuthorityUrlComponents=null}get canonicalAuthorityUrlComponents(){return this._canonicalAuthorityUrlComponents||(this._canonicalAuthorityUrlComponents=this._canonicalAuthority.getUrlComponents()),this._canonicalAuthorityUrlComponents}get hostnameAndPort(){return this.canonicalAuthorityUrlComponents.HostNameAndPort.toLowerCase()}get tenant(){return this.canonicalAuthorityUrlComponents.PathSegments[0]}get authorizationEndpoint(){if(this.discoveryComplete())return this.replacePath(this.metadata.authorization_endpoint);throw(0,te.SB)(_e.s1)}get tokenEndpoint(){if(this.discoveryComplete())return this.replacePath(this.metadata.token_endpoint);throw(0,te.SB)(_e.s1)}get deviceCodeEndpoint(){if(this.discoveryComplete())return this.replacePath(this.metadata.token_endpoint.replace("/token","/devicecode"));throw(0,te.SB)(_e.s1)}get endSessionEndpoint(){if(this.discoveryComplete()){if(!this.metadata.end_session_endpoint)throw(0,te.SB)(_e.yX);return this.replacePath(this.metadata.end_session_endpoint)}throw(0,te.SB)(_e.s1)}get selfSignedJwtAudience(){if(this.discoveryComplete())return this.replacePath(this.metadata.issuer);throw(0,te.SB)(_e.s1)}get jwksUri(){if(this.discoveryComplete())return this.replacePath(this.metadata.jwks_uri);throw(0,te.SB)(_e.s1)}canReplaceTenant(r){return 1===r.PathSegments.length&&!kr.reservedTenantDomains.has(r.PathSegments[0])&&0===this.getAuthorityType(r)&&"AAD"===this.protocolMode}replaceTenant(r){return r.replace(/{tenant}|{tenantid}/g,this.tenant)}replacePath(r){let i=r;const f=new Wt.H(this.metadata.canonical_authority).getUrlComponents(),v=f.PathSegments;return this.canonicalAuthorityUrlComponents.PathSegments.forEach((N,j)=>{let W=v[j];if(0===j&&this.canReplaceTenant(f)){const ue=new Wt.H(this.metadata.authorization_endpoint).getUrlComponents().PathSegments[0];W!==ue&&(this.logger.verbose(`Replacing tenant domain name ${W} with id ${ue}`),W=ue)}N!==W&&(i=i.replace(`/${W}/`,`/${N}/`))}),this.replaceTenant(i)}get defaultOpenIdConfigurationEndpoint(){const r=this.hostnameAndPort;return this.canonicalAuthority.endsWith("v2.0/")||1===this.authorityType||"AAD"!==this.protocolMode&&!this.isAliasOfKnownMicrosoftAuthority(r)?`${this.canonicalAuthority}.well-known/openid-configuration`:`${this.canonicalAuthority}v2.0/.well-known/openid-configuration`}discoveryComplete(){return!!this.metadata}resolveEndpointsAsync(){var r=this;return(0,ne.A)(function*(){r.performanceClient?.addQueueMeasurement(Me.MX.AuthorityResolveEndpointsAsync,r.correlationId);const i=r.getCurrentMetadataEntity(),a=yield dt(r.updateCloudDiscoveryMetadata.bind(r),Me.MX.AuthorityUpdateCloudDiscoveryMetadata,r.logger,r.performanceClient,r.correlationId)(i);r.canonicalAuthority=r.canonicalAuthority.replace(r.hostnameAndPort,i.preferred_network);const f=yield dt(r.updateEndpointMetadata.bind(r),Me.MX.AuthorityUpdateEndpointMetadata,r.logger,r.performanceClient,r.correlationId)(i);r.updateCachedMetadata(i,a,{source:f}),r.performanceClient?.addFields({cloudDiscoverySource:a,authorityEndpointSource:f},r.correlationId)})()}getCurrentMetadataEntity(){let r=this.cacheManager.getAuthorityMetadataByAlias(this.hostnameAndPort);return r||(r={aliases:[],preferred_cache:this.hostnameAndPort,preferred_network:this.hostnameAndPort,canonical_authority:this.canonicalAuthority,authorization_endpoint:"",token_endpoint:"",end_session_endpoint:"",issuer:"",aliasesFromNetwork:!1,endpointsFromNetwork:!1,expiresAt:xn(),jwks_uri:""}),r}updateCachedMetadata(r,i,a){i!==F.E_.CACHE&&a?.source!==F.E_.CACHE&&(r.expiresAt=xn(),r.canonical_authority=this.canonicalAuthority);const f=this.cacheManager.generateAuthorityMetadataCacheKey(r.preferred_cache);this.cacheManager.setAuthorityMetadata(f,r),this.metadata=r}updateEndpointMetadata(r){var i=this;return(0,ne.A)(function*(){i.performanceClient?.addQueueMeasurement(Me.MX.AuthorityUpdateEndpointMetadata,i.correlationId);const a=i.updateEndpointMetadataFromLocalSources(r);if(a){if(a.source===F.E_.HARDCODED_VALUES&&i.authorityOptions.azureRegionConfiguration?.azureRegion&&a.metadata){const v=yield dt(i.updateMetadataWithRegionalInformation.bind(i),Me.MX.AuthorityUpdateMetadataWithRegionalInformation,i.logger,i.performanceClient,i.correlationId)(a.metadata);Hr(r,v,!1),r.canonical_authority=i.canonicalAuthority}return a.source}let f=yield dt(i.getEndpointMetadataFromNetwork.bind(i),Me.MX.AuthorityGetEndpointMetadataFromNetwork,i.logger,i.performanceClient,i.correlationId)();if(f)return i.authorityOptions.azureRegionConfiguration?.azureRegion&&(f=yield dt(i.updateMetadataWithRegionalInformation.bind(i),Me.MX.AuthorityUpdateMetadataWithRegionalInformation,i.logger,i.performanceClient,i.correlationId)(f)),Hr(r,f,!0),F.E_.NETWORK;throw(0,te.SB)(_e.Ej,i.defaultOpenIdConfigurationEndpoint)})()}updateEndpointMetadataFromLocalSources(r){this.logger.verbose("Attempting to get endpoint metadata from authority configuration");const i=this.getEndpointMetadataFromConfig();if(i)return this.logger.verbose("Found endpoint metadata in authority configuration"),Hr(r,i,!1),{source:F.E_.CONFIG};if(this.logger.verbose("Did not find endpoint metadata in the config... Attempting to get endpoint metadata from the hardcoded values."),this.authorityOptions.skipAuthorityMetadataCache)this.logger.verbose("Skipping hardcoded metadata cache since skipAuthorityMetadataCache is set to true. Attempting to get endpoint metadata from the network metadata cache.");else{const f=this.getEndpointMetadataFromHardcodedValues();if(f)return Hr(r,f,!1),{source:F.E_.HARDCODED_VALUES,metadata:f};this.logger.verbose("Did not find endpoint metadata in hardcoded values... Attempting to get endpoint metadata from the network metadata cache.")}const a=Qt(r);return this.isAuthoritySameType(r)&&r.endpointsFromNetwork&&!a?(this.logger.verbose("Found endpoint metadata in the cache."),{source:F.E_.CACHE}):(a&&this.logger.verbose("The metadata entity is expired."),null)}isAuthoritySameType(r){return new Wt.H(r.canonical_authority).getUrlComponents().PathSegments.length===this.canonicalAuthorityUrlComponents.PathSegments.length}getEndpointMetadataFromConfig(){if(this.authorityOptions.authorityMetadata)try{return JSON.parse(this.authorityOptions.authorityMetadata)}catch{throw(0,Pt.aD)(vn.uk)}return null}getEndpointMetadataFromNetwork(){var r=this;return(0,ne.A)(function*(){r.performanceClient?.addQueueMeasurement(Me.MX.AuthorityGetEndpointMetadataFromNetwork,r.correlationId);const i={},a=r.defaultOpenIdConfigurationEndpoint;r.logger.verbose(`Authority.getEndpointMetadataFromNetwork: attempting to retrieve OAuth endpoints from ${a}`);try{const f=yield r.networkInterface.sendGetRequestAsync(a,i);return function Lo(b){return b.hasOwnProperty("authorization_endpoint")&&b.hasOwnProperty("token_endpoint")&&b.hasOwnProperty("issuer")&&b.hasOwnProperty("jwks_uri")}(f.body)?f.body:(r.logger.verbose("Authority.getEndpointMetadataFromNetwork: could not parse response as OpenID configuration"),null)}catch(f){return r.logger.verbose(`Authority.getEndpointMetadataFromNetwork: ${f}`),null}})()}getEndpointMetadataFromHardcodedValues(){return this.hostnameAndPort in Jr?Jr[this.hostnameAndPort]:null}updateMetadataWithRegionalInformation(r){var i=this;return(0,ne.A)(function*(){i.performanceClient?.addQueueMeasurement(Me.MX.AuthorityUpdateMetadataWithRegionalInformation,i.correlationId);const a=i.authorityOptions.azureRegionConfiguration?.azureRegion;if(a){if(a!==F.YM.AZURE_REGION_AUTO_DISCOVER_FLAG)return i.regionDiscoveryMetadata.region_outcome=F._2.CONFIGURED_NO_AUTO_DETECTION,i.regionDiscoveryMetadata.region_used=a,kr.replaceWithRegionalInformation(r,a);const f=yield dt(i.regionDiscovery.detectRegion.bind(i.regionDiscovery),Me.MX.RegionDiscoveryDetectRegion,i.logger,i.performanceClient,i.correlationId)(i.authorityOptions.azureRegionConfiguration?.environmentRegion,i.regionDiscoveryMetadata);if(f)return i.regionDiscoveryMetadata.region_outcome=F._2.AUTO_DETECTION_REQUESTED_SUCCESSFUL,i.regionDiscoveryMetadata.region_used=f,kr.replaceWithRegionalInformation(r,f);i.regionDiscoveryMetadata.region_outcome=F._2.AUTO_DETECTION_REQUESTED_FAILED}return r})()}updateCloudDiscoveryMetadata(r){var i=this;return(0,ne.A)(function*(){i.performanceClient?.addQueueMeasurement(Me.MX.AuthorityUpdateCloudDiscoveryMetadata,i.correlationId);const a=i.updateCloudDiscoveryMetadataFromLocalSources(r);if(a)return a;const f=yield dt(i.getCloudDiscoveryMetadataFromNetwork.bind(i),Me.MX.AuthorityGetCloudDiscoveryMetadataFromNetwork,i.logger,i.performanceClient,i.correlationId)();if(f)return yn(r,f,!0),F.E_.NETWORK;throw(0,Pt.aD)(vn.E0)})()}updateCloudDiscoveryMetadataFromLocalSources(r){this.logger.verbose("Attempting to get cloud discovery metadata from authority configuration"),this.logger.verbosePii(`Known Authorities: ${this.authorityOptions.knownAuthorities||F.YM.NOT_APPLICABLE}`),this.logger.verbosePii(`Authority Metadata: ${this.authorityOptions.authorityMetadata||F.YM.NOT_APPLICABLE}`),this.logger.verbosePii(`Canonical Authority: ${r.canonical_authority||F.YM.NOT_APPLICABLE}`);const i=this.getCloudDiscoveryMetadataFromConfig();if(i)return this.logger.verbose("Found cloud discovery metadata in authority configuration"),yn(r,i,!1),F.E_.CONFIG;if(this.logger.verbose("Did not find cloud discovery metadata in the config... Attempting to get cloud discovery metadata from the hardcoded values."),this.options.skipAuthorityMetadataCache)this.logger.verbose("Skipping hardcoded cloud discovery metadata cache since skipAuthorityMetadataCache is set to true. Attempting to get cloud discovery metadata from the network metadata cache.");else{const f=function J(b){return me(Yi.metadata,b)}(this.hostnameAndPort);if(f)return this.logger.verbose("Found cloud discovery metadata from hardcoded values."),yn(r,f,!1),F.E_.HARDCODED_VALUES;this.logger.verbose("Did not find cloud discovery metadata in hardcoded values... Attempting to get cloud discovery metadata from the network metadata cache.")}const a=Qt(r);return this.isAuthoritySameType(r)&&r.aliasesFromNetwork&&!a?(this.logger.verbose("Found cloud discovery metadata in the cache."),F.E_.CACHE):(a&&this.logger.verbose("The metadata entity is expired."),null)}getCloudDiscoveryMetadataFromConfig(){if(3===this.authorityType)return this.logger.verbose("CIAM authorities do not support cloud discovery metadata, generate the aliases from authority host."),kr.createCloudDiscoveryMetadataFromHost(this.hostnameAndPort);if(this.authorityOptions.cloudDiscoveryMetadata){this.logger.verbose("The cloud discovery metadata has been provided as a network response, in the config.");try{this.logger.verbose("Attempting to parse the cloud discovery metadata.");const i=me(JSON.parse(this.authorityOptions.cloudDiscoveryMetadata).metadata,this.hostnameAndPort);if(this.logger.verbose("Parsed the cloud discovery metadata."),i)return this.logger.verbose("There is returnable metadata attached to the parsed cloud discovery metadata."),i;this.logger.verbose("There is no metadata attached to the parsed cloud discovery metadata.")}catch{throw this.logger.verbose("Unable to parse the cloud discovery metadata. Throwing Invalid Cloud Discovery Metadata Error."),(0,Pt.aD)(vn.a_)}}return this.isInKnownAuthorities()?(this.logger.verbose("The host is included in knownAuthorities. Creating new cloud discovery metadata from the host."),kr.createCloudDiscoveryMetadataFromHost(this.hostnameAndPort)):null}getCloudDiscoveryMetadataFromNetwork(){var r=this;return(0,ne.A)(function*(){r.performanceClient?.addQueueMeasurement(Me.MX.AuthorityGetCloudDiscoveryMetadataFromNetwork,r.correlationId);const i=`${F.YM.AAD_INSTANCE_DISCOVERY_ENDPT}${r.canonicalAuthority}oauth2/v2.0/authorize`,a={};let f=null;try{const v=yield r.networkInterface.sendGetRequestAsync(i,a);let w,N;if(function gn(b){return b.hasOwnProperty("tenant_discovery_endpoint")&&b.hasOwnProperty("metadata")}(v.body))w=v.body,N=w.metadata,r.logger.verbosePii(`tenant_discovery_endpoint is: ${w.tenant_discovery_endpoint}`);else{if(!function is(b){return b.hasOwnProperty("error")&&b.hasOwnProperty("error_description")}(v.body))return r.logger.error("AAD did not return a CloudInstanceDiscoveryResponse or CloudInstanceDiscoveryErrorResponse"),null;if(r.logger.warning(`A CloudInstanceDiscoveryErrorResponse was returned. The cloud instance discovery network request's status code is: ${v.status}`),w=v.body,w.error===F.YM.INVALID_INSTANCE)return r.logger.error("The CloudInstanceDiscoveryErrorResponse error is invali
1d_instance."),null;r.logger.warning(`The CloudInstanceDiscoveryErrorResponse error is ${w.error}`),r.logger.warning(`The CloudInstanceDiscoveryErrorResponse error description is ${w.error_description}`),r.logger.warning("Setting the value of the CloudInstanceDiscoveryMetadata (returned from the network) to []"),N=[]}r.logger.verbose("Attempting to find a match between the developer's authority and the CloudInstanceDiscoveryMetadata returned from the network request."),f=me(N,r.hostnameAndPort)}catch(v){return r.logger.error(v instanceof Zn.lR?`There was a network error while attempting to get the cloud discovery instance metadata.\nError: ${v.errorCode}\nError Description: ${v.errorMessage}`:`A non-MSALJS error was thrown while attempting to get the cloud instance discovery metadata.\nError: ${v.name}\nError Description: ${v.message}`),null}return f||(r.logger.warning("The developer's authority was not found within the CloudInstanceDiscoveryMetadata returned from the network request."),r.logger.verbose("Creating custom Authority for custom domain scenario."),f=kr.createCloudDiscoveryMetadataFromHost(r.hostnameAndPort)),f})()}isInKnownAuthorities(){return this.authorityOptions.knownAuthorities.filter(i=>i&&Wt.H.getDomainFromUrl(i).toLowerCase()===this.hostnameAndPort).length>0}static generateAuthority(r,i){let a;return i&&"none"!==i.azureCloudInstance&&(a=`${i.azureCloudInstance}/${i.tenant?i.tenant:F.YM.DEFAULT_COMMON_TENANT}/`),a||r}static createCloudDiscoveryMetadataFromHost(r){return{preferred_network:r,preferred_cache:r,aliases:[r]}}getPreferredCache(){if(this.managedIdentity)return F.YM.DEFAULT_AUTHORITY_HOST;if(this.discoveryComplete())return this.metadata.preferred_cache;throw(0,te.SB)(_e.s1)}isAlias(r){return this.metadata.aliases.indexOf(r)>-1}isAliasOfKnownMicrosoftAuthority(r){return $n.has(r)}static isPublicCloudAuthority(r){return F.YM.KNOWN_PUBLIC_CLOUDS.indexOf(r)>=0}static buildRegionalAuthorityString(r,i,a){const f=new Wt.H(r);f.validateAsUri();const v=f.getUrlComponents();let w=`${i}.${v.HostNameAndPort}`;this.isPublicCloudAuthority(v.HostNameAndPort)&&(w=`${i}.${F.YM.REGIONAL_AUTH_PUBLIC_CLOUD_SUFFIX}`);const N=Wt.H.constructAuthorityUriFromObject({...f.getUrlComponents(),HostNameAndPort:w}).urlString;return a?`${N}?${a}`:N}static replaceWithRegionalInformation(r,i){const a={...r};return a.authorization_endpoint=kr.buildRegionalAuthorityString(a.authorization_endpoint,i),a.token_endpoint=kr.buildRegionalAuthorityString(a.token_endpoint,i),a.end_session_endpoint&&(a.end_session_endpoint=kr.buildRegionalAuthorityString(a.end_session_endpoint,i)),a}static transformCIAMAuthority(r){let i=r;const f=new Wt.H(r).getUrlComponents();return 0===f.PathSegments.length&&f.HostNameAndPort.endsWith(F.YM.CIAM_AUTH_URL)&&(i=`${i}${f.HostNameAndPort.split(".")[0]}${F.YM.AAD_TENANT_DOMAIN_SUFFIX}`),i}}function vi(b){return b.endsWith(F.YM.FORWARD_SLASH)?b:`${b}${F.YM.FORWARD_SLASH}`}kr.reservedTenantDomains=new Set(["{tenant}","{tenantid}",F.v2.COMMON,F.v2.CONSUMERS,F.v2.ORGANIZATIONS]);var Mr=I(194),zi=I(6564);class Pr{static setRequestState(r,i,a){const f=Pr.generateLibraryState(r,a);return i?`${f}${F.YM.RESOURCE_DELIM}${i}`:f}static generateLibraryState(r,i){if(!r)throw(0,te.SB)(_e.oL);const a={id:r.createNewGuid()};i&&(a.meta=i);const f=JSON.stringify(a);return r.base64Encode(f)}static parseRequestState(r,i){if(!r)throw(0,te.SB)(_e.oL);if(!i)throw(0,te.SB)(_e.f$);try{const a=i.split(F.YM.RESOURCE_DELIM),f=a[0],v=a.length>1?a.slice(1).join(F.YM.RESOURCE_DELIM):F.YM.EMPTY_STRING,w=r.base64Decode(f),N=JSON.parse(w);return{userRequestState:v||F.YM.EMPTY_STRING,libraryState:N}}catch{throw(0,te.SB)(_e.f$)}}}var So=I(4064),Ni=I(3578);class ii{constructor(){if(!window.localStorage)throw(0,So.jz)(Ni.xz)}getItem(r){return window.localStorage.getItem(r)}setItem(r,i){window.localStorage.setItem(r,i)}removeItem(r){window.localStorage.removeItem(r)}getKeys(){return Object.keys(window.localStorage)}containsKey(r){return window.localStorage.hasOwnProperty(r)}}class Gr{constructor(){if(!window.sessionStorage)throw(0,So.jz)(Ni.xz)}getItem(r){return window.sessionStorage.getItem(r)}setItem(r,i){window.sessionStorage.setItem(r,i)}removeItem(r){window.sessionStorage.removeItem(r)}getKeys(){return Object.keys(window.sessionStorage)}containsKey(r){return window.sessionStorage.hasOwnProperty(r)}}function ss(b,r){if(!r)return null;try{return Pr.parseRequestState(b,r).libraryState.meta}catch{throw(0,te.SB)(_e.f$)}}class Bo{getItem(r){const i=`${encodeURIComponent(r)}`,a=document.cookie.split(";");for(let f=0;f<a.length;f++){const v=a[f],[w,...N]=decodeURIComponent(v).trim().split("="),j=N.join("=");if(w===i)return j}return""}setItem(r,i,a,f=!0){let v=`${encodeURIComponent(r)}=${encodeURIComponent(i)};path=/;SameSite=Lax;`;if(a){v+=`expires=${function Xt(b){return new Date((new Date).getTime()+864e5*b).toUTCString()}(a)};`}f&&(v+="Secure;"),document.cookie=v}removeItem(r){this.setItem(r,"",-1)}getKeys(){const r=document.cookie.split(";"),i=[];return r.forEach(a=>{const f=decodeURIComponent(a).trim().split("=");i.push(f[0])}),i}containsKey(r){return this.getKeys().includes(r)}}class Oi extends Fn{constructor(r,i,a,f,v,w){super(r,a,f,v),this.cacheConfig=i,this.logger=f,this.internalStorage=new Qr,this.browserStorage=this.setupBrowserStorage(this.cacheConfig.cacheLocation),this.temporaryCacheStorage=this.setupBrowserStorage(this.cacheConfig.temporaryCacheLocation),this.cookieStorage=new Bo,i.cacheMigrationEnabled&&(this.migrateCacheEntries(),this.createKeyMaps()),this.performanceClient=w}setupBrowserStorage(r){try{switch(r){case Ae.Al.LocalStorage:return new ii;case Ae.Al.SessionStorage:return new Gr}}catch(i){this.logger.error(i)}return this.cacheConfig.cacheLocation=Ae.Al.MemoryStorage,new Qr}migrateCacheEntries(){const i=`${F.YM.CACHE_PREFIX}.${F.Gd.CLIENT_INFO}`,a=`${F.YM.CACHE_PREFIX}.${F.Gd.ERROR}`,f=`${F.YM.CACHE_PREFIX}.${F.Gd.ERROR_DESC}`,W=[this.browserStorage.getItem(`${F.YM.CACHE_PREFIX}.${F.Gd.ID_TOKEN}`),this.browserStorage.getItem(i),this.browserStorage.getItem(a),this.browserStorage.getItem(f)];[F.Gd.ID_TOKEN,F.Gd.CLIENT_INFO,F.Gd.ERROR,F.Gd.ERROR_DESC].forEac
1h((Ke,rt)=>{const _t=W[rt];_t&&this.setTemporaryCache(Ke,_t,!0)})}createKeyMaps(){this.logger.trace("BrowserCacheManager - createKeyMaps called.");const r=this.getItem(Ae.dh.ACCOUNT_KEYS),i=this.getItem(`${Ae.dh.TOKEN_KEYS}.${this.clientId}`);r&&i?this.logger.verbose("BrowserCacheManager:createKeyMaps - account and token key maps already exist, skipping migration."):this.browserStorage.getKeys().forEach(f=>{if(this.isCredentialKey(f)){const v=this.getItem(f);if(v){const w=this.validateAndParseJson(v);if(w&&w.hasOwnProperty("credentialType"))switch(w.credentialType){case F.aG.ID_TOKEN:if(Qe(w)){this.logger.trace("BrowserCacheManager:createKeyMaps - idToken found, saving key to token key map"),this.logger.tracePii(`BrowserCacheManager:createKeyMaps - idToken with key: ${f} found, saving key to token key map`);const j=this.updateCredentialCacheKey(f,w);return void this.addTokenKey(j,F.aG.ID_TOKEN)}this.logger.trace("BrowserCacheManager:createKeyMaps - key found matching idToken schema with value containing idToken credentialType field but value failed IdTokenEntity validation, skipping."),this.logger.tracePii(`BrowserCacheManager:createKeyMaps - failed idToken validation on key: ${f}`);break;case F.aG.ACCESS_TOKEN:case F.aG.ACCESS_TOKEN_WITH_AUTH_SCHEME:if(Ee(w)){this.logger.trace("BrowserCacheManager:createKeyMaps - accessToken found, saving key to token key map"),this.logger.tracePii(`BrowserCacheManager:createKeyMaps - accessToken with key: ${f} found, saving key to token key map`);const j=this.updateCredentialCacheKey(f,w);return void this.addTokenKey(j,F.aG.ACCESS_TOKEN)}this.logger.trace("BrowserCacheManager:createKeyMaps - key found matching accessToken schema with value containing accessToken credentialType field but value failed AccessTokenEntity validation, skipping."),this.logger.tracePii(`BrowserCacheManager:createKeyMaps - failed accessToken validation on key: ${f}`);break;case F.aG.REFRESH_TOKEN:if(ze(w)){this.logger.trace("BrowserCacheManager:createKeyMaps - refreshToken found, saving key to token key map"),this.logger.tracePii(`BrowserCacheManager:createKeyMaps - refreshToken with key: ${f} found, saving key to token key map`);const j=this.updateCredentialCacheKey(f,w);return void this.addTokenKey(j,F.aG.REFRESH_TOKEN)}this.logger.trace("BrowserCacheManager:createKeyMaps - key found matching refreshToken schema with value containing refreshToken credentialType field but value failed RefreshTokenEntity validation, skipping."),this.logger.tracePii(`BrowserCacheManager:createKeyMaps - failed refreshToken validation on key: ${f}`)}}}if(this.isAccountKey(f)){const v=this.getItem(f);if(v){const w=this.validateAndParseJson(v);w&&Kt.isAccountEntity(w)&&(this.logger.trace("BrowserCacheManager:createKeyMaps - account found, saving key to account key map"),this.logger.tracePii(`BrowserCacheManager:createKeyMaps - account with key: ${f} found, saving key to account key map`),this.addAccountKeyToMap(f))}}})}validateAndParseJson(r){try{const i=JSON.parse(r);return i&&"object"==typeof i?i:null}catch{return null}}getItem(r){return this.browserStorage.getItem(r)}setItem(r,i){this.browserStorage.setItem(r,i)}getAccount(r,i){this.logger.trace("BrowserCacheManager.getAccount called");const a=this.getCachedAccountEntity(r);return this.updateOutdatedCachedAccount(r,a,i)}getCachedAccountEntity(r){const i=this.getItem(r);if(!i)return this.removeAccountKeyFromMap(r),null;const a=this.validateAndParseJson(i);return a&&Kt.isAccountEntity(a)?Fn.toObject(new Kt,a):(this.removeAccountKeyFromMap(r),null)}setAccount(r){this.logger.trace("BrowserCacheManager.setAccount called");const i=r.generateAccountKey();this.setItem(i,JSON.stringify(r)),this.addAccountKeyToMap(i)}getAccountKeys(){this.logger.trace("BrowserCacheManager.getAccountKeys called");const r=this.getItem(Ae.dh.ACCOUNT_KEYS);return r?JSON.parse(r):(this.logger.verbose("BrowserCacheManager.getAccountKeys - No account keys found"),[])}addAccountKeyToMap(r){this.logger.trace("BrowserCacheManager.addAccountKeyToMap called"),this.logger.tracePii(`BrowserCacheManager.addAccountKeyToMap called with key: ${r}`);const i=this.getAccountKeys();-1===i.indexOf(r)?(i.push(r),this.setItem(Ae.dh.ACCOUNT_KEYS,JSON.stringify(i)),this.logger.verbose("BrowserCacheManager.addAccountKeyToMap account key added")):this.logger.verbose("BrowserCacheManager.addAccountKeyToMap account key already exists in map")}removeAccountKeyFromMap(r){this.logger.trace("BrowserCacheManager.removeAccountKeyFromMap called"),this.logger.tracePii(`BrowserCacheManager.removeAccountKeyFromMap called with key: ${r}`);const i=this.getAccountKeys(),a=i.indexOf(r);a>-1?(i.splice(a,1),this.setItem(Ae.dh.ACCOUNT_KEYS,JSON.stringify(i)),this.logger.trace("BrowserCacheManager.removeAccountKeyFromMap account key removed")):this.logger.trace("BrowserCacheManager.removeAccountKeyFromMap ke
1y not found in existing map")}removeAccount(r){var i=()=>super.removeAccount,a=this;return(0,ne.A)(function*(){i().call(a,r),a.removeAccountKeyFromMap(r)})()}removeOutdatedAccount(r){this.removeItem(r),this.removeAccountKeyFromMap(r)}removeIdToken(r){super.removeIdToken(r),this.removeTokenKey(r,F.aG.ID_TOKEN)}removeAccessToken(r){var i=()=>super.removeAccessToken,a=this;return(0,ne.A)(function*(){i().call(a,r),a.removeTokenKey(r,F.aG.ACCESS_TOKEN)})()}removeRefreshToken(r){super.removeRefreshToken(r),this.removeTokenKey(r,F.aG.REFRESH_TOKEN)}getTokenKeys(){this.logger.trace("BrowserCacheManager.getTokenKeys called");const r=this.getItem(`${Ae.dh.TOKEN_KEYS}.${this.clientId}`);if(r){const i=this.validateAndParseJson(r);if(i&&i.hasOwnProperty("idToken")&&i.hasOwnProperty("accessToken")&&i.hasOwnProperty("refreshToken"))return i;this.logger.error("BrowserCacheManager.getTokenKeys - Token keys found but in an unknown format. Returning empty key map.")}else this.logger.verbose("BrowserCacheManager.getTokenKeys - No token keys found");return{idToken:[],accessToken:[],refreshToken:[]}}addTokenKey(r,i){this.logger.trace("BrowserCacheManager addTokenKey called");const a=this.getTokenKeys();switch(i){case F.aG.ID_TOKEN:-1===a.idToken.indexOf(r)&&(this.logger.info("BrowserCacheManager: addTokenKey - idToken added to map"),a.idToken.push(r));break;case F.aG.ACCESS_TOKEN:-1===a.accessToken.indexOf(r)&&(this.logger.info("BrowserCacheManager: addTokenKey - accessToken added to map"),a.accessToken.push(r));break;case F.aG.REFRESH_TOKEN:-1===a.refreshToken.indexOf(r)&&(this.logger.info("BrowserCacheManager: addTokenKey - refreshToken added to map"),a.refreshToken.push(r));break;default:throw this.logger.error(`BrowserCacheManager:addTokenKey - CredentialType provided invalid. CredentialType: ${i}`),(0,te.SB)(_e.Zj)}this.setItem(`${Ae.dh.TOKEN_KEYS}.${this.clientId}`,JSON.stringify(a))}removeTokenKey(r,i){this.logger.trace("BrowserCacheManager removeTokenKey called");const a=this.getTokenKeys();switch(i){case F.aG.ID_TOKEN:this.logger.infoPii(`BrowserCacheManager: removeTokenKey - attempting to remove idToken with key: ${r} from map`);const f=a.idToken.indexOf(r);f>-1?(this.logger.info("BrowserCacheManager: removeTokenKey - idToken removed from map"),a.idToken.splice(f,1)):this.logger.info("BrowserCacheManager: removeTokenKey - idToken does not exist in map. Either it was previously removed or it was never added.");break;case F.aG.ACCESS_TOKEN:this.logger.infoPii(`BrowserCacheManager: removeTokenKey - attempting to remove accessToken with key: ${r} from map`);const v=a.accessToken.indexOf(r);v>-1?(this.logger.info("BrowserCacheManager: removeTokenKey - accessToken removed from map"),a.accessToken.splice(v,1)):this.logger.info("BrowserCacheManager: removeTokenKey - accessToken does not exist in map. Either it was previously removed or it was never added.");break;case F.aG.REFRESH_TOKEN:this.logger.infoPii(`BrowserCacheManager: removeTokenKey - attempting to remove refreshToken with key: ${r} from map`);const w=a.refreshToken.indexOf(r);w>-1?(this.logger.info("BrowserCacheManager: removeTokenKey - refreshToken removed from map"),a.refreshToken.splice(w,1)):this.logger.info("BrowserCacheManager: removeTokenKey - refreshToken does not exist in map. Either it was previously removed or it was never added.");break;default:throw this.logger.error(`BrowserCacheManager:removeTokenKey - CredentialType provided invalid. CredentialType: ${i}`),(0,te.SB)(_e.Zj)}this.setItem(`${Ae.dh.TOKEN_KEYS}.${this.clientId}`,JSON.stringify(a))}getIdTokenCredential(r){const i=this.getItem(r);if(!i)return this.logger.trace("BrowserCacheManager.getIdTokenCredential: called, no cache hit"),this.removeTokenKey(r,F.aG.ID_TOKEN),null;const a=this.validateAndParseJson(i);return a&&Qe(a)?(this.logger.trace("BrowserCacheManager.getIdTokenCredential: cache hit"),a):(this.logger.trace("BrowserCacheManager.getIdTokenCredential: called, no cache hit"),this.removeTokenKey(r,F.aG.ID_TOKEN),null)}setIdTokenCredential(r){this.logger.trace("BrowserCacheManager.setIdTokenCredential called");const i=Ue(r);this.setItem(i,JSON.stringify(r)),this.addTokenKey(i,F.aG.ID_TOKEN)}getAccessTokenCredential(r){const i=this.getItem(r);if(!i)return this.logger.trace("BrowserCacheManager.getAccessTokenCredential: called, no cache hit"),this.removeTokenKey(r,F.aG.ACCESS_TOKEN),null;const a=this.validateAndParseJson(i);return a&&Ee(a)?(this.logger.trace("BrowserCacheManager.getAccessTokenCredential: cache hit"),a):(this.logger.trace("BrowserCacheManager.getAccessTokenCredential: called, no cache hit"),this.removeTokenKey(r,F.aG.ACCESS_TOKEN),null)}setAccessTokenCredential(r){this.logger.trace("BrowserCacheManager.setAccessTokenCredential called");const i=Ue(r);this.setItem(i,JSON.stringify(r)),this.addTokenKey(i,F.aG.ACCESS_TOKEN)}getRefreshTokenCredential(r){const i=this.getItem(r);if(!i)return this.logger.trace("BrowserCacheManager.getRefreshTokenCredential: called, no cache hit"),this.removeTokenKey(r,F.aG.REFRESH_TOKEN),null;const a=this.validateAndParseJson(i);return a&&ze(a)?(this.logger.trace("BrowserCacheManager.getRefreshTokenCredential: cache hit"),a):(this.logger.trace("BrowserCacheManager.getRefreshTokenCredential: called, no cache hit"),this.removeTokenKey(r,F.aG.REFRESH_TOKEN),null)}setRefreshTokenCredential(r){this.logger.trace("BrowserCacheManager.setRefreshTokenCredential called");const i=Ue(r);this.setItem(i,JSON.stringify(r)),this.addTokenKey(i,F.aG.REFRESH_TOKEN)}getAppMetadata(r){const i=this.getItem(r);if(!i)return this.logger.trace("BrowserCacheManager.getAppMetadata: called, no cache hit"),null;const a=this.validateAndParseJson(i);return a&&function zn(b,r){return!!r&&0===b.indexOf(F.GU)&&r.hasOwnProperty("clientId")&&r.hasOwnProperty("environment")}(r,a)?(this.logger.trace("BrowserCacheManager.getAppMetadata: cache hit"),a):(this.logger.trace("BrowserCacheManager.getAppMetadata: called, no cache hit"),null)}setAppMetadata(r){this.logger.trace("BrowserCacheManager.setAppMetadata called");const i=function Rn({environment:b,clientId:r}){return[F.GU,b,r].join(F.LR.CACHE_KEY_SEPARATOR).toLowerCase()}(r);this.setItem(i,JSON.stringify(r))}getServerTelemetry(r){const i=this.getItem(r);if(!i)return this.logger.trace("BrowserCacheManager.getServerTelemetry: called, no cache hit"),null;const a=this.validateAndParseJson(i);return a&&function En(b,r){const i=0===b.indexOf(F.gT.CACHE_KEY);let a=!0;return r&&(a=r.hasOwnProperty("failedRequests")&&r.hasOwnProperty("errors")&&r.hasOwnProperty("cacheHits")),i&&a}(r,a)?(this.logger.trace("BrowserCacheManager.getServerTelemetry: cache hit"),a):(this.logger.trace("BrowserCacheManager.getServerTelemetry: called, no cache hit"),null)}setServerTelemetry(r,i){this.logger.trace("BrowserCacheManager.setServerTelemetry called"),this.setItem(r,JSON.stringify(i))}getAuthorityMetadata(r){const i=this.internalStorage.getItem(r);if(!i)return this.logger.trace("BrowserCacheManager.getAuthorityMetadata: called, no cache hit"),null;const a=this.validateAndParseJson(i);return a&&function hr(b,r){return!!r&&0===b.indexOf(F.u0.CACHE_KEY)&&r.hasOwnProperty("aliases")&&r.hasOwnProperty("preferred_cache")&&r.hasOwnProperty("preferred_network")&&r.hasOwnProperty("canonical_authority")&&r.hasOwnProperty("authorization_endpoint")&&r.hasOwnProperty("token_endpoint")&&r.hasOwnProperty("issuer")&&r.hasOwnProperty("aliasesFromNetwork")&&r.hasOwnProperty("endpointsFromNetwork")&&r.hasOwnProperty("expiresAt")&&r.hasOwnProperty("jwks_uri")}(r,a)?(this.logger.trace("BrowserCacheManager.getAuthorityMetadata: cache hit"),a):null}getAuthorityMetadataKeys(){return this.internalStorage.getKeys().filter(i=>this.isAuthorityMetadata(i))}setWrapperMetadata(r,i){this.internalStorage.setItem(Ae.H3.WRAPPER_SKU,r),this.internalStorage.setItem(Ae.H3.WRAPPER_VER,i)}getWrapperMetadata(){return[this.internalStorage.getItem(Ae.H3.WRAPPER_SKU)||F.YM.EMPTY_STRING,this.internalStorage.getItem(Ae.H3.WRAPPER_VER)||F.YM.EMPTY_STRING]}setAuthorityMetadata(r,i){this.logger.trace("BrowserCacheManager.setAuthorityMetadata called"),this.internalStorage.setItem(r,JSON.stringify(i))}getActiveAccount(){const r=this.generateCacheKey(F.Gd.ACTIVE_ACCOUNT_FILTERS),i=this.getItem(r);if(!i){this.logger.trace("BrowserCacheManager.getActiveAccount: No active account filters cache schema found, looking for legacy schema");const f=this.generateCacheKey(F.Gd.ACTIVE_ACCOUNT),v=this.getItem(f);if(!v)return this.logger.trace("BrowserCacheManager.getActiveAccount: No active account found"),null;const w=this.getAccountInfoFilteredBy({localAccountId:v});return w?(this.logger.trace("BrowserCacheManager.getActiveAccount: Legacy active account cache schema found"),this.logger.trace("BrowserCacheManager.getActiveAccount: Adding active account filters cache schema"),this.setActiveAccount(w),w):null}const a=this.validateAndParseJson(i);return a?(this.logger.trace("BrowserCacheManager.getActiveAccount: Active account filters schema found"),this.getAccountInfoFilteredBy({homeAccountId:a.homeAccountId,localAccountId:a.localAccountId,tenantId:a.tenantId})):(this.logger.trace("BrowserCacheManager.getActiveAccount: No active account found"),null)}setActiveAccount(r){const i=this.generateCacheKey(F.Gd.ACTIVE_ACCOUNT_FILTERS),a=this.generateCacheKey(F.Gd.ACTIVE_ACCOUNT);r?(this.logger.verbose("setActiveAccount: Active account set"),this.browserStorage.setItem(i,JSON.stringify({homeAccountId:r.homeAccountId,localAccountId:r.localAccountId,tenantId:r.tenantId})),this.browserStorage.setItem(a,r.localAccountId)):(this.logger.verbose("setActiveAccount: No account passed, active account not set"),this.browserStorage.removeItem(i),this.browserStorage.removeItem(a))}getThrottlingCache(r){const i=this.getItem(r);if(!i)return this.logger.trace("BrowserCacheManager.getThrottlingCache: called, no cache hit"),null;const a=this.validateAndParseJson(i);return a&&function ft(b,r){let i=!1;
1b&&(i=0===b.indexOf(F.Xw.THROTTLING_PREFIX));let a=!0;return r&&(a=r.hasOwnProperty("throttleTime")),i&&a}(r,a)?(this.logger.trace("BrowserCacheManager.getThrottlingCache: cache hit"),a):(this.logger.trace("BrowserCacheManager.getThrottlingCache: called, no cache hit"),null)}setThrottlingCache(r,i){this.logger.trace("BrowserCacheManager.setThrottlingCache called"),this.setItem(r,JSON.stringify(i))}getTemporaryCache(r,i){const a=i?this.generateCacheKey(r):r;if(this.cacheConfig.storeAuthStateInCookie){const v=this.cookieStorage.getItem(a);if(v)return this.logger.trace("BrowserCacheManager.getTemporaryCache: storeAuthStateInCookies set to true, retrieving from cookies"),v}const f=this.temporaryCacheStorage.getItem(a);if(!f){if(this.cacheConfig.cacheLocation===Ae.Al.LocalStorage){const v=this.browserStorage.getItem(a);if(v)return this.logger.trace("BrowserCacheManager.getTemporaryCache: Temporary cache item found in local storage"),v}return this.logger.trace("BrowserCacheManager.getTemporaryCache: No cache item found in local storage"),null}return this.logger.trace("BrowserCacheManager.getTemporaryCache: Temporary cache item returned"),f}setTemporaryCache(r,i,a){const f=a?this.generateCacheKey(r):r;this.temporaryCacheStorage.setItem(f,i),this.cacheConfig.storeAuthStateInCookie&&(this.logger.trace("BrowserCacheManager.setTemporaryCache: storeAuthStateInCookie set to true, setting item cookie"),this.cookieStorage.setItem(f,i,void 0,this.cacheConfig.secureCookies))}removeItem(r){this.browserStorage.removeItem(r)}removeTemporaryItem(r){this.temporaryCacheStorage.removeItem(r),this.cacheConfig.storeAuthStateInCookie&&(this.logger.trace("BrowserCacheManager.removeItem: storeAuthStateInCookie is true, clearing item cookie"),this.cookieStorage.removeItem(r))}getKeys(){return this.browserStorage.getKeys()}clear(){var r=this;return(0,ne.A)(function*(){yield r.removeAllAccounts(),r.removeAppMetadata(),r.temporaryCacheStorage.getKeys().forEach(i=>{(-1!==i.indexOf(F.YM.CACHE_PREFIX)||-1!==i.indexOf(r.clientId))&&r.removeTemporaryItem(i)}),r.browserStorage.getKeys().forEach(i=>{(-1!==i.indexOf(F.YM.CACHE_PREFIX)||-1!==i.indexOf(r.clientId))&&r.browserStorage.removeItem(i)}),r.internalStorage.clear()})()}clearTokensAndKeysWithClaims(r,i){var a=this;return(0,ne.A)(function*(){r.addQueueMeasurement(Me.MX.ClearTokensAndKeysWithClaims,i);const f=a.getTokenKeys(),v=[];f.accessToken.forEach(w=>{const N=a.getAccessTokenCredential(w);N?.requestedClaimsHash&&w.includes(N.requestedClaimsHash.toLowerCase())&&v.push(a.removeAccessToken(w))}),yield Promise.all(v),v.length>0&&a.logger.warning(`${v.length} access tokens with claims in the cache keys have been removed from the cache.`)})()}generateCacheKey(r){return this.validateAndParseJson(r)?JSON.stringify(r):Dr.$.startsWith(r,F.YM.CACHE_PREFIX)||Dr.$.startsWith(r,F.Gd.ADAL_ID_TOKEN)?r:`${F.YM.CACHE_PREFIX}.${this.clientId}.${r}`}generateAuthorityKey(r){const{libraryState:{id:i}}=Pr.parseRequestState(this.cryptoImpl,r);return this.generateCacheKey(`${Ae._p.AUTHORITY}.${i}`)}generateNonceKey(r){const{libraryState:{id:i}}=Pr.parseRequestState(this.cryptoImpl,r);return this.generateCacheKey(`${Ae._p.NONCE_IDTOKEN}.${i}`)}generateStateKey(r){const{libraryState:{id:i}}=Pr.parseRequestState(this.cryptoImpl,r);return this.generateCacheKey(`${Ae._p.REQUEST_STATE}.${i}`)}getCachedAuthority(r){const i=this.generateStateKey(r),a=this.getTemporaryCache(i);if(!a)return null;const f=this.generateAuthorityKey(a);return this.getTemporaryCache(f)}updateCacheEntries(r,i,a,f,v){this.logger.trace("BrowserCacheManager.updateCacheEntries called");const w=this.generateStateKey(r);this.setTemporaryCache(w,r,!1);const N=this.generateNonceKey(r);this.setTemporaryCache(N,i,!1);const j=this.generateAuthorityKey(r);this.setTemporaryCache(j,a,!1),v?this.setTemporaryCache(Ae._p.CCS_CREDENTIAL,JSON.stringify({credential:v.homeAccountId,type:"home_account_id"}),!0):f&&this.setTemporaryCache(Ae._p.CCS_CREDENTIAL,JSON.stringify({credential:f,type:"UPN"}),!0)}resetRequestCache(r){this.logger.trace("BrowserCacheManager.resetRequestCache called"),r&&(this.temporaryCacheStorage.getKeys().forEac
1h(i=>{-1!==i.indexOf(r)&&this.removeTemporaryItem(i)}),this.removeTemporaryItem(this.generateStateKey(r)),this.removeTemporaryItem(this.generateNonceKey(r)),this.removeTemporaryItem(this.generateAuthorityKey(r))),this.removeTemporaryItem(this.generateCacheKey(Ae._p.REQUEST_PARAMS)),this.removeTemporaryItem(this.generateCacheKey(Ae._p.ORIGIN_URI)),this.removeTemporaryItem(this.generateCacheKey(Ae._p.URL_HASH)),this.removeTemporaryItem(this.generateCacheKey(Ae._p.CORRELATION_ID)),this.removeTemporaryItem(this.generateCacheKey(Ae._p.CCS_CREDENTIAL)),this.removeTemporaryItem(this.generateCacheKey(Ae._p.NATIVE_REQUEST)),this.setInteractionInProgress(!1)}cleanRequestByState(r){if(this.logger.trace("BrowserCacheManager.cleanRequestByState called"),r){const i=this.generateStateKey(r),a=this.temporaryCacheStorage.getItem(i);this.logger.infoPii(`BrowserCacheManager.cleanRequestByState: Removing temporary cache items for state: ${a}`),this.resetRequestCache(a||F.YM.EMPTY_STRING)}}cleanRequestByInteractionType(r){this.logger.trace("BrowserCacheManager.cleanRequestByInteractionType called"),this.temporaryCacheStorage.getKeys().forEach(i=>{if(-1===i.indexOf(Ae._p.REQUEST_STATE))return;const a=this.temporaryCacheStorage.getItem(i);if(!a)return;const f=ss(this.cryptoImpl,a);f&&f.interactionType===r&&(this.logger.infoPii(`BrowserCacheManager.cleanRequestByInteractionType: Removing temporary cache items for state: ${a}`),this.resetRequestCache(a))}),this.setInteractionInProgress(!1)}cacheCodeRequest(r){this.logger.trace("BrowserCacheManager.cacheCodeRequest called");const i=(0,Pn.KA)(JSON.stringify(r));this.setTemporaryCache(Ae._p.REQUEST_PARAMS,i,!0)}getCachedRequest(r){this.logger.trace("BrowserCacheManager.getCachedRequest called");const i=this.getTemporaryCache(Ae._p.REQUEST_PARAMS,!0);if(!i)throw(0,K.bD)(ee.y6);let a;try{a=JSON.parse(pr(i))}catch(f){throw this.logger.errorPii(`Attempted to parse: ${i}`),this.logger.error(`Parsing cached token request threw with error: ${f}`),(0,K.bD)(ee.ot)}if(this.removeTemporaryItem(this.generateCacheKey(Ae._p.REQUEST_PARAMS)),!a.authority){const f=this.generateAuthorityKey(r),v=this.getTemporaryCache(f);if(!v)throw(0,K.bD)(ee.Ne);a.authority=v}return a}getCachedNativeRequest(){this.logger.trace("BrowserCacheManager.getCachedNativeRequest called");const r=this.getTemporaryCache(Ae._p.NATIVE_REQUEST,!0);return r?this.validateAndParseJson(r)||(this.logger.error("BrowserCacheManager.getCachedNativeRequest: Unable to parse native request"),null):(this.logger.trace("BrowserCacheManager.getCachedNativeRequest: No cached native request found"),null)}isInteractionInProgress(r){const i=this.getInteractionInProgress();return r?i===this.clientId:!!i}getInteractionInProgress(){return this.getTemporaryCache(`${F.YM.CACHE_PREFIX}.${Ae._p.INTERACTION_STATUS_KEY}`,!1)}setInteractionInProgress(r){const i=`${F.YM.CACHE_PREFIX}.${Ae._p.INTERACTION_STATUS_KEY}`;if(r){if(this.getInteractionInProgress())throw(0,K.bD)(ee.b);this.setTemporaryCache(i,this.clientId,!1)}else!r&&this.getInteractionInProgress()===this.clientId&&this.removeTemporaryItem(i)}getLegacyLoginHint(){const r=this.getTemporaryCache(F.Gd.ADAL_ID_TOKEN);r&&(this.browserStorage.removeItem(F.Gd.ADAL_ID_TOKEN),this.logger.verbose("Cached ADAL id token retrieved."));const i=this.getTemporaryCache(F.Gd.ID_TOKEN,!0);i&&(this.browserStorage.removeItem(this.generateCacheKey(F.Gd.ID_TOKEN)),this.logger.verbose("Cached MSAL.js v1 id token retrieved"));const a=i||r;if(a){const f=$e(a,pr);if(f.preferred_username)return this.logger.verbose("No SSO params used and ADAL/MSAL v1 token retrieved, setting ADAL/MSAL v1 preferred_username as loginHint"),f.preferred_username;if(f.upn)return this.logger.verbose("No SSO params used and ADAL/MSAL v1 token retrieved, setting ADAL/MSAL v1 upn as loginHint"),f.upn;this.logger.verbose("No SSO params used and ADAL/MSAL v1 token retrieved, however, no account hint claim found. Enable preferred_username or upn id token claim to get SSO.")}return null}updateCredentialCacheKey(r,i){const a=Ue(i);if(r!==a){const f=this.getItem(r);if(f)return this.browserStorage.removeItem(r),this.setItem(a,f),this.logger.verbose(`Updated an outdated ${i.credentialType} cache key`),a;this.logger.error(`Attempted to update an outdated ${i.credentialType} cache key but no item matching the outdated key was found in storage`)}return r}hydrateCache(r,i){var a=this;return(0,ne.A)(function*(){const f=ke(r.account?.homeAccountId,r.account?.environment,r.idToken,a.clientId,r.tenantId);let v;
1i.claims&&(v=yield a.cryptoImpl.hashString(i.claims));const w=lt(r.account?.homeAccountId,r.account.environment,r.accessToken,a.clientId,r.tenantId,r.scopes.join(" "),r.expiresOn?r.expiresOn.getTime()/1e3:0,r.extExpiresOn?r.extExpiresOn.getTime()/1e3:0,pr,void 0,r.tokenType,void 0,i.sshKid,i.claims,v);return a.saveCacheRecord({idToken:f,accessToken:w})})()}saveCacheRecord(r,i,a){var f=()=>super.saveCacheRecord,v=this;return(0,ne.A)(function*(){try{yield f().call(v,r,i,a)}catch(w){if(w instanceof Cn&&v.performanceClient&&a)try{const N=v.getTokenKeys();v.performanceClient.addFields({cacheRtCount:N.refreshToken.length,cacheIdCount:N.idToken.length,cacheAtCount:N.accessToken.length},a)}catch{}throw w}})()}}class fo{constructor(r){this.eventCallbacks=new Map,this.logger=r||new st({})}addEventCallback(r,i,a){if(typeof window<"u"){const f=a||(0,it.gj)();return this.eventCallbacks.has(f)?(this.logger.error(`Event callback with id: ${f} is already registered. Please provide a unique id or remove the existing callback and try again.`),null):(this.eventCallbacks.set(f,[r,i||[]]),this.logger.verbose(`Event callback registered with id: ${f}`),f)}return null}removeEventCallback(r){this.eventCallbacks.delete(r),this.logger.verbose(`Event callback ${r} removed.`)}emitEvent(r,i,a,f){if(typeof window<"u"){const v={eventType:r,interactionType:i||null,payload:a||null,error:f||null,timestamp:Date.now()};this.eventCallbacks.forEach(([w,N],j)=>{(0===N.length||N.includes(r))&&(this.logger.verbose(`Emitting event to callback ${j}: ${r}`),w.apply(null,[v]))})}}}class Ci extends Zn.lR{constructor(r,i,a,f,v){super(r,i,a),this.name="ServerError",this.errorNo=f,this.status=v,Object.setPrototypeOf(this,Ci.prototype)}}class xr{static generateThrottlingStorageKey(r){return`${F.Xw.THROTTLING_PREFIX}.${JSON.stringify(r)}`}static preProcess(r,i){const a=xr.generateThrottlingStorageKey(i),f=r.getThrottlingCache(a);if(f){if(f.throttleTime<Date.now())return void r.removeItem(a);throw new Ci(f.errorCodes?.join(" ")||F.YM.EMPTY_STRING,f.errorMessage,f.subError)}}static postProcess(r,i,a){if(xr.checkResponseStatus(a)||xr.checkResponseForRetryAfter(a)){const f={throttleTime:xr.calculateThrottleTime(parseInt(a.headers[F.OK.RETRY_AFTER])),error:a.body.error,errorCodes:a.body.error_codes,errorMessage:a.body.error_description,subError:a.body.suberror};r.setThrottlingCache(xr.generateThrottlingStorageKey(i),f)}}static checkResponseStatus(r){return 429===r.status||r.status>=500&&r.status<600}static checkResponseForRetryAfter(r){return!!r.headers&&r.headers.hasOwnProperty(F.OK.RETRY_AFTER)&&(r.status<200||r.status>=300)}static calculateThrottleTime(r){const i=r<=0?0:r,a=Date.now()/1e3;return Math.floor(1e3*Math.min(a+(i||F.Xw.DEFAULT_THROTTLE_TIME_SECONDS),a+F.Xw.DEFAULT_MAX_THROTTLE_TIME_SECONDS))}static removeThrottle(r,i,a,f){const w=this.generateThrottlingStorageKey({clientId:i,authority:a.authority,scopes:a.scopes,homeAccountIdentifier:f,claims:a.claims,authenticationScheme:a.authenticationScheme,resourceRequestMethod:a.resourceRequestMethod,resourceRequestUri:a.resourceRequestUri,shrClaims:a.shrClaims,sshKid:a.sshKid});r.removeItem(w)}}const eo="client_id",wr="redirect_uri",Ei="response_type",Aa="token_type",Jn="req_cnf",Ra="return_spa_code",_n="brk_client_id",Tr="brk_redirect_uri";class gr{static validateRedirectUri(r){if(!r)throw(0,Pt.aD)(vn.gO)}static validatePrompt(r){const i=[];for(const a in F._M)i.push(F._M[a]);if(i.indexOf(r)<0)throw(0,Pt.aD)(vn.Pc)}static validateClaims(r){try{JSON.parse(r)}catch{throw(0,Pt.aD)(vn.bj)}}static validateCodeChallengeParams(r,i){if(!r||!i)throw(0,Pt.aD)(vn.qz);this.validateCodeChallengeMethod(i)}static validateCodeChallengeMethod(r){if([F.iF.PLAIN,F.iF.S256].indexOf(r)<0)throw(0,Pt.aD)(vn.b0)}}class Rr{constructor(r,i){this.parameters=new Map,this.performanceClient=i,this.correlationId=r}addResponseTypeCode(){this.parameters.set(Ei,encodeURIComponent(F.YM.CODE_RESPONSE_TYPE))}addResponseTypeForTokenAndIdToken(){this.parameters.set(Ei,encodeURIComponent(`${F.YM.TOKEN_RESPONSE_TYPE} ${F.YM.ID_TOKEN_RESPONSE_TYPE}`))}addResponseMode(r){this.parameters.set("response_mode",encodeURIComponent(r||F.p.QUERY))}addNativeBroker(){this.parameters.set("nativebroker",encodeURIComponent("1"))}addScopes(r,i=!0,a=F.aZ){i&&!a.includes("openid")&&!r.includes("openid")&&a.push("openid");const f=i?[...r||[],...a]:r||[],v=new An(f);this.parameters.set("scope",encodeURIComponent(v.printScopes()))}addClientId(r){this.parameters.set(eo,encodeURIComponent(r))}addRedirectUri(r){gr.validateRedirectUri(r),this.parameters.set(wr,encodeURIComponent(r))}addPostLogoutRedirectUri(r){gr.validateRedirectUri(r),this.parameters.set("post_logout_redirect_uri",encodeURIComponent(r))}addIdTokenHint(r){this.parameters.set("id_token_hint",encodeURIComponent(r))}addDomainHint(r){this.parameters.set("domain_hint",encodeURIComponent(r))}addLoginHint(r){this.parameters.set("login_hint",encodeURIComponent(r))}addCcsUpn(r){this.parameters.set(F.OK.CCS_HEADER,encodeURIComponent(`UPN:${r}`))}addCcsOid(r){this.parameters.set(F.OK.CCS_HEADER,encodeURIComponent(`Oid:${r.uid}@${r.utid}`))}addSid(r){this.parameters.set("sid",encodeURIComponent(r))}addClaims(r,i){const a=this.addClientCapabilitiesToClaims(r,i);gr.validateClaims(a),this.parameters.set("claims",encodeURIComponent(a))}addCorrelationId(r){this.parameters.set("client-request-id",encodeURIComponent(r))}addLibraryInfo(r){this.parameters.set("x-client-SKU",r.sku),this.parameters.set("x-client-VER",r.version),r.os&&this.parameters.set("x-client-OS",r.os),r.cpu&&this.parameters.set("x-client-CPU",r.cpu)}addApplicationTelemetry(r){r?.appName&&this.parameters.set("x-app-name",r.appName),r?.appVersion&&this.parameters.set("x-app-ver",r.appVersion)}
1addPrompt(r){gr.validatePrompt(r),this.parameters.set("prompt",encodeURIComponent(r))}addState(r){r&&this.parameters.set("state",encodeURIComponent(r))}addNonce(r){this.parameters.set("nonce",encodeURIComponent(r))}addCodeChallengeParams(r,i){if(gr.validateCodeChallengeParams(r,i),!r||!i)throw(0,Pt.aD)(vn.qz);this.parameters.set("code_challenge",encodeURIComponent(r)),this.parameters.set("code_challenge_method",encodeURIComponent(i))}addAuthorizationCode(r){this.parameters.set("code",encodeURIComponent(r))}addDeviceCode(r){this.parameters.set("device_code",encodeURIComponent(r))}addRefreshToken(r){this.parameters.set("refresh_token",encodeURIComponent(r))}addCodeVerifier(r){this.parameters.set("code_verifier",encodeURIComponent(r))}addClientSecret(r){this.parameters.set("client_secret",encodeURIComponent(r))}addClientAssertion(r){r&&this.parameters.set("client_assertion",encodeURIComponent(r))}addClientAssertionType(r){r&&this.parameters.set("client_assertion_type",encodeURIComponent(r))}addOboAssertion(r){this.parameters.set("assertion",encodeURIComponent(r))}addRequestTokenUse(r){this.parameters.set("requested_token_use",encodeURIComponent(r))}addGrantType(r){this.parameters.set("grant_type",encodeURIComponent(r))}addClientInfo(){this.parameters.set(F.JR,"1")}addExtraQueryParameters(r){Object.entries(r).forEach(([i,a])=>{!this.parameters.has(i)&&a&&this.parameters.set(i,a)})}addClientCapabilitiesToClaims(r,i){let a;if(r)try{a=JSON.parse(r)}catch{throw(0,Pt.aD)(vn.bj)}else a={};return i&&i.length>0&&(a.hasOwnProperty(F.Fq.ACCESS_TOKEN)||(a[F.Fq.ACCESS_TOKEN]={}),a[F.Fq.ACCESS_TOKEN][F.Fq.XMS_CC]={values:i}),JSON.stringify(a)}addUsername(r){this.parameters.set(F.Tq.username,encodeURIComponent(r))}addPassword(r){this.parameters.set(F.Tq.password,encodeURIComponent(r))}addPopToken(r){r&&(this.parameters.set(Aa,F.IO.POP),this.parameters.set(Jn,encodeURIComponent(r)))}addSshJwk(r){r&&(this.parameters.set(Aa,F.IO.SSH),this.parameters.set(Jn,encodeURIComponent(r)))}addServerTelemetry(r){this.parameters.set("x-client-current-telemetry",r.generateCurrentRequestHeaderValue()),this.parameters.set("x-client-last-telemetry",r.generateLastRequestHeaderValue())}addThrottling(){this.parameters.set("x-ms-lib-capability",F.Xw.X_MS_LIB_CAPABILITY_VALUE)}addLogoutHint(r){this.parameters.set("logout_hint",encodeURIComponent(r))}addBrokerParameters(r){const i={};i[_n]=r.brokerClientId,i[Tr]=r.brokerRedirectUri,this.addExtraQueryParameters(i)}createQueryString(){const r=new Array;return this.parameters.forEach((i,a)=>{r.push(`${a}=${i}`)}),function fi(b,r,i){if(!r)return;const a=b.get(eo);a&&b.has(_n)&&i?.addFields({embeddedClientId:a,embeddedRedirectUri:b.get(wr)},r)}(this.parameters,this.correlationId,this.performanceClient),r.join("&")}}function Ro(b,r,i,a,f,v,w){return Zs.apply(this,arguments)}function Zs(){return(Zs=(0,ne.A)(function*(b,r,i,a,f,v,w){w?.addQueueMeasurement(Me.MX.AuthorityFactoryCreateDiscoveredInstance,v);const N=kr.transformCIAMAuthority(vi(b)),j=new kr(N,r,i,a,f,v,w);try{return yield dt(j.resolveEndpointsAsync.bind(j),Me.MX.AuthorityResolveEndpointsAsync,f,w,v)(),j}catch{throw(0,te.SB)(_e.s1)}})).apply(this,arguments)}class Ko{constructor(r,i){this.config=function $i({authOptions:b,systemOptions:r,loggerOptions:i,cacheOptions:a,storageInterface:f,networkInterface:v,cryptoInterface:w,clientCredentials:N,libraryInfo:j,telemetry:W,serverTelemetryManager:ue,persistencePlugin:Ke,serializableCache:rt}){const _t={...vr,...i};return{authOptions:yi(b),systemOptions:{...ei,...r},loggerOptions:_t,cacheOptions:{...Mi,...a},storageInterface:f||new fr(b.clientId,Tt,new st(_t)),networkInterface:v||zr,cryptoInterface:w||Tt,clientCredentials:N||Vn,libraryInfo:{...Zi,...j},telemetry:{...To,...W},serverTelemetryManager:ue||null,persistencePlugin:Ke||null,serializableCache:rt||null}}(r),this.logger=new st(this.config.loggerOptions,vt,Yt),this.cryptoUtils=this.config.cryptoInterface,this.cacheManager=this.config.storageInterface,this.networkClient=this.config.networkInterface,this.serverTelemetryManager=this.config.serverTelemetryManager,this.authority=this.config.authOptions.authority,this.performanceClient=i}createTokenRequestHeaders(r){const i={};if(i[F.OK.CONTENT_TYPE]=F.YM.URL_FORM_CONTENT_TYPE,!this.config.systemOptions.preventCorsPreflight&&r)switch(r.type){case"home_account_id":try{const a=Yn(r.credential);i[F.OK.CCS_HEADER]=`Oid:${a.uid}@${a.utid}`}catch(a){this.logger.verbose("Could not parse home account ID for CCS Header: "+a)}break;case"UPN":i[F.OK.CCS_HEADER]=`UPN: ${r.credential}`}return i}executePostToTokenEndpoint(r,i,a,f,v,w){var N=this;return(0,ne.A)(function*(){w&&N.performanceClient?.addQueueMeasurement(w,v);const j=yield N.sendPostRequest(f,r,{body:i,headers:a},v);return N.config.serverTelemetryManager&&j.status<500&&429!==j.status&&N.config.serverTelemetryManager.clearTelemetryCache(),j})()}sendPostRequest(r,i,a,f){var v=this;return(0,ne.A)(function*(){let w;xr.preProcess(v.cacheManager,r);try{w=yield dt(v.networkClient.sendPostRequestAsync.bind(v.networkClient),Me.MX.NetworkClientSendPostRequestAsync,v.logger,v.performanceClient,f)(i,a);const N=w.headers||{};v.performanceClient?.addFields({refreshTokenSize:w.body.refresh_token?.length||0,httpVerToken:N[F.OK.X_MS_HTTP_VERSION]||"",requestId:N[F.OK.X_MS_REQUEST_ID]||""},f)}catch(N){if(N instanceof Ri){const j=N.responseHeaders;throw j&&v.performanceClient?.addFields({httpVerToken:j[F.OK.X_MS_HTTP_VERSION]||"",requestId:j[F.OK.X_MS_REQUEST_ID]||"",contentTypeHeader:j[F.OK.CONTENT_TYPE]||void 0,contentLengthHeader:j[F.OK.CONTENT_LENGTH]||void 0,httpStatus:N.httpStatus},f),N.error}throw N instanceof Zn.lR?N:(0,te.SB)(_e.x6)}return xr.postProcess(v.cacheManager,r,w),w})()}updateAuthority(r,i){var a=this;return(0,ne.A)(function*(){a.performanceClient?.addQueueMeasurement(Me.MX.UpdateTokenEndpointAuthority,i);const f=`https://${r}/${a.authority.tenant}/`,v=yield Ro(f,a.networkClient,a.cacheManager,a.authority.options,a.logger,i,a.performanceClient);a.authority=v})()}createTokenQueryParameters(r){const i=new Rr(r.correlationId,this.performanceClient);return r.embeddedClientId&&i.addBrokerParameters({brokerClientId:this.config.authOptions.clientId,brokerRedirectUri:this.config.authOptions.redirectUri}),r.tokenQueryParameters&&i.addExtraQueryParameters(r.tokenQueryParameters),i.addCorrelationId(r.correlationId),i.createQueryString()}}class Ms{constructor(r,i){this.cryptoUtils=r,this.performanceClient=i}generateCnf(r,i){var a=this;return(0,ne.A)(function*(){a.performanceClient?.addQueueMeasurement(Me.MX.PopTokenGenerateCnf,r.correlationId);const f=yield dt(a.generateKid.bind(a),Me.MX.PopTokenGenerateCnf,i,a.performanceClient,r.correlationId)(r),v=a.cryptoUtils.base64UrlEncode(JSON.stringify(f));return{kid:f.kid,reqCnfString:v}})()}generateKid(r){var i=this;return(0,ne.A)(function*(){return i.performanceClient?.addQueueMeasurement(Me.MX.PopTokenGenerateKid,r.correlationId),{kid:yield i.cryptoUtils.getPublicKeyThumbprint(r),xms_ksl:"sw"}})()}signPopToken(r,i,a){var f=this;return(0,ne.A)(function*(){return f.signPayload(r,i,a)})()}signPayload(r,i,a,f){var v=this;return(0,ne.A)(function*(){const{resourceRequestMethod:w,resourceRequestUri:N,shrClaims:j,shrNonce:W,shrOptions:ue}=a,rt=(N?new Wt.H(N):void 0)?.getUrlComponents();return v.cryptoUtils.signJwt({at:r,ts:Q(),m:w?.toUpperCase(),u:rt?.HostNameAndPort,nonce:W||v.cryptoUtils.createNewGuid(),p:rt?.AbsolutePath,q:rt?.QueryString?[[],rt.QueryString]:void 0,client_claims:j||void 0,...f},i,ue,a.correlationId)})()}}class ps{constructor(r,i){this.cache=r,this.hasChanged=i}get cacheHasChanged(){return this.hasChanged}get tokenCache(){return this.cache}}class Ti{constructor(r,i,a,f,v,w,N){this.clientId=r,this.cacheStorage=i,this.cryptoObj=a,this.logger=f,this.serializableCache=v,this.persistencePlugin=w,this.performanceClient=N}validateServerAuthorizationCodeResponse(r,i){if(!r.state||!i)throw(0,te.SB)(_e.tQ,r.state?"Cached State":"Server State");let a,f;try{a=decodeURIComponent(r.state)}catch{throw(0,te.SB)(_e.f$,r.state)}
1try{f=decodeURIComponent(i)}catch{throw(0,te.SB)(_e.f$,r.state)}if(a!==f)throw(0,te.SB)(_e.Cl);if(r.error||r.error_description||r.suberror){const v=function Oa(b){const i=b.error_uri?.lastIndexOf("code=");return i&&i>=0?b.error_uri?.substring(i+5):void 0}(r);throw(0,Mr.a)(r.error,r.error_description,r.suberror)?new Mr.CB(r.error||"",r.error_description,r.suberror,r.timestamp||"",r.trace_id||"",r.correlation_id||"",r.claims||"",v):new Ci(r.error||"",r.error_description,r.suberror,v)}}validateTokenResponse(r,i){if(r.error||r.error_description||r.suberror){const a=`Error(s): ${r.error_codes||F.YM.NOT_AVAILABLE} - Timestamp: ${r.timestamp||F.YM.NOT_AVAILABLE} - Description: ${r.error_description||F.YM.NOT_AVAILABLE} - Correlation ID: ${r.correlation_id||F.YM.NOT_AVAILABLE} - Trace ID: ${r.trace_id||F.YM.NOT_AVAILABLE}`,f=r.error_codes?.length?r.error_codes[0]:void 0,v=new Ci(r.error,a,r.suberror,f,r.status);if(i&&r.status&&r.status>=F.t3.SERVER_ERROR_RANGE_START&&r.status<=F.t3.SERVER_ERROR_RANGE_END)return void this.logger.warning(`executeTokenRequest:validateTokenResponse - AAD is currently unavailable and the access token is unable to be refreshed.\n${v}`);if(i&&r.status&&r.status>=F.t3.CLIENT_ERROR_RANGE_START&&r.status<=F.t3.CLIENT_ERROR_RANGE_END)return void this.logger.warning(`executeTokenRequest:validateTokenResponse - AAD is currently available but is unable to refresh the access token.\n${v}`);throw(0,Mr.a)(r.error,r.error_description,r.suberror)?new Mr.CB(r.error,r.error_description,r.suberror,r.timestamp||F.YM.EMPTY_STRING,r.trace_id||F.YM.EMPTY_STRING,r.correlation_id||F.YM.EMPTY_STRING,r.claims||F.YM.EMPTY_STRING,f):v}}handleServerTokenResponse(r,i,a,f,v,w,N,j,W){var ue=this;return(0,ne.A)(function*(){let Ke,rt;if(ue.performanceClient?.addQueueMeasurement(Me.MX.HandleServerTokenResponse,r.correlation_id),r.id_token){if(Ke=$e(r.id_token||F.YM.EMPTY_STRING,ue.cryptoObj.base64Decode),v&&v.nonce&&Ke.nonce!==v.nonce)throw(0,te.SB)(_e.aQ);if(f.maxAge||0===f.maxAge){const y=Ke.auth_time;if(!y)throw(0,te.SB)(_e.n3);le(y,f.maxAge)}}ue.homeAccountIdentifier=Kt.generateHomeAccountId(r.client_info||F.YM.EMPTY_STRING,i.authorityType,ue.logger,ue.cryptoObj,Ke),v&&v.state&&(rt=Pr.parseRequestState(ue.cryptoObj,v.state)),r.key_id=r.key_id||f.sshKid||void 0;const _t=ue.generateCacheRecord(r,i,a,f,Ke,w,v);let u;try{if(ue.persistencePlugin&&ue.serializableCache&&(ue.logger.verbose("Persistence enabled, calling beforeCacheAccess"),u=new ps(ue.serializableCache,!0),yield ue.persistencePlugin.beforeCacheAccess(u)),N&&!j&&_t.account){const y=_t.account.generateAccountKey();if(!ue.cacheStorage.getAccount(y,ue.logger))return ue.logger.warning("Account used to refresh tokens not in persistence, refreshed tokens will not be stored in the cache"),yield Ti.generateAuthenticationResult(ue.cryptoObj,i,_t,!1,f,Ke,rt,void 0,W)}yield ue.cacheStorage.saveCacheRecord(_t,f.storeInCache,f.correlationId)}finally{ue.persistencePlugin&&ue.serializableCache&&u&&(ue.logger.verbose("Persistence enabled, calling afterCacheAccess"),yield ue.persistencePlugin.afterCacheAccess(u))}return Ti.generateAuthenticationResult(ue.cryptoObj,i,_t,!1,f,Ke,rt,r,W)})()}generateCacheRecord(r,i,a,f,v,w,N){const j=i.getPreferredCache();if(!j)throw(0,te.SB)(_e.l3);const W=cn(v);let ue,Ke;r.id_token&&v&&(ue=ke(this.homeAccountIdentifier,j,r.id_token,this.clientId,W||""),Ke=Js(this.cacheStorage,i,this.homeAccountIdentifier,this.cryptoObj.base64Decode,v,r.client_info,j,W,N,void 0,this.logger));let rt=null;if(r.access_token){const y=r.scope?An.fromString(r.scope):new An(f.scopes||[]),l=("string"==typeof r.expires_in?parseInt(r.expires_in,10):r.expires_in)||0,h=("string"==typeof r.ext_expires_in?parseInt(r.ext_expires_in,10):r.ext_expires_in)||0,m=("string"==typeof r.refresh_in?parseInt(r.refresh_in,10):r.refresh_in)||void 0,k=a+l,H=k+h,pe=m&&m>0?a+m:void 0;rt=lt(this.homeAccountIdentifier,j,r.access_token,this.clientId,W||i.tenant||"",y.printScopes(),k,H,this.cryptoObj.base64Decode,pe,r.token_type,w,r.key_id,f.claims,f.requestedClaimsHash)}let _t=null;if(r.refresh_token){let y;r.refresh_token_expires_in&&(y=a+("string"==typeof r.refresh_token_expires_in?parseInt(r.refresh_token_expires_in,10):r.refresh_token_expires_in)),_t=Ht(this.homeAccountIdentifier,j,r.refresh_token,this.clientId,r.foci,w,y)}let u=null;return r.foci&&(u={clientId:this.clientId,environment:j,familyId:r.foci}),{account:Ke,idToken:ue,accessToken:rt,refreshToken:_t,appMetadata:u}}static generateAuthenticationResult(r,i,a,f,v,w,N,j,W){return(0,ne.A)(function*(){let _t,u,ue=F.YM.EMPTY_STRING,Ke=[],rt=null,y=F.YM.EMPTY_STRING;if(a.accessToken){if(a.accessToken.tokenType!==F.IO.POP||v.popKid)ue=a.accessToken.secret;
1else{const k=new Ms(r),{secret:H,keyId:pe}=a.accessToken;if(!pe)throw(0,te.SB)(_e.fo);ue=yield k.signPopToken(H,pe,v)}Ke=An.fromString(a.accessToken.target).asArray(),rt=new Date(1e3*Number(a.accessToken.expiresOn)),_t=new Date(1e3*Number(a.accessToken.extendedExpiresOn)),a.accessToken.refreshOn&&(u=new Date(1e3*Number(a.accessToken.refreshOn)))}a.appMetadata&&(y=a.appMetadata.familyId===F.hB?F.hB:"");const l=w?.oid||w?.sub||"",h=w?.tid||"";j?.spa_accountid&&a.account&&(a.account.nativeAccountId=j?.spa_accountid);const m=a.account?di(a.account.getAccountInfo(),void 0,w,a.idToken?.secret):null;return{authority:i.canonicalAuthority,uniqueId:l,tenantId:h,scopes:Ke,account:m,idToken:a?.idToken?.secret||"",idTokenClaims:w||{},accessToken:ue,fromCache:f,expiresOn:rt,extExpiresOn:_t,refreshOn:u,correlationId:v.correlationId,requestId:W||F.YM.EMPTY_STRING,familyId:y,tokenType:a.accessToken?.tokenType||F.YM.EMPTY_STRING,state:N?N.userRequestState:F.YM.EMPTY_STRING,cloudGraphHostName:a.account?.cloudGraphHostName||F.YM.EMPTY_STRING,msGraphHost:a.account?.msGraphHost||F.YM.EMPTY_STRING,code:j?.spa_code,fromNativeBroker:!1}})()}}function Js(b,r,i,a,f,v,w,N,j,W,ue){ue?.verbose("setCachedAccount called");const rt=b.getAccountKeys().find(h=>h.startsWith(i));let _t=null;rt&&(_t=b.getAccount(rt,ue));const u=_t||Kt.createAccount({homeAccountId:i,idTokenClaims:f,clientInfo:v,environment:w,cloudGraphHostName:j?.cloud_graph_host_name,msGraphHost:j?.msgraph_host,nativeAccountId:W},r,a),y=u.tenantProfiles||[],l=N||u.realm;if(l&&!y.find(h=>h.tenantId===l)){const h=Zt(i,u.localAccountId,l,f);y.push(h)}return u.tenantProfiles=y,u}function gs(b,r,i){return sc.apply(this,arguments)}function sc(){return(sc=(0,ne.A)(function*(b,r,i){return"string"==typeof b?b:b({clientId:r,tokenEndpoint:i})})).apply(this,arguments)}class ka extends Ko{constructor(r,i){super(r,i),this.includeRedirectUri=!0,this.oidcDefaultScopes=this.config.authOptions.authority.options.OIDCOptions?.defaultScopes}getAuthCodeUrl(r){var i=this;return(0,ne.A)(function*(){i.performanceClient?.addQueueMeasurement(Me.MX.GetAuthCodeUrl,r.correlationId);const a=yield dt(i.createAuthCodeUrlQueryString.bind(i),Me.MX.AuthClientCreateQueryString,i.logger,i.performanceClient,r.correlationId)(r);return Wt.H.appendQueryString(i.authority.authorizationEndpoint,a)})()}acquireToken(r,i){var a=this;return(0,ne.A)(function*(){if(a.performanceClient?.addQueueMeasurement(Me.MX.AuthClientAcquireToken,r.correlationId),!r.code)throw(0,te.SB)(_e.$P);const f=Q(),v=yield dt(a.executeTokenRequest.bind(a),Me.MX.AuthClientExecuteTokenRequest,a.logger,a.performanceClient,r.correlationId)(a.authority,r),w=v.headers?.[F.OK.X_MS_REQUEST_ID],N=new Ti(a.config.authOptions.clientId,a.cacheManager,a.cryptoUtils,a.logger,a.config.serializableCache,a.config.persistencePlugin,a.performanceClient);return N.validateTokenResponse(v.body),dt(N.handleServerTokenResponse.bind(N),Me.MX.HandleServerTokenResponse,a.logger,a.performanceClient,r.correlationId)(v.body,a.authority,f,r,i,void 0,void 0,void 0,w)})()}handleFragmentResponse(r,i){if(new Ti(this.config.authOptions.clientId,this.cacheManager,this.cryptoUtils,this.logger,null,null).validateServerAuthorizationCodeResponse(r,i),!r.code)throw(0,te.SB)(_e.Re);return r}getLogoutUri(r){if(!r)throw(0,Pt.aD)(vn.pi);const i=this.createLogoutUrlQueryString(r);return Wt.H.appendQueryString(this.authority.endSessionEndpoint,i)}executeTokenRequest(r,i){var a=this;return(0,ne.A)(function*(){a.performanceClient?.addQueueMeasurement(Me.MX.AuthClientExecuteTokenRequest,i.correlationId);const f=a.createTokenQueryParameters(i),v=Wt.H.appendQueryString(r.tokenEndpoint,f),w=yield dt(a.createTokenRequestBody.bind(a),Me.MX.AuthClientCreateTokenRequestBody,a.logger,a.performanceClient,i.correlationId)(i);let N;if(i.clientInfo)try{const ue=ni(i.clientInfo,a.cryptoUtils.base64Decode);N={credential:`${ue.uid}${F.LR.CLIENT_INFO_SEPARATOR}${ue.utid}`,type:"home_account_id"}}catch(ue){a.logger.verbose("Could not parse client info for CCS Header: "+ue)}const j=a.createTokenRequestHeaders(N||i.ccsCredential),W={clientId:i.tokenBodyParameters?.clientId||a.config.authOptions.clientId,authority:r.canonicalAuthority,scopes:i.scopes,claims:i.claims,authenticationScheme:i.authenticationScheme,resourceRequestMethod:i.resourceRequestMethod,resourceRequestUri:i.resourceRequestUri,shrClaims:i.shrClaims,sshKid:i.sshKid};return dt(a.executePostToTokenEndpoint.bind(a),Me.MX.AuthorizationCodeClientExecutePostToTokenEndpoint,a.logger,a.performanceClient,i.correlationId)(v,w,j,W,i.correlationId,Me.MX.AuthorizationCodeClientExecutePostToTokenEndpoint)})()}createTokenRequestBody(r){var i=this;return(0,ne.A)(function*(){i.performanceClient?.addQueueMeasurement(Me.MX.AuthClientCreateTokenRequestBody,r.correlationId);const a=new Rr(r.correlationId,i.performanceClient);if(a.addClientId(r.embeddedClientId||r.tokenBodyParameters?.[eo]||i.config.authOptions.clientId),i.includeRedirectUri?a.addRedirectUri(r.redirectUri):gr.validateRedirectUri(r.redirectUri),a.addScopes(r.scopes,!0,i.oidcDefaultScopes),a.addAuthorizationCode(r.code),a.addLibraryInfo(i.config.libraryInfo),a.addApplicationTelemetry(i.config.telemetry.application),a.addThrottling(),i.serverTelemetryManager&&!Do(i.config)&&a.addServerTelemetry(i.serverTelemetryManager),r.codeVerifier&&a.addCodeVerifier(r.codeVerifier),i.config.clientCredentials.clientSecret&&a.addClientSecret(i.config.clientCredentials.clientSecret),i.c
1onfig.clientCredentials.clientAssertion){const v=i.config.clientCredentials.clientAssertion;a.addClientAssertion(yield gs(v.assertion,i.config.authOptions.clientId,r.resourceRequestUri)),a.addClientAssertionType(v.assertionType)}if(a.addGrantType(F.$x.AUTHORIZATION_CODE_GRANT),a.addClientInfo(),r.authenticationScheme===F.IO.POP){const v=new Ms(i.cryptoUtils,i.performanceClient);let w;w=r.popKid?i.cryptoUtils.encodeKid(r.popKid):(yield dt(v.generateCnf.bind(v),Me.MX.PopTokenGenerateCnf,i.logger,i.performanceClient,r.correlationId)(r,i.logger)).reqCnfString,a.addPopToken(w)}else if(r.authenticationScheme===F.IO.SSH){if(!r.sshJwk)throw(0,Pt.aD)(vn.LX);a.addSshJwk(r.sshJwk)}let f;if((!Dr.$.isEmptyObj(r.claims)||i.config.authOptions.clientCapabilities&&i.config.authOptions.clientCapabilities.length>0)&&a.addClaims(r.claims,i.config.authOptions.clientCapabilities),r.clientInfo)try{const v=ni(r.clientInfo,i.cryptoUtils.base64Decode);f={credential:`${v.uid}${F.LR.CLIENT_INFO_SEPARATOR}${v.utid}`,type:"home_account_id"}}catch(v){i.logger.verbose("Could not parse client info for CCS Header: "+v)}else f=r.ccsCredential;if(i.config.systemOptions.preventCorsPreflight&&f)switch(f.type){case"home_account_id":try{const v=Yn(f.credential);a.addCcsOid(v)}catch(v){i.logger.verbose("Could not parse home account ID for CCS Header: "+v)}break;case"UPN":a.addCcsUpn(f.credential)}return r.embeddedClientId&&a.addBrokerParameters({brokerClientId:i.config.authOptions.clientId,brokerRedirectUri:i.config.authOptions.redirectUri}),r.tokenBodyParameters&&a.addExtraQueryParameters(r.tokenBodyParameters),r.enableSpaAuthorizationCode&&(!r.tokenBodyParameters||!r.tokenBodyParameters[Ra])&&a.addExtraQueryParameters({[Ra]:"1"}),a.createQueryString()})()}createAuthCodeUrlQueryString(r){var i=this;return(0,ne.A)(function*(){const a=r.correlationId||i.config.cryptoInterface.createNewGuid();i.performanceClient?.addQueueMeasurement(Me.MX.AuthClientCreateQueryString,a);const f=new Rr(a,i.performanceClient);f.addClientId(r.embeddedClientId||r.extraQueryParameters?.[eo]||i.config.authOptions.clientId);const v=[...r.scopes||[],...r.extraScopesToConsent||[]];if(f.addScopes(v,!0,i.oidcDefaultScopes),f.addRedirectUri(r.redirectUri),f.addCorrelationId(a),f.addResponseMode(r.responseMode),f.addResponseTypeCode(),f.addLibraryInfo(i.config.libraryInfo),Do(i.config)||f.addApplicationTelemetry(i.config.telemetry.application),f.addClientInfo(),r.codeChallenge&&r.codeChallengeMethod&&f.addCodeChallengeParams(r.codeChallenge,r.codeChallengeMethod),r.prompt&&f.addPrompt(r.prompt),r.domainHint&&f.addDomainHint(r.domainHint),r.prompt!==F._M.SELECT_ACCOUNT)if(r.sid&&r.prompt===F._M.NONE)i.logger.verbose("createAuthCodeUrlQueryString: Prompt is none, adding sid from request"),f.addSid(r.sid);else if(r.account){const w=i.extractAccountSid(r.account);let N=i.extractLoginHint(r.account);if(N&&r.domainHint&&(i.logger.warning('AuthorizationCodeClient.createAuthCodeUrlQueryString: "domainHint" param is set, skipping opaque "login_hint" claim. Please consider not passing domainHint'),N=null),N){i.logger.verbose("createAuthCodeUrlQueryString: login_hint claim present on account"),f.addLoginHint(N);try{const j=Yn(r.account.homeAccountId);f.addCcsOid(j)}catch{i.logger.verbose("createAuthCodeUrlQueryString: Could not parse home account ID for CCS Header")}}else if(w&&r.prompt===F._M.NONE){i.logger.verbose("createAuthCodeUrlQueryString: Prompt is none, adding sid from account"),f.addSid(w);try{const j=Yn(r.account.homeAccountId);f.addCcsOid(j)}catch{i.logger.verbose("createAuthCodeUrlQueryString: Could not parse home account ID for CCS Header")}}else if(r.loginHint)i.logger.verbose("createAuthCodeUrlQueryString: Adding login_hint from request"),f.addLoginHint(r.loginHint),f.addCcsUpn(r.loginHint);else if(r.account.username){i.logger.verbose("createAuthCodeUrlQueryString: Adding login_hint from account"),f.addLoginHint(r.account.username);try{const j=Yn(r.account.homeAccountId);f.addCcsOid(j)}catch{i.logger.verbose("createAuthCodeUrlQueryString: Could not parse home account ID for CCS Header")}}}else r.loginHint&&(i.logger.verbose("createAuthCodeUrlQueryString: No account, adding login_hint from request"),f.addLoginHint(r.loginHint),f.addCcsUpn(r.loginHint));else i.logger.verbose("createAuthCodeUrlQueryString: Prompt is select_account, ignoring account hints");if(r.nonce&&f.addNonce(r.nonce),r.state&&f.addState(r.state),(r.claims||i.c
1onfig.authOptions.clientCapabilities&&i.config.authOptions.clientCapabilities.length>0)&&f.addClaims(r.claims,i.config.authOptions.clientCapabilities),r.embeddedClientId&&f.addBrokerParameters({brokerClientId:i.config.authOptions.clientId,brokerRedirectUri:i.config.authOptions.redirectUri}),i.addExtraQueryParams(r,f),r.nativeBroker&&(f.addNativeBroker(),r.authenticationScheme===F.IO.POP)){const w=new Ms(i.cryptoUtils);let N;N=r.popKid?i.cryptoUtils.encodeKid(r.popKid):(yield dt(w.generateCnf.bind(w),Me.MX.PopTokenGenerateCnf,i.logger,i.performanceClient,r.correlationId)(r,i.logger)).reqCnfString,f.addPopToken(N)}return f.createQueryString()})()}createLogoutUrlQueryString(r){const i=new Rr(r.correlationId,this.performanceClient);return r.postLogoutRedirectUri&&i.addPostLogoutRedirectUri(r.postLogoutRedirectUri),r.correlationId&&i.addCorrelationId(r.correlationId),r.idTokenHint&&i.addIdTokenHint(r.idTokenHint),r.state&&i.addState(r.state),r.logoutHint&&i.addLogoutHint(r.logoutHint),this.addExtraQueryParams(r,i),i.createQueryString()}addExtraQueryParams(r,i){!(r.extraQueryParameters&&r.extraQueryParameters.hasOwnProperty("instance_aware"))&&this.config.authOptions.instanceAware&&(r.extraQueryParameters=r.extraQueryParameters||{},r.extraQueryParameters.instance_aware="true"),r.extraQueryParameters&&i.addExtraQueryParameters(r.extraQueryParameters)}extractAccountSid(r){return r.idTokenClaims?.sid||null}extractLoginHint(r){return r.idTokenClaims?.login_hint||null}}class Pi{constructor(r,i){this.cacheOutcome=F.Rv.NOT_APPLICABLE,this.cacheManager=i,this.apiId=r.apiId,this.correlationId=r.correlationId,this.wrapperSKU=r.wrapperSKU||F.YM.EMPTY_STRING,this.wrapperVer=r.wrapperVer||F.YM.EMPTY_STRING,this.telemetryCacheKey=F.gT.CACHE_KEY+F.LR.CACHE_KEY_SEPARATOR+r.clientId}generateCurrentRequestHeaderValue(){const r=`${this.apiId}${F.gT.VALUE_SEPARATOR}${this.cacheOutcome}`,i=[this.wrapperSKU,this.wrapperVer],a=this.getNativeBrokerErrorCode();a?.length&&i.push(`broker_error=${a}`);const f=i.join(F.gT.VALUE_SEPARATOR),w=[r,this.getRegionDiscoveryFields()].join(F.gT.VALUE_SEPARATOR);return[F.gT.SCHEMA_VERSION,w,f].join(F.gT.CATEGORY_SEPARATOR)}generateLastRequestHeaderValue(){const r=this.getLastRequests(),i=Pi.maxErrorsToSend(r),a=r.failedRequests.slice(0,2*i).join(F.gT.VALUE_SEPARATOR),f=r.errors.slice(0,i).join(F.gT.VALUE_SEPARATOR),v=r.errors.length,N=[v,i<v?F.gT.OVERFLOW_TRUE:F.gT.OVERFLOW_FALSE].join(F.gT.VALUE_SEPARATOR);return[F.gT.SCHEMA_VERSION,r.cacheHits,a,f,N].join(F.gT.CATEGORY_SEPARATOR)}cacheFailedRequest(r){const i=this.getLastRequests();i.errors.length>=F.gT.MAX_CACHED_ERRORS&&(i.failedRequests.shift(),i.failedRequests.shift(),i.errors.shift()),i.failedRequests.push(this.apiId,this.correlationId),r instanceof Error&&r&&r.toString()?i.errors.push(r instanceof Zn.lR?r.subError?r.subError:r.errorCode?r.errorCode:r.toString():r.toString()):i.errors.push(F.gT.UNKNOWN_ERROR),this.cacheManager.setServerTelemetry(this.telemetryCacheKey,i)}incrementCacheHits(){const r=this.getLastRequests();return r.cacheHits+=1,this.cacheManager.setServerTelemetry(this.telemetryCacheKey,r),r.cacheHits}getLastRequests(){return this.cacheManager.getServerTelemetry(this.telemetryCacheKey)||{failedRequests:[],errors:[],cacheHits:0}}clearTelemetryCache(){const r=this.getLastRequests(),i=Pi.maxErrorsToSend(r);if(i===r.errors.length)this.cacheManager.removeItem(this.telemetryCacheKey);else{const f={failedRequests:r.failedRequests.slice(2*i),errors:r.errors.slice(i),cacheHits:0};this.cacheManager.setServerTelemetry(this.telemetryCacheKey,f)}}static maxErrorsToSend(r){let i,a=0,f=0;const v=r.errors.length;for(i=0;i<v;i++){const N=r.failedRequests[2*i+1]||F.YM.EMPTY_STRING,j=r.errors[i]||F.YM.EMPTY_STRING;if(f+=(r.failedRequests[2*i]||F.YM.EMPTY_STRING).toString().length+N.toString().length+j.length+3,!(f<F.gT.MAX_LAST_HEADER_BYTES))break;a+=1}return a}getRegionDiscoveryFields(){const r=[];return r.push(this.regionUsed||F.YM.EMPTY_STRING),r.push(this.regionSource||F.YM.EMPTY_STRING),r.push(this.regionOutcome||F.YM.EMPTY_STRING),r.join(",")}updateRegionDiscoveryMetadata(r){this.regionUsed=r.region_used,this.regionSource=r.region_source,this.regionOutcome=r.regi
1on_outcome}setCacheOutcome(r){this.cacheOutcome=r}setNativeBrokerErrorCode(r){const i=this.getLastRequests();i.nativeBrokerErrorCode=r,this.cacheManager.setServerTelemetry(this.telemetryCacheKey,i)}getNativeBrokerErrorCode(){return this.getLastRequests().nativeBrokerErrorCode}clearNativeBrokerErrorCode(){const r=this.getLastRequests();delete r.nativeBrokerErrorCode,this.cacheManager.setServerTelemetry(this.telemetryCacheKey,r)}static makeExtraSkuString(r){return function ta(b){const{skus:r,libraryName:i,libraryVersion:a,extensionName:f,extensionVersion:v}=b,w=new Map([[0,[i,a]],[2,[f,v]]]);let N=[];if(r?.length){if(N=r.split(","),N.length<4)return r}else N=Array.from({length:4},()=>"|");return w.forEach((j,W)=>{2===j.length&&j[0]?.length&&j[1]?.length&&function ac(b){const{skuArr:r,index:i,skuName:a,skuVersion:f}=b;i>=r.length||(r[i]=[a,f].join("|"))}({skuArr:N,index:W,skuName:j[0],skuVersion:j[1]})}),N.join(",")}(r)}}class cc{constructor(r,i,a,f,v,w,N,j,W){this.config=r,this.browserStorage=i,this.browserCrypto=a,this.networkClient=this.config.system.networkClient,this.eventHandler=v,this.navigationClient=w,this.nativeMessageHandler=j,this.correlationId=W||(0,Bt.Oy)(),this.logger=f.clone(Ae.Q1.MSAL_SKU,Wn,this.correlationId),this.performanceClient=N}clearCacheOnLogout(r){var i=this;return(0,ne.A)(function*(){if(r){Kt.accountInfoIsEqual(r,i.browserStorage.getActiveAccount(),!1)&&(i.logger.verbose("Setting active account to null"),i.browserStorage.setActiveAccount(null));try{yield i.browserStorage.removeAccount(Kt.generateAccountCacheKey(r)),i.logger.verbose("Cleared cache items belonging to the account provided in the logout request.")}catch{i.logger.error("Account provided in logout request was not found. Local cache unchanged.")}}else try{i.logger.verbose("No account provided in logout request, clearing all cache items.",i.correlationId),yield i.browserStorage.clear(),yield i.browserCrypto.clearKeystore()}catch{i.logger.error("Attempted to clear all MSAL cache items and failed. Local cache unchanged.")}})()}getRedirectUri(r){return this.logger.verbose("getRedirectUri called"),Wt.H.getAbsoluteUrl(r||this.config.auth.redirectUri,(0,it.Uu)())}initializeServerTelemetryManager(r,i){this.logger.verbose("initializeServerTelemetryManager called");const a={clientId:this.config.auth.clientId,correlationId:this.correlationId,apiId:r,forceRefresh:i||!1,wrapperSKU:this.browserStorage.getWrapperMetadata()[0],wrapperVer:this.browserStorage.getWrapperMetadata()[1]};return new Pi(a,this.browserStorage)}getDiscoveredAuthority(r){var i=this;return(0,ne.A)(function*(){const{account:a}=r,f=r.requestExtraQueryParameters&&r.requestExtraQueryParameters.hasOwnProperty("instance_aware")?r.requestExtraQueryParameters.instance_aware:void 0;i.performanceClient.addQueueMeasurement(Me.MX.StandardInteractionClientGetDiscoveredAuthority,i.correlationId);const v={protocolMode:i.config.auth.protocolMode,OIDCOptions:i.config.auth.OIDCOptions,knownAuthorities:i.config.auth.knownAuthorities,cloudDiscoveryMetadata:i.config.auth.cloudDiscoveryMetadata,authorityMetadata:i.config.auth.authorityMetadata,skipAuthorityMetadataCache:i.config.auth.skipAuthorityMetadataCache},w=r.requestAuthority||i.config.auth.authority,j=a&&(f?.length?"true"===f:i.config.auth.instanceAware)?i.config.auth.authority.replace(Wt.H.getDomainFromUrl(w),a.environment):w,W=kr.generateAuthority(j,r.requestAzureCloudOptions||i.config.auth.azureCloudOptions),ue=yield dt(Ro,Me.MX.AuthorityFactoryCreateDiscoveredInstance,i.logger,i.performanceClient,i.correlationId)(W,i.config.system.networkClient,i.browserStorage,v,i.logger,i.correlationId,i.performanceClient);if(a&&!ue.isAlias(a.environment))throw(0,Pt.aD)(vn.K3);return ue})()}}const na=32;function Pa(b,r,i){return ra.apply(this,arguments)}function ra(){return(ra=(0,ne.A)(function*(b,r,i){b.addQueueMeasurement(Me.MX.GeneratePkceCodes,i);const a=ri(lc,Me.MX.GenerateCodeVerifier,r,b,i)(b,r,i);return{verifier:a,challenge:yield dt(ms,Me.MX.GenerateCodeChallengeFromVerifier,r,b,i)(a,b,r,i)}})).apply(this,arguments)}function lc(b,r,i){try{const a=new Uint8Array(na);return ri(Bt.UY,Me.MX.GetRandomValues,r,b,i)(a),(0,Pn.dB)(a)}catch{throw(0,K.bD)(ee.p5)}}function ms(b,r,i,a){return Lr.apply(this,arguments)}function Lr(){return(Lr=(0,ne.A)(function*(b,r,i,a){r.addQueueMeasurement(Me.MX.GenerateCodeChallengeFromVerifier,a);try{const f=yield dt(Bt.sI,Me.MX.Sha256Digest,i,r,a)(b,r,a);return(0,Pn.dB)(new Uint8Array(f))}catch{throw(0,K.bD)(ee.p5)}})).apply(this,arguments)}function Wo(b,r,i,a){return Rs.apply(this,arguments)}function Rs(){return(Rs=(0,ne.A)(function*(b,r,i,a){i.addQueueMeasurement(Me.MX.InitializeBaseRequest,b.correlationId);const f=b.authority||r.auth.authority,v=[...b&&b.scopes||[]],w={...b,correlationId:b.correlationId,authority:f,scopes:v};
1if(w.authenticationScheme){if(w.authenticationScheme===F.IO.SSH){if(!b.sshJwk)throw(0,Pt.aD)(vn.LX);if(!b.sshKid)throw(0,Pt.aD)(vn.rB)}a.verbose(`Authentication Scheme set to "${w.authenticationScheme}" as configured in Auth request`)}else w.authenticationScheme=F.IO.BEARER,a.verbose('Authentication Scheme wasn\'t explicitly set in request, defaulting to "Bearer" request');return r.cache.claimsBasedCachingEnabled&&b.claims&&!Dr.$.isEmptyObj(b.claims)&&(w.requestedClaimsHash=yield(0,Bt.YZ)(b.claims)),w})).apply(this,arguments)}function pi(b,r,i,a,f){return uc.apply(this,arguments)}function uc(){return(uc=(0,ne.A)(function*(b,r,i,a,f){a.addQueueMeasurement(Me.MX.InitializeSilentRequest,b.correlationId);const v=yield dt(Wo,Me.MX.InitializeBaseRequest,f,a,b.correlationId)(b,i,a,f);return{...b,...v,account:r,forceRefresh:b.forceRefresh||!1}})).apply(this,arguments)}class zo extends cc{initializeAuthorizationCodeRequest(r){var i=this;return(0,ne.A)(function*(){i.performanceClient.addQueueMeasurement(Me.MX.StandardInteractionClientInitializeAuthorizationCodeRequest,i.correlationId);const a=yield dt(Pa,Me.MX.GeneratePkceCodes,i.logger,i.performanceClient,i.correlationId)(i.performanceClient,i.logger,i.correlationId),f={...r,redirectUri:r.redirectUri,code:F.YM.EMPTY_STRING,codeVerifier:a.verifier};return r.codeChallenge=a.challenge,r.codeChallengeMethod=F.YM.S256_CODE_CHALLENGE_METHOD,f})()}initializeLogoutRequest(r){this.logger.verbose("initializeLogoutRequest called",r?.correlationId);const i={correlationId:this.correlationId||(0,Bt.Oy)(),...r};if(r)if(r.logoutHint)this.logger.verbose("logoutHint has already been set in logoutRequest");else if(r.account){const a=this.getLogoutHintFromIdTokenClaims(r.account);a&&(this.logger.verbose("Setting logoutHint to login_hint ID Token Claim value for the account provided"),i.logoutHint=a)}else this.logger.verbose("logoutHint was not set and account was not passed into logout request, logoutHint will not be set");else this.logger.verbose("logoutHint will not be set since no logout request was configured");return r&&null===r.postLogoutRedirectUri?this.logger.verbose("postLogoutRedirectUri passed as null, not setting post logout redirect uri",i.correlationId):r&&r.postLogoutRedirectUri?(this.logger.verbose("Setting postLogoutRedirectUri to uri set on logout request",i.correlationId),i.postLogoutRedirectUri=Wt.H.getAbsoluteUrl(r.postLogoutRedirectUri,(0,it.Uu)())):null===this.config.auth.postLogoutRedirectUri?this.logger.verbose("postLogoutRedirectUri configured as null and no uri set on request, not passing post logout redirect",i.correlationId):this.config.auth.postLogoutRedirectUri?(this.logger.verbose("Setting postLogoutRedirectUri to configured uri",i.correlationId),i.postLogoutRedirectUri=Wt.H.getAbsoluteUrl(this.config.auth.postLogoutRedirectUri,(0,it.Uu)())):(this.logger.verbose("Setting postLogoutRedirectUri to current page",i.correlationId),i.postLogoutRedirectUri=Wt.H.getAbsoluteUrl((0,it.Uu)(),(0,it.Uu)())),i}getLogoutHintFromIdTokenClaims(r){const i=r.idTokenClaims;if(i){if(i.login_hint)return i.login_hint;this.logger.verbose("The ID Token Claims tied to the provided account do not contain a login_hint claim, logoutHint will not be added to logout request")}else this.logger.verbose("The provided account does not contain ID Token Claims, logoutHint will not be added to logout request");return null}createAuthCodeClient(r){var i=this;return(0,ne.A)(function*(){i.performanceClient.addQueueMeasurement(Me.MX.StandardInteractionClientCreateAuthCodeClient,i.correlationId);const a=yield dt(i.getClientConfiguration.bind(i),Me.MX.StandardInteractionClientGetClientConfiguration,i.logger,i.performanceClient,i.correlationId)(r);return new ka(a,i.performanceClient)})()}getClientConfiguration(r){var i=this;return(0,ne.A)(function*(){const{serverTelemetryManager:a,requestAuthority:f,requestAzureCloudOptions:v,requestExtraQueryParameters:w,account:N}=r;i.performanceClient.addQueueMeasurement(Me.MX.StandardInteractionClientGetClientConfiguration,i.correlationId);const j=yield dt(i.getDiscoveredAuthority.bind(i),Me.MX.StandardInteractionClientGetDiscoveredAuthority,i.logger,i.performanceClient,i.correlationId)({requestAuthority:f,requestAzureCloudOptions:v,requestExtraQueryParameters:w,account:N}),W=i.config.system.loggerOptions;return{authOptions:{clientId:i.config.auth.clientId,authority:j,clientCapabilities:i.config.auth.clientCapabilities,redirectUri:i.config.auth.redirectUri},systemOptions:{tokenRenewalOffsetSeconds:i.config.system.tokenRenewalOffsetSeconds,preventCorsPreflight:!0},loggerOptions:{loggerCallback:W.loggerCallback,piiLoggingEnabled:W.piiLoggingEnabled,logLevel:W.logLevel,correlationId:i.correlationId},cacheOptions:{claimsBasedCachingEnabled:i.config.cache.claimsBasedCachingEnabled},cryptoInterface:i.browserCrypto,networkInterface:i.networkClient,storageInterface:i.browserStorage,serverTelemetryManager:a,library
1Info:{sku:Ae.Q1.MSAL_SKU,version:Wn,cpu:F.YM.EMPTY_STRING,os:F.YM.EMPTY_STRING},telemetry:i.config.telemetry}})()}initializeAuthorizationRequest(r,i){var a=this;return(0,ne.A)(function*(){a.performanceClient.addQueueMeasurement(Me.MX.StandardInteractionClientInitializeAuthorizationRequest,a.correlationId);const f=a.getRedirectUri(r.redirectUri),w=Pr.setRequestState(a.browserCrypto,r&&r.state||F.YM.EMPTY_STRING,{interactionType:i}),j={...yield dt(Wo,Me.MX.InitializeBaseRequest,a.logger,a.performanceClient,a.correlationId)({...r,correlationId:a.correlationId},a.config,a.performanceClient,a.logger),redirectUri:f,state:w,nonce:r.nonce||(0,Bt.Oy)(),responseMode:a.config.auth.OIDCOptions.serverResponseType};if(r.loginHint||r.sid)return j;const W=r.account||a.browserStorage.getActiveAccount();if(W&&(a.logger.verbose("Setting validated request account",a.correlationId),a.logger.verbosePii(`Setting validated request account: ${W.homeAccountId}`,a.correlationId),j.account=W),!j.loginHint&&!W){const ue=a.browserStorage.getLegacyLoginHint();ue&&(j.loginHint=ue)}return j})()}}var ci=I(6213);const li="user_switch",R={[li]:"User attempted to switch accounts in the native broker, which is not allowed. All new accounts must sign-in through the standard web flow first, please try again."};class x extends Zn.lR{constructor(r,i,a){super(r,i),Object.setPrototypeOf(this,x.prototype),this.name="NativeAuthError",this.ext=a}}function re(b){return!!(b.ext&&b.ext.status&&("PERSISTENT_ERROR"===b.ext.status||"DISABLED"===b.ext.status)||b.ext&&b.ext.error&&-2147186943===b.ext.error)||"ContentError"===b.errorCode}function je(b,r,i){if(i&&i.status)switch(i.status){case"ACCOUNT_UNAVAILABLE":return(0,Mr.IE)(zi.B);case"USER_INTERACTION_REQUIRED":return new Mr.CB(b,r);case"USER_CANCEL":return(0,K.bD)(ee.fN);case"NO_NETWORK":return(0,K.bD)(ee.l7)}return new x(b,R[b]||r,i)}class Dt extends Ko{constructor(r,i){super(r,i)}acquireToken(r){var i=this;return(0,ne.A)(function*(){i.performanceClient?.addQueueMeasurement(Me.MX.RefreshTokenClientAcquireToken,r.correlationId);const a=Q(),f=yield dt(i.executeTokenRequest.bind(i),Me.MX.RefreshTokenClientExecuteTokenRequest,i.logger,i.performanceClient,r.correlationId)(r,i.authority),v=f.headers?.[F.OK.X_MS_REQUEST_ID],w=new Ti(i.config.authOptions.clientId,i.cacheManager,i.cryptoUtils,i.logger,i.config.serializableCache,i.config.persistencePlugin);return w.validateTokenResponse(f.body),dt(w.handleServerTokenResponse.bind(w),Me.MX.HandleServerTokenResponse,i.logger,i.performanceClient,r.correlationId)(f.body,i.authority,a,r,void 0,void 0,!0,r.forceCache,v)})()}acquireTokenByRefreshToken(r){var i=this;return(0,ne.A)(function*(){if(!r)throw(0,Pt.aD)(vn.Ub);if(i.performanceClient?.addQueueMeasurement(Me.MX.RefreshTokenClientAcquireTokenByRefreshToken,r.correlationId),!r.account)throw(0,te.SB)(_e.C2);if(i.cacheManager.isAppMetadataFOCI(r.account.environment))try{return yield dt(i.acquireTokenWithCachedRefreshToken.bind(i),Me.MX.RefreshTokenClientAcquireTokenWithCachedRefreshToken,i.logger,i.performanceClient,r.correlationId)(r,!0)}catch(f){if(f instanceof Mr.CB&&f.errorCode===zi.oF||f instanceof Ci&&f.errorCode===F.I.INVALID_GRANT_ERROR&&f.subError===F.I.CLIENT_MISMATCH_ERROR)return dt(i.acquireTokenWithCachedRefreshToken.bind(i),Me.MX.RefreshTokenClientAcquireTokenWithCachedRefreshToken,i.logger,i.performanceClient,r.correlationId)(r,!1);throw f}return dt(i.acquireTokenWithCachedRefreshToken.bind(i),Me.MX.RefreshTokenClientAcquireTokenWithCachedRefreshToken,i.logger,i.performanceClient,r.correlationId)(r,!1)})()}acquireTokenWithCachedRefreshToken(r,i){var a=this;return(0,ne.A)(function*(){a.performanceClient?.addQueueMeasurement(Me.MX.RefreshTokenClientAcquireTokenWithCachedRefreshToken,r.correlationId);const f=ri(a.cacheManager.getRefreshToken.bind(a.cacheManager),Me.MX.CacheManagerGetRefreshToken,a.logger,a.performanceClient,r.correlationId)(r.account,i,void 0,a.performanceClient,r.correlationId);if(!f)throw(0,Mr.IE)(zi.oF);if(f.expiresOn&&ae(f.expiresOn,r.refreshTokenExpirationOffsetSeconds||300))throw(0,Mr.IE)(zi.AG);const v={...r,refreshToken:f.secret,authenticationScheme:r.authenticationScheme||F.IO.BEARER,ccsCredential:{credential:r.account.homeAccountId,type:"home_account_id"}};try{return yield dt(a.acquireToken.bind(a),Me.MX.RefreshTokenClientAcquireToken,a.logger,a.performanceClient,r.correlationId)(v)}catch(w){if(w instanceof Mr.CB&&w.subError===zi.j9){a.logger.verbose("acquireTokenWithRefreshToken: bad refresh token, removing from cache");const N=Ue(f);a.cacheManager.removeRefreshToken(N)}throw w}})()}executeTokenRequest(r,i){var a=this;return(0,ne.A)(function*(){a.performanceClient?.addQueueMeasurement(Me.MX.RefreshTokenClientExecuteTokenRequest,r.correlationId);const f=a.createTokenQueryParameters(r),v=Wt.H.appendQueryString(i.tokenEndpoint,f),w=yield dt(a.createTokenRequestBody.bind(a),Me.MX.RefreshTokenClientCreateTokenRequestBody,a.logger,a.performanceClient,r.correlationId)(r),N=a.createTokenRequestHeaders(r.ccsCredential),j={clientId:r.tokenBodyParameters?.clientId||a.config.authOptions.clientId,authority:i.canonicalAuthority,scopes:r.scopes,claims:r.claims,authenticationScheme:r.authenticationScheme,resourceRequestMethod:r.resourceRequestMethod,resourceRequestUri:r.resourceRequestUri,shrClaims:r.shrClaims,sshKid:r.sshKid};return dt(a.executePostToTokenEndpoint.bind(a),Me.MX.RefreshTokenClientExecutePostToTokenEndpoint,a.logger,a.performanceClient,r.correlationId)(v,w,N,j,r.correlationId,Me.MX.RefreshTokenClientExecutePostToTokenEndpoint)})()}createTokenRequestBody(r){var i=this;return(0,ne.A)(function*(){i.performanceClient?.addQueueMeasurement(Me.MX.RefreshTokenClientCreateTokenRequestBody,r.correlationId);const f=new Rr(r.correlationId,i.performanceClient);if(f.addClientId(r.embeddedClientId||r.tokenBodyParameters?.[eo]||i.config.authOptions.clientId),r.redirectUri&&f.addRedirectUri(r.redirectUri),f.addScopes(r.scopes,!0,i.config.authOptions.authority.options.OIDCOptions?.defaultScopes),f.addGrantType(F.$x.REFRESH_TOKEN_GRANT),f.addClientInfo(),f.addLibraryInfo(i.config.libraryInfo),f.addApplicationTelemetry(i.config.telemetry.application),f.addThrottling(),i.serverTelemetryManager&&!Do(i.config)&&f.addServerTelemetry(i.serverTelemetryManager),f.addRefreshToken(r.refreshToken),i.config.clientCredentials.clientSecret&&f.addClientSecret(i.config.clientCredentials.clientSecret),i.c
1onfig.clientCredentials.clientAssertion){const v=i.config.clientCredentials.clientAssertion;f.addClientAssertion(yield gs(v.assertion,i.config.authOptions.clientId,r.resourceRequestUri)),f.addClientAssertionType(v.assertionType)}if(r.authenticationScheme===F.IO.POP){const v=new Ms(i.cryptoUtils,i.performanceClient);let w;w=r.popKid?i.cryptoUtils.encodeKid(r.popKid):(yield dt(v.generateCnf.bind(v),Me.MX.PopTokenGenerateCnf,i.logger,i.performanceClient,r.correlationId)(r,i.logger)).reqCnfString,f.addPopToken(w)}else if(r.authenticationScheme===F.IO.SSH){if(!r.sshJwk)throw(0,Pt.aD)(vn.LX);f.addSshJwk(r.sshJwk)}if((!Dr.$.isEmptyObj(r.claims)||i.config.authOptions.clientCapabilities&&i.config.authOptions.clientCapabilities.length>0)&&f.addClaims(r.claims,i.config.authOptions.clientCapabilities),i.config.systemOptions.preventCorsPreflight&&r.ccsCredential)switch(r.ccsCredential.type){case"home_account_id":try{const v=Yn(r.ccsCredential.credential);f.addCcsOid(v)}catch(v){i.logger.verbose("Could not parse home account ID for CCS Header: "+v)}break;case"UPN":f.addCcsUpn(r.ccsCredential.credential)}return r.embeddedClientId&&f.addBrokerParameters({brokerClientId:i.config.authOptions.clientId,brokerRedirectUri:i.config.authOptions.redirectUri}),r.tokenBodyParameters&&f.addExtraQueryParameters(r.tokenBodyParameters),f.createQueryString()})()}}class cr extends Ko{constructor(r,i){super(r,i)}acquireToken(r){var i=this;return(0,ne.A)(function*(){try{const[a,f]=yield i.acquireCachedToken({...r,scopes:r.scopes?.length?r.scopes:[...F.aZ]});return f===F.Rv.PROACTIVELY_REFRESHED&&(i.logger.info("SilentFlowClient:acquireCachedToken - Cached access token's refreshOn property has been exceeded'. It's not expired, but must be refreshed."),new Dt(i.config,i.performanceClient).acquireTokenByRefreshToken(r).catch(()=>{})),a}catch(a){if(a instanceof te.eB&&a.errorCode===_e.wb)return new Dt(i.config,i.performanceClient).acquireTokenByRefreshToken(r);throw a}})()}acquireCachedToken(r){var i=this;return(0,ne.A)(function*(){i.performanceClient?.addQueueMeasurement(Me.MX.SilentFlowClientAcquireCachedToken,r.correlationId);let a=F.Rv.NOT_APPLICABLE;if(r.forceRefresh||!i.config.cacheOptions.claimsBasedCachingEnabled&&!Dr.$.isEmptyObj(r.claims))throw i.setCacheOutcome(F.Rv.FORCE_REFRESH_OR_CLAIMS,r.correlationId),(0,te.SB)(_e.wb);if(!r.account)throw(0,te.SB)(_e.C2);const f=r.account.tenantId||function zs(b){const a=new Wt.H(b).getUrlComponents().PathSegments.slice(-1)[0]?.toLowerCase();switch(a){case F.v2.COMMON:case F.v2.ORGANIZATIONS:case F.v2.CONSUMERS:return;default:return a}}(r.authority),v=i.cacheManager.getTokenKeys(),w=i.cacheManager.getAccessToken(r.account,r,v,f,i.performanceClient,r.correlationId);if(!w)throw i.setCacheOutcome(F.Rv.NO_CACHED_ACCESS_TOKEN,r.correlationId),(0,te.SB)(_e.wb);if(function Z(b){return Number(b)>Q()}(w.cachedAt)||ae(w.expiresOn,i.config.systemOptions.tokenRenewalOffsetSeconds))throw i.setCacheOutcome(F.Rv.CACHED_ACCESS_TOKEN_EXPIRED,r.correlationId),(0,te.SB)(_e.wb);w.refreshOn&&ae(w.refreshOn,0)&&(a=F.Rv.PROACTIVELY_REFRESHED);const N=r.authority||i.authority.getPreferredCache(),j={account:i.cacheManager.readAccountFromCache(r.account),accessToken:w,idToken:i.cacheManager.getIdToken(r.account,v,f,i.performanceClient,r.correlationId),refreshToken:null,appMetadata:i.cacheManager.readAppMetadataFromCache(N)};return i.setCacheOutcome(a,r.correlationId),i.config.serverTelemetryManager&&i.config.serverTelemetryManager.incrementCacheHits(),[yield dt(i.generateResultFromCacheRecord.bind(i),Me.MX.SilentFlowClientGenerateResultFromCacheRecord,i.logger,i.performanceClient,r.correlationId)(j,r),a]})()}setCacheOutcome(r,i){this.serverTelemetryManager?.setCacheOutcome(r),this.performanceClient?.addFields({cacheOutcome:r},i),r!==F.Rv.NOT_APPLICABLE&&this.logger.info(`Token refresh is required due to cache outcome: ${r}`)}generateResultFromCacheRecord(r,i){var a=this;return(0,ne.A)(function*(){let f;if(a.performanceClient?.addQueueMeasurement(Me.MX.SilentFlowClientGenerateResultFromCacheRecord,i.correlationId),r.idToken&&(f=$e(r.idToken.secret,a.config.cryptoInterface.base64Decode)),i.maxAge||0===i.maxAge){const v=f?.auth_time;if(!v)throw(0,te.SB)(_e.n3);le(v,i.maxAge)}return Ti.generateAuthenticationResult(a.cryptoUtils,a.authority,r,!0,i,f)})()}}class qn extends zo{acquireToken(r){var i=this;return(0,ne.A)(function*(){i.performanceClient.addQueueMeasurement(Me.MX.SilentCacheClientAcquireToken,r.correlationId);const a=i.initializeServerTelemetryManager(Ae.sA.acquireTokenSilent_silentFlow),f=yield dt(i.getClientConfiguration.bind(i),Me.MX.StandardInteractionClientGetClientConfiguration,i.logger,i.performanceClient,i.correlationId)({serverTelemetryManager:a,requestAuthority:r.authority,requestAzureCloudOptions:r.azureCloudOptions,account:r.account}),v=new cr(f,i.performanceClient);i.logger.verbose("Silent auth client created");try{const N=(yield dt(v.acquireCachedToken.bind(v),Me.MX.SilentFlowClientAcquireCachedToken,i.logger,i.performanceClient,r.correlationId)(r))[0];return i.performanceClient.addFields({fromCache:!0},r.correlationId),N}catch(w){throw w instanceof K.jT&&w.errorCode===ee.e0&&i.logger.verbose("Signing keypair for bound access token not found. Refreshing bound access token and generating a new crypto keypair."),w}})()}logout(r){this.logger.verbose("logoutRedirect called");
1const i=this.initializeLogoutRequest(r);return this.clearCacheOnLogout(i?.account)}}class jn extends cc{constructor(r,i,a,f,v,w,N,j,W,ue,Ke,rt){super(r,i,a,f,v,w,j,W,rt),this.apiId=N,this.accountId=ue,this.nativeMessageHandler=W,this.nativeStorageManager=Ke,this.silentCacheClient=new qn(r,this.nativeStorageManager,a,f,v,w,j,W,rt),this.serverTelemetryManager=this.initializeServerTelemetryManager(this.apiId);const _t=this.nativeMessageHandler.getExtensionId()===Ae.JD.PREFERRED_EXTENSION_ID?"chrome":this.nativeMessageHandler.getExtensionId()?.length?"unknown":void 0;this.skus=Pi.makeExtraSkuString({libraryName:Ae.Q1.MSAL_SKU,libraryVersion:Wn,extensionName:_t,extensionVersion:this.nativeMessageHandler.getExtensionVersion()})}addRequestSKUs(r){r.extraParameters={...r.extraParameters,"x-client-xtra-sku":this.skus}}acquireToken(r){var i=this;return(0,ne.A)(function*(){i.performanceClient.addQueueMeasurement(Me.MX.NativeInteractionClientAcquireToken,r.correlationId),i.logger.trace("NativeInteractionClient - acquireToken called.");const a=i.performanceClient.startMeasurement(Me.MX.NativeInteractionClientAcquireToken,r.correlationId),f=Q();try{const v=yield i.initializeNativeRequest(r);try{const ue=yield i.acquireTokensFromCache(i.accountId,v);return a.end({success:!0,isNativeBroker:!1,fromCache:!0}),ue}catch{i.logger.info("MSAL internal Cache does not contain tokens, proceed to make a native call")}const{...w}=v,N={method:Ae.Ct.GetToken,request:w},j=yield i.nativeMessageHandler.sendMessage(N),W=i.validateNativeResponse(j);return yield i.handleNativeResponse(W,v,f).then(ue=>(a.end({success:!0,isNativeBroker:!0,requestId:ue.requestId}),i.serverTelemetryManager.clearNativeBrokerErrorCode(),ue)).catch(ue=>{throw a.end({success:!1,errorCode:ue.errorCode,subErrorCode:ue.subError,isNativeBroker:!0}),ue})}catch(v){throw v instanceof x&&i.serverTelemetryManager.setNativeBrokerErrorCode(v.errorCode),v}})()}createSilentCacheRequest(r,i){return{authority:r.authority,correlationId:this.correlationId,scopes:An.fromString(r.scope).asArray(),account:i,forceRefresh:!1}}acquireTokensFromCache(r,i){var a=this;return(0,ne.A)(function*(){if(!r)throw a.logger.warning("NativeInteractionClient:acquireTokensFromCache - No nativeAccountId provided"),(0,te.SB)(_e.rk);const f=a.browserStorage.getBaseAccountInfo({nativeAccountId:r});if(!f)throw(0,te.SB)(_e.rk);try{const v=a.createSilentCacheRequest(i,f),w=yield a.silentCacheClient.acquireToken(v),N={...f,idTokenClaims:w?.idTokenClaims,idToken:w?.idToken};return{...w,account:N}}catch(v){throw v}})()}acquireTokenRedirect(r,i){var a=this;return(0,ne.A)(function*(){a.logger.trace("NativeInteractionClient - acquireTokenRedirect called.");const{...f}=r;delete f.onRedirectNavigate;const v=yield a.initializeNativeRequest(f),w={method:Ae.Ct.GetToken,request:v};try{const W=yield a.nativeMessageHandler.sendMessage(w);a.validateNativeResponse(W)}catch(W){if(W instanceof x&&(a.serverTelemetryManager.setNativeBrokerErrorCode(W.errorCode),re(W)))throw W}a.browserStorage.setTemporaryCache(Ae._p.NATIVE_REQUEST,JSON.stringify(v),!0);const N={apiId:Ae.sA.acquireTokenRedirect,timeout:a.config.system.redirectNavigationTimeout,noHistory:!1},j=a.config.auth.navigateToLoginRequestUrl?window.location.href:a.getRedirectUri(r.redirectUri);i.end({success:!0}),yield a.navigationClient.navigateExternal(j,N)})()}handleRedirectPromise(r,i){var a=this;return(0,ne.A)(function*(){if(a.logger.trace("NativeInteractionClient - handleRedirectPromise called."),!a.browserStorage.isInteractionInProgress(!0))return a.logger.info("handleRedirectPromise called but there is no interaction in progress, returning null."),null;const f=a.browserStorage.getCachedNativeRequest();if(!f)return a.logger.verbose("NativeInteractionClient - handleRedirectPromise called but there is no cached request, returning null."),r&&i&&r?.addFields({errorCode:"no_cached_request"},i),null;const{prompt:v,...w}=f;v&&a.logger.verbose("NativeInteractionClient - handleRedirectPromise called and prompt was included in the original request, removing prompt from cached request to prevent second interaction with native broker window."),a.browserStorage.removeItem(a.browserStorage.generateCacheKey(Ae._p.NATIVE_REQUEST));const N={method:Ae.Ct.GetToken,request:w},j=Q();try{a.logger.verbose("NativeInteractionClient - handleRedirectPromise sending message to native broker.");const W=yield a.nativeMessageHandler.sendMessage(N);a.validateNativeResponse(W);const ue=a.handleNativeResponse(W,w,j);a.browserStorage.setInteractionInProgress(!1);const Ke=yield ue;return a.serverTelemetryManager.clearNativeBrokerErrorCode(),Ke}catch(W){throw a.browserStorage.setInteractionInProgress(!1),W}})()}logout(){return this.logger.trace("NativeInteractionClient - logout called."),Promise.reject("Logout not implemented yet")}handleNativeResponse(r,i,a){var f=this;return(0,ne.A)(function*(){f.logger.trace("NativeInteractionClient - handleNativeResponse called.");const v=$e(r.id_token,pr),w=f.createHomeAccountIdentifier(r,v),N=f.browserStorage.getAccountInfoFilteredBy({nativeAccountId:i.accountId})?.homeAccountId;if(w!==N&&r.account.id!==i.accountId)throw je(li);const j=yield f.getDiscoveredAuthority({requestAuthority:i.authority}
1),W=Js(f.browserStorage,j,w,pr,v,r.client_info,void 0,v.tid,void 0,r.account.id,f.logger),ue=yield f.generateAuthenticationResult(r,i,v,W,j.canonicalAuthority,a);return f.cacheAccount(W),f.cacheNativeTokens(r,i,w,v,r.access_token,ue.tenantId,a),ue})()}createHomeAccountIdentifier(r,i){return Kt.generateHomeAccountId(r.client_info||F.YM.EMPTY_STRING,0,this.logger,this.browserCrypto,i)}generateScopes(r,i){return An.fromString(r.scope?r.scope:i.scope)}generatePopAccessToken(r,i){var a=this;return(0,ne.A)(function*(){if(i.tokenType===F.IO.POP&&i.signPopToken){if(r.shr)return a.logger.trace("handleNativeServerResponse: SHR is enabled in native layer"),r.shr;const f=new Ms(a.browserCrypto),v={resourceRequestMethod:i.resourceRequestMethod,resourceRequestUri:i.resourceRequestUri,shrClaims:i.shrClaims,shrNonce:i.shrNonce};if(!i.keyId)throw(0,te.SB)(_e.fo);return f.signPopToken(r.access_token,i.keyId,v)}return r.access_token})()}generateAuthenticationResult(r,i,a,f,v,w){var N=this;return(0,ne.A)(function*(){const j=N.addTelemetryFromNativeResponse(r),W=An.fromString(r.scope?r.scope:i.scope),ue=r.account.properties||{},Ke=ue.UID||a.oid||a.sub||F.YM.EMPTY_STRING,rt=ue.TenantId||a.tid||F.YM.EMPTY_STRING,_t=di(f.getAccountInfo(),void 0,a,r.id_token);_t.nativeAccountId!==r.account.id&&(_t.nativeAccountId=r.account.id);const u=yield N.generatePopAccessToken(r,i),y=i.tokenType===F.IO.POP?F.IO.POP:F.IO.BEARER;return{authority:v,uniqueId:Ke,tenantId:rt,scopes:W.asArray(),account:_t,idToken:r.id_token,idTokenClaims:a,accessToken:u,fromCache:!!j&&N.isResponseFromCache(j),expiresOn:new Date(1e3*Number(w+r.expires_in)),tokenType:y,correlationId:N.correlationId,state:r.state,fromNativeBroker:!0}})()}cacheAccount(r){this.browserStorage.setAccount(r),this.browserStorage.removeAccountContext(r).catch(i=>{this.logger.error(`Error occurred while removing account context from browser storage. ${i}`)})}cacheNativeTokens(r,i,a,f,v,w,N){const j=ke(a,i.authority,r.id_token||"",i.clientId,f.tid||""),ue=N+(i.tokenType===F.IO.POP?F.YM.SHR_NONCE_VALIDITY:("string"==typeof r.expires_in?parseInt(r.expires_in,10):r.expires_in)||0),Ke=this.generateScopes(r,i),rt=lt(a,i.authority,v,i.clientId,f.tid||w,Ke.printScopes(),ue,0,pr,void 0,i.tokenType,void 0,i.keyId);this.nativeStorageManager.saveCacheRecord({idToken:j,accessToken:rt},i.storeInCache)}addTelemetryFromNativeResponse(r){const i=this.getMATSFromResponse(r);return i?(this.performanceClient.addFields({extensionId:this.nativeMessageHandler.getExtensionId(),extensionVersion:this.nativeMessageHandler.getExtensionVersion(),matsBrokerVersion:i.broker_version,matsAccountJoinOnStart:i.account_join_on_start,matsAccountJoinOnEnd:i.account_join_on_end,matsDeviceJoin:i.device_join,matsPromptBehavior:i.prompt_behavior,matsApiErrorCode:i.api_error_code,matsUiVisible:i.ui_visible,matsSilentCode:i.silent_code,matsSilentBiSubCode:i.silent_bi_sub_code,matsSilentMessage:i.silent_message,matsSilentStatus:i.silent_status,matsHttpStatus:i.http_status,matsHttpEventCount:i.http_event_count},this.correlationId),i):null}validateNativeResponse(r){if(r.hasOwnProperty("access_token")&&r.hasOwnProperty("id_token")&&r.hasOwnProperty("client_info")&&r.hasOwnProperty("account")&&r.hasOwnProperty("scope")&&r.hasOwnProperty("expires_in"))return r;throw(0,Zn.pz)(ci.W,"Response missing expected properties.")}getMATSFromResponse(r){if(r.properties.MATS)try{return JSON.parse(r.properties.MATS)}catch{this.logger.error("NativeInteractionClient - Error parsing MATS telemetry, returning null instead")}return null}isResponseFromCache(r){return typeof r.is_cached>"u"?(this.logger.verbose("NativeInteractionClient - MATS telemetry does not contain field indicating if response was served from cache. Returning false."),!1):!!r.is_cached}initializeNativeRequest(r){var i=this;return(0,ne.A)(function*(){i.logger.trace("NativeInteractionClient - initializeNativeRequest called");const a=r.authority||i.config.auth.authority;r.account&&(yield i.getDiscoveredAuthority({requestAuthority:a,requestAzureCloudOptions:r.azureCloudOptions,account:r.account}));const f=new Wt.H(a);f.validateAsUri();const{scopes:v,...w}=r,N=new An(v||[]);N.appendScopes(F.aZ);const W={...w,accountId:i.accountId,clientId:i.config.auth.clientId,authority:f.urlString,
1scope:N.printScopes(),redirectUri:i.getRedirectUri(r.redirectUri),prompt:(()=>{switch(i.apiId){case Ae.sA.ssoSilent:case Ae.sA.acquireTokenSilent_silentFlow:return i.logger.trace("initializeNativeRequest: silent request sets prompt to none"),F._M.NONE}if(r.prompt)switch(r.prompt){case F._M.NONE:case F._M.CONSENT:case F._M.LOGIN:return i.logger.trace("initializeNativeRequest: prompt is compatible with native flow"),r.prompt;default:throw i.logger.trace(`initializeNativeRequest: prompt = ${r.prompt} is not compatible with native flow`),(0,K.bD)(ee.nF)}else i.logger.trace("initializeNativeRequest: prompt was not provided")})(),correlationId:i.correlationId,tokenType:r.authenticationScheme,windowTitleSubstring:document.title,extraParameters:{...r.extraQueryParameters,...r.tokenQueryParameters},extendedExpiryToken:!1,keyId:r.popKid};if(W.signPopToken&&r.popKid)throw(0,K.bD)(ee.bT);if(i.handleExtraBrokerParams(W),W.extraParameters=W.extraParameters||{},W.extraParameters.telemetry=Ae.JD.MATS_TELEMETRY,r.authenticationScheme===F.IO.POP){const ue={resourceRequestUri:r.resourceRequestUri,resourceRequestMethod:r.resourceRequestMethod,shrClaims:r.shrClaims,shrNonce:r.shrNonce},Ke=new Ms(i.browserCrypto);let rt;if(W.keyId)rt=i.browserCrypto.base64UrlEncode(JSON.stringify({kid:W.keyId})),W.signPopToken=!1;else{const _t=yield dt(Ke.generateCnf.bind(Ke),Me.MX.PopTokenGenerateCnf,i.logger,i.performanceClient,r.correlationId)(ue,i.logger);rt=_t.reqCnfString,W.keyId=_t.kid,W.signPopToken=!0}W.reqCnf=rt}return i.addRequestSKUs(W),W})()}handleExtraBrokerParams(r){const i=r.extraParameters&&r.extraParameters.hasOwnProperty(_n)&&r.extraParameters.hasOwnProperty(Tr)&&r.extraParameters.hasOwnProperty(eo);if(!r.embeddedClientId&&!i)return;let a="";const f=r.redirectUri;r.embeddedClientId?(r.redirectUri=this.config.auth.redirectUri,a=r.embeddedClientId):r.extraParameters&&(r.redirectUri=r.extraParameters[Tr],a=r.extraParameters[eo]),r.extraParameters={child_client_id:a,child_redirect_uri:f},this.performanceClient?.addFields({embeddedClientId:a,embeddedRedirectUri:f},r.correlationId)}}class en{constructor(r,i,a,f){this.logger=r,this.handshakeTimeoutMs=i,this.extensionId=f,this.resolvers=new Map,this.handshakeResolvers=new Map,this.messageChannel=new MessageChannel,this.windowListener=this.onWindowMessage.bind(this),this.performanceClient=a,this.handshakeEvent=a.startMeasurement(Me.MX.NativeMessageHandlerHandshake)}sendMessage(r){var i=this;return(0,ne.A)(function*(){i.logger.trace("NativeMessageHandler - sendMessage called.");const a={channel:Ae.JD.CHANNEL_ID,extensionId:i.extensionId,responseId:(0,Bt.Oy)(),body:r};return i.logger.trace("NativeMessageHandler - Sending request to browser extension"),i.logger.tracePii(`NativeMessageHandler - Sending request to browser extension: ${JSON.stringify(a)}`),i.messageChannel.port1.postMessage(a),new Promise((f,v)=>{i.resolvers.set(a.responseId,{resolve:f,reject:v})})})()}static createProvider(r,i,a){return(0,ne.A)(function*(){r.trace("NativeMessageHandler - createProvider called.");try{const f=new en(r,i,a,Ae.JD.PREFERRED_EXTENSION_ID);return yield f.sendHandshakeRequest(),f}catch{const v=new en(r,i,a);return yield v.sendHandshakeRequest(),v}})()}sendHandshakeRequest(){var r=this;return(0,ne.A)(function*(){r.logger.trace("NativeMessageHandler - sendHandshakeRequest called."),window.addEventListener("message",r.windowListener,!1);const i={channel:Ae.JD.CHANNEL_ID,extensionId:r.extensionId,responseId:(0,Bt.Oy)(),body:{method:Ae.Ct.HandshakeRequest}};return r.handshakeEvent.add({extensionId:r.extensionId,extensionHandshakeTimeoutMs:r.handshakeTimeoutMs}),r.messageChannel.port1.onmessage=a=>{r.onChannelMessage(a)},window.postMessage(i,window.origin,[r.messageChannel.port2]),new Promise((a,f)=>{r.handshakeResolvers.set(i.responseId,{resolve:a,reject:f}),r.timeoutId=window.setTimeout(()=>{window.removeEventListener("message",r.windowListener,!1),r.messageChannel.port1.close(),r.messageChannel.port2.close(),r.handshakeEvent.end({extensionHandshakeTimedOut:!0,success:!1}),f((0,K.bD)(ee.y3)),r.handshakeResolvers.delete(i.responseId)},r.handshakeTimeoutMs)})})()}onWindowMessage(r){if(this.logger.trace("NativeMessageHandler - onWindowMessage called"),r.source!==window)return;const i=r.data;if(i.channel&&i.channel===Ae.JD.CHANNEL_ID&&(!i.extensionId||i.extensionId===this.extensionId)&&i.body.method===Ae.Ct.HandshakeRequest){const a=this.handshakeResolvers.get(i.responseId);if(!a)return void this.logger.trace(`NativeMessageHandler.onWindowMessage - resolver can't be found for request ${i.responseId}`);this.logger.verbose(i.extensionId?`Extension with id: ${i.extensionId}
1 not installed`:"No extension installed"),clearTimeout(this.timeoutId),this.messageChannel.port1.close(),this.messageChannel.port2.close(),window.removeEventListener("message",this.windowListener,!1),this.handshakeEvent.end({success:!1,extensionInstalled:!1}),a.reject((0,K.bD)(ee.cq))}}onChannelMessage(r){this.logger.trace("NativeMessageHandler - onChannelMessage called.");const i=r.data,a=this.resolvers.get(i.responseId),f=this.handshakeResolvers.get(i.responseId);try{const v=i.body.method;if(v===Ae.Ct.Response){if(!a)return;const w=i.body.response;if(this.logger.trace("NativeMessageHandler - Received response from browser extension"),this.logger.tracePii(`NativeMessageHandler - Received response from browser extension: ${JSON.stringify(w)}`),"Success"!==w.status)a.reject(je(w.code,w.description,w.ext));else{if(!w.result)throw(0,Zn.pz)(ci.W,"Event does not contain result.");w.result.code&&w.result.description?a.reject(je(w.result.code,w.result.description,w.result.ext)):a.resolve(w.result)}this.resolvers.delete(i.responseId)}else if(v===Ae.Ct.HandshakeResponse){if(!f)return void this.logger.trace(`NativeMessageHandler.onChannelMessage - resolver can't be found for request ${i.responseId}`);clearTimeout(this.timeoutId),window.removeEventListener("message",this.windowListener,!1),this.extensionId=i.extensionId,this.extensionVersion=i.body.version,this.logger.verbose(`NativeMessageHandler - Received HandshakeResponse from extension: ${this.extensionId}`),this.handshakeEvent.end({extensionInstalled:!0,success:!0}),f.resolve(),this.handshakeResolvers.delete(i.responseId)}}catch(v){this.logger.error("Error parsing response from WAM Extension"),this.logger.errorPii(`Error parsing response from WAM Extension: ${v}`),this.logger.errorPii(`Unable to parse ${r}`),a?a.reject(v):f&&f.reject(v)}}getExtensionId(){return this.extensionId}getExtensionVersion(){return this.extensionVersion}static isNativeAvailable(r,i,a,f){if(i.trace("isNativeAvailable called"),!r.system.allowNativeBroker)return i.trace("isNativeAvailable: allowNativeBroker is not enabled, returning false"),!1;if(!a)return i.trace("isNativeAvailable: WAM extension provider is not initialized, returning false"),!1;if(f)switch(f){case F.IO.BEARER:case F.IO.POP:return i.trace("isNativeAvailable: authenticationScheme is supported, returning true"),!0;default:return i.trace("isNativeAvailable: authenticationScheme is not supported, returning false"),!1}return!0}}class er{constructor(r,i,a,f,v){this.authModule=r,this.browserStorage=i,this.authCodeRequest=a,this.logger=f,this.performanceClient=v}handleCodeResponse(r,i){var a=this;return(0,ne.A)(function*(){let f;a.performanceClient.addQueueMeasurement(Me.MX.HandleCodeResponse,i.correlationId);try{f=a.authModule.handleFragmentResponse(r,i.state)}catch(v){throw v instanceof Ci&&v.subError===ee.fN?(0,K.bD)(ee.fN):v}return dt(a.handleCodeResponseFromServer.bind(a),Me.MX.HandleCodeResponseFromServer,a.logger,a.performanceClient,i.correlationId)(f,i)})()}handleCodeResponseFromServer(r,i,a=!0){var f=this;return(0,ne.A)(function*(){if(f.performanceClient.addQueueMeasurement(Me.MX.HandleCodeResponseFromServer,i.correlationId),f.logger.trace("InteractionHandler.handleCodeResponseFromServer called"),f.authCodeRequest.code=r.code,r.cloud_instance_host_name&&(yield dt(f.authModule.updateAuthority.bind(f.authModule),Me.MX.UpdateTokenEndpointAuthority,f.logger,f.performanceClient,i.correlationId)(r.cloud_instance_host_name,i.correlationId)),a&&(r.nonce=i.nonce||void 0),r.state=i.state,r.client_info)f.authCodeRequest.clientInfo=r.client_info;else{const w=f.createCcsCredentials(i);w&&(f.authCodeRequest.ccsCredential=w)}return yield dt(f.authModule.acquireToken.bind(f.authModule),Me.MX.AuthClientAcquireToken,f.logger,f.performanceClient,i.correlationId)(f.authCodeRequest,r)})()}createCcsCredentials(r){return r.account?{credential:r.account.homeAccountId,type:"home_account_id"}:r.loginHint?{credential:r.loginHint,type:"UPN"}:null}}var Bn=I(2718);function Cr(b,r,i){const a=Bn.n(b);if(!a)throw Bn.S(b)?(i.error(`A ${r} is present in the iframe but it does not contain known properties. It's likely that the ${r} has been replaced by code running on the redirectUri page.`),i.errorPii(`The ${r} detected is: ${b}`),(0,K.bD)(ee.Lm)):(i.error(`The request has returned to the redirectUri but a ${r} is not present. It's likely that the ${r} has been removed or the page has been redirected by code running on the redirectUri page.`),(0,K.bD)(ee.wv));return a}class ht extends zo{constructor(r,i,a,f,v,w,N,j,W,ue){super(r,i,a,f,v,w,N,W,ue),this.unloadWindow=this.unloadWindow.bind(this),this.nativeStorage=j}acquireToken(r){try{const a={popupName:this.generatePopupName(r.scopes||F.aZ,r.authority||this.config.auth.authority),popupWindowAttributes:r.popupWindowAttributes||{},popupWindowParent:r.popupWindowParent??window};return this.config.system.asyncPopups?(this.logger.verbose("asyncPopups set to true, acquiring token"),this.acquireTokenPopupAsync(r,a)):(this.logger.verbose("asyncPopup set to false, opening popup before acquiring token"),a.popup=this.openSizedPopup("about:blank",a),this.acquireTokenPopupAsync(r,a))}catch(i){return Promise.reject(i)}}logout(r){try{this.logger.verbose("logoutPopup called");
1const i=this.initializeLogoutRequest(r),a={popupName:this.generateLogoutPopupName(i),popupWindowAttributes:r?.popupWindowAttributes||{},popupWindowParent:r?.popupWindowParent??window},f=r&&r.authority,v=r&&r.mainWindowRedirectUri;return this.config.system.asyncPopups?(this.logger.verbose("asyncPopups set to true"),this.logoutPopupAsync(i,a,f,v)):(this.logger.verbose("asyncPopup set to false, opening popup"),a.popup=this.openSizedPopup("about:blank",a),this.logoutPopupAsync(i,a,f,v))}catch(i){return Promise.reject(i)}}acquireTokenPopupAsync(r,i){var a=this;return(0,ne.A)(function*(){a.logger.verbose("acquireTokenPopupAsync called");const f=a.initializeServerTelemetryManager(Ae.sA.acquireTokenPopup),v=yield dt(a.initializeAuthorizationRequest.bind(a),Me.MX.StandardInteractionClientInitializeAuthorizationRequest,a.logger,a.performanceClient,a.correlationId)(r,Ae.X8.Popup);(0,it.kZ)(v.authority);try{const w=yield dt(a.initializeAuthorizationCodeRequest.bind(a),Me.MX.StandardInteractionClientInitializeAuthorizationCodeRequest,a.logger,a.performanceClient,a.correlationId)(v),N=yield dt(a.createAuthCodeClient.bind(a),Me.MX.StandardInteractionClientCreateAuthCodeClient,a.logger,a.performanceClient,a.correlationId)({serverTelemetryManager:f,requestAuthority:v.authority,requestAzureCloudOptions:v.azureCloudOptions,requestExtraQueryParameters:v.extraQueryParameters,account:v.account}),j=en.isNativeAvailable(a.config,a.logger,a.nativeMessageHandler,r.authenticationScheme);let W;j&&(W=a.performanceClient.startMeasurement(Me.MX.FetchAccountIdWithNativeBroker,r.correlationId));const ue=yield N.getAuthCodeUrl({...v,nativeBroker:j}),Ke=new er(N,a.browserStorage,w,a.logger,a.performanceClient),rt=a.initiateAuthRequest(ue,i);a.eventHandler.emitEvent(Le.B.POPUP_OPENED,Ae.X8.Popup,{popupWindow:rt},null);const _t=yield a.monitorPopupForHash(rt,i.popupWindowParent),u=ri(Cr,Me.MX.DeserializeResponse,a.logger,a.performanceClient,a.correlationId)(_t,a.config.auth.OIDCOptions.serverResponseType,a.logger);if(xr.removeThrottle(a.browserStorage,a.config.auth.clientId,w),u.accountId){if(a.logger.verbose("Account id found in hash, calling WAM for token"),W&&W.end({success:!0,isNativeBroker:!0}),!a.nativeMessageHandler)throw(0,K.bD)(ee.XC);const l=new jn(a.config,a.browserStorage,a.browserCrypto,a.logger,a.eventHandler,a.navigationClient,Ae.sA.acquireTokenPopup,a.performanceClient,a.nativeMessageHandler,u.accountId,a.nativeStorage,v.correlationId),{userRequestState:h}=Pr.parseRequestState(a.browserCrypto,v.state);return yield l.acquireToken({...v,state:h,prompt:void 0})}return yield Ke.handleCodeResponse(u,v)}catch(w){throw i.popup?.close(),w instanceof Zn.lR&&(w.setCorrelationId(a.correlationId),f.cacheFailedRequest(w)),w}})()}logoutPopupAsync(r,i,a,f){var v=this;return(0,ne.A)(function*(){v.logger.verbose("logoutPopupAsync called"),v.eventHandler.emitEvent(Le.B.LOGOUT_START,Ae.X8.Popup,r);const w=v.initializeServerTelemetryManager(Ae.sA.logoutPopup);try{yield v.clearCacheOnLogout(r.account);const j=(yield dt(v.createAuthCodeClient.bind(v),Me.MX.StandardInteractionClientCreateAuthCodeClient,v.logger,v.performanceClient,v.correlationId)({serverTelemetryManager:w,requestAuthority:a,account:r.account||void 0})).getLogoutUri(r);v.eventHandler.emitEvent(Le.B.LOGOUT_SUCCESS,Ae.X8.Popup,r);const W=v.openPopup(j,i);if(v.eventHandler.emitEvent(Le.B.POPUP_OPENED,Ae.X8.Popup,{popupWindow:W},null),yield v.monitorPopupForHash(W,i.popupWindowParent).catch(()=>{}),f){const ue={apiId:Ae.sA.logoutPopup,timeout:v.config.system.redirectNavigationTimeout,noHistory:!1},Ke=Wt.H.getAbsoluteUrl(f,(0,it.Uu)());v.logger.verbose("Redirecting main window to url specified in the request"),v.logger.verbosePii(`Redirecting main window to: ${Ke}`),yield v.navigationClient.navigateInternal(Ke,ue)}else v.logger.verbose("No main window navigation requested")}catch(N){throw i.popup?.close(),N instanceof Zn.lR&&(N.setCorrelationId(v.correlationId),w.cacheFailedRequest(N)),v.browserStorage.setInteractionInProgress(!1),v.eventHandler.emitEvent(Le.B.LOGOUT_FAILURE,Ae.X8.Popup,null,N),v.eventHandler.emitEvent(Le.B.LOGOUT_END,Ae.X8.Popup),N}v.eventHandler.emitEvent(Le.B.LOGOUT_END,Ae.X8.Popup)})()}initiateAuthRequest(r,i){if(r)return this.logger.infoPii(`Navigate to: ${r}`),this.openPopup(r,i);throw this.logger.error("Navigate url is empty"),(0,K.bD)(ee.B2)}monitorPopupForHash(r,i){return new Promise((a,f)=>{this.logger.verbose("PopupHandler.monitorPopupForHash - polling started");const v=setInterval(()=>{if(r.closed)return this.logger.error("PopupHandler.monitorPopupForHash - window closed"),clearInterval(v),void f((0,K.bD)(ee.fN));let w="";try{w=r.location.href}catch{}if(!w||"about:blank"===w)return;clearInterval(v);let N="";r&&(N=this.config.auth.OIDCOptions.serverResponseType===F.zL.QUERY?r.location.search:r.location.hash),this.logger.verbose("PopupHandler.monitorPopupForHash - popup window is on same origin as caller"),a(N)},this.config.system.pollIntervalMilliseconds)}).finally(()=>{this.cleanPopup(r,i)})}openPopup(r,i){try{let a;if(i.popup?(a=i.popup,this.logger.verbosePii(`Navigating popup window to: ${r}`),a.location.assign(r)):typeof i.popup>"u"&&(this.logger.verbosePii(`Opening popup window to: ${r}`),a=this.openSizedPopup(r,i)),!a)throw(0,K.bD)(ee.MP);return a.focus&&a.focus(),this.currentWindow=a,i.popupWindowParent.addEventListener("beforeunload",this.unloadWindow),a}catch(a){throw this.logger.error("error opening popup "+a.message),this.browserStorage.setInteractionInProgress(!1),(0,K.bD)(ee.hs)}}openSizedPopup(r,{popupName:i,popupWindowAttributes:a,popupWindowParent:f}){const v=f.screenLeft?f.screenLeft:f.screenX,w=f.screenTop?f.screenTop:f.screenY,N=f.innerWidth||document.documentElement.clientWidth||document.body.clientWidth,j=f.innerHe
1ight||document.documentElement.clientHeight||document.body.clientHeight;let W=a.popupSize?.width,ue=a.popupSize?.height,Ke=a.popupPosition?.top,rt=a.popupPosition?.left;return(!W||W<0||W>N)&&(this.logger.verbose("Default popup window width used. Window width not configured or invalid."),W=Ae.Q1.POPUP_WIDTH),(!ue||ue<0||ue>j)&&(this.logger.verbose("Default popup window height used. Window height not configured or invalid."),ue=Ae.Q1.POPUP_HEIGHT),(!Ke||Ke<0||Ke>j)&&(this.logger.verbose("Default popup window top position used. Window top not configured or invalid."),Ke=Math.max(0,j/2-Ae.Q1.POPUP_HEIGHT/2+w)),(!rt||rt<0||rt>N)&&(this.logger.verbose("Default popup window left position used. Window left not configured or invalid."),rt=Math.max(0,N/2-Ae.Q1.POPUP_WIDTH/2+v)),f.open(r,i,`width=${W}, height=${ue}, top=${Ke}, left=${rt}, scrollbars=yes`)}unloadWindow(r){this.browserStorage.cleanRequestByInteractionType(Ae.X8.Popup),this.currentWindow&&this.currentWindow.close(),r.preventDefault()}cleanPopup(r,i){r.close(),i.removeEventListener("beforeunload",this.unloadWindow),this.browserStorage.setInteractionInProgress(!1)}generatePopupName(r,i){return`${Ae.Q1.POPUP_NAME_PREFIX}.${this.config.auth.clientId}.${r.join("-")}.${i}.${this.correlationId}`}generateLogoutPopupName(r){return`${Ae.Q1.POPUP_NAME_PREFIX}.${this.config.auth.clientId}.${r.account&&r.account.homeAccountId}.${this.correlationId}`}}class xt{constructor(r,i,a,f,v){this.authModule=r,this.browserStorage=i,this.authCodeRequest=a,this.logger=f,this.performanceClient=v}initiateAuthRequest(r,i){var a=this;return(0,ne.A)(function*(){if(a.logger.verbose("RedirectHandler.initiateAuthRequest called"),r){i.redirectStartPage&&(a.logger.verbose("RedirectHandler.initiateAuthRequest: redirectStartPage set, caching start page"),a.browserStorage.setTemporaryCache(Ae._p.ORIGIN_URI,i.redirectStartPage,!0)),a.browserStorage.setTemporaryCache(Ae._p.CORRELATION_ID,a.authCodeRequest.correlationId,!0),a.browserStorage.cacheCodeRequest(a.authCodeRequest),a.logger.infoPii(`RedirectHandler.initiateAuthRequest: Navigate to: ${r}`);const f={apiId:Ae.sA.acquireTokenRedirect,timeout:i.redirectTimeout,noHistory:!1};return"function"==typeof i.onRedirectNavigate?(a.logger.verbose("RedirectHandler.initiateAuthRequest: Invoking onRedirectNavigate callback"),!1!==i.onRedirectNavigate(r)?(a.logger.verbose("RedirectHandler.initiateAuthRequest: onRedirectNavigate did not return false, navigating"),void(yield i.navigationClient.navigateExternal(r,f))):void a.logger.verbose("RedirectHandler.initiateAuthRequest: onRedirectNavigate returned false, stopping navigation")):(a.logger.verbose("RedirectHandler.initiateAuthRequest: Navigating window to navigate url"),void(yield i.navigationClient.navigateExternal(r,f)))}throw a.logger.info("RedirectHandler.initiateAuthRequest: Navigate url is empty"),(0,K.bD)(ee.B2)})()}handleCodeResponse(r,i){var a=this;return(0,ne.A)(function*(){a.logger.verbose("RedirectHandler.handleCodeResponse called"),a.browserStorage.setInteractionInProgress(!1);const f=a.browserStorage.generateStateKey(i),v=a.browserStorage.getTemporaryCache(f);if(!v)throw(0,te.SB)(_e.tQ,"Cached State");let w;try{w=a.authModule.handleFragmentResponse(r,v)}catch(ue){throw ue instanceof Ci&&ue.subError===ee.fN?(0,K.bD)(ee.fN):ue}const N=a.browserStorage.generateNonceKey(v),j=a.browserStorage.getTemporaryCache(N);if(a.authCodeRequest.code=w.code,w.cloud_instance_host_name&&(yield dt(a.authModule.updateAuthority.bind(a.authModule),Me.MX.UpdateTokenEndpointAuthority,a.logger,a.performanceClient,a.authCodeRequest.correlationId)(w.cloud_instance_host_name,a.authCodeRequest.correlationId)),w.nonce=j||void 0,w.state=v,w.client_info)a.authCodeRequest.clientInfo=w.client_info;else{const ue=a.checkCcsCredentials();ue&&(a.authCodeRequest.ccsCredential=ue)}const W=yield a.authModule.acquireToken(a.authCodeRequest,w);return a.browserStorage.cleanRequestByState(i),W})()}checkCcsCredentials(){const r=this.browserStorage.getTemporaryCache(Ae._p.CCS_CREDENTIAL,!0);if(r)try{return JSON.parse(r)}catch{this.authModule.logger.error("Cache credential could not be parsed"),this.authModule.logger.errorPii(`Cache
1credential could not be parsed: ${r}`)}return null}}class lr extends zo{constructor(r,i,a,f,v,w,N,j,W,ue){super(r,i,a,f,v,w,N,W,ue),this.nativeStorage=j}acquireToken(r){var i=this;return(0,ne.A)(function*(){const a=yield dt(i.initializeAuthorizationRequest.bind(i),Me.MX.StandardInteractionClientInitializeAuthorizationRequest,i.logger,i.performanceClient,i.correlationId)(r,Ae.X8.Redirect);i.browserStorage.updateCacheEntries(a.state,a.nonce,a.authority,a.loginHint||"",a.account||null);const f=i.initializeServerTelemetryManager(Ae.sA.acquireTokenRedirect),v=w=>{w.persisted&&(i.logger.verbose("Page was restored from back/forward cache. Clearing temporary cache."),i.browserStorage.cleanRequestByState(a.state),i.eventHandler.emitEvent(Le.B.RESTORE_FROM_BFCACHE,Ae.X8.Redirect))};try{const w=yield dt(i.initializeAuthorizationCodeRequest.bind(i),Me.MX.StandardInteractionClientInitializeAuthorizationCodeRequest,i.logger,i.performanceClient,i.correlationId)(a),N=yield dt(i.createAuthCodeClient.bind(i),Me.MX.StandardInteractionClientCreateAuthCodeClient,i.logger,i.performanceClient,i.correlationId)({serverTelemetryManager:f,requestAuthority:a.authority,requestAzureCloudOptions:a.azureCloudOptions,requestExtraQueryParameters:a.extraQueryParameters,account:a.account}),j=new xt(N,i.browserStorage,w,i.logger,i.performanceClient),W=yield N.getAuthCodeUrl({...a,nativeBroker:en.isNativeAvailable(i.config,i.logger,i.nativeMessageHandler,r.authenticationScheme)}),ue=i.getRedirectStartPage(r.redirectStartPage);return i.logger.verbosePii(`Redirect start page: ${ue}`),window.addEventListener("pageshow",v),yield j.initiateAuthRequest(W,{navigationClient:i.navigationClient,redirectTimeout:i.config.system.redirectNavigationTimeout,redirectStartPage:ue,onRedirectNavigate:r.onRedirectNavigate||i.config.auth.onRedirectNavigate})}catch(w){throw w instanceof Zn.lR&&(w.setCorrelationId(i.correlationId),f.cacheFailedRequest(w)),window.removeEventListener("pageshow",v),i.browserStorage.cleanRequestByState(a.state),w}})()}handleRedirectPromise(r="",i){var a=this;return(0,ne.A)(function*(){const f=a.initializeServerTelemetryManager(Ae.sA.handleRedirectPromise);try{if(!a.browserStorage.isInteractionInProgress(!0))return a.logger.info("handleRedirectPromise called but there is no interaction in progress, returning null."),null;const[v,w]=a.getRedirectResponse(r||"");if(!v)return a.logger.info("handleRedirectPromise did not detect a response as a result of a redirect. Cleaning temporary cache."),a.browserStorage.cleanRequestByInteractionType(Ae.X8.Redirect),"back_forward"!==function Hn(){if(typeof window>"u"||typeof window.performance>"u"||"function"!=typeof window.performance.getEntriesByType)return;const b=window.performance.getEntriesByType("navigation");return(b.length?b[0]:void 0)?.type}()?i.event.errorCode="no_server_response":a.logger.verbose("Back navigation event detected. Muting no_server_response error"),null;const N=a.browserStorage.getTemporaryCache(Ae._p.ORIGIN_URI,!0)||F.YM.EMPTY_STRING;if(Wt.H.removeHashFromUrl(N)===Wt.H.removeHashFromUrl(window.location.href)&&a.config.auth.navigateToLoginRequestUrl)return a.logger.verbose("Current page is loginRequestUrl, handling response"),N.indexOf("#")>-1&&(0,it.nQ)(N),yield a.handleResponse(v,f);if(!a.config.auth.navigateToLoginRequestUrl)return a.logger.verbose("NavigateToLoginRequestUrl set to false, handling response"),yield a.handleResponse(v,f);if(!(0,it.GZ)()||a.config.system.allowRedirectInIframe){a.browserStorage.setTemporaryCache(Ae._p.URL_HASH,w,!0);const ue={apiId:Ae.sA.handleRedirectPromise,timeout:a.config.system.redirectNavigationTimeout,noHistory:!0};let Ke=!0;if(N&&"null"!==N)a.logger.verbose(`Navigating to loginRequestUrl: ${N}`),Ke=yield a.navigationClient.navigateInternal(N,ue);else{const rt=(0,it.VX)();a.browserStorage.setTemporaryCache(Ae._p.ORIGIN_URI,rt,!0),a.logger.warning("Unable to get valid login request url from cache, redirecting to home page"),Ke=yield a.navigationClient.navigateInternal(rt,ue)}if(!Ke)return yield a.handleResponse(v,f)}return null}catch(v){throw v instanceof Zn.lR&&(v.setCorrelationId(a.correlationId),f.cacheFailedRequest(v)),a.browserStorage.cleanRequestByInteractionType(Ae.X8.Redirect),v}})()}getRedirectResponse(r){this.logger.verbose("getRedirectResponseHash called");let i=r;i||(i=this.config.auth.OIDCOptions.serverResponseType===F.zL.QUERY?window.location.search:window.location.hash);let a=Bn.n(i);if(a){try{!function Un(b,r,i){if(!b.state)throw(0,K.bD)(ee.c$);const a=ss(r,b.state);if(!a)throw(0,K.bD)(ee.fA);if(a.interactionType!==i)throw(0,K.bD)(ee.oe)}(a,this.browserCrypto,Ae.X8.Redirect)}catch(v){return v instanceof Zn.lR&&this.logger.error(`Interaction type validation failed due to ${v.errorCode}: ${v.errorMessage}`),[null,""]}return(0,it.U2)(window),this.logger.verbose("Hash contains known properties, returning response hash"),[a,i]}const f=this.browserStorage.getTemporaryCache(Ae._p.URL_HASH,!0);return this.browserStorage.removeItem(this.browserStorage.generateCacheKey(Ae._p.URL_HASH)),f&&(a=Bn.n(f),a)?(this.logger.verbose("Hash does not contain known properties, returning c
1ached hash"),[a,f]):[null,""]}handleResponse(r,i){var a=this;return(0,ne.A)(function*(){const f=r.state;if(!f)throw(0,K.bD)(ee.c$);const v=a.browserStorage.getCachedRequest(f);if(a.logger.verbose("handleResponse called, retrieved cached request"),r.accountId){if(a.logger.verbose("Account id found in hash, calling WAM for token"),!a.nativeMessageHandler)throw(0,K.bD)(ee.XC);const W=new jn(a.config,a.browserStorage,a.browserCrypto,a.logger,a.eventHandler,a.navigationClient,Ae.sA.acquireTokenPopup,a.performanceClient,a.nativeMessageHandler,r.accountId,a.nativeStorage,v.correlationId),{userRequestState:ue}=Pr.parseRequestState(a.browserCrypto,f);return W.acquireToken({...v,state:ue,prompt:void 0}).finally(()=>{a.browserStorage.cleanRequestByState(f)})}const w=a.browserStorage.getCachedAuthority(f);if(!w)throw(0,K.bD)(ee.Ne);const N=yield dt(a.createAuthCodeClient.bind(a),Me.MX.StandardInteractionClientCreateAuthCodeClient,a.logger,a.performanceClient,a.correlationId)({serverTelemetryManager:i,requestAuthority:w});return xr.removeThrottle(a.browserStorage,a.config.auth.clientId,v),new xt(N,a.browserStorage,v,a.logger,a.performanceClient).handleCodeResponse(r,f)})()}logout(r){var i=this;return(0,ne.A)(function*(){i.logger.verbose("logoutRedirect called");const a=i.initializeLogoutRequest(r),f=i.initializeServerTelemetryManager(Ae.sA.logout);try{i.eventHandler.emitEvent(Le.B.LOGOUT_START,Ae.X8.Redirect,r),yield i.clearCacheOnLogout(a.account);const v={apiId:Ae.sA.logout,timeout:i.config.system.redirectNavigationTimeout,noHistory:!1},N=(yield dt(i.createAuthCodeClient.bind(i),Me.MX.StandardInteractionClientCreateAuthCodeClient,i.logger,i.performanceClient,i.correlationId)({serverTelemetryManager:f,requestAuthority:r&&r.authority,requestExtraQueryParameters:r?.extraQueryParameters,account:r&&r.account||void 0})).getLogoutUri(a);if(i.eventHandler.emitEvent(Le.B.LOGOUT_SUCCESS,Ae.X8.Redirect,a),!r||"function"!=typeof r.onRedirectNavigate)return i.browserStorage.getInteractionInProgress()||i.browserStorage.setInteractionInProgress(!0),void(yield i.navigationClient.navigateExternal(N,v));if(!1!==r.onRedirectNavigate(N))return i.logger.verbose("Logout onRedirectNavigate did not return false, navigating"),i.browserStorage.getInteractionInProgress()||i.browserStorage.setInteractionInProgress(!0),void(yield i.navigationClient.navigateExternal(N,v));i.browserStorage.setInteractionInProgress(!1),i.logger.verbose("Logout onRedirectNavigate returned false, stopping navigation")}catch(v){throw v instanceof Zn.lR&&(v.setCorrelationId(i.correlationId),f.cacheFailedRequest(v)),i.eventHandler.emitEvent(Le.B.LOGOUT_FAILURE,Ae.X8.Redirect,null,v),i.eventHandler.emitEvent(Le.B.LOGOUT_END,Ae.X8.Redirect),v}i.eventHandler.emitEvent(Le.B.LOGOUT_END,Ae.X8.Redirect)})()}getRedirectStartPage(r){const i=r||window.location.href;return Wt.H.getAbsoluteUrl(i,(0,it.Uu)())}}function tr(b,r,i,a,f){return Br.apply(this,arguments)}function Br(){return(Br=(0,ne.A)(function*(b,r,i,a,f){if(r.addQueueMeasurement(Me.MX.SilentHandlerInitiateAuthRequest,a),!b)throw i.info("Navigate url is empty"),(0,K.bD)(ee.B2);return f?dt(Kr,Me.MX.SilentHandlerLoadFrame,i,r,a)(b,f,r,a):ri(go,Me.MX.SilentHandlerLoadFrameSync,i,r,a)(b)})).apply(this,arguments)}function io(b,r,i,a,f,v,w){return In.apply(this,arguments)}function In(){return(In=(0,ne.A)(function*(b,r,i,a,f,v,w){return a.addQueueMeasurement(Me.MX.SilentHandlerMonitorIframeForHash,v),new Promise((N,j)=>{r<sn&&f.warning(`system.loadFrameTimeout or system.iframeHashTimeout set to lower (${r}ms) than the default (${sn}ms). This may result in timeouts.`);const W=window.setTimeout(()=>{window.clearInterval(ue),j((0,K.bD)(ee.Uf))},r),ue=window.setInterval(()=>{let Ke="";const rt=b.contentWindow;try{Ke=rt?rt.location.href:""}catch{}if(!Ke||"about:blank"===Ke)return;let _t="";rt&&(_t=w===F.zL.QUERY?rt.location.search:rt.location.hash),window.clearTimeout(W),window.clearInterval(ue),N(_t)},i)}).finally(()=>{ri(ia,Me.MX.RemoveHiddenIframe,f,a,v)(b)})})).apply(this,arguments)}function Kr(b,r,i,a){return i.addQueueMeasurement(Me.MX.SilentHandlerLoadFrame,a),new Promise((f,v)=>{const w=Jt();window.setTimeout(()=>{w?(w.src=b,f(w)):v("Unable to load iframe")},r)})}function go(b){const r=Jt();return r.src=b,r}function Jt(){const b=document.createElement("iframe");return b.className="msalSilentIframe",b.style.visibility="hidden",b.style.position="absolute",b.style.width=b.style.height="0",b.style.border="0",b.setAttribute("sandbox","allow-scripts allow-same-origin allow-forms"),document.body.appendChild(b),b}function ia(b){document.body===b.parentNode&&document.body.removeChild(b)}class dc extends zo{constructor(r,i,a,f,v,w,N,j,W,ue,Ke){super(r,i,a,f,v,w,j,ue,Ke),this.apiId=N,this.nativeStorage=W}acquireToken(r){var i=this;return(0,ne.A)(function*(){i.performanceClient.addQueueMeasurement(Me.MX.SilentIframeClientAcquireToken,r.correlationId),!r.loginHint&&!r.sid&&(!r.account||!r.account.username)&&i.logger.warning("No user hint provided. The authorization server may need more information to complete this request.");const a={...r};a.prompt?a.prompt!==F._M.NONE&&a.prompt!==F._M.NO_SESSION&&(i.logger.warning(`SilentIframeClient. Replacing invalid prompt ${a.prompt} with ${F._M.NONE}`),a.prompt=F._M.NONE):a.prompt=F._M.NONE;const f=yield dt(i.initializeAuthorizationRequest.bind(i),Me.MX.StandardInteractionClientInitializeAuthorizationRequest,i.logger,i.performanceClient,r.correlationId)(a,Ae.X8.Silent);(0,it.kZ)(f.authority);const v=i.initializeServerTelemetryManager(i.apiId);let w;try{return w=yield dt(i.createAuthCodeClient.bind(i),Me.MX.StandardInteractionClientCreateAuthCodeClient,i.logger,i.performanceClient,r.correlationId)({serverTelemetryManager:v,requestAuthority:f.authority,requestAzureCloudOptions:f.azureCloudOptions,requestExtraQueryParameters:f.extraQueryParameters,account:f.account}),yield dt(i.silentTokenHelper.bind(i),Me.MX.SilentIframeClientTokenHelper,i.logger,i.performanceClient,r.correlationId)(w,f)}catch(N){if(N instanceof Zn.lR&&(N.setCorrelationId(i.correlationId),v.cacheFailedRequest(N)),!(w&&N instanceof Zn.lR&&N.errorCode===Ae.Q1.INVALID_GRANT_ERROR))throw N;i.performanceClient.addFields({retryError:N.errorCode},i.correlationId);const j=yield dt(i.initializeAuthorizationRequest.bind(i),Me.MX.StandardInteractionClientInitializeAuthorizationRequest,i.logger,i.performanceClient,r.correlationId)(a,Ae.X8.Silent);return yield dt(i.silentTokenHelper.bind(i),Me.MX.SilentIframeClientTokenHelper,i.logger,i.performanceClient,i.correlationId)(w,j)}})()}logout(){return Promise.reject((0,K.bD)(ee.v7))}silentTokenHelper(r,i){var a=this;return(0,ne.A)(function*(){const f=i.correlationId;a.performanceClient.addQueueMeasurement(Me.MX.SilentIframeClientTokenHelper,f);const v=yield dt(a.initializeAuthorizationCodeRequest.bind(a),Me.MX.StandardInteractionClientInitializeAuthorizationCodeRequest,a.logger,a.performanceClient,f)(i),w=yield dt(r.getAuthCodeUrl.bind(r),Me.MX.GetAuthCodeUrl,a.logger,a.performanceClient,f)({...i,nativeBroker:en.isNativeAvailable(a.config,a.logger,a.nativeMessageHandler,i.authenticationScheme)}),N=new er(r,a.browserStorage,v,a.logger,a.performanceClient),j=yield dt(tr,Me.MX.SilentHandlerInitiateAuthRequest,a.logger,a.performanceClient,f)(w,a.performanceClient,a.logger,f,a.config.system.navigateFrameWait),W=a.config.auth.OIDCOptions.serverResponseType,ue=yield dt(io,Me.MX.SilentHandlerMonitorIframeForHash,a.logger,a.performanceClient,f)(j,a.config.system.iframeHashTimeout,a.config.system.pollIntervalMilliseconds,a.performanceClient,a.logger,f,W),Ke=ri(Cr,Me.MX.DeserializeResponse,a.logger,a.performanceClient,a.correlationId)(ue,W,a.logger);
1if(Ke.accountId){if(a.logger.verbose("Account id found in hash, calling WAM for token"),!a.nativeMessageHandler)throw(0,K.bD)(ee.XC);const rt=new jn(a.config,a.browserStorage,a.browserCrypto,a.logger,a.eventHandler,a.navigationClient,a.apiId,a.performanceClient,a.nativeMessageHandler,Ke.accountId,a.browserStorage,f),{userRequestState:_t}=Pr.parseRequestState(a.browserCrypto,i.state);return dt(rt.acquireToken.bind(rt),Me.MX.NativeInteractionClientAcquireToken,a.logger,a.performanceClient,f)({...i,state:_t,prompt:i.prompt||F._M.NONE})}return dt(N.handleCodeResponse.bind(N),Me.MX.HandleCodeResponse,a.logger,a.performanceClient,f)(Ke,i)})()}}class Xo extends zo{acquireToken(r){var i=this;return(0,ne.A)(function*(){i.performanceClient.addQueueMeasurement(Me.MX.SilentRefreshClientAcquireToken,r.correlationId);const a=yield dt(Wo,Me.MX.InitializeBaseRequest,i.logger,i.performanceClient,r.correlationId)(r,i.config,i.performanceClient,i.logger),f={...r,...a};r.redirectUri&&(f.redirectUri=i.getRedirectUri(r.redirectUri));const v=i.initializeServerTelemetryManager(Ae.sA.acquireTokenSilent_silentFlow),w=yield i.createRefreshTokenClient({serverTelemetryManager:v,authorityUrl:f.authority,azureCloudOptions:f.azureCloudOptions,account:f.account});return dt(w.acquireTokenByRefreshToken.bind(w),Me.MX.RefreshTokenClientAcquireTokenByRefreshToken,i.logger,i.performanceClient,r.correlationId)(f).catch(N=>{throw N.setCorrelationId(i.correlationId),v.cacheFailedRequest(N),N})})()}logout(){return Promise.reject((0,K.bD)(ee.v7))}createRefreshTokenClient(r){var i=this;return(0,ne.A)(function*(){const a=yield dt(i.getClientConfiguration.bind(i),Me.MX.StandardInteractionClientGetClientConfiguration,i.logger,i.performanceClient,i.correlationId)({serverTelemetryManager:r.serverTelemetryManager,requestAuthority:r.authorityUrl,requestAzureCloudOptions:r.azureCloudOptions,requestExtraQueryParameters:r.extraQueryParameters,account:r.account});return new Dt(a,i.performanceClient)})()}}class mr{constructor(r,i,a,f){this.isBrowserEnvironment=typeof window<"u",this.config=r,this.storage=i,this.logger=a,this.cryptoObj=f}loadExternalTokens(r,i,a){if(!this.isBrowserEnvironment)throw(0,K.bD)(ee.tI);const f=i.id_token?$e(i.id_token,pr):void 0,v={protocolMode:this.config.auth.protocolMode,knownAuthorities:this.config.auth.knownAuthorities,cloudDiscoveryMetadata:this.config.auth.cloudDiscoveryMetadata,authorityMetadata:this.config.auth.authorityMetadata,skipAuthorityMetadataCache:this.config.auth.skipAuthorityMetadataCache},w=r.authority?new kr(kr.generateAuthority(r.authority,r.azureCloudOptions),this.config.system.networkClient,this.storage,v,this.logger,r.correlationId||(0,Bt.Oy)()):void 0,N=this.loadAccount(r,a.clientInfo||i.client_info||"",f,w),j=this.loadIdToken(i,N.homeAccountId,N.environment,N.realm),W=this.loadAccessToken(r,i,N.homeAccountId,N.environment,N.realm,a),ue=this.loadRefreshToken(i,N.homeAccountId,N.environment);return this.generateAuthenticationResult(r,{account:N,idToken:j,accessToken:W,refreshToken:ue},f,w)}loadAccount(r,i,a,f){if(this.logger.verbose("TokenCache - loading account"),r.account){const j=Kt.createFromAccountInfo(r.account);return this.storage.setAccount(j),j}if(!f||!i&&!a)throw this.logger.error("TokenCache - if an account is not provided on the request, authority and either clientInfo or idToken must be provided instead."),(0,K.bD)(ee.s9);const v=Kt.generateHomeAccountId(i,f.authorityType,this.logger,this.cryptoObj,a),w=a?.tid,N=Js(this.storage,f,v,pr,a,i,f.hostnameAndPort,w,void 0,void 0,this.logger);return this.storage.setAccount(N),N}loadIdToken(r,i,a,f){if(!r.id_token)return this.logger.verbose("TokenCache - no id token found in response"),null;this.logger.verbose("TokenCache - loading id token");const v=ke(i,a,r.id_token,this.config.auth.clientId,f);return this.storage.setIdTokenCredential(v),v}loadAccessToken(r,i,a,f,v,w){if(!i.access_token)return this.logger.verbose("TokenCache - no access token found in response"),null;if(!i.expires_in)return this.logger.error("TokenCache - no expiration set on the access token. Cannot add it to the cache."),null;if(!(i.scope||r.scopes&&r.scopes.length))return this.logger.error("TokenCache - scopes not specified in the request or response. Cannot add token to the cache."),null;this.logger.verbose("TokenCache - loading access token");const N=i.scope?An.fromString(i.scope):new An(r.scopes),j=w.expiresOn||i.expires_in+(new Date).getTime()/1e3,W=w.extendedExpiresOn||(i.ext_expires_in||i.expires_in)+(new Date).getTime()/1e3,ue=lt(a,f,i.access_token,this.config.auth.clientId,v,N.printScopes(),j,W,pr);return this.storage.setAccessTokenCredential(ue),ue}loadRefreshToken(r,i,a){if(!r.refresh_token)return this.logger.verbose("TokenCache - no refresh token found in response"),null;this.logger.verbose("TokenCache - loading refresh token");const f=Ht(i,a,r.refresh_token,this.config.auth.clientId,r.foci,void 0,r.refresh_token_expires_in);return this.storage.setRefreshTokenCredential(f),f}generateAuthenticationResult(r,i,a,f){let j,v="",w=[],N=null;i?.accessToken&&(v=i.accessToken.secret,w=An.fromString(i.accessToken.target).asArray(),N=new Date(1e3*Number(i.accessToken.expiresOn)),j=new Date(1e3*Number(i.accessToken.extendedExpiresOn)));const W=i.account;return{authority:f?f.canonicalAuthority:"",uniqueId:i.account.localAccountId,tenantId:i.account.realm,scopes:w,account:W.getAccountInfo(),idToken:i.idToken?.secret||"",idTokenClaims:a||{},accessToken:v,fromCache:!0,expiresOn:N,correlationId:r.correlationId||"",requestId:"",extExpiresOn:j,familyId:i.refreshToken?.familyId||"",tokenType:i?.accessToken?.tokenType||"",state:r.state||"",cloudGraphHostName:W.cloudGraphHostName||"",msGraphHost:W.msGraphHost||"",fromNativeBroker:!1}}}class ys extends ka{constructor(r){super(r),this.includeRedirectUri=!1}}class oa extends zo{constructor(r,i,a,f,v,w,N,j,W,ue){super(r,i,a,f,v,w,j,W,ue),this.apiId=N}acquireToken(r){var i=this;return(0,ne.A)(function*(){if(!r.code)throw(0,K.bD)(ee.R3);const a=yield dt(i.initializeAuthorizationRequest.bind(i),Me.MX.StandardInteractionClientInitializeAuthorizationRequest,i.logger,i.performanceClient,r.correlationId)(r,Ae.X8.Silent),f=i.initializeServerTelemetryManager(i.apiId);try{const v={...a,code:r.code},w=yield dt(i.getClientConfiguration.bind(i),Me.MX.StandardInteractionClientGetClientConfiguration,i.logger,i.performanceClient,r.correlationId)({serverTelemetryManager:f,requestAuthority:a.authority,requestAzureCloudOptions:a.azureCloudOptions,requestExtraQueryParameters:a.extraQueryParameters,account:a.account}),N=new ys(w);i.logger.verbose("Auth code client created");const j=new er(N,i.browserStorage,v,i.logger,i.performanceClient);return yield dt(j.handleCodeResponseFromServer.bind(j),Me.MX.HandleCodeResponseFromServer,i.logger,i.performanceClient,r.correlationId)({code:r.code,msgraph_host:r.msGraphHost,cloud_graph_host_name:r.cloudGraphHostName,cloud_instance_host_name:r.cloudInstanceHostName},a,!1)}catch(v){throw v instanceof Zn.lR&&(v.setCorrelationId(i.correlationId),f.cacheFailedRequest(v)),v}})()}logout(){return Promise.reject((0,K.bD)(ee.v7))}}function Wr(b){const r=b?.idTokenClaims;return r?.tfp||r?.acr?"B2C":r?.tid?"9188040d-6c67-4c5b-b112-36a304b66dad"===r?.tid?"MSA":"AAD":void 0}function Qo(b,r){try{(0,it.Q3)(b)}catch(i){throw r.end({success:!1},i),i}}class hc{constructor(r){this.operatingContext=r,this.isBrowserEnvironment=this.operatingContext.
1isBrowserEnvironment(),this.config=r.getConfig(),this.initialized=!1,this.logger=this.operatingContext.getLogger(),this.networkClient=this.config.system.networkClient,this.navigationClient=this.config.system.navigationClient,this.redirectResponse=new Map,this.hybridAuthCodeResponses=new Map,this.performanceClient=this.config.telemetry.client,this.browserCrypto=this.isBrowserEnvironment?new Da(this.logger,this.performanceClient):Tt,this.eventHandler=new fo(this.logger),this.browserStorage=this.isBrowserEnvironment?new Oi(this.config.auth.clientId,this.config.cache,this.browserCrypto,this.logger,function ho(b){const r=b.cloudDiscoveryMetadata;let i;if(r)try{i=JSON.parse(r)}catch{throw(0,Pt.aD)(vn.a_)}return{canonicalAuthority:b.authority?vi(b.authority):void 0,knownAuthorities:b.knownAuthorities,cloudDiscoveryMetadata:i}}(this.config.auth),this.performanceClient):((b,r)=>new Oi(this.config.auth.clientId,{cacheLocation:Ae.Al.MemoryStorage,temporaryCacheLocation:Ae.Al.MemoryStorage,storeAuthStateInCookie:!1,secureCookies:!1,cacheMigrationEnabled:!1,claimsBasedCachingEnabled:!1},Tt,this.logger))(),this.nativeInternalStorage=new Oi(this.config.auth.clientId,{cacheLocation:Ae.Al.MemoryStorage,temporaryCacheLocation:Ae.Al.MemoryStorage,storeAuthStateInCookie:!1,secureCookies:!1,cacheMigrationEnabled:!1,claimsBasedCachingEnabled:!1},this.browserCrypto,this.logger,void 0,this.performanceClient),this.tokenCache=new mr(this.config,this.browserStorage,this.logger,this.browserCrypto),this.activeSilentTokenRequests=new Map,this.trackPageVisibility=this.trackPageVisibility.bind(this),this.trackPageVisibilityWithMeasurement=this.trackPageVisibilityWithMeasurement.bind(this),this.listeningToStorageEvents=!1,this.handleAccountCacheChange=this.handleAccountCacheChange.bind(this)}static createController(r,i){return(0,ne.A)(function*(){const a=new hc(r);return yield a.initialize(i),a})()}trackPageVisibility(r){r&&(this.logger.info("Perf: Visibility change detected"),this.performanceClient.incrementFields({visibilityChangeCount:1},r))}initialize(r){var i=this;return(0,ne.A)(function*(){if(i.logger.trace("initialize called"),i.initialized)return void i.logger.info("initialize has already been called, exiting early.");if(!i.isBrowserEnvironment)return i.logger.info("in non-browser environment, exiting early."),i.initialized=!0,void i.eventHandler.emitEvent(Le.B.INITIALIZE_END);const a=r?.correlationId||i.getRequestCorrelationId(),f=i.config.system.allowNativeBroker,v=i.performanceClient.startMeasurement(Me.MX.InitializeClientApplication,a);if(i.eventHandler.emitEvent(Le.B.INITIALIZE_START),f)try{i.nativeExtensionProvider=yield en.createProvider(i.logger,i.config.system.nativeBrokerHandshakeTimeout,i.performanceClient)}catch(w){i.logger.verbose(w)}i.config.cache.claimsBasedCachingEnabled||(i.logger.verbose("Claims-based caching is disabled. Clearing the previous cache with claims"),yield dt(i.browserStorage.clearTokensAndKeysWithClaims.bind(i.browserStorage),Me.MX.ClearTokensAndKeysWithClaims,i.logger,i.performanceClient,a)(i.performanceClient,a)),i.initialized=!0,i.eventHandler.emitEvent(Le.B.INITIALIZE_END),v.end({allowNativeBroker:f,success:!0})})()}handleRedirectPromise(r){var i=this;return(0,ne.A)(function*(){if(i.logger.verbose("handleRedirectPromise called"),(0,it.uh)(i.initialized),i.isBrowserEnvironment){const a=r||"";let f=i.redirectResponse.get(a);return typeof f>"u"?(f=i.handleRedirectPromiseInternal(r),i.redirectResponse.set(a,f),i.logger.verbose("handleRedirectPromise has been called for the first time, storing the promise")):i.logger.verbose("handleRedirectPromise has been called previously, returning the result from the first call"),f}return i.logger.verbose("handleRedirectPromise returns null, not browser environment"),null})()}handleRedirectPromiseInternal(r){var i=this;return(0,ne.A)(function*(){const a=i.getAllAccounts(),f=i.browserStorage.getCachedNativeRequest(),v=f&&en.isNativeAvailable(i.config,i.logger,i.nativeExtensionProvider)&&i.nativeExtensionProvider&&!r,w=v?f?.correlationId:i.browserStorage.getTemporaryCache(Ae._p.CORRELATION_ID,!0)||"",N=i.performanceClient.startMeasurement(Me.MX.AcquireTokenRedirect,w);let j;if(i.eventHandler.emitEvent(Le.B.HANDLE_REDIRECT_START,Ae.X8.Redirect),v&&i.nativeExtensionProvider){i.logger.trace("handleRedirectPromise - acquiring token from native platform");const W=new jn(i.config,i.browserStorage,i.browserCrypto,i.logger,i.eventHandler,i.navigationClient,Ae.sA.handleRedirectPromise,i.performanceClient,i.nativeExtensionProvider,f.accountId,i.nativeInternalStorage,f.correlationId);j=dt(W.handleRedirectPromise.bind(W),Me.MX.HandleNativeRedirectPromiseMeasurement,i.logger,i.performanceClient,N.event.correlationId)(i.performanceClient,N.event.correlationId)}else{i.logger.trace("handleRedirectPromise - acquiring token from web flow");const W=i.createRedirectClient(w);j=dt(W.handleRedirectPromise.bind(W),Me.MX.HandleRedirectPromiseMeasurement,i.logger,i.performanceClient,N.event.correlationId)(r,N)}return j.then(W=>(W?(a.length<i.getAllAccounts().length?(i.eventHandler.emitEvent(Le.B.LOGIN_SUCCESS,Ae.X8.Redirect,W),i.logger.verbose("handleRedirectResponse returned result, login success")):(i.eventHandler.emitEvent(Le.B.ACQUIRE_TOKEN_SUCCESS,Ae.X8.Redirect,W),i.logger.verbose("handleRedirectResponse returned result, acquire token success")),N.end({success:!0,accountType:Wr(W.account)})):N.event.errorCode?N.end({success:!1}):N.discard(),i.eventHandler.emitEvent(Le.B.HANDLE_REDIRECT_END,Ae.X8.Redirect),W)).catch(W=>{const ue=W;throw i.eventHandler.emitEvent(a.length>0?Le.B.ACQUIRE_TOKEN_FAILURE:Le.B.LOGIN_FAILURE,Ae.X8.Redirect,null,ue),i.eventHandler.emitEvent(Le.B.HANDLE_REDIRECT_END,Ae.X8.Redirect),N.end({success:!1},ue),W})})()}acquireTokenRedirect(r){var i=this;return(0,ne.A)(function*(){const a=i.getRequestCorrelationId(r);i.logger.verbose("acquireTokenRedirect called",a);const f=i.performanceClient.startMeasurement(Me.MX.AcquireTokenPreRedirect,a);f.add({accountType:Wr(r.account),scenarioId:r.scenarioId});const v=r.onRedirectNavigate;if(v)r.onRedirectNavigate=N=>{const j="function"==typeof v?v(N):void 0;return!1!==j?f.end({success:!0}):f.discard(),j};else{const N=i.config.auth.onRedirectNavigate;i.config.auth.onRedirectNavigate=j=>{const W="function"==typeof N?N(j):void 0;return!1!==W?f.end({success:!0}):f.discard(),W}}const w=i.getAllAccounts().length>0;try{let N;return(0,it.Af)(i.initialized,i.config),i.browserStorage.setInteractionInProgress(!0),i.eventHandler.emitEvent(w?Le.B.ACQUIRE_TOKEN_START:Le.B.LOGIN_START,Ae.X8.Redirect,r),N=i.nativeExtensionProvider&&i.canUseNative(r)?new jn(i.config,i.browserStorage,i.browserCrypto,i.logger,i.eventHandler,i.navigationClient,Ae.sA.acquireTokenRedirect,i.performanceClient,i.nativeExtensionProvider,i.getNativeAccountId(r),i.nativeInternalStorage,a).acquireTokenRedirect(r,f).catch(W=>{if(W instanceof x&&re(W))return i.nativeExtensionProvider=void 0,i.createRedirectClient(a).acquireToken(r);if(W instanceof Mr.CB)return i.logger.verbose("acquireTokenRedirect - Resolving interaction required error thrown by native broker by falling back to web flow"),i.createRedirectClient(a).acquireToken(r);throw i.browserStorage.setInteractionInProgress(!1),W}):i.createRedirectClient(a).acquireToken(r),yield N}catch(N){throw f.end({success:!1},N),i.eventHandler.emitEvent(w?Le.B.ACQUIRE_TOKEN_FAILURE:Le.B.LOGIN_FAILURE,Ae.X8.Redirect,null,N),N}})()}acquireTokenPopup(r){const i=this.getRequestCorrelationId(r),a=this.performanceClient.startMeasurement(Me.MX.AcquireTokenPopup,i);a.add({scenarioId:r.scenarioId,accountType:Wr(r.account)});try{this.logger.verbose("acquireTokenPopup called",i),Qo(this.initialized,a),this.browserStorage.setInteractionInProgress(!0)}catch(w){return Promise.reject(w)}const f=this.getAllAccounts();let v;return this.eventHandler.emitEvent(f.length>0?Le.B.ACQUIRE_TOKEN_START:Le.B.LOGIN_START,Ae.X8.Popup,r),v=this.canUseNative(r)?this.acquireTokenNative({...r,correlationId:i},Ae.sA.acquireTokenPopup).then(w=>
1(this.browserStorage.setInteractionInProgress(!1),a.end({success:!0,isNativeBroker:!0,accountType:Wr(w.account)}),w)).catch(w=>{if(w instanceof x&&re(w))return this.nativeExtensionProvider=void 0,this.createPopupClient(i).acquireToken(r);if(w instanceof Mr.CB)return this.logger.verbose("acquireTokenPopup - Resolving interaction required error thrown by native broker by falling back to web flow"),this.createPopupClient(i).acquireToken(r);throw this.browserStorage.setInteractionInProgress(!1),w}):this.createPopupClient(i).acquireToken(r),v.then(w=>(f.length<this.getAllAccounts().length?this.eventHandler.emitEvent(Le.B.LOGIN_SUCCESS,Ae.X8.Popup,w):this.eventHandler.emitEvent(Le.B.ACQUIRE_TOKEN_SUCCESS,Ae.X8.Popup,w),a.end({success:!0,accessTokenSize:w.accessToken.length,idTokenSize:w.idToken.length,accountType:Wr(w.account)}),w)).catch(w=>(this.eventHandler.emitEvent(f.length>0?Le.B.ACQUIRE_TOKEN_FAILURE:Le.B.LOGIN_FAILURE,Ae.X8.Popup,null,w),a.end({success:!1},w),Promise.reject(w)))}trackPageVisibilityWithMeasurement(){const r=this.ssoSilentMeasurement||this.acquireTokenByCodeAsyncMeasurement;r&&(this.logger.info("Perf: Visibility change detected in ",r.event.name),r.increment({visibilityChangeCount:1}))}ssoSilent(r){var i=this;return(0,ne.A)(function*(){const a=i.getRequestCorrelationId(r),f={...r,prompt:r.prompt,correlationId:a};let v;return i.ssoSilentMeasurement=i.performanceClient.startMeasurement(Me.MX.SsoSilent,a),i.ssoSilentMeasurement?.add({scenarioId:r.scenarioId,accountType:Wr(r.account)}),Qo(i.initialized,i.ssoSilentMeasurement),i.ssoSilentMeasurement?.increment({visibilityChangeCount:0}),document.addEventListener("visibilitychange",i.trackPageVisibilityWithMeasurement),i.logger.verbose("ssoSilent called",a),i.eventHandler.emitEvent(Le.B.SSO_SILENT_START,Ae.X8.Silent,f),v=i.canUseNative(f)?i.acquireTokenNative(f,Ae.sA.ssoSilent).catch(w=>{if(w instanceof x&&re(w))return i.nativeExtensionProvider=void 0,i.createSilentIframeClient(f.correlationId).acquireToken(f);throw w}):i.createSilentIframeClient(f.correlationId).acquireToken(f),v.then(w=>(i.eventHandler.emitEvent(Le.B.SSO_SILENT_SUCCESS,Ae.X8.Silent,w),i.ssoSilentMeasurement?.end({success:!0,isNativeBroker:w.fromNativeBroker,accessTokenSize:w.accessToken.length,idTokenSize:w.idToken.length,accountType:Wr(w.account)}),w)).catch(w=>{throw i.eventHandler.emitEvent(Le.B.SSO_SILENT_FAILURE,Ae.X8.Silent,null,w),i.ssoSilentMeasurement?.end({success:!1},w),w}).finally(()=>{document.removeEventListener("visibilitychange",i.trackPageVisibilityWithMeasurement)})})()}acquireTokenByCode(r){var i=this;return(0,ne.A)(function*(){const a=i.getRequestCorrelationId(r);i.logger.trace("acquireTokenByCode called",a);const f=i.performanceClient.startMeasurement(Me.MX.AcquireTokenByCode,a);Qo(i.initialized,f),i.eventHandler.emitEvent(Le.B.ACQUIRE_TOKEN_BY_CODE_START,Ae.X8.Silent,r),f.add({scenarioId:r.scenarioId});try{if(r.code&&r.nativeAccountId)throw(0,K.bD)(ee.$c);if(r.code){const v=r.code;let w=i.hybridAuthCodeResponses.get(v);return w?(i.logger.verbose("Existing acquireTokenByCode request found",a),f.discard()):(i.logger.verbose("Initiating new acquireTokenByCode request",a),w=i.acquireTokenByCodeAsync({...r,correlationId:a}).then(N=>(i.eventHandler.emitEvent(Le.B.ACQUIRE_TOKEN_BY_CODE_SUCCESS,Ae.X8.Silent,N),i.hybridAuthCodeResponses.delete(v),f.end({success:!0,isNativeBroker:N.fromNativeBroker,accessTokenSize:N.accessToken.length,idTokenSize:N.idToken.length,accountType:Wr(N.account)}),N)).catch(N=>{throw i.hybridAuthCodeResponses.delete(v),i.eventHandler.emitEvent(Le.B.ACQUIRE_TOKEN_BY_CODE_FAILURE,Ae.X8.Silent,null,N),f.end({success:!1},N),N}),i.hybridAuthCodeResponses.set(v,w)),yield w}if(r.nativeAccountId){if(i.canUseNative(r,r.nativeAccountId)){const v=yield i.acquireTokenNative({...r,correlationId:a},Ae.sA.acquireTokenByCode,r.nativeAccountId).catch(w=>{throw w instanceof x&&re(w)&&(i.nativeExtensionProvider=void 0),w});return f.end({accountType:Wr(v.account),success:!0}),v}throw(0,K.bD)(ee.gU)}throw(0,K.bD)(ee.xp)}catch(v){throw i.eventHandler.emitEvent(Le.B.ACQUIRE_TOKEN_BY_CODE_FAILURE,Ae.X8.Silent,null,v),f.end({success:!1},v),v}})()}acquireTokenByCodeAsync(r){var i=this;return(0,ne.A)(function*(){return i.logger.trace("acquireTokenByCodeAsync called",r.correlationId),i.acquireTokenByCodeAsyncMeasurement=i.performanceClient.startMeasurement(Me.MX.AcquireTokenByCodeAsync,r.correlationId),i.acquireTokenByCodeAsyncMeasurement?.increment({visibilityChangeCount:0}),document.addEventListener("visibilitychange",i.trackPageVisibilityWithMeasurement),yield i.createSilentAuthCodeClient(r.correlationId).acquireToken(r).then(v=>(i.acquireTokenByCodeAsyncMeasurement?.end({success:!0,fromCache:v.fromCache,isNativeBroker:v.fromNativeBroker}),v)).catch(v=>{throw i.acquireTokenByCodeAsyncMeasurement?.end({success:!1},v),v}).finally(()=>{document.removeEventListener("visibilitychange",i.trackPageVisibilityWithMeasurement)})})()}acquireTokenFromCache(r,i){var a=this;return(0,ne.A)(function*(){switch(a.performanceClient.addQueueMeasurement(Me.MX.AcquireTokenFromCache,r.correlationId),i){case Ae.nN.Default:case Ae.nN.AccessToken:case Ae.nN.AccessTokenAndRefreshToken:const f=a.createSilentCacheClient(r.correlationId);return dt(f.acquireToken.bind(f),Me.MX.SilentCacheClientAcquireToken,a.logger,a.performanceClient,r.correlationId)(r);default:throw(0,te.SB)(_e.wb)}})()}acquireTokenByRefreshToken(r,i){var a=this;return(0,ne.A)(function*(){switch(a.performanceClient.addQueueMeasurement(Me.MX.AcquireTokenByRefreshToken,r.correlationId),i){case Ae.nN.Default:case Ae.nN.AccessTokenAndRefreshToken:case Ae.nN.RefreshToken:case Ae.nN.RefreshTokenAndNetwork:const f=a.createSilentRefreshClient(r.correlationId);return dt(f.acquireToken.bind(f),Me.MX.SilentRefreshClientAcquireToken,a.logger,a.performanceClient,r.correlationId)(r);default:throw(0,te.SB)(_e.wb)}})()}acquireTokenBySilentIframe(r){var i=this;return(0,ne.A)(function*(){i.performanceClient.addQueueMeasurement(Me.MX.AcquireTokenBySilentIframe,r.correlationId);const a=i.createSilentIframeClient(r.correlationId);return dt(a.acquireToken.bind(a),Me.MX.SilentIframeClientAcquireToken,i.logger,i.performanceClient,r.correlationId)(r)})()}logout(r){var i=this;return(0,ne.A)(function*(){const a=i.getRequestCorrelationId(r);return i.logger.warning("logout API is deprecated and will be removed in msal-browser v3.0.0. Use logoutRedirect instead.",a),i.logoutRedirect({correlationId:a,...r})})()}logoutRedirect(r){var i=this;return(0,ne.A)(function*(){const a=i.getRequestCorrelationId(r);return(0,it.Af)(i.initialized,i.config),i.browserStorage.setInteractionInProgress(!0),i.createRedirectClient(a).logout(r)})()}logoutPopup(r){try{const i=this.getRequestCorrelationId(r);return(0,it.Q3)(this.initialized),this.browserStorage.setInteractionInProgress(!0),this.createPopupClient(i).logout(r)}catch(i){return Promise.reject(i)}}clearCache(r){var i=this;return(0,ne.A)(function*(){if(!i.isBrowserEnvironment)return void i.logger.info("in non-browser environment, returning early.");const a=i.getRequestCorrelationId(r);return i.createSilentCacheClient(a).logout(r)})()}getAllAccounts(r){return function wo(b,r,i,a){return b.verbose("getAllAccounts called"),i?r.getAllAccounts(a):[]}(this.logger,this.browserStorage,this.isBrowserEnvironment,r)}getAccount(r){return function Ao(b,r,i){if(r.trace("getAccount called"),0===Object.keys(b).length)return r.warning("getAccount: No accountFilter provided"),null;const a=i.getAccountInfoFilteredBy(b);return a?(r.verbose("getAccount: Account matching provided filter found, returning"),a):(r.verbose("getAccount: No matching account found, returning null"),null)}(r,this.logger,this.browserStorage)}getAccountByUsername(r){return function Xs(b,r,i){if(r.trace("getAccountByUsername called"),!b)return r.warning("getAccountByUsername: No username provided"),null;const a=i.getAccountInfoFilteredBy({username:b});return a?(r.verbose("getAccountByUsername: Account matching username found, returning"),r.verbosePii(`getAccountByUsername: Returning signed-in accounts matching username: ${b}`),a):(r.verbose("getAccountByUsername: No matching account found, returning null"),null)}(r,this.logger,this.browserStorage)}getAccountByHomeId(r){return function Uo(b,r,i){if(r.trace("getAccountByHomeId called"),!b)return r.warning("getAccountByHomeId: No homeAccountId provided"),null;const a=i.getAccountInfoFilteredBy({homeAccountId:b});return a?(r.verbose("getAccountByHomeId: Account matching homeAccountId found, returning"),r.verbosePii(`getAccountByHomeId: Returning signed-in accounts matching homeAccountId: ${b}`),a):(r.verbose("getAccountByHomeId: No matching account found, returning null"),null)}(r,this.logger,this.browserStorage)}getAccountByLocalId(r){return function Ho(b,r,i){if(r.trace("getAccountByLocalId called"),!b)return r.warning("getAccountByLocalId: No localAccountId provided"),null;const a=i.getAccountInfoFilteredBy({localAccountId:b});return a?(r.verbose("getAccountByLocalId: Account matching localAccountId found, returning"),r.verbosePii(`getAccountByLocalId: Returning signed-in accounts matching localAccountId: ${b}`),a):(r.verbose("getAccountByLocalId: No matching account found, returning null"),null)}(r,this.logger,this.browserStorage)}setActiveAccount(r){!function oi(b,r){r.setActiveAccount(b)}(r,this.browserStorage)}getActiveAccount(){return function cs(b){return b.getActiveAccount()}(this.browserStorage)}hydrateCache(r,i){var a=this;return(0,ne.A)(function*(){a.logger.verbose("hydrateCache called");const f=Kt.createFromAccountInfo(r.account,r.cloudGraphHostName,r.msGraphHost);return a.browserStorage.setAccount(f),r.fromNativeBroker?(a.logger.verbose("Response was from native broker, storing in-memory"),a.nativeInternalStorage.hydrateCache(r,i)):a.browserStorage.hydrateCache(r,i)})()}acquireTokenNative(r,i,a){var f=this;return(0,ne.A)(function*(){if(f.logger.trace("acquireTokenNative called"),!f.nativeExtensionProvider)throw(0,K.bD)(ee.XC);return new jn(f.config,f.browserStorage,f.browserCrypto,f.logger,f.eventHandler,f.navigationClient,i,f.performanceClient,f.nativeExtensionProvider,a||f.getNativeAccountId(r),f.nativeInternalStorage,r.correlationId).acquireToken(r)})()}canUseNative(r,i){if(this.logger.trace("canUseNative called"),!en.isNativeAvailable(this.config,this.logger,this.nativeExtensionProvider,r.authenticationScheme))return this.logger.trace("canUseNative: isNativeAvailable returned false, returning false"),!1;if(r.prompt)switch(r.prompt){case F._M.NONE:case F._M.CONSENT:case F._M.LOGIN:this.logger.trace("canUseNative: prompt is compatible with native flow");break;default:return this.logger.trace(`canUseNative: prompt = ${r.prompt} is not compatible with native flow, returning false`),!1}return!(!i&&!this.getNativeAccountId(r)&&(this.logger.trace("canUseNative: nativeAccountId is not available, returning false"),1))}getNativeAccountId(r){const i=r.account||this.getAccount({loginHint:r.loginHint,sid:r.sid})||this.getActiveAccount();return i&&i.nativeAccountId||""}createPopupClient(r){return new ht(this.config,this.browserStorage,this.browserCrypto,this.logger,this.eventHandler,this.navigationClient,this.performanceClient,this.nativeInternalStorage,this.nativeExtensionProvider,r)}createRedirectClient(r){return new lr(this.config,this.browserStorage,this.browserCrypto,this.logger,this.eventHandler,this.navigationClient,this.performanceClient,this.nativeInternalStorage,this.nativeExtensionProvider,r)}createSilentIframeClient(r){return new dc(this.config,this.browserStorage,this.browserCrypto,this.logger,this.eventHandler,this.navigationClient,Ae.sA.ssoSilent,this.performanceClient,this.nativeInternalStorage,this.nativeExtensionProvider,r)}createSilentCacheClient(r){return new qn(this.config,this.browserStorage,this.browserCrypto,this.logger,this.eventHandler,this.navigationClient,this.performanceClient,this.nativeExtensionProvider,r)}createSilentRefreshClient(r){return new Xo(this.config,this.browserStorage,this.browserCrypto,this.logger,this.eventHandler,this.navigationClient,this.performanceClient,this.nativeExtensionProvider,r)}createSilentAuthCodeClient(r){return new oa(this.config,this.browserStorage,this.browserCrypto,this.logger,this.eventHandler,this.navigationClient,Ae.sA.acquireTokenByCode,this.performanceClient,this.nativeExtensionProvider,r)}addEventCallback(r,i){return this.eventHandler.addEventCallback(r,i)}removeEventCallback(r){this.eventHandler.removeEventCallback(r)}addPerformanceCallback(r){return(0,it.EZ)(),this.performanceClient.addPerformanceCallback(r)}removePerformanceCallback(r){return this.performanceClient.removePerformanceCallback(r)}enableAccountStorageEvents(){typeof window>"u"||(this.listeningToStorageEvents?this.logger.verbose("Account storage listener already registered."):(this.logger.verbose("Adding account storage listener."),this.listeningToStorageEvents=!0,window.addEventListener("storage",this.handleAccountCacheChange)))}disableAccountStorageEvents(){typeof window>"u"||(this.listeningToStorageEvents?(this.logger.verbose("Removing account storage listener."),window.removeEventListener("storage",this.handleAccountCacheChange),this.listeningToStorageEvents=!1):this.logger.verbose("No account storage listener registered."))}handleAccountCacheChange(r){try{r.key?.includes(F.Gd.ACTIVE_ACCOUNT_FILTERS)&&this.eventHandler.emitEvent(Le.B.ACTIVE_ACCOUNT_CHANGED);const i=r.newValue||r.oldValue;if(!i)return;const a=JSON.parse(i);
1if("object"!=typeof a||!Kt.isAccountEntity(a))return;const v=Fn.toObject(new Kt,a).getAccountInfo();!r.oldValue&&r.newValue?(this.logger.info("Account was added to cache in a different window"),this.eventHandler.emitEvent(Le.B.ACCOUNT_ADDED,void 0,v)):!r.newValue&&r.oldValue&&(this.logger.info("Account was removed from cache in a different window"),this.eventHandler.emitEvent(Le.B.ACCOUNT_REMOVED,void 0,v))}catch{return}}getTokenCache(){return this.tokenCache}getLogger(){return this.logger}setLogger(r){this.logger=r}initializeWrapperLibrary(r,i){this.browserStorage.setWrapperMetadata(r,i)}setNavigationClient(r){this.navigationClient=r}getConfiguration(){return this.config}getPerformanceClient(){return this.performanceClient}isBrowserEnv(){return this.isBrowserEnvironment}getRequestCorrelationId(r){return r?.correlationId?r.correlationId:this.isBrowserEnvironment?(0,Bt.Oy)():F.YM.EMPTY_STRING}loginRedirect(r){var i=this;return(0,ne.A)(function*(){const a=i.getRequestCorrelationId(r);return i.logger.verbose("loginRedirect called",a),i.acquireTokenRedirect({correlationId:a,...r||Ae.uq})})()}loginPopup(r){const i=this.getRequestCorrelationId(r);return this.logger.verbose("loginPopup called",i),this.acquireTokenPopup({correlationId:i,...r||Ae.uq})}acquireTokenSilent(r){var i=this;return(0,ne.A)(function*(){const a=i.getRequestCorrelationId(r),f=i.performanceClient.startMeasurement(Me.MX.AcquireTokenSilent,a);f.add({cacheLookupPolicy:r.cacheLookupPolicy,scenarioId:r.scenarioId}),Qo(i.initialized,f),i.logger.verbose("acquireTokenSilent called",a);const v=r.account||i.getActiveAccount();if(!v)throw(0,K.bD)(ee.rR);f.add({accountType:Wr(v)});const N=JSON.stringify({clientId:i.config.auth.clientId,authority:r.authority||F.YM.EMPTY_STRING,scopes:r.scopes,homeAccountIdentifier:v.homeAccountId,claims:r.claims,authenticationScheme:r.authenticationScheme,resourceRequestMethod:r.resourceRequestMethod,resourceRequestUri:r.resourceRequestUri,shrClaims:r.shrClaims,sshKid:r.sshKid,shrOptions:r.shrOptions}),j=i.activeSilentTokenRequests.get(N);if(typeof j>"u"){i.logger.verbose("acquireTokenSilent called for the first time, storing active request",a);const W=dt(i.acquireTokenSilentAsync.bind(i),Me.MX.AcquireTokenSilentAsync,i.logger,i.performanceClient,a)({...r,correlationId:a},v).then(ue=>(i.activeSilentTokenRequests.delete(N),f.end({success:!0,fromCache:ue.fromCache,isNativeBroker:ue.fromNativeBroker,cacheLookupPolicy:r.cacheLookupPolicy,accessTokenSize:ue.accessToken.length,idTokenSize:ue.idToken.length}),ue)).catch(ue=>{throw i.activeSilentTokenRequests.delete(N),f.end({success:!1},ue),ue});return i.activeSilentTokenRequests.set(N,W),{...yield W,state:r.state}}return i.logger.verbose("acquireTokenSilent has been called previously, returning the result from the first call",a),f.discard(),{...yield j,state:r.state}})()}acquireTokenSilentAsync(r,i){var a=this;return(0,ne.A)(function*(){const f=()=>a.trackPageVisibility(r.correlationId);a.performanceClient.addQueueMeasurement(Me.MX.AcquireTokenSilentAsync,r.correlationId),a.eventHandler.emitEvent(Le.B.ACQUIRE_TOKEN_START,Ae.X8.Silent,r),r.correlationId&&a.performanceClient.incrementFields({visibilityChangeCount:0},r.correlationId),document.addEventListener("visibilitychange",f);const v=yield dt(pi,Me.MX.InitializeSilentRequest,a.logger,a.performanceClient,r.correlationId)(r,i,a.config,a.performanceClient,a.logger),w=r.cacheLookupPolicy||Ae.nN.Default;return a.acquireTokenSilentNoIframe(v,w).catch(function(){var j=(0,ne.A)(function*(W){if(function qo(b,r){const f=!(b instanceof Mr.CB&&b.subError!==zi.j9)&&(b.errorCode===Ae.Q1.INVALID_GRANT_ERROR||b.errorCode===_e.wb)||b.errorCode===zi.oF||b.errorCode===zi.AG,v=Ae.JE.includes(r);return f&&v}(W,w)){if(a.activeIframeRequest){if(w!==Ae.nN.Skip){const[Ke,rt]=a.activeIframeRequest;a.logger.verbose(`Iframe request is already in progress, awaiting resolution for request with correlationId: ${rt}`,v.correlationId);const _t=a.performanceClient.startMeasurement(Me.MX.AwaitConcurrentIframe,v.correlationId);_t.add({awaitIframeCorrelationId:rt});const u=yield Ke;if(_t.end({success:u}),u)return a.logger.verbose(`Parallel iframe request with correlationId: ${rt}
1 succeeded. Retrying cache and/or RT redemption`,v.correlationId),a.acquireTokenSilentNoIframe(v,w);throw a.logger.info(`Iframe request with correlationId: ${rt} failed. Interaction is required.`),W}return a.logger.warning("Another iframe request is currently in progress and CacheLookupPolicy is set to Skip. This may result in degraded performance and/or reliability for both calls. Please consider changing the CacheLookupPolicy to take advantage of request queuing and token cache.",v.correlationId),dt(a.acquireTokenBySilentIframe.bind(a),Me.MX.AcquireTokenBySilentIframe,a.logger,a.performanceClient,v.correlationId)(v)}{let Ke;return a.activeIframeRequest=[new Promise(rt=>{Ke=rt}),v.correlationId],a.logger.verbose("Refresh token expired/invalid or CacheLookupPolicy is set to Skip, attempting acquire token by iframe.",v.correlationId),dt(a.acquireTokenBySilentIframe.bind(a),Me.MX.AcquireTokenBySilentIframe,a.logger,a.performanceClient,v.correlationId)(v).then(rt=>(Ke(!0),rt)).catch(rt=>{throw Ke(!1),rt}).finally(()=>{a.activeIframeRequest=void 0})}}throw W});return function(W){return j.apply(this,arguments)}}()).then(j=>(a.eventHandler.emitEvent(Le.B.ACQUIRE_TOKEN_SUCCESS,Ae.X8.Silent,j),r.correlationId&&a.performanceClient.addFields({fromCache:j.fromCache,isNativeBroker:j.fromNativeBroker},r.correlationId),j)).catch(j=>{throw a.eventHandler.emitEvent(Le.B.ACQUIRE_TOKEN_FAILURE,Ae.X8.Silent,null,j),j}).finally(()=>{document.removeEventListener("visibilitychange",f)})})()}acquireTokenSilentNoIframe(r,i){var a=this;return(0,ne.A)(function*(){return en.isNativeAvailable(a.config,a.logger,a.nativeExtensionProvider,r.authenticationScheme)&&r.account.nativeAccountId?(a.logger.verbose("acquireTokenSilent - attempting to acquire token from native platform"),a.acquireTokenNative(r,Ae.sA.acquireTokenSilent_silentFlow).catch(function(){var f=(0,ne.A)(function*(v){throw v instanceof x&&re(v)?(a.logger.verbose("acquireTokenSilent - native platform unavailable, falling back to web flow"),a.nativeExtensionProvider=void 0,(0,te.SB)(_e.wb)):v});return function(v){return f.apply(this,arguments)}}())):(a.logger.verbose("acquireTokenSilent - attempting to acquire token from web flow"),dt(a.acquireTokenFromCache.bind(a),Me.MX.AcquireTokenFromCache,a.logger,a.performanceClient,r.correlationId)(r,i).catch(f=>{if(i===Ae.nN.AccessToken)throw f;return a.eventHandler.emitEvent(Le.B.ACQUIRE_TOKEN_NETWORK_START,Ae.X8.Silent,r),dt(a.acquireTokenByRefreshToken.bind(a),Me.MX.AcquireTokenByRefreshToken,a.logger,a.performanceClient,r.correlationId)(r,i)}))})()}}function No(){return(No=(0,ne.A)(function*(b,r){const i=new Er(b);return yield i.initialize(),hc.createController(i,r)})).apply(this,arguments)}class nr{static createPublicClientApplication(r){return(0,ne.A)(function*(){const i=yield function qi(b,r){return No.apply(this,arguments)}(r);return new nr(r,i)})()}constructor(r,i){this.controller=i||new hc(new Er(r))}initialize(r){var i=this;return(0,ne.A)(function*(){return i.controller.initialize(r)})()}acquireTokenPopup(r){var i=this;return(0,ne.A)(function*(){return i.controller.acquireTokenPopup(r)})()}acquireTokenRedirect(r){return this.controller.acquireTokenRedirect(r)}acquireTokenSilent(r){return this.controller.acquireTokenSilent(r)}acquireTokenByCode(r){return this.controller.acquireTokenByCode(r)}addEventCallback(r,i){return this.controller.addEventCallback(r,i)}removeEventCallback(r){return this.controller.removeEventCallback(r)}addPerformanceCallback(r){return this.controller.addPerformanceCallback(r)}removePerformanceCallback(r){return this.controller.removePerformanceCallback(r)}enableAccountStorageEvents(){this.controller.enableAccountStorageEvents()}disableAccountStorageEvents(){this.controller.disableAccountStorageEvents()}getAccount(r){return this.controller.getAccount(r)}getAccountByHomeId(r){return this.controller.getAccountByHomeId(r)}getAccountByLocalId(r){return this.controller.getAccountByLocalId(r)}getAccountByUsername(r){return this.controller.getAccountByUsername(r)}getAllAccounts(r){return this.controller.getAllAccounts(r)}handleRedirectPromise(r){return this.controller.handleRedirectPromise(r)}loginPopup(r){return this.controller.loginPopup(r)}loginRedirect(r){return this.controller.loginRedirect(r)}logout(r){return this.controller.logout(r)}logoutRedirect(r){return this.controller.logoutRedirect(r)}logoutPopup(r){return this.controller.logoutPopup(r)}ssoSilent(r){return this.controller.ssoSilent(r)}getTokenCache(){return this.controller.getTokenCache()}getLogger(){return this.controller.getLogger()}setLogger(r){this.controller.setLogger(r)}setActiveAccount(r){this.controller.setActiveAccount(r)}getActiveAccount(){return this.controller.getActiveAccount()}initializeWrapperLibrary(r,i){return this.controller.initializeWrapperLibrary(r,i)}setNavigationClient(r){this.controller.setNavigationClient(r)}getConfiguration(){return this.controller.getConfiguration()}hydrateCache(r,i){var a=this;return(0,ne.A)(function*(){return a.controller.hydrateCache(r,i)})()}clearCache(r){return this.controller.clearCache(r)}}var fc=I(3985);let Vr=(()=>{class b{constructor(i){this.userService=i}intercept(i,a){let f=i,v=this.userService.getUser();return v&&i.url.includes(q.c.apiBaseUri)&&(f=i.clone({setHeaders:{operationuser:v.userName,"p-appKey":q.c.appKey}})),a.handle(f)}static#e=this.\u0275fac=function(a){return new(a||b)(g.KVO(fc.D))};static#t=this.\u0275prov=g.jDH({token:b,factory:b.\u0275fac})}return b})();var Nr=I(9861);let pc=(()=>{class b{constructor(i){this.injector=i}intercept(i,a){let f=i;try{const v=this.injector.get(wt.c$);if(i.url.includes("/mksm/")&&v.currentLang&&v.currentLang!==v.defaultLang)if("post"===i.method.toLowerCase()||"put"===i.method.toLowerCase()){const w={...i.body,lang:v.currentLang};f=i.clone({body:w})}else f=i.clone({params:(i.params?i.params:new et.Nl).set("lang",v.currentLang)})}catch{}return a.handle(f)}static#e=this.\u0275fac=function(a){return new(a||b)(g.KVO(g.zZn))};static#t=this.\u0275prov=g.jDH({token:b,factory:b.\u0275fac})}return b})();var Gt=I(9969);function xi(b){return new g.wOt(3e3,!1)}function Ar(b){switch(b.length){case 0:return new Gt.sf;case 1:return b[0];default:return new Gt.ui(b)}}function bl(b,r,i=new Map,a=new Map){const f=[],v=[];let w=-1,N=null;if(r.forEach(j=>{const W=j.get("offset"),ue=W==w,Ke=ue&&N||new Map;
1j.forEach((rt,_t)=>{let u=_t,y=rt;if("offset"!==_t)switch(u=b.normalizePropertyName(u,f),y){case Gt.FX:y=i.get(_t);break;case Gt.kp:y=a.get(_t);break;default:y=b.normalizeStyleValue(_t,u,y,f)}Ke.set(u,y)}),ue||v.push(Ke),N=Ke,w=W}),f.length)throw function P(b){return new g.wOt(3502,!1)}();return v}function Kc(b,r,i,a){switch(r){case"start":b.onStart(()=>a(i&&Wc(i,"start",b)));break;case"done":b.onDone(()=>a(i&&Wc(i,"done",b)));break;case"destroy":b.onDestroy(()=>a(i&&Wc(i,"destroy",b)))}}function Wc(b,r,i){const v=Tl(b.element,b.triggerName,b.fromState,b.toState,r||b.phaseName,i.totalTime??b.totalTime,!!i.disabled),w=b._data;return null!=w&&(v._data=w),v}function Tl(b,r,i,a,f="",v=0,w){return{element:b,triggerName:r,fromState:i,toState:a,phaseName:f,totalTime:v,disabled:!!w}}function so(b,r,i){let a=b.get(r);return a||b.set(r,a=i),a}function rr(b){const r=b.indexOf(":");return[b.substring(1,r),b.slice(r+1)]}const vc=typeof document>"u"?null:document.documentElement;function ca(b){const r=b.parentNode||b.host||null;return r===vc?null:r}let la=null,ua=!1;function Dl(b,r){for(;r;){if(r===b)return!0;r=ca(r)}return!1}function Td(b,r,i){if(i)return Array.from(b.querySelectorAll(r));const a=b.querySelector(r);return a?[a]:[]}let Sl=(()=>{class b{validateStyleProperty(i){return function Os(b){la||(la=function Uh(){return typeof document<"u"?document.body:null}()||{},ua=!!la.style&&"WebkitAppearance"in la.style);let r=!0;return la.style&&!function Di(b){return"ebkit"==b.substring(1,6)}(b)&&(r=b in la.style,!r&&ua&&(r="Webkit"+b.charAt(0).toUpperCase()+b.slice(1)in la.style)),r}(i)}matchesElement(i,a){return!1}containsElement(i,a){return Dl(i,a)}getParentElement(i){return ca(i)}query(i,a,f){return Td(i,a,f)}computeStyle(i,a,f){return f||""}animate(i,a,f,v,w,N=[],j){return new Gt.sf(f,v)}static#e=this.\u0275fac=function(a){return new(a||b)};static#t=this.\u0275prov=g.jDH({token:b,factory:b.\u0275fac})}return b})();class au{static#e=this.NOOP=new Sl}class wl{}const lu=1e3,zc="ng-enter",Es="ng-leave",rn="ng-trigger",Xc=".ng-trigger",Hh="ng-animating",uu=".ng-animating";function Ps(b){if("number"==typeof b)return b;const r=b.match(/^(-?[\.\d]+)(m?s)/);return!r||r.length<2?0:du(parseFloat(r[1]),r[2])}function du(b,r){return"s"===r?b*lu:b}function Qc(b,r,i){return b.hasOwnProperty("duration")?b:function da(b,r,i){let f,v=0,w="";if("string"==typeof b){const N=b.match(/^(-?[\.\d]+)(m?s)(?:\s+(-?[\.\d]+)(m?s))?(?:\s+([-a-z]+(?:\(.+?\))?))?$/i);if(null===N)return r.push(xi()),{duration:0,delay:0,easing:""};f=du(parseFloat(N[1]),N[2]);const j=N[3];null!=j&&(v=du(parseFloat(j),N[4]));const W=N[5];W&&(w=W)}else f=b;if(!i){let N=!1,j=r.length;f<0&&(r.push(function gc(){return new g.wOt(3100,!1)}()),N=!0),v<0&&(r.push(function vl(){return new g.wOt(3101,!1)}()),N=!0),N&&r.splice(j,0,xi())}return{duration:f,delay:v,easing:w}}(b,r,i)}function Xn(b,r,i){r.forEach((a,f)=>{const v=Fs(f);i&&!i.has(f)&&i.set(f,b.style[v]),b.style[v]=a})}function bs(b,r){r.forEach((i,a)=>{const f=Fs(a);b.style[f]=""})}function La(b){return Array.isArray(b)?1==b.length?b[0]:(0,Gt.K2)(b):b}const On=new RegExp("{{\\s*(.+?)\\s*}}","g");function Il(b){let r=[];if("string"==typeof b){let i;for(;i=On.exec(b);)r.push(i[1]);On.lastIndex=0}return r}function xs(b,r,i){const a=`${b}`,f=a.replace(On,(v,w)=>{let N=r[w];return null==N&&(i.push(function xa(b){return new g.wOt(3003,!1)}()),N=""),N.toString()});return f==a?b:f}const yr=/-+([a-z0-9])/g;function Fs(b){return b.replace(yr,(...r)=>r[1].toUpperCase())}function Fi(b,r,i){switch(r.type){case Gt.If.Trigger:return b.visitTrigger(r,i);case Gt.If.State:return b.visitState(r,i);case Gt.If.Transition:return b.visitTransition(r,i);case Gt.If.Sequence:return b.visitSequence(r,i);case Gt.If.Group:return b.visitGroup(r,i);case Gt.If.Animate:return b.visitAnimate(r,i);case Gt.If.Keyframes:return b.visitKeyframes(r,i);case Gt.If.Style:return b.visitStyle(r,i);case Gt.If.Reference:return b.visitReference(r,i);case Gt.If.AnimateChild:return b.visitAnimateChild(r,i);case Gt.If.AnimateRef:return b.visitAnimateRef(r,i);case Gt.If.Query:return b.visitQuery(r,i);case Gt.If.Stagger:return b.visitStagger(r,i);default:throw function jc(b){return new g.wOt(3004,!1)}()}}function Rl(b,r){return window.getComputedStyle(b)[r]}const jh=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 Ls extends wl{normalizePropertyName(r,i){return Fs(r)}normalizeStyleValue(r,i,a,f){let v="";const w=a.toString().trim();if(jh.has(i)&&0!==a&&"0"!==a)if("number"==typeof a)v="px";else{const N=a.match(/^[+-]?[\d\.]+([a-z]*)$/);N&&0==N[1].length&&f.push(function Cl(b,r){return new g.wOt(3005,!1)}())}return w+v}}const Ua="*";const Ec=new Set(["true","1"]),bc=new Set(["false","0"]);function Yc(b,r){const i=Ec.has(b)||bc.has(b),a=Ec.has(r)||bc.has(r);return(f,v)=>{let w=b==Ua||b==f,N=r==Ua||r==v;return!w&&i&&"boolean"==typeof f&&(w=f?Ec.has(b):bc.has(b)),!N&&a&&"boolean"==typeof v&&(N=v?Ec.has(r):bc.has(r)),w&&N}}const Sd=new RegExp("s*:selfs*,?","g");function Zc(b,r,i,a){return new wd(b).build(r,i,a)}class wd{constructor(r){this._driver=r}build(r,i,a){const f=new Jc(i);return this._resetContextStyleTimingState(f),Fi(this,La(r),f)}_resetContextStyleTimingState(r){r.currentQuerySelector="",r.collectedStyles=new Map,r.collectedStyles.set("",new Map),r.currentTime=0}visitTrigger(r,i){let a=i.queryCount=0,f=i.depCount=0;const v=[],w=[];return"@"==r.name.charAt(0)&&i.errors.push(function mc(){return new g.wOt(3006,!1)}()),r.definitions.forEach(N=>{if(this._resetContextStyleTimingState(i),N.type==Gt.If.State){const j=N,W=j.name;
1W.toString().split(/\s*,\s*/).forEach(ue=>{j.name=ue,v.push(this.visitState(j,i))}),j.name=W}else if(N.type==Gt.If.Transition){const j=this.visitTransition(N,i);a+=j.queryCount,f+=j.depCount,w.push(j)}else i.errors.push(function vs(){return new g.wOt(3007,!1)}())}),{type:Gt.If.Trigger,name:r.name,states:v,transitions:w,queryCount:a,depCount:f,options:null}}visitState(r,i){const a=this.visitStyle(r.styles,i),f=r.options&&r.options.params||null;if(a.containsDynamicStyles){const v=new Set,w=f||{};a.styles.forEach(N=>{N instanceof Map&&N.forEach(j=>{Il(j).forEach(W=>{w.hasOwnProperty(W)||v.add(W)})})}),v.size&&i.errors.push(function ou(b,r){return new g.wOt(3008,!1)}(0,v.values()))}return{type:Gt.If.State,name:r.name,style:a,options:f?{params:f}:null}}visitTransition(r,i){i.queryCount=0,i.depCount=0;const a=Fi(this,La(r.animation),i),f=function $h(b,r){const i=[];return"string"==typeof b?b.split(/\s*,\s*/).forEach(a=>function Gh(b,r,i){if(":"==b[0]){const j=function hu(b,r){switch(b){case":enter":return"void => *";case":leave":return"* => void";case":increment":return(i,a)=>parseFloat(a)>parseFloat(i);case":decrement":return(i,a)=>parseFloat(a)<parseFloat(i);default:return r.push(function C(b){return new g.wOt(3016,!1)}()),"* => *"}}(b,i);if("function"==typeof j)return void r.push(j);b=j}const a=b.match(/^(\*|[-\w]+)\s*(<?[=-]>)\s*(\*|[-\w]+)$/);if(null==a||a.length<4)return i.push(function bd(b){return new g.wOt(3015,!1)}()),r;const f=a[1],v=a[2],w=a[3];r.push(Yc(f,w)),"<"==v[0]&&(f!=Ua||w!=Ua)&&r.push(Yc(w,f))}(a,i,r)):i.push(b),i}(r.expr,i.errors);return{type:Gt.If.Transition,matchers:f,animation:a,queryCount:i.queryCount,depCount:i.depCount,options:Co(r.options)}}visitSequence(r,i){return{type:Gt.If.Sequence,steps:r.steps.map(a=>Fi(this,a,i)),options:Co(r.options)}}visitGroup(r,i){const a=i.currentTime;let f=0;const v=r.steps.map(w=>{i.currentTime=a;const N=Fi(this,w,i);return f=Math.max(f,i.currentTime),N});return i.currentTime=f,{type:Gt.If.Group,steps:v,options:Co(r.options)}}visitAnimate(r,i){const a=function Si(b,r){if(b.hasOwnProperty("duration"))return b;if("number"==typeof b)return dr(Qc(b,r).duration,0,"");const i=b;if(i.split(/\s+/).some(v=>"{"==v.charAt(0)&&"{"==v.charAt(1))){const v=dr(0,0,"");return v.dynamic=!0,v.strValue=i,v}const f=Qc(i,r);return dr(f.duration,f.delay,f.easing)}(r.timings,i.errors);i.currentAnimateTimings=a;let f,v=r.styles?r.styles:(0,Gt.iF)({});if(v.type==Gt.If.Keyframes)f=this.visitKeyframes(v,i);else{let w=r.styles,N=!1;if(!w){N=!0;const W={};a.easing&&(W.easing=a.easing),w=(0,Gt.iF)(W)}i.currentTime+=a.duration+a.delay;const j=this.visitStyle(w,i);j.isEmptyStep=N,f=j}return i.currentAnimateTimings=null,{type:Gt.If.Animate,timings:a,style:f,options:null}}visitStyle(r,i){const a=this._makeStyleAst(r,i);return this._validateStyleAst(a,i),a}_makeStyleAst(r,i){const a=[],f=Array.isArray(r.styles)?r.styles:[r.styles];for(let N of f)"string"==typeof N?N===Gt.kp?a.push(N):i.errors.push(new g.wOt(3002,!1)):a.push(new Map(Object.entries(N)));let v=!1,w=null;return a.forEach(N=>{if(N instanceof Map&&(N.has("easing")&&(w=N.get("easing"),N.delete("easing")),!v))for(let j of N.values())if(j.toString().indexOf("{{")>=0){v=!0;break}}),{type:Gt.If.Style,styles:a,easing:w,offset:r.offset,containsDynamicStyles:v,options:null}}_validateStyleAst(r,i){const a=i.currentAnimateTimings;let f=i.currentTime,v=i.currentTime;a&&v>0&&(v-=a.duration+a.delay),r.styles.forEach(w=>{"string"!=typeof w&&w.forEach((N,j)=>{const W=i.collectedStyles.get(i.currentQuerySelector),ue=W.get(j);let Ke=!0;ue&&(v!=f&&v>=ue.startTime&&f<=ue.endTime&&(i.errors.push(function _c(b,r,i,a,f){return new g.wOt(3010,!1)}()),Ke=!1),v=ue.startTime),Ke&&W.set(j,{startTime:v,endTime:f}),i.options&&function Ye(b,r,i){const a=r.params||{},f=Il(b);f.length&&f.forEach(v=>{a.hasOwnProperty(v)||i.push(function iu(b){return new g.wOt(3001,!1)}())})}(N,i.options,i.errors)})})}visitKeyframes(r,i){const a={type:Gt.If.Keyframes,styles:[],options:null};if(!i.currentAnimateTimings)return i.errors.push(function su(){return new g.wOt(3011,!1)}()),a;let v=0;const w=[];let N=!1,j=!1,W=0;const ue=r.steps.map(h=>{const m=this._makeStyleAst(h,i);let k=null!=m.offset?m.offset:function Md(b){if("string"==typeof b)return null;let r=null;if(Array.isArray(b))b.forEach(i=>
1{if(i instanceof Map&&i.has("offset")){const a=i;r=parseFloat(a.get("offset")),a.delete("offset")}});else if(b instanceof Map&&b.has("offset")){const i=b;r=parseFloat(i.get("offset")),i.delete("offset")}return r}(m.styles),H=0;return null!=k&&(v++,H=m.offset=k),j=j||H<0||H>1,N=N||H<W,W=H,w.push(H),m});j&&i.errors.push(function El(){return new g.wOt(3012,!1)}()),N&&i.errors.push(function vd(){return new g.wOt(3200,!1)}());const Ke=r.steps.length;let rt=0;v>0&&v<Ke?i.errors.push(function _r(){return new g.wOt(3202,!1)}()):0==v&&(rt=1/(Ke-1));const _t=Ke-1,u=i.currentTime,y=i.currentAnimateTimings,l=y.duration;return ue.forEach((h,m)=>{const k=rt>0?m==_t?1:rt*m:w[m],H=k*l;i.currentTime=u+y.delay+H,y.duration=H,this._validateStyleAst(h,i),h.offset=k,a.styles.push(h)}),a}visitReference(r,i){return{type:Gt.If.Reference,animation:Fi(this,La(r.animation),i),options:Co(r.options)}}visitAnimateChild(r,i){return i.depCount++,{type:Gt.If.AnimateChild,options:Co(r.options)}}visitAnimateRef(r,i){return{type:Gt.If.AnimateRef,animation:this.visitReference(r.animation,i),options:Co(r.options)}}visitQuery(r,i){const a=i.currentQuerySelector,f=r.options||{};i.queryCount++,i.currentQuery=r;const[v,w]=function Ad(b){const r=!!b.split(/\s*,\s*/).find(i=>":self"==i);return r&&(b=b.replace(Sd,"")),b=b.replace(/@\*/g,Xc).replace(/@\w+/g,i=>Xc+"-"+i.slice(1)).replace(/:animating/g,uu),[b,r]}(r.selector);i.currentQuerySelector=a.length?a+" "+v:v,so(i.collectedStyles,i.currentQuerySelector,new Map);const N=Fi(this,La(r.animation),i);return i.currentQuery=null,i.currentQuerySelector=a,{type:Gt.If.Query,selector:v,limit:f.limit||0,optional:!!f.optional,includeSelf:w,animation:N,originalSelector:r.selector,options:Co(r.options)}}visitStagger(r,i){i.currentQuery||i.errors.push(function Cd(){return new g.wOt(3013,!1)}());const a="full"===r.timings?{duration:0,delay:0,easing:"full"}:Qc(r.timings,i.errors,!0);return{type:Gt.If.Stagger,animation:Fi(this,La(r.animation),i),timings:a,options:null}}}class Jc{constructor(r){this.errors=r,this.queryCount=0,this.depCount=0,this.currentTransition=null,this.currentQuery=null,this.currentQuerySelector=null,this.currentAnimateTimings=null,this.currentTime=0,this.collectedStyles=new Map,this.options=null,this.unsupportedCSSPropertiesFound=new Set}}function Co(b){return b?(b={...b}).params&&(b.params=function Id(b){return b?{...b}:null}(b.params)):b={},b}function dr(b,r,i){return{duration:b,delay:r,easing:i}}function Nl(b,r,i,a,f,v,w=null,N=!1){return{type:1,element:b,keyframes:r,preStyleProps:i,postStyleProps:a,duration:f,delay:v,totalTime:f+v,easing:w,subTimeline:N}}class Ha{constructor(){this._map=new Map}get(r){return this._map.get(r)||[]}append(r,i){let a=this._map.get(r);a||this._map.set(r,a=[]),a.push(...i)}has(r){return this._map.has(r)}clear(){this._map.clear()}}const Ol=new RegExp(":enter","g"),Tc=new RegExp(":leave","g");function Eo(b,r,i,a,f,v=new Map,w=new Map,N,j,W=[]){return(new Wh).buildKeyframes(b,r,i,a,f,v,w,N,j,W)}class Wh{buildKeyframes(r,i,a,f,v,w,N,j,W,ue=[]){W=W||new Ha;const Ke=new Dc(r,i,W,f,v,ue,[]);Ke.options=j;const rt=j.delay?Ps(j.delay):0;Ke.currentTimeline.delayNextStep(rt),Ke.currentTimeline.setStyles([w],null,Ke.errors,j),Fi(this,a,Ke);const _t=Ke.timelines.filter(u=>u.containsAnimation());if(_t.length&&N.size){let u;for(let y=_t.length-1;y>=0;y--){const l=_t[y];if(l.element===i){u=l;break}}u&&!u.allowOnlyTimelineStyles()&&u.setStyles([N],null,Ke.errors,j)}return _t.length?_t.map(u=>u.buildKeyframes()):[Nl(i,[],[],[],0,rt,"",!1)]}visitTrigger(r,i){}visitState(r,i){}visitTransition(r,i){}visitAnimateChild(r,i){const a=i.subInstructions.get(i.element);if(a){const f=i.createSubContext(r.options),v=i.currentTimeline.currentTime,w=this._visitSubInstructions(a,f,f.options);v!=w&&i.transformIntoNewTimeline(w)}i.previousNode=r}visitAnimateRef(r,i){const a=i.createSubContext(r.options);a.transformIntoNewTimeline(),this._applyAnimationRefDelays([r.options,r.animation.options],i,a),this.visitReference(r.animation,a),i.transformIntoNewTimeline(a.currentTimeline.currentTime),i.previousNode=r}_applyAnimationRefDelays(r,i,a){for(const f of r){const v=f?.delay;if(v){const w="number"==typeof v?v:Ps(xs(v,f?.params??{},i.errors));a.delayNextStep(w)}}}
1_visitSubInstructions(r,i,a){let v=i.currentTimeline.currentTime;const w=null!=a.duration?Ps(a.duration):null,N=null!=a.delay?Ps(a.delay):null;return 0!==w&&r.forEach(j=>{const W=i.appendInstructionToTimeline(j,w,N);v=Math.max(v,W.duration+W.delay)}),v}visitReference(r,i){i.updateOptions(r.options,!0),Fi(this,r.animation,i),i.previousNode=r}visitSequence(r,i){const a=i.subContextCount;let f=i;const v=r.options;if(v&&(v.params||v.delay)&&(f=i.createSubContext(v),f.transformIntoNewTimeline(),null!=v.delay)){f.previousNode.type==Gt.If.Style&&(f.currentTimeline.snapshotCurrentStyles(),f.previousNode=Va);const w=Ps(v.delay);f.delayNextStep(w)}r.steps.length&&(r.steps.forEach(w=>Fi(this,w,f)),f.currentTimeline.applyStylesToKeyframe(),f.subContextCount>a&&f.transformIntoNewTimeline()),i.previousNode=r}visitGroup(r,i){const a=[];let f=i.currentTimeline.currentTime;const v=r.options&&r.options.delay?Ps(r.options.delay):0;r.steps.forEach(w=>{const N=i.createSubContext(r.options);v&&N.delayNextStep(v),Fi(this,w,N),f=Math.max(f,N.currentTimeline.currentTime),a.push(N.currentTimeline)}),a.forEach(w=>i.currentTimeline.mergeTimelineCollectedStyles(w)),i.transformIntoNewTimeline(f),i.previousNode=r}_visitTiming(r,i){if(r.dynamic){const a=r.strValue;return Qc(i.params?xs(a,i.params,i.errors):a,i.errors)}return{duration:r.duration,delay:r.delay,easing:r.easing}}visitAnimate(r,i){const a=i.currentAnimateTimings=this._visitTiming(r.timings,i),f=i.currentTimeline;a.delay&&(i.incrementTime(a.delay),f.snapshotCurrentStyles());const v=r.style;v.type==Gt.If.Keyframes?this.visitKeyframes(v,i):(i.incrementTime(a.duration),this.visitStyle(v,i),f.applyStylesToKeyframe()),i.currentAnimateTimings=null,i.previousNode=r}visitStyle(r,i){const a=i.currentTimeline,f=i.currentAnimateTimings;!f&&a.hasCurrentStyleProperties()&&a.forwardFrame();const v=f&&f.easing||r.easing;r.isEmptyStep?a.applyEmptyStep(v):a.setStyles(r.styles,v,i.errors,i.options),i.previousNode=r}visitKeyframes(r,i){const a=i.currentAnimateTimings,f=i.currentTimeline.duration,v=a.duration,N=i.createSubContext().currentTimeline;N.easing=a.easing,r.styles.forEach(j=>{N.forwardTime((j.offset||0)*v),N.setStyles(j.styles,j.easing,i.errors,i.options),N.applyStylesToKeyframe()}),i.currentTimeline.mergeTimelineCollectedStyles(N),i.transformIntoNewTimeline(f+v),i.previousNode=r}visitQuery(r,i){const a=i.currentTimeline.currentTime,f=r.options||{},v=f.delay?Ps(f.delay):0;v&&(i.previousNode.type===Gt.If.Style||0==a&&i.currentTimeline.hasCurrentStyleProperties())&&(i.currentTimeline.snapshotCurrentStyles(),i.previousNode=Va);let w=a;const N=i.invokeQuery(r.selector,r.originalSelector,r.limit,r.includeSelf,!!f.optional,i.errors);i.currentQueryTotal=N.length;let j=null;N.forEach((W,ue)=>{i.currentQueryIndex=ue;const Ke=i.createSubContext(r.options,W);v&&Ke.delayNextStep(v),W===i.element&&(j=Ke.currentTimeline),Fi(this,r.animation,Ke),Ke.currentTimeline.applyStylesToKeyframe(),w=Math.max(w,Ke.currentTimeline.currentTime)}),i.currentQueryIndex=0,i.currentQueryTotal=0,i.transformIntoNewTimeline(w),j&&(i.currentTimeline.mergeTimelineCollectedStyles(j),i.currentTimeline.snapshotCurrentStyles()),i.previousNode=r}visitStagger(r,i){const a=i.parentContext,f=i.currentTimeline,v=r.timings,w=Math.abs(v.duration),N=w*(i.currentQueryTotal-1);let j=w*i.currentQueryIndex;switch(v.duration<0?"reverse":v.easing){case"reverse":j=N-j;break;case"full":j=a.currentStaggerTime}const ue=i.currentTimeline;j&&ue.delayNextStep(j);const Ke=ue.currentTime;Fi(this,r.animation,i),i.previousNode=r,a.currentStaggerTime=f.currentTime-Ke+(f.startTime-a.currentTimeline.startTime)}}const Va={};class Dc{constructor(r,i,a,f,v,w,N,j){this._driver=r,this.element=i,this.subInstructions=a,this._enterClassName=f,this._leaveClassName=v,this.errors=w,this.timelines=N,this.parentContext=null,this.currentAnimateTimings=null,this.previousNode=Va,this.subContextCount=0,this.options={},this.currentQueryIndex=0,this.currentQueryTotal=0,this.currentStaggerTime=0,this.currentTimeline=j||new ja(this._driver,i,0),N.push(this.currentTimeline)}get params(){return this.options.params}updateOptions(r,i){if(!r)return;const a=r;let f=this.options;null!=a.duration&&(f.duration=Ps(a.duration)),null!=a.delay&&(f.delay=Ps(a.delay));const v=a.params;if(v){let w=f.params;
1w||(w=this.options.params={}),Object.keys(v).forEach(N=>{(!i||!w.hasOwnProperty(N))&&(w[N]=xs(v[N],w,this.errors))})}}_copyOptions(){const r={};if(this.options){const i=this.options.params;if(i){const a=r.params={};Object.keys(i).forEach(f=>{a[f]=i[f]})}}return r}createSubContext(r=null,i,a){const f=i||this.element,v=new Dc(this._driver,f,this.subInstructions,this._enterClassName,this._leaveClassName,this.errors,this.timelines,this.currentTimeline.fork(f,a||0));return v.previousNode=this.previousNode,v.currentAnimateTimings=this.currentAnimateTimings,v.options=this._copyOptions(),v.updateOptions(r),v.currentQueryIndex=this.currentQueryIndex,v.currentQueryTotal=this.currentQueryTotal,v.parentContext=this,this.subContextCount++,v}transformIntoNewTimeline(r){return this.previousNode=Va,this.currentTimeline=this.currentTimeline.fork(this.element,r),this.timelines.push(this.currentTimeline),this.currentTimeline}appendInstructionToTimeline(r,i,a){const f={duration:i??r.duration,delay:this.currentTimeline.currentTime+(a??0)+r.delay,easing:""},v=new gu(this._driver,r.element,r.keyframes,r.preStyleProps,r.postStyleProps,f,r.stretchStartingKeyframe);return this.timelines.push(v),f}incrementTime(r){this.currentTimeline.forwardTime(this.currentTimeline.duration+r)}delayNextStep(r){r>0&&this.currentTimeline.delayNextStep(r)}invokeQuery(r,i,a,f,v,w){let N=[];if(f&&N.push(this.element),r.length>0){r=(r=r.replace(Ol,"."+this._enterClassName)).replace(Tc,"."+this._leaveClassName);let W=this._driver.query(this.element,r,1!=a);0!==a&&(W=a<0?W.slice(W.length+a,W.length):W.slice(0,a)),N.push(...W)}return!v&&0==N.length&&w.push(function Ed(b){return new g.wOt(3014,!1)}()),N}}class ja{constructor(r,i,a,f){this._driver=r,this.element=i,this.startTime=a,this._elementTimelineStylesLookup=f,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(i),this._globalTimelineStyles||(this._globalTimelineStyles=this._localTimelineStyles,this._elementTimelineStylesLookup.set(i,this._localTimelineStyles)),this._loadKeyframe()}containsAnimation(){switch(this._keyframes.size){case 0:return!1;case 1:return this.hasCurrentStyleProperties();default:return!0}}hasCurrentStyleProperties(){return this._currentKeyframe.size>0}get currentTime(){return this.startTime+this.duration}delayNextStep(r){const i=1===this._keyframes.size&&this._pendingStyles.size;this.duration||i?(this.forwardTime(this.currentTime+r),i&&this.snapshotCurrentStyles()):this.startTime+=r}fork(r,i){return this.applyStylesToKeyframe(),new ja(this._driver,r,i||this.currentTime,this._elementTimelineStylesLookup)}_loadKeyframe(){this._currentKeyframe&&(this._previousKeyframe=this._currentKeyframe),this._currentKeyframe=this._keyframes.get(this.duration),this._currentKeyframe||(this._currentKeyframe=new Map,this._keyframes.set(this.duration,this._currentKeyframe))}forwardFrame(){this.duration+=1,this._loadKeyframe()}forwardTime(r){this.applyStylesToKeyframe(),this.duration=r,this._loadKeyframe()}_updateStyle(r,i){this._localTimelineStyles.set(r,i),this._globalTimelineStyles.set(r,i),this._styleSummary.set(r,{time:this.currentTime,value:i})}allowOnlyTimelineStyles(){return this._currentEmptyStepKeyframe!==this._currentKeyframe}applyEmptyStep(r){r&&this._previousKeyframe.set("easing",r);for(let[i,a]of this._globalTimelineStyles)this._backFill.set(i,a||Gt.kp),this._currentKeyframe.set(i,Gt.kp);this._currentEmptyStepKeyframe=this._currentKeyframe}setStyles(r,i,a,f){i&&this._previousKeyframe.set("easing",i);const v=f&&f.params||{},w=function Nd(b,r){const i=new Map;let a;return b.forEach(f=>{if("*"===f){a??=r.keys();for(let v of a)i.set(v,Gt.kp)}else for(let[v,w]of f)i.set(v,w)}),i}(r,this._globalTimelineStyles);for(let[N,j]of w){const W=xs(j,v,a);this._pendingStyles.set(N,W),this._localTimelineStyles.has(N)||this._backFill.set(N,this._globalTimelineStyles.get(N)??Gt.kp),this._updateStyle(N,W)}}
1applyStylesToKeyframe(){0!=this._pendingStyles.size&&(this._pendingStyles.forEach((r,i)=>{this._currentKeyframe.set(i,r)}),this._pendingStyles.clear(),this._localTimelineStyles.forEach((r,i)=>{this._currentKeyframe.has(i)||this._currentKeyframe.set(i,r)}))}snapshotCurrentStyles(){for(let[r,i]of this._localTimelineStyles)this._pendingStyles.set(r,i),this._updateStyle(r,i)}getFinalKeyframe(){return this._keyframes.get(this.duration)}get properties(){const r=[];for(let i in this._currentKeyframe)r.push(i);return r}mergeTimelineCollectedStyles(r){r._styleSummary.forEach((i,a)=>{const f=this._styleSummary.get(a);(!f||i.time>f.time)&&this._updateStyle(a,i.value)})}buildKeyframes(){this.applyStylesToKeyframe();const r=new Set,i=new Set,a=1===this._keyframes.size&&0===this.duration;let f=[];this._keyframes.forEach((N,j)=>{const W=new Map([...this._backFill,...N]);W.forEach((ue,Ke)=>{ue===Gt.FX?r.add(Ke):ue===Gt.kp&&i.add(Ke)}),a||W.set("offset",j/this.duration),f.push(W)});const v=[...r.values()],w=[...i.values()];if(a){const N=f[0],j=new Map(N);N.set("offset",0),j.set("offset",1),f=[N,j]}return Nl(this.element,f,v,w,this.duration,this.startTime,this.easing,!1)}}class gu extends ja{constructor(r,i,a,f,v,w,N=!1){super(r,i,w.delay),this.keyframes=a,this.preStyleProps=f,this.postStyleProps=v,this._stretchStartingKeyframe=N,this.timings={duration:w.duration,delay:w.delay,easing:w.easing}}containsAnimation(){return this.keyframes.length>1}buildKeyframes(){let r=this.keyframes,{delay:i,duration:a,easing:f}=this.timings;if(this._stretchStartingKeyframe&&i){const v=[],w=a+i,N=i/w,j=new Map(r[0]);j.set("offset",0),v.push(j);const W=new Map(r[0]);W.set("offset",mu(N)),v.push(W);const ue=r.length-1;for(let Ke=1;Ke<=ue;Ke++){let rt=new Map(r[Ke]);const _t=rt.get("offset");rt.set("offset",mu((i+_t*a)/w)),v.push(rt)}a=w,i=0,f="",r=v}return Nl(this.element,r,this.preStyleProps,this.postStyleProps,a,i,f,!0)}}function mu(b,r=3){const i=Math.pow(10,r-1);return Math.round(b*i)/i}function kl(b,r,i,a,f,v,w,N,j,W,ue,Ke,rt){return{type:0,element:b,triggerName:r,isRemovalTransition:f,fromState:i,fromStyles:v,toState:a,toStyles:w,timelines:N,queriedElements:j,preStyleProps:W,postStyleProps:ue,totalTime:Ke,errors:rt}}const Bs={};class Ts{constructor(r,i,a){this._triggerName=r,this.ast=i,this._stateStyles=a}match(r,i,a,f){return function Sc(b,r,i,a,f){return b.some(v=>v(r,i,a,f))}(this.ast.matchers,r,i,a,f)}buildStyles(r,i,a){let f=this._stateStyles.get("*");return void 0!==r&&(f=this._stateStyles.get(r?.toString())||f),f?f.buildStyles(i,a):new Map}build(r,i,a,f,v,w,N,j,W,ue){const Ke=[],rt=this.ast.options&&this.ast.options.params||Bs,u=this.buildStyles(a,N&&N.params||Bs,Ke),y=j&&j.params||Bs,l=this.buildStyles(f,y,Ke),h=new Set,m=new Map,k=new Map,H="void"===f,pe={params:wc(y,rt),delay:this.ast.options?.delay},Se=ue?[]:Eo(r,i,this.ast.animation,v,w,u,l,pe,W,Ke);let xe=0;return Se.forEach(We=>{xe=Math.max(We.duration+We.delay,xe)}),Ke.length?kl(i,this._triggerName,a,f,H,u,l,[],[],m,k,xe,Ke):(Se.forEach(We=>{const bt=We.element,Et=so(m,bt,new Set);We.preStyleProps.forEach(pn=>Et.add(pn));const Ot=so(k,bt,new Set);We.postStyleProps.forEach(pn=>Ot.add(pn)),bt!==i&&h.add(bt)}),kl(i,this._triggerName,a,f,H,u,l,Se,[...h.values()],m,k,xe))}}function wc(b,r){const i={...r};return Object.entries(b).forEach(([a,f])=>{null!=f&&(i[a]=f)}),i}class _u{constructor(r,i,a){this.styles=r,this.defaultParams=i,this.normalizer=a}buildStyles(r,i){const a=new Map,f=wc(r,this.defaultParams);return this.styles.styles.forEach(v=>{"string"!=typeof v&&v.forEach((w,N)=>{w&&(w=xs(w,f,i));const j=this.normalizer.normalizePropertyName(N,i);w=this.normalizer.normalizeStyleValue(N,j,w,i),a.set(N,w)})}),a}}class bp{constructor(r,i,a){this.name=r,this.ast=i,this._normalizer=a,this.transitionFactories=[],this.states=new Map,i.states.forEach(f=>{this.states.set(f.name,new _u(f.style,f.options&&f.options.params||{},a))}),tl(this.states,"true","1"),tl(this.states,"false","0"),i.transitions.forEach(f=>{this.transitionFactories.push(new Ts(r,f,this.states))}),this.fallbackTransition=function Od(b,r,i){return new Ts(b,{type:Gt.If.Transition,animation:{type:Gt.If.Sequence,steps:[],options:null},matchers:[(w,N)=>!0],options:null,queryCount:0,depCount:0},r)}(r,this.states)}get containsQueries(){return this.ast.queryCount>0}matchTransition(r,i,a,f){return this.transitionFactories.find(w=>w.match(r,i,a,f))||null}matchStyles(r,i,a){return this.fallbackTransition.buildStyles(r,i,a)}}function tl(b,r,i){b.has(r)?b.has(i)||b.set(i,b.get(r)):b.has(i)&&b.set(r,b.get(i))}const Li=new Ha;class kd{constructor(r,i,a){this.bodyNode=r,this._driver=i,this._normalizer=a,this._animations=new Map,this._playersById=new Map,this.players=[]}register(r,i){const a=[],v=Zc(this._driver,i,a,[]);if(a.length)throw function G(b){return new g.wOt(3503,!1)}();this._animations.set(r,v)}_buildPlayer(r,i,a){const f=r.element,v=bl(this._normalizer,r.keyframes,i,a);return this._driver.animate(f,v,r.duration,r.delay,r.easing,[],!0)}create(r,i,a={}){const f=[],v=this._animations.get(r);let w;const N=new Map;if(v?(w=Eo(this._driver,i,v,zc,Es,new Map,new Map,a,Li,f),w.forEac
1h(ue=>{const Ke=so(N,ue.element,new Map);ue.postStyleProps.forEach(rt=>Ke.set(rt,null))})):(f.push(function oe(){return new g.wOt(3300,!1)}()),w=[]),f.length)throw function He(b){return new g.wOt(3504,!1)}();N.forEach((ue,Ke)=>{ue.forEach((rt,_t)=>{ue.set(_t,this._driver.computeStyle(Ke,_t,Gt.kp))})});const W=Ar(w.map(ue=>{const Ke=N.get(ue.element);return this._buildPlayer(ue,new Map,Ke)}));return this._playersById.set(r,W),W.onDestroy(()=>this.destroy(r)),this.players.push(W),W}destroy(r){const i=this._getPlayer(r);i.destroy(),this._playersById.delete(r);const a=this.players.indexOf(i);a>=0&&this.players.splice(a,1)}_getPlayer(r){const i=this._playersById.get(r);if(!i)throw function Pe(b){return new g.wOt(3301,!1)}();return i}listen(r,i,a,f){const v=Tl(i,"","","");return Kc(this._getPlayer(r),a,v,f),()=>{}}command(r,i,a,f){if("register"==a)return void this.register(r,f[0]);if("create"==a)return void this.create(r,i,f[0]||{});const v=this._getPlayer(r);switch(a){case"play":v.play();break;case"pause":v.pause();break;case"reset":v.reset();break;case"restart":v.restart();break;case"finish":v.finish();break;case"init":v.init();break;case"setPosition":v.setPosition(parseFloat(f[0]));break;case"destroy":this.destroy(r)}}}const fa="ng-animate-queued",Us="ng-animate-disabled",xl=[],xo={namespaceId:"",setForRemoval:!1,setForMove:!1,hasAnimation:!1,removedBeforeQueried:!1},Pd={namespaceId:"",setForMove:!1,setForRemoval:!1,hasAnimation:!1,removedBeforeQueried:!0},Bi="__ng_removed";class $a{get params(){return this.options.params}constructor(r,i=""){this.namespaceId=i;const a=r&&r.hasOwnProperty("value");if(this.value=function Ac(b){return b??null}(a?r.value:r),a){const{value:v,...w}=r;this.options=w}else this.options={};this.options.params||(this.options.params={})}absorbOptions(r){const i=r.params;if(i){const a=this.options.params;
1Object.keys(i).forEach(f=>{null==a[f]&&(a[f]=i[f])})}}}const Ga="void",pa=new $a(Ga);class Fl{constructor(r,i,a){this.id=r,this.hostElement=i,this._engine=a,this.players=[],this._triggers=new Map,this._queue=[],this._elementListeners=new Map,this._hostClassName="ng-tns-"+r,Ui(i,this._hostClassName)}listen(r,i,a,f){if(!this._triggers.has(i))throw function Rt(b,r){return new g.wOt(3302,!1)}();if(null==a||0==a.length)throw function an(b){return new g.wOt(3303,!1)}();if(!function xd(b){return"start"==b||"done"==b}(a))throw function fn(b,r){return new g.wOt(3400,!1)}();const v=so(this._elementListeners,r,[]),w={name:i,phase:a,callback:f};v.push(w);const N=so(this._engine.statesByElement,r,new Map);return N.has(i)||(Ui(r,rn),Ui(r,rn+"-"+i),N.set(i,pa)),()=>{this._engine.afterFlush(()=>{const j=v.indexOf(w);j>=0&&v.splice(j,1),this._triggers.has(i)||N.delete(i)})}}register(r,i){return!this._triggers.has(r)&&(this._triggers.set(r,i),!0)}_getTrigger(r){const i=this._triggers.get(r);if(!i)throw function Ur(b){return new g.wOt(3401,!1)}();return i}trigger(r,i,a,f=!0){const v=this._getTrigger(i),w=new nl(this.id,i,r);let N=this._engine.statesByElement.get(r);N||(Ui(r,rn),Ui(r,rn+"-"+i),this._engine.statesByElement.set(r,N=new Map));let j=N.get(i);const W=new $a(a,this.id);if(!(a&&a.hasOwnProperty("value"))&&j&&W.absorbOptions(j.options),N.set(i,W),j||(j=pa),W.value!==Ga&&j.value===W.value){if(!function bu(b,r){const i=Object.keys(b),a=Object.keys(r);if(i.length!=a.length)return!1;for(let f=0;f<i.length;f++){const v=i[f];if(!r.hasOwnProperty(v)||b[v]!==r[v])return!1}return!0}(j.params,W.params)){const y=[],l=v.matchStyles(j.value,j.params,y),h=v.matchStyles(W.value,W.params,y);y.length?this._engine.reportError(y):this._engine.afterFlush(()=>{bs(r,l),Xn(r,h)})}return}const rt=so(this._engine.playersByElement,r,[]);rt.forEach(y=>{y.namespaceId==this.id&&y.triggerName==i&&y.queued&&y.destroy()});let _t=v.matchTransition(j.value,W.value,r,W.params),u=!1;if(!_t){if(!f)return;_t=v.fallbackTransition,u=!0}return this._engine.totalQueuedPlayers++,this._queue.push({element:r,triggerName:i,transition:_t,fromState:j,toState:W,player:w,isFallbackTransition:u}),u||(Ui(r,fa),w.onStart(()=>{Ka(r,fa)})),w.onDone(()=>{let y=this.players.indexOf(w);y>=0&&this.players.splice(y,1);const l=this._engine.playersByElement.get(r);if(l){let h=l.indexOf(w);h>=0&&l.splice(h,1)}}),this.players.push(w),rt.push(w),w}deregister(r){this._triggers.delete(r),this._engine.statesByElement.forEach(i=>i.delete(r)),this._elementListeners.forEach((i,a)=>{this._elementListeners.set(a,i.filter(f=>f.name!=r))})}clearElementCache(r){this._engine.statesByElement.delete(r),this._elementListeners.delete(r);const i=this._engine.playersByElement.get(r);i&&(i.forEach(a=>a.destroy()),this._engine.playersByElement.delete(r))}_signalRemovalForInnerTriggers(r,i){const a=this._engine.driver.query(r,Xc,!0);a.forEach(f=>{if(f[Bi])return;const v=this._engine.fetchNamespacesByElement(f);v.size?v.forEach(w=>w.triggerLeaveAnimation(f,i,!1,!0)):this.clearElementCache(f)}),this._engine.afterFlushAnimationsDone(()=>a.forEach(f=>this.clearElementCache(f)))}triggerLeaveAnimation(r,i,a,f){const v=this._engine.statesByElement.get(r),w=new Map;if(v){const N=[];if(v.forEach((j,W)=>{if(w.set(W,j.value),this._triggers.has(W)){const ue=this.trigger(r,W,Ga,f);ue&&N.push(ue)}}),N.length)return this._engine.markElementAsRemoved(this.id,r,!0,i,w),a&&Ar(N).onDone(()=>this._engine.processLeaveNode(r)),!0}return!1}prepareLeaveAnimationListeners(r){const i=this._elementListeners.get(r),a=this._engine.statesByElement.get(r);if(i&&a){const f=new Set;i.forEach(v=>{const w=v.name;if(f.has(w))return;f.add(w);const j=this._triggers.get(w).fallbackTransition,W=a.get(w)||pa,ue=new $a(Ga),Ke=new nl(this.id,w,r);this._engine.totalQueuedPlayers++,this._queue.push({element:r,triggerName:w,transition:j,fromState:W,toState:ue,player:Ke,isFallbackTransition:!0})})}}removeNode(r,i){const a=this._engine;if(r.childElementCount&&this._signalRemovalForInnerTriggers(r,i),this.triggerLeaveAnimation(r,i,!0))return;let f=!1;if(a.totalAnimations){const v=a.players.length?a.playersByQueriedElement.get(r):[];if(v&&v.length)f=!0;else{let w=r;for(;w=w.parentNode;)if(a.statesByElement.get(w)){f=!0;break}}}if(this.prepareLeaveAnimationListeners(r),f)a.markElementAsRemoved(this.id,r,!1,i);else{const v=r[Bi];(!v||v===xo)&&(a.afterFlush(()=>this.clearElementCache(r)),a.destroyInnerAnimations(r),a._onRemovalComplete(r,i))}}insertNode(r,i){Ui(r,this._hostClassName)}drainQueuedTransitions(r){const i=[];return this._queue.forEach(a=>{const f=a.player;if(f.destroyed)return;const v=a.element,w=this._elementListeners.get(v);
1w&&w.forEach(N=>{if(N.name==a.triggerName){const j=Tl(v,a.triggerName,a.fromState.value,a.toState.value);j._data=r,Kc(a.player,N.phase,j,N.callback)}}),f.markedForDestroy?this._engine.afterFlush(()=>{f.destroy()}):i.push(a)}),this._queue=[],i.sort((a,f)=>{const v=a.transition.ast.depCount,w=f.transition.ast.depCount;return 0==v||0==w?v-w:this._engine.driver.containsElement(a.element,f.element)?1:-1})}destroy(r){this.players.forEach(i=>i.destroy()),this._signalRemovalForInnerTriggers(this.hostElement,r)}}class Cu{_onRemovalComplete(r,i){this.onRemovalComplete(r,i)}constructor(r,i,a,f){this.bodyNode=r,this.driver=i,this._normalizer=a,this.scheduler=f,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=(v,w)=>{}}get queuedPlayers(){const r=[];return this._namespaceList.forEach(i=>{i.players.forEach(a=>{a.queued&&r.push(a)})}),r}createNamespace(r,i){const a=new Fl(r,i,this);return this.bodyNode&&this.driver.containsElement(this.bodyNode,i)?this._balanceNamespaceList(a,i):(this.newHostElements.set(i,a),this.collectEnterElement(i)),this._namespaceLookup[r]=a}_balanceNamespaceList(r,i){const a=this._namespaceList,f=this.namespacesByHostElement;if(a.length-1>=0){let w=!1,N=this.driver.getParentElement(i);for(;N;){const j=f.get(N);if(j){const W=a.indexOf(j);a.splice(W+1,0,r),w=!0;break}N=this.driver.getParentElement(N)}w||a.unshift(r)}else a.push(r);return f.set(i,r),r}register(r,i){let a=this._namespaceLookup[r];return a||(a=this.createNamespace(r,i)),a}registerTrigger(r,i,a){let f=this._namespaceLookup[r];f&&f.register(i,a)&&this.totalAnimations++}destroy(r,i){r&&(this.afterFlush(()=>{}),this.afterFlushAnimationsDone(()=>{const a=this._fetchNamespace(r);this.namespacesByHostElement.delete(a.hostElement);const f=this._namespaceList.indexOf(a);f>=0&&this._namespaceList.splice(f,1),a.destroy(i),delete this._namespaceLookup[r]}))}_fetchNamespace(r){return this._namespaceLookup[r]}fetchNamespacesByElement(r){const i=new Set,a=this.statesByElement.get(r);if(a)for(let f of a.values())if(f.namespaceId){const v=this._fetchNamespace(f.namespaceId);v&&i.add(v)}return i}trigger(r,i,a,f){if(Hs(i)){const v=this._fetchNamespace(r);if(v)return v.trigger(i,a,f),!0}return!1}insertNode(r,i,a,f){if(!Hs(i))return;const v=i[Bi];if(v&&v.setForRemoval){v.setForRemoval=!1,v.setForMove=!0;const w=this.collectedLeaveElements.indexOf(i);w>=0&&this.collectedLeaveElements.splice(w,1)}if(r){const w=this._fetchNamespace(r);w&&w.insertNode(i,a)}f&&this.collectEnterElement(i)}collectEnterElement(r){this.collectedEnterElements.push(r)}markElementAsDisabled(r,i){i?this.disabledNodes.has(r)||(this.disabledNodes.add(r),Ui(r,Us)):this.disabledNodes.has(r)&&(this.disabledNodes.delete(r),Ka(r,Us))}removeNode(r,i,a){if(Hs(i)){this.scheduler?.notify();const f=r?this._fetchNamespace(r):null;f?f.removeNode(i,a):this.markElementAsRemoved(r,i,!1,a);const v=this.namespacesByHostElement.get(i);v&&v.id!==r&&v.removeNode(i,a)}else this._onRemovalComplete(i,a)}markElementAsRemoved(r,i,a,f,v){this.collectedLeaveElements.push(i),i[Bi]={namespaceId:r,setForRemoval:f,hasAnimation:a,removedBeforeQueried:!1,previousTriggersValues:v}}listen(r,i,a,f,v){return Hs(i)?this._fetchNamespace(r).listen(i,a,f,v):()=>{}}_buildInstruction(r,i,a,f,v){return r.transition.build(this.driver,r.element,r.fromState.value,r.toState.value,a,f,r.fromState.options,r.toState.options,i,v)}destroyInnerAnimations(r){let i=this.driver.query(r,Xc,!0);i.forEach(a=>this.destroyActiveAnimationsForElement(a)),0!=this.playersByQueriedElement.size&&(i=this.driver.query(r,uu,!0),i.forEach(a=>this.finishActiveQueriedAnimationOnElement(a)))}destroyActiveAnimationsForElement(r){const i=this.playersByElement.get(r);i&&i.forEach(a=>{a.queued?a.markedForDestroy=!0:a.destroy()})}finishActiveQueriedAnimationOnElement(r){const i=this.playersByQueriedElement.get(r);
1i&&i.forEach(a=>a.finish())}whenRenderingDone(){return new Promise(r=>{if(this.players.length)return Ar(this.players).onDone(()=>r());r()})}processLeaveNode(r){const i=r[Bi];if(i&&i.setForRemoval){if(r[Bi]=xo,i.namespaceId){this.destroyInnerAnimations(r);const a=this._fetchNamespace(i.namespaceId);a&&a.clearElementCache(r)}this._onRemovalComplete(r,i.setForRemoval)}r.classList?.contains(Us)&&this.markElementAsDisabled(r,!1),this.driver.query(r,".ng-animate-disabled",!0).forEach(a=>{this.markElementAsDisabled(a,!1)})}flush(r=-1){let i=[];if(this.newHostElements.size&&(this.newHostElements.forEach((a,f)=>this._balanceNamespaceList(a,f)),this.newHostElements.clear()),this.totalAnimations&&this.collectedEnterElements.length)for(let a=0;a<this.collectedEnterElements.length;a++)Ui(this.collectedEnterElements[a],"ng-star-inserted");if(this._namespaceList.length&&(this.totalQueuedPlayers||this.collectedLeaveElements.length)){const a=[];try{i=this._flushAnimations(a,r)}finally{for(let f=0;f<a.length;f++)a[f]()}}else for(let a=0;a<this.collectedLeaveElements.length;a++)this.processLeaveNode(this.collectedLeaveElements[a]);if(this.totalQueuedPlayers=0,this.collectedEnterElements.length=0,this.collectedLeaveElements.length=0,this._flushFns.forEach(a=>a()),this._flushFns=[],this._whenQuietFns.length){const a=this._whenQuietFns;this._whenQuietFns=[],i.length?Ar(i).onDone(()=>{a.forEach(f=>f())}):a.forEach(f=>f())}}reportError(r){throw function Ns(b){return new g.wOt(3402,!1)}()}_flushAnimations(r,i){const a=new Ha,f=[],v=new Map,w=[],N=new Map,j=new Map,W=new Map,ue=new Set;this.disabledNodes.forEach(pt=>{ue.add(pt);const kt=this.driver.query(pt,".ng-animate-queued",!0);for(let St=0;St<kt.length;St++)ue.add(kt[St])});const Ke=this.bodyNode,rt=Array.from(this.statesByElement.keys()),_t=Eu(rt,this.collectedEnterElements),u=new Map;let y=0;_t.forEach((pt,kt)=>{const St=zc+y++;u.set(kt,St),pt.forEach(Ft=>Ui(Ft,St))});const l=[],h=new Set,m=new Set;for(let pt=0;pt<this.collectedLeaveElements.length;pt++){const kt=this.collectedLeaveElements[pt],St=kt[Bi];St&&St.setForRemoval&&(l.push(kt),h.add(kt),St.hasAnimation?this.driver.query(kt,".ng-star-inserted",!0).forEach(Ft=>h.add(Ft)):m.add(kt))}const k=new Map,H=Eu(rt,Array.from(h));H.forEach((pt,kt)=>{const St=Es+y++;k.set(kt,St),pt.forEach(Ft=>Ui(Ft,St))}),r.push(()=>{_t.forEach((pt,kt)=>{const St=u.get(kt);pt.forEach(Ft=>Ka(Ft,St))}),H.forEach((pt,kt)=>{const St=k.get(kt);pt.forEach(Ft=>Ka(Ft,St))}),l.forEach(pt=>{this.processLeaveNode(pt)})});const pe=[],Se=[];for(let pt=this._namespaceList.length-1;pt>=0;pt--)this._namespaceList[pt].drainQueuedTransitions(i).forEach(St=>{const Ft=St.player,ln=St.element;if(pe.push(Ft),this.collectedEnterElements.length){const ir=ln[Bi];if(ir&&ir.setForMove){if(ir.previousTriggersValues&&ir.previousTriggersValues.has(St.triggerName)){const lo=ir.previousTriggersValues.get(St.triggerName),ui=this.statesByElement.get(St.element);if(ui&&ui.has(St.triggerName)){const wi=ui.get(St.triggerName);wi.value=lo,ui.set(St.triggerName,wi)}}return void Ft.destroy()}}const wn=!Ke||!this.driver.containsElement(Ke,ln),kn=k.get(ln),Ir=u.get(ln),Dn=this._buildInstruction(St,a,Ir,kn,wn);if(Dn.errors&&Dn.errors.length)return void Se.push(Dn);if(wn)return Ft.onStart(()=>bs(ln,Dn.fromStyles)),Ft.onDestroy(()=>Xn(ln,Dn.toStyles)),void f.push(Ft);if(St.isFallbackTransition)return Ft.onStart(()=>bs(ln,Dn.fromStyles)),Ft.onDestroy(()=>Xn(ln,Dn.toStyles)),void f.push(Ft);const ti=[];Dn.timelines.forEach(ir=>{ir.stretchStartingKeyframe=!0,this.disabledNodes.has(ir.element)||ti.push(ir)}),Dn.timelines=ti,a.append(ln,Dn.timelines),w.push({instruction:Dn,player:Ft,element:ln}),Dn.queriedElements.forEach(ir=>so(N,ir,[]).push(Ft)),Dn.preStyleProps.forEach((ir,lo)=>{if(ir.size){let ui=j.get(lo);ui||j.set(lo,ui=new Set),ir.forEach((wi,bo)=>ui.add(bo))}}),Dn.postStyleProps.forEach((ir,lo)=>{let ui=W.get(lo);ui||W.set(lo,ui=new Set),ir.forEach((wi,bo)=>ui.add(bo))})});if(Se.length){const pt=[];Se.forEach(kt=>{pt.push(function Cs(b,r){return new g.wOt(3505,!1)}())}),pe.forEach(kt=>kt.destroy()),this.reportError(pt)}const xe=new Map,We=new Map;
1w.forEach(pt=>{const kt=pt.element;a.has(kt)&&(We.set(kt,kt),this._beforeAnimationBuild(pt.player.namespaceId,pt.instruction,xe))}),f.forEach(pt=>{const kt=pt.element;this._getPreviousPlayers(kt,!1,pt.namespaceId,pt.triggerName,null).forEach(Ft=>{so(xe,kt,[]).push(Ft),Ft.destroy()})});const bt=l.filter(pt=>il(pt,j,W)),Et=new Map;Vs(Et,this.driver,m,W,Gt.kp).forEach(pt=>{il(pt,j,W)&&bt.push(pt)});const pn=new Map;_t.forEach((pt,kt)=>{Vs(pn,this.driver,new Set(pt),j,Gt.FX)}),bt.forEach(pt=>{const kt=Et.get(pt),St=pn.get(pt);Et.set(pt,new Map([...kt?.entries()??[],...St?.entries()??[]]))});const tn=[],Sn=[],Kn={};w.forEach(pt=>{const{element:kt,player:St,instruction:Ft}=pt;if(a.has(kt)){if(ue.has(kt))return St.onDestroy(()=>Xn(kt,Ft.toStyles)),St.disabled=!0,St.overrideTotalTime(Ft.totalTime),void f.push(St);let ln=Kn;if(We.size>1){let kn=kt;const Ir=[];for(;kn=kn.parentNode;){const Dn=We.get(kn);if(Dn){ln=Dn;break}Ir.push(kn)}Ir.forEach(Dn=>We.set(Dn,ln))}const wn=this._buildAnimation(St.namespaceId,Ft,xe,v,pn,Et);if(St.setRealPlayer(wn),ln===Kn)tn.push(St);
1else{const kn=this.playersByElement.get(ln);kn&&kn.length&&(St.parentPlayer=Ar(kn)),f.push(St)}}else bs(kt,Ft.fromStyles),St.onDestroy(()=>Xn(kt,Ft.toStyles)),Sn.push(St),ue.has(kt)&&f.push(St)}),Sn.forEach(pt=>{const kt=v.get(pt.element);if(kt&&kt.length){const St=Ar(kt);pt.setRealPlayer(St)}}),f.forEach(pt=>{pt.parentPlayer?pt.syncPlayerEvents(pt.parentPlayer):pt.destroy()});for(let pt=0;pt<l.length;pt++){const kt=l[pt],St=kt[Bi];if(Ka(kt,Es),St&&St.hasAnimation)continue;let Ft=[];if(N.size){let wn=N.get(kt);wn&&wn.length&&Ft.push(...wn);let kn=this.driver.query(kt,uu,!0);for(let Ir=0;Ir<kn.length;Ir++){let Dn=N.get(kn[Ir]);Dn&&Dn.length&&Ft.push(...Dn)}}const ln=Ft.filter(wn=>!wn.destroyed);ln.length?Mc(this,kt,ln):this.processLeaveNode(kt)}return l.length=0,tn.forEach(pt=>{this.players.push(pt),pt.onDone(()=>{pt.destroy();const kt=this.players.indexOf(pt);this.players.splice(kt,1)}),pt.play()}),tn}afterFlush(r){this._flushFns.push(r)}afterFlushAnimationsDone(r){this._whenQuietFns.push(r)}_getPreviousPlayers(r,i,a,f,v){let w=[];if(i){const N=this.playersByQueriedElement.get(r);N&&(w=N)}else{const N=this.playersByElement.get(r);if(N){const j=!v||v==Ga;N.forEach(W=>{W.queued||!j&&W.triggerName!=f||w.push(W)})}}return(a||f)&&(w=w.filter(N=>!(a&&a!=N.namespaceId||f&&f!=N.triggerName))),w}_beforeAnimationBuild(r,i,a){const v=i.element,w=i.isRemovalTransition?void 0:r,N=i.isRemovalTransition?void 0:i.triggerName;for(const j of i.timelines){const W=j.element,ue=W!==v,Ke=so(a,W,[]);this._getPreviousPlayers(W,ue,w,N,i.toState).forEach(_t=>{const u=_t.getRealPlayer();u.beforeDestroy&&u.beforeDestroy(),_t.destroy(),Ke.push(_t)})}bs(v,i.fromStyles)}_buildAnimation(r,i,a,f,v,w){const N=i.triggerName,j=i.element,W=[],ue=new Set,Ke=new Set,rt=i.timelines.map(u=>{const y=u.element;ue.add(y);const l=y[Bi];if(l&&l.removedBeforeQueried)return new Gt.sf(u.duration,u.delay);const h=y!==j,m=function ga(b){const r=[];return Zr(b,r),r}((a.get(y)||xl).map(xe=>xe.getRealPlayer())).filter(xe=>!!xe.element&&xe.element===y),k=v.get(y),H=w.get(y),pe=bl(this._normalizer,u.keyframes,k,H),Se=this._buildPlayer(u,pe,m);if(u.subTimeline&&f&&Ke.add(y),h){const xe=new nl(r,N,y);xe.setRealPlayer(Se),W.push(xe)}return Se});W.forEach(u=>{so(this.playersByQueriedElement,u.element,[]).push(u),u.onDone(()=>function rl(b,r,i){let a=b.get(r);if(a){if(a.length){const f=a.indexOf(i);a.splice(f,1)}0==a.length&&b.delete(r)}return a}(this.playersByQueriedElement,u.element,u))}),ue.forEach(u=>Ui(u,Hh));const _t=Ar(rt);return _t.onDestroy(()=>{ue.forEach(u=>Ka(u,Hh)),Xn(j,i.toStyles)}),Ke.forEach(u=>{so(f,u,[]).push(_t)}),_t}_buildPlayer(r,i,a){return i.length>0?this.driver.animate(r.element,i,r.duration,r.delay,r.easing,a):new Gt.sf(r.duration,r.delay)}}class nl{constructor(r,i,a){this.namespaceId=r,this.triggerName=i,this.element=a,this._player=new Gt.sf,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(r){this._containsRealPlayer||(this._player=r,this._queuedCallbacks.forEach((i,a)=>{i.forEach(f=>Kc(r,a,void 0,f))}),this._queuedCallbacks.clear(),this._containsRealPlayer=!0,this.overrideTotalTime(r.totalTime),this.queued=!1)}getRealPlayer(){return this._player}overrideTotalTime(r){this.totalTime=r}syncPlayerEvents(r){const i=this._player;i.triggerCallback&&r.onStart(()=>i.triggerCallback("start")),r.onDone(()=>this.finish()),r.onDestroy(()=>this.destroy())}_queueEvent(r,i){so(this._queuedCallbacks,r,[]).push(i)}onDone(r){this.queued&&this._queueEvent("done",r),this._player.onDone(r)}onStart(r){this.queued&&this._queueEvent("start",r),this._player.onStart(r)}onDestroy(r){this.queued&&this._queueEvent("destroy",r),this._player.onDestroy(r)}init(){this._player.init()}hasStarted(){return!this.queued&&this._player.hasStarted()}play(){!this.queued&&this._player.play()}pause(){!this.queued&&this._player.pause()}restart(){!this.queued&&this._player.restart()}finish(){this._player.finish()}destroy(){this.destroyed=!0,this._player.destroy()}reset(){!this.queued&&this._player.reset()}setPosition(r){this.queued||this._player.setPosition(r)}getPosition(){return this.queued?0:this._player.getPosition()}triggerCallback(r){const i=this._player;i.triggerCallback&&i.triggerCallback(r)}}function Hs(b){return b&&1===b.nodeType}function Ic(b,r){const i=b.style.display;return b.style.display=r??"none",i}function Vs(b,r,i,a,f){const v=[];
1i.forEach(j=>v.push(Ic(j)));const w=[];a.forEach((j,W)=>{const ue=new Map;j.forEach(Ke=>{const rt=r.computeStyle(W,Ke,f);ue.set(Ke,rt),(!rt||0==rt.length)&&(W[Bi]=Pd,w.push(W))}),b.set(W,ue)});let N=0;return i.forEach(j=>Ic(j,v[N++])),w}function Eu(b,r){const i=new Map;if(b.forEach(N=>i.set(N,[])),0==r.length)return i;const f=new Set(r),v=new Map;function w(N){if(!N)return 1;let j=v.get(N);if(j)return j;const W=N.parentNode;return j=i.has(W)?W:f.has(W)?1:w(W),v.set(N,j),j}return r.forEach(N=>{const j=w(N);1!==j&&i.get(j).push(N)}),i}function Ui(b,r){b.classList?.add(r)}function Ka(b,r){b.classList?.remove(r)}function Mc(b,r,i){Ar(i).onDone(()=>b.processLeaveNode(r))}function Zr(b,r){for(let i=0;i<b.length;i++){const a=b[i];a instanceof Gt.ui?Zr(a.players,r):r.push(a)}}function il(b,r,i){const a=i.get(b);if(!a)return!1;let f=r.get(b);return f?a.forEach(v=>f.add(v)):r.set(b,a),i.delete(b),!0}class js{constructor(r,i,a,f){this._driver=i,this._normalizer=a,this._triggerCache={},this.onRemovalComplete=(v,w)=>{},this._transitionEngine=new Cu(r.body,i,a,f),this._timelineEngine=new kd(r.body,i,a),this._transitionEngine.onRemovalComplete=(v,w)=>this.onRemovalComplete(v,w)}registerTrigger(r,i,a,f,v){const w=r+"-"+f;let N=this._triggerCache[w];if(!N){const j=[],ue=Zc(this._driver,v,j,[]);if(j.length)throw function A(b,r){return new g.wOt(3404,!1)}();N=function el(b,r,i){return new bp(b,r,i)}(f,ue,this._normalizer),this._triggerCache[w]=N}this._transitionEngine.registerTrigger(i,f,N)}register(r,i){this._transitionEngine.register(r,i)}destroy(r,i){this._transitionEngine.destroy(r,i)}onInsert(r,i,a,f){this._transitionEngine.insertNode(r,i,a,f)}onRemove(r,i,a){this._transitionEngine.removeNode(r,i,a)}disableAnimations(r,i){this._transitionEngine.markElementAsDisabled(r,i)}process(r,i,a,f){if("@"==a.charAt(0)){const[v,w]=rr(a);this._timelineEngine.command(v,i,w,f)}else this._transitionEngine.trigger(r,i,a,f)}listen(r,i,a,f,v){if("@"==a.charAt(0)){const[w,N]=rr(a);return this._timelineEngine.listen(w,i,N,v)}return this._transitionEngine.listen(r,i,a,f,v)}flush(r=-1){this._transitionEngine.flush(r)}get players(){return[...this._transitionEngine.players,...this._timelineEngine.players]}whenRenderingDone(){return this._transitionEngine.whenRenderingDone()}afterFlushAnimationsDone(r){this._transitionEngine.afterFlushAnimationsDone(r)}}class ma{static#e=this.initialStylesByElement=new WeakMap;constructor(r,i,a){this._element=r,this._startStyles=i,this._endStyles=a,this._state=0;let f=ma.initialStylesByElement.get(r);f||ma.initialStylesByElement.set(r,f=new Map),this._initialStyles=f}start(){this._state<1&&(this._startStyles&&Xn(this._element,this._startStyles,this._initialStyles),this._state=1)}finish(){this.start(),this._state<2&&(Xn(this._element,this._initialStyles),this._endStyles&&(Xn(this._element,this._endStyles),this._endStyles=null),this._state=1)}destroy(){this.finish(),this._state<3&&(ma.initialStylesByElement.delete(this._element),this._startStyles&&(bs(this._element,this._startStyles),this._endStyles=null),this._endStyles&&(bs(this._element,this._endStyles),this._endStyles=null),Xn(this._element,this._initialStyles),this._state=3)}}function _a(b){let r=null;return b.forEach((i,a)=>{(function Du(b){return"display"===b||"position"===b})(a)&&(r=r||new Map,r.set(a,i))}),r}class Su{constructor(r,i,a,f){this.element=r,this.keyframes=i,this.options=a,this._specialStyles=f,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=a.duration,this._delay=a.delay||0,this.time=this._duration+this._delay}_onFinish(){this._finished||(this._finished=!0,this._onDoneFns.forEach(r=>r()),this._onDoneFns=[])}init(){this._buildPlayer(),this._preparePlayerBeforeStart()}_buildPlayer(){if(this._initialized)return;this._initialized=!0;const r=this.keyframes;this.domPlayer=this._triggerWebAnimation(this.element,r,this.options),this._finalKeyframe=r.length?r[r.length-1]:new Map;const i=()=>this._onFinish();this.domPlayer.addEventListener("finish",i),this.onDestroy(()=>{this.domPlayer.removeEventListener("finish",i)})}_preparePlayerBeforeStart(){this._delay?this._resetDomPlayerState():this.domPlayer.pause()}_convertKeyframesToObject(r){const i=[];return r.forEach(a=>{i.push(Object.fromEntries(a))}),i}_triggerWebAnimation(r,i,a){return r.animate(this._convertKeyframesToObject(i),a)}onStart(r){this._originalOnStartFns.push(r),this._onStartFns.push(r)}onDone(r){this._originalOnDoneFns.push(r),this._onDoneFns.push(r)}onDestroy(r){this._onDestroyFns.push(r)}play(){this._buildPlayer(),this.hasStarted()||(this._onStartFns.forEach(r=>r()),this._onStartFns=[],this._started=!0,this._specialStyles&&this._specialStyles.start()),this.domPlayer.play()}pause(){this.init(),this.domPlayer.pause()}finish(){this.init(),this._specialStyles&&this._specialStyles.finish(),this._onFinish(),this.domPlayer.finish()}reset(){this._resetDomPlayerState(),this._destroyed=!1,this._finished=!1,this._started=!1,this._onStartFns=this._originalOnStartFns,this._onDoneFns=this._originalOnDoneFns}_resetDomPlayerState(){this.domPlayer&&this.domPlayer.cancel()}restart(){this.reset(),this.play()}hasStarted(){return this._started}destroy(){this._destroyed||(this._destroyed=!0,this._resetDomPlayerState(),this._onFinish(),this._specialStyles&&this._specialStyles.destroy(),this._onDestroyFns.forEach(r=>r()),this._onDestroyFns=[])}setPosition(r){void 0===this.domPlayer&&this.init(),this.domPlayer.currentTime=r*this.time}getPosition(){return+(this.domPlayer.currentTime??0)/this.time}get totalTime(){return this._delay+this._duration}beforeDestroy(){const r=new Map;this.hasStarted()&&this._finalKeyframe.forEach((a,f)=>{"offset"!==f&&r.set(f,this._finished?a:Rl(this.element,f))}),this.currentSnapshot=r}triggerCallback(r){const i="start"===r?this._onStartFns:this._onDoneFns;
1i.forEach(a=>a()),i.length=0}}class Ll{validateStyleProperty(r){return!0}validateAnimatableStyleProperty(r){return!0}matchesElement(r,i){return!1}containsElement(r,i){return Dl(r,i)}getParentElement(r){return ca(r)}query(r,i,a){return Td(r,i,a)}computeStyle(r,i,a){return Rl(r,i)}animate(r,i,a,f,v,w=[]){const j={duration:a,delay:f,fill:0==f?"both":"forwards"};v&&(j.easing=v);const W=new Map,ue=w.filter(_t=>_t instanceof Su);(function Oo(b,r){return 0===b||0===r})(a,f)&&ue.forEach(_t=>{_t.currentSnapshot.forEach((u,y)=>W.set(y,u))});let Ke=function Vh(b){return b.length?b[0]instanceof Map?b:b.map(r=>new Map(Object.entries(r))):[]}(i).map(_t=>new Map(_t));Ke=function Ml(b,r,i){if(i.size&&r.length){let a=r[0],f=[];if(i.forEach((v,w)=>{a.has(w)||f.push(w),a.set(w,v)}),f.length)for(let v=1;v<r.length;v++){let w=r[v];f.forEach(N=>w.set(N,Rl(b,N)))}}return r}(r,Ke,W);const rt=function Tu(b,r){let i=null,a=null;return Array.isArray(r)&&r.length?(i=_a(r[0]),r.length>1&&(a=_a(r[r.length-1]))):r instanceof Map&&(i=_a(r)),i||a?new ma(b,i,a):null}(r,Ke);return new Su(r,Ke,j,rt)}}const wu="@.disabled";class Au{constructor(r,i,a,f){this.namespaceId=r,this.delegate=i,this.engine=a,this._onDestroy=f,this.\u0275type=0}get data(){return this.delegate.data}destroyNode(r){this.delegate.destroyNode?.(r)}destroy(){this.engine.destroy(this.namespaceId,this.delegate),this.engine.afterFlushAnimationsDone(()=>{queueMicrotask(()=>{this.delegate.destroy()})}),this._onDestroy?.()}createElement(r,i){return this.delegate.createElement(r,i)}createComment(r){return this.delegate.createComment(r)}createText(r){return this.delegate.createText(r)}appendChild(r,i){this.delegate.appendChild(r,i),this.engine.onInsert(this.namespaceId,i,r,!1)}insertBefore(r,i,a,f=!0){this.delegate.insertBefore(r,i,a),this.engine.onInsert(this.namespaceId,i,r,f)}removeChild(r,i,a){this.engine.onRemove(this.namespaceId,i,this.delegate)}selectRootElement(r,i){return this.delegate.selectRootElement(r,i)}parentNode(r){return this.delegate.parentNode(r)}nextSibling(r){return this.delegate.nextSibling(r)}setAttribute(r,i,a,f){this.delegate.setAttribute(r,i,a,f)}removeAttribute(r,i,a){this.delegate.removeAttribute(r,i,a)}addClass(r,i){this.delegate.addClass(r,i)}removeClass(r,i){this.delegate.removeClass(r,i)}setStyle(r,i,a,f){this.delegate.setStyle(r,i,a,f)}removeStyle(r,i,a){this.delegate.removeStyle(r,i,a)}setProperty(r,i,a){"@"==i.charAt(0)&&i==wu?this.disableAnimations(r,!!a):this.delegate.setProperty(r,i,a)}setValue(r,i){this.delegate.setValue(r,i)}listen(r,i,a){return this.delegate.listen(r,i,a)}disableAnimations(r,i){this.engine.disableAnimations(r,i)}}class Iu extends Au{constructor(r,i,a,f,v){super(i,a,f,v),this.factory=r,this.namespaceId=i}setProperty(r,i,a){"@"==i.charAt(0)?"."==i.charAt(1)&&i==wu?this.disableAnimations(r,a=void 0===a||!!a):this.engine.process(this.namespaceId,r,i.slice(1),a):this.delegate.setProperty(r,i,a)}listen(r,i,a){if("@"==i.charAt(0)){const f=function Ld(b){switch(b){case"body":return document.body;case"document":return document;case"window":return window;default:return b}}(r);let v=i.slice(1),w="";return"@"!=v.charAt(0)&&([v,w]=function Mu(b){const r=b.indexOf(".");return[b.substring(0,r),b.slice(r+1)]}(v)),this.engine.listen(this.namespaceId,f,v,w,N=>{this.factory.scheduleListenerCallback(N._data||-1,a,N)})}return this.delegate.listen(r,i,a)}}class Bl{constructor(r,i,a){this.delegate=r,this.engine=i,this._zone=a,this._currentId=0,this._microtaskId=1,this._animationCallbacksBuffer=[],this._rendererCache=new Map,this._cdRecurDepth=0,i.onRemovalComplete=(f,v)=>{const w=v?.parentNode(f);w&&v.removeChild(w,f)}}createRenderer(r,i){const f=this.delegate.createRenderer(r,i);if(!r||!i?.data?.animation){const W=this._rendererCache;let ue=W.get(f);return ue||(ue=new Au("",f,this.engine,()=>W.delete(f)),W.set(f,ue)),ue}const v=i.id,w=i.id+"-"+this._currentId;this._currentId++,this.engine.register(w,r);const N=W=>{Array.isArray(W)?W.forEach(N):this.engine.registerTrigger(v,w,r,W.name,W)};return i.data.animation.forEach(N),new Iu(this,w,f,this.engine)}begin(){this._cdRecurDepth++,this.delegate.begin&&this.delegate.begin()}_scheduleCountTask(){queueMicrotask(()=>{this._microtaskId++})}scheduleListenerCallback(r,i,a){if(r>=0&&r<this._microtaskId)return void this._zone.run(()=>i(a));const f=this._animationCallbacksBuffer;0==f.length&&queueMicrotask(()=>{this._zone.run(()=>{f.forEach(v=>{const[w,N]=v;w(N)}),this._animationCallbacksBuffer=[]})}),f.push([i,a])}end(){this._cdRecurDepth--,0==this._cdRecurDepth&&this._zone.runOutsideAngular(()=>{this._scheduleCountTask(),this.engine.flush(this._microtaskId)}),this.delegate.end&&this.delegate.end()}whenRenderingDone(){return this.engine.whenRenderingDone()}}var Bd=I(177);const ao=[{provide:wl,useFactory:function Ud(){return new Ls}},{provide:js,useClass:(()=>{class b extends js{constructor(i,a,f){super(i,a,f,(0,g.WQX)(g.An2,{optional:!0}))}ngOnDestroy(){this.flush()}static#e=this.\u0275fac=function(a){return new(a||b)(g.KVO(Bd.qQ),g.KVO(au),g.KVO(wl))};static#t=this.\u0275prov=g.jDH({token:b,factory:b.\u0275fac})}return b})()},{provide:g._9s,useFactory:function Ul(b,r,i){return new Bl(b,r,i)},deps:[c.B7,js,g.SKi]}],Hd=[{provide:au,useFactory:()=>new Ll},{provide:g.bc$,useValue:"BrowserAnimations"},...ao],al=[{provide:au,useClass:Sl},{provide:g.bc$,useValue:"NoopAnimations"},...ao];let Qh=(()=>{class b{static withConfig(i){return{ngModule:b,providers:i.disableAnimations?al:Hd}}static#e=this.\u0275fac=function(a){return new(a||b)};static#t=this.\u0275mod=g.$C({type:b});static#n=this.\u0275inj=g.G2t({providers:Hd,imports:[c.Bb]})}return b})();var Wa=I(4264),Yh=I(7673),Zh=I(4412),Hl=I(1413);const Jh=new g.nKC("recaptcha-language"),Dp=new g.nKC("recaptcha-base-url"),Vd=new g.nKC("recaptcha-nonce-tag"),jd=(new g.nKC("recaptcha-settings"),new g.nKC("recaptcha-v3-site-key")),ef=new g.nKC("recaptcha-loader-options"),Nu={loadScript:function Rc(b,r,i,{url:a,lang:f,nonce:v}={}){window.ng2recaptchaloaded=()=>{i(grecaptcha)};const w=document.createElement("script");w.innerHTML="";const{url:N,nonce:j}=r(new URL(a||"https://www.google.com/recaptcha/api.js"));N.searchParams.set("render","explicit"===b?b:b.key),N.searchParams.set("onload","ng2recaptchaloaded"),N.searchParams.set("trustedtypes","true"),f&&N.searchParams.set("hl",f),w.src=N.href;const W=j||v;W&&w.setAttribute("nonce",W),w.async=!0,w.defer=!0,document.head.appendChild(w)},newLoadScript:function Nc({v3SiteKey:b,onBeforeLoad:r,onLoaded:i}){Nu.loadScript(b?{key:b}:"explicit",r,i)}};let Vl=(()=>{class b{static#e=this.ready=null;constructor(i,a,f,v,w,N){this.platformId=i,this.language=a,this.baseUrl=f,this.nonce=v,this.v3SiteKey=w,this.options=N;const j=this.init();this.ready=j?function tf(b){return b.asObservable().pipe((0,gt.p)(r=>null!==r))}(j):(0,Yh.of)()}init(){if(b.ready)return b.ready;if(!(0,Bd.UE)(this.platformId))return;const i=new Zh.t(null);return b.ready=i,Nu.newLoadScript({v3SiteKey:this.v3SiteKey,onBeforeLoad:a=>
1{if(this.options?.onBeforeLoad)return this.options.onBeforeLoad(a);const f=new URL(this.baseUrl??a);return this.language&&f.searchParams.set("hl",this.language),{url:f,nonce:this.nonce}},onLoaded:a=>{let f=a;this.options?.onLoaded&&(f=this.options.onLoaded(a)),i.next(f)}}),i}static#t=this.\u0275fac=function(a){return new(a||b)(g.KVO(g.Agw),g.KVO(Jh,8),g.KVO(Dp,8),g.KVO(Vd,8),g.KVO(jd,8),g.KVO(ef,8))};static#n=this.\u0275prov=g.jDH({token:b,factory:b.\u0275fac})}return b})(),Kd=(()=>{class b{constructor(i,a,f){this.recaptchaLoader=a,this.zone=i,this.siteKey=f,this.init()}get onExecute(){return this.onExecuteSubject||(this.onExecuteSubject=new Hl.B,this.onExecuteObservable=this.onExecuteSubject.asObservable()),this.onExecuteObservable}get onExecuteError(){return this.onExecuteErrorSubject||(this.onExecuteErrorSubject=new Hl.B,this.onExecuteErrorObservable=this.onExecuteErrorSubject.asObservable()),this.onExecuteErrorObservable}execute(i){const a=new Hl.B;return this.grecaptcha?this.executeActionWithSubject(i,a):(this.actionBacklog||(this.actionBacklog=[]),this.actionBacklog.push([i,a])),a.asObservable()}executeActionWithSubject(i,a){const f=v=>{this.zone.run(()=>{a.error(v),this.onExecuteErrorSubject&&this.onExecuteErrorSubject.next({action:i,error:v})})};this.zone.runOutsideAngular(()=>{try{this.grecaptcha.execute(this.siteKey,{action:i}).then(v=>{this.zone.run(()=>{a.next(v),a.complete(),this.onExecuteSubject&&this.onExecuteSubject.next({action:i,token:v})})},f)}catch(v){f(v)}})}init(){this.recaptchaLoader.ready.subscribe(i=>{this.grecaptcha=i,this.actionBacklog&&this.actionBacklog.length>0&&(this.actionBacklog.forEach(([a,f])=>this.executeActionWithSubject(a,f)),this.actionBacklog=void 0)})}static#e=this.\u0275fac=function(a){return new(a||b)(g.KVO(g.SKi),g.KVO(Vl),g.KVO(jd))};static#t=this.\u0275prov=g.jDH({token:b,factory:b.\u0275fac})}return b})(),Wd=(()=>{class b{static#e=this.\u0275fac=function(a){return new(a||b)};static#t=this.\u0275mod=g.$C({type:b});static#n=this.\u0275inj=g.G2t({providers:[Kd,Vl]})}return b})();var $l=I(1397),Ou=I(8757);let rf=(()=>{class b{constructor(){}intercept(i,a){let f=i,v=i.context.get(Ou.b);return v?(0,g.WQX)(Kd).execute(v.action).pipe((0,$l.Z)(N=>{if(N)return f=i.clone({setHeaders:{authorization:N}}),a.handle(f)})):a.handle(f)}static#e=this.\u0275fac=function(a){return new(a||b)};static#t=this.\u0275prov=g.jDH({token:b,factory:b.\u0275fac})}return b})();var sf=I(6648);const zd=["he","ar","en"];class cf{getTranslation(r){return(0,sf.H)(I(7995)(`./${r}.json`))}}class co{handle(r){return""}}const ku=q.c.public?[{provide:et.a7,useClass:pc,multi:!0},{provide:jd,useValue:q.c.recaptcha.siteKey},{provide:Jh,useValue:function af(){let b=(0,Be.KT)("language","");return b=zd.includes(b)?b:"he","he"===b?"iw":b}()},{provide:et.a7,useClass:rf,multi:!0}]:[{provide:et.a7,useClass:Y.vC,multi:!0},{provide:et.a7,useClass:Vr,multi:!0},Y.dl,Y.VA,Y.qb];let Xd=(()=>{class b{static#e=this.\u0275fac=function(a){return new(a||b)};static#t=this.\u0275mod=g.$C({type:b,bootstrap:[Ut,Y.vI]});static#n=this.\u0275inj=g.G2t({providers:ku,imports:[c.Bb,Qh,de,et.q1,Wd,wt.h.forRoot({defaultLanguage:"he",missingTranslationHandler:{provide:wt.er,useClass:co},loader:{provide:wt.Wr,useClass:cf}}),Y.oH.forRoot(new nr({auth:{clientId:Nr.C.clientId,authority:Nr.C.authority,redirectUri:Nr.C.redirectUri},cache:{cacheLocation:Ae.Al.LocalStorage,storeAuthStateInCookie:!1},system:{loggerOptions:{loggerCallback:(i,a)=>{!q.c.public&&!q.c.production&&console.log(a)},piiLoggingEnabled:!1}}}),{interactionType:Ae.X8.Redirect,authRequest:{scopes:Nr.C.scopes}},{interactionType:Ae.X8.Redirect,protectedResourceMap:new Map([["https://graph.microsoft.com/v1.0/me",["user.read"]],[q.c.apiBaseUri,Nr.C.scopes]])}),Wa.UN]})}return b})();q.c.production&&(0,g.SmG)(),c.sG().bootstrapModule(Xd).catch(b=>console.log(b))},4412:(ct,be,I)=>{"use strict";I.d(be,{t:()=>g});var c=I(1413);class g extends c.B{constructor(Y){super(),this._value=Y}get value(){return this.getValue()}_subscribe(Y){const q=super._subscribe(Y);return!q.closed&&Y.next(this._value),q}getValue(){const{hasError:Y,thrownError:q,_value:ge}=this;if(Y)throw q;return this._throwIfClosed(),ge}next(Y){super.next(this._value=Y)}}},1985:(ct,be,I)=>{"use strict";I.d(be,{c:()=>he});var c=I(7707),g=I(8359),$=I(3494),Y=I(1203),q=I(1026),ge=I(8071),se=I(9786);let he=(()=>{class ie{constructor(Re){Re&&(this._subscribe=Re)}lift(Re){const Be=new ie;return Be.source=this,Be.operator=Re,Be}subscribe(Re,Be,ut){const Le=function ce(ie){return ie&&ie instanceof c.vU||function De(ie){return ie&&(0,ge.T)(ie.next)&&(0,ge.T)(ie.error)&&(0,ge.T)(ie.complete)}(ie)&&(0,g.Uv)(ie)}(Re)?Re:new c.Ms(Re,Be,ut);return(0,se.Y)(()=>{const{operator:gt,source:wt}=this;Le.add(gt?gt.call(Le,wt):wt?this._subscribe(Le):this._trySubscribe(Le))}),Le}_trySubscribe(Re){try{return this._subscribe(Re)}catch(Be){Re.error(Be)}}forEach(Re,Be){return new(Be=de(Be))((ut,Le)=>{const gt=new c.Ms({next:wt=>{try{Re(wt)}catch(Ut){Le(Ut),gt.unsubscribe()}},error:Le,complete:ut});this.subscribe(gt)})}_subscribe(Re){var Be;return null===(Be=this.source)||void 0===Be?void 0:Be.subscribe(Re)}[$.s](){return this}pipe(...Re){return(0,Y.m)(Re)(this)}toPromise(Re){return new(Re=de(Re))((Be,ut)=>{let Le;this.subscribe(gt=>Le=gt,gt=>ut(gt),()=>Be(Le))})}}return ie.create=we=>new ie(we),ie})();function de(ie){var we;return null!==(we=ie??q.$.Promise)&&void 0!==we?we:Promise}},2771:(ct,be,I)=>{"use strict";I.d(be,{m:()=>$});var c=I(1413),g=I(6129);class $ extends c.B{constructor(q=1/0,ge=1/0,se=g.U){super(),this._bufferSize=q,this._windowTime=ge,this._timestampProvider=se,this._buffer=[],this._infiniteTimeWindow=!0,this._infiniteTimeWindow=ge===1/0,this._bufferSize=Math.max(1,q),this._windowTime=Math.max(1,ge)}next(q){const{isStopped:ge,_buffer:se,_infiniteTimeWindow:he,_timestampProvider:de,_windowTime:De}=this;ge||(se.push(q),!he&&se.push(de.now()+De)),this._trimBuffer(),super.next(q)}_subscribe(q){this._throwIfClosed(),this._trimBuffer();const ge=this._innerSubscribe(q),{_infiniteTimeWindow:se,_buffer:he}=this,de=he.slice();for(let De=0;De<de.length&&!q.closed;De+=se?1:2)q.next(de[De]);return this._checkFinalizedStatuses(q),ge}_trimBuffer(){const{_bufferSize:q,_timestampProvider:ge,_buffer:se,_infiniteTimeWindow:he}=this,de=(he?1:2)*q;if(q<1/0&&de<se.length&&se.splice(0,se.length-de),!he){const De=ge.now();let ce=0;for(let ie=1;ie<se.length&&se[ie]<=De;ie+=2)ce=ie;ce&&se.splice(0,ce+1)}}}},1413:(ct,be,I)=>{"use strict";I.d(be,{B:()=>se});var c=I(1985),g=I(8359);const Y=(0,I(1853).L)(de=>function(){de(this),this.name="ObjectUnsubscribedError",this.message="object unsubscribed"});var q=I(7908),ge=I(9786);let se=(()=>{class de extends c.c{constructor(){super(),this.closed=!1,this.currentObservers=null,this.observers=[],this.isStopped=!1,this.hasError=!1,this.thrownError=null}lift(ce){const ie=new he(this,this);return ie.operator=ce,ie}_throwIfClosed(){if(this.closed)throw new Y}next(ce){(0,ge.Y)(()=>
1{if(this._throwIfClosed(),!this.isStopped){this.currentObservers||(this.currentObservers=Array.from(this.observers));for(const ie of this.currentObservers)ie.next(ce)}})}error(ce){(0,ge.Y)(()=>{if(this._throwIfClosed(),!this.isStopped){this.hasError=this.isStopped=!0,this.thrownError=ce;const{observers:ie}=this;for(;ie.length;)ie.shift().error(ce)}})}complete(){(0,ge.Y)(()=>{if(this._throwIfClosed(),!this.isStopped){this.isStopped=!0;const{observers:ce}=this;for(;ce.length;)ce.shift().complete()}})}unsubscribe(){this.isStopped=this.closed=!0,this.observers=this.currentObservers=null}get observed(){var ce;return(null===(ce=this.observers)||void 0===ce?void 0:ce.length)>0}_trySubscribe(ce){return this._throwIfClosed(),super._trySubscribe(ce)}_subscribe(ce){return this._throwIfClosed(),this._checkFinalizedStatuses(ce),this._innerSubscribe(ce)}_innerSubscribe(ce){const{hasError:ie,isStopped:we,observers:Re}=this;return ie||we?g.Kn:(this.currentObservers=null,Re.push(ce),new g.yU(()=>{this.currentObservers=null,(0,q.o)(Re,ce)}))}_checkFinalizedStatuses(ce){const{hasError:ie,thrownError:we,isStopped:Re}=this;ie?ce.error(we):Re&&ce.complete()}asObservable(){const ce=new c.c;return ce.source=this,ce}}return de.create=(De,ce)=>new he(De,ce),de})();class he extends se{constructor(De,ce){super(),this.destination=De,this.source=ce}next(De){var ce,ie;null===(ie=null===(ce=this.destination)||void 0===ce?void 0:ce.next)||void 0===ie||ie.call(ce,De)}error(De){var ce,ie;null===(ie=null===(ce=this.destination)||void 0===ce?void 0:ce.error)||void 0===ie||ie.call(ce,De)}complete(){var De,ce;null===(ce=null===(De=this.destination)||void 0===De?void 0:De.complete)||void 0===ce||ce.call(De)}_subscribe(De){var ce,ie;return null!==(ie=null===(ce=this.source)||void 0===ce?void 0:ce.subscribe(De))&&void 0!==ie?ie:g.Kn}}},7707:(ct,be,I)=>{"use strict";I.d(be,{Ms:()=>ut,vU:()=>ie});var c=I(8071),g=I(8359),$=I(1026),Y=I(5334),q=I(5343);const ge=de("C",void 0,void 0);function de(et,ne,F){return{kind:et,value:ne,error:F}}var De=I(9270),ce=I(9786);class ie extends g.yU{constructor(ne){super(),this.isStopped=!1,ne?(this.destination=ne,(0,g.Uv)(ne)&&ne.add(this)):this.destination=Ut}static create(ne,F,tt){return new ut(ne,F,tt)}next(ne){this.isStopped?wt(function he(et){return de("N",et,void 0)}(ne),this):this._next(ne)}error(ne){this.isStopped?wt(function se(et){return de("E",void 0,et)}(ne),this):(this.isStopped=!0,this._error(ne))}complete(){this.isStopped?wt(ge,this):(this.isStopped=!0,this._complete())}unsubscribe(){this.closed||(this.isStopped=!0,super.unsubscribe(),this.destination=null)}_next(ne){this.destination.next(ne)}_error(ne){try{this.destination.error(ne)}finally{this.unsubscribe()}}_complete(){try{this.destination.complete()}finally{this.unsubscribe()}}}const we=Function.prototype.bind;function Re(et,ne){return we.call(et,ne)}class Be{constructor(ne){this.partialObserver=ne}next(ne){const{partialObserver:F}=this;if(F.next)try{F.next(ne)}catch(tt){Le(tt)}}error(ne){const{partialObserver:F}=this;if(F.error)try{F.error(ne)}catch(tt){Le(tt)}else Le(ne)}complete(){const{partialObserver:ne}=this;if(ne.complete)try{ne.complete()}catch(F){Le(F)}}}class ut extends ie{constructor(ne,F,tt){let st;if(super(),(0,c.T)(ne)||!ne)st={next:ne??void 0,error:F??void 0,complete:tt??void 0};else{let nt;this&&$.$.useDeprecatedNextContext?(nt=Object.create(ne),nt.unsubscribe=()=>this.unsubscribe(),st={next:ne.next&&Re(ne.next,nt),error:ne.error&&Re(ne.error,nt),complete:ne.complete&&Re(ne.complete,nt)}):st=ne}this.destination=new Be(st)}}function Le(et){$.$.useDeprecatedSynchronousErrorHandling?(0,ce.l)(et):(0,Y.m)(et)}function wt(et,ne){const{onStoppedNotification:F}=$.$;F&&De.f.setTimeout(()=>F(et,ne))}const Ut={closed:!0,next:q.l,error:function gt(et){throw et},complete:q.l}},8359:(ct,be,I)=>{"use strict";I.d(be,{Kn:()=>ge,yU:()=>q,Uv:()=>se});var c=I(8071);const $=(0,I(1853).L)(de=>function(ce){de(this),this.message=ce?`${ce.length} errors occurred during unsubscription:\n${ce.map((ie,we)=>`${we+1}) ${ie.toString()}`).join("\n ")}`:"",this.name="UnsubscriptionError",this.errors=ce});var Y=I(7908);class q{constructor(De){this.initialTeardown=De,this.closed=!1,this._parentage=null,this._finalizers=null}
1unsubscribe(){let De;if(!this.closed){this.closed=!0;const{_parentage:ce}=this;if(ce)if(this._parentage=null,Array.isArray(ce))for(const Re of ce)Re.remove(this);else ce.remove(this);const{initialTeardown:ie}=this;if((0,c.T)(ie))try{ie()}catch(Re){De=Re instanceof $?Re.errors:[Re]}const{_finalizers:we}=this;if(we){this._finalizers=null;for(const Re of we)try{he(Re)}catch(Be){De=De??[],Be instanceof $?De=[...De,...Be.errors]:De.push(Be)}}if(De)throw new $(De)}}add(De){var ce;if(De&&De!==this)if(this.closed)he(De);else{if(De instanceof q){if(De.closed||De._hasParent(this))return;De._addParent(this)}(this._finalizers=null!==(ce=this._finalizers)&&void 0!==ce?ce:[]).push(De)}}_hasParent(De){const{_parentage:ce}=this;return ce===De||Array.isArray(ce)&&ce.includes(De)}_addParent(De){const{_parentage:ce}=this;this._parentage=Array.isArray(ce)?(ce.push(De),ce):ce?[ce,De]:De}_removeParent(De){const{_parentage:ce}=this;ce===De?this._parentage=null:Array.isArray(ce)&&(0,Y.o)(ce,De)}remove(De){const{_finalizers:ce}=this;ce&&(0,Y.o)(ce,De),De instanceof q&&De._removeParent(this)}}q.EMPTY=(()=>{const de=new q;return de.closed=!0,de})();const ge=q.EMPTY;function se(de){return de instanceof q||de&&"closed"in de&&(0,c.T)(de.remove)&&(0,c.T)(de.add)&&(0,c.T)(de.unsubscribe)}function he(de){(0,c.T)(de)?de():de.unsubscribe()}},1026:(ct,be,I)=>{"use strict";I.d(be,{$:()=>c});const c={onUnhandledError:null,onStoppedNotification:null,Promise:void 0,useDeprecatedSynchronousErrorHandling:!1,useDeprecatedNextContext:!1}},8793:(ct,be,I)=>{"use strict";I.d(be,{x:()=>q});var c=I(6365),$=I(9326),Y=I(6648);function q(...ge){return function g(){return(0,c.U)(1)}()((0,Y.H)(ge,(0,$.lI)(ge)))}},9030:(ct,be,I)=>{"use strict";I.d(be,{v:()=>$});var c=I(1985),g=I(8750);function $(Y){return new c.c(q=>{(0,g.Tg)(Y()).subscribe(q)})}},983:(ct,be,I)=>{"use strict";I.d(be,{w:()=>g});const g=new(I(1985).c)(q=>q.complete())},7468:(ct,be,I)=>{"use strict";I.d(be,{p:()=>he});var c=I(1985),g=I(3073),$=I(8750),Y=I(9326),q=I(4360),ge=I(6450),se=I(8496);function he(...de){const De=(0,Y.ms)(de),{args:ce,keys:ie}=(0,g.D)(de),we=new c.c(Re=>{const{length:Be}=ce;if(!Be)return void Re.complete();const ut=new Array(Be);let Le=Be,gt=Be;for(let wt=0;wt<Be;wt++){let Ut=!1;(0,$.Tg)(ce[wt]).subscribe((0,q._)(Re,et=>{Ut||(Ut=!0,gt--),ut[wt]=et},()=>Le--,void 0,()=>{(!Le||!Ut)&&(gt||Re.next(ie?(0,se.e)(ie,ut):ut),Re.complete())}))}});return De?we.pipe((0,ge.I)(De)):we}},6648:(ct,be,I)=>{"use strict";I.d(be,{H:()=>tt});var c=I(8750),g=I(5225),$=I(9974),Y=I(4360);function q(st,nt=0){return(0,$.N)((Ve,te)=>{Ve.subscribe((0,Y._)(te,_e=>(0,g.N)(te,st,()=>te.next(_e),nt),()=>(0,g.N)(te,st,()=>te.complete(),nt),_e=>(0,g.N)(te,st,()=>te.error(_e),nt)))})}function ge(st,nt=0){return(0,$.N)((Ve,te)=>{te.add(st.schedule(()=>Ve.subscribe(te),nt))})}var de=I(1985),ce=I(4761),ie=I(8071);function Re(st,nt){if(!st)throw new Error("Iterable cannot be null");return new de.c(Ve=>{(0,g.N)(Ve,nt,()=>{const te=st[Symbol.asyncIterator]();(0,g.N)(Ve,nt,()=>{te.next().then(_e=>{_e.done?Ve.complete():Ve.next(_e.value)})},0,!0)})})}var Be=I(5055),ut=I(9858),Le=I(7441),gt=I(5397),wt=I(7953),Ut=I(591),et=I(5196);function tt(st,nt){return nt?function F(st,nt){if(null!=st){if((0,Be.l)(st))return function se(st,nt){return(0,c.Tg)(st).pipe(ge(nt),q(nt))}(st,nt);if((0,Le.X)(st))return function De(st,nt){return new de.c(Ve=>{let te=0;return nt.schedule(function(){te===st.length?Ve.complete():(Ve.next(st[te++]),Ve.closed||this.schedule())})})}(st,nt);if((0,ut.y)(st))return function he(st,nt){return(0,c.Tg)(st).pipe(ge(nt),q(nt))}(st,nt);if((0,wt.T)(st))return Re(st,nt);if((0,gt.x)(st))return function we(st,nt){return new de.c(Ve=>{let te;return(0,g.N)(Ve,nt,()=>{te=st[ce.l](),(0,g.N)(Ve,nt,()=>{let _e,Tt;try{({value:_e,done:Tt}=te.next())}catch(vt){return void Ve.error(vt)}Tt?Ve.complete():Ve.next(_e)},0,!0)}),()=>(0,ie.T)(te?.return)&&te.return()})}(st,nt);if((0,et.U)(st))return function ne(st,nt){return Re((0,et.C)(st),nt)}(st,nt)}throw(0,Ut.L)(st)}(st,nt):(0,c.Tg)(st)}},3726:(ct,be,I)=>{"use strict";I.d(be,{R:()=>De});var c=I(8750),g=I(1985),$=I(1397),Y=I(7441),q=I(8071),ge=I(6450);const se=["addListener","removeListener"],he=["addEventListener","removeEventListener"],de=["on","off"];function De(Be,ut,Le,gt){if((0,q.T)(Le)&&(gt=Le,Le=void 0),gt)return De(Be,ut,Le).pi
1pe((0,ge.I)(gt));const[wt,Ut]=function Re(Be){return(0,q.T)(Be.addEventListener)&&(0,q.T)(Be.removeEventListener)}(Be)?he.map(et=>ne=>Be[et](ut,ne,Le)):function ie(Be){return(0,q.T)(Be.addListener)&&(0,q.T)(Be.removeListener)}(Be)?se.map(ce(Be,ut)):function we(Be){return(0,q.T)(Be.on)&&(0,q.T)(Be.off)}(Be)?de.map(ce(Be,ut)):[];if(!wt&&(0,Y.X)(Be))return(0,$.Z)(et=>De(et,ut,Le))((0,c.Tg)(Be));if(!wt)throw new TypeError("Invalid event target");return new g.c(et=>{const ne=(...F)=>et.next(1<F.length?F:F[0]);return wt(ne),()=>Ut(ne)})}function ce(Be,ut){return Le=>gt=>Be[Le](ut,gt)}},8750:(ct,be,I)=>{"use strict";I.d(be,{Tg:()=>we});var c=I(1635),g=I(7441),$=I(9858),Y=I(1985),q=I(5055),ge=I(7953),se=I(591),he=I(5397),de=I(5196),De=I(8071),ce=I(5334),ie=I(3494);function we(et){if(et instanceof Y.c)return et;if(null!=et){if((0,q.l)(et))return function Re(et){return new Y.c(ne=>{const F=et[ie.s]();if((0,De.T)(F.subscribe))return F.subscribe(ne);throw new TypeError("Provided object does not correctly implement Symbol.observable")})}(et);if((0,g.X)(et))return function Be(et){return new Y.c(ne=>{for(let F=0;F<et.length&&!ne.closed;F++)ne.next(et[F]);ne.complete()})}(et);if((0,$.y)(et))return function ut(et){return new Y.c(ne=>{et.then(F=>{ne.closed||(ne.next(F),ne.complete())},F=>ne.error(F)).then(null,ce.m)})}(et);if((0,ge.T)(et))return gt(et);if((0,he.x)(et))return function Le(et){return new Y.c(ne=>{for(const F of et)if(ne.next(F),ne.closed)return;ne.complete()})}(et);if((0,de.U)(et))return function wt(et){return gt((0,de.C)(et))}(et)}throw(0,se.L)(et)}function gt(et){return new Y.c(ne=>{(function Ut(et,ne){var F,tt,st,nt;return(0,c.sH)(this,void 0,void 0,function*(){try{for(F=(0,c.xN)(et);!(tt=yield F.next()).done;)if(ne.next(tt.value),ne.closed)return}catch(Ve){st={error:Ve}}finally{try{tt&&!tt.done&&(nt=F.return)&&(yield nt.call(F))}finally{if(st)throw st.error}}ne.complete()})})(et,ne).catch(F=>ne.error(F))})}},7673:(ct,be,I)=>{"use strict";I.d(be,{of:()=>$});var c=I(9326),g=I(6648);function $(...Y){const q=(0,c.lI)(Y);return(0,g.H)(Y,q)}},8810:(ct,be,I)=>{"use strict";I.d(be,{$:()=>$});var c=I(1985),g=I(8071);function $(Y,q){const ge=(0,g.T)(Y)?Y:()=>Y,se=he=>he.error(ge());return new c.c(q?he=>q.schedule(se,0,he):se)}},1584:(ct,be,I)=>{"use strict";I.d(be,{O:()=>q});var c=I(1985),g=I(8839),$=I(9470);function q(ge=0,se,he=g.b){let de=-1;return null!=se&&((0,$.m)(se)?he=se:de=se),new c.c(De=>{let ce=function Y(ge){return ge instanceof Date&&!isNaN(ge)}(ge)?+ge-he.now():ge;ce<0&&(ce=0);let ie=0;return he.schedule(function(){De.closed||(De.next(ie++),0<=de?this.schedule(void 0,de):De.complete())},ce)})}},4360:(ct,be,I)=>{"use strict";I.d(be,{_:()=>g});var c=I(7707);function g(Y,q,ge,se,he){return new $(Y,q,ge,se,he)}class $ extends c.vU{constructor(q,ge,se,he,de,De){super(q),this.onFinalize=de,this.shouldUnsubscribe=De,this._next=ge?function(ce){try{ge(ce)}catch(ie){q.error(ie)}}:super._next,this._error=he?function(ce){try{he(ce)}catch(ie){q.error(ie)}finally{this.unsubscribe()}}:super._error,this._complete=se?function(){try{se()}catch(ce){q.error(ce)}finally{this.unsubscribe()}}:super._complete}unsubscribe(){var q;if(!this.shouldUnsubscribe||this.shouldUnsubscribe()){const{closed:ge}=this;super.unsubscribe(),!ge&&(null===(q=this.onFinalize)||void 0===q||q.call(this))}}}},9437:(ct,be,I)=>{"use strict";I.d(be,{W:()=>Y});var c=I(8750),g=I(4360),$=I(9974);function Y(q){return(0,$.N)((ge,se)=>{let De,he=null,de=!1;he=ge.subscribe((0,g._)(se,void 0,void 0,ce=>{De=(0,c.Tg)(q(ce,Y(q)(ge))),he?(he.unsubscribe(),he=null,De.subscribe(se)):de=!0})),de&&(he.unsubscribe(),he=null,De.subscribe(se))})}},274:(ct,be,I)=>{"use strict";I.d(be,{H:()=>$});var c=I(1397),g=I(8071);function $(Y,q){return(0,g.T)(q)?(0,c.Z)(Y,q,1):(0,c.Z)(Y,1)}},3294:(ct,be,I)=>{"use strict";I.d(be,{F:()=>Y});var c=I(3669),g=I(9974),$=I(4360);function Y(ge,se=c.D){return ge=ge??q,(0,g.N)((he,de)=>{let De,ce=!0;he.subscribe((0,$._)(de,ie=>{const we=se(ie);(ce||!ge(De,we))&&(ce=!1,De=we,de.next(ie))}))})}function q(ge,se){return ge===se}},5964:(ct,be,I)=>{"use strict";I.d(be,{p:()=>$});var c=I(9974),g=I(4360);function $(Y,q){return(0,c.N)((ge,se)=>{let he=0;ge.subscribe((0,g._)(se,de=>Y.call(q,de,he++)&&se.next(de)))})}},980:(ct,be,I)=>{"use strict";I.d(be,{j:()=>g});var c=I(9974);function g($){return(0,c.N)((Y,q)=>{try{Y.subscribe(q)}finally{q.add($)}})}},6354:(ct,be,I)=>{"use strict";I.d(be,{T:()=>$});var c=I(9974),g=I(4360);function $(Y,q){return(0,c.N)((ge,se)=>{let he=0;ge.subscribe((0,g._)(se,de=>{se.next(Y.call(q,de,he++))}))})}},3703:(ct,be,I)=>{"use strict";I.d(be,{u:()=>g});var c=I(6354);function g($){return(0,c.T)(()=>$)}},6365:(ct,be,I)=>{"use strict";I.d(be,{U:()=>$});var c=I(1397),g=I(3669);function $(Y=1/0){return(0,c.Z)(g.D,Y)}},1397:(ct,be,I)=>{"use strict";I.d(be,{Z:()=>he});var c=I(6354),g=I(8750),$=I(9974),Y=I(5225),q=I(4360),se=I(8071);function he(de,De,ce=1/0){return(0,se.T)(De)?he((ie,we)=>(0,c.T)((Re,Be)=>De(ie,Re,we,Be))((0,g.Tg)(de(ie,we))),ce):("number"==typeof De&&(ce=De),(0,$.N)((ie,we)=>function ge(de,De,ce,ie,we,Re,Be,ut){const Le=[];let gt=0,wt=0,Ut=!1;const et=()=>{Ut&&!Le.length&&!gt&&De.complete()},ne=tt=>gt<ie?F(tt):Le.push(tt),F=tt=>{Re&&De.next(tt),gt++;let st=!1;(0,g.Tg)(ce(tt,wt++)).subscribe((0,q._)(De,nt=>{we?.(nt),Re?ne(nt):De.next(nt)},()=>{st=!0},void 0,()=>{if(st)try{for(gt--;Le.length&><ie;){const nt=Le.shift();Be?(0,Y.N)(De,Be,()=>F(nt)):F(nt)}et()}catch(nt){De.error(nt)}}))};return de.subscribe((0,q._)(De,ne,()=>{Ut=!0,et()})),()=>{ut?.()}}(ie,we,de,ce)))}},9568:(ct,be,I)=>{"use strict";I.d(be,{t:()=>he});var c=I(2771),g=I(8750),$=I(1413),Y=I(7707),q=I(9974);function se(de,De,...ce){if(!0===De)return void de();if(!1===De)return;const ie=new Y.Ms({next:()=>{ie.unsubscribe(),de()}});return(0,g.Tg)(De(...ce)).subscribe(ie)}function he(de,De,ce){let ie,we=!1;return de&&"object"==typeof de?({bufferSize:ie=1/0,windowTime:De=1/0,refCount:we=!1,scheduler:ce}=de):ie=de??1/0,function ge(de={}){const{connector:De=(()=>new $.B),resetOnError:ce=!0,resetOnComplete:ie=!0,resetOnRefCountZero:we=!0}=de;return Re=>{let Be,ut,Le,gt=0,wt=!1,Ut=!1;const et=()=>{ut?.unsubscribe(),ut=void 0},ne=()=>{et(),Be=Le=void 0,wt=Ut=!1},F=()=>{const tt=Be;ne(),tt?.unsubscribe()};return(0,q.N)((tt,st)=>{gt++,!Ut&&!wt&&et();const nt=Le=Le??De();st.add(()=>{gt--,0===gt&&!Ut&&!wt&&(ut=se(F,we))}),nt.subscribe(st),!Be&>>0&&(Be=new Y.Ms({next:Ve=>nt.next(Ve),error:Ve=>{Ut=!0,et(),ut=se(ne,ce,Ve),nt.error(Ve)},complete:()=>{wt=!0,et(),ut=se(ne,ie),nt.complete()}}),(0,g.Tg)(tt).subscribe(Be))})(Re)}}({connector:()=>new c.m(ie,De,ce),resetOnError:!0,resetOnComplete:!1,resetOnRefCountZero:we})}},9172:(ct,be,I)=>{"use strict";I.d(be,{Z:()=>Y});var c=I(8793),g=I(9326),$=I(9974);function Y(...q){const ge=(0,g.lI)(q);return(0,$.N)((se,he)=>{(ge?(0,c.x)(q,se,ge):(0,c.x)(q,se)).subscribe(he)})}},5558:(ct,be,I)=>{"use strict";I.d(be,{n:()=>Y});var c=I(8750),g=I(9974),$=I(4360);function Y(q,ge){return(0,g.N)((se,he)=>{let de=null,De=0,ce=!1;const ie=()=>ce&&!de&&he.complete();se.subscribe((0,$._)(he,we=>{de?.unsubscribe();let Re=0;const Be=De++;(0,c.Tg)(q(we,Be)).subscribe(de=(0,$._)(he,ut=>he.next(ge?ge(we,ut,Be,Re++):ut),()=>{de=null,ie()}))},()=>{ce=!0,ie()}))})}},6697:(ct,be,I)=>{"use strict";I.d(be,{s:()=>Y});var c=I(983),g=I(9974),$=I(4360);function Y(q){return q<=0?()=>c.w:(0,g.N)((ge,se)=>{let he=0;ge.subscribe((0,$._)(se,de=>{++he<=q&&(se.next(de),q<=he&&se.complete())}))})}},6977:(ct,be,I)=>{"use strict";I.d(be,{Q:()=>q});var c=I(9974),g=I(4360),$=I(8750),Y=I(5343);function q(ge){return(0,c.N)((se,he)=>{(0,$.Tg)(ge).subscribe((0,g._)(he,()=>he.complete(),Y.l)),!he.closed&&se.subscribe(he)})}},8141:(ct,be,I)=>{"use strict";I.d(be,{M:()=>q});var c=I(8071),g=I(9974),$=I(4360),Y=I(3669);function q(ge,se,he){const de=(0,c.T)(ge)||se||he?{next:ge,error:se,complete:he}:ge;return de?(0,g.N)((De,ce)=>{var ie;null===(ie=de.subscribe)||void 0===ie||ie.call(de);let we=!0;De.subscribe((0,$._)(ce,Re=>{var Be;null===(Be=de.next)||void 0===Be||Be.call(de,Re),ce.next(Re)},()=>{var Re;we=!1,null===(Re=de.complete)||void 0===Re||Re.call(de),ce.complete()},Re=>{var Be;we=!1,null===(Be=de.error)||void 0===Be||Be.call(de,Re),ce.error(Re)},()=>{var Re,Be;we&&(null===(Re=de.unsubscribe)||void 0===Re||Re.call(de)),null===(Be=de.finalize)||void 0===Be||Be.call(de)}))}):Y.D}},8839:(ct,be,I)=>{"use strict";I.d(be,{b:()=>De,E:()=>de});var c=I(8359);class g extends c.yU{constructor(ie,we){super()}schedule(ie,we=0){return this}}const $={setInterval(ce,ie,...we){const{delegate:Re}=$;return Re?.setInterval?Re.setInterval(ce,ie,...we):setInterval(ce,ie,...we)},clearInterval(ce){const{delegate:ie}=$;return(ie?.clearInterval||clearInterval)(ce)},delegate:void 0};var Y=I(7908),ge=I(6129);
1class se{constructor(ie,we=se.now){this.schedulerActionCtor=ie,this.now=we}schedule(ie,we=0,Re){return new this.schedulerActionCtor(this,ie).schedule(Re,we)}}se.now=ge.U.now;const de=new class he extends se{constructor(ie,we=se.now){super(ie,we),this.actions=[],this._active=!1}flush(ie){const{actions:we}=this;if(this._active)return void we.push(ie);let Re;this._active=!0;do{if(Re=ie.execute(ie.state,ie.delay))break}while(ie=we.shift());if(this._active=!1,Re){for(;ie=we.shift();)ie.unsubscribe();throw Re}}}(class q extends g{constructor(ie,we){super(ie,we),this.scheduler=ie,this.work=we,this.pending=!1}schedule(ie,we=0){var Re;if(this.closed)return this;this.state=ie;const Be=this.id,ut=this.scheduler;return null!=Be&&(this.id=this.recycleAsyncId(ut,Be,we)),this.pending=!0,this.delay=we,this.id=null!==(Re=this.id)&&void 0!==Re?Re:this.requestAsyncId(ut,this.id,we),this}requestAsyncId(ie,we,Re=0){return $.setInterval(ie.flush.bind(ie,this),Re)}recycleAsyncId(ie,we,Re=0){if(null!=Re&&this.delay===Re&&!1===this.pending)return we;null!=we&&$.clearInterval(we)}execute(ie,we){if(this.closed)return new Error("executing a cancelled action");this.pending=!1;const Re=this._execute(ie,we);if(Re)return Re;!1===this.pending&&null!=this.id&&(this.id=this.recycleAsyncId(this.scheduler,this.id,null))}_execute(ie,we){let Be,Re=!1;try{this.work(ie)}catch(ut){Re=!0,Be=ut||new Error("Scheduled action threw falsy error")}if(Re)return this.unsubscribe(),Be}unsubscribe(){if(!this.closed){const{id:ie,scheduler:we}=this,{actions:Re}=we;this.work=this.state=this.scheduler=null,this.pending=!1,(0,Y.o)(Re,this),null!=ie&&(this.id=this.recycleAsyncId(we,ie,null)),this.delay=null,super.unsubscribe()}}}),De=de},6129:(ct,be,I)=>{"use strict";I.d(be,{U:()=>c});const c={now:()=>(c.delegate||Date).now(),delegate:void 0}},9270:(ct,be,I)=>{"use strict";I.d(be,{f:()=>c});const c={setTimeout(g,$,...Y){const{delegate:q}=c;return q?.setTimeout?q.setTimeout(g,$,...Y):setTimeout(g,$,...Y)},clearTimeout(g){const{delegate:$}=c;return($?.clearTimeout||clearTimeout)(g)},delegate:void 0}},4761:(ct,be,I)=>{"use strict";I.d(be,{l:()=>g});const g=function c(){return"function"==typeof Symbol&&Symbol.iterator?Symbol.iterator:"@@iterator"}()},3494:(ct,be,I)=>{"use strict";I.d(be,{s:()=>c});const c="function"==typeof Symbol&&Symbol.observable||"@@observable"},9350:(ct,be,I)=>{"use strict";I.d(be,{G:()=>g});const g=(0,I(1853).L)($=>function(){$(this),this.name="EmptyError",this.message="no elements in sequence"})},9326:(ct,be,I)=>{"use strict";I.d(be,{R0:()=>ge,lI:()=>q,ms:()=>Y});var c=I(8071),g=I(9470);function $(se){return se[se.length-1]}function Y(se){return(0,c.T)($(se))?se.pop():void 0}function q(se){return(0,g.m)($(se))?se.pop():void 0}function ge(se,he){return"number"==typeof $(se)?se.pop():he}},3073:(ct,be,I)=>{"use strict";I.d(be,{D:()=>q});const{isArray:c}=Array,{getPrototypeOf:g,prototype:$,keys:Y}=Object;function q(se){if(1===se.length){const he=se[0];if(c(he))return{args:he,keys:null};if(function ge(se){return se&&"object"==typeof se&&g(se)===$}(he)){const de=Y(he);return{args:de.map(De=>he[De]),keys:de}}}return{args:se,keys:null}}},7908:(ct,be,I)=>{"use strict";function c(g,$){if(g){const Y=g.indexOf($);0<=Y&&g.splice(Y,1)}}I.d(be,{o:()=>c})},1853:(ct,be,I)=>{"use strict";function c(g){const Y=g(q=>{Error.call(q),q.stack=(new Error).stack});return Y.prototype=Object.create(Error.prototype),Y.prototype.constructor=Y,Y}I.d(be,{L:()=>c})},8496:(ct,be,I)=>{"use strict";function c(g,$){return g.reduce((Y,q,ge)=>(Y[q]=$[ge],Y),{})}I.d(be,{e:()=>c})},9786:(ct,be,I)=>{"use strict";I.d(be,{Y:()=>$,l:()=>Y});var c=I(1026);let g=null;function $(q){if(c.$.useDeprecatedSynchronousErrorHandling){const ge=!g;if(ge&&(g={errorThrown:!1,error:null}),q(),ge){const{errorThrown:se,error:he}=g;if(g=null,se)throw he}}else q()}function Y(q){c.$.useDeprecatedSynchronousErrorHandling&&g&&(g.errorThrown=!0,g.error=q)}},5225:(ct,be,I)=>{"use strict";function c(g,$,Y,q=0,ge=!1){const se=$.schedule(function(){Y(),ge?g.add(this.schedule(null,q)):this.unsubscribe()},q);if(g.add(se),!ge)return se}I.d(be,{N:()=>c})},3669:(ct,be,I)=>{"use strict";function c(g){return g}I.d(be,{D:()=>c})},7441:(ct,be,I)=>{"use strict";I.d(be,{X:()=>c});const c=g=>g&&"number"==typeof g.length&&"function"!=typeof g},7953:(ct,be,I)=>{"use strict";I.d(be,{T:()=>g});var c=I(8071);function g($){return Symbol.asyncIterator&&(0,c.T)($?.[Symbol.asyncIterator])}},8071:(ct,be,I)=>{"use strict";function c(g){return"function"==typeof g}I.d(be,{T:()=>c})},5055:(ct,be,I)=>{"use strict";I.d(be,{l:()=>$});var c=I(3494),g=I(8071);function $(Y){return(0,g.T)(Y[c.s])}},5397:(ct,be,I)=>{"use strict";I.d(be,{x:()=>$});var c=I(4761),g=I(8071);function $(Y){return(0,g.T)(Y?.[c.l])}},4402:(ct,be,I)=>{"use strict";I.d(be,{A:()=>$});var c=I(1985),g=I(8071);function $(Y){return!!Y&&(Y instanceof c.c||(0,g.T)(Y.lift)&&(0,g.T)(Y.subscribe))}},9858:(ct,be,I)=>{"use strict";I.d(be,{y:()=>g});var c=I(8071);function g($){return(0,c.T)($?.then)}},5196:(ct,be,I)=>{"use strict";I.d(be,{C:()=>$,U:()=>Y});var c=I(1635),g=I(8071);function $(q){return(0,c.AQ)(this,arguments,function*(){const se=q.getReader();try{for(;;){const{value:he,done:de}=yield(0,c.N3)(se.read());if(de)return yield(0,c.N3)(void 0);yield yield(0,c.N3)(he)}}finally{se.releaseLock()}})}function Y(q){return(0,g.T)(q?.getReader)}},9470:(ct,be,I)=>{"use strict";I.d(be,{m:()=>g});var c=I(8071);function g($){return $&&(0,c.T)($.schedule)}},9974:(ct,be,I)=>{"use strict";I.d(be,{N:()=>$,S:()=>g});var c=I(8071);function g(Y){return(0,c.T)(Y?.lift)}function $(Y){return q=>
1{if(g(q))return q.lift(function(ge){try{return Y(ge,this)}catch(se){this.error(se)}});throw new TypeError("Unable to lift unknown Observable type")}}},6450:(ct,be,I)=>{"use strict";I.d(be,{I:()=>Y});var c=I(6354);const{isArray:g}=Array;function Y(q){return(0,c.T)(ge=>function $(q,ge){return g(ge)?q(...ge):q(ge)}(q,ge))}},5343:(ct,be,I)=>{"use strict";function c(){}I.d(be,{l:()=>c})},1203:(ct,be,I)=>{"use strict";I.d(be,{F:()=>g,m:()=>$});var c=I(3669);function g(...Y){return $(Y)}function $(Y){return 0===Y.length?c.D:1===Y.length?Y[0]:function(ge){return Y.reduce((se,he)=>he(se),ge)}}},5334:(ct,be,I)=>{"use strict";I.d(be,{m:()=>$});var c=I(1026),g=I(9270);function $(Y){g.f.setTimeout(()=>{const{onUnhandledError:q}=c.$;if(!q)throw Y;q(Y)})}},591:(ct,be,I)=>{"use strict";function c(g){return new TypeError(`You provided ${null!==g&&"object"==typeof g?"an invalid object":`'${g}'`} where a stream was expected. You can provide an Observable, Promise, ReadableStream, Array, AsyncIterable, or Iterable.`)}I.d(be,{L:()=>c})},7995:(ct,be,I)=>{var c={"./ar.json":[577,577],"./en.json":[7473,473],"./he.json":[6753,753]};function g($){if(!I.o(c,$))return Promise.resolve().then(()=>{var ge=new Error("Cannot find module '"+$+"'");throw ge.code="MODULE_NOT_FOUND",ge});var Y=c[$],q=Y[0];return I.e(Y[1]).then(()=>I.t(q,19))}g.keys=()=>Object.keys(c),g.id=7995,ct.exports=g},9969:(ct,be,I)=>{"use strict";I.d(be,{FX:()=>nt,If:()=>c,K2:()=>ge,P:()=>Re,hZ:()=>$,i0:()=>Y,i7:()=>de,iF:()=>se,kY:()=>De,kp:()=>g,sf:()=>tt,ui:()=>st,yc:()=>Be});var c=function(Ve){return Ve[Ve.State=0]="State",Ve[Ve.Transition=1]="Transition",Ve[Ve.Sequence=2]="Sequence",Ve[Ve.Group=3]="Group",Ve[Ve.Animate=4]="Animate",Ve[Ve.Keyframes=5]="Keyframes",Ve[Ve.Style=6]="Style",Ve[Ve.Trigger=7]="Trigger",Ve[Ve.Reference=8]="Reference",Ve[Ve.AnimateChild=9]="AnimateChild",Ve[Ve.AnimateRef=10]="AnimateRef",Ve[Ve.Query=11]="Query",Ve[Ve.Stagger=12]="Stagger",Ve}(c||{});const g="*";function $(Ve,te){return{type:c.Trigger,name:Ve,definitions:te,options:{}}}function Y(Ve,te=null){return{type:c.Animate,styles:te,timings:Ve}}function ge(Ve,te=null){return{type:c.Sequence,steps:Ve,options:te}}function se(Ve){return{type:c.Style,styles:Ve,offset:null}}function de(Ve){return{type:c.Keyframes,steps:Ve}}function De(Ve,te,_e=null){return{type:c.Transition,expr:Ve,animation:te,options:_e}}function Re(Ve,te,_e=null){return{type:c.Query,selector:Ve,animation:te,options:_e}}function Be(Ve,te){return{type:c.Stagger,timings:Ve,animation:te}}class tt{constructor(te=0,_e=0){this._onDoneFns=[],this._onStartFns=[],this._onDestroyFns=[],this._originalOnDoneFns=[],this._originalOnStartFns=[],this._started=!1,this._destroyed=!1,this._finished=!1,this._position=0,this.parentPlayer=null,this.totalTime=te+_e}_onFinish(){this._finished||(this._finished=!0,this._onDoneFns.forEach(te=>te()),this._onDoneFns=[])}onStart(te){this._originalOnStartFns.push(te),this._onStartFns.push(te)}onDone(te){this._originalOnDoneFns.push(te),this._onDoneFns.push(te)}onDestroy(te){this._onDestroyFns.push(te)}hasStarted(){return this._started}init(){}play(){this.hasStarted()||(this._onStart(),this.triggerMicrotask()),this._started=!0}triggerMicrotask(){queueMicrotask(()=>this._onFinish())}_onStart(){this._onStartFns.forEach(te=>te()),this._onStartFns=[]}pause(){}restart(){}finish(){this._onFinish()}destroy(){this._destroyed||(this._destroyed=!0,this.hasStarted()||this._onStart(),this.finish(),this._onDestroyFns.forEach(te=>te()),this._onDestroyFns=[])}reset(){this._started=!1,this._finished=!1,this._onStartFns=this._originalOnStartFns,this._onDoneFns=this._originalOnDoneFns}setPosition(te){this._position=this.totalTime?te*this.totalTime:1}getPosition(){return this.totalTime?this._position/this.totalTime:1}triggerCallback(te){const _e="start"==te?this._onStartFns:this._onDoneFns;_e.forEach(Tt=>Tt()),_e.length=0}}class st{constructor(te){this._onDoneFns=[],this._onStartFns=[],this._finished=!1,this._started=!1,this._destroyed=!1,this._onDestroyFns=[],this.parentPlayer=null,this.totalTime=0,this.players=te;let _e=0,Tt=0,vt=0;const Yt=this.players.length;0==Yt?queueMicrotask(()=>
1this._onFinish()):this.players.forEach($e=>{$e.onDone(()=>{++_e==Yt&&this._onFinish()}),$e.onDestroy(()=>{++Tt==Yt&&this._onDestroy()}),$e.onStart(()=>{++vt==Yt&&this._onStart()})}),this.totalTime=this.players.reduce(($e,At)=>Math.max($e,At.totalTime),0)}_onFinish(){this._finished||(this._finished=!0,this._onDoneFns.forEach(te=>te()),this._onDoneFns=[])}init(){this.players.forEach(te=>te.init())}onStart(te){this._onStartFns.push(te)}_onStart(){this.hasStarted()||(this._started=!0,this._onStartFns.forEach(te=>te()),this._onStartFns=[])}onDone(te){this._onDoneFns.push(te)}onDestroy(te){this._onDestroyFns.push(te)}hasStarted(){return this._started}play(){this.parentPlayer||this.init(),this._onStart(),this.players.forEach(te=>te.play())}pause(){this.players.forEach(te=>te.pause())}restart(){this.players.forEach(te=>te.restart())}finish(){this._onFinish(),this.players.forEach(te=>te.finish())}destroy(){this._onDestroy()}_onDestroy(){this._destroyed||(this._destroyed=!0,this._onFinish(),this.players.forEach(te=>te.destroy()),this._onDestroyFns.forEach(te=>te()),this._onDestroyFns=[])}reset(){this.players.forEach(te=>te.reset()),this._destroyed=!1,this._finished=!1,this._started=!1}setPosition(te){const _e=te*this.totalTime;this.players.forEach(Tt=>{const vt=Tt.totalTime?Math.min(1,_e/Tt.totalTime):1;Tt.setPosition(vt)})}getPosition(){const te=this.players.reduce((_e,Tt)=>null===_e||Tt.totalTime>_e.totalTime?Tt:_e,null);return null!=te?te.getPosition():0}beforeDestroy(){this.players.forEach(te=>{te.beforeDestroy&&te.beforeDestroy()})}triggerCallback(te){const _e="start"==te?this._onStartFns:this._onDoneFns;_e.forEach(Tt=>Tt()),_e.length=0}}const nt="!"},177:(ct,be,I)=>{"use strict";I.d(be,{AJ:()=>Ao,GH:()=>is,Jj:()=>gn,MD:()=>wo,N0:()=>Io,P9:()=>Oi,Pc:()=>os,QT:()=>$,QX:()=>Gr,Sm:()=>ut,Sq:()=>Vt,T3:()=>Bt,UE:()=>oi,VF:()=>q,Vy:()=>cs,XO:()=>$e,Xr:()=>eo,YU:()=>Ge,Yq:()=>Dr,ZD:()=>Y,_b:()=>ee,aZ:()=>gt,bT:()=>Ln,cH:()=>Ve,e1:()=>qt,fw:()=>Le,hb:()=>Re,hj:()=>de,oV:()=>nt,qQ:()=>se,tL:()=>At,ux:()=>bn,vh:()=>ho});var c=I(4438);let g=null;function $(){return g}function Y(T){g??=T}class q{}const se=new c.nKC("");let he=(()=>{class T{historyGo(R){throw new Error("")}static#e=this.\u0275fac=function(x){return new(x||T)};static#t=this.\u0275prov=c.jDH({token:T,factory:()=>(0,c.WQX)(De),providedIn:"platform"})}return T})();const de=new c.nKC("");let De=(()=>{class T extends he{constructor(){super(),this._doc=(0,c.WQX)(se),this._location=window.location,this._history=window.history}getBaseHrefFromDOM(){return $().getBaseHref(this._doc)}onPopState(R){const x=$().getGlobalEventTarget(this._doc,"window");return x.addEventListener("popstate",R,!1),()=>x.removeEventListener("popstate",R)}onHashChange(R){const x=$().getGlobalEventTarget(this._doc,"window");return x.addEventListener("hashchange",R,!1),()=>x.removeEventListener("hashchange",R)}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(R){this._location.pathname=R}pushState(R,x,re){this._history.pushState(R,x,re)}replaceState(R,x,re){this._history.replaceState(R,x,re)}forward(){this._history.forward()}back(){this._history.back()}historyGo(R=0){this._history.go(R)}getState(){return this._history.state}static#e=this.\u0275fac=function(x){return new(x||T)};static#t=this.\u0275prov=c.jDH({token:T,factory:()=>new T,providedIn:"platform"})}return T})();function ce(T,V){if(0==T.length)return V;if(0==V.length)return T;let R=0;return T.endsWith("/")&&R++,V.startsWith("/")&&R++,2==R?T+V.substring(1):1==R?T+V:T+"/"+V}function ie(T){const V=T.match(/#|\?|$/),R=V&&V.index||T.length;return T.slice(0,R-("/"===T[R-1]?1:0))+T.slice(R)}function we(T){return T&&"?"!==T[0]?"?"+T:T}let Re=(()=>{class T{historyGo(R){throw new Error("")}static#e=this.\u0275fac=function(x){return new(x||T)};static#t=this.\u0275prov=c.jDH({token:T,factory:()=>(0,c.WQX)(ut),providedIn:"root"})}return T})();const Be=new c.nKC("");let ut=(()=>{class T extends Re{constructor(R,x){super(),this._platformLocation=R,this._removeListenerFns=[],this._baseHref=x??this._platformLocation.getBaseHrefFromDOM()??(0,c.WQX)(se).location?.origin??""}ngOnDestroy(){for(;this._removeListenerFns.length;)this._removeListenerFns.pop()()}onPopState(R){this._removeListenerFns.push(this._platformLocation.onPopState(R),this._platformLocation.on
1HashChange(R))}getBaseHref(){return this._baseHref}prepareExternalUrl(R){return ce(this._baseHref,R)}path(R=!1){const x=this._platformLocation.pathname+we(this._platformLocation.search),re=this._platformLocation.hash;return re&&R?`${x}${re}`:x}pushState(R,x,re,je){const Je=this.prepareExternalUrl(re+we(je));this._platformLocation.pushState(R,x,Je)}replaceState(R,x,re,je){const Je=this.prepareExternalUrl(re+we(je));this._platformLocation.replaceState(R,x,Je)}forward(){this._platformLocation.forward()}back(){this._platformLocation.back()}getState(){return this._platformLocation.getState()}historyGo(R=0){this._platformLocation.historyGo?.(R)}static#e=this.\u0275fac=function(x){return new(x||T)(c.KVO(he),c.KVO(Be,8))};static#t=this.\u0275prov=c.jDH({token:T,factory:T.\u0275fac,providedIn:"root"})}return T})(),Le=(()=>{class T extends Re{constructor(R,x){super(),this._platformLocation=R,this._baseHref="",this._removeListenerFns=[],null!=x&&(this._baseHref=x)}ngOnDestroy(){for(;this._removeListenerFns.length;)this._removeListenerFns.pop()()}onPopState(R){this._removeListenerFns.push(this._platformLocation.onPopState(R),this._platformLocation.onHashChange(R))}getBaseHref(){return this._baseHref}path(R=!1){const x=this._platformLocation.hash??"#";return x.length>0?x.substring(1):x}prepareExternalUrl(R){const x=ce(this._baseHref,R);return x.length>0?"#"+x:x}pushState(R,x,re,je){let Je=this.prepareExternalUrl(re+we(je));0==Je.length&&(Je=this._platformLocation.pathname),this._platformLocation.pushState(R,x,Je)}replaceState(R,x,re,je){let Je=this.prepareExternalUrl(re+we(je));0==Je.length&&(Je=this._platformLocation.pathname),this._platformLocation.replaceState(R,x,Je)}forward(){this._platformLocation.forward()}back(){this._platformLocation.back()}getState(){return this._platformLocation.getState()}historyGo(R=0){this._platformLocation.historyGo?.(R)}static#e=this.\u0275fac=function(x){return new(x||T)(c.KVO(he),c.KVO(Be,8))};static#t=this.\u0275prov=c.jDH({token:T,factory:T.\u0275fac})}return T})(),gt=(()=>{class T{constructor(R){this._subject=new c.bkB,this._urlChangeListeners=[],this._urlChangeSubscription=null,this._locationStrategy=R;const x=this._locationStrategy.getBaseHref();this._basePath=function ne(T){if(new RegExp("^(https?:)?//").test(T)){const[,R]=T.split(/\/\/[^\/]+/);return R}return T}(ie(et(x))),this._locationStrategy.onPopState(re=>{this._subject.emit({url:this.path(!0),pop:!0,state:re.state,type:re.type})})}ngOnDestroy(){this._urlChangeSubscription?.unsubscribe(),this._urlChangeListeners=[]}path(R=!1){return this.normalize(this._locationStrategy.path(R))}getState(){return this._locationStrategy.getState()}isCurrentPathEqualTo(R,x=""){return this.path()==this.normalize(R+we(x))}normalize(R){return T.stripTrailingSlash(function Ut(T,V){if(!T||!V.startsWith(T))return V;const R=V.substring(T.length);return""===R||["/",";","?","#"].includes(R[0])?R:V}(this._basePath,et(R)))}prepareExternalUrl(R){return R&&"/"!==R[0]&&(R="/"+R),this._locationStrategy.prepareExternalUrl(R)}go(R,x="",re=null){this._locationStrategy.pushState(re,"",R,x),this._notifyUrlChangeListeners(this.prepareExternalUrl(R+we(x)),re)}replaceState(R,x="",re=null){this._locationStrategy.replaceState(re,"",R,x),this._notifyUrlChangeListeners(this.prepareExternalUrl(R+we(x)),re)}forward(){this._locationStrategy.forward()}back(){this._locationStrategy.back()}historyGo(R=0){this._locationStrategy.historyGo?.(R)}onUrlChange(R){return this._urlChangeListeners.push(R),this._urlChangeSubscription??=this.subscribe(x=>{this._notifyUrlChangeListeners(x.url,x.state)}),()=>{const x=this._urlChangeListeners.indexOf(R);this._urlChangeListeners.splice(x,1),0===this._urlChangeListeners.length&&(this._urlChangeSubscription?.unsubscribe(),this._urlChangeSubscription=null)}}_notifyUrlChangeListeners(R="",x){this._urlChangeListeners.forEach(re=>re(R,x))}subscribe(R,x,re){return this._subject.subscribe({next:R,error:x,complete:re})}static#e=this.normalizeQueryParams=we;static#t=this.joinWithSlash=ce;static#n=this.stripTrailingSlash=ie;static#r=this.\u0275fac=function(x){return new(x||T)(c.KVO(Re))};static#i=this.\u0275prov=c.jDH({token:T,factory:()=>function wt(){return new gt((0,c.KVO)(Re))}(),providedIn:"root"})}return T})();function et(T){return T.replace(/\/index.html$/,"")}var tt=function(T){return T[T.Decimal=0]="Decimal",T[T.Percent=1]="Percent",T[T.Currency=2]="Currency",T[T.Scientific=3]="Scientific",T}(tt||{}),nt=function(T){return T[T.Format=0]="Format",T[T.Standalone=1]="Standalone",T}(nt||{}),Ve=function(T){return T[T.Narrow=0]="Narrow",T[T.Abbreviated=1]="Abbreviated",T[T.Wide=2]="Wide",T[T.Short=3]="Short",T}(Ve||{}),te=function(T){return T[T.Short=0]="Short",T[T.Medium=1]="Medium",T[T.Long=2]="Long",T[T.Full=3]="Full",T}(te||{});const _e={Decimal:0,Group:1,List:2,PercentSign:3,PlusSign:4,MinusSign:5,Exponential:6,SuperscriptingExponent:7,PerMille:8,Infinity:9,NaN:10,TimeSeparator:11,CurrencyDecimal:12,CurrencyGroup:13};function $e(T,V,R){const x=(0,c.H5H)(T),je=mt([x[c.KH2.DaysFormat],x[c.KH2.DaysStandalone]],V);return mt(je,R)}function At(T,V,R){const x=(0,c.H5H)(T),je=mt([x[c.KH2.MonthsFormat],x[c.KH2.MonthsStandalone]],V);return mt(je,R)}
1function Z(T,V){return mt((0,c.H5H)(T)[c.KH2.DateFormat],V)}function Ce(T,V){return mt((0,c.H5H)(T)[c.KH2.TimeFormat],V)}function Ue(T,V){return mt((0,c.H5H)(T)[c.KH2.DateTimeFormat],V)}function ke(T,V){const R=(0,c.H5H)(T),x=R[c.KH2.NumberSymbols][V];if(typeof x>"u"){if(V===_e.CurrencyDecimal)return R[c.KH2.NumberSymbols][_e.Decimal];if(V===_e.CurrencyGroup)return R[c.KH2.NumberSymbols][_e.Group]}return x}function ot(T){if(!T[c.KH2.ExtraData])throw new Error(`Missing extra locale data for the locale "${T[c.KH2.LocaleId]}". Use "registerLocaleData" to load new data. See the "I18n guide" on angular.io to know more.`)}function mt(T,V){for(let R=V;R>-1;R--)if(typeof T[R]<"u")return T[R];throw new Error("Locale data API: locale data undefined")}function En(T){const[V,R]=T.split(":");return{hours:+V,minutes:+R}}const hr=/^(\d{4,})-?(\d\d)-?(\d\d)(?:T(\d\d)(?::?(\d\d)(?::?(\d\d)(?:\.(\d+))?)?)?(Z|([+-])(\d\d):?(\d\d))?)?$/,xn={},Hr=/((?:[^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 yn=function(T){return T[T.Short=0]="Short",T[T.ShortGMT=1]="ShortGMT",T[T.Long=2]="Long",T[T.Extended=3]="Extended",T}(yn||{}),Qt=function(T){return T[T.FullYear=0]="FullYear",T[T.Month=1]="Month",T[T.Date=2]="Date",T[T.Hours=3]="Hours",T[T.Minutes=4]="Minutes",T[T.Seconds=5]="Seconds",T[T.FractionalSeconds=6]="FractionalSeconds",T[T.Day=7]="Day",T}(Qt||{}),Pt=function(T){return T[T.DayPeriods=0]="DayPeriods",T[T.Days=1]="Days",T[T.Months=2]="Months",T[T.Eras=3]="Eras",T}(Pt||{});function Dr(T,V,R,x){let re=function $t(T){if(Fn(T))return T;if("number"==typeof T&&!isNaN(T))return new Date(T);if("string"==typeof T){if(T=T.trim(),/^(\d{4}(-\d{1,2}(-\d{1,2})?)?)$/.test(T)){const[re,je=1,Je=1]=T.split("-").map(Dt=>+Dt);return vn(re,je-1,Je)}const R=parseFloat(T);if(!isNaN(T-R))return new Date(R);let x;if(x=T.match(hr))return function Cn(T){const V=new Date(0);let R=0,x=0;const re=T[8]?V.setUTCFullYear:V.setFullYear,je=T[8]?V.setUTCHours:V.setHours;T[9]&&(R=Number(T[9]+T[10]),x=Number(T[9]+T[11])),re.call(V,Number(T[1]),Number(T[2])-1,Number(T[3]));const Je=Number(T[4]||0)-R,Dt=Number(T[5]||0)-x,cr=Number(T[6]||0),qn=Math.floor(1e3*parseFloat("0."+(T[7]||0)));return je.call(V,Je,Dt,cr,qn),V}(x)}const V=new Date(T);if(!Fn(V))throw new Error(`Unable to convert "${T}" into a date`);return V}(T);V=An(R,V)||V;let Dt,Je=[];for(;V;){if(Dt=Hr.exec(V),!Dt){Je.push(V);break}{Je=Je.concat(Dt.slice(1));const jn=Je.pop();if(!jn)break;V=jn}}let cr=re.getTimezoneOffset();x&&(cr=me(x,cr),re=function It(T,V,R){const x=R?-1:1,re=T.getTimezoneOffset();return function qe(T,V){return(T=new Date(T.getTime())).setMinutes(T.getMinutes()+V),T}(T,x*(me(V,re)-re))}(re,x,!0));let qn="";return Je.forEach(jn=>{const en=function J(T){if(Oe[T])return Oe[T];let V;switch(T){case"G":case"GG":case"GGG":V=on(Pt.Eras,Ve.Abbreviated);break;case"GGGG":V=on(Pt.Eras,Ve.Wide);break;case"GGGGG":V=on(Pt.Eras,Ve.Narrow);break;case"y":V=Zt(Qt.FullYear,1,0,!1,!0);break;case"yy":V=Zt(Qt.FullYear,2,0,!0,!0);break;case"yyy":V=Zt(Qt.FullYear,3,0,!1,!0);break;case"yyyy":V=Zt(Qt.FullYear,4,0,!1,!0);break;case"Y":V=Te(1);break;case"YY":V=Te(2,!0);break;case"YYY":V=Te(3);break;case"YYYY":V=Te(4);break;case"M":case"L":V=Zt(Qt.Month,1,1);break;case"MM":case"LL":V=Zt(Qt.Month,2,1);break;case"MMM":V=on(Pt.Months,Ve.Abbreviated);break;case"MMMM":V=on(Pt.Months,Ve.Wide);break;case"MMMMM":V=on(Pt.Months,Ve.Narrow);break;case"LLL":V=on(Pt.Months,Ve.Abbreviated,nt.Standalone);break;case"LLLL":V=on(Pt.Months,Ve.Wide,nt.Standalone);break;case"LLLLL":V=on(Pt.Months,Ve.Narrow,nt.Standalone);break;case"w":V=$n(1);break;case"ww":V=$n(2);break;case"W":V=$n(1,!0);break;case"d":V=Zt(Qt.Date,1);break;case"dd":V=Zt(Qt.Date,2);break;case"c":case"cc":V=Zt(Qt.Day,1);break;case"ccc":V=on(Pt.Days,Ve.Abbreviated,nt.Standalone);break;case"cccc":V=on(Pt.Days,Ve.Wide,nt.Standalone);break;case"ccccc":V=on(Pt.Days,Ve.Narrow,nt.Standalone);break;case"cccccc":V=on(Pt.Days,Ve.Short,nt.Standalone);break;case"E":case"EE":case"EEE":V=on(Pt.Days,Ve.Abbreviated);break;case"EEEE":V=on(Pt.Days,Ve.Wide);break;case"EEEEE":V=on(Pt.Days,Ve.Narrow);break;case"EEEEEE":V=on(Pt.Days,Ve.Short);break;case"a":case"aa":case"aaa":V=on(Pt.DayPeriods,Ve.Abbreviated);break;case"aaaa":V=on(Pt.DayPeriods,Ve.Wide);break;case"aaaaa":V=on(Pt.DayPeriods,Ve.Narrow);break;
1case"b":case"bb":case"bbb":V=on(Pt.DayPeriods,Ve.Abbreviated,nt.Standalone,!0);break;case"bbbb":V=on(Pt.DayPeriods,Ve.Wide,nt.Standalone,!0);break;case"bbbbb":V=on(Pt.DayPeriods,Ve.Narrow,nt.Standalone,!0);break;case"B":case"BB":case"BBB":V=on(Pt.DayPeriods,Ve.Abbreviated,nt.Format,!0);break;case"BBBB":V=on(Pt.DayPeriods,Ve.Wide,nt.Format,!0);break;case"BBBBB":V=on(Pt.DayPeriods,Ve.Narrow,nt.Format,!0);break;case"h":V=Zt(Qt.Hours,1,-12);break;case"hh":V=Zt(Qt.Hours,2,-12);break;case"H":V=Zt(Qt.Hours,1);break;case"HH":V=Zt(Qt.Hours,2);break;case"m":V=Zt(Qt.Minutes,1);break;case"mm":V=Zt(Qt.Minutes,2);break;case"s":V=Zt(Qt.Seconds,1);break;case"ss":V=Zt(Qt.Seconds,2);break;case"S":V=Zt(Qt.FractionalSeconds,1);break;case"SS":V=Zt(Qt.FractionalSeconds,2);break;case"SSS":V=Zt(Qt.FractionalSeconds,3);break;case"Z":case"ZZ":case"ZZZ":V=Kt(yn.Short);break;case"ZZZZZ":V=Kt(yn.Extended);break;case"O":case"OO":case"OOO":case"z":case"zz":case"zzz":V=Kt(yn.ShortGMT);break;case"OOOO":case"ZZZZ":case"zzzz":V=Kt(yn.Long);break;default:return null}return Oe[T]=V,V}(jn);qn+=en?en(re,R,cr):"''"===jn?"'":jn.replace(/(^'|'$)/g,"").replace(/''/g,"'")}),qn}function vn(T,V,R){const x=new Date(0);return x.setFullYear(T,V,R),x.setHours(0,0,0),x}function An(T,V){const R=function vt(T){return(0,c.H5H)(T)[c.KH2.LocaleId]}(T);if(xn[R]??={},xn[R][V])return xn[R][V];let x="";switch(V){case"shortDate":x=Z(T,te.Short);break;case"mediumDate":x=Z(T,te.Medium);break;case"longDate":x=Z(T,te.Long);break;case"fullDate":x=Z(T,te.Full);break;case"shortTime":x=Ce(T,te.Short);break;case"mediumTime":x=Ce(T,te.Medium);break;case"longTime":x=Ce(T,te.Long);break;case"fullTime":x=Ce(T,te.Full);break;case"short":const re=An(T,"shortTime"),je=An(T,"shortDate");x=ni(Ue(T,te.Short),[re,je]);break;case"medium":const Je=An(T,"mediumTime"),Dt=An(T,"mediumDate");x=ni(Ue(T,te.Medium),[Je,Dt]);break;case"long":const cr=An(T,"longTime"),qn=An(T,"longDate");x=ni(Ue(T,te.Long),[cr,qn]);break;case"full":const jn=An(T,"fullTime"),en=An(T,"fullDate");x=ni(Ue(T,te.Full),[jn,en])}return x&&(xn[R][V]=x),x}function ni(T,V){return V&&(T=T.replace(/\{([^}]+)}/g,function(R,x){return null!=V&&x in V?V[x]:R})),T}function Yn(T,V,R="-",x,re){let je="";(T<0||re&&T<=0)&&(re?T=1-T:(T=-T,je=R));let Je=String(T);for(;Je.length<V;)Je="0"+Je;return x&&(Je=Je.slice(Je.length-V)),je+Je}function Zt(T,V,R=0,x=!1,re=!1){return function(je,Je){let Dt=function di(T,V){switch(T){case Qt.FullYear:return V.getFullYear();case Qt.Month:return V.getMonth();case Qt.Date:return V.getDate();case Qt.Hours:return V.getHours();case Qt.Minutes:return V.getMinutes();case Qt.Seconds:return V.getSeconds();case Qt.FractionalSeconds:return V.getMilliseconds();case Qt.Day:return V.getDay();default:throw new Error(`Unknown DateType value "${T}".`)}}(T,je);if((R>0||Dt>-R)&&(Dt+=R),T===Qt.Hours)0===Dt&&-12===R&&(Dt=12);else if(T===Qt.FractionalSeconds)return function Ii(T,V){return Yn(T,3).substring(0,V)}(Dt,V);const cr=ke(Je,_e.MinusSign);return Yn(Dt,V,cr,x,re)}}function on(T,V,R=nt.Format,x=!1){return function(re,je){return function cn(T,V,R,x,re,je){switch(R){case Pt.Months:return At(V,re,x)[T.getMonth()];case Pt.Days:return $e(V,re,x)[T.getDay()];case Pt.DayPeriods:const Je=T.getHours(),Dt=T.getMinutes();if(je){const qn=function Mt(T){const V=(0,c.H5H)(T);return ot(V),(V[c.KH2.ExtraData][2]||[]).map(x=>"string"==typeof x?En(x):[En(x[0]),En(x[1])])}(V),jn=function dn(T,V,R){const x=(0,c.H5H)(T);ot(x);const je=mt([x[c.KH2.ExtraData][0],x[c.KH2.ExtraData][1]],V)||[];return mt(je,R)||[]}(V,re,x),en=qn.findIndex(er=>{if(Array.isArray(er)){const[Bn,Cr]=er,Un=Je>=Bn.hours&&Dt>=Bn.minutes,ht=Je<Cr.hours||Je===Cr.hours&&Dt<Cr.minutes;if(Bn.hours<Cr.hours){if(Un&&ht)return!0}else if(Un||ht)return!0}else if(er.hours===Je&&er.minutes===Dt)return!0;return!1});if(-1!==en)return jn[en]}return function Yt(T,V,R){const x=(0,c.H5H)(T),je=mt([x[c.KH2.DayPeriodsFormat],x[c.KH2.DayPeriodsStandalone]],V);return mt(je,R)}(V,re,x)[Je<12?0:1];case Pt.Eras:return function le(T,V){return mt((0,c.H5H)(T)[c.KH2.Eras],V)}(V,x)[T.getFullYear()<=0?0:1];default:throw new Error(`unexpected translation type ${R}`)}}(re,je,T,V,R,x)}}function Kt(T){return function(V,R,x){const re=-1*x,je=ke(R,_e.MinusSign),Je=re>0?Math.floor(re/60):Math.ceil(re/60);switch(T){case yn.Short:return(re>=0?"+":"")+Yn(Je,2,je)+Yn(Math.abs(re%60),2,je);case yn.ShortGMT:return"GMT"+(re>=0?"+":"")+Yn(Je,1,je);case yn.Long:return"GMT"+(re>=0?"+":"")+Yn(Je,2,je)+":"+Yn(Math.abs(re%60),2,je);case yn.Extended:return 0===x?"Z":(re>=0?"+":"")+Yn(Je,2,je)+":"+Yn(Math.abs(re%60),2,je);default:throw new Error(`Unknown zone width "${T}"`)}}}const Wt=0,jr=4;function Yi(T){const V=T.getDay(),R=0===V?-3:jr-V;return vn(T.getFullYear(),T.getMonth(),T.getDate()+R)}function $n(T,V=!1){return function(R,x){let re;if(V){const je=new Date(R.getFullYear(),R.getMonth(),1).getDay()-1,Je=R.getDate();re=1+Math.floor((Je+je)/7)}else{const je=Yi(R),Je=function Jr(T){const V=vn(T,Wt,1).getDay();return vn(T,0,1+(V<=jr?jr:jr+7)-V)}(je.getFullYear()),Dt=je.getTime()-Je.getTime();re=1+Math.round(Dt/6048e5)}return Yn(re,T,ke(x,_e.MinusSign))}}function Te(T,V=!1){return function(R,x){return Yn(Yi(R).getFullYear(),T,ke(x,_e.MinusSign),V)}}const Oe={};function me(T,V){T=T.replace(/:/g,"");const R=Date.parse("Jan 01, 1970 00:00:00 "+T)/6e4;return isNaN(R)?V:R}function Fn(T){return T instanceof Date&&!isNaN(T.valueOf())}const fr=/^(\d+)?\.((\d+)(-(\d+))?)?$/;function Ji(T){const V=parseInt(T);if(isNaN(V))throw new Error("Invalid integer literal when parsing "+T);return V}function ee(T,V){V=encodeURIComponent(V);for(const R of T.split(";")){const x=R.indexOf("="),[re,je]=-1==x?[R,""]:[R.slice(0,x),R.slice(x+1)];if(re.trim()===V)return decodeURIComponent(je)}return null}const fe=/\s+/,Xe=[];let Ge=(()=>{class T{constructor(R,x){this._ngEl=R,this._renderer=x,this.initialClasses=Xe,this.stateMap=new Map}set klass(R){this.initialClasses=null!=R?R.trim().split(fe):Xe}set ngClass(R){this.rawClass="string"==typeof R?R.trim().split(fe):R}ngDoCheck(){for(const x of this.initialClasses)this._updateState(x,!0);const R=this.rawClass;if(Array.isArray(R)||R instanceof Set)for(const x of R)this._updateState(x,!0);else if(null!=R)for(const x of Object.keys(R))this._updateState(x,!!R[x]);this._applyStateDiff()}_updateState(R,x){const re=this.stateMap.get(R);void 0!==re?(re.enabled!==x&&(re.changed=!0,re.enabled=x),re.touched=!0):this.stateMap.set(R,{enabled:x,changed:!0,touched:!0})}_applyStateDiff(){for(const R of this.stateMap){const x=R[0],re=R[1];re.changed?(this._toggleClass(x,re.enabled),re.changed=!1):re.touched||(re.enabled&&this._toggleClass(x,!1),this.stateMap.delete(x)),re.touched=!1}}_toggleClass(R,x){(R=R.trim()).length>0&&R.split(fe).forEach(re=>{x?this._renderer.addClass(this._ngEl.nativeElement,re):this._renderer.removeClass(this._ngEl.nativeElement,re)})}static#e=this.\u0275fac=function(x){return new(x||T)(c.rXU(c.aKT),c.rXU(c.sFG))};static#t=this.\u0275dir=c.FsC({type:T,selectors:[["","ngClass",""]],inputs:{klass:[c.Mj6.None,"class","klass"],ngClass:"ngClass"},standalone:!0})}return T})();class sn{constructor(V,R,x,re){this.$implicit=V,this.ngForOf=R,this.index=x,this.count=re}get first(){return 0===this.index}get last(){return this.index===this.count-1}get even(){return this.index%2==0}get odd(){return!this.even}}let Vt=(()=>{class T{set ngForOf(R){this._ngForOf=R,this._ngForOfDirty=!0}set ngForTrackBy(R){this._trackByFn=R}get ngForTrackBy(){return this._trackByFn}constructor(R,x,re){this._viewContainer=R,this._template=x,this._differs=re,this._ngForOf=null,this._ngForOfDirty=!0,this._differ=null}set ngForTemplate(R){R&&(this._template=R)}ngDoCheck(){if(this._ngForOfDirty){this._ngForOfDirty=!1;const R=this._ngForOf;!this._differ&&R&&(this._differ=this._differs.find(R).create(this.ngForTrackBy))}if(this._differ){const R=this._differ.diff(this._ngForOf);R&&this._applyChanges(R)}}_applyChanges(R){const x=this._viewContainer;R.forEachOperation((re,je,Je)=>{if(null==re.previousIndex)x.createEmbeddedView(this._template,new sn(re.item,this._ngForOf,-1,-1),null===Je?void 0:Je);else if(null==Je)x.remove(null===je?void 0:je);else if(null!==je){const Dt=x.get(je);x.move(Dt,Je),Gn(Dt,re)}});for(let re=0,je=x.length;re<je;re++){const Dt=x.get(re).context;Dt.index=re,Dt.count=je,Dt.ngForOf=this._ngForOf}
1R.forEachIdentityChange(re=>{Gn(x.get(re.currentIndex),re)})}static ngTemplateContextGuard(R,x){return!0}static#e=this.\u0275fac=function(x){return new(x||T)(c.rXU(c.c1b),c.rXU(c.C4Q),c.rXU(c._q3))};static#t=this.\u0275dir=c.FsC({type:T,selectors:[["","ngFor","","ngForOf",""]],inputs:{ngForOf:"ngForOf",ngForTrackBy:"ngForTrackBy",ngForTemplate:"ngForTemplate"},standalone:!0})}return T})();function Gn(T,V){T.context.$implicit=V.item}let Ln=(()=>{class T{constructor(R,x){this._viewContainer=R,this._context=new Wn,this._thenTemplateRef=null,this._elseTemplateRef=null,this._thenViewRef=null,this._elseViewRef=null,this._thenTemplateRef=x}set ngIf(R){this._context.$implicit=this._context.ngIf=R,this._updateView()}set ngIfThen(R){Xr("ngIfThen",R),this._thenTemplateRef=R,this._thenViewRef=null,this._updateView()}set ngIfElse(R){Xr("ngIfElse",R),this._elseTemplateRef=R,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(R,x){return!0}static#e=this.\u0275fac=function(x){return new(x||T)(c.rXU(c.c1b),c.rXU(c.C4Q))};static#t=this.\u0275dir=c.FsC({type:T,selectors:[["","ngIf",""]],inputs:{ngIf:"ngIf",ngIfThen:"ngIfThen",ngIfElse:"ngIfElse"},standalone:!0})}return T})();class Wn{constructor(){this.$implicit=null,this.ngIf=null}}function Xr(T,V){if(V&&!V.createEmbeddedView)throw new Error(`${T} must be a TemplateRef, but received '${(0,c.Tbb)(V)}'.`)}class Tn{constructor(V,R){this._viewContainerRef=V,this._templateRef=R,this._created=!1}create(){this._created=!0,this._viewContainerRef.createEmbeddedView(this._templateRef)}destroy(){this._created=!1,this._viewContainerRef.clear()}enforceState(V){V&&!this._created?this.create():!V&&this._created&&this.destroy()}}let bn=(()=>{class T{constructor(){this._defaultViews=[],this._defaultUsed=!1,this._caseCount=0,this._lastCaseCheckIndex=0,this._lastCasesMatched=!1}set ngSwitch(R){this._ngSwitch=R,0===this._caseCount&&this._updateDefaultCases(!0)}_addCase(){return this._caseCount++}_addDefault(R){this._defaultViews.push(R)}_matchCase(R){const x=R===this._ngSwitch;return this._lastCasesMatched||=x,this._lastCaseCheckIndex++,this._lastCaseCheckIndex===this._caseCount&&(this._updateDefaultCases(!this._lastCasesMatched),this._lastCaseCheckIndex=0,this._lastCasesMatched=!1),x}_updateDefaultCases(R){if(this._defaultViews.length>0&&R!==this._defaultUsed){this._defaultUsed=R;for(const x of this._defaultViews)x.enforceState(R)}}static#e=this.\u0275fac=function(x){return new(x||T)};static#t=this.\u0275dir=c.FsC({type:T,selectors:[["","ngSwitch",""]],inputs:{ngSwitch:"ngSwitch"},standalone:!0})}return T})(),qt=(()=>{class T{constructor(R,x,re){this.ngSwitch=re,re._addCase(),this._view=new Tn(R,x)}ngDoCheck(){this._view.enforceState(this.ngSwitch._matchCase(this.ngSwitchCase))}static#e=this.\u0275fac=function(x){return new(x||T)(c.rXU(c.c1b),c.rXU(c.C4Q),c.rXU(bn,9))};static#t=this.\u0275dir=c.FsC({type:T,selectors:[["","ngSwitchCase",""]],inputs:{ngSwitchCase:"ngSwitchCase"},standalone:!0})}return T})(),Bt=(()=>{class T{constructor(R){this._viewContainerRef=R,this._viewRef=null,this.ngTemplateOutletContext=null,this.ngTemplateOutlet=null,this.ngTemplateOutletInjector=null}ngOnChanges(R){if(this._shouldRecreateView(R)){const x=this._viewContainerRef;if(this._viewRef&&x.remove(x.indexOf(this._viewRef)),!this.ngTemplateOutlet)return void(this._viewRef=null);const re=this._createContextForwardProxy();this._viewRef=x.createEmbeddedView(this.ngTemplateOutlet,re,{injector:this.ngTemplateOutletInjector??void 0})}}_shouldRecreateView(R){return!!R.ngTemplateOutlet||!!R.ngTemplateOutletInjector}_createContextForwardProxy(){return new Proxy({},{set:(R,x,re)=>!!this.ngTemplateOutletContext&&Reflect.set(this.ngTemplateOutletContext,x,re),get:(R,x,re)=>{if(this.ngTemplateOutletContext)return Reflect.get(this.ngTemplateOutletContext,x,re)}})}static#e=this.\u0275fac=function(x){return new(x||T)(c.rXU(c.c1b))};static#t=this.\u0275dir=c.FsC({type:T,selectors:[["","ngTemplateOutlet",""]],inputs:{ngTemplateOutletContext:"ngTemplateOutletContext",ngTemplateOutlet:"ngTemplateOutlet",ngTemplateOutletInjector:"ngTemplateOutletInjector"},standalone:!0,features:[c.OA$]})}return T})();function Qr(T,V){return new c.wOt(2100,!1)}class ws{createSubscription(V,R){return(0,c.O8t)(()=>V.subscribe({next:R,error:x=>{throw x}}))}dispose(V){(0,c.O8t)(()=>V.unsubscribe())}}class Da{createSubscription(V,R){return V.then(R,x=>{throw x})}dispose(V){}}const As=new Da,Lo=new ws;let gn=(()=>{class T{constructor(R){this._latestValue=null,this.markForCheckOnValueUpdate=!0,this._subscription=null,this._obj=null,this._strategy=null,this._ref=R}ngOnDestroy(){this._subscription&&this._dispose(),this._ref=null}transform(R){if(!this._obj){if(R)try{this.markForCheckOnValueUpdate=!1,this._subscribe(R)}finally{this.markForCheckOnValueUpdate=!0}return this._latestValue}return R!==this._obj?(this._dispose(),this.transform(R)):this._latestValue}_subscribe(R){this._obj=R,this._strategy=this._selectStrategy(R),this._subscription=this._strategy.createSubscription(R,x=>this._updateLatestValue(R,x))}_selectStrategy(R){if((0,c.jNT)(R))return As;if((0,c.zjR)(R))return Lo;throw Qr()}_dispose(){this._strategy.dispose(this._subscription),this._latestValue=null,this._subscription=null,this._obj=null}_updateLatestValue(R,x){R===this._obj&&(this._latestValue=x,this.markForCheckOnValueUpdate&&this._ref?.markForCheck())}static#e=this.\u0275fac=function(x){return new(x||T)(c.rXU(c.gRc,16))};static#t=this.\u0275pipe=c.EJ8({name:"async",type:T,pure:!1,standalone:!0})}return T})(),is=(()=>{class T{transform(R){if(null==R)return null;if("string"!=typeof R)throw Qr();return R.toLowerCase()}static#e=this.\u0275fac=function(x){return new(x||T)};static#t=this.\u0275pipe=c.EJ8({name:"lowercase",type:T,pure:!0,standalone:!0})}return T})(),os=(()=>{class T{transform(R){if(null==R)return null;if("string"!=typeof R)throw Qr();return R.toUpperCase()}static#e=this.\u0275fac=function(x){return new(x||T)};static#t=this.\u0275pipe=c.EJ8({name:"uppercase",type:T,pure:!0,standalone:!0})}return T})();const zs=new c.nKC(""),vi=new c.nKC("");let ho=(()=>{class T{constructor(R,x,re){this.locale=R,this.defaultTimezone=x,this.defaultOptions=re}transform(R,x,re,je){if(null==R||""===R||R!=R)return null;try{return Dr(R,x??this.defaultOptions?.dateFormat??"mediumDate",je||this.locale,re??this.defaultOptions?.timezone??this.defaultTimezone??void 0)}catch(Je){throw Qr()}}static#e=this.\u0275fac=function(x){return new(x||T)(c.rXU(c.xe9,16),c.rXU(zs,24),c.rXU(vi,24))};static#t=this.\u0275pipe=c.EJ8({name:"date",type:T,pure:!0,standalone:!0})}return T})(),Gr=(()=>{class T{constructor(R){this._locale=R}transform(R,x,re){if(!function Bo(T){return!(null==T||""===T||T!=T)}(R))return null;re||=this._locale;try{return function uo(T,V,R){return function $i(T,V,R,x,re,je,Je=!1){let Dt="",cr=!1;if(isFinite(T)){let qn=function Ki(T){let x,re,je,Je,Dt,V=Math.abs(T)+"",R=0;for((re=V.indexOf("."))>-1&&(V=V.replace(".","")),(je=V.search(/e/i))>0?(re<0&&(re=je),re+=+V.slice(je+1),V=V.substring(0,je)):re<0&&(re=V.length),je=0;"0"===V.charAt(je);
1je++);if(je===(Dt=V.length))x=[0],re=1;else{for(Dt--;"0"===V.charAt(Dt);)Dt--;for(re-=je,x=[],Je=0;je<=Dt;je++,Je++)x[Je]=Number(V.charAt(je))}return re>22&&(x=x.splice(0,21),R=re-1,re=1),{digits:x,exponent:R,integerLen:re}}(T);Je&&(qn=function Gi(T){if(0===T.digits[0])return T;const V=T.digits.length-T.integerLen;return T.exponent?T.exponent+=2:(0===V?T.digits.push(0,0):1===V&&T.digits.push(0),T.integerLen+=2),T}(qn));let jn=V.minInt,en=V.minFrac,er=V.maxFrac;if(je){const Hn=je.match(fr);if(null===Hn)throw new Error(`${je} is not a valid digit info`);const lr=Hn[1],tr=Hn[3],Br=Hn[5];null!=lr&&(jn=Ji(lr)),null!=tr&&(en=Ji(tr)),null!=Br?er=Ji(Br):null!=tr&&en>er&&(er=en)}!function Ae(T,V,R){if(V>R)throw new Error(`The minimum number of digits after fraction (${V}) is higher than the maximum (${R}).`);let x=T.digits,re=x.length-T.integerLen;const je=Math.min(Math.max(V,re),R);let Je=je+T.integerLen,Dt=x[Je];if(Je>0){x.splice(Math.max(T.integerLen,Je));for(let en=Je;en<x.length;en++)x[en]=0}else{re=Math.max(0,re),T.integerLen=1,x.length=Math.max(1,Je=je+1),x[0]=0;for(let en=1;en<Je;en++)x[en]=0}if(Dt>=5)if(Je-1<0){for(let en=0;en>Je;en--)x.unshift(0),T.integerLen++;x.unshift(1),T.integerLen++}else x[Je-1]++;for(;re<Math.max(0,je);re++)x.push(0);let cr=0!==je;const qn=V+T.integerLen,jn=x.reduceRight(function(en,er,Bn,Cr){return Cr[Bn]=(er+=en)<10?er:er-10,cr&&(0===Cr[Bn]&&Bn>=qn?Cr.pop():cr=!1),er>=10?1:0},0);jn&&(x.unshift(jn),T.integerLen++)}(qn,en,er);let Bn=qn.digits,Cr=qn.integerLen;const Un=qn.exponent;let ht=[];for(cr=Bn.every(Hn=>!Hn);Cr<jn;Cr++)Bn.unshift(0);for(;Cr<0;Cr++)Bn.unshift(0);Cr>0?ht=Bn.splice(Cr,Bn.length):(ht=Bn,Bn=[0]);const xt=[];for(Bn.length>=V.lgSize&&xt.unshift(Bn.splice(-V.lgSize,Bn.length).join(""));Bn.length>V.gSize;)xt.unshift(Bn.splice(-V.gSize,Bn.length).join(""));Bn.length&&xt.unshift(Bn.join("")),Dt=xt.join(ke(R,x)),ht.length&&(Dt+=ke(R,re)+ht.join("")),Un&&(Dt+=ke(R,_e.Exponential)+"+"+Un)}else Dt=ke(R,_e.Infinity);return Dt=T<0&&!cr?V.negPre+Dt+V.negSuf:V.posPre+Dt+V.posSuf,Dt}(T,function Me(T,V="-"){const R={minInt:1,minFrac:0,maxFrac:0,posPre:"",posSuf:"",negPre:"",negSuf:"",gSize:0,lgSize:0},x=T.split(";"),re=x[0],je=x[1],Je=-1!==re.indexOf(".")?re.split("."):[re.substring(0,re.lastIndexOf("0")+1),re.substring(re.lastIndexOf("0")+1)],Dt=Je[0],cr=Je[1]||"";R.posPre=Dt.substring(0,Dt.indexOf("#"));for(let jn=0;jn<cr.length;jn++){const en=cr.charAt(jn);"0"===en?R.minFrac=R.maxFrac=jn+1:"#"===en?R.maxFrac=jn+1:R.posSuf+=en}const qn=Dt.split(",");if(R.gSize=qn[1]?qn[1].length:0,R.lgSize=qn[2]||qn[1]?(qn[2]||qn[1]).length:0,je){const jn=re.length-R.posPre.length-R.posSuf.length,en=je.indexOf("#");R.negPre=je.substring(0,en).replace(/'/g,""),R.negSuf=je.slice(en+jn).replace(/'/g,"")}else R.negPre=V+R.posPre,R.negSuf=R.posSuf;return R}(function lt(T,V){return(0,c.H5H)(T)[c.KH2.NumberFormats][V]}(V,tt.Decimal),ke(V,_e.MinusSign)),V,_e.Group,_e.Decimal,R)}(function Xt(T){if("string"==typeof T&&!isNaN(Number(T)-parseFloat(T)))return Number(T);if("number"!=typeof T)throw new Error(`${T} is not a number`);return T}(R),re,x)}catch(je){throw Qr()}}static#e=this.\u0275fac=function(x){return new(x||T)(c.rXU(c.xe9,16))};static#t=this.\u0275pipe=c.EJ8({name:"number",type:T,pure:!0,standalone:!0})}return T})();let Oi=(()=>{class T{transform(R,x,re){if(null==R)return null;if(!this.supports(R))throw Qr();return R.slice(x,re)}supports(R){return"string"==typeof R||Array.isArray(R)}static#e=this.\u0275fac=function(x){return new(x||T)};static#t=this.\u0275pipe=c.EJ8({name:"slice",type:T,pure:!1,standalone:!0})}return T})(),wo=(()=>{class T{static#e=this.\u0275fac=function(x){return new(x||T)};static#t=this.\u0275mod=c.$C({type:T});static#n=this.\u0275inj=c.G2t({})}return T})();const Ao="browser",Xs="server";function oi(T){return T===Ao}function cs(T){return T===Xs}let eo=(()=>{class T{static#e=this.\u0275prov=(0,c.jDH)({token:T,providedIn:"root",factory:()=>oi((0,c.WQX)(c.Agw))?new wr((0,c.WQX)(se),window):new ls})}return T})();class wr{constructor(V,R){this.document=V,this.window=R,this.offset=()=>[0,0]}setOffset(V){this.offset=Array.isArray(V)?()=>V:V}getScrollPosition(){return[this.window.scrollX,this.window.scrollY]}scrollToPosition(V){this.window.scrollTo(V[0],V[1])}scrollToAnchor(V){const R=function Ei(T,V){const R=T.getElementById(V)||T.getElementsByName(V)[0];if(R)return R;if("function"==typeof T.createTreeWalker&&T.body&&"function"==typeof T.body.attachShadow){const x=T.createTreeWalker(T.body,NodeFilter.SHOW_ELEMENT);let re=x.currentNode;for(;re;){const je=re.shadowRoot;if(je){const Je=je.getElementById(V)||je.querySelector(`[name="${V}"]`);if(Je)return Je}re=x.nextNode()}}return null}(this.document,V);R&&(this.scrollToElement(R),R.focus())}setHistoryScrollRestoration(V){this.window.history.scrollRestoration=V}scrollToElement(V){const R=V.getBoundingClientRect(),x=R.left+this.window.pageXOffset,re=R.top+this.window.pageYOffset,je=this.offset();this.window.scrollTo(x-je[0],re-je[1])}}class ls{setOffset(V){}getScrollPosition(){return[0,0]}scrollToPosition(V){}scrollToAnchor(V){}setHistoryScrollRestoration(V){}}class Io{}},1626:(ct,be,I)=>{"use strict";I.d(be,{Nl:()=>ne,Qq:()=>Z,_y:()=>tt,a7:()=>Mt,q1:()=>zr,rx:()=>F}),I(467);var g=I(4438),$=I(7673),Y=I(1985),q=I(6648),ge=I(274),se=I(5964),he=I(6354),de=I(980),De=I(5558),ce=I(177);class ie{}class we{}class Re{constructor(ee){this.normalizedNames=new Map,this.lazyUpdate=null,ee?"string"==typeof ee?this.lazyInit=()=>{this.headers=new Map,ee.split("\n").forEach(fe=>{const Xe=fe.indexOf(":");if(Xe>0){const Ge=fe.slice(0,Xe),it=Ge.toLowerCase(),Ct=fe.slice(Xe+1).trim();this.maybeSetNormalizedName(Ge,it),this.headers.has(it)?this.headers.get(it).push(Ct):this.headers.set(it,[Ct])}})}:typeof Headers<"u"&&ee instanceof Headers?(this.headers=new Map,ee.forEach((fe,Xe)=>{this.setHeaderEntries(Xe,fe)})):this.lazyInit=()=>{this.headers=new Map,Object.entries(ee).forEach(([fe,Xe])=>{this.setHeaderEntries(fe,Xe)})}:this.headers=new Map}has(ee){return this.init(),this.headers.has(ee.toLowerCase())}get(ee){this.init();const fe=this.headers.get(ee.toLowerCase());return fe&&fe.length>0?fe[0]:null}keys(){return this.init(),Array.from(this.normalizedNames.values())}getAll(ee){return this.init(),this.headers.get(ee.toLowerCase())||null}append(ee,fe){return this.clone({name:ee,value:fe,op:"a"})}set(ee,fe){return this.clone({name:ee,value:fe,op:"s"})}delete(ee,fe){return this.clone({name:ee,value:fe,op:"d"})}maybeSetNormalizedName(ee,fe){this.normalizedNames.has(fe)||this.normalizedNames.set(fe,ee)}init(){this.lazyInit&&(this.lazyInit instanceof Re?this.copyFrom(this.lazyInit):this.lazyInit(),this.lazyInit=null,this.lazyUpdate&&(this.lazyUpdate.forEach(ee=>this.applyUpdate(ee)),this.lazyUpdate=null))}
1copyFrom(ee){ee.init(),Array.from(ee.headers.keys()).forEach(fe=>{this.headers.set(fe,ee.headers.get(fe)),this.normalizedNames.set(fe,ee.normalizedNames.get(fe))})}clone(ee){const fe=new Re;return fe.lazyInit=this.lazyInit&&this.lazyInit instanceof Re?this.lazyInit:this,fe.lazyUpdate=(this.lazyUpdate||[]).concat([ee]),fe}applyUpdate(ee){const fe=ee.name.toLowerCase();switch(ee.op){case"a":case"s":let Xe=ee.value;if("string"==typeof Xe&&(Xe=[Xe]),0===Xe.length)return;this.maybeSetNormalizedName(ee.name,fe);const Ge=("a"===ee.op?this.headers.get(fe):void 0)||[];Ge.push(...Xe),this.headers.set(fe,Ge);break;case"d":const it=ee.value;if(it){let Ct=this.headers.get(fe);if(!Ct)return;Ct=Ct.filter(sn=>-1===it.indexOf(sn)),0===Ct.length?(this.headers.delete(fe),this.normalizedNames.delete(fe)):this.headers.set(fe,Ct)}else this.headers.delete(fe),this.normalizedNames.delete(fe)}}setHeaderEntries(ee,fe){const Xe=(Array.isArray(fe)?fe:[fe]).map(it=>it.toString()),Ge=ee.toLowerCase();this.headers.set(Ge,Xe),this.maybeSetNormalizedName(ee,Ge)}forEach(ee){this.init(),Array.from(this.normalizedNames.keys()).forEach(fe=>ee(this.normalizedNames.get(fe),this.headers.get(fe)))}}class ut{encodeKey(ee){return Ut(ee)}encodeValue(ee){return Ut(ee)}decodeKey(ee){return decodeURIComponent(ee)}decodeValue(ee){return decodeURIComponent(ee)}}const gt=/%(\d[a-f0-9])/gi,wt={40:"@","3A":":",24:"$","2C":",","3B":";","3D":"=","3F":"?","2F":"/"};function Ut(K){return encodeURIComponent(K).replace(gt,(ee,fe)=>wt[fe]??ee)}function et(K){return`${K}`}class ne{constructor(ee={}){if(this.updates=null,this.cloneFrom=null,this.encoder=ee.encoder||new ut,ee.fromString){if(ee.fromObject)throw new Error("Cannot specify both fromString and fromObject.");this.map=function Le(K,ee){const fe=new Map;return K.length>0&&K.replace(/^\?/,"").split("&").forEach(Ge=>{const it=Ge.indexOf("="),[Ct,sn]=-1==it?[ee.decodeKey(Ge),""]:[ee.decodeKey(Ge.slice(0,it)),ee.decodeValue(Ge.slice(it+1))],Vt=fe.get(Ct)||[];Vt.push(sn),fe.set(Ct,Vt)}),fe}(ee.fromString,this.encoder)}else ee.fromObject?(this.map=new Map,Object.keys(ee.fromObject).forEach(fe=>{const Xe=ee.fromObject[fe],Ge=Array.isArray(Xe)?Xe.map(et):[et(Xe)];this.map.set(fe,Ge)})):this.map=null}has(ee){return this.init(),this.map.has(ee)}get(ee){this.init();const fe=this.map.get(ee);return fe?fe[0]:null}getAll(ee){return this.init(),this.map.get(ee)||null}keys(){return this.init(),Array.from(this.map.keys())}append(ee,fe){return this.clone({param:ee,value:fe,op:"a"})}appendAll(ee){const fe=[];return Object.keys(ee).forEach(Xe=>{const Ge=ee[Xe];Array.isArray(Ge)?Ge.forEach(it=>{fe.push({param:Xe,value:it,op:"a"})}):fe.push({param:Xe,value:Ge,op:"a"})}),this.clone(fe)}set(ee,fe){return this.clone({param:ee,value:fe,op:"s"})}delete(ee,fe){return this.clone({param:ee,value:fe,op:"d"})}toString(){return this.init(),this.keys().map(ee=>{const fe=this.encoder.encodeKey(ee);return this.map.get(ee).map(Xe=>fe+"="+this.encoder.encodeValue(Xe)).join("&")}).filter(ee=>""!==ee).join("&")}clone(ee){const fe=new ne({encoder:this.encoder});return fe.cloneFrom=this.cloneFrom||this,fe.updates=(this.updates||[]).concat(ee),fe}init(){null===this.map&&(this.map=new Map),null!==this.cloneFrom&&(this.cloneFrom.init(),this.cloneFrom.keys().forEach(ee=>this.map.set(ee,this.cloneFrom.map.get(ee))),this.updates.forEach(ee=>{switch(ee.op){case"a":case"s":const fe=("a"===ee.op?this.map.get(ee.param):void 0)||[];fe.push(et(ee.value)),this.map.set(ee.param,fe);break;case"d":if(void 0===ee.value){this.map.delete(ee.param);break}{let Xe=this.map.get(ee.param)||[];const Ge=Xe.indexOf(et(ee.value));-1!==Ge&&Xe.splice(Ge,1),Xe.length>0?this.map.set(ee.param,Xe):this.map.delete(ee.param)}}}),this.cloneFrom=this.updates=null)}}class F{constructor(ee){this.defaultValue=ee}}class tt{constructor(){this.map=new Map}set(ee,fe){return this.map.set(ee,fe),this}get(ee){return this.map.has(ee)||this.map.set(ee,ee.defaultValue()),this.map.get(ee)}delete(ee){return this.map.delete(ee),this}has(ee){return this.map.has(ee)}keys(){return this.map.keys()}}function nt(K){return typeof ArrayBuffer<"u"&&K instanceof ArrayBuffer}function Ve(K){return typeof Blob<"u"&&K instanceof Blob}function te(K){return typeof FormData<"u"&&K instanceof FormData}class Tt{constructor(ee,fe,Xe,Ge){let it;if(this.url=fe,this.body=null,this.reportProgress=!1,this.withCredentials=!1,this.responseType="json",this.method=ee.toUpperCase(),function st(K){switch(K){case"DELETE":case"GET":case"HEAD":case"OPTIONS":case"JSONP":return!1;default:return!0}}(this.method)||Ge?(this.body=void 0!==Xe?Xe:null,it=Ge):it=Xe,it&&(this.reportProgress=!!it.reportProgress,this.withCredentials=!!it.withCredentials,it.responseType&&(this.responseType=it.responseType),it.headers&&(this.headers=it.headers),it.context&&(this.context=it.context),it.params&&(this.params=it.params),this.transferCache=it.transferCache),this.headers??=new Re,this.context??=new tt,this.params){const Ct=this.params.toString();if(0===Ct.length)this.urlWithParams=fe;else{const sn=fe.indexOf("?");this.urlWithParams=fe+(-1===sn?"?":sn<fe.length-1?"&":"")+Ct}}else this.params=new ne,this.urlWithParams=fe}serializeBody(){return null===this.body?null:"string"==typeof this.body||nt(this.body)||Ve(this.body)||te(this.body)||function _e(K){return typeof URLSearchParams<"u"&&K instanceof URLSearchParams}(this.body)?this.body:this.body instanceof ne?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||te(this.body)?null:Ve(this.body)?this.body.type||null:nt(this.body)?null:"string"==typeof this.body?"text/plain":this.body instanceof ne?"application/x-www-form-urlencoded;charset=UTF-8":"object"==typeof this.body||"number"==typeof this.body||"boolean"==typeof this.body?"application/json":null}clone(ee={}){const fe=ee.method||this.method,Xe=ee.url||this.url,Ge=ee.responseType||this.responseType,it=ee.transferCache??this.transferCache,Ct=void 0!==ee.body?ee.body:this.body,sn=ee.withCredentials??this.withCredentials,Vt=ee.reportProgress??this.reportProgress;let Gn=ee.headers||this.headers,sr=ee.params||this.params;const Ln=ee.context??this.context;return void 0!==ee.setHeaders&&(Gn=Object.keys(ee.setHeaders).reduce((Wn,Xr)=>Wn.set(Xr,ee.setHeaders[Xr]),Gn)),ee.setParams&&(sr=Object.keys(ee.setParams).reduce((Wn,Xr)=>Wn.set(Xr,ee.setParams[Xr]),sr)),new Tt(fe,Xe,Ct,{params:sr,headers:Gn,context:Ln,reportProgress:Vt,responseType:Ge,withCredentials:sn,transferCache:it})}}var vt=function(K){return K[K.Sent=0]="Sent",K[K.UploadProgress=1]="UploadProgress",K[K.ResponseHeader=2]="ResponseHeader",K[K.DownloadProgress=3]="DownloadProgress",K[K.Response=4]="Response",K[K.User=5]="User",K}(vt||{});
1class Yt{constructor(ee,fe=Q.Ok,Xe="OK"){this.headers=ee.headers||new Re,this.status=void 0!==ee.status?ee.status:fe,this.statusText=ee.statusText||Xe,this.url=ee.url||null,this.ok=this.status>=200&&this.status<300}}class $e extends Yt{constructor(ee={}){super(ee),this.type=vt.ResponseHeader}clone(ee={}){return new $e({headers:ee.headers||this.headers,status:void 0!==ee.status?ee.status:this.status,statusText:ee.statusText||this.statusText,url:ee.url||this.url||void 0})}}class At extends Yt{constructor(ee={}){super(ee),this.type=vt.Response,this.body=void 0!==ee.body?ee.body:null}clone(ee={}){return new At({body:void 0!==ee.body?ee.body:this.body,headers:ee.headers||this.headers,status:void 0!==ee.status?ee.status:this.status,statusText:ee.statusText||this.statusText,url:ee.url||this.url||void 0})}}class le extends Yt{constructor(ee){super(ee,0,"Unknown Error"),this.name="HttpErrorResponse",this.ok=!1,this.message=this.status>=200&&this.status<300?`Http failure during parsing for ${ee.url||"(unknown url)"}`:`Http failure response for ${ee.url||"(unknown url)"}: ${ee.status} ${ee.statusText}`,this.error=ee.error||null}}var Q=function(K){return K[K.Continue=100]="Continue",K[K.SwitchingProtocols=101]="SwitchingProtocols",K[K.Processing=102]="Processing",K[K.EarlyHints=103]="EarlyHints",K[K.Ok=200]="Ok",K[K.Created=201]="Created",K[K.Accepted=202]="Accepted",K[K.NonAuthoritativeInformation=203]="NonAuthoritativeInformation",K[K.NoContent=204]="NoContent",K[K.ResetContent=205]="ResetContent",K[K.PartialContent=206]="PartialContent",K[K.MultiStatus=207]="MultiStatus",K[K.AlreadyReported=208]="AlreadyReported",K[K.ImUsed=226]="ImUsed",K[K.MultipleChoices=300]="MultipleChoices",K[K.MovedPermanently=301]="MovedPermanently",K[K.Found=302]="Found",K[K.SeeOther=303]="SeeOther",K[K.NotModified=304]="NotModified",K[K.UseProxy=305]="UseProxy",K[K.Unused=306]="Unused",K[K.TemporaryRedirect=307]="TemporaryRedirect",K[K.PermanentRedirect=308]="PermanentRedirect",K[K.BadRequest=400]="BadRequest",K[K.Unauthorized=401]="Unauthorized",K[K.PaymentRequired=402]="PaymentRequired",K[K.Forbidden=403]="Forbidden",K[K.NotFound=404]="NotFound",K[K.MethodNotAllowed=405]="MethodNotAllowed",K[K.NotAcceptable=406]="NotAcceptable",K[K.ProxyAuthenticationRequired=407]="ProxyAuthenticationRequired",K[K.RequestTimeout=408]="RequestTimeout",K[K.Conflict=409]="Conflict",K[K.Gone=410]="Gone",K[K.LengthRequired=411]="LengthRequired",K[K.PreconditionFailed=412]="PreconditionFailed",K[K.PayloadTooLarge=413]="PayloadTooLarge",K[K.UriTooLong=414]="UriTooLong",K[K.UnsupportedMediaType=415]="UnsupportedMediaType",K[K.RangeNotSatisfiable=416]="RangeNotSatisfiable",K[K.ExpectationFailed=417]="ExpectationFailed",K[K.ImATeapot=418]="ImATeapot",K[K.MisdirectedRequest=421]="MisdirectedRequest",K[K.UnprocessableEntity=422]="UnprocessableEntity",K[K.Locked=423]="Locked",K[K.FailedDependency=424]="FailedDependency",K[K.TooEarly=425]="TooEarly",K[K.UpgradeRequired=426]="UpgradeRequired",K[K.PreconditionRequired=428]="PreconditionRequired",K[K.TooManyRequests=429]="TooManyRequests",K[K.RequestHeaderFieldsTooLarge=431]="RequestHeaderFieldsTooLarge",K[K.UnavailableForLegalReasons=451]="UnavailableForLegalReasons",K[K.InternalServerError=500]="InternalServerError",K[K.NotImplemented=501]="NotImplemented",K[K.BadGateway=502]="BadGateway",K[K.ServiceUnavailable=503]="ServiceUnavailable",K[K.GatewayTimeout=504]="GatewayTimeout",K[K.HttpVersionNotSupported=505]="HttpVersionNotSupported",K[K.VariantAlsoNegotiates=506]="VariantAlsoNegotiates",K[K.InsufficientStorage=507]="InsufficientStorage",K[K.LoopDetected=508]="LoopDetected",K[K.NotExtended=510]="NotExtended",K[K.NetworkAuthenticationRequired=511]="NetworkAuthenticationRequired",K}(Q||{});function ae(K,ee){return{body:ee,headers:K.headers,context:K.context,observe:K.observe,params:K.params,reportProgress:K.reportProgress,responseType:K.responseType,withCredentials:K.withCredentials,transferCache:K.transferCache}}let Z=(()=>{class K{constructor(fe){this.handler=fe}request(fe,Xe,Ge={}){let it;if(fe instanceof Tt)it=fe;else{let Vt,Gn;Vt=Ge.headers instanceof Re?Ge.headers:new Re(Ge.headers),Ge.params&&(Gn=Ge.params instanceof ne?Ge.params:new ne({fromObject:Ge.params})),it=new Tt(fe,Xe,void 0!==Ge.body?Ge.body:null,{headers:Vt,context:Ge.context,params:Gn,reportProgress:Ge.reportProgress,responseType:Ge.responseType||"json",withCredentials:Ge.withCredentials,transferCache:Ge.transferCache})}const Ct=(0,$.of)(it).pipe((0,ge.H)(Vt=>this.handler.handle(Vt)));if(fe instanceof Tt||"events"===Ge.observe)return Ct;const sn=Ct.pipe((0,se.p)(Vt=>Vt instanceof At));switch(Ge.observe||"body"){case"body":switch(it.responseType){case"arraybuffer":return sn.pipe((0,he.T)(Vt=>{if(null!==Vt.body&&!(Vt.body instanceof ArrayBuffer))throw new Error("Response is not an ArrayBuffer.");return Vt.body}));case"blob":return sn.pipe((0,he.T)(Vt=>{if(null!==Vt.body&&!(Vt.body instanceof Blob))throw new Error("Response is not a Blob.");return Vt.body}));case"text":return sn.pipe((0,he.T)(Vt=>{if(null!==Vt.body&&"string"!=typeof Vt.body)throw new Error("Response is not a string.");return Vt.body}));default:return sn.pipe((0,he.T)(Vt=>Vt.body))}case"response":return sn;default:throw new Error(`Unreachable: unhandled observe type ${Ge.observe}}`)}}delete(fe,Xe={}){return this.request("DELETE",fe,Xe)}get(fe,Xe={}){return this.request("GET",fe,Xe)}head(fe,Xe={}){return this.request("HEAD",fe,Xe)}jsonp(fe,Xe){return this.request("JSONP",fe,{params:(new ne).append(Xe,"JSONP_CALLBACK"),observe:"body",responseType:"json"})}options(fe,Xe={}){return this.request("OPTIONS",fe,Xe)}patch(fe,Xe,Ge={}){return this.request("PATCH",fe,ae(Ge,Xe))}post(fe,Xe,Ge={}){return this.request("POST",fe,ae(Ge,Xe))}put(fe,Xe,Ge={}){return this.request("PUT",fe,ae(Ge,Xe))}static#e=this.\u0275fac=function(Xe){return new(Xe||K)(g.KVO(ie))};static#t=this.\u0275prov=g.jDH({token:K,factory:K.\u0275fac})}return K})();function Qe(K,ee){return ee(K)}function ze(K,ee){return(fe,Xe)=>ee.intercept(fe,{handle:Ge=>K(Ge,Xe)})}const Mt=new g.nKC(""),dn=new g.nKC(""),nn=new g.nKC(""),mt=new g.nKC("");function En(){let K=null;return(ee,fe)=>{null===K&&(K=((0,g.WQX)(Mt,{optional:!0})??[]).reduceRight(ze,Qe));const Xe=(0,g.WQX)(g.TgB),Ge=Xe.add();return K(ee,fe).pipe((0,de.j)(()=>Xe.remove(Ge)))}}let zn=(()=>{class K extends ie{constructor(fe,Xe){super(),this.backend=fe,this.injector=Xe,this.chain=null,this.pendingTasks=(0,g.WQX)(g.TgB);const Ge=(0,g.WQX)(mt,{optional:!0});this.backend=Ge??fe}handle(fe){if(null===this.chain){const Ge=Array.from(new Set([...this.injector.get(dn),...this.injector.get(nn,[])]));this.chain=Ge.reduceRight((it,Ct)=>function ot(K,ee,fe){return(Xe,Ge)=>(0,g.N4e)(fe,()=>ee(Xe,it=>K(it,Ge)))}(it,Ct,this.injector),Qe)}const Xe=this.pendingTasks.add();return this.chain(fe,Ge=>this.backend.handle(Ge)).pipe((0,de.j)(()=>this.pendingTasks.remove(Xe)))}static#e=this.\u0275fac=function(Xe){return new(Xe||K)(g.KVO(we),g.KVO(g.uvJ))};static#t=this.\u0275prov=g.jDH({token:K,factory:K.\u0275fac})}return K})();const Ii=/^\)\]\}',?\n/;let di=(()=>{class K{constructor(fe){this.xhrFactory=fe}handle(fe){if("JSONP"===fe.method)throw new g.wOt(-2800,!1);const Xe=this.xhrFactory;return(Xe.\u0275loadImpl?(0,q.H)(Xe.\u0275loadImpl()):(0,$.of)(null)).pipe((0,De.n)(()=>new Y.c(it=>{const Ct=Xe.build();if(Ct.open(fe.method,fe.urlWithParams),fe.withCredentials&&(Ct.withCredentials=!0),fe.headers.forEac
1h((Tn,bn)=>Ct.setRequestHeader(Tn,bn.join(","))),fe.headers.has("Accept")||Ct.setRequestHeader("Accept","application/json, text/plain, */*"),!fe.headers.has("Content-Type")){const Tn=fe.detectContentTypeHeader();null!==Tn&&Ct.setRequestHeader("Content-Type",Tn)}if(fe.responseType){const Tn=fe.responseType.toLowerCase();Ct.responseType="json"!==Tn?Tn:"text"}const sn=fe.serializeBody();let Vt=null;const Gn=()=>{if(null!==Vt)return Vt;const Tn=Ct.statusText||"OK",bn=new Re(Ct.getAllResponseHeaders()),qt=function Zt(K){return"responseURL"in K&&K.responseURL?K.responseURL:/^X-Request-URL:/m.test(K.getAllResponseHeaders())?K.getResponseHeader("X-Request-URL"):null}(Ct)||fe.url;return Vt=new $e({headers:bn,status:Ct.status,statusText:Tn,url:qt}),Vt},sr=()=>{let{headers:Tn,status:bn,statusText:qt,url:br}=Gn(),ar=null;bn!==Q.NoContent&&(ar=typeof Ct.response>"u"?Ct.responseText:Ct.response),0===bn&&(bn=ar?Q.Ok:0);let Qn=bn>=200&&bn<300;if("json"===fe.responseType&&"string"==typeof ar){const Pn=ar;ar=ar.replace(Ii,"");try{ar=""!==ar?JSON.parse(ar):null}catch(pr){ar=Pn,Qn&&(Qn=!1,ar={error:pr,text:ar})}}Qn?(it.next(new At({body:ar,headers:Tn,status:bn,statusText:qt,url:br||void 0})),it.complete()):it.error(new le({error:ar,headers:Tn,status:bn,statusText:qt,url:br||void 0}))},Ln=Tn=>{const{url:bn}=Gn(),qt=new le({error:Tn,status:Ct.status||0,statusText:Ct.statusText||"Unknown Error",url:bn||void 0});it.error(qt)};let Wn=!1;const Xr=Tn=>{Wn||(it.next(Gn()),Wn=!0);let bn={type:vt.DownloadProgress,loaded:Tn.loaded};Tn.lengthComputable&&(bn.total=Tn.total),"text"===fe.responseType&&Ct.responseText&&(bn.partialText=Ct.responseText),it.next(bn)},Er=Tn=>{let bn={type:vt.UploadProgress,loaded:Tn.loaded};Tn.lengthComputable&&(bn.total=Tn.total),it.next(bn)};return Ct.addEventListener("load",sr),Ct.addEventListener("error",Ln),Ct.addEventListener("timeout",Ln),Ct.addEventListener("abort",Ln),fe.reportProgress&&(Ct.addEventListener("progress",Xr),null!==sn&&Ct.upload&&Ct.upload.addEventListener("progress",Er)),Ct.send(sn),it.next({type:vt.Sent}),()=>{Ct.removeEventListener("error",Ln),Ct.removeEventListener("abort",Ln),Ct.removeEventListener("load",sr),Ct.removeEventListener("timeout",Ln),fe.reportProgress&&(Ct.removeEventListener("progress",Xr),null!==sn&&Ct.upload&&Ct.upload.removeEventListener("progress",Er)),Ct.readyState!==Ct.DONE&&Ct.abort()}})))}static#e=this.\u0275fac=function(Xe){return new(Xe||K)(g.KVO(ce.N0))};static#t=this.\u0275prov=g.jDH({token:K,factory:K.\u0275fac})}return K})();const on=new g.nKC(""),Kt=new g.nKC("",{providedIn:"root",factory:()=>"XSRF-TOKEN"}),jr=new g.nKC("",{providedIn:"root",factory:()=>"X-XSRF-TOKEN"});class Jr{}let Yi=(()=>{class K{constructor(fe,Xe,Ge){this.doc=fe,this.platform=Xe,this.cookieName=Ge,this.lastCookieString="",this.lastToken=null,this.parseCount=0}getToken(){if("server"===this.platform)return null;const fe=this.doc.cookie||"";return fe!==this.lastCookieString&&(this.parseCount++,this.lastToken=(0,ce._b)(fe,this.cookieName),this.lastCookieString=fe),this.lastToken}static#e=this.\u0275fac=function(Xe){return new(Xe||K)(g.KVO(ce.qQ),g.KVO(g.Agw),g.KVO(Kt))};static#t=this.\u0275prov=g.jDH({token:K,factory:K.\u0275fac})}return K})();function $n(K,ee){const fe=K.url.toLowerCase();if(!(0,g.WQX)(on)||"GET"===K.method||"HEAD"===K.method||fe.startsWith("http://")||fe.startsWith("https://"))return ee(K);const Xe=(0,g.WQX)(Jr).getToken(),Ge=(0,g.WQX)(jr);return null!=Xe&&!K.headers.has(Ge)&&(K=K.clone({headers:K.headers.set(Ge,Xe)})),ee(K)}var Oe=function(K){return K[K.Interceptors=0]="Interceptors",K[K.LegacyInterceptors=1]="LegacyInterceptors",K[K.CustomXsrfConfiguration=2]="CustomXsrfConfiguration",K[K.NoXsrfProtection=3]="NoXsrfProtection",K[K.JsonpSupport=4]="JsonpSupport",K[K.RequestsMadeViaParent=5]="RequestsMadeViaParent",K[K.Fetch=6]="Fetch",K}(Oe||{});function me(...K){const ee=[Z,di,zn,{provide:ie,useExisting:zn},{provide:we,useExisting:di},{provide:dn,useValue:$n,multi:!0},{provide:on,useValue:!0},{provide:Jr,useClass:Yi}];for(const fe of K)ee.push(...fe.\u0275providers);return(0,g.EmA)(ee)}const It=new g.nKC("");function $t(){return function J(K,ee){return{\u0275kind:K,\u0275providers:ee}}(Oe.LegacyInterceptors,[{provide:It,useFactory:En},{provide:dn,useExisting:It,multi:!0}])}let zr=(()=>{class K{static#e=this.\u0275fac=function(Xe){return new(Xe||K)};static#t=this.\u0275mod=g.$C({type:K});static#n=this.\u0275inj=g.G2t({providers:[me($t())]})}return K})()},4438:(ct,be,I)=>{"use strict";I.d(be,{bc$:()=>ir,iLQ:()=>Mm,sZ2:()=>kn,hnV:()=>a0,Hbi:()=>XM,o8S:()=>gl,BIS:()=>lo,gRc:()=>C0,Ql9:()=>vM,Ocv:()=>AM,abz:()=>Wa,Z63:()=>$o,aKT:()=>Nc,uvJ:()=>Lr,zcH:()=>ya,bkB:()=>$s,$GK:()=>gn,nKC:()=>Ge,zZn:()=>ao,_q3:()=>Lm,MKu:()=>Bm,xe9:()=>pp,Co$:()=>Jy,Vns:()=>Zl,SKi:()=>Ai,Xx1:()=>oi,Agw:()=>ti,PLl:()=>Dn,sFG:()=>fD,_9s:()=>ay,czy:()=>Ef,WPN:()=>Ql,kdw:()=>fo,C4Q:()=>dh,NYb:()=>hM,giA:()=>o0,RxE:()=>qE,c1b:()=>Vf,gXe:()=>bi,mal:()=>py,Af3:()=>ro,L39:()=>TR,a0P:()=>NR,Ol2:()=>kg,w6W:()=>dS,oH4:()=>m0,SmG:()=>kM,Rfq:()=>$n,WQX:()=>Xt,naY:()=>OM,QuC:()=>fi,EmA:()=>ps,fpN:()=>zM,HJs:()=>OR,N4e:()=>po,O8t:()=>SR,An2:()=>Ff,H3F:()=>YE,H8p:()=>na,KH2:()=>fd,TgB:()=>Xu,wOt:()=>ft,WHO:()=>n0,e01:()=>r0,lNU:()=>En,h9k:()=>i_,$MX:()=>_f,ZF7:()=>Hu,Kcf:()=>cb,e5t:()=>hb,UyX:()=>ub,cWb:()=>lb,osQ:()=>db,H5H:()=>sm,Zy3:()=>Rn,mq5:()=>iC,JZv:()=>Zt,LfX:()=>Ji,plB:()=>
1dl,jNT:()=>Am,zjR:()=>s0,TL$:()=>ln,Tbb:()=>Wt,rcV:()=>Pc,nM4:()=>Xy,Vt3:()=>Rg,Mj6:()=>Mo,GFd:()=>Zy,OA$:()=>Pe,Jv_:()=>yE,aNF:()=>vE,R7$:()=>R_,BMQ:()=>Gg,HbH:()=>Hv,AVh:()=>Yg,vxM:()=>qv,wni:()=>zC,VBU:()=>Ra,FsC:()=>oc,jDH:()=>Me,G2t:()=>Ki,$C:()=>Na,EJ8:()=>Ys,rXU:()=>$u,nrm:()=>rm,eu8:()=>im,bVm:()=>rp,qex:()=>np,k0s:()=>tp,j41:()=>ep,RV6:()=>nC,xGo:()=>il,Mr5:()=>om,pXf:()=>NC,KVO:()=>Sr,kS0:()=>_a,QTQ:()=>O_,bIt:()=>lm,lsd:()=>qC,joV:()=>Rd,qSk:()=>Nl,XpG:()=>FC,nI1:()=>RE,bMT:()=>NE,i5U:()=>OE,brH:()=>kE,SdG:()=>BC,NAR:()=>LC,Y8G:()=>Xg,FS9:()=>dm,lJ4:()=>EE,eq3:()=>bE,l_i:()=>TE,sMw:()=>DE,mGM:()=>QC,sdS:()=>YC,Dyx:()=>Jv,Z7z:()=>Zv,fX1:()=>Yv,Njj:()=>xs,tSv:()=>u_,eBV:()=>Il,npT:()=>o_,f$h:()=>Lp,B4B:()=>Fp,n$t:()=>s_,xc7:()=>qg,DNE:()=>Qu,C5r:()=>PE,EFF:()=>aE,JRh:()=>fm,SpI:()=>cp,Lme:()=>pm,DH7:()=>mE,mxI:()=>mm,R50:()=>gm,GBs:()=>XC}),I(467);let $=null,q=1;const ge=Symbol("SIGNAL");function se(e){const t=$;return $=e,t}function Re(e){if((!tt(e)||e.dirty)&&(e.dirty||e.lastCleanEpoch!==q)){if(!e.producerMustRecompute(e)&&!Ut(e))return e.dirty=!1,void(e.lastCleanEpoch=q);e.producerRecomputeValue(e),e.dirty=!1,e.lastCleanEpoch=q}}function Ut(e){st(e);for(let t=0;t<e.producerNode.length;t++){const n=e.producerNode[t],o=e.producerLastReadVersion[t];if(o!==n.version||(Re(n),o!==n.version))return!0}return!1}function F(e,t){if(function nt(e){e.liveConsumerNode??=[],e.liveConsumerIndexOfThis??=[]}(e),st(e),1===e.liveConsumerNode.length)for(let o=0;o<e.producerNode.length;o++)F(e.producerNode[o],e.producerIndexOfThis[o]);const n=e.liveConsumerNode.length-1;if(e.liveConsumerNode[t]=e.liveConsumerNode[n],e.liveConsumerIndexOfThis[t]=e.liveConsumerIndexOfThis[n],e.liveConsumerNode.length--,e.liveConsumerIndexOfThis.length--,t<e.liveConsumerNode.length){const o=e.liveConsumerIndexOfThis[t],s=e.liveConsumerNode[t];st(s),s.producerIndexOfThis[o]=t}}function tt(e){return e.consumerIsAlwaysLive||(e?.liveConsumerNode?.length??0)>0}function st(e){e.producerNode??=[],e.producerIndexOfThis??=[],e.producerLastReadVersion??=[]}let $e=null;var ot=I(1413),Mt=I(8359),dn=I(4412),nn=I(6354);const En="https://g.co/ng/security#xss";class ft extends Error{constructor(t,n){super(Rn(t,n)),this.code=t}}function Rn(e,t){return`NG0${Math.abs(e)}${t?": "+t:""}`}function Qt(e){return{toString:e}.toString()}const Dr="__parameters__";function Yn(e,t,n){return Qt(()=>{const o=function ni(e){return function(...n){if(e){const o=e(...n);for(const s in o)this[s]=o[s]}}}(t);function s(...d){if(this instanceof s)return o.apply(this,d),this;const p=new s(...d);return _.annotation=p,_;function _(D,O,U){const X=D.hasOwnProperty(Dr)?D[Dr]:Object.defineProperty(D,Dr,{value:[]})[Dr];for(;X.length<=U;)X.push(null);return(X[U]=X[U]||[]).push(p),D}}return n&&(s.prototype=Object.create(n.prototype)),s.prototype.ngMetadataName=e,s.annotationCls=s,s})}const Zt=globalThis;function cn(e){for(let t in e)if(e[t]===cn)return t;throw Error("Could not find renamed property on target object.")}function Kt(e,t){for(const n in t)t.hasOwnProperty(n)&&!e.hasOwnProperty(n)&&(e[n]=t[n])}function Wt(e){if("string"==typeof e)return e;if(Array.isArray(e))return"["+e.map(Wt).join(", ")+"]";if(null==e)return""+e;if(e.overriddenName)return`${e.overriddenName}`;if(e.name)return`${e.name}`;const t=e.toString();if(null==t)return""+t;const n=t.indexOf("\n");return-1===n?t:t.substring(0,n)}function jr(e,t){return null==e||""===e?null===t?"":t:null==t||""===t?e:e+" "+t}const Yi=cn({__forward_ref__:cn});function $n(e){return e.__forward_ref__=$n,e.toString=function(){return Wt(this())},e}function Te(e){return Oe(e)?e():e}function Oe(e){return"function"==typeof e&&e.hasOwnProperty(Yi)&&e.__forward_ref__===$n}function $t(e,t,n){e!=t&&function Lt(e,t,n,o){throw new Error(`ASSERTION ERROR: ${e}`+(null==o?"":` [Expected=> ${n} ${o} ${t} <=Actual]`))}(n,e,t,"==")}function Me(e){return{token:e.token,providedIn:e.providedIn||null,factory:e.factory,value:void 0}}function Ki(e){return{providers:e.providers||[],imports:e.imports||[]}}function Ae(e){return Zn(e,K)||Zn(e,fe)}function Ji(e){return null!==Ae(e)}function Zn(e,t){return e.hasOwnProperty(t)?e[t]:null}function Wi(e){return e&&(e.hasOwnProperty(ee)||e.hasOwnProperty(Xe))?e[ee]:null}const K=cn({\u0275prov:cn}),ee=cn({\u0275inj:cn}),fe=cn({ngInjectableDef:cn}),Xe=cn({ngInjectorDef:cn});class Ge{constructor(t,n){this._desc=t,this.ngMetadataName="InjectionToken",this.\u0275prov=void 0,"number"==typeof n?this.__NG_ELEMENT_ID__=n:void 0!==n&&(this.\u0275prov=Me({token:this,providedIn:n.providedIn||"root",factory:n.factory}))}get multi(){return this}toString(){return`InjectionToken ${this._desc}`}}function Tn(e){return e&&!!e.\u0275providers}const bn=cn({\u0275cmp:cn}),qt=cn({\u0275dir:cn}),br=cn({\u0275pipe:cn}),ar=cn({\u0275mod:cn}),Qn=cn({\u0275fac:cn}),Pn=cn({__NG_ELEMENT_ID__:cn}),pr=cn({__NG_ENV_ID__:cn});function zt(e){return"string"==typeof e?e:null==e?"":String(e)}function Lo(e,t){throw new ft(-201,!1)}var gn=function(e){return e[e.Default=0]="Default",e[e.Host=1]="Host",e[e.Self=2]="Self",e[e.SkipSelf=4]="SkipSelf",e[e.Optional=8]="Optional",e}(gn||{});let is;function ri(){return is}function dt(e){const t=is;return is=e,t}function os(e,t,n){const o=Ae(e);return o&&"root"==o.providedIn?void 0===o.value?o.value=o.factory():o.value:n&gn.Optional?null:void 0!==t?t:void Lo()}const vi={},ho="__NG_DI_FLAG__",Mr="ngTempTokenPath",Pr=/\n/gm,So="__source";let Ni;function Gr(e){const t=Ni;return Ni=e,t}function ss(e,t=gn.Default){if(void 0===Ni)throw new ft(-203,!1);return null===Ni?os(e,void 0,t):Ni.get(e,t&gn.Optional?null:void 0,t)}function Sr(e,t=gn.Default){return(ri()||ss)(Te(e),t)}
1function Xt(e,t=gn.Default){return Sr(e,Oi(t))}function Oi(e){return typeof e>"u"||"number"==typeof e?e:(e.optional&&8)|(e.host&&1)|(e.self&&2)|(e.skipSelf&&4)}function as(e){const t=[];for(let n=0;n<e.length;n++){const o=Te(e[n]);if(Array.isArray(o)){if(0===o.length)throw new ft(900,!1);let s,d=gn.Default;for(let p=0;p<o.length;p++){const _=o[p],D=Ao(_);"number"==typeof D?-1===D?s=_.token:d|=D:s=_}t.push(Sr(s,d))}else t.push(Sr(o))}return t}function wo(e,t){return e[ho]=t,e.prototype[ho]=t,e}function Ao(e){return e[ho]}const oi=wo(Yn("Optional"),8),fo=wo(Yn("SkipSelf"),4);function xr(e,t){return e.hasOwnProperty(Qn)?e[Qn]:null}function Ei(e,t){e.forEach(n=>Array.isArray(n)?Ei(n,t):t(n))}function ls(e,t,n){t>=e.length?e.push(n):e.splice(t,0,n)}function Io(e,t){return t>=e.length-1?e.pop():e.splice(t,1)[0]}function si(e,t,n){let o=to(e,t);return o>=0?e[1|o]=n:(o=~o,function Qs(e,t,n,o){let s=e.length;if(s==t)e.push(n,o);else if(1===s)e.push(o,e[0]),e[0]=n;else{for(s--,e.push(e[s-1],e[s]);s>t;)e[s]=e[s-2],s--;e[t]=n,e[t+1]=o}}(e,o,t,n)),o}function jo(e,t){const n=to(e,t);if(n>=0)return e[1|n]}function to(e,t){return function Sa(e,t,n){let o=0,s=e.length>>n;for(;s!==o;){const d=o+(s-o>>1),p=e[d<<n];if(t===p)return d<<n;p>t?s=d:o=d+1}return~(s<<n)}(e,t,1)}const hi={},Nn=[],$o=new Ge(""),ec=new Ge("",-1),Go=new Ge("");class ai{get(t,n=vi){if(n===vi){const o=new Error(`NullInjectorError: No provider for ${Wt(t)}!`);throw o.name="NullInjectorError",o}return n}}var hs=function(e){return e[e.OnPush=0]="OnPush",e[e.Default=1]="Default",e}(hs||{}),bi=function(e){return e[e.Emulated=0]="Emulated",e[e.None=2]="None",e[e.ShadowDom=3]="ShadowDom",e}(bi||{}),Mo=function(e){return e[e.None=0]="None",e[e.SignalBased=1]="SignalBased",e[e.HasDecoratorInputTransform=2]="HasDecoratorInputTransform",e}(Mo||{});function qs(e,t,n){let o=e.length;for(;;){const s=e.indexOf(t,n);if(-1===s)return s;if(0===s||e.charCodeAt(s-1)<=32){const d=t.length;if(s+d===o||e.charCodeAt(s+d)<=32)return s}n=s+1}}function fs(e,t,n){let o=0;for(;o<n.length;){const s=n[o];if("number"==typeof s){if(0!==s)break;o++;const d=n[o++],p=n[o++],_=n[o++];e.setAttribute(t,p,_,d)}else{const d=s,p=n[++o];B(d)?e.setProperty(t,d,p):e.setAttribute(t,d,p),o++}}return o}function L(e){return 3===e||4===e||6===e}function B(e){return 64===e.charCodeAt(0)}function M(e,t){if(null!==t&&0!==t.length)if(null===e||0===e.length)e=t.slice();else{let n=-1;for(let o=0;o<t.length;o++){const s=t[o];"number"==typeof s?n=s:0===n||z(e,n,s,null,-1===n||2===n?t[++o]:null)}}return e}function z(e,t,n,o,s){let d=0,p=e.length;if(-1===t)p=-1;else for(;d<e.length;){const _=e[d++];if("number"==typeof _){if(_===t){p=-1;break}if(_>t){p=d-1;break}}}for(;d<e.length;){const _=e[d];if("number"==typeof _)break;if(_===n){if(null===o)return void(null!==s&&(e[d+1]=s));if(o===e[d+1])return void(e[d+2]=s)}d++,null!==o&&d++,null!==s&&d++}-1!==p&&(e.splice(p,0,t),d=p+1),e.splice(d++,0,n),null!==o&&e.splice(d++,0,o),null!==s&&e.splice(d++,0,s)}const ye="ng-template";function jt(e,t,n,o){let s=0;if(o){for(;s<t.length&&"string"==typeof t[s];s+=2)if("class"===t[s]&&-1!==qs(t[s+1].toLowerCase(),n,0))return!0}else if(mn(e))return!1;if(s=t.indexOf(1,s),s>-1){let d;for(;++s<t.length&&"string"==typeof(d=t[s]);)if(d.toLowerCase()===n)return!0}return!1}function mn(e){return 4===e.type&&e.value!==ye}function Xi(e,t,n){return t===(4!==e.type||n?e.value:ye)}function Qi(e,t,n){let o=4;const s=e.attrs,d=null!==s?function Aa(e){for(let t=0;t<e.length;t++)if(L(e[t]))return t;return e.length}(s):0;let p=!1;for(let _=0;_<t.length;_++){const D=t[_];if("number"!=typeof D){if(!p)if(4&o){if(o=2|1&o,""!==D&&!Xi(e,D,n)||""===D&&1===t.length){if(Fr(o))return!1;p=!0}}else if(8&o){if(null===s||!jt(e,s,D,n)){if(Fr(o))return!1;p=!0}}else{const O=t[++_],U=tc(D,s,mn(e),n);if(-1===U){if(Fr(o))return!1;p=!0;continue}if(""!==O){let X;if(X=U>d?"":s[U+1].toLowerCase(),2&o&&O!==X){if(Fr(o))return!1;p=!0}}}}else{if(!p&&!Fr(o)&&!Fr(D))return!1;if(p&&Fr(D))continue;p=!1,o=D|1&o}}return Fr(o)||p}function Fr(e){return!(1&e)}function tc(e,t,n,o){if(null===t)return-1;let s=0;if(o||!n){let d=!1;for(;s<t.length;){const p=t[s];if(p===e)return s;if(3===p||6===p)d=!0;else{if(1===p||2===p){let _=t[++s];for(;"string"==typeof _;)_=t[++s];continue}if(4===p)break;if(0===p){s+=4;continue}}s+=d?1:2}return-1}return function Jn(e,t){let n=e.indexOf(4);if(n>-1)for(n++;n<e.length;){const o=e[n];if("number"==typeof o)return-1;if(o===t)return n;n++}return-1}(t,e)}function nc(e,t,n=!1){for(let o=0;o<t.length;o++)if(Qi(e,t[o],n))return!0;return!1}function Bc(e,t){e:for(let n=0;n<t.length;n++){const o=t[n];if(e.length===o.length){for(let s=0;s<e.length;s++)if(e[s]!==o[s])continue e;return!0}}return!1}function Ia(e,t){return e?":not("+t.trim()+")":t}function Ma(e){let t=e[0],n=1,o=2,s="",d=!1;for(;n<e.length;){let p=e[n];if("string"==typeof p)if(2&o){const _=e[++n];s+="["+p+(_.length>0?'="'+_+'"':"")+"]"}else 8&o?s+="."+p:4&o&&(s+=" "+p);else""!==s&&!Fr(p)&&(t+=Ia(d,s),s=""),o=p,d=d||!Fr(o);n++}
1return""!==s&&(t+=Ia(d,s)),t}function Ra(e){return Qt(()=>{const t=Ro(e),n={...t,decls:e.decls,vars:e.vars,template:e.template,consts:e.consts||null,ngContentSelectors:e.ngContentSelectors,onPush:e.changeDetection===hs.OnPush,directiveDefs:null,pipeDefs:null,dependencies:t.standalone&&e.dependencies||null,getStandaloneInjector:null,signals:e.signals??!1,data:e.data||{},encapsulation:e.encapsulation||bi.Emulated,styles:e.styles||Nn,_:null,schemas:e.schemas||null,tView:null,id:""};Zs(n);const o=e.dependencies;return n.directiveDefs=Ko(o,!1),n.pipeDefs=Ko(o,!0),n.id=function Ms(e){let t=0;const n=[e.selectors,e.ngContentSelectors,e.hostVars,e.hostAttrs,e.consts,e.vars,e.decls,e.encapsulation,e.standalone,e.signals,e.exportAs,JSON.stringify(e.inputs),JSON.stringify(e.outputs),Object.getOwnPropertyNames(e.type.prototype),!!e.contentQueries,!!e.viewQuery].join("|");for(const s of n)t=Math.imul(31,t)+s.charCodeAt(0)|0;return t+=2147483648,"c"+t}(n),n})}function Uc(e){return _n(e)||Tr(e)}function rc(e){return null!==e}function Na(e){return Qt(()=>({type:e.type,bootstrap:e.bootstrap||Nn,declarations:e.declarations||Nn,imports:e.imports||Nn,exports:e.exports||Nn,transitiveCompileScopes:null,schemas:e.schemas||null,id:e.id||null}))}function ic(e,t){if(null==e)return hi;const n={};for(const o in e)if(e.hasOwnProperty(o)){const s=e[o];let d,p,_=Mo.None;Array.isArray(s)?(_=s[0],d=s[1],p=s[2]??d):(d=s,p=s),t?(n[d]=_!==Mo.None?[o,_]:o,t[d]=p):n[d]=o}return n}function oc(e){return Qt(()=>{const t=Ro(e);return Zs(t),t})}function Ys(e){return{type:e.type,name:e.name,factory:null,pure:!1!==e.pure,standalone:!0===e.standalone,onDestroy:e.type.prototype.ngOnDestroy||null}}function _n(e){return e[bn]||null}function Tr(e){return e[qt]||null}function gr(e){return e[br]||null}function fi(e){const t=_n(e)||Tr(e)||gr(e);return null!==t&&t.standalone}function Rr(e,t){const n=e[ar]||null;if(!n&&!0===t)throw new Error(`Type ${Wt(e)} does not have '\u0275mod' property.`);return n}function Ro(e){const t={};return{type:e.type,providersResolver:null,factory:null,hostBindings:e.hostBindings||null,hostVars:e.hostVars||0,hostAttrs:e.hostAttrs||null,contentQueries:e.contentQueries||null,declaredInputs:t,inputTransforms:null,inputConfig:e.inputs||hi,exportAs:e.exportAs||null,standalone:!0===e.standalone,signals:!0===e.signals,selectors:e.selectors||Nn,viewQuery:e.viewQuery||null,features:e.features||null,setInput:null,findHostDirectiveDefs:null,hostDirectives:null,inputs:ic(e.inputs,t),outputs:ic(e.outputs),debugInfo:null}}function Zs(e){e.features?.forEach(t=>t(e))}function Ko(e,t){if(!e)return null;const n=t?gr:Uc;return()=>("function"==typeof e?e():e).map(o=>n(o)).filter(rc)}function ps(e){return{\u0275providers:e}}function Oa(...e){return{\u0275providers:Ti(0,e),\u0275fromNgModule:!0}}function Ti(e,...t){const n=[],o=new Set;let s;const d=p=>{n.push(p)};return Ei(t,p=>{const _=p;gs(_,d,[],o)&&(s||=[],s.push(_))}),void 0!==s&&Js(s,d),n}function Js(e,t){for(let n=0;n<e.length;n++){const{ngModule:o,providers:s}=e[n];ka(s,d=>{t(d,o)})}}function gs(e,t,n,o){if(!(e=Te(e)))return!1;let s=null,d=Wi(e);const p=!d&&_n(e);if(d||p){if(p&&!p.standalone)return!1;s=e}else{const D=e.ngModule;if(d=Wi(D),!d)return!1;s=D}const _=o.has(s);if(p){if(_)return!1;if(o.add(s),p.dependencies){const D="function"==typeof p.dependencies?p.dependencies():p.dependencies;for(const O of D)gs(O,t,n,o)}}else{if(!d)return!1;{if(null!=d.imports&&!_){let O;o.add(s);try{Ei(d.imports,U=>{gs(U,t,n,o)&&(O||=[],O.push(U))})}finally{}void 0!==O&&Js(O,t)}if(!_){const O=xr(s)||(()=>new s);t({provide:s,useFactory:O,deps:Nn},s),t({provide:Go,useValue:s,multi:!0},s),t({provide:$o,useValue:()=>Sr(s),multi:!0},s)}const D=d.providers;if(null!=D&&!_){const O=e;ka(D,U=>{t(U,O)})}}}return s!==e&&void 0!==e.providers}function ka(e,t){for(let n of e)Tn(n)&&(n=n.\u0275providers),Array.isArray(n)?ka(n,t):t(n)}const Hc=cn({provide:String,useValue:cn});function ea(e){return null!==e&&"object"==typeof e&&Hc in e}function Pi(e){return"function"==typeof e}const na=new Ge(""),Pa={},ra={};let lc;function ms(){return void 0===lc&&(lc=new ai),lc}class Lr{}class Wo extends Lr{get destroyed(){return this._destroyed}constructor(t,n,o,s){super(),this.parent=n,this.source=o,this.scopes=s,this.records=new Map,this._ngOnDestroyHooks=new Set,this._onDestroyHooks=[],this._destroyed=!1,_s(t,p=>this.processProvider(p)),this.records.set(ec,ci(void 0,this)),s.has("environment")&&this.records.set(Lr,ci(void 0,this));const d=this.records.get(na);null!=d&&"string"==typeof d.value&&this.scopes.add(d.value),this.injectorDefTypes=new Set(this.get(Go,Nn,gn.Self))}destroy(){this.assertNotDestroyed(),this._destroyed=!0;const t=se(null);try{for(const o of this._ngOnDestroyHooks)o.ngOnDestroy();const n=this._onDestroyHooks;this._onDestroyHooks=[];for(const o of n)o()}finally{this.records.clear(),this._ngOnDestroyHooks.clear(),this.injectorDefTypes.clear(),se(t)}}onDestroy(t){return this.assertNotDestroyed(),this._onDestroyHooks.push(t),()=>this.removeOnDestroy(t)}runInContext(t){this.assertNotDestroyed();const n=Gr(this),o=dt(void 0);try{return t()}finally{Gr(n),dt(o)}}get(t,n=vi,o=gn.Default){if(this.assertNotDestroyed(),t.hasOwnProperty(pr))return t[pr](this);o=Oi(o);const d=Gr(this),p=dt(void 0);try{if(!(o&gn.SkipSelf)){let D=this.records.get(t);if(void 0===D){const O=function no(e){return"function"==typeof e||"object"==typeof e&&e instanceof Ge}(t)&&Ae(t);D=O&&this.injectableDefInScope(O)?ci(Rs(t),Pa):null,this.records.set(t,D)}if(null!=D)return this.hydrate(t,D)}return(o&gn.Self?ms():this.parent).get(t,n=o&gn.Optional&&n===vi?null:n)}catch(_){if("NullInjectorError"===_.name){if((_[Mr]=_[Mr]||[]).unshift(Wt(t)),d)throw _;return function Xs(e,t,n,o){const s=e[Mr];throw t[So]&&s.unshift(t[So]),e.message=function Uo(e,t,n,o=null){e=e&&"\n"===e.charAt(0)&&"\u0275"==e.charAt(1)?e.slice(2):e;let s=Wt(t);if(Array.isArray(t))s=t.map(Wt).join(" -> ");else if("object"==typeof t){let d=[];for(let p in t)if(t.hasOwnProperty(p)){let _=t[p];
1d.push(p+":"+("string"==typeof _?JSON.stringify(_):Wt(_)))}s=`{${d.join(", ")}}`}return`${n}${o?"("+o+")":""}[${s}]: ${e.replace(Pr,"\n ")}`}("\n"+e.message,s,n,o),e.ngTokenPath=s,e[Mr]=null,e}(_,t,"R3InjectorError",this.source)}throw _}finally{dt(p),Gr(d)}}resolveInjectorInitializers(){const t=se(null),n=Gr(this),o=dt(void 0);try{const d=this.get($o,Nn,gn.Self);for(const p of d)p()}finally{Gr(n),dt(o),se(t)}}toString(){const t=[],n=this.records;for(const o of n.keys())t.push(Wt(o));return`R3Injector[${t.join(", ")}]`}assertNotDestroyed(){if(this._destroyed)throw new ft(205,!1)}processProvider(t){let n=Pi(t=Te(t))?t:Te(t&&t.provide);const o=function uc(e){return ea(e)?ci(void 0,e.useValue):ci(zo(e),Pa)}(t);if(!Pi(t)&&!0===t.multi){let s=this.records.get(n);s||(s=ci(void 0,Pa,!0),s.factory=()=>as(s.multi),this.records.set(n,s)),n=t,s.multi.push(t)}this.records.set(n,o)}hydrate(t,n){const o=se(null);try{return n.value===Pa&&(n.value=ra,n.value=n.factory()),"object"==typeof n.value&&n.value&&function li(e){return null!==e&&"object"==typeof e&&"function"==typeof e.ngOnDestroy}(n.value)&&this._ngOnDestroyHooks.add(n.value),n.value}finally{se(o)}}injectableDefInScope(t){if(!t.providedIn)return!1;const n=Te(t.providedIn);return"string"==typeof n?"any"===n||this.scopes.has(n):this.injectorDefTypes.has(n)}removeOnDestroy(t){const n=this._onDestroyHooks.indexOf(t);-1!==n&&this._onDestroyHooks.splice(n,1)}}function Rs(e){const t=Ae(e),n=null!==t?t.factory:xr(e);if(null!==n)return n;if(e instanceof Ge)throw new ft(204,!1);if(e instanceof Function)return function pi(e){if(e.length>0)throw new ft(204,!1);const n=function Ri(e){return e&&(e[K]||e[fe])||null}(e);return null!==n?()=>n.factory(e):()=>new e}(e);throw new ft(204,!1)}function zo(e,t,n){let o;if(Pi(e)){const s=Te(e);return xr(s)||Rs(s)}if(ea(e))o=()=>Te(e.useValue);else if(function ac(e){return!(!e||!e.useFactory)}(e))o=()=>e.useFactory(...as(e.deps||[]));else if(function ta(e){return!(!e||!e.useExisting)}(e))o=()=>Sr(Te(e.useExisting));else{const s=Te(e&&(e.useClass||e.provide));if(!function qr(e){return!!e.deps}(e))return xr(s)||Rs(s);o=()=>new s(...as(e.deps))}return o}function ci(e,t,n=!1){return{factory:e,value:t,multi:n?[]:void 0}}function _s(e,t){for(const n of e)Array.isArray(n)?_s(n,t):n&&Tn(n)?_s(n.\u0275providers,t):t(n)}function po(e,t){e instanceof Wo&&e.assertNotDestroyed();const o=Gr(e),s=dt(void 0);try{return t()}finally{Gr(o),dt(s)}}function Vc(){return void 0!==ri()||null!=function ii(){return Ni}()}function ro(e){if(!Vc())throw new ft(-203,!1)}const Un=0,ht=1,xt=2,Hn=3,lr=4,tr=5,Br=6,io=7,In=8,Kr=9,go=10,Jt=11,ia=12,dc=13,Xo=14,mr=15,ys=16,oa=17,Wr=18,Qo=19,hc=20,qo=21,qi=22,No=23,hn=25,sa=1,oo=7,Yo=9,ur=10;var fc=function(e){return e[e.None=0]="None",e[e.HasTransplantedViews=2]="HasTransplantedViews",e}(fc||{});function Vr(e){return Array.isArray(e)&&"object"==typeof e[sa]}function Nr(e){return Array.isArray(e)&&!0===e[sa]}function pc(e){return!!(4&e.flags)}function Gt(e){return e.componentOffset>-1}function aa(e){return!(1&~e.flags)}function xi(e){return!!e.template}function gc(e){return!!(512&e[xt])}class oe{constructor(t,n,o){this.previousValue=t,this.currentValue=n,this.firstChange=o}isFirstChange(){return this.firstChange}}function He(e,t,n,o){null!==t?t.applyValueToInputSignal(t,o):e[n]=o}function Pe(){return Rt}function Rt(e){return e.type.prototype.ngOnChanges&&(e.setInput=fn),an}function an(){const e=Ns(this),t=e?.current;if(t){const n=e.previous;if(n===hi)e.previous=t;else for(let o in t)n[o]=t[o];e.current=null,this.ngOnChanges(t)}}function fn(e,t,n,o,s){const d=this.declaredInputs[o],p=Ns(e)||function Fa(e,t){return e[Ur]=t}(e,{previous:hi,current:null}),_=p.current||(p.current={}),D=p.previous,O=D[d];_[d]=new oe(O&&O.currentValue,n,D===hi),He(e,t,s,n)}Pe.ngInherit=!0;const Ur="__ngSimpleChanges__";function Ns(e){return e[Ur]||null}const Ar=function(e,t,n){},bl="svg";let Wc=!1;function rr(e){for(;Array.isArray(e);)e=e[Un];return e}function ca(e,t){return rr(t[e])}function Di(e,t){return rr(t[e.index])}function ua(e,t){return e.data[t]}function Os(e,t){return e[t]}function _o(e,t){const n=t[e];return Vr(n)?n:n[Un]}function Dl(e){return!(128&~e[xt])}function ks(e,t){return null==t?null:e[t]}function Sl(e){e[oa]=0}function au(e){1024&e[xt]||(e[xt]|=1024,Dl(e)&&Cc(e))}function cu(e){return!!(9216&e[xt]||e[No]?.dirty)}function lu(e){e[go].changeDetectionScheduler?.notify(1),cu(e)?Cc(e):64&e[xt]&&(function Tl(){return Wc}()?(e[xt]|=1024,Cc(e)):e[go].changeDetectionScheduler?.notify())}function Cc(e){e[go].changeDetectionScheduler?.notify();let t=Es(e);for(;null!==t&&!(8192&t[xt])&&(t[xt]|=8192,Dl(t));)t=Es(t)}function Al(e,t){if(!(256&~e[xt]))throw new ft(911,!1);null===e[qo]&&(e[qo]=[]),e[qo].push(t)}function Es(e){const t=e[Hn];return Nr(t)?t[Hn]:t}const rn={lFrame:wd(null),bindingsEnabled:!0,skipHydrationRootTNode:null};function Qc(){return rn.bindingsEnabled}function da(){return null!==rn.skipHydrationRootTNode}function Ye(){return rn.lFrame.lView}function On(){return rn.lFrame.tView}function Il(e){return rn.lFrame.contextLView=e,e[In]}function xs(e){return rn.lFrame.contextLView=null,e}function yr(){let e=Fs();for(;null!==e&&64===e.type;)e=e.parent;return e}function Fs(){return rn.lFrame.currentTNode}function ha(){const e=rn.lFrame,t=e.currentTNode;return e.isParent?t:t.parent}function Oo(e,t){const n=rn.lFrame;n.currentTNode=e,n.isParent=t}function Ml(){return rn.lFrame.isParent}function Fi(){rn.lFrame.isParent=!1}function Yr(){const e=rn.lFrame;let t=e.bindingRootIndex;
1return-1===t&&(t=e.bindingRootIndex=e.tView.bindingStartIndex),t}function ko(){return rn.lFrame.bindingIndex++}function Po(e){const t=rn.lFrame,n=t.bindingIndex;return t.bindingIndex=t.bindingIndex+e,n}function Ua(e){rn.lFrame.inI18n=e}function $h(e,t){const n=rn.lFrame;n.bindingIndex=n.bindingRootIndex=e,hu(t)}function hu(e){rn.lFrame.currentDirectiveIndex=e}function bc(){return rn.lFrame.currentQueryIndex}function Yc(e){rn.lFrame.currentQueryIndex=e}function Dd(e){const t=e[ht];return 2===t.type?t.declTNode:1===t.type?e[tr]:null}function Sd(e,t,n){if(n&gn.SkipSelf){let s=t,d=e;for(;!(s=s.parent,null!==s||n&gn.Host||(s=Dd(d),null===s||(d=d[Xo],10&s.type))););if(null===s)return!1;t=s,e=d}const o=rn.lFrame=fu();return o.currentTNode=t,o.lView=e,!0}function Zc(e){const t=fu(),n=e[ht];rn.lFrame=t,t.currentTNode=n.firstChild,t.lView=e,t.tView=n,t.contextLView=e,t.bindingIndex=n.bindingStartIndex,t.inI18n=!1}function fu(){const e=rn.lFrame,t=null===e?null:e.child;return null===t?wd(e):t}function wd(e){const t={currentTNode:null,isParent:!0,lView:null,tView:null,selectedIndex:-1,contextLView:null,elementDepthCount:0,currentNamespace:null,currentDirectiveIndex:-1,bindingRootIndex:-1,bindingIndex:-1,currentQueryIndex:0,parent:e,child:null,inI18n:!1};return null!==e&&(e.child=t),t}function Ad(){const e=rn.lFrame;return rn.lFrame=e.parent,e.currentTNode=null,e.lView=null,e}const Id=Ad;function Jc(){const e=Ad();e.isParent=!0,e.tView=null,e.selectedIndex=-1,e.contextLView=null,e.elementDepthCount=0,e.currentDirectiveIndex=-1,e.currentNamespace=null,e.bindingRootIndex=-1,e.bindingIndex=-1,e.currentQueryIndex=0}function Si(){return rn.lFrame.selectedIndex}function Co(e){rn.lFrame.selectedIndex=e}function dr(){const e=rn.lFrame;return ua(e.tView,e.selectedIndex)}function Nl(){rn.lFrame.currentNamespace=bl}function Rd(){!function Kh(){rn.lFrame.currentNamespace=null}()}let pu=!0;function Tc(){return pu}function Eo(e){pu=e}function Va(e,t){for(let n=t.directiveStart,o=t.directiveEnd;n<o;n++){const d=e.data[n].type.prototype,{ngAfterContentInit:p,ngAfterContentChecked:_,ngAfterViewInit:D,ngAfterViewChecked:O,ngOnDestroy:U}=d;p&&(e.contentHooks??=[]).push(-n,p),_&&((e.contentHooks??=[]).push(n,_),(e.contentCheckHooks??=[]).push(n,_)),D&&(e.viewHooks??=[]).push(-n,D),O&&((e.viewHooks??=[]).push(n,O),(e.viewCheckHooks??=[]).push(n,O)),null!=U&&(e.destroyHooks??=[]).push(n,U)}}function Dc(e,t,n){mu(e,t,3,n)}function ja(e,t,n,o){(3&e[xt])===n&&mu(e,t,n,o)}function gu(e,t){let n=e[xt];(3&n)===t&&(n&=16383,n+=1,e[xt]=n)}function mu(e,t,n,o){const d=o??-1,p=t.length-1;let _=0;for(let D=void 0!==o?65535&e[oa]:0;D<p;D++)if("number"==typeof t[D+1]){if(_=t[D],null!=o&&_>=o)break}else t[D]<0&&(e[oa]+=65536),(_<d||-1==d)&&(kl(e,n,t,D),e[oa]=(4294901760&e[oa])+D+2),D++}function Nd(e,t){Ar(4,e,t);const n=se(null);try{t.call(e)}finally{se(n),Ar(5,e,t)}}function kl(e,t,n,o){const s=n[o]<0,d=n[o+1],_=e[s?-n[o]:n[o]];s?e[xt]>>14<e[oa]>>16&&(3&e[xt])===t&&(e[xt]+=16384,Nd(_,d)):Nd(_,d)}const Bs=-1;class Ts{constructor(t,n,o){this.factory=t,this.resolving=!1,this.canSeeViewProviders=n,this.injectImpl=o}}function tl(e){return e!==Bs}function Li(e){return 32767&e}function fa(e,t){let n=function kd(e){return e>>16}(e),o=t;for(;n>0;)o=o[Xo],n--;return o}let Pl=!0;function Us(e){const t=Pl;return Pl=e,t}const yu=255,vu=5;let xl=0;const xo={};function Bi(e,t){const n=Ga(e,t);if(-1!==n)return n;const o=t[ht];o.firstCreatePass&&(e.injectorIndex=t.length,$a(o.data,e),$a(t,null),$a(o.blueprint,null));const s=pa(e,t),d=e.injectorIndex;if(tl(s)){const p=Li(s),_=fa(s,t),D=_[ht].data;for(let O=0;O<8;O++)t[d+O]=_[p+O]|D[p+O]}return t[d+8]=s,d}function $a(e,t){e.push(0,0,0,0,0,0,0,0,t)}function Ga(e,t){return-1===e.injectorIndex||e.parent&&e.parent.injectorIndex===e.injectorIndex||null===t[e.injectorIndex+8]?-1:e.injectorIndex}function pa(e,t){if(e.parent&&-1!==e.parent.injectorIndex)return e.parent.injectorIndex;let n=0,o=null,s=t;for(;null!==s;){if(o=ma(s),null===o)return Bs;if(n++,s=s[Xo],-1!==o.injectorIndex)return o.injectorIndex|n<<16}return Bs}function Fl(e,t,n){!function Pd(e,t,n){let o;"string"==typeof n?o=n.charCodeAt(0)||0:n.hasOwnProperty(Pn)&&(o=n[Pn]),null==o&&(o=n[Pn]=xl++);const s=o&yu;t.data[e+(s>>vu)]|=1<<s}(e,t,n)}function nl(e,t,n){if(n&gn.Optional||void 0!==e)return e;Lo()}function rl(e,t,n,o){if(n&gn.Optional&&void 0===o&&(o=null),!(n&(gn.Self|gn.Host))){const s=e[Kr],d=dt(void 0);try{return s?s.get(t,o,n&gn.Optional):os(t,o,n&gn.Optional)}finally{dt(d)}}return nl(o,0,n)}function Ac(e,t,n,o=gn.Default,s){if(null!==e){if(2048&t[xt]&&!(o&gn.Self)){const p=function Tu(e,t,n,o,s){let d=e,p=t;for(;null!==d&&null!==p&&2048&p[xt]&&!(512&p[xt]);){const _=Hs(d,p,n,o|gn.Self,xo);if(_!==xo)return _;let D=d.parent;if(!D){const O=p[hc];if(O){const U=O.get(n,xo,o);if(U!==xo)return U}D=ma(p),p=p[Xo]}d=D}return s}(e,t,n,o,xo);if(p!==xo)return p}const d=Hs(e,t,n,o,xo);if(d!==xo)return d}return rl(t,n,o,s)}function Hs(e,t,n,o,s){const d=function Eu(e){if("string"==typeof e)return e.charCodeAt(0)||0;const t=e.hasOwnProperty(Pn)?e[Pn]:void 0;return"number"==typeof t?t>=0?t&yu:bu:t}(n);if("function"==typeof d){if(!Sd(t,e,o))return o&gn.Host?nl(s,0,o):rl(t,n,o,s);try{let p;if(p=d(o),null!=p||o&gn.Optional)return p;Lo()}finally{Id()}}else if("number"==typeof d){let p=null,_=Ga(e,t),D=Bs,O=o&gn.Host?t[mr][tr]:null;for((-1===_||o&gn.SkipSelf)&&(D=-1===_?pa(e,t):t[_+8],D!==Bs&&Ka(o,!1)?(p=t[ht],_=Li(D),t=fa(D,t)):_=-1);-1!==_;){const U=t[ht];if(Ui(d,_,U.data)){const X=xd(_,t,n,p,o,O);if(X!==xo)return X}D=t[_+8],D!==Bs&&Ka(o,t[ht].data[_+8]===O)&&Ui(d,_,t)?(p=U,_=Li(D),t=fa(D,t)):_=-1}}return s}function xd(e,t,n,o,s,d){const p=t[ht],_=p.data[e+8],U=Ic(_,p,n,null==o?Gt(_)&&Pl:o!=p&&!!(3&_.type),s&gn.Host&&d===_);return null!==U?Vs(t,p,U,_):xo}function Ic(e,t,n,o,s){const d=e.providerIndexes,p=t.data,_=1048575&d,D=e.directiveStart,U=d>>20,ve=s?_+U:e.directiveEnd;for(let Ie=o?_:_+U;Ie<ve;Ie++){const Fe=p[Ie];
1if(Ie<D&&n===Fe||Ie>=D&&Fe.type===n)return Ie}if(s){const Ie=p[D];if(Ie&&xi(Ie)&&Ie.type===n)return D}return null}function Vs(e,t,n,o){let s=e[n];const d=t.data;if(function zh(e){return e instanceof Ts}(s)){const p=s;p.resolving&&function ws(e,t){throw t&&t.join(" > "),new ft(-200,e)}(function Bt(e){return"function"==typeof e?e.name||e.toString():"object"==typeof e&&null!=e&&"function"==typeof e.type?e.type.name||e.type.toString():zt(e)}(d[n]));const _=Us(p.canSeeViewProviders);p.resolving=!0;const O=p.injectImpl?dt(p.injectImpl):null;Sd(e,o,gn.Default);try{s=e[n]=p.factory(void 0,d,e,o),t.firstCreatePass&&n>=o.directiveStart&&function Wh(e,t,n){const{ngOnChanges:o,ngOnInit:s,ngDoCheck:d}=t.type.prototype;if(o){const p=Rt(t);(n.preOrderHooks??=[]).push(e,p),(n.preOrderCheckHooks??=[]).push(e,p)}s&&(n.preOrderHooks??=[]).push(0-e,s),d&&((n.preOrderHooks??=[]).push(e,d),(n.preOrderCheckHooks??=[]).push(e,d))}(n,d[n],t)}finally{null!==O&&dt(O),Us(_),p.resolving=!1,Id()}}return s}function Ui(e,t,n){return!!(n[t+(e>>vu)]&1<<e)}function Ka(e,t){return!(e&gn.Self||e&gn.Host&&t)}class Zr{constructor(t,n){this._tNode=t,this._lView=n}get(t,n,o){return Ac(this._tNode,this._lView,t,Oi(o),n)}}function bu(){return new Zr(yr(),Ye())}function il(e){return Qt(()=>{const t=e.prototype.constructor,n=t[Qn]||js(t),o=Object.prototype;let s=Object.getPrototypeOf(e.prototype).constructor;for(;s&&s!==o;){const d=s[Qn]||js(s);if(d&&d!==n)return d;s=Object.getPrototypeOf(s)}return d=>new d})}function js(e){return Oe(e)?()=>{const t=js(Te(e));return t&&t()}:xr(e)}function ma(e){const t=e[ht],n=t.type;return 2===n?t.declTNode:1===n?e[tr]:null}function _a(e){return function Cu(e,t){if("class"===t)return e.classes;if("style"===t)return e.styles;const n=e.attrs;if(n){const o=n.length;let s=0;for(;s<o;){const d=n[s];if(L(d))break;if(0===d)s+=2;else if("number"==typeof d)for(s++;s<o&&"string"==typeof n[s];)s++;else{if(d===t)return n[s+1];s+=2}}}return null}(yr(),e)}function Ud(e,t=null,n=null,o){const s=Ul(e,t,n,o);return s.resolveInjectorInitializers(),s}function Ul(e,t=null,n=null,o,s=new Set){const d=[n||Nn,Oa(e)];return o=o||("object"==typeof e?void 0:Wt(e)),new Wo(d,t||ms(),o||null,s)}let ao=(()=>{class e{static#e=this.THROW_IF_NOT_FOUND=vi;static#t=this.NULL=new ai;static create(n,o){if(Array.isArray(n))return Ud({name:""},o,n,"");{const s=n.name??"";return Ud({name:s},n.parent,n.providers,s)}}static#n=this.\u0275prov=Me({token:e,providedIn:"any",factory:()=>Sr(ec)});static#r=this.__NG_ELEMENT_ID__=-1}return e})();function Ru(e){return e.ngOriginalError}class ya{constructor(){this._console=console}handleError(t){const n=this._findOriginalError(t);this._console.error("ERROR",t),n&&this._console.error("ORIGINAL ERROR",n)}_findOriginalError(t){let n=t&&Ru(t);for(;n&&Ru(n);)n=Ru(n);return n||null}}const qh=new Ge("",{providedIn:"root",factory:()=>Xt(ya).handleError.bind(void 0)});let Wa=(()=>{class e{static#e=this.__NG_ELEMENT_ID__=Zh;static#t=this.__NG_ENV_ID__=n=>n}return e})();class Yh extends Wa{constructor(t){super(),this._lView=t}onDestroy(t){return Al(this._lView,t),()=>function zc(e,t){if(null===e[qo])return;const n=e[qo].indexOf(t);-1!==n&&e[qo].splice(n,1)}(this._lView,t)}}function Zh(){return new Yh(Ye())}function ef(){return Rc(yr(),Ye())}function Rc(e,t){return new Nc(Di(e,t))}let Nc=(()=>{class e{constructor(n){this.nativeElement=n}static#e=this.__NG_ELEMENT_ID__=ef}return e})();function Nu(e){return e instanceof Nc?e.nativeElement:e}function Vl(e){return t=>{setTimeout(e,void 0,t)}}const $s=class tf extends ot.B{constructor(t=!1){super(),this.destroyRef=void 0,this.__isAsync=t,Vc()&&(this.destroyRef=Xt(Wa,{optional:!0})??void 0)}emit(t){const n=se(null);try{super.next(t)}finally{se(n)}}subscribe(t,n,o){let s=t,d=n||(()=>null),p=o;if(t&&"object"==typeof t){const D=t;s=D.next?.bind(D),d=D.error?.bind(D),p=D.complete?.bind(D)}this.__isAsync&&(d=Vl(d),s&&(s=Vl(s)),p&&(p=Vl(p)));const _=super.subscribe({next:s,error:d,complete:p});return t instanceof Mt.yU&&t.add(_),_}};function $d(){return this._results[Symbol.iterator]()}class Gd{static#e=Symbol.iterator;get changes(){return this._changes??=new $s}constructor(t=!1){this._emitDistinctChangesOnly=t,this.dirty=!0,this._onDirty=void 0,this._results=[],this._changesDetected=!1,this._changes=void 0,this.length=0,this.first=void 0,this.last=void 0;const n=Gd.prototype;n[Symbol.iterator]||(n[Symbol.iterator]=$d)}get(t){return this._results[t]}map(t){return this._results.map(t)}filter(t){return this._results.filter(t)}find(t){return this._results.find(t)}reduce(t,n){return this._results.reduce(t,n)}
1forEach(t){this._results.forEach(t)}some(t){return this._results.some(t)}toArray(){return this._results.slice()}toString(){return this._results.toString()}reset(t,n){this.dirty=!1;const o=function wr(e){return e.flat(Number.POSITIVE_INFINITY)}(t);(this._changesDetected=!function eo(e,t,n){if(e.length!==t.length)return!1;for(let o=0;o<e.length;o++){let s=e[o],d=t[o];if(n&&(s=n(s),d=n(d)),d!==s)return!1}return!0}(this._results,o,n))&&(this._results=o,this.length=o.length,this.last=o[this.length-1],this.first=o[0])}notifyOnChanges(){void 0!==this._changes&&(this._changesDetected||!this._emitDistinctChangesOnly)&&this._changes.emit(this)}onDirty(t){this._onDirty=t}setDirty(){this.dirty=!0,this._onDirty?.()}destroy(){void 0!==this._changes&&(this._changes.complete(),this._changes.unsubscribe())}}function cl(e){return!(128&~e.flags)}const Ou=new Map;let rf=0;const b="__ngContext__";function r(e,t){Vr(t)?(e[b]=t[Qo],function Gl(e){Ou.set(e[Qo],e)}(t)):e[b]=t}function y(e){return h(e[ia])}function l(e){return h(e[lr])}function h(e){for(;null!==e&&!Nr(e);)e=e[lr];return e}let Ft;function ln(e){Ft=e}function wn(){if(void 0!==Ft)return Ft;if(typeof document<"u")return document;throw new ft(210,!1)}const kn=new Ge("",{providedIn:"root",factory:()=>Ir}),Ir="ng",Dn=new Ge(""),ti=new Ge("",{providedIn:"platform",factory:()=>"unknown"}),ir=new Ge(""),lo=new Ge("",{providedIn:"root",factory:()=>wn().body?.querySelector("[ngCspNonce]")?.getAttribute("ngCspNonce")||null});let Yd=()=>null;function Zd(e,t,n=!1){return Yd(e,t,n)}const Km=new Ge("",{providedIn:"root",factory:()=>!1});let gf,mf;function Uu(e){return function Np(){if(void 0===gf&&(gf=null,Zt.trustedTypes))try{gf=Zt.trustedTypes.createPolicy("angular",{createHTML:e=>e,createScript:e=>e,createScriptURL:e=>e})}catch{}return gf}()?.createHTML(e)||e}function Op(){if(void 0===mf&&(mf=null,Zt.trustedTypes))try{mf=Zt.trustedTypes.createPolicy("angular#unsafe-bypass",{createHTML:e=>e,createScript:e=>e,createScriptURL:e=>e})}catch{}return mf}function zm(e){return Op()?.createHTML(e)||e}function Qm(e){return Op()?.createScriptURL(e)||e}class Xl{constructor(t){this.changingThisBreaksApplicationSecurity=t}toString(){return`SafeValue must use [property]=binding: ${this.changingThisBreaksApplicationSecurity} (see ${En})`}}class nb extends Xl{getTypeName(){return"HTML"}}class rb extends Xl{getTypeName(){return"Style"}}class ib extends Xl{getTypeName(){return"Script"}}class ob extends Xl{getTypeName(){return"URL"}}class sb extends Xl{getTypeName(){return"ResourceURL"}}function Pc(e){return e instanceof Xl?e.changingThisBreaksApplicationSecurity:e}function Hu(e,t){const n=function ab(e){return e instanceof Xl&&e.getTypeName()||null}(e);if(null!=n&&n!==t){if("ResourceURL"===n&&"URL"===t)return!0;throw new Error(`Required a safe ${t}, got a ${n} (see ${En})`)}return n===t}function cb(e){return new nb(e)}function lb(e){return new rb(e)}function ub(e){return new ib(e)}function db(e){return new ob(e)}function hb(e){return new sb(e)}function qm(e){const t=new pb(e);return function gb(){try{return!!(new window.DOMParser).parseFromString(Uu(""),"text/html")}catch{return!1}}()?new fb(t):t}class fb{constructor(t){this.inertDocumentHelper=t}getInertBodyElement(t){t="<body><remove></remove>"+t;try{const n=(new window.DOMParser).parseFromString(Uu(t),"text/html").body;return null===n?this.inertDocumentHelper.getInertBodyElement(t):(n.removeChild(n.firstChild),n)}catch{return null}}}class pb{constructor(t){this.defaultDoc=t,this.inertDocument=this.defaultDoc.implementation.createHTMLDocument("sanitization-inert")}getInertBodyElement(t){const n=this.inertDocument.createElement("template");return n.innerHTML=Uu(t),n}}const mb=/^(?!javascript:)(?:[a-z0-9+.-]+:|[^&:\/?#]*(?:[\/?#]|$))/i;function _f(e){return(e=String(e)).match(mb)?e:"unsafe:"+e}function xc(e){const t={};for(const n of e.split(","))t[n]=!0;return t}function eh(...e){const t={};for(const n of e)for(const o in n)n.hasOwnProperty(o)&&(t[o]=!0);return t}const Ym=xc("area,br,col,hr,img,wbr"),Zm=xc("colgroup,dd,dt,li,p,tbody,td,tfoot,th,thead,tr"),Jm=xc("rp,rt"),kp=eh(Ym,eh(Zm,xc("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")),eh(Jm,xc("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")),eh(Jm,Zm)),Pp=xc("background,cite,href,itemtype,longdesc,poster,src,xlink:href"),e_=eh(Pp,xc("abbr,accesskey,align,alt,autoplay,axis,bgcolor,border,cellpadding,cellspacing,class,clear,color,cols,c
1olspan,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"),xc("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")),_b=xc("script,style,template");class yb{constructor(){this.sanitizedSomething=!1,this.buf=[]}sanitizeChildren(t){let n=t.firstChild,o=!0,s=[];for(;n;)if(n.nodeType===Node.ELEMENT_NODE?o=this.startElement(n):n.nodeType===Node.TEXT_NODE?this.chars(n.nodeValue):this.sanitizedSomething=!0,o&&n.firstChild)s.push(n),n=Eb(n);else for(;n;){n.nodeType===Node.ELEMENT_NODE&&this.endElement(n);let d=Cb(n);if(d){n=d;break}n=s.pop()}return this.buf.join("")}startElement(t){const n=t_(t).toLowerCase();if(!kp.hasOwnProperty(n))return this.sanitizedSomething=!0,!_b.hasOwnProperty(n);this.buf.push("<"),this.buf.push(n);const o=t.attributes;for(let s=0;s<o.length;s++){const d=o.item(s),p=d.name,_=p.toLowerCase();if(!e_.hasOwnProperty(_)){this.sanitizedSomething=!0;continue}let D=d.value;Pp[_]&&(D=_f(D)),this.buf.push(" ",p,'="',r_(D),'"')}return this.buf.push(">"),!0}endElement(t){const n=t_(t).toLowerCase();kp.hasOwnProperty(n)&&!Ym.hasOwnProperty(n)&&(this.buf.push("</"),this.buf.push(n),this.buf.push(">"))}chars(t){this.buf.push(r_(t))}}function Cb(e){const t=e.nextSibling;if(t&&e!==t.previousSibling)throw n_(t);return t}function Eb(e){const t=e.firstChild;if(t&&function vb(e,t){return(e.compareDocumentPosition(t)&Node.DOCUMENT_POSITION_CONTAINED_BY)!==Node.DOCUMENT_POSITION_CONTAINED_BY}(e,t))throw n_(t);return t}function t_(e){const t=e.nodeName;return"string"==typeof t?t:"FORM"}function n_(e){return new Error(`Failed to sanitize html because the element is clobbered: ${e.outerHTML}`)}const bb=/[\uD800-\uDBFF][\uDC00-\uDFFF]/g,Tb=/([^\#-~ |!])/g;function r_(e){return e.replace(/&/g,"&").replace(bb,function(t){return"&#"+(1024*(t.charCodeAt(0)-55296)+(t.charCodeAt(1)-56320)+65536)+";"}).replace(Tb,function(t){return"&#"+t.charCodeAt(0)+";"}).replace(/</g,"<").replace(/>/g,">")}let yf;function i_(e,t){let n=null;try{yf=yf||qm(e);let o=t?String(t):"";n=yf.getInertBodyElement(o);let s=5,d=o;do{if(0===s)throw new Error("Failed to sanitize html because the input is unstable");s--,o=d,d=n.innerHTML,n=yf.getInertBodyElement(o)}while(o!==d);return Uu((new yb).sanitizeChildren(xp(n)||n))}finally{if(n){const o=xp(n)||n;for(;o.firstChild;)o.removeChild(o.firstChild)}}}function xp(e){return"content"in e&&function Db(e){return e.nodeType===Node.ELEMENT_NODE&&"TEMPLATE"===e.nodeName}(e)?e.content:null}var Ql=function(e){return e[e.NONE=0]="NONE",e[e.HTML=1]="HTML",e[e.STYLE=2]="STYLE",e[e.SCRIPT=3]="SCRIPT",e[e.URL=4]="URL",e[e.RESOURCE_URL=5]="RESOURCE_URL",e}(Ql||{});function o_(e){const t=th();return t?zm(t.sanitize(Ql.HTML,e)||""):Hu(e,"HTML")?zm(Pc(e)):i_(wn(),zt(e))}function Fp(e){const t=th();return t?t.sanitize(Ql.URL,e)||"":Hu(e,"URL")?Pc(e):_f(zt(e))}function Lp(e){const t=th();if(t)return Qm(t.sanitize(Ql.RESOURCE_URL,e)||"");if(Hu(e,"ResourceURL"))return Qm(Pc(e));throw new ft(904,!1)}function s_(e,t,n){return function Mb(e,t){return"src"===t&&("embed"===e||"frame"===e||"iframe"===e||"media"===e||"script"===e)||"href"===t&&("base"===e||"link"===e)?Lp:Fp}(t,n)(e)}function th(){const e=Ye();return e&&e[go].sanitizer}const Rb=/^>|^->|<!--|-->|--!>|<!-$/g,Nb=/(<|>)/g,Ob="\u200b$1\u200b";function u_(e){return e.ownerDocument.defaultView}function Ds(e){return e instanceof Function?e():e}var Ef=function(e){return e[e.Important=1]="Important",e[e.DashCase=2]="DashCase",e}(Ef||{});let Vp;function jp(e,t){return Vp(e,t)}
1function ju(e,t,n,o,s){if(null!=o){let d,p=!1;Nr(o)?d=o:Vr(o)&&(p=!0,o=o[Un]);const _=rr(o);0===e&&null!==n?null==s?v_(t,n,_):ql(t,n,_,s||null,!0):1===e&&null!==n?ql(t,n,_,s||null,!0):2===e?function ih(e,t,n){const o=Df(e,t);o&&function qb(e,t,n,o){e.removeChild(t,n,o)}(e,o,t,n)}(t,_,p):3===e&&t.destroyNode(_),null!=d&&function Jb(e,t,n,o,s){const d=n[oo];d!==rr(n)&&ju(t,e,o,d,s);for(let _=ur;_<n.length;_++){const D=n[_];wf(D[ht],D,e,t,o,d)}}(t,e,d,n,s)}}function $p(e,t){return e.createText(t)}function Gp(e,t){return e.createComment(function a_(e){return e.replace(Rb,t=>t.replace(Nb,Ob))}(t))}function bf(e,t,n){return e.createElement(t,n)}function m_(e,t){t[go].changeDetectionScheduler?.notify(1),wf(e,t,t[Jt],2,null,null)}function __(e,t){const n=e[Yo],o=n.indexOf(t);n.splice(o,1)}function nh(e,t){if(e.length<=ur)return;const n=ur+t,o=e[n];if(o){const s=o[ys];null!==s&&s!==e&&__(s,o),t>0&&(e[n-1][lr]=o[lr]);const d=Io(e,ur+t);!function $b(e,t){m_(e,t),t[Un]=null,t[tr]=null}(o[ht],o);const p=d[Wr];null!==p&&p.detachView(d[ht]),o[Hn]=null,o[lr]=null,o[xt]&=-129}return o}function Tf(e,t){if(!(256&t[xt])){const n=t[Jt];n.destroyNode&&wf(e,t,n,3,null,null),function Kb(e){let t=e[ia];if(!t)return Kp(e[ht],e);for(;t;){let n=null;if(Vr(t))n=t[ia];else{const o=t[ur];o&&(n=o)}if(!n){for(;t&&!t[lr]&&t!==e;)Vr(t)&&Kp(t[ht],t),t=t[Hn];null===t&&(t=e),Vr(t)&&Kp(t[ht],t),n=t&&t[lr]}t=n}}(t)}}function Kp(e,t){if(256&t[xt])return;const n=se(null);try{t[xt]&=-129,t[xt]|=256,t[No]&&function et(e){if(st(e),tt(e))for(let t=0;t<e.producerNode.length;t++)F(e.producerNode[t],e.producerIndexOfThis[t]);e.producerNode.length=e.producerLastReadVersion.length=e.producerIndexOfThis.length=0,e.liveConsumerNode&&(e.liveConsumerNode.length=e.liveConsumerIndexOfThis.length=0)}(t[No]),function Qb(e,t){let n;if(null!=e&&null!=(n=e.destroyHooks))for(let o=0;o<n.length;o+=2){const s=t[n[o]];if(!(s instanceof Ts)){const d=n[o+1];if(Array.isArray(d))for(let p=0;p<d.length;p+=2){const _=s[d[p]],D=d[p+1];Ar(4,_,D);try{D.call(_)}finally{Ar(5,_,D)}}else{Ar(4,s,d);try{d.call(s)}finally{Ar(5,s,d)}}}}}(e,t),function Xb(e,t){const n=e.cleanup,o=t[io];if(null!==n)for(let d=0;d<n.length-1;d+=2)if("string"==typeof n[d]){const p=n[d+3];p>=0?o[p]():o[-p].unsubscribe(),d+=2}else n[d].call(o[n[d+1]]);null!==o&&(t[io]=null);const s=t[qo];if(null!==s){t[qo]=null;for(let d=0;d<s.length;d++)(0,s[d])()}}(e,t),1===t[ht].type&&t[Jt].destroy();const o=t[ys];if(null!==o&&Nr(t[Hn])){o!==t[Hn]&&__(o,t);const s=t[Wr];null!==s&&s.detachView(e)}!function af(e){Ou.delete(e[Qo])}(t)}finally{se(n)}}function Wp(e,t,n){return y_(e,t.parent,n)}function y_(e,t,n){let o=t;for(;null!==o&&40&o.type;)o=(t=o).parent;if(null===o)return n[Un];{const{componentOffset:s}=o;if(s>-1){const{encapsulation:d}=e.data[o.directiveStart+s];if(d===bi.None||d===bi.Emulated)return null}return Di(o,n)}}function ql(e,t,n,o,s){e.insertBefore(t,n,o,s)}function v_(e,t,n){e.appendChild(t,n)}function C_(e,t,n,o,s){null!==o?ql(e,t,n,o,s):v_(e,t,n)}function Df(e,t){return e.parentNode(t)}function E_(e,t,n){return T_(e,t,n)}function b_(e,t,n){return 40&e.type?Di(e,n):null}let zp,T_=b_;function D_(e,t){T_=e,zp=t}function Sf(e,t,n,o){const s=Wp(e,o,t),d=t[Jt],_=E_(o.parent||t[tr],o,t);if(null!=s)if(Array.isArray(n))for(let D=0;D<n.length;D++)C_(d,s,n[D],_,!1);else C_(d,s,n,_,!1);void 0!==zp&&zp(d,o,t,n,s)}function rh(e,t){if(null!==t){const n=t.type;if(3&n)return Di(t,e);if(4&n)return Xp(-1,e[t.index]);if(8&n){const o=t.child;if(null!==o)return rh(e,o);{const s=e[t.index];return Nr(s)?Xp(-1,s):rr(s)}}if(32&n)return jp(t,e)()||rr(e[t.index]);{const o=S_(e,t);return null!==o?Array.isArray(o)?o[0]:rh(Es(e[mr]),o):rh(e,t.next)}}return null}function S_(e,t){return null!==t?e[mr][tr].projection[t.projection]:null}function Xp(e,t){const n=ur+e+1;if(n<t.length){const o=t[n],s=o[ht].firstChild;if(null!==s)return rh(o,s)}return t[oo]}function Qp(e,t,n,o,s,d,p){for(;null!=n;){const _=o[n.index],D=n.type;if(p&&0===t&&(_&&r(rr(_),o),n.flags|=2),32&~n.flags)if(8&D)Qp(e,t,n.child,o,s,d,!1),ju(t,e,s,_,d);else if(32&D){const O=jp(n,o);let U;for(;U=O();)ju(t,e,s,U,d);ju(t,e,s,_,d)}else 16&D?A_(e,t,o,n,s,d):ju(t,e,s,_,d);n=p?n.projectionNext:n.next}}function wf(e,t,n,o,s,d){Qp(n,o,e.firstChild,t,s,d,!1)}function A_(e,t,n,o,s,d){const p=n[mr],D=p[tr].projection[o.projection];if(Array.isArray(D))for(let O=0;O<D.length;O++)ju(t,e,s,D[O],d);else{let O=D;const U=p[Hn];cl(o)&&(O.flags|=128),Qp(e,t,O,U,s,d,!0)}}function I_(e,t,n){""===n?e.removeAttribute(t,"class"):e.setAttribute(t,"class",n)}function M_(e,t,n){const{mergedAttrs:o,classes:s,styles:d}=n;null!==o&&fs(e,t,o),null!==s&&I_(e,t,s),null!==d&&function tT(e,t,n){e.setAttribute(t,"style",n)}(e,t,d)}const Mn={};function R_(e=1){N_(On(),Ye(),Si()+e,!1)}function N_(e,t,n,o){if(!o)if(3&~t[xt]){const d=e.preOrderHooks;null!==d&&ja(t,d,0,n)}else{const d=e.preOrderCheckHooks;null!==d&&Dc(t,d,n)}Co(n)}function $u(e,t=gn.Default){const n=Ye();return null===n?Sr(e,t):Ac(yr(),n,Te(e),t)}function O_(){throw new Error("invalid")}function k_(e,t,n,o,s,d){const p=se(null);try{let _=null;s&Mo.SignalBased&&(_=t[o][ge]),null!==_&&void 0!==_.transformFn&&(d=_.transformFn(d)),s&Mo.HasDecoratorInputTransform&&(d=e.inputTransforms[o].call(t,d)),null!==e.setInput?e.setInput(t,_,d,n,o):He(t,_,o,d)}finally{se(p)}}function Af(e,t,n,o,s,d,p,_,D,O,U){const X=t.blueprint.slice();return X[Un]=s,X[xt]=204|o,(null!==O||e&&2048&e[xt])&&(X[xt]|=2048),Sl(X),X[Hn]=X[Xo]=e,X[In]=n,X[go]=p||e&&e[go],X[Jt]=_||e&&e[Jt],X[Kr]=D||e&&e[Kr]||null,X[tr]=d,X[Qo]=function sf(){return rf++}(),X[Br]=U,X[hc]=O,X[mr]=2==t.type?e[mr]:X,X}function Gu(e,t,n,o,s){let d=e.data[t];if(null===d)d=qp(e,t,n,o,s),function Ba(){return rn.lFrame.inI18n}()&&(d.flags|=32);else if(64&d.type){d.type=n,d.value=o,d.attrs=s;const p=ha();d.injectorIndex=null===p?-1:p.injectorIndex}return Oo(d,!0),d}function qp(e,t,n,o,s){const d=Fs(),p=Ml(),D=e.data[t]=function lT(e,t,n,o,s,d){let p=t?t.injectorIndex:-1,_=0;return da()&&(_|=128),{type:n,index:o,insertBeforeIndex:null,injectorIndex:p,directiveStart:-1,directiveEnd:-1,directiveStylingLast:-1,componentOff
1set:-1,propertyBindings:null,flags:_,providerIndexes:0,value:s,attrs:d,mergedAttrs:null,localNames:null,initialInputs:void 0,inputs:null,outputs:null,tView:null,next:null,prev:null,projectionNext:null,child:null,parent:t,projection:null,styles:null,stylesWithoutHost:null,residualStyles:void 0,classes:null,classesWithoutHost:null,residualClasses:void 0,classBindings:0,styleBindings:0}}(0,p?d:d&&d.parent,n,t,o,s);return null===e.firstChild&&(e.firstChild=D),null!==d&&(p?null==d.child&&null!==D.parent&&(d.child=D):null===d.next&&(d.next=D,D.prev=d)),D}function oh(e,t,n,o){if(0===n)return-1;const s=t.length;for(let d=0;d<n;d++)t.push(o),e.blueprint.push(o),e.data.push(null);return s}function P_(e,t,n,o,s){const d=Si(),p=2&o;try{Co(-1),p&&t.length>hn&&N_(e,t,hn,!1),Ar(p?2:0,s),n(o,s)}finally{Co(d),Ar(p?3:1,s)}}function Yp(e,t,n){if(pc(t)){const o=se(null);try{const d=t.directiveEnd;for(let p=t.directiveStart;p<d;p++){const _=e.data[p];_.contentQueries&&_.contentQueries(1,n[p],p)}}finally{se(o)}}}function Zp(e,t,n){Qc()&&(function mT(e,t,n,o){const s=n.directiveStart,d=n.directiveEnd;Gt(n)&&function TT(e,t,n){const o=Di(t,e),s=x_(n);let p=16;n.signals?p=4096:n.onPush&&(p=64);const _=If(e,Af(e,s,null,p,o,t,null,e[go].rendererFactory.createRenderer(o,n),null,null,null));e[t.index]=_}(t,n,e.data[s+n.componentOffset]),e.firstCreatePass||Bi(n,t),r(o,t);const p=n.initialInputs;for(let _=s;_<d;_++){const D=e.data[_],O=Vs(t,e,_,n);r(O,t),null!==p&&DT(0,_-s,O,D,0,p),xi(D)&&(_o(n.index,t)[In]=Vs(t,e,_,n))}}(e,t,n,Di(n,t)),!(64&~n.flags)&&H_(e,t,n))}function Jp(e,t,n=Di){const o=t.localNames;if(null!==o){let s=t.index+1;for(let d=0;d<o.length;d+=2){const p=o[d+1],_=-1===p?n(t,e):e[p];e[s++]=_}}}function x_(e){const t=e.tView;return null===t||t.incompleteFirstPass?e.tView=eg(1,null,e.template,e.decls,e.vars,e.directiveDefs,e.pipeDefs,e.viewQuery,e.schemas,e.consts,e.id):t}function eg(e,t,n,o,s,d,p,_,D,O,U){const X=hn+o,ve=X+s,Ie=function rT(e,t){const n=[];for(let o=0;o<t;o++)n.push(o<e?null:Mn);return n}(X,ve),Fe="function"==typeof O?O():O;return Ie[ht]={type:e,blueprint:Ie,template:n,queries:null,viewQuery:_,declTNode:t,data:Ie.slice().fill(null,X),bindingStartIndex:X,expandoStartIndex:ve,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 d?d():d,pipeRegistry:"function"==typeof p?p():p,firstChild:null,schemas:D,consts:Fe,incompleteFirstPass:!1,ssrId:U}}let F_=()=>null;function L_(e,t,n,o,s){for(let d in t){if(!t.hasOwnProperty(d))continue;const p=t[d];if(void 0===p)continue;o??={};let _,D=Mo.None;Array.isArray(p)?(_=p[0],D=p[1]):_=p;let O=d;if(null!==s){if(!s.hasOwnProperty(d))continue;O=s[d]}0===e?B_(o,n,O,_,D):B_(o,n,O,_)}return o}function B_(e,t,n,o,s){let d;e.hasOwnProperty(n)?(d=e[n]).push(t,o):d=e[n]=[t,o],void 0!==s&&d.push(s)}function es(e,t,n,o,s,d,p,_){const D=Di(t,n);let U,O=t.inputs;!_&&null!=O&&(U=O[o])?(og(e,n,U,o,s),Gt(t)&&function hT(e,t){const n=_o(t,e);16&n[xt]||(n[xt]|=64)}(n,t.index)):3&t.type&&(o=function dT(e){return"class"===e?"className":"for"===e?"htmlFor":"formaction"===e?"formAction":"innerHtml"===e?"innerHTML":"readonly"===e?"readOnly":"tabindex"===e?"tabIndex":e}(o),s=null!=p?p(s,t.value||"",o):s,d.setProperty(D,o,s))}function tg(e,t,n,o){if(Qc()){const s=null===o?null:{"":-1},d=function yT(e,t){const n=e.directiveRegistry;let o=null,s=null;if(n)for(let d=0;d<n.length;d++){const p=n[d];if(nc(t,p.selectors,!1))if(o||(o=[]),xi(p))if(null!==p.findHostDirectiveDefs){const _=[];s=s||new Map,p.findHostDirectiveDefs(p,_,s),o.unshift(..._,p),ng(e,t,_.length)}else o.unshift(p),ng(e,t,0);else s=s||new Map,p.findHostDirectiveDefs?.(p,o,s),o.push(p)}return null===o?null:[o,s]}(e,n);let p,_;null===d?p=_=null:[p,_]=d,null!==p&&U_(e,t,n,p,s,_),s&&function vT(e,t,n){if(t){const o=e.localNames=[];for(let s=0;s<t.length;s+=2){const d=n[t[s+1]];if(null==d)throw new ft(-301,!1);o.push(t[s],d)}}}(n,o,s)}n.mergedAttrs=M(n.mergedAttrs,n.attrs)}function U_(e,t,n,o,s,d){for(let O=0;O<o.length;O++)Fl(Bi(n,t),e,o[O].type);!function ET(e,t,n){e.flags|=1,e.directiveStart=t,e.directiveEnd=t
1+n,e.providerIndexes=t}(n,e.data.length,o.length);for(let O=0;O<o.length;O++){const U=o[O];U.providersResolver&&U.providersResolver(U)}let p=!1,_=!1,D=oh(e,t,o.length,null);for(let O=0;O<o.length;O++){const U=o[O];n.mergedAttrs=M(n.mergedAttrs,U.hostAttrs),bT(e,n,t,D,U),CT(D,U,s),null!==U.contentQueries&&(n.flags|=4),(null!==U.hostBindings||null!==U.hostAttrs||0!==U.hostVars)&&(n.flags|=64);const X=U.type.prototype;!p&&(X.ngOnChanges||X.ngOnInit||X.ngDoCheck)&&((e.preOrderHooks??=[]).push(n.index),p=!0),!_&&(X.ngOnChanges||X.ngDoCheck)&&((e.preOrderCheckHooks??=[]).push(n.index),_=!0),D++}!function uT(e,t,n){const s=t.directiveEnd,d=e.data,p=t.attrs,_=[];let D=null,O=null;for(let U=t.directiveStart;U<s;U++){const X=d[U],ve=n?n.get(X):null,Fe=ve?ve.outputs:null;D=L_(0,X.inputs,U,D,ve?ve.inputs:null),O=L_(1,X.outputs,U,O,Fe);const Ze=null===D||null===p||mn(t)?null:ST(D,U,p);_.push(Ze)}null!==D&&(D.hasOwnProperty("class")&&(t.flags|=8),D.hasOwnProperty("style")&&(t.flags|=16)),t.initialInputs=_,t.inputs=D,t.outputs=O}(e,n,d)}function H_(e,t,n){const o=n.directiveStart,s=n.directiveEnd,d=n.index,p=function Gh(){return rn.lFrame.currentDirectiveIndex}();try{Co(d);for(let _=o;_<s;_++){const D=e.data[_],O=t[_];hu(_),(null!==D.hostBindings||0!==D.hostVars||null!==D.hostAttrs)&&_T(D,O)}}finally{Co(-1),hu(p)}}function _T(e,t){null!==e.hostBindings&&e.hostBindings(1,t)}function ng(e,t,n){t.componentOffset=n,(e.components??=[]).push(t.index)}function CT(e,t,n){if(n){if(t.exportAs)for(let o=0;o<t.exportAs.length;o++)n[t.exportAs[o]]=e;xi(t)&&(n[""]=e)}}function bT(e,t,n,o,s){e.data[o]=s;const d=s.factory||(s.factory=xr(s.type)),p=new Ts(d,xi(s),$u);e.blueprint[o]=p,n[o]=p,function pT(e,t,n,o,s){const d=s.hostBindings;if(d){let p=e.hostBindingOpCodes;null===p&&(p=e.hostBindingOpCodes=[]);const _=~t.index;(function gT(e){let t=e.length;for(;t>0;){const n=e[--t];if("number"==typeof n&&n<0)return n}return 0})(p)!=_&&p.push(_),p.push(n,o,d)}}(e,t,o,oh(e,n,s.hostVars,Mn),s)}function Qa(e,t,n,o,s,d){const p=Di(e,t);!function rg(e,t,n,o,s,d,p){if(null==d)e.removeAttribute(t,s,n);else{const _=null==p?zt(d):p(d,o||"",s);e.setAttribute(t,s,_,n)}}(t[Jt],p,d,e.value,n,o,s)}function DT(e,t,n,o,s,d){const p=d[t];if(null!==p)for(let _=0;_<p.length;)k_(o,n,p[_++],p[_++],p[_++],p[_++])}function ST(e,t,n){let o=null,s=0;for(;s<n.length;){const d=n[s];if(0!==d)if(5!==d){if("number"==typeof d)break;if(e.hasOwnProperty(d)){null===o&&(o=[]);const p=e[d];for(let _=0;_<p.length;_+=3)if(p[_]===t){o.push(d,p[_+1],p[_+2],n[s+1]);break}}s+=2}else s+=2;else s+=4}return o}function V_(e,t,n,o){return[e,!0,0,t,null,o,null,n,null,null]}function j_(e,t){const n=e.contentQueries;if(null!==n){const o=se(null);try{for(let s=0;s<n.length;s+=2){const p=n[s+1];if(-1!==p){const _=e.data[p];Yc(n[s]),_.contentQueries(2,t[p],p)}}}finally{se(o)}}}
1function If(e,t){return e[ia]?e[dc][lr]=t:e[ia]=t,e[dc]=t,t}function ig(e,t,n){Yc(0);const o=se(null);try{t(e,n)}finally{se(o)}}function $_(e){return e[io]||(e[io]=[])}function G_(e){return e.cleanup||(e.cleanup=[])}function Mf(e,t){const n=e[Kr],o=n?n.get(ya,null):null;o&&o.handleError(t)}function og(e,t,n,o,s){for(let d=0;d<n.length;){const p=n[d++],_=n[d++],D=n[d++];k_(e.data[p],t[p],o,_,D,s)}}function Fc(e,t,n){const o=ca(t,e);!function g_(e,t,n){e.setValue(t,n)}(e[Jt],o,n)}function wT(e,t){const n=_o(t,e),o=n[ht];!function AT(e,t){for(let n=t.length;n<e.blueprint.length;n++)t.push(e.blueprint[n])}(o,n);const s=n[Un];null!==s&&null===n[Br]&&(n[Br]=Zd(s,n[Kr])),sg(o,n,n[In])}function sg(e,t,n){Zc(t);try{const o=e.viewQuery;null!==o&&ig(1,o,n);const s=e.template;null!==s&&P_(e,t,s,1,n),e.firstCreatePass&&(e.firstCreatePass=!1),t[Wr]?.finishViewCreation(e),e.staticContentQueries&&j_(e,t),e.staticViewQueries&&ig(2,e.viewQuery,n);const d=e.components;null!==d&&function IT(e,t){for(let n=0;n<t.length;n++)wT(e,t[n])}(t,d)}catch(o){throw e.firstCreatePass&&(e.incompleteFirstPass=!0,e.firstCreatePass=!1),o}finally{t[xt]&=-5,Jc()}}function sh(e,t,n,o){const s=se(null);try{const d=t.tView,D=Af(e,d,n,4096&e[xt]?4096:16,null,t,null,null,o?.injector??null,o?.embeddedViewInjector??null,o?.dehydratedView??null);D[ys]=e[t.index];const U=e[Wr];return null!==U&&(D[Wr]=U.createEmbeddedView(d)),sg(d,D,n),D}finally{se(s)}}function W_(e,t){const n=ur+t;if(n<e.length)return e[n]}function Ku(e,t){return!t||null===t.firstChild||cl(e)}function ah(e,t,n,o=!0){const s=t[ht];if(function Wb(e,t,n,o){const s=ur+o,d=n.length;o>0&&(n[s-1][lr]=t),o<d-ur?(t[lr]=n[s],ls(n,ur+o,t)):(n.push(t),t[lr]=null),t[Hn]=n;const p=t[ys];null!==p&&n!==p&&function zb(e,t){const n=e[Yo];t[mr]!==t[Hn][Hn][mr]&&(e[xt]|=fc.HasTransplantedViews),null===n?e[Yo]=[t]:n.push(t)}(p,t);const _=t[Wr];null!==_&&_.insertView(e),lu(t),t[xt]|=128}(s,t,e,n),o){const p=Xp(n,e),_=t[Jt],D=Df(_,e[oo]);null!==D&&function Gb(e,t,n,o,s,d){o[Un]=s,o[tr]=t,wf(e,o,n,1,s,d)}(s,e[tr],_,t,D,p)}const d=t[Br];null!==d&&null!==d.firstChild&&(d.firstChild=null)}function ag(e,t){const n=nh(e,t);return void 0!==n&&Tf(n[ht],n),n}function ch(e,t,n,o,s=!1){for(;null!==n;){const d=t[n.index];null!==d&&o.push(rr(d)),Nr(d)&&z_(d,o);const p=n.type;if(8&p)ch(e,t,n.child,o);else if(32&p){const _=jp(n,t);let D;for(;D=_();)o.push(D)}else if(16&p){const _=S_(t,n);if(Array.isArray(_))o.push(..._);else{const D=Es(t[mr]);ch(D[ht],D,_,o,!0)}}n=s?n.projectionNext:n.next}return o}function z_(e,t){for(let n=ur;n<e.length;n++){const o=e[n],s=o[ht].firstChild;null!==s&&ch(o[ht],o,s,t)}e[oo]!==e[Un]&&t.push(e[oo])}let X_=[];const OT={version:0,lastCleanEpoch:0,dirty:!1,producerNode:void 0,producerLastReadVersion:void 0,producerIndexOfThis:void 0,nextProducerIndex:0,liveConsumerNode:void 0,liveConsumerIndexOfThis:void 0,consumerAllowSignalWrites:!1,consumerIsAlwaysLive:!1,producerMustRecompute:()=>!1,producerRecomputeValue:()=>{},consumerMarkedDirty:()=>{},consumerOnSignalRead:()=>{},consumerIsAlwaysLive:!0,consumerMarkedDirty:e=>{Cc(e.lView)},consumerOnSignalRead(){this.lView[No]=this}},Q_=100;function Rf(e,t=!0,n=0){const o=e[go],s=o.rendererFactory;s.begin?.();try{!function kT(e,t){cg(e,t);let n=0;for(;cu(e);){if(n===Q_)throw new ft(103,!1);n++,cg(e,1)}}(e,n)}catch(p){throw t&&Mf(e,p),p}finally{s.end?.(),o.inlineEffectRunner?.flush()}}function PT(e,t,n,o){const s=t[xt];if(!(256&~s))return;t[go].inlineEffectRunner?.flush(),Zc(t);let p=null,_=null;(function xT(e){return 2!==e.type})(e)&&(_=function MT(e){return e[No]??function RT(e){const t=X_.pop()??Object.create(OT);return t.lView=e,t}(e)}(t),p=function gt(e){return e&&(e.nextProducerIndex=0),se(e)}(_));try{Sl(t),function qc(e){return rn.lFrame.bindingIndex=e}(e.bindingStartIndex),null!==n&&P_(e,t,n,2,o);const D=!(3&~s);if(D){const X=e.preOrderCheckHooks;null!==X&&Dc(t,X,null)}else{const X=e.preOrderHooks;null!==X&&ja(t,X,0,null),gu(t,0)}if(function FT(e){for(let t=y(e);null!==t;t=l(t)){if(!(t[xt]&fc.HasTransplantedViews))continue;const n=t[Yo];for(let o=0;o<n.length;o++){au(n[o])}}}(t),q_(t,0),null!==e.contentQueries&&j_(e,t),D){const X=e.contentCheckHooks;null!==X&&Dc(t,X)}else{const X=e.contentHooks;null!==X&&ja(t,X,1),gu(t,1)}!function nT(e,t){const n=e.hostBindingOpCodes;if(null!==n)try{for(let o=0;o<n.length;o++){const s=n[o];if(s<0)Co(~s);else{const d=s,p=n[++o],_=n[++o];$h(p,d),_(2,t[d])}}}finally{Co(-1)}}(e,t);const O=e.components;null!==O&&Z_(t,O,0);const U=e.viewQuery;if(null!==U&&ig(2,U,o),D){const X=e.viewCheckHooks;null!==X&&Dc(t,X)}else{const X=e.viewHooks;null!==X&&ja(t,X,2),gu(t,2)}if(!0===e.firstUpdatePass&&(e.firstUpdatePass=!1),t[qi]){for(const X of t[qi])X();t[qi]=null}t[xt]&=-73}catch(D){throw Cc(t),D}finally{null!==_&&(function wt(e,t){if(se(t),e&&void 0!==e.producerNode&&void 0!==e.producerIndexOfThis&&void 0!==e.producerLastReadVersion){if(tt(e))for(let n=e.nextProducerIndex;n<e.producerNode.length;n++)F(e.producerNode[n],e.producerIndexOfThis[n]);for(;e.producerNode.length>e.nextProducerIndex;)e.producerNode.pop(),e.producerLastReadVersion.pop(),e.producerIndexOfThis.pop()}}(_,p),function NT(e){e.lView[No]!==e&&(e.lView=null,X_.push(e))}(_)),Jc()}}function q_(e,t){for(let n=y(e);null!==n;n=l(n))for(let o=ur;o<n.length;
1o++)Y_(n[o],t)}function LT(e,t,n){Y_(_o(t,e),n)}function Y_(e,t){Dl(e)&&cg(e,t)}function cg(e,t){const o=e[ht],s=e[xt],d=e[No];let p=!!(0===t&&16&s);if(p||=!!(64&s&&0===t),p||=!!(1024&s),p||=!(!d?.dirty||!Ut(d)),d&&(d.dirty=!1),e[xt]&=-9217,p)PT(o,e,o.template,e[In]);else if(8192&s){q_(e,1);const _=o.components;null!==_&&Z_(e,_,1)}}function Z_(e,t,n){for(let o=0;o<t.length;o++)LT(e,t[o],n)}function lh(e){for(e[go].changeDetectionScheduler?.notify();e;){e[xt]|=64;const t=Es(e);if(gc(e)&&!t)return e;e=t}return null}class uh{get rootNodes(){const t=this._lView,n=t[ht];return ch(n,t,n.firstChild,[])}constructor(t,n,o=!0){this._lView=t,this._cdRefInjectingView=n,this.notifyErrorHandler=o,this._appRef=null,this._attachedToViewContainer=!1}get context(){return this._lView[In]}set context(t){this._lView[In]=t}get destroyed(){return!(256&~this._lView[xt])}destroy(){if(this._appRef)this._appRef.detachView(this);else if(this._attachedToViewContainer){const t=this._lView[Hn];if(Nr(t)){const n=t[8],o=n?n.indexOf(this):-1;o>-1&&(nh(t,o),Io(n,o))}this._attachedToViewContainer=!1}Tf(this._lView[ht],this._lView)}onDestroy(t){Al(this._lView,t)}markForCheck(){lh(this._cdRefInjectingView||this._lView)}detach(){this._lView[xt]&=-129}reattach(){lu(this._lView),this._lView[xt]|=128}detectChanges(){this._lView[xt]|=1024,Rf(this._lView,this.notifyErrorHandler)}checkNoChanges(){}attachToViewContainerRef(){if(this._appRef)throw new ft(902,!1);this._attachedToViewContainer=!0}detachFromAppRef(){this._appRef=null,m_(this._lView[ht],this._lView)}attachToAppRef(t){if(this._attachedToViewContainer)throw new ft(902,!1);this._appRef=t,lu(this._lView)}}let dh=(()=>{class e{static#e=this.__NG_ELEMENT_ID__=HT}return e})();const BT=dh,UT=class extends BT{constructor(t,n,o){super(),this._declarationLView=t,this._declarationTContainer=n,this.elementRef=o}get ssrId(){return this._declarationTContainer.tView?.ssrId||null}createEmbeddedView(t,n){return this.createEmbeddedViewImpl(t,n)}createEmbeddedViewImpl(t,n,o){const s=sh(this._declarationLView,this._declarationTContainer,t,{embeddedViewInjector:n,dehydratedView:o});return new uh(s)}};function HT(){return Nf(yr(),Ye())}function Nf(e,t){return 4&e.type?new UT(t,e,Rc(e,t)):null}let iy=()=>null;function Wu(e,t){return iy(e,t)}class Ff{}class uD{}class oy{}class hD{resolveComponentFactory(t){throw function dD(e){const t=Error(`No component factory found for ${Wt(e)}.`);return t.ngComponent=e,t}(t)}}let Lf=(()=>{class e{static#e=this.NULL=new hD}return e})();class ay{}let fD=(()=>{class e{constructor(){this.destroyNode=null}static#e=this.__NG_ELEMENT_ID__=()=>function pD(){const e=Ye(),n=_o(yr().index,e);return(Vr(n)?n:e)[Jt]}()}return e})(),gD=(()=>{class e{static#e=this.\u0275prov=Me({token:e,providedIn:"root",factory:()=>null})}return e})();const pg={},cy=new Set;function qa(e){cy.has(e)||(cy.add(e),performance?.mark?.("mark_feature_usage",{detail:{feature:e}}))}function ly(...e){}class Ai{constructor({enableLongStackTrace:t=!1,shouldCoalesceEventChangeDetection:n=!1,shouldCoalesceRunChangeDetection:o=!1}){if(this.hasPendingMacrotasks=!1,this.hasPendingMicrotasks=!1,this.isStable=!0,this.onUnstable=new $s(!1),this.onMicrotaskEmpty=new $s(!1),this.onStable=new $s(!1),this.onError=new $s(!1),typeof Zone>"u")throw new ft(908,!1);Zone.assertZonePatched();const s=this;s._nesting=0,s._outer=s._inner=Zone.current,Zone.TaskTrackingZoneSpec&&(s._inner=s._inner.fork(new Zone.TaskTrackingZoneSpec)),t&&Zone.longStackTraceZoneSpec&&(s._inner=s._inner.fork(Zone.longStackTraceZoneSpec)),s.shouldCoalesceEventChangeDetection=!o&&n,s.shouldCoalesceRunChangeDetection=o,s.lastRequestAnimationFrameId=-1,s.nativeRequestAnimationFrame=function mD(){const e="function"==typeof Zt.requestAnimationFrame;let t=Zt[e?"requestAnimationFrame":"setTimeout"],n=Zt[e?"cancelAnimationFrame":"clearTimeout"];if(typeof Zone<"u"&&t&&n){const o=t[Zone.__symbol__("OriginalDelegate")];o&&(t=o);const s=n[Zone.__symbol__("OriginalDelegate")];s&&(n=s)}return{nativeRequestAnimationFrame:t,nativeCancelAnimationFrame:n}}().nativeRequestAnimationFrame,function vD(e){const t=()=>{!function yD(e){e.isCheckStableRunning||-1!==e.lastRequestAnimationFrameId||(e.lastRequestAnimationFrameId=e.nativeRequestAnimationFrame.call(Zt,()=>{e.fakeTopEventTask||(e.fakeTopEventTask=Zone.root.scheduleEventTask("fakeTopEventTask",()=>{e.lastRequestAnimationFrameId=-1,mg(e),e.isCheckStableRunning=!0,gg(e),e.isCheckStableRunning=!1},void 0,()=>{},()=>{})),e.fakeTopEventTask.invoke()}),mg(e))}(e)};e._inner=e._inner.fork({name:"angular",properties:{isAngularZone:!0},onInvokeTask:(n,o,s,d,p,_)=>{if(function CD(e){return!(!Array.isArray(e)||1!==e.length)&&!0===e[0].data?.__ignore_ng_zone__}(_))return n.invokeTask(s,d,p,_);try{return uy(e),n.invokeTask(s,d,p,_)}finally{(e.shouldCoalesceEventChangeDetection&&"eventTask"===d.type||e.shouldCoalesceRunChangeDetection)&&t(),dy(e)}},onInvoke:(n,o,s,d,p,_,D)=>{try{return uy(e),n.invoke(s,d,p,_,D)}
1finally{e.shouldCoalesceRunChangeDetection&&t(),dy(e)}},onHasTask:(n,o,s,d)=>{n.hasTask(s,d),o===s&&("microTask"==d.change?(e._hasPendingMicrotasks=d.microTask,mg(e),gg(e)):"macroTask"==d.change&&(e.hasPendingMacrotasks=d.macroTask))},onHandleError:(n,o,s,d)=>(n.handleError(s,d),e.runOutsideAngular(()=>e.onError.emit(d)),!1)})}(s)}static isInAngularZone(){return typeof Zone<"u"&&!0===Zone.current.get("isAngularZone")}static assertInAngularZone(){if(!Ai.isInAngularZone())throw new ft(909,!1)}static assertNotInAngularZone(){if(Ai.isInAngularZone())throw new ft(909,!1)}run(t,n,o){return this._inner.run(t,n,o)}runTask(t,n,o,s){const d=this._inner,p=d.scheduleEventTask("NgZoneEvent: "+s,t,_D,ly,ly);try{return d.runTask(p,n,o)}finally{d.cancelTask(p)}}runGuarded(t,n,o){return this._inner.runGuarded(t,n,o)}runOutsideAngular(t){return this._outer.run(t)}}const _D={};function gg(e){if(0==e._nesting&&!e.hasPendingMicrotasks&&!e.isStable)try{e._nesting++,e.onMicrotaskEmpty.emit(null)}finally{if(e._nesting--,!e.hasPendingMicrotasks)try{e.runOutsideAngular(()=>e.onStable.emit(null))}finally{e.isStable=!0}}}function mg(e){e.hasPendingMicrotasks=!!(e._hasPendingMicrotasks||(e.shouldCoalesceEventChangeDetection||e.shouldCoalesceRunChangeDetection)&&-1!==e.lastRequestAnimationFrameId)}function uy(e){e._nesting++,e.isStable&&(e.isStable=!1,e.onUnstable.emit(null))}function dy(e){e._nesting--,gg(e)}class hy{constructor(){this.hasPendingMicrotasks=!1,this.hasPendingMacrotasks=!1,this.isStable=!0,this.onUnstable=new $s,this.onMicrotaskEmpty=new $s,this.onStable=new $s,this.onError=new $s}run(t,n,o){return t.apply(n,o)}runGuarded(t,n,o){return t.apply(n,o)}runOutsideAngular(t){return t()}runTask(t,n,o,s){return t.apply(n,o)}}var Yl=function(e){return e[e.EarlyRead=0]="EarlyRead",e[e.Write=1]="Write",e[e.MixedReadWrite=2]="MixedReadWrite",e[e.Read=3]="Read",e}(Yl||{});const fy={destroy(){}};function py(e,t){!t&&ro();const n=t?.injector??Xt(ao);if(!function Ea(e){return"browser"===(e??Xt(ao)).get(ti)}(n))return fy;qa("NgAfterNextRender");const o=n.get(mh),s=o.handler??=new my,d=t?.phase??Yl.MixedReadWrite,p=()=>{s.unregister(D),_()},_=n.get(Wa).onDestroy(p),D=po(n,()=>new gy(d,()=>{p(),e()}));return s.register(D),{destroy:p}}class gy{constructor(t,n){this.phase=t,this.callbackFn=n,this.zone=Xt(Ai),this.errorHandler=Xt(ya,{optional:!0}),Xt(Ff,{optional:!0})?.notify(1)}invoke(){try{this.zone.runOutsideAngular(this.callbackFn)}catch(t){this.errorHandler?.handleError(t)}}}class my{constructor(){this.executingCallbacks=!1,this.buckets={[Yl.EarlyRead]:new Set,[Yl.Write]:new Set,[Yl.MixedReadWrite]:new Set,[Yl.Read]:new Set},this.deferredCallbacks=new Set}register(t){(this.executingCallbacks?this.deferredCallbacks:this.buckets[t.phase]).add(t)}unregister(t){this.buckets[t.phase].delete(t),this.deferredCallbacks.delete(t)}execute(){this.executingCallbacks=!0;for(const t of Object.values(this.buckets))for(const n of t)n.invoke();this.executingCallbacks=!1;for(const t of this.deferredCallbacks)this.buckets[t.phase].add(t);this.deferredCallbacks.clear()}destroy(){for(const t of Object.values(this.buckets))t.clear();this.deferredCallbacks.clear()}}let mh=(()=>{class e{constructor(){this.handler=null,this.internalCallbacks=[]}execute(){this.executeInternalCallbacks(),this.handler?.execute()}executeInternalCallbacks(){const n=[...this.internalCallbacks];this.internalCallbacks.length=0;for(const o of n)o()}ngOnDestroy(){this.handler?.destroy(),this.handler=null,this.internalCallbacks.length=0}static#e=this.\u0275prov=Me({token:e,providedIn:"root",factory:()=>new e})}return e})();function dl(e){return!!Rr(e)}function Uf(e,t,n){let o=n?e.styles:null,s=n?e.classes:null,d=0;if(null!==t)for(let p=0;p<t.length;p++){const _=t[p];"number"==typeof _?d=_:1==d?s=jr(s,_):2==d&&(o=jr(o,_+": "+t[++p]+";"))}n?e.styles=o:e.stylesWithoutHost=o,n?e.classes=s:e.classesWithoutHost=s}class vy extends Lf{constructor(t){super(),this.ngModule=t}resolveComponentFactory(t){const n=_n(t);return new vh(n,this.ngModule)}}function Cy(e){const t=[];for(const n in e){if(!e.hasOwnProperty(n))continue;const o=e[n];void 0!==o&&t.push({propName:Array.isArray(o)?o[0]:o,templateName:n})}return t}class Hf{constructor(t,n){this.injector=t,this.parentInjector=n}get(t,n,o){o=Oi(o);const s=this.injector.get(t,pg,o);return s!==pg||n===pg?s:this.parentInjector.get(t,n,o)}}class vh extends oy{get inputs(){const t=this.componentDef,n=t.inputTransforms,o=Cy(t.inputs);if(null!==n)for(const s of o)n.hasOwnProperty(s.propName)&&(s.transform=n[s.propName]);return o}get outputs(){return Cy(this.componentDef.outputs)}constructor(t,n){super(),this.componentDef=t,this.ngModule=n,this.componentType=t.type,this.selector=function Is(e){return e.map(Ma).join(",")}(t.selectors),this.ngContentSelectors=t.ngContentSelectors?t.ngContentSelectors:[],this.isBoundToModule=!!n}create(t,n,o,s){const d=se(null);try{let p=(s=s||this.ngModule)instanceof Lr?s:s?.injector;p&&null!==this.componentDef.getStandaloneInjector&&(p=this.componentDef.getStandaloneInjector(p)||p);const _=p?new Hf(t,p):t,D=_.get(ay,null);if(null===D)throw new ft(407,!1);
1const O=_.get(gD,null),ve={rendererFactory:D,sanitizer:O,inlineEffectRunner:null,afterRenderEventManager:_.get(mh,null),changeDetectionScheduler:_.get(Ff,null)},Ie=D.createRenderer(null,this.componentDef),Fe=this.componentDef.selectors[0][0]||"div",Ze=o?function iT(e,t,n,o){const d=o.get(Km,!1)||n===bi.ShadowDom,p=e.selectRootElement(t,d);return function oT(e){F_(e)}(p),p}(Ie,o,this.componentDef.encapsulation,_):bf(Ie,Fe,function SD(e){const t=e.toLowerCase();return"svg"===t?bl:"math"===t?"math":null}(Fe));let yt=512;this.componentDef.signals?yt|=4096:this.componentDef.onPush||(yt|=16);let Nt=null;null!==Ze&&(Nt=Zd(Ze,_,!0));const at=eg(0,null,null,1,0,null,null,null,null,null,null),un=Af(null,at,null,yt,null,null,ve,Ie,_,null,Nt);let or,Or;Zc(un);try{const ji=this.componentDef;let ns,yd=null;ji.findHostDirectiveDefs?(ns=[],yd=new Map,ji.findHostDirectiveDefs(ji,ns,yd),ns.push(ji)):ns=[ji];const Y0=function AD(e,t){const n=e[ht],o=hn;return e[o]=t,Gu(n,o,2,"#host",null)}(un,Ze),kR=function ID(e,t,n,o,s,d,p){const _=s[ht];!function MD(e,t,n,o){for(const s of e)t.mergedAttrs=M(t.mergedAttrs,s.hostAttrs);null!==t.mergedAttrs&&(Uf(t,t.mergedAttrs,!0),null!==n&&M_(o,n,t))}(o,e,t,p);let D=null;null!==t&&(D=Zd(t,s[Kr]));const O=d.rendererFactory.createRenderer(t,n);let U=16;n.signals?U=4096:n.onPush&&(U=64);const X=Af(s,x_(n),null,U,s[e.index],e,d,O,null,null,D);return _.firstCreatePass&&ng(_,e,o.length-1),If(s,X),s[e.index]=X}(Y0,Ze,ji,ns,un,ve,Ie);Or=ua(at,hn),Ze&&function ND(e,t,n,o){if(o)fs(e,n,["ng-version","17.3.12"]);else{const{attrs:s,classes:d}=function _l(e){const t=[],n=[];let o=1,s=2;for(;o<e.length;){let d=e[o];if("string"==typeof d)2===s?""!==d&&t.push(d,e[++o]):8===s&&n.push(d);else{if(!Fr(s))break;s=d}o++}return{attrs:t,classes:n}}(t.selectors[0]);s&&fs(e,n,s),d&&d.length>0&&I_(e,n,d.join(" "))}}(Ie,ji,Ze,o),void 0!==n&&function OD(e,t,n){const o=e.projection=[];for(let s=0;s<t.length;s++){const d=n[s];o.push(null!=d?Array.from(d):null)}}(Or,this.ngContentSelectors,n),or=function RD(e,t,n,o,s,d){const p=yr(),_=s[ht],D=Di(p,s);U_(_,s,p,n,null,o);for(let U=0;U<n.length;U++)r(Vs(s,_,p.directiveStart+U,p),s);H_(_,s,p),D&&r(D,s);const O=Vs(s,_,p.directiveStart+p.componentOffset,p);if(e[In]=s[In]=O,null!==d)for(const U of d)U(O,t);return Yp(_,p,s),O}(kR,ji,ns,yd,un,[kD]),sg(at,un,null)}finally{Jc()}return new wD(this.componentType,or,Rc(Or,un),un,Or)}finally{se(d)}}}class wD extends uD{constructor(t,n,o,s,d){super(),this.location=o,this._rootLView=s,this._tNode=d,this.previousInputValues=null,this.instance=n,this.hostView=this.changeDetectorRef=new uh(s,void 0,!1),this.componentType=t}setInput(t,n){const o=this._tNode.inputs;let s;if(null!==o&&(s=o[t])){if(this.previousInputValues??=new Map,this.previousInputValues.has(t)&&Object.is(this.previousInputValues.get(t),n))return;const d=this._rootLView;og(d[ht],d,s,t,n),this.previousInputValues.set(t,n),lh(_o(this._tNode.index,d))}}get injector(){return new Zr(this._tNode,this._rootLView)}destroy(){this.hostView.destroy()}onDestroy(t){this.hostView.onDestroy(t)}}function kD(){const e=yr();Va(Ye()[ht],e)}let Vf=(()=>{class e{static#e=this.__NG_ELEMENT_ID__=PD}return e})();function PD(){return Ty(yr(),Ye())}const xD=Vf,Ey=class extends xD{constructor(t,n,o){super(),this._lContainer=t,this._hostTNode=n,this._hostLView=o}get element(){return Rc(this._hostTNode,this._hostLView)}get injector(){return new Zr(this._hostTNode,this._hostLView)}get parentInjector(){const t=pa(this._hostTNode,this._hostLView);if(tl(t)){const n=fa(t,this._hostLView),o=Li(t);return new Zr(n[ht].data[o+8],n)}return new Zr(null,this._hostLView)}clear(){for(;this.length>0;)this.remove(this.length-1)}get(t){const n=by(this._lContainer);return null!==n&&n[t]||null}get length(){return this._lContainer.length-ur}createEmbeddedView(t,n,o){let s,d;"number"==typeof o?s=o:null!=o&&(s=o.index,d=o.injector);const p=Wu(this._lContainer,t.ssrId),_=t.createEmbeddedViewImpl(n||{},d,p);return this.insertImpl(_,s,Ku(this._hostTNode,p)),_}createComponent(t,n,o,s,d){const p=t&&!function Je(e){return"function"==typeof e}(t);let _;if(p)_=n;else{const Fe=n||{};_=Fe.index,o=Fe.injector,s=Fe.projectableNodes,d=Fe.environmentInjector||Fe.ngModuleRef}const D=p?t:new vh(_n(t)),O=o||this.parentInjector;if(!d&&null==D.ngModule){const Ze=(p?O:this.parentInjector).get(Lr,null);Ze&&(d=Ze)}const U=_n(D.componentType??{}),X=Wu(this._lContainer,U?.id??null),Ie=D.create(O,s,X?.firstChild??null,d);return this.insertImpl(Ie.hostView,_,Ku(this._hostTNode,X)),Ie}insert(t,n){return this.insertImpl(t,n,!0)}insertImpl(t,n,o){const s=t._lView;if(function Td(e){return Nr(e[Hn])}(s)){const _=this.indexOf(t);if(-1!==_)this.detach(_);else{const D=s[Hn],O=new Ey(D,D[tr],D[Hn]);O.detach(O.indexOf(t))}}const d=this._adjustIndex(n),p=this._lContainer;return ah(p,s,d,o),t.attachToViewContainerRef(),ls(Cg(p),d,t),t}move(t,n){return this.insert(t,n)}indexOf(t){const n=by(this._lContainer);return null!==n?n.indexOf(t):-1}remove(t){const n=this._adjustIndex(t,-1),o=nh(this._lContainer,n);o&&(Io(Cg(this._lContainer),n),Tf(o[ht],o))}detach(t){const n=this._adjustIndex(t,-1),o=nh(this._lContainer,n);return o&&null!=Io(Cg(this._lContainer),n)?new uh(o):null}_adjustIndex(t,n=0){return t??this.length+n}};function by(e){return e[8]}function Cg(e){return e[8]||(e[8]=[])}function Ty(e,t){let n;const o=t[e.index];return Nr(o)?n=o:(n=V_(o,t,null,e),t[e.index]=n,If(t,n)),Dy(n,t,e,o),new Ey(n,e,t)}let Dy=function wy(e,t,n,o){if(e[oo])return;let s;s=8&n.type?rr(o):function FD(e,t){const n=e[Jt],o=n.createComment(""),s=Di(t,e);return ql(n,Df(n,s),o,function Yb(e,t){return e.nextSibling(t)}(n,s),!1),o}(t,n),e[oo]=s},Eg=()=>!1;class bg{constructor(t){this.queryList=t,this.matches=null}clone(){return new bg(this.queryList)}setDirty(){this.queryList.setDirty()}}class Tg{constructor(t=[]){this.queries=t}createEmbeddedView(t){const n=t.queries;if(null!==n){const o=null!==t.contentQueries?t.contentQueries[0]:n.length,s=[];for(let d=0;d<o;d++){const p=n.getByIndex(d);s.push(this.queries[p.indexInDeclarationView].clone())}return new Tg(s)}return null}insertView(t){this.dirtyQueriesWithMatches(t)}detachView(t){this.dirtyQueriesWithMatches(t)}finishViewCreation(t){this.dirtyQueriesWithMatches(t)}dirtyQueriesWithMatches(t){for(let n=0;n<this.queries.length;n++)null!==Ig(t,n).matches&&this.queries[n].setDirty()}}class Ay{constructor(t,n,o=null){this.flags=n,this.read=o,this.predicate="string"==typeof t?function GD(e){return e.split(",").map(t=>t.trim())}(t):t}}class Dg{constructor(t=[]){this.queries=t}elementStart(t,n){for(let o=0;o<this.queries.length;o++)this.queries[o].elementStart(t,n)}elementEnd(t){for(let n=0;n<this.queries.length;n++)this.queries[n].elementEnd(t)}embeddedTView(t){let n=null;for(let o=0;o<this.length;o++){const s=null!==n?n.length:0,d=this.getByIndex(o).embeddedTView(t,s);d&&(d.indexInDeclarationView=o,null!==n?n.push(d):n=[d])}return null!==n?new Dg(n):null}template(t,n){for(let o=0;o<this.queries.length;o++)this.queries[o].template(t,n)}getByIndex(t){return this.queries[t]}get length(){return this.queries.length}track(t){this.queries.push(t)}}class Sg{constructor(t,n=-1){this.metadata=t,this.matches=null,this.indexInDeclarationView=-1,this.crossesNgTemplate=!1,this._appliesToNextNode=!0,this._declarationNodeIndex=n}elementStart(t,n){this.isApplyingToNode(n)&&this.matchTNode(t,n)}elementEnd(t){this._declarationNodeIndex===t.index&&(this._appliesToNextNode=!1)}template(t,n){this.elementStart(t,n)}embeddedTView(t,n){return this.isApplyingToNode(t)?(this.crossesNgTemplate=!0,this.addMatch(-t.index,n),new Sg(this.metadata)):null}isApplyingToNode(t){if(this._appliesToNextNode&&1&~this.metadata.flags){const n=this._declarationNodeIndex;let o=t.parent;for(;null!==o&&8&o.type&&o.index!==n;)o=o.parent;return n===(null!==o?o.index:-1)}return this._appliesToNextNode}
1matchTNode(t,n){const o=this.metadata.predicate;if(Array.isArray(o))for(let s=0;s<o.length;s++){const d=o[s];this.matchTNodeWithReadOption(t,n,HD(n,d)),this.matchTNodeWithReadOption(t,n,Ic(n,t,d,!1,!1))}else o===dh?4&n.type&&this.matchTNodeWithReadOption(t,n,-1):this.matchTNodeWithReadOption(t,n,Ic(n,t,o,!1,!1))}matchTNodeWithReadOption(t,n,o){if(null!==o){const s=this.metadata.read;if(null!==s)if(s===Nc||s===Vf||s===dh&&4&n.type)this.addMatch(n.index,-2);else{const d=Ic(n,t,s,!1,!1);null!==d&&this.addMatch(n.index,d)}else this.addMatch(n.index,o)}}addMatch(t,n){null===this.matches?this.matches=[t,n]:this.matches.push(t,n)}}function HD(e,t){const n=e.localNames;if(null!==n)for(let o=0;o<n.length;o+=2)if(n[o]===t)return n[o+1];return null}function jD(e,t,n,o){return-1===n?function VD(e,t){return 11&e.type?Rc(e,t):4&e.type?Nf(e,t):null}(t,e):-2===n?function $D(e,t,n){return n===Nc?Rc(t,e):n===dh?Nf(t,e):n===Vf?Ty(t,e):void 0}(e,t,o):Vs(e,e[ht],n,t)}function Iy(e,t,n,o){const s=t[Wr].queries[o];if(null===s.matches){const d=e.data,p=n.matches,_=[];for(let D=0;null!==p&&D<p.length;D+=2){const O=p[D];_.push(O<0?null:jD(t,d[O],p[D+1],n.metadata.read))}s.matches=_}return s.matches}function wg(e,t,n,o){const s=e.queries.getByIndex(n),d=s.matches;if(null!==d){const p=Iy(e,t,s,n);for(let _=0;_<d.length;_+=2){const D=d[_];if(D>0)o.push(p[_/2]);else{const O=d[_+1],U=t[-D];for(let X=ur;X<U.length;X++){const ve=U[X];ve[ys]===ve[Hn]&&wg(ve[ht],ve,O,o)}if(null!==U[Yo]){const X=U[Yo];for(let ve=0;ve<X.length;ve++){const Ie=X[ve];wg(Ie[ht],Ie,O,o)}}}}}return o}function My(e,t,n){const o=new Gd(!(4&~n));return function cT(e,t,n,o){const s=$_(t);s.push(n),e.firstCreatePass&&G_(e).push(o,s.length-1)}(e,t,o,o.destroy),(t[Wr]??=new Tg).queries.push(new bg(o))-1}function Oy(e,t,n){null===e.queries&&(e.queries=new Dg),e.queries.track(new Sg(t,n))}function Ig(e,t){return e.queries.getByIndex(t)}function ky(e,t){const n=e[ht],o=Ig(n,t);return o.crossesNgTemplate?wg(n,e,t,[]):Iy(n,e,o,t)}function Fy(e){return function Py(e){return"function"==typeof e&&void 0!==e[ge]}(e)&&"function"==typeof e.set}function Rg(e){let t=function zy(e){return Object.getPrototypeOf(e.prototype).constructor}(e.type),n=!0;const o=[e];for(;t;){let s;if(xi(e))s=t.\u0275cmp||t.\u0275dir;else{if(t.\u0275cmp)throw new ft(903,!1);s=t.\u0275dir}if(s){if(n){o.push(s);const p=e;p.inputs=$f(e.inputs),p.inputTransforms=$f(e.inputTransforms),p.declaredInputs=$f(e.declaredInputs),p.outputs=$f(e.outputs);const _=s.hostBindings;_&&sS(e,_);const D=s.viewQuery,O=s.contentQueries;if(D&&iS(e,D),O&&oS(e,O),nS(e,s),Kt(e.outputs,s.outputs),xi(s)&&s.data.animation){const U=e.data;U.animation=(U.animation||[]).concat(s.data.animation)}}const d=s.features;if(d)for(let p=0;p<d.length;p++){const _=d[p];_&&_.ngInherit&&_(e),_===Rg&&(n=!1)}}t=Object.getPrototypeOf(t)}!function rS(e){let t=0,n=null;for(let o=e.length-1;o>=0;o--){const s=e[o];s.hostVars=t+=s.hostVars,s.hostAttrs=M(s.hostAttrs,n=M(n,s.hostAttrs))}}(o)}function nS(e,t){for(const n in t.inputs){if(!t.inputs.hasOwnProperty(n)||e.inputs.hasOwnProperty(n))continue;const o=t.inputs[n];if(void 0!==o&&(e.inputs[n]=o,e.declaredInputs[n]=t.declaredInputs[n],null!==t.inputTransforms)){const s=Array.isArray(o)?o[0]:o;if(!t.inputTransforms.hasOwnProperty(s))continue;e.inputTransforms??={},e.inputTransforms[s]=t.inputTransforms[s]}}}function $f(e){return e===hi?{}:e===Nn?[]:e}function iS(e,t){const n=e.viewQuery;e.viewQuery=n?(o,s)=>{t(o,s),n(o,s)}:t}function oS(e,t){const n=e.contentQueries;e.contentQueries=n?(o,s,d)=>{t(o,s,d),n(o,s,d)}:t}function sS(e,t){const n=e.hostBindings;e.hostBindings=n?(o,s)=>{t(o,s),n(o,s)}:t}function Xy(e){const t=n=>{const o=(Array.isArray(e)?e:e()).map(s=>"function"==typeof s?{directive:Te(s),inputs:hi,outputs:hi}:{directive:Te(s.directive),inputs:qy(s.inputs),outputs:qy(s.outputs)});null===n.hostDirectives?(n.findHostDirectiveDefs=Qy,n.hostDirectives=o):n.hostDirectives.unshift(...o)};return t.ngInherit=!0,t}function Qy(e,t,n){if(null!==e.hostDirectives)for(const o of e.hostDirectives){const s=Tr(o.directive);uS(s.declaredInputs,o.inputs),Qy(s,t,n),n.set(s,o),t.push(s)}}function qy(e){if(void 0===e||0===e.length)return hi;const t={};for(let n=0;n<e.length;n+=2)t[e[n]]=e[n+1];return t}function uS(e,t){for(const n in t)t.hasOwnProperty(n)&&(e[t[n]]=e[n])}function Zy(e){const t=e.inputConfig,n={};for(const o in t)if(t.hasOwnProperty(o)){const s=t[o];Array.isArray(s)&&s[3]&&(n[o]=s[3])}e.inputTransforms=n}class Zl{}class Jy{}function dS(e,t){return new Ng(e,t??null,[])}class Ng extends Zl{constructor(t,n,o){super(),this._parent=n,this._bootstrapComponents=[],this.destroyCbs=[],this.componentFactoryResolver=new vy(this);const s=Rr(t);this._bootstrapComponents=Ds(s.bootstrap),this._r3Injector=Ul(t,n,[{provide:Zl,useValue:this},{provide:Lf,useValue:this.componentFactoryResolver},...o],Wt(t),new Set(["environment"])),this._r3Injector.resolveInjectorInitializer
1s(),this.instance=this._r3Injector.get(t)}get injector(){return this._r3Injector}destroy(){const t=this._r3Injector;!t.destroyed&&t.destroy(),this.destroyCbs.forEach(n=>n()),this.destroyCbs=null}onDestroy(t){this.destroyCbs.push(t)}}class Og extends Jy{constructor(t){super(),this.moduleType=t}create(t){return new Ng(this.moduleType,t,[])}}class ev extends Zl{constructor(t){super(),this.componentFactoryResolver=new vy(this),this.instance=null;const n=new Wo([...t.providers,{provide:Zl,useValue:this},{provide:Lf,useValue:this.componentFactoryResolver}],t.parent||ms(),t.debugName,new Set(["environment"]));this.injector=n,t.runEnvironmentInitializers&&n.resolveInjectorInitializers()}destroy(){this.injector.destroy()}onDestroy(t){this.injector.onDestroy(t)}}function kg(e,t,n=null){return new ev({providers:e,parent:t,debugName:n,runEnvironmentInitializers:!0}).injector}let Xu=(()=>{class e{constructor(){this.taskId=0,this.pendingTasks=new Set,this.hasPendingTasks=new dn.t(!1)}get _hasPendingTasks(){return this.hasPendingTasks.value}add(){this._hasPendingTasks||this.hasPendingTasks.next(!0);const n=this.taskId++;return this.pendingTasks.add(n),n}remove(n){this.pendingTasks.delete(n),0===this.pendingTasks.size&&this._hasPendingTasks&&this.hasPendingTasks.next(!1)}ngOnDestroy(){this.pendingTasks.clear(),this._hasPendingTasks&&this.hasPendingTasks.next(!1)}static#e=this.\u0275fac=function(o){return new(o||e)};static#t=this.\u0275prov=Me({token:e,factory:e.\u0275fac,providedIn:"root"})}return e})();function Kf(e){return!!Pg(e)&&(Array.isArray(e)||!(e instanceof Map)&&Symbol.iterator in e)}function Pg(e){return null!==e&&("function"==typeof e||"object"==typeof e)}function Ya(e,t,n){return e[t]=n}function gi(e,t,n){return!Object.is(e[t],n)&&(e[t]=n,!0)}function Jl(e,t,n,o){const s=gi(e,t,n);return gi(e,t+1,o)||s}function Qu(e,t,n,o,s,d,p,_){const D=Ye(),O=On(),U=e+hn,X=O.firstCreatePass?function yS(e,t,n,o,s,d,p,_,D){const O=t.consts,U=Gu(t,e,4,p||null,ks(O,_));tg(t,n,U,ks(O,D)),Va(t,U);const X=U.tView=eg(2,U,o,s,d,t.directiveRegistry,t.pipeRegistry,null,t.schemas,O,null);return null!==t.queries&&(t.queries.template(t,U),X.queries=t.queries.embeddedTView(U)),U}(U,O,D,t,n,o,s,d,p):O.data[U];Oo(X,!1);const ve=tv(O,D,X,e);Tc()&&Sf(O,D,ve,X),r(ve,D);const Ie=V_(ve,D,ve,X);return D[U]=Ie,If(D,Ie),function Sy(e,t,n){return Eg(e,t,n)}(Ie,X,D),aa(X)&&Zp(O,D,X),null!=p&&Jp(D,X,_),Qu}let tv=function nv(e,t,n,o){return Eo(!0),t[Jt].createComment("")};function Gg(e,t,n,o){const s=Ye();return gi(s,ko(),t)&&(On(),Qa(dr(),s,e,t,n,o)),Gg}function rd(e,t,n,o){return gi(e,ko(),n)?t+zt(n)+o:Mn}function id(e,t,n,o,s,d){const _=Jl(e,function vo(){return rn.lFrame.bindingIndex}(),n,s);return Po(2),_?t+zt(n)+o+zt(s)+d:Mn}function Zf(e,t){return e<<17|t<<2}function pl(e){return e>>17&32767}function Kg(e){return 2|e}function tu(e){return(131068&e)>>2}function Wg(e,t){return-131069&e|t<<2}function zg(e){return 1|e}function kv(e,t,n,o){const s=e[n+1],d=null===t;let p=o?pl(s):tu(s),_=!1;for(;0!==p&&(!1===_||d);){const O=e[p+1];iw(e[p],t)&&(_=!0,e[p+1]=o?zg(O):Kg(O)),p=o?pl(O):tu(O)}_&&(e[n+1]=o?Kg(s):zg(s))}function iw(e,t){return null===e||null==t||(Array.isArray(e)?e[1]:e)===t||!(!Array.isArray(e)||"string"!=typeof t)&&to(e,t)>=0}const Hi={textEnd:0,key:0,keyEnd:0,value:0,valueEnd:0};function Pv(e){return e.substring(Hi.key,Hi.keyEnd)}function xv(e,t){const n=Hi.textEnd;return n===t?-1:(t=Hi.keyEnd=function cw(e,t,n){for(;t<n&&e.charCodeAt(t)>32;)t++;return t}(e,Hi.key=t,n),dd(e,t,n))}function dd(e,t,n){for(;t<n&&e.charCodeAt(t)<=32;)t++;return t}function Xg(e,t,n){const o=Ye();return gi(o,ko(),t)&&es(On(),dr(),o,e,t,o[Jt],n,!1),Xg}function Qg(e,t,n,o,s){const p=s?"class":"style";og(e,n,t.inputs[p],p,o)}function qg(e,t,n){return ba(e,t,n,!1),qg}function Yg(e,t){return ba(e,t,null,!0),Yg}function Hv(e){!function Ta(e,t,n,o){const s=On(),d=Po(2);s.firstUpdatePass&&jv(s,null,d,o);const p=Ye();if(n!==Mn&&gi(p,d,n)){const _=s.data[Si()];if(Wv(_,o)&&!Vv(s,d)){let D=o?_.classesWithoutHost:_.stylesWithoutHost;null!==D&&(n=jr(D,n||"")),Qg(s,_,p,n,o)}else!function yw(e,t,n,o,s,d,p,_){s===Mn&&(s=Nn);let D=0,O=0,U=0<s.length?s[0]:null,X=0<d.length?d[0]:null;for(;null!==U||null!==X;){const ve=D<s.length?s[D+1]:void 0,Ie=O<d.length?d[O+1]:void 0;let Ze,Fe=null;U===X?(D+=2,O+=2,ve!==Ie&&(Fe=X,Ze=Ie)):null===X||null!==U&&U<X?(D+=2,Fe=U):(O+=2,Fe=X,Ze=Ie),null!==Fe&&Gv(e,t,n,o,Fe,Ze,p,_),U=D<s.length?s[D]:null,X=O<d.length?d[O]:null}}
1(s,_,p,p[Jt],p[d+1],p[d+1]=function mw(e,t,n){if(null==n||""===n)return Nn;const o=[],s=Pc(n);if(Array.isArray(s))for(let d=0;d<s.length;d++)e(o,s[d],!0);else if("object"==typeof s)for(const d in s)s.hasOwnProperty(d)&&e(o,d,s[d]);else"string"==typeof s&&t(o,s);return o}(e,t,n),o,d)}}(_w,Ja,e,!0)}function Ja(e,t){for(let n=function sw(e){return function Lv(e){Hi.key=0,Hi.keyEnd=0,Hi.value=0,Hi.valueEnd=0,Hi.textEnd=e.length}(e),xv(e,dd(e,0,Hi.textEnd))}(t);n>=0;n=xv(t,n))si(e,Pv(t),!0)}function ba(e,t,n,o){const s=Ye(),d=On(),p=Po(2);d.firstUpdatePass&&jv(d,e,p,o),t!==Mn&&gi(s,p,t)&&Gv(d,d.data[Si()],s,s[Jt],e,s[p+1]=function vw(e,t){return null==e||""===e||("string"==typeof t?e+=t:"object"==typeof e&&(e=Wt(Pc(e)))),e}(t,n),o,p)}function Vv(e,t){return t>=e.expandoStartIndex}function jv(e,t,n,o){const s=e.data;if(null===s[n+1]){const d=s[Si()],p=Vv(e,n);Wv(d,o)&&null===t&&!p&&(t=!1),t=function hw(e,t,n,o){const s=function Ec(e){const t=rn.lFrame.currentDirectiveIndex;return-1===t?null:e[t]}(e);let d=o?t.residualClasses:t.residualStyles;if(null===s)0===(o?t.classBindings:t.styleBindings)&&(n=wh(n=Zg(null,e,t,n,o),t.attrs,o),d=null);else{const p=t.directiveStylingLast;if(-1===p||e[p]!==s)if(n=Zg(s,e,t,n,o),null===d){let D=function fw(e,t,n){const o=n?t.classBindings:t.styleBindings;if(0!==tu(o))return e[pl(o)]}(e,t,o);void 0!==D&&Array.isArray(D)&&(D=Zg(null,e,t,D[1],o),D=wh(D,t.attrs,o),function pw(e,t,n,o){e[pl(n?t.classBindings:t.styleBindings)]=o}(e,t,o,D))}else d=function gw(e,t,n){let o;const s=t.directiveEnd;for(let d=1+t.directiveStylingLast;d<s;d++)o=wh(o,e[d].hostAttrs,n);return wh(o,t.attrs,n)}(e,t,o)}return void 0!==d&&(o?t.residualClasses=d:t.residualStyles=d),n}(s,d,t,o),function nw(e,t,n,o,s,d){let p=d?t.classBindings:t.styleBindings,_=pl(p),D=tu(p);e[o]=n;let U,O=!1;if(Array.isArray(n)?(U=n[1],(null===U||to(n,U)>0)&&(O=!0)):U=n,s)if(0!==D){const ve=pl(e[_+1]);e[o+1]=Zf(ve,_),0!==ve&&(e[ve+1]=Wg(e[ve+1],o)),e[_+1]=function ew(e,t){return 131071&e|t<<17}(e[_+1],o)}else e[o+1]=Zf(_,0),0!==_&&(e[_+1]=Wg(e[_+1],o)),_=o;else e[o+1]=Zf(D,0),0===_?_=o:e[D+1]=Wg(e[D+1],o),D=o;O&&(e[o+1]=Kg(e[o+1])),kv(e,U,o,!0),kv(e,U,o,!1),function rw(e,t,n,o,s){const d=s?e.residualClasses:e.residualStyles;null!=d&&"string"==typeof t&&to(d,t)>=0&&(n[o+1]=zg(n[o+1]))}(t,U,e,o,d),p=Zf(_,D),d?t.classBindings=p:t.styleBindings=p}(s,d,t,n,p,o)}}function Zg(e,t,n,o,s){let d=null;const p=n.directiveEnd;let _=n.directiveStylingLast;for(-1===_?_=n.directiveStart:_++;_<p&&(d=t[_],o=wh(o,d.hostAttrs,s),d!==e);)_++;return null!==e&&(n.directiveStylingLast=_),o}function wh(e,t,n){const o=n?1:2;let s=-1;if(null!==t)for(let d=0;d<t.length;d++){const p=t[d];"number"==typeof p?s=p:s===o&&(Array.isArray(e)||(e=void 0===e?[]:["",e]),si(e,p,!!n||t[++d]))}return void 0===e?null:e}function _w(e,t,n){const o=String(t);""!==o&&!o.includes(" ")&&si(e,o,n)}function Gv(e,t,n,o,s,d,p,_){if(!(3&t.type))return;const D=e.data,O=D[_+1],U=function tw(e){return!(1&~e)}(O)?Kv(D,t,n,s,tu(O),p):void 0;Jf(U)||(Jf(d)||function JS(e){return!(2&~e)}(O)&&(d=Kv(D,null,n,s,_,p)),function eT(e,t,n,o,s){if(t)s?e.addClass(n,o):e.removeClass(n,o);else{let d=-1===o.indexOf("-")?void 0:Ef.DashCase;null==s?e.removeStyle(n,o,d):("string"==typeof s&&s.endsWith("!important")&&(s=s.slice(0,-10),d|=Ef.Important),e.setStyle(n,o,s,d))}}(o,p,ca(Si(),n),s,d))}function Kv(e,t,n,o,s,d){const p=null===t;let _;for(;s>0;){const D=e[s],O=Array.isArray(D),U=O?D[1]:D,X=null===U;let ve=n[s+1];ve===Mn&&(ve=X?Nn:void 0);let Ie=X?jo(ve,o):U===o?ve:void 0;if(O&&!Jf(Ie)&&(Ie=jo(D,o)),Jf(Ie)&&(_=Ie,p))return _;const Fe=e[s+1];s=p?pl(Fe):tu(Fe)}if(null!==t){let D=d?t.residualClasses:t.residualStyles;null!=D&&(_=jo(D,o))}return _}function Jf(e){return void 0!==e}function Wv(e,t){return!!(e.flags&(t?8:16))}class Rw{destroy(t){}updateValue(t,n){}swap(t,n){const o=Math.min(t,n),s=Math.max(t,n),d=this.detach(s);if(s-o>1){const p=this.detach(o);this.attach(o,d),this.attach(s,p)}else this.attach(o,d)}move(t,n){this.attach(n,this.detach(t))}}function Jg(e,t,n,o,s){return e===n&&Object.is(t,o)?1:Object.is(s(e,t),s(n,o))?-1:0}
1function em(e,t,n,o){return!(void 0===t||!t.has(o)||(e.attach(n,t.get(o)),t.delete(o),0))}function zv(e,t,n,o,s){if(em(e,t,o,n(o,s)))e.updateValue(o,s);else{const d=e.create(o,s);e.attach(o,d)}}function Xv(e,t,n,o){const s=new Set;for(let d=t;d<=n;d++)s.add(o(d,e.at(d)));return s}class Qv{constructor(){this.kvMap=new Map,this._vMap=void 0}has(t){return this.kvMap.has(t)}delete(t){if(!this.has(t))return!1;const n=this.kvMap.get(t);return void 0!==this._vMap&&this._vMap.has(n)?(this.kvMap.set(t,this._vMap.get(n)),this._vMap.delete(n)):this.kvMap.delete(t),!0}get(t){return this.kvMap.get(t)}set(t,n){if(this.kvMap.has(t)){let o=this.kvMap.get(t);void 0===this._vMap&&(this._vMap=new Map);const s=this._vMap;for(;s.has(o);)o=s.get(o);s.set(o,n)}else this.kvMap.set(t,n)}forEach(t){for(let[n,o]of this.kvMap)if(t(o,n),void 0!==this._vMap){const s=this._vMap;for(;s.has(o);)o=s.get(o),t(o,n)}}}function qv(e,t,n){qa("NgControlFlow");const o=Ye(),s=ko(),d=tm(o,hn+e);if(gi(o,s,t)){const _=se(null);try{if(ag(d,0),-1!==t){const D=nm(o[ht],hn+t),O=Wu(d,D.tView.ssrId);ah(d,sh(o,D,n,{dehydratedView:O}),0,Ku(D,O))}}finally{se(_)}}else{const _=W_(d,0);void 0!==_&&(_[In]=n)}}class Ow{constructor(t,n,o){this.lContainer=t,this.$implicit=n,this.$index=o}get $count(){return this.lContainer.length-ur}}function Yv(e,t){return t}class Pw{constructor(t,n,o){this.hasEmptyBlock=t,this.trackByFn=n,this.liveCollection=o}}function Zv(e,t,n,o,s,d,p,_,D,O,U,X,ve){qa("NgControlFlow");const Ie=void 0!==D,Fe=Ye(),Ze=_?p.bind(Fe[mr][In]):p,yt=new Pw(Ie,Ze);Fe[hn+e]=yt,Qu(e+1,t,n,o,s,d),Ie&&Qu(e+2,D,O,U,X,ve)}class xw extends Rw{constructor(t,n,o){super(),this.lContainer=t,this.hostLView=n,this.templateTNode=o,this.needsIndexUpdate=!1}get length(){return this.lContainer.length-ur}at(t){return this.getLView(t)[In].$implicit}attach(t,n){const o=n[Br];this.needsIndexUpdate||=t!==this.length,ah(this.lContainer,n,t,Ku(this.templateTNode,o))}detach(t){return this.needsIndexUpdate||=t!==this.length-1,function Fw(e,t){return nh(e,t)}(this.lContainer,t)}create(t,n){const o=Wu(this.lContainer,this.templateTNode.tView.ssrId);return sh(this.hostLView,this.templateTNode,new Ow(this.lContainer,n,t),{dehydratedView:o})}destroy(t){Tf(t[ht],t)}updateValue(t,n){this.getLView(t)[In].$implicit=n}reset(){this.needsIndexUpdate=!1}updateIndexes(){if(this.needsIndexUpdate)for(let t=0;t<this.length;t++)this.getLView(t)[In].$index=t}getLView(t){return function Lw(e,t){return W_(e,t)}(this.lContainer,t)}}function Jv(e){const t=se(null),n=Si();try{const o=Ye(),s=o[ht],d=o[n];if(void 0===d.liveCollection){const _=n+1,D=tm(o,_),O=nm(s,_);d.liveCollection=new xw(D,o,O)}else d.liveCollection.reset();const p=d.liveCollection;if(function Nw(e,t,n){let o,s,d=0,p=e.length-1;if(Array.isArray(t)){let _=t.length-1;for(;d<=p&&d<=_;){const D=e.at(d),O=t[d],U=Jg(d,D,d,O,n);if(0!==U){U<0&&e.updateValue(d,O),d++;continue}const X=e.at(p),ve=t[_],Ie=Jg(p,X,_,ve,n);if(0!==Ie){Ie<0&&e.updateValue(p,ve),p--,_--;continue}const Fe=n(d,D),Ze=n(p,X),yt=n(d,O);if(Object.is(yt,Ze)){const Nt=n(_,ve);Object.is(Nt,Fe)?(e.swap(d,p),e.updateValue(p,ve),_--,p--):e.move(p,d),e.updateValue(d,O),d++}else if(o??=new Qv,s??=Xv(e,d,p,n),em(e,o,d,yt))e.updateValue(d,O),d++,p++;else if(s.has(yt))o.set(Fe,e.detach(d)),p--;else{const Nt=e.create(d,t[d]);e.attach(d,Nt),d++,p++}}for(;d<=_;)zv(e,o,n,d,t[d]),d++}else if(null!=t){const _=t[Symbol.iterator]();let D=_.next();for(;!D.done&&d<=p;){const O=e.at(d),U=D.value,X=Jg(d,O,d,U,n);if(0!==X)X<0&&e.updateValue(d,U),d++,D=_.next();else{o??=new Qv,s??=Xv(e,d,p,n);const ve=n(d,U);if(em(e,o,d,ve))e.updateValue(d,U),d++,p++,D=_.next();else if(s.has(ve)){const Ie=n(d,O);o.set(Ie,e.detach(d)),p--}else e.attach(d,e.create(d,U)),d++,p++,D=_.next()}}for(;!D.done;)zv(e,o,n,e.length,D.value),D=_.next()}for(;d<=p;)e.destroy(e.detach(p--));o?.forEach(_=>{e.destroy(_)})}(p,e,d.trackByFn),p.updateIndexes(),d.hasEmptyBlock){const _=ko(),D=0===p.length;if(gi(o,_,D)){const O=n+2,U=tm(o,O);if(D){const X=nm(s,O),ve=Wu(U,X.tView.ssrId);ah(U,sh(o,X,void 0,{dehydratedView:ve}),0,Ku(X,ve))}else ag(U,0)}}}finally{se(t)}}function tm(e,t){return e[t]}function nm(e,t){return ua(e,t)}function ep(e,t,n,o){const s=Ye(),d=On(),p=hn+e,_=s[Jt],D=d.firstCreatePass?function Bw(e,t,n,o,s,d){const p=t.consts,D=Gu(t,e,2,o,ks(p,s));return tg(t,n,D,ks(p,d)),null!==D.attrs&&Uf(D,D.attrs,!1),null!==D.mergedAttrs&&Uf(D,D.mergedAttrs,!0),null!==t.queries&&t.queries.elementStart(t,D),D}(p,d,s,t,n,o):d.data[p],O=eC(d,s,D,_,t,e);s[p]=O;const U=aa(D);return Oo(D,!0),M_(_,O,D),!function bh(e){return!(32&~e.flags)}(D)&&Tc()&&Sf(d,s,O,D),0===function uu(){return rn.lFrame.elementDepthCount}()&&r(O,s),function Ps(){rn.lFrame.elementDepthCount++}(),U&&(Zp(d,s,D),Yp(d,D,s)),null!==o&&Jp(s,D),ep}function tp(){let e=yr();Ml()?Fi():(e=e.parent,Oo(e,!1));const t=e;(function Vh(e){return rn.skipHydrationRootTNode===e})(t)&&function La(){rn.skipHydrationRootTNode=null}(),function du(){rn.lFrame.elementDepthCount--}();const n=On();return n.firstCreatePass&&(Va(n,e),pc(e)&&n.queries.elementEnd(e)),null!=t.classesWithoutHost&&function _u(e){return!!(8&e.flags)}(t)&&Qg(n,t,Ye(),t.classesWithoutHost,!0),null!=t.stylesWithoutHost&&function el(e){return!!(16&e.flags)}(t)&&Qg(n,t,Ye(),t.stylesWithoutHost,!1),tp}function rm(e,t,n,o){return ep(e,t,n,o),tp(),rm}let eC=(e,t,n,o,s,d)=>(Eo(!0),bf(o,s,function Ol(){return rn.lFrame.currentNamespace}()));
1function np(e,t,n){const o=Ye(),s=On(),d=e+hn,p=s.firstCreatePass?function Vw(e,t,n,o,s){const d=t.consts,p=ks(d,o),_=Gu(t,e,8,"ng-container",p);return null!==p&&Uf(_,p,!0),tg(t,n,_,ks(d,s)),null!==t.queries&&t.queries.elementStart(t,_),_}(d,s,o,t,n):s.data[d];Oo(p,!0);const _=tC(s,o,p,e);return o[d]=_,Tc()&&Sf(s,o,_,p),r(_,o),aa(p)&&(Zp(s,o,p),Yp(s,p,o)),null!=n&&Jp(o,p),np}function rp(){let e=yr();const t=On();return Ml()?Fi():(e=e.parent,Oo(e,!1)),t.firstCreatePass&&(Va(t,e),pc(e)&&t.queries.elementEnd(e)),rp}function im(e,t,n){return np(e,t,n),rp(),im}let tC=(e,t,n,o)=>(Eo(!0),Gp(t[Jt],""));function nC(){return Ye()}function om(e,t,n){const o=Ye();return gi(o,ko(),t)&&es(On(),dr(),o,e,t,o[Jt],n,!0),om}const nu=void 0;var Kw=["en",[["a","p"],["AM","PM"],nu],[["AM","PM"],nu,nu],[["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"]],nu,[["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"]],nu,[["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}",nu,"{1} 'at' {0}",nu],[".",",",";","%","+","-","E","\xd7","\u2030","\u221e","NaN",":"],["#,##0.###","#,##0%","\xa4#,##0.00","#E0"],"USD","$","US Dollar",{},"ltr",function Gw(e){const n=Math.floor(Math.abs(e)),o=e.toString().replace(/^[^.]*\.?/,"").length;return 1===n&&0===o?1:5}];let hd={};function sm(e){const t=function Ww(e){return e.toLowerCase().replace(/_/g,"-")}(e);let n=oC(t);if(n)return n;const o=t.split("-")[0];if(n=oC(o),n)return n;if("en"===o)return Kw;throw new ft(701,!1)}function iC(e){return sm(e)[fd.PluralCase]}function oC(e){return e in hd||(hd[e]=Zt.ng&&Zt.ng.common&&Zt.ng.common.locales&&Zt.ng.common.locales[e]),hd[e]}var fd=function(e){return e[e.LocaleId=0]="LocaleId",e[e.DayPeriodsFormat=1]="DayPeriodsFormat",e[e.DayPeriodsStandalone=2]="DayPeriodsStandalone",e[e.DaysFormat=3]="DaysFormat",e[e.DaysStandalone=4]="DaysStandalone",e[e.MonthsFormat=5]="MonthsFormat",e[e.MonthsStandalone=6]="MonthsStandalone",e[e.Eras=7]="Eras",e[e.FirstDayOfWeek=8]="FirstDayOfWeek",e[e.WeekendRange=9]="WeekendRange",e[e.DateFormat=10]="DateFormat",e[e.TimeFormat=11]="TimeFormat",e[e.DateTimeFormat=12]="DateTimeFormat",e[e.NumberSymbols=13]="NumberSymbols",e[e.NumberFormats=14]="NumberFormats",e[e.CurrencyCode=15]="CurrencyCode",e[e.CurrencySymbol=16]="CurrencySymbol",e[e.CurrencyName=17]="CurrencyName",e[e.Currencies=18]="Currencies",e[e.Directionality=19]="Directionality",e[e.PluralCase=20]="PluralCase",e[e.ExtraData=21]="ExtraData",e}(fd||{});const pd="en-US",ip={marker:"element"},op={marker:"ICU"};var ts=function(e){return e[e.SHIFT=2]="SHIFT",e[e.APPEND_EAGERLY=1]="APPEND_EAGERLY",e[e.COMMENT=2]="COMMENT",e}(ts||{});let sC=pd;function cC(e,t,n){const o=t.insertBeforeIndex,s=Array.isArray(o)?o[0]:o;return null===s?b_(e,0,n):rr(n[s])}function lC(e,t,n,o,s){const d=t.insertBeforeIndex;if(Array.isArray(d)){let p=o,_=null;if(3&t.type||(_=p,p=s),null!==p&&-1===t.componentOffset)for(let D=1;D<d.length;D++)ql(e,p,n[d[D]],_,!1)}}function uC(e,t){if(e.push(t),e.length>1)for(let n=e.length-2;n>=0;n--){const o=e[n];dC(o)||Yw(o,t)&&null===Zw(o)&&Jw(o,t.index)}}function dC(e){return!(64&e.type)}function Yw(e,t){return dC(t)||e.index>t.index}function Zw(e){const t=e.insertBeforeIndex;return Array.isArray(t)?t[0]:t}function Jw(e,t){const n=e.insertBeforeIndex;Array.isArray(n)?n[0]=t:(D_(cC,lC),e.insertBeforeIndex=t)}function nA(e,t,n){const o=qp(e,n,64,null,null);return uC(t,o),o}let Rh=(e,t,n,o)=>(Eo(!0),function gC(e,t,n){const o=e[Jt];switch(n){case Node.COMMENT_NODE:return Gp(o,t);case Node.TEXT_NODE:return $p(o,t);case Node.ELEMENT_NODE:return bf(o,t,null)}}(e,n,o));function dA(){const e=[];let n,o,t=-1;function d(_,D){t=0;const O=function sp(e,t){const n=t[e.currentCaseLViewIndex];return null===n?n:n<0?~n:n}(_,D);o=null!==O?_.remove[O]:Nn}function p(){if(t<o.length){const _=o[t++];return _>0?n[_]:(e.push(t,o),d(n[ht].data[~_],n),p())}return 0===e.length?null:(o=e.pop(),t=e.pop(),p())}return function s(_,D){for(n=D;e.length;)e.pop();return d(_.value,D),p}}const ap=/\ufffd(\d+):?\d*\ufffd/gi,fA=/\ufffd(\d+)\ufffd/,EC=/^\s*(\ufffd\d+:?\d*\ufffd)\s*,\s*(select|plural)\s*,/,Nh="\ufffd",pA=/\ufffd\/?\*(\d+:\d+)\ufffd/gi,gA=/\ufffd(\/?[#*]\d+):?\d*\ufffd/gi,mA=/\uE500/g;function bC(e,t,n,o,s,d,p){const _=oh(e,o,1,null);let D=_<<ts.SHIFT,O=ha();t===O&&(O=null),null===O&&(D|=ts.APPEND_EAGERLY),p&&(D|=ts.COMMENT,function jb(e){void 0===Vp&&(Vp=e())}(dA)),s.push(D,null===d?"":d);const U=qp(e,_,p?32:1,null===d?"":d,null);uC(n,U);const X=U.index;return Oo(U,!1),null!==O&&t!==O&&function tA(e,t){let n=e.insertBeforeIndex;null===n?(D_(cC,lC),n=e.insertBeforeIndex=[null,t]):($t(Array.isArray(n),!0,"Expecting array here"),n.push(t))}(O,X),U}function vA(e,t,n,o,s,d,p,_){const D=_.match(ap),U=bC(t,n,o,p,s,D?null:_,!1).index;D&&Oh(d,_,U,null,0,null),e.push({kind:0,index:U})}function Oh(e,t,n,o,s,d){const p=e.length,_=p+1;e.push(null,null);const D=p+2,O=t.split(ap);let U=0;for(let X=0;X<O.length;X++){const ve=O[X];if(1&X){const Ie=s+parseInt(ve,10);e.push(-1-Ie),U|=TC(Ie)}else""!==ve&&e.push(ve)}return e.push(n<<2|(o?1:0)),o&&e.push(o,d),e[p]=U,e[_]=e.length-D,U}function TC(e){return 1<<Math.min(e,31)}function DC(e){let t,d,n="",o=0,s=!1;for(;null!==(t=pA.exec(e));)s?t[0]===`${Nh}/*${d}${Nh}`&&(o=t.index,s=!1):(n+=e.substring(o,t.index+t[0].length),d=t[1],s=!0);return n+=e.slice(o),n}function SC(e,t,n,o,s,d,p){let _=0;const D={type:d.type,currentCaseLViewIndex:oh(t,n,1,null),anchorIdx:p,cases:[],create:[],remove:[],update:[]};(function AA(e,t,n){e.push(TC(t.mainBinding),2,-1-t.mainBinding,n<<2|2)})(o,d,p),function eA(e,t,n){const o=e.data[t];null===o?e.data[t]=n:o.value=n}(t,p,D);const O=d.values,U=[];for(let X=0;X<O.length;X++){const ve=O[X],Ie=[];for(let Ze=0;Ze<ve.length;Ze++){const yt=ve[Ze];if("string"!=typeof yt){const Nt=Ie.push(yt)-1;ve[Ze]=`\x3c!--\ufffd${Nt}\ufffd--\x3e`}}const Fe=[];U.push(Fe),_=SA(Fe,t,D,n,o,s,d.cases[X],ve.join(""),Ie)|_}_&&function IA(e,t,n){e.push(t,1,n<<2|3)}(o,_,p),e.push({kind:3,index:p,cases:U,currentCaseLViewIndex:D.currentCaseLViewIndex})}function DA(e){const t=[],n=[];let o=1,s=0;const d=am(e=e.replace(EC,function(p,_,D){return o="select"===D?0:1,s=parseInt(_.slice(1),10),""}));for(let p=0;p<d.length;){let _=d[p++].trim();1===o&&(_=_.replace(/\s*(?:=)?(\w+)\s*/,"$1")),_.length&&t.push(_);const D=am(d[p++]);t.length>n.length&&n.push(D)}return{type:o,mainBinding:s,cases:t,values:n}}function am(e){if(!e)return[];let t=0;const n=[],o=[],s=/[{}]/g;let d;for(s.lastIndex=0;d=s.exec(e);){const _=d.index;if("}
1"==d[0]){if(n.pop(),0==n.length){const D=e.substring(t,_);EC.test(D)?o.push(DA(D)):o.push(D),t=_+1}}else{if(0==n.length){const D=e.substring(t,_);o.push(D),t=_+1}n.push("{")}}const p=e.substring(t);return o.push(p),o}function SA(e,t,n,o,s,d,p,_,D){const O=[],U=[],X=[];n.cases.push(p),n.create.push(O),n.remove.push(U),n.update.push(X);const Ie=qm(wn()).getInertBodyElement(_),Fe=xp(Ie)||Ie;return Fe?wC(e,t,n,o,s,O,U,X,Fe,d,D,0):0}function wC(e,t,n,o,s,d,p,_,D,O,U,X){let ve=0,Ie=D.firstChild;for(;Ie;){const Fe=oh(t,o,1,null);switch(Ie.nodeType){case Node.ELEMENT_NODE:const Ze=Ie,yt=Ze.tagName.toLowerCase();if(kp.hasOwnProperty(yt)){cm(d,ip,yt,O,Fe),t.data[Fe]=yt;const or=Ze.attributes;for(let ji=0;ji<or.length;ji++){const ns=or.item(ji),yd=ns.name.toLowerCase();ns.value.match(ap)?e_.hasOwnProperty(yd)&&Oh(_,ns.value,Fe,ns.name,0,Pp[yd]?_f:null):MA(d,Fe,ns)}const Or={kind:1,index:Fe,children:[]};e.push(Or),ve=wC(Or.children,t,n,o,s,d,p,_,Ie,Fe,U,X+1)|ve,AC(p,Fe,X)}break;case Node.TEXT_NODE:const Nt=Ie.textContent||"",at=Nt.match(ap);cm(d,null,at?"":Nt,O,Fe),AC(p,Fe,X),at&&(ve=Oh(_,Nt,Fe,null,0,null)|ve),e.push({kind:0,index:Fe});break;case Node.COMMENT_NODE:const un=fA.exec(Ie.textContent||"");if(un){const Or=U[parseInt(un[1],10)];cm(d,op,"",O,Fe),SC(e,t,o,s,O,Or,Fe),wA(p,Fe,X)}}Ie=Ie.nextSibling}return ve}function AC(e,t,n){0===n&&e.push(t)}function wA(e,t,n){0===n&&(e.push(~t),e.push(t))}function cm(e,t,n,o,s){null!==t&&e.push(t),e.push(n,s,function rA(e,t,n){return e|t<<17|n<<1}(0,o,s))}function MA(e,t,n){e.push(t<<1|1,n.name,n.value)}function MC(e,t,n=-1){const o=On(),s=Ye(),d=hn+e,p=ks(o.consts,t),_=ha();o.firstCreatePass&&function yA(e,t,n,o,s,d){const p=ha(),_=[],D=[],O=[[]],U=[[]];s=function TA(e,t){if(function bA(e){return-1===e}(t))return DC(e);{const n=e.indexOf(`:${t}${Nh}`)+2+t.toString().length,o=e.search(new RegExp(`${Nh}\\/\\*\\d+:${t}${Nh}`));return DC(e.substring(n,o))}}(s,d);const X=function _A(e){return e.replace(mA," ")}(s).split(gA);for(let ve=0;ve<X.length;ve++){let Ie=X[ve];if(1&ve){const Fe=47===Ie.charCodeAt(0),Ze=Ie.charCodeAt(Fe?1:0),yt=hn+Number.parseInt(Ie.substring(Fe?2:1));if(Fe)O.shift(),U.shift(),Oo(ha(),!1);else{const Nt=nA(e,O[0],yt);O.unshift([]),Oo(Nt,!0);const at={kind:2,index:yt,children:[],type:35===Ze?0:1};U[0].push(at),U.unshift(at.children)}}else{const Fe=am(Ie);for(let Ze=0;Ze<Fe.length;Ze++){let yt=Fe[Ze];if(1&Ze){const Nt=yt;if("object"!=typeof Nt)throw new Error(`Unable to parse ICU expression in "${s}" message.`);const un=bC(e,p,O[0],n,_,"",!0).index;SC(U[0],e,n,D,t,Nt,un)}else""!==yt&&vA(U[0],e,p,O[0],_,D,n,yt)}}}e.data[o]={create:_,update:D,ast:U[0]}}(o,null===_?0:_.index,s,d,p,n),2===o.type?s[mr][xt]|=32:s[xt]|=32;const D=o.data[d],U=y_(o,_===s[tr]?null:_,s);(function cA(e,t,n,o){const s=e[Jt];for(let d=0;d<t.length;d++){const p=t[d++],O=(p&ts.APPEND_EAGERLY)===ts.APPEND_EAGERLY,U=p>>>ts.SHIFT;let X=e[U],ve=!1;null===X&&(X=e[U]=Rh(e,U,t[d],(p&ts.COMMENT)===ts.COMMENT?Node.COMMENT_NODE:Node.TEXT_NODE),ve=Tc()),O&&null!==n&&ve&&ql(s,n,X,o,!1)}})(s,D.create,U,_&&8&_.type?s[_.index]:null),Ua(!0)}function NC(e,t,n){MC(e,t,n),function RC(){Ua(!1)}()}function lm(e,t,n,o){const s=Ye(),d=On(),p=yr();return um(d,s,s[Jt],p,e,t,o),lm}function um(e,t,n,o,s,d,p){const _=aa(o),O=e.firstCreatePass&&G_(e),U=t[In],X=$_(t);let ve=!0;if(3&o.type||p){const Ze=Di(o,t),yt=p?p(Ze):Ze,Nt=X.length,at=p?or=>p(rr(or[o.index])):o.index;let un=null;if(!p&&_&&(un=function VA(e,t,n,o){const s=e.cleanup;if(null!=s)for(let d=0;d<s.length-1;d+=2){const p=s[d];if(p===n&&s[d+1]===o){const _=t[io],D=s[d+2];return _.length>D?_[D]:null}"string"==typeof p&&(d+=2)}return null}(e,t,s,o.index)),null!==un)(un.__ngLastListenerFn__||un).__ngNextListenerFn__=d,un.__ngLastListenerFn__=d,ve=!1;else{d=xC(o,t,U,d,!1);const or=n.listen(yt,s,d);X.push(d,or),O&&O.push(s,at,Nt,Nt+1)}}else d=xC(o,t,U,d,!1);const Ie=o.outputs;let Fe;if(ve&&null!==Ie&&(Fe=Ie[s])){const Ze=Fe.length;if(Ze)for(let yt=0;yt<Ze;yt+=2){const Or=t[Fe[yt]][Fe[yt+1]].subscribe(d),ji=X.length;X.push(d,Or),O&&O.push(s,o.index,ji,-(ji+1))}}}function PC(e,t,n,o){const s=se(null);try{return Ar(6,t,n),!1!==n(o)}catch(d){return Mf(e,d),!1}finally{Ar(7,t,n),se(s)}}function xC(e,t,n,o,s){return function d(p){if(p===Function)return o;
1lh(e.componentOffset>-1?_o(e.index,t):t);let D=PC(t,n,o,p),O=d.__ngNextListenerFn__;for(;O;)D=PC(t,n,O,p)&&D,O=O.__ngNextListenerFn__;return s&&!1===D&&p.preventDefault(),D}}function FC(e=1){return function Md(e){return(rn.lFrame.contextLView=function wl(e,t){for(;e>0;)t=t[Xo],e--;return t}(e,rn.lFrame.contextLView))[In]}(e)}function jA(e,t){let n=null;const o=function wa(e){const t=e.attrs;if(null!=t){const n=t.indexOf(5);if(!(1&n))return t[n+1]}return null}(e);for(let s=0;s<t.length;s++){const d=t[s];if("*"!==d){if(null===o?nc(e,d,!0):Bc(o,d))return s}else n=s}return n}function LC(e){const t=Ye()[mr][tr];if(!t.projection){const o=t.projection=function ki(e,t){const n=[];for(let o=0;o<e;o++)n.push(t);return n}(e?e.length:1,null),s=o.slice();let d=t.child;for(;null!==d;){const p=e?jA(d,e):0;null!==p&&(s[p]?s[p].projectionNext=d:o[p]=d,s[p]=d),d=d.next}}}function BC(e,t=0,n){const o=Ye(),s=On(),d=Gu(s,hn+e,16,null,n||null);null===d.projection&&(d.projection=t),Fi(),(!o[Br]||da())&&32&~d.flags&&function Zb(e,t,n){A_(t[Jt],0,t,n,Wp(e,n,t),E_(n.parent||t[tr],n,t))}(s,o,d)}function dm(e,t,n){return hm(e,"",t,"",n),dm}function hm(e,t,n,o,s){const d=Ye(),p=rd(d,t,n,o);return p!==Mn&&es(On(),dr(),d,e,p,d[Jt],s,!1),hm}function zC(e,t,n,o){!function Ny(e,t,n,o){const s=On();if(s.firstCreatePass){const d=yr();Oy(s,new Ay(t,n,o),d.index),function KD(e,t){const n=e.contentQueries||(e.contentQueries=[]);t!==(n.length?n[n.length-1]:-1)&&n.push(e.queries.length-1,t)}(s,e),!(2&~n)&&(s.staticContentQueries=!0)}return My(s,Ye(),n)}(e,t,n,o)}function XC(e,t,n){!function Ry(e,t,n){const o=On();return o.firstCreatePass&&(Oy(o,new Ay(e,t,n),-1),!(2&~t)&&(o.staticViewQueries=!0)),My(o,Ye(),t)}(e,t,n)}function QC(e){const t=Ye(),n=On(),o=bc();Yc(o+1);const s=Ig(n,o);if(e.dirty&&function Uh(e){return!(4&~e[xt])}(t)===!(2&~s.metadata.flags)){if(null===s.matches)e.reset([]);else{const d=ky(t,o);e.reset(d,Nu),e.notifyOnChanges()}return!0}return!1}function qC(){return function Ag(e,t){return e[Wr].queries[t].queryList}(Ye(),bc())}function YC(e){return Os(function Rl(){return rn.lFrame.contextLView}(),hn+e)}function aE(e,t=""){const n=Ye(),o=On(),s=e+hn,d=o.firstCreatePass?Gu(o,s,1,t,null):o.data[s],p=cE(o,n,d,t,e);n[s]=p,Tc()&&Sf(o,n,p,d),Oo(d,!1)}let cE=(e,t,n,o,s)=>(Eo(!0),$p(t[Jt],o));function fm(e){return cp("",e,""),fm}function cp(e,t,n){const o=Ye(),s=rd(o,e,t,n);return s!==Mn&&Fc(o,Si(),s),cp}function pm(e,t,n,o,s){const d=Ye(),p=id(d,e,t,n,o,s);return p!==Mn&&Fc(d,Si(),p),pm}function gm(e,t,n){Fy(t)&&(t=t());const o=Ye();return gi(o,ko(),t)&&es(On(),dr(),o,e,t,o[Jt],n,!1),gm}function mE(e,t){const n=Fy(e);return n&&e.set(t),n}function mm(e,t){const n=Ye(),o=On(),s=yr();return um(o,n,n[Jt],s,e,t),mm}function _m(e,t,n,o,s){if(e=Te(e),Array.isArray(e))for(let d=0;d<e.length;d++)_m(e[d],t,n,o,s);else{const d=On(),p=Ye(),_=yr();let D=Pi(e)?e:Te(e.provide);const O=zo(e),U=1048575&_.providerIndexes,X=_.directiveStart,ve=_.providerIndexes>>20;if(Pi(e)||!e.multi){const Ie=new Ts(O,s,$u),Fe=vm(D,t,s?U:U+ve,X);-1===Fe?(Fl(Bi(_,p),d,D),ym(d,e,t.length),t.push(D),_.directiveStart++,_.directiveEnd++,s&&(_.providerIndexes+=1048576),n.push(Ie),p.push(Ie)):(n[Fe]=Ie,p[Fe]=Ie)}else{const Ie=vm(D,t,U+ve,X),Fe=vm(D,t,U,U+ve),yt=Fe>=0&&n[Fe];if(s&&!yt||!s&&!(Ie>=0&&n[Ie])){Fl(Bi(_,p),d,D);const Nt=function aI(e,t,n,o,s){const d=new Ts(e,n,$u);return d.multi=[],d.index=t,d.componentProviders=0,_E(d,s,o&&!n),d}(s?sI:oI,n.length,s,o,O);!s&&yt&&(n[Fe].providerFactory=Nt),ym(d,e,t.length,0),t.push(D),_.directiveStart++,_.directiveEnd++,s&&(_.providerIndexes+=1048576),n.push(Nt),p.push(Nt)}else ym(d,e,Ie>-1?Ie:Fe,_E(n[s?Fe:Ie],O,!s&&o));!s&&o&&yt&&n[Fe].componentProviders++}}}function ym(e,t,n,o){const s=Pi(t),d=function cc(e){return!!e.useClass}(t);if(s||d){const D=(d?Te(t.useClass):t).prototype.ngOnDestroy;if(D){const O=e.destroyHooks||(e.destroyHooks=[]);if(!s&&t.multi){const U=O.indexOf(n);-1===U?O.push(n,[o,D]):O[U+1].push(o,D)}else O.push(n,D)}}}function _E(e,t,n){return n&&e.componentProviders++,e.multi.push(t)-1}function vm(e,t,n,o){for(let s=n;s<o;s++)if(t[s]===e)return s;return-1}function oI(e,t,n,o){return Cm(this.multi,[])}function sI(e,t,n,o){const s=this.multi;let d;if(this.providerFactory){const p=this.providerFactory.componentProviders,_=Vs(n,n[ht],this.providerFactory.index,o);d=_.slice(0,p),Cm(s,d);for(let D=p;D<_.length;D++)d.push(_[D])}else d=[],Cm(s,d);return d}function Cm(e,t){for(let n=0;n<e.length;n++)t.push((0,e[n])());return t}function yE(e,t=[]){return n=>{n.providersResolver=(o,s)=>function iI(e,t,n){const o=On();if(o.firstCreatePass){const s=xi(e);_m(n,o.data,o.blueprint,s,!0),_m(t,o.data,o.blueprint,s,!1)}}(o,s?s(e):e,t)}}let cI=(()=>{class e{constructor(n){this._injector=n,this.cachedInjectors=new Map}getOrCreateStandaloneInjector(n){if(!n.standalone)return null;if(!this.cachedInjectors.has(n)){const o=Ti(0,n.type),s=o.length>0?kg([o],this._injector,`Standalone[${n.type.name}]`):null;this.cachedInjectors.set(n,s)}return this.cachedInjectors.get(n)}ngOnDestroy(){try{for(const n of this.cachedInjectors.values())null!==n&&n.destroy()}finally{this.cachedInjectors.clear()}}static#e=this.\u0275prov=Me({token:e,providedIn:"environment",factory:()=>new e(Sr(Lr))})}return e})();function vE(e){qa("NgStandalone"),e.getStandaloneInjector=t=>t.get(cI).getOrCreateStandaloneInjector(e)}function EE(e,t,n){const o=Yr()+e,s=Ye();return s[o]===Mn?Ya(s,o,n?t.call(n):t()):function Eh(e,t){return e[t]}(s,o)}function bE(e,t,n,o){return SE(Ye(),Yr(),e,t,n,o)}function TE(e,t,n,o,s){return wE(Ye(),Yr(),e,t,n,o,s)}function DE(e,t,n,o,s,d){return AE(Ye(),Yr(),e,t,n,o,s,d)}function kh(e,t){const n=e[t];return n===Mn?void 0:n}function SE(e,t,n,o,s,d){const p=t+n;return gi(e,p,s)?Ya(e,p+1,d?o.call(d,s):o(s)):kh(e,p+1)}function wE(e,t,n,o,s,d,p){const _=t+n;return Jl(e,_,s,d)?Ya(e,_+2,p?o.call(p,s,d):o(s,d)):kh(e,_+2)}function AE(e,t,n,o,s,d,p,_){const D=t+n;return function Wf(e,t,n,o,s){const d=Jl(e,t,n,o);return gi(e,t+2,s)||d}
1(e,D,s,d,p)?Ya(e,D+3,_?o.call(_,s,d,p):o(s,d,p)):kh(e,D+3)}function RE(e,t){const n=On();let o;const s=e+hn;n.firstCreatePass?(o=function _I(e,t){if(t)for(let n=t.length-1;n>=0;n--){const o=t[n];if(e===o.name)return o}}(t,n.pipeRegistry),n.data[s]=o,o.onDestroy&&(n.destroyHooks??=[]).push(s,o.onDestroy)):o=n.data[s];const d=o.factory||(o.factory=xr(o.type)),_=dt($u);try{const D=Us(!1),O=d();return Us(D),function WA(e,t,n,o){n>=e.data.length&&(e.data[n]=null,e.blueprint[n]=null),t[n]=o}(n,Ye(),s,O),O}finally{dt(_)}}function NE(e,t,n){const o=e+hn,s=Ye(),d=Os(s,o);return Ph(s,o)?SE(s,Yr(),t,d.transform,n,d):d.transform(n)}function OE(e,t,n,o){const s=e+hn,d=Ye(),p=Os(d,s);return Ph(d,s)?wE(d,Yr(),t,p.transform,n,o,p):p.transform(n,o)}function kE(e,t,n,o,s){const d=e+hn,p=Ye(),_=Os(p,d);return Ph(p,d)?AE(p,Yr(),t,_.transform,n,o,s,_):_.transform(n,o,s)}function Ph(e,t){return e[ht].data[t].pure}function PE(e,t){return Nf(e,t)}class qE{constructor(t){this.full=t;const n=t.split(".");this.major=n[0],this.minor=n[1],this.patch=n.slice(2).join(".")}}let YE=(()=>{class e{log(n){console.log(n)}warn(n){console.warn(n)}static#e=this.\u0275fac=function(o){return new(o||e)};static#t=this.\u0275prov=Me({token:e,factory:e.\u0275fac,providedIn:"platform"})}return e})();const n0=new Ge(""),r0=new Ge("");let wm,hM=(()=>{class e{constructor(n,o,s){this._ngZone=n,this.registry=o,this._pendingCount=0,this._isZoneStable=!0,this._callbacks=[],this.taskTrackingZone=null,wm||(function fM(e){wm=e}(s),s.addToWindow(o)),this._watchAngularEvents(),n.run(()=>{this.taskTrackingZone=typeof Zone>"u"?null:Zone.current.get("TaskTrackingZone")})}_watchAngularEvents(){this._ngZone.onUnstable.subscribe({next:()=>{this._isZoneStable=!1}}),this._ngZone.runOutsideAngular(()=>{this._ngZone.onStable.subscribe({next:()=>{Ai.assertNotInAngularZone(),queueMicrotask(()=>{this._isZoneStable=!0,this._runCallbacksIfReady()})}})})}increasePendingRequestCount(){return this._pendingCount+=1,this._pendingCount}decreasePendingRequestCount(){if(this._pendingCount-=1,this._pendingCount<0)throw new Error("pending async requests below zero");return this._runCallbacksIfReady(),this._pendingCount}isStable(){return this._isZoneStable&&0===this._pendingCount&&!this._ngZone.hasPendingMacrotasks}_runCallbacksIfReady(){if(this.isStable())queueMicrotask(()=>{for(;0!==this._callbacks.length;){let n=this._callbacks.pop();clearTimeout(n.timeoutId),n.doneCb()}});else{let n=this.getPendingTasks();this._callbacks=this._callbacks.filter(o=>!o.updateCb||!o.updateCb(n)||(clearTimeout(o.timeoutId),!1))}}getPendingTasks(){return this.taskTrackingZone?this.taskTrackingZone.macroTasks.map(n=>({source:n.source,creationLocation:n.creationLocation,data:n.data})):[]}addCallback(n,o,s){let d=-1;o&&o>0&&(d=setTimeout(()=>{this._callbacks=this._callbacks.filter(p=>p.timeoutId!==d),n()},o)),this._callbacks.push({doneCb:n,timeoutId:d,updateCb:s})}whenStable(n,o,s){if(s&&!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(n,o,s),this._runCallbacksIfReady()}getPendingRequestCount(){return this._pendingCount}registerApplication(n){this.registry.registerApplication(n,this)}unregisterApplication(n){this.registry.unregisterApplication(n)}findProviders(n,o,s){return[]}static#e=this.\u0275fac=function(o){return new(o||e)(Sr(Ai),Sr(o0),Sr(r0))};static#t=this.\u0275prov=Me({token:e,factory:e.\u0275fac})}return e})(),o0=(()=>{class e{constructor(){this._applications=new Map}registerApplication(n,o){this._applications.set(n,o)}unregisterApplication(n){this._applications.delete(n)}unregisterAllApplications(){this._applications.clear()}getTestability(n){return this._applications.get(n)||null}getAllTestabilities(){return Array.from(this._applications.values())}getAllRootElements(){return Array.from(this._applications.keys())}findTestabilityInTree(n,o=!0){return wm?.findTestabilityInTree(this,n,o)??null}static#e=this.\u0275fac=function(o){return new(o||e)};static#t=this.\u0275prov=Me({token:e,factory:e.\u0275fac,providedIn:"platform"})}return e})();function Am(e){return!!e&&"function"==typeof e.then}function s0(e){return!!e&&"function"==typeof e.subscribe}const a0=new Ge("");let Im=(()=>{class e{constructor(){this.initialized=!1,this.done=!1,this.donePromise=new Promise((n,o)=>{this.resolve=n,this.reject=o}),this.appInits=Xt(a0,{optional:!0})??[]}
1runInitializers(){if(this.initialized)return;const n=[];for(const s of this.appInits){const d=s();if(Am(d))n.push(d);else if(s0(d)){const p=new Promise((_,D)=>{d.subscribe({complete:_,error:D})});n.push(p)}}const o=()=>{this.done=!0,this.resolve()};Promise.all(n).then(()=>{o()}).catch(s=>{this.reject(s)}),0===n.length&&o(),this.initialized=!0}static#e=this.\u0275fac=function(o){return new(o||e)};static#t=this.\u0275prov=Me({token:e,factory:e.\u0275fac,providedIn:"root"})}return e})();const Mm=new Ge("");function u0(e,t){return Array.isArray(t)?t.reduce(u0,e):{...e,...t}}let gl=(()=>{class e{constructor(){this._bootstrapListeners=[],this._runningTick=!1,this._destroyed=!1,this._destroyListeners=[],this._views=[],this.internalErrorHandler=Xt(qh),this.afterRenderEffectManager=Xt(mh),this.externalTestViews=new Set,this.beforeRender=new ot.B,this.afterTick=new ot.B,this.componentTypes=[],this.components=[],this.isStable=Xt(Xu).hasPendingTasks.pipe((0,nn.T)(n=>!n)),this._injector=Xt(Lr)}get destroyed(){return this._destroyed}get injector(){return this._injector}bootstrap(n,o){const s=n instanceof oy;if(!this._injector.get(Im).done)throw!s&&fi(n),new ft(405,!1);let p;p=s?n:this._injector.get(Lf).resolveComponentFactory(n),this.componentTypes.push(p.componentType);const _=function pM(e){return e.isBoundToModule}(p)?void 0:this._injector.get(Zl),O=p.create(ao.NULL,[],o||p.selector,_),U=O.location.nativeElement,X=O.injector.get(n0,null);return X?.registerApplication(U),O.onDestroy(()=>{this.detachView(O.hostView),hp(this.components,O),X?.unregisterApplication(U)}),this._loadComponent(O),O}tick(){this._tick(!0)}_tick(n){if(this._runningTick)throw new ft(101,!1);const o=se(null);try{this._runningTick=!0,this.detectChangesInAttachedViews(n)}catch(s){this.internalErrorHandler(s)}finally{this.afterTick.next(),this._runningTick=!1,se(o)}}detectChangesInAttachedViews(n){let o=0;const s=this.afterRenderEffectManager;for(;;){if(o===Q_)throw new ft(103,!1);if(n){const d=0===o;this.beforeRender.next(d);for(let{_lView:p,notifyErrorHandler:_}of this._views)mM(p,d,_)}if(o++,s.executeInternalCallbacks(),![...this.externalTestViews.keys(),...this._views].some(({_lView:d})=>Rm(d))&&(s.execute(),![...this.externalTestViews.keys(),...this._views].some(({_lView:d})=>Rm(d))))break}}attachView(n){const o=n;this._views.push(o),o.attachToAppRef(this)}detachView(n){const o=n;hp(this._views,o),o.detachFromAppRef()}_loadComponent(n){this.attachView(n.hostView),this.tick(),this.components.push(n);const o=this._injector.get(Mm,[]);[...this._bootstrapListeners,...o].forEach(s=>s(n))}ngOnDestroy(){if(!this._destroyed)try{this._destroyListeners.forEach(n=>n()),this._views.slice().forEach(n=>n.destroy())}finally{this._destroyed=!0,this._views=[],this._bootstrapListeners=[],this._destroyListeners=[]}}onDestroy(n){return this._destroyListeners.push(n),()=>hp(this._destroyListeners,n)}destroy(){if(this._destroyed)throw new ft(406,!1);const n=this._injector;n.destroy&&!n.destroyed&&n.destroy()}get viewCount(){return this._views.length}warnIfDestroyed(){}static#e=this.\u0275fac=function(o){return new(o||e)};static#t=this.\u0275prov=Me({token:e,factory:e.\u0275fac,providedIn:"root"})}return e})();function hp(e,t){const n=e.indexOf(t);n>-1&&e.splice(n,1)}function mM(e,t,n){!t&&!Rm(e)||function _M(e,t,n){let o;n?(o=0,e[xt]|=1024):o=64&e[xt]?0:1,Rf(e,t,o)}(e,n,t)}function Rm(e){return cu(e)}class yM{constructor(t,n){this.ngModuleFactory=t,this.componentFactories=n}}let vM=(()=>{class e{compileModuleSync(n){return new Og(n)}compileModuleAsync(n){return Promise.resolve(this.compileModuleSync(n))}compileModuleAndAllComponentsSync(n){const o=this.compileModuleSync(n),d=Ds(Rr(n).declarations).reduce((p,_)=>{const D=_n(_);return D&&p.push(new vh(D)),p},[]);return new yM(o,d)}compileModuleAndAllComponentsAsync(n){return Promise.resolve(this.compileModuleAndAllComponentsSync(n))}clearCache(){}clearCacheFor(n){}getModuleId(n){}static#e=this.\u0275fac=function(o){return new(o||e)};static#t=this.\u0275prov=Me({token:e,factory:e.\u0275fac,providedIn:"root"})}return e})(),bM=(()=>{class e{constructor(){this.zone=Xt(Ai),this.applicationRef=Xt(gl)}initialize(){this._onMicrotaskEmptySubscription||(this._onMicrotaskEmptySubscription=this.zone.onMicrotaskEmpty.subscribe({next:()=>{this.zone.run(()=>{this.applicationRef.tick()})}}))}ngOnDestroy(){this._onMicrotaskEmptySubscription?.unsubscribe()}static#e=this.\u0275fac=function(o){return new(o||e)};static#t=this.\u0275prov=Me({token:e,factory:e.\u0275fac,providedIn:"root"})}return e})();function TM(){const e=Xt(Ai),t=Xt(ya);return n=>e.runOutsideAngular(()=>t.handleError(n))}let SM=(()=>{class e{constructor(){this.subscription=new Mt.yU,this.initialized=!1,this.zone=Xt(Ai),this.pendingTasks=Xt(Xu)}initialize(){if(this.initialized)return;this.initialized=!0;let n=null;!this.zone.isStable&&!this.zone.hasPendingMacrotasks&&!this.zone.hasPendingMicrotasks&&(n=this.pendingTasks.add()),this.zone.runOutsideAngular(()=>{this.subscription.add(this.zone.onStable.subscribe(()=>{Ai.assertNotInAngularZone(),queueMicrotask(()=>{null!==n&&!this.zone.hasPendingMacrotasks&&!this.zone.hasPendingMicrotasks&&(this.pendingTasks.remove(n),n=null)})}
1))}),this.subscription.add(this.zone.onUnstable.subscribe(()=>{Ai.assertInAngularZone(),n??=this.pendingTasks.add()}))}ngOnDestroy(){this.subscription.unsubscribe()}static#e=this.\u0275fac=function(o){return new(o||e)};static#t=this.\u0275prov=Me({token:e,factory:e.\u0275fac,providedIn:"root"})}return e})();const pp=new Ge("",{providedIn:"root",factory:()=>Xt(pp,gn.Optional|gn.SkipSelf)||function wM(){return typeof $localize<"u"&&$localize.locale||pd}()}),AM=new Ge("",{providedIn:"root",factory:()=>"USD"}),Nm=new Ge("");let p0=(()=>{class e{constructor(n){this._injector=n,this._modules=[],this._destroyListeners=[],this._destroyed=!1}bootstrapModuleFactory(n,o){const s=function ED(e="zone.js",t){return"noop"===e?new hy:"zone.js"===e?new Ai(t):e}(o?.ngZone,function f0(e){return{enableLongStackTrace:!1,shouldCoalesceEventChangeDetection:e?.eventCoalescing??!1,shouldCoalesceRunChangeDetection:e?.runCoalescing??!1}}({eventCoalescing:o?.ngZoneEventCoalescing,runCoalescing:o?.ngZoneRunCoalescing}));return s.run(()=>{const d=function hS(e,t,n){return new Ng(e,t,n)}(n.moduleType,this.injector,function h0(e){return[{provide:Ai,useFactory:e},{provide:$o,multi:!0,useFactory:()=>{const t=Xt(bM,{optional:!0});return()=>t.initialize()}},{provide:$o,multi:!0,useFactory:()=>{const t=Xt(SM);return()=>{t.initialize()}}},{provide:qh,useFactory:TM}]}(()=>s)),p=d.injector.get(ya,null);return s.runOutsideAngular(()=>{const _=s.onError.subscribe({next:D=>{p.handleError(D)}});d.onDestroy(()=>{hp(this._modules,d),_.unsubscribe()})}),function l0(e,t,n){try{const o=n();return Am(o)?o.catch(s=>{throw t.runOutsideAngular(()=>e.handleError(s)),s}):o}catch(o){throw t.runOutsideAngular(()=>e.handleError(o)),o}}(p,s,()=>{const _=d.injector.get(Im);return _.runInitializers(),_.donePromise.then(()=>(function aC(e){"string"==typeof e&&(sC=e.toLowerCase().replace(/_/g,"-"))}(d.injector.get(pp,pd)||pd),this._moduleDoBootstrap(d),d))})})}bootstrapModule(n,o=[]){const s=u0({},o);return function EM(e,t,n){const o=new Og(n);return Promise.resolve(o)}(0,0,n).then(d=>this.bootstrapModuleFactory(d,s))}_moduleDoBootstrap(n){const o=n.injector.get(gl);if(n._bootstrapComponents.length>0)n._bootstrapComponents.forEach(s=>o.bootstrap(s));else{if(!n.instance.ngDoBootstrap)throw new ft(-403,!1);n.instance.ngDoBootstrap(o)}this._modules.push(n)}onDestroy(n){this._destroyListeners.push(n)}get injector(){return this._injector}destroy(){if(this._destroyed)throw new ft(404,!1);this._modules.slice().forEach(o=>o.destroy()),this._destroyListeners.forEach(o=>o());const n=this._injector.get(Nm,null);n&&(n.forEach(o=>o()),n.clear()),this._destroyed=!0}get destroyed(){return this._destroyed}static#e=this.\u0275fac=function(o){return new(o||e)(Sr(ao))};static#t=this.\u0275prov=Me({token:e,factory:e.\u0275fac,providedIn:"platform"})}return e})(),ml=null;const g0=new Ge("");function m0(e,t,n=[]){const o=`Platform: ${t}`,s=new Ge(o);return(d=[])=>{let p=Om();if(!p||p.injector.get(g0,!1)){const _=[...n,...d,{provide:s,useValue:!0}];e?e(_):function MM(e){if(ml&&!ml.get(g0,!1))throw new ft(400,!1);(function c0(){!function le(e){$e=e}(()=>{throw new ft(600,!1)})})(),ml=e;const t=e.get(p0);(function y0(e){e.get(Dn,null)?.forEach(n=>n())})(e)}(function _0(e=[],t){return ao.create({name:t,providers:[{provide:na,useValue:"platform"},{provide:Nm,useValue:new Set([()=>ml=null])},...e]})}(_,o))}return function RM(e){const t=Om();if(!t)throw new ft(401,!1);return t}()}}function Om(){return ml?.get(p0)??null}function OM(){return!1}function kM(){}let C0=(()=>{class e{static#e=this.__NG_ELEMENT_ID__=PM}return e})();function PM(e){return function xM(e,t,n){if(Gt(e)&&!n){const o=_o(e.index,t);return new uh(o,o)}return 47&e.type?new uh(t[mr],t):null}(yr(),Ye(),!(16&~e))}class D0{constructor(){}supports(t){return Kf(t)}create(t){return new HM(t)}}const UM=(e,t)=>t;class HM{constructor(t){this.length=0,this._linkedRecords=null,this._unlinkedRecords=null,this._previousItHead=null,this._itHead=null,this._itTail=null,this._additionsHead=null,this._additionsTail=null,this._movesHead=null,this._movesTail=null,this._removalsHead=null,this._removalsTail=null,this._identityChangesHead=null,this._identityChangesTail=null,this._trackByFn=t||UM}forEachItem(t){let n;for(n=this._itHead;null!==n;n=n._next)t(n)}forEachOperation(t){let n=this._itHead,o=this._removalsHead,s=0,d=null;for(;n||o;){const p=!o||n&&n.currentIndex<w0(o,s,d)?n:o,_=w0(p,s,d),D=p.currentIndex;if(p===o)s--,o=o._nextRemoved;else if(n=n._next,null==p.previousIndex)s++;else{d||(d=[]);const O=_-s,U=D-s;if(O!=U){for(let ve=0;ve<O;ve++){const Ie=ve<d.length?d[ve]:d[ve]=0,Fe=Ie+ve;U<=Fe&&Fe<O&&(d[ve]=Ie+1)}d[p.previousIndex]=U-O}}_!==D&&t(p,_,D)}}forEachPreviousItem(t){let n;for(n=this._previousItHead;null!==n;n=n._nextPrevious)t(n)}forEachAddedItem(t){let n;for(n=this._additionsHead;null!==n;
vendor: 6,481 bytes, line 1
1n=n._nextAdded)t(n)}forEachMovedItem(t){let n;for(n=this._movesHead;null!==n;n=n._nextMoved)t(n)}forEachRemovedItem(t){let n;for(n=this._removalsHead;null!==n;n=n._nextRemoved)t(n)}forEachIdentityChange(t){let n;for(n=this._identityChangesHead;null!==n;n=n._nextIdentityChange)t(n)}diff(t){if(null==t&&(t=[]),!Kf(t))throw new ft(900,!1);return this.check(t)?this:null}onDestroy(){}check(t){this._reset();let s,d,p,n=this._itHead,o=!1;if(Array.isArray(t)){this.length=t.length;for(let _=0;_<this.length;_++)d=t[_],p=this._trackByFn(_,d),null!==n&&Object.is(n.trackById,p)?(o&&(n=this._verifyReinsertion(n,d,p,_)),Object.is(n.item,d)||this._addIdentityChange(n,d)):(n=this._mismatch(n,d,p,_),o=!0),n=n._next}else s=0,function mS(e,t){if(Array.isArray(e))for(let n=0;n<e.length;n++)t(e[n]);else{const n=e[Symbol.iterator]();let o;for(;!(o=n.next()).done;)t(o.value)}}(t,_=>{p=this._trackByFn(s,_),null!==n&&Object.is(n.trackById,p)?(o&&(n=this._verifyReinsertion(n,_,p,s)),Object.is(n.item,_)||this._addIdentityChange(n,_)):(n=this._mismatch(n,_,p,s),o=!0),n=n._next,s++}),this.length=s;return this._truncate(n),this.collection=t,this.isDirty}get isDirty(){return null!==this._additionsHead||null!==this._movesHead||null!==this._removalsHead||null!==this._identityChangesHead}_reset(){if(this.isDirty){let t;for(t=this._previousItHead=this._itHead;null!==t;t=t._next)t._nextPrevious=t._next;for(t=this._additionsHead;null!==t;t=t._nextAdded)t.previousIndex=t.currentIndex;for(this._additionsHead=this._additionsTail=null,t=this._movesHead;null!==t;t=t._nextMoved)t.previousIndex=t.currentIndex;this._movesHead=this._movesTail=null,this._removalsHead=this._removalsTail=null,this._identityChangesHead=this._identityChangesTail=null}}_mismatch(t,n,o,s){let d;return null===t?d=this._itTail:(d=t._prev,this._remove(t)),null!==(t=null===this._unlinkedRecords?null:this._unlinkedRecords.get(o,null))?(Object.is(t.item,n)||this._addIdentityChange(t,n),this._reinsertAfter(t,d,s)):null!==(t=null===this._linkedRecords?null:this._linkedRecords.get(o,s))?(Object.is(t.item,n)||this._addIdentityChange(t,n),this._moveAfter(t,d,s)):t=this._addAfter(new VM(n,o),d,s),t}_verifyReinsertion(t,n,o,s){let d=null===this._unlinkedRecords?null:this._unlinkedRecords.get(o,null);return null!==d?t=this._reinsertAfter(d,t._prev,s):t.currentIndex!=s&&(t.currentIndex=s,this._addToMoves(t,s)),t}_truncate(t){for(;null!==t;){const n=t._next;this._addToRemovals(this._unlink(t)),t=n}null!==this._unlinkedRecords&&this._unlinkedRecords.clear(),null!==this._additionsTail&&(this._additionsTail._nextAdded=null),null!==this._movesTail&&(this._movesTail._nextMoved=null),null!==this._itTail&&(this._itTail._next=null),null!==this._removalsTail&&(this._removalsTail._nextRemoved=null),null!==this._identityChangesTail&&(this._identityChangesTail._nextIdentityChange=null)}_reinsertAfter(t,n,o){null!==this._unlinkedRecords&&this._unlinkedRecords.remove(t);const s=t._prevRemoved,d=t._nextRemoved;return null===s?this._removalsHead=d:s._nextRemoved=d,null===d?this._removalsTail=s:d._prevRemoved=s,this._insertAfter(t,n,o),this._addToMoves(t,o),t}_moveAfter(t,n,o){return this._unlink(t),this._insertAfter(t,n,o),this._addToMoves(t,o),t}_addAfter(t,n,o){return this._insertAfter(t,n,o),this._additionsTail=null===this._additionsTail?this._additionsHead=t:this._additionsTail._nextAdded=t,t}_insertAfter(t,n,o){const s=null===n?this._itHead:n._next;return t._next=s,t._prev=n,null===s?this._itTail=t:s._prev=t,null===n?this._itHead=t:n._next=t,null===this._linkedRecords&&(this._linkedRecords=new S0),this._linkedRecords.put(t),t.currentIndex=o,t}_remove(t){return this._addToRemovals(this._unlink(t))}_unlink(t){null!==this._linkedRecords&&this._linkedRecords.remove(t);const n=t._prev,o=t._next;return null===n?this._itHead=o:n._next=o,null===o?this._itTail=n:o._prev=n,t}_addToMoves(t,n){return t.previousIndex===n||(this._movesTail=null===this._movesTail?this._movesHead=t:this._movesTail._nextMoved=t),t}_addToRemovals(t){return null===this._unlinkedRecords&&(this._unlinkedRecords=new S0),this._unlinkedRecords.put(t),t.currentIndex=null,t._nextRemoved=null,null===this._removalsTail?(this._removalsTail=this._removalsHead=t,t._prevRemoved=null):(t._prevRemoved=this._removalsTail,this._removalsTail=this._removalsTail._nextRemoved=t),t}_addIdentityChange(t,n){return t.item=n,this._identityChangesTail=null===this._identityChangesTail?this._identityChangesHead=t:this._identityChangesTail._nextIdentityChange=t,t}}class VM{constructor(t,n){this.item=t,this.trackById=n,this.currentIndex=null,this.previousIndex=null,this._nextPrevious=null,this._prev=null,this._next=null,this._prevDup=null,this._nextDup=null,this._prevRemoved=null,this._nextRemoved=null,this._nextAdded=null,this._nextMoved=null,this._nextIdentityChange=null}}class jM{constructor(){this._head=null,this._tail=null}add(t){null===this._head?(this._head=this._tail=t,t._nextDup=null,t._prevDup=null):(this._tail._nextDup=t,t._prevDup=this._tail,t._nextDup=null,this._tail=t)}get(t,n){let o;for(o=this._head;null!==o;o=o._nextDup)if((null===n||n<=o.currentIndex)&&Object.is(o.trackById,t))return o;return null}remove(t){const n=t._prevDup,o=t._nextDup;return null===n?this._head=o:n._nextDup=o,null===o?this._tail=n:o._prevDup=n,null===this._head}}class S0{constructor(){this.map=new Map}put(t){const n=t.trackById;let o=this.map.get(n);o||(o=new jM,this.map.set(n,o)),o.add(t)}get(t,n){const s=this.map.get(t);return s?s.get(t,n):null}remove(t){const n=t.trackById;return this.map.get(n).remove(t)&&this.map.delete(n),t}get isEmpty(){return 0===this.map.size}clear(){this.map.clear()}}function w0(e,t,n){const o=e.previousIndex;if(null===o)return o;let s=0;return n&&o<n.length&&(s=n[o]),o+t+s}class A0{constructor(){}supports(t){return t instanceof Map||Pg(t)}create(){return new $M}}class $M{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(t){let n;for(n=this._mapHead;null!==n;n=n._next)t(n)}forEachPreviousItem(t){let n;for(n=this._previousMapHead;null!==n;n=n._nextPrevious)t(n)}forEachChangedItem(t){let n;for(n=this._changesHead;null!==n;n=n._nextChanged)t(n)}forEachAddedItem(t){let n;for(n=this._additionsHead;null!==n;
1n=n._nextAdded)t(n)}forEachRemovedItem(t){let n;for(n=this._removalsHead;null!==n;n=n._nextRemoved)t(n)}diff(t){if(t){if(!(t instanceof Map||Pg(t)))throw new ft(900,!1)}else t=new Map;return this.check(t)?this:null}onDestroy(){}check(t){this._reset();let n=this._mapHead;if(this._appendAfter=null,this._forEach(t,(o,s)=>{if(n&&n.key===s)this._maybeAddToChanges(n,o),this._appendAfter=n,n=n._next;else{const d=this._getOrCreateRecordForKey(s,o);n=this._insertBeforeOrAppend(n,d)}}),n){n._prev&&(n._prev._next=null),this._removalsHead=n;for(let o=n;null!==o;o=o._nextRemoved)o===this._mapHead&&(this._mapHead=null),this._records.delete(o.key),o._nextRemoved=o._next,o.previousValue=o.currentValue,o.currentValue=null,o._prev=null,o._next=null}return this._changesTail&&(this._changesTail._nextChanged=null),this._additionsTail&&(this._additionsTail._nextAdded=null),this.isDirty}_insertBeforeOrAppend(t,n){if(t){const o=t._prev;return n._next=t,n._prev=o,t._prev=n,o&&(o._next=n),t===this._mapHead&&(this._mapHead=n),this._appendAfter=t,t}return this._appendAfter?(this._appendAfter._next=n,n._prev=this._appendAfter):this._mapHead=n,this._appendAfter=n,null}_getOrCreateRecordForKey(t,n){if(this._records.has(t)){const s=this._records.get(t);this._maybeAddToChanges(s,n);const d=s._prev,p=s._next;return d&&(d._next=p),p&&(p._prev=d),s._next=null,s._prev=null,s}const o=new GM(t);return this._records.set(t,o),o.currentValue=n,this._addToAdditions(o),o}_reset(){if(this.isDirty){let t;for(this._previousMapHead=this._mapHead,t=this._previousMapHead;null!==t;t=t._next)t._nextPrevious=t._next;for(t=this._changesHead;null!==t;t=t._nextChanged)t.previousValue=t.currentValue;for(t=this._additionsHead;null!=t;t=t._nextAdded)t.previousValue=t.currentValue;this._changesHead=this._changesTail=null,this._additionsHead=this._additionsTail=null,this._removalsHead=null}}_maybeAddToChanges(t,n){Object.is(n,t.currentValue)||(t.previousValue=t.currentValue,t.currentValue=n,this._addToChanges(t))}_addToAdditions(t){null===this._additionsHead?this._additionsHead=this._additionsTail=t:(this._additionsTail._nextAdded=t,this._additionsTail=t)}_addToChanges(t){null===this._changesHead?this._changesHead=this._changesTail=t:(this._changesTail._nextChanged=t,this._changesTail=t)}_forEach(t,n){t instanceof Map?t.forEach(n):Object.keys(t).forEach(o=>n(t[o],o))}}class GM{constructor(t){this.key=t,this.previousValue=null,this.currentValue=null,this._nextPrevious=null,this._next=null,this._prev=null,this._nextAdded=null,this._nextRemoved=null,this._nextChanged=null}}function I0(){return new Lm([new D0])}let Lm=(()=>{class e{static#e=this.\u0275prov=Me({token:e,providedIn:"root",factory:I0});constructor(n){this.factories=n}static create(n,o){if(null!=o){const s=o.factories.slice();n=n.concat(s)}return new e(n)}static extend(n){return{provide:e,useFactory:o=>e.create(n,o||I0()),deps:[[e,new fo,new oi]]}}find(n){const o=this.factories.find(s=>s.supports(n));if(null!=o)return o;throw new ft(901,!1)}}return e})();function M0(){return new Bm([new A0])}let Bm=(()=>{class e{static#e=this.\u0275prov=Me({token:e,providedIn:"root",factory:M0});constructor(n){this.factories=n}static create(n,o){if(o){const s=o.factories.slice();n=n.concat(s)}return new e(n)}static extend(n){return{provide:e,useFactory:o=>e.create(n,o||M0()),deps:[[e,new fo,new oi]]}}find(n){const o=this.factories.find(s=>s.supports(n));if(o)return o;throw new ft(901,!1)}}return e})();const zM=m0(null,"core",[]);let XM=(()=>{class e{constructor(n){}static#e=this.\u0275fac=function(o){return new(o||e)(Sr(gl))};static#t=this.\u0275mod=Na({type:e});static#n=this.\u0275inj=Ki({})}return e})();function TR(e){return"boolean"==typeof e?e:null!=e&&"false"!==e}function SR(e){const t=se(null);try{return e()}finally{se(t)}}function NR(e,t){const n=_n(e),o=t.elementInjector||ms();return new vh(n).create(o,t.projectableNodes,t.hostElement,t.environmentInjector)}function OR(e){const t=_n(e);if(!t)return null;const n=new vh(t);return{get selector(){return n.selector},get type(){return n.componentType},get inputs(){return n.inputs},get outputs(){return n.outputs},get ngContentSelectors(){return n.ngContentSelectors},get isStandalone(){return t.standalone},get isSignal(){return t.signals}}}},9417:(ct,be,I)=>{"use strict";I.d(be,{BC:()=>En,Fm:()=>gn,MJ:()=>Wn,R_:()=>jo,X1:()=>fs,Y4:()=>Pn,YN:()=>qs,YS:()=>Ei,Yp:()=>Nn,Zm:()=>De,cV:()=>Gn,cb:()=>ft,cz:()=>Le,gE:()=>It,kq:()=>he,l_:()=>kr,me:()=>Re,qT:()=>rs,tU:()=>ds,vO:()=>Mt,vS:()=>Bt,xh:()=>Vo});var c=I(4438),g=I(177),$=I(6648),Y=I(7468),q=I(6354);let ge=(()=>{class L{constructor(M,z){this._renderer=M,this._elementRef=z,this.onChange=ye=>{},this.onTouched=()=>{}}setProperty(M,z){this._renderer.setProperty(this._elementRef.nativeElement,M,z)}registerOnTouched(M){this.onTouched=M}registerOnChange(M){this.onChange=M}setDisabledState(M){this.setProperty("disabled",M)}static#e=this.\u0275fac=function(z){return new(z||L)(c.rXU(c.sFG),c.rXU(c.aKT))};static#t=this.\u0275dir=c.FsC({type:L})}return L})(),se=(()=>{class L extends ge{static#e=this.\u0275fac=(()=>{let M;return function(ye){return(M||(M=c.xGo(L)))(ye||L)}})();static#t=this.\u0275dir=c.FsC({type:L,features:[c.Vt3]})}return L})();const he=new c.nKC(""),de={provide:he,useExisting:(0,c.Rfq)(()=>De),multi:!0};let De=(()=>{class L extends se{writeValue(M){this.setProperty("checked",M)}static#e=this.\u0275fac=(()=>{let M;return function(ye){return(M||(M=c.xGo(L)))(ye||L)}})();static#t=this.\u0275dir=c.FsC({type:L,selectors:[["input","type","checkbox","formControlName",""],["input","type","checkbox","formControl",""],["input","type","checkbox","ngModel",""]],hostBindings:function(z,ye){1&z&&c.bIt("change",function(m
1n){return ye.onChange(mn.target.checked)})("blur",function(){return ye.onTouched()})},features:[c.Jv_([de]),c.Vt3]})}return L})();const ce={provide:he,useExisting:(0,c.Rfq)(()=>Re),multi:!0},we=new c.nKC("");let Re=(()=>{class L extends ge{constructor(M,z,ye){super(M,z),this._compositionMode=ye,this._composing=!1,null==this._compositionMode&&(this._compositionMode=!function ie(){const L=(0,g.QT)()?(0,g.QT)().getUserAgent():"";return/android (\d+)/.test(L.toLowerCase())}())}writeValue(M){this.setProperty("value",M??"")}_handleInput(M){(!this._compositionMode||this._compositionMode&&!this._composing)&&this.onChange(M)}_compositionStart(){this._composing=!0}_compositionEnd(M){this._composing=!1,this._compositionMode&&this.onChange(M)}static#e=this.\u0275fac=function(z){return new(z||L)(c.rXU(c.sFG),c.rXU(c.aKT),c.rXU(we,8))};static#t=this.\u0275dir=c.FsC({type:L,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,ye){1&z&&c.bIt("input",function(mn){return ye._handleInput(mn.target.value)})("blur",function(){return ye.onTouched()})("compositionstart",function(){return ye._compositionStart()})("compositionend",function(mn){return ye._compositionEnd(mn.target.value)})},features:[c.Jv_([ce]),c.Vt3]})}return L})();function Be(L){return null==L||("string"==typeof L||Array.isArray(L))&&0===L.length}function ut(L){return null!=L&&"number"==typeof L.length}const Le=new c.nKC(""),gt=new c.nKC("");function F(L){return Be(L.value)?{required:!0}:null}function _e(L){return null}function Tt(L){return null!=L}function vt(L){return(0,c.jNT)(L)?(0,$.H)(L):L}function Yt(L){let B={};return L.forEach(M=>{B=null!=M?{...B,...M}:B}),0===Object.keys(B).length?null:B}function $e(L,B){return B.map(M=>M(L))}function le(L){return L.map(B=>function At(L){return!L.validate}(B)?B:M=>B.validate(M))}function ae(L){return null!=L?function Q(L){if(!L)return null;const B=L.filter(Tt);return 0==B.length?null:function(M){return Yt($e(M,B))}}(le(L)):null}function Ce(L){return null!=L?function Z(L){if(!L)return null;const B=L.filter(Tt);return 0==B.length?null:function(M){const z=$e(M,B).map(vt);return(0,Y.p)(z).pipe((0,q.T)(Yt))}}(le(L)):null}function Ue(L,B){return null===L?[B]:Array.isArray(L)?[...L,B]:[L,B]}function ke(L){return L._rawValidators}function lt(L){return L._rawAsyncValidators}function Ht(L){return L?Array.isArray(L)?L:[L]:[]}function Ne(L,B){return Array.isArray(L)?L.includes(B):L===B}function Ee(L,B){const M=Ht(B);return Ht(L).forEach(ye=>{Ne(M,ye)||M.push(ye)}),M}function Qe(L,B){return Ht(B).filter(M=>!Ne(L,M))}class ze{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(B){this._rawValidators=B||[],this._composedValidatorFn=ae(this._rawValidators)}_setAsyncValidators(B){this._rawAsyncValidators=B||[],this._composedAsyncValidatorFn=Ce(this._rawAsyncValidators)}get validator(){return this._composedValidatorFn||null}get asyncValidator(){return this._composedAsyncValidatorFn||null}_registerOnDestroy(B){this._onDestroyCallbacks.push(B)}_invokeOnDestroyCallbacks(){this._onDestroyCallbacks.forEach(B=>B()),this._onDestroyCallbacks=[]}reset(B=void 0){this.control&&this.control.reset(B)}hasError(B,M){return!!this.control&&this.control.hasError(B,M)}getError(B,M){return this.control?this.control.getError(B,M):null}}class ot extends ze{get formDirective(){return null}get path(){return null}}class Mt extends ze{constructor(){super(...arguments),this._parent=null,this.name=null,this.valueAccessor=null}}class dn{constructor(B){this._cd=B}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}
1get isInvalid(){return!!this._cd?.control?.invalid}get isPending(){return!!this._cd?.control?.pending}get isSubmitted(){return!!this._cd?.submitted}}let En=(()=>{class L extends dn{constructor(M){super(M)}static#e=this.\u0275fac=function(z){return new(z||L)(c.rXU(Mt,2))};static#t=this.\u0275dir=c.FsC({type:L,selectors:[["","formControlName",""],["","ngModel",""],["","formControl",""]],hostVars:14,hostBindings:function(z,ye){2&z&&c.AVh("ng-untouched",ye.isUntouched)("ng-touched",ye.isTouched)("ng-pristine",ye.isPristine)("ng-dirty",ye.isDirty)("ng-valid",ye.isValid)("ng-invalid",ye.isInvalid)("ng-pending",ye.isPending)},features:[c.Vt3]})}return L})(),ft=(()=>{class L extends dn{constructor(M){super(M)}static#e=this.\u0275fac=function(z){return new(z||L)(c.rXU(ot,10))};static#t=this.\u0275dir=c.FsC({type:L,selectors:[["","formGroupName",""],["","formArrayName",""],["","ngModelGroup",""],["","formGroup",""],["form",3,"ngNoForm",""],["","ngForm",""]],hostVars:16,hostBindings:function(z,ye){2&z&&c.AVh("ng-untouched",ye.isUntouched)("ng-touched",ye.isTouched)("ng-pristine",ye.isPristine)("ng-dirty",ye.isDirty)("ng-valid",ye.isValid)("ng-invalid",ye.isInvalid)("ng-pending",ye.isPending)("ng-submitted",ye.isSubmitted)},features:[c.Vt3]})}return L})();const cn="VALID",Kt="INVALID",Wt="PENDING",jr="DISABLED";function Jr(L){return(Oe(L)?L.validators:L)||null}function $n(L,B){return(Oe(B)?B.asyncValidators:L)||null}function Oe(L){return null!=L&&!Array.isArray(L)&&"object"==typeof L}function J(L,B,M){const z=L.controls;if(!(B?Object.keys(z):z).length)throw new c.wOt(1e3,"");if(!z[M])throw new c.wOt(1001,"")}function me(L,B,M){L._forEachChild((z,ye)=>{if(void 0===M[ye])throw new c.wOt(1002,"")})}class qe{constructor(B,M){this._pendingDirty=!1,this._hasOwnPendingAsyncValidator=!1,this._pendingTouched=!1,this._onCollectionChange=()=>{},this._parent=null,this.pristine=!0,this.touched=!1,this._onDisabledChange=[],this._assignValidators(B),this._assignAsyncValidators(M)}get validator(){return this._composedValidatorFn}set validator(B){this._rawValidators=this._composedValidatorFn=B}get asyncValidator(){return this._composedAsyncValidatorFn}set asyncValidator(B){this._rawAsyncValidators=this._composedAsyncValidatorFn=B}get parent(){return this._parent}get valid(){return this.status===cn}get invalid(){return this.status===Kt}get pending(){return this.status==Wt}get disabled(){return this.status===jr}get enabled(){return this.status!==jr}get dirty(){return!this.pristine}get untouched(){return!this.touched}get updateOn(){return this._updateOn?this._updateOn:this.parent?this.parent.updateOn:"change"}setValidators(B){this._assignValidators(B)}setAsyncValidators(B){this._assignAsyncValidators(B)}addValidators(B){this.setValidators(Ee(B,this._rawValidators))}addAsyncValidators(B){this.setAsyncValidators(Ee(B,this._rawAsyncValidators))}removeValidators(B){this.setValidators(Qe(B,this._rawValidators))}removeAsyncValidators(B){this.setAsyncValidators(Qe(B,this._rawAsyncValidators))}hasValidator(B){return Ne(this._rawValidators,B)}hasAsyncValidator(B){return Ne(this._rawAsyncValidators,B)}clearValidators(){this.validator=null}clearAsyncValidators(){this.asyncValidator=null}markAsTouched(B={}){this.touched=!0,this._parent&&!B.onlySelf&&this._parent.markAsTouched(B)}markAllAsTouched(){this.markAsTouched({onlySelf:!0}),this._forEachChild(B=>B.markAllAsTouched())}markAsUntouched(B={}){this.touched=!1,this._pendingTouched=!1,this._forEachChild(M=>{M.markAsUntouched({onlySelf:!0})}),this._parent&&!B.onlySelf&&this._parent._updateTouched(B)}markAsDirty(B={}){this.pristine=!1,this._parent&&!B.onlySelf&&this._parent.markAsDirty(B)}markAsPristine(B={}){this.pristine=!0,this._pendingDirty=!1,this._forEachChild(M=>{M.markAsPristine({onlySelf:!0})}),this._parent&&!B.onlySelf&&this._parent._updatePristine(B)}markAsPending(B={}){this.status=Wt,!1!==B.emitEvent&&this.statusChanges.emit(this.status),this._parent&&!B.onlySelf&&this._parent.markAsPending(B)}disable(B={}){const M=this._parentMarkedDirty(B.onlySelf);this.status=jr,this.errors=null,this._forEachChild(z=>{z.disable({...B,onlySelf:!0})}
1),this._updateValue(),!1!==B.emitEvent&&(this.valueChanges.emit(this.value),this.statusChanges.emit(this.status)),this._updateAncestors({...B,skipPristineCheck:M}),this._onDisabledChange.forEach(z=>z(!0))}enable(B={}){const M=this._parentMarkedDirty(B.onlySelf);this.status=cn,this._forEachChild(z=>{z.enable({...B,onlySelf:!0})}),this.updateValueAndValidity({onlySelf:!0,emitEvent:B.emitEvent}),this._updateAncestors({...B,skipPristineCheck:M}),this._onDisabledChange.forEach(z=>z(!1))}_updateAncestors(B){this._parent&&!B.onlySelf&&(this._parent.updateValueAndValidity(B),B.skipPristineCheck||this._parent._updatePristine(),this._parent._updateTouched())}setParent(B){this._parent=B}getRawValue(){return this.value}updateValueAndValidity(B={}){this._setInitialStatus(),this._updateValue(),this.enabled&&(this._cancelExistingSubscription(),this.errors=this._runValidator(),this.status=this._calculateStatus(),(this.status===cn||this.status===Wt)&&this._runAsyncValidator(B.emitEvent)),!1!==B.emitEvent&&(this.valueChanges.emit(this.value),this.statusChanges.emit(this.status)),this._parent&&!B.onlySelf&&this._parent.updateValueAndValidity(B)}_updateTreeValidity(B={emitEvent:!0}){this._forEachChild(M=>M._updateTreeValidity(B)),this.updateValueAndValidity({onlySelf:!0,emitEvent:B.emitEvent})}_setInitialStatus(){this.status=this._allControlsDisabled()?jr:cn}_runValidator(){return this.validator?this.validator(this):null}_runAsyncValidator(B){if(this.asyncValidator){this.status=Wt,this._hasOwnPendingAsyncValidator=!0;const M=vt(this.asyncValidator(this));this._asyncValidationSubscription=M.subscribe(z=>{this._hasOwnPendingAsyncValidator=!1,this.setErrors(z,{emitEvent:B})})}}_cancelExistingSubscription(){this._asyncValidationSubscription&&(this._asyncValidationSubscription.unsubscribe(),this._hasOwnPendingAsyncValidator=!1)}setErrors(B,M={}){this.errors=B,this._updateControlsErrors(!1!==M.emitEvent)}get(B){let M=B;return null==M||(Array.isArray(M)||(M=M.split(".")),0===M.length)?null:M.reduce((z,ye)=>z&&z._find(ye),this)}getError(B,M){const z=M?this.get(M):this;return z&&z.errors?z.errors[B]:null}hasError(B,M){return!!this.getError(B,M)}get root(){let B=this;for(;B._parent;)B=B._parent;return B}_updateControlsErrors(B){this.status=this._calculateStatus(),B&&this.statusChanges.emit(this.status),this._parent&&this._parent._updateControlsErrors(B)}_initObservables(){this.valueChanges=new c.bkB,this.statusChanges=new c.bkB}_calculateStatus(){return this._allControlsDisabled()?jr:this.errors?Kt:this._hasOwnPendingAsyncValidator||this._anyControlsHaveStatus(Wt)?Wt:this._anyControlsHaveStatus(Kt)?Kt:cn}_anyControlsHaveStatus(B){return this._anyControls(M=>M.status===B)}_anyControlsDirty(){return this._anyControls(B=>B.dirty)}_anyControlsTouched(){return this._anyControls(B=>B.touched)}_updatePristine(B={}){this.pristine=!this._anyControlsDirty(),this._parent&&!B.onlySelf&&this._parent._updatePristine(B)}_updateTouched(B={}){this.touched=this._anyControlsTouched(),this._parent&&!B.onlySelf&&this._parent._updateTouched(B)}_registerOnCollectionChange(B){this._onCollectionChange=B}_setUpdateStrategy(B){Oe(B)&&null!=B.updateOn&&(this._updateOn=B.updateOn)}_parentMarkedDirty(B){return!B&&!(!this._parent||!this._parent.dirty)&&!this._parent._anyControlsDirty()}_find(B){return null}_assignValidators(B){this._rawValidators=Array.isArray(B)?B.slice():B,this._composedValidatorFn=function Yi(L){return Array.isArray(L)?ae(L):L||null}(this._rawValidators)}_assignAsyncValidators(B){this._rawAsyncValidators=Array.isArray(B)?B.slice():B,this._composedAsyncValidatorFn=function Te(L){return Array.isArray(L)?Ce(L):L||null}(this._rawAsyncValidators)}}class It extends qe{constructor(B,M,z){super(Jr(M),$n(z,M)),this.controls=B,this._initObservables(),this._setUpdateStrategy(M),this._setUpControls(),this.updateValueAndValidity({onlySelf:!0,emitEvent:!!this.asyncValidator})}registerControl(B,M){return this.controls[B]?this.controls[B]:(this.controls[B]=M,M.setParent(this),M._registerOnCollectionChange(this._onCollectionChange),M)}addControl(B,M,z={}
1){this.registerControl(B,M),this.updateValueAndValidity({emitEvent:z.emitEvent}),this._onCollectionChange()}removeControl(B,M={}){this.controls[B]&&this.controls[B]._registerOnCollectionChange(()=>{}),delete this.controls[B],this.updateValueAndValidity({emitEvent:M.emitEvent}),this._onCollectionChange()}setControl(B,M,z={}){this.controls[B]&&this.controls[B]._registerOnCollectionChange(()=>{}),delete this.controls[B],M&&this.registerControl(B,M),this.updateValueAndValidity({emitEvent:z.emitEvent}),this._onCollectionChange()}contains(B){return this.controls.hasOwnProperty(B)&&this.controls[B].enabled}setValue(B,M={}){me(this,0,B),Object.keys(B).forEach(z=>{J(this,!0,z),this.controls[z].setValue(B[z],{onlySelf:!0,emitEvent:M.emitEvent})}),this.updateValueAndValidity(M)}patchValue(B,M={}){null!=B&&(Object.keys(B).forEach(z=>{const ye=this.controls[z];ye&&ye.patchValue(B[z],{onlySelf:!0,emitEvent:M.emitEvent})}),this.updateValueAndValidity(M))}reset(B={},M={}){this._forEachChild((z,ye)=>{z.reset(B?B[ye]:null,{onlySelf:!0,emitEvent:M.emitEvent})}),this._updatePristine(M),this._updateTouched(M),this.updateValueAndValidity(M)}getRawValue(){return this._reduceChildren({},(B,M,z)=>(B[z]=M.getRawValue(),B))}_syncPendingControls(){let B=this._reduceChildren(!1,(M,z)=>!!z._syncPendingControls()||M);return B&&this.updateValueAndValidity({onlySelf:!0}),B}_forEachChild(B){Object.keys(this.controls).forEach(M=>{const z=this.controls[M];z&&B(z,M)})}_setUpControls(){this._forEachChild(B=>{B.setParent(this),B._registerOnCollectionChange(this._onCollectionChange)})}_updateValue(){this.value=this._reduceValue()}_anyControls(B){for(const[M,z]of Object.entries(this.controls))if(this.contains(M)&&B(z))return!0;return!1}_reduceValue(){return this._reduceChildren({},(M,z,ye)=>((z.enabled||this.disabled)&&(M[ye]=z.value),M))}_reduceChildren(B,M){let z=B;return this._forEachChild((ye,jt)=>{z=M(z,ye,jt)}),z}_allControlsDisabled(){for(const B of Object.keys(this.controls))if(this.controls[B].enabled)return!1;return Object.keys(this.controls).length>0||this.disabled}_find(B){return this.controls.hasOwnProperty(B)?this.controls[B]:null}}const vr=new c.nKC("CallSetDisabledState",{providedIn:"root",factory:()=>Mi}),Mi="always";function zr(L,B){return[...B.path,L]}function Zi(L,B,M=Mi){$i(L,B),B.valueAccessor.writeValue(L.value),(L.disabled||"always"===M)&&B.valueAccessor.setDisabledState?.(L.disabled),function Do(L,B){B.valueAccessor.registerOnChange(M=>{L._pendingValue=M,L._pendingChange=!0,L._pendingDirty=!0,"change"===L.updateOn&&Me(L,B)})}(L,B),function Gi(L,B){const M=(z,ye)=>{B.valueAccessor.writeValue(z),ye&&B.viewToModelUpdate(z)};L.registerOnChange(M),B._registerOnDestroy(()=>{L._unregisterOnChange(M)})}(L,B),function uo(L,B){B.valueAccessor.registerOnTouched(()=>{L._pendingTouched=!0,"blur"===L.updateOn&&L._pendingChange&&Me(L,B),"submit"!==L.updateOn&&L.markAsTouched()})}(L,B),function To(L,B){if(B.valueAccessor.setDisabledState){const M=z=>{B.valueAccessor.setDisabledState(z)};L.registerOnDisabledChange(M),B._registerOnDestroy(()=>{L._unregisterOnDisabledChange(M)})}}(L,B)}function Vn(L,B,M=!0){const z=()=>{};B.valueAccessor&&(B.valueAccessor.registerOnChange(z),B.valueAccessor.registerOnTouched(z)),function yi(L,B){let M=!1;if(null!==L){if(null!==B.validator){const ye=ke(L);if(Array.isArray(ye)&&ye.length>0){const jt=ye.filter(mn=>mn!==B.validator);jt.length!==ye.length&&(M=!0,L.setValidators(jt))}}if(null!==B.asyncValidator){const ye=lt(L);if(Array.isArray(ye)&&ye.length>0){const jt=ye.filter(mn=>mn!==B.asyncValidator);jt.length!==ye.length&&(M=!0,L.setAsyncValidators(jt))}}}const z=()=>{};return Lt(B._rawValidators,z),Lt(B._rawAsyncValidators,z),M}(L,B),L&&(B._invokeOnDestroyCallbacks(),L._registerOnCollectionChange(()=>{}))}function Lt(L,B){L.forEach(M=>{M.registerOnValidatorChange&&M.registerOnValidatorChange(B)})}function $i(L,B){const M=ke(L);null!==B.validator?L.setValidators(Ue(M,B.validator)):"function"==typeof M&&L.setValidators([M]);const z=lt(L);null!==B.asyncValidator?L.setAsyncValidators(Ue(z,B.asyncValidator)):"function"==typeof z&&L.setAsyncValidators([z]);const ye=()=>
1L.updateValueAndValidity();Lt(B._rawValidators,ye),Lt(B._rawAsyncValidators,ye)}function Me(L,B){L._pendingDirty&&L.markAsDirty(),L.setValue(L._pendingValue,{emitModelToViewChange:!1}),B.viewToModelUpdate(L._pendingValue),L._pendingChange=!1}function ee(L,B){if(!L.hasOwnProperty("model"))return!1;const M=L.model;return!!M.isFirstChange()||!Object.is(B,M.currentValue)}function Ge(L,B){if(!B)return null;let M,z,ye;return Array.isArray(B),B.forEach(jt=>{jt.constructor===Re?M=jt:function fe(L){return Object.getPrototypeOf(L.constructor)===se}(jt)?z=jt:ye=jt}),ye||z||M||null}const sn={provide:ot,useExisting:(0,c.Rfq)(()=>Gn)},Vt=Promise.resolve();let Gn=(()=>{class L extends ot{constructor(M,z,ye){super(),this.callSetDisabledState=ye,this.submitted=!1,this._directives=new Set,this.ngSubmit=new c.bkB,this.form=new It({},ae(M),Ce(z))}ngAfterViewInit(){this._setUpdateStrategy()}get formDirective(){return this}get control(){return this.form}get path(){return[]}get controls(){return this.form.controls}addControl(M){Vt.then(()=>{const z=this._findContainer(M.path);M.control=z.registerControl(M.name,M.control),Zi(M.control,M,this.callSetDisabledState),M.control.updateValueAndValidity({emitEvent:!1}),this._directives.add(M)})}getControl(M){return this.form.get(M.path)}
1removeControl(M){Vt.then(()=>{const z=this._findContainer(M.path);z&&z.removeControl(M.name),this._directives.delete(M)})}addFormGroup(M){Vt.then(()=>{const z=this._findContainer(M.path),ye=new It({});(function Ki(L,B){$i(L,B)})(ye,M),z.registerControl(M.name,ye),ye.updateValueAndValidity({emitEvent:!1})})}removeFormGroup(M){Vt.then(()=>{const z=this._findContainer(M.path);z&&z.removeControl(M.name)})}getFormGroup(M){return this.form.get(M.path)}updateModel(M,z){Vt.then(()=>{this.form.get(M.path).setValue(z)})}setValue(M){this.control.setValue(M)}onSubmit(M){return this.submitted=!0,function Xe(L,B){L._syncPendingControls(),B.forEach(M=>{const z=M.control;"submit"===z.updateOn&&z._pendingChange&&(M.viewToModelUpdate(z._pendingValue),z._pendingChange=!1)})}(this.form,this._directives),this.ngSubmit.emit(M),"dialog"===M?.target?.method}onReset(){this.resetForm()}resetForm(M=void 0){this.form.reset(M),this.submitted=!1}_setUpdateStrategy(){this.options&&null!=this.options.updateOn&&(this.form._updateOn=this.options.updateOn)}_findContainer(M){return M.pop(),M.length?this.form.get(M):this.form}static#e=this.\u0275fac=function(z){return new(z||L)(c.rXU(Le,10),c.rXU(gt,10),c.rXU(vr,8))};static#t=this.\u0275dir=c.FsC({type:L,selectors:[["form",3,"ngNoForm","",3,"formGroup",""],["ng-form"],["","ngForm",""]],hostBindings:function(z,ye){1&z&&c.bIt("submit",function(mn){return ye.onSubmit(mn)})("reset",function(){return ye.onReset()})},inputs:{options:[c.Mj6.None,"ngFormOptions","options"]},outputs:{ngSubmit:"ngSubmit"},exportAs:["ngForm"],features:[c.Jv_([sn]),c.Vt3]})}return L})();function sr(L,B){const M=L.indexOf(B);M>-1&&L.splice(M,1)}function Ln(L){return"object"==typeof L&&null!==L&&2===Object.keys(L).length&&"value"in L&&"disabled"in L}const Wn=class extends qe{constructor(B=null,M,z){super(Jr(M),$n(z,M)),this.defaultValue=null,this._onChange=[],this._pendingChange=!1,this._applyFormState(B),this._setUpdateStrategy(M),this._initObservables(),this.updateValueAndValidity({onlySelf:!0,emitEvent:!!this.asyncValidator}),Oe(M)&&(M.nonNullable||M.initialValueIsDefault)&&(this.defaultValue=Ln(B)?B.value:B)}setValue(B,M={}){this.value=this._pendingValue=B,this._onChange.length&&!1!==M.emitModelToViewChange&&this._onChange.forEach(z=>z(this.value,!1!==M.emitViewToModelChange)),this.updateValueAndValidity(M)}patchValue(B,M={}){this.setValue(B,M)}reset(B=this.defaultValue,M={}){this._applyFormState(B),this.markAsPristine(M),this.markAsUntouched(M),this.setValue(this.value,M),this._pendingChange=!1}_updateValue(){}_anyControls(B){return!1}_allControlsDisabled(){return this.disabled}registerOnChange(B){this._onChange.push(B)}_unregisterOnChange(B){sr(this._onChange,B)}registerOnDisabledChange(B){this._onDisabledChange.push(B)}_unregisterOnDisabledChange(B){sr(this._onDisabledChange,B)}_forEachChild(B){}_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(B){Ln(B)?(this.value=this._pendingValue=B.value,B.disabled?this.disable({onlySelf:!0,emitEvent:!1}):this.enable({onlySelf:!0,emitEvent:!1})):this.value=this._pendingValue=B}};let Tn=(()=>{class L extends ot{ngOnInit(){this._checkParentType(),this.formDirective.addFormGroup(this)}ngOnDestroy(){this.formDirective&&this.formDirective.removeFormGroup(this)}get control(){return this.formDirective.getFormGroup(this)}get path(){return zr(null==this.name?this.name:this.name.toString(),this._parent)}get formDirective(){return this._parent?this._parent.formDirective:null}_checkParentType(){}static#e=this.\u0275fac=(()=>{let M;return function(ye){return(M||(M=c.xGo(L)))(ye||L)}})();static#t=this.\u0275dir=c.FsC({type:L,features:[c.Vt3]})}return L})();const Qn={provide:ot,useExisting:(0,c.Rfq)(()=>Pn)};let Pn=(()=>{class L extends Tn{constructor(M,z,ye){super(),this.name="",this._parent=M,this._setValidators(z),this._setAsyncValidators(ye)}_checkParentType(){}static#e=this.\u0275fac=function(z){return new(z||L)(c.rXU(ot,5),c.rXU(Le,10),c.rXU(gt,10))};static#t=this.\u0275dir=c.FsC({type:L,selectors:[["","ngModelGroup",""]],inputs:{name:[c.Mj6.None,"ngModelGroup","name"]},exportAs:["ngModelGroup"],features:[c.Jv_([Qn]),c.Vt3]})}return L})();const pr={provide:Mt,useExisting:(0,c.Rfq)(()=>Bt)},zt=Promise.resolve();let Bt=(()=>{class L extends Mt{constructor(M,z,ye,jt,mn,Xi){super(),this._changeDetectorRef=mn,this.callSetDisabledState=Xi,this.control=new Wn,this._registered=!1,this.name="",this.update=new c.bkB,this._parent=M,this._setValidators(z),this._setAsyncValidators(ye),this.valueAccessor=Ge(0,jt)}
1ngOnChanges(M){if(this._checkForErrors(),!this._registered||"name"in M){if(this._registered&&(this._checkName(),this.formDirective)){const z=M.name.previousValue;this.formDirective.removeControl({name:z,path:this._getPath(z)})}this._setUpControl()}"isDisabled"in M&&this._updateDisabled(M),ee(M,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(M){this.viewModel=M,this.update.emit(M)}_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(){Zi(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(M){zt.then(()=>{this.control.setValue(M,{emitViewToModelChange:!1}),this._changeDetectorRef?.markForCheck()})}_updateDisabled(M){const z=M.isDisabled.currentValue,ye=0!==z&&(0,c.L39)(z);zt.then(()=>{ye&&!this.control.disabled?this.control.disable():!ye&&this.control.disabled&&this.control.enable(),this._changeDetectorRef?.markForCheck()})}_getPath(M){return this._parent?zr(M,this._parent):[M]}static#e=this.\u0275fac=function(z){return new(z||L)(c.rXU(ot,9),c.rXU(Le,10),c.rXU(gt,10),c.rXU(he,10),c.rXU(c.gRc,8),c.rXU(vr,8))};static#t=this.\u0275dir=c.FsC({type:L,selectors:[["","ngModel","",3,"formControlName","",3,"formControl",""]],inputs:{name:"name",isDisabled:[c.Mj6.None,"disabled","isDisabled"],model:[c.Mj6.None,"ngModel","model"],options:[c.Mj6.None,"ngModelOptions","options"]},outputs:{update:"ngModelChange"},exportAs:["ngModel"],features:[c.Jv_([pr]),c.Vt3,c.OA$]})}return L})(),rs=(()=>{class L{static#e=this.\u0275fac=function(z){return new(z||L)};static#t=this.\u0275dir=c.FsC({type:L,selectors:[["form",3,"ngNoForm","",3,"ngNativeValidate",""]],hostAttrs:["novalidate",""]})}return L})();const Da={provide:he,useExisting:(0,c.Rfq)(()=>gn),multi:!0};let Lo=(()=>{class L{constructor(){this._accessors=[]}add(M,z){this._accessors.push([M,z])}remove(M){for(let z=this._accessors.length-1;z>=0;--z)if(this._accessors[z][1]===M)return void this._accessors.splice(z,1)}select(M){this._accessors.forEach(z=>{this._isSameGroup(z,M)&&z[1]!==M&&z[1].fireUncheck(M.value)})}_isSameGroup(M,z){return!!M[0].control&&M[0]._parent===z._control._parent&&M[1].name===z.name}static#e=this.\u0275fac=function(z){return new(z||L)};static#t=this.\u0275prov=c.jDH({token:L,factory:L.\u0275fac,providedIn:"root"})}return L})(),gn=(()=>{class L extends se{constructor(M,z,ye,jt){super(M,z),this._registry=ye,this._injector=jt,this.setDisabledStateFired=!1,this.onChange=()=>{},this.callSetDisabledState=(0,c.WQX)(vr,{optional:!0})??Mi}ngOnInit(){this._control=this._injector.get(Mt),this._checkName(),this._registry.add(this._control,this)}ngOnDestroy(){this._registry.remove(this)}writeValue(M){this._state=M===this.value,this.setProperty("checked",this._state)}registerOnChange(M){this._fn=M,this.onChange=()=>{M(this.value),this._registry.select(this)}}setDisabledState(M){(this.setDisabledStateFired||M||"whenDisabledForLegacyCode"===this.callSetDisabledState)&&this.setProperty("disabled",M),this.setDisabledStateFired=!0}fireUncheck(M){this.writeValue(M)}_checkName(){!this.name&&this.formControlName&&(this.name=this.formControlName)}static#e=this.\u0275fac=function(z){return new(z||L)(c.rXU(c.sFG),c.rXU(c.aKT),c.rXU(Lo),c.rXU(c.zZn))};static#t=this.\u0275dir=c.FsC({type:L,selectors:[["input","type","radio","formControlName",""],["input","type","radio","formControl",""],["input","type","radio","ngModel",""]],hostBindings:function(z,ye){1&z&&c.bIt("change",function(){return ye.onChange()})("blur",function(){return ye.onTouched()})},inputs:{name:"name",formControlName:"formControlName",value:"value"},features:[c.Jv_([Da]),c.Vt3]})}return L})();const dt=new c.nKC(""),os={provide:Mt,useExisting:(0,c.Rfq)(()=>kr)};let kr=(()=>{class L extends Mt{set isDisabled(M){}static#e=this._ngModelWarningSentOnce=!1;constructor(M,z,ye,jt,mn){super(),this._ngModelWarningConfig=jt,this.callSetDisabledState=mn,this.update=new c.bkB,this._ngModelWarningSent=!1,this._setValidators(M),this._setAsyncValidators(z),this.valueAccessor=Ge(0,ye)}
1ngOnChanges(M){if(this._isControlChanged(M)){const z=M.form.previousValue;z&&Vn(z,this,!1),Zi(this.form,this,this.callSetDisabledState),this.form.updateValueAndValidity({emitEvent:!1})}ee(M,this.viewModel)&&(this.form.setValue(this.model),this.viewModel=this.model)}ngOnDestroy(){this.form&&Vn(this.form,this,!1)}get path(){return[]}get control(){return this.form}viewToModelUpdate(M){this.viewModel=M,this.update.emit(M)}_isControlChanged(M){return M.hasOwnProperty("form")}static#t=this.\u0275fac=function(z){return new(z||L)(c.rXU(Le,10),c.rXU(gt,10),c.rXU(he,10),c.rXU(dt,8),c.rXU(vr,8))};static#n=this.\u0275dir=c.FsC({type:L,selectors:[["","formControl",""]],inputs:{form:[c.Mj6.None,"formControl","form"],isDisabled:[c.Mj6.None,"disabled","isDisabled"],model:[c.Mj6.None,"ngModel","model"]},outputs:{update:"ngModelChange"},exportAs:["ngForm"],features:[c.Jv_([os]),c.Vt3,c.OA$]})}return L})();function Uo(L){return"number"==typeof L?L:parseInt(L,10)}let oi=(()=>{class L{constructor(){this._validator=_e}ngOnChanges(M){if(this.inputName in M){const z=this.normalizeInput(M[this.inputName].currentValue);this._enabled=this.enabled(z),this._validator=this._enabled?this.createValidator(z):_e,this._onChange&&this._onChange()}}validate(M){return this._validator(M)}registerOnValidatorChange(M){this._onChange=M}enabled(M){return null!=M}static#e=this.\u0275fac=function(z){return new(z||L)};static#t=this.\u0275dir=c.FsC({type:L,features:[c.OA$]})}return L})();const eo={provide:Le,useExisting:(0,c.Rfq)(()=>Ei),multi:!0};let Ei=(()=>{class L extends oi{constructor(){super(...arguments),this.inputName="required",this.normalizeInput=c.L39,this.createValidator=M=>F}enabled(M){return M}static#e=this.\u0275fac=(()=>{let M;return function(ye){return(M||(M=c.xGo(L)))(ye||L)}})();static#t=this.\u0275dir=c.FsC({type:L,selectors:[["","required","","formControlName","",3,"type","checkbox"],["","required","","formControl","",3,"type","checkbox"],["","required","","ngModel","",3,"type","checkbox"]],hostVars:1,hostBindings:function(z,ye){2&z&&c.BMQ("required",ye._enabled?"":null)},inputs:{required:"required"},features:[c.Jv_([eo]),c.Vt3]})}return L})();const us={provide:Le,useExisting:(0,c.Rfq)(()=>Vo),multi:!0};let Vo=(()=>{class L extends oi{constructor(){super(...arguments),this.inputName="minlength",this.normalizeInput=M=>Uo(M),this.createValidator=M=>function nt(L){return B=>Be(B.value)||!ut(B.value)?null:B.value.length<L?{minlength:{requiredLength:L,actualLength:B.value.length}}:null}(M)}static#e=this.\u0275fac=(()=>{let M;return function(ye){return(M||(M=c.xGo(L)))(ye||L)}})();static#t=this.\u0275dir=c.FsC({type:L,selectors:[["","minlength","","formControlName",""],["","minlength","","formControl",""],["","minlength","","ngModel",""]],hostVars:1,hostBindings:function(z,ye){2&z&&c.BMQ("minlength",ye._enabled?ye.minlength:null)},inputs:{minlength:"minlength"},features:[c.Jv_([us]),c.Vt3]})}return L})();const Qs={provide:Le,useExisting:(0,c.Rfq)(()=>ds),multi:!0};let ds=(()=>{class L extends oi{constructor(){super(...arguments),this.inputName="maxlength",this.normalizeInput=M=>Uo(M),this.createValidator=M=>function Ve(L){return B=>ut(B.value)&&B.value.length>L?{maxlength:{requiredLength:L,actualLength:B.value.length}}:null}(M)}static#e=this.\u0275fac=(()=>{let M;return function(ye){return(M||(M=c.xGo(L)))(ye||L)}})();static#t=this.\u0275dir=c.FsC({type:L,selectors:[["","maxlength","","formControlName",""],["","maxlength","","formControl",""],["","maxlength","","ngModel",""]],hostVars:1,hostBindings:function(z,ye){2&z&&c.BMQ("maxlength",ye._enabled?ye.maxlength:null)},inputs:{maxlength:"maxlength"},features:[c.Jv_([Qs]),c.Vt3]})}return L})();const si={provide:Le,useExisting:(0,c.Rfq)(()=>jo),multi:!0};let jo=(()=>{class L extends oi{constructor(){super(...arguments),this.inputName="pattern",this.normalizeInput=M=>M,this.createValidator=M=>function te(L){if(!L)return _e;let B,M;return"string"==typeof L?(M="","^"!==L.charAt(0)&&(M+="^"),M+=L,"$"!==L.charAt(L.length-1)&&(M+="$"),B=new RegExp(M)):(M=L.toString(),B=L),z=>{if(Be(z.value))return null;const ye=z.value;return B.test(ye)?null:{pattern:{requiredPattern:M,actualValue:ye}}}}(M)}static#e=this.\u0275fac=(()=>{let M;return function(ye){return(M||(M=c.xGo(L)))(ye||L)}})();static#t=this.\u0275dir=c.FsC({type:L,selectors:[["","pattern","","formControlName",""],["","pattern","","formControl",""],["","pattern","","ngModel",""]],hostVars:1,hostBindings:function(z,ye){2&z&&c.BMQ("pattern",ye._enabled?ye.pattern:null)},inputs:{pattern:"pattern"},features:[c.Jv_([si]),c.Vt3]})}return L})(),hi=(()=>{class L{static#e=this.\u0275fac=function(z){return new(z||L)};static#t=this.\u0275mod=c.$C({type:L});static#n=this.\u0275inj=c.G2t({})}return L})();class Nn extends qe{constructor(B,M,z){super(Jr(M),$n(z,M)),this.controls=B,this._initOb
1servables(),this._setUpdateStrategy(M),this._setUpControls(),this.updateValueAndValidity({onlySelf:!0,emitEvent:!!this.asyncValidator})}at(B){return this.controls[this._adjustIndex(B)]}push(B,M={}){this.controls.push(B),this._registerControl(B),this.updateValueAndValidity({emitEvent:M.emitEvent}),this._onCollectionChange()}insert(B,M,z={}){this.controls.splice(B,0,M),this._registerControl(M),this.updateValueAndValidity({emitEvent:z.emitEvent})}removeAt(B,M={}){let z=this._adjustIndex(B);z<0&&(z=0),this.controls[z]&&this.controls[z]._registerOnCollectionChange(()=>{}),this.controls.splice(z,1),this.updateValueAndValidity({emitEvent:M.emitEvent})}setControl(B,M,z={}){let ye=this._adjustIndex(B);ye<0&&(ye=0),this.controls[ye]&&this.controls[ye]._registerOnCollectionChange(()=>{}),this.controls.splice(ye,1),M&&(this.controls.splice(ye,0,M),this._registerControl(M)),this.updateValueAndValidity({emitEvent:z.emitEvent}),this._onCollectionChange()}get length(){return this.controls.length}setValue(B,M={}){me(this,0,B),B.forEach((z,ye)=>{J(this,!1,ye),this.at(ye).setValue(z,{onlySelf:!0,emitEvent:M.emitEvent})}),this.updateValueAndValidity(M)}patchValue(B,M={}){null!=B&&(B.forEach((z,ye)=>{this.at(ye)&&this.at(ye).patchValue(z,{onlySelf:!0,emitEvent:M.emitEvent})}),this.updateValueAndValidity(M))}reset(B=[],M={}){this._forEachChild((z,ye)=>{z.reset(B[ye],{onlySelf:!0,emitEvent:M.emitEvent})}),this._updatePristine(M),this._updateTouched(M),this.updateValueAndValidity(M)}getRawValue(){return this.controls.map(B=>B.getRawValue())}clear(B={}){this.controls.length<1||(this._forEachChild(M=>M._registerOnCollectionChange(()=>{})),this.controls.splice(0),this.updateValueAndValidity({emitEvent:B.emitEvent}))}_adjustIndex(B){return B<0?B+this.length:B}_syncPendingControls(){let B=this.controls.reduce((M,z)=>!!z._syncPendingControls()||M,!1);return B&&this.updateValueAndValidity({onlySelf:!0}),B}_forEachChild(B){this.controls.forEach((M,z)=>{B(M,z)})}_updateValue(){this.value=this.controls.filter(B=>B.enabled||this.disabled).map(B=>B.value)}_anyControls(B){return this.controls.some(M=>M.enabled&&B(M))}_setUpControls(){this._forEachChild(B=>this._registerControl(B))}_allControlsDisabled(){for(const B of this.controls)if(B.enabled)return!1;return this.controls.length>0||this.disabled}_registerControl(B){B.setParent(this),B._registerOnCollectionChange(this._onCollectionChange)}_find(B){return this.at(B)??null}}let qs=(()=>{class L{static withConfig(M){return{ngModule:L,providers:[{provide:vr,useValue:M.callSetDisabledState??Mi}]}}static#e=this.\u0275fac=function(z){return new(z||L)};static#t=this.\u0275mod=c.$C({type:L});static#n=this.\u0275inj=c.G2t({imports:[hi]})}return L})(),fs=(()=>{class L{static withConfig(M){return{ngModule:L,providers:[{provide:dt,useValue:M.warnOnNgModelWithFormControl??"always"},{provide:vr,useValue:M.callSetDisabledState??Mi}]}}static#e=this.\u0275fac=function(z){return new(z||L)};static#t=this.\u0275mod=c.$C({type:L});static#n=this.\u0275inj=c.G2t({imports:[hi]})}return L})()},4073:()=>{"use strict";const ct=":";Error;const ke=function(Ne,...Ee){if(ke.translate){const ze=ke.translate(Ne,Ee);Ne=ze[0],Ee=ze[1]}let Qe=Ht(Ne[0],Ne.raw[0]);for(let ze=1;ze<Ne.length;ze++)Qe+=Ee[ze-1]+Ht(Ne[ze],Ne.raw[ze]);return Qe},lt=":";function Ht(Ne,Ee){return Ee.charAt(0)===lt?Ne.substring(function Tt(Ne,Ee){for(let Qe=1,ze=1;Qe<Ne.length;Qe++,ze++)if("\\"===Ee[ze])ze++;else if(Ne[Qe]===ct)return Qe;throw new Error(`Unterminated $localize metadata block in "${Ee}".`)}(Ne,Ee)+1):Ne}globalThis.$localize=ke},345:(ct,be,I)=>{"use strict";I.d(be,{B7:()=>st,Bb:()=>dn,W8:()=>nn,hE:()=>En,sG:()=>Qe,up:()=>Ii});var c=I(4438),g=I(177);class $ extends g.VF{constructor(){super(...arguments),this.supportsDOMEvents=!0}}class Y extends ${static makeCurrent(){(0,g.ZD)(new Y)}onAndCancel(Oe,J,me){return Oe.addEventListener(J,me),()=>{Oe.removeEventListener(J,me)}}dispatchEvent(Oe,J){Oe.dispatchEvent(J)}remove(Oe){Oe.parentNode&&Oe.parentNode.removeChild(Oe)}createElement(Oe,J){return(J=J||this.getDefaultDocument()).createElement(Oe)}createHtmlDocument(){return document.implementation.createHTMLDocument("fakeTitle")}getDefaultDocument(){return document}isElementNode(Oe){return Oe.nodeType===Node.ELEMENT_NODE}isShadowRoot(Oe){return Oe instanceof DocumentFragment}getGlobalEventTarget(Oe,J){return"window"===J?window:"document"===J?Oe:"body"===J?Oe.body:null}getBaseHref(Oe){const J=function ge(){return q=q||document.querySelector("base"),q?q.getAttribute("href"):null}();return null==J?null:function se(Te){return new URL(Te,document.baseURI).pathname}(J)}resetBaseElement(){q=null}getUserAgent(){return window.navigator.userAgent}getCookie(Oe){return(0,g._b)(document.cookie,Oe)}}let q=null,de=(()=>{class Te{build(){return new XMLHttpRequest}static#e=this.\u0275fac=function(me){return new(me||Te)};static#t=this.\u0275prov=c.jDH({token:Te,factory:Te.\u0275fac})}return Te})();const De=new c.nKC("");let ce=(()=>{class Te{constructor(J,me){this._zone=me,this._eventNameToPlugin=new Map,J.forEach(qe=>{qe.manager=this}),this._plugins=J.slice().reverse()}addEventListener(J,me,qe){return this._findPluginFor(me).addEventListener(J,me,qe)}getZone(){return this._zone}_findPluginFor(J){let me=this._eventNameToPlugin.get(J);
1if(me)return me;if(me=this._plugins.find(It=>It.supports(J)),!me)throw new c.wOt(5101,!1);return this._eventNameToPlugin.set(J,me),me}static#e=this.\u0275fac=function(me){return new(me||Te)(c.KVO(De),c.KVO(c.SKi))};static#t=this.\u0275prov=c.jDH({token:Te,factory:Te.\u0275fac})}return Te})();class ie{constructor(Oe){this._doc=Oe}}const we="ng-app-id";let Re=(()=>{class Te{constructor(J,me,qe,It={}){this.doc=J,this.appId=me,this.nonce=qe,this.platformId=It,this.styleRef=new Map,this.hostNodes=new Set,this.styleNodesInDOM=this.collectServerRenderedStyles(),this.platformIsServer=(0,g.Vy)(It),this.resetHostNodes()}addStyles(J){for(const me of J)1===this.changeUsageCount(me,1)&&this.onStyleAdded(me)}removeStyles(J){for(const me of J)this.changeUsageCount(me,-1)<=0&&this.onStyleRemoved(me)}ngOnDestroy(){const J=this.styleNodesInDOM;J&&(J.forEach(me=>me.remove()),J.clear());for(const me of this.getAllStyles())this.onStyleRemoved(me);this.resetHostNodes()}addHost(J){this.hostNodes.add(J);for(const me of this.getAllStyles())this.addStyleToHost(J,me)}removeHost(J){this.hostNodes.delete(J)}getAllStyles(){return this.styleRef.keys()}onStyleAdded(J){for(const me of this.hostNodes)this.addStyleToHost(me,J)}onStyleRemoved(J){const me=this.styleRef;me.get(J)?.elements?.forEach(qe=>qe.remove()),me.delete(J)}collectServerRenderedStyles(){const J=this.doc.head?.querySelectorAll(`style[${we}="${this.appId}"]`);if(J?.length){const me=new Map;return J.forEach(qe=>{null!=qe.textContent&&me.set(qe.textContent,qe)}),me}return null}changeUsageCount(J,me){const qe=this.styleRef;if(qe.has(J)){const It=qe.get(J);return It.usage+=me,It.usage}return qe.set(J,{usage:me,elements:[]}),me}getStyleElement(J,me){const qe=this.styleNodesInDOM,It=qe?.get(me);if(It?.parentNode===J)return qe.delete(me),It.removeAttribute(we),It;{const $t=this.doc.createElement("style");return this.nonce&&$t.setAttribute("nonce",this.nonce),$t.textContent=me,this.platformIsServer&&$t.setAttribute(we,this.appId),J.appendChild($t),$t}}addStyleToHost(J,me){const qe=this.getStyleElement(J,me),It=this.styleRef,$t=It.get(me)?.elements;$t?$t.push(qe):It.set(me,{elements:[qe],usage:1})}resetHostNodes(){const J=this.hostNodes;J.clear(),J.add(this.doc.head)}static#e=this.\u0275fac=function(me){return new(me||Te)(c.KVO(g.qQ),c.KVO(c.sZ2),c.KVO(c.BIS,8),c.KVO(c.Agw))};static#t=this.\u0275prov=c.jDH({token:Te,factory:Te.\u0275fac})}return Te})();const Be={svg:"http://www.w3.org/2000/svg",xhtml:"http://www.w3.org/1999/xhtml",xlink:"http://www.w3.org/1999/xlink",xml:"http://www.w3.org/XML/1998/namespace",xmlns:"http://www.w3.org/2000/xmlns/",math:"http://www.w3.org/1998/MathML/"},ut=/%COMP%/g,et=new c.nKC("",{providedIn:"root",factory:()=>!0});function tt(Te,Oe){return Oe.map(J=>J.replace(ut,Te))}let st=(()=>{class Te{constructor(J,me,qe,It,$t,Cn,Fn,fr=null){this.eventManager=J,this.sharedStylesHost=me,this.appId=qe,this.removeStylesOnCompDestroy=It,this.doc=$t,this.platformId=Cn,this.ngZone=Fn,this.nonce=fr,this.rendererByCompId=new Map,this.platformIsServer=(0,g.Vy)(Cn),this.defaultRenderer=new nt(J,$t,Fn,this.platformIsServer)}createRenderer(J,me){if(!J||!me)return this.defaultRenderer;this.platformIsServer&&me.encapsulation===c.gXe.ShadowDom&&(me={...me,encapsulation:c.gXe.Emulated});const qe=this.getOrCreateRenderer(J,me);return qe instanceof Yt?qe.applyToHost(J):qe instanceof vt&&qe.applyStyles(),qe}getOrCreateRenderer(J,me){const qe=this.rendererByCompId;let It=qe.get(me.id);if(!It){const $t=this.doc,Cn=this.ngZone,Fn=this.eventManager,fr=this.sharedStylesHost,ei=this.removeStylesOnCompDestroy,vr=this.platformIsServer;switch(me.encapsulation){case c.gXe.Emulated:It=new Yt(Fn,fr,me,this.appId,ei,$t,Cn,vr);break;case c.gXe.ShadowDom:return new Tt(Fn,fr,J,me,$t,Cn,this.nonce,vr);default:It=new vt(Fn,fr,me,ei,$t,Cn,vr)}qe.set(me.id,It)}return It}ngOnDestroy(){this.rendererByCompId.clear()}static#e=this.\u0275fac=function(me){return new(me||Te)(c.KVO(ce),c.KVO(Re),c.KVO(c.sZ2),c.KVO(et),c.KVO(g.qQ),c.KVO(c.Agw),c.KVO(c.SKi),c.KVO(c.BIS))};static#t=this.\u0275prov=c.jDH({token:Te,factory:Te.\u0275fac})}return Te})();
1class nt{constructor(Oe,J,me,qe){this.eventManager=Oe,this.doc=J,this.ngZone=me,this.platformIsServer=qe,this.data=Object.create(null),this.throwOnSyntheticProps=!0,this.destroyNode=null}destroy(){}createElement(Oe,J){return J?this.doc.createElementNS(Be[J]||J,Oe):this.doc.createElement(Oe)}createComment(Oe){return this.doc.createComment(Oe)}createText(Oe){return this.doc.createTextNode(Oe)}appendChild(Oe,J){(_e(Oe)?Oe.content:Oe).appendChild(J)}insertBefore(Oe,J,me){Oe&&(_e(Oe)?Oe.content:Oe).insertBefore(J,me)}removeChild(Oe,J){Oe&&Oe.removeChild(J)}selectRootElement(Oe,J){let me="string"==typeof Oe?this.doc.querySelector(Oe):Oe;if(!me)throw new c.wOt(-5104,!1);return J||(me.textContent=""),me}parentNode(Oe){return Oe.parentNode}nextSibling(Oe){return Oe.nextSibling}setAttribute(Oe,J,me,qe){if(qe){J=qe+":"+J;const It=Be[qe];It?Oe.setAttributeNS(It,J,me):Oe.setAttribute(J,me)}else Oe.setAttribute(J,me)}removeAttribute(Oe,J,me){if(me){const qe=Be[me];qe?Oe.removeAttributeNS(qe,J):Oe.removeAttribute(`${me}:${J}`)}else Oe.removeAttribute(J)}addClass(Oe,J){Oe.classList.add(J)}removeClass(Oe,J){Oe.classList.remove(J)}setStyle(Oe,J,me,qe){qe&(c.czy.DashCase|c.czy.Important)?Oe.style.setProperty(J,me,qe&c.czy.Important?"important":""):Oe.style[J]=me}removeStyle(Oe,J,me){me&c.czy.DashCase?Oe.style.removeProperty(J):Oe.style[J]=""}setProperty(Oe,J,me){null!=Oe&&(Oe[J]=me)}setValue(Oe,J){Oe.nodeValue=J}listen(Oe,J,me){if("string"==typeof Oe&&!(Oe=(0,g.QT)().getGlobalEventTarget(this.doc,Oe)))throw new Error(`Unsupported event target ${Oe} for event ${J}`);return this.eventManager.addEventListener(Oe,J,this.decoratePreventDefault(me))}decoratePreventDefault(Oe){return J=>{if("__ngUnwrap__"===J)return Oe;!1===(this.platformIsServer?this.ngZone.runGuarded(()=>Oe(J)):Oe(J))&&J.preventDefault()}}}function _e(Te){return"TEMPLATE"===Te.tagName&&void 0!==Te.content}class Tt extends nt{constructor(Oe,J,me,qe,It,$t,Cn,Fn){super(Oe,It,$t,Fn),this.sharedStylesHost=J,this.hostEl=me,this.shadowRoot=me.attachShadow({mode:"open"}),this.sharedStylesHost.addHost(this.shadowRoot);const fr=tt(qe.id,qe.styles);for(const ei of fr){const vr=document.createElement("style");Cn&&vr.setAttribute("nonce",Cn),vr.textContent=ei,this.shadowRoot.appendChild(vr)}}nodeOrShadowRoot(Oe){return Oe===this.hostEl?this.shadowRoot:Oe}appendChild(Oe,J){return super.appendChild(this.nodeOrShadowRoot(Oe),J)}insertBefore(Oe,J,me){return super.insertBefore(this.nodeOrShadowRoot(Oe),J,me)}removeChild(Oe,J){return super.removeChild(this.nodeOrShadowRoot(Oe),J)}parentNode(Oe){return this.nodeOrShadowRoot(super.parentNode(this.nodeOrShadowRoot(Oe)))}destroy(){this.sharedStylesHost.removeHost(this.shadowRoot)}}class vt extends nt{constructor(Oe,J,me,qe,It,$t,Cn,Fn){super(Oe,It,$t,Cn),this.sharedStylesHost=J,this.removeStylesOnCompDestroy=qe,this.styles=Fn?tt(Fn,me.styles):me.styles}applyStyles(){this.sharedStylesHost.addStyles(this.styles)}destroy(){this.removeStylesOnCompDestroy&&this.sharedStylesHost.removeStyles(this.styles)}}class Yt extends vt{constructor(Oe,J,me,qe,It,$t,Cn,Fn){const fr=qe+"-"+me.id;super(Oe,J,me,It,$t,Cn,Fn,fr),this.contentAttr=function ne(Te){return"_ngcontent-%COMP%".replace(ut,Te)}(fr),this.hostAttr=function F(Te){return"_nghost-%COMP%".replace(ut,Te)}(fr)}applyToHost(Oe){this.applyStyles(),this.setAttribute(Oe,this.hostAttr,"")}createElement(Oe,J){const me=super.createElement(Oe,J);return super.setAttribute(me,this.contentAttr,""),me}}let $e=(()=>{class Te extends ie{constructor(J){super(J)}supports(J){return!0}addEventListener(J,me,qe){return J.addEventListener(me,qe,!1),()=>this.removeEventListener(J,me,qe)}removeEventListener(J,me,qe){return J.removeEventListener(me,qe)}static#e=this.\u0275fac=function(me){return new(me||Te)(c.KVO(g.qQ))};static#t=this.\u0275prov=c.jDH({token:Te,factory:Te.\u0275fac})}return Te})();const At=["alt","control","meta","shift"],le={"\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"},Q={alt:Te=>Te.altKey,control:Te=>Te.ctrlKey,meta:Te=>Te.metaKey,shift:Te=>Te.shiftKey};let ae=(()=>{class Te extends ie{constructor(J){super(J)}supports(J){return null!=Te.parseEventName(J)}addEventListener(J,me,qe){const It=Te.parseEventName(me),$t=Te.eventCallback(It.fullKey,qe,this.manager.getZone());return this.manager.getZone().runOutsideAngular(()=>(0,g.QT)().onAndCancel(J,It.domEventName,$t))}static parseEventName(J){const me=J.toLowerCase().split("."),qe=me.shift();if(0===me.length||"keydown"!==qe&&"keyup"!==qe)return null;const It=Te._normalizeKey(me.pop());let $t="",Cn=me.indexOf("code");if(Cn>-1&&(me.splice(Cn,1),$t="code."),At.forEach(fr=>{const ei=me.indexOf(fr);ei>-1&&(me.splice(ei,1),$t+=fr+".")}),$t+=It,0!=me.length||0===It.length)return null;const Fn={};return Fn.domEventName=qe,Fn.fullKey=$t,Fn}static matchEventFullKeyCode(J,me){let qe=le[J.key]||J.key,It="";return me.indexOf("code.")>-1&&(qe=J.code,It="code."),!(null==qe||!qe)&&(qe=qe.toLowerCase()," "===qe?qe="space":"."===qe&&(qe="dot"),At.forEach($t=>{$t!==qe&&(0,Q[$t])(J)&&(It+=$t+".")}),It+=qe,It===me)}static eventCallback(J,me,qe){return It=>{Te.matchEventFullKeyCode(It,J)&&qe.runGuarded(()=>me(It))}}static _normalizeKey(J){return"esc"===J?"escape":J}static#e=this.\u0275fac=function(me){return new(me||Te)(c.KVO(g.qQ))};static#t=this.\u0275prov=c.jDH({token:Te,factory:Te.\u0275fac})}return Te})();const Qe=(0,c.oH4)(c.fpN,"browser",[{provide:c.Agw,useValue:g.AJ},{provide:c.PLl,useValue:function lt(){Y.makeCurrent()},multi:!0},{provide:g.qQ,useFactory:function Ne(){return(0,c.TL$)(document),document},deps:[]}]),ze=new c.nKC(""),ot=[{provide:c.e01,useClass:class he{addToWindow(Oe){c.JZv.getAngularTestability=(me,qe=!0)=>{const It=Oe.findTestabilityInTree(me,qe);if(null==It)throw new c.wOt(5103,!1);return It},c.JZv.getAllAngularTestabilities=()=>Oe.getAllTestabilities(),c.JZv.getAllAngularRootElements=()=>Oe.getAllRootElements(),c.JZv.frameworkStabilizers||(c.JZv.frameworkStabilizers=[]),c.JZv.frameworkStabilizers.push(me=>{const qe=c.JZv.getAllAngularTestabilities();let It=qe.length;const $t=function(){It--,0==It&&me()};qe.forEach(Cn=>{Cn.whenStable($t)})})}findTestabilityInTree(Oe,J,me){return null==J?null:Oe.getTestability(J)??(me?(0,g.QT)().isShadowRoot(J)?this.findTestabilityInTree(Oe,J.host,!0):this.findTestabilityInTree(Oe,J.parentElement,!0):null)}},deps:[]},{provide:c.WHO,useClass:c.NYb,deps:[c.SKi,c.giA,c.e01]},{provide:c.NYb,useClass:c.NYb,deps:[c.SKi,c.giA,c.e01]}],Mt=[{provide:c.H8p,useValue:"root"},{provide:c.zcH,useFactory:function Ht(){return new c.zcH},deps:[]},{provide:De,useClass:$e,multi:!0,deps:[g.qQ,c.SKi,c.Agw]},{provide:De,useClass:ae,multi:!0,deps:[g.qQ]},st,Re,ce,{provide:c._9s,useExisting:st},{provide:g.N0,useClass:de,deps:[]},[]];let dn=(()=>{class Te{constructor(J){}static withServerTransition(J){return{ngModule:Te,providers:[{provide:c.sZ2,useValue:J.appId}]}}static#e=this.\u0275fac=function(me){return new(me||Te)(c.KVO(ze,12))};static#t=this.\u0275mod=c.$C({type:Te});static#n=this.\u0275inj=c.G2t({providers:[...Mt,...ot],imports:[g.MD,c.Hbi]})}return Te})(),nn=(()=>{class Te{constructor(J){this._doc=J,this._dom=(0,g.QT)()}addTag(J,me=!1){return J?this._getOrCreateElement(J,me):null}addTags(J,me=!1){return J?J.reduce((qe,It)=>(It&&qe.push(this._getOrCreateElement(It,me)),qe),[]):[]}getTag(J){return J&&this._doc.querySelector(`meta[${J}]`)||null}getTags(J){if(!J)return[];const me=this._doc.querySelectorAll(`meta[${J}]`);return me?[].slice.call(me):[]}updateTag(J,me){if(!J)return null;me=me||this._parseSelector(J);const qe=this.getTag(me);return qe?this._setMetaElementAttributes(J,qe):this._getOrCreateElement(J,!0)}removeTag(J){this.removeTagElement(this.getTag(J))}removeTagElement(J){J&&this._dom.remove(J)}_getOrCreateElement(J,me=!1){if(!me){const $t=this._parseSelector(J),Cn=this.getTags($t).filter(Fn=>this._containsAttributes(J,Fn))[0];if(void 0!==Cn)return Cn}const qe=this._dom.createElement("meta");return this._setMetaElementAttributes(J,qe),this._doc.getElementsByTagName("head")[0].appendChild(qe),qe}_setMetaElementAttributes(J,me){return Object.keys(J).forEach(qe=>me.setAttribute(this._getMetaKeyMap(qe),J[qe])),me}_parseSelector(J){const me=J.name?"name":"property";return`${me}="${J[me]}"`}_containsAttributes(J,me){return Object.keys(J).every(qe=>me.getAttribute(this._getMetaKeyMap(qe))===J[qe])}_getMetaKeyMap(J){return mt[J]||J}static#e=this.\u0275fac=function(me){return new(me||Te)(c.KVO(g.qQ))};static#t=this.\u0275prov=c.jDH({token:Te,factory:Te.\u0275fac,providedIn:"root"})}return Te})();const mt={httpEquiv:"http-equiv"};let En=(()=>{class Te{constructor(J){this._doc=J}getTitle(){return this._doc.title}setTitle(J){this._doc.title=J||""}static#e=this.\u0275fac=function(me){return new(me||Te)(c.KVO(g.qQ))};static#t=this.\u0275prov=c.jDH({token:Te,factory:Te.\u0275fac,providedIn:"root"})}return Te})(),Ii=(()=>{class Te{static#e=this.\u0275fac=function(me){return new(me||Te)};static#t=this.\u0275prov=c.jDH({token:Te,factory:function(me){let qe=null;return qe=me?new(me||Te):c.KVO(Zt),qe},providedIn:"root"})}return Te})(),Zt=(()=>{class Te extends Ii{constructor(J){super(),this._doc=J}sanitize(J,me){if(null==me)return null;switch(J){case c.WPN.NONE:return me;case c.WPN.HTML:return(0,c.ZF7)(me,"HTML")?(0,c.rcV)(me):(0,c.h9k)(this._doc,String(me)).toString();case c.WPN.STYLE:return(0,c.ZF7)(me,"Style")?(0,c.rcV)(me):me;case c.WPN.SCRIPT:if((0,c.ZF7)(me,"Script"))return(0,c.rcV)(me);throw new c.wOt(5200,!1);case c.WPN.URL:return(0,c.ZF7)(me,"URL")?(0,c.rcV)(me):(0,c.$MX)(String(me));case c.WPN.RESOURCE_URL:if((0,c.ZF7)(me,"ResourceURL"))return(0,c.rcV)(me);throw new c.wOt(5201,!1);default:throw new c.wOt(5202,!1)}}bypassSecurityTrustHtml(J){return(0,c.Kcf)(J)}bypassSecurityTrustStyle(J){return(0,c.cWb)(J)}bypassSecurityTrustScript(J){return(0,c.UyX)(J)}bypassSecurityTrustUrl(J){return(0,c.osQ)(J)}bypassSecurityTrustResourceUrl(J){return(0,c.e5t)(J)}static#e=this.\u0275fac=function(me){return new(me||Te)(c.KVO(g.qQ))};static#t=this.\u0275prov=c.jDH({token:Te,factory:Te.\u0275fac,providedIn:"root"})}return Te})()},1457:(ct,be,I)=>{"use strict";I.d(be,{nX:()=>Xt,wF:()=>Qn,Ix:()=>In,Wk:()=>Jt,wQ:()=>ia,iI:()=>Cl,n3:()=>cs});var c=I(467),g=I(4438),$=I(4402),Y=I(6648),q=I(7673),ge=I(4412),se=I(1985),he=I(3073),de=I(3669),De=I(6450),ce=I(9326),ie=I(8496),we=I(4360),Re=I(5225);function Be(...C){const S=(0,ce.lI)(C),E=(0,ce.ms)(C),{args:A,keys:P}=(0,he.D)(C);if(0===A.length)return(0,Y.H)([],S);const G=new se.c(function ut(C,S,E=de.D){return A=>{Le(S,()=>{const{length:P}=C,G=new Array(P);let oe=P,He=P;for(let Pe=0;Pe<P;Pe++)Le(S,()=>{const Rt=(0,Y.H)(C[Pe],S);let an=!1;Rt.subscribe((0,we._)(A,fn=>{G[Pe]=fn,an||(an=!0,He--),He||A.next(E(G.slice()))},()=>{--oe||A.complete()}
1))},A)},A)}}(A,S,P?oe=>(0,ie.e)(P,oe):de.D));return E?G.pipe((0,De.I)(E)):G}function Le(C,S,E){C?(0,Re.N)(E,C,S):S()}var gt=I(9350),wt=I(8793),Ut=I(9030),et=I(1203),ne=I(8810),F=I(983),tt=I(8359),st=I(9974);function nt(){return(0,st.N)((C,S)=>{let E=null;C._refCount++;const A=(0,we._)(S,void 0,void 0,void 0,()=>{if(!C||C._refCount<=0||0<--C._refCount)return void(E=null);const P=C._connection,G=E;E=null,P&&(!G||P===G)&&P.unsubscribe(),S.unsubscribe()});C.subscribe(A),A.closed||(E=C.connect())})}class Ve extends se.c{constructor(S,E){super(),this.source=S,this.subjectFactory=E,this._subject=null,this._refCount=0,this._connection=null,(0,st.S)(S)&&(this.lift=S.lift)}_subscribe(S){return this.getSubject().subscribe(S)}getSubject(){const S=this._subject;return(!S||S.isStopped)&&(this._subject=this.subjectFactory()),this._subject}_teardown(){this._refCount=0;const{_connection:S}=this;this._subject=this._connection=null,S?.unsubscribe()}connect(){let S=this._connection;if(!S){S=this._connection=new tt.yU;const E=this.getSubject();S.add(this.source.subscribe((0,we._)(E,void 0,()=>{this._teardown(),E.complete()},A=>{this._teardown(),E.error(A)},()=>this._teardown()))),S.closed&&(this._connection=null,S=tt.yU.EMPTY)}return S}refCount(){return nt()(this)}}var te=I(1413),_e=I(177),Tt=I(6354),vt=I(5558),Yt=I(6697),$e=I(9172),At=I(5964),le=I(1397);function Q(C){return(0,st.N)((S,E)=>{let A=!1;S.subscribe((0,we._)(E,P=>{A=!0,E.next(P)},()=>{A||E.next(C),E.complete()}))})}function ae(C=Z){return(0,st.N)((S,E)=>{let A=!1;S.subscribe((0,we._)(E,P=>{A=!0,E.next(P)},()=>A?E.complete():E.error(C())))})}function Z(){return new gt.G}function Ce(C,S){const E=arguments.length>=2;return A=>A.pipe(C?(0,At.p)((P,G)=>C(P,G,A)):de.D,(0,Yt.s)(1),E?Q(S):ae(()=>new gt.G))}var Ue=I(274),ke=I(8141),lt=I(9437);function Ee(C){return C<=0?()=>F.w:(0,st.N)((S,E)=>{let A=[];S.subscribe((0,we._)(E,P=>{A.push(P),C<A.length&&A.shift()},()=>{for(const P of A)E.next(P);E.complete()},void 0,()=>{A=null}))})}var ze=I(3703),ot=I(980),Mt=I(6977),dn=I(6365),nn=I(345);const mt="primary",En=Symbol("RouteTitle");class ft{constructor(S){this.params=S||{}}has(S){return Object.prototype.hasOwnProperty.call(this.params,S)}get(S){if(this.has(S)){const E=this.params[S];return Array.isArray(E)?E[0]:E}return null}getAll(S){if(this.has(S)){const E=this.params[S];return Array.isArray(E)?E:[E]}return[]}get keys(){return Object.keys(this.params)}}function Rn(C){return new ft(C)}function zn(C,S,E){const A=E.path.split("/");if(A.length>C.length||"full"===E.pathMatch&&(S.hasChildren()||A.length<C.length))return null;const P={};for(let G=0;G<A.length;G++){const oe=A[G],He=C[G];if(oe.startsWith(":"))P[oe.substring(1)]=He;else if(oe!==He.path)return null}return{consumed:C.slice(0,A.length),posParams:P}}function xn(C,S){const E=C?Hr(C):void 0,A=S?Hr(S):void 0;if(!E||!A||E.length!=A.length)return!1;let P;for(let G=0;G<E.length;G++)if(P=E[G],!yn(C[P],S[P]))return!1;return!0}function Hr(C){return[...Object.keys(C),...Object.getOwnPropertySymbols(C)]}function yn(C,S){if(Array.isArray(C)&&Array.isArray(S)){if(C.length!==S.length)return!1;const E=[...C].sort(),A=[...S].sort();return E.every((P,G)=>A[G]===P)}return C===S}function Qt(C){return C.length>0?C[C.length-1]:null}function Pt(C){return(0,$.A)(C)?C:(0,g.jNT)(C)?(0,Y.H)(Promise.resolve(C)):(0,q.of)(C)}const Dr={exact:function Yn(C,S,E){if(!Jr(C.segments,S.segments)||!on(C.segments,S.segments,E)||C.numberOfChildren!==S.numberOfChildren)return!1;for(const A in S.children)if(!C.children[A]||!Yn(C.children[A],S.children[A],E))return!1;return!0},subset:Zt},vn={exact:function ni(C,S){return xn(C,S)},subset:function Ii(C,S){return Object.keys(S).length<=Object.keys(C).length&&Object.keys(S).every(E=>yn(C[E],S[E]))},ignored:()=>!0};function An(C,S,E){return Dr[E.paths](C.root,S.root,E.matrixParams)&&vn[E.queryParams](C.queryParams,S.queryParams)&&!("exact"===E.fragment&&C.fragment!==S.fragment)}function Zt(C,S,E){return di(C,S,S.segments,E)}function di(C,S,E,A){if(C.segments.length>E.length){const P=C.segments.slice(0,E.length);
1return!(!Jr(P,E)||S.hasChildren()||!on(P,E,A))}if(C.segments.length===E.length){if(!Jr(C.segments,E)||!on(C.segments,E,A))return!1;for(const P in S.children)if(!C.children[P]||!Zt(C.children[P],S.children[P],A))return!1;return!0}{const P=E.slice(0,C.segments.length),G=E.slice(C.segments.length);return!!(Jr(C.segments,P)&&on(C.segments,P,A)&&C.children[mt])&&di(C.children[mt],S,G,A)}}function on(C,S,E){return S.every((A,P)=>vn[E](C[P].parameters,A.parameters))}class cn{constructor(S=new Kt([],{}),E={},A=null){this.root=S,this.queryParams=E,this.fragment=A}get queryParamMap(){return this._queryParamMap??=Rn(this.queryParams),this._queryParamMap}toString(){return Oe.serialize(this)}}class Kt{constructor(S,E){this.segments=S,this.children=E,this.parent=null,Object.values(E).forEach(A=>A.parent=this)}hasChildren(){return this.numberOfChildren>0}get numberOfChildren(){return Object.keys(this.children).length}toString(){return J(this)}}class Wt{constructor(S,E){this.path=S,this.parameters=E}get parameterMap(){return this._parameterMap??=Rn(this.parameters),this._parameterMap}toString(){return ei(this)}}function Jr(C,S){return C.length===S.length&&C.every((E,A)=>E.path===S[A].path)}let $n=(()=>{class C{static#e=this.\u0275fac=function(A){return new(A||C)};static#t=this.\u0275prov=g.jDH({token:C,factory:()=>new Te,providedIn:"root"})}return C})();class Te{parse(S){const E=new uo(S);return new cn(E.parseRootSegment(),E.parseQueryParams(),E.parseFragment())}serialize(S){const E=`/${me(S.root,!0)}`,A=function Mi(C){const S=Object.entries(C).map(([E,A])=>Array.isArray(A)?A.map(P=>`${It(E)}=${It(P)}`).join("&"):`${It(E)}=${It(A)}`).filter(E=>E);return S.length?`?${S.join("&")}`:""}(S.queryParams);return`${E}${A}${"string"==typeof S.fragment?`#${function $t(C){return encodeURI(C)}(S.fragment)}`:""}`}}const Oe=new Te;function J(C){return C.segments.map(S=>ei(S)).join("/")}function me(C,S){if(!C.hasChildren())return J(C);if(S){const E=C.children[mt]?me(C.children[mt],!1):"",A=[];return Object.entries(C.children).forEach(([P,G])=>{P!==mt&&A.push(`${P}:${me(G,!1)}`)}),A.length>0?`${E}(${A.join("//")})`:E}{const E=function Yi(C,S){let E=[];return Object.entries(C.children).forEach(([A,P])=>{A===mt&&(E=E.concat(S(P,A)))}),Object.entries(C.children).forEach(([A,P])=>{A!==mt&&(E=E.concat(S(P,A)))}),E}(C,(A,P)=>P===mt?[me(C.children[mt],!1)]:[`${P}:${me(A,!1)}`]);return 1===Object.keys(C.children).length&&null!=C.children[mt]?`${J(C)}/${E[0]}`:`${J(C)}/(${E.join("//")})`}}function qe(C){return encodeURIComponent(C).replace(/%40/g,"@").replace(/%3A/gi,":").replace(/%24/g,"$").replace(/%2C/gi,",")}function It(C){return qe(C).replace(/%3B/gi,";")}function Cn(C){return qe(C).replace(/\(/g,"%28").replace(/\)/g,"%29").replace(/%26/gi,"&")}function Fn(C){return decodeURIComponent(C)}function fr(C){return Fn(C.replace(/\+/g,"%20"))}function ei(C){return`${Cn(C.path)}${function vr(C){return Object.entries(C).map(([S,E])=>`;${Cn(S)}=${Cn(E)}`).join("")}(C.parameters)}`}const zr=/^[^\/()?;#]+/;function Zi(C){const S=C.match(zr);return S?S[0]:""}const Vn=/^[^\/()?;=#]+/,To=/^[^=?&#]+/,yi=/^[^&#]+/;class uo{constructor(S){this.url=S,this.remaining=S}parseRootSegment(){return this.consumeOptional("/"),""===this.remaining||this.peekStartsWith("?")||this.peekStartsWith("#")?new Kt([],{}):new Kt([],this.parseChildren())}parseQueryParams(){const S={};if(this.consumeOptional("?"))do{this.parseQueryParam(S)}while(this.consumeOptional("&"));return S}parseFragment(){return this.consumeOptional("#")?decodeURIComponent(this.remaining):null}parseChildren(){if(""===this.remaining)return{};this.consumeOptional("/");const S=[];for(this.peekStartsWith("(")||S.push(this.parseSegment());this.peekStartsWith("/")&&!this.peekStartsWith("//")&&!this.peekStartsWith("/(");)this.capture("/"),S.push(this.parseSegment());let E={};this.peekStartsWith("/(")&&(this.capture("/"),E=this.parseParens(!0));let A={};return this.peekStartsWith("(")&&(A=this.parseParens(!1)),(S.length>0||Object.keys(E).length>0)&&(A[mt]=new Kt(S,E)),A}parseSegment(){const S=Zi(this.remaining);if(""===S&&this.peekStartsWith(";"))throw new g.wOt(4009,!1);return this.capture(S),new Wt(Fn(S),this.parseMatrixParams())}parseMatrixParams(){const S={};for(;this.consumeOptional(";");)this.parseParam(S);return S}parseParam(S){const E=function Lt(C){const S=C.match(Vn);return S?S[0]:""}(this.remaining);if(!E)return;this.capture(E);let A="";if(this.consumeOptional("=")){const P=Zi(this.remaining);P&&(A=P,this.capture(A))}S[Fn(E)]=Fn(A)}parseQueryParam(S){const E=function $i(C){const S=C.match(To);return S?S[0]:""}(this.remaining);if(!E)return;this.capture(E);let A="";if(this.consumeOptional("=")){const oe=function Do(C){const S=C.match(yi);return S?S[0]:""}(this.remaining);
1oe&&(A=oe,this.capture(A))}const P=fr(E),G=fr(A);if(S.hasOwnProperty(P)){let oe=S[P];Array.isArray(oe)||(oe=[oe],S[P]=oe),oe.push(G)}else S[P]=G}parseParens(S){const E={};for(this.capture("(");!this.consumeOptional(")")&&this.remaining.length>0;){const A=Zi(this.remaining),P=this.remaining[A.length];if("/"!==P&&")"!==P&&";"!==P)throw new g.wOt(4010,!1);let G;A.indexOf(":")>-1?(G=A.slice(0,A.indexOf(":")),this.capture(G),this.capture(":")):S&&(G=mt);const oe=this.parseChildren();E[G]=1===Object.keys(oe).length?oe[mt]:new Kt([],oe),this.consumeOptional("//")}return E}peekStartsWith(S){return this.remaining.startsWith(S)}consumeOptional(S){return!!this.peekStartsWith(S)&&(this.remaining=this.remaining.substring(S.length),!0)}capture(S){if(!this.consumeOptional(S))throw new g.wOt(4011,!1)}}function Me(C){return C.segments.length>0?new Kt([],{[mt]:C}):C}function Gi(C){const S={};for(const[A,P]of Object.entries(C.children)){const G=Gi(P);if(A===mt&&0===G.segments.length&&G.hasChildren())for(const[oe,He]of Object.entries(G.children))S[oe]=He;else(G.segments.length>0||G.hasChildren())&&(S[A]=G)}return function Ki(C){if(1===C.numberOfChildren&&C.children[mt]){const S=C.children[mt];return new Kt(C.segments.concat(S.segments),S.children)}return C}(new Kt(C.segments,S))}function Ae(C){return C instanceof cn}function Zn(C){let S;const P=Me(function E(G){const oe={};for(const Pe of G.children){const Rt=E(Pe);oe[Pe.outlet]=Rt}const He=new Kt(G.url,oe);return G===C&&(S=He),He}(C.root));return S??P}function Ri(C,S,E,A){let P=C;for(;P.parent;)P=P.parent;if(0===S.length)return ee(P,P,P,E,A);const G=function Ge(C){if("string"==typeof C[0]&&1===C.length&&"/"===C[0])return new Xe(!0,0,C);let S=0,E=!1;const A=C.reduce((P,G,oe)=>{if("object"==typeof G&&null!=G){if(G.outlets){const He={};return Object.entries(G.outlets).forEach(([Pe,Rt])=>{He[Pe]="string"==typeof Rt?Rt.split("/"):Rt}),[...P,{outlets:He}]}if(G.segmentPath)return[...P,G.segmentPath]}return"string"!=typeof G?[...P,G]:0===oe?(G.split("/").forEach((He,Pe)=>{0==Pe&&"."===He||(0==Pe&&""===He?E=!0:".."===He?S++:""!=He&&P.push(He))}),P):[...P,G]},[]);return new Xe(E,S,A)}(S);if(G.toRoot())return ee(P,P,new Kt([],{}),E,A);const oe=function Ct(C,S,E){if(C.isAbsolute)return new it(S,!0,0);if(!E)return new it(S,!1,NaN);if(null===E.parent)return new it(E,!0,0);const A=Wi(C.commands[0])?0:1;return function sn(C,S,E){let A=C,P=S,G=E;for(;G>P;){if(G-=P,A=A.parent,!A)throw new g.wOt(4005,!1);P=A.segments.length}return new it(A,!1,P-G)}(E,E.segments.length-1+A,C.numberOfDoubleDots)}(G,P,C),He=oe.processChildren?sr(oe.segmentGroup,oe.index,G.commands):Gn(oe.segmentGroup,oe.index,G.commands);return ee(P,oe.segmentGroup,He,E,A)}function Wi(C){return"object"==typeof C&&null!=C&&!C.outlets&&!C.segmentPath}function K(C){return"object"==typeof C&&null!=C&&C.outlets}function ee(C,S,E,A,P){let oe,G={};A&&Object.entries(A).forEach(([Pe,Rt])=>{G[Pe]=Array.isArray(Rt)?Rt.map(an=>`${an}`):`${Rt}`}),oe=C===S?E:fe(C,S,E);const He=Me(Gi(oe));return new cn(He,G,P)}function fe(C,S,E){const A={};return Object.entries(C.children).forEach(([P,G])=>{A[P]=G===S?E:fe(G,S,E)}),new Kt(C.segments,A)}class Xe{constructor(S,E,A){if(this.isAbsolute=S,this.numberOfDoubleDots=E,this.commands=A,S&&A.length>0&&Wi(A[0]))throw new g.wOt(4003,!1);const P=A.find(K);if(P&&P!==Qt(A))throw new g.wOt(4004,!1)}toRoot(){return this.isAbsolute&&1===this.commands.length&&"/"==this.commands[0]}}class it{constructor(S,E,A){this.segmentGroup=S,this.processChildren=E,this.index=A}}function Gn(C,S,E){if(C??=new Kt([],{}),0===C.segments.length&&C.hasChildren())return sr(C,S,E);const A=function Ln(C,S,E){let A=0,P=S;const G={match:!1,pathIndex:0,commandIndex:0};for(;P<C.segments.length;){if(A>=E.length)return G;const oe=C.segments[P],He=E[A];if(K(He))break;const Pe=`${He}`,Rt=A<E.length-1?E[A+1]:null;if(P>0&&void 0===Pe)break;if(Pe&&Rt&&"object"==typeof Rt&&void 0===Rt.outlets){if(!Tn(Pe,Rt,oe))return G;A+=2}else{if(!Tn(Pe,{},oe))return G;A++}P++}return{match:!0,pathIndex:P,commandIndex:A}}(C,S,E),P=E.slice(A.commandIndex);if(A.match&&A.pathIndex<C.segments.length){const G=new Kt(C.segments.slice(0,A.pathIndex),{});return G.children[mt]=new Kt(C.segments.slice(A.pathIndex),C.children),sr(G,0,P)}return A.match&&0===P.length?new Kt(C.segments,{}):A.match&&!C.hasChildren()?Wn(C,S,E):A.match?sr(C,0,P):Wn(C,S,E)}function sr(C,S,E){if(0===E.length)return new Kt(C.segments,{});{const A=function Vt(C){return K(C[0])?C[0].outlets:{[mt]:C}}(E),P={};if(Object.keys(A).some(G=>G!==mt)&&C.children[mt]&&1===C.numberOfChildren&&0===C.children[mt].segments.length){const G=sr(C.children[mt],S,E);return new Kt(C.segments,G.children)}return Object.entries(A).forEach(([G,oe])=>
1{"string"==typeof oe&&(oe=[oe]),null!==oe&&(P[G]=Gn(C.children[G],S,oe))}),Object.entries(C.children).forEach(([G,oe])=>{void 0===A[G]&&(P[G]=oe)}),new Kt(C.segments,P)}}function Wn(C,S,E){const A=C.segments.slice(0,S);let P=0;for(;P<E.length;){const G=E[P];if(K(G)){const Pe=Xr(G.outlets);return new Kt(A,Pe)}if(0===P&&Wi(E[0])){A.push(new Wt(C.segments[S].path,Er(E[0]))),P++;continue}const oe=K(G)?G.outlets[mt]:`${G}`,He=P<E.length-1?E[P+1]:null;oe&&He&&Wi(He)?(A.push(new Wt(oe,Er(He))),P+=2):(A.push(new Wt(oe,{})),P++)}return new Kt(A,{})}function Xr(C){const S={};return Object.entries(C).forEach(([E,A])=>{"string"==typeof A&&(A=[A]),null!==A&&(S[E]=Wn(new Kt([],{}),0,A))}),S}function Er(C){const S={};return Object.entries(C).forEach(([E,A])=>S[E]=`${A}`),S}function Tn(C,S,E){return C==E.path&&xn(S,E.parameters)}const bn="imperative";var qt=function(C){return C[C.NavigationStart=0]="NavigationStart",C[C.NavigationEnd=1]="NavigationEnd",C[C.NavigationCancel=2]="NavigationCancel",C[C.NavigationError=3]="NavigationError",C[C.RoutesRecognized=4]="RoutesRecognized",C[C.ResolveStart=5]="ResolveStart",C[C.ResolveEnd=6]="ResolveEnd",C[C.GuardsCheckStart=7]="GuardsCheckStart",C[C.GuardsCheckEnd=8]="GuardsCheckEnd",C[C.RouteConfigLoadStart=9]="RouteConfigLoadStart",C[C.RouteConfigLoadEnd=10]="RouteConfigLoadEnd",C[C.ChildActivationStart=11]="ChildActivationStart",C[C.ChildActivationEnd=12]="ChildActivationEnd",C[C.ActivationStart=13]="ActivationStart",C[C.ActivationEnd=14]="ActivationEnd",C[C.Scroll=15]="Scroll",C[C.NavigationSkipped=16]="NavigationSkipped",C}(qt||{});class br{constructor(S,E){this.id=S,this.url=E}}class ar extends br{constructor(S,E,A="imperative",P=null){super(S,E),this.type=qt.NavigationStart,this.navigationTrigger=A,this.restoredState=P}toString(){return`NavigationStart(id: ${this.id}, url: '${this.url}')`}}class Qn extends br{constructor(S,E,A){super(S,E),this.urlAfterRedirects=A,this.type=qt.NavigationEnd}toString(){return`NavigationEnd(id: ${this.id}, url: '${this.url}', urlAfterRedirects: '${this.urlAfterRedirects}')`}}var Pn=function(C){return C[C.Redirect=0]="Redirect",C[C.SupersededByNewNavigation=1]="SupersededByNewNavigation",C[C.NoDataFromResolver=2]="NoDataFromResolver",C[C.GuardRejected=3]="GuardRejected",C}(Pn||{}),pr=function(C){return C[C.IgnoredSameUrlNavigation=0]="IgnoredSameUrlNavigation",C[C.IgnoredByUrlHandlingStrategy=1]="IgnoredByUrlHandlingStrategy",C}(pr||{});class zt extends br{constructor(S,E,A,P){super(S,E),this.reason=A,this.code=P,this.type=qt.NavigationCancel}toString(){return`NavigationCancel(id: ${this.id}, url: '${this.url}')`}}class Bt extends br{constructor(S,E,A,P){super(S,E),this.reason=A,this.code=P,this.type=qt.NavigationSkipped}}class rs extends br{constructor(S,E,A,P){super(S,E),this.error=A,this.target=P,this.type=qt.NavigationError}toString(){return`NavigationError(id: ${this.id}, url: '${this.url}', error: ${this.error})`}}class Qr extends br{constructor(S,E,A,P){super(S,E),this.urlAfterRedirects=A,this.state=P,this.type=qt.RoutesRecognized}toString(){return`RoutesRecognized(id: ${this.id}, url: '${this.url}', urlAfterRedirects: '${this.urlAfterRedirects}', state: ${this.state})`}}class ws extends br{constructor(S,E,A,P){super(S,E),this.urlAfterRedirects=A,this.state=P,this.type=qt.GuardsCheckStart}toString(){return`GuardsCheckStart(id: ${this.id}, url: '${this.url}', urlAfterRedirects: '${this.urlAfterRedirects}', state: ${this.state})`}}class Da extends br{constructor(S,E,A,P,G){super(S,E),this.urlAfterRedirects=A,this.state=P,this.shouldActivate=G,this.type=qt.GuardsCheckEnd}toString(){return`GuardsCheckEnd(id: ${this.id}, url: '${this.url}', urlAfterRedirects: '${this.urlAfterRedirects}', state: ${this.state}, shouldActivate: ${this.shouldActivate})`}}class As extends br{constructor(S,E,A,P){super(S,E),this.urlAfterRedirects=A,this.state=P,this.type=qt.ResolveStart}toString(){return`ResolveStart(id: ${this.id}, url: '${this.url}', urlAfterRedirects: '${this.urlAfterRedirects}', state: ${this.state})`}}class Lo extends br{constructor(S,E,A,P){super(S,E),this.urlAfterRedirects=A,this.state=P,this.type=qt.ResolveEnd}toString(){return`ResolveEnd(id: ${this.id}, url: '${this.url}', urlAfterRedirects: '${this.urlAfterRedirects}', state: ${this.state})`}}class gn{constructor(S){this.route=S,this.type=qt.RouteConfigLoadStart}toString(){return`RouteConfigLoadStart(path: ${this.route.path})`}}class is{constructor(S){this.route=S,this.type=qt.RouteConfigLoadEnd}toString(){return`RouteConfigLoadEnd(path: ${this.route.path})`}}class ri{constructor(S){this.snapshot=S,this.type=qt.ChildActivationStart}toString(){return`ChildActivationStart(path: '${this.snapshot.routeConfig&&this.snapshot.routeConfig.path||""}')`}}class dt{constructor(S){this.snapshot=S,this.type=qt.ChildActivationEnd}toString(){return`ChildActivationEnd(path: '${this.snapshot.routeConfig&&this.snapshot.routeConfig.path||""}')`}}class os{constructor(S){this.snapshot=S,this.type=qt.ActivationStart}toString(){return`ActivationStart(path: '${this.snapshot.routeConfig&&this.snapshot.routeConfig.path||""}')`}}class kr{constructor(S){this.snapshot=S,this.type=qt.ActivationEnd}toString(){return`ActivationEnd(path: '${this.snapshot.routeConfig&&this.snapshot.routeConfig.path||""}')`}}class zs{constructor(S,E,A){this.routerEvent=S,this.position=E,this.anchor=A,this.type=qt.Scroll}toString(){return`Scroll(anchor: '${this.anchor}', position: '${this.position?`${this.position[0]}, ${this.position[1]}`:null}')`}}class vi{}class ho{constructor(S){this.url=S}}class zi{constructor(){this.outlet=null,this.route=null,this.injector=null,this.children=new Pr,this.attachRef=null}}let Pr=(()=>{class C{constructor(){this.contexts=new Map}onChildOutletCreated(E,A){const P=this.getOrCreateContext(E);P.outlet=A,this.contexts.set(E,P)}onChildOutletDestroyed(E){const A=this.getContext(E);A&&(A.outlet=null,A.attachRef=null)}onOutletDeactivated(){const E=this.contexts;return this.contexts=new Map,E}onOutletReAttached(E){this.contexts=E}getOrCreateContext(E){let A=this.getContext(E);return A||(A=new zi,this.contexts.set(E,A)),A}getContext(E){return this.contexts.get(E)||null}static#e=this.\u0275fac=function(A){return new(A||C)};
1static#t=this.\u0275prov=g.jDH({token:C,factory:C.\u0275fac,providedIn:"root"})}return C})();class $r{constructor(S){this._root=S}get root(){return this._root.value}parent(S){const E=this.pathFromRoot(S);return E.length>1?E[E.length-2]:null}children(S){const E=So(S,this._root);return E?E.children.map(A=>A.value):[]}firstChild(S){const E=So(S,this._root);return E&&E.children.length>0?E.children[0].value:null}siblings(S){const E=Ni(S,this._root);return E.length<2?[]:E[E.length-2].children.map(P=>P.value).filter(P=>P!==S)}pathFromRoot(S){return Ni(S,this._root).map(E=>E.value)}}function So(C,S){if(C===S.value)return S;for(const E of S.children){const A=So(C,E);if(A)return A}return null}function Ni(C,S){if(C===S.value)return[S];for(const E of S.children){const A=Ni(C,E);if(A.length)return A.unshift(S),A}return[]}class ii{constructor(S,E){this.value=S,this.children=E}toString(){return`TreeNode(${this.value})`}}function Gr(C){const S={};return C&&C.children.forEach(E=>S[E.value.outlet]=E),S}class ss extends $r{constructor(S,E){super(S),this.snapshot=E,Ao(this,S)}toString(){return this.snapshot.toString()}}function Sr(C){const S=function Bo(C){const G=new as([],{},{},"",{},mt,C,null,{});return new wo("",new ii(G,[]))}(C),E=new ge.t([new Wt("",{})]),A=new ge.t({}),P=new ge.t({}),G=new ge.t({}),oe=new ge.t(""),He=new Xt(E,A,G,oe,P,mt,C,S.root);return He.snapshot=S.root,new ss(new ii(He,[]),S)}class Xt{constructor(S,E,A,P,G,oe,He,Pe){this.urlSubject=S,this.paramsSubject=E,this.queryParamsSubject=A,this.fragmentSubject=P,this.dataSubject=G,this.outlet=oe,this.component=He,this._futureSnapshot=Pe,this.title=this.dataSubject?.pipe((0,Tt.T)(Rt=>Rt[En]))??(0,q.of)(void 0),this.url=S,this.params=E,this.queryParams=A,this.fragment=P,this.data=G}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.params.pipe((0,Tt.T)(S=>Rn(S))),this._paramMap}get queryParamMap(){return this._queryParamMap??=this.queryParams.pipe((0,Tt.T)(S=>Rn(S))),this._queryParamMap}toString(){return this.snapshot?this.snapshot.toString():`Future(${this._futureSnapshot})`}}function Oi(C,S,E="emptyOnly"){let A;const{routeConfig:P}=C;return A=null===S||"always"!==E&&""!==P?.path&&(S.component||S.routeConfig?.loadComponent)?{params:{...C.params},data:{...C.data},resolve:{...C.data,...C._resolvedData??{}}}:{params:{...S.params,...C.params},data:{...S.data,...C.data},resolve:{...C.data,...S.data,...P?.data,...C._resolvedData}},P&&oi(P)&&(A.resolve[En]=P.title),A}class as{get title(){return this.data?.[En]}constructor(S,E,A,P,G,oe,He,Pe,Rt){this.url=S,this.params=E,this.queryParams=A,this.fragment=P,this.data=G,this.outlet=oe,this.component=He,this.routeConfig=Pe,this._resolve=Rt}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??=Rn(this.params),this._paramMap}get queryParamMap(){return this._queryParamMap??=Rn(this.queryParams),this._queryParamMap}toString(){return`Route(url:'${this.url.map(A=>A.toString()).join("/")}', path:'${this.routeConfig?this.routeConfig.path:""}')`}}class wo extends $r{constructor(S,E){super(E),this.url=S,Ao(this,E)}toString(){return Xs(this._root)}}function Ao(C,S){S.value._routerState=C,S.children.forEach(E=>Ao(C,E))}function Xs(C){const S=C.children.length>0?` { ${C.children.map(Xs).join(", ")} } `:"";return`${C.value}${S}`}function Uo(C){if(C.snapshot){const S=C.snapshot,E=C._futureSnapshot;C.snapshot=E,xn(S.queryParams,E.queryParams)||C.queryParamsSubject.next(E.queryParams),S.fragment!==E.fragment&&C.fragmentSubject.next(E.fragment),xn(S.params,E.params)||C.paramsSubject.next(E.params),function hr(C,S){if(C.length!==S.length)return!1;for(let E=0;E<C.length;++E)if(!xn(C[E],S[E]))return!1;return!0}(S.url,E.url)||C.urlSubject.next(E.url),xn(S.data,E.data)||C.dataSubject.next(E.data)}else C.snapshot=C._futureSnapshot,C.dataSubject.next(C._futureSnapshot.data)}function Ho(C,S){const E=xn(C.params,S.params)&&function jr(C,S){return Jr(C,S)&&C.every((E,A)=>xn(E.parameters,S[A].parameters))}(C.url,S.url);return E&&!(!C.parent!=!S.parent)&&(!C.parent||Ho(C.parent,S.parent))}function oi(C){return"string"==typeof C.title||null===C.title}let cs=(()=>{class C{constructor(){this.activated=null,this._activatedRoute=null,this.name=mt,this.activateEvents=new g.bkB,this.deactivateEvents=new g.bkB,this.attachEvents=new g.bkB,this.detachEvents=new g.bkB,this.parentContexts=(0,g.WQX)(Pr),this.location=(0,g.WQX)(g.c1b),this.changeDetector=(0,g.WQX)(g.gRc),this.environmentInjector=(0,g.WQX)(g.uvJ),this.inputBinder=(0,g.WQX)(Ci,{optional:!0}),this.supportsBindingToComponentInputs=!0}get activatedComponentRef(){return this.activated}ngOnChanges(E){if(E.name){const{firstChange:A,previousValue:P}=E.name;if(A)return;this.isTrackedInParentContexts(P)&&(this.deactivate(),this.parentContexts.onChildOutletDestroyed(P)),this.initializeOutletWithName()}}ngOnDestroy(){this.isTrackedInParentContexts(this.name)&&this.parentContexts.onChildOutletDestroyed(this.name),this.inputBinder?.unsubscribeFromRouteData(this)}isTrackedInParentContexts(E){return this.parentContexts.getContext(E)?.outlet===this}ngOnInit(){this.initializeOutletWithName()}initializeOutletWithName(){if(this.parentContexts.onChildOutletCreated(this.name,this),this.activated)return;const E=this.parentContexts.getContext(this.name);E?.route&&(E.attachRef?this.attach(E.attachRef,E.route):this.activateWith(E.route,E.injector))}get isActivated(){return!!this.activated}get component(){if(!this.activated)throw new g.wOt(4012,!1);return this.activated.instance}get activatedRoute(){if(!this.activated)throw new g.wOt(4012,!1);return this._activatedRoute}get activatedRouteData(){return this._activatedRoute?this._activatedRoute.snapshot.data:{}}detach(){if(!this.activated)throw new g.wOt(4012,!1);this.location.detach();const E=this.activated;return this.activated=null,this._activatedRoute=null,this.detachEvents.emit(E.instance),E}attach(E,A){this.activated=E,this._activatedRoute=A,this.location.insert(E.hostView),this.inputBinder?.bindActivatedRouteToOutletComponent(this),this.attachEvents.emit(E.instance)}deactivate(){if(this.activated){const E=this.component;this.activated.destroy(),this.activated=null,this._activatedRoute=null,this.deactivateEvents.emit(E)}}activateWith(E,A){if(this.isActivated)throw new g.wOt(4013,!1);this._activatedRoute=E;const P=this.location,oe=E.snapshot.component,He=this.parentContexts.getOrCreateContext(this.name).children,Pe=new fo(E,He,P.injector);this.activated=P.createComponent(oe,{index:P.length,injector:Pe,environmentInjector:A??this.environmentInjector}),this.changeDetector.markForCheck(),this.inputBinder?.bindActivatedRouteToOutletComponent(this),this.activateEvents.emit(this.activated.instance)}static#e=this.\u0275fac=function(A){return new(A||C)};static#t=this.\u0275dir=g.FsC({type:C,selectors:[["router-outlet"]],inputs:{name:"name"},outputs:{activateEvents:"activate",deactivateEvents:"deactivate",attachEvents:"attach",detachEvents:"detach"},exportAs:["outlet"],standalone:!0,features:[g.OA$]})}return C})();class fo{__ngOutletInjector(S){return new fo(this.route,this.childContexts,S)}constructor(S,E,A){this.route=S,this.childContexts=E,this.parent=A}get(S,E){return S===Xt?this.route:S===Pr?this.childContexts:this.parent.get(S,E)}}const Ci=new g.nKC("");let xr=(()=>{class C{constructor(){this.outletDataSubscriptions=new Map}bindActivatedRouteToOutletComponent(E){this.unsubscribeFromRouteData(E),this.subscribeToRouteData(E)}unsubscribeFromRouteData(E){this.outletDataSubscriptions.get(E)?.unsubscribe(),this.outletDataSubscriptions.delete(E)}subscribeToRouteData(E){const{activatedRoute:A}=E,P=Be([A.queryParams,A.params,A.data]).pipe((0,vt.n)(([G,oe,He],Pe)=>(He={...G,...oe,...He},0===Pe?(0,q.of)(He):Promise.resolve(He)))).subscribe(G=>
1{if(!E.isActivated||!E.activatedComponentRef||E.activatedRoute!==A||null===A.component)return void this.unsubscribeFromRouteData(E);const oe=(0,g.HJs)(A.component);if(oe)for(const{templateName:He}of oe.inputs)E.activatedComponentRef.setInput(He,G[He]);else this.unsubscribeFromRouteData(E)});this.outletDataSubscriptions.set(E,P)}static#e=this.\u0275fac=function(A){return new(A||C)};static#t=this.\u0275prov=g.jDH({token:C,factory:C.\u0275fac})}return C})();function wr(C,S,E){if(E&&C.shouldReuseRoute(S.value,E.value.snapshot)){const A=E.value;A._futureSnapshot=S.value;const P=function Ei(C,S,E){return S.children.map(A=>{for(const P of E.children)if(C.shouldReuseRoute(A.value,P.value.snapshot))return wr(C,A,P);return wr(C,A)})}(C,S,E);return new ii(A,P)}{if(C.shouldAttach(S.value)){const G=C.retrieve(S.value);if(null!==G){const oe=G.route;return oe.value._futureSnapshot=S.value,oe.children=S.children.map(He=>wr(C,He)),oe}}const A=function ls(C){return new Xt(new ge.t(C.url),new ge.t(C.params),new ge.t(C.queryParams),new ge.t(C.fragment),new ge.t(C.data),C.outlet,C.component,C)}(S.value),P=S.children.map(G=>wr(C,G));return new ii(A,P)}}const Io="ngNavigationCancelingError";function ki(C,S){const{redirectTo:E,navigationBehaviorOptions:A}=Ae(S)?{redirectTo:S,navigationBehaviorOptions:void 0}:S,P=us(!1,Pn.Redirect);return P.url=E,P.navigationBehaviorOptions=A,P}function us(C,S){const E=new Error(`NavigationCancelingError: ${C||""}`);return E[Io]=!0,E.cancellationCode=S,E}function Qs(C){return!!C&&C[Io]}let ds=(()=>{class C{static#e=this.\u0275fac=function(A){return new(A||C)};static#t=this.\u0275cmp=g.VBU({type:C,selectors:[["ng-component"]],standalone:!0,features:[g.aNF],decls:1,vars:0,template:function(A,P){1&A&&g.nrm(0,"router-outlet")},dependencies:[cs],encapsulation:2})}return C})();function Go(C){const S=C.children&&C.children.map(Go),E=S?{...C,children:S}:{...C};return!E.component&&!E.loadComponent&&(S||E.loadChildren)&&E.outlet&&E.outlet!==mt&&(E.component=ds),E}function ai(C){return C.outlet||mt}function bi(C){if(!C)return null;if(C.routeConfig?._injector)return C.routeConfig._injector;for(let S=C.parent;S;S=S.parent){const E=S.routeConfig;if(E?._loadedInjector)return E._loadedInjector;if(E?._injector)return E._injector}return null}class fs{constructor(S,E,A,P,G){this.routeReuseStrategy=S,this.futureState=E,this.currState=A,this.forwardEvent=P,this.inputBindingEnabled=G}activate(S){const E=this.futureState._root,A=this.currState?this.currState._root:null;this.deactivateChildRoutes(E,A,S),Uo(this.futureState.root),this.activateChildRoutes(E,A,S)}deactivateChildRoutes(S,E,A){const P=Gr(E);S.children.forEach(G=>{const oe=G.value.outlet;this.deactivateRoutes(G,P[oe],A),delete P[oe]}),Object.values(P).forEach(G=>{this.deactivateRouteAndItsChildren(G,A)})}deactivateRoutes(S,E,A){const P=S.value,G=E?E.value:null;if(P===G)if(P.component){const oe=A.getContext(P.outlet);oe&&this.deactivateChildRoutes(S,E,oe.children)}else this.deactivateChildRoutes(S,E,A);else G&&this.deactivateRouteAndItsChildren(E,A)}deactivateRouteAndItsChildren(S,E){S.value.component&&this.routeReuseStrategy.shouldDetach(S.value.snapshot)?this.detachAndStoreRouteSubtree(S,E):this.deactivateRouteAndOutlet(S,E)}detachAndStoreRouteSubtree(S,E){const A=E.getContext(S.value.outlet),P=A&&S.value.component?A.children:E,G=Gr(S);for(const oe of Object.values(G))this.deactivateRouteAndItsChildren(oe,P);if(A&&A.outlet){const oe=A.outlet.detach(),He=A.children.onOutletDeactivated();this.routeReuseStrategy.store(S.value.snapshot,{componentRef:oe,route:S,contexts:He})}}deactivateRouteAndOutlet(S,E){const A=E.getContext(S.value.outlet),P=A&&S.value.component?A.children:E,G=Gr(S);for(const oe of Object.values(G))this.deactivateRouteAndItsChildren(oe,P);A&&(A.outlet&&(A.outlet.deactivate(),A.children.onOutletDeactivated()),A.attachRef=null,A.route=null)}activateChildRoutes(S,E,A){const P=Gr(E);S.children.forEach(G=>{this.activateRoutes(G,P[G.value.outlet],A),this.forwardEvent(new kr(G.value.snapshot))}),S.children.length&&this.forwardEvent(new dt(S.value.snapshot))}activateRoutes(S,E,A){const P=S.value,G=E?E.value:null;if(Uo(P),P===G)if(P.component){const oe=A.getOrCreateContext(P.outlet);this.activateChildRoutes(S,E,oe.children)}else this.activateChildRoutes(S,E,A);else if(P.component){const oe=A.getOrCreateContext(P.outlet);if(this.routeReuseStrategy.shouldAttach(P.snapshot)){const He=this.routeReuseStrategy.retrieve(P.snapshot);this.routeReuseStrategy.store(P.snapshot,null),oe.children.onOutletReAttached(He.contexts),oe.attachRef=He.componentRef,oe.route=He.route.value,oe.outlet&&oe.outlet.attach(He.componentRef,He.route.value),Uo(He.route.value),this.activateChildRoutes(S,null,oe.children)}else{const He=bi(P.snapshot);oe.attachRef=null,oe.route=P,oe.injector=He,oe.outlet&&oe.outlet.activateWith(P,oe.injector),this.activateChildRoutes(S,null,oe.children)}}else this.activateChildRoutes(S,null,A)}}class L{constructor(S){this.path=S,this.route=this.path[this.path.length-1]}}class B{constructor(S,E){this.component=S,this.route=E}}function M(C,S,E){const A=C._root;return jt(A,S?S._root:null,E,[A.value])}function ye(C,S){const E=Symbol(),A=S.get(C,E);return A===E?"function"!=typeof C||(0,g.LfX)(C)?S.get(C):C:A}function jt(C,S,E,A,P={canDeactivateChecks:[],canActivateChecks:[]}){const G=Gr(S);
1return C.children.forEach(oe=>{(function mn(C,S,E,A,P={canDeactivateChecks:[],canActivateChecks:[]}){const G=C.value,oe=S?S.value:null,He=E?E.getContext(C.value.outlet):null;if(oe&&G.routeConfig===oe.routeConfig){const Pe=function Xi(C,S,E){if("function"==typeof E)return E(C,S);switch(E){case"pathParamsChange":return!Jr(C.url,S.url);case"pathParamsOrQueryParamsChange":return!Jr(C.url,S.url)||!xn(C.queryParams,S.queryParams);case"always":return!0;case"paramsOrQueryParamsChange":return!Ho(C,S)||!xn(C.queryParams,S.queryParams);default:return!Ho(C,S)}}(oe,G,G.routeConfig.runGuardsAndResolvers);Pe?P.canActivateChecks.push(new L(A)):(G.data=oe.data,G._resolvedData=oe._resolvedData),jt(C,S,G.component?He?He.children:null:E,A,P),Pe&&He&&He.outlet&&He.outlet.isActivated&&P.canDeactivateChecks.push(new B(He.outlet.component,oe))}else oe&&Qi(S,He,P),P.canActivateChecks.push(new L(A)),jt(C,null,G.component?He?He.children:null:E,A,P)})(oe,G[oe.value.outlet],E,A.concat([oe.value]),P),delete G[oe.value.outlet]}),Object.entries(G).forEach(([oe,He])=>Qi(He,E.getContext(oe),P)),P}function Qi(C,S,E){const A=Gr(C),P=C.value;Object.entries(A).forEach(([G,oe])=>{Qi(oe,P.component?S?S.children.getContext(G):null:S,E)}),E.canDeactivateChecks.push(new B(P.component&&S&&S.outlet&&S.outlet.isActivated?S.outlet.component:null,P))}function Fr(C){return"function"==typeof C}function Ia(C){return C instanceof gt.G||"EmptyError"===C?.name}const Ma=Symbol("INITIAL_VALUE");function Is(){return(0,vt.n)(C=>Be(C.map(S=>S.pipe((0,Yt.s)(1),(0,$e.Z)(Ma)))).pipe((0,Tt.T)(S=>{for(const E of S)if(!0!==E){if(E===Ma)return Ma;if(!1===E||E instanceof cn)return E}return!0}),(0,At.p)(S=>S!==Ma),(0,Yt.s)(1)))}function Tr(C){return(0,et.F)((0,ke.M)(S=>{if(Ae(S))throw ki(0,S)}),(0,Tt.T)(S=>!0===S))}class fi{constructor(S){this.segmentGroup=S||null}}class Rr extends Error{constructor(S){super(),this.urlTree=S}}function Ro(C){return(0,ne.$)(new fi(C))}class Ms{constructor(S,E){this.urlSerializer=S,this.urlTree=E}lineralizeSegments(S,E){let A=[],P=E.root;for(;;){if(A=A.concat(P.segments),0===P.numberOfChildren)return(0,q.of)(A);if(P.numberOfChildren>1||!P.children[mt])return(0,ne.$)(new g.wOt(4e3,!1));P=P.children[mt]}}applyRedirectCommands(S,E,A){const P=this.applyRedirectCreateUrlTree(E,this.urlSerializer.parse(E),S,A);if(E.startsWith("/"))throw new Rr(P);return P}applyRedirectCreateUrlTree(S,E,A,P){const G=this.createSegmentGroup(S,E.root,A,P);return new cn(G,this.createQueryParams(E.queryParams,this.urlTree.queryParams),E.fragment)}createQueryParams(S,E){const A={};return Object.entries(S).forEach(([P,G])=>{if("string"==typeof G&&G.startsWith(":")){const He=G.substring(1);A[P]=E[He]}else A[P]=G}),A}createSegmentGroup(S,E,A,P){const G=this.createSegments(S,E.segments,A,P);let oe={};return Object.entries(E.children).forEach(([He,Pe])=>{oe[He]=this.createSegmentGroup(S,Pe,A,P)}),new Kt(G,oe)}createSegments(S,E,A,P){return E.map(G=>G.path.startsWith(":")?this.findPosParam(S,G,P):this.findOrReturn(G,A))}findPosParam(S,E,A){const P=A[E.path.substring(1)];if(!P)throw new g.wOt(4001,!1);return P}findOrReturn(S,E){let A=0;for(const P of E){if(P.path===S.path)return E.splice(A),P;A++}return S}}const ps={matched:!1,consumedSegments:[],remainingSegments:[],parameters:{},positionalParamSegments:{}};function Oa(C,S,E,A,P){const G=Ti(C,S,E);return G.matched?(A=function si(C,S){return C.providers&&!C._injector&&(C._injector=(0,g.Ol2)(C.providers,S,`Route: ${C.path}`)),C._injector??S}(S,A),function gr(C,S,E,A){const P=S.canMatch;if(!P||0===P.length)return(0,q.of)(!0);const G=P.map(oe=>{const He=ye(oe,C);return Pt(function Bc(C){return C&&Fr(C.canMatch)}(He)?He.canMatch(S,E):(0,g.N4e)(C,()=>He(S,E)))});return(0,q.of)(G).pipe(Is(),Tr())}(A,S,E).pipe((0,Tt.T)(oe=>!0===oe?G:{...ps}))):(0,q.of)(G)}function Ti(C,S,E){if("**"===S.path)return function Js(C){return{matched:!0,parameters:C.length>0?Qt(C).parameters:{},consumedSegments:C,remainingSegments:[],positionalParamSegments:{}}}(E);if(""===S.path)return"full"===S.pathMatch&&(C.hasChildren()||E.length>0)?{...ps}:{matched:!0,consumedSegments:[],remainingSegments:E,parameters:{},positionalParamSegments:{}};const P=(S.matcher||zn)(E,C,S);if(!P)return{...ps};const G={};Object.entries(P.posParams??{}
1).forEach(([He,Pe])=>{G[He]=Pe.path});const oe=P.consumed.length>0?{...G,...P.consumed[P.consumed.length-1].parameters}:G;return{matched:!0,consumedSegments:P.consumed,remainingSegments:E.slice(P.consumed.length),parameters:oe,positionalParamSegments:P.posParams??{}}}function gs(C,S,E,A){return E.length>0&&function Hc(C,S,E){return E.some(A=>ta(C,S,A)&&ai(A)!==mt)}(C,E,A)?{segmentGroup:new Kt(S,ka(A,new Kt(E,C.children))),slicedSegments:[]}:0===E.length&&function ea(C,S,E){return E.some(A=>ta(C,S,A))}(C,E,A)?{segmentGroup:new Kt(C.segments,sc(C,E,A,C.children)),slicedSegments:E}:{segmentGroup:new Kt(C.segments,C.children),slicedSegments:E}}function sc(C,S,E,A){const P={};for(const G of E)if(ta(C,S,G)&&!A[ai(G)]){const oe=new Kt([],{});P[ai(G)]=oe}return{...A,...P}}function ka(C,S){const E={};E[mt]=S;for(const A of C)if(""===A.path&&ai(A)!==mt){const P=new Kt([],{});E[ai(A)]=P}return E}function ta(C,S,E){return(!(C.hasChildren()||S.length>0)||"full"!==E.pathMatch)&&""===E.path}class cc{}class ra{constructor(S,E,A,P,G,oe,He){this.injector=S,this.configLoader=E,this.rootComponentType=A,this.config=P,this.urlTree=G,this.paramsInheritanceStrategy=oe,this.urlSerializer=He,this.applyRedirects=new Ms(this.urlSerializer,this.urlTree),this.absoluteRedirectCount=0,this.allowRedirects=!0}noMatchError(S){return new g.wOt(4002,`'${S.segmentGroup}'`)}recognize(){const S=gs(this.urlTree.root,[],[],this.config).segmentGroup;return this.match(S).pipe((0,Tt.T)(E=>{const A=new as([],Object.freeze({}),Object.freeze({...this.urlTree.queryParams}),this.urlTree.fragment,{},mt,this.rootComponentType,null,{}),P=new ii(A,E),G=new wo("",P),oe=function Ji(C,S,E=null,A=null){return Ri(Zn(C),S,E,A)}(A,[],this.urlTree.queryParams,this.urlTree.fragment);return oe.queryParams=this.urlTree.queryParams,G.url=this.urlSerializer.serialize(oe),this.inheritParamsAndData(G._root,null),{state:G,tree:oe}}))}match(S){return this.processSegmentGroup(this.injector,this.config,S,mt).pipe((0,lt.W)(A=>{if(A instanceof Rr)return this.urlTree=A.urlTree,this.match(A.urlTree.root);throw A instanceof fi?this.noMatchError(A):A}))}inheritParamsAndData(S,E){const A=S.value,P=Oi(A,E,this.paramsInheritanceStrategy);A.params=Object.freeze(P.params),A.data=Object.freeze(P.data),S.children.forEach(G=>this.inheritParamsAndData(G,A))}processSegmentGroup(S,E,A,P){return 0===A.segments.length&&A.hasChildren()?this.processChildren(S,E,A):this.processSegment(S,E,A,A.segments,P,!0).pipe((0,Tt.T)(G=>G instanceof ii?[G]:[]))}processChildren(S,E,A){const P=[];for(const G of Object.keys(A.children))"primary"===G?P.unshift(G):P.push(G);return(0,Y.H)(P).pipe((0,Ue.H)(G=>{const oe=A.children[G],He=function hs(C,S){const E=C.filter(A=>ai(A)===S);return E.push(...C.filter(A=>ai(A)!==S)),E}(E,G);return this.processSegmentGroup(S,He,oe,G)}),function Ne(C,S){return(0,st.N)(function Ht(C,S,E,A,P){return(G,oe)=>{let He=E,Pe=S,Rt=0;G.subscribe((0,we._)(oe,an=>{const fn=Rt++;Pe=He?C(Pe,an,fn):(He=!0,an),A&&oe.next(Pe)},P&&(()=>{He&&oe.next(Pe),oe.complete()})))}}(C,S,arguments.length>=2,!0))}((G,oe)=>(G.push(...oe),G)),Q(null),function Qe(C,S){const E=arguments.length>=2;return A=>A.pipe(C?(0,At.p)((P,G)=>C(P,G,A)):de.D,Ee(1),E?Q(S):ae(()=>new gt.G))}(),(0,le.Z)(G=>{if(null===G)return Ro(A);const oe=Lr(G);return function lc(C){C.sort((S,E)=>S.value.outlet===mt?-1:E.value.outlet===mt?1:S.value.outlet.localeCompare(E.value.outlet))}(oe),(0,q.of)(oe)}))}processSegment(S,E,A,P,G,oe){return(0,Y.H)(E).pipe((0,Ue.H)(He=>this.processSegmentAgainstRoute(He._injector??S,E,He,A,P,G,oe).pipe((0,lt.W)(Pe=>{if(Pe instanceof fi)return(0,q.of)(null);throw Pe}))),Ce(He=>!!He),(0,lt.W)(He=>{if(Ia(He))return function Pi(C,S,E){return 0===S.length&&!C.children[E]}(A,P,G)?(0,q.of)(new cc):Ro(A);throw He}))}processSegmentAgainstRoute(S,E,A,P,G,oe,He){return function ac(C,S,E,A){return!!(ai(C)===A||A!==mt&&ta(S,E,C))&&Ti(S,C,E).matched}(A,P,G,oe)?void 0===A.redirectTo?this.matchSegmentAgainstRoute(S,P,A,G,oe):this.allowRedirects&&He?this.expandSegmentAgainstRouteUsingRedirect(S,P,E,A,G,oe):Ro(P):Ro(P)}expandSegmentAgainstRouteUsingRedirect(S,E,A,P,G,oe){const{matched:He,consumedSegments:Pe,positionalParamSegments:Rt,remainingSegments:an}=Ti(E,P,G);if(!He)return Ro(E);P.redirectTo.startsWith("/")&&(this.absoluteRedirectCount++,this.absoluteRedirectCount>31&&(this.allowRedirects=!1));const fn=this.applyRedirects.applyRedirectCommands(Pe,P.redirectTo,Rt);return this.applyRedirects.lineralizeSegments(P,fn).pipe((0,le.Z)(Ur=>this.processSegment(S,A,E,Ur.concat(an),oe,!1)))}matchSegmentAgainstRoute(S,E,A,P,G){const oe=Oa(E,A,P,S);return"**"===A.path&&(E.children={}),oe.pipe((0,vt.n)(He=>He.matched?this.getChildConfig(S=A._injector??S,A,P).pipe((0,vt.n)(({routes:Pe})=>{const Rt=A._loadedInjector??S,{consumedSegments:an,remainingSegments:fn,parameters:Ur}=He,Ns=new as(an,Ur,Object.freeze({...this.urlTree.queryParams}),this.urlTree.fragment,function Rs(C){return C.data||{}}(A),ai(A),A.component??A._loadedComponent??null,A,function pi(C){return C.resolve||{}}(A)),{segmentGroup:Fa,slicedSegments:Cs}=gs(E,an,fn,Pe);if(0===Cs.length&&Fa.hasChildren())return this.processChildren(Rt,Pe,Fa).pipe((0,Tt.T)(Ar=>null===Ar?null:new ii(Ns,Ar)));if(0===Pe.length&&0===Cs.length)return(0,q.of)(new ii(Ns,[]));const yc=ai(A)===G;return this.processSegment(Rt,Pe,Fa,Cs,yc?mt:G,!0).pipe((0,Tt.T)(Ar=>new ii(Ns,Ar instanceof ii?[Ar]:[])))})):Ro(E)))}getChildConfig(S,E,A){return E.children?(0,q.of)({routes:E.children,injector:S}):E.loadChildren?void 0!==E._loadedRoutes?(0,q.of)({routes:E._loadedRoutes,injector:E._loadedInjector}):function _n(C,S,E,A){const P=S.canLoad;if(void 0===P||0===P.length)return(0,q.of)(!0);const G=P.map(oe=>{const He=ye(oe,C);return Pt(function nc(C){return C&&Fr(C.canLoad)}(He)?He.canLoad(S,E):(0,g.N4e)(C,()=>He(S,E)))});return(0,q.of)(G).pipe(Is(),Tr())}(S,E,A).pipe((0,le.Z)(P=>P?this.configLoader.loadChildren(S,E).pipe((0,ke.M)(G=>{E._loadedRoutes=G.routes,E._loadedInjector=G.injector})):function yl(C){return(0,ne.$)(us(!1,Pn.GuardRejected))}
1())):(0,q.of)({routes:[],injector:S})}}function ms(C){const S=C.value.routeConfig;return S&&""===S.path}function Lr(C){const S=[],E=new Set;for(const A of C){if(!ms(A)){S.push(A);continue}const P=S.find(G=>A.value.routeConfig===G.value.routeConfig);void 0!==P?(P.children.push(...A.children),E.add(P)):S.push(A)}for(const A of E){const P=Lr(A.children);S.push(new ii(A.value,P))}return S.filter(A=>!E.has(A))}function ci(C){const S=C.children.map(E=>ci(E)).flat();return[C,...S]}function _s(C){return(0,vt.n)(S=>{const E=C(S);return E?(0,Y.H)(E).pipe((0,Tt.T)(()=>S)):(0,q.of)(S)})}let po=(()=>{class C{buildTitle(E){let A,P=E.root;for(;void 0!==P;)A=this.getResolvedTitleForRoute(P)??A,P=P.children.find(G=>G.outlet===mt);return A}getResolvedTitleForRoute(E){return E.data[En]}static#e=this.\u0275fac=function(A){return new(A||C)};static#t=this.\u0275prov=g.jDH({token:C,factory:()=>(0,g.WQX)(Vc),providedIn:"root"})}return C})(),Vc=(()=>{class C extends po{constructor(E){super(),this.title=E}updateTitle(E){const A=this.buildTitle(E);void 0!==A&&this.title.setTitle(A)}static#e=this.\u0275fac=function(A){return new(A||C)(g.KVO(nn.hE))};static#t=this.\u0275prov=g.jDH({token:C,factory:C.\u0275fac,providedIn:"root"})}return C})();const ro=new g.nKC("",{providedIn:"root",factory:()=>({})}),T=new g.nKC("");let V=(()=>{class C{constructor(){this.componentLoaders=new WeakMap,this.childrenLoaders=new WeakMap,this.compiler=(0,g.WQX)(g.Ql9)}loadComponent(E){if(this.componentLoaders.get(E))return this.componentLoaders.get(E);if(E._loadedComponent)return(0,q.of)(E._loadedComponent);this.onLoadStartListener&&this.onLoadStartListener(E);const A=Pt(E.loadComponent()).pipe((0,Tt.T)(re),(0,ke.M)(G=>{this.onLoadEndListener&&this.onLoadEndListener(E),E._loadedComponent=G}),(0,ot.j)(()=>{this.componentLoaders.delete(E)})),P=new Ve(A,()=>new te.B).pipe(nt());return this.componentLoaders.set(E,P),P}loadChildren(E,A){if(this.childrenLoaders.get(A))return this.childrenLoaders.get(A);if(A._loadedRoutes)return(0,q.of)({routes:A._loadedRoutes,injector:A._loadedInjector});this.onLoadStartListener&&this.onLoadStartListener(A);const G=function R(C,S,E,A){return Pt(C.loadChildren()).pipe((0,Tt.T)(re),(0,le.Z)(P=>P instanceof g.Co$||Array.isArray(P)?(0,q.of)(P):(0,Y.H)(S.compileModuleAsync(P))),(0,Tt.T)(P=>{A&&A(C);let G,oe,He=!1;return Array.isArray(P)?(oe=P,!0):(G=P.create(E).injector,oe=G.get(T,[],{optional:!0,self:!0}).flat()),{routes:oe.map(Go),injector:G}}))}(A,this.compiler,E,this.onLoadEndListener).pipe((0,ot.j)(()=>{this.childrenLoaders.delete(A)})),oe=new Ve(G,()=>new te.B).pipe(nt());return this.childrenLoaders.set(A,oe),oe}static#e=this.\u0275fac=function(A){return new(A||C)};static#t=this.\u0275prov=g.jDH({token:C,factory:C.\u0275fac,providedIn:"root"})}return C})();function re(C){return function x(C){return C&&"object"==typeof C&&"default"in C}(C)?C.default:C}let je=(()=>{class C{static#e=this.\u0275fac=function(A){return new(A||C)};static#t=this.\u0275prov=g.jDH({token:C,factory:()=>(0,g.WQX)(Je),providedIn:"root"})}return C})(),Je=(()=>{class C{shouldProcessUrl(E){return!0}extract(E){return E}merge(E,A){return E}static#e=this.\u0275fac=function(A){return new(A||C)};static#t=this.\u0275prov=g.jDH({token:C,factory:C.\u0275fac,providedIn:"root"})}return C})();const Dt=new g.nKC(""),cr=new g.nKC("");function qn(C,S,E){const A=C.get(cr),P=C.get(_e.qQ);return C.get(g.SKi).runOutsideAngular(()=>{if(!P.startViewTransition||A.skipNextTransition)return A.skipNextTransition=!1,new Promise(Rt=>setTimeout(Rt));let G;const oe=new Promise(Rt=>{G=Rt}),He=P.startViewTransition(()=>(G(),function jn(C){return new Promise(S=>{(0,g.mal)(S,{injector:C})})}(C))),{onViewTransitionCreated:Pe}=A;return Pe&&(0,g.N4e)(C,()=>Pe({transition:He,from:S,to:E})),oe})}let en=(()=>{class C{get hasRequestedNavigation(){return 0!==this.navigationId}constructor(){this.currentNavigation=null,this.currentTransition=null,this.lastSuccessfulNavigation=null,this.events=new te.B,this.transitionAbortSubject=new te.B,this.configLoader=(0,g.WQX)(V),this.environmentInjector=(0,g.WQX)(g.uvJ),this.urlSerializer
1=(0,g.WQX)($n),this.rootContexts=(0,g.WQX)(Pr),this.location=(0,g.WQX)(_e.aZ),this.inputBindingEnabled=null!==(0,g.WQX)(Ci,{optional:!0}),this.titleStrategy=(0,g.WQX)(po),this.options=(0,g.WQX)(ro,{optional:!0})||{},this.paramsInheritanceStrategy=this.options.paramsInheritanceStrategy||"emptyOnly",this.urlHandlingStrategy=(0,g.WQX)(je),this.createViewTransition=(0,g.WQX)(Dt,{optional:!0}),this.navigationId=0,this.afterPreactivation=()=>(0,q.of)(void 0),this.rootComponentType=null,this.configLoader.onLoadEndListener=P=>this.events.next(new is(P)),this.configLoader.onLoadStartListener=P=>this.events.next(new gn(P))}complete(){this.transitions?.complete()}handleNavigationRequest(E){const A=++this.navigationId;this.transitions?.next({...this.transitions.value,...E,id:A})}setupNavigations(E,A,P){return this.transitions=new ge.t({id:0,currentUrlTree:A,currentRawUrl:A,extractedUrl:this.urlHandlingStrategy.extract(A),urlAfterRedirects:this.urlHandlingStrategy.extract(A),rawUrl:A,extras:{},resolve:null,reject:null,promise:Promise.resolve(!0),source:bn,restoredState:null,currentSnapshot:P.snapshot,targetSnapshot:null,currentRouterState:P,targetRouterState:null,guards:{canActivateChecks:[],canDeactivateChecks:[]},guardsResult:null}),this.transitions.pipe((0,At.p)(G=>0!==G.id),(0,Tt.T)(G=>({...G,extractedUrl:this.urlHandlingStrategy.extract(G.rawUrl)})),(0,vt.n)(G=>{let oe=!1,He=!1;return(0,q.of)(G).pipe((0,vt.n)(Pe=>{if(this.navigationId>G.id)return this.cancelNavigationTransition(G,"",Pn.SupersededByNewNavigation),F.w;this.currentTransition=G,this.currentNavigation={id:Pe.id,initialUrl:Pe.rawUrl,extractedUrl:Pe.extractedUrl,trigger:Pe.source,extras:Pe.extras,previousNavigation:this.lastSuccessfulNavigation?{...this.lastSuccessfulNavigation,previousNavigation:null}:null};const Rt=!E.navigated||this.isUpdatingInternalState()||this.isUpdatedBrowserUrl();if(!Rt&&"reload"!==(Pe.extras.onSameUrlNavigation??E.onSameUrlNavigation)){const fn="";return this.events.next(new Bt(Pe.id,this.urlSerializer.serialize(Pe.rawUrl),fn,pr.IgnoredSameUrlNavigation)),Pe.resolve(null),F.w}if(this.urlHandlingStrategy.shouldProcessUrl(Pe.rawUrl))return(0,q.of)(Pe).pipe((0,vt.n)(fn=>{const Ur=this.transitions?.getValue();return this.events.next(new ar(fn.id,this.urlSerializer.serialize(fn.extractedUrl),fn.source,fn.restoredState)),Ur!==this.transitions?.getValue()?F.w:Promise.resolve(fn)}),function uc(C,S,E,A,P,G){return(0,le.Z)(oe=>function na(C,S,E,A,P,G,oe="emptyOnly"){return new ra(C,S,E,A,P,oe,G).recognize()}(C,S,E,A,oe.extractedUrl,P,G).pipe((0,Tt.T)(({state:He,tree:Pe})=>({...oe,targetSnapshot:He,urlAfterRedirects:Pe}))))}(this.environmentInjector,this.configLoader,this.rootComponentType,E.config,this.urlSerializer,this.paramsInheritanceStrategy),(0,ke.M)(fn=>{G.targetSnapshot=fn.targetSnapshot,G.urlAfterRedirects=fn.urlAfterRedirects,this.currentNavigation={...this.currentNavigation,finalUrl:fn.urlAfterRedirects};const Ur=new Qr(fn.id,this.urlSerializer.serialize(fn.extractedUrl),this.urlSerializer.serialize(fn.urlAfterRedirects),fn.targetSnapshot);this.events.next(Ur)}));if(Rt&&this.urlHandlingStrategy.shouldProcessUrl(Pe.currentRawUrl)){const{id:fn,extractedUrl:Ur,source:Ns,restoredState:Fa,extras:Cs}=Pe,yc=new ar(fn,this.urlSerializer.serialize(Ur),Ns,Fa);this.events.next(yc);const Ar=Sr(this.rootComponentType).snapshot;return this.currentTransition=G={...Pe,targetSnapshot:Ar,urlAfterRedirects:Ur,extras:{...Cs,skipLocationChange:!1,replaceUrl:!1}},this.currentNavigation.finalUrl=Ur,(0,q.of)(G)}{const fn="";return this.events.next(new Bt(Pe.id,this.urlSerializer.serialize(Pe.extractedUrl),fn,pr.IgnoredByUrlHandlingStrategy)),Pe.resolve(null),F.w}}),(0,ke.M)(Pe=>{const Rt=new ws(Pe.id,this.urlSerializer.serialize(Pe.extractedUrl),this.urlSerializer.serialize(Pe.urlAfterRedirects),Pe.targetSnapshot);this.events.next(Rt)}),(0,Tt.T)(Pe=>(this.currentTransition=G={...Pe,guards:M(Pe.targetSnapshot,Pe.currentSnapshot,this.rootContexts)},G)),function _l(C,S){return(0,le.Z)(E=>{const{targetSnapshot:A,currentSnapshot:P,guards:{canActivateChecks:G,canDeactivateChecks:oe}}=E;return 0===oe.length&&0===G.length?(0,q.of)({...E,guardsResult:!0}):function Ra(C,S,E,A){return(0,Y.H)(C).pipe((0,le.Z)(P=>
1function Ys(C,S,E,A,P){const G=S&&S.routeConfig?S.routeConfig.canDeactivate:null;if(!G||0===G.length)return(0,q.of)(!0);const oe=G.map(He=>{const Pe=bi(S)??P,Rt=ye(He,Pe);return Pt(function Jn(C){return C&&Fr(C.canDeactivate)}(Rt)?Rt.canDeactivate(C,S,E,A):(0,g.N4e)(Pe,()=>Rt(C,S,E,A))).pipe(Ce())});return(0,q.of)(oe).pipe(Is())}(P.component,P.route,E,S,A)),Ce(P=>!0!==P,!0))}(oe,A,P,C).pipe((0,le.Z)(He=>He&&function tc(C){return"boolean"==typeof C}(He)?function Uc(C,S,E,A){return(0,Y.H)(S).pipe((0,Ue.H)(P=>(0,wt.x)(function Na(C,S){return null!==C&&S&&S(new ri(C)),(0,q.of)(!0)}(P.route.parent,A),function rc(C,S){return null!==C&&S&&S(new os(C)),(0,q.of)(!0)}(P.route,A),function oc(C,S,E){const A=S[S.length-1],G=S.slice(0,S.length-1).reverse().map(oe=>function z(C){const S=C.routeConfig?C.routeConfig.canActivateChild:null;return S&&0!==S.length?{node:C,guards:S}:null}(oe)).filter(oe=>null!==oe).map(oe=>(0,Ut.v)(()=>{const He=oe.guards.map(Pe=>{const Rt=bi(oe.node)??E,an=ye(Pe,Rt);return Pt(function Aa(C){return C&&Fr(C.canActivateChild)}(an)?an.canActivateChild(A,C):(0,g.N4e)(Rt,()=>an(A,C))).pipe(Ce())});return(0,q.of)(He).pipe(Is())}));return(0,q.of)(G).pipe(Is())}(C,P.path,E),function ic(C,S,E){const A=S.routeConfig?S.routeConfig.canActivate:null;if(!A||0===A.length)return(0,q.of)(!0);const P=A.map(G=>(0,Ut.v)(()=>{const oe=bi(S)??E,He=ye(G,oe);return Pt(function wa(C){return C&&Fr(C.canActivate)}(He)?He.canActivate(S,C):(0,g.N4e)(oe,()=>He(S,C))).pipe(Ce())}));return(0,q.of)(P).pipe(Is())}(C,P.route,E))),Ce(P=>!0!==P,!0))}(A,G,C,S):(0,q.of)(He)),(0,Tt.T)(He=>({...E,guardsResult:He})))})}(this.environmentInjector,Pe=>this.events.next(Pe)),(0,ke.M)(Pe=>{if(G.guardsResult=Pe.guardsResult,Ae(Pe.guardsResult))throw ki(0,Pe.guardsResult);const Rt=new Da(Pe.id,this.urlSerializer.serialize(Pe.extractedUrl),this.urlSerializer.serialize(Pe.urlAfterRedirects),Pe.targetSnapshot,!!Pe.guardsResult);this.events.next(Rt)}),(0,At.p)(Pe=>!!Pe.guardsResult||(this.cancelNavigationTransition(Pe,"",Pn.GuardRejected),!1)),_s(Pe=>{if(Pe.guards.canActivateChecks.length)return(0,q.of)(Pe).pipe((0,ke.M)(Rt=>{const an=new As(Rt.id,this.urlSerializer.serialize(Rt.extractedUrl),this.urlSerializer.serialize(Rt.urlAfterRedirects),Rt.targetSnapshot);this.events.next(an)}),(0,vt.n)(Rt=>{let an=!1;return(0,q.of)(Rt).pipe(function zo(C,S){return(0,le.Z)(E=>{const{targetSnapshot:A,guards:{canActivateChecks:P}}=E;if(!P.length)return(0,q.of)(E);const G=new Set(P.map(Pe=>Pe.route)),oe=new Set;for(const Pe of G)if(!oe.has(Pe))for(const Rt of ci(Pe))oe.add(Rt);let He=0;return(0,Y.H)(oe).pipe((0,Ue.H)(Pe=>G.has(Pe)?function qr(C,S,E,A){const P=C.routeConfig,G=C._resolve;return void 0!==P?.title&&!oi(P)&&(G[En]=P.title),function li(C,S,E,A){const P=Hr(C);if(0===P.length)return(0,q.of)({});const G={};return(0,Y.H)(P).pipe((0,le.Z)(oe=>function no(C,S,E,A){const P=bi(S)??A,G=ye(C,P);return Pt(G.resolve?G.resolve(S,E):(0,g.N4e)(P,()=>G(S,E)))}(C[oe],S,E,A).pipe(Ce(),(0,ke.M)(He=>{G[oe]=He}))),Ee(1),(0,ze.u)(G),(0,lt.W)(oe=>Ia(oe)?F.w:(0,ne.$)(oe)))}(G,C,S,A).pipe((0,Tt.T)(oe=>(C._resolvedData=oe,C.data=Oi(C,C.parent,E).resolve,null)))}(Pe,A,C,S):(Pe.data=Oi(Pe,Pe.parent,C).resolve,(0,q.of)(void 0))),(0,ke.M)(()=>He++),Ee(1),(0,le.Z)(Pe=>He===oe.size?(0,q.of)(E):F.w))})}(this.paramsInheritanceStrategy,this.environmentInjector),(0,ke.M)({next:()=>an=!0,complete:()=>{an||this.cancelNavigationTransition(Rt,"",Pn.NoDataFromResolver)}}))}),(0,ke.M)(Rt=>{const an=new Lo(Rt.id,this.urlSerializer.serialize(Rt.extractedUrl),this.urlSerializer.serialize(Rt.urlAfterRedirects),Rt.targetSnapshot);this.events.next(an)}))}),_s(Pe=>{const Rt=an=>{const fn=[];an.routeConfig?.loadComponent&&!an.routeConfig._loadedComponent&&fn.push(this.configLoader.loadComponent(an.routeConfig).pipe((0,ke.M)(Ur=>{an.component=Ur}),(0,Tt.T)(()=>{})));for(const Ur of an.children)fn.push(...Rt(Ur));return fn};return Be(Rt(Pe.targetSnapshot.root)).pipe(Q(null),(0,Yt.s)(1))}),_s(()=>this.afterPreactivation()),(0,vt.n)(()=>{const{currentSnapshot:Pe,targetSnapshot:Rt}=G,an=this.createViewTransition?.(this.environmentInjector,Pe.root,Rt.root);return an?(0,Y.H)(an).pipe((0,Tt.T)(()=>G)):(0,q.of)(G)}),(0,Tt.T)(Pe=>{const Rt=function eo(C,S,E){const A=wr(C,S._root,E?E._root:void 0);return new ss(A,S)}(E.routeReuseStrategy,Pe.targetSnapshot,Pe.currentRouterState);return this.currentTransition=G={...Pe,targetRouterState:Rt},this.currentNavigation.targetRouterState=Rt,G}),(0,ke.M)(()=>{this.events.next(new vi)}),((C,S,E,A)=>(0,Tt.T)(P=>(new fs(S,P.targetRouterState,P.currentRouterState,E,A).activate(C),P)))(this.rootContexts,E.routeReuseStrategy,Pe=>this.events.next(Pe),this.inputBindingEnabled),(0,Yt.s)(1),(0,ke.M)({next:Pe=>{oe=!0,this.lastSuccessfulNavigation=this.currentNavigation,this.events.next(new Qn(Pe.id,this.urlSerializer.serialize(Pe.extractedUrl),this.urlSerializer.serialize(Pe.urlAfterRedirects))),this.titleStrategy?.updateTitle(Pe.targetRouterState.snapshot),Pe.resolve(!0)},complete:()=>{oe=!0}}),(0,Mt.Q)(this.transitionAbortSubject.pipe((0,ke.M)(Pe=>{throw Pe}))),(0,ot.j)(()=>{!oe&&!He&&this.cancelNavigationTransition(G,"",Pn.SupersededByNewNavigation),this.currentTransition?.id===G.id&&(this.currentNavigation=null,this.currentTransition=null)}),(0,lt.W)(Pe=>{if(He=!0,Qs(Pe))this.events.next(new zt(G.id,this.urlSerializer.serialize(G.extractedUrl),Pe.message,Pe.cancellationCode)),function Vo(C){return Qs(C)&&Ae(C.url)}(Pe)?this.events.next(new ho(Pe.url)):G.resolve(!1);else{this.events.next(new rs(G.id,this.urlSerializer.serialize(G.extractedUrl),Pe,G.targetSnapshot??void 0));try{G.resolve(E.errorHandler(Pe))}catch(Rt){this.options.resolveNavigationPromiseOnError?G.resolve(!1):G.reject(Rt)}}return F.w}))}))}cancelNavigationTransition(E,A,P){const G=new zt(E.id,this.urlSerializer.serialize(E.extractedUrl),A,P);this.events.next(G),E.resolve(!1)}isUpdatingInternalState(){return this.currentTransition?.extractedUrl.toString()!==this.currentTransition?.currentUrlTree.toString()}isUpdatedBrowserUrl(){return this.urlHandlingStrategy.extract(this.urlSerializer.parse(this.location.path(!0))).toString()!==this.currentTransition?.extractedUrl.toString()&&!this.currentTransition?.extras.skipLocationChange}static#e=this.\u0275fac=function(A){return new(A||C)};
1static#t=this.\u0275prov=g.jDH({token:C,factory:C.\u0275fac,providedIn:"root"})}return C})();function er(C){return C!==bn}let Bn=(()=>{class C{static#e=this.\u0275fac=function(A){return new(A||C)};static#t=this.\u0275prov=g.jDH({token:C,factory:()=>(0,g.WQX)(Un),providedIn:"root"})}return C})();class Cr{shouldDetach(S){return!1}store(S,E){}shouldAttach(S){return!1}retrieve(S){return null}shouldReuseRoute(S,E){return S.routeConfig===E.routeConfig}}let Un=(()=>{class C extends Cr{static#e=this.\u0275fac=(()=>{let E;return function(P){return(E||(E=g.xGo(C)))(P||C)}})();static#t=this.\u0275prov=g.jDH({token:C,factory:C.\u0275fac,providedIn:"root"})}return C})(),ht=(()=>{class C{static#e=this.\u0275fac=function(A){return new(A||C)};static#t=this.\u0275prov=g.jDH({token:C,factory:()=>(0,g.WQX)(xt),providedIn:"root"})}return C})(),xt=(()=>{class C extends ht{constructor(){super(...arguments),this.location=(0,g.WQX)(_e.aZ),this.urlSerializer=(0,g.WQX)($n),this.options=(0,g.WQX)(ro,{optional:!0})||{},this.canceledNavigationResolution=this.options.canceledNavigationResolution||"replace",this.urlHandlingStrategy=(0,g.WQX)(je),this.urlUpdateStrategy=this.options.urlUpdateStrategy||"deferred",this.currentUrlTree=new cn,this.rawUrlTree=this.currentUrlTree,this.currentPageId=0,this.lastSuccessfulId=-1,this.routerState=Sr(null),this.stateMemento=this.createStateMemento()}getCurrentUrlTree(){return this.currentUrlTree}getRawUrlTree(){return this.rawUrlTree}restoredState(){return this.location.getState()}get browserPageId(){return"computed"!==this.canceledNavigationResolution?this.currentPageId:this.restoredState()?.\u0275routerPageId??this.currentPageId}getRouterState(){return this.routerState}createStateMemento(){return{rawUrlTree:this.rawUrlTree,currentUrlTree:this.currentUrlTree,routerState:this.routerState}}registerNonRouterCurrentEntryChangeListener(E){return this.location.subscribe(A=>{"popstate"===A.type&&E(A.url,A.state)})}handleRouterEvent(E,A){if(E instanceof ar)this.stateMemento=this.createStateMemento();else if(E instanceof Bt)this.rawUrlTree=A.initialUrl;else if(E instanceof Qr){if("eager"===this.urlUpdateStrategy&&!A.extras.skipLocationChange){const P=this.urlHandlingStrategy.merge(A.finalUrl,A.initialUrl);this.setBrowserUrl(P,A)}}else E instanceof vi?(this.currentUrlTree=A.finalUrl,this.rawUrlTree=this.urlHandlingStrategy.merge(A.finalUrl,A.initialUrl),this.routerState=A.targetRouterState,"deferred"===this.urlUpdateStrategy&&(A.extras.skipLocationChange||this.setBrowserUrl(this.rawUrlTree,A))):E instanceof zt&&(E.code===Pn.GuardRejected||E.code===Pn.NoDataFromResolver)?this.restoreHistory(A):E instanceof rs?this.restoreHistory(A,!0):E instanceof Qn&&(this.lastSuccessfulId=E.id,this.currentPageId=this.browserPageId)}setBrowserUrl(E,A){const P=this.urlSerializer.serialize(E);if(this.location.isCurrentPathEqualTo(P)||A.extras.replaceUrl){const oe={...A.extras.state,...this.generateNgRouterState(A.id,this.browserPageId)};this.location.replaceState(P,"",oe)}else{const G={...A.extras.state,...this.generateNgRouterState(A.id,this.browserPageId+1)};this.location.go(P,"",G)}}restoreHistory(E,A=!1){if("computed"===this.canceledNavigationResolution){const G=this.currentPageId-this.browserPageId;0!==G?this.location.historyGo(G):this.currentUrlTree===E.finalUrl&&0===G&&(this.resetState(E),this.resetUrlToCurrentUrlTree())}else"replace"===this.canceledNavigationResolution&&(A&&this.resetState(E),this.resetUrlToCurrentUrlTree())}resetState(E){this.routerState=this.stateMemento.routerState,this.currentUrlTree=this.stateMemento.currentUrlTree,this.rawUrlTree=this.urlHandlingStrategy.merge(this.currentUrlTree,E.finalUrl??this.rawUrlTree)}resetUrlToCurrentUrlTree(){this.location.replaceState(this.urlSerializer.serialize(this.rawUrlTree),"",this.generateNgRouterState(this.lastSuccessfulId,this.currentPageId))}generateNgRouterState(E,A){return"computed"===this.canceledNavigationResolution?{navigationId:E,\u0275routerPageId:A}:{navigationId:E}}static#e=this.\u0275fac=(()=>{let E;return function(P){return(E||(E=g.xGo(C)))(P||C)}})();
1static#t=this.\u0275prov=g.jDH({token:C,factory:C.\u0275fac,providedIn:"root"})}return C})();var Hn=function(C){return C[C.COMPLETE=0]="COMPLETE",C[C.FAILED=1]="FAILED",C[C.REDIRECTING=2]="REDIRECTING",C}(Hn||{});function lr(C,S){C.events.pipe((0,At.p)(E=>E instanceof Qn||E instanceof zt||E instanceof rs||E instanceof Bt),(0,Tt.T)(E=>E instanceof Qn||E instanceof Bt?Hn.COMPLETE:E instanceof zt&&(E.code===Pn.Redirect||E.code===Pn.SupersededByNewNavigation)?Hn.REDIRECTING:Hn.FAILED),(0,At.p)(E=>E!==Hn.REDIRECTING),(0,Yt.s)(1)).subscribe(()=>{S()})}function tr(C){throw C}const Br={paths:"exact",fragment:"ignored",matrixParams:"ignored",queryParams:"exact"},io={paths:"subset",fragment:"ignored",matrixParams:"ignored",queryParams:"subset"};let In=(()=>{class C{get currentUrlTree(){return this.stateManager.getCurrentUrlTree()}get rawUrlTree(){return this.stateManager.getRawUrlTree()}get events(){return this._events}get routerState(){return this.stateManager.getRouterState()}constructor(){this.disposed=!1,this.isNgZoneEnabled=!1,this.console=(0,g.WQX)(g.H3F),this.stateManager=(0,g.WQX)(ht),this.options=(0,g.WQX)(ro,{optional:!0})||{},this.pendingTasks=(0,g.WQX)(g.TgB),this.urlUpdateStrategy=this.options.urlUpdateStrategy||"deferred",this.navigationTransitions=(0,g.WQX)(en),this.urlSerializer=(0,g.WQX)($n),this.location=(0,g.WQX)(_e.aZ),this.urlHandlingStrategy=(0,g.WQX)(je),this._events=new te.B,this.errorHandler=this.options.errorHandler||tr,this.navigated=!1,this.routeReuseStrategy=(0,g.WQX)(Bn),this.onSameUrlNavigation=this.options.onSameUrlNavigation||"ignore",this.config=(0,g.WQX)(T,{optional:!0})?.flat()??[],this.componentInputBindingEnabled=!!(0,g.WQX)(Ci,{optional:!0}),this.eventsSubscription=new tt.yU,this.isNgZoneEnabled=(0,g.WQX)(g.SKi)instanceof g.SKi&&g.SKi.isInAngularZone(),this.resetConfig(this.config),this.navigationTransitions.setupNavigations(this,this.currentUrlTree,this.routerState).subscribe({error:E=>{this.console.warn(E)}}),this.subscribeToNavigationEvents()}subscribeToNavigationEvents(){const E=this.navigationTransitions.events.subscribe(A=>{try{const P=this.navigationTransitions.currentTransition,G=this.navigationTransitions.currentNavigation;if(null!==P&&null!==G)if(this.stateManager.handleRouterEvent(A,G),A instanceof zt&&A.code!==Pn.Redirect&&A.code!==Pn.SupersededByNewNavigation)this.navigated=!0;else if(A instanceof Qn)this.navigated=!0;else if(A instanceof ho){const oe=this.urlHandlingStrategy.merge(A.url,P.currentRawUrl),He={info:P.extras.info,skipLocationChange:P.extras.skipLocationChange,replaceUrl:"eager"===this.urlUpdateStrategy||er(P.source)};this.scheduleNavigation(oe,bn,null,He,{resolve:P.resolve,reject:P.reject,promise:P.promise})}(function go(C){return!(C instanceof vi||C instanceof ho)})(A)&&this._events.next(A)}catch(P){this.navigationTransitions.transitionAbortSubject.next(P)}});this.eventsSubscription.add(E)}resetRootComponentType(E){this.routerState.root.component=E,this.navigationTransitions.rootComponentType=E}initialNavigation(){this.setUpLocationChangeListener(),this.navigationTransitions.hasRequestedNavigation||this.navigateToSyncWithBrowser(this.location.path(!0),bn,this.stateManager.restoredState())}setUpLocationChangeListener(){this.nonRouterCurrentEntryChangeSubscription??=this.stateManager.registerNonRouterCurrentEntryChangeListener((E,A)=>{setTimeout(()=>{this.navigateToSyncWithBrowser(E,"popstate",A)},0)})}navigateToSyncWithBrowser(E,A,P){const G={replaceUrl:!0},oe=P?.navigationId?P:null;if(P){const Pe={...P};delete Pe.navigationId,delete Pe.\u0275routerPageId,0!==Object.keys(Pe).length&&(G.state=Pe)}const He=this.parseUrl(E);this.scheduleNavigation(He,A,oe,G)}get url(){return this.serializeUrl(this.currentUrlTree)}getCurrentNavigation(){return this.navigationTransitions.currentNavigation}get lastSuccessfulNavigation(){return this.navigationTransitions.lastSuccessfulNavigation}resetConfig(E){this.config=E.map(Go),this.navigated=!1}ngOnDestroy(){this.dispose()}dispose(){this.navigationTransitions.complete(),this.nonRouterCurrentEntryChangeSubscription&&(this.nonRouterCurrentEntryChangeSubscription.unsubscribe(),this.nonRouterCurrentEntryChangeSubscription=void 0),this.disposed=!0,this.eventsSubscription.unsubscribe()}createUrlTree(E,A={}){const{relativeTo:P,queryParams:G,fragment:oe,queryParamsHandling:He,preserveFragment:Pe}=A,Rt=Pe?this.currentUrlTree.fragment:oe;let fn,an=null;
1switch(He){case"merge":an={...this.currentUrlTree.queryParams,...G};break;case"preserve":an=this.currentUrlTree.queryParams;break;default:an=G||null}null!==an&&(an=this.removeEmptyProps(an));try{fn=Zn(P?P.snapshot:this.routerState.snapshot.root)}catch{("string"!=typeof E[0]||!E[0].startsWith("/"))&&(E=[]),fn=this.currentUrlTree.root}return Ri(fn,E,an,Rt??null)}navigateByUrl(E,A={skipLocationChange:!1}){const P=Ae(E)?E:this.parseUrl(E),G=this.urlHandlingStrategy.merge(P,this.rawUrlTree);return this.scheduleNavigation(G,bn,null,A)}navigate(E,A={skipLocationChange:!1}){return function Kr(C){for(let S=0;S<C.length;S++)if(null==C[S])throw new g.wOt(4008,!1)}(E),this.navigateByUrl(this.createUrlTree(E,A),A)}serializeUrl(E){return this.urlSerializer.serialize(E)}parseUrl(E){try{return this.urlSerializer.parse(E)}catch{return this.urlSerializer.parse("/")}}isActive(E,A){let P;if(P=!0===A?{...Br}:!1===A?{...io}:A,Ae(E))return An(this.currentUrlTree,E,P);const G=this.parseUrl(E);return An(this.currentUrlTree,G,P)}removeEmptyProps(E){return Object.entries(E).reduce((A,[P,G])=>(null!=G&&(A[P]=G),A),{})}scheduleNavigation(E,A,P,G,oe){if(this.disposed)return Promise.resolve(!1);let He,Pe,Rt;oe?(He=oe.resolve,Pe=oe.reject,Rt=oe.promise):Rt=new Promise((fn,Ur)=>{He=fn,Pe=Ur});const an=this.pendingTasks.add();return lr(this,()=>{queueMicrotask(()=>this.pendingTasks.remove(an))}),this.navigationTransitions.handleNavigationRequest({source:A,restoredState:P,currentUrlTree:this.currentUrlTree,currentRawUrl:this.currentUrlTree,rawUrl:E,extras:G,resolve:He,reject:Pe,promise:Rt,currentSnapshot:this.routerState.snapshot,currentRouterState:this.routerState}),Rt.catch(fn=>Promise.reject(fn))}static#e=this.\u0275fac=function(A){return new(A||C)};static#t=this.\u0275prov=g.jDH({token:C,factory:C.\u0275fac,providedIn:"root"})}return C})(),Jt=(()=>{class C{constructor(E,A,P,G,oe,He){this.router=E,this.route=A,this.tabIndexAttribute=P,this.renderer=G,this.el=oe,this.locationStrategy=He,this.href=null,this.commands=null,this.onChanges=new te.B,this.preserveFragment=!1,this.skipLocationChange=!1,this.replaceUrl=!1;const Pe=oe.nativeElement.tagName?.toLowerCase();this.isAnchorElement="a"===Pe||"area"===Pe,this.isAnchorElement?this.subscription=E.events.subscribe(Rt=>{Rt instanceof Qn&&this.updateHref()}):this.setTabIndexIfNotOnNativeEl("0")}setTabIndexIfNotOnNativeEl(E){null!=this.tabIndexAttribute||this.isAnchorElement||this.applyAttributeValue("tabindex",E)}ngOnChanges(E){this.isAnchorElement&&this.updateHref(),this.onChanges.next(this)}set routerLink(E){null!=E?(this.commands=Array.isArray(E)?E:[E],this.setTabIndexIfNotOnNativeEl("0")):(this.commands=null,this.setTabIndexIfNotOnNativeEl(null))}onClick(E,A,P,G,oe){const He=this.urlTree;return!!(null===He||this.isAnchorElement&&(0!==E||A||P||G||oe||"string"==typeof this.target&&"_self"!=this.target))||(this.router.navigateByUrl(He,{skipLocationChange:this.skipLocationChange,replaceUrl:this.replaceUrl,state:this.state,info:this.info}),!this.isAnchorElement)}ngOnDestroy(){this.subscription?.unsubscribe()}updateHref(){const E=this.urlTree;this.href=null!==E&&this.locationStrategy?this.locationStrategy?.prepareExternalUrl(this.router.serializeUrl(E)):null;const A=null===this.href?null:(0,g.n$t)(this.href,this.el.nativeElement.tagName.toLowerCase(),"href");this.applyAttributeValue("href",A)}applyAttributeValue(E,A){const P=this.renderer,G=this.el.nativeElement;null!==A?P.setAttribute(G,E,A):P.removeAttribute(G,E)}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})}static#e=this.\u0275fac=function(A){return new(A||C)(g.rXU(In),g.rXU(Xt),g.kS0("tabindex"),g.rXU(g.sFG),g.rXU(g.aKT),g.rXU(_e.hb))};static#t=this.\u0275dir=g.FsC({type:C,selectors:[["","routerLink",""]],hostVars:1,hostBindings:function(A,P){1&A&&g.bIt("click",function(oe){return P.onClick(oe.button,oe.ctrlKey,oe.shiftKey,oe.altKey,oe.metaKey)}),2&A&&g.BMQ("target",P.target)},inputs:{target:"target",queryParams:"queryParams",fragment:"fragment",queryParamsHandling:"queryParamsHandling",state:"state",info:"info",relativeTo:"relativeTo",preserveFragment:[g.Mj6.HasDecoratorInputTransform,"preserveFragment","preserveFragment",g.L39],skipLocationChange:[g.Mj6.HasDecoratorInputTransform,"skipLocationChange","skipLocationChange",g.L39],replaceUrl:[g.Mj6.HasDecoratorInputTransform,"replaceUrl","replaceUrl",g.L39],routerLink:"routerLink"},standalone:!0,features:[g.GFd,g.OA$]})}return C})(),ia=(()=>{class C{get isActive(){return this._isActive}constructor(E,A,P,G,oe){this.router=E,this.element=A,this.renderer=P,this.cdr=G,this.link=oe,this.classes=[],this._isActive=!1,this.routerLinkActiveOptions={exact:!1},this.isActiveChange=new g.bkB,this.routerEventsSubscription=E.events.subscribe(He=>{He instanceof Qn&&this.update()})}ngAfterContentInit(){(0,q.of)(this.links.changes,(0,q.of)(null)).pipe((0,dn.U)()).subscribe(E=>{this.update(),this.subscribeToEachLinkOnChanges()})}subscribeToEachLinkOnChanges(){this.linkInputChangesSubscription?.unsubscribe();const E=[...this.links.toArray(),this.link].filter(A=>!!A).map(A=>A.onChanges);this.linkInputChangesSubscription=(0,Y.H)(E).pipe((0,dn.U)()).subscribe(A=>{this._isActive!==this.isLinkActive(this.router)(A)&&this.update()})}set routerLinkActive(E){const A=Array.isArray(E)?E:E.split(" ");this.classes=A.filter(P=>!!P)}ngOnChanges(E){this.update()}ngOnDestroy(){this.routerEventsSubscription.unsubscribe(),this.linkInputChangesSubscription?.unsubscribe()}update(){!this.links||!this.router.navigated||queueMicrotask(()=>{const E=this.hasActiveLinks();
1this.classes.forEach(A=>{E?this.renderer.addClass(this.element.nativeElement,A):this.renderer.removeClass(this.element.nativeElement,A)}),E&&void 0!==this.ariaCurrentWhenActive?this.renderer.setAttribute(this.element.nativeElement,"aria-current",this.ariaCurrentWhenActive.toString()):this.renderer.removeAttribute(this.element.nativeElement,"aria-current"),this._isActive!==E&&(this._isActive=E,this.cdr.markForCheck(),this.isActiveChange.emit(E))})}isLinkActive(E){const A=function dc(C){return!!C.paths}(this.routerLinkActiveOptions)?this.routerLinkActiveOptions:this.routerLinkActiveOptions.exact||!1;return P=>{const G=P.urlTree;return!!G&&E.isActive(G,A)}}hasActiveLinks(){const E=this.isLinkActive(this.router);return this.link&&E(this.link)||this.links.some(E)}static#e=this.\u0275fac=function(A){return new(A||C)(g.rXU(In),g.rXU(g.aKT),g.rXU(g.sFG),g.rXU(g.gRc),g.rXU(Jt,8))};static#t=this.\u0275dir=g.FsC({type:C,selectors:[["","routerLinkActive",""]],contentQueries:function(A,P,G){if(1&A&&g.wni(G,Jt,5),2&A){let oe;g.mGM(oe=g.lsd())&&(P.links=oe)}},inputs:{routerLinkActiveOptions:"routerLinkActiveOptions",ariaCurrentWhenActive:"ariaCurrentWhenActive",routerLinkActive:"routerLinkActive"},outputs:{isActiveChange:"isActiveChange"},exportAs:["routerLinkActive"],standalone:!0,features:[g.OA$]})}return C})();class Xo{}let oa=(()=>{class C{constructor(E,A,P,G,oe){this.router=E,this.injector=P,this.preloadingStrategy=G,this.loader=oe}setUpPreloading(){this.subscription=this.router.events.pipe((0,At.p)(E=>E instanceof Qn),(0,Ue.H)(()=>this.preload())).subscribe(()=>{})}preload(){return this.processRoutes(this.injector,this.router.config)}ngOnDestroy(){this.subscription&&this.subscription.unsubscribe()}processRoutes(E,A){const P=[];for(const G of A){G.providers&&!G._injector&&(G._injector=(0,g.Ol2)(G.providers,E,`Route: ${G.path}`));const oe=G._injector??E,He=G._loadedInjector??oe;(G.loadChildren&&!G._loadedRoutes&&void 0===G.canLoad||G.loadComponent&&!G._loadedComponent)&&P.push(this.preloadConfig(oe,G)),(G.children||G._loadedRoutes)&&P.push(this.processRoutes(He,G.children??G._loadedRoutes))}return(0,Y.H)(P).pipe((0,dn.U)())}preloadConfig(E,A){return this.preloadingStrategy.preload(A,()=>{let P;P=A.loadChildren&&void 0===A.canLoad?this.loader.loadChildren(E,A):(0,q.of)(null);const G=P.pipe((0,le.Z)(oe=>null===oe?(0,q.of)(void 0):(A._loadedRoutes=oe.routes,A._loadedInjector=oe.injector,this.processRoutes(oe.injector??E,oe.routes))));if(A.loadComponent&&!A._loadedComponent){const oe=this.loader.loadComponent(A);return(0,Y.H)([G,oe]).pipe((0,dn.U)())}return G})}static#e=this.\u0275fac=function(A){return new(A||C)(g.KVO(In),g.KVO(g.Ql9),g.KVO(g.uvJ),g.KVO(Xo),g.KVO(V))};static#t=this.\u0275prov=g.jDH({token:C,factory:C.\u0275fac,providedIn:"root"})}return C})();const Wr=new g.nKC("");let Qo=(()=>{class C{constructor(E,A,P,G,oe={}){this.urlSerializer=E,this.transitions=A,this.viewportScroller=P,this.zone=G,this.options=oe,this.lastId=0,this.lastSource="imperative",this.restoredId=0,this.store={},this.environmentInjector=(0,g.WQX)(g.uvJ),oe.scrollPositionRestoration||="disabled",oe.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(E=>{E instanceof ar?(this.store[this.lastId]=this.viewportScroller.getScrollPosition(),this.lastSource=E.navigationTrigger,this.restoredId=E.restoredState?E.restoredState.navigationId:0):E instanceof Qn?(this.lastId=E.id,this.scheduleScrollEvent(E,this.urlSerializer.parse(E.urlAfterRedirects).fragment)):E instanceof Bt&&E.code===pr.IgnoredSameUrlNavigation&&(this.lastSource=void 0,this.restoredId=0,this.scheduleScrollEvent(E,this.urlSerializer.parse(E.url).fragment))})}consumeScrollEvents(){return this.transitions.events.subscribe(E=>{E instanceof zs&&(E.position?"top"===this.options.scrollPositionRestoration?this.viewportScroller.scrollToPosition([0,0]):"enabled"===this.options.scrollPositionRestoration&&this.viewportScroller.scrollToPosition(E.position):E.anchor&&"enabled"===this.options.anchorScrolling?this.viewportScroller.scrollToAnchor(E.anchor):"disabled"!==this.options.scrollPositionRestoration&&this.viewportScroller.scrollToPosition([0,0]))})}scheduleScrollEvent(E,A){var P=this;this.zone.runOutsideAngular((0,c.A)(function*(){yield new Promise(G=>{setTimeout(()=>{G()}),(0,g.mal)(()=>{G()},{injector:P.environmentInjector})}),P.zone.run(()=>{P.transitions.events.next(new zs(E,"popstate"===P.lastSource?P.store[P.restoredId]:null,A))})}))}ngOnDestroy(){this.routerEventsSubscription?.unsubscribe(),this.scrollEventsSubscription?.unsubscribe()}static#e=this.\u0275fac=function(A){g.QTQ()};
1static#t=this.\u0275prov=g.jDH({token:C,factory:C.\u0275fac})}return C})();function qi(C,S){return{\u0275kind:C,\u0275providers:S}}function oo(){const C=(0,g.WQX)(g.zZn);return S=>{const E=C.get(g.o8S);if(S!==E.components[0])return;const A=C.get(In),P=C.get(mo);1===C.get(Yo)&&A.initialNavigation(),C.get(Nr,null,g.$GK.Optional)?.setUpPreloading(),C.get(Wr,null,g.$GK.Optional)?.init(),A.resetRootComponentType(E.componentTypes[0]),P.closed||(P.next(),P.complete(),P.unsubscribe())}}const mo=new g.nKC("",{factory:()=>new te.B}),Yo=new g.nKC("",{providedIn:"root",factory:()=>1}),Nr=new g.nKC("");function pc(C){return qi(0,[{provide:Nr,useExisting:oa},{provide:Xo,useExisting:C}])}function vl(C){return qi(9,[{provide:Dt,useValue:qn},{provide:cr,useValue:{skipNextTransition:!!C?.skipInitialTransition,...C}}])}const xa=new g.nKC("ROUTER_FORROOT_GUARD"),jc=[_e.aZ,{provide:$n,useClass:Te},In,Pr,{provide:Xt,useFactory:function qo(C){return C.routerState.root},deps:[In]},V,[]];let Cl=(()=>{class C{constructor(E){}static forRoot(E,A){return{ngModule:C,providers:[jc,[],{provide:T,multi:!0,useValue:E},{provide:xa,useFactory:$c,deps:[[In,new g.Xx1,new g.kdw]]},{provide:ro,useValue:A||{}},A?.useHash?{provide:_e.hb,useClass:_e.fw}:{provide:_e.hb,useClass:_e.Sm},{provide:Wr,useFactory:()=>{const C=(0,g.WQX)(_e.Xr),S=(0,g.WQX)(g.SKi),E=(0,g.WQX)(ro),A=(0,g.WQX)(en),P=(0,g.WQX)($n);return E.scrollOffset&&C.setOffset(E.scrollOffset),new Qo(P,A,C,S,E)}},A?.preloadingStrategy?pc(A.preloadingStrategy).\u0275providers:[],A?.initialNavigation?Gc(A):[],A?.bindToComponentInputs?qi(8,[xr,{provide:Ci,useExisting:xr}]).\u0275providers:[],A?.enableViewTransitions?vl().\u0275providers:[],[{provide:_c,useFactory:oo},{provide:g.iLQ,multi:!0,useExisting:_c}]]}}static forChild(E){return{ngModule:C,providers:[{provide:T,multi:!0,useValue:E}]}}static#e=this.\u0275fac=function(A){return new(A||C)(g.KVO(xa,8))};static#t=this.\u0275mod=g.$C({type:C});static#n=this.\u0275inj=g.G2t({})}return C})();function $c(C){return"guarded"}function Gc(C){return["disabled"===C.initialNavigation?qi(3,[{provide:g.hnV,multi:!0,useFactory:()=>{const S=(0,g.WQX)(In);return()=>{S.setUpLocationChangeListener()}}},{provide:Yo,useValue:2}]).\u0275providers:[],"enabledBlocking"===C.initialNavigation?qi(2,[{provide:Yo,useValue:0},{provide:g.hnV,multi:!0,deps:[g.zZn],useFactory:S=>{const E=S.get(_e.hj,Promise.resolve());return()=>E.then(()=>new Promise(A=>{const P=S.get(In),G=S.get(mo);lr(P,()=>{A(!0)}),S.get(en).afterPreactivation=()=>(A(!0),G.closed?(0,q.of)(void 0):G),P.initialNavigation()}))}}]).\u0275providers:[]]}const _c=new g.nKC("")},855:(ct,be,I)=>{"use strict";I.d(be,{qb:()=>Tt,VA:()=>vt,vC:()=>Yt,oH:()=>At,vI:()=>$e,dl:()=>_e});var c=I(4438),g=I(7554),$=I(3212);class Y{static getInteractionStatusFromEvent(ae,Z){switch(ae.eventType){case $.B.LOGIN_START:return g.T$.Login;case $.B.SSO_SILENT_START:return g.T$.SsoSilent;case $.B.ACQUIRE_TOKEN_START:if(ae.interactionType===g.X8.Redirect||ae.interactionType===g.X8.Popup)return g.T$.AcquireToken;break;case $.B.HANDLE_REDIRECT_START:return g.T$.HandleRedirect;case $.B.LOGOUT_START:return g.T$.Logout;case $.B.SSO_SILENT_SUCCESS:case $.B.SSO_SILENT_FAILURE:if(Z&&Z!==g.T$.SsoSilent)break;return g.T$.None;case $.B.LOGOUT_END:if(Z&&Z!==g.T$.Logout)break;return g.T$.None;case $.B.HANDLE_REDIRECT_END:if(Z&&Z!==g.T$.HandleRedirect)break;return g.T$.None;case $.B.LOGIN_SUCCESS:case $.B.LOGIN_FAILURE:case $.B.ACQUIRE_TOKEN_SUCCESS:case $.B.ACQUIRE_TOKEN_FAILURE:case $.B.RESTORE_FROM_BFCACHE:if(ae.interactionType===g.X8.Redirect||ae.interactionType===g.X8.Popup){if(Z&&Z!==g.T$.Login&&Z!==g.T$.AcquireToken)break;return g.T$.None}}return null}}var q=I(4064),ge=I(1564),se=I(1474),he=I(2030),de=I(6648),De=I(2771),ce=I(1413),ie=I(4412),we=I(7673),Re=I(983),Be=I(177),ut=I(6354),Le=I(274),gt=I(9437),wt=I(5558),Ut=I(6697),et=I(5964),ne=I(1457);const F="@azure/msal-angular",tt="3.1.0",st=new c.nKC("MSAL_INSTANCE"),nt=new c.nKC("MSAL_GUARD_CONFIG"),Ve=new c.nKC("MSAL_INTERCEPTOR_CONFIG"),te=new c.nKC("MSAL_BROADCAST_CONFIG");let _e=(()=>{class Q{constructor(Z,Ce){this.instance=Z,this.location=Ce;const Ue=this.location.path(!0).split("#").pop();Ue&&(this.redirectHash=`#${Ue}`),this.instance.initializeWrapperLibrary(g.f7.Angular,tt)}initialize(){return(0,de.H)(this.instance.initialize())}acquireTokenPopup(Z){return(0,de.H)(this.instance.acquireTokenPopup(Z))}acquireTokenRedirect(Z){return(0,de.H)(this.instance.acquireTokenRedirect(Z))}acquireTokenSilent(Z){return(0,de.H)(this.instance.acquireTokenSilent(Z))}handleRedirectObservable(Z){return(0,de.H)(this.instance.initialize().then(()=>this.instance.handleRedirectPromise(Z||this.redirectHash)))}loginPopup(Z){return(0,de.H)(this.instance.loginPopup(Z))}loginRedirect(Z){return(0,de.H)(this.instance.loginRedirect(Z))}logout(Z){return(0,de.H)(this.instance.logout(Z))}logoutRedirect(Z){return(0,de.H)(this.instance.logoutRedirect(Z))}logoutPopup(Z){return(0,de.H)(this.instance.logoutPopup(Z))}ssoSilent(Z){return(0,de.H)(this.instance.ssoSilent(Z))}getLogger(){return this.logger||(this.logger=this.instance.getLogger().clone(F,tt)),this.logger}setLogger(Z){this.logger=Z.clone(F,tt),this.instance.setLogger(Z)}}return Q.\u0275fac=function(Z){return new(Z||Q)(c.KVO(st),c.KVO(Be.aZ))},Q.\u0275prov=c.jDH({token:Q,factory:Q.\u0275fac}),Q})(),Tt=(()=>{class Q{constructor(Z,Ce,Ue){this.msalInstance=Z,this.authService=Ce,this.msalBroadcastConfig=Ue,this.msalBroadcastConfig&&this.msalBroadcastConfig.eventsToReplay>0?(this.authService.getLogger().verbose(`BroadcastService - eventsToReplay set on BroadcastConfig, replaying the last ${this.msalBroadcastConfig.eventsToReplay}
1 events`),this._msalSubject=new De.m(this.msalBroadcastConfig.eventsToReplay)):this._msalSubject=new ce.B,this.msalSubject$=this._msalSubject.asObservable(),this._inProgress=new ie.t(g.T$.Startup),this.inProgress$=this._inProgress.asObservable(),this.msalInstance.addEventCallback(ke=>{this._msalSubject.next(ke);const lt=Y.getInteractionStatusFromEvent(ke,this._inProgress.value);null!==lt&&(this.authService.getLogger().verbose(`BroadcastService - ${ke.eventType} results in setting inProgress from ${this._inProgress.value} to ${lt}`),this._inProgress.next(lt))})}}return Q.\u0275fac=function(Z){return new(Z||Q)(c.KVO(st),c.KVO(_e),c.KVO(te,8))},Q.\u0275prov=c.jDH({token:Q,factory:Q.\u0275fac}),Q})(),vt=(()=>{class Q{constructor(Z,Ce,Ue,ke,lt){this.msalGuardConfig=Z,this.msalBroadcastService=Ce,this.authService=Ue,this.location=ke,this.router=lt,this.msalBroadcastService.inProgress$.subscribe()}parseUrl(Z){return this.router.parseUrl(Z)}getDestinationUrl(Z){this.authService.getLogger().verbose("Guard - getting destination url");const Ce=document.getElementsByTagName("base"),Ue=this.location.normalize(Ce.length?Ce[0].href:window.location.origin),ke=this.location.prepareExternalUrl(Z);return ke.startsWith("#")?(this.authService.getLogger().verbose("Guard - destination by hash routing"),`${Ue}/${ke}`):`${Ue}${Z}`}loginInteractively(Z){const Ce="function"==typeof this.msalGuardConfig.authRequest?this.msalGuardConfig.authRequest(this.authService,Z):{...this.msalGuardConfig.authRequest};if(this.msalGuardConfig.interactionType===g.X8.Popup)return this.authService.getLogger().verbose("Guard - logging in by popup"),this.authService.loginPopup(Ce).pipe((0,ut.T)(ke=>(this.authService.getLogger().verbose("Guard - login by popup successful, can activate, setting active account"),this.authService.instance.setActiveAccount(ke.account),!0)));this.authService.getLogger().verbose("Guard - logging in by redirect");const Ue=this.getDestinationUrl(Z.url);return this.authService.loginRedirect({redirectStartPage:Ue,...Ce}).pipe((0,ut.T)(()=>!1))}activateHelper(Z){if(this.msalGuardConfig.interactionType!==g.X8.Popup&&this.msalGuardConfig.interactionType!==g.X8.Redirect)throw new q.XX("invalid_interaction_type","Invalid interaction type provided to MSAL Guard. InteractionType.Popup or InteractionType.Redirect must be provided in the MsalGuardConfiguration");if(this.authService.getLogger().verbose("MSAL Guard activated"),!(typeof window<"u"))return this.authService.getLogger().info("Guard - window is undefined, MSAL does not support server-side token acquisition"),(0,we.of)(!0);if(ge.H.hashContainsKnownProperties(window.location.hash)&&se.GZ()&&!this.authService.instance.getConfiguration().system.allowRedirectInIframe)return this.authService.getLogger().warning("Guard - redirectUri set to page with MSAL Guard. It is recommended to not set redirectUri to a page that requires authentication."),(0,we.of)(!1);this.msalGuardConfig.loginFailedRoute&&(this.loginFailedRoute=this.parseUrl(this.msalGuardConfig.loginFailedRoute));const Ce=this.location.path(!0);return this.authService.initialize().pipe((0,Le.H)(()=>this.authService.handleRedirectObservable()),(0,Le.H)(()=>{if(!this.authService.instance.getAllAccounts().length)return Z?(this.authService.getLogger().verbose("Guard - no accounts retrieved, log in required to activate"),this.loginInteractively(Z)):(this.authService.getLogger().verbose("Guard - no accounts retrieved, no state, cannot load"),(0,we.of)(!1));if(this.authService.getLogger().verbose("Guard - at least 1 account exists, can activate or load"),Z){const Ue=this.includesCode(Z.url),ke=!!Z.root&&!!Z.root.fragment&&this.includesCode(`#${Z.root.fragment}`),lt=0===this.location.prepareExternalUrl(Z.url).indexOf("#");if(Ue&&(ke||lt))return this.authService.getLogger().info("Guard - Hash contains known code response, stopping navigation."),Ce.indexOf("#")>-1?(0,we.of)(this.parseUrl(this.location.path())):(0,we.of)(this.parseUrl(""))}return(0,we.of)(!0)}),(0,gt.W)(Ue=>(this.authService.getLogger().error("Guard - error while logging in, unable to activate"),this.authService.getLogger().errorPii(`Guard - error: ${Ue.message}`),this.loginFailedRoute&&Z?(this.authService.getLogger().verbose("Guard - loginFailedRoute set, redirecting"),(0,we.of)(this.loginFailedRoute)):(0,we.of)(!1))))}includesCode(Z){return Z.lastIndexOf("/code")>-1&&Z.lastIndexOf("/code")===Z.length-5||Z.indexOf("#code=")>-1||Z.indexOf("&code=")>-1}canActivate(Z,Ce){return this.authService.getLogger().verbose("Guard - canActivate"),this.activateHelper(Ce)}canActivateChild(Z,Ce){return this.authService.getLogger().verbose("Guard - canActivateChild"),this.activateHelper(Ce)}canMatch(){return this.authService.getLogger().verbose("Guard - canLoad"),this.activateHelper()}}return Q.\u0275fac=function(Z){return new(Z||Q)(c.KVO(nt),c.KVO(Tt),c.KVO(_e),c.KVO(Be.aZ),c.KVO(ne.Ix))},Q.\u0275prov=c.jDH({token:Q,factory:Q.\u0275fac}),Q})(),Yt=(()=>{class Q{constructor(Z,Ce,Ue,ke,lt){this.msalInterceptorConfig=Z,this.authService=Ce,this.location=Ue,this.msalBroadcastService=ke,this._document=lt}intercept(Z,Ce){if(this.msalInterceptorConfig.interactionType!==g.X8.Popup&&this.msalInterceptorConfig.interactionType!==g.X8.Redirect)throw new q.XX("invalid_interaction_type","Invalid interaction type provided to MSAL Interceptor. InteractionType.Popup, InteractionType.Redirect must be provided in the msalInterceptorConfiguration");this.authService.getLogger().verbose("MSAL Interceptor activated");const Ue=this.getScopesForEndpoint(Z.url,Z.method);if(!Ue||0===Ue.length)return this.authService.getLogger().verbose("Interceptor - no scopes for endpoint"),Ce.handle(Z);let ke;this.authService.instance.getActiveAccount()?(this.authService.getLogger().verbose("Interceptor - active account selected"),ke=this.authService.instance.getActiveAccount()):(this.authService.getLogger().verbose("Interceptor - no active account, fallback to first account"),ke=this.authService.instance.getAllAccounts()[0]);const lt="function"==typeof this.msalInterceptorConfig.authRequest?this.msalInterceptorConfig.authRequest(this.authService,Z,{account:ke}):{...this.msalInterceptorConfig.authRequest,account:ke};return this.authService.getLogger().info(`Interceptor - ${Ue.length} scopes found for endpoint`),this.authService.getLogger().infoPii(`Interceptor - [${Ue}] scopes found for ${Z.url}`),this.acquireToken(lt,Ue,ke).pipe((0,wt.n)(Ht=>{this.authService.getLogger().verbose("Interceptor - setting authorization headers");const Ne=Z.headers.set("Authorization",`Bearer ${Ht.accessToken}`),Ee=Z.clone({headers:Ne});return Ce.handle(Ee)}))}acquireToken(Z,Ce,Ue){return this.authService.acquireTokenSilent({...Z,scopes:Ce,account:Ue}).pipe((0,gt.W)(()=>(this.authService.getLogger().error("Interceptor - acquireTokenSilent rejected with error. Invoking interaction to resolve."),this.msalBroadcastService.inProgress$.pipe((0,Ut.s)(1),(0,wt.n)(ke=>
1ke===g.T$.None?this.acquireTokenInteractively(Z,Ce):this.msalBroadcastService.inProgress$.pipe((0,et.p)(lt=>lt===g.T$.None),(0,Ut.s)(1),(0,wt.n)(()=>this.acquireToken(Z,Ce,Ue))))))),(0,wt.n)(ke=>ke.accessToken?(0,we.of)(ke):(this.authService.getLogger().error("Interceptor - acquireTokenSilent resolved with null access token. Known issue with B2C tenants, invoking interaction to resolve."),this.msalBroadcastService.inProgress$.pipe((0,et.p)(lt=>lt===g.T$.None),(0,Ut.s)(1),(0,wt.n)(()=>this.acquireTokenInteractively(Z,Ce))))))}acquireTokenInteractively(Z,Ce){if(this.msalInterceptorConfig.interactionType===g.X8.Popup)return this.authService.getLogger().verbose("Interceptor - error acquiring token silently, acquiring by popup"),this.authService.acquireTokenPopup({...Z,scopes:Ce});this.authService.getLogger().verbose("Interceptor - error acquiring token silently, acquiring by redirect");const Ue=window.location.href;return this.authService.acquireTokenRedirect({...Z,scopes:Ce,redirectStartPage:Ue}),Re.w}getScopesForEndpoint(Z,Ce){this.authService.getLogger().verbose("Interceptor - getting scopes for endpoint");const Ue=this.location.normalize(Z),ke=Array.from(this.msalInterceptorConfig.protectedResourceMap.keys()),lt=this.matchResourcesToEndpoint(ke,Ue);return lt.length>0?this.matchScopesToEndpoint(this.msalInterceptorConfig.protectedResourceMap,lt,Ce):null}matchResourcesToEndpoint(Z,Ce){const Ue=[];return Z.forEach(ke=>{const lt=this.location.normalize(ke),Ht=this.getAbsoluteUrl(lt),Ne=new URL(Ht),Ee=this.getAbsoluteUrl(Ce),Qe=new URL(Ee);this.checkUrlComponents(Ne,Qe)&&Ue.push(ke)}),Ue}checkUrlComponents(Z,Ce){const Ue=["protocol","host","pathname","search","hash"];for(const ke of Ue)if(Z[ke]){const lt=decodeURIComponent(Z[ke]);if(!he.$.matchPattern(lt,Ce[ke]))return!1}return!0}getAbsoluteUrl(Z){const Ce=this._document.createElement("a");return Ce.href=Z,Ce.href}matchScopesToEndpoint(Z,Ce,Ue){const ke=[];return Ce.forEach(lt=>{const Ht=[],Ne=Z.get(lt);null!==Ne?(Ne.forEach(Ee=>{if("string"==typeof Ee)Ht.push(Ee);else{const Qe=Ue.toLowerCase();Ee.httpMethod.toLowerCase()===Qe&&(null===Ee.scopes?ke.push(null):Ee.scopes.forEach(ot=>{Ht.push(ot)}))}}),Ht.length>0&&ke.push(Ht)):ke.push(null)}),ke.length>0?(ke.length>1&&this.authService.getLogger().warning("Interceptor - More than 1 matching scopes for endpoint found."),ke[0]):null}}return Q.\u0275fac=function(Z){return new(Z||Q)(c.KVO(Ve),c.KVO(_e),c.KVO(Be.aZ),c.KVO(Tt),c.KVO(Be.qQ))},Q.\u0275prov=c.jDH({token:Q,factory:Q.\u0275fac}),Q})(),$e=(()=>{class Q{constructor(Z){this.authService=Z}ngOnInit(){this.authService.getLogger().verbose("MsalRedirectComponent activated"),this.authService.handleRedirectObservable().subscribe()}}return Q.\u0275fac=function(Z){return new(Z||Q)(c.rXU(_e))},Q.\u0275cmp=c.VBU({type:Q,selectors:[["app-redirect"]],decls:0,vars:0,template:function(Z,Ce){},encapsulation:2}),Q})(),At=(()=>{class Q{static forRoot(Z,Ce,Ue){return{ngModule:Q,providers:[{provide:st,useValue:Z},{provide:nt,useValue:Ce},{provide:Ve,useValue:Ue},_e]}}}return Q.\u0275fac=function(Z){return new(Z||Q)},Q.\u0275mod=c.$C({type:Q}),Q.\u0275inj=c.G2t({providers:[vt,Tt],imports:[Be.MD]}),Q})()},1510:(ct,be,I)=>{"use strict";I.d(be,{Oy:()=>Ut,RI:()=>F,RW:()=>Be,TZ:()=>et,UY:()=>gt,W6:()=>st,YZ:()=>_e,_S:()=>Ve,sI:()=>ut});var c=I(467),g=I(6810),$=I(4561),Y=I(7554),q=I(6195),ge=I(6588);
1const he="SHA-256",De=new Uint8Array([1,0,1]),ce="0123456789abcdef",ie=new Uint32Array(1),we="crypto_subtle_undefined",Re={name:"RSASSA-PKCS1-v1_5",hash:he,modulusLength:2048,publicExponent:De};function Be(vt){if(!window)throw(0,g.bD)(ge.tI);if(!window.crypto)throw(0,g.bD)(ge.rc);if(!vt&&!window.crypto.subtle)throw(0,g.bD)(ge.rc,we)}function ut(vt,Yt,$e){return Le.apply(this,arguments)}function Le(){return(Le=(0,c.A)(function*(vt,Yt,$e){Yt?.addQueueMeasurement($.MX.Sha256Digest,$e);const le=(new TextEncoder).encode(vt);return window.crypto.subtle.digest(he,le)})).apply(this,arguments)}function gt(vt){return window.crypto.getRandomValues(vt)}function wt(){return window.crypto.getRandomValues(ie),ie[0]}function Ut(){const vt=Date.now(),Yt=1024*wt()+(1023&wt()),$e=new Uint8Array(16),At=Math.trunc(Yt/2**30),le=Yt&2**30-1,Q=wt();$e[0]=vt/2**40,$e[1]=vt/2**32,$e[2]=vt/2**24,$e[3]=vt/65536,$e[4]=vt/256,$e[5]=vt,$e[6]=112|At>>>8,$e[7]=At,$e[8]=128|le>>>24,$e[9]=le>>>16,$e[10]=le>>>8,$e[11]=le,$e[12]=Q>>>24,$e[13]=Q>>>16,$e[14]=Q>>>8,$e[15]=Q;let ae="";for(let Z=0;Z<$e.length;Z++)ae+=ce.charAt($e[Z]>>>4),ae+=ce.charAt(15&$e[Z]),(3===Z||5===Z||7===Z||9===Z)&&(ae+="-");return ae}function et(vt,Yt){return ne.apply(this,arguments)}function ne(){return(ne=(0,c.A)(function*(vt,Yt){return window.crypto.subtle.generateKey(Re,vt,Yt)})).apply(this,arguments)}function F(vt){return tt.apply(this,arguments)}function tt(){return(tt=(0,c.A)(function*(vt){return window.crypto.subtle.exportKey(Y.jb,vt)})).apply(this,arguments)}function st(vt,Yt,$e){return nt.apply(this,arguments)}function nt(){return(nt=(0,c.A)(function*(vt,Yt,$e){return window.crypto.subtle.importKey(Y.jb,vt,Re,Yt,$e)})).apply(this,arguments)}function Ve(vt,Yt){return te.apply(this,arguments)}function te(){return(te=(0,c.A)(function*(vt,Yt){return window.crypto.subtle.sign(Re,vt,Yt)})).apply(this,arguments)}function _e(vt){return Tt.apply(this,arguments)}function Tt(){return(Tt=(0,c.A)(function*(vt){const Yt=yield ut(vt),$e=new Uint8Array(Yt);return(0,q.dB)($e)})).apply(this,arguments)}},6195:(ct,be,I)=>{"use strict";function c(q){return encodeURIComponent($(q).replace(/=/g,"").replace(/\+/g,"-").replace(/\//g,"_"))}function g(q){return Y(q).replace(/=/g,"").replace(/\+/g,"-").replace(/\//g,"_")}function $(q){return Y((new TextEncoder).encode(q))}function Y(q){const ge=Array.from(q,se=>String.fromCodePoint(se)).join("");return btoa(ge)}I.d(be,{KA:()=>$,dB:()=>g,u4:()=>c})},6810:(ct,be,I)=>{"use strict";I.d(be,{bD:()=>se,jT:()=>ge});var c=I(3461),g=I(6588);const $="For more visit: aka.ms/msaljs/browser-errors",Y={[g.p5]:"The PKCE code challenge and verifier could not be generated.",[g.rc]:"The crypto object or function is not available.",[g.B2]:"Navigation URI is empty. Please check stack trace for more info.",[g.wv]:`Hash value cannot be processed because it is empty. Please verify that your redirectUri is not clearing the hash. ${$}`,[g.c$]:"Hash does not contain state. Please verify that the request originated from msal.",[g.Lm]:`Hash does not contain known properites. Please verify that your redirectUri is not changing the hash. ${$}`,[g.fA]:"Unable to parse state. Please verify that the request originated from msal.",[g.oe]:"Hash contains state but the interaction type does not match the caller.",[g.b]:`Interaction is currently in progress. Please ensure that this interaction has been completed before calling an interactive API. ${$}`,[g.hs]:"Error opening popup window. This can happen if you are using IE or if popups are blocked in the browser.",[g.MP]:"window.open returned null or undefined window object.",[g.fN]:"User cancelled the flow.",[g.OM]:`Token acquisition in popup failed due to timeout. ${$}`,[g.Uf]:`Token acquisition in iframe failed due to timeout. ${$}`,[g.OT]:"Redirects are not supported for iframed or brokered applications. Please ensure you are using MSAL.js in a top frame of the window if using the redirect APIs, or use the popup APIs.",[g.tZ]:`Request was blocked inside an iframe because MSAL detected an authentication response. ${$}`,[g.aH]:"Request was blocked inside a popup because MSAL detected it was running in a popup.",[g.lg]:"The iframe being monitored was closed prematurely.",[g.v7]:"Silent logout not supported. Please call logoutRedirect or logoutPopup instead.",[g.rR]:"No account object provided to acquireTokenSilent and no active account has been set. Please call setActiveAccount or provide an account on the request.",[g.hZ]:"The value given for the prompt value is not val
1id for silent requests - must be set to 'none' or 'no_session'.",[g.y6]:"No token request found in cache.",[g.ot]:"The cached token request could not be parsed.",[g.Ne]:"No cached authority found.",[g.LW]:"Auth Request not set. Please ensure initiateAuthRequest was called from the InteractionHandler",[g.Mm]:"Invalid cache type",[g.tI]:"Login and token requests are not supported in non-browser environments.",[g.rn]:"Database is not open!",[g.l7]:"No network connectivity. Check your internet connection.",[g.zv]:"Network request failed: If the browser threw a CORS error, check that the redirectUri is registered in the Azure App Portal as type 'SPA'",[g.Zw]:"Network request failed. Please check the network trace to determine root cause.",[g.db]:"Failed to parse network response. Check network trace.",[g.s9]:"Error loading token to cache.",[g.e0]:"Cryptographic Key or Keypair not found in browser storage.",[g.R3]:"An authorization code must be provided (as the `code` property on the request) to this flow.",[g.xp]:"An authorization code or nativeAccountId must be provided to this flow.",[g.$c]:"Request cannot contain both spa code and native account id.",[g.MG]:"IndexedDB, which is required for persistent cryptographic key storage, is unavailable. This may be caused by browser privacy features which block persistent storage in third-party contexts.",[g.gU]:`Unable to acquire token from native platform. ${$}`,[g.y3]:"Timed out while attempting to establish connection to browser extension",[g.cq]:"Native extension is not installed. If you think this is a mistake call the initialize function.",[g.XC]:`Connection to native platform has not been established. Please install a compatible browser extension and run initialize(). ${$}`,[g.IR]:`You must call and await the initialize function before attempting to call any other MSAL API. ${$}`,[g.nF]:"The provided prompt is not supported by the native platform. This request should be routed to the web based flow.",[g._t]:"Invalid base64 encoded string.",[g.bT]:"Invalid PoP token request. The request should not have both a popKid value and signPopToken set to true.",[g.Tw]:"Failed to build request headers object.",[g.wI]:"Failed to parse response headers"};class ge extends c.lR{constructor(de,De){super(de,Y[de],De),Object.setPrototypeOf(this,ge.prototype),this.name="BrowserAuthError"}}function se(he,de){return new ge(he,de)}},6588:(ct,be,I)=>{"use strict";I.d(be,{$c:()=>ae,B2:()=>$,IR:()=>Ht,LW:()=>st,Lm:()=>ge,MG:()=>Z,MP:()=>ce,Mm:()=>nt,Ne:()=>tt,OM:()=>we,OT:()=>Be,R3:()=>le,Tw:()=>ze,Uf:()=>Re,XC:()=>lt,Zw:()=>vt,_t:()=>Ee,aH:()=>Le,b:()=>de,bT:()=>Qe,c$:()=>q,cq:()=>ke,db:()=>Yt,e0:()=>At,fA:()=>se,fN:()=>ie,gU:()=>Ce,hZ:()=>et,hs:()=>De,l7:()=>_e,lg:()=>gt,nF:()=>Ne,oe:()=>he,ot:()=>F,p5:()=>c,rR:()=>Ut,rc:()=>g,rn:()=>te,s9:()=>$e,tI:()=>Ve,tZ:()=>ut,v7:()=>wt,wI:()=>ot,wv:()=>Y,xp:()=>Q,y3:()=>Ue,y6:()=>ne,zv:()=>Tt});const c="pkce_not_created",g="crypto_nonexistent",$="empty_navigate_uri",Y="hash_empty_error",q="no_state_in_hash",ge="hash_does_not_contain_known_properties",se="unable_to_parse_state",he="state_interaction_type_mismatch",de="interaction_in_progress",De="popup_window_error",ce="empty_window_error",ie="user_cancelled",we="monitor_popup_timeout",Re="monitor_window_timeout",Be="redirect_in_iframe",ut="block_iframe_reload",Le="block_nested_popups",gt="iframe_closed_prematurely",wt="silent_logout_unsupported",Ut="no_account_error",et="silent_prompt_value_error",ne="no_token_request_cache_error",F="unable_to_parse_token_request_cache_error",tt="no_cached_authority_error",st="auth_request_not_set_error",nt="invalid_cache_type",Ve="non_browser_environment",te="database_not_open",_e="no_network_connectivity",Tt="post_request_failed",vt="get_request_failed",Yt="failed_to_parse_response",$e="unable_to_load_token",At="crypto_key_not_found",le="auth_code_required",Q="auth_code_or_nativeAccountId_required",ae="spa_code_and_nativeAccountId_present",Z="database_unavailable",Ce="unable_to_acquire_token_from_native_platform",Ue="native_handshake_timeout",ke="native_extension_not_installed",lt="native_connection_not_established",Ht="uninitialized_public_client_application",Ne="native_prompt_not_supported",Ee="invalid_base64_string",Qe="invalid_pop_token_request",ze="failed_to_build_headers",ot="failed_to_parse_headers"},4064:(ct,be,I)=>{"use strict";I.d(be,{XX:()=>q,jz:()=>ge});var c=I(3461),g=I(3578);const $={[g.xz]:"Given storage configuration option was not supported.",[g.dg]:"Stub instance of Public Client Application was called. If using msal-react, please ensure context is not used without a provider. For more visit: aka.ms/msaljs/browser-errors",[g.jE]:"Redirect cannot be supported. In-memory storage was selected and storeAuthStateInCookie=false, which would cause the library to be unable to handle the incoming hash. If you would like to use the redirect API, please use session/localStorage or set storeAuthStateInCookie=true."};class q extends c.lR{constructor(he,de){super(he,de),this.name="BrowserConfigurationAuthError",Object.setPrototypeOf(this,q.prototype)}}function ge(se){return new q(se,$[se])}},3578:(ct,be,I)=>{"use strict";I.d(be,{dg:()=>g,jE:()=>$,xz:()=>c});const c="storage_not_supported",g="stubbed_public_client_application_called",$="in_mem_redirect_unavailable"},3212:(ct,be,I)=>{"use strict";I.d(be,{B:()=>c});const c={INITIALIZE_START:"msal:initializeStart",INITIALIZE_END:"msal:initializeEnd",ACCOUNT_ADDED:"msal:accountAdded",ACCOUNT_REMOVED:"msal:accountRemoved",ACTIVE_ACCOUNT_CHANGED:"msal:activeAccountChanged",LOGIN_START:"msal:loginStart",LOGIN_SUCCESS:"msal:loginSuccess",
1LOGIN_FAILURE:"msal:loginFailure",ACQUIRE_TOKEN_START:"msal:acquireTokenStart",ACQUIRE_TOKEN_SUCCESS:"msal:acquireTokenSuccess",ACQUIRE_TOKEN_FAILURE:"msal:acquireTokenFailure",ACQUIRE_TOKEN_NETWORK_START:"msal:acquireTokenFromNetworkStart",SSO_SILENT_START:"msal:ssoSilentStart",SSO_SILENT_SUCCESS:"msal:ssoSilentSuccess",SSO_SILENT_FAILURE:"msal:ssoSilentFailure",ACQUIRE_TOKEN_BY_CODE_START:"msal:acquireTokenByCodeStart",ACQUIRE_TOKEN_BY_CODE_SUCCESS:"msal:acquireTokenByCodeSuccess",ACQUIRE_TOKEN_BY_CODE_FAILURE:"msal:acquireTokenByCodeFailure",HANDLE_REDIRECT_START:"msal:handleRedirectStart",HANDLE_REDIRECT_END:"msal:handleRedirectEnd",POPUP_OPENED:"msal:popupOpened",LOGOUT_START:"msal:logoutStart",LOGOUT_SUCCESS:"msal:logoutSuccess",LOGOUT_FAILURE:"msal:logoutFailure",LOGOUT_END:"msal:logoutEnd",RESTORE_FROM_BFCACHE:"msal:restoreFromBFCache"}},7554:(ct,be,I)=>{"use strict";I.d(be,{$u:()=>ut,Al:()=>q,CC:()=>ge,Ct:()=>Y,G8:()=>Le,H3:()=>de,JD:()=>$,JE:()=>Ut,L$:()=>et,P3:()=>ne,Q1:()=>g,T$:()=>ie,WJ:()=>gt,X8:()=>ce,_p:()=>se,dh:()=>he,f7:()=>Be,jb:()=>Re,nN:()=>wt,sA:()=>De,uq:()=>we});var c=I(7635);const g={INTERACTION_IN_PROGRESS_VALUE:"interaction_in_progress",INVALID_GRANT_ERROR:"invalid_grant",POPUP_WIDTH:483,POPUP_HEIGHT:600,POPUP_NAME_PREFIX:"msal",DEFAULT_POLL_INTERVAL_MS:30,MSAL_SKU:"msal.js.browser"},$={CHANNEL_ID:"53ee284d-920a-4b59-9d30-a60315b26836",PREFERRED_EXTENSION_ID:"ppnbnpeolgkicgegkbkbjmhlideopiji",MATS_TELEMETRY:"MATS"},Y={HandshakeRequest:"Handshake",HandshakeResponse:"HandshakeResponse",GetToken:"GetToken",Response:"Response"},q={LocalStorage:"localStorage",SessionStorage:"sessionStorage",MemoryStorage:"memoryStorage"},ge={GET:"GET",POST:"POST"},se={AUTHORITY:"authority",ACQUIRE_TOKEN_ACCOUNT:"acquireToken.account",SESSION_STATE:"session.state",REQUEST_STATE:"request.state",NONCE_IDTOKEN:"nonce.id_token",ORIGIN_URI:"request.origin",RENEW_STATUS:"token.renew.status",URL_HASH:"urlHash",REQUEST_PARAMS:"request.params",SCOPES:"scopes",INTERACTION_STATUS_KEY:"interaction.status",CCS_CREDENTIAL:"ccs.credential",CORRELATION_ID:"request.correlationId",NATIVE_REQUEST:"request.native",REDIRECT_CONTEXT:"request.redirect.context"},he={ACCOUNT_KEYS:"msal.account.keys",TOKEN_KEYS:"msal.token.keys"},de={WRAPPER_SKU:"wrapper.sku",WRAPPER_VER:"wrapper.version"},De={acquireTokenRedirect:861,acquireTokenPopup:862,ssoSilent:863,acquireTokenSilent_authCode:864,handleRedirectPromise:865,acquireTokenByCode:866,acquireTokenSilent_silentFlow:61,logout:961,logoutPopup:962};var ce=function(tt){return tt.Redirect="redirect",tt.Popup="popup",tt.Silent="silent",tt.None="none",tt}(ce||{});const ie={Startup:"startup",Login:"login",Logout:"logout",AcquireToken:"acquireToken",SsoSilent:"ssoSilent",HandleRedirect:"handleRedirect",None:"none"},we={scopes:c.aZ},Re="jwk",Be={React:"@azure/msal-react",Angular:"@azure/msal-angular"},ut="msal.db",Le=1,gt=`${ut}.keys`,wt={Default:0,AccessToken:1,AccessTokenAndRefreshToken:2,RefreshToken:3,RefreshTokenAndNetwork:4,Skip:5},Ut=[wt.Default,wt.Skip,wt.RefreshTokenAndNetwork],et="msal.browser.log.level",ne="msal.browser.log.pii"},1474:(ct,be,I)=>{"use strict";I.d(be,{Af:()=>Ut,EZ:()=>Le,GZ:()=>De,Q3:()=>wt,U2:()=>he,Uu:()=>ie,VX:()=>we,gj:()=>ne,kZ:()=>et,nQ:()=>de,uh:()=>gt});var c=I(1564),g=I(6810),$=I(7554),Y=I(1510),q=I(4064),ge=I(6588),se=I(3578);function he(F){F.location.hash="","function"==typeof F.history.replaceState&&F.history.replaceState(null,"",`${F.location.origin}${F.location.pathname}${F.location.search}`)}function de(F){const tt=F.split("#");tt.shift(),window.location.hash=tt.length>0?tt.join("#"):""}function De(){return window.parent!==window}function ie(){return typeof window<"u"&&window.location?window.location.href.split("?")[0].split("#")[0]:""}function we(){const tt=new c.H(window.location.href).getUrlComponents();return`${tt.Protocol}//${tt.HostNameAndPort}/`}function Le(){if(typeof window>"u")throw(0,g.bD)(ge.tI)}function gt(F){if(!F)throw(0,g.bD)(ge.IR)}function wt(F){Le(),function Re(){if(c.H.hashContainsKnownProperties(window.location.hash)&&De())throw(0,g.bD)(ge.tZ)}
1(),function ut(){if(function ce(){return typeof window<"u"&&!!window.opener&&window.opener!==window&&"string"==typeof window.name&&0===window.name.indexOf(`${$.Q1.POPUP_NAME_PREFIX}.`)}())throw(0,g.bD)(ge.aH)}(),gt(F)}function Ut(F,tt){if(wt(F),function Be(F){if(De()&&!F)throw(0,g.bD)(ge.OT)}(tt.system.allowRedirectInIframe),tt.cache.cacheLocation===$.Al.MemoryStorage&&!tt.cache.storeAuthStateInCookie)throw(0,q.jz)(se.jE)}function et(F){const tt=document.createElement("link");tt.rel="preconnect",tt.href=new URL(F).origin,tt.crossOrigin="anonymous",document.head.appendChild(tt),window.setTimeout(()=>{try{document.head.removeChild(tt)}catch{}},1e4)}function ne(){return(0,Y.Oy)()}},3461:(ct,be,I)=>{"use strict";I.d(be,{lR:()=>q,pz:()=>ge});var c=I(7635),g=I(6213);const $={[g.W]:"Unexpected error in authentication.",[g.z]:"Post request failed from the network, could be a 4xx/5xx or a network unavailability. Please check the exact error code for details."};class q extends Error{constructor(he,de,De){super(de?`${he}: ${de}`:he),Object.setPrototypeOf(this,q.prototype),this.errorCode=he||c.YM.EMPTY_STRING,this.errorMessage=de||c.YM.EMPTY_STRING,this.subError=De||c.YM.EMPTY_STRING,this.name="AuthError"}setCorrelationId(he){this.correlationId=he}}function ge(se,he){return new q(se,he?`${$[se]} ${he}`:$[se])}},6213:(ct,be,I)=>{"use strict";I.d(be,{W:()=>c,z:()=>g});const c="unexpected_error",g="post_request_failed"},3986:(ct,be,I)=>{"use strict";I.d(be,{SB:()=>ge,eB:()=>q});var c=I(3461),g=I(7172);const $={[g.lP]:"The client info could not be parsed/decoded correctly",[g.fY]:"The client info was empty",[g.gR]:"Token cannot be parsed",[g.Bh]:"The token is null or empty",[g.s1]:"Endpoints cannot be resolved",[g.x6]:"Network request failed",[g.Ej]:"Could not retrieve endpoints. Check your authority and verify the .well-known/openid-configuration endpoint returns the required endpoints.",[g.hJ]:"The hash parameters could not be deserialized",[g.f$]:"State was not the expected format",[g.Cl]:"State mismatch error",[g.tQ]:"State not found",[g.aQ]:"Nonce mismatch error",[g.n3]:"Max Age was requested and the ID token is missing the auth_time variable. auth_time is an optional claim and is not enabled by default - it must be enabled. See https://aka.ms/msaljs/optional-claims for more information.",[g.Yh]:"Max Age is set to 0, or too much time has elapsed since the last end-user authentication.",[g.s9]:"The cache contains multiple tokens satisfying the requirements. Call AcquireToken again providing more requirements such as authority or account.",[g.gg]:"The cache contains multiple accounts satisfying the given parameters. Please pass more info to obtain the correct account",[g.oV]:"The cache contains multiple appMetadata satisfying the given parameters. Please pass more info to obtain the correct appMetadata",[g.$P]:"Token request cannot be made without authorization code or refresh token.",[g.f5]:"Cannot remove null or empty scope from ScopeSet",[g.Wf]:"Cannot append ScopeSet",[g.UA]:"Empty input ScopeSet cannot be processed",[g.u4]:"Caller has cancelled token endpoint polling during device code flow by setting DeviceCodeRequest.cancel = true.",[g.dL]:"Device code is expired.",[g.ax]:"Device code stopped polling for unknown reasons.",[g.C2]:"Please pass an account object, silent flow is not supported without account information",[g.n4]:"Cache record object was null or undefined.",[g.l3]:"Invalid environment when attempting to create cache entry",[g.rk]:"No account found in cache for given key.",[g.oL]:"No crypto object detected.",[g.Zj]:"Unexpected credential type.",[g.qM]:"Client assertion must meet requirements described in https://tools.ietf.org/html/rfc7515",[g.Q8]:"Client credential (secret, certificate, or assertion) must not be empty when creating a confidential client. An application should at most have one credential",[g.wb]:"Cannot return token from cache because it must be refreshed. This may be due to one of the following reasons: forceRefresh parameter is set to true, claims have been requested, there is no cached access token or it is expired.",[g.Fs]:"User defined timeout for device code polling reached",[g.FA]:"Cannot generate a POP jwt if the token_claims are not populated",[g.Re]:"Server response does not contain an authorization code to proceed",[g.QE]:"Could not remove the credential's binding key from storage.",[g.yX]:"The provided authority does not support logout",[g.fo]:"A keyId value is missing from the requested bound token's cache record and is required to match the token to it's stored binding key.",[g.l7]:"No network connectivity. Check your internet connection.",[g.fn]:"User cancelled the flow.",[g.ik]:"A tenant id - not common, organizations, or consumers - must be specified when using the client_credentials flow.",[g.R9]:"This method has not been implemented",[g.CN]:"The nested app auth bridge is disabled"};class q extends c.lR{constructor(he,de){super(he,de?`${$[he]}
1: ${de}`:$[he]),this.name="ClientAuthError",Object.setPrototypeOf(this,q.prototype)}}function ge(se,he){return new q(se,he)}},7172:(ct,be,I)=>{"use strict";I.d(be,{$P:()=>gt,Bh:()=>Y,C2:()=>st,CN:()=>Ne,Cl:()=>De,Ej:()=>se,FA:()=>le,Fs:()=>At,Q8:()=>Yt,QE:()=>ae,R9:()=>Ht,Re:()=>Q,UA:()=>et,Wf:()=>Ut,Yh:()=>Re,Zj:()=>Tt,aQ:()=>ie,ax:()=>tt,dL:()=>F,f$:()=>de,f5:()=>wt,fY:()=>g,fn:()=>ke,fo:()=>Ce,gR:()=>$,gg:()=>ut,hJ:()=>he,ik:()=>lt,l3:()=>Ve,l7:()=>Ue,lP:()=>c,n3:()=>we,n4:()=>nt,oL:()=>_e,oV:()=>Le,qM:()=>vt,rk:()=>te,s1:()=>q,s9:()=>Be,tQ:()=>ce,u4:()=>ne,wb:()=>$e,x6:()=>ge,yX:()=>Z});const c="client_info_decoding_error",g="client_info_empty_error",$="token_parsing_error",Y="null_or_empty_token",q="endpoints_resolution_error",ge="network_error",se="openid_config_error",he="hash_not_deserialized",de="invalid_state",De="state_mismatch",ce="state_not_found",ie="nonce_mismatch",we="auth_time_not_found",Re="max_age_transpired",Be="multiple_matching_tokens",ut="multiple_matching_accounts",Le="multiple_matching_appMetadata",gt="request_cannot_be_made",wt="cannot_remove_empty_scope",Ut="cannot_append_scopeset",et="empty_input_scopeset",ne="device_code_polling_cancelled",F="device_code_expired",tt="device_code_unknown_error",st="no_account_in_silent_request",nt="invalid_cache_record",Ve="invalid_cache_environment",te="no_account_found",_e="no_crypto_object",Tt="unexpected_credential_type",vt="invalid_assertion",Yt="invalid_client_credential",$e="token_refresh_required",At="user_timeout_reached",le="token_claims_cnf_required_for_signedjwt",Q="authorization_code_missing_from_server_response",ae="binding_key_not_removed",Z="end_session_endpoint_not_supported",Ce="key_id_missing",Ue="no_network_connectivity",ke="user_canceled",lt="missing_tenant_id_error",Ht="method_not_implemented",Ne="nested_app_auth_bridge_disabled"},7806:(ct,be,I)=>{"use strict";I.d(be,{aD:()=>ge});var c=I(3461),g=I(5424);const $={[g.gO]:"A redirect URI is required for all calls, and none has been set.",[g.hL]:"Could not parse the given claims request object.",[g.oY]:"Authority URIs must use https. Please see here for valid authority configuration options: https://docs.microsoft.com/en-us/azure/active-directory/develop/msal-js-initializing-client-applications#configuration-options",[g.$N]:"URL could not be parsed into appropriate segments.",[g.$A]:"URL was empty or null.",[g.zg]:"Scopes cannot be passed as null, undefined or empty array because they are required to obtain an access token.",[g.Pc]:"Please see here for valid configuration options: https://azuread.github.io/microsoft-authentication-library-for-js/ref/modules/_azure_msal_common.html#commonauthorizationurlrequest",[g.bj]:"Given claims parameter must be a stringified JSON object.",[g.Ub]:"Token request was empty and not found in cache.",[g.pi]:"The logout request was null or undefined.",[g.b0]:'code_challenge_method passed is invalid. Valid values are "plain" and "S256".',[g.qz]:"Both params: code_challenge and code_challenge_method are to be passed if to be sent in the request",[g.a_]:"Invalid cloudDiscoveryMetadata provided. Must be a stringified JSON object containing tenant_discovery_endpoint and metadata fields",[g.uk]:"Invalid authorityMetadata provided. Must by a stringified JSON object containing authorization_endpoint, token_endpoint, issuer fields.",[g.E0]:"The provided authority is not a trusted authority. Please include this authority in the knownAuthorities config parameter.",[g.LX]:"Missing sshJwk in SSH certificate request. A stringified JSON Web Key is required when using the SSH authentication scheme.",[g.rB]:"Missing sshKid in SSH certificate request. A string that uniquely identifies the public SSH key is required when using the SSH authentication scheme.",[g.ze]:"Unable to find an authentication header containing server nonce. Either the Authentication-Info or WWW-Authenticate headers must be present in order to obtain a server nonce.",[g.hk]:"Invalid authentication header provided",[g.bg]:"Cannot set OIDCOptions parameter. Please change the protocol mode to OIDC or use a non-Microsoft authority.",[g.J
16]:"Cannot set allowNativeBroker parameter to true when not in AAD protocol mode.",[g.K3]:"Authority mismatch error. Authority provided in login request or PublicClientApplication config does not match the environment of the provided account. Please use a matching account or make an interactive request to login to this authority."};class q extends c.lR{constructor(he){super(he,$[he]),this.name="ClientConfigurationError",Object.setPrototypeOf(this,q.prototype)}}function ge(se){return new q(se)}},5424:(ct,be,I)=>{"use strict";I.d(be,{$A:()=>q,$N:()=>Y,E0:()=>Be,J6:()=>et,K3:()=>ne,LX:()=>ut,Pc:()=>se,Ub:()=>de,a_:()=>we,b0:()=>ce,bg:()=>Ut,bj:()=>he,gO:()=>c,hL:()=>g,hk:()=>wt,oY:()=>$,pi:()=>De,qz:()=>ie,rB:()=>Le,uk:()=>Re,ze:()=>gt,zg:()=>ge});const c="redirect_uri_empty",g="claims_request_parsing_error",$="authority_uri_insecure",Y="url_parse_error",q="empty_url_error",ge="empty_input_scopes_error",se="invalid_prompt_value",he="invalid_claims",de="token_request_empty",De="logout_request_empty",ce="invalid_code_challenge_method",ie="pkce_params_missing",we="invalid_cloud_discovery_metadata",Re="invalid_authority_metadata",Be="untrusted_authority",ut="missing_ssh_jwk",Le="missing_ssh_kid",gt="missing_nonce_authentication_header",wt="invalid_authentication_header",Ut="cannot_set_OIDCOptions",et="cannot_allow_native_broker",ne="authority_mismatch"},194:(ct,be,I)=>{"use strict";I.d(be,{CB:()=>he,IE:()=>De,a:()=>de});var c=I(7635),g=I(3461),$=I(6564);const Y=[$.mP,$.CY,$.Zv,$.j9],q=["message_only","additional_action","basic_action","user_password_expired","consent_required","bad_token"],ge={[$.oF]:"No refresh token found in the cache. Please sign-in.",[$.B]:"The requested account is not available in the native broker. It may have been deleted or logged out. Please sign-in again using an interactive API.",[$.AG]:"Refresh token has expired.",[$.j9]:"Identity provider returned bad_token due to an expired or invalid refresh token. Please invoke an interactive API to resolve."};class he extends g.lR{constructor(ie,we,Re,Be,ut,Le,gt,wt){super(ie,we,Re),Object.setPrototypeOf(this,he.prototype),this.timestamp=Be||c.YM.EMPTY_STRING,this.traceId=ut||c.YM.EMPTY_STRING,this.correlationId=Le||c.YM.EMPTY_STRING,this.claims=gt||c.YM.EMPTY_STRING,this.name="InteractionRequiredAuthError",this.errorNo=wt}}function de(ce,ie,we){const Re=!!ce&&Y.indexOf(ce)>-1,Be=!!we&&q.indexOf(we)>-1,ut=!!ie&&Y.some(Le=>ie.indexOf(Le)>-1);return Re||ut||Be}function De(ce){return new he(ce,ge[ce])}},6564:(ct,be,I)=>{"use strict";I.d(be,{AG:()=>$,B:()=>g,CY:()=>q,Zv:()=>ge,j9:()=>se,mP:()=>Y,oF:()=>c});const c="no_tokens_found",g="native_account_unavailable",$="refresh_token_expired",Y="interaction_required",q="consent_required",ge="login_required",se="bad_token"},4561:(ct,be,I)=>{"use strict";I.d(be,{MX:()=>c,hU:()=>$});const c={AcquireTokenByCode:"acquireTokenByCode",AcquireTokenByRefreshToken:"acquireTokenByRefreshToken",AcquireTokenSilent:"acquireTokenSilent",AcquireTokenSilentAsync:"acquireTokenSilentAsync",AcquireTokenPopup:"acquireTokenPopup",AcquireTokenPreRedirect:"acquireTokenPreRedirect",AcquireTokenRedirect:"acquireTokenRedirect",CryptoOptsGetPublicKeyThumbprint:"cryptoOptsGetPublicKeyThumbprint",CryptoOptsSignJwt:"cryptoOptsSignJwt",SilentCacheClientAcquireToken:"silentCacheClientAcquireToken",SilentIframeClientAcquireToken:"silentIframeClientAcquireToken",AwaitConcurrentIframe:"awaitConcurrentIframe",SilentRefreshClientAcquireToken:"silentRefreshClientAcquireToken",SsoSilent:"ssoSilent",StandardInteractionClientGetDiscoveredAuthority:"standardInteractionClientGetDiscoveredAuthority",FetchAccountIdWithNativeBroker:"fetchAccountIdWithNativeBroker",NativeInteractionClientAcquireToken:"nativeInteractionClientAcquireToken",BaseClientCreateTokenRequestHeaders:"baseClientCreateTokenRequestHeaders",NetworkClientSendPostRequestAsync:"networkClientSendPostRequestAsync",RefreshTokenClientExecutePostToTokenEndpoint:"refreshTokenClientExecutePostToTokenEndpoint",AuthorizationCodeClientExecutePostToTokenEndpoint:"authorizationCodeClientExecutePostToTokenEndpoint",BrokerHandhshake:"brokerHandshake",AcquireTokenByRefreshTokenInBroker:"acquireTokenByRefreshTokenInBroker",AcquireTokenByBroker:"acquireTokenByBroker",RefreshTokenClientExecuteTokenRequest:"refreshTokenClientExecuteTokenRequest",RefreshTokenClientAcquireToken:"refreshTokenClientAcquireToken",RefreshTokenClientAcquireTokenWithCachedRefreshToken:"refreshTokenClientAcquireTokenWithCachedRefreshToken",RefreshTokenClientAcquireTokenByRefreshToken:"refreshTokenClientAcquireTokenByRefreshToken",RefreshTokenClientCreateTokenRequestBody:"refreshTokenClientCreateTokenRequestBody",AcquireTokenFromCache:"acquireTokenFromCache",SilentFlowClientAcquireCachedToken:"silentFlowClientAcquireCachedToken",SilentFlowClientGenerateResultFromCacheRecord:"silentFlowClientGenerateResultFromCacheRecord",AcquireTokenBySilentIframe:"acquireTokenBySilentIframe",InitializeBaseRequest:"initializeBaseRequest",InitializeSilentRequest:"initializeSilentRequest",InitializeClientApplication:"initializeClientApplication",SilentIframeClientTokenHelper:"silentIframeClientTokenHelper",SilentHandlerInitiateAuthRequest:"silentHandlerInitiateAuthRequest",SilentHandlerMonitorIframeForHash:"silentHandlerMonitorIframeForHash",SilentHandlerLoadFrame:"silentHandlerLoadFrame",SilentHandlerLoadFrameSync:"silentHandlerLoadFrameSync",StandardInteractionClientCreateAuthCodeClient:"standardInteractionClientCreateAuthCodeClient",
1StandardInteractionClientGetClientConfiguration:"standardInteractionClientGetClientConfiguration",StandardInteractionClientInitializeAuthorizationRequest:"standardInteractionClientInitializeAuthorizationRequest",StandardInteractionClientInitializeAuthorizationCodeRequest:"standardInteractionClientInitializeAuthorizationCodeRequest",GetAuthCodeUrl:"getAuthCodeUrl",HandleCodeResponseFromServer:"handleCodeResponseFromServer",HandleCodeResponse:"handleCodeResponse",UpdateTokenEndpointAuthority:"updateTokenEndpointAuthority",AuthClientAcquireToken:"authClientAcquireToken",AuthClientExecuteTokenRequest:"authClientExecuteTokenRequest",AuthClientCreateTokenRequestBody:"authClientCreateTokenRequestBody",AuthClientCreateQueryString:"authClientCreateQueryString",PopTokenGenerateCnf:"popTokenGenerateCnf",PopTokenGenerateKid:"popTokenGenerateKid",HandleServerTokenResponse:"handleServerTokenResponse",DeserializeResponse:"deserializeResponse",AuthorityFactoryCreateDiscoveredInstance:"authorityFactoryCreateDiscoveredInstance",AuthorityResolveEndpointsAsync:"authorityResolveEndpointsAsync",AuthorityResolveEndpointsFromLocalSources:"authorityResolveEndpointsFromLocalSources",AuthorityGetCloudDiscoveryMetadataFromNetwork:"authorityGetCloudDiscoveryMetadataFromNetwork",AuthorityUpdateCloudDiscoveryMetadata:"authorityUpdateCloudDiscoveryMetadata",AuthorityGetEndpointMetadataFromNetwork:"authorityGetEndpointMetadataFromNetwork",AuthorityUpdateEndpointMetadata:"authorityUpdateEndpointMetadata",AuthorityUpdateMetadataWithRegionalInformation:"authorityUpdateMetadataWithRegionalInformation",RegionDiscoveryDetectRegion:"regionDiscoveryDetectRegion",RegionDiscoveryGetRegionFromIMDS:"regionDiscoveryGetRegionFromIMDS",RegionDiscoveryGetCurrentVersion:"regionDiscoveryGetCurrentVersion",AcquireTokenByCodeAsync:"acquireTokenByCodeAsync",GetEndpointMetadataFromNetwork:"getEndpointMetadataFromNetwork",GetCloudDiscoveryMetadataFromNetworkMeasurement:"getCloudDiscoveryMetadataFromNetworkMeasurement",HandleRedirectPromiseMeasurement:"handleRedirectPromise",HandleNativeRedirectPromiseMeasurement:"handleNativeRedirectPromise",UpdateCloudDiscoveryMetadataMeasurement:"updateCloudDiscoveryMetadataMeasurement",UsernamePasswordClientAcquireToken:"usernamePasswordClientAcquireToken",NativeMessageHandlerHandshake:"nativeMessageHandlerHandshake",NativeGenerateAuthResult:"nativeGenerateAuthResult",RemoveHiddenIframe:"removeHiddenIframe",ClearTokensAndKeysWithClaims:"clearTokensAndKeysWithClaims",CacheManagerGetRefreshToken:"cacheManagerGetRefreshToken",GeneratePkceCodes:"generatePkceCodes",GenerateCodeVerifier:"generateCodeVerifier",GenerateCodeChallengeFromVerifier:"generateCodeChallengeFromVerifier",Sha256Digest:"sha256Digest",GetRandomValues:"getRandomValues"},$={NotStarted:0,InProgress:1,Completed:2}},1564:(ct,be,I)=>{"use strict";I.d(be,{H:()=>ge});var c=I(7806),g=I(2030),$=I(7635),Y=I(2718),q=I(5424);class ge{get urlString(){return this._urlString}constructor(he){if(this._urlString=he,!this._urlString)throw(0,c.aD)(q.$A);he.includes("#")||(this._urlString=ge.canonicalizeUri(he))}static canonicalizeUri(he){if(he){let de=he.toLowerCase();return g.$.endsWith(de,"?")?de=de.slice(0,-1):g.$.endsWith(de,"?/")&&(de=de.slice(0,-2)),g.$.endsWith(de,"/")||(de+="/"),de}return he}validateAsUri(){let he;try{he=this.getUrlComponents()}catch{throw(0,c.aD)(q.$N)}if(!he.HostNameAndPort||!he.PathSegments)throw(0,c.aD)(q.$N);if(!he.Protocol||"https:"!==he.Protocol.toLowerCase())throw(0,c.aD)(q.oY)}static appendQueryString(he,de){return de?he.indexOf("?")<0?`${he}?${de}`:`${he}&${de}`:he}static removeHashFromUrl(he){return ge.canonicalizeUri(he.split("#")[0])}replaceTenantPath(he){const de=this.getUrlComponents(),De=de.PathSegments;return he&&0!==De.length&&(De[0]===$.v2.COMMON||De[0]===$.v2.ORGANIZATIONS)&&(De[0]=he),ge.constructAuthorityUriFromObject(de)}getUrlComponents(){const he=RegExp("^(([^:/?#]+):)?(//([^/?#]*))?([^?#]*)(\\?([^#]*))?(#(.*))?"),de=this.urlString.match(he);if(!de)throw(0,c.aD)(q.$N);
1const De={Protocol:de[1],HostNameAndPort:de[4],AbsolutePath:de[5],QueryString:de[7]};let ce=De.AbsolutePath.split("/");return ce=ce.filter(ie=>ie&&ie.length>0),De.PathSegments=ce,De.QueryString&&De.QueryString.endsWith("/")&&(De.QueryString=De.QueryString.substring(0,De.QueryString.length-1)),De}static getDomainFromUrl(he){const de=RegExp("^([^:/?#]+://)?([^/?#]*)"),De=he.match(de);if(!De)throw(0,c.aD)(q.$N);return De[2]}static getAbsoluteUrl(he,de){if(he[0]===$.YM.FORWARD_SLASH){const ce=new ge(de).getUrlComponents();return ce.Protocol+"//"+ce.HostNameAndPort+he}return he}static constructAuthorityUriFromObject(he){return new ge(he.Protocol+"//"+he.HostNameAndPort+"/"+he.PathSegments.join("/"))}static hashContainsKnownProperties(he){return!!(0,Y.n)(he)}}},7635:(ct,be,I)=>{"use strict";I.d(be,{$x:()=>we,E_:()=>ne,F0:()=>At,Fq:()=>he,GU:()=>gt,Gd:()=>ge,I:()=>nt,IO:()=>tt,JR:()=>wt,Kk:()=>te,LR:()=>Be,Lz:()=>Yt,OK:()=>q,Qd:()=>Re,Rv:()=>vt,Tq:()=>Ve,Xw:()=>st,YM:()=>c,_2:()=>Tt,_A:()=>Y,_M:()=>de,aG:()=>ut,aZ:()=>$,gT:()=>F,hB:()=>Ut,iF:()=>De,jZ:()=>_e,p:()=>ie,t3:()=>g,u0:()=>et,v2:()=>se,zL:()=>ce});const c={LIBRARY_NAME:"MSAL.JS",SKU:"msal.js.common",CACHE_PREFIX:"msal",DEFAULT_AUTHORITY:"https://login.microsoftonline.com/common/",DEFAULT_AUTHORITY_HOST:"login.microsoftonline.com",DEFAULT_COMMON_TENANT:"common",ADFS:"adfs",DSTS:"dstsv2",AAD_INSTANCE_DISCOVERY_ENDPT:"https://login.microsoftonline.com/common/discovery/instance?api-version=1.1&authorization_endpoint=",CIAM_AUTH_URL:".ciamlogin.com",AAD_TENANT_DOMAIN_SUFFIX:".onmicrosoft.com",RESOURCE_DELIM:"|",NO_ACCOUNT:"NO_ACCOUNT",CLAIMS:"claims",CONSUMER_UTID:"9188040d-6c67-4c5b-b112-36a304b66dad",OPENID_SCOPE:"openid",PROFILE_SCOPE:"profile",OFFLINE_ACCESS_SCOPE:"offline_access",EMAIL_SCOPE:"email",CODE_RESPONSE_TYPE:"code",CODE_GRANT_TYPE:"authorization_code",RT_GRANT_TYPE:"refresh_token",FRAGMENT_RESPONSE_MODE:"fragment",S256_CODE_CHALLENGE_METHOD:"S256",URL_FORM_CONTENT_TYPE:"application/x-www-form-urlencoded;charset=utf-8",AUTHORIZATION_PENDING:"authorization_pending",NOT_DEFINED:"not_defined",EMPTY_STRING:"",NOT_APPLICABLE:"N/A",NOT_AVAILABLE:"Not Available",FORWARD_SLASH:"/",IMDS_ENDPOINT:"http://169.254.169.254/metadata/instance/compute/location",IMDS_VERSION:"2020-06-01",IMDS_TIMEOUT:2e3,AZURE_REGION_AUTO_DISCOVER_FLAG:"TryAutoDetect",REGIONAL_AUTH_PUBLIC_CLOUD_SUFFIX:"login.microsoft.com",KNOWN_PUBLIC_CLOUDS:["login.microsoftonline.com","login.windows.net","login.microsoft.com","sts.windows.net"],TOKEN_RESPONSE_TYPE:"token",ID_TOKEN_RESPONSE_TYPE:"id_token",SHR_NONCE_VALIDITY:240,INVALID_INSTANCE:"invalid_instance"},g={SUCCESS:200,SUCCESS_RANGE_START:200,SUCCESS_RANGE_END:299,REDIRECT:302,CLIENT_ERROR:400,CLIENT_ERROR_RANGE_START:400,BAD_REQUEST:400,UNAUTHORIZED:401,NOT_FOUND:404,REQUEST_TIMEOUT:408,TOO_MANY_REQUESTS:429,CLIENT_ERROR_RANGE_END:499,SERVER_ERROR:500,SERVER_ERROR_RANGE_START:500,SERVICE_UNAVAILABLE:503,GATEWAY_TIMEOUT:504,SERVER_ERROR_RANGE_END:599,MULTI_SIDED_ERROR:600},$=[c.OPENID_SCOPE,c.PROFILE_SCOPE,c.OFFLINE_ACCESS_SCOPE],Y=[...$,c.EMAIL_SCOPE],q={CONTENT_TYPE:"Content-Type",CONTENT_LENGTH:"Content-Length",RETRY_AFTER:"Retry-After",CCS_HEADER:"X-AnchorMailbox",WWWAuthenticate:"WWW-Authenticate",AuthenticationInfo:"Authentication-Info",X_MS_REQUEST_ID:"x-ms-request-id",X_MS_HTTP_VERSION:"x-ms-httpver"},ge={ID_TOKEN:"idtoken",CLIENT_INFO:"client.info",ADAL_ID_TOKEN:"adal.idtoken",ERROR:"error",ERROR_DESC:"error.description",ACTIVE_ACCOUNT:"active-account",ACTIVE_ACCOUNT_FILTERS:"active-account-filters"},se={COMMON:"common",ORGANIZATIONS:"organizations",CONSUMERS:"consumers"},he={ACCESS_TOKEN:"access_token",XMS_CC:"xms_cc"},de={LOGIN:"login",SELECT_ACCOUNT:"select_account",CONSENT:"consent",NONE:"none",CREATE:"create",NO_SESSION:"no_session"},De={PLAIN:"plain",S256:"S256"},ce={QUERY:"query",FRAGMENT:"fragment"},ie={...ce,FORM_POST:"form_post"},we={IMPLICIT_GRANT:"implicit",AUTHORIZATION_CODE_GRANT:"authorization_code",CLIENT_CREDENTIALS_GRANT:"client_credentials",RESOURCE_OWNER_PASSWORD_GRANT:"password",REFRESH_TOKEN_GRANT:"refresh_token",DEVICE_CODE_GRANT:"device_code",JWT_BEARER:"ur
1n:ietf:params:oauth:grant-type:jwt-bearer"},Re={MSSTS_ACCOUNT_TYPE:"MSSTS",ADFS_ACCOUNT_TYPE:"ADFS",MSAV1_ACCOUNT_TYPE:"MSA",GENERIC_ACCOUNT_TYPE:"Generic"},Be={CACHE_KEY_SEPARATOR:"-",CLIENT_INFO_SEPARATOR:"."},ut={ID_TOKEN:"IdToken",ACCESS_TOKEN:"AccessToken",ACCESS_TOKEN_WITH_AUTH_SCHEME:"AccessToken_With_AuthScheme",REFRESH_TOKEN:"RefreshToken"},gt="appmetadata",wt="client_info",Ut="1",et={CACHE_KEY:"authority-metadata",REFRESH_TIME_SECONDS:86400},ne={CONFIG:"config",CACHE:"cache",NETWORK:"network",HARDCODED_VALUES:"hardcoded_values"},F={SCHEMA_VERSION:5,MAX_CUR_HEADER_BYTES:80,MAX_LAST_HEADER_BYTES:330,MAX_CACHED_ERRORS:50,CACHE_KEY:"server-telemetry",CATEGORY_SEPARATOR:"|",VALUE_SEPARATOR:",",OVERFLOW_TRUE:"1",OVERFLOW_FALSE:"0",UNKNOWN_ERROR:"unknown_error"},tt={BEARER:"Bearer",POP:"pop",SSH:"ssh-cert"},st={DEFAULT_THROTTLE_TIME_SECONDS:60,DEFAULT_MAX_THROTTLE_TIME_SECONDS:3600,THROTTLING_PREFIX:"throttling",X_MS_LIB_CAPABILITY_VALUE:"retry-after, h429"},nt={INVALID_GRANT_ERROR:"invalid_grant",CLIENT_MISMATCH_ERROR:"client_mismatch"},Ve={username:"username",password:"password"},te={httpSuccess:200,httpBadRequest:400},_e={FAILED_AUTO_DETECTION:"1",INTERNAL_CACHE:"2",ENVIRONMENT_VARIABLE:"3",IMDS:"4"},Tt={CONFIGURED_MATCHES_DETECTED:"1",CONFIGURED_NO_AUTO_DETECTION:"2",CONFIGURED_NOT_DETECTED:"3",AUTO_DETECTION_REQUESTED_SUCCESSFUL:"4",AUTO_DETECTION_REQUESTED_FAILED:"5"},vt={NOT_APPLICABLE:"0",FORCE_REFRESH_OR_CLAIMS:"1",NO_CACHED_ACCESS_TOKEN:"2",CACHED_ACCESS_TOKEN_EXPIRED:"3",PROACTIVELY_REFRESHED:"4"},Yt={Jwt:"JWT",Jwk:"JWK",Pop:"pop"},At=300},2030:(ct,be,I)=>{"use strict";I.d(be,{$:()=>c});class c{static isEmptyObj($){if($)try{const Y=JSON.parse($);return 0===Object.keys(Y).length}catch{}return!0}static startsWith($,Y){return 0===$.indexOf(Y)}static endsWith($,Y){return $.length>=Y.length&&$.lastIndexOf(Y)===$.length-Y.length}static queryStringToObject($){const Y={},q=$.split("&"),ge=se=>decodeURIComponent(se.replace(/\+/g," "));return q.forEach(se=>{if(se.trim()){const[he,de]=se.split(/=(.+)/g,2);he&&de&&(Y[ge(he)]=ge(de))}}),Y}static trimArrayEntries($){return $.map(Y=>Y.trim())}static removeEmptyStringsFromArray($){return $.filter(Y=>!!Y)}static jsonParseHelper($){try{return JSON.parse($)}catch{return null}}static matchPattern($,Y){return new RegExp($.replace(/\\/g,"\\\\").replace(/\*/g,"[^ ]*").replace(/\?/g,"\\?")).test(Y)}}},2718:(ct,be,I)=>{"use strict";I.d(be,{S:()=>$,n:()=>Y});var c=I(3986),g=I(7172);function $(q){return q.startsWith("#/")?q.substring(2):q.startsWith("#")||q.startsWith("?")?q.substring(1):q}function Y(q){if(!q||q.indexOf("=")<0)return null;try{const ge=$(q),se=Object.fromEntries(new URLSearchParams(ge));if(se.code||se.error||se.error_description||se.state)return se}catch{throw(0,c.SB)(g.hJ)}return null}},4264:(ct,be,I)=>{"use strict";I.d(be,{UA:()=>Cr,WP:()=>xt,$R:()=>Un,r6:()=>tr,x7:()=>Hn,tW:()=>lr,Lw:()=>Us,iF:()=>ur,$G:()=>er,gj:()=>nr,yB:()=>A,G7:()=>vs,tg:()=>el,_H:()=>Ts,U0:()=>Sc,do:()=>_u,Bq:()=>Bi,UN:()=>_t,RS:()=>ue,ZM:()=>Mu,zr:()=>Bl});var c=I(4438),g=I(1985),$=I(6977);function Y(u){u||((0,c.Af3)(Y),u=(0,c.WQX)(c.abz));const y=new g.c(l=>u.onDestroy(l.next.bind(l)));return l=>l.pipe((0,$.Q)(y))}var De=I(983),ce=I(7673),ie=I(1413),we=I(3726),Re=I(1584),Be=I(8750);const{isArray:ut}=Array;function Le(u){return 1===u.length&&ut(u[0])?u[0]:u}var gt=I(4360);function wt(...u){return 1===(u=Le(u)).length?(0,Be.Tg)(u[0]):new g.c(function Ut(u){return y=>{let l=[];for(let h=0;l&&!y.closed&&h<u.length;h++)l.push((0,Be.Tg)(u[h]).subscribe((0,gt._)(y,m=>{if(l){for(let k=0;k<l.length;k++)k!==h&&l[k].unsubscribe();l=null}y.next(m)})))}}(u))}var et=I(6365),ne=I(9326),F=I(6648);function st(...u){const y=(0,ne.ms)(u),l=Le(u);return l.length?new g.c(h=>{let m=l.map(()=>[]),k=l.map(()=>!1);h.add(()=>{m=k=null});for(let H=0;!h.closed&&H<l.length;H++)(0,Be.Tg)(l[H]).subscribe((0,gt._)(h,pe=>{if(m[H].push(pe),m.every(Se=>Se.length)){const Se=m.map(xe=>xe.shift());h.next(y?y(...Se):Se),m.some((xe,We)=>!xe.length&&k[We])&&h.complete()}},()=>{k[H]=!0,!m[H].length&&h.complete()}));return()=>{m=k=null}}):De.w}var nt=I(8793),te=I(5964),_e=I(6697),Tt=I(8141),vt=I(6354),Yt=I(9974),$e=I(3669),At=I(5343);function le(...u){const y=(0,ne.ms)(u);return(0,Yt.N)((l,h)=>{const m=u.length,k=new Array(m);let H=u.map(()=>
1!1),pe=!1;for(let Se=0;Se<m;Se++)(0,Be.Tg)(u[Se]).subscribe((0,gt._)(h,xe=>{k[Se]=xe,!pe&&!H[Se]&&(H[Se]=!0,(pe=H.every($e.D))&&(H=null))},At.l));l.subscribe((0,gt._)(h,Se=>{if(pe){const xe=[Se,...k];h.next(y?y(...xe):xe)}}))})}var Q=I(8839),Z=I(3703),Ce=I(1397);function Ue(u,y){return y?l=>(0,nt.x)(y.pipe((0,_e.s)(1),function ae(){return(0,Yt.N)((u,y)=>{u.subscribe((0,gt._)(y,At.l))})}()),l.pipe(Ue(u))):(0,Ce.Z)((l,h)=>(0,Be.Tg)(u(l,h)).pipe((0,_e.s)(1),(0,Z.u)(l)))}var lt=I(5558);I(9172),I(3294);var Qe=I(980),ze=I(177),ot=I(9417),Mt={left:"right",right:"left",bottom:"top",top:"bottom"};function dn(u){return u.replace(/left|right|bottom|top/g,function(y){return Mt[y]})}function nn(u){return u.split("-")[0]}var mt={start:"end",end:"start"};function En(u){return u.replace(/start|end/g,function(y){return mt[y]})}var ft="top",Rn="bottom",zn="right",hr="left",xn="auto",Hr=[ft,Rn,zn,hr],yn="start",Qt="end",Dr="viewport",vn="popper",ni=Hr.reduce(function(u,y){return u.concat([y+"-"+yn,y+"-"+Qt])},[]),Yn=[].concat(Hr,[xn]).reduce(function(u,y){return u.concat([y,y+"-"+yn,y+"-"+Qt])},[]),Yi=["beforeRead","read","afterRead","beforeMain","main","afterMain","beforeWrite","write","afterWrite"];function $n(u){if(null==u)return window;if("[object Window]"!==u.toString()){var y=u.ownerDocument;return y&&y.defaultView||window}return u}function Te(u){return u instanceof $n(u).Element||u instanceof Element}function Oe(u){return u instanceof $n(u).HTMLElement||u instanceof HTMLElement}function J(u){return!(typeof ShadowRoot>"u")&&(u instanceof $n(u).ShadowRoot||u instanceof ShadowRoot)}function me(u){return((Te(u)?u.ownerDocument:u.document)||window.document).documentElement}var qe=Math.max,It=Math.min,$t=Math.round;function Cn(){var u=navigator.userAgentData;return null!=u&&u.brands&&Array.isArray(u.brands)?u.brands.map(function(y){return y.brand+"/"+y.version}).join(" "):navigator.userAgent}function Fn(){return!/^((?!chrome|android).)*safari/i.test(Cn())}function fr(u,y,l){void 0===y&&(y=!1),void 0===l&&(l=!1);var h=u.getBoundingClientRect(),m=1,k=1;y&&Oe(u)&&(m=u.offsetWidth>0&&$t(h.width)/u.offsetWidth||1,k=u.offsetHeight>0&&$t(h.height)/u.offsetHeight||1);var pe=(Te(u)?$n(u):window).visualViewport,Se=!Fn()&&l,xe=(h.left+(Se&&pe?pe.offsetLeft:0))/m,We=(h.top+(Se&&pe?pe.offsetTop:0))/k,bt=h.width/m,Et=h.height/k;return{width:bt,height:Et,top:We,right:xe+bt,bottom:We+Et,left:xe,x:xe,y:We}}function ei(u){var y=$n(u);return{scrollLeft:y.pageXOffset,scrollTop:y.pageYOffset}}function vr(u){return fr(me(u)).left+ei(u).scrollLeft}function zr(u){return $n(u).getComputedStyle(u)}function Vn(u){return u?(u.nodeName||"").toLowerCase():null}function Lt(u){return"html"===Vn(u)?u:u.assignedSlot||u.parentNode||(J(u)?u.host:null)||me(u)}function To(u){var y=zr(u);return/auto|scroll|overlay|hidden/.test(y.overflow+y.overflowY+y.overflowX)}function $i(u){return["html","body","#document"].indexOf(Vn(u))>=0?u.ownerDocument.body:Oe(u)&&To(u)?u:$i(Lt(u))}function yi(u,y){var l;void 0===y&&(y=[]);var h=$i(u),m=h===(null==(l=u.ownerDocument)?void 0:l.body),k=$n(h),H=m?[k].concat(k.visualViewport||[],To(h)?h:[]):h,pe=y.concat(H);return m?pe:pe.concat(yi(Lt(H)))}function Do(u){return["table","td","th"].indexOf(Vn(u))>=0}function uo(u){return Oe(u)&&"fixed"!==zr(u).position?u.offsetParent:null}function Gi(u){for(var y=$n(u),l=uo(u);l&&Do(l)&&"static"===zr(l).position;)l=uo(l);return l&&("html"===Vn(l)||"body"===Vn(l)&&"static"===zr(l).position)?y:l||function Me(u){var y=/firefox/i.test(Cn());if(/Trident/i.test(Cn())&&Oe(u)&&"fixed"===zr(u).position)return null;var m=Lt(u);for(J(m)&&(m=m.host);Oe(m)&&["html","body"].indexOf(Vn(m))<0;){var k=zr(m);if("none"!==k.transform||"none"!==k.perspective||"paint"===k.contain||-1!==["transform","perspective"].indexOf(k.willChange)||y&&"filter"===k.willChange||y&&k.filter&&"none"!==k.filter)return m;m=m.parentNode}return null}(u)||y}function Ki(u,y){var l=y.getRootNode&&y.getRootNode();if(u.contains(y))return!0;if(l&&J(l)){var h=y;do{if(h&&u.isSameNode(h))return!0;h=h.parentNode||h.host}while(h)}return!1}function Ae(u){return Object.assign({},u,{left:u.x,top:u.y,right:u.x+u.width,bottom:u.y+u.height})}function Zn(u,y,l){return y===Dr?Ae(function Mi(u,y){var l=$n(u),h=me(u),m=l.visualVie
1wport,k=h.clientWidth,H=h.clientHeight,pe=0,Se=0;if(m){k=m.width,H=m.height;var xe=Fn();(xe||!xe&&"fixed"===y)&&(pe=m.offsetLeft,Se=m.offsetTop)}return{width:k,height:H,x:pe+vr(u),y:Se}}(u,l)):Te(y)?function Ji(u,y){var l=fr(u,!1,"fixed"===y);return l.top=l.top+u.clientTop,l.left=l.left+u.clientLeft,l.bottom=l.top+u.clientHeight,l.right=l.left+u.clientWidth,l.width=u.clientWidth,l.height=u.clientHeight,l.x=l.left,l.y=l.top,l}(y,l):Ae(function Zi(u){var y,l=me(u),h=ei(u),m=null==(y=u.ownerDocument)?void 0:y.body,k=qe(l.scrollWidth,l.clientWidth,m?m.scrollWidth:0,m?m.clientWidth:0),H=qe(l.scrollHeight,l.clientHeight,m?m.scrollHeight:0,m?m.clientHeight:0),pe=-h.scrollLeft+vr(u),Se=-h.scrollTop;return"rtl"===zr(m||l).direction&&(pe+=qe(l.clientWidth,m?m.clientWidth:0)-k),{width:k,height:H,x:pe,y:Se}}(me(u)))}function K(u){return u.split("-")[1]}function ee(u){return["top","bottom"].indexOf(u)>=0?"x":"y"}function fe(u){var Se,y=u.reference,l=u.element,h=u.placement,m=h?nn(h):null,k=h?K(h):null,H=y.x+y.width/2-l.width/2,pe=y.y+y.height/2-l.height/2;switch(m){case ft:Se={x:H,y:y.y-l.height};break;case Rn:Se={x:H,y:y.y+y.height};break;case zn:Se={x:y.x+y.width,y:pe};break;case hr:Se={x:y.x-l.width,y:pe};break;default:Se={x:y.x,y:y.y}}var xe=m?ee(m):null;if(null!=xe){var We="y"===xe?"height":"width";switch(k){case yn:Se[xe]=Se[xe]-(y[We]/2-l[We]/2);break;case Qt:Se[xe]=Se[xe]+(y[We]/2-l[We]/2)}}return Se}function Ge(u){return Object.assign({},{top:0,right:0,bottom:0,left:0},u)}function it(u,y){return y.reduce(function(l,h){return l[h]=u,l},{})}function Ct(u,y){void 0===y&&(y={});var h=y.placement,m=void 0===h?u.placement:h,k=y.strategy,H=void 0===k?u.strategy:k,pe=y.boundary,Se=void 0===pe?"clippingParents":pe,xe=y.rootBoundary,We=void 0===xe?Dr:xe,bt=y.elementContext,Et=void 0===bt?vn:bt,Ot=y.altBoundary,pn=void 0!==Ot&&Ot,tn=y.padding,Sn=void 0===tn?0:tn,Kn=Ge("number"!=typeof Sn?Sn:it(Sn,Hr)),kt=u.rects.popper,St=u.elements[pn?Et===vn?"reference":vn:Et],Ft=function Wi(u,y,l,h){var m="clippingParents"===y?function Ri(u){var y=yi(Lt(u)),h=["absolute","fixed"].indexOf(zr(u).position)>=0&&Oe(u)?Gi(u):u;return Te(h)?y.filter(function(m){return Te(m)&&Ki(m,h)&&"body"!==Vn(m)}):[]}(u):[].concat(y),k=[].concat(m,[l]),pe=k.reduce(function(Se,xe){var We=Zn(u,xe,h);return Se.top=qe(We.top,Se.top),Se.right=It(We.right,Se.right),Se.bottom=It(We.bottom,Se.bottom),Se.left=qe(We.left,Se.left),Se},Zn(u,k[0],h));return pe.width=pe.right-pe.left,pe.height=pe.bottom-pe.top,pe.x=pe.left,pe.y=pe.top,pe}(Te(St)?St:St.contextElement||me(u.elements.popper),Se,We,H),ln=fr(u.elements.reference),wn=fe({reference:ln,element:kt,strategy:"absolute",placement:m}),kn=Ae(Object.assign({},kt,wn)),Ir=Et===vn?kn:ln,Dn={top:Ft.top-Ir.top+Kn.top,bottom:Ir.bottom-Ft.bottom+Kn.bottom,left:Ft.left-Ir.left+Kn.left,right:Ir.right-Ft.right+Kn.right},ti=u.modifiersData.offset;if(Et===vn&&ti){var Zo=ti[m];Object.keys(Dn).forEach(function(ir){var lo=[zn,Rn].indexOf(ir)>=0?1:-1,ui=[ft,Rn].indexOf(ir)>=0?"y":"x";Dn[ir]+=Zo[ui]*lo})}return Dn}const sr={name:"flip",enabled:!0,phase:"main",fn:function Gn(u){var y=u.state,l=u.options,h=u.name;if(!y.modifiersData[h]._skip){for(var m=l.mainAxis,k=void 0===m||m,H=l.altAxis,pe=void 0===H||H,Se=l.fallbackPlacements,xe=l.padding,We=l.boundary,bt=l.rootBoundary,Et=l.altBoundary,Ot=l.flipVariations,pn=void 0===Ot||Ot,tn=l.allowedAutoPlacements,Sn=y.options.placement,Kn=nn(Sn),kt=Se||(Kn!==Sn&&pn?function Vt(u){if(nn(u)===xn)return[];var y=dn(u);return[En(u),y,En(y)]}(Sn):[dn(Sn)]),St=[Sn].concat(kt).reduce(function(za,Ks){return za.concat(nn(Ks)===xn?function sn(u,y){void 0===y&&(y={});var m=y.boundary,k=y.rootBoundary,H=y.padding,pe=y.flipVariations,Se=y.allowedAutoPlacements,xe=void 0===Se?Yn:Se,We=K(y.placement),bt=We?pe?ni:ni.filter(function(pn){return K(pn)===We}):Hr,Et=bt.filter(function(pn){return xe.indexOf(pn)>=0});0===Et.length&&(Et=bt);var Ot=Et.reduce(function(pn,tn){return pn[tn]=Ct(u,{placement:tn,boundary:m,rootBoundary:k,padding:H})[nn(tn)],pn},{});return Object.keys(Ot).sort(function(pn,tn){return Ot[pn]-Ot[tn]})}(y,{placement:Ks,boundary:We,rootBoundary:bt,padding:xe,flipVariations:pn,allowedAutoPlacements:tn}):Ks)},[]),Ft=y.rects.reference,ln=y.rects.popper,wn=new Map,kn=!0,Ir=St[0],Dn=0;Dn<St.length;Dn++){var ti=St[Dn],Zo=nn(ti),ir=K(ti)===yn,lo=[ft,Rn].indexOf(Zo)>=0,ui=lo?"width":"height",wi=Ct(y,{placement:ti,boundary:We,rootBoundary:bt,altBoundary:Et,padding:xe}),bo=lo?ir?zn:hr:ir?Rn:ft;Ft[ui]>ln[ui]&&(bo=dn(bo));var Qd=dn(bo),Gs=[];if(k&&Gs.push(wi[Zo]<=0),pe&&Gs.push(wi[bo]<=0,wi[Qd]<=0),Gs.every(function(za){return za})){Ir=ti,kn=!1;break}wn.set(ti,Gs)}if(kn)for(var Kl=function(Ks){var Ca=St.find(function(kc){var Jo=wn.get(kc);if(Jo)return Jo.slice(0,Ks).every(function(Wl){return Wl})});if(Ca)return Ir=Ca,"break"},Oc=pn?3:1;Oc>0&&"break"!==Kl(Oc);Oc--);y.placement!==Ir&&(y.modifiersData[h]._skip=!0,y.placement=Ir,y.reset=!0)}},requiresIfExists:["offset"],data:{_skip:!1}};function Wn(u,y,l){return qe(u,It(y,l))}function Er(u){var y=fr(u),l=u.offsetWidth,h=u.offsetHeight;return Math.abs(y.width-l)<=1&&(l=y.width),Math.abs(y.height-h)<=1&&(h=y.height),{x:u.offsetLeft,y:u.offsetTop,width:l,height:h}}const bn={name:"preventOverflow",enabled:!0,phase:"main",fn:function Tn(u){var y=u.state,l=u.options,h=u.name,m=l.mainAxis,k=void 0===m||m,H=l.altAxis,pe=void 0!==H&&H,Et=l.tether,Ot=void 0===Et||Et,pn=l.tetherOffset,tn=void 0===pn?0:pn,Sn=Ct(y,{boundary:l.boundary,rootBoundary:l.rootBoundary,padding:l.padding,altBoundary:l.altBoundary}),Kn=nn(y.placement),pt=K(y.placement),kt=!pt,St=ee(Kn),Ft=function Ln(u){return"x"===u?"y":"x"}(St),ln=y.modifiersData.popperOffsets,wn=y.rects.reference,kn=y.rects.popper,Ir="function"==typeof tn?tn(Object.assign({},y.rects,{placement:y.placement})):tn,Dn="number"==typeof Ir?{mainAxis:Ir,altAxis:Ir}:Object.assign({mainAxis:0,altAxis:0},Ir),ti=y.modifiersData.offset?y.modifiersData.offset[y.placement]:null,Zo={x:0,y:0};if(ln){if(k){var ir,lo="y"===St?ft:hr,ui="y"===St?Rn:zn,wi="y"===St?"height":"width",bo=ln[St],Qd=bo+Sn[lo],Gs=bo-Sn[ui],Pu=Ot?-kn[wi]/2:0,Kl=pt===yn?wn[wi]:kn[wi],Oc=pt===yn?-kn[wi]:-wn[wi],va=y.elements.arrow,za=Ot&&va?Er(va):{width:0,height:0},Ks=y.modifiersData["arrow#persistent"]?y.modifiersData["arrow#persistent"].padding:{top:0,right:0,bottom:0,left:0},Ca=Ks[lo],kc=Ks[ui],Jo=Wn(0,wn[wi],za[wi]),Wl=kt?wn[wi]/2-Pu-Jo-Ca-Dn.mainAxis:Kl-Jo-Ca-Dn.mainAxis,qd=kt?-wn[wi]/2+Pu+Jo+kc+Dn.mainAxis:Oc+Jo+kc+Dn.mainAxis,ll=y.elements.arrow&&Gi(y.elements.arrow),jm=ll?"y"===St?ll.clientTop||0:ll.clientLeft||0:0,xu=null!=(ir=ti?.[St])?ir:0,Sp=bo+qd-xu,Yd=Wn(Ot?It(Qd,bo+Wl-xu-jm):Qd,bo,Ot?qe(Gs,Sp):Gs);ln[St]=Yd,Zo[St]=Yd-bo}if(pe){var lf,Xa=ln[Ft],Fu="y"===Ft?"height":"width",uf=Xa+Sn["x"===St?ft:hr],ul=Xa-Sn["x"===St?Rn:zn],Lu=-1!==[ft,hr].indexOf(Kn),Bu=null!=(lf=ti?.[Ft])?lf:0,df=Lu?uf:Xa-wn[Fu]-kn[Fu]-Bu+Dn.altAxis,Ap=Lu?Xa+wn[Fu]+kn[Fu]-Bu-Dn.altAxis:ul,Ip=Ot&&Lu?function Xr(u,y,l){var h=Wn(u,y,l);return h>l?l:h}(df,Xa,Ap):Wn(Ot?df:uf,Xa,Ot?Ap:ul);ln[Ft]=Ip,Zo[Ft]=Ip-Xa}y.modifiersData[h]=Zo}},requiresIfExists:["offset"]},Qn={name:"arrow",enabled:!0,phase:"main",fn:function br(u){var y,l=u.state,h=u.name,m=u.options,k=l.elements.arrow,H=l.modifiersData.popperOffsets,pe=nn(l.placement),Se=ee(pe),We=[hr,zn].indexOf(pe)>=0?"height":"width";if(k&&H){var bt=function(y,l){return Ge("number"!=typeof(y="function"==typeof y?y(Object.assign({},l.rects,{placement:l.placement})):y)?y:it(y,Hr))}(m.padding,l),Et=Er(k),Ot="y"===Se?ft:hr,pn="y"===Se?Rn:zn,tn=l.rects.reference[We]+l.rects.reference[Se]-H[Se]-l.rects.popper[We],Sn=H[Se]-l.rects.reference[Se],Kn=Gi(k),pt=Kn?"y"===Se?Kn.clientHeight||0:Kn.clientWidth||0:0,ln=pt/2-Et[We]/2+(tn/2-Sn/2),wn=Wn(bt[Ot],ln,pt-Et[We]-bt[pn]);l.modifiersData[h]=((y={})[Se]=wn,y.centerOffset=wn-ln,y)}},effect:function ar(u){var y=u.state,h=u.options.element,m=void 0===h?"[data-popper-arrow]":h;null!=m&&("string"==typeof m&&!(m=y.elements.popper.querySelector(m))||Ki(y.elements.popper,m)&&(y.elements.arrow=m))},requires:["popperOffsets"],requiresIfExists:["preventOverflow"]};function Bt(u,y,l){void 0===l&&(l=!1);var h=Oe(y),m=Oe(y)&&function zt(u){var y=u.getBoundingClientRect(),l=$t(y.width)/u.offsetWidth||1,h=$t(y.height)/u.offsetHeight||1;return 1!==l||1!==h}
1(y),k=me(y),H=fr(u,m,l),pe={scrollLeft:0,scrollTop:0},Se={x:0,y:0};return(h||!h&&!l)&&(("body"!==Vn(y)||To(k))&&(pe=function pr(u){return u!==$n(u)&&Oe(u)?function Pn(u){return{scrollLeft:u.scrollLeft,scrollTop:u.scrollTop}}(u):ei(u)}(y)),Oe(y)?((Se=fr(y,!0)).x+=y.clientLeft,Se.y+=y.clientTop):k&&(Se.x=vr(k))),{x:H.left+pe.scrollLeft-Se.x,y:H.top+pe.scrollTop-Se.y,width:H.width,height:H.height}}function rs(u){var y=new Map,l=new Set,h=[];function m(k){l.add(k.name),[].concat(k.requires||[],k.requiresIfExists||[]).forEach(function(pe){if(!l.has(pe)){var Se=y.get(pe);Se&&m(Se)}}),h.push(k)}return u.forEach(function(k){y.set(k.name,k)}),u.forEach(function(k){l.has(k.name)||m(k)}),h}function ws(u){var y;return function(){return y||(y=new Promise(function(l){Promise.resolve().then(function(){y=void 0,l(u())})})),y}}var As={placement:"bottom",modifiers:[],strategy:"absolute"};function Lo(){for(var u=arguments.length,y=new Array(u),l=0;l<u;l++)y[l]=arguments[l];return!y.some(function(h){return!(h&&"function"==typeof h.getBoundingClientRect)})}function gn(u){void 0===u&&(u={});var l=u.defaultModifiers,h=void 0===l?[]:l,m=u.defaultOptions,k=void 0===m?As:m;return function(pe,Se,xe){void 0===xe&&(xe=k);var We={placement:"bottom",orderedModifiers:[],options:Object.assign({},As,k),modifiersData:{},elements:{reference:pe,popper:Se},attributes:{},styles:{}},bt=[],Et=!1,Ot={state:We,setOptions:function(Kn){var pt="function"==typeof Kn?Kn(We.options):Kn;tn(),We.options=Object.assign({},k,We.options,pt),We.scrollParents={reference:Te(pe)?yi(pe):pe.contextElement?yi(pe.contextElement):[],popper:yi(Se)};var kt=function Qr(u){var y=rs(u);return Yi.reduce(function(l,h){return l.concat(y.filter(function(m){return m.phase===h}))},[])}(function Da(u){var y=u.reduce(function(l,h){var m=l[h.name];return l[h.name]=m?Object.assign({},m,h,{options:Object.assign({},m.options,h.options),data:Object.assign({},m.data,h.data)}):h,l},{});return Object.keys(y).map(function(l){return y[l]})}([].concat(h,We.options.modifiers)));return We.orderedModifiers=kt.filter(function(St){return St.enabled}),function pn(){We.orderedModifiers.forEach(function(Sn){var pt=Sn.options,St=Sn.effect;if("function"==typeof St){var Ft=St({state:We,name:Sn.name,instance:Ot,options:void 0===pt?{}:pt});bt.push(Ft||function(){})}})}
1(),Ot.update()},forceUpdate:function(){if(!Et){var Kn=We.elements,pt=Kn.reference,kt=Kn.popper;if(Lo(pt,kt)){We.rects={reference:Bt(pt,Gi(kt),"fixed"===We.options.strategy),popper:Er(kt)},We.reset=!1,We.placement=We.options.placement,We.orderedModifiers.forEach(function(Dn){return We.modifiersData[Dn.name]=Object.assign({},Dn.data)});for(var St=0;St<We.orderedModifiers.length;St++)if(!0!==We.reset){var Ft=We.orderedModifiers[St],ln=Ft.fn,wn=Ft.options;"function"==typeof ln&&(We=ln({state:We,options:void 0===wn?{}:wn,name:Ft.name,instance:Ot})||We)}else We.reset=!1,St=-1}}},update:ws(function(){return new Promise(function(Sn){Ot.forceUpdate(),Sn(We)})}),destroy:function(){tn(),Et=!0}};if(!Lo(pe,Se))return Ot;function tn(){bt.forEach(function(Sn){return Sn()}),bt=[]}return Ot.setOptions(xe).then(function(Sn){!Et&&xe.onFirstUpdate&&xe.onFirstUpdate(Sn)}),Ot}}var ri={passive:!0},vi={top:"auto",right:"auto",bottom:"auto",left:"auto"};function Mr(u){var y,l=u.popper,h=u.popperRect,m=u.placement,k=u.variation,H=u.offsets,pe=u.position,Se=u.gpuAcceleration,xe=u.adaptive,We=u.roundOffsets,bt=u.isFixed,Et=H.x,Ot=void 0===Et?0:Et,pn=H.y,tn=void 0===pn?0:pn,Sn="function"==typeof We?We({x:Ot,y:tn}):{x:Ot,y:tn};Ot=Sn.x,tn=Sn.y;var Kn=H.hasOwnProperty("x"),pt=H.hasOwnProperty("y"),kt=hr,St=ft,Ft=window;if(xe){var ln=Gi(l),wn="clientHeight",kn="clientWidth";ln===$n(l)&&"static"!==zr(ln=me(l)).position&&"absolute"===pe&&(wn="scrollHeight",kn="scrollWidth"),(m===ft||(m===hr||m===zn)&&k===Qt)&&(St=Rn,tn-=(bt&&ln===Ft&&Ft.visualViewport?Ft.visualViewport.height:ln[wn])-h.height,tn*=Se?1:-1),m!==hr&&(m!==ft&&m!==Rn||k!==Qt)||(kt=zn,Ot-=(bt&&ln===Ft&&Ft.visualViewport?Ft.visualViewport.width:ln[kn])-h.width,Ot*=Se?1:-1)}var ir,ti=Object.assign({position:pe},xe&&vi),Zo=!0===We?function ho(u,y){var h=u.y,m=y.devicePixelRatio||1;return{x:$t(u.x*m)/m||0,y:$t(h*m)/m||0}}({x:Ot,y:tn},$n(l)):{x:Ot,y:tn};return Ot=Zo.x,tn=Zo.y,Object.assign({},ti,Se?((ir={})[St]=pt?"0":"",ir[kt]=Kn?"0":"",ir.transform=(Ft.devicePixelRatio||1)<=1?"translate("+Ot+"px, "+tn+"px)":"translate3d("+Ot+"px, "+tn+"px, 0)",ir):((y={})[St]=pt?tn+"px":"",y[kt]=Kn?Ot+"px":"",y.transform="",y))}var Gr=gn({defaultModifiers:[{name:"eventListeners",enabled:!0,phase:"write",fn:function(){},effect:function dt(u){var y=u.state,l=u.instance,h=u.options,m=h.scroll,k=void 0===m||m,H=h.resize,pe=void 0===H||H,Se=$n(y.elements.popper),xe=[].concat(y.scrollParents.reference,y.scrollParents.popper);return k&&xe.forEach(function(We){We.addEventListener("scroll",l.update,ri)}),pe&&Se.addEventListener("resize",l.update,ri),function(){k&&xe.forEach(function(We){We.removeEventListener("scroll",l.update,ri)}),pe&&Se.removeEventListener("resize",l.update,ri)}},data:{}},{name:"popperOffsets",enabled:!0,phase:"read",fn:function kr(u){var y=u.state;y.modifiersData[u.name]=fe({reference:y.rects.reference,element:y.rects.popper,strategy:"absolute",placement:y.placement})},data:{}},{name:"computeStyles",enabled:!0,phase:"beforeWrite",fn:function zi(u){var y=u.state,l=u.options,h=l.gpuAcceleration,m=void 0===h||h,k=l.adaptive,H=void 0===k||k,pe=l.roundOffsets,Se=void 0===pe||pe,xe={placement:nn(y.placement),variation:K(y.placement),popper:y.elements.popper,popperRect:y.rects.popper,gpuAcceleration:m,isFixed:"fixed"===y.options.strategy};null!=y.modifiersData.popperOffsets&&(y.styles.popper=Object.assign({},y.styles.popper,Mr(Object.assign({},xe,{offsets:y.modifiersData.popperOffsets,position:y.options.strategy,adaptive:H,roundOffsets:Se})))),null!=y.modifiersData.arrow&&(y.styles.arrow=Object.assign({},y.styles.arrow,Mr(Object.assign({},xe,{offsets:y.modifiersData.arrow,position:"absolute",adaptive:!1,roundOffsets:Se})))),y.attributes.popper=Object.assign({},y.attributes.popper,{"data-popper-placement":y.placement})},data:{}},{name:"applyStyles",enabled:!0,phase:"write",fn:function $r(u){var y=u.state;Object.keys(y.elements).forEach(function(l){var h=y.styles[l]||{},m=y.attributes[l]||{},k=y.elements[l];!Oe(k)||!Vn(k)||(Object.assign(k.style,h),Object.keys(m).forEach(function(H){var pe=m[H];!1===pe?k.removeAttribute(H):k.setAttribute(H,!0===pe?"":pe)}))})},effect:function So(u){var y=u.state,l={popper:{position:y.options.strategy,left
1:"0",top:"0",margin:"0"},arrow:{position:"absolute"},reference:{}};return Object.assign(y.elements.popper.style,l.popper),y.styles=l,y.elements.arrow&&Object.assign(y.elements.arrow.style,l.arrow),function(){Object.keys(y.elements).forEach(function(h){var m=y.elements[h],k=y.attributes[h]||{},pe=Object.keys(y.styles.hasOwnProperty(h)?y.styles[h]:l[h]).reduce(function(Se,xe){return Se[xe]="",Se},{});!Oe(m)||!Vn(m)||(Object.assign(m.style,pe),Object.keys(k).forEach(function(Se){m.removeAttribute(Se)}))})}},requires:["computeStyles"]}]});const Bo={name:"offset",enabled:!0,phase:"main",requires:["popperOffsets"],fn:function Sr(u){var y=u.state,h=u.name,m=u.options.offset,k=void 0===m?[0,0]:m,H=Yn.reduce(function(We,bt){return We[bt]=function ss(u,y,l){var h=nn(u),m=[hr,ft].indexOf(h)>=0?-1:1,k="function"==typeof l?l(Object.assign({},y,{placement:u})):l,H=k[0],pe=k[1];return H=H||0,pe=(pe||0)*m,[hr,zn].indexOf(h)>=0?{x:pe,y:H}:{x:H,y:pe}}(bt,y.rects,k),We},{}),pe=H[y.placement],xe=pe.y;null!=y.modifiersData.popperOffsets&&(y.modifiersData.popperOffsets.x+=pe.x,y.modifiersData.popperOffsets.y+=xe),y.modifiersData[h]=H}},Xt=["*"],Uo=["ngbDatepickerDayView",""],Ho=["month"],oi=["year"];function cs(u,y){if(1&u&&(c.j41(0,"option",3),c.EFF(1),c.k0s()),2&u){const l=y.$implicit,h=c.XpG();c.Y8G("value",l),c.BMQ("aria-label",h.i18n.getMonthFullName(l,h.date.year)),c.R7$(),c.JRh(h.i18n.getMonthShortName(l,h.date.year))}}function fo(u,y){if(1&u&&(c.j41(0,"option",3),c.EFF(1),c.k0s()),2&u){const l=y.$implicit,h=c.XpG();c.Y8G("value",l),c.R7$(),c.JRh(h.i18n.getYearNumerals(l))}}function Ci(u,y){if(1&u){const l=c.RV6();c.j41(0,"ngb-datepicker-navigation-select",6),c.bIt("select",function(m){c.eBV(l);const k=c.XpG();return c.Njj(k.select.emit(m))}),c.k0s()}if(2&u){const l=c.XpG();c.Y8G("date",l.date)("disabled",l.disabled)("months",l.selectBoxes.months)("years",l.selectBoxes.years)}}function xr(u,y){1&u&&c.nrm(0,"div",7)}function eo(u,y){1&u&&c.nrm(0,"div",7)}function wr(u,y){if(1&u&&(c.DNE(0,xr,1,0,"div",7),c.j41(1,"div",8),c.EFF(2),c.k0s(),c.DNE(3,eo,1,0,"div",7)),2&u){const l=y.$implicit,h=y.$index,m=c.XpG(2);c.vxM(0,h>0?0:-1),c.R7$(2),c.SpI(" ",m.i18n.getMonthLabel(l.firstDate)," "),c.R7$(),c.vxM(3,h!==m.months.length-1?3:-1)}}function Ei(u,y){if(1&u&&c.Z7z(0,wr,4,3,null,null,c.fX1),2&u){const l=c.XpG();c.Dyx(l.months)}}function ls(u,y){if(1&u&&(c.j41(0,"div",1),c.EFF(1),c.k0s()),2&u){const l=c.XpG(2);c.R7$(),c.JRh(l.i18n.getWeekLabel())}}function Io(u,y){if(1&u&&(c.j41(0,"div",2),c.EFF(1),c.k0s()),2&u){const l=y.$implicit;c.R7$(),c.JRh(l)}}function ki(u,y){if(1&u&&(c.j41(0,"div",0),c.DNE(1,ls,2,1,"div",1),c.Z7z(2,Io,2,1,"div",2,c.fX1),c.k0s()),2&u){const l=c.XpG();c.R7$(),c.vxM(1,l.datepicker.showWeekNumbers?1:-1),c.R7$(),c.Dyx(l.viewModel.weekdays)}}function us(u,y){if(1&u&&(c.j41(0,"div",4),c.EFF(1),c.k0s()),2&u){const l=c.XpG(2).$implicit,h=c.XpG();c.R7$(),c.JRh(h.i18n.getWeekNumerals(l.number))}}function Vo(u,y){}function Qs(u,y){if(1&u&&c.DNE(0,Vo,0,0,"ng-template",7),2&u){const l=c.XpG().$implicit,h=c.XpG(3);c.Y8G("ngTemplateOutlet",h.datepicker.dayTemplate)("ngTemplateOutletContext",l.context)}}function ds(u,y){if(1&u){const l=c.RV6();c.j41(0,"div",6),c.bIt("click",function(m){const k=c.eBV(l).$implicit;return c.XpG(3).doSelect(k),c.Njj(m.preventDefault())}),c.DNE(1,Qs,1,2,null,7),c.k0s()}if(2&u){const l=y.$implicit;c.AVh("disabled",l.context.disabled)("hidden",l.hidden)("ngb-dp-today",l.context.today),c.Y8G("tabindex",l.tabindex),c.BMQ("aria-label",l.ariaLabel),c.R7$(),c.vxM(1,l.hidden?-1:1)}}function si(u,y){if(1&u&&(c.j41(0,"div",3),c.DNE(1,us,2,1,"div",4),c.Z7z(2,ds,2,9,"div",5,c.fX1),c.k0s()),2&u){const l=c.XpG().$implicit,h=c.XpG();c.R7$(),c.vxM(1,h.datepicker.showWeekNumbers?1:-1),c.R7$(),c.Dyx(l.days)}}function jo(u,y){1&u&&c.DNE(0,si,4,1,"div",3),2&u&&c.vxM(0,y.$implicit.collapsed?-1:0)}const to=["defaultDayTemplate"],Lc=["content"],Sa=u=>({$implicit:u});function hi(u,y){if(1&u&&c.nrm(0,"div",8),2&u){const h=y.currentMonth,m=y.selected,k=y.disabled,H=y.focused;c.Y8G("date",y.date)("currentMonth",h)("selected",m)("disabled",k)("focused",H)}}function Nn(u,y){if(1&u&&(c.j41(0,"div",10),c.EFF(1),c.k0s()),2&u){const l=c.XpG().$implicit,h=c.XpG(2);c.R7$(),c.SpI(" ",h.i18n.getMonthLabel(l.firstDate)," ")}}function $o(u,y){if(1&u&&(c.j41(0,"div",9),c.DNE(1,Nn,2,1,"div",10),c.nrm(2,"ngb-datepicker-month",11),c.k0s()),2&u){const l=y.$implicit,h=c.XpG(2);c.R7$(),c.vxM(1,"none"===h.navigation||h.displayMonths>1&&"select"===h.navigation?1:-1),c.R7$(),c.Y8G("month",l.firstDate)}}function ec(u,y){if(1&u&&c.Z7z(0,$o,3,2,"div",9,c.fX1),2&u){const l=c.XpG();c.Dyx(l.model.months)}}function Go(u,y){if(1&u){const l=c.RV6();c.j41(0,"ngb-datepicker-navigation",12),c.bIt("navigate",function(m){c.eBV(l);const k=c.XpG();return c.Njj(k.onNavigateEvent(m))})("select",function(m){c.eBV(l);const k=c.XpG();return c.Njj(k.onNavigateDateSelect(m))}),c.k0s()}if(2&u){const l=c.XpG();c.Y8G("date",l.model.firstDate)("months",l.model.months)("disabled",l.model.disabled)("showSelect","select"===l.model.navigation)("prevDisabled",l.model.prevDisabled)("nextDisabled",l.model.nextDisabled)("selectBoxes",l.model.selectBoxes)}}function ai(u,y){}function hs(u,y){}const bi=["dialog"];function _n(u,y){if(1&u&&c.EFF(0),2&u){const l=c.XpG(2);c.JRh(l.title)}}function Tr(u,y){}function gr(u,y){if(1&u&&(c.j41(0,"h3",2),c.DNE(1,_n,1,1,"ng-template",null,0,c.C5r)(3,Tr,0,0,"ng-template",4),c.k0s()),2&u){const l=c.sdS(2),h=c.XpG();c.R7$(3),c.Y8G("ngTemplateOutlet",h.isTitleTemplate()?h.title:l)("ngTemplateOutletContext",h.context)}}const ms={animation:!0,transitionTimerDelayMs:5};let Lr=(()=>{class u{constructor(){this.animation=ms.animation}static#e=this.\u0275fac=function(h){return new(h||u)};static#t=this.\u0275prov=c.jDH({token:u,factory:u.\u0275fac,providedIn:"root"})}return u})(),Wo=(()=>{class u{constructor(){this._ngbConfig=(0,c.WQX)(Lr),this.closeOthers=!1,this.destroyOnHide=!0}get animation(){return this._animation??this._ngbConfig.animation}set animation(l){this._animation=l}static#e=this.\u0275fac=function(h){return new(h||u)};static#t=this.\u0275prov=c.jDH({token:u,factory:u.\u0275fac,providedIn:"root"})}return u})();function pi(u){return parseInt(`${u}`,10)}function ci(u){return"string"==typeof u}function li(u){return"number"==typeof u&&isFinite(u)&&Math.floor(u)===u}function no(u){return null!=u}function _s(u){return u&&u.then}function T(u){return(u||document.body).getBoundingClientRect()}function x(u=document){const y=u?.activeElement;return y?y.shadowRoot?x(y.shadowRoot):y:null}const re=()=>{},{transitionTimerDelayMs:je}=ms,Je=new Map,Dt=(u,y,l,h)=>{let m=h.context||{};const k=Je.get(y);if(k)switch(h.runningTransition){case"continue":return De.w;case"stop":u.run(()=>k.transition$.complete()),m=Object.assign(k.context,m),Je.delete(y)}const H=l(y,h.animation,m)||re;if(!h.animation||"none"===window.getComputedStyle(y).transitionProperty)return u.run(()=>H()),(0,ce.of)(void 0).pipe(function V(u){return y=>new g.c(l=>y.subscribe({next:H=>u.run(()=>l.next(H)),error:H=>u.run(()=>l.error(H)),complete:()=>u.run(()=>l.complete())}))}(u));const pe=new ie.B,Se=new ie.B,xe=pe.pipe(function Ve(...u){return y=>(0,nt.x)(y,(0,ce.of)(...u))}(!0));Je.set(y,{transition$:pe,complete:()=>{Se.next(),Se.complete()},context:m});const We=function Rs(u){const{transitionDelay:y,transitionDuration:l}=window.getComputedStyle(u);return 1e3*(parseFloat(y)+parseFloat(l))}(y);return u.runOutsideAngular(()=>{const bt=(0,we.R)(y,"transitionend").pipe((0,$.Q)(xe),(0,te.p)(({target:Ot})=>Ot===y));wt((0,Re.O)(We+je).pipe((0,$.Q)(xe)),bt,Se).pipe((0,$.Q)(xe)).subscribe(()=>{Je.delete(y),u.run(()=>{H(),pe.next(),pe.complete()})})}),pe.asObservable()},jn=(u,y,l)=>{let{direction:h,maxSize:m,dimension:k}=l;const{classList:H}=u;function pe(){H.add("collapse"),"show"===h?H.add("show"):H.remove("show")}if(y)return m||(m=function qn(u,y){if(typeof navigator>"u")return"0px";const{classList:l}=u,h=l.contains("show");h||l.add("show"),u.style[y]="";const m=u.getBoundingClientRect()[y]+"px";return h||l.remove("show"),m}(u,k),l.maxSize=m,u.style[k]="show"!==h?m:"0px",H.remove("collapse"),H.remove("collapsing"),H.remove("show"),T(u),H.add("collapsing")),u.style[k]="show"===h?m:"0px",()=>{pe(),H.remove("collapsing"),u.style[k]=""};pe()};let en=(()=>{class u{constructor(){this._ngbConfig=(0,c.WQX)(Lr),this.horizontal=!1}get animation(){return this._animation??this._ngbConfig.animation}set animation(l){this._animation=l}static#e=this.\u0275fac=function(h){return new(h||u)};static#t=this.\u0275prov=c.jDH({token:u,factory:u.\u0275fac,providedIn:"root"})}return u})(),er=(()=>{class u{constructor(){this._config=(0,c.WQX)(en),this._element=(0,c.WQX)(c.aKT),this._zone=(0,c.WQX)(c.SKi),this.animation=this._config.animation,this._afterInit=!1,this._isCollapsed=!1,this.ngbCollapseChange=new c.bkB,this.horizontal=this._config.horizontal,this.shown=new c.bkB,this.hidden=new c.bkB}set collapsed(l){this._isCollapsed!==l&&(this._isCollapsed=l,this._afterInit&&this._runTransitionWithEvents(l,this.animation))}ngOnInit(){this._runTransition(this._isCollapsed,!1),this._afterInit=!0}toggle(l=this._isCollapsed){this.collapsed=!l,this.ngbCollapseChange.next(this._isCollapsed)}_runTransition(l,h){return Dt(this._zone,this._element.nativeElement,jn,{animation:h,runningTransition:"stop",context:{direction:l?"hide":"show",dimension:this.horizontal?"width":"height"}})}_runTransitionWithEvents(l,h){this._runTransition(l,h).subscribe(()=>{l?this.hidden.emit():this.shown.emit()})}static#e=this.\u0275fac=function(h){return new(h||u)};static#t=this.\u0275dir=c.FsC({type:u,selectors:[["","ngbCollapse",""]],hostVars:2,hostBindings:function(h,m){2&h&&c.AVh("collapse-horizontal",m.horizontal)},inputs:{animation:"animation",collapsed:[c.Mj6.None,"ngbCollapse","collapsed"],horizontal:"horizontal"},outputs:{ngbCollapseChange:"ngbCollapseChange",shown:"shown",hidden:"hidden"},exportAs:["ngbCollapse"],standalone:!0})}return u})(),Bn=0,Cr=(()=>{class u{constructor(){this._vcr=(0,c.WQX)(c.c1b),this._element=(0,c.WQX)(c.aKT).nativeElement,this._item=(0,c.WQX)(lr),this._viewRef=null}ngAfterContentChecked(){this._bodyTpl&&(this._item._shouldBeInDOM?this._createViewIfNotExists():this._destroyViewIfExists())}ngOnDestroy(){this._destroyViewIfExists()}_destroyViewIfExists(){this._viewRef&&(this._viewRef.destroy(),this._viewRef=null)}_createViewIfNotExists(){if(!this._viewRef){this._viewRef=this._vcr.createEmbeddedView(this._bodyTpl),this._viewRef.detectChanges();for(const l of this._viewRef.rootNodes)this._element.appendChild(l)}}static#e=this.\u0275fac=function(h){return new(h||u)};static#t=this.\u0275dir=c.FsC({type:u,selectors:[["","ngbAccordionBody",""]],contentQueries:function(h,m,k){if(1&h&&c.wni(k,c.C4Q,7),2&h){let H;c.mGM(H=c.lsd())&&(m._bodyTpl=H.first)}},hostVars:2,hostBindings:function(h,m){2&h&&c.AVh("accordion-body",!0)},standalone:!0})}return u})(),Un=(()=>{class u{constructor(){this.item=(0,c.WQX)(lr),this.ngbCollapse=(0,c.WQX)(er)}static#e=this.\u0275fac=function(h){return new(h||u)};static#t=this.\u0275dir=c.FsC({type:u,selectors:[["","ngbAccordionCollapse",""]],hostAttrs:["role","regi
1on"],hostVars:4,hostBindings:function(h,m){2&h&&(c.Mr5("id",m.item.collapseId),c.BMQ("aria-labelledby",m.item.toggleId),c.AVh("accordion-collapse",!0))},exportAs:["ngbAccordionCollapse"],standalone:!0,features:[c.nM4([er])]})}return u})(),ht=(()=>{class u{constructor(){this.item=(0,c.WQX)(lr),this.accordion=(0,c.WQX)(tr)}static#e=this.\u0275fac=function(h){return new(h||u)};static#t=this.\u0275dir=c.FsC({type:u,selectors:[["","ngbAccordionToggle",""]],hostVars:5,hostBindings:function(h,m){1&h&&c.bIt("click",function(){return!m.item.disabled&&m.accordion.toggle(m.item.id)}),2&h&&(c.Mr5("id",m.item.toggleId),c.BMQ("aria-controls",m.item.collapseId)("aria-expanded",!m.item.collapsed),c.AVh("collapsed",m.item.collapsed))},standalone:!0})}return u})(),xt=(()=>{class u{constructor(){this.item=(0,c.WQX)(lr)}static#e=this.\u0275fac=function(h){return new(h||u)};static#t=this.\u0275dir=c.FsC({type:u,selectors:[["button","ngbAccordionButton",""]],hostAttrs:["type","button"],hostVars:3,hostBindings:function(h,m){2&h&&(c.Mr5("disabled",m.item.disabled),c.AVh("accordion-button",!0))},standalone:!0,features:[c.nM4([ht])]})}return u})(),Hn=(()=>{class u{constructor(){this.item=(0,c.WQX)(lr)}static#e=this.\u0275fac=function(h){return new(h||u)};static#t=this.\u0275dir=c.FsC({type:u,selectors:[["","ngbAccordionHeader",""]],hostAttrs:["role","heading"],hostVars:4,hostBindings:function(h,m){2&h&&c.AVh("accordion-header",!0)("collapsed",m.item.collapsed)},standalone:!0})}return u})(),lr=(()=>{class u{constructor(){this._accordion=(0,c.WQX)(tr),this._cd=(0,c.WQX)(c.gRc),this._destroyRef=(0,c.WQX)(c.abz),this._collapsed=!0,this._id="ngb-accordion-item-"+Bn++,this._collapseAnimationRunning=!1,this.disabled=!1,this.show=new c.bkB,this.shown=new c.bkB,this.hide=new c.bkB,this.hidden=new c.bkB}set id(l){ci(l)&&""!==l&&(this._id=l)}set destroyOnHide(l){this._destroyOnHide=l}get destroyOnHide(){return void 0===this._destroyOnHide?this._accordion.destroyOnHide:this._destroyOnHide}set collapsed(l){l?this.collapse():this.expand()}get collapsed(){return this._collapsed}get id(){return`${this._id}`}get toggleId(){return`${this.id}-toggle`}get collapseId(){return`${this.id}-collapse`}get _shouldBeInDOM(){return!this.collapsed||this._collapseAnimationRunning||!this.destroyOnHide}ngAfterContentInit(){const{ngbCollapse:l}=this._collapse;l.animation=!1,l.collapsed=this.collapsed,l.animation=this._accordion.animation,l.hidden.pipe(Y(this._destroyRef)).subscribe(()=>{this._collapseAnimationRunning=!1,this.hidden.emit(),this._accordion.hidden.emit(this.id)}),l.shown.pipe(Y(this._destroyRef)).subscribe(()=>{this.shown.emit(),this._accordion.shown.emit(this.id)})}toggle(){this.collapsed=!this.collapsed}expand(){if(this.collapsed){if(!this._accordion._ensureCanExpand(this))return;this._collapsed=!1,this._cd.markForCheck(),this._cd.detectChanges(),this.show.emit(),this._accordion.show.emit(this.id),this._collapse.ngbCollapse.animation=this._accordion.animation,this._collapse.ngbCollapse.collapsed=!1}}collapse(){this.collapsed||(this._collapsed=!0,this._collapseAnimationRunning=!0,this._cd.markForCheck(),this.hide.emit(),this._accordion.hide.emit(this.id),this._collapse.ngbCollapse.animation=this._accordion.animation,this._collapse.ngbCollapse.collapsed=!0)}static#e=this.\u0275fac=function(h){return new(h||u)};static#t=this.\u0275dir=c.FsC({type:u,selectors:[["","ngbAccordionItem",""]],contentQueries:function(h,m,k){if(1&h&&c.wni(k,Un,7),2&h){let H;c.mGM(H=c.lsd())&&(m._collapse=H.first)}},hostVars:3,hostBindings:function(h,m){2&h&&(c.Mr5("id",m.id),c.AVh("accordion-item",!0))},inputs:{id:[c.Mj6.None,"ngbAccordionItem","id"],destroyOnHide:"destroyOnHide",disabled:"disabled",collapsed:"collapsed"},outputs:{show:"show",shown:"shown",hide:"hide",hidden:"hidden"},exportAs:["ngbAccordionItem"],standalone:!0})}return u})(),tr=(()=>{class u{constructor(){this._config=(0,c.WQX)(Wo),this._anItemWasAlreadyExpandedDuringInitialisation=!1,this.animation=this._config.animation,this.closeOthers=this._config.closeOthers,this.destroyOnHide=this._config.destroyOnHide,this.show=new c.bkB,this.shown=new c.bkB,this.hide=new c.bkB,this.hidden=new c.bkB}
1toggle(l){this._getItem(l)?.toggle()}expand(l){this._getItem(l)?.expand()}expandAll(){this._items&&(this.closeOthers?this._items.find(l=>!l.collapsed)||this._items.first.expand():this._items.forEach(l=>l.expand()))}collapse(l){this._getItem(l)?.collapse()}collapseAll(){this._items?.forEach(l=>l.collapse())}isExpanded(l){const h=this._getItem(l);return!!h&&!h.collapsed}_ensureCanExpand(l){return!(this.closeOthers&&(this._items?(this._items.find(h=>!h.collapsed&&l!==h)?.collapse(),0):this._anItemWasAlreadyExpandedDuringInitialisation||(this._anItemWasAlreadyExpandedDuringInitialisation=!0,0)))}_getItem(l){return this._items?.find(h=>h.id===l)}static#e=this.\u0275fac=function(h){return new(h||u)};static#t=this.\u0275dir=c.FsC({type:u,selectors:[["","ngbAccordion",""]],contentQueries:function(h,m,k){if(1&h&&c.wni(k,lr,4),2&h){let H;c.mGM(H=c.lsd())&&(m._items=H)}},hostVars:2,hostBindings:function(h,m){2&h&&c.AVh("accordion",!0)},inputs:{animation:"animation",closeOthers:"closeOthers",destroyOnHide:"destroyOnHide"},outputs:{show:"show",shown:"shown",hide:"hide",hidden:"hidden"},exportAs:["ngbAccordion"],standalone:!0})}return u})(),io=(()=>{class u{static#e=this.\u0275fac=function(h){return new(h||u)};static#t=this.\u0275mod=c.$C({type:u});static#n=this.\u0275inj=c.G2t({})}return u})(),Jt=(()=>{class u{static#e=this.\u0275fac=function(h){return new(h||u)};static#t=this.\u0275mod=c.$C({type:u});static#n=this.\u0275inj=c.G2t({})}return u})(),hn=(()=>{class u{static#e=this.\u0275fac=function(h){return new(h||u)};static#t=this.\u0275mod=c.$C({type:u});static#n=this.\u0275inj=c.G2t({})}return u})(),sa=(()=>{class u{static#e=this.\u0275fac=function(h){return new(h||u)};static#t=this.\u0275mod=c.$C({type:u});static#n=this.\u0275inj=c.G2t({})}return u})();class nr{static from(y){return y instanceof nr?y:y?new nr(y.year,y.month,y.day):null}constructor(y,l,h){this.year=li(y)?y:null,this.month=li(l)?l:null,this.day=li(h)?h:null}equals(y){return null!=y&&this.year===y.year&&this.month===y.month&&this.day===y.day}before(y){return!!y&&(this.year===y.year?this.month===y.month?this.day!==y.day&&this.day<y.day:this.month<y.month:this.year<y.year)}after(y){return!!y&&(this.year===y.year?this.month===y.month?this.day!==y.day&&this.day>y.day:this.month>y.month:this.year>y.year)}}function oo(u){return new nr(u.getFullYear(),u.getMonth()+1,u.getDate())}function mo(u){const y=new Date(u.year,u.month-1,u.day,12);return isNaN(y.getTime())||y.setFullYear(u.year),y}let ur=(()=>{class u{static#e=this.\u0275fac=function(h){return new(h||u)};static#t=this.\u0275prov=c.jDH({token:u,factory:()=>function Yo(){return new fc}(),providedIn:"root"})}return u})(),fc=(()=>{class u extends ur{getDaysPerWeek(){return 7}getMonths(){return[1,2,3,4,5,6,7,8,9,10,11,12]}getWeeksPerMonth(){return 6}getNext(l,h="d",m=1){let k=mo(l),H=!0,pe=k.getMonth();switch(h){case"y":k.setFullYear(k.getFullYear()+m);break;case"m":pe+=m,k.setMonth(pe),pe%=12,pe<0&&(pe+=12);break;case"d":k.setDate(k.getDate()+m),H=!1;break;default:return l}return H&&k.getMonth()!==pe&&k.setDate(0),oo(k)}getPrev(l,h="d",m=1){return this.getNext(l,h,-m)}getWeekday(l){let m=mo(l).getDay();return 0===m?7:m}getWeekNumber(l,h){7===h&&(h=0);const H=mo(l[(11-h)%7]);H.setDate(H.getDate()+4-(H.getDay()||7));const pe=H.getTime();return H.setMonth(0),H.setDate(1),Math.floor(Math.round((pe-H.getTime())/864e5)/7)+1}getToday(){return oo(new Date)}isValid(l){if(!(l&&li(l.year)&&li(l.month)&&li(l.day)&&0!==l.year))return!1;const h=mo(l);return!isNaN(h.getTime())&&h.getFullYear()===l.year&&h.getMonth()+1===l.month&&h.getDate()===l.day}static#e=this.\u0275fac=(()=>{let l;return function(m){return(l||(l=c.xGo(u)))(m||u)}})();static#t=this.\u0275prov=c.jDH({token:u,factory:u.\u0275fac})}return u})();function Vr(u,y){return!function pc(u,y){return!u&&!y||!!u&&!!y&&u.equals(y)}(u,y)}function Nr(u,y){return!(!u&&!y||u&&y&&u.year===y.year&&u.month===y.month)}function aa(u,y,l){return u&&y&&u.before(y)?y:u&&l&&u.after(l)?l:u||null}function xi(u,y){const{minDate:l,maxDate:h,disabled:m,markDisabled:k}=y;return!(null==u||m||k&&k(u,{year:u.year,month:u.month})||l&&u.before(l)||h&&u.after(h))}let vs=(()=>{class u{getMonthLabel(l){return`${this.getMonthFullName(l.month,l.year)} ${this.getYearNumerals(l.year)}`}getDayNumerals(l){return`${l.day}`}
1getWeekNumerals(l){return`${l}`}getYearNumerals(l){return`${l}`}getWeekLabel(){return""}static#e=this.\u0275fac=function(h){return new(h||u)};static#t=this.\u0275prov=c.jDH({token:u,factory:()=>new ou,providedIn:"root"})}return u})(),ou=(()=>{class u extends vs{constructor(){super(...arguments),this._locale=(0,c.WQX)(c.xe9),this._monthsShort=(0,ze.tL)(this._locale,ze.oV.Standalone,ze.cH.Abbreviated),this._monthsFull=(0,ze.tL)(this._locale,ze.oV.Standalone,ze.cH.Wide)}getWeekdayLabel(l,h){const m=(0,ze.XO)(this._locale,ze.oV.Standalone,void 0===h?ze.cH.Short:h);return m.map((H,pe)=>m[(pe+1)%7])[l-1]||""}getMonthShortName(l){return this._monthsShort[l-1]||""}getMonthFullName(l){return this._monthsFull[l-1]||""}getDayAriaLabel(l){const h=new Date(l.year,l.month-1,l.day);return(0,ze.Yq)(h,"fullDate",this._locale)}static#e=this.\u0275fac=(()=>{let l;return function(m){return(l||(l=c.xGo(u)))(m||u)}})();static#t=this.\u0275prov=c.jDH({token:u,factory:u.\u0275fac})}return u})(),$c=(()=>{class u{constructor(){this._VALIDATORS={dayTemplateData:l=>{if(this._state.dayTemplateData!==l)return{dayTemplateData:l}},displayMonths:l=>{if(li(l=pi(l))&&l>0&&this._state.displayMonths!==l)return{displayMonths:l}},disabled:l=>{if(this._state.disabled!==l)return{disabled:l}},firstDayOfWeek:l=>{if(li(l=pi(l))&&l>=0&&this._state.firstDayOfWeek!==l)return{firstDayOfWeek:l}},focusVisible:l=>{if(this._state.focusVisible!==l&&!this._state.disabled)return{focusVisible:l}},markDisabled:l=>{if(this._state.markDisabled!==l)return{markDisabled:l}},maxDate:l=>{const h=this.toValidDate(l,null);if(Vr(this._state.maxDate,h))return{maxDate:h}},minDate:l=>{const h=this.toValidDate(l,null);if(Vr(this._state.minDate,h))return{minDate:h}},navigation:l=>{if(this._state.navigation!==l)return{navigation:l}},outsideDays:l=>{if(this._state.outsideDays!==l)return{outsideDays:l}},weekdays:l=>{const h=!0===l||!1===l?ze.cH.Short:l,m=!0!==l&&!1!==l||l;if(this._state.weekdayWidth!==h||this._state.weekdaysVisible!==m)return{weekdayWidth:h,weekdaysVisible:m}}},this._calendar=(0,c.WQX)(ur),this._i18n=(0,c.WQX)(vs),this._model$=new ie.B,this._dateSelect$=new ie.B,this._state={dayTemplateData:null,markDisabled:null,maxDate:null,minDate:null,disabled:!1,displayMonths:1,firstDate:null,firstDayOfWeek:1,lastDate:null,focusDate:null,focusVisible:!1,months:[],navigation:"select",outsideDays:"visible",prevDisabled:!1,nextDisabled:!1,selectedDate:null,selectBoxes:{years:[],months:[]},weekdayWidth:ze.cH.Short,weekdaysVisible:!0}}get model$(){return this._model$.pipe((0,te.p)(l=>l.months.length>0))}get dateSelect$(){return this._dateSelect$.pipe((0,te.p)(l=>null!==l))}set(l){let h=Object.keys(l).map(m=>this._VALIDATORS[m](l[m])).reduce((m,k)=>({...m,...k}),{});Object.keys(h).length>0&&this._nextState(h)}focus(l){const h=this.toValidDate(l,null);null!=h&&!this._state.disabled&&Vr(this._state.focusDate,h)&&this._nextState({focusDate:l})}focusSelect(){xi(this._state.focusDate,this._state)&&this.select(this._state.focusDate,{emitEvent:!0})}open(l){const h=this.toValidDate(l,this._calendar.getToday());null!=h&&!this._state.disabled&&(!this._state.firstDate||Nr(this._state.firstDate,h))&&this._nextState({firstDate:h})}select(l,h={}){const m=this.toValidDate(l,null);null!=m&&!this._state.disabled&&(Vr(this._state.selectedDate,m)&&this._nextState({selectedDate:m}),h.emitEvent&&xi(m,this._state)&&this._dateSelect$.next(m))}toValidDate(l,h){const m=nr.from(l);return void 0===h&&(h=this._calendar.getToday()),this._calendar.isValid(m)?m:h}getMonth(l){for(let h of this._state.months)if(l.month===h.number&&l.year===h.year)return h;throw new Error(`month ${l.month} of year ${l.year} not found`)}_nextState(l){const h=this._updateState(l);this._patchContexts(h),this._state=h,this._model$.next(this._state)}_patchContexts(l){const{months:h,displayMonths:m,selectedDate:k,focusDate:H,focusVisible:pe,disabled:Se,outsideDays:xe}=l;l.months.forEach(We=>{We.weeks.forEach(bt=>{bt.days.forEach(Et=>{H&&(Et.context.focused=H.equals(Et.date)&&pe),Et.tabindex=!Se&&H&&Et.date.equals(H)&&H.month===We.number?0:-1,!0===Se&&(Et.context.disabled=!0),void 0!==k&&(Et.context.selected=null!==k&&k.equals(Et.date)),We.number!==Et.date.month&&(Et.hidden="hidden"===xe||"collapsed"===xe||m>1&&Et.date.after(h[0].firstDate)&&Et.date.before(h[m-1].lastDate))})})})}_updateState(l){const h=Object.assign({},this._state,l);let m=h.firstDate;if(("minDate"in l||"maxDate"in l)&&(function Gt(u,y){if(y&&u&&y.before(u))throw new Error(`'maxDate' ${y} should be greater than 'minDate' ${u}`)}(h.minDate,h.maxDate),h.focusDate=aa(h.focusDate,h.minDate,h.maxDate),h.firstDate=aa(h.firstDate,h.minDate,h.maxDate),m=h.focusDate),"disabled"in l&&(h.focusVisible=!1),"selectedDate"in l&&0===this._state.months.length&&(m=h.selectedDate),"focu
1sVisible"in l||"focusDate"in l&&(h.focusDate=aa(h.focusDate,h.minDate,h.maxDate),m=h.focusDate,0!==h.months.length&&h.focusDate&&!h.focusDate.before(h.firstDate)&&!h.focusDate.after(h.lastDate)))return h;if("firstDate"in l&&(h.firstDate=aa(h.firstDate,h.minDate,h.maxDate),m=h.firstDate),m){const H=function jc(u,y,l,h,m){const{displayMonths:k,months:H}=l,pe=H.splice(0,H.length);return Array.from({length:k},(xe,We)=>{const bt=Object.assign(u.getNext(y,"m",We),{day:1});if(H[We]=null,!m){const Et=pe.findIndex(Ot=>Ot.firstDate.equals(bt));-1!==Et&&(H[We]=pe.splice(Et,1)[0])}return bt}).forEach((xe,We)=>{null===H[We]&&(H[We]=function Cl(u,y,l,h,m={}){const{dayTemplateData:k,minDate:H,maxDate:pe,firstDayOfWeek:Se,markDisabled:xe,outsideDays:We,weekdayWidth:bt,weekdaysVisible:Et}=l,Ot=u.getToday();m.firstDate=null,m.lastDate=null,m.number=y.month,m.year=y.year,m.weeks=m.weeks||[],m.weekdays=m.weekdays||[],y=function mc(u,y,l){const h=u.getDaysPerWeek(),m=new nr(y.year,y.month,1),k=u.getWeekday(m)%h;return u.getPrev(m,"d",(h+k-l)%h)}(u,y,Se),Et||(m.weekdays.length=0);for(let pn=0;pn<u.getWeeksPerMonth();pn++){let tn=m.weeks[pn];tn||(tn=m.weeks[pn]={number:0,days:[],collapsed:!0});const Sn=tn.days;for(let Kn=0;Kn<u.getDaysPerWeek();Kn++){0===pn&&Et&&(m.weekdays[Kn]=h.getWeekdayLabel(u.getWeekday(y),bt));const pt=new nr(y.year,y.month,y.day),kt=u.getNext(pt),St=h.getDayAriaLabel(pt);let Ft=!!(H&&pt.before(H)||pe&&pt.after(pe));!Ft&&xe&&(Ft=xe(pt,{month:m.number,year:m.year}));let ln=pt.equals(Ot),wn=k?k(pt,{month:m.number,year:m.year}):void 0;null===m.firstDate&&pt.month===m.number&&(m.firstDate=pt),pt.month===m.number&&kt.month!==m.number&&(m.lastDate=pt);let kn=Sn[Kn];kn||(kn=Sn[Kn]={}),kn.date=pt,kn.context=Object.assign(kn.context||{},{$implicit:pt,date:pt,data:wn,currentMonth:m.number,currentYear:m.year,disabled:Ft,focused:!1,selected:!1,today:ln}),kn.tabindex=-1,kn.ariaLabel=St,kn.hidden=!1,y=kt}tn.number=u.getWeekNumber(Sn.map(Kn=>Kn.date),Se),tn.collapsed="collapsed"===We&&Sn[0].date.month!==m.number&&Sn[Sn.length-1].date.month!==m.number}return m}(u,xe,l,h,pe.shift()||{}))}),H}(this._calendar,m,h,this._i18n,"dayTemplateData"in l||"firstDayOfWeek"in l||"markDisabled"in l||"minDate"in l||"maxDate"in l||"disabled"in l||"outsideDays"in l||"weekdaysVisible"in l);h.months=H,h.firstDate=H[0].firstDate,h.lastDate=H[H.length-1].lastDate,"selectedDate"in l&&!xi(h.selectedDate,h)&&(h.selectedDate=null),"firstDate"in l&&(!h.focusDate||h.focusDate.before(h.firstDate)||h.focusDate.after(h.lastDate))&&(h.focusDate=m);const pe=!this._state.firstDate||this._state.firstDate.year!==h.firstDate.year,Se=!this._state.firstDate||this._state.firstDate.month!==h.firstDate.month;"select"===h.navigation?(("minDate"in l||"maxDate"in l||0===h.selectBoxes.years.length||pe)&&(h.selectBoxes.years=function vl(u,y,l){if(!u)return[];const h=y?Math.max(y.year,u.year-500):u.year-10,k=(l?Math.min(l.year,u.year+500):u.year+10)-h+1,H=Array(k);for(let pe=0;pe<k;pe++)H[pe]=h+pe;return H}(h.firstDate,h.minDate,h.maxDate)),("minDate"in l||"maxDate"in l||0===h.selectBoxes.months.length||pe)&&(h.selectBoxes.months=function gc(u,y,l,h){if(!y)return[];let m=u.getMonths(y.year);if(l&&y.year===l.year){const k=m.findIndex(H=>H===l.month);m=m.slice(k)}if(h&&y.year===h.year){const k=m.findIndex(H=>H===h.month);m=m.slice(0,k+1)}return m}(this._calendar,h.firstDate,h.minDate,h.maxDate))):h.selectBoxes={years:[],months:[]},("arrows"===h.navigation||"select"===h.navigation)&&(Se||pe||"minDate"in l||"maxDate"in l||"disabled"in l)&&(h.prevDisabled=h.disabled||function xa(u,y,l){const h=Object.assign(u.getPrev(y,"m"),{day:1});return null!=l&&(h.year===l.year&&h.month<l.month||h.year<l.year&&1===l.month)}(this._calendar,h.firstDate,h.minDate),h.nextDisabled=h.disabled||function iu(u,y,l){const h=Object.assign(u.getNext(y,"m"),{day:1});return null!=l&&h.after(l)}(this._calendar,h.lastDate,h.maxDate))}return h}static#e=this.\u0275fac=function(h){return new(h||u)};static#t=this.\u0275prov=c.jDH({token:u,factory:u.\u0275fac})}return u})();var Gc=function(u){return u[u.PREV=0]="PREV",u[u.NEXT=1]="NEXT",u}(Gc||{});let _c=(()=>{class u{constructor(){this.displayMonths=1,this.firstDayOfWeek=1,this.navigation="select",this.outsideDays="visible",this.showWeekNumbers=!1,this.weekdays=ze.cH.Short}static#e=this.\u0275fac=function(h){return new(h||u)};static#t=this.\u0275prov=c.jDH({token:u,factory:u.\u0275fac,providedIn:"root"})}return u})(),El=(()=>{class u{static#e=this.\u0275fac=function(h){return new(h||u)};static#t=this.\u0275prov=c.jDH({token:u,factory:()=>function su(){return new vd}(),providedIn:"root"})}return u})(),vd=(()=>
1{class u extends El{fromModel(l){return l&&li(l.year)&&li(l.month)&&li(l.day)?{year:l.year,month:l.month,day:l.day}:null}toModel(l){return l&&li(l.year)&&li(l.month)&&li(l.day)?{year:l.year,month:l.month,day:l.day}:null}static#e=this.\u0275fac=(()=>{let l;return function(m){return(l||(l=c.xGo(u)))(m||u)}})();static#t=this.\u0275prov=c.jDH({token:u,factory:u.\u0275fac})}return u})();var _r=function(u){return u[u.Tab=9]="Tab",u[u.Enter=13]="Enter",u[u.Escape=27]="Escape",u[u.Space=32]="Space",u[u.PageUp=33]="PageUp",u[u.PageDown=34]="PageDown",u[u.End=35]="End",u[u.Home=36]="Home",u[u.ArrowLeft=37]="ArrowLeft",u[u.ArrowUp=38]="ArrowUp",u[u.ArrowRight=39]="ArrowRight",u[u.ArrowDown=40]="ArrowDown",u}(_r||{});let Cd=(()=>{class u{processKey(l,h){const{state:m,calendar:k}=h;switch(l.which){case _r.PageUp:h.focusDate(k.getPrev(m.focusedDate,l.shiftKey?"y":"m",1));break;case _r.PageDown:h.focusDate(k.getNext(m.focusedDate,l.shiftKey?"y":"m",1));break;case _r.End:h.focusDate(l.shiftKey?m.maxDate:m.lastDate);break;case _r.Home:h.focusDate(l.shiftKey?m.minDate:m.firstDate);break;case _r.ArrowLeft:h.focusDate(k.getPrev(m.focusedDate,"d",1));break;case _r.ArrowUp:h.focusDate(k.getPrev(m.focusedDate,"d",k.getDaysPerWeek()));break;case _r.ArrowRight:h.focusDate(k.getNext(m.focusedDate,"d",1));break;case _r.ArrowDown:h.focusDate(k.getNext(m.focusedDate,"d",k.getDaysPerWeek()));break;case _r.Enter:case _r.Space:h.focusSelect();break;default:return}l.preventDefault(),l.stopPropagation()}static#e=this.\u0275fac=function(h){return new(h||u)};static#t=this.\u0275prov=c.jDH({token:u,factory:u.\u0275fac,providedIn:"root"})}return u})(),Ed=(()=>{class u{constructor(){this.i18n=(0,c.WQX)(vs)}isMuted(){return!this.selected&&(this.date.month!==this.currentMonth||this.disabled)}static#e=this.\u0275fac=function(h){return new(h||u)};static#t=this.\u0275cmp=c.VBU({type:u,selectors:[["","ngbDatepickerDayView",""]],hostAttrs:[1,"btn-light"],hostVars:10,hostBindings:function(h,m){2&h&&c.AVh("bg-primary",m.selected)("text-white",m.selected)("text-muted",m.isMuted())("outside",m.isMuted())("active",m.focused)},inputs:{currentMonth:"currentMonth",date:"date",disabled:"disabled",focused:"focused",selected:"selected"},standalone:!0,features:[c.aNF],attrs:Uo,decls:1,vars:1,template:function(h,m){1&h&&c.EFF(0),2&h&&c.JRh(m.i18n.getDayNumerals(m.date))},styles:["[ngbDatepickerDayView]{text-align:center;width:2rem;height:2rem;line-height:2rem;border-radius:.25rem;background:transparent}[ngbDatepickerDayView]:hover:not(.bg-primary),[ngbDatepickerDayView].active:not(.bg-primary){background-color:var(--bs-tertiary-bg);outline:1px solid var(--bs-border-color)}[ngbDatepickerDayView].outside{opacity:.5}\n"],encapsulation:2,changeDetection:0})}return u})(),bd=(()=>{class u{constructor(){this._month=-1,this._year=-1,this.i18n=(0,c.WQX)(vs),this.select=new c.bkB}changeMonth(l){this.select.emit(new nr(this.date.year,pi(l),1))}changeYear(l){this.select.emit(new nr(pi(l),this.date.month,1))}ngAfterViewChecked(){this.date&&(this.date.month!==this._month&&(this._month=this.date.month,this.monthSelect.nativeElement.value=`${this._month}`),this.date.year!==this._year&&(this._year=this.date.year,this.yearSelect.nativeElement.value=`${this._year}`))}static#e=this.\u0275fac=function(h){return new(h||u)};static#t=this.\u0275cmp=c.VBU({type:u,selectors:[["ngb-datepicker-navigation-select"]],viewQuery:function(h,m){if(1&h&&(c.GBs(Ho,7,c.aKT),c.GBs(oi,7,c.aKT)),2&h){let k;c.mGM(k=c.lsd())&&(m.monthSelect=k.first),c.mGM(k=c.lsd())&&(m.yearSelect=k.first)}},inputs:{date:"date",disabled:"disabled",months:"months",years:"years"},outputs:{select:"select"},standalone:!0,features:[c.aNF],decls:8,vars:2,consts:()=>{let l,h,m,k;return l=$localize`:@@ngb.datepicker.select-month:Select month`,h=$localize`:@@ngb.datepicker.select-month:Select month`,m=$localize`:@@ngb.datepicker.select-year:Select year`,k=$localize`:@@ngb.datepicker.select-year:Select year`,[["month",""],["year",""],["aria-label",l,"title",h,1,"form-select",3,"change","disabled"],[3,"value"],["aria-label",m,"title",k,1,"form-select",3,"change","disabled"]]},template:function(h,m){if(1&h){const k=c.RV6();c.j41(0,"select",2,0),c.bIt("change",function(pe){return c.eBV(k),c.Njj(m.changeMonth(pe.target.value))}),c.Z7z(2,cs,2,3,"option",3,c.fX1),c.k0s(),c.j41(4,"select",4,1),c.bIt("change",function(pe){return c.eBV(k),c.Njj(m.changeYear(pe.target.value))}),c.Z7z(6,fo,2,2,"option",3,c.fX1),c.k0s()}2&h&&(c.Y8G("disabled",m.disabled),c.R7$(2),c.Dyx(m.months),c.R7$(2),c.Y8G("disabled",m.disabled),c.R7$(2),c.Dyx(m.years))},styles:["ngb-datepicker-navigation-select>.form-select{flex:1 1 auto;padding:0 .5rem;font-size:.875rem;height:1.85rem}ngb-datepicker-navigation-select>.form-select:focus{z-index:1}ngb-datepicker-navigation-select>.form-select::-ms-value{background-color:transparent!important}\n"],encapsulation:2,changeDetection:0})}return u})(),C=(()=>{class u{constructor(){this.navigation=Gc,this.i18n=(0,c.WQX)(vs),this.months=[],this.navigate=new c.bkB,this.select=new c.bkB}
1onClickPrev(l){l.currentTarget.focus(),this.navigate.emit(this.navigation.PREV)}onClickNext(l){l.currentTarget.focus(),this.navigate.emit(this.navigation.NEXT)}static#e=this.\u0275fac=function(h){return new(h||u)};static#t=this.\u0275cmp=c.VBU({type:u,selectors:[["ngb-datepicker-navigation"]],inputs:{date:"date",disabled:"disabled",months:"months",showSelect:"showSelect",prevDisabled:"prevDisabled",nextDisabled:"nextDisabled",selectBoxes:"selectBoxes"},outputs:{navigate:"navigate",select:"select"},standalone:!0,features:[c.aNF],decls:8,vars:4,consts:()=>{let l,h,m,k;return l=$localize`:@@ngb.datepicker.previous-month:Previous month`,h=$localize`:@@ngb.datepicker.previous-month:Previous month`,m=$localize`:@@ngb.datepicker.next-month:Next month`,k=$localize`:@@ngb.datepicker.next-month:Next month`,[[1,"ngb-dp-arrow","ngb-dp-arrow-prev"],["type","button","aria-label",l,"title",h,1,"btn","btn-link","ngb-dp-arrow-btn",3,"click","disabled"],[1,"ngb-dp-navigation-chevron"],[1,"ngb-dp-navigation-select",3,"date","disabled","months","years"],[1,"ngb-dp-arrow","ngb-dp-arrow-next"],["type","button","aria-label",m,"title",k,1,"btn","btn-link","ngb-dp-arrow-btn",3,"click","disabled"],[1,"ngb-dp-navigation-select",3,"select","date","disabled","months","years"],[1,"ngb-dp-arrow"],[1,"ngb-dp-month-name"]]},template:function(h,m){1&h&&(c.j41(0,"div",0)(1,"button",1),c.bIt("click",function(H){return m.onClickPrev(H)}),c.nrm(2,"span",2),c.k0s()(),c.DNE(3,Ci,1,4,"ngb-datepicker-navigation-select",3)(4,Ei,2,0),c.j41(5,"div",4)(6,"button",5),c.bIt("click",function(H){return m.onClickNext(H)}),c.nrm(7,"span",2),c.k0s()()),2&h&&(c.R7$(),c.Y8G("disabled",m.prevDisabled),c.R7$(2),c.vxM(3,m.showSelect?3:-1),c.R7$(),c.vxM(4,m.showSelect?-1:4),c.R7$(2),c.Y8G("disabled",m.nextDisabled))},dependencies:[bd],styles:["ngb-datepicker-navigation{display:flex;align-items:center}.ngb-dp-navigation-chevron{border-style:solid;border-width:.2em .2em 0 0;display:inline-block;width:.75em;height:.75em;margin-left:.25em;margin-right:.15em;transform:rotate(-135deg)}.ngb-dp-arrow{display:flex;flex:1 1 auto;padding-right:0;padding-left:0;margin:0;width:2rem;height:2rem}.ngb-dp-arrow-next{justify-content:flex-end}.ngb-dp-arrow-next .ngb-dp-navigation-chevron{transform:rotate(45deg);margin-left:.15em;margin-right:.25em}.ngb-dp-arrow-btn{padding:0 .25rem;margin:0 .5rem;border:none;background-color:transparent;z-index:1}.ngb-dp-arrow-btn:focus{outline-width:1px;outline-style:auto}@media all and (-ms-high-contrast: none),(-ms-high-contrast: active){.ngb-dp-arrow-btn:focus{outline-style:solid}}.ngb-dp-month-name{font-size:larger;height:2rem;line-height:2rem;text-align:center}.ngb-dp-navigation-select{display:flex;flex:1 1 9rem}\n"],encapsulation:2,changeDetection:0})}return u})(),S=(()=>{class u{constructor(){this.templateRef=(0,c.WQX)(c.C4Q)}static#e=this.\u0275fac=function(h){return new(h||u)};static#t=this.\u0275dir=c.FsC({type:u,selectors:[["ng-template","ngbDatepickerContent",""]],standalone:!0})}return u})(),E=(()=>{class u{constructor(){this._keyboardService=(0,c.WQX)(Cd),this._service=(0,c.WQX)($c),this.i18n=(0,c.WQX)(vs),this.datepicker=(0,c.WQX)(A)}set month(l){this.viewModel=this._service.getMonth(l)}onKeyDown(l){this._keyboardService.processKey(l,this.datepicker)}doSelect(l){!l.context.disabled&&!l.hidden&&this.datepicker.onDateSelect(l.date)}static#e=this.\u0275fac=function(h){return new(h||u)};static#t=this.\u0275cmp=c.VBU({type:u,selectors:[["ngb-datepicker-month"]],hostAttrs:["role","grid"],hostBindings:function(h,m){1&h&&c.bIt("keydown",function(H){return m.onKeyDown(H)})},inputs:{month:"month"},standalone:!0,features:[c.aNF],decls:3,vars:1,consts:[["role","row",1,"ngb-dp-week","ngb-dp-weekdays"],[1,"ngb-dp-weekday","ngb-dp-showweek","small"],["role","columnheader",1,"ngb-dp-weekday","small"],["role","row",1,"ngb-dp-week"],[1,"ngb-dp-week-number","small","text-muted"],["role","gridcell",1,"ngb-dp-day",3,"disabled","tabindex","hidden","ngb-dp-today"],["role","gridcell",1,"ngb-dp-day",3,"click","tabindex"],[3,"ngTemplateOutlet","ngTemplateOutletContext"]],template:function(h,m){1&h&&(c.DNE(0,ki,4,1,"div",0),c.Z7z(1,jo,1,1,null,null,c.fX1)),2&h&&(c.vxM(0,m.viewModel.weekdays.length>
10?0:-1),c.R7$(),c.Dyx(m.viewModel.weeks))},dependencies:[ze.T3],styles:['ngb-datepicker-month{display:block}.ngb-dp-weekday,.ngb-dp-week-number{line-height:2rem;text-align:center;font-style:italic}.ngb-dp-weekday{color:var(--bs-info)}.ngb-dp-week{border-radius:.25rem;display:flex}.ngb-dp-weekdays{border-bottom:1px solid var(--bs-border-color);border-radius:0;background-color:var(--bs-tertiary-bg)}.ngb-dp-day,.ngb-dp-weekday,.ngb-dp-week-number{width:2rem;height:2rem}.ngb-dp-day{cursor:pointer}.ngb-dp-day.disabled,.ngb-dp-day.hidden{cursor:default;pointer-events:none}.ngb-dp-day[tabindex="0"]{z-index:1}\n'],encapsulation:2})}return u})(),A=(()=>{class u{constructor(){this.injector=(0,c.WQX)(c.zZn),this._service=(0,c.WQX)($c),this._calendar=(0,c.WQX)(ur),this._i18n=(0,c.WQX)(vs),this._config=(0,c.WQX)(_c),this._nativeElement=(0,c.WQX)(c.aKT).nativeElement,this._ngbDateAdapter=(0,c.WQX)(El),this._ngZone=(0,c.WQX)(c.SKi),this._destroyRef=(0,c.WQX)(c.abz),this._controlValue=null,this._publicState={},this.dayTemplate=this._config.dayTemplate,this.dayTemplateData=this._config.dayTemplateData,this.displayMonths=this._config.displayMonths,this.firstDayOfWeek=this._config.firstDayOfWeek,this.footerTemplate=this._config.footerTemplate,this.markDisabled=this._config.markDisabled,this.maxDate=this._config.maxDate,this.minDate=this._config.minDate,this.navigation=this._config.navigation,this.outsideDays=this._config.outsideDays,this.showWeekNumbers=this._config.showWeekNumbers,this.startDate=this._config.startDate,this.weekdays=this._config.weekdays,this.navigate=new c.bkB,this.dateSelect=new c.bkB,this.onChange=h=>{},this.onTouched=()=>{};const l=(0,c.WQX)(c.gRc);this._service.dateSelect$.pipe(Y()).subscribe(h=>{this.dateSelect.emit(h)}),this._service.model$.pipe(Y()).subscribe(h=>{const m=h.firstDate,k=this.model?this.model.firstDate:null;this._publicState={maxDate:h.maxDate,minDate:h.minDate,firstDate:h.firstDate,lastDate:h.lastDate,focusedDate:h.focusDate,months:h.months.map(We=>We.firstDate)};let H=!1;if(!m.equals(k)&&(this.navigate.emit({current:k?{year:k.year,month:k.month}:null,next:{year:m.year,month:m.month},preventDefault:()=>H=!0}),H&&null!==k))return void this._service.open(k);const pe=h.selectedDate,Se=h.focusDate,xe=this.model?this.model.focusDate:null;this.model=h,Vr(pe,this._controlValue)&&(this._controlValue=pe,this.onTouched(),this.onChange(this._ngbDateAdapter.toModel(pe))),Vr(Se,xe)&&xe&&h.focusVisible&&this.focus(),l.markForCheck()})}get state(){return this._publicState}get calendar(){return this._calendar}get i18n(){return this._i18n}focusDate(l){this._service.focus(nr.from(l))}focusSelect(){this._service.focusSelect()}focus(){this._ngZone.onStable.asObservable().pipe((0,_e.s)(1)).subscribe(()=>this._nativeElement.querySelector('div.ngb-dp-day[tabindex="0"]')?.focus())}navigateTo(l){this._service.open(nr.from(l?l.day?l:{...l,day:1}:null))}ngAfterViewInit(){this._ngZone.runOutsideAngular(()=>{(function tt(...u){const y=(0,ne.lI)(u),l=(0,ne.R0)(u,1/0),h=u;return h.length?1===h.length?(0,Be.Tg)(h[0]):(0,et.U)(l)((0,F.H)(h,y)):De.w})((0,we.R)(this._contentEl.nativeElement,"focusin"),(0,we.R)(this._contentEl.nativeElement,"focusout")).pipe((0,te.p)(m=>{const k=m.target,H=m.relatedTarget;return!(k?.classList.contains("ngb-dp-day")&&H?.classList.contains("ngb-dp-day")&&this._nativeElement.contains(k)&&this._nativeElement.contains(H))}),Y(this._destroyRef)).subscribe(({type:m})=>this._ngZone.run(()=>this._service.set({focusVisible:"focusin"===m})))})}ngOnInit(){if(void 0===this.model){const l={};["dayTemplateData","displayMonths","markDisabled","firstDayOfWeek","navigation","minDate","maxDate","outsideDays","weekdays"].forEach(h=>l[h]=this[h]),this._service.set(l),this.navigateTo(this.startDate)}this.dayTemplate||(this.dayTemplate=this._defaultDayTemplate)}ngOnChanges(l){const h={};if(["dayTemplateData","displayMonths","markDisabled","firstDayOfWeek","navigation","minDate","maxDate","outsideDays","weekdays"].filter(m=>m in l).forEach(m=>h[m]=this[m]),this._service.set(h),"startDate"in l){const{currentValue:m,previousValue:k}=l.startDate;Nr(k,m)&&this.navigateTo(this.startDate)}}onDateSelect(l){this._service.focus(l),this._service.select(l,{emitEvent:!0})}onNavigateDateSelect(l){this._service.open(l)}onNavigateEvent(l){switch(l){case Gc.PREV:this._service.open(this._calendar.getPrev(this.model.firstDate,"m",1));break;case Gc.NEXT:this._service.open(this._calendar.getNext(this.model.firstDate,"m",1))}}registerOnChange(l){this.onChange=l}registerOnTouched(l){this.onTouched=l}setDisabledState(l){this._service.set({disabled:l})}writeValue(l){this._controlValue=nr.from(this._ngbDateAdapter.fromModel(l)),this._service.select(this._controlValue)}static#e=this.\u0275fac=function(h){return new(h||u)};static#t=this.\u0275cmp=c.VBU({type:u,selectors:[["ngb-datepicker"]],contentQueries:function(h,m,k){if(1&h&&c.wni(k,S,7),2&h){let H;c.mGM(H=c.lsd())&&(m.contentTemplateFromContent=H.first)}},viewQuery:function(h,m){if(1&h&&(c.GBs(to,7),c.GBs(Lc,7)),2&h){let k;c.mGM(k=c.lsd())&&(m._defaultDayTemplate=k.first),c.mGM(k=c.lsd())&&(m._contentEl=k.first)}},hostVars:2,hostBindings:function(h,m){2&h&&c.AVh("disabled",m.model.disabled)},inputs:{contentTemplate:"contentTemplate",dayTemplate:"dayTemplate",dayTemplateData:"dayTemplateData",displayMonths:"displayMonths",firstDayOfWeek:"firstDayOfWeek",footerTemplate:"footerTemplate",markDisabled:"markDisabled",maxDate:"maxDate",minDate:"minDate",navigation:"navigation",outsideDays:"outsideDays",showWeekNumbers:"showWeekNumbers",startDate:"startDate",weekdays:"weekdays"},outputs:{navigate:"navigate",dateSelect:"dateSelect"},exportAs:["ngbDatepicker"],standalone:!0,features:[c.Jv_([{provide:ot.kq,useExisting:(0,c.Rfq)(()=>u),multi:!0},$c]),c.OA$,c.aNF],decls:10,vars:9,consts:[["defaultDayTemplate",""],["defaultContentTemplate",""],["content",""],[1,"ngb-dp-header"],[3,"date","months","disabled","showSelect","prevDisabled","nextDisabled","selectBoxes"],[1,"ngb-dp-content"],[3,"ngTemplateOutlet","ngTemplateOutletContext","ngTemplateOutletInjector"],[3,"ngTemplateOutlet"],["ngbDatepickerDayView","",3,"date","currentMonth","selected","disabled","focused"],[1,"ngb-dp-month"],[1,"ngb-dp-month-name"],[3,"month"],[3,"navigate","select","date","months","disabled","showSelect","prevDisabled","nextDisabled","selectBoxes"]
1],template:function(h,m){if(1&h&&(c.DNE(0,hi,1,5,"ng-template",null,0,c.C5r)(2,ec,2,0,"ng-template",null,1,c.C5r),c.j41(4,"div",3),c.DNE(5,Go,1,7,"ngb-datepicker-navigation",4),c.k0s(),c.j41(6,"div",5,2),c.DNE(8,ai,0,0,"ng-template",6),c.k0s(),c.DNE(9,hs,0,0,"ng-template",7)),2&h){const k=c.sdS(3);c.R7$(5),c.vxM(5,"none"!==m.navigation?5:-1),c.R7$(),c.AVh("ngb-dp-months",!m.contentTemplate),c.R7$(2),c.Y8G("ngTemplateOutlet",m.contentTemplate||(null==m.contentTemplateFromContent?null:m.contentTemplateFromContent.templateRef)||k)("ngTemplateOutletContext",c.eq3(7,Sa,m))("ngTemplateOutletInjector",m.injector),c.R7$(),c.Y8G("ngTemplateOutlet",m.footerTemplate)}},dependencies:[ze.T3,Ed,E,C],styles:["ngb-datepicker{border:1px solid var(--bs-border-color);border-radius:.25rem;display:inline-block}ngb-datepicker-month{pointer-events:auto}ngb-datepicker.dropdown-menu{padding:0}ngb-datepicker.disabled .ngb-dp-weekday,ngb-datepicker.disabled .ngb-dp-week-number,ngb-datepicker.disabled .ngb-dp-month-name{color:var(--bs-text-muted)}.ngb-dp-body{z-index:1055}.ngb-dp-header{border-bottom:0;border-radius:.25rem .25rem 0 0;padding-top:.25rem;background-color:var(--bs-tertiary-bg)}.ngb-dp-months{display:flex}.ngb-dp-month{pointer-events:none}.ngb-dp-month-name{font-size:larger;height:2rem;line-height:2rem;text-align:center;background-color:var(--bs-tertiary-bg)}.ngb-dp-month+.ngb-dp-month .ngb-dp-month-name,.ngb-dp-month+.ngb-dp-month .ngb-dp-week{padding-left:1rem}.ngb-dp-month:last-child .ngb-dp-week{padding-right:.25rem}.ngb-dp-month:first-child .ngb-dp-week{padding-left:.25rem}.ngb-dp-month .ngb-dp-week:last-child{padding-bottom:.25rem}\n"],encapsulation:2,changeDetection:0})}return u})();const P=(u,y)=>!!y&&y.some(l=>l.contains(u)),G=(u,y)=>!y||null!=function ro(u,y){return!y||typeof u.closest>"u"?null:u.closest(y)}(u,y),oe=typeof navigator<"u"&&!!navigator.userAgent&&(/iPad|iPhone|iPod/.test(navigator.userAgent)||/Macintosh/.test(navigator.userAgent)&&navigator.maxTouchPoints&&navigator.maxTouchPoints>2||/Android/.test(navigator.userAgent));function Pe(u,y,l,h,m,k,H,pe){l&&u.runOutsideAngular((u=>oe?()=>setTimeout(()=>u(),100):u)(()=>{const xe=(0,we.R)(y,"keydown").pipe((0,$.Q)(m),(0,te.p)(Et=>Et.which===_r.Escape),(0,Tt.M)(Et=>Et.preventDefault())),We=(0,we.R)(y,"mousedown").pipe((0,vt.T)(Et=>{const Ot=Et.target;return 2!==Et.button&&!P(Ot,H)&&("inside"===l?P(Ot,k)&&G(Ot,pe):"outside"===l?!P(Ot,k):G(Ot,pe)||!P(Ot,k))}),(0,$.Q)(m)),bt=(0,we.R)(y,"mouseup").pipe(le(We),(0,te.p)(([Et,Ot])=>Ot),function ke(u,y=Q.E){const l=(0,Re.O)(u,y);return Ue(()=>l)}(0),(0,$.Q)(m));wt([xe.pipe((0,vt.T)(Et=>0)),bt.pipe((0,vt.T)(Et=>1))]).subscribe(Et=>u.run(()=>h(Et)))}))}const Rt=["a[href]","button:not([disabled])",'input:not([disabled]):not([type="hidden"])',"select:not([disabled])","textarea:not([disabled])","[contenteditable]",'[tabindex]:not([tabindex="-1"])'].join(", ");function an(u){const y=Array.from(u.querySelectorAll(Rt)).filter(l=>-1!==l.tabIndex);return[y[0],y[y.length-1]]}const fn=(u,y,l,h=!1)=>{u.runOutsideAngular(()=>{const m=(0,we.R)(y,"focusin").pipe((0,$.Q)(l),(0,vt.T)(k=>k.target));(0,we.R)(y,"keydown").pipe((0,$.Q)(l),(0,te.p)(k=>k.which===_r.Tab),le(m)).subscribe(([k,H])=>{const[pe,Se]=an(y);(H===pe||H===y)&&k.shiftKey&&(Se.focus(),k.preventDefault()),H===Se&&!k.shiftKey&&(pe.focus(),k.preventDefault())}),h&&(0,we.R)(y,"click").pipe((0,$.Q)(l),le(m),(0,vt.T)(k=>k[1])).subscribe(k=>k.focus())})};let Ur=(()=>{class u{constructor(){this._element=(0,c.WQX)(ze.qQ).documentElement}isRTL(){return"rtl"===(this._element.getAttribute("dir")||"").toLowerCase()}static#e=this.\u0275fac=function(h){return new(h||u)};static#t=this.\u0275prov=c.jDH({token:u,factory:u.\u0275fac,providedIn:"root"})}return u})();const Ns=/\s+/,Fa=/ +/gi,Cs={top:["top"],bottom:["bottom"],start:["left","right"],left:["left"],end:["right","left"],right:["right"],"top-start":["top-start","top-end"],"top-left":["top-start"],"top-end":["top-end","top-start"],"top-right":["top-end"],"bottom-start":["bottom-start","bottom-end"],"bottom-left":["bottom-start"],"bottom-end":["bottom-end","bottom-start"],"bottom-right":["bottom-end"],"start-top":["left-start","right-start"],"left-top":["left-start"],"start-bottom":["left-end","right-end"],"left-bottom":["left-end"],"end-top":["right-start","left-start"],"right-top":["right-start"],"end-bottom":["right-end","left-end"],"right-bottom":["right-end"]},Ar=/^left/,bl=/^right/,Kc=/^start/,Wc=/^end/;function so({placement:u,baseClass:y},l){let h=Array.isArray(u)?u:u.split(Ns),k=h.findIndex(xe=>"auto"===xe);k>
1=0&&["top","bottom","start","end","top-start","top-end","bottom-start","bottom-end","start-top","start-bottom","end-top","end-bottom"].forEach(function(xe){null==h.find(We=>-1!==We.search("^"+xe))&&h.splice(k++,1,xe)});const H=h.map(xe=>function yc(u,y){const[l,h]=Cs[u];return y&&h||l}(xe,l.isRTL()));return{placement:H.shift(),modifiers:[{name:"bootstrapClasses",enabled:!!y,phase:"write",fn({state:xe}){const We=new RegExp(y+"(-[a-z]+)*","gi"),bt=xe.elements.popper,Et=xe.placement;let Ot=bt.className;Ot=Ot.replace(We,""),Ot+=` ${function Tl(u,y){let[l,h]=y.split("-");const m=l.replace(Ar,"start").replace(bl,"end");let k=[m];if(h){let H=h;("left"===l||"right"===l)&&(H=H.replace(Kc,"top").replace(Wc,"bottom")),k.push(`${m}-${H}`)}return u&&(k=k.map(H=>`${u}-${H}`)),k.join(" ")}(y,Et)}`,Ot=Ot.trim().replace(Fa," "),bt.className=Ot}},sr,bn,Qn,{enabled:!0,name:"flip",options:{fallbackPlacements:H}},{enabled:!0,name:"preventOverflow",phase:"main",fn:function(){}}]}}function rr(u){return u}function vc(){const u=(0,c.WQX)(Ur);let y=null;return{createPopper(l){if(!y){let m=(l.updatePopperOptions||rr)(so(l,u));y=Gr(l.hostElement,l.targetElement,m)}},update(){y&&y.update()},setOptions(l){if(y){let m=(l.updatePopperOptions||rr)(so(l,u));y.setOptions(m)}},destroy(){y&&(y.destroy(),y=null)}}}function Os(u){return y=>(y.modifiers.push(Bo,{name:"offset",options:{offset:()=>u}}),y)}new Date(1882,10,12),new Date(2174,10,25);let kl=(()=>{class u{static#e=this.\u0275fac=function(h){return new(h||u)};static#t=this.\u0275mod=c.$C({type:u});static#n=this.\u0275inj=c.G2t({})}return u})(),Bs=(()=>{class u{constructor(){this.autoClose=!0,this.placement=["bottom-start","bottom-end","top-start","top-end"],this.popperOptions=l=>l,this.container=null}static#e=this.\u0275fac=function(h){return new(h||u)};static#t=this.\u0275prov=c.jDH({token:u,factory:u.\u0275fac,providedIn:"root"})}return u})(),Ts=(()=>{class u{constructor(){this._disabled=!1,this.nativeElement=(0,c.WQX)(c.aKT).nativeElement,this.tabindex=0}set disabled(l){this._disabled=""===l||!0===l}get disabled(){return this._disabled}static#e=this.\u0275fac=function(h){return new(h||u)};static#t=this.\u0275dir=c.FsC({type:u,selectors:[["","ngbDropdownItem",""]],hostAttrs:[1,"dropdown-item"],hostVars:3,hostBindings:function(h,m){2&h&&(c.Mr5("tabIndex",m.disabled?-1:m.tabindex),c.AVh("disabled",m.disabled))},inputs:{tabindex:"tabindex",disabled:"disabled"},standalone:!0})}return u})(),Sc=(()=>{class u{constructor(){this.dropdown=(0,c.WQX)(el),this.nativeElement=(0,c.WQX)(c.aKT).nativeElement}static#e=this.\u0275fac=function(h){return new(h||u)};static#t=this.\u0275dir=c.FsC({type:u,selectors:[["","ngbDropdownMenu",""]],contentQueries:function(h,m,k){if(1&h&&c.wni(k,Ts,4),2&h){let H;c.mGM(H=c.lsd())&&(m.menuItems=H)}},hostVars:4,hostBindings:function(h,m){1&h&&c.bIt("keydown.ArrowUp",function(H){return m.dropdown.onKeyDown(H)})("keydown.ArrowDown",function(H){return m.dropdown.onKeyDown(H)})("keydown.Home",function(H){return m.dropdown.onKeyDown(H)})("keydown.End",function(H){return m.dropdown.onKeyDown(H)})("keydown.Enter",function(H){return m.dropdown.onKeyDown(H)})("keydown.Space",function(H){return m.dropdown.onKeyDown(H)})("keydown.Tab",function(H){return m.dropdown.onKeyDown(H)})("keydown.Shift.Tab",function(H){return m.dropdown.onKeyDown(H)}),2&h&&c.AVh("dropdown-menu",!0)("show",m.dropdown.isOpen())},standalone:!0})}return u})(),wc=(()=>{class u{constructor(){this.dropdown=(0,c.WQX)(el),this.nativeElement=(0,c.WQX)(c.aKT).nativeElement}static#e=this.\u0275fac=function(h){return new(h||u)};static#t=this.\u0275dir=c.FsC({type:u,selectors:[["","ngbDropdownAnchor",""]],hostAttrs:[1,"dropdown-toggle"],hostVars:3,hostBindings:function(h,m){2&h&&(c.BMQ("aria-expanded",m.dropdown.isOpen()),c.AVh("show",m.dropdown.isOpen()))},standalone:!0})}return u})(),_u=(()=>{class u extends wc{static#e=this.\u0275fac=(()=>{let l;return function(m){return(l||(l=c.xGo(u)))(m||u)}})();static#t=this.\u0275dir=c.FsC({type:u,selectors:[["","ngbDropdownToggle",""]],hostAttrs:[1,"dropdown-toggle"],hostVars:3,hostBindings:function(h,m){1&h&&c.bIt("click",function(){return m.dropdown.toggle()})("keydown.ArrowUp",function(H){return m.dropdown.onKeyDown(H)})("keydown.ArrowDown",function(H){return m.dropdown.onKeyDown(H)})("keydown.Home",function(H){return m.dropdown.onKeyDown(H)})("keydown.End",function(H){return m.dropdown.onKeyDown(H)})("keydown.Tab",function(H){return m.dropdown.onKeyDown(H)})("keydown.Shift.Tab",function(H){return m.dropdown.onKeyDown(H)}),2&h&&(c.BMQ("aria-expanded",m.dropdown.isOpen()),c.AVh("show",m.dropdown.isOpen()))},standalone:!0,features:[c.Jv_([{provide:wc,useExisting:(0,c.Rfq)(()=>u)}]),c.Vt3]})}return u})(),el=(()=>{class u{constructor(){this._changeDetector=(0,c.WQX)(c.gRc),this._config=(0,c.WQX)(Bs),this._document=(0,c.WQX)(ze.qQ),this._ngZone=(0,c.WQX)(c.SKi),this._nativeElement=(0,c.WQX)(c.aKT).nativeElement,this._destroyCloseHandlers$=new ie.B,this._bodyContainer=null,this._positioning=vc(),this.autoClose=this._config.autoClose,this._open=!1,this.placement=this._config.placement,this.popperOptions=this._config.popperOptions,this.container=this._config.container,this.openChange=new c.bkB}ngOnInit(){this.display||(this.display=this._nativeElement.closest(".
1navbar")?"static":"dynamic")}ngAfterContentInit(){this._ngZone.onStable.pipe((0,_e.s)(1)).subscribe(()=>{this._applyPlacementClasses(),this._open&&this._setCloseHandlers()})}ngOnChanges(l){if(l.container&&this._open&&this._applyContainer(this.container),l.placement&&!l.placement.firstChange&&(this._positioning.setOptions({hostElement:this._anchor.nativeElement,targetElement:this._bodyContainer||this._menu.nativeElement,placement:this.placement,appendToBody:"body"===this.container}),this._applyPlacementClasses()),l.dropdownClass){const{currentValue:h,previousValue:m}=l.dropdownClass;this._applyCustomDropdownClass(h,m)}l.autoClose&&this._open&&(this.autoClose=l.autoClose.currentValue,this._setCloseHandlers())}isOpen(){return this._open}open(){this._open||(this._open=!0,this._applyContainer(this.container),this.openChange.emit(!0),this._setCloseHandlers(),this._anchor&&(this._anchor.nativeElement.focus(),"dynamic"===this.display&&this._ngZone.runOutsideAngular(()=>{this._positioning.createPopper({hostElement:this._anchor.nativeElement,targetElement:this._bodyContainer||this._menu.nativeElement,placement:this.placement,appendToBody:"body"===this.container,updatePopperOptions:l=>this.popperOptions(Os([0,2])(l))}),this._applyPlacementClasses(),this._zoneSubscription=this._ngZone.onStable.subscribe(()=>this._positionMenu())})))}_setCloseHandlers(){this._destroyCloseHandlers$.next(),Pe(this._ngZone,this._document,this.autoClose,l=>{this.close(),0===l&&this._anchor.nativeElement.focus()},this._destroyCloseHandlers$,this._menu?[this._menu.nativeElement]:[],this._anchor?[this._anchor.nativeElement]:[],".dropdown-item,.dropdown-divider")}close(){this._open&&(this._open=!1,this._resetContainer(),this._positioning.destroy(),this._zoneSubscription?.unsubscribe(),this._destroyCloseHandlers$.next(),this.openChange.emit(!1),this._changeDetector.markForCheck())}toggle(){this.isOpen()?this.close():this.open()}ngOnDestroy(){this.close()}onKeyDown(l){const h=l.which,m=this._getMenuElements();let k=-1,H=null;const pe=this._isEventFromToggle(l);if(!pe&&m.length&&m.forEach((Se,xe)=>{Se.contains(l.target)&&(H=Se),Se===x(this._document)&&(k=xe)}),h!==_r.Space&&h!==_r.Enter){if(h!==_r.Tab){if(pe||H){if(this.open(),m.length){switch(h){case _r.ArrowDown:k=Math.min(k+1,m.length-1);break;case _r.ArrowUp:if(this._isDropup()&&-1===k){k=m.length-1;break}k=Math.max(k-1,0);break;case _r.Home:k=0;break;case _r.End:k=m.length-1}m[k].focus()}l.preventDefault()}}else if(l.target&&this.isOpen()&&this.autoClose){if(this._anchor.nativeElement===l.target)return void("body"!==this.container||l.shiftKey?l.shiftKey&&this.close():(this._menu.nativeElement.setAttribute("tabindex","0"),this._menu.nativeElement.focus(),this._menu.nativeElement.removeAttribute("tabindex")));if("body"===this.container){const Se=this._menu.nativeElement.querySelectorAll(Rt);l.shiftKey&&l.target===Se[0]?(this._anchor.nativeElement.focus(),l.preventDefault()):!l.shiftKey&&l.target===Se[Se.length-1]&&(this._anchor.nativeElement.focus(),this.close())}else(0,we.R)(l.target,"focusout").pipe((0,_e.s)(1)).subscribe(({relatedTarget:Se})=>{this._nativeElement.contains(Se)||this.close()})}}else H&&(!0===this.autoClose||"inside"===this.autoClose)&&(0,we.R)(H,"click").pipe((0,_e.s)(1)).subscribe(()=>this.close())}_isDropup(){return this._nativeElement.classList.contains("dropup")}_isEventFromToggle(l){return this._anchor.nativeElement.contains(l.target)}_getMenuElements(){return this._menu?this._menu.menuItems.filter(({disabled:l})=>!l).map(({nativeElement:l})=>l):[]}_positionMenu(){const l=this._menu;this.isOpen()&&l&&("dynamic"===this.display?(this._positioning.update(),this._applyPlacementClasses()):this._applyPlacementClasses(this._getFirstPlacement(this.placement)))}_getFirstPlacement(l){return Array.isArray(l)?l[0]:l.split(" ")[0]}_resetContainer(){this._menu&&this._nativeElement.appendChild(this._menu.nativeElement),this._bodyContainer&&(this._document.body.removeChild(this._bodyContainer),this._bodyContainer=null)}_applyContainer(l=null){if(this._resetContainer(),"body"===l){const h=this._menu.nativeElement,m=this._bodyContainer=this._bodyContainer||this._document.createElement("div");m.style.position="absolute",h.style.position="static",m.style.zIndex="1055",m.appendChild(h),this._document.body.appendChild(m)}this._applyCustomDropdownClass(this.dropdownClass)}_applyCustomDropdownClass(l,h){const m="body"===this.container?this._bodyContainer:this._nativeElement;m&&(h&&m.classList.remove(h),l&&m.classList.add(l))}_applyPlacementClasses(l){if(this._menu){l||(l=this._getFirstPlacement(this.placement)),this._nativeElement.classList.remove("dropup","dropdown"),"static"===this.display?this._menu.nativeElement.setAttribute("data-bs-popper","static"):this._menu.nativeElement.removeAttribute("data-bs-popper");const h=-1!==l.search("^top")?"dropup":"dropdown";this._nativeElement.classList.add(h),this._bodyContainer&&(this._bodyContainer.classList.remove("dropup","dropdown"),this._bodyContainer.classList.add(h))}}static#e=this.\u0275fac=function(h){return new(h||u)};static#t=this.\u0275dir=c.FsC({type:u,selectors:[["","ngbDropdown",""]],contentQueries:function(h,m,k){if(1&h&&(c.wni(k,Sc,5),c.wni(k,wc,5)),2&h){let H;c.mGM(H=c.lsd())&&(m._menu=H.first),c.mGM(H=c.lsd())&&(m._anchor=H.first)}},hostVars:2,hostBindings:function(h,m){2&h&&c.AVh("show",m.isOpen())},inputs:{autoClose:"autoClose",dropdownClass:"dropdownClass",_open:[c.Mj6.None,"open","_open"],placement:"placement",popperOptions:"popperOptions",container:"container",dis
1play:"display"},outputs:{openChange:"openChange"},exportAs:["ngbDropdown"],standalone:!0,features:[c.OA$]})}return u})(),Od=(()=>{class u{static#e=this.\u0275fac=function(h){return new(h||u)};static#t=this.\u0275mod=c.$C({type:u});static#n=this.\u0275inj=c.G2t({})}return u})(),tl=(()=>{class u{constructor(){this._ngbConfig=(0,c.WQX)(Lr),this.backdrop=!0,this.fullscreen=!1,this.keyboard=!0}get animation(){return this._animation??this._ngbConfig.animation}set animation(l){this._animation=l}static#e=this.\u0275fac=function(h){return new(h||u)};static#t=this.\u0275prov=c.jDH({token:u,factory:u.\u0275fac,providedIn:"root"})}return u})();class Li{constructor(y,l,h){this.nodes=y,this.viewRef=l,this.componentRef=h}}class kd{constructor(y){this._componentType=y,this._windowRef=null,this._contentRef=null,this._document=(0,c.WQX)(ze.qQ),this._applicationRef=(0,c.WQX)(c.o8S),this._injector=(0,c.WQX)(c.zZn),this._viewContainerRef=(0,c.WQX)(c.c1b),this._ngZone=(0,c.WQX)(c.SKi)}open(y,l,h=!1){this._windowRef||(this._contentRef=this._getContentRef(y,l),this._windowRef=this._viewContainerRef.createComponent(this._componentType,{injector:this._injector,projectableNodes:this._contentRef.nodes}));const{nativeElement:m}=this._windowRef.location,k=this._ngZone.onStable.pipe((0,_e.s)(1),(0,Ce.Z)(()=>Dt(this._ngZone,m,({classList:H})=>H.add("show"),{animation:h,runningTransition:"continue"})));return{windowRef:this._windowRef,transition$:k}}close(y=!1){return this._windowRef?Dt(this._ngZone,this._windowRef.location.nativeElement,({classList:l})=>l.remove("show"),{animation:y,runningTransition:"stop"}).pipe((0,Tt.M)(()=>{this._windowRef&&(this._viewContainerRef.remove(this._viewContainerRef.indexOf(this._windowRef.hostView)),this._windowRef=null),this._contentRef?.viewRef&&(this._applicationRef.detachView(this._contentRef.viewRef),this._contentRef.viewRef.destroy(),this._contentRef=null)})):(0,ce.of)(void 0)}_getContentRef(y,l){if(y){if(y instanceof c.C4Q){const h=y.createEmbeddedView(l);return this._applicationRef.attachView(h),new Li([h.rootNodes],h)}return new Li([[this._document.createTextNode(`${y}`)]])}return new Li([])}}let fa=(()=>{class u{constructor(){this._document=(0,c.WQX)(ze.qQ)}hide(){const l=Math.abs(window.innerWidth-this._document.documentElement.clientWidth),h=this._document.body,m=h.style,{overflow:k,paddingRight:H}=m;if(l>0){const pe=parseFloat(window.getComputedStyle(h).paddingRight);m.paddingRight=`${pe+l}px`}return m.overflow="hidden",()=>{l>0&&(m.paddingRight=H),m.overflow=k}}static#e=this.\u0275fac=function(h){return new(h||u)};static#t=this.\u0275prov=c.jDH({token:u,factory:u.\u0275fac,providedIn:"root"})}return u})(),Pl=(()=>{class u{constructor(){this._nativeElement=(0,c.WQX)(c.aKT).nativeElement,this._zone=(0,c.WQX)(c.SKi)}ngOnInit(){this._zone.onStable.asObservable().pipe((0,_e.s)(1)).subscribe(()=>{Dt(this._zone,this._nativeElement,(l,h)=>{h&&T(l),l.classList.add("show")},{animation:this.animation,runningTransition:"continue"})})}hide(){return Dt(this._zone,this._nativeElement,({classList:l})=>l.remove("show"),{animation:this.animation,runningTransition:"stop"})}static#e=this.\u0275fac=function(h){return new(h||u)};static#t=this.\u0275cmp=c.VBU({type:u,selectors:[["ngb-modal-backdrop"]],hostAttrs:[2,"z-index","1055"],hostVars:6,hostBindings:function(h,m){2&h&&(c.HbH("modal-backdrop"+(m.backdropClass?" "+m.backdropClass:"")),c.AVh("show",!m.animation)("fade",m.animation))},inputs:{animation:"animation",backdropClass:"backdropClass"},standalone:!0,features:[c.aNF],decls:0,vars:0,template:function(h,m){},encapsulation:2})}return u})();class Us{update(y){}close(y){}dismiss(y){}}const Xh=["animation","ariaLabelledBy","ariaDescribedBy","backdrop","centered","fullscreen","keyboard","scrollable","size","windowClass","modalDialogClass"],yu=["animation","backdropClass"];class vu{_applyWindowOptions(y,l){Xh.forEach(h=>{no(l[h])&&(y[h]=l[h])})}_applyBackdropOptions(y,l){yu.forEach(h=>{no(l[h])&&(y[h]=l[h])})}update(y){this._applyWindowOptions(this._windowCmptRef.instance,y),this._backdropCmptRef&&this._backdropCmptRef.instance&&this._applyBackdropOptions(this._backdropCmptRef.instance,y)}get componentInstance(){if(this._contentRef&&this._contentRef.componentRef)return this._contentRef.componentRef.instance}get closed(){return this._closed.asObservable().pipe((0,$.Q)(this._hidden))}get dismissed(){return this._dismissed.asObservable().pipe((0,$.Q)(this._hidden))}get hidden(){return this._hidden.asObservable()}get shown(){return this._windowCmptRef.instance.shown.asObservable()}constructor(y,l,h,m){this._windowCmptRef=y,this._contentRef=l,this._backdropCmptRef=h,this._beforeDismiss=m,this._closed=new ie.B,this._dismissed=new ie.B,this._hidden=new ie.B,y.instance.dismissEvent.subscribe(k=>{this.dismiss(k)}),this.result=new Promise((k,H)=>{this._resolve=k,this._reject=H}),this.result.then(null,()=>{})}close(y){this._windowCmptRef&&(this._closed.next(y),this._resolve(y),this._removeModalElements())}_dismiss(y){this._dismissed.next(y),this._reject(y),this._removeModalElements()}dismiss(y){if(this._windowCmptRef)if(this._beforeDismiss){const l=this._beforeDismiss();_s(l)?l.then(h=>{!1!==h&&this._dismiss(y)},()=>{}):!1!==l&&this._dismiss(y)}else this._dismiss(y)}_removeModalElements(){const y=this._windowCmptRef.instance.hide(),l=this._backdropCmptRef?this._backdropCmptRef.instance.hide():(0,ce.of)(void 0);y.subscribe(()=>{const{nativeElement:h}=this._windowCmptRef.location;h.parentNode.removeChild(h),this._windowCmptRef.destroy(),this._contentRef&&this._contentRef.viewRef&&this._contentRef.viewRef.destroy(),this._windowCmptRef=null,this._contentRef=null}),l.subscribe(()=>{if(this._backdropCmptRef){const{nativeElement:h}=this._backdropCmptRef.location;h.parentNode.removeChild(h),this._backdropCmptRef.destroy(),this._backdropCmptRef=null}}),st(y,l).subscribe(()=>{this._hidden.next(),this._hidden.complete()})}}var xl=function(u){return u[u.BACKDROP_CLICK=0]="BACKDROP_CLICK",u[u.ESC=1]="ESC",u}(xl||{});let xo=(()=>{class u{constructor(){this._document=(0,c.WQX)(ze.qQ),this._elRef=(0,c.WQX)(c.aKT),this._zone=(0,c.WQX)(c.SKi),this._closed$=new ie.B,this._elWithFocus=null,this.backdrop=!0,this.keyboard=!0,this.dismissEvent=new c.bkB,this.shown=new ie.B,this.hidden=new ie.B}get fullscreenClass(){return!0===this.fullscreen?" modal-fullscreen":ci(this.fullscreen)?` modal-fullscreen-${this.fullscreen}-down`:""}dismiss(l){this.dismissEvent.emit(l)}ngOnInit(){this._elWithFocus=this._document.activeElement,this._zone.onStable.asObservable().pipe((0,_e.s)(1)).subscribe(()=>{this._show()})}ngOnDestroy(){this._disableEventHandling()}hide(){const{nativeElement:l}=this._elRef,h={animation:this.animation,runningTransition:"stop"},H=st(Dt(this._zone,l,()=>l.classList.remove("show"),h),Dt(this._zone,this._dialogEl.nativeElement,()=>{},h));return H.subscribe(()=>{this.hidden.next(),this.hidden.complete()}),this._disableEventHandling(),this._restoreFocus(),H}_show(){const l={animation:this.animation,runningTransition:"continue"};st(Dt(this._zone,this._elRef.nativeElement,(k,H)=>{H&&T(k),k.classList.add("show")},l),Dt(this._zone,this._dialogEl.nativeElement,()=>{},l)).subscribe(()=>{this.shown.next(),this.shown.complete()}),this._enableEventHandling(),this._setFocus()}_enableEventHandling(){const{nativeElement:l}=this._elRef;this._zone.runOutsideAngular(()=>{(0,we.R)(l,"keydown").pipe((0,$.Q)(this._closed$),(0,te.p)(m=>m.which===_r.Escape)).subscribe(m=>{this.keyboard?requestAnimationFrame(()=>{m.defaultPrevented||this._zone.run(()=>this.dismiss(xl.ESC))}):"static"===this.backdrop&&this._bumpBackdrop()});let h=!1;(0,we.R)(this._dialogEl.nativeElement,"mousedown").pipe((0,$.Q)(this._closed$),(0,Tt.M)(()=>h=!1),(0,lt.n)(()=>(0,we.R)(l,"mouseup").pipe((0,$.Q)(this._closed$),(0,_e.s)(1))),(0,te.p)(({target:m})=>l===m)).subscribe(()=>{h=!0}),(0,we.R)(l,"click").pipe((0,$.Q)(this._closed$)).subscribe(({target:m})=>{l===m&&("static"===this.backdrop?this._bumpBackdrop():!0===this.backdrop&&!h&&this._zone.run(()=>this.dismiss(xl.BACKDROP_CLICK))),h=!1})})}_disableEventHandling(){this._closed$.next()}_setFocus(){const{nativeElement:l}=this._elRef;if(!l.contains(document.activeElement)){const h=l.querySelector("[ngbAutofocus]"),m=an(l)[0];(h||m||l).focus()}}_restoreFocus(){const l=this._document.body,h=this._elWithFocus;let m;m=h&&h.focus&&l.contains(h)?h:l,this._zone.runOutsideAngular(()=>{setTimeout(()=>
1m.focus()),this._elWithFocus=null})}_bumpBackdrop(){"static"===this.backdrop&&Dt(this._zone,this._elRef.nativeElement,({classList:l})=>(l.add("modal-static"),()=>l.remove("modal-static")),{animation:this.animation,runningTransition:"continue"})}static#e=this.\u0275fac=function(h){return new(h||u)};static#t=this.\u0275cmp=c.VBU({type:u,selectors:[["ngb-modal-window"]],viewQuery:function(h,m){if(1&h&&c.GBs(bi,7),2&h){let k;c.mGM(k=c.lsd())&&(m._dialogEl=k.first)}},hostAttrs:["role","dialog","tabindex","-1"],hostVars:7,hostBindings:function(h,m){2&h&&(c.BMQ("aria-modal",!0)("aria-labelledby",m.ariaLabelledBy)("aria-describedby",m.ariaDescribedBy),c.HbH("modal d-block"+(m.windowClass?" "+m.windowClass:"")),c.AVh("fade",m.animation))},inputs:{animation:"animation",ariaLabelledBy:"ariaLabelledBy",ariaDescribedBy:"ariaDescribedBy",backdrop:"backdrop",centered:"centered",fullscreen:"fullscreen",keyboard:"keyboard",scrollable:"scrollable",size:"size",windowClass:"windowClass",modalDialogClass:"modalDialogClass"},outputs:{dismissEvent:"dismiss"},standalone:!0,features:[c.aNF],ngContentSelectors:Xt,decls:4,vars:2,consts:[["dialog",""],["role","document"],[1,"modal-content"]],template:function(h,m){1&h&&(c.NAR(),c.j41(0,"div",1,0)(2,"div",2),c.SdG(3),c.k0s()()),2&h&&c.HbH("modal-dialog"+(m.size?" modal-"+m.size:"")+(m.centered?" modal-dialog-centered":"")+m.fullscreenClass+(m.scrollable?" modal-dialog-scrollable":"")+(m.modalDialogClass?" "+m.modalDialogClass:""))},styles:["ngb-modal-window .component-host-scrollable{display:flex;flex-direction:column;overflow:hidden}\n"],encapsulation:2})}return u})(),Pd=(()=>{class u{constructor(){this._applicationRef=(0,c.WQX)(c.o8S),this._injector=(0,c.WQX)(c.zZn),this._environmentInjector=(0,c.WQX)(c.uvJ),this._document=(0,c.WQX)(ze.qQ),this._scrollBar=(0,c.WQX)(fa),this._activeWindowCmptHasChanged=new ie.B,this._ariaHiddenValues=new Map,this._scrollBarRestoreFn=null,this._modalRefs=[],this._windowCmpts=[],this._activeInstances=new c.bkB;const l=(0,c.WQX)(c.SKi);this._activeWindowCmptHasChanged.subscribe(()=>{if(this._windowCmpts.length){const h=this._windowCmpts[this._windowCmpts.length-1];fn(l,h.location.nativeElement,this._activeWindowCmptHasChanged),this._revertAriaHidden(),this._setAriaHidden(h.location.nativeElement)}})}_restoreScrollBar(){const l=this._scrollBarRestoreFn;l&&(this._scrollBarRestoreFn=null,l())}_hideScrollBar(){this._scrollBarRestoreFn||(this._scrollBarRestoreFn=this._scrollBar.hide())}open(l,h,m){const k=m.container instanceof HTMLElement?m.container:no(m.container)?this._document.querySelector(m.container):this._document.body;if(!k)throw new Error(`The specified modal container "${m.container||"body"}" was not found in the DOM.`);this._hideScrollBar();const H=new Us,pe=(l=m.injector||l).get(c.uvJ,null)||this._environmentInjector,Se=this._getContentRef(l,pe,h,H,m);let xe=!1!==m.backdrop?this._attachBackdrop(k):void 0,We=this._attachWindowComponent(k,Se.nodes),bt=new vu(We,Se,xe,m.beforeDismiss);return this._registerModalRef(bt),this._registerWindowCmpt(We),bt.hidden.pipe((0,_e.s)(1)).subscribe(()=>Promise.resolve(!0).then(()=>{this._modalRefs.length||(this._document.body.classList.remove("modal-open"),this._restoreScrollBar(),this._revertAriaHidden())})),H.close=Et=>{bt.close(Et)},H.dismiss=Et=>{bt.dismiss(Et)},H.update=Et=>{bt.update(Et)},bt.update(m),1===this._modalRefs.length&&this._document.body.classList.add("modal-open"),xe&&xe.instance&&xe.changeDetectorRef.detectChanges(),We.changeDetectorRef.detectChanges(),bt}get activeInstances(){return this._activeInstances}dismissAll(l){this._modalRefs.forEach(h=>h.dismiss(l))}hasOpenModals(){return this._modalRefs.length>0}_attachBackdrop(l){let h=(0,c.a0P)(Pl,{environmentInjector:this._applicationRef.injector,elementInjector:this._injector});return this._applicationRef.attachView(h.hostView),l.appendChild(h.location.nativeElement),h}_attachWindowComponent(l,h){let m=(0,c.a0P)(xo,{environmentInjector:this._applicationRef.injector,elementInjector:this._injector,projectableNodes:h});return this._applicationRef.attachView(m.hostView),l.appendChild(m.location.nativeElement),m}_getContentRef(l,h,m,k,H){return m?m instanceof c.C4Q?this._createFromTemplateRef(m,k):ci(m)?this._createFromString(m):this._createFromComponent(l,h,m,k,H):new Li([])}_createFromTemplateRef(l,h){const k=l.createEmbeddedView({$implicit:h,close(H){h.close(H)},dismiss(H){h.dismiss(H)}});return this._applicationRef.attachView(k),new Li([k.rootNodes],k)}_createFromString(l){const h=this._document.createTextNode(`${l}`);return new Li([[h]])}_createFromComponent(l,h,m,k,H){const pe=c.zZn.create({providers:[{provide:Us,useValue:k}],parent:l}),Se=(0,c.a0P)(m,{environmentInjector:h,elementInjector:pe}),xe=Se.location.nativeElement;return H.scrollable&&xe.classList.add("component-host-scrollable"),this._applicationRef.attachView(Se.hostView),new Li([[xe]],Se.hostView,Se)}_setAriaHidden(l){const h=l.parentElement;
1h&&l!==this._document.body&&(Array.from(h.children).forEach(m=>{m!==l&&"SCRIPT"!==m.nodeName&&(this._ariaHiddenValues.set(m,m.getAttribute("aria-hidden")),m.setAttribute("aria-hidden","true"))}),this._setAriaHidden(h))}_revertAriaHidden(){this._ariaHiddenValues.forEach((l,h)=>{l?h.setAttribute("aria-hidden",l):h.removeAttribute("aria-hidden")}),this._ariaHiddenValues.clear()}_registerModalRef(l){const h=()=>{const m=this._modalRefs.indexOf(l);m>-1&&(this._modalRefs.splice(m,1),this._activeInstances.emit(this._modalRefs))};this._modalRefs.push(l),this._activeInstances.emit(this._modalRefs),l.result.then(h,h)}_registerWindowCmpt(l){this._windowCmpts.push(l),this._activeWindowCmptHasChanged.next(),l.onDestroy(()=>{const h=this._windowCmpts.indexOf(l);h>-1&&(this._windowCmpts.splice(h,1),this._activeWindowCmptHasChanged.next())})}static#e=this.\u0275fac=function(h){return new(h||u)};static#t=this.\u0275prov=c.jDH({token:u,factory:u.\u0275fac,providedIn:"root"})}return u})(),Bi=(()=>{class u{constructor(){this._injector=(0,c.WQX)(c.zZn),this._modalStack=(0,c.WQX)(Pd),this._config=(0,c.WQX)(tl)}open(l,h={}){const m={...this._config,animation:this._config.animation,...h};return this._modalStack.open(this._injector,l,m)}get activeInstances(){return this._modalStack.activeInstances}dismissAll(l){this._modalStack.dismissAll(l)}hasOpenModals(){return this._modalStack.hasOpenModals()}static#e=this.\u0275fac=function(h){return new(h||u)};static#t=this.\u0275prov=c.jDH({token:u,factory:u.\u0275fac,providedIn:"root"})}return u})(),$a=(()=>{class u{static#e=this.\u0275fac=function(h){return new(h||u)};static#t=this.\u0275mod=c.$C({type:u});static#n=this.\u0275inj=c.G2t({providers:[Bi]})}return u})(),ga=(()=>{class u{static#e=this.\u0275fac=function(h){return new(h||u)};static#t=this.\u0275mod=c.$C({type:u});static#n=this.\u0275inj=c.G2t({})}return u})(),ol=(()=>{class u{static#e=this.\u0275fac=function(h){return new(h||u)};static#t=this.\u0275mod=c.$C({type:u});static#n=this.\u0275inj=c.G2t({})}return u})();const Fd={hover:["mouseenter","mouseleave"],focus:["focusin","focusout"]};let Au=(()=>{class u{constructor(){this._ngbConfig=(0,c.WQX)(Lr),this.autoClose=!0,this.placement="auto",this.popperOptions=l=>l,this.triggers="click",this.disablePopover=!1,this.openDelay=0,this.closeDelay=0}get animation(){return this._animation??this._ngbConfig.animation}set animation(l){this._animation=l}static#e=this.\u0275fac=function(h){return new(h||u)};static#t=this.\u0275prov=c.jDH({token:u,factory:u.\u0275fac,providedIn:"root"})}return u})(),Iu=0,Ld=(()=>{class u{isTitleTemplate(){return this.title instanceof c.C4Q}static#e=this.\u0275fac=function(h){return new(h||u)};static#t=this.\u0275cmp=c.VBU({type:u,selectors:[["ngb-popover-window"]],hostAttrs:["role","tooltip",2,"position","absolute"],hostVars:5,hostBindings:function(h,m){2&h&&(c.Mr5("id",m.id),c.HbH("popover"+(m.popoverClass?" "+m.popoverClass:"")),c.AVh("fade",m.animation))},inputs:{animation:"animation",title:"title",id:"id",popoverClass:"popoverClass",context:"context"},standalone:!0,features:[c.aNF],ngContentSelectors:Xt,decls:4,vars:1,consts:[["simpleTitle",""],["data-popper-arrow","",1,"popover-arrow"],[1,"popover-header"],[1,"popover-body"],[3,"ngTemplateOutlet","ngTemplateOutletContext"]],template:function(h,m){1&h&&(c.NAR(),c.nrm(0,"div",1),c.DNE(1,gr,4,2,"h3",2),c.j41(2,"div",3),c.SdG(3),c.k0s()),2&h&&(c.R7$(),c.vxM(1,m.title?1:-1))},dependencies:[ze.T3],encapsulation:2,changeDetection:0})}return u})(),Mu=(()=>{class u{constructor(){this._config=(0,c.WQX)(Au),this.animation=this._config.animation,this.autoClose=this._config.autoClose,this.placement=this._config.placement,this.popperOptions=this._config.popperOptions,this.triggers=this._config.triggers,this.container=this._config.container,this.disablePopover=this._config.disablePopover,this.popoverClass=this._config.popoverClass,this.openDelay=this._config.openDelay,this.closeDelay=this._config.closeDelay,this.shown=new c.bkB,this.hidden=new c.bkB,this._nativeElement=(0,c.WQX)(c.aKT).nativeElement,this._ngZone=(0,c.WQX)(c.SKi),this._document=(0,c.WQX)(ze.qQ),this._changeDetector=(0,c.WQX)(c.gRc),this._ngbPopoverWindowId="ngb-popover-"+Iu++,this._popupService=new kd(Ld),this._windowRef=null,this._positioning=vc()}open(l){if(!this._windowRef&&!this._isDisabled()){const{windowRef:h,transition$:m}=this._popupService.open(this.ngbPopover,l??this.popoverContext,this.animation);this._windowRef=h,this._windowRef.setInput("animation",this.animation),this._windowRef.setInput("title",this.popoverTitle),this._windowRef.setInput("context",l??this.popoverContext),this._windowRef.setInput("popoverClass",this.popoverClass),this._windowRef.setInput("id",this._ngbPopoverWindowId),this._getPositionTargetElement().setAttribute("aria-describedby",this._ngbPopoverWindowId),"body"===this.container&&this._document.body.appendChild(this._windowRef.location.nativeElement),this._windowRef.changeDetectorRef.detectChanges(),this._windowRef.changeDetectorRef.markForCheck(),this._ngZone.runOutsideAngular(()=>{this._positioning.createPopper({hostElement:this._getPositionTargetElement(),targetElement:this._windowRef.location.nativeElement,placement:this.placement,appendToBody:"body"===this.container,baseClass:"bs-popover",updatePopperOptions:k=>this.popperOptions(Os([0,8])(k))}),Promise.resolve().then(()=>
1{this._positioning.update(),this._zoneSubscription=this._ngZone.onStable.subscribe(()=>this._positioning.update())})}),Pe(this._ngZone,this._document,this.autoClose,()=>this.close(),this.hidden,[this._windowRef.location.nativeElement]),m.subscribe(()=>this.shown.emit())}}close(l=this.animation){this._windowRef&&(this._getPositionTargetElement().removeAttribute("aria-describedby"),this._popupService.close(l).subscribe(()=>{this._windowRef=null,this._positioning.destroy(),this._zoneSubscription?.unsubscribe(),this.hidden.emit(),this._changeDetector.markForCheck()}))}toggle(){this._windowRef?this.close():this.open()}isOpen(){return null!=this._windowRef}ngOnInit(){this._unregisterListenersFn=function wu(u,y,l,h,m,k=0,H=0){const pe=function sl(u){const y=(u||"").trim();if(0===y.length)return[];const l=y.split(/\s+/).map(m=>m.split(":")).map(m=>Fd[m[0]]||m),h=l.filter(m=>m.includes("manual"));if(h.length>1)throw"Triggers parse error: only one manual trigger is allowed";if(1===h.length&&l.length>1)throw"Triggers parse error: manual trigger can't be mixed with other triggers";return h.length?[]:l}(y);if(0===pe.length)return()=>{};const Se=new Set,xe=[];let We;function bt(Ot,pn){u.addEventListener(Ot,pn),xe.push(()=>u.removeEventListener(Ot,pn))}function Et(Ot,pn){clearTimeout(We),pn>0?We=setTimeout(Ot,pn):Ot()}for(const[Ot,pn]of pe)pn?(bt(Ot,()=>{Se.add(Ot),Et(()=>Se.size>0&&h(),k)}),bt(pn,()=>{Se.delete(Ot),Et(()=>0===Se.size&&m(),H)})):bt(Ot,()=>l()?Et(m,H):Et(h,k));return()=>xe.forEach(Ot=>Ot())}(this._nativeElement,this.triggers,this.isOpen.bind(this),this.open.bind(this),this.close.bind(this),+this.openDelay,+this.closeDelay)}ngOnChanges({ngbPopover:l,popoverTitle:h,disablePopover:m,popoverClass:k}){k&&this.isOpen()&&this._windowRef.setInput("popoverClass",k.currentValue),(l||h||m)&&this._isDisabled()&&this.close()}ngOnDestroy(){this.close(!1),this._unregisterListenersFn?.()}_isDisabled(){return!!this.disablePopover||!this.ngbPopover&&!this.popoverTitle}_getPositionTargetElement(){return(ci(this.positionTarget)?this._document.querySelector(this.positionTarget):this.positionTarget)||this._nativeElement}static#e=this.\u0275fac=function(h){return new(h||u)};static#t=this.\u0275dir=c.FsC({type:u,selectors:[["","ngbPopover",""]],inputs:{animation:"animation",autoClose:"autoClose",ngbPopover:"ngbPopover",popoverTitle:"popoverTitle",placement:"placement",popperOptions:"popperOptions",triggers:"triggers",positionTarget:"positionTarget",container:"container",disablePopover:"disablePopover",popoverClass:"popoverClass",popoverContext:"popoverContext",openDelay:"openDelay",closeDelay:"closeDelay"},outputs:{shown:"shown",hidden:"hidden"},exportAs:["ngbPopover"],standalone:!0,features:[c.OA$]})}return u})(),Bl=(()=>{class u{static#e=this.\u0275fac=function(h){return new(h||u)};static#t=this.\u0275mod=c.$C({type:u});static#n=this.\u0275inj=c.G2t({})}return u})(),Ul=(()=>{class u{static#e=this.\u0275fac=function(h){return new(h||u)};static#t=this.\u0275mod=c.$C({type:u});static#n=this.\u0275inj=c.G2t({})}return u})(),al=(()=>{class u{static#e=this.\u0275fac=function(h){return new(h||u)};static#t=this.\u0275mod=c.$C({type:u});static#n=this.\u0275inj=c.G2t({})}return u})(),Vd=(()=>{class u{static#e=this.\u0275fac=function(h){return new(h||u)};static#t=this.\u0275mod=c.$C({type:u});static#n=this.\u0275inj=c.G2t({})}return u})(),$d=(()=>{class u{static#e=this.\u0275fac=function(h){return new(h||u)};static#t=this.\u0275mod=c.$C({type:u});static#n=this.\u0275inj=c.G2t({})}return u})(),cl=(()=>{class u{static#e=this.\u0275fac=function(h){return new(h||u)};static#t=this.\u0275mod=c.$C({type:u});static#n=this.\u0275inj=c.G2t({})}return u})(),Gl=(()=>{class u{static#e=this.\u0275fac=function(h){return new(h||u)};static#t=this.\u0275mod=c.$C({type:u});static#n=this.\u0275inj=c.G2t({})}return u})();new c.nKC("live announcer delay",{providedIn:"root",factory:()=>100});let i=(()=>{class u{static#e=this.\u0275fac=function(h){return new(h||u)};static#t=this.\u0275mod=c.$C({type:u});static#n=this.\u0275inj=c.G2t({})}return u})(),a=(()=>{class u{constructor(){this._ngbConfig=(0,c.WQX)(Lr),this.backdrop=!0,this.keyboard=!0,this.position="start",this.scroll=!1}get animation(){return this._animation??this._ngbConfig.animation}set animation(l){this._animation=l}static#e=this.\u0275fac=function(h){return new(h||u)};static#t=this.\u0275prov=c.jDH({token:u,factory:u.\u0275fac,providedIn:"root"})}return u})();class f{close(y){}dismiss(y){}}class v{get componentInstance(){if(this._contentRef&&this._contentRef.componentRef)return this._contentRef.componentRef.instance}get closed(){return this._closed.asObservable().pipe((0,$.Q)(this._hidden))}get dismissed(){return this._dismissed.asObservable().pipe((0,$.Q)(this._hidden))}get hidden(){return this._hidden.asObservable()}get shown(){return this._panelCmptRef.instance.shown.asObservable()}constructor(y,l,h,m){this._panelCmptRef=y,this._contentRef=l,this._backdropCmptRef=h,this._beforeDismiss=m,this._closed=new ie.B,this._dismissed=new ie.B,this._hidden=new ie.B,y.instance.dismissEvent.subscribe(k=>{this.dismiss(k)}),h&&h.instance.dismissEvent.subscribe(k=>{this.dismiss(k)}),this.result=new Promise((k,H)=>{this._resolve=k,this._reject=H}),this.result.then(null,()=>{})}close(y){this._panelCmptRef&&(this._closed.next(y),this._resolve(y),this._removeOffcanvasElements())}_dismiss(y){this._dismissed.next(y),this._reject(y),this._removeOffcanvasElements()}dismiss(y){if(this._panelCmptRef)if(this._beforeDismiss){const l=this._beforeDismiss();_s(l)?l.then(h=>{!1!==h&&this._dismiss(y)},()=>{}):!1!==l&&this._dismiss(y)}else this._dismiss(y)}_removeOffcanvasElements(){const y=this._panelCmptRef.instance.hide(),l=this._backdropCmptRef?this._backdropCmptRef.instance.hide():(0,ce.of)(void 0);y.subscribe(()=>{const{nativeElement:h}=this._panelCmptRef.location;h.parentNode.removeChild(h),this._panelCmptRef.destroy(),this._contentRef&&this._contentRef.viewRef&&this._contentRef.viewRef.destroy(),this._panelCmptRef=null,this._contentRef=null}),l.subscribe(()=>{if(this._backdropCmptRef){const{nativeElement:h}=this._backdropCmptRef.location;h.parentNode.removeChild(h),this._backdropCmptRef.destroy(),this._backdropCmptRef=null}}),st(y,l).subscribe(()=>{this._hidden.next(),this._hidden.complete()})}}var w=function(u){return u[u.BACKDROP_CLICK=0]="BACKDROP_CLICK",u[u.ESC=1]="ESC",u}(w||{});let N=(()=>{class u{constructor(){this._nativeElement=(0,c.WQX)(c.aKT).nativeElement,this._zone=(0,c.WQX)(c.SKi),this.dismissEvent=new c.bkB}ngOnInit(){this._zone.onStable.asObservable().pipe((0,_e.s)(1)).subscribe(()=>{Dt(this._zone,this._nativeElement,(l,h)=>{h&&T(l),l.classList.add("show")},{animation:this.animation,runningTransition:"continue"})})}hide(){return Dt(this._zone,this._nativeElement,({classList:l})=>l.remove("show"),{animation:this.animation,runningTransition:"stop"})}dismiss(){this.static||this.dismissEvent.emit(w.BACKDROP_CLICK)}static#e=this.\u0275fac=function(h){return new(h||u)};static#t=this.\u0275cmp=c.VBU({type:u,selectors:[["ngb-offcanvas-backdrop"]],hostVars:6,hostBindings:function(h,m){1&h&&c.bIt("mousedown",function(){return m.dismiss()}),2&h&&(c.HbH("offcanvas-backdrop"+(m.backdropClass?" "+m.backdropClass:"")),c.AVh("show",!m.animation)("fade",m.animation))},inputs:{animation:"animation",backdropClass:"backdropClass",static:"static"},outputs:{dismissEvent:"dismiss"},standalone:!0,features:[c.aNF],decls:0,vars:0,template:function(h,m){},encapsulation:2})}return u})(),j=(()=>{class u{constructor(){this._document=(0,c.WQX)(ze.qQ),this._elRef=(0,c.WQX)(c.aKT),this._zone=(0,c.WQX)(c.SKi),this._closed$=new ie.B,this._elWithFocus=null,this.keyboard=!0,this.position="start",this.dismissEvent=new c.bkB,this.shown=new ie.B,this.hidden=new ie.B}dismiss(l){this.dismissEvent.emit(l)}ngOnInit(){this._elWithFocus=this._document.activeElement,this._zone.onStable.asObservable().pipe((0,_e.s)(1)).subscribe(()=>{this._show()})}ngOnDestroy(){this._disableEventHandling()}hide(){const h=Dt(this._zone,this._elRef.nativeElement,m=>
1(m.classList.remove("showing"),m.classList.add("hiding"),()=>m.classList.remove("show","hiding")),{animation:this.animation,runningTransition:"stop"});return h.subscribe(()=>{this.hidden.next(),this.hidden.complete()}),this._disableEventHandling(),this._restoreFocus(),h}_show(){Dt(this._zone,this._elRef.nativeElement,(m,k)=>(k&&T(m),m.classList.add("show","showing"),()=>m.classList.remove("showing")),{animation:this.animation,runningTransition:"continue"}).subscribe(()=>{this.shown.next(),this.shown.complete()}),this._enableEventHandling(),this._setFocus()}_enableEventHandling(){const{nativeElement:l}=this._elRef;this._zone.runOutsideAngular(()=>{(0,we.R)(l,"keydown").pipe((0,$.Q)(this._closed$),(0,te.p)(h=>h.which===_r.Escape)).subscribe(h=>{this.keyboard&&requestAnimationFrame(()=>{h.defaultPrevented||this._zone.run(()=>this.dismiss(w.ESC))})})})}_disableEventHandling(){this._closed$.next()}_setFocus(){const{nativeElement:l}=this._elRef;if(!l.contains(document.activeElement)){const h=l.querySelector("[ngbAutofocus]"),m=an(l)[0];(h||m||l).focus()}}_restoreFocus(){const l=this._document.body,h=this._elWithFocus;let m;m=h&&h.focus&&l.contains(h)?h:l,this._zone.runOutsideAngular(()=>{setTimeout(()=>m.focus()),this._elWithFocus=null})}static#e=this.\u0275fac=function(h){return new(h||u)};static#t=this.\u0275cmp=c.VBU({type:u,selectors:[["ngb-offcanvas-panel"]],hostAttrs:["role","dialog","tabindex","-1"],hostVars:5,hostBindings:function(h,m){2&h&&(c.BMQ("aria-modal",!0)("aria-labelledby",m.ariaLabelledBy)("aria-describedby",m.ariaDescribedBy),c.HbH("offcanvas offcanvas-"+m.position+(m.panelClass?" "+m.panelClass:"")))},inputs:{animation:"animation",ariaLabelledBy:"ariaLabelledBy",ariaDescribedBy:"ariaDescribedBy",keyboard:"keyboard",panelClass:"panelClass",position:"position"},outputs:{dismissEvent:"dismiss"},standalone:!0,features:[c.aNF],ngContentSelectors:Xt,decls:1,vars:0,template:function(h,m){1&h&&(c.NAR(),c.SdG(0))},encapsulation:2})}return u})(),W=(()=>{class u{constructor(){this._applicationRef=(0,c.WQX)(c.o8S),this._injector=(0,c.WQX)(c.zZn),this._document=(0,c.WQX)(ze.qQ),this._scrollBar=(0,c.WQX)(fa),this._activePanelCmptHasChanged=new ie.B,this._scrollBarRestoreFn=null,this._backdropAttributes=["animation","backdropClass"],this._panelAttributes=["animation","ariaDescribedBy","ariaLabelledBy","keyboard","panelClass","position"],this._activeInstance=new c.bkB;const l=(0,c.WQX)(c.SKi);this._activePanelCmptHasChanged.subscribe(()=>{this._panelCmpt&&fn(l,this._panelCmpt.location.nativeElement,this._activePanelCmptHasChanged)})}_restoreScrollBar(){const l=this._scrollBarRestoreFn;l&&(this._scrollBarRestoreFn=null,l())}_hideScrollBar(){this._scrollBarRestoreFn||(this._scrollBarRestoreFn=this._scrollBar.hide())}open(l,h,m){const k=m.container instanceof HTMLElement?m.container:no(m.container)?this._document.querySelector(m.container):this._document.body;if(!k)throw new Error(`The specified offcanvas container "${m.container||"body"}" was not found in the DOM.`);m.scroll||this._hideScrollBar();const H=new f,pe=this._getContentRef(m.injector||l,h,H);let Se=!1!==m.backdrop?this._attachBackdrop(k):void 0,xe=this._attachWindowComponent(k,pe.nodes),We=new v(xe,pe,Se,m.beforeDismiss);return this._registerOffcanvasRef(We),this._registerPanelCmpt(xe),We.hidden.pipe((0,Qe.j)(()=>this._restoreScrollBar())).subscribe(),H.close=bt=>{We.close(bt)},H.dismiss=bt=>{We.dismiss(bt)},this._applyPanelOptions(xe.instance,m),Se&&Se.instance&&(this._applyBackdropOptions(Se.instance,m),Se.changeDetectorRef.detectChanges()),xe.changeDetectorRef.detectChanges(),We}get activeInstance(){return this._activeInstance}dismiss(l){this._offcanvasRef?.dismiss(l)}hasOpenOffcanvas(){return!!this._offcanvasRef}_attachBackdrop(l){let h=(0,c.a0P)(N,{environmentInjector:this._applicationRef.injector,elementInjector:this._injector});return this._applicationRef.attachView(h.hostView),l.appendChild(h.location.nativeElement),h}_attachWindowComponent(l,h){let m=(0,c.a0P)(j,{environmentInjector:this._applicationRef.injector,elementInjector:this._injector,projectableNodes:h});return this._applicationRef.attachView(m.hostView),l.appendChild(m.location.nativeElement),m}
1_applyPanelOptions(l,h){this._panelAttributes.forEach(m=>{no(h[m])&&(l[m]=h[m])})}_applyBackdropOptions(l,h){this._backdropAttributes.forEach(m=>{no(h[m])&&(l[m]=h[m])}),l.static="static"===h.backdrop}_getContentRef(l,h,m){return h?h instanceof c.C4Q?this._createFromTemplateRef(h,m):ci(h)?this._createFromString(h):this._createFromComponent(l,h,m):new Li([])}_createFromTemplateRef(l,h){const k=l.createEmbeddedView({$implicit:h,close(H){h.close(H)},dismiss(H){h.dismiss(H)}});return this._applicationRef.attachView(k),new Li([k.rootNodes],k)}_createFromString(l){const h=this._document.createTextNode(`${l}`);return new Li([[h]])}_createFromComponent(l,h,m){const k=c.zZn.create({providers:[{provide:f,useValue:m}],parent:l}),H=(0,c.a0P)(h,{environmentInjector:this._applicationRef.injector,elementInjector:k}),pe=H.location.nativeElement;return this._applicationRef.attachView(H.hostView),new Li([[pe]],H.hostView,H)}_registerOffcanvasRef(l){const h=()=>{this._offcanvasRef=void 0,this._activeInstance.emit(this._offcanvasRef)};this._offcanvasRef=l,this._activeInstance.emit(this._offcanvasRef),l.result.then(h,h)}_registerPanelCmpt(l){this._panelCmpt=l,this._activePanelCmptHasChanged.next(),l.onDestroy(()=>{this._panelCmpt=void 0,this._activePanelCmptHasChanged.next()})}static#e=this.\u0275fac=function(h){return new(h||u)};static#t=this.\u0275prov=c.jDH({token:u,factory:u.\u0275fac,providedIn:"root"})}return u})(),ue=(()=>{class u{constructor(){this._injector=(0,c.WQX)(c.zZn),this._offcanvasStack=(0,c.WQX)(W),this._config=(0,c.WQX)(a)}open(l,h={}){const m={...this._config,animation:this._config.animation,...h};return this._offcanvasStack.open(this._injector,l,m)}get activeInstance(){return this._offcanvasStack.activeInstance}dismiss(l){this._offcanvasStack.dismiss(l)}hasOpenOffcanvas(){return this._offcanvasStack.hasOpenOffcanvas()}static#e=this.\u0275fac=function(h){return new(h||u)};static#t=this.\u0275prov=c.jDH({token:u,factory:u.\u0275fac,providedIn:"root"})}return u})(),Ke=(()=>{class u{static#e=this.\u0275fac=function(h){return new(h||u)};static#t=this.\u0275mod=c.$C({type:u});static#n=this.\u0275inj=c.G2t({})}return u})();const rt=[io,Jt,hn,sa,kl,Od,$a,ga,Ke,ol,Bl,Ul,al,Vd,$d,cl,Gl,i];let _t=(()=>{class u{static#e=this.\u0275fac=function(h){return new(h||u)};static#t=this.\u0275mod=c.$C({type:u});static#n=this.\u0275inj=c.G2t({imports:[rt,io,Jt,hn,sa,kl,Od,$a,ga,Ke,ol,Bl,Ul,al,Vd,$d,cl,Gl,i]})}return u})()},1780:(ct,be,I)=>{"use strict";I.d(be,{D9:()=>vt,Wr:()=>ie,c$:()=>_e,er:()=>Re,h:()=>Yt});var c=I(4438),g=I(7673),$=I(4402),Y=I(7468),q=I(8793),ge=I(9030),se=I(6697),he=I(9568),de=I(6354),De=I(274),ce=I(5558);class ie{}let we=(()=>{class $e extends ie{getTranslation(le){return(0,g.of)({})}}return $e.\u0275fac=(()=>{let At;return function(Q){return(At||(At=c.xGo($e)))(Q||$e)}})(),$e.\u0275prov=c.jDH({token:$e,factory:$e.\u0275fac}),$e})();class Re{}let Be=(()=>{class $e{handle(le){return le.key}}return $e.\u0275fac=function(le){return new(le||$e)},$e.\u0275prov=c.jDH({token:$e,factory:$e.\u0275fac}),$e})();function ut($e,At){if($e===At)return!0;if(null===$e||null===At)return!1;if($e!=$e&&At!=At)return!0;let ae,Z,Ce,le=typeof $e;if(le==typeof At&&"object"==le){if(!Array.isArray($e)){if(Array.isArray(At))return!1;for(Z in Ce=Object.create(null),$e){if(!ut($e[Z],At[Z]))return!1;Ce[Z]=!0}for(Z in At)if(!(Z in Ce)&&typeof At[Z]<"u")return!1;return!0}if(!Array.isArray(At))return!1;if((ae=$e.length)==At.length){for(Z=0;Z<ae;Z++)if(!ut($e[Z],At[Z]))return!1;return!0}}return!1}function Le($e){return typeof $e<"u"&&null!==$e}function gt($e){return $e&&"object"==typeof $e&&!Array.isArray($e)}function wt($e,At){let le=Object.assign({},$e);return gt($e)&>(At)&&Object.keys(At).forEach(Q=>{gt(At[Q])?Q in $e?le[Q]=wt($e[Q],At[Q]):Object.assign(le,{[Q]:At[Q]}):Object.assign(le,{[Q]:At[Q]})}),le}class Ut{}let et=(()=>{class $e extends Ut{constructor(){super(...arguments),this.templateMatcher=/{{\s?([^{}\s]*)\s?}}/g}interpolate(le,Q){let ae;return ae="string"==typeof le?this.interpolateString(le,Q):"function"==typeof le?this.interpolateFunction(le,Q):le,ae}getValue(le,Q){let ae="string"==typeof Q?Q.split("."):[Q];Q="";do{Q+=ae.shift(),!Le(le)||!Le(le[Q])||"object"!=typeof le[Q]&&ae.length?ae.length?Q+=".":le=void 0:(le=le[Q],Q="")}while(ae.length);return le}interpolateFunction(le,Q){return le(Q)}interpolateString(le,Q){return Q?le.replace(this.templateMatcher,(ae,Z)=>{let Ce=this.getValue(Q,Z);return Le(Ce)?Ce:ae}):le}}return $e.\u0275fac=(()=>{let At;return function(Q){return(At||(At=c.xGo($e)))(Q||$e)}})(),$e.\u0275prov=c.jDH({token:$e,factory:$e.\u0275fac}),$e})();
1class ne{}let F=(()=>{class $e extends ne{compile(le,Q){return le}compileTranslations(le,Q){return le}}return $e.\u0275fac=(()=>{let At;return function(Q){return(At||(At=c.xGo($e)))(Q||$e)}})(),$e.\u0275prov=c.jDH({token:$e,factory:$e.\u0275fac}),$e})();class tt{constructor(){this.currentLang=this.defaultLang,this.translations={},this.langs=[],this.onTranslationChange=new c.bkB,this.onLangChange=new c.bkB,this.onDefaultLangChange=new c.bkB}}const st=new c.nKC("USE_STORE"),nt=new c.nKC("USE_DEFAULT_LANG"),Ve=new c.nKC("DEFAULT_LANGUAGE"),te=new c.nKC("USE_EXTEND");let _e=(()=>{class $e{constructor(le,Q,ae,Z,Ce,Ue=!0,ke=!1,lt=!1,Ht){this.store=le,this.currentLoader=Q,this.compiler=ae,this.parser=Z,this.missingTranslationHandler=Ce,this.useDefaultLang=Ue,this.isolate=ke,this.extend=lt,this.pending=!1,this._onTranslationChange=new c.bkB,this._onLangChange=new c.bkB,this._onDefaultLangChange=new c.bkB,this._langs=[],this._translations={},this._translationRequests={},Ht&&this.setDefaultLang(Ht)}get onTranslationChange(){return this.isolate?this._onTranslationChange:this.store.onTranslationChange}get onLangChange(){return this.isolate?this._onLangChange:this.store.onLangChange}get onDefaultLangChange(){return this.isolate?this._onDefaultLangChange:this.store.onDefaultLangChange}get defaultLang(){return this.isolate?this._defaultLang:this.store.defaultLang}set defaultLang(le){this.isolate?this._defaultLang=le:this.store.defaultLang=le}get currentLang(){return this.isolate?this._currentLang:this.store.currentLang}set currentLang(le){this.isolate?this._currentLang=le:this.store.currentLang=le}get langs(){return this.isolate?this._langs:this.store.langs}set langs(le){this.isolate?this._langs=le:this.store.langs=le}get translations(){return this.isolate?this._translations:this.store.translations}set translations(le){this.isolate?this._translations=le:this.store.translations=le}setDefaultLang(le){if(le===this.defaultLang)return;let Q=this.retrieveTranslations(le);typeof Q<"u"?(null==this.defaultLang&&(this.defaultLang=le),Q.pipe((0,se.s)(1)).subscribe(ae=>{this.changeDefaultLang(le)})):this.changeDefaultLang(le)}getDefaultLang(){return this.defaultLang}use(le){if(le===this.currentLang)return(0,g.of)(this.translations[le]);let Q=this.retrieveTranslations(le);return typeof Q<"u"?(this.currentLang||(this.currentLang=le),Q.pipe((0,se.s)(1)).subscribe(ae=>{this.changeLang(le)}),Q):(this.changeLang(le),(0,g.of)(this.translations[le]))}retrieveTranslations(le){let Q;return(typeof this.translations[le]>"u"||this.extend)&&(this._translationRequests[le]=this._translationRequests[le]||this.getTranslation(le),Q=this._translationRequests[le]),Q}getTranslation(le){this.pending=!0;const Q=this.currentLoader.getTranslation(le).pipe((0,he.t)(1),(0,se.s)(1));return this.loadingTranslations=Q.pipe((0,de.T)(ae=>this.compiler.compileTranslations(ae,le)),(0,he.t)(1),(0,se.s)(1)),this.loadingTranslations.subscribe({next:ae=>{this.translations[le]=this.extend&&this.translations[le]?{...ae,...this.translations[le]}:ae,this.updateLangs(),this.pending=!1},error:ae=>{this.pending=!1}}),Q}setTranslation(le,Q,ae=!1){Q=this.compiler.compileTranslations(Q,le),this.translations[le]=(ae||this.extend)&&this.translations[le]?wt(this.translations[le],Q):Q,this.updateLangs(),this.onTranslationChange.emit({lang:le,translations:this.translations[le]})}getLangs(){return this.langs}addLangs(le){le.forEach(Q=>{-1===this.langs.indexOf(Q)&&this.langs.push(Q)})}updateLangs(){this.addLangs(Object.keys(this.translations))}getParsedResult(le,Q,ae){let Z;if(Q instanceof Array){let Ce={},Ue=!1;for(let ke of Q)Ce[ke]=this.getParsedResult(le,ke,ae),(0,$.A)(Ce[ke])&&(Ue=!0);if(Ue){const ke=Q.map(lt=>(0,$.A)(Ce[lt])?Ce[lt]:(0,g.of)(Ce[lt]));return(0,Y.p)(ke).pipe((0,de.T)(lt=>{let Ht={};return lt.forEach((Ne,Ee)=>{Ht[Q[Ee]]=Ne}),Ht}))}return Ce}if(le&&(Z=this.parser.interpolate(this.parser.getValue(le,Q),ae)),typeof Z>"u"&&null!=this.defaultLang&&this.defaultLang!==this.currentLang&&this.useDefaultLang&&(Z=this.parser.interpolate(this.parser.getValue(this.translations[this.defaultLang],Q),ae)),typeof Z>"u"){let Ce={key:Q,translateService:this};typeof ae<"u"&&(Ce.interpolateParams=ae),Z=this.missingTranslationHandler.handle(Ce)}return typeof Z<"u"?Z:Q}get(le,Q){if(!Le(le)||!le.length)throw new Error('Parameter "key" required');if(this.pending)return this.loadingTranslations.pipe((0,De.H)(ae=>(ae=this.getParsedResult(ae,le,Q),(0,$.A)(ae)?ae:(0,g.of)(ae))));{let ae=this.getParsedResult(this.translations[this.currentLang],le,Q);return(0,$.A)(ae)?ae:(0,g.of)(ae)}}getStreamOnTranslationChange(le,Q){if(!Le(le)||!le.length)throw new Error('Parameter "key" required');return(0,q.x)((0,ge.v)(()=>this.get(le,Q)),this.onTranslationChange.pipe((0,ce.n)(ae=>{const Z=this.getParsedResult(ae.translations,le,Q);return"function"==typeof Z.subscribe?Z:(0,g.of)(Z)})))}stream(le,Q){if(!Le(le)||!le.length)throw new Error('Parameter "key" required');return(0,q.x)((0,ge.v)(()=>this.get(le,Q)),this.onLangChange.pipe((0,ce.n)(ae=>{const Z=this.getParsedResult(ae.translations,le,Q);return(0,$.A)(Z)?Z:(0,g.of)(Z)})))}instant(le,Q){if(!Le(le)||!le.length)throw new Error('Parameter "key" required');let ae=this.getParsedResult(this.translations[this.currentLang],le,Q);if((0,$.A)(ae)){if(le instanceof Array){let Z={};return le.forEach((Ce,Ue)=>{Z[le[Ue]]=le[Ue]}),Z}return le}return ae}set(le,Q,ae=this.currentLang){this.translations[ae][le]=this.compiler.compile(Q,ae),this.updateLangs(),this.onTranslationChange.emit({lang:ae,translations:this.translations[ae]})}changeLang(le){this.currentLang=le,this.onLangChange.emit({lang:le,translations:this.translations[le]}),null==this.defaultLang&&this.changeDefaultLang(le)}changeDefaultLang(le){this.defaultLang=le,this.onDefaultLangChange.emit({lang:le,translations:this.translations[le]})}reloadLang(le){return this.resetLang(le),this.getTranslation(le)}resetLang(le){this._translationRequests[le]=void 0,this.translations[le]=void 0}getBrowserLang(){if(typeof window>"u"||typeof window.navigator>"u")return;let le=window.navigator.languages?window.navigator.languages[0]:null;return le=le||window.navigator.language||window.navigator.browserLanguage||window.navigator.userLanguage,typeof le>"u"?void 0:(-1!==le.indexOf("-")&&(le=le.split("-")[0]),-1!==le.indexOf("_")&&(le=le.split("_")[0]),le)}getBrowserCultureLang(){if(typeof window>"u"||typeof window.navigator>"u")return;let le=window.navigator.languages?window.navigator.languages[0]:null;return le=le||window.navigator.language||window.navigator.browserLanguage||window.navigator.userLanguage,le}}return $e.\u0275fac=function(le){return new(le||$e)(c.KVO(tt),c.KVO(ie),c.KVO(ne),c.KVO(Ut),c.KVO(Re),c.KVO(nt),c.KVO(st),c.KVO(te),c.KVO(Ve))},$e.\u0275prov=c.jDH({token:$e,factory:$e.\u0275fac}),$e})(),vt=(()=>{class $e{constructor(le,Q){this.translate=le,this._ref=Q,this.value="",this.lastKey=null,this.lastParams=[]}updateValue(le,Q,ae){let Z=Ce=>{this.value=void 0!==Ce?Ce:le,this.lastKey=le,this._ref.markForCheck()};if(ae){let Ce=this.translate.getParsedResult(ae,le,Q);(0,$.A)(Ce.subscribe)?Ce.subscribe(Z):Z(Ce)}this.translate.get(le,Q).subscribe(Z)}transform(le,...Q){if(!le||!le.length)return le;if(ut(le,this.lastKey)&&ut(Q,this.lastParams))return this.value;let ae;if(Le(Q[0])&&Q.length)if("string"==typeof Q[0]&&Q[0].length){let Z=Q[0].replace(/(\')?([a-zA-Z0-9_]+)(\')?(\s)?:/g,'"$2":').replace(/:(\s)?(\')(.*?)(\')/g,':"$3"');try{ae=JSON.parse(Z)}catch{throw new SyntaxError(`Wrong parameter in TranslatePipe. Expected a valid Object, received: ${Q[0]}`)}}else"object"==typeof Q[0]&&!Array.isArray(Q[0])&&(ae=Q[0]);
1return this.lastKey=le,this.lastParams=Q,this.updateValue(le,ae),this._dispose(),this.onTranslationChange||(this.onTranslationChange=this.translate.onTranslationChange.subscribe(Z=>{this.lastKey&&Z.lang===this.translate.currentLang&&(this.lastKey=null,this.updateValue(le,ae,Z.translations))})),this.onLangChange||(this.onLangChange=this.translate.onLangChange.subscribe(Z=>{this.lastKey&&(this.lastKey=null,this.updateValue(le,ae,Z.translations))})),this.onDefaultLangChange||(this.onDefaultLangChange=this.translate.onDefaultLangChange.subscribe(()=>{this.lastKey&&(this.lastKey=null,this.updateValue(le,ae))})),this.value}_dispose(){typeof this.onTranslationChange<"u"&&(this.onTranslationChange.unsubscribe(),this.onTranslationChange=void 0),typeof this.onLangChange<"u"&&(this.onLangChange.unsubscribe(),this.onLangChange=void 0),typeof this.onDefaultLangChange<"u"&&(this.onDefaultLangChange.unsubscribe(),this.onDefaultLangChange=void 0)}ngOnDestroy(){this._dispose()}}return $e.\u0275fac=function(le){return new(le||$e)(c.rXU(_e,16),c.rXU(c.gRc,16))},$e.\u0275pipe=c.EJ8({name:"translate",type:$e,pure:!1}),$e.\u0275prov=c.jDH({token:$e,factory:$e.\u0275fac}),$e})(),Yt=(()=>{class $e{static forRoot(le={}){return{ngModule:$e,providers:[le.loader||{provide:ie,useClass:we},le.compiler||{provide:ne,useClass:F},le.parser||{provide:Ut,useClass:et},le.missingTranslationHandler||{provide:Re,useClass:Be},tt,{provide:st,useValue:le.isolate},{provide:nt,useValue:le.useDefaultLang},{provide:te,useValue:le.extend},{provide:Ve,useValue:le.defaultLanguage},_e]}}static forChild(le={}){return{ngModule:$e,providers:[le.loader||{provide:ie,useClass:we},le.compiler||{provide:ne,useClass:F},le.parser||{provide:Ut,useClass:et},le.missingTranslationHandler||{provide:Re,useClass:Be},{provide:st,useValue:le.isolate},{provide:nt,useValue:le.useDefaultLang},{provide:te,useValue:le.extend},{provide:Ve,useValue:le.defaultLanguage},_e]}}}return $e.\u0275fac=function(le){return new(le||$e)},$e.\u0275mod=c.$C({type:$e}),$e.\u0275inj=c.G2t({}),$e})()},467:(ct,be,I)=>{"use strict";function c($,Y,q,ge,se,he,de){try{var De=$[he](de),ce=De.value}catch(ie){return void q(ie)}De.done?Y(ce):Promise.resolve(ce).then(ge,se)}function g($){return function(){var Y=this,q=arguments;return new Promise(function(ge,se){var he=$.apply(Y,q);function de(ce){c(he,ge,se,de,De,"next",ce)}function De(ce){c(he,ge,se,de,De,"throw",ce)}de(void 0)})}}I.d(be,{A:()=>g})},1635:(ct,be,I)=>{"use strict";function ie(Q,ae,Z,Ce){return new(Z||(Z=Promise))(function(ke,lt){function Ht(Qe){try{Ee(Ce.next(Qe))}catch(ze){lt(ze)}}function Ne(Qe){try{Ee(Ce.throw(Qe))}catch(ze){lt(ze)}}function Ee(Qe){Qe.done?ke(Qe.value):function Ue(ke){return ke instanceof Z?ke:new Z(function(lt){lt(ke)})}(Qe.value).then(Ht,Ne)}Ee((Ce=Ce.apply(Q,ae||[])).next())})}function et(Q){return this instanceof et?(this.v=Q,this):new et(Q)}function ne(Q,ae,Z){if(!Symbol.asyncIterator)throw new TypeError("Symbol.asyncIterator is not defined.");var Ue,Ce=Z.apply(Q,ae||[]),ke=[];return Ue={},lt("next"),lt("throw"),lt("return"),Ue[Symbol.asyncIterator]=function(){return this},Ue;function lt(ot){Ce[ot]&&(Ue[ot]=function(Mt){return new Promise(function(dn,nn){ke.push([ot,Mt,dn,nn])>1||Ht(ot,Mt)})})}function Ht(ot,Mt){try{!function Ne(ot){ot.value instanceof et?Promise.resolve(ot.value.v).then(Ee,Qe):ze(ke[0][2],ot)}(Ce[ot](Mt))}catch(dn){ze(ke[0][3],dn)}}function Ee(ot){Ht("next",ot)}function Qe(ot){Ht("throw",ot)}function ze(ot,Mt){ot(Mt),ke.shift(),ke.length&&Ht(ke[0][0],ke[0][1])}}function tt(Q){if(!Symbol.asyncIterator)throw new TypeError("Symbol.asyncIterator is not defined.");var Z,ae=Q[Symbol.asyncIterator];return ae?ae.call(Q):(Q=function ut(Q){var ae="function"==typeof Symbol&&Symbol.iterator,Z=ae&&Q[ae],Ce=0;if(Z)return Z.call(Q);if(Q&&"number"==typeof Q.length)return{next:function(){return Q&&Ce>=Q.length&&(Q=void 0),{value:Q&&Q[Ce++],done:!Q}}};throw new TypeError(ae?"Object is not iterable.":"Symbol.iterator is not defined.")}(Q),Z={},Ce("next"),Ce("throw"),Ce("return"),Z[Symbol.asyncIterator]=function(){return this},Z);function Ce(ke){Z[ke]=Q[ke]&&function(lt){return new Promise(function(Ht,Ne){!function Ue(ke,lt,Ht,Ne){Promise.resolve(Ne).then(function(Ee){ke({value:Ee,done:Ht})},lt)}(Ht,Ne,(lt=Q[ke](lt)).done,lt.value)})}}}I.d(be,{AQ:()=>ne,N3:()=>et,sH:()=>ie,xN:()=>tt}),"function"==typeof SuppressedError&&SuppressedError}},ct=>{var be=c=>ct(ct.s=c);be(4073),be(9818)}]);
Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.