dealposbarcode 1.2.2 → 1.2.6
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/barcode/269.598b319dd6621308.js +1 -0
- package/barcode/index.html +2 -2
- package/barcode/main.ce7f45c407cca8bc.js +1 -0
- package/barcode/ngsw.json +8 -8
- package/barcode/{runtime.c3f8e2c8b20516ca.js → runtime.a01075c47ed9e509.js} +1 -1
- package/package.json +1 -1
- package/barcode/269.3d862488bed00387.js +0 -1
- package/barcode/main.8d93a2c99635f788.js +0 -1
|
@@ -0,0 +1 @@
|
|
|
1
|
+
"use strict";var CM=Object.defineProperty,DM=Object.defineProperties,EM=Object.getOwnPropertyDescriptors,Rv=Object.getOwnPropertySymbols,wM=Object.prototype.hasOwnProperty,TM=Object.prototype.propertyIsEnumerable,kv=(St,Se,M)=>Se in St?CM(St,Se,{enumerable:!0,configurable:!0,writable:!0,value:M}):St[Se]=M,Wt=(St,Se)=>{for(var M in Se||(Se={}))wM.call(Se,M)&&kv(St,M,Se[M]);if(Rv)for(var M of Rv(Se))TM.call(Se,M)&&kv(St,M,Se[M]);return St},hr=(St,Se)=>DM(St,EM(Se));(self.webpackChunkbarcode_app=self.webpackChunkbarcode_app||[]).push([[179],{8452:(St,Se,M)=>{M.d(Se,{FN:()=>Ft,PR:()=>rt,Rh:()=>Dt,_W:()=>ft});var l=M(3668),f=M(9814),Z=M(3405),o=M(5427),oe=M(6019);const U=["toast-component",""];function te(We,vt){if(1&We){const Ee=l.EpF();l.TgZ(0,"button",5),l.NdJ("click",function(){return l.CHM(Ee),l.oxw().remove()}),l.TgZ(1,"span",6),l._uU(2,"\xd7"),l.qZA(),l.qZA()}}function G(We,vt){if(1&We&&(l.ynx(0),l._uU(1),l.BQk()),2&We){const Ee=l.oxw(2);l.xp6(1),l.hij("[",Ee.duplicatesCount+1,"]")}}function W(We,vt){if(1&We&&(l.TgZ(0,"div"),l._uU(1),l.YNc(2,G,2,1,"ng-container",4),l.qZA()),2&We){const Ee=l.oxw();l.Tol(Ee.options.titleClass),l.uIk("aria-label",Ee.title),l.xp6(1),l.hij(" ",Ee.title," "),l.xp6(1),l.Q6J("ngIf",Ee.duplicatesCount)}}function Q(We,vt){if(1&We&&l._UZ(0,"div",7),2&We){const Ee=l.oxw();l.Tol(Ee.options.messageClass),l.Q6J("innerHTML",Ee.message,l.oJD)}}function ne(We,vt){if(1&We&&(l.TgZ(0,"div",8),l._uU(1),l.qZA()),2&We){const Ee=l.oxw();l.Tol(Ee.options.messageClass),l.uIk("aria-label",Ee.message),l.xp6(1),l.hij(" ",Ee.message," ")}}function ie(We,vt){if(1&We&&(l.TgZ(0,"div"),l._UZ(1,"div",9),l.qZA()),2&We){const Ee=l.oxw();l.xp6(1),l.Udp("width",Ee.width+"%")}}function Ne(We,vt){if(1&We){const Ee=l.EpF();l.TgZ(0,"button",5),l.NdJ("click",function(){return l.CHM(Ee),l.oxw().remove()}),l.TgZ(1,"span",6),l._uU(2,"\xd7"),l.qZA(),l.qZA()}}function qe(We,vt){if(1&We&&(l.ynx(0),l._uU(1),l.BQk()),2&We){const Ee=l.oxw(2);l.xp6(1),l.hij("[",Ee.duplicatesCount+1,"]")}}function it(We,vt){if(1&We&&(l.TgZ(0,"div"),l._uU(1),l.YNc(2,qe,2,1,"ng-container",4),l.qZA()),2&We){const Ee=l.oxw();l.Tol(Ee.options.titleClass),l.uIk("aria-label",Ee.title),l.xp6(1),l.hij(" ",Ee.title," "),l.xp6(1),l.Q6J("ngIf",Ee.duplicatesCount)}}function Le(We,vt){if(1&We&&l._UZ(0,"div",7),2&We){const Ee=l.oxw();l.Tol(Ee.options.messageClass),l.Q6J("innerHTML",Ee.message,l.oJD)}}function dt(We,vt){if(1&We&&(l.TgZ(0,"div",8),l._uU(1),l.qZA()),2&We){const Ee=l.oxw();l.Tol(Ee.options.messageClass),l.uIk("aria-label",Ee.message),l.xp6(1),l.hij(" ",Ee.message," ")}}function Qe(We,vt){if(1&We&&(l.TgZ(0,"div"),l._UZ(1,"div",9),l.qZA()),2&We){const Ee=l.oxw();l.xp6(1),l.Udp("width",Ee.width+"%")}}class rt{constructor(vt,Ee,Fe,Ve,ut,Pe){this.toastId=vt,this.config=Ee,this.message=Fe,this.title=Ve,this.toastType=ut,this.toastRef=Pe,this._onTap=new Z.xQ,this._onAction=new Z.xQ,this.toastRef.afterClosed().subscribe(()=>{this._onAction.complete(),this._onTap.complete()})}triggerTap(){this._onTap.next(),this.config.tapToDismiss&&this._onTap.complete()}onTap(){return this._onTap.asObservable()}triggerAction(vt){this._onAction.next(vt)}onAction(){return this._onAction.asObservable()}}const Ce={maxOpened:0,autoDismiss:!1,newestOnTop:!0,preventDuplicates:!1,countDuplicates:!1,resetTimeoutOnDuplicate:!1,includeTitleDuplicates:!1,iconClasses:{error:"toast-error",info:"toast-info",success:"toast-success",warning:"toast-warning"},closeButton:!1,disableTimeOut:!1,timeOut:5e3,extendedTimeOut:1e3,enableHtml:!1,progressBar:!1,toastClass:"ngx-toastr",positionClass:"toast-top-right",titleClass:"toast-title",messageClass:"toast-message",easing:"ease-in",easeTime:300,tapToDismiss:!0,onActivateTick:!1,progressAnimation:"decreasing"},ht=new l.OlP("ToastConfig");class at{constructor(vt,Ee){this.component=vt,this.injector=Ee}attach(vt,Ee){return this._attachedHost=vt,vt.attach(this,Ee)}detach(){const vt=this._attachedHost;if(vt)return this._attachedHost=void 0,vt.detach()}get isAttached(){return null!=this._attachedHost}setAttachedHost(vt){this._attachedHost=vt}}class xt extends class{attach(vt,Ee){return this._attachedPortal=vt,this.attachComponentPortal(vt,Ee)}detach(){this._attachedPortal&&this._attachedPortal.setAttachedHost(),this._attachedPortal=void 0,this._disposeFn&&(this._disposeFn(),this._disposeFn=void 0)}setDisposeFn(vt){this._disposeFn=vt}}{constructor(vt,Ee,Fe){super(),this._hostDomElement=vt,this._componentFactoryResolver=Ee,this._appRef=Fe}attachComponentPortal(vt,Ee){const Fe=this._componentFactoryResolver.resolveComponentFactory(vt.component);let Ve;return Ve=Fe.create(vt.injector),this._appRef.attachView(Ve.hostView),this.setDisposeFn(()=>{this._appRef.detachView(Ve.hostView),Ve.destroy()}),Ee?this._hostDomElement.insertBefore(this._getComponentRootNode(Ve),this._hostDomElement.firstChild):this._hostDomElement.appendChild(this._getComponentRootNode(Ve)),Ve}_getComponentRootNode(vt){return vt.hostView.rootNodes[0]}}let Yt=(()=>{class We{constructor(Ee){this._document=Ee}ngOnDestroy(){this._containerElement&&this._containerElement.parentNode&&this._containerElement.parentNode.removeChild(this._containerElement)}getContainerElement(){return this._containerElement||this._createContainer(),this._containerElement}_createContainer(){const Ee=this._document.createElement("div");Ee.classList.add("overlay-container"),this._document.body.appendChild(Ee),this._containerElement=Ee}}return We.\u0275fac=function(Ee){return new(Ee||We)(l.LFG(oe.K0))},We.\u0275prov=(0,l.Yz7)({factory:function(){return new We((0,l.LFG)(oe.K0))},token:We,providedIn:"root"}),We})();class Kt{constructor(vt){this._portalHost=vt}attach(vt,Ee=!0){return this._portalHost.attach(vt,Ee)}detach(){return this._portalHost.detach()}}let Zt=(()=>{class We{constructor(Ee,Fe,Ve,ut){this._overlayContainer=Ee,this._componentFactoryResolver=Fe,this._appRef=Ve,this._document=ut,this._paneElements=new Map}create(Ee,Fe){return this._createOverlayRef(this.getPaneElement(Ee,Fe))}getPaneElement(Ee="",Fe){return this._paneElements.get(Fe)||this._paneElements.set(Fe,{}),this._paneElements.get(Fe)[Ee]||(this._paneElements.get(Fe)[Ee]=this._createPaneElement(Ee,Fe)),this._paneElements.get(Fe)[Ee]}_createPaneElement(Ee,Fe){const Ve=this._document.createElement("div");return Ve.id="toast-container",Ve.classList.add(Ee),Ve.classList.add("toast-container"),Fe?Fe.getContainerElement().appendChild(Ve):this._overlayContainer.getContainerElement().appendChild(Ve),Ve}_createPortalHost(Ee){return new xt(Ee,this._componentFactoryResolver,this._appRef)}_createOverlayRef(Ee){return new Kt(this._createPortalHost(Ee))}}return We.\u0275fac=function(Ee){return new(Ee||We)(l.LFG(Yt),l.LFG(l._Vd),l.LFG(l.z2F),l.LFG(oe.K0))},We.\u0275prov=(0,l.Yz7)({factory:function(){return new We((0,l.LFG)(Yt),(0,l.LFG)(l._Vd),(0,l.LFG)(l.z2F),(0,l.LFG)(oe.K0))},token:We,providedIn:"root"}),We})();class Ut{constructor(vt){this._overlayRef=vt,this.duplicatesCount=0,this._afterClosed=new Z.xQ,this._activate=new Z.xQ,this._manualClose=new Z.xQ,this._resetTimeout=new Z.xQ,this._countDuplicate=new Z.xQ}manualClose(){this._manualClose.next(),this._manualClose.complete()}manualClosed(){return this._manualClose.asObservable()}timeoutReset(){return this._resetTimeout.asObservable()}countDuplicate(){return this._countDuplicate.asObservable()}close(){this._overlayRef.detach(),this._afterClosed.next(),this._manualClose.next(),this._afterClosed.complete(),this._manualClose.complete(),this._activate.complete(),this._resetTimeout.complete(),this._countDuplicate.complete()}afterClosed(){return this._afterClosed.asObservable()}isInactive(){return this._activate.isStopped}activate(){this._activate.next(),this._activate.complete()}afterActivate(){return this._activate.asObservable()}onDuplicate(vt,Ee){vt&&this._resetTimeout.next(),Ee&&this._countDuplicate.next(++this.duplicatesCount)}}class on{constructor(vt,Ee){this._toastPackage=vt,this._parentInjector=Ee}get(vt,Ee,Fe){return vt===rt?this._toastPackage:this._parentInjector.get(vt,Ee,Fe)}}let ft=(()=>{class We{constructor(Ee,Fe,Ve,ut,Pe){this.overlay=Fe,this._injector=Ve,this.sanitizer=ut,this.ngZone=Pe,this.currentlyActive=0,this.toasts=[],this.index=0,this.toastrConfig=Object.assign(Object.assign({},Ee.default),Ee.config),Ee.config.iconClasses&&(this.toastrConfig.iconClasses=Object.assign(Object.assign({},Ee.default.iconClasses),Ee.config.iconClasses))}show(Ee,Fe,Ve={},ut=""){return this._preBuildNotification(ut,Ee,Fe,this.applyConfig(Ve))}success(Ee,Fe,Ve={}){return this._preBuildNotification(this.toastrConfig.iconClasses.success||"",Ee,Fe,this.applyConfig(Ve))}error(Ee,Fe,Ve={}){return this._preBuildNotification(this.toastrConfig.iconClasses.error||"",Ee,Fe,this.applyConfig(Ve))}info(Ee,Fe,Ve={}){return this._preBuildNotification(this.toastrConfig.iconClasses.info||"",Ee,Fe,this.applyConfig(Ve))}warning(Ee,Fe,Ve={}){return this._preBuildNotification(this.toastrConfig.iconClasses.warning||"",Ee,Fe,this.applyConfig(Ve))}clear(Ee){for(const Fe of this.toasts)if(void 0!==Ee){if(Fe.toastId===Ee)return void Fe.toastRef.manualClose()}else Fe.toastRef.manualClose()}remove(Ee){const Fe=this._findToast(Ee);if(!Fe||(Fe.activeToast.toastRef.close(),this.toasts.splice(Fe.index,1),this.currentlyActive=this.currentlyActive-1,!this.toastrConfig.maxOpened||!this.toasts.length))return!1;if(this.currentlyActive<this.toastrConfig.maxOpened&&this.toasts[this.currentlyActive]){const Ve=this.toasts[this.currentlyActive].toastRef;Ve.isInactive()||(this.currentlyActive=this.currentlyActive+1,Ve.activate())}return!0}findDuplicate(Ee="",Fe="",Ve,ut){const{includeTitleDuplicates:Pe}=this.toastrConfig;for(const gt of this.toasts){const It=Pe&>.title===Ee;if((!Pe||It)&>.message===Fe)return gt.toastRef.onDuplicate(Ve,ut),gt}return null}applyConfig(Ee={}){return Object.assign(Object.assign({},this.toastrConfig),Ee)}_findToast(Ee){for(let Fe=0;Fe<this.toasts.length;Fe++)if(this.toasts[Fe].toastId===Ee)return{index:Fe,activeToast:this.toasts[Fe]};return null}_preBuildNotification(Ee,Fe,Ve,ut){return ut.onActivateTick?this.ngZone.run(()=>this._buildNotification(Ee,Fe,Ve,ut)):this._buildNotification(Ee,Fe,Ve,ut)}_buildNotification(Ee,Fe,Ve,ut){if(!ut.toastComponent)throw new Error("toastComponent required");const Pe=this.findDuplicate(Ve,Fe,this.toastrConfig.resetTimeoutOnDuplicate&&ut.timeOut>0,this.toastrConfig.countDuplicates);if((this.toastrConfig.includeTitleDuplicates&&Ve||Fe)&&this.toastrConfig.preventDuplicates&&null!==Pe)return Pe;this.previousToastMessage=Fe;let gt=!1;this.toastrConfig.maxOpened&&this.currentlyActive>=this.toastrConfig.maxOpened&&(gt=!0,this.toastrConfig.autoDismiss&&this.clear(this.toasts[0].toastId));const It=this.overlay.create(ut.positionClass,this.overlayContainer);this.index=this.index+1;let jt=Fe;Fe&&ut.enableHtml&&(jt=this.sanitizer.sanitize(l.q3G.HTML,Fe));const tn=new Ut(It),Fn=new rt(this.index,ut,jt,Ve,Ee,tn),Xe=new on(Fn,this._injector),$=new at(ut.toastComponent,Xe),X=It.attach($,this.toastrConfig.newestOnTop);tn.componentInstance=X.instance;const Te={toastId:this.index,title:Ve||"",message:Fe||"",toastRef:tn,onShown:tn.afterActivate(),onHidden:tn.afterClosed(),onTap:Fn.onTap(),onAction:Fn.onAction(),portal:X};return gt||(this.currentlyActive=this.currentlyActive+1,setTimeout(()=>{Te.toastRef.activate()})),this.toasts.push(Te),Te}}return We.\u0275fac=function(Ee){return new(Ee||We)(l.LFG(ht),l.LFG(Zt),l.LFG(l.zs3),l.LFG(o.H7),l.LFG(l.R0b))},We.\u0275prov=(0,l.Yz7)({factory:function(){return new We((0,l.LFG)(ht),(0,l.LFG)(Zt),(0,l.LFG)(l.gxx),(0,l.LFG)(o.H7),(0,l.LFG)(l.R0b))},token:We,providedIn:"root"}),We})(),Ft=(()=>{class We{constructor(Ee,Fe,Ve){this.toastrService=Ee,this.toastPackage=Fe,this.ngZone=Ve,this.width=-1,this.toastClasses="",this.state={value:"inactive",params:{easeTime:this.toastPackage.config.easeTime,easing:"ease-in"}},this.message=Fe.message,this.title=Fe.title,this.options=Fe.config,this.originalTimeout=Fe.config.timeOut,this.toastClasses=`${Fe.toastType} ${Fe.config.toastClass}`,this.sub=Fe.toastRef.afterActivate().subscribe(()=>{this.activateToast()}),this.sub1=Fe.toastRef.manualClosed().subscribe(()=>{this.remove()}),this.sub2=Fe.toastRef.timeoutReset().subscribe(()=>{this.resetTimeout()}),this.sub3=Fe.toastRef.countDuplicate().subscribe(ut=>{this.duplicatesCount=ut})}get displayStyle(){if("inactive"===this.state.value)return"none"}ngOnDestroy(){this.sub.unsubscribe(),this.sub1.unsubscribe(),this.sub2.unsubscribe(),this.sub3.unsubscribe(),clearInterval(this.intervalId),clearTimeout(this.timeout)}activateToast(){this.state=Object.assign(Object.assign({},this.state),{value:"active"}),!0!==this.options.disableTimeOut&&"timeOut"!==this.options.disableTimeOut&&this.options.timeOut&&(this.outsideTimeout(()=>this.remove(),this.options.timeOut),this.hideTime=(new Date).getTime()+this.options.timeOut,this.options.progressBar&&this.outsideInterval(()=>this.updateProgress(),10))}updateProgress(){if(0===this.width||100===this.width||!this.options.timeOut)return;const Ee=(new Date).getTime();this.width=(this.hideTime-Ee)/this.options.timeOut*100,"increasing"===this.options.progressAnimation&&(this.width=100-this.width),this.width<=0&&(this.width=0),this.width>=100&&(this.width=100)}resetTimeout(){clearTimeout(this.timeout),clearInterval(this.intervalId),this.state=Object.assign(Object.assign({},this.state),{value:"active"}),this.outsideTimeout(()=>this.remove(),this.originalTimeout),this.options.timeOut=this.originalTimeout,this.hideTime=(new Date).getTime()+(this.options.timeOut||0),this.width=-1,this.options.progressBar&&this.outsideInterval(()=>this.updateProgress(),10)}remove(){"removed"!==this.state.value&&(clearTimeout(this.timeout),this.state=Object.assign(Object.assign({},this.state),{value:"removed"}),this.outsideTimeout(()=>this.toastrService.remove(this.toastPackage.toastId),+this.toastPackage.config.easeTime))}tapToast(){"removed"!==this.state.value&&(this.toastPackage.triggerTap(),this.options.tapToDismiss&&this.remove())}stickAround(){"removed"!==this.state.value&&(clearTimeout(this.timeout),this.options.timeOut=0,this.hideTime=0,clearInterval(this.intervalId),this.width=0)}delayedHideToast(){!0===this.options.disableTimeOut||"extendedTimeOut"===this.options.disableTimeOut||0===this.options.extendedTimeOut||"removed"===this.state.value||(this.outsideTimeout(()=>this.remove(),this.options.extendedTimeOut),this.options.timeOut=this.options.extendedTimeOut,this.hideTime=(new Date).getTime()+(this.options.timeOut||0),this.width=-1,this.options.progressBar&&this.outsideInterval(()=>this.updateProgress(),10))}outsideTimeout(Ee,Fe){this.ngZone?this.ngZone.runOutsideAngular(()=>this.timeout=setTimeout(()=>this.runInsideAngular(Ee),Fe)):this.timeout=setTimeout(()=>Ee(),Fe)}outsideInterval(Ee,Fe){this.ngZone?this.ngZone.runOutsideAngular(()=>this.intervalId=setInterval(()=>this.runInsideAngular(Ee),Fe)):this.intervalId=setInterval(()=>Ee(),Fe)}runInsideAngular(Ee){this.ngZone?this.ngZone.run(()=>Ee()):Ee()}}return We.\u0275fac=function(Ee){return new(Ee||We)(l.Y36(ft),l.Y36(rt),l.Y36(l.R0b))},We.\u0275cmp=l.Xpm({type:We,selectors:[["","toast-component",""]],hostVars:5,hostBindings:function(Ee,Fe){1&Ee&&l.NdJ("click",function(){return Fe.tapToast()})("mouseenter",function(){return Fe.stickAround()})("mouseleave",function(){return Fe.delayedHideToast()}),2&Ee&&(l.d8E("@flyInOut",Fe.state),l.Tol(Fe.toastClasses),l.Udp("display",Fe.displayStyle))},attrs:U,decls:5,vars:5,consts:[["class","toast-close-button","aria-label","Close",3,"click",4,"ngIf"],[3,"class",4,"ngIf"],["role","alertdialog","aria-live","polite",3,"class","innerHTML",4,"ngIf"],["role","alertdialog","aria-live","polite",3,"class",4,"ngIf"],[4,"ngIf"],["aria-label","Close",1,"toast-close-button",3,"click"],["aria-hidden","true"],["role","alertdialog","aria-live","polite",3,"innerHTML"],["role","alertdialog","aria-live","polite"],[1,"toast-progress"]],template:function(Ee,Fe){1&Ee&&(l.YNc(0,te,3,0,"button",0),l.YNc(1,W,3,5,"div",1),l.YNc(2,Q,1,3,"div",2),l.YNc(3,ne,2,4,"div",3),l.YNc(4,ie,2,2,"div",4)),2&Ee&&(l.Q6J("ngIf",Fe.options.closeButton),l.xp6(1),l.Q6J("ngIf",Fe.title),l.xp6(1),l.Q6J("ngIf",Fe.message&&Fe.options.enableHtml),l.xp6(1),l.Q6J("ngIf",Fe.message&&!Fe.options.enableHtml),l.xp6(1),l.Q6J("ngIf",Fe.options.progressBar))},directives:[oe.O5],encapsulation:2,data:{animation:[(0,f.X$)("flyInOut",[(0,f.SB)("inactive",(0,f.oB)({opacity:0})),(0,f.SB)("active",(0,f.oB)({opacity:1})),(0,f.SB)("removed",(0,f.oB)({opacity:0})),(0,f.eR)("inactive => active",(0,f.jt)("{{ easeTime }}ms {{ easing }}")),(0,f.eR)("active => removed",(0,f.jt)("{{ easeTime }}ms {{ easing }}"))])]}}),We})();const Ye=Object.assign(Object.assign({},Ce),{toastComponent:Ft});let Dt=(()=>{class We{static forRoot(Ee={}){return{ngModule:We,providers:[{provide:ht,useValue:{default:Ye,config:Ee}}]}}}return We.\u0275fac=function(Ee){return new(Ee||We)},We.\u0275mod=l.oAB({type:We}),We.\u0275inj=l.cJS({imports:[[oe.ez]]}),We})(),Gt=(()=>{class We{constructor(Ee,Fe,Ve){this.toastrService=Ee,this.toastPackage=Fe,this.appRef=Ve,this.width=-1,this.toastClasses="",this.state="inactive",this.message=Fe.message,this.title=Fe.title,this.options=Fe.config,this.originalTimeout=Fe.config.timeOut,this.toastClasses=`${Fe.toastType} ${Fe.config.toastClass}`,this.sub=Fe.toastRef.afterActivate().subscribe(()=>{this.activateToast()}),this.sub1=Fe.toastRef.manualClosed().subscribe(()=>{this.remove()}),this.sub2=Fe.toastRef.timeoutReset().subscribe(()=>{this.resetTimeout()}),this.sub3=Fe.toastRef.countDuplicate().subscribe(ut=>{this.duplicatesCount=ut})}get displayStyle(){if("inactive"===this.state)return"none"}ngOnDestroy(){this.sub.unsubscribe(),this.sub1.unsubscribe(),this.sub2.unsubscribe(),this.sub3.unsubscribe(),clearInterval(this.intervalId),clearTimeout(this.timeout)}activateToast(){this.state="active",!(!0===this.options.disableTimeOut||"timeOut"===this.options.disableTimeOut)&&this.options.timeOut&&(this.timeout=setTimeout(()=>{this.remove()},this.options.timeOut),this.hideTime=(new Date).getTime()+this.options.timeOut,this.options.progressBar&&(this.intervalId=setInterval(()=>this.updateProgress(),10))),this.options.onActivateTick&&this.appRef.tick()}updateProgress(){if(0===this.width||100===this.width||!this.options.timeOut)return;const Ee=(new Date).getTime();this.width=(this.hideTime-Ee)/this.options.timeOut*100,"increasing"===this.options.progressAnimation&&(this.width=100-this.width),this.width<=0&&(this.width=0),this.width>=100&&(this.width=100)}resetTimeout(){clearTimeout(this.timeout),clearInterval(this.intervalId),this.state="active",this.options.timeOut=this.originalTimeout,this.timeout=setTimeout(()=>this.remove(),this.originalTimeout),this.hideTime=(new Date).getTime()+(this.originalTimeout||0),this.width=-1,this.options.progressBar&&(this.intervalId=setInterval(()=>this.updateProgress(),10))}remove(){"removed"!==this.state&&(clearTimeout(this.timeout),this.state="removed",this.timeout=setTimeout(()=>this.toastrService.remove(this.toastPackage.toastId)))}tapToast(){"removed"!==this.state&&(this.toastPackage.triggerTap(),this.options.tapToDismiss&&this.remove())}stickAround(){"removed"!==this.state&&(clearTimeout(this.timeout),this.options.timeOut=0,this.hideTime=0,clearInterval(this.intervalId),this.width=0)}delayedHideToast(){!0===this.options.disableTimeOut||"extendedTimeOut"===this.options.disableTimeOut||0===this.options.extendedTimeOut||"removed"===this.state||(this.timeout=setTimeout(()=>this.remove(),this.options.extendedTimeOut),this.options.timeOut=this.options.extendedTimeOut,this.hideTime=(new Date).getTime()+(this.options.timeOut||0),this.width=-1,this.options.progressBar&&(this.intervalId=setInterval(()=>this.updateProgress(),10)))}}return We.\u0275fac=function(Ee){return new(Ee||We)(l.Y36(ft),l.Y36(rt),l.Y36(l.z2F))},We.\u0275cmp=l.Xpm({type:We,selectors:[["","toast-component",""]],hostVars:4,hostBindings:function(Ee,Fe){1&Ee&&l.NdJ("click",function(){return Fe.tapToast()})("mouseenter",function(){return Fe.stickAround()})("mouseleave",function(){return Fe.delayedHideToast()}),2&Ee&&(l.Tol(Fe.toastClasses),l.Udp("display",Fe.displayStyle))},attrs:U,decls:5,vars:5,consts:[["class","toast-close-button","aria-label","Close",3,"click",4,"ngIf"],[3,"class",4,"ngIf"],["role","alert","aria-live","polite",3,"class","innerHTML",4,"ngIf"],["role","alert","aria-live","polite",3,"class",4,"ngIf"],[4,"ngIf"],["aria-label","Close",1,"toast-close-button",3,"click"],["aria-hidden","true"],["role","alert","aria-live","polite",3,"innerHTML"],["role","alert","aria-live","polite"],[1,"toast-progress"]],template:function(Ee,Fe){1&Ee&&(l.YNc(0,Ne,3,0,"button",0),l.YNc(1,it,3,5,"div",1),l.YNc(2,Le,1,3,"div",2),l.YNc(3,dt,2,4,"div",3),l.YNc(4,Qe,2,2,"div",4)),2&Ee&&(l.Q6J("ngIf",Fe.options.closeButton),l.xp6(1),l.Q6J("ngIf",Fe.title),l.xp6(1),l.Q6J("ngIf",Fe.message&&Fe.options.enableHtml),l.xp6(1),l.Q6J("ngIf",Fe.message&&!Fe.options.enableHtml),l.xp6(1),l.Q6J("ngIf",Fe.options.progressBar))},directives:[oe.O5],encapsulation:2}),We})();Object.assign(Object.assign({},Ce),{toastComponent:Gt})},4099:(St,Se,M)=>{M.d(Se,{X:()=>Z});var l=M(3405),f=M(2108);class Z extends l.xQ{constructor(oe){super(),this._value=oe}get value(){return this.getValue()}_subscribe(oe){const U=super._subscribe(oe);return U&&!U.closed&&oe.next(this._value),U}getValue(){if(this.hasError)throw this.thrownError;if(this.closed)throw new f.N;return this._value}next(oe){super.next(this._value=oe)}}},8085:(St,Se,M)=>{M.d(Se,{P:()=>oe});var l=M(172),f=M(2411),Z=M(540);class oe{constructor(te,G,W){this.kind=te,this.value=G,this.error=W,this.hasValue="N"===te}observe(te){switch(this.kind){case"N":return te.next&&te.next(this.value);case"E":return te.error&&te.error(this.error);case"C":return te.complete&&te.complete()}}do(te,G,W){switch(this.kind){case"N":return te&&te(this.value);case"E":return G&&G(this.error);case"C":return W&&W()}}accept(te,G,W){return te&&"function"==typeof te.next?this.observe(te):this.do(te,G,W)}toObservable(){switch(this.kind){case"N":return(0,f.of)(this.value);case"E":return(0,Z._)(this.error);case"C":return(0,l.c)()}throw new Error("unexpected notification kind value")}static createNext(te){return void 0!==te?new oe("N",te):oe.undefinedValueNotification}static createError(te){return new oe("E",void 0,te)}static createComplete(){return oe.completeNotification}}oe.completeNotification=new oe("C"),oe.undefinedValueNotification=new oe("N",void 0)},5548:(St,Se,M)=>{M.d(Se,{y:()=>ne});var l=M(4168),Z=M(2926),o=M(6617),U=M(1359),te=M(7255);var Q=M(5426);let ne=(()=>{class Ne{constructor(it){this._isScalar=!1,it&&(this._subscribe=it)}lift(it){const Le=new Ne;return Le.source=this,Le.operator=it,Le}subscribe(it,Le,dt){const{operator:Qe}=this,Ge=function(Ne,qe,it){if(Ne){if(Ne instanceof l.L)return Ne;if(Ne[Z.b])return Ne[Z.b]()}return Ne||qe||it?new l.L(Ne,qe,it):new l.L(o.c)}(it,Le,dt);if(Ge.add(Qe?Qe.call(Ge,this.source):this.source||Q.v.useDeprecatedSynchronousErrorHandling&&!Ge.syncErrorThrowable?this._subscribe(Ge):this._trySubscribe(Ge)),Q.v.useDeprecatedSynchronousErrorHandling&&Ge.syncErrorThrowable&&(Ge.syncErrorThrowable=!1,Ge.syncErrorThrown))throw Ge.syncErrorValue;return Ge}_trySubscribe(it){try{return this._subscribe(it)}catch(Le){Q.v.useDeprecatedSynchronousErrorHandling&&(it.syncErrorThrown=!0,it.syncErrorValue=Le),function(Ne){for(;Ne;){const{closed:qe,destination:it,isStopped:Le}=Ne;if(qe||Le)return!1;Ne=it&&it instanceof l.L?it:null}return!0}(it)?it.error(Le):console.warn(Le)}}forEach(it,Le){return new(Le=ie(Le))((dt,Qe)=>{let Ge;Ge=this.subscribe(Nt=>{try{it(Nt)}catch(rt){Qe(rt),Ge&&Ge.unsubscribe()}},Qe,dt)})}_subscribe(it){const{source:Le}=this;return Le&&Le.subscribe(it)}[U.L](){return this}pipe(...it){return 0===it.length?this:function(Ne){return 0===Ne.length?te.y:1===Ne.length?Ne[0]:function(it){return Ne.reduce((Le,dt)=>dt(Le),it)}}(it)(this)}toPromise(it){return new(it=ie(it))((Le,dt)=>{let Qe;this.subscribe(Ge=>Qe=Ge,Ge=>dt(Ge),()=>Le(Qe))})}}return Ne.create=qe=>new Ne(qe),Ne})();function ie(Ne){if(Ne||(Ne=Q.v.Promise||Promise),!Ne)throw new Error("no Promise impl found");return Ne}},6617:(St,Se,M)=>{M.d(Se,{c:()=>Z});var l=M(5426),f=M(9887);const Z={closed:!0,next(o){},error(o){if(l.v.useDeprecatedSynchronousErrorHandling)throw o;(0,f.z)(o)},complete(){}}},5330:(St,Se,M)=>{M.d(Se,{L:()=>f});var l=M(4168);class f extends l.L{notifyNext(o,oe,U,te,G){this.destination.next(oe)}notifyError(o,oe){this.destination.error(o)}notifyComplete(o){this.destination.complete()}}},3405:(St,Se,M)=>{M.d(Se,{Yc:()=>te,xQ:()=>G});var l=M(5548),f=M(4168),Z=M(1346),o=M(2108),oe=M(5973),U=M(2926);class te extends f.L{constructor(ne){super(ne),this.destination=ne}}let G=(()=>{class Q extends l.y{constructor(){super(),this.observers=[],this.closed=!1,this.isStopped=!1,this.hasError=!1,this.thrownError=null}[U.b](){return new te(this)}lift(ie){const Ne=new W(this,this);return Ne.operator=ie,Ne}next(ie){if(this.closed)throw new o.N;if(!this.isStopped){const{observers:Ne}=this,qe=Ne.length,it=Ne.slice();for(let Le=0;Le<qe;Le++)it[Le].next(ie)}}error(ie){if(this.closed)throw new o.N;this.hasError=!0,this.thrownError=ie,this.isStopped=!0;const{observers:Ne}=this,qe=Ne.length,it=Ne.slice();for(let Le=0;Le<qe;Le++)it[Le].error(ie);this.observers.length=0}complete(){if(this.closed)throw new o.N;this.isStopped=!0;const{observers:ie}=this,Ne=ie.length,qe=ie.slice();for(let it=0;it<Ne;it++)qe[it].complete();this.observers.length=0}unsubscribe(){this.isStopped=!0,this.closed=!0,this.observers=null}_trySubscribe(ie){if(this.closed)throw new o.N;return super._trySubscribe(ie)}_subscribe(ie){if(this.closed)throw new o.N;return this.hasError?(ie.error(this.thrownError),Z.w.EMPTY):this.isStopped?(ie.complete(),Z.w.EMPTY):(this.observers.push(ie),new oe.W(this,ie))}asObservable(){const ie=new l.y;return ie.source=this,ie}}return Q.create=(ne,ie)=>new W(ne,ie),Q})();class W extends G{constructor(ne,ie){super(),this.destination=ne,this.source=ie}next(ne){const{destination:ie}=this;ie&&ie.next&&ie.next(ne)}error(ne){const{destination:ie}=this;ie&&ie.error&&this.destination.error(ne)}complete(){const{destination:ne}=this;ne&&ne.complete&&this.destination.complete()}_subscribe(ne){const{source:ie}=this;return ie?this.source.subscribe(ne):Z.w.EMPTY}}},5973:(St,Se,M)=>{M.d(Se,{W:()=>f});var l=M(1346);class f extends l.w{constructor(o,oe){super(),this.subject=o,this.subscriber=oe,this.closed=!1}unsubscribe(){if(this.closed)return;this.closed=!0;const o=this.subject,oe=o.observers;if(this.subject=null,!oe||0===oe.length||o.isStopped||o.closed)return;const U=oe.indexOf(this.subscriber);-1!==U&&oe.splice(U,1)}}},4168:(St,Se,M)=>{M.d(Se,{L:()=>te});var l=M(6783),f=M(6617),Z=M(1346),o=M(2926),oe=M(5426),U=M(9887);class te extends Z.w{constructor(Q,ne,ie){switch(super(),this.syncErrorValue=null,this.syncErrorThrown=!1,this.syncErrorThrowable=!1,this.isStopped=!1,arguments.length){case 0:this.destination=f.c;break;case 1:if(!Q){this.destination=f.c;break}if("object"==typeof Q){Q instanceof te?(this.syncErrorThrowable=Q.syncErrorThrowable,this.destination=Q,Q.add(this)):(this.syncErrorThrowable=!0,this.destination=new G(this,Q));break}default:this.syncErrorThrowable=!0,this.destination=new G(this,Q,ne,ie)}}[o.b](){return this}static create(Q,ne,ie){const Ne=new te(Q,ne,ie);return Ne.syncErrorThrowable=!1,Ne}next(Q){this.isStopped||this._next(Q)}error(Q){this.isStopped||(this.isStopped=!0,this._error(Q))}complete(){this.isStopped||(this.isStopped=!0,this._complete())}unsubscribe(){this.closed||(this.isStopped=!0,super.unsubscribe())}_next(Q){this.destination.next(Q)}_error(Q){this.destination.error(Q),this.unsubscribe()}_complete(){this.destination.complete(),this.unsubscribe()}_unsubscribeAndRecycle(){const{_parentOrParents:Q}=this;return this._parentOrParents=null,this.unsubscribe(),this.closed=!1,this.isStopped=!1,this._parentOrParents=Q,this}}class G extends te{constructor(Q,ne,ie,Ne){super(),this._parentSubscriber=Q;let qe,it=this;(0,l.m)(ne)?qe=ne:ne&&(qe=ne.next,ie=ne.error,Ne=ne.complete,ne!==f.c&&(it=Object.create(ne),(0,l.m)(it.unsubscribe)&&this.add(it.unsubscribe.bind(it)),it.unsubscribe=this.unsubscribe.bind(this))),this._context=it,this._next=qe,this._error=ie,this._complete=Ne}next(Q){if(!this.isStopped&&this._next){const{_parentSubscriber:ne}=this;oe.v.useDeprecatedSynchronousErrorHandling&&ne.syncErrorThrowable?this.__tryOrSetError(ne,this._next,Q)&&this.unsubscribe():this.__tryOrUnsub(this._next,Q)}}error(Q){if(!this.isStopped){const{_parentSubscriber:ne}=this,{useDeprecatedSynchronousErrorHandling:ie}=oe.v;if(this._error)ie&&ne.syncErrorThrowable?(this.__tryOrSetError(ne,this._error,Q),this.unsubscribe()):(this.__tryOrUnsub(this._error,Q),this.unsubscribe());else if(ne.syncErrorThrowable)ie?(ne.syncErrorValue=Q,ne.syncErrorThrown=!0):(0,U.z)(Q),this.unsubscribe();else{if(this.unsubscribe(),ie)throw Q;(0,U.z)(Q)}}}complete(){if(!this.isStopped){const{_parentSubscriber:Q}=this;if(this._complete){const ne=()=>this._complete.call(this._context);oe.v.useDeprecatedSynchronousErrorHandling&&Q.syncErrorThrowable?(this.__tryOrSetError(Q,ne),this.unsubscribe()):(this.__tryOrUnsub(ne),this.unsubscribe())}else this.unsubscribe()}}__tryOrUnsub(Q,ne){try{Q.call(this._context,ne)}catch(ie){if(this.unsubscribe(),oe.v.useDeprecatedSynchronousErrorHandling)throw ie;(0,U.z)(ie)}}__tryOrSetError(Q,ne,ie){if(!oe.v.useDeprecatedSynchronousErrorHandling)throw new Error("bad call");try{ne.call(this._context,ie)}catch(Ne){return oe.v.useDeprecatedSynchronousErrorHandling?(Q.syncErrorValue=Ne,Q.syncErrorThrown=!0,!0):((0,U.z)(Ne),!0)}return!1}_unsubscribe(){const{_parentSubscriber:Q}=this;this._context=null,this._parentSubscriber=null,Q.unsubscribe()}}},1346:(St,Se,M)=>{M.d(Se,{w:()=>U});var l=M(5894),f=M(7879),Z=M(6783);const oe=(()=>{function G(W){return Error.call(this),this.message=W?`${W.length} errors occurred during unsubscription:\n${W.map((Q,ne)=>`${ne+1}) ${Q.toString()}`).join("\n ")}`:"",this.name="UnsubscriptionError",this.errors=W,this}return G.prototype=Object.create(Error.prototype),G})();class U{constructor(W){this.closed=!1,this._parentOrParents=null,this._subscriptions=null,W&&(this._ctorUnsubscribe=!0,this._unsubscribe=W)}unsubscribe(){let W;if(this.closed)return;let{_parentOrParents:Q,_ctorUnsubscribe:ne,_unsubscribe:ie,_subscriptions:Ne}=this;if(this.closed=!0,this._parentOrParents=null,this._subscriptions=null,Q instanceof U)Q.remove(this);else if(null!==Q)for(let qe=0;qe<Q.length;++qe)Q[qe].remove(this);if((0,Z.m)(ie)){ne&&(this._unsubscribe=void 0);try{ie.call(this)}catch(qe){W=qe instanceof oe?te(qe.errors):[qe]}}if((0,l.k)(Ne)){let qe=-1,it=Ne.length;for(;++qe<it;){const Le=Ne[qe];if((0,f.K)(Le))try{Le.unsubscribe()}catch(dt){W=W||[],dt instanceof oe?W=W.concat(te(dt.errors)):W.push(dt)}}}if(W)throw new oe(W)}add(W){let Q=W;if(!W)return U.EMPTY;switch(typeof W){case"function":Q=new U(W);case"object":if(Q===this||Q.closed||"function"!=typeof Q.unsubscribe)return Q;if(this.closed)return Q.unsubscribe(),Q;if(!(Q instanceof U)){const Ne=Q;Q=new U,Q._subscriptions=[Ne]}break;default:throw new Error("unrecognized teardown "+W+" added to Subscription.")}let{_parentOrParents:ne}=Q;if(null===ne)Q._parentOrParents=this;else if(ne instanceof U){if(ne===this)return Q;Q._parentOrParents=[ne,this]}else{if(-1!==ne.indexOf(this))return Q;ne.push(this)}const ie=this._subscriptions;return null===ie?this._subscriptions=[Q]:ie.push(Q),Q}remove(W){const Q=this._subscriptions;if(Q){const ne=Q.indexOf(W);-1!==ne&&Q.splice(ne,1)}}}var G;function te(G){return G.reduce((W,Q)=>W.concat(Q instanceof oe?Q.errors:Q),[])}U.EMPTY=((G=new U).closed=!0,G)},5426:(St,Se,M)=>{M.d(Se,{v:()=>f});let l=!1;const f={Promise:void 0,set useDeprecatedSynchronousErrorHandling(Z){if(Z){const o=new Error;console.warn("DEPRECATED! RxJS was set to use deprecated synchronous error handling behavior by code at: \n"+o.stack)}else l&&console.log("RxJS: Back to a better error behavior. Thank you. <3");l=Z},get useDeprecatedSynchronousErrorHandling(){return l}}},8345:(St,Se,M)=>{M.d(Se,{IY:()=>o,Ds:()=>U,ft:()=>G});var l=M(4168),f=M(5548),Z=M(4651);class o extends l.L{constructor(Q){super(),this.parent=Q}_next(Q){this.parent.notifyNext(Q)}_error(Q){this.parent.notifyError(Q),this.unsubscribe()}_complete(){this.parent.notifyComplete(),this.unsubscribe()}}class U extends l.L{notifyNext(Q){this.destination.next(Q)}notifyError(Q){this.destination.error(Q)}notifyComplete(){this.destination.complete()}}function G(W,Q){if(Q.closed)return;if(W instanceof f.y)return W.subscribe(Q);let ne;try{ne=(0,Z.s)(W)(Q)}catch(ie){Q.error(ie)}return ne}},5783:(St,Se,M)=>{M.d(Se,{c:()=>oe,N:()=>U});var l=M(3405),f=M(5548),Z=M(1346),o=M(5234);class oe extends f.y{constructor(ne,ie){super(),this.source=ne,this.subjectFactory=ie,this._refCount=0,this._isComplete=!1}_subscribe(ne){return this.getSubject().subscribe(ne)}getSubject(){const ne=this._subject;return(!ne||ne.isStopped)&&(this._subject=this.subjectFactory()),this._subject}connect(){let ne=this._connection;return ne||(this._isComplete=!1,ne=this._connection=new Z.w,ne.add(this.source.subscribe(new te(this.getSubject(),this))),ne.closed&&(this._connection=null,ne=Z.w.EMPTY)),ne}refCount(){return(0,o.x)()(this)}}const U=(()=>{const Q=oe.prototype;return{operator:{value:null},_refCount:{value:0,writable:!0},_subject:{value:null,writable:!0},_connection:{value:null,writable:!0},_subscribe:{value:Q._subscribe},_isComplete:{value:Q._isComplete,writable:!0},getSubject:{value:Q.getSubject},connect:{value:Q.connect},refCount:{value:Q.refCount}}})();class te extends l.Yc{constructor(ne,ie){super(ne),this.connectable=ie}_error(ne){this._unsubscribe(),super._error(ne)}_complete(){this.connectable._isComplete=!0,this._unsubscribe(),super._complete()}_unsubscribe(){const ne=this.connectable;if(ne){this.connectable=null;const ie=ne._connection;ne._refCount=0,ne._subject=null,ne._connection=null,ie&&ie.unsubscribe()}}}},2668:(St,Se,M)=>{M.d(Se,{aj:()=>te});var l=M(8151),f=M(5894),Z=M(5330),o=M(7974),oe=M(5433);const U={};function te(...Q){let ne,ie;return(0,l.K)(Q[Q.length-1])&&(ie=Q.pop()),"function"==typeof Q[Q.length-1]&&(ne=Q.pop()),1===Q.length&&(0,f.k)(Q[0])&&(Q=Q[0]),(0,oe.n)(Q,ie).lift(new G(ne))}class G{constructor(ne){this.resultSelector=ne}call(ne,ie){return ie.subscribe(new W(ne,this.resultSelector))}}class W extends Z.L{constructor(ne,ie){super(ne),this.resultSelector=ie,this.active=0,this.values=[],this.observables=[]}_next(ne){this.values.push(U),this.observables.push(ne)}_complete(){const ne=this.observables,ie=ne.length;if(0===ie)this.destination.complete();else{this.active=ie,this.toRespond=ie;for(let Ne=0;Ne<ie;Ne++)this.add((0,o.D)(this,ne[Ne],void 0,Ne))}}notifyComplete(ne){0==(this.active-=1)&&this.destination.complete()}notifyNext(ne,ie,Ne){const qe=this.values,Le=this.toRespond?qe[Ne]===U?--this.toRespond:this.toRespond:0;qe[Ne]=ie,0===Le&&(this.resultSelector?this._tryResultSelector(qe):this.destination.next(qe.slice()))}_tryResultSelector(ne){let ie;try{ie=this.resultSelector.apply(this,ne)}catch(Ne){return void this.destination.error(Ne)}this.destination.next(ie)}}},3596:(St,Se,M)=>{M.d(Se,{z:()=>o});var l=M(2411),f=M(2225);function o(...oe){return(0,f.J)(1)((0,l.of)(...oe))}},5476:(St,Se,M)=>{M.d(Se,{P:()=>o});var l=M(5548),f=M(1915),Z=M(172);function o(oe){return new l.y(U=>{let te;try{te=oe()}catch(W){return void U.error(W)}return(te?(0,f.D)(te):(0,Z.c)()).subscribe(U)})}},172:(St,Se,M)=>{M.d(Se,{E:()=>f,c:()=>Z});var l=M(5548);const f=new l.y(oe=>oe.complete());function Z(oe){return oe?function(oe){return new l.y(U=>oe.schedule(()=>U.complete()))}(oe):f}},1915:(St,Se,M)=>{M.d(Se,{D:()=>it});var l=M(5548),f=M(4651),Z=M(1346),o=M(1359),te=M(3428),G=M(4352),ne=M(847),ie=M(1265);function it(Le,dt){return dt?function(Le,dt){if(null!=Le){if(function(Le){return Le&&"function"==typeof Le[o.L]}(Le))return function(Le,dt){return new l.y(Qe=>{const Ge=new Z.w;return Ge.add(dt.schedule(()=>{const Nt=Le[o.L]();Ge.add(Nt.subscribe({next(rt){Ge.add(dt.schedule(()=>Qe.next(rt)))},error(rt){Ge.add(dt.schedule(()=>Qe.error(rt)))},complete(){Ge.add(dt.schedule(()=>Qe.complete()))}}))})),Ge})}(Le,dt);if((0,ne.t)(Le))return function(Le,dt){return new l.y(Qe=>{const Ge=new Z.w;return Ge.add(dt.schedule(()=>Le.then(Nt=>{Ge.add(dt.schedule(()=>{Qe.next(Nt),Ge.add(dt.schedule(()=>Qe.complete()))}))},Nt=>{Ge.add(dt.schedule(()=>Qe.error(Nt)))}))),Ge})}(Le,dt);if((0,ie.z)(Le))return(0,te.r)(Le,dt);if(function(Le){return Le&&"function"==typeof Le[G.hZ]}(Le)||"string"==typeof Le)return function(Le,dt){if(!Le)throw new Error("Iterable cannot be null");return new l.y(Qe=>{const Ge=new Z.w;let Nt;return Ge.add(()=>{Nt&&"function"==typeof Nt.return&&Nt.return()}),Ge.add(dt.schedule(()=>{Nt=Le[G.hZ](),Ge.add(dt.schedule(function(){if(Qe.closed)return;let rt,Ce;try{const ht=Nt.next();rt=ht.value,Ce=ht.done}catch(ht){return void Qe.error(ht)}Ce?Qe.complete():(Qe.next(rt),this.schedule())}))})),Ge})}(Le,dt)}throw new TypeError((null!==Le&&typeof Le||Le)+" is not observable")}(Le,dt):Le instanceof l.y?Le:new l.y((0,f.s)(Le))}},5433:(St,Se,M)=>{M.d(Se,{n:()=>o});var l=M(5548),f=M(8769),Z=M(3428);function o(oe,U){return U?(0,Z.r)(oe,U):new l.y((0,f.V)(oe))}},9506:(St,Se,M)=>{M.d(Se,{R:()=>U});var l=M(5548),f=M(5894),Z=M(6783),o=M(8053);function U(ne,ie,Ne,qe){return(0,Z.m)(Ne)&&(qe=Ne,Ne=void 0),qe?U(ne,ie,Ne).pipe((0,o.U)(it=>(0,f.k)(it)?qe(...it):qe(it))):new l.y(it=>{te(ne,ie,function(dt){it.next(arguments.length>1?Array.prototype.slice.call(arguments):dt)},it,Ne)})}function te(ne,ie,Ne,qe,it){let Le;if(function(ne){return ne&&"function"==typeof ne.addEventListener&&"function"==typeof ne.removeEventListener}(ne)){const dt=ne;ne.addEventListener(ie,Ne,it),Le=()=>dt.removeEventListener(ie,Ne,it)}else if(function(ne){return ne&&"function"==typeof ne.on&&"function"==typeof ne.off}(ne)){const dt=ne;ne.on(ie,Ne),Le=()=>dt.off(ie,Ne)}else if(function(ne){return ne&&"function"==typeof ne.addListener&&"function"==typeof ne.removeListener}(ne)){const dt=ne;ne.addListener(ie,Ne),Le=()=>dt.removeListener(ie,Ne)}else{if(!ne||!ne.length)throw new TypeError("Invalid event target");for(let dt=0,Qe=ne.length;dt<Qe;dt++)te(ne[dt],ie,Ne,qe,it)}qe.add(Le)}},8526:(St,Se,M)=>{M.d(Se,{T:()=>oe});var l=M(5548),f=M(8151),Z=M(2225),o=M(5433);function oe(...U){let te=Number.POSITIVE_INFINITY,G=null,W=U[U.length-1];return(0,f.K)(W)?(G=U.pop(),U.length>1&&"number"==typeof U[U.length-1]&&(te=U.pop())):"number"==typeof W&&(te=U.pop()),null===G&&1===U.length&&U[0]instanceof l.y?U[0]:(0,Z.J)(te)((0,o.n)(U,G))}},7689:(St,Se,M)=>{M.d(Se,{C:()=>Z});var l=M(5548),f=M(3989);const Z=new l.y(f.Z)},2411:(St,Se,M)=>{M.d(Se,{of:()=>o});var l=M(8151),f=M(5433),Z=M(3428);function o(...oe){let U=oe[oe.length-1];return(0,l.K)(U)?(oe.pop(),(0,Z.r)(oe,U)):(0,f.n)(oe)}},540:(St,Se,M)=>{M.d(Se,{_:()=>f});var l=M(5548);function f(o,oe){return new l.y(oe?U=>oe.schedule(Z,0,{error:o,subscriber:U}):U=>U.error(o))}function Z({error:o,subscriber:oe}){oe.error(o)}},265:(St,Se,M)=>{M.d(Se,{H:()=>U});var l=M(5548),f=M(8178),Z=M(5894);function o(G){return!(0,Z.k)(G)&&G-parseFloat(G)+1>=0}var oe=M(8151);function U(G=0,W,Q){let ne=-1;return o(W)?ne=Number(W)<1?1:Number(W):(0,oe.K)(W)&&(Q=W),(0,oe.K)(Q)||(Q=f.P),new l.y(ie=>{const Ne=o(G)?G:+G-Q.now();return Q.schedule(te,Ne,{index:0,period:ne,subscriber:ie})})}function te(G){const{index:W,period:Q,subscriber:ne}=G;if(ne.next(W),!ne.closed){if(-1===Q)return ne.complete();G.index=W+1,this.schedule(G,Q)}}},8105:(St,Se,M)=>{M.d(Se,{e:()=>te});var l=M(8178),f=M(8345);class o{constructor(W){this.durationSelector=W}call(W,Q){return Q.subscribe(new oe(W,this.durationSelector))}}class oe extends f.Ds{constructor(W,Q){super(W),this.durationSelector=Q,this.hasValue=!1}_next(W){if(this.value=W,this.hasValue=!0,!this.throttled){let Q;try{const{durationSelector:ie}=this;Q=ie(W)}catch(ie){return this.destination.error(ie)}const ne=(0,f.ft)(Q,new f.IY(this));!ne||ne.closed?this.clearThrottle():this.add(this.throttled=ne)}}clearThrottle(){const{value:W,hasValue:Q,throttled:ne}=this;ne&&(this.remove(ne),this.throttled=void 0,ne.unsubscribe()),Q&&(this.value=void 0,this.hasValue=!1,this.destination.next(W))}notifyNext(){this.clearThrottle()}notifyComplete(){this.clearThrottle()}}var U=M(265);function te(G,W=l.P){return function(G){return function(Q){return Q.lift(new o(G))}}(()=>(0,U.H)(G,W))}},6700:(St,Se,M)=>{M.d(Se,{b:()=>f});var l=M(4421);function f(Z,o){return(0,l.zg)(Z,o,1)}},5686:(St,Se,M)=>{M.d(Se,{b:()=>Z});var l=M(4168),f=M(8178);function Z(te,G=f.P){return W=>W.lift(new o(te,G))}class o{constructor(G,W){this.dueTime=G,this.scheduler=W}call(G,W){return W.subscribe(new oe(G,this.dueTime,this.scheduler))}}class oe extends l.L{constructor(G,W,Q){super(G),this.dueTime=W,this.scheduler=Q,this.debouncedSubscription=null,this.lastValue=null,this.hasValue=!1}_next(G){this.clearDebounce(),this.lastValue=G,this.hasValue=!0,this.add(this.debouncedSubscription=this.scheduler.schedule(U,this.dueTime,this))}_complete(){this.debouncedNext(),this.destination.complete()}debouncedNext(){if(this.clearDebounce(),this.hasValue){const{lastValue:G}=this;this.lastValue=null,this.hasValue=!1,this.destination.next(G)}}clearDebounce(){const G=this.debouncedSubscription;null!==G&&(this.remove(G),G.unsubscribe(),this.debouncedSubscription=null)}}function U(te){te.debouncedNext()}},2187:(St,Se,M)=>{M.d(Se,{g:()=>oe});var l=M(8178),f=M(5747),Z=M(4168),o=M(8085);function oe(W,Q=l.P){const ie=(0,f.J)(W)?+W-Q.now():Math.abs(W);return Ne=>Ne.lift(new U(ie,Q))}class U{constructor(Q,ne){this.delay=Q,this.scheduler=ne}call(Q,ne){return ne.subscribe(new te(Q,this.delay,this.scheduler))}}class te extends Z.L{constructor(Q,ne,ie){super(Q),this.delay=ne,this.scheduler=ie,this.queue=[],this.active=!1,this.errored=!1}static dispatch(Q){const ne=Q.source,ie=ne.queue,Ne=Q.scheduler,qe=Q.destination;for(;ie.length>0&&ie[0].time-Ne.now()<=0;)ie.shift().notification.observe(qe);if(ie.length>0){const it=Math.max(0,ie[0].time-Ne.now());this.schedule(Q,it)}else this.unsubscribe(),ne.active=!1}_schedule(Q){this.active=!0,this.destination.add(Q.schedule(te.dispatch,this.delay,{source:this,destination:this.destination,scheduler:Q}))}scheduleNotification(Q){if(!0===this.errored)return;const ne=this.scheduler,ie=new G(ne.now()+this.delay,Q);this.queue.push(ie),!1===this.active&&this._schedule(ne)}_next(Q){this.scheduleNotification(o.P.createNext(Q))}_error(Q){this.errored=!0,this.queue=[],this.destination.error(Q),this.unsubscribe()}_complete(){this.scheduleNotification(o.P.createComplete()),this.unsubscribe()}}class G{constructor(Q,ne){this.time=Q,this.notification=ne}}},5389:(St,Se,M)=>{M.d(Se,{x:()=>f});var l=M(4168);function f(oe,U){return te=>te.lift(new Z(oe,U))}class Z{constructor(U,te){this.compare=U,this.keySelector=te}call(U,te){return te.subscribe(new o(U,this.compare,this.keySelector))}}class o extends l.L{constructor(U,te,G){super(U),this.keySelector=G,this.hasKey=!1,"function"==typeof te&&(this.compare=te)}compare(U,te){return U===te}_next(U){let te;try{const{keySelector:W}=this;te=W?W(U):U}catch(W){return this.destination.error(W)}let G=!1;if(this.hasKey)try{const{compare:W}=this;G=W(this.key,te)}catch(W){return this.destination.error(W)}else this.hasKey=!0;G||(this.key=te,this.destination.next(U))}}},8735:(St,Se,M)=>{M.d(Se,{h:()=>f});var l=M(4168);function f(oe,U){return function(G){return G.lift(new Z(oe,U))}}class Z{constructor(U,te){this.predicate=U,this.thisArg=te}call(U,te){return te.subscribe(new o(U,this.predicate,this.thisArg))}}class o extends l.L{constructor(U,te,G){super(U),this.predicate=te,this.thisArg=G,this.count=0}_next(U){let te;try{te=this.predicate.call(this.thisArg,U,this.count++)}catch(G){return void this.destination.error(G)}te&&this.destination.next(U)}}},6658:(St,Se,M)=>{M.d(Se,{x:()=>Z});var l=M(4168),f=M(1346);function Z(U){return te=>te.lift(new o(U))}class o{constructor(te){this.callback=te}call(te,G){return G.subscribe(new oe(te,this.callback))}}class oe extends l.L{constructor(te,G){super(te),this.add(new f.w(G))}}},8053:(St,Se,M)=>{M.d(Se,{U:()=>f});var l=M(4168);function f(oe,U){return function(G){if("function"!=typeof oe)throw new TypeError("argument is not a function. Are you looking for `mapTo()`?");return G.lift(new Z(oe,U))}}class Z{constructor(U,te){this.project=U,this.thisArg=te}call(U,te){return te.subscribe(new o(U,this.project,this.thisArg))}}class o extends l.L{constructor(U,te,G){super(U),this.project=te,this.count=0,this.thisArg=G||this}_next(U){let te;try{te=this.project.call(this.thisArg,U,this.count++)}catch(G){return void this.destination.error(G)}this.destination.next(te)}}},2225:(St,Se,M)=>{M.d(Se,{J:()=>Z});var l=M(4421),f=M(7255);function Z(o=Number.POSITIVE_INFINITY){return(0,l.zg)(f.y,o)}},4421:(St,Se,M)=>{M.d(Se,{zg:()=>o});var l=M(8053),f=M(1915),Z=M(8345);function o(G,W,Q=Number.POSITIVE_INFINITY){return"function"==typeof W?ne=>ne.pipe(o((ie,Ne)=>(0,f.D)(G(ie,Ne)).pipe((0,l.U)((qe,it)=>W(ie,qe,Ne,it))),Q)):("number"==typeof W&&(Q=W),ne=>ne.lift(new oe(G,Q)))}class oe{constructor(W,Q=Number.POSITIVE_INFINITY){this.project=W,this.concurrent=Q}call(W,Q){return Q.subscribe(new U(W,this.project,this.concurrent))}}class U extends Z.Ds{constructor(W,Q,ne=Number.POSITIVE_INFINITY){super(W),this.project=Q,this.concurrent=ne,this.hasCompleted=!1,this.buffer=[],this.active=0,this.index=0}_next(W){this.active<this.concurrent?this._tryNext(W):this.buffer.push(W)}_tryNext(W){let Q;const ne=this.index++;try{Q=this.project(W,ne)}catch(ie){return void this.destination.error(ie)}this.active++,this._innerSub(Q)}_innerSub(W){const Q=new Z.IY(this),ne=this.destination;ne.add(Q);const ie=(0,Z.ft)(W,Q);ie!==Q&&ne.add(ie)}_complete(){this.hasCompleted=!0,0===this.active&&0===this.buffer.length&&this.destination.complete(),this.unsubscribe()}notifyNext(W){this.destination.next(W)}notifyComplete(){const W=this.buffer;this.active--,W.length>0?this._next(W.shift()):0===this.active&&this.hasCompleted&&this.destination.complete()}}},6087:(St,Se,M)=>{M.d(Se,{O:()=>f});var l=M(5783);function f(o,oe){return function(te){let G;if(G="function"==typeof o?o:function(){return o},"function"==typeof oe)return te.lift(new Z(G,oe));const W=Object.create(te,l.N);return W.source=te,W.subjectFactory=G,W}}class Z{constructor(oe,U){this.subjectFactory=oe,this.selector=U}call(oe,U){const{selector:te}=this,G=this.subjectFactory(),W=te(G).subscribe(oe);return W.add(U.subscribe(G)),W}}},5234:(St,Se,M)=>{M.d(Se,{x:()=>f});var l=M(4168);function f(){return function(U){return U.lift(new Z(U))}}class Z{constructor(U){this.connectable=U}call(U,te){const{connectable:G}=this;G._refCount++;const W=new o(U,G),Q=te.subscribe(W);return W.closed||(W.connection=G.connect()),Q}}class o extends l.L{constructor(U,te){super(U),this.connectable=te}_unsubscribe(){const{connectable:U}=this;if(!U)return void(this.connection=null);this.connectable=null;const te=U._refCount;if(te<=0)return void(this.connection=null);if(U._refCount=te-1,te>1)return void(this.connection=null);const{connection:G}=this,W=U._connection;this.connection=null,W&&(!G||W===G)&&W.unsubscribe()}}},550:(St,Se,M)=>{M.d(Se,{B:()=>oe});var l=M(6087),f=M(5234),Z=M(3405);function o(){return new Z.xQ}function oe(){return U=>(0,f.x)()((0,l.O)(o)(U))}},5488:(St,Se,M)=>{M.d(Se,{T:()=>f});var l=M(4168);function f(oe){return U=>U.lift(new Z(oe))}class Z{constructor(U){this.total=U}call(U,te){return te.subscribe(new o(U,this.total))}}class o extends l.L{constructor(U,te){super(U),this.total=te,this.count=0}_next(U){++this.count>this.total&&this.destination.next(U)}}},1125:(St,Se,M)=>{M.d(Se,{O:()=>Z});var l=M(3596),f=M(8151);function Z(...o){const oe=o[o.length-1];return(0,f.K)(oe)?(o.pop(),U=>(0,l.z)(o,U,oe)):U=>(0,l.z)(o,U)}},9204:(St,Se,M)=>{M.d(Se,{w:()=>o});var l=M(8053),f=M(1915),Z=M(8345);function o(te,G){return"function"==typeof G?W=>W.pipe(o((Q,ne)=>(0,f.D)(te(Q,ne)).pipe((0,l.U)((ie,Ne)=>G(Q,ie,ne,Ne))))):W=>W.lift(new oe(te))}class oe{constructor(G){this.project=G}call(G,W){return W.subscribe(new U(G,this.project))}}class U extends Z.Ds{constructor(G,W){super(G),this.project=W,this.index=0}_next(G){let W;const Q=this.index++;try{W=this.project(G,Q)}catch(ne){return void this.destination.error(ne)}this._innerSub(W)}_innerSub(G){const W=this.innerSubscription;W&&W.unsubscribe();const Q=new Z.IY(this),ne=this.destination;ne.add(Q),this.innerSubscription=(0,Z.ft)(G,Q),this.innerSubscription!==Q&&ne.add(this.innerSubscription)}_complete(){const{innerSubscription:G}=this;(!G||G.closed)&&super._complete(),this.unsubscribe()}_unsubscribe(){this.innerSubscription=void 0}notifyComplete(){this.innerSubscription=void 0,this.isStopped&&super._complete()}notifyNext(G){this.destination.next(G)}}},6636:(St,Se,M)=>{M.d(Se,{q:()=>o});var l=M(4168),f=M(523),Z=M(172);function o(te){return G=>0===te?(0,Z.c)():G.lift(new oe(te))}class oe{constructor(G){if(this.total=G,this.total<0)throw new f.W}call(G,W){return W.subscribe(new U(G,this.total))}}class U extends l.L{constructor(G,W){super(G),this.total=W,this.count=0}_next(G){const W=this.total,Q=++this.count;Q<=W&&(this.destination.next(G),Q===W&&(this.destination.complete(),this.unsubscribe()))}}},8805:(St,Se,M)=>{M.d(Se,{R:()=>f});var l=M(8345);function f(oe){return U=>U.lift(new Z(oe))}class Z{constructor(U){this.notifier=U}call(U,te){const G=new o(U),W=(0,l.ft)(this.notifier,new l.IY(G));return W&&!G.seenValue?(G.add(W),te.subscribe(G)):G}}class o extends l.Ds{constructor(U){super(U),this.seenValue=!1}notifyNext(){this.seenValue=!0,this.complete()}notifyComplete(){}}},1366:(St,Se,M)=>{M.d(Se,{b:()=>o});var l=M(4168),f=M(3989),Z=M(6783);function o(te,G,W){return function(ne){return ne.lift(new oe(te,G,W))}}class oe{constructor(G,W,Q){this.nextOrObserver=G,this.error=W,this.complete=Q}call(G,W){return W.subscribe(new U(G,this.nextOrObserver,this.error,this.complete))}}class U extends l.L{constructor(G,W,Q,ne){super(G),this._tapNext=f.Z,this._tapError=f.Z,this._tapComplete=f.Z,this._tapError=Q||f.Z,this._tapComplete=ne||f.Z,(0,Z.m)(W)?(this._context=this,this._tapNext=W):W&&(this._context=W,this._tapNext=W.next||f.Z,this._tapError=W.error||f.Z,this._tapComplete=W.complete||f.Z)}_next(G){try{this._tapNext.call(this._context,G)}catch(W){return void this.destination.error(W)}this.destination.next(G)}_error(G){try{this._tapError.call(this._context,G)}catch(W){return void this.destination.error(W)}this.destination.error(G)}_complete(){try{this._tapComplete.call(this._context)}catch(G){return void this.destination.error(G)}return this.destination.complete()}}},3428:(St,Se,M)=>{M.d(Se,{r:()=>Z});var l=M(5548),f=M(1346);function Z(o,oe){return new l.y(U=>{const te=new f.w;let G=0;return te.add(oe.schedule(function(){G!==o.length?(U.next(o[G++]),U.closed||te.add(this.schedule())):U.complete()})),te})}},6339:(St,Se,M)=>{M.d(Se,{o:()=>Z});var l=M(1346);class f extends l.w{constructor(oe,U){super()}schedule(oe,U=0){return this}}class Z extends f{constructor(oe,U){super(oe,U),this.scheduler=oe,this.work=U,this.pending=!1}schedule(oe,U=0){if(this.closed)return this;this.state=oe;const te=this.id,G=this.scheduler;return null!=te&&(this.id=this.recycleAsyncId(G,te,U)),this.pending=!0,this.delay=U,this.id=this.id||this.requestAsyncId(G,this.id,U),this}requestAsyncId(oe,U,te=0){return setInterval(oe.flush.bind(oe,this),te)}recycleAsyncId(oe,U,te=0){if(null!==te&&this.delay===te&&!1===this.pending)return U;clearInterval(U)}execute(oe,U){if(this.closed)return new Error("executing a cancelled action");this.pending=!1;const te=this._execute(oe,U);if(te)return te;!1===this.pending&&null!=this.id&&(this.id=this.recycleAsyncId(this.scheduler,this.id,null))}_execute(oe,U){let G,te=!1;try{this.work(oe)}catch(W){te=!0,G=!!W&&W||new Error(W)}if(te)return this.unsubscribe(),G}_unsubscribe(){const oe=this.id,U=this.scheduler,te=U.actions,G=te.indexOf(this);this.work=null,this.state=null,this.pending=!1,this.scheduler=null,-1!==G&&te.splice(G,1),null!=oe&&(this.id=this.recycleAsyncId(U,oe,null)),this.delay=null}}},5192:(St,Se,M)=>{M.d(Se,{v:()=>f});let l=(()=>{class Z{constructor(oe,U=Z.now){this.SchedulerAction=oe,this.now=U}schedule(oe,U=0,te){return new this.SchedulerAction(this,oe).schedule(te,U)}}return Z.now=()=>Date.now(),Z})();class f extends l{constructor(o,oe=l.now){super(o,()=>f.delegate&&f.delegate!==this?f.delegate.now():oe()),this.actions=[],this.active=!1,this.scheduled=void 0}schedule(o,oe=0,U){return f.delegate&&f.delegate!==this?f.delegate.schedule(o,oe,U):super.schedule(o,oe,U)}flush(o){const{actions:oe}=this;if(this.active)return void oe.push(o);let U;this.active=!0;do{if(U=o.execute(o.state,o.delay))break}while(o=oe.shift());if(this.active=!1,U){for(;o=oe.shift();)o.unsubscribe();throw U}}}},8548:(St,Se,M)=>{M.d(Se,{Z:()=>oe});var l=M(6339),Z=M(5192);const oe=new class extends Z.v{flush(G){this.active=!0,this.scheduled=void 0;const{actions:W}=this;let Q,ne=-1,ie=W.length;G=G||W.shift();do{if(Q=G.execute(G.state,G.delay))break}while(++ne<ie&&(G=W.shift()));if(this.active=!1,Q){for(;++ne<ie&&(G=W.shift());)G.unsubscribe();throw Q}}}(class extends l.o{constructor(G,W){super(G,W),this.scheduler=G,this.work=W}requestAsyncId(G,W,Q=0){return null!==Q&&Q>0?super.requestAsyncId(G,W,Q):(G.actions.push(this),G.scheduled||(G.scheduled=requestAnimationFrame(()=>G.flush(null))))}recycleAsyncId(G,W,Q=0){if(null!==Q&&Q>0||null===Q&&this.delay>0)return super.recycleAsyncId(G,W,Q);0===G.actions.length&&(cancelAnimationFrame(W),G.scheduled=void 0)}})},2907:(St,Se,M)=>{M.d(Se,{E:()=>ne});let l=1;const f=Promise.resolve(),Z={};function o(Ne){return Ne in Z&&(delete Z[Ne],!0)}const oe={setImmediate(Ne){const qe=l++;return Z[qe]=!0,f.then(()=>o(qe)&&Ne()),qe},clearImmediate(Ne){o(Ne)}};var te=M(6339),W=M(5192);const ne=new class extends W.v{flush(qe){this.active=!0,this.scheduled=void 0;const{actions:it}=this;let Le,dt=-1,Qe=it.length;qe=qe||it.shift();do{if(Le=qe.execute(qe.state,qe.delay))break}while(++dt<Qe&&(qe=it.shift()));if(this.active=!1,Le){for(;++dt<Qe&&(qe=it.shift());)qe.unsubscribe();throw Le}}}(class extends te.o{constructor(qe,it){super(qe,it),this.scheduler=qe,this.work=it}requestAsyncId(qe,it,Le=0){return null!==Le&&Le>0?super.requestAsyncId(qe,it,Le):(qe.actions.push(this),qe.scheduled||(qe.scheduled=oe.setImmediate(qe.flush.bind(qe,null))))}recycleAsyncId(qe,it,Le=0){if(null!==Le&&Le>0||null===Le&&this.delay>0)return super.recycleAsyncId(qe,it,Le);0===qe.actions.length&&(oe.clearImmediate(it),qe.scheduled=void 0)}})},8178:(St,Se,M)=>{M.d(Se,{P:()=>o});var l=M(6339);const o=new(M(5192).v)(l.o)},4352:(St,Se,M)=>{M.d(Se,{hZ:()=>f});const f="function"==typeof Symbol&&Symbol.iterator?Symbol.iterator:"@@iterator"},1359:(St,Se,M)=>{M.d(Se,{L:()=>l});const l="function"==typeof Symbol&&Symbol.observable||"@@observable"},2926:(St,Se,M)=>{M.d(Se,{b:()=>l});const l="function"==typeof Symbol?Symbol("rxSubscriber"):"@@rxSubscriber_"+Math.random()},523:(St,Se,M)=>{M.d(Se,{W:()=>f});const f=(()=>{function Z(){return Error.call(this),this.message="argument out of range",this.name="ArgumentOutOfRangeError",this}return Z.prototype=Object.create(Error.prototype),Z})()},2108:(St,Se,M)=>{M.d(Se,{N:()=>f});const f=(()=>{function Z(){return Error.call(this),this.message="object unsubscribed",this.name="ObjectUnsubscribedError",this}return Z.prototype=Object.create(Error.prototype),Z})()},9887:(St,Se,M)=>{function l(f){setTimeout(()=>{throw f},0)}M.d(Se,{z:()=>l})},7255:(St,Se,M)=>{function l(f){return f}M.d(Se,{y:()=>l})},5894:(St,Se,M)=>{M.d(Se,{k:()=>l});const l=Array.isArray||(f=>f&&"number"==typeof f.length)},1265:(St,Se,M)=>{M.d(Se,{z:()=>l});const l=f=>f&&"number"==typeof f.length&&"function"!=typeof f},5747:(St,Se,M)=>{function l(f){return f instanceof Date&&!isNaN(+f)}M.d(Se,{J:()=>l})},6783:(St,Se,M)=>{function l(f){return"function"==typeof f}M.d(Se,{m:()=>l})},7879:(St,Se,M)=>{function l(f){return null!==f&&"object"==typeof f}M.d(Se,{K:()=>l})},847:(St,Se,M)=>{function l(f){return!!f&&"function"!=typeof f.subscribe&&"function"==typeof f.then}M.d(Se,{t:()=>l})},8151:(St,Se,M)=>{function l(f){return f&&"function"==typeof f.schedule}M.d(Se,{K:()=>l})},3989:(St,Se,M)=>{function l(){}M.d(Se,{Z:()=>l})},4651:(St,Se,M)=>{M.d(Se,{s:()=>ne});var l=M(8769),f=M(9887),o=M(4352),U=M(1359),G=M(1265),W=M(847),Q=M(7879);const ne=ie=>{if(ie&&"function"==typeof ie[U.L])return(ie=>Ne=>{const qe=ie[U.L]();if("function"!=typeof qe.subscribe)throw new TypeError("Provided object does not correctly implement Symbol.observable");return qe.subscribe(Ne)})(ie);if((0,G.z)(ie))return(0,l.V)(ie);if((0,W.t)(ie))return(ie=>Ne=>(ie.then(qe=>{Ne.closed||(Ne.next(qe),Ne.complete())},qe=>Ne.error(qe)).then(null,f.z),Ne))(ie);if(ie&&"function"==typeof ie[o.hZ])return(ie=>Ne=>{const qe=ie[o.hZ]();for(;;){let it;try{it=qe.next()}catch(Le){return Ne.error(Le),Ne}if(it.done){Ne.complete();break}if(Ne.next(it.value),Ne.closed)break}return"function"==typeof qe.return&&Ne.add(()=>{qe.return&&qe.return()}),Ne})(ie);{const qe=`You provided ${(0,Q.K)(ie)?"an invalid object":`'${ie}'`} where a stream was expected. You can provide an Observable, Promise, Array, or Iterable.`;throw new TypeError(qe)}}},8769:(St,Se,M)=>{M.d(Se,{V:()=>l});const l=f=>Z=>{for(let o=0,oe=f.length;o<oe&&!Z.closed;o++)Z.next(f[o]);Z.complete()}},7974:(St,Se,M)=>{M.d(Se,{D:()=>oe});var l=M(4168);class f extends l.L{constructor(te,G,W){super(),this.parent=te,this.outerValue=G,this.outerIndex=W,this.index=0}_next(te){this.parent.notifyNext(this.outerValue,te,this.outerIndex,this.index++,this)}_error(te){this.parent.notifyError(te,this),this.unsubscribe()}_complete(){this.parent.notifyComplete(this),this.unsubscribe()}}var Z=M(4651),o=M(5548);function oe(U,te,G,W,Q=new f(U,G,W)){if(!Q.closed)return te instanceof o.y?te.subscribe(Q):(0,Z.s)(te)(Q)}},1286:(St,Se,M)=>{M.d(Se,{$:()=>oe});var l=M(4099),f=M(3668),Z=M(1086),o=M(8452);let oe=(()=>{class U{constructor(G,W){this._router=G,this.toaster=W,this._roles$=new l.X([])}login(G){this._router.navigate([G])}logout(){this._roles$.next([]),localStorage.removeItem("Roles"),this._router.navigate([""])}setRoles(G){localStorage.setItem("Roles",JSON.stringify(G)),this._roles$.next(G)}getRoles(){let G=this._roles$.getValue();if(0==G.length){let W=localStorage.getItem("Roles");G=JSON.parse(W),this._roles$.next(G)}return G}isAuthentication(){return null!=localStorage.getItem("Token")&&!this.isTokenExpired()}isTokenExpired(){return!(new Date(localStorage.getItem("ExpireDate")).getTime()-(new Date).getTime()>0)}saveLoginForm(G,W){localStorage.setItem("Domain",G),localStorage.setItem("Username",W)}getUsername(){return localStorage.getItem("Username")}getDomain(){return localStorage.getItem("Domain")}isLoginFormExist(){let G=this.getDomain(),W=this.getUsername(),Q=!1;return G&&W&&(Q=!0),Q}}return U.\u0275fac=function(G){return new(G||U)(f.LFG(Z.F0),f.LFG(o._W))},U.\u0275prov=f.Yz7({token:U,factory:U.\u0275fac,providedIn:"root"}),U})()},8930:(St,Se,M)=>{M.d(Se,{O:()=>it});var l=M(5548),f=M(4522),Z=M(8178);const oe=(()=>{function Le(){return Error.call(this),this.message="Timeout has occurred",this.name="TimeoutError",this}return Le.prototype=Object.create(Error.prototype),Le})();var U=M(5747),te=M(8345);class W{constructor(dt,Qe,Ge,Nt){this.waitFor=dt,this.absoluteTimeout=Qe,this.withObservable=Ge,this.scheduler=Nt}call(dt,Qe){return Qe.subscribe(new Q(dt,this.absoluteTimeout,this.waitFor,this.withObservable,this.scheduler))}}class Q extends te.Ds{constructor(dt,Qe,Ge,Nt,rt){super(dt),this.absoluteTimeout=Qe,this.waitFor=Ge,this.withObservable=Nt,this.scheduler=rt,this.scheduleTimeout()}static dispatchTimeout(dt){const{withObservable:Qe}=dt;dt._unsubscribeAndRecycle(),dt.add((0,te.ft)(Qe,new te.IY(dt)))}scheduleTimeout(){const{action:dt}=this;dt?this.action=dt.schedule(this,this.waitFor):this.add(this.action=this.scheduler.schedule(Q.dispatchTimeout,this.waitFor,this))}_next(dt){this.absoluteTimeout||this.scheduleTimeout(),super._next(dt)}_unsubscribe(){this.action=void 0,this.scheduler=null,this.withObservable=null}}var ne=M(540);function ie(Le,dt=Z.P){return function(Le,dt,Qe=Z.P){return Ge=>{let Nt=(0,U.J)(Le),rt=Nt?+Le-Qe.now():Math.abs(Le);return Ge.lift(new W(rt,Nt,dt,Qe))}}(Le,(0,ne._)(new oe),dt)}var Ne=M(3668),qe=M(8452);let it=(()=>{class Le{constructor(Qe,Ge){this.http=Qe,this.toastr=Ge}postFormData(Qe,Ge){return new l.y(Nt=>{let rt=localStorage.getItem("Token"),ht={headers:new f.WM({Authorization:"Bearer "+rt})};this.http.post(Qe,Ge,ht).pipe(ie(1e5)).subscribe(at=>{Nt.next(at),Nt.complete()},at=>{if(200==at.status)Nt.next(at.error.text),Nt.complete();else{let wt=this.errorMessageHandling(at);this.toastr.error(wt.message,wt.header),Nt.error(at)}})})}post(Qe,Ge,Nt=1e5){return new l.y(rt=>{let Ce=localStorage.getItem("Token"),ht=new f.WM({"Content-Type":"application/json","Cache-Control":"no-cache"});Ce&&(ht=new f.WM({"Content-Type":"application/json","Cache-Control":"no-cache",Authorization:"Bearer "+Ce})),this.http.post(Qe,Ge,{headers:ht}).pipe(ie(Nt)).subscribe(wt=>{rt.next(wt),rt.complete()},wt=>{if(200==wt.status)rt.next(wt.error.text),rt.complete();else{if(!this.unauthorizedErrorHandling(wt)){let Yt=this.errorMessageHandling(wt);this.toastr.error(""!=Yt.message?Yt.message:"An unknown error has occured!",Yt.header)}rt.error(wt)}})})}unauthorizedErrorHandling(Qe){let Ge=!1;return 401==Qe.status&&(this.toastr.error("We can't log you in because of authenctication error","Unauthorized"),Ge=!0),Ge}errorMessageHandling(Qe){let Ge="API Error",Nt="Exception Message";return Qe.error?(Ge="API Error - "+Qe.status,Qe.error.Message&&(Nt=Qe.error.Message)):Qe.message&&(Ge="API Error - "+Qe.name,Nt=Qe.message),{header:Ge,message:Nt}}}return Le.\u0275fac=function(Qe){return new(Qe||Le)(Ne.LFG(f.eN),Ne.LFG(qe._W))},Le.\u0275prov=Ne.Yz7({token:Le,factory:Le.\u0275fac,providedIn:"root"}),Le})()},1273:(St,Se,M)=>{M.d(Se,{U:()=>Z});var l=M(4099),f=M(3668);let Z=(()=>{class o{constructor(){this.store=new l.X({ID:null,billNumber:null,outletName:null})}getState(){return this.store.asObservable()}setState(U){this.store.next(U)}}return o.\u0275fac=function(U){return new(U||o)},o.\u0275prov=f.Yz7({token:o,factory:o.\u0275fac,providedIn:"root"}),o})()},2193:(St,Se,M)=>{M.d(Se,{O:()=>f});var l=M(7902);class f{constructor(){this.title="New Modal",this.titleExtra="",this.okText="Ok (F2)",this.cancelText="Cancel",this.hideFooter=!1,this.hideCancel=!1,this.hideOk=!1,this.hideClose=!1,this.eMoney=!1,this.headerType=l.n.Success,this.validated=!0,this.customWidth="initial",this.bodyScrollable=!1,this.hideScrollbar=!1,this.disableKeyup=!1,this.hideMoreButton=!1}}},9090:(St,Se,M)=>{M.d(Se,{M:()=>Qe});var l=M(3668),f=M(7902),Z=M(2193),o=M(6019),oe=M(5304);function U(Ge,Nt){if(1&Ge){const rt=l.EpF();l.TgZ(0,"div",8),l.NdJ("click",function(){return l.CHM(rt),l.oxw().onBack.emit()}),l.TgZ(1,"a",9),l._UZ(2,"i",10),l.qZA(),l.qZA()}}function te(Ge,Nt){if(1&Ge){const rt=l.EpF();l.TgZ(0,"div"),l.TgZ(1,"a",11),l.NdJ("click",function(){return l.CHM(rt),l.oxw().onCancel.emit()}),l._UZ(2,"i",12),l.qZA(),l.qZA()}}function G(Ge,Nt){1&Ge&&l.Hsn(0,2,["*ngIf","more"])}function W(Ge,Nt){if(1&Ge){const rt=l.EpF();l.TgZ(0,"a",17),l.NdJ("click",function(){l.CHM(rt);const ht=l.oxw(2);return ht.more=!ht.more}),l._uU(1,"More"),l.qZA()}}function Q(Ge,Nt){if(1&Ge){const rt=l.EpF();l.TgZ(0,"a",18),l.NdJ("click",function(){return l.CHM(rt),l.oxw(2).onCancel.emit()}),l._uU(1),l.qZA()}if(2&Ge){const rt=l.oxw(2);l.xp6(1),l.hij(" ",null!=rt.config&&rt.config.cancelText?null==rt.config?null:rt.config.cancelText:"Cancel","")}}function ne(Ge,Nt){if(1&Ge){const rt=l.EpF();l.TgZ(0,"button",19),l.NdJ("click",function(){return l.CHM(rt),l.oxw(2).onOk.emit()}),l._uU(1),l.qZA()}if(2&Ge){const rt=l.oxw(2);l.Q6J("disabled",!(null!=rt.config&&rt.config.validated)),l.xp6(1),l.hij(" ",null!=rt.config&&rt.config.okText?null==rt.config?null:rt.config.okText:"Ok (F2)"," ")}}function ie(Ge,Nt){if(1&Ge&&(l.TgZ(0,"mat-dialog-actions",13),l.YNc(1,W,2,0,"a",14),l.Hsn(2,3),l.YNc(3,Q,2,1,"a",15),l.YNc(4,ne,2,2,"button",16),l.qZA()),2&Ge){const rt=l.oxw();l.xp6(1),l.Q6J("ngIf",!(null!=rt.config&&rt.config.hideMoreButton)),l.xp6(2),l.Q6J("ngIf",!(null!=rt.config&&rt.config.hideCancel)),l.xp6(1),l.Q6J("ngIf",!(null!=rt.config&&rt.config.hideOk))}}const Ne=[[["header"]],[["content"]],[["more-content"]],[["footer"]]],qe=function(Ge,Nt){return{bodyScrollable:Ge,hideScrollbar:Nt}},it=function(Ge){return{"mx-auto":Ge}},Le=function(Ge){return{"show-footer":Ge}},dt=["header","content","more-content","footer"];let Qe=(()=>{class Ge{constructor(){this.onOk=new l.vpe,this.onCancel=new l.vpe,this.onClose=new l.vpe,this.onBack=new l.vpe,this.onShowMore=new l.vpe,this.term="",this.background="",this.more=!1}ngOnInit(){switch(null==this.config&&(this.config=new Z.O),this.config.headerType){case f.n.Success:this.background="bg-success";break;case f.n.Warning:case f.n.Info:this.background="bg-warning";break;case f.n.Error:this.background="bg-danger";break;default:this.background=""}}onKeyup(rt){this.config&&(this.config.disableKeyup||"F2"==rt.code&&this.onOk.emit())}}return Ge.\u0275fac=function(rt){return new(rt||Ge)},Ge.\u0275cmp=l.Xpm({type:Ge,selectors:[["modal-material"]],inputs:{config:"config"},outputs:{onOk:"onOk",onCancel:"onCancel",onClose:"onClose",onBack:"onBack",onShowMore:"onShowMore"},ngContentSelectors:dt,decls:12,vars:20,consts:[[1,"modal-material","d-flex","align-items-start","flex-column","position-relative","maxHeight",3,"ngClass","keyup"],["mat-dialog-title",""],["class","back-button position-absolute pointer",3,"click",4,"ngIf"],[1,"d-flex","flex-row",3,"ngClass"],[1,"font-weight-normal"],[4,"ngIf"],[1,"modal-body","w-100",3,"ngClass"],["class","w-100 py-7 border-top d-flex justify-content-end",4,"ngIf"],[1,"back-button","position-absolute","pointer",3,"click"],[1,"btn","back-button"],[1,"fas","fa-arrow-left"],[1,"btn-light-blue","btn-sm","ng-scope","pointer","btn-close",3,"click"],[1,"fa","fa-times","fa-lg","text-primary"],[1,"w-100","py-7","border-top","d-flex","justify-content-end"],["class","more clearfix",3,"click",4,"ngIf"],["class","btn btn-light-blue text-primary btn-lg font-weight-bold mx-3",3,"click",4,"ngIf"],["class","btn btn-light-blue mr-6 text-primary btn-lg font-weight-bold mx-3",3,"disabled","click",4,"ngIf"],[1,"more","clearfix",3,"click"],[1,"btn","btn-light-blue","text-primary","btn-lg","font-weight-bold","mx-3",3,"click"],[1,"btn","btn-light-blue","mr-6","text-primary","btn-lg","font-weight-bold","mx-3",3,"disabled","click"]],template:function(rt,Ce){1&rt&&(l.F$t(Ne),l.TgZ(0,"div",0),l.NdJ("keyup",function(at){return Ce.onKeyup(at)}),l.TgZ(1,"div",1),l.YNc(2,U,3,0,"div",2),l.TgZ(3,"div",3),l.TgZ(4,"h4",4),l._uU(5),l.qZA(),l.Hsn(6),l.qZA(),l.YNc(7,te,3,0,"div",5),l.qZA(),l.TgZ(8,"mat-dialog-content",6),l.Hsn(9,1),l.YNc(10,G,1,0,"ng-content",5),l.qZA(),l.YNc(11,ie,5,3,"mat-dialog-actions",7),l.qZA()),2&rt&&(l.Udp("width",null==Ce.config?null:Ce.config.customWidth),l.Q6J("ngClass",l.WLB(13,qe,null==Ce.config?null:Ce.config.bodyScrollable,null==Ce.config?null:Ce.config.hideScrollbar)),l.xp6(1),l.Gre("d-flex w-100 justify-content-between modal-header position-relative ",Ce.background,""),l.xp6(1),l.Q6J("ngIf",null==Ce.config?null:Ce.config.eMoney),l.xp6(1),l.Q6J("ngClass",l.VKq(16,it,null==Ce.config?null:Ce.config.eMoney)),l.xp6(2),l.Oqu(null==Ce.config?null:Ce.config.title),l.xp6(2),l.Q6J("ngIf",!(null!=Ce.config&&Ce.config.hideClose)),l.xp6(1),l.Q6J("ngClass",l.VKq(18,Le,!(null!=Ce.config&&Ce.config.hideFooter))),l.xp6(2),l.Q6J("ngIf",Ce.more),l.xp6(1),l.Q6J("ngIf",!(null!=Ce.config&&Ce.config.hideFooter)))},directives:[o.mk,oe.uh,o.O5,oe.xY,oe.H8],styles:["mat-dialog-actions[_ngcontent-%COMP%]{bottom:15px;margin-bottom:0}mat-dialog-actions[_ngcontent-%COMP%] a[_ngcontent-%COMP%], mat-dialog-actions[_ngcontent-%COMP%] button[_ngcontent-%COMP%]{padding:15px!important;margin-right:12px}mat-dialog-actions[_ngcontent-%COMP%] .more[_ngcontent-%COMP%]{margin-right:auto;margin-top:-3.8rem;padding-top:.2rem!important;margin-left:1rem}.back-button[_ngcontent-%COMP%]{top:5px;left:0px}.btn-close[_ngcontent-%COMP%]{padding:.4rem .5rem}.mat-dialog-content[_ngcontent-%COMP%]{margin:auto;padding-bottom:12px}h4[_ngcontent-%COMP%]{font-size:1rem;margin-bottom:0;margin-top:7px}"]}),Ge})()},7902:(St,Se,M)=>{M.d(Se,{n:()=>l});var l=(()=>{return(f=l||(l={})).Success="Success",f.Info="Info",f.Warning="Warning",f.Error="Error",l;var f})()},8972:(St,Se,M)=>{M.d(Se,{m:()=>Nc});var l=M(6019),f=M(9010),Z=M(5496),o=M(3668),oe=M(5548),U=M(172),te=M(2411),G=M(3405),W=M(9506),Q=M(265),ne=M(5894),ie=M(5433),Ne=M(5330),qe=M(7974);class Le{call(g,s){return s.subscribe(new dt(g))}}class dt extends Ne.L{constructor(g){super(g),this.hasFirst=!1,this.observables=[],this.subscriptions=[]}_next(g){this.observables.push(g)}_complete(){const g=this.observables,s=g.length;if(0===s)this.destination.complete();else{for(let u=0;u<s&&!this.hasFirst;u++){const N=(0,qe.D)(this,g[u],void 0,u);this.subscriptions&&this.subscriptions.push(N),this.add(N)}this.observables=null}}notifyNext(g,s,u){if(!this.hasFirst){this.hasFirst=!0;for(let b=0;b<this.subscriptions.length;b++)if(b!==u){let N=this.subscriptions[b];N.unsubscribe(),this.remove(N)}this.subscriptions=null}this.destination.next(s)}}M(4099),M(2668),M(7689);var rt=M(4168),Ce=M(4352),ht=M(8345);function at(...c){const g=c[c.length-1];return"function"==typeof g&&c.pop(),(0,ie.n)(c,void 0).lift(new wt(g))}class wt{constructor(g){this.resultSelector=g}call(g,s){return s.subscribe(new xt(g,this.resultSelector))}}class xt extends rt.L{constructor(g,s,u=Object.create(null)){super(g),this.resultSelector=s,this.iterators=[],this.active=0,this.resultSelector="function"==typeof s?s:void 0}_next(g){const s=this.iterators;(0,ne.k)(g)?s.push(new Kt(g)):s.push("function"==typeof g[Ce.hZ]?new Yt(g[Ce.hZ]()):new Zt(this.destination,this,g))}_complete(){const g=this.iterators,s=g.length;if(this.unsubscribe(),0!==s){this.active=s;for(let u=0;u<s;u++){let b=g[u];b.stillUnsubscribed?this.destination.add(b.subscribe()):this.active--}}else this.destination.complete()}notifyInactive(){this.active--,0===this.active&&this.destination.complete()}checkIterators(){const g=this.iterators,s=g.length,u=this.destination;for(let ve=0;ve<s;ve++){let Re=g[ve];if("function"==typeof Re.hasValue&&!Re.hasValue())return}let b=!1;const N=[];for(let ve=0;ve<s;ve++){let Re=g[ve],pt=Re.next();if(Re.hasCompleted()&&(b=!0),pt.done)return void u.complete();N.push(pt.value)}this.resultSelector?this._tryresultSelector(N):u.next(N),b&&u.complete()}_tryresultSelector(g){let s;try{s=this.resultSelector.apply(this,g)}catch(u){return void this.destination.error(u)}this.destination.next(s)}}class Yt{constructor(g){this.iterator=g,this.nextResult=g.next()}hasValue(){return!0}next(){const g=this.nextResult;return this.nextResult=this.iterator.next(),g}hasCompleted(){const g=this.nextResult;return Boolean(g&&g.done)}}class Kt{constructor(g){this.array=g,this.index=0,this.length=0,this.length=g.length}[Ce.hZ](){return this}next(g){const s=this.index++;return s<this.length?{value:this.array[s],done:!1}:{value:null,done:!0}}hasValue(){return this.array.length>this.index}hasCompleted(){return this.array.length===this.index}}class Zt extends ht.Ds{constructor(g,s,u){super(g),this.parent=s,this.observable=u,this.stillUnsubscribed=!0,this.buffer=[],this.isComplete=!1}[Ce.hZ](){return this}next(){const g=this.buffer;return 0===g.length&&this.isComplete?{value:null,done:!0}:{value:g.shift(),done:!1}}hasValue(){return this.buffer.length>0}hasCompleted(){return 0===this.buffer.length&&this.isComplete}notifyComplete(){this.buffer.length>0?(this.isComplete=!0,this.parent.notifyInactive()):this.destination.complete()}notifyNext(g){this.buffer.push(g),this.parent.checkIterators()}subscribe(){return(0,ht.ft)(this.observable,new ht.IY(this))}}M(8526);var on=M(3596),Ft=M(8805),Ye=M(8735),Dt=M(6636),Rt=M(8053),sn=(M(1125),M(5389),M(9204)),We=M(1366);function vt(...c){return g=>{let s;return"function"==typeof c[c.length-1]&&(s=c.pop()),g.lift(new Ee(c,s))}}class Ee{constructor(g,s){this.observables=g,this.project=s}call(g,s){return s.subscribe(new Fe(g,this.observables,this.project))}}class Fe extends Ne.L{constructor(g,s,u){super(g),this.observables=s,this.project=u,this.toRespond=[];const b=s.length;this.values=new Array(b);for(let N=0;N<b;N++)this.toRespond.push(N);for(let N=0;N<b;N++)this.add((0,qe.D)(this,s[N],void 0,N))}notifyNext(g,s,u){this.values[u]=s;const b=this.toRespond;if(b.length>0){const N=b.indexOf(u);-1!==N&&b.splice(N,1)}}notifyComplete(){}_next(g){if(0===this.toRespond.length){const s=[g,...this.values];this.project?this._tryProject(s):this.destination.next(s)}}_tryProject(g){let s;try{s=this.project.apply(this,g)}catch(u){return void this.destination.error(u)}this.destination.next(s)}}M(2187),M(4421),M(5488),M(550);const et=["*"],H=["dialog"];function ir(c){return null!=c}function Zi(c){return(c||document.body).getBoundingClientRect()}"undefined"!=typeof Element&&!Element.prototype.closest&&(Element.prototype.matches||(Element.prototype.matches=Element.prototype.msMatchesSelector||Element.prototype.webkitMatchesSelector),Element.prototype.closest=function(c){let g=this;if(!document.documentElement.contains(g))return null;do{if(g.matches(c))return g;g=g.parentElement||g.parentNode}while(null!==g&&1===g.nodeType);return null});const Wr={animation:!0,transitionTimerDelayMs:5};let ci=(()=>{class c{constructor(){this.animation=Wr.animation}}return c.\u0275fac=function(s){return new(s||c)},c.\u0275prov=o.Yz7({factory:function(){return new c},token:c,providedIn:"root"}),c})();const sr=()=>{},{transitionTimerDelayMs:ui}=Wr,Rr=new Map,hi=(c,g,s,u)=>{let b=u.context||{};const N=Rr.get(g);if(N)switch(u.runningTransition){case"continue":return U.E;case"stop":c.run(()=>N.transition$.complete()),b=Object.assign(N.context,b),Rr.delete(g)}const ve=s(g,u.animation,b)||sr;if(!u.animation||"none"===window.getComputedStyle(g).transitionProperty)return c.run(()=>ve()),(0,te.of)(void 0).pipe(function(c){return g=>new oe.y(s=>g.subscribe(ve=>c.run(()=>s.next(ve)),ve=>c.run(()=>s.error(ve)),()=>c.run(()=>s.complete())))}(c));const Re=new G.xQ,pt=new G.xQ,Mt=Re.pipe(function(...c){return g=>(0,on.z)(g,(0,te.of)(...c))}(!0));Rr.set(g,{transition$:Re,complete:()=>{pt.next(),pt.complete()},context:b});const Ht=function(c){const{transitionDelay:g,transitionDuration:s}=window.getComputedStyle(c);return 1e3*(parseFloat(g)+parseFloat(s))}(g);return c.runOutsideAngular(()=>{const dn=(0,W.R)(g,"transitionend").pipe((0,Ft.R)(Mt),(0,Ye.h)(({target:En})=>En===g));(function(...c){if(1===c.length){if(!(0,ne.k)(c[0]))return c[0];c=c[0]}return(0,ie.n)(c,void 0).lift(new Le)})((0,Q.H)(Ht+ui).pipe((0,Ft.R)(Mt)),dn,pt).pipe((0,Ft.R)(Mt)).subscribe(()=>{Rr.delete(g),c.run(()=>{ve(),Re.next(),Re.complete()})})}),Re.asObservable()};var In=(()=>{return(c=In||(In={}))[c.Tab=9]="Tab",c[c.Enter=13]="Enter",c[c.Escape=27]="Escape",c[c.Space=32]="Space",c[c.PageUp=33]="PageUp",c[c.PageDown=34]="PageDown",c[c.End=35]="End",c[c.Home=36]="Home",c[c.ArrowLeft=37]="ArrowLeft",c[c.ArrowUp=38]="ArrowUp",c[c.ArrowRight=39]="ArrowRight",c[c.ArrowDown=40]="ArrowDown",In;var c})();"undefined"!=typeof navigator&&navigator.userAgent&&(/iPad|iPhone|iPod/.test(navigator.userAgent)||/Macintosh/.test(navigator.userAgent)&&navigator.maxTouchPoints&&navigator.maxTouchPoints>2||/Android/.test(navigator.userAgent));const yo=["a[href]","button:not([disabled])",'input:not([disabled]):not([type="hidden"])',"select:not([disabled])","textarea:not([disabled])","[contenteditable]",'[tabindex]:not([tabindex="-1"])'].join(", ");function eo(c){const g=Array.from(c.querySelectorAll(yo)).filter(s=>-1!==s.tabIndex);return[g[0],g[g.length-1]]}new class{getAllStyles(g){return window.getComputedStyle(g)}getStyle(g,s){return this.getAllStyles(g)[s]}isStaticPositioned(g){return"static"===(this.getStyle(g,"position")||"static")}offsetParent(g){let s=g.offsetParent||document.documentElement;for(;s&&s!==document.documentElement&&this.isStaticPositioned(s);)s=s.offsetParent;return s||document.documentElement}position(g,s=!0){let u,b={width:0,height:0,top:0,bottom:0,left:0,right:0};if("fixed"===this.getStyle(g,"position"))u=g.getBoundingClientRect(),u={top:u.top,bottom:u.bottom,left:u.left,right:u.right,height:u.height,width:u.width};else{const N=this.offsetParent(g);u=this.offset(g,!1),N!==document.documentElement&&(b=this.offset(N,!1)),b.top+=N.clientTop,b.left+=N.clientLeft}return u.top-=b.top,u.bottom-=b.top,u.left-=b.left,u.right-=b.left,s&&(u.top=Math.round(u.top),u.bottom=Math.round(u.bottom),u.left=Math.round(u.left),u.right=Math.round(u.right)),u}offset(g,s=!0){const u=g.getBoundingClientRect(),b_top=window.pageYOffset-document.documentElement.clientTop,b_left=window.pageXOffset-document.documentElement.clientLeft;let N={height:u.height||g.offsetHeight,width:u.width||g.offsetWidth,top:u.top+b_top,bottom:u.bottom+b_top,left:u.left+b_left,right:u.right+b_left};return s&&(N.height=Math.round(N.height),N.width=Math.round(N.width),N.top=Math.round(N.top),N.bottom=Math.round(N.bottom),N.left=Math.round(N.left),N.right=Math.round(N.right)),N}positionElements(g,s,u,b){const[N="top",ve="center"]=u.split("-"),Re=b?this.offset(g,!1):this.position(g,!1),pt=this.getAllStyles(s),Mt=parseFloat(pt.marginTop),Ht=parseFloat(pt.marginBottom),dn=parseFloat(pt.marginLeft),rn=parseFloat(pt.marginRight);let En=0,Kn=0;switch(N){case"top":En=Re.top-(s.offsetHeight+Mt+Ht);break;case"bottom":En=Re.top+Re.height;break;case"left":Kn=Re.left-(s.offsetWidth+dn+rn);break;case"right":Kn=Re.left+Re.width}switch(ve){case"top":En=Re.top;break;case"bottom":En=Re.top+Re.height-s.offsetHeight;break;case"left":Kn=Re.left;break;case"right":Kn=Re.left+Re.width-s.offsetWidth;break;case"center":"top"===N||"bottom"===N?Kn=Re.left+Re.width/2-s.offsetWidth/2:En=Re.top+Re.height/2-s.offsetHeight/2}s.style.transform=`translate(${Math.round(Kn)}px, ${Math.round(En)}px)`;const ni=s.getBoundingClientRect(),Bi=document.documentElement,gi=window.innerHeight||Bi.clientHeight,Ki=window.innerWidth||Bi.clientWidth;return ni.left>=0&&ni.top>=0&&ni.right<=Ki&&ni.bottom<=gi}},new Date(1882,10,12),new Date(2174,10,25);let jo=(()=>{class c{constructor(s){this._ngbConfig=s,this.backdrop=!0,this.keyboard=!0}get animation(){return void 0===this._animation?this._ngbConfig.animation:this._animation}set animation(s){this._animation=s}}return c.\u0275fac=function(s){return new(s||c)(o.LFG(ci))},c.\u0275prov=o.Yz7({factory:function(){return new c(o.LFG(ci))},token:c,providedIn:"root"}),c})();class So{constructor(g,s,u){this.nodes=g,this.viewRef=s,this.componentRef=u}}const hl=()=>{};let dc=(()=>{class c{constructor(s){this._document=s}compensate(){const s=this._getWidth();return this._isPresent(s)?this._adjustBody(s):hl}_adjustBody(s){const u=this._document.body,b=u.style.paddingRight,N=parseFloat(window.getComputedStyle(u)["padding-right"]);return u.style["padding-right"]=`${N+s}px`,()=>u.style["padding-right"]=b}_isPresent(s){const u=this._document.body.getBoundingClientRect();return window.innerWidth-(u.left+u.right)>=s-.1*s}_getWidth(){const s=this._document.createElement("div");s.className="modal-scrollbar-measure";const u=this._document.body;u.appendChild(s);const b=s.getBoundingClientRect().width-s.clientWidth;return u.removeChild(s),b}}return c.\u0275fac=function(s){return new(s||c)(o.LFG(l.K0))},c.\u0275prov=o.Yz7({factory:function(){return new c(o.LFG(l.K0))},token:c,providedIn:"root"}),c})(),Au=(()=>{class c{constructor(s,u){this._el=s,this._zone=u}ngOnInit(){this._zone.onStable.asObservable().pipe((0,Dt.q)(1)).subscribe(()=>{hi(this._zone,this._el.nativeElement,(s,u)=>{u&&Zi(s),s.classList.add("show")},{animation:this.animation,runningTransition:"continue"})})}hide(){return hi(this._zone,this._el.nativeElement,({classList:s})=>s.remove("show"),{animation:this.animation,runningTransition:"stop"})}}return c.\u0275fac=function(s){return new(s||c)(o.Y36(o.SBq),o.Y36(o.R0b))},c.\u0275cmp=o.Xpm({type:c,selectors:[["ngb-modal-backdrop"]],hostAttrs:[2,"z-index","1050"],hostVars:6,hostBindings:function(s,u){2&s&&(o.Tol("modal-backdrop"+(u.backdropClass?" "+u.backdropClass:"")),o.ekj("show",!u.animation)("fade",u.animation))},inputs:{animation:"animation",backdropClass:"backdropClass"},decls:0,vars:0,template:function(s,u){},encapsulation:2}),c})();class hc{close(g){}dismiss(g){}}class fl{constructor(g,s,u,b){this._windowCmptRef=g,this._contentRef=s,this._backdropCmptRef=u,this._beforeDismiss=b,this._closed=new G.xQ,this._dismissed=new G.xQ,this._hidden=new G.xQ,g.instance.dismissEvent.subscribe(N=>{this.dismiss(N)}),this.result=new Promise((N,ve)=>{this._resolve=N,this._reject=ve}),this.result.then(null,()=>{})}get componentInstance(){if(this._contentRef&&this._contentRef.componentRef)return this._contentRef.componentRef.instance}get closed(){return this._closed.asObservable().pipe((0,Ft.R)(this._hidden))}get dismissed(){return this._dismissed.asObservable().pipe((0,Ft.R)(this._hidden))}get hidden(){return this._hidden.asObservable()}get shown(){return this._windowCmptRef.instance.shown.asObservable()}close(g){this._windowCmptRef&&(this._closed.next(g),this._resolve(g),this._removeModalElements())}_dismiss(g){this._dismissed.next(g),this._reject(g),this._removeModalElements()}dismiss(g){if(this._windowCmptRef)if(this._beforeDismiss){const s=this._beforeDismiss();s&&s.then?s.then(u=>{!1!==u&&this._dismiss(g)},()=>{}):!1!==s&&this._dismiss(g)}else this._dismiss(g)}_removeModalElements(){const g=this._windowCmptRef.instance.hide(),s=this._backdropCmptRef?this._backdropCmptRef.instance.hide():(0,te.of)(void 0);g.subscribe(()=>{const{nativeElement:u}=this._windowCmptRef.location;u.parentNode.removeChild(u),this._windowCmptRef.destroy(),this._contentRef&&this._contentRef.viewRef&&this._contentRef.viewRef.destroy(),this._windowCmptRef=null,this._contentRef=null}),s.subscribe(()=>{if(this._backdropCmptRef){const{nativeElement:u}=this._backdropCmptRef.location;u.parentNode.removeChild(u),this._backdropCmptRef.destroy(),this._backdropCmptRef=null}}),at(g,s).subscribe(()=>{this._hidden.next(),this._hidden.complete()})}}var oo=(()=>{return(c=oo||(oo={}))[c.BACKDROP_CLICK=0]="BACKDROP_CLICK",c[c.ESC=1]="ESC",oo;var c})();let Go=(()=>{class c{constructor(s,u,b){this._document=s,this._elRef=u,this._zone=b,this._closed$=new G.xQ,this._elWithFocus=null,this.backdrop=!0,this.keyboard=!0,this.dismissEvent=new o.vpe,this.shown=new G.xQ,this.hidden=new G.xQ}dismiss(s){this.dismissEvent.emit(s)}ngOnInit(){this._elWithFocus=this._document.activeElement,this._zone.onStable.asObservable().pipe((0,Dt.q)(1)).subscribe(()=>{this._show()})}ngOnDestroy(){this._disableEventHandling()}hide(){const{nativeElement:s}=this._elRef,u={animation:this.animation,runningTransition:"stop"},ve=at(hi(this._zone,s,()=>s.classList.remove("show"),u),hi(this._zone,this._dialogEl.nativeElement,()=>{},u));return ve.subscribe(()=>{this.hidden.next(),this.hidden.complete()}),this._disableEventHandling(),this._restoreFocus(),ve}_show(){const s={animation:this.animation,runningTransition:"continue"};at(hi(this._zone,this._elRef.nativeElement,(N,ve)=>{ve&&Zi(N),N.classList.add("show")},s),hi(this._zone,this._dialogEl.nativeElement,()=>{},s)).subscribe(()=>{this.shown.next(),this.shown.complete()}),this._enableEventHandling(),this._setFocus()}_enableEventHandling(){const{nativeElement:s}=this._elRef;this._zone.runOutsideAngular(()=>{(0,W.R)(s,"keydown").pipe((0,Ft.R)(this._closed$),(0,Ye.h)(b=>b.which===In.Escape)).subscribe(b=>{this.keyboard?requestAnimationFrame(()=>{b.defaultPrevented||this._zone.run(()=>this.dismiss(oo.ESC))}):"static"===this.backdrop&&this._bumpBackdrop()});let u=!1;(0,W.R)(this._dialogEl.nativeElement,"mousedown").pipe((0,Ft.R)(this._closed$),(0,We.b)(()=>u=!1),(0,sn.w)(()=>(0,W.R)(s,"mouseup").pipe((0,Ft.R)(this._closed$),(0,Dt.q)(1))),(0,Ye.h)(({target:b})=>s===b)).subscribe(()=>{u=!0}),(0,W.R)(s,"click").pipe((0,Ft.R)(this._closed$)).subscribe(({target:b})=>{s===b&&("static"===this.backdrop?this._bumpBackdrop():!0===this.backdrop&&!u&&this._zone.run(()=>this.dismiss(oo.BACKDROP_CLICK))),u=!1})})}_disableEventHandling(){this._closed$.next()}_setFocus(){const{nativeElement:s}=this._elRef;if(!s.contains(document.activeElement)){const u=s.querySelector("[ngbAutofocus]"),b=eo(s)[0];(u||b||s).focus()}}_restoreFocus(){const s=this._document.body,u=this._elWithFocus;let b;b=u&&u.focus&&s.contains(u)?u:s,this._zone.runOutsideAngular(()=>{setTimeout(()=>b.focus()),this._elWithFocus=null})}_bumpBackdrop(){"static"===this.backdrop&&hi(this._zone,this._elRef.nativeElement,({classList:s})=>(s.add("modal-static"),()=>s.remove("modal-static")),{animation:this.animation,runningTransition:"continue"})}}return c.\u0275fac=function(s){return new(s||c)(o.Y36(l.K0),o.Y36(o.SBq),o.Y36(o.R0b))},c.\u0275cmp=o.Xpm({type:c,selectors:[["ngb-modal-window"]],viewQuery:function(s,u){if(1&s&&o.Gf(H,7),2&s){let b;o.iGM(b=o.CRH())&&(u._dialogEl=b.first)}},hostAttrs:["role","dialog","tabindex","-1"],hostVars:7,hostBindings:function(s,u){2&s&&(o.uIk("aria-modal",!0)("aria-labelledby",u.ariaLabelledBy)("aria-describedby",u.ariaDescribedBy),o.Tol("modal d-block"+(u.windowClass?" "+u.windowClass:"")),o.ekj("fade",u.animation))},inputs:{backdrop:"backdrop",keyboard:"keyboard",animation:"animation",ariaLabelledBy:"ariaLabelledBy",ariaDescribedBy:"ariaDescribedBy",centered:"centered",scrollable:"scrollable",size:"size",windowClass:"windowClass",modalDialogClass:"modalDialogClass"},outputs:{dismissEvent:"dismiss"},ngContentSelectors:et,decls:4,vars:2,consts:[["role","document"],["dialog",""],[1,"modal-content"]],template:function(s,u){1&s&&(o.F$t(),o.TgZ(0,"div",0,1),o.TgZ(2,"div",2),o.Hsn(3),o.qZA(),o.qZA()),2&s&&o.Tol("modal-dialog"+(u.size?" modal-"+u.size:"")+(u.centered?" modal-dialog-centered":"")+(u.scrollable?" modal-dialog-scrollable":"")+(u.modalDialogClass?" "+u.modalDialogClass:""))},styles:["ngb-modal-window .component-host-scrollable{display:flex;flex-direction:column;overflow:hidden}"],encapsulation:2}),c})(),ao=(()=>{class c{constructor(s,u,b,N,ve,Re){this._applicationRef=s,this._injector=u,this._document=b,this._scrollBar=N,this._rendererFactory=ve,this._ngZone=Re,this._activeWindowCmptHasChanged=new G.xQ,this._ariaHiddenValues=new Map,this._backdropAttributes=["animation","backdropClass"],this._modalRefs=[],this._windowAttributes=["animation","ariaLabelledBy","ariaDescribedBy","backdrop","centered","keyboard","scrollable","size","windowClass","modalDialogClass"],this._windowCmpts=[],this._activeInstances=new o.vpe,this._activeWindowCmptHasChanged.subscribe(()=>{if(this._windowCmpts.length){const pt=this._windowCmpts[this._windowCmpts.length-1];((c,g,s,u=!1)=>{c.runOutsideAngular(()=>{const b=(0,W.R)(g,"focusin").pipe((0,Ft.R)(s),(0,Rt.U)(N=>N.target));(0,W.R)(g,"keydown").pipe((0,Ft.R)(s),(0,Ye.h)(N=>N.which===In.Tab),vt(b)).subscribe(([N,ve])=>{const[Re,pt]=eo(g);(ve===Re||ve===g)&&N.shiftKey&&(pt.focus(),N.preventDefault()),ve===pt&&!N.shiftKey&&(Re.focus(),N.preventDefault())}),u&&(0,W.R)(g,"click").pipe((0,Ft.R)(s),vt(b),(0,Rt.U)(N=>N[1])).subscribe(N=>N.focus())})})(this._ngZone,pt.location.nativeElement,this._activeWindowCmptHasChanged),this._revertAriaHidden(),this._setAriaHidden(pt.location.nativeElement)}})}open(s,u,b,N){const ve=N.container instanceof HTMLElement?N.container:ir(N.container)?this._document.querySelector(N.container):this._document.body,Re=this._rendererFactory.createRenderer(null,null),pt=this._scrollBar.compensate(),Mt=()=>{this._modalRefs.length||(Re.removeClass(this._document.body,"modal-open"),this._revertAriaHidden())};if(!ve)throw new Error(`The specified modal container "${N.container||"body"}" was not found in the DOM.`);const Ht=new hc,dn=this._getContentRef(s,N.injector||u,b,Ht,N);let rn=!1!==N.backdrop?this._attachBackdrop(s,ve):void 0,En=this._attachWindowComponent(s,ve,dn),Kn=new fl(En,dn,rn,N.beforeDismiss);return this._registerModalRef(Kn),this._registerWindowCmpt(En),Kn.result.then(pt,pt),Kn.result.then(Mt,Mt),Ht.close=ni=>{Kn.close(ni)},Ht.dismiss=ni=>{Kn.dismiss(ni)},this._applyWindowOptions(En.instance,N),1===this._modalRefs.length&&Re.addClass(this._document.body,"modal-open"),rn&&rn.instance&&(this._applyBackdropOptions(rn.instance,N),rn.changeDetectorRef.detectChanges()),En.changeDetectorRef.detectChanges(),Kn}get activeInstances(){return this._activeInstances}dismissAll(s){this._modalRefs.forEach(u=>u.dismiss(s))}hasOpenModals(){return this._modalRefs.length>0}_attachBackdrop(s,u){let N=s.resolveComponentFactory(Au).create(this._injector);return this._applicationRef.attachView(N.hostView),u.appendChild(N.location.nativeElement),N}_attachWindowComponent(s,u,b){let ve=s.resolveComponentFactory(Go).create(this._injector,b.nodes);return this._applicationRef.attachView(ve.hostView),u.appendChild(ve.location.nativeElement),ve}_applyWindowOptions(s,u){this._windowAttributes.forEach(b=>{ir(u[b])&&(s[b]=u[b])})}_applyBackdropOptions(s,u){this._backdropAttributes.forEach(b=>{ir(u[b])&&(s[b]=u[b])})}_getContentRef(s,u,b,N,ve){return b?b instanceof o.Rgc?this._createFromTemplateRef(b,N):function(c){return"string"==typeof c}(b)?this._createFromString(b):this._createFromComponent(s,u,b,N,ve):new So([])}_createFromTemplateRef(s,u){const N=s.createEmbeddedView({$implicit:u,close(ve){u.close(ve)},dismiss(ve){u.dismiss(ve)}});return this._applicationRef.attachView(N),new So([N.rootNodes],N)}_createFromString(s){const u=this._document.createTextNode(`${s}`);return new So([[u]])}_createFromComponent(s,u,b,N,ve){const Re=s.resolveComponentFactory(b),pt=o.zs3.create({providers:[{provide:hc,useValue:N}],parent:u}),Mt=Re.create(pt),Ht=Mt.location.nativeElement;return ve.scrollable&&Ht.classList.add("component-host-scrollable"),this._applicationRef.attachView(Mt.hostView),new So([[Ht]],Mt.hostView,Mt)}_setAriaHidden(s){const u=s.parentElement;u&&s!==this._document.body&&(Array.from(u.children).forEach(b=>{b!==s&&"SCRIPT"!==b.nodeName&&(this._ariaHiddenValues.set(b,b.getAttribute("aria-hidden")),b.setAttribute("aria-hidden","true"))}),this._setAriaHidden(u))}_revertAriaHidden(){this._ariaHiddenValues.forEach((s,u)=>{s?u.setAttribute("aria-hidden",s):u.removeAttribute("aria-hidden")}),this._ariaHiddenValues.clear()}_registerModalRef(s){const u=()=>{const b=this._modalRefs.indexOf(s);b>-1&&(this._modalRefs.splice(b,1),this._activeInstances.emit(this._modalRefs))};this._modalRefs.push(s),this._activeInstances.emit(this._modalRefs),s.result.then(u,u)}_registerWindowCmpt(s){this._windowCmpts.push(s),this._activeWindowCmptHasChanged.next(),s.onDestroy(()=>{const u=this._windowCmpts.indexOf(s);u>-1&&(this._windowCmpts.splice(u,1),this._activeWindowCmptHasChanged.next())})}}return c.\u0275fac=function(s){return new(s||c)(o.LFG(o.z2F),o.LFG(o.zs3),o.LFG(l.K0),o.LFG(dc),o.LFG(o.FYo),o.LFG(o.R0b))},c.\u0275prov=o.Yz7({factory:function(){return new c(o.LFG(o.z2F),o.LFG(o.gxx),o.LFG(l.K0),o.LFG(dc),o.LFG(o.FYo),o.LFG(o.R0b))},token:c,providedIn:"root"}),c})(),Iu=(()=>{class c{constructor(s,u,b,N){this._moduleCFR=s,this._injector=u,this._modalStack=b,this._config=N}open(s,u={}){const b=Object.assign(Object.assign(Object.assign({},this._config),{animation:this._config.animation}),u);return this._modalStack.open(this._moduleCFR,this._injector,s,b)}get activeInstances(){return this._modalStack.activeInstances}dismissAll(s){this._modalStack.dismissAll(s)}hasOpenModals(){return this._modalStack.hasOpenModals()}}return c.\u0275fac=function(s){return new(s||c)(o.LFG(o._Vd),o.LFG(o.zs3),o.LFG(ao),o.LFG(jo))},c.\u0275prov=o.Yz7({factory:function(){return new c(o.LFG(o._Vd),o.LFG(o.gxx),o.LFG(ao),o.LFG(jo))},token:c,providedIn:"root"}),c})(),Li=(()=>{class c{}return c.\u0275fac=function(s){return new(s||c)},c.\u0275mod=o.oAB({type:c}),c.\u0275inj=o.cJS({providers:[Iu]}),c})();new o.OlP("live announcer delay",{providedIn:"root",factory:function(){return 100}});var Ic=M(5304),Oc=M(8076);let Nc=(()=>{class c{}return c.\u0275fac=function(s){return new(s||c)},c.\u0275mod=o.oAB({type:c}),c.\u0275inj=o.cJS({imports:[[l.ez,f.u5,Z.A0,f.UX,Li,Ic.Is,Oc.Bb],f.u5,Z.A0,f.UX,Li,Ic.Is,Oc.Bb]}),c})()},9846:(St,Se,M)=>{var l=M(5427),f=M(3668),Z=M(6019),o=M(9010),oe=M(9555),U=M(1086),te=M(3405),G=M(8805),W=M(2193),Q=M(5304),ne=M(9090);let ie=(()=>{class se{constructor(z){this.dialogRef=z,this.config=new W.O,this.config.title="There is a new update available",this.config.hideMoreButton=!0}onOk(){document.location.reload()}}return se.\u0275fac=function(z){return new(z||se)(f.Y36(Q.so))},se.\u0275cmp=f.Xpm({type:se,selectors:[["app-modal-confirm-update"]],decls:5,vars:1,consts:[[3,"config","onOk","onCancel"],[1,"row","p-3"]],template:function(z,ke){1&z&&(f.TgZ(0,"modal-material",0),f.NdJ("onOk",function(){return ke.onOk()})("onCancel",function(){return ke.dialogRef.close()}),f.TgZ(1,"content"),f.TgZ(2,"div",1),f.TgZ(3,"h2"),f._uU(4,"Do you want to refresh your current app?"),f.qZA(),f.qZA(),f.qZA(),f.qZA()),2&z&&f.Q6J("config",ke.config)},directives:[ne.M],styles:[""]}),se})();var Ne=M(1273),qe=M(5476),it=M(540),Le=M(9506),dt=M(2411),Qe=M(3596),Ge=M(7689),Nt=M(8526),rt=M(8053),Ce=M(8735),ht=M(9204),at=M(6087),xt=M(6636),Yt=M(1366),Kt=M(2187);const Zt="Service workers are disabled or not supported by this browser";class on{constructor(be){if(this.serviceWorker=be,be){const ke=(0,Le.R)(be,"controllerchange").pipe((0,rt.U)(()=>be.controller)),en=(0,qe.P)(()=>(0,dt.of)(be.controller)),qt=(0,Qe.z)(en,ke);this.worker=qt.pipe((0,Ce.h)(Ri=>!!Ri)),this.registration=this.worker.pipe((0,ht.w)(()=>be.getRegistration()));const Ji=(0,Le.R)(be,"message").pipe((0,rt.U)(Ri=>Ri.data)).pipe((0,Ce.h)(Ri=>Ri&&Ri.type)).pipe((0,at.O)(new te.xQ));Ji.connect(),this.events=Ji}else this.worker=this.events=this.registration=(Zt,(0,qe.P)(()=>(0,it._)(new Error("Service workers are disabled or not supported by this browser"))))}postMessage(be,z){return this.worker.pipe((0,xt.q)(1),(0,Yt.b)(ke=>{ke.postMessage(Wt({action:be},z))})).toPromise().then(()=>{})}postMessageWithOperation(be,z,ke){const en=this.waitForOperationCompleted(ke),qt=this.postMessage(be,z);return Promise.all([qt,en]).then(([,xn])=>xn)}generateNonce(){return Math.round(1e7*Math.random())}eventsOfType(be){let z;return z="string"==typeof be?ke=>ke.type===be:ke=>be.includes(ke.type),this.events.pipe((0,Ce.h)(z))}nextEventOfType(be){return this.eventsOfType(be).pipe((0,xt.q)(1))}waitForOperationCompleted(be){return this.eventsOfType("OPERATION_COMPLETED").pipe((0,Ce.h)(z=>z.nonce===be),(0,xt.q)(1),(0,rt.U)(z=>{if(void 0!==z.result)return z.result;throw new Error(z.error)})).toPromise()}get isEnabled(){return!!this.serviceWorker}}let ft=(()=>{class se{constructor(z){if(this.sw=z,this.subscriptionChanges=new te.xQ,!z.isEnabled)return this.messages=Ge.C,this.notificationClicks=Ge.C,void(this.subscription=Ge.C);this.messages=this.sw.eventsOfType("PUSH").pipe((0,rt.U)(en=>en.data)),this.notificationClicks=this.sw.eventsOfType("NOTIFICATION_CLICK").pipe((0,rt.U)(en=>en.data)),this.pushManager=this.sw.registration.pipe((0,rt.U)(en=>en.pushManager));const ke=this.pushManager.pipe((0,ht.w)(en=>en.getSubscription()));this.subscription=(0,Nt.T)(ke,this.subscriptionChanges)}get isEnabled(){return this.sw.isEnabled}requestSubscription(z){if(!this.sw.isEnabled)return Promise.reject(new Error(Zt));const ke={userVisibleOnly:!0};let en=this.decodeBase64(z.serverPublicKey.replace(/_/g,"/").replace(/-/g,"+")),qt=new Uint8Array(new ArrayBuffer(en.length));for(let xn=0;xn<en.length;xn++)qt[xn]=en.charCodeAt(xn);return ke.applicationServerKey=qt,this.pushManager.pipe((0,ht.w)(xn=>xn.subscribe(ke)),(0,xt.q)(1)).toPromise().then(xn=>(this.subscriptionChanges.next(xn),xn))}unsubscribe(){return this.sw.isEnabled?this.subscription.pipe((0,xt.q)(1),(0,ht.w)(ke=>{if(null===ke)throw new Error("Not subscribed to push notifications.");return ke.unsubscribe().then(en=>{if(!en)throw new Error("Unsubscribe failed!");this.subscriptionChanges.next(null)})})).toPromise():Promise.reject(new Error(Zt))}decodeBase64(z){return atob(z)}}return se.\u0275fac=function(z){return new(z||se)(f.LFG(on))},se.\u0275prov=f.Yz7({token:se,factory:se.\u0275fac}),se})(),Ft=(()=>{class se{constructor(z){if(this.sw=z,!z.isEnabled)return this.versionUpdates=Ge.C,this.available=Ge.C,this.activated=Ge.C,void(this.unrecoverable=Ge.C);this.versionUpdates=this.sw.eventsOfType(["VERSION_DETECTED","VERSION_INSTALLATION_FAILED","VERSION_READY"]),this.available=this.versionUpdates.pipe((0,Ce.h)(ke=>"VERSION_READY"===ke.type),(0,rt.U)(ke=>({type:"UPDATE_AVAILABLE",current:ke.currentVersion,available:ke.latestVersion}))),this.activated=this.sw.eventsOfType("UPDATE_ACTIVATED"),this.unrecoverable=this.sw.eventsOfType("UNRECOVERABLE_STATE")}get isEnabled(){return this.sw.isEnabled}checkForUpdate(){if(!this.sw.isEnabled)return Promise.reject(new Error(Zt));const z=this.sw.generateNonce();return this.sw.postMessageWithOperation("CHECK_FOR_UPDATES",{nonce:z},z)}activateUpdate(){if(!this.sw.isEnabled)return Promise.reject(new Error(Zt));const z=this.sw.generateNonce();return this.sw.postMessageWithOperation("ACTIVATE_UPDATE",{nonce:z},z)}}return se.\u0275fac=function(z){return new(z||se)(f.LFG(on))},se.\u0275prov=f.Yz7({token:se,factory:se.\u0275fac}),se})();class Ye{}const Dt=new f.OlP("NGSW_REGISTER_SCRIPT");function Rt(se,be,z,ke){return()=>{if(!(0,Z.NF)(ke)||!("serviceWorker"in navigator)||!1===z.enabled)return;let qt;if(navigator.serviceWorker.addEventListener("controllerchange",()=>{null!==navigator.serviceWorker.controller&&navigator.serviceWorker.controller.postMessage({action:"INITIALIZE"})}),"function"==typeof z.registrationStrategy)qt=z.registrationStrategy();else{const[ii,...Dr]=(z.registrationStrategy||"registerWhenStable:30000").split(":");switch(ii){case"registerImmediately":qt=(0,dt.of)(null);break;case"registerWithDelay":qt=Gt(+Dr[0]||0);break;case"registerWhenStable":qt=Dr[0]?(0,Nt.T)(zt(se),Gt(+Dr[0])):zt(se);break;default:throw new Error(`Unknown ServiceWorker registration strategy: ${z.registrationStrategy}`)}}se.get(f.R0b).runOutsideAngular(()=>qt.pipe((0,xt.q)(1)).subscribe(()=>navigator.serviceWorker.register(be,{scope:z.scope}).catch(ii=>console.error("Service worker registration failed with:",ii))))}}function Gt(se){return(0,dt.of)(null).pipe((0,Kt.g)(se))}function zt(se){return se.get(f.z2F).isStable.pipe((0,Ce.h)(z=>z))}function sn(se,be){return new on((0,Z.NF)(be)&&!1!==se.enabled?navigator.serviceWorker:void 0)}let We=(()=>{class se{static register(z,ke={}){return{ngModule:se,providers:[{provide:Dt,useValue:z},{provide:Ye,useValue:ke},{provide:on,useFactory:sn,deps:[Ye,f.Lbi]},{provide:f.ip1,useFactory:Rt,deps:[f.zs3,Dt,Ye,f.Lbi],multi:!0}]}}}return se.\u0275fac=function(z){return new(z||se)},se.\u0275mod=f.oAB({type:se}),se.\u0275inj=f.cJS({providers:[ft,Ft]}),se})();var vt=M(6339),Fe=M(5192);const Pe=new class extends Fe.v{}(class extends vt.o{constructor(be,z){super(be,z),this.scheduler=be,this.work=z}schedule(be,z=0){return z>0?super.schedule(be,z):(this.delay=z,this.state=be,this.scheduler.flush(this),this)}execute(be,z){return z>0||this.closed?super.execute(be,z):this._execute(be,z)}requestAsyncId(be,z,ke=0){return null!==ke&&ke>0||null===ke&&this.delay>0?super.requestAsyncId(be,z,ke):be.flush(this)}});var gt=M(1346),It=M(4168),jt=M(8085);class Xe extends It.L{constructor(be,z,ke=0){super(be),this.scheduler=z,this.delay=ke}static dispatch(be){const{notification:z,destination:ke}=be;z.observe(ke),this.unsubscribe()}scheduleMessage(be){this.destination.add(this.scheduler.schedule(Xe.dispatch,this.delay,new $(be,this.destination)))}_next(be){this.scheduleMessage(jt.P.createNext(be))}_error(be){this.scheduleMessage(jt.P.createError(be)),this.unsubscribe()}_complete(){this.scheduleMessage(jt.P.createComplete()),this.unsubscribe()}}class ${constructor(be,z){this.notification=be,this.destination=z}}var X=M(2108),Te=M(5973);class et extends te.xQ{constructor(be=Number.POSITIVE_INFINITY,z=Number.POSITIVE_INFINITY,ke){super(),this.scheduler=ke,this._events=[],this._infiniteTimeWindow=!1,this._bufferSize=be<1?1:be,this._windowTime=z<1?1:z,z===Number.POSITIVE_INFINITY?(this._infiniteTimeWindow=!0,this.next=this.nextInfiniteTimeWindow):this.next=this.nextTimeWindow}nextInfiniteTimeWindow(be){if(!this.isStopped){const z=this._events;z.push(be),z.length>this._bufferSize&&z.shift()}super.next(be)}nextTimeWindow(be){this.isStopped||(this._events.push(new nt(this._getNow(),be)),this._trimBufferThenGetEvents()),super.next(be)}_subscribe(be){const z=this._infiniteTimeWindow,ke=z?this._events:this._trimBufferThenGetEvents(),en=this.scheduler,qt=ke.length;let xn;if(this.closed)throw new X.N;if(this.isStopped||this.hasError?xn=gt.w.EMPTY:(this.observers.push(be),xn=new Te.W(this,be)),en&&be.add(be=new Xe(be,en)),z)for(let ii=0;ii<qt&&!be.closed;ii++)be.next(ke[ii]);else for(let ii=0;ii<qt&&!be.closed;ii++)be.next(ke[ii].value);return this.hasError?be.error(this.thrownError):this.isStopped&&be.complete(),xn}_getNow(){return(this.scheduler||Pe).now()}_trimBufferThenGetEvents(){const be=this._getNow(),z=this._bufferSize,ke=this._windowTime,en=this._events,qt=en.length;let xn=0;for(;xn<qt&&!(be-en[xn].time<ke);)xn++;return qt>z&&(xn=Math.max(xn,qt-z)),xn>0&&en.splice(0,xn),en}}class nt{constructor(be,z){this.time=be,this.value=z}}function Ae(se,be){function z(){return!z.pred.apply(z.thisArg,arguments)}return z.pred=se,z.thisArg=be,z}var le=M(4651),ue=M(5548),ct=M(265),At=M(6658),Ct=M(8345);function mt(se){return be=>be.lift(new an(se))}class an{constructor(be){this.durationSelector=be}call(be,z){return z.subscribe(new Tn(be,this.durationSelector))}}class Tn extends Ct.Ds{constructor(be,z){super(be),this.durationSelector=z,this.hasValue=!1}_next(be){try{const z=this.durationSelector.call(this,be);z&&this._tryNext(be,z)}catch(z){this.destination.error(z)}}_complete(){this.emitValue(),this.destination.complete()}_tryNext(be,z){let ke=this.durationSubscription;this.value=be,this.hasValue=!0,ke&&(ke.unsubscribe(),this.remove(ke)),ke=(0,Ct.ft)(z,new Ct.IY(this)),ke&&!ke.closed&&this.add(this.durationSubscription=ke)}notifyNext(){this.emitValue()}notifyComplete(){this.emitValue()}emitValue(){if(this.hasValue){const be=this.value,z=this.durationSubscription;z&&(this.durationSubscription=void 0,z.unsubscribe(),this.remove(z)),this.value=void 0,this.hasValue=!1,super._next(be)}}}var Pn=M(5389),hn=M(4522);function Vn(se,be){1&se&&f.GkF(0)}function vn(se,be){if(1&se&&f._UZ(0,"sk-cube-grid",4),2&se){const z=f.oxw(2);f.Q6J("backgroundColor",z.backgroundColor)}}function He(se,be){if(1&se&&f._UZ(0,"sk-chasing-dots",4),2&se){const z=f.oxw(2);f.Q6J("backgroundColor",z.backgroundColor)}}function ye(se,be){if(1&se&&f._UZ(0,"sk-double-bounce",4),2&se){const z=f.oxw(2);f.Q6J("backgroundColor",z.backgroundColor)}}function he(se,be){if(1&se&&f._UZ(0,"sk-rotating-plane",4),2&se){const z=f.oxw(2);f.Q6J("backgroundColor",z.backgroundColor)}}function Je(se,be){if(1&se&&f._UZ(0,"sk-spinner-pulse",4),2&se){const z=f.oxw(2);f.Q6J("backgroundColor",z.backgroundColor)}}function Qt(se,be){if(1&se&&f._UZ(0,"sk-three-bounce",4),2&se){const z=f.oxw(2);f.Q6J("backgroundColor",z.backgroundColor)}}function ze(se,be){if(1&se&&f._UZ(0,"sk-wandering-cubes",4),2&se){const z=f.oxw(2);f.Q6J("backgroundColor",z.backgroundColor)}}function fe(se,be){if(1&se&&f._UZ(0,"sk-wave",4),2&se){const z=f.oxw(2);f.Q6J("backgroundColor",z.backgroundColor)}}const ae=function(se){return{"background-color":se}};function je(se,be){if(1&se&&(f.TgZ(0,"div",1),f.YNc(1,Vn,1,0,"ng-container",2),f.YNc(2,vn,1,1,"sk-cube-grid",3),f.YNc(3,He,1,1,"sk-chasing-dots",3),f.YNc(4,ye,1,1,"sk-double-bounce",3),f.YNc(5,he,1,1,"sk-rotating-plane",3),f.YNc(6,Je,1,1,"sk-spinner-pulse",3),f.YNc(7,Qt,1,1,"sk-three-bounce",3),f.YNc(8,ze,1,1,"sk-wandering-cubes",3),f.YNc(9,fe,1,1,"sk-wave",3),f.qZA()),2&se){const z=f.oxw();f.Udp("opacity",z.opacity),f.ekj("backdrop",z.backdrop),f.Q6J("ngStyle",f.VKq(14,ae,z.backdrop?z.backdropBackgroundColor:"transparent")),f.xp6(1),f.Q6J("ngComponentOutlet",z.entryComponent),f.xp6(1),f.Q6J("ngIf",z.spinner===z.spinkit.skCubeGrid),f.xp6(1),f.Q6J("ngIf",z.spinner===z.spinkit.skChasingDots),f.xp6(1),f.Q6J("ngIf",z.spinner===z.spinkit.skDoubleBounce),f.xp6(1),f.Q6J("ngIf",z.spinner===z.spinkit.skRotatingPlane),f.xp6(1),f.Q6J("ngIf",z.spinner===z.spinkit.skSpinnerPulse),f.xp6(1),f.Q6J("ngIf",z.spinner===z.spinkit.skThreeBounce),f.xp6(1),f.Q6J("ngIf",z.spinner===z.spinkit.skWanderingCubes),f.xp6(1),f.Q6J("ngIf",z.spinner===z.spinkit.skWave)}}let st=(()=>{class se{}return se.\u0275fac=function(z){return new(z||se)},se.\u0275dir=f.lG2({type:se,inputs:{backgroundColor:"backgroundColor"}}),se})(),kt=(()=>{class se extends st{}return se.\u0275fac=function(){let be;return function(ke){return(be||(be=f.n5z(se)))(ke||se)}}(),se.\u0275cmp=f.Xpm({type:se,selectors:[["sk-chasing-dots"]],features:[f.qOj],decls:3,vars:6,consts:[[1,"sk-chasing-dots"],[1,"sk-child","sk-dot1"],[1,"sk-child","sk-dot2"]],template:function(z,ke){1&z&&(f.TgZ(0,"div",0),f._UZ(1,"div",1),f._UZ(2,"div",2),f.qZA()),2&z&&(f.ekj("colored",!ke.backgroundColor),f.xp6(1),f.Udp("background-color",ke.backgroundColor),f.xp6(1),f.Udp("background-color",ke.backgroundColor))},styles:[".sk-chasing-dots[_ngcontent-%COMP%]{top:50%;margin:auto;width:40px;height:40px;position:relative;text-align:center;animation:sk-chasingDotsRotate 2s infinite linear}.sk-chasing-dots[_ngcontent-%COMP%] .sk-child[_ngcontent-%COMP%]{width:60%;height:60%;display:inline-block;position:absolute;top:0;border-radius:100%;animation:sk-chasingDotsBounce 2s infinite ease-in-out}.sk-chasing-dots[_ngcontent-%COMP%] .sk-dot2[_ngcontent-%COMP%]{top:auto;bottom:0;animation-delay:-1s}@keyframes sk-chasingDotsRotate{to{transform:rotate(360deg)}}@keyframes sk-chasingDotsBounce{0%,to{transform:scale(0)}50%{transform:scale(1)}}"]}),se})(),fn=(()=>{class se extends st{}return se.\u0275fac=function(){let be;return function(ke){return(be||(be=f.n5z(se)))(ke||se)}}(),se.\u0275cmp=f.Xpm({type:se,selectors:[["sk-cube-grid"]],features:[f.qOj],decls:10,vars:20,consts:[[1,"sk-cube-grid"],[1,"sk-cube","sk-cube1"],[1,"sk-cube","sk-cube2"],[1,"sk-cube","sk-cube3"],[1,"sk-cube","sk-cube4"],[1,"sk-cube","sk-cube5"],[1,"sk-cube","sk-cube6"],[1,"sk-cube","sk-cube7"],[1,"sk-cube","sk-cube8"],[1,"sk-cube","sk-cube9"]],template:function(z,ke){1&z&&(f.TgZ(0,"div",0),f._UZ(1,"div",1),f._UZ(2,"div",2),f._UZ(3,"div",3),f._UZ(4,"div",4),f._UZ(5,"div",5),f._UZ(6,"div",6),f._UZ(7,"div",7),f._UZ(8,"div",8),f._UZ(9,"div",9),f.qZA()),2&z&&(f.ekj("colored",!ke.backgroundColor),f.xp6(1),f.Udp("background-color",ke.backgroundColor),f.xp6(1),f.Udp("background-color",ke.backgroundColor),f.xp6(1),f.Udp("background-color",ke.backgroundColor),f.xp6(1),f.Udp("background-color",ke.backgroundColor),f.xp6(1),f.Udp("background-color",ke.backgroundColor),f.xp6(1),f.Udp("background-color",ke.backgroundColor),f.xp6(1),f.Udp("background-color",ke.backgroundColor),f.xp6(1),f.Udp("background-color",ke.backgroundColor),f.xp6(1),f.Udp("background-color",ke.backgroundColor))},styles:[".sk-cube-grid[_ngcontent-%COMP%]{position:relative;top:50%;width:40px;height:40px;margin:auto}.sk-cube-grid[_ngcontent-%COMP%] .sk-cube[_ngcontent-%COMP%]{width:33.33%;height:33.33%;float:left;animation:sk-cubeGridScaleDelay 1.3s infinite ease-in-out}.sk-cube-grid[_ngcontent-%COMP%] .sk-cube1[_ngcontent-%COMP%]{animation-delay:.2s}.sk-cube-grid[_ngcontent-%COMP%] .sk-cube2[_ngcontent-%COMP%]{animation-delay:.3s}.sk-cube-grid[_ngcontent-%COMP%] .sk-cube3[_ngcontent-%COMP%]{animation-delay:.4s}.sk-cube-grid[_ngcontent-%COMP%] .sk-cube4[_ngcontent-%COMP%]{animation-delay:.1s}.sk-cube-grid[_ngcontent-%COMP%] .sk-cube5[_ngcontent-%COMP%]{animation-delay:.2s}.sk-cube-grid[_ngcontent-%COMP%] .sk-cube6[_ngcontent-%COMP%]{animation-delay:.3s}.sk-cube-grid[_ngcontent-%COMP%] .sk-cube7[_ngcontent-%COMP%]{animation-delay:0s}.sk-cube-grid[_ngcontent-%COMP%] .sk-cube8[_ngcontent-%COMP%]{animation-delay:.1s}.sk-cube-grid[_ngcontent-%COMP%] .sk-cube9[_ngcontent-%COMP%]{animation-delay:.2s}@keyframes sk-cubeGridScaleDelay{0%,70%,to{transform:scale(1)}35%{transform:scale(0)}}"]}),se})(),$n=(()=>{class se extends st{}return se.\u0275fac=function(){let be;return function(ke){return(be||(be=f.n5z(se)))(ke||se)}}(),se.\u0275cmp=f.Xpm({type:se,selectors:[["sk-double-bounce"]],features:[f.qOj],decls:3,vars:6,consts:[[1,"sk-double-bounce"],[1,"sk-child","sk-double-bounce1"],[1,"sk-child","sk-double-bounce2"]],template:function(z,ke){1&z&&(f.TgZ(0,"div",0),f._UZ(1,"div",1),f._UZ(2,"div",2),f.qZA()),2&z&&(f.ekj("colored",!ke.backgroundColor),f.xp6(1),f.Udp("background-color",ke.backgroundColor),f.xp6(1),f.Udp("background-color",ke.backgroundColor))},styles:[".sk-double-bounce[_ngcontent-%COMP%]{top:50%;width:40px;height:40px;position:relative;margin:auto}.sk-double-bounce[_ngcontent-%COMP%] .sk-child[_ngcontent-%COMP%]{width:100%;height:100%;border-radius:50%;background-color:#333;opacity:.6;position:absolute;top:0;left:0;animation:sk-doubleBounce 2s infinite ease-in-out}.sk-double-bounce[_ngcontent-%COMP%] .sk-double-bounce2[_ngcontent-%COMP%]{animation-delay:-1s}@keyframes sk-doubleBounce{0%,to{transform:scale(0)}50%{transform:scale(1)}}"]}),se})(),ri=(()=>{class se extends st{}return se.\u0275fac=function(){let be;return function(ke){return(be||(be=f.n5z(se)))(ke||se)}}(),se.\u0275cmp=f.Xpm({type:se,selectors:[["sk-rotating-plane"]],features:[f.qOj],decls:1,vars:2,consts:[[1,"sk-rotating-plane","colored-parent"]],template:function(z,ke){1&z&&f._UZ(0,"div",0),2&z&&f.Udp("background-color",ke.backgroundColor)},styles:[".sk-rotating-plane[_ngcontent-%COMP%]{position:relative;top:50%;width:40px;height:40px;margin:auto;animation:sk-rotatePlane 1.2s infinite ease-in-out}@keyframes sk-rotatePlane{0%{transform:perspective(120px) rotateX(0) rotateY(0)}50%{transform:perspective(120px) rotateX(-180.1deg) rotateY(0)}to{transform:perspective(120px) rotateX(-180deg) rotateY(-179.9deg)}}"]}),se})(),Xn=(()=>{class se extends st{}return se.\u0275fac=function(){let be;return function(ke){return(be||(be=f.n5z(se)))(ke||se)}}(),se.\u0275cmp=f.Xpm({type:se,selectors:[["sk-spinner-pulse"]],features:[f.qOj],decls:1,vars:2,consts:[[1,"sk-spinner","sk-spinner-pulse","colored-parent"]],template:function(z,ke){1&z&&f._UZ(0,"div",0),2&z&&f.Udp("background-color",ke.backgroundColor)},styles:[".sk-spinner-pulse[_ngcontent-%COMP%]{position:relative;top:50%;width:40px;height:40px;margin:auto;border-radius:100%;animation:sk-pulseScaleOut 1s infinite ease-in-out}@keyframes sk-pulseScaleOut{0%{transform:scale(0)}to{transform:scale(1);opacity:0}}"]}),se})(),Tt=(()=>{class se extends st{}return se.\u0275fac=function(){let be;return function(ke){return(be||(be=f.n5z(se)))(ke||se)}}(),se.\u0275cmp=f.Xpm({type:se,selectors:[["sk-three-bounce"]],features:[f.qOj],decls:4,vars:8,consts:[[1,"sk-three-bounce"],[1,"sk-child","sk-bounce1"],[1,"sk-child","sk-bounce2"],[1,"sk-child","sk-bounce3"]],template:function(z,ke){1&z&&(f.TgZ(0,"div",0),f._UZ(1,"div",1),f._UZ(2,"div",2),f._UZ(3,"div",3),f.qZA()),2&z&&(f.ekj("colored",!ke.backgroundColor),f.xp6(1),f.Udp("background-color",ke.backgroundColor),f.xp6(1),f.Udp("background-color",ke.backgroundColor),f.xp6(1),f.Udp("background-color",ke.backgroundColor))},styles:[".sk-three-bounce[_ngcontent-%COMP%]{top:50%;position:relative;margin:auto;width:80px;text-align:center}.sk-three-bounce[_ngcontent-%COMP%] .sk-child[_ngcontent-%COMP%]{width:20px;height:20px;border-radius:100%;display:inline-block;animation:sk-three-bounce 1.4s ease-in-out 0s infinite both}.sk-three-bounce[_ngcontent-%COMP%] .sk-bounce1[_ngcontent-%COMP%]{animation-delay:-.32s}.sk-three-bounce[_ngcontent-%COMP%] .sk-bounce2[_ngcontent-%COMP%]{animation-delay:-.16s}@keyframes sk-three-bounce{0%,80%,to{transform:scale(0)}40%{transform:scale(1)}}"]}),se})(),$t=(()=>{class se extends st{}return se.\u0275fac=function(){let be;return function(ke){return(be||(be=f.n5z(se)))(ke||se)}}(),se.\u0275cmp=f.Xpm({type:se,selectors:[["sk-wandering-cubes"]],features:[f.qOj],decls:3,vars:6,consts:[[1,"sk-wandering-cubes"],[1,"sk-cube","sk-cube1"],[1,"sk-cube","sk-cube2"]],template:function(z,ke){1&z&&(f.TgZ(0,"div",0),f._UZ(1,"div",1),f._UZ(2,"div",2),f.qZA()),2&z&&(f.ekj("colored",!ke.backgroundColor),f.xp6(1),f.Udp("background-color",ke.backgroundColor),f.xp6(1),f.Udp("background-color",ke.backgroundColor))},styles:[".sk-wandering-cubes[_ngcontent-%COMP%]{top:50%;margin:auto;width:40px;height:40px;position:relative}.sk-wandering-cubes[_ngcontent-%COMP%] .sk-cube[_ngcontent-%COMP%]{width:10px;height:10px;position:absolute;top:0;left:0;animation:sk-wanderingCube 1.8s ease-in-out -1.8s infinite both}.sk-wandering-cubes[_ngcontent-%COMP%] .sk-cube2[_ngcontent-%COMP%]{animation-delay:-.9s}@keyframes sk-wanderingCube{0%{transform:rotate(0)}25%{transform:translate(30px) rotate(-90deg) scale(.5)}50%{transform:translate(30px) translateY(30px) rotate(-179deg)}50.1%{transform:translate(30px) translateY(30px) rotate(-180deg)}75%{transform:translate(0) translateY(30px) rotate(-270deg) scale(.5)}to{transform:rotate(-360deg)}}"]}),se})(),De=(()=>{class se extends st{}return se.\u0275fac=function(){let be;return function(ke){return(be||(be=f.n5z(se)))(ke||se)}}(),se.\u0275cmp=f.Xpm({type:se,selectors:[["sk-wave"]],features:[f.qOj],decls:6,vars:12,consts:[[1,"sk-wave"],[1,"sk-rect","sk-rect1"],[1,"sk-rect","sk-rect2"],[1,"sk-rect","sk-rect3"],[1,"sk-rect","sk-rect4"],[1,"sk-rect","sk-rect5"]],template:function(z,ke){1&z&&(f.TgZ(0,"div",0),f._UZ(1,"div",1),f._UZ(2,"div",2),f._UZ(3,"div",3),f._UZ(4,"div",4),f._UZ(5,"div",5),f.qZA()),2&z&&(f.ekj("colored",!ke.backgroundColor),f.xp6(1),f.Udp("background-color",ke.backgroundColor),f.xp6(1),f.Udp("background-color",ke.backgroundColor),f.xp6(1),f.Udp("background-color",ke.backgroundColor),f.xp6(1),f.Udp("background-color",ke.backgroundColor),f.xp6(1),f.Udp("background-color",ke.backgroundColor))},styles:[".sk-wave[_ngcontent-%COMP%]{position:relative;top:50%;margin:auto;width:50px;height:40px;text-align:center;font-size:10px}.sk-wave[_ngcontent-%COMP%] .sk-rect[_ngcontent-%COMP%]{float:left;margin-right:1px;height:100%;width:6px;display:inline-block;animation:sk-waveStretchDelay 1.2s infinite ease-in-out}.sk-wave[_ngcontent-%COMP%] .sk-rect1[_ngcontent-%COMP%]{animation-delay:-1.2s}.sk-wave[_ngcontent-%COMP%] .sk-rect2[_ngcontent-%COMP%]{animation-delay:-1.1s}.sk-wave[_ngcontent-%COMP%] .sk-rect3[_ngcontent-%COMP%]{animation-delay:-1s}.sk-wave[_ngcontent-%COMP%] .sk-rect4[_ngcontent-%COMP%]{animation-delay:-.9s}.sk-wave[_ngcontent-%COMP%] .sk-rect5[_ngcontent-%COMP%]{animation-delay:-.8s}@keyframes sk-waveStretchDelay{0%,40%,to{transform:scaleY(.4)}20%{transform:scaleY(1)}}"]}),se})();const H={skChasingDots:"sk-chasing-dots",skCubeGrid:"sk-cube-grid",skDoubleBounce:"sk-double-bounce",skRotatingPlane:"sk-rotationg-plane",skSpinnerPulse:"sk-spinner-pulse",skThreeBounce:"sk-three-bounce",skWanderingCubes:"sk-wandering-cubes",skWave:"sk-wave"};let A=(()=>{class se{constructor(){this._pendingRequests=0,this._pendingRequestsStatus$=new et(1),this._filteredUrlPatterns=[],this._filteredMethods=[],this._filteredHeaders=[],this._forceByPass=!1}get pendingRequestsStatus$(){return this._pendingRequestsStatus$.asObservable()}get pendingRequests(){return this._pendingRequests}get filteredUrlPatterns(){return this._filteredUrlPatterns}set filteredMethods(z){this._filteredMethods=z}set filteredHeaders(z){this._filteredHeaders=z}set forceByPass(z){this._forceByPass=z}shouldBypassUrl(z){return this._filteredUrlPatterns.some(ke=>ke.test(z))}shouldBypassMethod(z){return this._filteredMethods.some(ke=>ke.toUpperCase()===z.method.toUpperCase())}shouldBypassHeader(z){return this._filteredHeaders.some(ke=>z.headers.has(ke))}shouldBypass(z){return this._forceByPass||this.shouldBypassUrl(z.urlWithParams)||this.shouldBypassMethod(z)||this.shouldBypassHeader(z)}intercept(z,ke){const en=this.shouldBypass(z);return en||(this._pendingRequests++,1===this._pendingRequests&&this._pendingRequestsStatus$.next(!0)),ke.handle(z).pipe((0,At.x)(()=>{en||(this._pendingRequests--,0===this._pendingRequests&&this._pendingRequestsStatus$.next(!1))}))}}return se.\u0275fac=function(z){return new(z||se)},se.\u0275prov=f.Yz7({token:se,factory:se.\u0275fac,providedIn:"root"}),se})();const ee=[{provide:hn.TP,useExisting:A,multi:!0}];let Oe=(()=>{class se{constructor(z){this.pendingRequestsInterceptor=z,this._visibility$=new et(1)}get visibility$(){return this._visibility$.asObservable()}show(){this.pendingRequestsInterceptor.forceByPass=!0,this._visibility$.next(!0)}hide(){this._visibility$.next(!1),this.pendingRequestsInterceptor.forceByPass=!1}}return se.\u0275fac=function(z){return new(z||se)(f.LFG(A))},se.\u0275prov=f.Yz7({token:se,factory:se.\u0275fac,providedIn:"root"}),se})(),lt=(()=>{class se{constructor(z,ke){this.pendingRequestsInterceptor=z,this.spinnerVisibility=ke,this.spinkit=H,this.visibleUntil=Date.now(),this.backdrop=!0,this.debounceDelay=0,this.entryComponent=null,this.extraDuration=0,this.filteredHeaders=[],this.filteredMethods=[],this.filteredUrlPatterns=[],this.minDuration=0,this.opacity=".7",this.backdropBackgroundColor="#f1f1f1",this.spinner=H.skWave}ngOnInit(){this.initIsvisibleObservable(),this.nullifySpinnerIfEntryComponentIsDefined(),this.initFilters()}initIsvisibleObservable(){const[z,ke]=function(se,be,z){return[(0,Ce.h)(be,z)(new ue.y((0,le.s)(se))),(0,Ce.h)(Ae(be,z))(new ue.y((0,le.s)(se)))]}(this.pendingRequestsInterceptor.pendingRequestsStatus$,en=>en);this.isVisible$=(0,Nt.T)(this.pendingRequestsInterceptor.pendingRequestsStatus$.pipe((0,ht.w)(()=>z.pipe(mt(()=>(0,ct.H)(this.debounceDelay))))),z.pipe((0,ht.w)(()=>ke.pipe(mt(()=>this.getVisibilityTimer$())))),this.spinnerVisibility.visibility$).pipe((0,Pn.x)(),(0,Yt.b)(en=>this.updateExpirationDelay(en)))}nullifySpinnerIfEntryComponentIsDefined(){this.entryComponent&&(this.spinner=null)}initFilters(){this.initFilteredUrlPatterns(),this.initFilteredMethods(),this.initFilteredHeaders()}initFilteredUrlPatterns(){this.filteredUrlPatterns.length&&this.filteredUrlPatterns.forEach(z=>this.pendingRequestsInterceptor.filteredUrlPatterns.push(new RegExp(z)))}initFilteredMethods(){this.pendingRequestsInterceptor.filteredMethods=this.filteredMethods}initFilteredHeaders(){this.pendingRequestsInterceptor.filteredHeaders=this.filteredHeaders}updateExpirationDelay(z){z&&(this.visibleUntil=Date.now()+this.minDuration)}getVisibilityTimer$(){return(0,ct.H)(Math.max(this.extraDuration,this.visibleUntil-Date.now()))}}return se.\u0275fac=function(z){return new(z||se)(f.Y36(A),f.Y36(Oe))},se.\u0275cmp=f.Xpm({type:se,selectors:[["ng-http-loader"]],inputs:{backdrop:"backdrop",backgroundColor:"backgroundColor",debounceDelay:"debounceDelay",entryComponent:"entryComponent",extraDuration:"extraDuration",filteredHeaders:"filteredHeaders",filteredMethods:"filteredMethods",filteredUrlPatterns:"filteredUrlPatterns",minDuration:"minDuration",opacity:"opacity",backdropBackgroundColor:"backdropBackgroundColor",spinner:"spinner"},decls:2,vars:3,consts:[["id","spinner",3,"backdrop","opacity","ngStyle",4,"ngIf"],["id","spinner",3,"ngStyle"],[4,"ngComponentOutlet"],[3,"backgroundColor",4,"ngIf"],[3,"backgroundColor"]],template:function(z,ke){1&z&&(f.YNc(0,je,10,16,"div",0),f.ALo(1,"async")),2&z&&f.Q6J("ngIf",f.lcZ(1,1,ke.isVisible$))},directives:[Z.O5,Z.PC,Z.$G,fn,kt,$n,ri,Xn,Tt,$t,De],pipes:[Z.Ov],styles:["#spinner[_ngcontent-%COMP%]{top:50%;left:50%;transform:translate(-50%,-50%);position:fixed;z-index:9999}#spinner.backdrop[_ngcontent-%COMP%]{top:0;left:0;height:100%;width:100%;display:flex;align-items:center;justify-content:center;transform:none} .colored-parent, .colored>div{background-color:#333}"]}),se})(),Ze=(()=>{class se{static forRoot(){return{ngModule:se,providers:[ee]}}}return se.\u0275fac=function(z){return new(z||se)},se.\u0275mod=f.oAB({type:se}),se.\u0275inj=f.cJS({imports:[[Z.ez]]}),se})(),Bt=(()=>{class se{constructor(z,ke,en,qt,xn){this.route=z,this.activateRoute=ke,this.queryParamService=en,this.matDialog=xn,this.destroy$=new te.xQ,qt.versionUpdates.subscribe(ii=>{qt.activateUpdate().then(()=>this.updateApp(ii))})}updateApp(z){"VERSION_READY"==z.type&&this.matDialog.open(ie,{disableClose:!0})}ngOnInit(){this.getLastRouteEvent()}getLastRouteEvent(){this.route.events.pipe((0,G.R)(this.destroy$)).subscribe(z=>{z instanceof U.m2&&this.getParam()})}ngOnDestroy(){this.destroy$.next(!0),this.destroy$.complete()}getParam(){this.activateRoute.queryParamMap.pipe((0,G.R)(this.destroy$)).subscribe(z=>{if(z){let ke=z.get("ID"),en=z.get("Number"),qt=z.get("Outlet");this.queryParamService.setState({ID:ke,billNumber:en,outletName:qt})}})}}return se.\u0275fac=function(z){return new(z||se)(f.Y36(U.F0),f.Y36(U.gz),f.Y36(Ne.U),f.Y36(Ft),f.Y36(Q.uw))},se.\u0275cmp=f.Xpm({type:se,selectors:[["app-root"]],decls:2,vars:0,template:function(z,ke){1&z&&(f._UZ(0,"ng-http-loader"),f._UZ(1,"router-outlet"))},directives:[lt,U.lC],styles:[""]}),se})();var gn=M(1286);let bn=(()=>{class se{constructor(z,ke){this._authService=z,this._router=ke}canActivate(z,ke){return!!this._authService.isAuthentication()||(this._router.navigate([""]),!1)}}return se.\u0275fac=function(z){return new(z||se)(f.LFG(gn.$),f.LFG(U.F0))},se.\u0275prov=f.Yz7({token:se,factory:se.\u0275fac}),se})();function jn(se){this.message=se}(jn.prototype=new Error).name="InvalidCharacterError";var Nn="undefined"!=typeof window&&window.atob&&window.atob.bind(window)||function(se){var be=String(se).replace(/=+$/,"");if(be.length%4==1)throw new jn("'atob' failed: The string to be decoded is not correctly encoded.");for(var z,ke,en=0,qt=0,xn="";ke=be.charAt(qt++);~ke&&(z=en%4?64*z+ke:ke,en++%4)?xn+=String.fromCharCode(255&z>>(-2*en&6)):0)ke="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/=".indexOf(ke);return xn};function ge(se){this.message=se}(ge.prototype=new Error).name="InvalidTokenError";var Ke=M(8930),Jt=M(8452);const pn=["domainAutoFocus"],Yn=["passAutoFocus"],oi=function(se,be){return{"fa-eye-slash":se,"fa-eye":be}};function ai(se,be){if(1&se){const z=f.EpF();f.TgZ(0,"i",35),f.NdJ("click",function(){return f.CHM(z),f.oxw().hideShowPassword()}),f.qZA()}if(2&se){const z=f.oxw();f.Q6J("ngClass",f.WLB(1,oi,"eye"==z.passwordIcon,"eye-off"==z.passwordIcon))}}const pr=[{path:"",component:Bt,children:[{path:"",component:(()=>{class se{constructor(z,ke,en,qt,xn){this._httpService=z,this.toastr=ke,this.auth=en,this.elementRef=qt,this.cdr=xn,this.password="",this.passwordType="password",this.passwordIcon="eye-off"}ngOnInit(){this.elementRef.nativeElement.ownerDocument.body.style.backgroundColor="#edefff"}ngAfterViewInit(){this.initLoginForm()}ngOnDestroy(){this.elementRef.nativeElement.ownerDocument.body.style.backgroundColor="white"}initLoginForm(){let z=this.auth.isLoginFormExist();this.setAutoFocusDomain(),z&&(this.username=this.auth.getUsername(),this.posDomain=this.auth.getDomain(),this.setAutoFocusPass(),this.cdr.detectChanges())}setAutoFocusDomain(){this.domainElementRef.nativeElement.focus()}setAutoFocusPass(){this.passElementRef.nativeElement.focus()}hideShowPassword(){this.passwordType="text"===this.passwordType?"password":"text",this.passwordIcon="eye-off"===this.passwordIcon?"eye":"eye-off"}login(){var z={client_id:this.username,client_secret:this.password},en="";this.posDomain.includes("http://")||(en="https://"+this.posDomain),this._httpService.post(en+"/api/v3/Token",JSON.stringify(z)).subscribe(qt=>{if(null!=qt.access_token||null!=qt.access_token){let xn=qt.access_token,ii=qt.expiredAt;localStorage.setItem("Token",xn),localStorage.setItem("ExpireDate",ii),this.auth.saveLoginForm(this.posDomain,this.username);let Ji=function(se,be){if("string"!=typeof se)throw new ge("Invalid token specified");var z=!0===(be=be||{}).header?0:1;try{return JSON.parse(function(se){var be=se.replace(/-/g,"+").replace(/_/g,"/");switch(be.length%4){case 0:break;case 2:be+="==";break;case 3:be+="=";break;default:throw"Illegal base64url string!"}try{return decodeURIComponent(Nn(be).replace(/(.)/g,function(ke,en){var qt=en.charCodeAt(0).toString(16).toUpperCase();return qt.length<2&&(qt="0"+qt),"%"+qt}))}catch(z){return Nn(be)}}(se.split(".")[z]))}catch(ke){throw new ge("Invalid token specified: "+ke.message)}}(xn)["http://schemas.microsoft.com/ws/2008/06/identity/claims/role"],Ri=Ji?Ji.find(Ur=>"Products"==Ur):null;this.auth.setRoles(Ji),"Products"==Ri?this.auth.login("/pages"):this.toastr.error("Require products role to access this feature!","Error")}},qt=>{console.error(qt)})}}return se.\u0275fac=function(z){return new(z||se)(f.Y36(Ke.O),f.Y36(Jt._W),f.Y36(gn.$),f.Y36(f.SBq),f.Y36(f.sBO))},se.\u0275cmp=f.Xpm({type:se,selectors:[["app-login"]],viewQuery:function(z,ke){if(1&z&&(f.Gf(pn,5),f.Gf(Yn,5)),2&z){let en;f.iGM(en=f.CRH())&&(ke.domainElementRef=en.first),f.iGM(en=f.CRH())&&(ke.passElementRef=en.first)}},decls:54,vars:5,consts:[[1,"container"],[1,"row","mt-5","mt-md-0","align-self-center"],[1,"col-12","col-md-7","text-center"],[1,"big-display","my-5","py-5","robotoslab","d-none","d-md-block"],["src","https://res.cloudinary.com/dealpos/image/upload/w_300/v1615189586/Barcode/barcode.png","alt","integration-image",1,"img-fluid","mt-5","pt-5"],[1,"col-12","col-md-5","order-first","order-md-last"],[1,"big-display","text-center","my-5","py-5","robotoslab","d-block","d-md-none"],[1,"card"],[1,"card-body"],[1,"card-title"],[1,"ml-2","font-weight-normal","font-xl","robotoslab"],[1,""],[1,"form-label-group"],["type","text","name","inputPOSDomain","id","inputPOSDomain","placeholder","POS Domain (xyz.dealpos.com)","required","","pattern","(https:\\/\\/)?\\w+.dealpos(.com|.net|.co.id)(\\/)?",1,"form-control","text-left",3,"ngModel","ngModelChange"],["domainAutoFocus","","domain","ngModel"],["for","inputPOSDomain",1,"text-left"],["type","text","name","username","id","inputUsername","placeholder","Username","required","",1,"form-control","text-left",3,"ngModel","ngModelChange"],["for","inputUsername",1,"text-left"],[1,"form-label-group","mb-5","mb-md-2"],["name","something","id","inputPassword","placeholder","Password","required","",1,"form-control","text-left",3,"type","ngModel","ngModelChange"],["passAutoFocus",""],["for","inputPassword",1,"text-left"],["class","passwordIcon fas fa-lg",3,"ngClass","click",4,"ngIf"],[1,"row","justify-content-between","align-items-center"],[1,"col-12","col-lg-5","order-first","order-md-last"],["type","submit",1,"btn","btn-lg","btn-primary","btn-block","font125rem","robotoslab",3,"click"],[1,"col-12","d-block","d-md-none","text-center"],[1,"pt-1rem","mr-3"],["target","_blank","href","https://www.dealpos.com"],["src","https://res.cloudinary.com/pos/image/upload/POS/Images/Login/dealpos.png","alt","dealpos-logo",1,"img-fluid"],["href","https://changelog.dealpos.com/?categories=cat_IOl3P9ko0ayhv&view=complete","target","_blank"],[1,"pt-1rem","font-italic"],[1,"mx-5","pb-5","mb-5","d-none","d-md-block"],[1,"col-auto","d-inline-flex"],[1,"col-auto"],[1,"passwordIcon","fas","fa-lg",3,"ngClass","click"]],template:function(z,ke){1&z&&(f.TgZ(0,"div",0),f.TgZ(1,"div",1),f.TgZ(2,"div",2),f.TgZ(3,"h1",3),f._uU(4,"DealPOS - Barcode"),f.qZA(),f._UZ(5,"img",4),f.qZA(),f.TgZ(6,"div",5),f.TgZ(7,"h1",6),f._uU(8,"DealPOS - Barcode"),f.qZA(),f.TgZ(9,"div",7),f.TgZ(10,"div",8),f.TgZ(11,"div",9),f.TgZ(12,"h2",10),f._uU(13,"Sign in"),f.qZA(),f.qZA(),f.TgZ(14,"form",11),f.TgZ(15,"div",12),f.TgZ(16,"input",13,14),f.NdJ("ngModelChange",function(qt){return ke.posDomain=qt}),f.qZA(),f.TgZ(19,"label",15),f._uU(20,"POS Domain (xyz.dealpos.com)"),f.qZA(),f.qZA(),f.TgZ(21,"div",12),f.TgZ(22,"input",16),f.NdJ("ngModelChange",function(qt){return ke.username=qt}),f.qZA(),f.TgZ(23,"label",17),f._uU(24,"Username"),f.qZA(),f.qZA(),f.TgZ(25,"div",18),f.TgZ(26,"input",19,20),f.NdJ("ngModelChange",function(qt){return ke.password=qt}),f.qZA(),f.TgZ(28,"label",21),f._uU(29,"Password"),f.qZA(),f.YNc(30,ai,1,4,"i",22),f.qZA(),f.TgZ(31,"div",23),f.TgZ(32,"div",24),f.TgZ(33,"button",25),f.NdJ("click",function(){return ke.login()}),f._uU(34,"Log in"),f.qZA(),f.qZA(),f.qZA(),f.qZA(),f.qZA(),f.qZA(),f.qZA(),f.TgZ(35,"div",26),f.TgZ(36,"p",27),f._uU(37,"Powered by : "),f.qZA(),f.TgZ(38,"a",28),f._UZ(39,"img",29),f.qZA(),f.TgZ(40,"a",30),f.TgZ(41,"p",31),f._uU(42,"Version 1.2.6"),f.qZA(),f.qZA(),f.qZA(),f.qZA(),f.qZA(),f.TgZ(43,"footer",32),f.TgZ(44,"div",23),f.TgZ(45,"div",33),f.TgZ(46,"p",27),f._uU(47,"Powered by : "),f.qZA(),f.TgZ(48,"a",28),f._UZ(49,"img",29),f.qZA(),f.qZA(),f.TgZ(50,"div",34),f.TgZ(51,"a",30),f.TgZ(52,"p",31),f._uU(53,"Version 1.2.6"),f.qZA(),f.qZA(),f.qZA(),f.qZA(),f.qZA()),2&z&&(f.xp6(16),f.Q6J("ngModel",ke.posDomain),f.xp6(6),f.Q6J("ngModel",ke.username),f.xp6(4),f.Q6J("type",ke.passwordType)("ngModel",ke.password),f.xp6(4),f.Q6J("ngIf",""!=ke.password))},directives:[o._Y,o.JL,o.F,o.Fj,o.Q7,o.c5,o.JJ,o.On,Z.O5,Z.mk],styles:['.container[_ngcontent-%COMP%]{position:absolute;max-width:100%}.passwordIcon[_ngcontent-%COMP%]{top:1.5rem;right:.5rem;position:absolute;margin:0 auto!important;cursor:pointer}.big-display[_ngcontent-%COMP%]{font-size:2rem;font-weight:300;line-height:1.2}@media (min-width: 768px){.container[_ngcontent-%COMP%]{max-width:90%;top:50%;left:50%;transform:translate(-50%) translateY(-50%)}.big-display[_ngcontent-%COMP%]{font-size:2.5rem}}@media (min-width: 1200px){.container[_ngcontent-%COMP%]{max-width:70%}.big-display[_ngcontent-%COMP%]{font-size:3rem}}html[_ngcontent-%COMP%], body[_ngcontent-%COMP%]{height:100%}body[_ngcontent-%COMP%]{display:flex;align-items:center;padding-top:40px;padding-bottom:40px}footer[_ngcontent-%COMP%]{position:absolute;bottom:0;width:90%;left:3rem}.pt-1rem[_ngcontent-%COMP%]{padding-top:1rem}.form-label-group[_ngcontent-%COMP%] > label[_ngcontent-%COMP%]{color:#666}.font-xl[_ngcontent-%COMP%]{font-size:x-large}.font125rem[_ngcontent-%COMP%]{font-size:1.25rem}.robotoslab[_ngcontent-%COMP%]{font-family:"Roboto Slab"}']}),se})()},{path:"pages",loadChildren:()=>M.e(269).then(M.bind(M,4269)).then(se=>se.PagesModule),canActivate:[bn]},{path:"",redirectTo:"",pathMatch:"full"}]}];let Ai=(()=>{class se{}return se.\u0275fac=function(z){return new(z||se)},se.\u0275mod=f.oAB({type:se}),se.\u0275inj=f.cJS({imports:[[Z.ez,o.u5,oe.PW,U.Bz.forRoot(pr)],U.Bz]}),se})();var Cn=M(9814);const Hr=["custom-toast-component",""];function gr(se,be){if(1&se){const z=f.EpF();f.TgZ(0,"a",10),f.NdJ("click",function(){return f.CHM(z),f.oxw(2).remove()}),f._uU(1," x "),f.qZA()}}function Hi(se,be){if(1&se&&(f.TgZ(0,"div",6),f.TgZ(1,"div",7),f.TgZ(2,"div"),f.TgZ(3,"h4"),f._uU(4),f.qZA(),f.qZA(),f.qZA(),f.TgZ(5,"div",8),f.YNc(6,gr,2,0,"a",9),f.qZA(),f.qZA()),2&se){const z=f.oxw();f.Udp("display","inactive"===z.state.value?"none":""),f.xp6(2),f.Tol(z.options.titleClass),f.uIk("aria-label",z.title),f.xp6(2),f.Oqu(z.title),f.xp6(2),f.Q6J("ngIf",z.options.closeButton)}}const zi=function(se){return{notitle:se}};function Ci(se,be){if(1&se&&f._UZ(0,"div",11),2&se){const z=f.oxw();f.Tol(z.options.messageClass),f.Q6J("ngClass",f.VKq(4,zi,null==z.title))("innerHTML",z.message,f.oJD)}}function _i(se,be){if(1&se&&(f.TgZ(0,"div",12),f._uU(1),f.qZA()),2&se){const z=f.oxw();f.Tol(z.options.messageClass),f.Q6J("ngClass",f.VKq(5,zi,null==z.title)),f.uIk("aria-label",z.message),f.xp6(1),f.hij(" ",z.message," ")}}function Ii(se,be){if(1&se){const z=f.EpF();f.TgZ(0,"a",10),f.NdJ("click",function(){return f.CHM(z),f.oxw().remove()}),f._uU(1," x "),f.qZA()}}function li(se,be){if(1&se&&(f.TgZ(0,"div"),f._UZ(1,"div",13),f.qZA()),2&se){const z=f.oxw();f.xp6(1),f.Udp("width",z.width+"%")}}let Ti=(()=>{class se extends Jt.FN{constructor(z,ke){super(z,ke),this.toastrService=z,this.toastPackage=ke}ngOnInit(){}action(z){return z.stopPropagation(),this.toastPackage.triggerAction(),!1}}return se.\u0275fac=function(z){return new(z||se)(f.Y36(Jt._W),f.Y36(Jt.PR))},se.\u0275cmp=f.Xpm({type:se,selectors:[["","custom-toast-component",""]],features:[f.qOj],attrs:Hr,decls:6,vars:5,consts:[[1,"toast-case"],["class","row toast-header",3,"display",4,"ngIf"],["class","row toast-body","role","alert","aria-live","polite",3,"ngClass","class","innerHTML",4,"ngIf"],["class","row toast-body","role","alert","aria-live","polite",3,"ngClass","class",4,"ngIf"],["class","btn toast-close-button btn-sm ",3,"click",4,"ngIf"],[4,"ngIf"],[1,"row","toast-header"],[1,"col-9","px-0"],[1,"col-auto","mt-5","pr-0"],["class","btn toast-close-button btn-sm",3,"click",4,"ngIf"],[1,"btn","toast-close-button","btn-sm",3,"click"],["role","alert","aria-live","polite",1,"row","toast-body",3,"ngClass","innerHTML"],["role","alert","aria-live","polite",1,"row","toast-body",3,"ngClass"],[1,"toast-progress"]],template:function(z,ke){1&z&&(f.TgZ(0,"div",0),f.YNc(1,Hi,7,7,"div",1),f.YNc(2,Ci,1,6,"div",2),f.YNc(3,_i,2,7,"div",3),f.YNc(4,Ii,2,0,"a",4),f.YNc(5,li,2,2,"div",5),f.qZA()),2&z&&(f.xp6(1),f.Q6J("ngIf",ke.title),f.xp6(1),f.Q6J("ngIf",ke.message&&ke.options.enableHtml),f.xp6(1),f.Q6J("ngIf",ke.message&&!ke.options.enableHtml),f.xp6(1),f.Q6J("ngIf",ke.options.closeButton&&null==ke.title),f.xp6(1),f.Q6J("ngIf",ke.options.progressBar))},directives:[Z.O5,Z.mk],styles:["[_nghost-%COMP%]{background-color:#fff;position:relative;overflow:hidden;margin:0 0 6px;width:300px;border-radius:3px;color:#141414;pointer-events:all;cursor:pointer}.toast-success[_nghost-%COMP%]{border:1.8px solid #51a351}.toast-info[_nghost-%COMP%]{border:1.8px solid #2f96b4}.toast-error[_nghost-%COMP%]{border:1.8px solid #bd362f}.toast-warning[_nghost-%COMP%]{border:1.8px solid #f89406}.toast-case[_ngcontent-%COMP%]{margin-left:10px}.toast-header[_ngcontent-%COMP%]{background-clip:padding-box;border-bottom:solid;border-width:1px;padding-bottom:0;padding-top:0;padding-right:0}.toast-title[_ngcontent-%COMP%]{color:#000}.toast-body[_ngcontent-%COMP%]{padding-top:.6rem}.notitle[_ngcontent-%COMP%]{margin-bottom:-1rem}.toast-close-button-custom[_ngcontent-%COMP%]{right:.2em!important;top:-1.3em!important}.toast-close-button-notitle[_ngcontent-%COMP%]{right:.1em!important;top:-1.3em!important}"],data:{animation:[(0,Cn.X$)("flyInOut",[(0,Cn.SB)("inactive",(0,Cn.oB)({opacity:0})),(0,Cn.eR)("inactive => active",(0,Cn.jt)("400ms ease-out",(0,Cn.F4)([(0,Cn.oB)({transform:"translate3d(100%, 0, 0) skewX(-30deg)",opacity:0}),(0,Cn.oB)({transform:"skewX(20deg)",opacity:1}),(0,Cn.oB)({transform:"skewX(-5deg)",opacity:1}),(0,Cn.oB)({transform:"none",opacity:1})]))),(0,Cn.eR)("active => removed",(0,Cn.jt)("400ms ease-out",(0,Cn.F4)([(0,Cn.oB)({opacity:1}),(0,Cn.oB)({transform:"translate3d(100%, 0, 0) skewX(30deg)",opacity:0})])))])]}}),se})();var yi=M(8972);let Ar=(()=>{class se{}return se.\u0275fac=function(z){return new(z||se)},se.\u0275mod=f.oAB({type:se,bootstrap:[Bt]}),se.\u0275inj=f.cJS({providers:[bn],imports:[[l.b2,Ai,oe.PW,hn.JF,Jt.Rh.forRoot({toastComponent:Ti,positionClass:"toast-bottom-right",closeButton:!0}),Ze.forRoot(),We.register("ngsw-worker.js",{enabled:true,registrationStrategy:"registerImmediately"}),Q.Is,yi.m]]}),se})();(0,f.G48)(),l.q6().bootstrapModule(Ar).catch(se=>console.error(se))},9814:(St,Se,M)=>{M.d(Se,{l3:()=>Z,_j:()=>l,LC:()=>f,ZN:()=>Qe,jt:()=>oe,F4:()=>Q,vP:()=>te,SB:()=>W,oB:()=>G,eR:()=>ne,X$:()=>o,ZE:()=>Ge,k1:()=>Nt});class l{}class f{}const Z="*";function o(rt,Ce){return{type:7,name:rt,definitions:Ce,options:{}}}function oe(rt,Ce=null){return{type:4,styles:Ce,timings:rt}}function te(rt,Ce=null){return{type:2,steps:rt,options:Ce}}function G(rt){return{type:6,styles:rt,offset:null}}function W(rt,Ce,ht){return{type:0,name:rt,styles:Ce,options:ht}}function Q(rt){return{type:5,steps:rt}}function ne(rt,Ce,ht=null){return{type:1,expr:rt,animation:Ce,options:ht}}function dt(rt){Promise.resolve(null).then(rt)}class Qe{constructor(Ce=0,ht=0){this._onDoneFns=[],this._onStartFns=[],this._onDestroyFns=[],this._started=!1,this._destroyed=!1,this._finished=!1,this._position=0,this.parentPlayer=null,this.totalTime=Ce+ht}_onFinish(){this._finished||(this._finished=!0,this._onDoneFns.forEach(Ce=>Ce()),this._onDoneFns=[])}onStart(Ce){this._onStartFns.push(Ce)}onDone(Ce){this._onDoneFns.push(Ce)}onDestroy(Ce){this._onDestroyFns.push(Ce)}hasStarted(){return this._started}init(){}play(){this.hasStarted()||(this._onStart(),this.triggerMicrotask()),this._started=!0}triggerMicrotask(){dt(()=>this._onFinish())}_onStart(){this._onStartFns.forEach(Ce=>Ce()),this._onStartFns=[]}pause(){}restart(){}finish(){this._onFinish()}destroy(){this._destroyed||(this._destroyed=!0,this.hasStarted()||this._onStart(),this.finish(),this._onDestroyFns.forEach(Ce=>Ce()),this._onDestroyFns=[])}reset(){this._started=!1}setPosition(Ce){this._position=this.totalTime?Ce*this.totalTime:1}getPosition(){return this.totalTime?this._position/this.totalTime:1}triggerCallback(Ce){const ht="start"==Ce?this._onStartFns:this._onDoneFns;ht.forEach(at=>at()),ht.length=0}}class Ge{constructor(Ce){this._onDoneFns=[],this._onStartFns=[],this._finished=!1,this._started=!1,this._destroyed=!1,this._onDestroyFns=[],this.parentPlayer=null,this.totalTime=0,this.players=Ce;let ht=0,at=0,wt=0;const xt=this.players.length;0==xt?dt(()=>this._onFinish()):this.players.forEach(Yt=>{Yt.onDone(()=>{++ht==xt&&this._onFinish()}),Yt.onDestroy(()=>{++at==xt&&this._onDestroy()}),Yt.onStart(()=>{++wt==xt&&this._onStart()})}),this.totalTime=this.players.reduce((Yt,Kt)=>Math.max(Yt,Kt.totalTime),0)}_onFinish(){this._finished||(this._finished=!0,this._onDoneFns.forEach(Ce=>Ce()),this._onDoneFns=[])}init(){this.players.forEach(Ce=>Ce.init())}onStart(Ce){this._onStartFns.push(Ce)}_onStart(){this.hasStarted()||(this._started=!0,this._onStartFns.forEach(Ce=>Ce()),this._onStartFns=[])}onDone(Ce){this._onDoneFns.push(Ce)}onDestroy(Ce){this._onDestroyFns.push(Ce)}hasStarted(){return this._started}play(){this.parentPlayer||this.init(),this._onStart(),this.players.forEach(Ce=>Ce.play())}pause(){this.players.forEach(Ce=>Ce.pause())}restart(){this.players.forEach(Ce=>Ce.restart())}finish(){this._onFinish(),this.players.forEach(Ce=>Ce.finish())}destroy(){this._onDestroy()}_onDestroy(){this._destroyed||(this._destroyed=!0,this._onFinish(),this.players.forEach(Ce=>Ce.destroy()),this._onDestroyFns.forEach(Ce=>Ce()),this._onDestroyFns=[])}reset(){this.players.forEach(Ce=>Ce.reset()),this._destroyed=!1,this._finished=!1,this._started=!1}setPosition(Ce){const ht=Ce*this.totalTime;this.players.forEach(at=>{const wt=at.totalTime?Math.min(1,ht/at.totalTime):1;at.setPosition(wt)})}getPosition(){const Ce=this.players.reduce((ht,at)=>null===ht||at.totalTime>ht.totalTime?at:ht,null);return null!=Ce?Ce.getPosition():0}beforeDestroy(){this.players.forEach(Ce=>{Ce.beforeDestroy&&Ce.beforeDestroy()})}triggerCallback(Ce){const ht="start"==Ce?this._onStartFns:this._onDoneFns;ht.forEach(at=>at()),ht.length=0}}const Nt="!"},7497:(St,Se,M)=>{M.d(Se,{s1:()=>ft,tE:()=>Vn,qV:()=>jt,qm:()=>Je,ic:()=>Dt,X6:()=>et,yG:()=>nt});var l=M(6019),f=M(3668),Z=M(3405),o=M(1346),oe=M(4099),U=M(2411),te=M(1628),G=M(1366),W=M(5686),Q=M(8735),ne=M(8053),ie=M(6636),Ne=M(5488),qe=M(5389),it=M(8805),Le=M(348),dt=M(928);class ft extends class{constructor(fe){this._items=fe,this._activeItemIndex=-1,this._activeItem=null,this._wrap=!1,this._letterKeyStream=new Z.xQ,this._typeaheadSubscription=o.w.EMPTY,this._vertical=!0,this._allowedModifierKeys=[],this._homeAndEnd=!1,this._skipPredicateFn=ae=>ae.disabled,this._pressedLetters=[],this.tabOut=new Z.xQ,this.change=new Z.xQ,fe instanceof f.n_E&&fe.changes.subscribe(ae=>{if(this._activeItem){const st=ae.toArray().indexOf(this._activeItem);st>-1&&st!==this._activeItemIndex&&(this._activeItemIndex=st)}})}skipPredicate(fe){return this._skipPredicateFn=fe,this}withWrap(fe=!0){return this._wrap=fe,this}withVerticalOrientation(fe=!0){return this._vertical=fe,this}withHorizontalOrientation(fe){return this._horizontal=fe,this}withAllowedModifierKeys(fe){return this._allowedModifierKeys=fe,this}withTypeAhead(fe=200){return this._typeaheadSubscription.unsubscribe(),this._typeaheadSubscription=this._letterKeyStream.pipe((0,G.b)(ae=>this._pressedLetters.push(ae)),(0,W.b)(fe),(0,Q.h)(()=>this._pressedLetters.length>0),(0,ne.U)(()=>this._pressedLetters.join(""))).subscribe(ae=>{const je=this._getItemsArray();for(let st=1;st<je.length+1;st++){const kt=(this._activeItemIndex+st)%je.length,fn=je[kt];if(!this._skipPredicateFn(fn)&&0===fn.getLabel().toUpperCase().trim().indexOf(ae)){this.setActiveItem(kt);break}}this._pressedLetters=[]}),this}withHomeAndEnd(fe=!0){return this._homeAndEnd=fe,this}setActiveItem(fe){const ae=this._activeItem;this.updateActiveItem(fe),this._activeItem!==ae&&this.change.next(this._activeItemIndex)}onKeydown(fe){const ae=fe.keyCode,st=["altKey","ctrlKey","metaKey","shiftKey"].every(kt=>!fe[kt]||this._allowedModifierKeys.indexOf(kt)>-1);switch(ae){case te.Mf:return void this.tabOut.next();case te.JH:if(this._vertical&&st){this.setNextItemActive();break}return;case te.LH:if(this._vertical&&st){this.setPreviousItemActive();break}return;case te.SV:if(this._horizontal&&st){"rtl"===this._horizontal?this.setPreviousItemActive():this.setNextItemActive();break}return;case te.oh:if(this._horizontal&&st){"rtl"===this._horizontal?this.setNextItemActive():this.setPreviousItemActive();break}return;case te.Sd:if(this._homeAndEnd&&st){this.setFirstItemActive();break}return;case te.uR:if(this._homeAndEnd&&st){this.setLastItemActive();break}return;default:return void((st||(0,te.Vb)(fe,"shiftKey"))&&(fe.key&&1===fe.key.length?this._letterKeyStream.next(fe.key.toLocaleUpperCase()):(ae>=te.A&&ae<=te.Z||ae>=te.xE&&ae<=te.aO)&&this._letterKeyStream.next(String.fromCharCode(ae))))}this._pressedLetters=[],fe.preventDefault()}get activeItemIndex(){return this._activeItemIndex}get activeItem(){return this._activeItem}isTyping(){return this._pressedLetters.length>0}setFirstItemActive(){this._setActiveItemByIndex(0,1)}setLastItemActive(){this._setActiveItemByIndex(this._items.length-1,-1)}setNextItemActive(){this._activeItemIndex<0?this.setFirstItemActive():this._setActiveItemByDelta(1)}setPreviousItemActive(){this._activeItemIndex<0&&this._wrap?this.setLastItemActive():this._setActiveItemByDelta(-1)}updateActiveItem(fe){const ae=this._getItemsArray(),je="number"==typeof fe?fe:ae.indexOf(fe),st=ae[je];this._activeItem=null==st?null:st,this._activeItemIndex=je}_setActiveItemByDelta(fe){this._wrap?this._setActiveInWrapMode(fe):this._setActiveInDefaultMode(fe)}_setActiveInWrapMode(fe){const ae=this._getItemsArray();for(let je=1;je<=ae.length;je++){const st=(this._activeItemIndex+fe*je+ae.length)%ae.length;if(!this._skipPredicateFn(ae[st]))return void this.setActiveItem(st)}}_setActiveInDefaultMode(fe){this._setActiveItemByIndex(this._activeItemIndex+fe,fe)}_setActiveItemByIndex(fe,ae){const je=this._getItemsArray();if(je[fe]){for(;this._skipPredicateFn(je[fe]);)if(!je[fe+=ae])return;this.setActiveItem(fe)}}_getItemsArray(){return this._items instanceof f.n_E?this._items.toArray():this._items}}{setActiveItem(fe){this.activeItem&&this.activeItem.setInactiveStyles(),super.setActiveItem(fe),this.activeItem&&this.activeItem.setActiveStyles()}}let Dt=(()=>{class ze{constructor(ae){this._platform=ae}isDisabled(ae){return ae.hasAttribute("disabled")}isVisible(ae){return function(ze){return!!(ze.offsetWidth||ze.offsetHeight||"function"==typeof ze.getClientRects&&ze.getClientRects().length)}(ae)&&"visible"===getComputedStyle(ae).visibility}isTabbable(ae){if(!this._platform.isBrowser)return!1;const je=function(ze){try{return ze.frameElement}catch(fe){return null}}(function(ze){return ze.ownerDocument&&ze.ownerDocument.defaultView||window}(ae));if(je&&(-1===Ve(je)||!this.isVisible(je)))return!1;let st=ae.nodeName.toLowerCase(),kt=Ve(ae);return ae.hasAttribute("contenteditable")?-1!==kt:!("iframe"===st||"object"===st||this._platform.WEBKIT&&this._platform.IOS&&!function(ze){let fe=ze.nodeName.toLowerCase(),ae="input"===fe&&ze.type;return"text"===ae||"password"===ae||"select"===fe||"textarea"===fe}(ae))&&("audio"===st?!!ae.hasAttribute("controls")&&-1!==kt:"video"===st?-1!==kt&&(null!==kt||this._platform.FIREFOX||ae.hasAttribute("controls")):ae.tabIndex>=0)}isFocusable(ae,je){return function(ze){return!function(ze){return function(ze){return"input"==ze.nodeName.toLowerCase()}(ze)&&"hidden"==ze.type}(ze)&&(function(ze){let fe=ze.nodeName.toLowerCase();return"input"===fe||"select"===fe||"button"===fe||"textarea"===fe}(ze)||function(ze){return function(ze){return"a"==ze.nodeName.toLowerCase()}(ze)&&ze.hasAttribute("href")}(ze)||ze.hasAttribute("contenteditable")||Fe(ze))}(ae)&&!this.isDisabled(ae)&&((null==je?void 0:je.ignoreVisibility)||this.isVisible(ae))}}return ze.\u0275fac=function(ae){return new(ae||ze)(f.LFG(dt.t4))},ze.\u0275prov=f.Yz7({token:ze,factory:ze.\u0275fac,providedIn:"root"}),ze})();function Fe(ze){if(!ze.hasAttribute("tabindex")||void 0===ze.tabIndex)return!1;let fe=ze.getAttribute("tabindex");return!(!fe||isNaN(parseInt(fe,10)))}function Ve(ze){if(!Fe(ze))return null;const fe=parseInt(ze.getAttribute("tabindex")||"",10);return isNaN(fe)?-1:fe}class It{constructor(fe,ae,je,st,kt=!1){this._element=fe,this._checker=ae,this._ngZone=je,this._document=st,this._hasAttached=!1,this.startAnchorListener=()=>this.focusLastTabbableElement(),this.endAnchorListener=()=>this.focusFirstTabbableElement(),this._enabled=!0,kt||this.attachAnchors()}get enabled(){return this._enabled}set enabled(fe){this._enabled=fe,this._startAnchor&&this._endAnchor&&(this._toggleAnchorTabIndex(fe,this._startAnchor),this._toggleAnchorTabIndex(fe,this._endAnchor))}destroy(){const fe=this._startAnchor,ae=this._endAnchor;fe&&(fe.removeEventListener("focus",this.startAnchorListener),fe.remove()),ae&&(ae.removeEventListener("focus",this.endAnchorListener),ae.remove()),this._startAnchor=this._endAnchor=null,this._hasAttached=!1}attachAnchors(){return!!this._hasAttached||(this._ngZone.runOutsideAngular(()=>{this._startAnchor||(this._startAnchor=this._createAnchor(),this._startAnchor.addEventListener("focus",this.startAnchorListener)),this._endAnchor||(this._endAnchor=this._createAnchor(),this._endAnchor.addEventListener("focus",this.endAnchorListener))}),this._element.parentNode&&(this._element.parentNode.insertBefore(this._startAnchor,this._element),this._element.parentNode.insertBefore(this._endAnchor,this._element.nextSibling),this._hasAttached=!0),this._hasAttached)}focusInitialElementWhenReady(fe){return new Promise(ae=>{this._executeOnStable(()=>ae(this.focusInitialElement(fe)))})}focusFirstTabbableElementWhenReady(fe){return new Promise(ae=>{this._executeOnStable(()=>ae(this.focusFirstTabbableElement(fe)))})}focusLastTabbableElementWhenReady(fe){return new Promise(ae=>{this._executeOnStable(()=>ae(this.focusLastTabbableElement(fe)))})}_getRegionBoundary(fe){let ae=this._element.querySelectorAll(`[cdk-focus-region-${fe}], [cdkFocusRegion${fe}], [cdk-focus-${fe}]`);for(let je=0;je<ae.length;je++)ae[je].hasAttribute(`cdk-focus-${fe}`)?console.warn(`Found use of deprecated attribute 'cdk-focus-${fe}', use 'cdkFocusRegion${fe}' instead. The deprecated attribute will be removed in 8.0.0.`,ae[je]):ae[je].hasAttribute(`cdk-focus-region-${fe}`)&&console.warn(`Found use of deprecated attribute 'cdk-focus-region-${fe}', use 'cdkFocusRegion${fe}' instead. The deprecated attribute will be removed in 8.0.0.`,ae[je]);return"start"==fe?ae.length?ae[0]:this._getFirstTabbableElement(this._element):ae.length?ae[ae.length-1]:this._getLastTabbableElement(this._element)}focusInitialElement(fe){const ae=this._element.querySelector("[cdk-focus-initial], [cdkFocusInitial]");if(ae){if(ae.hasAttribute("cdk-focus-initial")&&console.warn("Found use of deprecated attribute 'cdk-focus-initial', use 'cdkFocusInitial' instead. The deprecated attribute will be removed in 8.0.0",ae),!this._checker.isFocusable(ae)){const je=this._getFirstTabbableElement(ae);return null==je||je.focus(fe),!!je}return ae.focus(fe),!0}return this.focusFirstTabbableElement(fe)}focusFirstTabbableElement(fe){const ae=this._getRegionBoundary("start");return ae&&ae.focus(fe),!!ae}focusLastTabbableElement(fe){const ae=this._getRegionBoundary("end");return ae&&ae.focus(fe),!!ae}hasAttached(){return this._hasAttached}_getFirstTabbableElement(fe){if(this._checker.isFocusable(fe)&&this._checker.isTabbable(fe))return fe;const ae=fe.children;for(let je=0;je<ae.length;je++){const st=ae[je].nodeType===this._document.ELEMENT_NODE?this._getFirstTabbableElement(ae[je]):null;if(st)return st}return null}_getLastTabbableElement(fe){if(this._checker.isFocusable(fe)&&this._checker.isTabbable(fe))return fe;const ae=fe.children;for(let je=ae.length-1;je>=0;je--){const st=ae[je].nodeType===this._document.ELEMENT_NODE?this._getLastTabbableElement(ae[je]):null;if(st)return st}return null}_createAnchor(){const fe=this._document.createElement("div");return this._toggleAnchorTabIndex(this._enabled,fe),fe.classList.add("cdk-visually-hidden"),fe.classList.add("cdk-focus-trap-anchor"),fe.setAttribute("aria-hidden","true"),fe}_toggleAnchorTabIndex(fe,ae){fe?ae.setAttribute("tabindex","0"):ae.removeAttribute("tabindex")}toggleAnchors(fe){this._startAnchor&&this._endAnchor&&(this._toggleAnchorTabIndex(fe,this._startAnchor),this._toggleAnchorTabIndex(fe,this._endAnchor))}_executeOnStable(fe){this._ngZone.isStable?fe():this._ngZone.onStable.pipe((0,ie.q)(1)).subscribe(fe)}}let jt=(()=>{class ze{constructor(ae,je,st){this._checker=ae,this._ngZone=je,this._document=st}create(ae,je=!1){return new It(ae,this._checker,this._ngZone,this._document,je)}}return ze.\u0275fac=function(ae){return new(ae||ze)(f.LFG(Dt),f.LFG(f.R0b),f.LFG(l.K0))},ze.\u0275prov=f.Yz7({token:ze,factory:ze.\u0275fac,providedIn:"root"}),ze})();function et(ze){return 0===ze.offsetX&&0===ze.offsetY}function nt(ze){const fe=ze.touches&&ze.touches[0]||ze.changedTouches&&ze.changedTouches[0];return!(!fe||-1!==fe.identifier||null!=fe.radiusX&&1!==fe.radiusX||null!=fe.radiusY&&1!==fe.radiusY)}const Ae=new f.OlP("cdk-input-modality-detector-options"),le={ignoreKeys:[te.zL,te.jx,te.b2,te.MW,te.JU]},Be=(0,dt.i$)({passive:!0,capture:!0});let ct=(()=>{class ze{constructor(ae,je,st,kt){this._platform=ae,this._mostRecentTarget=null,this._modality=new oe.X(null),this._lastTouchMs=0,this._onKeydown=fn=>{var $n,ri;(null==(ri=null==($n=this._options)?void 0:$n.ignoreKeys)?void 0:ri.some(Xn=>Xn===fn.keyCode))||(this._modality.next("keyboard"),this._mostRecentTarget=(0,dt.sA)(fn))},this._onMousedown=fn=>{Date.now()-this._lastTouchMs<650||(this._modality.next(et(fn)?"keyboard":"mouse"),this._mostRecentTarget=(0,dt.sA)(fn))},this._onTouchstart=fn=>{nt(fn)?this._modality.next("keyboard"):(this._lastTouchMs=Date.now(),this._modality.next("touch"),this._mostRecentTarget=(0,dt.sA)(fn))},this._options=Wt(Wt({},le),kt),this.modalityDetected=this._modality.pipe((0,Ne.T)(1)),this.modalityChanged=this.modalityDetected.pipe((0,qe.x)()),ae.isBrowser&&je.runOutsideAngular(()=>{st.addEventListener("keydown",this._onKeydown,Be),st.addEventListener("mousedown",this._onMousedown,Be),st.addEventListener("touchstart",this._onTouchstart,Be)})}get mostRecentModality(){return this._modality.value}ngOnDestroy(){this._modality.complete(),this._platform.isBrowser&&(document.removeEventListener("keydown",this._onKeydown,Be),document.removeEventListener("mousedown",this._onMousedown,Be),document.removeEventListener("touchstart",this._onTouchstart,Be))}}return ze.\u0275fac=function(ae){return new(ae||ze)(f.LFG(dt.t4),f.LFG(f.R0b),f.LFG(l.K0),f.LFG(Ae,8))},ze.\u0275prov=f.Yz7({token:ze,factory:ze.\u0275fac,providedIn:"root"}),ze})();const Pn=new f.OlP("cdk-focus-monitor-default-options"),hn=(0,dt.i$)({passive:!0,capture:!0});let Vn=(()=>{class ze{constructor(ae,je,st,kt,fn){this._ngZone=ae,this._platform=je,this._inputModalityDetector=st,this._origin=null,this._windowFocused=!1,this._originFromTouchInteraction=!1,this._elementInfo=new Map,this._monitoredElementCount=0,this._rootNodeFocusListenerCount=new Map,this._windowFocusListener=()=>{this._windowFocused=!0,this._windowFocusTimeoutId=setTimeout(()=>this._windowFocused=!1)},this._stopInputModalityDetector=new Z.xQ,this._rootNodeFocusAndBlurListener=$n=>{const ri=(0,dt.sA)($n),Xn="focus"===$n.type?this._onFocus:this._onBlur;for(let Tt=ri;Tt;Tt=Tt.parentElement)Xn.call(this,$n,Tt)},this._document=kt,this._detectionMode=(null==fn?void 0:fn.detectionMode)||0}monitor(ae,je=!1){const st=(0,Le.fI)(ae);if(!this._platform.isBrowser||1!==st.nodeType)return(0,U.of)(null);const kt=(0,dt.kV)(st)||this._getDocument(),fn=this._elementInfo.get(st);if(fn)return je&&(fn.checkChildren=!0),fn.subject;const $n={checkChildren:je,subject:new Z.xQ,rootNode:kt};return this._elementInfo.set(st,$n),this._registerGlobalListeners($n),$n.subject}stopMonitoring(ae){const je=(0,Le.fI)(ae),st=this._elementInfo.get(je);st&&(st.subject.complete(),this._setClasses(je),this._elementInfo.delete(je),this._removeGlobalListeners(st))}focusVia(ae,je,st){const kt=(0,Le.fI)(ae);kt===this._getDocument().activeElement?this._getClosestElementsInfo(kt).forEach(([$n,ri])=>this._originChanged($n,je,ri)):(this._setOrigin(je),"function"==typeof kt.focus&&kt.focus(st))}ngOnDestroy(){this._elementInfo.forEach((ae,je)=>this.stopMonitoring(je))}_getDocument(){return this._document||document}_getWindow(){return this._getDocument().defaultView||window}_getFocusOrigin(ae){return this._origin?this._originFromTouchInteraction?this._shouldBeAttributedToTouch(ae)?"touch":"program":this._origin:this._windowFocused&&this._lastFocusOrigin?this._lastFocusOrigin:"program"}_shouldBeAttributedToTouch(ae){return 1===this._detectionMode||!!(null==ae?void 0:ae.contains(this._inputModalityDetector._mostRecentTarget))}_setClasses(ae,je){ae.classList.toggle("cdk-focused",!!je),ae.classList.toggle("cdk-touch-focused","touch"===je),ae.classList.toggle("cdk-keyboard-focused","keyboard"===je),ae.classList.toggle("cdk-mouse-focused","mouse"===je),ae.classList.toggle("cdk-program-focused","program"===je)}_setOrigin(ae,je=!1){this._ngZone.runOutsideAngular(()=>{this._origin=ae,this._originFromTouchInteraction="touch"===ae&&je,0===this._detectionMode&&(clearTimeout(this._originTimeoutId),this._originTimeoutId=setTimeout(()=>this._origin=null,this._originFromTouchInteraction?650:1))})}_onFocus(ae,je){const st=this._elementInfo.get(je),kt=(0,dt.sA)(ae);!st||!st.checkChildren&&je!==kt||this._originChanged(je,this._getFocusOrigin(kt),st)}_onBlur(ae,je){const st=this._elementInfo.get(je);!st||st.checkChildren&&ae.relatedTarget instanceof Node&&je.contains(ae.relatedTarget)||(this._setClasses(je),this._emitOrigin(st.subject,null))}_emitOrigin(ae,je){this._ngZone.run(()=>ae.next(je))}_registerGlobalListeners(ae){if(!this._platform.isBrowser)return;const je=ae.rootNode,st=this._rootNodeFocusListenerCount.get(je)||0;st||this._ngZone.runOutsideAngular(()=>{je.addEventListener("focus",this._rootNodeFocusAndBlurListener,hn),je.addEventListener("blur",this._rootNodeFocusAndBlurListener,hn)}),this._rootNodeFocusListenerCount.set(je,st+1),1==++this._monitoredElementCount&&(this._ngZone.runOutsideAngular(()=>{this._getWindow().addEventListener("focus",this._windowFocusListener)}),this._inputModalityDetector.modalityDetected.pipe((0,it.R)(this._stopInputModalityDetector)).subscribe(kt=>{this._setOrigin(kt,!0)}))}_removeGlobalListeners(ae){const je=ae.rootNode;if(this._rootNodeFocusListenerCount.has(je)){const st=this._rootNodeFocusListenerCount.get(je);st>1?this._rootNodeFocusListenerCount.set(je,st-1):(je.removeEventListener("focus",this._rootNodeFocusAndBlurListener,hn),je.removeEventListener("blur",this._rootNodeFocusAndBlurListener,hn),this._rootNodeFocusListenerCount.delete(je))}--this._monitoredElementCount||(this._getWindow().removeEventListener("focus",this._windowFocusListener),this._stopInputModalityDetector.next(),clearTimeout(this._windowFocusTimeoutId),clearTimeout(this._originTimeoutId))}_originChanged(ae,je,st){this._setClasses(ae,je),this._emitOrigin(st.subject,je),this._lastFocusOrigin=je}_getClosestElementsInfo(ae){const je=[];return this._elementInfo.forEach((st,kt)=>{(kt===ae||st.checkChildren&&kt.contains(ae))&&je.push([kt,st])}),je}}return ze.\u0275fac=function(ae){return new(ae||ze)(f.LFG(f.R0b),f.LFG(dt.t4),f.LFG(ct),f.LFG(l.K0,8),f.LFG(Pn,8))},ze.\u0275prov=f.Yz7({token:ze,factory:ze.\u0275fac,providedIn:"root"}),ze})();const He="cdk-high-contrast-black-on-white",ye="cdk-high-contrast-white-on-black",he="cdk-high-contrast-active";let Je=(()=>{class ze{constructor(ae,je){this._platform=ae,this._document=je}getHighContrastMode(){if(!this._platform.isBrowser)return 0;const ae=this._document.createElement("div");ae.style.backgroundColor="rgb(1,2,3)",ae.style.position="absolute",this._document.body.appendChild(ae);const je=this._document.defaultView||window,st=je&&je.getComputedStyle?je.getComputedStyle(ae):null,kt=(st&&st.backgroundColor||"").replace(/ /g,"");switch(ae.remove(),kt){case"rgb(0,0,0)":return 2;case"rgb(255,255,255)":return 1}return 0}_applyBodyHighContrastModeCssClasses(){if(!this._hasCheckedHighContrastMode&&this._platform.isBrowser&&this._document.body){const ae=this._document.body.classList;ae.remove(he),ae.remove(He),ae.remove(ye),this._hasCheckedHighContrastMode=!0;const je=this.getHighContrastMode();1===je?(ae.add(he),ae.add(He)):2===je&&(ae.add(he),ae.add(ye))}}}return ze.\u0275fac=function(ae){return new(ae||ze)(f.LFG(dt.t4),f.LFG(l.K0))},ze.\u0275prov=f.Yz7({token:ze,factory:ze.\u0275fac,providedIn:"root"}),ze})()},8290:(St,Se,M)=>{M.d(Se,{vT:()=>te,Is:()=>oe});var l=M(3668),f=M(6019);const Z=new l.OlP("cdk-dir-doc",{providedIn:"root",factory:function(){return(0,l.f3M)(f.K0)}});let oe=(()=>{class G{constructor(Q){if(this.value="ltr",this.change=new l.vpe,Q){const ie=Q.documentElement?Q.documentElement.dir:null,Ne=(Q.body?Q.body.dir:null)||ie;this.value="ltr"===Ne||"rtl"===Ne?Ne:"ltr"}}ngOnDestroy(){this.change.complete()}}return G.\u0275fac=function(Q){return new(Q||G)(l.LFG(Z,8))},G.\u0275prov=l.Yz7({token:G,factory:G.\u0275fac,providedIn:"root"}),G})(),te=(()=>{class G{}return G.\u0275fac=function(Q){return new(Q||G)},G.\u0275mod=l.oAB({type:G}),G.\u0275inj=l.cJS({}),G})()},348:(St,Se,M)=>{M.d(Se,{Eq:()=>oe,Ig:()=>f,HM:()=>U,fI:()=>te,du:()=>G});var l=M(3668);function f(W){return null!=W&&"false"!=`${W}`}function oe(W){return Array.isArray(W)?W:[W]}function U(W){return null==W?"":"string"==typeof W?W:`${W}px`}function te(W){return W instanceof l.SBq?W.nativeElement:W}function G(W,Q=/\s+/){const ne=[];if(null!=W){const ie=Array.isArray(W)?W:`${W}`.split(Q);for(const Ne of ie){const qe=`${Ne}`.trim();qe&&ne.push(qe)}}return ne}},1628:(St,Se,M)=>{M.d(Se,{A:()=>sn,zL:()=>G,jx:()=>te,JH:()=>Nt,uR:()=>it,K5:()=>oe,hY:()=>ne,Sd:()=>Le,oh:()=>dt,b2:()=>zi,MW:()=>mt,aO:()=>Ye,SV:()=>Ge,JU:()=>U,L_:()=>ie,Mf:()=>Z,LH:()=>Qe,Z:()=>Ct,xE:()=>wt,Vb:()=>Ci});const Z=9,oe=13,U=16,te=17,G=18,ne=27,ie=32,it=35,Le=36,dt=37,Qe=38,Ge=39,Nt=40,wt=48,Ye=57,sn=65,Ct=90,mt=91,zi=224;function Ci(_i,...Ii){return Ii.length?Ii.some(li=>_i[li]):_i.altKey||_i.shiftKey||_i.ctrlKey||_i.metaKey}},7219:(St,Se,M)=>{M.d(Se,{aV:()=>Fe,X_:()=>Ce,Xj:()=>on,U8:()=>tn});var l=M(7226),f=M(6019),Z=M(3668),o=M(348),oe=M(928),U=M(8290),te=M(5711),G=M(3405),W=M(1346),Q=M(8526),ne=M(6636),ie=M(8805);const Ne=(0,oe.Mq)();class qe{constructor($,X){this._viewportRuler=$,this._previousHTMLStyles={top:"",left:""},this._isEnabled=!1,this._document=X}attach(){}enable(){if(this._canBeEnabled()){const $=this._document.documentElement;this._previousScrollPosition=this._viewportRuler.getViewportScrollPosition(),this._previousHTMLStyles.left=$.style.left||"",this._previousHTMLStyles.top=$.style.top||"",$.style.left=(0,o.HM)(-this._previousScrollPosition.left),$.style.top=(0,o.HM)(-this._previousScrollPosition.top),$.classList.add("cdk-global-scrollblock"),this._isEnabled=!0}}disable(){if(this._isEnabled){const $=this._document.documentElement,Te=$.style,et=this._document.body.style,nt=Te.scrollBehavior||"",Ae=et.scrollBehavior||"";this._isEnabled=!1,Te.left=this._previousHTMLStyles.left,Te.top=this._previousHTMLStyles.top,$.classList.remove("cdk-global-scrollblock"),Ne&&(Te.scrollBehavior=et.scrollBehavior="auto"),window.scroll(this._previousScrollPosition.left,this._previousScrollPosition.top),Ne&&(Te.scrollBehavior=nt,et.scrollBehavior=Ae)}}_canBeEnabled(){if(this._document.documentElement.classList.contains("cdk-global-scrollblock")||this._isEnabled)return!1;const X=this._document.body,Te=this._viewportRuler.getViewportSize();return X.scrollHeight>Te.height||X.scrollWidth>Te.width}}class Le{constructor($,X,Te,et){this._scrollDispatcher=$,this._ngZone=X,this._viewportRuler=Te,this._config=et,this._scrollSubscription=null,this._detach=()=>{this.disable(),this._overlayRef.hasAttached()&&this._ngZone.run(()=>this._overlayRef.detach())}}attach($){this._overlayRef=$}enable(){if(this._scrollSubscription)return;const $=this._scrollDispatcher.scrolled(0);this._config&&this._config.threshold&&this._config.threshold>1?(this._initialScrollPosition=this._viewportRuler.getViewportScrollPosition().top,this._scrollSubscription=$.subscribe(()=>{const X=this._viewportRuler.getViewportScrollPosition().top;Math.abs(X-this._initialScrollPosition)>this._config.threshold?this._detach():this._overlayRef.updatePosition()})):this._scrollSubscription=$.subscribe(this._detach)}disable(){this._scrollSubscription&&(this._scrollSubscription.unsubscribe(),this._scrollSubscription=null)}detach(){this.disable(),this._overlayRef=null}}class dt{enable(){}disable(){}attach(){}}function Qe(Xe,$){return $.some(X=>Xe.bottom<X.top||Xe.top>X.bottom||Xe.right<X.left||Xe.left>X.right)}function Ge(Xe,$){return $.some(X=>Xe.top<X.top||Xe.bottom>X.bottom||Xe.left<X.left||Xe.right>X.right)}class Nt{constructor($,X,Te,et){this._scrollDispatcher=$,this._viewportRuler=X,this._ngZone=Te,this._config=et,this._scrollSubscription=null}attach($){this._overlayRef=$}enable(){this._scrollSubscription||(this._scrollSubscription=this._scrollDispatcher.scrolled(this._config?this._config.scrollThrottle:0).subscribe(()=>{if(this._overlayRef.updatePosition(),this._config&&this._config.autoClose){const X=this._overlayRef.overlayElement.getBoundingClientRect(),{width:Te,height:et}=this._viewportRuler.getViewportSize();Qe(X,[{width:Te,height:et,bottom:et,right:Te,top:0,left:0}])&&(this.disable(),this._ngZone.run(()=>this._overlayRef.detach()))}}))}disable(){this._scrollSubscription&&(this._scrollSubscription.unsubscribe(),this._scrollSubscription=null)}detach(){this.disable(),this._overlayRef=null}}let rt=(()=>{class Xe{constructor(X,Te,et,nt){this._scrollDispatcher=X,this._viewportRuler=Te,this._ngZone=et,this.noop=()=>new dt,this.close=Ae=>new Le(this._scrollDispatcher,this._ngZone,this._viewportRuler,Ae),this.block=()=>new qe(this._viewportRuler,this._document),this.reposition=Ae=>new Nt(this._scrollDispatcher,this._viewportRuler,this._ngZone,Ae),this._document=nt}}return Xe.\u0275fac=function(X){return new(X||Xe)(Z.LFG(l.mF),Z.LFG(l.rL),Z.LFG(Z.R0b),Z.LFG(f.K0))},Xe.\u0275prov=Z.Yz7({token:Xe,factory:Xe.\u0275fac,providedIn:"root"}),Xe})();class Ce{constructor($){if(this.scrollStrategy=new dt,this.panelClass="",this.hasBackdrop=!1,this.backdropClass="cdk-overlay-dark-backdrop",this.disposeOnNavigation=!1,$){const X=Object.keys($);for(const Te of X)void 0!==$[Te]&&(this[Te]=$[Te])}}}class wt{constructor($,X){this.connectionPair=$,this.scrollableViewProperties=X}}let Kt=(()=>{class Xe{constructor(X){this._attachedOverlays=[],this._document=X}ngOnDestroy(){this.detach()}add(X){this.remove(X),this._attachedOverlays.push(X)}remove(X){const Te=this._attachedOverlays.indexOf(X);Te>-1&&this._attachedOverlays.splice(Te,1),0===this._attachedOverlays.length&&this.detach()}}return Xe.\u0275fac=function(X){return new(X||Xe)(Z.LFG(f.K0))},Xe.\u0275prov=Z.Yz7({token:Xe,factory:Xe.\u0275fac,providedIn:"root"}),Xe})(),Zt=(()=>{class Xe extends Kt{constructor(X){super(X),this._keydownListener=Te=>{const et=this._attachedOverlays;for(let nt=et.length-1;nt>-1;nt--)if(et[nt]._keydownEvents.observers.length>0){et[nt]._keydownEvents.next(Te);break}}}add(X){super.add(X),this._isAttached||(this._document.body.addEventListener("keydown",this._keydownListener),this._isAttached=!0)}detach(){this._isAttached&&(this._document.body.removeEventListener("keydown",this._keydownListener),this._isAttached=!1)}}return Xe.\u0275fac=function(X){return new(X||Xe)(Z.LFG(f.K0))},Xe.\u0275prov=Z.Yz7({token:Xe,factory:Xe.\u0275fac,providedIn:"root"}),Xe})(),Ut=(()=>{class Xe extends Kt{constructor(X,Te){super(X),this._platform=Te,this._cursorStyleIsSet=!1,this._pointerDownListener=et=>{this._pointerDownEventTarget=(0,oe.sA)(et)},this._clickListener=et=>{const nt=(0,oe.sA)(et),Ae="click"===et.type&&this._pointerDownEventTarget?this._pointerDownEventTarget:nt;this._pointerDownEventTarget=null;const le=this._attachedOverlays.slice();for(let ue=le.length-1;ue>-1;ue--){const Be=le[ue];if(!(Be._outsidePointerEvents.observers.length<1)&&Be.hasAttached()){if(Be.overlayElement.contains(nt)||Be.overlayElement.contains(Ae))break;Be._outsidePointerEvents.next(et)}}}}add(X){if(super.add(X),!this._isAttached){const Te=this._document.body;Te.addEventListener("pointerdown",this._pointerDownListener,!0),Te.addEventListener("click",this._clickListener,!0),Te.addEventListener("auxclick",this._clickListener,!0),Te.addEventListener("contextmenu",this._clickListener,!0),this._platform.IOS&&!this._cursorStyleIsSet&&(this._cursorOriginalValue=Te.style.cursor,Te.style.cursor="pointer",this._cursorStyleIsSet=!0),this._isAttached=!0}}detach(){if(this._isAttached){const X=this._document.body;X.removeEventListener("pointerdown",this._pointerDownListener,!0),X.removeEventListener("click",this._clickListener,!0),X.removeEventListener("auxclick",this._clickListener,!0),X.removeEventListener("contextmenu",this._clickListener,!0),this._platform.IOS&&this._cursorStyleIsSet&&(X.style.cursor=this._cursorOriginalValue,this._cursorStyleIsSet=!1),this._isAttached=!1}}}return Xe.\u0275fac=function(X){return new(X||Xe)(Z.LFG(f.K0),Z.LFG(oe.t4))},Xe.\u0275prov=Z.Yz7({token:Xe,factory:Xe.\u0275fac,providedIn:"root"}),Xe})(),on=(()=>{class Xe{constructor(X,Te){this._platform=Te,this._document=X}ngOnDestroy(){var X;null==(X=this._containerElement)||X.remove()}getContainerElement(){return this._containerElement||this._createContainer(),this._containerElement}_createContainer(){const X="cdk-overlay-container";if(this._platform.isBrowser||(0,oe.Oy)()){const et=this._document.querySelectorAll(`.${X}[platform="server"], .${X}[platform="test"]`);for(let nt=0;nt<et.length;nt++)et[nt].remove()}const Te=this._document.createElement("div");Te.classList.add(X),(0,oe.Oy)()?Te.setAttribute("platform","test"):this._platform.isBrowser||Te.setAttribute("platform","server"),this._document.body.appendChild(Te),this._containerElement=Te}}return Xe.\u0275fac=function(X){return new(X||Xe)(Z.LFG(f.K0),Z.LFG(oe.t4))},Xe.\u0275prov=Z.Yz7({token:Xe,factory:Xe.\u0275fac,providedIn:"root"}),Xe})();class ft{constructor($,X,Te,et,nt,Ae,le,ue,Be){this._portalOutlet=$,this._host=X,this._pane=Te,this._config=et,this._ngZone=nt,this._keyboardDispatcher=Ae,this._document=le,this._location=ue,this._outsideClickDispatcher=Be,this._backdropElement=null,this._backdropClick=new G.xQ,this._attachments=new G.xQ,this._detachments=new G.xQ,this._locationChanges=W.w.EMPTY,this._backdropClickHandler=ct=>this._backdropClick.next(ct),this._keydownEvents=new G.xQ,this._outsidePointerEvents=new G.xQ,et.scrollStrategy&&(this._scrollStrategy=et.scrollStrategy,this._scrollStrategy.attach(this)),this._positionStrategy=et.positionStrategy}get overlayElement(){return this._pane}get backdropElement(){return this._backdropElement}get hostElement(){return this._host}attach($){let X=this._portalOutlet.attach($);return!this._host.parentElement&&this._previousHostParent&&this._previousHostParent.appendChild(this._host),this._positionStrategy&&this._positionStrategy.attach(this),this._updateStackingOrder(),this._updateElementSize(),this._updateElementDirection(),this._scrollStrategy&&this._scrollStrategy.enable(),this._ngZone.onStable.pipe((0,ne.q)(1)).subscribe(()=>{this.hasAttached()&&this.updatePosition()}),this._togglePointerEvents(!0),this._config.hasBackdrop&&this._attachBackdrop(),this._config.panelClass&&this._toggleClasses(this._pane,this._config.panelClass,!0),this._attachments.next(),this._keyboardDispatcher.add(this),this._config.disposeOnNavigation&&(this._locationChanges=this._location.subscribe(()=>this.dispose())),this._outsideClickDispatcher.add(this),X}detach(){if(!this.hasAttached())return;this.detachBackdrop(),this._togglePointerEvents(!1),this._positionStrategy&&this._positionStrategy.detach&&this._positionStrategy.detach(),this._scrollStrategy&&this._scrollStrategy.disable();const $=this._portalOutlet.detach();return this._detachments.next(),this._keyboardDispatcher.remove(this),this._detachContentWhenStable(),this._locationChanges.unsubscribe(),this._outsideClickDispatcher.remove(this),$}dispose(){var X;const $=this.hasAttached();this._positionStrategy&&this._positionStrategy.dispose(),this._disposeScrollStrategy(),this._disposeBackdrop(this._backdropElement),this._locationChanges.unsubscribe(),this._keyboardDispatcher.remove(this),this._portalOutlet.dispose(),this._attachments.complete(),this._backdropClick.complete(),this._keydownEvents.complete(),this._outsidePointerEvents.complete(),this._outsideClickDispatcher.remove(this),null==(X=this._host)||X.remove(),this._previousHostParent=this._pane=this._host=null,$&&this._detachments.next(),this._detachments.complete()}hasAttached(){return this._portalOutlet.hasAttached()}backdropClick(){return this._backdropClick}attachments(){return this._attachments}detachments(){return this._detachments}keydownEvents(){return this._keydownEvents}outsidePointerEvents(){return this._outsidePointerEvents}getConfig(){return this._config}updatePosition(){this._positionStrategy&&this._positionStrategy.apply()}updatePositionStrategy($){$!==this._positionStrategy&&(this._positionStrategy&&this._positionStrategy.dispose(),this._positionStrategy=$,this.hasAttached()&&($.attach(this),this.updatePosition()))}updateSize($){this._config=Wt(Wt({},this._config),$),this._updateElementSize()}setDirection($){this._config=hr(Wt({},this._config),{direction:$}),this._updateElementDirection()}addPanelClass($){this._pane&&this._toggleClasses(this._pane,$,!0)}removePanelClass($){this._pane&&this._toggleClasses(this._pane,$,!1)}getDirection(){const $=this._config.direction;return $?"string"==typeof $?$:$.value:"ltr"}updateScrollStrategy($){$!==this._scrollStrategy&&(this._disposeScrollStrategy(),this._scrollStrategy=$,this.hasAttached()&&($.attach(this),$.enable()))}_updateElementDirection(){this._host.setAttribute("dir",this.getDirection())}_updateElementSize(){if(!this._pane)return;const $=this._pane.style;$.width=(0,o.HM)(this._config.width),$.height=(0,o.HM)(this._config.height),$.minWidth=(0,o.HM)(this._config.minWidth),$.minHeight=(0,o.HM)(this._config.minHeight),$.maxWidth=(0,o.HM)(this._config.maxWidth),$.maxHeight=(0,o.HM)(this._config.maxHeight)}_togglePointerEvents($){this._pane.style.pointerEvents=$?"":"none"}_attachBackdrop(){const $="cdk-overlay-backdrop-showing";this._backdropElement=this._document.createElement("div"),this._backdropElement.classList.add("cdk-overlay-backdrop"),this._config.backdropClass&&this._toggleClasses(this._backdropElement,this._config.backdropClass,!0),this._host.parentElement.insertBefore(this._backdropElement,this._host),this._backdropElement.addEventListener("click",this._backdropClickHandler),"undefined"!=typeof requestAnimationFrame?this._ngZone.runOutsideAngular(()=>{requestAnimationFrame(()=>{this._backdropElement&&this._backdropElement.classList.add($)})}):this._backdropElement.classList.add($)}_updateStackingOrder(){this._host.nextSibling&&this._host.parentNode.appendChild(this._host)}detachBackdrop(){const $=this._backdropElement;if(!$)return;let X;const Te=()=>{$&&($.removeEventListener("click",this._backdropClickHandler),$.removeEventListener("transitionend",Te),this._disposeBackdrop($)),this._config.backdropClass&&this._toggleClasses($,this._config.backdropClass,!1),clearTimeout(X)};$.classList.remove("cdk-overlay-backdrop-showing"),this._ngZone.runOutsideAngular(()=>{$.addEventListener("transitionend",Te)}),$.style.pointerEvents="none",X=this._ngZone.runOutsideAngular(()=>setTimeout(Te,500))}_toggleClasses($,X,Te){const et=(0,o.Eq)(X||[]).filter(nt=>!!nt);et.length&&(Te?$.classList.add(...et):$.classList.remove(...et))}_detachContentWhenStable(){this._ngZone.runOutsideAngular(()=>{const $=this._ngZone.onStable.pipe((0,ie.R)((0,Q.T)(this._attachments,this._detachments))).subscribe(()=>{(!this._pane||!this._host||0===this._pane.children.length)&&(this._pane&&this._config.panelClass&&this._toggleClasses(this._pane,this._config.panelClass,!1),this._host&&this._host.parentElement&&(this._previousHostParent=this._host.parentElement,this._host.remove()),$.unsubscribe())})})}_disposeScrollStrategy(){const $=this._scrollStrategy;$&&($.disable(),$.detach&&$.detach())}_disposeBackdrop($){$&&($.remove(),this._backdropElement===$&&(this._backdropElement=null))}}const Ft="cdk-overlay-connected-position-bounding-box",Ye=/([A-Za-z%]+)$/;class Dt{constructor($,X,Te,et,nt){this._viewportRuler=X,this._document=Te,this._platform=et,this._overlayContainer=nt,this._lastBoundingBoxSize={width:0,height:0},this._isPushed=!1,this._canPush=!0,this._growAfterOpen=!1,this._hasFlexibleDimensions=!0,this._positionLocked=!1,this._viewportMargin=0,this._scrollables=[],this._preferredPositions=[],this._positionChanges=new G.xQ,this._resizeSubscription=W.w.EMPTY,this._offsetX=0,this._offsetY=0,this._appliedPanelClasses=[],this.positionChanges=this._positionChanges,this.setOrigin($)}get positions(){return this._preferredPositions}attach($){this._validatePositions(),$.hostElement.classList.add(Ft),this._overlayRef=$,this._boundingBox=$.hostElement,this._pane=$.overlayElement,this._isDisposed=!1,this._isInitialRender=!0,this._lastPosition=null,this._resizeSubscription.unsubscribe(),this._resizeSubscription=this._viewportRuler.change().subscribe(()=>{this._isInitialRender=!0,this.apply()})}apply(){if(this._isDisposed||!this._platform.isBrowser)return;if(!this._isInitialRender&&this._positionLocked&&this._lastPosition)return void this.reapplyLastPosition();this._clearPanelClasses(),this._resetOverlayElementStyles(),this._resetBoundingBoxStyles(),this._viewportRect=this._getNarrowedViewportRect(),this._originRect=this._getOriginRect(),this._overlayRect=this._pane.getBoundingClientRect();const $=this._originRect,X=this._overlayRect,Te=this._viewportRect,et=[];let nt;for(let Ae of this._preferredPositions){let le=this._getOriginPoint($,Ae),ue=this._getOverlayPoint(le,X,Ae),Be=this._getOverlayFit(ue,X,Te,Ae);if(Be.isCompletelyWithinViewport)return this._isPushed=!1,void this._applyPosition(Ae,le);this._canFitWithFlexibleDimensions(Be,ue,Te)?et.push({position:Ae,origin:le,overlayRect:X,boundingBoxRect:this._calculateBoundingBoxRect(le,Ae)}):(!nt||nt.overlayFit.visibleArea<Be.visibleArea)&&(nt={overlayFit:Be,overlayPoint:ue,originPoint:le,position:Ae,overlayRect:X})}if(et.length){let Ae=null,le=-1;for(const ue of et){const Be=ue.boundingBoxRect.width*ue.boundingBoxRect.height*(ue.position.weight||1);Be>le&&(le=Be,Ae=ue)}return this._isPushed=!1,void this._applyPosition(Ae.position,Ae.origin)}if(this._canPush)return this._isPushed=!0,void this._applyPosition(nt.position,nt.originPoint);this._applyPosition(nt.position,nt.originPoint)}detach(){this._clearPanelClasses(),this._lastPosition=null,this._previousPushAmount=null,this._resizeSubscription.unsubscribe()}dispose(){this._isDisposed||(this._boundingBox&&Rt(this._boundingBox.style,{top:"",left:"",right:"",bottom:"",height:"",width:"",alignItems:"",justifyContent:""}),this._pane&&this._resetOverlayElementStyles(),this._overlayRef&&this._overlayRef.hostElement.classList.remove(Ft),this.detach(),this._positionChanges.complete(),this._overlayRef=this._boundingBox=null,this._isDisposed=!0)}reapplyLastPosition(){if(!this._isDisposed&&(!this._platform||this._platform.isBrowser)){this._originRect=this._getOriginRect(),this._overlayRect=this._pane.getBoundingClientRect(),this._viewportRect=this._getNarrowedViewportRect();const $=this._lastPosition||this._preferredPositions[0],X=this._getOriginPoint(this._originRect,$);this._applyPosition($,X)}}withScrollableContainers($){return this._scrollables=$,this}withPositions($){return this._preferredPositions=$,-1===$.indexOf(this._lastPosition)&&(this._lastPosition=null),this._validatePositions(),this}withViewportMargin($){return this._viewportMargin=$,this}withFlexibleDimensions($=!0){return this._hasFlexibleDimensions=$,this}withGrowAfterOpen($=!0){return this._growAfterOpen=$,this}withPush($=!0){return this._canPush=$,this}withLockedPosition($=!0){return this._positionLocked=$,this}setOrigin($){return this._origin=$,this}withDefaultOffsetX($){return this._offsetX=$,this}withDefaultOffsetY($){return this._offsetY=$,this}withTransformOriginOn($){return this._transformOriginSelector=$,this}_getOriginPoint($,X){let Te,et;if("center"==X.originX)Te=$.left+$.width/2;else{const nt=this._isRtl()?$.right:$.left,Ae=this._isRtl()?$.left:$.right;Te="start"==X.originX?nt:Ae}return et="center"==X.originY?$.top+$.height/2:"top"==X.originY?$.top:$.bottom,{x:Te,y:et}}_getOverlayPoint($,X,Te){let et,nt;return et="center"==Te.overlayX?-X.width/2:"start"===Te.overlayX?this._isRtl()?-X.width:0:this._isRtl()?0:-X.width,nt="center"==Te.overlayY?-X.height/2:"top"==Te.overlayY?0:-X.height,{x:$.x+et,y:$.y+nt}}_getOverlayFit($,X,Te,et){const nt=zt(X);let{x:Ae,y:le}=$,ue=this._getOffset(et,"x"),Be=this._getOffset(et,"y");ue&&(Ae+=ue),Be&&(le+=Be);let Ct=0-le,mt=le+nt.height-Te.height,an=this._subtractOverflows(nt.width,0-Ae,Ae+nt.width-Te.width),Tn=this._subtractOverflows(nt.height,Ct,mt),Pn=an*Tn;return{visibleArea:Pn,isCompletelyWithinViewport:nt.width*nt.height===Pn,fitsInViewportVertically:Tn===nt.height,fitsInViewportHorizontally:an==nt.width}}_canFitWithFlexibleDimensions($,X,Te){if(this._hasFlexibleDimensions){const et=Te.bottom-X.y,nt=Te.right-X.x,Ae=Gt(this._overlayRef.getConfig().minHeight),le=Gt(this._overlayRef.getConfig().minWidth),Be=$.fitsInViewportHorizontally||null!=le&&le<=nt;return($.fitsInViewportVertically||null!=Ae&&Ae<=et)&&Be}return!1}_pushOverlayOnScreen($,X,Te){if(this._previousPushAmount&&this._positionLocked)return{x:$.x+this._previousPushAmount.x,y:$.y+this._previousPushAmount.y};const et=zt(X),nt=this._viewportRect,Ae=Math.max($.x+et.width-nt.width,0),le=Math.max($.y+et.height-nt.height,0),ue=Math.max(nt.top-Te.top-$.y,0),Be=Math.max(nt.left-Te.left-$.x,0);let ct=0,At=0;return ct=et.width<=nt.width?Be||-Ae:$.x<this._viewportMargin?nt.left-Te.left-$.x:0,At=et.height<=nt.height?ue||-le:$.y<this._viewportMargin?nt.top-Te.top-$.y:0,this._previousPushAmount={x:ct,y:At},{x:$.x+ct,y:$.y+At}}_applyPosition($,X){if(this._setTransformOrigin($),this._setOverlayElementStyles(X,$),this._setBoundingBoxStyles(X,$),$.panelClass&&this._addPanelClasses($.panelClass),this._lastPosition=$,this._positionChanges.observers.length){const Te=this._getScrollVisibility(),et=new wt($,Te);this._positionChanges.next(et)}this._isInitialRender=!1}_setTransformOrigin($){if(!this._transformOriginSelector)return;const X=this._boundingBox.querySelectorAll(this._transformOriginSelector);let Te,et=$.overlayY;Te="center"===$.overlayX?"center":this._isRtl()?"start"===$.overlayX?"right":"left":"start"===$.overlayX?"left":"right";for(let nt=0;nt<X.length;nt++)X[nt].style.transformOrigin=`${Te} ${et}`}_calculateBoundingBoxRect($,X){const Te=this._viewportRect,et=this._isRtl();let nt,Ae,le,ct,At,Ct;if("top"===X.overlayY)Ae=$.y,nt=Te.height-Ae+this._viewportMargin;else if("bottom"===X.overlayY)le=Te.height-$.y+2*this._viewportMargin,nt=Te.height-le+this._viewportMargin;else{const mt=Math.min(Te.bottom-$.y+Te.top,$.y),an=this._lastBoundingBoxSize.height;nt=2*mt,Ae=$.y-mt,nt>an&&!this._isInitialRender&&!this._growAfterOpen&&(Ae=$.y-an/2)}if("end"===X.overlayX&&!et||"start"===X.overlayX&&et)Ct=Te.width-$.x+this._viewportMargin,ct=$.x-this._viewportMargin;else if("start"===X.overlayX&&!et||"end"===X.overlayX&&et)At=$.x,ct=Te.right-$.x;else{const mt=Math.min(Te.right-$.x+Te.left,$.x),an=this._lastBoundingBoxSize.width;ct=2*mt,At=$.x-mt,ct>an&&!this._isInitialRender&&!this._growAfterOpen&&(At=$.x-an/2)}return{top:Ae,left:At,bottom:le,right:Ct,width:ct,height:nt}}_setBoundingBoxStyles($,X){const Te=this._calculateBoundingBoxRect($,X);!this._isInitialRender&&!this._growAfterOpen&&(Te.height=Math.min(Te.height,this._lastBoundingBoxSize.height),Te.width=Math.min(Te.width,this._lastBoundingBoxSize.width));const et={};if(this._hasExactPosition())et.top=et.left="0",et.bottom=et.right=et.maxHeight=et.maxWidth="",et.width=et.height="100%";else{const nt=this._overlayRef.getConfig().maxHeight,Ae=this._overlayRef.getConfig().maxWidth;et.height=(0,o.HM)(Te.height),et.top=(0,o.HM)(Te.top),et.bottom=(0,o.HM)(Te.bottom),et.width=(0,o.HM)(Te.width),et.left=(0,o.HM)(Te.left),et.right=(0,o.HM)(Te.right),et.alignItems="center"===X.overlayX?"center":"end"===X.overlayX?"flex-end":"flex-start",et.justifyContent="center"===X.overlayY?"center":"bottom"===X.overlayY?"flex-end":"flex-start",nt&&(et.maxHeight=(0,o.HM)(nt)),Ae&&(et.maxWidth=(0,o.HM)(Ae))}this._lastBoundingBoxSize=Te,Rt(this._boundingBox.style,et)}_resetBoundingBoxStyles(){Rt(this._boundingBox.style,{top:"0",left:"0",right:"0",bottom:"0",height:"",width:"",alignItems:"",justifyContent:""})}_resetOverlayElementStyles(){Rt(this._pane.style,{top:"",left:"",bottom:"",right:"",position:"",transform:""})}_setOverlayElementStyles($,X){const Te={},et=this._hasExactPosition(),nt=this._hasFlexibleDimensions,Ae=this._overlayRef.getConfig();if(et){const ct=this._viewportRuler.getViewportScrollPosition();Rt(Te,this._getExactOverlayY(X,$,ct)),Rt(Te,this._getExactOverlayX(X,$,ct))}else Te.position="static";let le="",ue=this._getOffset(X,"x"),Be=this._getOffset(X,"y");ue&&(le+=`translateX(${ue}px) `),Be&&(le+=`translateY(${Be}px)`),Te.transform=le.trim(),Ae.maxHeight&&(et?Te.maxHeight=(0,o.HM)(Ae.maxHeight):nt&&(Te.maxHeight="")),Ae.maxWidth&&(et?Te.maxWidth=(0,o.HM)(Ae.maxWidth):nt&&(Te.maxWidth="")),Rt(this._pane.style,Te)}_getExactOverlayY($,X,Te){let et={top:"",bottom:""},nt=this._getOverlayPoint(X,this._overlayRect,$);this._isPushed&&(nt=this._pushOverlayOnScreen(nt,this._overlayRect,Te));let Ae=this._overlayContainer.getContainerElement().getBoundingClientRect().top;return nt.y-=Ae,"bottom"===$.overlayY?et.bottom=this._document.documentElement.clientHeight-(nt.y+this._overlayRect.height)+"px":et.top=(0,o.HM)(nt.y),et}_getExactOverlayX($,X,Te){let Ae,et={left:"",right:""},nt=this._getOverlayPoint(X,this._overlayRect,$);return this._isPushed&&(nt=this._pushOverlayOnScreen(nt,this._overlayRect,Te)),Ae=this._isRtl()?"end"===$.overlayX?"left":"right":"end"===$.overlayX?"right":"left","right"===Ae?et.right=this._document.documentElement.clientWidth-(nt.x+this._overlayRect.width)+"px":et.left=(0,o.HM)(nt.x),et}_getScrollVisibility(){const $=this._getOriginRect(),X=this._pane.getBoundingClientRect(),Te=this._scrollables.map(et=>et.getElementRef().nativeElement.getBoundingClientRect());return{isOriginClipped:Ge($,Te),isOriginOutsideView:Qe($,Te),isOverlayClipped:Ge(X,Te),isOverlayOutsideView:Qe(X,Te)}}_subtractOverflows($,...X){return X.reduce((Te,et)=>Te-Math.max(et,0),$)}_getNarrowedViewportRect(){const $=this._document.documentElement.clientWidth,X=this._document.documentElement.clientHeight,Te=this._viewportRuler.getViewportScrollPosition();return{top:Te.top+this._viewportMargin,left:Te.left+this._viewportMargin,right:Te.left+$-this._viewportMargin,bottom:Te.top+X-this._viewportMargin,width:$-2*this._viewportMargin,height:X-2*this._viewportMargin}}_isRtl(){return"rtl"===this._overlayRef.getDirection()}_hasExactPosition(){return!this._hasFlexibleDimensions||this._isPushed}_getOffset($,X){return"x"===X?null==$.offsetX?this._offsetX:$.offsetX:null==$.offsetY?this._offsetY:$.offsetY}_validatePositions(){}_addPanelClasses($){this._pane&&(0,o.Eq)($).forEach(X=>{""!==X&&-1===this._appliedPanelClasses.indexOf(X)&&(this._appliedPanelClasses.push(X),this._pane.classList.add(X))})}_clearPanelClasses(){this._pane&&(this._appliedPanelClasses.forEach($=>{this._pane.classList.remove($)}),this._appliedPanelClasses=[])}_getOriginRect(){const $=this._origin;if($ instanceof Z.SBq)return $.nativeElement.getBoundingClientRect();if($ instanceof Element)return $.getBoundingClientRect();const X=$.width||0,Te=$.height||0;return{top:$.y,bottom:$.y+Te,left:$.x,right:$.x+X,height:Te,width:X}}}function Rt(Xe,$){for(let X in $)$.hasOwnProperty(X)&&(Xe[X]=$[X]);return Xe}function Gt(Xe){if("number"!=typeof Xe&&null!=Xe){const[$,X]=Xe.split(Ye);return X&&"px"!==X?null:parseFloat($)}return Xe||null}function zt(Xe){return{top:Math.floor(Xe.top),right:Math.floor(Xe.right),bottom:Math.floor(Xe.bottom),left:Math.floor(Xe.left),width:Math.floor(Xe.width),height:Math.floor(Xe.height)}}const sn="cdk-global-overlay-wrapper";class We{constructor(){this._cssPosition="static",this._topOffset="",this._bottomOffset="",this._leftOffset="",this._rightOffset="",this._alignItems="",this._justifyContent="",this._width="",this._height=""}attach($){const X=$.getConfig();this._overlayRef=$,this._width&&!X.width&&$.updateSize({width:this._width}),this._height&&!X.height&&$.updateSize({height:this._height}),$.hostElement.classList.add(sn),this._isDisposed=!1}top($=""){return this._bottomOffset="",this._topOffset=$,this._alignItems="flex-start",this}left($=""){return this._rightOffset="",this._leftOffset=$,this._justifyContent="flex-start",this}bottom($=""){return this._topOffset="",this._bottomOffset=$,this._alignItems="flex-end",this}right($=""){return this._leftOffset="",this._rightOffset=$,this._justifyContent="flex-end",this}width($=""){return this._overlayRef?this._overlayRef.updateSize({width:$}):this._width=$,this}height($=""){return this._overlayRef?this._overlayRef.updateSize({height:$}):this._height=$,this}centerHorizontally($=""){return this.left($),this._justifyContent="center",this}centerVertically($=""){return this.top($),this._alignItems="center",this}apply(){if(!this._overlayRef||!this._overlayRef.hasAttached())return;const $=this._overlayRef.overlayElement.style,X=this._overlayRef.hostElement.style,Te=this._overlayRef.getConfig(),{width:et,height:nt,maxWidth:Ae,maxHeight:le}=Te,ue=!("100%"!==et&&"100vw"!==et||Ae&&"100%"!==Ae&&"100vw"!==Ae),Be=!("100%"!==nt&&"100vh"!==nt||le&&"100%"!==le&&"100vh"!==le);$.position=this._cssPosition,$.marginLeft=ue?"0":this._leftOffset,$.marginTop=Be?"0":this._topOffset,$.marginBottom=this._bottomOffset,$.marginRight=this._rightOffset,ue?X.justifyContent="flex-start":"center"===this._justifyContent?X.justifyContent="center":"rtl"===this._overlayRef.getConfig().direction?"flex-start"===this._justifyContent?X.justifyContent="flex-end":"flex-end"===this._justifyContent&&(X.justifyContent="flex-start"):X.justifyContent=this._justifyContent,X.alignItems=Be?"flex-start":this._alignItems}dispose(){if(this._isDisposed||!this._overlayRef)return;const $=this._overlayRef.overlayElement.style,X=this._overlayRef.hostElement,Te=X.style;X.classList.remove(sn),Te.justifyContent=Te.alignItems=$.marginTop=$.marginBottom=$.marginLeft=$.marginRight=$.position="",this._overlayRef=null,this._isDisposed=!0}}let vt=(()=>{class Xe{constructor(X,Te,et,nt){this._viewportRuler=X,this._document=Te,this._platform=et,this._overlayContainer=nt}global(){return new We}flexibleConnectedTo(X){return new Dt(X,this._viewportRuler,this._document,this._platform,this._overlayContainer)}}return Xe.\u0275fac=function(X){return new(X||Xe)(Z.LFG(l.rL),Z.LFG(f.K0),Z.LFG(oe.t4),Z.LFG(on))},Xe.\u0275prov=Z.Yz7({token:Xe,factory:Xe.\u0275fac,providedIn:"root"}),Xe})(),Ee=0,Fe=(()=>{class Xe{constructor(X,Te,et,nt,Ae,le,ue,Be,ct,At,Ct){this.scrollStrategies=X,this._overlayContainer=Te,this._componentFactoryResolver=et,this._positionBuilder=nt,this._keyboardDispatcher=Ae,this._injector=le,this._ngZone=ue,this._document=Be,this._directionality=ct,this._location=At,this._outsideClickDispatcher=Ct}create(X){const Te=this._createHostElement(),et=this._createPaneElement(Te),nt=this._createPortalOutlet(et),Ae=new Ce(X);return Ae.direction=Ae.direction||this._directionality.value,new ft(nt,Te,et,Ae,this._ngZone,this._keyboardDispatcher,this._document,this._location,this._outsideClickDispatcher)}position(){return this._positionBuilder}_createPaneElement(X){const Te=this._document.createElement("div");return Te.id="cdk-overlay-"+Ee++,Te.classList.add("cdk-overlay-pane"),X.appendChild(Te),Te}_createHostElement(){const X=this._document.createElement("div");return this._overlayContainer.getContainerElement().appendChild(X),X}_createPortalOutlet(X){return this._appRef||(this._appRef=this._injector.get(Z.z2F)),new te.u0(X,this._componentFactoryResolver,this._appRef,this._injector,this._document)}}return Xe.\u0275fac=function(X){return new(X||Xe)(Z.LFG(rt),Z.LFG(on),Z.LFG(Z._Vd),Z.LFG(vt),Z.LFG(Zt),Z.LFG(Z.zs3),Z.LFG(Z.R0b),Z.LFG(f.K0),Z.LFG(U.Is),Z.LFG(f.Ye),Z.LFG(Ut))},Xe.\u0275prov=Z.Yz7({token:Xe,factory:Xe.\u0275fac}),Xe})();const jt={provide:new Z.OlP("cdk-connected-overlay-scroll-strategy"),deps:[Fe],useFactory:function(Xe){return()=>Xe.scrollStrategies.reposition()}};let tn=(()=>{class Xe{}return Xe.\u0275fac=function(X){return new(X||Xe)},Xe.\u0275mod=Z.oAB({type:Xe}),Xe.\u0275inj=Z.cJS({providers:[Fe,jt],imports:[[U.vT,te.eL,l.Cl],l.Cl]}),Xe})()},928:(St,Se,M)=>{M.d(Se,{t4:()=>o,ud:()=>oe,sA:()=>Nt,ht:()=>Ge,kV:()=>Qe,Oy:()=>rt,i$:()=>ne,Mq:()=>qe});var l=M(3668),f=M(6019);let Z;try{Z="undefined"!=typeof Intl&&Intl.v8BreakIterator}catch(Ce){Z=!1}let W,Ne,Le,o=(()=>{class Ce{constructor(at){this._platformId=at,this.isBrowser=this._platformId?(0,f.NF)(this._platformId):"object"==typeof document&&!!document,this.EDGE=this.isBrowser&&/(edge)/i.test(navigator.userAgent),this.TRIDENT=this.isBrowser&&/(msie|trident)/i.test(navigator.userAgent),this.BLINK=this.isBrowser&&!(!window.chrome&&!Z)&&"undefined"!=typeof CSS&&!this.EDGE&&!this.TRIDENT,this.WEBKIT=this.isBrowser&&/AppleWebKit/i.test(navigator.userAgent)&&!this.BLINK&&!this.EDGE&&!this.TRIDENT,this.IOS=this.isBrowser&&/iPad|iPhone|iPod/.test(navigator.userAgent)&&!("MSStream"in window),this.FIREFOX=this.isBrowser&&/(firefox|minefield)/i.test(navigator.userAgent),this.ANDROID=this.isBrowser&&/android/i.test(navigator.userAgent)&&!this.TRIDENT,this.SAFARI=this.isBrowser&&/safari/i.test(navigator.userAgent)&&this.WEBKIT}}return Ce.\u0275fac=function(at){return new(at||Ce)(l.LFG(l.Lbi))},Ce.\u0275prov=l.Yz7({token:Ce,factory:Ce.\u0275fac,providedIn:"root"}),Ce})(),oe=(()=>{class Ce{}return Ce.\u0275fac=function(at){return new(at||Ce)},Ce.\u0275mod=l.oAB({type:Ce}),Ce.\u0275inj=l.cJS({}),Ce})();function ne(Ce){return function(){if(null==W&&"undefined"!=typeof window)try{window.addEventListener("test",null,Object.defineProperty({},"passive",{get:()=>W=!0}))}finally{W=W||!1}return W}()?Ce:!!Ce.capture}function qe(){if(null==Ne){if("object"!=typeof document||!document||"function"!=typeof Element||!Element)return Ne=!1,Ne;if("scrollBehavior"in document.documentElement.style)Ne=!0;else{const Ce=Element.prototype.scrollTo;Ne=!!Ce&&!/\{\s*\[native code\]\s*\}/.test(Ce.toString())}}return Ne}function Qe(Ce){if(function(){if(null==Le){const Ce="undefined"!=typeof document?document.head:null;Le=!(!Ce||!Ce.createShadowRoot&&!Ce.attachShadow)}return Le}()){const ht=Ce.getRootNode?Ce.getRootNode():null;if("undefined"!=typeof ShadowRoot&&ShadowRoot&&ht instanceof ShadowRoot)return ht}return null}function Ge(){let Ce="undefined"!=typeof document&&document?document.activeElement:null;for(;Ce&&Ce.shadowRoot;){const ht=Ce.shadowRoot.activeElement;if(ht===Ce)break;Ce=ht}return Ce}function Nt(Ce){return Ce.composedPath?Ce.composedPath()[0]:Ce.target}function rt(){return"undefined"!=typeof __karma__&&!!__karma__||"undefined"!=typeof jasmine&&!!jasmine||"undefined"!=typeof jest&&!!jest||"undefined"!=typeof Mocha&&!!Mocha}},5711:(St,Se,M)=>{M.d(Se,{en:()=>Ne,Pl:()=>Ge,C5:()=>Q,u0:()=>it,eL:()=>rt,UE:()=>ne});var l=M(3668),f=M(6019);class W{attach(at){return this._attachedHost=at,at.attach(this)}detach(){let at=this._attachedHost;null!=at&&(this._attachedHost=null,at.detach())}get isAttached(){return null!=this._attachedHost}setAttachedHost(at){this._attachedHost=at}}class Q extends W{constructor(at,wt,xt,Yt){super(),this.component=at,this.viewContainerRef=wt,this.injector=xt,this.componentFactoryResolver=Yt}}class ne extends W{constructor(at,wt,xt){super(),this.templateRef=at,this.viewContainerRef=wt,this.context=xt}get origin(){return this.templateRef.elementRef}attach(at,wt=this.context){return this.context=wt,super.attach(at)}detach(){return this.context=void 0,super.detach()}}class ie extends W{constructor(at){super(),this.element=at instanceof l.SBq?at.nativeElement:at}}class Ne{constructor(){this._isDisposed=!1,this.attachDomPortal=null}hasAttached(){return!!this._attachedPortal}attach(at){return at instanceof Q?(this._attachedPortal=at,this.attachComponentPortal(at)):at instanceof ne?(this._attachedPortal=at,this.attachTemplatePortal(at)):this.attachDomPortal&&at instanceof ie?(this._attachedPortal=at,this.attachDomPortal(at)):void 0}detach(){this._attachedPortal&&(this._attachedPortal.setAttachedHost(null),this._attachedPortal=null),this._invokeDisposeFn()}dispose(){this.hasAttached()&&this.detach(),this._invokeDisposeFn(),this._isDisposed=!0}setDisposeFn(at){this._disposeFn=at}_invokeDisposeFn(){this._disposeFn&&(this._disposeFn(),this._disposeFn=null)}}class it extends Ne{constructor(at,wt,xt,Yt,Kt){super(),this.outletElement=at,this._componentFactoryResolver=wt,this._appRef=xt,this._defaultInjector=Yt,this.attachDomPortal=Zt=>{const Ut=Zt.element,on=this._document.createComment("dom-portal");Ut.parentNode.insertBefore(on,Ut),this.outletElement.appendChild(Ut),this._attachedPortal=Zt,super.setDisposeFn(()=>{on.parentNode&&on.parentNode.replaceChild(Ut,on)})},this._document=Kt}attachComponentPortal(at){const xt=(at.componentFactoryResolver||this._componentFactoryResolver).resolveComponentFactory(at.component);let Yt;return at.viewContainerRef?(Yt=at.viewContainerRef.createComponent(xt,at.viewContainerRef.length,at.injector||at.viewContainerRef.injector),this.setDisposeFn(()=>Yt.destroy())):(Yt=xt.create(at.injector||this._defaultInjector),this._appRef.attachView(Yt.hostView),this.setDisposeFn(()=>{this._appRef.detachView(Yt.hostView),Yt.destroy()})),this.outletElement.appendChild(this._getComponentRootNode(Yt)),this._attachedPortal=at,Yt}attachTemplatePortal(at){let wt=at.viewContainerRef,xt=wt.createEmbeddedView(at.templateRef,at.context);return xt.rootNodes.forEach(Yt=>this.outletElement.appendChild(Yt)),xt.detectChanges(),this.setDisposeFn(()=>{let Yt=wt.indexOf(xt);-1!==Yt&&wt.remove(Yt)}),this._attachedPortal=at,xt}dispose(){super.dispose(),this.outletElement.remove()}_getComponentRootNode(at){return at.hostView.rootNodes[0]}}let Ge=(()=>{class ht extends Ne{constructor(wt,xt,Yt){super(),this._componentFactoryResolver=wt,this._viewContainerRef=xt,this._isInitialized=!1,this.attached=new l.vpe,this.attachDomPortal=Kt=>{const Zt=Kt.element,Ut=this._document.createComment("dom-portal");Kt.setAttachedHost(this),Zt.parentNode.insertBefore(Ut,Zt),this._getRootNode().appendChild(Zt),this._attachedPortal=Kt,super.setDisposeFn(()=>{Ut.parentNode&&Ut.parentNode.replaceChild(Zt,Ut)})},this._document=Yt}get portal(){return this._attachedPortal}set portal(wt){this.hasAttached()&&!wt&&!this._isInitialized||(this.hasAttached()&&super.detach(),wt&&super.attach(wt),this._attachedPortal=wt)}get attachedRef(){return this._attachedRef}ngOnInit(){this._isInitialized=!0}ngOnDestroy(){super.dispose(),this._attachedPortal=null,this._attachedRef=null}attachComponentPortal(wt){wt.setAttachedHost(this);const xt=null!=wt.viewContainerRef?wt.viewContainerRef:this._viewContainerRef,Kt=(wt.componentFactoryResolver||this._componentFactoryResolver).resolveComponentFactory(wt.component),Zt=xt.createComponent(Kt,xt.length,wt.injector||xt.injector);return xt!==this._viewContainerRef&&this._getRootNode().appendChild(Zt.hostView.rootNodes[0]),super.setDisposeFn(()=>Zt.destroy()),this._attachedPortal=wt,this._attachedRef=Zt,this.attached.emit(Zt),Zt}attachTemplatePortal(wt){wt.setAttachedHost(this);const xt=this._viewContainerRef.createEmbeddedView(wt.templateRef,wt.context);return super.setDisposeFn(()=>this._viewContainerRef.clear()),this._attachedPortal=wt,this._attachedRef=xt,this.attached.emit(xt),xt}_getRootNode(){const wt=this._viewContainerRef.element.nativeElement;return wt.nodeType===wt.ELEMENT_NODE?wt:wt.parentNode}}return ht.\u0275fac=function(wt){return new(wt||ht)(l.Y36(l._Vd),l.Y36(l.s_b),l.Y36(f.K0))},ht.\u0275dir=l.lG2({type:ht,selectors:[["","cdkPortalOutlet",""]],inputs:{portal:["cdkPortalOutlet","portal"]},outputs:{attached:"attached"},exportAs:["cdkPortalOutlet"],features:[l.qOj]}),ht})(),rt=(()=>{class ht{}return ht.\u0275fac=function(wt){return new(wt||ht)},ht.\u0275mod=l.oAB({type:ht}),ht.\u0275inj=l.cJS({}),ht})()},7226:(St,Se,M)=>{M.d(Se,{ZD:()=>Ut,mF:()=>rt,Cl:()=>on,rL:()=>at});var l=M(348),f=M(3668),Z=M(3405),o=M(2411),oe=M(5548),U=M(9506),W=(M(8548),M(2907),M(8105)),Q=M(8735),ne=M(928),ie=M(6019),Ne=M(8290);let rt=(()=>{class ft{constructor(Ye,Dt,Rt){this._ngZone=Ye,this._platform=Dt,this._scrolled=new Z.xQ,this._globalSubscription=null,this._scrolledCount=0,this.scrollContainers=new Map,this._document=Rt}register(Ye){this.scrollContainers.has(Ye)||this.scrollContainers.set(Ye,Ye.elementScrolled().subscribe(()=>this._scrolled.next(Ye)))}deregister(Ye){const Dt=this.scrollContainers.get(Ye);Dt&&(Dt.unsubscribe(),this.scrollContainers.delete(Ye))}scrolled(Ye=20){return this._platform.isBrowser?new oe.y(Dt=>{this._globalSubscription||this._addGlobalListener();const Rt=Ye>0?this._scrolled.pipe((0,W.e)(Ye)).subscribe(Dt):this._scrolled.subscribe(Dt);return this._scrolledCount++,()=>{Rt.unsubscribe(),this._scrolledCount--,this._scrolledCount||this._removeGlobalListener()}}):(0,o.of)()}ngOnDestroy(){this._removeGlobalListener(),this.scrollContainers.forEach((Ye,Dt)=>this.deregister(Dt)),this._scrolled.complete()}ancestorScrolled(Ye,Dt){const Rt=this.getAncestorScrollContainers(Ye);return this.scrolled(Dt).pipe((0,Q.h)(Gt=>!Gt||Rt.indexOf(Gt)>-1))}getAncestorScrollContainers(Ye){const Dt=[];return this.scrollContainers.forEach((Rt,Gt)=>{this._scrollableContainsElement(Gt,Ye)&&Dt.push(Gt)}),Dt}_getWindow(){return this._document.defaultView||window}_scrollableContainsElement(Ye,Dt){let Rt=(0,l.fI)(Dt),Gt=Ye.getElementRef().nativeElement;do{if(Rt==Gt)return!0}while(Rt=Rt.parentElement);return!1}_addGlobalListener(){this._globalSubscription=this._ngZone.runOutsideAngular(()=>{const Ye=this._getWindow();return(0,U.R)(Ye.document,"scroll").subscribe(()=>this._scrolled.next())})}_removeGlobalListener(){this._globalSubscription&&(this._globalSubscription.unsubscribe(),this._globalSubscription=null)}}return ft.\u0275fac=function(Ye){return new(Ye||ft)(f.LFG(f.R0b),f.LFG(ne.t4),f.LFG(ie.K0,8))},ft.\u0275prov=f.Yz7({token:ft,factory:ft.\u0275fac,providedIn:"root"}),ft})(),at=(()=>{class ft{constructor(Ye,Dt,Rt){this._platform=Ye,this._change=new Z.xQ,this._changeListener=Gt=>{this._change.next(Gt)},this._document=Rt,Dt.runOutsideAngular(()=>{if(Ye.isBrowser){const Gt=this._getWindow();Gt.addEventListener("resize",this._changeListener),Gt.addEventListener("orientationchange",this._changeListener)}this.change().subscribe(()=>this._viewportSize=null)})}ngOnDestroy(){if(this._platform.isBrowser){const Ye=this._getWindow();Ye.removeEventListener("resize",this._changeListener),Ye.removeEventListener("orientationchange",this._changeListener)}this._change.complete()}getViewportSize(){this._viewportSize||this._updateViewportSize();const Ye={width:this._viewportSize.width,height:this._viewportSize.height};return this._platform.isBrowser||(this._viewportSize=null),Ye}getViewportRect(){const Ye=this.getViewportScrollPosition(),{width:Dt,height:Rt}=this.getViewportSize();return{top:Ye.top,left:Ye.left,bottom:Ye.top+Rt,right:Ye.left+Dt,height:Rt,width:Dt}}getViewportScrollPosition(){if(!this._platform.isBrowser)return{top:0,left:0};const Ye=this._document,Dt=this._getWindow(),Rt=Ye.documentElement,Gt=Rt.getBoundingClientRect();return{top:-Gt.top||Ye.body.scrollTop||Dt.scrollY||Rt.scrollTop||0,left:-Gt.left||Ye.body.scrollLeft||Dt.scrollX||Rt.scrollLeft||0}}change(Ye=20){return Ye>0?this._change.pipe((0,W.e)(Ye)):this._change}_getWindow(){return this._document.defaultView||window}_updateViewportSize(){const Ye=this._getWindow();this._viewportSize=this._platform.isBrowser?{width:Ye.innerWidth,height:Ye.innerHeight}:{width:0,height:0}}}return ft.\u0275fac=function(Ye){return new(Ye||ft)(f.LFG(ne.t4),f.LFG(f.R0b),f.LFG(ie.K0,8))},ft.\u0275prov=f.Yz7({token:ft,factory:ft.\u0275fac,providedIn:"root"}),ft})(),Ut=(()=>{class ft{}return ft.\u0275fac=function(Ye){return new(Ye||ft)},ft.\u0275mod=f.oAB({type:ft}),ft.\u0275inj=f.cJS({}),ft})(),on=(()=>{class ft{}return ft.\u0275fac=function(Ye){return new(Ye||ft)},ft.\u0275mod=f.oAB({type:ft}),ft.\u0275inj=f.cJS({imports:[[Ne.vT,ne.ud,Ut],Ne.vT,Ut]}),ft})()},6019:(St,Se,M)=>{M.d(Se,{mr:()=>Ge,Ov:()=>Ri,ez:()=>_r,K0:()=>te,JJ:()=>pi,x:()=>Zt,Do:()=>rt,V_:()=>Q,Ye:()=>Ce,S$:()=>dt,mk:()=>Ai,$G:()=>Cn,sg:()=>gr,O5:()=>Ci,PC:()=>z,tP:()=>ke,b0:()=>Nt,Zx:()=>wr,lw:()=>G,OU:()=>ei,Tn:()=>Ut,EM:()=>vs,JF:()=>hi,p6:()=>an,Mn:()=>Rt,ol:()=>Dt,UT:()=>Gt,NF:()=>$r,w_:()=>U,bD:()=>Wi,q:()=>Z,Mx:()=>pr,HT:()=>oe});var l=M(3668);let f=null;function Z(){return f}function oe(O){f||(f=O)}class U{}const te=new l.OlP("DocumentToken");let G=(()=>{class O{historyGo(x){throw new Error("Not implemented")}}return O.\u0275fac=function(x){return new(x||O)},O.\u0275prov=l.Yz7({token:O,factory:function(){return(0,l.LFG)(ne)},providedIn:"platform"}),O})();const Q=new l.OlP("Location Initialized");let ne=(()=>{class O extends G{constructor(x){super(),this._doc=x,this._init()}_init(){this.location=window.location,this._history=window.history}getBaseHrefFromDOM(){return Z().getBaseHref(this._doc)}onPopState(x){const j=Z().getGlobalEventTarget(this._doc,"window");return j.addEventListener("popstate",x,!1),()=>j.removeEventListener("popstate",x)}onHashChange(x){const j=Z().getGlobalEventTarget(this._doc,"window");return j.addEventListener("hashchange",x,!1),()=>j.removeEventListener("hashchange",x)}get href(){return this.location.href}get protocol(){return this.location.protocol}get hostname(){return this.location.hostname}get port(){return this.location.port}get pathname(){return this.location.pathname}get search(){return this.location.search}get hash(){return this.location.hash}set pathname(x){this.location.pathname=x}pushState(x,j,_e){ie()?this._history.pushState(x,j,_e):this.location.hash=_e}replaceState(x,j,_e){ie()?this._history.replaceState(x,j,_e):this.location.hash=_e}forward(){this._history.forward()}back(){this._history.back()}historyGo(x=0){this._history.go(x)}getState(){return this._history.state}}return O.\u0275fac=function(x){return new(x||O)(l.LFG(te))},O.\u0275prov=l.Yz7({token:O,factory:function(){return new ne((0,l.LFG)(te))},providedIn:"platform"}),O})();function ie(){return!!window.history.pushState}function qe(O,B){if(0==O.length)return B;if(0==B.length)return O;let x=0;return O.endsWith("/")&&x++,B.startsWith("/")&&x++,2==x?O+B.substring(1):1==x?O+B:O+"/"+B}function it(O){const B=O.match(/#|\?|$/),x=B&&B.index||O.length;return O.slice(0,x-("/"===O[x-1]?1:0))+O.slice(x)}function Le(O){return O&&"?"!==O[0]?"?"+O:O}let dt=(()=>{class O{historyGo(x){throw new Error("Not implemented")}}return O.\u0275fac=function(x){return new(x||O)},O.\u0275prov=l.Yz7({token:O,factory:function(){return function(O){const B=(0,l.LFG)(te).location;return new Nt((0,l.LFG)(G),B&&B.origin||"")}()},providedIn:"root"}),O})();const Ge=new l.OlP("appBaseHref");let Nt=(()=>{class O extends dt{constructor(x,j){if(super(),this._platformLocation=x,this._removeListenerFns=[],null==j&&(j=this._platformLocation.getBaseHrefFromDOM()),null==j)throw new Error("No base href set. Please provide a value for the APP_BASE_HREF token or add a base element to the document.");this._baseHref=j}ngOnDestroy(){for(;this._removeListenerFns.length;)this._removeListenerFns.pop()()}onPopState(x){this._removeListenerFns.push(this._platformLocation.onPopState(x),this._platformLocation.onHashChange(x))}getBaseHref(){return this._baseHref}prepareExternalUrl(x){return qe(this._baseHref,x)}path(x=!1){const j=this._platformLocation.pathname+Le(this._platformLocation.search),_e=this._platformLocation.hash;return _e&&x?`${j}${_e}`:j}pushState(x,j,_e,w){const D=this.prepareExternalUrl(_e+Le(w));this._platformLocation.pushState(x,j,D)}replaceState(x,j,_e,w){const D=this.prepareExternalUrl(_e+Le(w));this._platformLocation.replaceState(x,j,D)}forward(){this._platformLocation.forward()}back(){this._platformLocation.back()}historyGo(x=0){var j,_e;null==(_e=(j=this._platformLocation).historyGo)||_e.call(j,x)}}return O.\u0275fac=function(x){return new(x||O)(l.LFG(G),l.LFG(Ge,8))},O.\u0275prov=l.Yz7({token:O,factory:O.\u0275fac}),O})(),rt=(()=>{class O extends dt{constructor(x,j){super(),this._platformLocation=x,this._baseHref="",this._removeListenerFns=[],null!=j&&(this._baseHref=j)}ngOnDestroy(){for(;this._removeListenerFns.length;)this._removeListenerFns.pop()()}onPopState(x){this._removeListenerFns.push(this._platformLocation.onPopState(x),this._platformLocation.onHashChange(x))}getBaseHref(){return this._baseHref}path(x=!1){let j=this._platformLocation.hash;return null==j&&(j="#"),j.length>0?j.substring(1):j}prepareExternalUrl(x){const j=qe(this._baseHref,x);return j.length>0?"#"+j:j}pushState(x,j,_e,w){let D=this.prepareExternalUrl(_e+Le(w));0==D.length&&(D=this._platformLocation.pathname),this._platformLocation.pushState(x,j,D)}replaceState(x,j,_e,w){let D=this.prepareExternalUrl(_e+Le(w));0==D.length&&(D=this._platformLocation.pathname),this._platformLocation.replaceState(x,j,D)}forward(){this._platformLocation.forward()}back(){this._platformLocation.back()}historyGo(x=0){var j,_e;null==(_e=(j=this._platformLocation).historyGo)||_e.call(j,x)}}return O.\u0275fac=function(x){return new(x||O)(l.LFG(G),l.LFG(Ge,8))},O.\u0275prov=l.Yz7({token:O,factory:O.\u0275fac}),O})(),Ce=(()=>{class O{constructor(x,j){this._subject=new l.vpe,this._urlChangeListeners=[],this._platformStrategy=x;const _e=this._platformStrategy.getBaseHref();this._platformLocation=j,this._baseHref=it(wt(_e)),this._platformStrategy.onPopState(w=>{this._subject.emit({url:this.path(!0),pop:!0,state:w.state,type:w.type})})}path(x=!1){return this.normalize(this._platformStrategy.path(x))}getState(){return this._platformLocation.getState()}isCurrentPathEqualTo(x,j=""){return this.path()==this.normalize(x+Le(j))}normalize(x){return O.stripTrailingSlash(function(O,B){return O&&B.startsWith(O)?B.substring(O.length):B}(this._baseHref,wt(x)))}prepareExternalUrl(x){return x&&"/"!==x[0]&&(x="/"+x),this._platformStrategy.prepareExternalUrl(x)}go(x,j="",_e=null){this._platformStrategy.pushState(_e,"",x,j),this._notifyUrlChangeListeners(this.prepareExternalUrl(x+Le(j)),_e)}replaceState(x,j="",_e=null){this._platformStrategy.replaceState(_e,"",x,j),this._notifyUrlChangeListeners(this.prepareExternalUrl(x+Le(j)),_e)}forward(){this._platformStrategy.forward()}back(){this._platformStrategy.back()}historyGo(x=0){var j,_e;null==(_e=(j=this._platformStrategy).historyGo)||_e.call(j,x)}onUrlChange(x){this._urlChangeListeners.push(x),this._urlChangeSubscription||(this._urlChangeSubscription=this.subscribe(j=>{this._notifyUrlChangeListeners(j.url,j.state)}))}_notifyUrlChangeListeners(x="",j){this._urlChangeListeners.forEach(_e=>_e(x,j))}subscribe(x,j,_e){return this._subject.subscribe({next:x,error:j,complete:_e})}}return O.normalizeQueryParams=Le,O.joinWithSlash=qe,O.stripTrailingSlash=it,O.\u0275fac=function(x){return new(x||O)(l.LFG(dt),l.LFG(G))},O.\u0275prov=l.Yz7({token:O,factory:function(){return new Ce((0,l.LFG)(dt),(0,l.LFG)(G))},providedIn:"root"}),O})();function wt(O){return O.replace(/\/index.html$/,"")}var Yt=(()=>((Yt=Yt||{})[Yt.Decimal=0]="Decimal",Yt[Yt.Percent=1]="Percent",Yt[Yt.Currency=2]="Currency",Yt[Yt.Scientific=3]="Scientific",Yt))(),Kt=(()=>((Kt=Kt||{})[Kt.Zero=0]="Zero",Kt[Kt.One=1]="One",Kt[Kt.Two=2]="Two",Kt[Kt.Few=3]="Few",Kt[Kt.Many=4]="Many",Kt[Kt.Other=5]="Other",Kt))(),Zt=(()=>((Zt=Zt||{})[Zt.Format=0]="Format",Zt[Zt.Standalone=1]="Standalone",Zt))(),Ut=(()=>((Ut=Ut||{})[Ut.Narrow=0]="Narrow",Ut[Ut.Abbreviated=1]="Abbreviated",Ut[Ut.Wide=2]="Wide",Ut[Ut.Short=3]="Short",Ut))(),on=(()=>((on=on||{})[on.Short=0]="Short",on[on.Medium=1]="Medium",on[on.Long=2]="Long",on[on.Full=3]="Full",on))(),ft=(()=>((ft=ft||{})[ft.Decimal=0]="Decimal",ft[ft.Group=1]="Group",ft[ft.List=2]="List",ft[ft.PercentSign=3]="PercentSign",ft[ft.PlusSign=4]="PlusSign",ft[ft.MinusSign=5]="MinusSign",ft[ft.Exponential=6]="Exponential",ft[ft.SuperscriptingExponent=7]="SuperscriptingExponent",ft[ft.PerMille=8]="PerMille",ft[ft.Infinity=9]="Infinity",ft[ft.NaN=10]="NaN",ft[ft.TimeSeparator=11]="TimeSeparator",ft[ft.CurrencyDecimal=12]="CurrencyDecimal",ft[ft.CurrencyGroup=13]="CurrencyGroup",ft))();function Dt(O,B,x){const j=(0,l.cg1)(O),w=Te([j[l.wAp.DayPeriodsFormat],j[l.wAp.DayPeriodsStandalone]],B);return Te(w,x)}function Rt(O,B,x){const j=(0,l.cg1)(O),w=Te([j[l.wAp.DaysFormat],j[l.wAp.DaysStandalone]],B);return Te(w,x)}function Gt(O,B,x){const j=(0,l.cg1)(O),w=Te([j[l.wAp.MonthsFormat],j[l.wAp.MonthsStandalone]],B);return Te(w,x)}function vt(O,B){return Te((0,l.cg1)(O)[l.wAp.DateFormat],B)}function Ee(O,B){return Te((0,l.cg1)(O)[l.wAp.TimeFormat],B)}function Fe(O,B){return Te((0,l.cg1)(O)[l.wAp.DateTimeFormat],B)}function Ve(O,B){const x=(0,l.cg1)(O),j=x[l.wAp.NumberSymbols][B];if(void 0===j){if(B===ft.CurrencyDecimal)return x[l.wAp.NumberSymbols][ft.Decimal];if(B===ft.CurrencyGroup)return x[l.wAp.NumberSymbols][ft.Group]}return j}function ut(O,B){return(0,l.cg1)(O)[l.wAp.NumberFormats][B]}const tn=l.kL8;function Fn(O){if(!O[l.wAp.ExtraData])throw new Error(`Missing extra locale data for the locale "${O[l.wAp.LocaleId]}". Use "registerLocaleData" to load new data. See the "I18n guide" on angular.io to know more.`)}function Te(O,B){for(let x=B;x>-1;x--)if(void 0!==O[x])return O[x];throw new Error("Locale data API: locale data undefined")}function et(O){const[B,x]=O.split(":");return{hours:+B,minutes:+x}}const ue=/^(\d{4})-?(\d\d)-?(\d\d)(?:T(\d\d)(?::?(\d\d)(?::?(\d\d)(?:\.(\d+))?)?)?(Z|([+-])(\d\d):?(\d\d))?)?$/,Be={},ct=/((?:[^BEGHLMOSWYZabcdhmswyz']+)|(?:'(?:[^']|'')*')|(?:G{1,5}|y{1,4}|Y{1,4}|M{1,5}|L{1,5}|w{1,2}|W{1}|d{1,2}|E{1,6}|c{1,6}|a{1,5}|b{1,5}|B{1,5}|h{1,2}|H{1,2}|m{1,2}|s{1,2}|S{1,3}|z{1,4}|Z{1,5}|O{1,4}))([\s\S]*)/;var At=(()=>((At=At||{})[At.Short=0]="Short",At[At.ShortGMT=1]="ShortGMT",At[At.Long=2]="Long",At[At.Extended=3]="Extended",At))(),Ct=(()=>((Ct=Ct||{})[Ct.FullYear=0]="FullYear",Ct[Ct.Month=1]="Month",Ct[Ct.Date=2]="Date",Ct[Ct.Hours=3]="Hours",Ct[Ct.Minutes=4]="Minutes",Ct[Ct.Seconds=5]="Seconds",Ct[Ct.FractionalSeconds=6]="FractionalSeconds",Ct[Ct.Day=7]="Day",Ct))(),mt=(()=>((mt=mt||{})[mt.DayPeriods=0]="DayPeriods",mt[mt.Days=1]="Days",mt[mt.Months=2]="Months",mt[mt.Eras=3]="Eras",mt))();function an(O,B,x,j){let _e=function(O){if(H(O))return O;if("number"==typeof O&&!isNaN(O))return new Date(O);if("string"==typeof O){if(O=O.trim(),/^(\d{4}(-\d{1,2}(-\d{1,2})?)?)$/.test(O)){const[_e,w=1,D=1]=O.split("-").map(C=>+C);return Tn(_e,w-1,D)}const x=parseFloat(O);if(!isNaN(O-x))return new Date(x);let j;if(j=O.match(ue))return function(O){const B=new Date(0);let x=0,j=0;const _e=O[8]?B.setUTCFullYear:B.setFullYear,w=O[8]?B.setUTCHours:B.setHours;O[9]&&(x=Number(O[9]+O[10]),j=Number(O[9]+O[11])),_e.call(B,Number(O[1]),Number(O[2])-1,Number(O[3]));const D=Number(O[4]||0)-x,C=Number(O[5]||0)-j,L=Number(O[6]||0),tt=Math.floor(1e3*parseFloat("0."+(O[7]||0)));return w.call(B,D,C,L,tt),B}(j)}const B=new Date(O);if(!H(B))throw new Error(`Unable to convert "${O}" into a date`);return B}(O);B=Pn(x,B)||B;let C,D=[];for(;B;){if(C=ct.exec(B),!C){D.push(B);break}{D=D.concat(C.slice(1));const Lt=D.pop();if(!Lt)break;B=Lt}}let L=_e.getTimezoneOffset();j&&(L=ri(j,L),_e=function(O,B,x){const _e=O.getTimezoneOffset();return function(O,B){return(O=new Date(O.getTime())).setMinutes(O.getMinutes()+B),O}(O,-1*(ri(B,_e)-_e))}(_e,j));let tt="";return D.forEach(Lt=>{const un=function(O){if(fn[O])return fn[O];let B;switch(O){case"G":case"GG":case"GGG":B=he(mt.Eras,Ut.Abbreviated);break;case"GGGG":B=he(mt.Eras,Ut.Wide);break;case"GGGGG":B=he(mt.Eras,Ut.Narrow);break;case"y":B=He(Ct.FullYear,1,0,!1,!0);break;case"yy":B=He(Ct.FullYear,2,0,!0,!0);break;case"yyy":B=He(Ct.FullYear,3,0,!1,!0);break;case"yyyy":B=He(Ct.FullYear,4,0,!1,!0);break;case"Y":B=kt(1);break;case"YY":B=kt(2,!0);break;case"YYY":B=kt(3);break;case"YYYY":B=kt(4);break;case"M":case"L":B=He(Ct.Month,1,1);break;case"MM":case"LL":B=He(Ct.Month,2,1);break;case"MMM":B=he(mt.Months,Ut.Abbreviated);break;case"MMMM":B=he(mt.Months,Ut.Wide);break;case"MMMMM":B=he(mt.Months,Ut.Narrow);break;case"LLL":B=he(mt.Months,Ut.Abbreviated,Zt.Standalone);break;case"LLLL":B=he(mt.Months,Ut.Wide,Zt.Standalone);break;case"LLLLL":B=he(mt.Months,Ut.Narrow,Zt.Standalone);break;case"w":B=st(1);break;case"ww":B=st(2);break;case"W":B=st(1,!0);break;case"d":B=He(Ct.Date,1);break;case"dd":B=He(Ct.Date,2);break;case"c":case"cc":B=He(Ct.Day,1);break;case"ccc":B=he(mt.Days,Ut.Abbreviated,Zt.Standalone);break;case"cccc":B=he(mt.Days,Ut.Wide,Zt.Standalone);break;case"ccccc":B=he(mt.Days,Ut.Narrow,Zt.Standalone);break;case"cccccc":B=he(mt.Days,Ut.Short,Zt.Standalone);break;case"E":case"EE":case"EEE":B=he(mt.Days,Ut.Abbreviated);break;case"EEEE":B=he(mt.Days,Ut.Wide);break;case"EEEEE":B=he(mt.Days,Ut.Narrow);break;case"EEEEEE":B=he(mt.Days,Ut.Short);break;case"a":case"aa":case"aaa":B=he(mt.DayPeriods,Ut.Abbreviated);break;case"aaaa":B=he(mt.DayPeriods,Ut.Wide);break;case"aaaaa":B=he(mt.DayPeriods,Ut.Narrow);break;case"b":case"bb":case"bbb":B=he(mt.DayPeriods,Ut.Abbreviated,Zt.Standalone,!0);break;case"bbbb":B=he(mt.DayPeriods,Ut.Wide,Zt.Standalone,!0);break;case"bbbbb":B=he(mt.DayPeriods,Ut.Narrow,Zt.Standalone,!0);break;case"B":case"BB":case"BBB":B=he(mt.DayPeriods,Ut.Abbreviated,Zt.Format,!0);break;case"BBBB":B=he(mt.DayPeriods,Ut.Wide,Zt.Format,!0);break;case"BBBBB":B=he(mt.DayPeriods,Ut.Narrow,Zt.Format,!0);break;case"h":B=He(Ct.Hours,1,-12);break;case"hh":B=He(Ct.Hours,2,-12);break;case"H":B=He(Ct.Hours,1);break;case"HH":B=He(Ct.Hours,2);break;case"m":B=He(Ct.Minutes,1);break;case"mm":B=He(Ct.Minutes,2);break;case"s":B=He(Ct.Seconds,1);break;case"ss":B=He(Ct.Seconds,2);break;case"S":B=He(Ct.FractionalSeconds,1);break;case"SS":B=He(Ct.FractionalSeconds,2);break;case"SSS":B=He(Ct.FractionalSeconds,3);break;case"Z":case"ZZ":case"ZZZ":B=Qt(At.Short);break;case"ZZZZZ":B=Qt(At.Extended);break;case"O":case"OO":case"OOO":case"z":case"zz":case"zzz":B=Qt(At.ShortGMT);break;case"OOOO":case"ZZZZ":case"zzzz":B=Qt(At.Long);break;default:return null}return fn[O]=B,B}(Lt);tt+=un?un(_e,x,L):"''"===Lt?"'":Lt.replace(/(^'|'$)/g,"").replace(/''/g,"'")}),tt}function Tn(O,B,x){const j=new Date(0);return j.setFullYear(O,B,x),j.setHours(0,0,0),j}function Pn(O,B){const x=function(O){return(0,l.cg1)(O)[l.wAp.LocaleId]}(O);if(Be[x]=Be[x]||{},Be[x][B])return Be[x][B];let j="";switch(B){case"shortDate":j=vt(O,on.Short);break;case"mediumDate":j=vt(O,on.Medium);break;case"longDate":j=vt(O,on.Long);break;case"fullDate":j=vt(O,on.Full);break;case"shortTime":j=Ee(O,on.Short);break;case"mediumTime":j=Ee(O,on.Medium);break;case"longTime":j=Ee(O,on.Long);break;case"fullTime":j=Ee(O,on.Full);break;case"short":const _e=Pn(O,"shortTime"),w=Pn(O,"shortDate");j=hn(Fe(O,on.Short),[_e,w]);break;case"medium":const D=Pn(O,"mediumTime"),C=Pn(O,"mediumDate");j=hn(Fe(O,on.Medium),[D,C]);break;case"long":const L=Pn(O,"longTime"),tt=Pn(O,"longDate");j=hn(Fe(O,on.Long),[L,tt]);break;case"full":const Lt=Pn(O,"fullTime"),un=Pn(O,"fullDate");j=hn(Fe(O,on.Full),[Lt,un])}return j&&(Be[x][B]=j),j}function hn(O,B){return B&&(O=O.replace(/\{([^}]+)}/g,function(x,j){return null!=B&&j in B?B[j]:x})),O}function Vn(O,B,x="-",j,_e){let w="";(O<0||_e&&O<=0)&&(_e?O=1-O:(O=-O,w=x));let D=String(O);for(;D.length<B;)D="0"+D;return j&&(D=D.substr(D.length-B)),w+D}function He(O,B,x=0,j=!1,_e=!1){return function(w,D){let C=function(O,B){switch(O){case Ct.FullYear:return B.getFullYear();case Ct.Month:return B.getMonth();case Ct.Date:return B.getDate();case Ct.Hours:return B.getHours();case Ct.Minutes:return B.getMinutes();case Ct.Seconds:return B.getSeconds();case Ct.FractionalSeconds:return B.getMilliseconds();case Ct.Day:return B.getDay();default:throw new Error(`Unknown DateType value "${O}".`)}}(O,w);if((x>0||C>-x)&&(C+=x),O===Ct.Hours)0===C&&-12===x&&(C=12);else if(O===Ct.FractionalSeconds)return function(O,B){return Vn(O,3).substr(0,B)}(C,B);const L=Ve(D,ft.MinusSign);return Vn(C,B,L,j,_e)}}function he(O,B,x=Zt.Format,j=!1){return function(_e,w){return function(O,B,x,j,_e,w){switch(x){case mt.Months:return Gt(B,_e,j)[O.getMonth()];case mt.Days:return Rt(B,_e,j)[O.getDay()];case mt.DayPeriods:const D=O.getHours(),C=O.getMinutes();if(w){const tt=function(O){const B=(0,l.cg1)(O);return Fn(B),(B[l.wAp.ExtraData][2]||[]).map(j=>"string"==typeof j?et(j):[et(j[0]),et(j[1])])}(B),Lt=function(O,B,x){const j=(0,l.cg1)(O);Fn(j);const w=Te([j[l.wAp.ExtraData][0],j[l.wAp.ExtraData][1]],B)||[];return Te(w,x)||[]}(B,_e,j),un=tt.findIndex(kn=>{if(Array.isArray(kn)){const[zn,vi]=kn,nn=D>=zn.hours&&C>=zn.minutes,or=D<vi.hours||D===vi.hours&&C<vi.minutes;if(zn.hours<vi.hours){if(nn&&or)return!0}else if(nn||or)return!0}else if(kn.hours===D&&kn.minutes===C)return!0;return!1});if(-1!==un)return Lt[un]}return Dt(B,_e,j)[D<12?0:1];case mt.Eras:return function(O,B){return Te((0,l.cg1)(O)[l.wAp.Eras],B)}(B,j)[O.getFullYear()<=0?0:1];default:throw new Error(`unexpected translation type ${x}`)}}(_e,w,O,B,x,j)}}function Qt(O){return function(B,x,j){const _e=-1*j,w=Ve(x,ft.MinusSign),D=_e>0?Math.floor(_e/60):Math.ceil(_e/60);switch(O){case At.Short:return(_e>=0?"+":"")+Vn(D,2,w)+Vn(Math.abs(_e%60),2,w);case At.ShortGMT:return"GMT"+(_e>=0?"+":"")+Vn(D,1,w);case At.Long:return"GMT"+(_e>=0?"+":"")+Vn(D,2,w)+":"+Vn(Math.abs(_e%60),2,w);case At.Extended:return 0===j?"Z":(_e>=0?"+":"")+Vn(D,2,w)+":"+Vn(Math.abs(_e%60),2,w);default:throw new Error(`Unknown zone width "${O}"`)}}}function je(O){return Tn(O.getFullYear(),O.getMonth(),O.getDate()+(4-O.getDay()))}function st(O,B=!1){return function(x,j){let _e;if(B){const w=new Date(x.getFullYear(),x.getMonth(),1).getDay()-1,D=x.getDate();_e=1+Math.floor((D+w)/7)}else{const w=je(x),D=function(O){const B=Tn(O,0,1).getDay();return Tn(O,0,1+(B<=4?4:11)-B)}(w.getFullYear()),C=w.getTime()-D.getTime();_e=1+Math.round(C/6048e5)}return Vn(_e,O,Ve(j,ft.MinusSign))}}function kt(O,B=!1){return function(x,j){return Vn(je(x).getFullYear(),O,Ve(j,ft.MinusSign),B)}}const fn={};function ri(O,B){O=O.replace(/:/g,"");const x=Date.parse("Jan 01, 1970 00:00:00 "+O)/6e4;return isNaN(x)?B:x}function H(O){return O instanceof Date&&!isNaN(O.valueOf())}const K=/^(\d+)?\.((\d+)(-(\d+))?)?$/;function jn(O,B,x,j,_e,w,D=!1){let C="",L=!1;if(isFinite(O)){let tt=function(O){let j,_e,w,D,C,B=Math.abs(O)+"",x=0;for((_e=B.indexOf("."))>-1&&(B=B.replace(".","")),(w=B.search(/e/i))>0?(_e<0&&(_e=w),_e+=+B.slice(w+1),B=B.substring(0,w)):_e<0&&(_e=B.length),w=0;"0"===B.charAt(w);w++);if(w===(C=B.length))j=[0],_e=1;else{for(C--;"0"===B.charAt(C);)C--;for(_e-=w,j=[],D=0;w<=C;w++,D++)j[D]=Number(B.charAt(w))}return _e>22&&(j=j.splice(0,21),x=_e-1,_e=1),{digits:j,exponent:x,integerLen:_e}}(O);D&&(tt=function(O){if(0===O.digits[0])return O;const B=O.digits.length-O.integerLen;return O.exponent?O.exponent+=2:(0===B?O.digits.push(0,0):1===B&&O.digits.push(0),O.integerLen+=2),O}(tt));let Lt=B.minInt,un=B.minFrac,kn=B.maxFrac;if(w){const kr=w.match(K);if(null===kr)throw new Error(`${w} is not a valid digit info`);const bs=kr[1],rs=kr[3],Js=kr[5];null!=bs&&(Lt=pn(bs)),null!=rs&&(un=pn(rs)),null!=Js?kn=pn(Js):null!=rs&&un>kn&&(kn=un)}!function(O,B,x){if(B>x)throw new Error(`The minimum number of digits after fraction (${B}) is higher than the maximum (${x}).`);let j=O.digits,_e=j.length-O.integerLen;const w=Math.min(Math.max(B,_e),x);let D=w+O.integerLen,C=j[D];if(D>0){j.splice(Math.max(O.integerLen,D));for(let un=D;un<j.length;un++)j[un]=0}else{_e=Math.max(0,_e),O.integerLen=1,j.length=Math.max(1,D=w+1),j[0]=0;for(let un=1;un<D;un++)j[un]=0}if(C>=5)if(D-1<0){for(let un=0;un>D;un--)j.unshift(0),O.integerLen++;j.unshift(1),O.integerLen++}else j[D-1]++;for(;_e<Math.max(0,w);_e++)j.push(0);let L=0!==w;const tt=B+O.integerLen,Lt=j.reduceRight(function(un,kn,zn,vi){return vi[zn]=(kn+=un)<10?kn:kn-10,L&&(0===vi[zn]&&zn>=tt?vi.pop():L=!1),kn>=10?1:0},0);Lt&&(j.unshift(Lt),O.integerLen++)}(tt,un,kn);let zn=tt.digits,vi=tt.integerLen;const nn=tt.exponent;let or=[];for(L=zn.every(kr=>!kr);vi<Lt;vi++)zn.unshift(0);for(;vi<0;vi++)zn.unshift(0);vi>0?or=zn.splice(vi,zn.length):(or=zn,zn=[0]);const Tr=[];for(zn.length>=B.lgSize&&Tr.unshift(zn.splice(-B.lgSize,zn.length).join(""));zn.length>B.gSize;)Tr.unshift(zn.splice(-B.gSize,zn.length).join(""));zn.length&&Tr.unshift(zn.join("")),C=Tr.join(Ve(x,j)),or.length&&(C+=Ve(x,_e)+or.join("")),nn&&(C+=Ve(x,ft.Exponential)+"+"+nn)}else C=Ve(x,ft.Infinity);return C=O<0&&!L?B.negPre+C+B.negSuf:B.posPre+C+B.posSuf,C}function re(O,B="-"){const x={minInt:1,minFrac:0,maxFrac:0,posPre:"",posSuf:"",negPre:"",negSuf:"",gSize:0,lgSize:0},j=O.split(";"),_e=j[0],w=j[1],D=-1!==_e.indexOf(".")?_e.split("."):[_e.substring(0,_e.lastIndexOf("0")+1),_e.substring(_e.lastIndexOf("0")+1)],C=D[0],L=D[1]||"";x.posPre=C.substr(0,C.indexOf("#"));for(let Lt=0;Lt<L.length;Lt++){const un=L.charAt(Lt);"0"===un?x.minFrac=x.maxFrac=Lt+1:"#"===un?x.maxFrac=Lt+1:x.posSuf+=un}const tt=C.split(",");if(x.gSize=tt[1]?tt[1].length:0,x.lgSize=tt[2]||tt[1]?(tt[2]||tt[1]).length:0,w){const Lt=_e.length-x.posPre.length-x.posSuf.length,un=w.indexOf("#");x.negPre=w.substr(0,un).replace(/'/g,""),x.negSuf=w.substr(un+Lt).replace(/'/g,"")}else x.negPre=B+x.posPre,x.negSuf=x.posSuf;return x}function pn(O){const B=parseInt(O);if(isNaN(B))throw new Error("Invalid integer literal when parsing "+O);return B}class Yn{}let ai=(()=>{class O extends Yn{constructor(x){super(),this.locale=x}getPluralCategory(x,j){switch(tn(j||this.locale)(x)){case Kt.Zero:return"zero";case Kt.One:return"one";case Kt.Two:return"two";case Kt.Few:return"few";case Kt.Many:return"many";default:return"other"}}}return O.\u0275fac=function(x){return new(x||O)(l.LFG(l.soG))},O.\u0275prov=l.Yz7({token:O,factory:O.\u0275fac}),O})();function pr(O,B){B=encodeURIComponent(B);for(const x of O.split(";")){const j=x.indexOf("="),[_e,w]=-1==j?[x,""]:[x.slice(0,j),x.slice(j+1)];if(_e.trim()===B)return decodeURIComponent(w)}return null}let Ai=(()=>{class O{constructor(x,j,_e,w){this._iterableDiffers=x,this._keyValueDiffers=j,this._ngEl=_e,this._renderer=w,this._iterableDiffer=null,this._keyValueDiffer=null,this._initialClasses=[],this._rawClass=null}set klass(x){this._removeClasses(this._initialClasses),this._initialClasses="string"==typeof x?x.split(/\s+/):[],this._applyClasses(this._initialClasses),this._applyClasses(this._rawClass)}set ngClass(x){this._removeClasses(this._rawClass),this._applyClasses(this._initialClasses),this._iterableDiffer=null,this._keyValueDiffer=null,this._rawClass="string"==typeof x?x.split(/\s+/):x,this._rawClass&&((0,l.sIi)(this._rawClass)?this._iterableDiffer=this._iterableDiffers.find(this._rawClass).create():this._keyValueDiffer=this._keyValueDiffers.find(this._rawClass).create())}ngDoCheck(){if(this._iterableDiffer){const x=this._iterableDiffer.diff(this._rawClass);x&&this._applyIterableChanges(x)}else if(this._keyValueDiffer){const x=this._keyValueDiffer.diff(this._rawClass);x&&this._applyKeyValueChanges(x)}}_applyKeyValueChanges(x){x.forEachAddedItem(j=>this._toggleClass(j.key,j.currentValue)),x.forEachChangedItem(j=>this._toggleClass(j.key,j.currentValue)),x.forEachRemovedItem(j=>{j.previousValue&&this._toggleClass(j.key,!1)})}_applyIterableChanges(x){x.forEachAddedItem(j=>{if("string"!=typeof j.item)throw new Error(`NgClass can only toggle CSS classes expressed as strings, got ${(0,l.AaK)(j.item)}`);this._toggleClass(j.item,!0)}),x.forEachRemovedItem(j=>this._toggleClass(j.item,!1))}_applyClasses(x){x&&(Array.isArray(x)||x instanceof Set?x.forEach(j=>this._toggleClass(j,!0)):Object.keys(x).forEach(j=>this._toggleClass(j,!!x[j])))}_removeClasses(x){x&&(Array.isArray(x)||x instanceof Set?x.forEach(j=>this._toggleClass(j,!1)):Object.keys(x).forEach(j=>this._toggleClass(j,!1)))}_toggleClass(x,j){(x=x.trim())&&x.split(/\s+/g).forEach(_e=>{j?this._renderer.addClass(this._ngEl.nativeElement,_e):this._renderer.removeClass(this._ngEl.nativeElement,_e)})}}return O.\u0275fac=function(x){return new(x||O)(l.Y36(l.ZZ4),l.Y36(l.aQg),l.Y36(l.SBq),l.Y36(l.Qsj))},O.\u0275dir=l.lG2({type:O,selectors:[["","ngClass",""]],inputs:{klass:["class","klass"],ngClass:"ngClass"}}),O})(),Cn=(()=>{class O{constructor(x){this._viewContainerRef=x,this._componentRef=null,this._moduleRef=null}ngOnChanges(x){if(this._viewContainerRef.clear(),this._componentRef=null,this.ngComponentOutlet){const j=this.ngComponentOutletInjector||this._viewContainerRef.parentInjector;if(x.ngComponentOutletNgModuleFactory)if(this._moduleRef&&this._moduleRef.destroy(),this.ngComponentOutletNgModuleFactory){const D=j.get(l.h0i);this._moduleRef=this.ngComponentOutletNgModuleFactory.create(D.injector)}else this._moduleRef=null;const w=(this._moduleRef?this._moduleRef.componentFactoryResolver:j.get(l._Vd)).resolveComponentFactory(this.ngComponentOutlet);this._componentRef=this._viewContainerRef.createComponent(w,this._viewContainerRef.length,j,this.ngComponentOutletContent)}}ngOnDestroy(){this._moduleRef&&this._moduleRef.destroy()}}return O.\u0275fac=function(x){return new(x||O)(l.Y36(l.s_b))},O.\u0275dir=l.lG2({type:O,selectors:[["","ngComponentOutlet",""]],inputs:{ngComponentOutlet:"ngComponentOutlet",ngComponentOutletInjector:"ngComponentOutletInjector",ngComponentOutletContent:"ngComponentOutletContent",ngComponentOutletNgModuleFactory:"ngComponentOutletNgModuleFactory"},features:[l.TTD]}),O})();class Hr{constructor(B,x,j,_e){this.$implicit=B,this.ngForOf=x,this.index=j,this.count=_e}get first(){return 0===this.index}get last(){return this.index===this.count-1}get even(){return this.index%2==0}get odd(){return!this.even}}let gr=(()=>{class O{constructor(x,j,_e){this._viewContainer=x,this._template=j,this._differs=_e,this._ngForOf=null,this._ngForOfDirty=!0,this._differ=null}set ngForOf(x){this._ngForOf=x,this._ngForOfDirty=!0}set ngForTrackBy(x){this._trackByFn=x}get ngForTrackBy(){return this._trackByFn}set ngForTemplate(x){x&&(this._template=x)}ngDoCheck(){if(this._ngForOfDirty){this._ngForOfDirty=!1;const x=this._ngForOf;if(!this._differ&&x)try{this._differ=this._differs.find(x).create(this.ngForTrackBy)}catch(j){throw new Error(`Cannot find a differ supporting object '${x}' of type '${function(O){return O.name||typeof O}(x)}'. NgFor only supports binding to Iterables such as Arrays.`)}}if(this._differ){const x=this._differ.diff(this._ngForOf);x&&this._applyChanges(x)}}_applyChanges(x){const j=[];x.forEachOperation((_e,w,D)=>{if(null==_e.previousIndex){const C=this._viewContainer.createEmbeddedView(this._template,new Hr(null,this._ngForOf,-1,-1),null===D?void 0:D),L=new Hi(_e,C);j.push(L)}else if(null==D)this._viewContainer.remove(null===w?void 0:w);else if(null!==w){const C=this._viewContainer.get(w);this._viewContainer.move(C,D);const L=new Hi(_e,C);j.push(L)}});for(let _e=0;_e<j.length;_e++)this._perViewChange(j[_e].view,j[_e].record);for(let _e=0,w=this._viewContainer.length;_e<w;_e++){const D=this._viewContainer.get(_e);D.context.index=_e,D.context.count=w,D.context.ngForOf=this._ngForOf}x.forEachIdentityChange(_e=>{this._viewContainer.get(_e.currentIndex).context.$implicit=_e.item})}_perViewChange(x,j){x.context.$implicit=j.item}static ngTemplateContextGuard(x,j){return!0}}return O.\u0275fac=function(x){return new(x||O)(l.Y36(l.s_b),l.Y36(l.Rgc),l.Y36(l.ZZ4))},O.\u0275dir=l.lG2({type:O,selectors:[["","ngFor","","ngForOf",""]],inputs:{ngForOf:"ngForOf",ngForTrackBy:"ngForTrackBy",ngForTemplate:"ngForTemplate"}}),O})();class Hi{constructor(B,x){this.record=B,this.view=x}}let Ci=(()=>{class O{constructor(x,j){this._viewContainer=x,this._context=new _i,this._thenTemplateRef=null,this._elseTemplateRef=null,this._thenViewRef=null,this._elseViewRef=null,this._thenTemplateRef=j}set ngIf(x){this._context.$implicit=this._context.ngIf=x,this._updateView()}set ngIfThen(x){Ii("ngIfThen",x),this._thenTemplateRef=x,this._thenViewRef=null,this._updateView()}set ngIfElse(x){Ii("ngIfElse",x),this._elseTemplateRef=x,this._elseViewRef=null,this._updateView()}_updateView(){this._context.$implicit?this._thenViewRef||(this._viewContainer.clear(),this._elseViewRef=null,this._thenTemplateRef&&(this._thenViewRef=this._viewContainer.createEmbeddedView(this._thenTemplateRef,this._context))):this._elseViewRef||(this._viewContainer.clear(),this._thenViewRef=null,this._elseTemplateRef&&(this._elseViewRef=this._viewContainer.createEmbeddedView(this._elseTemplateRef,this._context)))}static ngTemplateContextGuard(x,j){return!0}}return O.\u0275fac=function(x){return new(x||O)(l.Y36(l.s_b),l.Y36(l.Rgc))},O.\u0275dir=l.lG2({type:O,selectors:[["","ngIf",""]],inputs:{ngIf:"ngIf",ngIfThen:"ngIfThen",ngIfElse:"ngIfElse"}}),O})();class _i{constructor(){this.$implicit=null,this.ngIf=null}}function Ii(O,B){if(B&&!B.createEmbeddedView)throw new Error(`${O} must be a TemplateRef, but received '${(0,l.AaK)(B)}'.`)}let z=(()=>{class O{constructor(x,j,_e){this._ngEl=x,this._differs=j,this._renderer=_e,this._ngStyle=null,this._differ=null}set ngStyle(x){this._ngStyle=x,!this._differ&&x&&(this._differ=this._differs.find(x).create())}ngDoCheck(){if(this._differ){const x=this._differ.diff(this._ngStyle);x&&this._applyChanges(x)}}_setStyle(x,j){const[_e,w]=x.split(".");null!=(j=null!=j&&w?`${j}${w}`:j)?this._renderer.setStyle(this._ngEl.nativeElement,_e,j):this._renderer.removeStyle(this._ngEl.nativeElement,_e)}_applyChanges(x){x.forEachRemovedItem(j=>this._setStyle(j.key,null)),x.forEachAddedItem(j=>this._setStyle(j.key,j.currentValue)),x.forEachChangedItem(j=>this._setStyle(j.key,j.currentValue))}}return O.\u0275fac=function(x){return new(x||O)(l.Y36(l.SBq),l.Y36(l.aQg),l.Y36(l.Qsj))},O.\u0275dir=l.lG2({type:O,selectors:[["","ngStyle",""]],inputs:{ngStyle:"ngStyle"}}),O})(),ke=(()=>{class O{constructor(x){this._viewContainerRef=x,this._viewRef=null,this.ngTemplateOutletContext=null,this.ngTemplateOutlet=null}ngOnChanges(x){if(x.ngTemplateOutlet){const j=this._viewContainerRef;this._viewRef&&j.remove(j.indexOf(this._viewRef)),this._viewRef=this.ngTemplateOutlet?j.createEmbeddedView(this.ngTemplateOutlet,this.ngTemplateOutletContext):null}else this._viewRef&&x.ngTemplateOutletContext&&this.ngTemplateOutletContext&&(this._viewRef.context=this.ngTemplateOutletContext)}}return O.\u0275fac=function(x){return new(x||O)(l.Y36(l.s_b))},O.\u0275dir=l.lG2({type:O,selectors:[["","ngTemplateOutlet",""]],inputs:{ngTemplateOutletContext:"ngTemplateOutletContext",ngTemplateOutlet:"ngTemplateOutlet"},features:[l.TTD]}),O})();function qt(O,B){return Error(`InvalidPipeArgument: '${B}' for pipe '${(0,l.AaK)(O)}'`)}class xn{createSubscription(B,x){return B.subscribe({next:x,error:j=>{throw j}})}dispose(B){B.unsubscribe()}onDestroy(B){B.unsubscribe()}}class ii{createSubscription(B,x){return B.then(x,j=>{throw j})}dispose(B){}onDestroy(B){}}const Dr=new ii,Ji=new xn;let Ri=(()=>{class O{constructor(x){this._ref=x,this._latestValue=null,this._subscription=null,this._obj=null,this._strategy=null}ngOnDestroy(){this._subscription&&this._dispose()}transform(x){return this._obj?x!==this._obj?(this._dispose(),this.transform(x)):this._latestValue:(x&&this._subscribe(x),this._latestValue)}_subscribe(x){this._obj=x,this._strategy=this._selectStrategy(x),this._subscription=this._strategy.createSubscription(x,j=>this._updateLatestValue(x,j))}_selectStrategy(x){if((0,l.QGY)(x))return Dr;if((0,l.F4k)(x))return Ji;throw qt(O,x)}_dispose(){this._strategy.dispose(this._subscription),this._latestValue=null,this._subscription=null,this._obj=null}_updateLatestValue(x,j){x===this._obj&&(this._latestValue=j,this._ref.markForCheck())}}return O.\u0275fac=function(x){return new(x||O)(l.Y36(l.sBO,16))},O.\u0275pipe=l.Yjl({name:"async",type:O,pure:!1}),O})(),pi=(()=>{class O{constructor(x){this._locale=x}transform(x,j,_e){if(!mr(x))return null;_e=_e||this._locale;try{return function(O,B,x){return jn(O,re(ut(B,Yt.Decimal),Ve(B,ft.MinusSign)),B,ft.Group,ft.Decimal,x)}(Qn(x),_e,j)}catch(w){throw qt(O,w.message)}}}return O.\u0275fac=function(x){return new(x||O)(l.Y36(l.soG,16))},O.\u0275pipe=l.Yjl({name:"number",type:O,pure:!0}),O})(),wr=(()=>{class O{constructor(x){this._locale=x}transform(x,j,_e){if(!mr(x))return null;_e=_e||this._locale;try{return function(O,B,x){return jn(O,re(ut(B,Yt.Percent),Ve(B,ft.MinusSign)),B,ft.Group,ft.Decimal,x,!0).replace(new RegExp("%","g"),Ve(B,ft.PercentSign))}(Qn(x),_e,j)}catch(w){throw qt(O,w.message)}}}return O.\u0275fac=function(x){return new(x||O)(l.Y36(l.soG,16))},O.\u0275pipe=l.Yjl({name:"percent",type:O,pure:!0}),O})();function mr(O){return!(null==O||""===O||O!=O)}function Qn(O){if("string"==typeof O&&!isNaN(Number(O)-parseFloat(O)))return Number(O);if("number"!=typeof O)throw new Error(`${O} is not a number`);return O}let ei=(()=>{class O{transform(x,j,_e){if(null==x)return null;if(!this.supports(x))throw qt(O,x);return x.slice(j,_e)}supports(x){return"string"==typeof x||Array.isArray(x)}}return O.\u0275fac=function(x){return new(x||O)},O.\u0275pipe=l.Yjl({name:"slice",type:O,pure:!1}),O})(),_r=(()=>{class O{}return O.\u0275fac=function(x){return new(x||O)},O.\u0275mod=l.oAB({type:O}),O.\u0275inj=l.cJS({providers:[{provide:Yn,useClass:ai}]}),O})();const Wi="browser";function $r(O){return O===Wi}let vs=(()=>{class O{}return O.\u0275prov=(0,l.Yz7)({token:O,providedIn:"root",factory:()=>new sr((0,l.LFG)(te),window)}),O})();class sr{constructor(B,x){this.document=B,this.window=x,this.offset=()=>[0,0]}setOffset(B){this.offset=Array.isArray(B)?()=>B:B}getScrollPosition(){return this.supportsScrolling()?[this.window.pageXOffset,this.window.pageYOffset]:[0,0]}scrollToPosition(B){this.supportsScrolling()&&this.window.scrollTo(B[0],B[1])}scrollToAnchor(B){if(!this.supportsScrolling())return;const x=function(O,B){const x=O.getElementById(B)||O.getElementsByName(B)[0];if(x)return x;if("function"==typeof O.createTreeWalker&&O.body&&(O.body.createShadowRoot||O.body.attachShadow)){const j=O.createTreeWalker(O.body,NodeFilter.SHOW_ELEMENT);let _e=j.currentNode;for(;_e;){const w=_e.shadowRoot;if(w){const D=w.getElementById(B)||w.querySelector(`[name="${B}"]`);if(D)return D}_e=j.nextNode()}}return null}(this.document,B);x&&(this.scrollToElement(x),this.attemptFocus(x))}setHistoryScrollRestoration(B){if(this.supportScrollRestoration()){const x=this.window.history;x&&x.scrollRestoration&&(x.scrollRestoration=B)}}scrollToElement(B){const x=B.getBoundingClientRect(),j=x.left+this.window.pageXOffset,_e=x.top+this.window.pageYOffset,w=this.offset();this.window.scrollTo(j-w[0],_e-w[1])}attemptFocus(B){return B.focus(),this.document.activeElement===B}supportScrollRestoration(){try{if(!this.supportsScrolling())return!1;const B=is(this.window.history)||is(Object.getPrototypeOf(this.window.history));return!(!B||!B.writable&&!B.set)}catch(B){return!1}}supportsScrolling(){try{return!!this.window&&!!this.window.scrollTo&&"pageXOffset"in this.window}catch(B){return!1}}}function is(O){return Object.getOwnPropertyDescriptor(O,"scrollRestoration")}class hi{}},4522:(St,Se,M)=>{M.d(Se,{TP:()=>Ye,eN:()=>ft,JF:()=>Te,WM:()=>Q});var l=M(6019),f=M(3668),Z=M(2411),o=M(5548),oe=M(6700),U=M(8735),te=M(8053);class G{}class W{}class Q{constructor(le){this.normalizedNames=new Map,this.lazyUpdate=null,le?this.lazyInit="string"==typeof le?()=>{this.headers=new Map,le.split("\n").forEach(ue=>{const Be=ue.indexOf(":");if(Be>0){const ct=ue.slice(0,Be),At=ct.toLowerCase(),Ct=ue.slice(Be+1).trim();this.maybeSetNormalizedName(ct,At),this.headers.has(At)?this.headers.get(At).push(Ct):this.headers.set(At,[Ct])}})}:()=>{this.headers=new Map,Object.keys(le).forEach(ue=>{let Be=le[ue];const ct=ue.toLowerCase();"string"==typeof Be&&(Be=[Be]),Be.length>0&&(this.headers.set(ct,Be),this.maybeSetNormalizedName(ue,ct))})}:this.headers=new Map}has(le){return this.init(),this.headers.has(le.toLowerCase())}get(le){this.init();const ue=this.headers.get(le.toLowerCase());return ue&&ue.length>0?ue[0]:null}keys(){return this.init(),Array.from(this.normalizedNames.values())}getAll(le){return this.init(),this.headers.get(le.toLowerCase())||null}append(le,ue){return this.clone({name:le,value:ue,op:"a"})}set(le,ue){return this.clone({name:le,value:ue,op:"s"})}delete(le,ue){return this.clone({name:le,value:ue,op:"d"})}maybeSetNormalizedName(le,ue){this.normalizedNames.has(ue)||this.normalizedNames.set(ue,le)}init(){this.lazyInit&&(this.lazyInit instanceof Q?this.copyFrom(this.lazyInit):this.lazyInit(),this.lazyInit=null,this.lazyUpdate&&(this.lazyUpdate.forEach(le=>this.applyUpdate(le)),this.lazyUpdate=null))}copyFrom(le){le.init(),Array.from(le.headers.keys()).forEach(ue=>{this.headers.set(ue,le.headers.get(ue)),this.normalizedNames.set(ue,le.normalizedNames.get(ue))})}clone(le){const ue=new Q;return ue.lazyInit=this.lazyInit&&this.lazyInit instanceof Q?this.lazyInit:this,ue.lazyUpdate=(this.lazyUpdate||[]).concat([le]),ue}applyUpdate(le){const ue=le.name.toLowerCase();switch(le.op){case"a":case"s":let Be=le.value;if("string"==typeof Be&&(Be=[Be]),0===Be.length)return;this.maybeSetNormalizedName(le.name,ue);const ct=("a"===le.op?this.headers.get(ue):void 0)||[];ct.push(...Be),this.headers.set(ue,ct);break;case"d":const At=le.value;if(At){let Ct=this.headers.get(ue);if(!Ct)return;Ct=Ct.filter(mt=>-1===At.indexOf(mt)),0===Ct.length?(this.headers.delete(ue),this.normalizedNames.delete(ue)):this.headers.set(ue,Ct)}else this.headers.delete(ue),this.normalizedNames.delete(ue)}}forEach(le){this.init(),Array.from(this.normalizedNames.keys()).forEach(ue=>le(this.normalizedNames.get(ue),this.headers.get(ue)))}}class ne{encodeKey(le){return it(le)}encodeValue(le){return it(le)}decodeKey(le){return decodeURIComponent(le)}decodeValue(le){return decodeURIComponent(le)}}const Ne=/%(\d[a-f0-9])/gi,qe={40:"@","3A":":",24:"$","2C":",","3B":";","2B":"+","3D":"=","3F":"?","2F":"/"};function it(Ae){return encodeURIComponent(Ae).replace(Ne,(le,ue)=>{var Be;return null!=(Be=qe[ue])?Be:le})}function Le(Ae){return`${Ae}`}class dt{constructor(le={}){if(this.updates=null,this.cloneFrom=null,this.encoder=le.encoder||new ne,le.fromString){if(le.fromObject)throw new Error("Cannot specify both fromString and fromObject.");this.map=function(Ae,le){const ue=new Map;return Ae.length>0&&Ae.replace(/^\?/,"").split("&").forEach(ct=>{const At=ct.indexOf("="),[Ct,mt]=-1==At?[le.decodeKey(ct),""]:[le.decodeKey(ct.slice(0,At)),le.decodeValue(ct.slice(At+1))],an=ue.get(Ct)||[];an.push(mt),ue.set(Ct,an)}),ue}(le.fromString,this.encoder)}else le.fromObject?(this.map=new Map,Object.keys(le.fromObject).forEach(ue=>{const Be=le.fromObject[ue];this.map.set(ue,Array.isArray(Be)?Be:[Be])})):this.map=null}has(le){return this.init(),this.map.has(le)}get(le){this.init();const ue=this.map.get(le);return ue?ue[0]:null}getAll(le){return this.init(),this.map.get(le)||null}keys(){return this.init(),Array.from(this.map.keys())}append(le,ue){return this.clone({param:le,value:ue,op:"a"})}appendAll(le){const ue=[];return Object.keys(le).forEach(Be=>{const ct=le[Be];Array.isArray(ct)?ct.forEach(At=>{ue.push({param:Be,value:At,op:"a"})}):ue.push({param:Be,value:ct,op:"a"})}),this.clone(ue)}set(le,ue){return this.clone({param:le,value:ue,op:"s"})}delete(le,ue){return this.clone({param:le,value:ue,op:"d"})}toString(){return this.init(),this.keys().map(le=>{const ue=this.encoder.encodeKey(le);return this.map.get(le).map(Be=>ue+"="+this.encoder.encodeValue(Be)).join("&")}).filter(le=>""!==le).join("&")}clone(le){const ue=new dt({encoder:this.encoder});return ue.cloneFrom=this.cloneFrom||this,ue.updates=(this.updates||[]).concat(le),ue}init(){null===this.map&&(this.map=new Map),null!==this.cloneFrom&&(this.cloneFrom.init(),this.cloneFrom.keys().forEach(le=>this.map.set(le,this.cloneFrom.map.get(le))),this.updates.forEach(le=>{switch(le.op){case"a":case"s":const ue=("a"===le.op?this.map.get(le.param):void 0)||[];ue.push(Le(le.value)),this.map.set(le.param,ue);break;case"d":if(void 0===le.value){this.map.delete(le.param);break}{let Be=this.map.get(le.param)||[];const ct=Be.indexOf(Le(le.value));-1!==ct&&Be.splice(ct,1),Be.length>0?this.map.set(le.param,Be):this.map.delete(le.param)}}}),this.cloneFrom=this.updates=null)}}class Ge{constructor(){this.map=new Map}set(le,ue){return this.map.set(le,ue),this}get(le){return this.map.has(le)||this.map.set(le,le.defaultValue()),this.map.get(le)}delete(le){return this.map.delete(le),this}keys(){return this.map.keys()}}function rt(Ae){return"undefined"!=typeof ArrayBuffer&&Ae instanceof ArrayBuffer}function Ce(Ae){return"undefined"!=typeof Blob&&Ae instanceof Blob}function ht(Ae){return"undefined"!=typeof FormData&&Ae instanceof FormData}class wt{constructor(le,ue,Be,ct){let At;if(this.url=ue,this.body=null,this.reportProgress=!1,this.withCredentials=!1,this.responseType="json",this.method=le.toUpperCase(),function(Ae){switch(Ae){case"DELETE":case"GET":case"HEAD":case"OPTIONS":case"JSONP":return!1;default:return!0}}(this.method)||ct?(this.body=void 0!==Be?Be:null,At=ct):At=Be,At&&(this.reportProgress=!!At.reportProgress,this.withCredentials=!!At.withCredentials,At.responseType&&(this.responseType=At.responseType),At.headers&&(this.headers=At.headers),At.context&&(this.context=At.context),At.params&&(this.params=At.params)),this.headers||(this.headers=new Q),this.context||(this.context=new Ge),this.params){const Ct=this.params.toString();if(0===Ct.length)this.urlWithParams=ue;else{const mt=ue.indexOf("?");this.urlWithParams=ue+(-1===mt?"?":mt<ue.length-1?"&":"")+Ct}}else this.params=new dt,this.urlWithParams=ue}serializeBody(){return null===this.body?null:rt(this.body)||Ce(this.body)||ht(this.body)||"undefined"!=typeof URLSearchParams&&this.body instanceof URLSearchParams||"string"==typeof this.body?this.body:this.body instanceof dt?this.body.toString():"object"==typeof this.body||"boolean"==typeof this.body||Array.isArray(this.body)?JSON.stringify(this.body):this.body.toString()}detectContentTypeHeader(){return null===this.body||ht(this.body)?null:Ce(this.body)?this.body.type||null:rt(this.body)?null:"string"==typeof this.body?"text/plain":this.body instanceof dt?"application/x-www-form-urlencoded;charset=UTF-8":"object"==typeof this.body||"number"==typeof this.body||"boolean"==typeof this.body?"application/json":null}clone(le={}){var hn;const ue=le.method||this.method,Be=le.url||this.url,ct=le.responseType||this.responseType,At=void 0!==le.body?le.body:this.body,Ct=void 0!==le.withCredentials?le.withCredentials:this.withCredentials,mt=void 0!==le.reportProgress?le.reportProgress:this.reportProgress;let an=le.headers||this.headers,Tn=le.params||this.params;const Pn=null!=(hn=le.context)?hn:this.context;return void 0!==le.setHeaders&&(an=Object.keys(le.setHeaders).reduce((Vn,vn)=>Vn.set(vn,le.setHeaders[vn]),an)),le.setParams&&(Tn=Object.keys(le.setParams).reduce((Vn,vn)=>Vn.set(vn,le.setParams[vn]),Tn)),new wt(ue,Be,At,{params:Tn,headers:an,context:Pn,reportProgress:mt,responseType:ct,withCredentials:Ct})}}var xt=(()=>((xt=xt||{})[xt.Sent=0]="Sent",xt[xt.UploadProgress=1]="UploadProgress",xt[xt.ResponseHeader=2]="ResponseHeader",xt[xt.DownloadProgress=3]="DownloadProgress",xt[xt.Response=4]="Response",xt[xt.User=5]="User",xt))();class Yt{constructor(le,ue=200,Be="OK"){this.headers=le.headers||new Q,this.status=void 0!==le.status?le.status:ue,this.statusText=le.statusText||Be,this.url=le.url||null,this.ok=this.status>=200&&this.status<300}}class Kt extends Yt{constructor(le={}){super(le),this.type=xt.ResponseHeader}clone(le={}){return new Kt({headers:le.headers||this.headers,status:void 0!==le.status?le.status:this.status,statusText:le.statusText||this.statusText,url:le.url||this.url||void 0})}}class Zt extends Yt{constructor(le={}){super(le),this.type=xt.Response,this.body=void 0!==le.body?le.body:null}clone(le={}){return new Zt({body:void 0!==le.body?le.body:this.body,headers:le.headers||this.headers,status:void 0!==le.status?le.status:this.status,statusText:le.statusText||this.statusText,url:le.url||this.url||void 0})}}class Ut extends Yt{constructor(le){super(le,0,"Unknown Error"),this.name="HttpErrorResponse",this.ok=!1,this.message=this.status>=200&&this.status<300?`Http failure during parsing for ${le.url||"(unknown url)"}`:`Http failure response for ${le.url||"(unknown url)"}: ${le.status} ${le.statusText}`,this.error=le.error||null}}function on(Ae,le){return{body:le,headers:Ae.headers,context:Ae.context,observe:Ae.observe,params:Ae.params,reportProgress:Ae.reportProgress,responseType:Ae.responseType,withCredentials:Ae.withCredentials}}let ft=(()=>{class Ae{constructor(ue){this.handler=ue}request(ue,Be,ct={}){let At;if(ue instanceof wt)At=ue;else{let an,Tn;an=ct.headers instanceof Q?ct.headers:new Q(ct.headers),ct.params&&(Tn=ct.params instanceof dt?ct.params:new dt({fromObject:ct.params})),At=new wt(ue,Be,void 0!==ct.body?ct.body:null,{headers:an,context:ct.context,params:Tn,reportProgress:ct.reportProgress,responseType:ct.responseType||"json",withCredentials:ct.withCredentials})}const Ct=(0,Z.of)(At).pipe((0,oe.b)(an=>this.handler.handle(an)));if(ue instanceof wt||"events"===ct.observe)return Ct;const mt=Ct.pipe((0,U.h)(an=>an instanceof Zt));switch(ct.observe||"body"){case"body":switch(At.responseType){case"arraybuffer":return mt.pipe((0,te.U)(an=>{if(null!==an.body&&!(an.body instanceof ArrayBuffer))throw new Error("Response is not an ArrayBuffer.");return an.body}));case"blob":return mt.pipe((0,te.U)(an=>{if(null!==an.body&&!(an.body instanceof Blob))throw new Error("Response is not a Blob.");return an.body}));case"text":return mt.pipe((0,te.U)(an=>{if(null!==an.body&&"string"!=typeof an.body)throw new Error("Response is not a string.");return an.body}));default:return mt.pipe((0,te.U)(an=>an.body))}case"response":return mt;default:throw new Error(`Unreachable: unhandled observe type ${ct.observe}}`)}}delete(ue,Be={}){return this.request("DELETE",ue,Be)}get(ue,Be={}){return this.request("GET",ue,Be)}head(ue,Be={}){return this.request("HEAD",ue,Be)}jsonp(ue,Be){return this.request("JSONP",ue,{params:(new dt).append(Be,"JSONP_CALLBACK"),observe:"body",responseType:"json"})}options(ue,Be={}){return this.request("OPTIONS",ue,Be)}patch(ue,Be,ct={}){return this.request("PATCH",ue,on(ct,Be))}post(ue,Be,ct={}){return this.request("POST",ue,on(ct,Be))}put(ue,Be,ct={}){return this.request("PUT",ue,on(ct,Be))}}return Ae.\u0275fac=function(ue){return new(ue||Ae)(f.LFG(G))},Ae.\u0275prov=f.Yz7({token:Ae,factory:Ae.\u0275fac}),Ae})();class Ft{constructor(le,ue){this.next=le,this.interceptor=ue}handle(le){return this.interceptor.intercept(le,this.next)}}const Ye=new f.OlP("HTTP_INTERCEPTORS");let Dt=(()=>{class Ae{intercept(ue,Be){return Be.handle(ue)}}return Ae.\u0275fac=function(ue){return new(ue||Ae)},Ae.\u0275prov=f.Yz7({token:Ae,factory:Ae.\u0275fac}),Ae})();const Fe=/^\)\]\}',?\n/;let ut=(()=>{class Ae{constructor(ue){this.xhrFactory=ue}handle(ue){if("JSONP"===ue.method)throw new Error("Attempted to construct Jsonp request without HttpClientJsonpModule installed.");return new o.y(Be=>{const ct=this.xhrFactory.build();if(ct.open(ue.method,ue.urlWithParams),ue.withCredentials&&(ct.withCredentials=!0),ue.headers.forEach((vn,He)=>ct.setRequestHeader(vn,He.join(","))),ue.headers.has("Accept")||ct.setRequestHeader("Accept","application/json, text/plain, */*"),!ue.headers.has("Content-Type")){const vn=ue.detectContentTypeHeader();null!==vn&&ct.setRequestHeader("Content-Type",vn)}if(ue.responseType){const vn=ue.responseType.toLowerCase();ct.responseType="json"!==vn?vn:"text"}const At=ue.serializeBody();let Ct=null;const mt=()=>{if(null!==Ct)return Ct;const vn=1223===ct.status?204:ct.status,He=ct.statusText||"OK",ye=new Q(ct.getAllResponseHeaders()),he=function(Ae){return"responseURL"in Ae&&Ae.responseURL?Ae.responseURL:/^X-Request-URL:/m.test(Ae.getAllResponseHeaders())?Ae.getResponseHeader("X-Request-URL"):null}(ct)||ue.url;return Ct=new Kt({headers:ye,status:vn,statusText:He,url:he}),Ct},an=()=>{let{headers:vn,status:He,statusText:ye,url:he}=mt(),Je=null;204!==He&&(Je=void 0===ct.response?ct.responseText:ct.response),0===He&&(He=Je?200:0);let Qt=He>=200&&He<300;if("json"===ue.responseType&&"string"==typeof Je){const ze=Je;Je=Je.replace(Fe,"");try{Je=""!==Je?JSON.parse(Je):null}catch(fe){Je=ze,Qt&&(Qt=!1,Je={error:fe,text:Je})}}Qt?(Be.next(new Zt({body:Je,headers:vn,status:He,statusText:ye,url:he||void 0})),Be.complete()):Be.error(new Ut({error:Je,headers:vn,status:He,statusText:ye,url:he||void 0}))},Tn=vn=>{const{url:He}=mt(),ye=new Ut({error:vn,status:ct.status||0,statusText:ct.statusText||"Unknown Error",url:He||void 0});Be.error(ye)};let Pn=!1;const hn=vn=>{Pn||(Be.next(mt()),Pn=!0);let He={type:xt.DownloadProgress,loaded:vn.loaded};vn.lengthComputable&&(He.total=vn.total),"text"===ue.responseType&&!!ct.responseText&&(He.partialText=ct.responseText),Be.next(He)},Vn=vn=>{let He={type:xt.UploadProgress,loaded:vn.loaded};vn.lengthComputable&&(He.total=vn.total),Be.next(He)};return ct.addEventListener("load",an),ct.addEventListener("error",Tn),ct.addEventListener("timeout",Tn),ct.addEventListener("abort",Tn),ue.reportProgress&&(ct.addEventListener("progress",hn),null!==At&&ct.upload&&ct.upload.addEventListener("progress",Vn)),ct.send(At),Be.next({type:xt.Sent}),()=>{ct.removeEventListener("error",Tn),ct.removeEventListener("abort",Tn),ct.removeEventListener("load",an),ct.removeEventListener("timeout",Tn),ue.reportProgress&&(ct.removeEventListener("progress",hn),null!==At&&ct.upload&&ct.upload.removeEventListener("progress",Vn)),ct.readyState!==ct.DONE&&ct.abort()}})}}return Ae.\u0275fac=function(ue){return new(ue||Ae)(f.LFG(l.JF))},Ae.\u0275prov=f.Yz7({token:Ae,factory:Ae.\u0275fac}),Ae})();const Pe=new f.OlP("XSRF_COOKIE_NAME"),gt=new f.OlP("XSRF_HEADER_NAME");class It{}let jt=(()=>{class Ae{constructor(ue,Be,ct){this.doc=ue,this.platform=Be,this.cookieName=ct,this.lastCookieString="",this.lastToken=null,this.parseCount=0}getToken(){if("server"===this.platform)return null;const ue=this.doc.cookie||"";return ue!==this.lastCookieString&&(this.parseCount++,this.lastToken=(0,l.Mx)(ue,this.cookieName),this.lastCookieString=ue),this.lastToken}}return Ae.\u0275fac=function(ue){return new(ue||Ae)(f.LFG(l.K0),f.LFG(f.Lbi),f.LFG(Pe))},Ae.\u0275prov=f.Yz7({token:Ae,factory:Ae.\u0275fac}),Ae})(),tn=(()=>{class Ae{constructor(ue,Be){this.tokenService=ue,this.headerName=Be}intercept(ue,Be){const ct=ue.url.toLowerCase();if("GET"===ue.method||"HEAD"===ue.method||ct.startsWith("http://")||ct.startsWith("https://"))return Be.handle(ue);const At=this.tokenService.getToken();return null!==At&&!ue.headers.has(this.headerName)&&(ue=ue.clone({headers:ue.headers.set(this.headerName,At)})),Be.handle(ue)}}return Ae.\u0275fac=function(ue){return new(ue||Ae)(f.LFG(It),f.LFG(gt))},Ae.\u0275prov=f.Yz7({token:Ae,factory:Ae.\u0275fac}),Ae})(),Fn=(()=>{class Ae{constructor(ue,Be){this.backend=ue,this.injector=Be,this.chain=null}handle(ue){if(null===this.chain){const Be=this.injector.get(Ye,[]);this.chain=Be.reduceRight((ct,At)=>new Ft(ct,At),this.backend)}return this.chain.handle(ue)}}return Ae.\u0275fac=function(ue){return new(ue||Ae)(f.LFG(W),f.LFG(f.zs3))},Ae.\u0275prov=f.Yz7({token:Ae,factory:Ae.\u0275fac}),Ae})(),X=(()=>{class Ae{static disable(){return{ngModule:Ae,providers:[{provide:tn,useClass:Dt}]}}static withOptions(ue={}){return{ngModule:Ae,providers:[ue.cookieName?{provide:Pe,useValue:ue.cookieName}:[],ue.headerName?{provide:gt,useValue:ue.headerName}:[]]}}}return Ae.\u0275fac=function(ue){return new(ue||Ae)},Ae.\u0275mod=f.oAB({type:Ae}),Ae.\u0275inj=f.cJS({providers:[tn,{provide:Ye,useExisting:tn,multi:!0},{provide:It,useClass:jt},{provide:Pe,useValue:"XSRF-TOKEN"},{provide:gt,useValue:"X-XSRF-TOKEN"}]}),Ae})(),Te=(()=>{class Ae{}return Ae.\u0275fac=function(ue){return new(ue||Ae)},Ae.\u0275mod=f.oAB({type:Ae}),Ae.\u0275inj=f.cJS({providers:[ft,{provide:G,useClass:Fn},ut,{provide:W,useExisting:ut}],imports:[[X.withOptions({cookieName:"XSRF-TOKEN",headerName:"X-XSRF-TOKEN"})]]}),Ae})()},3668:(St,Se,M)=>{M.d(Se,{deG:()=>Eu,tb:()=>Dy,AFp:()=>vy,ip1:()=>Ph,CZH:()=>Qa,hGG:()=>Ow,z2F:()=>Gl,sBO:()=>ew,Sil:()=>Vh,_Vd:()=>Ya,EJc:()=>wy,SBq:()=>Ks,qLn:()=>Da,vpe:()=>Qs,gxx:()=>Aa,tBr:()=>lo,XFs:()=>X,OlP:()=>xi,zs3:()=>Vi,ZZ4:()=>du,aQg:()=>hu,soG:()=>au,YKP:()=>S_,h0i:()=>Jo,PXZ:()=>zE,R0b:()=>Xr,FiY:()=>Ts,Lbi:()=>Cy,g9A:()=>by,n_E:()=>Ul,Qsj:()=>cD,FYo:()=>tu,JOm:()=>Gs,Tiy:()=>bh,q3G:()=>b,tp0:()=>us,Rgc:()=>jl,dDg:()=>Iy,GfV:()=>E_,s_b:()=>ru,ifc:()=>Ct,eFA:()=>ky,G48:()=>VE,Gpc:()=>ne,f3M:()=>pc,X6Q:()=>Gh,_c5:()=>Ew,VLi:()=>BE,c2e:()=>Ey,zSh:()=>Sl,wAp:()=>Mn,vHH:()=>it,EiD:()=>g,mCW:()=>xo,qzn:()=>No,JVY:()=>Hu,pB0:()=>$u,eBb:()=>Tc,L6k:()=>Uu,LAX:()=>ju,cg1:()=>dh,Tjo:()=>uw,kL8:()=>Gm,yhl:()=>_l,dqk:()=>hn,sIi:()=>Ol,CqO:()=>Xd,QGY:()=>qd,F4k:()=>Jg,RDi:()=>vs,AaK:()=>G,z3N:()=>Ms,qOj:()=>Bd,TTD:()=>Qn,_Bn:()=>y_,xp6:()=>Ep,uIk:()=>Ud,Tol:()=>ym,Gre:()=>Rm,DjV:()=>km,ekj:()=>sh,Suo:()=>Q_,Xpm:()=>st,lG2:()=>De,Yz7:()=>Ee,cJS:()=>Ve,oAB:()=>Xn,Yjl:()=>H,Y36:()=>xl,_UZ:()=>Zg,GkF:()=>Kg,BQk:()=>Jd,ynx:()=>Qd,qZA:()=>Kd,TgZ:()=>Zd,EpF:()=>Qg,n5z:()=>Dn,Ikx:()=>ch,SDv:()=>g_,QtT:()=>m_,pQV:()=>ph,LFG:()=>Li,$8M:()=>ti,$Z:()=>Wg,NdJ:()=>eh,CRH:()=>J_,oxw:()=>em,ALo:()=>V_,lcZ:()=>H_,xi3:()=>U_,Dn7:()=>j_,Hsn:()=>nm,F$t:()=>tm,Q6J:()=>zd,s9C:()=>ih,MGl:()=>zc,VKq:()=>O_,WLB:()=>N_,kEZ:()=>x_,l5B:()=>R_,iGM:()=>Z_,MAs:()=>Fg,CHM:()=>Ls,oJD:()=>N,LSH:()=>Re,kYT:()=>Tt,Udp:()=>rh,WFA:()=>th,d8E:()=>uh,YNc:()=>kg,W1O:()=>ty,_uU:()=>Tm,Oqu:()=>ah,hij:()=>Zc,AsE:()=>lh,Gf:()=>K_});var l=M(3405),f=M(1346),Z=M(5548),o=M(8526),oe=M(550);function U(e){for(let t in e)if(e[t]===U)return t;throw Error("Could not find renamed property on target object.")}function te(e,t){for(const n in t)t.hasOwnProperty(n)&&!e.hasOwnProperty(n)&&(e[n]=t[n])}function G(e){if("string"==typeof e)return e;if(Array.isArray(e))return"["+e.map(G).join(", ")+"]";if(null==e)return""+e;if(e.overriddenName)return`${e.overriddenName}`;if(e.name)return`${e.name}`;const t=e.toString();if(null==t)return""+t;const n=t.indexOf("\n");return-1===n?t:t.substring(0,n)}function W(e,t){return null==e||""===e?null===t?"":t:null==t||""===t?e:e+" "+t}const Q=U({__forward_ref__:U});function ne(e){return e.__forward_ref__=ne,e.toString=function(){return G(this())},e}function ie(e){return Ne(e)?e():e}function Ne(e){return"function"==typeof e&&e.hasOwnProperty(Q)&&e.__forward_ref__===ne}class it extends Error{constructor(t,n){super(function(e,t){return`${e?`NG0${e}: `:""}${t}`}(t,n)),this.code=t}}function Qe(e){return"string"==typeof e?e:null==e?"":String(e)}function Ge(e){return"function"==typeof e?e.name||e.toString():"object"==typeof e&&null!=e&&"function"==typeof e.type?e.type.name||e.type.toString():Qe(e)}function ht(e,t){const n=t?` in ${t}`:"";throw new it("201",`No provider for ${Ge(e)} found${n}`)}function zt(e,t,n,i){throw new Error(`ASSERTION ERROR: ${e}`+(null==i?"":` [Expected=> ${n} ${i} ${t} <=Actual]`))}function Ee(e){return{token:e.token,providedIn:e.providedIn||null,factory:e.factory,value:void 0}}function Ve(e){return{providers:e.providers||[],imports:e.imports||[]}}function ut(e){return Pe(e,tn)||Pe(e,Xe)}function Pe(e,t){return e.hasOwnProperty(t)?e[t]:null}function jt(e){return e&&(e.hasOwnProperty(Fn)||e.hasOwnProperty($))?e[Fn]:null}const tn=U({\u0275prov:U}),Fn=U({\u0275inj:U}),Xe=U({ngInjectableDef:U}),$=U({ngInjectorDef:U});var X=(()=>((X=X||{})[X.Default=0]="Default",X[X.Host=1]="Host",X[X.Self=2]="Self",X[X.SkipSelf=4]="SkipSelf",X[X.Optional=8]="Optional",X))();let Te;function nt(e){const t=Te;return Te=e,t}function Ae(e,t,n){const i=ut(e);return i&&"root"==i.providedIn?void 0===i.value?i.value=i.factory():i.value:n&X.Optional?null:void 0!==t?t:void ht(G(e),"Injector")}function ue(e){return{toString:e}.toString()}var Be=(()=>((Be=Be||{})[Be.OnPush=0]="OnPush",Be[Be.Default=1]="Default",Be))(),Ct=(()=>{return(e=Ct||(Ct={}))[e.Emulated=0]="Emulated",e[e.None=2]="None",e[e.ShadowDom=3]="ShadowDom",Ct;var e})();const mt="undefined"!=typeof globalThis&&globalThis,an="undefined"!=typeof window&&window,Tn="undefined"!=typeof self&&"undefined"!=typeof WorkerGlobalScope&&self instanceof WorkerGlobalScope&&self,hn=mt||"undefined"!=typeof global&&global||an||Tn,He={},ye=[],he=U({\u0275cmp:U}),Je=U({\u0275dir:U}),Qt=U({\u0275pipe:U}),ze=U({\u0275mod:U}),fe=U({\u0275fac:U}),ae=U({__NG_ELEMENT_ID__:U});let je=0;function st(e){return ue(()=>{const n={},i={type:e.type,providersResolver:null,decls:e.decls,vars:e.vars,factory:null,template:e.template||null,consts:e.consts||null,ngContentSelectors:e.ngContentSelectors,hostBindings:e.hostBindings||null,hostVars:e.hostVars||0,hostAttrs:e.hostAttrs||null,contentQueries:e.contentQueries||null,declaredInputs:n,inputs:null,outputs:null,exportAs:e.exportAs||null,onPush:e.changeDetection===Be.OnPush,directiveDefs:null,pipeDefs:null,selectors:e.selectors||ye,viewQuery:e.viewQuery||null,features:e.features||null,data:e.data||{},encapsulation:e.encapsulation||Ct.Emulated,id:"c",styles:e.styles||ye,_:null,setInput:null,schemas:e.schemas||null,tView:null},r=e.directives,a=e.features,d=e.pipes;return i.id+=je++,i.inputs=$t(e.inputs,n),i.outputs=$t(e.outputs),a&&a.forEach(h=>h(i)),i.directiveDefs=r?()=>("function"==typeof r?r():r).map(fn):null,i.pipeDefs=d?()=>("function"==typeof d?d():d).map($n):null,i})}function fn(e){return K(e)||function(e){return e[Je]||null}(e)}function $n(e){return function(e){return e[Qt]||null}(e)}const ri={};function Xn(e){return ue(()=>{const t={type:e.type,bootstrap:e.bootstrap||ye,declarations:e.declarations||ye,imports:e.imports||ye,exports:e.exports||ye,transitiveCompileScopes:null,schemas:e.schemas||null,id:e.id||null};return null!=e.id&&(ri[e.id]=e.type),t})}function Tt(e,t){return ue(()=>{const n=Oe(e,!0);n.declarations=t.declarations||ye,n.imports=t.imports||ye,n.exports=t.exports||ye})}function $t(e,t){if(null==e)return He;const n={};for(const i in e)if(e.hasOwnProperty(i)){let r=e[i],a=r;Array.isArray(r)&&(a=r[1],r=r[0]),n[r]=i,t&&(t[r]=a)}return n}const De=st;function H(e){return{type:e.type,name:e.name,factory:null,pure:!1!==e.pure,onDestroy:e.type.prototype.ngOnDestroy||null}}function K(e){return e[he]||null}function Oe(e,t){const n=e[ze]||null;if(!n&&!0===t)throw new Error(`Type ${G(e)} does not have '\u0275mod' property.`);return n}function di(e){return Array.isArray(e)&&"object"==typeof e[1]}function yi(e){return Array.isArray(e)&&!0===e[1]}function Ar(e){return 0!=(8&e.flags)}function se(e){return 2==(2&e.flags)}function be(e){return 1==(1&e.flags)}function z(e){return null!==e.template}function ke(e){return 0!=(512&e[2])}function Oi(e,t){return e.hasOwnProperty(fe)?e[fe]:null}class mr{constructor(t,n,i){this.previousValue=t,this.currentValue=n,this.firstChange=i}isFirstChange(){return this.firstChange}}function Qn(){return ei}function ei(e){return e.type.prototype.ngOnChanges&&(e.setInput=_r),ir}function ir(){const e=yr(this),t=null==e?void 0:e.current;if(t){const n=e.previous;if(n===He)e.previous=t;else for(let i in t)n[i]=t[i];e.current=null,this.ngOnChanges(t)}}function _r(e,t,n,i){const r=yr(e)||function(e,t){return e[Wi]=t}(e,{previous:He,current:null}),a=r.current||(r.current={}),d=r.previous,h=this.declaredInputs[n],v=d[h];a[h]=new mr(v&&v.currentValue,t,d===He),e[i]=t}Qn.ngInherit=!0;const Wi="__ngSimpleChanges__";function yr(e){return e[Wi]||null}let vr;function vs(e){vr=e}function sr(){return void 0!==vr?vr:"undefined"!=typeof document?document:void 0}function ui(e){return!!e.listen}const Rr={createRenderer:(e,t)=>sr()};function O(e){for(;Array.isArray(e);)e=e[0];return e}function j(e,t){return O(t[e])}function _e(e,t){return O(t[e.index])}function D(e,t){return e.data[t]}function C(e,t){return e[t]}function L(e,t){const n=t[e];return di(n)?n:n[0]}function tt(e){return 4==(4&e[2])}function Lt(e){return 128==(128&e[2])}function kn(e,t){return null==t?null:e[t]}function zn(e){e[18]=0}function vi(e,t){e[5]+=t;let n=e,i=e[3];for(;null!==i&&(1===t&&1===n[5]||-1===t&&0===n[5]);)i[5]+=t,n=i,i=i[3]}const nn={lFrame:ar(null),bindingsEnabled:!0,isInCheckNoChangesMode:!1};function rs(){return nn.bindingsEnabled}function Et(){return nn.lFrame.lView}function On(){return nn.lFrame.tView}function Ls(e){return nn.lFrame.contextLView=e,e[8]}function Ni(){let e=Fr();for(;null!==e&&64===e.type;)e=e.parent;return e}function Fr(){return nn.lFrame.currentTNode}function qs(){const e=nn.lFrame,t=e.currentTNode;return e.isParent?t:t.parent}function F(e,t){const n=nn.lFrame;n.currentTNode=e,n.isParent=t}function p(){return nn.lFrame.isParent}function m(){nn.lFrame.isParent=!1}function J(){return nn.isInCheckNoChangesMode}function de(e){nn.isInCheckNoChangesMode=e}function pe(){const e=nn.lFrame;let t=e.bindingRootIndex;return-1===t&&(t=e.bindingRootIndex=e.tView.bindingStartIndex),t}function Ue(){return nn.lFrame.bindingIndex}function Pt(){return nn.lFrame.bindingIndex++}function Xt(e){const t=nn.lFrame,n=t.bindingIndex;return t.bindingIndex=t.bindingIndex+e,n}function mn(e){nn.lFrame.inI18n=e}function _n(e,t){const n=nn.lFrame;n.bindingIndex=n.bindingRootIndex=e,Hn(t)}function Hn(e){nn.lFrame.currentDirectiveIndex=e}function si(e){const t=nn.lFrame.currentDirectiveIndex;return-1===t?null:e[t]}function Di(){return nn.lFrame.currentQueryIndex}function Ei(e){nn.lFrame.currentQueryIndex=e}function ki(e){const t=e[1];return 2===t.type?t.declTNode:1===t.type?e[6]:null}function Zr(e,t,n){if(n&X.SkipSelf){let r=t,a=e;for(;!(r=r.parent,null!==r||n&X.Host||(r=ki(a),null===r||(a=a[15],10&r.type))););if(null===r)return!1;t=r,e=a}const i=nn.lFrame=Fi();return i.currentTNode=t,i.lView=e,!0}function Xi(e){const t=Fi(),n=e[1];nn.lFrame=t,t.currentTNode=n.firstChild,t.lView=e,t.tView=n,t.contextLView=e,t.bindingIndex=n.bindingStartIndex,t.inI18n=!1}function Fi(){const e=nn.lFrame,t=null===e?null:e.child;return null===t?ar(e):t}function ar(e){const t={currentTNode:null,isParent:!0,lView:null,tView:null,selectedIndex:-1,contextLView:null,elementDepthCount:0,currentNamespace:null,currentDirectiveIndex:-1,bindingRootIndex:-1,bindingIndex:-1,currentQueryIndex:0,parent:e,child:null,inI18n:!1};return null!==e&&(e.child=t),t}function Mr(){const e=nn.lFrame;return nn.lFrame=e.parent,e.currentTNode=null,e.lView=null,e}const Sr=Mr;function ss(){const e=Mr();e.isParent=!0,e.tView=null,e.selectedIndex=-1,e.contextLView=null,e.elementDepthCount=0,e.currentDirectiveIndex=-1,e.currentNamespace=null,e.bindingRootIndex=-1,e.bindingIndex=-1,e.currentQueryIndex=0}function $i(){return nn.lFrame.selectedIndex}function Pr(e){nn.lFrame.selectedIndex=e}function Vt(){const e=nn.lFrame;return D(e.tView,e.selectedIndex)}function lr(e,t){for(let n=t.directiveStart,i=t.directiveEnd;n<i;n++){const a=e.data[n].type.prototype,{ngAfterContentInit:d,ngAfterContentChecked:h,ngAfterViewInit:v,ngAfterViewChecked:S,ngOnDestroy:k}=a;d&&(e.contentHooks||(e.contentHooks=[])).push(-n,d),h&&((e.contentHooks||(e.contentHooks=[])).push(n,h),(e.contentCheckHooks||(e.contentCheckHooks=[])).push(n,h)),v&&(e.viewHooks||(e.viewHooks=[])).push(-n,v),S&&((e.viewHooks||(e.viewHooks=[])).push(n,S),(e.viewCheckHooks||(e.viewCheckHooks=[])).push(n,S)),null!=k&&(e.destroyHooks||(e.destroyHooks=[])).push(n,k)}}function fi(e,t,n){In(e,t,3,n)}function Bs(e,t,n,i){(3&e[2])===n&&In(e,t,n,i)}function cr(e,t){let n=e[2];(3&n)===t&&(n&=2047,n+=1,e[2]=n)}function In(e,t,n,i){const a=null!=i?i:-1,d=t.length-1;let h=0;for(let v=void 0!==i?65535&e[18]:0;v<d;v++)if("number"==typeof t[v+1]){if(h=t[v],null!=i&&h>=i)break}else t[v]<0&&(e[18]+=65536),(h<a||-1==a)&&(Vs(e,n,t,v),e[18]=(4294901760&e[18])+v+2),v++}function Vs(e,t,n,i){const r=n[i]<0,a=n[i+1],h=e[r?-n[i]:n[i]];if(r){if(e[2]>>11<e[18]>>16&&(3&e[2])===t){e[2]+=2048;try{a.call(h)}finally{}}}else try{a.call(h)}finally{}}class Si{constructor(t,n,i){this.factory=t,this.resolving=!1,this.canSeeViewProviders=n,this.injectImpl=i}}function as(e,t,n){const i=ui(e);let r=0;for(;r<n.length;){const a=n[r];if("number"==typeof a){if(0!==a)break;r++;const d=n[r++],h=n[r++],v=n[r++];i?e.setAttribute(t,h,v,d):t.setAttributeNS(d,h,v)}else{const d=a,h=n[++r];eo(d)?i&&e.setProperty(t,d,h):i?e.setAttribute(t,d,h):t.setAttribute(d,h),r++}}return r}function yo(e){return 3===e||4===e||6===e}function eo(e){return 64===e.charCodeAt(0)}function Ds(e,t){if(null!==t&&0!==t.length)if(null===e||0===e.length)e=t.slice();else{let n=-1;for(let i=0;i<t.length;i++){const r=t[i];"number"==typeof r?n=r:0===n||ol(e,n,r,null,-1===n||2===n?t[++i]:null)}}return e}function ol(e,t,n,i,r){let a=0,d=e.length;if(-1===t)d=-1;else for(;a<e.length;){const h=e[a++];if("number"==typeof h){if(h===t){d=-1;break}if(h>t){d=a-1;break}}}for(;a<e.length;){const h=e[a];if("number"==typeof h)break;if(h===n){if(null===i)return void(null!==r&&(e[a+1]=r));if(i===e[a+1])return void(e[a+2]=r)}a++,null!==i&&a++,null!==r&&a++}-1!==d&&(e.splice(d,0,t),a=d+1),e.splice(a++,0,n),null!==i&&e.splice(a++,0,i),null!==r&&e.splice(a++,0,r)}function ls(e){return-1!==e}function cs(e){return 32767&e}function Hs(e,t){let n=function(e){return e>>16}(e),i=t;for(;n>0;)i=i[15],n--;return i}let vo=!0;function bo(e){const t=vo;return vo=e,t}let cl=0;function Co(e,t){const n=na(e,t);if(-1!==n)return n;const i=t[1];i.firstCreatePass&&(e.injectorIndex=t.length,Do(i.data,e),Do(t,null),Do(i.blueprint,null));const r=Ho(e,t),a=e.injectorIndex;if(ls(r)){const d=cs(r),h=Hs(r,t),v=h[1].data;for(let S=0;S<8;S++)t[a+S]=h[d+S]|v[d+S]}return t[a+8]=r,a}function Do(e,t){e.push(0,0,0,0,0,0,0,0,t)}function na(e,t){return-1===e.injectorIndex||e.parent&&e.parent.injectorIndex===e.injectorIndex||null===t[e.injectorIndex+8]?-1:e.injectorIndex}function Ho(e,t){if(e.parent&&-1!==e.parent.injectorIndex)return e.parent.injectorIndex;let n=0,i=null,r=t;for(;null!==r;){const a=r[1],d=a.type;if(i=2===d?a.declTNode:1===d?r[6]:null,null===i)return-1;if(n++,r=r[15],-1!==i.injectorIndex)return i.injectorIndex|n<<16}return-1}function Eo(e,t,n){!function(e,t,n){let i;"string"==typeof n?i=n.charCodeAt(0)||0:n.hasOwnProperty(ae)&&(i=n[ae]),null==i&&(i=n[ae]=cl++);const r=255&i;t.data[e+(r>>5)]|=1<<r}(e,t,n)}function ac(e,t,n){if(n&X.Optional)return e;ht(t,"NodeInjector")}function E(e,t,n,i){if(n&X.Optional&&void 0===i&&(i=null),0==(n&(X.Self|X.Host))){const r=e[9],a=nt(void 0);try{return r?r.get(t,i,n&X.Optional):Ae(t,i,n&X.Optional)}finally{nt(a)}}return ac(i,t,n)}function y(e,t,n,i=X.Default,r){if(null!==e){const a=function(e){if("string"==typeof e)return e.charCodeAt(0)||0;const t=e.hasOwnProperty(ae)?e[ae]:void 0;return"number"==typeof t?t>=0?255&t:I:t}(n);if("function"==typeof a){if(!Zr(t,e,i))return i&X.Host?ac(r,n,i):E(t,n,i,r);try{const d=a(i);if(null!=d||i&X.Optional)return d;ht(n)}finally{Sr()}}else if("number"==typeof a){let d=null,h=na(e,t),v=-1,S=i&X.Host?t[16][6]:null;for((-1===h||i&X.SkipSelf)&&(v=-1===h?Ho(e,t):t[h+8],-1!==v&&cn(i,!1)?(d=t[1],h=cs(v),t=Hs(v,t)):h=-1);-1!==h;){const k=t[1];if(yt(a,h,k.data)){const Y=R(h,t,n,d,i,S);if(Y!==_)return Y}v=t[h+8],-1!==v&&cn(i,t[1].data[h+8]===S)&&yt(a,h,t)?(d=k,h=cs(v),t=Hs(v,t)):h=-1}}}return E(t,n,i,r)}const _={};function I(){return new Wn(Ni(),Et())}function R(e,t,n,i,r,a){const d=t[1],h=d.data[e+8],k=V(h,d,n,null==i?se(h)&&vo:i!=d&&0!=(3&h.type),r&X.Host&&a===h);return null!==k?ce(t,d,k,h):_}function V(e,t,n,i,r){const a=e.providerIndexes,d=t.data,h=1048575&a,v=e.directiveStart,k=a>>20,q=r?h+k:e.directiveEnd;for(let me=i?h:h+k;me<q;me++){const Ie=d[me];if(me<v&&n===Ie||me>=v&&Ie.type===n)return me}if(r){const me=d[v];if(me&&z(me)&&me.type===n)return v}return null}function ce(e,t,n,i){let r=e[n];const a=t.data;if(function(e){return e instanceof Si}(r)){const d=r;d.resolving&&function(e,t){throw new it("200",`Circular dependency in DI detected for ${e}`)}(Ge(a[n]));const h=bo(d.canSeeViewProviders);d.resolving=!0;const v=d.injectImpl?nt(d.injectImpl):null;Zr(e,i,X.Default);try{r=e[n]=d.factory(void 0,a,e,i),t.firstCreatePass&&n>=i.directiveStart&&function(e,t,n){const{ngOnChanges:i,ngOnInit:r,ngDoCheck:a}=t.type.prototype;if(i){const d=ei(t);(n.preOrderHooks||(n.preOrderHooks=[])).push(e,d),(n.preOrderCheckHooks||(n.preOrderCheckHooks=[])).push(e,d)}r&&(n.preOrderHooks||(n.preOrderHooks=[])).push(0-e,r),a&&((n.preOrderHooks||(n.preOrderHooks=[])).push(e,a),(n.preOrderCheckHooks||(n.preOrderCheckHooks=[])).push(e,a))}(n,a[n],t)}finally{null!==v&&nt(v),bo(h),d.resolving=!1,Sr()}}return r}function yt(e,t,n){return!!(n[t+(e>>5)]&1<<e)}function cn(e,t){return!(e&X.Self||e&X.Host&&t)}class Wn{constructor(t,n){this._tNode=t,this._lView=n}get(t,n,i){return y(this._tNode,this._lView,t,i,n)}}function Dn(e){return ue(()=>{const t=e.prototype.constructor,n=t[fe]||Jn(t),i=Object.prototype;let r=Object.getPrototypeOf(e.prototype).constructor;for(;r&&r!==i;){const a=r[fe]||Jn(r);if(a&&a!==n)return a;r=Object.getPrototypeOf(r)}return a=>new a})}function Jn(e){return Ne(e)?()=>{const t=Jn(ie(e));return t&&t()}:Oi(e)}function ti(e){return function(e,t){if("class"===t)return e.classes;if("style"===t)return e.styles;const n=e.attrs;if(n){const i=n.length;let r=0;for(;r<i;){const a=n[r];if(yo(a))break;if(0===a)r+=2;else if("number"==typeof a)for(r++;r<i&&"string"==typeof n[r];)r++;else{if(a===t)return n[r+1];r+=2}}}return null}(Ni(),e)}const Zn="__parameters__";function Ir(e,t,n){return ue(()=>{const i=function(e){return function(...n){if(e){const i=e(...n);for(const r in i)this[r]=i[r]}}}(t);function r(...a){if(this instanceof r)return i.apply(this,a),this;const d=new r(...a);return h.annotation=d,h;function h(v,S,k){const Y=v.hasOwnProperty(Zn)?v[Zn]:Object.defineProperty(v,Zn,{value:[]})[Zn];for(;Y.length<=k;)Y.push(null);return(Y[k]=Y[k]||[]).push(d),v}}return n&&(r.prototype=Object.create(n.prototype)),r.prototype.ngMetadataName=e,r.annotationCls=r,r})}class xi{constructor(t,n){this._desc=t,this.ngMetadataName="InjectionToken",this.\u0275prov=void 0,"number"==typeof n?this.__NG_ELEMENT_ID__=n:void 0!==n&&(this.\u0275prov=Ee({token:this,providedIn:n.providedIn||"root",factory:n.factory}))}toString(){return`InjectionToken ${this._desc}`}}const Eu=new xi("AnalyzeForEntryComponents");function Jr(e,t){void 0===t&&(t=e);for(let n=0;n<e.length;n++){let i=e[n];Array.isArray(i)?(t===e&&(t=e.slice(0,n)),Jr(i,t)):t!==e&&t.push(i)}return t}function ws(e,t){e.forEach(n=>Array.isArray(n)?ws(n,t):t(n))}function ul(e,t,n){t>=e.length?e.push(n):e.splice(t,0,n)}function Mo(e,t){return t>=e.length-1?e.pop():e.splice(t,1)[0]}function io(e,t){const n=[];for(let i=0;i<e;i++)n.push(t);return n}function Gr(e,t,n){let i=ro(e,t);return i>=0?e[1|i]=n:(i=~i,function(e,t,n,i){let r=e.length;if(r==t)e.push(n,i);else if(1===r)e.push(i,e[0]),e[0]=n;else{for(r--,e.push(e[r-1],e[r]);r>t;)e[r]=e[r-2],r--;e[t]=n,e[t+1]=i}}(e,i,t,n)),i}function lc(e,t){const n=ro(e,t);if(n>=0)return e[1|n]}function ro(e,t){return function(e,t,n){let i=0,r=e.length>>n;for(;r!==i;){const a=i+(r-i>>1),d=e[a<<n];if(t===d)return a<<n;d>t?r=a:i=a+1}return~(r<<n)}(e,t,1)}const so={},hl="__NG_DI_FLAG__",$o="ngTempTokenPath",Au=/\n/gm,fl="__source",oo=U({provide:String,useValue:U});let Go;function ao(e){const t=Go;return Go=e,t}function Iu(e,t=X.Default){if(void 0===Go)throw new Error("inject() must be called from an injection context");return null===Go?Ae(e,void 0,t):Go.get(e,t&X.Optional?null:void 0,t)}function Li(e,t=X.Default){return(Te||Iu)(ie(e),t)}const pc=Li;function Ao(e){const t=[];for(let n=0;n<e.length;n++){const i=ie(e[n]);if(Array.isArray(i)){if(0===i.length)throw new Error("Arguments array must have arguments.");let r,a=X.Default;for(let d=0;d<i.length;d++){const h=i[d],v=gc(h);"number"==typeof v?-1===v?r=h.token:a|=v:r=h}t.push(Li(r,a))}else t.push(Li(i))}return t}function Yo(e,t){return e[hl]=t,e.prototype[hl]=t,e}function gc(e){return e[hl]}function da(e,t,n,i){const r=e[$o];throw t[fl]&&r.unshift(t[fl]),e.message=function(e,t,n,i=null){e=e&&"\n"===e.charAt(0)&&"\u0275"==e.charAt(1)?e.substr(2):e;let r=G(t);if(Array.isArray(t))r=t.map(G).join(" -> ");else if("object"==typeof t){let a=[];for(let d in t)if(t.hasOwnProperty(d)){let h=t[d];a.push(d+":"+("string"==typeof h?JSON.stringify(h):G(h)))}r=`{${a.join(", ")}}`}return`${n}${i?"("+i+")":""}[${r}]: ${e.replace(Au,"\n ")}`}("\n"+e.message,r,n,i),e.ngTokenPath=r,e[$o]=null,e}const lo=Yo(Ir("Inject",e=>({token:e})),-1),Ts=Yo(Ir("Optional"),8),us=Yo(Ir("SkipSelf"),4);let ma,ya;function zo(e){var t;return(null==(t=function(){if(void 0===ma&&(ma=null,hn.trustedTypes))try{ma=hn.trustedTypes.createPolicy("angular",{createHTML:e=>e,createScript:e=>e,createScriptURL:e=>e})}catch(e){}return ma}())?void 0:t.createHTML(e))||e}function Bu(e){var t;return(null==(t=function(){if(void 0===ya&&(ya=null,hn.trustedTypes))try{ya=hn.trustedTypes.createPolicy("angular#unsafe-bypass",{createHTML:e=>e,createScript:e=>e,createScriptURL:e=>e})}catch(e){}return ya}())?void 0:t.createHTML(e))||e}class Oo{constructor(t){this.changingThisBreaksApplicationSecurity=t}toString(){return`SafeValue must use [property]=binding: ${this.changingThisBreaksApplicationSecurity} (see https://g.co/ng/security#xss)`}}class Dc extends Oo{getTypeName(){return"HTML"}}class Vu extends Oo{getTypeName(){return"Style"}}class Pf extends Oo{getTypeName(){return"Script"}}class Ec extends Oo{getTypeName(){return"URL"}}class wc extends Oo{getTypeName(){return"ResourceURL"}}function Ms(e){return e instanceof Oo?e.changingThisBreaksApplicationSecurity:e}function No(e,t){const n=_l(e);if(null!=n&&n!==t){if("ResourceURL"===n&&"URL"===t)return!0;throw new Error(`Required a safe ${t}, got a ${n} (see https://g.co/ng/security#xss)`)}return n===t}function _l(e){return e instanceof Oo&&e.getTypeName()||null}function Hu(e){return new Dc(e)}function Uu(e){return new Vu(e)}function Tc(e){return new Pf(e)}function ju(e){return new Ec(e)}function $u(e){return new wc(e)}function Gu(e){const t=new Yu(e);return function(){try{return!!(new window.DOMParser).parseFromString(zo(""),"text/html")}catch(e){return!1}}()?new Mc(t):t}class Mc{constructor(t){this.inertDocumentHelper=t}getInertBodyElement(t){t="<body><remove></remove>"+t;try{const n=(new window.DOMParser).parseFromString(zo(t),"text/html").body;return null===n?this.inertDocumentHelper.getInertBodyElement(t):(n.removeChild(n.firstChild),n)}catch(n){return null}}}class Yu{constructor(t){if(this.defaultDoc=t,this.inertDocument=this.defaultDoc.implementation.createHTMLDocument("sanitization-inert"),null==this.inertDocument.body){const n=this.inertDocument.createElement("html");this.inertDocument.appendChild(n);const i=this.inertDocument.createElement("body");n.appendChild(i)}}getInertBodyElement(t){const n=this.inertDocument.createElement("template");if("content"in n)return n.innerHTML=zo(t),n;const i=this.inertDocument.createElement("body");return i.innerHTML=zo(t),this.defaultDoc.documentMode&&this.stripCustomNsAttrs(i),i}stripCustomNsAttrs(t){const n=t.attributes;for(let r=n.length-1;0<r;r--){const d=n.item(r).name;("xmlns:ns1"===d||0===d.indexOf("ns1:"))&&t.removeAttribute(d)}let i=t.firstChild;for(;i;)i.nodeType===Node.ELEMENT_NODE&&this.stripCustomNsAttrs(i),i=i.nextSibling}}const Wu=/^(?:(?:https?|mailto|ftp|tel|file|sms):|[^&:/?#]*(?:[/?#]|$))/gi,Bf=/^data:(?:image\/(?:bmp|gif|jpeg|jpg|png|tiff|webp)|video\/(?:mpeg|mp4|ogg|webm)|audio\/(?:mp3|oga|ogg|opus));base64,[a-z0-9+\/]+=*$/i;function xo(e){return(e=String(e)).match(Wu)||e.match(Bf)?e:"unsafe:"+e}function Sc(e){return(e=String(e)).split(",").map(t=>xo(t.trim())).join(", ")}function ds(e){const t={};for(const n of e.split(","))t[n]=!0;return t}function Wo(...e){const t={};for(const n of e)for(const i in n)n.hasOwnProperty(i)&&(t[i]=!0);return t}const Zu=ds("area,br,col,hr,img,wbr"),yl=ds("colgroup,dd,dt,li,p,tbody,td,tfoot,th,thead,tr"),Ac=ds("rp,rt"),va=Wo(Zu,Wo(yl,ds("address,article,aside,blockquote,caption,center,del,details,dialog,dir,div,dl,figure,figcaption,footer,h1,h2,h3,h4,h5,h6,header,hgroup,hr,ins,main,map,menu,nav,ol,pre,section,summary,table,ul")),Wo(Ac,ds("a,abbr,acronym,audio,b,bdi,bdo,big,br,cite,code,del,dfn,em,font,i,img,ins,kbd,label,map,mark,picture,q,ruby,rp,rt,s,samp,small,source,span,strike,strong,sub,sup,time,track,tt,u,var,video")),Wo(Ac,yl)),vl=ds("background,cite,href,itemtype,longdesc,poster,src,xlink:href"),bl=ds("srcset"),Cl=Wo(vl,bl,ds("abbr,accesskey,align,alt,autoplay,axis,bgcolor,border,cellpadding,cellspacing,class,clear,color,cols,colspan,compact,controls,coords,datetime,default,dir,download,face,headers,height,hidden,hreflang,hspace,ismap,itemscope,itemprop,kind,label,lang,language,loop,media,muted,nohref,nowrap,open,preload,rel,rev,role,rows,rowspan,rules,scope,scrolling,shape,size,sizes,span,srclang,start,summary,tabindex,target,title,translate,type,usemap,valign,value,vspace,width"),ds("aria-activedescendant,aria-atomic,aria-autocomplete,aria-busy,aria-checked,aria-colcount,aria-colindex,aria-colspan,aria-controls,aria-current,aria-describedby,aria-details,aria-disabled,aria-dropeffect,aria-errormessage,aria-expanded,aria-flowto,aria-grabbed,aria-haspopup,aria-hidden,aria-invalid,aria-keyshortcuts,aria-label,aria-labelledby,aria-level,aria-live,aria-modal,aria-multiline,aria-multiselectable,aria-orientation,aria-owns,aria-placeholder,aria-posinset,aria-pressed,aria-readonly,aria-relevant,aria-required,aria-roledescription,aria-rowcount,aria-rowindex,aria-rowspan,aria-selected,aria-setsize,aria-sort,aria-valuemax,aria-valuemin,aria-valuenow,aria-valuetext")),Qu=ds("script,style,template");class jf{constructor(){this.sanitizedSomething=!1,this.buf=[]}sanitizeChildren(t){let n=t.firstChild,i=!0;for(;n;)if(n.nodeType===Node.ELEMENT_NODE?i=this.startElement(n):n.nodeType===Node.TEXT_NODE?this.chars(n.nodeValue):this.sanitizedSomething=!0,i&&n.firstChild)n=n.firstChild;else for(;n;){n.nodeType===Node.ELEMENT_NODE&&this.endElement(n);let r=this.checkClobberedElement(n,n.nextSibling);if(r){n=r;break}n=this.checkClobberedElement(n,n.parentNode)}return this.buf.join("")}startElement(t){const n=t.nodeName.toLowerCase();if(!va.hasOwnProperty(n))return this.sanitizedSomething=!0,!Qu.hasOwnProperty(n);this.buf.push("<"),this.buf.push(n);const i=t.attributes;for(let r=0;r<i.length;r++){const a=i.item(r),d=a.name,h=d.toLowerCase();if(!Cl.hasOwnProperty(h)){this.sanitizedSomething=!0;continue}let v=a.value;vl[h]&&(v=xo(v)),bl[h]&&(v=Sc(v)),this.buf.push(" ",d,'="',Nc(v),'"')}return this.buf.push(">"),!0}endElement(t){const n=t.nodeName.toLowerCase();va.hasOwnProperty(n)&&!Zu.hasOwnProperty(n)&&(this.buf.push("</"),this.buf.push(n),this.buf.push(">"))}chars(t){this.buf.push(Nc(t))}checkClobberedElement(t,n){if(n&&(t.compareDocumentPosition(n)&Node.DOCUMENT_POSITION_CONTAINED_BY)===Node.DOCUMENT_POSITION_CONTAINED_BY)throw new Error(`Failed to sanitize html because the element is clobbered: ${t.outerHTML}`);return n}}const Ic=/[\uD800-\uDBFF][\uDC00-\uDFFF]/g,Oc=/([^\#-~ |!])/g;function Nc(e){return e.replace(/&/g,"&").replace(Ic,function(t){return"&#"+(1024*(t.charCodeAt(0)-55296)+(t.charCodeAt(1)-56320)+65536)+";"}).replace(Oc,function(t){return"&#"+t.charCodeAt(0)+";"}).replace(/</g,"<").replace(/>/g,">")}let c;function g(e,t){let n=null;try{c=c||Gu(e);let i=t?String(t):"";n=c.getInertBodyElement(i);let r=5,a=i;do{if(0===r)throw new Error("Failed to sanitize html because the input is unstable");r--,i=a,a=n.innerHTML,n=c.getInertBodyElement(i)}while(i!==a);return zo((new jf).sanitizeChildren(s(n)||n))}finally{if(n){const i=s(n)||n;for(;i.firstChild;)i.removeChild(i.firstChild)}}}function s(e){return"content"in e&&function(e){return e.nodeType===Node.ELEMENT_NODE&&"TEMPLATE"===e.nodeName}(e)?e.content:null}var b=(()=>((b=b||{})[b.NONE=0]="NONE",b[b.HTML=1]="HTML",b[b.STYLE=2]="STYLE",b[b.SCRIPT=3]="SCRIPT",b[b.URL=4]="URL",b[b.RESOURCE_URL=5]="RESOURCE_URL",b))();function N(e){const t=Bi();return t?Bu(t.sanitize(b.HTML,e)||""):No(e,"HTML")?Bu(Ms(e)):g(sr(),Qe(e))}function Re(e){const t=Bi();return t?t.sanitize(b.URL,e)||"":No(e,"URL")?Ms(e):xo(Qe(e))}function Bi(){const e=Et();return e&&e[12]}const Dl="__ngContext__";function Qi(e,t){e[Dl]=t}function Ca(e){const t=function(e){return e[Dl]||null}(e);return t?Array.isArray(t)?t:t.lView:null}function xc(e){return e.ngOriginalError}function Wv(e,...t){e.error(...t)}class Da{constructor(){this._console=console}handleError(t){const n=this._findOriginalError(t),i=this._findContext(t),r=(e=t)&&e.ngErrorLogger||Wv;var e;r(this._console,"ERROR",t),n&&r(this._console,"ORIGINAL ERROR",n),i&&r(this._console,"ERROR CONTEXT",i)}_findContext(t){return t?t.ngDebugContext||this._findContext(xc(t)):null}_findOriginalError(t){let n=t&&xc(t);for(;n&&xc(n);)n=xc(n);return n||null}}const Qv=/^>|^->|<!--|-->|--!>|<!-$/g,Jv=/(<|>)/;const Jf=(()=>("undefined"!=typeof requestAnimationFrame&&requestAnimationFrame||setTimeout).bind(hn))();function $s(e){return e instanceof Function?e():e}var Gs=(()=>((Gs=Gs||{})[Gs.Important=1]="Important",Gs[Gs.DashCase=2]="DashCase",Gs))();let qu;function Xu(e,t){return qu(e,t)}function El(e){const t=e[3];return yi(t)?t[3]:t}function ed(e){return np(e[13])}function td(e){return np(e[4])}function np(e){for(;null!==e&&!yi(e);)e=e[4];return e}function wa(e,t,n,i,r){if(null!=i){let a,d=!1;yi(i)?a=i:di(i)&&(d=!0,i=i[0]);const h=O(i);0===e&&null!==n?null==r?lp(t,n,h):Zo(t,n,h,r||null,!0):1===e&&null!==n?Zo(t,n,h,r||null,!0):2===e?gp(t,h,d):3===e&&t.destroyNode(h),null!=a&&function(e,t,n,i,r){const a=n[7];a!==O(n)&&wa(t,e,i,a,r);for(let h=10;h<n.length;h++){const v=n[h];wl(v[1],v,e,t,i,a)}}(t,e,a,n,r)}}function nd(e,t){return ui(e)?e.createText(t):e.createTextNode(t)}function ip(e,t,n){ui(e)?e.setValue(t,n):t.textContent=n}function sb(e,t){return e.createComment(function(e){return e.replace(Qv,t=>t.replace(Jv,"\u200b$1\u200b"))}(t))}function id(e,t,n){return ui(e)?e.createElement(t,n):null===n?e.createElement(t):e.createElementNS(n,t)}function rp(e,t){const n=e[9],i=n.indexOf(t),r=t[3];1024&t[2]&&(t[2]&=-1025,vi(r,-1)),n.splice(i,1)}function rd(e,t){if(e.length<=10)return;const n=10+t,i=e[n];if(i){const r=i[17];null!==r&&r!==e&&rp(r,i),t>0&&(e[n-1][4]=i[4]);const a=Mo(e,10+t);!function(e,t){wl(e,t,t[11],2,null,null),t[0]=null,t[6]=null}(i[1],i);const d=a[19];null!==d&&d.detachView(a[1]),i[3]=null,i[4]=null,i[2]&=-129}return i}function sp(e,t){if(!(256&t[2])){const n=t[11];ui(n)&&n.destroyNode&&wl(e,t,n,3,null,null),function(e){let t=e[13];if(!t)return sd(e[1],e);for(;t;){let n=null;if(di(t))n=t[13];else{const i=t[10];i&&(n=i)}if(!n){for(;t&&!t[4]&&t!==e;)di(t)&&sd(t[1],t),t=t[3];null===t&&(t=e),di(t)&&sd(t[1],t),n=t&&t[4]}t=n}}(t)}}function sd(e,t){if(!(256&t[2])){t[2]&=-129,t[2]|=256,function(e,t){let n;if(null!=e&&null!=(n=e.destroyHooks))for(let i=0;i<n.length;i+=2){const r=t[n[i]];if(!(r instanceof Si)){const a=n[i+1];if(Array.isArray(a))for(let d=0;d<a.length;d+=2){const h=r[a[d]],v=a[d+1];try{v.call(h)}finally{}}else try{a.call(r)}finally{}}}}(e,t),function(e,t){const n=e.cleanup,i=t[7];let r=-1;if(null!==n)for(let a=0;a<n.length-1;a+=2)if("string"==typeof n[a]){const d=n[a+1],h="function"==typeof d?d(t):O(t[d]),v=i[r=n[a+2]],S=n[a+3];"boolean"==typeof S?h.removeEventListener(n[a],v,S):S>=0?i[r=S]():i[r=-S].unsubscribe(),a+=2}else{const d=i[r=n[a+1]];n[a].call(d)}if(null!==i){for(let a=r+1;a<i.length;a++)i[a]();t[7]=null}}(e,t),1===t[1].type&&ui(t[11])&&t[11].destroy();const n=t[17];if(null!==n&&yi(t[3])){n!==t[3]&&rp(n,t);const i=t[19];null!==i&&i.detachView(e)}}}function op(e,t,n){return ap(e,t.parent,n)}function ap(e,t,n){let i=t;for(;null!==i&&40&i.type;)i=(t=i).parent;if(null===i)return n[0];if(2&i.flags){const r=e.data[i.directiveStart].encapsulation;if(r===Ct.None||r===Ct.Emulated)return null}return _e(i,n)}function Zo(e,t,n,i,r){ui(e)?e.insertBefore(t,n,i,r):t.insertBefore(n,i,r)}function lp(e,t,n){ui(e)?e.appendChild(t,n):t.appendChild(n)}function cp(e,t,n,i,r){null!==i?Zo(e,t,n,i,r):lp(e,t,n)}function kc(e,t){return ui(e)?e.parentNode(t):t.parentNode}function up(e,t,n){return hp(e,t,n)}function dp(e,t,n){return 40&e.type?_e(e,n):null}let od,hp=dp;function fp(e,t){hp=e,od=t}function Fc(e,t,n,i){const r=op(e,i,t),a=t[11],h=up(i.parent||t[6],i,t);if(null!=r)if(Array.isArray(n))for(let v=0;v<n.length;v++)cp(a,r,n[v],h,!1);else cp(a,r,n,h,!1);void 0!==od&&od(a,i,t,n,r)}function Pc(e,t){if(null!==t){const n=t.type;if(3&n)return _e(t,e);if(4&n)return ad(-1,e[t.index]);if(8&n){const i=t.child;if(null!==i)return Pc(e,i);{const r=e[t.index];return yi(r)?ad(-1,r):O(r)}}if(32&n)return Xu(t,e)()||O(e[t.index]);{const i=pp(e,t);return null!==i?Array.isArray(i)?i[0]:Pc(El(e[16]),i):Pc(e,t.next)}}return null}function pp(e,t){return null!==t?e[16][6].projection[t.projection]:null}function ad(e,t){const n=10+e+1;if(n<t.length){const i=t[n],r=i[1].firstChild;if(null!==r)return Pc(i,r)}return t[7]}function gp(e,t,n){const i=kc(e,t);i&&function(e,t,n,i){ui(e)?e.removeChild(t,n,i):t.removeChild(n)}(e,i,t,n)}function ld(e,t,n,i,r,a,d){for(;null!=n;){const h=i[n.index],v=n.type;if(d&&0===t&&(h&&Qi(O(h),i),n.flags|=4),64!=(64&n.flags))if(8&v)ld(e,t,n.child,i,r,a,!1),wa(t,e,r,h,a);else if(32&v){const S=Xu(n,i);let k;for(;k=S();)wa(t,e,r,k,a);wa(t,e,r,h,a)}else 16&v?mp(e,t,i,n,r,a):wa(t,e,r,h,a);n=d?n.projectionNext:n.next}}function wl(e,t,n,i,r,a){ld(n,i,e.firstChild,t,r,a,!1)}function mp(e,t,n,i,r,a){const d=n[16],v=d[6].projection[i.projection];if(Array.isArray(v))for(let S=0;S<v.length;S++)wa(t,e,r,v[S],a);else ld(e,t,v,d[3],r,a,!0)}function _p(e,t,n){ui(e)?e.setAttribute(t,"style",n):t.style.cssText=n}function cd(e,t,n){ui(e)?""===n?e.removeAttribute(t,"class"):e.setAttribute(t,"class",n):t.className=n}function yp(e,t,n){let i=e.length;for(;;){const r=e.indexOf(t,n);if(-1===r)return r;if(0===r||e.charCodeAt(r-1)<=32){const a=t.length;if(r+a===i||e.charCodeAt(r+a)<=32)return r}n=r+1}}const vp="ng-template";function vb(e,t,n){let i=0;for(;i<e.length;){let r=e[i++];if(n&&"class"===r){if(r=e[i],-1!==yp(r.toLowerCase(),t,0))return!0}else if(1===r){for(;i<e.length&&"string"==typeof(r=e[i++]);)if(r.toLowerCase()===t)return!0;return!1}}return!1}function bp(e){return 4===e.type&&e.value!==vp}function bb(e,t,n){return t===(4!==e.type||n?e.value:vp)}function Cb(e,t,n){let i=4;const r=e.attrs||[],a=function(e){for(let t=0;t<e.length;t++)if(yo(e[t]))return t;return e.length}(r);let d=!1;for(let h=0;h<t.length;h++){const v=t[h];if("number"!=typeof v){if(!d)if(4&i){if(i=2|1&i,""!==v&&!bb(e,v,n)||""===v&&1===t.length){if(Ss(i))return!1;d=!0}}else{const S=8&i?v:t[++h];if(8&i&&null!==e.attrs){if(!vb(e.attrs,S,n)){if(Ss(i))return!1;d=!0}continue}const Y=Db(8&i?"class":v,r,bp(e),n);if(-1===Y){if(Ss(i))return!1;d=!0;continue}if(""!==S){let q;q=Y>a?"":r[Y+1].toLowerCase();const me=8&i?q:null;if(me&&-1!==yp(me,S,0)||2&i&&S!==q){if(Ss(i))return!1;d=!0}}}}else{if(!d&&!Ss(i)&&!Ss(v))return!1;if(d&&Ss(v))continue;d=!1,i=v|1&i}}return Ss(i)||d}function Ss(e){return 0==(1&e)}function Db(e,t,n,i){if(null===t)return-1;let r=0;if(i||!n){let a=!1;for(;r<t.length;){const d=t[r];if(d===e)return r;if(3===d||6===d)a=!0;else{if(1===d||2===d){let h=t[++r];for(;"string"==typeof h;)h=t[++r];continue}if(4===d)break;if(0===d){r+=4;continue}}r+=a?1:2}return-1}return function(e,t){let n=e.indexOf(4);if(n>-1)for(n++;n<e.length;){const i=e[n];if("number"==typeof i)return-1;if(i===t)return n;n++}return-1}(t,e)}function Cp(e,t,n=!1){for(let i=0;i<t.length;i++)if(Cb(e,t[i],n))return!0;return!1}function Mb(e,t){e:for(let n=0;n<t.length;n++){const i=t[n];if(e.length===i.length){for(let r=0;r<e.length;r++)if(e[r]!==i[r])continue e;return!0}}return!1}function Dp(e,t){return e?":not("+t.trim()+")":t}function Sb(e){let t=e[0],n=1,i=2,r="",a=!1;for(;n<e.length;){let d=e[n];if("string"==typeof d)if(2&i){const h=e[++n];r+="["+d+(h.length>0?'="'+h+'"':"")+"]"}else 8&i?r+="."+d:4&i&&(r+=" "+d);else""!==r&&!Ss(d)&&(t+=Dp(a,r),r=""),i=d,a=a||!Ss(i);n++}return""!==r&&(t+=Dp(a,r)),t}const Un={};function Ep(e){wp(On(),Et(),$i()+e,J())}function wp(e,t,n,i){if(!i)if(3==(3&t[2])){const a=e.preOrderCheckHooks;null!==a&&fi(t,a,n)}else{const a=e.preOrderHooks;null!==a&&Bs(t,a,0,n)}Pr(n)}function Lc(e,t){return e<<17|t<<2}function As(e){return e>>17&32767}function ud(e){return 2|e}function uo(e){return(131068&e)>>2}function dd(e,t){return-131069&e|t<<2}function hd(e){return 1|e}function Fp(e,t){const n=e.contentQueries;if(null!==n)for(let i=0;i<n.length;i+=2){const r=n[i],a=n[i+1];if(-1!==a){const d=e.data[a];Ei(r),d.contentQueries(2,t[a],a)}}}function Tl(e,t,n,i,r,a,d,h,v,S){const k=t.blueprint.slice();return k[0]=r,k[2]=140|i,zn(k),k[3]=k[15]=e,k[8]=n,k[10]=d||e&&e[10],k[11]=h||e&&e[11],k[12]=v||e&&e[12]||null,k[9]=S||e&&e[9]||null,k[6]=a,k[16]=2==t.type?e[16]:k,k}function Ta(e,t,n,i,r){let a=e.data[t];if(null===a)a=Cd(e,t,n,i,r),nn.lFrame.inI18n&&(a.flags|=64);else if(64&a.type){a.type=n,a.value=i,a.attrs=r;const d=qs();a.injectorIndex=null===d?-1:d.injectorIndex}return F(a,!0),a}function Cd(e,t,n,i,r){const a=Fr(),d=p(),v=e.data[t]=function(e,t,n,i,r,a){return{type:n,index:i,insertBeforeIndex:null,injectorIndex:t?t.injectorIndex:-1,directiveStart:-1,directiveEnd:-1,directiveStylingLast:-1,propertyBindings:null,flags:0,providerIndexes:0,value:r,attrs:a,mergedAttrs:null,localNames:null,initialInputs:void 0,inputs:null,outputs:null,tViews:null,next:null,projectionNext:null,child:null,parent:t,projection:null,styles:null,stylesWithoutHost:null,residualStyles:void 0,classes:null,classesWithoutHost:null,residualClasses:void 0,classBindings:0,styleBindings:0}}(0,d?a:a&&a.parent,n,t,i,r);return null===e.firstChild&&(e.firstChild=v),null!==a&&(d?null==a.child&&null!==v.parent&&(a.child=v):null===a.next&&(a.next=v)),v}function Ma(e,t,n,i){if(0===n)return-1;const r=t.length;for(let a=0;a<n;a++)t.push(i),e.blueprint.push(i),e.data.push(null);return r}function Ml(e,t,n){Xi(t);try{const i=e.viewQuery;null!==i&&Od(1,i,n);const r=e.template;null!==r&&Pp(e,t,r,1,n),e.firstCreatePass&&(e.firstCreatePass=!1),e.staticContentQueries&&Fp(e,t),e.staticViewQueries&&Od(2,e.viewQuery,n);const a=e.components;null!==a&&function(e,t){for(let n=0;n<t.length;n++)u0(e,t[n])}(t,a)}catch(i){throw e.firstCreatePass&&(e.incompleteFirstPass=!0,e.firstCreatePass=!1),i}finally{t[2]&=-5,ss()}}function Sa(e,t,n,i){const r=t[2];if(256==(256&r))return;Xi(t);const a=J();try{zn(t),function(e){nn.lFrame.bindingIndex=e}(e.bindingStartIndex),null!==n&&Pp(e,t,n,2,i);const d=3==(3&r);if(!a)if(d){const S=e.preOrderCheckHooks;null!==S&&fi(t,S,null)}else{const S=e.preOrderHooks;null!==S&&Bs(t,S,0,null),cr(t,0)}if(function(e){for(let t=ed(e);null!==t;t=td(t)){if(!t[2])continue;const n=t[9];for(let i=0;i<n.length;i++){const r=n[i],a=r[3];0==(1024&r[2])&&vi(a,1),r[2]|=1024}}}(t),function(e){for(let t=ed(e);null!==t;t=td(t))for(let n=10;n<t.length;n++){const i=t[n],r=i[1];Lt(i)&&Sa(r,i,r.template,i[8])}}(t),null!==e.contentQueries&&Fp(e,t),!a)if(d){const S=e.contentCheckHooks;null!==S&&fi(t,S)}else{const S=e.contentHooks;null!==S&&Bs(t,S,1),cr(t,1)}!function(e,t){const n=e.hostBindingOpCodes;if(null!==n)try{for(let i=0;i<n.length;i++){const r=n[i];if(r<0)Pr(~r);else{const a=r,d=n[++i],h=n[++i];_n(d,a),h(2,t[a])}}}finally{Pr(-1)}}(e,t);const h=e.components;null!==h&&function(e,t){for(let n=0;n<t.length;n++)c0(e,t[n])}(t,h);const v=e.viewQuery;if(null!==v&&Od(2,v,i),!a)if(d){const S=e.viewCheckHooks;null!==S&&fi(t,S)}else{const S=e.viewHooks;null!==S&&Bs(t,S,2),cr(t,2)}!0===e.firstUpdatePass&&(e.firstUpdatePass=!1),a||(t[2]&=-73),1024&t[2]&&(t[2]&=-1025,vi(t[3],-1))}finally{ss()}}function $b(e,t,n,i){const r=t[10],a=!J(),d=tt(t);try{a&&!d&&r.begin&&r.begin(),d&&Ml(e,t,i),Sa(e,t,n,i)}finally{a&&!d&&r.end&&r.end()}}function Pp(e,t,n,i,r){const a=$i(),d=2&i;try{Pr(-1),d&&t.length>20&&wp(e,t,20,J()),n(i,r)}finally{Pr(a)}}function Lp(e,t,n){if(Ar(t)){const r=t.directiveEnd;for(let a=t.directiveStart;a<r;a++){const d=e.data[a];d.contentQueries&&d.contentQueries(1,n[a],a)}}}function Dd(e,t,n){!rs()||(function(e,t,n,i){const r=n.directiveStart,a=n.directiveEnd;e.firstCreatePass||Co(n,t),Qi(i,t);const d=n.initialInputs;for(let h=r;h<a;h++){const v=e.data[h],S=z(v);S&&r0(t,n,v);const k=ce(t,e,h,n);Qi(k,t),null!==d&&s0(0,h-r,k,v,0,d),S&&(L(n.index,t)[8]=k)}}(e,t,n,_e(n,t)),128==(128&n.flags)&&function(e,t,n){const i=n.directiveStart,r=n.directiveEnd,d=n.index,h=nn.lFrame.currentDirectiveIndex;try{Pr(d);for(let v=i;v<r;v++){const S=e.data[v],k=t[v];Hn(v),(null!==S.hostBindings||0!==S.hostVars||null!==S.hostAttrs)&&Yp(S,k)}}finally{Pr(-1),Hn(h)}}(e,t,n))}function Ed(e,t,n=_e){const i=t.localNames;if(null!==i){let r=t.index+1;for(let a=0;a<i.length;a+=2){const d=i[a+1],h=-1===d?n(t,e):e[d];e[r++]=h}}}function Bp(e){const t=e.tView;return null===t||t.incompleteFirstPass?e.tView=Hc(1,null,e.template,e.decls,e.vars,e.directiveDefs,e.pipeDefs,e.viewQuery,e.schemas,e.consts):t}function Hc(e,t,n,i,r,a,d,h,v,S){const k=20+i,Y=k+r,q=function(e,t){const n=[];for(let i=0;i<t;i++)n.push(i<e?null:Un);return n}(k,Y),me="function"==typeof S?S():S;return q[1]={type:e,blueprint:q,template:n,queries:null,viewQuery:h,declTNode:t,data:q.slice().fill(null,k),bindingStartIndex:k,expandoStartIndex:Y,hostBindingOpCodes:null,firstCreatePass:!0,firstUpdatePass:!0,staticViewQueries:!1,staticContentQueries:!1,preOrderHooks:null,preOrderCheckHooks:null,contentHooks:null,contentCheckHooks:null,viewHooks:null,viewCheckHooks:null,destroyHooks:null,cleanup:null,contentQueries:null,components:null,directiveRegistry:"function"==typeof a?a():a,pipeRegistry:"function"==typeof d?d():d,firstChild:null,schemas:v,consts:me,incompleteFirstPass:!1}}function Up(e,t,n,i){const r=Jp(t);null===n?r.push(i):(r.push(n),e.firstCreatePass&&qp(e).push(i,r.length-1))}function jp(e,t,n){for(let i in e)if(e.hasOwnProperty(i)){const r=e[i];(n=null===n?{}:n).hasOwnProperty(i)?n[i].push(t,r):n[i]=[t,r]}return n}function qr(e,t,n,i,r,a,d,h){const v=_e(t,n);let k,S=t.inputs;!h&&null!=S&&(k=S[i])?(tg(e,n,k,i,r),se(t)&&function(e,t){const n=L(t,e);16&n[2]||(n[2]|=64)}(n,t.index)):3&t.type&&(i=function(e){return"class"===e?"className":"for"===e?"htmlFor":"formaction"===e?"formAction":"innerHtml"===e?"innerHTML":"readonly"===e?"readOnly":"tabindex"===e?"tabIndex":e}(i),r=null!=d?d(r,t.value||"",i):r,ui(a)?a.setProperty(v,i,r):eo(i)||(v.setProperty?v.setProperty(i,r):v[i]=r))}function wd(e,t,n,i){let r=!1;if(rs()){const a=function(e,t,n){const i=e.directiveRegistry;let r=null;if(i)for(let a=0;a<i.length;a++){const d=i[a];Cp(n,d.selectors,!1)&&(r||(r=[]),Eo(Co(n,t),e,d.type),z(d)?(zp(e,n),r.unshift(d)):r.push(d))}return r}(e,t,n),d=null===i?null:{"":-1};if(null!==a){r=!0,Wp(n,e.data.length,a.length);for(let k=0;k<a.length;k++){const Y=a[k];Y.providersResolver&&Y.providersResolver(Y)}let h=!1,v=!1,S=Ma(e,t,a.length,null);for(let k=0;k<a.length;k++){const Y=a[k];n.mergedAttrs=Ds(n.mergedAttrs,Y.hostAttrs),Zp(e,n,t,S,Y),n0(S,Y,d),null!==Y.contentQueries&&(n.flags|=8),(null!==Y.hostBindings||null!==Y.hostAttrs||0!==Y.hostVars)&&(n.flags|=128);const q=Y.type.prototype;!h&&(q.ngOnChanges||q.ngOnInit||q.ngDoCheck)&&((e.preOrderHooks||(e.preOrderHooks=[])).push(n.index),h=!0),!v&&(q.ngOnChanges||q.ngDoCheck)&&((e.preOrderCheckHooks||(e.preOrderCheckHooks=[])).push(n.index),v=!0),S++}!function(e,t){const i=t.directiveEnd,r=e.data,a=t.attrs,d=[];let h=null,v=null;for(let S=t.directiveStart;S<i;S++){const k=r[S],Y=k.inputs,q=null===a||bp(t)?null:o0(Y,a);d.push(q),h=jp(Y,S,h),v=jp(k.outputs,S,v)}null!==h&&(h.hasOwnProperty("class")&&(t.flags|=16),h.hasOwnProperty("style")&&(t.flags|=32)),t.initialInputs=d,t.inputs=h,t.outputs=v}(e,n)}d&&function(e,t,n){if(t){const i=e.localNames=[];for(let r=0;r<t.length;r+=2){const a=n[t[r+1]];if(null==a)throw new it("301",`Export of name '${t[r+1]}' not found!`);i.push(t[r],a)}}}(n,i,d)}return n.mergedAttrs=Ds(n.mergedAttrs,n.attrs),r}function Gp(e,t,n,i,r,a){const d=a.hostBindings;if(d){let h=e.hostBindingOpCodes;null===h&&(h=e.hostBindingOpCodes=[]);const v=~t.index;(function(e){let t=e.length;for(;t>0;){const n=e[--t];if("number"==typeof n&&n<0)return n}return 0})(h)!=v&&h.push(v),h.push(i,r,d)}}function Yp(e,t){null!==e.hostBindings&&e.hostBindings(1,t)}function zp(e,t){t.flags|=2,(e.components||(e.components=[])).push(t.index)}function n0(e,t,n){if(n){if(t.exportAs)for(let i=0;i<t.exportAs.length;i++)n[t.exportAs[i]]=e;z(t)&&(n[""]=e)}}function Wp(e,t,n){e.flags|=1,e.directiveStart=t,e.directiveEnd=t+n,e.providerIndexes=t}function Zp(e,t,n,i,r){e.data[i]=r;const a=r.factory||(r.factory=Oi(r.type)),d=new Si(a,z(r),null);e.blueprint[i]=d,n[i]=d,Gp(e,t,0,i,Ma(e,n,r.hostVars,Un),r)}function r0(e,t,n){const i=_e(t,e),r=Bp(n),a=e[10],d=Uc(e,Tl(e,r,null,n.onPush?64:16,i,t,a,a.createRenderer(i,n),null,null));e[t.index]=d}function Td(e,t,n,i,r,a,d){if(null==a)ui(e)?e.removeAttribute(t,r,n):t.removeAttribute(r);else{const h=null==d?Qe(a):d(a,i||"",r);ui(e)?e.setAttribute(t,r,h,n):n?t.setAttributeNS(n,r,h):t.setAttribute(r,h)}}function s0(e,t,n,i,r,a){const d=a[t];if(null!==d){const h=i.setInput;for(let v=0;v<d.length;){const S=d[v++],k=d[v++],Y=d[v++];null!==h?i.setInput(n,Y,S,k):n[k]=Y}}}function o0(e,t){let n=null,i=0;for(;i<t.length;){const r=t[i];if(0!==r)if(5!==r){if("number"==typeof r)break;e.hasOwnProperty(r)&&(null===n&&(n=[]),n.push(r,e[r],t[i+1])),i+=2}else i+=2;else i+=4}return n}function Kp(e,t,n,i){return new Array(e,!0,!1,t,null,0,i,n,null,null)}function c0(e,t){const n=L(t,e);if(Lt(n)){const i=n[1];80&n[2]?Sa(i,n,i.template,n[8]):n[5]>0&&Md(n)}}function Md(e){for(let i=ed(e);null!==i;i=td(i))for(let r=10;r<i.length;r++){const a=i[r];if(1024&a[2]){const d=a[1];Sa(d,a,d.template,a[8])}else a[5]>0&&Md(a)}const n=e[1].components;if(null!==n)for(let i=0;i<n.length;i++){const r=L(n[i],e);Lt(r)&&r[5]>0&&Md(r)}}function u0(e,t){const n=L(t,e),i=n[1];(function(e,t){for(let n=t.length;n<e.blueprint.length;n++)t.push(e.blueprint[n])})(i,n),Ml(i,n,n[8])}function Uc(e,t){return e[13]?e[14][4]=t:e[13]=t,e[14]=t,t}function Sd(e){for(;e;){e[2]|=64;const t=El(e);if(ke(e)&&!t)return e;e=t}return null}function Id(e,t,n){const i=t[10];i.begin&&i.begin();try{Sa(e,t,e.template,n)}catch(r){throw eg(t,r),r}finally{i.end&&i.end()}}function Qp(e){!function(e){for(let t=0;t<e.components.length;t++){const n=e.components[t],i=Ca(n),r=i[1];$b(r,i,r.template,n)}}(e[8])}function Od(e,t,n){Ei(0),t(e,n)}const g0=(()=>Promise.resolve(null))();function Jp(e){return e[7]||(e[7]=[])}function qp(e){return e.cleanup||(e.cleanup=[])}function Xp(e,t,n){return(null===e||z(e))&&(n=function(e){for(;Array.isArray(e);){if("object"==typeof e[1])return e;e=e[0]}return null}(n[t.index])),n[11]}function eg(e,t){const n=e[9],i=n?n.get(Da,null):null;i&&i.handleError(t)}function tg(e,t,n,i,r){for(let a=0;a<n.length;){const d=n[a++],h=n[a++],v=t[d],S=e.data[d];null!==S.setInput?S.setInput(v,r,i,h):v[h]=r}}function ho(e,t,n){const i=j(t,e);ip(e[11],i,n)}function jc(e,t,n){let i=n?e.styles:null,r=n?e.classes:null,a=0;if(null!==t)for(let d=0;d<t.length;d++){const h=t[d];"number"==typeof h?a=h:1==a?r=W(r,h):2==a&&(i=W(i,h+": "+t[++d]+";"))}n?e.styles=i:e.stylesWithoutHost=i,n?e.classes=r:e.classesWithoutHost=r}const Aa=new xi("INJECTOR",-1);class ng{get(t,n=so){if(n===so){const i=new Error(`NullInjectorError: No provider for ${G(t)}!`);throw i.name="NullInjectorError",i}return n}}const Sl=new xi("Set Injector scope."),Al={},y0={};let Nd;function ig(){return void 0===Nd&&(Nd=new ng),Nd}function rg(e,t=null,n=null,i){return new b0(e,n,t||ig(),i)}class b0{constructor(t,n,i,r=null){this.parent=i,this.records=new Map,this.injectorDefTypes=new Set,this.onDestroy=new Set,this._destroyed=!1;const a=[];n&&ws(n,h=>this.processProvider(h,t,n)),ws([t],h=>this.processInjectorType(h,[],a)),this.records.set(Aa,Ia(void 0,this));const d=this.records.get(Sl);this.scope=null!=d?d.value:null,this.source=r||("object"==typeof t?null:G(t))}get destroyed(){return this._destroyed}destroy(){this.assertNotDestroyed(),this._destroyed=!0;try{this.onDestroy.forEach(t=>t.ngOnDestroy())}finally{this.records.clear(),this.onDestroy.clear(),this.injectorDefTypes.clear()}}get(t,n=so,i=X.Default){this.assertNotDestroyed();const r=ao(this),a=nt(void 0);try{if(!(i&X.SkipSelf)){let h=this.records.get(t);if(void 0===h){const v=("function"==typeof(e=t)||"object"==typeof e&&e instanceof xi)&&ut(t);h=v&&this.injectableDefInScope(v)?Ia(xd(t),Al):null,this.records.set(t,h)}if(null!=h)return this.hydrate(t,h)}return(i&X.Self?ig():this.parent).get(t,n=i&X.Optional&&n===so?null:n)}catch(d){if("NullInjectorError"===d.name){if((d[$o]=d[$o]||[]).unshift(G(t)),r)throw d;return da(d,t,"R3InjectorError",this.source)}throw d}finally{nt(a),ao(r)}var e}_resolveInjectorDefTypes(){this.injectorDefTypes.forEach(t=>this.get(t))}toString(){const t=[];return this.records.forEach((i,r)=>t.push(G(r))),`R3Injector[${t.join(", ")}]`}assertNotDestroyed(){if(this._destroyed)throw new Error("Injector has already been destroyed.")}processInjectorType(t,n,i){if(!(t=ie(t)))return!1;let r=jt(t);const a=null==r&&t.ngModule||void 0,d=void 0===a?t:a,h=-1!==i.indexOf(d);if(void 0!==a&&(r=jt(a)),null==r)return!1;if(null!=r.imports&&!h){let k;i.push(d);try{ws(r.imports,Y=>{this.processInjectorType(Y,n,i)&&(void 0===k&&(k=[]),k.push(Y))})}finally{}if(void 0!==k)for(let Y=0;Y<k.length;Y++){const{ngModule:q,providers:me}=k[Y];ws(me,Ie=>this.processProvider(Ie,q,me||ye))}}this.injectorDefTypes.add(d);const v=Oi(d)||(()=>new d);this.records.set(d,Ia(v,Al));const S=r.providers;if(null!=S&&!h){const k=t;ws(S,Y=>this.processProvider(Y,k,S))}return void 0!==a&&void 0!==t.providers}processProvider(t,n,i){let r=Oa(t=ie(t))?t:ie(t&&t.provide);const a=(e=t,og(e)?Ia(void 0,e.useValue):Ia(sg(e),Al));var e;if(Oa(t)||!0!==t.multi)this.records.get(r);else{let d=this.records.get(r);d||(d=Ia(void 0,Al,!0),d.factory=()=>Ao(d.multi),this.records.set(r,d)),r=t,d.multi.push(t)}this.records.set(r,a)}hydrate(t,n){return n.value===Al&&(n.value=y0,n.value=n.factory()),"object"==typeof n.value&&n.value&&null!==(e=n.value)&&"object"==typeof e&&"function"==typeof e.ngOnDestroy&&this.onDestroy.add(n.value),n.value;var e}injectableDefInScope(t){if(!t.providedIn)return!1;const n=ie(t.providedIn);return"string"==typeof n?"any"===n||n===this.scope:this.injectorDefTypes.has(n)}}function xd(e){const t=ut(e),n=null!==t?t.factory:Oi(e);if(null!==n)return n;if(e instanceof xi)throw new Error(`Token ${G(e)} is missing a \u0275prov definition.`);if(e instanceof Function)return function(e){const t=e.length;if(t>0){const i=io(t,"?");throw new Error(`Can't resolve all parameters for ${G(e)}: (${i.join(", ")}).`)}const n=function(e){const t=e&&(e[tn]||e[Xe]);if(t){const n=function(e){if(e.hasOwnProperty("name"))return e.name;const t=(""+e).match(/^function\s*([^\s(]+)/);return null===t?"":t[1]}(e);return console.warn(`DEPRECATED: DI is instantiating a token "${n}" that inherits its @Injectable decorator but does not provide one itself.\nThis will become an error in a future version of Angular. Please add @Injectable() to the "${n}" class.`),t}return null}(e);return null!==n?()=>n.factory(e):()=>new e}(e);throw new Error("unreachable")}function sg(e,t,n){let i;if(Oa(e)){const r=ie(e);return Oi(r)||xd(r)}if(og(e))i=()=>ie(e.useValue);else if(function(e){return!(!e||!e.useFactory)}(e))i=()=>e.useFactory(...Ao(e.deps||[]));else if(function(e){return!(!e||!e.useExisting)}(e))i=()=>Li(ie(e.useExisting));else{const r=ie(e&&(e.useClass||e.provide));if(!function(e){return!!e.deps}(e))return Oi(r)||xd(r);i=()=>new r(...Ao(e.deps))}return i}function Ia(e,t,n=!1){return{factory:e,value:t,multi:n?[]:void 0}}function og(e){return null!==e&&"object"==typeof e&&oo in e}function Oa(e){return"function"==typeof e}const ag=function(e,t,n){return function(e,t=null,n=null,i){const r=rg(e,t,n,i);return r._resolveInjectorDefTypes(),r}({name:n},t,e,n)};let Vi=(()=>{class e{static create(n,i){return Array.isArray(n)?ag(n,i,""):ag(n.providers,n.parent,n.name||"")}}return e.THROW_IF_NOT_FOUND=so,e.NULL=new ng,e.\u0275prov=Ee({token:e,providedIn:"any",factory:()=>Li(Aa)}),e.__NG_ELEMENT_ID__=-1,e})();function U0(e,t){lr(Ca(e)[1],Ni())}function Bd(e){let t=function(e){return Object.getPrototypeOf(e.prototype).constructor}(e.type),n=!0;const i=[e];for(;t;){let r;if(z(e))r=t.\u0275cmp||t.\u0275dir;else{if(t.\u0275cmp)throw new Error("Directives cannot inherit Components");r=t.\u0275dir}if(r){if(n){i.push(r);const d=e;d.inputs=Vd(e.inputs),d.declaredInputs=Vd(e.declaredInputs),d.outputs=Vd(e.outputs);const h=r.hostBindings;h&&Y0(e,h);const v=r.viewQuery,S=r.contentQueries;if(v&&$0(e,v),S&&G0(e,S),te(e.inputs,r.inputs),te(e.declaredInputs,r.declaredInputs),te(e.outputs,r.outputs),z(r)&&r.data.animation){const k=e.data;k.animation=(k.animation||[]).concat(r.data.animation)}}const a=r.features;if(a)for(let d=0;d<a.length;d++){const h=a[d];h&&h.ngInherit&&h(e),h===Bd&&(n=!1)}}t=Object.getPrototypeOf(t)}!function(e){let t=0,n=null;for(let i=e.length-1;i>=0;i--){const r=e[i];r.hostVars=t+=r.hostVars,r.hostAttrs=Ds(r.hostAttrs,n=Ds(n,r.hostAttrs))}}(i)}function Vd(e){return e===He?{}:e===ye?[]:e}function $0(e,t){const n=e.viewQuery;e.viewQuery=n?(i,r)=>{t(i,r),n(i,r)}:t}function G0(e,t){const n=e.contentQueries;e.contentQueries=n?(i,r,a)=>{t(i,r,a),n(i,r,a)}:t}function Y0(e,t){const n=e.hostBindings;e.hostBindings=n?(i,r)=>{t(i,r),n(i,r)}:t}let $c=null;function Na(){if(!$c){const e=hn.Symbol;if(e&&e.iterator)$c=e.iterator;else{const t=Object.getOwnPropertyNames(Map.prototype);for(let n=0;n<t.length;++n){const i=t[n];"entries"!==i&&"size"!==i&&Map.prototype[i]===Map.prototype.entries&&($c=i)}}}return $c}function Ol(e){return!!Hd(e)&&(Array.isArray(e)||!(e instanceof Map)&&Na()in e)}function Hd(e){return null!==e&&("function"==typeof e||"object"==typeof e)}function zs(e,t,n){return e[t]=n}function Or(e,t,n){return!Object.is(e[t],n)&&(e[t]=n,!0)}function Ko(e,t,n,i){const r=Or(e,t,n);return Or(e,t+1,i)||r}function hs(e,t,n,i,r,a){const d=Ko(e,t,n,i);return Ko(e,t+2,r,a)||d}function Ud(e,t,n,i){const r=Et();return Or(r,Pt(),t)&&(On(),function(e,t,n,i,r,a){const d=_e(e,t);Td(t[11],d,a,e.value,n,i,r)}(Vt(),r,e,t,n,i)),Ud}function Ra(e,t,n,i){return Or(e,Pt(),n)?t+Qe(n)+i:Un}function kg(e,t,n,i,r,a,d,h){const v=Et(),S=On(),k=e+20,Y=S.firstCreatePass?function(e,t,n,i,r,a,d,h,v){const S=t.consts,k=Ta(t,e,4,d||null,kn(S,h));wd(t,n,k,kn(S,v)),lr(t,k);const Y=k.tViews=Hc(2,k,i,r,a,t.directiveRegistry,t.pipeRegistry,null,t.schemas,S);return null!==t.queries&&(t.queries.template(t,k),Y.queries=t.queries.embeddedTView(k)),k}(k,S,v,t,n,i,r,a,d):S.data[k];F(Y,!1);const q=v[11].createComment("");Fc(S,v,q,Y),Qi(q,v),Uc(v,v[k]=Kp(q,v,q,Y)),be(Y)&&Dd(S,v,Y),null!=d&&Ed(v,Y,h)}function Fg(e){return C(nn.lFrame.contextLView,20+e)}function xl(e,t=X.Default){const n=Et();return null===n?Li(e,t):y(Ni(),n,ie(e),t)}function Wg(){throw new Error("invalid")}function zd(e,t,n){const i=Et();return Or(i,Pt(),t)&&qr(On(),Vt(),i,e,t,i[11],n,!1),zd}function Wd(e,t,n,i,r){const d=r?"class":"style";tg(e,n,t.inputs[d],d,i)}function Zd(e,t,n,i){const r=Et(),a=On(),d=20+e,h=r[11],v=r[d]=id(h,t,nn.lFrame.currentNamespace),S=a.firstCreatePass?function(e,t,n,i,r,a,d){const h=t.consts,S=Ta(t,e,2,r,kn(h,a));return wd(t,n,S,kn(h,d)),null!==S.attrs&&jc(S,S.attrs,!1),null!==S.mergedAttrs&&jc(S,S.mergedAttrs,!0),null!==t.queries&&t.queries.elementStart(t,S),S}(d,a,r,0,t,n,i):a.data[d];F(S,!0);const k=S.mergedAttrs;null!==k&&as(h,v,k);const Y=S.classes;null!==Y&&cd(h,v,Y);const q=S.styles;null!==q&&_p(h,v,q),64!=(64&S.flags)&&Fc(a,r,v,S),0===nn.lFrame.elementDepthCount&&Qi(v,r),nn.lFrame.elementDepthCount++,be(S)&&(Dd(a,r,S),Lp(a,S,r)),null!==i&&Ed(r,S)}function Kd(){let e=Ni();p()?m():(e=e.parent,F(e,!1));const t=e;nn.lFrame.elementDepthCount--;const n=On();n.firstCreatePass&&(lr(n,e),Ar(e)&&n.queries.elementEnd(e)),null!=t.classesWithoutHost&&function(e){return 0!=(16&e.flags)}(t)&&Wd(n,t,Et(),t.classesWithoutHost,!0),null!=t.stylesWithoutHost&&function(e){return 0!=(32&e.flags)}(t)&&Wd(n,t,Et(),t.stylesWithoutHost,!1)}function Zg(e,t,n,i){Zd(e,t,n,i),Kd()}function Qd(e,t,n){const i=Et(),r=On(),a=e+20,d=r.firstCreatePass?function(e,t,n,i,r){const a=t.consts,d=kn(a,i),h=Ta(t,e,8,"ng-container",d);return null!==d&&jc(h,d,!0),wd(t,n,h,kn(a,r)),null!==t.queries&&t.queries.elementStart(t,h),h}(a,r,i,t,n):r.data[a];F(d,!0);const h=i[a]=i[11].createComment("");Fc(r,i,h,d),Qi(h,i),be(d)&&(Dd(r,i,d),Lp(r,d,i)),null!=n&&Ed(i,d)}function Jd(){let e=Ni();const t=On();p()?m():(e=e.parent,F(e,!1)),t.firstCreatePass&&(lr(t,e),Ar(e)&&t.queries.elementEnd(e))}function Kg(e,t,n){Qd(e,t,n),Jd()}function Qg(){return Et()}function qd(e){return!!e&&"function"==typeof e.then}function Jg(e){return!!e&&"function"==typeof e.subscribe}const Xd=Jg;function eh(e,t,n,i){const r=Et(),a=On(),d=Ni();return qg(a,r,r[11],d,e,t,!!n,i),eh}function th(e,t){const n=Ni(),i=Et(),r=On();return qg(r,i,Xp(si(r.data),n,i),n,e,t,!1),th}function qg(e,t,n,i,r,a,d,h){const v=be(i),k=e.firstCreatePass&&qp(e),Y=t[8],q=Jp(t);let me=!0;if(3&i.type||h){const $e=_e(i,t),Ot=h?h($e):$e,bt=q.length,yn=h?Rn=>h(O(Rn[i.index])):i.index;if(ui(n)){let Rn=null;if(!h&&v&&(Rn=function(e,t,n,i){const r=e.cleanup;if(null!=r)for(let a=0;a<r.length-1;a+=2){const d=r[a];if(d===n&&r[a+1]===i){const h=t[7],v=r[a+2];return h.length>v?h[v]:null}"string"==typeof d&&(a+=2)}return null}(e,t,r,i.index)),null!==Rn)(Rn.__ngLastListenerFn__||Rn).__ngNextListenerFn__=a,Rn.__ngLastListenerFn__=a,me=!1;else{a=nh(i,t,Y,a,!1);const qn=n.listen(Ot,r,a);q.push(a,qn),k&&k.push(r,yn,bt,bt+1)}}else a=nh(i,t,Y,a,!0),Ot.addEventListener(r,a,d),q.push(a),k&&k.push(r,yn,bt,d)}else a=nh(i,t,Y,a,!1);const Ie=i.outputs;let ot;if(me&&null!==Ie&&(ot=Ie[r])){const $e=ot.length;if($e)for(let Ot=0;Ot<$e;Ot+=2){const dr=t[ot[Ot]][ot[Ot+1]].subscribe(a),gs=q.length;q.push(a,dr),k&&k.push(r,i.index,gs,-(gs+1))}}}function Xg(e,t,n,i){try{return!1!==n(i)}catch(r){return eg(e,r),!1}}function nh(e,t,n,i,r){return function a(d){if(d===Function)return i;const h=2&e.flags?L(e.index,t):t;0==(32&t[2])&&Sd(h);let v=Xg(t,0,i,d),S=a.__ngNextListenerFn__;for(;S;)v=Xg(t,0,S,d)&&v,S=S.__ngNextListenerFn__;return r&&!1===v&&(d.preventDefault(),d.returnValue=!1),v}}function em(e=1){return function(e){return(nn.lFrame.contextLView=function(e,t){for(;e>0;)t=t[15],e--;return t}(e,nn.lFrame.contextLView))[8]}(e)}function T1(e,t){let n=null;const i=function(e){const t=e.attrs;if(null!=t){const n=t.indexOf(5);if(0==(1&n))return t[n+1]}return null}(e);for(let r=0;r<t.length;r++){const a=t[r];if("*"!==a){if(null===i?Cp(e,a,!0):Mb(i,a))return r}else n=r}return n}function tm(e){const t=Et()[16][6];if(!t.projection){const i=t.projection=io(e?e.length:1,null),r=i.slice();let a=t.child;for(;null!==a;){const d=e?T1(a,e):0;null!==d&&(r[d]?r[d].projectionNext=a:i[d]=a,r[d]=a),a=a.next}}}function nm(e,t=0,n){const i=Et(),r=On(),a=Ta(r,20+e,16,null,n||null);null===a.projection&&(a.projection=t),m(),64!=(64&a.flags)&&function(e,t,n){mp(t[11],0,t,n,op(e,n,t),up(n.parent||t[6],n,t))}(r,i,a)}function ih(e,t,n){return zc(e,"",t,"",n),ih}function zc(e,t,n,i,r){const a=Et(),d=Ra(a,t,n,i);return d!==Un&&qr(On(),Vt(),a,e,d,a[11],r,!1),zc}function dm(e,t,n,i,r){const a=e[n+1],d=null===t;let h=i?As(a):uo(a),v=!1;for(;0!==h&&(!1===v||d);){const k=e[h+1];A1(e[h],t)&&(v=!0,e[h+1]=i?hd(k):ud(k)),h=i?As(k):uo(k)}v&&(e[n+1]=i?ud(a):hd(a))}function A1(e,t){return null===e||null==t||(Array.isArray(e)?e[1]:e)===t||!(!Array.isArray(e)||"string"!=typeof t)&&ro(e,t)>=0}const ur={textEnd:0,key:0,keyEnd:0,value:0,valueEnd:0};function hm(e){return e.substring(ur.key,ur.keyEnd)}function fm(e,t){const n=ur.textEnd;return n===t?-1:(t=ur.keyEnd=function(e,t,n){for(;t<n&&e.charCodeAt(t)>32;)t++;return t}(e,ur.key=t,n),ja(e,t,n))}function ja(e,t,n){for(;t<n&&e.charCodeAt(t)<=32;)t++;return t}function rh(e,t,n){return Os(e,t,n,!1),rh}function sh(e,t){return Os(e,t,null,!0),sh}function ym(e){Ns(Gr,Zs,e,!0)}function Zs(e,t){for(let n=function(e){return function(e){ur.key=0,ur.keyEnd=0,ur.value=0,ur.valueEnd=0,ur.textEnd=e.length}(e),fm(e,ja(e,0,ur.textEnd))}(t);n>=0;n=fm(t,n))Gr(e,hm(t),!0)}function Os(e,t,n,i){const r=Et(),a=On(),d=Xt(2);a.firstUpdatePass&&bm(a,e,d,i),t!==Un&&Or(r,d,t)&&Dm(a,a.data[$i()],r,r[11],e,r[d+1]=function(e,t){return null==e||("string"==typeof t?e+=t:"object"==typeof e&&(e=G(Ms(e)))),e}(t,n),i,d)}function Ns(e,t,n,i){const r=On(),a=Xt(2);r.firstUpdatePass&&bm(r,null,a,i);const d=Et();if(n!==Un&&Or(d,a,n)){const h=r.data[$i()];if(wm(h,i)&&!vm(r,a)){let v=i?h.classesWithoutHost:h.stylesWithoutHost;null!==v&&(n=W(v,n||"")),Wd(r,h,d,n,i)}else!function(e,t,n,i,r,a,d,h){r===Un&&(r=ye);let v=0,S=0,k=0<r.length?r[0]:null,Y=0<a.length?a[0]:null;for(;null!==k||null!==Y;){const q=v<r.length?r[v+1]:void 0,me=S<a.length?a[S+1]:void 0;let ot,Ie=null;k===Y?(v+=2,S+=2,q!==me&&(Ie=Y,ot=me)):null===Y||null!==k&&k<Y?(v+=2,Ie=k):(S+=2,Ie=Y,ot=me),null!==Ie&&Dm(e,t,n,i,Ie,ot,d,h),k=v<r.length?r[v]:null,Y=S<a.length?a[S]:null}}(r,h,d,d[11],d[a+1],d[a+1]=function(e,t,n){if(null==n||""===n)return ye;const i=[],r=Ms(n);if(Array.isArray(r))for(let a=0;a<r.length;a++)e(i,r[a],!0);else if("object"==typeof r)for(const a in r)r.hasOwnProperty(a)&&e(i,a,r[a]);else"string"==typeof r&&t(i,r);return i}(e,t,n),i,a)}}function vm(e,t){return t>=e.expandoStartIndex}function bm(e,t,n,i){const r=e.data;if(null===r[n+1]){const a=r[$i()],d=vm(e,n);wm(a,i)&&null===t&&!d&&(t=!1),t=function(e,t,n,i){const r=si(e);let a=i?t.residualClasses:t.residualStyles;if(null===r)0===(i?t.classBindings:t.styleBindings)&&(n=Rl(n=oh(null,e,t,n,i),t.attrs,i),a=null);else{const d=t.directiveStylingLast;if(-1===d||e[d]!==r)if(n=oh(r,e,t,n,i),null===a){let v=function(e,t,n){const i=n?t.classBindings:t.styleBindings;if(0!==uo(i))return e[As(i)]}(e,t,i);void 0!==v&&Array.isArray(v)&&(v=oh(null,e,t,v[1],i),v=Rl(v,t.attrs,i),function(e,t,n,i){e[As(n?t.classBindings:t.styleBindings)]=i}(e,t,i,v))}else a=function(e,t,n){let i;const r=t.directiveEnd;for(let a=1+t.directiveStylingLast;a<r;a++)i=Rl(i,e[a].hostAttrs,n);return Rl(i,t.attrs,n)}(e,t,i)}return void 0!==a&&(i?t.residualClasses=a:t.residualStyles=a),n}(r,a,t,i),function(e,t,n,i,r,a){let d=a?t.classBindings:t.styleBindings,h=As(d),v=uo(d);e[i]=n;let k,S=!1;if(Array.isArray(n)){const Y=n;k=Y[1],(null===k||ro(Y,k)>0)&&(S=!0)}else k=n;if(r)if(0!==v){const q=As(e[h+1]);e[i+1]=Lc(q,h),0!==q&&(e[q+1]=dd(e[q+1],i)),e[h+1]=function(e,t){return 131071&e|t<<17}(e[h+1],i)}else e[i+1]=Lc(h,0),0!==h&&(e[h+1]=dd(e[h+1],i)),h=i;else e[i+1]=Lc(v,0),0===h?h=i:e[v+1]=dd(e[v+1],i),v=i;S&&(e[i+1]=ud(e[i+1])),dm(e,k,i,!0),dm(e,k,i,!1),function(e,t,n,i,r){const a=r?e.residualClasses:e.residualStyles;null!=a&&"string"==typeof t&&ro(a,t)>=0&&(n[i+1]=hd(n[i+1]))}(t,k,e,i,a),d=Lc(h,v),a?t.classBindings=d:t.styleBindings=d}(r,a,t,n,d,i)}}function oh(e,t,n,i,r){let a=null;const d=n.directiveEnd;let h=n.directiveStylingLast;for(-1===h?h=n.directiveStart:h++;h<d&&(a=t[h],i=Rl(i,a.hostAttrs,r),a!==e);)h++;return null!==e&&(n.directiveStylingLast=h),i}function Rl(e,t,n){const i=n?1:2;let r=-1;if(null!==t)for(let a=0;a<t.length;a++){const d=t[a];"number"==typeof d?r=d:r===i&&(Array.isArray(e)||(e=void 0===e?[]:["",e]),Gr(e,d,!!n||t[++a]))}return void 0===e?null:e}function Dm(e,t,n,i,r,a,d,h){if(!(3&t.type))return;const v=e.data,S=v[h+1];Wc(function(e){return 1==(1&e)}(S)?Em(v,t,n,r,uo(S),d):void 0)||(Wc(a)||function(e){return 2==(2&e)}(S)&&(a=Em(v,null,n,r,h,d)),function(e,t,n,i,r){const a=ui(e);if(t)r?a?e.addClass(n,i):n.classList.add(i):a?e.removeClass(n,i):n.classList.remove(i);else{let d=-1===i.indexOf("-")?void 0:Gs.DashCase;if(null==r)a?e.removeStyle(n,i,d):n.style.removeProperty(i);else{const h="string"==typeof r&&r.endsWith("!important");h&&(r=r.slice(0,-10),d|=Gs.Important),a?e.setStyle(n,i,r,d):n.style.setProperty(i,r,h?"important":"")}}}(i,d,j($i(),n),r,a))}function Em(e,t,n,i,r,a){const d=null===t;let h;for(;r>0;){const v=e[r],S=Array.isArray(v),k=S?v[1]:v,Y=null===k;let q=n[r+1];q===Un&&(q=Y?ye:void 0);let me=Y?lc(q,i):k===i?q:void 0;if(S&&!Wc(me)&&(me=lc(v,i)),Wc(me)&&(h=me,d))return h;const Ie=e[r+1];r=d?As(Ie):uo(Ie)}if(null!==t){let v=a?t.residualClasses:t.residualStyles;null!=v&&(h=lc(v,i))}return h}function Wc(e){return void 0!==e}function wm(e,t){return 0!=(e.flags&(t?16:32))}function Tm(e,t=""){const n=Et(),i=On(),r=e+20,a=i.firstCreatePass?Ta(i,r,1,t,null):i.data[r],d=n[r]=nd(n[11],t);Fc(i,n,d,a),F(a,!1)}function ah(e){return Zc("",e,""),ah}function Zc(e,t,n){const i=Et(),r=Ra(i,e,t,n);return r!==Un&&ho(i,$i(),r),Zc}function lh(e,t,n,i,r){const a=Et(),d=function(e,t,n,i,r,a){const h=Ko(e,Ue(),n,r);return Xt(2),h?t+Qe(n)+i+Qe(r)+a:Un}(a,e,t,n,i,r);return d!==Un&&ho(a,$i(),d),lh}function Rm(e,t,n){Ns(Gr,Zs,Ra(Et(),e,t,n),!0)}function km(e,t,n,i,r,a,d,h,v){Ns(Gr,Zs,function(e,t,n,i,r,a,d,h,v,S){const Y=hs(e,Ue(),n,r,d,v);return Xt(4),Y?t+Qe(n)+i+Qe(r)+a+Qe(d)+h+Qe(v)+S:Un}(Et(),e,t,n,i,r,a,d,h,v),!0)}function ch(e,t,n){const i=Et();return Or(i,Pt(),t)&&qr(On(),Vt(),i,e,t,i[11],n,!0),ch}function uh(e,t,n){const i=Et();if(Or(i,Pt(),t)){const a=On(),d=Vt();qr(a,d,i,e,t,Xp(si(a.data),d,i),n,!0)}return uh}const Qo=void 0;var oC=["en",[["a","p"],["AM","PM"],Qo],[["AM","PM"],Qo,Qo],[["S","M","T","W","T","F","S"],["Sun","Mon","Tue","Wed","Thu","Fri","Sat"],["Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday"],["Su","Mo","Tu","We","Th","Fr","Sa"]],Qo,[["J","F","M","A","M","J","J","A","S","O","N","D"],["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"],["January","February","March","April","May","June","July","August","September","October","November","December"]],Qo,[["B","A"],["BC","AD"],["Before Christ","Anno Domini"]],0,[6,0],["M/d/yy","MMM d, y","MMMM d, y","EEEE, MMMM d, y"],["h:mm a","h:mm:ss a","h:mm:ss a z","h:mm:ss a zzzz"],["{1}, {0}",Qo,"{1} 'at' {0}",Qo],[".",",",";","%","+","-","E","\xd7","\u2030","\u221e","NaN",":"],["#,##0.###","#,##0%","\xa4#,##0.00","#E0"],"USD","$","US Dollar",{},"ltr",function(e){const n=Math.floor(Math.abs(e)),i=e.toString().replace(/^[^.]*\.?/,"").length;return 1===n&&0===i?1:5}];let $a={};function dh(e){const t=function(e){return e.toLowerCase().replace(/_/g,"-")}(e);let n=Ym(t);if(n)return n;const i=t.split("-")[0];if(n=Ym(i),n)return n;if("en"===i)return oC;throw new Error(`Missing locale data for the locale "${e}".`)}function Gm(e){return dh(e)[Mn.PluralCase]}function Ym(e){return e in $a||($a[e]=hn.ng&&hn.ng.common&&hn.ng.common.locales&&hn.ng.common.locales[e]),$a[e]}var Mn=(()=>((Mn=Mn||{})[Mn.LocaleId=0]="LocaleId",Mn[Mn.DayPeriodsFormat=1]="DayPeriodsFormat",Mn[Mn.DayPeriodsStandalone=2]="DayPeriodsStandalone",Mn[Mn.DaysFormat=3]="DaysFormat",Mn[Mn.DaysStandalone=4]="DaysStandalone",Mn[Mn.MonthsFormat=5]="MonthsFormat",Mn[Mn.MonthsStandalone=6]="MonthsStandalone",Mn[Mn.Eras=7]="Eras",Mn[Mn.FirstDayOfWeek=8]="FirstDayOfWeek",Mn[Mn.WeekendRange=9]="WeekendRange",Mn[Mn.DateFormat=10]="DateFormat",Mn[Mn.TimeFormat=11]="TimeFormat",Mn[Mn.DateTimeFormat=12]="DateTimeFormat",Mn[Mn.NumberSymbols=13]="NumberSymbols",Mn[Mn.NumberFormats=14]="NumberFormats",Mn[Mn.CurrencyCode=15]="CurrencyCode",Mn[Mn.CurrencySymbol=16]="CurrencySymbol",Mn[Mn.CurrencyName=17]="CurrencyName",Mn[Mn.Currencies=18]="Currencies",Mn[Mn.Directionality=19]="Directionality",Mn[Mn.PluralCase=20]="PluralCase",Mn[Mn.ExtraData=21]="ExtraData",Mn))();const lC=["zero","one","two","few","many"],Kc="en-US",Qc={marker:"element"},Jc={marker:"ICU"};var Yi=(()=>((Yi=Yi||{})[Yi.SHIFT=2]="SHIFT",Yi[Yi.APPEND_EAGERLY=1]="APPEND_EAGERLY",Yi[Yi.COMMENT=2]="COMMENT",Yi))();let zm=Kc;function Wm(e,t,n){const i=t.insertBeforeIndex,r=Array.isArray(i)?i[0]:i;return null===r?dp(e,0,n):O(n[r])}function Zm(e,t,n,i,r){const a=t.insertBeforeIndex;if(Array.isArray(a)){let d=i,h=null;if(3&t.type||(h=d,d=r),null!==d&&0==(2&t.flags))for(let v=1;v<a.length;v++)Zo(e,d,n[a[v]],h,!1)}}function Km(e,t){if(e.push(t),e.length>1)for(let n=e.length-2;n>=0;n--){const i=e[n];Qm(i)||fC(i,t)&&null===pC(i)&&gC(i,t.index)}}function Qm(e){return!(64&e.type)}function fC(e,t){return Qm(t)||e.index>t.index}function pC(e){const t=e.insertBeforeIndex;return Array.isArray(t)?t[0]:t}function gC(e,t){const n=e.insertBeforeIndex;Array.isArray(n)?n[0]=t:(fp(Wm,Zm),e.insertBeforeIndex=t)}function kl(e,t){const n=e.data[t];return null===n||"string"==typeof n?null:n.hasOwnProperty("currentCaseLViewIndex")?n:n.value}function yC(e,t,n){const i=Cd(e,n,64,null,null);return Km(t,i),i}function qc(e,t){const n=t[e.currentCaseLViewIndex];return null===n?n:n<0?~n:n}function Jm(e){return e>>>17}function qm(e){return(131070&e)>>>1}let Fl=0,Pl=0;function e_(e,t,n,i){const r=n[11];let d,a=null;for(let h=0;h<t.length;h++){const v=t[h];if("string"==typeof v){const S=t[++h];null===n[S]&&(n[S]=nd(r,v))}else if("number"==typeof v)switch(1&v){case 0:const S=Jm(v);let k,Y;if(null===a&&(a=S,d=kc(r,i)),S===a?(k=i,Y=d):(k=null,Y=O(n[S])),null!==Y){const ot=qm(v);Zo(r,Y,n[ot],k,!1);const Ot=kl(e,ot);if(null!==Ot&&"object"==typeof Ot){const bt=qc(Ot,n);null!==bt&&e_(e,Ot.create[bt],n,n[Ot.anchorIdx])}}break;case 1:const me=t[++h],Ie=t[++h];Td(r,j(v>>>1,n),null,null,me,Ie,null);break;default:throw new Error(`Unable to determine the type of mutate operation for "${v}"`)}else switch(v){case Jc:const S=t[++h],k=t[++h];null===n[k]&&Qi(n[k]=sb(r,S),n);break;case Qc:const Y=t[++h],q=t[++h];null===n[q]&&Qi(n[q]=id(r,Y,null),n)}}}function t_(e,t,n,i,r){for(let a=0;a<n.length;a++){const d=n[a],h=n[++a];if(d&r){let v="";for(let S=a+1;S<=a+h;S++){const k=n[S];if("string"==typeof k)v+=k;else if("number"==typeof k)if(k<0)v+=Qe(t[i-k]);else{const Y=k>>>2;switch(3&k){case 1:const q=n[++S],me=n[++S],Ie=e.data[Y];"string"==typeof Ie?Td(t[11],t[Y],null,Ie,q,v,me):qr(e,Ie,t,q,v,t[11],me,!1);break;case 0:const ot=t[Y];null!==ot&&ip(t[11],ot,v);break;case 2:EC(e,kl(e,Y),t,v);break;case 3:n_(e,kl(e,Y),i,t)}}}}else{const v=n[a+1];if(v>0&&3==(3&v)){const k=kl(e,v>>>2);t[k.currentCaseLViewIndex]<0&&n_(e,k,i,t)}}a+=h}}function n_(e,t,n,i){let r=i[t.currentCaseLViewIndex];if(null!==r){let a=Fl;r<0&&(r=i[t.currentCaseLViewIndex]=~r,a=-1),t_(e,i,t.update[r],n,a)}}function EC(e,t,n,i){const r=function(e,t){let n=e.cases.indexOf(t);if(-1===n)switch(e.type){case 1:{const i=function(e,t){const n=Gm(t)(parseInt(e,10)),i=lC[n];return void 0!==i?i:"other"}(t,zm);n=e.cases.indexOf(i),-1===n&&"other"!==i&&(n=e.cases.indexOf("other"));break}case 0:n=e.cases.indexOf("other")}return-1===n?null:n}(t,i);if(qc(t,n)!==r&&(i_(e,t,n),n[t.currentCaseLViewIndex]=null===r?null:~r,null!==r)){const d=n[t.anchorIdx];d&&e_(e,t.create[r],n,d)}}function i_(e,t,n){let i=qc(t,n);if(null!==i){const r=t.remove[i];for(let a=0;a<r.length;a++){const d=r[a];if(d>0){const h=j(d,n);null!==h&&gp(n[11],h)}else i_(e,kl(e,~d),n)}}}function TC(){const e=[];let n,i,t=-1;function a(h,v){t=0;const S=qc(h,v);i=null!==S?h.remove[S]:ye}function d(){if(t<i.length){const h=i[t++];return h>0?n[h]:(e.push(t,i),a(n[1].data[~h],n),d())}return 0===e.length?null:(i=e.pop(),t=e.pop(),d())}return function(h,v){for(n=v;e.length;)e.pop();return a(h.value,v),d}}const Xc=/\ufffd(\d+):?\d*\ufffd/gi,SC=/\ufffd(\d+)\ufffd/,s_=/^\s*(\ufffd\d+:?\d*\ufffd)\s*,\s*(select|plural)\s*,/,AC=/\ufffd\/?\*(\d+:\d+)\ufffd/gi,IC=/\ufffd(\/?[#*]\d+):?\d*\ufffd/gi,OC=/\uE500/g;function o_(e,t,n,i,r,a,d){const h=Ma(e,i,1,null);let v=h<<Yi.SHIFT,S=qs();t===S&&(S=null),null===S&&(v|=Yi.APPEND_EAGERLY),d&&(v|=Yi.COMMENT,function(e){void 0===qu&&(qu=e())}(TC)),r.push(v,null===a?"":a);const k=Cd(e,h,d?32:1,null===a?"":a,null);Km(n,k);const Y=k.index;return F(k,!1),null!==S&&t!==S&&function(e,t){let n=e.insertBeforeIndex;null===n?(fp(Wm,Zm),n=e.insertBeforeIndex=[null,t]):(function(e,t,n){e!=t&&zt(n,e,t,"==")}(Array.isArray(n),!0,"Expecting array here"),n.push(t))}(S,Y),k}function RC(e,t,n,i,r,a,d){const h=d.match(Xc),v=o_(e,t,n,a,i,h?null:d,!1);h&&Ga(r,d,v.index,null,0,null)}function Ga(e,t,n,i,r,a){const d=e.length,h=d+1;e.push(null,null);const v=d+2,S=t.split(Xc);let k=0;for(let Y=0;Y<S.length;Y++){const q=S[Y];if(1&Y){const me=r+parseInt(q,10);e.push(-1-me),k|=a_(me)}else""!==q&&e.push(q)}return e.push(n<<2|(i?1:0)),i&&e.push(i,a),e[d]=k,e[h]=e.length-v,k}function a_(e){return 1<<Math.min(e,31)}function l_(e){let t,a,n="",i=0,r=!1;for(;null!==(t=AC.exec(e));)r?t[0]===`\ufffd/*${a}\ufffd`&&(i=t.index,r=!1):(n+=e.substring(i,t.index+t[0].length),a=t[1],r=!0);return n+=e.substr(i),n}function c_(e,t,n,i,r,a){let d=0;const h={type:r.type,currentCaseLViewIndex:Ma(e,t,1,null),anchorIdx:a,cases:[],create:[],remove:[],update:[]};(function(e,t,n){e.push(a_(t.mainBinding),2,-1-t.mainBinding,n<<2|2)})(n,r,a),function(e,t,n){const i=e.data[t];null===i?e.data[t]=n:i.value=n}(e,a,h);const v=r.values;for(let S=0;S<v.length;S++){const k=v[S],Y=[];for(let q=0;q<k.length;q++){const me=k[q];if("string"!=typeof me){const Ie=Y.push(me)-1;k[q]=`\x3c!--\ufffd${Ie}\ufffd--\x3e`}}d=VC(e,h,t,n,i,r.cases[S],k.join(""),Y)|d}d&&function(e,t,n){e.push(t,1,n<<2|3)}(n,d,a)}function BC(e){const t=[],n=[];let i=1,r=0;const a=hh(e=e.replace(s_,function(d,h,v){return i="select"===v?0:1,r=parseInt(h.substr(1),10),""}));for(let d=0;d<a.length;){let h=a[d++].trim();1===i&&(h=h.replace(/\s*(?:=)?(\w+)\s*/,"$1")),h.length&&t.push(h);const v=hh(a[d++]);t.length>n.length&&n.push(v)}return{type:i,mainBinding:r,cases:t,values:n}}function hh(e){if(!e)return[];let t=0;const n=[],i=[],r=/[{}]/g;let a;for(r.lastIndex=0;a=r.exec(e);){const h=a.index;if("}"==a[0]){if(n.pop(),0==n.length){const v=e.substring(t,h);s_.test(v)?i.push(BC(v)):i.push(v),t=h+1}}else{if(0==n.length){const v=e.substring(t,h);i.push(v),t=h+1}n.push("{")}}const d=e.substring(t);return i.push(d),i}function VC(e,t,n,i,r,a,d,h){const v=[],S=[],k=[];t.cases.push(a),t.create.push(v),t.remove.push(S),t.update.push(k);const q=Gu(sr()).getInertBodyElement(d),me=s(q)||q;return me?u_(e,t,n,i,v,S,k,me,r,h,0):0}function u_(e,t,n,i,r,a,d,h,v,S,k){let Y=0,q=h.firstChild;for(;q;){const me=Ma(e,n,1,null);switch(q.nodeType){case Node.ELEMENT_NODE:const Ie=q,ot=Ie.tagName.toLowerCase();if(va.hasOwnProperty(ot)){fh(r,Qc,ot,v,me),e.data[me]=ot;const yn=Ie.attributes;for(let Rn=0;Rn<yn.length;Rn++){const qn=yn.item(Rn),dr=qn.name.toLowerCase();qn.value.match(Xc)?Cl.hasOwnProperty(dr)&&Ga(d,qn.value,me,qn.name,0,vl[dr]?xo:bl[dr]?Sc:null):$C(r,me,qn)}Y=u_(e,t,n,i,r,a,d,q,me,S,k+1)|Y,d_(a,me,k)}break;case Node.TEXT_NODE:const $e=q.textContent||"",Ot=$e.match(Xc);fh(r,null,Ot?"":$e,v,me),d_(a,me,k),Ot&&(Y=Ga(d,$e,me,null,0,null)|Y);break;case Node.COMMENT_NODE:const bt=SC.exec(q.textContent||"");if(bt){const Rn=S[parseInt(bt[1],10)];fh(r,Jc,"",v,me),c_(e,n,i,v,Rn,me),HC(a,me,k)}}q=q.nextSibling}return Y}function d_(e,t,n){0===n&&e.push(t)}function HC(e,t,n){0===n&&(e.push(~t),e.push(t))}function fh(e,t,n,i,r){null!==t&&e.push(t),e.push(n,r,function(e,t,n){return 0|t<<17|n<<1}(0,i,r))}function $C(e,t,n){e.push(t<<1|1,n.name,n.value)}function f_(e,t,n=-1){const i=On(),r=Et(),a=20+e,d=kn(i.consts,t),h=qs();i.firstCreatePass&&function(e,t,n,i,r,a){const d=qs(),h=[],v=[],S=[[]];r=function(e,t){if(function(e){return-1===e}(t))return l_(e);{const n=e.indexOf(`:${t}\ufffd`)+2+t.toString().length,i=e.search(new RegExp(`\ufffd\\/\\*\\d+:${t}\ufffd`));return l_(e.substring(n,i))}}(r,a);const k=function(e){return e.replace(OC," ")}(r).split(IC);for(let Y=0;Y<k.length;Y++){let q=k[Y];if(0==(1&Y)){const me=hh(q);for(let Ie=0;Ie<me.length;Ie++){let ot=me[Ie];if(0==(1&Ie)){const $e=ot;""!==$e&&RC(e,d,S[0],h,v,n,$e)}else{const $e=ot;if("object"!=typeof $e)throw new Error(`Unable to parse ICU expression in "${r}" message.`);c_(e,n,v,t,$e,o_(e,d,S[0],n,h,"",!0).index)}}}else{const me=47===q.charCodeAt(0),ot=(q.charCodeAt(me?1:0),20+Number.parseInt(q.substring(me?2:1)));if(me)S.shift(),F(qs(),!1);else{const $e=yC(e,S[0],ot);S.unshift([]),F($e,!0)}}}e.data[i]={create:h,update:v}}(i,null===h?0:h.index,r,a,d,n);const v=i.data[a],k=ap(i,h===r[6]?null:h,r);(function(e,t,n,i){const r=e[11];for(let a=0;a<t.length;a++){const d=t[a++],h=t[a],v=(d&Yi.COMMENT)===Yi.COMMENT,S=(d&Yi.APPEND_EAGERLY)===Yi.APPEND_EAGERLY,k=d>>>Yi.SHIFT;let Y=e[k];null===Y&&(Y=e[k]=v?r.createComment(h):nd(r,h)),S&&null!==n&&Zo(r,n,Y,i,!1)}})(r,v.create,k,h&&8&h.type?r[h.index]:null),mn(!0)}function g_(e,t,n){f_(e,t,n),mn(!1)}function ph(e){return function(e){e&&(Fl|=1<<Math.min(Pl,31)),Pl++}(Or(Et(),Pt(),e)),ph}function m_(e){!function(e,t,n){if(Pl>0){const i=e.data[n];t_(e,t,Array.isArray(i)?i:i.update,Ue()-Pl-1,Fl)}Fl=0,Pl=0}(On(),Et(),e+20)}function gh(e,t,n,i,r){if(e=ie(e),Array.isArray(e))for(let a=0;a<e.length;a++)gh(e[a],t,n,i,r);else{const a=On(),d=Et();let h=Oa(e)?e:ie(e.provide),v=sg(e);const S=Ni(),k=1048575&S.providerIndexes,Y=S.directiveStart,q=S.providerIndexes>>20;if(Oa(e)||!e.multi){const me=new Si(v,r,xl),Ie=_h(h,t,r?k:k+q,Y);-1===Ie?(Eo(Co(S,d),a,h),mh(a,e,t.length),t.push(h),S.directiveStart++,S.directiveEnd++,r&&(S.providerIndexes+=1048576),n.push(me),d.push(me)):(n[Ie]=me,d[Ie]=me)}else{const me=_h(h,t,k+q,Y),Ie=_h(h,t,k,k+q),ot=me>=0&&n[me],$e=Ie>=0&&n[Ie];if(r&&!$e||!r&&!ot){Eo(Co(S,d),a,h);const Ot=function(e,t,n,i,r){const a=new Si(e,n,xl);return a.multi=[],a.index=t,a.componentProviders=0,__(a,r,i&&!n),a}(r?nD:tD,n.length,r,i,v);!r&&$e&&(n[Ie].providerFactory=Ot),mh(a,e,t.length,0),t.push(h),S.directiveStart++,S.directiveEnd++,r&&(S.providerIndexes+=1048576),n.push(Ot),d.push(Ot)}else mh(a,e,me>-1?me:Ie,__(n[r?Ie:me],v,!r&&i));!r&&i&&$e&&n[Ie].componentProviders++}}}function mh(e,t,n,i){const r=Oa(t);if(r||function(e){return!!e.useClass}(t)){const d=(t.useClass||t).prototype.ngOnDestroy;if(d){const h=e.destroyHooks||(e.destroyHooks=[]);if(!r&&t.multi){const v=h.indexOf(n);-1===v?h.push(n,[i,d]):h[v+1].push(i,d)}else h.push(n,d)}}}function __(e,t,n){return n&&e.componentProviders++,e.multi.push(t)-1}function _h(e,t,n,i){for(let r=n;r<i;r++)if(t[r]===e)return r;return-1}function tD(e,t,n,i){return yh(this.multi,[])}function nD(e,t,n,i){const r=this.multi;let a;if(this.providerFactory){const d=this.providerFactory.componentProviders,h=ce(n,n[1],this.providerFactory.index,i);a=h.slice(0,d),yh(r,a);for(let v=d;v<h.length;v++)a.push(h[v])}else a=[],yh(r,a);return a}function yh(e,t){for(let n=0;n<e.length;n++)t.push((0,e[n])());return t}function y_(e,t=[]){return n=>{n.providersResolver=(i,r)=>function(e,t,n){const i=On();if(i.firstCreatePass){const r=z(e);gh(n,i.data,i.blueprint,r,!0),gh(t,i.data,i.blueprint,r,!1)}}(i,r?r(e):e,t)}}class v_{}const C_="ngComponent";class sD{resolveComponentFactory(t){throw function(e){const t=Error(`No component factory found for ${G(e)}. Did you add it to @NgModule.entryComponents?`);return t[C_]=e,t}(t)}}let Ya=(()=>{class e{}return e.NULL=new sD,e})();function eu(...e){}function za(e,t){return new Ks(_e(e,t))}const lD=function(){return za(Ni(),Et())};let Ks=(()=>{class e{constructor(n){this.nativeElement=n}}return e.__NG_ELEMENT_ID__=lD,e})();function D_(e){return e instanceof Ks?e.nativeElement:e}class tu{}let cD=(()=>{class e{}return e.__NG_ELEMENT_ID__=()=>dD(),e})();const dD=function(){const e=Et(),n=L(Ni().index,e);return function(e){return e[11]}(di(n)?n:e)};let bh=(()=>{class e{}return e.\u0275prov=Ee({token:e,providedIn:"root",factory:()=>null}),e})();class E_{constructor(t){this.full=t,this.major=t.split(".")[0],this.minor=t.split(".")[1],this.patch=t.split(".").slice(2).join(".")}}const w_=new E_("13.0.2"),Wa={};function nu(e,t,n,i,r=!1){for(;null!==n;){const a=t[n.index];if(null!==a&&i.push(O(a)),yi(a))for(let h=10;h<a.length;h++){const v=a[h],S=v[1].firstChild;null!==S&&nu(v[1],v,S,i)}const d=n.type;if(8&d)nu(e,t,n.child,i);else if(32&d){const h=Xu(n,t);let v;for(;v=h();)i.push(v)}else if(16&d){const h=pp(t,n);if(Array.isArray(h))i.push(...h);else{const v=El(t[16]);nu(v[1],v,h,i,!0)}}n=r?n.projectionNext:n.next}return i}class Bl{constructor(t,n){this._lView=t,this._cdRefInjectingView=n,this._appRef=null,this._attachedToViewContainer=!1}get rootNodes(){const t=this._lView,n=t[1];return nu(n,t,n.firstChild,[])}get context(){return this._lView[8]}set context(t){this._lView[8]=t}get destroyed(){return 256==(256&this._lView[2])}destroy(){if(this._appRef)this._appRef.detachView(this);else if(this._attachedToViewContainer){const t=this._lView[3];if(yi(t)){const n=t[8],i=n?n.indexOf(this):-1;i>-1&&(rd(t,i),Mo(n,i))}this._attachedToViewContainer=!1}sp(this._lView[1],this._lView)}onDestroy(t){Up(this._lView[1],this._lView,null,t)}markForCheck(){Sd(this._cdRefInjectingView||this._lView)}detach(){this._lView[2]&=-129}reattach(){this._lView[2]|=128}detectChanges(){Id(this._lView[1],this._lView,this.context)}checkNoChanges(){!function(e,t,n){de(!0);try{Id(e,t,n)}finally{de(!1)}}(this._lView[1],this._lView,this.context)}attachToViewContainerRef(){if(this._appRef)throw new Error("This view is already attached directly to the ApplicationRef!");this._attachedToViewContainer=!0}detachFromAppRef(){var t;this._appRef=null,wl(this._lView[1],t=this._lView,t[11],2,null,null)}attachToAppRef(t){if(this._attachedToViewContainer)throw new Error("This view is already attached to a ViewContainer!");this._appRef=t}}class pD extends Bl{constructor(t){super(t),this._view=t}detectChanges(){Qp(this._view)}checkNoChanges(){!function(e){de(!0);try{Qp(e)}finally{de(!1)}}(this._view)}get context(){return null}}class T_ extends Ya{constructor(t){super(),this.ngModule=t}resolveComponentFactory(t){const n=K(t);return new Ch(n,this.ngModule)}}function M_(e){const t=[];for(let n in e)e.hasOwnProperty(n)&&t.push({propName:e[n],templateName:n});return t}const mD=new xi("SCHEDULER_TOKEN",{providedIn:"root",factory:()=>Jf});class Ch extends v_{constructor(t,n){super(),this.componentDef=t,this.ngModule=n,this.componentType=t.type,this.selector=t.selectors.map(Sb).join(","),this.ngContentSelectors=t.ngContentSelectors?t.ngContentSelectors:[],this.isBoundToModule=!!n}get inputs(){return M_(this.componentDef.inputs)}get outputs(){return M_(this.componentDef.outputs)}create(t,n,i,r){const a=(r=r||this.ngModule)?function(e,t){return{get:(n,i,r)=>{const a=e.get(n,Wa,r);return a!==Wa||i===Wa?a:t.get(n,i,r)}}}(t,r.injector):t,d=a.get(tu,Rr),h=a.get(bh,null),v=d.createRenderer(null,this.componentDef),S=this.componentDef.selectors[0][0]||"div",k=i?function(e,t,n){if(ui(e))return e.selectRootElement(t,n===Ct.ShadowDom);let i="string"==typeof t?e.querySelector(t):t;return i.textContent="",i}(v,i,this.componentDef.encapsulation):id(d.createRenderer(null,this.componentDef),S,function(e){const t=e.toLowerCase();return"svg"===t?"http://www.w3.org/2000/svg":"math"===t?"http://www.w3.org/1998/MathML/":null}(S)),Y=this.componentDef.onPush?576:528,q=function(e,t){return{components:[],scheduler:e||Jf,clean:g0,playerHandler:t||null,flags:0}}(),me=Hc(0,null,null,1,0,null,null,null,null,null),Ie=Tl(null,me,q,Y,null,null,d,v,h,a);let ot,$e;Xi(Ie);try{const Ot=function(e,t,n,i,r,a){const d=n[1];n[20]=e;const v=Ta(d,20,2,"#host",null),S=v.mergedAttrs=t.hostAttrs;null!==S&&(jc(v,S,!0),null!==e&&(as(r,e,S),null!==v.classes&&cd(r,e,v.classes),null!==v.styles&&_p(r,e,v.styles)));const k=i.createRenderer(e,t),Y=Tl(n,Bp(t),null,t.onPush?64:16,n[20],v,i,k,a||null,null);return d.firstCreatePass&&(Eo(Co(v,n),d,t.type),zp(d,v),Wp(v,n.length,1)),Uc(n,Y),n[20]=Y}(k,this.componentDef,Ie,d,v);if(k)if(i)as(v,k,["ng-version",w_.full]);else{const{attrs:bt,classes:yn}=function(e){const t=[],n=[];let i=1,r=2;for(;i<e.length;){let a=e[i];if("string"==typeof a)2===r?""!==a&&t.push(a,e[++i]):8===r&&n.push(a);else{if(!Ss(r))break;r=a}i++}return{attrs:t,classes:n}}(this.componentDef.selectors[0]);bt&&as(v,k,bt),yn&&yn.length>0&&cd(v,k,yn.join(" "))}if($e=D(me,20),void 0!==n){const bt=$e.projection=[];for(let yn=0;yn<this.ngContentSelectors.length;yn++){const Rn=n[yn];bt.push(null!=Rn?Array.from(Rn):null)}}ot=function(e,t,n,i,r){const a=n[1],d=function(e,t,n){const i=Ni();e.firstCreatePass&&(n.providersResolver&&n.providersResolver(n),Zp(e,i,t,Ma(e,t,1,null),n));const r=ce(t,e,i.directiveStart,i);Qi(r,t);const a=_e(i,t);return a&&Qi(a,t),r}(a,n,t);if(i.components.push(d),e[8]=d,r&&r.forEach(v=>v(d,t)),t.contentQueries){const v=Ni();t.contentQueries(1,d,v.directiveStart)}const h=Ni();return!a.firstCreatePass||null===t.hostBindings&&null===t.hostAttrs||(Pr(h.index),Gp(n[1],h,0,h.directiveStart,h.directiveEnd,t),Yp(t,d)),d}(Ot,this.componentDef,Ie,q,[U0]),Ml(me,Ie,null)}finally{ss()}return new vD(this.componentType,ot,za($e,Ie),Ie,$e)}}class vD extends class{}{constructor(t,n,i,r,a){super(),this.location=i,this._rootLView=r,this._tNode=a,this.instance=n,this.hostView=this.changeDetectorRef=new pD(r),this.componentType=t}get injector(){return new Wn(this._tNode,this._rootLView)}destroy(){this.hostView.destroy()}onDestroy(t){this.hostView.onDestroy(t)}}class Jo{}class S_{}const Za=new Map;class I_ extends Jo{constructor(t,n){super(),this._parent=n,this._bootstrapComponents=[],this.injector=this,this.destroyCbs=[],this.componentFactoryResolver=new T_(this);const i=Oe(t);this._bootstrapComponents=$s(i.bootstrap),this._r3Injector=rg(t,n,[{provide:Jo,useValue:this},{provide:Ya,useValue:this.componentFactoryResolver}],G(t)),this._r3Injector._resolveInjectorDefTypes(),this.instance=this.get(t)}get(t,n=Vi.THROW_IF_NOT_FOUND,i=X.Default){return t===Vi||t===Jo||t===Aa?this:this._r3Injector.get(t,n,i)}destroy(){const t=this._r3Injector;!t.destroyed&&t.destroy(),this.destroyCbs.forEach(n=>n()),this.destroyCbs=null}onDestroy(t){this.destroyCbs.push(t)}}class Eh extends S_{constructor(t){super(),this.moduleType=t,null!==Oe(t)&&function(e){const t=new Set;!function n(i){const r=Oe(i,!0),a=r.id;null!==a&&(function(e,t,n){if(t&&t!==n)throw new Error(`Duplicate module registered for ${e} - ${G(t)} vs ${G(t.name)}`)}(a,Za.get(a),i),Za.set(a,i));const d=$s(r.imports);for(const h of d)t.has(h)||(t.add(h),n(h))}(e)}(t)}create(t){return new I_(this.moduleType,t)}}function O_(e,t,n,i){return k_(Et(),pe(),e,t,n,i)}function N_(e,t,n,i,r){return F_(Et(),pe(),e,t,n,i,r)}function x_(e,t,n,i,r,a){return P_(Et(),pe(),e,t,n,i,r,a)}function R_(e,t,n,i,r,a,d){return function(e,t,n,i,r,a,d,h,v){const S=t+n;return hs(e,S,r,a,d,h)?zs(e,S+4,v?i.call(v,r,a,d,h):i(r,a,d,h)):Vl(e,S+4)}(Et(),pe(),e,t,n,i,r,a,d)}function Vl(e,t){const n=e[t];return n===Un?void 0:n}function k_(e,t,n,i,r,a){const d=t+n;return Or(e,d,r)?zs(e,d+1,a?i.call(a,r):i(r)):Vl(e,d+1)}function F_(e,t,n,i,r,a,d){const h=t+n;return Ko(e,h,r,a)?zs(e,h+2,d?i.call(d,r,a):i(r,a)):Vl(e,h+2)}function P_(e,t,n,i,r,a,d,h){const v=t+n;return function(e,t,n,i,r){const a=Ko(e,t,n,i);return Or(e,t+2,r)||a}(e,v,r,a,d)?zs(e,v+3,h?i.call(h,r,a,d):i(r,a,d)):Vl(e,v+3)}function V_(e,t){const n=On();let i;const r=e+20;n.firstCreatePass?(i=function(e,t){if(t)for(let n=t.length-1;n>=0;n--){const i=t[n];if(e===i.name)return i}throw new it("302",`The pipe '${e}' could not be found!`)}(t,n.pipeRegistry),n.data[r]=i,i.onDestroy&&(n.destroyHooks||(n.destroyHooks=[])).push(r,i.onDestroy)):i=n.data[r];const a=i.factory||(i.factory=Oi(i.type)),d=nt(xl);try{const h=bo(!1),v=a();return bo(h),function(e,t,n,i){n>=e.data.length&&(e.data[n]=null,e.blueprint[n]=null),t[n]=i}(n,Et(),r,v),v}finally{nt(d)}}function H_(e,t,n){const i=e+20,r=Et(),a=C(r,i);return Hl(r,i)?k_(r,pe(),t,a.transform,n,a):a.transform(n)}function U_(e,t,n,i){const r=e+20,a=Et(),d=C(a,r);return Hl(a,r)?F_(a,pe(),t,d.transform,n,i,d):d.transform(n,i)}function j_(e,t,n,i,r){const a=e+20,d=Et(),h=C(d,a);return Hl(d,a)?P_(d,pe(),t,h.transform,n,i,r,h):h.transform(n,i,r)}function Hl(e,t){return e[1].data[t].pure}function wh(e){return t=>{setTimeout(e,void 0,t)}}const Qs=class extends l.xQ{constructor(t=!1){super(),this.__isAsync=t}emit(t){super.next(t)}subscribe(t,n,i){var v,S,k;let r=t,a=n||(()=>null),d=i;if(t&&"object"==typeof t){const Y=t;r=null==(v=Y.next)?void 0:v.bind(Y),a=null==(S=Y.error)?void 0:S.bind(Y),d=null==(k=Y.complete)?void 0:k.bind(Y)}this.__isAsync&&(a=wh(a),r&&(r=wh(r)),d&&(d=wh(d)));const h=super.subscribe({next:r,error:a,complete:d});return t instanceof f.w&&t.add(h),h}};function xD(){return this._results[Na()]()}class Ul{constructor(t=!1){this._emitDistinctChangesOnly=t,this.dirty=!0,this._results=[],this._changesDetected=!1,this._changes=null,this.length=0,this.first=void 0,this.last=void 0;const n=Na(),i=Ul.prototype;i[n]||(i[n]=xD)}get changes(){return this._changes||(this._changes=new Qs)}get(t){return this._results[t]}map(t){return this._results.map(t)}filter(t){return this._results.filter(t)}find(t){return this._results.find(t)}reduce(t,n){return this._results.reduce(t,n)}forEach(t){this._results.forEach(t)}some(t){return this._results.some(t)}toArray(){return this._results.slice()}toString(){return this._results.toString()}reset(t,n){const i=this;i.dirty=!1;const r=Jr(t);(this._changesDetected=!function(e,t,n){if(e.length!==t.length)return!1;for(let i=0;i<e.length;i++){let r=e[i],a=t[i];if(n&&(r=n(r),a=n(a)),a!==r)return!1}return!0}(i._results,r,n))&&(i._results=r,i.length=r.length,i.last=r[this.length-1],i.first=r[0])}notifyOnChanges(){this._changes&&(this._changesDetected||!this._emitDistinctChangesOnly)&&this._changes.emit(this)}setDirty(){this.dirty=!0}destroy(){this.changes.complete(),this.changes.unsubscribe()}}Symbol;const kD=function(){return iu(Ni(),Et())};let jl=(()=>{class e{}return e.__NG_ELEMENT_ID__=kD,e})();const FD=jl,PD=class extends FD{constructor(t,n,i){super(),this._declarationLView=t,this._declarationTContainer=n,this.elementRef=i}createEmbeddedView(t){const n=this._declarationTContainer.tViews,i=Tl(this._declarationLView,n,t,16,null,n.declTNode,null,null,null,null);i[17]=this._declarationLView[this._declarationTContainer.index];const a=this._declarationLView[19];return null!==a&&(i[19]=a.createEmbeddedView(n)),Ml(n,i,t),new Bl(i)}};function iu(e,t){return 4&e.type?new PD(t,e,za(e,t)):null}const VD=function(){return Y_(Ni(),Et())};let ru=(()=>{class e{}return e.__NG_ELEMENT_ID__=VD,e})();const UD=ru,$_=class extends UD{constructor(t,n,i){super(),this._lContainer=t,this._hostTNode=n,this._hostLView=i}get element(){return za(this._hostTNode,this._hostLView)}get injector(){return new Wn(this._hostTNode,this._hostLView)}get parentInjector(){const t=Ho(this._hostTNode,this._hostLView);if(ls(t)){const n=Hs(t,this._hostLView),i=cs(t);return new Wn(n[1].data[i+8],n)}return new Wn(null,this._hostLView)}clear(){for(;this.length>0;)this.remove(this.length-1)}get(t){const n=G_(this._lContainer);return null!==n&&n[t]||null}get length(){return this._lContainer.length-10}createEmbeddedView(t,n,i){const r=t.createEmbeddedView(n||{});return this.insert(r,i),r}createComponent(t,n,i,r,a){const d=t&&!("function"==typeof t);let h;if(d)h=n;else{const Y=n||{};h=Y.index,i=Y.injector,r=Y.projectableNodes,a=Y.ngModuleRef}const v=d?t:new Ch(K(t)),S=i||this.parentInjector;if(!a&&null==v.ngModule&&S){const Y=S.get(Jo,null);Y&&(a=Y)}const k=v.create(S,r,void 0,a);return this.insert(k.hostView,h),k}insert(t,n){const i=t._lView,r=i[1];if(yi(i[3])){const k=this.indexOf(t);if(-1!==k)this.detach(k);else{const Y=i[3],q=new $_(Y,Y[6],Y[3]);q.detach(q.indexOf(t))}}const a=this._adjustIndex(n),d=this._lContainer;!function(e,t,n,i){const r=10+i,a=n.length;i>0&&(n[r-1][4]=t),i<a-10?(t[4]=n[r],ul(n,10+i,t)):(n.push(t),t[4]=null),t[3]=n;const d=t[17];null!==d&&n!==d&&function(e,t){const n=e[9];t[16]!==t[3][3][16]&&(e[2]=!0),null===n?e[9]=[t]:n.push(t)}(d,t);const h=t[19];null!==h&&h.insertView(e),t[2]|=128}(r,i,d,a);const h=ad(a,d),v=i[11],S=kc(v,d[7]);return null!==S&&function(e,t,n,i,r,a){i[0]=r,i[6]=t,wl(e,i,n,1,r,a)}(r,d[6],v,i,S,h),t.attachToViewContainerRef(),ul(Th(d),a,t),t}move(t,n){return this.insert(t,n)}indexOf(t){const n=G_(this._lContainer);return null!==n?n.indexOf(t):-1}remove(t){const n=this._adjustIndex(t,-1),i=rd(this._lContainer,n);i&&(Mo(Th(this._lContainer),n),sp(i[1],i))}detach(t){const n=this._adjustIndex(t,-1),i=rd(this._lContainer,n);return i&&null!=Mo(Th(this._lContainer),n)?new Bl(i):null}_adjustIndex(t,n=0){return null==t?this.length+n:t}};function G_(e){return e[8]}function Th(e){return e[8]||(e[8]=[])}function Y_(e,t){let n;const i=t[e.index];if(yi(i))n=i;else{let r;if(8&e.type)r=O(i);else{const a=t[11];r=a.createComment("");const d=_e(e,t);Zo(a,kc(a,d),r,function(e,t){return ui(e)?e.nextSibling(t):t.nextSibling}(a,d),!1)}t[e.index]=n=Kp(i,t,r,e),Uc(t,n)}return new $_(n,e,t)}class Mh{constructor(t){this.queryList=t,this.matches=null}clone(){return new Mh(this.queryList)}setDirty(){this.queryList.setDirty()}}class Sh{constructor(t=[]){this.queries=t}createEmbeddedView(t){const n=t.queries;if(null!==n){const i=null!==t.contentQueries?t.contentQueries[0]:n.length,r=[];for(let a=0;a<i;a++){const d=n.getByIndex(a);r.push(this.queries[d.indexInDeclarationView].clone())}return new Sh(r)}return null}insertView(t){this.dirtyQueriesWithMatches(t)}detachView(t){this.dirtyQueriesWithMatches(t)}dirtyQueriesWithMatches(t){for(let n=0;n<this.queries.length;n++)null!==ey(t,n).matches&&this.queries[n].setDirty()}}class z_{constructor(t,n,i=null){this.predicate=t,this.flags=n,this.read=i}}class Ah{constructor(t=[]){this.queries=t}elementStart(t,n){for(let i=0;i<this.queries.length;i++)this.queries[i].elementStart(t,n)}elementEnd(t){for(let n=0;n<this.queries.length;n++)this.queries[n].elementEnd(t)}embeddedTView(t){let n=null;for(let i=0;i<this.length;i++){const r=null!==n?n.length:0,a=this.getByIndex(i).embeddedTView(t,r);a&&(a.indexInDeclarationView=i,null!==n?n.push(a):n=[a])}return null!==n?new Ah(n):null}template(t,n){for(let i=0;i<this.queries.length;i++)this.queries[i].template(t,n)}getByIndex(t){return this.queries[t]}get length(){return this.queries.length}track(t){this.queries.push(t)}}class Ih{constructor(t,n=-1){this.metadata=t,this.matches=null,this.indexInDeclarationView=-1,this.crossesNgTemplate=!1,this._appliesToNextNode=!0,this._declarationNodeIndex=n}elementStart(t,n){this.isApplyingToNode(n)&&this.matchTNode(t,n)}elementEnd(t){this._declarationNodeIndex===t.index&&(this._appliesToNextNode=!1)}template(t,n){this.elementStart(t,n)}embeddedTView(t,n){return this.isApplyingToNode(t)?(this.crossesNgTemplate=!0,this.addMatch(-t.index,n),new Ih(this.metadata)):null}isApplyingToNode(t){if(this._appliesToNextNode&&1!=(1&this.metadata.flags)){const n=this._declarationNodeIndex;let i=t.parent;for(;null!==i&&8&i.type&&i.index!==n;)i=i.parent;return n===(null!==i?i.index:-1)}return this._appliesToNextNode}matchTNode(t,n){const i=this.metadata.predicate;if(Array.isArray(i))for(let r=0;r<i.length;r++){const a=i[r];this.matchTNodeWithReadOption(t,n,GD(n,a)),this.matchTNodeWithReadOption(t,n,V(n,t,a,!1,!1))}else i===jl?4&n.type&&this.matchTNodeWithReadOption(t,n,-1):this.matchTNodeWithReadOption(t,n,V(n,t,i,!1,!1))}matchTNodeWithReadOption(t,n,i){if(null!==i){const r=this.metadata.read;if(null!==r)if(r===Ks||r===ru||r===jl&&4&n.type)this.addMatch(n.index,-2);else{const a=V(n,t,r,!1,!1);null!==a&&this.addMatch(n.index,a)}else this.addMatch(n.index,i)}}addMatch(t,n){null===this.matches?this.matches=[t,n]:this.matches.push(t,n)}}function GD(e,t){const n=e.localNames;if(null!==n)for(let i=0;i<n.length;i+=2)if(n[i]===t)return n[i+1];return null}function zD(e,t,n,i){return-1===n?function(e,t){return 11&e.type?za(e,t):4&e.type?iu(e,t):null}(t,e):-2===n?function(e,t,n){return n===Ks?za(t,e):n===jl?iu(t,e):n===ru?Y_(t,e):void 0}(e,t,i):ce(e,e[1],n,t)}function W_(e,t,n,i){const r=t[19].queries[i];if(null===r.matches){const a=e.data,d=n.matches,h=[];for(let v=0;v<d.length;v+=2){const S=d[v];h.push(S<0?null:zD(t,a[S],d[v+1],n.metadata.read))}r.matches=h}return r.matches}function Oh(e,t,n,i){const r=e.queries.getByIndex(n),a=r.matches;if(null!==a){const d=W_(e,t,r,n);for(let h=0;h<a.length;h+=2){const v=a[h];if(v>0)i.push(d[h/2]);else{const S=a[h+1],k=t[-v];for(let Y=10;Y<k.length;Y++){const q=k[Y];q[17]===q[3]&&Oh(q[1],q,S,i)}if(null!==k[9]){const Y=k[9];for(let q=0;q<Y.length;q++){const me=Y[q];Oh(me[1],me,S,i)}}}}}return i}function Z_(e){const t=Et(),n=On(),i=Di();Ei(i+1);const r=ey(n,i);if(e.dirty&&tt(t)===(2==(2&r.metadata.flags))){if(null===r.matches)e.reset([]);else{const a=r.crossesNgTemplate?Oh(n,t,i,[]):W_(n,t,r,i);e.reset(a,D_),e.notifyOnChanges()}return!0}return!1}function K_(e,t,n){const i=On();i.firstCreatePass&&(X_(i,new z_(e,t,n),-1),2==(2&t)&&(i.staticViewQueries=!0)),q_(i,Et(),t)}function Q_(e,t,n,i){const r=On();if(r.firstCreatePass){const a=Ni();X_(r,new z_(t,n,i),a.index),function(e,t){const n=e.contentQueries||(e.contentQueries=[]);t!==(n.length?n[n.length-1]:-1)&&n.push(e.queries.length-1,t)}(r,e),2==(2&n)&&(r.staticContentQueries=!0)}q_(r,Et(),n)}function J_(){return e=Et(),t=Di(),e[19].queries[t].queryList;var e,t}function q_(e,t,n){const i=new Ul(4==(4&n));Up(e,t,i,i.destroy),null===t[19]&&(t[19]=new Sh),t[19].queries.push(new Mh(i))}function X_(e,t,n){null===e.queries&&(e.queries=new Ah),e.queries.track(new Ih(t,n))}function ey(e,t){return e.queries.getByIndex(t)}function ty(e,t){return iu(e,t)}const Ph=new xi("Application Initializer");let Qa=(()=>{class e{constructor(n){this.appInits=n,this.resolve=eu,this.reject=eu,this.initialized=!1,this.done=!1,this.donePromise=new Promise((i,r)=>{this.resolve=i,this.reject=r})}runInitializers(){if(this.initialized)return;const n=[],i=()=>{this.done=!0,this.resolve()};if(this.appInits)for(let r=0;r<this.appInits.length;r++){const a=this.appInits[r]();if(qd(a))n.push(a);else if(Xd(a)){const d=new Promise((h,v)=>{a.subscribe({complete:h,error:v})});n.push(d)}}Promise.all(n).then(()=>{i()}).catch(r=>{this.reject(r)}),0===n.length&&i(),this.initialized=!0}}return e.\u0275fac=function(n){return new(n||e)(Li(Ph,8))},e.\u0275prov=Ee({token:e,factory:e.\u0275fac}),e})();const vy=new xi("AppId"),DE={provide:vy,useFactory:function(){return`${Lh()}${Lh()}${Lh()}`},deps:[]};function Lh(){return String.fromCharCode(97+Math.floor(25*Math.random()))}const by=new xi("Platform Initializer"),Cy=new xi("Platform ID"),Dy=new xi("appBootstrapListener");let Ey=(()=>{class e{log(n){console.log(n)}warn(n){console.warn(n)}}return e.\u0275fac=function(n){return new(n||e)},e.\u0275prov=Ee({token:e,factory:e.\u0275fac}),e})();const au=new xi("LocaleId"),wy=new xi("DefaultCurrencyCode");class wE{constructor(t,n){this.ngModuleFactory=t,this.componentFactories=n}}const Bh=function(e){return new Eh(e)},TE=Bh,ME=function(e){return Promise.resolve(Bh(e))},My=function(e){const t=Bh(e),i=$s(Oe(e).declarations).reduce((r,a)=>{const d=K(a);return d&&r.push(new Ch(d)),r},[]);return new wE(t,i)},SE=My,AE=function(e){return Promise.resolve(My(e))};let Vh=(()=>{class e{constructor(){this.compileModuleSync=TE,this.compileModuleAsync=ME,this.compileModuleAndAllComponentsSync=SE,this.compileModuleAndAllComponentsAsync=AE}clearCache(){}clearCacheFor(n){}getModuleId(n){}}return e.\u0275fac=function(n){return new(n||e)},e.\u0275prov=Ee({token:e,factory:e.\u0275fac}),e})();const NE=(()=>Promise.resolve(0))();function Hh(e){"undefined"==typeof Zone?NE.then(()=>{e&&e.apply(null,null)}):Zone.current.scheduleMicroTask("scheduleMicrotask",e)}class Xr{constructor({enableLongStackTrace:t=!1,shouldCoalesceEventChangeDetection:n=!1,shouldCoalesceRunChangeDetection:i=!1}){if(this.hasPendingMacrotasks=!1,this.hasPendingMicrotasks=!1,this.isStable=!0,this.onUnstable=new Qs(!1),this.onMicrotaskEmpty=new Qs(!1),this.onStable=new Qs(!1),this.onError=new Qs(!1),"undefined"==typeof Zone)throw new Error("In this configuration Angular requires Zone.js");Zone.assertZonePatched();const r=this;r._nesting=0,r._outer=r._inner=Zone.current,Zone.TaskTrackingZoneSpec&&(r._inner=r._inner.fork(new Zone.TaskTrackingZoneSpec)),t&&Zone.longStackTraceZoneSpec&&(r._inner=r._inner.fork(Zone.longStackTraceZoneSpec)),r.shouldCoalesceEventChangeDetection=!i&&n,r.shouldCoalesceRunChangeDetection=i,r.lastRequestAnimationFrameId=-1,r.nativeRequestAnimationFrame=function(){let e=hn.requestAnimationFrame,t=hn.cancelAnimationFrame;if("undefined"!=typeof Zone&&e&&t){const n=e[Zone.__symbol__("OriginalDelegate")];n&&(e=n);const i=t[Zone.__symbol__("OriginalDelegate")];i&&(t=i)}return{nativeRequestAnimationFrame:e,nativeCancelAnimationFrame:t}}().nativeRequestAnimationFrame,function(e){const t=()=>{!function(e){e.isCheckStableRunning||-1!==e.lastRequestAnimationFrameId||(e.lastRequestAnimationFrameId=e.nativeRequestAnimationFrame.call(hn,()=>{e.fakeTopEventTask||(e.fakeTopEventTask=Zone.root.scheduleEventTask("fakeTopEventTask",()=>{e.lastRequestAnimationFrameId=-1,jh(e),e.isCheckStableRunning=!0,Uh(e),e.isCheckStableRunning=!1},void 0,()=>{},()=>{})),e.fakeTopEventTask.invoke()}),jh(e))}(e)};e._inner=e._inner.fork({name:"angular",properties:{isAngularZone:!0},onInvokeTask:(n,i,r,a,d,h)=>{try{return Sy(e),n.invokeTask(r,a,d,h)}finally{(e.shouldCoalesceEventChangeDetection&&"eventTask"===a.type||e.shouldCoalesceRunChangeDetection)&&t(),Ay(e)}},onInvoke:(n,i,r,a,d,h,v)=>{try{return Sy(e),n.invoke(r,a,d,h,v)}finally{e.shouldCoalesceRunChangeDetection&&t(),Ay(e)}},onHasTask:(n,i,r,a)=>{n.hasTask(r,a),i===r&&("microTask"==a.change?(e._hasPendingMicrotasks=a.microTask,jh(e),Uh(e)):"macroTask"==a.change&&(e.hasPendingMacrotasks=a.macroTask))},onHandleError:(n,i,r,a)=>(n.handleError(r,a),e.runOutsideAngular(()=>e.onError.emit(a)),!1)})}(r)}static isInAngularZone(){return!0===Zone.current.get("isAngularZone")}static assertInAngularZone(){if(!Xr.isInAngularZone())throw new Error("Expected to be in Angular Zone, but it is not!")}static assertNotInAngularZone(){if(Xr.isInAngularZone())throw new Error("Expected to not be in Angular Zone, but it is!")}run(t,n,i){return this._inner.run(t,n,i)}runTask(t,n,i,r){const a=this._inner,d=a.scheduleEventTask("NgZoneEvent: "+r,t,RE,eu,eu);try{return a.runTask(d,n,i)}finally{a.cancelTask(d)}}runGuarded(t,n,i){return this._inner.runGuarded(t,n,i)}runOutsideAngular(t){return this._outer.run(t)}}const RE={};function Uh(e){if(0==e._nesting&&!e.hasPendingMicrotasks&&!e.isStable)try{e._nesting++,e.onMicrotaskEmpty.emit(null)}finally{if(e._nesting--,!e.hasPendingMicrotasks)try{e.runOutsideAngular(()=>e.onStable.emit(null))}finally{e.isStable=!0}}}function jh(e){e.hasPendingMicrotasks=!!(e._hasPendingMicrotasks||(e.shouldCoalesceEventChangeDetection||e.shouldCoalesceRunChangeDetection)&&-1!==e.lastRequestAnimationFrameId)}function Sy(e){e._nesting++,e.isStable&&(e.isStable=!1,e.onUnstable.emit(null))}function Ay(e){e._nesting--,Uh(e)}class PE{constructor(){this.hasPendingMicrotasks=!1,this.hasPendingMacrotasks=!1,this.isStable=!0,this.onUnstable=new Qs,this.onMicrotaskEmpty=new Qs,this.onStable=new Qs,this.onError=new Qs}run(t,n,i){return t.apply(n,i)}runGuarded(t,n,i){return t.apply(n,i)}runOutsideAngular(t){return t()}runTask(t,n,i,r){return t.apply(n,i)}}let Iy=(()=>{class e{constructor(n){this._ngZone=n,this._pendingCount=0,this._isZoneStable=!0,this._didWork=!1,this._callbacks=[],this.taskTrackingZone=null,this._watchAngularEvents(),n.run(()=>{this.taskTrackingZone="undefined"==typeof Zone?null:Zone.current.get("TaskTrackingZone")})}_watchAngularEvents(){this._ngZone.onUnstable.subscribe({next:()=>{this._didWork=!0,this._isZoneStable=!1}}),this._ngZone.runOutsideAngular(()=>{this._ngZone.onStable.subscribe({next:()=>{Xr.assertNotInAngularZone(),Hh(()=>{this._isZoneStable=!0,this._runCallbacksIfReady()})}})})}increasePendingRequestCount(){return this._pendingCount+=1,this._didWork=!0,this._pendingCount}decreasePendingRequestCount(){if(this._pendingCount-=1,this._pendingCount<0)throw new Error("pending async requests below zero");return this._runCallbacksIfReady(),this._pendingCount}isStable(){return this._isZoneStable&&0===this._pendingCount&&!this._ngZone.hasPendingMacrotasks}_runCallbacksIfReady(){if(this.isStable())Hh(()=>{for(;0!==this._callbacks.length;){let n=this._callbacks.pop();clearTimeout(n.timeoutId),n.doneCb(this._didWork)}this._didWork=!1});else{let n=this.getPendingTasks();this._callbacks=this._callbacks.filter(i=>!i.updateCb||!i.updateCb(n)||(clearTimeout(i.timeoutId),!1)),this._didWork=!0}}getPendingTasks(){return this.taskTrackingZone?this.taskTrackingZone.macroTasks.map(n=>({source:n.source,creationLocation:n.creationLocation,data:n.data})):[]}addCallback(n,i,r){let a=-1;i&&i>0&&(a=setTimeout(()=>{this._callbacks=this._callbacks.filter(d=>d.timeoutId!==a),n(this._didWork,this.getPendingTasks())},i)),this._callbacks.push({doneCb:n,timeoutId:a,updateCb:r})}whenStable(n,i,r){if(r&&!this.taskTrackingZone)throw new Error('Task tracking zone is required when passing an update callback to whenStable(). Is "zone.js/plugins/task-tracking" loaded?');this.addCallback(n,i,r),this._runCallbacksIfReady()}getPendingRequestCount(){return this._pendingCount}findProviders(n,i,r){return[]}}return e.\u0275fac=function(n){return new(n||e)(Li(Xr))},e.\u0275prov=Ee({token:e,factory:e.\u0275fac}),e})(),Oy=(()=>{class e{constructor(){this._applications=new Map,$h.addToWindow(this)}registerApplication(n,i){this._applications.set(n,i)}unregisterApplication(n){this._applications.delete(n)}unregisterAllApplications(){this._applications.clear()}getTestability(n){return this._applications.get(n)||null}getAllTestabilities(){return Array.from(this._applications.values())}getAllRootElements(){return Array.from(this._applications.keys())}findTestabilityInTree(n,i=!0){return $h.findTestabilityInTree(this,n,i)}}return e.\u0275fac=function(n){return new(n||e)},e.\u0275prov=Ee({token:e,factory:e.\u0275fac}),e})();class LE{addToWindow(t){}findTestabilityInTree(t,n,i){return null}}function BE(e){$h=e}let $h=new LE,Ny=!0,xy=!1;function Gh(){return xy=!0,Ny}function VE(){if(xy)throw new Error("Cannot enable prod mode after platform setup.");Ny=!1}let xs;const Ry=new xi("AllowMultipleToken");class zE{constructor(t,n){this.name=t,this.token=n}}function ky(e,t,n=[]){const i=`Platform: ${t}`,r=new xi(i);return(a=[])=>{let d=Fy();if(!d||d.injector.get(Ry,!1))if(e)e(n.concat(a).concat({provide:r,useValue:!0}));else{const h=n.concat(a).concat({provide:r,useValue:!0},{provide:Sl,useValue:"platform"});!function(e){if(xs&&!xs.destroyed&&!xs.injector.get(Ry,!1))throw new Error("There can be only one platform. Destroy the previous one to create a new one.");xs=e.get(Py);const t=e.get(by,null);t&&t.forEach(n=>n())}(Vi.create({providers:h,name:i}))}return function(e){const t=Fy();if(!t)throw new Error("No platform exists!");if(!t.injector.get(e,null))throw new Error("A platform with a different configuration has been created. Please destroy it first.");return t}(r)}}function Fy(){return xs&&!xs.destroyed?xs:null}let Py=(()=>{class e{constructor(n){this._injector=n,this._modules=[],this._destroyListeners=[],this._destroyed=!1}bootstrapModuleFactory(n,i){const h=function(e,t){let n;return n="noop"===e?new PE:("zone.js"===e?void 0:e)||new Xr({enableLongStackTrace:Gh(),shouldCoalesceEventChangeDetection:!!(null==t?void 0:t.ngZoneEventCoalescing),shouldCoalesceRunChangeDetection:!!(null==t?void 0:t.ngZoneRunCoalescing)}),n}(i?i.ngZone:void 0,{ngZoneEventCoalescing:i&&i.ngZoneEventCoalescing||!1,ngZoneRunCoalescing:i&&i.ngZoneRunCoalescing||!1}),v=[{provide:Xr,useValue:h}];return h.run(()=>{const S=Vi.create({providers:v,parent:this.injector,name:n.moduleType.name}),k=n.create(S),Y=k.injector.get(Da,null);if(!Y)throw new Error("No ErrorHandler. Is platform module (BrowserModule) included?");return h.runOutsideAngular(()=>{const q=h.onError.subscribe({next:me=>{Y.handleError(me)}});k.onDestroy(()=>{Yh(this._modules,k),q.unsubscribe()})}),function(e,t,n){try{const i=n();return qd(i)?i.catch(r=>{throw t.runOutsideAngular(()=>e.handleError(r)),r}):i}catch(i){throw t.runOutsideAngular(()=>e.handleError(i)),i}}(Y,h,()=>{const q=k.injector.get(Qa);return q.runInitializers(),q.donePromise.then(()=>(function(e){(function(e,t){null==e&&zt(t,e,null,"!=")})(e,"Expected localeId to be defined"),"string"==typeof e&&(zm=e.toLowerCase().replace(/_/g,"-"))}(k.injector.get(au,Kc)||Kc),this._moduleDoBootstrap(k),k))})})}bootstrapModule(n,i=[]){const r=Ly({},i);return function(e,t,n){const i=new Eh(n);return Promise.resolve(i)}(0,0,n).then(a=>this.bootstrapModuleFactory(a,r))}_moduleDoBootstrap(n){const i=n.injector.get(Gl);if(n._bootstrapComponents.length>0)n._bootstrapComponents.forEach(r=>i.bootstrap(r));else{if(!n.instance.ngDoBootstrap)throw new Error(`The module ${G(n.instance.constructor)} was bootstrapped, but it does not declare "@NgModule.bootstrap" components nor a "ngDoBootstrap" method. Please define one of these.`);n.instance.ngDoBootstrap(i)}this._modules.push(n)}onDestroy(n){this._destroyListeners.push(n)}get injector(){return this._injector}destroy(){if(this._destroyed)throw new Error("The platform has already been destroyed!");this._modules.slice().forEach(n=>n.destroy()),this._destroyListeners.forEach(n=>n()),this._destroyed=!0}get destroyed(){return this._destroyed}}return e.\u0275fac=function(n){return new(n||e)(Li(Vi))},e.\u0275prov=Ee({token:e,factory:e.\u0275fac}),e})();function Ly(e,t){return Array.isArray(t)?t.reduce(Ly,e):Wt(Wt({},e),t)}let Gl=(()=>{class e{constructor(n,i,r,a,d){this._zone=n,this._injector=i,this._exceptionHandler=r,this._componentFactoryResolver=a,this._initStatus=d,this._bootstrapListeners=[],this._views=[],this._runningTick=!1,this._stable=!0,this.componentTypes=[],this.components=[],this._onMicrotaskEmptySubscription=this._zone.onMicrotaskEmpty.subscribe({next:()=>{this._zone.run(()=>{this.tick()})}});const h=new Z.y(S=>{this._stable=this._zone.isStable&&!this._zone.hasPendingMacrotasks&&!this._zone.hasPendingMicrotasks,this._zone.runOutsideAngular(()=>{S.next(this._stable),S.complete()})}),v=new Z.y(S=>{let k;this._zone.runOutsideAngular(()=>{k=this._zone.onStable.subscribe(()=>{Xr.assertNotInAngularZone(),Hh(()=>{!this._stable&&!this._zone.hasPendingMacrotasks&&!this._zone.hasPendingMicrotasks&&(this._stable=!0,S.next(!0))})})});const Y=this._zone.onUnstable.subscribe(()=>{Xr.assertInAngularZone(),this._stable&&(this._stable=!1,this._zone.runOutsideAngular(()=>{S.next(!1)}))});return()=>{k.unsubscribe(),Y.unsubscribe()}});this.isStable=(0,o.T)(h,v.pipe((0,oe.B)()))}bootstrap(n,i){if(!this._initStatus.done)throw new Error("Cannot bootstrap as there are still asynchronous initializers running. Bootstrap components in the `ngDoBootstrap` method of the root module.");let r;r=n instanceof v_?n:this._componentFactoryResolver.resolveComponentFactory(n),this.componentTypes.push(r.componentType);const a=function(e){return e.isBoundToModule}(r)?void 0:this._injector.get(Jo),h=r.create(Vi.NULL,[],i||r.selector,a),v=h.location.nativeElement,S=h.injector.get(Iy,null),k=S&&h.injector.get(Oy);return S&&k&&k.registerApplication(v,S),h.onDestroy(()=>{this.detachView(h.hostView),Yh(this.components,h),k&&k.unregisterApplication(v)}),this._loadComponent(h),h}tick(){if(this._runningTick)throw new Error("ApplicationRef.tick is called recursively");try{this._runningTick=!0;for(let n of this._views)n.detectChanges()}catch(n){this._zone.runOutsideAngular(()=>this._exceptionHandler.handleError(n))}finally{this._runningTick=!1}}attachView(n){const i=n;this._views.push(i),i.attachToAppRef(this)}detachView(n){const i=n;Yh(this._views,i),i.detachFromAppRef()}_loadComponent(n){this.attachView(n.hostView),this.tick(),this.components.push(n),this._injector.get(Dy,[]).concat(this._bootstrapListeners).forEach(r=>r(n))}ngOnDestroy(){this._views.slice().forEach(n=>n.destroy()),this._onMicrotaskEmptySubscription.unsubscribe()}get viewCount(){return this._views.length}}return e.\u0275fac=function(n){return new(n||e)(Li(Xr),Li(Vi),Li(Da),Li(Ya),Li(Qa))},e.\u0275prov=Ee({token:e,factory:e.\u0275fac}),e})();function Yh(e,t){const n=e.indexOf(t);n>-1&&e.splice(n,1)}const XE=function(e){return function(e,t,n){if(se(e)&&!n){const i=L(e.index,t);return new Bl(i,i)}return 47&e.type?new Bl(t[16],t):null}(Ni(),Et(),16==(16&e))};let ew=(()=>{class e{}return e.__NG_ELEMENT_ID__=XE,e})();const uw=function(e){return null};class Gy{constructor(){}supports(t){return Ol(t)}create(t){return new fw(t)}}const hw=(e,t)=>t;class fw{constructor(t){this.length=0,this._linkedRecords=null,this._unlinkedRecords=null,this._previousItHead=null,this._itHead=null,this._itTail=null,this._additionsHead=null,this._additionsTail=null,this._movesHead=null,this._movesTail=null,this._removalsHead=null,this._removalsTail=null,this._identityChangesHead=null,this._identityChangesTail=null,this._trackByFn=t||hw}forEachItem(t){let n;for(n=this._itHead;null!==n;n=n._next)t(n)}forEachOperation(t){let n=this._itHead,i=this._removalsHead,r=0,a=null;for(;n||i;){const d=!i||n&&n.currentIndex<zy(i,r,a)?n:i,h=zy(d,r,a),v=d.currentIndex;if(d===i)r--,i=i._nextRemoved;else if(n=n._next,null==d.previousIndex)r++;else{a||(a=[]);const S=h-r,k=v-r;if(S!=k){for(let q=0;q<S;q++){const me=q<a.length?a[q]:a[q]=0,Ie=me+q;k<=Ie&&Ie<S&&(a[q]=me+1)}a[d.previousIndex]=k-S}}h!==v&&t(d,h,v)}}forEachPreviousItem(t){let n;for(n=this._previousItHead;null!==n;n=n._nextPrevious)t(n)}forEachAddedItem(t){let n;for(n=this._additionsHead;null!==n;n=n._nextAdded)t(n)}forEachMovedItem(t){let n;for(n=this._movesHead;null!==n;n=n._nextMoved)t(n)}forEachRemovedItem(t){let n;for(n=this._removalsHead;null!==n;n=n._nextRemoved)t(n)}forEachIdentityChange(t){let n;for(n=this._identityChangesHead;null!==n;n=n._nextIdentityChange)t(n)}diff(t){if(null==t&&(t=[]),!Ol(t))throw new Error(`Error trying to diff '${G(t)}'. Only arrays and iterables are allowed`);return this.check(t)?this:null}onDestroy(){}check(t){this._reset();let r,a,d,n=this._itHead,i=!1;if(Array.isArray(t)){this.length=t.length;for(let h=0;h<this.length;h++)a=t[h],d=this._trackByFn(h,a),null!==n&&Object.is(n.trackById,d)?(i&&(n=this._verifyReinsertion(n,a,d,h)),Object.is(n.item,a)||this._addIdentityChange(n,a)):(n=this._mismatch(n,a,d,h),i=!0),n=n._next}else r=0,function(e,t){if(Array.isArray(e))for(let n=0;n<e.length;n++)t(e[n]);else{const n=e[Na()]();let i;for(;!(i=n.next()).done;)t(i.value)}}(t,h=>{d=this._trackByFn(r,h),null!==n&&Object.is(n.trackById,d)?(i&&(n=this._verifyReinsertion(n,h,d,r)),Object.is(n.item,h)||this._addIdentityChange(n,h)):(n=this._mismatch(n,h,d,r),i=!0),n=n._next,r++}),this.length=r;return this._truncate(n),this.collection=t,this.isDirty}get isDirty(){return null!==this._additionsHead||null!==this._movesHead||null!==this._removalsHead||null!==this._identityChangesHead}_reset(){if(this.isDirty){let t;for(t=this._previousItHead=this._itHead;null!==t;t=t._next)t._nextPrevious=t._next;for(t=this._additionsHead;null!==t;t=t._nextAdded)t.previousIndex=t.currentIndex;for(this._additionsHead=this._additionsTail=null,t=this._movesHead;null!==t;t=t._nextMoved)t.previousIndex=t.currentIndex;this._movesHead=this._movesTail=null,this._removalsHead=this._removalsTail=null,this._identityChangesHead=this._identityChangesTail=null}}_mismatch(t,n,i,r){let a;return null===t?a=this._itTail:(a=t._prev,this._remove(t)),null!==(t=null===this._unlinkedRecords?null:this._unlinkedRecords.get(i,null))?(Object.is(t.item,n)||this._addIdentityChange(t,n),this._reinsertAfter(t,a,r)):null!==(t=null===this._linkedRecords?null:this._linkedRecords.get(i,r))?(Object.is(t.item,n)||this._addIdentityChange(t,n),this._moveAfter(t,a,r)):t=this._addAfter(new pw(n,i),a,r),t}_verifyReinsertion(t,n,i,r){let a=null===this._unlinkedRecords?null:this._unlinkedRecords.get(i,null);return null!==a?t=this._reinsertAfter(a,t._prev,r):t.currentIndex!=r&&(t.currentIndex=r,this._addToMoves(t,r)),t}_truncate(t){for(;null!==t;){const n=t._next;this._addToRemovals(this._unlink(t)),t=n}null!==this._unlinkedRecords&&this._unlinkedRecords.clear(),null!==this._additionsTail&&(this._additionsTail._nextAdded=null),null!==this._movesTail&&(this._movesTail._nextMoved=null),null!==this._itTail&&(this._itTail._next=null),null!==this._removalsTail&&(this._removalsTail._nextRemoved=null),null!==this._identityChangesTail&&(this._identityChangesTail._nextIdentityChange=null)}_reinsertAfter(t,n,i){null!==this._unlinkedRecords&&this._unlinkedRecords.remove(t);const r=t._prevRemoved,a=t._nextRemoved;return null===r?this._removalsHead=a:r._nextRemoved=a,null===a?this._removalsTail=r:a._prevRemoved=r,this._insertAfter(t,n,i),this._addToMoves(t,i),t}_moveAfter(t,n,i){return this._unlink(t),this._insertAfter(t,n,i),this._addToMoves(t,i),t}_addAfter(t,n,i){return this._insertAfter(t,n,i),this._additionsTail=null===this._additionsTail?this._additionsHead=t:this._additionsTail._nextAdded=t,t}_insertAfter(t,n,i){const r=null===n?this._itHead:n._next;return t._next=r,t._prev=n,null===r?this._itTail=t:r._prev=t,null===n?this._itHead=t:n._next=t,null===this._linkedRecords&&(this._linkedRecords=new Yy),this._linkedRecords.put(t),t.currentIndex=i,t}_remove(t){return this._addToRemovals(this._unlink(t))}_unlink(t){null!==this._linkedRecords&&this._linkedRecords.remove(t);const n=t._prev,i=t._next;return null===n?this._itHead=i:n._next=i,null===i?this._itTail=n:i._prev=n,t}_addToMoves(t,n){return t.previousIndex===n||(this._movesTail=null===this._movesTail?this._movesHead=t:this._movesTail._nextMoved=t),t}_addToRemovals(t){return null===this._unlinkedRecords&&(this._unlinkedRecords=new Yy),this._unlinkedRecords.put(t),t.currentIndex=null,t._nextRemoved=null,null===this._removalsTail?(this._removalsTail=this._removalsHead=t,t._prevRemoved=null):(t._prevRemoved=this._removalsTail,this._removalsTail=this._removalsTail._nextRemoved=t),t}_addIdentityChange(t,n){return t.item=n,this._identityChangesTail=null===this._identityChangesTail?this._identityChangesHead=t:this._identityChangesTail._nextIdentityChange=t,t}}class pw{constructor(t,n){this.item=t,this.trackById=n,this.currentIndex=null,this.previousIndex=null,this._nextPrevious=null,this._prev=null,this._next=null,this._prevDup=null,this._nextDup=null,this._prevRemoved=null,this._nextRemoved=null,this._nextAdded=null,this._nextMoved=null,this._nextIdentityChange=null}}class gw{constructor(){this._head=null,this._tail=null}add(t){null===this._head?(this._head=this._tail=t,t._nextDup=null,t._prevDup=null):(this._tail._nextDup=t,t._prevDup=this._tail,t._nextDup=null,this._tail=t)}get(t,n){let i;for(i=this._head;null!==i;i=i._nextDup)if((null===n||n<=i.currentIndex)&&Object.is(i.trackById,t))return i;return null}remove(t){const n=t._prevDup,i=t._nextDup;return null===n?this._head=i:n._nextDup=i,null===i?this._tail=n:i._prevDup=n,null===this._head}}class Yy{constructor(){this.map=new Map}put(t){const n=t.trackById;let i=this.map.get(n);i||(i=new gw,this.map.set(n,i)),i.add(t)}get(t,n){const r=this.map.get(t);return r?r.get(t,n):null}remove(t){const n=t.trackById;return this.map.get(n).remove(t)&&this.map.delete(n),t}get isEmpty(){return 0===this.map.size}clear(){this.map.clear()}}function zy(e,t,n){const i=e.previousIndex;if(null===i)return i;let r=0;return n&&i<n.length&&(r=n[i]),i+t+r}class Wy{constructor(){}supports(t){return t instanceof Map||Hd(t)}create(){return new mw}}class mw{constructor(){this._records=new Map,this._mapHead=null,this._appendAfter=null,this._previousMapHead=null,this._changesHead=null,this._changesTail=null,this._additionsHead=null,this._additionsTail=null,this._removalsHead=null,this._removalsTail=null}get isDirty(){return null!==this._additionsHead||null!==this._changesHead||null!==this._removalsHead}forEachItem(t){let n;for(n=this._mapHead;null!==n;n=n._next)t(n)}forEachPreviousItem(t){let n;for(n=this._previousMapHead;null!==n;n=n._nextPrevious)t(n)}forEachChangedItem(t){let n;for(n=this._changesHead;null!==n;n=n._nextChanged)t(n)}forEachAddedItem(t){let n;for(n=this._additionsHead;null!==n;n=n._nextAdded)t(n)}forEachRemovedItem(t){let n;for(n=this._removalsHead;null!==n;n=n._nextRemoved)t(n)}diff(t){if(t){if(!(t instanceof Map||Hd(t)))throw new Error(`Error trying to diff '${G(t)}'. Only maps and objects are allowed`)}else t=new Map;return this.check(t)?this:null}onDestroy(){}check(t){this._reset();let n=this._mapHead;if(this._appendAfter=null,this._forEach(t,(i,r)=>{if(n&&n.key===r)this._maybeAddToChanges(n,i),this._appendAfter=n,n=n._next;else{const a=this._getOrCreateRecordForKey(r,i);n=this._insertBeforeOrAppend(n,a)}}),n){n._prev&&(n._prev._next=null),this._removalsHead=n;for(let i=n;null!==i;i=i._nextRemoved)i===this._mapHead&&(this._mapHead=null),this._records.delete(i.key),i._nextRemoved=i._next,i.previousValue=i.currentValue,i.currentValue=null,i._prev=null,i._next=null}return this._changesTail&&(this._changesTail._nextChanged=null),this._additionsTail&&(this._additionsTail._nextAdded=null),this.isDirty}_insertBeforeOrAppend(t,n){if(t){const i=t._prev;return n._next=t,n._prev=i,t._prev=n,i&&(i._next=n),t===this._mapHead&&(this._mapHead=n),this._appendAfter=t,t}return this._appendAfter?(this._appendAfter._next=n,n._prev=this._appendAfter):this._mapHead=n,this._appendAfter=n,null}_getOrCreateRecordForKey(t,n){if(this._records.has(t)){const r=this._records.get(t);this._maybeAddToChanges(r,n);const a=r._prev,d=r._next;return a&&(a._next=d),d&&(d._prev=a),r._next=null,r._prev=null,r}const i=new _w(t);return this._records.set(t,i),i.currentValue=n,this._addToAdditions(i),i}_reset(){if(this.isDirty){let t;for(this._previousMapHead=this._mapHead,t=this._previousMapHead;null!==t;t=t._next)t._nextPrevious=t._next;for(t=this._changesHead;null!==t;t=t._nextChanged)t.previousValue=t.currentValue;for(t=this._additionsHead;null!=t;t=t._nextAdded)t.previousValue=t.currentValue;this._changesHead=this._changesTail=null,this._additionsHead=this._additionsTail=null,this._removalsHead=null}}_maybeAddToChanges(t,n){Object.is(n,t.currentValue)||(t.previousValue=t.currentValue,t.currentValue=n,this._addToChanges(t))}_addToAdditions(t){null===this._additionsHead?this._additionsHead=this._additionsTail=t:(this._additionsTail._nextAdded=t,this._additionsTail=t)}_addToChanges(t){null===this._changesHead?this._changesHead=this._changesTail=t:(this._changesTail._nextChanged=t,this._changesTail=t)}_forEach(t,n){t instanceof Map?t.forEach(n):Object.keys(t).forEach(i=>n(t[i],i))}}class _w{constructor(t){this.key=t,this.previousValue=null,this.currentValue=null,this._nextPrevious=null,this._next=null,this._prev=null,this._nextAdded=null,this._nextRemoved=null,this._nextChanged=null}}function Zy(){return new du([new Gy])}let du=(()=>{class e{constructor(n){this.factories=n}static create(n,i){if(null!=i){const r=i.factories.slice();n=n.concat(r)}return new e(n)}static extend(n){return{provide:e,useFactory:i=>e.create(n,i||Zy()),deps:[[e,new us,new Ts]]}}find(n){const i=this.factories.find(r=>r.supports(n));if(null!=i)return i;throw new Error(`Cannot find a differ supporting object '${n}' of type '${function(e){return e.name||typeof e}(n)}'`)}}return e.\u0275prov=Ee({token:e,providedIn:"root",factory:Zy}),e})();function Ky(){return new hu([new Wy])}let hu=(()=>{class e{constructor(n){this.factories=n}static create(n,i){if(i){const r=i.factories.slice();n=n.concat(r)}return new e(n)}static extend(n){return{provide:e,useFactory:i=>e.create(n,i||Ky()),deps:[[e,new us,new Ts]]}}find(n){const i=this.factories.find(r=>r.supports(n));if(i)return i;throw new Error(`Cannot find a differ supporting object '${n}'`)}}return e.\u0275prov=Ee({token:e,providedIn:"root",factory:Ky}),e})();const vw=[new Wy],Cw=new du([new Gy]),Dw=new hu(vw),Ew=ky(null,"core",[{provide:Cy,useValue:"unknown"},{provide:Py,deps:[Vi]},{provide:Oy,deps:[]},{provide:Ey,deps:[]}]),Aw=[{provide:Gl,useClass:Gl,deps:[Xr,Vi,Da,Ya,Qa]},{provide:mD,deps:[Xr],useFactory:function(e){let t=[];return e.onStable.subscribe(()=>{for(;t.length;)t.pop()()}),function(n){t.push(n)}}},{provide:Qa,useClass:Qa,deps:[[new Ts,Ph]]},{provide:Vh,useClass:Vh,deps:[]},DE,{provide:du,useFactory:function(){return Cw},deps:[]},{provide:hu,useFactory:function(){return Dw},deps:[]},{provide:au,useFactory:function(e){return e||"undefined"!=typeof $localize&&$localize.locale||Kc},deps:[[new lo(au),new Ts,new us]]},{provide:wy,useValue:"USD"}];let Ow=(()=>{class e{constructor(n){}}return e.\u0275fac=function(n){return new(n||e)(Li(Gl))},e.\u0275mod=Xn({type:e}),e.\u0275inj=Ve({providers:Aw}),e})()},9010:(St,Se,M)=>{M.d(Se,{Fj:()=>Qe,NI:()=>ge,oH:()=>ke,u5:()=>O,qQ:()=>ir,Cf:()=>rt,JU:()=>ie,JJ:()=>nt,JL:()=>Ae,F:()=>pn,On:()=>Hi,YN:()=>zr,wV:()=>_i,c5:()=>sr,UX:()=>B,Q7:()=>yr,_Y:()=>zi,Kr:()=>ns});var l=M(3668),f=M(6019),Z=M(5548),o=M(5894),oe=M(8053),U=M(7879),te=M(1915);function W(w,D){return new Z.y(C=>{const L=w.length;if(0===L)return void C.complete();const tt=new Array(L);let Lt=0,un=0;for(let kn=0;kn<L;kn++){const zn=(0,te.D)(w[kn]);let vi=!1;C.add(zn.subscribe({next:nn=>{vi||(vi=!0,un++),tt[kn]=nn},error:nn=>C.error(nn),complete:()=>{Lt++,(Lt===L||!vi)&&(un===L&&C.next(D?D.reduce((nn,or,Tr)=>(nn[or]=tt[Tr],nn),{}):tt),C.complete())}}))}})}let Q=(()=>{class w{constructor(C,L){this._renderer=C,this._elementRef=L,this.onChange=tt=>{},this.onTouched=()=>{}}setProperty(C,L){this._renderer.setProperty(this._elementRef.nativeElement,C,L)}registerOnTouched(C){this.onTouched=C}registerOnChange(C){this.onChange=C}setDisabledState(C){this.setProperty("disabled",C)}}return w.\u0275fac=function(C){return new(C||w)(l.Y36(l.Qsj),l.Y36(l.SBq))},w.\u0275dir=l.lG2({type:w}),w})(),ne=(()=>{class w extends Q{}return w.\u0275fac=function(){let D;return function(L){return(D||(D=l.n5z(w)))(L||w)}}(),w.\u0275dir=l.lG2({type:w,features:[l.qOj]}),w})();const ie=new l.OlP("NgValueAccessor"),it={provide:ie,useExisting:(0,l.Gpc)(()=>Qe),multi:!0},dt=new l.OlP("CompositionEventMode");let Qe=(()=>{class w extends Q{constructor(C,L,tt){super(C,L),this._compositionMode=tt,this._composing=!1,null==this._compositionMode&&(this._compositionMode=!function(){const w=(0,f.q)()?(0,f.q)().getUserAgent():"";return/android (\d+)/.test(w.toLowerCase())}())}writeValue(C){this.setProperty("value",null==C?"":C)}_handleInput(C){(!this._compositionMode||this._compositionMode&&!this._composing)&&this.onChange(C)}_compositionStart(){this._composing=!0}_compositionEnd(C){this._composing=!1,this._compositionMode&&this.onChange(C)}}return w.\u0275fac=function(C){return new(C||w)(l.Y36(l.Qsj),l.Y36(l.SBq),l.Y36(dt,8))},w.\u0275dir=l.lG2({type:w,selectors:[["input","formControlName","",3,"type","checkbox"],["textarea","formControlName",""],["input","formControl","",3,"type","checkbox"],["textarea","formControl",""],["input","ngModel","",3,"type","checkbox"],["textarea","ngModel",""],["","ngDefaultControl",""]],hostBindings:function(C,L){1&C&&l.NdJ("input",function(Lt){return L._handleInput(Lt.target.value)})("blur",function(){return L.onTouched()})("compositionstart",function(){return L._compositionStart()})("compositionend",function(Lt){return L._compositionEnd(Lt.target.value)})},features:[l._Bn([it]),l.qOj]}),w})();function Ge(w){return null==w||0===w.length}const rt=new l.OlP("NgValidators"),Ce=new l.OlP("NgAsyncValidators");function Ft(w){return null}function Ye(w){return null!=w}function Dt(w){const D=(0,l.QGY)(w)?(0,te.D)(w):w;return(0,l.CqO)(D),D}function Rt(w){let D={};return w.forEach(C=>{D=null!=C?Wt(Wt({},D),C):D}),0===Object.keys(D).length?null:D}function Gt(w,D){return D.map(C=>C(w))}function sn(w){return w.map(D=>function(w){return!w.validate}(D)?D:C=>D.validate(C))}function vt(w){return null!=w?function(w){if(!w)return null;const D=w.filter(Ye);return 0==D.length?null:function(C){return Rt(Gt(C,D))}}(sn(w)):null}function Fe(w){return null!=w?function(w){if(!w)return null;const D=w.filter(Ye);return 0==D.length?null:function(C){return function(...w){if(1===w.length){const D=w[0];if((0,o.k)(D))return W(D,null);if((0,U.K)(D)&&Object.getPrototypeOf(D)===Object.prototype){const C=Object.keys(D);return W(C.map(L=>D[L]),C)}}if("function"==typeof w[w.length-1]){const D=w.pop();return W(w=1===w.length&&(0,o.k)(w[0])?w[0]:w,null).pipe((0,oe.U)(C=>D(...C)))}return W(w,null)}(Gt(C,D).map(Dt)).pipe((0,oe.U)(Rt))}}(sn(w)):null}function Ve(w,D){return null===w?[D]:Array.isArray(w)?[...w,D]:[w,D]}function ut(w){return w._rawValidators}function Pe(w){return w._rawAsyncValidators}function gt(w){return w?Array.isArray(w)?w:[w]:[]}function It(w,D){return Array.isArray(w)?w.includes(D):w===D}function jt(w,D){const C=gt(D);return gt(w).forEach(tt=>{It(C,tt)||C.push(tt)}),C}function tn(w,D){return gt(D).filter(C=>!It(w,C))}class Fn{constructor(){this._rawValidators=[],this._rawAsyncValidators=[],this._onDestroyCallbacks=[]}get value(){return this.control?this.control.value:null}get valid(){return this.control?this.control.valid:null}get invalid(){return this.control?this.control.invalid:null}get pending(){return this.control?this.control.pending:null}get disabled(){return this.control?this.control.disabled:null}get enabled(){return this.control?this.control.enabled:null}get errors(){return this.control?this.control.errors:null}get pristine(){return this.control?this.control.pristine:null}get dirty(){return this.control?this.control.dirty:null}get touched(){return this.control?this.control.touched:null}get status(){return this.control?this.control.status:null}get untouched(){return this.control?this.control.untouched:null}get statusChanges(){return this.control?this.control.statusChanges:null}get valueChanges(){return this.control?this.control.valueChanges:null}get path(){return null}_setValidators(D){this._rawValidators=D||[],this._composedValidatorFn=vt(this._rawValidators)}_setAsyncValidators(D){this._rawAsyncValidators=D||[],this._composedAsyncValidatorFn=Fe(this._rawAsyncValidators)}get validator(){return this._composedValidatorFn||null}get asyncValidator(){return this._composedAsyncValidatorFn||null}_registerOnDestroy(D){this._onDestroyCallbacks.push(D)}_invokeOnDestroyCallbacks(){this._onDestroyCallbacks.forEach(D=>D()),this._onDestroyCallbacks=[]}reset(D){this.control&&this.control.reset(D)}hasError(D,C){return!!this.control&&this.control.hasError(D,C)}getError(D,C){return this.control?this.control.getError(D,C):null}}class Xe extends Fn{get formDirective(){return null}get path(){return null}}class $ extends Fn{constructor(){super(...arguments),this._parent=null,this.name=null,this.valueAccessor=null}}class X{constructor(D){this._cd=D}is(D){var C,L,tt;return"submitted"===D?!!(null==(C=this._cd)?void 0:C.submitted):!!(null==(tt=null==(L=this._cd)?void 0:L.control)?void 0:tt[D])}}let nt=(()=>{class w extends X{constructor(C){super(C)}}return w.\u0275fac=function(C){return new(C||w)(l.Y36($,2))},w.\u0275dir=l.lG2({type:w,selectors:[["","formControlName",""],["","ngModel",""],["","formControl",""]],hostVars:14,hostBindings:function(C,L){2&C&&l.ekj("ng-untouched",L.is("untouched"))("ng-touched",L.is("touched"))("ng-pristine",L.is("pristine"))("ng-dirty",L.is("dirty"))("ng-valid",L.is("valid"))("ng-invalid",L.is("invalid"))("ng-pending",L.is("pending"))},features:[l.qOj]}),w})(),Ae=(()=>{class w extends X{constructor(C){super(C)}}return w.\u0275fac=function(C){return new(C||w)(l.Y36(Xe,10))},w.\u0275dir=l.lG2({type:w,selectors:[["","formGroupName",""],["","formArrayName",""],["","ngModelGroup",""],["","formGroup",""],["form",3,"ngNoForm",""],["","ngForm",""]],hostVars:16,hostBindings:function(C,L){2&C&&l.ekj("ng-untouched",L.is("untouched"))("ng-touched",L.is("touched"))("ng-pristine",L.is("pristine"))("ng-dirty",L.is("dirty"))("ng-valid",L.is("valid"))("ng-invalid",L.is("invalid"))("ng-pending",L.is("pending"))("ng-submitted",L.is("submitted"))},features:[l.qOj]}),w})();function He(w,D){Qt(w,D),D.valueAccessor.writeValue(w.value),function(w,D){D.valueAccessor.registerOnChange(C=>{w._pendingValue=C,w._pendingChange=!0,w._pendingDirty=!0,"change"===w.updateOn&&je(w,D)})}(w,D),function(w,D){const C=(L,tt)=>{D.valueAccessor.writeValue(L),tt&&D.viewToModelUpdate(L)};w.registerOnChange(C),D._registerOnDestroy(()=>{w._unregisterOnChange(C)})}(w,D),function(w,D){D.valueAccessor.registerOnTouched(()=>{w._pendingTouched=!0,"blur"===w.updateOn&&w._pendingChange&&je(w,D),"submit"!==w.updateOn&&w.markAsTouched()})}(w,D),function(w,D){if(D.valueAccessor.setDisabledState){const C=L=>{D.valueAccessor.setDisabledState(L)};w.registerOnDisabledChange(C),D._registerOnDestroy(()=>{w._unregisterOnDisabledChange(C)})}}(w,D)}function ye(w,D,C=!0){const L=()=>{};D.valueAccessor&&(D.valueAccessor.registerOnChange(L),D.valueAccessor.registerOnTouched(L)),function(w,D){let C=!1;if(null!==w){if(null!==D.validator){const tt=ut(w);if(Array.isArray(tt)&&tt.length>0){const Lt=tt.filter(un=>un!==D.validator);Lt.length!==tt.length&&(C=!0,w.setValidators(Lt))}}if(null!==D.asyncValidator){const tt=Pe(w);if(Array.isArray(tt)&&tt.length>0){const Lt=tt.filter(un=>un!==D.asyncValidator);Lt.length!==tt.length&&(C=!0,w.setAsyncValidators(Lt))}}}const L=()=>{};he(D._rawValidators,L),he(D._rawAsyncValidators,L)}(w,D),w&&(D._invokeOnDestroyCallbacks(),w._registerOnCollectionChange(()=>{}))}function he(w,D){w.forEach(C=>{C.registerOnValidatorChange&&C.registerOnValidatorChange(D)})}function Qt(w,D){const C=ut(w);null!==D.validator?w.setValidators(Ve(C,D.validator)):"function"==typeof C&&w.setValidators([C]);const L=Pe(w);null!==D.asyncValidator?w.setAsyncValidators(Ve(L,D.asyncValidator)):"function"==typeof L&&w.setAsyncValidators([L]);const tt=()=>w.updateValueAndValidity();he(D._rawValidators,tt),he(D._rawAsyncValidators,tt)}function je(w,D){w._pendingDirty&&w.markAsDirty(),w.setValue(w._pendingValue,{emitModelToViewChange:!1}),D.viewToModelUpdate(w._pendingValue),w._pendingChange=!1}function Xn(w,D){if(!w.hasOwnProperty("model"))return!1;const C=w.model;return!!C.isFirstChange()||!Object.is(D,C.currentValue)}function De(w,D){if(!D)return null;let C,L,tt;return Array.isArray(D),D.forEach(Lt=>{Lt.constructor===Qe?C=Lt:function(w){return Object.getPrototypeOf(w.constructor)===ne}(Lt)?L=Lt:tt=Lt}),tt||L||C||null}function H(w,D){const C=w.indexOf(D);C>-1&&w.splice(C,1)}const A="VALID",ee="INVALID",Oe="PENDING",lt="DISABLED";function Bt(w){return(Nn(w)?w.validators:w)||null}function gn(w){return Array.isArray(w)?vt(w):w||null}function bn(w,D){return(Nn(D)?D.asyncValidators:w)||null}function jn(w){return Array.isArray(w)?Fe(w):w||null}function Nn(w){return null!=w&&!Array.isArray(w)&&"object"==typeof w}class Me{constructor(D,C){this._hasOwnPendingAsyncValidator=!1,this._onCollectionChange=()=>{},this._parent=null,this.pristine=!0,this.touched=!1,this._onDisabledChange=[],this._rawValidators=D,this._rawAsyncValidators=C,this._composedValidatorFn=gn(this._rawValidators),this._composedAsyncValidatorFn=jn(this._rawAsyncValidators)}get validator(){return this._composedValidatorFn}set validator(D){this._rawValidators=this._composedValidatorFn=D}get asyncValidator(){return this._composedAsyncValidatorFn}set asyncValidator(D){this._rawAsyncValidators=this._composedAsyncValidatorFn=D}get parent(){return this._parent}get valid(){return this.status===A}get invalid(){return this.status===ee}get pending(){return this.status==Oe}get disabled(){return this.status===lt}get enabled(){return this.status!==lt}get dirty(){return!this.pristine}get untouched(){return!this.touched}get updateOn(){return this._updateOn?this._updateOn:this.parent?this.parent.updateOn:"change"}setValidators(D){this._rawValidators=D,this._composedValidatorFn=gn(D)}setAsyncValidators(D){this._rawAsyncValidators=D,this._composedAsyncValidatorFn=jn(D)}addValidators(D){this.setValidators(jt(D,this._rawValidators))}addAsyncValidators(D){this.setAsyncValidators(jt(D,this._rawAsyncValidators))}removeValidators(D){this.setValidators(tn(D,this._rawValidators))}removeAsyncValidators(D){this.setAsyncValidators(tn(D,this._rawAsyncValidators))}hasValidator(D){return It(this._rawValidators,D)}hasAsyncValidator(D){return It(this._rawAsyncValidators,D)}clearValidators(){this.validator=null}clearAsyncValidators(){this.asyncValidator=null}markAsTouched(D={}){this.touched=!0,this._parent&&!D.onlySelf&&this._parent.markAsTouched(D)}markAllAsTouched(){this.markAsTouched({onlySelf:!0}),this._forEachChild(D=>D.markAllAsTouched())}markAsUntouched(D={}){this.touched=!1,this._pendingTouched=!1,this._forEachChild(C=>{C.markAsUntouched({onlySelf:!0})}),this._parent&&!D.onlySelf&&this._parent._updateTouched(D)}markAsDirty(D={}){this.pristine=!1,this._parent&&!D.onlySelf&&this._parent.markAsDirty(D)}markAsPristine(D={}){this.pristine=!0,this._pendingDirty=!1,this._forEachChild(C=>{C.markAsPristine({onlySelf:!0})}),this._parent&&!D.onlySelf&&this._parent._updatePristine(D)}markAsPending(D={}){this.status=Oe,!1!==D.emitEvent&&this.statusChanges.emit(this.status),this._parent&&!D.onlySelf&&this._parent.markAsPending(D)}disable(D={}){const C=this._parentMarkedDirty(D.onlySelf);this.status=lt,this.errors=null,this._forEachChild(L=>{L.disable(hr(Wt({},D),{onlySelf:!0}))}),this._updateValue(),!1!==D.emitEvent&&(this.valueChanges.emit(this.value),this.statusChanges.emit(this.status)),this._updateAncestors(hr(Wt({},D),{skipPristineCheck:C})),this._onDisabledChange.forEach(L=>L(!0))}enable(D={}){const C=this._parentMarkedDirty(D.onlySelf);this.status=A,this._forEachChild(L=>{L.enable(hr(Wt({},D),{onlySelf:!0}))}),this.updateValueAndValidity({onlySelf:!0,emitEvent:D.emitEvent}),this._updateAncestors(hr(Wt({},D),{skipPristineCheck:C})),this._onDisabledChange.forEach(L=>L(!1))}_updateAncestors(D){this._parent&&!D.onlySelf&&(this._parent.updateValueAndValidity(D),D.skipPristineCheck||this._parent._updatePristine(),this._parent._updateTouched())}setParent(D){this._parent=D}updateValueAndValidity(D={}){this._setInitialStatus(),this._updateValue(),this.enabled&&(this._cancelExistingSubscription(),this.errors=this._runValidator(),this.status=this._calculateStatus(),(this.status===A||this.status===Oe)&&this._runAsyncValidator(D.emitEvent)),!1!==D.emitEvent&&(this.valueChanges.emit(this.value),this.statusChanges.emit(this.status)),this._parent&&!D.onlySelf&&this._parent.updateValueAndValidity(D)}_updateTreeValidity(D={emitEvent:!0}){this._forEachChild(C=>C._updateTreeValidity(D)),this.updateValueAndValidity({onlySelf:!0,emitEvent:D.emitEvent})}_setInitialStatus(){this.status=this._allControlsDisabled()?lt:A}_runValidator(){return this.validator?this.validator(this):null}_runAsyncValidator(D){if(this.asyncValidator){this.status=Oe,this._hasOwnPendingAsyncValidator=!0;const C=Dt(this.asyncValidator(this));this._asyncValidationSubscription=C.subscribe(L=>{this._hasOwnPendingAsyncValidator=!1,this.setErrors(L,{emitEvent:D})})}}_cancelExistingSubscription(){this._asyncValidationSubscription&&(this._asyncValidationSubscription.unsubscribe(),this._hasOwnPendingAsyncValidator=!1)}setErrors(D,C={}){this.errors=D,this._updateControlsErrors(!1!==C.emitEvent)}get(D){return function(w,D,C){if(null==D||(Array.isArray(D)||(D=D.split(".")),Array.isArray(D)&&0===D.length))return null;let L=w;return D.forEach(tt=>{L=L instanceof re?L.controls.hasOwnProperty(tt)?L.controls[tt]:null:L instanceof xe&&L.at(tt)||null}),L}(this,D)}getError(D,C){const L=C?this.get(C):this;return L&&L.errors?L.errors[D]:null}hasError(D,C){return!!this.getError(D,C)}get root(){let D=this;for(;D._parent;)D=D._parent;return D}_updateControlsErrors(D){this.status=this._calculateStatus(),D&&this.statusChanges.emit(this.status),this._parent&&this._parent._updateControlsErrors(D)}_initObservables(){this.valueChanges=new l.vpe,this.statusChanges=new l.vpe}_calculateStatus(){return this._allControlsDisabled()?lt:this.errors?ee:this._hasOwnPendingAsyncValidator||this._anyControlsHaveStatus(Oe)?Oe:this._anyControlsHaveStatus(ee)?ee:A}_anyControlsHaveStatus(D){return this._anyControls(C=>C.status===D)}_anyControlsDirty(){return this._anyControls(D=>D.dirty)}_anyControlsTouched(){return this._anyControls(D=>D.touched)}_updatePristine(D={}){this.pristine=!this._anyControlsDirty(),this._parent&&!D.onlySelf&&this._parent._updatePristine(D)}_updateTouched(D={}){this.touched=this._anyControlsTouched(),this._parent&&!D.onlySelf&&this._parent._updateTouched(D)}_isBoxedValue(D){return"object"==typeof D&&null!==D&&2===Object.keys(D).length&&"value"in D&&"disabled"in D}_registerOnCollectionChange(D){this._onCollectionChange=D}_setUpdateStrategy(D){Nn(D)&&null!=D.updateOn&&(this._updateOn=D.updateOn)}_parentMarkedDirty(D){return!D&&!(!this._parent||!this._parent.dirty)&&!this._parent._anyControlsDirty()}}class ge extends Me{constructor(D=null,C,L){super(Bt(C),bn(L,C)),this._onChange=[],this._applyFormState(D),this._setUpdateStrategy(C),this._initObservables(),this.updateValueAndValidity({onlySelf:!0,emitEvent:!!this.asyncValidator})}setValue(D,C={}){this.value=this._pendingValue=D,this._onChange.length&&!1!==C.emitModelToViewChange&&this._onChange.forEach(L=>L(this.value,!1!==C.emitViewToModelChange)),this.updateValueAndValidity(C)}patchValue(D,C={}){this.setValue(D,C)}reset(D=null,C={}){this._applyFormState(D),this.markAsPristine(C),this.markAsUntouched(C),this.setValue(this.value,C),this._pendingChange=!1}_updateValue(){}_anyControls(D){return!1}_allControlsDisabled(){return this.disabled}registerOnChange(D){this._onChange.push(D)}_unregisterOnChange(D){H(this._onChange,D)}registerOnDisabledChange(D){this._onDisabledChange.push(D)}_unregisterOnDisabledChange(D){H(this._onDisabledChange,D)}_forEachChild(D){}_syncPendingControls(){return!("submit"!==this.updateOn||(this._pendingDirty&&this.markAsDirty(),this._pendingTouched&&this.markAsTouched(),!this._pendingChange)||(this.setValue(this._pendingValue,{onlySelf:!0,emitModelToViewChange:!1}),0))}_applyFormState(D){this._isBoxedValue(D)?(this.value=this._pendingValue=D.value,D.disabled?this.disable({onlySelf:!0,emitEvent:!1}):this.enable({onlySelf:!0,emitEvent:!1})):this.value=this._pendingValue=D}}class re extends Me{constructor(D,C,L){super(Bt(C),bn(L,C)),this.controls=D,this._initObservables(),this._setUpdateStrategy(C),this._setUpControls(),this.updateValueAndValidity({onlySelf:!0,emitEvent:!!this.asyncValidator})}registerControl(D,C){return this.controls[D]?this.controls[D]:(this.controls[D]=C,C.setParent(this),C._registerOnCollectionChange(this._onCollectionChange),C)}addControl(D,C,L={}){this.registerControl(D,C),this.updateValueAndValidity({emitEvent:L.emitEvent}),this._onCollectionChange()}removeControl(D,C={}){this.controls[D]&&this.controls[D]._registerOnCollectionChange(()=>{}),delete this.controls[D],this.updateValueAndValidity({emitEvent:C.emitEvent}),this._onCollectionChange()}setControl(D,C,L={}){this.controls[D]&&this.controls[D]._registerOnCollectionChange(()=>{}),delete this.controls[D],C&&this.registerControl(D,C),this.updateValueAndValidity({emitEvent:L.emitEvent}),this._onCollectionChange()}contains(D){return this.controls.hasOwnProperty(D)&&this.controls[D].enabled}setValue(D,C={}){this._checkAllValuesPresent(D),Object.keys(D).forEach(L=>{this._throwIfControlMissing(L),this.controls[L].setValue(D[L],{onlySelf:!0,emitEvent:C.emitEvent})}),this.updateValueAndValidity(C)}patchValue(D,C={}){null!=D&&(Object.keys(D).forEach(L=>{this.controls[L]&&this.controls[L].patchValue(D[L],{onlySelf:!0,emitEvent:C.emitEvent})}),this.updateValueAndValidity(C))}reset(D={},C={}){this._forEachChild((L,tt)=>{L.reset(D[tt],{onlySelf:!0,emitEvent:C.emitEvent})}),this._updatePristine(C),this._updateTouched(C),this.updateValueAndValidity(C)}getRawValue(){return this._reduceChildren({},(D,C,L)=>(D[L]=C instanceof ge?C.value:C.getRawValue(),D))}_syncPendingControls(){let D=this._reduceChildren(!1,(C,L)=>!!L._syncPendingControls()||C);return D&&this.updateValueAndValidity({onlySelf:!0}),D}_throwIfControlMissing(D){if(!Object.keys(this.controls).length)throw new Error("\n There are no form controls registered with this group yet. If you're using ngModel,\n you may want to check next tick (e.g. use setTimeout).\n ");if(!this.controls[D])throw new Error(`Cannot find form control with name: ${D}.`)}_forEachChild(D){Object.keys(this.controls).forEach(C=>{const L=this.controls[C];L&&D(L,C)})}_setUpControls(){this._forEachChild(D=>{D.setParent(this),D._registerOnCollectionChange(this._onCollectionChange)})}_updateValue(){this.value=this._reduceValue()}_anyControls(D){for(const C of Object.keys(this.controls)){const L=this.controls[C];if(this.contains(C)&&D(L))return!0}return!1}_reduceValue(){return this._reduceChildren({},(D,C,L)=>((C.enabled||this.disabled)&&(D[L]=C.value),D))}_reduceChildren(D,C){let L=D;return this._forEachChild((tt,Lt)=>{L=C(L,tt,Lt)}),L}_allControlsDisabled(){for(const D of Object.keys(this.controls))if(this.controls[D].enabled)return!1;return Object.keys(this.controls).length>0||this.disabled}_checkAllValuesPresent(D){this._forEachChild((C,L)=>{if(void 0===D[L])throw new Error(`Must supply a value for form control with name: '${L}'.`)})}}class xe extends Me{constructor(D,C,L){super(Bt(C),bn(L,C)),this.controls=D,this._initObservables(),this._setUpdateStrategy(C),this._setUpControls(),this.updateValueAndValidity({onlySelf:!0,emitEvent:!!this.asyncValidator})}at(D){return this.controls[D]}push(D,C={}){this.controls.push(D),this._registerControl(D),this.updateValueAndValidity({emitEvent:C.emitEvent}),this._onCollectionChange()}insert(D,C,L={}){this.controls.splice(D,0,C),this._registerControl(C),this.updateValueAndValidity({emitEvent:L.emitEvent})}removeAt(D,C={}){this.controls[D]&&this.controls[D]._registerOnCollectionChange(()=>{}),this.controls.splice(D,1),this.updateValueAndValidity({emitEvent:C.emitEvent})}setControl(D,C,L={}){this.controls[D]&&this.controls[D]._registerOnCollectionChange(()=>{}),this.controls.splice(D,1),C&&(this.controls.splice(D,0,C),this._registerControl(C)),this.updateValueAndValidity({emitEvent:L.emitEvent}),this._onCollectionChange()}get length(){return this.controls.length}setValue(D,C={}){this._checkAllValuesPresent(D),D.forEach((L,tt)=>{this._throwIfControlMissing(tt),this.at(tt).setValue(L,{onlySelf:!0,emitEvent:C.emitEvent})}),this.updateValueAndValidity(C)}patchValue(D,C={}){null!=D&&(D.forEach((L,tt)=>{this.at(tt)&&this.at(tt).patchValue(L,{onlySelf:!0,emitEvent:C.emitEvent})}),this.updateValueAndValidity(C))}reset(D=[],C={}){this._forEachChild((L,tt)=>{L.reset(D[tt],{onlySelf:!0,emitEvent:C.emitEvent})}),this._updatePristine(C),this._updateTouched(C),this.updateValueAndValidity(C)}getRawValue(){return this.controls.map(D=>D instanceof ge?D.value:D.getRawValue())}clear(D={}){this.controls.length<1||(this._forEachChild(C=>C._registerOnCollectionChange(()=>{})),this.controls.splice(0),this.updateValueAndValidity({emitEvent:D.emitEvent}))}_syncPendingControls(){let D=this.controls.reduce((C,L)=>!!L._syncPendingControls()||C,!1);return D&&this.updateValueAndValidity({onlySelf:!0}),D}_throwIfControlMissing(D){if(!this.controls.length)throw new Error("\n There are no form controls registered with this array yet. If you're using ngModel,\n you may want to check next tick (e.g. use setTimeout).\n ");if(!this.at(D))throw new Error(`Cannot find form control at index ${D}`)}_forEachChild(D){this.controls.forEach((C,L)=>{D(C,L)})}_updateValue(){this.value=this.controls.filter(D=>D.enabled||this.disabled).map(D=>D.value)}_anyControls(D){return this.controls.some(C=>C.enabled&&D(C))}_setUpControls(){this._forEachChild(D=>this._registerControl(D))}_checkAllValuesPresent(D){this._forEachChild((C,L)=>{if(void 0===D[L])throw new Error(`Must supply a value for form control at index: ${L}.`)})}_allControlsDisabled(){for(const D of this.controls)if(D.enabled)return!1;return this.controls.length>0||this.disabled}_registerControl(D){D.setParent(this),D._registerOnCollectionChange(this._onCollectionChange)}}const Ke={provide:Xe,useExisting:(0,l.Gpc)(()=>pn)},Jt=(()=>Promise.resolve(null))();let pn=(()=>{class w extends Xe{constructor(C,L){super(),this.submitted=!1,this._directives=[],this.ngSubmit=new l.vpe,this.form=new re({},vt(C),Fe(L))}ngAfterViewInit(){this._setUpdateStrategy()}get formDirective(){return this}get control(){return this.form}get path(){return[]}get controls(){return this.form.controls}addControl(C){Jt.then(()=>{const L=this._findContainer(C.path);C.control=L.registerControl(C.name,C.control),He(C.control,C),C.control.updateValueAndValidity({emitEvent:!1}),this._directives.push(C)})}getControl(C){return this.form.get(C.path)}removeControl(C){Jt.then(()=>{const L=this._findContainer(C.path);L&&L.removeControl(C.name),H(this._directives,C)})}addFormGroup(C){Jt.then(()=>{const L=this._findContainer(C.path),tt=new re({});(function(w,D){Qt(w,D)})(tt,C),L.registerControl(C.name,tt),tt.updateValueAndValidity({emitEvent:!1})})}removeFormGroup(C){Jt.then(()=>{const L=this._findContainer(C.path);L&&L.removeControl(C.name)})}getFormGroup(C){return this.form.get(C.path)}updateModel(C,L){Jt.then(()=>{this.form.get(C.path).setValue(L)})}setValue(C){this.control.setValue(C)}onSubmit(C){return this.submitted=!0,function(w,D){w._syncPendingControls(),D.forEach(C=>{const L=C.control;"submit"===L.updateOn&&L._pendingChange&&(C.viewToModelUpdate(L._pendingValue),L._pendingChange=!1)})}(this.form,this._directives),this.ngSubmit.emit(C),!1}onReset(){this.resetForm()}resetForm(C){this.form.reset(C),this.submitted=!1}_setUpdateStrategy(){this.options&&null!=this.options.updateOn&&(this.form._updateOn=this.options.updateOn)}_findContainer(C){return C.pop(),C.length?this.form.get(C):this.form}}return w.\u0275fac=function(C){return new(C||w)(l.Y36(rt,10),l.Y36(Ce,10))},w.\u0275dir=l.lG2({type:w,selectors:[["form",3,"ngNoForm","",3,"formGroup",""],["ng-form"],["","ngForm",""]],hostBindings:function(C,L){1&C&&l.NdJ("submit",function(Lt){return L.onSubmit(Lt)})("reset",function(){return L.onReset()})},inputs:{options:["ngFormOptions","options"]},outputs:{ngSubmit:"ngSubmit"},exportAs:["ngForm"],features:[l._Bn([Ke]),l.qOj]}),w})();const Hr={provide:$,useExisting:(0,l.Gpc)(()=>Hi)},gr=(()=>Promise.resolve(null))();let Hi=(()=>{class w extends ${constructor(C,L,tt,Lt){super(),this.control=new ge,this._registered=!1,this.update=new l.vpe,this._parent=C,this._setValidators(L),this._setAsyncValidators(tt),this.valueAccessor=De(0,Lt)}ngOnChanges(C){this._checkForErrors(),this._registered||this._setUpControl(),"isDisabled"in C&&this._updateDisabled(C),Xn(C,this.viewModel)&&(this._updateValue(this.model),this.viewModel=this.model)}ngOnDestroy(){this.formDirective&&this.formDirective.removeControl(this)}get path(){return this._parent?function(w,D){return[...D.path,w]}(this.name,this._parent):[this.name]}get formDirective(){return this._parent?this._parent.formDirective:null}viewToModelUpdate(C){this.viewModel=C,this.update.emit(C)}_setUpControl(){this._setUpdateStrategy(),this._isStandalone()?this._setUpStandalone():this.formDirective.addControl(this),this._registered=!0}_setUpdateStrategy(){this.options&&null!=this.options.updateOn&&(this.control._updateOn=this.options.updateOn)}_isStandalone(){return!this._parent||!(!this.options||!this.options.standalone)}_setUpStandalone(){He(this.control,this),this.control.updateValueAndValidity({emitEvent:!1})}_checkForErrors(){this._isStandalone()||this._checkParentType(),this._checkName()}_checkParentType(){}_checkName(){this.options&&this.options.name&&(this.name=this.options.name),this._isStandalone()}_updateValue(C){gr.then(()=>{this.control.setValue(C,{emitViewToModelChange:!1})})}_updateDisabled(C){const L=C.isDisabled.currentValue,tt=""===L||L&&"false"!==L;gr.then(()=>{tt&&!this.control.disabled?this.control.disable():!tt&&this.control.disabled&&this.control.enable()})}}return w.\u0275fac=function(C){return new(C||w)(l.Y36(Xe,9),l.Y36(rt,10),l.Y36(Ce,10),l.Y36(ie,10))},w.\u0275dir=l.lG2({type:w,selectors:[["","ngModel","",3,"formControlName","",3,"formControl",""]],inputs:{name:"name",isDisabled:["disabled","isDisabled"],model:["ngModel","model"],options:["ngModelOptions","options"]},outputs:{update:"ngModelChange"},exportAs:["ngModel"],features:[l._Bn([Hr]),l.qOj,l.TTD]}),w})(),zi=(()=>{class w{}return w.\u0275fac=function(C){return new(C||w)},w.\u0275dir=l.lG2({type:w,selectors:[["form",3,"ngNoForm","",3,"ngNativeValidate",""]],hostAttrs:["novalidate",""]}),w})();const Ci={provide:ie,useExisting:(0,l.Gpc)(()=>_i),multi:!0};let _i=(()=>{class w extends ne{writeValue(C){this.setProperty("value",null==C?"":C)}registerOnChange(C){this.onChange=L=>{C(""==L?null:parseFloat(L))}}}return w.\u0275fac=function(){let D;return function(L){return(D||(D=l.n5z(w)))(L||w)}}(),w.\u0275dir=l.lG2({type:w,selectors:[["input","type","number","formControlName",""],["input","type","number","formControl",""],["input","type","number","ngModel",""]],hostBindings:function(C,L){1&C&&l.NdJ("input",function(Lt){return L.onChange(Lt.target.value)})("blur",function(){return L.onTouched()})},features:[l._Bn([Ci]),l.qOj]}),w})(),Ti=(()=>{class w{}return w.\u0275fac=function(C){return new(C||w)},w.\u0275mod=l.oAB({type:w}),w.\u0275inj=l.cJS({}),w})();const be=new l.OlP("NgModelWithFormControlWarning"),z={provide:$,useExisting:(0,l.Gpc)(()=>ke)};let ke=(()=>{class w extends ${constructor(C,L,tt,Lt){super(),this._ngModelWarningConfig=Lt,this.update=new l.vpe,this._ngModelWarningSent=!1,this._setValidators(C),this._setAsyncValidators(L),this.valueAccessor=De(0,tt)}set isDisabled(C){}ngOnChanges(C){if(this._isControlChanged(C)){const L=C.form.previousValue;L&&ye(L,this,!1),He(this.form,this),this.control.disabled&&this.valueAccessor.setDisabledState&&this.valueAccessor.setDisabledState(!0),this.form.updateValueAndValidity({emitEvent:!1})}Xn(C,this.viewModel)&&(this.form.setValue(this.model),this.viewModel=this.model)}ngOnDestroy(){this.form&&ye(this.form,this,!1)}get path(){return[]}get control(){return this.form}viewToModelUpdate(C){this.viewModel=C,this.update.emit(C)}_isControlChanged(C){return C.hasOwnProperty("form")}}return w._ngModelWarningSentOnce=!1,w.\u0275fac=function(C){return new(C||w)(l.Y36(rt,10),l.Y36(Ce,10),l.Y36(ie,10),l.Y36(be,8))},w.\u0275dir=l.lG2({type:w,selectors:[["","formControl",""]],inputs:{form:["formControl","form"],isDisabled:["disabled","isDisabled"],model:["ngModel","model"]},outputs:{update:"ngModelChange"},exportAs:["ngForm"],features:[l._Bn([z]),l.qOj,l.TTD]}),w})();const Er={provide:ie,useExisting:(0,l.Gpc)(()=>Yr),multi:!0};function es(w,D){return null==w?`${D}`:(D&&"object"==typeof D&&(D="Object"),`${w}: ${D}`.slice(0,50))}let Yr=(()=>{class w extends ne{constructor(){super(...arguments),this._optionMap=new Map,this._idCounter=0,this._compareWith=Object.is}set compareWith(C){this._compareWith=C}writeValue(C){this.value=C;const L=this._getOptionId(C);null==L&&this.setProperty("selectedIndex",-1);const tt=es(L,C);this.setProperty("value",tt)}registerOnChange(C){this.onChange=L=>{this.value=this._getOptionValue(L),C(this.value)}}_registerOption(){return(this._idCounter++).toString()}_getOptionId(C){for(const L of Array.from(this._optionMap.keys()))if(this._compareWith(this._optionMap.get(L),C))return L;return null}_getOptionValue(C){const L=function(w){return w.split(":")[0]}(C);return this._optionMap.has(L)?this._optionMap.get(L):C}}return w.\u0275fac=function(){let D;return function(L){return(D||(D=l.n5z(w)))(L||w)}}(),w.\u0275dir=l.lG2({type:w,selectors:[["select","formControlName","",3,"multiple",""],["select","formControl","",3,"multiple",""],["select","ngModel","",3,"multiple",""]],hostBindings:function(C,L){1&C&&l.NdJ("change",function(Lt){return L.onChange(Lt.target.value)})("blur",function(){return L.onTouched()})},inputs:{compareWith:"compareWith"},features:[l._Bn([Er]),l.qOj]}),w})(),zr=(()=>{class w{constructor(C,L,tt){this._element=C,this._renderer=L,this._select=tt,this._select&&(this.id=this._select._registerOption())}set ngValue(C){null!=this._select&&(this._select._optionMap.set(this.id,C),this._setElementValue(es(this.id,C)),this._select.writeValue(this._select.value))}set value(C){this._setElementValue(C),this._select&&this._select.writeValue(this._select.value)}_setElementValue(C){this._renderer.setProperty(this._element.nativeElement,"value",C)}ngOnDestroy(){this._select&&(this._select._optionMap.delete(this.id),this._select.writeValue(this._select.value))}}return w.\u0275fac=function(C){return new(C||w)(l.Y36(l.SBq),l.Y36(l.Qsj),l.Y36(Yr,9))},w.\u0275dir=l.lG2({type:w,selectors:[["option"]],inputs:{ngValue:"ngValue",value:"value"}}),w})();const _s={provide:ie,useExisting:(0,l.Gpc)(()=>qi),multi:!0};function jr(w,D){return null==w?`${D}`:("string"==typeof D&&(D=`'${D}'`),D&&"object"==typeof D&&(D="Object"),`${w}: ${D}`.slice(0,50))}let qi=(()=>{class w extends ne{constructor(){super(...arguments),this._optionMap=new Map,this._idCounter=0,this._compareWith=Object.is}set compareWith(C){this._compareWith=C}writeValue(C){let L;if(this.value=C,Array.isArray(C)){const tt=C.map(Lt=>this._getOptionId(Lt));L=(Lt,un)=>{Lt._setSelected(tt.indexOf(un.toString())>-1)}}else L=(tt,Lt)=>{tt._setSelected(!1)};this._optionMap.forEach(L)}registerOnChange(C){this.onChange=L=>{const tt=[];if(void 0!==L.selectedOptions){const Lt=L.selectedOptions;for(let un=0;un<Lt.length;un++){const kn=Lt.item(un),zn=this._getOptionValue(kn.value);tt.push(zn)}}else{const Lt=L.options;for(let un=0;un<Lt.length;un++){const kn=Lt.item(un);if(kn.selected){const zn=this._getOptionValue(kn.value);tt.push(zn)}}}this.value=tt,C(tt)}}_registerOption(C){const L=(this._idCounter++).toString();return this._optionMap.set(L,C),L}_getOptionId(C){for(const L of Array.from(this._optionMap.keys()))if(this._compareWith(this._optionMap.get(L)._value,C))return L;return null}_getOptionValue(C){const L=function(w){return w.split(":")[0]}(C);return this._optionMap.has(L)?this._optionMap.get(L)._value:C}}return w.\u0275fac=function(){let D;return function(L){return(D||(D=l.n5z(w)))(L||w)}}(),w.\u0275dir=l.lG2({type:w,selectors:[["select","multiple","","formControlName",""],["select","multiple","","formControl",""],["select","multiple","","ngModel",""]],hostBindings:function(C,L){1&C&&l.NdJ("change",function(Lt){return L.onChange(Lt.target)})("blur",function(){return L.onTouched()})},inputs:{compareWith:"compareWith"},features:[l._Bn([_s]),l.qOj]}),w})(),ns=(()=>{class w{constructor(C,L,tt){this._element=C,this._renderer=L,this._select=tt,this._select&&(this.id=this._select._registerOption(this))}set ngValue(C){null!=this._select&&(this._value=C,this._setElementValue(jr(this.id,C)),this._select.writeValue(this._select.value))}set value(C){this._select?(this._value=C,this._setElementValue(jr(this.id,C)),this._select.writeValue(this._select.value)):this._setElementValue(C)}_setElementValue(C){this._renderer.setProperty(this._element.nativeElement,"value",C)}_setSelected(C){this._renderer.setProperty(this._element.nativeElement,"selected",C)}ngOnDestroy(){this._select&&(this._select._optionMap.delete(this.id),this._select.writeValue(this._select.value))}}return w.\u0275fac=function(C){return new(C||w)(l.Y36(l.SBq),l.Y36(l.Qsj),l.Y36(qi,9))},w.\u0275dir=l.lG2({type:w,selectors:[["option"]],inputs:{ngValue:"ngValue",value:"value"}}),w})();let Oi=(()=>{class w{constructor(){this._validator=Ft}handleChanges(C){if(this.inputName in C){const L=this.normalizeInput(C[this.inputName].currentValue);this._validator=this.enabled()?this.createValidator(L):Ft,this._onChange&&this._onChange()}}validate(C){return this._validator(C)}registerOnValidatorChange(C){this._onChange=C}enabled(){return null!=this[this.inputName]}}return w.\u0275fac=function(C){return new(C||w)},w.\u0275dir=l.lG2({type:w}),w})();const ei={provide:rt,useExisting:(0,l.Gpc)(()=>ir),multi:!0};let ir=(()=>{class w extends Oi{constructor(){super(...arguments),this.inputName="min",this.normalizeInput=C=>function(w){return"number"==typeof w?w:parseFloat(w)}(C),this.createValidator=C=>function(w){return D=>{if(Ge(D.value)||Ge(w))return null;const C=parseFloat(D.value);return!isNaN(C)&&C<w?{min:{min:w,actual:D.value}}:null}}(C)}ngOnChanges(C){this.handleChanges(C)}}return w.\u0275fac=function(){let D;return function(L){return(D||(D=l.n5z(w)))(L||w)}}(),w.\u0275dir=l.lG2({type:w,selectors:[["input","type","number","min","","formControlName",""],["input","type","number","min","","formControl",""],["input","type","number","min","","ngModel",""]],hostVars:1,hostBindings:function(C,L){2&C&&l.uIk("min",L.enabled()?L.min:null)},inputs:{min:"min"},features:[l._Bn([ei]),l.qOj,l.TTD]}),w})();const _r={provide:rt,useExisting:(0,l.Gpc)(()=>yr),multi:!0};let yr=(()=>{class w{constructor(){this._required=!1}get required(){return this._required}set required(C){this._required=null!=C&&!1!==C&&"false"!=`${C}`,this._onChange&&this._onChange()}validate(C){return this.required?function(w){return Ge(w.value)?{required:!0}:null}(C):null}registerOnValidatorChange(C){this._onChange=C}}return w.\u0275fac=function(C){return new(C||w)},w.\u0275dir=l.lG2({type:w,selectors:[["","required","","formControlName","",3,"type","checkbox"],["","required","","formControl","",3,"type","checkbox"],["","required","","ngModel","",3,"type","checkbox"]],hostVars:1,hostBindings:function(C,L){2&C&&l.uIk("required",L.required?"":null)},inputs:{required:"required"},features:[l._Bn([_r])]}),w})();const vs={provide:rt,useExisting:(0,l.Gpc)(()=>sr),multi:!0};let sr=(()=>{class w{constructor(){this._validator=Ft}ngOnChanges(C){"pattern"in C&&(this._createValidator(),this._onChange&&this._onChange())}validate(C){return this._validator(C)}registerOnValidatorChange(C){this._onChange=C}_createValidator(){this._validator=function(w){if(!w)return Ft;let D,C;return"string"==typeof w?(C="","^"!==w.charAt(0)&&(C+="^"),C+=w,"$"!==w.charAt(w.length-1)&&(C+="$"),D=new RegExp(C)):(C=w.toString(),D=w),L=>{if(Ge(L.value))return null;const tt=L.value;return D.test(tt)?null:{pattern:{requiredPattern:C,actualValue:tt}}}}(this.pattern)}}return w.\u0275fac=function(C){return new(C||w)},w.\u0275dir=l.lG2({type:w,selectors:[["","pattern","","formControlName",""],["","pattern","","formControl",""],["","pattern","","ngModel",""]],hostVars:1,hostBindings:function(C,L){2&C&&l.uIk("pattern",L.pattern?L.pattern:null)},inputs:{pattern:"pattern"},features:[l._Bn([vs]),l.TTD]}),w})(),hi=(()=>{class w{}return w.\u0275fac=function(C){return new(C||w)},w.\u0275mod=l.oAB({type:w}),w.\u0275inj=l.cJS({imports:[[Ti]]}),w})(),O=(()=>{class w{}return w.\u0275fac=function(C){return new(C||w)},w.\u0275mod=l.oAB({type:w}),w.\u0275inj=l.cJS({imports:[hi]}),w})(),B=(()=>{class w{static withConfig(C){return{ngModule:w,providers:[{provide:be,useValue:C.warnOnNgModelWithFormControl}]}}}return w.\u0275fac=function(C){return new(C||w)},w.\u0275mod=l.oAB({type:w}),w.\u0275inj=l.cJS({imports:[hi]}),w})()},8076:(St,Se,M)=>{M.d(Se,{XC:()=>Qt,Bb:()=>Xn,ZL:()=>ri});var l=M(7497),f=M(348),Z=M(928),o=M(3668),oe=M(6731),U=M(1346),te=M(3405),G=M(5476),W=M(8526),Q=M(2411),ne=M(9506),ie=M(6019),Ne=M(7219),qe=M(7226),it=M(8290),Le=M(1628),dt=M(5711),Qe=M(9010);M(9814);const Ae=new o.OlP("MatFormField");var Be=M(6636),ct=M(9204),At=M(8735),Ct=M(8053),mt=M(1366),an=M(2187);const Tn=["panel"];function Pn(Tt,$t){if(1&Tt&&(o.TgZ(0,"div",0,1),o.Hsn(2),o.qZA()),2&Tt){const De=$t.id,H=o.oxw();o.Q6J("id",H.id)("ngClass",H._classList),o.uIk("aria-label",H.ariaLabel||null)("aria-labelledby",H._getPanelAriaLabelledby(De))}}const hn=["*"];let Vn=0;class vn{constructor($t,De){this.source=$t,this.option=De}}const He=(0,oe.Kr)(class{}),ye=new o.OlP("mat-autocomplete-default-options",{providedIn:"root",factory:function(){return{autoActiveFirstOption:!1}}});let Je=(()=>{class Tt extends He{constructor(De,H,K,A){super(),this._changeDetectorRef=De,this._elementRef=H,this._activeOptionChanges=U.w.EMPTY,this.showPanel=!1,this._isOpen=!1,this.displayWith=null,this.optionSelected=new o.vpe,this.opened=new o.vpe,this.closed=new o.vpe,this.optionActivated=new o.vpe,this._classList={},this.id="mat-autocomplete-"+Vn++,this.inertGroups=(null==A?void 0:A.SAFARI)||!1,this._autoActiveFirstOption=!!K.autoActiveFirstOption}get isOpen(){return this._isOpen&&this.showPanel}get autoActiveFirstOption(){return this._autoActiveFirstOption}set autoActiveFirstOption(De){this._autoActiveFirstOption=(0,f.Ig)(De)}set classList(De){this._classList=De&&De.length?(0,f.du)(De).reduce((H,K)=>(H[K]=!0,H),{}):{},this._setVisibilityClasses(this._classList),this._elementRef.nativeElement.className=""}ngAfterContentInit(){this._keyManager=new l.s1(this.options).withWrap(),this._activeOptionChanges=this._keyManager.change.subscribe(De=>{this.isOpen&&this.optionActivated.emit({source:this,option:this.options.toArray()[De]||null})}),this._setVisibility()}ngOnDestroy(){this._activeOptionChanges.unsubscribe()}_setScrollTop(De){this.panel&&(this.panel.nativeElement.scrollTop=De)}_getScrollTop(){return this.panel?this.panel.nativeElement.scrollTop:0}_setVisibility(){this.showPanel=!!this.options.length,this._setVisibilityClasses(this._classList),this._changeDetectorRef.markForCheck()}_emitSelectEvent(De){const H=new vn(this,De);this.optionSelected.emit(H)}_getPanelAriaLabelledby(De){return this.ariaLabel?null:this.ariaLabelledby?(De?De+" ":"")+this.ariaLabelledby:De}_setVisibilityClasses(De){De[this._visibleClass]=this.showPanel,De[this._hiddenClass]=!this.showPanel}}return Tt.\u0275fac=function(De){return new(De||Tt)(o.Y36(o.sBO),o.Y36(o.SBq),o.Y36(ye),o.Y36(Z.t4))},Tt.\u0275dir=o.lG2({type:Tt,viewQuery:function(De,H){if(1&De&&(o.Gf(o.Rgc,7),o.Gf(Tn,5)),2&De){let K;o.iGM(K=o.CRH())&&(H.template=K.first),o.iGM(K=o.CRH())&&(H.panel=K.first)}},inputs:{ariaLabel:["aria-label","ariaLabel"],ariaLabelledby:["aria-labelledby","ariaLabelledby"],displayWith:"displayWith",autoActiveFirstOption:"autoActiveFirstOption",panelWidth:"panelWidth",classList:["class","classList"]},outputs:{optionSelected:"optionSelected",opened:"opened",closed:"closed",optionActivated:"optionActivated"},features:[o.qOj]}),Tt})(),Qt=(()=>{class Tt extends Je{constructor(){super(...arguments),this._visibleClass="mat-autocomplete-visible",this._hiddenClass="mat-autocomplete-hidden"}}return Tt.\u0275fac=function(){let $t;return function(H){return($t||($t=o.n5z(Tt)))(H||Tt)}}(),Tt.\u0275cmp=o.Xpm({type:Tt,selectors:[["mat-autocomplete"]],contentQueries:function(De,H,K){if(1&De&&(o.Suo(K,oe.K7,5),o.Suo(K,oe.ey,5)),2&De){let A;o.iGM(A=o.CRH())&&(H.optionGroups=A),o.iGM(A=o.CRH())&&(H.options=A)}},hostAttrs:[1,"mat-autocomplete"],inputs:{disableRipple:"disableRipple"},exportAs:["matAutocomplete"],features:[o._Bn([{provide:oe.HF,useExisting:Tt}]),o.qOj],ngContentSelectors:hn,decls:1,vars:0,consts:[["role","listbox",1,"mat-autocomplete-panel",3,"id","ngClass"],["panel",""]],template:function(De,H){1&De&&(o.F$t(),o.YNc(0,Pn,3,4,"ng-template"))},directives:[ie.mk],styles:[".mat-autocomplete-panel{min-width:112px;max-width:280px;overflow:auto;-webkit-overflow-scrolling:touch;visibility:hidden;max-width:none;max-height:256px;position:relative;width:100%;border-bottom-left-radius:4px;border-bottom-right-radius:4px}.mat-autocomplete-panel.mat-autocomplete-visible{visibility:visible}.mat-autocomplete-panel.mat-autocomplete-hidden{visibility:hidden}.mat-autocomplete-panel-above .mat-autocomplete-panel{border-radius:0;border-top-left-radius:4px;border-top-right-radius:4px}.mat-autocomplete-panel .mat-divider-horizontal{margin-top:-1px}.cdk-high-contrast-active .mat-autocomplete-panel{outline:solid 1px}mat-autocomplete{display:none}\n"],encapsulation:2,changeDetection:0}),Tt})();const ae=new o.OlP("mat-autocomplete-scroll-strategy"),st={provide:ae,deps:[Ne.aV],useFactory:function(Tt){return()=>Tt.scrollStrategies.reposition()}},kt={provide:Qe.JU,useExisting:(0,o.Gpc)(()=>ri),multi:!0};let $n=(()=>{class Tt{constructor(De,H,K,A,ee,Oe,lt,Ze,Bt,gn,bn){this._element=De,this._overlay=H,this._viewContainerRef=K,this._zone=A,this._changeDetectorRef=ee,this._dir=lt,this._formField=Ze,this._document=Bt,this._viewportRuler=gn,this._defaults=bn,this._componentDestroyed=!1,this._autocompleteDisabled=!1,this._manuallyFloatingLabel=!1,this._viewportSubscription=U.w.EMPTY,this._canOpenOnNextFocus=!0,this._closeKeyEventStream=new te.xQ,this._windowBlurHandler=()=>{this._canOpenOnNextFocus=this._document.activeElement!==this._element.nativeElement||this.panelOpen},this._onChange=()=>{},this._onTouched=()=>{},this.position="auto",this.autocompleteAttribute="off",this._overlayAttached=!1,this.optionSelections=(0,G.P)(()=>this.autocomplete&&this.autocomplete.options?(0,W.T)(...this.autocomplete.options.map(jn=>jn.onSelectionChange)):this._zone.onStable.pipe((0,Be.q)(1),(0,ct.w)(()=>this.optionSelections))),this._scrollStrategy=Oe}get autocompleteDisabled(){return this._autocompleteDisabled}set autocompleteDisabled(De){this._autocompleteDisabled=(0,f.Ig)(De)}ngAfterViewInit(){const De=this._getWindow();void 0!==De&&this._zone.runOutsideAngular(()=>De.addEventListener("blur",this._windowBlurHandler))}ngOnChanges(De){De.position&&this._positionStrategy&&(this._setStrategyPositions(this._positionStrategy),this.panelOpen&&this._overlayRef.updatePosition())}ngOnDestroy(){const De=this._getWindow();void 0!==De&&De.removeEventListener("blur",this._windowBlurHandler),this._viewportSubscription.unsubscribe(),this._componentDestroyed=!0,this._destroyPanel(),this._closeKeyEventStream.complete()}get panelOpen(){return this._overlayAttached&&this.autocomplete.showPanel}openPanel(){this._attachOverlay(),this._floatLabel()}closePanel(){this._resetLabel(),this._overlayAttached&&(this.panelOpen&&this.autocomplete.closed.emit(),this.autocomplete._isOpen=this._overlayAttached=!1,this._overlayRef&&this._overlayRef.hasAttached()&&(this._overlayRef.detach(),this._closingActionsSubscription.unsubscribe()),this._componentDestroyed||this._changeDetectorRef.detectChanges())}updatePosition(){this._overlayAttached&&this._overlayRef.updatePosition()}get panelClosingActions(){return(0,W.T)(this.optionSelections,this.autocomplete._keyManager.tabOut.pipe((0,At.h)(()=>this._overlayAttached)),this._closeKeyEventStream,this._getOutsideClickStream(),this._overlayRef?this._overlayRef.detachments().pipe((0,At.h)(()=>this._overlayAttached)):(0,Q.of)()).pipe((0,Ct.U)(De=>De instanceof oe.rN?De:null))}get activeOption(){return this.autocomplete&&this.autocomplete._keyManager?this.autocomplete._keyManager.activeItem:null}_getOutsideClickStream(){return(0,W.T)((0,ne.R)(this._document,"click"),(0,ne.R)(this._document,"auxclick"),(0,ne.R)(this._document,"touchend")).pipe((0,At.h)(De=>{const H=(0,Z.sA)(De),K=this._formField?this._formField._elementRef.nativeElement:null,A=this.connectedTo?this.connectedTo.elementRef.nativeElement:null;return this._overlayAttached&&H!==this._element.nativeElement&&(!K||!K.contains(H))&&(!A||!A.contains(H))&&!!this._overlayRef&&!this._overlayRef.overlayElement.contains(H)}))}writeValue(De){Promise.resolve(null).then(()=>this._setTriggerValue(De))}registerOnChange(De){this._onChange=De}registerOnTouched(De){this._onTouched=De}setDisabledState(De){this._element.nativeElement.disabled=De}_handleKeydown(De){const H=De.keyCode;if(H===Le.hY&&!(0,Le.Vb)(De)&&De.preventDefault(),this.activeOption&&H===Le.K5&&this.panelOpen)this.activeOption._selectViaInteraction(),this._resetActiveItem(),De.preventDefault();else if(this.autocomplete){const K=this.autocomplete._keyManager.activeItem,A=H===Le.LH||H===Le.JH;this.panelOpen||H===Le.Mf?this.autocomplete._keyManager.onKeydown(De):A&&this._canOpen()&&this.openPanel(),(A||this.autocomplete._keyManager.activeItem!==K)&&this._scrollToOption(this.autocomplete._keyManager.activeItemIndex||0)}}_handleInput(De){let H=De.target,K=H.value;"number"===H.type&&(K=""==K?null:parseFloat(K)),this._previousValue!==K&&(this._previousValue=K,this._onChange(K),this._canOpen()&&this._document.activeElement===De.target&&this.openPanel())}_handleFocus(){this._canOpenOnNextFocus?this._canOpen()&&(this._previousValue=this._element.nativeElement.value,this._attachOverlay(),this._floatLabel(!0)):this._canOpenOnNextFocus=!0}_floatLabel(De=!1){this._formField&&"auto"===this._formField.floatLabel&&(De?this._formField._animateAndLockLabel():this._formField.floatLabel="always",this._manuallyFloatingLabel=!0)}_resetLabel(){this._manuallyFloatingLabel&&(this._formField.floatLabel="auto",this._manuallyFloatingLabel=!1)}_subscribeToClosingActions(){const De=this._zone.onStable.pipe((0,Be.q)(1)),H=this.autocomplete.options.changes.pipe((0,mt.b)(()=>this._positionStrategy.reapplyLastPosition()),(0,an.g)(0));return(0,W.T)(De,H).pipe((0,ct.w)(()=>{const K=this.panelOpen;return this._resetActiveItem(),this.autocomplete._setVisibility(),this.panelOpen&&(this._overlayRef.updatePosition(),K!==this.panelOpen&&this.autocomplete.opened.emit()),this.panelClosingActions}),(0,Be.q)(1)).subscribe(K=>this._setValueAndClose(K))}_destroyPanel(){this._overlayRef&&(this.closePanel(),this._overlayRef.dispose(),this._overlayRef=null)}_setTriggerValue(De){const H=this.autocomplete&&this.autocomplete.displayWith?this.autocomplete.displayWith(De):De,K=null!=H?H:"";this._formField?this._formField._control.value=K:this._element.nativeElement.value=K,this._previousValue=K}_setValueAndClose(De){De&&De.source&&(this._clearPreviousSelectedOption(De.source),this._setTriggerValue(De.source.value),this._onChange(De.source.value),this._element.nativeElement.focus(),this.autocomplete._emitSelectEvent(De.source)),this.closePanel()}_clearPreviousSelectedOption(De){this.autocomplete.options.forEach(H=>{H!==De&&H.selected&&H.deselect()})}_attachOverlay(){var K;let De=this._overlayRef;De?(this._positionStrategy.setOrigin(this._getConnectedElement()),De.updateSize({width:this._getPanelWidth()})):(this._portal=new dt.UE(this.autocomplete.template,this._viewContainerRef,{id:null==(K=this._formField)?void 0:K.getLabelId()}),De=this._overlay.create(this._getOverlayConfig()),this._overlayRef=De,De.keydownEvents().subscribe(A=>{(A.keyCode===Le.hY&&!(0,Le.Vb)(A)||A.keyCode===Le.LH&&(0,Le.Vb)(A,"altKey"))&&(this._closeKeyEventStream.next(),this._resetActiveItem(),A.stopPropagation(),A.preventDefault())}),this._viewportSubscription=this._viewportRuler.change().subscribe(()=>{this.panelOpen&&De&&De.updateSize({width:this._getPanelWidth()})})),De&&!De.hasAttached()&&(De.attach(this._portal),this._closingActionsSubscription=this._subscribeToClosingActions());const H=this.panelOpen;this.autocomplete._setVisibility(),this.autocomplete._isOpen=this._overlayAttached=!0,this.panelOpen&&H!==this.panelOpen&&this.autocomplete.opened.emit()}_getOverlayConfig(){var De;return new Ne.X_({positionStrategy:this._getOverlayPosition(),scrollStrategy:this._scrollStrategy(),width:this._getPanelWidth(),direction:this._dir,panelClass:null==(De=this._defaults)?void 0:De.overlayPanelClass})}_getOverlayPosition(){const De=this._overlay.position().flexibleConnectedTo(this._getConnectedElement()).withFlexibleDimensions(!1).withPush(!1);return this._setStrategyPositions(De),this._positionStrategy=De,De}_setStrategyPositions(De){const H=[{originX:"start",originY:"bottom",overlayX:"start",overlayY:"top"},{originX:"end",originY:"bottom",overlayX:"end",overlayY:"top"}],K=this._aboveClass,A=[{originX:"start",originY:"top",overlayX:"start",overlayY:"bottom",panelClass:K},{originX:"end",originY:"top",overlayX:"end",overlayY:"bottom",panelClass:K}];let ee;ee="above"===this.position?A:"below"===this.position?H:[...H,...A],De.withPositions(ee)}_getConnectedElement(){return this.connectedTo?this.connectedTo.elementRef:this._formField?this._formField.getConnectedOverlayOrigin():this._element}_getPanelWidth(){return this.autocomplete.panelWidth||this._getHostWidth()}_getHostWidth(){return this._getConnectedElement().nativeElement.getBoundingClientRect().width}_resetActiveItem(){const De=this.autocomplete;De.autoActiveFirstOption?De._keyManager.setFirstItemActive():De._keyManager.setActiveItem(-1)}_canOpen(){const De=this._element.nativeElement;return!De.readOnly&&!De.disabled&&!this._autocompleteDisabled}_getWindow(){var De;return(null==(De=this._document)?void 0:De.defaultView)||window}_scrollToOption(De){const H=this.autocomplete,K=(0,oe.CB)(De,H.options,H.optionGroups);if(0===De&&1===K)H._setScrollTop(0);else if(H.panel){const A=H.options.toArray()[De];if(A){const ee=A._getHostElement(),Oe=(0,oe.jH)(ee.offsetTop,ee.offsetHeight,H._getScrollTop(),H.panel.nativeElement.offsetHeight);H._setScrollTop(Oe)}}}}return Tt.\u0275fac=function(De){return new(De||Tt)(o.Y36(o.SBq),o.Y36(Ne.aV),o.Y36(o.s_b),o.Y36(o.R0b),o.Y36(o.sBO),o.Y36(ae),o.Y36(it.Is,8),o.Y36(Ae,9),o.Y36(ie.K0,8),o.Y36(qe.rL),o.Y36(ye,8))},Tt.\u0275dir=o.lG2({type:Tt,inputs:{autocomplete:["matAutocomplete","autocomplete"],position:["matAutocompletePosition","position"],connectedTo:["matAutocompleteConnectedTo","connectedTo"],autocompleteAttribute:["autocomplete","autocompleteAttribute"],autocompleteDisabled:["matAutocompleteDisabled","autocompleteDisabled"]},features:[o.TTD]}),Tt})(),ri=(()=>{class Tt extends $n{constructor(){super(...arguments),this._aboveClass="mat-autocomplete-panel-above"}}return Tt.\u0275fac=function(){let $t;return function(H){return($t||($t=o.n5z(Tt)))(H||Tt)}}(),Tt.\u0275dir=o.lG2({type:Tt,selectors:[["input","matAutocomplete",""],["textarea","matAutocomplete",""]],hostAttrs:[1,"mat-autocomplete-trigger"],hostVars:7,hostBindings:function(De,H){1&De&&o.NdJ("focusin",function(){return H._handleFocus()})("blur",function(){return H._onTouched()})("input",function(A){return H._handleInput(A)})("keydown",function(A){return H._handleKeydown(A)}),2&De&&o.uIk("autocomplete",H.autocompleteAttribute)("role",H.autocompleteDisabled?null:"combobox")("aria-autocomplete",H.autocompleteDisabled?null:"list")("aria-activedescendant",H.panelOpen&&H.activeOption?H.activeOption.id:null)("aria-expanded",H.autocompleteDisabled?null:H.panelOpen.toString())("aria-owns",H.autocompleteDisabled||!H.panelOpen||null==H.autocomplete?null:H.autocomplete.id)("aria-haspopup",!H.autocompleteDisabled)},exportAs:["matAutocompleteTrigger"],features:[o._Bn([kt]),o.qOj]}),Tt})(),Xn=(()=>{class Tt{}return Tt.\u0275fac=function(De){return new(De||Tt)},Tt.\u0275mod=o.oAB({type:Tt}),Tt.\u0275inj=o.cJS({providers:[st],imports:[[Ne.U8,oe.Ng,oe.BQ,ie.ez],qe.ZD,oe.Ng,oe.BQ]}),Tt})()},6731:(St,Se,M)=>{M.d(Se,{K7:()=>At,HF:()=>le,BQ:()=>Ce,ey:()=>Pn,Ng:()=>vn,rN:()=>an,CB:()=>hn,jH:()=>Vn,Kr:()=>wt});var l=M(3668),f=M(7497),Z=M(8290);const o=new l.GfV("13.0.2");var oe=M(6019),U=M(928),te=M(348),G=M(3405),W=M(9555),Q=M(1628);function Ne(He,ye){if(1&He&&l._UZ(0,"mat-pseudo-checkbox",4),2&He){const he=l.oxw();l.Q6J("state",he.selected?"checked":"unchecked")("disabled",he.disabled)}}function qe(He,ye){if(1&He&&(l.TgZ(0,"span",5),l._uU(1),l.qZA()),2&He){const he=l.oxw();l.xp6(1),l.hij("(",he.group.label,")")}}const it=["*"],Ge=new l.GfV("13.0.2"),rt=new l.OlP("mat-sanity-checks",{providedIn:"root",factory:function(){return!0}});let Ce=(()=>{class He{constructor(he,Je,Qt){this._hasDoneGlobalChecks=!1,this._document=Qt,he._applyBodyHighContrastModeCssClasses(),this._sanityChecks=Je,this._hasDoneGlobalChecks||(this._checkDoctypeIsDefined(),this._checkThemeIsPresent(),this._checkCdkVersionMatch(),this._hasDoneGlobalChecks=!0)}_checkIsEnabled(he){return!(!(0,l.X6Q)()||(0,U.Oy)())&&("boolean"==typeof this._sanityChecks?this._sanityChecks:!!this._sanityChecks[he])}_checkDoctypeIsDefined(){this._checkIsEnabled("doctype")&&!this._document.doctype&&console.warn("Current document does not have a doctype. This may cause some Angular Material components not to behave as expected.")}_checkThemeIsPresent(){if(!this._checkIsEnabled("theme")||!this._document.body||"function"!=typeof getComputedStyle)return;const he=this._document.createElement("div");he.classList.add("mat-theme-loaded-marker"),this._document.body.appendChild(he);const Je=getComputedStyle(he);Je&&"none"!==Je.display&&console.warn("Could not find Angular Material core theme. Most Material components may not work as expected. For more info refer to the theming guide: https://material.angular.io/guide/theming"),he.remove()}_checkCdkVersionMatch(){this._checkIsEnabled("version")&&Ge.full!==o.full&&console.warn("The Angular Material version ("+Ge.full+") does not match the Angular CDK version ("+o.full+").\nPlease ensure the versions of these two packages exactly match.")}}return He.\u0275fac=function(he){return new(he||He)(l.LFG(f.qm),l.LFG(rt,8),l.LFG(oe.K0))},He.\u0275mod=l.oAB({type:He}),He.\u0275inj=l.cJS({imports:[[Z.vT],Z.vT]}),He})();function wt(He){return class extends He{constructor(...ye){super(...ye),this._disableRipple=!1}get disableRipple(){return this._disableRipple}set disableRipple(ye){this._disableRipple=(0,te.Ig)(ye)}}}class ut{constructor(ye,he,Je){this._renderer=ye,this.element=he,this.config=Je,this.state=3}fadeOut(){this._renderer.fadeOutRipple(this)}}const Pe={enterDuration:225,exitDuration:150},It=(0,U.i$)({passive:!0}),jt=["mousedown","touchstart"],tn=["mouseup","mouseleave","touchend","touchcancel"];class Fn{constructor(ye,he,Je,Qt){this._target=ye,this._ngZone=he,this._isPointerDown=!1,this._activeRipples=new Set,this._pointerUpEventsRegistered=!1,Qt.isBrowser&&(this._containerElement=(0,te.fI)(Je))}fadeInRipple(ye,he,Je={}){const Qt=this._containerRect=this._containerRect||this._containerElement.getBoundingClientRect(),ze=Wt(Wt({},Pe),Je.animation);Je.centered&&(ye=Qt.left+Qt.width/2,he=Qt.top+Qt.height/2);const fe=Je.radius||function(He,ye,he){const Je=Math.max(Math.abs(He-he.left),Math.abs(He-he.right)),Qt=Math.max(Math.abs(ye-he.top),Math.abs(ye-he.bottom));return Math.sqrt(Je*Je+Qt*Qt)}(ye,he,Qt),ae=ye-Qt.left,je=he-Qt.top,st=ze.enterDuration,kt=document.createElement("div");kt.classList.add("mat-ripple-element"),kt.style.left=ae-fe+"px",kt.style.top=je-fe+"px",kt.style.height=2*fe+"px",kt.style.width=2*fe+"px",null!=Je.color&&(kt.style.backgroundColor=Je.color),kt.style.transitionDuration=`${st}ms`,this._containerElement.appendChild(kt),window.getComputedStyle(kt).getPropertyValue("opacity"),kt.style.transform="scale(1)";const fn=new ut(this,kt,Je);return fn.state=0,this._activeRipples.add(fn),Je.persistent||(this._mostRecentTransientRipple=fn),this._runTimeoutOutsideZone(()=>{const $n=fn===this._mostRecentTransientRipple;fn.state=1,!Je.persistent&&(!$n||!this._isPointerDown)&&fn.fadeOut()},st),fn}fadeOutRipple(ye){const he=this._activeRipples.delete(ye);if(ye===this._mostRecentTransientRipple&&(this._mostRecentTransientRipple=null),this._activeRipples.size||(this._containerRect=null),!he)return;const Je=ye.element,Qt=Wt(Wt({},Pe),ye.config.animation);Je.style.transitionDuration=`${Qt.exitDuration}ms`,Je.style.opacity="0",ye.state=2,this._runTimeoutOutsideZone(()=>{ye.state=3,Je.remove()},Qt.exitDuration)}fadeOutAll(){this._activeRipples.forEach(ye=>ye.fadeOut())}fadeOutAllNonPersistent(){this._activeRipples.forEach(ye=>{ye.config.persistent||ye.fadeOut()})}setupTriggerEvents(ye){const he=(0,te.fI)(ye);!he||he===this._triggerElement||(this._removeTriggerEvents(),this._triggerElement=he,this._registerEvents(jt))}handleEvent(ye){"mousedown"===ye.type?this._onMousedown(ye):"touchstart"===ye.type?this._onTouchStart(ye):this._onPointerUp(),this._pointerUpEventsRegistered||(this._registerEvents(tn),this._pointerUpEventsRegistered=!0)}_onMousedown(ye){const he=(0,f.X6)(ye),Je=this._lastTouchStartEvent&&Date.now()<this._lastTouchStartEvent+800;!this._target.rippleDisabled&&!he&&!Je&&(this._isPointerDown=!0,this.fadeInRipple(ye.clientX,ye.clientY,this._target.rippleConfig))}_onTouchStart(ye){if(!this._target.rippleDisabled&&!(0,f.yG)(ye)){this._lastTouchStartEvent=Date.now(),this._isPointerDown=!0;const he=ye.changedTouches;for(let Je=0;Je<he.length;Je++)this.fadeInRipple(he[Je].clientX,he[Je].clientY,this._target.rippleConfig)}}_onPointerUp(){!this._isPointerDown||(this._isPointerDown=!1,this._activeRipples.forEach(ye=>{!ye.config.persistent&&(1===ye.state||ye.config.terminateOnPointerUp&&0===ye.state)&&ye.fadeOut()}))}_runTimeoutOutsideZone(ye,he=0){this._ngZone.runOutsideAngular(()=>setTimeout(ye,he))}_registerEvents(ye){this._ngZone.runOutsideAngular(()=>{ye.forEach(he=>{this._triggerElement.addEventListener(he,this,It)})})}_removeTriggerEvents(){this._triggerElement&&(jt.forEach(ye=>{this._triggerElement.removeEventListener(ye,this,It)}),this._pointerUpEventsRegistered&&tn.forEach(ye=>{this._triggerElement.removeEventListener(ye,this,It)}))}}const X=new l.OlP("mat-ripple-global-options");let Te=(()=>{class He{constructor(he,Je,Qt,ze,fe){this._elementRef=he,this._animationMode=fe,this.radius=0,this._disabled=!1,this._isInitialized=!1,this._globalOptions=ze||{},this._rippleRenderer=new Fn(this,Je,he,Qt)}get disabled(){return this._disabled}set disabled(he){he&&this.fadeOutAllNonPersistent(),this._disabled=he,this._setupTriggerEventsIfEnabled()}get trigger(){return this._trigger||this._elementRef.nativeElement}set trigger(he){this._trigger=he,this._setupTriggerEventsIfEnabled()}ngOnInit(){this._isInitialized=!0,this._setupTriggerEventsIfEnabled()}ngOnDestroy(){this._rippleRenderer._removeTriggerEvents()}fadeOutAll(){this._rippleRenderer.fadeOutAll()}fadeOutAllNonPersistent(){this._rippleRenderer.fadeOutAllNonPersistent()}get rippleConfig(){return{centered:this.centered,radius:this.radius,color:this.color,animation:Wt(Wt(Wt({},this._globalOptions.animation),"NoopAnimations"===this._animationMode?{enterDuration:0,exitDuration:0}:{}),this.animation),terminateOnPointerUp:this._globalOptions.terminateOnPointerUp}}get rippleDisabled(){return this.disabled||!!this._globalOptions.disabled}_setupTriggerEventsIfEnabled(){!this.disabled&&this._isInitialized&&this._rippleRenderer.setupTriggerEvents(this.trigger)}launch(he,Je=0,Qt){return"number"==typeof he?this._rippleRenderer.fadeInRipple(he,Je,Wt(Wt({},this.rippleConfig),Qt)):this._rippleRenderer.fadeInRipple(0,0,Wt(Wt({},this.rippleConfig),he))}}return He.\u0275fac=function(he){return new(he||He)(l.Y36(l.SBq),l.Y36(l.R0b),l.Y36(U.t4),l.Y36(X,8),l.Y36(W.Qb,8))},He.\u0275dir=l.lG2({type:He,selectors:[["","mat-ripple",""],["","matRipple",""]],hostAttrs:[1,"mat-ripple"],hostVars:2,hostBindings:function(he,Je){2&he&&l.ekj("mat-ripple-unbounded",Je.unbounded)},inputs:{color:["matRippleColor","color"],unbounded:["matRippleUnbounded","unbounded"],centered:["matRippleCentered","centered"],radius:["matRippleRadius","radius"],animation:["matRippleAnimation","animation"],disabled:["matRippleDisabled","disabled"],trigger:["matRippleTrigger","trigger"]},exportAs:["matRipple"]}),He})(),et=(()=>{class He{}return He.\u0275fac=function(he){return new(he||He)},He.\u0275mod=l.oAB({type:He}),He.\u0275inj=l.cJS({imports:[[Ce,U.ud],Ce]}),He})(),nt=(()=>{class He{constructor(he){this._animationMode=he,this.state="unchecked",this.disabled=!1}}return He.\u0275fac=function(he){return new(he||He)(l.Y36(W.Qb,8))},He.\u0275cmp=l.Xpm({type:He,selectors:[["mat-pseudo-checkbox"]],hostAttrs:[1,"mat-pseudo-checkbox"],hostVars:8,hostBindings:function(he,Je){2&he&&l.ekj("mat-pseudo-checkbox-indeterminate","indeterminate"===Je.state)("mat-pseudo-checkbox-checked","checked"===Je.state)("mat-pseudo-checkbox-disabled",Je.disabled)("_mat-animation-noopable","NoopAnimations"===Je._animationMode)},inputs:{state:"state",disabled:"disabled"},decls:0,vars:0,template:function(he,Je){},styles:['.mat-pseudo-checkbox{width:16px;height:16px;border:2px solid;border-radius:2px;cursor:pointer;display:inline-block;vertical-align:middle;box-sizing:border-box;position:relative;flex-shrink:0;transition:border-color 90ms cubic-bezier(0, 0, 0.2, 0.1),background-color 90ms cubic-bezier(0, 0, 0.2, 0.1)}.mat-pseudo-checkbox::after{position:absolute;opacity:0;content:"";border-bottom:2px solid currentColor;transition:opacity 90ms cubic-bezier(0, 0, 0.2, 0.1)}.mat-pseudo-checkbox.mat-pseudo-checkbox-checked,.mat-pseudo-checkbox.mat-pseudo-checkbox-indeterminate{border-color:transparent}._mat-animation-noopable.mat-pseudo-checkbox{transition:none;animation:none}._mat-animation-noopable.mat-pseudo-checkbox::after{transition:none}.mat-pseudo-checkbox-disabled{cursor:default}.mat-pseudo-checkbox-indeterminate::after{top:5px;left:1px;width:10px;opacity:1;border-radius:2px}.mat-pseudo-checkbox-checked::after{top:2.4px;left:1px;width:8px;height:3px;border-left:2px solid currentColor;transform:rotate(-45deg);opacity:1;box-sizing:content-box}\n'],encapsulation:2,changeDetection:0}),He})(),Ae=(()=>{class He{}return He.\u0275fac=function(he){return new(he||He)},He.\u0275mod=l.oAB({type:He}),He.\u0275inj=l.cJS({imports:[[Ce]]}),He})();const le=new l.OlP("MAT_OPTION_PARENT_COMPONENT"),At=new l.OlP("MatOptgroup");let mt=0;class an{constructor(ye,he=!1){this.source=ye,this.isUserInput=he}}let Tn=(()=>{class He{constructor(he,Je,Qt,ze){this._element=he,this._changeDetectorRef=Je,this._parent=Qt,this.group=ze,this._selected=!1,this._active=!1,this._disabled=!1,this._mostRecentViewValue="",this.id="mat-option-"+mt++,this.onSelectionChange=new l.vpe,this._stateChanges=new G.xQ}get multiple(){return this._parent&&this._parent.multiple}get selected(){return this._selected}get disabled(){return this.group&&this.group.disabled||this._disabled}set disabled(he){this._disabled=(0,te.Ig)(he)}get disableRipple(){return this._parent&&this._parent.disableRipple}get active(){return this._active}get viewValue(){return(this._getHostElement().textContent||"").trim()}select(){this._selected||(this._selected=!0,this._changeDetectorRef.markForCheck(),this._emitSelectionChangeEvent())}deselect(){this._selected&&(this._selected=!1,this._changeDetectorRef.markForCheck(),this._emitSelectionChangeEvent())}focus(he,Je){const Qt=this._getHostElement();"function"==typeof Qt.focus&&Qt.focus(Je)}setActiveStyles(){this._active||(this._active=!0,this._changeDetectorRef.markForCheck())}setInactiveStyles(){this._active&&(this._active=!1,this._changeDetectorRef.markForCheck())}getLabel(){return this.viewValue}_handleKeydown(he){(he.keyCode===Q.K5||he.keyCode===Q.L_)&&!(0,Q.Vb)(he)&&(this._selectViaInteraction(),he.preventDefault())}_selectViaInteraction(){this.disabled||(this._selected=!this.multiple||!this._selected,this._changeDetectorRef.markForCheck(),this._emitSelectionChangeEvent(!0))}_getAriaSelected(){return this.selected||!this.multiple&&null}_getTabIndex(){return this.disabled?"-1":"0"}_getHostElement(){return this._element.nativeElement}ngAfterViewChecked(){if(this._selected){const he=this.viewValue;he!==this._mostRecentViewValue&&(this._mostRecentViewValue=he,this._stateChanges.next())}}ngOnDestroy(){this._stateChanges.complete()}_emitSelectionChangeEvent(he=!1){this.onSelectionChange.emit(new an(this,he))}}return He.\u0275fac=function(he){l.$Z()},He.\u0275dir=l.lG2({type:He,inputs:{value:"value",id:"id",disabled:"disabled"},outputs:{onSelectionChange:"onSelectionChange"}}),He})(),Pn=(()=>{class He extends Tn{constructor(he,Je,Qt,ze){super(he,Je,Qt,ze)}}return He.\u0275fac=function(he){return new(he||He)(l.Y36(l.SBq),l.Y36(l.sBO),l.Y36(le,8),l.Y36(At,8))},He.\u0275cmp=l.Xpm({type:He,selectors:[["mat-option"]],hostAttrs:["role","option",1,"mat-option","mat-focus-indicator"],hostVars:12,hostBindings:function(he,Je){1&he&&l.NdJ("click",function(){return Je._selectViaInteraction()})("keydown",function(ze){return Je._handleKeydown(ze)}),2&he&&(l.Ikx("id",Je.id),l.uIk("tabindex",Je._getTabIndex())("aria-selected",Je._getAriaSelected())("aria-disabled",Je.disabled.toString()),l.ekj("mat-selected",Je.selected)("mat-option-multiple",Je.multiple)("mat-active",Je.active)("mat-option-disabled",Je.disabled))},exportAs:["matOption"],features:[l.qOj],ngContentSelectors:it,decls:5,vars:4,consts:[["class","mat-option-pseudo-checkbox",3,"state","disabled",4,"ngIf"],[1,"mat-option-text"],["class","cdk-visually-hidden",4,"ngIf"],["mat-ripple","",1,"mat-option-ripple",3,"matRippleTrigger","matRippleDisabled"],[1,"mat-option-pseudo-checkbox",3,"state","disabled"],[1,"cdk-visually-hidden"]],template:function(he,Je){1&he&&(l.F$t(),l.YNc(0,Ne,1,2,"mat-pseudo-checkbox",0),l.TgZ(1,"span",1),l.Hsn(2),l.qZA(),l.YNc(3,qe,2,1,"span",2),l._UZ(4,"div",3)),2&he&&(l.Q6J("ngIf",Je.multiple),l.xp6(3),l.Q6J("ngIf",Je.group&&Je.group._inert),l.xp6(1),l.Q6J("matRippleTrigger",Je._getHostElement())("matRippleDisabled",Je.disabled||Je.disableRipple))},directives:[oe.O5,Te,nt],styles:[".mat-option{white-space:nowrap;overflow:hidden;text-overflow:ellipsis;display:block;line-height:48px;height:48px;padding:0 16px;text-align:left;text-decoration:none;max-width:100%;position:relative;cursor:pointer;outline:none;display:flex;flex-direction:row;max-width:100%;box-sizing:border-box;align-items:center;-webkit-tap-highlight-color:transparent}.mat-option[disabled]{cursor:default}[dir=rtl] .mat-option{text-align:right}.mat-option .mat-icon{margin-right:16px;vertical-align:middle}.mat-option .mat-icon svg{vertical-align:top}[dir=rtl] .mat-option .mat-icon{margin-left:16px;margin-right:0}.mat-option[aria-disabled=true]{-webkit-user-select:none;-moz-user-select:none;user-select:none;cursor:default}.mat-optgroup .mat-option:not(.mat-option-multiple){padding-left:32px}[dir=rtl] .mat-optgroup .mat-option:not(.mat-option-multiple){padding-left:16px;padding-right:32px}.cdk-high-contrast-active .mat-option{margin:0 1px}.cdk-high-contrast-active .mat-option.mat-active{border:solid 1px currentColor;margin:0}.cdk-high-contrast-active .mat-option[aria-disabled=true]{opacity:.5}.mat-option-text{display:inline-block;flex-grow:1;overflow:hidden;text-overflow:ellipsis}.mat-option .mat-option-ripple{top:0;left:0;right:0;bottom:0;position:absolute;pointer-events:none}.mat-option-pseudo-checkbox{margin-right:8px}[dir=rtl] .mat-option-pseudo-checkbox{margin-left:8px;margin-right:0}\n"],encapsulation:2,changeDetection:0}),He})();function hn(He,ye,he){if(he.length){let Je=ye.toArray(),Qt=he.toArray(),ze=0;for(let fe=0;fe<He+1;fe++)Je[fe].group&&Je[fe].group===Qt[ze]&&ze++;return ze}return 0}function Vn(He,ye,he,Je){return He<he?He:He+ye>he+Je?Math.max(0,He-Je+ye):he}let vn=(()=>{class He{}return He.\u0275fac=function(he){return new(he||He)},He.\u0275mod=l.oAB({type:He}),He.\u0275inj=l.cJS({imports:[[et,oe.ez,Ce,Ae]]}),He})()},5304:(St,Se,M)=>{M.d(Se,{WI:()=>Kt,uw:()=>Dt,H8:()=>vt,xY:()=>We,Is:()=>Fe,so:()=>xt,uh:()=>sn});var l=M(7219),f=M(5711),Z=M(3668),o=M(6731),oe=M(8290),U=M(6019),te=M(3405),G=M(5476),W=M(1346),Q=M(2411),ne=M(8735),ie=M(6636),Ne=M(1125),qe=M(7497),it=M(928),Le=M(9814),dt=M(1628),Qe=M(9555);function Ge(Ve,ut){}class Nt{constructor(){this.role="dialog",this.panelClass="",this.hasBackdrop=!0,this.backdropClass="",this.disableClose=!1,this.width="",this.height="",this.maxWidth="80vw",this.data=null,this.ariaDescribedBy=null,this.ariaLabelledBy=null,this.ariaLabel=null,this.autoFocus="first-tabbable",this.restoreFocus=!0,this.closeOnNavigation=!0}}const rt={dialogContainer:(0,Le.X$)("dialogContainer",[(0,Le.SB)("void, exit",(0,Le.oB)({opacity:0,transform:"scale(0.7)"})),(0,Le.SB)("enter",(0,Le.oB)({transform:"none"})),(0,Le.eR)("* => enter",(0,Le.jt)("150ms cubic-bezier(0, 0, 0.2, 1)",(0,Le.oB)({transform:"none",opacity:1}))),(0,Le.eR)("* => void, * => exit",(0,Le.jt)("75ms cubic-bezier(0.4, 0.0, 0.2, 1)",(0,Le.oB)({opacity:0})))])};let ht=(()=>{class Ve extends f.en{constructor(Pe,gt,It,jt,tn,Fn,Xe,$){super(),this._elementRef=Pe,this._focusTrapFactory=gt,this._changeDetectorRef=It,this._config=tn,this._interactivityChecker=Fn,this._ngZone=Xe,this._focusMonitor=$,this._animationStateChanged=new Z.vpe,this._elementFocusedBeforeDialogWasOpened=null,this._closeInteractionType=null,this.attachDomPortal=X=>(this._portalOutlet.hasAttached(),this._portalOutlet.attachDomPortal(X)),this._ariaLabelledBy=tn.ariaLabelledBy||null,this._document=jt}_initializeWithAttachedContent(){this._setupFocusTrap(),this._capturePreviouslyFocusedElement()}attachComponentPortal(Pe){return this._portalOutlet.hasAttached(),this._portalOutlet.attachComponentPortal(Pe)}attachTemplatePortal(Pe){return this._portalOutlet.hasAttached(),this._portalOutlet.attachTemplatePortal(Pe)}_recaptureFocus(){this._containsFocus()||this._trapFocus()}_forceFocus(Pe,gt){this._interactivityChecker.isFocusable(Pe)||(Pe.tabIndex=-1,this._ngZone.runOutsideAngular(()=>{Pe.addEventListener("blur",()=>Pe.removeAttribute("tabindex")),Pe.addEventListener("mousedown",()=>Pe.removeAttribute("tabindex"))})),Pe.focus(gt)}_focusByCssSelector(Pe,gt){let It=this._elementRef.nativeElement.querySelector(Pe);It&&this._forceFocus(It,gt)}_trapFocus(){const Pe=this._elementRef.nativeElement;switch(this._config.autoFocus){case!1:case"dialog":this._containsFocus()||Pe.focus();break;case!0:case"first-tabbable":this._focusTrap.focusInitialElementWhenReady().then(gt=>{gt||this._focusDialogContainer()});break;case"first-heading":this._focusByCssSelector('h1, h2, h3, h4, h5, h6, [role="heading"]');break;default:this._focusByCssSelector(this._config.autoFocus)}}_restoreFocus(){const Pe=this._elementFocusedBeforeDialogWasOpened;if(this._config.restoreFocus&&Pe&&"function"==typeof Pe.focus){const gt=(0,it.ht)(),It=this._elementRef.nativeElement;(!gt||gt===this._document.body||gt===It||It.contains(gt))&&(this._focusMonitor?(this._focusMonitor.focusVia(Pe,this._closeInteractionType),this._closeInteractionType=null):Pe.focus())}this._focusTrap&&this._focusTrap.destroy()}_setupFocusTrap(){this._focusTrap=this._focusTrapFactory.create(this._elementRef.nativeElement)}_capturePreviouslyFocusedElement(){this._document&&(this._elementFocusedBeforeDialogWasOpened=(0,it.ht)())}_focusDialogContainer(){this._elementRef.nativeElement.focus&&this._elementRef.nativeElement.focus()}_containsFocus(){const Pe=this._elementRef.nativeElement,gt=(0,it.ht)();return Pe===gt||Pe.contains(gt)}}return Ve.\u0275fac=function(Pe){return new(Pe||Ve)(Z.Y36(Z.SBq),Z.Y36(qe.qV),Z.Y36(Z.sBO),Z.Y36(U.K0,8),Z.Y36(Nt),Z.Y36(qe.ic),Z.Y36(Z.R0b),Z.Y36(qe.tE))},Ve.\u0275dir=Z.lG2({type:Ve,viewQuery:function(Pe,gt){if(1&Pe&&Z.Gf(f.Pl,7),2&Pe){let It;Z.iGM(It=Z.CRH())&&(gt._portalOutlet=It.first)}},features:[Z.qOj]}),Ve})(),at=(()=>{class Ve extends ht{constructor(){super(...arguments),this._state="enter"}_onAnimationDone({toState:Pe,totalTime:gt}){"enter"===Pe?(this._trapFocus(),this._animationStateChanged.next({state:"opened",totalTime:gt})):"exit"===Pe&&(this._restoreFocus(),this._animationStateChanged.next({state:"closed",totalTime:gt}))}_onAnimationStart({toState:Pe,totalTime:gt}){"enter"===Pe?this._animationStateChanged.next({state:"opening",totalTime:gt}):("exit"===Pe||"void"===Pe)&&this._animationStateChanged.next({state:"closing",totalTime:gt})}_startExitAnimation(){this._state="exit",this._changeDetectorRef.markForCheck()}}return Ve.\u0275fac=function(){let ut;return function(gt){return(ut||(ut=Z.n5z(Ve)))(gt||Ve)}}(),Ve.\u0275cmp=Z.Xpm({type:Ve,selectors:[["mat-dialog-container"]],hostAttrs:["tabindex","-1","aria-modal","true",1,"mat-dialog-container"],hostVars:6,hostBindings:function(Pe,gt){1&Pe&&Z.WFA("@dialogContainer.start",function(jt){return gt._onAnimationStart(jt)})("@dialogContainer.done",function(jt){return gt._onAnimationDone(jt)}),2&Pe&&(Z.Ikx("id",gt._id),Z.uIk("role",gt._config.role)("aria-labelledby",gt._config.ariaLabel?null:gt._ariaLabelledBy)("aria-label",gt._config.ariaLabel)("aria-describedby",gt._config.ariaDescribedBy||null),Z.d8E("@dialogContainer",gt._state))},features:[Z.qOj],decls:1,vars:0,consts:[["cdkPortalOutlet",""]],template:function(Pe,gt){1&Pe&&Z.YNc(0,Ge,0,0,"ng-template",0)},directives:[f.Pl],styles:[".mat-dialog-container{display:block;padding:24px;border-radius:4px;box-sizing:border-box;overflow:auto;outline:0;width:100%;height:100%;min-height:inherit;max-height:inherit}.cdk-high-contrast-active .mat-dialog-container{outline:solid 1px}.mat-dialog-content{display:block;margin:0 -24px;padding:0 24px;max-height:65vh;overflow:auto;-webkit-overflow-scrolling:touch}.mat-dialog-title{margin:0 0 20px;display:block}.mat-dialog-actions{padding:8px 0;display:flex;flex-wrap:wrap;min-height:52px;align-items:center;box-sizing:content-box;margin-bottom:-24px}.mat-dialog-actions[align=end]{justify-content:flex-end}.mat-dialog-actions[align=center]{justify-content:center}.mat-dialog-actions .mat-button-base+.mat-button-base,.mat-dialog-actions .mat-mdc-button-base+.mat-mdc-button-base{margin-left:8px}[dir=rtl] .mat-dialog-actions .mat-button-base+.mat-button-base,[dir=rtl] .mat-dialog-actions .mat-mdc-button-base+.mat-mdc-button-base{margin-left:0;margin-right:8px}\n"],encapsulation:2,data:{animation:[rt.dialogContainer]}}),Ve})(),wt=0;class xt{constructor(ut,Pe,gt="mat-dialog-"+wt++){this._overlayRef=ut,this._containerInstance=Pe,this.id=gt,this.disableClose=this._containerInstance._config.disableClose,this._afterOpened=new te.xQ,this._afterClosed=new te.xQ,this._beforeClosed=new te.xQ,this._state=0,Pe._id=gt,Pe._animationStateChanged.pipe((0,ne.h)(It=>"opened"===It.state),(0,ie.q)(1)).subscribe(()=>{this._afterOpened.next(),this._afterOpened.complete()}),Pe._animationStateChanged.pipe((0,ne.h)(It=>"closed"===It.state),(0,ie.q)(1)).subscribe(()=>{clearTimeout(this._closeFallbackTimeout),this._finishDialogClose()}),ut.detachments().subscribe(()=>{this._beforeClosed.next(this._result),this._beforeClosed.complete(),this._afterClosed.next(this._result),this._afterClosed.complete(),this.componentInstance=null,this._overlayRef.dispose()}),ut.keydownEvents().pipe((0,ne.h)(It=>It.keyCode===dt.hY&&!this.disableClose&&!(0,dt.Vb)(It))).subscribe(It=>{It.preventDefault(),Yt(this,"keyboard")}),ut.backdropClick().subscribe(()=>{this.disableClose?this._containerInstance._recaptureFocus():Yt(this,"mouse")})}close(ut){this._result=ut,this._containerInstance._animationStateChanged.pipe((0,ne.h)(Pe=>"closing"===Pe.state),(0,ie.q)(1)).subscribe(Pe=>{this._beforeClosed.next(ut),this._beforeClosed.complete(),this._overlayRef.detachBackdrop(),this._closeFallbackTimeout=setTimeout(()=>this._finishDialogClose(),Pe.totalTime+100)}),this._state=1,this._containerInstance._startExitAnimation()}afterOpened(){return this._afterOpened}afterClosed(){return this._afterClosed}beforeClosed(){return this._beforeClosed}backdropClick(){return this._overlayRef.backdropClick()}keydownEvents(){return this._overlayRef.keydownEvents()}updatePosition(ut){let Pe=this._getPositionStrategy();return ut&&(ut.left||ut.right)?ut.left?Pe.left(ut.left):Pe.right(ut.right):Pe.centerHorizontally(),ut&&(ut.top||ut.bottom)?ut.top?Pe.top(ut.top):Pe.bottom(ut.bottom):Pe.centerVertically(),this._overlayRef.updatePosition(),this}updateSize(ut="",Pe=""){return this._overlayRef.updateSize({width:ut,height:Pe}),this._overlayRef.updatePosition(),this}addPanelClass(ut){return this._overlayRef.addPanelClass(ut),this}removePanelClass(ut){return this._overlayRef.removePanelClass(ut),this}getState(){return this._state}_finishDialogClose(){this._state=2,this._overlayRef.dispose()}_getPositionStrategy(){return this._overlayRef.getConfig().positionStrategy}}function Yt(Ve,ut,Pe){return void 0!==Ve._containerInstance&&(Ve._containerInstance._closeInteractionType=ut),Ve.close(Pe)}const Kt=new Z.OlP("MatDialogData"),Zt=new Z.OlP("mat-dialog-default-options"),Ut=new Z.OlP("mat-dialog-scroll-strategy"),Ft={provide:Ut,deps:[l.aV],useFactory:function(Ve){return()=>Ve.scrollStrategies.block()}};let Ye=(()=>{class Ve{constructor(Pe,gt,It,jt,tn,Fn,Xe,$,X,Te){this._overlay=Pe,this._injector=gt,this._defaultOptions=It,this._parentDialog=jt,this._overlayContainer=tn,this._dialogRefConstructor=Xe,this._dialogContainerType=$,this._dialogDataToken=X,this._animationMode=Te,this._openDialogsAtThisLevel=[],this._afterAllClosedAtThisLevel=new te.xQ,this._afterOpenedAtThisLevel=new te.xQ,this._ariaHiddenElements=new Map,this._dialogAnimatingOpen=!1,this.afterAllClosed=(0,G.P)(()=>this.openDialogs.length?this._getAfterAllClosed():this._getAfterAllClosed().pipe((0,Ne.O)(void 0))),this._scrollStrategy=Fn}get openDialogs(){return this._parentDialog?this._parentDialog.openDialogs:this._openDialogsAtThisLevel}get afterOpened(){return this._parentDialog?this._parentDialog.afterOpened:this._afterOpenedAtThisLevel}_getAfterAllClosed(){const Pe=this._parentDialog;return Pe?Pe._getAfterAllClosed():this._afterAllClosedAtThisLevel}open(Pe,gt){if(gt=function(Ve,ut){return Wt(Wt({},ut),Ve)}(gt,this._defaultOptions||new Nt),gt.id&&this.getDialogById(gt.id),this._dialogAnimatingOpen)return this._lastDialogRef;const It=this._createOverlay(gt),jt=this._attachDialogContainer(It,gt);if("NoopAnimations"!==this._animationMode){const Fn=jt._animationStateChanged.subscribe(Xe=>{"opening"===Xe.state&&(this._dialogAnimatingOpen=!0),"opened"===Xe.state&&(this._dialogAnimatingOpen=!1,Fn.unsubscribe())});this._animationStateSubscriptions||(this._animationStateSubscriptions=new W.w),this._animationStateSubscriptions.add(Fn)}const tn=this._attachDialogContent(Pe,jt,It,gt);return this._lastDialogRef=tn,this.openDialogs.length||this._hideNonDialogContentFromAssistiveTechnology(),this.openDialogs.push(tn),tn.afterClosed().subscribe(()=>this._removeOpenDialog(tn)),this.afterOpened.next(tn),jt._initializeWithAttachedContent(),tn}closeAll(){this._closeDialogs(this.openDialogs)}getDialogById(Pe){return this.openDialogs.find(gt=>gt.id===Pe)}ngOnDestroy(){this._closeDialogs(this._openDialogsAtThisLevel),this._afterAllClosedAtThisLevel.complete(),this._afterOpenedAtThisLevel.complete(),this._animationStateSubscriptions&&this._animationStateSubscriptions.unsubscribe()}_createOverlay(Pe){const gt=this._getOverlayConfig(Pe);return this._overlay.create(gt)}_getOverlayConfig(Pe){const gt=new l.X_({positionStrategy:this._overlay.position().global(),scrollStrategy:Pe.scrollStrategy||this._scrollStrategy(),panelClass:Pe.panelClass,hasBackdrop:Pe.hasBackdrop,direction:Pe.direction,minWidth:Pe.minWidth,minHeight:Pe.minHeight,maxWidth:Pe.maxWidth,maxHeight:Pe.maxHeight,disposeOnNavigation:Pe.closeOnNavigation});return Pe.backdropClass&&(gt.backdropClass=Pe.backdropClass),gt}_attachDialogContainer(Pe,gt){const jt=Z.zs3.create({parent:gt&>.viewContainerRef&>.viewContainerRef.injector||this._injector,providers:[{provide:Nt,useValue:gt}]}),tn=new f.C5(this._dialogContainerType,gt.viewContainerRef,jt,gt.componentFactoryResolver);return Pe.attach(tn).instance}_attachDialogContent(Pe,gt,It,jt){const tn=new this._dialogRefConstructor(It,gt,jt.id);if(Pe instanceof Z.Rgc)gt.attachTemplatePortal(new f.UE(Pe,null,{$implicit:jt.data,dialogRef:tn}));else{const Fn=this._createInjector(jt,tn,gt),Xe=gt.attachComponentPortal(new f.C5(Pe,jt.viewContainerRef,Fn));tn.componentInstance=Xe.instance}return tn.updateSize(jt.width,jt.height).updatePosition(jt.position),tn}_createInjector(Pe,gt,It){const jt=Pe&&Pe.viewContainerRef&&Pe.viewContainerRef.injector,tn=[{provide:this._dialogContainerType,useValue:It},{provide:this._dialogDataToken,useValue:Pe.data},{provide:this._dialogRefConstructor,useValue:gt}];return Pe.direction&&(!jt||!jt.get(oe.Is,null,Z.XFs.Optional))&&tn.push({provide:oe.Is,useValue:{value:Pe.direction,change:(0,Q.of)()}}),Z.zs3.create({parent:jt||this._injector,providers:tn})}_removeOpenDialog(Pe){const gt=this.openDialogs.indexOf(Pe);gt>-1&&(this.openDialogs.splice(gt,1),this.openDialogs.length||(this._ariaHiddenElements.forEach((It,jt)=>{It?jt.setAttribute("aria-hidden",It):jt.removeAttribute("aria-hidden")}),this._ariaHiddenElements.clear(),this._getAfterAllClosed().next()))}_hideNonDialogContentFromAssistiveTechnology(){const Pe=this._overlayContainer.getContainerElement();if(Pe.parentElement){const gt=Pe.parentElement.children;for(let It=gt.length-1;It>-1;It--){let jt=gt[It];jt!==Pe&&"SCRIPT"!==jt.nodeName&&"STYLE"!==jt.nodeName&&!jt.hasAttribute("aria-live")&&(this._ariaHiddenElements.set(jt,jt.getAttribute("aria-hidden")),jt.setAttribute("aria-hidden","true"))}}}_closeDialogs(Pe){let gt=Pe.length;for(;gt--;)Pe[gt].close()}}return Ve.\u0275fac=function(Pe){Z.$Z()},Ve.\u0275dir=Z.lG2({type:Ve}),Ve})(),Dt=(()=>{class Ve extends Ye{constructor(Pe,gt,It,jt,tn,Fn,Xe,$){super(Pe,gt,jt,Fn,Xe,tn,xt,at,Kt,$)}}return Ve.\u0275fac=function(Pe){return new(Pe||Ve)(Z.LFG(l.aV),Z.LFG(Z.zs3),Z.LFG(U.Ye,8),Z.LFG(Zt,8),Z.LFG(Ut),Z.LFG(Ve,12),Z.LFG(l.Xj),Z.LFG(Qe.Qb,8))},Ve.\u0275prov=Z.Yz7({token:Ve,factory:Ve.\u0275fac}),Ve})(),Gt=0,sn=(()=>{class Ve{constructor(Pe,gt,It){this._dialogRef=Pe,this._elementRef=gt,this._dialog=It,this.id="mat-dialog-title-"+Gt++}ngOnInit(){this._dialogRef||(this._dialogRef=function(Ve,ut){let Pe=Ve.nativeElement.parentElement;for(;Pe&&!Pe.classList.contains("mat-dialog-container");)Pe=Pe.parentElement;return Pe?ut.find(gt=>gt.id===Pe.id):null}(this._elementRef,this._dialog.openDialogs)),this._dialogRef&&Promise.resolve().then(()=>{const Pe=this._dialogRef._containerInstance;Pe&&!Pe._ariaLabelledBy&&(Pe._ariaLabelledBy=this.id)})}}return Ve.\u0275fac=function(Pe){return new(Pe||Ve)(Z.Y36(xt,8),Z.Y36(Z.SBq),Z.Y36(Dt))},Ve.\u0275dir=Z.lG2({type:Ve,selectors:[["","mat-dialog-title",""],["","matDialogTitle",""]],hostAttrs:[1,"mat-dialog-title"],hostVars:1,hostBindings:function(Pe,gt){2&Pe&&Z.Ikx("id",gt.id)},inputs:{id:"id"},exportAs:["matDialogTitle"]}),Ve})(),We=(()=>{class Ve{}return Ve.\u0275fac=function(Pe){return new(Pe||Ve)},Ve.\u0275dir=Z.lG2({type:Ve,selectors:[["","mat-dialog-content",""],["mat-dialog-content"],["","matDialogContent",""]],hostAttrs:[1,"mat-dialog-content"]}),Ve})(),vt=(()=>{class Ve{}return Ve.\u0275fac=function(Pe){return new(Pe||Ve)},Ve.\u0275dir=Z.lG2({type:Ve,selectors:[["","mat-dialog-actions",""],["mat-dialog-actions"],["","matDialogActions",""]],hostAttrs:[1,"mat-dialog-actions"]}),Ve})(),Fe=(()=>{class Ve{}return Ve.\u0275fac=function(Pe){return new(Pe||Ve)},Ve.\u0275mod=Z.oAB({type:Ve}),Ve.\u0275inj=Z.cJS({providers:[Dt,Ft],imports:[[l.U8,f.eL,o.BQ],o.BQ]}),Ve})()},9555:(St,Se,M)=>{M.d(Se,{Qb:()=>Et,PW:()=>Fr});var l=M(3668),f=M(5427),Z=M(9814);function o(){return"undefined"!=typeof window&&void 0!==window.document}function oe(){return"undefined"!=typeof process&&"[object process]"==={}.toString.call(process)}function U(F){switch(F.length){case 0:return new Z.ZN;case 1:return F[0];default:return new Z.ZE(F)}}function te(F,p,m,T,P={},J={}){const de=[],pe=[];let Ue=-1,_t=null;if(T.forEach(Pt=>{const Xt=Pt.offset,Sn=Xt==Ue,mn=Sn&&_t||{};Object.keys(Pt).forEach(_n=>{let wn=_n,Hn=Pt[_n];if("offset"!==_n)switch(wn=p.normalizePropertyName(wn,de),Hn){case Z.k1:Hn=P[_n];break;case Z.l3:Hn=J[_n];break;default:Hn=p.normalizeStyleValue(_n,wn,Hn,de)}mn[wn]=Hn}),Sn||pe.push(mn),_t=mn,Ue=Xt}),de.length){const Pt="\n - ";throw new Error(`Unable to animate due to the following errors:${Pt}${de.join(Pt)}`)}return pe}function G(F,p,m,T){switch(p){case"start":F.onStart(()=>T(m&&W(m,"start",F)));break;case"done":F.onDone(()=>T(m&&W(m,"done",F)));break;case"destroy":F.onDestroy(()=>T(m&&W(m,"destroy",F)))}}function W(F,p,m){const T=m.totalTime,J=Q(F.element,F.triggerName,F.fromState,F.toState,p||F.phaseName,null==T?F.totalTime:T,!!m.disabled),de=F._data;return null!=de&&(J._data=de),J}function Q(F,p,m,T,P="",J=0,de){return{element:F,triggerName:p,fromState:m,toState:T,phaseName:P,totalTime:J,disabled:!!de}}function ne(F,p,m){let T;return F instanceof Map?(T=F.get(p),T||F.set(p,T=m)):(T=F[p],T||(T=F[p]=m)),T}function ie(F){const p=F.indexOf(":");return[F.substring(1,p),F.substr(p+1)]}let Ne=(F,p)=>!1,qe=(F,p)=>!1,it=(F,p,m)=>[];const Le=oe();(Le||"undefined"!=typeof Element)&&(Ne=o()?(F,p)=>{for(;p&&p!==document.documentElement;){if(p===F)return!0;p=p.parentNode||p.host}return!1}:(F,p)=>F.contains(p),qe=(()=>{if(Le||Element.prototype.matches)return(F,p)=>F.matches(p);{const F=Element.prototype,p=F.matchesSelector||F.mozMatchesSelector||F.msMatchesSelector||F.oMatchesSelector||F.webkitMatchesSelector;return p?(m,T)=>p.apply(m,[T]):qe}})(),it=(F,p,m)=>{let T=[];if(m){const P=F.querySelectorAll(p);for(let J=0;J<P.length;J++)T.push(P[J])}else{const P=F.querySelector(p);P&&T.push(P)}return T});let Qe=null,Ge=!1;function Nt(F){Qe||(Qe=("undefined"!=typeof document?document.body:null)||{},Ge=!!Qe.style&&"WebkitAppearance"in Qe.style);let p=!0;return Qe.style&&!function(F){return"ebkit"==F.substring(1,6)}(F)&&(p=F in Qe.style,!p&&Ge&&(p="Webkit"+F.charAt(0).toUpperCase()+F.substr(1)in Qe.style)),p}const Ce=qe,ht=Ne,at=it;function wt(F){const p={};return Object.keys(F).forEach(m=>{const T=m.replace(/([a-z])([A-Z])/g,"$1-$2");p[T]=F[m]}),p}let xt=(()=>{class F{validateStyleProperty(m){return Nt(m)}matchesElement(m,T){return Ce(m,T)}containsElement(m,T){return ht(m,T)}query(m,T,P){return at(m,T,P)}computeStyle(m,T,P){return P||""}animate(m,T,P,J,de,pe=[],Ue){return new Z.ZN(P,J)}}return F.\u0275fac=function(m){return new(m||F)},F.\u0275prov=l.Yz7({token:F,factory:F.\u0275fac}),F})(),Yt=(()=>{class F{}return F.NOOP=new xt,F})();const on="ng-enter",ft="ng-leave",Dt="ng-trigger",Rt=".ng-trigger",Gt="ng-animating",zt=".ng-animating";function sn(F){if("number"==typeof F)return F;const p=F.match(/^(-?[\.\d]+)(m?s)/);return!p||p.length<2?0:We(parseFloat(p[1]),p[2])}function We(F,p){return"s"===p?1e3*F:F}function vt(F,p,m){return F.hasOwnProperty("duration")?F:function(F,p,m){let P,J=0,de="";if("string"==typeof F){const pe=F.match(/^(-?[\.\d]+)(m?s)(?:\s+(-?[\.\d]+)(m?s))?(?:\s+([-a-z]+(?:\(.+?\))?))?$/i);if(null===pe)return p.push(`The provided timing value "${F}" is invalid.`),{duration:0,delay:0,easing:""};P=We(parseFloat(pe[1]),pe[2]);const Ue=pe[3];null!=Ue&&(J=We(parseFloat(Ue),pe[4]));const _t=pe[5];_t&&(de=_t)}else P=F;if(!m){let pe=!1,Ue=p.length;P<0&&(p.push("Duration values below 0 are not allowed for this animation step."),pe=!0),J<0&&(p.push("Delay values below 0 are not allowed for this animation step."),pe=!0),pe&&p.splice(Ue,0,`The provided timing value "${F}" is invalid.`)}return{duration:P,delay:J,easing:de}}(F,p,m)}function Fe(F,p={}){return Object.keys(F).forEach(m=>{p[m]=F[m]}),p}function ut(F,p,m={}){if(p)for(let T in F)m[T]=F[T];else Fe(F,m);return m}function Pe(F,p,m){return m?p+":"+m+";":""}function gt(F){let p="";for(let m=0;m<F.style.length;m++){const T=F.style.item(m);p+=Pe(0,T,F.style.getPropertyValue(T))}for(const m in F.style)F.style.hasOwnProperty(m)&&!m.startsWith("_")&&(p+=Pe(0,Ae(m),F.style[m]));F.setAttribute("style",p)}function It(F,p,m){F.style&&(Object.keys(p).forEach(T=>{const P=nt(T);m&&!m.hasOwnProperty(T)&&(m[T]=F.style[P]),F.style[P]=p[T]}),oe()&>(F))}function jt(F,p){F.style&&(Object.keys(p).forEach(m=>{const T=nt(m);F.style[T]=""}),oe()&>(F))}function tn(F){return Array.isArray(F)?1==F.length?F[0]:(0,Z.vP)(F):F}const Xe=new RegExp("{{\\s*(.+?)\\s*}}","g");function $(F){let p=[];if("string"==typeof F){let m;for(;m=Xe.exec(F);)p.push(m[1]);Xe.lastIndex=0}return p}function X(F,p,m){const T=F.toString(),P=T.replace(Xe,(J,de)=>{let pe=p[de];return p.hasOwnProperty(de)||(m.push(`Please provide a value for the animation param ${de}`),pe=""),pe.toString()});return P==T?F:P}function Te(F){const p=[];let m=F.next();for(;!m.done;)p.push(m.value),m=F.next();return p}const et=/-+([a-z0-9])/g;function nt(F){return F.replace(et,(...p)=>p[1].toUpperCase())}function Ae(F){return F.replace(/([a-z])([A-Z])/g,"$1-$2").toLowerCase()}function le(F,p){return 0===F||0===p}function ue(F,p,m){const T=Object.keys(m);if(T.length&&p.length){let J=p[0],de=[];if(T.forEach(pe=>{J.hasOwnProperty(pe)||de.push(pe),J[pe]=m[pe]}),de.length)for(var P=1;P<p.length;P++){let pe=p[P];de.forEach(function(Ue){pe[Ue]=ct(F,Ue)})}}return p}function Be(F,p,m){switch(p.type){case 7:return F.visitTrigger(p,m);case 0:return F.visitState(p,m);case 1:return F.visitTransition(p,m);case 2:return F.visitSequence(p,m);case 3:return F.visitGroup(p,m);case 4:return F.visitAnimate(p,m);case 5:return F.visitKeyframes(p,m);case 6:return F.visitStyle(p,m);case 8:return F.visitReference(p,m);case 9:return F.visitAnimateChild(p,m);case 10:return F.visitAnimateRef(p,m);case 11:return F.visitQuery(p,m);case 12:return F.visitStagger(p,m);default:throw new Error(`Unable to resolve animation metadata node #${p.type}`)}}function ct(F,p){return window.getComputedStyle(F)[p]}function Ct(F,p){const m=[];return"string"==typeof F?F.split(/\s*,\s*/).forEach(T=>function(F,p,m){if(":"==F[0]){const Ue=function(F,p){switch(F){case":enter":return"void => *";case":leave":return"* => void";case":increment":return(m,T)=>parseFloat(T)>parseFloat(m);case":decrement":return(m,T)=>parseFloat(T)<parseFloat(m);default:return p.push(`The transition alias value "${F}" is not supported`),"* => *"}}(F,m);if("function"==typeof Ue)return void p.push(Ue);F=Ue}const T=F.match(/^(\*|[-\w]+)\s*(<?[=-]>)\s*(\*|[-\w]+)$/);if(null==T||T.length<4)return m.push(`The provided transition expression "${F}" is not supported`),p;const P=T[1],J=T[2],de=T[3];p.push(hn(P,de));"<"==J[0]&&!("*"==P&&"*"==de)&&p.push(hn(de,P))}(T,m,p)):m.push(F),m}const Tn=new Set(["true","1"]),Pn=new Set(["false","0"]);function hn(F,p){const m=Tn.has(F)||Pn.has(F),T=Tn.has(p)||Pn.has(p);return(P,J)=>{let de="*"==F||F==P,pe="*"==p||p==J;return!de&&m&&"boolean"==typeof P&&(de=P?Tn.has(F):Pn.has(F)),!pe&&T&&"boolean"==typeof J&&(pe=J?Tn.has(p):Pn.has(p)),de&&pe}}const vn=new RegExp("s*:selfs*,?","g");function He(F,p,m){return new he(F).build(p,m)}class he{constructor(p){this._driver=p}build(p,m){const T=new ze(m);return this._resetContextStyleTimingState(T),Be(this,tn(p),T)}_resetContextStyleTimingState(p){p.currentQuerySelector="",p.collectedStyles={},p.collectedStyles[""]={},p.currentTime=0}visitTrigger(p,m){let T=m.queryCount=0,P=m.depCount=0;const J=[],de=[];return"@"==p.name.charAt(0)&&m.errors.push("animation triggers cannot be prefixed with an `@` sign (e.g. trigger('@foo', [...]))"),p.definitions.forEach(pe=>{if(this._resetContextStyleTimingState(m),0==pe.type){const Ue=pe,_t=Ue.name;_t.toString().split(/\s*,\s*/).forEach(Pt=>{Ue.name=Pt,J.push(this.visitState(Ue,m))}),Ue.name=_t}else if(1==pe.type){const Ue=this.visitTransition(pe,m);T+=Ue.queryCount,P+=Ue.depCount,de.push(Ue)}else m.errors.push("only state() and transition() definitions can sit inside of a trigger()")}),{type:7,name:p.name,states:J,transitions:de,queryCount:T,depCount:P,options:null}}visitState(p,m){const T=this.visitStyle(p.styles,m),P=p.options&&p.options.params||null;if(T.containsDynamicStyles){const J=new Set,de=P||{};if(T.styles.forEach(pe=>{if(ae(pe)){const Ue=pe;Object.keys(Ue).forEach(_t=>{$(Ue[_t]).forEach(Pt=>{de.hasOwnProperty(Pt)||J.add(Pt)})})}}),J.size){const pe=Te(J.values());m.errors.push(`state("${p.name}", ...) must define default values for all the following style substitutions: ${pe.join(", ")}`)}}return{type:0,name:p.name,style:T,options:P?{params:P}:null}}visitTransition(p,m){m.queryCount=0,m.depCount=0;const T=Be(this,tn(p.animation),m);return{type:1,matchers:Ct(p.expr,m.errors),animation:T,queryCount:m.queryCount,depCount:m.depCount,options:st(p.options)}}visitSequence(p,m){return{type:2,steps:p.steps.map(T=>Be(this,T,m)),options:st(p.options)}}visitGroup(p,m){const T=m.currentTime;let P=0;const J=p.steps.map(de=>{m.currentTime=T;const pe=Be(this,de,m);return P=Math.max(P,m.currentTime),pe});return m.currentTime=P,{type:3,steps:J,options:st(p.options)}}visitAnimate(p,m){const T=function(F,p){let m=null;if(F.hasOwnProperty("duration"))m=F;else if("number"==typeof F)return kt(vt(F,p).duration,0,"");const T=F;if(T.split(/\s+/).some(J=>"{"==J.charAt(0)&&"{"==J.charAt(1))){const J=kt(0,0,"");return J.dynamic=!0,J.strValue=T,J}return m=m||vt(T,p),kt(m.duration,m.delay,m.easing)}(p.timings,m.errors);m.currentAnimateTimings=T;let P,J=p.styles?p.styles:(0,Z.oB)({});if(5==J.type)P=this.visitKeyframes(J,m);else{let de=p.styles,pe=!1;if(!de){pe=!0;const _t={};T.easing&&(_t.easing=T.easing),de=(0,Z.oB)(_t)}m.currentTime+=T.duration+T.delay;const Ue=this.visitStyle(de,m);Ue.isEmptyStep=pe,P=Ue}return m.currentAnimateTimings=null,{type:4,timings:T,style:P,options:null}}visitStyle(p,m){const T=this._makeStyleAst(p,m);return this._validateStyleAst(T,m),T}_makeStyleAst(p,m){const T=[];Array.isArray(p.styles)?p.styles.forEach(de=>{"string"==typeof de?de==Z.l3?T.push(de):m.errors.push(`The provided style string value ${de} is not allowed.`):T.push(de)}):T.push(p.styles);let P=!1,J=null;return T.forEach(de=>{if(ae(de)){const pe=de,Ue=pe.easing;if(Ue&&(J=Ue,delete pe.easing),!P)for(let _t in pe)if(pe[_t].toString().indexOf("{{")>=0){P=!0;break}}}),{type:6,styles:T,easing:J,offset:p.offset,containsDynamicStyles:P,options:null}}_validateStyleAst(p,m){const T=m.currentAnimateTimings;let P=m.currentTime,J=m.currentTime;T&&J>0&&(J-=T.duration+T.delay),p.styles.forEach(de=>{"string"!=typeof de&&Object.keys(de).forEach(pe=>{if(!this._driver.validateStyleProperty(pe))return void m.errors.push(`The provided animation property "${pe}" is not a supported CSS property for animations`);const Ue=m.collectedStyles[m.currentQuerySelector],_t=Ue[pe];let Pt=!0;_t&&(J!=P&&J>=_t.startTime&&P<=_t.endTime&&(m.errors.push(`The CSS property "${pe}" that exists between the times of "${_t.startTime}ms" and "${_t.endTime}ms" is also being animated in a parallel animation between the times of "${J}ms" and "${P}ms"`),Pt=!1),J=_t.startTime),Pt&&(Ue[pe]={startTime:J,endTime:P}),m.options&&function(F,p,m){const T=p.params||{},P=$(F);P.length&&P.forEach(J=>{T.hasOwnProperty(J)||m.push(`Unable to resolve the local animation param ${J} in the given list of values`)})}(de[pe],m.options,m.errors)})})}visitKeyframes(p,m){const T={type:5,styles:[],options:null};if(!m.currentAnimateTimings)return m.errors.push("keyframes() must be placed inside of a call to animate()"),T;let J=0;const de=[];let pe=!1,Ue=!1,_t=0;const Pt=p.steps.map(si=>{const Di=this._makeStyleAst(si,m);let Ei=null!=Di.offset?Di.offset:function(F){if("string"==typeof F)return null;let p=null;if(Array.isArray(F))F.forEach(m=>{if(ae(m)&&m.hasOwnProperty("offset")){const T=m;p=parseFloat(T.offset),delete T.offset}});else if(ae(F)&&F.hasOwnProperty("offset")){const m=F;p=parseFloat(m.offset),delete m.offset}return p}(Di.styles),ki=0;return null!=Ei&&(J++,ki=Di.offset=Ei),Ue=Ue||ki<0||ki>1,pe=pe||ki<_t,_t=ki,de.push(ki),Di});Ue&&m.errors.push("Please ensure that all keyframe offsets are between 0 and 1"),pe&&m.errors.push("Please ensure that all keyframe offsets are in order");const Xt=p.steps.length;let Sn=0;J>0&&J<Xt?m.errors.push("Not all style() steps within the declared keyframes() contain offsets"):0==J&&(Sn=1/(Xt-1));const mn=Xt-1,_n=m.currentTime,wn=m.currentAnimateTimings,Hn=wn.duration;return Pt.forEach((si,Di)=>{const Ei=Sn>0?Di==mn?1:Sn*Di:de[Di],ki=Ei*Hn;m.currentTime=_n+wn.delay+ki,wn.duration=ki,this._validateStyleAst(si,m),si.offset=Ei,T.styles.push(si)}),T}visitReference(p,m){return{type:8,animation:Be(this,tn(p.animation),m),options:st(p.options)}}visitAnimateChild(p,m){return m.depCount++,{type:9,options:st(p.options)}}visitAnimateRef(p,m){return{type:10,animation:this.visitReference(p.animation,m),options:st(p.options)}}visitQuery(p,m){const T=m.currentQuerySelector,P=p.options||{};m.queryCount++,m.currentQuery=p;const[J,de]=function(F){const p=!!F.split(/\s*,\s*/).find(m=>":self"==m);return p&&(F=F.replace(vn,"")),F=F.replace(/@\*/g,Rt).replace(/@\w+/g,m=>Rt+"-"+m.substr(1)).replace(/:animating/g,zt),[F,p]}(p.selector);m.currentQuerySelector=T.length?T+" "+J:J,ne(m.collectedStyles,m.currentQuerySelector,{});const pe=Be(this,tn(p.animation),m);return m.currentQuery=null,m.currentQuerySelector=T,{type:11,selector:J,limit:P.limit||0,optional:!!P.optional,includeSelf:de,animation:pe,originalSelector:p.selector,options:st(p.options)}}visitStagger(p,m){m.currentQuery||m.errors.push("stagger() can only be used inside of query()");const T="full"===p.timings?{duration:0,delay:0,easing:"full"}:vt(p.timings,m.errors,!0);return{type:12,animation:Be(this,tn(p.animation),m),timings:T,options:null}}}class ze{constructor(p){this.errors=p,this.queryCount=0,this.depCount=0,this.currentTransition=null,this.currentQuery=null,this.currentQuerySelector=null,this.currentAnimateTimings=null,this.currentTime=0,this.collectedStyles={},this.options=null}}function ae(F){return!Array.isArray(F)&&"object"==typeof F}function st(F){return F?(F=Fe(F)).params&&(F.params=function(F){return F?Fe(F):null}(F.params)):F={},F}function kt(F,p,m){return{duration:F,delay:p,easing:m}}function fn(F,p,m,T,P,J,de=null,pe=!1){return{type:1,element:F,keyframes:p,preStyleProps:m,postStyleProps:T,duration:P,delay:J,totalTime:P+J,easing:de,subTimeline:pe}}class $n{constructor(){this._map=new Map}consume(p){let m=this._map.get(p);return m?this._map.delete(p):m=[],m}append(p,m){let T=this._map.get(p);T||this._map.set(p,T=[]),T.push(...m)}has(p){return this._map.has(p)}clear(){this._map.clear()}}const Tt=new RegExp(":enter","g"),De=new RegExp(":leave","g");function H(F,p,m,T,P,J={},de={},pe,Ue,_t=[]){return(new K).buildKeyframes(F,p,m,T,P,J,de,pe,Ue,_t)}class K{buildKeyframes(p,m,T,P,J,de,pe,Ue,_t,Pt=[]){_t=_t||new $n;const Xt=new ee(p,m,_t,P,J,Pt,[]);Xt.options=Ue,Xt.currentTimeline.setStyles([de],null,Xt.errors,Ue),Be(this,T,Xt);const Sn=Xt.timelines.filter(mn=>mn.containsAnimation());if(Sn.length&&Object.keys(pe).length){const mn=Sn[Sn.length-1];mn.allowOnlyTimelineStyles()||mn.setStyles([pe],null,Xt.errors,Ue)}return Sn.length?Sn.map(mn=>mn.buildKeyframes()):[fn(m,[],[],[],0,0,"",!1)]}visitTrigger(p,m){}visitState(p,m){}visitTransition(p,m){}visitAnimateChild(p,m){const T=m.subInstructions.consume(m.element);if(T){const P=m.createSubContext(p.options),J=m.currentTimeline.currentTime,de=this._visitSubInstructions(T,P,P.options);J!=de&&m.transformIntoNewTimeline(de)}m.previousNode=p}visitAnimateRef(p,m){const T=m.createSubContext(p.options);T.transformIntoNewTimeline(),this.visitReference(p.animation,T),m.transformIntoNewTimeline(T.currentTimeline.currentTime),m.previousNode=p}_visitSubInstructions(p,m,T){let J=m.currentTimeline.currentTime;const de=null!=T.duration?sn(T.duration):null,pe=null!=T.delay?sn(T.delay):null;return 0!==de&&p.forEach(Ue=>{const _t=m.appendInstructionToTimeline(Ue,de,pe);J=Math.max(J,_t.duration+_t.delay)}),J}visitReference(p,m){m.updateOptions(p.options,!0),Be(this,p.animation,m),m.previousNode=p}visitSequence(p,m){const T=m.subContextCount;let P=m;const J=p.options;if(J&&(J.params||J.delay)&&(P=m.createSubContext(J),P.transformIntoNewTimeline(),null!=J.delay)){6==P.previousNode.type&&(P.currentTimeline.snapshotCurrentStyles(),P.previousNode=A);const de=sn(J.delay);P.delayNextStep(de)}p.steps.length&&(p.steps.forEach(de=>Be(this,de,P)),P.currentTimeline.applyStylesToKeyframe(),P.subContextCount>T&&P.transformIntoNewTimeline()),m.previousNode=p}visitGroup(p,m){const T=[];let P=m.currentTimeline.currentTime;const J=p.options&&p.options.delay?sn(p.options.delay):0;p.steps.forEach(de=>{const pe=m.createSubContext(p.options);J&&pe.delayNextStep(J),Be(this,de,pe),P=Math.max(P,pe.currentTimeline.currentTime),T.push(pe.currentTimeline)}),T.forEach(de=>m.currentTimeline.mergeTimelineCollectedStyles(de)),m.transformIntoNewTimeline(P),m.previousNode=p}_visitTiming(p,m){if(p.dynamic){const T=p.strValue;return vt(m.params?X(T,m.params,m.errors):T,m.errors)}return{duration:p.duration,delay:p.delay,easing:p.easing}}visitAnimate(p,m){const T=m.currentAnimateTimings=this._visitTiming(p.timings,m),P=m.currentTimeline;T.delay&&(m.incrementTime(T.delay),P.snapshotCurrentStyles());const J=p.style;5==J.type?this.visitKeyframes(J,m):(m.incrementTime(T.duration),this.visitStyle(J,m),P.applyStylesToKeyframe()),m.currentAnimateTimings=null,m.previousNode=p}visitStyle(p,m){const T=m.currentTimeline,P=m.currentAnimateTimings;!P&&T.getCurrentStyleProperties().length&&T.forwardFrame();const J=P&&P.easing||p.easing;p.isEmptyStep?T.applyEmptyStep(J):T.setStyles(p.styles,J,m.errors,m.options),m.previousNode=p}visitKeyframes(p,m){const T=m.currentAnimateTimings,P=m.currentTimeline.duration,J=T.duration,pe=m.createSubContext().currentTimeline;pe.easing=T.easing,p.styles.forEach(Ue=>{pe.forwardTime((Ue.offset||0)*J),pe.setStyles(Ue.styles,Ue.easing,m.errors,m.options),pe.applyStylesToKeyframe()}),m.currentTimeline.mergeTimelineCollectedStyles(pe),m.transformIntoNewTimeline(P+J),m.previousNode=p}visitQuery(p,m){const T=m.currentTimeline.currentTime,P=p.options||{},J=P.delay?sn(P.delay):0;J&&(6===m.previousNode.type||0==T&&m.currentTimeline.getCurrentStyleProperties().length)&&(m.currentTimeline.snapshotCurrentStyles(),m.previousNode=A);let de=T;const pe=m.invokeQuery(p.selector,p.originalSelector,p.limit,p.includeSelf,!!P.optional,m.errors);m.currentQueryTotal=pe.length;let Ue=null;pe.forEach((_t,Pt)=>{m.currentQueryIndex=Pt;const Xt=m.createSubContext(p.options,_t);J&&Xt.delayNextStep(J),_t===m.element&&(Ue=Xt.currentTimeline),Be(this,p.animation,Xt),Xt.currentTimeline.applyStylesToKeyframe(),de=Math.max(de,Xt.currentTimeline.currentTime)}),m.currentQueryIndex=0,m.currentQueryTotal=0,m.transformIntoNewTimeline(de),Ue&&(m.currentTimeline.mergeTimelineCollectedStyles(Ue),m.currentTimeline.snapshotCurrentStyles()),m.previousNode=p}visitStagger(p,m){const T=m.parentContext,P=m.currentTimeline,J=p.timings,de=Math.abs(J.duration),pe=de*(m.currentQueryTotal-1);let Ue=de*m.currentQueryIndex;switch(J.duration<0?"reverse":J.easing){case"reverse":Ue=pe-Ue;break;case"full":Ue=T.currentStaggerTime}const Pt=m.currentTimeline;Ue&&Pt.delayNextStep(Ue);const Xt=Pt.currentTime;Be(this,p.animation,m),m.previousNode=p,T.currentStaggerTime=P.currentTime-Xt+(P.startTime-T.currentTimeline.startTime)}}const A={};class ee{constructor(p,m,T,P,J,de,pe,Ue){this._driver=p,this.element=m,this.subInstructions=T,this._enterClassName=P,this._leaveClassName=J,this.errors=de,this.timelines=pe,this.parentContext=null,this.currentAnimateTimings=null,this.previousNode=A,this.subContextCount=0,this.options={},this.currentQueryIndex=0,this.currentQueryTotal=0,this.currentStaggerTime=0,this.currentTimeline=Ue||new Oe(this._driver,m,0),pe.push(this.currentTimeline)}get params(){return this.options.params}updateOptions(p,m){if(!p)return;const T=p;let P=this.options;null!=T.duration&&(P.duration=sn(T.duration)),null!=T.delay&&(P.delay=sn(T.delay));const J=T.params;if(J){let de=P.params;de||(de=this.options.params={}),Object.keys(J).forEach(pe=>{(!m||!de.hasOwnProperty(pe))&&(de[pe]=X(J[pe],de,this.errors))})}}_copyOptions(){const p={};if(this.options){const m=this.options.params;if(m){const T=p.params={};Object.keys(m).forEach(P=>{T[P]=m[P]})}}return p}createSubContext(p=null,m,T){const P=m||this.element,J=new ee(this._driver,P,this.subInstructions,this._enterClassName,this._leaveClassName,this.errors,this.timelines,this.currentTimeline.fork(P,T||0));return J.previousNode=this.previousNode,J.currentAnimateTimings=this.currentAnimateTimings,J.options=this._copyOptions(),J.updateOptions(p),J.currentQueryIndex=this.currentQueryIndex,J.currentQueryTotal=this.currentQueryTotal,J.parentContext=this,this.subContextCount++,J}transformIntoNewTimeline(p){return this.previousNode=A,this.currentTimeline=this.currentTimeline.fork(this.element,p),this.timelines.push(this.currentTimeline),this.currentTimeline}appendInstructionToTimeline(p,m,T){const P={duration:null!=m?m:p.duration,delay:this.currentTimeline.currentTime+(null!=T?T:0)+p.delay,easing:""},J=new lt(this._driver,p.element,p.keyframes,p.preStyleProps,p.postStyleProps,P,p.stretchStartingKeyframe);return this.timelines.push(J),P}incrementTime(p){this.currentTimeline.forwardTime(this.currentTimeline.duration+p)}delayNextStep(p){p>0&&this.currentTimeline.delayNextStep(p)}invokeQuery(p,m,T,P,J,de){let pe=[];if(P&&pe.push(this.element),p.length>0){p=(p=p.replace(Tt,"."+this._enterClassName)).replace(De,"."+this._leaveClassName);let _t=this._driver.query(this.element,p,1!=T);0!==T&&(_t=T<0?_t.slice(_t.length+T,_t.length):_t.slice(0,T)),pe.push(..._t)}return!J&&0==pe.length&&de.push(`\`query("${m}")\` returned zero elements. (Use \`query("${m}", { optional: true })\` if you wish to allow this.)`),pe}}class Oe{constructor(p,m,T,P){this._driver=p,this.element=m,this.startTime=T,this._elementTimelineStylesLookup=P,this.duration=0,this._previousKeyframe={},this._currentKeyframe={},this._keyframes=new Map,this._styleSummary={},this._pendingStyles={},this._backFill={},this._currentEmptyStepKeyframe=null,this._elementTimelineStylesLookup||(this._elementTimelineStylesLookup=new Map),this._localTimelineStyles=Object.create(this._backFill,{}),this._globalTimelineStyles=this._elementTimelineStylesLookup.get(m),this._globalTimelineStyles||(this._globalTimelineStyles=this._localTimelineStyles,this._elementTimelineStylesLookup.set(m,this._localTimelineStyles)),this._loadKeyframe()}containsAnimation(){switch(this._keyframes.size){case 0:return!1;case 1:return this.getCurrentStyleProperties().length>0;default:return!0}}getCurrentStyleProperties(){return Object.keys(this._currentKeyframe)}get currentTime(){return this.startTime+this.duration}delayNextStep(p){const m=1==this._keyframes.size&&Object.keys(this._pendingStyles).length;this.duration||m?(this.forwardTime(this.currentTime+p),m&&this.snapshotCurrentStyles()):this.startTime+=p}fork(p,m){return this.applyStylesToKeyframe(),new Oe(this._driver,p,m||this.currentTime,this._elementTimelineStylesLookup)}_loadKeyframe(){this._currentKeyframe&&(this._previousKeyframe=this._currentKeyframe),this._currentKeyframe=this._keyframes.get(this.duration),this._currentKeyframe||(this._currentKeyframe=Object.create(this._backFill,{}),this._keyframes.set(this.duration,this._currentKeyframe))}forwardFrame(){this.duration+=1,this._loadKeyframe()}forwardTime(p){this.applyStylesToKeyframe(),this.duration=p,this._loadKeyframe()}_updateStyle(p,m){this._localTimelineStyles[p]=m,this._globalTimelineStyles[p]=m,this._styleSummary[p]={time:this.currentTime,value:m}}allowOnlyTimelineStyles(){return this._currentEmptyStepKeyframe!==this._currentKeyframe}applyEmptyStep(p){p&&(this._previousKeyframe.easing=p),Object.keys(this._globalTimelineStyles).forEach(m=>{this._backFill[m]=this._globalTimelineStyles[m]||Z.l3,this._currentKeyframe[m]=Z.l3}),this._currentEmptyStepKeyframe=this._currentKeyframe}setStyles(p,m,T,P){m&&(this._previousKeyframe.easing=m);const J=P&&P.params||{},de=function(F,p){const m={};let T;return F.forEach(P=>{"*"===P?(T=T||Object.keys(p),T.forEach(J=>{m[J]=Z.l3})):ut(P,!1,m)}),m}(p,this._globalTimelineStyles);Object.keys(de).forEach(pe=>{const Ue=X(de[pe],J,T);this._pendingStyles[pe]=Ue,this._localTimelineStyles.hasOwnProperty(pe)||(this._backFill[pe]=this._globalTimelineStyles.hasOwnProperty(pe)?this._globalTimelineStyles[pe]:Z.l3),this._updateStyle(pe,Ue)})}applyStylesToKeyframe(){const p=this._pendingStyles,m=Object.keys(p);0!=m.length&&(this._pendingStyles={},m.forEach(T=>{this._currentKeyframe[T]=p[T]}),Object.keys(this._localTimelineStyles).forEach(T=>{this._currentKeyframe.hasOwnProperty(T)||(this._currentKeyframe[T]=this._localTimelineStyles[T])}))}snapshotCurrentStyles(){Object.keys(this._localTimelineStyles).forEach(p=>{const m=this._localTimelineStyles[p];this._pendingStyles[p]=m,this._updateStyle(p,m)})}getFinalKeyframe(){return this._keyframes.get(this.duration)}get properties(){const p=[];for(let m in this._currentKeyframe)p.push(m);return p}mergeTimelineCollectedStyles(p){Object.keys(p._styleSummary).forEach(m=>{const T=this._styleSummary[m],P=p._styleSummary[m];(!T||P.time>T.time)&&this._updateStyle(m,P.value)})}buildKeyframes(){this.applyStylesToKeyframe();const p=new Set,m=new Set,T=1===this._keyframes.size&&0===this.duration;let P=[];this._keyframes.forEach((pe,Ue)=>{const _t=ut(pe,!0);Object.keys(_t).forEach(Pt=>{const Xt=_t[Pt];Xt==Z.k1?p.add(Pt):Xt==Z.l3&&m.add(Pt)}),T||(_t.offset=Ue/this.duration),P.push(_t)});const J=p.size?Te(p.values()):[],de=m.size?Te(m.values()):[];if(T){const pe=P[0],Ue=Fe(pe);pe.offset=0,Ue.offset=1,P=[pe,Ue]}return fn(this.element,P,J,de,this.duration,this.startTime,this.easing,!1)}}class lt extends Oe{constructor(p,m,T,P,J,de,pe=!1){super(p,m,de.delay),this.keyframes=T,this.preStyleProps=P,this.postStyleProps=J,this._stretchStartingKeyframe=pe,this.timings={duration:de.duration,delay:de.delay,easing:de.easing}}containsAnimation(){return this.keyframes.length>1}buildKeyframes(){let p=this.keyframes,{delay:m,duration:T,easing:P}=this.timings;if(this._stretchStartingKeyframe&&m){const J=[],de=T+m,pe=m/de,Ue=ut(p[0],!1);Ue.offset=0,J.push(Ue);const _t=ut(p[0],!1);_t.offset=Ze(pe),J.push(_t);const Pt=p.length-1;for(let Xt=1;Xt<=Pt;Xt++){let Sn=ut(p[Xt],!1);Sn.offset=Ze((m+Sn.offset*T)/de),J.push(Sn)}T=de,m=0,P="",p=J}return fn(this.element,p,this.preStyleProps,this.postStyleProps,T,m,P,!0)}}function Ze(F,p=3){const m=Math.pow(10,p-1);return Math.round(F*m)/m}class bn{}class Nn extends bn{normalizePropertyName(p,m){return nt(p)}normalizeStyleValue(p,m,T,P){let J="";const de=T.toString().trim();if(Me[m]&&0!==T&&"0"!==T)if("number"==typeof T)J="px";else{const pe=T.match(/^[+-]?[\d\.]+([a-z]*)$/);pe&&0==pe[1].length&&P.push(`Please provide a CSS unit value for ${p}:${T}`)}return de+J}}const Me=(()=>function(F){const p={};return F.forEach(m=>p[m]=!0),p}("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".split(",")))();function re(F,p,m,T,P,J,de,pe,Ue,_t,Pt,Xt,Sn){return{type:0,element:F,triggerName:p,isRemovalTransition:P,fromState:m,fromStyles:J,toState:T,toStyles:de,timelines:pe,queriedElements:Ue,preStyleProps:_t,postStyleProps:Pt,totalTime:Xt,errors:Sn}}const xe={};class Ke{constructor(p,m,T){this._triggerName=p,this.ast=m,this._stateStyles=T}match(p,m,T,P){return function(F,p,m,T,P){return F.some(J=>J(p,m,T,P))}(this.ast.matchers,p,m,T,P)}buildStyles(p,m,T){const P=this._stateStyles["*"],J=this._stateStyles[p],de=P?P.buildStyles(m,T):{};return J?J.buildStyles(m,T):de}build(p,m,T,P,J,de,pe,Ue,_t,Pt){const Xt=[],Sn=this.ast.options&&this.ast.options.params||xe,_n=this.buildStyles(T,pe&&pe.params||xe,Xt),wn=Ue&&Ue.params||xe,Hn=this.buildStyles(P,wn,Xt),si=new Set,Di=new Map,Ei=new Map,ki="void"===P,Zr={params:Wt(Wt({},Sn),wn)},Xi=Pt?[]:H(p,m,this.ast.animation,J,de,_n,Hn,Zr,_t,Xt);let Fi=0;if(Xi.forEach(Mr=>{Fi=Math.max(Mr.duration+Mr.delay,Fi)}),Xt.length)return re(m,this._triggerName,T,P,ki,_n,Hn,[],[],Di,Ei,Fi,Xt);Xi.forEach(Mr=>{const Sr=Mr.element,ss=ne(Di,Sr,{});Mr.preStyleProps.forEach(Kr=>ss[Kr]=!0);const Cs=ne(Ei,Sr,{});Mr.postStyleProps.forEach(Kr=>Cs[Kr]=!0),Sr!==m&&si.add(Sr)});const ar=Te(si.values());return re(m,this._triggerName,T,P,ki,_n,Hn,Xi,ar,Di,Ei,Fi)}}class pn{constructor(p,m,T){this.styles=p,this.defaultParams=m,this.normalizer=T}buildStyles(p,m){const T={},P=Fe(this.defaultParams);return Object.keys(p).forEach(J=>{const de=p[J];null!=de&&(P[J]=de)}),this.styles.styles.forEach(J=>{if("string"!=typeof J){const de=J;Object.keys(de).forEach(pe=>{let Ue=de[pe];Ue.length>1&&(Ue=X(Ue,P,m));const _t=this.normalizer.normalizePropertyName(pe,m);Ue=this.normalizer.normalizeStyleValue(pe,_t,Ue,m),T[_t]=Ue})}}),T}}class oi{constructor(p,m,T){this.name=p,this.ast=m,this._normalizer=T,this.transitionFactories=[],this.states={},m.states.forEach(P=>{this.states[P.name]=new pn(P.style,P.options&&P.options.params||{},T)}),fr(this.states,"true","1"),fr(this.states,"false","0"),m.transitions.forEach(P=>{this.transitionFactories.push(new Ke(p,P,this.states))}),this.fallbackTransition=function(F,p,m){return new Ke(F,{type:1,animation:{type:2,steps:[],options:null},matchers:[(de,pe)=>!0],options:null,queryCount:0,depCount:0},p)}(p,this.states)}get containsQueries(){return this.ast.queryCount>0}matchTransition(p,m,T,P){return this.transitionFactories.find(de=>de.match(p,m,T,P))||null}matchStyles(p,m,T){return this.fallbackTransition.buildStyles(p,m,T)}}function fr(F,p,m){F.hasOwnProperty(p)?F.hasOwnProperty(m)||(F[m]=F[p]):F.hasOwnProperty(m)&&(F[p]=F[m])}const pr=new $n;class Ai{constructor(p,m,T){this.bodyNode=p,this._driver=m,this._normalizer=T,this._animations={},this._playersById={},this.players=[]}register(p,m){const T=[],P=He(this._driver,m,T);if(T.length)throw new Error(`Unable to build the animation due to the following errors: ${T.join("\n")}`);this._animations[p]=P}_buildPlayer(p,m,T){const P=p.element,J=te(0,this._normalizer,0,p.keyframes,m,T);return this._driver.animate(P,J,p.duration,p.delay,p.easing,[],!0)}create(p,m,T={}){const P=[],J=this._animations[p];let de;const pe=new Map;if(J?(de=H(this._driver,m,J,on,ft,{},{},T,pr,P),de.forEach(Pt=>{const Xt=ne(pe,Pt.element,{});Pt.postStyleProps.forEach(Sn=>Xt[Sn]=null)})):(P.push("The requested animation doesn't exist or has already been destroyed"),de=[]),P.length)throw new Error(`Unable to create the animation due to the following errors: ${P.join("\n")}`);pe.forEach((Pt,Xt)=>{Object.keys(Pt).forEach(Sn=>{Pt[Sn]=this._driver.computeStyle(Xt,Sn,Z.l3)})});const _t=U(de.map(Pt=>{const Xt=pe.get(Pt.element);return this._buildPlayer(Pt,{},Xt)}));return this._playersById[p]=_t,_t.onDestroy(()=>this.destroy(p)),this.players.push(_t),_t}destroy(p){const m=this._getPlayer(p);m.destroy(),delete this._playersById[p];const T=this.players.indexOf(m);T>=0&&this.players.splice(T,1)}_getPlayer(p){const m=this._playersById[p];if(!m)throw new Error(`Unable to find the timeline player referenced by ${p}`);return m}listen(p,m,T,P){const J=Q(m,"","","");return G(this._getPlayer(p),T,J,P),()=>{}}command(p,m,T,P){if("register"==T)return void this.register(p,P[0]);if("create"==T)return void this.create(p,m,P[0]||{});const J=this._getPlayer(p);switch(T){case"play":J.play();break;case"pause":J.pause();break;case"reset":J.reset();break;case"restart":J.restart();break;case"finish":J.finish();break;case"init":J.init();break;case"setPosition":J.setPosition(parseFloat(P[0]));break;case"destroy":this.destroy(p)}}}const Cn="ng-animate-queued",gr="ng-animate-disabled",Hi=".ng-animate-disabled",_i=[],Ii={namespaceId:"",setForRemoval:!1,setForMove:!1,hasAnimation:!1,removedBeforeQueried:!1},li={namespaceId:"",setForMove:!1,setForRemoval:!1,hasAnimation:!1,removedBeforeQueried:!0},Ti="__ng_removed";class di{constructor(p,m=""){this.namespaceId=m;const T=p&&p.hasOwnProperty("value");if(this.value=null!=(F=T?p.value:p)?F:null,T){const J=Fe(p);delete J.value,this.options=J}else this.options={};var F;this.options.params||(this.options.params={})}get params(){return this.options.params}absorbOptions(p){const m=p.params;if(m){const T=this.options.params;Object.keys(m).forEach(P=>{null==T[P]&&(T[P]=m[P])})}}}const yi="void",Ar=new di(yi);class se{constructor(p,m,T){this.id=p,this.hostElement=m,this._engine=T,this.players=[],this._triggers={},this._queue=[],this._elementListeners=new Map,this._hostClassName="ng-tns-"+p,Mi(m,this._hostClassName)}listen(p,m,T,P){if(!this._triggers.hasOwnProperty(m))throw new Error(`Unable to listen on the animation trigger event "${T}" because the animation trigger "${m}" doesn't exist!`);if(null==T||0==T.length)throw new Error(`Unable to listen on the animation trigger "${m}" because the provided event is undefined!`);if("start"!=(F=T)&&"done"!=F)throw new Error(`The provided animation trigger event "${T}" for the animation trigger "${m}" is not supported!`);var F;const J=ne(this._elementListeners,p,[]),de={name:m,phase:T,callback:P};J.push(de);const pe=ne(this._engine.statesByElement,p,{});return pe.hasOwnProperty(m)||(Mi(p,Dt),Mi(p,Dt+"-"+m),pe[m]=Ar),()=>{this._engine.afterFlush(()=>{const Ue=J.indexOf(de);Ue>=0&&J.splice(Ue,1),this._triggers[m]||delete pe[m]})}}register(p,m){return!this._triggers[p]&&(this._triggers[p]=m,!0)}_getTrigger(p){const m=this._triggers[p];if(!m)throw new Error(`The provided animation trigger "${p}" has not been registered!`);return m}trigger(p,m,T,P=!0){const J=this._getTrigger(m),de=new z(this.id,m,p);let pe=this._engine.statesByElement.get(p);pe||(Mi(p,Dt),Mi(p,Dt+"-"+m),this._engine.statesByElement.set(p,pe={}));let Ue=pe[m];const _t=new di(T,this.id);if(!(T&&T.hasOwnProperty("value"))&&Ue&&_t.absorbOptions(Ue.options),pe[m]=_t,Ue||(Ue=Ar),_t.value!==yi&&Ue.value===_t.value){if(!function(F,p){const m=Object.keys(F),T=Object.keys(p);if(m.length!=T.length)return!1;for(let P=0;P<m.length;P++){const J=m[P];if(!p.hasOwnProperty(J)||F[J]!==p[J])return!1}return!0}(Ue.params,_t.params)){const wn=[],Hn=J.matchStyles(Ue.value,Ue.params,wn),si=J.matchStyles(_t.value,_t.params,wn);wn.length?this._engine.reportError(wn):this._engine.afterFlush(()=>{jt(p,Hn),It(p,si)})}return}const Sn=ne(this._engine.playersByElement,p,[]);Sn.forEach(wn=>{wn.namespaceId==this.id&&wn.triggerName==m&&wn.queued&&wn.destroy()});let mn=J.matchTransition(Ue.value,_t.value,p,_t.params),_n=!1;if(!mn){if(!P)return;mn=J.fallbackTransition,_n=!0}return this._engine.totalQueuedPlayers++,this._queue.push({element:p,triggerName:m,transition:mn,fromState:Ue,toState:_t,player:de,isFallbackTransition:_n}),_n||(Mi(p,Cn),de.onStart(()=>{Er(p,Cn)})),de.onDone(()=>{let wn=this.players.indexOf(de);wn>=0&&this.players.splice(wn,1);const Hn=this._engine.playersByElement.get(p);if(Hn){let si=Hn.indexOf(de);si>=0&&Hn.splice(si,1)}}),this.players.push(de),Sn.push(de),de}deregister(p){delete this._triggers[p],this._engine.statesByElement.forEach((m,T)=>{delete m[p]}),this._elementListeners.forEach((m,T)=>{this._elementListeners.set(T,m.filter(P=>P.name!=p))})}clearElementCache(p){this._engine.statesByElement.delete(p),this._elementListeners.delete(p);const m=this._engine.playersByElement.get(p);m&&(m.forEach(T=>T.destroy()),this._engine.playersByElement.delete(p))}_signalRemovalForInnerTriggers(p,m){const T=this._engine.driver.query(p,Rt,!0);T.forEach(P=>{if(P[Ti])return;const J=this._engine.fetchNamespacesByElement(P);J.size?J.forEach(de=>de.triggerLeaveAnimation(P,m,!1,!0)):this.clearElementCache(P)}),this._engine.afterFlushAnimationsDone(()=>T.forEach(P=>this.clearElementCache(P)))}triggerLeaveAnimation(p,m,T,P){const J=this._engine.statesByElement.get(p);if(J){const de=[];if(Object.keys(J).forEach(pe=>{if(this._triggers[pe]){const Ue=this.trigger(p,pe,yi,P);Ue&&de.push(Ue)}}),de.length)return this._engine.markElementAsRemoved(this.id,p,!0,m),T&&U(de).onDone(()=>this._engine.processLeaveNode(p)),!0}return!1}prepareLeaveAnimationListeners(p){const m=this._elementListeners.get(p),T=this._engine.statesByElement.get(p);if(m&&T){const P=new Set;m.forEach(J=>{const de=J.name;if(P.has(de))return;P.add(de);const Ue=this._triggers[de].fallbackTransition,_t=T[de]||Ar,Pt=new di(yi),Xt=new z(this.id,de,p);this._engine.totalQueuedPlayers++,this._queue.push({element:p,triggerName:de,transition:Ue,fromState:_t,toState:Pt,player:Xt,isFallbackTransition:!0})})}}removeNode(p,m){const T=this._engine;if(p.childElementCount&&this._signalRemovalForInnerTriggers(p,m),this.triggerLeaveAnimation(p,m,!0))return;let P=!1;if(T.totalAnimations){const J=T.players.length?T.playersByQueriedElement.get(p):[];if(J&&J.length)P=!0;else{let de=p;for(;de=de.parentNode;)if(T.statesByElement.get(de)){P=!0;break}}}if(this.prepareLeaveAnimationListeners(p),P)T.markElementAsRemoved(this.id,p,!1,m);else{const J=p[Ti];(!J||J===Ii)&&(T.afterFlush(()=>this.clearElementCache(p)),T.destroyInnerAnimations(p),T._onRemovalComplete(p,m))}}insertNode(p,m){Mi(p,this._hostClassName)}drainQueuedTransitions(p){const m=[];return this._queue.forEach(T=>{const P=T.player;if(P.destroyed)return;const J=T.element,de=this._elementListeners.get(J);de&&de.forEach(pe=>{if(pe.name==T.triggerName){const Ue=Q(J,T.triggerName,T.fromState.value,T.toState.value);Ue._data=p,G(T.player,pe.phase,Ue,pe.callback)}}),P.markedForDestroy?this._engine.afterFlush(()=>{P.destroy()}):m.push(T)}),this._queue=[],m.sort((T,P)=>{const J=T.transition.ast.depCount,de=P.transition.ast.depCount;return 0==J||0==de?J-de:this._engine.driver.containsElement(T.element,P.element)?1:-1})}destroy(p){this.players.forEach(m=>m.destroy()),this._signalRemovalForInnerTriggers(this.hostElement,p)}elementContainsData(p){let m=!1;return this._elementListeners.has(p)&&(m=!0),m=!!this._queue.find(T=>T.element===p)||m,m}}class be{constructor(p,m,T){this.bodyNode=p,this.driver=m,this._normalizer=T,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=(P,J)=>{}}_onRemovalComplete(p,m){this.onRemovalComplete(p,m)}get queuedPlayers(){const p=[];return this._namespaceList.forEach(m=>{m.players.forEach(T=>{T.queued&&p.push(T)})}),p}createNamespace(p,m){const T=new se(p,m,this);return this.bodyNode&&this.driver.containsElement(this.bodyNode,m)?this._balanceNamespaceList(T,m):(this.newHostElements.set(m,T),this.collectEnterElement(m)),this._namespaceLookup[p]=T}_balanceNamespaceList(p,m){const T=this._namespaceList.length-1;if(T>=0){let P=!1;for(let J=T;J>=0;J--)if(this.driver.containsElement(this._namespaceList[J].hostElement,m)){this._namespaceList.splice(J+1,0,p),P=!0;break}P||this._namespaceList.splice(0,0,p)}else this._namespaceList.push(p);return this.namespacesByHostElement.set(m,p),p}register(p,m){let T=this._namespaceLookup[p];return T||(T=this.createNamespace(p,m)),T}registerTrigger(p,m,T){let P=this._namespaceLookup[p];P&&P.register(m,T)&&this.totalAnimations++}destroy(p,m){if(!p)return;const T=this._fetchNamespace(p);this.afterFlush(()=>{this.namespacesByHostElement.delete(T.hostElement),delete this._namespaceLookup[p];const P=this._namespaceList.indexOf(T);P>=0&&this._namespaceList.splice(P,1)}),this.afterFlushAnimationsDone(()=>T.destroy(m))}_fetchNamespace(p){return this._namespaceLookup[p]}fetchNamespacesByElement(p){const m=new Set,T=this.statesByElement.get(p);if(T){const P=Object.keys(T);for(let J=0;J<P.length;J++){const de=T[P[J]].namespaceId;if(de){const pe=this._fetchNamespace(de);pe&&m.add(pe)}}}return m}trigger(p,m,T,P){if(qt(m)){const J=this._fetchNamespace(p);if(J)return J.trigger(m,T,P),!0}return!1}insertNode(p,m,T,P){if(!qt(m))return;const J=m[Ti];if(J&&J.setForRemoval){J.setForRemoval=!1,J.setForMove=!0;const de=this.collectedLeaveElements.indexOf(m);de>=0&&this.collectedLeaveElements.splice(de,1)}if(p){const de=this._fetchNamespace(p);de&&de.insertNode(m,T)}P&&this.collectEnterElement(m)}collectEnterElement(p){this.collectedEnterElements.push(p)}markElementAsDisabled(p,m){m?this.disabledNodes.has(p)||(this.disabledNodes.add(p),Mi(p,gr)):this.disabledNodes.has(p)&&(this.disabledNodes.delete(p),Er(p,gr))}removeNode(p,m,T,P){if(qt(m)){const J=p?this._fetchNamespace(p):null;if(J?J.removeNode(m,P):this.markElementAsRemoved(p,m,!1,P),T){const de=this.namespacesByHostElement.get(m);de&&de.id!==p&&de.removeNode(m,P)}}else this._onRemovalComplete(m,P)}markElementAsRemoved(p,m,T,P){this.collectedLeaveElements.push(m),m[Ti]={namespaceId:p,setForRemoval:P,hasAnimation:T,removedBeforeQueried:!1}}listen(p,m,T,P,J){return qt(m)?this._fetchNamespace(p).listen(m,T,P,J):()=>{}}_buildInstruction(p,m,T,P,J){return p.transition.build(this.driver,p.element,p.fromState.value,p.toState.value,T,P,p.fromState.options,p.toState.options,m,J)}destroyInnerAnimations(p){let m=this.driver.query(p,Rt,!0);m.forEach(T=>this.destroyActiveAnimationsForElement(T)),0!=this.playersByQueriedElement.size&&(m=this.driver.query(p,zt,!0),m.forEach(T=>this.finishActiveQueriedAnimationOnElement(T)))}destroyActiveAnimationsForElement(p){const m=this.playersByElement.get(p);m&&m.forEach(T=>{T.queued?T.markedForDestroy=!0:T.destroy()})}finishActiveQueriedAnimationOnElement(p){const m=this.playersByQueriedElement.get(p);m&&m.forEach(T=>T.finish())}whenRenderingDone(){return new Promise(p=>{if(this.players.length)return U(this.players).onDone(()=>p());p()})}processLeaveNode(p){const m=p[Ti];if(m&&m.setForRemoval){if(p[Ti]=Ii,m.namespaceId){this.destroyInnerAnimations(p);const T=this._fetchNamespace(m.namespaceId);T&&T.clearElementCache(p)}this._onRemovalComplete(p,m.setForRemoval)}this.driver.matchesElement(p,Hi)&&this.markElementAsDisabled(p,!1),this.driver.query(p,Hi,!0).forEach(T=>{this.markElementAsDisabled(T,!1)})}flush(p=-1){let m=[];if(this.newHostElements.size&&(this.newHostElements.forEach((T,P)=>this._balanceNamespaceList(T,P)),this.newHostElements.clear()),this.totalAnimations&&this.collectedEnterElements.length)for(let T=0;T<this.collectedEnterElements.length;T++)Mi(this.collectedEnterElements[T],"ng-star-inserted");if(this._namespaceList.length&&(this.totalQueuedPlayers||this.collectedLeaveElements.length)){const T=[];try{m=this._flushAnimations(T,p)}finally{for(let P=0;P<T.length;P++)T[P]()}}else for(let T=0;T<this.collectedLeaveElements.length;T++)this.processLeaveNode(this.collectedLeaveElements[T]);if(this.totalQueuedPlayers=0,this.collectedEnterElements.length=0,this.collectedLeaveElements.length=0,this._flushFns.forEach(T=>T()),this._flushFns=[],this._whenQuietFns.length){const T=this._whenQuietFns;this._whenQuietFns=[],m.length?U(m).onDone(()=>{T.forEach(P=>P())}):T.forEach(P=>P())}}reportError(p){throw new Error(`Unable to process animations due to the following failed trigger transitions\n ${p.join("\n")}`)}_flushAnimations(p,m){const T=new $n,P=[],J=new Map,de=[],pe=new Map,Ue=new Map,_t=new Map,Pt=new Set;this.disabledNodes.forEach(Vt=>{Pt.add(Vt);const ln=this.driver.query(Vt,".ng-animate-queued",!0);for(let An=0;An<ln.length;An++)Pt.add(ln[An])});const Xt=this.bodyNode,Sn=Array.from(this.statesByElement.keys()),mn=Ji(Sn,this.collectedEnterElements),_n=new Map;let wn=0;mn.forEach((Vt,ln)=>{const An=on+wn++;_n.set(ln,An),Vt.forEach(Gn=>Mi(Gn,An))});const Hn=[],si=new Set,Di=new Set;for(let Vt=0;Vt<this.collectedLeaveElements.length;Vt++){const ln=this.collectedLeaveElements[Vt],An=ln[Ti];An&&An.setForRemoval&&(Hn.push(ln),si.add(ln),An.hasAnimation?this.driver.query(ln,".ng-star-inserted",!0).forEach(Gn=>si.add(Gn)):Di.add(ln))}const Ei=new Map,ki=Ji(Sn,Array.from(si));ki.forEach((Vt,ln)=>{const An=ft+wn++;Ei.set(ln,An),Vt.forEach(Gn=>Mi(Gn,An))}),p.push(()=>{mn.forEach((Vt,ln)=>{const An=_n.get(ln);Vt.forEach(Gn=>Er(Gn,An))}),ki.forEach((Vt,ln)=>{const An=Ei.get(ln);Vt.forEach(Gn=>Er(Gn,An))}),Hn.forEach(Vt=>{this.processLeaveNode(Vt)})});const Zr=[],Xi=[];for(let Vt=this._namespaceList.length-1;Vt>=0;Vt--)this._namespaceList[Vt].drainQueuedTransitions(m).forEach(An=>{const Gn=An.player,bi=An.element;if(Zr.push(Gn),this.collectedEnterElements.length){const cr=bi[Ti];if(cr&&cr.setForMove)return void Gn.destroy()}const er=!Xt||!this.driver.containsElement(Xt,bi),tr=Ei.get(bi),lr=_n.get(bi),fi=this._buildInstruction(An,T,lr,tr,er);if(fi.errors&&fi.errors.length)Xi.push(fi);else{if(er)return Gn.onStart(()=>jt(bi,fi.fromStyles)),Gn.onDestroy(()=>It(bi,fi.toStyles)),void P.push(Gn);if(An.isFallbackTransition)return Gn.onStart(()=>jt(bi,fi.fromStyles)),Gn.onDestroy(()=>It(bi,fi.toStyles)),void P.push(Gn);fi.timelines.forEach(cr=>cr.stretchStartingKeyframe=!0),T.append(bi,fi.timelines),de.push({instruction:fi,player:Gn,element:bi}),fi.queriedElements.forEach(cr=>ne(pe,cr,[]).push(Gn)),fi.preStyleProps.forEach((cr,In)=>{const Vs=Object.keys(cr);if(Vs.length){let nr=Ue.get(In);nr||Ue.set(In,nr=new Set),Vs.forEach(Si=>nr.add(Si))}}),fi.postStyleProps.forEach((cr,In)=>{const Vs=Object.keys(cr);let nr=_t.get(In);nr||_t.set(In,nr=new Set),Vs.forEach(Si=>nr.add(Si))})}});if(Xi.length){const Vt=[];Xi.forEach(ln=>{Vt.push(`@${ln.triggerName} has failed due to:\n`),ln.errors.forEach(An=>Vt.push(`- ${An}\n`))}),Zr.forEach(ln=>ln.destroy()),this.reportError(Vt)}const Fi=new Map,ar=new Map;de.forEach(Vt=>{const ln=Vt.element;T.has(ln)&&(ar.set(ln,ln),this._beforeAnimationBuild(Vt.player.namespaceId,Vt.instruction,Fi))}),P.forEach(Vt=>{const ln=Vt.element;this._getPreviousPlayers(ln,!1,Vt.namespaceId,Vt.triggerName,null).forEach(Gn=>{ne(Fi,ln,[]).push(Gn),Gn.destroy()})});const Mr=Hn.filter(Vt=>_s(Vt,Ue,_t)),Sr=new Map;Dr(Sr,this.driver,Di,_t,Z.l3).forEach(Vt=>{_s(Vt,Ue,_t)&&Mr.push(Vt)});const Cs=new Map;mn.forEach((Vt,ln)=>{Dr(Cs,this.driver,new Set(Vt),Ue,Z.k1)}),Mr.forEach(Vt=>{const ln=Sr.get(Vt),An=Cs.get(Vt);Sr.set(Vt,Wt(Wt({},ln),An))});const Kr=[],$i=[],Pr={};de.forEach(Vt=>{const{element:ln,player:An,instruction:Gn}=Vt;if(T.has(ln)){if(Pt.has(ln))return An.onDestroy(()=>It(ln,Gn.toStyles)),An.disabled=!0,An.overrideTotalTime(Gn.totalTime),void P.push(An);let bi=Pr;if(ar.size>1){let tr=ln;const lr=[];for(;tr=tr.parentNode;){const fi=ar.get(tr);if(fi){bi=fi;break}lr.push(tr)}lr.forEach(fi=>ar.set(fi,bi))}const er=this._buildAnimation(An.namespaceId,Gn,Fi,J,Cs,Sr);if(An.setRealPlayer(er),bi===Pr)Kr.push(An);else{const tr=this.playersByElement.get(bi);tr&&tr.length&&(An.parentPlayer=U(tr)),P.push(An)}}else jt(ln,Gn.fromStyles),An.onDestroy(()=>It(ln,Gn.toStyles)),$i.push(An),Pt.has(ln)&&P.push(An)}),$i.forEach(Vt=>{const ln=J.get(Vt.element);if(ln&&ln.length){const An=U(ln);Vt.setRealPlayer(An)}}),P.forEach(Vt=>{Vt.parentPlayer?Vt.syncPlayerEvents(Vt.parentPlayer):Vt.destroy()});for(let Vt=0;Vt<Hn.length;Vt++){const ln=Hn[Vt],An=ln[Ti];if(Er(ln,ft),An&&An.hasAnimation)continue;let Gn=[];if(pe.size){let er=pe.get(ln);er&&er.length&&Gn.push(...er);let tr=this.driver.query(ln,zt,!0);for(let lr=0;lr<tr.length;lr++){let fi=pe.get(tr[lr]);fi&&fi.length&&Gn.push(...fi)}}const bi=Gn.filter(er=>!er.destroyed);bi.length?es(this,ln,bi):this.processLeaveNode(ln)}return Hn.length=0,Kr.forEach(Vt=>{this.players.push(Vt),Vt.onDone(()=>{Vt.destroy();const ln=this.players.indexOf(Vt);this.players.splice(ln,1)}),Vt.play()}),Kr}elementContainsData(p,m){let T=!1;const P=m[Ti];return P&&P.setForRemoval&&(T=!0),this.playersByElement.has(m)&&(T=!0),this.playersByQueriedElement.has(m)&&(T=!0),this.statesByElement.has(m)&&(T=!0),this._fetchNamespace(p).elementContainsData(m)||T}afterFlush(p){this._flushFns.push(p)}afterFlushAnimationsDone(p){this._whenQuietFns.push(p)}_getPreviousPlayers(p,m,T,P,J){let de=[];if(m){const pe=this.playersByQueriedElement.get(p);pe&&(de=pe)}else{const pe=this.playersByElement.get(p);if(pe){const Ue=!J||J==yi;pe.forEach(_t=>{_t.queued||!Ue&&_t.triggerName!=P||de.push(_t)})}}return(T||P)&&(de=de.filter(pe=>!(T&&T!=pe.namespaceId||P&&P!=pe.triggerName))),de}_beforeAnimationBuild(p,m,T){const J=m.element,de=m.isRemovalTransition?void 0:p,pe=m.isRemovalTransition?void 0:m.triggerName;for(const Ue of m.timelines){const _t=Ue.element,Pt=_t!==J,Xt=ne(T,_t,[]);this._getPreviousPlayers(_t,Pt,de,pe,m.toState).forEach(mn=>{const _n=mn.getRealPlayer();_n.beforeDestroy&&_n.beforeDestroy(),mn.destroy(),Xt.push(mn)})}jt(J,m.fromStyles)}_buildAnimation(p,m,T,P,J,de){const pe=m.triggerName,Ue=m.element,_t=[],Pt=new Set,Xt=new Set,Sn=m.timelines.map(_n=>{const wn=_n.element;Pt.add(wn);const Hn=wn[Ti];if(Hn&&Hn.removedBeforeQueried)return new Z.ZN(_n.duration,_n.delay);const si=wn!==Ue,Di=function(F){const p=[];return Yr(F,p),p}((T.get(wn)||_i).map(Fi=>Fi.getRealPlayer())).filter(Fi=>!!Fi.element&&Fi.element===wn),Ei=J.get(wn),ki=de.get(wn),Zr=te(0,this._normalizer,0,_n.keyframes,Ei,ki),Xi=this._buildPlayer(_n,Zr,Di);if(_n.subTimeline&&P&&Xt.add(wn),si){const Fi=new z(p,pe,wn);Fi.setRealPlayer(Xi),_t.push(Fi)}return Xi});_t.forEach(_n=>{ne(this.playersByQueriedElement,_n.element,[]).push(_n),_n.onDone(()=>function(F,p,m){let T;if(F instanceof Map){if(T=F.get(p),T){if(T.length){const P=T.indexOf(m);T.splice(P,1)}0==T.length&&F.delete(p)}}else if(T=F[p],T){if(T.length){const P=T.indexOf(m);T.splice(P,1)}0==T.length&&delete F[p]}return T}(this.playersByQueriedElement,_n.element,_n))}),Pt.forEach(_n=>Mi(_n,Gt));const mn=U(Sn);return mn.onDestroy(()=>{Pt.forEach(_n=>Er(_n,Gt)),It(Ue,m.toStyles)}),Xt.forEach(_n=>{ne(P,_n,[]).push(mn)}),mn}_buildPlayer(p,m,T){return m.length>0?this.driver.animate(p.element,m,p.duration,p.delay,p.easing,T):new Z.ZN(p.duration,p.delay)}}class z{constructor(p,m,T){this.namespaceId=p,this.triggerName=m,this.element=T,this._player=new Z.ZN,this._containsRealPlayer=!1,this._queuedCallbacks={},this.destroyed=!1,this.markedForDestroy=!1,this.disabled=!1,this.queued=!0,this.totalTime=0}setRealPlayer(p){this._containsRealPlayer||(this._player=p,Object.keys(this._queuedCallbacks).forEach(m=>{this._queuedCallbacks[m].forEach(T=>G(p,m,void 0,T))}),this._queuedCallbacks={},this._containsRealPlayer=!0,this.overrideTotalTime(p.totalTime),this.queued=!1)}getRealPlayer(){return this._player}overrideTotalTime(p){this.totalTime=p}syncPlayerEvents(p){const m=this._player;m.triggerCallback&&p.onStart(()=>m.triggerCallback("start")),p.onDone(()=>this.finish()),p.onDestroy(()=>this.destroy())}_queueEvent(p,m){ne(this._queuedCallbacks,p,[]).push(m)}onDone(p){this.queued&&this._queueEvent("done",p),this._player.onDone(p)}onStart(p){this.queued&&this._queueEvent("start",p),this._player.onStart(p)}onDestroy(p){this.queued&&this._queueEvent("destroy",p),this._player.onDestroy(p)}init(){this._player.init()}hasStarted(){return!this.queued&&this._player.hasStarted()}play(){!this.queued&&this._player.play()}pause(){!this.queued&&this._player.pause()}restart(){!this.queued&&this._player.restart()}finish(){this._player.finish()}destroy(){this.destroyed=!0,this._player.destroy()}reset(){!this.queued&&this._player.reset()}setPosition(p){this.queued||this._player.setPosition(p)}getPosition(){return this.queued?0:this._player.getPosition()}triggerCallback(p){const m=this._player;m.triggerCallback&&m.triggerCallback(p)}}function qt(F){return F&&1===F.nodeType}function ii(F,p){const m=F.style.display;return F.style.display=null!=p?p:"none",m}function Dr(F,p,m,T,P){const J=[];m.forEach(Ue=>J.push(ii(Ue)));const de=[];T.forEach((Ue,_t)=>{const Pt={};Ue.forEach(Xt=>{const Sn=Pt[Xt]=p.computeStyle(_t,Xt,P);(!Sn||0==Sn.length)&&(_t[Ti]=li,de.push(_t))}),F.set(_t,Pt)});let pe=0;return m.forEach(Ue=>ii(Ue,J[pe++])),de}function Ji(F,p){const m=new Map;if(F.forEach(pe=>m.set(pe,[])),0==p.length)return m;const P=new Set(p),J=new Map;function de(pe){if(!pe)return 1;let Ue=J.get(pe);if(Ue)return Ue;const _t=pe.parentNode;return Ue=m.has(_t)?_t:P.has(_t)?1:de(_t),J.set(pe,Ue),Ue}return p.forEach(pe=>{const Ue=de(pe);1!==Ue&&m.get(Ue).push(pe)}),m}const Ri="$$classes";function Mi(F,p){if(F.classList)F.classList.add(p);else{let m=F[Ri];m||(m=F[Ri]={}),m[p]=!0}}function Er(F,p){if(F.classList)F.classList.remove(p);else{let m=F[Ri];m&&delete m[p]}}function es(F,p,m){U(m).onDone(()=>F.processLeaveNode(p))}function Yr(F,p){for(let m=0;m<F.length;m++){const T=F[m];T instanceof Z.ZE?Yr(T.players,p):p.push(T)}}function _s(F,p,m){const T=m.get(F);if(!T)return!1;let P=p.get(F);return P?T.forEach(J=>P.add(J)):p.set(F,T),m.delete(F),!0}class jr{constructor(p,m,T){this.bodyNode=p,this._driver=m,this._normalizer=T,this._triggerCache={},this.onRemovalComplete=(P,J)=>{},this._transitionEngine=new be(p,m,T),this._timelineEngine=new Ai(p,m,T),this._transitionEngine.onRemovalComplete=(P,J)=>this.onRemovalComplete(P,J)}registerTrigger(p,m,T,P,J){const de=p+"-"+P;let pe=this._triggerCache[de];if(!pe){const Ue=[],_t=He(this._driver,J,Ue);if(Ue.length)throw new Error(`The animation trigger "${P}" has failed to build due to the following errors:\n - ${Ue.join("\n - ")}`);pe=function(F,p,m){return new oi(F,p,m)}(P,_t,this._normalizer),this._triggerCache[de]=pe}this._transitionEngine.registerTrigger(m,P,pe)}register(p,m){this._transitionEngine.register(p,m)}destroy(p,m){this._transitionEngine.destroy(p,m)}onInsert(p,m,T,P){this._transitionEngine.insertNode(p,m,T,P)}onRemove(p,m,T,P){this._transitionEngine.removeNode(p,m,P||!1,T)}disableAnimations(p,m){this._transitionEngine.markElementAsDisabled(p,m)}process(p,m,T,P){if("@"==T.charAt(0)){const[J,de]=ie(T);this._timelineEngine.command(J,m,de,P)}else this._transitionEngine.trigger(p,m,T,P)}listen(p,m,T,P,J){if("@"==T.charAt(0)){const[de,pe]=ie(T);return this._timelineEngine.listen(de,m,pe,J)}return this._transitionEngine.listen(p,m,T,P,J)}flush(p=-1){this._transitionEngine.flush(p)}get players(){return this._transitionEngine.players.concat(this._timelineEngine.players)}whenRenderingDone(){return this._transitionEngine.whenRenderingDone()}}function ys(F,p){let m=null,T=null;return Array.isArray(p)&&p.length?(m=qi(p[0]),p.length>1&&(T=qi(p[p.length-1]))):p&&(m=qi(p)),m||T?new ts(F,m,T):null}let ts=(()=>{class F{constructor(m,T,P){this._element=m,this._startStyles=T,this._endStyles=P,this._state=0;let J=F.initialStylesByElement.get(m);J||F.initialStylesByElement.set(m,J={}),this._initialStyles=J}start(){this._state<1&&(this._startStyles&&It(this._element,this._startStyles,this._initialStyles),this._state=1)}finish(){this.start(),this._state<2&&(It(this._element,this._initialStyles),this._endStyles&&(It(this._element,this._endStyles),this._endStyles=null),this._state=1)}destroy(){this.finish(),this._state<3&&(F.initialStylesByElement.delete(this._element),this._startStyles&&(jt(this._element,this._startStyles),this._endStyles=null),this._endStyles&&(jt(this._element,this._endStyles),this._endStyles=null),It(this._element,this._initialStyles),this._state=3)}}return F.initialStylesByElement=new WeakMap,F})();function qi(F){let p=null;const m=Object.keys(F);for(let T=0;T<m.length;T++){const P=m[T];ns(P)&&(p=p||{},p[P]=F[P])}return p}function ns(F){return"display"===F||"position"===F}const wr="animation",Oi="animationend";class Qn{constructor(p,m,T,P,J,de,pe){this._element=p,this._name=m,this._duration=T,this._delay=P,this._easing=J,this._fillMode=de,this._onDoneFn=pe,this._finished=!1,this._destroyed=!1,this._startTime=0,this._position=0,this._eventFn=Ue=>this._handleCallback(Ue)}apply(){(function(F,p){const m=$r(F,"").trim();let T=0;m.length&&(function(F,p){let m=0;for(let T=0;T<F.length;T++)","===F.charAt(T)&&m++;return m}(m)+1,p=`${m}, ${p}`),Zi(F,"",p)})(this._element,`${this._duration}ms ${this._easing} ${this._delay}ms 1 normal ${this._fillMode} ${this._name}`),rr(this._element,this._eventFn,!1),this._startTime=Date.now()}pause(){ei(this._element,this._name,"paused")}resume(){ei(this._element,this._name,"running")}setPosition(p){const m=Wi(this._element,this._name);this._position=p*this._duration,Zi(this._element,"Delay",`-${this._position}ms`,m)}getPosition(){return this._position}_handleCallback(p){const m=p._ngTestManualTimestamp||Date.now(),T=1e3*parseFloat(p.elapsedTime.toFixed(3));p.animationName==this._name&&Math.max(m-this._startTime,0)>=this._delay&&T>=this._duration&&this.finish()}finish(){this._finished||(this._finished=!0,this._onDoneFn(),rr(this._element,this._eventFn,!0))}destroy(){this._destroyed||(this._destroyed=!0,this.finish(),function(F,p){const T=$r(F,"").split(","),P=yr(T,p);P>=0&&(T.splice(P,1),Zi(F,"",T.join(",")))}(this._element,this._name))}}function ei(F,p,m){Zi(F,"PlayState",m,Wi(F,p))}function Wi(F,p){const m=$r(F,"");return m.indexOf(",")>0?yr(m.split(","),p):yr([m],p)}function yr(F,p){for(let m=0;m<F.length;m++)if(F[m].indexOf(p)>=0)return m;return-1}function rr(F,p,m){m?F.removeEventListener(Oi,p):F.addEventListener(Oi,p)}function Zi(F,p,m,T){const P=wr+p;if(null!=T){const J=F.style[P];if(J.length){const de=J.split(",");de[T]=m,m=de.join(",")}}F.style[P]=m}function $r(F,p){return F.style[wr+p]||""}class vr{constructor(p,m,T,P,J,de,pe,Ue){this.element=p,this.keyframes=m,this.animationName=T,this._duration=P,this._delay=J,this._finalStyles=pe,this._specialStyles=Ue,this._onDoneFns=[],this._onStartFns=[],this._onDestroyFns=[],this.currentSnapshot={},this._state=0,this.easing=de||"linear",this.totalTime=P+J,this._buildStyler()}onStart(p){this._onStartFns.push(p)}onDone(p){this._onDoneFns.push(p)}onDestroy(p){this._onDestroyFns.push(p)}destroy(){this.init(),!(this._state>=4)&&(this._state=4,this._styler.destroy(),this._flushStartFns(),this._flushDoneFns(),this._specialStyles&&this._specialStyles.destroy(),this._onDestroyFns.forEach(p=>p()),this._onDestroyFns=[])}_flushDoneFns(){this._onDoneFns.forEach(p=>p()),this._onDoneFns=[]}_flushStartFns(){this._onStartFns.forEach(p=>p()),this._onStartFns=[]}finish(){this.init(),!(this._state>=3)&&(this._state=3,this._styler.finish(),this._flushStartFns(),this._specialStyles&&this._specialStyles.finish(),this._flushDoneFns())}setPosition(p){this._styler.setPosition(p)}getPosition(){return this._styler.getPosition()}hasStarted(){return this._state>=2}init(){this._state>=1||(this._state=1,this._styler.apply(),this._delay&&this._styler.pause())}play(){this.init(),this.hasStarted()||(this._flushStartFns(),this._state=2,this._specialStyles&&this._specialStyles.start()),this._styler.resume()}pause(){this.init(),this._styler.pause()}restart(){this.reset(),this.play()}reset(){this._state=0,this._styler.destroy(),this._buildStyler(),this._styler.apply()}_buildStyler(){this._styler=new Qn(this.element,this.animationName,this._duration,this._delay,this.easing,"forwards",()=>this.finish())}triggerCallback(p){const m="start"==p?this._onStartFns:this._onDoneFns;m.forEach(T=>T()),m.length=0}beforeDestroy(){this.init();const p={};if(this.hasStarted()){const m=this._state>=3;Object.keys(this._finalStyles).forEach(T=>{"offset"!=T&&(p[T]=m?this._finalStyles[T]:ct(this.element,T))})}this.currentSnapshot=p}}class vs extends Z.ZN{constructor(p,m){super(),this.element=p,this._startingStyles={},this.__initialized=!1,this._styles=wt(m)}init(){this.__initialized||!this._startingStyles||(this.__initialized=!0,Object.keys(this._styles).forEach(p=>{this._startingStyles[p]=this.element.style[p]}),super.init())}play(){!this._startingStyles||(this.init(),Object.keys(this._styles).forEach(p=>this.element.style.setProperty(p,this._styles[p])),super.play())}destroy(){!this._startingStyles||(Object.keys(this._startingStyles).forEach(p=>{const m=this._startingStyles[p];m?this.element.style.setProperty(p,m):this.element.style.removeProperty(p)}),this._startingStyles=null,super.destroy())}}class ui{constructor(){this._count=0}validateStyleProperty(p){return Nt(p)}matchesElement(p,m){return Ce(p,m)}containsElement(p,m){return ht(p,m)}query(p,m,T){return at(p,m,T)}computeStyle(p,m,T){return window.getComputedStyle(p)[m]}buildKeyframeElement(p,m,T){T=T.map(pe=>wt(pe));let P=`@keyframes ${m} {\n`,J="";T.forEach(pe=>{J=" ";const Ue=parseFloat(pe.offset);P+=`${J}${100*Ue}% {\n`,J+=" ",Object.keys(pe).forEach(_t=>{const Pt=pe[_t];switch(_t){case"offset":return;case"easing":return void(Pt&&(P+=`${J}animation-timing-function: ${Pt};\n`));default:return void(P+=`${J}${_t}: ${Pt};\n`)}}),P+=`${J}}\n`}),P+="}\n";const de=document.createElement("style");return de.textContent=P,de}animate(p,m,T,P,J,de=[],pe){const Ue=de.filter(Hn=>Hn instanceof vr),_t={};le(T,P)&&Ue.forEach(Hn=>{let si=Hn.currentSnapshot;Object.keys(si).forEach(Di=>_t[Di]=si[Di])});const Pt=function(F){let p={};return F&&(Array.isArray(F)?F:[F]).forEach(T=>{Object.keys(T).forEach(P=>{"offset"==P||"easing"==P||(p[P]=T[P])})}),p}(m=ue(p,m,_t));if(0==T)return new vs(p,Pt);const Xt="gen_css_kf_"+this._count++,Sn=this.buildKeyframeElement(p,Xt,m);(function(F){var m;const p=null==(m=F.getRootNode)?void 0:m.call(F);return"undefined"!=typeof ShadowRoot&&p instanceof ShadowRoot?p:document.head})(p).appendChild(Sn);const _n=ys(p,m),wn=new vr(p,m,Xt,T,P,J,Pt,_n);return wn.onDestroy(()=>{var F;(F=Sn).parentNode.removeChild(F)}),wn}}class j{constructor(p,m,T,P){this.element=p,this.keyframes=m,this.options=T,this._specialStyles=P,this._onDoneFns=[],this._onStartFns=[],this._onDestroyFns=[],this._initialized=!1,this._finished=!1,this._started=!1,this._destroyed=!1,this.time=0,this.parentPlayer=null,this.currentSnapshot={},this._duration=T.duration,this._delay=T.delay||0,this.time=this._duration+this._delay}_onFinish(){this._finished||(this._finished=!0,this._onDoneFns.forEach(p=>p()),this._onDoneFns=[])}init(){this._buildPlayer(),this._preparePlayerBeforeStart()}_buildPlayer(){if(this._initialized)return;this._initialized=!0;const p=this.keyframes;this.domPlayer=this._triggerWebAnimation(this.element,p,this.options),this._finalKeyframe=p.length?p[p.length-1]:{},this.domPlayer.addEventListener("finish",()=>this._onFinish())}_preparePlayerBeforeStart(){this._delay?this._resetDomPlayerState():this.domPlayer.pause()}_triggerWebAnimation(p,m,T){return p.animate(m,T)}onStart(p){this._onStartFns.push(p)}onDone(p){this._onDoneFns.push(p)}onDestroy(p){this._onDestroyFns.push(p)}play(){this._buildPlayer(),this.hasStarted()||(this._onStartFns.forEach(p=>p()),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}_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(p=>p()),this._onDestroyFns=[])}setPosition(p){void 0===this.domPlayer&&this.init(),this.domPlayer.currentTime=p*this.time}getPosition(){return this.domPlayer.currentTime/this.time}get totalTime(){return this._delay+this._duration}beforeDestroy(){const p={};this.hasStarted()&&Object.keys(this._finalKeyframe).forEach(m=>{"offset"!=m&&(p[m]=this._finished?this._finalKeyframe[m]:ct(this.element,m))}),this.currentSnapshot=p}triggerCallback(p){const m="start"==p?this._onStartFns:this._onDoneFns;m.forEach(T=>T()),m.length=0}}class _e{constructor(){this._isNativeImpl=/\{\s*\[native\s+code\]\s*\}/.test(D().toString()),this._cssKeyframesDriver=new ui}validateStyleProperty(p){return Nt(p)}matchesElement(p,m){return Ce(p,m)}containsElement(p,m){return ht(p,m)}query(p,m,T){return at(p,m,T)}computeStyle(p,m,T){return window.getComputedStyle(p)[m]}overrideWebAnimationsSupport(p){this._isNativeImpl=p}animate(p,m,T,P,J,de=[],pe){if(!pe&&!this._isNativeImpl)return this._cssKeyframesDriver.animate(p,m,T,P,J,de);const Pt={duration:T,delay:P,fill:0==P?"both":"forwards"};J&&(Pt.easing=J);const Xt={},Sn=de.filter(_n=>_n instanceof j);le(T,P)&&Sn.forEach(_n=>{let wn=_n.currentSnapshot;Object.keys(wn).forEach(Hn=>Xt[Hn]=wn[Hn])});const mn=ys(p,m=ue(p,m=m.map(_n=>ut(_n,!1)),Xt));return new j(p,m,Pt,mn)}}function D(){return o()&&Element.prototype.animate||{}}var C=M(6019);let L=(()=>{class F extends Z._j{constructor(m,T){super(),this._nextAnimationId=0,this._renderer=m.createRenderer(T.body,{id:"0",encapsulation:l.ifc.None,styles:[],data:{animation:[]}})}build(m){const T=this._nextAnimationId.toString();this._nextAnimationId++;const P=Array.isArray(m)?(0,Z.vP)(m):m;return un(this._renderer,null,T,"register",[P]),new tt(T,this._renderer)}}return F.\u0275fac=function(m){return new(m||F)(l.LFG(l.FYo),l.LFG(C.K0))},F.\u0275prov=l.Yz7({token:F,factory:F.\u0275fac}),F})();class tt extends Z.LC{constructor(p,m){super(),this._id=p,this._renderer=m}create(p,m){return new Lt(this._id,p,m||{},this._renderer)}}class Lt{constructor(p,m,T,P){this.id=p,this.element=m,this._renderer=P,this.parentPlayer=null,this._started=!1,this.totalTime=0,this._command("create",T)}_listen(p,m){return this._renderer.listen(this.element,`@@${this.id}:${p}`,m)}_command(p,...m){return un(this._renderer,this.element,this.id,p,m)}onDone(p){this._listen("done",p)}onStart(p){this._listen("start",p)}onDestroy(p){this._listen("destroy",p)}init(){this._command("init")}hasStarted(){return this._started}play(){this._command("play"),this._started=!0}pause(){this._command("pause")}restart(){this._command("restart")}finish(){this._command("finish")}destroy(){this._command("destroy")}reset(){this._command("reset"),this._started=!1}setPosition(p){this._command("setPosition",p)}getPosition(){var p,m;return null!=(m=null==(p=this._renderer.engine.players[+this.id])?void 0:p.getPosition())?m:0}}function un(F,p,m,T,P){return F.setProperty(p,`@@${m}:${T}`,P)}const zn="@.disabled";let vi=(()=>{class F{constructor(m,T,P){this.delegate=m,this.engine=T,this._zone=P,this._currentId=0,this._microtaskId=1,this._animationCallbacksBuffer=[],this._rendererCache=new Map,this._cdRecurDepth=0,this.promise=Promise.resolve(0),T.onRemovalComplete=(J,de)=>{const pe=null==de?void 0:de.parentNode(J);pe&&de.removeChild(pe,J)}}createRenderer(m,T){const J=this.delegate.createRenderer(m,T);if(!(m&&T&&T.data&&T.data.animation)){let Pt=this._rendererCache.get(J);return Pt||(Pt=new nn("",J,this.engine),this._rendererCache.set(J,Pt)),Pt}const de=T.id,pe=T.id+"-"+this._currentId;this._currentId++,this.engine.register(pe,m);const Ue=Pt=>{Array.isArray(Pt)?Pt.forEach(Ue):this.engine.registerTrigger(de,pe,m,Pt.name,Pt)};return T.data.animation.forEach(Ue),new or(this,pe,J,this.engine)}begin(){this._cdRecurDepth++,this.delegate.begin&&this.delegate.begin()}_scheduleCountTask(){this.promise.then(()=>{this._microtaskId++})}scheduleListenerCallback(m,T,P){m>=0&&m<this._microtaskId?this._zone.run(()=>T(P)):(0==this._animationCallbacksBuffer.length&&Promise.resolve(null).then(()=>{this._zone.run(()=>{this._animationCallbacksBuffer.forEach(J=>{const[de,pe]=J;de(pe)}),this._animationCallbacksBuffer=[]})}),this._animationCallbacksBuffer.push([T,P]))}end(){this._cdRecurDepth--,0==this._cdRecurDepth&&this._zone.runOutsideAngular(()=>{this._scheduleCountTask(),this.engine.flush(this._microtaskId)}),this.delegate.end&&this.delegate.end()}whenRenderingDone(){return this.engine.whenRenderingDone()}}return F.\u0275fac=function(m){return new(m||F)(l.LFG(l.FYo),l.LFG(jr),l.LFG(l.R0b))},F.\u0275prov=l.Yz7({token:F,factory:F.\u0275fac}),F})();class nn{constructor(p,m,T){this.namespaceId=p,this.delegate=m,this.engine=T,this.destroyNode=this.delegate.destroyNode?P=>m.destroyNode(P):null}get data(){return this.delegate.data}destroy(){this.engine.destroy(this.namespaceId,this.delegate),this.delegate.destroy()}createElement(p,m){return this.delegate.createElement(p,m)}createComment(p){return this.delegate.createComment(p)}createText(p){return this.delegate.createText(p)}appendChild(p,m){this.delegate.appendChild(p,m),this.engine.onInsert(this.namespaceId,m,p,!1)}insertBefore(p,m,T,P=!0){this.delegate.insertBefore(p,m,T),this.engine.onInsert(this.namespaceId,m,p,P)}removeChild(p,m,T){this.engine.onRemove(this.namespaceId,m,this.delegate,T)}selectRootElement(p,m){return this.delegate.selectRootElement(p,m)}parentNode(p){return this.delegate.parentNode(p)}nextSibling(p){return this.delegate.nextSibling(p)}setAttribute(p,m,T,P){this.delegate.setAttribute(p,m,T,P)}removeAttribute(p,m,T){this.delegate.removeAttribute(p,m,T)}addClass(p,m){this.delegate.addClass(p,m)}removeClass(p,m){this.delegate.removeClass(p,m)}setStyle(p,m,T,P){this.delegate.setStyle(p,m,T,P)}removeStyle(p,m,T){this.delegate.removeStyle(p,m,T)}setProperty(p,m,T){"@"==m.charAt(0)&&m==zn?this.disableAnimations(p,!!T):this.delegate.setProperty(p,m,T)}setValue(p,m){this.delegate.setValue(p,m)}listen(p,m,T){return this.delegate.listen(p,m,T)}disableAnimations(p,m){this.engine.disableAnimations(p,m)}}class or extends nn{constructor(p,m,T,P){super(m,T,P),this.factory=p,this.namespaceId=m}setProperty(p,m,T){"@"==m.charAt(0)?"."==m.charAt(1)&&m==zn?this.disableAnimations(p,T=void 0===T||!!T):this.engine.process(this.namespaceId,p,m.substr(1),T):this.delegate.setProperty(p,m,T)}listen(p,m,T){if("@"==m.charAt(0)){const P=function(F){switch(F){case"body":return document.body;case"document":return document;case"window":return window;default:return F}}(p);let J=m.substr(1),de="";return"@"!=J.charAt(0)&&([J,de]=function(F){const p=F.indexOf(".");return[F.substring(0,p),F.substr(p+1)]}(J)),this.engine.listen(this.namespaceId,P,J,de,pe=>{this.factory.scheduleListenerCallback(pe._data||-1,T,pe)})}return this.delegate.listen(p,m,T)}}let bs=(()=>{class F extends jr{constructor(m,T,P){super(m.body,T,P)}ngOnDestroy(){this.flush()}}return F.\u0275fac=function(m){return new(m||F)(l.LFG(C.K0),l.LFG(Yt),l.LFG(bn))},F.\u0275prov=l.Yz7({token:F,factory:F.\u0275fac}),F})();const Et=new l.OlP("AnimationModuleType"),On=[{provide:Z._j,useClass:L},{provide:bn,useFactory:function(){return new Nn}},{provide:jr,useClass:bs},{provide:l.FYo,useFactory:function(F,p,m){return new vi(F,p,m)},deps:[f.se,jr,l.R0b]}],Ls=[{provide:Yt,useFactory:function(){return"function"==typeof D()?new _e:new ui}},{provide:Et,useValue:"BrowserAnimations"},...On],Ni=[{provide:Yt,useClass:xt},{provide:Et,useValue:"NoopAnimations"},...On];let Fr=(()=>{class F{static withConfig(m){return{ngModule:F,providers:m.disableAnimations?Ni:Ls}}}return F.\u0275fac=function(m){return new(m||F)},F.\u0275mod=l.oAB({type:F}),F.\u0275inj=l.cJS({providers:Ls,imports:[f.b2]}),F})()},5427:(St,Se,M)=>{M.d(Se,{b2:()=>je,H7:()=>Pn,q6:()=>fe,se:()=>ut});var l=M(6019),f=M(3668);class Z extends l.w_{constructor(){super(...arguments),this.supportsDOMEvents=!0}}class o extends Z{static makeCurrent(){(0,l.HT)(new o)}onAndCancel(ge,re,xe){return ge.addEventListener(re,xe,!1),()=>{ge.removeEventListener(re,xe,!1)}}dispatchEvent(ge,re){ge.dispatchEvent(re)}remove(ge){ge.parentNode&&ge.parentNode.removeChild(ge)}createElement(ge,re){return(re=re||this.getDefaultDocument()).createElement(ge)}createHtmlDocument(){return document.implementation.createHTMLDocument("fakeTitle")}getDefaultDocument(){return document}isElementNode(ge){return ge.nodeType===Node.ELEMENT_NODE}isShadowRoot(ge){return ge instanceof DocumentFragment}getGlobalEventTarget(ge,re){return"window"===re?window:"document"===re?ge:"body"===re?ge.body:null}getBaseHref(ge){const re=(oe=oe||document.querySelector("base"),oe?oe.getAttribute("href"):null);return null==re?null:function(Me){te=te||document.createElement("a"),te.setAttribute("href",Me);const ge=te.pathname;return"/"===ge.charAt(0)?ge:`/${ge}`}(re)}resetBaseElement(){oe=null}getUserAgent(){return window.navigator.userAgent}getCookie(ge){return(0,l.Mx)(document.cookie,ge)}}let te,oe=null;const W=new f.OlP("TRANSITION_ID"),ne=[{provide:f.ip1,useFactory:function(Me,ge,re){return()=>{re.get(f.CZH).donePromise.then(()=>{const xe=(0,l.q)(),Ke=ge.querySelectorAll(`style[ng-transition="${Me}"]`);for(let Jt=0;Jt<Ke.length;Jt++)xe.remove(Ke[Jt])})}},deps:[W,l.K0,f.zs3],multi:!0}];class ie{static init(){(0,f.VLi)(new ie)}addToWindow(ge){f.dqk.getAngularTestability=(xe,Ke=!0)=>{const Jt=ge.findTestabilityInTree(xe,Ke);if(null==Jt)throw new Error("Could not find testability for element.");return Jt},f.dqk.getAllAngularTestabilities=()=>ge.getAllTestabilities(),f.dqk.getAllAngularRootElements=()=>ge.getAllRootElements(),f.dqk.frameworkStabilizers||(f.dqk.frameworkStabilizers=[]),f.dqk.frameworkStabilizers.push(xe=>{const Ke=f.dqk.getAllAngularTestabilities();let Jt=Ke.length,pn=!1;const Yn=function(oi){pn=pn||oi,Jt--,0==Jt&&xe(pn)};Ke.forEach(function(oi){oi.whenStable(Yn)})})}findTestabilityInTree(ge,re,xe){if(null==re)return null;const Ke=ge.getTestability(re);return null!=Ke?Ke:xe?(0,l.q)().isShadowRoot(re)?this.findTestabilityInTree(ge,re.host,!0):this.findTestabilityInTree(ge,re.parentElement,!0):null}}let Ne=(()=>{class Me{build(){return new XMLHttpRequest}}return Me.\u0275fac=function(re){return new(re||Me)},Me.\u0275prov=f.Yz7({token:Me,factory:Me.\u0275fac}),Me})();const Kt=new f.OlP("EventManagerPlugins");let Zt=(()=>{class Me{constructor(re,xe){this._zone=xe,this._eventNameToPlugin=new Map,re.forEach(Ke=>Ke.manager=this),this._plugins=re.slice().reverse()}addEventListener(re,xe,Ke){return this._findPluginFor(xe).addEventListener(re,xe,Ke)}addGlobalEventListener(re,xe,Ke){return this._findPluginFor(xe).addGlobalEventListener(re,xe,Ke)}getZone(){return this._zone}_findPluginFor(re){const xe=this._eventNameToPlugin.get(re);if(xe)return xe;const Ke=this._plugins;for(let Jt=0;Jt<Ke.length;Jt++){const pn=Ke[Jt];if(pn.supports(re))return this._eventNameToPlugin.set(re,pn),pn}throw new Error(`No event manager plugin found for event ${re}`)}}return Me.\u0275fac=function(re){return new(re||Me)(f.LFG(Kt),f.LFG(f.R0b))},Me.\u0275prov=f.Yz7({token:Me,factory:Me.\u0275fac}),Me})();class Ut{constructor(ge){this._doc=ge}addGlobalEventListener(ge,re,xe){const Ke=(0,l.q)().getGlobalEventTarget(this._doc,ge);if(!Ke)throw new Error(`Unsupported event target ${Ke} for event ${re}`);return this.addEventListener(Ke,re,xe)}}let on=(()=>{class Me{constructor(){this._stylesSet=new Set}addStyles(re){const xe=new Set;re.forEach(Ke=>{this._stylesSet.has(Ke)||(this._stylesSet.add(Ke),xe.add(Ke))}),this.onStylesAdded(xe)}onStylesAdded(re){}getAllStyles(){return Array.from(this._stylesSet)}}return Me.\u0275fac=function(re){return new(re||Me)},Me.\u0275prov=f.Yz7({token:Me,factory:Me.\u0275fac}),Me})(),ft=(()=>{class Me extends on{constructor(re){super(),this._doc=re,this._hostNodes=new Map,this._hostNodes.set(re.head,[])}_addStylesToHost(re,xe,Ke){re.forEach(Jt=>{const pn=this._doc.createElement("style");pn.textContent=Jt,Ke.push(xe.appendChild(pn))})}addHost(re){const xe=[];this._addStylesToHost(this._stylesSet,re,xe),this._hostNodes.set(re,xe)}removeHost(re){const xe=this._hostNodes.get(re);xe&&xe.forEach(Ft),this._hostNodes.delete(re)}onStylesAdded(re){this._hostNodes.forEach((xe,Ke)=>{this._addStylesToHost(re,Ke,xe)})}ngOnDestroy(){this._hostNodes.forEach(re=>re.forEach(Ft))}}return Me.\u0275fac=function(re){return new(re||Me)(f.LFG(l.K0))},Me.\u0275prov=f.Yz7({token:Me,factory:Me.\u0275fac}),Me})();function Ft(Me){(0,l.q)().remove(Me)}const Ye={svg:"http://www.w3.org/2000/svg",xhtml:"http://www.w3.org/1999/xhtml",xlink:"http://www.w3.org/1999/xlink",xml:"http://www.w3.org/XML/1998/namespace",xmlns:"http://www.w3.org/2000/xmlns/"},Dt=/%COMP%/g;function Ee(Me,ge,re){for(let xe=0;xe<ge.length;xe++){let Ke=ge[xe];Array.isArray(Ke)?Ee(Me,Ke,re):(Ke=Ke.replace(Dt,Me),re.push(Ke))}return re}function Fe(Me){return ge=>{if("__ngUnwrap__"===ge)return Me;!1===Me(ge)&&(ge.preventDefault(),ge.returnValue=!1)}}let ut=(()=>{class Me{constructor(re,xe,Ke){this.eventManager=re,this.sharedStylesHost=xe,this.appId=Ke,this.rendererByCompId=new Map,this.defaultRenderer=new Pe(re)}createRenderer(re,xe){if(!re||!xe)return this.defaultRenderer;switch(xe.encapsulation){case f.ifc.Emulated:{let Ke=this.rendererByCompId.get(xe.id);return Ke||(Ke=new jt(this.eventManager,this.sharedStylesHost,xe,this.appId),this.rendererByCompId.set(xe.id,Ke)),Ke.applyToHost(re),Ke}case 1:case f.ifc.ShadowDom:return new tn(this.eventManager,this.sharedStylesHost,re,xe);default:if(!this.rendererByCompId.has(xe.id)){const Ke=Ee(xe.id,xe.styles,[]);this.sharedStylesHost.addStyles(Ke),this.rendererByCompId.set(xe.id,this.defaultRenderer)}return this.defaultRenderer}}begin(){}end(){}}return Me.\u0275fac=function(re){return new(re||Me)(f.LFG(Zt),f.LFG(ft),f.LFG(f.AFp))},Me.\u0275prov=f.Yz7({token:Me,factory:Me.\u0275fac}),Me})();class Pe{constructor(ge){this.eventManager=ge,this.data=Object.create(null),this.destroyNode=null}destroy(){}createElement(ge,re){return re?document.createElementNS(Ye[re]||re,ge):document.createElement(ge)}createComment(ge){return document.createComment(ge)}createText(ge){return document.createTextNode(ge)}appendChild(ge,re){ge.appendChild(re)}insertBefore(ge,re,xe){ge&&ge.insertBefore(re,xe)}removeChild(ge,re){ge&&ge.removeChild(re)}selectRootElement(ge,re){let xe="string"==typeof ge?document.querySelector(ge):ge;if(!xe)throw new Error(`The selector "${ge}" did not match any elements`);return re||(xe.textContent=""),xe}parentNode(ge){return ge.parentNode}nextSibling(ge){return ge.nextSibling}setAttribute(ge,re,xe,Ke){if(Ke){re=Ke+":"+re;const Jt=Ye[Ke];Jt?ge.setAttributeNS(Jt,re,xe):ge.setAttribute(re,xe)}else ge.setAttribute(re,xe)}removeAttribute(ge,re,xe){if(xe){const Ke=Ye[xe];Ke?ge.removeAttributeNS(Ke,re):ge.removeAttribute(`${xe}:${re}`)}else ge.removeAttribute(re)}addClass(ge,re){ge.classList.add(re)}removeClass(ge,re){ge.classList.remove(re)}setStyle(ge,re,xe,Ke){Ke&(f.JOm.DashCase|f.JOm.Important)?ge.style.setProperty(re,xe,Ke&f.JOm.Important?"important":""):ge.style[re]=xe}removeStyle(ge,re,xe){xe&f.JOm.DashCase?ge.style.removeProperty(re):ge.style[re]=""}setProperty(ge,re,xe){ge[re]=xe}setValue(ge,re){ge.nodeValue=re}listen(ge,re,xe){return"string"==typeof ge?this.eventManager.addGlobalEventListener(ge,re,Fe(xe)):this.eventManager.addEventListener(ge,re,Fe(xe))}}class jt extends Pe{constructor(ge,re,xe,Ke){super(ge),this.component=xe;const Jt=Ee(Ke+"-"+xe.id,xe.styles,[]);re.addStyles(Jt),this.contentAttr="_ngcontent-%COMP%".replace(Dt,Ke+"-"+xe.id),this.hostAttr="_nghost-%COMP%".replace(Dt,Ke+"-"+xe.id)}applyToHost(ge){super.setAttribute(ge,this.hostAttr,"")}createElement(ge,re){const xe=super.createElement(ge,re);return super.setAttribute(xe,this.contentAttr,""),xe}}class tn extends Pe{constructor(ge,re,xe,Ke){super(ge),this.sharedStylesHost=re,this.hostEl=xe,this.shadowRoot=xe.attachShadow({mode:"open"}),this.sharedStylesHost.addHost(this.shadowRoot);const Jt=Ee(Ke.id,Ke.styles,[]);for(let pn=0;pn<Jt.length;pn++){const Yn=document.createElement("style");Yn.textContent=Jt[pn],this.shadowRoot.appendChild(Yn)}}nodeOrShadowRoot(ge){return ge===this.hostEl?this.shadowRoot:ge}destroy(){this.sharedStylesHost.removeHost(this.shadowRoot)}appendChild(ge,re){return super.appendChild(this.nodeOrShadowRoot(ge),re)}insertBefore(ge,re,xe){return super.insertBefore(this.nodeOrShadowRoot(ge),re,xe)}removeChild(ge,re){return super.removeChild(this.nodeOrShadowRoot(ge),re)}parentNode(ge){return this.nodeOrShadowRoot(super.parentNode(this.nodeOrShadowRoot(ge)))}}let Fn=(()=>{class Me extends Ut{constructor(re){super(re)}supports(re){return!0}addEventListener(re,xe,Ke){return re.addEventListener(xe,Ke,!1),()=>this.removeEventListener(re,xe,Ke)}removeEventListener(re,xe,Ke){return re.removeEventListener(xe,Ke)}}return Me.\u0275fac=function(re){return new(re||Me)(f.LFG(l.K0))},Me.\u0275prov=f.Yz7({token:Me,factory:Me.\u0275fac}),Me})();const Be=["alt","control","meta","shift"],At={"\b":"Backspace","\t":"Tab","\x7f":"Delete","\x1b":"Escape",Del:"Delete",Esc:"Escape",Left:"ArrowLeft",Right:"ArrowRight",Up:"ArrowUp",Down:"ArrowDown",Menu:"ContextMenu",Scroll:"ScrollLock",Win:"OS"},Ct={A:"1",B:"2",C:"3",D:"4",E:"5",F:"6",G:"7",H:"8",I:"9",J:"*",K:"+",M:"-",N:".",O:"/","`":"0","\x90":"NumLock"},mt={alt:Me=>Me.altKey,control:Me=>Me.ctrlKey,meta:Me=>Me.metaKey,shift:Me=>Me.shiftKey};let an=(()=>{class Me extends Ut{constructor(re){super(re)}supports(re){return null!=Me.parseEventName(re)}addEventListener(re,xe,Ke){const Jt=Me.parseEventName(xe),pn=Me.eventCallback(Jt.fullKey,Ke,this.manager.getZone());return this.manager.getZone().runOutsideAngular(()=>(0,l.q)().onAndCancel(re,Jt.domEventName,pn))}static parseEventName(re){const xe=re.toLowerCase().split("."),Ke=xe.shift();if(0===xe.length||"keydown"!==Ke&&"keyup"!==Ke)return null;const Jt=Me._normalizeKey(xe.pop());let pn="";if(Be.forEach(oi=>{const ai=xe.indexOf(oi);ai>-1&&(xe.splice(ai,1),pn+=oi+".")}),pn+=Jt,0!=xe.length||0===Jt.length)return null;const Yn={};return Yn.domEventName=Ke,Yn.fullKey=pn,Yn}static getEventFullKey(re){let xe="",Ke=function(Me){let ge=Me.key;if(null==ge){if(ge=Me.keyIdentifier,null==ge)return"Unidentified";ge.startsWith("U+")&&(ge=String.fromCharCode(parseInt(ge.substring(2),16)),3===Me.location&&Ct.hasOwnProperty(ge)&&(ge=Ct[ge]))}return At[ge]||ge}(re);return Ke=Ke.toLowerCase()," "===Ke?Ke="space":"."===Ke&&(Ke="dot"),Be.forEach(Jt=>{Jt!=Ke&&mt[Jt](re)&&(xe+=Jt+".")}),xe+=Ke,xe}static eventCallback(re,xe,Ke){return Jt=>{Me.getEventFullKey(Jt)===re&&Ke.runGuarded(()=>xe(Jt))}}static _normalizeKey(re){return"esc"===re?"escape":re}}return Me.\u0275fac=function(re){return new(re||Me)(f.LFG(l.K0))},Me.\u0275prov=f.Yz7({token:Me,factory:Me.\u0275fac}),Me})(),Pn=(()=>{class Me{}return Me.\u0275fac=function(re){return new(re||Me)},Me.\u0275prov=f.Yz7({token:Me,factory:function(re){let xe=null;return xe=re?new(re||Me):f.LFG(Vn),xe},providedIn:"root"}),Me})(),Vn=(()=>{class Me extends Pn{constructor(re){super(),this._doc=re}sanitize(re,xe){if(null==xe)return null;switch(re){case f.q3G.NONE:return xe;case f.q3G.HTML:return(0,f.qzn)(xe,"HTML")?(0,f.z3N)(xe):(0,f.EiD)(this._doc,String(xe)).toString();case f.q3G.STYLE:return(0,f.qzn)(xe,"Style")?(0,f.z3N)(xe):xe;case f.q3G.SCRIPT:if((0,f.qzn)(xe,"Script"))return(0,f.z3N)(xe);throw new Error("unsafe value used in a script context");case f.q3G.URL:return(0,f.yhl)(xe),(0,f.qzn)(xe,"URL")?(0,f.z3N)(xe):(0,f.mCW)(String(xe));case f.q3G.RESOURCE_URL:if((0,f.qzn)(xe,"ResourceURL"))return(0,f.z3N)(xe);throw new Error("unsafe value used in a resource URL context (see https://g.co/ng/security#xss)");default:throw new Error(`Unexpected SecurityContext ${re} (see https://g.co/ng/security#xss)`)}}bypassSecurityTrustHtml(re){return(0,f.JVY)(re)}bypassSecurityTrustStyle(re){return(0,f.L6k)(re)}bypassSecurityTrustScript(re){return(0,f.eBb)(re)}bypassSecurityTrustUrl(re){return(0,f.LAX)(re)}bypassSecurityTrustResourceUrl(re){return(0,f.pB0)(re)}}return Me.\u0275fac=function(re){return new(re||Me)(f.LFG(l.K0))},Me.\u0275prov=f.Yz7({token:Me,factory:function(re){let xe=null;return xe=re?new re:function(Me){return new Vn(Me.get(l.K0))}(f.LFG(f.zs3)),xe},providedIn:"root"}),Me})();const fe=(0,f.eFA)(f._c5,"browser",[{provide:f.Lbi,useValue:l.bD},{provide:f.g9A,useValue:function(){o.makeCurrent(),ie.init()},multi:!0},{provide:l.K0,useFactory:function(){return(0,f.RDi)(document),document},deps:[]}]),ae=[[],{provide:f.zSh,useValue:"root"},{provide:f.qLn,useFactory:function(){return new f.qLn},deps:[]},{provide:Kt,useClass:Fn,multi:!0,deps:[l.K0,f.R0b,f.Lbi]},{provide:Kt,useClass:an,multi:!0,deps:[l.K0]},[],{provide:ut,useClass:ut,deps:[Zt,ft,f.AFp]},{provide:f.FYo,useExisting:ut},{provide:on,useExisting:ft},{provide:ft,useClass:ft,deps:[l.K0]},{provide:f.dDg,useClass:f.dDg,deps:[f.R0b]},{provide:Zt,useClass:Zt,deps:[Kt,f.R0b]},{provide:l.JF,useClass:Ne,deps:[]},[]];let je=(()=>{class Me{constructor(re){if(re)throw new Error("BrowserModule has already been loaded. If you need access to common directives such as NgIf and NgFor from a lazy loaded module, import CommonModule instead.")}static withServerTransition(re){return{ngModule:Me,providers:[{provide:f.AFp,useValue:re.appId},{provide:W,useExisting:f.AFp},ne]}}}return Me.\u0275fac=function(re){return new(re||Me)(f.LFG(Me,12))},Me.\u0275mod=f.oAB({type:Me}),Me.\u0275inj=f.cJS({providers:ae,imports:[l.ez,f.hGG]}),Me})();"undefined"!=typeof window&&window},1086:(St,Se,M)=>{M.d(Se,{gz:()=>di,m2:()=>tn,F0:()=>Si,Bz:()=>vo,lC:()=>is});var l=M(6019),f=M(3668);const o=(()=>{function E(){return Error.call(this),this.message="no elements in sequence",this.name="EmptyError",this}return E.prototype=Object.create(Error.prototype),E})();var oe=M(1915),U=M(2411),te=M(4099),G=M(2668),W=M(5548),Q=M(3596),ne=M(5476),ie=M(172),Ne=M(5783),qe=M(3405),it=M(4168);function Le(E,y){let _=!1;return arguments.length>=2&&(_=!0),function(R){return R.lift(new dt(E,y,_))}}class dt{constructor(y,_,I=!1){this.accumulator=y,this.seed=_,this.hasSeed=I}call(y,_){return _.subscribe(new Qe(y,this.accumulator,this.seed,this.hasSeed))}}class Qe extends it.L{constructor(y,_,I,R){super(y),this.accumulator=_,this._seed=I,this.hasSeed=R,this.index=0}get seed(){return this._seed}set seed(y){this.hasSeed=!0,this._seed=y}_next(y){if(this.hasSeed)return this._tryNext(y);this.seed=y,this.destination.next(y)}_tryNext(y){const _=this.index++;let I;try{I=this.accumulator(this.seed,y,_)}catch(R){this.destination.error(R)}this.seed=I,this.destination.next(I)}}var Ge=M(8345);function Nt(E){return function(_){const I=new rt(E),R=_.lift(I);return I.caught=R}}class rt{constructor(y){this.selector=y}call(y,_){return _.subscribe(new Ce(y,this.selector,this.caught))}}class Ce extends Ge.Ds{constructor(y,_,I){super(y),this.selector=_,this.caught=I}error(y){if(!this.isStopped){let _;try{_=this.selector(y,this.caught)}catch(V){return void super.error(V)}this._unsubscribeAndRecycle();const I=new Ge.IY(this);this.add(I);const R=(0,Ge.ft)(_,I);R!==I&&this.add(R)}}}var ht=M(8735),at=M(523);function wt(E){return function(_){return 0===E?(0,ie.c)():_.lift(new xt(E))}}class xt{constructor(y){if(this.total=y,this.total<0)throw new at.W}call(y,_){return _.subscribe(new Yt(y,this.total))}}class Yt extends it.L{constructor(y,_){super(y),this.total=_,this.ring=new Array,this.count=0}_next(y){const _=this.ring,I=this.total,R=this.count++;_.length<I?_.push(y):_[R%I]=y}_complete(){const y=this.destination;let _=this.count;if(_>0){const I=this.count>=this.total?this.total:this.count,R=this.ring;for(let V=0;V<I;V++){const ce=_++%I;y.next(R[ce])}}y.complete()}}function Kt(E=on){return y=>y.lift(new Zt(E))}class Zt{constructor(y){this.errorFactory=y}call(y,_){return _.subscribe(new Ut(y,this.errorFactory))}}class Ut extends it.L{constructor(y,_){super(y),this.errorFactory=_,this.hasValue=!1}_next(y){this.hasValue=!0,this.destination.next(y)}_complete(){if(this.hasValue)return this.destination.complete();{let y;try{y=this.errorFactory()}catch(_){y=_}this.destination.error(y)}}}function on(){return new o}function ft(E=null){return y=>y.lift(new Ft(E))}class Ft{constructor(y){this.defaultValue=y}call(y,_){return _.subscribe(new Ye(y,this.defaultValue))}}class Ye extends it.L{constructor(y,_){super(y),this.defaultValue=_,this.isEmpty=!0}_next(y){this.isEmpty=!1,this.destination.next(y)}_complete(){this.isEmpty&&this.destination.next(this.defaultValue),this.destination.complete()}}var Dt=M(7255),Gt=M(6636);function zt(E,y){const _=arguments.length>=2;return I=>I.pipe(E?(0,ht.h)((R,V)=>E(R,V,I)):Dt.y,(0,Gt.q)(1),_?ft(y):Kt(()=>new o))}var sn=M(8053),We=M(9204),vt=M(1125),Ee=M(6700),Fe=M(4421),Ve=M(1366),ut=M(5234),Pe=M(6658),gt=M(2225);class It{constructor(y,_){this.id=y,this.url=_}}class jt extends It{constructor(y,_,I="imperative",R=null){super(y,_),this.navigationTrigger=I,this.restoredState=R}toString(){return`NavigationStart(id: ${this.id}, url: '${this.url}')`}}class tn extends It{constructor(y,_,I){super(y,_),this.urlAfterRedirects=I}toString(){return`NavigationEnd(id: ${this.id}, url: '${this.url}', urlAfterRedirects: '${this.urlAfterRedirects}')`}}class Fn extends It{constructor(y,_,I){super(y,_),this.reason=I}toString(){return`NavigationCancel(id: ${this.id}, url: '${this.url}')`}}class Xe extends It{constructor(y,_,I){super(y,_),this.error=I}toString(){return`NavigationError(id: ${this.id}, url: '${this.url}', error: ${this.error})`}}class $ extends It{constructor(y,_,I,R){super(y,_),this.urlAfterRedirects=I,this.state=R}toString(){return`RoutesRecognized(id: ${this.id}, url: '${this.url}', urlAfterRedirects: '${this.urlAfterRedirects}', state: ${this.state})`}}class X extends It{constructor(y,_,I,R){super(y,_),this.urlAfterRedirects=I,this.state=R}toString(){return`GuardsCheckStart(id: ${this.id}, url: '${this.url}', urlAfterRedirects: '${this.urlAfterRedirects}', state: ${this.state})`}}class Te extends It{constructor(y,_,I,R,V){super(y,_),this.urlAfterRedirects=I,this.state=R,this.shouldActivate=V}toString(){return`GuardsCheckEnd(id: ${this.id}, url: '${this.url}', urlAfterRedirects: '${this.urlAfterRedirects}', state: ${this.state}, shouldActivate: ${this.shouldActivate})`}}class et extends It{constructor(y,_,I,R){super(y,_),this.urlAfterRedirects=I,this.state=R}toString(){return`ResolveStart(id: ${this.id}, url: '${this.url}', urlAfterRedirects: '${this.urlAfterRedirects}', state: ${this.state})`}}class nt extends It{constructor(y,_,I,R){super(y,_),this.urlAfterRedirects=I,this.state=R}toString(){return`ResolveEnd(id: ${this.id}, url: '${this.url}', urlAfterRedirects: '${this.urlAfterRedirects}', state: ${this.state})`}}class Ae{constructor(y){this.route=y}toString(){return`RouteConfigLoadStart(path: ${this.route.path})`}}class le{constructor(y){this.route=y}toString(){return`RouteConfigLoadEnd(path: ${this.route.path})`}}class ue{constructor(y){this.snapshot=y}toString(){return`ChildActivationStart(path: '${this.snapshot.routeConfig&&this.snapshot.routeConfig.path||""}')`}}class Be{constructor(y){this.snapshot=y}toString(){return`ChildActivationEnd(path: '${this.snapshot.routeConfig&&this.snapshot.routeConfig.path||""}')`}}class ct{constructor(y){this.snapshot=y}toString(){return`ActivationStart(path: '${this.snapshot.routeConfig&&this.snapshot.routeConfig.path||""}')`}}class At{constructor(y){this.snapshot=y}toString(){return`ActivationEnd(path: '${this.snapshot.routeConfig&&this.snapshot.routeConfig.path||""}')`}}class Ct{constructor(y,_,I){this.routerEvent=y,this.position=_,this.anchor=I}toString(){return`Scroll(anchor: '${this.anchor}', position: '${this.position?`${this.position[0]}, ${this.position[1]}`:null}')`}}const mt="primary";class an{constructor(y){this.params=y||{}}has(y){return Object.prototype.hasOwnProperty.call(this.params,y)}get(y){if(this.has(y)){const _=this.params[y];return Array.isArray(_)?_[0]:_}return null}getAll(y){if(this.has(y)){const _=this.params[y];return Array.isArray(_)?_:[_]}return[]}get keys(){return Object.keys(this.params)}}function Tn(E){return new an(E)}const Pn="ngNavigationCancelingError";function hn(E){const y=Error("NavigationCancelingError: "+E);return y[Pn]=!0,y}function vn(E,y,_){const I=_.path.split("/");if(I.length>E.length||"full"===_.pathMatch&&(y.hasChildren()||I.length<E.length))return null;const R={};for(let V=0;V<I.length;V++){const ce=I[V],we=E[V];if(ce.startsWith(":"))R[ce.substring(1)]=we;else if(ce!==we.path)return null}return{consumed:E.slice(0,I.length),posParams:R}}function ye(E,y){const _=E?Object.keys(E):void 0,I=y?Object.keys(y):void 0;if(!_||!I||_.length!=I.length)return!1;let R;for(let V=0;V<_.length;V++)if(R=_[V],!he(E[R],y[R]))return!1;return!0}function he(E,y){if(Array.isArray(E)&&Array.isArray(y)){if(E.length!==y.length)return!1;const _=[...E].sort(),I=[...y].sort();return _.every((R,V)=>I[V]===R)}return E===y}function Je(E){return Array.prototype.concat.apply([],E)}function Qt(E){return E.length>0?E[E.length-1]:null}function fe(E,y){for(const _ in E)E.hasOwnProperty(_)&&y(E[_],_)}function ae(E){return(0,f.CqO)(E)?E:(0,f.QGY)(E)?(0,oe.D)(Promise.resolve(E)):(0,U.of)(E)}const st={exact:function ri(E,y,_){if(!Oe(E.segments,y.segments)||!De(E.segments,y.segments,_)||E.numberOfChildren!==y.numberOfChildren)return!1;for(const I in y.children)if(!E.children[I]||!ri(E.children[I],y.children[I],_))return!1;return!0},subset:Tt},kt={exact:function(E,y){return ye(E,y)},subset:function(E,y){return Object.keys(y).length<=Object.keys(E).length&&Object.keys(y).every(_=>he(E[_],y[_]))},ignored:()=>!0};function fn(E,y,_){return st[_.paths](E.root,y.root,_.matrixParams)&&kt[_.queryParams](E.queryParams,y.queryParams)&&!("exact"===_.fragment&&E.fragment!==y.fragment)}function Tt(E,y,_){return $t(E,y,y.segments,_)}function $t(E,y,_,I){if(E.segments.length>_.length){const R=E.segments.slice(0,_.length);return!(!Oe(R,_)||y.hasChildren()||!De(R,_,I))}if(E.segments.length===_.length){if(!Oe(E.segments,_)||!De(E.segments,_,I))return!1;for(const R in y.children)if(!E.children[R]||!Tt(E.children[R],y.children[R],I))return!1;return!0}{const R=_.slice(0,E.segments.length),V=_.slice(E.segments.length);return!!(Oe(E.segments,R)&&De(E.segments,R,I)&&E.children[mt])&&$t(E.children[mt],y,V,I)}}function De(E,y,_){return y.every((I,R)=>kt[_](E[R].parameters,I.parameters))}class H{constructor(y,_,I){this.root=y,this.queryParams=_,this.fragment=I}get queryParamMap(){return this._queryParamMap||(this._queryParamMap=Tn(this.queryParams)),this._queryParamMap}toString(){return gn.serialize(this)}}class K{constructor(y,_){this.segments=y,this.children=_,this.parent=null,fe(_,(I,R)=>I.parent=this)}hasChildren(){return this.numberOfChildren>0}get numberOfChildren(){return Object.keys(this.children).length}toString(){return bn(this)}}class A{constructor(y,_){this.path=y,this.parameters=_}get parameterMap(){return this._parameterMap||(this._parameterMap=Tn(this.parameters)),this._parameterMap}toString(){return Jt(this)}}function Oe(E,y){return E.length===y.length&&E.every((_,I)=>_.path===y[I].path)}class Ze{}class Bt{parse(y){const _=new Hr(y);return new H(_.parseRootSegment(),_.parseQueryParams(),_.parseFragment())}serialize(y){const _=`/${jn(y.root,!0)}`,I=function(E){const y=Object.keys(E).map(_=>{const I=E[_];return Array.isArray(I)?I.map(R=>`${Me(_)}=${Me(R)}`).join("&"):`${Me(_)}=${Me(I)}`}).filter(_=>!!_);return y.length?`?${y.join("&")}`:""}(y.queryParams);var E;return`${_}${I}${"string"==typeof y.fragment?`#${E=y.fragment,encodeURI(E)}`:""}`}}const gn=new Bt;function bn(E){return E.segments.map(y=>Jt(y)).join("/")}function jn(E,y){if(!E.hasChildren())return bn(E);if(y){const _=E.children[mt]?jn(E.children[mt],!1):"",I=[];return fe(E.children,(R,V)=>{V!==mt&&I.push(`${V}:${jn(R,!1)}`)}),I.length>0?`${_}(${I.join("//")})`:_}{const _=function(E,y){let _=[];return fe(E.children,(I,R)=>{R===mt&&(_=_.concat(y(I,R)))}),fe(E.children,(I,R)=>{R!==mt&&(_=_.concat(y(I,R)))}),_}(E,(I,R)=>R===mt?[jn(E.children[mt],!1)]:[`${R}:${jn(I,!1)}`]);return 1===Object.keys(E.children).length&&null!=E.children[mt]?`${bn(E)}/${_[0]}`:`${bn(E)}/(${_.join("//")})`}}function Nn(E){return encodeURIComponent(E).replace(/%40/g,"@").replace(/%3A/gi,":").replace(/%24/g,"$").replace(/%2C/gi,",")}function Me(E){return Nn(E).replace(/%3B/gi,";")}function re(E){return Nn(E).replace(/\(/g,"%28").replace(/\)/g,"%29").replace(/%26/gi,"&")}function xe(E){return decodeURIComponent(E)}function Ke(E){return xe(E.replace(/\+/g,"%20"))}function Jt(E){return`${re(E.path)}${function(E){return Object.keys(E).map(y=>`;${re(y)}=${re(E[y])}`).join("")}(E.parameters)}`}const oi=/^[^\/()?;=#]+/;function ai(E){const y=E.match(oi);return y?y[0]:""}const fr=/^[^=?&#]+/,Ai=/^[^&#]+/;class Hr{constructor(y){this.url=y,this.remaining=y}parseRootSegment(){return this.consumeOptional("/"),""===this.remaining||this.peekStartsWith("?")||this.peekStartsWith("#")?new K([],{}):new K([],this.parseChildren())}parseQueryParams(){const y={};if(this.consumeOptional("?"))do{this.parseQueryParam(y)}while(this.consumeOptional("&"));return y}parseFragment(){return this.consumeOptional("#")?decodeURIComponent(this.remaining):null}parseChildren(){if(""===this.remaining)return{};this.consumeOptional("/");const y=[];for(this.peekStartsWith("(")||y.push(this.parseSegment());this.peekStartsWith("/")&&!this.peekStartsWith("//")&&!this.peekStartsWith("/(");)this.capture("/"),y.push(this.parseSegment());let _={};this.peekStartsWith("/(")&&(this.capture("/"),_=this.parseParens(!0));let I={};return this.peekStartsWith("(")&&(I=this.parseParens(!1)),(y.length>0||Object.keys(_).length>0)&&(I[mt]=new K(y,_)),I}parseSegment(){const y=ai(this.remaining);if(""===y&&this.peekStartsWith(";"))throw new Error(`Empty path url segment cannot have parameters: '${this.remaining}'.`);return this.capture(y),new A(xe(y),this.parseMatrixParams())}parseMatrixParams(){const y={};for(;this.consumeOptional(";");)this.parseParam(y);return y}parseParam(y){const _=ai(this.remaining);if(!_)return;this.capture(_);let I="";if(this.consumeOptional("=")){const R=ai(this.remaining);R&&(I=R,this.capture(I))}y[xe(_)]=xe(I)}parseQueryParam(y){const _=function(E){const y=E.match(fr);return y?y[0]:""}(this.remaining);if(!_)return;this.capture(_);let I="";if(this.consumeOptional("=")){const ce=function(E){const y=E.match(Ai);return y?y[0]:""}(this.remaining);ce&&(I=ce,this.capture(I))}const R=Ke(_),V=Ke(I);if(y.hasOwnProperty(R)){let ce=y[R];Array.isArray(ce)||(ce=[ce],y[R]=ce),ce.push(V)}else y[R]=V}parseParens(y){const _={};for(this.capture("(");!this.consumeOptional(")")&&this.remaining.length>0;){const I=ai(this.remaining),R=this.remaining[I.length];if("/"!==R&&")"!==R&&";"!==R)throw new Error(`Cannot parse url '${this.url}'`);let V;I.indexOf(":")>-1?(V=I.substr(0,I.indexOf(":")),this.capture(V),this.capture(":")):y&&(V=mt);const ce=this.parseChildren();_[V]=1===Object.keys(ce).length?ce[mt]:new K([],ce),this.consumeOptional("//")}return _}peekStartsWith(y){return this.remaining.startsWith(y)}consumeOptional(y){return!!this.peekStartsWith(y)&&(this.remaining=this.remaining.substring(y.length),!0)}capture(y){if(!this.consumeOptional(y))throw new Error(`Expected "${y}".`)}}class gr{constructor(y){this._root=y}get root(){return this._root.value}parent(y){const _=this.pathFromRoot(y);return _.length>1?_[_.length-2]:null}children(y){const _=Hi(y,this._root);return _?_.children.map(I=>I.value):[]}firstChild(y){const _=Hi(y,this._root);return _&&_.children.length>0?_.children[0].value:null}siblings(y){const _=zi(y,this._root);return _.length<2?[]:_[_.length-2].children.map(R=>R.value).filter(R=>R!==y)}pathFromRoot(y){return zi(y,this._root).map(_=>_.value)}}function Hi(E,y){if(E===y.value)return y;for(const _ of y.children){const I=Hi(E,_);if(I)return I}return null}function zi(E,y){if(E===y.value)return[y];for(const _ of y.children){const I=zi(E,_);if(I.length)return I.unshift(y),I}return[]}class Ci{constructor(y,_){this.value=y,this.children=_}toString(){return`TreeNode(${this.value})`}}function _i(E){const y={};return E&&E.children.forEach(_=>y[_.value.outlet]=_),y}class Ii extends gr{constructor(y,_){super(y),this.snapshot=_,z(this,y)}toString(){return this.snapshot.toString()}}function li(E,y){const _=function(E,y){const ce=new se([],{},{},"",{},mt,y,null,E.root,-1,{});return new be("",new Ci(ce,[]))}(E,y),I=new te.X([new A("",{})]),R=new te.X({}),V=new te.X({}),ce=new te.X({}),we=new te.X(""),yt=new di(I,R,ce,we,V,mt,y,_.root);return yt.snapshot=_.root,new Ii(new Ci(yt,[]),_)}class di{constructor(y,_,I,R,V,ce,we,yt){this.url=y,this.params=_,this.queryParams=I,this.fragment=R,this.data=V,this.outlet=ce,this.component=we,this._futureSnapshot=yt}get routeConfig(){return this._futureSnapshot.routeConfig}get root(){return this._routerState.root}get parent(){return this._routerState.parent(this)}get firstChild(){return this._routerState.firstChild(this)}get children(){return this._routerState.children(this)}get pathFromRoot(){return this._routerState.pathFromRoot(this)}get paramMap(){return this._paramMap||(this._paramMap=this.params.pipe((0,sn.U)(y=>Tn(y)))),this._paramMap}get queryParamMap(){return this._queryParamMap||(this._queryParamMap=this.queryParams.pipe((0,sn.U)(y=>Tn(y)))),this._queryParamMap}toString(){return this.snapshot?this.snapshot.toString():`Future(${this._futureSnapshot})`}}function yi(E,y="emptyOnly"){const _=E.pathFromRoot;let I=0;if("always"!==y)for(I=_.length-1;I>=1;){const R=_[I],V=_[I-1];if(R.routeConfig&&""===R.routeConfig.path)I--;else{if(V.component)break;I--}}return function(E){return E.reduce((y,_)=>({params:Wt(Wt({},y.params),_.params),data:Wt(Wt({},y.data),_.data),resolve:Wt(Wt({},y.resolve),_._resolvedData)}),{params:{},data:{},resolve:{}})}(_.slice(I))}class se{constructor(y,_,I,R,V,ce,we,yt,cn,Wn,Dn){this.url=y,this.params=_,this.queryParams=I,this.fragment=R,this.data=V,this.outlet=ce,this.component=we,this.routeConfig=yt,this._urlSegment=cn,this._lastPathIndex=Wn,this._resolve=Dn}get root(){return this._routerState.root}get parent(){return this._routerState.parent(this)}get firstChild(){return this._routerState.firstChild(this)}get children(){return this._routerState.children(this)}get pathFromRoot(){return this._routerState.pathFromRoot(this)}get paramMap(){return this._paramMap||(this._paramMap=Tn(this.params)),this._paramMap}get queryParamMap(){return this._queryParamMap||(this._queryParamMap=Tn(this.queryParams)),this._queryParamMap}toString(){return`Route(url:'${this.url.map(I=>I.toString()).join("/")}', path:'${this.routeConfig?this.routeConfig.path:""}')`}}class be extends gr{constructor(y,_){super(_),this.url=y,z(this,_)}toString(){return ke(this._root)}}function z(E,y){y.value._routerState=E,y.children.forEach(_=>z(E,_))}function ke(E){const y=E.children.length>0?` { ${E.children.map(ke).join(", ")} } `:"";return`${E.value}${y}`}function en(E){if(E.snapshot){const y=E.snapshot,_=E._futureSnapshot;E.snapshot=_,ye(y.queryParams,_.queryParams)||E.queryParams.next(_.queryParams),y.fragment!==_.fragment&&E.fragment.next(_.fragment),ye(y.params,_.params)||E.params.next(_.params),function(E,y){if(E.length!==y.length)return!1;for(let _=0;_<E.length;++_)if(!ye(E[_],y[_]))return!1;return!0}(y.url,_.url)||E.url.next(_.url),ye(y.data,_.data)||E.data.next(_.data)}else E.snapshot=E._futureSnapshot,E.data.next(E._futureSnapshot.data)}function qt(E,y){const _=ye(E.params,y.params)&&function(E,y){return Oe(E,y)&&E.every((_,I)=>ye(_.parameters,y[I].parameters))}(E.url,y.url);return _&&!(!E.parent!=!y.parent)&&(!E.parent||qt(E.parent,y.parent))}function ii(E,y,_){if(_&&E.shouldReuseRoute(y.value,_.value.snapshot)){const I=_.value;I._futureSnapshot=y.value;const R=function(E,y,_){return y.children.map(I=>{for(const R of _.children)if(E.shouldReuseRoute(I.value,R.value.snapshot))return ii(E,I,R);return ii(E,I)})}(E,y,_);return new Ci(I,R)}{if(E.shouldAttach(y.value)){const V=E.retrieve(y.value);if(null!==V){const ce=V.route;return ce.value._futureSnapshot=y.value,ce.children=y.children.map(we=>ii(E,we)),ce}}const I=function(E){return new di(new te.X(E.url),new te.X(E.params),new te.X(E.queryParams),new te.X(E.fragment),new te.X(E.data),E.outlet,E.component,E)}(y.value),R=y.children.map(V=>ii(E,V));return new Ci(I,R)}}function Ur(E){return"object"==typeof E&&null!=E&&!E.outlets&&!E.segmentPath}function Mi(E){return"object"==typeof E&&null!=E&&E.outlets}function Er(E,y,_,I,R){let V={};return I&&fe(I,(ce,we)=>{V[we]=Array.isArray(ce)?ce.map(yt=>`${yt}`):`${ce}`}),new H(_.root===E?y:es(_.root,E,y),V,R)}function es(E,y,_){const I={};return fe(E.children,(R,V)=>{I[V]=R===y?_:es(R,y,_)}),new K(E.segments,I)}class ms{constructor(y,_,I){if(this.isAbsolute=y,this.numberOfDoubleDots=_,this.commands=I,y&&I.length>0&&Ur(I[0]))throw new Error("Root segment cannot have matrix parameters");const R=I.find(Mi);if(R&&R!==Qt(I))throw new Error("{outlets:{}} has to be the last command")}toRoot(){return this.isAbsolute&&1===this.commands.length&&"/"==this.commands[0]}}class zr{constructor(y,_,I){this.segmentGroup=y,this.processChildren=_,this.index=I}}function ts(E,y,_){if(E||(E=new K([],{})),0===E.segments.length&&E.hasChildren())return qi(E,y,_);const I=function(E,y,_){let I=0,R=y;const V={match:!1,pathIndex:0,commandIndex:0};for(;R<E.segments.length;){if(I>=_.length)return V;const ce=E.segments[R],we=_[I];if(Mi(we))break;const yt=`${we}`,cn=I<_.length-1?_[I+1]:null;if(R>0&&void 0===yt)break;if(yt&&cn&&"object"==typeof cn&&void 0===cn.outlets){if(!mr(yt,cn,ce))return V;I+=2}else{if(!mr(yt,{},ce))return V;I++}R++}return{match:!0,pathIndex:R,commandIndex:I}}(E,y,_),R=_.slice(I.commandIndex);if(I.match&&I.pathIndex<E.segments.length){const V=new K(E.segments.slice(0,I.pathIndex),{});return V.children[mt]=new K(E.segments.slice(I.pathIndex),E.children),qi(V,0,R)}return I.match&&0===R.length?new K(E.segments,{}):I.match&&!E.hasChildren()?pi(E,y,_):I.match?qi(E,0,R):pi(E,y,_)}function qi(E,y,_){if(0===_.length)return new K(E.segments,{});{const I=function(E){return Mi(E[0])?E[0].outlets:{[mt]:E}}(_),R={};return fe(I,(V,ce)=>{"string"==typeof V&&(V=[V]),null!==V&&(R[ce]=ts(E.children[ce],y,V))}),fe(E.children,(V,ce)=>{void 0===I[ce]&&(R[ce]=V)}),new K(E.segments,R)}}function pi(E,y,_){const I=E.segments.slice(0,y);let R=0;for(;R<_.length;){const V=_[R];if(Mi(V)){const yt=wr(V.outlets);return new K(I,yt)}if(0===R&&Ur(_[0])){I.push(new A(E.segments[y].path,Oi(_[0]))),R++;continue}const ce=Mi(V)?V.outlets[mt]:`${V}`,we=R<_.length-1?_[R+1]:null;ce&&we&&Ur(we)?(I.push(new A(ce,Oi(we))),R+=2):(I.push(new A(ce,{})),R++)}return new K(I,{})}function wr(E){const y={};return fe(E,(_,I)=>{"string"==typeof _&&(_=[_]),null!==_&&(y[I]=pi(new K([],{}),0,_))}),y}function Oi(E){const y={};return fe(E,(_,I)=>y[I]=`${_}`),y}function mr(E,y,_){return E==_.path&&ye(y,_.parameters)}class ei{constructor(y,_,I,R){this.routeReuseStrategy=y,this.futureState=_,this.currState=I,this.forwardEvent=R}activate(y){const _=this.futureState._root,I=this.currState?this.currState._root:null;this.deactivateChildRoutes(_,I,y),en(this.futureState.root),this.activateChildRoutes(_,I,y)}deactivateChildRoutes(y,_,I){const R=_i(_);y.children.forEach(V=>{const ce=V.value.outlet;this.deactivateRoutes(V,R[ce],I),delete R[ce]}),fe(R,(V,ce)=>{this.deactivateRouteAndItsChildren(V,I)})}deactivateRoutes(y,_,I){const R=y.value,V=_?_.value:null;if(R===V)if(R.component){const ce=I.getContext(R.outlet);ce&&this.deactivateChildRoutes(y,_,ce.children)}else this.deactivateChildRoutes(y,_,I);else V&&this.deactivateRouteAndItsChildren(_,I)}deactivateRouteAndItsChildren(y,_){this.routeReuseStrategy.shouldDetach(y.value.snapshot)?this.detachAndStoreRouteSubtree(y,_):this.deactivateRouteAndOutlet(y,_)}detachAndStoreRouteSubtree(y,_){const I=_.getContext(y.value.outlet),R=I&&y.value.component?I.children:_,V=_i(y);for(const ce of Object.keys(V))this.deactivateRouteAndItsChildren(V[ce],R);if(I&&I.outlet){const ce=I.outlet.detach(),we=I.children.onOutletDeactivated();this.routeReuseStrategy.store(y.value.snapshot,{componentRef:ce,route:y,contexts:we})}}deactivateRouteAndOutlet(y,_){const I=_.getContext(y.value.outlet),R=I&&y.value.component?I.children:_,V=_i(y);for(const ce of Object.keys(V))this.deactivateRouteAndItsChildren(V[ce],R);I&&I.outlet&&(I.outlet.deactivate(),I.children.onOutletDeactivated(),I.attachRef=null,I.resolver=null,I.route=null)}activateChildRoutes(y,_,I){const R=_i(_);y.children.forEach(V=>{this.activateRoutes(V,R[V.value.outlet],I),this.forwardEvent(new At(V.value.snapshot))}),y.children.length&&this.forwardEvent(new Be(y.value.snapshot))}activateRoutes(y,_,I){const R=y.value,V=_?_.value:null;if(en(R),R===V)if(R.component){const ce=I.getOrCreateContext(R.outlet);this.activateChildRoutes(y,_,ce.children)}else this.activateChildRoutes(y,_,I);else if(R.component){const ce=I.getOrCreateContext(R.outlet);if(this.routeReuseStrategy.shouldAttach(R.snapshot)){const we=this.routeReuseStrategy.retrieve(R.snapshot);this.routeReuseStrategy.store(R.snapshot,null),ce.children.onOutletReAttached(we.contexts),ce.attachRef=we.componentRef,ce.route=we.route.value,ce.outlet&&ce.outlet.attach(we.componentRef,we.route.value),en(we.route.value),this.activateChildRoutes(y,null,ce.children)}else{const we=function(E){for(let y=E.parent;y;y=y.parent){const _=y.routeConfig;if(_&&_._loadedConfig)return _._loadedConfig;if(_&&_.component)return null}return null}(R.snapshot),yt=we?we.module.componentFactoryResolver:null;ce.attachRef=null,ce.route=R,ce.resolver=yt,ce.outlet&&ce.outlet.activateWith(R,yt),this.activateChildRoutes(y,null,ce.children)}}else this.activateChildRoutes(y,null,I)}}class _r{constructor(y,_){this.routes=y,this.module=_}}function Wi(E){return"function"==typeof E}function rr(E){return E instanceof H}const ci=Symbol("INITIAL_VALUE");function vr(){return(0,We.w)(E=>(0,G.aj)(E.map(y=>y.pipe((0,Gt.q)(1),(0,vt.O)(ci)))).pipe(Le((y,_)=>{let I=!1;return _.reduce((R,V,ce)=>R!==ci?R:(V===ci&&(I=!0),I||!1!==V&&ce!==_.length-1&&!rr(V)?R:V),y)},ci),(0,ht.h)(y=>y!==ci),(0,sn.U)(y=>rr(y)?y:!0===y),(0,Gt.q)(1)))}class vs{constructor(){this.outlet=null,this.route=null,this.resolver=null,this.children=new sr,this.attachRef=null}}class sr{constructor(){this.contexts=new Map}onChildOutletCreated(y,_){const I=this.getOrCreateContext(y);I.outlet=_,this.contexts.set(y,I)}onChildOutletDestroyed(y){const _=this.getContext(y);_&&(_.outlet=null,_.attachRef=null)}onOutletDeactivated(){const y=this.contexts;return this.contexts=new Map,y}onOutletReAttached(y){this.contexts=y}getOrCreateContext(y){let _=this.getContext(y);return _||(_=new vs,this.contexts.set(y,_)),_}getContext(y){return this.contexts.get(y)||null}}let is=(()=>{class E{constructor(_,I,R,V,ce){this.parentContexts=_,this.location=I,this.resolver=R,this.changeDetector=ce,this.activated=null,this._activatedRoute=null,this.activateEvents=new f.vpe,this.deactivateEvents=new f.vpe,this.attachEvents=new f.vpe,this.detachEvents=new f.vpe,this.name=V||mt,_.onChildOutletCreated(this.name,this)}ngOnDestroy(){this.parentContexts.onChildOutletDestroyed(this.name)}ngOnInit(){if(!this.activated){const _=this.parentContexts.getContext(this.name);_&&_.route&&(_.attachRef?this.attach(_.attachRef,_.route):this.activateWith(_.route,_.resolver||null))}}get isActivated(){return!!this.activated}get component(){if(!this.activated)throw new Error("Outlet is not activated");return this.activated.instance}get activatedRoute(){if(!this.activated)throw new Error("Outlet is not activated");return this._activatedRoute}get activatedRouteData(){return this._activatedRoute?this._activatedRoute.snapshot.data:{}}detach(){if(!this.activated)throw new Error("Outlet is not activated");this.location.detach();const _=this.activated;return this.activated=null,this._activatedRoute=null,this.detachEvents.emit(_.instance),_}attach(_,I){this.activated=_,this._activatedRoute=I,this.location.insert(_.hostView),this.attachEvents.emit(_.instance)}deactivate(){if(this.activated){const _=this.component;this.activated.destroy(),this.activated=null,this._activatedRoute=null,this.deactivateEvents.emit(_)}}activateWith(_,I){if(this.isActivated)throw new Error("Cannot activate an already activated outlet");this._activatedRoute=_;const ce=(I=I||this.resolver).resolveComponentFactory(_._futureSnapshot.routeConfig.component),we=this.parentContexts.getOrCreateContext(this.name).children,yt=new ui(_,we,this.location.injector);this.activated=this.location.createComponent(ce,this.location.length,yt),this.changeDetector.markForCheck(),this.activateEvents.emit(this.activated.instance)}}return E.\u0275fac=function(_){return new(_||E)(f.Y36(sr),f.Y36(f.s_b),f.Y36(f._Vd),f.$8M("name"),f.Y36(f.sBO))},E.\u0275dir=f.lG2({type:E,selectors:[["router-outlet"]],outputs:{activateEvents:"activate",deactivateEvents:"deactivate",attachEvents:"attach",detachEvents:"detach"},exportAs:["outlet"]}),E})();class ui{constructor(y,_,I){this.route=y,this.childContexts=_,this.parent=I}get(y,_){return y===di?this.route:y===sr?this.childContexts:this.parent.get(y,_)}}let Rr=(()=>{class E{}return E.\u0275fac=function(_){return new(_||E)},E.\u0275cmp=f.Xpm({type:E,selectors:[["ng-component"]],decls:1,vars:0,template:function(_,I){1&_&&f._UZ(0,"router-outlet")},directives:[is],encapsulation:2}),E})();function hi(E,y=""){for(let _=0;_<E.length;_++){const I=E[_];O(I,B(y,I))}}function O(E,y){E.children&&hi(E.children,y)}function B(E,y){return y?E||y.path?E&&!y.path?`${E}/`:!E&&y.path?y.path:`${E}/${y.path}`:"":E}function x(E){const y=E.children&&E.children.map(x),_=y?hr(Wt({},E),{children:y}):Wt({},E);return!_.component&&(y||_.loadChildren)&&_.outlet&&_.outlet!==mt&&(_.component=Rr),_}function j(E){return E.outlet||mt}function _e(E,y){const _=E.filter(I=>j(I)===y);return _.push(...E.filter(I=>j(I)!==y)),_}const w={matched:!1,consumedSegments:[],lastChild:0,parameters:{},positionalParamSegments:{}};function D(E,y,_){var we;if(""===y.path)return"full"===y.pathMatch&&(E.hasChildren()||_.length>0)?Wt({},w):{matched:!0,consumedSegments:[],lastChild:0,parameters:{},positionalParamSegments:{}};const R=(y.matcher||vn)(_,E,y);if(!R)return Wt({},w);const V={};fe(R.posParams,(yt,cn)=>{V[cn]=yt.path});const ce=R.consumed.length>0?Wt(Wt({},V),R.consumed[R.consumed.length-1].parameters):V;return{matched:!0,consumedSegments:R.consumed,lastChild:R.consumed.length,parameters:ce,positionalParamSegments:null!=(we=R.posParams)?we:{}}}function C(E,y,_,I,R="corrected"){if(_.length>0&&function(E,y,_){return _.some(I=>kn(E,y,I)&&j(I)!==mt)}(E,_,I)){const ce=new K(y,function(E,y,_,I){const R={};R[mt]=I,I._sourceSegment=E,I._segmentIndexShift=y.length;for(const V of _)if(""===V.path&&j(V)!==mt){const ce=new K([],{});ce._sourceSegment=E,ce._segmentIndexShift=y.length,R[j(V)]=ce}return R}(E,y,I,new K(_,E.children)));return ce._sourceSegment=E,ce._segmentIndexShift=y.length,{segmentGroup:ce,slicedSegments:[]}}if(0===_.length&&function(E,y,_){return _.some(I=>kn(E,y,I))}(E,_,I)){const ce=new K(E.segments,function(E,y,_,I,R,V){const ce={};for(const we of I)if(kn(E,_,we)&&!R[j(we)]){const yt=new K([],{});yt._sourceSegment=E,yt._segmentIndexShift="legacy"===V?E.segments.length:y.length,ce[j(we)]=yt}return Wt(Wt({},R),ce)}(E,y,_,I,E.children,R));return ce._sourceSegment=E,ce._segmentIndexShift=y.length,{segmentGroup:ce,slicedSegments:_}}const V=new K(E.segments,E.children);return V._sourceSegment=E,V._segmentIndexShift=y.length,{segmentGroup:V,slicedSegments:_}}function kn(E,y,_){return(!(E.hasChildren()||y.length>0)||"full"!==_.pathMatch)&&""===_.path}function zn(E,y,_,I){return!!(j(E)===I||I!==mt&&kn(y,_,E))&&("**"===E.path||D(y,E,_).matched)}function vi(E,y,_){return 0===y.length&&!E.children[_]}class nn{constructor(y){this.segmentGroup=y||null}}class or{constructor(y){this.urlTree=y}}function Tr(E){return new W.y(y=>y.error(new nn(E)))}function kr(E){return new W.y(y=>y.error(new or(E)))}function bs(E){return new W.y(y=>y.error(new Error(`Only absolute redirects can have named outlets. redirectTo: '${E}'`)))}class go{constructor(y,_,I,R,V){this.configLoader=_,this.urlSerializer=I,this.urlTree=R,this.config=V,this.allowRedirects=!0,this.ngModule=y.get(f.h0i)}apply(){const y=C(this.urlTree.root,[],[],this.config).segmentGroup,_=new K(y.segments,y.children);return this.expandSegmentGroup(this.ngModule,this.config,_,mt).pipe((0,sn.U)(V=>this.createUrlTree(On(V),this.urlTree.queryParams,this.urlTree.fragment))).pipe(Nt(V=>{if(V instanceof or)return this.allowRedirects=!1,this.match(V.urlTree);throw V instanceof nn?this.noMatchError(V):V}))}match(y){return this.expandSegmentGroup(this.ngModule,this.config,y.root,mt).pipe((0,sn.U)(R=>this.createUrlTree(On(R),y.queryParams,y.fragment))).pipe(Nt(R=>{throw R instanceof nn?this.noMatchError(R):R}))}noMatchError(y){return new Error(`Cannot match any routes. URL Segment: '${y.segmentGroup}'`)}createUrlTree(y,_,I){const R=y.segments.length>0?new K([],{[mt]:y}):y;return new H(R,_,I)}expandSegmentGroup(y,_,I,R){return 0===I.segments.length&&I.hasChildren()?this.expandChildren(y,_,I).pipe((0,sn.U)(V=>new K([],V))):this.expandSegment(y,I,_,I.segments,R,!0)}expandChildren(y,_,I){const R=[];for(const V of Object.keys(I.children))"primary"===V?R.unshift(V):R.push(V);return(0,oe.D)(R).pipe((0,Ee.b)(V=>{const ce=I.children[V],we=_e(_,V);return this.expandSegmentGroup(y,we,ce,V).pipe((0,sn.U)(yt=>({segment:yt,outlet:V})))}),Le((V,ce)=>(V[ce.outlet]=ce.segment,V),{}),function(E,y){const _=arguments.length>=2;return I=>I.pipe(E?(0,ht.h)((R,V)=>E(R,V,I)):Dt.y,wt(1),_?ft(y):Kt(()=>new o))}())}expandSegment(y,_,I,R,V,ce){return(0,oe.D)(I).pipe((0,Ee.b)(we=>this.expandSegmentAgainstRoute(y,_,I,we,R,V,ce).pipe(Nt(cn=>{if(cn instanceof nn)return(0,U.of)(null);throw cn}))),zt(we=>!!we),Nt((we,yt)=>{if(we instanceof o||"EmptyError"===we.name){if(vi(_,R,V))return(0,U.of)(new K([],{}));throw new nn(_)}throw we}))}expandSegmentAgainstRoute(y,_,I,R,V,ce,we){return zn(R,_,V,ce)?void 0===R.redirectTo?this.matchSegmentAgainstRoute(y,_,R,V,ce):we&&this.allowRedirects?this.expandSegmentAgainstRouteUsingRedirect(y,_,I,R,V,ce):Tr(_):Tr(_)}expandSegmentAgainstRouteUsingRedirect(y,_,I,R,V,ce){return"**"===R.path?this.expandWildCardWithParamsAgainstRouteUsingRedirect(y,I,R,ce):this.expandRegularSegmentAgainstRouteUsingRedirect(y,_,I,R,V,ce)}expandWildCardWithParamsAgainstRouteUsingRedirect(y,_,I,R){const V=this.applyRedirectCommands([],I.redirectTo,{});return I.redirectTo.startsWith("/")?kr(V):this.lineralizeSegments(I,V).pipe((0,Fe.zg)(ce=>{const we=new K(ce,{});return this.expandSegment(y,we,_,ce,R,!1)}))}expandRegularSegmentAgainstRouteUsingRedirect(y,_,I,R,V,ce){const{matched:we,consumedSegments:yt,lastChild:cn,positionalParamSegments:Wn}=D(_,R,V);if(!we)return Tr(_);const Dn=this.applyRedirectCommands(yt,R.redirectTo,Wn);return R.redirectTo.startsWith("/")?kr(Dn):this.lineralizeSegments(R,Dn).pipe((0,Fe.zg)(Jn=>this.expandSegment(y,_,I,Jn.concat(V.slice(cn)),ce,!1)))}matchSegmentAgainstRoute(y,_,I,R,V){if("**"===I.path)return I.loadChildren?(I._loadedConfig?(0,U.of)(I._loadedConfig):this.configLoader.load(y.injector,I)).pipe((0,sn.U)(Jn=>(I._loadedConfig=Jn,new K(R,{})))):(0,U.of)(new K(R,{}));const{matched:ce,consumedSegments:we,lastChild:yt}=D(_,I,R);if(!ce)return Tr(_);const cn=R.slice(yt);return this.getChildConfig(y,I,R).pipe((0,Fe.zg)(Dn=>{const Jn=Dn.module,ti=Dn.routes,{segmentGroup:wi,slicedSegments:Zn}=C(_,we,cn,ti),Gi=new K(wi.segments,wi.children);if(0===Zn.length&&Gi.hasChildren())return this.expandChildren(Jn,ti,Gi).pipe((0,sn.U)(no=>new K(we,no)));if(0===ti.length&&0===Zn.length)return(0,U.of)(new K(we,{}));const Lr=j(I)===V;return this.expandSegment(Jn,Gi,ti,Zn,Lr?mt:V,!0).pipe((0,sn.U)(Ir=>new K(we.concat(Ir.segments),Ir.children)))}))}getChildConfig(y,_,I){return _.children?(0,U.of)(new _r(_.children,y)):_.loadChildren?void 0!==_._loadedConfig?(0,U.of)(_._loadedConfig):this.runCanLoadGuards(y.injector,_,I).pipe((0,Fe.zg)(R=>{return R?this.configLoader.load(y.injector,_).pipe((0,sn.U)(V=>(_._loadedConfig=V,V))):(E=_,new W.y(y=>y.error(hn(`Cannot load children because the guard of the route "path: '${E.path}'" returned false`))));var E})):(0,U.of)(new _r([],y))}runCanLoadGuards(y,_,I){const R=_.canLoad;if(!R||0===R.length)return(0,U.of)(!0);const V=R.map(ce=>{const we=y.get(ce);let yt;if((E=we)&&Wi(E.canLoad))yt=we.canLoad(_,I);else{if(!Wi(we))throw new Error("Invalid CanLoad guard");yt=we(_,I)}var E;return ae(yt)});return(0,U.of)(V).pipe(vr(),(0,Ve.b)(ce=>{if(!rr(ce))return;const we=hn(`Redirecting to "${this.urlSerializer.serialize(ce)}"`);throw we.url=ce,we}),(0,sn.U)(ce=>!0===ce))}lineralizeSegments(y,_){let I=[],R=_.root;for(;;){if(I=I.concat(R.segments),0===R.numberOfChildren)return(0,U.of)(I);if(R.numberOfChildren>1||!R.children[mt])return bs(y.redirectTo);R=R.children[mt]}}applyRedirectCommands(y,_,I){return this.applyRedirectCreatreUrlTree(_,this.urlSerializer.parse(_),y,I)}applyRedirectCreatreUrlTree(y,_,I,R){const V=this.createSegmentGroup(y,_.root,I,R);return new H(V,this.createQueryParams(_.queryParams,this.urlTree.queryParams),_.fragment)}createQueryParams(y,_){const I={};return fe(y,(R,V)=>{if("string"==typeof R&&R.startsWith(":")){const we=R.substring(1);I[V]=_[we]}else I[V]=R}),I}createSegmentGroup(y,_,I,R){const V=this.createSegments(y,_.segments,I,R);let ce={};return fe(_.children,(we,yt)=>{ce[yt]=this.createSegmentGroup(y,we,I,R)}),new K(V,ce)}createSegments(y,_,I,R){return _.map(V=>V.path.startsWith(":")?this.findPosParam(y,V,R):this.findOrReturn(V,I))}findPosParam(y,_,I){const R=I[_.path.substring(1)];if(!R)throw new Error(`Cannot redirect to '${y}'. Cannot find '${_.path}'.`);return R}findOrReturn(y,_){let I=0;for(const R of _){if(R.path===y.path)return _.splice(I),R;I++}return y}}function On(E){const y={};for(const I of Object.keys(E.children)){const V=On(E.children[I]);(V.segments.length>0||V.hasChildren())&&(y[I]=V)}return function(E){if(1===E.numberOfChildren&&E.children[mt]){const y=E.children[mt];return new K(E.segments.concat(y.segments),y.children)}return E}(new K(E.segments,y))}class Ni{constructor(y){this.path=y,this.route=this.path[this.path.length-1]}}class Fr{constructor(y,_){this.component=y,this.route=_}}function qs(E,y,_){const I=E._root;return T(I,y?y._root:null,_,[I.value])}function p(E,y,_){const I=function(E){if(!E)return null;for(let y=E.parent;y;y=y.parent){const _=y.routeConfig;if(_&&_._loadedConfig)return _._loadedConfig}return null}(y);return(I?I.module.injector:_).get(E)}function T(E,y,_,I,R={canDeactivateChecks:[],canActivateChecks:[]}){const V=_i(y);return E.children.forEach(ce=>{(function(E,y,_,I,R={canDeactivateChecks:[],canActivateChecks:[]}){const V=E.value,ce=y?y.value:null,we=_?_.getContext(E.value.outlet):null;if(ce&&V.routeConfig===ce.routeConfig){const yt=function(E,y,_){if("function"==typeof _)return _(E,y);switch(_){case"pathParamsChange":return!Oe(E.url,y.url);case"pathParamsOrQueryParamsChange":return!Oe(E.url,y.url)||!ye(E.queryParams,y.queryParams);case"always":return!0;case"paramsOrQueryParamsChange":return!qt(E,y)||!ye(E.queryParams,y.queryParams);default:return!qt(E,y)}}(ce,V,V.routeConfig.runGuardsAndResolvers);yt?R.canActivateChecks.push(new Ni(I)):(V.data=ce.data,V._resolvedData=ce._resolvedData),T(E,y,V.component?we?we.children:null:_,I,R),yt&&we&&we.outlet&&we.outlet.isActivated&&R.canDeactivateChecks.push(new Fr(we.outlet.component,ce))}else ce&&de(y,we,R),R.canActivateChecks.push(new Ni(I)),T(E,null,V.component?we?we.children:null:_,I,R)})(ce,V[ce.value.outlet],_,I.concat([ce.value]),R),delete V[ce.value.outlet]}),fe(V,(ce,we)=>de(ce,_.getContext(we),R)),R}function de(E,y,_){const I=_i(E),R=E.value;fe(I,(V,ce)=>{de(V,R.component?y?y.children.getContext(ce):null:y,_)}),_.canDeactivateChecks.push(new Fr(R.component&&y&&y.outlet&&y.outlet.isActivated?y.outlet.component:null,R))}class wn{}function Hn(E){return new W.y(y=>y.error(E))}class Di{constructor(y,_,I,R,V,ce){this.rootComponentType=y,this.config=_,this.urlTree=I,this.url=R,this.paramsInheritanceStrategy=V,this.relativeLinkResolution=ce}recognize(){const y=C(this.urlTree.root,[],[],this.config.filter(ce=>void 0===ce.redirectTo),this.relativeLinkResolution).segmentGroup,_=this.processSegmentGroup(this.config,y,mt);if(null===_)return null;const I=new se([],Object.freeze({}),Object.freeze(Wt({},this.urlTree.queryParams)),this.urlTree.fragment,{},mt,this.rootComponentType,null,this.urlTree.root,-1,{}),R=new Ci(I,_),V=new be(this.url,R);return this.inheritParamsAndData(V._root),V}inheritParamsAndData(y){const _=y.value,I=yi(_,this.paramsInheritanceStrategy);_.params=Object.freeze(I.params),_.data=Object.freeze(I.data),y.children.forEach(R=>this.inheritParamsAndData(R))}processSegmentGroup(y,_,I){return 0===_.segments.length&&_.hasChildren()?this.processChildren(y,_):this.processSegment(y,_,_.segments,I)}processChildren(y,_){const I=[];for(const V of Object.keys(_.children)){const ce=_.children[V],we=_e(y,V),yt=this.processSegmentGroup(we,ce,V);if(null===yt)return null;I.push(...yt)}const R=Xi(I);return R.sort((y,_)=>y.value.outlet===mt?-1:_.value.outlet===mt?1:y.value.outlet.localeCompare(_.value.outlet)),R}processSegment(y,_,I,R){for(const V of y){const ce=this.processSegmentAgainstRoute(V,_,I,R);if(null!==ce)return ce}return vi(_,I,R)?[]:null}processSegmentAgainstRoute(y,_,I,R){if(y.redirectTo||!zn(y,_,I,R))return null;let V,ce=[],we=[];if("**"===y.path){const ti=I.length>0?Qt(I).parameters:{};V=new se(I,ti,Object.freeze(Wt({},this.urlTree.queryParams)),this.urlTree.fragment,Sr(y),j(y),y.component,y,ar(_),Mr(_)+I.length,ss(y))}else{const ti=D(_,y,I);if(!ti.matched)return null;ce=ti.consumedSegments,we=I.slice(ti.lastChild),V=new se(ce,ti.parameters,Object.freeze(Wt({},this.urlTree.queryParams)),this.urlTree.fragment,Sr(y),j(y),y.component,y,ar(_),Mr(_)+ce.length,ss(y))}const yt=(E=y).children?E.children:E.loadChildren?E._loadedConfig.routes:[],{segmentGroup:cn,slicedSegments:Wn}=C(_,ce,we,yt.filter(ti=>void 0===ti.redirectTo),this.relativeLinkResolution);var E;if(0===Wn.length&&cn.hasChildren()){const ti=this.processChildren(yt,cn);return null===ti?null:[new Ci(V,ti)]}if(0===yt.length&&0===Wn.length)return[new Ci(V,[])];const Dn=j(y)===R,Jn=this.processSegment(yt,cn,Wn,Dn?mt:R);return null===Jn?null:[new Ci(V,Jn)]}}function Zr(E){const y=E.value.routeConfig;return y&&""===y.path&&void 0===y.redirectTo}function Xi(E){const y=[],_=new Set;for(const I of E){if(!Zr(I)){y.push(I);continue}const R=y.find(V=>I.value.routeConfig===V.value.routeConfig);void 0!==R?(R.children.push(...I.children),_.add(R)):y.push(I)}for(const I of _){const R=Xi(I.children);y.push(new Ci(I.value,R))}return y.filter(I=>!_.has(I))}function ar(E){let y=E;for(;y._sourceSegment;)y=y._sourceSegment;return y}function Mr(E){let y=E,_=y._segmentIndexShift?y._segmentIndexShift:0;for(;y._sourceSegment;)y=y._sourceSegment,_+=y._segmentIndexShift?y._segmentIndexShift:0;return _-1}function Sr(E){return E.data||{}}function ss(E){return E.resolve||{}}function ln(E){return(0,We.w)(y=>{const _=E(y);return _?(0,oe.D)(_).pipe((0,sn.U)(()=>y)):(0,U.of)(y)})}class bi extends class{shouldDetach(y){return!1}store(y,_){}shouldAttach(y){return!1}retrieve(y){return null}shouldReuseRoute(y,_){return y.routeConfig===_.routeConfig}}{}const er=new f.OlP("ROUTES");class tr{constructor(y,_,I,R){this.injector=y,this.compiler=_,this.onLoadStartListener=I,this.onLoadEndListener=R}load(y,_){if(_._loader$)return _._loader$;this.onLoadStartListener&&this.onLoadStartListener(_);const R=this.loadModuleFactory(_.loadChildren).pipe((0,sn.U)(V=>{this.onLoadEndListener&&this.onLoadEndListener(_);const ce=V.create(y);return new _r(Je(ce.injector.get(er,void 0,f.XFs.Self|f.XFs.Optional)).map(x),ce)}),Nt(V=>{throw _._loader$=void 0,V}));return _._loader$=new Ne.c(R,()=>new qe.xQ).pipe((0,ut.x)()),_._loader$}loadModuleFactory(y){return ae(y()).pipe((0,Fe.zg)(_=>_ instanceof f.YKP?(0,U.of)(_):(0,oe.D)(this.compiler.compileModuleAsync(_))))}}class fi{shouldProcessUrl(y){return!0}extract(y){return y}merge(y,_){return y}}function Bs(E){throw E}function cr(E,y,_){return y.parse("/")}function In(E,y){return(0,U.of)(null)}const Vs={paths:"exact",fragment:"ignored",matrixParams:"ignored",queryParams:"exact"},nr={paths:"subset",fragment:"ignored",matrixParams:"ignored",queryParams:"subset"};let Si=(()=>{class E{constructor(_,I,R,V,ce,we,yt){this.rootComponentType=_,this.urlSerializer=I,this.rootContexts=R,this.location=V,this.config=yt,this.lastSuccessfulNavigation=null,this.currentNavigation=null,this.disposed=!1,this.navigationId=0,this.currentPageId=0,this.isNgZoneEnabled=!1,this.events=new qe.xQ,this.errorHandler=Bs,this.malformedUriErrorHandler=cr,this.navigated=!1,this.lastSuccessfulId=-1,this.hooks={beforePreactivation:In,afterPreactivation:In},this.urlHandlingStrategy=new fi,this.routeReuseStrategy=new bi,this.onSameUrlNavigation="ignore",this.paramsInheritanceStrategy="emptyOnly",this.urlUpdateStrategy="deferred",this.relativeLinkResolution="corrected",this.canceledNavigationResolution="replace",this.ngModule=ce.get(f.h0i),this.console=ce.get(f.c2e);const Dn=ce.get(f.R0b);this.isNgZoneEnabled=Dn instanceof f.R0b&&f.R0b.isInAngularZone(),this.resetConfig(yt),this.currentUrlTree=new H(new K([],{}),{},null),this.rawUrlTree=this.currentUrlTree,this.browserUrlTree=this.currentUrlTree,this.configLoader=new tr(ce,we,Jn=>this.triggerEvent(new Ae(Jn)),Jn=>this.triggerEvent(new le(Jn))),this.routerState=li(this.currentUrlTree,this.rootComponentType),this.transitions=new te.X({id:0,targetPageId:0,currentUrlTree:this.currentUrlTree,currentRawUrl:this.currentUrlTree,extractedUrl:this.urlHandlingStrategy.extract(this.currentUrlTree),urlAfterRedirects:this.urlHandlingStrategy.extract(this.currentUrlTree),rawUrl:this.currentUrlTree,extras:{},resolve:null,reject:null,promise:Promise.resolve(!0),source:"imperative",restoredState:null,currentSnapshot:this.routerState.snapshot,targetSnapshot:null,currentRouterState:this.routerState,targetRouterState:null,guards:{canActivateChecks:[],canDeactivateChecks:[]},guardsResult:null}),this.navigations=this.setupNavigations(this.transitions),this.processNavigations()}get browserPageId(){var _;return null==(_=this.location.getState())?void 0:_.\u0275routerPageId}setupNavigations(_){const I=this.events;return _.pipe((0,ht.h)(R=>0!==R.id),(0,sn.U)(R=>hr(Wt({},R),{extractedUrl:this.urlHandlingStrategy.extract(R.rawUrl)})),(0,We.w)(R=>{let V=!1,ce=!1;return(0,U.of)(R).pipe((0,Ve.b)(we=>{this.currentNavigation={id:we.id,initialUrl:we.currentRawUrl,extractedUrl:we.extractedUrl,trigger:we.source,extras:we.extras,previousNavigation:this.lastSuccessfulNavigation?hr(Wt({},this.lastSuccessfulNavigation),{previousNavigation:null}):null}}),(0,We.w)(we=>{const yt=this.browserUrlTree.toString(),cn=!this.navigated||we.extractedUrl.toString()!==yt||yt!==this.currentUrlTree.toString();if(("reload"===this.onSameUrlNavigation||cn)&&this.urlHandlingStrategy.shouldProcessUrl(we.rawUrl))return Bo(we.source)&&(this.browserUrlTree=we.extractedUrl),(0,U.of)(we).pipe((0,We.w)(Dn=>{const Jn=this.transitions.getValue();return I.next(new jt(Dn.id,this.serializeUrl(Dn.extractedUrl),Dn.source,Dn.restoredState)),Jn!==this.transitions.getValue()?ie.E:Promise.resolve(Dn)}),function(E,y,_,I){return(0,We.w)(R=>function(E,y,_,I,R){return new go(E,y,_,I,R).apply()}(E,y,_,R.extractedUrl,I).pipe((0,sn.U)(V=>hr(Wt({},R),{urlAfterRedirects:V}))))}(this.ngModule.injector,this.configLoader,this.urlSerializer,this.config),(0,Ve.b)(Dn=>{this.currentNavigation=hr(Wt({},this.currentNavigation),{finalUrl:Dn.urlAfterRedirects})}),function(E,y,_,I,R){return(0,Fe.zg)(V=>function(E,y,_,I,R="emptyOnly",V="legacy"){try{const ce=new Di(E,y,_,I,R,V).recognize();return null===ce?Hn(new wn):(0,U.of)(ce)}catch(ce){return Hn(ce)}}(E,y,V.urlAfterRedirects,_(V.urlAfterRedirects),I,R).pipe((0,sn.U)(ce=>hr(Wt({},V),{targetSnapshot:ce}))))}(this.rootComponentType,this.config,Dn=>this.serializeUrl(Dn),this.paramsInheritanceStrategy,this.relativeLinkResolution),(0,Ve.b)(Dn=>{if("eager"===this.urlUpdateStrategy){if(!Dn.extras.skipLocationChange){const ti=this.urlHandlingStrategy.merge(Dn.urlAfterRedirects,Dn.rawUrl);this.setBrowserUrl(ti,Dn)}this.browserUrlTree=Dn.urlAfterRedirects}const Jn=new $(Dn.id,this.serializeUrl(Dn.extractedUrl),this.serializeUrl(Dn.urlAfterRedirects),Dn.targetSnapshot);I.next(Jn)}));if(cn&&this.rawUrlTree&&this.urlHandlingStrategy.shouldProcessUrl(this.rawUrlTree)){const{id:Jn,extractedUrl:ti,source:wi,restoredState:Zn,extras:Gi}=we,Lr=new jt(Jn,this.serializeUrl(ti),wi,Zn);I.next(Lr);const Qr=li(ti,this.rootComponentType).snapshot;return(0,U.of)(hr(Wt({},we),{targetSnapshot:Qr,urlAfterRedirects:ti,extras:hr(Wt({},Gi),{skipLocationChange:!1,replaceUrl:!1})}))}return this.rawUrlTree=we.rawUrl,we.resolve(null),ie.E}),ln(we=>{const{targetSnapshot:yt,id:cn,extractedUrl:Wn,rawUrl:Dn,extras:{skipLocationChange:Jn,replaceUrl:ti}}=we;return this.hooks.beforePreactivation(yt,{navigationId:cn,appliedUrlTree:Wn,rawUrlTree:Dn,skipLocationChange:!!Jn,replaceUrl:!!ti})}),(0,Ve.b)(we=>{const yt=new X(we.id,this.serializeUrl(we.extractedUrl),this.serializeUrl(we.urlAfterRedirects),we.targetSnapshot);this.triggerEvent(yt)}),(0,sn.U)(we=>hr(Wt({},we),{guards:qs(we.targetSnapshot,we.currentSnapshot,this.rootContexts)})),function(E,y){return(0,Fe.zg)(_=>{const{targetSnapshot:I,currentSnapshot:R,guards:{canActivateChecks:V,canDeactivateChecks:ce}}=_;return 0===ce.length&&0===V.length?(0,U.of)(hr(Wt({},_),{guardsResult:!0})):function(E,y,_,I){return(0,oe.D)(E).pipe((0,Fe.zg)(R=>function(E,y,_,I,R){const V=y&&y.routeConfig?y.routeConfig.canDeactivate:null;if(!V||0===V.length)return(0,U.of)(!0);const ce=V.map(we=>{const yt=p(we,y,R);let cn;if(function(E){return E&&Wi(E.canDeactivate)}(yt))cn=ae(yt.canDeactivate(E,y,_,I));else{if(!Wi(yt))throw new Error("Invalid CanDeactivate guard");cn=ae(yt(E,y,_,I))}return cn.pipe(zt())});return(0,U.of)(ce).pipe(vr())}(R.component,R.route,_,y,I)),zt(R=>!0!==R,!0))}(ce,I,R,E).pipe((0,Fe.zg)(we=>we&&function(E){return"boolean"==typeof E}(we)?function(E,y,_,I){return(0,oe.D)(y).pipe((0,Ee.b)(R=>(0,Q.z)(function(E,y){return null!==E&&y&&y(new ue(E)),(0,U.of)(!0)}(R.route.parent,I),function(E,y){return null!==E&&y&&y(new ct(E)),(0,U.of)(!0)}(R.route,I),function(E,y,_){const I=y[y.length-1],V=y.slice(0,y.length-1).reverse().map(ce=>function(E){const y=E.routeConfig?E.routeConfig.canActivateChild:null;return y&&0!==y.length?{node:E,guards:y}:null}(ce)).filter(ce=>null!==ce).map(ce=>(0,ne.P)(()=>{const we=ce.guards.map(yt=>{const cn=p(yt,ce.node,_);let Wn;if(function(E){return E&&Wi(E.canActivateChild)}(cn))Wn=ae(cn.canActivateChild(I,E));else{if(!Wi(cn))throw new Error("Invalid CanActivateChild guard");Wn=ae(cn(I,E))}return Wn.pipe(zt())});return(0,U.of)(we).pipe(vr())}));return(0,U.of)(V).pipe(vr())}(E,R.path,_),function(E,y,_){const I=y.routeConfig?y.routeConfig.canActivate:null;if(!I||0===I.length)return(0,U.of)(!0);const R=I.map(V=>(0,ne.P)(()=>{const ce=p(V,y,_);let we;if(function(E){return E&&Wi(E.canActivate)}(ce))we=ae(ce.canActivate(y,E));else{if(!Wi(ce))throw new Error("Invalid CanActivate guard");we=ae(ce(y,E))}return we.pipe(zt())}));return(0,U.of)(R).pipe(vr())}(E,R.route,_))),zt(R=>!0!==R,!0))}(I,V,E,y):(0,U.of)(we)),(0,sn.U)(we=>hr(Wt({},_),{guardsResult:we})))})}(this.ngModule.injector,we=>this.triggerEvent(we)),(0,Ve.b)(we=>{if(rr(we.guardsResult)){const cn=hn(`Redirecting to "${this.serializeUrl(we.guardsResult)}"`);throw cn.url=we.guardsResult,cn}const yt=new Te(we.id,this.serializeUrl(we.extractedUrl),this.serializeUrl(we.urlAfterRedirects),we.targetSnapshot,!!we.guardsResult);this.triggerEvent(yt)}),(0,ht.h)(we=>!!we.guardsResult||(this.restoreHistory(we),this.cancelNavigationTransition(we,""),!1)),ln(we=>{if(we.guards.canActivateChecks.length)return(0,U.of)(we).pipe((0,Ve.b)(yt=>{const cn=new et(yt.id,this.serializeUrl(yt.extractedUrl),this.serializeUrl(yt.urlAfterRedirects),yt.targetSnapshot);this.triggerEvent(cn)}),(0,We.w)(yt=>{let cn=!1;return(0,U.of)(yt).pipe(function(E,y){return(0,Fe.zg)(_=>{const{targetSnapshot:I,guards:{canActivateChecks:R}}=_;if(!R.length)return(0,U.of)(_);let V=0;return(0,oe.D)(R).pipe((0,Ee.b)(ce=>function(E,y,_,I){return function(E,y,_,I){const R=Object.keys(E);if(0===R.length)return(0,U.of)({});const V={};return(0,oe.D)(R).pipe((0,Fe.zg)(ce=>function(E,y,_,I){const R=p(E,y,I);return ae(R.resolve?R.resolve(y,_):R(y,_))}(E[ce],y,_,I).pipe((0,Ve.b)(we=>{V[ce]=we}))),wt(1),(0,Fe.zg)(()=>Object.keys(V).length===R.length?(0,U.of)(V):ie.E))}(E._resolve,E,y,I).pipe((0,sn.U)(V=>(E._resolvedData=V,E.data=Wt(Wt({},E.data),yi(E,_).resolve),null)))}(ce.route,I,E,y)),(0,Ve.b)(()=>V++),wt(1),(0,Fe.zg)(ce=>V===R.length?(0,U.of)(_):ie.E))})}(this.paramsInheritanceStrategy,this.ngModule.injector),(0,Ve.b)({next:()=>cn=!0,complete:()=>{cn||(this.restoreHistory(yt),this.cancelNavigationTransition(yt,"At least one route resolver didn't emit any value."))}}))}),(0,Ve.b)(yt=>{const cn=new nt(yt.id,this.serializeUrl(yt.extractedUrl),this.serializeUrl(yt.urlAfterRedirects),yt.targetSnapshot);this.triggerEvent(cn)}))}),ln(we=>{const{targetSnapshot:yt,id:cn,extractedUrl:Wn,rawUrl:Dn,extras:{skipLocationChange:Jn,replaceUrl:ti}}=we;return this.hooks.afterPreactivation(yt,{navigationId:cn,appliedUrlTree:Wn,rawUrlTree:Dn,skipLocationChange:!!Jn,replaceUrl:!!ti})}),(0,sn.U)(we=>{const yt=function(E,y,_){const I=ii(E,y._root,_?_._root:void 0);return new Ii(I,y)}(this.routeReuseStrategy,we.targetSnapshot,we.currentRouterState);return hr(Wt({},we),{targetRouterState:yt})}),(0,Ve.b)(we=>{this.currentUrlTree=we.urlAfterRedirects,this.rawUrlTree=this.urlHandlingStrategy.merge(we.urlAfterRedirects,we.rawUrl),this.routerState=we.targetRouterState,"deferred"===this.urlUpdateStrategy&&(we.extras.skipLocationChange||this.setBrowserUrl(this.rawUrlTree,we),this.browserUrlTree=we.urlAfterRedirects)}),((E,y,_)=>(0,sn.U)(I=>(new ei(y,I.targetRouterState,I.currentRouterState,_).activate(E),I)))(this.rootContexts,this.routeReuseStrategy,we=>this.triggerEvent(we)),(0,Ve.b)({next(){V=!0},complete(){V=!0}}),(0,Pe.x)(()=>{var we;V||ce||this.cancelNavigationTransition(R,`Navigation ID ${R.id} is not equal to the current navigation id ${this.navigationId}`),(null==(we=this.currentNavigation)?void 0:we.id)===R.id&&(this.currentNavigation=null)}),Nt(we=>{if(ce=!0,function(E){return E&&E[Pn]}(we)){const yt=rr(we.url);yt||(this.navigated=!0,this.restoreHistory(R,!0));const cn=new Fn(R.id,this.serializeUrl(R.extractedUrl),we.message);I.next(cn),yt?setTimeout(()=>{const Wn=this.urlHandlingStrategy.merge(we.url,this.rawUrlTree),Dn={skipLocationChange:R.extras.skipLocationChange,replaceUrl:"eager"===this.urlUpdateStrategy||Bo(R.source)};this.scheduleNavigation(Wn,"imperative",null,Dn,{resolve:R.resolve,reject:R.reject,promise:R.promise})},0):R.resolve(!1)}else{this.restoreHistory(R,!0);const yt=new Xe(R.id,this.serializeUrl(R.extractedUrl),we);I.next(yt);try{R.resolve(this.errorHandler(we))}catch(cn){R.reject(cn)}}return ie.E}))}))}resetRootComponentType(_){this.rootComponentType=_,this.routerState.root.component=this.rootComponentType}setTransition(_){this.transitions.next(Wt(Wt({},this.transitions.value),_))}initialNavigation(){this.setUpLocationChangeListener(),0===this.navigationId&&this.navigateByUrl(this.location.path(!0),{replaceUrl:!0})}setUpLocationChangeListener(){this.locationSubscription||(this.locationSubscription=this.location.subscribe(_=>{const I="popstate"===_.type?"popstate":"hashchange";"popstate"===I&&setTimeout(()=>{var we;const R={replaceUrl:!0},V=(null==(we=_.state)?void 0:we.navigationId)?_.state:null;if(V){const yt=Wt({},V);delete yt.navigationId,delete yt.\u0275routerPageId,0!==Object.keys(yt).length&&(R.state=yt)}const ce=this.parseUrl(_.url);this.scheduleNavigation(ce,I,V,R)},0)}))}get url(){return this.serializeUrl(this.currentUrlTree)}getCurrentNavigation(){return this.currentNavigation}triggerEvent(_){this.events.next(_)}resetConfig(_){hi(_),this.config=_.map(x),this.navigated=!1,this.lastSuccessfulId=-1}ngOnDestroy(){this.dispose()}dispose(){this.transitions.complete(),this.locationSubscription&&(this.locationSubscription.unsubscribe(),this.locationSubscription=void 0),this.disposed=!0}createUrlTree(_,I={}){const{relativeTo:R,queryParams:V,fragment:ce,queryParamsHandling:we,preserveFragment:yt}=I,cn=R||this.routerState.root,Wn=yt?this.currentUrlTree.fragment:ce;let Dn=null;switch(we){case"merge":Dn=Wt(Wt({},this.currentUrlTree.queryParams),V);break;case"preserve":Dn=this.currentUrlTree.queryParams;break;default:Dn=V||null}return null!==Dn&&(Dn=this.removeEmptyProps(Dn)),function(E,y,_,I,R){if(0===_.length)return Er(y.root,y.root,y,I,R);const V=function(E){if("string"==typeof E[0]&&1===E.length&&"/"===E[0])return new ms(!0,0,E);let y=0,_=!1;const I=E.reduce((R,V,ce)=>{if("object"==typeof V&&null!=V){if(V.outlets){const we={};return fe(V.outlets,(yt,cn)=>{we[cn]="string"==typeof yt?yt.split("/"):yt}),[...R,{outlets:we}]}if(V.segmentPath)return[...R,V.segmentPath]}return"string"!=typeof V?[...R,V]:0===ce?(V.split("/").forEach((we,yt)=>{0==yt&&"."===we||(0==yt&&""===we?_=!0:".."===we?y++:""!=we&&R.push(we))}),R):[...R,V]},[]);return new ms(_,y,I)}(_);if(V.toRoot())return Er(y.root,new K([],{}),y,I,R);const ce=function(E,y,_){if(E.isAbsolute)return new zr(y.root,!0,0);if(-1===_.snapshot._lastPathIndex){const V=_.snapshot._urlSegment;return new zr(V,V===y.root,0)}const I=Ur(E.commands[0])?0:1;return function(E,y,_){let I=E,R=y,V=_;for(;V>R;){if(V-=R,I=I.parent,!I)throw new Error("Invalid number of '../'");R=I.segments.length}return new zr(I,!1,R-V)}(_.snapshot._urlSegment,_.snapshot._lastPathIndex+I,E.numberOfDoubleDots)}(V,y,E),we=ce.processChildren?qi(ce.segmentGroup,ce.index,V.commands):ts(ce.segmentGroup,ce.index,V.commands);return Er(ce.segmentGroup,we,y,I,R)}(cn,this.currentUrlTree,_,Dn,null!=Wn?Wn:null)}navigateByUrl(_,I={skipLocationChange:!1}){const R=rr(_)?_:this.parseUrl(_),V=this.urlHandlingStrategy.merge(R,this.rawUrlTree);return this.scheduleNavigation(V,"imperative",null,I)}navigate(_,I={skipLocationChange:!1}){return function(E){for(let y=0;y<E.length;y++){const _=E[y];if(null==_)throw new Error(`The requested path contains ${_} segment at index ${y}`)}}(_),this.navigateByUrl(this.createUrlTree(_,I),I)}serializeUrl(_){return this.urlSerializer.serialize(_)}parseUrl(_){let I;try{I=this.urlSerializer.parse(_)}catch(R){I=this.malformedUriErrorHandler(R,this.urlSerializer,_)}return I}isActive(_,I){let R;if(R=!0===I?Wt({},Vs):!1===I?Wt({},nr):I,rr(_))return fn(this.currentUrlTree,_,R);const V=this.parseUrl(_);return fn(this.currentUrlTree,V,R)}removeEmptyProps(_){return Object.keys(_).reduce((I,R)=>{const V=_[R];return null!=V&&(I[R]=V),I},{})}processNavigations(){this.navigations.subscribe(_=>{this.navigated=!0,this.lastSuccessfulId=_.id,this.currentPageId=_.targetPageId,this.events.next(new tn(_.id,this.serializeUrl(_.extractedUrl),this.serializeUrl(this.currentUrlTree))),this.lastSuccessfulNavigation=this.currentNavigation,_.resolve(!0)},_=>{this.console.warn(`Unhandled Navigation Error: ${_}`)})}scheduleNavigation(_,I,R,V,ce){var Lr,Qr,Ir;if(this.disposed)return Promise.resolve(!1);const we=this.transitions.value,yt=Bo(I)&&we&&!Bo(we.source),cn=we.rawUrl.toString()===_.toString(),Wn=we.id===(null==(Lr=this.currentNavigation)?void 0:Lr.id);if(yt&&cn&&Wn)return Promise.resolve(!0);let Jn,ti,wi;ce?(Jn=ce.resolve,ti=ce.reject,wi=ce.promise):wi=new Promise((no,ia)=>{Jn=no,ti=ia});const Zn=++this.navigationId;let Gi;return"computed"===this.canceledNavigationResolution?(0===this.currentPageId&&(R=this.location.getState()),Gi=R&&R.\u0275routerPageId?R.\u0275routerPageId:V.replaceUrl||V.skipLocationChange?null!=(Qr=this.browserPageId)?Qr:0:(null!=(Ir=this.browserPageId)?Ir:0)+1):Gi=0,this.setTransition({id:Zn,targetPageId:Gi,source:I,restoredState:R,currentUrlTree:this.currentUrlTree,currentRawUrl:this.rawUrlTree,rawUrl:_,extras:V,resolve:Jn,reject:ti,promise:wi,currentSnapshot:this.routerState.snapshot,currentRouterState:this.routerState}),wi.catch(no=>Promise.reject(no))}setBrowserUrl(_,I){const R=this.urlSerializer.serialize(_),V=Wt(Wt({},I.extras.state),this.generateNgRouterState(I.id,I.targetPageId));this.location.isCurrentPathEqualTo(R)||I.extras.replaceUrl?this.location.replaceState(R,"",V):this.location.go(R,"",V)}restoreHistory(_,I=!1){var R,V;if("computed"===this.canceledNavigationResolution){const ce=this.currentPageId-_.targetPageId;"popstate"!==_.source&&"eager"!==this.urlUpdateStrategy&&this.currentUrlTree!==(null==(R=this.currentNavigation)?void 0:R.finalUrl)||0===ce?this.currentUrlTree===(null==(V=this.currentNavigation)?void 0:V.finalUrl)&&0===ce&&(this.resetState(_),this.browserUrlTree=_.currentUrlTree,this.resetUrlToCurrentUrlTree()):this.location.historyGo(ce)}else"replace"===this.canceledNavigationResolution&&(I&&this.resetState(_),this.resetUrlToCurrentUrlTree())}resetState(_){this.routerState=_.currentRouterState,this.currentUrlTree=_.currentUrlTree,this.rawUrlTree=this.urlHandlingStrategy.merge(this.currentUrlTree,_.rawUrl)}resetUrlToCurrentUrlTree(){this.location.replaceState(this.urlSerializer.serialize(this.rawUrlTree),"",this.generateNgRouterState(this.lastSuccessfulId,this.currentPageId))}cancelNavigationTransition(_,I){const R=new Fn(_.id,this.serializeUrl(_.extractedUrl),I);this.triggerEvent(R),_.resolve(!1)}generateNgRouterState(_,I){return"computed"===this.canceledNavigationResolution?{navigationId:_,\u0275routerPageId:I}:{navigationId:_}}}return E.\u0275fac=function(_){f.$Z()},E.\u0275prov=f.Yz7({token:E,factory:E.\u0275fac}),E})();function Bo(E){return"imperative"!==E}class rc{}class yo{preload(y,_){return(0,U.of)(null)}}let eo=(()=>{class E{constructor(_,I,R,V){this.router=_,this.injector=R,this.preloadingStrategy=V,this.loader=new tr(R,I,yt=>_.triggerEvent(new Ae(yt)),yt=>_.triggerEvent(new le(yt)))}setUpPreloading(){this.subscription=this.router.events.pipe((0,ht.h)(_=>_ instanceof tn),(0,Ee.b)(()=>this.preload())).subscribe(()=>{})}preload(){const _=this.injector.get(f.h0i);return this.processRoutes(_,this.router.config)}ngOnDestroy(){this.subscription&&this.subscription.unsubscribe()}processRoutes(_,I){const R=[];for(const V of I)if(V.loadChildren&&!V.canLoad&&V._loadedConfig){const ce=V._loadedConfig;R.push(this.processRoutes(ce.module,ce.routes))}else V.loadChildren&&!V.canLoad?R.push(this.preloadConfig(_,V)):V.children&&R.push(this.processRoutes(_,V.children));return(0,oe.D)(R).pipe((0,gt.J)(),(0,sn.U)(V=>{}))}preloadConfig(_,I){return this.preloadingStrategy.preload(I,()=>(I._loadedConfig?(0,U.of)(I._loadedConfig):this.loader.load(_.injector,I)).pipe((0,Fe.zg)(V=>(I._loadedConfig=V,this.processRoutes(V.module,V.routes)))))}}return E.\u0275fac=function(_){return new(_||E)(f.LFG(Si),f.LFG(f.Sil),f.LFG(f.zs3),f.LFG(rc))},E.\u0275prov=f.Yz7({token:E,factory:E.\u0275fac}),E})(),Ds=(()=>{class E{constructor(_,I,R={}){this.router=_,this.viewportScroller=I,this.options=R,this.lastId=0,this.lastSource="imperative",this.restoredId=0,this.store={},R.scrollPositionRestoration=R.scrollPositionRestoration||"disabled",R.anchorScrolling=R.anchorScrolling||"disabled"}init(){"disabled"!==this.options.scrollPositionRestoration&&this.viewportScroller.setHistoryScrollRestoration("manual"),this.routerEventsSubscription=this.createScrollEvents(),this.scrollEventsSubscription=this.consumeScrollEvents()}createScrollEvents(){return this.router.events.subscribe(_=>{_ instanceof jt?(this.store[this.lastId]=this.viewportScroller.getScrollPosition(),this.lastSource=_.navigationTrigger,this.restoredId=_.restoredState?_.restoredState.navigationId:0):_ instanceof tn&&(this.lastId=_.id,this.scheduleScrollEvent(_,this.router.parseUrl(_.urlAfterRedirects).fragment))})}consumeScrollEvents(){return this.router.events.subscribe(_=>{_ instanceof Ct&&(_.position?"top"===this.options.scrollPositionRestoration?this.viewportScroller.scrollToPosition([0,0]):"enabled"===this.options.scrollPositionRestoration&&this.viewportScroller.scrollToPosition(_.position):_.anchor&&"enabled"===this.options.anchorScrolling?this.viewportScroller.scrollToAnchor(_.anchor):"disabled"!==this.options.scrollPositionRestoration&&this.viewportScroller.scrollToPosition([0,0]))})}scheduleScrollEvent(_,I){this.router.triggerEvent(new Ct(_,"popstate"===this.lastSource?this.store[this.restoredId]:null,I))}ngOnDestroy(){this.routerEventsSubscription&&this.routerEventsSubscription.unsubscribe(),this.scrollEventsSubscription&&this.scrollEventsSubscription.unsubscribe()}}return E.\u0275fac=function(_){f.$Z()},E.\u0275prov=f.Yz7({token:E,factory:E.\u0275fac}),E})();const ls=new f.OlP("ROUTER_CONFIGURATION"),cs=new f.OlP("ROUTER_FORROOT_GUARD"),to=[l.Ye,{provide:Ze,useClass:Bt},{provide:Si,useFactory:function(E,y,_,I,R,V,ce={},we,yt){const cn=new Si(null,E,y,_,I,R,Je(V));return we&&(cn.urlHandlingStrategy=we),yt&&(cn.routeReuseStrategy=yt),function(E,y){E.errorHandler&&(y.errorHandler=E.errorHandler),E.malformedUriErrorHandler&&(y.malformedUriErrorHandler=E.malformedUriErrorHandler),E.onSameUrlNavigation&&(y.onSameUrlNavigation=E.onSameUrlNavigation),E.paramsInheritanceStrategy&&(y.paramsInheritanceStrategy=E.paramsInheritanceStrategy),E.relativeLinkResolution&&(y.relativeLinkResolution=E.relativeLinkResolution),E.urlUpdateStrategy&&(y.urlUpdateStrategy=E.urlUpdateStrategy),E.canceledNavigationResolution&&(y.canceledNavigationResolution=E.canceledNavigationResolution)}(ce,cn),ce.enableTracing&&cn.events.subscribe(Wn=>{var Dn,Jn;null==(Dn=console.group)||Dn.call(console,`Router Event: ${Wn.constructor.name}`),console.log(Wn.toString()),console.log(Wn),null==(Jn=console.groupEnd)||Jn.call(console)}),cn},deps:[Ze,sr,l.Ye,f.zs3,f.Sil,er,ls,[class{},new f.FiY],[class{},new f.FiY]]},sr,{provide:di,useFactory:function(E){return E.routerState.root},deps:[Si]},eo,yo,class{preload(y,_){return _().pipe(Nt(()=>(0,U.of)(null)))}},{provide:ls,useValue:{enableTracing:!1}}];function Hs(){return new f.PXZ("Router",Si)}let vo=(()=>{class E{constructor(_,I){}static forRoot(_,I){return{ngModule:E,providers:[to,Vo(_),{provide:cs,useFactory:ll,deps:[[Si,new f.FiY,new f.tp0]]},{provide:ls,useValue:I||{}},{provide:l.S$,useFactory:al,deps:[l.lw,[new f.tBr(l.mr),new f.FiY],ls]},{provide:Ds,useFactory:bo,deps:[Si,l.EM,ls]},{provide:rc,useExisting:I&&I.preloadingStrategy?I.preloadingStrategy:yo},{provide:f.PXZ,multi:!0,useFactory:Hs},[Do,{provide:f.ip1,multi:!0,useFactory:na,deps:[Do]},{provide:Eo,useFactory:Ho,deps:[Do]},{provide:f.tb,multi:!0,useExisting:Eo}]]}}static forChild(_){return{ngModule:E,providers:[Vo(_)]}}}return E.\u0275fac=function(_){return new(_||E)(f.LFG(cs,8),f.LFG(Si,8))},E.\u0275mod=f.oAB({type:E}),E.\u0275inj=f.cJS({}),E})();function bo(E,y,_){return _.scrollOffset&&y.setOffset(_.scrollOffset),new Ds(E,y,_)}function al(E,y,_={}){return _.useHash?new l.Do(E,y):new l.b0(E,y)}function ll(E){return"guarded"}function Vo(E){return[{provide:f.deG,multi:!0,useValue:E},{provide:er,multi:!0,useValue:E}]}let Do=(()=>{class E{constructor(_){this.injector=_,this.initNavigation=!1,this.destroyed=!1,this.resultOfPreactivationDone=new qe.xQ}appInitializer(){return this.injector.get(l.V_,Promise.resolve(null)).then(()=>{if(this.destroyed)return Promise.resolve(!0);let I=null;const R=new Promise(we=>I=we),V=this.injector.get(Si),ce=this.injector.get(ls);return"disabled"===ce.initialNavigation?(V.setUpLocationChangeListener(),I(!0)):"enabled"===ce.initialNavigation||"enabledBlocking"===ce.initialNavigation?(V.hooks.afterPreactivation=()=>this.initNavigation?(0,U.of)(null):(this.initNavigation=!0,I(!0),this.resultOfPreactivationDone),V.initialNavigation()):I(!0),R})}bootstrapListener(_){const I=this.injector.get(ls),R=this.injector.get(eo),V=this.injector.get(Ds),ce=this.injector.get(Si),we=this.injector.get(f.z2F);_===we.components[0]&&(("enabledNonBlocking"===I.initialNavigation||void 0===I.initialNavigation)&&ce.initialNavigation(),R.setUpPreloading(),V.init(),ce.resetRootComponentType(we.componentTypes[0]),this.resultOfPreactivationDone.next(null),this.resultOfPreactivationDone.complete())}ngOnDestroy(){this.destroyed=!0}}return E.\u0275fac=function(_){return new(_||E)(f.LFG(f.zs3))},E.\u0275prov=f.Yz7({token:E,factory:E.\u0275fac}),E})();function na(E){return E.appInitializer.bind(E)}function Ho(E){return E.bootstrapListener.bind(E)}const Eo=new f.OlP("Router Initializer")},5496:(St,Se,M)=>{M.d(Se,{w9:()=>Xn,A0:()=>De});var l=M(3668),f=M(9010),Z=M(8805),o=M(8105),oe=M(1125),U=M(1366),te=M(5686),G=M(8735),W=M(8053),Q=M(8548),ne=M(2907),ie=M(3405),Ne=M(9506),qe=M(8526),it=M(6019);const Le=["content"],dt=["scroll"],Qe=["padding"],Ge=function(H){return{searchTerm:H}};function Nt(H,K){if(1&H&&(l.TgZ(0,"div",6),l.GkF(1,7),l.qZA()),2&H){const A=l.oxw();l.xp6(1),l.Q6J("ngTemplateOutlet",A.headerTemplate)("ngTemplateOutletContext",l.VKq(2,Ge,A.filterValue))}}function rt(H,K){if(1&H&&(l.TgZ(0,"div",8),l.GkF(1,7),l.qZA()),2&H){const A=l.oxw();l.xp6(1),l.Q6J("ngTemplateOutlet",A.footerTemplate)("ngTemplateOutletContext",l.VKq(2,Ge,A.filterValue))}}const Ce=["*"],ht=["searchInput"];function at(H,K){if(1&H){const A=l.EpF();l.TgZ(0,"span",15),l.NdJ("click",function(){l.CHM(A);const Oe=l.oxw().$implicit;return l.oxw(2).unselect(Oe)}),l._uU(1,"\xd7"),l.qZA(),l._UZ(2,"span",16)}if(2&H){const A=l.oxw().$implicit,ee=l.oxw(2);l.xp6(2),l.Q6J("ngItemLabel",A.label)("escape",ee.escapeHTML)}}function wt(H,K){}const xt=function(H,K,A){return{item:H,clear:K,label:A}};function Yt(H,K){if(1&H&&(l.TgZ(0,"div",12),l.YNc(1,at,3,2,"ng-template",null,13,l.W1O),l.YNc(3,wt,0,0,"ng-template",14),l.qZA()),2&H){const A=K.$implicit,ee=l.MAs(2),Oe=l.oxw(2);l.ekj("ng-value-disabled",A.disabled),l.xp6(3),l.Q6J("ngTemplateOutlet",Oe.labelTemplate||ee)("ngTemplateOutletContext",l.kEZ(4,xt,A.value,Oe.clearItem,A.label))}}function Kt(H,K){if(1&H&&(l.ynx(0),l.YNc(1,Yt,4,8,"div",11),l.BQk()),2&H){const A=l.oxw();l.xp6(1),l.Q6J("ngForOf",A.selectedItems)("ngForTrackBy",A.trackByOption)}}function Zt(H,K){}const Ut=function(H,K){return{items:H,clear:K}};function on(H,K){if(1&H&&l.YNc(0,Zt,0,0,"ng-template",14),2&H){const A=l.oxw();l.Q6J("ngTemplateOutlet",A.multiLabelTemplate)("ngTemplateOutletContext",l.WLB(2,Ut,A.selectedValues,A.clearItem))}}function ft(H,K){1&H&&l._UZ(0,"div",19)}function Ft(H,K){}function Ye(H,K){if(1&H&&(l.ynx(0),l.YNc(1,ft,1,0,"ng-template",null,17,l.W1O),l.YNc(3,Ft,0,0,"ng-template",18),l.BQk()),2&H){const A=l.MAs(2),ee=l.oxw();l.xp6(3),l.Q6J("ngTemplateOutlet",ee.loadingSpinnerTemplate||A)}}function Dt(H,K){if(1&H&&(l.TgZ(0,"span",20),l.TgZ(1,"span",21),l._uU(2,"\xd7"),l.qZA(),l.qZA()),2&H){const A=l.oxw();l.s9C("title",A.clearAllText)}}function Rt(H,K){if(1&H&&l._UZ(0,"span",27),2&H){const A=l.oxw().$implicit,ee=l.oxw(2);l.Q6J("ngItemLabel",A.label)("escape",ee.escapeHTML)}}function Gt(H,K){}const zt=function(H,K,A,ee){return{item:H,item$:K,index:A,searchTerm:ee}};function sn(H,K){if(1&H){const A=l.EpF();l.TgZ(0,"div",25),l.NdJ("click",function(){const lt=l.CHM(A).$implicit;return l.oxw(2).toggleItem(lt)})("mouseover",function(){const lt=l.CHM(A).$implicit;return l.oxw(2).onItemHover(lt)}),l.YNc(1,Rt,1,2,"ng-template",null,26,l.W1O),l.YNc(3,Gt,0,0,"ng-template",14),l.qZA()}if(2&H){const A=K.$implicit,ee=l.MAs(2),Oe=l.oxw(2);l.ekj("ng-option-disabled",A.disabled)("ng-option-selected",A.selected)("ng-optgroup",A.children)("ng-option",!A.children)("ng-option-child",!!A.parent)("ng-option-marked",A===Oe.itemsList.markedItem),l.uIk("role",A.children?"group":"option")("aria-selected",A.selected)("id",null==A?null:A.htmlId),l.xp6(3),l.Q6J("ngTemplateOutlet",A.children?Oe.optgroupTemplate||ee:Oe.optionTemplate||ee)("ngTemplateOutletContext",l.l5B(17,zt,A.value,A,A.index,Oe.searchTerm))}}function We(H,K){if(1&H&&(l.TgZ(0,"span"),l.TgZ(1,"span",30),l._uU(2),l.qZA(),l._uU(3),l.qZA()),2&H){const A=l.oxw(3);l.xp6(2),l.Oqu(A.addTagText),l.xp6(1),l.hij('"',A.searchTerm,'"')}}function vt(H,K){}function Ee(H,K){if(1&H){const A=l.EpF();l.TgZ(0,"div",28),l.NdJ("mouseover",function(){return l.CHM(A),l.oxw(2).itemsList.unmarkItem()})("click",function(){return l.CHM(A),l.oxw(2).selectTag()}),l.YNc(1,We,4,2,"ng-template",null,29,l.W1O),l.YNc(3,vt,0,0,"ng-template",14),l.qZA()}if(2&H){const A=l.MAs(2),ee=l.oxw(2);l.ekj("ng-option-marked",!ee.itemsList.markedItem),l.xp6(3),l.Q6J("ngTemplateOutlet",ee.tagTemplate||A)("ngTemplateOutletContext",l.VKq(4,Ge,ee.searchTerm))}}function Fe(H,K){if(1&H&&(l.TgZ(0,"div",32),l._uU(1),l.qZA()),2&H){const A=l.oxw(3);l.xp6(1),l.Oqu(A.notFoundText)}}function Ve(H,K){}function ut(H,K){if(1&H&&(l.ynx(0),l.YNc(1,Fe,2,1,"ng-template",null,31,l.W1O),l.YNc(3,Ve,0,0,"ng-template",14),l.BQk()),2&H){const A=l.MAs(2),ee=l.oxw(2);l.xp6(3),l.Q6J("ngTemplateOutlet",ee.notFoundTemplate||A)("ngTemplateOutletContext",l.VKq(2,Ge,ee.searchTerm))}}function Pe(H,K){if(1&H&&(l.TgZ(0,"div",32),l._uU(1),l.qZA()),2&H){const A=l.oxw(3);l.xp6(1),l.Oqu(A.typeToSearchText)}}function gt(H,K){}function It(H,K){if(1&H&&(l.ynx(0),l.YNc(1,Pe,2,1,"ng-template",null,33,l.W1O),l.YNc(3,gt,0,0,"ng-template",18),l.BQk()),2&H){const A=l.MAs(2),ee=l.oxw(2);l.xp6(3),l.Q6J("ngTemplateOutlet",ee.typeToSearchTemplate||A)}}function jt(H,K){if(1&H&&(l.TgZ(0,"div",32),l._uU(1),l.qZA()),2&H){const A=l.oxw(3);l.xp6(1),l.Oqu(A.loadingText)}}function tn(H,K){}function Fn(H,K){if(1&H&&(l.ynx(0),l.YNc(1,jt,2,1,"ng-template",null,34,l.W1O),l.YNc(3,tn,0,0,"ng-template",14),l.BQk()),2&H){const A=l.MAs(2),ee=l.oxw(2);l.xp6(3),l.Q6J("ngTemplateOutlet",ee.loadingTextTemplate||A)("ngTemplateOutletContext",l.VKq(2,Ge,ee.searchTerm))}}function Xe(H,K){if(1&H){const A=l.EpF();l.TgZ(0,"ng-dropdown-panel",22),l.NdJ("update",function(Oe){return l.CHM(A),l.oxw().viewPortItems=Oe})("scroll",function(Oe){return l.CHM(A),l.oxw().scroll.emit(Oe)})("scrollToEnd",function(Oe){return l.CHM(A),l.oxw().scrollToEnd.emit(Oe)})("outsideClick",function(){return l.CHM(A),l.oxw().close()}),l.ynx(1),l.YNc(2,sn,4,22,"div",23),l.YNc(3,Ee,4,6,"div",24),l.BQk(),l.YNc(4,ut,4,4,"ng-container",3),l.YNc(5,It,4,1,"ng-container",3),l.YNc(6,Fn,4,4,"ng-container",3),l.qZA()}if(2&H){const A=l.oxw();l.ekj("ng-select-multiple",A.multiple),l.Q6J("virtualScroll",A.virtualScroll)("bufferAmount",A.bufferAmount)("appendTo",A.appendTo)("position",A.dropdownPosition)("headerTemplate",A.headerTemplate)("footerTemplate",A.footerTemplate)("filterValue",A.searchTerm)("items",A.itemsList.filteredItems)("markedItem",A.itemsList.markedItem)("ngClass",A.appendTo?A.classes:null)("id",A.dropdownId),l.xp6(2),l.Q6J("ngForOf",A.viewPortItems)("ngForTrackBy",A.trackByOption),l.xp6(1),l.Q6J("ngIf",A.showAddTag),l.xp6(1),l.Q6J("ngIf",A.showNoItemsFound()),l.xp6(1),l.Q6J("ngIf",A.showTypeToSearch()),l.xp6(1),l.Q6J("ngIf",A.loading&&0===A.itemsList.filteredItems.length)}}const $=/[&<>"']/g,X=RegExp($.source),Te={"&":"&","<":"<",">":">",'"':""","'":"'"};function nt(H){return null!=H}function Ae(H){return"object"==typeof H&&nt(H)}function ue(H){return H instanceof Function}let Be=(()=>{class H{constructor(A){this.element=A,this.escape=!0}ngOnChanges(A){this.element.nativeElement.innerHTML=this.escape?function(H){return H&&X.test(H)?H.replace($,K=>Te[K]):H}(this.ngItemLabel):this.ngItemLabel}}return H.\u0275fac=function(A){return new(A||H)(l.Y36(l.SBq))},H.\u0275dir=l.lG2({type:H,selectors:[["","ngItemLabel",""]],inputs:{ngItemLabel:"ngItemLabel",escape:"escape"},features:[l.TTD]}),H})(),ct=(()=>{class H{constructor(A){this.template=A}}return H.\u0275fac=function(A){return new(A||H)(l.Y36(l.Rgc))},H.\u0275dir=l.lG2({type:H,selectors:[["","ng-option-tmp",""]]}),H})(),At=(()=>{class H{constructor(A){this.template=A}}return H.\u0275fac=function(A){return new(A||H)(l.Y36(l.Rgc))},H.\u0275dir=l.lG2({type:H,selectors:[["","ng-optgroup-tmp",""]]}),H})(),Ct=(()=>{class H{constructor(A){this.template=A}}return H.\u0275fac=function(A){return new(A||H)(l.Y36(l.Rgc))},H.\u0275dir=l.lG2({type:H,selectors:[["","ng-label-tmp",""]]}),H})(),mt=(()=>{class H{constructor(A){this.template=A}}return H.\u0275fac=function(A){return new(A||H)(l.Y36(l.Rgc))},H.\u0275dir=l.lG2({type:H,selectors:[["","ng-multi-label-tmp",""]]}),H})(),an=(()=>{class H{constructor(A){this.template=A}}return H.\u0275fac=function(A){return new(A||H)(l.Y36(l.Rgc))},H.\u0275dir=l.lG2({type:H,selectors:[["","ng-header-tmp",""]]}),H})(),Tn=(()=>{class H{constructor(A){this.template=A}}return H.\u0275fac=function(A){return new(A||H)(l.Y36(l.Rgc))},H.\u0275dir=l.lG2({type:H,selectors:[["","ng-footer-tmp",""]]}),H})(),Pn=(()=>{class H{constructor(A){this.template=A}}return H.\u0275fac=function(A){return new(A||H)(l.Y36(l.Rgc))},H.\u0275dir=l.lG2({type:H,selectors:[["","ng-notfound-tmp",""]]}),H})(),hn=(()=>{class H{constructor(A){this.template=A}}return H.\u0275fac=function(A){return new(A||H)(l.Y36(l.Rgc))},H.\u0275dir=l.lG2({type:H,selectors:[["","ng-typetosearch-tmp",""]]}),H})(),Vn=(()=>{class H{constructor(A){this.template=A}}return H.\u0275fac=function(A){return new(A||H)(l.Y36(l.Rgc))},H.\u0275dir=l.lG2({type:H,selectors:[["","ng-loadingtext-tmp",""]]}),H})(),vn=(()=>{class H{constructor(A){this.template=A}}return H.\u0275fac=function(A){return new(A||H)(l.Y36(l.Rgc))},H.\u0275dir=l.lG2({type:H,selectors:[["","ng-tag-tmp",""]]}),H})(),He=(()=>{class H{constructor(A){this.template=A}}return H.\u0275fac=function(A){return new(A||H)(l.Y36(l.Rgc))},H.\u0275dir=l.lG2({type:H,selectors:[["","ng-loadingspinner-tmp",""]]}),H})();function ye(){return"axxxxxxxxxxx".replace(/[x]/g,()=>(16*Math.random()|0).toString(16))}const he={"\u24b6":"A",\uff21:"A",\u00c0:"A",\u00c1:"A",\u00c2:"A",\u1ea6:"A",\u1ea4:"A",\u1eaa:"A",\u1ea8:"A",\u00c3:"A",\u0100:"A",\u0102:"A",\u1eb0:"A",\u1eae:"A",\u1eb4:"A",\u1eb2:"A",\u0226:"A",\u01e0:"A",\u00c4:"A",\u01de:"A",\u1ea2:"A",\u00c5:"A",\u01fa:"A",\u01cd:"A",\u0200:"A",\u0202:"A",\u1ea0:"A",\u1eac:"A",\u1eb6:"A",\u1e00:"A",\u0104:"A",\u023a:"A",\u2c6f:"A",\ua732:"AA",\u00c6:"AE",\u01fc:"AE",\u01e2:"AE",\ua734:"AO",\ua736:"AU",\ua738:"AV",\ua73a:"AV",\ua73c:"AY","\u24b7":"B",\uff22:"B",\u1e02:"B",\u1e04:"B",\u1e06:"B",\u0243:"B",\u0182:"B",\u0181:"B","\u24b8":"C",\uff23:"C",\u0106:"C",\u0108:"C",\u010a:"C",\u010c:"C",\u00c7:"C",\u1e08:"C",\u0187:"C",\u023b:"C",\ua73e:"C","\u24b9":"D",\uff24:"D",\u1e0a:"D",\u010e:"D",\u1e0c:"D",\u1e10:"D",\u1e12:"D",\u1e0e:"D",\u0110:"D",\u018b:"D",\u018a:"D",\u0189:"D",\ua779:"D",\u01f1:"DZ",\u01c4:"DZ",\u01f2:"Dz",\u01c5:"Dz","\u24ba":"E",\uff25:"E",\u00c8:"E",\u00c9:"E",\u00ca:"E",\u1ec0:"E",\u1ebe:"E",\u1ec4:"E",\u1ec2:"E",\u1ebc:"E",\u0112:"E",\u1e14:"E",\u1e16:"E",\u0114:"E",\u0116:"E",\u00cb:"E",\u1eba:"E",\u011a:"E",\u0204:"E",\u0206:"E",\u1eb8:"E",\u1ec6:"E",\u0228:"E",\u1e1c:"E",\u0118:"E",\u1e18:"E",\u1e1a:"E",\u0190:"E",\u018e:"E","\u24bb":"F",\uff26:"F",\u1e1e:"F",\u0191:"F",\ua77b:"F","\u24bc":"G",\uff27:"G",\u01f4:"G",\u011c:"G",\u1e20:"G",\u011e:"G",\u0120:"G",\u01e6:"G",\u0122:"G",\u01e4:"G",\u0193:"G",\ua7a0:"G",\ua77d:"G",\ua77e:"G","\u24bd":"H",\uff28:"H",\u0124:"H",\u1e22:"H",\u1e26:"H",\u021e:"H",\u1e24:"H",\u1e28:"H",\u1e2a:"H",\u0126:"H",\u2c67:"H",\u2c75:"H",\ua78d:"H","\u24be":"I",\uff29:"I",\u00cc:"I",\u00cd:"I",\u00ce:"I",\u0128:"I",\u012a:"I",\u012c:"I",\u0130:"I",\u00cf:"I",\u1e2e:"I",\u1ec8:"I",\u01cf:"I",\u0208:"I",\u020a:"I",\u1eca:"I",\u012e:"I",\u1e2c:"I",\u0197:"I","\u24bf":"J",\uff2a:"J",\u0134:"J",\u0248:"J","\u24c0":"K",\uff2b:"K",\u1e30:"K",\u01e8:"K",\u1e32:"K",\u0136:"K",\u1e34:"K",\u0198:"K",\u2c69:"K",\ua740:"K",\ua742:"K",\ua744:"K",\ua7a2:"K","\u24c1":"L",\uff2c:"L",\u013f:"L",\u0139:"L",\u013d:"L",\u1e36:"L",\u1e38:"L",\u013b:"L",\u1e3c:"L",\u1e3a:"L",\u0141:"L",\u023d:"L",\u2c62:"L",\u2c60:"L",\ua748:"L",\ua746:"L",\ua780:"L",\u01c7:"LJ",\u01c8:"Lj","\u24c2":"M",\uff2d:"M",\u1e3e:"M",\u1e40:"M",\u1e42:"M",\u2c6e:"M",\u019c:"M","\u24c3":"N",\uff2e:"N",\u01f8:"N",\u0143:"N",\u00d1:"N",\u1e44:"N",\u0147:"N",\u1e46:"N",\u0145:"N",\u1e4a:"N",\u1e48:"N",\u0220:"N",\u019d:"N",\ua790:"N",\ua7a4:"N",\u01ca:"NJ",\u01cb:"Nj","\u24c4":"O",\uff2f:"O",\u00d2:"O",\u00d3:"O",\u00d4:"O",\u1ed2:"O",\u1ed0:"O",\u1ed6:"O",\u1ed4:"O",\u00d5:"O",\u1e4c:"O",\u022c:"O",\u1e4e:"O",\u014c:"O",\u1e50:"O",\u1e52:"O",\u014e:"O",\u022e:"O",\u0230:"O",\u00d6:"O",\u022a:"O",\u1ece:"O",\u0150:"O",\u01d1:"O",\u020c:"O",\u020e:"O",\u01a0:"O",\u1edc:"O",\u1eda:"O",\u1ee0:"O",\u1ede:"O",\u1ee2:"O",\u1ecc:"O",\u1ed8:"O",\u01ea:"O",\u01ec:"O",\u00d8:"O",\u01fe:"O",\u0186:"O",\u019f:"O",\ua74a:"O",\ua74c:"O",\u01a2:"OI",\ua74e:"OO",\u0222:"OU","\u24c5":"P",\uff30:"P",\u1e54:"P",\u1e56:"P",\u01a4:"P",\u2c63:"P",\ua750:"P",\ua752:"P",\ua754:"P","\u24c6":"Q",\uff31:"Q",\ua756:"Q",\ua758:"Q",\u024a:"Q","\u24c7":"R",\uff32:"R",\u0154:"R",\u1e58:"R",\u0158:"R",\u0210:"R",\u0212:"R",\u1e5a:"R",\u1e5c:"R",\u0156:"R",\u1e5e:"R",\u024c:"R",\u2c64:"R",\ua75a:"R",\ua7a6:"R",\ua782:"R","\u24c8":"S",\uff33:"S",\u1e9e:"S",\u015a:"S",\u1e64:"S",\u015c:"S",\u1e60:"S",\u0160:"S",\u1e66:"S",\u1e62:"S",\u1e68:"S",\u0218:"S",\u015e:"S",\u2c7e:"S",\ua7a8:"S",\ua784:"S","\u24c9":"T",\uff34:"T",\u1e6a:"T",\u0164:"T",\u1e6c:"T",\u021a:"T",\u0162:"T",\u1e70:"T",\u1e6e:"T",\u0166:"T",\u01ac:"T",\u01ae:"T",\u023e:"T",\ua786:"T",\ua728:"TZ","\u24ca":"U",\uff35:"U",\u00d9:"U",\u00da:"U",\u00db:"U",\u0168:"U",\u1e78:"U",\u016a:"U",\u1e7a:"U",\u016c:"U",\u00dc:"U",\u01db:"U",\u01d7:"U",\u01d5:"U",\u01d9:"U",\u1ee6:"U",\u016e:"U",\u0170:"U",\u01d3:"U",\u0214:"U",\u0216:"U",\u01af:"U",\u1eea:"U",\u1ee8:"U",\u1eee:"U",\u1eec:"U",\u1ef0:"U",\u1ee4:"U",\u1e72:"U",\u0172:"U",\u1e76:"U",\u1e74:"U",\u0244:"U","\u24cb":"V",\uff36:"V",\u1e7c:"V",\u1e7e:"V",\u01b2:"V",\ua75e:"V",\u0245:"V",\ua760:"VY","\u24cc":"W",\uff37:"W",\u1e80:"W",\u1e82:"W",\u0174:"W",\u1e86:"W",\u1e84:"W",\u1e88:"W",\u2c72:"W","\u24cd":"X",\uff38:"X",\u1e8a:"X",\u1e8c:"X","\u24ce":"Y",\uff39:"Y",\u1ef2:"Y",\u00dd:"Y",\u0176:"Y",\u1ef8:"Y",\u0232:"Y",\u1e8e:"Y",\u0178:"Y",\u1ef6:"Y",\u1ef4:"Y",\u01b3:"Y",\u024e:"Y",\u1efe:"Y","\u24cf":"Z",\uff3a:"Z",\u0179:"Z",\u1e90:"Z",\u017b:"Z",\u017d:"Z",\u1e92:"Z",\u1e94:"Z",\u01b5:"Z",\u0224:"Z",\u2c7f:"Z",\u2c6b:"Z",\ua762:"Z","\u24d0":"a",\uff41:"a",\u1e9a:"a",\u00e0:"a",\u00e1:"a",\u00e2:"a",\u1ea7:"a",\u1ea5:"a",\u1eab:"a",\u1ea9:"a",\u00e3:"a",\u0101:"a",\u0103:"a",\u1eb1:"a",\u1eaf:"a",\u1eb5:"a",\u1eb3:"a",\u0227:"a",\u01e1:"a",\u00e4:"a",\u01df:"a",\u1ea3:"a",\u00e5:"a",\u01fb:"a",\u01ce:"a",\u0201:"a",\u0203:"a",\u1ea1:"a",\u1ead:"a",\u1eb7:"a",\u1e01:"a",\u0105:"a",\u2c65:"a",\u0250:"a",\ua733:"aa",\u00e6:"ae",\u01fd:"ae",\u01e3:"ae",\ua735:"ao",\ua737:"au",\ua739:"av",\ua73b:"av",\ua73d:"ay","\u24d1":"b",\uff42:"b",\u1e03:"b",\u1e05:"b",\u1e07:"b",\u0180:"b",\u0183:"b",\u0253:"b","\u24d2":"c",\uff43:"c",\u0107:"c",\u0109:"c",\u010b:"c",\u010d:"c",\u00e7:"c",\u1e09:"c",\u0188:"c",\u023c:"c",\ua73f:"c",\u2184:"c","\u24d3":"d",\uff44:"d",\u1e0b:"d",\u010f:"d",\u1e0d:"d",\u1e11:"d",\u1e13:"d",\u1e0f:"d",\u0111:"d",\u018c:"d",\u0256:"d",\u0257:"d",\ua77a:"d",\u01f3:"dz",\u01c6:"dz","\u24d4":"e",\uff45:"e",\u00e8:"e",\u00e9:"e",\u00ea:"e",\u1ec1:"e",\u1ebf:"e",\u1ec5:"e",\u1ec3:"e",\u1ebd:"e",\u0113:"e",\u1e15:"e",\u1e17:"e",\u0115:"e",\u0117:"e",\u00eb:"e",\u1ebb:"e",\u011b:"e",\u0205:"e",\u0207:"e",\u1eb9:"e",\u1ec7:"e",\u0229:"e",\u1e1d:"e",\u0119:"e",\u1e19:"e",\u1e1b:"e",\u0247:"e",\u025b:"e",\u01dd:"e","\u24d5":"f",\uff46:"f",\u1e1f:"f",\u0192:"f",\ua77c:"f","\u24d6":"g",\uff47:"g",\u01f5:"g",\u011d:"g",\u1e21:"g",\u011f:"g",\u0121:"g",\u01e7:"g",\u0123:"g",\u01e5:"g",\u0260:"g",\ua7a1:"g",\u1d79:"g",\ua77f:"g","\u24d7":"h",\uff48:"h",\u0125:"h",\u1e23:"h",\u1e27:"h",\u021f:"h",\u1e25:"h",\u1e29:"h",\u1e2b:"h",\u1e96:"h",\u0127:"h",\u2c68:"h",\u2c76:"h",\u0265:"h",\u0195:"hv","\u24d8":"i",\uff49:"i",\u00ec:"i",\u00ed:"i",\u00ee:"i",\u0129:"i",\u012b:"i",\u012d:"i",\u00ef:"i",\u1e2f:"i",\u1ec9:"i",\u01d0:"i",\u0209:"i",\u020b:"i",\u1ecb:"i",\u012f:"i",\u1e2d:"i",\u0268:"i",\u0131:"i","\u24d9":"j",\uff4a:"j",\u0135:"j",\u01f0:"j",\u0249:"j","\u24da":"k",\uff4b:"k",\u1e31:"k",\u01e9:"k",\u1e33:"k",\u0137:"k",\u1e35:"k",\u0199:"k",\u2c6a:"k",\ua741:"k",\ua743:"k",\ua745:"k",\ua7a3:"k","\u24db":"l",\uff4c:"l",\u0140:"l",\u013a:"l",\u013e:"l",\u1e37:"l",\u1e39:"l",\u013c:"l",\u1e3d:"l",\u1e3b:"l",\u017f:"l",\u0142:"l",\u019a:"l",\u026b:"l",\u2c61:"l",\ua749:"l",\ua781:"l",\ua747:"l",\u01c9:"lj","\u24dc":"m",\uff4d:"m",\u1e3f:"m",\u1e41:"m",\u1e43:"m",\u0271:"m",\u026f:"m","\u24dd":"n",\uff4e:"n",\u01f9:"n",\u0144:"n",\u00f1:"n",\u1e45:"n",\u0148:"n",\u1e47:"n",\u0146:"n",\u1e4b:"n",\u1e49:"n",\u019e:"n",\u0272:"n",\u0149:"n",\ua791:"n",\ua7a5:"n",\u01cc:"nj","\u24de":"o",\uff4f:"o",\u00f2:"o",\u00f3:"o",\u00f4:"o",\u1ed3:"o",\u1ed1:"o",\u1ed7:"o",\u1ed5:"o",\u00f5:"o",\u1e4d:"o",\u022d:"o",\u1e4f:"o",\u014d:"o",\u1e51:"o",\u1e53:"o",\u014f:"o",\u022f:"o",\u0231:"o",\u00f6:"o",\u022b:"o",\u1ecf:"o",\u0151:"o",\u01d2:"o",\u020d:"o",\u020f:"o",\u01a1:"o",\u1edd:"o",\u1edb:"o",\u1ee1:"o",\u1edf:"o",\u1ee3:"o",\u1ecd:"o",\u1ed9:"o",\u01eb:"o",\u01ed:"o",\u00f8:"o",\u01ff:"o",\u0254:"o",\ua74b:"o",\ua74d:"o",\u0275:"o",\u01a3:"oi",\u0223:"ou",\ua74f:"oo","\u24df":"p",\uff50:"p",\u1e55:"p",\u1e57:"p",\u01a5:"p",\u1d7d:"p",\ua751:"p",\ua753:"p",\ua755:"p","\u24e0":"q",\uff51:"q",\u024b:"q",\ua757:"q",\ua759:"q","\u24e1":"r",\uff52:"r",\u0155:"r",\u1e59:"r",\u0159:"r",\u0211:"r",\u0213:"r",\u1e5b:"r",\u1e5d:"r",\u0157:"r",\u1e5f:"r",\u024d:"r",\u027d:"r",\ua75b:"r",\ua7a7:"r",\ua783:"r","\u24e2":"s",\uff53:"s",\u00df:"s",\u015b:"s",\u1e65:"s",\u015d:"s",\u1e61:"s",\u0161:"s",\u1e67:"s",\u1e63:"s",\u1e69:"s",\u0219:"s",\u015f:"s",\u023f:"s",\ua7a9:"s",\ua785:"s",\u1e9b:"s","\u24e3":"t",\uff54:"t",\u1e6b:"t",\u1e97:"t",\u0165:"t",\u1e6d:"t",\u021b:"t",\u0163:"t",\u1e71:"t",\u1e6f:"t",\u0167:"t",\u01ad:"t",\u0288:"t",\u2c66:"t",\ua787:"t",\ua729:"tz","\u24e4":"u",\uff55:"u",\u00f9:"u",\u00fa:"u",\u00fb:"u",\u0169:"u",\u1e79:"u",\u016b:"u",\u1e7b:"u",\u016d:"u",\u00fc:"u",\u01dc:"u",\u01d8:"u",\u01d6:"u",\u01da:"u",\u1ee7:"u",\u016f:"u",\u0171:"u",\u01d4:"u",\u0215:"u",\u0217:"u",\u01b0:"u",\u1eeb:"u",\u1ee9:"u",\u1eef:"u",\u1eed:"u",\u1ef1:"u",\u1ee5:"u",\u1e73:"u",\u0173:"u",\u1e77:"u",\u1e75:"u",\u0289:"u","\u24e5":"v",\uff56:"v",\u1e7d:"v",\u1e7f:"v",\u028b:"v",\ua75f:"v",\u028c:"v",\ua761:"vy","\u24e6":"w",\uff57:"w",\u1e81:"w",\u1e83:"w",\u0175:"w",\u1e87:"w",\u1e85:"w",\u1e98:"w",\u1e89:"w",\u2c73:"w","\u24e7":"x",\uff58:"x",\u1e8b:"x",\u1e8d:"x","\u24e8":"y",\uff59:"y",\u1ef3:"y",\u00fd:"y",\u0177:"y",\u1ef9:"y",\u0233:"y",\u1e8f:"y",\u00ff:"y",\u1ef7:"y",\u1e99:"y",\u1ef5:"y",\u01b4:"y",\u024f:"y",\u1eff:"y","\u24e9":"z",\uff5a:"z",\u017a:"z",\u1e91:"z",\u017c:"z",\u017e:"z",\u1e93:"z",\u1e95:"z",\u01b6:"z",\u0225:"z",\u0240:"z",\u2c6c:"z",\ua763:"z",\u0386:"\u0391",\u0388:"\u0395",\u0389:"\u0397",\u038a:"\u0399",\u03aa:"\u0399",\u038c:"\u039f",\u038e:"\u03a5",\u03ab:"\u03a5",\u038f:"\u03a9",\u03ac:"\u03b1",\u03ad:"\u03b5",\u03ae:"\u03b7",\u03af:"\u03b9",\u03ca:"\u03b9",\u0390:"\u03b9",\u03cc:"\u03bf",\u03cd:"\u03c5",\u03cb:"\u03c5",\u03b0:"\u03c5",\u03c9:"\u03c9",\u03c2:"\u03c3"};function Je(H){return H.replace(/[^\u0000-\u007E]/g,A=>he[A]||A)}class Qt{constructor(K,A){this._ngSelect=K,this._selectionModel=A,this._items=[],this._filteredItems=[],this._markedIndex=-1}get items(){return this._items}get filteredItems(){return this._filteredItems}get markedIndex(){return this._markedIndex}get selectedItems(){return this._selectionModel.value}get markedItem(){return this._filteredItems[this._markedIndex]}get noItemsToSelect(){return this._ngSelect.hideSelected&&this._items.length===this.selectedItems.length}get maxItemsSelected(){return this._ngSelect.multiple&&this._ngSelect.maxSelectedItems<=this.selectedItems.length}get lastSelectedItem(){let K=this.selectedItems.length-1;for(;K>=0;K--){const A=this.selectedItems[K];if(!A.disabled)return A}return null}setItems(K){this._items=K.map((A,ee)=>this.mapItem(A,ee)),this._ngSelect.groupBy?(this._groups=this._groupBy(this._items,this._ngSelect.groupBy),this._items=this._flatten(this._groups)):(this._groups=new Map,this._groups.set(void 0,this._items)),this._filteredItems=[...this._items]}select(K){if(K.selected||this.maxItemsSelected)return;const A=this._ngSelect.multiple;A||this.clearSelected(),this._selectionModel.select(K,A,this._ngSelect.selectableGroupAsModel),this._ngSelect.hideSelected&&this._hideSelected(K)}unselect(K){!K.selected||(this._selectionModel.unselect(K,this._ngSelect.multiple),this._ngSelect.hideSelected&&nt(K.index)&&this._ngSelect.multiple&&this._showSelected(K))}findItem(K){let A;return A=this._ngSelect.compareWith?ee=>this._ngSelect.compareWith(ee.value,K):this._ngSelect.bindValue?ee=>!ee.children&&this.resolveNested(ee.value,this._ngSelect.bindValue)===K:ee=>ee.value===K||!ee.children&&ee.label&&ee.label===this.resolveNested(K,this._ngSelect.bindLabel),this._items.find(ee=>A(ee))}addItem(K){const A=this.mapItem(K,this._items.length);return this._items.push(A),this._filteredItems.push(A),A}clearSelected(K=!1){this._selectionModel.clear(K),this._items.forEach(A=>{A.selected=K&&A.selected&&A.disabled,A.marked=!1}),this._ngSelect.hideSelected&&this.resetFilteredItems()}findByLabel(K){return K=Je(K).toLocaleLowerCase(),this.filteredItems.find(A=>Je(A.label).toLocaleLowerCase().substr(0,K.length)===K)}filter(K){if(!K)return void this.resetFilteredItems();this._filteredItems=[],K=this._ngSelect.searchFn?K:Je(K).toLocaleLowerCase();const A=this._ngSelect.searchFn||this._defaultSearchFn,ee=this._ngSelect.hideSelected;for(const Oe of Array.from(this._groups.keys())){const lt=[];for(const Ze of this._groups.get(Oe))ee&&(Ze.parent&&Ze.parent.selected||Ze.selected)||A(K,this._ngSelect.searchFn?Ze.value:Ze)&<.push(Ze);if(lt.length>0){const[Ze]=lt.slice(-1);if(Ze.parent){const Bt=this._items.find(gn=>gn===Ze.parent);this._filteredItems.push(Bt)}this._filteredItems.push(...lt)}}}resetFilteredItems(){this._filteredItems.length!==this._items.length&&(this._filteredItems=this._ngSelect.hideSelected&&this.selectedItems.length>0?this._items.filter(K=>!K.selected):this._items)}unmarkItem(){this._markedIndex=-1}markNextItem(){this._stepToItem(1)}markPreviousItem(){this._stepToItem(-1)}markItem(K){this._markedIndex=this._filteredItems.indexOf(K)}markSelectedOrDefault(K){if(0===this._filteredItems.length)return;const A=this._getLastMarkedIndex();this._markedIndex=A>-1?A:K?this.filteredItems.findIndex(ee=>!ee.disabled):-1}resolveNested(K,A){if(!Ae(K))return K;if(-1===A.indexOf("."))return K[A];{const ee=A.split(".");let Oe=K;for(let lt=0,Ze=ee.length;lt<Ze;++lt){if(null==Oe)return null;Oe=Oe[ee[lt]]}return Oe}}mapItem(K,A){const ee=nt(K.$ngOptionLabel)?K.$ngOptionLabel:this.resolveNested(K,this._ngSelect.bindLabel),Oe=nt(K.$ngOptionValue)?K.$ngOptionValue:K;return{index:A,label:nt(ee)?ee.toString():"",value:Oe,disabled:K.disabled,htmlId:`${this._ngSelect.dropdownId}-${A}`}}mapSelectedItems(){const K=this._ngSelect.multiple;for(const A of this.selectedItems){const ee=this._ngSelect.bindValue?this.resolveNested(A.value,this._ngSelect.bindValue):A.value,Oe=nt(ee)?this.findItem(ee):null;this._selectionModel.unselect(A,K),this._selectionModel.select(Oe||A,K,this._ngSelect.selectableGroupAsModel)}this._ngSelect.hideSelected&&(this._filteredItems=this.filteredItems.filter(A=>-1===this.selectedItems.indexOf(A)))}_showSelected(K){if(this._filteredItems.push(K),K.parent){const A=K.parent;this._filteredItems.find(Oe=>Oe===A)||this._filteredItems.push(A)}else if(K.children)for(const A of K.children)A.selected=!1,this._filteredItems.push(A);this._filteredItems=[...this._filteredItems.sort((A,ee)=>A.index-ee.index)]}_hideSelected(K){this._filteredItems=this._filteredItems.filter(A=>A!==K),K.parent?K.parent.children.every(ee=>ee.selected)&&(this._filteredItems=this._filteredItems.filter(ee=>ee!==K.parent)):K.children&&(this._filteredItems=this.filteredItems.filter(A=>A.parent!==K))}_defaultSearchFn(K,A){return Je(A.label).toLocaleLowerCase().indexOf(K)>-1}_getNextItemIndex(K){return K>0?this._markedIndex>=this._filteredItems.length-1?0:this._markedIndex+1:this._markedIndex<=0?this._filteredItems.length-1:this._markedIndex-1}_stepToItem(K){0===this._filteredItems.length||this._filteredItems.every(A=>A.disabled)||(this._markedIndex=this._getNextItemIndex(K),this.markedItem.disabled&&this._stepToItem(K))}_getLastMarkedIndex(){if(this._ngSelect.hideSelected||this._markedIndex>-1&&void 0===this.markedItem)return-1;const K=this._filteredItems.indexOf(this.lastSelectedItem);return this.lastSelectedItem&&K<0?-1:Math.max(this.markedIndex,K)}_groupBy(K,A){const ee=new Map;if(0===K.length)return ee;if(Array.isArray(K[0].value[A])){for(const Ze of K){const Bt=(Ze.value[A]||[]).map((gn,bn)=>this.mapItem(gn,bn));ee.set(Ze,Bt)}return ee}const Oe=ue(this._ngSelect.groupBy),lt=Ze=>{const Bt=Oe?A(Ze.value):Ze.value[A];return nt(Bt)?Bt:void 0};for(const Ze of K){const Bt=lt(Ze),gn=ee.get(Bt);gn?gn.push(Ze):ee.set(Bt,[Ze])}return ee}_flatten(K){const A=ue(this._ngSelect.groupBy),ee=[];for(const Oe of Array.from(K.keys())){let lt=ee.length;if(void 0===Oe){const Nn=K.get(void 0)||[];ee.push(...Nn.map(Me=>(Me.index=lt++,Me)));continue}const Ze=Ae(Oe),Bt={label:Ze?"":String(Oe),children:void 0,parent:null,index:lt++,disabled:!this._ngSelect.selectableGroup,htmlId:ye()},gn=A?this._ngSelect.bindLabel:this._ngSelect.groupBy,bn=this._ngSelect.groupValue||(()=>Ze?Oe.value:{[gn]:Oe}),jn=K.get(Oe).map(Nn=>(Nn.parent=Bt,Nn.children=void 0,Nn.index=lt++,Nn));Bt.children=jn,Bt.value=bn(Oe,jn.map(Nn=>Nn.value)),ee.push(Bt),ee.push(...jn)}return ee}}var ze=(()=>{return(H=ze||(ze={}))[H.Tab=9]="Tab",H[H.Enter=13]="Enter",H[H.Esc=27]="Esc",H[H.Space=32]="Space",H[H.ArrowUp=38]="ArrowUp",H[H.ArrowDown=40]="ArrowDown",H[H.Backspace=8]="Backspace",ze;var H})();let fe=(()=>{class H{constructor(){this._dimensions={itemHeight:0,panelHeight:0,itemsPerViewport:0}}get dimensions(){return this._dimensions}calculateItems(A,ee,Oe){const lt=this._dimensions,Ze=lt.itemHeight*ee,gn=Math.max(0,A)/Ze*ee;let bn=Math.min(ee,Math.ceil(gn)+(lt.itemsPerViewport+1));const Nn=Math.max(0,bn-lt.itemsPerViewport);let Me=Math.min(Nn,Math.floor(gn)),ge=lt.itemHeight*Math.ceil(Me)-lt.itemHeight*Math.min(Me,Oe);return ge=isNaN(ge)?0:ge,Me=isNaN(Me)?-1:Me,bn=isNaN(bn)?-1:bn,Me-=Oe,Me=Math.max(0,Me),bn+=Oe,bn=Math.min(ee,bn),{topPadding:ge,scrollHeight:Ze,start:Me,end:bn}}setDimensions(A,ee){const Oe=Math.max(1,Math.floor(ee/A));this._dimensions={itemHeight:A,panelHeight:ee,itemsPerViewport:Oe}}getScrollTo(A,ee,Oe){const{panelHeight:lt}=this.dimensions,Ze=A+ee,gn=Oe+lt;return lt>=Ze&&Oe===A?null:Ze>gn?Oe+Ze-gn:A<=Oe?A:null}}return H.\u0275fac=function(A){return new(A||H)},H.\u0275prov=l.Yz7({token:H,factory:H.\u0275fac}),H})();const ae=["top","right","bottom","left"],je="undefined"!=typeof requestAnimationFrame?Q.Z:ne.E;let st=(()=>{class H{constructor(A,ee,Oe,lt,Ze){this._renderer=A,this._zone=ee,this._panelService=Oe,this._document=Ze,this.items=[],this.position="auto",this.virtualScroll=!1,this.filterValue=null,this.update=new l.vpe,this.scroll=new l.vpe,this.scrollToEnd=new l.vpe,this.outsideClick=new l.vpe,this._destroy$=new ie.xQ,this._scrollToEndFired=!1,this._updateScrollHeight=!1,this._lastScrollPosition=0,this._dropdown=lt.nativeElement}get currentPosition(){return this._currentPosition}get itemsLength(){return this._itemsLength}set itemsLength(A){A!==this._itemsLength&&(this._itemsLength=A,this._onItemsLengthChanged())}get _startOffset(){if(this.markedItem){const{itemHeight:A,panelHeight:ee}=this._panelService.dimensions,Oe=this.markedItem.index*A;return ee>Oe?0:Oe}return 0}ngOnInit(){this._select=this._dropdown.parentElement,this._virtualPadding=this.paddingElementRef.nativeElement,this._scrollablePanel=this.scrollElementRef.nativeElement,this._contentPanel=this.contentElementRef.nativeElement,this._handleScroll(),this._handleOutsideClick(),this._appendDropdown(),this._setupMousedownListener()}ngOnChanges(A){if(A.items){const ee=A.items;this._onItemsChange(ee.currentValue,ee.firstChange)}}ngOnDestroy(){this._destroy$.next(),this._destroy$.complete(),this._destroy$.unsubscribe(),this.appendTo&&this._renderer.removeChild(this._dropdown.parentNode,this._dropdown)}scrollTo(A,ee=!1){if(!A)return;const Oe=this.items.indexOf(A);if(Oe<0||Oe>=this.itemsLength)return;let lt;if(this.virtualScroll){const Ze=this._panelService.dimensions.itemHeight;lt=this._panelService.getScrollTo(Oe*Ze,Ze,this._lastScrollPosition)}else{const Ze=this._dropdown.querySelector(`#${A.htmlId}`);lt=this._panelService.getScrollTo(Ze.offsetTop,Ze.clientHeight,ee?Ze.offsetTop:this._lastScrollPosition)}nt(lt)&&(this._scrollablePanel.scrollTop=lt)}scrollToTag(){const A=this._scrollablePanel;A.scrollTop=A.scrollHeight-A.clientHeight}adjustPosition(){this._updateYPosition()}_handleDropdownPosition(){this._currentPosition=this._calculateCurrentPosition(this._dropdown),ae.includes(this._currentPosition)?this._updateDropdownClass(this._currentPosition):this._updateDropdownClass("bottom"),this.appendTo&&this._updateYPosition(),this._dropdown.style.opacity="1"}_updateDropdownClass(A){ae.forEach(Oe=>{const lt=`ng-select-${Oe}`;this._renderer.removeClass(this._dropdown,lt),this._renderer.removeClass(this._select,lt)});const ee=`ng-select-${A}`;this._renderer.addClass(this._dropdown,ee),this._renderer.addClass(this._select,ee)}_handleScroll(){this._zone.runOutsideAngular(()=>{(0,Ne.R)(this.scrollElementRef.nativeElement,"scroll").pipe((0,Z.R)(this._destroy$),(0,o.e)(0,je)).subscribe(A=>{const ee=A.path||A.composedPath&&A.composedPath();this._onContentScrolled(ee&&0!==ee.length?ee[0].scrollTop:A.target.scrollTop)})})}_handleOutsideClick(){!this._document||this._zone.runOutsideAngular(()=>{(0,qe.T)((0,Ne.R)(this._document,"touchstart",{capture:!0}),(0,Ne.R)(this._document,"mousedown",{capture:!0})).pipe((0,Z.R)(this._destroy$)).subscribe(A=>this._checkToClose(A))})}_checkToClose(A){if(this._select.contains(A.target)||this._dropdown.contains(A.target))return;const ee=A.path||A.composedPath&&A.composedPath();A.target&&A.target.shadowRoot&&ee&&ee[0]&&this._select.contains(ee[0])||this._zone.run(()=>this.outsideClick.emit())}_onItemsChange(A,ee){this.items=A||[],this._scrollToEndFired=!1,this.itemsLength=A.length,this.virtualScroll?this._updateItemsRange(ee):(this._setVirtualHeight(),this._updateItems(ee))}_updateItems(A){this.update.emit(this.items),!1!==A&&this._zone.runOutsideAngular(()=>{Promise.resolve().then(()=>{this._panelService.setDimensions(0,this._scrollablePanel.clientHeight),this._handleDropdownPosition(),this.scrollTo(this.markedItem,A)})})}_updateItemsRange(A){this._zone.runOutsideAngular(()=>{this._measureDimensions().then(()=>{A?(this._renderItemsRange(this._startOffset),this._handleDropdownPosition()):this._renderItemsRange()})})}_onContentScrolled(A){this.virtualScroll&&this._renderItemsRange(A),this._lastScrollPosition=A,this._fireScrollToEnd(A)}_updateVirtualHeight(A){this._updateScrollHeight&&(this._virtualPadding.style.height=`${A}px`,this._updateScrollHeight=!1)}_setVirtualHeight(){!this._virtualPadding||(this._virtualPadding.style.height="0px")}_onItemsLengthChanged(){this._updateScrollHeight=!0}_renderItemsRange(A=null){if(A&&this._lastScrollPosition===A)return;const ee=this._panelService.calculateItems(A=A||this._scrollablePanel.scrollTop,this.itemsLength,this.bufferAmount);this._updateVirtualHeight(ee.scrollHeight),this._contentPanel.style.transform=`translateY(${ee.topPadding}px)`,this._zone.run(()=>{this.update.emit(this.items.slice(ee.start,ee.end)),this.scroll.emit({start:ee.start,end:ee.end})}),nt(A)&&0===this._lastScrollPosition&&(this._scrollablePanel.scrollTop=A,this._lastScrollPosition=A)}_measureDimensions(){if(this._panelService.dimensions.itemHeight>0||0===this.itemsLength)return Promise.resolve(this._panelService.dimensions);const[A]=this.items;return this.update.emit([A]),Promise.resolve().then(()=>{const Oe=this._dropdown.querySelector(`#${A.htmlId}`).clientHeight;return this._virtualPadding.style.height=Oe*this.itemsLength+"px",this._panelService.setDimensions(Oe,this._scrollablePanel.clientHeight),this._panelService.dimensions})}_fireScrollToEnd(A){this._scrollToEndFired||0===A||A+this._dropdown.clientHeight>=(this.virtualScroll?this._virtualPadding:this._contentPanel).clientHeight-1&&(this._zone.run(()=>this.scrollToEnd.emit()),this._scrollToEndFired=!0)}_calculateCurrentPosition(A){if("auto"!==this.position)return this.position;const ee=this._select.getBoundingClientRect(),Oe=document.documentElement.scrollTop||document.body.scrollTop;return ee.top+window.pageYOffset+ee.height+A.getBoundingClientRect().height>Oe+document.documentElement.clientHeight?"top":"bottom"}_appendDropdown(){if(this.appendTo){if(this._parent=document.querySelector(this.appendTo),!this._parent)throw new Error(`appendTo selector ${this.appendTo} did not found any parent element`);this._updateXPosition(),this._parent.appendChild(this._dropdown)}}_updateXPosition(){const A=this._select.getBoundingClientRect(),ee=this._parent.getBoundingClientRect();this._dropdown.style.left=A.left-ee.left+"px",this._dropdown.style.width=A.width+"px",this._dropdown.style.minWidth=A.width+"px"}_updateYPosition(){const A=this._select.getBoundingClientRect(),ee=this._parent.getBoundingClientRect(),Oe=A.height;"top"===this._currentPosition?(this._dropdown.style.bottom=ee.bottom-A.bottom+Oe+"px",this._dropdown.style.top="auto"):"bottom"===this._currentPosition&&(this._dropdown.style.top=A.top-ee.top+Oe+"px",this._dropdown.style.bottom="auto")}_setupMousedownListener(){this._zone.runOutsideAngular(()=>{(0,Ne.R)(this._dropdown,"mousedown").pipe((0,Z.R)(this._destroy$)).subscribe(A=>{"INPUT"!==A.target.tagName&&A.preventDefault()})})}}return H.\u0275fac=function(A){return new(A||H)(l.Y36(l.Qsj),l.Y36(l.R0b),l.Y36(fe),l.Y36(l.SBq),l.Y36(it.K0,8))},H.\u0275cmp=l.Xpm({type:H,selectors:[["ng-dropdown-panel"]],viewQuery:function(A,ee){if(1&A&&(l.Gf(Le,7,l.SBq),l.Gf(dt,7,l.SBq),l.Gf(Qe,7,l.SBq)),2&A){let Oe;l.iGM(Oe=l.CRH())&&(ee.contentElementRef=Oe.first),l.iGM(Oe=l.CRH())&&(ee.scrollElementRef=Oe.first),l.iGM(Oe=l.CRH())&&(ee.paddingElementRef=Oe.first)}},inputs:{items:"items",markedItem:"markedItem",position:"position",appendTo:"appendTo",bufferAmount:"bufferAmount",virtualScroll:"virtualScroll",headerTemplate:"headerTemplate",footerTemplate:"footerTemplate",filterValue:"filterValue"},outputs:{update:"update",scroll:"scroll",scrollToEnd:"scrollToEnd",outsideClick:"outsideClick"},features:[l.TTD],ngContentSelectors:Ce,decls:9,vars:6,consts:[["class","ng-dropdown-header",4,"ngIf"],[1,"ng-dropdown-panel-items","scroll-host"],["scroll",""],["padding",""],["content",""],["class","ng-dropdown-footer",4,"ngIf"],[1,"ng-dropdown-header"],[3,"ngTemplateOutlet","ngTemplateOutletContext"],[1,"ng-dropdown-footer"]],template:function(A,ee){1&A&&(l.F$t(),l.YNc(0,Nt,2,4,"div",0),l.TgZ(1,"div",1,2),l._UZ(3,"div",null,3),l.TgZ(5,"div",null,4),l.Hsn(7),l.qZA(),l.qZA(),l.YNc(8,rt,2,4,"div",5)),2&A&&(l.Q6J("ngIf",ee.headerTemplate),l.xp6(3),l.ekj("total-padding",ee.virtualScroll),l.xp6(2),l.ekj("scrollable-content",ee.virtualScroll&&ee.items.length),l.xp6(3),l.Q6J("ngIf",ee.footerTemplate))},directives:[it.O5,it.tP],encapsulation:2,changeDetection:0}),H})(),kt=(()=>{class H{constructor(A){this.elementRef=A,this.stateChange$=new ie.xQ,this._disabled=!1}get disabled(){return this._disabled}set disabled(A){this._disabled=this._isDisabled(A)}get label(){return(this.elementRef.nativeElement.textContent||"").trim()}ngOnChanges(A){A.disabled&&this.stateChange$.next({value:this.value,disabled:this._disabled})}ngAfterViewChecked(){this.label!==this._previousLabel&&(this._previousLabel=this.label,this.stateChange$.next({value:this.value,disabled:this._disabled,label:this.elementRef.nativeElement.innerHTML}))}ngOnDestroy(){this.stateChange$.complete()}_isDisabled(A){return null!=A&&"false"!=`${A}`}}return H.\u0275fac=function(A){return new(A||H)(l.Y36(l.SBq))},H.\u0275cmp=l.Xpm({type:H,selectors:[["ng-option"]],inputs:{value:"value",disabled:"disabled"},features:[l.TTD],ngContentSelectors:Ce,decls:1,vars:0,template:function(A,ee){1&A&&(l.F$t(),l.Hsn(0))},encapsulation:2,changeDetection:0}),H})(),fn=(()=>{class H{constructor(){this.notFoundText="No items found",this.typeToSearchText="Type to search",this.addTagText="Add item",this.loadingText="Loading...",this.clearAllText="Clear all",this.disableVirtualScroll=!0,this.openOnEnter=!0,this.appearance="underline"}}return H.\u0275fac=function(A){return new(A||H)},H.\u0275prov=l.Yz7({token:H,factory:H.\u0275fac,providedIn:"root"}),H})(),$n=(()=>{class H{warn(A){console.warn(A)}}return H.\u0275fac=function(A){return new(A||H)},H.\u0275prov=l.Yz7({token:H,factory:H.\u0275fac,providedIn:"root"}),H})();const ri=new l.OlP("ng-select-selection-model");let Xn=(()=>{class H{constructor(A,ee,Oe,lt,Ze,Bt,gn){this.classes=A,this.autoFocus=ee,this.config=Oe,this._cd=Bt,this._console=gn,this.markFirst=!0,this.dropdownPosition="auto",this.loading=!1,this.closeOnSelect=!0,this.hideSelected=!1,this.selectOnTab=!1,this.bufferAmount=4,this.selectableGroup=!1,this.selectableGroupAsModel=!0,this.searchFn=null,this.trackByFn=null,this.clearOnBackspace=!0,this.labelForId=null,this.inputAttrs={},this.readonly=!1,this.searchWhileComposing=!0,this.minTermLength=0,this.editableSearchTerm=!1,this.keyDownFn=bn=>!0,this.multiple=!1,this.addTag=!1,this.searchable=!0,this.clearable=!0,this.isOpen=!1,this.blurEvent=new l.vpe,this.focusEvent=new l.vpe,this.changeEvent=new l.vpe,this.openEvent=new l.vpe,this.closeEvent=new l.vpe,this.searchEvent=new l.vpe,this.clearEvent=new l.vpe,this.addEvent=new l.vpe,this.removeEvent=new l.vpe,this.scroll=new l.vpe,this.scrollToEnd=new l.vpe,this.useDefaultClass=!0,this.viewPortItems=[],this.searchTerm=null,this.dropdownId=ye(),this.escapeHTML=!0,this._items=[],this._defaultLabel="label",this._pressedKeys=[],this._isComposing=!1,this._destroy$=new ie.xQ,this._keyPress$=new ie.xQ,this._onChange=bn=>{},this._onTouched=()=>{},this.clearItem=bn=>{const jn=this.selectedItems.find(Nn=>Nn.value===bn);this.unselect(jn)},this.trackByOption=(bn,jn)=>this.trackByFn?this.trackByFn(jn.value):jn,this._mergeGlobalConfig(Oe),this.itemsList=new Qt(this,lt()),this.element=Ze.nativeElement}get items(){return this._items}set items(A){null===A&&(A=[]),this._itemsAreUsed=!0,this._items=A}get compareWith(){return this._compareWith}set compareWith(A){if(null!=A&&!ue(A))throw Error("`compareWith` must be a function.");this._compareWith=A}get clearSearchOnAdd(){return nt(this._clearSearchOnAdd)?this._clearSearchOnAdd:nt(this.config.clearSearchOnAdd)?this.config.clearSearchOnAdd:this.closeOnSelect}set clearSearchOnAdd(A){this._clearSearchOnAdd=A}get disabled(){return this.readonly||this._disabled}get filtered(){return!!this.searchTerm&&this.searchable||this._isComposing}get single(){return!this.multiple}get _editableSearchTerm(){return this.editableSearchTerm&&!this.multiple}get selectedItems(){return this.itemsList.selectedItems}get selectedValues(){return this.selectedItems.map(A=>A.value)}get hasValue(){return this.selectedItems.length>0}get currentPanelPosition(){if(this.dropdownPanel)return this.dropdownPanel.currentPosition}ngOnInit(){this._handleKeyPresses(),this._setInputAttributes()}ngOnChanges(A){A.multiple&&this.itemsList.clearSelected(),A.items&&this._setItems(A.items.currentValue||[]),A.isOpen&&(this._manualOpen=nt(A.isOpen.currentValue))}ngAfterViewInit(){this._itemsAreUsed||(this.escapeHTML=!1,this._setItemsFromNgOptions()),nt(this.autoFocus)&&this.focus()}ngOnDestroy(){this._destroy$.next(),this._destroy$.complete()}handleKeyDown(A){if(ze[A.which]){if(!1===this.keyDownFn(A))return;this.handleKeyCode(A)}else A.key&&1===A.key.length&&this._keyPress$.next(A.key.toLocaleLowerCase())}handleKeyCode(A){switch(A.which){case ze.ArrowDown:this._handleArrowDown(A);break;case ze.ArrowUp:this._handleArrowUp(A);break;case ze.Space:this._handleSpace(A);break;case ze.Enter:this._handleEnter(A);break;case ze.Tab:this._handleTab(A);break;case ze.Esc:this.close(),A.preventDefault();break;case ze.Backspace:this._handleBackspace()}}handleMousedown(A){const ee=A.target;"INPUT"!==ee.tagName&&A.preventDefault(),ee.classList.contains("ng-clear-wrapper")?this.handleClearClick():ee.classList.contains("ng-arrow-wrapper")?this.handleArrowClick():ee.classList.contains("ng-value-icon")||(this.focused||this.focus(),this.searchable?this.open():this.toggle())}handleArrowClick(){this.isOpen?this.close():this.open()}handleClearClick(){this.hasValue&&(this.itemsList.clearSelected(!0),this._updateNgModel()),this._clearSearch(),this.focus(),this.clearEvent.emit(),this._onSelectionChanged()}clearModel(){!this.clearable||(this.itemsList.clearSelected(),this._updateNgModel())}writeValue(A){this.itemsList.clearSelected(),this._handleWriteValue(A),this._cd.markForCheck()}registerOnChange(A){this._onChange=A}registerOnTouched(A){this._onTouched=A}setDisabledState(A){this._disabled=A,this._cd.markForCheck()}toggle(){this.isOpen?this.close():this.open()}open(){this.disabled||this.isOpen||this.itemsList.maxItemsSelected||this._manualOpen||!this._isTypeahead&&!this.addTag&&this.itemsList.noItemsToSelect||(this.isOpen=!0,this.itemsList.markSelectedOrDefault(this.markFirst),this.openEvent.emit(),this.searchTerm||this.focus(),this.detectChanges())}close(){!this.isOpen||this._manualOpen||(this.isOpen=!1,this._isComposing=!1,this._editableSearchTerm?this.itemsList.resetFilteredItems():this._clearSearch(),this.itemsList.unmarkItem(),this._onTouched(),this.closeEvent.emit(),this._cd.markForCheck())}toggleItem(A){!A||A.disabled||this.disabled||(this.multiple&&A.selected?this.unselect(A):this.select(A),this._editableSearchTerm&&this._setSearchTermFromItems(),this._onSelectionChanged())}select(A){A.selected||(this.itemsList.select(A),this.clearSearchOnAdd&&!this._editableSearchTerm&&this._clearSearch(),this._updateNgModel(),this.multiple&&this.addEvent.emit(A.value)),(this.closeOnSelect||this.itemsList.noItemsToSelect)&&this.close()}focus(){this.searchInput.nativeElement.focus()}blur(){this.searchInput.nativeElement.blur()}unselect(A){!A||(this.itemsList.unselect(A),this.focus(),this._updateNgModel(),this.removeEvent.emit(A))}selectTag(){let A;A=ue(this.addTag)?this.addTag(this.searchTerm):this._primitive?this.searchTerm:{[this.bindLabel]:this.searchTerm};const ee=Oe=>this._isTypeahead||!this.isOpen?this.itemsList.mapItem(Oe,null):this.itemsList.addItem(Oe);!function(H){return H instanceof Promise}(A)?A&&this.select(ee(A)):A.then(Oe=>this.select(ee(Oe))).catch(()=>{})}showClear(){return this.clearable&&(this.hasValue||this.searchTerm)&&!this.disabled}get showAddTag(){if(!this._validTerm)return!1;const A=this.searchTerm.toLowerCase().trim();return this.addTag&&!this.itemsList.filteredItems.some(ee=>ee.label.toLowerCase()===A)&&(!this.hideSelected&&this.isOpen||!this.selectedItems.some(ee=>ee.label.toLowerCase()===A))&&!this.loading}showNoItemsFound(){const A=0===this.itemsList.filteredItems.length;return(A&&!this._isTypeahead&&!this.loading||A&&this._isTypeahead&&this._validTerm&&!this.loading)&&!this.showAddTag}showTypeToSearch(){return 0===this.itemsList.filteredItems.length&&this._isTypeahead&&!this._validTerm&&!this.loading}onCompositionStart(){this._isComposing=!0}onCompositionEnd(A){this._isComposing=!1,!this.searchWhileComposing&&this.filter(A)}filter(A){this._isComposing&&!this.searchWhileComposing||(this.searchTerm=A,this._isTypeahead&&(this._validTerm||0===this.minTermLength)&&this.typeahead.next(A),this._isTypeahead||(this.itemsList.filter(this.searchTerm),this.isOpen&&this.itemsList.markSelectedOrDefault(this.markFirst)),this.searchEvent.emit({term:A,items:this.itemsList.filteredItems.map(ee=>ee.value)}),this.open())}onInputFocus(A){this.focused||(this._editableSearchTerm&&this._setSearchTermFromItems(),this.element.classList.add("ng-select-focused"),this.focusEvent.emit(A),this.focused=!0)}onInputBlur(A){this.element.classList.remove("ng-select-focused"),this.blurEvent.emit(A),!this.isOpen&&!this.disabled&&this._onTouched(),this._editableSearchTerm&&this._setSearchTermFromItems(),this.focused=!1}onItemHover(A){A.disabled||this.itemsList.markItem(A)}detectChanges(){this._cd.destroyed||this._cd.detectChanges()}_setSearchTermFromItems(){const A=this.selectedItems&&this.selectedItems[0];this.searchTerm=A&&A.label||null}_setItems(A){const ee=A[0];this.bindLabel=this.bindLabel||this._defaultLabel,this._primitive=nt(ee)?!Ae(ee):this._primitive||this.bindLabel===this._defaultLabel,this.itemsList.setItems(A),A.length>0&&this.hasValue&&this.itemsList.mapSelectedItems(),this.isOpen&&nt(this.searchTerm)&&!this._isTypeahead&&this.itemsList.filter(this.searchTerm),(this._isTypeahead||this.isOpen)&&this.itemsList.markSelectedOrDefault(this.markFirst)}_setItemsFromNgOptions(){const A=Oe=>{this.items=Oe.map(lt=>({$ngOptionValue:lt.value,$ngOptionLabel:lt.elementRef.nativeElement.innerHTML,disabled:lt.disabled})),this.itemsList.setItems(this.items),this.hasValue&&this.itemsList.mapSelectedItems(),this.detectChanges()},ee=()=>{const Oe=(0,qe.T)(this.ngOptions.changes,this._destroy$);(0,qe.T)(...this.ngOptions.map(lt=>lt.stateChange$)).pipe((0,Z.R)(Oe)).subscribe(lt=>{const Ze=this.itemsList.findItem(lt.value);Ze.disabled=lt.disabled,Ze.label=lt.label||Ze.label,this._cd.detectChanges()})};this.ngOptions.changes.pipe((0,oe.O)(this.ngOptions),(0,Z.R)(this._destroy$)).subscribe(Oe=>{this.bindLabel=this._defaultLabel,A(Oe),ee()})}_isValidWriteValue(A){if(!nt(A)||this.multiple&&""===A||Array.isArray(A)&&0===A.length)return!1;const ee=Oe=>!(!nt(this.compareWith)&&Ae(Oe)&&this.bindValue&&(this._console.warn(`Setting object(${JSON.stringify(Oe)}) as your model with bindValue is not allowed unless [compareWith] is used.`),1));return this.multiple?Array.isArray(A)?A.every(Oe=>ee(Oe)):(this._console.warn("Multiple select ngModel should be array."),!1):ee(A)}_handleWriteValue(A){if(!this._isValidWriteValue(A))return;const ee=Oe=>{let lt=this.itemsList.findItem(Oe);if(lt)this.itemsList.select(lt);else{const Ze=Ae(Oe),Bt=!Ze&&!this.bindValue;Ze||Bt?this.itemsList.select(this.itemsList.mapItem(Oe,null)):this.bindValue&&(lt={[this.bindLabel]:null,[this.bindValue]:Oe},this.itemsList.select(this.itemsList.mapItem(lt,null)))}};this.multiple?A.forEach(Oe=>ee(Oe)):ee(A)}_handleKeyPresses(){this.searchable||this._keyPress$.pipe((0,Z.R)(this._destroy$),(0,U.b)(A=>this._pressedKeys.push(A)),(0,te.b)(200),(0,G.h)(()=>this._pressedKeys.length>0),(0,W.U)(()=>this._pressedKeys.join(""))).subscribe(A=>{const ee=this.itemsList.findByLabel(A);ee&&(this.isOpen?(this.itemsList.markItem(ee),this._scrollToMarked(),this._cd.markForCheck()):this.select(ee)),this._pressedKeys=[]})}_setInputAttributes(){const A=this.searchInput.nativeElement,ee=Wt({type:"text",autocorrect:"off",autocapitalize:"off",autocomplete:this.labelForId?"off":this.dropdownId},this.inputAttrs);for(const Oe of Object.keys(ee))A.setAttribute(Oe,ee[Oe])}_updateNgModel(){const A=[];for(const Oe of this.selectedItems)if(this.bindValue){let lt=null;lt=Oe.children?Oe.value[(this.groupValue?this.bindValue:this.groupBy)||this.groupBy]:this.itemsList.resolveNested(Oe.value,this.bindValue),A.push(lt)}else A.push(Oe.value);const ee=this.selectedItems.map(Oe=>Oe.value);this.multiple?(this._onChange(A),this.changeEvent.emit(ee)):(this._onChange(nt(A[0])?A[0]:null),this.changeEvent.emit(ee[0])),this._cd.markForCheck()}_clearSearch(){!this.searchTerm||(this._changeSearch(null),this.itemsList.resetFilteredItems())}_changeSearch(A){this.searchTerm=A,this._isTypeahead&&this.typeahead.next(A)}_scrollToMarked(){!this.isOpen||!this.dropdownPanel||this.dropdownPanel.scrollTo(this.itemsList.markedItem)}_scrollToTag(){!this.isOpen||!this.dropdownPanel||this.dropdownPanel.scrollToTag()}_onSelectionChanged(){this.isOpen&&this.multiple&&this.appendTo&&(this._cd.detectChanges(),this.dropdownPanel.adjustPosition())}_handleTab(A){!1===this.isOpen&&!this.addTag||(this.selectOnTab?this.itemsList.markedItem?(this.toggleItem(this.itemsList.markedItem),A.preventDefault()):this.showAddTag?(this.selectTag(),A.preventDefault()):this.close():this.close())}_handleEnter(A){if(this.isOpen||this._manualOpen)this.itemsList.markedItem?this.toggleItem(this.itemsList.markedItem):this.showAddTag&&this.selectTag();else{if(!this.openOnEnter)return;this.open()}A.preventDefault()}_handleSpace(A){this.isOpen||this._manualOpen||(this.open(),A.preventDefault())}_handleArrowDown(A){this._nextItemIsTag(1)?(this.itemsList.unmarkItem(),this._scrollToTag()):(this.itemsList.markNextItem(),this._scrollToMarked()),this.open(),A.preventDefault()}_handleArrowUp(A){!this.isOpen||(this._nextItemIsTag(-1)?(this.itemsList.unmarkItem(),this._scrollToTag()):(this.itemsList.markPreviousItem(),this._scrollToMarked()),A.preventDefault())}_nextItemIsTag(A){const ee=this.itemsList.markedIndex+A;return this.addTag&&this.searchTerm&&this.itemsList.markedItem&&(ee<0||ee===this.itemsList.filteredItems.length)}_handleBackspace(){this.searchTerm||!this.clearable||!this.clearOnBackspace||!this.hasValue||(this.multiple?this.unselect(this.itemsList.lastSelectedItem):this.clearModel())}get _isTypeahead(){return this.typeahead&&this.typeahead.observers.length>0}get _validTerm(){const A=this.searchTerm&&this.searchTerm.trim();return A&&A.length>=this.minTermLength}_mergeGlobalConfig(A){this.placeholder=this.placeholder||A.placeholder,this.notFoundText=this.notFoundText||A.notFoundText,this.typeToSearchText=this.typeToSearchText||A.typeToSearchText,this.addTagText=this.addTagText||A.addTagText,this.loadingText=this.loadingText||A.loadingText,this.clearAllText=this.clearAllText||A.clearAllText,this.virtualScroll=nt(this.virtualScroll)?this.virtualScroll:!!nt(A.disableVirtualScroll)&&!A.disableVirtualScroll,this.openOnEnter=nt(this.openOnEnter)?this.openOnEnter:A.openOnEnter,this.appendTo=this.appendTo||A.appendTo,this.bindValue=this.bindValue||A.bindValue,this.bindLabel=this.bindLabel||A.bindLabel,this.appearance=this.appearance||A.appearance}}return H.\u0275fac=function(A){return new(A||H)(l.$8M("class"),l.$8M("autofocus"),l.Y36(fn),l.Y36(ri),l.Y36(l.SBq),l.Y36(l.sBO),l.Y36($n))},H.\u0275cmp=l.Xpm({type:H,selectors:[["ng-select"]],contentQueries:function(A,ee,Oe){if(1&A&&(l.Suo(Oe,ct,5,l.Rgc),l.Suo(Oe,At,5,l.Rgc),l.Suo(Oe,Ct,5,l.Rgc),l.Suo(Oe,mt,5,l.Rgc),l.Suo(Oe,an,5,l.Rgc),l.Suo(Oe,Tn,5,l.Rgc),l.Suo(Oe,Pn,5,l.Rgc),l.Suo(Oe,hn,5,l.Rgc),l.Suo(Oe,Vn,5,l.Rgc),l.Suo(Oe,vn,5,l.Rgc),l.Suo(Oe,He,5,l.Rgc),l.Suo(Oe,kt,5)),2&A){let lt;l.iGM(lt=l.CRH())&&(ee.optionTemplate=lt.first),l.iGM(lt=l.CRH())&&(ee.optgroupTemplate=lt.first),l.iGM(lt=l.CRH())&&(ee.labelTemplate=lt.first),l.iGM(lt=l.CRH())&&(ee.multiLabelTemplate=lt.first),l.iGM(lt=l.CRH())&&(ee.headerTemplate=lt.first),l.iGM(lt=l.CRH())&&(ee.footerTemplate=lt.first),l.iGM(lt=l.CRH())&&(ee.notFoundTemplate=lt.first),l.iGM(lt=l.CRH())&&(ee.typeToSearchTemplate=lt.first),l.iGM(lt=l.CRH())&&(ee.loadingTextTemplate=lt.first),l.iGM(lt=l.CRH())&&(ee.tagTemplate=lt.first),l.iGM(lt=l.CRH())&&(ee.loadingSpinnerTemplate=lt.first),l.iGM(lt=l.CRH())&&(ee.ngOptions=lt)}},viewQuery:function(A,ee){if(1&A&&(l.Gf(st,5),l.Gf(ht,7)),2&A){let Oe;l.iGM(Oe=l.CRH())&&(ee.dropdownPanel=Oe.first),l.iGM(Oe=l.CRH())&&(ee.searchInput=Oe.first)}},hostVars:20,hostBindings:function(A,ee){1&A&&l.NdJ("keydown",function(lt){return ee.handleKeyDown(lt)}),2&A&&l.ekj("ng-select-typeahead",ee.typeahead)("ng-select-multiple",ee.multiple)("ng-select-taggable",ee.addTag)("ng-select-searchable",ee.searchable)("ng-select-clearable",ee.clearable)("ng-select-opened",ee.isOpen)("ng-select",ee.useDefaultClass)("ng-select-disabled",ee.disabled)("ng-select-filtered",ee.filtered)("ng-select-single",ee.single)},inputs:{bindLabel:"bindLabel",bindValue:"bindValue",markFirst:"markFirst",placeholder:"placeholder",notFoundText:"notFoundText",typeToSearchText:"typeToSearchText",addTagText:"addTagText",loadingText:"loadingText",clearAllText:"clearAllText",appearance:"appearance",dropdownPosition:"dropdownPosition",appendTo:"appendTo",loading:"loading",closeOnSelect:"closeOnSelect",hideSelected:"hideSelected",selectOnTab:"selectOnTab",openOnEnter:"openOnEnter",maxSelectedItems:"maxSelectedItems",groupBy:"groupBy",groupValue:"groupValue",bufferAmount:"bufferAmount",virtualScroll:"virtualScroll",selectableGroup:"selectableGroup",selectableGroupAsModel:"selectableGroupAsModel",searchFn:"searchFn",trackByFn:"trackByFn",clearOnBackspace:"clearOnBackspace",labelForId:"labelForId",inputAttrs:"inputAttrs",tabIndex:"tabIndex",readonly:"readonly",searchWhileComposing:"searchWhileComposing",minTermLength:"minTermLength",editableSearchTerm:"editableSearchTerm",keyDownFn:"keyDownFn",typeahead:"typeahead",multiple:"multiple",addTag:"addTag",searchable:"searchable",clearable:"clearable",isOpen:"isOpen",items:"items",compareWith:"compareWith",clearSearchOnAdd:"clearSearchOnAdd"},outputs:{blurEvent:"blur",focusEvent:"focus",changeEvent:"change",openEvent:"open",closeEvent:"close",searchEvent:"search",clearEvent:"clear",addEvent:"add",removeEvent:"remove",scroll:"scroll",scrollToEnd:"scrollToEnd"},features:[l._Bn([{provide:f.JU,useExisting:(0,l.Gpc)(()=>H),multi:!0},fe]),l.TTD],decls:14,vars:19,consts:[[1,"ng-select-container",3,"mousedown"],[1,"ng-value-container"],[1,"ng-placeholder"],[4,"ngIf"],["role","combobox","aria-haspopup","listbox",1,"ng-input"],["aria-autocomplete","list",3,"readOnly","disabled","value","input","compositionstart","compositionend","focus","blur","change"],["searchInput",""],["class","ng-clear-wrapper",3,"title",4,"ngIf"],[1,"ng-arrow-wrapper"],[1,"ng-arrow"],["class","ng-dropdown-panel","role","listbox","aria-label","Options list",3,"virtualScroll","bufferAmount","appendTo","position","headerTemplate","footerTemplate","filterValue","items","markedItem","ng-select-multiple","ngClass","id","update","scroll","scrollToEnd","outsideClick",4,"ngIf"],["class","ng-value",3,"ng-value-disabled",4,"ngFor","ngForOf","ngForTrackBy"],[1,"ng-value"],["defaultLabelTemplate",""],[3,"ngTemplateOutlet","ngTemplateOutletContext"],["aria-hidden","true",1,"ng-value-icon","left",3,"click"],[1,"ng-value-label",3,"ngItemLabel","escape"],["defaultLoadingSpinnerTemplate",""],[3,"ngTemplateOutlet"],[1,"ng-spinner-loader"],[1,"ng-clear-wrapper",3,"title"],["aria-hidden","true",1,"ng-clear"],["role","listbox","aria-label","Options list",1,"ng-dropdown-panel",3,"virtualScroll","bufferAmount","appendTo","position","headerTemplate","footerTemplate","filterValue","items","markedItem","ngClass","id","update","scroll","scrollToEnd","outsideClick"],["class","ng-option",3,"ng-option-disabled","ng-option-selected","ng-optgroup","ng-option","ng-option-child","ng-option-marked","click","mouseover",4,"ngFor","ngForOf","ngForTrackBy"],["class","ng-option","role","option",3,"ng-option-marked","mouseover","click",4,"ngIf"],[1,"ng-option",3,"click","mouseover"],["defaultOptionTemplate",""],[1,"ng-option-label",3,"ngItemLabel","escape"],["role","option",1,"ng-option",3,"mouseover","click"],["defaultTagTemplate",""],[1,"ng-tag-label"],["defaultNotFoundTemplate",""],[1,"ng-option","ng-option-disabled"],["defaultTypeToSearchTemplate",""],["defaultLoadingTextTemplate",""]],template:function(A,ee){if(1&A){const Oe=l.EpF();l.TgZ(0,"div",0),l.NdJ("mousedown",function(Ze){return ee.handleMousedown(Ze)}),l.TgZ(1,"div",1),l.TgZ(2,"div",2),l._uU(3),l.qZA(),l.YNc(4,Kt,2,2,"ng-container",3),l.YNc(5,on,1,5,void 0,3),l.TgZ(6,"div",4),l.TgZ(7,"input",5,6),l.NdJ("input",function(){l.CHM(Oe);const Ze=l.MAs(8);return ee.filter(Ze.value)})("compositionstart",function(){return ee.onCompositionStart()})("compositionend",function(){l.CHM(Oe);const Ze=l.MAs(8);return ee.onCompositionEnd(Ze.value)})("focus",function(Ze){return ee.onInputFocus(Ze)})("blur",function(Ze){return ee.onInputBlur(Ze)})("change",function(Ze){return Ze.stopPropagation()}),l.qZA(),l.qZA(),l.qZA(),l.YNc(9,Ye,4,1,"ng-container",3),l.YNc(10,Dt,3,1,"span",7),l.TgZ(11,"span",8),l._UZ(12,"span",9),l.qZA(),l.qZA(),l.YNc(13,Xe,7,19,"ng-dropdown-panel",10)}2&A&&(l.ekj("ng-appearance-outline","outline"===ee.appearance)("ng-has-value",ee.hasValue),l.xp6(3),l.Oqu(ee.placeholder),l.xp6(1),l.Q6J("ngIf",(!ee.multiLabelTemplate||!ee.multiple)&&ee.selectedItems.length>0),l.xp6(1),l.Q6J("ngIf",ee.multiple&&ee.multiLabelTemplate&&ee.selectedValues.length>0),l.xp6(1),l.uIk("aria-expanded",ee.isOpen)("aria-owns",ee.isOpen?ee.dropdownId:null),l.xp6(1),l.Q6J("readOnly",!ee.searchable||ee.itemsList.maxItemsSelected)("disabled",ee.disabled)("value",ee.searchTerm?ee.searchTerm:""),l.uIk("id",ee.labelForId)("tabindex",ee.tabIndex)("aria-activedescendant",ee.isOpen?null==ee.itemsList||null==ee.itemsList.markedItem?null:ee.itemsList.markedItem.htmlId:null)("aria-controls",ee.isOpen?ee.dropdownId:null),l.xp6(2),l.Q6J("ngIf",ee.loading),l.xp6(1),l.Q6J("ngIf",ee.showClear()),l.xp6(3),l.Q6J("ngIf",ee.isOpen))},directives:[it.O5,it.sg,it.tP,Be,st,it.mk],styles:['@charset "UTF-8";.ng-select{position:relative;display:block;box-sizing:border-box}.ng-select div,.ng-select input,.ng-select span{box-sizing:border-box}.ng-select [hidden]{display:none}.ng-select.ng-select-searchable .ng-select-container .ng-value-container .ng-input{opacity:1}.ng-select.ng-select-opened .ng-select-container{z-index:1001}.ng-select.ng-select-disabled .ng-select-container .ng-value-container .ng-placeholder,.ng-select.ng-select-disabled .ng-select-container .ng-value-container .ng-value{-webkit-user-select:none;user-select:none;cursor:default}.ng-select.ng-select-disabled .ng-arrow-wrapper{cursor:default}.ng-select.ng-select-filtered .ng-placeholder{display:none}.ng-select .ng-select-container{cursor:default;display:flex;outline:none;overflow:hidden;position:relative;width:100%}.ng-select .ng-select-container .ng-value-container{display:flex;flex:1}.ng-select .ng-select-container .ng-value-container .ng-input{opacity:0}.ng-select .ng-select-container .ng-value-container .ng-input>input{box-sizing:content-box;background:none transparent;border:0 none;box-shadow:none;outline:none;padding:0;cursor:default;width:100%}.ng-select .ng-select-container .ng-value-container .ng-input>input::-ms-clear{display:none}.ng-select .ng-select-container .ng-value-container .ng-input>input[readonly]{-webkit-user-select:none;user-select:none;width:0;padding:0}.ng-select.ng-select-single.ng-select-filtered .ng-select-container .ng-value-container .ng-value{visibility:hidden}.ng-select.ng-select-single .ng-select-container .ng-value-container,.ng-select.ng-select-single .ng-select-container .ng-value-container .ng-value{white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.ng-select.ng-select-single .ng-select-container .ng-value-container .ng-value .ng-value-icon{display:none}.ng-select.ng-select-single .ng-select-container .ng-value-container .ng-input{position:absolute;left:0;width:100%}.ng-select.ng-select-multiple.ng-select-disabled>.ng-select-container .ng-value-container .ng-value .ng-value-icon{display:none}.ng-select.ng-select-multiple .ng-select-container .ng-value-container{flex-wrap:wrap}.ng-select.ng-select-multiple .ng-select-container .ng-value-container .ng-placeholder{position:absolute}.ng-select.ng-select-multiple .ng-select-container .ng-value-container .ng-value{white-space:nowrap}.ng-select.ng-select-multiple .ng-select-container .ng-value-container .ng-value.ng-value-disabled .ng-value-icon{display:none}.ng-select.ng-select-multiple .ng-select-container .ng-value-container .ng-value .ng-value-icon{cursor:pointer}.ng-select.ng-select-multiple .ng-select-container .ng-value-container .ng-input{flex:1;z-index:2}.ng-select.ng-select-multiple .ng-select-container .ng-value-container .ng-placeholder{z-index:1}.ng-select .ng-clear-wrapper{cursor:pointer;position:relative;width:17px;-webkit-user-select:none;user-select:none}.ng-select .ng-clear-wrapper .ng-clear{display:inline-block;font-size:18px;line-height:1;pointer-events:none}.ng-select .ng-spinner-loader{border-radius:50%;width:17px;height:17px;margin-right:5px;font-size:10px;position:relative;text-indent:-9999em;border-top:2px solid rgba(66,66,66,.2);border-right:2px solid rgba(66,66,66,.2);border-bottom:2px solid rgba(66,66,66,.2);border-left:2px solid #424242;transform:translateZ(0);animation:load8 .8s infinite linear}.ng-select .ng-spinner-loader:after{border-radius:50%;width:17px;height:17px}@keyframes load8{0%{transform:rotate(0)}to{transform:rotate(360deg)}}.ng-select .ng-arrow-wrapper{cursor:pointer;position:relative;text-align:center;-webkit-user-select:none;user-select:none}.ng-select .ng-arrow-wrapper .ng-arrow{pointer-events:none;display:inline-block;height:0;width:0;position:relative}.ng-dropdown-panel{box-sizing:border-box;position:absolute;opacity:0;width:100%;z-index:1050;-webkit-overflow-scrolling:touch}.ng-dropdown-panel .ng-dropdown-panel-items{display:block;height:auto;box-sizing:border-box;max-height:240px;overflow-y:auto}.ng-dropdown-panel .ng-dropdown-panel-items .ng-optgroup{white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.ng-dropdown-panel .ng-dropdown-panel-items .ng-option{box-sizing:border-box;cursor:pointer;display:block;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.ng-dropdown-panel .ng-dropdown-panel-items .ng-option .ng-option-label:empty:before{content:"\\200b"}.ng-dropdown-panel .ng-dropdown-panel-items .ng-option .highlighted{font-weight:700;text-decoration:underline}.ng-dropdown-panel .ng-dropdown-panel-items .ng-option.disabled{cursor:default}.ng-dropdown-panel .scroll-host{overflow:hidden;overflow-y:auto;position:relative;display:block;-webkit-overflow-scrolling:touch}.ng-dropdown-panel .scrollable-content{top:0;left:0;width:100%;height:100%;position:absolute}.ng-dropdown-panel .total-padding{width:1px;opacity:0}\n'],encapsulation:2,changeDetection:0}),H})();function Tt(){return new $t}class $t{constructor(){this._selected=[]}get value(){return this._selected}select(K,A,ee){if(K.selected=!0,(!K.children||!A&&ee)&&this._selected.push(K),A)if(K.parent){const Oe=K.parent.children.length,lt=K.parent.children.filter(Ze=>Ze.selected).length;K.parent.selected=Oe===lt}else K.children&&(this._setChildrenSelectedState(K.children,!0),this._removeChildren(K),this._selected=ee&&this._activeChildren(K)?[...this._selected.filter(Oe=>Oe.parent!==K),K]:[...this._selected,...K.children.filter(Oe=>!Oe.disabled)])}unselect(K,A){if(this._selected=this._selected.filter(ee=>ee!==K),K.selected=!1,A)if(K.parent&&K.parent.selected){const ee=K.parent.children;this._removeParent(K.parent),this._removeChildren(K.parent),this._selected.push(...ee.filter(Oe=>Oe!==K&&!Oe.disabled)),K.parent.selected=!1}else K.children&&(this._setChildrenSelectedState(K.children,!1),this._removeChildren(K))}clear(K){this._selected=K?this._selected.filter(A=>A.disabled):[]}_setChildrenSelectedState(K,A){for(const ee of K)ee.disabled||(ee.selected=A)}_removeChildren(K){this._selected=[...this._selected.filter(A=>A.parent!==K),...K.children.filter(A=>A.parent===K&&A.disabled&&A.selected)]}_removeParent(K){this._selected=this._selected.filter(A=>A!==K)}_activeChildren(K){return K.children.every(A=>!A.disabled||A.selected)}}let De=(()=>{class H{}return H.\u0275fac=function(A){return new(A||H)},H.\u0275mod=l.oAB({type:H}),H.\u0275inj=l.cJS({providers:[{provide:ri,useValue:Tt}],imports:[[it.ez]]}),H})()}},St=>{St(St.s=9846)}]);
|