-
Notifications
You must be signed in to change notification settings - Fork 0
/
main.15182dcea57f5b6d.js
1 lines (1 loc) · 270 KB
/
main.15182dcea57f5b6d.js
1
"use strict";(self.webpackChunkblog_new=self.webpackChunkblog_new||[]).push([[179],{645:(We,ce,N)=>{N.d(ce,{Z:()=>E});var w=N(96);let E=(()=>{class oe{constructor(){}getPostDateFormRoute(ye){return/(\d{4}-\d{2}-\d{2})/g.exec(ye)[0]}}return oe.\u0275fac=function(ye){return new(ye||oe)},oe.\u0275prov=w.Yz7({token:oe,factory:oe.\u0275fac,providedIn:"root"}),oe})()},466:(We,ce,N)=>{N.d(ce,{m:()=>ye});var w=N(808),E=N(247),oe=N(101),ue=N(96);let ye=(()=>{class re{}return re.\u0275fac=function(De){return new(De||re)},re.\u0275mod=ue.oAB({type:re}),re.\u0275inj=ue.cJS({imports:[[w.ez,oe.cx,E.Bz]]}),re})()},452:(We,ce,N)=>{var w=N(313),E=N(96),oe=N(247),ue=N(9),ye=N(688),re=N(489),ve=N(826),De=N(54),_e=N(430);class G{constructor(le){this.resultSelector=le}call(le,ae){return ae.subscribe(new Z(le,this.resultSelector))}}class Z extends re.L{constructor(le,ae,et=Object.create(null)){super(le),this.iterators=[],this.active=0,this.resultSelector="function"==typeof ae?ae:null,this.values=et}_next(le){const ae=this.iterators;(0,ye.k)(le)?ae.push(new se(le)):ae.push("function"==typeof le[_e.hZ]?new Q(le[_e.hZ]()):new pe(this.destination,this,le))}_complete(){const le=this.iterators,ae=le.length;if(this.unsubscribe(),0!==ae){this.active=ae;for(let et=0;et<ae;et++){let wt=le[et];wt.stillUnsubscribed?this.destination.add(wt.subscribe(wt,et)):this.active--}}else this.destination.complete()}notifyInactive(){this.active--,0===this.active&&this.destination.complete()}checkIterators(){const le=this.iterators,ae=le.length,et=this.destination;for(let Nt=0;Nt<ae;Nt++){let Bt=le[Nt];if("function"==typeof Bt.hasValue&&!Bt.hasValue())return}let wt=!1;const Et=[];for(let Nt=0;Nt<ae;Nt++){let Bt=le[Nt],mt=Bt.next();if(Bt.hasCompleted()&&(wt=!0),mt.done)return void et.complete();Et.push(mt.value)}this.resultSelector?this._tryresultSelector(Et):et.next(Et),wt&&et.complete()}_tryresultSelector(le){let ae;try{ae=this.resultSelector.apply(this,le)}catch(et){return void this.destination.error(et)}this.destination.next(ae)}}class Q{constructor(le){this.iterator=le,this.nextResult=le.next()}hasValue(){return!0}next(){const le=this.nextResult;return this.nextResult=this.iterator.next(),le}hasCompleted(){const le=this.nextResult;return le&&le.done}}class se{constructor(le){this.array=le,this.index=0,this.length=0,this.length=le.length}[_e.hZ](){return this}next(le){const ae=this.index++;return ae<this.length?{value:this.array[ae],done:!1}:{value:null,done:!0}}hasValue(){return this.array.length>this.index}hasCompleted(){return this.array.length===this.index}}class pe extends ve.L{constructor(le,ae,et){super(le),this.parent=ae,this.observable=et,this.stillUnsubscribed=!0,this.buffer=[],this.isComplete=!1}[_e.hZ](){return this}next(){const le=this.buffer;return 0===le.length&&this.isComplete?{value:null,done:!0}:{value:le.shift(),done:!1}}hasValue(){return this.buffer.length>0}hasCompleted(){return 0===this.buffer.length&&this.isComplete}notifyComplete(){this.buffer.length>0?(this.isComplete=!0,this.parent.notifyInactive()):this.destination.complete()}notifyNext(le,ae,et,wt,Et){this.buffer.push(ae),this.parent.checkIterators()}subscribe(le,ae){return(0,De.D)(this,this.observable,this,ae)}}var V=N(198),Ne=N(850),ot=N(101),Oe=N(645);let be=(()=>{class de{constructor(){}ngOnInit(){}}return de.\u0275fac=function(ae){return new(ae||de)},de.\u0275cmp=E.Xpm({type:de,selectors:[["app-header"]],decls:10,vars:0,consts:[[1,"intro-header",2,"background-image","url('assets/images/bg1920x872.jpg')"],[1,"container"],[1,"row"],[1,"col-lg-8","col-lg-offset-2","col-md-10","col-md-offset-1"],[1,"site-heading"],[1,"small"],[1,"subheading"]],template:function(ae,et){1&ae&&(E.TgZ(0,"header",0),E.TgZ(1,"div",1),E.TgZ(2,"div",2),E.TgZ(3,"div",3),E.TgZ(4,"div",4),E.TgZ(5,"h1"),E._uU(6,"Thomas Blog"),E.qZA(),E._UZ(7,"hr",5),E.TgZ(8,"span",6),E._uU(9,"Learning Code, Writing Code"),E.qZA(),E.qZA(),E.qZA(),E.qZA(),E.qZA(),E.qZA())},styles:[""]}),de})();var lt=N(808);const en=function(de){return[de]};function bt(de,le){if(1&de&&(E.TgZ(0,"div"),E.TgZ(1,"div",4),E.TgZ(2,"a",5),E.TgZ(3,"h2",6),E._uU(4),E.qZA(),E.qZA(),E.TgZ(5,"p",7),E._uU(6),E.qZA(),E.qZA(),E._UZ(7,"hr"),E.qZA()),2&de){const ae=le.$implicit;E.xp6(2),E.Q6J("routerLink",E.VKq(3,en,ae.route)),E.xp6(2),E.hij(" ",ae.title," "),E.xp6(2),E.hij("on ",ae.date,"")}}let ms=(()=>{class de{constructor(ae,et,wt,Et){this.scullyService=ae,this.route=et,this.router=wt,this.blogService=Et,this.itemCount=0,this.router.events.pipe((0,V.h)(Nt=>Nt instanceof oe.m2)).subscribe(()=>{this.loadData()})}ngOnInit(){}loadData(){this.links$=function(...de){const le=de[de.length-1];return"function"==typeof le&&de.pop(),(0,ue.n)(de,void 0).lift(new G(le))}(this.scullyService.available$,this.route.queryParams).pipe((0,Ne.U)(([et,wt])=>{this.page=parseInt(wt.page||1,10);const Et=et.filter(Nt=>!!Nt.title).reverse();return Et.forEach(Nt=>Nt.date=this.blogService.getPostDateFormRoute(Nt.route)),this.itemCount=Et.length,Et}))}previous(){let ae=this.page-1;0===ae&&(ae=1),this.router.navigate(["/"],{queryParams:{page:ae},replaceUrl:!0})}next(){this.router.navigate(["/"],{queryParams:{page:this.page+1},replaceUrl:!0})}}return de.\u0275fac=function(ae){return new(ae||de)(E.Y36(ot.sG),E.Y36(oe.gz),E.Y36(oe.F0),E.Y36(Oe.Z))},de.\u0275cmp=E.Xpm({type:de,selectors:[["app-home"]],decls:7,vars:3,consts:[[1,"container"],[1,"row"],[1,"col-lg-8","col-lg-offset-2","col-md-10","col-md-offset-1"],[4,"ngFor","ngForOf"],[1,"post-preview"],[3,"routerLink"],[1,"post-title"],[1,"post-meta"]],template:function(ae,et){1&ae&&(E.TgZ(0,"div"),E._UZ(1,"app-header"),E.TgZ(2,"div",0),E.TgZ(3,"div",1),E.TgZ(4,"div",2),E.YNc(5,bt,8,5,"div",3),E.ALo(6,"async"),E.qZA(),E.qZA(),E.qZA(),E.qZA()),2&ae&&(E.xp6(5),E.Q6J("ngForOf",E.lcZ(6,1,et.links$)))},directives:[be,lt.sg,oe.yS],pipes:[lt.Ov],styles:[".d-none[_ngcontent-%COMP%]{display:none}"]}),de})(),kn=(()=>{class de{constructor(){}ngOnInit(){}}return de.\u0275fac=function(ae){return new(ae||de)},de.\u0275cmp=E.Xpm({type:de,selectors:[["app-skill-tree"]],decls:31,vars:0,consts:[[1,"skill"],[1,"progress-wrap"],[1,"progress"],["role","progressbar","aria-valuenow","40","aria-valuemin","0","aria-valuemax","100",1,"progress-bar","color1",2,"width","99%"],[1,"bar-width"],["role","progressbar","aria-valuenow","80","aria-valuemin","0","aria-valuemax","100",1,"progress-bar","color4",2,"width","95%"],["role","progressbar","aria-valuenow","20","aria-valuemin","0","aria-valuemax","100",1,"progress-bar","color2",2,"width","95%"],["role","progressbar","aria-valuenow","60","aria-valuemin","0","aria-valuemax","100",1,"progress-bar","color3",2,"width","70%"]],template:function(ae,et){1&ae&&(E.TgZ(0,"div",0),E.TgZ(1,"h2"),E._uU(2,"My Skills"),E.qZA(),E.TgZ(3,"div",1),E.TgZ(4,"h3"),E._uU(5,"C#"),E.qZA(),E.TgZ(6,"div",2),E.TgZ(7,"div",3),E.TgZ(8,"span",4),E._uU(9,"99%"),E.qZA(),E.qZA(),E.qZA(),E.qZA(),E.TgZ(10,"div",1),E.TgZ(11,"h3"),E._uU(12,"JavaScript"),E.qZA(),E.TgZ(13,"div",2),E.TgZ(14,"div",5),E.TgZ(15,"span",4),E._uU(16,"95%"),E.qZA(),E.qZA(),E.qZA(),E.qZA(),E.TgZ(17,"div",1),E.TgZ(18,"h3"),E._uU(19,"Angular"),E.qZA(),E.TgZ(20,"div",2),E.TgZ(21,"div",6),E.TgZ(22,"span",4),E._uU(23,"95%"),E.qZA(),E.qZA(),E.qZA(),E.qZA(),E.TgZ(24,"div",1),E.TgZ(25,"h3"),E._uU(26,"Vue.js"),E.qZA(),E.TgZ(27,"div",2),E.TgZ(28,"div",7),E.TgZ(29,"span",4),E._uU(30,"70%"),E.qZA(),E.qZA(),E.qZA(),E.qZA(),E.qZA())},styles:['.skill[_ngcontent-%COMP%] h2[_ngcontent-%COMP%]{margin-bottom:25px}.progress-wrap[_ngcontent-%COMP%]{position:relative}.progress[_ngcontent-%COMP%] .color1[_ngcontent-%COMP%], .progress[_ngcontent-%COMP%] .color1[_ngcontent-%COMP%] .bar-width[_ngcontent-%COMP%]{background:#2d7da4}.progress[_ngcontent-%COMP%] .color2[_ngcontent-%COMP%], .progress[_ngcontent-%COMP%] .color2[_ngcontent-%COMP%] .bar-width[_ngcontent-%COMP%]{background:#6aa42f}.progress[_ngcontent-%COMP%] .color3[_ngcontent-%COMP%], .progress[_ngcontent-%COMP%] .color3[_ngcontent-%COMP%] .bar-width[_ngcontent-%COMP%]{background:#ffcc33}.progress[_ngcontent-%COMP%] .color4[_ngcontent-%COMP%], .progress[_ngcontent-%COMP%] .color4[_ngcontent-%COMP%] .bar-width[_ngcontent-%COMP%]{background:#db3615}.progress[_ngcontent-%COMP%], .progress-bar[_ngcontent-%COMP%]{height:15px;line-height:15px;background:#e6e6e6;box-shadow:none;border-radius:0;overflow:visible;text-align:right}.progress[_ngcontent-%COMP%]{position:relative}.progress[_ngcontent-%COMP%] .bar-width[_ngcontent-%COMP%]{position:absolute;width:40px;height:20px;line-height:20px;text-align:center;font-size:12px;font-weight:700;top:-30px;border-radius:2px;margin-left:-30px}.progress[_ngcontent-%COMP%] span[_ngcontent-%COMP%]{position:relative}.progress[_ngcontent-%COMP%] span[_ngcontent-%COMP%]:before{content:" ";position:absolute;width:auto;height:auto;border-width:8px 5px;border-style:solid;bottom:-15px;right:8px}.progress[_ngcontent-%COMP%] .color1[_ngcontent-%COMP%] span[_ngcontent-%COMP%]:before{border-color:#2d7da4 transparent transparent transparent}.progress[_ngcontent-%COMP%] .color2[_ngcontent-%COMP%] span[_ngcontent-%COMP%]:before{border-color:#6aa42f transparent transparent transparent}.progress[_ngcontent-%COMP%] .color3[_ngcontent-%COMP%] span[_ngcontent-%COMP%]:before{border-color:#ffcc33 transparent transparent transparent}.progress[_ngcontent-%COMP%] .color4[_ngcontent-%COMP%] span[_ngcontent-%COMP%]:before{border-color:#db3615 transparent transparent transparent}']}),de})();const Ge=[{path:"",component:ms},{path:"about",component:(()=>{class de{constructor(){}ngOnInit(){}}return de.\u0275fac=function(ae){return new(ae||de)},de.\u0275cmp=E.Xpm({type:de,selectors:[["app-about"]],decls:12,vars:0,consts:[[1,"container"],[1,"row"],[1,"col-lg-8","col-lg-offset-2","col-md-10","col-md-offset-1"]],template:function(ae,et){1&ae&&(E.TgZ(0,"div"),E._UZ(1,"app-header"),E.TgZ(2,"div",0),E.TgZ(3,"div",1),E.TgZ(4,"div",2),E.TgZ(5,"p"),E._uU(6," \u6211\u4e00\u76f4\u5f9e\u4e8b\u7684\u90fd\u662f\u7db2\u9801\u958b\u767c\u7684\u5de5\u4f5c\uff0c\u4e5f\u5c31\u662fWeb Develper\uff0c\u4e00\u958b\u59cb\u662f\u5f9e\u5f8c\u7aef\u8d77\u5bb6\uff0c\u6700\u5148\u63a5\u89f8\u7684\u662f.Net\uff0cC#\u53caVB.net\u90fd\u6709\u4f7f\u7528\u904e\uff0c\u9019\u5e7e\u5e74\u958b\u59cb\u504f\u5411\u524d\u7aef\uff0c\u5c0dJavaScript\u611f\u8208\u8da3\uff0c\u96a8\u8457Node.js\u7684\u63a8\u51fa\uff0c\u4e4b\u5f8cAngular\u53cavue.js\u7684\u51fa\u73fe\uff0c\u6f38\u6f38\u5730\u524d\u5f8c\u7aef\u90fd\u662f\u4f7f\u7528JavaScript\u958b\u767c\u3002 "),E.qZA(),E.TgZ(7,"p"),E._uU(8," \u672cBlog\u4e3b\u8981\u6703\u5beb\u4e00\u4e9b\u7a0b\u5f0f\u7684\u5b78\u7fd2\u7b46\u8a18\u53ca\u958b\u767c\u7d93\u9a57\u8ac7\u3002 "),E.qZA(),E.qZA(),E.qZA(),E.TgZ(9,"div",1),E.TgZ(10,"div",2),E._UZ(11,"app-skill-tree"),E.qZA(),E.qZA(),E.qZA(),E.qZA())},directives:[be,kn],styles:[""]}),de})()},{path:"blog",loadChildren:()=>N.e(320).then(N.bind(N,320)).then(de=>de.BlogModule)}];let ee=(()=>{class de{}return de.\u0275fac=function(ae){return new(ae||de)},de.\u0275mod=E.oAB({type:de}),de.\u0275inj=E.cJS({imports:[[oe.Bz.forRoot(Ge,{relativeLinkResolution:"legacy"})],oe.Bz]}),de})();const He=function(){return["/"]},Ee=function(){return["/about"]};let Xe=(()=>{class de{constructor(){}ngOnInit(){}}return de.\u0275fac=function(ae){return new(ae||de)},de.\u0275cmp=E.Xpm({type:de,selectors:[["app-blog-nav"]],decls:21,vars:6,consts:[[1,"navbar","navbar-default","navbar-custom","navbar-fixed-top"],[1,"container-fluid"],[1,"navbar-header","page-scroll"],["type","button","data-toggle","collapse","data-target","#bs-example-navbar-collapse-1",1,"navbar-toggle"],[1,"sr-only"],[1,"fa","fa-bars"],[1,"navbar-brand",3,"routerLink"],["id","bs-example-navbar-collapse-1",1,"collapse","navbar-collapse"],[1,"nav","navbar-nav","navbar-right"],[3,"routerLink"],["href","https://thomascsd.github.io/repos/","target","_blank"]],template:function(ae,et){1&ae&&(E.TgZ(0,"nav",0),E.TgZ(1,"div",1),E.TgZ(2,"div",2),E.TgZ(3,"button",3),E.TgZ(4,"span",4),E._uU(5,"Toggle navigation"),E.qZA(),E._uU(6," Menu "),E._UZ(7,"i",5),E.qZA(),E.TgZ(8,"a",6),E._uU(9,"Thomas Blog"),E.qZA(),E.qZA(),E.TgZ(10,"div",7),E.TgZ(11,"ul",8),E.TgZ(12,"li"),E.TgZ(13,"a",9),E._uU(14,"Blog"),E.qZA(),E.qZA(),E.TgZ(15,"li"),E.TgZ(16,"a",10),E._uU(17,"Repos"),E.qZA(),E.qZA(),E.TgZ(18,"li"),E.TgZ(19,"a",9),E._uU(20,"About"),E.qZA(),E.qZA(),E.qZA(),E.qZA(),E.qZA(),E.qZA()),2&ae&&(E.xp6(8),E.Q6J("routerLink",E.DdM(3,He)),E.xp6(5),E.Q6J("routerLink",E.DdM(4,He)),E.xp6(6),E.Q6J("routerLink",E.DdM(5,Ee)))},directives:[oe.yS],styles:[""]}),de})(),he=(()=>{class de{constructor(){}ngOnInit(){}}return de.\u0275fac=function(ae){return new(ae||de)},de.\u0275cmp=E.Xpm({type:de,selectors:[["app-footer"]],decls:16,vars:0,consts:[[1,"container"],[1,"row"],[1,"col-lg-8","col-lg-offset-2","col-md-10","col-md-offset-1"],[1,"list-inline","text-center"],["href","https://www.twitter.com/thomascsd"],[1,"fa-stack","fa-lg"],[1,"fa","fa-circle","fa-stack-2x"],[1,"fa","fa-twitter","fa-stack-1x","fa-inverse"],["href","https://github.com/thomascsd"],[1,"fa","fa-github","fa-stack-1x","fa-inverse"],[1,"copyright","text-muted"]],template:function(ae,et){1&ae&&(E.TgZ(0,"footer"),E.TgZ(1,"div",0),E.TgZ(2,"div",1),E.TgZ(3,"div",2),E.TgZ(4,"ul",3),E.TgZ(5,"li"),E.TgZ(6,"a",4),E.TgZ(7,"span",5),E._UZ(8,"i",6),E._UZ(9,"i",7),E.qZA(),E.qZA(),E.qZA(),E.TgZ(10,"li"),E.TgZ(11,"a",8),E.TgZ(12,"span",5),E._UZ(13,"i",6),E._UZ(14,"i",9),E.qZA(),E.qZA(),E.qZA(),E.qZA(),E._UZ(15,"p",10),E.qZA(),E.qZA(),E.qZA(),E.qZA())},styles:[""]}),de})(),Br=(()=>{class de{constructor(ae,et){this.router=ae,this.metaService=et}ngOnInit(){this.metaService.addTags([{name:"keywords",content:"JavaScript Node.js Express.js TypeScript C# .NET Blog"},{name:"description",content:"JavaScript And .NET Blog"}]),this.router.events.subscribe(ae=>{ae instanceof oe.m2&>ag("event","page_view",ae.url)})}}return de.\u0275fac=function(ae){return new(ae||de)(E.Y36(oe.F0),E.Y36(w.h_))},de.\u0275cmp=E.Xpm({type:de,selectors:[["app-root"]],decls:5,vars:0,template:function(ae,et){1&ae&&(E.TgZ(0,"div"),E._UZ(1,"app-blog-nav"),E._UZ(2,"router-outlet"),E._UZ(3,"hr"),E._UZ(4,"app-footer"),E.qZA())},directives:[Xe,oe.lC,he],styles:[""]}),de})();var Kt=N(466);let Zn=(()=>{class de{}return de.\u0275fac=function(ae){return new(ae||de)},de.\u0275mod=E.oAB({type:de,bootstrap:[Br]}),de.\u0275inj=E.cJS({providers:[],imports:[[w.b2,ee,ot.cx,Kt.m]]}),de})();(0,E.G48)(),w.q6().bootstrapModule(Zn).catch(de=>console.error(de))},101:(We,ce,N)=>{function De(f,h,c,D){return new(c||(c=Promise))(function(M,k){function J(Te){try{z(D.next(Te))}catch(Qe){k(Qe)}}function ne(Te){try{z(D.throw(Te))}catch(Qe){k(Qe)}}function z(Te){Te.done?M(Te.value):function(M){return M instanceof c?M:new c(function(k){k(M)})}(Te.value).then(J,ne)}z((D=D.apply(f,h||[])).next())})}N.d(ce,{zS:()=>Ri,cx:()=>$s,sG:()=>mr});var Ge=N(808),ee=N(96),He=N(247);function Ee(f){return"function"==typeof f}function Xe(f){const c=f(D=>{Error.call(D),D.stack=(new Error).stack});return c.prototype=Object.create(Error.prototype),c.prototype.constructor=c,c}const he=Xe(f=>function(c){f(this),this.message=c?`${c.length} errors occurred during unsubscription:\n${c.map((D,C)=>`${C+1}) ${D.toString()}`).join("\n ")}`:"",this.name="UnsubscriptionError",this.errors=c});function Br(f,h){if(f){const c=f.indexOf(h);0<=c&&f.splice(c,1)}}class Kt{constructor(h){this.initialTeardown=h,this.closed=!1,this._parentage=null,this._teardowns=null}unsubscribe(){let h;if(!this.closed){this.closed=!0;const{_parentage:c}=this;if(c)if(this._parentage=null,Array.isArray(c))for(const M of c)M.remove(this);else c.remove(this);const{initialTeardown:D}=this;if(Ee(D))try{D()}catch(M){h=M instanceof he?M.errors:[M]}const{_teardowns:C}=this;if(C){this._teardowns=null;for(const M of C)try{de(M)}catch(k){h=null!=h?h:[],k instanceof he?h=[...h,...k.errors]:h.push(k)}}if(h)throw new he(h)}}add(h){var c;if(h&&h!==this)if(this.closed)de(h);else{if(h instanceof Kt){if(h.closed||h._hasParent(this))return;h._addParent(this)}(this._teardowns=null!==(c=this._teardowns)&&void 0!==c?c:[]).push(h)}}_hasParent(h){const{_parentage:c}=this;return c===h||Array.isArray(c)&&c.includes(h)}_addParent(h){const{_parentage:c}=this;this._parentage=Array.isArray(c)?(c.push(h),c):c?[c,h]:h}_removeParent(h){const{_parentage:c}=this;c===h?this._parentage=null:Array.isArray(c)&&Br(c,h)}remove(h){const{_teardowns:c}=this;c&&Br(c,h),h instanceof Kt&&h._removeParent(this)}}Kt.EMPTY=(()=>{const f=new Kt;return f.closed=!0,f})();const Zn=Kt.EMPTY;function on(f){return f instanceof Kt||f&&"closed"in f&&Ee(f.remove)&&Ee(f.add)&&Ee(f.unsubscribe)}function de(f){Ee(f)?f():f.unsubscribe()}const le={onUnhandledError:null,onStoppedNotification:null,Promise:void 0,useDeprecatedSynchronousErrorHandling:!1,useDeprecatedNextContext:!1},ae={setTimeout(...f){const{delegate:h}=ae;return((null==h?void 0:h.setTimeout)||setTimeout)(...f)},clearTimeout(f){const{delegate:h}=ae;return((null==h?void 0:h.clearTimeout)||clearTimeout)(f)},delegate:void 0};function et(f){ae.setTimeout(()=>{const{onUnhandledError:h}=le;if(!h)throw f;h(f)})}function wt(){}const Et=mt("C",void 0,void 0);function mt(f,h,c){return{kind:f,value:h,error:c}}let tt=null;function Ur(f){if(le.useDeprecatedSynchronousErrorHandling){const h=!tt;if(h&&(tt={errorThrown:!1,error:null}),f(),h){const{errorThrown:c,error:D}=tt;if(tt=null,c)throw D}}else f()}class _r extends Kt{constructor(h){super(),this.isStopped=!1,h?(this.destination=h,on(h)&&h.add(this)):this.destination=ys}static create(h,c,D){return new kt(h,c,D)}next(h){this.isStopped?An(mt("N",h,void 0),this):this._next(h)}error(h){this.isStopped?An(mt("E",void 0,h),this):(this.isStopped=!0,this._error(h))}complete(){this.isStopped?An(Et,this):(this.isStopped=!0,this._complete())}unsubscribe(){this.closed||(this.isStopped=!0,super.unsubscribe(),this.destination=null)}_next(h){this.destination.next(h)}_error(h){try{this.destination.error(h)}finally{this.unsubscribe()}}_complete(){try{this.destination.complete()}finally{this.unsubscribe()}}}class kt extends _r{constructor(h,c,D){let C;if(super(),Ee(h))C=h;else if(h){let M;({next:C,error:c,complete:D}=h),this&&le.useDeprecatedNextContext?(M=Object.create(h),M.unsubscribe=()=>this.unsubscribe()):M=h,C=null==C?void 0:C.bind(M),c=null==c?void 0:c.bind(M),D=null==D?void 0:D.bind(M)}this.destination={next:C?Cr(C):wt,error:Cr(null!=c?c:Wn),complete:D?Cr(D):wt}}}function Cr(f,h){return(...c)=>{try{f(...c)}catch(D){le.useDeprecatedSynchronousErrorHandling?function(f){le.useDeprecatedSynchronousErrorHandling&&tt&&(tt.errorThrown=!0,tt.error=f)}(D):et(D)}}}function Wn(f){throw f}function An(f,h){const{onStoppedNotification:c}=le;c&&ae.setTimeout(()=>c(f,h))}const ys={closed:!0,next:wt,error:Wn,complete:wt},Wt="function"==typeof Symbol&&Symbol.observable||"@@observable";function _n(f){return f}let St=(()=>{class f{constructor(c){c&&(this._subscribe=c)}lift(c){const D=new f;return D.source=this,D.operator=c,D}subscribe(c,D,C){const M=function(f){return f&&f instanceof _r||function(f){return f&&Ee(f.next)&&Ee(f.error)&&Ee(f.complete)}(f)&&on(f)}(c)?c:new kt(c,D,C);return Ur(()=>{const{operator:k,source:J}=this;M.add(k?k.call(M,J):J?this._subscribe(M):this._trySubscribe(M))}),M}_trySubscribe(c){try{return this._subscribe(c)}catch(D){c.error(D)}}forEach(c,D){return new(D=Vr(D))((C,M)=>{let k;k=this.subscribe(J=>{try{c(J)}catch(ne){M(ne),null==k||k.unsubscribe()}},M,C)})}_subscribe(c){var D;return null===(D=this.source)||void 0===D?void 0:D.subscribe(c)}[Wt](){return this}pipe(...c){return function(f){return 0===f.length?_n:1===f.length?f[0]:function(c){return f.reduce((D,C)=>C(D),c)}}(c)(this)}toPromise(c){return new(c=Vr(c))((D,C)=>{let M;this.subscribe(k=>M=k,k=>C(k),()=>D(M))})}}return f.create=h=>new f(h),f})();function Vr(f){var h;return null!==(h=null!=f?f:le.Promise)&&void 0!==h?h:Promise}const Tt=Xe(f=>function(){f(this),this.name="ObjectUnsubscribedError",this.message="object unsubscribed"});let Ie=(()=>{class f extends St{constructor(){super(),this.closed=!1,this.observers=[],this.isStopped=!1,this.hasError=!1,this.thrownError=null}lift(c){const D=new Me(this,this);return D.operator=c,D}_throwIfClosed(){if(this.closed)throw new Tt}next(c){Ur(()=>{if(this._throwIfClosed(),!this.isStopped){const D=this.observers.slice();for(const C of D)C.next(c)}})}error(c){Ur(()=>{if(this._throwIfClosed(),!this.isStopped){this.hasError=this.isStopped=!0,this.thrownError=c;const{observers:D}=this;for(;D.length;)D.shift().error(c)}})}complete(){Ur(()=>{if(this._throwIfClosed(),!this.isStopped){this.isStopped=!0;const{observers:c}=this;for(;c.length;)c.shift().complete()}})}unsubscribe(){this.isStopped=this.closed=!0,this.observers=null}get observed(){var c;return(null===(c=this.observers)||void 0===c?void 0:c.length)>0}_trySubscribe(c){return this._throwIfClosed(),super._trySubscribe(c)}_subscribe(c){return this._throwIfClosed(),this._checkFinalizedStatuses(c),this._innerSubscribe(c)}_innerSubscribe(c){const{hasError:D,isStopped:C,observers:M}=this;return D||C?Zn:(M.push(c),new Kt(()=>Br(M,c)))}_checkFinalizedStatuses(c){const{hasError:D,thrownError:C,isStopped:M}=this;D?c.error(C):M&&c.complete()}asObservable(){const c=new St;return c.source=this,c}}return f.create=(h,c)=>new Me(h,c),f})();class Me extends Ie{constructor(h,c){super(),this.destination=h,this.source=c}next(h){var c,D;null===(D=null===(c=this.destination)||void 0===c?void 0:c.next)||void 0===D||D.call(c,h)}error(h){var c,D;null===(D=null===(c=this.destination)||void 0===c?void 0:c.error)||void 0===D||D.call(c,h)}complete(){var h,c;null===(c=null===(h=this.destination)||void 0===h?void 0:h.complete)||void 0===c||c.call(h)}_subscribe(h){var c,D;return null!==(D=null===(c=this.source)||void 0===c?void 0:c.subscribe(h))&&void 0!==D?D:Zn}}class or extends Ie{constructor(h){super(),this._value=h}get value(){return this.getValue()}_subscribe(h){const c=super._subscribe(h);return!c.closed&&h.next(this._value),c}getValue(){const{hasError:h,thrownError:c,_value:D}=this;if(h)throw c;return this._throwIfClosed(),D}next(h){super.next(this._value=h)}}function nt(f){return h=>{if(function(f){return Ee(null==f?void 0:f.lift)}(h))return h.lift(function(c){try{return f(c,this)}catch(D){this.error(D)}});throw new TypeError("Unable to lift unknown Observable type")}}class ze extends _r{constructor(h,c,D,C,M){super(h),this.onFinalize=M,this._next=c?function(k){try{c(k)}catch(J){h.error(J)}}:super._next,this._error=C?function(k){try{C(k)}catch(J){h.error(J)}finally{this.unsubscribe()}}:super._error,this._complete=D?function(){try{D()}catch(k){h.error(k)}finally{this.unsubscribe()}}:super._complete}unsubscribe(){var h;const{closed:c}=this;super.unsubscribe(),!c&&(null===(h=this.onFinalize)||void 0===h||h.call(this))}}function Lt(f,h){return nt((c,D)=>{let C=0;c.subscribe(new ze(D,M=>f.call(h,M,C++)&&D.next(M)))})}function B(f){return this instanceof B?(this.v=f,this):new B(f)}function L(f,h,c){if(!Symbol.asyncIterator)throw new TypeError("Symbol.asyncIterator is not defined.");var C,D=c.apply(f,h||[]),M=[];return C={},k("next"),k("throw"),k("return"),C[Symbol.asyncIterator]=function(){return this},C;function k(xe){D[xe]&&(C[xe]=function(Se){return new Promise(function(Je,Ft){M.push([xe,Se,Je,Ft])>1||J(xe,Se)})})}function J(xe,Se){try{!function(xe){xe.value instanceof B?Promise.resolve(xe.value.v).then(z,Te):Qe(M[0][2],xe)}(D[xe](Se))}catch(Je){Qe(M[0][3],Je)}}function z(xe){J("next",xe)}function Te(xe){J("throw",xe)}function Qe(xe,Se){xe(Se),M.shift(),M.length&&J(M[0][0],M[0][1])}}function U(f){if(!Symbol.asyncIterator)throw new TypeError("Symbol.asyncIterator is not defined.");var c,h=f[Symbol.asyncIterator];return h?h.call(f):(f=function(f){var h="function"==typeof Symbol&&Symbol.iterator,c=h&&f[h],D=0;if(c)return c.call(f);if(f&&"number"==typeof f.length)return{next:function(){return f&&D>=f.length&&(f=void 0),{value:f&&f[D++],done:!f}}};throw new TypeError(h?"Object is not iterable.":"Symbol.iterator is not defined.")}(f),c={},D("next"),D("throw"),D("return"),c[Symbol.asyncIterator]=function(){return this},c);function D(M){c[M]=f[M]&&function(k){return new Promise(function(J,ne){!function(M,k,J,ne){Promise.resolve(ne).then(function(z){M({value:z,done:J})},k)}(J,ne,(k=f[M](k)).done,k.value)})}}}const tn=f=>f&&"number"==typeof f.length&&"function"!=typeof f;function wr(f){return Ee(null==f?void 0:f.then)}function Ht(f){return Ee(f[Wt])}function hn(f){return Symbol.asyncIterator&&Ee(null==f?void 0:f[Symbol.asyncIterator])}function Yn(f){return new TypeError(`You provided ${null!==f&&"object"==typeof f?"an invalid object":`'${f}'`} where a stream was expected. You can provide an Observable, Promise, ReadableStream, Array, AsyncIterable, or Iterable.`)}const nn="function"==typeof Symbol&&Symbol.iterator?Symbol.iterator:"@@iterator";function ur(f){return Ee(null==f?void 0:f[nn])}function lr(f){return L(this,arguments,function*(){const c=f.getReader();try{for(;;){const{value:D,done:C}=yield B(c.read());if(C)return yield B(void 0);yield yield B(D)}}finally{c.releaseLock()}})}function cr(f){return Ee(null==f?void 0:f.getReader)}function Qt(f){if(f instanceof St)return f;if(null!=f){if(Ht(f))return function(f){return new St(h=>{const c=f[Wt]();if(Ee(c.subscribe))return c.subscribe(h);throw new TypeError("Provided object does not correctly implement Symbol.observable")})}(f);if(tn(f))return function(f){return new St(h=>{for(let c=0;c<f.length&&!h.closed;c++)h.next(f[c]);h.complete()})}(f);if(wr(f))return function(f){return new St(h=>{f.then(c=>{h.closed||(h.next(c),h.complete())},c=>h.error(c)).then(null,et)})}(f);if(hn(f))return Ze(f);if(ur(f))return function(f){return new St(h=>{for(const c of f)if(h.next(c),h.closed)return;h.complete()})}(f);if(cr(f))return function(f){return Ze(lr(f))}(f)}throw Yn(f)}function Ze(f){return new St(h=>{(function(f,h){var c,D,C,M;return function(f,h,c,D){return new(c||(c=Promise))(function(M,k){function J(Te){try{z(D.next(Te))}catch(Qe){k(Qe)}}function ne(Te){try{z(D.throw(Te))}catch(Qe){k(Qe)}}function z(Te){Te.done?M(Te.value):function(M){return M instanceof c?M:new c(function(k){k(M)})}(Te.value).then(J,ne)}z((D=D.apply(f,h||[])).next())})}(this,void 0,void 0,function*(){try{for(c=U(f);!(D=yield c.next()).done;)if(h.next(D.value),h.closed)return}catch(k){C={error:k}}finally{try{D&&!D.done&&(M=c.return)&&(yield M.call(c))}finally{if(C)throw C.error}}h.complete()})})(f,h).catch(c=>h.error(c))})}function je(f,h){return nt((c,D)=>{let C=null,M=0,k=!1;const J=()=>k&&!C&&D.complete();c.subscribe(new ze(D,ne=>{null==C||C.unsubscribe();let z=0;const Te=M++;Qt(f(ne,Te)).subscribe(C=new ze(D,Qe=>D.next(h?h(ne,Qe,Te,z++):Qe),()=>{C=null,J()}))},()=>{k=!0,J()}))})}const It=new St(wt);function dr(f){return f[f.length-1]}function Ve(f){return function(f){return f&&Ee(f.schedule)}(dr(f))?f.pop():void 0}function zt(f,h,c,D=0,C=!1){const M=h.schedule(function(){c(),C?f.add(this.schedule(null,D)):this.unsubscribe()},D);if(f.add(M),!C)return M}function wn(f,h=0){return nt((c,D)=>{c.subscribe(new ze(D,C=>zt(D,f,()=>D.next(C),h),()=>zt(D,f,()=>D.complete(),h),C=>zt(D,f,()=>D.error(C),h)))})}function jn(f,h=0){return nt((c,D)=>{D.add(f.schedule(()=>c.subscribe(D),h))})}function dt(f,h){if(!f)throw new Error("Iterable cannot be null");return new St(c=>{zt(c,h,()=>{const D=f[Symbol.asyncIterator]();zt(c,h,()=>{D.next().then(C=>{C.done?c.complete():c.next(C.value)})},0,!0)})})}function Pt(f,h){return h?function(f,h){if(null!=f){if(Ht(f))return function(f,h){return Qt(f).pipe(jn(h),wn(h))}(f,h);if(tn(f))return function(f,h){return new St(c=>{let D=0;return h.schedule(function(){D===f.length?c.complete():(c.next(f[D++]),c.closed||this.schedule())})})}(f,h);if(wr(f))return function(f,h){return Qt(f).pipe(jn(h),wn(h))}(f,h);if(hn(f))return dt(f,h);if(ur(f))return function(f,h){return new St(c=>{let D;return zt(c,h,()=>{D=f[nn](),zt(c,h,()=>{let C,M;try{({value:C,done:M}=D.next())}catch(k){return void c.error(k)}M?c.complete():c.next(C)},0,!0)}),()=>Ee(null==D?void 0:D.return)&&D.return()})}(f,h);if(cr(f))return function(f,h){return dt(lr(f),h)}(f,h)}throw Yn(f)}(f,h):Qt(f)}function Jt(...f){return Pt(f,Ve(f))}function En(f,h,c){const D=Ee(f)||h||c?{next:f,error:h,complete:c}:f;return D?nt((C,M)=>{var k;null===(k=D.subscribe)||void 0===k||k.call(D);let J=!0;C.subscribe(new ze(M,ne=>{var z;null===(z=D.next)||void 0===z||z.call(D,ne),M.next(ne)},()=>{var ne;J=!1,null===(ne=D.complete)||void 0===ne||ne.call(D),M.complete()},ne=>{var z;J=!1,null===(z=D.error)||void 0===z||z.call(D,ne),M.error(ne)},()=>{var ne,z;J&&(null===(ne=D.unsubscribe)||void 0===ne||ne.call(D)),null===(z=D.finalize)||void 0===z||z.call(D)}))}):_n}const fr=Xe(f=>function(){f(this),this.name="EmptyError",this.message="no elements in sequence"}),hr=new St(f=>f.complete());function ri(f){return f<=0?()=>hr:nt((h,c)=>{let D=0;h.subscribe(new ze(c,C=>{++D<=f&&(c.next(C),f<=D&&c.complete())}))})}function Os(f){return nt((h,c)=>{let D=!1;h.subscribe(new ze(c,C=>{D=!0,c.next(C)},()=>{D||c.next(f),c.complete()}))})}function bs(f=Ps){return nt((h,c)=>{let D=!1;h.subscribe(new ze(c,C=>{D=!0,c.next(C)},()=>D?c.complete():c.error(f())))})}function Ps(){return new fr}function pn(f,h){return nt((c,D)=>{let C=0;c.subscribe(new ze(D,M=>{D.next(f.call(h,M,C++))}))})}const Fs={now:()=>(Fs.delegate||Date).now(),delegate:void 0};class Ns extends Ie{constructor(h=1/0,c=1/0,D=Fs){super(),this._bufferSize=h,this._windowTime=c,this._timestampProvider=D,this._buffer=[],this._infiniteTimeWindow=!0,this._infiniteTimeWindow=c===1/0,this._bufferSize=Math.max(1,h),this._windowTime=Math.max(1,c)}next(h){const{isStopped:c,_buffer:D,_infiniteTimeWindow:C,_timestampProvider:M,_windowTime:k}=this;c||(D.push(h),!C&&D.push(M.now()+k)),this._trimBuffer(),super.next(h)}_subscribe(h){this._throwIfClosed(),this._trimBuffer();const c=this._innerSubscribe(h),{_infiniteTimeWindow:D,_buffer:C}=this,M=C.slice();for(let k=0;k<M.length&&!h.closed;k+=D?1:2)h.next(M[k]);return this._checkFinalizedStatuses(h),c}_trimBuffer(){const{_bufferSize:h,_timestampProvider:c,_buffer:D,_infiniteTimeWindow:C}=this,M=(C?1:2)*h;if(h<1/0&&M<D.length&&D.splice(0,D.length-M),!C){const k=c.now();let J=0;for(let ne=1;ne<D.length&&D[ne]<=k;ne+=2)J=ne;J&&D.splice(0,J+1)}}}function Un(f,h,...c){return!0===h?(f(),null):!1===h?null:h(...c).pipe(ri(1)).subscribe(()=>f())}function Tr(f,h,c){var D,C;let M,k=!1;return f&&"object"==typeof f?(M=null!==(D=f.bufferSize)&&void 0!==D?D:1/0,h=null!==(C=f.windowTime)&&void 0!==C?C:1/0,k=!!f.refCount,c=f.scheduler):M=null!=f?f:1/0,function(f={}){const{connector:h=(()=>new Ie),resetOnError:c=!0,resetOnComplete:D=!0,resetOnRefCountZero:C=!0}=f;return M=>{let k=null,J=null,ne=null,z=0,Te=!1,Qe=!1;const xe=()=>{null==J||J.unsubscribe(),J=null},Se=()=>{xe(),k=ne=null,Te=Qe=!1},Je=()=>{const Ft=k;Se(),null==Ft||Ft.unsubscribe()};return nt((Ft,zn)=>{z++,!Qe&&!Te&&xe();const st=ne=null!=ne?ne:h();zn.add(()=>{z--,0===z&&!Qe&&!Te&&(J=Un(Je,C))}),st.subscribe(zn),k||(k=new kt({next:Sn=>st.next(Sn),error:Sn=>{Qe=!0,xe(),J=Un(Se,c,Sn),st.error(Sn)},complete:()=>{Te=!0,xe(),J=Un(Se,D),st.complete()}}),Pt(Ft).subscribe(k))})(M)}}({connector:()=>new Ns(M,h,c),resetOnError:!0,resetOnComplete:!1,resetOnRefCountZero:k})}function Ls(...f){const h=f.length;if(0===h)throw new Error("list of properties cannot be empty.");return pn(c=>{let D=c;for(let C=0;C<h;C++){const M=null==D?void 0:D[f[C]];if(void 0===M)return;D=M}return D})}function Pn(f,h){const c="object"==typeof h;return new Promise((D,C)=>{const M=new kt({next:k=>{D(k),M.unsubscribe()},error:C,complete:()=>{c?D(h.defaultValue):C(new fr)}});f.subscribe(M)})}function qr(f){return nt((h,c)=>{let M,D=null,C=!1;D=h.subscribe(new ze(c,void 0,void 0,k=>{M=Qt(f(k,qr(f)(h))),D?(D.unsubscribe(),D=null,M.subscribe(c)):C=!0})),C&&(D.unsubscribe(),D=null,M.subscribe(c))})}function Ir(f,h,c=1/0){return Ee(h)?Ir((D,C)=>pn((M,k)=>h(D,M,C,k))(Qt(f(D,C))),c):("number"==typeof h&&(c=h),nt((D,C)=>function(f,h,c,D,C,M,k,J){const ne=[];let z=0,Te=0,Qe=!1;const xe=()=>{Qe&&!ne.length&&!z&&h.complete()},Se=Ft=>z<D?Je(Ft):ne.push(Ft),Je=Ft=>{z++;let zn=!1;Qt(c(Ft,Te++)).subscribe(new ze(h,st=>{h.next(st)},()=>{zn=!0},void 0,()=>{if(zn)try{for(z--;ne.length&&z<D;){const st=ne.shift();Je(st)}xe()}catch(st){h.error(st)}}))};return f.subscribe(new ze(h,Se,()=>{Qe=!0,xe()})),()=>{}}(D,C,f,c)))}function ks(...f){const h=Ve(f),c=function(f,h){return"number"==typeof dr(f)?f.pop():1/0}(f),D=f;return D.length?1===D.length?Qt(D[0]):function(f=1/0){return Ir(_n,f)}(c)(Pt(D,h)):hr}var Kr=N(86),ii=N(916),Ti=N(406),Jn=N(198),Xn=N(850);class er{}class Qr{}class Fn{constructor(h){this.normalizedNames=new Map,this.lazyUpdate=null,h?this.lazyInit="string"==typeof h?()=>{this.headers=new Map,h.split("\n").forEach(c=>{const D=c.indexOf(":");if(D>0){const C=c.slice(0,D),M=C.toLowerCase(),k=c.slice(D+1).trim();this.maybeSetNormalizedName(C,M),this.headers.has(M)?this.headers.get(M).push(k):this.headers.set(M,[k])}})}:()=>{this.headers=new Map,Object.keys(h).forEach(c=>{let D=h[c];const C=c.toLowerCase();"string"==typeof D&&(D=[D]),D.length>0&&(this.headers.set(C,D),this.maybeSetNormalizedName(c,C))})}:this.headers=new Map}has(h){return this.init(),this.headers.has(h.toLowerCase())}get(h){this.init();const c=this.headers.get(h.toLowerCase());return c&&c.length>0?c[0]:null}keys(){return this.init(),Array.from(this.normalizedNames.values())}getAll(h){return this.init(),this.headers.get(h.toLowerCase())||null}append(h,c){return this.clone({name:h,value:c,op:"a"})}set(h,c){return this.clone({name:h,value:c,op:"s"})}delete(h,c){return this.clone({name:h,value:c,op:"d"})}maybeSetNormalizedName(h,c){this.normalizedNames.has(c)||this.normalizedNames.set(c,h)}init(){this.lazyInit&&(this.lazyInit instanceof Fn?this.copyFrom(this.lazyInit):this.lazyInit(),this.lazyInit=null,this.lazyUpdate&&(this.lazyUpdate.forEach(h=>this.applyUpdate(h)),this.lazyUpdate=null))}copyFrom(h){h.init(),Array.from(h.headers.keys()).forEach(c=>{this.headers.set(c,h.headers.get(c)),this.normalizedNames.set(c,h.normalizedNames.get(c))})}clone(h){const c=new Fn;return c.lazyInit=this.lazyInit&&this.lazyInit instanceof Fn?this.lazyInit:this,c.lazyUpdate=(this.lazyUpdate||[]).concat([h]),c}applyUpdate(h){const c=h.name.toLowerCase();switch(h.op){case"a":case"s":let D=h.value;if("string"==typeof D&&(D=[D]),0===D.length)return;this.maybeSetNormalizedName(h.name,c);const C=("a"===h.op?this.headers.get(c):void 0)||[];C.push(...D),this.headers.set(c,C);break;case"d":const M=h.value;if(M){let k=this.headers.get(c);if(!k)return;k=k.filter(J=>-1===M.indexOf(J)),0===k.length?(this.headers.delete(c),this.normalizedNames.delete(c)):this.headers.set(c,k)}else this.headers.delete(c),this.normalizedNames.delete(c)}}forEach(h){this.init(),Array.from(this.normalizedNames.keys()).forEach(c=>h(this.normalizedNames.get(c),this.headers.get(c)))}}class oi{encodeKey(h){return Mr(h)}encodeValue(h){return Mr(h)}decodeKey(h){return decodeURIComponent(h)}decodeValue(h){return decodeURIComponent(h)}}const Jr=/%(\d[a-f0-9])/gi,ui={40:"@","3A":":",24:"$","2C":",","3B":";","2B":"+","3D":"=","3F":"?","2F":"/"};function Mr(f){return encodeURIComponent(f).replace(Jr,(h,c)=>{var D;return null!==(D=ui[c])&&void 0!==D?D:h})}function js(f){return`${f}`}class Vt{constructor(h={}){if(this.updates=null,this.cloneFrom=null,this.encoder=h.encoder||new oi,h.fromString){if(h.fromObject)throw new Error("Cannot specify both fromString and fromObject.");this.map=function(f,h){const c=new Map;return f.length>0&&f.replace(/^\?/,"").split("&").forEach(C=>{const M=C.indexOf("="),[k,J]=-1==M?[h.decodeKey(C),""]:[h.decodeKey(C.slice(0,M)),h.decodeValue(C.slice(M+1))],ne=c.get(k)||[];ne.push(J),c.set(k,ne)}),c}(h.fromString,this.encoder)}else h.fromObject?(this.map=new Map,Object.keys(h.fromObject).forEach(c=>{const D=h.fromObject[c];this.map.set(c,Array.isArray(D)?D:[D])})):this.map=null}has(h){return this.init(),this.map.has(h)}get(h){this.init();const c=this.map.get(h);return c?c[0]:null}getAll(h){return this.init(),this.map.get(h)||null}keys(){return this.init(),Array.from(this.map.keys())}append(h,c){return this.clone({param:h,value:c,op:"a"})}appendAll(h){const c=[];return Object.keys(h).forEach(D=>{const C=h[D];Array.isArray(C)?C.forEach(M=>{c.push({param:D,value:M,op:"a"})}):c.push({param:D,value:C,op:"a"})}),this.clone(c)}set(h,c){return this.clone({param:h,value:c,op:"s"})}delete(h,c){return this.clone({param:h,value:c,op:"d"})}toString(){return this.init(),this.keys().map(h=>{const c=this.encoder.encodeKey(h);return this.map.get(h).map(D=>c+"="+this.encoder.encodeValue(D)).join("&")}).filter(h=>""!==h).join("&")}clone(h){const c=new Vt({encoder:this.encoder});return c.cloneFrom=this.cloneFrom||this,c.updates=(this.updates||[]).concat(h),c}init(){null===this.map&&(this.map=new Map),null!==this.cloneFrom&&(this.cloneFrom.init(),this.cloneFrom.keys().forEach(h=>this.map.set(h,this.cloneFrom.map.get(h))),this.updates.forEach(h=>{switch(h.op){case"a":case"s":const c=("a"===h.op?this.map.get(h.param):void 0)||[];c.push(js(h.value)),this.map.set(h.param,c);break;case"d":if(void 0===h.value){this.map.delete(h.param);break}{let D=this.map.get(h.param)||[];const C=D.indexOf(js(h.value));-1!==C&&D.splice(C,1),D.length>0?this.map.set(h.param,D):this.map.delete(h.param)}}}),this.cloneFrom=this.updates=null)}}class m{constructor(){this.map=new Map}set(h,c){return this.map.set(h,c),this}get(h){return this.map.has(h)||this.map.set(h,h.defaultValue()),this.map.get(h)}delete(h){return this.map.delete(h),this}has(h){return this.map.has(h)}keys(){return this.map.keys()}}function y(f){return"undefined"!=typeof ArrayBuffer&&f instanceof ArrayBuffer}function I(f){return"undefined"!=typeof Blob&&f instanceof Blob}function P(f){return"undefined"!=typeof FormData&&f instanceof FormData}class te{constructor(h,c,D,C){let M;if(this.url=c,this.body=null,this.reportProgress=!1,this.withCredentials=!1,this.responseType="json",this.method=h.toUpperCase(),function(f){switch(f){case"DELETE":case"GET":case"HEAD":case"OPTIONS":case"JSONP":return!1;default:return!0}}(this.method)||C?(this.body=void 0!==D?D:null,M=C):M=D,M&&(this.reportProgress=!!M.reportProgress,this.withCredentials=!!M.withCredentials,M.responseType&&(this.responseType=M.responseType),M.headers&&(this.headers=M.headers),M.context&&(this.context=M.context),M.params&&(this.params=M.params)),this.headers||(this.headers=new Fn),this.context||(this.context=new m),this.params){const k=this.params.toString();if(0===k.length)this.urlWithParams=c;else{const J=c.indexOf("?");this.urlWithParams=c+(-1===J?"?":J<c.length-1?"&":"")+k}}else this.params=new Vt,this.urlWithParams=c}serializeBody(){return null===this.body?null:y(this.body)||I(this.body)||P(this.body)||"undefined"!=typeof URLSearchParams&&this.body instanceof URLSearchParams||"string"==typeof this.body?this.body:this.body instanceof Vt?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||P(this.body)?null:I(this.body)?this.body.type||null:y(this.body)?null:"string"==typeof this.body?"text/plain":this.body instanceof Vt?"application/x-www-form-urlencoded;charset=UTF-8":"object"==typeof this.body||"number"==typeof this.body||"boolean"==typeof this.body?"application/json":null}clone(h={}){var c;const D=h.method||this.method,C=h.url||this.url,M=h.responseType||this.responseType,k=void 0!==h.body?h.body:this.body,J=void 0!==h.withCredentials?h.withCredentials:this.withCredentials,ne=void 0!==h.reportProgress?h.reportProgress:this.reportProgress;let z=h.headers||this.headers,Te=h.params||this.params;const Qe=null!==(c=h.context)&&void 0!==c?c:this.context;return void 0!==h.setHeaders&&(z=Object.keys(h.setHeaders).reduce((xe,Se)=>xe.set(Se,h.setHeaders[Se]),z)),h.setParams&&(Te=Object.keys(h.setParams).reduce((xe,Se)=>xe.set(Se,h.setParams[Se]),Te)),new te(D,C,k,{params:Te,headers:z,context:Qe,reportProgress:ne,responseType:M,withCredentials:J})}}var fe=(()=>((fe=fe||{})[fe.Sent=0]="Sent",fe[fe.UploadProgress=1]="UploadProgress",fe[fe.ResponseHeader=2]="ResponseHeader",fe[fe.DownloadProgress=3]="DownloadProgress",fe[fe.Response=4]="Response",fe[fe.User=5]="User",fe))();class ke{constructor(h,c=200,D="OK"){this.headers=h.headers||new Fn,this.status=void 0!==h.status?h.status:c,this.statusText=h.statusText||D,this.url=h.url||null,this.ok=this.status>=200&&this.status<300}}class rt extends ke{constructor(h={}){super(h),this.type=fe.ResponseHeader}clone(h={}){return new rt({headers:h.headers||this.headers,status:void 0!==h.status?h.status:this.status,statusText:h.statusText||this.statusText,url:h.url||this.url||void 0})}}class vt extends ke{constructor(h={}){super(h),this.type=fe.Response,this.body=void 0!==h.body?h.body:null}clone(h={}){return new vt({body:void 0!==h.body?h.body:this.body,headers:h.headers||this.headers,status:void 0!==h.status?h.status:this.status,statusText:h.statusText||this.statusText,url:h.url||this.url||void 0})}}class $e extends ke{constructor(h){super(h,0,"Unknown Error"),this.name="HttpErrorResponse",this.ok=!1,this.message=this.status>=200&&this.status<300?`Http failure during parsing for ${h.url||"(unknown url)"}`:`Http failure response for ${h.url||"(unknown url)"}: ${h.status} ${h.statusText}`,this.error=h.error||null}}function ft(f,h){return{body:h,headers:f.headers,context:f.context,observe:f.observe,params:f.params,reportProgress:f.reportProgress,responseType:f.responseType,withCredentials:f.withCredentials}}let Dt=(()=>{class f{constructor(c){this.handler=c}request(c,D,C={}){let M;if(c instanceof te)M=c;else{let ne,z;ne=C.headers instanceof Fn?C.headers:new Fn(C.headers),C.params&&(z=C.params instanceof Vt?C.params:new Vt({fromObject:C.params})),M=new te(c,D,void 0!==C.body?C.body:null,{headers:ne,context:C.context,params:z,reportProgress:C.reportProgress,responseType:C.responseType||"json",withCredentials:C.withCredentials})}const k=(0,Kr.of)(M).pipe((0,Ti.b)(ne=>this.handler.handle(ne)));if(c instanceof te||"events"===C.observe)return k;const J=k.pipe((0,Jn.h)(ne=>ne instanceof vt));switch(C.observe||"body"){case"body":switch(M.responseType){case"arraybuffer":return J.pipe((0,Xn.U)(ne=>{if(null!==ne.body&&!(ne.body instanceof ArrayBuffer))throw new Error("Response is not an ArrayBuffer.");return ne.body}));case"blob":return J.pipe((0,Xn.U)(ne=>{if(null!==ne.body&&!(ne.body instanceof Blob))throw new Error("Response is not a Blob.");return ne.body}));case"text":return J.pipe((0,Xn.U)(ne=>{if(null!==ne.body&&"string"!=typeof ne.body)throw new Error("Response is not a string.");return ne.body}));default:return J.pipe((0,Xn.U)(ne=>ne.body))}case"response":return J;default:throw new Error(`Unreachable: unhandled observe type ${C.observe}}`)}}delete(c,D={}){return this.request("DELETE",c,D)}get(c,D={}){return this.request("GET",c,D)}head(c,D={}){return this.request("HEAD",c,D)}jsonp(c,D){return this.request("JSONP",c,{params:(new Vt).append(D,"JSONP_CALLBACK"),observe:"body",responseType:"json"})}options(c,D={}){return this.request("OPTIONS",c,D)}patch(c,D,C={}){return this.request("PATCH",c,ft(C,D))}post(c,D,C={}){return this.request("POST",c,ft(C,D))}put(c,D,C={}){return this.request("PUT",c,ft(C,D))}}return f.\u0275fac=function(c){return new(c||f)(ee.LFG(er))},f.\u0275prov=ee.Yz7({token:f,factory:f.\u0275fac}),f})();class Gt{constructor(h,c){this.next=h,this.interceptor=c}handle(h){return this.interceptor.intercept(h,this.next)}}const yn=new ee.OlP("HTTP_INTERCEPTORS");let Mt=(()=>{class f{intercept(c,D){return D.handle(c)}}return f.\u0275fac=function(c){return new(c||f)},f.\u0275prov=ee.Yz7({token:f,factory:f.\u0275fac}),f})();const oa=/^\)\]\}',?\n/;let Us=(()=>{class f{constructor(c){this.xhrFactory=c}handle(c){if("JSONP"===c.method)throw new Error("Attempted to construct Jsonp request without HttpClientJsonpModule installed.");return new ii.y(D=>{const C=this.xhrFactory.build();if(C.open(c.method,c.urlWithParams),c.withCredentials&&(C.withCredentials=!0),c.headers.forEach((Se,Je)=>C.setRequestHeader(Se,Je.join(","))),c.headers.has("Accept")||C.setRequestHeader("Accept","application/json, text/plain, */*"),!c.headers.has("Content-Type")){const Se=c.detectContentTypeHeader();null!==Se&&C.setRequestHeader("Content-Type",Se)}if(c.responseType){const Se=c.responseType.toLowerCase();C.responseType="json"!==Se?Se:"text"}const M=c.serializeBody();let k=null;const J=()=>{if(null!==k)return k;const Se=1223===C.status?204:C.status,Je=C.statusText||"OK",Ft=new Fn(C.getAllResponseHeaders()),zn=function(f){return"responseURL"in f&&f.responseURL?f.responseURL:/^X-Request-URL:/m.test(f.getAllResponseHeaders())?f.getResponseHeader("X-Request-URL"):null}(C)||c.url;return k=new rt({headers:Ft,status:Se,statusText:Je,url:zn}),k},ne=()=>{let{headers:Se,status:Je,statusText:Ft,url:zn}=J(),st=null;204!==Je&&(st=void 0===C.response?C.responseText:C.response),0===Je&&(Je=st?200:0);let Sn=Je>=200&&Je<300;if("json"===c.responseType&&"string"==typeof st){const Do=st;st=st.replace(oa,"");try{st=""!==st?JSON.parse(st):null}catch(bo){st=Do,Sn&&(Sn=!1,st={error:bo,text:st})}}Sn?(D.next(new vt({body:st,headers:Se,status:Je,statusText:Ft,url:zn||void 0})),D.complete()):D.error(new $e({error:st,headers:Se,status:Je,statusText:Ft,url:zn||void 0}))},z=Se=>{const{url:Je}=J(),Ft=new $e({error:Se,status:C.status||0,statusText:C.statusText||"Unknown Error",url:Je||void 0});D.error(Ft)};let Te=!1;const Qe=Se=>{Te||(D.next(J()),Te=!0);let Je={type:fe.DownloadProgress,loaded:Se.loaded};Se.lengthComputable&&(Je.total=Se.total),"text"===c.responseType&&!!C.responseText&&(Je.partialText=C.responseText),D.next(Je)},xe=Se=>{let Je={type:fe.UploadProgress,loaded:Se.loaded};Se.lengthComputable&&(Je.total=Se.total),D.next(Je)};return C.addEventListener("load",ne),C.addEventListener("error",z),C.addEventListener("timeout",z),C.addEventListener("abort",z),c.reportProgress&&(C.addEventListener("progress",Qe),null!==M&&C.upload&&C.upload.addEventListener("progress",xe)),C.send(M),D.next({type:fe.Sent}),()=>{C.removeEventListener("error",z),C.removeEventListener("abort",z),C.removeEventListener("load",ne),C.removeEventListener("timeout",z),c.reportProgress&&(C.removeEventListener("progress",Qe),null!==M&&C.upload&&C.upload.removeEventListener("progress",xe)),C.readyState!==C.DONE&&C.abort()}})}}return f.\u0275fac=function(c){return new(c||f)(ee.LFG(Ge.JF))},f.\u0275prov=ee.Yz7({token:f,factory:f.\u0275fac}),f})();const gn=new ee.OlP("XSRF_COOKIE_NAME"),Cs=new ee.OlP("XSRF_HEADER_NAME");class ci{}let Vs=(()=>{class f{constructor(c,D,C){this.doc=c,this.platform=D,this.cookieName=C,this.lastCookieString="",this.lastToken=null,this.parseCount=0}getToken(){if("server"===this.platform)return null;const c=this.doc.cookie||"";return c!==this.lastCookieString&&(this.parseCount++,this.lastToken=(0,Ge.Mx)(c,this.cookieName),this.lastCookieString=c),this.lastToken}}return f.\u0275fac=function(c){return new(c||f)(ee.LFG(Ge.K0),ee.LFG(ee.Lbi),ee.LFG(gn))},f.\u0275prov=ee.Yz7({token:f,factory:f.\u0275fac}),f})(),K=(()=>{class f{constructor(c,D){this.tokenService=c,this.headerName=D}intercept(c,D){const C=c.url.toLowerCase();if("GET"===c.method||"HEAD"===c.method||C.startsWith("http://")||C.startsWith("https://"))return D.handle(c);const M=this.tokenService.getToken();return null!==M&&!c.headers.has(this.headerName)&&(c=c.clone({headers:c.headers.set(this.headerName,M)})),D.handle(c)}}return f.\u0275fac=function(c){return new(c||f)(ee.LFG(ci),ee.LFG(Cs))},f.\u0275prov=ee.Yz7({token:f,factory:f.\u0275fac}),f})(),it=(()=>{class f{constructor(c,D){this.backend=c,this.injector=D,this.chain=null}handle(c){if(null===this.chain){const D=this.injector.get(yn,[]);this.chain=D.reduceRight((C,M)=>new Gt(C,M),this.backend)}return this.chain.handle(c)}}return f.\u0275fac=function(c){return new(c||f)(ee.LFG(Qr),ee.LFG(ee.zs3))},f.\u0275prov=ee.Yz7({token:f,factory:f.\u0275fac}),f})(),Ii=(()=>{class f{static disable(){return{ngModule:f,providers:[{provide:K,useClass:Mt}]}}static withOptions(c={}){return{ngModule:f,providers:[c.cookieName?{provide:gn,useValue:c.cookieName}:[],c.headerName?{provide:Cs,useValue:c.headerName}:[]]}}}return f.\u0275fac=function(c){return new(c||f)},f.\u0275mod=ee.oAB({type:f}),f.\u0275inj=ee.cJS({providers:[K,{provide:yn,useExisting:K,multi:!0},{provide:ci,useClass:Vs},{provide:gn,useValue:"XSRF-TOKEN"},{provide:Cs,useValue:"X-XSRF-TOKEN"}]}),f})(),pr=(()=>{class f{}return f.\u0275fac=function(c){return new(c||f)},f.\u0275mod=ee.oAB({type:f}),f.\u0275inj=ee.cJS({providers:[Dt,{provide:er,useClass:it},Us,{provide:Qr,useExisting:Us}],imports:[[Ii.withOptions({cookieName:"XSRF-TOKEN",headerName:"X-XSRF-TOKEN"})]]}),f})();const xr=["*"],ws={useTransferState:!0,alwaysMonitor:!1,manualIdle:!1,baseURIForScullyContent:"http://localhost:1668"},es=new ee.OlP("scullyLibConfig",{factory:()=>ws}),ln=f=>(f.includes("#")&&(f=f.split("#")[0]),f.includes("?")&&(f=f.split("?")[0]),f.endsWith("/")?f.slice(0,-1):f),Rr=()=>window&&"running"===window.ScullyIO,Xt=()=>window&&"generated"===window.ScullyIO;function $n(f,h){return(f=null!=f?f:"").endsWith("/")&&h.startsWith("/")?`${f}${h.substr(1)}`:f.endsWith("/")||h.startsWith("/")?`${f}${h}`:`${f}/${h}`}const Hs="ScullyIO-transfer-state",gr="/** ___SCULLY_STATE_START___ */",Dn="/** ___SCULLY_STATE_END___ */";let fi=(()=>{class f{constructor(c,D,C){this.document=c,this.router=D,this.http=C,this.inlineOnly=!1,this.currentBaseUrl="//",this.stateBS=new or({}),this.state$=this.stateBS.pipe(Lt(M=>void 0!==M)),this.nextUrl=this.router.events.pipe(Lt(M=>M instanceof He.OD),je(M=>ln(this.initialUrl)===ln(M.url)?(this.initialUrl="__done__with__Initial__navigation__",It):Jt(M)),En(()=>this.stateBS.next(void 0)),je(M=>this.router.events.pipe(Lt(k=>k instanceof He.m2&&k.url===M.url),function(f,h){const c=arguments.length>=2;return D=>D.pipe(f?Lt((C,M)=>f(C,M,D)):_n,ri(1),c?Os(h):bs(()=>new fr))}())),pn(M=>ln(M.urlAfterRedirects||M.url)),Tr(1))}startMonitoring(){window&&window["ScullyIO-injected"]&&window["ScullyIO-injected"].inlineStateOnly&&(this.inlineOnly=!0),this.setupEnvForTransferState(),this.setupStartNavMonitoring()}setupEnvForTransferState(){if(Rr()){this.injectScript();const c=window["ScullyIO-exposed"]||{};c.transferState&&(this.stateBS.next(c.transferState),this.saveState(c.transferState))}else Xt()&&(this.initialUrl=window.location.pathname||"__no_NO_no__",this.initialUrl="/"!==this.initialUrl&&this.initialUrl.endsWith("/")?this.initialUrl.slice(0,-1):this.initialUrl,this.stateBS.next(window&&window[Hs]||{}))}injectScript(){this.script=this.document.createElement("script"),this.script.setAttribute("id",Hs);let c=this.document.body.lastChild;for(;"SCRIPT"===c.previousSibling.nodeName;)c=c.previousSibling;this.document.body.insertBefore(this.script,c)}getState(c){return this.fetchTransferState(),this.state$.pipe(Ls(c))}stateHasKey(c){return this.stateBS.value&&this.stateBS.value.hasOwnProperty(c)}stateKeyHasValue(c){return this.stateBS.value&&this.stateBS.value.hasOwnProperty(c)&&null!=this.stateBS.value[c]}setState(c,D){const C=Object.assign(Object.assign({},this.stateBS.value),{[c]:D});this.stateBS.next(C),this.saveState(C)}saveState(c){Rr()&&(this.script.textContent=`{window['${Hs}']=_u(\`${gr}${function(f){const h={"'":"_~q~",$:"_~o~","`":"_~b~","/":"_~s~","<":"_~l~",">":"_~g~"};return f.replace(/[\$`'<>\/]/g,c=>h[c]).replace(/\\\"/g,"_~d~")}(JSON.stringify(c))}${Dn}\`);function _u(t){t=t.split('${gr}')[1].split('${Dn}')[0];const u={'_~b~': "\`",'_~q~': "'",'_~o~': '$','_~s~': '/','_~l~': '<','_~g~': '>'};return JSON.parse(t.replace(/_~d~/g,'\\\\"').replace(/_~[^]~/g, (s) => u[s]).replace(/\\n/g,'\\\\n').replace(/\\t/g,'\\\\t').replace(/\\r/g,'\\\\r'));}}`)}setupStartNavMonitoring(){!Xt()||this.nextUrl.subscribe()}useScullyTransferState(c,D){return Xt()?this.getState(c):D.pipe(En(C=>this.setState(c,C)))}fetchTransferState(){return De(this,void 0,void 0,function*(){const c=M=>M.split("/").filter(k=>""!==k.trim())[0];yield new Promise(M=>setTimeout(M,0));const D=yield Pn(this.nextUrl),C=c(D);this.currentBaseUrl!==C&&(this.currentBaseUrl=C,this.nextUrl.pipe(function(f,h=!1){return nt((c,D)=>{let C=0;c.subscribe(new ze(D,M=>{const k=f(M,C++);(k||h)&&D.next(M),!k&&D.complete()}))})}(M=>c(M)===this.currentBaseUrl),je(M=>this.inlineOnly?this.readFromIndex(M):this.readFromJson(M)),qr(M=>(console.warn("Error while loading of parsing Scully state:",M),Jt({}))),En(M=>{this.stateBS.next(M)})).subscribe({complete:()=>{this.currentBaseUrl="//"}}))})}readFromJson(c){return Pn(this.http.get(Es($n(c,"/data.json"))))}readFromIndex(c){return Pn(this.http.get(Es($n(c,"/index.html")),{responseType:"text"})).then(D=>{const C=D.split(gr)[1].split(Dn)[0];return JSON.parse(function(f){const h={"_~q~":"'","_~b~":"`","_~o~":"$","_~s~":"/","_~l~":"<","_~g~":">"};return f.replace(/_~d~/g,'\\"').replace(/_~[^]~/g,c=>h[c]).replace(/\n/g,"\\n").replace(/\r/g,"\\r")}(C))})}}return f.\u0275fac=function(c){return new(c||f)(ee.LFG(Ge.K0),ee.LFG(He.F0),ee.LFG(Dt))},f.\u0275prov=ee.Yz7({token:f,factory:f.\u0275fac,providedIn:"root"}),f})();function Es(f){return f.startsWith("/")?f.slice(1):f}let ts=(()=>{class f{constructor(c,D,C,M,k){this.zone=c,this.router=D,this.document=M,this.initialUrl=function(f){return f.endsWith("/")?f.slice(0,-1):f}(window&&window.location&&window.location.pathname)||"",this.imState=new or({idle:!1,timeOut:5e3}),this.idle$=this.imState.pipe(Ls("idle")),this.initApp=new Event("AngularInitialized",{bubbles:!0,cancelable:!1}),this.appReady=new Event("AngularReady",{bubbles:!0,cancelable:!1}),this.appTimeout=new Event("AngularTimeout",{bubbles:!0,cancelable:!1}),this.scullyLibConfig=Object.assign({},ws,C);const ne=!!(window["ScullyIO-exposed"]||{}).manualIdle;!this.scullyLibConfig.manualIdle&&window&&(this.scullyLibConfig.alwaysMonitor||Rr())&&(this.document.dispatchEvent(this.initApp),this.router.events.pipe(Lt(z=>z instanceof He.m2&&void 0!==z.urlAfterRedirects),Lt(z=>!ne||z.urlAfterRedirects!==this.initialUrl),En(()=>this.zoneIdleCheck())).subscribe()),this.scullyLibConfig.manualIdle&&this.document.dispatchEvent(this.initApp),this.scullyLibConfig.useTransferState&&k.startMonitoring()}fireManualMyAppReadyEvent(){return De(this,void 0,void 0,function*(){return this.document.dispatchEvent(this.appReady)})}init(){return Pn(this.idle$)}zoneIdleCheck(){return De(this,void 0,void 0,function*(){if(void 0===Zone)return this.simpleTimeout();const c=Zone.current.get("TaskTrackingZone");if(void 0===c)return this.simpleTimeout();this.imState.value.idle&&(yield this.setState("idle",!1)),this.zone.runOutsideAngular(()=>{let D,C=0;const M=Date.now(),k=()=>{clearTimeout(D),Date.now()-M>3e4?this.document.dispatchEvent(this.appTimeout):c.macroTasks.length>0&&void 0!==c.macroTasks.find(J=>J.source.includes("XMLHttpRequest"))||C<1?D=setTimeout(()=>{C+=1,k()},50):this.zone.run(()=>{setTimeout(()=>{this.document.dispatchEvent(this.appReady),this.setState("idle",!0)},250)})};k()})})}simpleTimeout(){return De(this,void 0,void 0,function*(){console.warn("Scully is using timeouts, add the needed polyfills instead!"),yield new Promise(c=>setTimeout(c,this.imState.value.timeOut)),this.document.dispatchEvent(this.appReady)})}setPupeteerTimeoutValue(c){this.imState.next(Object.assign(Object.assign({},this.imState.value),{timeOut:c}))}setState(c,D){this.imState.next(Object.assign(Object.assign({},this.imState.value),{[c]:D}))}}return f.\u0275fac=function(c){return new(c||f)(ee.LFG(ee.R0b),ee.LFG(He.F0),ee.LFG(es),ee.LFG(Ge.K0),ee.LFG(fi))},f.\u0275prov=ee.Yz7({token:f,factory:f.\u0275fac,providedIn:"root"}),f})(),mr=(()=>{class f{constructor(c,D){this.router=c,this.http=D,this.refresh=new Ns(1),this.allRoutes$=this.refresh.pipe(je(()=>this.http.get("assets/scully-routes.json")),qr(()=>(console.warn("Scully routes file not found, are you running the Scully generated version of your site?"),Jt([]))),Lt(C=>Array.isArray(C)),pn(this.cleanDups),Tr({refCount:!1,bufferSize:1})),this.available$=this.allRoutes$.pipe(pn(C=>C.filter(M=>!M.hasOwnProperty("published")||!1!==M.published)),Tr({refCount:!1,bufferSize:1})),this.unPublished$=this.allRoutes$.pipe(pn(C=>C.filter(M=>!!M.hasOwnProperty("published")&&!1===M.published)),Tr({refCount:!1,bufferSize:1})),this.topLevel$=this.available$.pipe(pn(C=>C.filter(M=>!M.route.slice(1).includes("/"))),Tr({refCount:!1,bufferSize:1})),this.reload()}getCurrent(){return location?ks(Jt(new He.m2(0,"","")),this.router.events).pipe(Lt(c=>c instanceof He.m2),je(()=>this.available$),pn(c=>{const D=ln(encodeURI(location.pathname).trim());return c.find(C=>D===ln(C.route.trim())||C.slugs&&Array.isArray(C.slugs)&&C.slugs.find(M=>D.endsWith(ln(M.trim()))))})):Jt()}cleanDups(c){const D=new Map;return c.forEach(C=>D.set(JSON.stringify(Object.assign(Object.assign({},C),{route:vo(C)?"":C.route})),C)),[...D.values()]}reload(){this.refresh.next()}}return f.\u0275fac=function(c){return new(c||f)(ee.LFG(He.F0),ee.LFG(Dt))},f.\u0275prov=ee.Yz7({token:f,factory:f.\u0275fac,providedIn:"root"}),f})();function vo(f){const h=Object.keys(f);return!(1===h.length&&h.includes("route")||2===h.length&&h.includes("route")&&h.includes("title"))}let ns,Ri=(()=>{class f{constructor(c,D,C,M,k,J,ne){this.elmRef=c,this.srs=D,this.router=C,this.location=M,this.http=k,this.document=J,this.conf=ne,this.baseUrl=this.conf.useTransferState||ws.useTransferState,this.elm=this.elmRef.nativeElement,this.routes=Pn(this.srs.allRoutes$),this.routeUpdates$=this.router.events.pipe(Lt(z=>z instanceof He.m2),Lt(z=>ns&&!ns.endsWith(ln(z.urlAfterRedirects))),En(z=>this.replaceContent())),this.routeSub=this.routeUpdates$.subscribe()}ngOnInit(){this.elm&&this.handlePage()}handlePage(){return De(this,void 0,void 0,function*(){const c=ln(location.href);if(ns===c)return;ns=c;const D=this.document.createElement("template"),C=this.getCSSId(this.elm);if(window.scullyContent){const ne=window.scullyContent.html;D.innerHTML=C!==window.scullyContent.cssId?ne.split(window.scullyContent.cssId).join(C):ne}else{if(Rr())return;yield Pn(this.http.get(c+"/index.html",{responseType:"text"})).catch(ne=>{if((0,ee.X6Q)()){const z=new URL(location.href),Te=`${this.conf.baseURIForScullyContent}/${ln(z.pathname)}/index.html`;return Pn(this.http.get(Te,{responseType:"text"}))}return Promise.reject(ne)}).then(ne=>{try{const z=ne.split("\x3c!--scullyContent-begin--\x3e")[1].split("\x3c!--scullyContent-end--\x3e")[0];if(z.includes("_ngcontent")){const Te="_ngcontent"+z.split("_ngcontent")[1].split("=")[0];D.innerHTML=z.split(Te).join(C)}else D.innerHTML=z}catch(z){D.innerHTML='<h2 id="___scully-parsing-error___">Sorry, could not parse static page content</h2>\n <p>This might happen if you are not using the static generated pages.</p>'}}).catch(ne=>{D.innerHTML='<h2 id="___scully-parsing-error___">Sorry, could not load static page content</h2>',console.error("problem during loading static scully content",ne)})}const M=this.elm.parentElement||this.document.body,k=this.document.createComment("scullyContent-begin"),J=this.document.createComment("scullyContent-end");M.insertBefore(k,this.elm),M.insertBefore(D.content,this.elm),M.insertBefore(J,this.elm),setTimeout(()=>this.document.querySelectorAll("[href]").forEach(this.upgradeToRoutelink.bind(this)),10)})}upgradeToRoutelink(c){var D;return De(this,void 0,void 0,function*(){if(!["A","BUTTON"].includes(c.tagName))return;const C=null===(D=c.dataset)||void 0===D?void 0:D.hash;if(C)return c.setAttribute("href","#"+C),c.setAttribute("onclick",""),void(c.onclick=z=>{z.preventDefault();const Te=document.getElementById(C);if(Te){const Qe=new URL(window.location.href);Qe.hash=C,history.replaceState("","",Qe.toString()),Te.scrollIntoView()}});const M=yield this.routes,k=c.getAttribute("href"),J=ln(k.toLowerCase()),ne=M.find(z=>ln(z.route.toLowerCase())===J);J&&ne&&!J.startsWith("#")&&(c.onclick=z=>De(this,void 0,void 0,function*(){const Te=ne.route.split("/"),Qe=location.pathname.split("/");Qe.pop(),z.preventDefault(),(yield this.router.navigate(Te).catch(Se=>(console.error("routing error",Se),!1)))&&Qe.every((Se,Je)=>Te[Je]===Se)&&Te.length!==Qe.length+1&&setTimeout(()=>this.replaceContent(),10)}))})}replaceContent(){window.scullyContent=void 0;const c=this.elm.parentElement;let D=function(f,h){const c=[],D=document.createNodeIterator(f,NodeFilter.SHOW_COMMENT,{acceptNode:M=>M.nodeValue&&!M.nodeValue.includes(h)?NodeFilter.FILTER_REJECT:NodeFilter.FILTER_ACCEPT});let C;for(;C=D.nextNode();)c.push(C);return c}(c,"scullyContent-begin")[0];for(;D&&D!==this.elm;){const C=D.nextSibling;c.removeChild(D),D=C}this.handlePage()}getCSSId(c){return c.getAttributeNames().find(D=>D.startsWith("_ngcontent"))||""}ngOnDestroy(){this.routeSub.unsubscribe(),ns="//"}}return f.\u0275fac=function(c){return new(c||f)(ee.Y36(ee.SBq),ee.Y36(mr),ee.Y36(He.F0),ee.Y36(Ge.Ye),ee.Y36(Dt),ee.Y36(Ge.K0),ee.Y36(es))},f.\u0275cmp=ee.Xpm({type:f,selectors:[["scully-content"]],ngContentSelectors:xr,decls:1,vars:0,template:function(c,D){1&c&&(ee.F$t(),ee.Hsn(0))},styles:["\n :host {\n display: none;\n }\n scully-content {\n display: none;\n }\n "],encapsulation:2,changeDetection:0}),f})(),pi=(()=>{class f{}return f.\u0275fac=function(c){return new(c||f)},f.\u0275mod=ee.oAB({type:f}),f.\u0275inj=ee.cJS({}),f})(),$s=(()=>{class f{constructor(c){this.idle=c}static forRoot(c=ws){return c=Object.assign({},ws,c),{ngModule:f,providers:[{provide:es,useValue:c}]}}}return f.\u0275fac=function(c){return new(c||f)(ee.LFG(ts))},f.\u0275mod=ee.oAB({type:f}),f.\u0275inj=ee.cJS({imports:[[pi,pr],pi]}),f})()},869:(We,ce,N)=>{N.d(ce,{d:()=>E});var w=N(489);class E extends w.L{constructor(ue,ye,re){super(),this.parent=ue,this.outerValue=ye,this.outerIndex=re,this.index=0}_next(ue){this.parent.notifyNext(this.outerValue,ue,this.outerIndex,this.index++,this)}_error(ue){this.parent.notifyError(ue,this),this.unsubscribe()}_complete(){this.parent.notifyComplete(this),this.unsubscribe()}}},916:(We,ce,N)=>{N.d(ce,{y:()=>G});var w=N(489),oe=N(668),ue=N(292),re=N(821),ve=N(379);var $=N(735);let G=(()=>{class Q{constructor(pe){this._isScalar=!1,pe&&(this._subscribe=pe)}lift(pe){const V=new Q;return V.source=this,V.operator=pe,V}subscribe(pe,V,Ne){const{operator:ot}=this,Oe=function(Q,se,pe){if(Q){if(Q instanceof w.L)return Q;if(Q[oe.b])return Q[oe.b]()}return Q||se||pe?new w.L(Q,se,pe):new w.L(ue.c)}(pe,V,Ne);if(Oe.add(ot?ot.call(Oe,this.source):this.source||$.v.useDeprecatedSynchronousErrorHandling&&!Oe.syncErrorThrowable?this._subscribe(Oe):this._trySubscribe(Oe)),$.v.useDeprecatedSynchronousErrorHandling&&Oe.syncErrorThrowable&&(Oe.syncErrorThrowable=!1,Oe.syncErrorThrown))throw Oe.syncErrorValue;return Oe}_trySubscribe(pe){try{return this._subscribe(pe)}catch(V){$.v.useDeprecatedSynchronousErrorHandling&&(pe.syncErrorThrown=!0,pe.syncErrorValue=V),function(Q){for(;Q;){const{closed:se,destination:pe,isStopped:V}=Q;if(se||V)return!1;Q=pe&&pe instanceof w.L?pe:null}return!0}(pe)?pe.error(V):console.warn(V)}}forEach(pe,V){return new(V=Z(V))((Ne,ot)=>{let Oe;Oe=this.subscribe(be=>{try{pe(be)}catch(lt){ot(lt),Oe&&Oe.unsubscribe()}},ot,Ne)})}_subscribe(pe){const{source:V}=this;return V&&V.subscribe(pe)}[re.L](){return this}pipe(...pe){return 0===pe.length?this:function(Q){return 0===Q.length?ve.y:1===Q.length?Q[0]:function(pe){return Q.reduce((V,Ne)=>Ne(V),pe)}}(pe)(this)}toPromise(pe){return new(pe=Z(pe))((V,Ne)=>{let ot;this.subscribe(Oe=>ot=Oe,Oe=>Ne(Oe),()=>V(ot))})}}return Q.create=se=>new Q(se),Q})();function Z(Q){if(Q||(Q=$.v.Promise||Promise),!Q)throw new Error("no Promise impl found");return Q}},292:(We,ce,N)=>{N.d(ce,{c:()=>oe});var w=N(735),E=N(782);const oe={closed:!0,next(ue){},error(ue){if(w.v.useDeprecatedSynchronousErrorHandling)throw ue;(0,E.z)(ue)},complete(){}}},826:(We,ce,N)=>{N.d(ce,{L:()=>E});var w=N(489);class E extends w.L{notifyNext(ue,ye,re,ve,De){this.destination.next(ye)}notifyError(ue,ye){this.destination.error(ue)}notifyComplete(ue){this.destination.complete()}}},529:(We,ce,N)=>{N.d(ce,{xQ:()=>De,Yc:()=>ve});var w=N(916),E=N(489),oe=N(654),ue=N(279);class ye extends oe.w{constructor(G,Z){super(),this.subject=G,this.subscriber=Z,this.closed=!1}unsubscribe(){if(this.closed)return;this.closed=!0;const G=this.subject,Z=G.observers;if(this.subject=null,!Z||0===Z.length||G.isStopped||G.closed)return;const Q=Z.indexOf(this.subscriber);-1!==Q&&Z.splice(Q,1)}}var re=N(668);class ve extends E.L{constructor(G){super(G),this.destination=G}}let De=(()=>{class $ extends w.y{constructor(){super(),this.observers=[],this.closed=!1,this.isStopped=!1,this.hasError=!1,this.thrownError=null}[re.b](){return new ve(this)}lift(Z){const Q=new _e(this,this);return Q.operator=Z,Q}next(Z){if(this.closed)throw new ue.N;if(!this.isStopped){const{observers:Q}=this,se=Q.length,pe=Q.slice();for(let V=0;V<se;V++)pe[V].next(Z)}}error(Z){if(this.closed)throw new ue.N;this.hasError=!0,this.thrownError=Z,this.isStopped=!0;const{observers:Q}=this,se=Q.length,pe=Q.slice();for(let V=0;V<se;V++)pe[V].error(Z);this.observers.length=0}complete(){if(this.closed)throw new ue.N;this.isStopped=!0;const{observers:Z}=this,Q=Z.length,se=Z.slice();for(let pe=0;pe<Q;pe++)se[pe].complete();this.observers.length=0}unsubscribe(){this.isStopped=!0,this.closed=!0,this.observers=null}_trySubscribe(Z){if(this.closed)throw new ue.N;return super._trySubscribe(Z)}_subscribe(Z){if(this.closed)throw new ue.N;return this.hasError?(Z.error(this.thrownError),oe.w.EMPTY):this.isStopped?(Z.complete(),oe.w.EMPTY):(this.observers.push(Z),new ye(this,Z))}asObservable(){const Z=new w.y;return Z.source=this,Z}}return $.create=(G,Z)=>new _e(G,Z),$})();class _e extends De{constructor(G,Z){super(),this.destination=G,this.source=Z}next(G){const{destination:Z}=this;Z&&Z.next&&Z.next(G)}error(G){const{destination:Z}=this;Z&&Z.error&&this.destination.error(G)}complete(){const{destination:G}=this;G&&G.complete&&this.destination.complete()}_subscribe(G){const{source:Z}=this;return Z?this.source.subscribe(G):oe.w.EMPTY}}},489:(We,ce,N)=>{N.d(ce,{L:()=>ve});var w=N(43),E=N(292),oe=N(654),ue=N(668),ye=N(735),re=N(782);class ve extends oe.w{constructor($,G,Z){switch(super(),this.syncErrorValue=null,this.syncErrorThrown=!1,this.syncErrorThrowable=!1,this.isStopped=!1,arguments.length){case 0:this.destination=E.c;break;case 1:if(!$){this.destination=E.c;break}if("object"==typeof $){$ instanceof ve?(this.syncErrorThrowable=$.syncErrorThrowable,this.destination=$,$.add(this)):(this.syncErrorThrowable=!0,this.destination=new De(this,$));break}default:this.syncErrorThrowable=!0,this.destination=new De(this,$,G,Z)}}[ue.b](){return this}static create($,G,Z){const Q=new ve($,G,Z);return Q.syncErrorThrowable=!1,Q}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 De extends ve{constructor($,G,Z,Q){super(),this._parentSubscriber=$;let se,pe=this;(0,w.m)(G)?se=G:G&&(se=G.next,Z=G.error,Q=G.complete,G!==E.c&&(pe=Object.create(G),(0,w.m)(pe.unsubscribe)&&this.add(pe.unsubscribe.bind(pe)),pe.unsubscribe=this.unsubscribe.bind(this))),this._context=pe,this._next=se,this._error=Z,this._complete=Q}next($){if(!this.isStopped&&this._next){const{_parentSubscriber:G}=this;ye.v.useDeprecatedSynchronousErrorHandling&&G.syncErrorThrowable?this.__tryOrSetError(G,this._next,$)&&this.unsubscribe():this.__tryOrUnsub(this._next,$)}}error($){if(!this.isStopped){const{_parentSubscriber:G}=this,{useDeprecatedSynchronousErrorHandling:Z}=ye.v;if(this._error)Z&&G.syncErrorThrowable?(this.__tryOrSetError(G,this._error,$),this.unsubscribe()):(this.__tryOrUnsub(this._error,$),this.unsubscribe());else if(G.syncErrorThrowable)Z?(G.syncErrorValue=$,G.syncErrorThrown=!0):(0,re.z)($),this.unsubscribe();else{if(this.unsubscribe(),Z)throw $;(0,re.z)($)}}}complete(){if(!this.isStopped){const{_parentSubscriber:$}=this;if(this._complete){const G=()=>this._complete.call(this._context);ye.v.useDeprecatedSynchronousErrorHandling&&$.syncErrorThrowable?(this.__tryOrSetError($,G),this.unsubscribe()):(this.__tryOrUnsub(G),this.unsubscribe())}else this.unsubscribe()}}__tryOrUnsub($,G){try{$.call(this._context,G)}catch(Z){if(this.unsubscribe(),ye.v.useDeprecatedSynchronousErrorHandling)throw Z;(0,re.z)(Z)}}__tryOrSetError($,G,Z){if(!ye.v.useDeprecatedSynchronousErrorHandling)throw new Error("bad call");try{G.call(this._context,Z)}catch(Q){return ye.v.useDeprecatedSynchronousErrorHandling?($.syncErrorValue=Q,$.syncErrorThrown=!0,!0):((0,re.z)(Q),!0)}return!1}_unsubscribe(){const{_parentSubscriber:$}=this;this._context=null,this._parentSubscriber=null,$.unsubscribe()}}},654:(We,ce,N)=>{N.d(ce,{w:()=>re});var w=N(688),E=N(830),oe=N(43);const ye=(()=>{function De(_e){return Error.call(this),this.message=_e?`${_e.length} errors occurred during unsubscription:\n${_e.map(($,G)=>`${G+1}) ${$.toString()}`).join("\n ")}`:"",this.name="UnsubscriptionError",this.errors=_e,this}return De.prototype=Object.create(Error.prototype),De})();class re{constructor(_e){this.closed=!1,this._parentOrParents=null,this._subscriptions=null,_e&&(this._unsubscribe=_e)}unsubscribe(){let _e;if(this.closed)return;let{_parentOrParents:$,_unsubscribe:G,_subscriptions:Z}=this;if(this.closed=!0,this._parentOrParents=null,this._subscriptions=null,$ instanceof re)$.remove(this);else if(null!==$)for(let Q=0;Q<$.length;++Q)$[Q].remove(this);if((0,oe.m)(G))try{G.call(this)}catch(Q){_e=Q instanceof ye?ve(Q.errors):[Q]}if((0,w.k)(Z)){let Q=-1,se=Z.length;for(;++Q<se;){const pe=Z[Q];if((0,E.K)(pe))try{pe.unsubscribe()}catch(V){_e=_e||[],V instanceof ye?_e=_e.concat(ve(V.errors)):_e.push(V)}}}if(_e)throw new ye(_e)}add(_e){let $=_e;if(!_e)return re.EMPTY;switch(typeof _e){case"function":$=new re(_e);case"object":if($===this||$.closed||"function"!=typeof $.unsubscribe)return $;if(this.closed)return $.unsubscribe(),$;if(!($ instanceof re)){const Q=$;$=new re,$._subscriptions=[Q]}break;default:throw new Error("unrecognized teardown "+_e+" added to Subscription.")}let{_parentOrParents:G}=$;if(null===G)$._parentOrParents=this;else if(G instanceof re){if(G===this)return $;$._parentOrParents=[G,this]}else{if(-1!==G.indexOf(this))return $;G.push(this)}const Z=this._subscriptions;return null===Z?this._subscriptions=[$]:Z.push($),$}remove(_e){const $=this._subscriptions;if($){const G=$.indexOf(_e);-1!==G&&$.splice(G,1)}}}var De;function ve(De){return De.reduce((_e,$)=>_e.concat($ instanceof ye?$.errors:$),[])}re.EMPTY=((De=new re).closed=!0,De)},735:(We,ce,N)=>{N.d(ce,{v:()=>E});let w=!1;const E={Promise:void 0,set useDeprecatedSynchronousErrorHandling(oe){if(oe){const ue=new Error;console.warn("DEPRECATED! RxJS was set to use deprecated synchronous error handling behavior by code at: \n"+ue.stack)}else w&&console.log("RxJS: Back to a better error behavior. Thank you. <3");w=oe},get useDeprecatedSynchronousErrorHandling(){return w}}},762:(We,ce,N)=>{N.d(ce,{c:()=>ye,N:()=>re});var w=N(529),E=N(916),oe=N(654),ue=N(327);class ye extends E.y{constructor(G,Z){super(),this.source=G,this.subjectFactory=Z,this._refCount=0,this._isComplete=!1}_subscribe(G){return this.getSubject().subscribe(G)}getSubject(){const G=this._subject;return(!G||G.isStopped)&&(this._subject=this.subjectFactory()),this._subject}connect(){let G=this._connection;return G||(this._isComplete=!1,G=this._connection=new oe.w,G.add(this.source.subscribe(new ve(this.getSubject(),this))),G.closed&&(this._connection=null,G=oe.w.EMPTY)),G}refCount(){return(0,ue.x)()(this)}}const re=(()=>{const $=ye.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 ve extends w.Yc{constructor(G,Z){super(G),this.connectable=Z}_error(G){this._unsubscribe(),super._error(G)}_complete(){this.connectable._isComplete=!0,this._unsubscribe(),super._complete()}_unsubscribe(){const G=this.connectable;if(G){this.connectable=null;const Z=G._connection;G._refCount=0,G._subject=null,G._connection=null,Z&&Z.unsubscribe()}}}},254:(We,ce,N)=>{N.d(ce,{D:()=>pe});var w=N(916),E=N(249),oe=N(654),ue=N(821),ve=N(454),De=N(430),G=N(955),Z=N(515);function pe(V,Ne){return Ne?function(V,Ne){if(null!=V){if(function(V){return V&&"function"==typeof V[ue.L]}(V))return function(V,Ne){return new w.y(ot=>{const Oe=new oe.w;return Oe.add(Ne.schedule(()=>{const be=V[ue.L]();Oe.add(be.subscribe({next(lt){Oe.add(Ne.schedule(()=>ot.next(lt)))},error(lt){Oe.add(Ne.schedule(()=>ot.error(lt)))},complete(){Oe.add(Ne.schedule(()=>ot.complete()))}}))})),Oe})}(V,Ne);if((0,G.t)(V))return function(V,Ne){return new w.y(ot=>{const Oe=new oe.w;return Oe.add(Ne.schedule(()=>V.then(be=>{Oe.add(Ne.schedule(()=>{ot.next(be),Oe.add(Ne.schedule(()=>ot.complete()))}))},be=>{Oe.add(Ne.schedule(()=>ot.error(be)))}))),Oe})}(V,Ne);if((0,Z.z)(V))return(0,ve.r)(V,Ne);if(function(V){return V&&"function"==typeof V[De.hZ]}(V)||"string"==typeof V)return function(V,Ne){if(!V)throw new Error("Iterable cannot be null");return new w.y(ot=>{const Oe=new oe.w;let be;return Oe.add(()=>{be&&"function"==typeof be.return&&be.return()}),Oe.add(Ne.schedule(()=>{be=V[De.hZ](),Oe.add(Ne.schedule(function(){if(ot.closed)return;let lt,en;try{const bt=be.next();lt=bt.value,en=bt.done}catch(bt){return void ot.error(bt)}en?ot.complete():(ot.next(lt),this.schedule())}))})),Oe})}(V,Ne)}throw new TypeError((null!==V&&typeof V||V)+" is not observable")}(V,Ne):V instanceof w.y?V:new w.y((0,E.s)(V))}},9:(We,ce,N)=>{N.d(ce,{n:()=>ue});var w=N(916),E=N(650),oe=N(454);function ue(ye,re){return re?(0,oe.r)(ye,re):new w.y((0,E.V)(ye))}},86:(We,ce,N)=>{N.d(ce,{of:()=>ue});var w=N(866),E=N(9),oe=N(454);function ue(...ye){let re=ye[ye.length-1];return(0,w.K)(re)?(ye.pop(),(0,oe.r)(ye,re)):(0,E.n)(ye)}},406:(We,ce,N)=>{N.d(ce,{b:()=>E});var w=N(709);function E(oe,ue){return(0,w.zg)(oe,ue,1)}},198:(We,ce,N)=>{N.d(ce,{h:()=>E});var w=N(489);function E(ye,re){return function(De){return De.lift(new oe(ye,re))}}class oe{constructor(re,ve){this.predicate=re,this.thisArg=ve}call(re,ve){return ve.subscribe(new ue(re,this.predicate,this.thisArg))}}class ue extends w.L{constructor(re,ve,De){super(re),this.predicate=ve,this.thisArg=De,this.count=0}_next(re){let ve;try{ve=this.predicate.call(this.thisArg,re,this.count++)}catch(De){return void this.destination.error(De)}ve&&this.destination.next(re)}}},850:(We,ce,N)=>{N.d(ce,{U:()=>E});var w=N(489);function E(ye,re){return function(De){if("function"!=typeof ye)throw new TypeError("argument is not a function. Are you looking for `mapTo()`?");return De.lift(new oe(ye,re))}}class oe{constructor(re,ve){this.project=re,this.thisArg=ve}call(re,ve){return ve.subscribe(new ue(re,this.project,this.thisArg))}}class ue extends w.L{constructor(re,ve,De){super(re),this.project=ve,this.count=0,this.thisArg=De||this}_next(re){let ve;try{ve=this.project.call(this.thisArg,re,this.count++)}catch(De){return void this.destination.error(De)}this.destination.next(ve)}}},146:(We,ce,N)=>{N.d(ce,{J:()=>oe});var w=N(709),E=N(379);function oe(ue=Number.POSITIVE_INFINITY){return(0,w.zg)(E.y,ue)}},709:(We,ce,N)=>{N.d(ce,{zg:()=>re});var w=N(54),E=N(826),oe=N(869),ue=N(850),ye=N(254);function re(_e,$,G=Number.POSITIVE_INFINITY){return"function"==typeof $?Z=>Z.pipe(re((Q,se)=>(0,ye.D)(_e(Q,se)).pipe((0,ue.U)((pe,V)=>$(Q,pe,se,V))),G)):("number"==typeof $&&(G=$),Z=>Z.lift(new ve(_e,G)))}class ve{constructor($,G=Number.POSITIVE_INFINITY){this.project=$,this.concurrent=G}call($,G){return G.subscribe(new De($,this.project,this.concurrent))}}class De extends E.L{constructor($,G,Z=Number.POSITIVE_INFINITY){super($),this.project=G,this.concurrent=Z,this.hasCompleted=!1,this.buffer=[],this.active=0,this.index=0}_next($){this.active<this.concurrent?this._tryNext($):this.buffer.push($)}_tryNext($){let G;const Z=this.index++;try{G=this.project($,Z)}catch(Q){return void this.destination.error(Q)}this.active++,this._innerSub(G,$,Z)}_innerSub($,G,Z){const Q=new oe.d(this,G,Z),se=this.destination;se.add(Q);const pe=(0,w.D)(this,$,void 0,void 0,Q);pe!==Q&&se.add(pe)}_complete(){this.hasCompleted=!0,0===this.active&&0===this.buffer.length&&this.destination.complete(),this.unsubscribe()}notifyNext($,G,Z,Q,se){this.destination.next(G)}notifyComplete($){const G=this.buffer;this.remove($),this.active--,G.length>0?this._next(G.shift()):0===this.active&&this.hasCompleted&&this.destination.complete()}}},327:(We,ce,N)=>{N.d(ce,{x:()=>E});var w=N(489);function E(){return function(re){return re.lift(new oe(re))}}class oe{constructor(re){this.connectable=re}call(re,ve){const{connectable:De}=this;De._refCount++;const _e=new ue(re,De),$=ve.subscribe(_e);return _e.closed||(_e.connection=De.connect()),$}}class ue extends w.L{constructor(re,ve){super(re),this.connectable=ve}_unsubscribe(){const{connectable:re}=this;if(!re)return void(this.connection=null);this.connectable=null;const ve=re._refCount;if(ve<=0)return void(this.connection=null);if(re._refCount=ve-1,ve>1)return void(this.connection=null);const{connection:De}=this,_e=re._connection;this.connection=null,_e&&(!De||_e===De)&&_e.unsubscribe()}}},454:(We,ce,N)=>{N.d(ce,{r:()=>oe});var w=N(916),E=N(654);function oe(ue,ye){return new w.y(re=>{const ve=new E.w;let De=0;return ve.add(ye.schedule(function(){De!==ue.length?(re.next(ue[De++]),re.closed||ve.add(this.schedule())):re.complete()})),ve})}},430:(We,ce,N)=>{N.d(ce,{hZ:()=>E});const E="function"==typeof Symbol&&Symbol.iterator?Symbol.iterator:"@@iterator"},821:(We,ce,N)=>{N.d(ce,{L:()=>w});const w="function"==typeof Symbol&&Symbol.observable||"@@observable"},668:(We,ce,N)=>{N.d(ce,{b:()=>w});const w="function"==typeof Symbol?Symbol("rxSubscriber"):"@@rxSubscriber_"+Math.random()},279:(We,ce,N)=>{N.d(ce,{N:()=>E});const E=(()=>{function oe(){return Error.call(this),this.message="object unsubscribed",this.name="ObjectUnsubscribedError",this}return oe.prototype=Object.create(Error.prototype),oe})()},782:(We,ce,N)=>{function w(E){setTimeout(()=>{throw E},0)}N.d(ce,{z:()=>w})},379:(We,ce,N)=>{function w(E){return E}N.d(ce,{y:()=>w})},688:(We,ce,N)=>{N.d(ce,{k:()=>w});const w=Array.isArray||(E=>E&&"number"==typeof E.length)},515:(We,ce,N)=>{N.d(ce,{z:()=>w});const w=E=>E&&"number"==typeof E.length&&"function"!=typeof E},43:(We,ce,N)=>{function w(E){return"function"==typeof E}N.d(ce,{m:()=>w})},830:(We,ce,N)=>{function w(E){return null!==E&&"object"==typeof E}N.d(ce,{K:()=>w})},955:(We,ce,N)=>{function w(E){return!!E&&"function"!=typeof E.subscribe&&"function"==typeof E.then}N.d(ce,{t:()=>w})},866:(We,ce,N)=>{function w(E){return E&&"function"==typeof E.schedule}N.d(ce,{K:()=>w})},249:(We,ce,N)=>{N.d(ce,{s:()=>G});var w=N(650),E=N(782),ue=N(430),re=N(821),De=N(515),_e=N(955),$=N(830);const G=Z=>{if(Z&&"function"==typeof Z[re.L])return(Z=>Q=>{const se=Z[re.L]();if("function"!=typeof se.subscribe)throw new TypeError("Provided object does not correctly implement Symbol.observable");return se.subscribe(Q)})(Z);if((0,De.z)(Z))return(0,w.V)(Z);if((0,_e.t)(Z))return(Z=>Q=>(Z.then(se=>{Q.closed||(Q.next(se),Q.complete())},se=>Q.error(se)).then(null,E.z),Q))(Z);if(Z&&"function"==typeof Z[ue.hZ])return(Z=>Q=>{const se=Z[ue.hZ]();for(;;){const pe=se.next();if(pe.done){Q.complete();break}if(Q.next(pe.value),Q.closed)break}return"function"==typeof se.return&&Q.add(()=>{se.return&&se.return()}),Q})(Z);{const se=`You provided ${(0,$.K)(Z)?"an invalid object":`'${Z}'`} where a stream was expected. You can provide an Observable, Promise, Array, or Iterable.`;throw new TypeError(se)}}},650:(We,ce,N)=>{N.d(ce,{V:()=>w});const w=E=>oe=>{for(let ue=0,ye=E.length;ue<ye&&!oe.closed;ue++)oe.next(E[ue]);oe.complete()}},54:(We,ce,N)=>{N.d(ce,{D:()=>ue});var w=N(869),E=N(249),oe=N(916);function ue(ye,re,ve,De,_e=new w.d(ye,ve,De)){if(!_e.closed)return re instanceof oe.y?re.subscribe(_e):(0,E.s)(re)(_e)}},808:(We,ce,N)=>{N.d(ce,{mr:()=>Oe,Ov:()=>mn,ez:()=>Kr,K0:()=>ve,Do:()=>lt,V_:()=>$,Ye:()=>en,S$:()=>Ne,sg:()=>Kn,O5:()=>Qn,PC:()=>dt,b0:()=>be,lw:()=>De,EM:()=>Jr,JF:()=>Xr,w_:()=>re,bD:()=>ii,q:()=>oe,Mx:()=>yt,HT:()=>ye});var w=N(96);let E=null;function oe(){return E}function ye(m){E||(E=m)}class re{}const ve=new w.OlP("DocumentToken");let De=(()=>{class m{historyGo(y){throw new Error("Not implemented")}}return m.\u0275fac=function(y){return new(y||m)},m.\u0275prov=w.Yz7({token:m,factory:function(){return(0,w.LFG)(G)},providedIn:"platform"}),m})();const $=new w.OlP("Location Initialized");let G=(()=>{class m extends De{constructor(y){super(),this._doc=y,this._init()}_init(){this.location=window.location,this._history=window.history}getBaseHrefFromDOM(){return oe().getBaseHref(this._doc)}onPopState(y){const I=oe().getGlobalEventTarget(this._doc,"window");return I.addEventListener("popstate",y,!1),()=>I.removeEventListener("popstate",y)}onHashChange(y){const I=oe().getGlobalEventTarget(this._doc,"window");return I.addEventListener("hashchange",y,!1),()=>I.removeEventListener("hashchange",y)}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(y){this.location.pathname=y}pushState(y,I,P){Z()?this._history.pushState(y,I,P):this.location.hash=P}replaceState(y,I,P){Z()?this._history.replaceState(y,I,P):this.location.hash=P}forward(){this._history.forward()}back(){this._history.back()}historyGo(y=0){this._history.go(y)}getState(){return this._history.state}}return m.\u0275fac=function(y){return new(y||m)(w.LFG(ve))},m.\u0275prov=w.Yz7({token:m,factory:function(){return new G((0,w.LFG)(ve))},providedIn:"platform"}),m})();function Z(){return!!window.history.pushState}function se(m,S){if(0==m.length)return S;if(0==S.length)return m;let y=0;return m.endsWith("/")&&y++,S.startsWith("/")&&y++,2==y?m+S.substring(1):1==y?m+S:m+"/"+S}function pe(m){const S=m.match(/#|\?|$/),y=S&&S.index||m.length;return m.slice(0,y-("/"===m[y-1]?1:0))+m.slice(y)}function V(m){return m&&"?"!==m[0]?"?"+m:m}let Ne=(()=>{class m{historyGo(y){throw new Error("Not implemented")}}return m.\u0275fac=function(y){return new(y||m)},m.\u0275prov=w.Yz7({token:m,factory:function(){return function(m){const S=(0,w.LFG)(ve).location;return new be((0,w.LFG)(De),S&&S.origin||"")}()},providedIn:"root"}),m})();const Oe=new w.OlP("appBaseHref");let be=(()=>{class m extends Ne{constructor(y,I){if(super(),this._platformLocation=y,this._removeListenerFns=[],null==I&&(I=this._platformLocation.getBaseHrefFromDOM()),null==I)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=I}ngOnDestroy(){for(;this._removeListenerFns.length;)this._removeListenerFns.pop()()}onPopState(y){this._removeListenerFns.push(this._platformLocation.onPopState(y),this._platformLocation.onHashChange(y))}getBaseHref(){return this._baseHref}prepareExternalUrl(y){return se(this._baseHref,y)}path(y=!1){const I=this._platformLocation.pathname+V(this._platformLocation.search),P=this._platformLocation.hash;return P&&y?`${I}${P}`:I}pushState(y,I,P,H){const te=this.prepareExternalUrl(P+V(H));this._platformLocation.pushState(y,I,te)}replaceState(y,I,P,H){const te=this.prepareExternalUrl(P+V(H));this._platformLocation.replaceState(y,I,te)}forward(){this._platformLocation.forward()}back(){this._platformLocation.back()}historyGo(y=0){var I,P;null===(P=(I=this._platformLocation).historyGo)||void 0===P||P.call(I,y)}}return m.\u0275fac=function(y){return new(y||m)(w.LFG(De),w.LFG(Oe,8))},m.\u0275prov=w.Yz7({token:m,factory:m.\u0275fac}),m})(),lt=(()=>{class m extends Ne{constructor(y,I){super(),this._platformLocation=y,this._baseHref="",this._removeListenerFns=[],null!=I&&(this._baseHref=I)}ngOnDestroy(){for(;this._removeListenerFns.length;)this._removeListenerFns.pop()()}onPopState(y){this._removeListenerFns.push(this._platformLocation.onPopState(y),this._platformLocation.onHashChange(y))}getBaseHref(){return this._baseHref}path(y=!1){let I=this._platformLocation.hash;return null==I&&(I="#"),I.length>0?I.substring(1):I}prepareExternalUrl(y){const I=se(this._baseHref,y);return I.length>0?"#"+I:I}pushState(y,I,P,H){let te=this.prepareExternalUrl(P+V(H));0==te.length&&(te=this._platformLocation.pathname),this._platformLocation.pushState(y,I,te)}replaceState(y,I,P,H){let te=this.prepareExternalUrl(P+V(H));0==te.length&&(te=this._platformLocation.pathname),this._platformLocation.replaceState(y,I,te)}forward(){this._platformLocation.forward()}back(){this._platformLocation.back()}historyGo(y=0){var I,P;null===(P=(I=this._platformLocation).historyGo)||void 0===P||P.call(I,y)}}return m.\u0275fac=function(y){return new(y||m)(w.LFG(De),w.LFG(Oe,8))},m.\u0275prov=w.Yz7({token:m,factory:m.\u0275fac}),m})(),en=(()=>{class m{constructor(y,I){this._subject=new w.vpe,this._urlChangeListeners=[],this._platformStrategy=y;const P=this._platformStrategy.getBaseHref();this._platformLocation=I,this._baseHref=pe(kn(P)),this._platformStrategy.onPopState(H=>{this._subject.emit({url:this.path(!0),pop:!0,state:H.state,type:H.type})})}path(y=!1){return this.normalize(this._platformStrategy.path(y))}getState(){return this._platformLocation.getState()}isCurrentPathEqualTo(y,I=""){return this.path()==this.normalize(y+V(I))}normalize(y){return m.stripTrailingSlash(function(m,S){return m&&S.startsWith(m)?S.substring(m.length):S}(this._baseHref,kn(y)))}prepareExternalUrl(y){return y&&"/"!==y[0]&&(y="/"+y),this._platformStrategy.prepareExternalUrl(y)}go(y,I="",P=null){this._platformStrategy.pushState(P,"",y,I),this._notifyUrlChangeListeners(this.prepareExternalUrl(y+V(I)),P)}replaceState(y,I="",P=null){this._platformStrategy.replaceState(P,"",y,I),this._notifyUrlChangeListeners(this.prepareExternalUrl(y+V(I)),P)}forward(){this._platformStrategy.forward()}back(){this._platformStrategy.back()}historyGo(y=0){var I,P;null===(P=(I=this._platformStrategy).historyGo)||void 0===P||P.call(I,y)}onUrlChange(y){this._urlChangeListeners.push(y),this._urlChangeSubscription||(this._urlChangeSubscription=this.subscribe(I=>{this._notifyUrlChangeListeners(I.url,I.state)}))}_notifyUrlChangeListeners(y="",I){this._urlChangeListeners.forEach(P=>P(y,I))}subscribe(y,I,P){return this._subject.subscribe({next:y,error:I,complete:P})}}return m.normalizeQueryParams=V,m.joinWithSlash=se,m.stripTrailingSlash=pe,m.\u0275fac=function(y){return new(y||m)(w.LFG(Ne),w.LFG(De))},m.\u0275prov=w.Yz7({token:m,factory:function(){return new en((0,w.LFG)(Ne),(0,w.LFG)(De))},providedIn:"root"}),m})();function kn(m){return m.replace(/\/index.html$/,"")}var ee=(()=>((ee=ee||{})[ee.Zero=0]="Zero",ee[ee.One=1]="One",ee[ee.Two=2]="Two",ee[ee.Few=3]="Few",ee[ee.Many=4]="Many",ee[ee.Other=5]="Other",ee))();const kt=w.kL8;class Er{}let ge=(()=>{class m extends Er{constructor(y){super(),this.locale=y}getPluralCategory(y,I){switch(kt(I||this.locale)(y)){case ee.Zero:return"zero";case ee.One:return"one";case ee.Two:return"two";case ee.Few:return"few";case ee.Many:return"many";default:return"other"}}}return m.\u0275fac=function(y){return new(y||m)(w.LFG(w.soG))},m.\u0275prov=w.Yz7({token:m,factory:m.\u0275fac}),m})();function yt(m,S){S=encodeURIComponent(S);for(const y of m.split(";")){const I=y.indexOf("="),[P,H]=-1==I?[y,""]:[y.slice(0,I),y.slice(I+1)];if(P.trim()===S)return decodeURIComponent(H)}return null}class It{constructor(S,y,I,P){this.$implicit=S,this.ngForOf=y,this.index=I,this.count=P}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 Kn=(()=>{class m{constructor(y,I,P){this._viewContainer=y,this._template=I,this._differs=P,this._ngForOf=null,this._ngForOfDirty=!0,this._differ=null}set ngForOf(y){this._ngForOf=y,this._ngForOfDirty=!0}set ngForTrackBy(y){this._trackByFn=y}get ngForTrackBy(){return this._trackByFn}set ngForTemplate(y){y&&(this._template=y)}ngDoCheck(){if(this._ngForOfDirty){this._ngForOfDirty=!1;const y=this._ngForOf;!this._differ&&y&&(this._differ=this._differs.find(y).create(this.ngForTrackBy))}if(this._differ){const y=this._differ.diff(this._ngForOf);y&&this._applyChanges(y)}}_applyChanges(y){const I=this._viewContainer;y.forEachOperation((P,H,te)=>{if(null==P.previousIndex)I.createEmbeddedView(this._template,new It(P.item,this._ngForOf,-1,-1),null===te?void 0:te);else if(null==te)I.remove(null===H?void 0:H);else if(null!==H){const fe=I.get(H);I.move(fe,te),gt(fe,P)}});for(let P=0,H=I.length;P<H;P++){const fe=I.get(P).context;fe.index=P,fe.count=H,fe.ngForOf=this._ngForOf}y.forEachIdentityChange(P=>{gt(I.get(P.currentIndex),P)})}static ngTemplateContextGuard(y,I){return!0}}return m.\u0275fac=function(y){return new(y||m)(w.Y36(w.s_b),w.Y36(w.Rgc),w.Y36(w.ZZ4))},m.\u0275dir=w.lG2({type:m,selectors:[["","ngFor","","ngForOf",""]],inputs:{ngForOf:"ngForOf",ngForTrackBy:"ngForTrackBy",ngForTemplate:"ngForTemplate"}}),m})();function gt(m,S){m.context.$implicit=S.item}let Qn=(()=>{class m{constructor(y,I){this._viewContainer=y,this._context=new Ve,this._thenTemplateRef=null,this._elseTemplateRef=null,this._thenViewRef=null,this._elseViewRef=null,this._thenTemplateRef=I}set ngIf(y){this._context.$implicit=this._context.ngIf=y,this._updateView()}set ngIfThen(y){Sr("ngIfThen",y),this._thenTemplateRef=y,this._thenViewRef=null,this._updateView()}set ngIfElse(y){Sr("ngIfElse",y),this._elseTemplateRef=y,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(y,I){return!0}}return m.\u0275fac=function(y){return new(y||m)(w.Y36(w.s_b),w.Y36(w.Rgc))},m.\u0275dir=w.lG2({type:m,selectors:[["","ngIf",""]],inputs:{ngIf:"ngIf",ngIfThen:"ngIfThen",ngIfElse:"ngIfElse"}}),m})();class Ve{constructor(){this.$implicit=null,this.ngIf=null}}function Sr(m,S){if(S&&!S.createEmbeddedView)throw new Error(`${m} must be a TemplateRef, but received '${(0,w.AaK)(S)}'.`)}let dt=(()=>{class m{constructor(y,I,P){this._ngEl=y,this._differs=I,this._renderer=P,this._ngStyle=null,this._differ=null}set ngStyle(y){this._ngStyle=y,!this._differ&&y&&(this._differ=this._differs.find(y).create())}ngDoCheck(){if(this._differ){const y=this._differ.diff(this._ngStyle);y&&this._applyChanges(y)}}_setStyle(y,I){const[P,H]=y.split(".");null!=(I=null!=I&&H?`${I}${H}`:I)?this._renderer.setStyle(this._ngEl.nativeElement,P,I):this._renderer.removeStyle(this._ngEl.nativeElement,P)}_applyChanges(y){y.forEachRemovedItem(I=>this._setStyle(I.key,null)),y.forEachAddedItem(I=>this._setStyle(I.key,I.currentValue)),y.forEachChangedItem(I=>this._setStyle(I.key,I.currentValue))}}return m.\u0275fac=function(y){return new(y||m)(w.Y36(w.SBq),w.Y36(w.aQg),w.Y36(w.Qsj))},m.\u0275dir=w.lG2({type:m,selectors:[["","ngStyle",""]],inputs:{ngStyle:"ngStyle"}}),m})();class Jt{createSubscription(S,y){return S.subscribe({next:y,error:I=>{throw I}})}dispose(S){S.unsubscribe()}onDestroy(S){S.unsubscribe()}}class En{createSubscription(S,y){return S.then(y,I=>{throw I})}dispose(S){}onDestroy(S){}}const fr=new En,hr=new Jt;let mn=(()=>{class m{constructor(y){this._ref=y,this._latestValue=null,this._subscription=null,this._obj=null,this._strategy=null}ngOnDestroy(){this._subscription&&this._dispose()}transform(y){return this._obj?y!==this._obj?(this._dispose(),this.transform(y)):this._latestValue:(y&&this._subscribe(y),this._latestValue)}_subscribe(y){this._obj=y,this._strategy=this._selectStrategy(y),this._subscription=this._strategy.createSubscription(y,I=>this._updateLatestValue(y,I))}_selectStrategy(y){if((0,w.QGY)(y))return fr;if((0,w.F4k)(y))return hr;throw function(m,S){return Error(`InvalidPipeArgument: '${S}' for pipe '${(0,w.AaK)(m)}'`)}(m,y)}_dispose(){this._strategy.dispose(this._subscription),this._latestValue=null,this._subscription=null,this._obj=null}_updateLatestValue(y,I){y===this._obj&&(this._latestValue=I,this._ref.markForCheck())}}return m.\u0275fac=function(y){return new(y||m)(w.Y36(w.sBO,16))},m.\u0275pipe=w.Yjl({name:"async",type:m,pure:!1}),m})(),Kr=(()=>{class m{}return m.\u0275fac=function(y){return new(y||m)},m.\u0275mod=w.oAB({type:m}),m.\u0275inj=w.cJS({providers:[{provide:Er,useClass:ge}]}),m})();const ii="browser";let Jr=(()=>{class m{}return m.\u0275prov=(0,w.Yz7)({token:m,providedIn:"root",factory:()=>new ui((0,w.LFG)(ve),window)}),m})();class ui{constructor(S,y){this.document=S,this.window=y,this.offset=()=>[0,0]}setOffset(S){this.offset=Array.isArray(S)?()=>S:S}getScrollPosition(){return this.supportsScrolling()?[this.window.pageXOffset,this.window.pageYOffset]:[0,0]}scrollToPosition(S){this.supportsScrolling()&&this.window.scrollTo(S[0],S[1])}scrollToAnchor(S){if(!this.supportsScrolling())return;const y=function(m,S){const y=m.getElementById(S)||m.getElementsByName(S)[0];if(y)return y;if("function"==typeof m.createTreeWalker&&m.body&&(m.body.createShadowRoot||m.body.attachShadow)){const I=m.createTreeWalker(m.body,NodeFilter.SHOW_ELEMENT);let P=I.currentNode;for(;P;){const H=P.shadowRoot;if(H){const te=H.getElementById(S)||H.querySelector(`[name="${S}"]`);if(te)return te}P=I.nextNode()}}return null}(this.document,S);y&&(this.scrollToElement(y),this.attemptFocus(y))}setHistoryScrollRestoration(S){if(this.supportScrollRestoration()){const y=this.window.history;y&&y.scrollRestoration&&(y.scrollRestoration=S)}}scrollToElement(S){const y=S.getBoundingClientRect(),I=y.left+this.window.pageXOffset,P=y.top+this.window.pageYOffset,H=this.offset();this.window.scrollTo(I-H[0],P-H[1])}attemptFocus(S){return S.focus(),this.document.activeElement===S}supportScrollRestoration(){try{if(!this.supportsScrolling())return!1;const S=Mr(this.window.history)||Mr(Object.getPrototypeOf(this.window.history));return!(!S||!S.writable&&!S.set)}catch(S){return!1}}supportsScrolling(){try{return!!this.window&&!!this.window.scrollTo&&"pageXOffset"in this.window}catch(S){return!1}}}function Mr(m){return Object.getOwnPropertyDescriptor(m,"scrollRestoration")}class Xr{}},96:(We,ce,N)=>{N.d(ce,{deG:()=>F,tb:()=>ug,AFp:()=>ig,ip1:()=>Kl,CZH:()=>po,hGG:()=>tw,z2F:()=>ia,sBO:()=>xC,Sil:()=>Jl,_Vd:()=>Jo,EJc:()=>cg,SBq:()=>Xo,qLn:()=>jo,vpe:()=>gs,tBr:()=>Oo,XFs:()=>Re,OlP:()=>x,zs3:()=>Dr,ZZ4:()=>Xa,aQg:()=>eu,soG:()=>Qa,YKP:()=>Dp,h0i:()=>co,PXZ:()=>CC,R0b:()=>sr,FiY:()=>yi,Lbi:()=>ag,g9A:()=>og,Qsj:()=>n_,FYo:()=>gp,JOm:()=>cs,tp0:()=>Bi,Rgc:()=>ra,dDg:()=>hg,GfV:()=>mp,s_b:()=>Wa,ifc:()=>Ke,eFA:()=>mg,G48:()=>AC,X6Q:()=>MC,_c5:()=>qC,VLi:()=>vC,c2e:()=>lg,zSh:()=>il,wAp:()=>Be,vHH:()=>bt,cg1:()=>Il,kL8:()=>Uh,dqk:()=>Rt,sIi:()=>zo,CqO:()=>$f,QGY:()=>_l,F4k:()=>Hf,RDi:()=>y,AaK:()=>V,TTD:()=>er,xp6:()=>Dd,uIk:()=>fl,Suo:()=>jp,Xpm:()=>A,lG2:()=>tn,Yz7:()=>kt,cJS:()=>Wn,oAB:()=>Ot,Yjl:()=>wr,Y36:()=>Zo,_UZ:()=>Bf,qZA:()=>bl,TgZ:()=>Dl,LFG:()=>bn,$8M:()=>ki,$Z:()=>jf,NdJ:()=>Cl,CRH:()=>Bp,oxw:()=>Wf,ALo:()=>xp,lcZ:()=>Rp,Hsn:()=>Yf,F$t:()=>qf,Q6J:()=>yl,DdM:()=>wp,VKq:()=>Ep,iGM:()=>kp,LSH:()=>bu,YNc:()=>If,_uU:()=>bh,Oqu:()=>Tl,hij:()=>Ba});var w=N(916),E=N(866),oe=N(146),ue=N(9),re=N(529),ve=N(654),De=N(762);var G=N(327);function Z(){return new re.xQ}function se(e){for(let t in e)if(e[t]===se)return t;throw Error("Could not find renamed property on target object.")}function V(e){if("string"==typeof e)return e;if(Array.isArray(e))return"["+e.map(V).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 Ne(e,t){return null==e||""===e?null===t?"":t:null==t||""===t?e:e+" "+t}const ot=se({__forward_ref__:se});function Oe(e){return e.__forward_ref__=Oe,e.toString=function(){return V(this())},e}function be(e){return function(e){return"function"==typeof e&&e.hasOwnProperty(ot)&&e.__forward_ref__===Oe}(e)?e():e}class bt extends Error{constructor(t,n){super(function(e,t){return`${e?`NG0${e}: `:""}${t}`}(t,n)),this.code=t}}function Le(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():Le(e)}function Xe(e,t){const n=t?` in ${t}`:"";throw new bt("201",`No provider for ${Ge(e)} found${n}`)}function mt(e,t){null==e&&function(e,t,n,r){throw new Error(`ASSERTION ERROR: ${e}`+(null==r?"":` [Expected=> ${n} ${r} ${t} <=Actual]`))}(t,e,null,"!=")}function kt(e){return{token:e.token,providedIn:e.providedIn||null,factory:e.factory,value:void 0}}function Wn(e){return{providers:e.providers||[],imports:e.imports||[]}}function An(e){return ys(e,dn)||ys(e,Vr)}function ys(e,t){return e.hasOwnProperty(t)?e[t]:null}function vs(e){return e&&(e.hasOwnProperty(St)||e.hasOwnProperty(jt))?e[St]:null}const dn=se({\u0275prov:se}),St=se({\u0275inj:se}),Vr=se({ngInjectableDef:se}),jt=se({ngInjectorDef:se});var Re=(()=>((Re=Re||{})[Re.Default=0]="Default",Re[Re.Host=1]="Host",Re[Re.Self=2]="Self",Re[Re.SkipSelf=4]="SkipSelf",Re[Re.Optional=8]="Optional",Re))();let Tt;function Me(e){const t=Tt;return Tt=e,t}function or(e,t,n){const r=An(e);return r&&"root"==r.providedIn?void 0===r.value?r.value=r.factory():r.value:n&Re.Optional?null:void 0!==t?t:void Xe(V(e),"Injector")}function nt(e){return{toString:e}.toString()}var ze=(()=>((ze=ze||{})[ze.OnPush=0]="OnPush",ze[ze.Default=1]="Default",ze))(),Ke=(()=>{return(e=Ke||(Ke={}))[e.Emulated=0]="Emulated",e[e.None=2]="None",e[e.ShadowDom=3]="ShadowDom",Ke;var e})();const ar="undefined"!=typeof globalThis&&globalThis,at="undefined"!=typeof window&&window,xs="undefined"!=typeof self&&"undefined"!=typeof WorkerGlobalScope&&self instanceof WorkerGlobalScope&&self,Rt=ar||"undefined"!=typeof global&&global||at||xs,xn={},ct=[],Cn=se({\u0275cmp:se}),qn=se({\u0275dir:se}),Ds=se({\u0275pipe:se}),Gr=se({\u0275mod:se}),Rn=se({\u0275fac:se}),B=se({__NG_ELEMENT_ID__:se});let L=0;function A(e){return nt(()=>{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===ze.OnPush,directiveDefs:null,pipeDefs:null,selectors:e.selectors||ct,viewQuery:e.viewQuery||null,features:e.features||null,data:e.data||{},encapsulation:e.encapsulation||Ke.Emulated,id:"c",styles:e.styles||ct,_:null,setInput:null,schemas:e.schemas||null,tView:null},s=e.directives,i=e.features,a=e.pipes;return r.id+=L++,r.inputs=Zr(e.inputs,n),r.outputs=Zr(e.outputs),i&&i.forEach(l=>l(r)),r.directiveDefs=s?()=>("function"==typeof s?s():s).map(Y):null,r.pipeDefs=a?()=>("function"==typeof a?a():a).map(Ae):null,r})}function Y(e){return Ht(e)||function(e){return e[qn]||null}(e)}function Ae(e){return function(e){return e[Ds]||null}(e)}const qe={};function Ot(e){return nt(()=>{const t={type:e.type,bootstrap:e.bootstrap||ct,declarations:e.declarations||ct,imports:e.imports||ct,exports:e.exports||ct,transitiveCompileScopes:null,schemas:e.schemas||null,id:e.id||null};return null!=e.id&&(qe[e.id]=e.type),t})}function Zr(e,t){if(null==e)return xn;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 tn=A;function wr(e){return{type:e.type,name:e.name,factory:null,pure:!1!==e.pure,onDestroy:e.type.prototype.ngOnDestroy||null}}function Ht(e){return e[Cn]||null}function pt(e,t){const n=e[Gr]||null;if(!n&&!0===t)throw new Error(`Type ${V(e)} does not have '\u0275mod' property.`);return n}function Pt(e){return Array.isArray(e)&&"object"==typeof e[1]}function Jt(e){return Array.isArray(e)&&!0===e[1]}function En(e){return 0!=(8&e.flags)}function fr(e){return 2==(2&e.flags)}function hr(e){return 1==(1&e.flags)}function mn(e){return null!==e.template}function ni(e){return 0!=(512&e[2])}function Jn(e,t){return e.hasOwnProperty(Rn)?e[Rn]:null}class Xn{constructor(t,n,r){this.previousValue=t,this.currentValue=n,this.firstChange=r}isFirstChange(){return this.firstChange}}function er(){return Qr}function Qr(e){return e.type.prototype.ngOnChanges&&(e.setInput=oi),Fn}function Fn(){const e=Jr(this),t=null==e?void 0:e.current;if(t){const n=e.previous;if(n===xn)e.previous=t;else for(let r in t)n[r]=t[r];e.current=null,this.ngOnChanges(t)}}function oi(e,t,n,r){const s=Jr(e)||function(e,t){return e[ai]=t}(e,{previous:xn,current:null}),i=s.current||(s.current={}),a=s.previous,l=this.declaredInputs[n],p=a[l];i[l]=new Xn(p&&p.currentValue,t,a===xn),e[r]=t}er.ngInherit=!0;const ai="__ngSimpleChanges__";function Jr(e){return e[ai]||null}let S;function y(e){S=e}function H(e){return!!e.listen}const te={createRenderer:(e,t)=>void 0!==S?S:"undefined"!=typeof document?document:void 0};function ke(e){for(;Array.isArray(e);)e=e[0];return e}function ft(e,t){return ke(t[e.index])}function Gt(e,t){return e.data[t]}function Mt(e,t){const n=t[e];return Pt(n)?n:n[0]}function Vn(e){return 4==(4&e[2])}function tr(e){return 128==(128&e[2])}function vn(e,t){return null==t?null:e[t]}function Bs(e){e[18]=0}function li(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 Ue={lFrame:ns(null),bindingsEnabled:!0,isInCheckNoChangesMode:!1};function Cs(){return Ue.bindingsEnabled}function K(){return Ue.lFrame.lView}function it(){return Ue.lFrame.tView}function qt(){let e=Ii();for(;null!==e&&64===e.type;)e=e.parent;return e}function Ii(){return Ue.lFrame.currentTNode}function Hn(e,t){const n=Ue.lFrame;n.currentTNode=e,n.isParent=t}function di(){return Ue.lFrame.isParent}function xr(){Ue.lFrame.isParent=!1}function ln(){return Ue.isInCheckNoChangesMode}function Rr(e){Ue.isInCheckNoChangesMode=e}function Xt(){const e=Ue.lFrame;let t=e.bindingRootIndex;return-1===t&&(t=e.bindingRootIndex=e.tView.bindingStartIndex),t}function gr(){return Ue.lFrame.bindingIndex++}function Es(e,t){const n=Ue.lFrame;n.bindingIndex=n.bindingRootIndex=e,hi(t)}function hi(e){Ue.lFrame.currentDirectiveIndex=e}function Mi(){return Ue.lFrame.currentQueryIndex}function mr(e){Ue.lFrame.currentQueryIndex=e}function vo(e){const t=e[1];return 2===t.type?t.declTNode:1===t.type?e[6]:null}function Ai(e,t,n){if(n&Re.SkipSelf){let s=t,i=e;for(;!(s=s.parent,null!==s||n&Re.Host||(s=vo(i),null===s||(i=i[15],10&s.type))););if(null===s)return!1;t=s,e=i}const r=Ue.lFrame=xi();return r.currentTNode=t,r.lView=e,!0}function yr(e){const t=xi(),n=e[1];Ue.lFrame=t,t.currentTNode=n.firstChild,t.lView=e,t.tView=n,t.contextLView=e,t.bindingIndex=n.bindingStartIndex,t.inI18n=!1}function xi(){const e=Ue.lFrame,t=null===e?null:e.child;return null===t?ns(e):t}function ns(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 Ri(){const e=Ue.lFrame;return Ue.lFrame=e.parent,e.currentTNode=null,e.lView=null,e}const pi=Ri;function $s(){const e=Ri();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 c(){return Ue.lFrame.selectedIndex}function D(e){Ue.lFrame.selectedIndex=e}function C(){const e=Ue.lFrame;return Gt(e.tView,e.selectedIndex)}function Qe(e,t){for(let n=t.directiveStart,r=t.directiveEnd;n<r;n++){const i=e.data[n].type.prototype,{ngAfterContentInit:a,ngAfterContentChecked:l,ngAfterViewInit:p,ngAfterViewChecked:b,ngOnDestroy:_}=i;a&&(e.contentHooks||(e.contentHooks=[])).push(-n,a),l&&((e.contentHooks||(e.contentHooks=[])).push(n,l),(e.contentCheckHooks||(e.contentCheckHooks=[])).push(n,l)),p&&(e.viewHooks||(e.viewHooks=[])).push(-n,p),b&&((e.viewHooks||(e.viewHooks=[])).push(n,b),(e.viewCheckHooks||(e.viewCheckHooks=[])).push(n,b)),null!=_&&(e.destroyHooks||(e.destroyHooks=[])).push(n,_)}}function xe(e,t,n){Ft(e,t,3,n)}function Se(e,t,n,r){(3&e[2])===n&&Ft(e,t,n,r)}function Je(e,t){let n=e[2];(3&n)===t&&(n&=2047,n+=1,e[2]=n)}function Ft(e,t,n,r){const i=null!=r?r:-1,a=t.length-1;let l=0;for(let p=void 0!==r?65535&e[18]:0;p<a;p++)if("number"==typeof t[p+1]){if(l=t[p],null!=r&&l>=r)break}else t[p]<0&&(e[18]+=65536),(l<i||-1==i)&&(zn(e,n,t,p),e[18]=(4294901760&e[18])+p+2),p++}function zn(e,t,n,r){const s=n[r]<0,i=n[r+1],l=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(l)}finally{}}}else try{i.call(l)}finally{}}class Sn{constructor(t,n,r){this.factory=t,this.resolving=!1,this.canSeeViewProviders=n,this.injectImpl=r}}function Oi(e,t,n){const r=H(e);let s=0;for(;s<n.length;){const i=n[s];if("number"==typeof i){if(0!==i)break;s++;const a=n[s++],l=n[s++],p=n[s++];r?e.setAttribute(t,l,p,a):t.setAttributeNS(a,l,p)}else{const a=i,l=n[++s];Co(a)?r&&e.setProperty(t,a,l):r?e.setAttribute(t,a,l):t.setAttribute(a,l),s++}}return s}function la(e){return 3===e||4===e||6===e}function Co(e){return 64===e.charCodeAt(0)}function Pi(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||wo(e,n,s,null,-1===n||2===n?t[++r]:null)}}return e}function wo(e,t,n,r,s){let i=0,a=e.length;if(-1===t)a=-1;else for(;i<e.length;){const l=e[i++];if("number"==typeof l){if(l===t){a=-1;break}if(l>t){a=i-1;break}}}for(;i<e.length;){const l=e[i];if("number"==typeof l)break;if(l===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!==a&&(e.splice(a,0,t),i=a+1),e.splice(i++,0,n),null!==r&&e.splice(i++,0,r),null!==s&&e.splice(i++,0,s)}function ca(e){return-1!==e}function zs(e){return 32767&e}function Gs(e,t){let n=function(e){return e>>16}(e),r=t;for(;n>0;)r=r[15],n--;return r}let Zs=!0;function Ws(e){const t=Zs;return Zs=e,t}let su=0;function gi(e,t){const n=Ni(e,t);if(-1!==n)return n;const r=t[1];r.firstCreatePass&&(e.injectorIndex=t.length,Fi(r.data,e),Fi(t,null),Fi(r.blueprint,null));const s=qs(e,t),i=e.injectorIndex;if(ca(s)){const a=zs(s),l=Gs(s,t),p=l[1].data;for(let b=0;b<8;b++)t[i+b]=l[a+b]|p[a+b]}return t[i+8]=s,i}function Fi(e,t){e.push(0,0,0,0,0,0,0,0,t)}function Ni(e,t){return-1===e.injectorIndex||e.parent&&e.parent.injectorIndex===e.injectorIndex||null===t[e.injectorIndex+8]?-1:e.injectorIndex}function qs(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],a=i.type;if(r=2===a?i.declTNode:1===a?s[6]:null,null===r)return-1;if(n++,s=s[15],-1!==r.injectorIndex)return r.injectorIndex|n<<16}return-1}function So(e,t,n){!function(e,t,n){let r;"string"==typeof n?r=n.charCodeAt(0)||0:n.hasOwnProperty(B)&&(r=n[B]),null==r&&(r=n[B]=su++);const s=255&r;t.data[e+(s>>5)]|=1<<s}(e,t,n)}function To(e,t,n){if(n&Re.Optional)return e;Xe(t,"NodeInjector")}function ha(e,t,n,r){if(n&Re.Optional&&void 0===r&&(r=null),0==(n&(Re.Self|Re.Host))){const s=e[9],i=Me(void 0);try{return s?s.get(t,r,n&Re.Optional):or(t,r,n&Re.Optional)}finally{Me(i)}}return To(r,t,n)}function pa(e,t,n,r=Re.Default,s){if(null!==e){const i=function(e){if("string"==typeof e)return e.charCodeAt(0)||0;const t=e.hasOwnProperty(B)?e[B]:void 0;return"number"==typeof t?t>=0?255&t:iu:t}(n);if("function"==typeof i){if(!Ai(t,e,r))return r&Re.Host?To(s,n,r):ha(t,n,r,s);try{const a=i(r);if(null!=a||r&Re.Optional)return a;Xe(n)}finally{pi()}}else if("number"==typeof i){let a=null,l=Ni(e,t),p=-1,b=r&Re.Host?t[16][6]:null;for((-1===l||r&Re.SkipSelf)&&(p=-1===l?qs(e,t):t[l+8],-1!==p&&ya(r,!1)?(a=t[1],l=zs(p),t=Gs(p,t)):l=-1);-1!==l;){const _=t[1];if(ma(i,l,_.data)){const R=ou(l,t,n,a,r,b);if(R!==ga)return R}p=t[l+8],-1!==p&&ya(r,t[1].data[l+8]===b)&&ma(i,l,t)?(a=_,l=zs(p),t=Gs(p,t)):l=-1}}}return ha(t,n,r,s)}const ga={};function iu(){return new rs(qt(),K())}function ou(e,t,n,r,s,i){const a=t[1],l=a.data[e+8],_=Li(l,a,n,null==r?fr(l)&&Zs:r!=a&&0!=(3&l.type),s&Re.Host&&i===l);return null!==_?Ys(t,a,_,l):ga}function Li(e,t,n,r,s){const i=e.providerIndexes,a=t.data,l=1048575&i,p=e.directiveStart,_=i>>20,O=s?l+_:e.directiveEnd;for(let j=r?l:l+_;j<O;j++){const q=a[j];if(j<p&&n===q||j>=p&&q.type===n)return j}if(s){const j=a[p];if(j&&mn(j)&&j.type===n)return p}return null}function Ys(e,t,n,r){let s=e[n];const i=t.data;if(function(e){return e instanceof Sn}(s)){const a=s;a.resolving&&function(e,t){throw new bt("200",`Circular dependency in DI detected for ${e}`)}(Ge(i[n]));const l=Ws(a.canSeeViewProviders);a.resolving=!0;const p=a.injectImpl?Me(a.injectImpl):null;Ai(e,r,Re.Default);try{s=e[n]=a.factory(void 0,i,e,r),t.firstCreatePass&&n>=r.directiveStart&&function(e,t,n){const{ngOnChanges:r,ngOnInit:s,ngDoCheck:i}=t.type.prototype;if(r){const a=Qr(t);(n.preOrderHooks||(n.preOrderHooks=[])).push(e,a),(n.preOrderCheckHooks||(n.preOrderCheckHooks=[])).push(e,a)}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!==p&&Me(p),Ws(l),a.resolving=!1,pi()}}return s}function ma(e,t,n){return!!(n[t+(e>>5)]&1<<e)}function ya(e,t){return!(e&Re.Self||e&Re.Host&&t)}class rs{constructor(t,n){this._tNode=t,this._lView=n}get(t,n,r){return pa(this._tNode,this._lView,t,r,n)}}function ki(e){return function(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(la(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 mi="__parameters__";function g(e,t,n){return nt(()=>{const r=function(e){return function(...n){if(e){const r=e(...n);for(const s in r)this[s]=r[s]}}}(t);function s(...i){if(this instanceof s)return r.apply(this,i),this;const a=new s(...i);return l.annotation=a,l;function l(p,b,_){const R=p.hasOwnProperty(mi)?p[mi]:Object.defineProperty(p,mi,{value:[]})[mi];for(;R.length<=_;)R.push(null);return(R[_]=R[_]||[]).push(a),p}}return n&&(s.prototype=Object.create(n.prototype)),s.prototype.ngMetadataName=e,s.annotationCls=s,s})}class x{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=kt({token:this,providedIn:n.providedIn||"root",factory:n.factory}))}toString(){return`InjectionToken ${this._desc}`}}const F=new x("AnalyzeForEntryComponents");function Gn(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)),Gn(r,t)):t!==e&&t.push(r)}return t}function as(e,t){e.forEach(n=>Array.isArray(n)?as(n,t):t(n))}function yc(e,t,n){t>=e.length?e.push(n):e.splice(t,0,n)}function va(e,t){return t>=e.length-1?e.pop():e.splice(t,1)[0]}function Mo(e,t){const n=[];for(let r=0;r<e;r++)n.push(t);return n}const Ao={},du="__NG_DI_FLAG__",ba="ngTempTokenPath",Hg=/\n/gm,Cc="__source",zg=se({provide:String,useValue:se});let xo;function wc(e){const t=xo;return xo=e,t}function Gg(e,t=Re.Default){if(void 0===xo)throw new Error("inject() must be called from an injection context");return null===xo?or(e,void 0,t):xo.get(e,t&Re.Optional?null:void 0,t)}function bn(e,t=Re.Default){return(Tt||Gg)(be(e),t)}function fu(e){const t=[];for(let n=0;n<e.length;n++){const r=be(e[n]);if(Array.isArray(r)){if(0===r.length)throw new Error("Arguments array must have arguments.");let s,i=Re.Default;for(let a=0;a<r.length;a++){const l=r[a],p=Zg(l);"number"==typeof p?-1===p?s=l.token:i|=p:s=l}t.push(bn(s,i))}else t.push(bn(r))}return t}function Ro(e,t){return e[du]=t,e.prototype[du]=t,e}function Zg(e){return e[du]}const Oo=Ro(g("Inject",e=>({token:e})),-1),yi=Ro(g("Optional"),8),Bi=Ro(g("SkipSelf"),4);class Oc{constructor(t){this.changingThisBreaksApplicationSecurity=t}toString(){return`SafeValue must use [property]=binding: ${this.changingThisBreaksApplicationSecurity} (see https://g.co/ng/security#xss)`}}const pm=/^(?:(?:https?|mailto|ftp|tel|file|sms):|[^&:/?#]*(?:[/?#]|$))/gi,gm=/^data:(?:image\/(?:bmp|gif|jpeg|jpg|png|tiff|webp)|video\/(?:mpeg|mp4|ogg|webm)|audio\/(?:mp3|oga|ogg|opus));base64,[a-z0-9+\/]+=*$/i;var sn=(()=>((sn=sn||{})[sn.NONE=0]="NONE",sn[sn.HTML=1]="HTML",sn[sn.STYLE=2]="STYLE",sn[sn.SCRIPT=3]="SCRIPT",sn[sn.URL=4]="URL",sn[sn.RESOURCE_URL=5]="RESOURCE_URL",sn))();function bu(e){const t=function(){const e=K();return e&&e[12]}();return t?t.sanitize(sn.URL,e)||"":function(e,t){const n=function(e){return e instanceof Oc&&e.getTypeName()||null}(e);if(null!=n&&n!==t){if("ResourceURL"===n&&"URL"===t)return!0;throw new Error(`Required a safe ${t}, got a ${n} (see https://g.co/ng/security#xss)`)}return n===t}(e,"URL")?function(e){return e instanceof Oc?e.changingThisBreaksApplicationSecurity:e}(e):function(e){return(e=String(e)).match(pm)||e.match(gm)?e:"unsafe:"+e}(Le(e))}const Hc="__ngContext__";function In(e,t){e[Hc]=t}function Cu(e){const t=function(e){return e[Hc]||null}(e);return t?Array.isArray(t)?t:t.lView:null}function Eu(e){return e.ngOriginalError}function Bm(e,...t){e.error(...t)}class jo{constructor(){this._console=console}handleError(t){const n=this._findOriginalError(t),r=(e=t)&&e.ngErrorLogger||Bm;var e;r(this._console,"ERROR",t),n&&r(this._console,"ORIGINAL ERROR",n)}_findOriginalError(t){let n=t&&Eu(t);for(;n&&Eu(n);)n=Eu(n);return n||null}}const Wc=(()=>("undefined"!=typeof requestAnimationFrame&&requestAnimationFrame||setTimeout).bind(Rt))();function ls(e){return e instanceof Function?e():e}var cs=(()=>((cs=cs||{})[cs.Important=1]="Important",cs[cs.DashCase=2]="DashCase",cs))();function Tu(e,t){return undefined(e,t)}function Bo(e){const t=e[3];return Jt(t)?t[3]:t}function Iu(e){return Jc(e[13])}function Mu(e){return Jc(e[4])}function Jc(e){for(;null!==e&&!Jt(e);)e=e[4];return e}function $i(e,t,n,r,s){if(null!=r){let i,a=!1;Jt(r)?i=r:Pt(r)&&(a=!0,r=r[0]);const l=ke(r);0===e&&null!==n?null==s?sd(t,n,l):vi(t,n,l,s||null,!0):1===e&&null!==n?vi(t,n,l,s||null,!0):2===e?function(e,t,n){const r=Ta(e,t);r&&function(e,t,n,r){H(e)?e.removeChild(t,n,r):t.removeChild(n)}(e,r,t,n)}(t,l,a):3===e&&t.destroyNode(l),null!=i&&function(e,t,n,r,s){const i=n[7];i!==ke(n)&&$i(t,e,r,i,s);for(let l=10;l<n.length;l++){const p=n[l];Uo(p[1],p,e,t,r,i)}}(t,e,i,n,s)}}function xu(e,t,n){return H(e)?e.createElement(t,n):null===n?e.createElement(t):e.createElementNS(n,t)}function ed(e,t){const n=e[9],r=n.indexOf(t),s=t[3];1024&t[2]&&(t[2]&=-1025,li(s,-1)),n.splice(r,1)}function Ru(e,t){if(e.length<=10)return;const n=10+t,r=e[n];if(r){const s=r[17];null!==s&&s!==e&&ed(s,r),t>0&&(e[n-1][4]=r[4]);const i=va(e,10+t);!function(e,t){Uo(e,t,t[11],2,null,null),t[0]=null,t[6]=null}(r[1],r);const a=i[19];null!==a&&a.detachView(i[1]),r[3]=null,r[4]=null,r[2]&=-129}return r}function td(e,t){if(!(256&t[2])){const n=t[11];H(n)&&n.destroyNode&&Uo(e,t,n,3,null,null),function(e){let t=e[13];if(!t)return Ou(e[1],e);for(;t;){let n=null;if(Pt(t))n=t[13];else{const r=t[10];r&&(n=r)}if(!n){for(;t&&!t[4]&&t!==e;)Pt(t)&&Ou(t[1],t),t=t[3];null===t&&(t=e),Pt(t)&&Ou(t[1],t),n=t&&t[4]}t=n}}(t)}}function Ou(e,t){if(!(256&t[2])){t[2]&=-129,t[2]|=256,function(e,t){let n;if(null!=e&&null!=(n=e.destroyHooks))for(let r=0;r<n.length;r+=2){const s=t[n[r]];if(!(s instanceof Sn)){const i=n[r+1];if(Array.isArray(i))for(let a=0;a<i.length;a+=2){const l=s[i[a]],p=i[a+1];try{p.call(l)}finally{}}else try{i.call(s)}finally{}}}}(e,t),function(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 a=n[i+1],l="function"==typeof a?a(t):ke(t[a]),p=r[s=n[i+2]],b=n[i+3];"boolean"==typeof b?l.removeEventListener(n[i],p,b):b>=0?r[s=b]():r[s=-b].unsubscribe(),i+=2}else{const a=r[s=n[i+1]];n[i].call(a)}if(null!==r){for(let i=s+1;i<r.length;i++)r[i]();t[7]=null}}(e,t),1===t[1].type&&H(t[11])&&t[11].destroy();const n=t[17];if(null!==n&&Jt(t[3])){n!==t[3]&&ed(n,t);const r=t[19];null!==r&&r.detachView(e)}}}function nd(e,t,n){return function(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===Ke.None||s===Ke.Emulated)return null}return ft(r,n)}(e,t.parent,n)}function vi(e,t,n,r,s){H(e)?e.insertBefore(t,n,r,s):t.insertBefore(n,r,s)}function sd(e,t,n){H(e)?e.appendChild(t,n):t.appendChild(n)}function id(e,t,n,r,s){null!==r?vi(e,t,n,r,s):sd(e,t,n)}function Ta(e,t){return H(e)?e.parentNode(t):t.parentNode}function od(e,t,n){return ud(e,t,n)}let ud=function(e,t,n){return 40&e.type?ft(e,n):null};function Ia(e,t,n,r){const s=nd(e,r,t),i=t[11],l=od(r.parent||t[6],r,t);if(null!=s)if(Array.isArray(n))for(let p=0;p<n.length;p++)id(i,s,n[p],l,!1);else id(i,s,n,l,!1)}function Ma(e,t){if(null!==t){const n=t.type;if(3&n)return ft(t,e);if(4&n)return Fu(-1,e[t.index]);if(8&n){const r=t.child;if(null!==r)return Ma(e,r);{const s=e[t.index];return Jt(s)?Fu(-1,s):ke(s)}}if(32&n)return Tu(t,e)()||ke(e[t.index]);{const r=cd(e,t);return null!==r?Array.isArray(r)?r[0]:Ma(Bo(e[16]),r):Ma(e,t.next)}}return null}function cd(e,t){return null!==t?e[16][6].projection[t.projection]:null}function Fu(e,t){const n=10+e+1;if(n<t.length){const r=t[n],s=r[1].firstChild;if(null!==s)return Ma(r,s)}return t[7]}function Nu(e,t,n,r,s,i,a){for(;null!=n;){const l=r[n.index],p=n.type;if(a&&0===t&&(l&&In(ke(l),r),n.flags|=4),64!=(64&n.flags))if(8&p)Nu(e,t,n.child,r,s,i,!1),$i(t,e,s,l,i);else if(32&p){const b=Tu(n,r);let _;for(;_=b();)$i(t,e,s,_,i);$i(t,e,s,l,i)}else 16&p?fd(e,t,r,n,s,i):$i(t,e,s,l,i);n=a?n.projectionNext:n.next}}function Uo(e,t,n,r,s,i){Nu(n,r,e.firstChild,t,s,i,!1)}function fd(e,t,n,r,s,i){const a=n[16],p=a[6].projection[r.projection];if(Array.isArray(p))for(let b=0;b<p.length;b++)$i(t,e,s,p[b],i);else Nu(e,t,p,a[3],s,i,!0)}function hd(e,t,n){H(e)?e.setAttribute(t,"style",n):t.style.cssText=n}function Lu(e,t,n){H(e)?""===n?e.removeAttribute(t,"class"):e.setAttribute(t,"class",n):t.className=n}function pd(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 gd="ng-template";function hy(e,t,n){let r=0;for(;r<e.length;){let s=e[r++];if(n&&"class"===s){if(s=e[r],-1!==pd(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 md(e){return 4===e.type&&e.value!==gd}function py(e,t,n){return t===(4!==e.type||n?e.value:gd)}function gy(e,t,n){let r=4;const s=e.attrs||[],i=function(e){for(let t=0;t<e.length;t++)if(la(e[t]))return t;return e.length}(s);let a=!1;for(let l=0;l<t.length;l++){const p=t[l];if("number"!=typeof p){if(!a)if(4&r){if(r=2|1&r,""!==p&&!py(e,p,n)||""===p&&1===t.length){if(Pr(r))return!1;a=!0}}else{const b=8&r?p:t[++l];if(8&r&&null!==e.attrs){if(!hy(e.attrs,b,n)){if(Pr(r))return!1;a=!0}continue}const R=my(8&r?"class":p,s,md(e),n);if(-1===R){if(Pr(r))return!1;a=!0;continue}if(""!==b){let O;O=R>i?"":s[R+1].toLowerCase();const j=8&r?O:null;if(j&&-1!==pd(j,b,0)||2&r&&b!==O){if(Pr(r))return!1;a=!0}}}}else{if(!a&&!Pr(r)&&!Pr(p))return!1;if(a&&Pr(p))continue;a=!1,r=p|1&r}}return Pr(r)||a}function Pr(e){return 0==(1&e)}function my(e,t,n,r){if(null===t)return-1;let s=0;if(r||!n){let i=!1;for(;s<t.length;){const a=t[s];if(a===e)return s;if(3===a||6===a)i=!0;else{if(1===a||2===a){let l=t[++s];for(;"string"==typeof l;)l=t[++s];continue}if(4===a)break;if(0===a){s+=4;continue}}s+=i?1:2}return-1}return function(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 yd(e,t,n=!1){for(let r=0;r<t.length;r++)if(gy(e,t[r],n))return!0;return!1}function by(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 vd(e,t){return e?":not("+t.trim()+")":t}function _y(e){let t=e[0],n=1,r=2,s="",i=!1;for(;n<e.length;){let a=e[n];if("string"==typeof a)if(2&r){const l=e[++n];s+="["+a+(l.length>0?'="'+l+'"':"")+"]"}else 8&r?s+="."+a:4&r&&(s+=" "+a);else""!==s&&!Pr(a)&&(t+=vd(i,s),s=""),r=a,i=i||!Pr(r);n++}return""!==s&&(t+=vd(i,s)),t}const Ye={};function Dd(e){bd(it(),K(),c()+e,ln())}function bd(e,t,n,r){if(!r)if(3==(3&t[2])){const i=e.preOrderCheckHooks;null!==i&&xe(t,i,n)}else{const i=e.preOrderHooks;null!==i&&Se(t,i,0,n)}D(n)}function Rd(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 a=e.data[i];mr(s),a.contentQueries(2,t[i],i)}}}function Vo(e,t,n,r,s,i,a,l,p,b){const _=t.blueprint.slice();return _[0]=s,_[2]=140|r,Bs(_),_[3]=_[15]=e,_[8]=n,_[10]=a||e&&e[10],_[11]=l||e&&e[11],_[12]=p||e&&e[12]||null,_[9]=b||e&&e[9]||null,_[6]=i,_[16]=2==t.type?e[16]:_,_}function zi(e,t,n,r,s){let i=e.data[t];if(null===i)i=function(e,t,n,r,s){const i=Ii(),a=di(),p=e.data[t]=function(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,a?i:i&&i.parent,n,t,r,s);return null===e.firstChild&&(e.firstChild=p),null!==i&&(a?null==i.child&&null!==p.parent&&(i.child=p):null===i.next&&(i.next=p)),p}(e,t,n,r,s),Ue.lFrame.inI18n&&(i.flags|=64);else if(64&i.type){i.type=n,i.value=r,i.attrs=s;const a=function(){const e=Ue.lFrame,t=e.currentTNode;return e.isParent?t:t.parent}();i.injectorIndex=null===a?-1:a.injectorIndex}return Hn(i,!0),i}function Gi(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 Ho(e,t,n){yr(t);try{const r=e.viewQuery;null!==r&&rl(1,r,n);const s=e.template;null!==s&&Od(e,t,s,1,n),e.firstCreatePass&&(e.firstCreatePass=!1),e.staticContentQueries&&Rd(e,t),e.staticViewQueries&&rl(2,e.viewQuery,n);const i=e.components;null!==i&&function(e,t){for(let n=0;n<t.length;n++)rv(e,t[n])}(t,i)}catch(r){throw e.firstCreatePass&&(e.incompleteFirstPass=!0,e.firstCreatePass=!1),r}finally{t[2]&=-5,$s()}}function Zi(e,t,n,r){const s=t[2];if(256==(256&s))return;yr(t);const i=ln();try{Bs(t),function(e){Ue.lFrame.bindingIndex=e}(e.bindingStartIndex),null!==n&&Od(e,t,n,2,r);const a=3==(3&s);if(!i)if(a){const b=e.preOrderCheckHooks;null!==b&&xe(t,b,null)}else{const b=e.preOrderHooks;null!==b&&Se(t,b,0,null),Je(t,0)}if(function(e){for(let t=Iu(e);null!==t;t=Mu(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])&&li(i,1),s[2]|=1024}}}(t),function(e){for(let t=Iu(e);null!==t;t=Mu(t))for(let n=10;n<t.length;n++){const r=t[n],s=r[1];tr(r)&&Zi(s,r,s.template,r[8])}}(t),null!==e.contentQueries&&Rd(e,t),!i)if(a){const b=e.contentCheckHooks;null!==b&&xe(t,b)}else{const b=e.contentHooks;null!==b&&Se(t,b,1),Je(t,1)}!function(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)D(~s);else{const i=s,a=n[++r],l=n[++r];Es(a,i),l(2,t[i])}}}finally{D(-1)}}(e,t);const l=e.components;null!==l&&function(e,t){for(let n=0;n<t.length;n++)nv(e,t[n])}(t,l);const p=e.viewQuery;if(null!==p&&rl(2,p,r),!i)if(a){const b=e.viewCheckHooks;null!==b&&xe(t,b)}else{const b=e.viewHooks;null!==b&&Se(t,b,2),Je(t,2)}!0===e.firstUpdatePass&&(e.firstUpdatePass=!1),i||(t[2]&=-73),1024&t[2]&&(t[2]&=-1025,li(t[3],-1))}finally{$s()}}function ky(e,t,n,r){const s=t[10],i=!ln(),a=Vn(t);try{i&&!a&&s.begin&&s.begin(),a&&Ho(e,t,r),Zi(e,t,n,r)}finally{i&&!a&&s.end&&s.end()}}function Od(e,t,n,r,s){const i=c(),a=2&r;try{D(-1),a&&t.length>20&&bd(e,t,20,ln()),n(r,s)}finally{D(i)}}function Yu(e,t,n){!Cs()||(function(e,t,n,r){const s=n.directiveStart,i=n.directiveEnd;e.firstCreatePass||gi(n,t),In(r,t);const a=n.initialInputs;for(let l=s;l<i;l++){const p=e.data[l],b=mn(p);b&&Qy(t,n,p);const _=Ys(t,e,l,n);In(_,t),null!==a&&Jy(0,l-s,_,p,0,a),b&&(Mt(n.index,t)[8]=_)}}(e,t,n,ft(n,t)),128==(128&n.flags)&&function(e,t,n){const r=n.directiveStart,s=n.directiveEnd,a=n.index,l=Ue.lFrame.currentDirectiveIndex;try{D(a);for(let p=r;p<s;p++){const b=e.data[p],_=t[p];hi(p),(null!==b.hostBindings||0!==b.hostVars||null!==b.hostAttrs)&&Vd(b,_)}}finally{D(-1),hi(l)}}(e,t,n))}function Ku(e,t,n=ft){const r=t.localNames;if(null!==r){let s=t.index+1;for(let i=0;i<r.length;i+=2){const a=r[i+1],l=-1===a?n(t,e):e[a];e[s++]=l}}}function Fd(e){const t=e.tView;return null===t||t.incompleteFirstPass?e.tView=Oa(1,null,e.template,e.decls,e.vars,e.directiveDefs,e.pipeDefs,e.viewQuery,e.schemas,e.consts):t}function Oa(e,t,n,r,s,i,a,l,p,b){const _=20+r,R=_+s,O=function(e,t){const n=[];for(let r=0;r<t;r++)n.push(r<e?null:Ye);return n}(_,R),j="function"==typeof b?b():b;return O[1]={type:e,blueprint:O,template:n,queries:null,viewQuery:l,declTNode:t,data:O.slice().fill(null,_),bindingStartIndex:_,expandoStartIndex:R,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 a?a():a,firstChild:null,schemas:p,consts:j,incompleteFirstPass:!1}}function kd(e,t,n,r){const s=Wd(t);null===n?s.push(r):(s.push(n),e.firstCreatePass&&qd(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 Qu(e,t,n,r){let s=!1;if(Cs()){const i=function(e,t,n){const r=e.directiveRegistry;let s=null;if(r)for(let i=0;i<r.length;i++){const a=r[i];yd(n,a.selectors,!1)&&(s||(s=[]),So(gi(n,t),e,a.type),mn(a)?(Hd(e,n),s.unshift(a)):s.push(a))}return s}(e,t,n),a=null===r?null:{"":-1};if(null!==i){s=!0,$d(n,e.data.length,i.length);for(let _=0;_<i.length;_++){const R=i[_];R.providersResolver&&R.providersResolver(R)}let l=!1,p=!1,b=Gi(e,t,i.length,null);for(let _=0;_<i.length;_++){const R=i[_];n.mergedAttrs=Pi(n.mergedAttrs,R.hostAttrs),zd(e,n,t,b,R),Ky(b,R,a),null!==R.contentQueries&&(n.flags|=8),(null!==R.hostBindings||null!==R.hostAttrs||0!==R.hostVars)&&(n.flags|=128);const O=R.type.prototype;!l&&(O.ngOnChanges||O.ngOnInit||O.ngDoCheck)&&((e.preOrderHooks||(e.preOrderHooks=[])).push(n.index),l=!0),!p&&(O.ngOnChanges||O.ngDoCheck)&&((e.preOrderCheckHooks||(e.preOrderCheckHooks=[])).push(n.index),p=!0),b++}!function(e,t){const r=t.directiveEnd,s=e.data,i=t.attrs,a=[];let l=null,p=null;for(let b=t.directiveStart;b<r;b++){const _=s[b],R=_.inputs,O=null===i||md(t)?null:Xy(R,i);a.push(O),l=jd(R,b,l),p=jd(_.outputs,b,p)}null!==l&&(l.hasOwnProperty("class")&&(t.flags|=16),l.hasOwnProperty("style")&&(t.flags|=32)),t.initialInputs=a,t.inputs=l,t.outputs=p}(e,n)}a&&function(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 bt("301",`Export of name '${t[s+1]}' not found!`);r.push(t[s],i)}}}(n,r,a)}return n.mergedAttrs=Pi(n.mergedAttrs,n.attrs),s}function Ud(e,t,n,r,s,i){const a=i.hostBindings;if(a){let l=e.hostBindingOpCodes;null===l&&(l=e.hostBindingOpCodes=[]);const p=~t.index;(function(e){let t=e.length;for(;t>0;){const n=e[--t];if("number"==typeof n&&n<0)return n}return 0})(l)!=p&&l.push(p),l.push(r,s,a)}}function Vd(e,t){null!==e.hostBindings&&e.hostBindings(1,t)}function Hd(e,t){t.flags|=2,(e.components||(e.components=[])).push(t.index)}function Ky(e,t,n){if(n){if(t.exportAs)for(let r=0;r<t.exportAs.length;r++)n[t.exportAs[r]]=e;mn(t)&&(n[""]=e)}}function $d(e,t,n){e.flags|=1,e.directiveStart=t,e.directiveEnd=t+n,e.providerIndexes=t}function zd(e,t,n,r,s){e.data[r]=s;const i=s.factory||(s.factory=Jn(s.type)),a=new Sn(i,mn(s),null);e.blueprint[r]=a,n[r]=a,Ud(e,t,0,r,Gi(e,n,s.hostVars,Ye),s)}function Qy(e,t,n){const r=ft(t,e),s=Fd(n),i=e[10],a=Pa(e,Vo(e,s,null,n.onPush?64:16,r,t,i,i.createRenderer(r,n),null,null));e[t.index]=a}function ds(e,t,n,r,s,i){const a=ft(e,t);!function(e,t,n,r,s,i,a){if(null==i)H(e)?e.removeAttribute(t,s,n):t.removeAttribute(s);else{const l=null==a?Le(i):a(i,r||"",s);H(e)?e.setAttribute(t,s,l,n):n?t.setAttributeNS(n,s,l):t.setAttribute(s,l)}}(t[11],a,i,e.value,n,r,s)}function Jy(e,t,n,r,s,i){const a=i[t];if(null!==a){const l=r.setInput;for(let p=0;p<a.length;){const b=a[p++],_=a[p++],R=a[p++];null!==l?r.setInput(n,R,b,_):n[_]=R}}}function Xy(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 Gd(e,t,n,r){return new Array(e,!0,!1,t,null,0,r,n,null,null)}function nv(e,t){const n=Mt(t,e);if(tr(n)){const r=n[1];80&n[2]?Zi(r,n,r.template,n[8]):n[5]>0&&Xu(n)}}function Xu(e){for(let r=Iu(e);null!==r;r=Mu(r))for(let s=10;s<r.length;s++){const i=r[s];if(1024&i[2]){const a=i[1];Zi(a,i,a.template,i[8])}else i[5]>0&&Xu(i)}const n=e[1].components;if(null!==n)for(let r=0;r<n.length;r++){const s=Mt(n[r],e);tr(s)&&s[5]>0&&Xu(s)}}function rv(e,t){const n=Mt(t,e),r=n[1];(function(e,t){for(let n=t.length;n<e.blueprint.length;n++)t.push(e.blueprint[n])})(r,n),Ho(r,n,n[8])}function Pa(e,t){return e[13]?e[14][4]=t:e[13]=t,e[14]=t,t}function el(e){for(;e;){e[2]|=64;const t=Bo(e);if(ni(e)&&!t)return e;e=t}return null}function nl(e,t,n){const r=t[10];r.begin&&r.begin();try{Zi(e,t,e.template,n)}catch(s){throw Kd(t,s),s}finally{r.end&&r.end()}}function Zd(e){!function(e){for(let t=0;t<e.components.length;t++){const n=e.components[t],r=Cu(n),s=r[1];ky(s,r,s.template,n)}}(e[8])}function rl(e,t,n){mr(0),t(e,n)}const uv=(()=>Promise.resolve(null))();function Wd(e){return e[7]||(e[7]=[])}function qd(e){return e.cleanup||(e.cleanup=[])}function Kd(e,t){const n=e[9],r=n?n.get(jo,null):null;r&&r.handleError(t)}function Qd(e,t,n,r,s){for(let i=0;i<n.length;){const a=n[i++],l=n[i++],p=t[a],b=e.data[a];null!==b.setInput?b.setInput(p,s,r,l):p[l]=s}}function As(e,t,n){const r=function(e,t){return ke(t[e])}(t,e);!function(e,t,n){H(e)?e.setValue(t,n):t.textContent=n}(e[11],r,n)}function Fa(e,t,n){let r=n?e.styles:null,s=n?e.classes:null,i=0;if(null!==t)for(let a=0;a<t.length;a++){const l=t[a];"number"==typeof l?i=l:1==i?s=Ne(s,l):2==i&&(r=Ne(r,l+": "+t[++a]+";"))}n?e.styles=r:e.stylesWithoutHost=r,n?e.classes=s:e.classesWithoutHost=s}const sl=new x("INJECTOR",-1);class Jd{get(t,n=Ao){if(n===Ao){const r=new Error(`NullInjectorError: No provider for ${V(t)}!`);throw r.name="NullInjectorError",r}return n}}const il=new x("Set Injector scope."),$o={},dv={};let ol;function Xd(){return void 0===ol&&(ol=new Jd),ol}function ef(e,t=null,n=null,r){const s=tf(e,t,n,r);return s._resolveInjectorDefTypes(),s}function tf(e,t=null,n=null,r){return new fv(e,n,t||Xd(),r)}class fv{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&&as(n,l=>this.processProvider(l,t,n)),as([t],l=>this.processInjectorType(l,[],i)),this.records.set(sl,Wi(void 0,this));const a=this.records.get(il);this.scope=null!=a?a.value:null,this.source=s||("object"==typeof t?null:V(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=Ao,r=Re.Default){this.assertNotDestroyed();const s=wc(this),i=Me(void 0);try{if(!(r&Re.SkipSelf)){let l=this.records.get(t);if(void 0===l){const p=("function"==typeof(e=t)||"object"==typeof e&&e instanceof x)&&An(t);l=p&&this.injectableDefInScope(p)?Wi(al(t),$o):null,this.records.set(t,l)}if(null!=l)return this.hydrate(t,l)}return(r&Re.Self?Xd():this.parent).get(t,n=r&Re.Optional&&n===Ao?null:n)}catch(a){if("NullInjectorError"===a.name){if((a[ba]=a[ba]||[]).unshift(V(t)),s)throw a;return function(e,t,n,r){const s=e[ba];throw t[Cc]&&s.unshift(t[Cc]),e.message=function(e,t,n,r=null){e=e&&"\n"===e.charAt(0)&&"\u0275"==e.charAt(1)?e.substr(2):e;let s=V(t);if(Array.isArray(t))s=t.map(V).join(" -> ");else if("object"==typeof t){let i=[];for(let a in t)if(t.hasOwnProperty(a)){let l=t[a];i.push(a+":"+("string"==typeof l?JSON.stringify(l):V(l)))}s=`{${i.join(", ")}}`}return`${n}${r?"("+r+")":""}[${s}]: ${e.replace(Hg,"\n ")}`}("\n"+e.message,s,n,r),e.ngTokenPath=s,e[ba]=null,e}(a,t,"R3InjectorError",this.source)}throw a}finally{Me(i),wc(s)}var e}_resolveInjectorDefTypes(){this.injectorDefTypes.forEach(t=>this.get(t))}toString(){const t=[];return this.records.forEach((r,s)=>t.push(V(s))),`R3Injector[${t.join(", ")}]`}assertNotDestroyed(){if(this._destroyed)throw new Error("Injector has already been destroyed.")}processInjectorType(t,n,r){if(!(t=be(t)))return!1;let s=vs(t);const i=null==s&&t.ngModule||void 0,a=void 0===i?t:i,l=-1!==r.indexOf(a);if(void 0!==i&&(s=vs(i)),null==s)return!1;if(null!=s.imports&&!l){let _;r.push(a);try{as(s.imports,R=>{this.processInjectorType(R,n,r)&&(void 0===_&&(_=[]),_.push(R))})}finally{}if(void 0!==_)for(let R=0;R<_.length;R++){const{ngModule:O,providers:j}=_[R];as(j,q=>this.processProvider(q,O,j||ct))}}this.injectorDefTypes.add(a);const p=Jn(a)||(()=>new a);this.records.set(a,Wi(p,$o));const b=s.providers;if(null!=b&&!l){const _=t;as(b,R=>this.processProvider(R,_,b))}return void 0!==i&&void 0!==t.providers}processProvider(t,n,r){let s=qi(t=be(t))?t:be(t&&t.provide);const i=(e=t,rf(e)?Wi(void 0,e.useValue):Wi(function(e,t,n){let r;if(qi(e)){const s=be(e);return Jn(s)||al(s)}if(rf(e))r=()=>be(e.useValue);else if(function(e){return!(!e||!e.useFactory)}(e))r=()=>e.useFactory(...fu(e.deps||[]));else if(function(e){return!(!e||!e.useExisting)}(e))r=()=>bn(be(e.useExisting));else{const s=be(e&&(e.useClass||e.provide));if(!function(e){return!!e.deps}(e))return Jn(s)||al(s);r=()=>new s(...fu(e.deps))}return r}(e),$o));var e;if(qi(t)||!0!==t.multi)this.records.get(s);else{let a=this.records.get(s);a||(a=Wi(void 0,$o,!0),a.factory=()=>fu(a.multi),this.records.set(s,a)),s=t,a.multi.push(t)}this.records.set(s,i)}hydrate(t,n){return n.value===$o&&(n.value=dv,n.value=n.factory()),"object"==typeof n.value&&n.value&&null!==(e=n.value)&&"object"==typeof e&&"function"==typeof e.ngOnDestroy&&this.onDestroy.add(n.value),n.value;var e}injectableDefInScope(t){if(!t.providedIn)return!1;const n=be(t.providedIn);return"string"==typeof n?"any"===n||n===this.scope:this.injectorDefTypes.has(n)}}function al(e){const t=An(e),n=null!==t?t.factory:Jn(e);if(null!==n)return n;if(e instanceof x)throw new Error(`Token ${V(e)} is missing a \u0275prov definition.`);if(e instanceof Function)return function(e){const t=e.length;if(t>0){const r=Mo(t,"?");throw new Error(`Can't resolve all parameters for ${V(e)}: (${r.join(", ")}).`)}const n=function(e){const t=e&&(e[dn]||e[Vr]);if(t){const n=function(e){if(e.hasOwnProperty("name"))return e.name;const t=(""+e).match(/^function\s*([^\s(]+)/);return null===t?"":t[1]}(e);return console.warn(`DEPRECATED: DI is instantiating a token "${n}" that inherits its @Injectable decorator but does not provide one itself.\nThis will become an error in a future version of Angular. Please add @Injectable() to the "${n}" class.`),t}return null}(e);return null!==n?()=>n.factory(e):()=>new e}(e);throw new Error("unreachable")}function Wi(e,t,n=!1){return{factory:e,value:t,multi:n?[]:void 0}}function rf(e){return null!==e&&"object"==typeof e&&zg in e}function qi(e){return"function"==typeof e}let Dr=(()=>{class e{static create(n,r){var s;if(Array.isArray(n))return ef({name:""},r,n,"");{const i=null!==(s=n.name)&&void 0!==s?s:"";return ef({name:i},n.parent,n.providers,i)}}}return e.THROW_IF_NOT_FOUND=Ao,e.NULL=new Jd,e.\u0275prov=kt({token:e,providedIn:"any",factory:()=>bn(sl)}),e.__NG_ELEMENT_ID__=-1,e})();function Mv(e,t){Qe(Cu(e)[1],qt())}let Na=null;function Yi(){if(!Na){const e=Rt.Symbol;if(e&&e.iterator)Na=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&&(Na=r)}}}return Na}function zo(e){return!!dl(e)&&(Array.isArray(e)||!(e instanceof Map)&&Yi()in e)}function dl(e){return null!==e&&("function"==typeof e||"object"==typeof e)}function fs(e,t,n){return e[t]=n}function Mn(e,t,n){return!Object.is(e[t],n)&&(e[t]=n,!0)}function fl(e,t,n,r){const s=K();return Mn(s,gr(),t)&&(it(),ds(C(),s,e,t,n,r)),fl}function If(e,t,n,r,s,i,a,l){const p=K(),b=it(),_=e+20,R=b.firstCreatePass?function(e,t,n,r,s,i,a,l,p){const b=t.consts,_=zi(t,e,4,a||null,vn(b,l));Qu(t,n,_,vn(b,p)),Qe(t,_);const R=_.tViews=Oa(2,_,r,s,i,t.directiveRegistry,t.pipeRegistry,null,t.schemas,b);return null!==t.queries&&(t.queries.template(t,_),R.queries=t.queries.embeddedTView(_)),_}(_,b,p,t,n,r,s,i,a):b.data[_];Hn(R,!1);const O=p[11].createComment("");Ia(b,p,O,R),In(O,p),Pa(p,p[_]=Gd(O,p,O,R)),hr(R)&&Yu(b,p,R),null!=a&&Ku(p,R,l)}function Zo(e,t=Re.Default){const n=K();return null===n?bn(e,t):pa(qt(),n,be(e),t)}function jf(){throw new Error("invalid")}function yl(e,t,n){const r=K();return Mn(r,gr(),t)&&function(e,t,n,r,s,i,a,l){const p=ft(t,n);let _,b=t.inputs;!l&&null!=b&&(_=b[r])?(Qd(e,n,_,r,s),fr(t)&&function(e,t){const n=Mt(t,e);16&n[2]||(n[2]|=64)}(n,t.index)):3&t.type&&(r=function(e){return"class"===e?"className":"for"===e?"htmlFor":"formaction"===e?"formAction":"innerHtml"===e?"innerHTML":"readonly"===e?"readOnly":"tabindex"===e?"tabIndex":e}(r),s=null!=a?a(s,t.value||"",r):s,H(i)?i.setProperty(p,r,s):Co(r)||(p.setProperty?p.setProperty(r,s):p[r]=s))}(it(),C(),r,e,t,r[11],n,!1),yl}function vl(e,t,n,r,s){const a=s?"class":"style";Qd(e,n,t.inputs[a],a,r)}function Dl(e,t,n,r){const s=K(),i=it(),a=20+e,l=s[11],p=s[a]=xu(l,t,Ue.lFrame.currentNamespace),b=i.firstCreatePass?function(e,t,n,r,s,i,a){const l=t.consts,b=zi(t,e,2,s,vn(l,i));return Qu(t,n,b,vn(l,a)),null!==b.attrs&&Fa(b,b.attrs,!1),null!==b.mergedAttrs&&Fa(b,b.mergedAttrs,!0),null!==t.queries&&t.queries.elementStart(t,b),b}(a,i,s,0,t,n,r):i.data[a];Hn(b,!0);const _=b.mergedAttrs;null!==_&&Oi(l,p,_);const R=b.classes;null!==R&&Lu(l,p,R);const O=b.styles;null!==O&&hd(l,p,O),64!=(64&b.flags)&&Ia(i,s,p,b),0===Ue.lFrame.elementDepthCount&&In(p,s),Ue.lFrame.elementDepthCount++,hr(b)&&(Yu(i,s,b),function(e,t,n){if(En(t)){const s=t.directiveEnd;for(let i=t.directiveStart;i<s;i++){const a=e.data[i];a.contentQueries&&a.contentQueries(1,n[i],i)}}}(i,b,s)),null!==r&&Ku(s,b)}function bl(){let e=qt();di()?xr():(e=e.parent,Hn(e,!1));const t=e;Ue.lFrame.elementDepthCount--;const n=it();n.firstCreatePass&&(Qe(n,e),En(e)&&n.queries.elementEnd(e)),null!=t.classesWithoutHost&&function(e){return 0!=(16&e.flags)}(t)&&vl(n,t,K(),t.classesWithoutHost,!0),null!=t.stylesWithoutHost&&function(e){return 0!=(32&e.flags)}(t)&&vl(n,t,K(),t.stylesWithoutHost,!1)}function Bf(e,t,n,r){Dl(e,t,n,r),bl()}function _l(e){return!!e&&"function"==typeof e.then}function Hf(e){return!!e&&"function"==typeof e.subscribe}const $f=Hf;function Cl(e,t,n,r){const s=K(),i=it(),a=qt();return function(e,t,n,r,s,i,a,l){const p=hr(r),_=e.firstCreatePass&&qd(e),R=t[8],O=Wd(t);let j=!0;if(3&r.type||l){const me=ft(r,t),we=l?l(me):me,X=O.length,Pe=l?ut=>l(ke(ut[r.index])):r.index;if(H(n)){let ut=null;if(!l&&p&&(ut=function(e,t,n,r){const s=e.cleanup;if(null!=s)for(let i=0;i<s.length-1;i+=2){const a=s[i];if(a===n&&s[i+1]===r){const l=t[7],p=s[i+2];return l.length>p?l[p]:null}"string"==typeof a&&(i+=2)}return null}(e,t,s,r.index)),null!==ut)(ut.__ngLastListenerFn__||ut).__ngNextListenerFn__=i,ut.__ngLastListenerFn__=i,j=!1;else{i=wl(r,t,R,i,!1);const Ct=n.listen(we,s,i);O.push(i,Ct),_&&_.push(s,Pe,X,X+1)}}else i=wl(r,t,R,i,!0),we.addEventListener(s,i,a),O.push(i),_&&_.push(s,Pe,X,a)}else i=wl(r,t,R,i,!1);const q=r.outputs;let ie;if(j&&null!==q&&(ie=q[s])){const me=ie.length;if(me)for(let we=0;we<me;we+=2){const ir=t[ie[we]][ie[we+1]].subscribe(i),Ci=O.length;O.push(i,ir),_&&_.push(s,r.index,Ci,-(Ci+1))}}}(i,s,s[11],a,e,t,!!n,r),Cl}function Zf(e,t,n,r){try{return!1!==n(r)}catch(s){return Kd(e,s),!1}}function wl(e,t,n,r,s){return function i(a){if(a===Function)return r;const l=2&e.flags?Mt(e.index,t):t;0==(32&t[2])&&el(l);let p=Zf(t,0,r,a),b=i.__ngNextListenerFn__;for(;b;)p=Zf(t,0,b,a)&&p,b=b.__ngNextListenerFn__;return s&&!1===p&&(a.preventDefault(),a.returnValue=!1),p}}function Wf(e=1){return function(e){return(Ue.lFrame.contextLView=function(e,t){for(;e>0;)t=t[15],e--;return t}(e,Ue.lFrame.contextLView))[8]}(e)}function fD(e,t){let n=null;const r=function(e){const t=e.attrs;if(null!=t){const n=t.indexOf(5);if(0==(1&n))return t[n+1]}return null}(e);for(let s=0;s<t.length;s++){const i=t[s];if("*"!==i){if(null===r?yd(e,i,!0):by(r,i))return s}else n=s}return n}function qf(e){const t=K()[16][6];if(!t.projection){const r=t.projection=Mo(e?e.length:1,null),s=r.slice();let i=t.child;for(;null!==i;){const a=e?fD(i,e):0;null!==a&&(s[a]?s[a].projectionNext=i:r[a]=i,s[a]=i),i=i.next}}}function Yf(e,t=0,n){const r=K(),s=it(),i=zi(s,20+e,16,null,n||null);null===i.projection&&(i.projection=t),xr(),64!=(64&i.flags)&&function(e,t,n){fd(t[11],0,t,n,nd(e,n,t),od(n.parent||t[6],n,t))}(s,r,i)}function bh(e,t=""){const n=K(),r=it(),s=e+20,i=r.firstCreatePass?zi(r,s,1,t,null):r.data[s],a=n[s]=function(e,t){return H(e)?e.createText(t):e.createTextNode(t)}(n[11],t);Ia(r,n,a,i),Hn(i,!1)}function Tl(e){return Ba("",e,""),Tl}function Ba(e,t,n){const r=K(),s=function(e,t,n,r){return Mn(e,gr(),n)?t+Le(n)+r:Ye}(r,e,t,n);return s!==Ye&&As(r,c(),s),Ba}const bi=void 0;var KD=["en",[["a","p"],["AM","PM"],bi],[["AM","PM"],bi,bi],[["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"]],bi,[["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"]],bi,[["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}",bi,"{1} 'at' {0}",bi],[".",",",";","%","+","-","E","\xd7","\u2030","\u221e","NaN",":"],["#,##0.###","#,##0%","\xa4#,##0.00","#E0"],"USD","$","US Dollar",{},"ltr",function(e){const n=Math.floor(Math.abs(e)),r=e.toString().replace(/^[^.]*\.?/,"").length;return 1===n&&0===r?1:5}];let ao={};function Il(e){const t=function(e){return e.toLowerCase().replace(/_/g,"-")}(e);let n=Vh(t);if(n)return n;const r=t.split("-")[0];if(n=Vh(r),n)return n;if("en"===r)return KD;throw new Error(`Missing locale data for the locale "${e}".`)}function Uh(e){return Il(e)[Be.PluralCase]}function Vh(e){return e in ao||(ao[e]=Rt.ng&&Rt.ng.common&&Rt.ng.common.locales&&Rt.ng.common.locales[e]),ao[e]}var Be=(()=>((Be=Be||{})[Be.LocaleId=0]="LocaleId",Be[Be.DayPeriodsFormat=1]="DayPeriodsFormat",Be[Be.DayPeriodsStandalone=2]="DayPeriodsStandalone",Be[Be.DaysFormat=3]="DaysFormat",Be[Be.DaysStandalone=4]="DaysStandalone",Be[Be.MonthsFormat=5]="MonthsFormat",Be[Be.MonthsStandalone=6]="MonthsStandalone",Be[Be.Eras=7]="Eras",Be[Be.FirstDayOfWeek=8]="FirstDayOfWeek",Be[Be.WeekendRange=9]="WeekendRange",Be[Be.DateFormat=10]="DateFormat",Be[Be.TimeFormat=11]="TimeFormat",Be[Be.DateTimeFormat=12]="DateTimeFormat",Be[Be.NumberSymbols=13]="NumberSymbols",Be[Be.NumberFormats=14]="NumberFormats",Be[Be.CurrencyCode=15]="CurrencyCode",Be[Be.CurrencySymbol=16]="CurrencySymbol",Be[Be.CurrencyName=17]="CurrencyName",Be[Be.Currencies=18]="Currencies",Be[Be.Directionality=19]="Directionality",Be[Be.PluralCase=20]="PluralCase",Be[Be.ExtraData=21]="ExtraData",Be))();const Ua="en-US";let Hh=Ua;class hp{}class Xb{resolveComponentFactory(t){throw function(e){const t=Error(`No component factory found for ${V(e)}. Did you add it to @NgModule.entryComponents?`);return t.ngComponent=e,t}(t)}}let Jo=(()=>{class e{}return e.NULL=new Xb,e})();function e_(){return lo(qt(),K())}function lo(e,t){return new Xo(ft(e,t))}let Xo=(()=>{class e{constructor(n){this.nativeElement=n}}return e.__NG_ELEMENT_ID__=e_,e})();function t_(e){return e instanceof Xo?e.nativeElement:e}class gp{}let n_=(()=>{class e{}return e.__NG_ELEMENT_ID__=()=>function(){const e=K(),n=Mt(qt().index,e);return function(e){return e[11]}(Pt(n)?n:e)}(),e})(),i_=(()=>{class e{}return e.\u0275prov=kt({token:e,providedIn:"root",factory:()=>null}),e})();class mp{constructor(t){this.full=t,this.major=t.split(".")[0],this.minor=t.split(".")[1],this.patch=t.split(".").slice(2).join(".")}}const o_=new mp("13.1.1"),Fl={};function Ga(e,t,n,r,s=!1){for(;null!==n;){const i=t[n.index];if(null!==i&&r.push(ke(i)),Jt(i))for(let l=10;l<i.length;l++){const p=i[l],b=p[1].firstChild;null!==b&&Ga(p[1],p,b,r)}const a=n.type;if(8&a)Ga(e,t,n.child,r);else if(32&a){const l=Tu(n,t);let p;for(;p=l();)r.push(p)}else if(16&a){const l=cd(t,n);if(Array.isArray(l))r.push(...l);else{const p=Bo(t[16]);Ga(p[1],p,l,r,!0)}}n=s?n.projectionNext:n.next}return r}class ea{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 Ga(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(Jt(t)){const n=t[8],r=n?n.indexOf(this):-1;r>-1&&(Ru(t,r),va(n,r))}this._attachedToViewContainer=!1}td(this._lView[1],this._lView)}onDestroy(t){kd(this._lView[1],this._lView,null,t)}markForCheck(){el(this._cdRefInjectingView||this._lView)}detach(){this._lView[2]&=-129}reattach(){this._lView[2]|=128}detectChanges(){nl(this._lView[1],this._lView,this.context)}checkNoChanges(){!function(e,t,n){Rr(!0);try{nl(e,t,n)}finally{Rr(!1)}}(this._lView[1],this._lView,this.context)}attachToViewContainerRef(){if(this._appRef)throw new Error("This view is already attached directly to the ApplicationRef!");this._attachedToViewContainer=!0}detachFromAppRef(){var t;this._appRef=null,Uo(this._lView[1],t=this._lView,t[11],2,null,null)}attachToAppRef(t){if(this._attachedToViewContainer)throw new Error("This view is already attached to a ViewContainer!");this._appRef=t}}class a_ extends ea{constructor(t){super(t),this._view=t}detectChanges(){Zd(this._view)}checkNoChanges(){!function(e){Rr(!0);try{Zd(e)}finally{Rr(!1)}}(this._view)}get context(){return null}}class yp extends Jo{constructor(t){super(),this.ngModule=t}resolveComponentFactory(t){const n=Ht(t);return new Nl(n,this.ngModule)}}function vp(e){const t=[];for(let n in e)e.hasOwnProperty(n)&&t.push({propName:e[n],templateName:n});return t}const l_=new x("SCHEDULER_TOKEN",{providedIn:"root",factory:()=>Wc});class Nl extends hp{constructor(t,n){super(),this.componentDef=t,this.ngModule=n,this.componentType=t.type,this.selector=t.selectors.map(_y).join(","),this.ngContentSelectors=t.ngContentSelectors?t.ngContentSelectors:[],this.isBoundToModule=!!n}get inputs(){return vp(this.componentDef.inputs)}get outputs(){return vp(this.componentDef.outputs)}create(t,n,r,s){const i=(s=s||this.ngModule)?function(e,t){return{get:(n,r,s)=>{const i=e.get(n,Fl,s);return i!==Fl||r===Fl?i:t.get(n,r,s)}}}(t,s.injector):t,a=i.get(gp,te),l=i.get(i_,null),p=a.createRenderer(null,this.componentDef),b=this.componentDef.selectors[0][0]||"div",_=r?function(e,t,n){if(H(e))return e.selectRootElement(t,n===Ke.ShadowDom);let r="string"==typeof t?e.querySelector(t):t;return r.textContent="",r}(p,r,this.componentDef.encapsulation):xu(a.createRenderer(null,this.componentDef),b,function(e){const t=e.toLowerCase();return"svg"===t?"http://www.w3.org/2000/svg":"math"===t?"http://www.w3.org/1998/MathML/":null}(b)),R=this.componentDef.onPush?576:528,O=function(e,t){return{components:[],scheduler:e||Wc,clean:uv,playerHandler:t||null,flags:0}}(),j=Oa(0,null,null,1,0,null,null,null,null,null),q=Vo(null,j,O,R,null,null,a,p,l,i);let ie,me;yr(q);try{const we=function(e,t,n,r,s,i){const a=n[1];n[20]=e;const p=zi(a,20,2,"#host",null),b=p.mergedAttrs=t.hostAttrs;null!==b&&(Fa(p,b,!0),null!==e&&(Oi(s,e,b),null!==p.classes&&Lu(s,e,p.classes),null!==p.styles&&hd(s,e,p.styles)));const _=r.createRenderer(e,t),R=Vo(n,Fd(t),null,t.onPush?64:16,n[20],p,r,_,i||null,null);return a.firstCreatePass&&(So(gi(p,n),a,t.type),Hd(a,p),$d(p,n.length,1)),Pa(n,R),n[20]=R}(_,this.componentDef,q,a,p);if(_)if(r)Oi(p,_,["ng-version",o_.full]);else{const{attrs:X,classes:Pe}=function(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(!Pr(s))break;s=i}r++}return{attrs:t,classes:n}}(this.componentDef.selectors[0]);X&&Oi(p,_,X),Pe&&Pe.length>0&&Lu(p,_,Pe.join(" "))}if(me=Gt(j,20),void 0!==n){const X=me.projection=[];for(let Pe=0;Pe<this.ngContentSelectors.length;Pe++){const ut=n[Pe];X.push(null!=ut?Array.from(ut):null)}}ie=function(e,t,n,r,s){const i=n[1],a=function(e,t,n){const r=qt();e.firstCreatePass&&(n.providersResolver&&n.providersResolver(n),zd(e,r,t,Gi(e,t,1,null),n));const s=Ys(t,e,r.directiveStart,r);In(s,t);const i=ft(r,t);return i&&In(i,t),s}(i,n,t);if(r.components.push(a),e[8]=a,s&&s.forEach(p=>p(a,t)),t.contentQueries){const p=qt();t.contentQueries(1,a,p.directiveStart)}const l=qt();return!i.firstCreatePass||null===t.hostBindings&&null===t.hostAttrs||(D(l.index),Ud(n[1],l,0,l.directiveStart,l.directiveEnd,t),Vd(t,a)),a}(we,this.componentDef,q,O,[Mv]),Ho(j,q,null)}finally{$s()}return new f_(this.componentType,ie,lo(me,q),q,me)}}class f_ extends class{}{constructor(t,n,r,s,i){super(),this.location=r,this._rootLView=s,this._tNode=i,this.instance=n,this.hostView=this.changeDetectorRef=new a_(s),this.componentType=t}get injector(){return new rs(this._tNode,this._rootLView)}destroy(){this.hostView.destroy()}onDestroy(t){this.hostView.onDestroy(t)}}class co{}class Dp{}const fo=new Map;class Cp extends co{constructor(t,n){super(),this._parent=n,this._bootstrapComponents=[],this.injector=this,this.destroyCbs=[],this.componentFactoryResolver=new yp(this);const r=pt(t);this._bootstrapComponents=ls(r.bootstrap),this._r3Injector=tf(t,n,[{provide:co,useValue:this},{provide:Jo,useValue:this.componentFactoryResolver}],V(t)),this._r3Injector._resolveInjectorDefTypes(),this.instance=this.get(t)}get(t,n=Dr.THROW_IF_NOT_FOUND,r=Re.Default){return t===Dr||t===co||t===sl?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 Ll extends Dp{constructor(t){super(),this.moduleType=t,null!==pt(t)&&function(e){const t=new Set;!function n(r){const s=pt(r,!0),i=s.id;null!==i&&(function(e,t,n){if(t&&t!==n)throw new Error(`Duplicate module registered for ${e} - ${V(t)} vs ${V(t.name)}`)}(i,fo.get(i),r),fo.set(i,r));const a=ls(s.imports);for(const l of a)t.has(l)||(t.add(l),n(l))}(e)}(t)}create(t){return new Cp(this.moduleType,t)}}function wp(e,t,n){const r=Xt()+e,s=K();return s[r]===Ye?fs(s,r,n?t.call(n):t()):function(e,t){return e[t]}(s,r)}function Ep(e,t,n,r){return Sp(K(),Xt(),e,t,n,r)}function Sp(e,t,n,r,s,i){const a=t+n;return Mn(e,a,s)?fs(e,a+1,i?r.call(i,s):r(s)):function(e,t){const n=e[t];return n===Ye?void 0:n}(e,a+1)}function xp(e,t){const n=it();let r;const s=e+20;n.firstCreatePass?(r=function(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=Jn(r.type)),a=Me(Zo);try{const l=Ws(!1),p=i();return Ws(l),function(e,t,n,r){n>=e.data.length&&(e.data[n]=null,e.blueprint[n]=null),t[n]=r}(n,K(),s,p),p}finally{Me(a)}}function Rp(e,t,n){const r=e+20,s=K(),i=function(e,t){return e[t]}(s,r);return function(e,t){return e[1].data[t].pure}(s,r)?Sp(s,Xt(),t,i.transform,n,i):i.transform(n)}function kl(e){return t=>{setTimeout(e,void 0,t)}}const gs=class extends re.xQ{constructor(t=!1){super(),this.__isAsync=t}emit(t){super.next(t)}subscribe(t,n,r){var s,i,a;let l=t,p=n||(()=>null),b=r;if(t&&"object"==typeof t){const R=t;l=null===(s=R.next)||void 0===s?void 0:s.bind(R),p=null===(i=R.error)||void 0===i?void 0:i.bind(R),b=null===(a=R.complete)||void 0===a?void 0:a.bind(R)}this.__isAsync&&(p=kl(p),l&&(l=kl(l)),b&&(b=kl(b)));const _=super.subscribe({next:l,error:p,complete:b});return t instanceof ve.w&&t.add(_),_}};function A_(){return this._results[Yi()]()}class jl{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=Yi(),r=jl.prototype;r[n]||(r[n]=A_)}get changes(){return this._changes||(this._changes=new gs)}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=Gn(t);(this._changesDetected=!function(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 ra=(()=>{class e{}return e.__NG_ELEMENT_ID__=O_,e})();const x_=ra,R_=class extends x_{constructor(t,n,r){super(),this._declarationLView=t,this._declarationTContainer=n,this.elementRef=r}createEmbeddedView(t){const n=this._declarationTContainer.tViews,r=Vo(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)),Ho(n,r,t),new ea(r)}};function O_(){return Za(qt(),K())}function Za(e,t){return 4&e.type?new R_(t,e,lo(e,t)):null}let Wa=(()=>{class e{}return e.__NG_ELEMENT_ID__=P_,e})();function P_(){return Fp(qt(),K())}const F_=Wa,Op=class extends F_{constructor(t,n,r){super(),this._lContainer=t,this._hostTNode=n,this._hostLView=r}get element(){return lo(this._hostTNode,this._hostLView)}get injector(){return new rs(this._hostTNode,this._hostLView)}get parentInjector(){const t=qs(this._hostTNode,this._hostLView);if(ca(t)){const n=Gs(t,this._hostLView),r=zs(t);return new rs(n[1].data[r+8],n)}return new rs(null,this._hostLView)}clear(){for(;this.length>0;)this.remove(this.length-1)}get(t){const n=Pp(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 a=t&&!("function"==typeof t);let l;if(a)l=n;else{const R=n||{};l=R.index,r=R.injector,s=R.projectableNodes,i=R.ngModuleRef}const p=a?t:new Nl(Ht(t)),b=r||this.parentInjector;if(!i&&null==p.ngModule&&b){const R=b.get(co,null);R&&(i=R)}const _=p.create(b,s,void 0,i);return this.insert(_.hostView,l),_}insert(t,n){const r=t._lView,s=r[1];if(Jt(r[3])){const _=this.indexOf(t);if(-1!==_)this.detach(_);else{const R=r[3],O=new Op(R,R[6],R[3]);O.detach(O.indexOf(t))}}const i=this._adjustIndex(n),a=this._lContainer;!function(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],yc(n,10+r,t)):(n.push(t),t[4]=null),t[3]=n;const a=t[17];null!==a&&n!==a&&function(e,t){const n=e[9];t[16]!==t[3][3][16]&&(e[2]=!0),null===n?e[9]=[t]:n.push(t)}(a,t);const l=t[19];null!==l&&l.insertView(e),t[2]|=128}(s,r,a,i);const l=Fu(i,a),p=r[11],b=Ta(p,a[7]);return null!==b&&function(e,t,n,r,s,i){r[0]=s,r[6]=t,Uo(e,r,n,1,s,i)}(s,a[6],p,r,b,l),t.attachToViewContainerRef(),yc(Bl(a),i,t),t}move(t,n){return this.insert(t,n)}indexOf(t){const n=Pp(this._lContainer);return null!==n?n.indexOf(t):-1}remove(t){const n=this._adjustIndex(t,-1),r=Ru(this._lContainer,n);r&&(va(Bl(this._lContainer),n),td(r[1],r))}detach(t){const n=this._adjustIndex(t,-1),r=Ru(this._lContainer,n);return r&&null!=va(Bl(this._lContainer),n)?new ea(r):null}_adjustIndex(t,n=0){return null==t?this.length+n:t}};function Pp(e){return e[8]}function Bl(e){return e[8]||(e[8]=[])}function Fp(e,t){let n;const r=t[e.index];if(Jt(r))n=r;else{let s;if(8&e.type)s=ke(r);else{const i=t[11];s=i.createComment("");const a=ft(e,t);vi(i,Ta(i,a),s,function(e,t){return H(e)?e.nextSibling(t):t.nextSibling}(i,a),!1)}t[e.index]=n=Gd(r,t,s,e),Pa(t,n)}return new Op(n,e,t)}class Ul{constructor(t){this.queryList=t,this.matches=null}clone(){return new Ul(this.queryList)}setDirty(){this.queryList.setDirty()}}class Vl{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 a=n.getByIndex(i);s.push(this.queries[a.indexInDeclarationView].clone())}return new Vl(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!==Hp(t,n).matches&&this.queries[n].setDirty()}}class Np{constructor(t,n,r=null){this.predicate=t,this.flags=n,this.read=r}}class Hl{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 Hl(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 $l{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 $l(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,k_(n,i)),this.matchTNodeWithReadOption(t,n,Li(n,t,i,!1,!1))}else r===ra?4&n.type&&this.matchTNodeWithReadOption(t,n,-1):this.matchTNodeWithReadOption(t,n,Li(n,t,r,!1,!1))}matchTNodeWithReadOption(t,n,r){if(null!==r){const s=this.metadata.read;if(null!==s)if(s===Xo||s===Wa||s===ra&&4&n.type)this.addMatch(n.index,-2);else{const i=Li(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 k_(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 B_(e,t,n,r){return-1===n?function(e,t){return 11&e.type?lo(e,t):4&e.type?Za(e,t):null}(t,e):-2===n?function(e,t,n){return n===Xo?lo(t,e):n===ra?Za(t,e):n===Wa?Fp(t,e):void 0}(e,t,r):Ys(e,e[1],n,t)}function Lp(e,t,n,r){const s=t[19].queries[r];if(null===s.matches){const i=e.data,a=n.matches,l=[];for(let p=0;p<a.length;p+=2){const b=a[p];l.push(b<0?null:B_(t,i[b],a[p+1],n.metadata.read))}s.matches=l}return s.matches}function zl(e,t,n,r){const s=e.queries.getByIndex(n),i=s.matches;if(null!==i){const a=Lp(e,t,s,n);for(let l=0;l<i.length;l+=2){const p=i[l];if(p>0)r.push(a[l/2]);else{const b=i[l+1],_=t[-p];for(let R=10;R<_.length;R++){const O=_[R];O[17]===O[3]&&zl(O[1],O,b,r)}if(null!==_[9]){const R=_[9];for(let O=0;O<R.length;O++){const j=R[O];zl(j[1],j,b,r)}}}}}return r}function kp(e){const t=K(),n=it(),r=Mi();mr(r+1);const s=Hp(n,r);if(e.dirty&&Vn(t)===(2==(2&s.metadata.flags))){if(null===s.matches)e.reset([]);else{const i=s.crossesNgTemplate?zl(n,t,r,[]):Lp(n,t,s,r);e.reset(i,t_),e.notifyOnChanges()}return!0}return!1}function jp(e,t,n,r){const s=it();if(s.firstCreatePass){const i=qt();(function(e,t,n){null===e.queries&&(e.queries=new Hl),e.queries.track(new $l(t,n))})(s,new Np(t,n,r),i.index),function(e,t){const n=e.contentQueries||(e.contentQueries=[]);t!==(n.length?n[n.length-1]:-1)&&n.push(e.queries.length-1,t)}(s,e),2==(2&n)&&(s.staticContentQueries=!0)}!function(e,t,n){const r=new jl(4==(4&n));kd(e,t,r,r.destroy),null===t[19]&&(t[19]=new Vl),t[19].queries.push(new Ul(r))}(s,K(),n)}function Bp(){return e=K(),t=Mi(),e[19].queries[t].queryList;var e,t}function Hp(e,t){return e.queries.getByIndex(t)}function Ka(...e){}const Kl=new x("Application Initializer");let po=(()=>{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(_l(i))n.push(i);else if($f(i)){const a=new Promise((l,p)=>{i.subscribe({complete:l,error:p})});n.push(a)}}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)(bn(Kl,8))},e.\u0275prov=kt({token:e,factory:e.\u0275fac}),e})();const ig=new x("AppId"),uC={provide:ig,useFactory:function(){return`${Ql()}${Ql()}${Ql()}`},deps:[]};function Ql(){return String.fromCharCode(97+Math.floor(25*Math.random()))}const og=new x("Platform Initializer"),ag=new x("Platform ID"),ug=new x("appBootstrapListener");let lg=(()=>{class e{log(n){console.log(n)}warn(n){console.warn(n)}}return e.\u0275fac=function(n){return new(n||e)},e.\u0275prov=kt({token:e,factory:e.\u0275fac}),e})();const Qa=new x("LocaleId"),cg=new x("DefaultCurrencyCode");class lC{constructor(t,n){this.ngModuleFactory=t,this.componentFactories=n}}let Jl=(()=>{class e{compileModuleSync(n){return new Ll(n)}compileModuleAsync(n){return Promise.resolve(this.compileModuleSync(n))}compileModuleAndAllComponentsSync(n){const r=this.compileModuleSync(n),i=ls(pt(n).declarations).reduce((a,l)=>{const p=Ht(l);return p&&a.push(new Nl(p)),a},[]);return new lC(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=kt({token:e,factory:e.\u0275fac}),e})();const dC=(()=>Promise.resolve(0))();function Xl(e){"undefined"==typeof Zone?dC.then(()=>{e&&e.apply(null,null)}):Zone.current.scheduleMicroTask("scheduleMicrotask",e)}class sr{constructor({enableLongStackTrace:t=!1,shouldCoalesceEventChangeDetection:n=!1,shouldCoalesceRunChangeDetection:r=!1}){if(this.hasPendingMacrotasks=!1,this.hasPendingMicrotasks=!1,this.isStable=!0,this.onUnstable=new gs(!1),this.onMicrotaskEmpty=new gs(!1),this.onStable=new gs(!1),this.onError=new gs(!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(){let e=Rt.requestAnimationFrame,t=Rt.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(e){const t=()=>{!function(e){e.isCheckStableRunning||-1!==e.lastRequestAnimationFrameId||(e.lastRequestAnimationFrameId=e.nativeRequestAnimationFrame.call(Rt,()=>{e.fakeTopEventTask||(e.fakeTopEventTask=Zone.root.scheduleEventTask("fakeTopEventTask",()=>{e.lastRequestAnimationFrameId=-1,tc(e),e.isCheckStableRunning=!0,ec(e),e.isCheckStableRunning=!1},void 0,()=>{},()=>{})),e.fakeTopEventTask.invoke()}),tc(e))}(e)};e._inner=e._inner.fork({name:"angular",properties:{isAngularZone:!0},onInvokeTask:(n,r,s,i,a,l)=>{try{return dg(e),n.invokeTask(s,i,a,l)}finally{(e.shouldCoalesceEventChangeDetection&&"eventTask"===i.type||e.shouldCoalesceRunChangeDetection)&&t(),fg(e)}},onInvoke:(n,r,s,i,a,l,p)=>{try{return dg(e),n.invoke(s,i,a,l,p)}finally{e.shouldCoalesceRunChangeDetection&&t(),fg(e)}},onHasTask:(n,r,s,i)=>{n.hasTask(s,i),r===s&&("microTask"==i.change?(e._hasPendingMicrotasks=i.microTask,tc(e),ec(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!0===Zone.current.get("isAngularZone")}static assertInAngularZone(){if(!sr.isInAngularZone())throw new Error("Expected to be in Angular Zone, but it is not!")}static assertNotInAngularZone(){if(sr.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,a=i.scheduleEventTask("NgZoneEvent: "+s,t,hC,Ka,Ka);try{return i.runTask(a,n,r)}finally{i.cancelTask(a)}}runGuarded(t,n,r){return this._inner.runGuarded(t,n,r)}runOutsideAngular(t){return this._outer.run(t)}}const hC={};function ec(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 tc(e){e.hasPendingMicrotasks=!!(e._hasPendingMicrotasks||(e.shouldCoalesceEventChangeDetection||e.shouldCoalesceRunChangeDetection)&&-1!==e.lastRequestAnimationFrameId)}function dg(e){e._nesting++,e.isStable&&(e.isStable=!1,e.onUnstable.emit(null))}function fg(e){e._nesting--,ec(e)}class mC{constructor(){this.hasPendingMicrotasks=!1,this.hasPendingMacrotasks=!1,this.isStable=!0,this.onUnstable=new gs,this.onMicrotaskEmpty=new gs,this.onStable=new gs,this.onError=new gs}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 hg=(()=>{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:()=>{sr.assertNotInAngularZone(),Xl(()=>{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())Xl(()=>{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(a=>a.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)(bn(sr))},e.\u0275prov=kt({token:e,factory:e.\u0275fac}),e})(),pg=(()=>{class e{constructor(){this._applications=new Map,nc.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 nc.findTestabilityInTree(this,n,r)}}return e.\u0275fac=function(n){return new(n||e)},e.\u0275prov=kt({token:e,factory:e.\u0275fac}),e})();class yC{addToWindow(t){}findTestabilityInTree(t,n,r){return null}}function vC(e){nc=e}let jr,nc=new yC;const gg=new x("AllowMultipleToken");class CC{constructor(t,n){this.name=t,this.token=n}}function mg(e,t,n=[]){const r=`Platform: ${t}`,s=new x(r);return(i=[])=>{let a=yg();if(!a||a.injector.get(gg,!1))if(e)e(n.concat(i).concat({provide:s,useValue:!0}));else{const l=n.concat(i).concat({provide:s,useValue:!0},{provide:il,useValue:"platform"});!function(e){if(jr&&!jr.destroyed&&!jr.injector.get(gg,!1))throw new bt("400","");jr=e.get(vg);const t=e.get(og,null);t&&t.forEach(n=>n())}(Dr.create({providers:l,name:r}))}return function(e){const t=yg();if(!t)throw new bt("401","");return t}()}}function yg(){return jr&&!jr.destroyed?jr:null}let vg=(()=>{class e{constructor(n){this._injector=n,this._modules=[],this._destroyListeners=[],this._destroyed=!1}bootstrapModuleFactory(n,r){const l=function(e,t){let n;return n="noop"===e?new mC:("zone.js"===e?void 0:e)||new sr({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}),p=[{provide:sr,useValue:l}];return l.run(()=>{const b=Dr.create({providers:p,parent:this.injector,name:n.moduleType.name}),_=n.create(b),R=_.injector.get(jo,null);if(!R)throw new bt("402","");return l.runOutsideAngular(()=>{const O=l.onError.subscribe({next:j=>{R.handleError(j)}});_.onDestroy(()=>{rc(this._modules,_),O.unsubscribe()})}),function(e,t,n){try{const r=n();return _l(r)?r.catch(s=>{throw t.runOutsideAngular(()=>e.handleError(s)),s}):r}catch(r){throw t.runOutsideAngular(()=>e.handleError(r)),r}}(R,l,()=>{const O=_.injector.get(po);return O.runInitializers(),O.donePromise.then(()=>(function(e){mt(e,"Expected localeId to be defined"),"string"==typeof e&&(Hh=e.toLowerCase().replace(/_/g,"-"))}(_.injector.get(Qa,Ua)||Ua),this._moduleDoBootstrap(_),_))})})}bootstrapModule(n,r=[]){const s=Dg({},r);return function(e,t,n){const r=new Ll(n);return Promise.resolve(r)}(0,0,n).then(i=>this.bootstrapModuleFactory(i,s))}_moduleDoBootstrap(n){const r=n.injector.get(ia);if(n._bootstrapComponents.length>0)n._bootstrapComponents.forEach(s=>r.bootstrap(s));else{if(!n.instance.ngDoBootstrap)throw new bt("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 bt("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)(bn(Dr))},e.\u0275prov=kt({token:e,factory:e.\u0275fac}),e})();function Dg(e,t){return Array.isArray(t)?t.reduce(Dg,e):Object.assign(Object.assign({},e),t)}let ia=(()=>{class e{constructor(n,r,s,i,a){this._zone=n,this._injector=r,this._exceptionHandler=s,this._componentFactoryResolver=i,this._initStatus=a,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 l=new w.y(b=>{this._stable=this._zone.isStable&&!this._zone.hasPendingMacrotasks&&!this._zone.hasPendingMicrotasks,this._zone.runOutsideAngular(()=>{b.next(this._stable),b.complete()})}),p=new w.y(b=>{let _;this._zone.runOutsideAngular(()=>{_=this._zone.onStable.subscribe(()=>{sr.assertNotInAngularZone(),Xl(()=>{!this._stable&&!this._zone.hasPendingMacrotasks&&!this._zone.hasPendingMicrotasks&&(this._stable=!0,b.next(!0))})})});const R=this._zone.onUnstable.subscribe(()=>{sr.assertInAngularZone(),this._stable&&(this._stable=!1,this._zone.runOutsideAngular(()=>{b.next(!1)}))});return()=>{_.unsubscribe(),R.unsubscribe()}});this.isStable=function(...e){let t=Number.POSITIVE_INFINITY,n=null,r=e[e.length-1];return(0,E.K)(r)?(n=e.pop(),e.length>1&&"number"==typeof e[e.length-1]&&(t=e.pop())):"number"==typeof r&&(t=e.pop()),null===n&&1===e.length&&e[0]instanceof w.y?e[0]:(0,oe.J)(t)((0,ue.n)(e,n))}(l,p.pipe(e=>(0,G.x)()(function(e,t){return function(r){let s;s="function"==typeof e?e:function(){return e};const i=Object.create(r,De.N);return i.source=r,i.subjectFactory=s,i}}(Z)(e))))}bootstrap(n,r){if(!this._initStatus.done)throw new bt("405","");let s;s=n instanceof hp?n:this._componentFactoryResolver.resolveComponentFactory(n),this.componentTypes.push(s.componentType);const i=function(e){return e.isBoundToModule}(s)?void 0:this._injector.get(co),l=s.create(Dr.NULL,[],r||s.selector,i),p=l.location.nativeElement,b=l.injector.get(hg,null),_=b&&l.injector.get(pg);return b&&_&&_.registerApplication(p,b),l.onDestroy(()=>{this.detachView(l.hostView),rc(this.components,l),_&&_.unregisterApplication(p)}),this._loadComponent(l),l}tick(){if(this._runningTick)throw new bt("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;rc(this._views,r),r.detachFromAppRef()}_loadComponent(n){this.attachView(n.hostView),this.tick(),this.components.push(n),this._injector.get(ug,[]).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)(bn(sr),bn(Dr),bn(jo),bn(Jo),bn(po))},e.\u0275prov=kt({token:e,factory:e.\u0275fac}),e})();function rc(e,t){const n=e.indexOf(t);n>-1&&e.splice(n,1)}let _g=!0,Cg=!1;function MC(){return Cg=!0,_g}function AC(){if(Cg)throw new Error("Cannot enable prod mode after platform setup.");_g=!1}let xC=(()=>{class e{}return e.__NG_ELEMENT_ID__=RC,e})();function RC(e){return function(e,t,n){if(fr(e)&&!n){const r=Mt(e.index,t);return new ea(r,r)}return 47&e.type?new ea(t[16],t):null}(qt(),K(),16==(16&e))}class Mg{constructor(){}supports(t){return zo(t)}create(t){return new jC(t)}}const kC=(e,t)=>t;class jC{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||kC}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 a=!r||n&&n.currentIndex<xg(r,s,i)?n:r,l=xg(a,s,i),p=a.currentIndex;if(a===r)s--,r=r._nextRemoved;else if(n=n._next,null==a.previousIndex)s++;else{i||(i=[]);const b=l-s,_=p-s;if(b!=_){for(let O=0;O<b;O++){const j=O<i.length?i[O]:i[O]=0,q=j+O;_<=q&&q<b&&(i[O]=j+1)}i[a.previousIndex]=_-b}}l!==p&&t(a,l,p)}}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=[]),!zo(t))throw new Error(`Error trying to diff '${V(t)}'. Only arrays and iterables are allowed`);return this.check(t)?this:null}onDestroy(){}check(t){this._reset();let s,i,a,n=this._itHead,r=!1;if(Array.isArray(t)){this.length=t.length;for(let l=0;l<this.length;l++)i=t[l],a=this._trackByFn(l,i),null!==n&&Object.is(n.trackById,a)?(r&&(n=this._verifyReinsertion(n,i,a,l)),Object.is(n.item,i)||this._addIdentityChange(n,i)):(n=this._mismatch(n,i,a,l),r=!0),n=n._next}else s=0,function(e,t){if(Array.isArray(e))for(let n=0;n<e.length;n++)t(e[n]);else{const n=e[Yi()]();let r;for(;!(r=n.next()).done;)t(r.value)}}(t,l=>{a=this._trackByFn(s,l),null!==n&&Object.is(n.trackById,a)?(r&&(n=this._verifyReinsertion(n,l,a,s)),Object.is(n.item,l)||this._addIdentityChange(n,l)):(n=this._mismatch(n,l,a,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 BC(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 Ag),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 Ag),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 BC{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 UC{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 Ag{constructor(){this.map=new Map}put(t){const n=t.trackById;let r=this.map.get(n);r||(r=new UC,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 xg(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 Rg{constructor(){}supports(t){return t instanceof Map||dl(t)}create(){return new VC}}class VC{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||dl(t)))throw new Error(`Error trying to diff '${V(t)}'. Only maps and objects are allowed`)}else t=new Map;return this.check(t)?this:null}onDestroy(){}check(t){this._reset();let n=this._mapHead;if(this._appendAfter=null,this._forEach(t,(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,a=s._next;return i&&(i._next=a),a&&(a._prev=i),s._next=null,s._prev=null,s}const r=new HC(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 HC{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 Og(){return new Xa([new Mg])}let Xa=(()=>{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||Og()),deps:[[e,new Bi,new yi]]}}find(n){const r=this.factories.find(s=>s.supports(n));if(null!=r)return r;throw new Error(`Cannot find a differ supporting object '${n}' of type '${function(e){return e.name||typeof e}(n)}'`)}}return e.\u0275prov=kt({token:e,providedIn:"root",factory:Og}),e})();function Pg(){return new eu([new Rg])}let eu=(()=>{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||Pg()),deps:[[e,new Bi,new yi]]}}find(n){const r=this.factories.find(s=>s.supports(n));if(r)return r;throw new Error(`Cannot find a differ supporting object '${n}'`)}}return e.\u0275prov=kt({token:e,providedIn:"root",factory:Pg}),e})();const zC=[new Rg],ZC=new Xa([new Mg]),WC=new eu(zC),qC=mg(null,"core",[{provide:ag,useValue:"unknown"},{provide:vg,deps:[Dr]},{provide:pg,deps:[]},{provide:lg,deps:[]}]),XC=[{provide:ia,useClass:ia,deps:[sr,Dr,jo,Jo,po]},{provide:l_,deps:[sr],useFactory:function(e){let t=[];return e.onStable.subscribe(()=>{for(;t.length;)t.pop()()}),function(n){t.push(n)}}},{provide:po,useClass:po,deps:[[new yi,Kl]]},{provide:Jl,useClass:Jl,deps:[]},uC,{provide:Xa,useFactory:function(){return ZC},deps:[]},{provide:eu,useFactory:function(){return WC},deps:[]},{provide:Qa,useFactory:function(e){return e||"undefined"!=typeof $localize&&$localize.locale||Ua},deps:[[new Oo(Qa),new yi,new Bi]]},{provide:cg,useValue:"USD"}];let tw=(()=>{class e{constructor(n){}}return e.\u0275fac=function(n){return new(n||e)(bn(ia))},e.\u0275mod=Ot({type:e}),e.\u0275inj=Wn({providers:XC}),e})()},313:(We,ce,N)=>{N.d(ce,{b2:()=>Cr,h_:()=>An,Dx:()=>_n,q6:()=>_r});var w=N(808),E=N(96);class oe extends w.w_{constructor(){super(...arguments),this.supportsDOMEvents=!0}}class ue extends oe{static makeCurrent(){(0,w.HT)(new ue)}onAndCancel(L,A,U){return L.addEventListener(A,U,!1),()=>{L.removeEventListener(A,U,!1)}}dispatchEvent(L,A){L.dispatchEvent(A)}remove(L){L.parentNode&&L.parentNode.removeChild(L)}createElement(L,A){return(A=A||this.getDefaultDocument()).createElement(L)}createHtmlDocument(){return document.implementation.createHTMLDocument("fakeTitle")}getDefaultDocument(){return document}isElementNode(L){return L.nodeType===Node.ELEMENT_NODE}isShadowRoot(L){return L instanceof DocumentFragment}getGlobalEventTarget(L,A){return"window"===A?window:"document"===A?L:"body"===A?L.body:null}getBaseHref(L){const A=(ye=ye||document.querySelector("base"),ye?ye.getAttribute("href"):null);return null==A?null:function(B){ve=ve||document.createElement("a"),ve.setAttribute("href",B);const L=ve.pathname;return"/"===L.charAt(0)?L:`/${L}`}(A)}resetBaseElement(){ye=null}getUserAgent(){return window.navigator.userAgent}getCookie(L){return(0,w.Mx)(document.cookie,L)}}let ve,ye=null;const _e=new E.OlP("TRANSITION_ID"),G=[{provide:E.ip1,useFactory:function(B,L,A){return()=>{A.get(E.CZH).donePromise.then(()=>{const U=(0,w.q)(),Y=L.querySelectorAll(`style[ng-transition="${B}"]`);for(let Ae=0;Ae<Y.length;Ae++)U.remove(Y[Ae])})}},deps:[_e,w.K0,E.zs3],multi:!0}];class Z{static init(){(0,E.VLi)(new Z)}addToWindow(L){E.dqk.getAngularTestability=(U,Y=!0)=>{const Ae=L.findTestabilityInTree(U,Y);if(null==Ae)throw new Error("Could not find testability for element.");return Ae},E.dqk.getAllAngularTestabilities=()=>L.getAllTestabilities(),E.dqk.getAllAngularRootElements=()=>L.getAllRootElements(),E.dqk.frameworkStabilizers||(E.dqk.frameworkStabilizers=[]),E.dqk.frameworkStabilizers.push(U=>{const Y=E.dqk.getAllAngularTestabilities();let Ae=Y.length,qe=!1;const Ot=function(an){qe=qe||an,Ae--,0==Ae&&U(qe)};Y.forEach(function(an){an.whenStable(Ot)})})}findTestabilityInTree(L,A,U){if(null==A)return null;const Y=L.getTestability(A);return null!=Y?Y:U?(0,w.q)().isShadowRoot(A)?this.findTestabilityInTree(L,A.host,!0):this.findTestabilityInTree(L,A.parentElement,!0):null}}let Q=(()=>{class B{build(){return new XMLHttpRequest}}return B.\u0275fac=function(A){return new(A||B)},B.\u0275prov=E.Yz7({token:B,factory:B.\u0275fac}),B})();const se=new E.OlP("EventManagerPlugins");let pe=(()=>{class B{constructor(A,U){this._zone=U,this._eventNameToPlugin=new Map,A.forEach(Y=>Y.manager=this),this._plugins=A.slice().reverse()}addEventListener(A,U,Y){return this._findPluginFor(U).addEventListener(A,U,Y)}addGlobalEventListener(A,U,Y){return this._findPluginFor(U).addGlobalEventListener(A,U,Y)}getZone(){return this._zone}_findPluginFor(A){const U=this._eventNameToPlugin.get(A);if(U)return U;const Y=this._plugins;for(let Ae=0;Ae<Y.length;Ae++){const qe=Y[Ae];if(qe.supports(A))return this._eventNameToPlugin.set(A,qe),qe}throw new Error(`No event manager plugin found for event ${A}`)}}return B.\u0275fac=function(A){return new(A||B)(E.LFG(se),E.LFG(E.R0b))},B.\u0275prov=E.Yz7({token:B,factory:B.\u0275fac}),B})();class V{constructor(L){this._doc=L}addGlobalEventListener(L,A,U){const Y=(0,w.q)().getGlobalEventTarget(this._doc,L);if(!Y)throw new Error(`Unsupported event target ${Y} for event ${A}`);return this.addEventListener(Y,A,U)}}let Ne=(()=>{class B{constructor(){this._stylesSet=new Set}addStyles(A){const U=new Set;A.forEach(Y=>{this._stylesSet.has(Y)||(this._stylesSet.add(Y),U.add(Y))}),this.onStylesAdded(U)}onStylesAdded(A){}getAllStyles(){return Array.from(this._stylesSet)}}return B.\u0275fac=function(A){return new(A||B)},B.\u0275prov=E.Yz7({token:B,factory:B.\u0275fac}),B})(),ot=(()=>{class B extends Ne{constructor(A){super(),this._doc=A,this._hostNodes=new Map,this._hostNodes.set(A.head,[])}_addStylesToHost(A,U,Y){A.forEach(Ae=>{const qe=this._doc.createElement("style");qe.textContent=Ae,Y.push(U.appendChild(qe))})}addHost(A){const U=[];this._addStylesToHost(this._stylesSet,A,U),this._hostNodes.set(A,U)}removeHost(A){const U=this._hostNodes.get(A);U&&U.forEach(Oe),this._hostNodes.delete(A)}onStylesAdded(A){this._hostNodes.forEach((U,Y)=>{this._addStylesToHost(A,Y,U)})}ngOnDestroy(){this._hostNodes.forEach(A=>A.forEach(Oe))}}return B.\u0275fac=function(A){return new(A||B)(E.LFG(w.K0))},B.\u0275prov=E.Yz7({token:B,factory:B.\u0275fac}),B})();function Oe(B){(0,w.q)().remove(B)}const be={svg:"http://www.w3.org/2000/svg",xhtml:"http://www.w3.org/1999/xhtml",xlink:"http://www.w3.org/1999/xlink",xml:"http://www.w3.org/XML/1998/namespace",xmlns:"http://www.w3.org/2000/xmlns/"},lt=/%COMP%/g;function ee(B,L,A){for(let U=0;U<L.length;U++){let Y=L[U];Array.isArray(Y)?ee(B,Y,A):(Y=Y.replace(lt,B),A.push(Y))}return A}function He(B){return L=>{if("__ngUnwrap__"===L)return B;!1===B(L)&&(L.preventDefault(),L.returnValue=!1)}}let Xe=(()=>{class B{constructor(A,U,Y){this.eventManager=A,this.sharedStylesHost=U,this.appId=Y,this.rendererByCompId=new Map,this.defaultRenderer=new he(A)}createRenderer(A,U){if(!A||!U)return this.defaultRenderer;switch(U.encapsulation){case E.ifc.Emulated:{let Y=this.rendererByCompId.get(U.id);return Y||(Y=new Zn(this.eventManager,this.sharedStylesHost,U,this.appId),this.rendererByCompId.set(U.id,Y)),Y.applyToHost(A),Y}case 1:case E.ifc.ShadowDom:return new on(this.eventManager,this.sharedStylesHost,A,U);default:if(!this.rendererByCompId.has(U.id)){const Y=ee(U.id,U.styles,[]);this.sharedStylesHost.addStyles(Y),this.rendererByCompId.set(U.id,this.defaultRenderer)}return this.defaultRenderer}}begin(){}end(){}}return B.\u0275fac=function(A){return new(A||B)(E.LFG(pe),E.LFG(ot),E.LFG(E.AFp))},B.\u0275prov=E.Yz7({token:B,factory:B.\u0275fac}),B})();class he{constructor(L){this.eventManager=L,this.data=Object.create(null),this.destroyNode=null}destroy(){}createElement(L,A){return A?document.createElementNS(be[A]||A,L):document.createElement(L)}createComment(L){return document.createComment(L)}createText(L){return document.createTextNode(L)}appendChild(L,A){L.appendChild(A)}insertBefore(L,A,U){L&&L.insertBefore(A,U)}removeChild(L,A){L&&L.removeChild(A)}selectRootElement(L,A){let U="string"==typeof L?document.querySelector(L):L;if(!U)throw new Error(`The selector "${L}" did not match any elements`);return A||(U.textContent=""),U}parentNode(L){return L.parentNode}nextSibling(L){return L.nextSibling}setAttribute(L,A,U,Y){if(Y){A=Y+":"+A;const Ae=be[Y];Ae?L.setAttributeNS(Ae,A,U):L.setAttribute(A,U)}else L.setAttribute(A,U)}removeAttribute(L,A,U){if(U){const Y=be[U];Y?L.removeAttributeNS(Y,A):L.removeAttribute(`${U}:${A}`)}else L.removeAttribute(A)}addClass(L,A){L.classList.add(A)}removeClass(L,A){L.classList.remove(A)}setStyle(L,A,U,Y){Y&(E.JOm.DashCase|E.JOm.Important)?L.style.setProperty(A,U,Y&E.JOm.Important?"important":""):L.style[A]=U}removeStyle(L,A,U){U&E.JOm.DashCase?L.style.removeProperty(A):L.style[A]=""}setProperty(L,A,U){L[A]=U}setValue(L,A){L.nodeValue=A}listen(L,A,U){return"string"==typeof L?this.eventManager.addGlobalEventListener(L,A,He(U)):this.eventManager.addEventListener(L,A,He(U))}}class Zn extends he{constructor(L,A,U,Y){super(L),this.component=U;const Ae=ee(Y+"-"+U.id,U.styles,[]);A.addStyles(Ae),this.contentAttr="_ngcontent-%COMP%".replace(lt,Y+"-"+U.id),this.hostAttr="_nghost-%COMP%".replace(lt,Y+"-"+U.id)}applyToHost(L){super.setAttribute(L,this.hostAttr,"")}createElement(L,A){const U=super.createElement(L,A);return super.setAttribute(U,this.contentAttr,""),U}}class on extends he{constructor(L,A,U,Y){super(L),this.sharedStylesHost=A,this.hostEl=U,this.shadowRoot=U.attachShadow({mode:"open"}),this.sharedStylesHost.addHost(this.shadowRoot);const Ae=ee(Y.id,Y.styles,[]);for(let qe=0;qe<Ae.length;qe++){const Ot=document.createElement("style");Ot.textContent=Ae[qe],this.shadowRoot.appendChild(Ot)}}nodeOrShadowRoot(L){return L===this.hostEl?this.shadowRoot:L}destroy(){this.sharedStylesHost.removeHost(this.shadowRoot)}appendChild(L,A){return super.appendChild(this.nodeOrShadowRoot(L),A)}insertBefore(L,A,U){return super.insertBefore(this.nodeOrShadowRoot(L),A,U)}removeChild(L,A){return super.removeChild(this.nodeOrShadowRoot(L),A)}parentNode(L){return this.nodeOrShadowRoot(super.parentNode(this.nodeOrShadowRoot(L)))}}let de=(()=>{class B extends V{constructor(A){super(A)}supports(A){return!0}addEventListener(A,U,Y){return A.addEventListener(U,Y,!1),()=>this.removeEventListener(A,U,Y)}removeEventListener(A,U,Y){return A.removeEventListener(U,Y)}}return B.\u0275fac=function(A){return new(A||B)(E.LFG(w.K0))},B.\u0275prov=E.Yz7({token:B,factory:B.\u0275fac}),B})();const le=["alt","control","meta","shift"],et={"\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"},wt={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"},Et={alt:B=>B.altKey,control:B=>B.ctrlKey,meta:B=>B.metaKey,shift:B=>B.shiftKey};let Nt=(()=>{class B extends V{constructor(A){super(A)}supports(A){return null!=B.parseEventName(A)}addEventListener(A,U,Y){const Ae=B.parseEventName(U),qe=B.eventCallback(Ae.fullKey,Y,this.manager.getZone());return this.manager.getZone().runOutsideAngular(()=>(0,w.q)().onAndCancel(A,Ae.domEventName,qe))}static parseEventName(A){const U=A.toLowerCase().split("."),Y=U.shift();if(0===U.length||"keydown"!==Y&&"keyup"!==Y)return null;const Ae=B._normalizeKey(U.pop());let qe="";if(le.forEach(an=>{const Zr=U.indexOf(an);Zr>-1&&(U.splice(Zr,1),qe+=an+".")}),qe+=Ae,0!=U.length||0===Ae.length)return null;const Ot={};return Ot.domEventName=Y,Ot.fullKey=qe,Ot}static getEventFullKey(A){let U="",Y=function(B){let L=B.key;if(null==L){if(L=B.keyIdentifier,null==L)return"Unidentified";L.startsWith("U+")&&(L=String.fromCharCode(parseInt(L.substring(2),16)),3===B.location&&wt.hasOwnProperty(L)&&(L=wt[L]))}return et[L]||L}(A);return Y=Y.toLowerCase()," "===Y?Y="space":"."===Y&&(Y="dot"),le.forEach(Ae=>{Ae!=Y&&Et[Ae](A)&&(U+=Ae+".")}),U+=Y,U}static eventCallback(A,U,Y){return Ae=>{B.getEventFullKey(Ae)===A&&Y.runGuarded(()=>U(Ae))}}static _normalizeKey(A){return"esc"===A?"escape":A}}return B.\u0275fac=function(A){return new(A||B)(E.LFG(w.K0))},B.\u0275prov=E.Yz7({token:B,factory:B.\u0275fac}),B})();const _r=(0,E.eFA)(E._c5,"browser",[{provide:E.Lbi,useValue:w.bD},{provide:E.g9A,useValue:function(){ue.makeCurrent(),Z.init()},multi:!0},{provide:w.K0,useFactory:function(){return(0,E.RDi)(document),document},deps:[]}]),kt=[{provide:E.zSh,useValue:"root"},{provide:E.qLn,useFactory:function(){return new E.qLn},deps:[]},{provide:se,useClass:de,multi:!0,deps:[w.K0,E.R0b,E.Lbi]},{provide:se,useClass:Nt,multi:!0,deps:[w.K0]},{provide:Xe,useClass:Xe,deps:[pe,ot,E.AFp]},{provide:E.FYo,useExisting:Xe},{provide:Ne,useExisting:ot},{provide:ot,useClass:ot,deps:[w.K0]},{provide:E.dDg,useClass:E.dDg,deps:[E.R0b]},{provide:pe,useClass:pe,deps:[se,E.R0b]},{provide:w.JF,useClass:Q,deps:[]}];let Cr=(()=>{class B{constructor(A){if(A)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(A){return{ngModule:B,providers:[{provide:E.AFp,useValue:A.appId},{provide:_e,useExisting:E.AFp},G]}}}return B.\u0275fac=function(A){return new(A||B)(E.LFG(B,12))},B.\u0275mod=E.oAB({type:B}),B.\u0275inj=E.cJS({providers:kt,imports:[w.ez,E.hGG]}),B})(),An=(()=>{class B{constructor(A){this._doc=A,this._dom=(0,w.q)()}addTag(A,U=!1){return A?this._getOrCreateElement(A,U):null}addTags(A,U=!1){return A?A.reduce((Y,Ae)=>(Ae&&Y.push(this._getOrCreateElement(Ae,U)),Y),[]):[]}getTag(A){return A&&this._doc.querySelector(`meta[${A}]`)||null}getTags(A){if(!A)return[];const U=this._doc.querySelectorAll(`meta[${A}]`);return U?[].slice.call(U):[]}updateTag(A,U){if(!A)return null;U=U||this._parseSelector(A);const Y=this.getTag(U);return Y?this._setMetaElementAttributes(A,Y):this._getOrCreateElement(A,!0)}removeTag(A){this.removeTagElement(this.getTag(A))}removeTagElement(A){A&&this._dom.remove(A)}_getOrCreateElement(A,U=!1){if(!U){const qe=this._parseSelector(A),Ot=this.getTags(qe).filter(an=>this._containsAttributes(A,an))[0];if(void 0!==Ot)return Ot}const Y=this._dom.createElement("meta");return this._setMetaElementAttributes(A,Y),this._doc.getElementsByTagName("head")[0].appendChild(Y),Y}_setMetaElementAttributes(A,U){return Object.keys(A).forEach(Y=>U.setAttribute(this._getMetaKeyMap(Y),A[Y])),U}_parseSelector(A){const U=A.name?"name":"property";return`${U}="${A[U]}"`}_containsAttributes(A,U){return Object.keys(A).every(Y=>U.getAttribute(this._getMetaKeyMap(Y))===A[Y])}_getMetaKeyMap(A){return ys[A]||A}}return B.\u0275fac=function(A){return new(A||B)(E.LFG(w.K0))},B.\u0275prov=E.Yz7({token:B,factory:function(A){let U=null;return U=A?new A:new An((0,E.LFG)(w.K0)),U},providedIn:"root"}),B})();const ys={httpEquiv:"http-equiv"};let _n=(()=>{class B{constructor(A){this._doc=A}getTitle(){return this._doc.title}setTitle(A){this._doc.title=A||""}}return B.\u0275fac=function(A){return new(A||B)(E.LFG(w.K0))},B.\u0275prov=E.Yz7({token:B,factory:function(A){let U=null;return U=A?new A:new _n((0,E.LFG)(w.K0)),U},providedIn:"root"}),B})();"undefined"!=typeof window&&window},247:(We,ce,N)=>{N.d(ce,{gz:()=>Un,m2:()=>at,OD:()=>ar,F0:()=>Tn,yS:()=>Eo,Bz:()=>ga,lC:()=>vn});var w=N(96),E=N(529),oe=N(279);class ue extends E.xQ{constructor(u){super(),this._value=u}get value(){return this.getValue()}_subscribe(u){const o=super._subscribe(u);return o&&!o.closed&&u.next(this._value),o}getValue(){if(this.hasError)throw this.thrownError;if(this.closed)throw new oe.N;return this._value}next(u){super.next(this._value=u)}}var ye=N(866),re=N(688),ve=N(826),De=N(54),_e=N(9);const $={};class Z{constructor(u){this.resultSelector=u}call(u,o){return o.subscribe(new Q(u,this.resultSelector))}}class Q extends ve.L{constructor(u,o){super(u),this.resultSelector=o,this.active=0,this.values=[],this.observables=[]}_next(u){this.values.push($),this.observables.push(u)}_complete(){const u=this.observables,o=u.length;if(0===o)this.destination.complete();else{this.active=o,this.toRespond=o;for(let g=0;g<o;g++){const v=u[g];this.add((0,De.D)(this,v,v,g))}}}notifyComplete(u){0==(this.active-=1)&&this.destination.complete()}notifyNext(u,o,g,v,T){const x=this.values,W=this.toRespond?x[g]===$?--this.toRespond:this.toRespond:0;x[g]=o,0===W&&(this.resultSelector?this._tryResultSelector(x):this.destination.next(x.slice()))}_tryResultSelector(u){let o;try{o=this.resultSelector.apply(this,u)}catch(g){return void this.destination.error(g)}this.destination.next(o)}}const pe=(()=>{function d(){return Error.call(this),this.message="no elements in sequence",this.name="EmptyError",this}return d.prototype=Object.create(Error.prototype),d})();var V=N(86),Ne=N(146);function Oe(...d){return(0,Ne.J)(1)((0,V.of)(...d))}var be=N(916),lt=N(254);const en=new be.y(d=>d.complete());function bt(d){return d?function(d){return new be.y(u=>d.schedule(()=>u.complete()))}(d):en}function kn(d){return new be.y(u=>{let o;try{o=d()}catch(v){return void u.error(v)}return(o?(0,lt.D)(o):bt()).subscribe(u)})}var Le=N(762),Ge=N(869),ee=N(850);function He(d,u){return"function"==typeof u?o=>o.pipe(He((g,v)=>(0,lt.D)(d(g,v)).pipe((0,ee.U)((T,x)=>u(g,T,v,x))))):o=>o.lift(new Ee(d))}class Ee{constructor(u){this.project=u}call(u,o){return o.subscribe(new Xe(u,this.project))}}class Xe extends ve.L{constructor(u,o){super(u),this.project=o,this.index=0}_next(u){let o;const g=this.index++;try{o=this.project(u,g)}catch(v){return void this.destination.error(v)}this._innerSub(o,u,g)}_innerSub(u,o,g){const v=this.innerSubscription;v&&v.unsubscribe();const T=new Ge.d(this,o,g),x=this.destination;x.add(T),this.innerSubscription=(0,De.D)(this,u,void 0,void 0,T),this.innerSubscription!==T&&x.add(this.innerSubscription)}_complete(){const{innerSubscription:u}=this;(!u||u.closed)&&super._complete(),this.unsubscribe()}_unsubscribe(){this.innerSubscription=null}notifyComplete(u){this.destination.remove(u),this.innerSubscription=null,this.isStopped&&super._complete()}notifyNext(u,o,g,v,T){this.destination.next(o)}}var he=N(489);const Kt=(()=>{function d(){return Error.call(this),this.message="argument out of range",this.name="ArgumentOutOfRangeError",this}return d.prototype=Object.create(Error.prototype),d})();function Zn(d){return u=>0===d?bt():u.lift(new on(d))}class on{constructor(u){if(this.total=u,this.total<0)throw new Kt}call(u,o){return o.subscribe(new de(u,this.total))}}class de extends he.L{constructor(u,o){super(u),this.total=o,this.count=0}_next(u){const o=this.total,g=++this.count;g<=o&&(this.destination.next(u),g===o&&(this.destination.complete(),this.unsubscribe()))}}function ae(d,u){let o=!1;return arguments.length>=2&&(o=!0),function(v){return v.lift(new et(d,u,o))}}class et{constructor(u,o,g=!1){this.accumulator=u,this.seed=o,this.hasSeed=g}call(u,o){return o.subscribe(new wt(u,this.accumulator,this.seed,this.hasSeed))}}class wt extends he.L{constructor(u,o,g,v){super(u),this.accumulator=o,this._seed=g,this.hasSeed=v,this.index=0}get seed(){return this._seed}set seed(u){this.hasSeed=!0,this._seed=u}_next(u){if(this.hasSeed)return this._tryNext(u);this.seed=u,this.destination.next(u)}_tryNext(u){const o=this.index++;let g;try{g=this.accumulator(this.seed,u,o)}catch(v){this.destination.error(v)}this.seed=g,this.destination.next(g)}}function Et(d){return function(o){const g=new Nt(d),v=o.lift(g);return g.caught=v}}class Nt{constructor(u){this.selector=u}call(u,o){return o.subscribe(new Bt(u,this.selector,this.caught))}}class Bt extends ve.L{constructor(u,o,g){super(u),this.selector=o,this.caught=g}error(u){if(!this.isStopped){let o;try{o=this.selector(u,this.caught)}catch(T){return void super.error(T)}this._unsubscribeAndRecycle();const g=new Ge.d(this,void 0,void 0);this.add(g);const v=(0,De.D)(this,o,void 0,void 0,g);v!==g&&this.add(v)}}}var mt=N(198);function tt(d){return function(o){return 0===d?bt():o.lift(new Ur(d))}}class Ur{constructor(u){if(this.total=u,this.total<0)throw new Kt}call(u,o){return o.subscribe(new ti(u,this.total))}}class ti extends he.L{constructor(u,o){super(u),this.total=o,this.ring=new Array,this.count=0}_next(u){const o=this.ring,g=this.total,v=this.count++;o.length<g?o.push(u):o[v%g]=u}_complete(){const u=this.destination;let o=this.count;if(o>0){const g=this.count>=this.total?this.total:this.count,v=this.ring;for(let T=0;T<g;T++){const x=o++%g;u.next(v[x])}}u.complete()}}function _r(d=Wn){return u=>u.lift(new kt(d))}class kt{constructor(u){this.errorFactory=u}call(u,o){return o.subscribe(new Cr(u,this.errorFactory))}}class Cr extends he.L{constructor(u,o){super(u),this.errorFactory=o,this.hasValue=!1}_next(u){this.hasValue=!0,this.destination.next(u)}_complete(){if(this.hasValue)return this.destination.complete();{let u;try{u=this.errorFactory()}catch(o){u=o}this.destination.error(u)}}}function Wn(){return new pe}function An(d=null){return u=>u.lift(new ys(d))}class ys{constructor(u){this.defaultValue=u}call(u,o){return o.subscribe(new Wt(u,this.defaultValue))}}class Wt extends he.L{constructor(u,o){super(u),this.defaultValue=o,this.isEmpty=!0}_next(u){this.isEmpty=!1,this.destination.next(u)}_complete(){this.isEmpty&&this.destination.next(this.defaultValue),this.destination.complete()}}var _n=N(379);function dn(d,u){const o=arguments.length>=2;return g=>g.pipe(d?(0,mt.h)((v,T)=>d(v,T,g)):_n.y,Zn(1),o?An(u):_r(()=>new pe))}function St(){}var Vr=N(43);function jt(d,u,o){return function(v){return v.lift(new Re(d,u,o))}}class Re{constructor(u,o,g){this.nextOrObserver=u,this.error=o,this.complete=g}call(u,o){return o.subscribe(new Tt(u,this.nextOrObserver,this.error,this.complete))}}class Tt extends he.L{constructor(u,o,g,v){super(u),this._tapNext=St,this._tapError=St,this._tapComplete=St,this._tapError=g||St,this._tapComplete=v||St,(0,Vr.m)(o)?(this._context=this,this._tapNext=o):o&&(this._context=o,this._tapNext=o.next||St,this._tapError=o.error||St,this._tapComplete=o.complete||St)}_next(u){try{this._tapNext.call(this._context,u)}catch(o){return void this.destination.error(o)}this.destination.next(u)}_error(u){try{this._tapError.call(this._context,u)}catch(o){return void this.destination.error(o)}this.destination.error(u)}_complete(){try{this._tapComplete.call(this._context)}catch(u){return void this.destination.error(u)}return this.destination.complete()}}var Ie=N(654);class or{constructor(u){this.callback=u}call(u,o){return o.subscribe(new Hr(u,this.callback))}}class Hr extends he.L{constructor(u,o){super(u),this.add(new Ie.w(o))}}var nt=N(406),ze=N(709),Lt=N(327),fn=N(808);class Ke{constructor(u,o){this.id=u,this.url=o}}class ar extends Ke{constructor(u,o,g="imperative",v=null){super(u,o),this.navigationTrigger=g,this.restoredState=v}toString(){return`NavigationStart(id: ${this.id}, url: '${this.url}')`}}class at extends Ke{constructor(u,o,g){super(u,o),this.urlAfterRedirects=g}toString(){return`NavigationEnd(id: ${this.id}, url: '${this.url}', urlAfterRedirects: '${this.urlAfterRedirects}')`}}class xs extends Ke{constructor(u,o,g){super(u,o),this.reason=g}toString(){return`NavigationCancel(id: ${this.id}, url: '${this.url}')`}}class $r extends Ke{constructor(u,o,g){super(u,o),this.error=g}toString(){return`NavigationError(id: ${this.id}, url: '${this.url}', error: ${this.error})`}}class Rt extends Ke{constructor(u,o,g,v){super(u,o),this.urlAfterRedirects=g,this.state=v}toString(){return`RoutesRecognized(id: ${this.id}, url: '${this.url}', urlAfterRedirects: '${this.urlAfterRedirects}', state: ${this.state})`}}class zr extends Ke{constructor(u,o,g,v){super(u,o),this.urlAfterRedirects=g,this.state=v}toString(){return`GuardsCheckStart(id: ${this.id}, url: '${this.url}', urlAfterRedirects: '${this.urlAfterRedirects}', state: ${this.state})`}}class wi extends Ke{constructor(u,o,g,v,T){super(u,o),this.urlAfterRedirects=g,this.state=v,this.shouldActivate=T}toString(){return`GuardsCheckEnd(id: ${this.id}, url: '${this.url}', urlAfterRedirects: '${this.urlAfterRedirects}', state: ${this.state}, shouldActivate: ${this.shouldActivate})`}}class xn extends Ke{constructor(u,o,g,v){super(u,o),this.urlAfterRedirects=g,this.state=v}toString(){return`ResolveStart(id: ${this.id}, url: '${this.url}', urlAfterRedirects: '${this.urlAfterRedirects}', state: ${this.state})`}}class ct extends Ke{constructor(u,o,g,v){super(u,o),this.urlAfterRedirects=g,this.state=v}toString(){return`ResolveEnd(id: ${this.id}, url: '${this.url}', urlAfterRedirects: '${this.urlAfterRedirects}', state: ${this.state})`}}class Cn{constructor(u){this.route=u}toString(){return`RouteConfigLoadStart(path: ${this.route.path})`}}class qn{constructor(u){this.route=u}toString(){return`RouteConfigLoadEnd(path: ${this.route.path})`}}class Ds{constructor(u){this.snapshot=u}toString(){return`ChildActivationStart(path: '${this.snapshot.routeConfig&&this.snapshot.routeConfig.path||""}')`}}class Gr{constructor(u){this.snapshot=u}toString(){return`ChildActivationEnd(path: '${this.snapshot.routeConfig&&this.snapshot.routeConfig.path||""}')`}}class Rn{constructor(u){this.snapshot=u}toString(){return`ActivationStart(path: '${this.snapshot.routeConfig&&this.snapshot.routeConfig.path||""}')`}}class B{constructor(u){this.snapshot=u}toString(){return`ActivationEnd(path: '${this.snapshot.routeConfig&&this.snapshot.routeConfig.path||""}')`}}class L{constructor(u,o,g){this.routerEvent=u,this.position=o,this.anchor=g}toString(){return`Scroll(anchor: '${this.anchor}', position: '${this.position?`${this.position[0]}, ${this.position[1]}`:null}')`}}const A="primary";class U{constructor(u){this.params=u||{}}has(u){return Object.prototype.hasOwnProperty.call(this.params,u)}get(u){if(this.has(u)){const o=this.params[u];return Array.isArray(o)?o[0]:o}return null}getAll(u){if(this.has(u)){const o=this.params[u];return Array.isArray(o)?o:[o]}return[]}get keys(){return Object.keys(this.params)}}function Y(d){return new U(d)}const Ae="ngNavigationCancelingError";function qe(d){const u=Error("NavigationCancelingError: "+d);return u[Ae]=!0,u}function an(d,u,o){const g=o.path.split("/");if(g.length>d.length||"full"===o.pathMatch&&(u.hasChildren()||g.length<d.length))return null;const v={};for(let T=0;T<g.length;T++){const x=g[T],F=d[T];if(x.startsWith(":"))v[x.substring(1)]=F;else if(x!==F.path)return null}return{consumed:d.slice(0,g.length),posParams:v}}function tn(d,u){const o=d?Object.keys(d):void 0,g=u?Object.keys(u):void 0;if(!o||!g||o.length!=g.length)return!1;let v;for(let T=0;T<o.length;T++)if(v=o[T],!wr(d[v],u[v]))return!1;return!0}function wr(d,u){if(Array.isArray(d)&&Array.isArray(u)){if(d.length!==u.length)return!1;const o=[...d].sort(),g=[...u].sort();return o.every((v,T)=>g[T]===v)}return d===u}function Ht(d){return Array.prototype.concat.apply([],d)}function hn(d){return d.length>0?d[d.length-1]:null}function pt(d,u){for(const o in d)d.hasOwnProperty(o)&&u(d[o],o)}function nn(d){return(0,w.CqO)(d)?d:(0,w.QGY)(d)?(0,lt.D)(Promise.resolve(d)):(0,V.of)(d)}const lr={exact:function Er(d,u,o){if(!gt(d.segments,u.segments)||!yt(d.segments,u.segments,o)||d.numberOfChildren!==u.numberOfChildren)return!1;for(const g in u.children)if(!d.children[g]||!Er(d.children[g],u.children[g],o))return!1;return!0},subset:ge},cr={exact:function(d,u){return tn(d,u)},subset:function(d,u){return Object.keys(u).length<=Object.keys(d).length&&Object.keys(u).every(o=>wr(d[o],u[o]))},ignored:()=>!0};function Qt(d,u,o){return lr[o.paths](d.root,u.root,o.matrixParams)&&cr[o.queryParams](d.queryParams,u.queryParams)&&!("exact"===o.fragment&&d.fragment!==u.fragment)}function ge(d,u,o){return Ze(d,u,u.segments,o)}function Ze(d,u,o,g){if(d.segments.length>o.length){const v=d.segments.slice(0,o.length);return!(!gt(v,o)||u.hasChildren()||!yt(v,o,g))}if(d.segments.length===o.length){if(!gt(d.segments,o)||!yt(d.segments,o,g))return!1;for(const v in u.children)if(!d.children[v]||!ge(d.children[v],u.children[v],g))return!1;return!0}{const v=o.slice(0,d.segments.length),T=o.slice(d.segments.length);return!!(gt(d.segments,v)&&yt(d.segments,v,g)&&d.children[A])&&Ze(d.children[A],u,T,g)}}function yt(d,u,o){return u.every((g,v)=>cr[o](d[v].parameters,g.parameters))}class Ut{constructor(u,o,g){this.root=u,this.queryParams=o,this.fragment=g}get queryParamMap(){return this._queryParamMap||(this._queryParamMap=Y(this.queryParams)),this._queryParamMap}toString(){return Sr.serialize(this)}}class je{constructor(u,o){this.segments=u,this.children=o,this.parent=null,pt(o,(g,v)=>g.parent=this)}hasChildren(){return this.numberOfChildren>0}get numberOfChildren(){return Object.keys(this.children).length}toString(){return zt(this)}}class It{constructor(u,o){this.path=u,this.parameters=o}get parameterMap(){return this._parameterMap||(this._parameterMap=Y(this.parameters)),this._parameterMap}toString(){return Rs(this)}}function gt(d,u){return d.length===u.length&&d.every((o,g)=>o.path===u[g].path)}class Qn{}class Ve{parse(u){const o=new ri(u);return new Ut(o.parseRootSegment(),o.parseQueryParams(),o.parseFragment())}serialize(u){const o=`/${wn(u.root,!0)}`,g=function(d){const u=Object.keys(d).map(o=>{const g=d[o];return Array.isArray(g)?g.map(v=>`${Zt(o)}=${Zt(v)}`).join("&"):`${Zt(o)}=${Zt(g)}`}).filter(o=>!!o);return u.length?`?${u.join("&")}`:""}(u.queryParams);var d;return`${o}${g}${"string"==typeof u.fragment?`#${d=u.fragment,encodeURI(d)}`:""}`}}const Sr=new Ve;function zt(d){return d.segments.map(u=>Rs(u)).join("/")}function wn(d,u){if(!d.hasChildren())return zt(d);if(u){const o=d.children[A]?wn(d.children[A],!1):"",g=[];return pt(d.children,(v,T)=>{T!==A&&g.push(`${T}:${wn(v,!1)}`)}),g.length>0?`${o}(${g.join("//")})`:o}{const o=function(d,u){let o=[];return pt(d.children,(g,v)=>{v===A&&(o=o.concat(u(g,v)))}),pt(d.children,(g,v)=>{v!==A&&(o=o.concat(u(g,v)))}),o}(d,(g,v)=>v===A?[wn(d.children[A],!1)]:[`${v}:${wn(g,!1)}`]);return 1===Object.keys(d.children).length&&null!=d.children[A]?`${zt(d)}/${o[0]}`:`${zt(d)}/(${o.join("//")})`}}function jn(d){return encodeURIComponent(d).replace(/%40/g,"@").replace(/%3A/gi,":").replace(/%24/g,"$").replace(/%2C/gi,",")}function Zt(d){return jn(d).replace(/%3B/gi,";")}function On(d){return jn(d).replace(/\(/g,"%28").replace(/\)/g,"%29").replace(/%26/gi,"&")}function rn(d){return decodeURIComponent(d)}function dt(d){return rn(d.replace(/\+/g,"%20"))}function Rs(d){return`${On(d.path)}${function(d){return Object.keys(d).map(u=>`;${On(u)}=${On(d[u])}`).join("")}(d.parameters)}`}const Jt=/^[^\/()?;=#]+/;function En(d){const u=d.match(Jt);return u?u[0]:""}const fr=/^[^=?&#]+/,mn=/^[^&#]+/;class ri{constructor(u){this.url=u,this.remaining=u}parseRootSegment(){return this.consumeOptional("/"),""===this.remaining||this.peekStartsWith("?")||this.peekStartsWith("#")?new je([],{}):new je([],this.parseChildren())}parseQueryParams(){const u={};if(this.consumeOptional("?"))do{this.parseQueryParam(u)}while(this.consumeOptional("&"));return u}parseFragment(){return this.consumeOptional("#")?decodeURIComponent(this.remaining):null}parseChildren(){if(""===this.remaining)return{};this.consumeOptional("/");const u=[];for(this.peekStartsWith("(")||u.push(this.parseSegment());this.peekStartsWith("/")&&!this.peekStartsWith("//")&&!this.peekStartsWith("/(");)this.capture("/"),u.push(this.parseSegment());let o={};this.peekStartsWith("/(")&&(this.capture("/"),o=this.parseParens(!0));let g={};return this.peekStartsWith("(")&&(g=this.parseParens(!1)),(u.length>0||Object.keys(o).length>0)&&(g[A]=new je(u,o)),g}parseSegment(){const u=En(this.remaining);if(""===u&&this.peekStartsWith(";"))throw new Error(`Empty path url segment cannot have parameters: '${this.remaining}'.`);return this.capture(u),new It(rn(u),this.parseMatrixParams())}parseMatrixParams(){const u={};for(;this.consumeOptional(";");)this.parseParam(u);return u}parseParam(u){const o=En(this.remaining);if(!o)return;this.capture(o);let g="";if(this.consumeOptional("=")){const v=En(this.remaining);v&&(g=v,this.capture(g))}u[rn(o)]=rn(g)}parseQueryParam(u){const o=function(d){const u=d.match(fr);return u?u[0]:""}(this.remaining);if(!o)return;this.capture(o);let g="";if(this.consumeOptional("=")){const x=function(d){const u=d.match(mn);return u?u[0]:""}(this.remaining);x&&(g=x,this.capture(g))}const v=dt(o),T=dt(g);if(u.hasOwnProperty(v)){let x=u[v];Array.isArray(x)||(x=[x],u[v]=x),x.push(T)}else u[v]=T}parseParens(u){const o={};for(this.capture("(");!this.consumeOptional(")")&&this.remaining.length>0;){const g=En(this.remaining),v=this.remaining[g.length];if("/"!==v&&")"!==v&&";"!==v)throw new Error(`Cannot parse url '${this.url}'`);let T;g.indexOf(":")>-1?(T=g.substr(0,g.indexOf(":")),this.capture(T),this.capture(":")):u&&(T=A);const x=this.parseChildren();o[T]=1===Object.keys(x).length?x[A]:new je([],x),this.consumeOptional("//")}return o}peekStartsWith(u){return this.remaining.startsWith(u)}consumeOptional(u){return!!this.peekStartsWith(u)&&(this.remaining=this.remaining.substring(u.length),!0)}capture(u){if(!this.consumeOptional(u))throw new Error(`Expected "${u}".`)}}class Os{constructor(u){this._root=u}get root(){return this._root.value}parent(u){const o=this.pathFromRoot(u);return o.length>1?o[o.length-2]:null}children(u){const o=bs(u,this._root);return o?o.children.map(g=>g.value):[]}firstChild(u){const o=bs(u,this._root);return o&&o.children.length>0?o.children[0].value:null}siblings(u){const o=Ps(u,this._root);return o.length<2?[]:o[o.length-2].children.map(v=>v.value).filter(v=>v!==u)}pathFromRoot(u){return Ps(u,this._root).map(o=>o.value)}}function bs(d,u){if(d===u.value)return u;for(const o of u.children){const g=bs(d,o);if(g)return g}return null}function Ps(d,u){if(d===u.value)return[u];for(const o of u.children){const g=Ps(d,o);if(g.length)return g.unshift(u),g}return[]}class Bn{constructor(u,o){this.value=u,this.children=o}toString(){return`TreeNode(${this.value})`}}function pn(d){const u={};return d&&d.children.forEach(o=>u[o.value.outlet]=o),u}class Fs extends Os{constructor(u,o){super(u),this.snapshot=o,qr(this,u)}toString(){return this.snapshot.toString()}}function Ns(d,u){const o=function(d,u){const x=new Pn([],{},{},"",{},A,u,null,d.root,-1,{});return new si("",new Bn(x,[]))}(d,u),g=new ue([new It("",{})]),v=new ue({}),T=new ue({}),x=new ue({}),F=new ue(""),W=new Un(g,v,x,F,T,A,u,o.root);return W.snapshot=o.root,new Fs(new Bn(W,[]),o)}class Un{constructor(u,o,g,v,T,x,F,W){this.url=u,this.params=o,this.queryParams=g,this.fragment=v,this.data=T,this.outlet=x,this.component=F,this._futureSnapshot=W}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,ee.U)(u=>Y(u)))),this._paramMap}get queryParamMap(){return this._queryParamMap||(this._queryParamMap=this.queryParams.pipe((0,ee.U)(u=>Y(u)))),this._queryParamMap}toString(){return this.snapshot?this.snapshot.toString():`Future(${this._futureSnapshot})`}}function Tr(d,u="emptyOnly"){const o=d.pathFromRoot;let g=0;if("always"!==u)for(g=o.length-1;g>=1;){const v=o[g],T=o[g-1];if(v.routeConfig&&""===v.routeConfig.path)g--;else{if(T.component)break;g--}}return function(d){return d.reduce((u,o)=>({params:Object.assign(Object.assign({},u.params),o.params),data:Object.assign(Object.assign({},u.data),o.data),resolve:Object.assign(Object.assign({},u.resolve),o._resolvedData)}),{params:{},data:{},resolve:{}})}(o.slice(g))}class Pn{constructor(u,o,g,v,T,x,F,W,Ce,ht,Fe){this.url=u,this.params=o,this.queryParams=g,this.fragment=v,this.data=T,this.outlet=x,this.component=F,this.routeConfig=W,this._urlSegment=Ce,this._lastPathIndex=ht,this._resolve=Fe}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=Y(this.params)),this._paramMap}get queryParamMap(){return this._queryParamMap||(this._queryParamMap=Y(this.queryParams)),this._queryParamMap}toString(){return`Route(url:'${this.url.map(g=>g.toString()).join("/")}', path:'${this.routeConfig?this.routeConfig.path:""}')`}}class si extends Os{constructor(u,o){super(o),this.url=u,qr(this,o)}toString(){return _s(this._root)}}function qr(d,u){u.value._routerState=d,u.children.forEach(o=>qr(d,o))}function _s(d){const u=d.children.length>0?` { ${d.children.map(_s).join(", ")} } `:"";return`${d.value}${u}`}function Ir(d){if(d.snapshot){const u=d.snapshot,o=d._futureSnapshot;d.snapshot=o,tn(u.queryParams,o.queryParams)||d.queryParams.next(o.queryParams),u.fragment!==o.fragment&&d.fragment.next(o.fragment),tn(u.params,o.params)||d.params.next(o.params),function(d,u){if(d.length!==u.length)return!1;for(let o=0;o<d.length;++o)if(!tn(d[o],u[o]))return!1;return!0}(u.url,o.url)||d.url.next(o.url),tn(u.data,o.data)||d.data.next(o.data)}else d.snapshot=d._futureSnapshot,d.data.next(d._futureSnapshot.data)}function Yr(d,u){const o=tn(d.params,u.params)&&function(d,u){return gt(d,u)&&d.every((o,g)=>tn(o.parameters,u[g].parameters))}(d.url,u.url);return o&&!(!d.parent!=!u.parent)&&(!d.parent||Yr(d.parent,u.parent))}function Kr(d,u,o){if(o&&d.shouldReuseRoute(u.value,o.value.snapshot)){const g=o.value;g._futureSnapshot=u.value;const v=function(d,u,o){return u.children.map(g=>{for(const v of o.children)if(d.shouldReuseRoute(g.value,v.value.snapshot))return Kr(d,g,v);return Kr(d,g)})}(d,u,o);return new Bn(g,v)}{if(d.shouldAttach(u.value)){const T=d.retrieve(u.value);if(null!==T){const x=T.route;return x.value._futureSnapshot=u.value,x.children=u.children.map(F=>Kr(d,F)),x}}const g=function(d){return new Un(new ue(d.url),new ue(d.params),new ue(d.queryParams),new ue(d.fragment),new ue(d.data),d.outlet,d.component,d)}(u.value),v=u.children.map(T=>Kr(d,T));return new Bn(g,v)}}function Xn(d){return"object"==typeof d&&null!=d&&!d.outlets&&!d.segmentPath}function er(d){return"object"==typeof d&&null!=d&&d.outlets}function Qr(d,u,o,g,v){let T={};return g&&pt(g,(x,F)=>{T[F]=Array.isArray(x)?x.map(W=>`${W}`):`${x}`}),new Ut(o.root===d?u:Fn(o.root,d,u),T,v)}function Fn(d,u,o){const g={};return pt(d.children,(v,T)=>{g[T]=v===u?o:Fn(v,u,o)}),new je(d.segments,g)}class oi{constructor(u,o,g){if(this.isAbsolute=u,this.numberOfDoubleDots=o,this.commands=g,u&&g.length>0&&Xn(g[0]))throw new Error("Root segment cannot have matrix parameters");const v=g.find(er);if(v&&v!==hn(g))throw new Error("{outlets:{}} has to be the last command")}toRoot(){return this.isAbsolute&&1===this.commands.length&&"/"==this.commands[0]}}class Jr{constructor(u,o,g){this.segmentGroup=u,this.processChildren=o,this.index=g}}function Vt(d,u,o){if(d||(d=new je([],{})),0===d.segments.length&&d.hasChildren())return Xr(d,u,o);const g=function(d,u,o){let g=0,v=u;const T={match:!1,pathIndex:0,commandIndex:0};for(;v<d.segments.length;){if(g>=o.length)return T;const x=d.segments[v],F=o[g];if(er(F))break;const W=`${F}`,Ce=g<o.length-1?o[g+1]:null;if(v>0&&void 0===W)break;if(W&&Ce&&"object"==typeof Ce&&void 0===Ce.outlets){if(!P(W,Ce,x))return T;g+=2}else{if(!P(W,{},x))return T;g++}v++}return{match:!0,pathIndex:v,commandIndex:g}}(d,u,o),v=o.slice(g.commandIndex);if(g.match&&g.pathIndex<d.segments.length){const T=new je(d.segments.slice(0,g.pathIndex),{});return T.children[A]=new je(d.segments.slice(g.pathIndex),d.children),Xr(T,0,v)}return g.match&&0===v.length?new je(d.segments,{}):g.match&&!d.hasChildren()?S(d,u,o):g.match?Xr(d,0,v):S(d,u,o)}function Xr(d,u,o){if(0===o.length)return new je(d.segments,{});{const g=function(d){return er(d[0])?d[0].outlets:{[A]:d}}(o),v={};return pt(g,(T,x)=>{"string"==typeof T&&(T=[T]),null!==T&&(v[x]=Vt(d.children[x],u,T))}),pt(d.children,(T,x)=>{void 0===g[x]&&(v[x]=T)}),new je(d.segments,v)}}function S(d,u,o){const g=d.segments.slice(0,u);let v=0;for(;v<o.length;){const T=o[v];if(er(T)){const W=y(T.outlets);return new je(g,W)}if(0===v&&Xn(o[0])){g.push(new It(d.segments[u].path,I(o[0]))),v++;continue}const x=er(T)?T.outlets[A]:`${T}`,F=v<o.length-1?o[v+1]:null;x&&F&&Xn(F)?(g.push(new It(x,I(F))),v+=2):(g.push(new It(x,{})),v++)}return new je(g,{})}function y(d){const u={};return pt(d,(o,g)=>{"string"==typeof o&&(o=[o]),null!==o&&(u[g]=S(new je([],{}),0,o))}),u}function I(d){const u={};return pt(d,(o,g)=>u[g]=`${o}`),u}function P(d,u,o){return d==o.path&&tn(u,o.parameters)}class te{constructor(u,o,g,v){this.routeReuseStrategy=u,this.futureState=o,this.currState=g,this.forwardEvent=v}activate(u){const o=this.futureState._root,g=this.currState?this.currState._root:null;this.deactivateChildRoutes(o,g,u),Ir(this.futureState.root),this.activateChildRoutes(o,g,u)}deactivateChildRoutes(u,o,g){const v=pn(o);u.children.forEach(T=>{const x=T.value.outlet;this.deactivateRoutes(T,v[x],g),delete v[x]}),pt(v,(T,x)=>{this.deactivateRouteAndItsChildren(T,g)})}deactivateRoutes(u,o,g){const v=u.value,T=o?o.value:null;if(v===T)if(v.component){const x=g.getContext(v.outlet);x&&this.deactivateChildRoutes(u,o,x.children)}else this.deactivateChildRoutes(u,o,g);else T&&this.deactivateRouteAndItsChildren(o,g)}deactivateRouteAndItsChildren(u,o){u.value.component&&this.routeReuseStrategy.shouldDetach(u.value.snapshot)?this.detachAndStoreRouteSubtree(u,o):this.deactivateRouteAndOutlet(u,o)}detachAndStoreRouteSubtree(u,o){const g=o.getContext(u.value.outlet),v=g&&u.value.component?g.children:o,T=pn(u);for(const x of Object.keys(T))this.deactivateRouteAndItsChildren(T[x],v);if(g&&g.outlet){const x=g.outlet.detach(),F=g.children.onOutletDeactivated();this.routeReuseStrategy.store(u.value.snapshot,{componentRef:x,route:u,contexts:F})}}deactivateRouteAndOutlet(u,o){const g=o.getContext(u.value.outlet),v=g&&u.value.component?g.children:o,T=pn(u);for(const x of Object.keys(T))this.deactivateRouteAndItsChildren(T[x],v);g&&g.outlet&&(g.outlet.deactivate(),g.children.onOutletDeactivated(),g.attachRef=null,g.resolver=null,g.route=null)}activateChildRoutes(u,o,g){const v=pn(o);u.children.forEach(T=>{this.activateRoutes(T,v[T.value.outlet],g),this.forwardEvent(new B(T.value.snapshot))}),u.children.length&&this.forwardEvent(new Gr(u.value.snapshot))}activateRoutes(u,o,g){const v=u.value,T=o?o.value:null;if(Ir(v),v===T)if(v.component){const x=g.getOrCreateContext(v.outlet);this.activateChildRoutes(u,o,x.children)}else this.activateChildRoutes(u,o,g);else if(v.component){const x=g.getOrCreateContext(v.outlet);if(this.routeReuseStrategy.shouldAttach(v.snapshot)){const F=this.routeReuseStrategy.retrieve(v.snapshot);this.routeReuseStrategy.store(v.snapshot,null),x.children.onOutletReAttached(F.contexts),x.attachRef=F.componentRef,x.route=F.route.value,x.outlet&&x.outlet.attach(F.componentRef,F.route.value),Ir(F.route.value),this.activateChildRoutes(u,null,x.children)}else{const F=function(d){for(let u=d.parent;u;u=u.parent){const o=u.routeConfig;if(o&&o._loadedConfig)return o._loadedConfig;if(o&&o.component)return null}return null}(v.snapshot),W=F?F.module.componentFactoryResolver:null;x.attachRef=null,x.route=v,x.resolver=W,x.outlet&&x.outlet.activateWith(v,W),this.activateChildRoutes(u,null,x.children)}}else this.activateChildRoutes(u,null,g)}}class ke{constructor(u,o){this.routes=u,this.module=o}}function rt(d){return"function"==typeof d}function $e(d){return d instanceof Ut}const Mt=Symbol("INITIAL_VALUE");function Vn(){return He(d=>function(...d){let u=null,o=null;return(0,ye.K)(d[d.length-1])&&(o=d.pop()),"function"==typeof d[d.length-1]&&(u=d.pop()),1===d.length&&(0,re.k)(d[0])&&(d=d[0]),(0,_e.n)(d,o).lift(new Z(u))}(d.map(u=>u.pipe(Zn(1),function(...d){const u=d[d.length-1];return(0,ye.K)(u)?(d.pop(),o=>Oe(d,o,u)):o=>Oe(d,o)}(Mt)))).pipe(ae((u,o)=>{let g=!1;return o.reduce((v,T,x)=>v!==Mt?v:(T===Mt&&(g=!0),g||!1!==T&&x!==o.length-1&&!$e(T)?v:T),u)},Mt),(0,mt.h)(u=>u!==Mt),(0,ee.U)(u=>$e(u)?u:!0===u),Zn(1)))}class tr{constructor(){this.outlet=null,this.route=null,this.resolver=null,this.children=new Ar,this.attachRef=null}}class Ar{constructor(){this.contexts=new Map}onChildOutletCreated(u,o){const g=this.getOrCreateContext(u);g.outlet=o,this.contexts.set(u,g)}onChildOutletDestroyed(u){const o=this.getContext(u);o&&(o.outlet=null,o.attachRef=null)}onOutletDeactivated(){const u=this.contexts;return this.contexts=new Map,u}onOutletReAttached(u){this.contexts=u}getOrCreateContext(u){let o=this.getContext(u);return o||(o=new tr,this.contexts.set(u,o)),o}getContext(u){return this.contexts.get(u)||null}}let vn=(()=>{class d{constructor(o,g,v,T,x){this.parentContexts=o,this.location=g,this.resolver=v,this.changeDetector=x,this.activated=null,this._activatedRoute=null,this.activateEvents=new w.vpe,this.deactivateEvents=new w.vpe,this.attachEvents=new w.vpe,this.detachEvents=new w.vpe,this.name=T||A,o.onChildOutletCreated(this.name,this)}ngOnDestroy(){this.parentContexts.onChildOutletDestroyed(this.name)}ngOnInit(){if(!this.activated){const o=this.parentContexts.getContext(this.name);o&&o.route&&(o.attachRef?this.attach(o.attachRef,o.route):this.activateWith(o.route,o.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 o=this.activated;return this.activated=null,this._activatedRoute=null,this.detachEvents.emit(o.instance),o}attach(o,g){this.activated=o,this._activatedRoute=g,this.location.insert(o.hostView),this.attachEvents.emit(o.instance)}deactivate(){if(this.activated){const o=this.component;this.activated.destroy(),this.activated=null,this._activatedRoute=null,this.deactivateEvents.emit(o)}}activateWith(o,g){if(this.isActivated)throw new Error("Cannot activate an already activated outlet");this._activatedRoute=o;const x=(g=g||this.resolver).resolveComponentFactory(o._futureSnapshot.routeConfig.component),F=this.parentContexts.getOrCreateContext(this.name).children,W=new Bs(o,F,this.location.injector);this.activated=this.location.createComponent(x,this.location.length,W),this.changeDetector.markForCheck(),this.activateEvents.emit(this.activated.instance)}}return d.\u0275fac=function(o){return new(o||d)(w.Y36(Ar),w.Y36(w.s_b),w.Y36(w._Vd),w.$8M("name"),w.Y36(w.sBO))},d.\u0275dir=w.lG2({type:d,selectors:[["router-outlet"]],outputs:{activateEvents:"activate",deactivateEvents:"deactivate",attachEvents:"attach",detachEvents:"detach"},exportAs:["outlet"]}),d})();class Bs{constructor(u,o,g){this.route=u,this.childContexts=o,this.parent=g}get(u,o){return u===Un?this.route:u===Ar?this.childContexts:this.parent.get(u,o)}}let li=(()=>{class d{}return d.\u0275fac=function(o){return new(o||d)},d.\u0275cmp=w.Xpm({type:d,selectors:[["ng-component"]],decls:1,vars:0,template:function(o,g){1&o&&w._UZ(0,"router-outlet")},directives:[vn],encapsulation:2}),d})();function Ue(d,u=""){for(let o=0;o<d.length;o++){const g=d[o];oa(g,go(u,g))}}function oa(d,u){d.children&&Ue(d.children,u)}function go(d,u){return u?d||u.path?d&&!u.path?`${d}/`:!d&&u.path?u.path:`${d}/${u.path}`:"":d}function Us(d){const u=d.children&&d.children.map(Us),o=u?Object.assign(Object.assign({},d),{children:u}):Object.assign({},d);return!o.component&&(u||o.loadChildren)&&o.outlet&&o.outlet!==A&&(o.component=li),o}function gn(d){return d.outlet||A}function Cs(d,u){const o=d.filter(g=>gn(g)===u);return o.push(...d.filter(g=>gn(g)!==u)),o}const ci={matched:!1,consumedSegments:[],lastChild:0,parameters:{},positionalParamSegments:{}};function Vs(d,u,o){var g;if(""===u.path)return"full"===u.pathMatch&&(d.hasChildren()||o.length>0)?Object.assign({},ci):{matched:!0,consumedSegments:[],lastChild:0,parameters:{},positionalParamSegments:{}};const T=(u.matcher||an)(o,d,u);if(!T)return Object.assign({},ci);const x={};pt(T.posParams,(W,Ce)=>{x[Ce]=W.path});const F=T.consumed.length>0?Object.assign(Object.assign({},x),T.consumed[T.consumed.length-1].parameters):x;return{matched:!0,consumedSegments:T.consumed,lastChild:T.consumed.length,parameters:F,positionalParamSegments:null!==(g=T.posParams)&&void 0!==g?g:{}}}function K(d,u,o,g,v="corrected"){if(o.length>0&&function(d,u,o){return o.some(g=>pr(d,u,g)&&gn(g)!==A)}(d,o,g)){const x=new je(u,function(d,u,o,g){const v={};v[A]=g,g._sourceSegment=d,g._segmentIndexShift=u.length;for(const T of o)if(""===T.path&&gn(T)!==A){const x=new je([],{});x._sourceSegment=d,x._segmentIndexShift=u.length,v[gn(T)]=x}return v}(d,u,g,new je(o,d.children)));return x._sourceSegment=d,x._segmentIndexShift=u.length,{segmentGroup:x,slicedSegments:[]}}if(0===o.length&&function(d,u,o){return o.some(g=>pr(d,u,g))}(d,o,g)){const x=new je(d.segments,function(d,u,o,g,v,T){const x={};for(const F of g)if(pr(d,o,F)&&!v[gn(F)]){const W=new je([],{});W._sourceSegment=d,W._segmentIndexShift="legacy"===T?d.segments.length:u.length,x[gn(F)]=W}return Object.assign(Object.assign({},v),x)}(d,u,o,g,d.children,v));return x._sourceSegment=d,x._segmentIndexShift=u.length,{segmentGroup:x,slicedSegments:o}}const T=new je(d.segments,d.children);return T._sourceSegment=d,T._segmentIndexShift=u.length,{segmentGroup:T,slicedSegments:o}}function pr(d,u,o){return(!(d.hasChildren()||u.length>0)||"full"!==o.pathMatch)&&""===o.path}function Hn(d,u,o,g){return!!(gn(d)===g||g!==A&&pr(u,o,d))&&("**"===d.path||Vs(u,d,o).matched)}function di(d,u,o){return 0===u.length&&!d.children[o]}class xr{constructor(u){this.segmentGroup=u||null}}class ws{constructor(u){this.urlTree=u}}function es(d){return new be.y(u=>u.error(new xr(d)))}function ln(d){return new be.y(u=>u.error(new ws(d)))}function Rr(d){return new be.y(u=>u.error(new Error(`Only absolute redirects can have named outlets. redirectTo: '${d}'`)))}class Hs{constructor(u,o,g,v,T){this.configLoader=o,this.urlSerializer=g,this.urlTree=v,this.config=T,this.allowRedirects=!0,this.ngModule=u.get(w.h0i)}apply(){const u=K(this.urlTree.root,[],[],this.config).segmentGroup,o=new je(u.segments,u.children);return this.expandSegmentGroup(this.ngModule,this.config,o,A).pipe((0,ee.U)(T=>this.createUrlTree(Dn(T),this.urlTree.queryParams,this.urlTree.fragment))).pipe(Et(T=>{if(T instanceof ws)return this.allowRedirects=!1,this.match(T.urlTree);throw T instanceof xr?this.noMatchError(T):T}))}match(u){return this.expandSegmentGroup(this.ngModule,this.config,u.root,A).pipe((0,ee.U)(v=>this.createUrlTree(Dn(v),u.queryParams,u.fragment))).pipe(Et(v=>{throw v instanceof xr?this.noMatchError(v):v}))}noMatchError(u){return new Error(`Cannot match any routes. URL Segment: '${u.segmentGroup}'`)}createUrlTree(u,o,g){const v=u.segments.length>0?new je([],{[A]:u}):u;return new Ut(v,o,g)}expandSegmentGroup(u,o,g,v){return 0===g.segments.length&&g.hasChildren()?this.expandChildren(u,o,g).pipe((0,ee.U)(T=>new je([],T))):this.expandSegment(u,g,o,g.segments,v,!0)}expandChildren(u,o,g){const v=[];for(const T of Object.keys(g.children))"primary"===T?v.unshift(T):v.push(T);return(0,lt.D)(v).pipe((0,nt.b)(T=>{const x=g.children[T],F=Cs(o,T);return this.expandSegmentGroup(u,F,x,T).pipe((0,ee.U)(W=>({segment:W,outlet:T})))}),ae((T,x)=>(T[x.outlet]=x.segment,T),{}),function(d,u){const o=arguments.length>=2;return g=>g.pipe(d?(0,mt.h)((v,T)=>d(v,T,g)):_n.y,tt(1),o?An(u):_r(()=>new pe))}())}expandSegment(u,o,g,v,T,x){return(0,lt.D)(g).pipe((0,nt.b)(F=>this.expandSegmentAgainstRoute(u,o,g,F,v,T,x).pipe(Et(Ce=>{if(Ce instanceof xr)return(0,V.of)(null);throw Ce}))),dn(F=>!!F),Et((F,W)=>{if(F instanceof pe||"EmptyError"===F.name){if(di(o,v,T))return(0,V.of)(new je([],{}));throw new xr(o)}throw F}))}expandSegmentAgainstRoute(u,o,g,v,T,x,F){return Hn(v,o,T,x)?void 0===v.redirectTo?this.matchSegmentAgainstRoute(u,o,v,T,x):F&&this.allowRedirects?this.expandSegmentAgainstRouteUsingRedirect(u,o,g,v,T,x):es(o):es(o)}expandSegmentAgainstRouteUsingRedirect(u,o,g,v,T,x){return"**"===v.path?this.expandWildCardWithParamsAgainstRouteUsingRedirect(u,g,v,x):this.expandRegularSegmentAgainstRouteUsingRedirect(u,o,g,v,T,x)}expandWildCardWithParamsAgainstRouteUsingRedirect(u,o,g,v){const T=this.applyRedirectCommands([],g.redirectTo,{});return g.redirectTo.startsWith("/")?ln(T):this.lineralizeSegments(g,T).pipe((0,ze.zg)(x=>{const F=new je(x,{});return this.expandSegment(u,F,o,x,v,!1)}))}expandRegularSegmentAgainstRouteUsingRedirect(u,o,g,v,T,x){const{matched:F,consumedSegments:W,lastChild:Ce,positionalParamSegments:ht}=Vs(o,v,T);if(!F)return es(o);const Fe=this.applyRedirectCommands(W,v.redirectTo,ht);return v.redirectTo.startsWith("/")?ln(Fe):this.lineralizeSegments(v,Fe).pipe((0,ze.zg)(_t=>this.expandSegment(u,o,g,_t.concat(T.slice(Ce)),x,!1)))}matchSegmentAgainstRoute(u,o,g,v,T){if("**"===g.path)return g.loadChildren?(g._loadedConfig?(0,V.of)(g._loadedConfig):this.configLoader.load(u.injector,g)).pipe((0,ee.U)(_t=>(g._loadedConfig=_t,new je(v,{})))):(0,V.of)(new je(v,{}));const{matched:x,consumedSegments:F,lastChild:W}=Vs(o,g,v);if(!x)return es(o);const Ce=v.slice(W);return this.getChildConfig(u,g,v).pipe((0,ze.zg)(Fe=>{const _t=Fe.module,At=Fe.routes,{segmentGroup:Or,slicedSegments:ss}=K(o,F,Ce,At),xt=new je(Or.segments,Or.children);if(0===ss.length&&xt.hasChildren())return this.expandChildren(_t,At,xt).pipe((0,ee.U)(Qs=>new je(F,Qs)));if(0===At.length&&0===ss.length)return(0,V.of)(new je(F,{}));const vr=gn(g)===T;return this.expandSegment(_t,xt,At,ss,vr?A:T,!0).pipe((0,ee.U)(os=>new je(F.concat(os.segments),os.children)))}))}getChildConfig(u,o,g){return o.children?(0,V.of)(new ke(o.children,u)):o.loadChildren?void 0!==o._loadedConfig?(0,V.of)(o._loadedConfig):this.runCanLoadGuards(u.injector,o,g).pipe((0,ze.zg)(v=>{return v?this.configLoader.load(u.injector,o).pipe((0,ee.U)(T=>(o._loadedConfig=T,T))):(d=o,new be.y(u=>u.error(qe(`Cannot load children because the guard of the route "path: '${d.path}'" returned false`))));var d})):(0,V.of)(new ke([],u))}runCanLoadGuards(u,o,g){const v=o.canLoad;if(!v||0===v.length)return(0,V.of)(!0);const T=v.map(x=>{const F=u.get(x);let W;if((d=F)&&rt(d.canLoad))W=F.canLoad(o,g);else{if(!rt(F))throw new Error("Invalid CanLoad guard");W=F(o,g)}var d;return nn(W)});return(0,V.of)(T).pipe(Vn(),jt(x=>{if(!$e(x))return;const F=qe(`Redirecting to "${this.urlSerializer.serialize(x)}"`);throw F.url=x,F}),(0,ee.U)(x=>!0===x))}lineralizeSegments(u,o){let g=[],v=o.root;for(;;){if(g=g.concat(v.segments),0===v.numberOfChildren)return(0,V.of)(g);if(v.numberOfChildren>1||!v.children[A])return Rr(u.redirectTo);v=v.children[A]}}applyRedirectCommands(u,o,g){return this.applyRedirectCreatreUrlTree(o,this.urlSerializer.parse(o),u,g)}applyRedirectCreatreUrlTree(u,o,g,v){const T=this.createSegmentGroup(u,o.root,g,v);return new Ut(T,this.createQueryParams(o.queryParams,this.urlTree.queryParams),o.fragment)}createQueryParams(u,o){const g={};return pt(u,(v,T)=>{if("string"==typeof v&&v.startsWith(":")){const F=v.substring(1);g[T]=o[F]}else g[T]=v}),g}createSegmentGroup(u,o,g,v){const T=this.createSegments(u,o.segments,g,v);let x={};return pt(o.children,(F,W)=>{x[W]=this.createSegmentGroup(u,F,g,v)}),new je(T,x)}createSegments(u,o,g,v){return o.map(T=>T.path.startsWith(":")?this.findPosParam(u,T,v):this.findOrReturn(T,g))}findPosParam(u,o,g){const v=g[o.path.substring(1)];if(!v)throw new Error(`Cannot redirect to '${u}'. Cannot find '${o.path}'.`);return v}findOrReturn(u,o){let g=0;for(const v of o){if(v.path===u.path)return o.splice(g),v;g++}return u}}function Dn(d){const u={};for(const g of Object.keys(d.children)){const T=Dn(d.children[g]);(T.segments.length>0||T.hasChildren())&&(u[g]=T)}return function(d){if(1===d.numberOfChildren&&d.children[A]){const u=d.children[A];return new je(d.segments.concat(u.segments),u.children)}return d}(new je(d.segments,u))}class fi{constructor(u){this.path=u,this.route=this.path[this.path.length-1]}}class Es{constructor(u,o){this.component=u,this.route=o}}function yo(d,u,o){const g=d._root;return mr(g,u?u._root:null,o,[g.value])}function ts(d,u,o){const g=function(d){if(!d)return null;for(let u=d.parent;u;u=u.parent){const o=u.routeConfig;if(o&&o._loadedConfig)return o._loadedConfig}return null}(u);return(g?g.module.injector:o).get(d)}function mr(d,u,o,g,v={canDeactivateChecks:[],canActivateChecks:[]}){const T=pn(u);return d.children.forEach(x=>{(function(d,u,o,g,v={canDeactivateChecks:[],canActivateChecks:[]}){const T=d.value,x=u?u.value:null,F=o?o.getContext(d.value.outlet):null;if(x&&T.routeConfig===x.routeConfig){const W=function(d,u,o){if("function"==typeof o)return o(d,u);switch(o){case"pathParamsChange":return!gt(d.url,u.url);case"pathParamsOrQueryParamsChange":return!gt(d.url,u.url)||!tn(d.queryParams,u.queryParams);case"always":return!0;case"paramsOrQueryParamsChange":return!Yr(d,u)||!tn(d.queryParams,u.queryParams);default:return!Yr(d,u)}}(x,T,T.routeConfig.runGuardsAndResolvers);W?v.canActivateChecks.push(new fi(g)):(T.data=x.data,T._resolvedData=x._resolvedData),mr(d,u,T.component?F?F.children:null:o,g,v),W&&F&&F.outlet&&F.outlet.isActivated&&v.canDeactivateChecks.push(new Es(F.outlet.component,x))}else x&&yr(u,F,v),v.canActivateChecks.push(new fi(g)),mr(d,null,T.component?F?F.children:null:o,g,v)})(x,T[x.value.outlet],o,g.concat([x.value]),v),delete T[x.value.outlet]}),pt(T,(x,F)=>yr(x,o.getContext(F),v)),v}function yr(d,u,o){const g=pn(d),v=d.value;pt(g,(T,x)=>{yr(T,v.component?u?u.children.getContext(x):null:u,o)}),o.canDeactivateChecks.push(new Es(v.component&&u&&u.outlet&&u.outlet.isActivated?u.outlet.component:null,v))}class D{}function C(d){return new be.y(u=>u.error(d))}class k{constructor(u,o,g,v,T,x){this.rootComponentType=u,this.config=o,this.urlTree=g,this.url=v,this.paramsInheritanceStrategy=T,this.relativeLinkResolution=x}recognize(){const u=K(this.urlTree.root,[],[],this.config.filter(x=>void 0===x.redirectTo),this.relativeLinkResolution).segmentGroup,o=this.processSegmentGroup(this.config,u,A);if(null===o)return null;const g=new Pn([],Object.freeze({}),Object.freeze(Object.assign({},this.urlTree.queryParams)),this.urlTree.fragment,{},A,this.rootComponentType,null,this.urlTree.root,-1,{}),v=new Bn(g,o),T=new si(this.url,v);return this.inheritParamsAndData(T._root),T}inheritParamsAndData(u){const o=u.value,g=Tr(o,this.paramsInheritanceStrategy);o.params=Object.freeze(g.params),o.data=Object.freeze(g.data),u.children.forEach(v=>this.inheritParamsAndData(v))}processSegmentGroup(u,o,g){return 0===o.segments.length&&o.hasChildren()?this.processChildren(u,o):this.processSegment(u,o,o.segments,g)}processChildren(u,o){const g=[];for(const T of Object.keys(o.children)){const x=o.children[T],F=Cs(u,T),W=this.processSegmentGroup(F,x,T);if(null===W)return null;g.push(...W)}const v=Te(g);return v.sort((u,o)=>u.value.outlet===A?-1:o.value.outlet===A?1:u.value.outlet.localeCompare(o.value.outlet)),v}processSegment(u,o,g,v){for(const T of u){const x=this.processSegmentAgainstRoute(T,o,g,v);if(null!==x)return x}return di(o,g,v)?[]:null}processSegmentAgainstRoute(u,o,g,v){if(u.redirectTo||!Hn(u,o,g,v))return null;let T,x=[],F=[];if("**"===u.path){const At=g.length>0?hn(g).parameters:{};T=new Pn(g,At,Object.freeze(Object.assign({},this.urlTree.queryParams)),this.urlTree.fragment,Je(u),gn(u),u.component,u,xe(o),Se(o)+g.length,Ft(u))}else{const At=Vs(o,u,g);if(!At.matched)return null;x=At.consumedSegments,F=g.slice(At.lastChild),T=new Pn(x,At.parameters,Object.freeze(Object.assign({},this.urlTree.queryParams)),this.urlTree.fragment,Je(u),gn(u),u.component,u,xe(o),Se(o)+x.length,Ft(u))}const W=(d=u).children?d.children:d.loadChildren?d._loadedConfig.routes:[],{segmentGroup:Ce,slicedSegments:ht}=K(o,x,F,W.filter(At=>void 0===At.redirectTo),this.relativeLinkResolution);var d;if(0===ht.length&&Ce.hasChildren()){const At=this.processChildren(W,Ce);return null===At?null:[new Bn(T,At)]}if(0===W.length&&0===ht.length)return[new Bn(T,[])];const Fe=gn(u)===v,_t=this.processSegment(W,Ce,ht,Fe?A:v);return null===_t?null:[new Bn(T,_t)]}}function z(d){const u=d.value.routeConfig;return u&&""===u.path&&void 0===u.redirectTo}function Te(d){const u=[],o=new Set;for(const g of d){if(!z(g)){u.push(g);continue}const v=u.find(T=>g.value.routeConfig===T.value.routeConfig);void 0!==v?(v.children.push(...g.children),o.add(v)):u.push(g)}for(const g of o){const v=Te(g.children);u.push(new Bn(g.value,v))}return u.filter(g=>!o.has(g))}function xe(d){let u=d;for(;u._sourceSegment;)u=u._sourceSegment;return u}function Se(d){let u=d,o=u._segmentIndexShift?u._segmentIndexShift:0;for(;u._sourceSegment;)u=u._sourceSegment,o+=u._segmentIndexShift?u._segmentIndexShift:0;return o-1}function Je(d){return d.data||{}}function Ft(d){return d.resolve||{}}function Ss(d){return He(u=>{const o=d(u);return o?(0,lt.D)(o).pipe((0,ee.U)(()=>u)):(0,V.of)(u)})}class nu extends class{shouldDetach(u){return!1}store(u,o){}shouldAttach(u){return!1}retrieve(u){return null}shouldReuseRoute(u,o){return u.routeConfig===o.routeConfig}}{}const ua=new w.OlP("ROUTES");class ru{constructor(u,o,g,v){this.injector=u,this.compiler=o,this.onLoadStartListener=g,this.onLoadEndListener=v}load(u,o){if(o._loader$)return o._loader$;this.onLoadStartListener&&this.onLoadStartListener(o);const v=this.loadModuleFactory(o.loadChildren).pipe((0,ee.U)(T=>{this.onLoadEndListener&&this.onLoadEndListener(o);const x=T.create(u);return new ke(Ht(x.injector.get(ua,void 0,w.XFs.Self|w.XFs.Optional)).map(Us),x)}),Et(T=>{throw o._loader$=void 0,T}));return o._loader$=new Le.c(v,()=>new E.xQ).pipe((0,Lt.x)()),o._loader$}loadModuleFactory(u){return nn(u()).pipe((0,ze.zg)(o=>o instanceof w.YKP?(0,V.of)(o):(0,lt.D)(this.compiler.compileModuleAsync(o))))}}class la{shouldProcessUrl(u){return!0}extract(u){return u}merge(u,o){return u}}function Co(d){throw d}function Pi(d,u,o){return u.parse("/")}function wo(d,u){return(0,V.of)(null)}const ca={paths:"exact",fragment:"ignored",matrixParams:"ignored",queryParams:"exact"},zs={paths:"subset",fragment:"ignored",matrixParams:"ignored",queryParams:"subset"};let Tn=(()=>{class d{constructor(o,g,v,T,x,F,W){this.rootComponentType=o,this.urlSerializer=g,this.rootContexts=v,this.location=T,this.config=W,this.lastSuccessfulNavigation=null,this.currentNavigation=null,this.disposed=!1,this.navigationId=0,this.currentPageId=0,this.isNgZoneEnabled=!1,this.events=new E.xQ,this.errorHandler=Co,this.malformedUriErrorHandler=Pi,this.navigated=!1,this.lastSuccessfulId=-1,this.hooks={beforePreactivation:wo,afterPreactivation:wo},this.urlHandlingStrategy=new la,this.routeReuseStrategy=new nu,this.onSameUrlNavigation="ignore",this.paramsInheritanceStrategy="emptyOnly",this.urlUpdateStrategy="deferred",this.relativeLinkResolution="corrected",this.canceledNavigationResolution="replace",this.ngModule=x.get(w.h0i),this.console=x.get(w.c2e);const Fe=x.get(w.R0b);this.isNgZoneEnabled=Fe instanceof w.R0b&&w.R0b.isInAngularZone(),this.resetConfig(W),this.currentUrlTree=new Ut(new je([],{}),{},null),this.rawUrlTree=this.currentUrlTree,this.browserUrlTree=this.currentUrlTree,this.configLoader=new ru(x,F,_t=>this.triggerEvent(new Cn(_t)),_t=>this.triggerEvent(new qn(_t))),this.routerState=Ns(this.currentUrlTree,this.rootComponentType),this.transitions=new ue({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 o;return null===(o=this.location.getState())||void 0===o?void 0:o.\u0275routerPageId}setupNavigations(o){const g=this.events;return o.pipe((0,mt.h)(v=>0!==v.id),(0,ee.U)(v=>Object.assign(Object.assign({},v),{extractedUrl:this.urlHandlingStrategy.extract(v.rawUrl)})),He(v=>{let T=!1,x=!1;return(0,V.of)(v).pipe(jt(F=>{this.currentNavigation={id:F.id,initialUrl:F.currentRawUrl,extractedUrl:F.extractedUrl,trigger:F.source,extras:F.extras,previousNavigation:this.lastSuccessfulNavigation?Object.assign(Object.assign({},this.lastSuccessfulNavigation),{previousNavigation:null}):null}}),He(F=>{const W=this.browserUrlTree.toString(),Ce=!this.navigated||F.extractedUrl.toString()!==W||W!==this.currentUrlTree.toString();if(("reload"===this.onSameUrlNavigation||Ce)&&this.urlHandlingStrategy.shouldProcessUrl(F.rawUrl))return Zs(F.source)&&(this.browserUrlTree=F.extractedUrl),(0,V.of)(F).pipe(He(Fe=>{const _t=this.transitions.getValue();return g.next(new ar(Fe.id,this.serializeUrl(Fe.extractedUrl),Fe.source,Fe.restoredState)),_t!==this.transitions.getValue()?en:Promise.resolve(Fe)}),function(d,u,o,g){return He(v=>function(d,u,o,g,v){return new Hs(d,u,o,g,v).apply()}(d,u,o,v.extractedUrl,g).pipe((0,ee.U)(T=>Object.assign(Object.assign({},v),{urlAfterRedirects:T}))))}(this.ngModule.injector,this.configLoader,this.urlSerializer,this.config),jt(Fe=>{this.currentNavigation=Object.assign(Object.assign({},this.currentNavigation),{finalUrl:Fe.urlAfterRedirects})}),function(d,u,o,g,v){return(0,ze.zg)(T=>function(d,u,o,g,v="emptyOnly",T="legacy"){try{const x=new k(d,u,o,g,v,T).recognize();return null===x?C(new D):(0,V.of)(x)}catch(x){return C(x)}}(d,u,T.urlAfterRedirects,o(T.urlAfterRedirects),g,v).pipe((0,ee.U)(x=>Object.assign(Object.assign({},T),{targetSnapshot:x}))))}(this.rootComponentType,this.config,Fe=>this.serializeUrl(Fe),this.paramsInheritanceStrategy,this.relativeLinkResolution),jt(Fe=>{if("eager"===this.urlUpdateStrategy){if(!Fe.extras.skipLocationChange){const At=this.urlHandlingStrategy.merge(Fe.urlAfterRedirects,Fe.rawUrl);this.setBrowserUrl(At,Fe)}this.browserUrlTree=Fe.urlAfterRedirects}const _t=new Rt(Fe.id,this.serializeUrl(Fe.extractedUrl),this.serializeUrl(Fe.urlAfterRedirects),Fe.targetSnapshot);g.next(_t)}));if(Ce&&this.rawUrlTree&&this.urlHandlingStrategy.shouldProcessUrl(this.rawUrlTree)){const{id:_t,extractedUrl:At,source:Or,restoredState:ss,extras:xt}=F,vr=new ar(_t,this.serializeUrl(At),Or,ss);g.next(vr);const is=Ns(At,this.rootComponentType).snapshot;return(0,V.of)(Object.assign(Object.assign({},F),{targetSnapshot:is,urlAfterRedirects:At,extras:Object.assign(Object.assign({},xt),{skipLocationChange:!1,replaceUrl:!1})}))}return this.rawUrlTree=F.rawUrl,F.resolve(null),en}),Ss(F=>{const{targetSnapshot:W,id:Ce,extractedUrl:ht,rawUrl:Fe,extras:{skipLocationChange:_t,replaceUrl:At}}=F;return this.hooks.beforePreactivation(W,{navigationId:Ce,appliedUrlTree:ht,rawUrlTree:Fe,skipLocationChange:!!_t,replaceUrl:!!At})}),jt(F=>{const W=new zr(F.id,this.serializeUrl(F.extractedUrl),this.serializeUrl(F.urlAfterRedirects),F.targetSnapshot);this.triggerEvent(W)}),(0,ee.U)(F=>Object.assign(Object.assign({},F),{guards:yo(F.targetSnapshot,F.currentSnapshot,this.rootContexts)})),function(d,u){return(0,ze.zg)(o=>{const{targetSnapshot:g,currentSnapshot:v,guards:{canActivateChecks:T,canDeactivateChecks:x}}=o;return 0===x.length&&0===T.length?(0,V.of)(Object.assign(Object.assign({},o),{guardsResult:!0})):function(d,u,o,g){return(0,lt.D)(d).pipe((0,ze.zg)(v=>function(d,u,o,g,v){const T=u&&u.routeConfig?u.routeConfig.canDeactivate:null;if(!T||0===T.length)return(0,V.of)(!0);const x=T.map(F=>{const W=ts(F,u,v);let Ce;if(function(d){return d&&rt(d.canDeactivate)}(W))Ce=nn(W.canDeactivate(d,u,o,g));else{if(!rt(W))throw new Error("Invalid CanDeactivate guard");Ce=nn(W(d,u,o,g))}return Ce.pipe(dn())});return(0,V.of)(x).pipe(Vn())}(v.component,v.route,o,u,g)),dn(v=>!0!==v,!0))}(x,g,v,d).pipe((0,ze.zg)(F=>F&&function(d){return"boolean"==typeof d}(F)?function(d,u,o,g){return(0,lt.D)(u).pipe((0,nt.b)(v=>Oe(function(d,u){return null!==d&&u&&u(new Ds(d)),(0,V.of)(!0)}(v.route.parent,g),function(d,u){return null!==d&&u&&u(new Rn(d)),(0,V.of)(!0)}(v.route,g),function(d,u,o){const g=u[u.length-1],T=u.slice(0,u.length-1).reverse().map(x=>function(d){const u=d.routeConfig?d.routeConfig.canActivateChild:null;return u&&0!==u.length?{node:d,guards:u}:null}(x)).filter(x=>null!==x).map(x=>kn(()=>{const F=x.guards.map(W=>{const Ce=ts(W,x.node,o);let ht;if(function(d){return d&&rt(d.canActivateChild)}(Ce))ht=nn(Ce.canActivateChild(g,d));else{if(!rt(Ce))throw new Error("Invalid CanActivateChild guard");ht=nn(Ce(g,d))}return ht.pipe(dn())});return(0,V.of)(F).pipe(Vn())}));return(0,V.of)(T).pipe(Vn())}(d,v.path,o),function(d,u,o){const g=u.routeConfig?u.routeConfig.canActivate:null;if(!g||0===g.length)return(0,V.of)(!0);const v=g.map(T=>kn(()=>{const x=ts(T,u,o);let F;if(function(d){return d&&rt(d.canActivate)}(x))F=nn(x.canActivate(u,d));else{if(!rt(x))throw new Error("Invalid CanActivate guard");F=nn(x(u,d))}return F.pipe(dn())}));return(0,V.of)(v).pipe(Vn())}(d,v.route,o))),dn(v=>!0!==v,!0))}(g,T,d,u):(0,V.of)(F)),(0,ee.U)(F=>Object.assign(Object.assign({},o),{guardsResult:F})))})}(this.ngModule.injector,F=>this.triggerEvent(F)),jt(F=>{if($e(F.guardsResult)){const Ce=qe(`Redirecting to "${this.serializeUrl(F.guardsResult)}"`);throw Ce.url=F.guardsResult,Ce}const W=new wi(F.id,this.serializeUrl(F.extractedUrl),this.serializeUrl(F.urlAfterRedirects),F.targetSnapshot,!!F.guardsResult);this.triggerEvent(W)}),(0,mt.h)(F=>!!F.guardsResult||(this.restoreHistory(F),this.cancelNavigationTransition(F,""),!1)),Ss(F=>{if(F.guards.canActivateChecks.length)return(0,V.of)(F).pipe(jt(W=>{const Ce=new xn(W.id,this.serializeUrl(W.extractedUrl),this.serializeUrl(W.urlAfterRedirects),W.targetSnapshot);this.triggerEvent(Ce)}),He(W=>{let Ce=!1;return(0,V.of)(W).pipe(function(d,u){return(0,ze.zg)(o=>{const{targetSnapshot:g,guards:{canActivateChecks:v}}=o;if(!v.length)return(0,V.of)(o);let T=0;return(0,lt.D)(v).pipe((0,nt.b)(x=>function(d,u,o,g){return function(d,u,o,g){const v=Object.keys(d);if(0===v.length)return(0,V.of)({});const T={};return(0,lt.D)(v).pipe((0,ze.zg)(x=>function(d,u,o,g){const v=ts(d,u,g);return nn(v.resolve?v.resolve(u,o):v(u,o))}(d[x],u,o,g).pipe(jt(F=>{T[x]=F}))),tt(1),(0,ze.zg)(()=>Object.keys(T).length===v.length?(0,V.of)(T):en))}(d._resolve,d,u,g).pipe((0,ee.U)(T=>(d._resolvedData=T,d.data=Object.assign(Object.assign({},d.data),Tr(d,o).resolve),null)))}(x.route,g,d,u)),jt(()=>T++),tt(1),(0,ze.zg)(x=>T===v.length?(0,V.of)(o):en))})}(this.paramsInheritanceStrategy,this.ngModule.injector),jt({next:()=>Ce=!0,complete:()=>{Ce||(this.restoreHistory(W),this.cancelNavigationTransition(W,"At least one route resolver didn't emit any value."))}}))}),jt(W=>{const Ce=new ct(W.id,this.serializeUrl(W.extractedUrl),this.serializeUrl(W.urlAfterRedirects),W.targetSnapshot);this.triggerEvent(Ce)}))}),Ss(F=>{const{targetSnapshot:W,id:Ce,extractedUrl:ht,rawUrl:Fe,extras:{skipLocationChange:_t,replaceUrl:At}}=F;return this.hooks.afterPreactivation(W,{navigationId:Ce,appliedUrlTree:ht,rawUrlTree:Fe,skipLocationChange:!!_t,replaceUrl:!!At})}),(0,ee.U)(F=>{const W=function(d,u,o){const g=Kr(d,u._root,o?o._root:void 0);return new Fs(g,u)}(this.routeReuseStrategy,F.targetSnapshot,F.currentRouterState);return Object.assign(Object.assign({},F),{targetRouterState:W})}),jt(F=>{this.currentUrlTree=F.urlAfterRedirects,this.rawUrlTree=this.urlHandlingStrategy.merge(F.urlAfterRedirects,F.rawUrl),this.routerState=F.targetRouterState,"deferred"===this.urlUpdateStrategy&&(F.extras.skipLocationChange||this.setBrowserUrl(this.rawUrlTree,F),this.browserUrlTree=F.urlAfterRedirects)}),((d,u,o)=>(0,ee.U)(g=>(new te(u,g.targetRouterState,g.currentRouterState,o).activate(d),g)))(this.rootContexts,this.routeReuseStrategy,F=>this.triggerEvent(F)),jt({next(){T=!0},complete(){T=!0}}),function(d){return u=>u.lift(new or(d))}(()=>{var F;T||x||this.cancelNavigationTransition(v,`Navigation ID ${v.id} is not equal to the current navigation id ${this.navigationId}`),(null===(F=this.currentNavigation)||void 0===F?void 0:F.id)===v.id&&(this.currentNavigation=null)}),Et(F=>{if(x=!0,function(d){return d&&d[Ae]}(F)){const W=$e(F.url);W||(this.navigated=!0,this.restoreHistory(v,!0));const Ce=new xs(v.id,this.serializeUrl(v.extractedUrl),F.message);g.next(Ce),W?setTimeout(()=>{const ht=this.urlHandlingStrategy.merge(F.url,this.rawUrlTree),Fe={skipLocationChange:v.extras.skipLocationChange,replaceUrl:"eager"===this.urlUpdateStrategy||Zs(v.source)};this.scheduleNavigation(ht,"imperative",null,Fe,{resolve:v.resolve,reject:v.reject,promise:v.promise})},0):v.resolve(!1)}else{this.restoreHistory(v,!0);const W=new $r(v.id,this.serializeUrl(v.extractedUrl),F);g.next(W);try{v.resolve(this.errorHandler(F))}catch(Ce){v.reject(Ce)}}return en}))}))}resetRootComponentType(o){this.rootComponentType=o,this.routerState.root.component=this.rootComponentType}setTransition(o){this.transitions.next(Object.assign(Object.assign({},this.transitions.value),o))}initialNavigation(){this.setUpLocationChangeListener(),0===this.navigationId&&this.navigateByUrl(this.location.path(!0),{replaceUrl:!0})}setUpLocationChangeListener(){this.locationSubscription||(this.locationSubscription=this.location.subscribe(o=>{const g="popstate"===o.type?"popstate":"hashchange";"popstate"===g&&setTimeout(()=>{var v;const T={replaceUrl:!0},x=(null===(v=o.state)||void 0===v?void 0:v.navigationId)?o.state:null;if(x){const W=Object.assign({},x);delete W.navigationId,delete W.\u0275routerPageId,0!==Object.keys(W).length&&(T.state=W)}const F=this.parseUrl(o.url);this.scheduleNavigation(F,g,x,T)},0)}))}get url(){return this.serializeUrl(this.currentUrlTree)}getCurrentNavigation(){return this.currentNavigation}triggerEvent(o){this.events.next(o)}resetConfig(o){Ue(o),this.config=o.map(Us),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(o,g={}){const{relativeTo:v,queryParams:T,fragment:x,queryParamsHandling:F,preserveFragment:W}=g,Ce=v||this.routerState.root,ht=W?this.currentUrlTree.fragment:x;let Fe=null;switch(F){case"merge":Fe=Object.assign(Object.assign({},this.currentUrlTree.queryParams),T);break;case"preserve":Fe=this.currentUrlTree.queryParams;break;default:Fe=T||null}return null!==Fe&&(Fe=this.removeEmptyProps(Fe)),function(d,u,o,g,v){if(0===o.length)return Qr(u.root,u.root,u,g,v);const T=function(d){if("string"==typeof d[0]&&1===d.length&&"/"===d[0])return new oi(!0,0,d);let u=0,o=!1;const g=d.reduce((v,T,x)=>{if("object"==typeof T&&null!=T){if(T.outlets){const F={};return pt(T.outlets,(W,Ce)=>{F[Ce]="string"==typeof W?W.split("/"):W}),[...v,{outlets:F}]}if(T.segmentPath)return[...v,T.segmentPath]}return"string"!=typeof T?[...v,T]:0===x?(T.split("/").forEach((F,W)=>{0==W&&"."===F||(0==W&&""===F?o=!0:".."===F?u++:""!=F&&v.push(F))}),v):[...v,T]},[]);return new oi(o,u,g)}(o);if(T.toRoot())return Qr(u.root,new je([],{}),u,g,v);const x=function(d,u,o){if(d.isAbsolute)return new Jr(u.root,!0,0);if(-1===o.snapshot._lastPathIndex){const T=o.snapshot._urlSegment;return new Jr(T,T===u.root,0)}const g=Xn(d.commands[0])?0:1;return function(d,u,o){let g=d,v=u,T=o;for(;T>v;){if(T-=v,g=g.parent,!g)throw new Error("Invalid number of '../'");v=g.segments.length}return new Jr(g,!1,v-T)}(o.snapshot._urlSegment,o.snapshot._lastPathIndex+g,d.numberOfDoubleDots)}(T,u,d),F=x.processChildren?Xr(x.segmentGroup,x.index,T.commands):Vt(x.segmentGroup,x.index,T.commands);return Qr(x.segmentGroup,F,u,g,v)}(Ce,this.currentUrlTree,o,Fe,null!=ht?ht:null)}navigateByUrl(o,g={skipLocationChange:!1}){const v=$e(o)?o:this.parseUrl(o),T=this.urlHandlingStrategy.merge(v,this.rawUrlTree);return this.scheduleNavigation(T,"imperative",null,g)}navigate(o,g={skipLocationChange:!1}){return function(d){for(let u=0;u<d.length;u++){const o=d[u];if(null==o)throw new Error(`The requested path contains ${o} segment at index ${u}`)}}(o),this.navigateByUrl(this.createUrlTree(o,g),g)}serializeUrl(o){return this.urlSerializer.serialize(o)}parseUrl(o){let g;try{g=this.urlSerializer.parse(o)}catch(v){g=this.malformedUriErrorHandler(v,this.urlSerializer,o)}return g}isActive(o,g){let v;if(v=!0===g?Object.assign({},ca):!1===g?Object.assign({},zs):g,$e(o))return Qt(this.currentUrlTree,o,v);const T=this.parseUrl(o);return Qt(this.currentUrlTree,T,v)}removeEmptyProps(o){return Object.keys(o).reduce((g,v)=>{const T=o[v];return null!=T&&(g[v]=T),g},{})}processNavigations(){this.navigations.subscribe(o=>{this.navigated=!0,this.lastSuccessfulId=o.id,this.currentPageId=o.targetPageId,this.events.next(new at(o.id,this.serializeUrl(o.extractedUrl),this.serializeUrl(this.currentUrlTree))),this.lastSuccessfulNavigation=this.currentNavigation,o.resolve(!0)},o=>{this.console.warn(`Unhandled Navigation Error: ${o}`)})}scheduleNavigation(o,g,v,T,x){var F,W,Ce;if(this.disposed)return Promise.resolve(!1);const ht=this.transitions.value,Fe=Zs(g)&&ht&&!Zs(ht.source),_t=ht.rawUrl.toString()===o.toString(),At=ht.id===(null===(F=this.currentNavigation)||void 0===F?void 0:F.id);if(Fe&&_t&&At)return Promise.resolve(!0);let ss,xt,vr;x?(ss=x.resolve,xt=x.reject,vr=x.promise):vr=new Promise((Qs,Gn)=>{ss=Qs,xt=Gn});const is=++this.navigationId;let os;return"computed"===this.canceledNavigationResolution?(0===this.currentPageId&&(v=this.location.getState()),os=v&&v.\u0275routerPageId?v.\u0275routerPageId:T.replaceUrl||T.skipLocationChange?null!==(W=this.browserPageId)&&void 0!==W?W:0:(null!==(Ce=this.browserPageId)&&void 0!==Ce?Ce:0)+1):os=0,this.setTransition({id:is,targetPageId:os,source:g,restoredState:v,currentUrlTree:this.currentUrlTree,currentRawUrl:this.rawUrlTree,rawUrl:o,extras:T,resolve:ss,reject:xt,promise:vr,currentSnapshot:this.routerState.snapshot,currentRouterState:this.routerState}),vr.catch(Qs=>Promise.reject(Qs))}setBrowserUrl(o,g){const v=this.urlSerializer.serialize(o),T=Object.assign(Object.assign({},g.extras.state),this.generateNgRouterState(g.id,g.targetPageId));this.location.isCurrentPathEqualTo(v)||g.extras.replaceUrl?this.location.replaceState(v,"",T):this.location.go(v,"",T)}restoreHistory(o,g=!1){var v,T;if("computed"===this.canceledNavigationResolution){const x=this.currentPageId-o.targetPageId;"popstate"!==o.source&&"eager"!==this.urlUpdateStrategy&&this.currentUrlTree!==(null===(v=this.currentNavigation)||void 0===v?void 0:v.finalUrl)||0===x?this.currentUrlTree===(null===(T=this.currentNavigation)||void 0===T?void 0:T.finalUrl)&&0===x&&(this.resetState(o),this.browserUrlTree=o.currentUrlTree,this.resetUrlToCurrentUrlTree()):this.location.historyGo(x)}else"replace"===this.canceledNavigationResolution&&(g&&this.resetState(o),this.resetUrlToCurrentUrlTree())}resetState(o){this.routerState=o.currentRouterState,this.currentUrlTree=o.currentUrlTree,this.rawUrlTree=this.urlHandlingStrategy.merge(this.currentUrlTree,o.rawUrl)}resetUrlToCurrentUrlTree(){this.location.replaceState(this.urlSerializer.serialize(this.rawUrlTree),"",this.generateNgRouterState(this.lastSuccessfulId,this.currentPageId))}cancelNavigationTransition(o,g){const v=new xs(o.id,this.serializeUrl(o.extractedUrl),g);this.triggerEvent(v),o.resolve(!1)}generateNgRouterState(o,g){return"computed"===this.canceledNavigationResolution?{navigationId:o,\u0275routerPageId:g}:{navigationId:o}}}return d.\u0275fac=function(o){w.$Z()},d.\u0275prov=w.Yz7({token:d,factory:d.\u0275fac}),d})();function Zs(d){return"imperative"!==d}let Eo=(()=>{class d{constructor(o,g,v){this.router=o,this.route=g,this.locationStrategy=v,this.commands=null,this.href=null,this.onChanges=new E.xQ,this.subscription=o.events.subscribe(T=>{T instanceof at&&this.updateTargetUrlAndHref()})}set routerLink(o){this.commands=null!=o?Array.isArray(o)?o:[o]:null}ngOnChanges(o){this.updateTargetUrlAndHref(),this.onChanges.next(this)}ngOnDestroy(){this.subscription.unsubscribe()}onClick(o,g,v,T,x){if(0!==o||g||v||T||x||"string"==typeof this.target&&"_self"!=this.target||null===this.urlTree)return!0;const F={skipLocationChange:Ts(this.skipLocationChange),replaceUrl:Ts(this.replaceUrl),state:this.state};return this.router.navigateByUrl(this.urlTree,F),!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:Ts(this.preserveFragment)})}}return d.\u0275fac=function(o){return new(o||d)(w.Y36(Tn),w.Y36(Un),w.Y36(fn.S$))},d.\u0275dir=w.lG2({type:d,selectors:[["a","routerLink",""],["area","routerLink",""]],hostVars:2,hostBindings:function(o,g){1&o&&w.NdJ("click",function(T){return g.onClick(T.button,T.ctrlKey,T.shiftKey,T.altKey,T.metaKey)}),2&o&&w.uIk("target",g.target)("href",g.href,w.LSH)},inputs:{target:"target",queryParams:"queryParams",fragment:"fragment",queryParamsHandling:"queryParamsHandling",preserveFragment:"preserveFragment",skipLocationChange:"skipLocationChange",replaceUrl:"replaceUrl",state:"state",relativeTo:"relativeTo",routerLink:"routerLink"},features:[w.TTD]}),d})();function Ts(d){return""===d||!!d}class fa{}class Fi{preload(u,o){return(0,V.of)(null)}}let Ni=(()=>{class d{constructor(o,g,v,T){this.router=o,this.injector=v,this.preloadingStrategy=T,this.loader=new ru(v,g,W=>o.triggerEvent(new Cn(W)),W=>o.triggerEvent(new qn(W)))}setUpPreloading(){this.subscription=this.router.events.pipe((0,mt.h)(o=>o instanceof at),(0,nt.b)(()=>this.preload())).subscribe(()=>{})}preload(){const o=this.injector.get(w.h0i);return this.processRoutes(o,this.router.config)}ngOnDestroy(){this.subscription&&this.subscription.unsubscribe()}processRoutes(o,g){const v=[];for(const T of g)if(T.loadChildren&&!T.canLoad&&T._loadedConfig){const x=T._loadedConfig;v.push(this.processRoutes(x.module,x.routes))}else T.loadChildren&&!T.canLoad?v.push(this.preloadConfig(o,T)):T.children&&v.push(this.processRoutes(o,T.children));return(0,lt.D)(v).pipe((0,Ne.J)(),(0,ee.U)(T=>{}))}preloadConfig(o,g){return this.preloadingStrategy.preload(g,()=>(g._loadedConfig?(0,V.of)(g._loadedConfig):this.loader.load(o.injector,g)).pipe((0,ze.zg)(T=>(g._loadedConfig=T,this.processRoutes(T.module,T.routes)))))}}return d.\u0275fac=function(o){return new(o||d)(w.LFG(Tn),w.LFG(w.Sil),w.LFG(w.zs3),w.LFG(fa))},d.\u0275prov=w.Yz7({token:d,factory:d.\u0275fac}),d})(),qs=(()=>{class d{constructor(o,g,v={}){this.router=o,this.viewportScroller=g,this.options=v,this.lastId=0,this.lastSource="imperative",this.restoredId=0,this.store={},v.scrollPositionRestoration=v.scrollPositionRestoration||"disabled",v.anchorScrolling=v.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(o=>{o instanceof ar?(this.store[this.lastId]=this.viewportScroller.getScrollPosition(),this.lastSource=o.navigationTrigger,this.restoredId=o.restoredState?o.restoredState.navigationId:0):o instanceof at&&(this.lastId=o.id,this.scheduleScrollEvent(o,this.router.parseUrl(o.urlAfterRedirects).fragment))})}consumeScrollEvents(){return this.router.events.subscribe(o=>{o instanceof L&&(o.position?"top"===this.options.scrollPositionRestoration?this.viewportScroller.scrollToPosition([0,0]):"enabled"===this.options.scrollPositionRestoration&&this.viewportScroller.scrollToPosition(o.position):o.anchor&&"enabled"===this.options.anchorScrolling?this.viewportScroller.scrollToAnchor(o.anchor):"disabled"!==this.options.scrollPositionRestoration&&this.viewportScroller.scrollToPosition([0,0]))})}scheduleScrollEvent(o,g){this.router.triggerEvent(new L(o,"popstate"===this.lastSource?this.store[this.restoredId]:null,g))}ngOnDestroy(){this.routerEventsSubscription&&this.routerEventsSubscription.unsubscribe(),this.scrollEventsSubscription&&this.scrollEventsSubscription.unsubscribe()}}return d.\u0275fac=function(o){w.$Z()},d.\u0275prov=w.Yz7({token:d,factory:d.\u0275fac}),d})();const Is=new w.OlP("ROUTER_CONFIGURATION"),To=new w.OlP("ROUTER_FORROOT_GUARD"),ha=[fn.Ye,{provide:Qn,useClass:Ve},{provide:Tn,useFactory:function(d,u,o,g,v,T,x={},F,W){const Ce=new Tn(null,d,u,o,g,v,Ht(T));return F&&(Ce.urlHandlingStrategy=F),W&&(Ce.routeReuseStrategy=W),function(d,u){d.errorHandler&&(u.errorHandler=d.errorHandler),d.malformedUriErrorHandler&&(u.malformedUriErrorHandler=d.malformedUriErrorHandler),d.onSameUrlNavigation&&(u.onSameUrlNavigation=d.onSameUrlNavigation),d.paramsInheritanceStrategy&&(u.paramsInheritanceStrategy=d.paramsInheritanceStrategy),d.relativeLinkResolution&&(u.relativeLinkResolution=d.relativeLinkResolution),d.urlUpdateStrategy&&(u.urlUpdateStrategy=d.urlUpdateStrategy),d.canceledNavigationResolution&&(u.canceledNavigationResolution=d.canceledNavigationResolution)}(x,Ce),x.enableTracing&&Ce.events.subscribe(ht=>{var Fe,_t;null===(Fe=console.group)||void 0===Fe||Fe.call(console,`Router Event: ${ht.constructor.name}`),console.log(ht.toString()),console.log(ht),null===(_t=console.groupEnd)||void 0===_t||_t.call(console)}),Ce},deps:[Qn,Ar,fn.Ye,w.zs3,w.Sil,ua,Is,[class{},new w.FiY],[class{},new w.FiY]]},Ar,{provide:Un,useFactory:function(d){return d.routerState.root},deps:[Tn]},Ni,Fi,class{preload(u,o){return o().pipe(Et(()=>(0,V.of)(null)))}},{provide:Is,useValue:{enableTracing:!1}}];function pa(){return new w.PXZ("Router",Tn)}let ga=(()=>{class d{constructor(o,g){}static forRoot(o,g){return{ngModule:d,providers:[ha,Ys(o),{provide:To,useFactory:Li,deps:[[Tn,new w.FiY,new w.tp0]]},{provide:Is,useValue:g||{}},{provide:fn.S$,useFactory:ou,deps:[fn.lw,[new w.tBr(fn.mr),new w.FiY],Is]},{provide:qs,useFactory:iu,deps:[Tn,fn.EM,Is]},{provide:fa,useExisting:g&&g.preloadingStrategy?g.preloadingStrategy:Fi},{provide:w.PXZ,multi:!0,useFactory:pa},[rs,{provide:w.ip1,multi:!0,useFactory:uu,deps:[rs]},{provide:ki,useFactory:Io,deps:[rs]},{provide:w.tb,multi:!0,useExisting:ki}]]}}static forChild(o){return{ngModule:d,providers:[Ys(o)]}}}return d.\u0275fac=function(o){return new(o||d)(w.LFG(To,8),w.LFG(Tn,8))},d.\u0275mod=w.oAB({type:d}),d.\u0275inj=w.cJS({}),d})();function iu(d,u,o){return o.scrollOffset&&u.setOffset(o.scrollOffset),new qs(d,u,o)}function ou(d,u,o={}){return o.useHash?new fn.Do(d,u):new fn.b0(d,u)}function Li(d){return"guarded"}function Ys(d){return[{provide:w.deG,multi:!0,useValue:d},{provide:ua,multi:!0,useValue:d}]}let rs=(()=>{class d{constructor(o){this.injector=o,this.initNavigation=!1,this.destroyed=!1,this.resultOfPreactivationDone=new E.xQ}appInitializer(){return this.injector.get(fn.V_,Promise.resolve(null)).then(()=>{if(this.destroyed)return Promise.resolve(!0);let g=null;const v=new Promise(F=>g=F),T=this.injector.get(Tn),x=this.injector.get(Is);return"disabled"===x.initialNavigation?(T.setUpLocationChangeListener(),g(!0)):"enabled"===x.initialNavigation||"enabledBlocking"===x.initialNavigation?(T.hooks.afterPreactivation=()=>this.initNavigation?(0,V.of)(null):(this.initNavigation=!0,g(!0),this.resultOfPreactivationDone),T.initialNavigation()):g(!0),v})}bootstrapListener(o){const g=this.injector.get(Is),v=this.injector.get(Ni),T=this.injector.get(qs),x=this.injector.get(Tn),F=this.injector.get(w.z2F);o===F.components[0]&&(("enabledNonBlocking"===g.initialNavigation||void 0===g.initialNavigation)&&x.initialNavigation(),v.setUpPreloading(),T.init(),x.resetRootComponentType(F.componentTypes[0]),this.resultOfPreactivationDone.next(null),this.resultOfPreactivationDone.complete())}ngOnDestroy(){this.destroyed=!0}}return d.\u0275fac=function(o){return new(o||d)(w.LFG(w.zs3))},d.\u0275prov=w.Yz7({token:d,factory:d.\u0275fac}),d})();function uu(d){return d.appInitializer.bind(d)}function Io(d){return d.bootstrapListener.bind(d)}const ki=new w.OlP("Router Initializer")}},We=>{We(We.s=452)}]);