dealpostools 2.0.2 → 2.0.5

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.
@@ -1 +0,0 @@
1
- "use strict";(self.webpackChunkweb_tools=self.webpackChunkweb_tools||[]).push([[179],{5826:(Ye,ve,x)=>{x.d(ve,{a:()=>ue});var a=x(6435),v=x(7217),re=x(8830);let ue=(()=>{class V{constructor(K,ee){this._authService=K,this._router=ee}canActivate(K,ee){return!!this._authService.isAuthentication()||(this._router.navigate([""]),!1)}}return V.\u0275fac=function(K){return new(K||V)(a.LFG(v.$),a.LFG(re.F0))},V.\u0275prov=a.Yz7({token:V,factory:V.\u0275fac}),V})()},7217:(Ye,ve,x)=>{x.d(ve,{$:()=>ue});var a=x(6435),v=x(8830),re=x(4383);let ue=(()=>{class V{constructor(K,ee){this._router=K,this.toaster=ee}login(K){this._router.navigate([K])}logout(){localStorage.removeItem("Token"),localStorage.removeItem("Domain"),this._router.navigate([""])}isAuthentication(){return null!=localStorage.getItem("Token")&&!this.isTokenExpired()}isTokenExpired(){return!1}setLocalStorage(K,ee){localStorage.setItem("posdomain",K),localStorage.setItem("username",ee)}getUsernameLocalStorage(){return localStorage.getItem("username")}getDomainLocalStorage(){return localStorage.getItem("posdomain")}isLocalStorageExist(){let K=localStorage.getItem("posdomain"),ee=localStorage.getItem("username"),J=!1;return K&&ee&&(J=!0),J}}return V.\u0275fac=function(K){return new(K||V)(a.LFG(v.F0),a.LFG(re._W))},V.\u0275prov=a.Yz7({token:V,factory:V.\u0275fac,providedIn:"root"}),V})()},9930:(Ye,ve,x)=>{x.d(ve,{O:()=>Se});var a=x(520),v=x(2916),re=x(353);const V=(()=>{function ge(){return Error.call(this),this.message="Timeout has occurred",this.name="TimeoutError",this}return ge.prototype=Object.create(Error.prototype),ge})();var Y=x(2697),K=x(1177);class J{constructor(he,Fe,Ne,ye){this.waitFor=he,this.absoluteTimeout=Fe,this.withObservable=Ne,this.scheduler=ye}call(he,Fe){return Fe.subscribe(new $(he,this.absoluteTimeout,this.waitFor,this.withObservable,this.scheduler))}}class $ extends K.Ds{constructor(he,Fe,Ne,ye,_e){super(he),this.absoluteTimeout=Fe,this.waitFor=Ne,this.withObservable=ye,this.scheduler=_e,this.scheduleTimeout()}static dispatchTimeout(he){const{withObservable:Fe}=he;he._unsubscribeAndRecycle(),he.add((0,K.ft)(Fe,new K.IY(he)))}scheduleTimeout(){const{action:he}=this;he?this.action=he.schedule(this,this.waitFor):this.add(this.action=this.scheduler.schedule($.dispatchTimeout,this.waitFor,this))}_next(he){this.absoluteTimeout||this.scheduleTimeout(),super._next(he)}_unsubscribe(){this.action=void 0,this.scheduler=null,this.withObservable=null}}var W=x(1737);var oe=x(6435),Ie=x(4383);let Se=(()=>{class ge{constructor(Fe,Ne){this.http=Fe,this.toastr=Ne}post(Fe,Ne,ye=1e5){return new v.y(_e=>{let te=localStorage.getItem("Token"),Ge=new a.WM({"Content-Type":"application/json","Cache-Control":"no-cache"});te&&(Ge=Ge.append("Authorization","Bearer "+te)),this.http.post(Fe,Ne,{headers:Ge}).pipe(function ce(ge,he=re.P){return function ee(ge,he,Fe=re.P){return Ne=>{let ye=(0,Y.J)(ge),_e=ye?+ge-Fe.now():Math.abs(ge);return Ne.lift(new J(_e,ye,he,Fe))}}(ge,(0,W._)(new V),he)}(ye)).subscribe(dt=>{_e.next(dt),_e.complete()},dt=>{if(200==dt.status)_e.next(dt.error.text),_e.complete();else{if(!this.unauthorizedErrorHandling(dt)){let ht=this.errorMessageHandling(dt);this.toastr.error(""!=ht.message?ht.message:"An unknown error has occured!",ht.header)}_e.error(dt)}})})}unauthorizedErrorHandling(Fe){let Ne=!1;return 401==Fe.status&&(localStorage.getItem("Token")?window.location.href="/A/Unauthorized/Main/Unauthorized":window.location.href="/",Ne=!0),Ne}errorMessageHandling(Fe){let Ne="API Error",ye="Exception Message";return Fe.error?(Ne="API Error - "+Fe.status,Fe.error.Message&&(ye=Fe.error.Message)):Fe.message&&(Ne="API Error - "+Fe.name,ye=Fe.message),{header:Ne,message:ye}}}return ge.\u0275fac=function(Fe){return new(Fe||ge)(oe.LFG(a.eN),oe.LFG(Ie._W))},ge.\u0275prov=oe.Yz7({token:ge,factory:ge.\u0275fac,providedIn:"root"}),ge})()},8517:(Ye,ve,x)=>{var a=x(2313),v=x(6435),re=x(8830);function ue(j){this.message=j}(ue.prototype=new Error).name="InvalidCharacterError";var V="undefined"!=typeof window&&window.atob&&window.atob.bind(window)||function(j){var le=String(j).replace(/=+$/,"");if(le.length%4==1)throw new ue("'atob' failed: The string to be decoded is not correctly encoded.");for(var U,fe,Qe=0,Dt=0,at="";fe=le.charAt(Dt++);~fe&&(U=Qe%4?64*U+fe:fe,Qe++%4)?at+=String.fromCharCode(255&U>>(-2*Qe&6)):0)fe="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/=".indexOf(fe);return at};function K(j){this.message=j}(K.prototype=new Error).name="InvalidTokenError";var $=x(9930),W=x(4383),ce=x(7217),oe=x(4182),Ie=x(9808);const Se=["domainAutoFocus"],ge=["passAutoFocus"],he=function(j,le){return{"fa-eye-slash":j,"fa-eye":le}};function Fe(j,le){if(1&j){const U=v.EpF();v.TgZ(0,"i",35),v.NdJ("click",function(){return v.CHM(U),v.oxw().hideShowPassword()}),v.qZA()}if(2&j){const U=v.oxw();v.Q6J("ngClass",v.WLB(1,he,"eye-off"==U.passwordIcon,"eye"==U.passwordIcon))}}const ye=[{path:"",component:(()=>{class j{constructor(U,fe,Qe,Dt,at){this._httpService=U,this.toastr=fe,this.auth=Qe,this.elementRef=Dt,this.cdr=at,this.passwordType="password",this.passwordIcon="eye-off"}ngOnInit(){this.elementRef.nativeElement.ownerDocument.body.style.backgroundColor="#edefff"}ngAfterViewInit(){this.getLocalStorage()}ngOnDestroy(){this.elementRef.nativeElement.ownerDocument.body.style.backgroundColor="white"}getLocalStorage(){let U=this.auth.isLocalStorageExist();this.setAutoFocusDomain(),U&&(this.posDomain=this.auth.getDomainLocalStorage(),this.username=this.auth.getUsernameLocalStorage(),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 U={client_id:this.username,client_secret:this.password},fe="";this.posDomain.includes("http://")||(fe="https://"+this.posDomain),this._httpService.post(fe+"/api/v3/Token",JSON.stringify(U)).toPromise().then(Qe=>{null==Qe.access_token&&null==Qe.access_token||(localStorage.setItem("Domain",this.posDomain),localStorage.setItem("Token",Qe.access_token),"Tools"==function ee(j,le){if("string"!=typeof j)throw new K("Invalid token specified");var U=!0===(le=le||{}).header?0:1;try{return JSON.parse(function Y(j){var le=j.replace(/-/g,"+").replace(/_/g,"/");switch(le.length%4){case 0:break;case 2:le+="==";break;case 3:le+="=";break;default:throw"Illegal base64url string!"}try{return decodeURIComponent(V(le).replace(/(.)/g,function(fe,Qe){var Dt=Qe.charCodeAt(0).toString(16).toUpperCase();return Dt.length<2&&(Dt="0"+Dt),"%"+Dt}))}catch(U){return V(le)}}(j.split(".")[U]))}catch(fe){throw new K("Invalid token specified: "+fe.message)}}(Qe.access_token)["http://schemas.microsoft.com/ws/2008/06/identity/claims/role"].filter(an=>"Tools"==an)?(this.auth.login("/menu/product"),this.saveToLocalStorage()):this.toastr.error("Please check your role","Error"))}).catch(Qe=>{this.toastr.error(0==Qe.status?"Please check your domain name":Qe.error.Message,"Error")})}saveToLocalStorage(){this.auth.setLocalStorage(this.posDomain,this.username)}}return j.\u0275fac=function(U){return new(U||j)(v.Y36($.O),v.Y36(W._W),v.Y36(ce.$),v.Y36(v.SBq),v.Y36(v.sBO))},j.\u0275cmp=v.Xpm({type:j,selectors:[["app-login"]],viewQuery:function(U,fe){if(1&U&&(v.Gf(Se,5),v.Gf(ge,5)),2&U){let Qe;v.iGM(Qe=v.CRH())&&(fe.domainElementRef=Qe.first),v.iGM(Qe=v.CRH())&&(fe.passElementRef=Qe.first)}},decls:53,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/pos/image/upload/w_200/v1614247725/Apps/Login/tools-dealpos-app.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,"ms-2","fw-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-start",3,"ngModel","ngModelChange"],["domainAutoFocus","","domain","ngModel"],["for","inputPOSDomain",1,"text-start"],["type","text","name","username","id","inputUsername","placeholder","Username","required","",1,"form-control","text-start",3,"ngModel","ngModelChange"],["for","inputUsername",1,"text-start"],[1,"form-label-group","mb-5","mb-md-2"],["name","something","id","inputPassword","placeholder","Password","required","",1,"form-control","text-start",3,"type","ngModel","ngModelChange"],["passAutoFocus",""],["for","inputPassword",1,"text-start"],["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-login","font125rem","robotoslab",3,"click"],[1,"col-12","d-block","d-md-none","text-center"],[1,"pt-1rem","me-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"],[1,"pt-1rem","fst-italic"],[1,"mx-5","pb-5","mb-5","d-none","d-md-block"],[1,"col-auto","d-inline-flex"],[1,"col-auto"],["href","https://changelog.dealpos.com/?categories=cat_GkdUyaD9rSSIk&view=complete","target","_blank",1,"pt-1rem","fst-italic"],[1,"passwordIcon","fas","fa-lg",3,"ngClass","click"]],template:function(U,fe){1&U&&(v.TgZ(0,"div",0),v.TgZ(1,"div",1),v.TgZ(2,"div",2),v.TgZ(3,"h1",3),v._uU(4,"DealPOS - Tools"),v.qZA(),v._UZ(5,"img",4),v.qZA(),v.TgZ(6,"div",5),v.TgZ(7,"h1",6),v._uU(8,"DealPOS Web Tools"),v.qZA(),v.TgZ(9,"div",7),v.TgZ(10,"div",8),v.TgZ(11,"div",9),v.TgZ(12,"h2",10),v._uU(13,"Sign in"),v.qZA(),v.qZA(),v.TgZ(14,"form",11),v.TgZ(15,"div",12),v.TgZ(16,"input",13,14),v.NdJ("ngModelChange",function(Dt){return fe.posDomain=Dt}),v.qZA(),v.TgZ(19,"label",15),v._uU(20,"POS Domain (xyz.dealpos.com)"),v.qZA(),v.qZA(),v.TgZ(21,"div",12),v.TgZ(22,"input",16),v.NdJ("ngModelChange",function(Dt){return fe.username=Dt}),v.qZA(),v.TgZ(23,"label",17),v._uU(24,"Username"),v.qZA(),v.qZA(),v.TgZ(25,"div",18),v.TgZ(26,"input",19,20),v.NdJ("ngModelChange",function(Dt){return fe.password=Dt}),v.qZA(),v.TgZ(28,"label",21),v._uU(29,"Password"),v.qZA(),v.YNc(30,Fe,1,4,"i",22),v.qZA(),v.TgZ(31,"div",23),v.TgZ(32,"div",24),v.TgZ(33,"button",25),v.NdJ("click",function(){return fe.login()}),v._uU(34,"Log in"),v.qZA(),v.qZA(),v.qZA(),v.qZA(),v.qZA(),v.qZA(),v.qZA(),v.TgZ(35,"div",26),v.TgZ(36,"p",27),v._uU(37,"Powered by : "),v.qZA(),v.TgZ(38,"a",28),v._UZ(39,"img",29),v.qZA(),v.TgZ(40,"a"),v.TgZ(41,"p",30),v._uU(42,"Version 2.0.2"),v.qZA(),v.qZA(),v.qZA(),v.qZA(),v.qZA(),v.TgZ(43,"footer",31),v.TgZ(44,"div",23),v.TgZ(45,"div",32),v.TgZ(46,"p",27),v._uU(47,"Powered by : "),v.qZA(),v.TgZ(48,"a",28),v._UZ(49,"img",29),v.qZA(),v.qZA(),v.TgZ(50,"div",33),v.TgZ(51,"a",34),v._uU(52,"Version 2.0.2"),v.qZA(),v.qZA(),v.qZA(),v.qZA()),2&U&&(v.xp6(16),v.Q6J("ngModel",fe.posDomain),v.xp6(6),v.Q6J("ngModel",fe.username),v.xp6(4),v.Q6J("type",fe.passwordType)("ngModel",fe.password),v.xp6(4),v.Q6J("ngIf",""!=fe.password))},directives:[oe._Y,oe.JL,oe.F,oe.Fj,oe.Q7,oe.c5,oe.JJ,oe.On,Ie.O5,Ie.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}.btn-login[_ngcontent-%COMP%]{width:145px}"]}),j})(),pathMatch:"full"},{path:"menu",loadChildren:()=>x.e(144).then(x.bind(x,1144)).then(j=>j.MenuModule)},{path:"**",redirectTo:"",pathMatch:"full"}];let _e=(()=>{class j{}return j.\u0275fac=function(U){return new(U||j)},j.\u0275mod=v.oAB({type:j}),j.\u0275inj=v.cJS({imports:[[re.Bz.forRoot(ye,{relativeLinkResolution:"legacy"})],re.Bz]}),j})();var te=x(6831);function Ge(j,le){function U(){return!U.pred.apply(U.thisArg,arguments)}return U.pred=j,U.thisArg=le,U}var wt=x(9249),dt=x(2198),ot=x(2916),rt=x(6787),_t=x(7739),tt=x(537),ft=x(7545),Ve=x(1177);function Cn(j){return le=>le.lift(new yn(j))}class yn{constructor(le){this.durationSelector=le}call(le,U){return U.subscribe(new dn(le,this.durationSelector))}}class dn extends Ve.Ds{constructor(le,U){super(le),this.durationSelector=U,this.hasValue=!1}_next(le){try{const U=this.durationSelector.call(this,le);U&&this._tryNext(le,U)}catch(U){this.destination.error(U)}}_complete(){this.emitValue(),this.destination.complete()}_tryNext(le,U){let fe=this.durationSubscription;this.value=le,this.hasValue=!0,fe&&(fe.unsubscribe(),this.remove(fe)),fe=(0,Ve.ft)(U,new Ve.IY(this)),fe&&!fe.closed&&this.add(this.durationSubscription=fe)}notifyNext(){this.emitValue()}notifyComplete(){this.emitValue()}emitValue(){if(this.hasValue){const le=this.value,U=this.durationSubscription;U&&(this.durationSubscription=void 0,U.unsubscribe(),this.remove(U)),this.value=void 0,this.hasValue=!1,super._next(le)}}}var Ln=x(5778),on=x(2868),St=x(520);function tn(j,le){1&j&&v.GkF(0)}function we(j,le){if(1&j&&v._UZ(0,"sk-cube-grid",4),2&j){const U=v.oxw(2);v.Q6J("backgroundColor",U.backgroundColor)}}function Me(j,le){if(1&j&&v._UZ(0,"sk-chasing-dots",4),2&j){const U=v.oxw(2);v.Q6J("backgroundColor",U.backgroundColor)}}function B(j,le){if(1&j&&v._UZ(0,"sk-double-bounce",4),2&j){const U=v.oxw(2);v.Q6J("backgroundColor",U.backgroundColor)}}function ae(j,le){if(1&j&&v._UZ(0,"sk-rotating-plane",4),2&j){const U=v.oxw(2);v.Q6J("backgroundColor",U.backgroundColor)}}function ke(j,le){if(1&j&&v._UZ(0,"sk-spinner-pulse",4),2&j){const U=v.oxw(2);v.Q6J("backgroundColor",U.backgroundColor)}}function nt(j,le){if(1&j&&v._UZ(0,"sk-three-bounce",4),2&j){const U=v.oxw(2);v.Q6J("backgroundColor",U.backgroundColor)}}function gt(j,le){if(1&j&&v._UZ(0,"sk-wandering-cubes",4),2&j){const U=v.oxw(2);v.Q6J("backgroundColor",U.backgroundColor)}}function Vt(j,le){if(1&j&&v._UZ(0,"sk-wave",4),2&j){const U=v.oxw(2);v.Q6J("backgroundColor",U.backgroundColor)}}const Nt=function(j){return{"background-color":j}};function hn(j,le){if(1&j&&(v.TgZ(0,"div",1),v.YNc(1,tn,1,0,"ng-container",2),v.YNc(2,we,1,1,"sk-cube-grid",3),v.YNc(3,Me,1,1,"sk-chasing-dots",3),v.YNc(4,B,1,1,"sk-double-bounce",3),v.YNc(5,ae,1,1,"sk-rotating-plane",3),v.YNc(6,ke,1,1,"sk-spinner-pulse",3),v.YNc(7,nt,1,1,"sk-three-bounce",3),v.YNc(8,gt,1,1,"sk-wandering-cubes",3),v.YNc(9,Vt,1,1,"sk-wave",3),v.qZA()),2&j){const U=v.oxw();v.Udp("opacity",U.opacity),v.ekj("backdrop",U.backdrop),v.Q6J("ngStyle",v.VKq(14,Nt,U.backdrop?U.backdropBackgroundColor:"transparent")),v.xp6(1),v.Q6J("ngComponentOutlet",U.entryComponent),v.xp6(1),v.Q6J("ngIf",U.spinner===U.spinkit.skCubeGrid),v.xp6(1),v.Q6J("ngIf",U.spinner===U.spinkit.skChasingDots),v.xp6(1),v.Q6J("ngIf",U.spinner===U.spinkit.skDoubleBounce),v.xp6(1),v.Q6J("ngIf",U.spinner===U.spinkit.skRotatingPlane),v.xp6(1),v.Q6J("ngIf",U.spinner===U.spinkit.skSpinnerPulse),v.xp6(1),v.Q6J("ngIf",U.spinner===U.spinkit.skThreeBounce),v.xp6(1),v.Q6J("ngIf",U.spinner===U.spinkit.skWanderingCubes),v.xp6(1),v.Q6J("ngIf",U.spinner===U.spinkit.skWave)}}let Mt=(()=>{class j{}return j.\u0275fac=function(U){return new(U||j)},j.\u0275dir=v.lG2({type:j,inputs:{backgroundColor:"backgroundColor"}}),j})(),nn=(()=>{class j extends Mt{}return j.\u0275fac=function(){let le;return function(fe){return(le||(le=v.n5z(j)))(fe||j)}}(),j.\u0275cmp=v.Xpm({type:j,selectors:[["sk-chasing-dots"]],features:[v.qOj],decls:3,vars:6,consts:[[1,"sk-chasing-dots"],[1,"sk-child","sk-dot1"],[1,"sk-child","sk-dot2"]],template:function(U,fe){1&U&&(v.TgZ(0,"div",0),v._UZ(1,"div",1),v._UZ(2,"div",2),v.qZA()),2&U&&(v.ekj("colored",!fe.backgroundColor),v.xp6(1),v.Udp("background-color",fe.backgroundColor),v.xp6(1),v.Udp("background-color",fe.backgroundColor))},styles:[".sk-chasing-dots[_ngcontent-%COMP%]{animation:sk-chasingDotsRotate 2s linear infinite;height:40px;margin:auto;position:relative;text-align:center;top:50%;width:40px}.sk-chasing-dots[_ngcontent-%COMP%] .sk-child[_ngcontent-%COMP%]{animation:sk-chasingDotsBounce 2s ease-in-out infinite;border-radius:100%;display:inline-block;height:60%;position:absolute;top:0;width:60%}.sk-chasing-dots[_ngcontent-%COMP%] .sk-dot2[_ngcontent-%COMP%]{animation-delay:-1s;bottom:0;top:auto}@keyframes sk-chasingDotsRotate{to{transform:rotate(1turn)}}@keyframes sk-chasingDotsBounce{0%,to{transform:scale(0)}50%{transform:scale(1)}}"]}),j})(),fn=(()=>{class j extends Mt{}return j.\u0275fac=function(){let le;return function(fe){return(le||(le=v.n5z(j)))(fe||j)}}(),j.\u0275cmp=v.Xpm({type:j,selectors:[["sk-cube-grid"]],features:[v.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(U,fe){1&U&&(v.TgZ(0,"div",0),v._UZ(1,"div",1),v._UZ(2,"div",2),v._UZ(3,"div",3),v._UZ(4,"div",4),v._UZ(5,"div",5),v._UZ(6,"div",6),v._UZ(7,"div",7),v._UZ(8,"div",8),v._UZ(9,"div",9),v.qZA()),2&U&&(v.ekj("colored",!fe.backgroundColor),v.xp6(1),v.Udp("background-color",fe.backgroundColor),v.xp6(1),v.Udp("background-color",fe.backgroundColor),v.xp6(1),v.Udp("background-color",fe.backgroundColor),v.xp6(1),v.Udp("background-color",fe.backgroundColor),v.xp6(1),v.Udp("background-color",fe.backgroundColor),v.xp6(1),v.Udp("background-color",fe.backgroundColor),v.xp6(1),v.Udp("background-color",fe.backgroundColor),v.xp6(1),v.Udp("background-color",fe.backgroundColor),v.xp6(1),v.Udp("background-color",fe.backgroundColor))},styles:[".sk-cube-grid[_ngcontent-%COMP%]{height:40px;margin:auto;position:relative;top:50%;width:40px}.sk-cube-grid[_ngcontent-%COMP%] .sk-cube[_ngcontent-%COMP%]{animation:sk-cubeGridScaleDelay 1.3s ease-in-out infinite;float:left;height:33.33%;width:33.33%}.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:scaleX(1)}35%{transform:scale3D(0,0,1)}}"]}),j})(),Bt=(()=>{class j extends Mt{}return j.\u0275fac=function(){let le;return function(fe){return(le||(le=v.n5z(j)))(fe||j)}}(),j.\u0275cmp=v.Xpm({type:j,selectors:[["sk-double-bounce"]],features:[v.qOj],decls:3,vars:6,consts:[[1,"sk-double-bounce"],[1,"sk-child","sk-double-bounce1"],[1,"sk-child","sk-double-bounce2"]],template:function(U,fe){1&U&&(v.TgZ(0,"div",0),v._UZ(1,"div",1),v._UZ(2,"div",2),v.qZA()),2&U&&(v.ekj("colored",!fe.backgroundColor),v.xp6(1),v.Udp("background-color",fe.backgroundColor),v.xp6(1),v.Udp("background-color",fe.backgroundColor))},styles:[".sk-double-bounce[_ngcontent-%COMP%]{height:40px;margin:auto;position:relative;top:50%;width:40px}.sk-double-bounce[_ngcontent-%COMP%] .sk-child[_ngcontent-%COMP%]{animation:sk-doubleBounce 2s ease-in-out infinite;background-color:#333;border-radius:50%;height:100%;left:0;opacity:.6;position:absolute;top:0;width:100%}.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)}}"]}),j})(),In=(()=>{class j extends Mt{}return j.\u0275fac=function(){let le;return function(fe){return(le||(le=v.n5z(j)))(fe||j)}}(),j.\u0275cmp=v.Xpm({type:j,selectors:[["sk-rotating-plane"]],features:[v.qOj],decls:1,vars:2,consts:[[1,"sk-rotating-plane","colored-parent"]],template:function(U,fe){1&U&&v._UZ(0,"div",0),2&U&&v.Udp("background-color",fe.backgroundColor)},styles:[".sk-rotating-plane[_ngcontent-%COMP%]{animation:sk-rotatePlane 1.2s ease-in-out infinite;height:40px;margin:auto;position:relative;top:50%;width:40px}@keyframes sk-rotatePlane{0%{transform:perspective(120px) rotateX(0deg) rotateY(0deg)}50%{transform:perspective(120px) rotateX(-180.1deg) rotateY(0deg)}to{transform:perspective(120px) rotateX(-180deg) rotateY(-179.9deg)}}"]}),j})(),Ht=(()=>{class j extends Mt{}return j.\u0275fac=function(){let le;return function(fe){return(le||(le=v.n5z(j)))(fe||j)}}(),j.\u0275cmp=v.Xpm({type:j,selectors:[["sk-spinner-pulse"]],features:[v.qOj],decls:1,vars:2,consts:[[1,"sk-spinner","sk-spinner-pulse","colored-parent"]],template:function(U,fe){1&U&&v._UZ(0,"div",0),2&U&&v.Udp("background-color",fe.backgroundColor)},styles:[".sk-spinner-pulse[_ngcontent-%COMP%]{animation:sk-pulseScaleOut 1s ease-in-out infinite;border-radius:100%;height:40px;margin:auto;position:relative;top:50%;width:40px}@keyframes sk-pulseScaleOut{0%{transform:scale(0)}to{opacity:0;transform:scale(1)}}"]}),j})(),Gn=(()=>{class j extends Mt{}return j.\u0275fac=function(){let le;return function(fe){return(le||(le=v.n5z(j)))(fe||j)}}(),j.\u0275cmp=v.Xpm({type:j,selectors:[["sk-three-bounce"]],features:[v.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(U,fe){1&U&&(v.TgZ(0,"div",0),v._UZ(1,"div",1),v._UZ(2,"div",2),v._UZ(3,"div",3),v.qZA()),2&U&&(v.ekj("colored",!fe.backgroundColor),v.xp6(1),v.Udp("background-color",fe.backgroundColor),v.xp6(1),v.Udp("background-color",fe.backgroundColor),v.xp6(1),v.Udp("background-color",fe.backgroundColor))},styles:[".sk-three-bounce[_ngcontent-%COMP%]{margin:auto;position:relative;text-align:center;top:50%;width:80px}.sk-three-bounce[_ngcontent-%COMP%] .sk-child[_ngcontent-%COMP%]{animation:sk-three-bounce 1.4s ease-in-out 0s infinite both;border-radius:100%;display:inline-block;height:20px;width:20px}.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)}}"]}),j})(),Jt=(()=>{class j extends Mt{}return j.\u0275fac=function(){let le;return function(fe){return(le||(le=v.n5z(j)))(fe||j)}}(),j.\u0275cmp=v.Xpm({type:j,selectors:[["sk-wandering-cubes"]],features:[v.qOj],decls:3,vars:6,consts:[[1,"sk-wandering-cubes"],[1,"sk-cube","sk-cube1"],[1,"sk-cube","sk-cube2"]],template:function(U,fe){1&U&&(v.TgZ(0,"div",0),v._UZ(1,"div",1),v._UZ(2,"div",2),v.qZA()),2&U&&(v.ekj("colored",!fe.backgroundColor),v.xp6(1),v.Udp("background-color",fe.backgroundColor),v.xp6(1),v.Udp("background-color",fe.backgroundColor))},styles:[".sk-wandering-cubes[_ngcontent-%COMP%]{height:40px;margin:auto;position:relative;top:50%;width:40px}.sk-wandering-cubes[_ngcontent-%COMP%] .sk-cube[_ngcontent-%COMP%]{animation:sk-wanderingCube 1.8s ease-in-out -1.8s infinite both;height:10px;left:0;position:absolute;top:0;width:10px}.sk-wandering-cubes[_ngcontent-%COMP%] .sk-cube2[_ngcontent-%COMP%]{animation-delay:-.9s}@keyframes sk-wanderingCube{0%{transform:rotate(0deg)}25%{transform:translateX(30px) rotate(-90deg) scale(.5)}50%{transform:translateX(30px) translateY(30px) rotate(-179deg)}50.1%{transform:translateX(30px) translateY(30px) rotate(-180deg)}75%{transform:translateX(0) translateY(30px) rotate(-270deg) scale(.5)}to{transform:rotate(-1turn)}}"]}),j})(),ie=(()=>{class j extends Mt{}return j.\u0275fac=function(){let le;return function(fe){return(le||(le=v.n5z(j)))(fe||j)}}(),j.\u0275cmp=v.Xpm({type:j,selectors:[["sk-wave"]],features:[v.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(U,fe){1&U&&(v.TgZ(0,"div",0),v._UZ(1,"div",1),v._UZ(2,"div",2),v._UZ(3,"div",3),v._UZ(4,"div",4),v._UZ(5,"div",5),v.qZA()),2&U&&(v.ekj("colored",!fe.backgroundColor),v.xp6(1),v.Udp("background-color",fe.backgroundColor),v.xp6(1),v.Udp("background-color",fe.backgroundColor),v.xp6(1),v.Udp("background-color",fe.backgroundColor),v.xp6(1),v.Udp("background-color",fe.backgroundColor),v.xp6(1),v.Udp("background-color",fe.backgroundColor))},styles:[".sk-wave[_ngcontent-%COMP%]{font-size:10px;height:40px;margin:auto;position:relative;text-align:center;top:50%;width:50px}.sk-wave[_ngcontent-%COMP%] .sk-rect[_ngcontent-%COMP%]{animation:sk-waveStretchDelay 1.2s ease-in-out infinite;display:inline-block;float:left;height:100%;margin-right:1px;width:6px}.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)}}"]}),j})(),G=(()=>{class j{constructor(){this._pendingRequests=0,this._pendingRequestsStatus$=new te.t(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(U){this._filteredMethods=U}set filteredHeaders(U){this._filteredHeaders=U}set forceByPass(U){this._forceByPass=U}shouldBypassUrl(U){return this._filteredUrlPatterns.some(fe=>fe.test(U))}shouldBypassMethod(U){return this._filteredMethods.some(fe=>fe.toUpperCase()===U.method.toUpperCase())}shouldBypassHeader(U){return this._filteredHeaders.some(fe=>U.headers.has(fe))}shouldBypass(U){return this._forceByPass||this.shouldBypassUrl(U.urlWithParams)||this.shouldBypassMethod(U)||this.shouldBypassHeader(U)}intercept(U,fe){const Qe=this.shouldBypass(U);return Qe||(this._pendingRequests++,1===this._pendingRequests&&this._pendingRequestsStatus$.next(!0)),fe.handle(U).pipe((0,tt.x)(()=>{Qe||(this._pendingRequests--,0===this._pendingRequests&&this._pendingRequestsStatus$.next(!1))}))}}return j.\u0275fac=function(U){return new(U||j)},j.\u0275prov=(0,v.Yz7)({factory:function(){return new j},token:j,providedIn:"root"}),j})();const Z=[{provide:St.TP,useExisting:G,multi:!0}];let Oe=(()=>{class j{constructor(U){this.pendingRequestsInterceptor=U,this._visibility$=new te.t(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 j.\u0275fac=function(U){return new(U||j)(v.LFG(G))},j.\u0275prov=(0,v.Yz7)({factory:function(){return new j((0,v.LFG)(G))},token:j,providedIn:"root"}),j})();const Ae={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 Re=(()=>{class j{constructor(U,fe){this.pendingRequestsInterceptor=U,this.spinnerVisibility=fe,this.spinkit=Ae,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=Ae.skWave}ngOnInit(){this.initIsvisibleObservable(),this.nullifySpinnerIfEntryComponentIsDefined(),this.initFilters()}initIsvisibleObservable(){const[U,fe]=function ht(j,le,U){return[(0,dt.h)(le,U)(new ot.y((0,wt.s)(j))),(0,dt.h)(Ge(le,U))(new ot.y((0,wt.s)(j)))]}(this.pendingRequestsInterceptor.pendingRequestsStatus$,Qe=>Qe);this.isVisible$=(0,rt.T)(this.pendingRequestsInterceptor.pendingRequestsStatus$.pipe((0,ft.w)(()=>U.pipe(Cn(()=>(0,_t.H)(this.debounceDelay))))),U.pipe((0,ft.w)(()=>fe.pipe(Cn(()=>this.getVisibilityTimer$())))),this.spinnerVisibility.visibility$).pipe((0,Ln.x)(),(0,on.b)(Qe=>this.updateExpirationDelay(Qe)))}nullifySpinnerIfEntryComponentIsDefined(){this.entryComponent&&(this.spinner=null)}initFilters(){this.initFilteredUrlPatterns(),this.initFilteredMethods(),this.initFilteredHeaders()}initFilteredUrlPatterns(){this.filteredUrlPatterns.length&&this.filteredUrlPatterns.forEach(U=>this.pendingRequestsInterceptor.filteredUrlPatterns.push(new RegExp(U)))}initFilteredMethods(){this.pendingRequestsInterceptor.filteredMethods=this.filteredMethods}initFilteredHeaders(){this.pendingRequestsInterceptor.filteredHeaders=this.filteredHeaders}updateExpirationDelay(U){U&&(this.visibleUntil=Date.now()+this.minDuration)}getVisibilityTimer$(){return(0,_t.H)(Math.max(this.extraDuration,this.visibleUntil-Date.now()))}}return j.\u0275fac=function(U){return new(U||j)(v.Y36(G),v.Y36(Oe))},j.\u0275cmp=v.Xpm({type:j,selectors:[["ng-http-loader"]],inputs:{backdrop:"backdrop",debounceDelay:"debounceDelay",entryComponent:"entryComponent",extraDuration:"extraDuration",filteredHeaders:"filteredHeaders",filteredMethods:"filteredMethods",filteredUrlPatterns:"filteredUrlPatterns",minDuration:"minDuration",opacity:"opacity",backdropBackgroundColor:"backdropBackgroundColor",spinner:"spinner",backgroundColor:"backgroundColor"},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(U,fe){1&U&&(v.YNc(0,hn,10,16,"div",0),v.ALo(1,"async")),2&U&&v.Q6J("ngIf",v.lcZ(1,1,fe.isVisible$))},directives:[Ie.O5,Ie.PC,Ie.$G,fn,nn,Bt,In,Ht,Gn,Jt,ie],pipes:[Ie.Ov],styles:["#spinner[_ngcontent-%COMP%]{left:50%;position:fixed;top:50%;transform:translate(-50%,-50%);z-index:9999}#spinner.backdrop[_ngcontent-%COMP%]{align-items:center;display:flex;height:100%;justify-content:center;left:0;top:0;transform:none;width:100%} .colored-parent, .colored>div{background-color:#333}"]}),j})(),Te=(()=>{class j{static forRoot(){return{ngModule:j,providers:[Z]}}}return j.\u0275fac=function(U){return new(U||j)},j.\u0275mod=v.oAB({type:j}),j.\u0275inj=v.cJS({imports:[[Ie.ez]]}),j})();var yt=x(5826),jt=x(6360);let Ot=(()=>{class j{constructor(){this.title="web-tools"}}return j.\u0275fac=function(U){return new(U||j)},j.\u0275cmp=v.Xpm({type:j,selectors:[["app-root"]],decls:2,vars:0,template:function(U,fe){1&U&&(v._UZ(0,"ng-http-loader"),v._UZ(1,"router-outlet"))},directives:[Re,re.lC],styles:[""]}),j})(),vn=(()=>{class j{}return j.\u0275fac=function(U){return new(U||j)},j.\u0275mod=v.oAB({type:j,bootstrap:[Ot]}),j.\u0275inj=v.cJS({providers:[$.O,yt.a],imports:[[a.b2,jt.PW,_e,oe.u5,re.Bz,St.JF,Te.forRoot(),W.Rh.forRoot({positionClass:"toast-bottom-right",preventDuplicates:!0,closeButton:!0,timeOut:5e3})],re.Bz]}),j})();(0,v.G48)(),a.q6().bootstrapModule(vn).catch(j=>console.error(j))},4383:(Ye,ve,x)=>{x.d(ve,{Rh:()=>dn,_W:()=>Ve});var a=x(6435),v=x(1777),re=x(8929),ue=x(2313),V=x(9808);const Y=["toast-component",""];function K(we,Me){if(1&we){const B=a.EpF();a.TgZ(0,"button",5),a.NdJ("click",function(){return a.CHM(B),a.oxw().remove()}),a.TgZ(1,"span",6),a._uU(2,"\xd7"),a.qZA(),a.qZA()}}function ee(we,Me){if(1&we&&(a.ynx(0),a._uU(1),a.BQk()),2&we){const B=a.oxw(2);a.xp6(1),a.hij("[",B.duplicatesCount+1,"]")}}function J(we,Me){if(1&we&&(a.TgZ(0,"div"),a._uU(1),a.YNc(2,ee,2,1,"ng-container",4),a.qZA()),2&we){const B=a.oxw();a.Tol(B.options.titleClass),a.uIk("aria-label",B.title),a.xp6(1),a.hij(" ",B.title," "),a.xp6(1),a.Q6J("ngIf",B.duplicatesCount)}}function $(we,Me){if(1&we&&a._UZ(0,"div",7),2&we){const B=a.oxw();a.Tol(B.options.messageClass),a.Q6J("innerHTML",B.message,a.oJD)}}function W(we,Me){if(1&we&&(a.TgZ(0,"div",8),a._uU(1),a.qZA()),2&we){const B=a.oxw();a.Tol(B.options.messageClass),a.uIk("aria-label",B.message),a.xp6(1),a.hij(" ",B.message," ")}}function ce(we,Me){if(1&we&&(a.TgZ(0,"div"),a._UZ(1,"div",9),a.qZA()),2&we){const B=a.oxw();a.xp6(1),a.Udp("width",B.width+"%")}}function oe(we,Me){if(1&we){const B=a.EpF();a.TgZ(0,"button",5),a.NdJ("click",function(){return a.CHM(B),a.oxw().remove()}),a.TgZ(1,"span",6),a._uU(2,"\xd7"),a.qZA(),a.qZA()}}function Ie(we,Me){if(1&we&&(a.ynx(0),a._uU(1),a.BQk()),2&we){const B=a.oxw(2);a.xp6(1),a.hij("[",B.duplicatesCount+1,"]")}}function Se(we,Me){if(1&we&&(a.TgZ(0,"div"),a._uU(1),a.YNc(2,Ie,2,1,"ng-container",4),a.qZA()),2&we){const B=a.oxw();a.Tol(B.options.titleClass),a.uIk("aria-label",B.title),a.xp6(1),a.hij(" ",B.title," "),a.xp6(1),a.Q6J("ngIf",B.duplicatesCount)}}function ge(we,Me){if(1&we&&a._UZ(0,"div",7),2&we){const B=a.oxw();a.Tol(B.options.messageClass),a.Q6J("innerHTML",B.message,a.oJD)}}function he(we,Me){if(1&we&&(a.TgZ(0,"div",8),a._uU(1),a.qZA()),2&we){const B=a.oxw();a.Tol(B.options.messageClass),a.uIk("aria-label",B.message),a.xp6(1),a.hij(" ",B.message," ")}}function Fe(we,Me){if(1&we&&(a.TgZ(0,"div"),a._UZ(1,"div",9),a.qZA()),2&we){const B=a.oxw();a.xp6(1),a.Udp("width",B.width+"%")}}class _e{constructor(Me,B,ae,ke,nt,gt){this.toastId=Me,this.config=B,this.message=ae,this.title=ke,this.toastType=nt,this.toastRef=gt,this._onTap=new re.xQ,this._onAction=new re.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(Me){this._onAction.next(Me)}onAction(){return this._onAction.asObservable()}}const te={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"},Ge=new a.OlP("ToastConfig");class wt{constructor(Me,B){this.component=Me,this.injector=B}attach(Me,B){return this._attachedHost=Me,Me.attach(this,B)}detach(){const Me=this._attachedHost;if(Me)return this._attachedHost=void 0,Me.detach()}get isAttached(){return null!=this._attachedHost}setAttachedHost(Me){this._attachedHost=Me}}class ot extends class dt{attach(Me,B){return this._attachedPortal=Me,this.attachComponentPortal(Me,B)}detach(){this._attachedPortal&&this._attachedPortal.setAttachedHost(),this._attachedPortal=void 0,this._disposeFn&&(this._disposeFn(),this._disposeFn=void 0)}setDisposeFn(Me){this._disposeFn=Me}}{constructor(Me,B,ae){super(),this._hostDomElement=Me,this._componentFactoryResolver=B,this._appRef=ae}attachComponentPortal(Me,B){const ae=this._componentFactoryResolver.resolveComponentFactory(Me.component);let ke;return ke=ae.create(Me.injector),this._appRef.attachView(ke.hostView),this.setDisposeFn(()=>{this._appRef.detachView(ke.hostView),ke.destroy()}),B?this._hostDomElement.insertBefore(this._getComponentRootNode(ke),this._hostDomElement.firstChild):this._hostDomElement.appendChild(this._getComponentRootNode(ke)),ke}_getComponentRootNode(Me){return Me.hostView.rootNodes[0]}}let ht=(()=>{class we{constructor(B){this._document=B}ngOnDestroy(){this._containerElement&&this._containerElement.parentNode&&this._containerElement.parentNode.removeChild(this._containerElement)}getContainerElement(){return this._containerElement||this._createContainer(),this._containerElement}_createContainer(){const B=this._document.createElement("div");B.classList.add("overlay-container"),this._document.body.appendChild(B),this._containerElement=B}}return we.\u0275fac=function(B){return new(B||we)(a.LFG(V.K0))},we.\u0275prov=(0,a.Yz7)({factory:function(){return new we((0,a.LFG)(V.K0))},token:we,providedIn:"root"}),we})();class rt{constructor(Me){this._portalHost=Me}attach(Me,B=!0){return this._portalHost.attach(Me,B)}detach(){return this._portalHost.detach()}}let _t=(()=>{class we{constructor(B,ae,ke,nt){this._overlayContainer=B,this._componentFactoryResolver=ae,this._appRef=ke,this._document=nt,this._paneElements=new Map}create(B,ae){return this._createOverlayRef(this.getPaneElement(B,ae))}getPaneElement(B="",ae){return this._paneElements.get(ae)||this._paneElements.set(ae,{}),this._paneElements.get(ae)[B]||(this._paneElements.get(ae)[B]=this._createPaneElement(B,ae)),this._paneElements.get(ae)[B]}_createPaneElement(B,ae){const ke=this._document.createElement("div");return ke.id="toast-container",ke.classList.add(B),ke.classList.add("toast-container"),ae?ae.getContainerElement().appendChild(ke):this._overlayContainer.getContainerElement().appendChild(ke),ke}_createPortalHost(B){return new ot(B,this._componentFactoryResolver,this._appRef)}_createOverlayRef(B){return new rt(this._createPortalHost(B))}}return we.\u0275fac=function(B){return new(B||we)(a.LFG(ht),a.LFG(a._Vd),a.LFG(a.z2F),a.LFG(V.K0))},we.\u0275prov=(0,a.Yz7)({factory:function(){return new we((0,a.LFG)(ht),(0,a.LFG)(a._Vd),(0,a.LFG)(a.z2F),(0,a.LFG)(V.K0))},token:we,providedIn:"root"}),we})();class tt{constructor(Me){this._overlayRef=Me,this.duplicatesCount=0,this._afterClosed=new re.xQ,this._activate=new re.xQ,this._manualClose=new re.xQ,this._resetTimeout=new re.xQ,this._countDuplicate=new re.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(Me,B){Me&&this._resetTimeout.next(),B&&this._countDuplicate.next(++this.duplicatesCount)}}class ft{constructor(Me,B){this._toastPackage=Me,this._parentInjector=B}get(Me,B,ae){return Me===_e?this._toastPackage:this._parentInjector.get(Me,B,ae)}}let Ve=(()=>{class we{constructor(B,ae,ke,nt,gt){this.overlay=ae,this._injector=ke,this.sanitizer=nt,this.ngZone=gt,this.currentlyActive=0,this.toasts=[],this.index=0,this.toastrConfig=Object.assign(Object.assign({},B.default),B.config),B.config.iconClasses&&(this.toastrConfig.iconClasses=Object.assign(Object.assign({},B.default.iconClasses),B.config.iconClasses))}show(B,ae,ke={},nt=""){return this._preBuildNotification(nt,B,ae,this.applyConfig(ke))}success(B,ae,ke={}){return this._preBuildNotification(this.toastrConfig.iconClasses.success||"",B,ae,this.applyConfig(ke))}error(B,ae,ke={}){return this._preBuildNotification(this.toastrConfig.iconClasses.error||"",B,ae,this.applyConfig(ke))}info(B,ae,ke={}){return this._preBuildNotification(this.toastrConfig.iconClasses.info||"",B,ae,this.applyConfig(ke))}warning(B,ae,ke={}){return this._preBuildNotification(this.toastrConfig.iconClasses.warning||"",B,ae,this.applyConfig(ke))}clear(B){for(const ae of this.toasts)if(void 0!==B){if(ae.toastId===B)return void ae.toastRef.manualClose()}else ae.toastRef.manualClose()}remove(B){const ae=this._findToast(B);if(!ae||(ae.activeToast.toastRef.close(),this.toasts.splice(ae.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 ke=this.toasts[this.currentlyActive].toastRef;ke.isInactive()||(this.currentlyActive=this.currentlyActive+1,ke.activate())}return!0}findDuplicate(B="",ae="",ke,nt){const{includeTitleDuplicates:gt}=this.toastrConfig;for(const Vt of this.toasts){const Nt=gt&&Vt.title===B;if((!gt||Nt)&&Vt.message===ae)return Vt.toastRef.onDuplicate(ke,nt),Vt}return null}applyConfig(B={}){return Object.assign(Object.assign({},this.toastrConfig),B)}_findToast(B){for(let ae=0;ae<this.toasts.length;ae++)if(this.toasts[ae].toastId===B)return{index:ae,activeToast:this.toasts[ae]};return null}_preBuildNotification(B,ae,ke,nt){return nt.onActivateTick?this.ngZone.run(()=>this._buildNotification(B,ae,ke,nt)):this._buildNotification(B,ae,ke,nt)}_buildNotification(B,ae,ke,nt){if(!nt.toastComponent)throw new Error("toastComponent required");const gt=this.findDuplicate(ke,ae,this.toastrConfig.resetTimeoutOnDuplicate&&nt.timeOut>0,this.toastrConfig.countDuplicates);if((this.toastrConfig.includeTitleDuplicates&&ke||ae)&&this.toastrConfig.preventDuplicates&&null!==gt)return gt;this.previousToastMessage=ae;let Vt=!1;this.toastrConfig.maxOpened&&this.currentlyActive>=this.toastrConfig.maxOpened&&(Vt=!0,this.toastrConfig.autoDismiss&&this.clear(this.toasts[0].toastId));const Nt=this.overlay.create(nt.positionClass,this.overlayContainer);this.index=this.index+1;let hn=ae;ae&&nt.enableHtml&&(hn=this.sanitizer.sanitize(a.q3G.HTML,ae));const Mt=new tt(Nt),nn=new _e(this.index,nt,hn,ke,B,Mt),fn=new ft(nn,this._injector),Bt=new wt(nt.toastComponent,fn),In=Nt.attach(Bt,this.toastrConfig.newestOnTop);Mt.componentInstance=In.instance;const Ht={toastId:this.index,title:ke||"",message:ae||"",toastRef:Mt,onShown:Mt.afterActivate(),onHidden:Mt.afterClosed(),onTap:nn.onTap(),onAction:nn.onAction(),portal:In};return Vt||(this.currentlyActive=this.currentlyActive+1,setTimeout(()=>{Ht.toastRef.activate()})),this.toasts.push(Ht),Ht}}return we.\u0275fac=function(B){return new(B||we)(a.LFG(Ge),a.LFG(_t),a.LFG(a.zs3),a.LFG(ue.H7),a.LFG(a.R0b))},we.\u0275prov=(0,a.Yz7)({factory:function(){return new we((0,a.LFG)(Ge),(0,a.LFG)(_t),(0,a.LFG)(a.gxx),(0,a.LFG)(ue.H7),(0,a.LFG)(a.R0b))},token:we,providedIn:"root"}),we})(),Cn=(()=>{class we{constructor(B,ae,ke){this.toastrService=B,this.toastPackage=ae,this.ngZone=ke,this.width=-1,this.toastClasses="",this.state={value:"inactive",params:{easeTime:this.toastPackage.config.easeTime,easing:"ease-in"}},this.message=ae.message,this.title=ae.title,this.options=ae.config,this.originalTimeout=ae.config.timeOut,this.toastClasses=`${ae.toastType} ${ae.config.toastClass}`,this.sub=ae.toastRef.afterActivate().subscribe(()=>{this.activateToast()}),this.sub1=ae.toastRef.manualClosed().subscribe(()=>{this.remove()}),this.sub2=ae.toastRef.timeoutReset().subscribe(()=>{this.resetTimeout()}),this.sub3=ae.toastRef.countDuplicate().subscribe(nt=>{this.duplicatesCount=nt})}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 B=(new Date).getTime();this.width=(this.hideTime-B)/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(B,ae){this.ngZone?this.ngZone.runOutsideAngular(()=>this.timeout=setTimeout(()=>this.runInsideAngular(B),ae)):this.timeout=setTimeout(()=>B(),ae)}outsideInterval(B,ae){this.ngZone?this.ngZone.runOutsideAngular(()=>this.intervalId=setInterval(()=>this.runInsideAngular(B),ae)):this.intervalId=setInterval(()=>B(),ae)}runInsideAngular(B){this.ngZone?this.ngZone.run(()=>B()):B()}}return we.\u0275fac=function(B){return new(B||we)(a.Y36(Ve),a.Y36(_e),a.Y36(a.R0b))},we.\u0275cmp=a.Xpm({type:we,selectors:[["","toast-component",""]],hostVars:5,hostBindings:function(B,ae){1&B&&a.NdJ("click",function(){return ae.tapToast()})("mouseenter",function(){return ae.stickAround()})("mouseleave",function(){return ae.delayedHideToast()}),2&B&&(a.d8E("@flyInOut",ae.state),a.Tol(ae.toastClasses),a.Udp("display",ae.displayStyle))},attrs:Y,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(B,ae){1&B&&(a.YNc(0,K,3,0,"button",0),a.YNc(1,J,3,5,"div",1),a.YNc(2,$,1,3,"div",2),a.YNc(3,W,2,4,"div",3),a.YNc(4,ce,2,2,"div",4)),2&B&&(a.Q6J("ngIf",ae.options.closeButton),a.xp6(1),a.Q6J("ngIf",ae.title),a.xp6(1),a.Q6J("ngIf",ae.message&&ae.options.enableHtml),a.xp6(1),a.Q6J("ngIf",ae.message&&!ae.options.enableHtml),a.xp6(1),a.Q6J("ngIf",ae.options.progressBar))},directives:[V.O5],encapsulation:2,data:{animation:[(0,v.X$)("flyInOut",[(0,v.SB)("inactive",(0,v.oB)({opacity:0})),(0,v.SB)("active",(0,v.oB)({opacity:1})),(0,v.SB)("removed",(0,v.oB)({opacity:0})),(0,v.eR)("inactive => active",(0,v.jt)("{{ easeTime }}ms {{ easing }}")),(0,v.eR)("active => removed",(0,v.jt)("{{ easeTime }}ms {{ easing }}"))])]}}),we})();const yn=Object.assign(Object.assign({},te),{toastComponent:Cn});let dn=(()=>{class we{static forRoot(B={}){return{ngModule:we,providers:[{provide:Ge,useValue:{default:yn,config:B}}]}}}return we.\u0275fac=function(B){return new(B||we)},we.\u0275mod=a.oAB({type:we}),we.\u0275inj=a.cJS({imports:[[V.ez]]}),we})(),on=(()=>{class we{constructor(B,ae,ke){this.toastrService=B,this.toastPackage=ae,this.appRef=ke,this.width=-1,this.toastClasses="",this.state="inactive",this.message=ae.message,this.title=ae.title,this.options=ae.config,this.originalTimeout=ae.config.timeOut,this.toastClasses=`${ae.toastType} ${ae.config.toastClass}`,this.sub=ae.toastRef.afterActivate().subscribe(()=>{this.activateToast()}),this.sub1=ae.toastRef.manualClosed().subscribe(()=>{this.remove()}),this.sub2=ae.toastRef.timeoutReset().subscribe(()=>{this.resetTimeout()}),this.sub3=ae.toastRef.countDuplicate().subscribe(nt=>{this.duplicatesCount=nt})}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 B=(new Date).getTime();this.width=(this.hideTime-B)/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(B){return new(B||we)(a.Y36(Ve),a.Y36(_e),a.Y36(a.z2F))},we.\u0275cmp=a.Xpm({type:we,selectors:[["","toast-component",""]],hostVars:4,hostBindings:function(B,ae){1&B&&a.NdJ("click",function(){return ae.tapToast()})("mouseenter",function(){return ae.stickAround()})("mouseleave",function(){return ae.delayedHideToast()}),2&B&&(a.Tol(ae.toastClasses),a.Udp("display",ae.displayStyle))},attrs:Y,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(B,ae){1&B&&(a.YNc(0,oe,3,0,"button",0),a.YNc(1,Se,3,5,"div",1),a.YNc(2,ge,1,3,"div",2),a.YNc(3,he,2,4,"div",3),a.YNc(4,Fe,2,2,"div",4)),2&B&&(a.Q6J("ngIf",ae.options.closeButton),a.xp6(1),a.Q6J("ngIf",ae.title),a.xp6(1),a.Q6J("ngIf",ae.message&&ae.options.enableHtml),a.xp6(1),a.Q6J("ngIf",ae.message&&!ae.options.enableHtml),a.xp6(1),a.Q6J("ngIf",ae.options.progressBar))},directives:[V.O5],encapsulation:2}),we})();Object.assign(Object.assign({},te),{toastComponent:on})},591:(Ye,ve,x)=>{x.d(ve,{X:()=>re});var a=x(8929),v=x(5279);class re extends a.xQ{constructor(V){super(),this._value=V}get value(){return this.getValue()}_subscribe(V){const Y=super._subscribe(V);return Y&&!Y.closed&&V.next(this._value),Y}getValue(){if(this.hasError)throw this.thrownError;if(this.closed)throw new v.N;return this._value}next(V){super.next(this._value=V)}}},9312:(Ye,ve,x)=>{x.d(ve,{P:()=>V});var a=x(8896),v=x(1086),re=x(1737);class V{constructor(K,ee,J){this.kind=K,this.value=ee,this.error=J,this.hasValue="N"===K}observe(K){switch(this.kind){case"N":return K.next&&K.next(this.value);case"E":return K.error&&K.error(this.error);case"C":return K.complete&&K.complete()}}do(K,ee,J){switch(this.kind){case"N":return K&&K(this.value);case"E":return ee&&ee(this.error);case"C":return J&&J()}}accept(K,ee,J){return K&&"function"==typeof K.next?this.observe(K):this.do(K,ee,J)}toObservable(){switch(this.kind){case"N":return(0,v.of)(this.value);case"E":return(0,re._)(this.error);case"C":return(0,a.c)()}throw new Error("unexpected notification kind value")}static createNext(K){return void 0!==K?new V("N",K):V.undefinedValueNotification}static createError(K){return new V("E",void 0,K)}static createComplete(){return V.completeNotification}}V.completeNotification=new V("C"),V.undefinedValueNotification=new V("N",void 0)},2916:(Ye,ve,x)=>{x.d(ve,{y:()=>W});var a=x(3489),re=x(7668),ue=x(3292),Y=x(3821),K=x(5379);var $=x(2830);let W=(()=>{class oe{constructor(Se){this._isScalar=!1,Se&&(this._subscribe=Se)}lift(Se){const ge=new oe;return ge.source=this,ge.operator=Se,ge}subscribe(Se,ge,he){const{operator:Fe}=this,Ne=function V(oe,Ie,Se){if(oe){if(oe instanceof a.L)return oe;if(oe[re.b])return oe[re.b]()}return oe||Ie||Se?new a.L(oe,Ie,Se):new a.L(ue.c)}(Se,ge,he);if(Ne.add(Fe?Fe.call(Ne,this.source):this.source||$.v.useDeprecatedSynchronousErrorHandling&&!Ne.syncErrorThrowable?this._subscribe(Ne):this._trySubscribe(Ne)),$.v.useDeprecatedSynchronousErrorHandling&&Ne.syncErrorThrowable&&(Ne.syncErrorThrowable=!1,Ne.syncErrorThrown))throw Ne.syncErrorValue;return Ne}_trySubscribe(Se){try{return this._subscribe(Se)}catch(ge){$.v.useDeprecatedSynchronousErrorHandling&&(Se.syncErrorThrown=!0,Se.syncErrorValue=ge),function v(oe){for(;oe;){const{closed:Ie,destination:Se,isStopped:ge}=oe;if(Ie||ge)return!1;oe=Se&&Se instanceof a.L?Se:null}return!0}(Se)?Se.error(ge):console.warn(ge)}}forEach(Se,ge){return new(ge=ce(ge))((he,Fe)=>{let Ne;Ne=this.subscribe(ye=>{try{Se(ye)}catch(_e){Fe(_e),Ne&&Ne.unsubscribe()}},Fe,he)})}_subscribe(Se){const{source:ge}=this;return ge&&ge.subscribe(Se)}[Y.L](){return this}pipe(...Se){return 0===Se.length?this:function J(oe){return 0===oe.length?K.y:1===oe.length?oe[0]:function(Se){return oe.reduce((ge,he)=>he(ge),Se)}}(Se)(this)}toPromise(Se){return new(Se=ce(Se))((ge,he)=>{let Fe;this.subscribe(Ne=>Fe=Ne,Ne=>he(Ne),()=>ge(Fe))})}}return oe.create=Ie=>new oe(Ie),oe})();function ce(oe){if(oe||(oe=$.v.Promise||Promise),!oe)throw new Error("no Promise impl found");return oe}},3292:(Ye,ve,x)=>{x.d(ve,{c:()=>re});var a=x(2830),v=x(2782);const re={closed:!0,next(ue){},error(ue){if(a.v.useDeprecatedSynchronousErrorHandling)throw ue;(0,v.z)(ue)},complete(){}}},6831:(Ye,ve,x)=>{x.d(ve,{t:()=>he});var a=x(8929),v=x(6686),ue=x(2268);const K=new class V extends ue.v{}(class re extends v.o{constructor(ye,_e){super(ye,_e),this.scheduler=ye,this.work=_e}schedule(ye,_e=0){return _e>0?super.schedule(ye,_e):(this.delay=_e,this.state=ye,this.scheduler.flush(this),this)}execute(ye,_e){return _e>0||this.closed?super.execute(ye,_e):this._execute(ye,_e)}requestAsyncId(ye,_e,te=0){return null!==te&&te>0||null===te&&this.delay>0?super.requestAsyncId(ye,_e,te):ye.flush(this)}});var ee=x(2654),J=x(3489),$=x(9312);class oe extends J.L{constructor(ye,_e,te=0){super(ye),this.scheduler=_e,this.delay=te}static dispatch(ye){const{notification:_e,destination:te}=ye;_e.observe(te),this.unsubscribe()}scheduleMessage(ye){this.destination.add(this.scheduler.schedule(oe.dispatch,this.delay,new Ie(ye,this.destination)))}_next(ye){this.scheduleMessage($.P.createNext(ye))}_error(ye){this.scheduleMessage($.P.createError(ye)),this.unsubscribe()}_complete(){this.scheduleMessage($.P.createComplete()),this.unsubscribe()}}class Ie{constructor(ye,_e){this.notification=ye,this.destination=_e}}var Se=x(5279),ge=x(5283);class he extends a.xQ{constructor(ye=Number.POSITIVE_INFINITY,_e=Number.POSITIVE_INFINITY,te){super(),this.scheduler=te,this._events=[],this._infiniteTimeWindow=!1,this._bufferSize=ye<1?1:ye,this._windowTime=_e<1?1:_e,_e===Number.POSITIVE_INFINITY?(this._infiniteTimeWindow=!0,this.next=this.nextInfiniteTimeWindow):this.next=this.nextTimeWindow}nextInfiniteTimeWindow(ye){if(!this.isStopped){const _e=this._events;_e.push(ye),_e.length>this._bufferSize&&_e.shift()}super.next(ye)}nextTimeWindow(ye){this.isStopped||(this._events.push(new Fe(this._getNow(),ye)),this._trimBufferThenGetEvents()),super.next(ye)}_subscribe(ye){const _e=this._infiniteTimeWindow,te=_e?this._events:this._trimBufferThenGetEvents(),Ge=this.scheduler,wt=te.length;let dt;if(this.closed)throw new Se.N;if(this.isStopped||this.hasError?dt=ee.w.EMPTY:(this.observers.push(ye),dt=new ge.W(this,ye)),Ge&&ye.add(ye=new oe(ye,Ge)),_e)for(let ot=0;ot<wt&&!ye.closed;ot++)ye.next(te[ot]);else for(let ot=0;ot<wt&&!ye.closed;ot++)ye.next(te[ot].value);return this.hasError?ye.error(this.thrownError):this.isStopped&&ye.complete(),dt}_getNow(){return(this.scheduler||K).now()}_trimBufferThenGetEvents(){const ye=this._getNow(),_e=this._bufferSize,te=this._windowTime,Ge=this._events,wt=Ge.length;let dt=0;for(;dt<wt&&!(ye-Ge[dt].time<te);)dt++;return wt>_e&&(dt=Math.max(dt,wt-_e)),dt>0&&Ge.splice(0,dt),Ge}}class Fe{constructor(ye,_e){this.time=ye,this.value=_e}}},8929:(Ye,ve,x)=>{x.d(ve,{Yc:()=>K,xQ:()=>ee});var a=x(2916),v=x(3489),re=x(2654),ue=x(5279),V=x(5283),Y=x(7668);class K extends v.L{constructor(W){super(W),this.destination=W}}let ee=(()=>{class $ extends a.y{constructor(){super(),this.observers=[],this.closed=!1,this.isStopped=!1,this.hasError=!1,this.thrownError=null}[Y.b](){return new K(this)}lift(ce){const oe=new J(this,this);return oe.operator=ce,oe}next(ce){if(this.closed)throw new ue.N;if(!this.isStopped){const{observers:oe}=this,Ie=oe.length,Se=oe.slice();for(let ge=0;ge<Ie;ge++)Se[ge].next(ce)}}error(ce){if(this.closed)throw new ue.N;this.hasError=!0,this.thrownError=ce,this.isStopped=!0;const{observers:oe}=this,Ie=oe.length,Se=oe.slice();for(let ge=0;ge<Ie;ge++)Se[ge].error(ce);this.observers.length=0}complete(){if(this.closed)throw new ue.N;this.isStopped=!0;const{observers:ce}=this,oe=ce.length,Ie=ce.slice();for(let Se=0;Se<oe;Se++)Ie[Se].complete();this.observers.length=0}unsubscribe(){this.isStopped=!0,this.closed=!0,this.observers=null}_trySubscribe(ce){if(this.closed)throw new ue.N;return super._trySubscribe(ce)}_subscribe(ce){if(this.closed)throw new ue.N;return this.hasError?(ce.error(this.thrownError),re.w.EMPTY):this.isStopped?(ce.complete(),re.w.EMPTY):(this.observers.push(ce),new V.W(this,ce))}asObservable(){const ce=new a.y;return ce.source=this,ce}}return $.create=(W,ce)=>new J(W,ce),$})();class J extends ee{constructor(W,ce){super(),this.destination=W,this.source=ce}next(W){const{destination:ce}=this;ce&&ce.next&&ce.next(W)}error(W){const{destination:ce}=this;ce&&ce.error&&this.destination.error(W)}complete(){const{destination:W}=this;W&&W.complete&&this.destination.complete()}_subscribe(W){const{source:ce}=this;return ce?this.source.subscribe(W):re.w.EMPTY}}},5283:(Ye,ve,x)=>{x.d(ve,{W:()=>v});var a=x(2654);class v extends a.w{constructor(ue,V){super(),this.subject=ue,this.subscriber=V,this.closed=!1}unsubscribe(){if(this.closed)return;this.closed=!0;const ue=this.subject,V=ue.observers;if(this.subject=null,!V||0===V.length||ue.isStopped||ue.closed)return;const Y=V.indexOf(this.subscriber);-1!==Y&&V.splice(Y,1)}}},3489:(Ye,ve,x)=>{x.d(ve,{L:()=>K});var a=x(7043),v=x(3292),re=x(2654),ue=x(7668),V=x(2830),Y=x(2782);class K extends re.w{constructor($,W,ce){switch(super(),this.syncErrorValue=null,this.syncErrorThrown=!1,this.syncErrorThrowable=!1,this.isStopped=!1,arguments.length){case 0:this.destination=v.c;break;case 1:if(!$){this.destination=v.c;break}if("object"==typeof $){$ instanceof K?(this.syncErrorThrowable=$.syncErrorThrowable,this.destination=$,$.add(this)):(this.syncErrorThrowable=!0,this.destination=new ee(this,$));break}default:this.syncErrorThrowable=!0,this.destination=new ee(this,$,W,ce)}}[ue.b](){return this}static create($,W,ce){const oe=new K($,W,ce);return oe.syncErrorThrowable=!1,oe}next($){this.isStopped||this._next($)}error($){this.isStopped||(this.isStopped=!0,this._error($))}complete(){this.isStopped||(this.isStopped=!0,this._complete())}unsubscribe(){this.closed||(this.isStopped=!0,super.unsubscribe())}_next($){this.destination.next($)}_error($){this.destination.error($),this.unsubscribe()}_complete(){this.destination.complete(),this.unsubscribe()}_unsubscribeAndRecycle(){const{_parentOrParents:$}=this;return this._parentOrParents=null,this.unsubscribe(),this.closed=!1,this.isStopped=!1,this._parentOrParents=$,this}}class ee extends K{constructor($,W,ce,oe){super(),this._parentSubscriber=$;let Ie,Se=this;(0,a.m)(W)?Ie=W:W&&(Ie=W.next,ce=W.error,oe=W.complete,W!==v.c&&(Se=Object.create(W),(0,a.m)(Se.unsubscribe)&&this.add(Se.unsubscribe.bind(Se)),Se.unsubscribe=this.unsubscribe.bind(this))),this._context=Se,this._next=Ie,this._error=ce,this._complete=oe}next($){if(!this.isStopped&&this._next){const{_parentSubscriber:W}=this;V.v.useDeprecatedSynchronousErrorHandling&&W.syncErrorThrowable?this.__tryOrSetError(W,this._next,$)&&this.unsubscribe():this.__tryOrUnsub(this._next,$)}}error($){if(!this.isStopped){const{_parentSubscriber:W}=this,{useDeprecatedSynchronousErrorHandling:ce}=V.v;if(this._error)ce&&W.syncErrorThrowable?(this.__tryOrSetError(W,this._error,$),this.unsubscribe()):(this.__tryOrUnsub(this._error,$),this.unsubscribe());else if(W.syncErrorThrowable)ce?(W.syncErrorValue=$,W.syncErrorThrown=!0):(0,Y.z)($),this.unsubscribe();else{if(this.unsubscribe(),ce)throw $;(0,Y.z)($)}}}complete(){if(!this.isStopped){const{_parentSubscriber:$}=this;if(this._complete){const W=()=>this._complete.call(this._context);V.v.useDeprecatedSynchronousErrorHandling&&$.syncErrorThrowable?(this.__tryOrSetError($,W),this.unsubscribe()):(this.__tryOrUnsub(W),this.unsubscribe())}else this.unsubscribe()}}__tryOrUnsub($,W){try{$.call(this._context,W)}catch(ce){if(this.unsubscribe(),V.v.useDeprecatedSynchronousErrorHandling)throw ce;(0,Y.z)(ce)}}__tryOrSetError($,W,ce){if(!V.v.useDeprecatedSynchronousErrorHandling)throw new Error("bad call");try{W.call(this._context,ce)}catch(oe){return V.v.useDeprecatedSynchronousErrorHandling?($.syncErrorValue=oe,$.syncErrorThrown=!0,!0):((0,Y.z)(oe),!0)}return!1}_unsubscribe(){const{_parentSubscriber:$}=this;this._context=null,this._parentSubscriber=null,$.unsubscribe()}}},2654:(Ye,ve,x)=>{x.d(ve,{w:()=>Y});var a=x(6688),v=x(7830),re=x(7043);const V=(()=>{function ee(J){return Error.call(this),this.message=J?`${J.length} errors occurred during unsubscription:\n${J.map(($,W)=>`${W+1}) ${$.toString()}`).join("\n ")}`:"",this.name="UnsubscriptionError",this.errors=J,this}return ee.prototype=Object.create(Error.prototype),ee})();class Y{constructor(J){this.closed=!1,this._parentOrParents=null,this._subscriptions=null,J&&(this._ctorUnsubscribe=!0,this._unsubscribe=J)}unsubscribe(){let J;if(this.closed)return;let{_parentOrParents:$,_ctorUnsubscribe:W,_unsubscribe:ce,_subscriptions:oe}=this;if(this.closed=!0,this._parentOrParents=null,this._subscriptions=null,$ instanceof Y)$.remove(this);else if(null!==$)for(let Ie=0;Ie<$.length;++Ie)$[Ie].remove(this);if((0,re.m)(ce)){W&&(this._unsubscribe=void 0);try{ce.call(this)}catch(Ie){J=Ie instanceof V?K(Ie.errors):[Ie]}}if((0,a.k)(oe)){let Ie=-1,Se=oe.length;for(;++Ie<Se;){const ge=oe[Ie];if((0,v.K)(ge))try{ge.unsubscribe()}catch(he){J=J||[],he instanceof V?J=J.concat(K(he.errors)):J.push(he)}}}if(J)throw new V(J)}add(J){let $=J;if(!J)return Y.EMPTY;switch(typeof J){case"function":$=new Y(J);case"object":if($===this||$.closed||"function"!=typeof $.unsubscribe)return $;if(this.closed)return $.unsubscribe(),$;if(!($ instanceof Y)){const oe=$;$=new Y,$._subscriptions=[oe]}break;default:throw new Error("unrecognized teardown "+J+" added to Subscription.")}let{_parentOrParents:W}=$;if(null===W)$._parentOrParents=this;else if(W instanceof Y){if(W===this)return $;$._parentOrParents=[W,this]}else{if(-1!==W.indexOf(this))return $;W.push(this)}const ce=this._subscriptions;return null===ce?this._subscriptions=[$]:ce.push($),$}remove(J){const $=this._subscriptions;if($){const W=$.indexOf(J);-1!==W&&$.splice(W,1)}}}var ee;function K(ee){return ee.reduce((J,$)=>J.concat($ instanceof V?$.errors:$),[])}Y.EMPTY=((ee=new Y).closed=!0,ee)},2830:(Ye,ve,x)=>{x.d(ve,{v:()=>v});let a=!1;const v={Promise:void 0,set useDeprecatedSynchronousErrorHandling(re){if(re){const ue=new Error;console.warn("DEPRECATED! RxJS was set to use deprecated synchronous error handling behavior by code at: \n"+ue.stack)}else a&&console.log("RxJS: Back to a better error behavior. Thank you. <3");a=re},get useDeprecatedSynchronousErrorHandling(){return a}}},1177:(Ye,ve,x)=>{x.d(ve,{IY:()=>ue,Ds:()=>Y,ft:()=>ee});var a=x(3489),v=x(2916),re=x(9249);class ue extends a.L{constructor($){super(),this.parent=$}_next($){this.parent.notifyNext($)}_error($){this.parent.notifyError($),this.unsubscribe()}_complete(){this.parent.notifyComplete(),this.unsubscribe()}}class Y extends a.L{notifyNext($){this.destination.next($)}notifyError($){this.destination.error($)}notifyComplete(){this.destination.complete()}}function ee(J,$){if($.closed)return;if(J instanceof v.y)return J.subscribe($);let W;try{W=(0,re.s)(J)($)}catch(ce){$.error(ce)}return W}},1762:(Ye,ve,x)=>{x.d(ve,{c:()=>V,N:()=>Y});var a=x(8929),v=x(2916),re=x(2654),ue=x(4327);class V extends v.y{constructor(W,ce){super(),this.source=W,this.subjectFactory=ce,this._refCount=0,this._isComplete=!1}_subscribe(W){return this.getSubject().subscribe(W)}getSubject(){const W=this._subject;return(!W||W.isStopped)&&(this._subject=this.subjectFactory()),this._subject}connect(){let W=this._connection;return W||(this._isComplete=!1,W=this._connection=new re.w,W.add(this.source.subscribe(new K(this.getSubject(),this))),W.closed&&(this._connection=null,W=re.w.EMPTY)),W}refCount(){return(0,ue.x)()(this)}}const Y=(()=>{const $=V.prototype;return{operator:{value:null},_refCount:{value:0,writable:!0},_subject:{value:null,writable:!0},_connection:{value:null,writable:!0},_subscribe:{value:$._subscribe},_isComplete:{value:$._isComplete,writable:!0},getSubject:{value:$.getSubject},connect:{value:$.connect},refCount:{value:$.refCount}}})();class K extends a.Yc{constructor(W,ce){super(W),this.connectable=ce}_error(W){this._unsubscribe(),super._error(W)}_complete(){this.connectable._isComplete=!0,this._unsubscribe(),super._complete()}_unsubscribe(){const W=this.connectable;if(W){this.connectable=null;const ce=W._connection;W._refCount=0,W._subject=null,W._connection=null,ce&&ce.unsubscribe()}}}},3426:(Ye,ve,x)=>{x.d(ve,{aj:()=>W});var a=x(2866),v=x(6688),re=x(3489);class ue extends re.L{notifyNext(Se,ge,he,Fe,Ne){this.destination.next(ge)}notifyError(Se,ge){this.destination.error(Se)}notifyComplete(Se){this.destination.complete()}}class V extends re.L{constructor(Se,ge,he){super(),this.parent=Se,this.outerValue=ge,this.outerIndex=he,this.index=0}_next(Se){this.parent.notifyNext(this.outerValue,Se,this.outerIndex,this.index++,this)}_error(Se){this.parent.notifyError(Se,this),this.unsubscribe()}_complete(){this.parent.notifyComplete(this),this.unsubscribe()}}var Y=x(9249),K=x(2916);function ee(Ie,Se,ge,he,Fe=new V(Ie,ge,he)){if(!Fe.closed)return Se instanceof K.y?Se.subscribe(Fe):(0,Y.s)(Se)(Fe)}var J=x(3009);const $={};function W(...Ie){let Se,ge;return(0,a.K)(Ie[Ie.length-1])&&(ge=Ie.pop()),"function"==typeof Ie[Ie.length-1]&&(Se=Ie.pop()),1===Ie.length&&(0,v.k)(Ie[0])&&(Ie=Ie[0]),(0,J.n)(Ie,ge).lift(new ce(Se))}class ce{constructor(Se){this.resultSelector=Se}call(Se,ge){return ge.subscribe(new oe(Se,this.resultSelector))}}class oe extends ue{constructor(Se,ge){super(Se),this.resultSelector=ge,this.active=0,this.values=[],this.observables=[]}_next(Se){this.values.push($),this.observables.push(Se)}_complete(){const Se=this.observables,ge=Se.length;if(0===ge)this.destination.complete();else{this.active=ge,this.toRespond=ge;for(let he=0;he<ge;he++)this.add(ee(this,Se[he],void 0,he))}}notifyComplete(Se){0==(this.active-=1)&&this.destination.complete()}notifyNext(Se,ge,he){const Fe=this.values,ye=this.toRespond?Fe[he]===$?--this.toRespond:this.toRespond:0;Fe[he]=ge,0===ye&&(this.resultSelector?this._tryResultSelector(Fe):this.destination.next(Fe.slice()))}_tryResultSelector(Se){let ge;try{ge=this.resultSelector.apply(this,Se)}catch(he){return void this.destination.error(he)}this.destination.next(ge)}}},1221:(Ye,ve,x)=>{x.d(ve,{z:()=>ue});var a=x(1086),v=x(9146);function ue(...V){return function re(){return(0,v.J)(1)}()((0,a.of)(...V))}},8514:(Ye,ve,x)=>{x.d(ve,{P:()=>ue});var a=x(2916),v=x(5254),re=x(8896);function ue(V){return new a.y(Y=>{let K;try{K=V()}catch(J){return void Y.error(J)}return(K?(0,v.D)(K):(0,re.c)()).subscribe(Y)})}},8896:(Ye,ve,x)=>{x.d(ve,{E:()=>v,c:()=>re});var a=x(2916);const v=new a.y(V=>V.complete());function re(V){return V?function ue(V){return new a.y(Y=>V.schedule(()=>Y.complete()))}(V):v}},5254:(Ye,ve,x)=>{x.d(ve,{D:()=>Se});var a=x(2916),v=x(9249),re=x(2654),ue=x(3821),K=x(6454),ee=x(5430),W=x(8955),ce=x(8515);function Se(ge,he){return he?function Ie(ge,he){if(null!=ge){if(function $(ge){return ge&&"function"==typeof ge[ue.L]}(ge))return function V(ge,he){return new a.y(Fe=>{const Ne=new re.w;return Ne.add(he.schedule(()=>{const ye=ge[ue.L]();Ne.add(ye.subscribe({next(_e){Ne.add(he.schedule(()=>Fe.next(_e)))},error(_e){Ne.add(he.schedule(()=>Fe.error(_e)))},complete(){Ne.add(he.schedule(()=>Fe.complete()))}}))})),Ne})}(ge,he);if((0,W.t)(ge))return function Y(ge,he){return new a.y(Fe=>{const Ne=new re.w;return Ne.add(he.schedule(()=>ge.then(ye=>{Ne.add(he.schedule(()=>{Fe.next(ye),Ne.add(he.schedule(()=>Fe.complete()))}))},ye=>{Ne.add(he.schedule(()=>Fe.error(ye)))}))),Ne})}(ge,he);if((0,ce.z)(ge))return(0,K.r)(ge,he);if(function oe(ge){return ge&&"function"==typeof ge[ee.hZ]}(ge)||"string"==typeof ge)return function J(ge,he){if(!ge)throw new Error("Iterable cannot be null");return new a.y(Fe=>{const Ne=new re.w;let ye;return Ne.add(()=>{ye&&"function"==typeof ye.return&&ye.return()}),Ne.add(he.schedule(()=>{ye=ge[ee.hZ](),Ne.add(he.schedule(function(){if(Fe.closed)return;let _e,te;try{const Ge=ye.next();_e=Ge.value,te=Ge.done}catch(Ge){return void Fe.error(Ge)}te?Fe.complete():(Fe.next(_e),this.schedule())}))})),Ne})}(ge,he)}throw new TypeError((null!==ge&&typeof ge||ge)+" is not observable")}(ge,he):ge instanceof a.y?ge:new a.y((0,v.s)(ge))}},3009:(Ye,ve,x)=>{x.d(ve,{n:()=>ue});var a=x(2916),v=x(3650),re=x(6454);function ue(V,Y){return Y?(0,re.r)(V,Y):new a.y((0,v.V)(V))}},6787:(Ye,ve,x)=>{x.d(ve,{T:()=>V});var a=x(2916),v=x(2866),re=x(9146),ue=x(3009);function V(...Y){let K=Number.POSITIVE_INFINITY,ee=null,J=Y[Y.length-1];return(0,v.K)(J)?(ee=Y.pop(),Y.length>1&&"number"==typeof Y[Y.length-1]&&(K=Y.pop())):"number"==typeof J&&(K=Y.pop()),null===ee&&1===Y.length&&Y[0]instanceof a.y?Y[0]:(0,re.J)(K)((0,ue.n)(Y,ee))}},1086:(Ye,ve,x)=>{x.d(ve,{of:()=>ue});var a=x(2866),v=x(3009),re=x(6454);function ue(...V){let Y=V[V.length-1];return(0,a.K)(Y)?(V.pop(),(0,re.r)(V,Y)):(0,v.n)(V)}},1737:(Ye,ve,x)=>{x.d(ve,{_:()=>v});var a=x(2916);function v(ue,V){return new a.y(V?Y=>V.schedule(re,0,{error:ue,subscriber:Y}):Y=>Y.error(ue))}function re({error:ue,subscriber:V}){V.error(ue)}},7739:(Ye,ve,x)=>{x.d(ve,{H:()=>Y});var a=x(2916),v=x(353),re=x(6688);function ue(ee){return!(0,re.k)(ee)&&ee-parseFloat(ee)+1>=0}var V=x(2866);function Y(ee=0,J,$){let W=-1;return ue(J)?W=Number(J)<1?1:Number(J):(0,V.K)(J)&&($=J),(0,V.K)($)||($=v.P),new a.y(ce=>{const oe=ue(ee)?ee:+ee-$.now();return $.schedule(K,oe,{index:0,period:W,subscriber:ce})})}function K(ee){const{index:J,period:$,subscriber:W}=ee;if(W.next(J),!W.closed){if(-1===$)return W.complete();ee.index=J+1,this.schedule(ee,$)}}},1406:(Ye,ve,x)=>{x.d(ve,{b:()=>v});var a=x(1709);function v(re,ue){return(0,a.zg)(re,ue,1)}},5778:(Ye,ve,x)=>{x.d(ve,{x:()=>v});var a=x(3489);function v(V,Y){return K=>K.lift(new re(V,Y))}class re{constructor(Y,K){this.compare=Y,this.keySelector=K}call(Y,K){return K.subscribe(new ue(Y,this.compare,this.keySelector))}}class ue extends a.L{constructor(Y,K,ee){super(Y),this.keySelector=ee,this.hasKey=!1,"function"==typeof K&&(this.compare=K)}compare(Y,K){return Y===K}_next(Y){let K;try{const{keySelector:J}=this;K=J?J(Y):Y}catch(J){return this.destination.error(J)}let ee=!1;if(this.hasKey)try{const{compare:J}=this;ee=J(this.key,K)}catch(J){return this.destination.error(J)}else this.hasKey=!0;ee||(this.key=K,this.destination.next(Y))}}},2198:(Ye,ve,x)=>{x.d(ve,{h:()=>v});var a=x(3489);function v(V,Y){return function(ee){return ee.lift(new re(V,Y))}}class re{constructor(Y,K){this.predicate=Y,this.thisArg=K}call(Y,K){return K.subscribe(new ue(Y,this.predicate,this.thisArg))}}class ue extends a.L{constructor(Y,K,ee){super(Y),this.predicate=K,this.thisArg=ee,this.count=0}_next(Y){let K;try{K=this.predicate.call(this.thisArg,Y,this.count++)}catch(ee){return void this.destination.error(ee)}K&&this.destination.next(Y)}}},537:(Ye,ve,x)=>{x.d(ve,{x:()=>re});var a=x(3489),v=x(2654);function re(Y){return K=>K.lift(new ue(Y))}class ue{constructor(K){this.callback=K}call(K,ee){return ee.subscribe(new V(K,this.callback))}}class V extends a.L{constructor(K,ee){super(K),this.add(new v.w(ee))}}},4850:(Ye,ve,x)=>{x.d(ve,{U:()=>v});var a=x(3489);function v(V,Y){return function(ee){if("function"!=typeof V)throw new TypeError("argument is not a function. Are you looking for `mapTo()`?");return ee.lift(new re(V,Y))}}class re{constructor(Y,K){this.project=Y,this.thisArg=K}call(Y,K){return K.subscribe(new ue(Y,this.project,this.thisArg))}}class ue extends a.L{constructor(Y,K,ee){super(Y),this.project=K,this.count=0,this.thisArg=ee||this}_next(Y){let K;try{K=this.project.call(this.thisArg,Y,this.count++)}catch(ee){return void this.destination.error(ee)}this.destination.next(K)}}},9146:(Ye,ve,x)=>{x.d(ve,{J:()=>re});var a=x(1709),v=x(5379);function re(ue=Number.POSITIVE_INFINITY){return(0,a.zg)(v.y,ue)}},1709:(Ye,ve,x)=>{x.d(ve,{zg:()=>ue});var a=x(4850),v=x(5254),re=x(1177);function ue(ee,J,$=Number.POSITIVE_INFINITY){return"function"==typeof J?W=>W.pipe(ue((ce,oe)=>(0,v.D)(ee(ce,oe)).pipe((0,a.U)((Ie,Se)=>J(ce,Ie,oe,Se))),$)):("number"==typeof J&&($=J),W=>W.lift(new V(ee,$)))}class V{constructor(J,$=Number.POSITIVE_INFINITY){this.project=J,this.concurrent=$}call(J,$){return $.subscribe(new Y(J,this.project,this.concurrent))}}class Y extends re.Ds{constructor(J,$,W=Number.POSITIVE_INFINITY){super(J),this.project=$,this.concurrent=W,this.hasCompleted=!1,this.buffer=[],this.active=0,this.index=0}_next(J){this.active<this.concurrent?this._tryNext(J):this.buffer.push(J)}_tryNext(J){let $;const W=this.index++;try{$=this.project(J,W)}catch(ce){return void this.destination.error(ce)}this.active++,this._innerSub($)}_innerSub(J){const $=new re.IY(this),W=this.destination;W.add($);const ce=(0,re.ft)(J,$);ce!==$&&W.add(ce)}_complete(){this.hasCompleted=!0,0===this.active&&0===this.buffer.length&&this.destination.complete(),this.unsubscribe()}notifyNext(J){this.destination.next(J)}notifyComplete(){const J=this.buffer;this.active--,J.length>0?this._next(J.shift()):0===this.active&&this.hasCompleted&&this.destination.complete()}}},4327:(Ye,ve,x)=>{x.d(ve,{x:()=>v});var a=x(3489);function v(){return function(Y){return Y.lift(new re(Y))}}class re{constructor(Y){this.connectable=Y}call(Y,K){const{connectable:ee}=this;ee._refCount++;const J=new ue(Y,ee),$=K.subscribe(J);return J.closed||(J.connection=ee.connect()),$}}class ue extends a.L{constructor(Y,K){super(Y),this.connectable=K}_unsubscribe(){const{connectable:Y}=this;if(!Y)return void(this.connection=null);this.connectable=null;const K=Y._refCount;if(K<=0)return void(this.connection=null);if(Y._refCount=K-1,K>1)return void(this.connection=null);const{connection:ee}=this,J=Y._connection;this.connection=null,J&&(!ee||J===ee)&&J.unsubscribe()}}},1059:(Ye,ve,x)=>{x.d(ve,{O:()=>re});var a=x(1221),v=x(2866);function re(...ue){const V=ue[ue.length-1];return(0,v.K)(V)?(ue.pop(),Y=>(0,a.z)(ue,Y,V)):Y=>(0,a.z)(ue,Y)}},7545:(Ye,ve,x)=>{x.d(ve,{w:()=>ue});var a=x(4850),v=x(5254),re=x(1177);function ue(K,ee){return"function"==typeof ee?J=>J.pipe(ue(($,W)=>(0,v.D)(K($,W)).pipe((0,a.U)((ce,oe)=>ee($,ce,W,oe))))):J=>J.lift(new V(K))}class V{constructor(ee){this.project=ee}call(ee,J){return J.subscribe(new Y(ee,this.project))}}class Y extends re.Ds{constructor(ee,J){super(ee),this.project=J,this.index=0}_next(ee){let J;const $=this.index++;try{J=this.project(ee,$)}catch(W){return void this.destination.error(W)}this._innerSub(J)}_innerSub(ee){const J=this.innerSubscription;J&&J.unsubscribe();const $=new re.IY(this),W=this.destination;W.add($),this.innerSubscription=(0,re.ft)(ee,$),this.innerSubscription!==$&&W.add(this.innerSubscription)}_complete(){const{innerSubscription:ee}=this;(!ee||ee.closed)&&super._complete(),this.unsubscribe()}_unsubscribe(){this.innerSubscription=void 0}notifyComplete(){this.innerSubscription=void 0,this.isStopped&&super._complete()}notifyNext(ee){this.destination.next(ee)}}},2986:(Ye,ve,x)=>{x.d(ve,{q:()=>ue});var a=x(3489),v=x(4231),re=x(8896);function ue(K){return ee=>0===K?(0,re.c)():ee.lift(new V(K))}class V{constructor(ee){if(this.total=ee,this.total<0)throw new v.W}call(ee,J){return J.subscribe(new Y(ee,this.total))}}class Y extends a.L{constructor(ee,J){super(ee),this.total=J,this.count=0}_next(ee){const J=this.total,$=++this.count;$<=J&&(this.destination.next(ee),$===J&&(this.destination.complete(),this.unsubscribe()))}}},2868:(Ye,ve,x)=>{x.d(ve,{b:()=>ue});var a=x(3489);function v(){}var re=x(7043);function ue(K,ee,J){return function(W){return W.lift(new V(K,ee,J))}}class V{constructor(ee,J,$){this.nextOrObserver=ee,this.error=J,this.complete=$}call(ee,J){return J.subscribe(new Y(ee,this.nextOrObserver,this.error,this.complete))}}class Y extends a.L{constructor(ee,J,$,W){super(ee),this._tapNext=v,this._tapError=v,this._tapComplete=v,this._tapError=$||v,this._tapComplete=W||v,(0,re.m)(J)?(this._context=this,this._tapNext=J):J&&(this._context=J,this._tapNext=J.next||v,this._tapError=J.error||v,this._tapComplete=J.complete||v)}_next(ee){try{this._tapNext.call(this._context,ee)}catch(J){return void this.destination.error(J)}this.destination.next(ee)}_error(ee){try{this._tapError.call(this._context,ee)}catch(J){return void this.destination.error(J)}this.destination.error(ee)}_complete(){try{this._tapComplete.call(this._context)}catch(ee){return void this.destination.error(ee)}return this.destination.complete()}}},6454:(Ye,ve,x)=>{x.d(ve,{r:()=>re});var a=x(2916),v=x(2654);function re(ue,V){return new a.y(Y=>{const K=new v.w;let ee=0;return K.add(V.schedule(function(){ee!==ue.length?(Y.next(ue[ee++]),Y.closed||K.add(this.schedule())):Y.complete()})),K})}},6686:(Ye,ve,x)=>{x.d(ve,{o:()=>re});var a=x(2654);class v extends a.w{constructor(V,Y){super()}schedule(V,Y=0){return this}}class re extends v{constructor(V,Y){super(V,Y),this.scheduler=V,this.work=Y,this.pending=!1}schedule(V,Y=0){if(this.closed)return this;this.state=V;const K=this.id,ee=this.scheduler;return null!=K&&(this.id=this.recycleAsyncId(ee,K,Y)),this.pending=!0,this.delay=Y,this.id=this.id||this.requestAsyncId(ee,this.id,Y),this}requestAsyncId(V,Y,K=0){return setInterval(V.flush.bind(V,this),K)}recycleAsyncId(V,Y,K=0){if(null!==K&&this.delay===K&&!1===this.pending)return Y;clearInterval(Y)}execute(V,Y){if(this.closed)return new Error("executing a cancelled action");this.pending=!1;const K=this._execute(V,Y);if(K)return K;!1===this.pending&&null!=this.id&&(this.id=this.recycleAsyncId(this.scheduler,this.id,null))}_execute(V,Y){let ee,K=!1;try{this.work(V)}catch(J){K=!0,ee=!!J&&J||new Error(J)}if(K)return this.unsubscribe(),ee}_unsubscribe(){const V=this.id,Y=this.scheduler,K=Y.actions,ee=K.indexOf(this);this.work=null,this.state=null,this.pending=!1,this.scheduler=null,-1!==ee&&K.splice(ee,1),null!=V&&(this.id=this.recycleAsyncId(Y,V,null)),this.delay=null}}},2268:(Ye,ve,x)=>{x.d(ve,{v:()=>v});let a=(()=>{class re{constructor(V,Y=re.now){this.SchedulerAction=V,this.now=Y}schedule(V,Y=0,K){return new this.SchedulerAction(this,V).schedule(K,Y)}}return re.now=()=>Date.now(),re})();class v extends a{constructor(ue,V=a.now){super(ue,()=>v.delegate&&v.delegate!==this?v.delegate.now():V()),this.actions=[],this.active=!1,this.scheduled=void 0}schedule(ue,V=0,Y){return v.delegate&&v.delegate!==this?v.delegate.schedule(ue,V,Y):super.schedule(ue,V,Y)}flush(ue){const{actions:V}=this;if(this.active)return void V.push(ue);let Y;this.active=!0;do{if(Y=ue.execute(ue.state,ue.delay))break}while(ue=V.shift());if(this.active=!1,Y){for(;ue=V.shift();)ue.unsubscribe();throw Y}}}},353:(Ye,ve,x)=>{x.d(ve,{P:()=>ue});var a=x(6686);const ue=new(x(2268).v)(a.o)},5430:(Ye,ve,x)=>{x.d(ve,{hZ:()=>v});const v=function a(){return"function"==typeof Symbol&&Symbol.iterator?Symbol.iterator:"@@iterator"}()},3821:(Ye,ve,x)=>{x.d(ve,{L:()=>a});const a="function"==typeof Symbol&&Symbol.observable||"@@observable"},7668:(Ye,ve,x)=>{x.d(ve,{b:()=>a});const a="function"==typeof Symbol?Symbol("rxSubscriber"):"@@rxSubscriber_"+Math.random()},4231:(Ye,ve,x)=>{x.d(ve,{W:()=>v});const v=(()=>{function re(){return Error.call(this),this.message="argument out of range",this.name="ArgumentOutOfRangeError",this}return re.prototype=Object.create(Error.prototype),re})()},5279:(Ye,ve,x)=>{x.d(ve,{N:()=>v});const v=(()=>{function re(){return Error.call(this),this.message="object unsubscribed",this.name="ObjectUnsubscribedError",this}return re.prototype=Object.create(Error.prototype),re})()},2782:(Ye,ve,x)=>{function a(v){setTimeout(()=>{throw v},0)}x.d(ve,{z:()=>a})},5379:(Ye,ve,x)=>{function a(v){return v}x.d(ve,{y:()=>a})},6688:(Ye,ve,x)=>{x.d(ve,{k:()=>a});const a=Array.isArray||(v=>v&&"number"==typeof v.length)},8515:(Ye,ve,x)=>{x.d(ve,{z:()=>a});const a=v=>v&&"number"==typeof v.length&&"function"!=typeof v},2697:(Ye,ve,x)=>{function a(v){return v instanceof Date&&!isNaN(+v)}x.d(ve,{J:()=>a})},7043:(Ye,ve,x)=>{function a(v){return"function"==typeof v}x.d(ve,{m:()=>a})},7830:(Ye,ve,x)=>{function a(v){return null!==v&&"object"==typeof v}x.d(ve,{K:()=>a})},8955:(Ye,ve,x)=>{function a(v){return!!v&&"function"!=typeof v.subscribe&&"function"==typeof v.then}x.d(ve,{t:()=>a})},2866:(Ye,ve,x)=>{function a(v){return v&&"function"==typeof v.schedule}x.d(ve,{K:()=>a})},9249:(Ye,ve,x)=>{x.d(ve,{s:()=>W});var a=x(3650),v=x(2782),ue=x(5430),Y=x(3821),ee=x(8515),J=x(8955),$=x(7830);const W=ce=>{if(ce&&"function"==typeof ce[Y.L])return(ce=>oe=>{const Ie=ce[Y.L]();if("function"!=typeof Ie.subscribe)throw new TypeError("Provided object does not correctly implement Symbol.observable");return Ie.subscribe(oe)})(ce);if((0,ee.z)(ce))return(0,a.V)(ce);if((0,J.t)(ce))return(ce=>oe=>(ce.then(Ie=>{oe.closed||(oe.next(Ie),oe.complete())},Ie=>oe.error(Ie)).then(null,v.z),oe))(ce);if(ce&&"function"==typeof ce[ue.hZ])return(ce=>oe=>{const Ie=ce[ue.hZ]();for(;;){let Se;try{Se=Ie.next()}catch(ge){return oe.error(ge),oe}if(Se.done){oe.complete();break}if(oe.next(Se.value),oe.closed)break}return"function"==typeof Ie.return&&oe.add(()=>{Ie.return&&Ie.return()}),oe})(ce);{const Ie=`You provided ${(0,$.K)(ce)?"an invalid object":`'${ce}'`} where a stream was expected. You can provide an Observable, Promise, Array, or Iterable.`;throw new TypeError(Ie)}}},3650:(Ye,ve,x)=>{x.d(ve,{V:()=>a});const a=v=>re=>{for(let ue=0,V=v.length;ue<V&&!re.closed;ue++)re.next(v[ue]);re.complete()}},1777:(Ye,ve,x)=>{x.d(ve,{l3:()=>re,_j:()=>a,LC:()=>v,ZN:()=>Fe,jt:()=>V,pV:()=>oe,F4:()=>$,IO:()=>Se,vP:()=>K,SB:()=>J,oB:()=>ee,eR:()=>W,X$:()=>ue,ZE:()=>Ne,k1:()=>ye});class a{}class v{}const re="*";function ue(_e,te){return{type:7,name:_e,definitions:te,options:{}}}function V(_e,te=null){return{type:4,styles:te,timings:_e}}function K(_e,te=null){return{type:2,steps:_e,options:te}}function ee(_e){return{type:6,styles:_e,offset:null}}function J(_e,te,Ge){return{type:0,name:_e,styles:te,options:Ge}}function $(_e){return{type:5,steps:_e}}function W(_e,te,Ge=null){return{type:1,expr:_e,animation:te,options:Ge}}function oe(_e=null){return{type:9,options:_e}}function Se(_e,te,Ge=null){return{type:11,selector:_e,animation:te,options:Ge}}function he(_e){Promise.resolve(null).then(_e)}class Fe{constructor(te=0,Ge=0){this._onDoneFns=[],this._onStartFns=[],this._onDestroyFns=[],this._started=!1,this._destroyed=!1,this._finished=!1,this._position=0,this.parentPlayer=null,this.totalTime=te+Ge}_onFinish(){this._finished||(this._finished=!0,this._onDoneFns.forEach(te=>te()),this._onDoneFns=[])}onStart(te){this._onStartFns.push(te)}onDone(te){this._onDoneFns.push(te)}onDestroy(te){this._onDestroyFns.push(te)}hasStarted(){return this._started}init(){}play(){this.hasStarted()||(this._onStart(),this.triggerMicrotask()),this._started=!0}triggerMicrotask(){he(()=>this._onFinish())}_onStart(){this._onStartFns.forEach(te=>te()),this._onStartFns=[]}pause(){}restart(){}finish(){this._onFinish()}destroy(){this._destroyed||(this._destroyed=!0,this.hasStarted()||this._onStart(),this.finish(),this._onDestroyFns.forEach(te=>te()),this._onDestroyFns=[])}reset(){this._started=!1}setPosition(te){this._position=this.totalTime?te*this.totalTime:1}getPosition(){return this.totalTime?this._position/this.totalTime:1}triggerCallback(te){const Ge="start"==te?this._onStartFns:this._onDoneFns;Ge.forEach(wt=>wt()),Ge.length=0}}class Ne{constructor(te){this._onDoneFns=[],this._onStartFns=[],this._finished=!1,this._started=!1,this._destroyed=!1,this._onDestroyFns=[],this.parentPlayer=null,this.totalTime=0,this.players=te;let Ge=0,wt=0,dt=0;const ot=this.players.length;0==ot?he(()=>this._onFinish()):this.players.forEach(ht=>{ht.onDone(()=>{++Ge==ot&&this._onFinish()}),ht.onDestroy(()=>{++wt==ot&&this._onDestroy()}),ht.onStart(()=>{++dt==ot&&this._onStart()})}),this.totalTime=this.players.reduce((ht,rt)=>Math.max(ht,rt.totalTime),0)}_onFinish(){this._finished||(this._finished=!0,this._onDoneFns.forEach(te=>te()),this._onDoneFns=[])}init(){this.players.forEach(te=>te.init())}onStart(te){this._onStartFns.push(te)}_onStart(){this.hasStarted()||(this._started=!0,this._onStartFns.forEach(te=>te()),this._onStartFns=[])}onDone(te){this._onDoneFns.push(te)}onDestroy(te){this._onDestroyFns.push(te)}hasStarted(){return this._started}play(){this.parentPlayer||this.init(),this._onStart(),this.players.forEach(te=>te.play())}pause(){this.players.forEach(te=>te.pause())}restart(){this.players.forEach(te=>te.restart())}finish(){this._onFinish(),this.players.forEach(te=>te.finish())}destroy(){this._onDestroy()}_onDestroy(){this._destroyed||(this._destroyed=!0,this._onFinish(),this.players.forEach(te=>te.destroy()),this._onDestroyFns.forEach(te=>te()),this._onDestroyFns=[])}reset(){this.players.forEach(te=>te.reset()),this._destroyed=!1,this._finished=!1,this._started=!1}setPosition(te){const Ge=te*this.totalTime;this.players.forEach(wt=>{const dt=wt.totalTime?Math.min(1,Ge/wt.totalTime):1;wt.setPosition(dt)})}getPosition(){const te=this.players.reduce((Ge,wt)=>null===Ge||wt.totalTime>Ge.totalTime?wt:Ge,null);return null!=te?te.getPosition():0}beforeDestroy(){this.players.forEach(te=>{te.beforeDestroy&&te.beforeDestroy()})}triggerCallback(te){const Ge="start"==te?this._onStartFns:this._onDoneFns;Ge.forEach(wt=>wt()),Ge.length=0}}const ye="!"},9808:(Ye,ve,x)=>{x.d(ve,{mr:()=>Ne,Ov:()=>qr,ez:()=>es,K0:()=>K,uU:()=>vr,JJ:()=>Br,Do:()=>_e,V_:()=>$,Ye:()=>te,S$:()=>he,mk:()=>$t,$G:()=>rr,sg:()=>ct,O5:()=>Gt,PC:()=>Dn,RF:()=>sr,n9:()=>sn,ED:()=>At,tP:()=>yr,b0:()=>ye,lw:()=>ee,OU:()=>Is,EM:()=>I,JF:()=>R,NF:()=>ts,w_:()=>Y,bD:()=>qn,q:()=>re,Mx:()=>Bn,HT:()=>V});var a=x(6435);let v=null;function re(){return v}function V(h){v||(v=h)}class Y{}const K=new a.OlP("DocumentToken");let ee=(()=>{class h{historyGo(p){throw new Error("Not implemented")}}return h.\u0275fac=function(p){return new(p||h)},h.\u0275prov=a.Yz7({token:h,factory:function(){return function J(){return(0,a.LFG)(W)}()},providedIn:"platform"}),h})();const $=new a.OlP("Location Initialized");let W=(()=>{class h extends ee{constructor(p){super(),this._doc=p,this._init()}_init(){this.location=window.location,this._history=window.history}getBaseHrefFromDOM(){return re().getBaseHref(this._doc)}onPopState(p){const T=re().getGlobalEventTarget(this._doc,"window");return T.addEventListener("popstate",p,!1),()=>T.removeEventListener("popstate",p)}onHashChange(p){const T=re().getGlobalEventTarget(this._doc,"window");return T.addEventListener("hashchange",p,!1),()=>T.removeEventListener("hashchange",p)}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(p){this.location.pathname=p}pushState(p,T,N){ce()?this._history.pushState(p,T,N):this.location.hash=N}replaceState(p,T,N){ce()?this._history.replaceState(p,T,N):this.location.hash=N}forward(){this._history.forward()}back(){this._history.back()}historyGo(p=0){this._history.go(p)}getState(){return this._history.state}}return h.\u0275fac=function(p){return new(p||h)(a.LFG(K))},h.\u0275prov=a.Yz7({token:h,factory:function(){return function oe(){return new W((0,a.LFG)(K))}()},providedIn:"platform"}),h})();function ce(){return!!window.history.pushState}function Ie(h,C){if(0==h.length)return C;if(0==C.length)return h;let p=0;return h.endsWith("/")&&p++,C.startsWith("/")&&p++,2==p?h+C.substring(1):1==p?h+C:h+"/"+C}function Se(h){const C=h.match(/#|\?|$/),p=C&&C.index||h.length;return h.slice(0,p-("/"===h[p-1]?1:0))+h.slice(p)}function ge(h){return h&&"?"!==h[0]?"?"+h:h}let he=(()=>{class h{historyGo(p){throw new Error("Not implemented")}}return h.\u0275fac=function(p){return new(p||h)},h.\u0275prov=a.Yz7({token:h,factory:function(){return function Fe(h){const C=(0,a.LFG)(K).location;return new ye((0,a.LFG)(ee),C&&C.origin||"")}()},providedIn:"root"}),h})();const Ne=new a.OlP("appBaseHref");let ye=(()=>{class h extends he{constructor(p,T){if(super(),this._platformLocation=p,this._removeListenerFns=[],null==T&&(T=this._platformLocation.getBaseHrefFromDOM()),null==T)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=T}ngOnDestroy(){for(;this._removeListenerFns.length;)this._removeListenerFns.pop()()}onPopState(p){this._removeListenerFns.push(this._platformLocation.onPopState(p),this._platformLocation.onHashChange(p))}getBaseHref(){return this._baseHref}prepareExternalUrl(p){return Ie(this._baseHref,p)}path(p=!1){const T=this._platformLocation.pathname+ge(this._platformLocation.search),N=this._platformLocation.hash;return N&&p?`${T}${N}`:T}pushState(p,T,N,Q){const de=this.prepareExternalUrl(N+ge(Q));this._platformLocation.pushState(p,T,de)}replaceState(p,T,N,Q){const de=this.prepareExternalUrl(N+ge(Q));this._platformLocation.replaceState(p,T,de)}forward(){this._platformLocation.forward()}back(){this._platformLocation.back()}historyGo(p=0){var T,N;null===(N=(T=this._platformLocation).historyGo)||void 0===N||N.call(T,p)}}return h.\u0275fac=function(p){return new(p||h)(a.LFG(ee),a.LFG(Ne,8))},h.\u0275prov=a.Yz7({token:h,factory:h.\u0275fac}),h})(),_e=(()=>{class h extends he{constructor(p,T){super(),this._platformLocation=p,this._baseHref="",this._removeListenerFns=[],null!=T&&(this._baseHref=T)}ngOnDestroy(){for(;this._removeListenerFns.length;)this._removeListenerFns.pop()()}onPopState(p){this._removeListenerFns.push(this._platformLocation.onPopState(p),this._platformLocation.onHashChange(p))}getBaseHref(){return this._baseHref}path(p=!1){let T=this._platformLocation.hash;return null==T&&(T="#"),T.length>0?T.substring(1):T}prepareExternalUrl(p){const T=Ie(this._baseHref,p);return T.length>0?"#"+T:T}pushState(p,T,N,Q){let de=this.prepareExternalUrl(N+ge(Q));0==de.length&&(de=this._platformLocation.pathname),this._platformLocation.pushState(p,T,de)}replaceState(p,T,N,Q){let de=this.prepareExternalUrl(N+ge(Q));0==de.length&&(de=this._platformLocation.pathname),this._platformLocation.replaceState(p,T,de)}forward(){this._platformLocation.forward()}back(){this._platformLocation.back()}historyGo(p=0){var T,N;null===(N=(T=this._platformLocation).historyGo)||void 0===N||N.call(T,p)}}return h.\u0275fac=function(p){return new(p||h)(a.LFG(ee),a.LFG(Ne,8))},h.\u0275prov=a.Yz7({token:h,factory:h.\u0275fac}),h})(),te=(()=>{class h{constructor(p,T){this._subject=new a.vpe,this._urlChangeListeners=[],this._platformStrategy=p;const N=this._platformStrategy.getBaseHref();this._platformLocation=T,this._baseHref=Se(dt(N)),this._platformStrategy.onPopState(Q=>{this._subject.emit({url:this.path(!0),pop:!0,state:Q.state,type:Q.type})})}path(p=!1){return this.normalize(this._platformStrategy.path(p))}getState(){return this._platformLocation.getState()}isCurrentPathEqualTo(p,T=""){return this.path()==this.normalize(p+ge(T))}normalize(p){return h.stripTrailingSlash(function wt(h,C){return h&&C.startsWith(h)?C.substring(h.length):C}(this._baseHref,dt(p)))}prepareExternalUrl(p){return p&&"/"!==p[0]&&(p="/"+p),this._platformStrategy.prepareExternalUrl(p)}go(p,T="",N=null){this._platformStrategy.pushState(N,"",p,T),this._notifyUrlChangeListeners(this.prepareExternalUrl(p+ge(T)),N)}replaceState(p,T="",N=null){this._platformStrategy.replaceState(N,"",p,T),this._notifyUrlChangeListeners(this.prepareExternalUrl(p+ge(T)),N)}forward(){this._platformStrategy.forward()}back(){this._platformStrategy.back()}historyGo(p=0){var T,N;null===(N=(T=this._platformStrategy).historyGo)||void 0===N||N.call(T,p)}onUrlChange(p){this._urlChangeListeners.push(p),this._urlChangeSubscription||(this._urlChangeSubscription=this.subscribe(T=>{this._notifyUrlChangeListeners(T.url,T.state)}))}_notifyUrlChangeListeners(p="",T){this._urlChangeListeners.forEach(N=>N(p,T))}subscribe(p,T,N){return this._subject.subscribe({next:p,error:T,complete:N})}}return h.normalizeQueryParams=ge,h.joinWithSlash=Ie,h.stripTrailingSlash=Se,h.\u0275fac=function(p){return new(p||h)(a.LFG(he),a.LFG(ee))},h.\u0275prov=a.Yz7({token:h,factory:function(){return function Ge(){return new te((0,a.LFG)(he),(0,a.LFG)(ee))}()},providedIn:"root"}),h})();function dt(h){return h.replace(/\/index.html$/,"")}var ht=(()=>((ht=ht||{})[ht.Decimal=0]="Decimal",ht[ht.Percent=1]="Percent",ht[ht.Currency=2]="Currency",ht[ht.Scientific=3]="Scientific",ht))(),rt=(()=>((rt=rt||{})[rt.Zero=0]="Zero",rt[rt.One=1]="One",rt[rt.Two=2]="Two",rt[rt.Few=3]="Few",rt[rt.Many=4]="Many",rt[rt.Other=5]="Other",rt))(),_t=(()=>((_t=_t||{})[_t.Format=0]="Format",_t[_t.Standalone=1]="Standalone",_t))(),tt=(()=>((tt=tt||{})[tt.Narrow=0]="Narrow",tt[tt.Abbreviated=1]="Abbreviated",tt[tt.Wide=2]="Wide",tt[tt.Short=3]="Short",tt))(),ft=(()=>((ft=ft||{})[ft.Short=0]="Short",ft[ft.Medium=1]="Medium",ft[ft.Long=2]="Long",ft[ft.Full=3]="Full",ft))(),Ve=(()=>((Ve=Ve||{})[Ve.Decimal=0]="Decimal",Ve[Ve.Group=1]="Group",Ve[Ve.List=2]="List",Ve[Ve.PercentSign=3]="PercentSign",Ve[Ve.PlusSign=4]="PlusSign",Ve[Ve.MinusSign=5]="MinusSign",Ve[Ve.Exponential=6]="Exponential",Ve[Ve.SuperscriptingExponent=7]="SuperscriptingExponent",Ve[Ve.PerMille=8]="PerMille",Ve[Ve.Infinity=9]="Infinity",Ve[Ve.NaN=10]="NaN",Ve[Ve.TimeSeparator=11]="TimeSeparator",Ve[Ve.CurrencyDecimal=12]="CurrencyDecimal",Ve[Ve.CurrencyGroup=13]="CurrencyGroup",Ve))();function Me(h,C){return Ht((0,a.cg1)(h)[a.wAp.DateFormat],C)}function B(h,C){return Ht((0,a.cg1)(h)[a.wAp.TimeFormat],C)}function ae(h,C){return Ht((0,a.cg1)(h)[a.wAp.DateTimeFormat],C)}function ke(h,C){const p=(0,a.cg1)(h),T=p[a.wAp.NumberSymbols][C];if(void 0===T){if(C===Ve.CurrencyDecimal)return p[a.wAp.NumberSymbols][Ve.Decimal];if(C===Ve.CurrencyGroup)return p[a.wAp.NumberSymbols][Ve.Group]}return T}const Mt=a.kL8;function nn(h){if(!h[a.wAp.ExtraData])throw new Error(`Missing extra locale data for the locale "${h[a.wAp.LocaleId]}". Use "registerLocaleData" to load new data. See the "I18n guide" on angular.io to know more.`)}function Ht(h,C){for(let p=C;p>-1;p--)if(void 0!==h[p])return h[p];throw new Error("Locale data API: locale data undefined")}function Gn(h){const[C,p]=h.split(":");return{hours:+C,minutes:+p}}const Z=/^(\d{4})-?(\d\d)-?(\d\d)(?:T(\d\d)(?::?(\d\d)(?::?(\d\d)(?:\.(\d+))?)?)?(Z|([+-])(\d\d):?(\d\d))?)?$/,Oe={},Ae=/((?:[^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 He=(()=>((He=He||{})[He.Short=0]="Short",He[He.ShortGMT=1]="ShortGMT",He[He.Long=2]="Long",He[He.Extended=3]="Extended",He))(),Re=(()=>((Re=Re||{})[Re.FullYear=0]="FullYear",Re[Re.Month=1]="Month",Re[Re.Date=2]="Date",Re[Re.Hours=3]="Hours",Re[Re.Minutes=4]="Minutes",Re[Re.Seconds=5]="Seconds",Re[Re.FractionalSeconds=6]="FractionalSeconds",Re[Re.Day=7]="Day",Re))(),Te=(()=>((Te=Te||{})[Te.DayPeriods=0]="DayPeriods",Te[Te.Days=1]="Days",Te[Te.Months=2]="Months",Te[Te.Eras=3]="Eras",Te))();function yt(h,C,p,T){let N=function q(h){if(X(h))return h;if("number"==typeof h&&!isNaN(h))return new Date(h);if("string"==typeof h){if(h=h.trim(),/^(\d{4}(-\d{1,2}(-\d{1,2})?)?)$/.test(h)){const[N,Q=1,de=1]=h.split("-").map(Ee=>+Ee);return jt(N,Q-1,de)}const p=parseFloat(h);if(!isNaN(h-p))return new Date(p);let T;if(T=h.match(Z))return function k(h){const C=new Date(0);let p=0,T=0;const N=h[8]?C.setUTCFullYear:C.setFullYear,Q=h[8]?C.setUTCHours:C.setHours;h[9]&&(p=Number(h[9]+h[10]),T=Number(h[9]+h[11])),N.call(C,Number(h[1]),Number(h[2])-1,Number(h[3]));const de=Number(h[4]||0)-p,Ee=Number(h[5]||0)-T,je=Number(h[6]||0),ze=Math.floor(1e3*parseFloat("0."+(h[7]||0)));return Q.call(C,de,Ee,je,ze),C}(T)}const C=new Date(h);if(!X(C))throw new Error(`Unable to convert "${h}" into a date`);return C}(h);C=Ot(p,C)||C;let Ee,de=[];for(;C;){if(Ee=Ae.exec(C),!Ee){de.push(C);break}{de=de.concat(Ee.slice(1));const Xe=de.pop();if(!Xe)break;C=Xe}}let je=N.getTimezoneOffset();T&&(je=er(T,je),N=function se(h,C,p){const T=p?-1:1,N=h.getTimezoneOffset();return function br(h,C){return(h=new Date(h.getTime())).setMinutes(h.getMinutes()+C),h}(h,T*(er(C,N)-N))}(N,T,!0));let ze="";return de.forEach(Xe=>{const We=function Lr(h){if(Vn[h])return Vn[h];let C;switch(h){case"G":case"GG":case"GGG":C=fe(Te.Eras,tt.Abbreviated);break;case"GGGG":C=fe(Te.Eras,tt.Wide);break;case"GGGGG":C=fe(Te.Eras,tt.Narrow);break;case"y":C=le(Re.FullYear,1,0,!1,!0);break;case"yy":C=le(Re.FullYear,2,0,!0,!0);break;case"yyy":C=le(Re.FullYear,3,0,!1,!0);break;case"yyyy":C=le(Re.FullYear,4,0,!1,!0);break;case"Y":C=En(1);break;case"YY":C=En(2,!0);break;case"YYY":C=En(3);break;case"YYYY":C=En(4);break;case"M":case"L":C=le(Re.Month,1,1);break;case"MM":case"LL":C=le(Re.Month,2,1);break;case"MMM":C=fe(Te.Months,tt.Abbreviated);break;case"MMMM":C=fe(Te.Months,tt.Wide);break;case"MMMMM":C=fe(Te.Months,tt.Narrow);break;case"LLL":C=fe(Te.Months,tt.Abbreviated,_t.Standalone);break;case"LLLL":C=fe(Te.Months,tt.Wide,_t.Standalone);break;case"LLLLL":C=fe(Te.Months,tt.Narrow,_t.Standalone);break;case"w":C=Xn(1);break;case"ww":C=Xn(2);break;case"W":C=Xn(1,!0);break;case"d":C=le(Re.Date,1);break;case"dd":C=le(Re.Date,2);break;case"c":case"cc":C=le(Re.Day,1);break;case"ccc":C=fe(Te.Days,tt.Abbreviated,_t.Standalone);break;case"cccc":C=fe(Te.Days,tt.Wide,_t.Standalone);break;case"ccccc":C=fe(Te.Days,tt.Narrow,_t.Standalone);break;case"cccccc":C=fe(Te.Days,tt.Short,_t.Standalone);break;case"E":case"EE":case"EEE":C=fe(Te.Days,tt.Abbreviated);break;case"EEEE":C=fe(Te.Days,tt.Wide);break;case"EEEEE":C=fe(Te.Days,tt.Narrow);break;case"EEEEEE":C=fe(Te.Days,tt.Short);break;case"a":case"aa":case"aaa":C=fe(Te.DayPeriods,tt.Abbreviated);break;case"aaaa":C=fe(Te.DayPeriods,tt.Wide);break;case"aaaaa":C=fe(Te.DayPeriods,tt.Narrow);break;case"b":case"bb":case"bbb":C=fe(Te.DayPeriods,tt.Abbreviated,_t.Standalone,!0);break;case"bbbb":C=fe(Te.DayPeriods,tt.Wide,_t.Standalone,!0);break;case"bbbbb":C=fe(Te.DayPeriods,tt.Narrow,_t.Standalone,!0);break;case"B":case"BB":case"BBB":C=fe(Te.DayPeriods,tt.Abbreviated,_t.Format,!0);break;case"BBBB":C=fe(Te.DayPeriods,tt.Wide,_t.Format,!0);break;case"BBBBB":C=fe(Te.DayPeriods,tt.Narrow,_t.Format,!0);break;case"h":C=le(Re.Hours,1,-12);break;case"hh":C=le(Re.Hours,2,-12);break;case"H":C=le(Re.Hours,1);break;case"HH":C=le(Re.Hours,2);break;case"m":C=le(Re.Minutes,1);break;case"mm":C=le(Re.Minutes,2);break;case"s":C=le(Re.Seconds,1);break;case"ss":C=le(Re.Seconds,2);break;case"S":C=le(Re.FractionalSeconds,1);break;case"SS":C=le(Re.FractionalSeconds,2);break;case"SSS":C=le(Re.FractionalSeconds,3);break;case"Z":case"ZZ":case"ZZZ":C=Dt(He.Short);break;case"ZZZZZ":C=Dt(He.Extended);break;case"O":case"OO":case"OOO":case"z":case"zz":case"zzz":C=Dt(He.ShortGMT);break;case"OOOO":case"ZZZZ":case"zzzz":C=Dt(He.Long);break;default:return null}return Vn[h]=C,C}(Xe);ze+=We?We(N,p,je):"''"===Xe?"'":Xe.replace(/(^'|'$)/g,"").replace(/''/g,"'")}),ze}function jt(h,C,p){const T=new Date(0);return T.setFullYear(h,C,p),T.setHours(0,0,0),T}function Ot(h,C){const p=function yn(h){return(0,a.cg1)(h)[a.wAp.LocaleId]}(h);if(Oe[p]=Oe[p]||{},Oe[p][C])return Oe[p][C];let T="";switch(C){case"shortDate":T=Me(h,ft.Short);break;case"mediumDate":T=Me(h,ft.Medium);break;case"longDate":T=Me(h,ft.Long);break;case"fullDate":T=Me(h,ft.Full);break;case"shortTime":T=B(h,ft.Short);break;case"mediumTime":T=B(h,ft.Medium);break;case"longTime":T=B(h,ft.Long);break;case"fullTime":T=B(h,ft.Full);break;case"short":const N=Ot(h,"shortTime"),Q=Ot(h,"shortDate");T=vn(ae(h,ft.Short),[N,Q]);break;case"medium":const de=Ot(h,"mediumTime"),Ee=Ot(h,"mediumDate");T=vn(ae(h,ft.Medium),[de,Ee]);break;case"long":const je=Ot(h,"longTime"),ze=Ot(h,"longDate");T=vn(ae(h,ft.Long),[je,ze]);break;case"full":const Xe=Ot(h,"fullTime"),We=Ot(h,"fullDate");T=vn(ae(h,ft.Full),[Xe,We])}return T&&(Oe[p][C]=T),T}function vn(h,C){return C&&(h=h.replace(/\{([^}]+)}/g,function(p,T){return null!=C&&T in C?C[T]:p})),h}function Wt(h,C,p="-",T,N){let Q="";(h<0||N&&h<=0)&&(N?h=1-h:(h=-h,Q=p));let de=String(h);for(;de.length<C;)de="0"+de;return T&&(de=de.substr(de.length-C)),Q+de}function le(h,C,p=0,T=!1,N=!1){return function(Q,de){let Ee=function U(h,C){switch(h){case Re.FullYear:return C.getFullYear();case Re.Month:return C.getMonth();case Re.Date:return C.getDate();case Re.Hours:return C.getHours();case Re.Minutes:return C.getMinutes();case Re.Seconds:return C.getSeconds();case Re.FractionalSeconds:return C.getMilliseconds();case Re.Day:return C.getDay();default:throw new Error(`Unknown DateType value "${h}".`)}}(h,Q);if((p>0||Ee>-p)&&(Ee+=p),h===Re.Hours)0===Ee&&-12===p&&(Ee=12);else if(h===Re.FractionalSeconds)return function j(h,C){return Wt(h,3).substr(0,C)}(Ee,C);const je=ke(de,Ve.MinusSign);return Wt(Ee,C,je,T,N)}}function fe(h,C,p=_t.Format,T=!1){return function(N,Q){return function Qe(h,C,p,T,N,Q){switch(p){case Te.Months:return function on(h,C,p){const T=(0,a.cg1)(h),Q=Ht([T[a.wAp.MonthsFormat],T[a.wAp.MonthsStandalone]],C);return Ht(Q,p)}(C,N,T)[h.getMonth()];case Te.Days:return function Ln(h,C,p){const T=(0,a.cg1)(h),Q=Ht([T[a.wAp.DaysFormat],T[a.wAp.DaysStandalone]],C);return Ht(Q,p)}(C,N,T)[h.getDay()];case Te.DayPeriods:const de=h.getHours(),Ee=h.getMinutes();if(Q){const ze=function fn(h){const C=(0,a.cg1)(h);return nn(C),(C[a.wAp.ExtraData][2]||[]).map(T=>"string"==typeof T?Gn(T):[Gn(T[0]),Gn(T[1])])}(C),Xe=function Bt(h,C,p){const T=(0,a.cg1)(h);nn(T);const Q=Ht([T[a.wAp.ExtraData][0],T[a.wAp.ExtraData][1]],C)||[];return Ht(Q,p)||[]}(C,N,T),We=ze.findIndex(Ct=>{if(Array.isArray(Ct)){const[pt,Et]=Ct,Ut=de>=pt.hours&&Ee>=pt.minutes,un=de<Et.hours||de===Et.hours&&Ee<Et.minutes;if(pt.hours<Et.hours){if(Ut&&un)return!0}else if(Ut||un)return!0}else if(Ct.hours===de&&Ct.minutes===Ee)return!0;return!1});if(-1!==We)return Xe[We]}return function dn(h,C,p){const T=(0,a.cg1)(h),Q=Ht([T[a.wAp.DayPeriodsFormat],T[a.wAp.DayPeriodsStandalone]],C);return Ht(Q,p)}(C,N,T)[de<12?0:1];case Te.Eras:return function St(h,C){return Ht((0,a.cg1)(h)[a.wAp.Eras],C)}(C,T)[h.getFullYear()<=0?0:1];default:throw new Error(`unexpected translation type ${p}`)}}(N,Q,h,C,p,T)}}function Dt(h){return function(C,p,T){const N=-1*T,Q=ke(p,Ve.MinusSign),de=N>0?Math.floor(N/60):Math.ceil(N/60);switch(h){case He.Short:return(N>=0?"+":"")+Wt(de,2,Q)+Wt(Math.abs(N%60),2,Q);case He.ShortGMT:return"GMT"+(N>=0?"+":"")+Wt(de,1,Q);case He.Long:return"GMT"+(N>=0?"+":"")+Wt(de,2,Q)+":"+Wt(Math.abs(N%60),2,Q);case He.Extended:return 0===T?"Z":(N>=0?"+":"")+Wt(de,2,Q)+":"+Wt(Math.abs(N%60),2,Q);default:throw new Error(`Unknown zone width "${h}"`)}}}function zn(h){return jt(h.getFullYear(),h.getMonth(),h.getDate()+(4-h.getDay()))}function Xn(h,C=!1){return function(p,T){let N;if(C){const Q=new Date(p.getFullYear(),p.getMonth(),1).getDay()-1,de=p.getDate();N=1+Math.floor((de+Q)/7)}else{const Q=zn(p),de=function an(h){const C=jt(h,0,1).getDay();return jt(h,0,1+(C<=4?4:11)-C)}(Q.getFullYear()),Ee=Q.getTime()-de.getTime();N=1+Math.round(Ee/6048e5)}return Wt(N,h,ke(T,Ve.MinusSign))}}function En(h,C=!1){return function(p,T){return Wt(zn(p).getFullYear(),h,ke(T,Ve.MinusSign),C)}}const Vn={};function er(h,C){h=h.replace(/:/g,"");const p=Date.parse("Jan 01, 1970 00:00:00 "+h)/6e4;return isNaN(p)?C:p}function X(h){return h instanceof Date&&!isNaN(h.valueOf())}const pe=/^(\d+)?\.((\d+)(-(\d+))?)?$/;function ut(h){const C=parseInt(h);if(isNaN(C))throw new Error("Invalid integer literal when parsing "+h);return C}class kt{}let Rn=(()=>{class h extends kt{constructor(p){super(),this.locale=p}getPluralCategory(p,T){switch(Mt(T||this.locale)(p)){case rt.Zero:return"zero";case rt.One:return"one";case rt.Two:return"two";case rt.Few:return"few";case rt.Many:return"many";default:return"other"}}}return h.\u0275fac=function(p){return new(p||h)(a.LFG(a.soG))},h.\u0275prov=a.Yz7({token:h,factory:h.\u0275fac}),h})();function Bn(h,C){C=encodeURIComponent(C);for(const p of h.split(";")){const T=p.indexOf("="),[N,Q]=-1==T?[p,""]:[p.slice(0,T),p.slice(T+1)];if(N.trim()===C)return decodeURIComponent(Q)}return null}let $t=(()=>{class h{constructor(p,T,N,Q){this._iterableDiffers=p,this._keyValueDiffers=T,this._ngEl=N,this._renderer=Q,this._iterableDiffer=null,this._keyValueDiffer=null,this._initialClasses=[],this._rawClass=null}set klass(p){this._removeClasses(this._initialClasses),this._initialClasses="string"==typeof p?p.split(/\s+/):[],this._applyClasses(this._initialClasses),this._applyClasses(this._rawClass)}set ngClass(p){this._removeClasses(this._rawClass),this._applyClasses(this._initialClasses),this._iterableDiffer=null,this._keyValueDiffer=null,this._rawClass="string"==typeof p?p.split(/\s+/):p,this._rawClass&&((0,a.sIi)(this._rawClass)?this._iterableDiffer=this._iterableDiffers.find(this._rawClass).create():this._keyValueDiffer=this._keyValueDiffers.find(this._rawClass).create())}ngDoCheck(){if(this._iterableDiffer){const p=this._iterableDiffer.diff(this._rawClass);p&&this._applyIterableChanges(p)}else if(this._keyValueDiffer){const p=this._keyValueDiffer.diff(this._rawClass);p&&this._applyKeyValueChanges(p)}}_applyKeyValueChanges(p){p.forEachAddedItem(T=>this._toggleClass(T.key,T.currentValue)),p.forEachChangedItem(T=>this._toggleClass(T.key,T.currentValue)),p.forEachRemovedItem(T=>{T.previousValue&&this._toggleClass(T.key,!1)})}_applyIterableChanges(p){p.forEachAddedItem(T=>{if("string"!=typeof T.item)throw new Error(`NgClass can only toggle CSS classes expressed as strings, got ${(0,a.AaK)(T.item)}`);this._toggleClass(T.item,!0)}),p.forEachRemovedItem(T=>this._toggleClass(T.item,!1))}_applyClasses(p){p&&(Array.isArray(p)||p instanceof Set?p.forEach(T=>this._toggleClass(T,!0)):Object.keys(p).forEach(T=>this._toggleClass(T,!!p[T])))}_removeClasses(p){p&&(Array.isArray(p)||p instanceof Set?p.forEach(T=>this._toggleClass(T,!1)):Object.keys(p).forEach(T=>this._toggleClass(T,!1)))}_toggleClass(p,T){(p=p.trim())&&p.split(/\s+/g).forEach(N=>{T?this._renderer.addClass(this._ngEl.nativeElement,N):this._renderer.removeClass(this._ngEl.nativeElement,N)})}}return h.\u0275fac=function(p){return new(p||h)(a.Y36(a.ZZ4),a.Y36(a.aQg),a.Y36(a.SBq),a.Y36(a.Qsj))},h.\u0275dir=a.lG2({type:h,selectors:[["","ngClass",""]],inputs:{klass:["class","klass"],ngClass:"ngClass"}}),h})(),rr=(()=>{class h{constructor(p){this._viewContainerRef=p,this._componentRef=null,this._moduleRef=null}ngOnChanges(p){if(this._viewContainerRef.clear(),this._componentRef=null,this.ngComponentOutlet){const T=this.ngComponentOutletInjector||this._viewContainerRef.parentInjector;if(p.ngComponentOutletNgModuleFactory)if(this._moduleRef&&this._moduleRef.destroy(),this.ngComponentOutletNgModuleFactory){const de=T.get(a.h0i);this._moduleRef=this.ngComponentOutletNgModuleFactory.create(de.injector)}else this._moduleRef=null;const Q=(this._moduleRef?this._moduleRef.componentFactoryResolver:T.get(a._Vd)).resolveComponentFactory(this.ngComponentOutlet);this._componentRef=this._viewContainerRef.createComponent(Q,this._viewContainerRef.length,T,this.ngComponentOutletContent)}}ngOnDestroy(){this._moduleRef&&this._moduleRef.destroy()}}return h.\u0275fac=function(p){return new(p||h)(a.Y36(a.s_b))},h.\u0275dir=a.lG2({type:h,selectors:[["","ngComponentOutlet",""]],inputs:{ngComponentOutlet:"ngComponentOutlet",ngComponentOutletInjector:"ngComponentOutletInjector",ngComponentOutletContent:"ngComponentOutletContent",ngComponentOutletNgModuleFactory:"ngComponentOutletNgModuleFactory"},features:[a.TTD]}),h})();class gr{constructor(C,p,T,N){this.$implicit=C,this.ngForOf=p,this.index=T,this.count=N}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 ct=(()=>{class h{constructor(p,T,N){this._viewContainer=p,this._template=T,this._differs=N,this._ngForOf=null,this._ngForOfDirty=!0,this._differ=null}set ngForOf(p){this._ngForOf=p,this._ngForOfDirty=!0}set ngForTrackBy(p){this._trackByFn=p}get ngForTrackBy(){return this._trackByFn}set ngForTemplate(p){p&&(this._template=p)}ngDoCheck(){if(this._ngForOfDirty){this._ngForOfDirty=!1;const p=this._ngForOf;!this._differ&&p&&(this._differ=this._differs.find(p).create(this.ngForTrackBy))}if(this._differ){const p=this._differ.diff(this._ngForOf);p&&this._applyChanges(p)}}_applyChanges(p){const T=this._viewContainer;p.forEachOperation((N,Q,de)=>{if(null==N.previousIndex)T.createEmbeddedView(this._template,new gr(N.item,this._ngForOf,-1,-1),null===de?void 0:de);else if(null==de)T.remove(null===Q?void 0:Q);else if(null!==Q){const Ee=T.get(Q);T.move(Ee,de),Fn(Ee,N)}});for(let N=0,Q=T.length;N<Q;N++){const Ee=T.get(N).context;Ee.index=N,Ee.count=Q,Ee.ngForOf=this._ngForOf}p.forEachIdentityChange(N=>{Fn(T.get(N.currentIndex),N)})}static ngTemplateContextGuard(p,T){return!0}}return h.\u0275fac=function(p){return new(p||h)(a.Y36(a.s_b),a.Y36(a.Rgc),a.Y36(a.ZZ4))},h.\u0275dir=a.lG2({type:h,selectors:[["","ngFor","","ngForOf",""]],inputs:{ngForOf:"ngForOf",ngForTrackBy:"ngForTrackBy",ngForTemplate:"ngForTemplate"}}),h})();function Fn(h,C){h.context.$implicit=C.item}let Gt=(()=>{class h{constructor(p,T){this._viewContainer=p,this._context=new kn,this._thenTemplateRef=null,this._elseTemplateRef=null,this._thenViewRef=null,this._elseViewRef=null,this._thenTemplateRef=T}set ngIf(p){this._context.$implicit=this._context.ngIf=p,this._updateView()}set ngIfThen(p){en("ngIfThen",p),this._thenTemplateRef=p,this._thenViewRef=null,this._updateView()}set ngIfElse(p){en("ngIfElse",p),this._elseTemplateRef=p,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(p,T){return!0}}return h.\u0275fac=function(p){return new(p||h)(a.Y36(a.s_b),a.Y36(a.Rgc))},h.\u0275dir=a.lG2({type:h,selectors:[["","ngIf",""]],inputs:{ngIf:"ngIf",ngIfThen:"ngIfThen",ngIfElse:"ngIfElse"}}),h})();class kn{constructor(){this.$implicit=null,this.ngIf=null}}function en(h,C){if(C&&!C.createEmbeddedView)throw new Error(`${h} must be a TemplateRef, but received '${(0,a.AaK)(C)}'.`)}class Zn{constructor(C,p){this._viewContainerRef=C,this._templateRef=p,this._created=!1}create(){this._created=!0,this._viewContainerRef.createEmbeddedView(this._templateRef)}destroy(){this._created=!1,this._viewContainerRef.clear()}enforceState(C){C&&!this._created?this.create():!C&&this._created&&this.destroy()}}let sr=(()=>{class h{constructor(){this._defaultUsed=!1,this._caseCount=0,this._lastCaseCheckIndex=0,this._lastCasesMatched=!1}set ngSwitch(p){this._ngSwitch=p,0===this._caseCount&&this._updateDefaultCases(!0)}_addCase(){return this._caseCount++}_addDefault(p){this._defaultViews||(this._defaultViews=[]),this._defaultViews.push(p)}_matchCase(p){const T=p==this._ngSwitch;return this._lastCasesMatched=this._lastCasesMatched||T,this._lastCaseCheckIndex++,this._lastCaseCheckIndex===this._caseCount&&(this._updateDefaultCases(!this._lastCasesMatched),this._lastCaseCheckIndex=0,this._lastCasesMatched=!1),T}_updateDefaultCases(p){if(this._defaultViews&&p!==this._defaultUsed){this._defaultUsed=p;for(let T=0;T<this._defaultViews.length;T++)this._defaultViews[T].enforceState(p)}}}return h.\u0275fac=function(p){return new(p||h)},h.\u0275dir=a.lG2({type:h,selectors:[["","ngSwitch",""]],inputs:{ngSwitch:"ngSwitch"}}),h})(),sn=(()=>{class h{constructor(p,T,N){this.ngSwitch=N,N._addCase(),this._view=new Zn(p,T)}ngDoCheck(){this._view.enforceState(this.ngSwitch._matchCase(this.ngSwitchCase))}}return h.\u0275fac=function(p){return new(p||h)(a.Y36(a.s_b),a.Y36(a.Rgc),a.Y36(sr,9))},h.\u0275dir=a.lG2({type:h,selectors:[["","ngSwitchCase",""]],inputs:{ngSwitchCase:"ngSwitchCase"}}),h})(),At=(()=>{class h{constructor(p,T,N){N._addDefault(new Zn(p,T))}}return h.\u0275fac=function(p){return new(p||h)(a.Y36(a.s_b),a.Y36(a.Rgc),a.Y36(sr,9))},h.\u0275dir=a.lG2({type:h,selectors:[["","ngSwitchDefault",""]]}),h})(),Dn=(()=>{class h{constructor(p,T,N){this._ngEl=p,this._differs=T,this._renderer=N,this._ngStyle=null,this._differ=null}set ngStyle(p){this._ngStyle=p,!this._differ&&p&&(this._differ=this._differs.find(p).create())}ngDoCheck(){if(this._differ){const p=this._differ.diff(this._ngStyle);p&&this._applyChanges(p)}}_setStyle(p,T){const[N,Q]=p.split(".");null!=(T=null!=T&&Q?`${T}${Q}`:T)?this._renderer.setStyle(this._ngEl.nativeElement,N,T):this._renderer.removeStyle(this._ngEl.nativeElement,N)}_applyChanges(p){p.forEachRemovedItem(T=>this._setStyle(T.key,null)),p.forEachAddedItem(T=>this._setStyle(T.key,T.currentValue)),p.forEachChangedItem(T=>this._setStyle(T.key,T.currentValue))}}return h.\u0275fac=function(p){return new(p||h)(a.Y36(a.SBq),a.Y36(a.aQg),a.Y36(a.Qsj))},h.\u0275dir=a.lG2({type:h,selectors:[["","ngStyle",""]],inputs:{ngStyle:"ngStyle"}}),h})(),yr=(()=>{class h{constructor(p){this._viewContainerRef=p,this._viewRef=null,this.ngTemplateOutletContext=null,this.ngTemplateOutlet=null}ngOnChanges(p){if(p.ngTemplateOutlet){const T=this._viewContainerRef;this._viewRef&&T.remove(T.indexOf(this._viewRef)),this._viewRef=this.ngTemplateOutlet?T.createEmbeddedView(this.ngTemplateOutlet,this.ngTemplateOutletContext):null}else this._viewRef&&p.ngTemplateOutletContext&&this.ngTemplateOutletContext&&(this._viewRef.context=this.ngTemplateOutletContext)}}return h.\u0275fac=function(p){return new(p||h)(a.Y36(a.s_b))},h.\u0275dir=a.lG2({type:h,selectors:[["","ngTemplateOutlet",""]],inputs:{ngTemplateOutletContext:"ngTemplateOutletContext",ngTemplateOutlet:"ngTemplateOutlet"},features:[a.TTD]}),h})();function ln(h,C){return new a.vHH(2100,"")}class Qt{createSubscription(C,p){return C.subscribe({next:p,error:T=>{throw T}})}dispose(C){C.unsubscribe()}onDestroy(C){C.unsubscribe()}}class jn{createSubscription(C,p){return C.then(p,T=>{throw T})}dispose(C){}onDestroy(C){}}const Rs=new jn,ps=new Qt;let qr=(()=>{class h{constructor(p){this._ref=p,this._latestValue=null,this._subscription=null,this._obj=null,this._strategy=null}ngOnDestroy(){this._subscription&&this._dispose()}transform(p){return this._obj?p!==this._obj?(this._dispose(),this.transform(p)):this._latestValue:(p&&this._subscribe(p),this._latestValue)}_subscribe(p){this._obj=p,this._strategy=this._selectStrategy(p),this._subscription=this._strategy.createSubscription(p,T=>this._updateLatestValue(p,T))}_selectStrategy(p){if((0,a.QGY)(p))return Rs;if((0,a.F4k)(p))return ps;throw ln()}_dispose(){this._strategy.dispose(this._subscription),this._latestValue=null,this._subscription=null,this._obj=null}_updateLatestValue(p,T){p===this._obj&&(this._latestValue=T,this._ref.markForCheck())}}return h.\u0275fac=function(p){return new(p||h)(a.Y36(a.sBO,16))},h.\u0275pipe=a.Yjl({name:"async",type:h,pure:!1}),h})();const As=new a.OlP("DATE_PIPE_DEFAULT_TIMEZONE");let vr=(()=>{class h{constructor(p,T){this.locale=p,this.defaultTimezone=T}transform(p,T="mediumDate",N,Q){var de;if(null==p||""===p||p!=p)return null;try{return yt(p,T,Q||this.locale,null!==(de=null!=N?N:this.defaultTimezone)&&void 0!==de?de:void 0)}catch(Ee){throw ln()}}}return h.\u0275fac=function(p){return new(p||h)(a.Y36(a.soG,16),a.Y36(As,24))},h.\u0275pipe=a.Yjl({name:"date",type:h,pure:!0}),h})(),Br=(()=>{class h{constructor(p){this._locale=p}transform(p,T,N){if(!function Mr(h){return!(null==h||""===h||h!=h)}(p))return null;N=N||this._locale;try{return function nr(h,C,p){return function wn(h,C,p,T,N,Q,de=!1){let Ee="",je=!1;if(isFinite(h)){let ze=function gn(h){let T,N,Q,de,Ee,C=Math.abs(h)+"",p=0;for((N=C.indexOf("."))>-1&&(C=C.replace(".","")),(Q=C.search(/e/i))>0?(N<0&&(N=Q),N+=+C.slice(Q+1),C=C.substring(0,Q)):N<0&&(N=C.length),Q=0;"0"===C.charAt(Q);Q++);if(Q===(Ee=C.length))T=[0],N=1;else{for(Ee--;"0"===C.charAt(Ee);)Ee--;for(N-=Q,T=[],de=0;Q<=Ee;Q++,de++)T[de]=Number(C.charAt(Q))}return N>22&&(T=T.splice(0,21),p=N-1,N=1),{digits:T,exponent:p,integerLen:N}}(h);de&&(ze=function wr(h){if(0===h.digits[0])return h;const C=h.digits.length-h.integerLen;return h.exponent?h.exponent+=2:(0===C?h.digits.push(0,0):1===C&&h.digits.push(0),h.integerLen+=2),h}(ze));let Xe=C.minInt,We=C.minFrac,Ct=C.maxFrac;if(Q){const _=Q.match(pe);if(null===_)throw new Error(`${Q} is not a valid digit info`);const y=_[1],O=_[3],me=_[5];null!=y&&(Xe=ut(y)),null!=O&&(We=ut(O)),null!=me?Ct=ut(me):null!=O&&We>Ct&&(Ct=We)}!function Be(h,C,p){if(C>p)throw new Error(`The minimum number of digits after fraction (${C}) is higher than the maximum (${p}).`);let T=h.digits,N=T.length-h.integerLen;const Q=Math.min(Math.max(C,N),p);let de=Q+h.integerLen,Ee=T[de];if(de>0){T.splice(Math.max(h.integerLen,de));for(let We=de;We<T.length;We++)T[We]=0}else{N=Math.max(0,N),h.integerLen=1,T.length=Math.max(1,de=Q+1),T[0]=0;for(let We=1;We<de;We++)T[We]=0}if(Ee>=5)if(de-1<0){for(let We=0;We>de;We--)T.unshift(0),h.integerLen++;T.unshift(1),h.integerLen++}else T[de-1]++;for(;N<Math.max(0,Q);N++)T.push(0);let je=0!==Q;const ze=C+h.integerLen,Xe=T.reduceRight(function(We,Ct,pt,Et){return Et[pt]=(Ct+=We)<10?Ct:Ct-10,je&&(0===Et[pt]&&pt>=ze?Et.pop():je=!1),Ct>=10?1:0},0);Xe&&(T.unshift(Xe),h.integerLen++)}(ze,We,Ct);let pt=ze.digits,Et=ze.integerLen;const Ut=ze.exponent;let un=[];for(je=pt.every(_=>!_);Et<Xe;Et++)pt.unshift(0);for(;Et<0;Et++)pt.unshift(0);Et>0?un=pt.splice(Et,pt.length):(un=pt,pt=[0]);const b=[];for(pt.length>=C.lgSize&&b.unshift(pt.splice(-C.lgSize,pt.length).join(""));pt.length>C.gSize;)b.unshift(pt.splice(-C.gSize,pt.length).join(""));pt.length&&b.unshift(pt.join("")),Ee=b.join(ke(p,T)),un.length&&(Ee+=ke(p,N)+un.join("")),Ut&&(Ee+=ke(p,Ve.Exponential)+"+"+Ut)}else Ee=ke(p,Ve.Infinity);return Ee=h<0&&!je?C.negPre+Ee+C.negSuf:C.posPre+Ee+C.posSuf,Ee}(h,function Yt(h,C="-"){const p={minInt:1,minFrac:0,maxFrac:0,posPre:"",posSuf:"",negPre:"",negSuf:"",gSize:0,lgSize:0},T=h.split(";"),N=T[0],Q=T[1],de=-1!==N.indexOf(".")?N.split("."):[N.substring(0,N.lastIndexOf("0")+1),N.substring(N.lastIndexOf("0")+1)],Ee=de[0],je=de[1]||"";p.posPre=Ee.substr(0,Ee.indexOf("#"));for(let Xe=0;Xe<je.length;Xe++){const We=je.charAt(Xe);"0"===We?p.minFrac=p.maxFrac=Xe+1:"#"===We?p.maxFrac=Xe+1:p.posSuf+=We}const ze=Ee.split(",");if(p.gSize=ze[1]?ze[1].length:0,p.lgSize=ze[2]||ze[1]?(ze[2]||ze[1]).length:0,Q){const Xe=N.length-p.posPre.length-p.posSuf.length,We=Q.indexOf("#");p.negPre=Q.substr(0,We).replace(/'/g,""),p.negSuf=Q.substr(We+Xe).replace(/'/g,"")}else p.negPre=C+p.posPre,p.negSuf=p.posSuf;return p}(function nt(h,C){return(0,a.cg1)(h)[a.wAp.NumberFormats][C]}(C,ht.Decimal),ke(C,Ve.MinusSign)),C,Ve.Group,Ve.Decimal,p)}(function Xr(h){if("string"==typeof h&&!isNaN(Number(h)-parseFloat(h)))return Number(h);if("number"!=typeof h)throw new Error(`${h} is not a number`);return h}(p),N,T)}catch(Q){throw ln()}}}return h.\u0275fac=function(p){return new(p||h)(a.Y36(a.soG,16))},h.\u0275pipe=a.Yjl({name:"number",type:h,pure:!0}),h})();let Is=(()=>{class h{transform(p,T,N){if(null==p)return null;if(!this.supports(p))throw ln();return p.slice(T,N)}supports(p){return"string"==typeof p||Array.isArray(p)}}return h.\u0275fac=function(p){return new(p||h)},h.\u0275pipe=a.Yjl({name:"slice",type:h,pure:!1}),h})(),es=(()=>{class h{}return h.\u0275fac=function(p){return new(p||h)},h.\u0275mod=a.oAB({type:h}),h.\u0275inj=a.cJS({providers:[{provide:kt,useClass:Rn}]}),h})();const qn="browser";function ts(h){return h===qn}let I=(()=>{class h{}return h.\u0275prov=(0,a.Yz7)({token:h,providedIn:"root",factory:()=>new l((0,a.LFG)(K),window)}),h})();class l{constructor(C,p){this.document=C,this.window=p,this.offset=()=>[0,0]}setOffset(C){this.offset=Array.isArray(C)?()=>C:C}getScrollPosition(){return this.supportsScrolling()?[this.window.pageXOffset,this.window.pageYOffset]:[0,0]}scrollToPosition(C){this.supportsScrolling()&&this.window.scrollTo(C[0],C[1])}scrollToAnchor(C){if(!this.supportsScrolling())return;const p=function D(h,C){const p=h.getElementById(C)||h.getElementsByName(C)[0];if(p)return p;if("function"==typeof h.createTreeWalker&&h.body&&(h.body.createShadowRoot||h.body.attachShadow)){const T=h.createTreeWalker(h.body,NodeFilter.SHOW_ELEMENT);let N=T.currentNode;for(;N;){const Q=N.shadowRoot;if(Q){const de=Q.getElementById(C)||Q.querySelector(`[name="${C}"]`);if(de)return de}N=T.nextNode()}}return null}(this.document,C);p&&(this.scrollToElement(p),p.focus())}setHistoryScrollRestoration(C){if(this.supportScrollRestoration()){const p=this.window.history;p&&p.scrollRestoration&&(p.scrollRestoration=C)}}scrollToElement(C){const p=C.getBoundingClientRect(),T=p.left+this.window.pageXOffset,N=p.top+this.window.pageYOffset,Q=this.offset();this.window.scrollTo(T-Q[0],N-Q[1])}supportScrollRestoration(){try{if(!this.supportsScrolling())return!1;const C=c(this.window.history)||c(Object.getPrototypeOf(this.window.history));return!(!C||!C.writable&&!C.set)}catch(C){return!1}}supportsScrolling(){try{return!!this.window&&!!this.window.scrollTo&&"pageXOffset"in this.window}catch(C){return!1}}}function c(h){return Object.getOwnPropertyDescriptor(h,"scrollRestoration")}class R{}},520:(Ye,ve,x)=>{x.d(ve,{TP:()=>yn,eN:()=>Ve,JF:()=>Ht,WM:()=>$});var a=x(9808),v=x(6435),re=x(1086),ue=x(2916),V=x(1406),Y=x(2198),K=x(4850);class ee{}class J{}class ${constructor(G){this.normalizedNames=new Map,this.lazyUpdate=null,G?this.lazyInit="string"==typeof G?()=>{this.headers=new Map,G.split("\n").forEach(Z=>{const Oe=Z.indexOf(":");if(Oe>0){const Ae=Z.slice(0,Oe),He=Ae.toLowerCase(),Re=Z.slice(Oe+1).trim();this.maybeSetNormalizedName(Ae,He),this.headers.has(He)?this.headers.get(He).push(Re):this.headers.set(He,[Re])}})}:()=>{this.headers=new Map,Object.keys(G).forEach(Z=>{let Oe=G[Z];const Ae=Z.toLowerCase();"string"==typeof Oe&&(Oe=[Oe]),Oe.length>0&&(this.headers.set(Ae,Oe),this.maybeSetNormalizedName(Z,Ae))})}:this.headers=new Map}has(G){return this.init(),this.headers.has(G.toLowerCase())}get(G){this.init();const Z=this.headers.get(G.toLowerCase());return Z&&Z.length>0?Z[0]:null}keys(){return this.init(),Array.from(this.normalizedNames.values())}getAll(G){return this.init(),this.headers.get(G.toLowerCase())||null}append(G,Z){return this.clone({name:G,value:Z,op:"a"})}set(G,Z){return this.clone({name:G,value:Z,op:"s"})}delete(G,Z){return this.clone({name:G,value:Z,op:"d"})}maybeSetNormalizedName(G,Z){this.normalizedNames.has(Z)||this.normalizedNames.set(Z,G)}init(){this.lazyInit&&(this.lazyInit instanceof $?this.copyFrom(this.lazyInit):this.lazyInit(),this.lazyInit=null,this.lazyUpdate&&(this.lazyUpdate.forEach(G=>this.applyUpdate(G)),this.lazyUpdate=null))}copyFrom(G){G.init(),Array.from(G.headers.keys()).forEach(Z=>{this.headers.set(Z,G.headers.get(Z)),this.normalizedNames.set(Z,G.normalizedNames.get(Z))})}clone(G){const Z=new $;return Z.lazyInit=this.lazyInit&&this.lazyInit instanceof $?this.lazyInit:this,Z.lazyUpdate=(this.lazyUpdate||[]).concat([G]),Z}applyUpdate(G){const Z=G.name.toLowerCase();switch(G.op){case"a":case"s":let Oe=G.value;if("string"==typeof Oe&&(Oe=[Oe]),0===Oe.length)return;this.maybeSetNormalizedName(G.name,Z);const Ae=("a"===G.op?this.headers.get(Z):void 0)||[];Ae.push(...Oe),this.headers.set(Z,Ae);break;case"d":const He=G.value;if(He){let Re=this.headers.get(Z);if(!Re)return;Re=Re.filter(Te=>-1===He.indexOf(Te)),0===Re.length?(this.headers.delete(Z),this.normalizedNames.delete(Z)):this.headers.set(Z,Re)}else this.headers.delete(Z),this.normalizedNames.delete(Z)}}forEach(G){this.init(),Array.from(this.normalizedNames.keys()).forEach(Z=>G(this.normalizedNames.get(Z),this.headers.get(Z)))}}class W{encodeKey(G){return Se(G)}encodeValue(G){return Se(G)}decodeKey(G){return decodeURIComponent(G)}decodeValue(G){return decodeURIComponent(G)}}const oe=/%(\d[a-f0-9])/gi,Ie={40:"@","3A":":",24:"$","2C":",","3B":";","2B":"+","3D":"=","3F":"?","2F":"/"};function Se(ie){return encodeURIComponent(ie).replace(oe,(G,Z)=>{var Oe;return null!==(Oe=Ie[Z])&&void 0!==Oe?Oe:G})}function ge(ie){return`${ie}`}class he{constructor(G={}){if(this.updates=null,this.cloneFrom=null,this.encoder=G.encoder||new W,G.fromString){if(G.fromObject)throw new Error("Cannot specify both fromString and fromObject.");this.map=function ce(ie,G){const Z=new Map;return ie.length>0&&ie.replace(/^\?/,"").split("&").forEach(Ae=>{const He=Ae.indexOf("="),[Re,Te]=-1==He?[G.decodeKey(Ae),""]:[G.decodeKey(Ae.slice(0,He)),G.decodeValue(Ae.slice(He+1))],yt=Z.get(Re)||[];yt.push(Te),Z.set(Re,yt)}),Z}(G.fromString,this.encoder)}else G.fromObject?(this.map=new Map,Object.keys(G.fromObject).forEach(Z=>{const Oe=G.fromObject[Z];this.map.set(Z,Array.isArray(Oe)?Oe:[Oe])})):this.map=null}has(G){return this.init(),this.map.has(G)}get(G){this.init();const Z=this.map.get(G);return Z?Z[0]:null}getAll(G){return this.init(),this.map.get(G)||null}keys(){return this.init(),Array.from(this.map.keys())}append(G,Z){return this.clone({param:G,value:Z,op:"a"})}appendAll(G){const Z=[];return Object.keys(G).forEach(Oe=>{const Ae=G[Oe];Array.isArray(Ae)?Ae.forEach(He=>{Z.push({param:Oe,value:He,op:"a"})}):Z.push({param:Oe,value:Ae,op:"a"})}),this.clone(Z)}set(G,Z){return this.clone({param:G,value:Z,op:"s"})}delete(G,Z){return this.clone({param:G,value:Z,op:"d"})}toString(){return this.init(),this.keys().map(G=>{const Z=this.encoder.encodeKey(G);return this.map.get(G).map(Oe=>Z+"="+this.encoder.encodeValue(Oe)).join("&")}).filter(G=>""!==G).join("&")}clone(G){const Z=new he({encoder:this.encoder});return Z.cloneFrom=this.cloneFrom||this,Z.updates=(this.updates||[]).concat(G),Z}init(){null===this.map&&(this.map=new Map),null!==this.cloneFrom&&(this.cloneFrom.init(),this.cloneFrom.keys().forEach(G=>this.map.set(G,this.cloneFrom.map.get(G))),this.updates.forEach(G=>{switch(G.op){case"a":case"s":const Z=("a"===G.op?this.map.get(G.param):void 0)||[];Z.push(ge(G.value)),this.map.set(G.param,Z);break;case"d":if(void 0===G.value){this.map.delete(G.param);break}{let Oe=this.map.get(G.param)||[];const Ae=Oe.indexOf(ge(G.value));-1!==Ae&&Oe.splice(Ae,1),Oe.length>0?this.map.set(G.param,Oe):this.map.delete(G.param)}}}),this.cloneFrom=this.updates=null)}}class Ne{constructor(){this.map=new Map}set(G,Z){return this.map.set(G,Z),this}get(G){return this.map.has(G)||this.map.set(G,G.defaultValue()),this.map.get(G)}delete(G){return this.map.delete(G),this}has(G){return this.map.has(G)}keys(){return this.map.keys()}}function _e(ie){return"undefined"!=typeof ArrayBuffer&&ie instanceof ArrayBuffer}function te(ie){return"undefined"!=typeof Blob&&ie instanceof Blob}function Ge(ie){return"undefined"!=typeof FormData&&ie instanceof FormData}class dt{constructor(G,Z,Oe,Ae){let He;if(this.url=Z,this.body=null,this.reportProgress=!1,this.withCredentials=!1,this.responseType="json",this.method=G.toUpperCase(),function ye(ie){switch(ie){case"DELETE":case"GET":case"HEAD":case"OPTIONS":case"JSONP":return!1;default:return!0}}(this.method)||Ae?(this.body=void 0!==Oe?Oe:null,He=Ae):He=Oe,He&&(this.reportProgress=!!He.reportProgress,this.withCredentials=!!He.withCredentials,He.responseType&&(this.responseType=He.responseType),He.headers&&(this.headers=He.headers),He.context&&(this.context=He.context),He.params&&(this.params=He.params)),this.headers||(this.headers=new $),this.context||(this.context=new Ne),this.params){const Re=this.params.toString();if(0===Re.length)this.urlWithParams=Z;else{const Te=Z.indexOf("?");this.urlWithParams=Z+(-1===Te?"?":Te<Z.length-1?"&":"")+Re}}else this.params=new he,this.urlWithParams=Z}serializeBody(){return null===this.body?null:_e(this.body)||te(this.body)||Ge(this.body)||function wt(ie){return"undefined"!=typeof URLSearchParams&&ie instanceof URLSearchParams}(this.body)||"string"==typeof this.body?this.body:this.body instanceof he?this.body.toString():"object"==typeof this.body||"boolean"==typeof this.body||Array.isArray(this.body)?JSON.stringify(this.body):this.body.toString()}detectContentTypeHeader(){return null===this.body||Ge(this.body)?null:te(this.body)?this.body.type||null:_e(this.body)?null:"string"==typeof this.body?"text/plain":this.body instanceof he?"application/x-www-form-urlencoded;charset=UTF-8":"object"==typeof this.body||"number"==typeof this.body||"boolean"==typeof this.body?"application/json":null}clone(G={}){var Z;const Oe=G.method||this.method,Ae=G.url||this.url,He=G.responseType||this.responseType,Re=void 0!==G.body?G.body:this.body,Te=void 0!==G.withCredentials?G.withCredentials:this.withCredentials,yt=void 0!==G.reportProgress?G.reportProgress:this.reportProgress;let jt=G.headers||this.headers,Ot=G.params||this.params;const vn=null!==(Z=G.context)&&void 0!==Z?Z:this.context;return void 0!==G.setHeaders&&(jt=Object.keys(G.setHeaders).reduce((Wt,j)=>Wt.set(j,G.setHeaders[j]),jt)),G.setParams&&(Ot=Object.keys(G.setParams).reduce((Wt,j)=>Wt.set(j,G.setParams[j]),Ot)),new dt(Oe,Ae,Re,{params:Ot,headers:jt,context:vn,reportProgress:yt,responseType:He,withCredentials:Te})}}var ot=(()=>((ot=ot||{})[ot.Sent=0]="Sent",ot[ot.UploadProgress=1]="UploadProgress",ot[ot.ResponseHeader=2]="ResponseHeader",ot[ot.DownloadProgress=3]="DownloadProgress",ot[ot.Response=4]="Response",ot[ot.User=5]="User",ot))();class ht{constructor(G,Z=200,Oe="OK"){this.headers=G.headers||new $,this.status=void 0!==G.status?G.status:Z,this.statusText=G.statusText||Oe,this.url=G.url||null,this.ok=this.status>=200&&this.status<300}}class rt extends ht{constructor(G={}){super(G),this.type=ot.ResponseHeader}clone(G={}){return new rt({headers:G.headers||this.headers,status:void 0!==G.status?G.status:this.status,statusText:G.statusText||this.statusText,url:G.url||this.url||void 0})}}class _t extends ht{constructor(G={}){super(G),this.type=ot.Response,this.body=void 0!==G.body?G.body:null}clone(G={}){return new _t({body:void 0!==G.body?G.body:this.body,headers:G.headers||this.headers,status:void 0!==G.status?G.status:this.status,statusText:G.statusText||this.statusText,url:G.url||this.url||void 0})}}class tt extends ht{constructor(G){super(G,0,"Unknown Error"),this.name="HttpErrorResponse",this.ok=!1,this.message=this.status>=200&&this.status<300?`Http failure during parsing for ${G.url||"(unknown url)"}`:`Http failure response for ${G.url||"(unknown url)"}: ${G.status} ${G.statusText}`,this.error=G.error||null}}function ft(ie,G){return{body:G,headers:ie.headers,context:ie.context,observe:ie.observe,params:ie.params,reportProgress:ie.reportProgress,responseType:ie.responseType,withCredentials:ie.withCredentials}}let Ve=(()=>{class ie{constructor(Z){this.handler=Z}request(Z,Oe,Ae={}){let He;if(Z instanceof dt)He=Z;else{let yt,jt;yt=Ae.headers instanceof $?Ae.headers:new $(Ae.headers),Ae.params&&(jt=Ae.params instanceof he?Ae.params:new he({fromObject:Ae.params})),He=new dt(Z,Oe,void 0!==Ae.body?Ae.body:null,{headers:yt,context:Ae.context,params:jt,reportProgress:Ae.reportProgress,responseType:Ae.responseType||"json",withCredentials:Ae.withCredentials})}const Re=(0,re.of)(He).pipe((0,V.b)(yt=>this.handler.handle(yt)));if(Z instanceof dt||"events"===Ae.observe)return Re;const Te=Re.pipe((0,Y.h)(yt=>yt instanceof _t));switch(Ae.observe||"body"){case"body":switch(He.responseType){case"arraybuffer":return Te.pipe((0,K.U)(yt=>{if(null!==yt.body&&!(yt.body instanceof ArrayBuffer))throw new Error("Response is not an ArrayBuffer.");return yt.body}));case"blob":return Te.pipe((0,K.U)(yt=>{if(null!==yt.body&&!(yt.body instanceof Blob))throw new Error("Response is not a Blob.");return yt.body}));case"text":return Te.pipe((0,K.U)(yt=>{if(null!==yt.body&&"string"!=typeof yt.body)throw new Error("Response is not a string.");return yt.body}));default:return Te.pipe((0,K.U)(yt=>yt.body))}case"response":return Te;default:throw new Error(`Unreachable: unhandled observe type ${Ae.observe}}`)}}delete(Z,Oe={}){return this.request("DELETE",Z,Oe)}get(Z,Oe={}){return this.request("GET",Z,Oe)}head(Z,Oe={}){return this.request("HEAD",Z,Oe)}jsonp(Z,Oe){return this.request("JSONP",Z,{params:(new he).append(Oe,"JSONP_CALLBACK"),observe:"body",responseType:"json"})}options(Z,Oe={}){return this.request("OPTIONS",Z,Oe)}patch(Z,Oe,Ae={}){return this.request("PATCH",Z,ft(Ae,Oe))}post(Z,Oe,Ae={}){return this.request("POST",Z,ft(Ae,Oe))}put(Z,Oe,Ae={}){return this.request("PUT",Z,ft(Ae,Oe))}}return ie.\u0275fac=function(Z){return new(Z||ie)(v.LFG(ee))},ie.\u0275prov=v.Yz7({token:ie,factory:ie.\u0275fac}),ie})();class Cn{constructor(G,Z){this.next=G,this.interceptor=Z}handle(G){return this.interceptor.intercept(G,this.next)}}const yn=new v.OlP("HTTP_INTERCEPTORS");let dn=(()=>{class ie{intercept(Z,Oe){return Oe.handle(Z)}}return ie.\u0275fac=function(Z){return new(Z||ie)},ie.\u0275prov=v.Yz7({token:ie,factory:ie.\u0275fac}),ie})();const ae=/^\)\]\}',?\n/;let nt=(()=>{class ie{constructor(Z){this.xhrFactory=Z}handle(Z){if("JSONP"===Z.method)throw new Error("Attempted to construct Jsonp request without HttpClientJsonpModule installed.");return new ue.y(Oe=>{const Ae=this.xhrFactory.build();if(Ae.open(Z.method,Z.urlWithParams),Z.withCredentials&&(Ae.withCredentials=!0),Z.headers.forEach((j,le)=>Ae.setRequestHeader(j,le.join(","))),Z.headers.has("Accept")||Ae.setRequestHeader("Accept","application/json, text/plain, */*"),!Z.headers.has("Content-Type")){const j=Z.detectContentTypeHeader();null!==j&&Ae.setRequestHeader("Content-Type",j)}if(Z.responseType){const j=Z.responseType.toLowerCase();Ae.responseType="json"!==j?j:"text"}const He=Z.serializeBody();let Re=null;const Te=()=>{if(null!==Re)return Re;const j=1223===Ae.status?204:Ae.status,le=Ae.statusText||"OK",U=new $(Ae.getAllResponseHeaders()),fe=function ke(ie){return"responseURL"in ie&&ie.responseURL?ie.responseURL:/^X-Request-URL:/m.test(ie.getAllResponseHeaders())?ie.getResponseHeader("X-Request-URL"):null}(Ae)||Z.url;return Re=new rt({headers:U,status:j,statusText:le,url:fe}),Re},yt=()=>{let{headers:j,status:le,statusText:U,url:fe}=Te(),Qe=null;204!==le&&(Qe=void 0===Ae.response?Ae.responseText:Ae.response),0===le&&(le=Qe?200:0);let Dt=le>=200&&le<300;if("json"===Z.responseType&&"string"==typeof Qe){const at=Qe;Qe=Qe.replace(ae,"");try{Qe=""!==Qe?JSON.parse(Qe):null}catch(Tt){Qe=at,Dt&&(Dt=!1,Qe={error:Tt,text:Qe})}}Dt?(Oe.next(new _t({body:Qe,headers:j,status:le,statusText:U,url:fe||void 0})),Oe.complete()):Oe.error(new tt({error:Qe,headers:j,status:le,statusText:U,url:fe||void 0}))},jt=j=>{const{url:le}=Te(),U=new tt({error:j,status:Ae.status||0,statusText:Ae.statusText||"Unknown Error",url:le||void 0});Oe.error(U)};let Ot=!1;const vn=j=>{Ot||(Oe.next(Te()),Ot=!0);let le={type:ot.DownloadProgress,loaded:j.loaded};j.lengthComputable&&(le.total=j.total),"text"===Z.responseType&&!!Ae.responseText&&(le.partialText=Ae.responseText),Oe.next(le)},Wt=j=>{let le={type:ot.UploadProgress,loaded:j.loaded};j.lengthComputable&&(le.total=j.total),Oe.next(le)};return Ae.addEventListener("load",yt),Ae.addEventListener("error",jt),Ae.addEventListener("timeout",jt),Ae.addEventListener("abort",jt),Z.reportProgress&&(Ae.addEventListener("progress",vn),null!==He&&Ae.upload&&Ae.upload.addEventListener("progress",Wt)),Ae.send(He),Oe.next({type:ot.Sent}),()=>{Ae.removeEventListener("error",jt),Ae.removeEventListener("abort",jt),Ae.removeEventListener("load",yt),Ae.removeEventListener("timeout",jt),Z.reportProgress&&(Ae.removeEventListener("progress",vn),null!==He&&Ae.upload&&Ae.upload.removeEventListener("progress",Wt)),Ae.readyState!==Ae.DONE&&Ae.abort()}})}}return ie.\u0275fac=function(Z){return new(Z||ie)(v.LFG(a.JF))},ie.\u0275prov=v.Yz7({token:ie,factory:ie.\u0275fac}),ie})();const gt=new v.OlP("XSRF_COOKIE_NAME"),Vt=new v.OlP("XSRF_HEADER_NAME");class Nt{}let hn=(()=>{class ie{constructor(Z,Oe,Ae){this.doc=Z,this.platform=Oe,this.cookieName=Ae,this.lastCookieString="",this.lastToken=null,this.parseCount=0}getToken(){if("server"===this.platform)return null;const Z=this.doc.cookie||"";return Z!==this.lastCookieString&&(this.parseCount++,this.lastToken=(0,a.Mx)(Z,this.cookieName),this.lastCookieString=Z),this.lastToken}}return ie.\u0275fac=function(Z){return new(Z||ie)(v.LFG(a.K0),v.LFG(v.Lbi),v.LFG(gt))},ie.\u0275prov=v.Yz7({token:ie,factory:ie.\u0275fac}),ie})(),Mt=(()=>{class ie{constructor(Z,Oe){this.tokenService=Z,this.headerName=Oe}intercept(Z,Oe){const Ae=Z.url.toLowerCase();if("GET"===Z.method||"HEAD"===Z.method||Ae.startsWith("http://")||Ae.startsWith("https://"))return Oe.handle(Z);const He=this.tokenService.getToken();return null!==He&&!Z.headers.has(this.headerName)&&(Z=Z.clone({headers:Z.headers.set(this.headerName,He)})),Oe.handle(Z)}}return ie.\u0275fac=function(Z){return new(Z||ie)(v.LFG(Nt),v.LFG(Vt))},ie.\u0275prov=v.Yz7({token:ie,factory:ie.\u0275fac}),ie})(),nn=(()=>{class ie{constructor(Z,Oe){this.backend=Z,this.injector=Oe,this.chain=null}handle(Z){if(null===this.chain){const Oe=this.injector.get(yn,[]);this.chain=Oe.reduceRight((Ae,He)=>new Cn(Ae,He),this.backend)}return this.chain.handle(Z)}}return ie.\u0275fac=function(Z){return new(Z||ie)(v.LFG(J),v.LFG(v.zs3))},ie.\u0275prov=v.Yz7({token:ie,factory:ie.\u0275fac}),ie})(),In=(()=>{class ie{static disable(){return{ngModule:ie,providers:[{provide:Mt,useClass:dn}]}}static withOptions(Z={}){return{ngModule:ie,providers:[Z.cookieName?{provide:gt,useValue:Z.cookieName}:[],Z.headerName?{provide:Vt,useValue:Z.headerName}:[]]}}}return ie.\u0275fac=function(Z){return new(Z||ie)},ie.\u0275mod=v.oAB({type:ie}),ie.\u0275inj=v.cJS({providers:[Mt,{provide:yn,useExisting:Mt,multi:!0},{provide:Nt,useClass:hn},{provide:gt,useValue:"XSRF-TOKEN"},{provide:Vt,useValue:"X-XSRF-TOKEN"}]}),ie})(),Ht=(()=>{class ie{}return ie.\u0275fac=function(Z){return new(Z||ie)},ie.\u0275mod=v.oAB({type:ie}),ie.\u0275inj=v.cJS({providers:[Ve,{provide:ee,useClass:nn},nt,{provide:J,useExisting:nt}],imports:[[In.withOptions({cookieName:"XSRF-TOKEN",headerName:"X-XSRF-TOKEN"})]]}),ie})()},6435:(Ye,ve,x)=>{x.d(ve,{deG:()=>$g,tb:()=>gg,AFp:()=>hg,ip1:()=>Yu,CZH:()=>Yi,hGG:()=>eb,z2F:()=>Fo,sBO:()=>OE,Sil:()=>Ku,_Vd:()=>Ao,aQ5:()=>Gg,EJc:()=>yg,SBq:()=>Io,qLn:()=>po,vpe:()=>Ms,L6J:()=>lE,gxx:()=>_a,tBr:()=>ao,XFs:()=>ie,OlP:()=>Mn,zs3:()=>Wr,IIB:()=>oE,ZZ4:()=>Ba,aQg:()=>ja,soG:()=>La,YKP:()=>yp,h0i:()=>Gi,PXZ:()=>bE,R0b:()=>Fr,FiY:()=>Zs,r_U:()=>aE,Lbi:()=>pg,g9A:()=>fg,n_E:()=>Pa,Qsj:()=>cC,FYo:()=>fp,JOm:()=>Es,q3G:()=>xn,tp0:()=>vi,Rgc:()=>No,dDg:()=>Dg,GfV:()=>pp,i9L:()=>zg,s_b:()=>Na,ifc:()=>Ot,eFA:()=>bg,G48:()=>IE,Gpc:()=>ge,f3M:()=>im,_c5:()=>YE,VLi:()=>DE,c2e:()=>mg,zSh:()=>Yl,wAp:()=>lt,vHH:()=>ye,EiD:()=>Bc,mCW:()=>uo,qzn:()=>Ci,JVY:()=>wm,pB0:()=>Am,eBb:()=>Sm,L6k:()=>Tm,LAX:()=>Mm,cg1:()=>Tu,kL8:()=>Lf,yhl:()=>Pc,dqk:()=>U,sIi:()=>Do,CqO:()=>Gh,QGY:()=>hu,F4k:()=>$h,RDi:()=>C,AaK:()=>oe,z3N:()=>Os,qOj:()=>Jl,TTD:()=>qn,_Bn:()=>cp,xp6:()=>Cd,uIk:()=>tu,Tol:()=>hf,Gre:()=>Mf,ekj:()=>_u,Suo:()=>Gp,Xpm:()=>er,lG2:()=>vt,Yz7:()=>gt,cJS:()=>Nt,oAB:()=>X,Yjl:()=>Rt,Y36:()=>Eo,_UZ:()=>jh,GkF:()=>Uh,BQk:()=>du,ynx:()=>cu,qZA:()=>uu,TgZ:()=>lu,EpF:()=>Hh,n5z:()=>as,Ikx:()=>bu,LFG:()=>Kn,$8M:()=>Pr,$Z:()=>Bh,NdJ:()=>fu,CRH:()=>zp,kcU:()=>zo,O4$:()=>Go,oxw:()=>Yh,ALo:()=>xp,lcZ:()=>Np,xi3:()=>Rp,Dn7:()=>Fp,gM2:()=>kp,Hsn:()=>Kh,F$t:()=>qh,Q6J:()=>ou,s9C:()=>mu,DdM:()=>Cp,VKq:()=>Ep,WLB:()=>bp,kEZ:()=>wp,l5B:()=>Tp,qbA:()=>Sp,iGM:()=>Hp,MAs:()=>Ah,Jf7:()=>Kc,CHM:()=>Sn,oJD:()=>jc,LSH:()=>ul,kYT:()=>pe,Udp:()=>vu,WFA:()=>pu,d8E:()=>wu,YNc:()=>Mh,W1O:()=>Kp,_uU:()=>_f,Oqu:()=>Cu,hij:()=>wa,AsE:()=>Eu,Gf:()=>$p});var a=x(8929),v=x(2654),re=x(2916),ue=x(6787),V=x(1762);class K{constructor(t,n){this.subjectFactory=t,this.selector=n}call(t,n){const{selector:r}=this,s=this.subjectFactory(),i=r(s).subscribe(t);return i.add(n.subscribe(s)),i}}var ee=x(4327);function J(){return new a.xQ}function W(e){for(let t in e)if(e[t]===W)return t;throw Error("Could not find renamed property on target object.")}function ce(e,t){for(const n in t)t.hasOwnProperty(n)&&!e.hasOwnProperty(n)&&(e[n]=t[n])}function oe(e){if("string"==typeof e)return e;if(Array.isArray(e))return"["+e.map(oe).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 Ie(e,t){return null==e||""===e?null===t?"":t:null==t||""===t?e:e+" "+t}const Se=W({__forward_ref__:W});function ge(e){return e.__forward_ref__=ge,e.toString=function(){return oe(this())},e}function he(e){return Fe(e)?e():e}function Fe(e){return"function"==typeof e&&e.hasOwnProperty(Se)&&e.__forward_ref__===ge}class ye extends Error{constructor(t,n){super(function _e(e,t){return`NG0${Math.abs(e)}${t?": "+t:""}`}(t,n)),this.code=t}}function te(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():te(e)}function ht(e,t){const n=t?` in ${t}`:"";throw new ye(-201,`No provider for ${Ge(e)} found${n}`)}function Me(e,t){null==e&&function B(e,t,n,r){throw new Error(`ASSERTION ERROR: ${e}`+(null==r?"":` [Expected=> ${n} ${r} ${t} <=Actual]`))}(t,e,null,"!=")}function gt(e){return{token:e.token,providedIn:e.providedIn||null,factory:e.factory,value:void 0}}function Nt(e){return{providers:e.providers||[],imports:e.imports||[]}}function hn(e){return Mt(e,In)||Mt(e,Gn)}function Mt(e,t){return e.hasOwnProperty(t)?e[t]:null}function Bt(e){return e&&(e.hasOwnProperty(Ht)||e.hasOwnProperty(Jt))?e[Ht]:null}const In=W({\u0275prov:W}),Ht=W({\u0275inj:W}),Gn=W({ngInjectableDef:W}),Jt=W({ngInjectorDef:W});var ie=(()=>((ie=ie||{})[ie.Default=0]="Default",ie[ie.Host=1]="Host",ie[ie.Self=2]="Self",ie[ie.SkipSelf=4]="SkipSelf",ie[ie.Optional=8]="Optional",ie))();let G;function Oe(e){const t=G;return G=e,t}function Ae(e,t,n){const r=hn(e);return r&&"root"==r.providedIn?void 0===r.value?r.value=r.factory():r.value:n&ie.Optional?null:void 0!==t?t:void ht(oe(e),"Injector")}function Re(e){return{toString:e}.toString()}var Te=(()=>((Te=Te||{})[Te.OnPush=0]="OnPush",Te[Te.Default=1]="Default",Te))(),Ot=(()=>{return(e=Ot||(Ot={}))[e.Emulated=0]="Emulated",e[e.None=2]="None",e[e.ShadowDom=3]="ShadowDom",Ot;var e})();const vn="undefined"!=typeof globalThis&&globalThis,Wt="undefined"!=typeof window&&window,j="undefined"!=typeof self&&"undefined"!=typeof WorkerGlobalScope&&self instanceof WorkerGlobalScope&&self,U=vn||"undefined"!=typeof global&&global||Wt||j,Dt={},at=[],Tt=W({\u0275cmp:W}),an=W({\u0275dir:W}),zn=W({\u0275pipe:W}),Xn=W({\u0275mod:W}),En=W({\u0275fac:W}),Vn=W({__NG_ELEMENT_ID__:W});let Lr=0;function er(e){return Re(()=>{const n={},r={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===Te.OnPush,directiveDefs:null,pipeDefs:null,selectors:e.selectors||at,viewQuery:e.viewQuery||null,features:e.features||null,data:e.data||{},encapsulation:e.encapsulation||Ot.Emulated,id:"c",styles:e.styles||at,_:null,setInput:null,schemas:e.schemas||null,tView:null},s=e.directives,i=e.features,o=e.pipes;return r.id+=Lr++,r.inputs=Je(e.inputs,n),r.outputs=Je(e.outputs),i&&i.forEach(f=>f(r)),r.directiveDefs=s?()=>("function"==typeof s?s():s).map(se):null,r.pipeDefs=o?()=>("function"==typeof o?o():o).map(q):null,r})}function se(e){return Pt(e)||function On(e){return e[an]||null}(e)}function q(e){return function bn(e){return e[zn]||null}(e)}const k={};function X(e){return Re(()=>{const t={type:e.type,bootstrap:e.bootstrap||at,declarations:e.declarations||at,imports:e.imports||at,exports:e.exports||at,transitiveCompileScopes:null,schemas:e.schemas||null,id:e.id||null};return null!=e.id&&(k[e.id]=e.type),t})}function pe(e,t){return Re(()=>{const n=pn(e,!0);n.declarations=t.declarations||at,n.imports=t.imports||at,n.exports=t.exports||at})}function Je(e,t){if(null==e)return Dt;const n={};for(const r in e)if(e.hasOwnProperty(r)){let s=e[r],i=s;Array.isArray(s)&&(i=s[1],s=s[0]),n[s]=r,t&&(t[s]=i)}return n}const vt=er;function Rt(e){return{type:e.type,name:e.name,factory:null,pure:!1!==e.pure,onDestroy:e.type.prototype.ngOnDestroy||null}}function Pt(e){return e[Tt]||null}function pn(e,t){const n=e[Xn]||null;if(!n&&!0===t)throw new Error(`Type ${oe(e)} does not have '\u0275mod' property.`);return n}function mn(e){return Array.isArray(e)&&"object"==typeof e[1]}function Dn(e){return Array.isArray(e)&&!0===e[1]}function yr(e){return 0!=(8&e.flags)}function ir(e){return 2==(2&e.flags)}function ln(e){return 1==(1&e.flags)}function Qt(e){return null!==e.template}function jn(e){return 0!=(512&e[2])}function cr(e,t){return e.hasOwnProperty(En)?e[En]:null}class es{constructor(t,n,r){this.previousValue=t,this.currentValue=n,this.firstChange=r}isFirstChange(){return this.firstChange}}function qn(){return jr}function jr(e){return e.type.prototype.ngOnChanges&&(e.setInput=Ur),dr}function dr(){const e=ns(this),t=null==e?void 0:e.current;if(t){const n=e.previous;if(n===Dt)e.previous=t;else for(let r in t)n[r]=t[r];e.current=null,this.ngOnChanges(t)}}function Ur(e,t,n,r){const s=ns(e)||function Ar(e,t){return e[ts]=t}(e,{previous:Dt,current:null}),i=s.current||(s.current={}),o=s.previous,f=this.declaredInputs[n],m=o[f];i[f]=new es(m&&m.currentValue,t,o===Dt),e[r]=t}qn.ngInherit=!0;const ts="__ngSimpleChanges__";function ns(e){return e[ts]||null}const l="svg",D="math";let h;function C(e){h=e}function p(){return void 0!==h?h:"undefined"!=typeof document?document:void 0}function N(e){return!!e.listen}const Q={createRenderer:(e,t)=>p()};function Ee(e){for(;Array.isArray(e);)e=e[0];return e}function Xe(e,t){return Ee(t[e])}function We(e,t){return Ee(t[e.index])}function pt(e,t){return e.data[t]}function Et(e,t){return e[t]}function Ut(e,t){const n=t[e];return mn(n)?n:n[0]}function un(e){return 4==(4&e[2])}function b(e){return 128==(128&e[2])}function y(e,t){return null==t?null:e[t]}function O(e){e[18]=0}function me(e,t){e[5]+=t;let n=e,r=e[3];for(;null!==r&&(1===t&&1===n[5]||-1===t&&0===n[5]);)r[5]+=t,n=r,r=r[3]}const Pe={lFrame:Ho(null),bindingsEnabled:!0,isInCheckNoChangesMode:!1};function qe(){return Pe.bindingsEnabled}function Ce(){return Pe.lFrame.lView}function mt(){return Pe.lFrame.tView}function Sn(e){return Pe.lFrame.contextLView=e,e[8]}function qt(){let e=Xt();for(;null!==e&&64===e.type;)e=e.parent;return e}function Xt(){return Pe.lFrame.currentTNode}function Er(e,t){const n=Pe.lFrame;n.currentTNode=e,n.isParent=t}function Pn(){return Pe.lFrame.isParent}function Or(){Pe.lFrame.isParent=!1}function vs(){return Pe.isInCheckNoChangesMode}function ri(e){Pe.isInCheckNoChangesMode=e}function Qn(){const e=Pe.lFrame;let t=e.bindingRootIndex;return-1===t&&(t=e.bindingRootIndex=e.tView.bindingStartIndex),t}function ks(){return Pe.lFrame.bindingIndex++}function os(e){const t=Pe.lFrame,n=t.bindingIndex;return t.bindingIndex=t.bindingIndex+e,n}function Ha(e,t){const n=Pe.lFrame;n.bindingIndex=n.bindingRootIndex=e,Vo(t)}function Vo(e){Pe.lFrame.currentDirectiveIndex=e}function si(e){const t=Pe.lFrame.currentDirectiveIndex;return-1===t?null:e[t]}function Ki(){return Pe.lFrame.currentQueryIndex}function ii(e){Pe.lFrame.currentQueryIndex=e}function Bo(e){const t=e[1];return 2===t.type?t.declTNode:1===t.type?e[6]:null}function jo(e,t,n){if(n&ie.SkipSelf){let s=t,i=e;for(;!(s=s.parent,null!==s||n&ie.Host||(s=Bo(i),null===s||(i=i[15],10&s.type))););if(null===s)return!1;t=s,e=i}const r=Pe.lFrame=Uo();return r.currentTNode=t,r.lView=e,!0}function oi(e){const t=Uo(),n=e[1];Pe.lFrame=t,t.currentTNode=n.firstChild,t.lView=e,t.tView=n,t.contextLView=e,t.bindingIndex=n.bindingStartIndex,t.inI18n=!1}function Uo(){const e=Pe.lFrame,t=null===e?null:e.child;return null===t?Ho(e):t}function Ho(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 Zi(){const e=Pe.lFrame;return Pe.lFrame=e.parent,e.currentTNode=null,e.lView=null,e}const $o=Zi;function Ls(){const e=Zi();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 Jn(){return Pe.lFrame.selectedIndex}function $r(e){Pe.lFrame.selectedIndex=e}function cn(){const e=Pe.lFrame;return pt(e.tView,e.selectedIndex)}function Go(){Pe.lFrame.currentNamespace=l}function zo(){!function Wa(){Pe.lFrame.currentNamespace=null}()}function ai(e,t){for(let n=t.directiveStart,r=t.directiveEnd;n<r;n++){const i=e.data[n].type.prototype,{ngAfterContentInit:o,ngAfterContentChecked:f,ngAfterViewInit:m,ngAfterViewChecked:S,ngOnDestroy:M}=i;o&&(e.contentHooks||(e.contentHooks=[])).push(-n,o),f&&((e.contentHooks||(e.contentHooks=[])).push(n,f),(e.contentCheckHooks||(e.contentCheckHooks=[])).push(n,f)),m&&(e.viewHooks||(e.viewHooks=[])).push(-n,m),S&&((e.viewHooks||(e.viewHooks=[])).push(n,S),(e.viewCheckHooks||(e.viewCheckHooks=[])).push(n,S)),null!=M&&(e.destroyHooks||(e.destroyHooks=[])).push(n,M)}}function Un(e,t,n){ui(e,t,3,n)}function li(e,t,n,r){(3&e[2])===n&&ui(e,t,n,r)}function Vs(e,t){let n=e[2];(3&n)===t&&(n&=2047,n+=1,e[2]=n)}function ui(e,t,n,r){const i=null!=r?r:-1,o=t.length-1;let f=0;for(let m=void 0!==r?65535&e[18]:0;m<o;m++)if("number"==typeof t[m+1]){if(f=t[m],null!=r&&f>=r)break}else t[m]<0&&(e[18]+=65536),(f<i||-1==i)&&(ci(e,n,t,m),e[18]=(4294901760&e[18])+m+2),m++}function ci(e,t,n,r){const s=n[r]<0,i=n[r+1],f=e[s?-n[r]:n[r]];if(s){if(e[2]>>11<e[18]>>16&&(3&e[2])===t){e[2]+=2048;try{i.call(f)}finally{}}}else try{i.call(f)}finally{}}class Bs{constructor(t,n,r){this.factory=t,this.resolving=!1,this.canSeeViewProviders=n,this.injectImpl=r}}function Ks(e,t,n){const r=N(e);let s=0;for(;s<n.length;){const i=n[s];if("number"==typeof i){if(0!==i)break;s++;const o=n[s++],f=n[s++],m=n[s++];r?e.setAttribute(t,f,m,o):t.setAttributeNS(o,f,m)}else{const o=i,f=n[++s];Ji(o)?r&&e.setProperty(t,o,f):r?e.setAttribute(t,o,f):t.setAttribute(o,f),s++}}return s}function Ko(e){return 3===e||4===e||6===e}function Ji(e){return 64===e.charCodeAt(0)}function hi(e,t){if(null!==t&&0!==t.length)if(null===e||0===e.length)e=t.slice();else{let n=-1;for(let r=0;r<t.length;r++){const s=t[r];"number"==typeof s?n=s:0===n||Zo(e,n,s,null,-1===n||2===n?t[++r]:null)}}return e}function Zo(e,t,n,r,s){let i=0,o=e.length;if(-1===t)o=-1;else for(;i<e.length;){const f=e[i++];if("number"==typeof f){if(f===t){o=-1;break}if(f>t){o=i-1;break}}}for(;i<e.length;){const f=e[i];if("number"==typeof f)break;if(f===n){if(null===r)return void(null!==s&&(e[i+1]=s));if(r===e[i+1])return void(e[i+2]=s)}i++,null!==r&&i++,null!==s&&i++}-1!==o&&(e.splice(o,0,t),i=o+1),e.splice(i++,0,n),null!==r&&e.splice(i++,0,r),null!==s&&e.splice(i++,0,s)}function Qo(e){return-1!==e}function Us(e){return 32767&e}function Hs(e,t){let n=function Jo(e){return e>>16}(e),r=t;for(;n>0;)r=r[15],n--;return r}let Xi=!0;function fi(e){const t=Xi;return Xi=e,t}let na=0;function pi(e,t){const n=d(e,t);if(-1!==n)return n;const r=t[1];r.firstCreatePass&&(e.injectorIndex=t.length,g(r.data,e),g(t,null),g(r.blueprint,null));const s=u(e,t),i=e.injectorIndex;if(Qo(s)){const o=Us(s),f=Hs(s,t),m=f[1].data;for(let S=0;S<8;S++)t[i+S]=f[o+S]|m[o+S]}return t[i+8]=s,i}function g(e,t){e.push(0,0,0,0,0,0,0,0,t)}function d(e,t){return-1===e.injectorIndex||e.parent&&e.parent.injectorIndex===e.injectorIndex||null===t[e.injectorIndex+8]?-1:e.injectorIndex}function u(e,t){if(e.parent&&-1!==e.parent.injectorIndex)return e.parent.injectorIndex;let n=0,r=null,s=t;for(;null!==s;){const i=s[1],o=i.type;if(r=2===o?i.declTNode:1===o?s[6]:null,null===r)return-1;if(n++,s=s[15],-1!==r.injectorIndex)return r.injectorIndex|n<<16}return-1}function E(e,t,n){!function Ka(e,t,n){let r;"string"==typeof n?r=n.charCodeAt(0)||0:n.hasOwnProperty(Vn)&&(r=n[Vn]),null==r&&(r=n[Vn]=na++);const s=255&r;t.data[e+(s>>5)]|=1<<s}(e,t,n)}function P(e,t,n){if(n&ie.Optional)return e;ht(t,"NodeInjector")}function L(e,t,n,r){if(n&ie.Optional&&void 0===r&&(r=null),0==(n&(ie.Self|ie.Host))){const s=e[9],i=Oe(void 0);try{return s?s.get(t,r,n&ie.Optional):Ae(t,r,n&ie.Optional)}finally{Oe(i)}}return P(r,t,n)}function z(e,t,n,r=ie.Default,s){if(null!==e){const i=function Kt(e){if("string"==typeof e)return e.charCodeAt(0)||0;const t=e.hasOwnProperty(Vn)?e[Vn]:void 0;return"number"==typeof t?t>=0?255&t:Ke:t}(n);if("function"==typeof i){if(!jo(t,e,r))return r&ie.Host?P(s,n,r):L(t,n,r,s);try{const o=i(r);if(null!=o||r&ie.Optional)return o;ht(n)}finally{$o()}}else if("number"==typeof i){let o=null,f=d(e,t),m=-1,S=r&ie.Host?t[16][6]:null;for((-1===f||r&ie.SkipSelf)&&(m=-1===f?u(e,t):t[f+8],-1!==m&&Gr(r,!1)?(o=t[1],f=Us(m),t=Hs(m,t)):f=-1);-1!==f;){const M=t[1];if($s(i,f,M.data)){const F=Ft(f,t,n,o,r,S);if(F!==De)return F}m=t[f+8],-1!==m&&Gr(r,t[1].data[f+8]===S)&&$s(i,f,t)?(o=M,f=Us(m),t=Hs(m,t)):f=-1}}}return L(t,n,r,s)}const De={};function Ke(){return new or(qt(),Ce())}function Ft(e,t,n,r,s,i){const o=t[1],f=o.data[e+8],M=et(f,o,n,null==r?ir(f)&&Xi:r!=o&&0!=(3&f.type),s&ie.Host&&i===f);return null!==M?Lt(t,o,M,f):De}function et(e,t,n,r,s){const i=e.providerIndexes,o=t.data,f=1048575&i,m=e.directiveStart,M=i>>20,H=s?f+M:e.directiveEnd;for(let ne=r?f:f+M;ne<H;ne++){const be=o[ne];if(ne<m&&n===be||ne>=m&&be.type===n)return ne}if(s){const ne=o[m];if(ne&&Qt(ne)&&ne.type===n)return m}return null}function Lt(e,t,n,r){let s=e[n];const i=t.data;if(function qa(e){return e instanceof Bs}(s)){const o=s;o.resolving&&function wt(e,t){const n=t?`. Dependency path: ${t.join(" > ")} > ${e}`:"";throw new ye(-200,`Circular dependency in DI detected for ${e}${n}`)}(Ge(i[n]));const f=fi(o.canSeeViewProviders);o.resolving=!0;const m=o.injectImpl?Oe(o.injectImpl):null;jo(e,r,ie.Default);try{s=e[n]=o.factory(void 0,i,e,r),t.firstCreatePass&&n>=r.directiveStart&&function Ya(e,t,n){const{ngOnChanges:r,ngOnInit:s,ngDoCheck:i}=t.type.prototype;if(r){const o=jr(t);(n.preOrderHooks||(n.preOrderHooks=[])).push(e,o),(n.preOrderCheckHooks||(n.preOrderCheckHooks=[])).push(e,o)}s&&(n.preOrderHooks||(n.preOrderHooks=[])).push(0-e,s),i&&((n.preOrderHooks||(n.preOrderHooks=[])).push(e,i),(n.preOrderCheckHooks||(n.preOrderCheckHooks=[])).push(e,i))}(n,i[n],t)}finally{null!==m&&Oe(m),fi(f),o.resolving=!1,$o()}}return s}function $s(e,t,n){return!!(n[t+(e>>5)]&1<<e)}function Gr(e,t){return!(e&ie.Self||e&ie.Host&&t)}class or{constructor(t,n){this._tNode=t,this._lView=n}get(t,n,r){return z(this._tNode,this._lView,t,r,n)}}function as(e){return Re(()=>{const t=e.prototype.constructor,n=t[En]||Gs(t),r=Object.prototype;let s=Object.getPrototypeOf(e.prototype).constructor;for(;s&&s!==r;){const i=s[En]||Gs(s);if(i&&i!==n)return i;s=Object.getPrototypeOf(s)}return i=>new i})}function Gs(e){return Fe(e)?()=>{const t=Gs(he(e));return t&&t()}:cr(e)}function Pr(e){return function w(e,t){if("class"===t)return e.classes;if("style"===t)return e.styles;const n=e.attrs;if(n){const r=n.length;let s=0;for(;s<r;){const i=n[s];if(Ko(i))break;if(0===i)s+=2;else if("number"==typeof i)for(s++;s<r&&"string"==typeof n[s];)s++;else{if(i===t)return n[s+1];s+=2}}}return null}(qt(),e)}const zs="__parameters__",gi="__prop__metadata__";function Za(e){return function(...n){if(e){const r=e(...n);for(const s in r)this[s]=r[s]}}}function mi(e,t,n){return Re(()=>{const r=Za(t);function s(...i){if(this instanceof s)return r.apply(this,i),this;const o=new s(...i);return f.annotation=o,f;function f(m,S,M){const F=m.hasOwnProperty(zs)?m[zs]:Object.defineProperty(m,zs,{value:[]})[zs];for(;F.length<=M;)F.push(null);return(F[M]=F[M]||[]).push(o),m}}return n&&(s.prototype=Object.create(n.prototype)),s.prototype.ngMetadataName=e,s.annotationCls=s,s})}function eo(e,t,n,r){return Re(()=>{const s=Za(t);function i(...o){if(this instanceof i)return s.apply(this,o),this;const f=new i(...o);return function m(S,M){const F=S.constructor,H=F.hasOwnProperty(gi)?F[gi]:Object.defineProperty(F,gi,{value:{}})[gi];H[M]=H.hasOwnProperty(M)&&H[M]||[],H[M].unshift(f),r&&r(S,M,...o)}}return n&&(i.prototype=Object.create(n.prototype)),i.prototype.ngMetadataName=e,i.annotationCls=i,i})}class Mn{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=gt({token:this,providedIn:n.providedIn||"root",factory:n.factory}))}toString(){return`InjectionToken ${this._desc}`}}const $g=new Mn("AnalyzeForEntryComponents");class gc{}const Gg=eo("ContentChild",(e,t={})=>Object.assign({selector:e,first:!0,isViewQuery:!1,descendants:!0},t),gc),zg=eo("ViewChild",(e,t)=>Object.assign({selector:e,first:!0,isViewQuery:!0,descendants:!0},t),gc);function zr(e,t){void 0===t&&(t=e);for(let n=0;n<e.length;n++){let r=e[n];Array.isArray(r)?(t===e&&(t=e.slice(0,n)),zr(r,t)):t!==e&&t.push(r)}return t}function _s(e,t){e.forEach(n=>Array.isArray(n)?_s(n,t):t(n))}function mc(e,t,n){t>=e.length?e.push(n):e.splice(t,0,n)}function ra(e,t){return t>=e.length-1?e.pop():e.splice(t,1)[0]}function ro(e,t){const n=[];for(let r=0;r<e;r++)n.push(t);return n}function Nr(e,t,n){let r=yi(e,t);return r>=0?e[1|r]=n:(r=~r,function qg(e,t,n,r){let s=e.length;if(s==t)e.push(n,r);else if(1===s)e.push(r,e[0]),e[0]=n;else{for(s--,e.push(e[s-1],e[s]);s>t;)e[s]=e[s-2],s--;e[t]=n,e[t+1]=r}}(e,r,t,n)),r}function Ja(e,t){const n=yi(e,t);if(n>=0)return e[1|n]}function yi(e,t){return function _c(e,t,n){let r=0,s=e.length>>n;for(;s!==r;){const i=r+(s-r>>1),o=e[i<<n];if(t===o)return i<<n;o>t?s=i:r=i+1}return~(s<<n)}(e,t,1)}const so={},el="__NG_DI_FLAG__",ia="ngTempTokenPath",tm=/\n/gm,Cc="__source",rm=W({provide:String,useValue:W});let io;function Ec(e){const t=io;return io=e,t}function sm(e,t=ie.Default){if(void 0===io)throw new ye(203,"");return null===io?Ae(e,void 0,t):io.get(e,t&ie.Optional?null:void 0,t)}function Kn(e,t=ie.Default){return(function Z(){return G}()||sm)(he(e),t)}const im=Kn;function tl(e){const t=[];for(let n=0;n<e.length;n++){const r=he(e[n]);if(Array.isArray(r)){if(0===r.length)throw new ye(900,"");let s,i=ie.Default;for(let o=0;o<r.length;o++){const f=r[o],m=om(f);"number"==typeof m?-1===m?s=f.token:i|=m:s=f}t.push(Kn(s,i))}else t.push(Kn(r))}return t}function oo(e,t){return e[el]=t,e.prototype[el]=t,e}function om(e){return e[el]}const ao=oo(mi("Inject",e=>({token:e})),-1),Zs=oo(mi("Optional"),8),vi=oo(mi("SkipSelf"),4);let aa,la;function Di(e){var t;return(null===(t=function rl(){if(void 0===aa&&(aa=null,U.trustedTypes))try{aa=U.trustedTypes.createPolicy("angular",{createHTML:e=>e,createScript:e=>e,createScriptURL:e=>e})}catch(e){}return aa}())||void 0===t?void 0:t.createHTML(e))||e}function Ac(e){var t;return(null===(t=function sl(){if(void 0===la&&(la=null,U.trustedTypes))try{la=U.trustedTypes.createPolicy("angular#unsafe-bypass",{createHTML:e=>e,createScript:e=>e,createScriptURL:e=>e})}catch(e){}return la}())||void 0===t?void 0:t.createHTML(e))||e}class Qs{constructor(t){this.changingThisBreaksApplicationSecurity=t}toString(){return`SafeValue must use [property]=binding: ${this.changingThisBreaksApplicationSecurity} (see https://g.co/ng/security#xss)`}}class _m extends Qs{getTypeName(){return"HTML"}}class Dm extends Qs{getTypeName(){return"Style"}}class Cm extends Qs{getTypeName(){return"Script"}}class Em extends Qs{getTypeName(){return"URL"}}class bm extends Qs{getTypeName(){return"ResourceURL"}}function Os(e){return e instanceof Qs?e.changingThisBreaksApplicationSecurity:e}function Ci(e,t){const n=Pc(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 Pc(e){return e instanceof Qs&&e.getTypeName()||null}function wm(e){return new _m(e)}function Tm(e){return new Dm(e)}function Sm(e){return new Cm(e)}function Mm(e){return new Em(e)}function Am(e){return new bm(e)}class Im{constructor(t){this.inertDocumentHelper=t}getInertBodyElement(t){t="<body><remove></remove>"+t;try{const n=(new window.DOMParser).parseFromString(Di(t),"text/html").body;return null===n?this.inertDocumentHelper.getInertBodyElement(t):(n.removeChild(n.firstChild),n)}catch(n){return null}}}class Om{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 r=this.inertDocument.createElement("body");n.appendChild(r)}}getInertBodyElement(t){const n=this.inertDocument.createElement("template");if("content"in n)return n.innerHTML=Di(t),n;const r=this.inertDocument.createElement("body");return r.innerHTML=Di(t),this.defaultDoc.documentMode&&this.stripCustomNsAttrs(r),r}stripCustomNsAttrs(t){const n=t.attributes;for(let s=n.length-1;0<s;s--){const o=n.item(s).name;("xmlns:ns1"===o||0===o.indexOf("ns1:"))&&t.removeAttribute(o)}let r=t.firstChild;for(;r;)r.nodeType===Node.ELEMENT_NODE&&this.stripCustomNsAttrs(r),r=r.nextSibling}}const xm=/^(?:(?:https?|mailto|ftp|tel|file|sms):|[^&:/?#]*(?:[/?#]|$))/gi,Nm=/^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 uo(e){return(e=String(e)).match(xm)||e.match(Nm)?e:"unsafe:"+e}function Ds(e){const t={};for(const n of e.split(","))t[n]=!0;return t}function co(...e){const t={};for(const n of e)for(const r in n)n.hasOwnProperty(r)&&(t[r]=!0);return t}const Rc=Ds("area,br,col,hr,img,wbr"),Fc=Ds("colgroup,dd,dt,li,p,tbody,td,tfoot,th,thead,tr"),kc=Ds("rp,rt"),il=co(Rc,co(Fc,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")),co(kc,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")),co(kc,Fc)),ol=Ds("background,cite,href,itemtype,longdesc,poster,src,xlink:href"),al=Ds("srcset"),Lc=co(ol,al,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")),Rm=Ds("script,style,template");class Fm{constructor(){this.sanitizedSomething=!1,this.buf=[]}sanitizeChildren(t){let n=t.firstChild,r=!0;for(;n;)if(n.nodeType===Node.ELEMENT_NODE?r=this.startElement(n):n.nodeType===Node.TEXT_NODE?this.chars(n.nodeValue):this.sanitizedSomething=!0,r&&n.firstChild)n=n.firstChild;else for(;n;){n.nodeType===Node.ELEMENT_NODE&&this.endElement(n);let s=this.checkClobberedElement(n,n.nextSibling);if(s){n=s;break}n=this.checkClobberedElement(n,n.parentNode)}return this.buf.join("")}startElement(t){const n=t.nodeName.toLowerCase();if(!il.hasOwnProperty(n))return this.sanitizedSomething=!0,!Rm.hasOwnProperty(n);this.buf.push("<"),this.buf.push(n);const r=t.attributes;for(let s=0;s<r.length;s++){const i=r.item(s),o=i.name,f=o.toLowerCase();if(!Lc.hasOwnProperty(f)){this.sanitizedSomething=!0;continue}let m=i.value;ol[f]&&(m=uo(m)),al[f]&&(e=m,m=(e=String(e)).split(",").map(t=>uo(t.trim())).join(", ")),this.buf.push(" ",o,'="',Vc(m),'"')}var e;return this.buf.push(">"),!0}endElement(t){const n=t.nodeName.toLowerCase();il.hasOwnProperty(n)&&!Rc.hasOwnProperty(n)&&(this.buf.push("</"),this.buf.push(n),this.buf.push(">"))}chars(t){this.buf.push(Vc(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 km=/[\uD800-\uDBFF][\uDC00-\uDFFF]/g,Lm=/([^\#-~ |!])/g;function Vc(e){return e.replace(/&/g,"&amp;").replace(km,function(t){return"&#"+(1024*(t.charCodeAt(0)-55296)+(t.charCodeAt(1)-56320)+65536)+";"}).replace(Lm,function(t){return"&#"+t.charCodeAt(0)+";"}).replace(/</g,"&lt;").replace(/>/g,"&gt;")}let ua;function Bc(e,t){let n=null;try{ua=ua||function xc(e){const t=new Om(e);return function Pm(){try{return!!(new window.DOMParser).parseFromString(Di(""),"text/html")}catch(e){return!1}}()?new Im(t):t}(e);let r=t?String(t):"";n=ua.getInertBodyElement(r);let s=5,i=r;do{if(0===s)throw new Error("Failed to sanitize html because the input is unstable");s--,r=i,i=n.innerHTML,n=ua.getInertBodyElement(r)}while(r!==i);return Di((new Fm).sanitizeChildren(ll(n)||n))}finally{if(n){const r=ll(n)||n;for(;r.firstChild;)r.removeChild(r.firstChild)}}}function ll(e){return"content"in e&&function Vm(e){return e.nodeType===Node.ELEMENT_NODE&&"TEMPLATE"===e.nodeName}(e)?e.content:null}var xn=(()=>((xn=xn||{})[xn.NONE=0]="NONE",xn[xn.HTML=1]="HTML",xn[xn.STYLE=2]="STYLE",xn[xn.SCRIPT=3]="SCRIPT",xn[xn.URL=4]="URL",xn[xn.RESOURCE_URL=5]="RESOURCE_URL",xn))();function jc(e){const t=ho();return t?Ac(t.sanitize(xn.HTML,e)||""):Ci(e,"HTML")?Ac(Os(e)):Bc(p(),te(e))}function ul(e){const t=ho();return t?t.sanitize(xn.URL,e)||"":Ci(e,"URL")?Os(e):uo(te(e))}function ho(){const e=Ce();return e&&e[12]}const $c="__ngContext__";function ar(e,t){e[$c]=t}function dl(e){const t=function fo(e){return e[$c]||null}(e);return t?Array.isArray(t)?t:t.lView:null}function fl(e){return e.ngOriginalError}function ey(e,...t){e.error(...t)}class po{constructor(){this._console=console}handleError(t){const n=this._findOriginalError(t),r=function Xm(e){return e&&e.ngErrorLogger||ey}(t);r(this._console,"ERROR",t),n&&r(this._console,"ORIGINAL ERROR",n)}_findOriginalError(t){let n=t&&fl(t);for(;n&&fl(n);)n=fl(n);return n||null}}const qc=(()=>("undefined"!=typeof requestAnimationFrame&&requestAnimationFrame||setTimeout).bind(U))();function Kc(e){return e.ownerDocument.defaultView}function Cs(e){return e instanceof Function?e():e}var Es=(()=>((Es=Es||{})[Es.Important=1]="Important",Es[Es.DashCase=2]="DashCase",Es))();function gl(e,t){return undefined(e,t)}function go(e){const t=e[3];return Dn(t)?t[3]:t}function ml(e){return ed(e[13])}function yl(e){return ed(e[4])}function ed(e){for(;null!==e&&!Dn(e);)e=e[4];return e}function bi(e,t,n,r,s){if(null!=r){let i,o=!1;Dn(r)?i=r:mn(r)&&(o=!0,r=r[0]);const f=Ee(r);0===e&&null!==n?null==s?od(t,n,f):Js(t,n,f,s||null,!0):1===e&&null!==n?Js(t,n,f,s||null,!0):2===e?function fd(e,t,n){const r=ca(e,t);r&&function Ey(e,t,n,r){N(e)?e.removeChild(t,n,r):t.removeChild(n)}(e,r,t,n)}(t,f,o):3===e&&t.destroyNode(f),null!=i&&function Ty(e,t,n,r,s){const i=n[7];i!==Ee(n)&&bi(t,e,r,i,s);for(let f=10;f<n.length;f++){const m=n[f];mo(m[1],m,e,t,r,i)}}(t,e,i,n,s)}}function _l(e,t,n){if(N(e))return e.createElement(t,n);{const r=null!==n?function R(e){const t=e.toLowerCase();return t===l?"http://www.w3.org/2000/svg":t===D?"http://www.w3.org/1998/MathML/":null}(n):null;return null===r?e.createElement(t):e.createElementNS(r,t)}}function nd(e,t){const n=e[9],r=n.indexOf(t),s=t[3];1024&t[2]&&(t[2]&=-1025,me(s,-1)),n.splice(r,1)}function Dl(e,t){if(e.length<=10)return;const n=10+t,r=e[n];if(r){const s=r[17];null!==s&&s!==e&&nd(s,r),t>0&&(e[n-1][4]=r[4]);const i=ra(e,10+t);!function py(e,t){mo(e,t,t[11],2,null,null),t[0]=null,t[6]=null}(r[1],r);const o=i[19];null!==o&&o.detachView(i[1]),r[3]=null,r[4]=null,r[2]&=-129}return r}function rd(e,t){if(!(256&t[2])){const n=t[11];N(n)&&n.destroyNode&&mo(e,t,n,3,null,null),function yy(e){let t=e[13];if(!t)return Cl(e[1],e);for(;t;){let n=null;if(mn(t))n=t[13];else{const r=t[10];r&&(n=r)}if(!n){for(;t&&!t[4]&&t!==e;)mn(t)&&Cl(t[1],t),t=t[3];null===t&&(t=e),mn(t)&&Cl(t[1],t),n=t&&t[4]}t=n}}(t)}}function Cl(e,t){if(!(256&t[2])){t[2]&=-129,t[2]|=256,function Cy(e,t){let n;if(null!=e&&null!=(n=e.destroyHooks))for(let r=0;r<n.length;r+=2){const s=t[n[r]];if(!(s instanceof Bs)){const i=n[r+1];if(Array.isArray(i))for(let o=0;o<i.length;o+=2){const f=s[i[o]],m=i[o+1];try{m.call(f)}finally{}}else try{i.call(s)}finally{}}}}(e,t),function Dy(e,t){const n=e.cleanup,r=t[7];let s=-1;if(null!==n)for(let i=0;i<n.length-1;i+=2)if("string"==typeof n[i]){const o=n[i+1],f="function"==typeof o?o(t):Ee(t[o]),m=r[s=n[i+2]],S=n[i+3];"boolean"==typeof S?f.removeEventListener(n[i],m,S):S>=0?r[s=S]():r[s=-S].unsubscribe(),i+=2}else{const o=r[s=n[i+1]];n[i].call(o)}if(null!==r){for(let i=s+1;i<r.length;i++)r[i]();t[7]=null}}(e,t),1===t[1].type&&N(t[11])&&t[11].destroy();const n=t[17];if(null!==n&&Dn(t[3])){n!==t[3]&&nd(n,t);const r=t[19];null!==r&&r.detachView(e)}}}function sd(e,t,n){return function id(e,t,n){let r=t;for(;null!==r&&40&r.type;)r=(t=r).parent;if(null===r)return n[0];if(2&r.flags){const s=e.data[r.directiveStart].encapsulation;if(s===Ot.None||s===Ot.Emulated)return null}return We(r,n)}(e,t.parent,n)}function Js(e,t,n,r,s){N(e)?e.insertBefore(t,n,r,s):t.insertBefore(n,r,s)}function od(e,t,n){N(e)?e.appendChild(t,n):t.appendChild(n)}function ad(e,t,n,r,s){null!==r?Js(e,t,n,r,s):od(e,t,n)}function ca(e,t){return N(e)?e.parentNode(t):t.parentNode}function ld(e,t,n){return cd(e,t,n)}let cd=function ud(e,t,n){return 40&e.type?We(e,n):null};function da(e,t,n,r){const s=sd(e,r,t),i=t[11],f=ld(r.parent||t[6],r,t);if(null!=s)if(Array.isArray(n))for(let m=0;m<n.length;m++)ad(i,s,n[m],f,!1);else ad(i,s,n,f,!1)}function ha(e,t){if(null!==t){const n=t.type;if(3&n)return We(t,e);if(4&n)return bl(-1,e[t.index]);if(8&n){const r=t.child;if(null!==r)return ha(e,r);{const s=e[t.index];return Dn(s)?bl(-1,s):Ee(s)}}if(32&n)return gl(t,e)()||Ee(e[t.index]);{const r=hd(e,t);return null!==r?Array.isArray(r)?r[0]:ha(go(e[16]),r):ha(e,t.next)}}return null}function hd(e,t){return null!==t?e[16][6].projection[t.projection]:null}function bl(e,t){const n=10+e+1;if(n<t.length){const r=t[n],s=r[1].firstChild;if(null!==s)return ha(r,s)}return t[7]}function wl(e,t,n,r,s,i,o){for(;null!=n;){const f=r[n.index],m=n.type;if(o&&0===t&&(f&&ar(Ee(f),r),n.flags|=4),64!=(64&n.flags))if(8&m)wl(e,t,n.child,r,s,i,!1),bi(t,e,s,f,i);else if(32&m){const S=gl(n,r);let M;for(;M=S();)bi(t,e,s,M,i);bi(t,e,s,f,i)}else 16&m?pd(e,t,r,n,s,i):bi(t,e,s,f,i);n=o?n.projectionNext:n.next}}function mo(e,t,n,r,s,i){wl(n,r,e.firstChild,t,s,i,!1)}function pd(e,t,n,r,s,i){const o=n[16],m=o[6].projection[r.projection];if(Array.isArray(m))for(let S=0;S<m.length;S++)bi(t,e,s,m[S],i);else wl(e,t,m,o[3],s,i,!0)}function gd(e,t,n){N(e)?e.setAttribute(t,"style",n):t.style.cssText=n}function Tl(e,t,n){N(e)?""===n?e.removeAttribute(t,"class"):e.setAttribute(t,"class",n):t.className=n}function md(e,t,n){let r=e.length;for(;;){const s=e.indexOf(t,n);if(-1===s)return s;if(0===s||e.charCodeAt(s-1)<=32){const i=t.length;if(s+i===r||e.charCodeAt(s+i)<=32)return s}n=s+1}}const yd="ng-template";function My(e,t,n){let r=0;for(;r<e.length;){let s=e[r++];if(n&&"class"===s){if(s=e[r],-1!==md(s.toLowerCase(),t,0))return!0}else if(1===s){for(;r<e.length&&"string"==typeof(s=e[r++]);)if(s.toLowerCase()===t)return!0;return!1}}return!1}function vd(e){return 4===e.type&&e.value!==yd}function Ay(e,t,n){return t===(4!==e.type||n?e.value:yd)}function Iy(e,t,n){let r=4;const s=e.attrs||[],i=function xy(e){for(let t=0;t<e.length;t++)if(Ko(e[t]))return t;return e.length}(s);let o=!1;for(let f=0;f<t.length;f++){const m=t[f];if("number"!=typeof m){if(!o)if(4&r){if(r=2|1&r,""!==m&&!Ay(e,m,n)||""===m&&1===t.length){if(ls(r))return!1;o=!0}}else{const S=8&r?m:t[++f];if(8&r&&null!==e.attrs){if(!My(e.attrs,S,n)){if(ls(r))return!1;o=!0}continue}const F=Oy(8&r?"class":m,s,vd(e),n);if(-1===F){if(ls(r))return!1;o=!0;continue}if(""!==S){let H;H=F>i?"":s[F+1].toLowerCase();const ne=8&r?H:null;if(ne&&-1!==md(ne,S,0)||2&r&&S!==H){if(ls(r))return!1;o=!0}}}}else{if(!o&&!ls(r)&&!ls(m))return!1;if(o&&ls(m))continue;o=!1,r=m|1&r}}return ls(r)||o}function ls(e){return 0==(1&e)}function Oy(e,t,n,r){if(null===t)return-1;let s=0;if(r||!n){let i=!1;for(;s<t.length;){const o=t[s];if(o===e)return s;if(3===o||6===o)i=!0;else{if(1===o||2===o){let f=t[++s];for(;"string"==typeof f;)f=t[++s];continue}if(4===o)break;if(0===o){s+=4;continue}}s+=i?1:2}return-1}return function Ny(e,t){let n=e.indexOf(4);if(n>-1)for(n++;n<e.length;){const r=e[n];if("number"==typeof r)return-1;if(r===t)return n;n++}return-1}(t,e)}function _d(e,t,n=!1){for(let r=0;r<t.length;r++)if(Iy(e,t[r],n))return!0;return!1}function Ry(e,t){e:for(let n=0;n<t.length;n++){const r=t[n];if(e.length===r.length){for(let s=0;s<e.length;s++)if(e[s]!==r[s])continue e;return!0}}return!1}function Dd(e,t){return e?":not("+t.trim()+")":t}function Fy(e){let t=e[0],n=1,r=2,s="",i=!1;for(;n<e.length;){let o=e[n];if("string"==typeof o)if(2&r){const f=e[++n];s+="["+o+(f.length>0?'="'+f+'"':"")+"]"}else 8&r?s+="."+o:4&r&&(s+=" "+o);else""!==s&&!ls(o)&&(t+=Dd(i,s),s=""),r=o,i=i||!ls(r);n++}return""!==s&&(t+=Dd(i,s)),t}const bt={};function Cd(e){Ed(mt(),Ce(),Jn()+e,vs())}function Ed(e,t,n,r){if(!r)if(3==(3&t[2])){const i=e.preOrderCheckHooks;null!==i&&Un(t,i,n)}else{const i=e.preOrderHooks;null!==i&&li(t,i,0,n)}$r(n)}function fa(e,t){return e<<17|t<<2}function us(e){return e>>17&32767}function Sl(e){return 2|e}function Ps(e){return(131068&e)>>2}function Ml(e,t){return-131069&e|t<<2}function Al(e){return 1|e}function Nd(e,t){const n=e.contentQueries;if(null!==n)for(let r=0;r<n.length;r+=2){const s=n[r],i=n[r+1];if(-1!==i){const o=e.data[i];ii(s),o.contentQueries(2,t[i],i)}}}function yo(e,t,n,r,s,i,o,f,m,S){const M=t.blueprint.slice();return M[0]=s,M[2]=140|r,O(M),M[3]=M[15]=e,M[8]=n,M[10]=o||e&&e[10],M[11]=f||e&&e[11],M[12]=m||e&&e[12]||null,M[9]=S||e&&e[9]||null,M[6]=i,M[16]=2==t.type?e[16]:M,M}function wi(e,t,n,r,s){let i=e.data[t];if(null===i)i=function Ll(e,t,n,r,s){const i=Xt(),o=Pn(),m=e.data[t]=function Xy(e,t,n,r,s,i){return{type:n,index:r,insertBeforeIndex:null,injectorIndex:t?t.injectorIndex:-1,directiveStart:-1,directiveEnd:-1,directiveStylingLast:-1,propertyBindings:null,flags:0,providerIndexes:0,value:s,attrs:i,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,o?i:i&&i.parent,n,t,r,s);return null===e.firstChild&&(e.firstChild=m),null!==i&&(o?null==i.child&&null!==m.parent&&(i.child=m):null===i.next&&(i.next=m)),m}(e,t,n,r,s),function Ua(){return Pe.lFrame.inI18n}()&&(i.flags|=64);else if(64&i.type){i.type=n,i.value=r,i.attrs=s;const o=function Cr(){const e=Pe.lFrame,t=e.currentTNode;return e.isParent?t:t.parent}();i.injectorIndex=null===o?-1:o.injectorIndex}return Er(i,!0),i}function Ti(e,t,n,r){if(0===n)return-1;const s=t.length;for(let i=0;i<n;i++)t.push(r),e.blueprint.push(r),e.data.push(null);return s}function vo(e,t,n){oi(t);try{const r=e.viewQuery;null!==r&&Wl(1,r,n);const s=e.template;null!==s&&Rd(e,t,s,1,n),e.firstCreatePass&&(e.firstCreatePass=!1),e.staticContentQueries&&Nd(e,t),e.staticViewQueries&&Wl(2,e.viewQuery,n);const i=e.components;null!==i&&function Zy(e,t){for(let n=0;n<t.length;n++)yv(e,t[n])}(t,i)}catch(r){throw e.firstCreatePass&&(e.incompleteFirstPass=!0,e.firstCreatePass=!1),r}finally{t[2]&=-5,Ls()}}function Si(e,t,n,r){const s=t[2];if(256==(256&s))return;oi(t);const i=vs();try{O(t),function qi(e){return Pe.lFrame.bindingIndex=e}(e.bindingStartIndex),null!==n&&Rd(e,t,n,2,r);const o=3==(3&s);if(!i)if(o){const S=e.preOrderCheckHooks;null!==S&&Un(t,S,null)}else{const S=e.preOrderHooks;null!==S&&li(t,S,0,null),Vs(t,0)}if(function gv(e){for(let t=ml(e);null!==t;t=yl(t)){if(!t[2])continue;const n=t[9];for(let r=0;r<n.length;r++){const s=n[r],i=s[3];0==(1024&s[2])&&me(i,1),s[2]|=1024}}}(t),function pv(e){for(let t=ml(e);null!==t;t=yl(t))for(let n=10;n<t.length;n++){const r=t[n],s=r[1];b(r)&&Si(s,r,s.template,r[8])}}(t),null!==e.contentQueries&&Nd(e,t),!i)if(o){const S=e.contentCheckHooks;null!==S&&Un(t,S)}else{const S=e.contentHooks;null!==S&&li(t,S,1),Vs(t,1)}!function qy(e,t){const n=e.hostBindingOpCodes;if(null!==n)try{for(let r=0;r<n.length;r++){const s=n[r];if(s<0)$r(~s);else{const i=s,o=n[++r],f=n[++r];Ha(o,i),f(2,t[i])}}}finally{$r(-1)}}(e,t);const f=e.components;null!==f&&function Ky(e,t){for(let n=0;n<t.length;n++)mv(e,t[n])}(t,f);const m=e.viewQuery;if(null!==m&&Wl(2,m,r),!i)if(o){const S=e.viewCheckHooks;null!==S&&Un(t,S)}else{const S=e.viewHooks;null!==S&&li(t,S,2),Vs(t,2)}!0===e.firstUpdatePass&&(e.firstUpdatePass=!1),i||(t[2]&=-73),1024&t[2]&&(t[2]&=-1025,me(t[3],-1))}finally{Ls()}}function Qy(e,t,n,r){const s=t[10],i=!vs(),o=un(t);try{i&&!o&&s.begin&&s.begin(),o&&vo(e,t,r),Si(e,t,n,r)}finally{i&&!o&&s.end&&s.end()}}function Rd(e,t,n,r,s){const i=Jn(),o=2&r;try{$r(-1),o&&t.length>20&&Ed(e,t,20,vs()),n(r,s)}finally{$r(i)}}function Fd(e,t,n){if(yr(t)){const s=t.directiveEnd;for(let i=t.directiveStart;i<s;i++){const o=e.data[i];o.contentQueries&&o.contentQueries(1,n[i],i)}}}function Vl(e,t,n){!qe()||(function ov(e,t,n,r){const s=n.directiveStart,i=n.directiveEnd;e.firstCreatePass||pi(n,t),ar(r,t);const o=n.initialInputs;for(let f=s;f<i;f++){const m=e.data[f],S=Qt(m);S&&dv(t,n,m);const M=Lt(t,e,f,n);ar(M,t),null!==o&&hv(0,f-s,M,m,0,o),S&&(Ut(n.index,t)[8]=M)}}(e,t,n,We(n,t)),128==(128&n.flags)&&function av(e,t,n){const r=n.directiveStart,s=n.directiveEnd,o=n.index,f=function Lo(){return Pe.lFrame.currentDirectiveIndex}();try{$r(o);for(let m=r;m<s;m++){const S=e.data[m],M=t[m];Vo(m),(null!==S.hostBindings||0!==S.hostVars||null!==S.hostAttrs)&&$d(S,M)}}finally{$r(-1),Vo(f)}}(e,t,n))}function Bl(e,t,n=We){const r=t.localNames;if(null!==r){let s=t.index+1;for(let i=0;i<r.length;i+=2){const o=r[i+1],f=-1===o?n(t,e):e[o];e[s++]=f}}}function kd(e){const t=e.tView;return null===t||t.incompleteFirstPass?e.tView=ma(1,null,e.template,e.decls,e.vars,e.directiveDefs,e.pipeDefs,e.viewQuery,e.schemas,e.consts):t}function ma(e,t,n,r,s,i,o,f,m,S){const M=20+r,F=M+s,H=function Jy(e,t){const n=[];for(let r=0;r<t;r++)n.push(r<e?null:bt);return n}(M,F),ne="function"==typeof S?S():S;return H[1]={type:e,blueprint:H,template:n,queries:null,viewQuery:f,declTNode:t,data:H.slice().fill(null,M),bindingStartIndex:M,expandoStartIndex:F,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 i?i():i,pipeRegistry:"function"==typeof o?o():o,firstChild:null,schemas:m,consts:ne,incompleteFirstPass:!1}}function Bd(e,t,n,r){const s=Kd(t);null===n?s.push(r):(s.push(n),e.firstCreatePass&&Zd(e).push(r,s.length-1))}function jd(e,t,n){for(let r in e)if(e.hasOwnProperty(r)){const s=e[r];(n=null===n?{}:n).hasOwnProperty(r)?n[r].push(t,s):n[r]=[t,s]}return n}function Rr(e,t,n,r,s,i,o,f){const m=We(t,n);let M,S=t.inputs;!f&&null!=S&&(M=S[r])?(Xd(e,n,M,r,s),ir(t)&&function nv(e,t){const n=Ut(t,e);16&n[2]||(n[2]|=64)}(n,t.index)):3&t.type&&(r=function tv(e){return"class"===e?"className":"for"===e?"htmlFor":"formaction"===e?"formAction":"innerHtml"===e?"innerHTML":"readonly"===e?"readOnly":"tabindex"===e?"tabIndex":e}(r),s=null!=o?o(s,t.value||"",r):s,N(i)?i.setProperty(m,r,s):Ji(r)||(m.setProperty?m.setProperty(r,s):m[r]=s))}function jl(e,t,n,r){let s=!1;if(qe()){const i=function lv(e,t,n){const r=e.directiveRegistry;let s=null;if(r)for(let i=0;i<r.length;i++){const o=r[i];_d(n,o.selectors,!1)&&(s||(s=[]),E(pi(n,t),e,o.type),Qt(o)?(Gd(e,n),s.unshift(o)):s.push(o))}return s}(e,t,n),o=null===r?null:{"":-1};if(null!==i){s=!0,zd(n,e.data.length,i.length);for(let M=0;M<i.length;M++){const F=i[M];F.providersResolver&&F.providersResolver(F)}let f=!1,m=!1,S=Ti(e,t,i.length,null);for(let M=0;M<i.length;M++){const F=i[M];n.mergedAttrs=hi(n.mergedAttrs,F.hostAttrs),Wd(e,n,t,S,F),cv(S,F,o),null!==F.contentQueries&&(n.flags|=8),(null!==F.hostBindings||null!==F.hostAttrs||0!==F.hostVars)&&(n.flags|=128);const H=F.type.prototype;!f&&(H.ngOnChanges||H.ngOnInit||H.ngDoCheck)&&((e.preOrderHooks||(e.preOrderHooks=[])).push(n.index),f=!0),!m&&(H.ngOnChanges||H.ngDoCheck)&&((e.preOrderCheckHooks||(e.preOrderCheckHooks=[])).push(n.index),m=!0),S++}!function ev(e,t){const r=t.directiveEnd,s=e.data,i=t.attrs,o=[];let f=null,m=null;for(let S=t.directiveStart;S<r;S++){const M=s[S],F=M.inputs,H=null===i||vd(t)?null:fv(F,i);o.push(H),f=jd(F,S,f),m=jd(M.outputs,S,m)}null!==f&&(f.hasOwnProperty("class")&&(t.flags|=16),f.hasOwnProperty("style")&&(t.flags|=32)),t.initialInputs=o,t.inputs=f,t.outputs=m}(e,n)}o&&function uv(e,t,n){if(t){const r=e.localNames=[];for(let s=0;s<t.length;s+=2){const i=n[t[s+1]];if(null==i)throw new ye(-301,!1);r.push(t[s],i)}}}(n,r,o)}return n.mergedAttrs=hi(n.mergedAttrs,n.attrs),s}function Hd(e,t,n,r,s,i){const o=i.hostBindings;if(o){let f=e.hostBindingOpCodes;null===f&&(f=e.hostBindingOpCodes=[]);const m=~t.index;(function iv(e){let t=e.length;for(;t>0;){const n=e[--t];if("number"==typeof n&&n<0)return n}return 0})(f)!=m&&f.push(m),f.push(r,s,o)}}function $d(e,t){null!==e.hostBindings&&e.hostBindings(1,t)}function Gd(e,t){t.flags|=2,(e.components||(e.components=[])).push(t.index)}function cv(e,t,n){if(n){if(t.exportAs)for(let r=0;r<t.exportAs.length;r++)n[t.exportAs[r]]=e;Qt(t)&&(n[""]=e)}}function zd(e,t,n){e.flags|=1,e.directiveStart=t,e.directiveEnd=t+n,e.providerIndexes=t}function Wd(e,t,n,r,s){e.data[r]=s;const i=s.factory||(s.factory=cr(s.type)),o=new Bs(i,Qt(s),null);e.blueprint[r]=o,n[r]=o,Hd(e,t,0,r,Ti(e,n,s.hostVars,bt),s)}function dv(e,t,n){const r=We(t,e),s=kd(n),i=e[10],o=ya(e,yo(e,s,null,n.onPush?64:16,r,t,i,i.createRenderer(r,n),null,null));e[t.index]=o}function bs(e,t,n,r,s,i){const o=We(e,t);!function Ul(e,t,n,r,s,i,o){if(null==i)N(e)?e.removeAttribute(t,s,n):t.removeAttribute(s);else{const f=null==o?te(i):o(i,r||"",s);N(e)?e.setAttribute(t,s,f,n):n?t.setAttributeNS(n,s,f):t.setAttribute(s,f)}}(t[11],o,i,e.value,n,r,s)}function hv(e,t,n,r,s,i){const o=i[t];if(null!==o){const f=r.setInput;for(let m=0;m<o.length;){const S=o[m++],M=o[m++],F=o[m++];null!==f?r.setInput(n,F,S,M):n[M]=F}}}function fv(e,t){let n=null,r=0;for(;r<t.length;){const s=t[r];if(0!==s)if(5!==s){if("number"==typeof s)break;e.hasOwnProperty(s)&&(null===n&&(n=[]),n.push(s,e[s],t[r+1])),r+=2}else r+=2;else r+=4}return n}function Yd(e,t,n,r){return new Array(e,!0,!1,t,null,0,r,n,null,null)}function mv(e,t){const n=Ut(t,e);if(b(n)){const r=n[1];80&n[2]?Si(r,n,r.template,n[8]):n[5]>0&&Hl(n)}}function Hl(e){for(let r=ml(e);null!==r;r=yl(r))for(let s=10;s<r.length;s++){const i=r[s];if(1024&i[2]){const o=i[1];Si(o,i,o.template,i[8])}else i[5]>0&&Hl(i)}const n=e[1].components;if(null!==n)for(let r=0;r<n.length;r++){const s=Ut(n[r],e);b(s)&&s[5]>0&&Hl(s)}}function yv(e,t){const n=Ut(t,e),r=n[1];(function vv(e,t){for(let n=t.length;n<e.blueprint.length;n++)t.push(e.blueprint[n])})(r,n),vo(r,n,n[8])}function ya(e,t){return e[13]?e[14][4]=t:e[13]=t,e[14]=t,t}function $l(e){for(;e;){e[2]|=64;const t=go(e);if(jn(e)&&!t)return e;e=t}return null}function zl(e,t,n){const r=t[10];r.begin&&r.begin();try{Si(e,t,e.template,n)}catch(s){throw Jd(t,s),s}finally{r.end&&r.end()}}function qd(e){!function Gl(e){for(let t=0;t<e.components.length;t++){const n=e.components[t],r=dl(n),s=r[1];Qy(s,r,s.template,n)}}(e[8])}function Wl(e,t,n){ii(0),t(e,n)}const Ev=(()=>Promise.resolve(null))();function Kd(e){return e[7]||(e[7]=[])}function Zd(e){return e.cleanup||(e.cleanup=[])}function Qd(e,t,n){return(null===e||Qt(e))&&(n=function je(e){for(;Array.isArray(e);){if("object"==typeof e[1])return e;e=e[0]}return null}(n[t.index])),n[11]}function Jd(e,t){const n=e[9],r=n?n.get(po,null):null;r&&r.handleError(t)}function Xd(e,t,n,r,s){for(let i=0;i<n.length;){const o=n[i++],f=n[i++],m=t[o],S=e.data[o];null!==S.setInput?S.setInput(m,s,r,f):m[f]=s}}function xs(e,t,n){const r=Xe(t,e);!function td(e,t,n){N(e)?e.setValue(t,n):t.textContent=n}(e[11],r,n)}function va(e,t,n){let r=n?e.styles:null,s=n?e.classes:null,i=0;if(null!==t)for(let o=0;o<t.length;o++){const f=t[o];"number"==typeof f?i=f:1==i?s=Ie(s,f):2==i&&(r=Ie(r,f+": "+t[++o]+";"))}n?e.styles=r:e.stylesWithoutHost=r,n?e.classes=s:e.classesWithoutHost=s}const _a=new Mn("INJECTOR",-1);class eh{get(t,n=so){if(n===so){const r=new Error(`NullInjectorError: No provider for ${oe(t)}!`);throw r.name="NullInjectorError",r}return n}}const Yl=new Mn("Set Injector scope."),_o={},Tv={};let ql;function th(){return void 0===ql&&(ql=new eh),ql}function nh(e,t=null,n=null,r){const s=rh(e,t,n,r);return s._resolveInjectorDefTypes(),s}function rh(e,t=null,n=null,r){return new Sv(e,n,t||th(),r)}class Sv{constructor(t,n,r,s=null){this.parent=r,this.records=new Map,this.injectorDefTypes=new Set,this.onDestroy=new Set,this._destroyed=!1;const i=[];n&&_s(n,f=>this.processProvider(f,t,n)),_s([t],f=>this.processInjectorType(f,[],i)),this.records.set(_a,Mi(void 0,this));const o=this.records.get(Yl);this.scope=null!=o?o.value:null,this.source=s||("object"==typeof t?null:oe(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,r=ie.Default){this.assertNotDestroyed();const s=Ec(this),i=Oe(void 0);try{if(!(r&ie.SkipSelf)){let f=this.records.get(t);if(void 0===f){const m=function Rv(e){return"function"==typeof e||"object"==typeof e&&e instanceof Mn}(t)&&hn(t);f=m&&this.injectableDefInScope(m)?Mi(Kl(t),_o):null,this.records.set(t,f)}if(null!=f)return this.hydrate(t,f)}return(r&ie.Self?th():this.parent).get(t,n=r&ie.Optional&&n===so?null:n)}catch(o){if("NullInjectorError"===o.name){if((o[ia]=o[ia]||[]).unshift(oe(t)),s)throw o;return function am(e,t,n,r){const s=e[ia];throw t[Cc]&&s.unshift(t[Cc]),e.message=function lm(e,t,n,r=null){e=e&&"\n"===e.charAt(0)&&"\u0275"==e.charAt(1)?e.substr(2):e;let s=oe(t);if(Array.isArray(t))s=t.map(oe).join(" -> ");else if("object"==typeof t){let i=[];for(let o in t)if(t.hasOwnProperty(o)){let f=t[o];i.push(o+":"+("string"==typeof f?JSON.stringify(f):oe(f)))}s=`{${i.join(", ")}}`}return`${n}${r?"("+r+")":""}[${s}]: ${e.replace(tm,"\n ")}`}("\n"+e.message,s,n,r),e.ngTokenPath=s,e[ia]=null,e}(o,t,"R3InjectorError",this.source)}throw o}finally{Oe(i),Ec(s)}}_resolveInjectorDefTypes(){this.injectorDefTypes.forEach(t=>this.get(t))}toString(){const t=[];return this.records.forEach((r,s)=>t.push(oe(s))),`R3Injector[${t.join(", ")}]`}assertNotDestroyed(){if(this._destroyed)throw new ye(205,!1)}processInjectorType(t,n,r){if(!(t=he(t)))return!1;let s=Bt(t);const i=null==s&&t.ngModule||void 0,o=void 0===i?t:i,f=-1!==r.indexOf(o);if(void 0!==i&&(s=Bt(i)),null==s)return!1;if(null!=s.imports&&!f){let M;r.push(o);try{_s(s.imports,F=>{this.processInjectorType(F,n,r)&&(void 0===M&&(M=[]),M.push(F))})}finally{}if(void 0!==M)for(let F=0;F<M.length;F++){const{ngModule:H,providers:ne}=M[F];_s(ne,be=>this.processProvider(be,H,ne||at))}}this.injectorDefTypes.add(o);const m=cr(o)||(()=>new o);this.records.set(o,Mi(m,_o));const S=s.providers;if(null!=S&&!f){const M=t;_s(S,F=>this.processProvider(F,M,S))}return void 0!==i&&void 0!==t.providers}processProvider(t,n,r){let s=Ai(t=he(t))?t:he(t&&t.provide);const i=function Av(e,t,n){return ih(e)?Mi(void 0,e.useValue):Mi(sh(e),_o)}(t);if(Ai(t)||!0!==t.multi)this.records.get(s);else{let o=this.records.get(s);o||(o=Mi(void 0,_o,!0),o.factory=()=>tl(o.multi),this.records.set(s,o)),s=t,o.multi.push(t)}this.records.set(s,i)}hydrate(t,n){return n.value===_o&&(n.value=Tv,n.value=n.factory()),"object"==typeof n.value&&n.value&&function Nv(e){return null!==e&&"object"==typeof e&&"function"==typeof e.ngOnDestroy}(n.value)&&this.onDestroy.add(n.value),n.value}injectableDefInScope(t){if(!t.providedIn)return!1;const n=he(t.providedIn);return"string"==typeof n?"any"===n||n===this.scope:this.injectorDefTypes.has(n)}}function Kl(e){const t=hn(e),n=null!==t?t.factory:cr(e);if(null!==n)return n;if(e instanceof Mn)throw new ye(204,!1);if(e instanceof Function)return function Mv(e){const t=e.length;if(t>0)throw ro(t,"?"),new ye(204,!1);const n=function nn(e){const t=e&&(e[In]||e[Gn]);if(t){const n=function fn(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 ye(204,!1)}function sh(e,t,n){let r;if(Ai(e)){const s=he(e);return cr(s)||Kl(s)}if(ih(e))r=()=>he(e.useValue);else if(function Ov(e){return!(!e||!e.useFactory)}(e))r=()=>e.useFactory(...tl(e.deps||[]));else if(function Iv(e){return!(!e||!e.useExisting)}(e))r=()=>Kn(he(e.useExisting));else{const s=he(e&&(e.useClass||e.provide));if(!function xv(e){return!!e.deps}(e))return cr(s)||Kl(s);r=()=>new s(...tl(e.deps))}return r}function Mi(e,t,n=!1){return{factory:e,value:t,multi:n?[]:void 0}}function ih(e){return null!==e&&"object"==typeof e&&rm in e}function Ai(e){return"function"==typeof e}let Wr=(()=>{class e{static create(n,r){var s;if(Array.isArray(n))return nh({name:""},r,n,"");{const i=null!==(s=n.name)&&void 0!==s?s:"";return nh({name:i},n.parent,n.providers,i)}}}return e.THROW_IF_NOT_FOUND=so,e.NULL=new eh,e.\u0275prov=gt({token:e,providedIn:"any",factory:()=>Kn(_a)}),e.__NG_ELEMENT_ID__=-1,e})();function Hv(e,t){ai(dl(e)[1],qt())}function Jl(e){let t=function yh(e){return Object.getPrototypeOf(e.prototype).constructor}(e.type),n=!0;const r=[e];for(;t;){let s;if(Qt(e))s=t.\u0275cmp||t.\u0275dir;else{if(t.\u0275cmp)throw new ye(903,"");s=t.\u0275dir}if(s){if(n){r.push(s);const o=e;o.inputs=Xl(e.inputs),o.declaredInputs=Xl(e.declaredInputs),o.outputs=Xl(e.outputs);const f=s.hostBindings;f&&Wv(e,f);const m=s.viewQuery,S=s.contentQueries;if(m&&Gv(e,m),S&&zv(e,S),ce(e.inputs,s.inputs),ce(e.declaredInputs,s.declaredInputs),ce(e.outputs,s.outputs),Qt(s)&&s.data.animation){const M=e.data;M.animation=(M.animation||[]).concat(s.data.animation)}}const i=s.features;if(i)for(let o=0;o<i.length;o++){const f=i[o];f&&f.ngInherit&&f(e),f===Jl&&(n=!1)}}t=Object.getPrototypeOf(t)}!function $v(e){let t=0,n=null;for(let r=e.length-1;r>=0;r--){const s=e[r];s.hostVars=t+=s.hostVars,s.hostAttrs=hi(s.hostAttrs,n=hi(n,s.hostAttrs))}}(r)}function Xl(e){return e===Dt?{}:e===at?[]:e}function Gv(e,t){const n=e.viewQuery;e.viewQuery=n?(r,s)=>{t(r,s),n(r,s)}:t}function zv(e,t){const n=e.contentQueries;e.contentQueries=n?(r,s,i)=>{t(r,s,i),n(r,s,i)}:t}function Wv(e,t){const n=e.hostBindings;e.hostBindings=n?(r,s)=>{t(r,s),n(r,s)}:t}let Da=null;function Ii(){if(!Da){const e=U.Symbol;if(e&&e.iterator)Da=e.iterator;else{const t=Object.getOwnPropertyNames(Map.prototype);for(let n=0;n<t.length;++n){const r=t[n];"entries"!==r&&"size"!==r&&Map.prototype[r]===Map.prototype.entries&&(Da=r)}}}return Da}function Do(e){return!!eu(e)&&(Array.isArray(e)||!(e instanceof Map)&&Ii()in e)}function eu(e){return null!==e&&("function"==typeof e||"object"==typeof e)}function ws(e,t,n){return e[t]=n}function Co(e,t){return e[t]}function lr(e,t,n){return!Object.is(e[t],n)&&(e[t]=n,!0)}function Xs(e,t,n,r){const s=lr(e,t,n);return lr(e,t+1,r)||s}function Yr(e,t,n,r,s,i){const o=Xs(e,t,n,r);return Xs(e,t+2,s,i)||o}function tu(e,t,n,r){const s=Ce();return lr(s,ks(),t)&&(mt(),bs(cn(),s,e,t,n,r)),tu}function Pi(e,t,n,r){return lr(e,ks(),n)?t+te(n)+r:bt}function xi(e,t,n,r,s,i){const f=Xs(e,function is(){return Pe.lFrame.bindingIndex}(),n,s);return os(2),f?t+te(n)+r+te(s)+i:bt}function Mh(e,t,n,r,s,i,o,f){const m=Ce(),S=mt(),M=e+20,F=S.firstCreatePass?function Xv(e,t,n,r,s,i,o,f,m){const S=t.consts,M=wi(t,e,4,o||null,y(S,f));jl(t,n,M,y(S,m)),ai(t,M);const F=M.tViews=ma(2,M,r,s,i,t.directiveRegistry,t.pipeRegistry,null,t.schemas,S);return null!==t.queries&&(t.queries.template(t,M),F.queries=t.queries.embeddedTView(M)),M}(M,S,m,t,n,r,s,i,o):S.data[M];Er(F,!1);const H=m[11].createComment("");da(S,m,H,F),ar(H,m),ya(m,m[M]=Yd(H,m,H,F)),ln(F)&&Vl(S,m,F),null!=o&&Bl(m,F,f)}function Ah(e){return Et(function ss(){return Pe.lFrame.contextLView}(),20+e)}function Eo(e,t=ie.Default){const n=Ce();return null===n?Kn(e,t):z(qt(),n,he(e),t)}function Bh(){throw new Error("invalid")}function ou(e,t,n){const r=Ce();return lr(r,ks(),t)&&Rr(mt(),cn(),r,e,t,r[11],n,!1),ou}function au(e,t,n,r,s){const o=s?"class":"style";Xd(e,n,t.inputs[o],o,r)}function lu(e,t,n,r){const s=Ce(),i=mt(),o=20+e,f=s[11],m=s[o]=_l(f,t,function Wo(){return Pe.lFrame.currentNamespace}()),S=i.firstCreatePass?function D_(e,t,n,r,s,i,o){const f=t.consts,S=wi(t,e,2,s,y(f,i));return jl(t,n,S,y(f,o)),null!==S.attrs&&va(S,S.attrs,!1),null!==S.mergedAttrs&&va(S,S.mergedAttrs,!0),null!==t.queries&&t.queries.elementStart(t,S),S}(o,i,s,0,t,n,r):i.data[o];Er(S,!0);const M=S.mergedAttrs;null!==M&&Ks(f,m,M);const F=S.classes;null!==F&&Tl(f,m,F);const H=S.styles;null!==H&&gd(f,m,H),64!=(64&S.flags)&&da(i,s,m,S),0===function Tn(){return Pe.lFrame.elementDepthCount}()&&ar(m,s),function Ir(){Pe.lFrame.elementDepthCount++}(),ln(S)&&(Vl(i,s,S),Fd(i,S,s)),null!==r&&Bl(s,S)}function uu(){let e=qt();Pn()?Or():(e=e.parent,Er(e,!1));const t=e;!function $e(){Pe.lFrame.elementDepthCount--}();const n=mt();n.firstCreatePass&&(ai(n,e),yr(e)&&n.queries.elementEnd(e)),null!=t.classesWithoutHost&&function qo(e){return 0!=(16&e.flags)}(t)&&au(n,t,Ce(),t.classesWithoutHost,!0),null!=t.stylesWithoutHost&&function Qi(e){return 0!=(32&e.flags)}(t)&&au(n,t,Ce(),t.stylesWithoutHost,!1)}function jh(e,t,n,r){lu(e,t,n,r),uu()}function cu(e,t,n){const r=Ce(),s=mt(),i=e+20,o=s.firstCreatePass?function C_(e,t,n,r,s){const i=t.consts,o=y(i,r),f=wi(t,e,8,"ng-container",o);return null!==o&&va(f,o,!0),jl(t,n,f,y(i,s)),null!==t.queries&&t.queries.elementStart(t,f),f}(i,s,r,t,n):s.data[i];Er(o,!0);const f=r[i]=r[11].createComment("");da(s,r,f,o),ar(f,r),ln(o)&&(Vl(s,r,o),Fd(s,o,r)),null!=n&&Bl(r,o)}function du(){let e=qt();const t=mt();Pn()?Or():(e=e.parent,Er(e,!1)),t.firstCreatePass&&(ai(t,e),yr(e)&&t.queries.elementEnd(e))}function Uh(e,t,n){cu(e,t,n),du()}function Hh(){return Ce()}function hu(e){return!!e&&"function"==typeof e.then}function $h(e){return!!e&&"function"==typeof e.subscribe}const Gh=$h;function fu(e,t,n,r){const s=Ce(),i=mt(),o=qt();return zh(i,s,s[11],o,e,t,!!n,r),fu}function pu(e,t){const n=qt(),r=Ce(),s=mt();return zh(s,r,Qd(si(s.data),n,r),n,e,t,!1),pu}function zh(e,t,n,r,s,i,o,f){const m=ln(r),M=e.firstCreatePass&&Zd(e),F=t[8],H=Kd(t);let ne=!0;if(3&r.type||f){const Ue=We(r,t),Ze=f?f(Ue):Ue,xe=H.length,it=f?xt=>f(Ee(xt[r.index])):r.index;if(N(n)){let xt=null;if(!f&&m&&(xt=function E_(e,t,n,r){const s=e.cleanup;if(null!=s)for(let i=0;i<s.length-1;i+=2){const o=s[i];if(o===n&&s[i+1]===r){const f=t[7],m=s[i+2];return f.length>m?f[m]:null}"string"==typeof o&&(i+=2)}return null}(e,t,s,r.index)),null!==xt)(xt.__ngLastListenerFn__||xt).__ngNextListenerFn__=i,xt.__ngLastListenerFn__=i,ne=!1;else{i=gu(r,t,F,i,!1);const Zt=n.listen(Ze,s,i);H.push(i,Zt),M&&M.push(s,it,xe,xe+1)}}else i=gu(r,t,F,i,!0),Ze.addEventListener(s,i,o),H.push(i),M&&M.push(s,it,xe,o)}else i=gu(r,t,F,i,!1);const be=r.outputs;let Le;if(ne&&null!==be&&(Le=be[s])){const Ue=Le.length;if(Ue)for(let Ze=0;Ze<Ue;Ze+=2){const kr=t[Le[Ze]][Le[Ze+1]].subscribe(i),ni=H.length;H.push(i,kr),M&&M.push(s,r.index,ni,-(ni+1))}}}function Wh(e,t,n,r){try{return!1!==n(r)}catch(s){return Jd(e,s),!1}}function gu(e,t,n,r,s){return function i(o){if(o===Function)return r;const f=2&e.flags?Ut(e.index,t):t;0==(32&t[2])&&$l(f);let m=Wh(t,0,r,o),S=i.__ngNextListenerFn__;for(;S;)m=Wh(t,0,S,o)&&m,S=S.__ngNextListenerFn__;return s&&!1===m&&(o.preventDefault(),o.returnValue=!1),m}}function Yh(e=1){return function $a(e){return(Pe.lFrame.contextLView=function Ga(e,t){for(;e>0;)t=t[15],e--;return t}(e,Pe.lFrame.contextLView))[8]}(e)}function b_(e,t){let n=null;const r=function Py(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 s=0;s<t.length;s++){const i=t[s];if("*"!==i){if(null===r?_d(e,i,!0):Ry(r,i))return s}else n=s}return n}function qh(e){const t=Ce()[16][6];if(!t.projection){const r=t.projection=ro(e?e.length:1,null),s=r.slice();let i=t.child;for(;null!==i;){const o=e?b_(i,e):0;null!==o&&(s[o]?s[o].projectionNext=i:r[o]=i,s[o]=i),i=i.next}}}function Kh(e,t=0,n){const r=Ce(),s=mt(),i=wi(s,20+e,16,null,n||null);null===i.projection&&(i.projection=t),Or(),64!=(64&i.flags)&&function wy(e,t,n){pd(t[11],0,t,n,sd(e,n,t),ld(n.parent||t[6],n,t))}(s,r,i)}function mu(e,t,n){return yu(e,"",t,"",n),mu}function yu(e,t,n,r,s){const i=Ce(),o=Pi(i,t,n,r);return o!==bt&&Rr(mt(),cn(),i,e,o,i[11],s,!1),yu}function sf(e,t,n,r,s){const i=e[n+1],o=null===t;let f=r?us(i):Ps(i),m=!1;for(;0!==f&&(!1===m||o);){const M=e[f+1];S_(e[f],t)&&(m=!0,e[f+1]=r?Al(M):Sl(M)),f=r?us(M):Ps(M)}m&&(e[n+1]=r?Sl(i):Al(i))}function S_(e,t){return null===e||null==t||(Array.isArray(e)?e[1]:e)===t||!(!Array.isArray(e)||"string"!=typeof t)&&yi(e,t)>=0}const $n={textEnd:0,key:0,keyEnd:0,value:0,valueEnd:0};function of(e){return e.substring($n.key,$n.keyEnd)}function af(e,t){const n=$n.textEnd;return n===t?-1:(t=$n.keyEnd=function O_(e,t,n){for(;t<n&&e.charCodeAt(t)>32;)t++;return t}(e,$n.key=t,n),ji(e,t,n))}function ji(e,t,n){for(;t<n&&e.charCodeAt(t)<=32;)t++;return t}function vu(e,t,n){return ds(e,t,n,!1),vu}function _u(e,t){return ds(e,t,null,!0),_u}function hf(e){hs(Nr,Ss,e,!0)}function Ss(e,t){for(let n=function A_(e){return function uf(e){$n.key=0,$n.keyEnd=0,$n.value=0,$n.valueEnd=0,$n.textEnd=e.length}(e),af(e,ji(e,0,$n.textEnd))}(t);n>=0;n=af(t,n))Nr(e,of(t),!0)}function ds(e,t,n,r){const s=Ce(),i=mt(),o=os(2);i.firstUpdatePass&&pf(i,e,o,r),t!==bt&&lr(s,o,t)&&mf(i,i.data[Jn()],s,s[11],e,s[o+1]=function j_(e,t){return null==e||("string"==typeof t?e+=t:"object"==typeof e&&(e=oe(Os(e)))),e}(t,n),r,o)}function hs(e,t,n,r){const s=mt(),i=os(2);s.firstUpdatePass&&pf(s,null,i,r);const o=Ce();if(n!==bt&&lr(o,i,n)){const f=s.data[Jn()];if(vf(f,r)&&!ff(s,i)){let m=r?f.classesWithoutHost:f.stylesWithoutHost;null!==m&&(n=Ie(m,n||"")),au(s,f,o,n,r)}else!function B_(e,t,n,r,s,i,o,f){s===bt&&(s=at);let m=0,S=0,M=0<s.length?s[0]:null,F=0<i.length?i[0]:null;for(;null!==M||null!==F;){const H=m<s.length?s[m+1]:void 0,ne=S<i.length?i[S+1]:void 0;let Le,be=null;M===F?(m+=2,S+=2,H!==ne&&(be=F,Le=ne)):null===F||null!==M&&M<F?(m+=2,be=M):(S+=2,be=F,Le=ne),null!==be&&mf(e,t,n,r,be,Le,o,f),M=m<s.length?s[m]:null,F=S<i.length?i[S]:null}}(s,f,o,o[11],o[i+1],o[i+1]=function V_(e,t,n){if(null==n||""===n)return at;const r=[],s=Os(n);if(Array.isArray(s))for(let i=0;i<s.length;i++)e(r,s[i],!0);else if("object"==typeof s)for(const i in s)s.hasOwnProperty(i)&&e(r,i,s[i]);else"string"==typeof s&&t(r,s);return r}(e,t,n),r,i)}}function ff(e,t){return t>=e.expandoStartIndex}function pf(e,t,n,r){const s=e.data;if(null===s[n+1]){const i=s[Jn()],o=ff(e,n);vf(i,r)&&null===t&&!o&&(t=!1),t=function R_(e,t,n,r){const s=si(e);let i=r?t.residualClasses:t.residualStyles;if(null===s)0===(r?t.classBindings:t.styleBindings)&&(n=bo(n=Du(null,e,t,n,r),t.attrs,r),i=null);else{const o=t.directiveStylingLast;if(-1===o||e[o]!==s)if(n=Du(s,e,t,n,r),null===i){let m=function F_(e,t,n){const r=n?t.classBindings:t.styleBindings;if(0!==Ps(r))return e[us(r)]}(e,t,r);void 0!==m&&Array.isArray(m)&&(m=Du(null,e,t,m[1],r),m=bo(m,t.attrs,r),function k_(e,t,n,r){e[us(n?t.classBindings:t.styleBindings)]=r}(e,t,r,m))}else i=function L_(e,t,n){let r;const s=t.directiveEnd;for(let i=1+t.directiveStylingLast;i<s;i++)r=bo(r,e[i].hostAttrs,n);return bo(r,t.attrs,n)}(e,t,r)}return void 0!==i&&(r?t.residualClasses=i:t.residualStyles=i),n}(s,i,t,r),function w_(e,t,n,r,s,i){let o=i?t.classBindings:t.styleBindings,f=us(o),m=Ps(o);e[r]=n;let M,S=!1;if(Array.isArray(n)){const F=n;M=F[1],(null===M||yi(F,M)>0)&&(S=!0)}else M=n;if(s)if(0!==m){const H=us(e[f+1]);e[r+1]=fa(H,f),0!==H&&(e[H+1]=Ml(e[H+1],r)),e[f+1]=function Vy(e,t){return 131071&e|t<<17}(e[f+1],r)}else e[r+1]=fa(f,0),0!==f&&(e[f+1]=Ml(e[f+1],r)),f=r;else e[r+1]=fa(m,0),0===f?f=r:e[m+1]=Ml(e[m+1],r),m=r;S&&(e[r+1]=Sl(e[r+1])),sf(e,M,r,!0),sf(e,M,r,!1),function T_(e,t,n,r,s){const i=s?e.residualClasses:e.residualStyles;null!=i&&"string"==typeof t&&yi(i,t)>=0&&(n[r+1]=Al(n[r+1]))}(t,M,e,r,i),o=fa(f,m),i?t.classBindings=o:t.styleBindings=o}(s,i,t,n,o,r)}}function Du(e,t,n,r,s){let i=null;const o=n.directiveEnd;let f=n.directiveStylingLast;for(-1===f?f=n.directiveStart:f++;f<o&&(i=t[f],r=bo(r,i.hostAttrs,s),i!==e);)f++;return null!==e&&(n.directiveStylingLast=f),r}function bo(e,t,n){const r=n?1:2;let s=-1;if(null!==t)for(let i=0;i<t.length;i++){const o=t[i];"number"==typeof o?s=o:s===r&&(Array.isArray(e)||(e=void 0===e?[]:["",e]),Nr(e,o,!!n||t[++i]))}return void 0===e?null:e}function mf(e,t,n,r,s,i,o,f){if(!(3&t.type))return;const m=e.data,S=m[f+1];ba(function Td(e){return 1==(1&e)}(S)?yf(m,t,n,s,Ps(S),o):void 0)||(ba(i)||function wd(e){return 2==(2&e)}(S)&&(i=yf(m,null,n,s,f,o)),function Sy(e,t,n,r,s){const i=N(e);if(t)s?i?e.addClass(n,r):n.classList.add(r):i?e.removeClass(n,r):n.classList.remove(r);else{let o=-1===r.indexOf("-")?void 0:Es.DashCase;if(null==s)i?e.removeStyle(n,r,o):n.style.removeProperty(r);else{const f="string"==typeof s&&s.endsWith("!important");f&&(s=s.slice(0,-10),o|=Es.Important),i?e.setStyle(n,r,s,o):n.style.setProperty(r,s,f?"important":"")}}}(r,o,Xe(Jn(),n),s,i))}function yf(e,t,n,r,s,i){const o=null===t;let f;for(;s>0;){const m=e[s],S=Array.isArray(m),M=S?m[1]:m,F=null===M;let H=n[s+1];H===bt&&(H=F?at:void 0);let ne=F?Ja(H,r):M===r?H:void 0;if(S&&!ba(ne)&&(ne=Ja(m,r)),ba(ne)&&(f=ne,o))return f;const be=e[s+1];s=o?us(be):Ps(be)}if(null!==t){let m=i?t.residualClasses:t.residualStyles;null!=m&&(f=Ja(m,r))}return f}function ba(e){return void 0!==e}function vf(e,t){return 0!=(e.flags&(t?16:32))}function _f(e,t=""){const n=Ce(),r=mt(),s=e+20,i=r.firstCreatePass?wi(r,s,1,t,null):r.data[s],o=n[s]=function vl(e,t){return N(e)?e.createText(t):e.createTextNode(t)}(n[11],t);da(r,n,o,i),Er(i,!1)}function Cu(e){return wa("",e,""),Cu}function wa(e,t,n){const r=Ce(),s=Pi(r,e,t,n);return s!==bt&&xs(r,Jn(),s),wa}function Eu(e,t,n,r,s){const i=Ce(),o=xi(i,e,t,n,r,s);return o!==bt&&xs(i,Jn(),o),Eu}function Mf(e,t,n){hs(Nr,Ss,Pi(Ce(),e,t,n),!0)}function bu(e,t,n){const r=Ce();return lr(r,ks(),t)&&Rr(mt(),cn(),r,e,t,r[11],n,!0),bu}function wu(e,t,n){const r=Ce();if(lr(r,ks(),t)){const i=mt(),o=cn();Rr(i,o,r,e,t,Qd(si(i.data),o,r),n,!0)}return wu}const ei=void 0;var iD=["en",[["a","p"],["AM","PM"],ei],[["AM","PM"],ei,ei],[["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"]],ei,[["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"]],ei,[["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}",ei,"{1} 'at' {0}",ei],[".",",",";","%","+","-","E","\xd7","\u2030","\u221e","NaN",":"],["#,##0.###","#,##0%","\xa4#,##0.00","#E0"],"USD","$","US Dollar",{},"ltr",function sD(e){const n=Math.floor(Math.abs(e)),r=e.toString().replace(/^[^.]*\.?/,"").length;return 1===n&&0===r?1:5}];let Ui={};function Tu(e){const t=function oD(e){return e.toLowerCase().replace(/_/g,"-")}(e);let n=Vf(t);if(n)return n;const r=t.split("-")[0];if(n=Vf(r),n)return n;if("en"===r)return iD;throw new Error(`Missing locale data for the locale "${e}".`)}function Lf(e){return Tu(e)[lt.PluralCase]}function Vf(e){return e in Ui||(Ui[e]=U.ng&&U.ng.common&&U.ng.common.locales&&U.ng.common.locales[e]),Ui[e]}var lt=(()=>((lt=lt||{})[lt.LocaleId=0]="LocaleId",lt[lt.DayPeriodsFormat=1]="DayPeriodsFormat",lt[lt.DayPeriodsStandalone=2]="DayPeriodsStandalone",lt[lt.DaysFormat=3]="DaysFormat",lt[lt.DaysStandalone=4]="DaysStandalone",lt[lt.MonthsFormat=5]="MonthsFormat",lt[lt.MonthsStandalone=6]="MonthsStandalone",lt[lt.Eras=7]="Eras",lt[lt.FirstDayOfWeek=8]="FirstDayOfWeek",lt[lt.WeekendRange=9]="WeekendRange",lt[lt.DateFormat=10]="DateFormat",lt[lt.TimeFormat=11]="TimeFormat",lt[lt.DateTimeFormat=12]="DateTimeFormat",lt[lt.NumberSymbols=13]="NumberSymbols",lt[lt.NumberFormats=14]="NumberFormats",lt[lt.CurrencyCode=15]="CurrencyCode",lt[lt.CurrencySymbol=16]="CurrencySymbol",lt[lt.CurrencyName=17]="CurrencyName",lt[lt.Currencies=18]="Currencies",lt[lt.Directionality=19]="Directionality",lt[lt.PluralCase=20]="PluralCase",lt[lt.ExtraData=21]="ExtraData",lt))();const Ta="en-US";let Bf=Ta;function Au(e,t,n,r,s){if(e=he(e),Array.isArray(e))for(let i=0;i<e.length;i++)Au(e[i],t,n,r,s);else{const i=mt(),o=Ce();let f=Ai(e)?e:he(e.provide),m=sh(e);const S=qt(),M=1048575&S.providerIndexes,F=S.directiveStart,H=S.providerIndexes>>20;if(Ai(e)||!e.multi){const ne=new Bs(m,s,Eo),be=Ou(f,t,s?M:M+H,F);-1===be?(E(pi(S,o),i,f),Iu(i,e,t.length),t.push(f),S.directiveStart++,S.directiveEnd++,s&&(S.providerIndexes+=1048576),n.push(ne),o.push(ne)):(n[be]=ne,o[be]=ne)}else{const ne=Ou(f,t,M+H,F),be=Ou(f,t,M,M+H),Le=ne>=0&&n[ne],Ue=be>=0&&n[be];if(s&&!Ue||!s&&!Le){E(pi(S,o),i,f);const Ze=function sC(e,t,n,r,s){const i=new Bs(e,n,Eo);return i.multi=[],i.index=t,i.componentProviders=0,up(i,s,r&&!n),i}(s?rC:nC,n.length,s,r,m);!s&&Ue&&(n[be].providerFactory=Ze),Iu(i,e,t.length,0),t.push(f),S.directiveStart++,S.directiveEnd++,s&&(S.providerIndexes+=1048576),n.push(Ze),o.push(Ze)}else Iu(i,e,ne>-1?ne:be,up(n[s?be:ne],m,!s&&r));!s&&r&&Ue&&n[be].componentProviders++}}}function Iu(e,t,n,r){const s=Ai(t),i=function Pv(e){return!!e.useClass}(t);if(s||i){const m=(i?he(t.useClass):t).prototype.ngOnDestroy;if(m){const S=e.destroyHooks||(e.destroyHooks=[]);if(!s&&t.multi){const M=S.indexOf(n);-1===M?S.push(n,[r,m]):S[M+1].push(r,m)}else S.push(n,m)}}}function up(e,t,n){return n&&e.componentProviders++,e.multi.push(t)-1}function Ou(e,t,n,r){for(let s=n;s<r;s++)if(t[s]===e)return s;return-1}function nC(e,t,n,r){return Pu(this.multi,[])}function rC(e,t,n,r){const s=this.multi;let i;if(this.providerFactory){const o=this.providerFactory.componentProviders,f=Lt(n,n[1],this.providerFactory.index,r);i=f.slice(0,o),Pu(s,i);for(let m=o;m<f.length;m++)i.push(f[m])}else i=[],Pu(s,i);return i}function Pu(e,t){for(let n=0;n<e.length;n++)t.push((0,e[n])());return t}function cp(e,t=[]){return n=>{n.providersResolver=(r,s)=>function tC(e,t,n){const r=mt();if(r.firstCreatePass){const s=Qt(e);Au(n,r.data,r.blueprint,s,!0),Au(t,r.data,r.blueprint,s,!1)}}(r,s?s(e):e,t)}}class dp{}class aC{resolveComponentFactory(t){throw function oC(e){const t=Error(`No component factory found for ${oe(e)}. Did you add it to @NgModule.entryComponents?`);return t.ngComponent=e,t}(t)}}let Ao=(()=>{class e{}return e.NULL=new aC,e})();function lC(){return $i(qt(),Ce())}function $i(e,t){return new Io(We(e,t))}let Io=(()=>{class e{constructor(n){this.nativeElement=n}}return e.__NG_ELEMENT_ID__=lC,e})();function uC(e){return e instanceof Io?e.nativeElement:e}class fp{}let cC=(()=>{class e{}return e.__NG_ELEMENT_ID__=()=>function hC(){const e=Ce(),n=Ut(qt().index,e);return function dC(e){return e[11]}(mn(n)?n:e)}(),e})(),fC=(()=>{class e{}return e.\u0275prov=gt({token:e,providedIn:"root",factory:()=>null}),e})();class pp{constructor(t){this.full=t,this.major=t.split(".")[0],this.minor=t.split(".")[1],this.patch=t.split(".").slice(2).join(".")}}const pC=new pp("13.2.1"),xu={};function Oa(e,t,n,r,s=!1){for(;null!==n;){const i=t[n.index];if(null!==i&&r.push(Ee(i)),Dn(i))for(let f=10;f<i.length;f++){const m=i[f],S=m[1].firstChild;null!==S&&Oa(m[1],m,S,r)}const o=n.type;if(8&o)Oa(e,t,n.child,r);else if(32&o){const f=gl(n,t);let m;for(;m=f();)r.push(m)}else if(16&o){const f=hd(t,n);if(Array.isArray(f))r.push(...f);else{const m=go(t[16]);Oa(m[1],m,f,r,!0)}}n=s?n.projectionNext:n.next}return r}class Oo{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 Oa(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(Dn(t)){const n=t[8],r=n?n.indexOf(this):-1;r>-1&&(Dl(t,r),ra(n,r))}this._attachedToViewContainer=!1}rd(this._lView[1],this._lView)}onDestroy(t){Bd(this._lView[1],this._lView,null,t)}markForCheck(){$l(this._cdRefInjectingView||this._lView)}detach(){this._lView[2]&=-129}reattach(){this._lView[2]|=128}detectChanges(){zl(this._lView[1],this._lView,this.context)}checkNoChanges(){!function Dv(e,t,n){ri(!0);try{zl(e,t,n)}finally{ri(!1)}}(this._lView[1],this._lView,this.context)}attachToViewContainerRef(){if(this._appRef)throw new ye(902,"");this._attachedToViewContainer=!0}detachFromAppRef(){this._appRef=null,function my(e,t){mo(e,t,t[11],2,null,null)}(this._lView[1],this._lView)}attachToAppRef(t){if(this._attachedToViewContainer)throw new ye(902,"");this._appRef=t}}class gC extends Oo{constructor(t){super(t),this._view=t}detectChanges(){qd(this._view)}checkNoChanges(){!function Cv(e){ri(!0);try{qd(e)}finally{ri(!1)}}(this._view)}get context(){return null}}class gp extends Ao{constructor(t){super(),this.ngModule=t}resolveComponentFactory(t){const n=Pt(t);return new Nu(n,this.ngModule)}}function mp(e){const t=[];for(let n in e)e.hasOwnProperty(n)&&t.push({propName:e[n],templateName:n});return t}const yC=new Mn("SCHEDULER_TOKEN",{providedIn:"root",factory:()=>qc});class Nu extends dp{constructor(t,n){super(),this.componentDef=t,this.ngModule=n,this.componentType=t.type,this.selector=function ky(e){return e.map(Fy).join(",")}(t.selectors),this.ngContentSelectors=t.ngContentSelectors?t.ngContentSelectors:[],this.isBoundToModule=!!n}get inputs(){return mp(this.componentDef.inputs)}get outputs(){return mp(this.componentDef.outputs)}create(t,n,r,s){const i=(s=s||this.ngModule)?function vC(e,t){return{get:(n,r,s)=>{const i=e.get(n,xu,s);return i!==xu||r===xu?i:t.get(n,r,s)}}}(t,s.injector):t,o=i.get(fp,Q),f=i.get(fC,null),m=o.createRenderer(null,this.componentDef),S=this.componentDef.selectors[0][0]||"div",M=r?function Vd(e,t,n){if(N(e))return e.selectRootElement(t,n===Ot.ShadowDom);let r="string"==typeof t?e.querySelector(t):t;return r.textContent="",r}(m,r,this.componentDef.encapsulation):_l(o.createRenderer(null,this.componentDef),S,function mC(e){const t=e.toLowerCase();return"svg"===t?l:"math"===t?D:null}(S)),F=this.componentDef.onPush?576:528,H=function mh(e,t){return{components:[],scheduler:e||qc,clean:Ev,playerHandler:t||null,flags:0}}(),ne=ma(0,null,null,1,0,null,null,null,null,null),be=yo(null,ne,H,F,null,null,o,m,f,i);let Le,Ue;oi(be);try{const Ze=function ph(e,t,n,r,s,i){const o=n[1];n[20]=e;const m=wi(o,20,2,"#host",null),S=m.mergedAttrs=t.hostAttrs;null!==S&&(va(m,S,!0),null!==e&&(Ks(s,e,S),null!==m.classes&&Tl(s,e,m.classes),null!==m.styles&&gd(s,e,m.styles)));const M=r.createRenderer(e,t),F=yo(n,kd(t),null,t.onPush?64:16,n[20],m,r,M,i||null,null);return o.firstCreatePass&&(E(pi(m,n),o,t.type),Gd(o,m),zd(m,n.length,1)),ya(n,F),n[20]=F}(M,this.componentDef,be,o,m);if(M)if(r)Ks(m,M,["ng-version",pC.full]);else{const{attrs:xe,classes:it}=function Ly(e){const t=[],n=[];let r=1,s=2;for(;r<e.length;){let i=e[r];if("string"==typeof i)2===s?""!==i&&t.push(i,e[++r]):8===s&&n.push(i);else{if(!ls(s))break;s=i}r++}return{attrs:t,classes:n}}(this.componentDef.selectors[0]);xe&&Ks(m,M,xe),it&&it.length>0&&Tl(m,M,it.join(" "))}if(Ue=pt(ne,20),void 0!==n){const xe=Ue.projection=[];for(let it=0;it<this.ngContentSelectors.length;it++){const xt=n[it];xe.push(null!=xt?Array.from(xt):null)}}Le=function gh(e,t,n,r,s){const i=n[1],o=function sv(e,t,n){const r=qt();e.firstCreatePass&&(n.providersResolver&&n.providersResolver(n),Wd(e,r,t,Ti(e,t,1,null),n));const s=Lt(t,e,r.directiveStart,r);ar(s,t);const i=We(r,t);return i&&ar(i,t),s}(i,n,t);if(r.components.push(o),e[8]=o,s&&s.forEach(m=>m(o,t)),t.contentQueries){const m=qt();t.contentQueries(1,o,m.directiveStart)}const f=qt();return!i.firstCreatePass||null===t.hostBindings&&null===t.hostAttrs||($r(f.index),Hd(n[1],f,0,f.directiveStart,f.directiveEnd,t),$d(t,o)),o}(Ze,this.componentDef,be,H,[Hv]),vo(ne,be,null)}finally{Ls()}return new DC(this.componentType,Le,$i(Ue,be),be,Ue)}}class DC extends class iC{}{constructor(t,n,r,s,i){super(),this.location=r,this._rootLView=s,this._tNode=i,this.instance=n,this.hostView=this.changeDetectorRef=new gC(s),this.componentType=t}get injector(){return new or(this._tNode,this._rootLView)}destroy(){this.hostView.destroy()}onDestroy(t){this.hostView.onDestroy(t)}}class Gi{}class yp{}const zi=new Map;class Dp extends Gi{constructor(t,n){super(),this._parent=n,this._bootstrapComponents=[],this.injector=this,this.destroyCbs=[],this.componentFactoryResolver=new gp(this);const r=pn(t);this._bootstrapComponents=Cs(r.bootstrap),this._r3Injector=rh(t,n,[{provide:Gi,useValue:this},{provide:Ao,useValue:this.componentFactoryResolver}],oe(t)),this._r3Injector._resolveInjectorDefTypes(),this.instance=this.get(t)}get(t,n=Wr.THROW_IF_NOT_FOUND,r=ie.Default){return t===Wr||t===Gi||t===_a?this:this._r3Injector.get(t,n,r)}destroy(){const t=this._r3Injector;!t.destroyed&&t.destroy(),this.destroyCbs.forEach(n=>n()),this.destroyCbs=null}onDestroy(t){this.destroyCbs.push(t)}}class Ru extends yp{constructor(t){super(),this.moduleType=t,null!==pn(t)&&function EC(e){const t=new Set;!function n(r){const s=pn(r,!0),i=s.id;null!==i&&(function vp(e,t,n){if(t&&t!==n)throw new Error(`Duplicate module registered for ${e} - ${oe(t)} vs ${oe(t.name)}`)}(i,zi.get(i),r),zi.set(i,r));const o=Cs(s.imports);for(const f of o)t.has(f)||(t.add(f),n(f))}(e)}(t)}create(t){return new Dp(this.moduleType,t)}}function Cp(e,t,n){const r=Qn()+e,s=Ce();return s[r]===bt?ws(s,r,n?t.call(n):t()):Co(s,r)}function Ep(e,t,n,r){return Mp(Ce(),Qn(),e,t,n,r)}function bp(e,t,n,r,s){return Ap(Ce(),Qn(),e,t,n,r,s)}function wp(e,t,n,r,s,i){return Ip(Ce(),Qn(),e,t,n,r,s,i)}function Tp(e,t,n,r,s,i,o){return Op(Ce(),Qn(),e,t,n,r,s,i,o)}function Sp(e,t,n,r,s,i,o,f){const m=Qn()+e,S=Ce(),M=Yr(S,m,n,r,s,i);return lr(S,m+4,o)||M?ws(S,m+5,f?t.call(f,n,r,s,i,o):t(n,r,s,i,o)):Co(S,m+5)}function Po(e,t){const n=e[t];return n===bt?void 0:n}function Mp(e,t,n,r,s,i){const o=t+n;return lr(e,o,s)?ws(e,o+1,i?r.call(i,s):r(s)):Po(e,o+1)}function Ap(e,t,n,r,s,i,o){const f=t+n;return Xs(e,f,s,i)?ws(e,f+2,o?r.call(o,s,i):r(s,i)):Po(e,f+2)}function Ip(e,t,n,r,s,i,o,f){const m=t+n;return function Ca(e,t,n,r,s){const i=Xs(e,t,n,r);return lr(e,t+2,s)||i}(e,m,s,i,o)?ws(e,m+3,f?r.call(f,s,i,o):r(s,i,o)):Po(e,m+3)}function Op(e,t,n,r,s,i,o,f,m){const S=t+n;return Yr(e,S,s,i,o,f)?ws(e,S+4,m?r.call(m,s,i,o,f):r(s,i,o,f)):Po(e,S+4)}function xp(e,t){const n=mt();let r;const s=e+20;n.firstCreatePass?(r=function MC(e,t){if(t)for(let n=t.length-1;n>=0;n--){const r=t[n];if(e===r.name)return r}}(t,n.pipeRegistry),n.data[s]=r,r.onDestroy&&(n.destroyHooks||(n.destroyHooks=[])).push(s,r.onDestroy)):r=n.data[s];const i=r.factory||(r.factory=cr(r.type)),o=Oe(Eo);try{const f=fi(!1),m=i();return fi(f),function e_(e,t,n,r){n>=e.data.length&&(e.data[n]=null,e.blueprint[n]=null),t[n]=r}(n,Ce(),s,m),m}finally{Oe(o)}}function Np(e,t,n){const r=e+20,s=Ce(),i=Et(s,r);return xo(s,r)?Mp(s,Qn(),t,i.transform,n,i):i.transform(n)}function Rp(e,t,n,r){const s=e+20,i=Ce(),o=Et(i,s);return xo(i,s)?Ap(i,Qn(),t,o.transform,n,r,o):o.transform(n,r)}function Fp(e,t,n,r,s){const i=e+20,o=Ce(),f=Et(o,i);return xo(o,i)?Ip(o,Qn(),t,f.transform,n,r,s,f):f.transform(n,r,s)}function kp(e,t,n,r,s,i){const o=e+20,f=Ce(),m=Et(f,o);return xo(f,o)?Op(f,Qn(),t,m.transform,n,r,s,i,m):m.transform(n,r,s,i)}function xo(e,t){return e[1].data[t].pure}function Fu(e){return t=>{setTimeout(e,void 0,t)}}const Ms=class IC extends a.xQ{constructor(t=!1){super(),this.__isAsync=t}emit(t){super.next(t)}subscribe(t,n,r){var s,i,o;let f=t,m=n||(()=>null),S=r;if(t&&"object"==typeof t){const F=t;f=null===(s=F.next)||void 0===s?void 0:s.bind(F),m=null===(i=F.error)||void 0===i?void 0:i.bind(F),S=null===(o=F.complete)||void 0===o?void 0:o.bind(F)}this.__isAsync&&(m=Fu(m),f&&(f=Fu(f)),S&&(S=Fu(S)));const M=super.subscribe({next:f,error:m,complete:S});return t instanceof v.w&&t.add(M),M}};function OC(){return this._results[Ii()]()}class Pa{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=Ii(),r=Pa.prototype;r[n]||(r[n]=OC)}get changes(){return this._changes||(this._changes=new Ms)}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 r=this;r.dirty=!1;const s=zr(t);(this._changesDetected=!function Wg(e,t,n){if(e.length!==t.length)return!1;for(let r=0;r<e.length;r++){let s=e[r],i=t[r];if(n&&(s=n(s),i=n(i)),i!==s)return!1}return!0}(r._results,s,n))&&(r._results=s,r.length=s.length,r.last=s[this.length-1],r.first=s[0])}notifyOnChanges(){this._changes&&(this._changesDetected||!this._emitDistinctChangesOnly)&&this._changes.emit(this)}setDirty(){this.dirty=!0}destroy(){this.changes.complete(),this.changes.unsubscribe()}}Symbol;let No=(()=>{class e{}return e.__NG_ELEMENT_ID__=NC,e})();const PC=No,xC=class extends PC{constructor(t,n,r){super(),this._declarationLView=t,this._declarationTContainer=n,this.elementRef=r}createEmbeddedView(t){const n=this._declarationTContainer.tViews,r=yo(this._declarationLView,n,t,16,null,n.declTNode,null,null,null,null);r[17]=this._declarationLView[this._declarationTContainer.index];const i=this._declarationLView[19];return null!==i&&(r[19]=i.createEmbeddedView(n)),vo(n,r,t),new Oo(r)}};function NC(){return xa(qt(),Ce())}function xa(e,t){return 4&e.type?new xC(t,e,$i(e,t)):null}let Na=(()=>{class e{}return e.__NG_ELEMENT_ID__=RC,e})();function RC(){return Bp(qt(),Ce())}const FC=Na,Lp=class extends FC{constructor(t,n,r){super(),this._lContainer=t,this._hostTNode=n,this._hostLView=r}get element(){return $i(this._hostTNode,this._hostLView)}get injector(){return new or(this._hostTNode,this._hostLView)}get parentInjector(){const t=u(this._hostTNode,this._hostLView);if(Qo(t)){const n=Hs(t,this._hostLView),r=Us(t);return new or(n[1].data[r+8],n)}return new or(null,this._hostLView)}clear(){for(;this.length>0;)this.remove(this.length-1)}get(t){const n=Vp(this._lContainer);return null!==n&&n[t]||null}get length(){return this._lContainer.length-10}createEmbeddedView(t,n,r){const s=t.createEmbeddedView(n||{});return this.insert(s,r),s}createComponent(t,n,r,s,i){const o=t&&!function no(e){return"function"==typeof e}(t);let f;if(o)f=n;else{const F=n||{};f=F.index,r=F.injector,s=F.projectableNodes,i=F.ngModuleRef}const m=o?t:new Nu(Pt(t)),S=r||this.parentInjector;if(!i&&null==m.ngModule&&S){const F=S.get(Gi,null);F&&(i=F)}const M=m.create(S,s,void 0,i);return this.insert(M.hostView,f),M}insert(t,n){const r=t._lView,s=r[1];if(function _(e){return Dn(e[3])}(r)){const M=this.indexOf(t);if(-1!==M)this.detach(M);else{const F=r[3],H=new Lp(F,F[6],F[3]);H.detach(H.indexOf(t))}}const i=this._adjustIndex(n),o=this._lContainer;!function vy(e,t,n,r){const s=10+r,i=n.length;r>0&&(n[s-1][4]=t),r<i-10?(t[4]=n[s],mc(n,10+r,t)):(n.push(t),t[4]=null),t[3]=n;const o=t[17];null!==o&&n!==o&&function _y(e,t){const n=e[9];t[16]!==t[3][3][16]&&(e[2]=!0),null===n?e[9]=[t]:n.push(t)}(o,t);const f=t[19];null!==f&&f.insertView(e),t[2]|=128}(s,r,o,i);const f=bl(i,o),m=r[11],S=ca(m,o[7]);return null!==S&&function gy(e,t,n,r,s,i){r[0]=s,r[6]=t,mo(e,r,n,1,s,i)}(s,o[6],m,r,S,f),t.attachToViewContainerRef(),mc(ku(o),i,t),t}move(t,n){return this.insert(t,n)}indexOf(t){const n=Vp(this._lContainer);return null!==n?n.indexOf(t):-1}remove(t){const n=this._adjustIndex(t,-1),r=Dl(this._lContainer,n);r&&(ra(ku(this._lContainer),n),rd(r[1],r))}detach(t){const n=this._adjustIndex(t,-1),r=Dl(this._lContainer,n);return r&&null!=ra(ku(this._lContainer),n)?new Oo(r):null}_adjustIndex(t,n=0){return null==t?this.length+n:t}};function Vp(e){return e[8]}function ku(e){return e[8]||(e[8]=[])}function Bp(e,t){let n;const r=t[e.index];if(Dn(r))n=r;else{let s;if(8&e.type)s=Ee(r);else{const i=t[11];s=i.createComment("");const o=We(e,t);Js(i,ca(i,o),s,function by(e,t){return N(e)?e.nextSibling(t):t.nextSibling}(i,o),!1)}t[e.index]=n=Yd(r,t,s,e),ya(t,n)}return new Lp(n,e,t)}class Lu{constructor(t){this.queryList=t,this.matches=null}clone(){return new Lu(this.queryList)}setDirty(){this.queryList.setDirty()}}class Vu{constructor(t=[]){this.queries=t}createEmbeddedView(t){const n=t.queries;if(null!==n){const r=null!==t.contentQueries?t.contentQueries[0]:n.length,s=[];for(let i=0;i<r;i++){const o=n.getByIndex(i);s.push(this.queries[o.indexInDeclarationView].clone())}return new Vu(s)}return null}insertView(t){this.dirtyQueriesWithMatches(t)}detachView(t){this.dirtyQueriesWithMatches(t)}dirtyQueriesWithMatches(t){for(let n=0;n<this.queries.length;n++)null!==qp(t,n).matches&&this.queries[n].setDirty()}}class jp{constructor(t,n,r=null){this.predicate=t,this.flags=n,this.read=r}}class Bu{constructor(t=[]){this.queries=t}elementStart(t,n){for(let r=0;r<this.queries.length;r++)this.queries[r].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 r=0;r<this.length;r++){const s=null!==n?n.length:0,i=this.getByIndex(r).embeddedTView(t,s);i&&(i.indexInDeclarationView=r,null!==n?n.push(i):n=[i])}return null!==n?new Bu(n):null}template(t,n){for(let r=0;r<this.queries.length;r++)this.queries[r].template(t,n)}getByIndex(t){return this.queries[t]}get length(){return this.queries.length}track(t){this.queries.push(t)}}class ju{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 ju(this.metadata)):null}isApplyingToNode(t){if(this._appliesToNextNode&&1!=(1&this.metadata.flags)){const n=this._declarationNodeIndex;let r=t.parent;for(;null!==r&&8&r.type&&r.index!==n;)r=r.parent;return n===(null!==r?r.index:-1)}return this._appliesToNextNode}matchTNode(t,n){const r=this.metadata.predicate;if(Array.isArray(r))for(let s=0;s<r.length;s++){const i=r[s];this.matchTNodeWithReadOption(t,n,VC(n,i)),this.matchTNodeWithReadOption(t,n,et(n,t,i,!1,!1))}else r===No?4&n.type&&this.matchTNodeWithReadOption(t,n,-1):this.matchTNodeWithReadOption(t,n,et(n,t,r,!1,!1))}matchTNodeWithReadOption(t,n,r){if(null!==r){const s=this.metadata.read;if(null!==s)if(s===Io||s===Na||s===No&&4&n.type)this.addMatch(n.index,-2);else{const i=et(n,t,s,!1,!1);null!==i&&this.addMatch(n.index,i)}else this.addMatch(n.index,r)}}addMatch(t,n){null===this.matches?this.matches=[t,n]:this.matches.push(t,n)}}function VC(e,t){const n=e.localNames;if(null!==n)for(let r=0;r<n.length;r+=2)if(n[r]===t)return n[r+1];return null}function jC(e,t,n,r){return-1===n?function BC(e,t){return 11&e.type?$i(e,t):4&e.type?xa(e,t):null}(t,e):-2===n?function UC(e,t,n){return n===Io?$i(t,e):n===No?xa(t,e):n===Na?Bp(t,e):void 0}(e,t,r):Lt(e,e[1],n,t)}function Up(e,t,n,r){const s=t[19].queries[r];if(null===s.matches){const i=e.data,o=n.matches,f=[];for(let m=0;m<o.length;m+=2){const S=o[m];f.push(S<0?null:jC(t,i[S],o[m+1],n.metadata.read))}s.matches=f}return s.matches}function Uu(e,t,n,r){const s=e.queries.getByIndex(n),i=s.matches;if(null!==i){const o=Up(e,t,s,n);for(let f=0;f<i.length;f+=2){const m=i[f];if(m>0)r.push(o[f/2]);else{const S=i[f+1],M=t[-m];for(let F=10;F<M.length;F++){const H=M[F];H[17]===H[3]&&Uu(H[1],H,S,r)}if(null!==M[9]){const F=M[9];for(let H=0;H<F.length;H++){const ne=F[H];Uu(ne[1],ne,S,r)}}}}}return r}function Hp(e){const t=Ce(),n=mt(),r=Ki();ii(r+1);const s=qp(n,r);if(e.dirty&&un(t)===(2==(2&s.metadata.flags))){if(null===s.matches)e.reset([]);else{const i=s.crossesNgTemplate?Uu(n,t,r,[]):Up(n,t,s,r);e.reset(i,uC),e.notifyOnChanges()}return!0}return!1}function $p(e,t,n){const r=mt();r.firstCreatePass&&(Yp(r,new jp(e,t,n),-1),2==(2&t)&&(r.staticViewQueries=!0)),Wp(r,Ce(),t)}function Gp(e,t,n,r){const s=mt();if(s.firstCreatePass){const i=qt();Yp(s,new jp(t,n,r),i.index),function $C(e,t){const n=e.contentQueries||(e.contentQueries=[]);t!==(n.length?n[n.length-1]:-1)&&n.push(e.queries.length-1,t)}(s,e),2==(2&n)&&(s.staticContentQueries=!0)}Wp(s,Ce(),n)}function zp(){return function HC(e,t){return e[19].queries[t].queryList}(Ce(),Ki())}function Wp(e,t,n){const r=new Pa(4==(4&n));Bd(e,t,r,r.destroy),null===t[19]&&(t[19]=new Vu),t[19].queries.push(new Lu(r))}function Yp(e,t,n){null===e.queries&&(e.queries=new Bu),e.queries.track(new ju(t,n))}function qp(e,t){return e.queries.getByIndex(t)}function Kp(e,t){return xa(e,t)}const oE=eo("Input",e=>({bindingPropertyName:e})),aE=eo("Output",e=>({bindingPropertyName:e})),lE=eo("HostListener",(e,t)=>({eventName:e,args:t}));function ka(...e){}const Yu=new Mn("Application Initializer");let Yi=(()=>{class e{constructor(n){this.appInits=n,this.resolve=ka,this.reject=ka,this.initialized=!1,this.done=!1,this.donePromise=new Promise((r,s)=>{this.resolve=r,this.reject=s})}runInitializers(){if(this.initialized)return;const n=[],r=()=>{this.done=!0,this.resolve()};if(this.appInits)for(let s=0;s<this.appInits.length;s++){const i=this.appInits[s]();if(hu(i))n.push(i);else if(Gh(i)){const o=new Promise((f,m)=>{i.subscribe({complete:f,error:m})});n.push(o)}}Promise.all(n).then(()=>{r()}).catch(s=>{this.reject(s)}),0===n.length&&r(),this.initialized=!0}}return e.\u0275fac=function(n){return new(n||e)(Kn(Yu,8))},e.\u0275prov=gt({token:e,factory:e.\u0275fac}),e})();const hg=new Mn("AppId"),cE={provide:hg,useFactory:function uE(){return`${qu()}${qu()}${qu()}`},deps:[]};function qu(){return String.fromCharCode(97+Math.floor(25*Math.random()))}const fg=new Mn("Platform Initializer"),pg=new Mn("Platform ID"),gg=new Mn("appBootstrapListener");let mg=(()=>{class e{log(n){console.log(n)}warn(n){console.warn(n)}}return e.\u0275fac=function(n){return new(n||e)},e.\u0275prov=gt({token:e,factory:e.\u0275fac}),e})();const La=new Mn("LocaleId"),yg=new Mn("DefaultCurrencyCode");class dE{constructor(t,n){this.ngModuleFactory=t,this.componentFactories=n}}let Ku=(()=>{class e{compileModuleSync(n){return new Ru(n)}compileModuleAsync(n){return Promise.resolve(this.compileModuleSync(n))}compileModuleAndAllComponentsSync(n){const r=this.compileModuleSync(n),i=Cs(pn(n).declarations).reduce((o,f)=>{const m=Pt(f);return m&&o.push(new Nu(m)),o},[]);return new dE(r,i)}compileModuleAndAllComponentsAsync(n){return Promise.resolve(this.compileModuleAndAllComponentsSync(n))}clearCache(){}clearCacheFor(n){}getModuleId(n){}}return e.\u0275fac=function(n){return new(n||e)},e.\u0275prov=gt({token:e,factory:e.\u0275fac}),e})();const fE=(()=>Promise.resolve(0))();function Zu(e){"undefined"==typeof Zone?fE.then(()=>{e&&e.apply(null,null)}):Zone.current.scheduleMicroTask("scheduleMicrotask",e)}class Fr{constructor({enableLongStackTrace:t=!1,shouldCoalesceEventChangeDetection:n=!1,shouldCoalesceRunChangeDetection:r=!1}){if(this.hasPendingMacrotasks=!1,this.hasPendingMicrotasks=!1,this.isStable=!0,this.onUnstable=new Ms(!1),this.onMicrotaskEmpty=new Ms(!1),this.onStable=new Ms(!1),this.onError=new Ms(!1),"undefined"==typeof Zone)throw new Error("In this configuration Angular requires Zone.js");Zone.assertZonePatched();const s=this;s._nesting=0,s._outer=s._inner=Zone.current,Zone.TaskTrackingZoneSpec&&(s._inner=s._inner.fork(new Zone.TaskTrackingZoneSpec)),t&&Zone.longStackTraceZoneSpec&&(s._inner=s._inner.fork(Zone.longStackTraceZoneSpec)),s.shouldCoalesceEventChangeDetection=!r&&n,s.shouldCoalesceRunChangeDetection=r,s.lastRequestAnimationFrameId=-1,s.nativeRequestAnimationFrame=function pE(){let e=U.requestAnimationFrame,t=U.cancelAnimationFrame;if("undefined"!=typeof Zone&&e&&t){const n=e[Zone.__symbol__("OriginalDelegate")];n&&(e=n);const r=t[Zone.__symbol__("OriginalDelegate")];r&&(t=r)}return{nativeRequestAnimationFrame:e,nativeCancelAnimationFrame:t}}().nativeRequestAnimationFrame,function yE(e){const t=()=>{!function mE(e){e.isCheckStableRunning||-1!==e.lastRequestAnimationFrameId||(e.lastRequestAnimationFrameId=e.nativeRequestAnimationFrame.call(U,()=>{e.fakeTopEventTask||(e.fakeTopEventTask=Zone.root.scheduleEventTask("fakeTopEventTask",()=>{e.lastRequestAnimationFrameId=-1,Ju(e),e.isCheckStableRunning=!0,Qu(e),e.isCheckStableRunning=!1},void 0,()=>{},()=>{})),e.fakeTopEventTask.invoke()}),Ju(e))}(e)};e._inner=e._inner.fork({name:"angular",properties:{isAngularZone:!0},onInvokeTask:(n,r,s,i,o,f)=>{try{return vg(e),n.invokeTask(s,i,o,f)}finally{(e.shouldCoalesceEventChangeDetection&&"eventTask"===i.type||e.shouldCoalesceRunChangeDetection)&&t(),_g(e)}},onInvoke:(n,r,s,i,o,f,m)=>{try{return vg(e),n.invoke(s,i,o,f,m)}finally{e.shouldCoalesceRunChangeDetection&&t(),_g(e)}},onHasTask:(n,r,s,i)=>{n.hasTask(s,i),r===s&&("microTask"==i.change?(e._hasPendingMicrotasks=i.microTask,Ju(e),Qu(e)):"macroTask"==i.change&&(e.hasPendingMacrotasks=i.macroTask))},onHandleError:(n,r,s,i)=>(n.handleError(s,i),e.runOutsideAngular(()=>e.onError.emit(i)),!1)})}(s)}static isInAngularZone(){return"undefined"!=typeof Zone&&!0===Zone.current.get("isAngularZone")}static assertInAngularZone(){if(!Fr.isInAngularZone())throw new Error("Expected to be in Angular Zone, but it is not!")}static assertNotInAngularZone(){if(Fr.isInAngularZone())throw new Error("Expected to not be in Angular Zone, but it is!")}run(t,n,r){return this._inner.run(t,n,r)}runTask(t,n,r,s){const i=this._inner,o=i.scheduleEventTask("NgZoneEvent: "+s,t,gE,ka,ka);try{return i.runTask(o,n,r)}finally{i.cancelTask(o)}}runGuarded(t,n,r){return this._inner.runGuarded(t,n,r)}runOutsideAngular(t){return this._outer.run(t)}}const gE={};function Qu(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 Ju(e){e.hasPendingMicrotasks=!!(e._hasPendingMicrotasks||(e.shouldCoalesceEventChangeDetection||e.shouldCoalesceRunChangeDetection)&&-1!==e.lastRequestAnimationFrameId)}function vg(e){e._nesting++,e.isStable&&(e.isStable=!1,e.onUnstable.emit(null))}function _g(e){e._nesting--,Qu(e)}class vE{constructor(){this.hasPendingMicrotasks=!1,this.hasPendingMacrotasks=!1,this.isStable=!0,this.onUnstable=new Ms,this.onMicrotaskEmpty=new Ms,this.onStable=new Ms,this.onError=new Ms}run(t,n,r){return t.apply(n,r)}runGuarded(t,n,r){return t.apply(n,r)}runOutsideAngular(t){return t()}runTask(t,n,r,s){return t.apply(n,r)}}let Dg=(()=>{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:()=>{Fr.assertNotInAngularZone(),Zu(()=>{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())Zu(()=>{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(r=>!r.updateCb||!r.updateCb(n)||(clearTimeout(r.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,r,s){let i=-1;r&&r>0&&(i=setTimeout(()=>{this._callbacks=this._callbacks.filter(o=>o.timeoutId!==i),n(this._didWork,this.getPendingTasks())},r)),this._callbacks.push({doneCb:n,timeoutId:i,updateCb:s})}whenStable(n,r,s){if(s&&!this.taskTrackingZone)throw new Error('Task tracking zone is required when passing an update callback to whenStable(). Is "zone.js/plugins/task-tracking" loaded?');this.addCallback(n,r,s),this._runCallbacksIfReady()}getPendingRequestCount(){return this._pendingCount}findProviders(n,r,s){return[]}}return e.\u0275fac=function(n){return new(n||e)(Kn(Fr))},e.\u0275prov=gt({token:e,factory:e.\u0275fac}),e})(),Cg=(()=>{class e{constructor(){this._applications=new Map,Xu.addToWindow(this)}registerApplication(n,r){this._applications.set(n,r)}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,r=!0){return Xu.findTestabilityInTree(this,n,r)}}return e.\u0275fac=function(n){return new(n||e)},e.\u0275prov=gt({token:e,factory:e.\u0275fac}),e})();class _E{addToWindow(t){}findTestabilityInTree(t,n,r){return null}}function DE(e){Xu=e}let fs,Xu=new _E;const Eg=new Mn("AllowMultipleToken");class bE{constructor(t,n){this.name=t,this.token=n}}function bg(e,t,n=[]){const r=`Platform: ${t}`,s=new Mn(r);return(i=[])=>{let o=wg();if(!o||o.injector.get(Eg,!1))if(e)e(n.concat(i).concat({provide:s,useValue:!0}));else{const f=n.concat(i).concat({provide:s,useValue:!0},{provide:Yl,useValue:"platform"});!function wE(e){if(fs&&!fs.destroyed&&!fs.injector.get(Eg,!1))throw new ye(400,"");fs=e.get(Tg);const t=e.get(fg,null);t&&t.forEach(n=>n())}(Wr.create({providers:f,name:r}))}return function TE(e){const t=wg();if(!t)throw new ye(401,"");return t}()}}function wg(){return fs&&!fs.destroyed?fs:null}let Tg=(()=>{class e{constructor(n){this._injector=n,this._modules=[],this._destroyListeners=[],this._destroyed=!1}bootstrapModuleFactory(n,r){const f=function SE(e,t){let n;return n="noop"===e?new vE:("zone.js"===e?void 0:e)||new Fr({enableLongStackTrace:!1,shouldCoalesceEventChangeDetection:!!(null==t?void 0:t.ngZoneEventCoalescing),shouldCoalesceRunChangeDetection:!!(null==t?void 0:t.ngZoneRunCoalescing)}),n}(r?r.ngZone:void 0,{ngZoneEventCoalescing:r&&r.ngZoneEventCoalescing||!1,ngZoneRunCoalescing:r&&r.ngZoneRunCoalescing||!1}),m=[{provide:Fr,useValue:f}];return f.run(()=>{const S=Wr.create({providers:m,parent:this.injector,name:n.moduleType.name}),M=n.create(S),F=M.injector.get(po,null);if(!F)throw new ye(402,"");return f.runOutsideAngular(()=>{const H=f.onError.subscribe({next:ne=>{F.handleError(ne)}});M.onDestroy(()=>{ec(this._modules,M),H.unsubscribe()})}),function ME(e,t,n){try{const r=n();return hu(r)?r.catch(s=>{throw t.runOutsideAngular(()=>e.handleError(s)),s}):r}catch(r){throw t.runOutsideAngular(()=>e.handleError(r)),r}}(F,f,()=>{const H=M.injector.get(Yi);return H.runInitializers(),H.donePromise.then(()=>(function cD(e){Me(e,"Expected localeId to be defined"),"string"==typeof e&&(Bf=e.toLowerCase().replace(/_/g,"-"))}(M.injector.get(La,Ta)||Ta),this._moduleDoBootstrap(M),M))})})}bootstrapModule(n,r=[]){const s=Sg({},r);return function CE(e,t,n){const r=new Ru(n);return Promise.resolve(r)}(0,0,n).then(i=>this.bootstrapModuleFactory(i,s))}_moduleDoBootstrap(n){const r=n.injector.get(Fo);if(n._bootstrapComponents.length>0)n._bootstrapComponents.forEach(s=>r.bootstrap(s));else{if(!n.instance.ngDoBootstrap)throw new ye(403,"");n.instance.ngDoBootstrap(r)}this._modules.push(n)}onDestroy(n){this._destroyListeners.push(n)}get injector(){return this._injector}destroy(){if(this._destroyed)throw new ye(404,"");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)(Kn(Wr))},e.\u0275prov=gt({token:e,factory:e.\u0275fac}),e})();function Sg(e,t){return Array.isArray(t)?t.reduce(Sg,e):Object.assign(Object.assign({},e),t)}let Fo=(()=>{class e{constructor(n,r,s,i,o){this._zone=n,this._injector=r,this._exceptionHandler=s,this._componentFactoryResolver=i,this._initStatus=o,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 f=new re.y(S=>{this._stable=this._zone.isStable&&!this._zone.hasPendingMacrotasks&&!this._zone.hasPendingMicrotasks,this._zone.runOutsideAngular(()=>{S.next(this._stable),S.complete()})}),m=new re.y(S=>{let M;this._zone.runOutsideAngular(()=>{M=this._zone.onStable.subscribe(()=>{Fr.assertNotInAngularZone(),Zu(()=>{!this._stable&&!this._zone.hasPendingMacrotasks&&!this._zone.hasPendingMicrotasks&&(this._stable=!0,S.next(!0))})})});const F=this._zone.onUnstable.subscribe(()=>{Fr.assertInAngularZone(),this._stable&&(this._stable=!1,this._zone.runOutsideAngular(()=>{S.next(!1)}))});return()=>{M.unsubscribe(),F.unsubscribe()}});this.isStable=(0,ue.T)(f,m.pipe(function $(){return e=>(0,ee.x)()(function Y(e,t){return function(r){let s;if(s="function"==typeof e?e:function(){return e},"function"==typeof t)return r.lift(new K(s,t));const i=Object.create(r,V.N);return i.source=r,i.subjectFactory=s,i}}(J)(e))}()))}bootstrap(n,r){if(!this._initStatus.done)throw new ye(405,"");let s;s=n instanceof dp?n:this._componentFactoryResolver.resolveComponentFactory(n),this.componentTypes.push(s.componentType);const i=function EE(e){return e.isBoundToModule}(s)?void 0:this._injector.get(Gi),f=s.create(Wr.NULL,[],r||s.selector,i),m=f.location.nativeElement,S=f.injector.get(Dg,null),M=S&&f.injector.get(Cg);return S&&M&&M.registerApplication(m,S),f.onDestroy(()=>{this.detachView(f.hostView),ec(this.components,f),M&&M.unregisterApplication(m)}),this._loadComponent(f),f}tick(){if(this._runningTick)throw new ye(101,"");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 r=n;this._views.push(r),r.attachToAppRef(this)}detachView(n){const r=n;ec(this._views,r),r.detachFromAppRef()}_loadComponent(n){this.attachView(n.hostView),this.tick(),this.components.push(n),this._injector.get(gg,[]).concat(this._bootstrapListeners).forEach(s=>s(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)(Kn(Fr),Kn(Wr),Kn(po),Kn(Ao),Kn(Yi))},e.\u0275prov=gt({token:e,factory:e.\u0275fac}),e})();function ec(e,t){const n=e.indexOf(t);n>-1&&e.splice(n,1)}let Ag=!0;function IE(){Ag=!1}let OE=(()=>{class e{}return e.__NG_ELEMENT_ID__=PE,e})();function PE(e){return function xE(e,t,n){if(ir(e)&&!n){const r=Ut(e.index,t);return new Oo(r,r)}return 47&e.type?new Oo(t[16],t):null}(qt(),Ce(),16==(16&e))}class Fg{constructor(){}supports(t){return Do(t)}create(t){return new VE(t)}}const LE=(e,t)=>t;class VE{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||LE}forEachItem(t){let n;for(n=this._itHead;null!==n;n=n._next)t(n)}forEachOperation(t){let n=this._itHead,r=this._removalsHead,s=0,i=null;for(;n||r;){const o=!r||n&&n.currentIndex<Lg(r,s,i)?n:r,f=Lg(o,s,i),m=o.currentIndex;if(o===r)s--,r=r._nextRemoved;else if(n=n._next,null==o.previousIndex)s++;else{i||(i=[]);const S=f-s,M=m-s;if(S!=M){for(let H=0;H<S;H++){const ne=H<i.length?i[H]:i[H]=0,be=ne+H;M<=be&&be<S&&(i[H]=ne+1)}i[o.previousIndex]=M-S}}f!==m&&t(o,f,m)}}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=[]),!Do(t))throw new ye(900,"");return this.check(t)?this:null}onDestroy(){}check(t){this._reset();let s,i,o,n=this._itHead,r=!1;if(Array.isArray(t)){this.length=t.length;for(let f=0;f<this.length;f++)i=t[f],o=this._trackByFn(f,i),null!==n&&Object.is(n.trackById,o)?(r&&(n=this._verifyReinsertion(n,i,o,f)),Object.is(n.item,i)||this._addIdentityChange(n,i)):(n=this._mismatch(n,i,o,f),r=!0),n=n._next}else s=0,function Jv(e,t){if(Array.isArray(e))for(let n=0;n<e.length;n++)t(e[n]);else{const n=e[Ii()]();let r;for(;!(r=n.next()).done;)t(r.value)}}(t,f=>{o=this._trackByFn(s,f),null!==n&&Object.is(n.trackById,o)?(r&&(n=this._verifyReinsertion(n,f,o,s)),Object.is(n.item,f)||this._addIdentityChange(n,f)):(n=this._mismatch(n,f,o,s),r=!0),n=n._next,s++}),this.length=s;return this._truncate(n),this.collection=t,this.isDirty}get isDirty(){return null!==this._additionsHead||null!==this._movesHead||null!==this._removalsHead||null!==this._identityChangesHead}_reset(){if(this.isDirty){let t;for(t=this._previousItHead=this._itHead;null!==t;t=t._next)t._nextPrevious=t._next;for(t=this._additionsHead;null!==t;t=t._nextAdded)t.previousIndex=t.currentIndex;for(this._additionsHead=this._additionsTail=null,t=this._movesHead;null!==t;t=t._nextMoved)t.previousIndex=t.currentIndex;this._movesHead=this._movesTail=null,this._removalsHead=this._removalsTail=null,this._identityChangesHead=this._identityChangesTail=null}}_mismatch(t,n,r,s){let i;return null===t?i=this._itTail:(i=t._prev,this._remove(t)),null!==(t=null===this._unlinkedRecords?null:this._unlinkedRecords.get(r,null))?(Object.is(t.item,n)||this._addIdentityChange(t,n),this._reinsertAfter(t,i,s)):null!==(t=null===this._linkedRecords?null:this._linkedRecords.get(r,s))?(Object.is(t.item,n)||this._addIdentityChange(t,n),this._moveAfter(t,i,s)):t=this._addAfter(new BE(n,r),i,s),t}_verifyReinsertion(t,n,r,s){let i=null===this._unlinkedRecords?null:this._unlinkedRecords.get(r,null);return null!==i?t=this._reinsertAfter(i,t._prev,s):t.currentIndex!=s&&(t.currentIndex=s,this._addToMoves(t,s)),t}_truncate(t){for(;null!==t;){const n=t._next;this._addToRemovals(this._unlink(t)),t=n}null!==this._unlinkedRecords&&this._unlinkedRecords.clear(),null!==this._additionsTail&&(this._additionsTail._nextAdded=null),null!==this._movesTail&&(this._movesTail._nextMoved=null),null!==this._itTail&&(this._itTail._next=null),null!==this._removalsTail&&(this._removalsTail._nextRemoved=null),null!==this._identityChangesTail&&(this._identityChangesTail._nextIdentityChange=null)}_reinsertAfter(t,n,r){null!==this._unlinkedRecords&&this._unlinkedRecords.remove(t);const s=t._prevRemoved,i=t._nextRemoved;return null===s?this._removalsHead=i:s._nextRemoved=i,null===i?this._removalsTail=s:i._prevRemoved=s,this._insertAfter(t,n,r),this._addToMoves(t,r),t}_moveAfter(t,n,r){return this._unlink(t),this._insertAfter(t,n,r),this._addToMoves(t,r),t}_addAfter(t,n,r){return this._insertAfter(t,n,r),this._additionsTail=null===this._additionsTail?this._additionsHead=t:this._additionsTail._nextAdded=t,t}_insertAfter(t,n,r){const s=null===n?this._itHead:n._next;return t._next=s,t._prev=n,null===s?this._itTail=t:s._prev=t,null===n?this._itHead=t:n._next=t,null===this._linkedRecords&&(this._linkedRecords=new kg),this._linkedRecords.put(t),t.currentIndex=r,t}_remove(t){return this._addToRemovals(this._unlink(t))}_unlink(t){null!==this._linkedRecords&&this._linkedRecords.remove(t);const n=t._prev,r=t._next;return null===n?this._itHead=r:n._next=r,null===r?this._itTail=n:r._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 kg),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 BE{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 jE{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 r;for(r=this._head;null!==r;r=r._nextDup)if((null===n||n<=r.currentIndex)&&Object.is(r.trackById,t))return r;return null}remove(t){const n=t._prevDup,r=t._nextDup;return null===n?this._head=r:n._nextDup=r,null===r?this._tail=n:r._prevDup=n,null===this._head}}class kg{constructor(){this.map=new Map}put(t){const n=t.trackById;let r=this.map.get(n);r||(r=new jE,this.map.set(n,r)),r.add(t)}get(t,n){const s=this.map.get(t);return s?s.get(t,n):null}remove(t){const n=t.trackById;return this.map.get(n).remove(t)&&this.map.delete(n),t}get isEmpty(){return 0===this.map.size}clear(){this.map.clear()}}function Lg(e,t,n){const r=e.previousIndex;if(null===r)return r;let s=0;return n&&r<n.length&&(s=n[r]),r+t+s}class Vg{constructor(){}supports(t){return t instanceof Map||eu(t)}create(){return new UE}}class UE{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||eu(t)))throw new ye(900,"")}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,(r,s)=>{if(n&&n.key===s)this._maybeAddToChanges(n,r),this._appendAfter=n,n=n._next;else{const i=this._getOrCreateRecordForKey(s,r);n=this._insertBeforeOrAppend(n,i)}}),n){n._prev&&(n._prev._next=null),this._removalsHead=n;for(let r=n;null!==r;r=r._nextRemoved)r===this._mapHead&&(this._mapHead=null),this._records.delete(r.key),r._nextRemoved=r._next,r.previousValue=r.currentValue,r.currentValue=null,r._prev=null,r._next=null}return this._changesTail&&(this._changesTail._nextChanged=null),this._additionsTail&&(this._additionsTail._nextAdded=null),this.isDirty}_insertBeforeOrAppend(t,n){if(t){const r=t._prev;return n._next=t,n._prev=r,t._prev=n,r&&(r._next=n),t===this._mapHead&&(this._mapHead=n),this._appendAfter=t,t}return this._appendAfter?(this._appendAfter._next=n,n._prev=this._appendAfter):this._mapHead=n,this._appendAfter=n,null}_getOrCreateRecordForKey(t,n){if(this._records.has(t)){const s=this._records.get(t);this._maybeAddToChanges(s,n);const i=s._prev,o=s._next;return i&&(i._next=o),o&&(o._prev=i),s._next=null,s._prev=null,s}const r=new HE(t);return this._records.set(t,r),r.currentValue=n,this._addToAdditions(r),r}_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(r=>n(t[r],r))}}class HE{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 Bg(){return new Ba([new Fg])}let Ba=(()=>{class e{constructor(n){this.factories=n}static create(n,r){if(null!=r){const s=r.factories.slice();n=n.concat(s)}return new e(n)}static extend(n){return{provide:e,useFactory:r=>e.create(n,r||Bg()),deps:[[e,new vi,new Zs]]}}find(n){const r=this.factories.find(s=>s.supports(n));if(null!=r)return r;throw new ye(901,"")}}return e.\u0275prov=gt({token:e,providedIn:"root",factory:Bg}),e})();function jg(){return new ja([new Vg])}let ja=(()=>{class e{constructor(n){this.factories=n}static create(n,r){if(r){const s=r.factories.slice();n=n.concat(s)}return new e(n)}static extend(n){return{provide:e,useFactory:r=>e.create(n,r||jg()),deps:[[e,new vi,new Zs]]}}find(n){const r=this.factories.find(i=>i.supports(n));if(r)return r;throw new ye(901,"")}}return e.\u0275prov=gt({token:e,providedIn:"root",factory:jg}),e})();const $E=[new Vg],zE=new Ba([new Fg]),WE=new ja($E),YE=bg(null,"core",[{provide:pg,useValue:"unknown"},{provide:Tg,deps:[Wr]},{provide:Cg,deps:[]},{provide:mg,deps:[]}]),JE=[{provide:Fo,useClass:Fo,deps:[Fr,Wr,po,Ao,Yi]},{provide:yC,deps:[Fr],useFactory:function XE(e){let t=[];return e.onStable.subscribe(()=>{for(;t.length;)t.pop()()}),function(n){t.push(n)}}},{provide:Yi,useClass:Yi,deps:[[new Zs,Yu]]},{provide:Ku,useClass:Ku,deps:[]},cE,{provide:Ba,useFactory:function qE(){return zE},deps:[]},{provide:ja,useFactory:function KE(){return WE},deps:[]},{provide:La,useFactory:function ZE(e){return e||function QE(){return"undefined"!=typeof $localize&&$localize.locale||Ta}()},deps:[[new ao(La),new Zs,new vi]]},{provide:yg,useValue:"USD"}];let eb=(()=>{class e{constructor(n){}}return e.\u0275fac=function(n){return new(n||e)(Kn(Fo))},e.\u0275mod=X({type:e}),e.\u0275inj=Nt({providers:JE}),e})()},4182:(Ye,ve,x)=>{x.d(ve,{Wl:()=>Ie,Fj:()=>Fe,NI:()=>$t,oH:()=>Kr,sg:()=>vr,u5:()=>Ct,nD:()=>Q,Cf:()=>_e,JU:()=>ce,a5:()=>fn,JJ:()=>Jt,JL:()=>ie,F:()=>Yn,On:()=>mn,wV:()=>ir,c5:()=>Ee,UX:()=>pt,Q7:()=>A,kI:()=>wt,_Y:()=>Dn});var a=x(6435),v=x(9808),re=x(2916),ue=x(6688),V=x(4850),Y=x(7830),K=x(5254);function J(b,_){return new re.y(y=>{const O=b.length;if(0===O)return void y.complete();const me=new Array(O);let Pe=0,zt=0;for(let Tn=0;Tn<O;Tn++){const Ir=(0,K.D)(b[Tn]);let $e=!1;y.add(Ir.subscribe({next:qe=>{$e||($e=!0,zt++),me[Tn]=qe},error:qe=>y.error(qe),complete:()=>{Pe++,(Pe===O||!$e)&&(zt===O&&y.next(_?_.reduce((qe,st,It)=>(qe[st]=me[It],qe),{}):me),y.complete())}}))}})}let $=(()=>{class b{constructor(y,O){this._renderer=y,this._elementRef=O,this.onChange=me=>{},this.onTouched=()=>{}}setProperty(y,O){this._renderer.setProperty(this._elementRef.nativeElement,y,O)}registerOnTouched(y){this.onTouched=y}registerOnChange(y){this.onChange=y}setDisabledState(y){this.setProperty("disabled",y)}}return b.\u0275fac=function(y){return new(y||b)(a.Y36(a.Qsj),a.Y36(a.SBq))},b.\u0275dir=a.lG2({type:b}),b})(),W=(()=>{class b extends ${}return b.\u0275fac=function(){let _;return function(O){return(_||(_=a.n5z(b)))(O||b)}}(),b.\u0275dir=a.lG2({type:b,features:[a.qOj]}),b})();const ce=new a.OlP("NgValueAccessor"),oe={provide:ce,useExisting:(0,a.Gpc)(()=>Ie),multi:!0};let Ie=(()=>{class b extends W{writeValue(y){this.setProperty("checked",y)}}return b.\u0275fac=function(){let _;return function(O){return(_||(_=a.n5z(b)))(O||b)}}(),b.\u0275dir=a.lG2({type:b,selectors:[["input","type","checkbox","formControlName",""],["input","type","checkbox","formControl",""],["input","type","checkbox","ngModel",""]],hostBindings:function(y,O){1&y&&a.NdJ("change",function(Pe){return O.onChange(Pe.target.checked)})("blur",function(){return O.onTouched()})},features:[a._Bn([oe]),a.qOj]}),b})();const Se={provide:ce,useExisting:(0,a.Gpc)(()=>Fe),multi:!0},he=new a.OlP("CompositionEventMode");let Fe=(()=>{class b extends ${constructor(y,O,me){super(y,O),this._compositionMode=me,this._composing=!1,null==this._compositionMode&&(this._compositionMode=!function ge(){const b=(0,v.q)()?(0,v.q)().getUserAgent():"";return/android (\d+)/.test(b.toLowerCase())}())}writeValue(y){this.setProperty("value",null==y?"":y)}_handleInput(y){(!this._compositionMode||this._compositionMode&&!this._composing)&&this.onChange(y)}_compositionStart(){this._composing=!0}_compositionEnd(y){this._composing=!1,this._compositionMode&&this.onChange(y)}}return b.\u0275fac=function(y){return new(y||b)(a.Y36(a.Qsj),a.Y36(a.SBq),a.Y36(he,8))},b.\u0275dir=a.lG2({type:b,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(y,O){1&y&&a.NdJ("input",function(Pe){return O._handleInput(Pe.target.value)})("blur",function(){return O.onTouched()})("compositionstart",function(){return O._compositionStart()})("compositionend",function(Pe){return O._compositionEnd(Pe.target.value)})},features:[a._Bn([Se]),a.qOj]}),b})();function Ne(b){return null==b||0===b.length}function ye(b){return null!=b&&"number"==typeof b.length}const _e=new a.OlP("NgValidators"),te=new a.OlP("NgAsyncValidators"),Ge=/^(?=.{1,254}$)(?=.{1,64}@)[a-zA-Z0-9!#$%&'*+/=?^_`{|}~-]+(?:\.[a-zA-Z0-9!#$%&'*+/=?^_`{|}~-]+)*@[a-zA-Z0-9](?:[a-zA-Z0-9-]{0,61}[a-zA-Z0-9])?(?:\.[a-zA-Z0-9](?:[a-zA-Z0-9-]{0,61}[a-zA-Z0-9])?)*$/;class wt{static min(_){return function dt(b){return _=>{if(Ne(_.value)||Ne(b))return null;const y=parseFloat(_.value);return!isNaN(y)&&y<b?{min:{min:b,actual:_.value}}:null}}(_)}static max(_){return function ot(b){return _=>{if(Ne(_.value)||Ne(b))return null;const y=parseFloat(_.value);return!isNaN(y)&&y>b?{max:{max:b,actual:_.value}}:null}}(_)}static required(_){return ht(_)}static requiredTrue(_){return function rt(b){return!0===b.value?null:{required:!0}}(_)}static email(_){return function _t(b){return Ne(b.value)||Ge.test(b.value)?null:{email:!0}}(_)}static minLength(_){return function tt(b){return _=>Ne(_.value)||!ye(_.value)?null:_.value.length<b?{minlength:{requiredLength:b,actualLength:_.value.length}}:null}(_)}static maxLength(_){return ft(_)}static pattern(_){return Ve(_)}static nullValidator(_){return null}static compose(_){return we(_)}static composeAsync(_){return B(_)}}function ht(b){return Ne(b.value)?{required:!0}:null}function ft(b){return _=>ye(_.value)&&_.value.length>b?{maxlength:{requiredLength:b,actualLength:_.value.length}}:null}function Ve(b){if(!b)return Cn;let _,y;return"string"==typeof b?(y="","^"!==b.charAt(0)&&(y+="^"),y+=b,"$"!==b.charAt(b.length-1)&&(y+="$"),_=new RegExp(y)):(y=b.toString(),_=b),O=>{if(Ne(O.value))return null;const me=O.value;return _.test(me)?null:{pattern:{requiredPattern:y,actualValue:me}}}}function Cn(b){return null}function yn(b){return null!=b}function dn(b){const _=(0,a.QGY)(b)?(0,K.D)(b):b;return(0,a.CqO)(_),_}function Ln(b){let _={};return b.forEach(y=>{_=null!=y?Object.assign(Object.assign({},_),y):_}),0===Object.keys(_).length?null:_}function on(b,_){return _.map(y=>y(b))}function tn(b){return b.map(_=>function St(b){return!b.validate}(_)?_:y=>_.validate(y))}function we(b){if(!b)return null;const _=b.filter(yn);return 0==_.length?null:function(y){return Ln(on(y,_))}}function Me(b){return null!=b?we(tn(b)):null}function B(b){if(!b)return null;const _=b.filter(yn);return 0==_.length?null:function(y){return function ee(...b){if(1===b.length){const _=b[0];if((0,ue.k)(_))return J(_,null);if((0,Y.K)(_)&&Object.getPrototypeOf(_)===Object.prototype){const y=Object.keys(_);return J(y.map(O=>_[O]),y)}}if("function"==typeof b[b.length-1]){const _=b.pop();return J(b=1===b.length&&(0,ue.k)(b[0])?b[0]:b,null).pipe((0,V.U)(y=>_(...y)))}return J(b,null)}(on(y,_).map(dn)).pipe((0,V.U)(Ln))}}function ae(b){return null!=b?B(tn(b)):null}function ke(b,_){return null===b?[_]:Array.isArray(b)?[...b,_]:[b,_]}function nt(b){return b._rawValidators}function gt(b){return b._rawAsyncValidators}function Vt(b){return b?Array.isArray(b)?b:[b]:[]}function Nt(b,_){return Array.isArray(b)?b.includes(_):b===_}function hn(b,_){const y=Vt(_);return Vt(b).forEach(me=>{Nt(y,me)||y.push(me)}),y}function Mt(b,_){return Vt(_).filter(y=>!Nt(b,y))}class nn{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(_){this._rawValidators=_||[],this._composedValidatorFn=Me(this._rawValidators)}_setAsyncValidators(_){this._rawAsyncValidators=_||[],this._composedAsyncValidatorFn=ae(this._rawAsyncValidators)}get validator(){return this._composedValidatorFn||null}get asyncValidator(){return this._composedAsyncValidatorFn||null}_registerOnDestroy(_){this._onDestroyCallbacks.push(_)}_invokeOnDestroyCallbacks(){this._onDestroyCallbacks.forEach(_=>_()),this._onDestroyCallbacks=[]}reset(_){this.control&&this.control.reset(_)}hasError(_,y){return!!this.control&&this.control.hasError(_,y)}getError(_,y){return this.control?this.control.getError(_,y):null}}class fn extends nn{constructor(){super(...arguments),this._parent=null,this.name=null,this.valueAccessor=null}}class Bt extends nn{get formDirective(){return null}get path(){return null}}class In{constructor(_){this._cd=_}is(_){var y,O,me;return"submitted"===_?!!(null===(y=this._cd)||void 0===y?void 0:y.submitted):!!(null===(me=null===(O=this._cd)||void 0===O?void 0:O.control)||void 0===me?void 0:me[_])}}let Jt=(()=>{class b extends In{constructor(y){super(y)}}return b.\u0275fac=function(y){return new(y||b)(a.Y36(fn,2))},b.\u0275dir=a.lG2({type:b,selectors:[["","formControlName",""],["","ngModel",""],["","formControl",""]],hostVars:14,hostBindings:function(y,O){2&y&&a.ekj("ng-untouched",O.is("untouched"))("ng-touched",O.is("touched"))("ng-pristine",O.is("pristine"))("ng-dirty",O.is("dirty"))("ng-valid",O.is("valid"))("ng-invalid",O.is("invalid"))("ng-pending",O.is("pending"))},features:[a.qOj]}),b})(),ie=(()=>{class b extends In{constructor(y){super(y)}}return b.\u0275fac=function(y){return new(y||b)(a.Y36(Bt,10))},b.\u0275dir=a.lG2({type:b,selectors:[["","formGroupName",""],["","formArrayName",""],["","ngModelGroup",""],["","formGroup",""],["form",3,"ngNoForm",""],["","ngForm",""]],hostVars:16,hostBindings:function(y,O){2&y&&a.ekj("ng-untouched",O.is("untouched"))("ng-touched",O.is("touched"))("ng-pristine",O.is("pristine"))("ng-dirty",O.is("dirty"))("ng-valid",O.is("valid"))("ng-invalid",O.is("invalid"))("ng-pending",O.is("pending"))("ng-submitted",O.is("submitted"))},features:[a.qOj]}),b})();function Dt(b,_){zn(b,_),_.valueAccessor.writeValue(b.value),function En(b,_){_.valueAccessor.registerOnChange(y=>{b._pendingValue=y,b._pendingChange=!0,b._pendingDirty=!0,"change"===b.updateOn&&Lr(b,_)})}(b,_),function er(b,_){const y=(O,me)=>{_.valueAccessor.writeValue(O),me&&_.viewToModelUpdate(O)};b.registerOnChange(y),_._registerOnDestroy(()=>{b._unregisterOnChange(y)})}(b,_),function Vn(b,_){_.valueAccessor.registerOnTouched(()=>{b._pendingTouched=!0,"blur"===b.updateOn&&b._pendingChange&&Lr(b,_),"submit"!==b.updateOn&&b.markAsTouched()})}(b,_),function an(b,_){if(_.valueAccessor.setDisabledState){const y=O=>{_.valueAccessor.setDisabledState(O)};b.registerOnDisabledChange(y),_._registerOnDestroy(()=>{b._unregisterOnDisabledChange(y)})}}(b,_)}function at(b,_,y=!0){const O=()=>{};_.valueAccessor&&(_.valueAccessor.registerOnChange(O),_.valueAccessor.registerOnTouched(O)),Xn(b,_),b&&(_._invokeOnDestroyCallbacks(),b._registerOnCollectionChange(()=>{}))}function Tt(b,_){b.forEach(y=>{y.registerOnValidatorChange&&y.registerOnValidatorChange(_)})}function zn(b,_){const y=nt(b);null!==_.validator?b.setValidators(ke(y,_.validator)):"function"==typeof y&&b.setValidators([y]);const O=gt(b);null!==_.asyncValidator?b.setAsyncValidators(ke(O,_.asyncValidator)):"function"==typeof O&&b.setAsyncValidators([O]);const me=()=>b.updateValueAndValidity();Tt(_._rawValidators,me),Tt(_._rawAsyncValidators,me)}function Xn(b,_){let y=!1;if(null!==b){if(null!==_.validator){const me=nt(b);if(Array.isArray(me)&&me.length>0){const Pe=me.filter(zt=>zt!==_.validator);Pe.length!==me.length&&(y=!0,b.setValidators(Pe))}}if(null!==_.asyncValidator){const me=gt(b);if(Array.isArray(me)&&me.length>0){const Pe=me.filter(zt=>zt!==_.asyncValidator);Pe.length!==me.length&&(y=!0,b.setAsyncValidators(Pe))}}}const O=()=>{};return Tt(_._rawValidators,O),Tt(_._rawAsyncValidators,O),y}function Lr(b,_){b._pendingDirty&&b.markAsDirty(),b.setValue(b._pendingValue,{emitModelToViewChange:!1}),_.viewToModelUpdate(b._pendingValue),b._pendingChange=!1}function br(b,_){zn(b,_)}function X(b,_){if(!b.hasOwnProperty("model"))return!1;const y=b.model;return!!y.isFirstChange()||!Object.is(_,y.currentValue)}function Je(b,_){b._syncPendingControls(),_.forEach(y=>{const O=y.control;"submit"===O.updateOn&&O._pendingChange&&(y.viewToModelUpdate(O._pendingValue),O._pendingChange=!1)})}function vt(b,_){if(!_)return null;let y,O,me;return Array.isArray(_),_.forEach(Pe=>{Pe.constructor===Fe?y=Pe:function pe(b){return Object.getPrototypeOf(b.constructor)===W}(Pe)?O=Pe:me=Pe}),me||O||y||null}function Rt(b,_){const y=b.indexOf(_);y>-1&&b.splice(y,1)}const bn="VALID",pn="INVALID",Nn="PENDING",wn="DISABLED";function Wn(b){return(gn(b)?b.validators:b)||null}function nr(b){return Array.isArray(b)?Me(b):b||null}function Yt(b,_){return(gn(_)?_.asyncValidators:b)||null}function wr(b){return Array.isArray(b)?ae(b):b||null}function gn(b){return null!=b&&!Array.isArray(b)&&"object"==typeof b}const Be=b=>b instanceof $t,ut=b=>b instanceof rr;function _n(b){return Be(b)?b.value:b.getRawValue()}function Rn(b,_){const y=ut(b),O=b.controls;if(!(y?Object.keys(O):O).length)throw new a.vHH(1e3,"");if(!O[_])throw new a.vHH(1001,"")}function rn(b,_){ut(b),b._forEachChild((O,me)=>{if(void 0===_[me])throw new a.vHH(1002,"")})}class Bn{constructor(_,y){this._pendingDirty=!1,this._hasOwnPendingAsyncValidator=!1,this._pendingTouched=!1,this._onCollectionChange=()=>{},this._parent=null,this.pristine=!0,this.touched=!1,this._onDisabledChange=[],this._rawValidators=_,this._rawAsyncValidators=y,this._composedValidatorFn=nr(this._rawValidators),this._composedAsyncValidatorFn=wr(this._rawAsyncValidators)}get validator(){return this._composedValidatorFn}set validator(_){this._rawValidators=this._composedValidatorFn=_}get asyncValidator(){return this._composedAsyncValidatorFn}set asyncValidator(_){this._rawAsyncValidators=this._composedAsyncValidatorFn=_}get parent(){return this._parent}get valid(){return this.status===bn}get invalid(){return this.status===pn}get pending(){return this.status==Nn}get disabled(){return this.status===wn}get enabled(){return this.status!==wn}get dirty(){return!this.pristine}get untouched(){return!this.touched}get updateOn(){return this._updateOn?this._updateOn:this.parent?this.parent.updateOn:"change"}setValidators(_){this._rawValidators=_,this._composedValidatorFn=nr(_)}setAsyncValidators(_){this._rawAsyncValidators=_,this._composedAsyncValidatorFn=wr(_)}addValidators(_){this.setValidators(hn(_,this._rawValidators))}addAsyncValidators(_){this.setAsyncValidators(hn(_,this._rawAsyncValidators))}removeValidators(_){this.setValidators(Mt(_,this._rawValidators))}removeAsyncValidators(_){this.setAsyncValidators(Mt(_,this._rawAsyncValidators))}hasValidator(_){return Nt(this._rawValidators,_)}hasAsyncValidator(_){return Nt(this._rawAsyncValidators,_)}clearValidators(){this.validator=null}clearAsyncValidators(){this.asyncValidator=null}markAsTouched(_={}){this.touched=!0,this._parent&&!_.onlySelf&&this._parent.markAsTouched(_)}markAllAsTouched(){this.markAsTouched({onlySelf:!0}),this._forEachChild(_=>_.markAllAsTouched())}markAsUntouched(_={}){this.touched=!1,this._pendingTouched=!1,this._forEachChild(y=>{y.markAsUntouched({onlySelf:!0})}),this._parent&&!_.onlySelf&&this._parent._updateTouched(_)}markAsDirty(_={}){this.pristine=!1,this._parent&&!_.onlySelf&&this._parent.markAsDirty(_)}markAsPristine(_={}){this.pristine=!0,this._pendingDirty=!1,this._forEachChild(y=>{y.markAsPristine({onlySelf:!0})}),this._parent&&!_.onlySelf&&this._parent._updatePristine(_)}markAsPending(_={}){this.status=Nn,!1!==_.emitEvent&&this.statusChanges.emit(this.status),this._parent&&!_.onlySelf&&this._parent.markAsPending(_)}disable(_={}){const y=this._parentMarkedDirty(_.onlySelf);this.status=wn,this.errors=null,this._forEachChild(O=>{O.disable(Object.assign(Object.assign({},_),{onlySelf:!0}))}),this._updateValue(),!1!==_.emitEvent&&(this.valueChanges.emit(this.value),this.statusChanges.emit(this.status)),this._updateAncestors(Object.assign(Object.assign({},_),{skipPristineCheck:y})),this._onDisabledChange.forEach(O=>O(!0))}enable(_={}){const y=this._parentMarkedDirty(_.onlySelf);this.status=bn,this._forEachChild(O=>{O.enable(Object.assign(Object.assign({},_),{onlySelf:!0}))}),this.updateValueAndValidity({onlySelf:!0,emitEvent:_.emitEvent}),this._updateAncestors(Object.assign(Object.assign({},_),{skipPristineCheck:y})),this._onDisabledChange.forEach(O=>O(!1))}_updateAncestors(_){this._parent&&!_.onlySelf&&(this._parent.updateValueAndValidity(_),_.skipPristineCheck||this._parent._updatePristine(),this._parent._updateTouched())}setParent(_){this._parent=_}updateValueAndValidity(_={}){this._setInitialStatus(),this._updateValue(),this.enabled&&(this._cancelExistingSubscription(),this.errors=this._runValidator(),this.status=this._calculateStatus(),(this.status===bn||this.status===Nn)&&this._runAsyncValidator(_.emitEvent)),!1!==_.emitEvent&&(this.valueChanges.emit(this.value),this.statusChanges.emit(this.status)),this._parent&&!_.onlySelf&&this._parent.updateValueAndValidity(_)}_updateTreeValidity(_={emitEvent:!0}){this._forEachChild(y=>y._updateTreeValidity(_)),this.updateValueAndValidity({onlySelf:!0,emitEvent:_.emitEvent})}_setInitialStatus(){this.status=this._allControlsDisabled()?wn:bn}_runValidator(){return this.validator?this.validator(this):null}_runAsyncValidator(_){if(this.asyncValidator){this.status=Nn,this._hasOwnPendingAsyncValidator=!0;const y=dn(this.asyncValidator(this));this._asyncValidationSubscription=y.subscribe(O=>{this._hasOwnPendingAsyncValidator=!1,this.setErrors(O,{emitEvent:_})})}}_cancelExistingSubscription(){this._asyncValidationSubscription&&(this._asyncValidationSubscription.unsubscribe(),this._hasOwnPendingAsyncValidator=!1)}setErrors(_,y={}){this.errors=_,this._updateControlsErrors(!1!==y.emitEvent)}get(_){return function tr(b,_,y){if(null==_||(Array.isArray(_)||(_=_.split(y)),Array.isArray(_)&&0===_.length))return null;let O=b;return _.forEach(me=>{O=ut(O)?O.controls.hasOwnProperty(me)?O.controls[me]:null:(b=>b instanceof gr)(O)&&O.at(me)||null}),O}(this,_,".")}getError(_,y){const O=y?this.get(y):this;return O&&O.errors?O.errors[_]:null}hasError(_,y){return!!this.getError(_,y)}get root(){let _=this;for(;_._parent;)_=_._parent;return _}_updateControlsErrors(_){this.status=this._calculateStatus(),_&&this.statusChanges.emit(this.status),this._parent&&this._parent._updateControlsErrors(_)}_initObservables(){this.valueChanges=new a.vpe,this.statusChanges=new a.vpe}_calculateStatus(){return this._allControlsDisabled()?wn:this.errors?pn:this._hasOwnPendingAsyncValidator||this._anyControlsHaveStatus(Nn)?Nn:this._anyControlsHaveStatus(pn)?pn:bn}_anyControlsHaveStatus(_){return this._anyControls(y=>y.status===_)}_anyControlsDirty(){return this._anyControls(_=>_.dirty)}_anyControlsTouched(){return this._anyControls(_=>_.touched)}_updatePristine(_={}){this.pristine=!this._anyControlsDirty(),this._parent&&!_.onlySelf&&this._parent._updatePristine(_)}_updateTouched(_={}){this.touched=this._anyControlsTouched(),this._parent&&!_.onlySelf&&this._parent._updateTouched(_)}_isBoxedValue(_){return"object"==typeof _&&null!==_&&2===Object.keys(_).length&&"value"in _&&"disabled"in _}_registerOnCollectionChange(_){this._onCollectionChange=_}_setUpdateStrategy(_){gn(_)&&null!=_.updateOn&&(this._updateOn=_.updateOn)}_parentMarkedDirty(_){return!_&&!(!this._parent||!this._parent.dirty)&&!this._parent._anyControlsDirty()}}class $t extends Bn{constructor(_=null,y,O){super(Wn(y),Yt(O,y)),this.defaultValue=null,this._onChange=[],this._pendingChange=!1,this._applyFormState(_),this._setUpdateStrategy(y),this._initObservables(),this.updateValueAndValidity({onlySelf:!0,emitEvent:!!this.asyncValidator}),gn(y)&&y.initialValueIsDefault&&(this.defaultValue=this._isBoxedValue(_)?_.value:_)}setValue(_,y={}){this.value=this._pendingValue=_,this._onChange.length&&!1!==y.emitModelToViewChange&&this._onChange.forEach(O=>O(this.value,!1!==y.emitViewToModelChange)),this.updateValueAndValidity(y)}patchValue(_,y={}){this.setValue(_,y)}reset(_=this.defaultValue,y={}){this._applyFormState(_),this.markAsPristine(y),this.markAsUntouched(y),this.setValue(this.value,y),this._pendingChange=!1}_updateValue(){}_anyControls(_){return!1}_allControlsDisabled(){return this.disabled}registerOnChange(_){this._onChange.push(_)}_unregisterOnChange(_){Rt(this._onChange,_)}registerOnDisabledChange(_){this._onDisabledChange.push(_)}_unregisterOnDisabledChange(_){Rt(this._onDisabledChange,_)}_forEachChild(_){}_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(_){this._isBoxedValue(_)?(this.value=this._pendingValue=_.value,_.disabled?this.disable({onlySelf:!0,emitEvent:!1}):this.enable({onlySelf:!0,emitEvent:!1})):this.value=this._pendingValue=_}}class rr extends Bn{constructor(_,y,O){super(Wn(y),Yt(O,y)),this.controls=_,this._initObservables(),this._setUpdateStrategy(y),this._setUpControls(),this.updateValueAndValidity({onlySelf:!0,emitEvent:!!this.asyncValidator})}registerControl(_,y){return this.controls[_]?this.controls[_]:(this.controls[_]=y,y.setParent(this),y._registerOnCollectionChange(this._onCollectionChange),y)}addControl(_,y,O={}){this.registerControl(_,y),this.updateValueAndValidity({emitEvent:O.emitEvent}),this._onCollectionChange()}removeControl(_,y={}){this.controls[_]&&this.controls[_]._registerOnCollectionChange(()=>{}),delete this.controls[_],this.updateValueAndValidity({emitEvent:y.emitEvent}),this._onCollectionChange()}setControl(_,y,O={}){this.controls[_]&&this.controls[_]._registerOnCollectionChange(()=>{}),delete this.controls[_],y&&this.registerControl(_,y),this.updateValueAndValidity({emitEvent:O.emitEvent}),this._onCollectionChange()}contains(_){return this.controls.hasOwnProperty(_)&&this.controls[_].enabled}setValue(_,y={}){rn(this,_),Object.keys(_).forEach(O=>{Rn(this,O),this.controls[O].setValue(_[O],{onlySelf:!0,emitEvent:y.emitEvent})}),this.updateValueAndValidity(y)}patchValue(_,y={}){null!=_&&(Object.keys(_).forEach(O=>{this.controls[O]&&this.controls[O].patchValue(_[O],{onlySelf:!0,emitEvent:y.emitEvent})}),this.updateValueAndValidity(y))}reset(_={},y={}){this._forEachChild((O,me)=>{O.reset(_[me],{onlySelf:!0,emitEvent:y.emitEvent})}),this._updatePristine(y),this._updateTouched(y),this.updateValueAndValidity(y)}getRawValue(){return this._reduceChildren({},(_,y,O)=>(_[O]=_n(y),_))}_syncPendingControls(){let _=this._reduceChildren(!1,(y,O)=>!!O._syncPendingControls()||y);return _&&this.updateValueAndValidity({onlySelf:!0}),_}_forEachChild(_){Object.keys(this.controls).forEach(y=>{const O=this.controls[y];O&&_(O,y)})}_setUpControls(){this._forEachChild(_=>{_.setParent(this),_._registerOnCollectionChange(this._onCollectionChange)})}_updateValue(){this.value=this._reduceValue()}_anyControls(_){for(const y of Object.keys(this.controls)){const O=this.controls[y];if(this.contains(y)&&_(O))return!0}return!1}_reduceValue(){return this._reduceChildren({},(_,y,O)=>((y.enabled||this.disabled)&&(_[O]=y.value),_))}_reduceChildren(_,y){let O=_;return this._forEachChild((me,Pe)=>{O=y(O,me,Pe)}),O}_allControlsDisabled(){for(const _ of Object.keys(this.controls))if(this.controls[_].enabled)return!1;return Object.keys(this.controls).length>0||this.disabled}}class gr extends Bn{constructor(_,y,O){super(Wn(y),Yt(O,y)),this.controls=_,this._initObservables(),this._setUpdateStrategy(y),this._setUpControls(),this.updateValueAndValidity({onlySelf:!0,emitEvent:!!this.asyncValidator})}at(_){return this.controls[_]}push(_,y={}){this.controls.push(_),this._registerControl(_),this.updateValueAndValidity({emitEvent:y.emitEvent}),this._onCollectionChange()}insert(_,y,O={}){this.controls.splice(_,0,y),this._registerControl(y),this.updateValueAndValidity({emitEvent:O.emitEvent})}removeAt(_,y={}){this.controls[_]&&this.controls[_]._registerOnCollectionChange(()=>{}),this.controls.splice(_,1),this.updateValueAndValidity({emitEvent:y.emitEvent})}setControl(_,y,O={}){this.controls[_]&&this.controls[_]._registerOnCollectionChange(()=>{}),this.controls.splice(_,1),y&&(this.controls.splice(_,0,y),this._registerControl(y)),this.updateValueAndValidity({emitEvent:O.emitEvent}),this._onCollectionChange()}get length(){return this.controls.length}setValue(_,y={}){rn(this,_),_.forEach((O,me)=>{Rn(this,me),this.at(me).setValue(O,{onlySelf:!0,emitEvent:y.emitEvent})}),this.updateValueAndValidity(y)}patchValue(_,y={}){null!=_&&(_.forEach((O,me)=>{this.at(me)&&this.at(me).patchValue(O,{onlySelf:!0,emitEvent:y.emitEvent})}),this.updateValueAndValidity(y))}reset(_=[],y={}){this._forEachChild((O,me)=>{O.reset(_[me],{onlySelf:!0,emitEvent:y.emitEvent})}),this._updatePristine(y),this._updateTouched(y),this.updateValueAndValidity(y)}getRawValue(){return this.controls.map(_=>_n(_))}clear(_={}){this.controls.length<1||(this._forEachChild(y=>y._registerOnCollectionChange(()=>{})),this.controls.splice(0),this.updateValueAndValidity({emitEvent:_.emitEvent}))}_syncPendingControls(){let _=this.controls.reduce((y,O)=>!!O._syncPendingControls()||y,!1);return _&&this.updateValueAndValidity({onlySelf:!0}),_}_forEachChild(_){this.controls.forEach((y,O)=>{_(y,O)})}_updateValue(){this.value=this.controls.filter(_=>_.enabled||this.disabled).map(_=>_.value)}_anyControls(_){return this.controls.some(y=>y.enabled&&_(y))}_setUpControls(){this._forEachChild(_=>this._registerControl(_))}_allControlsDisabled(){for(const _ of this.controls)if(_.enabled)return!1;return this.controls.length>0||this.disabled}_registerControl(_){_.setParent(this),_._registerOnCollectionChange(this._onCollectionChange)}}const ct={provide:Bt,useExisting:(0,a.Gpc)(()=>Yn)},Fn=(()=>Promise.resolve(null))();let Yn=(()=>{class b extends Bt{constructor(y,O){super(),this.submitted=!1,this._directives=[],this.ngSubmit=new a.vpe,this.form=new rr({},Me(y),ae(O))}ngAfterViewInit(){this._setUpdateStrategy()}get formDirective(){return this}get control(){return this.form}get path(){return[]}get controls(){return this.form.controls}addControl(y){Fn.then(()=>{const O=this._findContainer(y.path);y.control=O.registerControl(y.name,y.control),Dt(y.control,y),y.control.updateValueAndValidity({emitEvent:!1}),this._directives.push(y)})}getControl(y){return this.form.get(y.path)}removeControl(y){Fn.then(()=>{const O=this._findContainer(y.path);O&&O.removeControl(y.name),Rt(this._directives,y)})}addFormGroup(y){Fn.then(()=>{const O=this._findContainer(y.path),me=new rr({});br(me,y),O.registerControl(y.name,me),me.updateValueAndValidity({emitEvent:!1})})}removeFormGroup(y){Fn.then(()=>{const O=this._findContainer(y.path);O&&O.removeControl(y.name)})}getFormGroup(y){return this.form.get(y.path)}updateModel(y,O){Fn.then(()=>{this.form.get(y.path).setValue(O)})}setValue(y){this.control.setValue(y)}onSubmit(y){return this.submitted=!0,Je(this.form,this._directives),this.ngSubmit.emit(y),!1}onReset(){this.resetForm()}resetForm(y){this.form.reset(y),this.submitted=!1}_setUpdateStrategy(){this.options&&null!=this.options.updateOn&&(this.form._updateOn=this.options.updateOn)}_findContainer(y){return y.pop(),y.length?this.form.get(y):this.form}}return b.\u0275fac=function(y){return new(y||b)(a.Y36(_e,10),a.Y36(te,10))},b.\u0275dir=a.lG2({type:b,selectors:[["form",3,"ngNoForm","",3,"formGroup",""],["ng-form"],["","ngForm",""]],hostBindings:function(y,O){1&y&&a.NdJ("submit",function(Pe){return O.onSubmit(Pe)})("reset",function(){return O.onReset()})},inputs:{options:["ngFormOptions","options"]},outputs:{ngSubmit:"ngSubmit"},exportAs:["ngForm"],features:[a._Bn([ct]),a.qOj]}),b})();const Ns={provide:fn,useExisting:(0,a.Gpc)(()=>mn)},mr=(()=>Promise.resolve(null))();let mn=(()=>{class b extends fn{constructor(y,O,me,Pe,zt){super(),this._changeDetectorRef=zt,this.control=new $t,this._registered=!1,this.update=new a.vpe,this._parent=y,this._setValidators(O),this._setAsyncValidators(me),this.valueAccessor=vt(0,Pe)}ngOnChanges(y){this._checkForErrors(),this._registered||this._setUpControl(),"isDisabled"in y&&this._updateDisabled(y),X(y,this.viewModel)&&(this._updateValue(this.model),this.viewModel=this.model)}ngOnDestroy(){this.formDirective&&this.formDirective.removeControl(this)}get path(){return this._parent?function Qe(b,_){return[..._.path,b]}(this.name,this._parent):[this.name]}get formDirective(){return this._parent?this._parent.formDirective:null}viewToModelUpdate(y){this.viewModel=y,this.update.emit(y)}_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(){Dt(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(y){mr.then(()=>{var O;this.control.setValue(y,{emitViewToModelChange:!1}),null===(O=this._changeDetectorRef)||void 0===O||O.markForCheck()})}_updateDisabled(y){const O=y.isDisabled.currentValue,me=""===O||O&&"false"!==O;mr.then(()=>{var Pe;me&&!this.control.disabled?this.control.disable():!me&&this.control.disabled&&this.control.enable(),null===(Pe=this._changeDetectorRef)||void 0===Pe||Pe.markForCheck()})}}return b.\u0275fac=function(y){return new(y||b)(a.Y36(Bt,9),a.Y36(_e,10),a.Y36(te,10),a.Y36(ce,10),a.Y36(a.sBO,8))},b.\u0275dir=a.lG2({type:b,selectors:[["","ngModel","",3,"formControlName","",3,"formControl",""]],inputs:{name:"name",isDisabled:["disabled","isDisabled"],model:["ngModel","model"],options:["ngModelOptions","options"]},outputs:{update:"ngModelChange"},exportAs:["ngModel"],features:[a._Bn([Ns]),a.qOj,a.TTD]}),b})(),Dn=(()=>{class b{}return b.\u0275fac=function(y){return new(y||b)},b.\u0275dir=a.lG2({type:b,selectors:[["form",3,"ngNoForm","",3,"ngNativeValidate",""]],hostAttrs:["novalidate",""]}),b})();const yr={provide:ce,useExisting:(0,a.Gpc)(()=>ir),multi:!0};let ir=(()=>{class b extends W{writeValue(y){this.setProperty("value",null==y?"":y)}registerOnChange(y){this.onChange=O=>{y(""==O?null:parseFloat(O))}}}return b.\u0275fac=function(){let _;return function(O){return(_||(_=a.n5z(b)))(O||b)}}(),b.\u0275dir=a.lG2({type:b,selectors:[["input","type","number","formControlName",""],["input","type","number","formControl",""],["input","type","number","ngModel",""]],hostBindings:function(y,O){1&y&&a.NdJ("input",function(Pe){return O.onChange(Pe.target.value)})("blur",function(){return O.onTouched()})},features:[a._Bn([yr]),a.qOj]}),b})(),jn=(()=>{class b{}return b.\u0275fac=function(y){return new(y||b)},b.\u0275mod=a.oAB({type:b}),b.\u0275inj=a.cJS({}),b})();const ur=new a.OlP("NgModelWithFormControlWarning"),Tr={provide:fn,useExisting:(0,a.Gpc)(()=>Kr)};let Kr=(()=>{class b extends fn{constructor(y,O,me,Pe){super(),this._ngModelWarningConfig=Pe,this.update=new a.vpe,this._ngModelWarningSent=!1,this._setValidators(y),this._setAsyncValidators(O),this.valueAccessor=vt(0,me)}set isDisabled(y){}ngOnChanges(y){if(this._isControlChanged(y)){const O=y.form.previousValue;O&&at(O,this,!1),Dt(this.form,this),this.control.disabled&&this.valueAccessor.setDisabledState&&this.valueAccessor.setDisabledState(!0),this.form.updateValueAndValidity({emitEvent:!1})}X(y,this.viewModel)&&(this.form.setValue(this.model),this.viewModel=this.model)}ngOnDestroy(){this.form&&at(this.form,this,!1)}get path(){return[]}get control(){return this.form}viewToModelUpdate(y){this.viewModel=y,this.update.emit(y)}_isControlChanged(y){return y.hasOwnProperty("form")}}return b._ngModelWarningSentOnce=!1,b.\u0275fac=function(y){return new(y||b)(a.Y36(_e,10),a.Y36(te,10),a.Y36(ce,10),a.Y36(ur,8))},b.\u0275dir=a.lG2({type:b,selectors:[["","formControl",""]],inputs:{form:["formControl","form"],isDisabled:["disabled","isDisabled"],model:["ngModel","model"]},outputs:{update:"ngModelChange"},exportAs:["ngForm"],features:[a._Bn([Tr]),a.qOj,a.TTD]}),b})();const As={provide:Bt,useExisting:(0,a.Gpc)(()=>vr)};let vr=(()=>{class b extends Bt{constructor(y,O){super(),this.validators=y,this.asyncValidators=O,this.submitted=!1,this._onCollectionChange=()=>this._updateDomValue(),this.directives=[],this.form=null,this.ngSubmit=new a.vpe,this._setValidators(y),this._setAsyncValidators(O)}ngOnChanges(y){this._checkFormPresent(),y.hasOwnProperty("form")&&(this._updateValidators(),this._updateDomValue(),this._updateRegistrations(),this._oldForm=this.form)}ngOnDestroy(){this.form&&(Xn(this.form,this),this.form._onCollectionChange===this._onCollectionChange&&this.form._registerOnCollectionChange(()=>{}))}get formDirective(){return this}get control(){return this.form}get path(){return[]}addControl(y){const O=this.form.get(y.path);return Dt(O,y),O.updateValueAndValidity({emitEvent:!1}),this.directives.push(y),O}getControl(y){return this.form.get(y.path)}removeControl(y){at(y.control||null,y,!1),Rt(this.directives,y)}addFormGroup(y){this._setUpFormContainer(y)}removeFormGroup(y){this._cleanUpFormContainer(y)}getFormGroup(y){return this.form.get(y.path)}addFormArray(y){this._setUpFormContainer(y)}removeFormArray(y){this._cleanUpFormContainer(y)}getFormArray(y){return this.form.get(y.path)}updateModel(y,O){this.form.get(y.path).setValue(O)}onSubmit(y){return this.submitted=!0,Je(this.form,this.directives),this.ngSubmit.emit(y),!1}onReset(){this.resetForm()}resetForm(y){this.form.reset(y),this.submitted=!1}_updateDomValue(){this.directives.forEach(y=>{const O=y.control,me=this.form.get(y.path);O!==me&&(at(O||null,y),Be(me)&&(Dt(me,y),y.control=me))}),this.form._updateTreeValidity({emitEvent:!1})}_setUpFormContainer(y){const O=this.form.get(y.path);br(O,y),O.updateValueAndValidity({emitEvent:!1})}_cleanUpFormContainer(y){if(this.form){const O=this.form.get(y.path);O&&function se(b,_){return Xn(b,_)}(O,y)&&O.updateValueAndValidity({emitEvent:!1})}}_updateRegistrations(){this.form._registerOnCollectionChange(this._onCollectionChange),this._oldForm&&this._oldForm._registerOnCollectionChange(()=>{})}_updateValidators(){zn(this.form,this),this._oldForm&&Xn(this._oldForm,this)}_checkFormPresent(){}}return b.\u0275fac=function(y){return new(y||b)(a.Y36(_e,10),a.Y36(te,10))},b.\u0275dir=a.lG2({type:b,selectors:[["","formGroup",""]],hostBindings:function(y,O){1&y&&a.NdJ("submit",function(Pe){return O.onSubmit(Pe)})("reset",function(){return O.onReset()})},inputs:{form:["formGroup","form"]},outputs:{ngSubmit:"ngSubmit"},exportAs:["ngForm"],features:[a._Bn([As]),a.qOj,a.TTD]}),b})();let Ar=(()=>{class b{constructor(){this._validator=Cn}ngOnChanges(y){if(this.inputName in y){const O=this.normalizeInput(y[this.inputName].currentValue);this._enabled=this.enabled(O),this._validator=this._enabled?this.createValidator(O):Cn,this._onChange&&this._onChange()}}validate(y){return this._validator(y)}registerOnValidatorChange(y){this._onChange=y}enabled(y){return null!=y}}return b.\u0275fac=function(y){return new(y||b)},b.\u0275dir=a.lG2({type:b,features:[a.TTD]}),b})();const c={provide:_e,useExisting:(0,a.Gpc)(()=>A),multi:!0};let A=(()=>{class b extends Ar{constructor(){super(...arguments),this.inputName="required",this.normalizeInput=y=>function ts(b){return null!=b&&!1!==b&&"false"!=`${b}`}(y),this.createValidator=y=>ht}enabled(y){return y}}return b.\u0275fac=function(){let _;return function(O){return(_||(_=a.n5z(b)))(O||b)}}(),b.\u0275dir=a.lG2({type:b,selectors:[["","required","","formControlName","",3,"type","checkbox"],["","required","","formControl","",3,"type","checkbox"],["","required","","ngModel","",3,"type","checkbox"]],hostVars:1,hostBindings:function(y,O){2&y&&a.uIk("required",O._enabled?"":null)},inputs:{required:"required"},features:[a._Bn([c]),a.qOj]}),b})();const N={provide:_e,useExisting:(0,a.Gpc)(()=>Q),multi:!0};let Q=(()=>{class b extends Ar{constructor(){super(...arguments),this.inputName="maxlength",this.normalizeInput=y=>function Ur(b){return"number"==typeof b?b:parseInt(b,10)}(y),this.createValidator=y=>ft(y)}}return b.\u0275fac=function(){let _;return function(O){return(_||(_=a.n5z(b)))(O||b)}}(),b.\u0275dir=a.lG2({type:b,selectors:[["","maxlength","","formControlName",""],["","maxlength","","formControl",""],["","maxlength","","ngModel",""]],hostVars:1,hostBindings:function(y,O){2&y&&a.uIk("maxlength",O._enabled?O.maxlength:null)},inputs:{maxlength:"maxlength"},features:[a._Bn([N]),a.qOj]}),b})();const de={provide:_e,useExisting:(0,a.Gpc)(()=>Ee),multi:!0};let Ee=(()=>{class b{constructor(){this._validator=Cn}ngOnChanges(y){"pattern"in y&&(this._createValidator(),this._onChange&&this._onChange())}validate(y){return this._validator(y)}registerOnValidatorChange(y){this._onChange=y}_createValidator(){this._validator=Ve(this.pattern)}}return b.\u0275fac=function(y){return new(y||b)},b.\u0275dir=a.lG2({type:b,selectors:[["","pattern","","formControlName",""],["","pattern","","formControl",""],["","pattern","","ngModel",""]],hostVars:1,hostBindings:function(y,O){2&y&&a.uIk("pattern",O.pattern?O.pattern:null)},inputs:{pattern:"pattern"},features:[a._Bn([de]),a.TTD]}),b})(),We=(()=>{class b{}return b.\u0275fac=function(y){return new(y||b)},b.\u0275mod=a.oAB({type:b}),b.\u0275inj=a.cJS({imports:[[jn]]}),b})(),Ct=(()=>{class b{}return b.\u0275fac=function(y){return new(y||b)},b.\u0275mod=a.oAB({type:b}),b.\u0275inj=a.cJS({imports:[We]}),b})(),pt=(()=>{class b{static withConfig(y){return{ngModule:b,providers:[{provide:ur,useValue:y.warnOnNgModelWithFormControl}]}}}return b.\u0275fac=function(y){return new(y||b)},b.\u0275mod=a.oAB({type:b}),b.\u0275inj=a.cJS({imports:[We]}),b})()},6360:(Ye,ve,x)=>{x.d(ve,{Qb:()=>Ur,PW:()=>Dr});var a=x(6435),v=x(2313),re=x(1777);function ue(){return"undefined"!=typeof window&&void 0!==window.document}function V(){return"undefined"!=typeof process&&"[object process]"==={}.toString.call(process)}function Y(I){switch(I.length){case 0:return new re.ZN;case 1:return I[0];default:return new re.ZE(I)}}function K(I,l,c,D,A={},R={}){const h=[],C=[];let p=-1,T=null;if(D.forEach(N=>{const Q=N.offset,de=Q==p,Ee=de&&T||{};Object.keys(N).forEach(je=>{let ze=je,Xe=N[je];if("offset"!==je)switch(ze=l.normalizePropertyName(ze,h),Xe){case re.k1:Xe=A[je];break;case re.l3:Xe=R[je];break;default:Xe=l.normalizeStyleValue(je,ze,Xe,h)}Ee[ze]=Xe}),de||C.push(Ee),T=Ee,p=Q}),h.length){const N="\n - ";throw new Error(`Unable to animate due to the following errors:${N}${h.join(N)}`)}return C}function ee(I,l,c,D){switch(l){case"start":I.onStart(()=>D(c&&J(c,"start",I)));break;case"done":I.onDone(()=>D(c&&J(c,"done",I)));break;case"destroy":I.onDestroy(()=>D(c&&J(c,"destroy",I)))}}function J(I,l,c){const D=c.totalTime,R=$(I.element,I.triggerName,I.fromState,I.toState,l||I.phaseName,null==D?I.totalTime:D,!!c.disabled),h=I._data;return null!=h&&(R._data=h),R}function $(I,l,c,D,A="",R=0,h){return{element:I,triggerName:l,fromState:c,toState:D,phaseName:A,totalTime:R,disabled:!!h}}function W(I,l,c){let D;return I instanceof Map?(D=I.get(l),D||I.set(l,D=c)):(D=I[l],D||(D=I[l]=c)),D}function ce(I){const l=I.indexOf(":");return[I.substring(1,l),I.substr(l+1)]}let oe=(I,l)=>!1,Ie=(I,l,c)=>[];(V()||"undefined"!=typeof Element)&&(oe=ue()?(I,l)=>{for(;l&&l!==document.documentElement;){if(l===I)return!0;l=l.parentNode||l.host}return!1}:(I,l)=>I.contains(l),Ie=(I,l,c)=>{if(c)return Array.from(I.querySelectorAll(l));const D=I.querySelector(l);return D?[D]:[]});let he=null,Fe=!1;function Ne(I){he||(he=function ye(){return"undefined"!=typeof document?document.body:null}()||{},Fe=!!he.style&&"WebkitAppearance"in he.style);let l=!0;return he.style&&!function ge(I){return"ebkit"==I.substring(1,6)}(I)&&(l=I in he.style,!l&&Fe&&(l="Webkit"+I.charAt(0).toUpperCase()+I.substr(1)in he.style)),l}const _e=oe,te=Ie;let wt=(()=>{class I{validateStyleProperty(c){return Ne(c)}matchesElement(c,D){return!1}containsElement(c,D){return _e(c,D)}query(c,D,A){return te(c,D,A)}computeStyle(c,D,A){return A||""}animate(c,D,A,R,h,C=[],p){return new re.ZN(A,R)}}return I.\u0275fac=function(c){return new(c||I)},I.\u0275prov=a.Yz7({token:I,factory:I.\u0275fac}),I})(),dt=(()=>{class I{}return I.NOOP=new wt,I})();const _t="ng-enter",tt="ng-leave",ft="ng-trigger",Ve=".ng-trigger",Cn="ng-animating",yn=".ng-animating";function dn(I){if("number"==typeof I)return I;const l=I.match(/^(-?[\.\d]+)(m?s)/);return!l||l.length<2?0:Ln(parseFloat(l[1]),l[2])}function Ln(I,l){return"s"===l?1e3*I:I}function on(I,l,c){return I.hasOwnProperty("duration")?I:function St(I,l,c){let A,R=0,h="";if("string"==typeof I){const C=I.match(/^(-?[\.\d]+)(m?s)(?:\s+(-?[\.\d]+)(m?s))?(?:\s+([-a-z]+(?:\(.+?\))?))?$/i);if(null===C)return l.push(`The provided timing value "${I}" is invalid.`),{duration:0,delay:0,easing:""};A=Ln(parseFloat(C[1]),C[2]);const p=C[3];null!=p&&(R=Ln(parseFloat(p),C[4]));const T=C[5];T&&(h=T)}else A=I;if(!c){let C=!1,p=l.length;A<0&&(l.push("Duration values below 0 are not allowed for this animation step."),C=!0),R<0&&(l.push("Delay values below 0 are not allowed for this animation step."),C=!0),C&&l.splice(p,0,`The provided timing value "${I}" is invalid.`)}return{duration:A,delay:R,easing:h}}(I,l,c)}function tn(I,l={}){return Object.keys(I).forEach(c=>{l[c]=I[c]}),l}function Me(I,l,c={}){if(l)for(let D in I)c[D]=I[D];else tn(I,c);return c}function B(I,l,c){return c?l+":"+c+";":""}function ae(I){let l="";for(let c=0;c<I.style.length;c++){const D=I.style.item(c);l+=B(0,D,I.style.getPropertyValue(D))}for(const c in I.style)I.style.hasOwnProperty(c)&&!c.startsWith("_")&&(l+=B(0,In(c),I.style[c]));I.setAttribute("style",l)}function ke(I,l,c){I.style&&(Object.keys(l).forEach(D=>{const A=Bt(D);c&&!c.hasOwnProperty(D)&&(c[D]=I.style[A]),I.style[A]=l[D]}),V()&&ae(I))}function nt(I,l){I.style&&(Object.keys(l).forEach(c=>{const D=Bt(c);I.style[D]=""}),V()&&ae(I))}function gt(I){return Array.isArray(I)?1==I.length?I[0]:(0,re.vP)(I):I}const Nt=new RegExp("{{\\s*(.+?)\\s*}}","g");function hn(I){let l=[];if("string"==typeof I){let c;for(;c=Nt.exec(I);)l.push(c[1]);Nt.lastIndex=0}return l}function Mt(I,l,c){const D=I.toString(),A=D.replace(Nt,(R,h)=>{let C=l[h];return l.hasOwnProperty(h)||(c.push(`Please provide a value for the animation param ${h}`),C=""),C.toString()});return A==D?I:A}function nn(I){const l=[];let c=I.next();for(;!c.done;)l.push(c.value),c=I.next();return l}const fn=/-+([a-z0-9])/g;function Bt(I){return I.replace(fn,(...l)=>l[1].toUpperCase())}function In(I){return I.replace(/([a-z])([A-Z])/g,"$1-$2").toLowerCase()}function Jt(I,l,c){switch(l.type){case 7:return I.visitTrigger(l,c);case 0:return I.visitState(l,c);case 1:return I.visitTransition(l,c);case 2:return I.visitSequence(l,c);case 3:return I.visitGroup(l,c);case 4:return I.visitAnimate(l,c);case 5:return I.visitKeyframes(l,c);case 6:return I.visitStyle(l,c);case 8:return I.visitReference(l,c);case 9:return I.visitAnimateChild(l,c);case 10:return I.visitAnimateRef(l,c);case 11:return I.visitQuery(l,c);case 12:return I.visitStagger(l,c);default:throw new Error(`Unable to resolve animation metadata node #${l.type}`)}}function ie(I,l){return window.getComputedStyle(I)[l]}const G="*";function Z(I,l){const c=[];return"string"==typeof I?I.split(/\s*,\s*/).forEach(D=>function Oe(I,l,c){if(":"==I[0]){const p=function Ae(I,l){switch(I){case":enter":return"void => *";case":leave":return"* => void";case":increment":return(c,D)=>parseFloat(D)>parseFloat(c);case":decrement":return(c,D)=>parseFloat(D)<parseFloat(c);default:return l.push(`The transition alias value "${I}" is not supported`),"* => *"}}(I,c);if("function"==typeof p)return void l.push(p);I=p}const D=I.match(/^(\*|[-\w]+)\s*(<?[=-]>)\s*(\*|[-\w]+)$/);if(null==D||D.length<4)return c.push(`The provided transition expression "${I}" is not supported`),l;const A=D[1],R=D[2],h=D[3];l.push(Te(A,h));"<"==R[0]&&!(A==G&&h==G)&&l.push(Te(h,A))}(D,c,l)):c.push(I),c}const He=new Set(["true","1"]),Re=new Set(["false","0"]);function Te(I,l){const c=He.has(I)||Re.has(I),D=He.has(l)||Re.has(l);return(A,R)=>{let h=I==G||I==A,C=l==G||l==R;return!h&&c&&"boolean"==typeof A&&(h=A?He.has(I):Re.has(I)),!C&&D&&"boolean"==typeof R&&(C=R?He.has(l):Re.has(l)),h&&C}}const jt=new RegExp("s*:selfs*,?","g");function Ot(I,l,c){return new Wt(I).build(l,c)}class Wt{constructor(l){this._driver=l}build(l,c){const D=new U(c);return this._resetContextStyleTimingState(D),Jt(this,gt(l),D)}_resetContextStyleTimingState(l){l.currentQuerySelector="",l.collectedStyles={},l.collectedStyles[""]={},l.currentTime=0}visitTrigger(l,c){let D=c.queryCount=0,A=c.depCount=0;const R=[],h=[];return"@"==l.name.charAt(0)&&c.errors.push("animation triggers cannot be prefixed with an `@` sign (e.g. trigger('@foo', [...]))"),l.definitions.forEach(C=>{if(this._resetContextStyleTimingState(c),0==C.type){const p=C,T=p.name;T.toString().split(/\s*,\s*/).forEach(N=>{p.name=N,R.push(this.visitState(p,c))}),p.name=T}else if(1==C.type){const p=this.visitTransition(C,c);D+=p.queryCount,A+=p.depCount,h.push(p)}else c.errors.push("only state() and transition() definitions can sit inside of a trigger()")}),{type:7,name:l.name,states:R,transitions:h,queryCount:D,depCount:A,options:null}}visitState(l,c){const D=this.visitStyle(l.styles,c),A=l.options&&l.options.params||null;if(D.containsDynamicStyles){const R=new Set,h=A||{};if(D.styles.forEach(C=>{if(Qe(C)){const p=C;Object.keys(p).forEach(T=>{hn(p[T]).forEach(N=>{h.hasOwnProperty(N)||R.add(N)})})}}),R.size){const C=nn(R.values());c.errors.push(`state("${l.name}", ...) must define default values for all the following style substitutions: ${C.join(", ")}`)}}return{type:0,name:l.name,style:D,options:A?{params:A}:null}}visitTransition(l,c){c.queryCount=0,c.depCount=0;const D=Jt(this,gt(l.animation),c);return{type:1,matchers:Z(l.expr,c.errors),animation:D,queryCount:c.queryCount,depCount:c.depCount,options:at(l.options)}}visitSequence(l,c){return{type:2,steps:l.steps.map(D=>Jt(this,D,c)),options:at(l.options)}}visitGroup(l,c){const D=c.currentTime;let A=0;const R=l.steps.map(h=>{c.currentTime=D;const C=Jt(this,h,c);return A=Math.max(A,c.currentTime),C});return c.currentTime=A,{type:3,steps:R,options:at(l.options)}}visitAnimate(l,c){const D=function Dt(I,l){let c=null;if(I.hasOwnProperty("duration"))c=I;else if("number"==typeof I)return Tt(on(I,l).duration,0,"");const D=I;if(D.split(/\s+/).some(R=>"{"==R.charAt(0)&&"{"==R.charAt(1))){const R=Tt(0,0,"");return R.dynamic=!0,R.strValue=D,R}return c=c||on(D,l),Tt(c.duration,c.delay,c.easing)}(l.timings,c.errors);c.currentAnimateTimings=D;let A,R=l.styles?l.styles:(0,re.oB)({});if(5==R.type)A=this.visitKeyframes(R,c);else{let h=l.styles,C=!1;if(!h){C=!0;const T={};D.easing&&(T.easing=D.easing),h=(0,re.oB)(T)}c.currentTime+=D.duration+D.delay;const p=this.visitStyle(h,c);p.isEmptyStep=C,A=p}return c.currentAnimateTimings=null,{type:4,timings:D,style:A,options:null}}visitStyle(l,c){const D=this._makeStyleAst(l,c);return this._validateStyleAst(D,c),D}_makeStyleAst(l,c){const D=[];Array.isArray(l.styles)?l.styles.forEach(h=>{"string"==typeof h?h==re.l3?D.push(h):c.errors.push(`The provided style string value ${h} is not allowed.`):D.push(h)}):D.push(l.styles);let A=!1,R=null;return D.forEach(h=>{if(Qe(h)){const C=h,p=C.easing;if(p&&(R=p,delete C.easing),!A)for(let T in C)if(C[T].toString().indexOf("{{")>=0){A=!0;break}}}),{type:6,styles:D,easing:R,offset:l.offset,containsDynamicStyles:A,options:null}}_validateStyleAst(l,c){const D=c.currentAnimateTimings;let A=c.currentTime,R=c.currentTime;D&&R>0&&(R-=D.duration+D.delay),l.styles.forEach(h=>{"string"!=typeof h&&Object.keys(h).forEach(C=>{if(!this._driver.validateStyleProperty(C))return void c.errors.push(`The provided animation property "${C}" is not a supported CSS property for animations`);const p=c.collectedStyles[c.currentQuerySelector],T=p[C];let N=!0;T&&(R!=A&&R>=T.startTime&&A<=T.endTime&&(c.errors.push(`The CSS property "${C}" 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 "${R}ms" and "${A}ms"`),N=!1),R=T.startTime),N&&(p[C]={startTime:R,endTime:A}),c.options&&function Vt(I,l,c){const D=l.params||{},A=hn(I);A.length&&A.forEach(R=>{D.hasOwnProperty(R)||c.push(`Unable to resolve the local animation param ${R} in the given list of values`)})}(h[C],c.options,c.errors)})})}visitKeyframes(l,c){const D={type:5,styles:[],options:null};if(!c.currentAnimateTimings)return c.errors.push("keyframes() must be placed inside of a call to animate()"),D;let R=0;const h=[];let C=!1,p=!1,T=0;const N=l.steps.map(We=>{const Ct=this._makeStyleAst(We,c);let pt=null!=Ct.offset?Ct.offset:function fe(I){if("string"==typeof I)return null;let l=null;if(Array.isArray(I))I.forEach(c=>{if(Qe(c)&&c.hasOwnProperty("offset")){const D=c;l=parseFloat(D.offset),delete D.offset}});else if(Qe(I)&&I.hasOwnProperty("offset")){const c=I;l=parseFloat(c.offset),delete c.offset}return l}(Ct.styles),Et=0;return null!=pt&&(R++,Et=Ct.offset=pt),p=p||Et<0||Et>1,C=C||Et<T,T=Et,h.push(Et),Ct});p&&c.errors.push("Please ensure that all keyframe offsets are between 0 and 1"),C&&c.errors.push("Please ensure that all keyframe offsets are in order");const Q=l.steps.length;let de=0;R>0&&R<Q?c.errors.push("Not all style() steps within the declared keyframes() contain offsets"):0==R&&(de=1/(Q-1));const Ee=Q-1,je=c.currentTime,ze=c.currentAnimateTimings,Xe=ze.duration;return N.forEach((We,Ct)=>{const pt=de>0?Ct==Ee?1:de*Ct:h[Ct],Et=pt*Xe;c.currentTime=je+ze.delay+Et,ze.duration=Et,this._validateStyleAst(We,c),We.offset=pt,D.styles.push(We)}),D}visitReference(l,c){return{type:8,animation:Jt(this,gt(l.animation),c),options:at(l.options)}}visitAnimateChild(l,c){return c.depCount++,{type:9,options:at(l.options)}}visitAnimateRef(l,c){return{type:10,animation:this.visitReference(l.animation,c),options:at(l.options)}}visitQuery(l,c){const D=c.currentQuerySelector,A=l.options||{};c.queryCount++,c.currentQuery=l;const[R,h]=function j(I){const l=!!I.split(/\s*,\s*/).find(c=>":self"==c);return l&&(I=I.replace(jt,"")),I=I.replace(/@\*/g,Ve).replace(/@\w+/g,c=>Ve+"-"+c.substr(1)).replace(/:animating/g,yn),[I,l]}(l.selector);c.currentQuerySelector=D.length?D+" "+R:R,W(c.collectedStyles,c.currentQuerySelector,{});const C=Jt(this,gt(l.animation),c);return c.currentQuery=null,c.currentQuerySelector=D,{type:11,selector:R,limit:A.limit||0,optional:!!A.optional,includeSelf:h,animation:C,originalSelector:l.selector,options:at(l.options)}}visitStagger(l,c){c.currentQuery||c.errors.push("stagger() can only be used inside of query()");const D="full"===l.timings?{duration:0,delay:0,easing:"full"}:on(l.timings,c.errors,!0);return{type:12,animation:Jt(this,gt(l.animation),c),timings:D,options:null}}}class U{constructor(l){this.errors=l,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 Qe(I){return!Array.isArray(I)&&"object"==typeof I}function at(I){return I?(I=tn(I)).params&&(I.params=function le(I){return I?tn(I):null}(I.params)):I={},I}function Tt(I,l,c){return{duration:I,delay:l,easing:c}}function an(I,l,c,D,A,R,h=null,C=!1){return{type:1,element:I,keyframes:l,preStyleProps:c,postStyleProps:D,duration:A,delay:R,totalTime:A+R,easing:h,subTimeline:C}}class zn{constructor(){this._map=new Map}get(l){return this._map.get(l)||[]}append(l,c){let D=this._map.get(l);D||this._map.set(l,D=[]),D.push(...c)}has(l){return this._map.has(l)}clear(){this._map.clear()}}const Vn=new RegExp(":enter","g"),er=new RegExp(":leave","g");function br(I,l,c,D,A,R={},h={},C,p,T=[]){return(new se).buildKeyframes(I,l,c,D,A,R,h,C,p,T)}class se{buildKeyframes(l,c,D,A,R,h,C,p,T,N=[]){T=T||new zn;const Q=new k(l,c,T,A,R,N,[]);Q.options=p,Q.currentTimeline.setStyles([h],null,Q.errors,p),Jt(this,D,Q);const de=Q.timelines.filter(Ee=>Ee.containsAnimation());if(Object.keys(C).length){let Ee;for(let je=de.length-1;je>=0;je--){const ze=de[je];if(ze.element===c){Ee=ze;break}}Ee&&!Ee.allowOnlyTimelineStyles()&&Ee.setStyles([C],null,Q.errors,p)}return de.length?de.map(Ee=>Ee.buildKeyframes()):[an(c,[],[],[],0,0,"",!1)]}visitTrigger(l,c){}visitState(l,c){}visitTransition(l,c){}visitAnimateChild(l,c){const D=c.subInstructions.get(c.element);if(D){const A=c.createSubContext(l.options),R=c.currentTimeline.currentTime,h=this._visitSubInstructions(D,A,A.options);R!=h&&c.transformIntoNewTimeline(h)}c.previousNode=l}visitAnimateRef(l,c){const D=c.createSubContext(l.options);D.transformIntoNewTimeline(),this.visitReference(l.animation,D),c.transformIntoNewTimeline(D.currentTimeline.currentTime),c.previousNode=l}_visitSubInstructions(l,c,D){let R=c.currentTimeline.currentTime;const h=null!=D.duration?dn(D.duration):null,C=null!=D.delay?dn(D.delay):null;return 0!==h&&l.forEach(p=>{const T=c.appendInstructionToTimeline(p,h,C);R=Math.max(R,T.duration+T.delay)}),R}visitReference(l,c){c.updateOptions(l.options,!0),Jt(this,l.animation,c),c.previousNode=l}visitSequence(l,c){const D=c.subContextCount;let A=c;const R=l.options;if(R&&(R.params||R.delay)&&(A=c.createSubContext(R),A.transformIntoNewTimeline(),null!=R.delay)){6==A.previousNode.type&&(A.currentTimeline.snapshotCurrentStyles(),A.previousNode=q);const h=dn(R.delay);A.delayNextStep(h)}l.steps.length&&(l.steps.forEach(h=>Jt(this,h,A)),A.currentTimeline.applyStylesToKeyframe(),A.subContextCount>D&&A.transformIntoNewTimeline()),c.previousNode=l}visitGroup(l,c){const D=[];let A=c.currentTimeline.currentTime;const R=l.options&&l.options.delay?dn(l.options.delay):0;l.steps.forEach(h=>{const C=c.createSubContext(l.options);R&&C.delayNextStep(R),Jt(this,h,C),A=Math.max(A,C.currentTimeline.currentTime),D.push(C.currentTimeline)}),D.forEach(h=>c.currentTimeline.mergeTimelineCollectedStyles(h)),c.transformIntoNewTimeline(A),c.previousNode=l}_visitTiming(l,c){if(l.dynamic){const D=l.strValue;return on(c.params?Mt(D,c.params,c.errors):D,c.errors)}return{duration:l.duration,delay:l.delay,easing:l.easing}}visitAnimate(l,c){const D=c.currentAnimateTimings=this._visitTiming(l.timings,c),A=c.currentTimeline;D.delay&&(c.incrementTime(D.delay),A.snapshotCurrentStyles());const R=l.style;5==R.type?this.visitKeyframes(R,c):(c.incrementTime(D.duration),this.visitStyle(R,c),A.applyStylesToKeyframe()),c.currentAnimateTimings=null,c.previousNode=l}visitStyle(l,c){const D=c.currentTimeline,A=c.currentAnimateTimings;!A&&D.getCurrentStyleProperties().length&&D.forwardFrame();const R=A&&A.easing||l.easing;l.isEmptyStep?D.applyEmptyStep(R):D.setStyles(l.styles,R,c.errors,c.options),c.previousNode=l}visitKeyframes(l,c){const D=c.currentAnimateTimings,A=c.currentTimeline.duration,R=D.duration,C=c.createSubContext().currentTimeline;C.easing=D.easing,l.styles.forEach(p=>{C.forwardTime((p.offset||0)*R),C.setStyles(p.styles,p.easing,c.errors,c.options),C.applyStylesToKeyframe()}),c.currentTimeline.mergeTimelineCollectedStyles(C),c.transformIntoNewTimeline(A+R),c.previousNode=l}visitQuery(l,c){const D=c.currentTimeline.currentTime,A=l.options||{},R=A.delay?dn(A.delay):0;R&&(6===c.previousNode.type||0==D&&c.currentTimeline.getCurrentStyleProperties().length)&&(c.currentTimeline.snapshotCurrentStyles(),c.previousNode=q);let h=D;const C=c.invokeQuery(l.selector,l.originalSelector,l.limit,l.includeSelf,!!A.optional,c.errors);c.currentQueryTotal=C.length;let p=null;C.forEach((T,N)=>{c.currentQueryIndex=N;const Q=c.createSubContext(l.options,T);R&&Q.delayNextStep(R),T===c.element&&(p=Q.currentTimeline),Jt(this,l.animation,Q),Q.currentTimeline.applyStylesToKeyframe(),h=Math.max(h,Q.currentTimeline.currentTime)}),c.currentQueryIndex=0,c.currentQueryTotal=0,c.transformIntoNewTimeline(h),p&&(c.currentTimeline.mergeTimelineCollectedStyles(p),c.currentTimeline.snapshotCurrentStyles()),c.previousNode=l}visitStagger(l,c){const D=c.parentContext,A=c.currentTimeline,R=l.timings,h=Math.abs(R.duration),C=h*(c.currentQueryTotal-1);let p=h*c.currentQueryIndex;switch(R.duration<0?"reverse":R.easing){case"reverse":p=C-p;break;case"full":p=D.currentStaggerTime}const N=c.currentTimeline;p&&N.delayNextStep(p);const Q=N.currentTime;Jt(this,l.animation,c),c.previousNode=l,D.currentStaggerTime=A.currentTime-Q+(A.startTime-D.currentTimeline.startTime)}}const q={};class k{constructor(l,c,D,A,R,h,C,p){this._driver=l,this.element=c,this.subInstructions=D,this._enterClassName=A,this._leaveClassName=R,this.errors=h,this.timelines=C,this.parentContext=null,this.currentAnimateTimings=null,this.previousNode=q,this.subContextCount=0,this.options={},this.currentQueryIndex=0,this.currentQueryTotal=0,this.currentStaggerTime=0,this.currentTimeline=p||new X(this._driver,c,0),C.push(this.currentTimeline)}get params(){return this.options.params}updateOptions(l,c){if(!l)return;const D=l;let A=this.options;null!=D.duration&&(A.duration=dn(D.duration)),null!=D.delay&&(A.delay=dn(D.delay));const R=D.params;if(R){let h=A.params;h||(h=this.options.params={}),Object.keys(R).forEach(C=>{(!c||!h.hasOwnProperty(C))&&(h[C]=Mt(R[C],h,this.errors))})}}_copyOptions(){const l={};if(this.options){const c=this.options.params;if(c){const D=l.params={};Object.keys(c).forEach(A=>{D[A]=c[A]})}}return l}createSubContext(l=null,c,D){const A=c||this.element,R=new k(this._driver,A,this.subInstructions,this._enterClassName,this._leaveClassName,this.errors,this.timelines,this.currentTimeline.fork(A,D||0));return R.previousNode=this.previousNode,R.currentAnimateTimings=this.currentAnimateTimings,R.options=this._copyOptions(),R.updateOptions(l),R.currentQueryIndex=this.currentQueryIndex,R.currentQueryTotal=this.currentQueryTotal,R.parentContext=this,this.subContextCount++,R}transformIntoNewTimeline(l){return this.previousNode=q,this.currentTimeline=this.currentTimeline.fork(this.element,l),this.timelines.push(this.currentTimeline),this.currentTimeline}appendInstructionToTimeline(l,c,D){const A={duration:null!=c?c:l.duration,delay:this.currentTimeline.currentTime+(null!=D?D:0)+l.delay,easing:""},R=new pe(this._driver,l.element,l.keyframes,l.preStyleProps,l.postStyleProps,A,l.stretchStartingKeyframe);return this.timelines.push(R),A}incrementTime(l){this.currentTimeline.forwardTime(this.currentTimeline.duration+l)}delayNextStep(l){l>0&&this.currentTimeline.delayNextStep(l)}invokeQuery(l,c,D,A,R,h){let C=[];if(A&&C.push(this.element),l.length>0){l=(l=l.replace(Vn,"."+this._enterClassName)).replace(er,"."+this._leaveClassName);let T=this._driver.query(this.element,l,1!=D);0!==D&&(T=D<0?T.slice(T.length+D,T.length):T.slice(0,D)),C.push(...T)}return!R&&0==C.length&&h.push(`\`query("${c}")\` returned zero elements. (Use \`query("${c}", { optional: true })\` if you wish to allow this.)`),C}}class X{constructor(l,c,D,A){this._driver=l,this.element=c,this.startTime=D,this._elementTimelineStylesLookup=A,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(c),this._globalTimelineStyles||(this._globalTimelineStyles=this._localTimelineStyles,this._elementTimelineStylesLookup.set(c,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(l){const c=1==this._keyframes.size&&Object.keys(this._pendingStyles).length;this.duration||c?(this.forwardTime(this.currentTime+l),c&&this.snapshotCurrentStyles()):this.startTime+=l}fork(l,c){return this.applyStylesToKeyframe(),new X(this._driver,l,c||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(l){this.applyStylesToKeyframe(),this.duration=l,this._loadKeyframe()}_updateStyle(l,c){this._localTimelineStyles[l]=c,this._globalTimelineStyles[l]=c,this._styleSummary[l]={time:this.currentTime,value:c}}allowOnlyTimelineStyles(){return this._currentEmptyStepKeyframe!==this._currentKeyframe}applyEmptyStep(l){l&&(this._previousKeyframe.easing=l),Object.keys(this._globalTimelineStyles).forEach(c=>{this._backFill[c]=this._globalTimelineStyles[c]||re.l3,this._currentKeyframe[c]=re.l3}),this._currentEmptyStepKeyframe=this._currentKeyframe}setStyles(l,c,D,A){c&&(this._previousKeyframe.easing=c);const R=A&&A.params||{},h=function vt(I,l){const c={};let D;return I.forEach(A=>{"*"===A?(D=D||Object.keys(l),D.forEach(R=>{c[R]=re.l3})):Me(A,!1,c)}),c}(l,this._globalTimelineStyles);Object.keys(h).forEach(C=>{const p=Mt(h[C],R,D);this._pendingStyles[C]=p,this._localTimelineStyles.hasOwnProperty(C)||(this._backFill[C]=this._globalTimelineStyles.hasOwnProperty(C)?this._globalTimelineStyles[C]:re.l3),this._updateStyle(C,p)})}applyStylesToKeyframe(){const l=this._pendingStyles,c=Object.keys(l);0!=c.length&&(this._pendingStyles={},c.forEach(D=>{this._currentKeyframe[D]=l[D]}),Object.keys(this._localTimelineStyles).forEach(D=>{this._currentKeyframe.hasOwnProperty(D)||(this._currentKeyframe[D]=this._localTimelineStyles[D])}))}snapshotCurrentStyles(){Object.keys(this._localTimelineStyles).forEach(l=>{const c=this._localTimelineStyles[l];this._pendingStyles[l]=c,this._updateStyle(l,c)})}getFinalKeyframe(){return this._keyframes.get(this.duration)}get properties(){const l=[];for(let c in this._currentKeyframe)l.push(c);return l}mergeTimelineCollectedStyles(l){Object.keys(l._styleSummary).forEach(c=>{const D=this._styleSummary[c],A=l._styleSummary[c];(!D||A.time>D.time)&&this._updateStyle(c,A.value)})}buildKeyframes(){this.applyStylesToKeyframe();const l=new Set,c=new Set,D=1===this._keyframes.size&&0===this.duration;let A=[];this._keyframes.forEach((C,p)=>{const T=Me(C,!0);Object.keys(T).forEach(N=>{const Q=T[N];Q==re.k1?l.add(N):Q==re.l3&&c.add(N)}),D||(T.offset=p/this.duration),A.push(T)});const R=l.size?nn(l.values()):[],h=c.size?nn(c.values()):[];if(D){const C=A[0],p=tn(C);C.offset=0,p.offset=1,A=[C,p]}return an(this.element,A,R,h,this.duration,this.startTime,this.easing,!1)}}class pe extends X{constructor(l,c,D,A,R,h,C=!1){super(l,c,h.delay),this.keyframes=D,this.preStyleProps=A,this.postStyleProps=R,this._stretchStartingKeyframe=C,this.timings={duration:h.duration,delay:h.delay,easing:h.easing}}containsAnimation(){return this.keyframes.length>1}buildKeyframes(){let l=this.keyframes,{delay:c,duration:D,easing:A}=this.timings;if(this._stretchStartingKeyframe&&c){const R=[],h=D+c,C=c/h,p=Me(l[0],!1);p.offset=0,R.push(p);const T=Me(l[0],!1);T.offset=Je(C),R.push(T);const N=l.length-1;for(let Q=1;Q<=N;Q++){let de=Me(l[Q],!1);de.offset=Je((c+de.offset*D)/h),R.push(de)}D=h,c=0,A="",l=R}return an(this.element,l,this.preStyleProps,this.postStyleProps,D,c,A,!0)}}function Je(I,l=3){const c=Math.pow(10,l-1);return Math.round(I*c)/c}class Pt{}class bn extends Pt{normalizePropertyName(l,c){return Bt(l)}normalizeStyleValue(l,c,D,A){let R="";const h=D.toString().trim();if(pn[c]&&0!==D&&"0"!==D)if("number"==typeof D)R="px";else{const C=D.match(/^[+-]?[\d\.]+([a-z]*)$/);C&&0==C[1].length&&A.push(`Please provide a CSS unit value for ${l}:${D}`)}return h+R}}const pn=(()=>function Nn(I){const l={};return I.forEach(c=>l[c]=!0),l}("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 wn(I,l,c,D,A,R,h,C,p,T,N,Q,de){return{type:0,element:I,triggerName:l,isRemovalTransition:A,fromState:c,fromStyles:R,toState:D,toStyles:h,timelines:C,queriedElements:p,preStyleProps:T,postStyleProps:N,totalTime:Q,errors:de}}const tr={};class Wn{constructor(l,c,D){this._triggerName=l,this.ast=c,this._stateStyles=D}match(l,c,D,A){return function nr(I,l,c,D,A){return I.some(R=>R(l,c,D,A))}(this.ast.matchers,l,c,D,A)}buildStyles(l,c,D){const A=this._stateStyles["*"],R=this._stateStyles[l],h=A?A.buildStyles(c,D):{};return R?R.buildStyles(c,D):h}build(l,c,D,A,R,h,C,p,T,N){const Q=[],de=this.ast.options&&this.ast.options.params||tr,je=this.buildStyles(D,C&&C.params||tr,Q),ze=p&&p.params||tr,Xe=this.buildStyles(A,ze,Q),We=new Set,Ct=new Map,pt=new Map,Et="void"===A,Ut={params:Object.assign(Object.assign({},de),ze)},un=N?[]:br(l,c,this.ast.animation,R,h,je,Xe,Ut,T,Q);let b=0;if(un.forEach(y=>{b=Math.max(y.duration+y.delay,b)}),Q.length)return wn(c,this._triggerName,D,A,Et,je,Xe,[],[],Ct,pt,b,Q);un.forEach(y=>{const O=y.element,me=W(Ct,O,{});y.preStyleProps.forEach(zt=>me[zt]=!0);const Pe=W(pt,O,{});y.postStyleProps.forEach(zt=>Pe[zt]=!0),O!==c&&We.add(O)});const _=nn(We.values());return wn(c,this._triggerName,D,A,Et,je,Xe,un,_,Ct,pt,b)}}class Yt{constructor(l,c,D){this.styles=l,this.defaultParams=c,this.normalizer=D}buildStyles(l,c){const D={},A=tn(this.defaultParams);return Object.keys(l).forEach(R=>{const h=l[R];null!=h&&(A[R]=h)}),this.styles.styles.forEach(R=>{if("string"!=typeof R){const h=R;Object.keys(h).forEach(C=>{let p=h[C];p.length>1&&(p=Mt(p,A,c));const T=this.normalizer.normalizePropertyName(C,c);p=this.normalizer.normalizeStyleValue(C,T,p,c),D[T]=p})}}),D}}class gn{constructor(l,c,D){this.name=l,this.ast=c,this._normalizer=D,this.transitionFactories=[],this.states={},c.states.forEach(A=>{this.states[A.name]=new Yt(A.style,A.options&&A.options.params||{},D)}),ut(this.states,"true","1"),ut(this.states,"false","0"),c.transitions.forEach(A=>{this.transitionFactories.push(new Wn(l,A,this.states))}),this.fallbackTransition=function Be(I,l,c){return new Wn(I,{type:1,animation:{type:2,steps:[],options:null},matchers:[(h,C)=>!0],options:null,queryCount:0,depCount:0},l)}(l,this.states)}get containsQueries(){return this.ast.queryCount>0}matchTransition(l,c,D,A){return this.transitionFactories.find(h=>h.match(l,c,D,A))||null}matchStyles(l,c,D){return this.fallbackTransition.buildStyles(l,c,D)}}function ut(I,l,c){I.hasOwnProperty(l)?I.hasOwnProperty(c)||(I[c]=I[l]):I.hasOwnProperty(c)&&(I[l]=I[c])}const kt=new zn;class _n{constructor(l,c,D){this.bodyNode=l,this._driver=c,this._normalizer=D,this._animations={},this._playersById={},this.players=[]}register(l,c){const D=[],A=Ot(this._driver,c,D);if(D.length)throw new Error(`Unable to build the animation due to the following errors: ${D.join("\n")}`);this._animations[l]=A}_buildPlayer(l,c,D){const A=l.element,R=K(0,this._normalizer,0,l.keyframes,c,D);return this._driver.animate(A,R,l.duration,l.delay,l.easing,[],!0)}create(l,c,D={}){const A=[],R=this._animations[l];let h;const C=new Map;if(R?(h=br(this._driver,c,R,_t,tt,{},{},D,kt,A),h.forEach(N=>{const Q=W(C,N.element,{});N.postStyleProps.forEach(de=>Q[de]=null)})):(A.push("The requested animation doesn't exist or has already been destroyed"),h=[]),A.length)throw new Error(`Unable to create the animation due to the following errors: ${A.join("\n")}`);C.forEach((N,Q)=>{Object.keys(N).forEach(de=>{N[de]=this._driver.computeStyle(Q,de,re.l3)})});const T=Y(h.map(N=>{const Q=C.get(N.element);return this._buildPlayer(N,{},Q)}));return this._playersById[l]=T,T.onDestroy(()=>this.destroy(l)),this.players.push(T),T}destroy(l){const c=this._getPlayer(l);c.destroy(),delete this._playersById[l];const D=this.players.indexOf(c);D>=0&&this.players.splice(D,1)}_getPlayer(l){const c=this._playersById[l];if(!c)throw new Error(`Unable to find the timeline player referenced by ${l}`);return c}listen(l,c,D,A){const R=$(c,"","","");return ee(this._getPlayer(l),D,R,A),()=>{}}command(l,c,D,A){if("register"==D)return void this.register(l,A[0]);if("create"==D)return void this.create(l,c,A[0]||{});const R=this._getPlayer(l);switch(D){case"play":R.play();break;case"pause":R.pause();break;case"reset":R.reset();break;case"restart":R.restart();break;case"finish":R.finish();break;case"init":R.init();break;case"setPosition":R.setPosition(parseFloat(A[0]));break;case"destroy":this.destroy(l)}}}const Rn="ng-animate-queued",Bn="ng-animate-disabled",ct=[],Fn={namespaceId:"",setForRemoval:!1,setForMove:!1,hasAnimation:!1,removedBeforeQueried:!1},Yn={namespaceId:"",setForMove:!1,setForRemoval:!1,hasAnimation:!1,removedBeforeQueried:!0},Gt="__ng_removed";class kn{constructor(l,c=""){this.namespaceId=c;const D=l&&l.hasOwnProperty("value");if(this.value=function mr(I){return null!=I?I:null}(D?l.value:l),D){const R=tn(l);delete R.value,this.options=R}else this.options={};this.options.params||(this.options.params={})}get params(){return this.options.params}absorbOptions(l){const c=l.params;if(c){const D=this.options.params;Object.keys(c).forEach(A=>{null==D[A]&&(D[A]=c[A])})}}}const en="void",Zn=new kn(en);class sr{constructor(l,c,D){this.id=l,this.hostElement=c,this._engine=D,this.players=[],this._triggers={},this._queue=[],this._elementListeners=new Map,this._hostClassName="ng-tns-"+l,Qt(c,this._hostClassName)}listen(l,c,D,A){if(!this._triggers.hasOwnProperty(c))throw new Error(`Unable to listen on the animation trigger event "${D}" because the animation trigger "${c}" doesn't exist!`);if(null==D||0==D.length)throw new Error(`Unable to listen on the animation trigger "${c}" because the provided event is undefined!`);if(!function Dn(I){return"start"==I||"done"==I}(D))throw new Error(`The provided animation trigger event "${D}" for the animation trigger "${c}" is not supported!`);const R=W(this._elementListeners,l,[]),h={name:c,phase:D,callback:A};R.push(h);const C=W(this._engine.statesByElement,l,{});return C.hasOwnProperty(c)||(Qt(l,ft),Qt(l,ft+"-"+c),C[c]=Zn),()=>{this._engine.afterFlush(()=>{const p=R.indexOf(h);p>=0&&R.splice(p,1),this._triggers[c]||delete C[c]})}}register(l,c){return!this._triggers[l]&&(this._triggers[l]=c,!0)}_getTrigger(l){const c=this._triggers[l];if(!c)throw new Error(`The provided animation trigger "${l}" has not been registered!`);return c}trigger(l,c,D,A=!0){const R=this._getTrigger(c),h=new At(this.id,c,l);let C=this._engine.statesByElement.get(l);C||(Qt(l,ft),Qt(l,ft+"-"+c),this._engine.statesByElement.set(l,C={}));let p=C[c];const T=new kn(D,this.id);if(!(D&&D.hasOwnProperty("value"))&&p&&T.absorbOptions(p.options),C[c]=T,p||(p=Zn),T.value!==en&&p.value===T.value){if(!function Vr(I,l){const c=Object.keys(I),D=Object.keys(l);if(c.length!=D.length)return!1;for(let A=0;A<c.length;A++){const R=c[A];if(!l.hasOwnProperty(R)||I[R]!==l[R])return!1}return!0}(p.params,T.params)){const ze=[],Xe=R.matchStyles(p.value,p.params,ze),We=R.matchStyles(T.value,T.params,ze);ze.length?this._engine.reportError(ze):this._engine.afterFlush(()=>{nt(l,Xe),ke(l,We)})}return}const de=W(this._engine.playersByElement,l,[]);de.forEach(ze=>{ze.namespaceId==this.id&&ze.triggerName==c&&ze.queued&&ze.destroy()});let Ee=R.matchTransition(p.value,T.value,l,T.params),je=!1;if(!Ee){if(!A)return;Ee=R.fallbackTransition,je=!0}return this._engine.totalQueuedPlayers++,this._queue.push({element:l,triggerName:c,transition:Ee,fromState:p,toState:T,player:h,isFallbackTransition:je}),je||(Qt(l,Rn),h.onStart(()=>{jn(l,Rn)})),h.onDone(()=>{let ze=this.players.indexOf(h);ze>=0&&this.players.splice(ze,1);const Xe=this._engine.playersByElement.get(l);if(Xe){let We=Xe.indexOf(h);We>=0&&Xe.splice(We,1)}}),this.players.push(h),de.push(h),h}deregister(l){delete this._triggers[l],this._engine.statesByElement.forEach((c,D)=>{delete c[l]}),this._elementListeners.forEach((c,D)=>{this._elementListeners.set(D,c.filter(A=>A.name!=l))})}clearElementCache(l){this._engine.statesByElement.delete(l),this._elementListeners.delete(l);const c=this._engine.playersByElement.get(l);c&&(c.forEach(D=>D.destroy()),this._engine.playersByElement.delete(l))}_signalRemovalForInnerTriggers(l,c){const D=this._engine.driver.query(l,Ve,!0);D.forEach(A=>{if(A[Gt])return;const R=this._engine.fetchNamespacesByElement(A);R.size?R.forEach(h=>h.triggerLeaveAnimation(A,c,!1,!0)):this.clearElementCache(A)}),this._engine.afterFlushAnimationsDone(()=>D.forEach(A=>this.clearElementCache(A)))}triggerLeaveAnimation(l,c,D,A){const R=this._engine.statesByElement.get(l),h=new Map;if(R){const C=[];if(Object.keys(R).forEach(p=>{if(h.set(p,R[p].value),this._triggers[p]){const T=this.trigger(l,p,en,A);T&&C.push(T)}}),C.length)return this._engine.markElementAsRemoved(this.id,l,!0,c,h),D&&Y(C).onDone(()=>this._engine.processLeaveNode(l)),!0}return!1}prepareLeaveAnimationListeners(l){const c=this._elementListeners.get(l),D=this._engine.statesByElement.get(l);if(c&&D){const A=new Set;c.forEach(R=>{const h=R.name;if(A.has(h))return;A.add(h);const p=this._triggers[h].fallbackTransition,T=D[h]||Zn,N=new kn(en),Q=new At(this.id,h,l);this._engine.totalQueuedPlayers++,this._queue.push({element:l,triggerName:h,transition:p,fromState:T,toState:N,player:Q,isFallbackTransition:!0})})}}removeNode(l,c){const D=this._engine;if(l.childElementCount&&this._signalRemovalForInnerTriggers(l,c),this.triggerLeaveAnimation(l,c,!0))return;let A=!1;if(D.totalAnimations){const R=D.players.length?D.playersByQueriedElement.get(l):[];if(R&&R.length)A=!0;else{let h=l;for(;h=h.parentNode;)if(D.statesByElement.get(h)){A=!0;break}}}if(this.prepareLeaveAnimationListeners(l),A)D.markElementAsRemoved(this.id,l,!1,c);else{const R=l[Gt];(!R||R===Fn)&&(D.afterFlush(()=>this.clearElementCache(l)),D.destroyInnerAnimations(l),D._onRemovalComplete(l,c))}}insertNode(l,c){Qt(l,this._hostClassName)}drainQueuedTransitions(l){const c=[];return this._queue.forEach(D=>{const A=D.player;if(A.destroyed)return;const R=D.element,h=this._elementListeners.get(R);h&&h.forEach(C=>{if(C.name==D.triggerName){const p=$(R,D.triggerName,D.fromState.value,D.toState.value);p._data=l,ee(D.player,C.phase,p,C.callback)}}),A.markedForDestroy?this._engine.afterFlush(()=>{A.destroy()}):c.push(D)}),this._queue=[],c.sort((D,A)=>{const R=D.transition.ast.depCount,h=A.transition.ast.depCount;return 0==R||0==h?R-h:this._engine.driver.containsElement(D.element,A.element)?1:-1})}destroy(l){this.players.forEach(c=>c.destroy()),this._signalRemovalForInnerTriggers(this.hostElement,l)}elementContainsData(l){let c=!1;return this._elementListeners.has(l)&&(c=!0),c=!!this._queue.find(D=>D.element===l)||c,c}}class sn{constructor(l,c,D){this.bodyNode=l,this.driver=c,this._normalizer=D,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=(A,R)=>{}}_onRemovalComplete(l,c){this.onRemovalComplete(l,c)}get queuedPlayers(){const l=[];return this._namespaceList.forEach(c=>{c.players.forEach(D=>{D.queued&&l.push(D)})}),l}createNamespace(l,c){const D=new sr(l,c,this);return this.bodyNode&&this.driver.containsElement(this.bodyNode,c)?this._balanceNamespaceList(D,c):(this.newHostElements.set(c,D),this.collectEnterElement(c)),this._namespaceLookup[l]=D}_balanceNamespaceList(l,c){const D=this._namespaceList.length-1;if(D>=0){let A=!1;for(let R=D;R>=0;R--)if(this.driver.containsElement(this._namespaceList[R].hostElement,c)){this._namespaceList.splice(R+1,0,l),A=!0;break}A||this._namespaceList.splice(0,0,l)}else this._namespaceList.push(l);return this.namespacesByHostElement.set(c,l),l}register(l,c){let D=this._namespaceLookup[l];return D||(D=this.createNamespace(l,c)),D}registerTrigger(l,c,D){let A=this._namespaceLookup[l];A&&A.register(c,D)&&this.totalAnimations++}destroy(l,c){if(!l)return;const D=this._fetchNamespace(l);this.afterFlush(()=>{this.namespacesByHostElement.delete(D.hostElement),delete this._namespaceLookup[l];const A=this._namespaceList.indexOf(D);A>=0&&this._namespaceList.splice(A,1)}),this.afterFlushAnimationsDone(()=>D.destroy(c))}_fetchNamespace(l){return this._namespaceLookup[l]}fetchNamespacesByElement(l){const c=new Set,D=this.statesByElement.get(l);if(D){const A=Object.keys(D);for(let R=0;R<A.length;R++){const h=D[A[R]].namespaceId;if(h){const C=this._fetchNamespace(h);C&&c.add(C)}}}return c}trigger(l,c,D,A){if(mn(c)){const R=this._fetchNamespace(l);if(R)return R.trigger(c,D,A),!0}return!1}insertNode(l,c,D,A){if(!mn(c))return;const R=c[Gt];if(R&&R.setForRemoval){R.setForRemoval=!1,R.setForMove=!0;const h=this.collectedLeaveElements.indexOf(c);h>=0&&this.collectedLeaveElements.splice(h,1)}if(l){const h=this._fetchNamespace(l);h&&h.insertNode(c,D)}A&&this.collectEnterElement(c)}collectEnterElement(l){this.collectedEnterElements.push(l)}markElementAsDisabled(l,c){c?this.disabledNodes.has(l)||(this.disabledNodes.add(l),Qt(l,Bn)):this.disabledNodes.has(l)&&(this.disabledNodes.delete(l),jn(l,Bn))}removeNode(l,c,D,A){if(mn(c)){const R=l?this._fetchNamespace(l):null;if(R?R.removeNode(c,A):this.markElementAsRemoved(l,c,!1,A),D){const h=this.namespacesByHostElement.get(c);h&&h.id!==l&&h.removeNode(c,A)}}else this._onRemovalComplete(c,A)}markElementAsRemoved(l,c,D,A,R){this.collectedLeaveElements.push(c),c[Gt]={namespaceId:l,setForRemoval:A,hasAnimation:D,removedBeforeQueried:!1,previousTriggersValues:R}}listen(l,c,D,A,R){return mn(c)?this._fetchNamespace(l).listen(c,D,A,R):()=>{}}_buildInstruction(l,c,D,A,R){return l.transition.build(this.driver,l.element,l.fromState.value,l.toState.value,D,A,l.fromState.options,l.toState.options,c,R)}destroyInnerAnimations(l){let c=this.driver.query(l,Ve,!0);c.forEach(D=>this.destroyActiveAnimationsForElement(D)),0!=this.playersByQueriedElement.size&&(c=this.driver.query(l,yn,!0),c.forEach(D=>this.finishActiveQueriedAnimationOnElement(D)))}destroyActiveAnimationsForElement(l){const c=this.playersByElement.get(l);c&&c.forEach(D=>{D.queued?D.markedForDestroy=!0:D.destroy()})}finishActiveQueriedAnimationOnElement(l){const c=this.playersByQueriedElement.get(l);c&&c.forEach(D=>D.finish())}whenRenderingDone(){return new Promise(l=>{if(this.players.length)return Y(this.players).onDone(()=>l());l()})}processLeaveNode(l){var c;const D=l[Gt];if(D&&D.setForRemoval){if(l[Gt]=Fn,D.namespaceId){this.destroyInnerAnimations(l);const A=this._fetchNamespace(D.namespaceId);A&&A.clearElementCache(l)}this._onRemovalComplete(l,D.setForRemoval)}(null===(c=l.classList)||void 0===c?void 0:c.contains(Bn))&&this.markElementAsDisabled(l,!1),this.driver.query(l,".ng-animate-disabled",!0).forEach(A=>{this.markElementAsDisabled(A,!1)})}flush(l=-1){let c=[];if(this.newHostElements.size&&(this.newHostElements.forEach((D,A)=>this._balanceNamespaceList(D,A)),this.newHostElements.clear()),this.totalAnimations&&this.collectedEnterElements.length)for(let D=0;D<this.collectedEnterElements.length;D++)Qt(this.collectedEnterElements[D],"ng-star-inserted");if(this._namespaceList.length&&(this.totalQueuedPlayers||this.collectedLeaveElements.length)){const D=[];try{c=this._flushAnimations(D,l)}finally{for(let A=0;A<D.length;A++)D[A]()}}else for(let D=0;D<this.collectedLeaveElements.length;D++)this.processLeaveNode(this.collectedLeaveElements[D]);if(this.totalQueuedPlayers=0,this.collectedEnterElements.length=0,this.collectedLeaveElements.length=0,this._flushFns.forEach(D=>D()),this._flushFns=[],this._whenQuietFns.length){const D=this._whenQuietFns;this._whenQuietFns=[],c.length?Y(c).onDone(()=>{D.forEach(A=>A())}):D.forEach(A=>A())}}reportError(l){throw new Error(`Unable to process animations due to the following failed trigger transitions\n ${l.join("\n")}`)}_flushAnimations(l,c){const D=new zn,A=[],R=new Map,h=[],C=new Map,p=new Map,T=new Map,N=new Set;this.disabledNodes.forEach($e=>{N.add($e);const qe=this.driver.query($e,".ng-animate-queued",!0);for(let st=0;st<qe.length;st++)N.add(qe[st])});const Q=this.bodyNode,de=Array.from(this.statesByElement.keys()),Ee=ln(de,this.collectedEnterElements),je=new Map;let ze=0;Ee.forEach(($e,qe)=>{const st=_t+ze++;je.set(qe,st),$e.forEach(It=>Qt(It,st))});const Xe=[],We=new Set,Ct=new Set;for(let $e=0;$e<this.collectedLeaveElements.length;$e++){const qe=this.collectedLeaveElements[$e],st=qe[Gt];st&&st.setForRemoval&&(Xe.push(qe),We.add(qe),st.hasAnimation?this.driver.query(qe,".ng-star-inserted",!0).forEach(It=>We.add(It)):Ct.add(qe))}const pt=new Map,Et=ln(de,Array.from(We));Et.forEach(($e,qe)=>{const st=tt+ze++;pt.set(qe,st),$e.forEach(It=>Qt(It,st))}),l.push(()=>{Ee.forEach(($e,qe)=>{const st=je.get(qe);$e.forEach(It=>jn(It,st))}),Et.forEach(($e,qe)=>{const st=pt.get(qe);$e.forEach(It=>jn(It,st))}),Xe.forEach($e=>{this.processLeaveNode($e)})});const Ut=[],un=[];for(let $e=this._namespaceList.length-1;$e>=0;$e--)this._namespaceList[$e].drainQueuedTransitions(c).forEach(st=>{const It=st.player,Ce=st.element;if(Ut.push(It),this.collectedEnterElements.length){const Pn=Ce[Gt];if(Pn&&Pn.setForMove){if(Pn.previousTriggersValues&&Pn.previousTriggersValues.has(st.triggerName)){const Or=Pn.previousTriggersValues.get(st.triggerName),rs=this.statesByElement.get(st.element);rs&&rs[st.triggerName]&&(rs[st.triggerName].value=Or)}return void It.destroy()}}const mt=!Q||!this.driver.containsElement(Q,Ce),Sn=pt.get(Ce),qt=je.get(Ce),Xt=this._buildInstruction(st,D,qt,Sn,mt);if(Xt.errors&&Xt.errors.length)return void un.push(Xt);if(mt)return It.onStart(()=>nt(Ce,Xt.fromStyles)),It.onDestroy(()=>ke(Ce,Xt.toStyles)),void A.push(It);if(st.isFallbackTransition)return It.onStart(()=>nt(Ce,Xt.fromStyles)),It.onDestroy(()=>ke(Ce,Xt.toStyles)),void A.push(It);const Cr=[];Xt.timelines.forEach(Pn=>{Pn.stretchStartingKeyframe=!0,this.disabledNodes.has(Pn.element)||Cr.push(Pn)}),Xt.timelines=Cr,D.append(Ce,Xt.timelines),h.push({instruction:Xt,player:It,element:Ce}),Xt.queriedElements.forEach(Pn=>W(C,Pn,[]).push(It)),Xt.preStyleProps.forEach((Pn,Or)=>{const rs=Object.keys(Pn);if(rs.length){let ss=p.get(Or);ss||p.set(Or,ss=new Set),rs.forEach(vs=>ss.add(vs))}}),Xt.postStyleProps.forEach((Pn,Or)=>{const rs=Object.keys(Pn);let ss=T.get(Or);ss||T.set(Or,ss=new Set),rs.forEach(vs=>ss.add(vs))})});if(un.length){const $e=[];un.forEach(qe=>{$e.push(`@${qe.triggerName} has failed due to:\n`),qe.errors.forEach(st=>$e.push(`- ${st}\n`))}),Ut.forEach(qe=>qe.destroy()),this.reportError($e)}const b=new Map,_=new Map;h.forEach($e=>{const qe=$e.element;D.has(qe)&&(_.set(qe,qe),this._beforeAnimationBuild($e.player.namespaceId,$e.instruction,b))}),A.forEach($e=>{const qe=$e.element;this._getPreviousPlayers(qe,!1,$e.namespaceId,$e.triggerName,null).forEach(It=>{W(b,qe,[]).push(It),It.destroy()})});const y=Xe.filter($e=>ur($e,p,T)),O=new Map;ir(O,this.driver,Ct,T,re.l3).forEach($e=>{ur($e,p,T)&&y.push($e)});const Pe=new Map;Ee.forEach(($e,qe)=>{ir(Pe,this.driver,new Set($e),p,re.k1)}),y.forEach($e=>{const qe=O.get($e),st=Pe.get($e);O.set($e,Object.assign(Object.assign({},qe),st))});const zt=[],Tn=[],Ir={};h.forEach($e=>{const{element:qe,player:st,instruction:It}=$e;if(D.has(qe)){if(N.has(qe))return st.onDestroy(()=>ke(qe,It.toStyles)),st.disabled=!0,st.overrideTotalTime(It.totalTime),void A.push(st);let Ce=Ir;if(_.size>1){let Sn=qe;const qt=[];for(;Sn=Sn.parentNode;){const Xt=_.get(Sn);if(Xt){Ce=Xt;break}qt.push(Sn)}qt.forEach(Xt=>_.set(Xt,Ce))}const mt=this._buildAnimation(st.namespaceId,It,b,R,Pe,O);if(st.setRealPlayer(mt),Ce===Ir)zt.push(st);else{const Sn=this.playersByElement.get(Ce);Sn&&Sn.length&&(st.parentPlayer=Y(Sn)),A.push(st)}}else nt(qe,It.fromStyles),st.onDestroy(()=>ke(qe,It.toStyles)),Tn.push(st),N.has(qe)&&A.push(st)}),Tn.forEach($e=>{const qe=R.get($e.element);if(qe&&qe.length){const st=Y(qe);$e.setRealPlayer(st)}}),A.forEach($e=>{$e.parentPlayer?$e.syncPlayerEvents($e.parentPlayer):$e.destroy()});for(let $e=0;$e<Xe.length;$e++){const qe=Xe[$e],st=qe[Gt];if(jn(qe,tt),st&&st.hasAnimation)continue;let It=[];if(C.size){let mt=C.get(qe);mt&&mt.length&&It.push(...mt);let Sn=this.driver.query(qe,yn,!0);for(let qt=0;qt<Sn.length;qt++){let Xt=C.get(Sn[qt]);Xt&&Xt.length&&It.push(...Xt)}}const Ce=It.filter(mt=>!mt.destroyed);Ce.length?Rs(this,qe,Ce):this.processLeaveNode(qe)}return Xe.length=0,zt.forEach($e=>{this.players.push($e),$e.onDone(()=>{$e.destroy();const qe=this.players.indexOf($e);this.players.splice(qe,1)}),$e.play()}),zt}elementContainsData(l,c){let D=!1;const A=c[Gt];return A&&A.setForRemoval&&(D=!0),this.playersByElement.has(c)&&(D=!0),this.playersByQueriedElement.has(c)&&(D=!0),this.statesByElement.has(c)&&(D=!0),this._fetchNamespace(l).elementContainsData(c)||D}afterFlush(l){this._flushFns.push(l)}afterFlushAnimationsDone(l){this._whenQuietFns.push(l)}_getPreviousPlayers(l,c,D,A,R){let h=[];if(c){const C=this.playersByQueriedElement.get(l);C&&(h=C)}else{const C=this.playersByElement.get(l);if(C){const p=!R||R==en;C.forEach(T=>{T.queued||!p&&T.triggerName!=A||h.push(T)})}}return(D||A)&&(h=h.filter(C=>!(D&&D!=C.namespaceId||A&&A!=C.triggerName))),h}_beforeAnimationBuild(l,c,D){const R=c.element,h=c.isRemovalTransition?void 0:l,C=c.isRemovalTransition?void 0:c.triggerName;for(const p of c.timelines){const T=p.element,N=T!==R,Q=W(D,T,[]);this._getPreviousPlayers(T,N,h,C,c.toState).forEach(Ee=>{const je=Ee.getRealPlayer();je.beforeDestroy&&je.beforeDestroy(),Ee.destroy(),Q.push(Ee)})}nt(R,c.fromStyles)}_buildAnimation(l,c,D,A,R,h){const C=c.triggerName,p=c.element,T=[],N=new Set,Q=new Set,de=c.timelines.map(je=>{const ze=je.element;N.add(ze);const Xe=ze[Gt];if(Xe&&Xe.removedBeforeQueried)return new re.ZN(je.duration,je.delay);const We=ze!==p,Ct=function ps(I){const l=[];return qr(I,l),l}((D.get(ze)||ct).map(b=>b.getRealPlayer())).filter(b=>!!b.element&&b.element===ze),pt=R.get(ze),Et=h.get(ze),Ut=K(0,this._normalizer,0,je.keyframes,pt,Et),un=this._buildPlayer(je,Ut,Ct);if(je.subTimeline&&A&&Q.add(ze),We){const b=new At(l,C,ze);b.setRealPlayer(un),T.push(b)}return un});T.forEach(je=>{W(this.playersByQueriedElement,je.element,[]).push(je),je.onDone(()=>function Ns(I,l,c){let D;if(I instanceof Map){if(D=I.get(l),D){if(D.length){const A=D.indexOf(c);D.splice(A,1)}0==D.length&&I.delete(l)}}else if(D=I[l],D){if(D.length){const A=D.indexOf(c);D.splice(A,1)}0==D.length&&delete I[l]}return D}(this.playersByQueriedElement,je.element,je))}),N.forEach(je=>Qt(je,Cn));const Ee=Y(de);return Ee.onDestroy(()=>{N.forEach(je=>jn(je,Cn)),ke(p,c.toStyles)}),Q.forEach(je=>{W(A,je,[]).push(Ee)}),Ee}_buildPlayer(l,c,D){return c.length>0?this.driver.animate(l.element,c,l.duration,l.delay,l.easing,D):new re.ZN(l.duration,l.delay)}}class At{constructor(l,c,D){this.namespaceId=l,this.triggerName=c,this.element=D,this._player=new re.ZN,this._containsRealPlayer=!1,this._queuedCallbacks={},this.destroyed=!1,this.markedForDestroy=!1,this.disabled=!1,this.queued=!0,this.totalTime=0}setRealPlayer(l){this._containsRealPlayer||(this._player=l,Object.keys(this._queuedCallbacks).forEach(c=>{this._queuedCallbacks[c].forEach(D=>ee(l,c,void 0,D))}),this._queuedCallbacks={},this._containsRealPlayer=!0,this.overrideTotalTime(l.totalTime),this.queued=!1)}getRealPlayer(){return this._player}overrideTotalTime(l){this.totalTime=l}syncPlayerEvents(l){const c=this._player;c.triggerCallback&&l.onStart(()=>c.triggerCallback("start")),l.onDone(()=>this.finish()),l.onDestroy(()=>this.destroy())}_queueEvent(l,c){W(this._queuedCallbacks,l,[]).push(c)}onDone(l){this.queued&&this._queueEvent("done",l),this._player.onDone(l)}onStart(l){this.queued&&this._queueEvent("start",l),this._player.onStart(l)}onDestroy(l){this.queued&&this._queueEvent("destroy",l),this._player.onDestroy(l)}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(l){this.queued||this._player.setPosition(l)}getPosition(){return this.queued?0:this._player.getPosition()}triggerCallback(l){const c=this._player;c.triggerCallback&&c.triggerCallback(l)}}function mn(I){return I&&1===I.nodeType}function yr(I,l){const c=I.style.display;return I.style.display=null!=l?l:"none",c}function ir(I,l,c,D,A){const R=[];c.forEach(p=>R.push(yr(p)));const h=[];D.forEach((p,T)=>{const N={};p.forEach(Q=>{const de=N[Q]=l.computeStyle(T,Q,A);(!de||0==de.length)&&(T[Gt]=Yn,h.push(T))}),I.set(T,N)});let C=0;return c.forEach(p=>yr(p,R[C++])),h}function ln(I,l){const c=new Map;if(I.forEach(C=>c.set(C,[])),0==l.length)return c;const A=new Set(l),R=new Map;function h(C){if(!C)return 1;let p=R.get(C);if(p)return p;const T=C.parentNode;return p=c.has(T)?T:A.has(T)?1:h(T),R.set(C,p),p}return l.forEach(C=>{const p=h(C);1!==p&&c.get(p).push(C)}),c}function Qt(I,l){var c;null===(c=I.classList)||void 0===c||c.add(l)}function jn(I,l){var c;null===(c=I.classList)||void 0===c||c.remove(l)}function Rs(I,l,c){Y(c).onDone(()=>I.processLeaveNode(l))}function qr(I,l){for(let c=0;c<I.length;c++){const D=I[c];D instanceof re.ZE?qr(D.players,l):l.push(D)}}function ur(I,l,c){const D=c.get(I);if(!D)return!1;let A=l.get(I);return A?D.forEach(R=>A.add(R)):l.set(I,D),c.delete(I),!0}class Tr{constructor(l,c,D){this.bodyNode=l,this._driver=c,this._normalizer=D,this._triggerCache={},this.onRemovalComplete=(A,R)=>{},this._transitionEngine=new sn(l,c,D),this._timelineEngine=new _n(l,c,D),this._transitionEngine.onRemovalComplete=(A,R)=>this.onRemovalComplete(A,R)}registerTrigger(l,c,D,A,R){const h=l+"-"+A;let C=this._triggerCache[h];if(!C){const p=[],T=Ot(this._driver,R,p);if(p.length)throw new Error(`The animation trigger "${A}" has failed to build due to the following errors:\n - ${p.join("\n - ")}`);C=function wr(I,l,c){return new gn(I,l,c)}(A,T,this._normalizer),this._triggerCache[h]=C}this._transitionEngine.registerTrigger(c,A,C)}register(l,c){this._transitionEngine.register(l,c)}destroy(l,c){this._transitionEngine.destroy(l,c)}onInsert(l,c,D,A){this._transitionEngine.insertNode(l,c,D,A)}onRemove(l,c,D,A){this._transitionEngine.removeNode(l,c,A||!1,D)}disableAnimations(l,c){this._transitionEngine.markElementAsDisabled(l,c)}process(l,c,D,A){if("@"==D.charAt(0)){const[R,h]=ce(D);this._timelineEngine.command(R,c,h,A)}else this._transitionEngine.trigger(l,c,D,A)}listen(l,c,D,A,R){if("@"==D.charAt(0)){const[h,C]=ce(D);return this._timelineEngine.listen(h,c,C,R)}return this._transitionEngine.listen(l,c,D,A,R)}flush(l=-1){this._transitionEngine.flush(l)}get players(){return this._transitionEngine.players.concat(this._timelineEngine.players)}whenRenderingDone(){return this._transitionEngine.whenRenderingDone()}}let As=(()=>{class I{constructor(c,D,A){this._element=c,this._startStyles=D,this._endStyles=A,this._state=0;let R=I.initialStylesByElement.get(c);R||I.initialStylesByElement.set(c,R={}),this._initialStyles=R}start(){this._state<1&&(this._startStyles&&ke(this._element,this._startStyles,this._initialStyles),this._state=1)}finish(){this.start(),this._state<2&&(ke(this._element,this._initialStyles),this._endStyles&&(ke(this._element,this._endStyles),this._endStyles=null),this._state=1)}destroy(){this.finish(),this._state<3&&(I.initialStylesByElement.delete(this._element),this._startStyles&&(nt(this._element,this._startStyles),this._endStyles=null),this._endStyles&&(nt(this._element,this._endStyles),this._endStyles=null),ke(this._element,this._initialStyles),this._state=3)}}return I.initialStylesByElement=new WeakMap,I})();function vr(I){let l=null;const c=Object.keys(I);for(let D=0;D<c.length;D++){const A=c[D];gs(A)&&(l=l||{},l[A]=I[A])}return l}function gs(I){return"display"===I||"position"===I}class Zr{constructor(l,c,D,A){this.element=l,this.keyframes=c,this.options=D,this._specialStyles=A,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=D.duration,this._delay=D.delay||0,this.time=this._duration+this._delay}_onFinish(){this._finished||(this._finished=!0,this._onDoneFns.forEach(l=>l()),this._onDoneFns=[])}init(){this._buildPlayer(),this._preparePlayerBeforeStart()}_buildPlayer(){if(this._initialized)return;this._initialized=!0;const l=this.keyframes;this.domPlayer=this._triggerWebAnimation(this.element,l,this.options),this._finalKeyframe=l.length?l[l.length-1]:{},this.domPlayer.addEventListener("finish",()=>this._onFinish())}_preparePlayerBeforeStart(){this._delay?this._resetDomPlayerState():this.domPlayer.pause()}_triggerWebAnimation(l,c,D){return l.animate(c,D)}onStart(l){this._onStartFns.push(l)}onDone(l){this._onDoneFns.push(l)}onDestroy(l){this._onDestroyFns.push(l)}play(){this._buildPlayer(),this.hasStarted()||(this._onStartFns.forEach(l=>l()),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(l=>l()),this._onDestroyFns=[])}setPosition(l){void 0===this.domPlayer&&this.init(),this.domPlayer.currentTime=l*this.time}getPosition(){return this.domPlayer.currentTime/this.time}get totalTime(){return this._delay+this._duration}beforeDestroy(){const l={};if(this.hasStarted()){const c=this._finalKeyframe;Object.keys(c).forEach(D=>{"offset"!=D&&(l[D]=this._finished?c[D]:ie(this.element,D))})}this.currentSnapshot=l}triggerCallback(l){const c="start"==l?this._onStartFns:this._onDoneFns;c.forEach(D=>D()),c.length=0}}class Fs{validateStyleProperty(l){return Ne(l)}matchesElement(l,c){return!1}containsElement(l,c){return _e(l,c)}query(l,c,D){return te(l,c,D)}computeStyle(l,c,D){return window.getComputedStyle(l)[c]}animate(l,c,D,A,R,h=[]){const p={duration:D,delay:A,fill:0==A?"both":"forwards"};R&&(p.easing=R);const T={},N=h.filter(de=>de instanceof Zr);(function Ht(I,l){return 0===I||0===l})(D,A)&&N.forEach(de=>{let Ee=de.currentSnapshot;Object.keys(Ee).forEach(je=>T[je]=Ee[je])}),c=function Gn(I,l,c){const D=Object.keys(c);if(D.length&&l.length){let R=l[0],h=[];if(D.forEach(C=>{R.hasOwnProperty(C)||h.push(C),R[C]=c[C]}),h.length)for(var A=1;A<l.length;A++){let C=l[A];h.forEach(function(p){C[p]=ie(I,p)})}}return l}(l,c=c.map(de=>Me(de,!1)),T);const Q=function Kr(I,l){let c=null,D=null;return Array.isArray(l)&&l.length?(c=vr(l[0]),l.length>1&&(D=vr(l[l.length-1]))):l&&(c=vr(l)),c||D?new As(I,c,D):null}(l,c);return new Zr(l,c,p,Q)}}var Qr=x(9808);let ms=(()=>{class I extends re._j{constructor(c,D){super(),this._nextAnimationId=0,this._renderer=c.createRenderer(D.body,{id:"0",encapsulation:a.ifc.None,styles:[],data:{animation:[]}})}build(c){const D=this._nextAnimationId.toString();this._nextAnimationId++;const A=Array.isArray(c)?(0,re.vP)(c):c;return Br(this._renderer,null,D,"register",[A]),new Jr(D,this._renderer)}}return I.\u0275fac=function(c){return new(c||I)(a.LFG(a.FYo),a.LFG(Qr.K0))},I.\u0275prov=a.Yz7({token:I,factory:I.\u0275fac}),I})();class Jr extends re.LC{constructor(l,c){super(),this._id=l,this._renderer=c}create(l,c){return new ys(this._id,l,c||{},this._renderer)}}class ys{constructor(l,c,D,A){this.id=l,this.element=c,this._renderer=A,this.parentPlayer=null,this._started=!1,this.totalTime=0,this._command("create",D)}_listen(l,c){return this._renderer.listen(this.element,`@@${this.id}:${l}`,c)}_command(l,...c){return Br(this._renderer,this.element,this.id,l,c)}onDone(l){this._listen("done",l)}onStart(l){this._listen("start",l)}onDestroy(l){this._listen("destroy",l)}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(l){this._command("setPosition",l)}getPosition(){var l,c;return null!==(c=null===(l=this._renderer.engine.players[+this.id])||void 0===l?void 0:l.getPosition())&&void 0!==c?c:0}}function Br(I,l,c,D,A){return I.setProperty(l,`@@${c}:${D}`,A)}const Sr="@.disabled";let Mr=(()=>{class I{constructor(c,D,A){this.delegate=c,this.engine=D,this._zone=A,this._currentId=0,this._microtaskId=1,this._animationCallbacksBuffer=[],this._rendererCache=new Map,this._cdRecurDepth=0,this.promise=Promise.resolve(0),D.onRemovalComplete=(R,h)=>{const C=null==h?void 0:h.parentNode(R);C&&h.removeChild(C,R)}}createRenderer(c,D){const R=this.delegate.createRenderer(c,D);if(!(c&&D&&D.data&&D.data.animation)){let N=this._rendererCache.get(R);return N||(N=new Xr("",R,this.engine),this._rendererCache.set(R,N)),N}const h=D.id,C=D.id+"-"+this._currentId;this._currentId++,this.engine.register(C,c);const p=N=>{Array.isArray(N)?N.forEach(p):this.engine.registerTrigger(h,C,c,N.name,N)};return D.data.animation.forEach(p),new Is(this,C,R,this.engine)}begin(){this._cdRecurDepth++,this.delegate.begin&&this.delegate.begin()}_scheduleCountTask(){this.promise.then(()=>{this._microtaskId++})}scheduleListenerCallback(c,D,A){c>=0&&c<this._microtaskId?this._zone.run(()=>D(A)):(0==this._animationCallbacksBuffer.length&&Promise.resolve(null).then(()=>{this._zone.run(()=>{this._animationCallbacksBuffer.forEach(R=>{const[h,C]=R;h(C)}),this._animationCallbacksBuffer=[]})}),this._animationCallbacksBuffer.push([D,A]))}end(){this._cdRecurDepth--,0==this._cdRecurDepth&&this._zone.runOutsideAngular(()=>{this._scheduleCountTask(),this.engine.flush(this._microtaskId)}),this.delegate.end&&this.delegate.end()}whenRenderingDone(){return this.engine.whenRenderingDone()}}return I.\u0275fac=function(c){return new(c||I)(a.LFG(a.FYo),a.LFG(Tr),a.LFG(a.R0b))},I.\u0275prov=a.Yz7({token:I,factory:I.\u0275fac}),I})();class Xr{constructor(l,c,D){this.namespaceId=l,this.delegate=c,this.engine=D,this.destroyNode=this.delegate.destroyNode?A=>c.destroyNode(A):null}get data(){return this.delegate.data}destroy(){this.engine.destroy(this.namespaceId,this.delegate),this.delegate.destroy()}createElement(l,c){return this.delegate.createElement(l,c)}createComment(l){return this.delegate.createComment(l)}createText(l){return this.delegate.createText(l)}appendChild(l,c){this.delegate.appendChild(l,c),this.engine.onInsert(this.namespaceId,c,l,!1)}insertBefore(l,c,D,A=!0){this.delegate.insertBefore(l,c,D),this.engine.onInsert(this.namespaceId,c,l,A)}removeChild(l,c,D){this.engine.onRemove(this.namespaceId,c,this.delegate,D)}selectRootElement(l,c){return this.delegate.selectRootElement(l,c)}parentNode(l){return this.delegate.parentNode(l)}nextSibling(l){return this.delegate.nextSibling(l)}setAttribute(l,c,D,A){this.delegate.setAttribute(l,c,D,A)}removeAttribute(l,c,D){this.delegate.removeAttribute(l,c,D)}addClass(l,c){this.delegate.addClass(l,c)}removeClass(l,c){this.delegate.removeClass(l,c)}setStyle(l,c,D,A){this.delegate.setStyle(l,c,D,A)}removeStyle(l,c,D){this.delegate.removeStyle(l,c,D)}setProperty(l,c,D){"@"==c.charAt(0)&&c==Sr?this.disableAnimations(l,!!D):this.delegate.setProperty(l,c,D)}setValue(l,c){this.delegate.setValue(l,c)}listen(l,c,D){return this.delegate.listen(l,c,D)}disableAnimations(l,c){this.engine.disableAnimations(l,c)}}class Is extends Xr{constructor(l,c,D,A){super(c,D,A),this.factory=l,this.namespaceId=c}setProperty(l,c,D){"@"==c.charAt(0)?"."==c.charAt(1)&&c==Sr?this.disableAnimations(l,D=void 0===D||!!D):this.engine.process(this.namespaceId,l,c.substr(1),D):this.delegate.setProperty(l,c,D)}listen(l,c,D){if("@"==c.charAt(0)){const A=function cr(I){switch(I){case"body":return document.body;case"document":return document;case"window":return window;default:return I}}(l);let R=c.substr(1),h="";return"@"!=R.charAt(0)&&([R,h]=function es(I){const l=I.indexOf(".");return[I.substring(0,l),I.substr(l+1)]}(R)),this.engine.listen(this.namespaceId,A,R,h,C=>{this.factory.scheduleListenerCallback(C._data||-1,D,C)})}return this.delegate.listen(l,c,D)}}let qn=(()=>{class I extends Tr{constructor(c,D,A){super(c.body,D,A)}ngOnDestroy(){this.flush()}}return I.\u0275fac=function(c){return new(c||I)(a.LFG(Qr.K0),a.LFG(dt),a.LFG(Pt))},I.\u0275prov=a.Yz7({token:I,factory:I.\u0275fac}),I})();const Ur=new a.OlP("AnimationModuleType"),ts=[{provide:re._j,useClass:ms},{provide:Pt,useFactory:function jr(){return new bn}},{provide:Tr,useClass:qn},{provide:a.FYo,useFactory:function dr(I,l,c){return new Mr(I,l,c)},deps:[v.se,Tr,a.R0b]}],ns=[{provide:dt,useFactory:()=>new Fs},{provide:Ur,useValue:"BrowserAnimations"},...ts],Ar=[{provide:dt,useClass:wt},{provide:Ur,useValue:"NoopAnimations"},...ts];let Dr=(()=>{class I{static withConfig(c){return{ngModule:I,providers:c.disableAnimations?Ar:ns}}}return I.\u0275fac=function(c){return new(c||I)},I.\u0275mod=a.oAB({type:I}),I.\u0275inj=a.cJS({providers:ns,imports:[v.b2]}),I})()},2313:(Ye,ve,x)=>{x.d(ve,{b2:()=>nn,H7:()=>Vn,Dx:()=>Gn,q6:()=>hn,se:()=>ft});var a=x(9808),v=x(6435);class re extends a.w_{constructor(){super(...arguments),this.supportsDOMEvents=!0}}class ue extends re{static makeCurrent(){(0,a.HT)(new ue)}onAndCancel(q,k,X){return q.addEventListener(k,X,!1),()=>{q.removeEventListener(k,X,!1)}}dispatchEvent(q,k){q.dispatchEvent(k)}remove(q){q.parentNode&&q.parentNode.removeChild(q)}createElement(q,k){return(k=k||this.getDefaultDocument()).createElement(q)}createHtmlDocument(){return document.implementation.createHTMLDocument("fakeTitle")}getDefaultDocument(){return document}isElementNode(q){return q.nodeType===Node.ELEMENT_NODE}isShadowRoot(q){return q instanceof DocumentFragment}getGlobalEventTarget(q,k){return"window"===k?window:"document"===k?q:"body"===k?q.body:null}getBaseHref(q){const k=function Y(){return V=V||document.querySelector("base"),V?V.getAttribute("href"):null}();return null==k?null:function ee(se){K=K||document.createElement("a"),K.setAttribute("href",se);const q=K.pathname;return"/"===q.charAt(0)?q:`/${q}`}(k)}resetBaseElement(){V=null}getUserAgent(){return window.navigator.userAgent}getCookie(q){return(0,a.Mx)(document.cookie,q)}}let K,V=null;const J=new v.OlP("TRANSITION_ID"),W=[{provide:v.ip1,useFactory:function $(se,q,k){return()=>{k.get(v.CZH).donePromise.then(()=>{const X=(0,a.q)(),pe=q.querySelectorAll(`style[ng-transition="${se}"]`);for(let Je=0;Je<pe.length;Je++)X.remove(pe[Je])})}},deps:[J,a.K0,v.zs3],multi:!0}];class ce{static init(){(0,v.VLi)(new ce)}addToWindow(q){v.dqk.getAngularTestability=(X,pe=!0)=>{const Je=q.findTestabilityInTree(X,pe);if(null==Je)throw new Error("Could not find testability for element.");return Je},v.dqk.getAllAngularTestabilities=()=>q.getAllTestabilities(),v.dqk.getAllAngularRootElements=()=>q.getAllRootElements(),v.dqk.frameworkStabilizers||(v.dqk.frameworkStabilizers=[]),v.dqk.frameworkStabilizers.push(X=>{const pe=v.dqk.getAllAngularTestabilities();let Je=pe.length,vt=!1;const Rt=function(Pt){vt=vt||Pt,Je--,0==Je&&X(vt)};pe.forEach(function(Pt){Pt.whenStable(Rt)})})}findTestabilityInTree(q,k,X){if(null==k)return null;const pe=q.getTestability(k);return null!=pe?pe:X?(0,a.q)().isShadowRoot(k)?this.findTestabilityInTree(q,k.host,!0):this.findTestabilityInTree(q,k.parentElement,!0):null}}let oe=(()=>{class se{build(){return new XMLHttpRequest}}return se.\u0275fac=function(k){return new(k||se)},se.\u0275prov=v.Yz7({token:se,factory:se.\u0275fac}),se})();const Ie=new v.OlP("EventManagerPlugins");let Se=(()=>{class se{constructor(k,X){this._zone=X,this._eventNameToPlugin=new Map,k.forEach(pe=>pe.manager=this),this._plugins=k.slice().reverse()}addEventListener(k,X,pe){return this._findPluginFor(X).addEventListener(k,X,pe)}addGlobalEventListener(k,X,pe){return this._findPluginFor(X).addGlobalEventListener(k,X,pe)}getZone(){return this._zone}_findPluginFor(k){const X=this._eventNameToPlugin.get(k);if(X)return X;const pe=this._plugins;for(let Je=0;Je<pe.length;Je++){const vt=pe[Je];if(vt.supports(k))return this._eventNameToPlugin.set(k,vt),vt}throw new Error(`No event manager plugin found for event ${k}`)}}return se.\u0275fac=function(k){return new(k||se)(v.LFG(Ie),v.LFG(v.R0b))},se.\u0275prov=v.Yz7({token:se,factory:se.\u0275fac}),se})();class ge{constructor(q){this._doc=q}addGlobalEventListener(q,k,X){const pe=(0,a.q)().getGlobalEventTarget(this._doc,q);if(!pe)throw new Error(`Unsupported event target ${pe} for event ${k}`);return this.addEventListener(pe,k,X)}}let he=(()=>{class se{constructor(){this._stylesSet=new Set}addStyles(k){const X=new Set;k.forEach(pe=>{this._stylesSet.has(pe)||(this._stylesSet.add(pe),X.add(pe))}),this.onStylesAdded(X)}onStylesAdded(k){}getAllStyles(){return Array.from(this._stylesSet)}}return se.\u0275fac=function(k){return new(k||se)},se.\u0275prov=v.Yz7({token:se,factory:se.\u0275fac}),se})(),Fe=(()=>{class se extends he{constructor(k){super(),this._doc=k,this._hostNodes=new Map,this._hostNodes.set(k.head,[])}_addStylesToHost(k,X,pe){k.forEach(Je=>{const vt=this._doc.createElement("style");vt.textContent=Je,pe.push(X.appendChild(vt))})}addHost(k){const X=[];this._addStylesToHost(this._stylesSet,k,X),this._hostNodes.set(k,X)}removeHost(k){const X=this._hostNodes.get(k);X&&X.forEach(Ne),this._hostNodes.delete(k)}onStylesAdded(k){this._hostNodes.forEach((X,pe)=>{this._addStylesToHost(k,pe,X)})}ngOnDestroy(){this._hostNodes.forEach(k=>k.forEach(Ne))}}return se.\u0275fac=function(k){return new(k||se)(v.LFG(a.K0))},se.\u0275prov=v.Yz7({token:se,factory:se.\u0275fac}),se})();function Ne(se){(0,a.q)().remove(se)}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/",math:"http://www.w3.org/1998/MathML/"},_e=/%COMP%/g;function rt(se,q,k){for(let X=0;X<q.length;X++){let pe=q[X];Array.isArray(pe)?rt(se,pe,k):(pe=pe.replace(_e,se),k.push(pe))}return k}function _t(se){return q=>{if("__ngUnwrap__"===q)return se;!1===se(q)&&(q.preventDefault(),q.returnValue=!1)}}let ft=(()=>{class se{constructor(k,X,pe){this.eventManager=k,this.sharedStylesHost=X,this.appId=pe,this.rendererByCompId=new Map,this.defaultRenderer=new Ve(k)}createRenderer(k,X){if(!k||!X)return this.defaultRenderer;switch(X.encapsulation){case v.ifc.Emulated:{let pe=this.rendererByCompId.get(X.id);return pe||(pe=new dn(this.eventManager,this.sharedStylesHost,X,this.appId),this.rendererByCompId.set(X.id,pe)),pe.applyToHost(k),pe}case 1:case v.ifc.ShadowDom:return new Ln(this.eventManager,this.sharedStylesHost,k,X);default:if(!this.rendererByCompId.has(X.id)){const pe=rt(X.id,X.styles,[]);this.sharedStylesHost.addStyles(pe),this.rendererByCompId.set(X.id,this.defaultRenderer)}return this.defaultRenderer}}begin(){}end(){}}return se.\u0275fac=function(k){return new(k||se)(v.LFG(Se),v.LFG(Fe),v.LFG(v.AFp))},se.\u0275prov=v.Yz7({token:se,factory:se.\u0275fac}),se})();class Ve{constructor(q){this.eventManager=q,this.data=Object.create(null),this.destroyNode=null}destroy(){}createElement(q,k){return k?document.createElementNS(ye[k]||k,q):document.createElement(q)}createComment(q){return document.createComment(q)}createText(q){return document.createTextNode(q)}appendChild(q,k){q.appendChild(k)}insertBefore(q,k,X){q&&q.insertBefore(k,X)}removeChild(q,k){q&&q.removeChild(k)}selectRootElement(q,k){let X="string"==typeof q?document.querySelector(q):q;if(!X)throw new Error(`The selector "${q}" did not match any elements`);return k||(X.textContent=""),X}parentNode(q){return q.parentNode}nextSibling(q){return q.nextSibling}setAttribute(q,k,X,pe){if(pe){k=pe+":"+k;const Je=ye[pe];Je?q.setAttributeNS(Je,k,X):q.setAttribute(k,X)}else q.setAttribute(k,X)}removeAttribute(q,k,X){if(X){const pe=ye[X];pe?q.removeAttributeNS(pe,k):q.removeAttribute(`${X}:${k}`)}else q.removeAttribute(k)}addClass(q,k){q.classList.add(k)}removeClass(q,k){q.classList.remove(k)}setStyle(q,k,X,pe){pe&(v.JOm.DashCase|v.JOm.Important)?q.style.setProperty(k,X,pe&v.JOm.Important?"important":""):q.style[k]=X}removeStyle(q,k,X){X&v.JOm.DashCase?q.style.removeProperty(k):q.style[k]=""}setProperty(q,k,X){q[k]=X}setValue(q,k){q.nodeValue=k}listen(q,k,X){return"string"==typeof q?this.eventManager.addGlobalEventListener(q,k,_t(X)):this.eventManager.addEventListener(q,k,_t(X))}}class dn extends Ve{constructor(q,k,X,pe){super(q),this.component=X;const Je=rt(pe+"-"+X.id,X.styles,[]);k.addStyles(Je),this.contentAttr=function ot(se){return"_ngcontent-%COMP%".replace(_e,se)}(pe+"-"+X.id),this.hostAttr=function ht(se){return"_nghost-%COMP%".replace(_e,se)}(pe+"-"+X.id)}applyToHost(q){super.setAttribute(q,this.hostAttr,"")}createElement(q,k){const X=super.createElement(q,k);return super.setAttribute(X,this.contentAttr,""),X}}class Ln extends Ve{constructor(q,k,X,pe){super(q),this.sharedStylesHost=k,this.hostEl=X,this.shadowRoot=X.attachShadow({mode:"open"}),this.sharedStylesHost.addHost(this.shadowRoot);const Je=rt(pe.id,pe.styles,[]);for(let vt=0;vt<Je.length;vt++){const Rt=document.createElement("style");Rt.textContent=Je[vt],this.shadowRoot.appendChild(Rt)}}nodeOrShadowRoot(q){return q===this.hostEl?this.shadowRoot:q}destroy(){this.sharedStylesHost.removeHost(this.shadowRoot)}appendChild(q,k){return super.appendChild(this.nodeOrShadowRoot(q),k)}insertBefore(q,k,X){return super.insertBefore(this.nodeOrShadowRoot(q),k,X)}removeChild(q,k){return super.removeChild(this.nodeOrShadowRoot(q),k)}parentNode(q){return this.nodeOrShadowRoot(super.parentNode(this.nodeOrShadowRoot(q)))}}let on=(()=>{class se extends ge{constructor(k){super(k)}supports(k){return!0}addEventListener(k,X,pe){return k.addEventListener(X,pe,!1),()=>this.removeEventListener(k,X,pe)}removeEventListener(k,X,pe){return k.removeEventListener(X,pe)}}return se.\u0275fac=function(k){return new(k||se)(v.LFG(a.K0))},se.\u0275prov=v.Yz7({token:se,factory:se.\u0275fac}),se})();const St=["alt","control","meta","shift"],we={"\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"},Me={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"},B={alt:se=>se.altKey,control:se=>se.ctrlKey,meta:se=>se.metaKey,shift:se=>se.shiftKey};let ae=(()=>{class se extends ge{constructor(k){super(k)}supports(k){return null!=se.parseEventName(k)}addEventListener(k,X,pe){const Je=se.parseEventName(X),vt=se.eventCallback(Je.fullKey,pe,this.manager.getZone());return this.manager.getZone().runOutsideAngular(()=>(0,a.q)().onAndCancel(k,Je.domEventName,vt))}static parseEventName(k){const X=k.toLowerCase().split("."),pe=X.shift();if(0===X.length||"keydown"!==pe&&"keyup"!==pe)return null;const Je=se._normalizeKey(X.pop());let vt="";if(St.forEach(Pt=>{const On=X.indexOf(Pt);On>-1&&(X.splice(On,1),vt+=Pt+".")}),vt+=Je,0!=X.length||0===Je.length)return null;const Rt={};return Rt.domEventName=pe,Rt.fullKey=vt,Rt}static getEventFullKey(k){let X="",pe=function ke(se){let q=se.key;if(null==q){if(q=se.keyIdentifier,null==q)return"Unidentified";q.startsWith("U+")&&(q=String.fromCharCode(parseInt(q.substring(2),16)),3===se.location&&Me.hasOwnProperty(q)&&(q=Me[q]))}return we[q]||q}(k);return pe=pe.toLowerCase()," "===pe?pe="space":"."===pe&&(pe="dot"),St.forEach(Je=>{Je!=pe&&B[Je](k)&&(X+=Je+".")}),X+=pe,X}static eventCallback(k,X,pe){return Je=>{se.getEventFullKey(Je)===k&&pe.runGuarded(()=>X(Je))}}static _normalizeKey(k){return"esc"===k?"escape":k}}return se.\u0275fac=function(k){return new(k||se)(v.LFG(a.K0))},se.\u0275prov=v.Yz7({token:se,factory:se.\u0275fac}),se})();const hn=(0,v.eFA)(v._c5,"browser",[{provide:v.Lbi,useValue:a.bD},{provide:v.g9A,useValue:function nt(){ue.makeCurrent(),ce.init()},multi:!0},{provide:a.K0,useFactory:function Vt(){return(0,v.RDi)(document),document},deps:[]}]),Mt=[{provide:v.zSh,useValue:"root"},{provide:v.qLn,useFactory:function gt(){return new v.qLn},deps:[]},{provide:Ie,useClass:on,multi:!0,deps:[a.K0,v.R0b,v.Lbi]},{provide:Ie,useClass:ae,multi:!0,deps:[a.K0]},{provide:ft,useClass:ft,deps:[Se,Fe,v.AFp]},{provide:v.FYo,useExisting:ft},{provide:he,useExisting:Fe},{provide:Fe,useClass:Fe,deps:[a.K0]},{provide:v.dDg,useClass:v.dDg,deps:[v.R0b]},{provide:Se,useClass:Se,deps:[Ie,v.R0b]},{provide:a.JF,useClass:oe,deps:[]}];let nn=(()=>{class se{constructor(k){if(k)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(k){return{ngModule:se,providers:[{provide:v.AFp,useValue:k.appId},{provide:J,useExisting:v.AFp},W]}}}return se.\u0275fac=function(k){return new(k||se)(v.LFG(se,12))},se.\u0275mod=v.oAB({type:se}),se.\u0275inj=v.cJS({providers:Mt,imports:[a.ez,v.hGG]}),se})(),Gn=(()=>{class se{constructor(k){this._doc=k}getTitle(){return this._doc.title}setTitle(k){this._doc.title=k||""}}return se.\u0275fac=function(k){return new(k||se)(v.LFG(a.K0))},se.\u0275prov=v.Yz7({token:se,factory:function(k){let X=null;return X=k?new k:function Ht(){return new Gn((0,v.LFG)(a.K0))}(),X},providedIn:"root"}),se})();"undefined"!=typeof window&&window;let Vn=(()=>{class se{}return se.\u0275fac=function(k){return new(k||se)},se.\u0275prov=v.Yz7({token:se,factory:function(k){let X=null;return X=k?new(k||se):v.LFG(er),X},providedIn:"root"}),se})(),er=(()=>{class se extends Vn{constructor(k){super(),this._doc=k}sanitize(k,X){if(null==X)return null;switch(k){case v.q3G.NONE:return X;case v.q3G.HTML:return(0,v.qzn)(X,"HTML")?(0,v.z3N)(X):(0,v.EiD)(this._doc,String(X)).toString();case v.q3G.STYLE:return(0,v.qzn)(X,"Style")?(0,v.z3N)(X):X;case v.q3G.SCRIPT:if((0,v.qzn)(X,"Script"))return(0,v.z3N)(X);throw new Error("unsafe value used in a script context");case v.q3G.URL:return(0,v.yhl)(X),(0,v.qzn)(X,"URL")?(0,v.z3N)(X):(0,v.mCW)(String(X));case v.q3G.RESOURCE_URL:if((0,v.qzn)(X,"ResourceURL"))return(0,v.z3N)(X);throw new Error("unsafe value used in a resource URL context (see https://g.co/ng/security#xss)");default:throw new Error(`Unexpected SecurityContext ${k} (see https://g.co/ng/security#xss)`)}}bypassSecurityTrustHtml(k){return(0,v.JVY)(k)}bypassSecurityTrustStyle(k){return(0,v.L6k)(k)}bypassSecurityTrustScript(k){return(0,v.eBb)(k)}bypassSecurityTrustUrl(k){return(0,v.LAX)(k)}bypassSecurityTrustResourceUrl(k){return(0,v.pB0)(k)}}return se.\u0275fac=function(k){return new(k||se)(v.LFG(a.K0))},se.\u0275prov=v.Yz7({token:se,factory:function(k){let X=null;return X=k?new k:function Lr(se){return new er(se.get(a.K0))}(v.LFG(v.zs3)),X},providedIn:"root"}),se})()},8830:(Ye,ve,x)=>{x.d(ve,{gz:()=>sn,F0:()=>Un,Od:()=>Bs,yS:()=>ci,Bz:()=>hi,lC:()=>c});var a=x(6435);const re=(()=>{function g(){return Error.call(this),this.message="no elements in sequence",this.name="EmptyError",this}return g.prototype=Object.create(Error.prototype),g})();var ue=x(5254),V=x(1086),Y=x(591),K=x(3426),ee=x(2916),J=x(1221),$=x(8514),W=x(8896),ce=x(1762),oe=x(8929),Ie=x(3489);function Se(g,d){let u=!1;return arguments.length>=2&&(u=!0),function(w){return w.lift(new ge(g,d,u))}}class ge{constructor(d,u,E=!1){this.accumulator=d,this.seed=u,this.hasSeed=E}call(d,u){return u.subscribe(new he(d,this.accumulator,this.seed,this.hasSeed))}}class he extends Ie.L{constructor(d,u,E,w){super(d),this.accumulator=u,this._seed=E,this.hasSeed=w,this.index=0}get seed(){return this._seed}set seed(d){this.hasSeed=!0,this._seed=d}_next(d){if(this.hasSeed)return this._tryNext(d);this.seed=d,this.destination.next(d)}_tryNext(d){const u=this.index++;let E;try{E=this.accumulator(this.seed,d,u)}catch(w){this.destination.error(w)}this.seed=E,this.destination.next(E)}}var Fe=x(1177);function Ne(g){return function(u){const E=new ye(g),w=u.lift(E);return E.caught=w}}class ye{constructor(d){this.selector=d}call(d,u){return u.subscribe(new _e(d,this.selector,this.caught))}}class _e extends Fe.Ds{constructor(d,u,E){super(d),this.selector=u,this.caught=E}error(d){if(!this.isStopped){let u;try{u=this.selector(d,this.caught)}catch(P){return void super.error(P)}this._unsubscribeAndRecycle();const E=new Fe.IY(this);this.add(E);const w=(0,Fe.ft)(u,E);w!==E&&this.add(w)}}}var te=x(2198),Ge=x(4231);function wt(g){return function(u){return 0===g?(0,W.c)():u.lift(new dt(g))}}class dt{constructor(d){if(this.total=d,this.total<0)throw new Ge.W}call(d,u){return u.subscribe(new ot(d,this.total))}}class ot extends Ie.L{constructor(d,u){super(d),this.total=u,this.ring=new Array,this.count=0}_next(d){const u=this.ring,E=this.total,w=this.count++;u.length<E?u.push(d):u[w%E]=d}_complete(){const d=this.destination;let u=this.count;if(u>0){const E=this.count>=this.total?this.total:this.count,w=this.ring;for(let P=0;P<E;P++){const L=u++%E;d.next(w[L])}}d.complete()}}function ht(g=tt){return d=>d.lift(new rt(g))}class rt{constructor(d){this.errorFactory=d}call(d,u){return u.subscribe(new _t(d,this.errorFactory))}}class _t extends Ie.L{constructor(d,u){super(d),this.errorFactory=u,this.hasValue=!1}_next(d){this.hasValue=!0,this.destination.next(d)}_complete(){if(this.hasValue)return this.destination.complete();{let d;try{d=this.errorFactory()}catch(u){d=u}this.destination.error(d)}}}function tt(){return new re}function ft(g=null){return d=>d.lift(new Ve(g))}class Ve{constructor(d){this.defaultValue=d}call(d,u){return u.subscribe(new Cn(d,this.defaultValue))}}class Cn extends Ie.L{constructor(d,u){super(d),this.defaultValue=u,this.isEmpty=!0}_next(d){this.isEmpty=!1,this.destination.next(d)}_complete(){this.isEmpty&&this.destination.next(this.defaultValue),this.destination.complete()}}var yn=x(5379),Ln=x(2986);function on(g,d){const u=arguments.length>=2;return E=>E.pipe(g?(0,te.h)((w,P)=>g(w,P,E)):yn.y,(0,Ln.q)(1),u?ft(d):ht(()=>new re))}var St=x(4850),tn=x(7545),we=x(1059),Me=x(1406),B=x(1709),ae=x(2868),ke=x(4327),nt=x(537),gt=x(9146),Vt=x(9808);class Nt{constructor(d,u){this.id=d,this.url=u}}class hn extends Nt{constructor(d,u,E="imperative",w=null){super(d,u),this.navigationTrigger=E,this.restoredState=w}toString(){return`NavigationStart(id: ${this.id}, url: '${this.url}')`}}class Mt extends Nt{constructor(d,u,E){super(d,u),this.urlAfterRedirects=E}toString(){return`NavigationEnd(id: ${this.id}, url: '${this.url}', urlAfterRedirects: '${this.urlAfterRedirects}')`}}class nn extends Nt{constructor(d,u,E){super(d,u),this.reason=E}toString(){return`NavigationCancel(id: ${this.id}, url: '${this.url}')`}}class fn extends Nt{constructor(d,u,E){super(d,u),this.error=E}toString(){return`NavigationError(id: ${this.id}, url: '${this.url}', error: ${this.error})`}}class Bt extends Nt{constructor(d,u,E,w){super(d,u),this.urlAfterRedirects=E,this.state=w}toString(){return`RoutesRecognized(id: ${this.id}, url: '${this.url}', urlAfterRedirects: '${this.urlAfterRedirects}', state: ${this.state})`}}class In extends Nt{constructor(d,u,E,w){super(d,u),this.urlAfterRedirects=E,this.state=w}toString(){return`GuardsCheckStart(id: ${this.id}, url: '${this.url}', urlAfterRedirects: '${this.urlAfterRedirects}', state: ${this.state})`}}class Ht extends Nt{constructor(d,u,E,w,P){super(d,u),this.urlAfterRedirects=E,this.state=w,this.shouldActivate=P}toString(){return`GuardsCheckEnd(id: ${this.id}, url: '${this.url}', urlAfterRedirects: '${this.urlAfterRedirects}', state: ${this.state}, shouldActivate: ${this.shouldActivate})`}}class Gn extends Nt{constructor(d,u,E,w){super(d,u),this.urlAfterRedirects=E,this.state=w}toString(){return`ResolveStart(id: ${this.id}, url: '${this.url}', urlAfterRedirects: '${this.urlAfterRedirects}', state: ${this.state})`}}class Jt extends Nt{constructor(d,u,E,w){super(d,u),this.urlAfterRedirects=E,this.state=w}toString(){return`ResolveEnd(id: ${this.id}, url: '${this.url}', urlAfterRedirects: '${this.urlAfterRedirects}', state: ${this.state})`}}class ie{constructor(d){this.route=d}toString(){return`RouteConfigLoadStart(path: ${this.route.path})`}}class G{constructor(d){this.route=d}toString(){return`RouteConfigLoadEnd(path: ${this.route.path})`}}class Z{constructor(d){this.snapshot=d}toString(){return`ChildActivationStart(path: '${this.snapshot.routeConfig&&this.snapshot.routeConfig.path||""}')`}}class Oe{constructor(d){this.snapshot=d}toString(){return`ChildActivationEnd(path: '${this.snapshot.routeConfig&&this.snapshot.routeConfig.path||""}')`}}class Ae{constructor(d){this.snapshot=d}toString(){return`ActivationStart(path: '${this.snapshot.routeConfig&&this.snapshot.routeConfig.path||""}')`}}class He{constructor(d){this.snapshot=d}toString(){return`ActivationEnd(path: '${this.snapshot.routeConfig&&this.snapshot.routeConfig.path||""}')`}}class Re{constructor(d,u,E){this.routerEvent=d,this.position=u,this.anchor=E}toString(){return`Scroll(anchor: '${this.anchor}', position: '${this.position?`${this.position[0]}, ${this.position[1]}`:null}')`}}const Te="primary";class yt{constructor(d){this.params=d||{}}has(d){return Object.prototype.hasOwnProperty.call(this.params,d)}get(d){if(this.has(d)){const u=this.params[d];return Array.isArray(u)?u[0]:u}return null}getAll(d){if(this.has(d)){const u=this.params[d];return Array.isArray(u)?u:[u]}return[]}get keys(){return Object.keys(this.params)}}function jt(g){return new yt(g)}const Ot="ngNavigationCancelingError";function vn(g){const d=Error("NavigationCancelingError: "+g);return d[Ot]=!0,d}function j(g,d,u){const E=u.path.split("/");if(E.length>g.length||"full"===u.pathMatch&&(d.hasChildren()||E.length<g.length))return null;const w={};for(let P=0;P<E.length;P++){const L=E[P],z=g[P];if(L.startsWith(":"))w[L.substring(1)]=z;else if(L!==z.path)return null}return{consumed:g.slice(0,E.length),posParams:w}}function U(g,d){const u=g?Object.keys(g):void 0,E=d?Object.keys(d):void 0;if(!u||!E||u.length!=E.length)return!1;let w;for(let P=0;P<u.length;P++)if(w=u[P],!fe(g[w],d[w]))return!1;return!0}function fe(g,d){if(Array.isArray(g)&&Array.isArray(d)){if(g.length!==d.length)return!1;const u=[...g].sort(),E=[...d].sort();return u.every((w,P)=>E[P]===w)}return g===d}function Qe(g){return Array.prototype.concat.apply([],g)}function Dt(g){return g.length>0?g[g.length-1]:null}function Tt(g,d){for(const u in g)g.hasOwnProperty(u)&&d(g[u],u)}function an(g){return(0,a.CqO)(g)?g:(0,a.QGY)(g)?(0,ue.D)(Promise.resolve(g)):(0,V.of)(g)}const Xn={exact:function er(g,d,u){if(!Rt(g.segments,d.segments)||!k(g.segments,d.segments,u)||g.numberOfChildren!==d.numberOfChildren)return!1;for(const E in d.children)if(!g.children[E]||!er(g.children[E],d.children[E],u))return!1;return!0},subset:se},En={exact:function Lr(g,d){return U(g,d)},subset:function br(g,d){return Object.keys(d).length<=Object.keys(g).length&&Object.keys(d).every(u=>fe(g[u],d[u]))},ignored:()=>!0};function Vn(g,d,u){return Xn[u.paths](g.root,d.root,u.matrixParams)&&En[u.queryParams](g.queryParams,d.queryParams)&&!("exact"===u.fragment&&g.fragment!==d.fragment)}function se(g,d,u){return q(g,d,d.segments,u)}function q(g,d,u,E){if(g.segments.length>u.length){const w=g.segments.slice(0,u.length);return!(!Rt(w,u)||d.hasChildren()||!k(w,u,E))}if(g.segments.length===u.length){if(!Rt(g.segments,u)||!k(g.segments,u,E))return!1;for(const w in d.children)if(!g.children[w]||!se(g.children[w],d.children[w],E))return!1;return!0}{const w=u.slice(0,g.segments.length),P=u.slice(g.segments.length);return!!(Rt(g.segments,w)&&k(g.segments,w,E)&&g.children[Te])&&q(g.children[Te],d,P,E)}}function k(g,d,u){return d.every((E,w)=>En[u](g[w].parameters,E.parameters))}class X{constructor(d,u,E){this.root=d,this.queryParams=u,this.fragment=E}get queryParamMap(){return this._queryParamMap||(this._queryParamMap=jt(this.queryParams)),this._queryParamMap}toString(){return pn.serialize(this)}}class pe{constructor(d,u){this.segments=d,this.children=u,this.parent=null,Tt(u,(E,w)=>E.parent=this)}hasChildren(){return this.numberOfChildren>0}get numberOfChildren(){return Object.keys(this.children).length}toString(){return Nn(this)}}class Je{constructor(d,u){this.path=d,this.parameters=u}get parameterMap(){return this._parameterMap||(this._parameterMap=jt(this.parameters)),this._parameterMap}toString(){return Be(this)}}function Rt(g,d){return g.length===d.length&&g.every((u,E)=>u.path===d[E].path)}class On{}class bn{parse(d){const u=new gr(d);return new X(u.parseRootSegment(),u.parseQueryParams(),u.parseFragment())}serialize(d){const u=`/${wn(d.root,!0)}`,E=function kt(g){const d=Object.keys(g).map(u=>{const E=g[u];return Array.isArray(E)?E.map(w=>`${Wn(u)}=${Wn(w)}`).join("&"):`${Wn(u)}=${Wn(E)}`}).filter(u=>!!u);return d.length?`?${d.join("&")}`:""}(d.queryParams);return`${u}${E}${"string"==typeof d.fragment?`#${function nr(g){return encodeURI(g)}(d.fragment)}`:""}`}}const pn=new bn;function Nn(g){return g.segments.map(d=>Be(d)).join("/")}function wn(g,d){if(!g.hasChildren())return Nn(g);if(d){const u=g.children[Te]?wn(g.children[Te],!1):"",E=[];return Tt(g.children,(w,P)=>{P!==Te&&E.push(`${P}:${wn(w,!1)}`)}),E.length>0?`${u}(${E.join("//")})`:u}{const u=function Pt(g,d){let u=[];return Tt(g.children,(E,w)=>{w===Te&&(u=u.concat(d(E,w)))}),Tt(g.children,(E,w)=>{w!==Te&&(u=u.concat(d(E,w)))}),u}(g,(E,w)=>w===Te?[wn(g.children[Te],!1)]:[`${w}:${wn(E,!1)}`]);return 1===Object.keys(g.children).length&&null!=g.children[Te]?`${Nn(g)}/${u[0]}`:`${Nn(g)}/(${u.join("//")})`}}function tr(g){return encodeURIComponent(g).replace(/%40/g,"@").replace(/%3A/gi,":").replace(/%24/g,"$").replace(/%2C/gi,",")}function Wn(g){return tr(g).replace(/%3B/gi,";")}function Yt(g){return tr(g).replace(/\(/g,"%28").replace(/\)/g,"%29").replace(/%26/gi,"&")}function wr(g){return decodeURIComponent(g)}function gn(g){return wr(g.replace(/\+/g,"%20"))}function Be(g){return`${Yt(g.path)}${function ut(g){return Object.keys(g).map(d=>`;${Yt(d)}=${Yt(g[d])}`).join("")}(g.parameters)}`}const _n=/^[^\/()?;=#]+/;function Rn(g){const d=g.match(_n);return d?d[0]:""}const rn=/^[^=?&#]+/,$t=/^[^&#]+/;class gr{constructor(d){this.url=d,this.remaining=d}parseRootSegment(){return this.consumeOptional("/"),""===this.remaining||this.peekStartsWith("?")||this.peekStartsWith("#")?new pe([],{}):new pe([],this.parseChildren())}parseQueryParams(){const d={};if(this.consumeOptional("?"))do{this.parseQueryParam(d)}while(this.consumeOptional("&"));return d}parseFragment(){return this.consumeOptional("#")?decodeURIComponent(this.remaining):null}parseChildren(){if(""===this.remaining)return{};this.consumeOptional("/");const d=[];for(this.peekStartsWith("(")||d.push(this.parseSegment());this.peekStartsWith("/")&&!this.peekStartsWith("//")&&!this.peekStartsWith("/(");)this.capture("/"),d.push(this.parseSegment());let u={};this.peekStartsWith("/(")&&(this.capture("/"),u=this.parseParens(!0));let E={};return this.peekStartsWith("(")&&(E=this.parseParens(!1)),(d.length>0||Object.keys(u).length>0)&&(E[Te]=new pe(d,u)),E}parseSegment(){const d=Rn(this.remaining);if(""===d&&this.peekStartsWith(";"))throw new Error(`Empty path url segment cannot have parameters: '${this.remaining}'.`);return this.capture(d),new Je(wr(d),this.parseMatrixParams())}parseMatrixParams(){const d={};for(;this.consumeOptional(";");)this.parseParam(d);return d}parseParam(d){const u=Rn(this.remaining);if(!u)return;this.capture(u);let E="";if(this.consumeOptional("=")){const w=Rn(this.remaining);w&&(E=w,this.capture(E))}d[wr(u)]=wr(E)}parseQueryParam(d){const u=function Bn(g){const d=g.match(rn);return d?d[0]:""}(this.remaining);if(!u)return;this.capture(u);let E="";if(this.consumeOptional("=")){const L=function rr(g){const d=g.match($t);return d?d[0]:""}(this.remaining);L&&(E=L,this.capture(E))}const w=gn(u),P=gn(E);if(d.hasOwnProperty(w)){let L=d[w];Array.isArray(L)||(L=[L],d[w]=L),L.push(P)}else d[w]=P}parseParens(d){const u={};for(this.capture("(");!this.consumeOptional(")")&&this.remaining.length>0;){const E=Rn(this.remaining),w=this.remaining[E.length];if("/"!==w&&")"!==w&&";"!==w)throw new Error(`Cannot parse url '${this.url}'`);let P;E.indexOf(":")>-1?(P=E.substr(0,E.indexOf(":")),this.capture(P),this.capture(":")):d&&(P=Te);const L=this.parseChildren();u[P]=1===Object.keys(L).length?L[Te]:new pe([],L),this.consumeOptional("//")}return u}peekStartsWith(d){return this.remaining.startsWith(d)}consumeOptional(d){return!!this.peekStartsWith(d)&&(this.remaining=this.remaining.substring(d.length),!0)}capture(d){if(!this.consumeOptional(d))throw new Error(`Expected "${d}".`)}}class ct{constructor(d){this._root=d}get root(){return this._root.value}parent(d){const u=this.pathFromRoot(d);return u.length>1?u[u.length-2]:null}children(d){const u=Fn(d,this._root);return u?u.children.map(E=>E.value):[]}firstChild(d){const u=Fn(d,this._root);return u&&u.children.length>0?u.children[0].value:null}siblings(d){const u=Yn(d,this._root);return u.length<2?[]:u[u.length-2].children.map(w=>w.value).filter(w=>w!==d)}pathFromRoot(d){return Yn(d,this._root).map(u=>u.value)}}function Fn(g,d){if(g===d.value)return d;for(const u of d.children){const E=Fn(g,u);if(E)return E}return null}function Yn(g,d){if(g===d.value)return[d];for(const u of d.children){const E=Yn(g,u);if(E.length)return E.unshift(d),E}return[]}class Gt{constructor(d,u){this.value=d,this.children=u}toString(){return`TreeNode(${this.value})`}}function kn(g){const d={};return g&&g.children.forEach(u=>d[u.value.outlet]=u),d}class en extends ct{constructor(d,u){super(d),this.snapshot=u,Dn(this,d)}toString(){return this.snapshot.toString()}}function Zn(g,d){const u=function sr(g,d){const L=new mr([],{},{},"",{},Te,d,null,g.root,-1,{});return new mn("",new Gt(L,[]))}(g,d),E=new Y.X([new Je("",{})]),w=new Y.X({}),P=new Y.X({}),L=new Y.X({}),z=new Y.X(""),De=new sn(E,w,L,z,P,Te,d,u.root);return De.snapshot=u.root,new en(new Gt(De,[]),u)}class sn{constructor(d,u,E,w,P,L,z,De){this.url=d,this.params=u,this.queryParams=E,this.fragment=w,this.data=P,this.outlet=L,this.component=z,this._futureSnapshot=De}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,St.U)(d=>jt(d)))),this._paramMap}get queryParamMap(){return this._queryParamMap||(this._queryParamMap=this.queryParams.pipe((0,St.U)(d=>jt(d)))),this._queryParamMap}toString(){return this.snapshot?this.snapshot.toString():`Future(${this._futureSnapshot})`}}function At(g,d="emptyOnly"){const u=g.pathFromRoot;let E=0;if("always"!==d)for(E=u.length-1;E>=1;){const w=u[E],P=u[E-1];if(w.routeConfig&&""===w.routeConfig.path)E--;else{if(P.component)break;E--}}return function Ns(g){return g.reduce((d,u)=>({params:Object.assign(Object.assign({},d.params),u.params),data:Object.assign(Object.assign({},d.data),u.data),resolve:Object.assign(Object.assign({},d.resolve),u._resolvedData)}),{params:{},data:{},resolve:{}})}(u.slice(E))}class mr{constructor(d,u,E,w,P,L,z,De,Ke,Ft,et){this.url=d,this.params=u,this.queryParams=E,this.fragment=w,this.data=P,this.outlet=L,this.component=z,this.routeConfig=De,this._urlSegment=Ke,this._lastPathIndex=Ft,this._resolve=et}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=jt(this.params)),this._paramMap}get queryParamMap(){return this._queryParamMap||(this._queryParamMap=jt(this.queryParams)),this._queryParamMap}toString(){return`Route(url:'${this.url.map(E=>E.toString()).join("/")}', path:'${this.routeConfig?this.routeConfig.path:""}')`}}class mn extends ct{constructor(d,u){super(u),this.url=d,Dn(this,u)}toString(){return yr(this._root)}}function Dn(g,d){d.value._routerState=g,d.children.forEach(u=>Dn(g,u))}function yr(g){const d=g.children.length>0?` { ${g.children.map(yr).join(", ")} } `:"";return`${g.value}${d}`}function ir(g){if(g.snapshot){const d=g.snapshot,u=g._futureSnapshot;g.snapshot=u,U(d.queryParams,u.queryParams)||g.queryParams.next(u.queryParams),d.fragment!==u.fragment&&g.fragment.next(u.fragment),U(d.params,u.params)||g.params.next(u.params),function le(g,d){if(g.length!==d.length)return!1;for(let u=0;u<g.length;++u)if(!U(g[u],d[u]))return!1;return!0}(d.url,u.url)||g.url.next(u.url),U(d.data,u.data)||g.data.next(u.data)}else g.snapshot=g._futureSnapshot,g.data.next(g._futureSnapshot.data)}function ln(g,d){const u=U(g.params,d.params)&&function vt(g,d){return Rt(g,d)&&g.every((u,E)=>U(u.parameters,d[E].parameters))}(g.url,d.url);return u&&!(!g.parent!=!d.parent)&&(!g.parent||ln(g.parent,d.parent))}function jn(g,d,u){if(u&&g.shouldReuseRoute(d.value,u.value.snapshot)){const E=u.value;E._futureSnapshot=d.value;const w=function Rs(g,d,u){return d.children.map(E=>{for(const w of u.children)if(g.shouldReuseRoute(E.value,w.value.snapshot))return jn(g,E,w);return jn(g,E)})}(g,d,u);return new Gt(E,w)}{if(g.shouldAttach(d.value)){const P=g.retrieve(d.value);if(null!==P){const L=P.route;return L.value._futureSnapshot=d.value,L.children=d.children.map(z=>jn(g,z)),L}}const E=function ps(g){return new sn(new Y.X(g.url),new Y.X(g.params),new Y.X(g.queryParams),new Y.X(g.fragment),new Y.X(g.data),g.outlet,g.component,g)}(d.value),w=d.children.map(P=>jn(g,P));return new Gt(E,w)}}function Vr(g){return"object"==typeof g&&null!=g&&!g.outlets&&!g.segmentPath}function ur(g){return"object"==typeof g&&null!=g&&g.outlets}function Tr(g,d,u,E,w){let P={};return E&&Tt(E,(L,z)=>{P[z]=Array.isArray(L)?L.map(De=>`${De}`):`${L}`}),new X(u.root===g?d:Kr(u.root,g,d),P,w)}function Kr(g,d,u){const E={};return Tt(g.children,(w,P)=>{E[P]=w===d?u:Kr(w,d,u)}),new pe(g.segments,E)}class As{constructor(d,u,E){if(this.isAbsolute=d,this.numberOfDoubleDots=u,this.commands=E,d&&E.length>0&&Vr(E[0]))throw new Error("Root segment cannot have matrix parameters");const w=E.find(ur);if(w&&w!==Dt(E))throw new Error("{outlets:{}} has to be the last command")}toRoot(){return this.isAbsolute&&1===this.commands.length&&"/"==this.commands[0]}}class gs{constructor(d,u,E){this.segmentGroup=d,this.processChildren=u,this.index=E}}function ms(g,d,u){if(g||(g=new pe([],{})),0===g.segments.length&&g.hasChildren())return Jr(g,d,u);const E=function ys(g,d,u){let E=0,w=d;const P={match:!1,pathIndex:0,commandIndex:0};for(;w<g.segments.length;){if(E>=u.length)return P;const L=g.segments[w],z=u[E];if(ur(z))break;const De=`${z}`,Ke=E<u.length-1?u[E+1]:null;if(w>0&&void 0===De)break;if(De&&Ke&&"object"==typeof Ke&&void 0===Ke.outlets){if(!Mr(De,Ke,L))return P;E+=2}else{if(!Mr(De,{},L))return P;E++}w++}return{match:!0,pathIndex:w,commandIndex:E}}(g,d,u),w=u.slice(E.commandIndex);if(E.match&&E.pathIndex<g.segments.length){const P=new pe(g.segments.slice(0,E.pathIndex),{});return P.children[Te]=new pe(g.segments.slice(E.pathIndex),g.children),Jr(P,0,w)}return E.match&&0===w.length?new pe(g.segments,{}):E.match&&!g.hasChildren()?Br(g,d,u):E.match?Jr(g,0,w):Br(g,d,u)}function Jr(g,d,u){if(0===u.length)return new pe(g.segments,{});{const E=function Qr(g){return ur(g[0])?g[0].outlets:{[Te]:g}}(u),w={};return Tt(E,(P,L)=>{"string"==typeof P&&(P=[P]),null!==P&&(w[L]=ms(g.children[L],d,P))}),Tt(g.children,(P,L)=>{void 0===E[L]&&(w[L]=P)}),new pe(g.segments,w)}}function Br(g,d,u){const E=g.segments.slice(0,d);let w=0;for(;w<u.length;){const P=u[w];if(ur(P)){const De=_r(P.outlets);return new pe(E,De)}if(0===w&&Vr(u[0])){E.push(new Je(g.segments[d].path,Sr(u[0]))),w++;continue}const L=ur(P)?P.outlets[Te]:`${P}`,z=w<u.length-1?u[w+1]:null;L&&z&&Vr(z)?(E.push(new Je(L,Sr(z))),w+=2):(E.push(new Je(L,{})),w++)}return new pe(E,{})}function _r(g){const d={};return Tt(g,(u,E)=>{"string"==typeof u&&(u=[u]),null!==u&&(d[E]=Br(new pe([],{}),0,u))}),d}function Sr(g){const d={};return Tt(g,(u,E)=>d[E]=`${u}`),d}function Mr(g,d,u){return g==u.path&&U(d,u.parameters)}class Is{constructor(d,u,E,w){this.routeReuseStrategy=d,this.futureState=u,this.currState=E,this.forwardEvent=w}activate(d){const u=this.futureState._root,E=this.currState?this.currState._root:null;this.deactivateChildRoutes(u,E,d),ir(this.futureState.root),this.activateChildRoutes(u,E,d)}deactivateChildRoutes(d,u,E){const w=kn(u);d.children.forEach(P=>{const L=P.value.outlet;this.deactivateRoutes(P,w[L],E),delete w[L]}),Tt(w,(P,L)=>{this.deactivateRouteAndItsChildren(P,E)})}deactivateRoutes(d,u,E){const w=d.value,P=u?u.value:null;if(w===P)if(w.component){const L=E.getContext(w.outlet);L&&this.deactivateChildRoutes(d,u,L.children)}else this.deactivateChildRoutes(d,u,E);else P&&this.deactivateRouteAndItsChildren(u,E)}deactivateRouteAndItsChildren(d,u){d.value.component&&this.routeReuseStrategy.shouldDetach(d.value.snapshot)?this.detachAndStoreRouteSubtree(d,u):this.deactivateRouteAndOutlet(d,u)}detachAndStoreRouteSubtree(d,u){const E=u.getContext(d.value.outlet),w=E&&d.value.component?E.children:u,P=kn(d);for(const L of Object.keys(P))this.deactivateRouteAndItsChildren(P[L],w);if(E&&E.outlet){const L=E.outlet.detach(),z=E.children.onOutletDeactivated();this.routeReuseStrategy.store(d.value.snapshot,{componentRef:L,route:d,contexts:z})}}deactivateRouteAndOutlet(d,u){const E=u.getContext(d.value.outlet),w=E&&d.value.component?E.children:u,P=kn(d);for(const L of Object.keys(P))this.deactivateRouteAndItsChildren(P[L],w);E&&E.outlet&&(E.outlet.deactivate(),E.children.onOutletDeactivated(),E.attachRef=null,E.resolver=null,E.route=null)}activateChildRoutes(d,u,E){const w=kn(u);d.children.forEach(P=>{this.activateRoutes(P,w[P.value.outlet],E),this.forwardEvent(new He(P.value.snapshot))}),d.children.length&&this.forwardEvent(new Oe(d.value.snapshot))}activateRoutes(d,u,E){const w=d.value,P=u?u.value:null;if(ir(w),w===P)if(w.component){const L=E.getOrCreateContext(w.outlet);this.activateChildRoutes(d,u,L.children)}else this.activateChildRoutes(d,u,E);else if(w.component){const L=E.getOrCreateContext(w.outlet);if(this.routeReuseStrategy.shouldAttach(w.snapshot)){const z=this.routeReuseStrategy.retrieve(w.snapshot);this.routeReuseStrategy.store(w.snapshot,null),L.children.onOutletReAttached(z.contexts),L.attachRef=z.componentRef,L.route=z.route.value,L.outlet&&L.outlet.attach(z.componentRef,z.route.value),ir(z.route.value),this.activateChildRoutes(d,null,L.children)}else{const z=function cr(g){for(let d=g.parent;d;d=d.parent){const u=d.routeConfig;if(u&&u._loadedConfig)return u._loadedConfig;if(u&&u.component)return null}return null}(w.snapshot),De=z?z.module.componentFactoryResolver:null;L.attachRef=null,L.route=w,L.resolver=De,L.outlet&&L.outlet.activateWith(w,De),this.activateChildRoutes(d,null,L.children)}}else this.activateChildRoutes(d,null,E)}}class es{constructor(d,u){this.routes=d,this.module=u}}function qn(g){return"function"==typeof g}function dr(g){return g instanceof X}const Dr=Symbol("INITIAL_VALUE");function Hr(){return(0,tn.w)(g=>(0,K.aj)(g.map(d=>d.pipe((0,Ln.q)(1),(0,we.O)(Dr)))).pipe(Se((d,u)=>{let E=!1;return u.reduce((w,P,L)=>w!==Dr?w:(P===Dr&&(E=!0),E||!1!==P&&L!==u.length-1&&!dr(P)?w:P),d)},Dr),(0,te.h)(d=>d!==Dr),(0,St.U)(d=>dr(d)?d:!0===d),(0,Ln.q)(1)))}class I{constructor(){this.outlet=null,this.route=null,this.resolver=null,this.children=new l,this.attachRef=null}}class l{constructor(){this.contexts=new Map}onChildOutletCreated(d,u){const E=this.getOrCreateContext(d);E.outlet=u,this.contexts.set(d,E)}onChildOutletDestroyed(d){const u=this.getContext(d);u&&(u.outlet=null,u.attachRef=null)}onOutletDeactivated(){const d=this.contexts;return this.contexts=new Map,d}onOutletReAttached(d){this.contexts=d}getOrCreateContext(d){let u=this.getContext(d);return u||(u=new I,this.contexts.set(d,u)),u}getContext(d){return this.contexts.get(d)||null}}let c=(()=>{class g{constructor(u,E,w,P,L){this.parentContexts=u,this.location=E,this.resolver=w,this.changeDetector=L,this.activated=null,this._activatedRoute=null,this.activateEvents=new a.vpe,this.deactivateEvents=new a.vpe,this.attachEvents=new a.vpe,this.detachEvents=new a.vpe,this.name=P||Te,u.onChildOutletCreated(this.name,this)}ngOnDestroy(){this.parentContexts.onChildOutletDestroyed(this.name)}ngOnInit(){if(!this.activated){const u=this.parentContexts.getContext(this.name);u&&u.route&&(u.attachRef?this.attach(u.attachRef,u.route):this.activateWith(u.route,u.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 u=this.activated;return this.activated=null,this._activatedRoute=null,this.detachEvents.emit(u.instance),u}attach(u,E){this.activated=u,this._activatedRoute=E,this.location.insert(u.hostView),this.attachEvents.emit(u.instance)}deactivate(){if(this.activated){const u=this.component;this.activated.destroy(),this.activated=null,this._activatedRoute=null,this.deactivateEvents.emit(u)}}activateWith(u,E){if(this.isActivated)throw new Error("Cannot activate an already activated outlet");this._activatedRoute=u;const L=(E=E||this.resolver).resolveComponentFactory(u._futureSnapshot.routeConfig.component),z=this.parentContexts.getOrCreateContext(this.name).children,De=new D(u,z,this.location.injector);this.activated=this.location.createComponent(L,this.location.length,De),this.changeDetector.markForCheck(),this.activateEvents.emit(this.activated.instance)}}return g.\u0275fac=function(u){return new(u||g)(a.Y36(l),a.Y36(a.s_b),a.Y36(a._Vd),a.$8M("name"),a.Y36(a.sBO))},g.\u0275dir=a.lG2({type:g,selectors:[["router-outlet"]],outputs:{activateEvents:"activate",deactivateEvents:"deactivate",attachEvents:"attach",detachEvents:"detach"},exportAs:["outlet"]}),g})();class D{constructor(d,u,E){this.route=d,this.childContexts=u,this.parent=E}get(d,u){return d===sn?this.route:d===l?this.childContexts:this.parent.get(d,u)}}let A=(()=>{class g{}return g.\u0275fac=function(u){return new(u||g)},g.\u0275cmp=a.Xpm({type:g,selectors:[["ng-component"]],decls:1,vars:0,template:function(u,E){1&u&&a._UZ(0,"router-outlet")},directives:[c],encapsulation:2}),g})();function R(g,d=""){for(let u=0;u<g.length;u++){const E=g[u];h(E,C(d,E))}}function h(g,d){g.children&&R(g.children,d)}function C(g,d){return d?g||d.path?g&&!d.path?`${g}/`:!g&&d.path?d.path:`${g}/${d.path}`:"":g}function p(g){const d=g.children&&g.children.map(p),u=d?Object.assign(Object.assign({},g),{children:d}):Object.assign({},g);return!u.component&&(d||u.loadChildren)&&u.outlet&&u.outlet!==Te&&(u.component=A),u}function T(g){return g.outlet||Te}function N(g,d){const u=g.filter(E=>T(E)===d);return u.push(...g.filter(E=>T(E)!==d)),u}const Q={matched:!1,consumedSegments:[],lastChild:0,parameters:{},positionalParamSegments:{}};function de(g,d,u){var E;if(""===d.path)return"full"===d.pathMatch&&(g.hasChildren()||u.length>0)?Object.assign({},Q):{matched:!0,consumedSegments:[],lastChild:0,parameters:{},positionalParamSegments:{}};const P=(d.matcher||j)(u,g,d);if(!P)return Object.assign({},Q);const L={};Tt(P.posParams,(De,Ke)=>{L[Ke]=De.path});const z=P.consumed.length>0?Object.assign(Object.assign({},L),P.consumed[P.consumed.length-1].parameters):L;return{matched:!0,consumedSegments:P.consumed,lastChild:P.consumed.length,parameters:z,positionalParamSegments:null!==(E=P.posParams)&&void 0!==E?E:{}}}function Ee(g,d,u,E,w="corrected"){if(u.length>0&&function Xe(g,d,u){return u.some(E=>Ct(g,d,E)&&T(E)!==Te)}(g,u,E)){const L=new pe(d,function ze(g,d,u,E){const w={};w[Te]=E,E._sourceSegment=g,E._segmentIndexShift=d.length;for(const P of u)if(""===P.path&&T(P)!==Te){const L=new pe([],{});L._sourceSegment=g,L._segmentIndexShift=d.length,w[T(P)]=L}return w}(g,d,E,new pe(u,g.children)));return L._sourceSegment=g,L._segmentIndexShift=d.length,{segmentGroup:L,slicedSegments:[]}}if(0===u.length&&function We(g,d,u){return u.some(E=>Ct(g,d,E))}(g,u,E)){const L=new pe(g.segments,function je(g,d,u,E,w,P){const L={};for(const z of E)if(Ct(g,u,z)&&!w[T(z)]){const De=new pe([],{});De._sourceSegment=g,De._segmentIndexShift="legacy"===P?g.segments.length:d.length,L[T(z)]=De}return Object.assign(Object.assign({},w),L)}(g,d,u,E,g.children,w));return L._sourceSegment=g,L._segmentIndexShift=d.length,{segmentGroup:L,slicedSegments:u}}const P=new pe(g.segments,g.children);return P._sourceSegment=g,P._segmentIndexShift=d.length,{segmentGroup:P,slicedSegments:u}}function Ct(g,d,u){return(!(g.hasChildren()||d.length>0)||"full"!==u.pathMatch)&&""===u.path}function pt(g,d,u,E){return!!(T(g)===E||E!==Te&&Ct(d,u,g))&&("**"===g.path||de(d,g,u).matched)}function Et(g,d,u){return 0===d.length&&!g.children[u]}class Ut{constructor(d){this.segmentGroup=d||null}}class un{constructor(d){this.urlTree=d}}function b(g){return new ee.y(d=>d.error(new Ut(g)))}function _(g){return new ee.y(d=>d.error(new un(g)))}function y(g){return new ee.y(d=>d.error(new Error(`Only absolute redirects can have named outlets. redirectTo: '${g}'`)))}class Pe{constructor(d,u,E,w,P){this.configLoader=u,this.urlSerializer=E,this.urlTree=w,this.config=P,this.allowRedirects=!0,this.ngModule=d.get(a.h0i)}apply(){const d=Ee(this.urlTree.root,[],[],this.config).segmentGroup,u=new pe(d.segments,d.children);return this.expandSegmentGroup(this.ngModule,this.config,u,Te).pipe((0,St.U)(P=>this.createUrlTree(Tn(P),this.urlTree.queryParams,this.urlTree.fragment))).pipe(Ne(P=>{if(P instanceof un)return this.allowRedirects=!1,this.match(P.urlTree);throw P instanceof Ut?this.noMatchError(P):P}))}match(d){return this.expandSegmentGroup(this.ngModule,this.config,d.root,Te).pipe((0,St.U)(w=>this.createUrlTree(Tn(w),d.queryParams,d.fragment))).pipe(Ne(w=>{throw w instanceof Ut?this.noMatchError(w):w}))}noMatchError(d){return new Error(`Cannot match any routes. URL Segment: '${d.segmentGroup}'`)}createUrlTree(d,u,E){const w=d.segments.length>0?new pe([],{[Te]:d}):d;return new X(w,u,E)}expandSegmentGroup(d,u,E,w){return 0===E.segments.length&&E.hasChildren()?this.expandChildren(d,u,E).pipe((0,St.U)(P=>new pe([],P))):this.expandSegment(d,E,u,E.segments,w,!0)}expandChildren(d,u,E){const w=[];for(const P of Object.keys(E.children))"primary"===P?w.unshift(P):w.push(P);return(0,ue.D)(w).pipe((0,Me.b)(P=>{const L=E.children[P],z=N(u,P);return this.expandSegmentGroup(d,z,L,P).pipe((0,St.U)(De=>({segment:De,outlet:P})))}),Se((P,L)=>(P[L.outlet]=L.segment,P),{}),function dn(g,d){const u=arguments.length>=2;return E=>E.pipe(g?(0,te.h)((w,P)=>g(w,P,E)):yn.y,wt(1),u?ft(d):ht(()=>new re))}())}expandSegment(d,u,E,w,P,L){return(0,ue.D)(E).pipe((0,Me.b)(z=>this.expandSegmentAgainstRoute(d,u,E,z,w,P,L).pipe(Ne(Ke=>{if(Ke instanceof Ut)return(0,V.of)(null);throw Ke}))),on(z=>!!z),Ne((z,De)=>{if(z instanceof re||"EmptyError"===z.name){if(Et(u,w,P))return(0,V.of)(new pe([],{}));throw new Ut(u)}throw z}))}expandSegmentAgainstRoute(d,u,E,w,P,L,z){return pt(w,u,P,L)?void 0===w.redirectTo?this.matchSegmentAgainstRoute(d,u,w,P,L):z&&this.allowRedirects?this.expandSegmentAgainstRouteUsingRedirect(d,u,E,w,P,L):b(u):b(u)}expandSegmentAgainstRouteUsingRedirect(d,u,E,w,P,L){return"**"===w.path?this.expandWildCardWithParamsAgainstRouteUsingRedirect(d,E,w,L):this.expandRegularSegmentAgainstRouteUsingRedirect(d,u,E,w,P,L)}expandWildCardWithParamsAgainstRouteUsingRedirect(d,u,E,w){const P=this.applyRedirectCommands([],E.redirectTo,{});return E.redirectTo.startsWith("/")?_(P):this.lineralizeSegments(E,P).pipe((0,B.zg)(L=>{const z=new pe(L,{});return this.expandSegment(d,z,u,L,w,!1)}))}expandRegularSegmentAgainstRouteUsingRedirect(d,u,E,w,P,L){const{matched:z,consumedSegments:De,lastChild:Ke,positionalParamSegments:Ft}=de(u,w,P);if(!z)return b(u);const et=this.applyRedirectCommands(De,w.redirectTo,Ft);return w.redirectTo.startsWith("/")?_(et):this.lineralizeSegments(w,et).pipe((0,B.zg)(Lt=>this.expandSegment(d,u,E,Lt.concat(P.slice(Ke)),L,!1)))}matchSegmentAgainstRoute(d,u,E,w,P){if("**"===E.path)return E.loadChildren?(E._loadedConfig?(0,V.of)(E._loadedConfig):this.configLoader.load(d.injector,E)).pipe((0,St.U)(Lt=>(E._loadedConfig=Lt,new pe(w,{})))):(0,V.of)(new pe(w,{}));const{matched:L,consumedSegments:z,lastChild:De}=de(u,E,w);if(!L)return b(u);const Ke=w.slice(De);return this.getChildConfig(d,E,w).pipe((0,B.zg)(et=>{const Lt=et.module,Kt=et.routes,{segmentGroup:$s,slicedSegments:Gr}=Ee(u,z,Ke,Kt),or=new pe($s.segments,$s.children);if(0===Gr.length&&or.hasChildren())return this.expandChildren(Lt,Kt,or).pipe((0,St.U)(xr=>new pe(z,xr)));if(0===Kt.length&&0===Gr.length)return(0,V.of)(new pe(z,{}));const as=T(E)===P;return this.expandSegment(Lt,or,Kt,Gr,as?Te:P,!0).pipe((0,St.U)(Pr=>new pe(z.concat(Pr.segments),Pr.children)))}))}getChildConfig(d,u,E){return u.children?(0,V.of)(new es(u.children,d)):u.loadChildren?void 0!==u._loadedConfig?(0,V.of)(u._loadedConfig):this.runCanLoadGuards(d.injector,u,E).pipe((0,B.zg)(w=>w?this.configLoader.load(d.injector,u).pipe((0,St.U)(P=>(u._loadedConfig=P,P))):function O(g){return new ee.y(d=>d.error(vn(`Cannot load children because the guard of the route "path: '${g.path}'" returned false`)))}(u))):(0,V.of)(new es([],d))}runCanLoadGuards(d,u,E){const w=u.canLoad;if(!w||0===w.length)return(0,V.of)(!0);const P=w.map(L=>{const z=d.get(L);let De;if(function Ur(g){return g&&qn(g.canLoad)}(z))De=z.canLoad(u,E);else{if(!qn(z))throw new Error("Invalid CanLoad guard");De=z(u,E)}return an(De)});return(0,V.of)(P).pipe(Hr(),(0,ae.b)(L=>{if(!dr(L))return;const z=vn(`Redirecting to "${this.urlSerializer.serialize(L)}"`);throw z.url=L,z}),(0,St.U)(L=>!0===L))}lineralizeSegments(d,u){let E=[],w=u.root;for(;;){if(E=E.concat(w.segments),0===w.numberOfChildren)return(0,V.of)(E);if(w.numberOfChildren>1||!w.children[Te])return y(d.redirectTo);w=w.children[Te]}}applyRedirectCommands(d,u,E){return this.applyRedirectCreatreUrlTree(u,this.urlSerializer.parse(u),d,E)}applyRedirectCreatreUrlTree(d,u,E,w){const P=this.createSegmentGroup(d,u.root,E,w);return new X(P,this.createQueryParams(u.queryParams,this.urlTree.queryParams),u.fragment)}createQueryParams(d,u){const E={};return Tt(d,(w,P)=>{if("string"==typeof w&&w.startsWith(":")){const z=w.substring(1);E[P]=u[z]}else E[P]=w}),E}createSegmentGroup(d,u,E,w){const P=this.createSegments(d,u.segments,E,w);let L={};return Tt(u.children,(z,De)=>{L[De]=this.createSegmentGroup(d,z,E,w)}),new pe(P,L)}createSegments(d,u,E,w){return u.map(P=>P.path.startsWith(":")?this.findPosParam(d,P,w):this.findOrReturn(P,E))}findPosParam(d,u,E){const w=E[u.path.substring(1)];if(!w)throw new Error(`Cannot redirect to '${d}'. Cannot find '${u.path}'.`);return w}findOrReturn(d,u){let E=0;for(const w of u){if(w.path===d.path)return u.splice(E),w;E++}return d}}function Tn(g){const d={};for(const E of Object.keys(g.children)){const P=Tn(g.children[E]);(P.segments.length>0||P.hasChildren())&&(d[E]=P)}return function zt(g){if(1===g.numberOfChildren&&g.children[Te]){const d=g.children[Te];return new pe(g.segments.concat(d.segments),d.children)}return g}(new pe(g.segments,d))}class $e{constructor(d){this.path=d,this.route=this.path[this.path.length-1]}}class qe{constructor(d,u){this.component=d,this.route=u}}function st(g,d,u){const E=g._root;return Sn(E,d?d._root:null,u,[E.value])}function Ce(g,d,u){const E=function mt(g){if(!g)return null;for(let d=g.parent;d;d=d.parent){const u=d.routeConfig;if(u&&u._loadedConfig)return u._loadedConfig}return null}(d);return(E?E.module.injector:u).get(g)}function Sn(g,d,u,E,w={canDeactivateChecks:[],canActivateChecks:[]}){const P=kn(d);return g.children.forEach(L=>{(function qt(g,d,u,E,w={canDeactivateChecks:[],canActivateChecks:[]}){const P=g.value,L=d?d.value:null,z=u?u.getContext(g.value.outlet):null;if(L&&P.routeConfig===L.routeConfig){const De=function Xt(g,d,u){if("function"==typeof u)return u(g,d);switch(u){case"pathParamsChange":return!Rt(g.url,d.url);case"pathParamsOrQueryParamsChange":return!Rt(g.url,d.url)||!U(g.queryParams,d.queryParams);case"always":return!0;case"paramsOrQueryParamsChange":return!ln(g,d)||!U(g.queryParams,d.queryParams);default:return!ln(g,d)}}(L,P,P.routeConfig.runGuardsAndResolvers);De?w.canActivateChecks.push(new $e(E)):(P.data=L.data,P._resolvedData=L._resolvedData),Sn(g,d,P.component?z?z.children:null:u,E,w),De&&z&&z.outlet&&z.outlet.isActivated&&w.canDeactivateChecks.push(new qe(z.outlet.component,L))}else L&&Cr(d,z,w),w.canActivateChecks.push(new $e(E)),Sn(g,null,P.component?z?z.children:null:u,E,w)})(L,P[L.value.outlet],u,E.concat([L.value]),w),delete P[L.value.outlet]}),Tt(P,(L,z)=>Cr(L,u.getContext(z),w)),w}function Cr(g,d,u){const E=kn(g),w=g.value;Tt(E,(P,L)=>{Cr(P,w.component?d?d.children.getContext(L):null:d,u)}),u.canDeactivateChecks.push(new qe(w.component&&d&&d.outlet&&d.outlet.isActivated?d.outlet.component:null,w))}class is{}function qi(g){return new ee.y(d=>d.error(g))}class os{constructor(d,u,E,w,P,L){this.rootComponentType=d,this.config=u,this.urlTree=E,this.url=w,this.paramsInheritanceStrategy=P,this.relativeLinkResolution=L}recognize(){const d=Ee(this.urlTree.root,[],[],this.config.filter(L=>void 0===L.redirectTo),this.relativeLinkResolution).segmentGroup,u=this.processSegmentGroup(this.config,d,Te);if(null===u)return null;const E=new mr([],Object.freeze({}),Object.freeze(Object.assign({},this.urlTree.queryParams)),this.urlTree.fragment,{},Te,this.rootComponentType,null,this.urlTree.root,-1,{}),w=new Gt(E,u),P=new mn(this.url,w);return this.inheritParamsAndData(P._root),P}inheritParamsAndData(d){const u=d.value,E=At(u,this.paramsInheritanceStrategy);u.params=Object.freeze(E.params),u.data=Object.freeze(E.data),d.children.forEach(w=>this.inheritParamsAndData(w))}processSegmentGroup(d,u,E){return 0===u.segments.length&&u.hasChildren()?this.processChildren(d,u):this.processSegment(d,u,u.segments,E)}processChildren(d,u){const E=[];for(const P of Object.keys(u.children)){const L=u.children[P],z=N(d,P),De=this.processSegmentGroup(z,L,P);if(null===De)return null;E.push(...De)}const w=Lo(E);return function Ua(g){g.sort((d,u)=>d.value.outlet===Te?-1:u.value.outlet===Te?1:d.value.outlet.localeCompare(u.value.outlet))}(w),w}processSegment(d,u,E,w){for(const P of d){const L=this.processSegmentAgainstRoute(P,u,E,w);if(null!==L)return L}return Et(u,E,w)?[]:null}processSegmentAgainstRoute(d,u,E,w){if(d.redirectTo||!pt(d,u,E,w))return null;let P,L=[],z=[];if("**"===d.path){const Kt=E.length>0?Dt(E).parameters:{};P=new mr(E,Kt,Object.freeze(Object.assign({},this.urlTree.queryParams)),this.urlTree.fragment,ii(d),T(d),d.component,d,si(u),Ki(u)+E.length,Bo(d))}else{const Kt=de(u,d,E);if(!Kt.matched)return null;L=Kt.consumedSegments,z=E.slice(Kt.lastChild),P=new mr(L,Kt.parameters,Object.freeze(Object.assign({},this.urlTree.queryParams)),this.urlTree.fragment,ii(d),T(d),d.component,d,si(u),Ki(u)+L.length,Bo(d))}const De=function ko(g){return g.children?g.children:g.loadChildren?g._loadedConfig.routes:[]}(d),{segmentGroup:Ke,slicedSegments:Ft}=Ee(u,L,z,De.filter(Kt=>void 0===Kt.redirectTo),this.relativeLinkResolution);if(0===Ft.length&&Ke.hasChildren()){const Kt=this.processChildren(De,Ke);return null===Kt?null:[new Gt(P,Kt)]}if(0===De.length&&0===Ft.length)return[new Gt(P,[])];const et=T(d)===w,Lt=this.processSegment(De,Ke,Ft,et?Te:w);return null===Lt?null:[new Gt(P,Lt)]}}function Ha(g){const d=g.value.routeConfig;return d&&""===d.path&&void 0===d.redirectTo}function Lo(g){const d=[],u=new Set;for(const E of g){if(!Ha(E)){d.push(E);continue}const w=d.find(P=>E.value.routeConfig===P.value.routeConfig);void 0!==w?(w.children.push(...E.children),u.add(w)):d.push(E)}for(const E of u){const w=Lo(E.children);d.push(new Gt(E.value,w))}return d.filter(E=>!u.has(E))}function si(g){let d=g;for(;d._sourceSegment;)d=d._sourceSegment;return d}function Ki(g){let d=g,u=d._segmentIndexShift?d._segmentIndexShift:0;for(;d._sourceSegment;)d=d._sourceSegment,u+=d._segmentIndexShift?d._segmentIndexShift:0;return u-1}function ii(g){return g.data||{}}function Bo(g){return g.resolve||{}}function Zi(g){return[...Object.keys(g),...Object.getOwnPropertySymbols(g)]}function Ls(g){return(0,tn.w)(d=>{const u=g(d);return u?(0,ue.D)(u).pipe((0,St.U)(()=>d)):(0,V.of)(d)})}class Jn extends class Ga{shouldDetach(d){return!1}store(d,u){}shouldAttach(d){return!1}retrieve(d){return null}shouldReuseRoute(d,u){return d.routeConfig===u.routeConfig}}{}const $r=new a.OlP("ROUTES");class cn{constructor(d,u,E,w){this.injector=d,this.compiler=u,this.onLoadStartListener=E,this.onLoadEndListener=w}load(d,u){if(u._loader$)return u._loader$;this.onLoadStartListener&&this.onLoadStartListener(u);const w=this.loadModuleFactory(u.loadChildren).pipe((0,St.U)(P=>{this.onLoadEndListener&&this.onLoadEndListener(u);const L=P.create(d);return new es(Qe(L.injector.get($r,void 0,a.XFs.Self|a.XFs.Optional)).map(p),L)}),Ne(P=>{throw u._loader$=void 0,P}));return u._loader$=new ce.c(w,()=>new oe.xQ).pipe((0,ke.x)()),u._loader$}loadModuleFactory(d){return an(d()).pipe((0,B.zg)(u=>u instanceof a.YKP?(0,V.of)(u):(0,ue.D)(this.compiler.compileModuleAsync(u))))}}class za{shouldProcessUrl(d){return!0}extract(d){return d}merge(d,u){return d}}function zo(g){throw g}function Wa(g,d,u){return d.parse("/")}function Wo(g,d){return(0,V.of)(null)}const Ya={paths:"exact",fragment:"ignored",matrixParams:"ignored",queryParams:"exact"},ai={paths:"subset",fragment:"ignored",matrixParams:"ignored",queryParams:"subset"};let Un=(()=>{class g{constructor(u,E,w,P,L,z,De){this.rootComponentType=u,this.urlSerializer=E,this.rootContexts=w,this.location=P,this.config=De,this.lastSuccessfulNavigation=null,this.currentNavigation=null,this.disposed=!1,this.navigationId=0,this.currentPageId=0,this.isNgZoneEnabled=!1,this.events=new oe.xQ,this.errorHandler=zo,this.malformedUriErrorHandler=Wa,this.navigated=!1,this.lastSuccessfulId=-1,this.hooks={beforePreactivation:Wo,afterPreactivation:Wo},this.urlHandlingStrategy=new za,this.routeReuseStrategy=new Jn,this.onSameUrlNavigation="ignore",this.paramsInheritanceStrategy="emptyOnly",this.urlUpdateStrategy="deferred",this.relativeLinkResolution="corrected",this.canceledNavigationResolution="replace",this.ngModule=L.get(a.h0i),this.console=L.get(a.c2e);const et=L.get(a.R0b);this.isNgZoneEnabled=et instanceof a.R0b&&a.R0b.isInAngularZone(),this.resetConfig(De),this.currentUrlTree=function zn(){return new X(new pe([],{}),{},null)}(),this.rawUrlTree=this.currentUrlTree,this.browserUrlTree=this.currentUrlTree,this.configLoader=new cn(L,z,Lt=>this.triggerEvent(new ie(Lt)),Lt=>this.triggerEvent(new G(Lt))),this.routerState=Zn(this.currentUrlTree,this.rootComponentType),this.transitions=new Y.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 u;return null===(u=this.location.getState())||void 0===u?void 0:u.\u0275routerPageId}setupNavigations(u){const E=this.events;return u.pipe((0,te.h)(w=>0!==w.id),(0,St.U)(w=>Object.assign(Object.assign({},w),{extractedUrl:this.urlHandlingStrategy.extract(w.rawUrl)})),(0,tn.w)(w=>{let P=!1,L=!1;return(0,V.of)(w).pipe((0,ae.b)(z=>{this.currentNavigation={id:z.id,initialUrl:z.currentRawUrl,extractedUrl:z.extractedUrl,trigger:z.source,extras:z.extras,previousNavigation:this.lastSuccessfulNavigation?Object.assign(Object.assign({},this.lastSuccessfulNavigation),{previousNavigation:null}):null}}),(0,tn.w)(z=>{const De=this.browserUrlTree.toString(),Ke=!this.navigated||z.extractedUrl.toString()!==De||De!==this.currentUrlTree.toString();if(("reload"===this.onSameUrlNavigation||Ke)&&this.urlHandlingStrategy.shouldProcessUrl(z.rawUrl))return Vs(z.source)&&(this.browserUrlTree=z.extractedUrl),(0,V.of)(z).pipe((0,tn.w)(et=>{const Lt=this.transitions.getValue();return E.next(new hn(et.id,this.serializeUrl(et.extractedUrl),et.source,et.restoredState)),Lt!==this.transitions.getValue()?W.E:Promise.resolve(et)}),function Ir(g,d,u,E){return(0,tn.w)(w=>function me(g,d,u,E,w){return new Pe(g,d,u,E,w).apply()}(g,d,u,w.extractedUrl,E).pipe((0,St.U)(P=>Object.assign(Object.assign({},w),{urlAfterRedirects:P}))))}(this.ngModule.injector,this.configLoader,this.urlSerializer,this.config),(0,ae.b)(et=>{this.currentNavigation=Object.assign(Object.assign({},this.currentNavigation),{finalUrl:et.urlAfterRedirects})}),function jo(g,d,u,E,w){return(0,B.zg)(P=>function ks(g,d,u,E,w="emptyOnly",P="legacy"){try{const L=new os(g,d,u,E,w,P).recognize();return null===L?qi(new is):(0,V.of)(L)}catch(L){return qi(L)}}(g,d,P.urlAfterRedirects,u(P.urlAfterRedirects),E,w).pipe((0,St.U)(L=>Object.assign(Object.assign({},P),{targetSnapshot:L}))))}(this.rootComponentType,this.config,et=>this.serializeUrl(et),this.paramsInheritanceStrategy,this.relativeLinkResolution),(0,ae.b)(et=>{if("eager"===this.urlUpdateStrategy){if(!et.extras.skipLocationChange){const Kt=this.urlHandlingStrategy.merge(et.urlAfterRedirects,et.rawUrl);this.setBrowserUrl(Kt,et)}this.browserUrlTree=et.urlAfterRedirects}const Lt=new Bt(et.id,this.serializeUrl(et.extractedUrl),this.serializeUrl(et.urlAfterRedirects),et.targetSnapshot);E.next(Lt)}));if(Ke&&this.rawUrlTree&&this.urlHandlingStrategy.shouldProcessUrl(this.rawUrlTree)){const{id:Lt,extractedUrl:Kt,source:$s,restoredState:Gr,extras:or}=z,as=new hn(Lt,this.serializeUrl(Kt),$s,Gr);E.next(as);const Gs=Zn(Kt,this.rootComponentType).snapshot;return(0,V.of)(Object.assign(Object.assign({},z),{targetSnapshot:Gs,urlAfterRedirects:Kt,extras:Object.assign(Object.assign({},or),{skipLocationChange:!1,replaceUrl:!1})}))}return this.rawUrlTree=z.rawUrl,z.resolve(null),W.E}),Ls(z=>{const{targetSnapshot:De,id:Ke,extractedUrl:Ft,rawUrl:et,extras:{skipLocationChange:Lt,replaceUrl:Kt}}=z;return this.hooks.beforePreactivation(De,{navigationId:Ke,appliedUrlTree:Ft,rawUrlTree:et,skipLocationChange:!!Lt,replaceUrl:!!Kt})}),(0,ae.b)(z=>{const De=new In(z.id,this.serializeUrl(z.extractedUrl),this.serializeUrl(z.urlAfterRedirects),z.targetSnapshot);this.triggerEvent(De)}),(0,St.U)(z=>Object.assign(Object.assign({},z),{guards:st(z.targetSnapshot,z.currentSnapshot,this.rootContexts)})),function Er(g,d){return(0,B.zg)(u=>{const{targetSnapshot:E,currentSnapshot:w,guards:{canActivateChecks:P,canDeactivateChecks:L}}=u;return 0===L.length&&0===P.length?(0,V.of)(Object.assign(Object.assign({},u),{guardsResult:!0})):function Pn(g,d,u,E){return(0,ue.D)(g).pipe((0,B.zg)(w=>function Qn(g,d,u,E,w){const P=d&&d.routeConfig?d.routeConfig.canDeactivate:null;if(!P||0===P.length)return(0,V.of)(!0);const L=P.map(z=>{const De=Ce(z,d,w);let Ke;if(function Ar(g){return g&&qn(g.canDeactivate)}(De))Ke=an(De.canDeactivate(g,d,u,E));else{if(!qn(De))throw new Error("Invalid CanDeactivate guard");Ke=an(De(g,d,u,E))}return Ke.pipe(on())});return(0,V.of)(L).pipe(Hr())}(w.component,w.route,u,d,E)),on(w=>!0!==w,!0))}(L,E,w,g).pipe((0,B.zg)(z=>z&&function jr(g){return"boolean"==typeof g}(z)?function Or(g,d,u,E){return(0,ue.D)(d).pipe((0,Me.b)(w=>(0,J.z)(function ss(g,d){return null!==g&&d&&d(new Z(g)),(0,V.of)(!0)}(w.route.parent,E),function rs(g,d){return null!==g&&d&&d(new Ae(g)),(0,V.of)(!0)}(w.route,E),function ri(g,d,u){const E=d[d.length-1],P=d.slice(0,d.length-1).reverse().map(L=>function It(g){const d=g.routeConfig?g.routeConfig.canActivateChild:null;return d&&0!==d.length?{node:g,guards:d}:null}(L)).filter(L=>null!==L).map(L=>(0,$.P)(()=>{const z=L.guards.map(De=>{const Ke=Ce(De,L.node,u);let Ft;if(function ns(g){return g&&qn(g.canActivateChild)}(Ke))Ft=an(Ke.canActivateChild(E,g));else{if(!qn(Ke))throw new Error("Invalid CanActivateChild guard");Ft=an(Ke(E,g))}return Ft.pipe(on())});return(0,V.of)(z).pipe(Hr())}));return(0,V.of)(P).pipe(Hr())}(g,w.path,u),function vs(g,d,u){const E=d.routeConfig?d.routeConfig.canActivate:null;if(!E||0===E.length)return(0,V.of)(!0);const w=E.map(P=>(0,$.P)(()=>{const L=Ce(P,d,u);let z;if(function ts(g){return g&&qn(g.canActivate)}(L))z=an(L.canActivate(d,g));else{if(!qn(L))throw new Error("Invalid CanActivate guard");z=an(L(d,g))}return z.pipe(on())}));return(0,V.of)(w).pipe(Hr())}(g,w.route,u))),on(w=>!0!==w,!0))}(E,P,g,d):(0,V.of)(z)),(0,St.U)(z=>Object.assign(Object.assign({},u),{guardsResult:z})))})}(this.ngModule.injector,z=>this.triggerEvent(z)),(0,ae.b)(z=>{if(dr(z.guardsResult)){const Ke=vn(`Redirecting to "${this.serializeUrl(z.guardsResult)}"`);throw Ke.url=z.guardsResult,Ke}const De=new Ht(z.id,this.serializeUrl(z.extractedUrl),this.serializeUrl(z.urlAfterRedirects),z.targetSnapshot,!!z.guardsResult);this.triggerEvent(De)}),(0,te.h)(z=>!!z.guardsResult||(this.restoreHistory(z),this.cancelNavigationTransition(z,""),!1)),Ls(z=>{if(z.guards.canActivateChecks.length)return(0,V.of)(z).pipe((0,ae.b)(De=>{const Ke=new Gn(De.id,this.serializeUrl(De.extractedUrl),this.serializeUrl(De.urlAfterRedirects),De.targetSnapshot);this.triggerEvent(Ke)}),(0,tn.w)(De=>{let Ke=!1;return(0,V.of)(De).pipe(function oi(g,d){return(0,B.zg)(u=>{const{targetSnapshot:E,guards:{canActivateChecks:w}}=u;if(!w.length)return(0,V.of)(u);let P=0;return(0,ue.D)(w).pipe((0,Me.b)(L=>function Uo(g,d,u,E){return function Ho(g,d,u,E){const w=Zi(g);if(0===w.length)return(0,V.of)({});const P={};return(0,ue.D)(w).pipe((0,B.zg)(L=>function $o(g,d,u,E){const w=Ce(g,d,E);return an(w.resolve?w.resolve(d,u):w(d,u))}(g[L],d,u,E).pipe((0,ae.b)(z=>{P[L]=z}))),wt(1),(0,B.zg)(()=>Zi(P).length===w.length?(0,V.of)(P):W.E))}(g._resolve,g,d,E).pipe((0,St.U)(P=>(g._resolvedData=P,g.data=Object.assign(Object.assign({},g.data),At(g,u).resolve),null)))}(L.route,E,g,d)),(0,ae.b)(()=>P++),wt(1),(0,B.zg)(L=>P===w.length?(0,V.of)(u):W.E))})}(this.paramsInheritanceStrategy,this.ngModule.injector),(0,ae.b)({next:()=>Ke=!0,complete:()=>{Ke||(this.restoreHistory(De),this.cancelNavigationTransition(De,"At least one route resolver didn't emit any value."))}}))}),(0,ae.b)(De=>{const Ke=new Jt(De.id,this.serializeUrl(De.extractedUrl),this.serializeUrl(De.urlAfterRedirects),De.targetSnapshot);this.triggerEvent(Ke)}))}),Ls(z=>{const{targetSnapshot:De,id:Ke,extractedUrl:Ft,rawUrl:et,extras:{skipLocationChange:Lt,replaceUrl:Kt}}=z;return this.hooks.afterPreactivation(De,{navigationId:Ke,appliedUrlTree:Ft,rawUrlTree:et,skipLocationChange:!!Lt,replaceUrl:!!Kt})}),(0,St.U)(z=>{const De=function Qt(g,d,u){const E=jn(g,d._root,u?u._root:void 0);return new en(E,d)}(this.routeReuseStrategy,z.targetSnapshot,z.currentRouterState);return Object.assign(Object.assign({},z),{targetRouterState:De})}),(0,ae.b)(z=>{this.currentUrlTree=z.urlAfterRedirects,this.rawUrlTree=this.urlHandlingStrategy.merge(z.urlAfterRedirects,z.rawUrl),this.routerState=z.targetRouterState,"deferred"===this.urlUpdateStrategy&&(z.extras.skipLocationChange||this.setBrowserUrl(this.rawUrlTree,z),this.browserUrlTree=z.urlAfterRedirects)}),((g,d,u)=>(0,St.U)(E=>(new Is(d,E.targetRouterState,E.currentRouterState,u).activate(g),E)))(this.rootContexts,this.routeReuseStrategy,z=>this.triggerEvent(z)),(0,ae.b)({next(){P=!0},complete(){P=!0}}),(0,nt.x)(()=>{var z;P||L||this.cancelNavigationTransition(w,`Navigation ID ${w.id} is not equal to the current navigation id ${this.navigationId}`),(null===(z=this.currentNavigation)||void 0===z?void 0:z.id)===w.id&&(this.currentNavigation=null)}),Ne(z=>{if(L=!0,function Wt(g){return g&&g[Ot]}(z)){const De=dr(z.url);De||(this.navigated=!0,this.restoreHistory(w,!0));const Ke=new nn(w.id,this.serializeUrl(w.extractedUrl),z.message);E.next(Ke),De?setTimeout(()=>{const Ft=this.urlHandlingStrategy.merge(z.url,this.rawUrlTree),et={skipLocationChange:w.extras.skipLocationChange,replaceUrl:"eager"===this.urlUpdateStrategy||Vs(w.source)};this.scheduleNavigation(Ft,"imperative",null,et,{resolve:w.resolve,reject:w.reject,promise:w.promise})},0):w.resolve(!1)}else{this.restoreHistory(w,!0);const De=new fn(w.id,this.serializeUrl(w.extractedUrl),z);E.next(De);try{w.resolve(this.errorHandler(z))}catch(Ke){w.reject(Ke)}}return W.E}))}))}resetRootComponentType(u){this.rootComponentType=u,this.routerState.root.component=this.rootComponentType}setTransition(u){this.transitions.next(Object.assign(Object.assign({},this.transitions.value),u))}initialNavigation(){this.setUpLocationChangeListener(),0===this.navigationId&&this.navigateByUrl(this.location.path(!0),{replaceUrl:!0})}setUpLocationChangeListener(){this.locationSubscription||(this.locationSubscription=this.location.subscribe(u=>{const E="popstate"===u.type?"popstate":"hashchange";"popstate"===E&&setTimeout(()=>{var w;const P={replaceUrl:!0},L=(null===(w=u.state)||void 0===w?void 0:w.navigationId)?u.state:null;if(L){const De=Object.assign({},L);delete De.navigationId,delete De.\u0275routerPageId,0!==Object.keys(De).length&&(P.state=De)}const z=this.parseUrl(u.url);this.scheduleNavigation(z,E,L,P)},0)}))}get url(){return this.serializeUrl(this.currentUrlTree)}getCurrentNavigation(){return this.currentNavigation}triggerEvent(u){this.events.next(u)}resetConfig(u){R(u),this.config=u.map(p),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(u,E={}){const{relativeTo:w,queryParams:P,fragment:L,queryParamsHandling:z,preserveFragment:De}=E,Ke=w||this.routerState.root,Ft=De?this.currentUrlTree.fragment:L;let et=null;switch(z){case"merge":et=Object.assign(Object.assign({},this.currentUrlTree.queryParams),P);break;case"preserve":et=this.currentUrlTree.queryParams;break;default:et=P||null}return null!==et&&(et=this.removeEmptyProps(et)),function qr(g,d,u,E,w){if(0===u.length)return Tr(d.root,d.root,d,E,w);const P=function vr(g){if("string"==typeof g[0]&&1===g.length&&"/"===g[0])return new As(!0,0,g);let d=0,u=!1;const E=g.reduce((w,P,L)=>{if("object"==typeof P&&null!=P){if(P.outlets){const z={};return Tt(P.outlets,(De,Ke)=>{z[Ke]="string"==typeof De?De.split("/"):De}),[...w,{outlets:z}]}if(P.segmentPath)return[...w,P.segmentPath]}return"string"!=typeof P?[...w,P]:0===L?(P.split("/").forEach((z,De)=>{0==De&&"."===z||(0==De&&""===z?u=!0:".."===z?d++:""!=z&&w.push(z))}),w):[...w,P]},[]);return new As(u,d,E)}(u);if(P.toRoot())return Tr(d.root,new pe([],{}),d,E,w);const L=function Zr(g,d,u){if(g.isAbsolute)return new gs(d.root,!0,0);if(-1===u.snapshot._lastPathIndex){const P=u.snapshot._urlSegment;return new gs(P,P===d.root,0)}const E=Vr(g.commands[0])?0:1;return function Fs(g,d,u){let E=g,w=d,P=u;for(;P>w;){if(P-=w,E=E.parent,!E)throw new Error("Invalid number of '../'");w=E.segments.length}return new gs(E,!1,w-P)}(u.snapshot._urlSegment,u.snapshot._lastPathIndex+E,g.numberOfDoubleDots)}(P,d,g),z=L.processChildren?Jr(L.segmentGroup,L.index,P.commands):ms(L.segmentGroup,L.index,P.commands);return Tr(L.segmentGroup,z,d,E,w)}(Ke,this.currentUrlTree,u,et,null!=Ft?Ft:null)}navigateByUrl(u,E={skipLocationChange:!1}){const w=dr(u)?u:this.parseUrl(u),P=this.urlHandlingStrategy.merge(w,this.rawUrlTree);return this.scheduleNavigation(P,"imperative",null,E)}navigate(u,E={skipLocationChange:!1}){return function li(g){for(let d=0;d<g.length;d++){const u=g[d];if(null==u)throw new Error(`The requested path contains ${u} segment at index ${d}`)}}(u),this.navigateByUrl(this.createUrlTree(u,E),E)}serializeUrl(u){return this.urlSerializer.serialize(u)}parseUrl(u){let E;try{E=this.urlSerializer.parse(u)}catch(w){E=this.malformedUriErrorHandler(w,this.urlSerializer,u)}return E}isActive(u,E){let w;if(w=!0===E?Object.assign({},Ya):!1===E?Object.assign({},ai):E,dr(u))return Vn(this.currentUrlTree,u,w);const P=this.parseUrl(u);return Vn(this.currentUrlTree,P,w)}removeEmptyProps(u){return Object.keys(u).reduce((E,w)=>{const P=u[w];return null!=P&&(E[w]=P),E},{})}processNavigations(){this.navigations.subscribe(u=>{this.navigated=!0,this.lastSuccessfulId=u.id,this.currentPageId=u.targetPageId,this.events.next(new Mt(u.id,this.serializeUrl(u.extractedUrl),this.serializeUrl(this.currentUrlTree))),this.lastSuccessfulNavigation=this.currentNavigation,u.resolve(!0)},u=>{this.console.warn(`Unhandled Navigation Error: ${u}`)})}scheduleNavigation(u,E,w,P,L){var z,De,Ke;if(this.disposed)return Promise.resolve(!1);const Ft=this.transitions.value,et=Vs(E)&&Ft&&!Vs(Ft.source),Lt=Ft.rawUrl.toString()===u.toString(),Kt=Ft.id===(null===(z=this.currentNavigation)||void 0===z?void 0:z.id);if(et&&Lt&&Kt)return Promise.resolve(!0);let Gr,or,as;L?(Gr=L.resolve,or=L.reject,as=L.promise):as=new Promise((xr,zs)=>{Gr=xr,or=zs});const Gs=++this.navigationId;let Pr;return"computed"===this.canceledNavigationResolution?(0===this.currentPageId&&(w=this.location.getState()),Pr=w&&w.\u0275routerPageId?w.\u0275routerPageId:P.replaceUrl||P.skipLocationChange?null!==(De=this.browserPageId)&&void 0!==De?De:0:(null!==(Ke=this.browserPageId)&&void 0!==Ke?Ke:0)+1):Pr=0,this.setTransition({id:Gs,targetPageId:Pr,source:E,restoredState:w,currentUrlTree:this.currentUrlTree,currentRawUrl:this.rawUrlTree,rawUrl:u,extras:P,resolve:Gr,reject:or,promise:as,currentSnapshot:this.routerState.snapshot,currentRouterState:this.routerState}),as.catch(xr=>Promise.reject(xr))}setBrowserUrl(u,E){const w=this.urlSerializer.serialize(u),P=Object.assign(Object.assign({},E.extras.state),this.generateNgRouterState(E.id,E.targetPageId));this.location.isCurrentPathEqualTo(w)||E.extras.replaceUrl?this.location.replaceState(w,"",P):this.location.go(w,"",P)}restoreHistory(u,E=!1){var w,P;if("computed"===this.canceledNavigationResolution){const L=this.currentPageId-u.targetPageId;"popstate"!==u.source&&"eager"!==this.urlUpdateStrategy&&this.currentUrlTree!==(null===(w=this.currentNavigation)||void 0===w?void 0:w.finalUrl)||0===L?this.currentUrlTree===(null===(P=this.currentNavigation)||void 0===P?void 0:P.finalUrl)&&0===L&&(this.resetState(u),this.browserUrlTree=u.currentUrlTree,this.resetUrlToCurrentUrlTree()):this.location.historyGo(L)}else"replace"===this.canceledNavigationResolution&&(E&&this.resetState(u),this.resetUrlToCurrentUrlTree())}resetState(u){this.routerState=u.currentRouterState,this.currentUrlTree=u.currentUrlTree,this.rawUrlTree=this.urlHandlingStrategy.merge(this.currentUrlTree,u.rawUrl)}resetUrlToCurrentUrlTree(){this.location.replaceState(this.urlSerializer.serialize(this.rawUrlTree),"",this.generateNgRouterState(this.lastSuccessfulId,this.currentPageId))}cancelNavigationTransition(u,E){const w=new nn(u.id,this.serializeUrl(u.extractedUrl),E);this.triggerEvent(w),u.resolve(!1)}generateNgRouterState(u,E){return"computed"===this.canceledNavigationResolution?{navigationId:u,\u0275routerPageId:E}:{navigationId:u}}}return g.\u0275fac=function(u){a.$Z()},g.\u0275prov=a.Yz7({token:g,factory:g.\u0275fac}),g})();function Vs(g){return"imperative"!==g}let ui=(()=>{class g{constructor(u,E,w,P,L){this.router=u,this.route=E,this.tabIndexAttribute=w,this.renderer=P,this.el=L,this.commands=null,this.onChanges=new oe.xQ,this.setTabIndexIfNotOnNativeEl("0")}setTabIndexIfNotOnNativeEl(u){if(null!=this.tabIndexAttribute)return;const E=this.renderer,w=this.el.nativeElement;null!==u?E.setAttribute(w,"tabindex",u):E.removeAttribute(w,"tabindex")}ngOnChanges(u){this.onChanges.next(this)}set routerLink(u){null!=u?(this.commands=Array.isArray(u)?u:[u],this.setTabIndexIfNotOnNativeEl("0")):(this.commands=null,this.setTabIndexIfNotOnNativeEl(null))}onClick(){if(null===this.urlTree)return!0;const u={skipLocationChange:hr(this.skipLocationChange),replaceUrl:hr(this.replaceUrl),state:this.state};return this.router.navigateByUrl(this.urlTree,u),!0}get urlTree(){return null===this.commands?null:this.router.createUrlTree(this.commands,{relativeTo:void 0!==this.relativeTo?this.relativeTo:this.route,queryParams:this.queryParams,fragment:this.fragment,queryParamsHandling:this.queryParamsHandling,preserveFragment:hr(this.preserveFragment)})}}return g.\u0275fac=function(u){return new(u||g)(a.Y36(Un),a.Y36(sn),a.$8M("tabindex"),a.Y36(a.Qsj),a.Y36(a.SBq))},g.\u0275dir=a.lG2({type:g,selectors:[["","routerLink","",5,"a",5,"area"]],hostBindings:function(u,E){1&u&&a.NdJ("click",function(){return E.onClick()})},inputs:{queryParams:"queryParams",fragment:"fragment",queryParamsHandling:"queryParamsHandling",preserveFragment:"preserveFragment",skipLocationChange:"skipLocationChange",replaceUrl:"replaceUrl",state:"state",relativeTo:"relativeTo",routerLink:"routerLink"},features:[a.TTD]}),g})(),ci=(()=>{class g{constructor(u,E,w){this.router=u,this.route=E,this.locationStrategy=w,this.commands=null,this.href=null,this.onChanges=new oe.xQ,this.subscription=u.events.subscribe(P=>{P instanceof Mt&&this.updateTargetUrlAndHref()})}set routerLink(u){this.commands=null!=u?Array.isArray(u)?u:[u]:null}ngOnChanges(u){this.updateTargetUrlAndHref(),this.onChanges.next(this)}ngOnDestroy(){this.subscription.unsubscribe()}onClick(u,E,w,P,L){if(0!==u||E||w||P||L||"string"==typeof this.target&&"_self"!=this.target||null===this.urlTree)return!0;const z={skipLocationChange:hr(this.skipLocationChange),replaceUrl:hr(this.replaceUrl),state:this.state};return this.router.navigateByUrl(this.urlTree,z),!1}updateTargetUrlAndHref(){this.href=null!==this.urlTree?this.locationStrategy.prepareExternalUrl(this.router.serializeUrl(this.urlTree)):null}get urlTree(){return null===this.commands?null:this.router.createUrlTree(this.commands,{relativeTo:void 0!==this.relativeTo?this.relativeTo:this.route,queryParams:this.queryParams,fragment:this.fragment,queryParamsHandling:this.queryParamsHandling,preserveFragment:hr(this.preserveFragment)})}}return g.\u0275fac=function(u){return new(u||g)(a.Y36(Un),a.Y36(sn),a.Y36(Vt.S$))},g.\u0275dir=a.lG2({type:g,selectors:[["a","routerLink",""],["area","routerLink",""]],hostVars:2,hostBindings:function(u,E){1&u&&a.NdJ("click",function(P){return E.onClick(P.button,P.ctrlKey,P.shiftKey,P.altKey,P.metaKey)}),2&u&&a.uIk("target",E.target)("href",E.href,a.LSH)},inputs:{target:"target",queryParams:"queryParams",fragment:"fragment",queryParamsHandling:"queryParamsHandling",preserveFragment:"preserveFragment",skipLocationChange:"skipLocationChange",replaceUrl:"replaceUrl",state:"state",relativeTo:"relativeTo",routerLink:"routerLink"},features:[a.TTD]}),g})();function hr(g){return""===g||!!g}let Bs=(()=>{class g{constructor(u,E,w,P,L,z){this.router=u,this.element=E,this.renderer=w,this.cdr=P,this.link=L,this.linkWithHref=z,this.classes=[],this.isActive=!1,this.routerLinkActiveOptions={exact:!1},this.isActiveChange=new a.vpe,this.routerEventsSubscription=u.events.subscribe(De=>{De instanceof Mt&&this.update()})}ngAfterContentInit(){(0,V.of)(this.links.changes,this.linksWithHrefs.changes,(0,V.of)(null)).pipe((0,gt.J)()).subscribe(u=>{this.update(),this.subscribeToEachLinkOnChanges()})}subscribeToEachLinkOnChanges(){var u;null===(u=this.linkInputChangesSubscription)||void 0===u||u.unsubscribe();const E=[...this.links.toArray(),...this.linksWithHrefs.toArray(),this.link,this.linkWithHref].filter(w=>!!w).map(w=>w.onChanges);this.linkInputChangesSubscription=(0,ue.D)(E).pipe((0,gt.J)()).subscribe(w=>{this.isActive!==this.isLinkActive(this.router)(w)&&this.update()})}set routerLinkActive(u){const E=Array.isArray(u)?u:u.split(" ");this.classes=E.filter(w=>!!w)}ngOnChanges(u){this.update()}ngOnDestroy(){var u;this.routerEventsSubscription.unsubscribe(),null===(u=this.linkInputChangesSubscription)||void 0===u||u.unsubscribe()}update(){!this.links||!this.linksWithHrefs||!this.router.navigated||Promise.resolve().then(()=>{const u=this.hasActiveLinks();this.isActive!==u&&(this.isActive=u,this.cdr.markForCheck(),this.classes.forEach(E=>{u?this.renderer.addClass(this.element.nativeElement,E):this.renderer.removeClass(this.element.nativeElement,E)}),this.isActiveChange.emit(u))})}isLinkActive(u){const E=function qa(g){return!!g.paths}(this.routerLinkActiveOptions)?this.routerLinkActiveOptions:this.routerLinkActiveOptions.exact||!1;return w=>!!w.urlTree&&u.isActive(w.urlTree,E)}hasActiveLinks(){const u=this.isLinkActive(this.router);return this.link&&u(this.link)||this.linkWithHref&&u(this.linkWithHref)||this.links.some(u)||this.linksWithHrefs.some(u)}}return g.\u0275fac=function(u){return new(u||g)(a.Y36(Un),a.Y36(a.SBq),a.Y36(a.Qsj),a.Y36(a.sBO),a.Y36(ui,8),a.Y36(ci,8))},g.\u0275dir=a.lG2({type:g,selectors:[["","routerLinkActive",""]],contentQueries:function(u,E,w){if(1&u&&(a.Suo(w,ui,5),a.Suo(w,ci,5)),2&u){let P;a.iGM(P=a.CRH())&&(E.links=P),a.iGM(P=a.CRH())&&(E.linksWithHrefs=P)}},inputs:{routerLinkActiveOptions:"routerLinkActiveOptions",routerLinkActive:"routerLinkActive"},outputs:{isActiveChange:"isActiveChange"},exportAs:["routerLinkActive"],features:[a.TTD]}),g})();class Yo{}class di{preload(d,u){return(0,V.of)(null)}}let qo=(()=>{class g{constructor(u,E,w,P){this.router=u,this.injector=w,this.preloadingStrategy=P,this.loader=new cn(w,E,De=>u.triggerEvent(new ie(De)),De=>u.triggerEvent(new G(De)))}setUpPreloading(){this.subscription=this.router.events.pipe((0,te.h)(u=>u instanceof Mt),(0,Me.b)(()=>this.preload())).subscribe(()=>{})}preload(){const u=this.injector.get(a.h0i);return this.processRoutes(u,this.router.config)}ngOnDestroy(){this.subscription&&this.subscription.unsubscribe()}processRoutes(u,E){const w=[];for(const P of E)if(P.loadChildren&&!P.canLoad&&P._loadedConfig){const L=P._loadedConfig;w.push(this.processRoutes(L.module,L.routes))}else P.loadChildren&&!P.canLoad?w.push(this.preloadConfig(u,P)):P.children&&w.push(this.processRoutes(u,P.children));return(0,ue.D)(w).pipe((0,gt.J)(),(0,St.U)(P=>{}))}preloadConfig(u,E){return this.preloadingStrategy.preload(E,()=>(E._loadedConfig?(0,V.of)(E._loadedConfig):this.loader.load(u.injector,E)).pipe((0,B.zg)(P=>(E._loadedConfig=P,this.processRoutes(P.module,P.routes)))))}}return g.\u0275fac=function(u){return new(u||g)(a.LFG(Un),a.LFG(a.Sil),a.LFG(a.zs3),a.LFG(Yo))},g.\u0275prov=a.Yz7({token:g,factory:g.\u0275fac}),g})(),Qi=(()=>{class g{constructor(u,E,w={}){this.router=u,this.viewportScroller=E,this.options=w,this.lastId=0,this.lastSource="imperative",this.restoredId=0,this.store={},w.scrollPositionRestoration=w.scrollPositionRestoration||"disabled",w.anchorScrolling=w.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(u=>{u instanceof hn?(this.store[this.lastId]=this.viewportScroller.getScrollPosition(),this.lastSource=u.navigationTrigger,this.restoredId=u.restoredState?u.restoredState.navigationId:0):u instanceof Mt&&(this.lastId=u.id,this.scheduleScrollEvent(u,this.router.parseUrl(u.urlAfterRedirects).fragment))})}consumeScrollEvents(){return this.router.events.subscribe(u=>{u instanceof Re&&(u.position?"top"===this.options.scrollPositionRestoration?this.viewportScroller.scrollToPosition([0,0]):"enabled"===this.options.scrollPositionRestoration&&this.viewportScroller.scrollToPosition(u.position):u.anchor&&"enabled"===this.options.anchorScrolling?this.viewportScroller.scrollToAnchor(u.anchor):"disabled"!==this.options.scrollPositionRestoration&&this.viewportScroller.scrollToPosition([0,0]))})}scheduleScrollEvent(u,E){this.router.triggerEvent(new Re(u,"popstate"===this.lastSource?this.store[this.restoredId]:null,E))}ngOnDestroy(){this.routerEventsSubscription&&this.routerEventsSubscription.unsubscribe(),this.scrollEventsSubscription&&this.scrollEventsSubscription.unsubscribe()}}return g.\u0275fac=function(u){a.$Z()},g.\u0275prov=a.Yz7({token:g,factory:g.\u0275fac}),g})();const js=new a.OlP("ROUTER_CONFIGURATION"),Ks=new a.OlP("ROUTER_FORROOT_GUARD"),Ko=[Vt.Ye,{provide:On,useClass:bn},{provide:Un,useFactory:function Hs(g,d,u,E,w,P,L={},z,De){const Ke=new Un(null,g,d,u,E,w,Qe(P));return z&&(Ke.urlHandlingStrategy=z),De&&(Ke.routeReuseStrategy=De),function Xi(g,d){g.errorHandler&&(d.errorHandler=g.errorHandler),g.malformedUriErrorHandler&&(d.malformedUriErrorHandler=g.malformedUriErrorHandler),g.onSameUrlNavigation&&(d.onSameUrlNavigation=g.onSameUrlNavigation),g.paramsInheritanceStrategy&&(d.paramsInheritanceStrategy=g.paramsInheritanceStrategy),g.relativeLinkResolution&&(d.relativeLinkResolution=g.relativeLinkResolution),g.urlUpdateStrategy&&(d.urlUpdateStrategy=g.urlUpdateStrategy),g.canceledNavigationResolution&&(d.canceledNavigationResolution=g.canceledNavigationResolution)}(L,Ke),L.enableTracing&&Ke.events.subscribe(Ft=>{var et,Lt;null===(et=console.group)||void 0===et||et.call(console,`Router Event: ${Ft.constructor.name}`),console.log(Ft.toString()),console.log(Ft),null===(Lt=console.groupEnd)||void 0===Lt||Lt.call(console)}),Ke},deps:[On,l,Vt.Ye,a.zs3,a.Sil,$r,js,[class Go{},new a.FiY],[class $a{},new a.FiY]]},l,{provide:sn,useFactory:function fi(g){return g.routerState.root},deps:[Un]},qo,di,class qs{preload(d,u){return u().pipe(Ne(()=>(0,V.of)(null)))}},{provide:js,useValue:{enableTracing:!1}}];function Ji(){return new a.PXZ("Router",Un)}let hi=(()=>{class g{constructor(u,E){}static forRoot(u,E){return{ngModule:g,providers:[Ko,Jo(u),{provide:Ks,useFactory:Us,deps:[[Un,new a.FiY,new a.tp0]]},{provide:js,useValue:E||{}},{provide:Vt.S$,useFactory:Qo,deps:[Vt.lw,[new a.tBr(Vt.mr),new a.FiY],js]},{provide:Qi,useFactory:Zo,deps:[Un,Vt.EM,js]},{provide:Yo,useExisting:E&&E.preloadingStrategy?E.preloadingStrategy:di},{provide:a.PXZ,multi:!0,useFactory:Ji},[Xo,{provide:a.ip1,multi:!0,useFactory:ea,deps:[Xo]},{provide:na,useFactory:ta,deps:[Xo]},{provide:a.tb,multi:!0,useExisting:na}]]}}static forChild(u){return{ngModule:g,providers:[Jo(u)]}}}return g.\u0275fac=function(u){return new(u||g)(a.LFG(Ks,8),a.LFG(Un,8))},g.\u0275mod=a.oAB({type:g}),g.\u0275inj=a.cJS({}),g})();function Zo(g,d,u){return u.scrollOffset&&d.setOffset(u.scrollOffset),new Qi(g,d,u)}function Qo(g,d,u={}){return u.useHash?new Vt.Do(g,d):new Vt.b0(g,d)}function Us(g){return"guarded"}function Jo(g){return[{provide:a.deG,multi:!0,useValue:g},{provide:$r,multi:!0,useValue:g}]}let Xo=(()=>{class g{constructor(u){this.injector=u,this.initNavigation=!1,this.destroyed=!1,this.resultOfPreactivationDone=new oe.xQ}appInitializer(){return this.injector.get(Vt.V_,Promise.resolve(null)).then(()=>{if(this.destroyed)return Promise.resolve(!0);let E=null;const w=new Promise(z=>E=z),P=this.injector.get(Un),L=this.injector.get(js);return"disabled"===L.initialNavigation?(P.setUpLocationChangeListener(),E(!0)):"enabled"===L.initialNavigation||"enabledBlocking"===L.initialNavigation?(P.hooks.afterPreactivation=()=>this.initNavigation?(0,V.of)(null):(this.initNavigation=!0,E(!0),this.resultOfPreactivationDone),P.initialNavigation()):E(!0),w})}bootstrapListener(u){const E=this.injector.get(js),w=this.injector.get(qo),P=this.injector.get(Qi),L=this.injector.get(Un),z=this.injector.get(a.z2F);u===z.components[0]&&(("enabledNonBlocking"===E.initialNavigation||void 0===E.initialNavigation)&&L.initialNavigation(),w.setUpPreloading(),P.init(),L.resetRootComponentType(z.componentTypes[0]),this.resultOfPreactivationDone.next(null),this.resultOfPreactivationDone.complete())}ngOnDestroy(){this.destroyed=!0}}return g.\u0275fac=function(u){return new(u||g)(a.LFG(a.zs3))},g.\u0275prov=a.Yz7({token:g,factory:g.\u0275fac}),g})();function ea(g){return g.appInitializer.bind(g)}function ta(g){return g.bootstrapListener.bind(g)}const na=new a.OlP("Router Initializer")}},Ye=>{Ye(Ye.s=8517)}]);