-
Notifications
You must be signed in to change notification settings - Fork 0
/
main-PQIZJNUE.js
5 lines (5 loc) · 106 KB
/
main-PQIZJNUE.js
1
2
3
4
5
import{a as Ti}from"./chunk-TU7BOAPF.js";import{a as Lt,b as Hn}from"./chunk-YYFKVPP6.js";import{a as Yn}from"./chunk-7IFOP52N.js";import"./chunk-6N2YU26M.js";import{a as zt,b as Kt}from"./chunk-WEZ63LNF.js";import{$a as Dn,Aa as it,B as yn,Ba as Q,Cc as Ot,D as yt,Da as de,Dc as bi,E as et,Fc as zn,G as _n,Ga as te,Gb as qe,Gc as Ei,H as w,Ha as mi,Hb as Nn,Hc as Kn,Ia as pi,Ic as $n,Id as Zn,J as K,Ja as fi,Jc as st,Jd as Xn,K as ae,Ka as b,Kc as Mt,L as le,La as _,Lb as Ct,Lc as qn,M,Ma as N,Mc as Pt,Md as Jn,N as C,Nc as Qe,O as vn,Oc as Se,Od as Ft,P as q,Pc as Qn,Pd as es,Q as ce,Qa as bt,Qc as Un,Qd as Bt,R as je,Ra as gi,Rb as At,Rd as ts,S as bn,Sa as ve,Sb as _i,Sc as It,Sd as jt,T as En,Ta as ie,Tc as Nt,Td as Ge,Ub as Dt,Uc as xt,Ud as is,V as Sn,Vb as xn,Vd as Vt,W as _t,Wb as Rn,X as vt,Xb as Ln,Yb as Fn,Yc as Gn,Zb as kt,_ as tt,_b as Bn,_d as ns,a as I,aa as pe,ab as kn,b as Fe,bb as On,c as hn,cd as E,d as F,dc as he,dd as ue,e as oe,ea as Ve,eb as Mn,f as un,fa as wn,fb as T,ga as hi,gb as $e,gd as Wn,h as J,ha as ze,hb as nt,hd as Si,j as ye,jd as Ue,k as mn,kd as wi,l as De,la as A,ld as Rt,m as pn,ma as D,n as fn,o as ke,oa as Tn,ob as be,pa as Cn,pb as Et,q as di,qa as _e,s as Je,sa as ui,sb as St,t as Be,tb as wt,tc as Ee,u as G,ua as Ke,uf as We,va as An,vc as jn,wb as Tt,we as ss,x as ee,xa as B,xb as yi,xc as vi,yb as Pn,z as gn,zb as In,zc as Vn}from"./chunk-A6GZZ5JF.js";var $t=(()=>{var e,t;let i=class i{constructor(){oe(this,e,C(Dt));oe(this,t,"latest-changelogs")}getLatestChangelog(){return F(this,e).get("/assets/latest-changelog.md")}setLatestSeen(r){localStorage.setItem(F(this,t),JSON.stringify({version:r.version}))}getLatestSeen(){let r=localStorage.getItem(F(this,t));return r?JSON.parse(r).version:null}};e=new WeakMap,t=new WeakMap,i.\u0275fac=function(o){return new(o||i)},i.\u0275prov=K({token:i,factory:i.\u0275fac,providedIn:"root"});let s=i;return s})();function yr(s,e){}var Oe=class{constructor(){this.role="dialog",this.panelClass="",this.hasBackdrop=!0,this.backdropClass="",this.disableClose=!1,this.width="",this.height="",this.data=null,this.ariaDescribedBy=null,this.ariaLabelledBy=null,this.ariaLabel=null,this.ariaModal=!0,this.autoFocus="first-tabbable",this.restoreFocus=!0,this.closeOnNavigation=!0,this.closeOnDestroy=!0,this.closeOnOverlayDetachments=!0}};var Di=(()=>{let e=class e extends $n{constructor(i,n,r,o,a,l,c,d){super(),this._elementRef=i,this._focusTrapFactory=n,this._config=o,this._interactivityChecker=a,this._ngZone=l,this._overlayRef=c,this._focusMonitor=d,this._platform=C(Vn),this._focusTrap=null,this._elementFocusedBeforeDialogWasOpened=null,this._closeInteractionType=null,this._ariaLabelledByQueue=[],this._changeDetectorRef=C(In),this.attachDomPortal=h=>{this._portalOutlet.hasAttached();let v=this._portalOutlet.attachDomPortal(h);return this._contentAttached(),v},this._document=r,this._config.ariaLabelledBy&&this._ariaLabelledByQueue.push(this._config.ariaLabelledBy)}_addAriaLabelledBy(i){this._ariaLabelledByQueue.push(i),this._changeDetectorRef.markForCheck()}_removeAriaLabelledBy(i){let n=this._ariaLabelledByQueue.indexOf(i);n>-1&&(this._ariaLabelledByQueue.splice(n,1),this._changeDetectorRef.markForCheck())}_contentAttached(){this._initializeFocusTrap(),this._handleBackdropClicks(),this._captureInitialFocus()}_captureInitialFocus(){this._trapFocus()}ngOnDestroy(){this._restoreFocus()}attachComponentPortal(i){this._portalOutlet.hasAttached();let n=this._portalOutlet.attachComponentPortal(i);return this._contentAttached(),n}attachTemplatePortal(i){this._portalOutlet.hasAttached();let n=this._portalOutlet.attachTemplatePortal(i);return this._contentAttached(),n}_recaptureFocus(){this._containsFocus()||this._trapFocus()}_forceFocus(i,n){this._interactivityChecker.isFocusable(i)||(i.tabIndex=-1,this._ngZone.runOutsideAngular(()=>{let r=()=>{i.removeEventListener("blur",r),i.removeEventListener("mousedown",r),i.removeAttribute("tabindex")};i.addEventListener("blur",r),i.addEventListener("mousedown",r)})),i.focus(n)}_focusByCssSelector(i,n){let r=this._elementRef.nativeElement.querySelector(i);r&&this._forceFocus(r,n)}_trapFocus(){let i=this._elementRef.nativeElement;switch(this._config.autoFocus){case!1:case"dialog":this._containsFocus()||i.focus();break;case!0:case"first-tabbable":this._focusTrap?.focusInitialElementWhenReady().then(n=>{n||this._focusDialogContainer()});break;case"first-heading":this._focusByCssSelector('h1, h2, h3, h4, h5, h6, [role="heading"]');break;default:this._focusByCssSelector(this._config.autoFocus);break}}_restoreFocus(){let i=this._config.restoreFocus,n=null;if(typeof i=="string"?n=this._document.querySelector(i):typeof i=="boolean"?n=i?this._elementFocusedBeforeDialogWasOpened:null:i&&(n=i),this._config.restoreFocus&&n&&typeof n.focus=="function"){let r=Ot(),o=this._elementRef.nativeElement;(!r||r===this._document.body||r===o||o.contains(r))&&(this._focusMonitor?(this._focusMonitor.focusVia(n,this._closeInteractionType),this._closeInteractionType=null):n.focus())}this._focusTrap&&this._focusTrap.destroy()}_focusDialogContainer(){this._elementRef.nativeElement.focus&&this._elementRef.nativeElement.focus()}_containsFocus(){let i=this._elementRef.nativeElement,n=Ot();return i===n||i.contains(n)}_initializeFocusTrap(){this._platform.isBrowser&&(this._focusTrap=this._focusTrapFactory.create(this._elementRef.nativeElement),this._document&&(this._elementFocusedBeforeDialogWasOpened=Ot()))}_handleBackdropClicks(){this._overlayRef.backdropClick().subscribe(()=>{this._config.disableClose&&this._recaptureFocus()})}};e.\u0275fac=function(n){return new(n||e)(D(Ve),D(Nt),D(qe,8),D(Oe),D(It),D(_e),D(Qe),D(xt))},e.\u0275cmp=q({type:e,selectors:[["cdk-dialog-container"]],viewQuery:function(n,r){if(n&1&&Dn(st,7),n&2){let o;kn(o=On())&&(r._portalOutlet=o.first)}},hostAttrs:["tabindex","-1",1,"cdk-dialog-container"],hostVars:6,hostBindings:function(n,r){n&2&&it("id",r._config.id||null)("role",r._config.role)("aria-modal",r._config.ariaModal)("aria-labelledby",r._config.ariaLabel?null:r._ariaLabelledByQueue[0])("aria-label",r._config.ariaLabel)("aria-describedby",r._config.ariaDescribedBy||null)},standalone:!0,features:[Ke,be],decls:1,vars:0,consts:[["cdkPortalOutlet",""]],template:function(n,r){n&1&&B(0,yr,0,0,"ng-template",0)},dependencies:[st],styles:[".cdk-dialog-container{display:block;width:100%;height:100%;min-height:inherit;max-height:inherit}"],encapsulation:2});let s=e;return s})(),rt=class{constructor(e,t){this.overlayRef=e,this.config=t,this.closed=new J,this.disableClose=t.disableClose,this.backdropClick=e.backdropClick(),this.keydownEvents=e.keydownEvents(),this.outsidePointerEvents=e.outsidePointerEvents(),this.id=t.id,this.keydownEvents.subscribe(i=>{i.keyCode===27&&!this.disableClose&&!Mt(i)&&(i.preventDefault(),this.close(void 0,{focusOrigin:"keyboard"}))}),this.backdropClick.subscribe(()=>{this.disableClose||this.close(void 0,{focusOrigin:"mouse"})}),this._detachSubscription=e.detachments().subscribe(()=>{t.closeOnOverlayDetachments!==!1&&this.close()})}close(e,t){if(this.containerInstance){let i=this.closed;this.containerInstance._closeInteractionType=t?.focusOrigin||"program",this._detachSubscription.unsubscribe(),this.overlayRef.dispose(),i.next(e),i.complete(),this.componentInstance=this.containerInstance=null}}updatePosition(){return this.overlayRef.updatePosition(),this}updateSize(e="",t=""){return this.overlayRef.updateSize({width:e,height:t}),this}addPanelClass(e){return this.overlayRef.addPanelClass(e),this}removePanelClass(e){return this.overlayRef.removePanelClass(e),this}},_r=new le("DialogScrollStrategy",{providedIn:"root",factory:()=>{let s=C(Se);return()=>s.scrollStrategies.block()}}),vr=new le("DialogData"),br=new le("DefaultDialogConfig");var Er=0,os=(()=>{let e=class e{get openDialogs(){return this._parentDialog?this._parentDialog.openDialogs:this._openDialogsAtThisLevel}get afterOpened(){return this._parentDialog?this._parentDialog.afterOpened:this._afterOpenedAtThisLevel}constructor(i,n,r,o,a,l){this._overlay=i,this._injector=n,this._defaultOptions=r,this._parentDialog=o,this._overlayContainer=a,this._openDialogsAtThisLevel=[],this._afterAllClosedAtThisLevel=new J,this._afterOpenedAtThisLevel=new J,this._ariaHiddenElements=new Map,this.afterAllClosed=ke(()=>this.openDialogs.length?this._getAfterAllClosed():this._getAfterAllClosed().pipe(yt(void 0))),this._scrollStrategy=l}open(i,n){let r=this._defaultOptions||new Oe;n=I(I({},r),n),n.id=n.id||`cdk-dialog-${Er++}`,n.id&&this.getDialogById(n.id);let o=this._getOverlayConfig(n),a=this._overlay.create(o),l=new rt(a,n),c=this._attachContainer(a,l,n);return l.containerInstance=c,this._attachDialogContent(i,l,c,n),this.openDialogs.length||this._hideNonDialogContentFromAssistiveTechnology(),this.openDialogs.push(l),l.closed.subscribe(()=>this._removeOpenDialog(l,!0)),this.afterOpened.next(l),l}closeAll(){Ci(this.openDialogs,i=>i.close())}getDialogById(i){return this.openDialogs.find(n=>n.id===i)}ngOnDestroy(){Ci(this._openDialogsAtThisLevel,i=>{i.config.closeOnDestroy===!1&&this._removeOpenDialog(i,!1)}),Ci(this._openDialogsAtThisLevel,i=>i.close()),this._afterAllClosedAtThisLevel.complete(),this._afterOpenedAtThisLevel.complete(),this._openDialogsAtThisLevel=[]}_getOverlayConfig(i){let n=new qn({positionStrategy:i.positionStrategy||this._overlay.position().global().centerHorizontally().centerVertically(),scrollStrategy:i.scrollStrategy||this._scrollStrategy(),panelClass:i.panelClass,hasBackdrop:i.hasBackdrop,direction:i.direction,minWidth:i.minWidth,minHeight:i.minHeight,maxWidth:i.maxWidth,maxHeight:i.maxHeight,width:i.width,height:i.height,disposeOnNavigation:i.closeOnNavigation});return i.backdropClass&&(n.backdropClass=i.backdropClass),n}_attachContainer(i,n,r){let o=r.injector||r.viewContainerRef?.injector,a=[{provide:Oe,useValue:r},{provide:rt,useValue:n},{provide:Qe,useValue:i}],l;r.container?typeof r.container=="function"?l=r.container:(l=r.container.type,a.push(...r.container.providers(r))):l=Di;let c=new Ei(l,r.viewContainerRef,pe.create({parent:o||this._injector,providers:a}),r.componentFactoryResolver);return i.attach(c).instance}_attachDialogContent(i,n,r,o){if(i instanceof Tn){let a=this._createInjector(o,n,r,void 0),l={$implicit:o.data,dialogRef:n};o.templateContext&&(l=I(I({},l),typeof o.templateContext=="function"?o.templateContext():o.templateContext)),r.attachTemplatePortal(new Kn(i,null,l,a))}else{let a=this._createInjector(o,n,r,this._injector),l=r.attachComponentPortal(new Ei(i,o.viewContainerRef,a,o.componentFactoryResolver));n.componentRef=l,n.componentInstance=l.instance}}_createInjector(i,n,r,o){let a=i.injector||i.viewContainerRef?.injector,l=[{provide:vr,useValue:i.data},{provide:rt,useValue:n}];return i.providers&&(typeof i.providers=="function"?l.push(...i.providers(n,i,r)):l.push(...i.providers)),i.direction&&(!a||!a.get(bi,null,{optional:!0}))&&l.push({provide:bi,useValue:{value:i.direction,change:ye()}}),pe.create({parent:a||o,providers:l})}_removeOpenDialog(i,n){let r=this.openDialogs.indexOf(i);r>-1&&(this.openDialogs.splice(r,1),this.openDialogs.length||(this._ariaHiddenElements.forEach((o,a)=>{o?a.setAttribute("aria-hidden",o):a.removeAttribute("aria-hidden")}),this._ariaHiddenElements.clear(),n&&this._getAfterAllClosed().next()))}_hideNonDialogContentFromAssistiveTechnology(){let i=this._overlayContainer.getContainerElement();if(i.parentElement){let n=i.parentElement.children;for(let r=n.length-1;r>-1;r--){let o=n[r];o!==i&&o.nodeName!=="SCRIPT"&&o.nodeName!=="STYLE"&&!o.hasAttribute("aria-live")&&(this._ariaHiddenElements.set(o,o.getAttribute("aria-hidden")),o.setAttribute("aria-hidden","true"))}}}_getAfterAllClosed(){let i=this._parentDialog;return i?i._getAfterAllClosed():this._afterAllClosedAtThisLevel}};e.\u0275fac=function(n){return new(n||e)(M(Se),M(pe),M(br,8),M(e,12),M(Pt),M(_r))},e.\u0275prov=K({token:e,factory:e.\u0275fac,providedIn:"root"});let s=e;return s})();function Ci(s,e){let t=s.length;for(;t--;)e(s[t])}function Sr(s,e){}var ot=class{constructor(){this.role="dialog",this.panelClass="",this.hasBackdrop=!0,this.backdropClass="",this.disableClose=!1,this.width="",this.height="",this.data=null,this.ariaDescribedBy=null,this.ariaLabelledBy=null,this.ariaLabel=null,this.ariaModal=!0,this.autoFocus="first-tabbable",this.restoreFocus=!0,this.delayFocusTrap=!0,this.closeOnNavigation=!0}},ki="mdc-dialog--open",as="mdc-dialog--opening",ls="mdc-dialog--closing",wr=150,Tr=75,Cr=(()=>{let e=class e extends Di{constructor(i,n,r,o,a,l,c,d,h){super(i,n,r,o,a,l,c,h),this._animationMode=d,this._animationStateChanged=new wn,this._animationsEnabled=this._animationMode!=="NoopAnimations",this._actionSectionCount=0,this._hostElement=this._elementRef.nativeElement,this._enterAnimationDuration=this._animationsEnabled?ds(this._config.enterAnimationDuration)??wr:0,this._exitAnimationDuration=this._animationsEnabled?ds(this._config.exitAnimationDuration)??Tr:0,this._animationTimer=null,this._isDestroyed=!1,this._finishDialogOpen=()=>{this._clearAnimationClasses(),this._openAnimationDone(this._enterAnimationDuration)},this._finishDialogClose=()=>{this._clearAnimationClasses(),this._animationStateChanged.emit({state:"closed",totalTime:this._exitAnimationDuration})}}_contentAttached(){super._contentAttached(),this._startOpenAnimation()}_startOpenAnimation(){this._animationStateChanged.emit({state:"opening",totalTime:this._enterAnimationDuration}),this._animationsEnabled?(this._hostElement.style.setProperty(cs,`${this._enterAnimationDuration}ms`),this._requestAnimationFrame(()=>this._hostElement.classList.add(as,ki)),this._waitForAnimationToComplete(this._enterAnimationDuration,this._finishDialogOpen)):(this._hostElement.classList.add(ki),Promise.resolve().then(()=>this._finishDialogOpen()))}_startExitAnimation(){this._animationStateChanged.emit({state:"closing",totalTime:this._exitAnimationDuration}),this._hostElement.classList.remove(ki),this._animationsEnabled?(this._hostElement.style.setProperty(cs,`${this._exitAnimationDuration}ms`),this._requestAnimationFrame(()=>this._hostElement.classList.add(ls)),this._waitForAnimationToComplete(this._exitAnimationDuration,this._finishDialogClose)):Promise.resolve().then(()=>this._finishDialogClose())}_updateActionSectionCount(i){this._actionSectionCount+=i,this._changeDetectorRef.markForCheck()}_clearAnimationClasses(){this._hostElement.classList.remove(as,ls)}_waitForAnimationToComplete(i,n){this._animationTimer!==null&&clearTimeout(this._animationTimer),this._animationTimer=setTimeout(n,i)}_requestAnimationFrame(i){this._ngZone.runOutsideAngular(()=>{typeof requestAnimationFrame=="function"?requestAnimationFrame(i):i()})}_captureInitialFocus(){this._config.delayFocusTrap||this._trapFocus()}_openAnimationDone(i){this._isDestroyed||(this._config.delayFocusTrap&&this._trapFocus(),this._animationStateChanged.next({state:"opened",totalTime:i}))}ngOnDestroy(){super.ngOnDestroy(),this._animationTimer!==null&&clearTimeout(this._animationTimer),this._isDestroyed=!0}attachComponentPortal(i){let n=super.attachComponentPortal(i);return n.location.nativeElement.classList.add("mat-mdc-dialog-component-host"),n}};e.\u0275fac=function(n){return new(n||e)(D(Ve),D(Nt),D(qe,8),D(ot),D(It),D(_e),D(Qe),D(ze,8),D(xt))},e.\u0275cmp=q({type:e,selectors:[["mat-dialog-container"]],hostAttrs:["tabindex","-1",1,"mat-mdc-dialog-container","mdc-dialog"],hostVars:10,hostBindings:function(n,r){n&2&&(gi("id",r._config.id),it("aria-modal",r._config.ariaModal)("role",r._config.role)("aria-labelledby",r._config.ariaLabel?null:r._ariaLabelledByQueue[0])("aria-label",r._config.ariaLabel)("aria-describedby",r._config.ariaDescribedBy||null),de("_mat-animation-noopable",!r._animationsEnabled)("mat-mdc-dialog-container-with-actions",r._actionSectionCount>0))},standalone:!0,features:[Ke,be],decls:3,vars:0,consts:[[1,"mat-mdc-dialog-inner-container","mdc-dialog__container"],[1,"mat-mdc-dialog-surface","mdc-dialog__surface"],["cdkPortalOutlet",""]],template:function(n,r){n&1&&(b(0,"div",0)(1,"div",1),B(2,Sr,0,0,"ng-template",2),_()())},dependencies:[st],styles:['.mat-mdc-dialog-container{width:100%;height:100%;display:block;box-sizing:border-box;max-height:inherit;min-height:inherit;min-width:inherit;max-width:inherit;outline:0}.cdk-overlay-pane.mat-mdc-dialog-panel{max-width:var(--mat-dialog-container-max-width, 80vw);min-width:var(--mat-dialog-container-min-width, 0)}@media(max-width: 599px){.cdk-overlay-pane.mat-mdc-dialog-panel{max-width:var(--mat-dialog-container-small-max-width, 80vw)}}.mat-mdc-dialog-inner-container{display:flex;flex-direction:row;align-items:center;justify-content:space-around;box-sizing:border-box;height:100%;opacity:0;transition:opacity linear var(--mat-dialog-transition-duration, 0ms);max-height:inherit;min-height:inherit;min-width:inherit;max-width:inherit}.mdc-dialog--closing .mat-mdc-dialog-inner-container{transition:opacity 75ms linear;transform:none}.mdc-dialog--open .mat-mdc-dialog-inner-container{opacity:1}._mat-animation-noopable .mat-mdc-dialog-inner-container{transition:none}.mat-mdc-dialog-surface{display:flex;flex-direction:column;flex-grow:0;flex-shrink:0;box-sizing:border-box;width:100%;height:100%;position:relative;overflow-y:auto;outline:0;transform:scale(0.8);transition:transform var(--mat-dialog-transition-duration, 0ms) cubic-bezier(0, 0, 0.2, 1);max-height:inherit;min-height:inherit;min-width:inherit;max-width:inherit;box-shadow:var(--mat-dialog-container-elevation-shadow, 0px 11px 15px -7px rgba(0, 0, 0, 0.2), 0px 24px 38px 3px rgba(0, 0, 0, 0.14), 0px 9px 46px 8px rgba(0, 0, 0, 0.12));border-radius:var(--mdc-dialog-container-shape, 4px);background-color:var(--mdc-dialog-container-color, white)}[dir=rtl] .mat-mdc-dialog-surface{text-align:right}.mdc-dialog--open .mat-mdc-dialog-surface,.mdc-dialog--closing .mat-mdc-dialog-surface{transform:none}._mat-animation-noopable .mat-mdc-dialog-surface{transition:none}.mat-mdc-dialog-surface::before{position:absolute;box-sizing:border-box;width:100%;height:100%;top:0;left:0;border:2px solid rgba(0,0,0,0);border-radius:inherit;content:"";pointer-events:none}.mat-mdc-dialog-title{display:block;margin-top:0;position:relative;flex-shrink:0;box-sizing:border-box;margin:0 0 1px;padding:var(--mat-dialog-headline-padding, 0 24px 9px)}.mat-mdc-dialog-title::before{display:inline-block;width:0;height:40px;content:"";vertical-align:0}[dir=rtl] .mat-mdc-dialog-title{text-align:right}.mat-mdc-dialog-container .mat-mdc-dialog-title{color:var(--mdc-dialog-subhead-color, rgba(0, 0, 0, 0.87));font-family:var(--mdc-dialog-subhead-font, Roboto, sans-serif);line-height:var(--mdc-dialog-subhead-line-height, 1.5rem);font-size:var(--mdc-dialog-subhead-size, 1rem);font-weight:var(--mdc-dialog-subhead-weight, 400);letter-spacing:var(--mdc-dialog-subhead-tracking, 0.03125em)}.mat-mdc-dialog-content{display:block;flex-grow:1;box-sizing:border-box;margin:0;overflow:auto;max-height:65vh}.mat-mdc-dialog-content>:first-child{margin-top:0}.mat-mdc-dialog-content>:last-child{margin-bottom:0}.mat-mdc-dialog-container .mat-mdc-dialog-content{color:var(--mdc-dialog-supporting-text-color, rgba(0, 0, 0, 0.6));font-family:var(--mdc-dialog-supporting-text-font, Roboto, sans-serif);line-height:var(--mdc-dialog-supporting-text-line-height, 1.5rem);font-size:var(--mdc-dialog-supporting-text-size, 1rem);font-weight:var(--mdc-dialog-supporting-text-weight, 400);letter-spacing:var(--mdc-dialog-supporting-text-tracking, 0.03125em)}.mat-mdc-dialog-container .mat-mdc-dialog-content{padding:var(--mat-dialog-content-padding, 20px 24px)}.mat-mdc-dialog-container-with-actions .mat-mdc-dialog-content{padding:var(--mat-dialog-with-actions-content-padding, 20px 24px)}.mat-mdc-dialog-container .mat-mdc-dialog-title+.mat-mdc-dialog-content{padding-top:0}.mat-mdc-dialog-actions{display:flex;position:relative;flex-shrink:0;flex-wrap:wrap;align-items:center;justify-content:flex-end;box-sizing:border-box;min-height:52px;margin:0;padding:8px;border-top:1px solid rgba(0,0,0,0);padding:var(--mat-dialog-actions-padding, 8px);justify-content:var(--mat-dialog-actions-alignment, start)}.cdk-high-contrast-active .mat-mdc-dialog-actions{border-top-color:CanvasText}.mat-mdc-dialog-actions.mat-mdc-dialog-actions-align-start,.mat-mdc-dialog-actions[align=start]{justify-content:start}.mat-mdc-dialog-actions.mat-mdc-dialog-actions-align-center,.mat-mdc-dialog-actions[align=center]{justify-content:center}.mat-mdc-dialog-actions.mat-mdc-dialog-actions-align-end,.mat-mdc-dialog-actions[align=end]{justify-content:flex-end}.mat-mdc-dialog-actions .mat-button-base+.mat-button-base,.mat-mdc-dialog-actions .mat-mdc-button-base+.mat-mdc-button-base{margin-left:8px}[dir=rtl] .mat-mdc-dialog-actions .mat-button-base+.mat-button-base,[dir=rtl] .mat-mdc-dialog-actions .mat-mdc-button-base+.mat-mdc-button-base{margin-left:0;margin-right:8px}.mat-mdc-dialog-component-host{display:contents}'],encapsulation:2});let s=e;return s})(),cs="--mat-dialog-transition-duration";function ds(s){return s==null?null:typeof s=="number"?s:s.endsWith("ms")?vi(s.substring(0,s.length-2)):s.endsWith("s")?vi(s.substring(0,s.length-1))*1e3:s==="0"?0:null}var qt=function(s){return s[s.OPEN=0]="OPEN",s[s.CLOSING=1]="CLOSING",s[s.CLOSED=2]="CLOSED",s}(qt||{}),at=class{constructor(e,t,i){this._ref=e,this._containerInstance=i,this._afterOpened=new J,this._beforeClosed=new J,this._state=qt.OPEN,this.disableClose=t.disableClose,this.id=e.id,e.addPanelClass("mat-mdc-dialog-panel"),i._animationStateChanged.pipe(G(n=>n.state==="opened"),ee(1)).subscribe(()=>{this._afterOpened.next(),this._afterOpened.complete()}),i._animationStateChanged.pipe(G(n=>n.state==="closed"),ee(1)).subscribe(()=>{clearTimeout(this._closeFallbackTimeout),this._finishDialogClose()}),e.overlayRef.detachments().subscribe(()=>{this._beforeClosed.next(this._result),this._beforeClosed.complete(),this._finishDialogClose()}),Je(this.backdropClick(),this.keydownEvents().pipe(G(n=>n.keyCode===27&&!this.disableClose&&!Mt(n)))).subscribe(n=>{this.disableClose||(n.preventDefault(),us(this,n.type==="keydown"?"keyboard":"mouse"))})}close(e){this._result=e,this._containerInstance._animationStateChanged.pipe(G(t=>t.state==="closing"),ee(1)).subscribe(t=>{this._beforeClosed.next(e),this._beforeClosed.complete(),this._ref.overlayRef.detachBackdrop(),this._closeFallbackTimeout=setTimeout(()=>this._finishDialogClose(),t.totalTime+100)}),this._state=qt.CLOSING,this._containerInstance._startExitAnimation()}afterOpened(){return this._afterOpened}afterClosed(){return this._ref.closed}beforeClosed(){return this._beforeClosed}backdropClick(){return this._ref.backdropClick}keydownEvents(){return this._ref.keydownEvents}updatePosition(e){let t=this._ref.config.positionStrategy;return e&&(e.left||e.right)?e.left?t.left(e.left):t.right(e.right):t.centerHorizontally(),e&&(e.top||e.bottom)?e.top?t.top(e.top):t.bottom(e.bottom):t.centerVertically(),this._ref.updatePosition(),this}updateSize(e="",t=""){return this._ref.updateSize(e,t),this}addPanelClass(e){return this._ref.addPanelClass(e),this}removePanelClass(e){return this._ref.removePanelClass(e),this}getState(){return this._state}_finishDialogClose(){this._state=qt.CLOSED,this._ref.close(this._result,{focusOrigin:this._closeInteractionType}),this.componentInstance=null}};function us(s,e,t){return s._closeInteractionType=e,s.close(t)}var Oi=new le("MatMdcDialogData"),Ar=new le("mat-mdc-dialog-default-options"),Dr=new le("mat-mdc-dialog-scroll-strategy",{providedIn:"root",factory:()=>{let s=C(Se);return()=>s.scrollStrategies.block()}});var kr=0,Qt=(()=>{let e=class e{get openDialogs(){return this._parentDialog?this._parentDialog.openDialogs:this._openDialogsAtThisLevel}get afterOpened(){return this._parentDialog?this._parentDialog.afterOpened:this._afterOpenedAtThisLevel}_getAfterAllClosed(){let i=this._parentDialog;return i?i._getAfterAllClosed():this._afterAllClosedAtThisLevel}constructor(i,n,r,o,a,l,c,d){this._overlay=i,this._defaultOptions=o,this._scrollStrategy=a,this._parentDialog=l,this._openDialogsAtThisLevel=[],this._afterAllClosedAtThisLevel=new J,this._afterOpenedAtThisLevel=new J,this.dialogConfigClass=ot,this.afterAllClosed=ke(()=>this.openDialogs.length?this._getAfterAllClosed():this._getAfterAllClosed().pipe(yt(void 0))),this._dialog=n.get(os),this._dialogRefConstructor=at,this._dialogContainerType=Cr,this._dialogDataToken=Oi}open(i,n){let r;n=I(I({},this._defaultOptions||new ot),n),n.id=n.id||`mat-mdc-dialog-${kr++}`,n.scrollStrategy=n.scrollStrategy||this._scrollStrategy();let o=this._dialog.open(i,Fe(I({},n),{positionStrategy:this._overlay.position().global().centerHorizontally().centerVertically(),disableClose:!0,closeOnDestroy:!1,closeOnOverlayDetachments:!1,container:{type:this._dialogContainerType,providers:()=>[{provide:this.dialogConfigClass,useValue:n},{provide:Oe,useValue:n}]},templateContext:()=>({dialogRef:r}),providers:(a,l,c)=>(r=new this._dialogRefConstructor(a,n,c),r.updatePosition(n?.position),[{provide:this._dialogContainerType,useValue:c},{provide:this._dialogDataToken,useValue:l.data},{provide:this._dialogRefConstructor,useValue:r}])}));return r.componentRef=o.componentRef,r.componentInstance=o.componentInstance,this.openDialogs.push(r),this.afterOpened.next(r),r.afterClosed().subscribe(()=>{let a=this.openDialogs.indexOf(r);a>-1&&(this.openDialogs.splice(a,1),this.openDialogs.length||this._getAfterAllClosed().next())}),r}closeAll(){this._closeDialogs(this.openDialogs)}getDialogById(i){return this.openDialogs.find(n=>n.id===i)}ngOnDestroy(){this._closeDialogs(this._openDialogsAtThisLevel),this._afterAllClosedAtThisLevel.complete(),this._afterOpenedAtThisLevel.complete()}_closeDialogs(i){let n=i.length;for(;n--;)i[n].close()}};e.\u0275fac=function(n){return new(n||e)(M(Se),M(pe),M(Nn,8),M(Ar,8),M(Dr),M(e,12),M(Pt),M(ze,8))},e.\u0275prov=K({token:e,factory:e.\u0275fac,providedIn:"root"});let s=e;return s})(),Or=0,ms=(()=>{let e=class e{constructor(i,n,r){this.dialogRef=i,this._elementRef=n,this._dialog=r,this.type="button"}ngOnInit(){this.dialogRef||(this.dialogRef=_s(this._elementRef,this._dialog.openDialogs))}ngOnChanges(i){let n=i._matDialogClose||i._matDialogCloseResult;n&&(this.dialogResult=n.currentValue)}_onButtonClick(i){us(this.dialogRef,i.screenX===0&&i.screenY===0?"keyboard":"mouse",this.dialogResult)}};e.\u0275fac=function(n){return new(n||e)(D(at,8),D(Ve),D(Qt))},e.\u0275dir=je({type:e,selectors:[["","mat-dialog-close",""],["","matDialogClose",""]],hostVars:2,hostBindings:function(n,r){n&1&&ve("click",function(a){return r._onButtonClick(a)}),n&2&&it("aria-label",r.ariaLabel||null)("type",r.type)},inputs:{ariaLabel:[0,"aria-label","ariaLabel"],type:"type",dialogResult:[0,"mat-dialog-close","dialogResult"],_matDialogClose:[0,"matDialogClose","_matDialogClose"]},exportAs:["matDialogClose"],standalone:!0,features:[Sn]});let s=e;return s})(),ps=(()=>{let e=class e{constructor(i,n,r){this._dialogRef=i,this._elementRef=n,this._dialog=r}ngOnInit(){this._dialogRef||(this._dialogRef=_s(this._elementRef,this._dialog.openDialogs)),this._dialogRef&&Promise.resolve().then(()=>{this._onAdd()})}ngOnDestroy(){this._dialogRef?._containerInstance&&Promise.resolve().then(()=>{this._onRemove()})}};e.\u0275fac=function(n){return new(n||e)(D(at,8),D(Ve),D(Qt))},e.\u0275dir=je({type:e,standalone:!0});let s=e;return s})(),fs=(()=>{let e=class e extends ps{constructor(){super(...arguments),this.id=`mat-mdc-dialog-title-${Or++}`}_onAdd(){this._dialogRef._containerInstance?._addAriaLabelledBy?.(this.id)}_onRemove(){this._dialogRef?._containerInstance?._removeAriaLabelledBy?.(this.id)}};e.\u0275fac=(()=>{let i;return function(r){return(i||(i=tt(e)))(r||e)}})(),e.\u0275dir=je({type:e,selectors:[["","mat-dialog-title",""],["","matDialogTitle",""]],hostAttrs:[1,"mat-mdc-dialog-title","mdc-dialog__title"],hostVars:1,hostBindings:function(n,r){n&2&&gi("id",r.id)},inputs:{id:"id"},exportAs:["matDialogTitle"],standalone:!0,features:[Ke]});let s=e;return s})(),gs=(()=>{let e=class e{};e.\u0275fac=function(n){return new(n||e)},e.\u0275dir=je({type:e,selectors:[["","mat-dialog-content",""],["mat-dialog-content"],["","matDialogContent",""]],hostAttrs:[1,"mat-mdc-dialog-content","mdc-dialog__content"],standalone:!0,features:[An([zn])]});let s=e;return s})(),ys=(()=>{let e=class e extends ps{_onAdd(){this._dialogRef._containerInstance?._updateActionSectionCount?.(1)}_onRemove(){this._dialogRef._containerInstance?._updateActionSectionCount?.(-1)}};e.\u0275fac=(()=>{let i;return function(r){return(i||(i=tt(e)))(r||e)}})(),e.\u0275dir=je({type:e,selectors:[["","mat-dialog-actions",""],["mat-dialog-actions"],["","matDialogActions",""]],hostAttrs:[1,"mat-mdc-dialog-actions","mdc-dialog__actions"],hostVars:6,hostBindings:function(n,r){n&2&&de("mat-mdc-dialog-actions-align-start",r.align==="start")("mat-mdc-dialog-actions-align-center",r.align==="center")("mat-mdc-dialog-actions-align-end",r.align==="end")},inputs:{align:"align"},standalone:!0,features:[Ke]});let s=e;return s})();function _s(s,e){let t=s.nativeElement.parentElement;for(;t&&!t.classList.contains("mat-mdc-dialog-container");)t=t.parentElement;return t?e.find(i=>i.id===t.id):null}function Mr(s,e){if(s&1&&(T(0," - "),b(1,"span"),T(2),_()),s&2){let t=ie();A(2),$e(t.dialogData.changelog.date)}}var vs=(()=>{var e;let t=class t{constructor(){oe(this,e);this.dialogData=C(Oi),un(this,e,C(Ee))}toggleDisableChangelog(n){F(this,e).saveSettings(Fe(I({},F(this,e).getSettings()),{disableChangelogs:n.checked}))}};e=new WeakMap,t.\u0275fac=function(r){return new(r||t)},t.\u0275cmp=q({type:t,selectors:[["app-changelog-dialog"]],standalone:!0,features:[be],decls:13,vars:3,consts:[["mat-dialog-title","",1,"font-xl","font-bold"],[1,"prose","max-w-full"],[1,"flex","gap-3","font-bold"],[3,"data"],[1,"!justify-between"],[3,"change"],["matDialogClose","",1,"btn-amber"]],template:function(r,o){r&1&&(b(0,"h1",0),T(1,"Changelog"),_(),b(2,"mat-dialog-content",1)(3,"div",2)(4,"span"),T(5),_(),B(6,Mr,3,1,"span"),_(),N(7,"markdown",3),_(),b(8,"mat-dialog-actions",4)(9,"mat-checkbox",5),ve("change",function(l){return o.toggleDisableChangelog(l)}),T(10,"Don't show changelogs"),_(),b(11,"button",6),T(12,"Close"),_()()),r&2&&(A(5),$e(o.dialogData.changelog.version),A(),te(o.dialogData.changelog.date?6:-1),A(),Q("data",o.dialogData.changelog.body))},dependencies:[ys,ms,fs,gs,Lt,Yn],styles:["[_nghost-%COMP%]{--mdc-dialog-subhead-weight: 700;--mdc-dialog-subhead-size: 1.5rem;--mdc-dialog-subhead-line-height: 1.8rem}"]});let s=t;return s})();var Ir=()=>["cdk-overlay-dark-backdrop","!transition-none"],Es=()=>["text-white","active"];function Nr(s,e){s&1&&(b(0,"span",7),T(1,"BETA"),_())}function xr(s,e){if(s&1&&(b(0,"li")(1,"a",15),N(2,"app-ui-icon",16),b(3,"span",17),T(4),_()()()),s&2){let t=e.$implicit;A(),Q("routerLink",t.path)("routerLinkActive",Et(4,Es)),A(),Q("uiIcon",t.uiIcon),A(2),$e(t.text)}}function Rr(s,e){if(s&1&&(b(0,"li",19)(1,"a",20),N(2,"app-ui-icon",21),b(3,"span",22),T(4),_()()()),s&2){let t=e.$implicit;A(),Q("routerLinkActive",Et(4,Es))("routerLink",t.path),A(),Q("uiIcon",t.uiIcon),A(2),$e(t.text)}}function Lr(s,e){if(s&1&&(b(0,"ul",18),pi(1,Rr,5,5,"li",19,mi),_()),s&2){let t=ie();A(),fi(t.naviLinks)}}var Ss=(()=>{let e=class e{constructor(){this.naviLinks=[{text:"Journal",uiIcon:he.JOURNAL,path:"journal"},{text:"Crafting",uiIcon:he.CRAFTING,path:"crafting"},{text:"NPCs",uiIcon:he.PEOPLE,path:"npcs"},{text:"Locations",uiIcon:he.MAP,path:"locations"},{text:"My Guide",uiIcon:he.MY_CORAL,path:"my"},{text:"Item database",uiIcon:he.DATABASE,path:"database"}],this.isOpen=!1,this.uiIcon=he,this.isBeta=!1,this._router=C(es),this._settingsService=C(Ee),this._setClass=!0,this._router.events.pipe(G(i=>i instanceof Xn)).subscribe(()=>{this.isOpen=!1}),this.isBeta=this._settingsService.getSettings().useBeta}};e.\u0275fac=function(n){return new(n||e)},e.\u0275cmp=q({type:e,selectors:[["app-header"]],hostVars:4,hostBindings:function(n,r){n&2&&de("open-menu",r.isOpen)("app-header",r._setClass)},decls:19,vars:9,consts:[["trigger","cdkOverlayOrigin"],[1,"flex","justify-between","px-4"],[1,"relative","flex"],["routerLink","/",1,"flex","gap-x-4","items-center","text-header"],["alt","Super Coral. Logo of the website.","src","assets/ui/images/icons/Super_Coral.png",1,"h-12","w-12","xl:w-16","xl:h-16"],[1,"text-4xl","font-semibold","hidden","xl:block"],[1,"text-4xl","font-semibold","block","xl:hidden"],[1,"beta-badge","xl:!top-5","leading-none","font-bold","text-black","absolute","px-1.5","py-1","rounded-sm","right-0"],[1,"hidden","md:block"],[1,"flex","gap-x-6"],[1,"block","md:hidden"],["cdkOverlayOrigin","","type","button",1,"flex","flex-col","py-3","px-2","text-neutral-400","hover:text-neutral-300","items-center","text-center",3,"click"],[1,"!h-10","!w-10","max-xl",3,"uiIcon"],[1,"user-sync","hidden","xl:block"],["cdkConnectedOverlay","","cdkConnectedOverlayHasBackdrop","",3,"cdkConnectedOverlayBackdropClass","cdkConnectedOverlayOpen","cdkConnectedOverlayOrigin","cdkConnectedOverlayPanelClass"],[1,"flex","flex-col","py-3","px-2","text-neutral-400","hover:text-neutral-300","items-center","text-center",3,"routerLink","routerLinkActive"],[1,"!h-6","!w-6","xl:!h-12","xl:!w-12","mb-2","max-xl",3,"uiIcon"],[1,"xl:text-lg","font-semibold"],[1,"py-4"],[1,"my-2"],[1,"flex","py-3","px-4","text-neutral-400","hover:text-neutral-300","items-center",3,"routerLinkActive","routerLink"],[1,"!h-6","!w-6","mr-3","max-xl",3,"uiIcon"],[1,"font-semibold"]],template:function(n,r){if(n&1){let o=bt();b(0,"div",1)(1,"div",2)(2,"a",3),N(3,"img",4),b(4,"span",5),T(5,"Coral Guide"),_(),b(6,"span",6),T(7,"CG"),_()(),B(8,Nr,2,0,"span",7),_(),b(9,"nav",8)(10,"ul",9),pi(11,xr,5,5,"li",null,mi),_()(),b(13,"div",10)(14,"button",11,0),ve("click",function(){return _t(o),vt(r.isOpen=!r.isOpen)}),N(16,"app-ui-icon",12),_()(),N(17,"div",13),_(),B(18,Lr,3,0,"ng-template",14)}if(n&2){let o=Mn(15);A(8),te(r.isBeta?8:-1),A(3),fi(r.naviLinks),A(5),de("!text-accent",r.isOpen),Q("uiIcon",r.uiIcon.BURGER_MENU),A(2),Q("cdkConnectedOverlayBackdropClass",Et(8,Ir))("cdkConnectedOverlayOpen",r.isOpen)("cdkConnectedOverlayOrigin",o)("cdkConnectedOverlayPanelClass","mobile-menu-panel")}},dependencies:[Bt,ts,Un,Qn,Vt],styles:[`.app-header{--header-text-color: #8a7c67;display:block;--tw-backdrop-blur: blur(24px);-webkit-backdrop-filter:var(--tw-backdrop-blur) var(--tw-backdrop-brightness) var(--tw-backdrop-contrast) var(--tw-backdrop-grayscale) var(--tw-backdrop-hue-rotate) var(--tw-backdrop-invert) var(--tw-backdrop-opacity) var(--tw-backdrop-saturate) var(--tw-backdrop-sepia);backdrop-filter:var(--tw-backdrop-blur) var(--tw-backdrop-brightness) var(--tw-backdrop-contrast) var(--tw-backdrop-grayscale) var(--tw-backdrop-hue-rotate) var(--tw-backdrop-invert) var(--tw-backdrop-opacity) var(--tw-backdrop-saturate) var(--tw-backdrop-sepia);padding-right:env(safe-area-inset-right);padding-left:env(safe-area-inset-left);padding-top:env(safe-area-inset-top);background-color:#000000bf}.app-header.open-menu{z-index:1001}.app-header .active .app-ui-icon{--tw-text-opacity: 1;color:rgb(216 158 67 / var(--tw-text-opacity))}.mobile-menu-panel{display:block;--tw-backdrop-blur: blur(24px);-webkit-backdrop-filter:var(--tw-backdrop-blur) var(--tw-backdrop-brightness) var(--tw-backdrop-contrast) var(--tw-backdrop-grayscale) var(--tw-backdrop-hue-rotate) var(--tw-backdrop-invert) var(--tw-backdrop-opacity) var(--tw-backdrop-saturate) var(--tw-backdrop-sepia);backdrop-filter:var(--tw-backdrop-blur) var(--tw-backdrop-brightness) var(--tw-backdrop-contrast) var(--tw-backdrop-grayscale) var(--tw-backdrop-hue-rotate) var(--tw-backdrop-invert) var(--tw-backdrop-opacity) var(--tw-backdrop-saturate) var(--tw-backdrop-sepia);padding-right:env(safe-area-inset-right);padding-left:env(safe-area-inset-left);background-color:#000000bf;left:0!important;right:0!important}.mobile-menu-panel .active .app-ui-icon{--tw-text-opacity: 1;color:rgb(216 158 67 / var(--tw-text-opacity))}.text-header{color:var(--header-text-color)}.beta-badge{background-color:var(--header-text-color);padding:3px;font-size:80%;transform:translate(60%);top:5px;pointer-events:none}
`],encapsulation:2});let s=e;return s})();var ws=(()=>{let e=class e{constructor(){this.uiIcon=he,this.version=C(Ge),this._setCssClass=!0}};e.\u0275fac=function(n){return new(n||e)},e.\u0275cmp=q({type:e,selectors:[["app-footer"]],hostVars:2,hostBindings:function(n,r){n&2&&de("app-footer",r._setCssClass)},decls:10,vars:2,consts:[[1,"backdrop-blur-xl","px-safe","pt-4","pb-safe-or-4","text-white/70","items-center","justify-center","flex","gap-2","flex-wrap"],[1,"!text-gifting/80","!w-5","!h-5",3,"uiIcon"],["routerLink","/about",1,"text-accent"],["fragment","support","routerLink","/about",1,"text-accent"]],template:function(n,r){n&1&&(b(0,"footer",0),T(1," Made with "),N(2,"app-ui-icon",1),T(3," by Koenig. "),b(4,"a",2),T(5,"About Coral Guide"),_(),T(6," - "),b(7,"a",3),T(8,"Support Coral Guide"),_(),T(9),_()),n&2&&(A(2),Q("uiIcon",r.uiIcon.LOVE),A(7),nt(" - Data from game version (steam): ",r.version,`
`))},dependencies:[Bt,Vt],styles:[`.app-footer footer{background-color:#000000bf;min-height:var(--cg-min-footer-height)}
`],encapsulation:2});let s=e;return s})();function Vr(s,e){s&1&&N(0,"router-outlet")}function zr(s,e){s&1&&N(0,"mat-spinner",1)}var Ts=(()=>{var e,t,i,n;let r=class r{constructor(){oe(this,e,C(jn));oe(this,t,C($t));oe(this,i,C(Qt));oe(this,n,C(Ee));C(Zn).read(),F(this,n).getSettings().disableChangelogs||F(this,t).getLatestChangelog().subscribe({next:a=>{if(a.version===F(this,t).getLatestSeen())return;F(this,i).open(vs,{data:{changelog:a},hasBackdrop:!0,width:"800px"}).afterClosed().subscribe({next:()=>{F(this,t).setLatestSeen(a)}})}}),this.prefetchData$=pn([F(this,e).fetchItems$(),F(this,e).fetchTagBasedItems$(),F(this,e).fetchProcessorMapping$(),F(this,e).fetchCookingUtensilMapping$()])}};e=new WeakMap,t=new WeakMap,i=new WeakMap,n=new WeakMap,r.\u0275fac=function(l){return new(l||r)},r.\u0275cmp=q({type:r,selectors:[["app-root"]],decls:6,vars:3,consts:[[1,"flex-grow-0","flex-shrink-0"],[1,"text-white","mx-auto","my-5"]],template:function(l,c){if(l&1&&(N(0,"app-header",0),b(1,"main"),B(2,Vr,1,0,"router-outlet"),St(3,"async"),B(4,zr,1,0,"mat-spinner",1),_(),N(5,"app-footer",0)),l&2){let d;A(2),te((d=wt(3,1,c.prefetchData$))?2:4,d)}},dependencies:[Jn,Ss,ws,zt,Ct],styles:["main[_ngcontent-%COMP%]{min-height:calc(100vh - (var(--cg-min-header-height) + var(--cg-min-footer-height)))}"]});let s=r;return s})();var Cs=(()=>{let e=class e{};e.\u0275fac=function(n){return new(n||e)},e.\u0275mod=ce({type:e}),e.\u0275inj=ae({imports:[At,We,jt]});let s=e;return s})();function As(s){return new w(3e3,!1)}function Kr(){return new w(3100,!1)}function $r(){return new w(3101,!1)}function qr(s){return new w(3001,!1)}function Qr(s){return new w(3003,!1)}function Ur(s){return new w(3004,!1)}function Gr(s,e){return new w(3005,!1)}function Wr(){return new w(3006,!1)}function Hr(){return new w(3007,!1)}function Yr(s,e){return new w(3008,!1)}function Zr(s){return new w(3002,!1)}function Xr(s,e,t,i,n){return new w(3010,!1)}function Jr(){return new w(3011,!1)}function eo(){return new w(3012,!1)}function to(){return new w(3200,!1)}function io(){return new w(3202,!1)}function no(){return new w(3013,!1)}function so(s){return new w(3014,!1)}function ro(s){return new w(3015,!1)}function oo(s){return new w(3016,!1)}function ao(s,e){return new w(3404,!1)}function lo(s){return new w(3502,!1)}function co(s){return new w(3503,!1)}function ho(){return new w(3300,!1)}function uo(s){return new w(3504,!1)}function mo(s){return new w(3301,!1)}function po(s,e){return new w(3302,!1)}function fo(s){return new w(3303,!1)}function go(s,e){return new w(3400,!1)}function yo(s){return new w(3401,!1)}function _o(s){return new w(3402,!1)}function vo(s,e){return new w(3505,!1)}function we(s){switch(s.length){case 0:return new Ue;case 1:return s[0];default:return new wi(s)}}function Vs(s,e,t=new Map,i=new Map){let n=[],r=[],o=-1,a=null;if(e.forEach(l=>{let c=l.get("offset"),d=c==o,h=d&&a||new Map;l.forEach((v,y)=>{let m=y,g=v;if(y!=="offset")switch(m=s.normalizePropertyName(m,n),g){case Rt:g=t.get(y);break;case ue:g=i.get(y);break;default:g=s.normalizeStyleValue(y,m,g,n);break}h.set(m,g)}),d||r.push(h),a=h,o=c}),n.length)throw lo(n);return r}function Xi(s,e,t,i){switch(e){case"start":s.onStart(()=>i(t&&Mi(t,"start",s)));break;case"done":s.onDone(()=>i(t&&Mi(t,"done",s)));break;case"destroy":s.onDestroy(()=>i(t&&Mi(t,"destroy",s)));break}}function Mi(s,e,t){let i=t.totalTime,n=!!t.disabled,r=Ji(s.element,s.triggerName,s.fromState,s.toState,e||s.phaseName,i??s.totalTime,n),o=s._data;return o!=null&&(r._data=o),r}function Ji(s,e,t,i,n="",r=0,o){return{element:s,triggerName:e,fromState:t,toState:i,phaseName:n,totalTime:r,disabled:!!o}}function Y(s,e,t){let i=s.get(e);return i||s.set(e,i=t),i}function Ds(s){let e=s.indexOf(":"),t=s.substring(1,e),i=s.slice(e+1);return[t,i]}var bo=typeof document>"u"?null:document.documentElement;function en(s){let e=s.parentNode||s.host||null;return e===bo?null:e}function Eo(s){return s.substring(1,6)=="ebkit"}var Me=null,ks=!1;function So(s){Me||(Me=wo()||{},ks=Me.style?"WebkitAppearance"in Me.style:!1);let e=!0;return Me.style&&!Eo(s)&&(e=s in Me.style,!e&&ks&&(e="Webkit"+s.charAt(0).toUpperCase()+s.slice(1)in Me.style)),e}function wo(){return typeof document<"u"?document.body:null}function zs(s,e){for(;e;){if(e===s)return!0;e=en(e)}return!1}function Ks(s,e,t){if(t)return Array.from(s.querySelectorAll(e));let i=s.querySelector(e);return i?[i]:[]}var tn=(()=>{let e=class e{validateStyleProperty(i){return So(i)}containsElement(i,n){return zs(i,n)}getParentElement(i){return en(i)}query(i,n,r){return Ks(i,n,r)}computeStyle(i,n,r){return r||""}animate(i,n,r,o,a,l=[],c){return new Ue(r,o)}};e.\u0275fac=function(n){return new(n||e)},e.\u0275prov=K({token:e,factory:e.\u0275fac});let s=e;return s})(),on=class on{};on.NOOP=new tn;var Ne=on,xe=class{};var To=1e3,$s="{{",Co="}}",qs="ng-enter",Li="ng-leave",Ut="ng-trigger",Zt=".ng-trigger",Os="ng-animating",Fi=".ng-animating";function fe(s){if(typeof s=="number")return s;let e=s.match(/^(-?[\.\d]+)(m?s)/);return!e||e.length<2?0:Bi(parseFloat(e[1]),e[2])}function Bi(s,e){switch(e){case"s":return s*To;default:return s}}function Xt(s,e,t){return s.hasOwnProperty("duration")?s:Ao(s,e,t)}function Ao(s,e,t){let i=/^(-?[\.\d]+)(m?s)(?:\s+(-?[\.\d]+)(m?s))?(?:\s+([-a-z]+(?:\(.+?\))?))?$/i,n,r=0,o="";if(typeof s=="string"){let a=s.match(i);if(a===null)return e.push(As(s)),{duration:0,delay:0,easing:""};n=Bi(parseFloat(a[1]),a[2]);let l=a[3];l!=null&&(r=Bi(parseFloat(l),a[4]));let c=a[5];c&&(o=c)}else n=s;if(!t){let a=!1,l=e.length;n<0&&(e.push(Kr()),a=!0),r<0&&(e.push($r()),a=!0),a&&e.splice(l,0,As(s))}return{duration:n,delay:r,easing:o}}function Do(s){return s.length?s[0]instanceof Map?s:s.map(e=>new Map(Object.entries(e))):[]}function me(s,e,t){e.forEach((i,n)=>{let r=nn(n);t&&!t.has(n)&&t.set(n,s.style[r]),s.style[r]=i})}function Ie(s,e){e.forEach((t,i)=>{let n=nn(i);s.style[n]=""})}function lt(s){return Array.isArray(s)?s.length==1?s[0]:Wn(s):s}function ko(s,e,t){let i=e.params||{},n=Qs(s);n.length&&n.forEach(r=>{i.hasOwnProperty(r)||t.push(qr(r))})}var ji=new RegExp(`${$s}\\s*(.+?)\\s*${Co}`,"g");function Qs(s){let e=[];if(typeof s=="string"){let t;for(;t=ji.exec(s);)e.push(t[1]);ji.lastIndex=0}return e}function dt(s,e,t){let i=`${s}`,n=i.replace(ji,(r,o)=>{let a=e[o];return a==null&&(t.push(Qr(o)),a=""),a.toString()});return n==i?s:n}var Oo=/-+([a-z0-9])/g;function nn(s){return s.replace(Oo,(...e)=>e[1].toUpperCase())}function Mo(s,e){return s===0||e===0}function Po(s,e,t){if(t.size&&e.length){let i=e[0],n=[];if(t.forEach((r,o)=>{i.has(o)||n.push(o),i.set(o,r)}),n.length)for(let r=1;r<e.length;r++){let o=e[r];n.forEach(a=>o.set(a,sn(s,a)))}}return e}function H(s,e,t){switch(e.type){case E.Trigger:return s.visitTrigger(e,t);case E.State:return s.visitState(e,t);case E.Transition:return s.visitTransition(e,t);case E.Sequence:return s.visitSequence(e,t);case E.Group:return s.visitGroup(e,t);case E.Animate:return s.visitAnimate(e,t);case E.Keyframes:return s.visitKeyframes(e,t);case E.Style:return s.visitStyle(e,t);case E.Reference:return s.visitReference(e,t);case E.AnimateChild:return s.visitAnimateChild(e,t);case E.AnimateRef:return s.visitAnimateRef(e,t);case E.Query:return s.visitQuery(e,t);case E.Stagger:return s.visitStagger(e,t);default:throw Ur(e.type)}}function sn(s,e){return window.getComputedStyle(s)[e]}var Io=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"]),Jt=class extends xe{normalizePropertyName(e,t){return nn(e)}normalizeStyleValue(e,t,i,n){let r="",o=i.toString().trim();if(Io.has(t)&&i!==0&&i!=="0")if(typeof i=="number")r="px";else{let a=i.match(/^[+-]?[\d\.]+([a-z]*)$/);a&&a[1].length==0&&n.push(Gr(e,i))}return o+r}};var ei="*";function No(s,e){let t=[];return typeof s=="string"?s.split(/\s*,\s*/).forEach(i=>xo(i,t,e)):t.push(s),t}function xo(s,e,t){if(s[0]==":"){let l=Ro(s,t);if(typeof l=="function"){e.push(l);return}s=l}let i=s.match(/^(\*|[-\w]+)\s*(<?[=-]>)\s*(\*|[-\w]+)$/);if(i==null||i.length<4)return t.push(ro(s)),e;let n=i[1],r=i[2],o=i[3];e.push(Ms(n,o));let a=n==ei&&o==ei;r[0]=="<"&&!a&&e.push(Ms(o,n))}function Ro(s,e){switch(s){case":enter":return"void => *";case":leave":return"* => void";case":increment":return(t,i)=>parseFloat(i)>parseFloat(t);case":decrement":return(t,i)=>parseFloat(i)<parseFloat(t);default:return e.push(oo(s)),"* => *"}}var Gt=new Set(["true","1"]),Wt=new Set(["false","0"]);function Ms(s,e){let t=Gt.has(s)||Wt.has(s),i=Gt.has(e)||Wt.has(e);return(n,r)=>{let o=s==ei||s==n,a=e==ei||e==r;return!o&&t&&typeof n=="boolean"&&(o=n?Gt.has(s):Wt.has(s)),!a&&i&&typeof r=="boolean"&&(a=r?Gt.has(e):Wt.has(e)),o&&a}}var Us=":self",Lo=new RegExp(`s*${Us}s*,?`,"g");function Gs(s,e,t,i){return new Vi(s).build(e,t,i)}var Ps="",Vi=class{constructor(e){this._driver=e}build(e,t,i){let n=new zi(t);return this._resetContextStyleTimingState(n),H(this,lt(e),n)}_resetContextStyleTimingState(e){e.currentQuerySelector=Ps,e.collectedStyles=new Map,e.collectedStyles.set(Ps,new Map),e.currentTime=0}visitTrigger(e,t){let i=t.queryCount=0,n=t.depCount=0,r=[],o=[];return e.name.charAt(0)=="@"&&t.errors.push(Wr()),e.definitions.forEach(a=>{if(this._resetContextStyleTimingState(t),a.type==E.State){let l=a,c=l.name;c.toString().split(/\s*,\s*/).forEach(d=>{l.name=d,r.push(this.visitState(l,t))}),l.name=c}else if(a.type==E.Transition){let l=this.visitTransition(a,t);i+=l.queryCount,n+=l.depCount,o.push(l)}else t.errors.push(Hr())}),{type:E.Trigger,name:e.name,states:r,transitions:o,queryCount:i,depCount:n,options:null}}visitState(e,t){let i=this.visitStyle(e.styles,t),n=e.options&&e.options.params||null;if(i.containsDynamicStyles){let r=new Set,o=n||{};i.styles.forEach(a=>{a instanceof Map&&a.forEach(l=>{Qs(l).forEach(c=>{o.hasOwnProperty(c)||r.add(c)})})}),r.size&&t.errors.push(Yr(e.name,[...r.values()]))}return{type:E.State,name:e.name,style:i,options:n?{params:n}:null}}visitTransition(e,t){t.queryCount=0,t.depCount=0;let i=H(this,lt(e.animation),t),n=No(e.expr,t.errors);return{type:E.Transition,matchers:n,animation:i,queryCount:t.queryCount,depCount:t.depCount,options:Pe(e.options)}}visitSequence(e,t){return{type:E.Sequence,steps:e.steps.map(i=>H(this,i,t)),options:Pe(e.options)}}visitGroup(e,t){let i=t.currentTime,n=0,r=e.steps.map(o=>{t.currentTime=i;let a=H(this,o,t);return n=Math.max(n,t.currentTime),a});return t.currentTime=n,{type:E.Group,steps:r,options:Pe(e.options)}}visitAnimate(e,t){let i=Vo(e.timings,t.errors);t.currentAnimateTimings=i;let n,r=e.styles?e.styles:Si({});if(r.type==E.Keyframes)n=this.visitKeyframes(r,t);else{let o=e.styles,a=!1;if(!o){a=!0;let c={};i.easing&&(c.easing=i.easing),o=Si(c)}t.currentTime+=i.duration+i.delay;let l=this.visitStyle(o,t);l.isEmptyStep=a,n=l}return t.currentAnimateTimings=null,{type:E.Animate,timings:i,style:n,options:null}}visitStyle(e,t){let i=this._makeStyleAst(e,t);return this._validateStyleAst(i,t),i}_makeStyleAst(e,t){let i=[],n=Array.isArray(e.styles)?e.styles:[e.styles];for(let a of n)typeof a=="string"?a===ue?i.push(a):t.errors.push(Zr(a)):i.push(new Map(Object.entries(a)));let r=!1,o=null;return i.forEach(a=>{if(a instanceof Map&&(a.has("easing")&&(o=a.get("easing"),a.delete("easing")),!r)){for(let l of a.values())if(l.toString().indexOf($s)>=0){r=!0;break}}}),{type:E.Style,styles:i,easing:o,offset:e.offset,containsDynamicStyles:r,options:null}}_validateStyleAst(e,t){let i=t.currentAnimateTimings,n=t.currentTime,r=t.currentTime;i&&r>0&&(r-=i.duration+i.delay),e.styles.forEach(o=>{typeof o!="string"&&o.forEach((a,l)=>{let c=t.collectedStyles.get(t.currentQuerySelector),d=c.get(l),h=!0;d&&(r!=n&&r>=d.startTime&&n<=d.endTime&&(t.errors.push(Xr(l,d.startTime,d.endTime,r,n)),h=!1),r=d.startTime),h&&c.set(l,{startTime:r,endTime:n}),t.options&&ko(a,t.options,t.errors)})})}visitKeyframes(e,t){let i={type:E.Keyframes,styles:[],options:null};if(!t.currentAnimateTimings)return t.errors.push(Jr()),i;let n=1,r=0,o=[],a=!1,l=!1,c=0,d=e.steps.map(P=>{let x=this._makeStyleAst(P,t),V=x.offset!=null?x.offset:jo(x.styles),L=0;return V!=null&&(r++,L=x.offset=V),l=l||L<0||L>1,a=a||L<c,c=L,o.push(L),x});l&&t.errors.push(eo()),a&&t.errors.push(to());let h=e.steps.length,v=0;r>0&&r<h?t.errors.push(io()):r==0&&(v=n/(h-1));let y=h-1,m=t.currentTime,g=t.currentAnimateTimings,k=g.duration;return d.forEach((P,x)=>{let V=v>0?x==y?1:v*x:o[x],L=V*k;t.currentTime=m+g.delay+L,g.duration=L,this._validateStyleAst(P,t),P.offset=V,i.styles.push(P)}),i}visitReference(e,t){return{type:E.Reference,animation:H(this,lt(e.animation),t),options:Pe(e.options)}}visitAnimateChild(e,t){return t.depCount++,{type:E.AnimateChild,options:Pe(e.options)}}visitAnimateRef(e,t){return{type:E.AnimateRef,animation:this.visitReference(e.animation,t),options:Pe(e.options)}}visitQuery(e,t){let i=t.currentQuerySelector,n=e.options||{};t.queryCount++,t.currentQuery=e;let[r,o]=Fo(e.selector);t.currentQuerySelector=i.length?i+" "+r:r,Y(t.collectedStyles,t.currentQuerySelector,new Map);let a=H(this,lt(e.animation),t);return t.currentQuery=null,t.currentQuerySelector=i,{type:E.Query,selector:r,limit:n.limit||0,optional:!!n.optional,includeSelf:o,animation:a,originalSelector:e.selector,options:Pe(e.options)}}visitStagger(e,t){t.currentQuery||t.errors.push(no());let i=e.timings==="full"?{duration:0,delay:0,easing:"full"}:Xt(e.timings,t.errors,!0);return{type:E.Stagger,animation:H(this,lt(e.animation),t),timings:i,options:null}}};function Fo(s){let e=!!s.split(/\s*,\s*/).find(t=>t==Us);return e&&(s=s.replace(Lo,"")),s=s.replace(/@\*/g,Zt).replace(/@\w+/g,t=>Zt+"-"+t.slice(1)).replace(/:animating/g,Fi),[s,e]}function Bo(s){return s?I({},s):null}var zi=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 jo(s){if(typeof s=="string")return null;let e=null;if(Array.isArray(s))s.forEach(t=>{if(t instanceof Map&&t.has("offset")){let i=t;e=parseFloat(i.get("offset")),i.delete("offset")}});else if(s instanceof Map&&s.has("offset")){let t=s;e=parseFloat(t.get("offset")),t.delete("offset")}return e}function Vo(s,e){if(s.hasOwnProperty("duration"))return s;if(typeof s=="number"){let r=Xt(s,e).duration;return Pi(r,0,"")}let t=s;if(t.split(/\s+/).some(r=>r.charAt(0)=="{"&&r.charAt(1)=="{")){let r=Pi(0,0,"");return r.dynamic=!0,r.strValue=t,r}let n=Xt(t,e);return Pi(n.duration,n.delay,n.easing)}function Pe(s){return s?(s=I({},s),s.params&&(s.params=Bo(s.params))):s={},s}function Pi(s,e,t){return{duration:s,delay:e,easing:t}}function rn(s,e,t,i,n,r,o=null,a=!1){return{type:1,element:s,keyframes:e,preStyleProps:t,postStyleProps:i,duration:n,delay:r,totalTime:n+r,easing:o,subTimeline:a}}var ht=class{constructor(){this._map=new Map}get(e){return this._map.get(e)||[]}append(e,t){let i=this._map.get(e);i||this._map.set(e,i=[]),i.push(...t)}has(e){return this._map.has(e)}clear(){this._map.clear()}},zo=1,Ko=":enter",$o=new RegExp(Ko,"g"),qo=":leave",Qo=new RegExp(qo,"g");function Ws(s,e,t,i,n,r=new Map,o=new Map,a,l,c=[]){return new Ki().buildKeyframes(s,e,t,i,n,r,o,a,l,c)}var Ki=class{buildKeyframes(e,t,i,n,r,o,a,l,c,d=[]){c=c||new ht;let h=new $i(e,t,c,n,r,d,[]);h.options=l;let v=l.delay?fe(l.delay):0;h.currentTimeline.delayNextStep(v),h.currentTimeline.setStyles([o],null,h.errors,l),H(this,i,h);let y=h.timelines.filter(m=>m.containsAnimation());if(y.length&&a.size){let m;for(let g=y.length-1;g>=0;g--){let k=y[g];if(k.element===t){m=k;break}}m&&!m.allowOnlyTimelineStyles()&&m.setStyles([a],null,h.errors,l)}return y.length?y.map(m=>m.buildKeyframes()):[rn(t,[],[],[],0,v,"",!1)]}visitTrigger(e,t){}visitState(e,t){}visitTransition(e,t){}visitAnimateChild(e,t){let i=t.subInstructions.get(t.element);if(i){let n=t.createSubContext(e.options),r=t.currentTimeline.currentTime,o=this._visitSubInstructions(i,n,n.options);r!=o&&t.transformIntoNewTimeline(o)}t.previousNode=e}visitAnimateRef(e,t){let i=t.createSubContext(e.options);i.transformIntoNewTimeline(),this._applyAnimationRefDelays([e.options,e.animation.options],t,i),this.visitReference(e.animation,i),t.transformIntoNewTimeline(i.currentTimeline.currentTime),t.previousNode=e}_applyAnimationRefDelays(e,t,i){for(let n of e){let r=n?.delay;if(r){let o=typeof r=="number"?r:fe(dt(r,n?.params??{},t.errors));i.delayNextStep(o)}}}_visitSubInstructions(e,t,i){let r=t.currentTimeline.currentTime,o=i.duration!=null?fe(i.duration):null,a=i.delay!=null?fe(i.delay):null;return o!==0&&e.forEach(l=>{let c=t.appendInstructionToTimeline(l,o,a);r=Math.max(r,c.duration+c.delay)}),r}visitReference(e,t){t.updateOptions(e.options,!0),H(this,e.animation,t),t.previousNode=e}visitSequence(e,t){let i=t.subContextCount,n=t,r=e.options;if(r&&(r.params||r.delay)&&(n=t.createSubContext(r),n.transformIntoNewTimeline(),r.delay!=null)){n.previousNode.type==E.Style&&(n.currentTimeline.snapshotCurrentStyles(),n.previousNode=ti);let o=fe(r.delay);n.delayNextStep(o)}e.steps.length&&(e.steps.forEach(o=>H(this,o,n)),n.currentTimeline.applyStylesToKeyframe(),n.subContextCount>i&&n.transformIntoNewTimeline()),t.previousNode=e}visitGroup(e,t){let i=[],n=t.currentTimeline.currentTime,r=e.options&&e.options.delay?fe(e.options.delay):0;e.steps.forEach(o=>{let a=t.createSubContext(e.options);r&&a.delayNextStep(r),H(this,o,a),n=Math.max(n,a.currentTimeline.currentTime),i.push(a.currentTimeline)}),i.forEach(o=>t.currentTimeline.mergeTimelineCollectedStyles(o)),t.transformIntoNewTimeline(n),t.previousNode=e}_visitTiming(e,t){if(e.dynamic){let i=e.strValue,n=t.params?dt(i,t.params,t.errors):i;return Xt(n,t.errors)}else return{duration:e.duration,delay:e.delay,easing:e.easing}}visitAnimate(e,t){let i=t.currentAnimateTimings=this._visitTiming(e.timings,t),n=t.currentTimeline;i.delay&&(t.incrementTime(i.delay),n.snapshotCurrentStyles());let r=e.style;r.type==E.Keyframes?this.visitKeyframes(r,t):(t.incrementTime(i.duration),this.visitStyle(r,t),n.applyStylesToKeyframe()),t.currentAnimateTimings=null,t.previousNode=e}visitStyle(e,t){let i=t.currentTimeline,n=t.currentAnimateTimings;!n&&i.hasCurrentStyleProperties()&&i.forwardFrame();let r=n&&n.easing||e.easing;e.isEmptyStep?i.applyEmptyStep(r):i.setStyles(e.styles,r,t.errors,t.options),t.previousNode=e}visitKeyframes(e,t){let i=t.currentAnimateTimings,n=t.currentTimeline.duration,r=i.duration,a=t.createSubContext().currentTimeline;a.easing=i.easing,e.styles.forEach(l=>{let c=l.offset||0;a.forwardTime(c*r),a.setStyles(l.styles,l.easing,t.errors,t.options),a.applyStylesToKeyframe()}),t.currentTimeline.mergeTimelineCollectedStyles(a),t.transformIntoNewTimeline(n+r),t.previousNode=e}visitQuery(e,t){let i=t.currentTimeline.currentTime,n=e.options||{},r=n.delay?fe(n.delay):0;r&&(t.previousNode.type===E.Style||i==0&&t.currentTimeline.hasCurrentStyleProperties())&&(t.currentTimeline.snapshotCurrentStyles(),t.previousNode=ti);let o=i,a=t.invokeQuery(e.selector,e.originalSelector,e.limit,e.includeSelf,!!n.optional,t.errors);t.currentQueryTotal=a.length;let l=null;a.forEach((c,d)=>{t.currentQueryIndex=d;let h=t.createSubContext(e.options,c);r&&h.delayNextStep(r),c===t.element&&(l=h.currentTimeline),H(this,e.animation,h),h.currentTimeline.applyStylesToKeyframe();let v=h.currentTimeline.currentTime;o=Math.max(o,v)}),t.currentQueryIndex=0,t.currentQueryTotal=0,t.transformIntoNewTimeline(o),l&&(t.currentTimeline.mergeTimelineCollectedStyles(l),t.currentTimeline.snapshotCurrentStyles()),t.previousNode=e}visitStagger(e,t){let i=t.parentContext,n=t.currentTimeline,r=e.timings,o=Math.abs(r.duration),a=o*(t.currentQueryTotal-1),l=o*t.currentQueryIndex;switch(r.duration<0?"reverse":r.easing){case"reverse":l=a-l;break;case"full":l=i.currentStaggerTime;break}let d=t.currentTimeline;l&&d.delayNextStep(l);let h=d.currentTime;H(this,e.animation,t),t.previousNode=e,i.currentStaggerTime=n.currentTime-h+(n.startTime-i.currentTimeline.startTime)}},ti={},$i=class s{constructor(e,t,i,n,r,o,a,l){this._driver=e,this.element=t,this.subInstructions=i,this._enterClassName=n,this._leaveClassName=r,this.errors=o,this.timelines=a,this.parentContext=null,this.currentAnimateTimings=null,this.previousNode=ti,this.subContextCount=0,this.options={},this.currentQueryIndex=0,this.currentQueryTotal=0,this.currentStaggerTime=0,this.currentTimeline=l||new ii(this._driver,t,0),a.push(this.currentTimeline)}get params(){return this.options.params}updateOptions(e,t){if(!e)return;let i=e,n=this.options;i.duration!=null&&(n.duration=fe(i.duration)),i.delay!=null&&(n.delay=fe(i.delay));let r=i.params;if(r){let o=n.params;o||(o=this.options.params={}),Object.keys(r).forEach(a=>{(!t||!o.hasOwnProperty(a))&&(o[a]=dt(r[a],o,this.errors))})}}_copyOptions(){let e={};if(this.options){let t=this.options.params;if(t){let i=e.params={};Object.keys(t).forEach(n=>{i[n]=t[n]})}}return e}createSubContext(e=null,t,i){let n=t||this.element,r=new s(this._driver,n,this.subInstructions,this._enterClassName,this._leaveClassName,this.errors,this.timelines,this.currentTimeline.fork(n,i||0));return r.previousNode=this.previousNode,r.currentAnimateTimings=this.currentAnimateTimings,r.options=this._copyOptions(),r.updateOptions(e),r.currentQueryIndex=this.currentQueryIndex,r.currentQueryTotal=this.currentQueryTotal,r.parentContext=this,this.subContextCount++,r}transformIntoNewTimeline(e){return this.previousNode=ti,this.currentTimeline=this.currentTimeline.fork(this.element,e),this.timelines.push(this.currentTimeline),this.currentTimeline}appendInstructionToTimeline(e,t,i){let n={duration:t??e.duration,delay:this.currentTimeline.currentTime+(i??0)+e.delay,easing:""},r=new qi(this._driver,e.element,e.keyframes,e.preStyleProps,e.postStyleProps,n,e.stretchStartingKeyframe);return this.timelines.push(r),n}incrementTime(e){this.currentTimeline.forwardTime(this.currentTimeline.duration+e)}delayNextStep(e){e>0&&this.currentTimeline.delayNextStep(e)}invokeQuery(e,t,i,n,r,o){let a=[];if(n&&a.push(this.element),e.length>0){e=e.replace($o,"."+this._enterClassName),e=e.replace(Qo,"."+this._leaveClassName);let l=i!=1,c=this._driver.query(this.element,e,l);i!==0&&(c=i<0?c.slice(c.length+i,c.length):c.slice(0,i)),a.push(...c)}return!r&&a.length==0&&o.push(so(t)),a}},ii=class s{constructor(e,t,i,n){this._driver=e,this.element=t,this.startTime=i,this._elementTimelineStylesLookup=n,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 s(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+=zo,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,i]of this._globalTimelineStyles)this._backFill.set(t,i||ue),this._currentKeyframe.set(t,ue);this._currentEmptyStepKeyframe=this._currentKeyframe}setStyles(e,t,i,n){t&&this._previousKeyframe.set("easing",t);let r=n&&n.params||{},o=Uo(e,this._globalTimelineStyles);for(let[a,l]of o){let c=dt(l,r,i);this._pendingStyles.set(a,c),this._localTimelineStyles.has(a)||this._backFill.set(a,this._globalTimelineStyles.get(a)??ue),this._updateStyle(a,c)}}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,i)=>{let n=this._styleSummary.get(i);(!n||t.time>n.time)&&this._updateStyle(i,t.value)})}buildKeyframes(){this.applyStylesToKeyframe();let e=new Set,t=new Set,i=this._keyframes.size===1&&this.duration===0,n=[];this._keyframes.forEach((a,l)=>{let c=new Map([...this._backFill,...a]);c.forEach((d,h)=>{d===Rt?e.add(h):d===ue&&t.add(h)}),i||c.set("offset",l/this.duration),n.push(c)});let r=[...e.values()],o=[...t.values()];if(i){let a=n[0],l=new Map(a);a.set("offset",0),l.set("offset",1),n=[a,l]}return rn(this.element,n,r,o,this.duration,this.startTime,this.easing,!1)}},qi=class extends ii{constructor(e,t,i,n,r,o,a=!1){super(e,t,o.delay),this.keyframes=i,this.preStyleProps=n,this.postStyleProps=r,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:i,easing:n}=this.timings;if(this._stretchStartingKeyframe&&t){let r=[],o=i+t,a=t/o,l=new Map(e[0]);l.set("offset",0),r.push(l);let c=new Map(e[0]);c.set("offset",Is(a)),r.push(c);let d=e.length-1;for(let h=1;h<=d;h++){let v=new Map(e[h]),y=v.get("offset"),m=t+y*i;v.set("offset",Is(m/o)),r.push(v)}i=o,t=0,n="",e=r}return rn(this.element,e,this.preStyleProps,this.postStyleProps,i,t,n,!0)}};function Is(s,e=3){let t=Math.pow(10,e-1);return Math.round(s*t)/t}function Uo(s,e){let t=new Map,i;return s.forEach(n=>{if(n==="*"){i??=e.keys();for(let r of i)t.set(r,ue)}else for(let[r,o]of n)t.set(r,o)}),t}function Ns(s,e,t,i,n,r,o,a,l,c,d,h,v){return{type:0,element:s,triggerName:e,isRemovalTransition:n,fromState:t,fromStyles:r,toState:i,toStyles:o,timelines:a,queriedElements:l,preStyleProps:c,postStyleProps:d,totalTime:h,errors:v}}var Ii={},ni=class{constructor(e,t,i){this._triggerName=e,this.ast=t,this._stateStyles=i}match(e,t,i,n){return Go(this.ast.matchers,e,t,i,n)}buildStyles(e,t,i){let n=this._stateStyles.get("*");return e!==void 0&&(n=this._stateStyles.get(e?.toString())||n),n?n.buildStyles(t,i):new Map}build(e,t,i,n,r,o,a,l,c,d){let h=[],v=this.ast.options&&this.ast.options.params||Ii,y=a&&a.params||Ii,m=this.buildStyles(i,y,h),g=l&&l.params||Ii,k=this.buildStyles(n,g,h),P=new Set,x=new Map,V=new Map,L=n==="void",Re={params:Hs(g,v),delay:this.ast.options?.delay},se=d?[]:Ws(e,t,this.ast.animation,r,o,m,k,Re,c,h),z=0;return se.forEach($=>{z=Math.max($.duration+$.delay,z)}),h.length?Ns(t,this._triggerName,i,n,L,m,k,[],[],x,V,z,h):(se.forEach($=>{let Te=$.element,Le=Y(x,Te,new Set);$.preStyleProps.forEach(Ce=>Le.add(Ce));let an=Y(V,Te,new Set);$.postStyleProps.forEach(Ce=>an.add(Ce)),Te!==t&&P.add(Te)}),Ns(t,this._triggerName,i,n,L,m,k,se,[...P.values()],x,V,z))}};function Go(s,e,t,i,n){return s.some(r=>r(e,t,i,n))}function Hs(s,e){let t=I({},e);return Object.entries(s).forEach(([i,n])=>{n!=null&&(t[i]=n)}),t}var Qi=class{constructor(e,t,i){this.styles=e,this.defaultParams=t,this.normalizer=i}buildStyles(e,t){let i=new Map,n=Hs(e,this.defaultParams);return this.styles.styles.forEach(r=>{typeof r!="string"&&r.forEach((o,a)=>{o&&(o=dt(o,n,t));let l=this.normalizer.normalizePropertyName(a,t);o=this.normalizer.normalizeStyleValue(a,l,o,t),i.set(a,o)})}),i}};function Wo(s,e,t){return new Ui(s,e,t)}var Ui=class{constructor(e,t,i){this.name=e,this.ast=t,this._normalizer=i,this.transitionFactories=[],this.states=new Map,t.states.forEach(n=>{let r=n.options&&n.options.params||{};this.states.set(n.name,new Qi(n.style,r,i))}),xs(this.states,"true","1"),xs(this.states,"false","0"),t.transitions.forEach(n=>{this.transitionFactories.push(new ni(e,n,this.states))}),this.fallbackTransition=Ho(e,this.states,this._normalizer)}get containsQueries(){return this.ast.queryCount>0}matchTransition(e,t,i,n){return this.transitionFactories.find(o=>o.match(e,t,i,n))||null}matchStyles(e,t,i){return this.fallbackTransition.buildStyles(e,t,i)}};function Ho(s,e,t){let i=[(o,a)=>!0],n={type:E.Sequence,steps:[],options:null},r={type:E.Transition,animation:n,matchers:i,options:null,queryCount:0,depCount:0};return new ni(s,r,e)}function xs(s,e,t){s.has(e)?s.has(t)||s.set(t,s.get(e)):s.has(t)&&s.set(e,s.get(t))}var Yo=new ht,Gi=class{constructor(e,t,i){this.bodyNode=e,this._driver=t,this._normalizer=i,this._animations=new Map,this._playersById=new Map,this.players=[]}register(e,t){let i=[],n=[],r=Gs(this._driver,t,i,n);if(i.length)throw co(i);n.length&&void 0,this._animations.set(e,r)}_buildPlayer(e,t,i){let n=e.element,r=Vs(this._normalizer,e.keyframes,t,i);return this._driver.animate(n,r,e.duration,e.delay,e.easing,[],!0)}create(e,t,i={}){let n=[],r=this._animations.get(e),o,a=new Map;if(r?(o=Ws(this._driver,t,r,qs,Li,new Map,new Map,i,Yo,n),o.forEach(d=>{let h=Y(a,d.element,new Map);d.postStyleProps.forEach(v=>h.set(v,null))})):(n.push(ho()),o=[]),n.length)throw uo(n);a.forEach((d,h)=>{d.forEach((v,y)=>{d.set(y,this._driver.computeStyle(h,y,ue))})});let l=o.map(d=>{let h=a.get(d.element);return this._buildPlayer(d,new Map,h)}),c=we(l);return this._playersById.set(e,c),c.onDestroy(()=>this.destroy(e)),this.players.push(c),c}destroy(e){let t=this._getPlayer(e);t.destroy(),this._playersById.delete(e);let i=this.players.indexOf(t);i>=0&&this.players.splice(i,1)}_getPlayer(e){let t=this._playersById.get(e);if(!t)throw mo(e);return t}listen(e,t,i,n){let r=Ji(t,"","","");return Xi(this._getPlayer(e),i,r,n),()=>{}}command(e,t,i,n){if(i=="register"){this.register(e,n[0]);return}if(i=="create"){let o=n[0]||{};this.create(e,t,o);return}let r=this._getPlayer(e);switch(i){case"play":r.play();break;case"pause":r.pause();break;case"reset":r.reset();break;case"restart":r.restart();break;case"finish":r.finish();break;case"init":r.init();break;case"setPosition":r.setPosition(parseFloat(n[0]));break;case"destroy":this.destroy(e);break}}},Rs="ng-animate-queued",Zo=".ng-animate-queued",Ni="ng-animate-disabled",Xo=".ng-animate-disabled",Jo="ng-star-inserted",ea=".ng-star-inserted",ta=[],Ys={namespaceId:"",setForRemoval:!1,setForMove:!1,hasAnimation:!1,removedBeforeQueried:!1},ia={namespaceId:"",setForMove:!1,setForRemoval:!1,hasAnimation:!1,removedBeforeQueried:!0},ne="__ng_removed",ut=class{get params(){return this.options.params}constructor(e,t=""){this.namespaceId=t;let i=e&&e.hasOwnProperty("value"),n=i?e.value:e;if(this.value=sa(n),i){let r=e,{value:o}=r,a=hn(r,["value"]);this.options=a}else this.options={};this.options.params||(this.options.params={})}absorbOptions(e){let t=e.params;if(t){let i=this.options.params;Object.keys(t).forEach(n=>{i[n]==null&&(i[n]=t[n])})}}},ct="void",xi=new ut(ct),Wi=class{constructor(e,t,i){this.id=e,this.hostElement=t,this._engine=i,this.players=[],this._triggers=new Map,this._queue=[],this._elementListeners=new Map,this._hostClassName="ng-tns-"+e,X(t,this._hostClassName)}listen(e,t,i,n){if(!this._triggers.has(t))throw po(i,t);if(i==null||i.length==0)throw fo(t);if(!ra(i))throw go(i,t);let r=Y(this._elementListeners,e,[]),o={name:t,phase:i,callback:n};r.push(o);let a=Y(this._engine.statesByElement,e,new Map);return a.has(t)||(X(e,Ut),X(e,Ut+"-"+t),a.set(t,xi)),()=>{this._engine.afterFlush(()=>{let l=r.indexOf(o);l>=0&&r.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 yo(e);return t}trigger(e,t,i,n=!0){let r=this._getTrigger(t),o=new mt(this.id,t,e),a=this._engine.statesByElement.get(e);a||(X(e,Ut),X(e,Ut+"-"+t),this._engine.statesByElement.set(e,a=new Map));let l=a.get(t),c=new ut(i,this.id);if(!(i&&i.hasOwnProperty("value"))&&l&&c.absorbOptions(l.options),a.set(t,c),l||(l=xi),!(c.value===ct)&&l.value===c.value){if(!la(l.params,c.params)){let g=[],k=r.matchStyles(l.value,l.params,g),P=r.matchStyles(c.value,c.params,g);g.length?this._engine.reportError(g):this._engine.afterFlush(()=>{Ie(e,k),me(e,P)})}return}let v=Y(this._engine.playersByElement,e,[]);v.forEach(g=>{g.namespaceId==this.id&&g.triggerName==t&&g.queued&&g.destroy()});let y=r.matchTransition(l.value,c.value,e,c.params),m=!1;if(!y){if(!n)return;y=r.fallbackTransition,m=!0}return this._engine.totalQueuedPlayers++,this._queue.push({element:e,triggerName:t,transition:y,fromState:l,toState:c,player:o,isFallbackTransition:m}),m||(X(e,Rs),o.onStart(()=>{He(e,Rs)})),o.onDone(()=>{let g=this.players.indexOf(o);g>=0&&this.players.splice(g,1);let k=this._engine.playersByElement.get(e);if(k){let P=k.indexOf(o);P>=0&&k.splice(P,1)}}),this.players.push(o),v.push(o),o}deregister(e){this._triggers.delete(e),this._engine.statesByElement.forEach(t=>t.delete(e)),this._elementListeners.forEach((t,i)=>{this._elementListeners.set(i,t.filter(n=>n.name!=e))})}clearElementCache(e){this._engine.statesByElement.delete(e),this._elementListeners.delete(e);let t=this._engine.playersByElement.get(e);t&&(t.forEach(i=>i.destroy()),this._engine.playersByElement.delete(e))}_signalRemovalForInnerTriggers(e,t){let i=this._engine.driver.query(e,Zt,!0);i.forEach(n=>{if(n[ne])return;let r=this._engine.fetchNamespacesByElement(n);r.size?r.forEach(o=>o.triggerLeaveAnimation(n,t,!1,!0)):this.clearElementCache(n)}),this._engine.afterFlushAnimationsDone(()=>i.forEach(n=>this.clearElementCache(n)))}triggerLeaveAnimation(e,t,i,n){let r=this._engine.statesByElement.get(e),o=new Map;if(r){let a=[];if(r.forEach((l,c)=>{if(o.set(c,l.value),this._triggers.has(c)){let d=this.trigger(e,c,ct,n);d&&a.push(d)}}),a.length)return this._engine.markElementAsRemoved(this.id,e,!0,t,o),i&&we(a).onDone(()=>this._engine.processLeaveNode(e)),!0}return!1}prepareLeaveAnimationListeners(e){let t=this._elementListeners.get(e),i=this._engine.statesByElement.get(e);if(t&&i){let n=new Set;t.forEach(r=>{let o=r.name;if(n.has(o))return;n.add(o);let l=this._triggers.get(o).fallbackTransition,c=i.get(o)||xi,d=new ut(ct),h=new mt(this.id,o,e);this._engine.totalQueuedPlayers++,this._queue.push({element:e,triggerName:o,transition:l,fromState:c,toState:d,player:h,isFallbackTransition:!0})})}}removeNode(e,t){let i=this._engine;if(e.childElementCount&&this._signalRemovalForInnerTriggers(e,t),this.triggerLeaveAnimation(e,t,!0))return;let n=!1;if(i.totalAnimations){let r=i.players.length?i.playersByQueriedElement.get(e):[];if(r&&r.length)n=!0;else{let o=e;for(;o=o.parentNode;)if(i.statesByElement.get(o)){n=!0;break}}}if(this.prepareLeaveAnimationListeners(e),n)i.markElementAsRemoved(this.id,e,!1,t);else{let r=e[ne];(!r||r===Ys)&&(i.afterFlush(()=>this.clearElementCache(e)),i.destroyInnerAnimations(e),i._onRemovalComplete(e,t))}}insertNode(e,t){X(e,this._hostClassName)}drainQueuedTransitions(e){let t=[];return this._queue.forEach(i=>{let n=i.player;if(n.destroyed)return;let r=i.element,o=this._elementListeners.get(r);o&&o.forEach(a=>{if(a.name==i.triggerName){let l=Ji(r,i.triggerName,i.fromState.value,i.toState.value);l._data=e,Xi(i.player,a.phase,l,a.callback)}}),n.markedForDestroy?this._engine.afterFlush(()=>{n.destroy()}):t.push(i)}),this._queue=[],t.sort((i,n)=>{let r=i.transition.ast.depCount,o=n.transition.ast.depCount;return r==0||o==0?r-o:this._engine.driver.containsElement(i.element,n.element)?1:-1})}destroy(e){this.players.forEach(t=>t.destroy()),this._signalRemovalForInnerTriggers(this.hostElement,e)}},Hi=class{_onRemovalComplete(e,t){this.onRemovalComplete(e,t)}constructor(e,t,i){this.bodyNode=e,this.driver=t,this._normalizer=i,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=(n,r)=>{}}get queuedPlayers(){let e=[];return this._namespaceList.forEach(t=>{t.players.forEach(i=>{i.queued&&e.push(i)})}),e}createNamespace(e,t){let i=new Wi(e,t,this);return this.bodyNode&&this.driver.containsElement(this.bodyNode,t)?this._balanceNamespaceList(i,t):(this.newHostElements.set(t,i),this.collectEnterElement(t)),this._namespaceLookup[e]=i}_balanceNamespaceList(e,t){let i=this._namespaceList,n=this.namespacesByHostElement;if(i.length-1>=0){let o=!1,a=this.driver.getParentElement(t);for(;a;){let l=n.get(a);if(l){let c=i.indexOf(l);i.splice(c+1,0,e),o=!0;break}a=this.driver.getParentElement(a)}o||i.unshift(e)}else i.push(e);return n.set(t,e),e}register(e,t){let i=this._namespaceLookup[e];return i||(i=this.createNamespace(e,t)),i}registerTrigger(e,t,i){let n=this._namespaceLookup[e];n&&n.register(t,i)&&this.totalAnimations++}destroy(e,t){e&&(this.afterFlush(()=>{}),this.afterFlushAnimationsDone(()=>{let i=this._fetchNamespace(e);this.namespacesByHostElement.delete(i.hostElement);let n=this._namespaceList.indexOf(i);n>=0&&this._namespaceList.splice(n,1),i.destroy(t),delete this._namespaceLookup[e]}))}_fetchNamespace(e){return this._namespaceLookup[e]}fetchNamespacesByElement(e){let t=new Set,i=this.statesByElement.get(e);if(i){for(let n of i.values())if(n.namespaceId){let r=this._fetchNamespace(n.namespaceId);r&&t.add(r)}}return t}trigger(e,t,i,n){if(Ht(t)){let r=this._fetchNamespace(e);if(r)return r.trigger(t,i,n),!0}return!1}insertNode(e,t,i,n){if(!Ht(t))return;let r=t[ne];if(r&&r.setForRemoval){r.setForRemoval=!1,r.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,i)}n&&this.collectEnterElement(t)}collectEnterElement(e){this.collectedEnterElements.push(e)}markElementAsDisabled(e,t){t?this.disabledNodes.has(e)||(this.disabledNodes.add(e),X(e,Ni)):this.disabledNodes.has(e)&&(this.disabledNodes.delete(e),He(e,Ni))}removeNode(e,t,i){if(Ht(t)){let n=e?this._fetchNamespace(e):null;n?n.removeNode(t,i):this.markElementAsRemoved(e,t,!1,i);let r=this.namespacesByHostElement.get(t);r&&r.id!==e&&r.removeNode(t,i)}else this._onRemovalComplete(t,i)}markElementAsRemoved(e,t,i,n,r){this.collectedLeaveElements.push(t),t[ne]={namespaceId:e,setForRemoval:n,hasAnimation:i,removedBeforeQueried:!1,previousTriggersValues:r}}listen(e,t,i,n,r){return Ht(t)?this._fetchNamespace(e).listen(t,i,n,r):()=>{}}_buildInstruction(e,t,i,n,r){return e.transition.build(this.driver,e.element,e.fromState.value,e.toState.value,i,n,e.fromState.options,e.toState.options,t,r)}destroyInnerAnimations(e){let t=this.driver.query(e,Zt,!0);t.forEach(i=>this.destroyActiveAnimationsForElement(i)),this.playersByQueriedElement.size!=0&&(t=this.driver.query(e,Fi,!0),t.forEach(i=>this.finishActiveQueriedAnimationOnElement(i)))}destroyActiveAnimationsForElement(e){let t=this.playersByElement.get(e);t&&t.forEach(i=>{i.queued?i.markedForDestroy=!0:i.destroy()})}finishActiveQueriedAnimationOnElement(e){let t=this.playersByQueriedElement.get(e);t&&t.forEach(i=>i.finish())}whenRenderingDone(){return new Promise(e=>{if(this.players.length)return we(this.players).onDone(()=>e());e()})}processLeaveNode(e){let t=e[ne];if(t&&t.setForRemoval){if(e[ne]=Ys,t.namespaceId){this.destroyInnerAnimations(e);let i=this._fetchNamespace(t.namespaceId);i&&i.clearElementCache(e)}this._onRemovalComplete(e,t.setForRemoval)}e.classList?.contains(Ni)&&this.markElementAsDisabled(e,!1),this.driver.query(e,Xo,!0).forEach(i=>{this.markElementAsDisabled(i,!1)})}flush(e=-1){let t=[];if(this.newHostElements.size&&(this.newHostElements.forEach((i,n)=>this._balanceNamespaceList(i,n)),this.newHostElements.clear()),this.totalAnimations&&this.collectedEnterElements.length)for(let i=0;i<this.collectedEnterElements.length;i++){let n=this.collectedEnterElements[i];X(n,Jo)}if(this._namespaceList.length&&(this.totalQueuedPlayers||this.collectedLeaveElements.length)){let i=[];try{t=this._flushAnimations(i,e)}finally{for(let n=0;n<i.length;n++)i[n]()}}else for(let i=0;i<this.collectedLeaveElements.length;i++){let n=this.collectedLeaveElements[i];this.processLeaveNode(n)}if(this.totalQueuedPlayers=0,this.collectedEnterElements.length=0,this.collectedLeaveElements.length=0,this._flushFns.forEach(i=>i()),this._flushFns=[],this._whenQuietFns.length){let i=this._whenQuietFns;this._whenQuietFns=[],t.length?we(t).onDone(()=>{i.forEach(n=>n())}):i.forEach(n=>n())}}reportError(e){throw _o(e)}_flushAnimations(e,t){let i=new ht,n=[],r=new Map,o=[],a=new Map,l=new Map,c=new Map,d=new Set;this.disabledNodes.forEach(u=>{d.add(u);let p=this.driver.query(u,Zo,!0);for(let f=0;f<p.length;f++)d.add(p[f])});let h=this.bodyNode,v=Array.from(this.statesByElement.keys()),y=Bs(v,this.collectedEnterElements),m=new Map,g=0;y.forEach((u,p)=>{let f=qs+g++;m.set(p,f),u.forEach(S=>X(S,f))});let k=[],P=new Set,x=new Set;for(let u=0;u<this.collectedLeaveElements.length;u++){let p=this.collectedLeaveElements[u],f=p[ne];f&&f.setForRemoval&&(k.push(p),P.add(p),f.hasAnimation?this.driver.query(p,ea,!0).forEach(S=>P.add(S)):x.add(p))}let V=new Map,L=Bs(v,Array.from(P));L.forEach((u,p)=>{let f=Li+g++;V.set(p,f),u.forEach(S=>X(S,f))}),e.push(()=>{y.forEach((u,p)=>{let f=m.get(p);u.forEach(S=>He(S,f))}),L.forEach((u,p)=>{let f=V.get(p);u.forEach(S=>He(S,f))}),k.forEach(u=>{this.processLeaveNode(u)})});let Re=[],se=[];for(let u=this._namespaceList.length-1;u>=0;u--)this._namespaceList[u].drainQueuedTransitions(t).forEach(f=>{let S=f.player,R=f.element;if(Re.push(S),this.collectedEnterElements.length){let j=R[ne];if(j&&j.setForMove){if(j.previousTriggersValues&&j.previousTriggersValues.has(f.triggerName)){let Ae=j.previousTriggersValues.get(f.triggerName),Z=this.statesByElement.get(f.element);if(Z&&Z.has(f.triggerName)){let gt=Z.get(f.triggerName);gt.value=Ae,Z.set(f.triggerName,gt)}}S.destroy();return}}let re=!h||!this.driver.containsElement(h,R),U=V.get(R),ge=m.get(R),O=this._buildInstruction(f,i,ge,U,re);if(O.errors&&O.errors.length){se.push(O);return}if(re){S.onStart(()=>Ie(R,O.fromStyles)),S.onDestroy(()=>me(R,O.toStyles)),n.push(S);return}if(f.isFallbackTransition){S.onStart(()=>Ie(R,O.fromStyles)),S.onDestroy(()=>me(R,O.toStyles)),n.push(S);return}let dn=[];O.timelines.forEach(j=>{j.stretchStartingKeyframe=!0,this.disabledNodes.has(j.element)||dn.push(j)}),O.timelines=dn,i.append(R,O.timelines);let mr={instruction:O,player:S,element:R};o.push(mr),O.queriedElements.forEach(j=>Y(a,j,[]).push(S)),O.preStyleProps.forEach((j,Ae)=>{if(j.size){let Z=l.get(Ae);Z||l.set(Ae,Z=new Set),j.forEach((gt,ci)=>Z.add(ci))}}),O.postStyleProps.forEach((j,Ae)=>{let Z=c.get(Ae);Z||c.set(Ae,Z=new Set),j.forEach((gt,ci)=>Z.add(ci))})});if(se.length){let u=[];se.forEach(p=>{u.push(vo(p.triggerName,p.errors))}),Re.forEach(p=>p.destroy()),this.reportError(u)}let z=new Map,$=new Map;o.forEach(u=>{let p=u.element;i.has(p)&&($.set(p,p),this._beforeAnimationBuild(u.player.namespaceId,u.instruction,z))}),n.forEach(u=>{let p=u.element;this._getPreviousPlayers(p,!1,u.namespaceId,u.triggerName,null).forEach(S=>{Y(z,p,[]).push(S),S.destroy()})});let Te=k.filter(u=>js(u,l,c)),Le=new Map;Fs(Le,this.driver,x,c,ue).forEach(u=>{js(u,l,c)&&Te.push(u)});let Ce=new Map;y.forEach((u,p)=>{Fs(Ce,this.driver,new Set(u),l,Rt)}),Te.forEach(u=>{let p=Le.get(u),f=Ce.get(u);Le.set(u,new Map([...p?.entries()??[],...f?.entries()??[]]))});let li=[],ln=[],cn={};o.forEach(u=>{let{element:p,player:f,instruction:S}=u;if(i.has(p)){if(d.has(p)){f.onDestroy(()=>me(p,S.toStyles)),f.disabled=!0,f.overrideTotalTime(S.totalTime),n.push(f);return}let R=cn;if($.size>1){let U=p,ge=[];for(;U=U.parentNode;){let O=$.get(U);if(O){R=O;break}ge.push(U)}ge.forEach(O=>$.set(O,R))}let re=this._buildAnimation(f.namespaceId,S,z,r,Ce,Le);if(f.setRealPlayer(re),R===cn)li.push(f);else{let U=this.playersByElement.get(R);U&&U.length&&(f.parentPlayer=we(U)),n.push(f)}}else Ie(p,S.fromStyles),f.onDestroy(()=>me(p,S.toStyles)),ln.push(f),d.has(p)&&n.push(f)}),ln.forEach(u=>{let p=r.get(u.element);if(p&&p.length){let f=we(p);u.setRealPlayer(f)}}),n.forEach(u=>{u.parentPlayer?u.syncPlayerEvents(u.parentPlayer):u.destroy()});for(let u=0;u<k.length;u++){let p=k[u],f=p[ne];if(He(p,Li),f&&f.hasAnimation)continue;let S=[];if(a.size){let re=a.get(p);re&&re.length&&S.push(...re);let U=this.driver.query(p,Fi,!0);for(let ge=0;ge<U.length;ge++){let O=a.get(U[ge]);O&&O.length&&S.push(...O)}}let R=S.filter(re=>!re.destroyed);R.length?oa(this,p,R):this.processLeaveNode(p)}return k.length=0,li.forEach(u=>{this.players.push(u),u.onDone(()=>{u.destroy();let p=this.players.indexOf(u);this.players.splice(p,1)}),u.play()}),li}afterFlush(e){this._flushFns.push(e)}afterFlushAnimationsDone(e){this._whenQuietFns.push(e)}_getPreviousPlayers(e,t,i,n,r){let o=[];if(t){let a=this.playersByQueriedElement.get(e);a&&(o=a)}else{let a=this.playersByElement.get(e);if(a){let l=!r||r==ct;a.forEach(c=>{c.queued||!l&&c.triggerName!=n||o.push(c)})}}return(i||n)&&(o=o.filter(a=>!(i&&i!=a.namespaceId||n&&n!=a.triggerName))),o}_beforeAnimationBuild(e,t,i){let n=t.triggerName,r=t.element,o=t.isRemovalTransition?void 0:e,a=t.isRemovalTransition?void 0:n;for(let l of t.timelines){let c=l.element,d=c!==r,h=Y(i,c,[]);this._getPreviousPlayers(c,d,o,a,t.toState).forEach(y=>{let m=y.getRealPlayer();m.beforeDestroy&&m.beforeDestroy(),y.destroy(),h.push(y)})}Ie(r,t.fromStyles)}_buildAnimation(e,t,i,n,r,o){let a=t.triggerName,l=t.element,c=[],d=new Set,h=new Set,v=t.timelines.map(m=>{let g=m.element;d.add(g);let k=g[ne];if(k&&k.removedBeforeQueried)return new Ue(m.duration,m.delay);let P=g!==l,x=aa((i.get(g)||ta).map(z=>z.getRealPlayer())).filter(z=>{let $=z;return $.element?$.element===g:!1}),V=r.get(g),L=o.get(g),Re=Vs(this._normalizer,m.keyframes,V,L),se=this._buildPlayer(m,Re,x);if(m.subTimeline&&n&&h.add(g),P){let z=new mt(e,a,g);z.setRealPlayer(se),c.push(z)}return se});c.forEach(m=>{Y(this.playersByQueriedElement,m.element,[]).push(m),m.onDone(()=>na(this.playersByQueriedElement,m.element,m))}),d.forEach(m=>X(m,Os));let y=we(v);return y.onDestroy(()=>{d.forEach(m=>He(m,Os)),me(l,t.toStyles)}),h.forEach(m=>{Y(n,m,[]).push(y)}),y}_buildPlayer(e,t,i){return t.length>0?this.driver.animate(e.element,t,e.duration,e.delay,e.easing,i):new Ue(e.duration,e.delay)}},mt=class{constructor(e,t,i){this.namespaceId=e,this.triggerName=t,this.element=i,this._player=new Ue,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,i)=>{t.forEach(n=>Xi(e,i,void 0,n))}),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){Y(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 na(s,e,t){let i=s.get(e);if(i){if(i.length){let n=i.indexOf(t);i.splice(n,1)}i.length==0&&s.delete(e)}return i}function sa(s){return s??null}function Ht(s){return s&&s.nodeType===1}function ra(s){return s=="start"||s=="done"}function Ls(s,e){let t=s.style.display;return s.style.display=e??"none",t}function Fs(s,e,t,i,n){let r=[];t.forEach(l=>r.push(Ls(l)));let o=[];i.forEach((l,c)=>{let d=new Map;l.forEach(h=>{let v=e.computeStyle(c,h,n);d.set(h,v),(!v||v.length==0)&&(c[ne]=ia,o.push(c))}),s.set(c,d)});let a=0;return t.forEach(l=>Ls(l,r[a++])),o}function Bs(s,e){let t=new Map;if(s.forEach(a=>t.set(a,[])),e.length==0)return t;let i=1,n=new Set(e),r=new Map;function o(a){if(!a)return i;let l=r.get(a);if(l)return l;let c=a.parentNode;return t.has(c)?l=c:n.has(c)?l=i:l=o(c),r.set(a,l),l}return e.forEach(a=>{let l=o(a);l!==i&&t.get(l).push(a)}),t}function X(s,e){s.classList?.add(e)}function He(s,e){s.classList?.remove(e)}function oa(s,e,t){we(t).onDone(()=>s.processLeaveNode(e))}function aa(s){let e=[];return Zs(s,e),e}function Zs(s,e){for(let t=0;t<s.length;t++){let i=s[t];i instanceof wi?Zs(i.players,e):e.push(i)}}function la(s,e){let t=Object.keys(s),i=Object.keys(e);if(t.length!=i.length)return!1;for(let n=0;n<t.length;n++){let r=t[n];if(!e.hasOwnProperty(r)||s[r]!==e[r])return!1}return!0}function js(s,e,t){let i=t.get(s);if(!i)return!1;let n=e.get(s);return n?i.forEach(r=>n.add(r)):e.set(s,i),t.delete(s),!0}var Ze=class{constructor(e,t,i){this._driver=t,this._normalizer=i,this._triggerCache={},this.onRemovalComplete=(n,r)=>{},this._transitionEngine=new Hi(e.body,t,i),this._timelineEngine=new Gi(e.body,t,i),this._transitionEngine.onRemovalComplete=(n,r)=>this.onRemovalComplete(n,r)}registerTrigger(e,t,i,n,r){let o=e+"-"+n,a=this._triggerCache[o];if(!a){let l=[],c=[],d=Gs(this._driver,r,l,c);if(l.length)throw ao(n,l);c.length&&void 0,a=Wo(n,d,this._normalizer),this._triggerCache[o]=a}this._transitionEngine.registerTrigger(t,n,a)}register(e,t){this._transitionEngine.register(e,t)}destroy(e,t){this._transitionEngine.destroy(e,t)}onInsert(e,t,i,n){this._transitionEngine.insertNode(e,t,i,n)}onRemove(e,t,i){this._transitionEngine.removeNode(e,t,i)}disableAnimations(e,t){this._transitionEngine.markElementAsDisabled(e,t)}process(e,t,i,n){if(i.charAt(0)=="@"){let[r,o]=Ds(i),a=n;this._timelineEngine.command(r,t,o,a)}else this._transitionEngine.trigger(e,t,i,n)}listen(e,t,i,n,r){if(i.charAt(0)=="@"){let[o,a]=Ds(i);return this._timelineEngine.listen(o,t,a,r)}return this._transitionEngine.listen(e,t,i,n,r)}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 ca(s,e){let t=null,i=null;return Array.isArray(e)&&e.length?(t=Ri(e[0]),e.length>1&&(i=Ri(e[e.length-1]))):e instanceof Map&&(t=Ri(e)),t||i?new Yi(s,t,i):null}var Ye=class Ye{constructor(e,t,i){this._element=e,this._startStyles=t,this._endStyles=i,this._state=0;let n=Ye.initialStylesByElement.get(e);n||Ye.initialStylesByElement.set(e,n=new Map),this._initialStyles=n}start(){this._state<1&&(this._startStyles&&me(this._element,this._startStyles,this._initialStyles),this._state=1)}finish(){this.start(),this._state<2&&(me(this._element,this._initialStyles),this._endStyles&&(me(this._element,this._endStyles),this._endStyles=null),this._state=1)}destroy(){this.finish(),this._state<3&&(Ye.initialStylesByElement.delete(this._element),this._startStyles&&(Ie(this._element,this._startStyles),this._endStyles=null),this._endStyles&&(Ie(this._element,this._endStyles),this._endStyles=null),me(this._element,this._initialStyles),this._state=3)}};Ye.initialStylesByElement=new WeakMap;var Yi=Ye;function Ri(s){let e=null;return s.forEach((t,i)=>{da(i)&&(e=e||new Map,e.set(i,t))}),e}function da(s){return s==="display"||s==="position"}var si=class{constructor(e,t,i,n){this.element=e,this.keyframes=t,this.options=i,this._specialStyles=n,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=i.duration,this._delay=i.delay||0,this.time=this._duration+this._delay}_onFinish(){this._finished||(this._finished=!0,this._onDoneFns.forEach(e=>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(i=>{t.push(Object.fromEntries(i))}),t}_triggerWebAnimation(e,t,i){return e.animate(this._convertKeyframesToObject(t),i)}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((i,n)=>{n!=="offset"&&e.set(n,this._finished?i:sn(this.element,n))}),this.currentSnapshot=e}triggerCallback(e){let t=e==="start"?this._onStartFns:this._onDoneFns;t.forEach(i=>i()),t.length=0}},ri=class{validateStyleProperty(e){return!0}validateAnimatableStyleProperty(e){return!0}containsElement(e,t){return zs(e,t)}getParentElement(e){return en(e)}query(e,t,i){return Ks(e,t,i)}computeStyle(e,t,i){return sn(e,t)}animate(e,t,i,n,r,o=[]){let a=n==0?"both":"forwards",l={duration:i,delay:n,fill:a};r&&(l.easing=r);let c=new Map,d=o.filter(y=>y instanceof si);Mo(i,n)&&d.forEach(y=>{y.currentSnapshot.forEach((m,g)=>c.set(g,m))});let h=Do(t).map(y=>new Map(y));h=Po(e,h,c);let v=ca(e,h);return new si(e,h,l,v)}};var Yt="@",Xs="@.disabled",oi=class{constructor(e,t,i,n){this.namespaceId=e,this.delegate=t,this.engine=i,this._onDestroy=n,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,i,n=!0){this.delegate.insertBefore(e,t,i),this.engine.onInsert(this.namespaceId,t,e,n)}removeChild(e,t,i){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,i,n){this.delegate.setAttribute(e,t,i,n)}removeAttribute(e,t,i){this.delegate.removeAttribute(e,t,i)}addClass(e,t){this.delegate.addClass(e,t)}removeClass(e,t){this.delegate.removeClass(e,t)}setStyle(e,t,i,n){this.delegate.setStyle(e,t,i,n)}removeStyle(e,t,i){this.delegate.removeStyle(e,t,i)}setProperty(e,t,i){t.charAt(0)==Yt&&t==Xs?this.disableAnimations(e,!!i):this.delegate.setProperty(e,t,i)}setValue(e,t){this.delegate.setValue(e,t)}listen(e,t,i){return this.delegate.listen(e,t,i)}disableAnimations(e,t){this.engine.disableAnimations(e,t)}},Zi=class extends oi{constructor(e,t,i,n,r){super(t,i,n,r),this.factory=e,this.namespaceId=t}setProperty(e,t,i){t.charAt(0)==Yt?t.charAt(1)=="."&&t==Xs?(i=i===void 0?!0:!!i,this.disableAnimations(e,i)):this.engine.process(this.namespaceId,e,t.slice(1),i):this.delegate.setProperty(e,t,i)}listen(e,t,i){if(t.charAt(0)==Yt){let n=ha(e),r=t.slice(1),o="";return r.charAt(0)!=Yt&&([r,o]=ua(r)),this.engine.listen(this.namespaceId,n,r,o,a=>{let l=a._data||-1;this.factory.scheduleListenerCallback(l,i,a)})}return this.delegate.listen(e,t,i)}};function ha(s){switch(s){case"body":return document.body;case"document":return document;case"window":return window;default:return s}}function ua(s){let e=s.indexOf("."),t=s.substring(0,e),i=s.slice(e+1);return[t,i]}var ai=class{constructor(e,t,i){this.delegate=e,this.engine=t,this._zone=i,this._currentId=0,this._microtaskId=1,this._animationCallbacksBuffer=[],this._rendererCache=new Map,this._cdRecurDepth=0,t.onRemovalComplete=(n,r)=>{let o=r?.parentNode(n);o&&r.removeChild(o,n)}}createRenderer(e,t){let i="",n=this.delegate.createRenderer(e,t);if(!e||!t?.data?.animation){let c=this._rendererCache,d=c.get(n);if(!d){let h=()=>c.delete(n);d=new oi(i,n,this.engine,h),c.set(n,d)}return d}let r=t.id,o=t.id+"-"+this._currentId;this._currentId++,this.engine.register(o,e);let a=c=>{Array.isArray(c)?c.forEach(a):this.engine.registerTrigger(r,o,e,c.name,c)};return t.data.animation.forEach(a),new Zi(this,o,n,this.engine)}begin(){this._cdRecurDepth++,this.delegate.begin&&this.delegate.begin()}_scheduleCountTask(){queueMicrotask(()=>{this._microtaskId++})}scheduleListenerCallback(e,t,i){if(e>=0&&e<this._microtaskId){this._zone.run(()=>t(i));return}let n=this._animationCallbacksBuffer;n.length==0&&queueMicrotask(()=>{this._zone.run(()=>{n.forEach(r=>{let[o,a]=r;o(a)}),this._animationCallbacksBuffer=[]})}),n.push([t,i])}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 pa=(()=>{let e=class e extends Ze{constructor(i,n,r){super(i,n,r)}ngOnDestroy(){this.flush()}};e.\u0275fac=function(n){return new(n||e)(M(qe),M(Ne),M(xe))},e.\u0275prov=K({token:e,factory:e.\u0275fac});let s=e;return s})();function fa(){return new Jt}function ga(s,e,t){return new ai(s,e,t)}var er=[{provide:xe,useFactory:fa},{provide:Ze,useClass:pa},{provide:Cn,useFactory:ga,deps:[Ln,Ze,_e]}],Js=[{provide:Ne,useFactory:()=>new ri},{provide:ze,useValue:"BrowserAnimations"},...er],ya=[{provide:Ne,useClass:tn},{provide:ze,useValue:"NoopAnimations"},...er],tr=(()=>{let e=class e{static withConfig(i){return{ngModule:e,providers:i.disableAnimations?ya:Js}}};e.\u0275fac=function(n){return new(n||e)},e.\u0275mod=ce({type:e}),e.\u0275inj=ae({providers:Js,imports:[kt]});let s=e;return s})();var ir=(()=>{let e=class e extends Ft{constructor(){super(...arguments),this.title=C(Bn)}updateTitle(i){let n=this.buildTitle(i);n!==void 0?this.title.setTitle(`${n} - Coral Guide`):this.title.setTitle("Coral Guide")}};e.\u0275fac=(()=>{let i;return function(r){return(i||(i=tt(e)))(r||e)}})(),e.\u0275prov=K({token:e,factory:e.\u0275fac,providedIn:"root"});let s=e;return s})();function _a(s,e){if(s&1&&T(0),s&2){let t=ie(2);nt(" ",t.date," ")}}function va(s,e){s&1&&N(0,"mat-spinner",4)}function ba(s,e){if(s&1){let t=bt();b(0,"h2"),T(1,"Changelog"),_(),b(2,"h3"),T(3),B(4,_a,1,1),_(),N(5,"markdown",1),b(6,"div",2)(7,"button",3),ve("click",function(){_t(t);let n=ie(2);return vt(n.loadChangelog())}),T(8,"Show all"),_(),B(9,va,1,0,"mat-spinner",4),_()}if(s&2){let t=ie(),i=ie();A(3),nt("",t.version," "),A(),te(t.date?4:-1),A(),Q("data",t.body),A(4),te(i.isLoading()?9:-1)}}function Ea(s,e){if(s&1&&N(0,"markdown",1),s&2){let t=ie(2);Q("data",t.showWholeChangelog())}}function Sa(s,e){if(s&1&&B(0,ba,10,4)(1,Ea,1,1,"markdown",1),s&2){let t=ie();te(t.showWholeChangelog()?1:0)}}var nr=(()=>{let e=class e{constructor(){this.latestChangelog$=C($t).getLatestChangelog(),this.showWholeChangelog=ui(void 0),this.isLoading=ui(!1),this.version=C(Ge),this.markdown$=C(Dt).get(`CHANGELOG.md?v=${this.version}`,{responseType:"text"}),this._setCssClass=!0}loadChangelog(){this.isLoading.set(!0),this.markdown$.subscribe({next:i=>{this.isLoading.set(!1),this.showWholeChangelog.set(i)},error:()=>{this.isLoading.set(!1)}})}};e.\u0275fac=function(n){return new(n||e)},e.\u0275cmp=q({type:e,selectors:[["app-start"]],hostVars:2,hostBindings:function(n,r){n&2&&de("app-start",r._setCssClass)},standalone:!0,features:[be],decls:18,vars:3,consts:[[1,"prose","lg:prose-xl"],[3,"data"],[1,"flex","items-center","gap-4"],[1,"btn-amber",3,"click"],["diameter","24"]],template:function(n,r){if(n&1&&(b(0,"app-card")(1,"div",0)(2,"h1"),T(3,"Hello townie!"),_(),b(4,"p"),T(5," This project is a fan-made project to help "),b(6,"strong"),T(7,"you"),_(),T(8," enjoying coral island as much as possible. In order to do this, this app contains a lot of useful information at hand. Those information are either data mined or collected from the community! "),_(),b(9,"p")(10,"strong"),T(11," This means this app contains spoilers and information that might not be implemented yet or never will be! "),_()(),b(12,"p"),T(13," If that's ok for you, proceed your journey and (hopefully) enjoy what I've built :) "),_(),b(14,"p"),T(15," \u2010 Koenig "),_(),B(16,Sa,2,1),St(17,"async"),_()()),n&2){let o;A(16),te((o=wt(17,1,r.latestChangelog$))?16:-1,o)}},dependencies:[At,Ct,We,ns,Kt,zt,Lt],styles:[`.app-start{width:100%}@media (min-width: 640px){.app-start{max-width:640px}}@media (min-width: 768px){.app-start{max-width:768px}}@media (min-width: 1024px){.app-start{max-width:1024px}}@media (min-width: 1280px){.app-start{max-width:1280px}}@media (min-width: 1536px){.app-start{max-width:1536px}}.app-start{margin-left:auto;margin-right:auto;margin-top:2.5rem;margin-bottom:2.5rem;display:block}
`],encapsulation:2});let s=e;return s})();var ft="Service workers are disabled or not supported by this browser";function wa(s){return ke(()=>mn(new Error(s)))}var Xe=class{constructor(e){if(this.serviceWorker=e,!e)this.worker=this.events=this.registration=wa(ft);else{let i=di(e,"controllerchange").pipe(De(()=>e.controller)),n=ke(()=>ye(e.controller)),r=fn(n,i);this.worker=r.pipe(G(d=>!!d)),this.registration=this.worker.pipe(et(()=>e.getRegistration()));let c=di(e,"message").pipe(De(d=>d.data)).pipe(G(d=>d&&d.type)).pipe(yn());c.connect(),this.events=c}}postMessage(e,t){return this.worker.pipe(ee(1),_n(i=>{i.postMessage(I({action:e},t))})).toPromise().then(()=>{})}postMessageWithOperation(e,t,i){let n=this.waitForOperationCompleted(i),r=this.postMessage(e,t);return Promise.all([r,n]).then(([,o])=>o)}generateNonce(){return Math.round(Math.random()*1e7)}eventsOfType(e){let t;return typeof e=="string"?t=i=>i.type===e:t=i=>e.includes(i.type),this.events.pipe(G(t))}nextEventOfType(e){return this.eventsOfType(e).pipe(ee(1))}waitForOperationCompleted(e){return this.eventsOfType("OPERATION_COMPLETED").pipe(G(t=>t.nonce===e),ee(1),De(t=>{if(t.result!==void 0)return t.result;throw new Error(t.error)})).toPromise()}get isEnabled(){return!!this.serviceWorker}},ar=(()=>{let e=class e{get isEnabled(){return this.sw.isEnabled}constructor(i){if(this.sw=i,this.pushManager=null,this.subscriptionChanges=new J,!i.isEnabled){this.messages=Be,this.notificationClicks=Be,this.subscription=Be;return}this.messages=this.sw.eventsOfType("PUSH").pipe(De(r=>r.data)),this.notificationClicks=this.sw.eventsOfType("NOTIFICATION_CLICK").pipe(De(r=>r.data)),this.pushManager=this.sw.registration.pipe(De(r=>r.pushManager));let n=this.pushManager.pipe(et(r=>r.getSubscription()));this.subscription=Je(n,this.subscriptionChanges)}requestSubscription(i){if(!this.sw.isEnabled||this.pushManager===null)return Promise.reject(new Error(ft));let n={userVisibleOnly:!0},r=this.decodeBase64(i.serverPublicKey.replace(/_/g,"/").replace(/-/g,"+")),o=new Uint8Array(new ArrayBuffer(r.length));for(let a=0;a<r.length;a++)o[a]=r.charCodeAt(a);return n.applicationServerKey=o,this.pushManager.pipe(et(a=>a.subscribe(n)),ee(1)).toPromise().then(a=>(this.subscriptionChanges.next(a),a))}unsubscribe(){if(!this.sw.isEnabled)return Promise.reject(new Error(ft));let i=n=>{if(n===null)throw new Error("Not subscribed to push notifications.");return n.unsubscribe().then(r=>{if(!r)throw new Error("Unsubscribe failed!");this.subscriptionChanges.next(null)})};return this.subscription.pipe(ee(1),et(i)).toPromise()}decodeBase64(i){return atob(i)}};e.\u0275fac=function(n){return new(n||e)(M(Xe))},e.\u0275prov=K({token:e,factory:e.\u0275fac});let s=e;return s})(),lr=(()=>{let e=class e{get isEnabled(){return this.sw.isEnabled}constructor(i){if(this.sw=i,!i.isEnabled){this.versionUpdates=Be,this.unrecoverable=Be;return}this.versionUpdates=this.sw.eventsOfType(["VERSION_DETECTED","VERSION_INSTALLATION_FAILED","VERSION_READY","NO_NEW_VERSION_DETECTED"]),this.unrecoverable=this.sw.eventsOfType("UNRECOVERABLE_STATE")}checkForUpdate(){if(!this.sw.isEnabled)return Promise.reject(new Error(ft));let i=this.sw.generateNonce();return this.sw.postMessageWithOperation("CHECK_FOR_UPDATES",{nonce:i},i)}activateUpdate(){if(!this.sw.isEnabled)return Promise.reject(new Error(ft));let i=this.sw.generateNonce();return this.sw.postMessageWithOperation("ACTIVATE_UPDATE",{nonce:i},i)}};e.\u0275fac=function(n){return new(n||e)(M(Xe))},e.\u0275prov=K({token:e,factory:e.\u0275fac});let s=e;return s})();var sr=new le("");function Ta(s,e,t,i){return()=>{if(!(_i(i)&&"serviceWorker"in navigator&&t.enabled!==!1))return;let n=s.get(_e),r=s.get(yi);n.runOutsideAngular(()=>{let a=navigator.serviceWorker,l=()=>a.controller?.postMessage({action:"INITIALIZE"});a.addEventListener("controllerchange",l),r.onDestroy(()=>{a.removeEventListener("controllerchange",l)})});let o;if(typeof t.registrationStrategy=="function")o=t.registrationStrategy();else{let[a,...l]=(t.registrationStrategy||"registerWhenStable:30000").split(":");switch(a){case"registerImmediately":o=ye(null);break;case"registerWithDelay":o=rr(+l[0]||0);break;case"registerWhenStable":o=l[0]?Je(or(s),rr(+l[0])):or(s);break;default:throw new Error(`Unknown ServiceWorker registration strategy: ${t.registrationStrategy}`)}}n.runOutsideAngular(()=>o.pipe(ee(1)).subscribe(()=>navigator.serviceWorker.register(e,{scope:t.scope}).catch(a=>console.error("Service worker registration failed with:",a))))}}function rr(s){return ye(null).pipe(gn(s))}function or(s){return s.get(yi).isStable.pipe(G(t=>t))}function Ca(s,e){return new Xe(_i(e)&&s.enabled!==!1?navigator.serviceWorker:void 0)}var pt=class{};function Aa(s,e={}){return bn([ar,lr,{provide:sr,useValue:s},{provide:pt,useValue:e},{provide:Xe,useFactory:Ca,deps:[pt,hi]},{provide:Tt,useFactory:Ta,deps:[pe,sr,pt,hi],multi:!0}])}var cr=(()=>{let e=class e{static register(i,n={}){return{ngModule:e,providers:[Aa(i,n)]}}};e.\u0275fac=function(n){return new(n||e)},e.\u0275mod=ce({type:e}),e.\u0275inj=ae({providers:[ar,lr]});let s=e;return s})();var dr=(s,e)=>{let t=C(Ge);if(s.url.includes("assets")){let i=s.clone({params:s.params.append("version",t)});return e(i)}return e(s)};var Da={scrollPositionRestoration:"disabled",anchorScrolling:"enabled",scrollOffset:[0,64],initialNavigation:"enabledBlocking",bindToComponentInputs:!0},ka=[{path:"",pathMatch:"full",component:nr},{path:"journal",loadChildren:()=>import("./chunk-OWAJD4MP.js").then(s=>s.JournalModule)},{path:"database",pathMatch:"full",redirectTo:"database/"},{path:"database/:itemId",loadChildren:()=>import("./chunk-RJKGWYI3.js").then(s=>s.DatabaseModule)},{path:"crafting",loadChildren:()=>import("./chunk-RCRH7DXG.js").then(s=>s.CraftingModule)},{path:"people",pathMatch:"prefix",redirectTo:"npcs"},{path:"npcs",loadChildren:()=>import("./chunk-R3J7V2PB.js").then(s=>s.NPCsModule)},{path:"locations",loadChildren:()=>import("./chunk-BQPDMBER.js").then(s=>s.LocationsModule)},{path:"settings",pathMatch:"full",redirectTo:"my/settings",data:{redirected:!0}},{path:"checklist",pathMatch:"prefix",redirectTo:"my/to-do",data:{redirected:!0}},{path:"only-in-live",loadComponent:()=>import("./chunk-27WYQ7GZ.js").then(s=>s.OnlyInBLiveComponent)},{path:"only-in-beta",loadComponent:()=>import("./chunk-ZEY2YAMH.js").then(s=>s.OnlyInBetaComponent)},{path:"my",loadChildren:()=>import("./chunk-PCJ5OHK5.js").then(s=>s.MyCoralGuideModule)},{path:"about",loadComponent:()=>import("./chunk-2KSRERAA.js").then(s=>s.AboutComponent)},{path:"**",loadComponent:()=>import("./chunk-ZW72YHDO.js").then(s=>s.Error404Component)}],hr=(()=>{let e=class e{};e.\u0275fac=function(n){return new(n||e)},e.\u0275mod=ce({type:e,bootstrap:[Ts]}),e.\u0275inj=ae({providers:[{provide:Ti,useValue:"d0ntstr3ampl34ase"},{provide:Tt,multi:!0,useFactory:(i,n)=>(i||n.saveSettings(Fe(I({},n.getSettings()),{useBeta:!1})),()=>ye()),deps:[[new vn,Ti],Ee]},{provide:Gn,useValue:{disabled:!0}},{provide:ss,useValue:{animationDuration:"0",stretchTabs:!1}},{provide:Ft,useClass:ir},En(is),xn(Rn([dr]))],imports:[kt,tr,jt.forRoot(ka,Da),Cs,We,Hn.forRoot(),cr.register("ngsw-worker.js",{enabled:!Pn(),registrationStrategy:"registerWhenStable:30000"}),Kt]});let s=e;return s})();var ur={production:!0};ur.production&&void 0;Fn().bootstrapModule(hr).catch(s=>console.error(s));