1import{a as hr,b as Ye,c as Xe}from"./chunk-LTFY6TOW.js";import{a as Dt,d as It}from"./chunk-RFZTBOI2.js";import{a as ei,b as Je}from"./chunk-B6VMTOZY.js";import{a as nr,b as rr,f as Mt,g as ir,h as te,i as qe,j as sr,k as or,l as ar,m as lr,n as cr,o as ur,p as pr,q as mr}from"./chunk-FTFAYLIU.js";import{b as Xn}from"./chunk-4TKZQALM.js";import{a as R,b as ie,e as Yn,f as kt,j as we,k as Rt,l as Ge}from"./chunk-4NO22Y5Z.js";import{a as Zn,b as er,c as tr,d as Ce}from"./chunk-ETEYS7ZX.js";import"./chunk-PVNL2TQH.js";import{a as oe}from"./chunk-SEY4PHRU.js";import{a as he}from"./chunk-WN7VVGW7.js";import{a as k}from"./chunk-LOKQ4ROF.js";import{a as ge,c as Wn,d as me,f as Gn,g as qn,h as Jn,i as Nt}from"./chunk-ZJ6FCRI6.js";import{a as jn,b as Vn,d as xe,e as We,i as Qn,j as xn}from"./chunk-EEWN5LF7.js";import{A as Pt,B as Ve,F as Bn,G as $n,H as $,I as Qe,J as Kn,K as Un,L as zn,d as pe,v as je,y as Hn}from"./chunk-AUWCGCXJ.js";import{$a as ze,$c as Fn,Ab as kn,D as Tn,Fc as In,Gc as On,H as bt,L as Z,Q as re,Qa as An,V as Tt,Wa as Ue,Xa as At,ac as Rn,bc as Mn,ca as z,cc as Dn,ea as wn,ed as Ln,f as bn,g as Et,ga as I,ka as Te,la as wt,pa as ue,q as vt,qa as N,r as ye,s as D,tb as Pn,w as Ke,wa as Cn,x as U,xa as Ct,xb as Nn,z as _t}from"./chunk-JVZKY6W5.js";import{a as O,b as x,d as vn,e as $e,f as Zr,h as _n,i as Me}from"./chunk-Z2O5QKTL.js";var Qr=Zr((ca,Vr)=>{"use strict";Vr.exports=typeof self=="object"?self.FormData:window.FormData});var ti={native:{PlaceholderComponent:()=>import("./chunk-YNXCQLLK.js").then(r=>r.PlaceholderComponent)},rad:{BannerComponent:()=>import("./chunk-S2EHEFU4.js").then(r=>r.CustomCarouselSliderComponent),HeaderComponent:()=>import("./chunk-JTQOWT7S.js").then(r=>r.HeaderComponent),ImageComponent:()=>import("./chunk-NSCSLLF6.js").then(r=>r.ImageComponent),MenuComponent:()=>import("./chunk-OX2TKHC7.js").then(r=>r.MenuComponent),ParagraphComponent:()=>import("./chunk-WEJ2UB5T.js").then(r=>r.ParagraphComponent),StaticArticleComponent:()=>import("./chunk-DH5IWL4J.js").then(r=>r.StaticArticleComponent),FormBuilderComponent:()=>import("./chunk-H4BGO54C.js").then(r=>r.FormBuilderComponent),ChartComponent:()=>import("./chunk-GW7BZ7TJ.js").then(r=>r.ChartComponent),BreadcrumbComponent:()=>import("./chunk-MENONU5B.js").then(r=>r.BreadcrumbComponent),ButtonComponent:()=>import("./chunk-WJV4FEGS.js").then(r=>r.ButtonComponent),DataHtmlComponent:()=>import("./chunk-FIXYU345.js").then(r=>r.DataHtmlComponent),FaqComponent:()=>import("./chunk-4KG3ENBQ.js").then(r=>r.FaqComponent),MenuDetailsComponent:()=>import("./chunk-DERB3AXW.js").then(r=>r.MenuDetailsComponent),SubMenuComponent:()=>import("./chunk-HMRWCUYP.js").then(r=>r.SubMenuComponent),BlogArchiveComponent:()=>import("./chunk-QG3VSLN2.js").then(r=>r.BlogArchiveComponent),BlogDetailsComponent:()=>import("./chunk-LLIG4AAW.js").then(r=>r.BlogDetailsComponent),NewletterComponent:()=>import("./chunk-BIK2P2FA.js").then(r=>r.NewletterComponent),EcommerceCategoriesComponent:()=>import("./chunk-WYT4KJN3.js").then(r=>r.EcommerceCategoriesComponent),EcommerceProductDetailsComponent:()=>import("./chunk-AV4OHIYS.js").then(r=>r.EcommerceProductDetailsComponent),SocialShareLinksComponent:()=>import("./chunk-ZFSMJKXN.js").then(r=>r.SocialShareLinksComponent),ReviewsComponent:()=>import("./chunk-G2YMOAIP.js").then(r=>r.ReviewsComponent),EcommerceThumbnailProductComponent:()=>import("./chunk-A6ZWKVY6.js").then(r=>r.EcommerceThumbnailProductComponent),ProductsSelectionComponent:()=>import("./chunk-OND23BUW.js").then(r=>r.ProductsSelectionComponent),CartViewComponent:()=>import("./chunk-OMNZGNPU.js").then(r=>r.CartViewComponent),LmsStepperComponent:()=>import("./chunk-SXTJ5C66.js").then(r=>r.LmsStepperComponent),CartItemsComponent:()=>import("./chunk-EAUZ2W3N.js").then(r=>r.CartItemsComponent),WishListItemsComponent:()=>import("./chunk-JEVYIKZ3.js").then(r=>r.WishListItemsComponent),PhotoGalleryComponent:()=>import("./chunk-ZJ2KPWO7.js").then(r=>r.PhotoGalleryComponent),GalleryComponent:()=>import("./chunk-YUPTRRTW.js").then(r=>r.GalleryComponent),SitemapComponent:()=>import("./chunk-J6Y3UUZC.js").then(r=>r.SitemapComponent),SearchComponent:()=>import("./chunk-U6W6IBAK.js").then(r=>r.SearchComponent),SearchResultComponent:()=>import("./chunk-D4OJC3AJ.js").then(r=>r.SearchResultComponent),CustomCarouselSliderComponent:()=>import("./chunk-S2EHEFU4.js").then(r=>r.CustomCarouselSliderComponent),ShippingAddressComponent:()=>import("./chunk-FTD676FJ.js").then(r=>r.ShippingAddressComponent),EcommerceViewCartComponent:()=>import("./chunk-KCO5PG3P.js").then(r=>r.EcommerceViewCartComponent),NetworkPaymentComponent:()=>import("./chunk-OUTGWPNI.js").then(r=>r.NetworkPaymentComponent),ModalComponent:()=>import("./chunk-U5XAERA5.js").then(r=>r.ModalComponent),OrderStatusComponent:()=>import("./chunk-YPTKE5VM.js").then(r=>r.OrderStatusComponent),UserOrderHistoryComponent:()=>import("./chunk-GR6S544Y.js").then(r=>r.UserOrderHistoryComponent),TableComponent:()=>import("./chunk-U5GMVYMP.js").then(r=>r.TableComponent),AdvancedSearchProductsComponent:()=>import("./chunk-OFOHQZAM.js").then(r=>r.AdvancedSearchProductsComponent),DonationComponent:()=>import("./chunk-ZRDUNBPA.js").then(r=>r.DonationComponent),OtpComponent:()=>import("./chunk-N6L37PWG.js").then(r=>r.OtpComponent),AdvancedStaticArticleComponent:()=>import("./chunk-S57A2RJ4.js").then(r=>r.AdvancedStaticArticleComponent),UserAddressesComponent:()=>import("./chunk-7NRUYWYO.js").then(r=>r.UserAddressesComponent),UserOrderDetailsComponent:()=>import("./chunk-TQV3IQ3B.js").then(r=>r.UserOrderDetailsComponent),OrderSummaryComponent:()=>import("./chunk-VOE5Y3DF.js").then(r=>r.OrderSummaryComponent),UserInformationsComponent:()=>import("./chunk-FV4RCJZ6.js").then(r=>r.UserInformationsComponent),ForgotPasswordComponent:()=>import("./chunk-ONNVRFNY.js").then(r=>r.ForgotPasswordComponent),StatusMessageComponent:()=>import("./chunk-XQMATA3V.js").then(r=>r.StatusMessageComponent),CommonRegistrationComponent:()=>import("./chunk-USE5KIPQ.js").then(r=>r.CommonRegistrationComponent),ShipmentTrackingComponent:()=>import("./chunk-GVGGMRSS.js").then(r=>r.ShipmentTrackingComponent),LoginComponent:()=>import("./chunk-DJBQX5ZU.js").then(r=>r.LoginComponent),BackButtonComponent:()=>import("./chunk-G7CROONA.js").then(r=>r.BackButtonComponent),BasicProfileComponent:()=>import("./chunk-UZAZN6EO.js").then(r=>r.BasicProfileComponent),HrEmployeesComponent:()=>import("./chunk-4DXMLT7Y.js").then(r=>r.HrEmployeesComponent),ConferenceRoomsWidgetComponent:()=>import("./chunk-55GDEM74.js").then(r=>r.ConferenceRoomsWidgetComponent),ExtensionSheetComponent:()=>import("./chunk-IQYU35GB.js").then(r=>r.ExtensionSheetComponent),TodoComponent:()=>import("./chunk-S4JKHB3X.js").then(r=>r.TodoComponent),ChatConfigurationComponent:()=>import("./chunk-GHJKTIKE.js").then(r=>r.ChatConfigurationComponent),UserPreferencesComponent:()=>import("./chunk-36Z65HPJ.js").then(r=>r.UserPreferencesComponent),BirthdayCardComponent:()=>import("./chunk-PBUMQLTP.js").then(r=>r.BirthdayCardComponent),NotificationComponent:()=>import("./chunk-S2JRR3KV.js").then(r=>r.NotificationComponent)}};function Ze(r,e){return ti[r][e]}
1var Ae=class r{constructor(e,t,n){this.router=e;this.storageService=t;this.document=n}canActivate(e,t){let n=this.storageService.currentHostnameInfo?.prefix?.trim(),i=decodeURIComponent(t.url),s=this.storageService.currentHostnameInfo?.hostname||"";if(s.includes("/")&&i.split("/")[1]==s.split("/")[1]){let o=i.split("/");if(!i.split("/").slice(2).join("/").startsWith(n)&&n){o.splice(2,0,n);let a=o.join("/");return console.log(a,"neewww2"),this.router.navigateByUrl(a.replace(/\/$/,"")),!1}if(i.split("/").slice(2).join("/").startsWith(e.params.prefix)&&!n){let a=`/${o[1]}/${o.slice(3).join("/")}`;return this.router.navigateByUrl(a.replace(/\/$/,"")||"/"),console.log(a,"neewww1"),!1}}else{if(n&&!i.startsWith(`/${n}`))return this.router.navigateByUrl(`/${n}${i.startsWith("/")?"":"/"}${i}`),!1;if(!n&&i.startsWith(`/${e.params.prefix}`)){let o=i.replace(`/${e.params.prefix}`,"");return this.router.navigateByUrl(o||"/"),!1}}return!0}static \u0275fac=function(t){return new(t||r)(ue(me),ue(oe),ue(pe))};static \u0275prov=Te({token:r,factory:r.\u0275fac,providedIn:"root"})};var ni=(r,e)=>Me(void 0,null,function*(){try{let t=N(xe),n=N(Qe),i=N(pe),s=N(he),o=N(We),a=N(oe),l=N(Je),u=N(me),c=N(hr),f=N(Ye),C=r.params.prefix||"",b="";C==a.currentHostnameInfo.prefix?b=r.params.slug||a.currentHostnameInfo.defaultRoute:b=r.params.slug||C||a.currentHostnameInfo.defaultRoute,console.log(b,"slug",r.params,a.currentHostnameInfo.defaultRoute,r.params.slug,C,a.currentHostnameInfo.defaultRoute);let v=yield Ke(l.handShaking().pipe(z(A=>{if(!A)throw new Error("Handshake failed");return Tn([n.post(`${k.dcmsBaseUrl}/api/Sites/GetSlugTemplateSettings`,{slug:b}),n.post(`${k.dcmsBaseUrl}/api/Sites/GetSlugSettings`,{slug:b,browserName:"chrome",browserVersion:"Chrome 127"}),n.post(`${k.dcmsBaseUrl}/api/Sites/GetMetaTages`,{slug:b}),k.useUserPreferences?n.get(`${k.dcmsBaseUrl}/api/UserPreferences/GetUserPreferences`):ye(null),k.useUserCulturePreference?n.put(`${k.dcmsBaseUrl}/api/Account/SetUserCulturePreference`,{}):ye(null)])}),Z(A=>D(()=>new Error(A)))).pipe(U(A=>{let W=A[0],j=A[1],K=null;switch(j.content&&(j=j.content),W.content&&(W=W.content),j.slugType){case 1:K=j.pageSettings;break;case 2:K=j.postSettings;break;case 3:K=j.brandSettings;break;case 4:K=j.categoriesSettings;break;case 5:K=j.productSettings;break;default:break}f.pageSettings=K;let Re=K.slug?K.slug:f.site.defaultSlug;if(f.currenSlug=Re,f.removeAllMeta(),j.slugType==1?f.setPageMetaData(K):j.slugType===2?f.setPostMetatags(K):f.setOtherSlugMetatags(K),A[2]&&A[2].result&&(JSON.parse(A[2].result).PrimaryTags&&JSON.parse(A[2].result).PrimaryTags.forEac
1h(V=>{var L={};V.forEach(g=>{L[g.key]=g.value}),t.getTag(`${L.name?"name":"property"}="${L.name||L.property}"`)?t.updateTag(L):t.addTag(L)}),JSON.parse(A[2].result).MetaTags.forEach(V=>{var L={};V.forEach(g=>{L[g.key]=g.value}),t.getTag(`${L.name?"name":"property"}="${L.name||L.property}"`)?t.updateTag(L):t.addTag(L)})),console.log(A[3]),A[3]&&typeof A[3]!="string"){if(A[3].themeDetails){if(A[3].themeDetails.colors&&(f.theme.colors=JSON.parse(A[3].themeDetails.colors)),A[3].themeDetails.classes&&(f.theme.classes=JSON.parse(A[3].themeDetails.classes)),A[3].themeDetails.fonts){A[3].themeDetails.fonts=JSON.parse(A[3].themeDetails.fonts);let V=i.getElementsByTagName("head")[0],L=i.getElementsByTagName("style"),g=i.getElementsByTagName("link");for(let E=0;E<L.length;E++){let w=L[E];w.id.indexOf("theme-font")!==-1&&(V.removeChild(w),E=E-1)}for(let E=0;E<L.length;E++){let w=L[E];w.id.indexOf("theme-css")!==-1&&(V.removeChild(w),E=E-1)}for(let E=0;E<g.length;E++){let w=g[E],M=w.getAttribute("name");M&&M.indexOf("theme-font")!==-1&&(V.removeChild(w),E=E-1)}let T=A[3].themeDetails.fonts;for(let E=0;E<T.length;E++){let w=T[E];if(w.fontLink.includes("<link")){let M=i.getElementsByTagName("head")[0];i.head.appendChild(w.fontLink)}else if(w.fontLink.includes("/Resources")){let M=i.createElement("style");M.type="text/css",M.id="theme-font";let Y=` 2 @font-face { 3 font-display: swap; 4 font-family: `+w.fontName+`; 5 src: url(`+w.fontLink+`); 6 } 7 `;M.appendChild(i.createTextNode(Y)),V.appendChild(M)}else{let M=i.createElement("link");M.setAttribute("rel","stylesheet"),M.setAttribute("type","text/css"),M.setAttribute("name","theme-font"),M.setAttribute("href",w.fontLink),i.head.appendChild(M)}w.isPrimaryFonts&&(i.body.style.fontFamily=w.fontName)}}if(A[3].themeDetails.styles){let V=JSON.parse(A[3].themeDetails.styles),L=i.getElementsByTagName("head")[0],g=i.createElement("style");g.type="text/css",g.id="theme-css",g.appendChild(i.createTextNode(V)),L.appendChild(g)}if(A[3].themeDetails.scripts instanceof Node){let V=JSON.parse(A[3].themeDetails.scripts);i.head.appendChild(V)}if(A[3].themeDetails.importFiles&&A[3].themeDetails.importFiles.length!=0){let V=A[3].themeDetails.importFiles,L=i.getElementsByTagName("head")[0],g=i.createElement("script"),T=i.createElement("link");for(let E=0;E<V.length;E++){let w=V[E];w.contentType.indexOf("javascript")!==-1&&(g.id=w.fileId,g.src=w.fileUrl,g.type=w.contentType,L.appendChild(g)),w.contentType.indexOf("css")!==-1&&(T.rel="stylesheet",T.id=w.fileId,T.href=w.fileUrl,T.type=w.contentType,L.appendChild(T))}}}A[3].fontSize&&i.body.setAttribute("style",`font-size: ${A[3].fontSize} !important;`),a.set("dateFormat",A[3].dateFormate),a.set("timeFormat",A[3].timeFormate?A[3].timeFormate:"")}return{templateData:W,slugData:K,slugType:j.slugType}}))),p=v.templateData,m=v.slugData,d=v.slugType,h=o.getTitle();o.setTitle(`${a.currentHostnameInfo.siteName} | ${m.name||m.title}`);let y=[];y=p?.currentVersion?JSON.parse(p.currentVersion.templateComponents):[];let _=[];d==1&&(_=JSON.parse(m.currentVersion.pageComponents));let S=[...y,..._],F=[...new Set(S)].map(A=>Me(void 0,null,function*(){try{if(c.get(A)&&c.remove(A),yield Ze("rad",A)){let K=yield Ze("rad",A)();c.set(A,K)}else throw"Component Not Found!!!"}catch{if(!c.get("PlaceholderComponent")){let j=yield Ze("native","PlaceholderComponent")();c.set("PlaceholderComponent",j)}}}));return yield Promise.all(F),{templateData:p,slugData:m}}catch(t){console.log(t,"ERRRRRRRRR")}});function ri(r,e,t){let n=oe.getInstance(),i=n.currentHostnameInfo?.prefix||"",s=n.currentHostnameInfo?.hostname.split("/").slice(1)||[],o={};if(console.log(r,"segments",n.currentHostnameInfo),r.length===0)return{consumed:[]};if(s.length>0&&r[0].path!==s[0])r.length>1&&(r=r.slice(1));else if(s.length>0&&r[0].path==s[0]&&(r=r.slice(1),r.length===0))return{consumed:[new ge(s[0],{})]};let a=r[0].path;return i&&i===a?(o.prefix=r[0],r.length>=2?(o.slug=r[1],r.length>=3?(o.param=r[2],s.length>0?{consumed:[new ge(s[0],{}),...r.slice(0,3)],posParams:o}:{consumed:r.slice(0,3),posParams:o}):s.length>0?{consumed:[new ge(s[0],{}),...r.slice(0,2)],posParams:o}:{consumed:r.slice(0,2),posParams:o}):s.length>0?{consumed:[new ge(s[0],{}),...r.slice(0,1)],posParams:o}:{consumed:r.slice(0,1),posParams:o}):(o.slug=r[0],r.length>=2?(o.param=r[1],s.length>0?{consumed:[new ge(s[0],{}),...r.slice(0,2)],posParams:o}:{consumed:r.slice(0,2),posParams:o}):s.length>0?{consumed:[new ge(s[0],{}),...r.slice(0,1)],posParams:o}:{consumed:r.slice(0,1),posParams:o})}var Ot=[{matcher:ri,loadComponent:()=>import("./chunk-WVSQCEB6.js").then(r=>r.ComponentsWrapperComponent),resolve:{routeData:ni},canActivate:[Ae]},{path:"**",redirectTo:"page-not-found"}],fr=class r{static \u0275fac=function(t){return new(t||r)};static \u0275mod=Ct({type:r});static \u0275inj=wt({imports:[Nt.forRoot(Ot),Nt]})};var $t=(r,e)=>{let t=p=>p instanceof $,n=N(oe),i=N(he),s=N(Xe),o=N(me),a=N(tr,{optional:!0}),l=N(Zn,{optional:!0}),u=N(er,{optional:!0}),c={},f=n._webAccessToken||"",C=n._guest_token||"",b=n._webRefreshToken||"";c.source="2",c.branchId=n.get("selectedBranch")?.toString()||"",k.enableCypherSecurity&&i.isPlatformBrowser||(c.IntegrationPermission="0f5d983d203189bbffc5f686d01f6680bc6a83718a515fe42639347efc92478e"),r.url.match(/.*\/adapi\/Identity\/AdLogin$/i)||(c.authorization=`Bearer ${f||C||k.ssrToken}`),c["dcms-apikey"]="B8524FE6151c40B38E69F5Ac476646EC",r.url.match(/.*\/api\/sites\/getsiteidbyhostname$/i)||r.url.includes("HandShake")?(c["Content-Type"]="application/json",c.oldcontenttype="JSON"):(c.siteid=n?.currentHostnameInfo?.siteId?.toString()||"",c.cultureid=n?.currentHostnameInfo?.cultureId?.toString()||"");let v=r.clone({setHeaders:c,url:r.url});return e(v).pipe(U(p=>{if(p.type==$n.Response){let m=p.body||p,d;
7if(t(p))return typeof p.body=="string"&&p.body.length>0&&(d=p.clone({body:JSON.parse(p.body).content})),p.body&&p.body.content&&(d=p.clone({body:p.body.content})),d;{let h=m?.content||m;return new $({body:h,status:200,statusText:"OK",headers:void 0,url:r.url})}}return p}),Z(p=>{if(p.status==409||p.error&&p.error.status==409){var m=p.error?p.error.message:p.message;o.navigate([m])}if(p.url&&p.url.includes("GetSlugSettings")&&p.status==404){if(o.url.includes("page-not-found"))return D(()=>new Error(p));let d=n.currentHostnameInfo?.hostname||"";if(d.includes("/")){let h=d.split("/").slice(1)[0],y=n.currentHostnameInfo?.prefix?h+"/"+n.currentHostnameInfo?.prefix:h;o.navigateByUrl(`/${y}/page-not-found`).finally(()=>D(()=>new Error("Page Not Found")))}else o.navigate(["page-not-found"]).finally(()=>D(()=>new Error("Page Not Found")))}return(p.status===401||p.status===0)&&i.isPlatformServer&&l?Lt?Ht.pipe(bt(h=>h!=null),re(1),_t(h=>{let y=r.clone({setHeaders:{Authorization:`Bearer ${h.token}`,siteId:n?.currentHostnameInfo?.siteId?.toString()||"",cultureId:n?.currentHostnameInfo?.cultureId?.toString()||""},url:r.url});return e(y)})):(Lt=!0,Ht.next(null),s.refreshTokenForServerSide(l,u).pipe(z(h=>{Ht.next(h);let y=`${k.webAccessToken||"web_access_token"}=${h.token}; HttpOnly; Secure ; Max-Age=34560000`,_=`${k.webRefreshToken||"web_refresh_token"}=${h.refreshToken}; HttpOnly; Secure Max-Age=34560000`,S=[y,_];a.setHeader("Set-Cookie",S),console.log("refresh server 111111111111111");let P=r.clone({setHeaders:{Authorization:`Bearer ${h.token}`,siteId:n?.currentHostnameInfo?.siteId?.toString()||"",cultureId:n?.currentHostnameInfo?.cultureId?.toString()||""},url:r.url});return e(P)}),Z(h=>(console.log("Refresh token failed with 500. Logging out user..."),D(()=>new Error("Session Timeout due to server error from server $$$!")))),Tt(()=>{Lt=!1}))):(p.status===401||p.status===0)&&s.isLoggedIn()&&i.isPlatformBrowser?Ft?Bt.pipe(bt(d=>d!=null),re(1),_t(d=>{console.log(d);let h=r.clone({setHeaders:{Authorization:`Bearer ${d.token}`,siteId:n?.currentHostnameInfo?.siteId?.toString()||"",cultureId:n?.currentHostnameInfo?.cultureId?.toString()||""},url:r.url});return e(h)})):(Ft=!0,Bt.next(null),s.newRefreshToken(!1).pipe(z(d=>{Bt.next(d);let h=r.clone({setHeaders:{Authorization:`Bearer ${d.token}`,siteId:n?.currentHostnameInfo?.siteId?.toString()||"",cultureId:n?.currentHostnameInfo?.cultureId?.toString()||""},url:r.url});return e(h)}),Z(d=>vt(s.loggeOut()).pipe(z(()=>D(()=>new Error("Session Timeout due to server error broswer!"))))),Tt(()=>{Ft=!1}))):p?.status===500?(console.log("Refresh token failed with 500. Logging out user..."),vt(s.loggeOut()).pipe(z(()=>D(()=>new Error("Session Timeout due to server error!"))))):D(()=>p?.error?p.error:p)}))},Ft=!1,Lt=!1,Ht=new Et(null),Bt=new Et(null);function dr(r){return new I(3e3,!1)}function ii(){return new I(3100,!1)}function si(){return new I(3101,!1)}function oi(r){return new I(3001,!1)}function ai(r){return new I(3003,!1)}function li(r){return new I(3004,!1)}function ci(r,e){return new I(3005,!1)}function ui(){return new I(3006,!1)}function pi(){return new I(3007,!1)}function mi(r,e){return new I(3008,!1)}function hi(r){return new I(3002,!1)}function fi(r,e,t,n,i){return new I(3010,!1)}function di(){return new I(3011,!1)}function yi(){return new I(3012,!1)}function gi(){return new I(3200,!1)}function Si(){return new I(3202,!1)}function Ei(){return new I(3013,!1)}function vi(r){return new I(3014,!1)}function _i(r){return new I(3015,!1)}function bi(r){return new I(3016,!1)}function Ti(r,e){return new I(3404,!1)}function wi(r){return new I(3502,!1)}function Ci(r){return new I(3503,!1)}function Ai(){return new I(3300,!1)}function Pi(r){return new I(3504,!1)}function Ni(r){return new I(3301,!1)}function ki(r,e){return new I(3302,!1)}function Ri(r){return new I(3303,!1)}function Mi(r,e){return new I(3400,!1)}function Di(r){return new I(3401,!1)}function Ii(r){return new I(3402,!1)}function Oi(r,e){return new I(3505,!1)}function fe(r){switch(r.length){case 0:return new we;case 1:return r[0];default:return new Rt(r)}}function kr(r,e,t=new Map,n=new Map){let i=[],s=[],o=-1,a=null;if(e.forEach(l=>{let u=l.get("offset"),c=u==o,f=c&&a||new Map;l.forEach((C,b)=>{let v=b,p=C;if(b!=="offset")switch(v=r.normalizePropertyName(v,i),p){case Ge:p=t.get(b);break;case ie:p=n.get(b);break;default:p=r.normalizeStyleValue(b,v,p,i);break}f.set(v,p)}),c||s.push(f),a=f,o=u}),i.length)throw wi(i);return s}function cn(r,e,t,n){switch(e){case"start":r.onStart(()=>n(t&&Kt(t,"start",r)));break;case"done":r.onDone(()=>n(t&&Kt(t,"done",r)));break;
7case"destroy":r.onDestroy(()=>n(t&&Kt(t,"destroy",r)));break}}function Kt(r,e,t){let n=t.totalTime,i=!!t.disabled,s=un(r.element,r.triggerName,r.fromState,r.toState,e||r.phaseName,n??r.totalTime,i),o=r._data;return o!=null&&(s._data=o),s}function un(r,e,t,n,i="",s=0,o){return{element:r,triggerName:e,fromState:t,toState:n,phaseName:i,totalTime:s,disabled:!!o}}function J(r,e,t){let n=r.get(e);return n||r.set(e,n=t),n}function yr(r){let e=r.indexOf(":"),t=r.substring(1,e),n=r.slice(e+1);return[t,n]}var Fi=typeof document>"u"?null:document.documentElement;function pn(r){let e=r.parentNode||r.host||null;return e===Fi?null:e}function Li(r){return r.substring(1,6)=="ebkit"}var Se=null,gr=!1;function Hi(r){Se||(Se=Bi()||{},gr=Se.style?"WebkitAppearance"in Se.style:!1);let e=!0;return Se.style&&!Li(r)&&(e=r in Se.style,!e&&gr&&(e="Webkit"+r.charAt(0).toUpperCase()+r.slice(1)in Se.style)),e}function Bi(){return typeof document<"u"?document.body:null}function Rr(r,e){for(;e;){if(e===r)return!0;e=pn(e)}return!1}function Mr(r,e,t){if(t)return Array.from(r.querySelectorAll(e));let n=r.querySelector(e);return n?[n]:[]}var mn=(()=>{class r{validateStyleProperty(t){return Hi(t)}containsElement(t,n){return Rr(t,n)}getParentElement(t){return pn(t)}query(t,n,i){return Mr(t,n,i)}computeStyle(t,n,i){return i||""}animate(t,n,i,s,o,a=[],l){return new we(i,s)}static{this.\u0275fac=function(n){return new(n||r)}}static{this.\u0275prov=Te({token:r,factory:r.\u0275fac})}}return r})(),_e=class{static{this.NOOP=new mn}},be=class{};var $i=1e3,Dr="{{",Ki="}}",Ir="ng-enter",xt="ng-leave",tt="ng-trigger",ot=".ng-trigger",Sr="ng-animating",Wt=".ng-animating";function ae(r){if(typeof r=="number")return r;let e=r.match(/^(-?[\.\d]+)(m?s)/);return!e||e.length<2?0:Gt(parseFloat(e[1]),e[2])}function Gt(r,e){switch(e){case"s":return r*$i;default:return r}}function at(r,e,t){return r.hasOwnProperty("duration")?r:Ui(r,e,t)}function Ui(r,e,t){let n=/^(-?[\.\d]+)(m?s)(?:\s+(-?[\.\d]+)(m?s))?(?:\s+([-a-z]+(?:\(.+?\))?))?$/i,i,s=0,o="";if(typeof r=="string"){let a=r.match(n);if(a===null)return e.push(dr(r)),{duration:0,delay:0,easing:""};i=Gt(parseFloat(a[1]),a[2]);let l=a[3];l!=null&&(s=Gt(parseFloat(l),a[4]));let u=a[5];u&&(o=u)}else i=r;if(!t){let a=!1,l=e.length;i<0&&(e.push(ii()),a=!0),s<0&&(e.push(si()),a=!0),a&&e.splice(l,0,dr(r))}return{duration:i,delay:s,easing:o}}function zi(r){return r.length?r[0]instanceof Map?r:r.map(e=>new Map(Object.entries(e))):[]}function se(r,e,t){e.forEach((n,i)=>{let s=hn(i);t&&!t.has(i)&&t.set(i,r.style[s]),r.style[s]=n})}function ve(r,e){e.forEach((t,n)=>{let i=hn(n);r.style[i]=""})}function De(r){return Array.isArray(r)?r.length==1?r[0]:Yn(r):r}function ji(r,e,t){let n=e.params||{},i=Or(r);i.length&&i.forEach(s=>{n.hasOwnProperty(s)||t.push(oi(s))})}var qt=new RegExp(`${Dr}\\s*(.+?)\\s*${Ki}`,"g");function Or(r){let e=[];
vendor: 43,393 bytes, line 7
7if(typeof r=="string"){let t;for(;t=qt.exec(r);)e.push(t[1]);qt.lastIndex=0}return e}function Oe(r,e,t){let n=`${r}`,i=n.replace(qt,(s,o)=>{let a=e[o];return a==null&&(t.push(ai(o)),a=""),a.toString()});return i==n?r:i}var Vi=/-+([a-z0-9])/g;function hn(r){return r.replace(Vi,(...e)=>e[1].toUpperCase())}function Qi(r,e){return r===0||e===0}function xi(r,e,t){if(t.size&&e.length){let n=e[0],i=[];if(t.forEach((s,o)=>{n.has(o)||i.push(o),n.set(o,s)}),i.length)for(let s=1;s<e.length;s++){let o=e[s];i.forEach(a=>o.set(a,fn(r,a)))}}return e}function q(r,e,t){switch(e.type){case R.Trigger:return r.visitTrigger(e,t);case R.State:return r.visitState(e,t);case R.Transition:return r.visitTransition(e,t);case R.Sequence:return r.visitSequence(e,t);case R.Group:return r.visitGroup(e,t);case R.Animate:return r.visitAnimate(e,t);case R.Keyframes:return r.visitKeyframes(e,t);case R.Style:return r.visitStyle(e,t);case R.Reference:return r.visitReference(e,t);case R.AnimateChild:return r.visitAnimateChild(e,t);case R.AnimateRef:return r.visitAnimateRef(e,t);case R.Query:return r.visitQuery(e,t);case R.Stagger:return r.visitStagger(e,t);default:throw li(e.type)}}function fn(r,e){return window.getComputedStyle(r)[e]}var Wi=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"]),lt=class extends be{normalizePropertyName(e,t){return hn(e)}normalizeStyleValue(e,t,n,i){let s="",o=n.toString().trim();if(Wi.has(t)&&n!==0&&n!=="0")if(typeof n=="number")s="px";else{let a=n.match(/^[+-]?[\d\.]+([a-z]*)$/);a&&a[1].length==0&&i.push(ci(e,n))}return o+s}};var ct="*";function Gi(r,e){let t=[];return typeof r=="string"?r.split(/\s*,\s*/).forEach(n=>qi(n,t,e)):t.push(r),t}function qi(r,e,t){if(r[0]==":"){let l=Ji(r,t);if(typeof l=="function"){e.push(l);return}r=l}let n=r.match(/^(\*|[-\w]+)\s*(<?[=-]>)\s*(\*|[-\w]+)$/);if(n==null||n.length<4)return t.push(_i(r)),e;let i=n[1],s=n[2],o=n[3];e.push(Er(i,o));let a=i==ct&&o==ct;s[0]=="<"&&!a&&e.push(Er(o,i))}function Ji(r,e){switch(r){case":enter":return"void => *";case":leave":return"* => void";case":increment":return(t,n)=>parseFloat(n)>parseFloat(t);case":decrement":return(t,n)=>parseFloat(n)<parseFloat(t);default:return e.push(bi(r)),"* => *"}}var nt=new Set(["true","1"]),rt=new Set(["false","0"]);function Er(r,e){let t=nt.has(r)||rt.has(r),n=nt.has(e)||rt.has(e);return(i,s)=>{let o=r==ct||r==i,a=e==ct||e==s;return!o&&t&&typeof i=="boolean"&&(o=i?nt.has(r):rt.has(r)),!a&&n&&typeof s=="boolean"&&(a=s?nt.has(e):rt.has(e)),o&&a}}var Fr=":self",Yi=new RegExp(`s*${Fr}s*,?`,"g");function Lr(r,e,t,n){return new Jt(r).build(e,t,n)}var vr="",Jt=class{constructor(e){this._driver=e}build(e,t,n){let i=new Yt(t);return this._resetContextStyleTimingState(i),q(this,De(e),i)}_resetContextStyleTimingState(e){e.currentQuerySelector=vr,e.collectedStyles=new Map,e.collectedStyles.set(vr,new Map),e.currentTime=0}visitTrigger(e,t){let n=t.queryCount=0,i=t.depCount=0,s=[],o=[];return e.name.charAt(0)=="@"&&t.errors.push(ui()),e.definitions.forEach(a=>{if(this._resetContextStyleTimingState(t),a.type==R.State){let l=a,u=l.name;u.toString().split(/\s*,\s*/).forEach(c=>{l.name=c,s.push(this.visitState(l,t))}),l.name=u}else if(a.type==R.Transition){let l=this.visitTransition(a,t);n+=l.queryCount,i+=l.depCount,o.push(l)}else t.errors.push(pi())}),{type:R.Trigger,name:e.name,states:s,transitions:o,queryCount:n,depCount:i,options:null}}visitState(e,t){let n=this.visitStyle(e.styles,t),i=e.options&&e.options.params||null;if(n.containsDynamicStyles){let s=new Set,o=i||{};n.styles.forEach(a=>{a instanceof Map&&a.forEach(l=>{Or(l).forEach(u=>{o.hasOwnProperty(u)||s.add(u)})})}),s.size&&t.errors.push(mi(e.name,[...s.values()]))}return{type:R.State,name:e.name,style:n,options:i?{params:i}:null}}visitTransition(e,t){t.queryCount=0,t.depCount=0;let n=q(this,De(e.animation),t),i=Gi(e.expr,t.errors);return{type:R.Transition,matchers:i,animation:n,queryCount:t.queryCount,depCount:t.depCount,options:Ee(e.options)}}visitSequence(e,t){return{type:R.Sequence,steps:e.steps.map(n=>q(this,n,t)),options:Ee(e.options)}}visitGroup(e,t){let n=t.currentTime,i=0,s=e.steps.map(o=>{t.currentTime=n;let a=q(this,o,t);return i=Math.max(i,t.currentTime),a});return t.currentTime=i,{type:R.Group,steps:s,options:Ee(e.options)}}visitAnimate(e,t){let n=ts(e.timings,t.errors);t.currentAnimateTimings=n;let i,s=e.styles?e.styles:kt({});if(s.type==R.Keyframes)i=this.visitKeyframes(s,t);else{let o=e.styles,a=!1;if(!o){a=!0;let u={};n.easing&&(u.easing=n.easing),o=kt(u)}t.currentTime+=n.duration+n.delay;let l=this.visitStyle(o,t);l.isEmptyStep=a,i=l}return t.currentAnimateTimings=null,{type:R.Animate,timings:n,style:i,options:null}}visitStyle(e,t){let n=this._makeStyleAst(e,t);return this._validateStyleAst(n,t),n}_makeStyleAst(e,t){let n=[],i=Array.isArray(e.styles)?e.styles:[e.styles];for(let a of i)typeof a=="string"?a===ie?n.push(a):t.errors.push(hi(a)):n.push(new Map(Object.entries(a)));let s=!1,o=null;return n.forEach(a=>{if(a instanceof Map&&(a.has("easing")&&(o=a.get("easing"),a.delete("easing")),!s)){for(let l of a.values())if(l.toString().indexOf(Dr)>=0){s=!0;break}}}),{type:R.Style,styles:n,easing:o,offset:e.offset,containsDynamicStyles:s,options:null}}_validateStyleAst(e,t){let n=t.currentAnimateTimings,i=t.currentTime,s=t.currentTime;n&&s>0&&(s-=n.duration+n.delay),e.styles.forEach(o=>{typeof o!="string"&&o.forEach((a,l)=>{let u=t.collectedStyles.get(t.currentQuerySelector),c=u.get(l),f=!0;c&&(s!=i&&s>=c.startTime&&i<=c.endTime&&(t.errors.push(fi(l,c.startTime,c.endTime,s,i)),f=!1),s=c.startTime),f&&u.set(l,{startTime:s,endTime:i}),t.options&&ji(a,t.options,t.errors)})})}visitKeyframes(e,t){let n={type:R.Keyframes,styles:[],options:null};if(!t.currentAnimateTimings)return t.errors.push(di()),n;let i=1,s=0,o=[],a=!1,l=!1,u=0,c=e.steps.map(d=>{let h=this._makeStyleAst(d,t),y=h.offset!=null?h.offset:es(h.styles),_=0;return y!=null&&(s++,_=h.offset=y),l=l||_<0||_>1,a=a||_<u,u=_,o.push(_),h});l&&t.errors.push(yi()),a&&t.errors.push(gi());let f=e.steps.length,C=0;s>0&&s<f?t.errors.push(Si()):s==0&&(C=i/(f-1));let b=f-1,v=t.currentTime,p=t.currentAnimateTimings,m=p.duration;return c.forEach((d,h)=>{let y=C>0?h==b?1:C*h:o[h],_=y*m;t.currentTime=v+p.delay+_,p.duration=_,this._validateStyleAst(d,t),d.offset=y,n.styles.push(d)}),n}visitReference(e,t){return{type:R.Reference,animation:q(this,De(e.animation),t),options:Ee(e.options)}}visitAnimateChild(e,t){return t.depCount++,{type:R.AnimateChild,options:Ee(e.options)}}visitAnimateRef(e,t){return{type:R.AnimateRef,animation:this.visitReference(e.animation,t),options:Ee(e.options)}}visitQuery(e,t){let n=t.currentQuerySelector,i=e.options||{};t.queryCount++,t.currentQuery=e;let[s,o]=Xi(e.selector);t.currentQuerySelector=n.length?n+" "+s:s,J(t.collectedStyles,t.currentQuerySelector,new Map);let a=q(this,De(e.animation),t);return t.currentQuery=null,t.currentQuerySelector=n,{type:R.Query,selector:s,limit:i.limit||0,optional:!!i.optional,includeSelf:o,animation:a,originalSelector:e.selector,options:Ee(e.options)}}visitStagger(e,t){t.currentQuery||t.errors.push(Ei());let n=e.timings==="full"?{duration:0,delay:0,easing:"full"}:at(e.timings,t.errors,!0);return{type:R.Stagger,animation:q(this,De(e.animation),t),timings:n,options:null}}};function Xi(r){let e=!!r.split(/\s*,\s*/).find(t=>t==Fr);return e&&(r=r.replace(Yi,"")),r=r.replace(/@\*/g,ot).replace(/@\w+/g,t=>ot+"-"+t.slice(1)).replace(/:animating/g,Wt),[r,e]}function Zi(r){return r?O({},r):null}var Yt=class{constructor(e){this.errors=e,this.queryCount=0,this.depCount=0,this.currentTransition=null,this.currentQuery=null,this.currentQuerySelector=null,this.currentAnimateTimings=null,this.currentTime=0,this.collectedStyles=new Map,this.options=null,this.unsupportedCSSPropertiesFound=new Set}};function es(r){if(typeof r=="string")return null;let e=null;if(Array.isArray(r))r.forEach(t=>{if(t instanceof Map&&t.has("offset")){let n=t;e=parseFloat(n.get("offset")),n.delete("offset")}});else if(r instanceof Map&&r.has("offset")){let t=r;e=parseFloat(t.get("offset")),t.delete("offset")}return e}function ts(r,e){if(r.hasOwnProperty("duration"))return r;if(typeof r=="number"){let s=at(r,e).duration;return Ut(s,0,"")}let t=r;if(t.split(/\s+/).some(s=>s.charAt(0)=="{"&&s.charAt(1)=="{")){let s=Ut(0,0,"");return s.dynamic=!0,s.strValue=t,s}let i=at(t,e);return Ut(i.duration,i.delay,i.easing)}function Ee(r){return r?(r=O({},r),r.params&&(r.params=Zi(r.params))):r={},r}function Ut(r,e,t){return{duration:r,delay:e,easing:t}}function dn(r,e,t,n,i,s,o=null,a=!1){return{type:1,element:r,keyframes:e,preStyleProps:t,postStyleProps:n,duration:i,delay:s,totalTime:i+s,easing:o,subTimeline:a}}var Fe=class{constructor(){this._map=new Map}get(e){return this._map.get(e)||[]}append(e,t){let n=this._map.get(e);n||this._map.set(e,n=[]),n.push(...t)}has(e){return this._map.has(e)}clear(){this._map.clear()}},ns=1,rs=":enter",is=new RegExp(rs,"g"),ss=":leave",os=new RegExp(ss,"g");function Hr(r,e,t,n,i,s=new Map,o=new Map,a,l,u=[]){return new Xt().buildKeyframes(r,e,t,n,i,s,o,a,l,u)}var Xt=class{buildKeyframes(e,t,n,i,s,o,a,l,u,c=[]){u=u||new Fe;let f=new Zt(e,t,u,i,s,c,[]);f.options=l;let C=l.delay?ae(l.delay):0;f.currentTimeline.delayNextStep(C),f.currentTimeline.setStyles([o],null,f.errors,l),q(this,n,f);let b=f.timelines.filter(v=>v.containsAnimation());if(b.length&&a.size){let v;for(let p=b.length-1;p>=0;p--){let m=b[p];if(m.element===t){v=m;break}}v&&!v.allowOnlyTimelineStyles()&&v.setStyles([a],null,f.errors,l)}return b.length?b.map(v=>v.buildKeyframes()):[dn(t,[],[],[],0,C,"",!1)]}visitTrigger(e,t){}visitState(e,t){}visitTransition(e,t){}visitAnimateChild(e,t){let n=t.subInstructions.get(t.element);if(n){let i=t.createSubContext(e.options),s=t.currentTimeline.currentTime,o=this._visitSubInstructions(n,i,i.options);s!=o&&t.transformIntoNewTimeline(o)}t.previousNode=e}visitAnimateRef(e,t){let n=t.createSubContext(e.options);n.transformIntoNewTimeline(),this._applyAnimationRefDelays([e.options,e.animation.options],t,n),this.visitReference(e.animation,n),t.transformIntoNewTimeline(n.currentTimeline.currentTime),t.previousNode=e}_applyAnimationRefDelays(e,t,n){for(let i of e){let s=i?.delay;if(s){let o=typeof s=="number"?s:ae(Oe(s,i?.params??{},t.errors));n.delayNextStep(o)}}}_visitSubInstructions(e,t,n){let s=t.currentTimeline.currentTime,o=n.duration!=null?ae(n.duration):null,a=n.delay!=null?ae(n.delay):null;return o!==0&&e.forEach(l=>{let u=t.appendInstructionToTimeline(l,o,a);s=Math.max(s,u.duration+u.delay)}),s}visitReference(e,t){t.updateOptions(e.options,!0),q(this,e.animation,t),t.previousNode=e}visitSequence(e,t){let n=t.subContextCount,i=t,s=e.options;if(s&&(s.params||s.delay)&&(i=t.createSubContext(s),i.transformIntoNewTimeline(),s.delay!=null)){i.previousNode.type==R.Style&&(i.currentTimeline.snapshotCurrentStyles(),i.previousNode=ut);let o=ae(s.delay);i.delayNextStep(o)}e.steps.length&&(e.steps.forEach(o=>q(this,o,i)),i.currentTimeline.applyStylesToKeyframe(),i.subContextCount>n&&i.transformIntoNewTimeline()),t.previousNode=e}visitGroup(e,t){let n=[],i=t.currentTimeline.currentTime,s=e.options&&e.options.delay?ae(e.options.delay):0;e.steps.forEach(o=>{let a=t.createSubContext(e.options);s&&a.delayNextStep(s),q(this,o,a),i=Math.max(i,a.currentTimeline.currentTime),n.push(a.currentTimeline)}),n.forEach(o=>t.currentTimeline.mergeTimelineCollectedStyles(o)),t.transformIntoNewTimeline(i),t.previousNode=e}_visitTiming(e,t){if(e.dynamic){let n=e.strValue,i=t.params?Oe(n,t.params,t.errors):n;return at(i,t.errors)}else return{duration:e.duration,delay:e.delay,easing:e.easing}}visitAnimate(e,t){let n=t.currentAnimateTimings=this._visitTiming(e.timings,t),i=t.currentTimeline;n.delay&&(t.incrementTime(n.delay),i.snapshotCurrentStyles());let s=e.style;s.type==R.Keyframes?this.visitKeyframes(s,t):(t.incrementTime(n.duration),this.visitStyle(s,t),i.applyStylesToKeyframe()),t.currentAnimateTimings=null,t.previousNode=e}visitStyle(e,t){let n=t.currentTimeline,i=t.currentAnimateTimings;!i&&n.hasCurrentStyleProperties()&&n.forwardFrame();let s=i&&i.easing||e.easing;e.isEmptyStep?n.applyEmptyStep(s):n.setStyles(e.styles,s,t.errors,t.options),t.previousNode=e}visitKeyframes(e,t){let n=t.currentAnimateTimings,i=t.currentTimeline.duration,s=n.duration,a=t.createSubContext().currentTimeline;a.easing=n.easing,e.styles.forEach(l=>{let u=l.offset||0;a.forwardTime(u*s),a.setStyles(l.styles,l.easing,t.errors,t.options),a.applyStylesToKeyframe()}),t.currentTimeline.mergeTimelineCollectedStyles(a),t.transformIntoNewTimeline(i+s),t.previousNode=e}visitQuery(e,t){let n=t.currentTimeline.currentTime,i=e.options||{},s=i.delay?ae(i.delay):0;s&&(t.previousNode.type===R.Style||n==0&&t.currentTimeline.hasCurrentStyleProperties())&&(t.currentTimeline.snapshotCurrentStyles(),t.previousNode=ut);let o=n,a=t.invokeQuery(e.selector,e.originalSelector,e.limit,e.includeSelf,!!i.optional,t.errors);t.currentQueryTotal=a.length;let l=null;a.forEach((u,c)=>{t.currentQueryIndex=c;let f=t.createSubContext(e.options,u);s&&f.delayNextStep(s),u===t.element&&(l=f.currentTimeline),q(this,e.animation,f),f.currentTimeline.applyStylesToKeyframe();let C=f.currentTimeline.currentTime;o=Math.max(o,C)}),t.currentQueryIndex=0,t.currentQueryTotal=0,t.transformIntoNewTimeline(o),l&&(t.currentTimeline.mergeTimelineCollectedStyles(l),t.currentTimeline.snapshotCurrentStyles()),t.previousNode=e}visitStagger(e,t){let n=t.parentContext,i=t.currentTimeline,s=e.timings,o=Math.abs(s.duration),a=o*(t.currentQueryTotal-1),l=o*t.currentQueryIndex;switch(s.duration<0?"reverse":s.easing){case"reverse":l=a-l;break;case"full":l=n.currentStaggerTime;break}let c=t.currentTimeline;l&&c.delayNextStep(l);let f=c.currentTime;q(this,e.animation,t),t.previousNode=e,n.currentStaggerTime=i.currentTime-f+(i.startTime-n.currentTimeline.startTime)}},ut={},Zt=class r{constructor(e,t,n,i,s,o,a,l){this._driver=e,this.element=t,this.subInstructions=n,this._enterClassName=i,this._leaveClassName=s,this.errors=o,this.timelines=a,this.parentContext=null,this.currentAnimateTimings=null,this.previousNode=ut,this.subContextCount=0,this.options={},this.currentQueryIndex=0,this.currentQueryTotal=0,this.currentStaggerTime=0,this.currentTimeline=l||new pt(this._driver,t,0),a.push(this.currentTimeline)}get params(){return this.options.params}updateOptions(e,t){if(!e)return;let n=e,i=this.options;n.duration!=null&&(i.duration=ae(n.duration)),n.delay!=null&&(i.delay=ae(n.delay));let s=n.params;if(s){let o=i.params;o||(o=this.options.params={}),Object.keys(s).forEach(a=>{(!t||!o.hasOwnProperty(a))&&(o[a]=Oe(s[a],o,this.errors))})}}_copyOptions(){let e={};if(this.options){let t=this.options.params;if(t){let n=e.params={};Object.keys(t).forEach(i=>{n[i]=t[i]})}}return e}createSubContext(e=null,t,n){let i=t||this.element,s=new r(this._driver,i,this.subInstructions,this._enterClassName,this._leaveClassName,this.errors,this.timelines,this.currentTimeline.fork(i,n||0));return s.previousNode=this.previousNode,s.currentAnimateTimings=this.currentAnimateTimings,s.options=this._copyOptions(),s.updateOptions(e),s.currentQueryIndex=this.currentQueryIndex,s.currentQueryTotal=this.currentQueryTotal,s.parentContext=this,this.subContextCount++,s}transformIntoNewTimeline(e){return this.previousNode=ut,this.currentTimeline=this.currentTimeline.fork(this.element,e),this.timelines.push(this.currentTimeline),this.currentTimeline}appendInstructionToTimeline(e,t,n){let i={duration:t??e.duration,delay:this.currentTimeline.currentTime+(n??0)+e.delay,easing:""},s=new en(this._driver,e.element,e.keyframes,e.preStyleProps,e.postStyleProps,i,e.stretchStartingKeyframe);return this.timelines.push(s),i}incrementTime(e){this.currentTimeline.forwardTime(this.currentTimeline.duration+e)}delayNextStep(e){e>0&&this.currentTimeline.delayNextStep(e)}invokeQuery(e,t,n,i,s,o){let a=[];if(i&&a.push(this.element),e.length>0){e=e.replace(is,"."+this._enterClassName),e=e.replace(os,"."+this._leaveClassName);let l=n!=1,u=this._driver.query(this.element,e,l);n!==0&&(u=n<0?u.slice(u.length+n,u.length):u.slice(0,n)),a.push(...u)}return!s&&a.length==0&&o.push(vi(t)),a}},pt=class r{constructor(e,t,n,i){this._driver=e,this.element=t,this.startTime=n,this._elementTimelineStylesLookup=i,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(t),this._globalTimelineStyles||(this._globalTimelineStyles=this._localTimelineStyles,this._elementTimelineStylesLookup.set(t,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(e){let t=this._keyframes.size===1&&this._pendingStyles.size;this.duration||t?(this.forwardTime(this.currentTime+e),t&&this.snapshotCurrentStyles()):this.startTime+=e}fork(e,t){return this.applyStylesToKeyframe(),new r(this._driver,e,t||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+=ns,this._loadKeyframe()}forwardTime(e){this.applyStylesToKeyframe(),this.duration=e,this._loadKeyframe()}_updateStyle(e,t){this._localTimelineStyles.set(e,t),this._globalTimelineStyles.set(e,t),this._styleSummary.set(e,{time:this.currentTime,value:t})}allowOnlyTimelineStyles(){return this._currentEmptyStepKeyframe!==this._currentKeyframe}applyEmptyStep(e){e&&this._previousKeyframe.set("easing",e);for(let[t,n]of this._globalTimelineStyles)this._backFill.set(t,n||ie),this._currentKeyframe.set(t,ie);this._currentEmptyStepKeyframe=this._currentKeyframe}setStyles(e,t,n,i){t&&this._previousKeyframe.set("easing",t);let s=i&&i.params||{},o=as(e,this._globalTimelineStyles);for(let[a,l]of o){let u=Oe(l,s,n);this._pendingStyles.set(a,u),this._localTimelineStyles.has(a)||this._backFill.set(a,this._globalTimelineStyles.get(a)??ie),this._updateStyle(a,u)}}applyStylesToKeyframe(){this._pendingStyles.size!=0&&(this._pendingStyles.forEach((e,t)=>{this._currentKeyframe.set(t,e)}),this._pendingStyles.clear(),this._localTimelineStyles.forEach((e,t)=>{this._currentKeyframe.has(t)||this._currentKeyframe.set(t,e)}))}snapshotCurrentStyles(){for(let[e,t]of this._localTimelineStyles)this._pendingStyles.set(e,t),this._updateStyle(e,t)}getFinalKeyframe(){return this._keyframes.get(this.duration)}get properties(){let e=[];for(let t in this._currentKeyframe)e.push(t);return e}mergeTimelineCollectedStyles(e){e._styleSummary.forEach((t,n)=>{let i=this._styleSummary.get(n);(!i||t.time>i.time)&&this._updateStyle(n,t.value)})}buildKeyframes(){this.applyStylesToKeyframe();let e=new Set,t=new Set,n=this._keyframes.size===1&&this.duration===0,i=[];this._keyframes.forEach((a,l)=>{let u=new Map([...this._backFill,...a]);u.forEach((c,f)=>{c===Ge?e.add(f):c===ie&&t.add(f)}),n||u.set("offset",l/this.duration),i.push(u)});let s=[...e.values()],o=[...t.values()];if(n){let a=i[0],l=new Map(a);a.set("offset",0),l.set("offset",1),i=[a,l]}return dn(this.element,i,s,o,this.duration,this.startTime,this.easing,!1)}},en=class extends pt{constructor(e,t,n,i,s,o,a=!1){super(e,t,o.delay),this.keyframes=n,this.preStyleProps=i,this.postStyleProps=s,this._stretchStartingKeyframe=a,this.timings={duration:o.duration,delay:o.delay,easing:o.easing}}containsAnimation(){return this.keyframes.length>1}buildKeyframes(){let e=this.keyframes,{delay:t,duration:n,easing:i}=this.timings;if(this._stretchStartingKeyframe&&t){let s=[],o=n+t,a=t/o,l=new Map(e[0]);l.set("offset",0),s.push(l);let u=new Map(e[0]);u.set("offset",_r(a)),s.push(u);let c=e.length-1;for(let f=1;f<=c;f++){let C=new Map(e[f]),b=C.get("offset"),v=t+b*n;C.set("offset",_r(v/o)),s.push(C)}n=o,t=0,i="",e=s}return dn(this.element,e,this.preStyleProps,this.postStyleProps,n,t,i,!0)}};function _r(r,e=3){let t=Math.pow(10,e-1);return Math.round(r*t)/t}function as(r,e){let t=new Map,n;return r.forEach(i=>{if(i==="*"){n??=e.keys();for(let s of n)t.set(s,ie)}else for(let[s,o]of i)t.set(s,o)}),t}function br(r,e,t,n,i,s,o,a,l,u,c,f,C){return{type:0,element:r,triggerName:e,isRemovalTransition:i,fromState:t,fromStyles:s,toState:n,toStyles:o,timelines:a,queriedElements:l,preStyleProps:u,postStyleProps:c,totalTime:f,errors:C}}var zt={},mt=class{constructor(e,t,n){this._triggerName=e,this.ast=t,this._stateStyles=n}match(e,t,n,i){return ls(this.ast.matchers,e,t,n,i)}buildStyles(e,t,n){let i=this._stateStyles.get("*");return e!==void 0&&(i=this._stateStyles.get(e?.toString())||i),i?i.buildStyles(t,n):new Map}build(e,t,n,i,s,o,a,l,u,c){let f=[],C=this.ast.options&&this.ast.options.params||zt,b=a&&a.params||zt,v=this.buildStyles(n,b,f),p=l&&l.params||zt,m=this.buildStyles(i,p,f),d=new Set,h=new Map,y=new Map,_=i==="void",S={params:Br(p,C),delay:this.ast.options?.delay},P=c?[]:Hr(e,t,this.ast.animation,s,o,v,m,S,u,f),F=0;return P.forEach(H=>{F=Math.max(H.duration+H.delay,F)}),f.length?br(t,this._triggerName,n,i,_,v,m,[],[],h,y,F,f):(P.forEach(H=>{let A=H.element,W=J(h,A,new Set);H.preStyleProps.forEach(K=>W.add(K));let j=J(y,A,new Set);H.postStyleProps.forEach(K=>j.add(K)),A!==t&&d.add(A)}),br(t,this._triggerName,n,i,_,v,m,P,[...d.values()],h,y,F))}};function ls(r,e,t,n,i){return r.some(s=>s(e,t,n,i))}function Br(r,e){let t=O({},e);return Object.entries(r).forEach(([n,i])=>{i!=null&&(t[n]=i)}),t}var tn=class{constructor(e,t,n){this.styles=e,this.defaultParams=t,this.normalizer=n}buildStyles(e,t){let n=new Map,i=Br(e,this.defaultParams);return this.styles.styles.forEach(s=>{typeof s!="string"&&s.forEach((o,a)=>{o&&(o=Oe(o,i,t));let l=this.normalizer.normalizePropertyName(a,t);o=this.normalizer.normalizeStyleValue(a,l,o,t),n.set(a,o)})}),n}};function cs(r,e,t){return new nn(r,e,t)}var nn=class{constructor(e,t,n){this.name=e,this.ast=t,this._normalizer=n,this.transitionFactories=[],this.states=new Map,t.states.forEach(i=>{let s=i.options&&i.options.params||{};this.states.set(i.name,new tn(i.style,s,n))}),Tr(this.states,"true","1"),Tr(this.states,"false","0"),t.transitions.forEach(i=>{this.transitionFactories.push(new mt(e,i,this.states))}),this.fallbackTransition=us(e,this.states,this._normalizer)}get containsQueries(){return this.ast.queryCount>0}matchTransition(e,t,n,i){return this.transitionFactories.find(o=>o.match(e,t,n,i))||null}matchStyles(e,t,n){return this.fallbackTransition.buildStyles(e,t,n)}};function us(r,e,t){let n=[(o,a)=>!0],i={type:R.Sequence,steps:[],options:null},s={type:R.Transition,animation:i,matchers:n,options:null,queryCount:0,depCount:0};return new mt(r,s,e)}function Tr(r,e,t){r.has(e)?r.has(t)||r.set(t,r.get(e)):r.has(t)&&r.set(e,r.get(t))}var ps=new Fe,rn=class{constructor(e,t,n){this.bodyNode=e,this._driver=t,this._normalizer=n,this._animations=new Map,this._playersById=new Map,this.players=[]}register(e,t){let n=[],i=[],s=Lr(this._driver,t,n,i);if(n.length)throw Ci(n);i.length&&void 0,this._animations.set(e,s)}_buildPlayer(e,t,n){let i=e.element,s=kr(this._normalizer,e.keyframes,t,n);return this._driver.animate(i,s,e.duration,e.delay,e.easing,[],!0)}create(e,t,n={}){let i=[],s=this._animations.get(e),o,a=new Map;if(s?(o=Hr(this._driver,t,s,Ir,xt,new Map,new Map,n,ps,i),o.forEach(c=>{let f=J(a,c.element,new Map);c.postStyleProps.forEach(C=>f.set(C,null))})):(i.push(Ai()),o=[]),i.length)throw Pi(i);a.forEach((c,f)=>{c.forEach((C,b)=>{c.set(b,this._driver.computeStyle(f,b,ie))})});let l=o.map(c=>{let f=a.get(c.element);return this._buildPlayer(c,new Map,f)}),u=fe(l);return this._playersById.set(e,u),u.onDestroy(()=>this.destroy(e)),this.players.push(u),u}destroy(e){let t=this._getPlayer(e);t.destroy(),this._playersById.delete(e);let n=this.players.indexOf(t);n>=0&&this.players.splice(n,1)}_getPlayer(e){let t=this._playersById.get(e);if(!t)throw Ni(e);return t}listen(e,t,n,i){let s=un(t,"","","");return cn(this._getPlayer(e),n,s,i),()=>{}}command(e,t,n,i){if(n=="register"){this.register(e,i[0]);return}if(n=="create"){let o=i[0]||{};this.create(e,t,o);return}let s=this._getPlayer(e);switch(n){case"play":s.play();break;case"pause":s.pause();break;case"reset":s.reset();break;case"restart":s.restart();break;case"finish":s.finish();break;case"init":s.init();break;case"setPosition":s.setPosition(parseFloat(i[0]));break;case"destroy":this.destroy(e);break}}},wr="ng-animate-queued",ms=".ng-animate-queued",jt="ng-animate-disabled",hs=".ng-animate-disabled",fs="ng-star-inserted",ds=".ng-star-inserted",ys=[],$r={namespaceId:"",setForRemoval:!1,setForMove:!1,hasAnimation:!1,removedBeforeQueried:!1},gs={namespaceId:"",setForMove:!1,setForRemoval:!1,hasAnimation:!1,removedBeforeQueried:!0},ne="__ng_removed",Le=class{get params(){return this.options.params}constructor(e,t=""){this.namespaceId=t;let n=e&&e.hasOwnProperty("value"),i=n?e.value:e;if(this.value=Es(i),n){let s=e,{value:o}=s,a=$e(s,["value"]);this.options=a}else this.options={};this.options.params||(this.options.params={})}absorbOptions(e){let t=e.params;if(t){let n=this.options.params;Object.keys(t).forEach(i=>{n[i]==null&&(n[i]=t[i])})}}},Ie="void",Vt=new Le(Ie),sn=class{constructor(e,t,n){this.id=e,this.hostElement=t,this._engine=n,this.players=[],this._triggers=new Map,this._queue=[],this._elementListeners=new Map,this._hostClassName="ng-tns-"+e,ee(t,this._hostClassName)}listen(e,t,n,i){if(!this._triggers.has(t))throw ki(n,t);if(n==null||n.length==0)throw Ri(t);if(!vs(n))throw Mi(n,t);let s=J(this._elementListeners,e,[]),o={name:t,phase:n,callback:i};s.push(o);let a=J(this._engine.statesByElement,e,new Map);return a.has(t)||(ee(e,tt),ee(e,tt+"-"+t),a.set(t,Vt)),()=>{this._engine.afterFlush(()=>{let l=s.indexOf(o);l>=0&&s.splice(l,1),this._triggers.has(t)||a.delete(t)})}}register(e,t){return this._triggers.has(e)?!1:(this._triggers.set(e,t),!0)}_getTrigger(e){let t=this._triggers.get(e);if(!t)throw Di(e);return t}trigger(e,t,n,i=!0){let s=this._getTrigger(t),o=new He(this.id,t,e),a=this._engine.statesByElement.get(e);a||(ee(e,tt),ee(e,tt+"-"+t),this._engine.statesByElement.set(e,a=new Map));let l=a.get(t),u=new Le(n,this.id);if(!(n&&n.hasOwnProperty("value"))&&l&&u.absorbOptions(l.options),a.set(t,u),l||(l=Vt),!(u.value===Ie)&&l.value===u.value){if(!Ts(l.params,u.params)){let p=[],m=s.matchStyles(l.value,l.params,p),d=s.matchStyles(u.value,u.params,p);p.length?this._engine.reportError(p):this._engine.afterFlush(()=>{ve(e,m),se(e,d)})}return}let C=J(this._engine.playersByElement,e,[]);C.forEach(p=>{p.namespaceId==this.id&&p.triggerName==t&&p.queued&&p.destroy()});let b=s.matchTransition(l.value,u.value,e,u.params),v=!1;if(!b){if(!i)return;b=s.fallbackTransition,v=!0}return this._engine.totalQueuedPlayers++,this._queue.push({element:e,triggerName:t,transition:b,fromState:l,toState:u,player:o,isFallbackTransition:v}),v||(ee(e,wr),o.onStart(()=>{Pe(e,wr)})),o.onDone(()=>{let p=this.players.indexOf(o);p>=0&&this.players.splice(p,1);let m=this._engine.playersByElement.get(e);if(m){let d=m.indexOf(o);d>=0&&m.splice(d,1)}}),this.players.push(o),C.push(o),o}deregister(e){this._triggers.delete(e),this._engine.statesByElement.forEach(t=>t.delete(e)),this._elementListeners.forEach((t,n)=>{this._elementListeners.set(n,t.filter(i=>i.name!=e))})}clearElementCache(e){this._engine.statesByElement.delete(e),this._elementListeners.delete(e);let t=this._engine.playersByElement.get(e);t&&(t.forEach(n=>n.destroy()),this._engine.playersByElement.delete(e))}_signalRemovalForInnerTriggers(e,t){let n=this._engine.driver.query(e,ot,!0);n.forEach(i=>{if(i[ne])return;let s=this._engine.fetchNamespacesByElement(i);s.size?s.forEach(o=>o.triggerLeaveAnimation(i,t,!1,!0)):this.clearElementCache(i)}),this._engine.afterFlushAnimationsDone(()=>n.forEach(i=>this.clearElementCache(i)))}triggerLeaveAnimation(e,t,n,i){let s=this._engine.statesByElement.get(e),o=new Map;if(s){let a=[];if(s.forEach((l,u)=>{if(o.set(u,l.value),this._triggers.has(u)){let c=this.trigger(e,u,Ie,i);c&&a.push(c)}}),a.length)return this._engine.markElementAsRemoved(this.id,e,!0,t,o),n&&fe(a).onDone(()=>this._engine.processLeaveNode(e)),!0}return!1}prepareLeaveAnimationListeners(e){let t=this._elementListeners.get(e),n=this._engine.statesByElement.get(e);if(t&&n){let i=new Set;t.forEach(s=>{let o=s.name;if(i.has(o))return;i.add(o);let l=this._triggers.get(o).fallbackTransition,u=n.get(o)||Vt,c=new Le(Ie),f=new He(this.id,o,e);this._engine.totalQueuedPlayers++,this._queue.push({element:e,triggerName:o,transition:l,fromState:u,toState:c,player:f,isFallbackTransition:!0})})}}removeNode(e,t){let n=this._engine;if(e.childElementCount&&this._signalRemovalForInnerTriggers(e,t),this.triggerLeaveAnimation(e,t,!0))return;let i=!1;if(n.totalAnimations){let s=n.players.length?n.playersByQueriedElement.get(e):[];if(s&&s.length)i=!0;else{let o=e;for(;o=o.parentNode;)if(n.statesByElement.get(o)){i=!0;break}}}if(this.prepareLeaveAnimationListeners(e),i)n.markElementAsRemoved(this.id,e,!1,t);else{let s=e[ne];(!s||s===$r)&&(n.afterFlush(()=>this.clearElementCache(e)),n.destroyInnerAnimations(e),n._onRemovalComplete(e,t))}}insertNode(e,t){ee(e,this._hostClassName)}drainQueuedTransitions(e){let t=[];return this._queue.forEach(n=>{let i=n.player;if(i.destroyed)return;let s=n.element,o=this._elementListeners.get(s);o&&o.forEach(a=>{if(a.name==n.triggerName){let l=un(s,n.triggerName,n.fromState.value,n.toState.value);l._data=e,cn(n.player,a.phase,l,a.callback)}}),i.markedForDestroy?this._engine.afterFlush(()=>{i.destroy()}):t.push(n)}),this._queue=[],t.sort((n,i)=>{let s=n.transition.ast.depCount,o=i.transition.ast.depCount;return s==0||o==0?s-o:this._engine.driver.containsElement(n.element,i.element)?1:-1})}destroy(e){this.players.forEach(t=>t.destroy()),this._signalRemovalForInnerTriggers(this.hostElement,e)}},on=class{_onRemovalComplete(e,t){this.onRemovalComplete(e,t)}constructor(e,t,n){this.bodyNode=e,this.driver=t,this._normalizer=n,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=(i,s)=>{}}get queuedPlayers(){let e=[];return this._namespaceList.forEach(t=>{t.players.forEach(n=>{n.queued&&e.push(n)})}),e}createNamespace(e,t){let n=new sn(e,t,this);return this.bodyNode&&this.driver.containsElement(this.bodyNode,t)?this._balanceNamespaceList(n,t):(this.newHostElements.set(t,n),this.collectEnterElement(t)),this._namespaceLookup[e]=n}_balanceNamespaceList(e,t){let n=this._namespaceList,i=this.namespacesByHostElement;if(n.length-1>=0){let o=!1,a=this.driver.getParentElement(t);for(;a;){let l=i.get(a);if(l){let u=n.indexOf(l);n.splice(u+1,0,e),o=!0;break}a=this.driver.getParentElement(a)}o||n.unshift(e)}else n.push(e);return i.set(t,e),e}register(e,t){let n=this._namespaceLookup[e];return n||(n=this.createNamespace(e,t)),n}registerTrigger(e,t,n){let i=this._namespaceLookup[e];i&&i.register(t,n)&&this.totalAnimations++}destroy(e,t){e&&(this.afterFlush(()=>{}),this.afterFlushAnimationsDone(()=>{let n=this._fetchNamespace(e);this.namespacesByHostElement.delete(n.hostElement);let i=this._namespaceList.indexOf(n);i>=0&&this._namespaceList.splice(i,1),n.destroy(t),delete this._namespaceLookup[e]}))}_fetchNamespace(e){return this._namespaceLookup[e]}fetchNamespacesByElement(e){let t=new Set,n=this.statesByElement.get(e);if(n){for(let i of n.values())if(i.namespaceId){let s=this._fetchNamespace(i.namespaceId);s&&t.add(s)}}return t}trigger(e,t,n,i){if(it(t)){let s=this._fetchNamespace(e);if(s)return s.trigger(t,n,i),!0}return!1}insertNode(e,t,n,i){if(!it(t))return;let s=t[ne];if(s&&s.setForRemoval){s.setForRemoval=!1,s.setForMove=!0;let o=this.collectedLeaveElements.indexOf(t);o>=0&&this.collectedLeaveElements.splice(o,1)}if(e){let o=this._fetchNamespace(e);o&&o.insertNode(t,n)}i&&this.collectEnterElement(t)}collectEnterElement(e){this.collectedEnterElements.push(e)}markElementAsDisabled(e,t){t?this.disabledNodes.has(e)||(this.disabledNodes.add(e),ee(e,jt)):this.disabledNodes.has(e)&&(this.disabledNodes.delete(e),Pe(e,jt))}removeNode(e,t,n){if(it(t)){let i=e?this._fetchNamespace(e):null;i?i.removeNode(t,n):this.markElementAsRemoved(e,t,!1,n);let s=this.namespacesByHostElement.get(t);s&&s.id!==e&&s.removeNode(t,n)}else this._onRemovalComplete(t,n)}markElementAsRemoved(e,t,n,i,s){this.collectedLeaveElements.push(t),t[ne]={namespaceId:e,setForRemoval:i,hasAnimation:n,removedBeforeQueried:!1,previousTriggersValues:s}}listen(e,t,n,i,s){return it(t)?this._fetchNamespace(e).listen(t,n,i,s):()=>{}}_buildInstruction(e,t,n,i,s){return e.transition.build(this.driver,e.element,e.fromState.value,e.toState.value,n,i,e.fromState.options,e.toState.options,t,s)}destroyInnerAnimations(e){let t=this.driver.query(e,ot,!0);t.forEach(n=>this.destroyActiveAnimationsForElement(n)),this.playersByQueriedElement.size!=0&&(t=this.driver.query(e,Wt,!0),t.forEach(n=>this.finishActiveQueriedAnimationOnElement(n)))}destroyActiveAnimationsForElement(e){let t=this.playersByElement.get(e);t&&t.forEach(n=>{n.queued?n.markedForDestroy=!0:n.destroy()})}finishActiveQueriedAnimationOnElement(e){let t=this.playersByQueriedElement.get(e);t&&t.forEach(n=>n.finish())}whenRenderingDone(){return new Promise(e=>{if(this.players.length)return fe(this.players).onDone(()=>e());e()})}processLeaveNode(e){let t=e[ne];if(t&&t.setForRemoval){if(e[ne]=$r,t.namespaceId){this.destroyInnerAnimations(e);let n=this._fetchNamespace(t.namespaceId);n&&n.clearElementCache(e)}this._onRemovalComplete(e,t.setForRemoval)}e.classList?.contains(jt)&&this.markElementAsDisabled(e,!1),this.driver.query(e,hs,!0).forEach(n=>{this.markElementAsDisabled(n,!1)})}flush(e=-1){let t=[];if(this.newHostElements.size&&(this.newHostElements.forEach((n,i)=>this._balanceNamespaceList(n,i)),this.newHostElements.clear()),this.totalAnimations&&this.collectedEnterElements.length)for(let n=0;n<this.collectedEnterElements.length;n++){let i=this.collectedEnterElements[n];ee(i,fs)}if(this._namespaceList.length&&(this.totalQueuedPlayers||this.collectedLeaveElements.length)){let n=[];try{t=this._flushAnimations(n,e)}finally{for(let i=0;i<n.length;i++)n[i]()}}else for(let n=0;n<this.collectedLeaveElements.length;n++){let i=this.collectedLeaveElements[n];this.processLeaveNode(i)}if(this.totalQueuedPlayers=0,this.collectedEnterElements.length=0,this.collectedLeaveElements.length=0,this._flushFns.forEach(n=>n()),this._flushFns=[],this._whenQuietFns.length){let n=this._whenQuietFns;this._whenQuietFns=[],t.length?fe(t).onDone(()=>{n.forEach(i=>i())}):n.forEach(i=>i())}}reportError(e){throw Ii(e)}_flushAnimations(e,t){let n=new Fe,i=[],s=new Map,o=[],a=new Map,l=new Map,u=new Map,c=new Set;this.disabledNodes.forEach(g=>{c.add(g);let T=this.driver.query(g,ms,!0);for(let E=0;E<T.length;E++)c.add(T[E])});let f=this.bodyNode,C=Array.from(this.statesByElement.keys()),b=Pr(C,this.collectedEnterElements),v=new Map,p=0;b.forEach((g,T)=>{let E=Ir+p++;v.set(T,E),g.forEach(w=>ee(w,E))});let m=[],d=new Set,h=new Set;for(let g=0;g<this.collectedLeaveElements.length;g++){let T=this.collectedLeaveElements[g],E=T[ne];E&&E.setForRemoval&&(m.push(T),d.add(T),E.hasAnimation?this.driver.query(T,ds,!0).forEach(w=>d.add(w)):h.add(T))}let y=new Map,_=Pr(C,Array.from(d));_.forEach((g,T)=>{let E=xt+p++;y.set(T,E),g.forEach(w=>ee(w,E))}),e.push(()=>{b.forEach((g,T)=>{let E=v.get(T);g.forEach(w=>Pe(w,E))}),_.forEach((g,T)=>{let E=y.get(T);g.forEach(w=>Pe(w,E))}),m.forEach(g=>{this.processLeaveNode(g)})});let S=[],P=[];for(let g=this._namespaceList.length-1;g>=0;g--)this._namespaceList[g].drainQueuedTransitions(t).forEach(E=>{let w=E.player,M=E.element;if(S.push(w),this.collectedEnterElements.length){let Q=M[ne];if(Q&&Q.setForMove){if(Q.previousTriggersValues&&Q.previousTriggersValues.has(E.triggerName)){let de=Q.previousTriggersValues.get(E.triggerName),X=this.statesByElement.get(E.element);if(X&&X.has(E.triggerName)){let Be=X.get(E.triggerName);Be.value=de,X.set(E.triggerName,Be)}}w.destroy();return}}let Y=!f||!this.driver.containsElement(f,M),G=y.get(M),ce=v.get(M),B=this._buildInstruction(E,n,ce,G,Y);if(B.errors&&B.errors.length){P.push(B);return}if(Y){w.onStart(()=>ve(M,B.fromStyles)),w.onDestroy(()=>se(M,B.toStyles)),i.push(w);return}if(E.isFallbackTransition){w.onStart(()=>ve(M,B.fromStyles)),w.onDestroy(()=>se(M,B.toStyles)),i.push(w);return}let En=[];B.timelines.forEach(Q=>{Q.stretchStartingKeyframe=!0,this.disabledNodes.has(Q.element)||En.push(Q)}),B.timelines=En,n.append(M,B.timelines);let Xr={instruction:B,player:w,element:M};o.push(Xr),B.queriedElements.forEach(Q=>J(a,Q,[]).push(w)),B.preStyleProps.forEach((Q,de)=>{if(Q.size){let X=l.get(de);X||l.set(de,X=new Set),Q.forEach((Be,St)=>X.add(St))}}),B.postStyleProps.forEach((Q,de)=>{let X=u.get(de);X||u.set(de,X=new Set),Q.forEach((Be,St)=>X.add(St))})});if(P.length){let g=[];P.forEach(T=>{g.push(Oi(T.triggerName,T.errors))}),S.forEach(T=>T.destroy()),this.reportError(g)}let F=new Map,H=new Map;o.forEach(g=>{let T=g.element;n.has(T)&&(H.set(T,T),this._beforeAnimationBuild(g.player.namespaceId,g.instruction,F))}),i.forEach(g=>{let T=g.element;this._getPreviousPlayers(T,!1,g.namespaceId,g.triggerName,null).forEach(w=>{J(F,T,[]).push(w),w.destroy()})});let A=m.filter(g=>Nr(g,l,u)),W=new Map;Ar(W,this.driver,h,u,ie).forEach(g=>{Nr(g,l,u)&&A.push(g)});let K=new Map;b.forEach((g,T)=>{Ar(K,this.driver,new Set(g),l,Ge)}),A.forEach(g=>{let T=W.get(g),E=K.get(g);W.set(g,new Map([...T?.entries()??[],...E?.entries()??[]]))});let Re=[],V=[],L={};o.forEach(g=>{let{element:T,player:E,instruction:w}=g;if(n.has(T)){if(c.has(T)){E.onDestroy(()=>se(T,w.toStyles)),E.disabled=!0,E.overrideTotalTime(w.totalTime),i.push(E);return}let M=L;if(H.size>1){let G=T,ce=[];for(;G=G.parentNode;){let B=H.get(G);if(B){M=B;break}ce.push(G)}ce.forEach(B=>H.set(B,M))}let Y=this._buildAnimation(E.namespaceId,w,F,s,K,W);if(E.setRealPlayer(Y),M===L)Re.push(E);else{let G=this.playersByElement.get(M);G&&G.length&&(E.parentPlayer=fe(G)),i.push(E)}}else ve(T,w.fromStyles),E.onDestroy(()=>se(T,w.toStyles)),V.push(E),c.has(T)&&i.push(E)}),V.forEach(g=>{let T=s.get(g.element);if(T&&T.length){let E=fe(T);g.setRealPlayer(E)}}),i.forEach(g=>{g.parentPlayer?g.syncPlayerEvents(g.parentPlayer):g.destroy()});for(let g=0;g<m.length;g++){let T=m[g],E=T[ne];if(Pe(T,xt),E&&E.hasAnimation)continue;let w=[];if(a.size){let Y=a.get(T);Y&&Y.length&&w.push(...Y);let G=this.driver.query(T,Wt,!0);for(let ce=0;ce<G.length;ce++){let B=a.get(G[ce]);B&&B.length&&w.push(...B)}}let M=w.filter(Y=>!Y.destroyed);M.length?_s(this,T,M):this.processLeaveNode(T)}return m.length=0,Re.forEach(g=>{this.players.push(g),g.onDone(()=>{g.destroy();let T=this.players.indexOf(g);this.players.splice(T,1)}),g.play()}),Re}afterFlush(e){this._flushFns.push(e)}afterFlushAnimationsDone(e){this._whenQuietFns.push(e)}_getPreviousPlayers(e,t,n,i,s){let o=[];if(t){let a=this.playersByQueriedElement.get(e);a&&(o=a)}else{let a=this.playersByElement.get(e);if(a){let l=!s||s==Ie;a.forEach(u=>{u.queued||!l&&u.triggerName!=i||o.push(u)})}}return(n||i)&&(o=o.filter(a=>!(n&&n!=a.namespaceId||i&&i!=a.triggerName))),o}_beforeAnimationBuild(e,t,n){let i=t.triggerName,s=t.element,o=t.isRemovalTransition?void 0:e,a=t.isRemovalTransition?void 0:i;for(let l of t.timelines){let u=l.element,c=u!==s,f=J(n,u,[]);this._getPreviousPlayers(u,c,o,a,t.toState).forEach(b=>{let v=b.getRealPlayer();v.beforeDestroy&&v.beforeDestroy(),b.destroy(),f.push(b)})}ve(s,t.fromStyles)}_buildAnimation(e,t,n,i,s,o){let a=t.triggerName,l=t.element,u=[],c=new Set,f=new Set,C=t.timelines.map(v=>{let p=v.element;c.add(p);let m=p[ne];if(m&&m.removedBeforeQueried)return new we(v.duration,v.delay);let d=p!==l,h=bs((n.get(p)||ys).map(F=>F.getRealPlayer())).filter(F=>{let H=F;return H.element?H.element===p:!1}),y=s.get(p),_=o.get(p),S=kr(this._normalizer,v.keyframes,y,_),P=this._buildPlayer(v,S,h);if(v.subTimeline&&i&&f.add(p),d){let F=new He(e,a,p);F.setRealPlayer(P),u.push(F)}return P});u.forEach(v=>{J(this.playersByQueriedElement,v.element,[]).push(v),v.onDone(()=>Ss(this.playersByQueriedElement,v.element,v))}),c.forEach(v=>ee(v,Sr));let b=fe(C);return b.onDestroy(()=>{c.forEach(v=>Pe(v,Sr)),se(l,t.toStyles)}),f.forEach(v=>{J(i,v,[]).push(b)}),b}_buildPlayer(e,t,n){return t.length>0?this.driver.animate(e.element,t,e.duration,e.delay,e.easing,n):new we(e.duration,e.delay)}},He=class{constructor(e,t,n){this.namespaceId=e,this.triggerName=t,this.element=n,this._player=new we,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(e){this._containsRealPlayer||(this._player=e,this._queuedCallbacks.forEach((t,n)=>{t.forEach(i=>cn(e,n,void 0,i))}),this._queuedCallbacks.clear(),this._containsRealPlayer=!0,this.overrideTotalTime(e.totalTime),this.queued=!1)}getRealPlayer(){return this._player}overrideTotalTime(e){this.totalTime=e}syncPlayerEvents(e){let t=this._player;t.triggerCallback&&e.onStart(()=>t.triggerCallback("start")),e.onDone(()=>this.finish()),e.onDestroy(()=>this.destroy())}_queueEvent(e,t){J(this._queuedCallbacks,e,[]).push(t)}onDone(e){this.queued&&this._queueEvent("done",e),this._player.onDone(e)}onStart(e){this.queued&&this._queueEvent("start",e),this._player.onStart(e)}onDestroy(e){this.queued&&this._queueEvent("destroy",e),this._player.onDestroy(e)}init(){this._player.init()}hasStarted(){return this.queued?!1: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(e){this.queued||this._player.setPosition(e)}getPosition(){return this.queued?0:this._player.getPosition()}triggerCallback(e){let t=this._player;t.triggerCallback&&t.triggerCallback(e)}};function Ss(r,e,t){let n=r.get(e);if(n){if(n.length){let i=n.indexOf(t);n.splice(i,1)}n.length==0&&r.delete(e)}return n}function Es(r){return r??null}function it(r){return r&&r.nodeType===1}function vs(r){return r=="start"||r=="done"}function Cr(r,e){let t=r.style.display;return r.style.display=e??"none",t}function Ar(r,e,t,n,i){let s=[];t.forEach(l=>s.push(Cr(l)));let o=[];
7n.forEach((l,u)=>{let c=new Map;l.forEach(f=>{let C=e.computeStyle(u,f,i);c.set(f,C),(!C||C.length==0)&&(u[ne]=gs,o.push(u))}),r.set(u,c)});let a=0;return t.forEach(l=>Cr(l,s[a++])),o}function Pr(r,e){let t=new Map;if(r.forEach(a=>t.set(a,[])),e.length==0)return t;let n=1,i=new Set(e),s=new Map;function o(a){if(!a)return n;let l=s.get(a);if(l)return l;let u=a.parentNode;return t.has(u)?l=u:i.has(u)?l=n:l=o(u),s.set(a,l),l}return e.forEach(a=>{let l=o(a);l!==n&&t.get(l).push(a)}),t}function ee(r,e){r.classList?.add(e)}function Pe(r,e){r.classList?.remove(e)}function _s(r,e,t){fe(t).onDone(()=>r.processLeaveNode(e))}function bs(r){let e=[];return Kr(r,e),e}function Kr(r,e){for(let t=0;t<r.length;t++){let n=r[t];n instanceof Rt?Kr(n.players,e):e.push(n)}}function Ts(r,e){let t=Object.keys(r),n=Object.keys(e);if(t.length!=n.length)return!1;for(let i=0;i<t.length;i++){let s=t[i];if(!e.hasOwnProperty(s)||r[s]!==e[s])return!1}return!0}function Nr(r,e,t){let n=t.get(r);if(!n)return!1;let i=e.get(r);return i?n.forEach(s=>i.add(s)):e.set(r,n),t.delete(r),!0}var Ne=class{constructor(e,t,n){this._driver=t,this._normalizer=n,this._triggerCache={},this.onRemovalComplete=(i,s)=>{},this._transitionEngine=new on(e.body,t,n),this._timelineEngine=new rn(e.body,t,n),this._transitionEngine.onRemovalComplete=(i,s)=>this.onRemovalComplete(i,s)}registerTrigger(e,t,n,i,s){let o=e+"-"+i,a=this._triggerCache[o];if(!a){let l=[],u=[],c=Lr(this._driver,s,l,u);if(l.length)throw Ti(i,l);u.length&&void 0,a=cs(i,c,this._normalizer),this._triggerCache[o]=a}this._transitionEngine.registerTrigger(t,i,a)}register(e,t){this._transitionEngine.register(e,t)}destroy(e,t){this._transitionEngine.destroy(e,t)}onInsert(e,t,n,i){this._transitionEngine.insertNode(e,t,n,i)}onRemove(e,t,n){this._transitionEngine.removeNode(e,t,n)}disableAnimations(e,t){this._transitionEngine.markElementAsDisabled(e,t)}process(e,t,n,i){if(n.charAt(0)=="@"){let[s,o]=yr(n),a=i;this._timelineEngine.command(s,t,o,a)}else this._transitionEngine.trigger(e,t,n,i)}listen(e,t,n,i,s){if(n.charAt(0)=="@"){let[o,a]=yr(n);return this._timelineEngine.listen(o,t,a,s)}return this._transitionEngine.listen(e,t,n,i,s)}flush(e=-1){this._transitionEngine.flush(e)}get players(){return[...this._transitionEngine.players,...this._timelineEngine.players]}whenRenderingDone(){return this._transitionEngine.whenRenderingDone()}afterFlushAnimationsDone(e){this._transitionEngine.afterFlushAnimationsDone(e)}};function ws(r,e){let t=null,n=null;return Array.isArray(e)&&e.length?(t=Qt(e[0]),e.length>1&&(n=Qt(e[e.length-1]))):e instanceof Map&&(t=Qt(e)),t||n?new an(r,t,n):null}var an=class r{static{this.initialStylesByElement=new WeakMap}constructor(e,t,n){this._element=e,this._startStyles=t,this._endStyles=n,this._state=0;let i=r.initialStylesByElement.get(e);i||r.initialStylesByElement.set(e,i=new Map),this._initialStyles=i}start(){this._state<1&&(this._startStyles&&se(this._element,this._startStyles,this._initialStyles),this._state=1)}finish(){this.start(),this._state<2&&(se(this._element,this._initialStyles),this._endStyles&&(se(this._element,this._endStyles),this._endStyles=null),this._state=1)}destroy(){this.finish(),this._state<3&&(r.initialStylesByElement.delete(this._element),this._startStyles&&(ve(this._element,this._startStyles),this._endStyles=null),this._endStyles&&(ve(this._element,this._endStyles),this._endStyles=null),se(this._element,this._initialStyles),this._state=3)}};function Qt(r){let e=null;return r.forEach((t,n)=>{Cs(n)&&(e=e||new Map,e.set(n,t))}),e}function Cs(r){return r==="display"||r==="position"}var ht=class{constructor(e,t,n,i){this.element=e,this.keyframes=t,this.options=n,this._specialStyles=i,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=n.duration,this._delay=n.delay||0,this.time=this._duration+this._delay}_onFinish(){this._finished||(this._finished=!0,this._onDoneFns.forEach(e
7=>e()),this._onDoneFns=[])}init(){this._buildPlayer(),this._preparePlayerBeforeStart()}_buildPlayer(){if(this._initialized)return;this._initialized=!0;let e=this.keyframes;this.domPlayer=this._triggerWebAnimation(this.element,e,this.options),this._finalKeyframe=e.length?e[e.length-1]:new Map;let t=()=>this._onFinish();this.domPlayer.addEventListener("finish",t),this.onDestroy(()=>{this.domPlayer.removeEventListener("finish",t)})}_preparePlayerBeforeStart(){this._delay?this._resetDomPlayerState():this.domPlayer.pause()}_convertKeyframesToObject(e){let t=[];return e.forEach(n=>{t.push(Object.fromEntries(n))}),t}_triggerWebAnimation(e,t,n){return e.animate(this._convertKeyframesToObject(t),n)}onStart(e){this._originalOnStartFns.push(e),this._onStartFns.push(e)}onDone(e){this._originalOnDoneFns.push(e),this._onDoneFns.push(e)}onDestroy(e){this._onDestroyFns.push(e)}play(){this._buildPlayer(),this.hasStarted()||(this._onStartFns.forEach(e=>e()),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(e=>e()),this._onDestroyFns=[])}setPosition(e){this.domPlayer===void 0&&this.init(),this.domPlayer.currentTime=e*this.time}getPosition(){return+(this.domPlayer.currentTime??0)/this.time}get totalTime(){return this._delay+this._duration}beforeDestroy(){let e=new Map;this.hasStarted()&&this._finalKeyframe.forEach((n,i)=>{i!=="offset"&&e.set(i,this._finished?n:fn(this.element,i))}),this.currentSnapshot=e}triggerCallback(e){let t=e==="start"?this._onStartFns:this._onDoneFns;t.forEach(n=>n()),t.length=0}},ft=class{validateStyleProperty(e){return!0}validateAnimatableStyleProperty(e){return!0}containsElement(e,t){return Rr(e,t)}getParentElement(e){return pn(e)}query(e,t,n){return Mr(e,t,n)}computeStyle(e,t,n){return fn(e,t)}animate(e,t,n,i,s,o=[]){let a=i==0?"both":"forwards",l={duration:n,delay:i,fill:a};s&&(l.easing=s);let u=new Map,c=o.filter(b=>b instanceof ht);Qi(n,i)&&c.forEach(b=>{b.currentSnapshot.forEach((v,p)=>u.set(p,v))});let f=zi(t).map(b=>new Map(b));f=xi(e,f,u);let C=ws(e,f);return new ht(e,f,l,C)}};var st="@",Ur="@.disabled",dt=class{constructor(e,t,n,i){this.namespaceId=e,this.delegate=t,this.engine=n,this._onDestroy=i,this.\u0275type=0}get data(){return this.delegate.data}destroyNode(e){this.delegate.destroyNode?.(e)}destroy(){this.engine.destroy(this.namespaceId,this.delegate),this.engine.afterFlushAnimationsDone(()=>{queueMicrotask(()=>{this.delegate.destroy()})}),this._onDestroy?.()}createElement(e,t){return this.delegate.createElement(e,t)}createComment(e){return this.delegate.createComment(e)}createText(e){return this.delegate.createText(e)}appendChild(e,t){this.delegate.appendChild(e,t),this.engine.onInsert(this.namespaceId,t,e,!1)}insertBefore(e,t,n,i=!0){this.delegate.insertBefore(e,t,n),this.engine.onInsert(this.namespaceId,t,e,i)}removeChild(e,t,n){this.parentNode(t)&&this.engine.onRemove(this.namespaceId,t,this.delegate)}selectRootElement(e,t){return this.delegate.selectRootElement(e,t)}parentNode(e){return this.delegate.parentNode(e)}nextSibling(e){return this.delegate.nextSibling(e)}setAttribute(e,t,n,i){this.delegate.setAttribute(e,t,n,i)}removeAttribute(e,t,n){this.delegate.removeAttribute(e,t,n)}addClass(e,t){this.delegate.addClass(e,t)}removeClass(e,t){this.delegate.removeClass(e,t)}setStyle(e,t,n,i){this.delegate.setStyle(e,t,n,i)}removeStyle(e,t,n){this.delegate.removeStyle(e,t,n)}setProperty(e,t,n){t.charAt(0)==st&&t==Ur?this.disableAnimations(e,!!n):this.delegate.setProperty(e,t,n)}setValue(e,t){this.delegate.setValue(e,t)}
7listen(e,t,n){return this.delegate.listen(e,t,n)}disableAnimations(e,t){this.engine.disableAnimations(e,t)}},ln=class extends dt{constructor(e,t,n,i,s){super(t,n,i,s),this.factory=e,this.namespaceId=t}setProperty(e,t,n){t.charAt(0)==st?t.charAt(1)=="."&&t==Ur?(n=n===void 0?!0:!!n,this.disableAnimations(e,n)):this.engine.process(this.namespaceId,e,t.slice(1),n):this.delegate.setProperty(e,t,n)}listen(e,t,n){if(t.charAt(0)==st){let i=As(e),s=t.slice(1),o="";return s.charAt(0)!=st&&([s,o]=Ps(s)),this.engine.listen(this.namespaceId,i,s,o,a=>{let l=a._data||-1;this.factory.scheduleListenerCallback(l,n,a)})}return this.delegate.listen(e,t,n)}};function As(r){switch(r){case"body":return document.body;case"document":return document;case"window":return window;default:return r}}function Ps(r){let e=r.indexOf("."),t=r.substring(0,e),n=r.slice(e+1);return[t,n]}var yt=class{constructor(e,t,n){this.delegate=e,this.engine=t,this._zone=n,this._currentId=0,this._microtaskId=1,this._animationCallbacksBuffer=[],this._rendererCache=new Map,this._cdRecurDepth=0,t.onRemovalComplete=(i,s)=>{s?.removeChild(null,i)}}createRenderer(e,t){let n="",i=this.delegate.createRenderer(e,t);if(!e||!t?.data?.animation){let u=this._rendererCache,c=u.get(i);if(!c){let f=()=>u.delete(i);c=new dt(n,i,this.engine,f),u.set(i,c)}return c}let s=t.id,o=t.id+"-"+this._currentId;this._currentId++,this.engine.register(o,e);let a=u=>{Array.isArray(u)?u.forEach(a):this.engine.registerTrigger(s,o,e,u.name,u)};return t.data.animation.forEach(a),new ln(this,o,i,this.engine)}begin(){this._cdRecurDepth++,this.delegate.begin&&this.delegate.begin()}_scheduleCountTask(){queueMicrotask(()=>{this._microtaskId++})}scheduleListenerCallback(e,t,n){if(e>=0&&e<this._microtaskId){this._zone.run(()=>t(n));return}let i=this._animationCallbacksBuffer;i.length==0&&queueMicrotask(()=>{this._zone.run(()=>{i.forEach(s=>{let[o,a]=s;o(a)}),this._animationCallbacksBuffer=[]})}),i.push([t,n])}end(){this._cdRecurDepth--,this._cdRecurDepth==0&&this._zone.runOutsideAngular(()=>{this._scheduleCountTask(),this.engine.flush(this._microtaskId)}),this.delegate.end&&this.delegate.end()}whenRenderingDone(){return this.engine.whenRenderingDone()}};var ks=(()=>{class r extends Ne{constructor(t,n,i){super(t,n,i)}ngOnDestroy(){this.flush()}static{this.\u0275fac=function(n){return new(n||r)(ue(pe),ue(_e),ue(be))}}static{this.\u0275prov=Te({token:r,factory:r.\u0275fac})}}return r})();function Rs(){return new lt}function Ms(r,e,t){return new yt(r,e,t)}var zr=[{provide:be,useFactory:Rs},{provide:Ne,useClass:ks},{provide:Nn,useFactory:Ms,deps:[jn,Ne,An]}],Ds=[{provide:_e,useFactory:()=>new ft},{provide:At,useValue:"BrowserAnimations"},...zr],aa=[{provide:_e,useClass:mn},{provide:At,useValue:"NoopAnimations"},...zr];function jr(){return kn("NgEagerAnimations"),[...Ds]}var xr=_n(Qr());var yn=(r,e)=>{let t=N(Je),n=N(me),i=N(Ue),s=N(Ce);if(Ve(i))return e(r);let o=s.getSecureUrls()?.split(","),a=k.secureUrls;Array.isArray(o)&&Array.isArray(a)?a=[...a,...o]:Array.isArray(o)&&!Array.isArray(a)&&(a=o);let l=s.getNonSigntureExcludedApi()?.split(","),u=k.nonSigntureExcludedApi;Array.isArray(l)&&Array.isArray(u)?u=[...u,...l]:Array.isArray(l)&&!Array.isArray(u)&&(u=l);let c=!1,f=new bn;for(let m=0;m<u.length;m++)if(u[m]&&r.url.toLowerCase().includes(u[m].toLowerCase()))return e(r).pipe(U(d=>d));if(r.url.includes("/Account/HandShake")){let m=r.clone({setHeaders:{handshaking:t._getFrontendPublicKeyB64FromLocalStorage()}});return e(m).pipe(U(d=>(d instanceof $&&(d=t.handle_hanshaking_signture(d)),d)))}for(let m=0;m<a.length;m++)if(a[m]&&r.url.toLowerCase().includes(a[m].toLowerCase()))if(t.isHandshaked()){let d=p(r);return e(d).pipe(U(h=>(h instanceof $&&(h.body.content=v(h)),h)),Z(h=>h.status==412?c?f.pipe(re(1),z(y=>{if(y){let _=p(r);return e(_).pipe(U(S=>(S instanceof $&&(S.body.content=v(S)),S)))}return D(h)})):(c=!0,t.handShaking(!0).pipe(z(y=>{if(y){c=!1;let _=p(r);return e(_).pipe(U(S=>(S instanceof $&&(f.next(!0),S.body.content=v(S)),S)))}return D(h)}))):((h.status==500||h.status==502||h.status==504)&&h.url.includes("GetSiteIdByHostName")&&n.navigate(["maintenance-page"]),D(h))))}else return c?f.pipe(re(1),z(d=>{if(d){let h=p(r);return e(h).pipe(U(y=>
7(y instanceof $&&(y.body.content=v(y)),y)),Z(y=>y.status==412?c?f.pipe(re(1),z(_=>{if(_){let S=p(r);return e(S).pipe(U(P=>(P instanceof $&&(P.body.content=v(P)),P)))}return D(y)})):(c=!0,t.handShaking(!0).pipe(z(_=>{if(_){c=!1;let S=p(r);return e(S).pipe(U(P=>(P instanceof $&&(f.next(!0),P.body.content=v(P)),P)))}return D(y)}))):((y.status==500||y.status==502||y.status==504)&&y.url.includes("GetSiteIdByHostName")&&n.navigate(["maintenance-page"]),D(y))))}return D(null)})):(c=!0,t.handShaking().pipe(z(d=>{if(d){c=!1;let h=p(r);return e(h).pipe(U(y=>(y instanceof $&&(f.next(!0),y.body.content=v(y)),y)),Z(y=>y.status==412?c?f.pipe(re(1),z(_=>{if(_){let S=p(r);return e(S).pipe(U(P=>(P instanceof $&&(P.body.content=v(P)),P)))}return D(y)})):(c=!0,t.handShaking(!0).pipe(z(_=>{if(_){c=!1;let S=p(r);return e(S).pipe(U(P=>(P instanceof $&&(f.next(!0),P.body.content=v(P)),P)))}return D(y)}))):((y.status==500||y.status==502||y.status==504)&&y.url.includes("GetSiteIdByHostName")&&n.navigate(["maintenance-page"]),D(y))))}return D(null)})));if(t.isHandshaked()){let m=C(r);return e(m).pipe(U(d=>(d instanceof $&&(d=b(d)),d)),Z(d=>d.status==412?c?f.pipe(re(1),z(h=>{if(h){let y=C(r);return e(y).pipe(U(_=>(_ instanceof $&&(_=b(_)),_)))}return D(d)})):(c=!0,t.handShaking(!0).pipe(z(h=>{if(h){c=!1;let y=C(r);return e(y).pipe(U(_=>(_ instanceof $&&(_=b(_)),_)))}return D(d)}))):((d.status==500||d.status==502||d.status==504)&&d.url.includes("GetSiteIdByHostName")&&n.navigate(["maintenance-page"]),D(d))))}else return c=!0,t.handShaking().pipe(z(m=>{if(m){c=!1;let d=C(r);return e(d).pipe(U(h=>(h instanceof $&&(h=b(h)),h)),Z(h=>h.status==412?c?f.pipe(re(1),z(y=>{if(y){let _=C(r);return e(_).pipe(U(S=>(S instanceof $&&(S=b(S)),S)))}return D(h)})):(c=!0,t.handShaking(!0).pipe(z(y=>{if(y){c=!1;let _=C(r);return e(_).pipe(U(S=>(S instanceof $&&(S=b(S)),S)))}return D(h)}))):((h.status==500||h.status==502||h.status==504)&&h.url.includes("GetSiteIdByHostName")&&n.navigate(["maintenance-page"]),D(h))))}return D(null)}));function C(m){if(m.body){var d=m.body;if(m.body&&m.body.constructor&&m.body.constructor.name==="FormData"){d="";let _=[];m.body.forEach((S,P)=>{S!="[object File]"&&_.push({Key:P,Value:S})}),d=JSON.stringify(_)}else typeof m.body!="string"&&!(m.body&&m.body.constructor&&m.body.constructor.name==="FormData")&&(d=JSON.stringify(m.body))}else d="";var h;return m.body&&m.body.constructor&&m.body.constructor.name==="FormData"?h="FormData":h="JSON",m.clone({setHeaders:{signature:t.generateSignture(d),pointerId:t._getPointerIdDecryptedByRsaFromLocalStorage(),oldContentType:h}})}function b(m){if(t.isJson(m.body)&&(m=m.clone({body:JSON.parse(m.body)})),!m.body.content)return m;var d=m.body.content,h=t.generateSignture(d);if(m.body.signature!=h)throw new Error("invalid reponse signture other backend played with the response, bad backend!!");return m.body.content=JSON.parse(m.body.content),m}function v(m){if(t.isJson(m.body)&&(m=m.clone({body:JSON.parse(m.body)})),!m.body.content)return m;let d=JSON.parse(m.body.content),h=t.decryptByAes(JSON.parse(d),m.body.major_salt);var y=t.generateSignture(h);if(m.body.signature!=y)throw new Error("invalid reponse signture other backend played with the response, bad backend!!");return JSON.parse(h)}function p(m){let d=[];if(m.body){var h=m.body;if(m.body&&m.body.constructor&&m.body.constructor.name==="FormData"){h="";let F=[];m.body.forEach((H,A)=>{H!="[object File]"?F.push({Key:A,Value:H}):d.push({Key:A,Value:H})}),h=JSON.stringify(F)}else typeof m.body!="string"&&(h=JSON.stringify(m.body))}else h="";let y="";m.body&&m.body.constructor&&m.body.constructor.name==="FormData"?y="FormData":y="JSON";var _=new xr.default,S=t.encryptByAes(h);if(_.append("cipherText",S),d.length>0)for(let F of d)_.append(F.Key,F.Value);return m.method=="GET"&&(_=null),m.clone({setHeaders:{signature:t.generateSignture(h),pointerId:t._getPointerIdDecryptedByRsaFromLocalStorage(),oldContentType:y,majorSalt:t.ivB64},body:_})}};var ke=_n(ei());var gn=(r,e)=>{let t=N(ze),n=N(Ue),i=N(Ce),s=r?.urlWithParams.split("/api")[1]?r.urlWithParams.split("/api")[1]:r.urlWithParams,o=JSON.stringify(r.body),a=ke.MD5(o),l=ke.enc.Base64.stringify(a),u=r.headers.get("siteid"),c=r.headers.get("authorization"),f=JSON.stringify({siteId:u,token:c}),C=ke.MD5(f),b=i.getCachingApis()?.split(","),v=ke.enc.Base64.stringify(C),p=`transfer-state-${s}-${l}`;Array.isArray(b)&&Array.isArray(k.cachingApis)?k.cachingApis=[...k.cachingApis,...b]:Array.isArray(b)&&!Array.isArray(k.cachingApis)?k.cachingApis=b:k.cachingApis=k.cachingApis;let m=!1,d;if(m&&(d=`transfer-state-api-caching${s}-${l}-${v}`),Pt(n)&&t.hasKey(p)){let h=t.get(p,null);if(h){t.remove(p);let y=0,_=!0;for(;_&&y<20;)if(p=`transfer-state-${s}-${l}-MultiCallApi${y}`,t.hasKey(p)){if(y==0){let S=t.get(p,null);p=`transfer-state-${s}-${l}`,t.set(p,S)}else{let S=t.get(p,null),P=y-1;p=`transfer-state-${s}-${l}-MultiCallApi${P}`,t.set(p,S)}y+=1}else _=!1;return ye(h)}else return D(()=>new Error("Cached response missing in TransferState"))}if(Pt(n)&&m&&t.hasKey(d)){let h=t.get(d,null);return h?ye(h):D(()=>new Error("Cached response missing in TransferState"))}return e(r).pipe(wn(h=>{if(Ve(n)&&h instanceof $){if(t.hasKey(p)){let y=0,_=!0;for(;_;)p=`transfer-state-${s}-${l}-MultiCallApi${y}`,t.hasKey(p)?y+=1:_=!1}t.set(p,h)}m&&!t.hasKey(d)&&h instanceof $&&t.set(d,h)}))};var Wr={dataKey:{},activeStep:{stepName:"",stepNumber:null,stepPaymentId:null},stepperStep:{stepName:"",isCompleted:!1,isBack:!1}},Gr=qe(Wr,te(sr,(r,e)=>x(O({},r),{dataKey:O(O({},r.dataKey),e)})),te(pr,(r,e)=>x(O({},r),{stepperStep:O({},e)})),te(mr,r=>(console.log("RESET!"),O({},Wr))),te(cr,(r,{name:e})=>x(O({},r),{dataKey:x(O({},r.dataKey),{[e]:x(O({},r.dataKey[e]),{isToggled:!1})})})),te(ur,(r,{stepName:e,stepNumber:t,stepPaymentId:n,cartType:i})=>x(O({},r),{activeStep:{stepName:e,stepNumber:t,stepPaymentId:n,cartType:i}})),te(or,(r,{key:e,data:t})=>x(O({},r),{dataKey:x(O({},r.dataKey),{[e]:r.dataKey[e]?O(O({},r.dataKey[e]),t):O({},t)})})),te(ar,(r,{mainKey:e,nestedKey:t,data:n})=>x(O({},r),{dataKey:x(O({},r.dataKey),{[e]:r.dataKey[e]?x(O({},r.dataKey[e]),{[t]:r.dataKey[e][t]?O(O({},r.dataKey[e][t]),n):O({},n)}):{}})})),te(lr,(r,{key:e})=>x(O({},r),{dataKey:Is(r.dataKey,e)})));function Is(r,e){let i=r,{[e]:t}=i;return $e(i,[vn(e)])}var qr=nr("[button component] changes other component visibility",rr());var Os={keys:{}},Jr=qe(Os,te(qr,(r,e)=>{debugger;return x(O({},r),{keys:O(O({},r.keys),e)})}));var Sn=[$t];k.enableServerSideCaching&&Sn.push(gn);k.enableCypherSecurity&&Sn.push(yn);function Fs(r,e,t){let n=N(pe),i=N(We),s=N(xe),o=N(Ye),a=N(Xe),l=N(Ce),u=`${n.location.host}${n.location.pathname}`,c=l.getSiteData()||"";console.log(c,"SITE DATA ???????");let f=l.getUserToken()||"",C=l.getUserRefreshToken()||"",b=l.getGuestToken()||"",v=l.getGuestRefreshToken()||"",p=l.getHandShakeData()||"",m=[$t];return k.enableServerSideCaching&&m.push(gn),k.enableCypherSecurity&&m.push(yn),()=>Me(this,null,function*(){if(!c)return;if(o.siteData=c,o.site.isADAuthRequired=!1,t.isPlatformServer)l.setSiteData(c),e.setWebAccessToken(f,C),e.setGuestToken(b,v);else{c.site.isADAuthRequired&&!e._webAccessToken&&k.useActiveDirectory&&(o.site.id=c.site.id,o.site.culture=c.culture,o.site.isADAuthRequired=!0,yield Ls(r,c.site.id),le&&(e.set("adUsername",le.username),e.set("adManagerName",le.manager),e.set("adFullName",le.fullName),e.set("coreToken",le?.coreToken?.token),e.set("SessionId",le?.coreToken?.sessionId),e.set("refreshCoreToken",le?.coreToken?.refreshToken),yield Hs(e,le.loginResponse,!0))
7);let S=yield Ke(r.get("/api-express/getTokens"));e.setWebAccessToken(S.userToken,S.userRefreshToken),e.setGuestToken(S.guestToken,S.guestRefreshToken),a.initUser()}if(!n.querySelector('link[rel="icon"]')){let S=n.createElement("link");S.rel="icon",S.href=c.site.logoURL,S.type="image/x-icon",n.head.appendChild(S)}i.setTitle(c.site.name),(c.site.primaryScripts?JSON.parse(c.site.primaryScripts):[]).forEach((S,P)=>{let F=`primary-script${P}`;if(!n.getElementById(F)){let H=n.createElement("script");H.type="text/javascript",H.id=F,H.textContent=`try { ${S.script} } catch(err){}`,n.head.appendChild(H)}});let h=c.defaultTheme;(h.fonts?JSON.parse(h.fonts):[]).forEach(S=>{if(S.fontLink.includes("<link"))n.querySelector(`link[href="${S.fontLink}"]`)||n.head.appendChild(S.fontLink);else if(S.fontLink.includes("/Resources")){if(!n.getElementById("theme-font")){let P=n.createElement("style");P.type="text/css",P.id="theme-font";let F=` 8 @font-face { 9 font-display: swap; 10 font-family: ${S.fontName}; 11 src: url(${S.fontLink}); 12 } 13 `;P.appendChild(n.createTextNode(F)),n.head.appendChild(P)}}else if(!n.querySelector(`link[href="${S.fontLink}"]`)){let P=n.createElement("link");P.setAttribute("rel","stylesheet"),P.setAttribute("type","text/css"),P.setAttribute("name","theme-font"),P.setAttribute("href",S.fontLink),n.head.appendChild(P)}S.isPrimaryFonts&&(n.body.style.fontFamily=S.fontName)});let _=c.site.primaryStyleUrl;if(_&&!n.querySelector(`link[href="${_}"]`)){let S=n.createElement("link");S.setAttribute("rel","stylesheet"),S.setAttribute("type","text/css"),S.setAttribute("href",_),n.head.appendChild(S)}o.site=c.site,o.siteSlugs=c.siteSlugs,o.postSlugs=c.postSlugs,o.site.culture=c.culture,o.site.currency=c.currency,o.site.cultureName=[c.cultureName],console.log(c,"siteData44444444444"),e.currentHostnameInfo={siteId:c?.site?.id,cultureId:c?.culture,cultureName:c?.cultureName,hostname:c?.hostname,prefix:c?.prefix,defaultRoute:c?.site?.defaultSlug,siteName:c?.site?.name},e.set("site",c),e.set("siteBasicInfo",{id:c.site.id,hostName:c.hostname}),e.set("cultureBasicInfo",{id:c.culture,name:c.cultureName}),console.log("LAST _CODE _ EXCUTE ! ")})}var le;function Ls(r,e){return new Promise((t,n)=>{let i=new Bn;i=i.set("siteId",String(e)+""),i=i.set("Content-Type","application/json"),r.get(k.adApiUrl+"/Identity/AdLogin",{headers:i,withCredentials:!0}).subscribe(s=>{le=s,t(!0)})})}function Hs(r,e,t){return new Promise((n,i)=>{r.set("userData",JSON.stringify(e)),r.set("adUserGroupName",e.groupName),r.set("adUserGroupId",e.groupId),r.set("isCoreIntegration","false"),r.setWebAccessToken(e.token.token,e.token.refreshToken),r.set("isADAuth",t?.toString()),n(t)})}var Yr={providers:[je,Ln({eventCoalescing:!0}),Gn(Ot,Jn(),qn({scrollPositionRestoration:"top"})),xn(Qn()),Kn(Un(Sn),zn()),{provide:Fn,useFactory:Fs,multi:!0,deps:[Qe,oe,he,ze]},Ae,jr(),Xn({timeOut:1e4,positionClass:"toast-bottom-right",closeButton:!0,toastClass:"toaster-bar",tapToDismiss:!0,messageClass:"toaster-message",progressBar:!0}),{provide:"SocialAuthServiceConfig",useValue:{autoLogin:!1,lang:"en",providers:[{id:Dt.PROVIDER_ID,provider:new Dt(k.googleProvider)},{id:It.PROVIDER_ID,provider:new It(k.faceBookProvider)}],onError:r=>{}}},ir(),Mt({name:"transferDate",reducer:Gr}),Mt({name:"changeVisibility",reducer:Jr})]};var gt=class r{constructor(e){this._platformService=e}ngOnInit(){}static \u0275fac=function(t){return new(t||r)(Pn(he))};static \u0275cmp=Cn({type:r,selectors:[["app-root"]],standalone:!0,features:[In([je]),On],decls:3,vars:0,consts:[[1,"main-container"],[1,"content-container"]],template:function(t,n){t&1&&(Rn(0,"div",0)(1,"div",1),Dn(2,"router-outlet"),Mn()())},dependencies:[Wn,Hn]})};k.isProduction&&(window.console.log=()=>{});Vn(gt,Yr).catch(r=>console.error(r));
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.