(window.webpackJsonp=window.webpackJsonp||[]).push([[17],{"/uUt":function(t,e,n){"use strict";n.d(e,"a",function(){return s});var r=n("7o/Q");function s(t,e){return n=>n.lift(new i(t,e))}class i{constructor(t,e){this.compare=t,this.keySelector=e}call(t,e){return e.subscribe(new o(t,this.compare,this.keySelector))}}class o extends r.a{constructor(t,e,n){super(t),this.keySelector=n,this.hasKey=!1,"function"==typeof e&&(this.compare=e)}compare(t,e){return t===e}_next(t){let e;try{const{keySelector:n}=this;e=n?n(t):t}catch(r){return this.destination.error(r)}let n=!1;if(this.hasKey)try{const{compare:t}=this;n=t(this.key,e)}catch(r){return this.destination.error(r)}else this.hasKey=!0;n||(this.key=e,this.destination.next(t))}}},0:function(t,e,n){t.exports=n("zUnb")},"0EUg":function(t,e,n){"use strict";n.d(e,"a",function(){return s});var r=n("bHdf");function s(){return Object(r.a)(1)}},"1kSV":function(t,e,n){"use strict";n.d(e,"a",function(){return Ve}),n.d(e,"b",function(){return Fe}),n.d(e,"c",function(){return Re}),n.d(e,"d",function(){return bn}),n.d(e,"e",function(){return tn}),n.d(e,"f",function(){return Xe}),n.d(e,"g",function(){return ur}),n.d(e,"h",function(){return rn}),n.d(e,"i",function(){return yr}),n.d(e,"j",function(){return pr}),n.d(e,"k",function(){return mr}),n.d(e,"l",function(){return _r}),n.d(e,"m",function(){return br}),n.d(e,"n",function(){return Cn}),n.d(e,"o",function(){return jr}),n.d(e,"p",function(){return Fr}),n.d(e,"q",function(){return xs}),n.d(e,"r",function(){return Vr}),n.d(e,"s",function(){return Pr}),n.d(e,"t",function(){return Nr}),n.d(e,"u",function(){return Br}),n.d(e,"v",function(){return Hr}),n.d(e,"w",function(){return fr}),n.d(e,"x",function(){return Qr}),n.d(e,"y",function(){return Zr}),n.d(e,"z",function(){return Jr});var r=n("mrSG"),s=n("fXoL"),i=n("ofXK"),o=n("3Pt+"),a=n("XNiG"),c=n("2Vo4"),l=(n("itXk"),n("HDdC")),u=n("quSY");class h extends u.a{constructor(t,e){super()}schedule(t,e=0){return this}}class d extends h{constructor(t,e){super(t,e),this.scheduler=t,this.work=e,this.pending=!1}schedule(t,e=0){if(this.closed)return this;this.state=t;const n=this.id,r=this.scheduler;return null!=n&&(this.id=this.recycleAsyncId(r,n,e)),this.pending=!0,this.delay=e,this.id=this.id||this.requestAsyncId(r,this.id,e),this}requestAsyncId(t,e,n=0){return setInterval(t.flush.bind(t,this),n)}recycleAsyncId(t,e,n=0){if(null!==n&&this.delay===n&&!1===this.pending)return e;clearInterval(e)}execute(t,e){if(this.closed)return new Error("executing a cancelled action");this.pending=!1;const n=this._execute(t,e);if(n)return n;!1===this.pending&&null!=this.id&&(this.id=this.recycleAsyncId(this.scheduler,this.id,null))}_execute(t,e){let n=!1,r=void 0;try{this.work(t)}catch(s){n=!0,r=!!s&&s||new Error(s)}if(n)return this.unsubscribe(),r}_unsubscribe(){const t=this.id,e=this.scheduler,n=e.actions,r=n.indexOf(this);this.work=null,this.state=null,this.pending=!1,this.scheduler=null,-1!==r&&n.splice(r,1),null!=t&&(this.id=this.recycleAsyncId(e,t,null)),this.delay=null}}let f=(()=>{class t{constructor(e,n=t.now){this.SchedulerAction=e,this.now=n}schedule(t,e=0,n){return new this.SchedulerAction(this,t).schedule(n,e)}}return t.now=()=>Date.now(),t})();class p extends f{constructor(t,e=f.now){super(t,()=>p.delegate&&p.delegate!==this?p.delegate.now():e()),this.actions=[],this.active=!1,this.scheduled=void 0}schedule(t,e=0,n){return p.delegate&&p.delegate!==this?p.delegate.schedule(t,e,n):super.schedule(t,e,n)}flush(t){const{actions:e}=this;if(this.active)return void e.push(t);let n;this.active=!0;do{if(n=t.execute(t.state,t.delay))break}while(t=e.shift());if(this.active=!1,n){for(;t=e.shift();)t.unsubscribe();throw n}}}const m=new p(d);var g=n("DH7j");n("z+Ro"),n("KqfI");var b=n("n6bG"),y=n("lJxs");function _(t,e,n,r){return Object(b.a)(n)&&(r=n,n=void 0),r?_(t,e,n).pipe(Object(y.a)(t=>Object(g.a)(t)?r(...t):r(t))):new l.a(r=>{v(t,e,function(t){r.next(arguments.length>1?Array.prototype.slice.call(arguments):t)},r,n)})}function v(t,e,n,r,s){let i;if(function(t){return t&&"function"==typeof t.addEventListener&&"function"==typeof t.removeEventListener}(t)){const r=t;t.addEventListener(e,n,s),i=()=>r.removeEventListener(e,n,s)}else if(function(t){return t&&"function"==typeof t.on&&"function"==typeof t.off}(t)){const r=t;t.on(e,n),i=()=>r.off(e,n)}else if(function(t){return t&&"function"==typeof t.addListener&&"function"==typeof t.removeListener}(t)){const r=t;t.addListener(e,n),i=()=>r.removeListener(e,n)}else{if(!t||!t.length)throw new TypeError("Invalid event target");for(let i=0,o=t.length;i<o;i++)v(t[i],e,n,r,s)}r.add(i)}var w=n("VRyK"),C=n("yCtX"),D=n("l7GE"),E=n("ZUHj");class S{call(t,e){return e.subscribe(new O(t))}}class O extends D.a{constructor(t){super(t),this.hasFirst=!1,this.observables=[],this.subscriptions=[]}_next(t){this.observables.push(t)}_complete(){const t=this.observables,e=t.length;if(0===e)this.destination.complete();else{for(let n=0;n<e&&!this.hasFirst;n++){let e=t[n],r=Object(E.a)(this,e,e,n);this.subscriptions&&this.subscriptions.push(r),this.add(r)}this.observables=null}}notifyNext(t,e,n,r,s){if(!this.hasFirst){this.hasFirst=!0;for(let t=0;t<this.subscriptions.length;t++)if(t!==n){let e=this.subscriptions[t];e.unsubscribe(),this.remove(e)}this.subscriptions=null}this.destination.next(e)}}n("JX91"),n("/uUt");var x=n("eIep");function k(t){return e=>e.lift(new A(t))}class A{constructor(t){this.notifier=t}call(t,e){const n=new T(t),r=Object(E.a)(n,this.notifier);return r&&!n.seenValue?(n.add(r),e.subscribe(n)):n}}class T extends D.a{constructor(t){super(t),this.seenValue=!1}notifyNext(t,e,n,r,s){this.seenValue=!0,this.complete()}notifyComplete(){}}var j=n("pLZG"),F=n("IzEk"),I=n("vkgz");function R(...t){return e=>{let n;return"function"==typeof t[t.length-1]&&(n=t.pop()),e.lift(new M(t,n))}}class M{constructor(t,e){this.observables=t,this.project=e}call(t,e){return e.subscribe(new P(t,this.observables,this.project))}}class P extends D.a{constructor(t,e,n){super(t),this.observables=e,this.project=n,this.toRespond=[];const r=e.length;this.values=new Array(r);for(let s=0;s<r;s++)this.toRespond.push(s);for(let s=0;s<r;s++){let t=e[s];this.add(Object(E.a)(this,t,t,s))}}notifyNext(t,e,n,r,s){this.values[n]=e;const i=this.toRespond;if(i.length>0){const t=i.indexOf(n);-1!==t&&i.splice(t,1)}}notifyComplete(){}_next(t){if(0===this.toRespond.length){const e=[t,...this.values];this.project?this._tryProject(e):this.destination.next(e)}}_tryProject(t){let e;try{e=this.project.apply(this,t)}catch(n){return void this.destination.error(n)}this.destination.next(e)}}var N=n("7o/Q"),V=n("EY2u"),B=n("LRne"),H=n("z6cu");let L=(()=>{class t{constructor(t,e,n){this.kind=t,this.value=e,this.error=n,this.hasValue="N"===t}observe(t){switch(this.kind){case"N":return t.next&&t.next(this.value);case"E":return t.error&&t.error(this.error);case"C":return t.complete&&t.complete()}}do(t,e,n){switch(this.kind){case"N":return t&&t(this.value);case"E":return e&&e(this.error);case"C":return n&&n()}}accept(t,e,n){return t&&"function"==typeof t.next?this.observe(t):this.do(t,e,n)}toObservable(){switch(this.kind){case"N":return Object(B.a)(this.value);case"E":return Object(H.a)(this.error);case"C":return Object(V.b)()}throw new Error("unexpected notification kind value")}static createNext(e){return void 0!==e?new t("N",e):t.undefinedValueNotification}static createError(e){return new t("E",void 0,e)}static createComplete(){return t.completeNotification}}return t.completeNotification=new t("C"),t.undefinedValueNotification=new t("N",void 0),t})();function U(t,e=m){var n;const r=(n=t)instanceof Date&&!isNaN(+n)?+t-e.now():Math.abs(t);return t=>t.lift(new z(r,e))}class z{constructor(t,e){this.delay=t,this.scheduler=e}call(t,e){return e.subscribe(new $(t,this.delay,this.scheduler))}}class $ extends N.a{constructor(t,e,n){super(t),this.delay=e,this.scheduler=n,this.queue=[],this.active=!1,this.errored=!1}static dispatch(t){const e=t.source,n=e.queue,r=t.scheduler,s=t.destination;for(;n.length>0&&n[0].time-r.now()<=0;)n.shift().notification.observe(s);if(n.length>0){const e=Math.max(0,n[0].time-r.now());this.schedule(t,e)}else this.unsubscribe(),e.active=!1}_schedule(t){this.active=!0,this.destination.add(t.schedule($.dispatch,this.delay,{source:this,destination:this.destination,scheduler:t}))}scheduleNotification(t){if(!0===this.errored)return;const e=this.scheduler,n=new q(e.now()+this.delay,t);this.queue.push(n),!1===this.active&&this._schedule(e)}_next(t){this.scheduleNotification(L.createNext(t))}_error(t){this.errored=!0,this.queue=[],this.destination.error(t),this.unsubscribe()}_complete(){this.scheduleNotification(L.createComplete()),this.unsubscribe()}}class q{constructor(t,e){this.time=t,this.notification=e}}var W=n("w1tV");$localize`:@@ngb.alert.close␟f4e529ae5ffd73001d1ff4bbdeeb0a72e342e5c8␟7819314041543176992:Close`;const G=["*"];$localize`:@@ngb.carousel.previous␟680d5c75b7fd8d37961083608b9fcdc4167b4c43␟4452427314943113135:Previous`,$localize`:@@ngb.carousel.next␟f732c304c7433e5a83ffcd862c3dce709a0f4982␟3885497195825665706:Next`;const K=["defaultDayTemplate"],Q=["content"];function Z(t,e){if(1&t&&s.Nb(0,"div",7),2&t){const t=e.currentMonth,n=e.selected,r=e.disabled,i=e.focused;s.mc("date",e.date)("currentMonth",t)("selected",n)("disabled",r)("focused",i)}}function J(t,e){if(1&t&&(s.Sb(0,"div",12),s.Fc(1),s.Rb()),2&t){const t=s.fc().$implicit,e=s.fc(2);s.zb(1),s.Ic(" ",e.i18n.getMonthFullName(t.number,t.year)," ",e.i18n.getYearNumerals(t.year)," ")}}function Y(t,e){if(1&t&&(s.Sb(0,"div",9),s.Dc(1,J,2,2,"div",10),s.Nb(2,"ngb-datepicker-month",11),s.Rb()),2&t){const t=e.$implicit,n=s.fc(2);s.zb(1),s.mc("ngIf","none"===n.navigation||n.displayMonths>1&&"select"===n.navigation),s.zb(1),s.mc("month",t.firstDate)}}function X(t,e){if(1&t&&s.Dc(0,Y,3,2,"div",8),2&t){const t=s.fc();s.mc("ngForOf",t.model.months)}}function tt(t,e){if(1&t){const t=s.Tb();s.Sb(0,"ngb-datepicker-navigation",13),s.dc("navigate",function(e){return s.wc(t),s.fc().onNavigateEvent(e)})("select",function(e){return s.wc(t),s.fc().onNavigateDateSelect(e)}),s.Rb()}if(2&t){const t=s.fc();s.mc("date",t.model.firstDate)("months",t.model.months)("disabled",t.model.disabled)("showSelect","select"===t.model.navigation)("prevDisabled",t.model.prevDisabled)("nextDisabled",t.model.nextDisabled)("selectBoxes",t.model.selectBoxes)}}function et(t,e){}function nt(t,e){}function rt(t,e){1&t&&s.Nb(0,"div",5)}function st(t,e){if(1&t&&(s.Sb(0,"div",6),s.Fc(1),s.Rb()),2&t){const t=e.$implicit,n=s.fc(2);s.zb(1),s.Hc(" ",n.i18n.getWeekdayShortName(t)," ")}}function it(t,e){if(1&t&&(s.Sb(0,"div",2),s.Dc(1,rt,1,0,"div",3),s.Dc(2,st,2,1,"div",4),s.Rb()),2&t){const t=s.fc();s.zb(1),s.mc("ngIf",t.datepicker.showWeekNumbers),s.zb(1),s.mc("ngForOf",t.viewModel.weekdays)}}function ot(t,e){if(1&t&&(s.Sb(0,"div",11),s.Fc(1),s.Rb()),2&t){const t=s.fc(2).$implicit,e=s.fc();s.zb(1),s.Gc(e.i18n.getWeekNumerals(t.number))}}function at(t,e){}function ct(t,e){if(1&t&&s.Dc(0,at,0,0,"ng-template",14),2&t){const t=s.fc().$implicit,e=s.fc(3);s.mc("ngTemplateOutlet",e.datepicker.dayTemplate)("ngTemplateOutletContext",t.context)}}function lt(t,e){if(1&t){const t=s.Tb();s.Sb(0,"div",12),s.dc("click",function(n){s.wc(t);const r=e.$implicit;return s.fc(3).doSelect(r),n.preventDefault()}),s.Dc(1,ct,1,2,"ng-template",13),s.Rb()}if(2&t){const t=e.$implicit;s.Eb("disabled",t.context.disabled)("hidden",t.hidden)("ngb-dp-today",t.context.today),s.mc("tabindex",t.tabindex),s.Ab("aria-label",t.ariaLabel),s.zb(1),s.mc("ngIf",!t.hidden)}}function ut(t,e){if(1&t&&(s.Sb(0,"div",8),s.Dc(1,ot,2,1,"div",9),s.Dc(2,lt,2,9,"div",10),s.Rb()),2&t){const t=s.fc().$implicit,e=s.fc();s.zb(1),s.mc("ngIf",e.datepicker.showWeekNumbers),s.zb(1),s.mc("ngForOf",t.days)}}function ht(t,e){1&t&&s.Dc(0,ut,3,2,"div",7),2&t&&s.mc("ngIf",!e.$implicit.collapsed)}const dt=["aria-label",$localize`:@@ngb.datepicker.previous-month␟c3b08b07b5ab98e7cdcf18df39355690ab7d3884␟8586908745456864217:Previous month`,"title",$localize`:@@ngb.datepicker.previous-month␟c3b08b07b5ab98e7cdcf18df39355690ab7d3884␟8586908745456864217:Previous month`],ft=["aria-label",$localize`:@@ngb.datepicker.next-month␟4bd046985cfe13040d5ef0cd881edce0968a111a␟3628374603023447227:Next month`,"title",$localize`:@@ngb.datepicker.next-month␟4bd046985cfe13040d5ef0cd881edce0968a111a␟3628374603023447227:Next month`];function pt(t,e){if(1&t){const t=s.Tb();s.Sb(0,"ngb-datepicker-navigation-select",6),s.dc("select",function(e){return s.wc(t),s.fc().select.emit(e)}),s.Rb()}if(2&t){const t=s.fc();s.mc("date",t.date)("disabled",t.disabled)("months",t.selectBoxes.months)("years",t.selectBoxes.years)}}function mt(t,e){1&t&&s.Nb(0,"div",0)}function gt(t,e){1&t&&s.Nb(0,"div",0)}function bt(t,e){if(1&t&&(s.Dc(0,mt,1,0,"div",8),s.Sb(1,"div",9),s.Fc(2),s.Rb(),s.Dc(3,gt,1,0,"div",8)),2&t){const t=e.$implicit,n=e.index,r=s.fc(2);s.mc("ngIf",n>0),s.zb(2),s.Ic(" ",r.i18n.getMonthFullName(t.number,t.year)," ",r.i18n.getYearNumerals(t.year)," "),s.zb(1),s.mc("ngIf",n!==r.months.length-1)}}function yt(t,e){if(1&t&&s.Dc(0,bt,4,4,"ng-template",7),2&t){const t=s.fc();s.mc("ngForOf",t.months)}}const _t=["ngbDatepickerDayView",""],vt=["month"],wt=["year"],Ct=["aria-label",$localize`:@@ngb.datepicker.select-month␟1dbc84807f35518112f62e5775d1daebd3d8462b␟2253869508135064750:Select month`,"title",$localize`:@@ngb.datepicker.select-month␟1dbc84807f35518112f62e5775d1daebd3d8462b␟2253869508135064750:Select month`],Dt=["aria-label",$localize`:@@ngb.datepicker.select-year␟8ceb09d002bf0c5d1cac171dfbffe1805d2b3962␟8852264961585484321:Select year`,"title",$localize`:@@ngb.datepicker.select-year␟8ceb09d002bf0c5d1cac171dfbffe1805d2b3962␟8852264961585484321:Select year`];function Et(t,e){if(1&t&&(s.Sb(0,"option",4),s.Fc(1),s.Rb()),2&t){const t=e.$implicit,n=s.fc();s.mc("value",t),s.Ab("aria-label",n.i18n.getMonthFullName(t,null==n.date?null:n.date.year)),s.zb(1),s.Gc(n.i18n.getMonthShortName(t,null==n.date?null:n.date.year))}}function St(t,e){if(1&t&&(s.Sb(0,"option",4),s.Fc(1),s.Rb()),2&t){const t=e.$implicit,n=s.fc();s.mc("value",t),s.zb(1),s.Gc(n.i18n.getYearNumerals(t))}}const Ot=["dialog"],xt=["ngbNavOutlet",""];function kt(t,e){}const At=function(t){return{$implicit:t}};function Tt(t,e){if(1&t&&(s.Sb(0,"div",2),s.Dc(1,kt,0,0,"ng-template",3),s.Rb()),2&t){const t=s.fc().$implicit,e=s.fc();s.Eb("active",t.active),s.mc("id",t.panelDomId),s.Ab("role",e.paneRole?e.paneRole:e.nav.roles?"tabpanel":void 0)("aria-labelledby",t.domId),s.zb(1),s.mc("ngTemplateOutlet",(null==t.contentTpl?null:t.contentTpl.templateRef)||null)("ngTemplateOutletContext",s.rc(7,At,t.active))}}function jt(t,e){1&t&&s.Dc(0,Tt,2,9,"div",1),2&t&&s.mc("ngIf",e.$implicit.isPanelInDom())}function Ft(t,e){if(1&t&&s.Fc(0),2&t){const t=s.fc(2);s.Gc(t.title)}}function It(t,e){}function Rt(t,e){if(1&t&&(s.Sb(0,"h3",3),s.Dc(1,Ft,1,1,"ng-template",null,4,s.Ec),s.Dc(3,It,0,0,"ng-template",5),s.Rb()),2&t){const t=s.vc(2),e=s.fc();s.zb(3),s.mc("ngTemplateOutlet",e.isTitleTemplate()?e.title:t)("ngTemplateOutletContext",e.context)}}function Mt(t,e){1&t&&s.Fc(0),2&t&&s.Gc(100===e.fill?"\u2605":"\u2606")}function Pt(t,e){}function Nt(t,e){if(1&t){const t=s.Tb();s.Sb(0,"span",2),s.Fc(1),s.Rb(),s.Sb(2,"span",3),s.dc("mouseenter",function(){s.wc(t);const n=e.index;return s.fc().enter(n+1)})("click",function(){s.wc(t);const n=e.index;return s.fc().handleClick(n+1)}),s.Dc(3,Pt,0,0,"ng-template",4),s.Rb()}if(2&t){const t=e.index,n=s.fc(),r=s.vc(1);s.zb(1),s.Hc("(",t<n.nextRate?"*":" ",")"),s.zb(1),s.Cc("cursor",n.readonly||n.disabled?"default":"pointer"),s.zb(1),s.mc("ngTemplateOutlet",n.starTemplate||n.starTemplateFromContent||r)("ngTemplateOutletContext",n.contexts[t])}}$localize`:@@ngb.pagination.first␟656506dfd46380956a655f919f1498d018f75ca0␟6867721956102594380:««`,$localize`:@@ngb.pagination.previous␟6e52b6ee77a4848d899dd21b591c6fd499e3aef3␟6479320895410098858:«`,$localize`:@@ngb.pagination.next␟ba9cbb4ff311464308a3627e4f1c3345d9fe6d7d␟5458177150283468089:»`,$localize`:@@ngb.pagination.last␟49f27a460bc97e7e00be5b37098bfa79884fc7d9␟5277020320267646988:»»`,$localize`:@@ngb.pagination.first-aria␟f2f852318759c6396b5d3d17031d53817d7b38cc␟2241508602425256033:First`,$localize`:@@ngb.pagination.previous-aria␟680d5c75b7fd8d37961083608b9fcdc4167b4c43␟4452427314943113135:Previous`,$localize`:@@ngb.pagination.next-aria␟f732c304c7433e5a83ffcd862c3dce709a0f4982␟3885497195825665706:Next`,$localize`:@@ngb.pagination.last-aria␟5c729788ba138508aca1bec050b610f7bf81db3e␟4882268002141858767:Last`,$localize`:@@ngb.progressbar.value␟04d611d19c117c60c9e14d0a04399a027184bc77␟5214781723415385277:${"\ufffd0\ufffd"}:INTERPOLATION:%`;const Vt=["placeholder",$localize`:@@ngb.timepicker.HH␟ce676ab1d6d98f85c836381cf100a4a91ef95a1f␟4043638465245303811:HH`,"aria-label",$localize`:@@ngb.timepicker.hours␟3bbce5fef7e1151da052a4e529453edb340e3912␟8070396816726827304:Hours`],Bt=["placeholder",$localize`:@@ngb.timepicker.MM␟72c8edf6a50068a05bde70991e36b1e881f4ca54␟1647282246509919852:MM`,"aria-label",$localize`:@@ngb.timepicker.minutes␟41e62daa962947c0d23ded0981975d1bddf0bf38␟5531237363767747080:Minutes`];var Ht,Lt,Ut,zt;function $t(t,e){if(1&t){const t=s.Tb();s.Sb(0,"button",10),s.dc("click",function(){s.wc(t);const e=s.fc();return e.changeHour(e.hourStep)}),s.Nb(1,"span",11),s.Sb(2,"span",12),s.Wb(3,Ht),s.Rb(),s.Rb()}if(2&t){const t=s.fc();s.Eb("btn-sm",t.isSmallSize)("btn-lg",t.isLargeSize)("disabled",t.disabled),s.mc("disabled",t.disabled)}}function qt(t,e){if(1&t){const t=s.Tb();s.Sb(0,"button",10),s.dc("click",function(){s.wc(t);const e=s.fc();return e.changeHour(0-e.hourStep)}),s.Nb(1,"span",13),s.Sb(2,"span",12),s.Wb(3,Lt),s.Rb(),s.Rb()}if(2&t){const t=s.fc();s.Eb("btn-sm",t.isSmallSize)("btn-lg",t.isLargeSize)("disabled",t.disabled),s.mc("disabled",t.disabled)}}function Wt(t,e){if(1&t){const t=s.Tb();s.Sb(0,"button",10),s.dc("click",function(){s.wc(t);const e=s.fc();return e.changeMinute(e.minuteStep)}),s.Nb(1,"span",11),s.Sb(2,"span",12),s.Wb(3,Ut),s.Rb(),s.Rb()}if(2&t){const t=s.fc();s.Eb("btn-sm",t.isSmallSize)("btn-lg",t.isLargeSize)("disabled",t.disabled),s.mc("disabled",t.disabled)}}function Gt(t,e){if(1&t){const t=s.Tb();s.Sb(0,"button",10),s.dc("click",function(){s.wc(t);const e=s.fc();return e.changeMinute(0-e.minuteStep)}),s.Nb(1,"span",13),s.Sb(2,"span",12),s.Wb(3,zt),s.Rb(),s.Rb()}if(2&t){const t=s.fc();s.Eb("btn-sm",t.isSmallSize)("btn-lg",t.isLargeSize)("disabled",t.disabled),s.mc("disabled",t.disabled)}}function Kt(t,e){1&t&&(s.Sb(0,"div",5),s.Fc(1,":"),s.Rb())}Ht=$localize`:@@ngb.timepicker.increment-hours␟cb74bc1d625a6c1742f0d7d47306cf495780c218␟5939278348542933629:Increment hours`,Lt=$localize`:@@ngb.timepicker.decrement-hours␟147c7a19429da7d999e247d22e33fee370b1691b␟3651829882940481818:Decrement hours`,Ut=$localize`:@@ngb.timepicker.increment-minutes␟f5a4a3bc05e053f6732475d0e74875ec01c3a348␟180147720391025024:Increment minutes`,zt=$localize`:@@ngb.timepicker.decrement-minutes␟c1a6899e529c096da5b660385d4e77fe1f7ad271␟7447789825403243588:Decrement minutes`;const Qt=["placeholder",$localize`:@@ngb.timepicker.SS␟ebe38d36a40a2383c5fefa9b4608ffbda08bd4a3␟3628127143071124194:SS`,"aria-label",$localize`:@@ngb.timepicker.seconds␟4f2ed9e71a7c981db3e50ae2fedb28aff2ec4e6c␟8874012390997067175:Seconds`];var Zt,Jt,Yt,Xt;function te(t,e){if(1&t){const t=s.Tb();s.Sb(0,"button",10),s.dc("click",function(){s.wc(t);const e=s.fc(2);return e.changeSecond(e.secondStep)}),s.Nb(1,"span",11),s.Sb(2,"span",12),s.Wb(3,Zt),s.Rb(),s.Rb()}if(2&t){const t=s.fc(2);s.Eb("btn-sm",t.isSmallSize)("btn-lg",t.isLargeSize)("disabled",t.disabled),s.mc("disabled",t.disabled)}}function ee(t,e){if(1&t){const t=s.Tb();s.Sb(0,"button",10),s.dc("click",function(){s.wc(t);const e=s.fc(2);return e.changeSecond(0-e.secondStep)}),s.Nb(1,"span",13),s.Sb(2,"span",12),s.Wb(3,Jt),s.Rb(),s.Rb()}if(2&t){const t=s.fc(2);s.Eb("btn-sm",t.isSmallSize)("btn-lg",t.isLargeSize)("disabled",t.disabled),s.mc("disabled",t.disabled)}}function ne(t,e){if(1&t){const t=s.Tb();s.Sb(0,"div",14),s.Dc(1,te,4,7,"button",3),s.Sb(2,"input",4),s.Yb(3,Qt),s.dc("change",function(e){return s.wc(t),s.fc().updateSecond(e.target.value)})("input",function(e){return s.wc(t),s.fc().formatInput(e.target)})("keydown.ArrowUp",function(e){s.wc(t);const n=s.fc();return n.changeSecond(n.secondStep),e.preventDefault()})("keydown.ArrowDown",function(e){s.wc(t);const n=s.fc();return n.changeSecond(0-n.secondStep),e.preventDefault()}),s.Rb(),s.Dc(4,ee,4,7,"button",3),s.Rb()}if(2&t){const t=s.fc();s.zb(1),s.mc("ngIf",t.spinners),s.zb(1),s.Eb("form-control-sm",t.isSmallSize)("form-control-lg",t.isLargeSize),s.mc("value",t.formatMinSec(null==t.model?null:t.model.second))("readOnly",t.readonlyInputs)("disabled",t.disabled),s.zb(2),s.mc("ngIf",t.spinners)}}function re(t,e){1&t&&s.Nb(0,"div",5)}function se(t,e){if(1&t&&(s.Qb(0),s.Wb(1,Yt),s.Pb()),2&t){const t=s.fc(2);s.zb(1),s.Zb(t.i18n.getAfternoonPeriod()),s.Xb(1)}}function ie(t,e){if(1&t&&s.Wb(0,Xt),2&t){const t=s.fc(2);s.Zb(t.i18n.getMorningPeriod()),s.Xb(0)}}function oe(t,e){if(1&t){const t=s.Tb();s.Sb(0,"div",15),s.Sb(1,"button",16),s.dc("click",function(){return s.wc(t),s.fc().toggleMeridian()}),s.Dc(2,se,2,1,"ng-container",17),s.Dc(3,ie,1,1,"ng-template",null,18,s.Ec),s.Rb(),s.Rb()}if(2&t){const t=s.vc(4),e=s.fc();s.zb(1),s.Eb("btn-sm",e.isSmallSize)("btn-lg",e.isLargeSize)("disabled",e.disabled),s.mc("disabled",e.disabled),s.zb(1),s.mc("ngIf",e.model&&e.model.hour>=12)("ngIfElse",t)}}function ae(t,e){if(1&t&&(s.Sb(0,"span"),s.Fc(1),s.Rb()),2&t){const t=s.fc().$implicit,e=s.fc();s.Bb(e.highlightClass),s.zb(1),s.Gc(t)}}function ce(t,e){if(1&t&&s.Fc(0),2&t){const t=s.fc().$implicit;s.Gc(t)}}function le(t,e){if(1&t&&(s.Dc(0,ae,2,3,"span",1),s.Dc(1,ce,1,1,"ng-template",null,2,s.Ec)),2&t){const t=e.odd,n=s.vc(2);s.mc("ngIf",t)("ngIfElse",n)}}function ue(t,e){if(1&t&&s.Nb(0,"ngb-highlight",2),2&t){const t=e.term;s.mc("result",(0,e.formatter)(e.result))("term",t)}}function he(t,e){}Zt=$localize`:@@ngb.timepicker.increment-seconds␟912322ecee7d659d04dcf494a70e22e49d334b26␟5364772110539092174:Increment seconds`,Jt=$localize`:@@ngb.timepicker.decrement-seconds␟5db47ac104294243a70eb9124fbea9d0004ddf69␟753633511487974857:Decrement seconds`,Yt=$localize`:@@ngb.timepicker.PM␟8d6e691e10306c1b34c6b26805151aaea320ef7f␟3564199131264287502:${"\ufffd0\ufffd"}:INTERPOLATION:`,Xt=$localize`:@@ngb.timepicker.AM␟69a1f176a93998876952adac57c3bc3863b6105e␟4592818992509942761:${"\ufffd0\ufffd"}:INTERPOLATION:`,$localize`:@@ngb.toast.close-aria␟f4e529ae5ffd73001d1ff4bbdeeb0a72e342e5c8␟7819314041543176992:Close`;const de=function(t,e,n){return{result:t,term:e,formatter:n}};function fe(t,e){if(1&t){const t=s.Tb();s.Sb(0,"button",3),s.dc("mouseenter",function(){s.wc(t);const n=e.index;return s.fc().markActive(n)})("click",function(){s.wc(t);const n=e.$implicit;return s.fc().select(n)}),s.Dc(1,he,0,0,"ng-template",4),s.Rb()}if(2&t){const t=e.$implicit,n=e.index,r=s.fc(),i=s.vc(1);s.Eb("active",n===r.activeIdx),s.mc("id",r.id+"-"+n),s.zb(1),s.mc("ngTemplateOutlet",r.resultTemplate||i)("ngTemplateOutletContext",s.tc(5,de,t,r.term,r.formatter))}}function pe(t){return parseInt(""+t,10)}function me(t){return null!=t?""+t:""}function ge(t){return"string"==typeof t}function be(t){return!isNaN(pe(t))}function ye(t){return"number"==typeof t&&isFinite(t)&&Math.floor(t)===t}function _e(t){return null!=t}function ve(t){return be(t)?("0"+t).slice(-2):""}function we(t,e){return t&&t.className&&t.className.split&&t.className.split(/\s+/).indexOf(e)>=0}"undefined"==typeof Element||Element.prototype.closest||(Element.prototype.matches||(Element.prototype.matches=Element.prototype.msMatchesSelector||Element.prototype.webkitMatchesSelector),Element.prototype.closest=function(t){let e=this;if(!document.documentElement.contains(e))return null;do{if(e.matches(t))return e;e=e.parentElement||e.parentNode}while(null!==e&&1===e.nodeType);return null});let Ce=(()=>{let t=class{};return t.\u0275mod=s.Kb({type:t}),t.\u0275inj=s.Jb({factory:function(e){return new(e||t)},imports:[[i.b]]}),t})(),De=(()=>{let t=class{};return t.\u0275mod=s.Kb({type:t}),t.\u0275inj=s.Jb({factory:function(e){return new(e||t)},imports:[[i.b]]}),t})(),Ee=(()=>{let t=class{};return t.\u0275fac=function(e){return new(e||t)},t.\u0275dir=s.Hb({type:t,selectors:[["","ngbButtonLabel",""]],hostVars:8,hostBindings:function(t,e){2&t&&s.Eb("btn",!0)("active",e.active)("disabled",e.disabled)("focus",e.focused)}}),t})();const Se={provide:o.k,useExisting:Object(s.U)(()=>Oe),multi:!0};let Oe=(()=>{let t=class{constructor(t,e){this._label=t,this._cd=e,this.disabled=!1,this.valueChecked=!0,this.valueUnChecked=!1,this.onChange=t=>{},this.onTouched=()=>{}}set focused(t){this._label.focused=t,t||this.onTouched()}onInputChange(t){const e=t.target.checked?this.valueChecked:this.valueUnChecked;this.onChange(e),this.onTouched(),this.writeValue(e)}registerOnChange(t){this.onChange=t}registerOnTouched(t){this.onTouched=t}setDisabledState(t){this.disabled=t,this._label.disabled=t}writeValue(t){this.checked=t===this.valueChecked,this._label.active=this.checked,this._cd.markForCheck()}};return t.\u0275fac=function(e){return new(e||t)(s.Mb(Ee),s.Mb(s.i))},t.\u0275dir=s.Hb({type:t,selectors:[["","ngbButton","","type","checkbox"]],hostVars:2,hostBindings:function(t,e){1&t&&s.dc("change",function(t){return e.onInputChange(t)})("focus",function(){return e.focused=!0})("blur",function(){return e.focused=!1}),2&t&&s.Vb("checked",e.checked)("disabled",e.disabled)},inputs:{disabled:"disabled",valueChecked:"valueChecked",valueUnChecked:"valueUnChecked"},features:[s.yb([Se])]}),t})();const xe={provide:o.k,useExisting:Object(s.U)(()=>Ae),multi:!0};let ke=0,Ae=(()=>{let t=class{constructor(){this._radios=new Set,this._value=null,this.name="ngb-radio-"+ke++,this.onChange=t=>{},this.onTouched=()=>{}}get disabled(){return this._disabled}set disabled(t){this.setDisabledState(t)}onRadioChange(t){this.writeValue(t.value),this.onChange(t.value)}onRadioValueUpdate(){this._updateRadiosValue()}register(t){this._radios.add(t)}registerOnChange(t){this.onChange=t}registerOnTouched(t){this.onTouched=t}setDisabledState(t){this._disabled=t,this._updateRadiosDisabled()}unregister(t){this._radios.delete(t)}writeValue(t){this._value=t,this._updateRadiosValue()}_updateRadiosValue(){this._radios.forEach(t=>t.updateValue(this._value))}_updateRadiosDisabled(){this._radios.forEach(t=>t.updateDisabled())}};return t.\u0275fac=function(e){return new(e||t)},t.\u0275dir=s.Hb({type:t,selectors:[["","ngbRadioGroup",""]],hostAttrs:["role","radiogroup"],inputs:{name:"name"},features:[s.yb([xe])]}),t})(),Te=(()=>{let t=class{};return t.\u0275mod=s.Kb({type:t}),t.\u0275inj=s.Jb({factory:function(e){return new(e||t)}}),t})(),je=(()=>{let t=class{};return t.\u0275mod=s.Kb({type:t}),t.\u0275inj=s.Jb({factory:function(e){return new(e||t)},imports:[[i.b]]}),t})(),Fe=(()=>{let t=class{constructor(){this.collapsed=!1}};return t.\u0275fac=function(e){return new(e||t)},t.\u0275dir=s.Hb({type:t,selectors:[["","ngbCollapse",""]],hostVars:4,hostBindings:function(t,e){2&t&&s.Eb("collapse",!0)("show",!e.collapsed)},inputs:{collapsed:["ngbCollapse","collapsed"]},exportAs:["ngbCollapse"]}),t})(),Ie=(()=>{let t=class{};return t.\u0275mod=s.Kb({type:t}),t.\u0275inj=s.Jb({factory:function(e){return new(e||t)}}),t})();class Re{constructor(t,e,n){this.year=ye(t)?t:null,this.month=ye(e)?e:null,this.day=ye(n)?n:null}static from(t){return t instanceof Re?t:t?new Re(t.year,t.month,t.day):null}equals(t){return null!=t&&this.year===t.year&&this.month===t.month&&this.day===t.day}before(t){return!!t&&(this.year===t.year?this.month===t.month?this.day!==t.day&&this.day<t.day:this.month<t.month:this.year<t.year)}after(t){return!!t&&(this.year===t.year?this.month===t.month?this.day!==t.day&&this.day>t.day:this.month>t.month:this.year>t.year)}}function Me(t){return new Re(t.getFullYear(),t.getMonth()+1,t.getDate())}function Pe(t){const e=new Date(t.year,t.month-1,t.day,12);return isNaN(e.getTime())||e.setFullYear(t.year),e}function Ne(){return new Be}let Ve=(()=>{let t=class{};return t.\u0275fac=function(e){return new(e||t)},t.\u0275prov=Object(s.Ib)({factory:Ne,token:t,providedIn:"root"}),t})(),Be=(()=>{let t=class extends Ve{getDaysPerWeek(){return 7}getMonths(){return[1,2,3,4,5,6,7,8,9,10,11,12]}getWeeksPerMonth(){return 6}getNext(t,e="d",n=1){let r=Pe(t),s=!0,i=r.getMonth();switch(e){case"y":r.setFullYear(r.getFullYear()+n);break;case"m":i+=n,r.setMonth(i),i%=12,i<0&&(i+=12);break;case"d":r.setDate(r.getDate()+n),s=!1;break;default:return t}return s&&r.getMonth()!==i&&r.setDate(0),Me(r)}getPrev(t,e="d",n=1){return this.getNext(t,e,-n)}getWeekday(t){let e=Pe(t).getDay();return 0===e?7:e}getWeekNumber(t,e){7===e&&(e=0);const n=Pe(t[(11-e)%7]);n.setDate(n.getDate()+4-(n.getDay()||7));const r=n.getTime();return n.setMonth(0),n.setDate(1),Math.floor(Math.round((r-n.getTime())/864e5)/7)+1}getToday(){return Me(new Date)}isValid(t){if(!(t&&ye(t.year)&&ye(t.month)&&ye(t.day)))return!1;if(0===t.year)return!1;const e=Pe(t);return!isNaN(e.getTime())&&e.getFullYear()===t.year&&e.getMonth()+1===t.month&&e.getDate()===t.day}};return t.\u0275fac=function(e){return ks(e||t)},t.\u0275prov=s.Ib({token:t,factory:function(e){return t.\u0275fac(e)}}),t})();function He(t,e){return!function(t,e){return!t&&!e||!!t&&!!e&&t.equals(e)}(t,e)}function Le(t,e){return!(!t&&!e||t&&e&&t.year===e.year&&t.month===e.month)}function Ue(t,e,n){return t&&e&&t.before(e)?e:t&&n&&t.after(n)?n:t||null}function ze(t,e){const{minDate:n,maxDate:r,disabled:s,markDisabled:i}=e;return!(null==t||s||i&&i(t,{year:t.year,month:t.month})||n&&t.before(n)||r&&t.after(r))}let $e=(()=>{let t=class{getDayNumerals(t){return""+t.day}getWeekNumerals(t){return""+t}getYearNumerals(t){return""+t}};return t.\u0275fac=function(e){return new(e||t)},t.\u0275prov=Object(s.Ib)({factory:function(){return t=Object(s.ac)(s.w),new qe(t);var t},token:t,providedIn:"root"}),t})(),qe=(()=>{let t=class extends $e{constructor(t){super(),this._locale=t;const e=Object(i.x)(t,i.f.Standalone,i.u.Short);this._weekdaysShort=e.map((t,n)=>e[(n+1)%7]),this._monthsShort=Object(i.z)(t,i.f.Standalone,i.u.Abbreviated),this._monthsFull=Object(i.z)(t,i.f.Standalone,i.u.Wide)}getWeekdayShortName(t){return this._weekdaysShort[t-1]||""}getMonthShortName(t){return this._monthsShort[t-1]||""}getMonthFullName(t){return this._monthsFull[t-1]||""}getDayAriaLabel(t){const e=new Date(t.year,t.month-1,t.day);return Object(i.w)(e,"fullDate",this._locale)}};return t.\u0275fac=function(e){return new(e||t)(s.ac(s.w))},t.\u0275prov=s.Ib({token:t,factory:function(e){return t.\u0275fac(e)}}),t=Object(r.b)([Object(r.c)(0,Object(s.r)(s.w))],t),t})(),We=(()=>{let t=class{constructor(t,e){this._calendar=t,this._i18n=e,this._VALIDATORS={dayTemplateData:t=>{if(this._state.dayTemplateData!==t)return{dayTemplateData:t}},displayMonths:t=>{if(ye(t=pe(t))&&t>0&&this._state.displayMonths!==t)return{displayMonths:t}},disabled:t=>{if(this._state.disabled!==t)return{disabled:t}},firstDayOfWeek:t=>{if(ye(t=pe(t))&&t>=0&&this._state.firstDayOfWeek!==t)return{firstDayOfWeek:t}},focusVisible:t=>{if(this._state.focusVisible!==t&&!this._state.disabled)return{focusVisible:t}},markDisabled:t=>{if(this._state.markDisabled!==t)return{markDisabled:t}},maxDate:t=>{const e=this.toValidDate(t,null);if(He(this._state.maxDate,e))return{maxDate:e}},minDate:t=>{const e=this.toValidDate(t,null);if(He(this._state.minDate,e))return{minDate:e}},navigation:t=>{if(this._state.navigation!==t)return{navigation:t}},outsideDays:t=>{if(this._state.outsideDays!==t)return{outsideDays:t}}},this._model$=new a.a,this._dateSelect$=new a.a,this._state={dayTemplateData:null,markDisabled:null,maxDate:null,minDate:null,disabled:!1,displayMonths:1,firstDate:null,firstDayOfWeek:1,lastDate:null,focusDate:null,focusVisible:!1,months:[],navigation:"select",outsideDays:"visible",prevDisabled:!1,nextDisabled:!1,selectedDate:null,selectBoxes:{years:[],months:[]}}}get model$(){return this._model$.pipe(Object(j.a)(t=>t.months.length>0))}get dateSelect$(){return this._dateSelect$.pipe(Object(j.a)(t=>null!==t))}set(t){let e=Object.keys(t).map(e=>this._VALIDATORS[e](t[e])).reduce((t,e)=>Object.assign(Object.assign({},t),e),{});Object.keys(e).length>0&&this._nextState(e)}focus(t){const e=this.toValidDate(t,null);null!=e&&!this._state.disabled&&He(this._state.focusDate,e)&&this._nextState({focusDate:t})}focusSelect(){ze(this._state.focusDate,this._state)&&this.select(this._state.focusDate,{emitEvent:!0})}open(t){const e=this.toValidDate(t,this._calendar.getToday());null==e||this._state.disabled||this._state.firstDate&&!Le(this._state.firstDate,e)||this._nextState({firstDate:e})}select(t,e={}){const n=this.toValidDate(t,null);null==n||this._state.disabled||(He(this._state.selectedDate,n)&&this._nextState({selectedDate:n}),e.emitEvent&&ze(n,this._state)&&this._dateSelect$.next(n))}toValidDate(t,e){const n=Re.from(t);return void 0===e&&(e=this._calendar.getToday()),this._calendar.isValid(n)?n:e}getMonth(t){for(let e of this._state.months)if(t.month===e.number&&t.year===e.year)return e;throw new Error(`month ${t.month} of year ${t.year} not found`)}_nextState(t){const e=this._updateState(t);this._patchContexts(e),this._state=e,this._model$.next(this._state)}_patchContexts(t){const{months:e,displayMonths:n,selectedDate:r,focusDate:s,focusVisible:i,disabled:o,outsideDays:a}=t;t.months.forEach(t=>{t.weeks.forEach(c=>{c.days.forEach(c=>{s&&(c.context.focused=s.equals(c.date)&&i),c.tabindex=!o&&s&&c.date.equals(s)&&s.month===t.number?0:-1,!0===o&&(c.context.disabled=!0),void 0!==r&&(c.context.selected=null!==r&&r.equals(c.date)),t.number!==c.date.month&&(c.hidden="hidden"===a||"collapsed"===a||n>1&&c.date.after(e[0].firstDate)&&c.date.before(e[n-1].lastDate))})})})}_updateState(t){const e=Object.assign({},this._state,t);let n=e.firstDate;if(("minDate"in t||"maxDate"in t)&&(function(t,e){if(e&&t&&e.before(t))throw new Error(`'maxDate' ${e} should be greater than 'minDate' ${t}`)}(e.minDate,e.maxDate),e.focusDate=Ue(e.focusDate,e.minDate,e.maxDate),e.firstDate=Ue(e.firstDate,e.minDate,e.maxDate),n=e.focusDate),"disabled"in t&&(e.focusVisible=!1),"selectedDate"in t&&0===this._state.months.length&&(n=e.selectedDate),"focusVisible"in t)return e;if("focusDate"in t&&(e.focusDate=Ue(e.focusDate,e.minDate,e.maxDate),n=e.focusDate,0!==e.months.length&&e.focusDate&&!e.focusDate.before(e.firstDate)&&!e.focusDate.after(e.lastDate)))return e;if("firstDate"in t&&(e.firstDate=Ue(e.firstDate,e.minDate,e.maxDate),n=e.firstDate),n){const r=function(t,e,n,r,s){const{displayMonths:i,months:o}=n,a=o.splice(0,o.length);return Array.from({length:i},(n,r)=>{const i=Object.assign(t.getNext(e,"m",r),{day:1});if(o[r]=null,!s){const t=a.findIndex(t=>t.firstDate.equals(i));-1!==t&&(o[r]=a.splice(t,1)[0])}return i}).forEach((e,s)=>{null===o[s]&&(o[s]=function(t,e,n,r,s={}){const{dayTemplateData:i,minDate:o,maxDate:a,firstDayOfWeek:c,markDisabled:l,outsideDays:u}=n,h=t.getToday();s.firstDate=null,s.lastDate=null,s.number=e.month,s.year=e.year,s.weeks=s.weeks||[],s.weekdays=s.weekdays||[],e=function(t,e,n){const r=t.getDaysPerWeek(),s=new Re(e.year,e.month,1),i=t.getWeekday(s)%r;return t.getPrev(s,"d",(r+i-n)%r)}(t,e,c);for(let d=0;d<t.getWeeksPerMonth();d++){let n=s.weeks[d];n||(n=s.weeks[d]={number:0,days:[],collapsed:!0});const f=n.days;for(let c=0;c<t.getDaysPerWeek();c++){0===d&&(s.weekdays[c]=t.getWeekday(e));const n=new Re(e.year,e.month,e.day),u=t.getNext(n),p=r.getDayAriaLabel(n);let m=!!(o&&n.before(o)||a&&n.after(a));!m&&l&&(m=l(n,{month:s.number,year:s.year}));let g=n.equals(h),b=i?i(n,{month:s.number,year:s.year}):void 0;null===s.firstDate&&n.month===s.number&&(s.firstDate=n),n.month===s.number&&u.month!==s.number&&(s.lastDate=n);let y=f[c];y||(y=f[c]={}),y.date=n,y.context=Object.assign(y.context||{},{$implicit:n,date:n,data:b,currentMonth:s.number,currentYear:s.year,disabled:m,focused:!1,selected:!1,today:g}),y.tabindex=-1,y.ariaLabel=p,y.hidden=!1,e=u}n.number=t.getWeekNumber(f.map(t=>t.date),c),n.collapsed="collapsed"===u&&f[0].date.month!==s.number&&f[f.length-1].date.month!==s.number}return s}(t,e,n,r,a.shift()||{}))}),o}(this._calendar,n,e,this._i18n,"dayTemplateData"in t||"firstDayOfWeek"in t||"markDisabled"in t||"minDate"in t||"maxDate"in t||"disabled"in t||"outsideDays"in t);e.months=r,e.firstDate=r[0].firstDate,e.lastDate=r[r.length-1].lastDate,"selectedDate"in t&&!ze(e.selectedDate,e)&&(e.selectedDate=null),"firstDate"in t&&(!e.focusDate||e.focusDate.before(e.firstDate)||e.focusDate.after(e.lastDate))&&(e.focusDate=n);const s=!this._state.firstDate||this._state.firstDate.year!==e.firstDate.year,i=!this._state.firstDate||this._state.firstDate.month!==e.firstDate.month;"select"===e.navigation?(("minDate"in t||"maxDate"in t||0===e.selectBoxes.years.length||s)&&(e.selectBoxes.years=function(t,e,n){if(!t)return[];const r=e?Math.max(e.year,t.year-500):t.year-10,s=(n?Math.min(n.year,t.year+500):t.year+10)-r+1,i=Array(s);for(let o=0;o<s;o++)i[o]=r+o;return i}(e.firstDate,e.minDate,e.maxDate)),("minDate"in t||"maxDate"in t||0===e.selectBoxes.months.length||s)&&(e.selectBoxes.months=function(t,e,n,r){if(!e)return[];let s=t.getMonths(e.year);if(n&&e.year===n.year){const t=s.findIndex(t=>t===n.month);s=s.slice(t)}if(r&&e.year===r.year){const t=s.findIndex(t=>t===r.month);s=s.slice(0,t+1)}return s}(this._calendar,e.firstDate,e.minDate,e.maxDate))):e.selectBoxes={years:[],months:[]},"arrows"!==e.navigation&&"select"!==e.navigation||!(i||s||"minDate"in t||"maxDate"in t||"disabled"in t)||(e.prevDisabled=e.disabled||function(t,e,n){const r=Object.assign(t.getPrev(e,"m"),{day:1});return null!=n&&(r.year===n.year&&r.month<n.month||r.year<n.year&&1===n.month)}(this._calendar,e.firstDate,e.minDate),e.nextDisabled=e.disabled||function(t,e,n){const r=Object.assign(t.getNext(e,"m"),{day:1});return null!=n&&r.after(n)}(this._calendar,e.lastDate,e.maxDate))}return e}};return t.\u0275fac=function(e){return new(e||t)(s.ac(Ve),s.ac($e))},t.\u0275prov=s.Ib({token:t,factory:function(e){return t.\u0275fac(e)}}),t})();var Ge=function(t){return t[t.PREV=0]="PREV",t[t.NEXT=1]="NEXT",t}({});let Ke=(()=>{let t=class{constructor(){this.displayMonths=1,this.firstDayOfWeek=1,this.navigation="select",this.outsideDays="visible",this.showWeekdays=!0,this.showWeekNumbers=!1}};return t.\u0275fac=function(e){return new(e||t)},t.\u0275prov=Object(s.Ib)({factory:function(){return new t},token:t,providedIn:"root"}),t})();function Qe(){return new Je}let Ze=(()=>{let t=class{};return t.\u0275fac=function(e){return new(e||t)},t.\u0275prov=Object(s.Ib)({factory:Qe,token:t,providedIn:"root"}),t})(),Je=(()=>{let t=class extends Ze{fromModel(t){return t&&ye(t.year)&&ye(t.month)&&ye(t.day)?{year:t.year,month:t.month,day:t.day}:null}toModel(t){return t&&ye(t.year)&&ye(t.month)&&ye(t.day)?{year:t.year,month:t.month,day:t.day}:null}};return t.\u0275fac=function(e){return As(e||t)},t.\u0275prov=s.Ib({token:t,factory:function(e){return t.\u0275fac(e)}}),t})();const Ye={provide:o.k,useExisting:Object(s.U)(()=>tn),multi:!0};let Xe=(()=>{let t=class{constructor(t){this.templateRef=t}};return t.\u0275fac=function(e){return new(e||t)(s.Mb(s.M))},t.\u0275dir=s.Hb({type:t,selectors:[["ng-template","ngbDatepickerContent",""]]}),t})(),tn=(()=>{let t=class{constructor(t,e,n,r,i,o,c,l){this._service=t,this._calendar=e,this.i18n=n,this._elementRef=o,this._ngbDateAdapter=c,this._ngZone=l,this._controlValue=null,this._destroyed$=new a.a,this._publicState={},this.navigate=new s.o,this.dateSelect=new s.o,this.select=this.dateSelect,this.onChange=t=>{},this.onTouched=()=>{},["dayTemplate","dayTemplateData","displayMonths","firstDayOfWeek","footerTemplate","markDisabled","minDate","maxDate","navigation","outsideDays","showWeekdays","showWeekNumbers","startDate"].forEach(t=>this[t]=r[t]),t.dateSelect$.pipe(k(this._destroyed$)).subscribe(t=>{this.dateSelect.emit(t)}),t.model$.pipe(k(this._destroyed$)).subscribe(t=>{const e=t.firstDate,n=this.model?this.model.firstDate:null;this._publicState={maxDate:t.maxDate,minDate:t.minDate,firstDate:t.firstDate,lastDate:t.lastDate,focusedDate:t.focusDate,months:t.months.map(t=>t.firstDate)};let r=!1;if(!e.equals(n)&&(this.navigate.emit({current:n?{year:n.year,month:n.month}:null,next:{year:e.year,month:e.month},preventDefault:()=>r=!0}),r&&null!==n))return void this._service.open(n);const s=t.selectedDate,o=t.focusDate,a=this.model?this.model.focusDate:null;this.model=t,He(s,this._controlValue)&&(this._controlValue=s,this.onTouched(),this.onChange(this._ngbDateAdapter.toModel(s))),He(o,a)&&a&&t.focusVisible&&this.focus(),i.markForCheck()})}get state(){return this._publicState}get calendar(){return this._calendar}focusDate(t){this._service.focus(Re.from(t))}focusSelect(){this._service.focusSelect()}focus(){this._ngZone.onStable.asObservable().pipe(Object(F.a)(1)).subscribe(()=>{const t=this._elementRef.nativeElement.querySelector('div.ngb-dp-day[tabindex="0"]');t&&t.focus()})}navigateTo(t){this._service.open(Re.from(t?t.day?t:Object.assign(Object.assign({},t),{day:1}):null))}ngAfterViewInit(){this._ngZone.runOutsideAngular(()=>{const t=_(this._contentEl.nativeElement,"focusin"),e=_(this._contentEl.nativeElement,"focusout"),{nativeElement:n}=this._elementRef;Object(w.a)(t,e).pipe(Object(j.a)(({target:t,relatedTarget:e})=>!(we(t,"ngb-dp-day")&&we(e,"ngb-dp-day")&&n.contains(t)&&n.contains(e))),k(this._destroyed$)).subscribe(({type:t})=>this._ngZone.run(()=>this._service.set({focusVisible:"focusin"===t})))})}ngOnDestroy(){this._destroyed$.next()}ngOnInit(){if(void 0===this.model){const t={};["dayTemplateData","displayMonths","markDisabled","firstDayOfWeek","navigation","minDate","maxDate","outsideDays"].forEach(e=>t[e]=this[e]),this._service.set(t),this.navigateTo(this.startDate)}this.dayTemplate||(this.dayTemplate=this._defaultDayTemplate)}ngOnChanges(t){const e={};if(["dayTemplateData","displayMonths","markDisabled","firstDayOfWeek","navigation","minDate","maxDate","outsideDays"].filter(e=>e in t).forEach(t=>e[t]=this[t]),this._service.set(e),"startDate"in t){const{currentValue:e,previousValue:n}=t.startDate;Le(n,e)&&this.navigateTo(this.startDate)}}onDateSelect(t){this._service.focus(t),this._service.select(t,{emitEvent:!0})}onNavigateDateSelect(t){this._service.open(t)}onNavigateEvent(t){switch(t){case Ge.PREV:this._service.open(this._calendar.getPrev(this.model.firstDate,"m",1));break;case Ge.NEXT:this._service.open(this._calendar.getNext(this.model.firstDate,"m",1))}}registerOnChange(t){this.onChange=t}registerOnTouched(t){this.onTouched=t}setDisabledState(t){this._service.set({disabled:t})}writeValue(t){this._controlValue=Re.from(this._ngbDateAdapter.fromModel(t)),this._service.select(this._controlValue)}};return t.\u0275fac=function(e){return new(e||t)(s.Mb(We),s.Mb(Ve),s.Mb($e),s.Mb(Ke),s.Mb(s.i),s.Mb(s.m),s.Mb(Ze),s.Mb(s.B))},t.\u0275cmp=s.Gb({type:t,selectors:[["ngb-datepicker"]],contentQueries:function(t,e,n){var r;1&t&&s.Ac(n,Xe,!0),2&t&&s.uc(r=s.ec())&&(e.contentTemplate=r.first)},viewQuery:function(t,e){var n;1&t&&(s.Bc(K,!0),s.Bc(Q,!0)),2&t&&(s.uc(n=s.ec())&&(e._defaultDayTemplate=n.first),s.uc(n=s.ec())&&(e._contentEl=n.first))},inputs:{dayTemplate:"dayTemplate",dayTemplateData:"dayTemplateData",displayMonths:"displayMonths",firstDayOfWeek:"firstDayOfWeek",footerTemplate:"footerTemplate",markDisabled:"markDisabled",maxDate:"maxDate",minDate:"minDate",navigation:"navigation",outsideDays:"outsideDays",showWeekdays:"showWeekdays",showWeekNumbers:"showWeekNumbers",startDate:"startDate"},outputs:{navigate:"navigate",dateSelect:"dateSelect",select:"select"},exportAs:["ngbDatepicker"],features:[s.yb([Ye,We]),s.xb],decls:10,vars:5,consts:[["defaultDayTemplate",""],["defaultContentTemplate",""],[1,"ngb-dp-header"],[3,"date","months","disabled","showSelect","prevDisabled","nextDisabled","selectBoxes","navigate","select",4,"ngIf"],[1,"ngb-dp-content"],["content",""],[3,"ngTemplateOutlet"],["ngbDatepickerDayView","",3,"date","currentMonth","selected","disabled","focused"],["class","ngb-dp-month",4,"ngFor","ngForOf"],[1,"ngb-dp-month"],["class","ngb-dp-month-name",4,"ngIf"],[3,"month"],[1,"ngb-dp-month-name"],[3,"date","months","disabled","showSelect","prevDisabled","nextDisabled","selectBoxes","navigate","select"]],template:function(t,e){if(1&t&&(s.Dc(0,Z,1,5,"ng-template",null,0,s.Ec),s.Dc(2,X,1,1,"ng-template",null,1,s.Ec),s.Sb(4,"div",2),s.Dc(5,tt,1,7,"ngb-datepicker-navigation",3),s.Rb(),s.Sb(6,"div",4,5),s.Dc(8,et,0,0,"ng-template",6),s.Rb(),s.Dc(9,nt,0,0,"ng-template",6)),2&t){const t=s.vc(3);s.zb(5),s.mc("ngIf","none"!==e.navigation),s.zb(1),s.Eb("ngb-dp-months",!e.contentTemplate),s.zb(2),s.mc("ngTemplateOutlet",(null==e.contentTemplate?null:e.contentTemplate.templateRef)||t),s.zb(1),s.mc("ngTemplateOutlet",e.footerTemplate)}},directives:function(){return[i.o,i.q,Dn,i.n,rn,sn]},styles:["ngb-datepicker{border:1px solid #dfdfdf;border-radius:.25rem;display:inline-block}ngb-datepicker-month{pointer-events:auto}ngb-datepicker.dropdown-menu{padding:0}.ngb-dp-body{z-index:1050}.ngb-dp-header{border-bottom:0;border-radius:.25rem .25rem 0 0;padding-top:.25rem;background-color:#f8f9fa;background-color:var(--light)}.ngb-dp-months{display:-ms-flexbox;display:flex}.ngb-dp-month{pointer-events:none}.ngb-dp-month-name{font-size:larger;height:2rem;line-height:2rem;text-align:center;background-color:#f8f9fa;background-color:var(--light)}.ngb-dp-month+.ngb-dp-month .ngb-dp-month-name,.ngb-dp-month+.ngb-dp-month .ngb-dp-week{padding-left:1rem}.ngb-dp-month:last-child .ngb-dp-week{padding-right:.25rem}.ngb-dp-month:first-child .ngb-dp-week{padding-left:.25rem}.ngb-dp-month .ngb-dp-week:last-child{padding-bottom:.25rem}"],encapsulation:2,changeDetection:0}),t})();var en=function(t){return t[t.Tab=9]="Tab",t[t.Enter=13]="Enter",t[t.Escape=27]="Escape",t[t.Space=32]="Space",t[t.PageUp=33]="PageUp",t[t.PageDown=34]="PageDown",t[t.End=35]="End",t[t.Home=36]="Home",t[t.ArrowLeft=37]="ArrowLeft",t[t.ArrowUp=38]="ArrowUp",t[t.ArrowRight=39]="ArrowRight",t[t.ArrowDown=40]="ArrowDown",t}({});let nn=(()=>{let t=class{processKey(t,e){const{state:n,calendar:r}=e;switch(t.which){case en.PageUp:e.focusDate(r.getPrev(n.focusedDate,t.shiftKey?"y":"m",1));break;case en.PageDown:e.focusDate(r.getNext(n.focusedDate,t.shiftKey?"y":"m",1));break;case en.End:e.focusDate(t.shiftKey?n.maxDate:n.lastDate);break;case en.Home:e.focusDate(t.shiftKey?n.minDate:n.firstDate);break;case en.ArrowLeft:e.focusDate(r.getPrev(n.focusedDate,"d",1));break;case en.ArrowUp:e.focusDate(r.getPrev(n.focusedDate,"d",r.getDaysPerWeek()));break;case en.ArrowRight:e.focusDate(r.getNext(n.focusedDate,"d",1));break;case en.ArrowDown:e.focusDate(r.getNext(n.focusedDate,"d",r.getDaysPerWeek()));break;case en.Enter:case en.Space:e.focusSelect();break;default:return}t.preventDefault(),t.stopPropagation()}};return t.\u0275fac=function(e){return new(e||t)},t.\u0275prov=Object(s.Ib)({factory:function(){return new t},token:t,providedIn:"root"}),t})(),rn=(()=>{let t=class{constructor(t,e,n,r){this.i18n=t,this.datepicker=e,this._keyboardService=n,this._service=r}set month(t){this.viewModel=this._service.getMonth(t)}onKeyDown(t){this._keyboardService.processKey(t,this.datepicker)}doSelect(t){t.context.disabled||t.hidden||this.datepicker.onDateSelect(t.date)}};return t.\u0275fac=function(e){return new(e||t)(s.Mb($e),s.Mb(tn),s.Mb(nn),s.Mb(We))},t.\u0275cmp=s.Gb({type:t,selectors:[["ngb-datepicker-month"]],hostAttrs:["role","grid"],hostBindings:function(t,e){1&t&&s.dc("keydown",function(t){return e.onKeyDown(t)})},inputs:{month:"month"},decls:2,vars:2,consts:[["class","ngb-dp-week ngb-dp-weekdays","role","row",4,"ngIf"],["ngFor","",3,"ngForOf"],["role","row",1,"ngb-dp-week","ngb-dp-weekdays"],["class","ngb-dp-weekday ngb-dp-showweek",4,"ngIf"],["class","ngb-dp-weekday small","role","columnheader",4,"ngFor","ngForOf"],[1,"ngb-dp-weekday","ngb-dp-showweek"],["role","columnheader",1,"ngb-dp-weekday","small"],["class","ngb-dp-week","role","row",4,"ngIf"],["role","row",1,"ngb-dp-week"],["class","ngb-dp-week-number small text-muted",4,"ngIf"],["class","ngb-dp-day","role","gridcell",3,"disabled","tabindex","hidden","ngb-dp-today","click",4,"ngFor","ngForOf"],[1,"ngb-dp-week-number","small","text-muted"],["role","gridcell",1,"ngb-dp-day",3,"tabindex","click"],[3,"ngIf"],[3,"ngTemplateOutlet","ngTemplateOutletContext"]],template:function(t,e){1&t&&(s.Dc(0,it,3,2,"div",0),s.Dc(1,ht,1,1,"ng-template",1)),2&t&&(s.mc("ngIf",e.datepicker.showWeekdays),s.zb(1),s.mc("ngForOf",e.viewModel.weeks))},directives:[i.o,i.n,i.q],styles:['ngb-datepicker-month{display:block}.ngb-dp-week-number,.ngb-dp-weekday{line-height:2rem;text-align:center;font-style:italic}.ngb-dp-weekday{color:#5bc0de;color:var(--info)}.ngb-dp-week{border-radius:.25rem;display:-ms-flexbox;display:flex}.ngb-dp-weekdays{border-bottom:1px solid rgba(0,0,0,.125);border-radius:0;background-color:#f8f9fa;background-color:var(--light)}.ngb-dp-day,.ngb-dp-week-number,.ngb-dp-weekday{width:2rem;height:2rem}.ngb-dp-day{cursor:pointer}.ngb-dp-day.disabled,.ngb-dp-day.hidden{cursor:default;pointer-events:none}.ngb-dp-day[tabindex="0"]{z-index:1}'],encapsulation:2}),t})(),sn=(()=>{let t=class{constructor(t){this.i18n=t,this.navigation=Ge,this.months=[],this.navigate=new s.o,this.select=new s.o}onClickPrev(t){t.currentTarget.focus(),this.navigate.emit(this.navigation.PREV)}onClickNext(t){t.currentTarget.focus(),this.navigate.emit(this.navigation.NEXT)}};return t.\u0275fac=function(e){return new(e||t)(s.Mb($e))},t.\u0275cmp=s.Gb({type:t,selectors:[["ngb-datepicker-navigation"]],inputs:{months:"months",date:"date",disabled:"disabled",showSelect:"showSelect",prevDisabled:"prevDisabled",nextDisabled:"nextDisabled",selectBoxes:"selectBoxes"},outputs:{navigate:"navigate",select:"select"},decls:10,vars:4,consts:[[1,"ngb-dp-arrow"],["type","button",1,"btn","btn-link","ngb-dp-arrow-btn",3,"disabled","click",6,"aria-label","title"],[1,"ngb-dp-navigation-chevron"],["class","ngb-dp-navigation-select",3,"date","disabled","months","years","select",4,"ngIf"],[4,"ngIf"],[1,"ngb-dp-arrow","right"],[1,"ngb-dp-navigation-select",3,"date","disabled","months","years","select"],["ngFor","",3,"ngForOf"],["class","ngb-dp-arrow",4,"ngIf"],[1,"ngb-dp-month-name"]],template:function(t,e){1&t&&(s.Sb(0,"div",0),s.Sb(1,"button",1),s.Yb(2,dt),s.dc("click",function(t){return e.onClickPrev(t)}),s.Nb(3,"span",2),s.Rb(),s.Rb(),s.Dc(4,pt,1,4,"ngb-datepicker-navigation-select",3),s.Dc(5,yt,1,1,void 0,4),s.Sb(6,"div",5),s.Sb(7,"button",1),s.Yb(8,ft),s.dc("click",function(t){return e.onClickNext(t)}),s.Nb(9,"span",2),s.Rb(),s.Rb()),2&t&&(s.zb(1),s.mc("disabled",e.prevDisabled),s.zb(3),s.mc("ngIf",e.showSelect),s.zb(1),s.mc("ngIf",!e.showSelect),s.zb(2),s.mc("disabled",e.nextDisabled))},directives:function(){return[i.o,En,i.n]},styles:["ngb-datepicker-navigation{display:-ms-flexbox;display:flex;-ms-flex-align:center;align-items:center}.ngb-dp-navigation-chevron{border-style:solid;border-width:.2em .2em 0 0;display:inline-block;width:.75em;height:.75em;margin-left:.25em;margin-right:.15em;-webkit-transform:rotate(-135deg);transform:rotate(-135deg)}.right .ngb-dp-navigation-chevron{-webkit-transform:rotate(45deg);transform:rotate(45deg);margin-left:.15em;margin-right:.25em}.ngb-dp-arrow{display:-ms-flexbox;display:flex;-ms-flex:1 1 auto;flex:1 1 auto;padding-right:0;padding-left:0;margin:0;width:2rem;height:2rem}.ngb-dp-arrow.right{-ms-flex-pack:end;justify-content:flex-end}.ngb-dp-arrow-btn{padding:0 .25rem;margin:0 .5rem;border:none;background-color:transparent;z-index:1}.ngb-dp-arrow-btn:focus{outline-width:1px;outline-style:auto}@media all and (-ms-high-contrast:none),(-ms-high-contrast:active){.ngb-dp-arrow-btn:focus{outline-style:solid}}.ngb-dp-month-name{font-size:larger;height:2rem;line-height:2rem;text-align:center}.ngb-dp-navigation-select{display:-ms-flexbox;display:flex;-ms-flex:1 1 9rem;flex:1 1 9rem}"],encapsulation:2,changeDetection:0}),t})();const on=(t,e)=>!!e&&e.some(e=>e.contains(t)),an=(t,e)=>!e||null!=function(t,e){return e?t.closest(e):null}(t,e),cn="undefined"!=typeof navigator&&!!navigator.userAgent&&(/iPad|iPhone|iPod/.test(navigator.userAgent)||/Macintosh/.test(navigator.userAgent)&&navigator.maxTouchPoints&&navigator.maxTouchPoints>2||/Android/.test(navigator.userAgent));function ln(t,e,n,r,s,i,o,a){var c;n&&t.runOutsideAngular((c=()=>{const c=_(e,"keydown").pipe(k(s),Object(j.a)(t=>t.which===en.Escape),Object(I.a)(t=>t.preventDefault())),l=_(e,"mousedown").pipe(Object(y.a)(t=>{const e=t.target;return 2!==t.button&&!on(e,o)&&("inside"===n?on(e,i)&&an(e,a):"outside"===n?!on(e,i):an(e,a)||!on(e,i))}),k(s));(function(...t){if(1===t.length){if(!Object(g.a)(t[0]))return t[0];t=t[0]}return Object(C.a)(t,void 0).lift(new S)})([c,_(e,"mouseup").pipe(R(l),Object(j.a)(([t,e])=>e),U(0),k(s))]).subscribe(()=>t.run(r))},cn?()=>setTimeout(()=>c(),100):c))}const un=["a[href]","button:not([disabled])",'input:not([disabled]):not([type="hidden"])',"select:not([disabled])","textarea:not([disabled])","[contenteditable]",'[tabindex]:not([tabindex="-1"])'].join(", ");function hn(t){const e=Array.from(t.querySelectorAll(un)).filter(t=>-1!==t.tabIndex);return[e[0],e[e.length-1]]}const dn=(t,e,n,r=!1)=>{t.runOutsideAngular(()=>{const t=_(e,"focusin").pipe(k(n),Object(y.a)(t=>t.target));_(e,"keydown").pipe(k(n),Object(j.a)(t=>t.which===en.Tab),R(t)).subscribe(([t,n])=>{const[r,s]=hn(e);n!==r&&n!==e||!t.shiftKey||(s.focus(),t.preventDefault()),n!==s||t.shiftKey||(r.focus(),t.preventDefault())}),r&&_(e,"click").pipe(k(n),R(t),Object(y.a)(t=>t[1])).subscribe(t=>t.focus())})},fn=/\s+/,pn=new class{getAllStyles(t){return window.getComputedStyle(t)}getStyle(t,e){return this.getAllStyles(t)[e]}isStaticPositioned(t){return"static"===(this.getStyle(t,"position")||"static")}offsetParent(t){let e=t.offsetParent||document.documentElement;for(;e&&e!==document.documentElement&&this.isStaticPositioned(e);)e=e.offsetParent;return e||document.documentElement}position(t,e=!0){let n,r={width:0,height:0,top:0,bottom:0,left:0,right:0};if("fixed"===this.getStyle(t,"position"))n=t.getBoundingClientRect(),n={top:n.top,bottom:n.bottom,left:n.left,right:n.right,height:n.height,width:n.width};else{const e=this.offsetParent(t);n=this.offset(t,!1),e!==document.documentElement&&(r=this.offset(e,!1)),r.top+=e.clientTop,r.left+=e.clientLeft}return n.top-=r.top,n.bottom-=r.top,n.left-=r.left,n.right-=r.left,e&&(n.top=Math.round(n.top),n.bottom=Math.round(n.bottom),n.left=Math.round(n.left),n.right=Math.round(n.right)),n}offset(t,e=!0){const n=t.getBoundingClientRect(),r=window.pageYOffset-document.documentElement.clientTop,s=window.pageXOffset-document.documentElement.clientLeft;let i={height:n.height||t.offsetHeight,width:n.width||t.offsetWidth,top:n.top+r,bottom:n.bottom+r,left:n.left+s,right:n.right+s};return e&&(i.height=Math.round(i.height),i.width=Math.round(i.width),i.top=Math.round(i.top),i.bottom=Math.round(i.bottom),i.left=Math.round(i.left),i.right=Math.round(i.right)),i}positionElements(t,e,n,r){const[s="top",i="center"]=n.split("-"),o=r?this.offset(t,!1):this.position(t,!1),a=this.getAllStyles(e),c=parseFloat(a.marginTop),l=parseFloat(a.marginBottom),u=parseFloat(a.marginLeft),h=parseFloat(a.marginRight);let d=0,f=0;switch(s){case"top":d=o.top-(e.offsetHeight+c+l);break;case"bottom":d=o.top+o.height;break;case"left":f=o.left-(e.offsetWidth+u+h);break;case"right":f=o.left+o.width}switch(i){case"top":d=o.top;break;case"bottom":d=o.top+o.height-e.offsetHeight;break;case"left":f=o.left;break;case"right":f=o.left+o.width-e.offsetWidth;break;case"center":"top"===s||"bottom"===s?f=o.left+o.width/2-e.offsetWidth/2:d=o.top+o.height/2-e.offsetHeight/2}e.style.transform=`translate(${Math.round(f)}px, ${Math.round(d)}px)`;const p=e.getBoundingClientRect(),m=document.documentElement,g=window.innerHeight||m.clientHeight,b=window.innerWidth||m.clientWidth;return p.left>=0&&p.top>=0&&p.right<=b&&p.bottom<=g}};function mn(t,e,n,r,s){let i=Array.isArray(n)?n:n.split(fn);const o=["top","bottom","left","right","top-left","top-right","bottom-left","bottom-right","left-top","left-bottom","right-top","right-bottom"],a=e.classList,c=t=>{const[e,n]=t.split("-"),r=[];return s&&(r.push(`${s}-${e}`),n&&r.push(`${s}-${e}-${n}`),r.forEach(t=>{a.add(t)})),r};s&&o.forEach(t=>{a.remove(`${s}-${t}`)});let l=i.findIndex(t=>"auto"===t);l>=0&&o.forEach(function(t){null==i.find(e=>-1!==e.search("^"+t))&&i.splice(l++,1,t)});const u=e.style;u.position="absolute",u.top="0",u.left="0",u["will-change"]="transform";let h=null,d=!1;for(h of i){let n=c(h);if(pn.positionElements(t,e,h,r)){d=!0;break}s&&n.forEach(t=>{a.remove(t)})}return d||(h=i[0],c(h),pn.positionElements(t,e,h,r)),h}function gn(){return new yn}let bn=(()=>{let t=class{};return t.\u0275fac=function(e){return new(e||t)},t.\u0275prov=Object(s.Ib)({factory:gn,token:t,providedIn:"root"}),t})(),yn=(()=>{let t=class extends bn{parse(t){if(null!=t){const e=t.trim().split("-");if(1===e.length&&be(e[0]))return{year:pe(e[0]),month:null,day:null};if(2===e.length&&be(e[0])&&be(e[1]))return{year:pe(e[0]),month:pe(e[1]),day:null};if(3===e.length&&be(e[0])&&be(e[1])&&be(e[2]))return{year:pe(e[0]),month:pe(e[1]),day:pe(e[2])}}return null}format(t){return t?`${t.year}-${be(t.month)?ve(t.month):""}-${be(t.day)?ve(t.day):""}`:""}};return t.\u0275fac=function(e){return Ts(e||t)},t.\u0275prov=s.Ib({token:t,factory:function(e){return t.\u0275fac(e)}}),t})(),_n=(()=>{let t=class extends Ke{constructor(){super(...arguments),this.autoClose=!0,this.placement=["bottom-left","bottom-right","top-left","top-right"],this.restoreFocus=!0}};return t.\u0275fac=function(e){return js(e||t)},t.\u0275prov=Object(s.Ib)({factory:function(){return new t},token:t,providedIn:"root"}),t})();const vn={provide:o.k,useExisting:Object(s.U)(()=>Cn),multi:!0},wn={provide:o.j,useExisting:Object(s.U)(()=>Cn),multi:!0};let Cn=(()=>{let t=class{constructor(t,e,n,r,i,o,a,c,l,u,h){this._parserFormatter=t,this._elRef=e,this._vcRef=n,this._renderer=r,this._cfr=i,this._ngZone=o,this._calendar=a,this._dateAdapter=c,this._document=l,this._changeDetector=u,this._cRef=null,this._disabled=!1,this._elWithFocus=null,this._model=null,this.dateSelect=new s.o,this.navigate=new s.o,this.closed=new s.o,this._onChange=t=>{},this._onTouched=()=>{},this._validatorChange=()=>{},["autoClose","container","positionTarget","placement"].forEach(t=>this[t]=h[t]),this._zoneSubscription=o.onStable.subscribe(()=>this._updatePopupPosition())}get disabled(){return this._disabled}set disabled(t){this._disabled=""===t||t&&"false"!==t,this.isOpen()&&this._cRef.instance.setDisabledState(this._disabled)}registerOnChange(t){this._onChange=t}registerOnTouched(t){this._onTouched=t}registerOnValidatorChange(t){this._validatorChange=t}setDisabledState(t){this.disabled=t}validate(t){const{value:e}=t;if(null!=e){const t=this._fromDateStruct(this._dateAdapter.fromModel(e));if(!t)return{ngbDate:{invalid:e}};if(this.minDate&&t.before(Re.from(this.minDate)))return{ngbDate:{minDate:{minDate:this.minDate,actual:e}}};if(this.maxDate&&t.after(Re.from(this.maxDate)))return{ngbDate:{maxDate:{maxDate:this.maxDate,actual:e}}}}return null}writeValue(t){this._model=this._fromDateStruct(this._dateAdapter.fromModel(t)),this._writeModelValue(this._model)}manualDateChange(t,e=!1){const n=t!==this._inputValue;n&&(this._inputValue=t,this._model=this._fromDateStruct(this._parserFormatter.parse(t))),!n&&e||this._onChange(this._model?this._dateAdapter.toModel(this._model):""===t?null:t),e&&this._model&&this._writeModelValue(this._model)}isOpen(){return!!this._cRef}open(){if(!this.isOpen()){const t=this._cfr.resolveComponentFactory(tn);this._cRef=this._vcRef.createComponent(t),this._applyPopupStyling(this._cRef.location.nativeElement),this._applyDatepickerInputs(this._cRef.instance),this._subscribeForDatepickerOutputs(this._cRef.instance),this._cRef.instance.ngOnInit(),this._cRef.instance.writeValue(this._dateAdapter.toModel(this._model)),this._cRef.instance.registerOnChange(t=>{this.writeValue(t),this._onChange(t),this._onTouched()}),this._cRef.changeDetectorRef.detectChanges(),this._cRef.instance.setDisabledState(this.disabled),"body"===this.container&&this._document.querySelector(this.container).appendChild(this._cRef.location.nativeElement),this._elWithFocus=this._document.activeElement,dn(this._ngZone,this._cRef.location.nativeElement,this.closed,!0),this._cRef.instance.focus(),ln(this._ngZone,this._document,this.autoClose,()=>this.close(),this.closed,[],[this._elRef.nativeElement,this._cRef.location.nativeElement])}}close(){if(this.isOpen()){this._vcRef.remove(this._vcRef.indexOf(this._cRef.hostView)),this._cRef=null,this.closed.emit(),this._changeDetector.markForCheck();let t=this._elWithFocus;ge(this.restoreFocus)?t=this._document.querySelector(this.restoreFocus):void 0!==this.restoreFocus&&(t=this.restoreFocus),t&&t.focus?t.focus():this._document.body.focus()}}toggle(){this.isOpen()?this.close():this.open()}navigateTo(t){this.isOpen()&&this._cRef.instance.navigateTo(t)}onBlur(){this._onTouched()}onFocus(){this._elWithFocus=this._elRef.nativeElement}ngOnChanges(t){(t.minDate||t.maxDate)&&(this._validatorChange(),this.isOpen()&&(t.minDate&&(this._cRef.instance.minDate=this.minDate),t.maxDate&&(this._cRef.instance.maxDate=this.maxDate),this._cRef.instance.ngOnChanges(t)))}ngOnDestroy(){this.close(),this._zoneSubscription.unsubscribe()}_applyDatepickerInputs(t){["dayTemplate","dayTemplateData","displayMonths","firstDayOfWeek","footerTemplate","markDisabled","minDate","maxDate","navigation","outsideDays","showNavigation","showWeekdays","showWeekNumbers"].forEach(e=>{void 0!==this[e]&&(t[e]=this[e])}),t.startDate=this.startDate||this._model}_applyPopupStyling(t){this._renderer.addClass(t,"dropdown-menu"),this._renderer.addClass(t,"show"),"body"===this.container&&this._renderer.addClass(t,"ngb-dp-body")}_subscribeForDatepickerOutputs(t){t.navigate.subscribe(t=>this.navigate.emit(t)),t.dateSelect.subscribe(t=>{this.dateSelect.emit(t),!0!==this.autoClose&&"inside"!==this.autoClose||this.close()})}_writeModelValue(t){const e=this._parserFormatter.format(t);this._inputValue=e,this._renderer.setProperty(this._elRef.nativeElement,"value",e),this.isOpen()&&(this._cRef.instance.writeValue(this._dateAdapter.toModel(t)),this._onTouched())}_fromDateStruct(t){const e=t?new Re(t.year,t.month,t.day):null;return this._calendar.isValid(e)?e:null}_updatePopupPosition(){if(!this._cRef)return;let t;if(t=ge(this.positionTarget)?this._document.querySelector(this.positionTarget):this.positionTarget instanceof HTMLElement?this.positionTarget:this._elRef.nativeElement,this.positionTarget&&!t)throw new Error("ngbDatepicker could not find element declared in [positionTarget] to position against.");mn(t,this._cRef.location.nativeElement,this.placement,"body"===this.container)}};return t.\u0275fac=function(e){return new(e||t)(s.Mb(bn),s.Mb(s.m),s.Mb(s.Q),s.Mb(s.F),s.Mb(s.k),s.Mb(s.B),s.Mb(Ve),s.Mb(Ze),s.Mb(i.c),s.Mb(s.i),s.Mb(_n))},t.\u0275dir=s.Hb({type:t,selectors:[["input","ngbDatepicker",""]],hostVars:1,hostBindings:function(t,e){1&t&&s.dc("input",function(t){return e.manualDateChange(t.target.value)})("change",function(t){return e.manualDateChange(t.target.value,!0)})("focus",function(){return e.onFocus()})("blur",function(){return e.onBlur()}),2&t&&s.Vb("disabled",e.disabled)},inputs:{disabled:"disabled",autoClose:"autoClose",dayTemplate:"dayTemplate",dayTemplateData:"dayTemplateData",displayMonths:"displayMonths",firstDayOfWeek:"firstDayOfWeek",footerTemplate:"footerTemplate",markDisabled:"markDisabled",minDate:"minDate",maxDate:"maxDate",navigation:"navigation",outsideDays:"outsideDays",placement:"placement",restoreFocus:"restoreFocus",showWeekdays:"showWeekdays",showWeekNumbers:"showWeekNumbers",startDate:"startDate",container:"container",positionTarget:"positionTarget"},outputs:{dateSelect:"dateSelect",navigate:"navigate",closed:"closed"},exportAs:["ngbDatepicker"],features:[s.yb([vn,wn,{provide:Ke,useExisting:_n}]),s.xb]}),t=Object(r.b)([Object(r.c)(8,Object(s.r)(i.c))],t),t})(),Dn=(()=>{let t=class{constructor(t){this.i18n=t}isMuted(){return!this.selected&&(this.date.month!==this.currentMonth||this.disabled)}};return t.\u0275fac=function(e){return new(e||t)(s.Mb($e))},t.\u0275cmp=s.Gb({type:t,selectors:[["","ngbDatepickerDayView",""]],hostAttrs:[1,"btn-light"],hostVars:10,hostBindings:function(t,e){2&t&&s.Eb("bg-primary",e.selected)("text-white",e.selected)("text-muted",e.isMuted())("outside",e.isMuted())("active",e.focused)},inputs:{currentMonth:"currentMonth",date:"date",disabled:"disabled",focused:"focused",selected:"selected"},attrs:_t,decls:1,vars:1,template:function(t,e){1&t&&s.Fc(0),2&t&&s.Gc(e.i18n.getDayNumerals(e.date))},styles:["[ngbDatepickerDayView]{text-align:center;width:2rem;height:2rem;line-height:2rem;border-radius:.25rem;background:0 0}[ngbDatepickerDayView].outside{opacity:.5}"],encapsulation:2,changeDetection:0}),t})(),En=(()=>{let t=class{constructor(t,e){this.i18n=t,this._renderer=e,this.select=new s.o,this._month=-1,this._year=-1}changeMonth(t){this.select.emit(new Re(this.date.year,pe(t),1))}changeYear(t){this.select.emit(new Re(pe(t),this.date.month,1))}ngAfterViewChecked(){this.date&&(this.date.month!==this._month&&(this._month=this.date.month,this._renderer.setProperty(this.monthSelect.nativeElement,"value",this._month)),this.date.year!==this._year&&(this._year=this.date.year,this._renderer.setProperty(this.yearSelect.nativeElement,"value",this._year)))}};return t.\u0275fac=function(e){return new(e||t)(s.Mb($e),s.Mb(s.F))},t.\u0275cmp=s.Gb({type:t,selectors:[["ngb-datepicker-navigation-select"]],viewQuery:function(t,e){var n;1&t&&(s.Bc(vt,!0,s.m),s.Bc(wt,!0,s.m)),2&t&&(s.uc(n=s.ec())&&(e.monthSelect=n.first),s.uc(n=s.ec())&&(e.yearSelect=n.first))},inputs:{date:"date",disabled:"disabled",months:"months",years:"years"},outputs:{select:"select"},decls:8,vars:4,consts:[[1,"custom-select",3,"disabled","change",6,"aria-label","title"],["month",""],[3,"value",4,"ngFor","ngForOf"],["year",""],[3,"value"]],template:function(t,e){1&t&&(s.Sb(0,"select",0,1),s.Yb(2,Ct),s.dc("change",function(t){return e.changeMonth(t.target.value)}),s.Dc(3,Et,2,3,"option",2),s.Rb(),s.Sb(4,"select",0,3),s.Yb(6,Dt),s.dc("change",function(t){return e.changeYear(t.target.value)}),s.Dc(7,St,2,2,"option",2),s.Rb()),2&t&&(s.mc("disabled",e.disabled),s.zb(3),s.mc("ngForOf",e.months),s.zb(1),s.mc("disabled",e.disabled),s.zb(3),s.mc("ngForOf",e.years))},directives:[i.n,o.o,o.v],styles:["ngb-datepicker-navigation-select>.custom-select{-ms-flex:1 1 auto;flex:1 1 auto;padding:0 .5rem;font-size:.875rem;height:1.85rem}ngb-datepicker-navigation-select>.custom-select:focus{z-index:1}ngb-datepicker-navigation-select>.custom-select::-ms-value{background-color:transparent!important}"],encapsulation:2,changeDetection:0}),t})(),Sn=(()=>{let t=class extends Ve{getDaysPerWeek(){return 7}getMonths(){return[1,2,3,4,5,6,7,8,9,10,11,12]}getWeeksPerMonth(){return 6}getNext(t,e="d",n=1){switch(t=new Re(t.year,t.month,t.day),e){case"y":return(t=this._setYear(t,t.year+n)).month=1,t.day=1,t;case"m":return(t=this._setMonth(t,t.month+n)).day=1,t;case"d":return this._setDay(t,t.day+n);default:return t}}getPrev(t,e="d",n=1){return this.getNext(t,e,-n)}getWeekday(t){const e=this.toGregorian(t).getDay();return 0===e?7:e}getWeekNumber(t,e){7===e&&(e=0);const n=t[(11-e)%7],r=this.toGregorian(n);r.setDate(r.getDate()+4-(r.getDay()||7));const s=r.getTime(),i=this.toGregorian(new Re(n.year,1,1));return Math.floor(Math.round((s-i.getTime())/864e5)/7)+1}getToday(){return this.fromGregorian(new Date)}isValid(t){return null!=t&&be(t.year)&&be(t.month)&&be(t.day)&&!isNaN(this.toGregorian(t).getTime())}_setDay(t,e){e=+e;let n=this.getDaysPerMonth(t.month,t.year);if(e<=0)for(;e<=0;)t=this._setMonth(t,t.month-1),n=this.getDaysPerMonth(t.month,t.year),e+=n;else if(e>n)for(;e>n;)e-=n,t=this._setMonth(t,t.month+1),n=this.getDaysPerMonth(t.month,t.year);return t.day=e,t}_setMonth(t,e){return e=+e,t.year=t.year+Math.floor((e-1)/12),t.month=Math.floor(((e-1)%12+12)%12)+1,t}_setYear(t,e){return t.year=+e,t}};return t.\u0275fac=function(e){return Fs(e||t)},t.\u0275prov=s.Ib({token:t,factory:function(e){return t.\u0275fac(e)}}),t})();function On(t){const e=t.getFullYear();return e%4==0&&e%100!=0||e%400==0}function xn(t,e){return t-e*Math.floor(t/e)}const kn=1721425.5,An=1948439.5;let Tn=(()=>{let t=class extends Sn{fromGregorian(t){const e=t.getFullYear(),n=t.getMonth(),r=t.getDate();let s=1721424.5+365*(e-1)+Math.floor((e-1)/4)+-Math.floor((e-1)/100)+Math.floor((e-1)/400)+Math.floor((367*(n+1)-362)/12+(n+1<=2?0:On(t)?-1:-2)+r);s=Math.floor(s)+.5;const i=s-An,o=Math.floor((30*i+10646)/10631);let a=Math.ceil((i-29-(354*((c=o)-1)+Math.floor((3+11*c)/30)))/29.5);var c;a=Math.min(a,11);const l=Math.ceil(i-function(t,e){return Math.ceil(29.5*e)+354*(t-1)+Math.floor((3+11*t)/30)}(o,a))+1;return new Re(o,a+1,l)}toGregorian(t){const e=t.year,n=t.day+Math.ceil(29.5*(t.month-1))+354*(e-1)+Math.floor((3+11*e)/30)+An-1,r=Math.floor(n-.5)+.5,s=r-kn,i=Math.floor(s/146097),o=xn(s,146097),a=Math.floor(o/36524),c=xn(o,36524),l=Math.floor(c/1461),u=xn(c,1461),h=Math.floor(u/365);let d=400*i+100*a+4*l+h;4!==a&&4!==h&&d++;const f=r-(kn+365*(d-1)+Math.floor((d-1)/4)-Math.floor((d-1)/100)+Math.floor((d-1)/400)),p=r<1721424.5+365*(d-1)+Math.floor((d-1)/4)-Math.floor((d-1)/100)+Math.floor((d-1)/400)+Math.floor(739/12+(On(new Date(d,3,1))?-1:-2)+1)?0:On(new Date(d,3,1))?1:2,m=Math.floor((12*(f+p)+373)/367),g=1721424.5+365*(d-1)+Math.floor((d-1)/4)-Math.floor((d-1)/100)+Math.floor((d-1)/400)+Math.floor((367*m-362)/12+(m<=2?0:On(new Date(d,m-1,1))?-1:-2)+1);return new Date(d,m-1,r-g+1)}getDaysPerMonth(t,e){e+=Math.floor(t/13);let n=29+(t=(t-1)%12+1)%2;return 12===t&&(14+11*e)%30<11&&n++,n}};return t.\u0275fac=function(e){return Is(e||t)},t.\u0275prov=s.Ib({token:t,factory:function(e){return t.\u0275fac(e)}}),t})();const jn=new Date(1882,10,12),Fn=new Date(2174,10,25),In=1300,Rn=["101010101010","110101010100","111011001001","011011010100","011011101010","001101101100","101010101101","010101010101","011010101001","011110010010","101110101001","010111010100","101011011010","010101011100","110100101101","011010010101","011101001010","101101010100","101101101010","010110101101","010010101110","101001001111","010100010111","011010001011","011010100101","101011010101","001011010110","100101011011","010010011101","101001001101","110100100110","110110010101","010110101100","100110110110","001010111010","101001011011","010100101011","101010010101","011011001010","101011101001","001011110100","100101110110","001010110110","100101010110","101011001010","101110100100","101111010010","010111011001","001011011100","100101101101","010101001101","101010100101","101101010010","101110100101","010110110100","100110110110","010101010111","001010010111","010101001011","011010100011","011101010010","101101100101","010101101010","101010101011","010100101011","110010010101","110101001010","110110100101","010111001010","101011010110","100101010111","010010101011","100101001011","101010100101","101101010010","101101101010","010101110101","001001110110","100010110111","010001011011","010101010101","010110101001","010110110100","100111011010","010011011101","001001101110","100100110110","101010101010","110101010100","110110110010","010111010101","001011011010","100101011011","010010101011","101001010101","101101001001","101101100100","101101110001","010110110100","101010110101","101001010101","110100100101","111010010010","111011001001","011011010100","101011101001","100101101011","010010101011","101010010011","110101001001","110110100100","110110110010","101010111001","010010111010","101001011011","010100101011","101010010101","101100101010","101101010101","010101011100","010010111101","001000111101","100100011101","101010010101","101101001010","101101011010","010101101101","001010110110","100100111011","010010011011","011001010101","011010101001","011101010100","101101101010","010101101100","101010101101","010101010101","101100101001","101110010010","101110101001","010111010100","101011011010","010101011010","101010101011","010110010101","011101001001","011101100100","101110101010","010110110101","001010110110","101001010110","111001001101","101100100101","101101010010","101101101010","010110101101","001010101110","100100101111","010010010111","011001001011","011010100101","011010101100","101011010110","010101011101","010010011101","101001001101","110100010110","110110010101","010110101010","010110110101","001011011010","100101011011","010010101101","010110010101","011011001010","011011100100","101011101010","010011110101","001010110110","100101010110","101010101010","101101010100","101111010010","010111011001","001011101010","100101101101","010010101101","101010010101","101101001010","101110100101","010110110010","100110110101","010011010110","101010010111","010101000111","011010010011","011101001001","101101010101","010101101010","101001101011","010100101011","101010001011","110101000110","110110100011","010111001010","101011010110","010011011011","001001101011","100101001011","101010100101","101101010010","101101101001","010101110101","000101110110","100010110111","001001011011","010100101011","010101100101","010110110100","100111011010","010011101101","000101101101","100010110110","101010100110","110101010010","110110101001","010111010100","101011011010","100101011011","010010101011","011001010011","011100101001","011101100010","101110101001","010110110010","101010110101","010101010101","101100100101","110110010010","111011001001","011011010010","101011101001","010101101011","010010101011","101001010101","110100101001","110101010100","110110101010","100110110101","010010111010","101000111011","010010011011","101001001101","101010101010","101011010101","001011011010","100101011101","010001011110","101000101110","110010011010","110101010101","011010110010","011010111001","010010111010","101001011101","010100101101","101010010101","101101010010","101110101000","101110110100","010110111001","001011011010","100101011010","101101001010","110110100100","111011010001","011011101000","101101101010","010101101101","010100110101","011010010101","110101001010","110110101000","110111010100","011011011010","010101011011","001010011101","011000101011","101100010101","101101001010","101110010101","010110101010","101010101110","100100101110","110010001111","010100100111","011010010101","011010101010","101011010110","010101011101","001010011101"];let Mn=(()=>{let t=class extends Tn{fromGregorian(t){let e=1,n=0,r=1300,s=function(t,e){const n=Date.UTC(t.getFullYear(),t.getMonth(),t.getDate()),r=Date.UTC(e.getFullYear(),e.getMonth(),e.getDate()),s=Math.abs(n-r);return Math.round(s/864e5)}(t,jn);if(t.getTime()-jn.getTime()>=0&&t.getTime()-Fn.getTime()<=0){let t=1300;for(let i=0;i<Rn.length;i++,t++)for(let o=0;o<12;o++){let a=+Rn[i][o]+29;if(s<=a)return e=s+1,e>a&&(e=1,o++),o>11&&(o=0,t++),n=o,r=t,new Re(r,n+1,e);s-=a}return null}return super.fromGregorian(t)}toGregorian(t){const e=t.year,n=t.month-1,r=t.day;let s=new Date(jn),i=r-1;if(e>=In&&e<=1600){for(let t=0;t<e-In;t++)for(let e=0;e<12;e++)i+=+Rn[t][e]+29;for(let t=0;t<n;t++)i+=+Rn[e-In][t]+29;s.setDate(jn.getDate()+i)}else s=super.toGregorian(t);return s}getDaysPerMonth(t,e){return e>=In&&e<=1600?+Rn[e-In][t-1]+29:super.getDaysPerMonth(t,e)}};return t.\u0275fac=function(e){return Rs(e||t)},t.\u0275prov=s.Ib({token:t,factory:function(e){return t.\u0275fac(e)}}),t})();function Pn(t){let e=Ln(function(t,e,n){let r=Hn(t);return Un(r.gy,3,r.march)+31*(e-1)-Bn(e,7)*(e-7)+n-1}(t.year,t.month,t.day));return e.setHours(6,30,3,200),e}function Nn(t,e){return e=+e,t.year=t.year+Math.floor((e-1)/12),t.month=Math.floor(((e-1)%12+12)%12)+1,t}function Vn(t,e){return t-e*Math.floor(t/e)}function Bn(t,e){return Math.trunc(t/e)}function Hn(t){let e=[-61,9,38,199,426,686,756,818,1111,1181,1210,1635,2060,2097,2192,2262,2324,2394,2456,3178];const n=e.length,r=t+621;let s,i=-14,o=e[0];if(t<o||t>=e[n-1])throw new Error("Invalid Jalali year "+t);for(let u=1;u<n;u+=1){const n=e[u];if(s=n-o,t<n)break;i=i+8*Bn(s,33)+Bn(Vn(s,33),4),o=n}let a=t-o;i=i+8*Bn(a,33)+Bn(Vn(a,33)+3,4),4===Vn(s,33)&&s-a==4&&(i+=1);const c=20+i-(Bn(r,4)-Bn(3*(Bn(r,100)+1),4)-150);s-a<6&&(a=a-s+33*Bn(s+4,33));let l=Vn(Vn(a+1,33)-1,4);return-1===l&&(l=4),{leap:l,gy:r,march:c}}function Ln(t){let e=4*t+139361631;e=e+4*Bn(3*Bn(4*t+183187720,146097),4)-3908;const n=5*Bn(Vn(e,1461),4)+308,r=Bn(Vn(n,153),5)+1,s=Vn(Bn(n,153),12)+1,i=Bn(e,1461)-100100+Bn(8-s,6);return new Date(i,s-1,r)}function Un(t,e,n){let r=Bn(1461*(t+Bn(e-8,6)+100100),4)+Bn(153*Vn(e+9,12)+2,5)+n-34840408;return r=r-Bn(3*Bn(t+100100+Bn(e-8,6),100),4)+752,r}function zn(t,e){return t<=6?31:t<=11||0===Hn(e).leap?30:29}let $n=(()=>{let t=class extends Ve{getDaysPerWeek(){return 7}getMonths(){return[1,2,3,4,5,6,7,8,9,10,11,12]}getWeeksPerMonth(){return 6}getNext(t,e="d",n=1){switch(t=new Re(t.year,t.month,t.day),e){case"y":return(t=function(t,e){return t.year=+e,t}(t,t.year+n)).month=1,t.day=1,t;case"m":return(t=Nn(t,t.month+n)).day=1,t;case"d":return function(t,e){let n=zn(t.month,t.year);if(e<=0)for(;e<=0;)n=zn((t=Nn(t,t.month-1)).month,t.year),e+=n;else if(e>n)for(;e>n;)e-=n,n=zn((t=Nn(t,t.month+1)).month,t.year);return t.day=e,t}(t,t.day+n);default:return t}}getPrev(t,e="d",n=1){return this.getNext(t,e,-n)}getWeekday(t){const e=Pn(t).getDay();return 0===e?7:e}getWeekNumber(t,e){7===e&&(e=0);const n=t[(11-e)%7],r=Pn(n);r.setDate(r.getDate()+4-(r.getDay()||7));const s=r.getTime(),i=Pn(new Re(n.year,1,1));return Math.floor(Math.round((s-i.getTime())/864e5)/7)+1}getToday(){return function(t){let e,n,r,s=Ln(t).getFullYear(),i=s-621,o=Hn(i);if(r=t-Un(s,3,o.march),r>=0){if(r<=185)return n=1+Bn(r,31),e=Vn(r,31)+1,new Re(i,n,e);r-=186}else i-=1,r+=179,1===o.leap&&(r+=1);return n=7+Bn(r,30),e=Vn(r,30)+1,new Re(i,n,e)}(Un((t=new Date).getFullYear(),t.getMonth()+1,t.getDate()));var t}isValid(t){return null!=t&&ye(t.year)&&ye(t.month)&&ye(t.day)&&!isNaN(Pn(t).getTime())}};return t.\u0275fac=function(e){return Ms(e||t)},t.\u0275prov=s.Ib({token:t,factory:function(e){return t.\u0275fac(e)}}),t})();const qn=25920;function Wn(t){return t%4==0&&t%100!=0||t%400==0}function Gn(t){let e=Math.floor((235*t-234)/19),n=13753*e+12084,r=29*e+Math.floor(n/qn),s=n%qn,i=r%7;return 2!==i&&4!==i&&6!==i||(r++,i=r%7),1===i&&s>16404&&!Jn(t)?r+=2:0===i&&s>23269&&Jn(t-1)&&r++,r}function Kn(t,e){let n=[31,28,31,30,31,30,31,31,30,31,30,31];return Wn(e)&&n[1]++,n[t-1]}function Qn(t){return Jn(t)?13:12}function Zn(t){return Gn(t+1)-Gn(t)}function Jn(t){if(null!=t){let e=(12*t+17)%19;return e>=(e<0?-7:12)}return!1}function Yn(t,e){let n=Gn(e+1)-Gn(e),r=(n<=380?n:n-30)-353,s=Jn(e)?[30,29,29,29,30,30,29,30,29,30,29,30,29]:[30,29,29,29,30,29,30,29,30,29,30,29];return r>0&&s[2]++,r>1&&s[1]++,s[t-1]}function Xn(t){let e=0;for(let n=1;n<t.month;n++)e+=Yn(n,t.year);return e+t.day}function tr(t){const e=new Date(t),n=e.getFullYear(),r=e.getMonth(),s=e.getDate();let i=1721424.5+365*(n-1)+Math.floor((n-1)/4)-Math.floor((n-1)/100)+Math.floor((n-1)/400)+Math.floor((367*(r+1)-362)/12+(r+1<=2?0:Wn(n)?-1:-2)+s);i=Math.floor(i+.5);let o=i-347997,a=Math.floor(o*qn/765433),c=Math.floor((19*a+234)/235)+1,l=Gn(c),u=o-l;for(;u<1;)c--,l=Gn(c),u=o-l;let h=1,d=u;for(;d>Yn(h,c);)d-=Yn(h,c),h++;return new Re(c,h,d)}function er(t){const e=t.year,n=t.month,r=t.day;let s=Gn(e);for(let u=1;u<n;u++)s+=Yn(u,e);s+=r;let i=s-2092591,o=i>=0;o||(i=-i);let a=1970,c=1,l=1;for(;i>0;)o?i>=(Wn(a)?366:365)?(i-=Wn(a)?366:365,a++):i>=Kn(c,a)?(i-=Kn(c,a),c++):(l+=i,i=0):i>=(Wn(a-1)?366:365)?(i-=Wn(a-1)?366:365,a--):(c>1?c--:(c=12,a--),i>=Kn(c,a)?i-=Kn(c,a):(l=Kn(c,a)-i+1,i=0));return new Date(a,c-1,l)}function nr(t){if(!t)return"";const e=["","\u05d0","\u05d1","\u05d2","\u05d3","\u05d4","\u05d5","\u05d6","\u05d7","\u05d8"],n=["\u05d9","\u05d9\u05d0","\u05d9\u05d1","\u05d9\u05d2","\u05d9\u05d3","\u05d8\u05d5","\u05d8\u05d6","\u05d9\u05d6","\u05d9\u05d7","\u05d9\u05d8"],r=["","","\u05db","\u05dc","\u05de","\u05e0","\u05e1","\u05e2","\u05e4","\u05e6"],s=["","\u05e7","\u05e8","\u05e9","\u05ea","\u05ea\u05e7","\u05ea\u05e8","\u05ea\u05e9","\u05ea\u05ea","\u05ea\u05ea\u05e7"],i=["","\u05d0","\u05d1","\u05d1\u05d0","\u05d1\u05d1","\u05d4","\u05d4\u05d0","\u05d4\u05d1","\u05d4\u05d1\u05d0","\u05d4\u05d1\u05d1"];let o=0,a=[],c=0;for(;t>0;){let l=t%10;if(0===c)o=l;else if(1===c)1!==l?a.unshift(r[l],e[o]):a.unshift(n[o]);else{if(2!==c){5!==l&&a.unshift(i[l],"\u05f3"," ");break}a.unshift(s[l])}t=Math.floor(t/10),0===c&&0===t&&a.unshift(e[l]),c++}return a=a.join("").split(""),1===a.length?a.push("\u05f3"):a.length>1&&a.splice(a.length-1,0,"\u05f4"),a.join("")}let rr=(()=>{let t=class extends Ve{getDaysPerWeek(){return 7}getMonths(t){return t&&Jn(t)?[1,2,3,4,5,6,7,8,9,10,11,12,13]:[1,2,3,4,5,6,7,8,9,10,11,12]}getWeeksPerMonth(){return 6}isValid(t){if(null!=t){let e=be(t.year)&&be(t.month)&&be(t.day);return e=e&&t.month>0&&t.month<=(Jn(t.year)?13:12),e=e&&t.day>0&&t.day<=Yn(t.month,t.year),e&&!isNaN(er(t).getTime())}return!1}getNext(t,e="d",n=1){switch(t=new Re(t.year,t.month,t.day),e){case"y":return t.year+=n,t.month=1,t.day=1,t;case"m":return(t=function(t,e){let n=e>=0;for(n||(e=-e);e>0;)n?e>Qn(t.year)-t.month?(e-=Qn(t.year)-t.month+1,t.year++,t.month=1):(t.month+=e,e=0):e>=t.month?(t.year--,e-=t.month,t.month=Qn(t.year)):(t.month-=e,e=0);return t}(t,n)).day=1,t;case"d":return function(t,e){let n=e>=0;for(n||(e=-e);e>0;)n?e>Zn(t.year)-Xn(t)?(e-=Zn(t.year)-Xn(t)+1,t.year++,t.month=1,t.day=1):e>Yn(t.month,t.year)-t.day?(e-=Yn(t.month,t.year)-t.day+1,t.month++,t.day=1):(t.day+=e,e=0):e>=t.day?(e-=t.day,t.month--,0===t.month&&(t.year--,t.month=Qn(t.year)),t.day=Yn(t.month,t.year)):(t.day-=e,e=0);return t}(t,n);default:return t}}getPrev(t,e="d",n=1){return this.getNext(t,e,-n)}getWeekday(t){const e=er(t).getDay();return 0===e?7:e}getWeekNumber(t,e){return Math.ceil(Xn(t[t.length-1])/7)}getToday(){return tr(new Date)}toGregorian(t){return Me(er(t))}fromGregorian(t){return tr(Pe(t))}};return t.\u0275fac=function(e){return Ps(e||t)},t.\u0275prov=s.Ib({token:t,factory:function(e){return t.\u0275fac(e)}}),t})();const sr=["\u05e9\u05e0\u05d9","\u05e9\u05dc\u05d9\u05e9\u05d9","\u05e8\u05d1\u05d9\u05e2\u05d9","\u05d7\u05de\u05d9\u05e9\u05d9","\u05e9\u05d9\u05e9\u05d9","\u05e9\u05d1\u05ea","\u05e8\u05d0\u05e9\u05d5\u05df"],ir=["\u05ea\u05e9\u05e8\u05d9","\u05d7\u05e9\u05d5\u05df","\u05db\u05e1\u05dc\u05d5","\u05d8\u05d1\u05ea","\u05e9\u05d1\u05d8","\u05d0\u05d3\u05e8","\u05e0\u05d9\u05e1\u05df","\u05d0\u05d9\u05d9\u05e8","\u05e1\u05d9\u05d5\u05df","\u05ea\u05de\u05d5\u05d6","\u05d0\u05d1","\u05d0\u05dc\u05d5\u05dc"],or=["\u05ea\u05e9\u05e8\u05d9","\u05d7\u05e9\u05d5\u05df","\u05db\u05e1\u05dc\u05d5","\u05d8\u05d1\u05ea","\u05e9\u05d1\u05d8","\u05d0\u05d3\u05e8 \u05d0\u05f3","\u05d0\u05d3\u05e8 \u05d1\u05f3","\u05e0\u05d9\u05e1\u05df","\u05d0\u05d9\u05d9\u05e8","\u05e1\u05d9\u05d5\u05df","\u05ea\u05de\u05d5\u05d6","\u05d0\u05d1","\u05d0\u05dc\u05d5\u05dc"];let ar=(()=>{let t=class extends $e{getMonthShortName(t,e){return this.getMonthFullName(t,e)}getMonthFullName(t,e){return Jn(e)?or[t-1]||"":ir[t-1]||""}getWeekdayShortName(t){return sr[t-1]||""}getDayAriaLabel(t){return`${nr(t.day)} ${this.getMonthFullName(t.month,t.year)} ${nr(t.year)}`}getDayNumerals(t){return nr(t.day)}getWeekNumerals(t){return nr(t)}getYearNumerals(t){return nr(t)}};return t.\u0275fac=function(e){return Ns(e||t)},t.\u0275prov=s.Ib({token:t,factory:function(e){return t.\u0275fac(e)}}),t})(),cr=(()=>{let t=class extends Ze{fromModel(t){return t instanceof Date&&!isNaN(t.getTime())?this._fromNativeDate(t):null}toModel(t){return t&&ye(t.year)&&ye(t.month)&&ye(t.day)?this._toNativeDate(t):null}_fromNativeDate(t){return{year:t.getFullYear(),month:t.getMonth()+1,day:t.getDate()}}_toNativeDate(t){const e=new Date(t.year,t.month-1,t.day,12);return e.setFullYear(t.year),e}};return t.\u0275fac=function(e){return Vs(e||t)},t.\u0275prov=s.Ib({token:t,factory:function(e){return t.\u0275fac(e)}}),t})(),lr=(()=>{let t=class extends cr{_fromNativeDate(t){return{year:t.getUTCFullYear(),month:t.getUTCMonth()+1,day:t.getUTCDate()}}_toNativeDate(t){const e=new Date(Date.UTC(t.year,t.month-1,t.day));return e.setUTCFullYear(t.year),e}};return t.\u0275fac=function(e){return Bs(e||t)},t.\u0275prov=s.Ib({token:t,factory:function(e){return t.\u0275fac(e)}}),t})(),ur=(()=>{let t=class{};return t.\u0275mod=s.Kb({type:t}),t.\u0275inj=s.Jb({factory:function(e){return new(e||t)},imports:[[i.b,o.h]]}),t})(),hr=(()=>{let t=class{constructor(){this.autoClose=!0,this.placement=["bottom-left","bottom-right","top-left","top-right"]}};return t.\u0275fac=function(e){return new(e||t)},t.\u0275prov=Object(s.Ib)({factory:function(){return new t},token:t,providedIn:"root"}),t})();var dr;let fr=(()=>{let t=class{};return t.\u0275fac=function(e){return new(e||t)},t.\u0275dir=s.Hb({type:t,selectors:[["",8,"navbar"]]}),t})(),pr=(()=>{let t=class{constructor(t){this.elementRef=t,this._disabled=!1}set disabled(t){this._disabled=""===t||!0===t}get disabled(){return this._disabled}};return t.\u0275fac=function(e){return new(e||t)(s.Mb(s.m))},t.\u0275dir=s.Hb({type:t,selectors:[["","ngbDropdownItem",""]],hostAttrs:[1,"dropdown-item"],hostVars:2,hostBindings:function(t,e){2&t&&s.Eb("disabled",e.disabled)},inputs:{disabled:"disabled"}}),t})(),mr=(()=>{let t=class{constructor(t){this.dropdown=t,this.placement="bottom",this.isOpen=!1}};return t.\u0275fac=function(e){return new(e||t)(s.Mb(Object(s.U)(()=>yr)))},t.\u0275dir=s.Hb({type:t,selectors:[["","ngbDropdownMenu",""]],contentQueries:function(t,e,n){var r;1&t&&s.Fb(n,pr,!1),2&t&&s.uc(r=s.ec())&&(e.menuItems=r)},hostVars:5,hostBindings:function(t,e){1&t&&s.dc("keydown.ArrowUp",function(t){return e.dropdown.onKeyDown(t)})("keydown.ArrowDown",function(t){return e.dropdown.onKeyDown(t)})("keydown.Home",function(t){return e.dropdown.onKeyDown(t)})("keydown.End",function(t){return e.dropdown.onKeyDown(t)})("keydown.Enter",function(t){return e.dropdown.onKeyDown(t)})("keydown.Space",function(t){return e.dropdown.onKeyDown(t)}),2&t&&(s.Ab("x-placement",e.placement),s.Eb("dropdown-menu",!0)("show",e.dropdown.isOpen()))}}),t=Object(r.b)([Object(r.c)(0,Object(s.r)(Object(s.U)(()=>yr)))],t),t})(),gr=(()=>{let t=class{constructor(t,e){this.dropdown=t,this._elementRef=e,this.anchorEl=e.nativeElement}getNativeElement(){return this._elementRef.nativeElement}};return t.\u0275fac=function(e){return new(e||t)(s.Mb(Object(s.U)(()=>yr)),s.Mb(s.m))},t.\u0275dir=s.Hb({type:t,selectors:[["","ngbDropdownAnchor",""]],hostAttrs:["aria-haspopup","true",1,"dropdown-toggle"],hostVars:1,hostBindings:function(t,e){2&t&&s.Ab("aria-expanded",e.dropdown.isOpen())}}),t=Object(r.b)([Object(r.c)(0,Object(s.r)(Object(s.U)(()=>yr)))],t),t})(),br=(()=>{let t=dr=class extends gr{constructor(t,e){super(t,e)}};return t.\u0275fac=function(e){return new(e||t)(s.Mb(Object(s.U)(()=>yr)),s.Mb(s.m))},t.\u0275dir=s.Hb({type:t,selectors:[["","ngbDropdownToggle",""]],hostAttrs:["aria-haspopup","true",1,"dropdown-toggle"],hostVars:1,hostBindings:function(t,e){1&t&&s.dc("click",function(){return e.dropdown.toggle()})("keydown.ArrowUp",function(t){return e.dropdown.onKeyDown(t)})("keydown.ArrowDown",function(t){return e.dropdown.onKeyDown(t)})("keydown.Home",function(t){return e.dropdown.onKeyDown(t)})("keydown.End",function(t){return e.dropdown.onKeyDown(t)}),2&t&&s.Ab("aria-expanded",e.dropdown.isOpen())},features:[s.yb([{provide:gr,useExisting:Object(s.U)(()=>dr)}]),s.wb]}),t=dr=Object(r.b)([Object(r.c)(0,Object(s.r)(Object(s.U)(()=>yr)))],t),t})(),yr=(()=>{let t=class{constructor(t,e,n,r,i,o,c){this._changeDetector=t,this._document=n,this._ngZone=r,this._elementRef=i,this._renderer=o,this._closed$=new a.a,this._bodyContainer=null,this._open=!1,this.openChange=new s.o,this.placement=e.placement,this.container=e.container,this.autoClose=e.autoClose,this.display=c?"static":"dynamic",this._zoneSubscription=r.onStable.subscribe(()=>{this._positionMenu()})}ngAfterContentInit(){this._ngZone.onStable.pipe(Object(F.a)(1)).subscribe(()=>{this._applyPlacementClasses(),this._open&&this._setCloseHandlers()})}ngOnChanges(t){t.container&&this._open&&this._applyContainer(this.container),t.placement&&!t.placement.isFirstChange&&this._applyPlacementClasses()}isOpen(){return this._open}open(){this._open||(this._open=!0,this._applyContainer(this.container),this.openChange.emit(!0),this._setCloseHandlers())}_setCloseHandlers(){const t=this._anchor;ln(this._ngZone,this._document,this.autoClose,()=>this.close(),this._closed$,this._menu?[this._menuElement.nativeElement]:[],t?[t.getNativeElement()]:[],".dropdown-item,.dropdown-divider")}close(){this._open&&(this._open=!1,this._resetContainer(),this._closed$.next(),this.openChange.emit(!1),this._changeDetector.markForCheck())}toggle(){this.isOpen()?this.close():this.open()}ngOnDestroy(){this._resetContainer(),this._closed$.next(),this._zoneSubscription.unsubscribe()}onKeyDown(t){const e=t.which,n=this._getMenuElements();let r=-1,s=null;const i=this._isEventFromToggle(t);if(!i&&n.length&&n.forEach((e,n)=>{e.contains(t.target)&&(s=e),e===this._document.activeElement&&(r=n)}),e!==en.Space&&e!==en.Enter){if(i||s){if(this.open(),n.length){switch(e){case en.ArrowDown:r=Math.min(r+1,n.length-1);break;case en.ArrowUp:if(this._isDropup()&&-1===r){r=n.length-1;break}r=Math.max(r-1,0);break;case en.Home:r=0;break;case en.End:r=n.length-1}n[r].focus()}t.preventDefault()}}else!s||!0!==this.autoClose&&"inside"!==this.autoClose||_(s,"click").pipe(Object(F.a)(1)).subscribe(()=>this.close())}_isDropup(){return this._elementRef.nativeElement.classList.contains("dropup")}_isEventFromToggle(t){return this._anchor.getNativeElement().contains(t.target)}_getMenuElements(){const t=this._menu;return null==t?[]:t.menuItems.filter(t=>!t.disabled).map(t=>t.elementRef.nativeElement)}_positionMenu(){const t=this._menu;this.isOpen()&&t&&this._applyPlacementClasses("dynamic"===this.display?mn(this._anchor.anchorEl,this._bodyContainer||this._menuElement.nativeElement,this.placement,"body"===this.container):this._getFirstPlacement(this.placement))}_getFirstPlacement(t){return Array.isArray(t)?t[0]:t.split(" ")[0]}_resetContainer(){const t=this._renderer,e=this._menuElement;if(e){const n=e.nativeElement;t.appendChild(this._elementRef.nativeElement,n),t.removeStyle(n,"position"),t.removeStyle(n,"transform")}this._bodyContainer&&(t.removeChild(this._document.body,this._bodyContainer),this._bodyContainer=null)}_applyContainer(t=null){if(this._resetContainer(),"body"===t){const t=this._renderer,e=this._menuElement.nativeElement,n=this._bodyContainer=this._bodyContainer||t.createElement("div");t.setStyle(n,"position","absolute"),t.setStyle(e,"position","static"),t.setStyle(n,"z-index","1050"),t.appendChild(n,e),t.appendChild(this._document.body,n)}}_applyPlacementClasses(t){const e=this._menu;if(e){t||(t=this._getFirstPlacement(this.placement));const n=this._renderer,r=this._elementRef.nativeElement;n.removeClass(r,"dropup"),n.removeClass(r,"dropdown"),e.placement="static"===this.display?null:t;const s=-1!==t.search("^top")?"dropup":"dropdown";n.addClass(r,s);const i=this._bodyContainer;i&&(n.removeClass(i,"dropup"),n.removeClass(i,"dropdown"),n.addClass(i,s))}}};return t.\u0275fac=function(e){return new(e||t)(s.Mb(s.i),s.Mb(hr),s.Mb(i.c),s.Mb(s.B),s.Mb(s.m),s.Mb(s.F),s.Mb(fr,8))},t.\u0275dir=s.Hb({type:t,selectors:[["","ngbDropdown",""]],contentQueries:function(t,e,n){var r;1&t&&(s.Fb(n,mr,!0),s.Fb(n,mr,!0,s.m),s.Fb(n,gr,!0)),2&t&&(s.uc(r=s.ec())&&(e._menu=r.first),s.uc(r=s.ec())&&(e._menuElement=r.first),s.uc(r=s.ec())&&(e._anchor=r.first))},hostVars:2,hostBindings:function(t,e){2&t&&s.Eb("show",e.isOpen())},inputs:{_open:["open","_open"],placement:"placement",container:"container",autoClose:"autoClose",display:"display"},outputs:{openChange:"openChange"},exportAs:["ngbDropdown"],features:[s.xb]}),t=Object(r.b)([Object(r.c)(2,Object(s.r)(i.c)),Object(r.c)(6,Object(s.C)())],t),t})(),_r=(()=>{let t=class{};return t.\u0275mod=s.Kb({type:t}),t.\u0275inj=s.Jb({factory:function(e){return new(e||t)}}),t})(),vr=(()=>{let t=class{constructor(){this.backdrop=!0,this.keyboard=!0}};return t.\u0275fac=function(e){return new(e||t)},t.\u0275prov=Object(s.Ib)({factory:function(){return new t},token:t,providedIn:"root"}),t})();class wr{constructor(t,e,n){this.nodes=t,this.viewRef=e,this.componentRef=n}}class Cr{constructor(t,e,n,r,s,i){this._type=t,this._injector=e,this._viewContainerRef=n,this._renderer=r,this._componentFactoryResolver=s,this._applicationRef=i,this._windowRef=null,this._contentRef=null}open(t,e){return this._windowRef||(this._contentRef=this._getContentRef(t,e),this._windowRef=this._viewContainerRef.createComponent(this._componentFactoryResolver.resolveComponentFactory(this._type),this._viewContainerRef.length,this._injector,this._contentRef.nodes)),this._windowRef}close(){var t;this._windowRef&&(this._viewContainerRef.remove(this._viewContainerRef.indexOf(this._windowRef.hostView)),this._windowRef=null,(null===(t=this._contentRef)||void 0===t?void 0:t.viewRef)&&(this._applicationRef.detachView(this._contentRef.viewRef),this._contentRef.viewRef.destroy(),this._contentRef=null))}_getContentRef(t,e){if(t){if(t instanceof s.M){const n=t.createEmbeddedView(e);return this._applicationRef.attachView(n),new wr([n.rootNodes],n)}return new wr([[this._renderer.createText(""+t)]])}return new wr([])}}const Dr=()=>{};let Er=(()=>{let t=class{constructor(t){this._document=t}compensate(){const t=this._getWidth();return this._isPresent(t)?this._adjustBody(t):Dr}_adjustBody(t){const e=this._document.body,n=e.style.paddingRight,r=parseFloat(window.getComputedStyle(e)["padding-right"]);return e.style["padding-right"]=r+t+"px",()=>e.style["padding-right"]=n}_isPresent(t){const e=this._document.body.getBoundingClientRect();return window.innerWidth-(e.left+e.right)>=t-.1*t}_getWidth(){const t=this._document.createElement("div");t.className="modal-scrollbar-measure";const e=this._document.body;e.appendChild(t);const n=t.getBoundingClientRect().width-t.clientWidth;return e.removeChild(t),n}};return t.\u0275fac=function(e){return new(e||t)(s.ac(i.c))},t.\u0275prov=Object(s.Ib)({factory:function(){return new t(Object(s.ac)(i.c))},token:t,providedIn:"root"}),t=Object(r.b)([Object(r.c)(0,Object(s.r)(i.c))],t),t})(),Sr=(()=>{let t=class{};return t.\u0275fac=function(e){return new(e||t)},t.\u0275cmp=s.Gb({type:t,selectors:[["ngb-modal-backdrop"]],hostAttrs:[2,"z-index","1050"],hostVars:2,hostBindings:function(t,e){2&t&&s.Bb("modal-backdrop fade show"+(e.backdropClass?" "+e.backdropClass:""))},inputs:{backdropClass:"backdropClass"},decls:0,vars:0,template:function(t,e){},encapsulation:2}),t})();class Or{close(t){}dismiss(t){}}class xr{constructor(t,e,n,r){this._windowCmptRef=t,this._contentRef=e,this._backdropCmptRef=n,this._beforeDismiss=r,t.instance.dismissEvent.subscribe(t=>{this.dismiss(t)}),this.result=new Promise((t,e)=>{this._resolve=t,this._reject=e}),this.result.then(null,()=>{})}get componentInstance(){if(this._contentRef&&this._contentRef.componentRef)return this._contentRef.componentRef.instance}close(t){this._windowCmptRef&&(this._resolve(t),this._removeModalElements())}_dismiss(t){this._reject(t),this._removeModalElements()}dismiss(t){if(this._windowCmptRef)if(this._beforeDismiss){const e=this._beforeDismiss();e&&e.then?e.then(e=>{!1!==e&&this._dismiss(t)},()=>{}):!1!==e&&this._dismiss(t)}else this._dismiss(t)}_removeModalElements(){const t=this._windowCmptRef.location.nativeElement;if(t.parentNode.removeChild(t),this._windowCmptRef.destroy(),this._backdropCmptRef){const t=this._backdropCmptRef.location.nativeElement;t.parentNode.removeChild(t),this._backdropCmptRef.destroy()}this._contentRef&&this._contentRef.viewRef&&this._contentRef.viewRef.destroy(),this._windowCmptRef=null,this._backdropCmptRef=null,this._contentRef=null}}var kr=function(t){return t[t.BACKDROP_CLICK=0]="BACKDROP_CLICK",t[t.ESC=1]="ESC",t}({});let Ar=(()=>{let t=class{constructor(t,e,n){this._document=t,this._elRef=e,this._zone=n,this._closed$=new a.a,this._elWithFocus=null,this.backdrop=!0,this.keyboard=!0,this.dismissEvent=new s.o}dismiss(t){this.dismissEvent.emit(t)}ngOnInit(){this._elWithFocus=this._document.activeElement}ngAfterViewInit(){const{nativeElement:t}=this._elRef;if(this._zone.runOutsideAngular(()=>{_(t,"keydown").pipe(k(this._closed$),Object(j.a)(t=>t.which===en.Escape&&this.keyboard)).subscribe(t=>requestAnimationFrame(()=>{t.defaultPrevented||this._zone.run(()=>this.dismiss(kr.ESC))}));let e=!1;_(this._dialogEl.nativeElement,"mousedown").pipe(k(this._closed$),Object(I.a)(()=>e=!1),Object(x.a)(()=>_(t,"mouseup").pipe(k(this._closed$),Object(F.a)(1))),Object(j.a)(({target:e})=>t===e)).subscribe(()=>{e=!0}),_(t,"click").pipe(k(this._closed$)).subscribe(({target:n})=>{!0!==this.backdrop||t!==n||e||this._zone.run(()=>this.dismiss(kr.BACKDROP_CLICK)),e=!1})}),!t.contains(document.activeElement)){const e=t.querySelector("[ngbAutofocus]"),n=hn(t)[0];(e||n||t).focus()}}ngOnDestroy(){const t=this._document.body,e=this._elWithFocus;let n;n=e&&e.focus&&t.contains(e)?e:t,this._zone.runOutsideAngular(()=>{setTimeout(()=>n.focus()),this._elWithFocus=null}),this._closed$.next()}};return t.\u0275fac=function(e){return new(e||t)(s.Mb(i.c),s.Mb(s.m),s.Mb(s.B))},t.\u0275cmp=s.Gb({type:t,selectors:[["ngb-modal-window"]],viewQuery:function(t,e){var n;1&t&&s.Bc(Ot,!0),2&t&&s.uc(n=s.ec())&&(e._dialogEl=n.first)},hostAttrs:["role","dialog","tabindex","-1"],hostVars:5,hostBindings:function(t,e){2&t&&(s.Ab("aria-modal",!0)("aria-labelledby",e.ariaLabelledBy)("aria-describedby",e.ariaDescribedBy),s.Bb("modal fade show d-block"+(e.windowClass?" "+e.windowClass:"")))},inputs:{backdrop:"backdrop",keyboard:"keyboard",ariaLabelledBy:"ariaLabelledBy",ariaDescribedBy:"ariaDescribedBy",centered:"centered",scrollable:"scrollable",size:"size",windowClass:"windowClass"},outputs:{dismissEvent:"dismiss"},ngContentSelectors:G,decls:4,vars:2,consts:[["role","document"],["dialog",""],[1,"modal-content"]],template:function(t,e){1&t&&(s.lc(),s.Sb(0,"div",0,1),s.Sb(2,"div",2),s.kc(3),s.Rb(),s.Rb()),2&t&&s.Bb("modal-dialog"+(e.size?" modal-"+e.size:"")+(e.centered?" modal-dialog-centered":"")+(e.scrollable?" modal-dialog-scrollable":""))},styles:["ngb-modal-window .component-host-scrollable{display:-ms-flexbox;display:flex;-ms-flex-direction:column;flex-direction:column;overflow:hidden}"],encapsulation:2}),t=Object(r.b)([Object(r.c)(0,Object(s.r)(i.c))],t),t})(),Tr=(()=>{let t=class{constructor(t,e,n,r,s,i){this._applicationRef=t,this._injector=e,this._document=n,this._scrollBar=r,this._rendererFactory=s,this._ngZone=i,this._activeWindowCmptHasChanged=new a.a,this._ariaHiddenValues=new Map,this._backdropAttributes=["backdropClass"],this._modalRefs=[],this._windowAttributes=["ariaLabelledBy","ariaDescribedBy","backdrop","centered","keyboard","scrollable","size","windowClass"],this._windowCmpts=[],this._activeWindowCmptHasChanged.subscribe(()=>{if(this._windowCmpts.length){const t=this._windowCmpts[this._windowCmpts.length-1];dn(this._ngZone,t.location.nativeElement,this._activeWindowCmptHasChanged),this._revertAriaHidden(),this._setAriaHidden(t.location.nativeElement)}})}open(t,e,n,r){const s=r.container instanceof HTMLElement?r.container:_e(r.container)?this._document.querySelector(r.container):this._document.body,i=this._rendererFactory.createRenderer(null,null),o=this._scrollBar.compensate(),a=()=>{this._modalRefs.length||(i.removeClass(this._document.body,"modal-open"),this._revertAriaHidden())};if(!s)throw new Error(`The specified modal container "${r.container||"body"}" was not found in the DOM.`);const c=new Or,l=this._getContentRef(t,r.injector||e,n,c,r);let u=!1!==r.backdrop?this._attachBackdrop(t,s):void 0,h=this._attachWindowComponent(t,s,l),d=new xr(h,l,u,r.beforeDismiss);return this._registerModalRef(d),this._registerWindowCmpt(h),d.result.then(o,o),d.result.then(a,a),c.close=t=>{d.close(t)},c.dismiss=t=>{d.dismiss(t)},this._applyWindowOptions(h.instance,r),1===this._modalRefs.length&&i.addClass(this._document.body,"modal-open"),u&&u.instance&&this._applyBackdropOptions(u.instance,r),d}dismissAll(t){this._modalRefs.forEach(e=>e.dismiss(t))}hasOpenModals(){return this._modalRefs.length>0}_attachBackdrop(t,e){let n=t.resolveComponentFactory(Sr).create(this._injector);return this._applicationRef.attachView(n.hostView),e.appendChild(n.location.nativeElement),n}_attachWindowComponent(t,e,n){let r=t.resolveComponentFactory(Ar).create(this._injector,n.nodes);return this._applicationRef.attachView(r.hostView),e.appendChild(r.location.nativeElement),r}_applyWindowOptions(t,e){this._windowAttributes.forEach(n=>{_e(e[n])&&(t[n]=e[n])})}_applyBackdropOptions(t,e){this._backdropAttributes.forEach(n=>{_e(e[n])&&(t[n]=e[n])})}_getContentRef(t,e,n,r,i){return n?n instanceof s.M?this._createFromTemplateRef(n,r):ge(n)?this._createFromString(n):this._createFromComponent(t,e,n,r,i):new wr([])}_createFromTemplateRef(t,e){const n=t.createEmbeddedView({$implicit:e,close(t){e.close(t)},dismiss(t){e.dismiss(t)}});return this._applicationRef.attachView(n),new wr([n.rootNodes],n)}_createFromString(t){const e=this._document.createTextNode(""+t);return new wr([[e]])}_createFromComponent(t,e,n,r,i){const o=t.resolveComponentFactory(n),a=s.t.create({providers:[{provide:Or,useValue:r}],parent:e}),c=o.create(a),l=c.location.nativeElement;return i.scrollable&&l.classList.add("component-host-scrollable"),this._applicationRef.attachView(c.hostView),new wr([[l]],c.hostView,c)}_setAriaHidden(t){const e=t.parentElement;e&&t!==this._document.body&&(Array.from(e.children).forEach(e=>{e!==t&&"SCRIPT"!==e.nodeName&&(this._ariaHiddenValues.set(e,e.getAttribute("aria-hidden")),e.setAttribute("aria-hidden","true"))}),this._setAriaHidden(e))}_revertAriaHidden(){this._ariaHiddenValues.forEach((t,e)=>{t?e.setAttribute("aria-hidden",t):e.removeAttribute("aria-hidden")}),this._ariaHiddenValues.clear()}_registerModalRef(t){const e=()=>{const e=this._modalRefs.indexOf(t);e>-1&&this._modalRefs.splice(e,1)};this._modalRefs.push(t),t.result.then(e,e)}_registerWindowCmpt(t){this._windowCmpts.push(t),this._activeWindowCmptHasChanged.next(),t.onDestroy(()=>{const e=this._windowCmpts.indexOf(t);e>-1&&(this._windowCmpts.splice(e,1),this._activeWindowCmptHasChanged.next())})}};return t.\u0275fac=function(e){return new(e||t)(s.ac(s.g),s.ac(s.t),s.ac(i.c),s.ac(Er),s.ac(s.G),s.ac(s.B))},t.\u0275prov=Object(s.Ib)({factory:function(){return new t(Object(s.ac)(s.g),Object(s.ac)(s.q),Object(s.ac)(i.c),Object(s.ac)(Er),Object(s.ac)(s.G),Object(s.ac)(s.B))},token:t,providedIn:"root"}),t=Object(r.b)([Object(r.c)(2,Object(s.r)(i.c))],t),t})(),jr=(()=>{let t=class{constructor(t,e,n,r){this._moduleCFR=t,this._injector=e,this._modalStack=n,this._config=r}open(t,e={}){const n=Object.assign({},this._config,e);return this._modalStack.open(this._moduleCFR,this._injector,t,n)}dismissAll(t){this._modalStack.dismissAll(t)}hasOpenModals(){return this._modalStack.hasOpenModals()}};return t.\u0275fac=function(e){return new(e||t)(s.ac(s.k),s.ac(s.t),s.ac(Tr),s.ac(vr))},t.\u0275prov=Object(s.Ib)({factory:function(){return new t(Object(s.ac)(s.k),Object(s.ac)(s.q),Object(s.ac)(Tr),Object(s.ac)(vr))},token:t,providedIn:"root"}),t})(),Fr=(()=>{let t=class{};return t.\u0275mod=s.Kb({type:t}),t.\u0275inj=s.Jb({factory:function(e){return new(e||t)},providers:[jr]}),t})(),Ir=(()=>{let t=class{constructor(){this.destroyOnHide=!0,this.orientation="horizontal",this.roles="tablist",this.keyboard=!1}};return t.\u0275fac=function(e){return new(e||t)},t.\u0275prov=Object(s.Ib)({factory:function(){return new t},token:t,providedIn:"root"}),t})();const Rr=t=>_e(t)&&""!==t;let Mr=0,Pr=(()=>{let t=class{constructor(t){this.templateRef=t}};return t.\u0275fac=function(e){return new(e||t)(s.Mb(s.M))},t.\u0275dir=s.Hb({type:t,selectors:[["ng-template","ngbNavContent",""]]}),t})(),Nr=(()=>{let t=class{constructor(t,e){this.elementRef=e,this.disabled=!1,this._nav=t}ngAfterContentChecked(){this.contentTpl=this.contentTpls.first}ngOnInit(){_e(this.domId)||(this.domId="ngb-nav-"+Mr++)}get active(){return this._nav.activeId===this.id}get id(){return Rr(this._id)?this._id:this.domId}get panelDomId(){return this.domId+"-panel"}isPanelInDom(){return(_e(this.destroyOnHide)?!this.destroyOnHide:!this._nav.destroyOnHide)||this.active}};return t.\u0275fac=function(e){return new(e||t)(s.Mb(Object(s.U)(()=>Vr)),s.Mb(s.m))},t.\u0275dir=s.Hb({type:t,selectors:[["","ngbNavItem",""]],contentQueries:function(t,e,n){var r;1&t&&s.Fb(n,Pr,!1),2&t&&s.uc(r=s.ec())&&(e.contentTpls=r)},hostVars:2,hostBindings:function(t,e){2&t&&s.Eb("nav-item",!0)},inputs:{disabled:"disabled",domId:"domId",destroyOnHide:"destroyOnHide",_id:["ngbNavItem","_id"]},exportAs:["ngbNavItem"]}),t=Object(r.b)([Object(r.c)(0,Object(s.r)(Object(s.U)(()=>Vr)))],t),t})(),Vr=(()=>{let t=class{constructor(t,e,n,r){this.role=t,this._cd=n,this._document=r,this.activeIdChange=new s.o,this.navChange=new s.o,this.destroyOnHide=e.destroyOnHide,this.orientation=e.orientation,this.roles=e.roles,this.keyboard=e.keyboard}click(t){t.disabled||this._updateActiveId(t.id)}onKeyDown(t){if("tablist"!==this.roles||!this.keyboard)return;const e=t.which,n=this.links.filter(t=>!t.navItem.disabled),{length:r}=n;let s=-1;if(n.forEach((t,e)=>{t.elRef.nativeElement===this._document.activeElement&&(s=e)}),r){switch(e){case en.ArrowLeft:if("vertical"===this.orientation)return;s=(s-1+r)%r;break;case en.ArrowRight:if("vertical"===this.orientation)return;s=(s+1)%r;break;case en.ArrowDown:if("horizontal"===this.orientation)return;s=(s+1)%r;break;case en.ArrowUp:if("horizontal"===this.orientation)return;s=(s-1+r)%r;break;case en.Home:s=0;break;case en.End:s=r-1}"changeWithArrows"===this.keyboard&&this.select(n[s].navItem.id),n[s].elRef.nativeElement.focus(),t.preventDefault()}}select(t){this._updateActiveId(t,!1)}ngAfterContentInit(){if(!_e(this.activeId)){const t=this.items.first?this.items.first.id:null;Rr(t)&&(this._updateActiveId(t,!1),this._cd.detectChanges())}}_updateActiveId(t,e=!0){if(this.activeId!==t){let n=!1;e&&this.navChange.emit({activeId:this.activeId,nextId:t,preventDefault:()=>{n=!0}}),n||(this.activeId=t,this.activeIdChange.emit(t))}}};return t.\u0275fac=function(e){return new(e||t)(s.bc("role"),s.Mb(Ir),s.Mb(s.i),s.Mb(i.c))},t.\u0275dir=s.Hb({type:t,selectors:[["","ngbNav",""]],contentQueries:function(t,e,n){var r;1&t&&(s.Fb(n,Nr,!1),s.Fb(n,Br,!0)),2&t&&(s.uc(r=s.ec())&&(e.items=r),s.uc(r=s.ec())&&(e.links=r))},hostVars:6,hostBindings:function(t,e){1&t&&s.dc("keydown.arrowLeft",function(t){return e.onKeyDown(t)})("keydown.arrowRight",function(t){return e.onKeyDown(t)})("keydown.arrowDown",function(t){return e.onKeyDown(t)})("keydown.arrowUp",function(t){return e.onKeyDown(t)})("keydown.Home",function(t){return e.onKeyDown(t)})("keydown.End",function(t){return e.onKeyDown(t)}),2&t&&(s.Ab("aria-orientation","vertical"===e.orientation&&"tablist"===e.roles?"vertical":void 0)("role",e.role?e.role:e.roles?"tablist":void 0),s.Eb("nav",!0)("flex-column","vertical"===e.orientation))},inputs:{destroyOnHide:"destroyOnHide",orientation:"orientation",roles:"roles",keyboard:"keyboard",activeId:"activeId"},outputs:{activeIdChange:"activeIdChange",navChange:"navChange"},exportAs:["ngbNav"]}),t=Object(r.b)([Object(r.c)(0,Object(s.h)("role")),Object(r.c)(3,Object(s.r)(i.c))],t),t})(),Br=(()=>{let t=class{constructor(t,e,n,r){this.role=t,this.navItem=e,this.nav=n,this.elRef=r}hasNavItemClass(){return this.navItem.elementRef.nativeElement.nodeType===Node.COMMENT_NODE}};return t.\u0275fac=function(e){return new(e||t)(s.bc("role"),s.Mb(Nr),s.Mb(Vr),s.Mb(s.m))},t.\u0275dir=s.Hb({type:t,selectors:[["a","ngbNavLink",""]],hostAttrs:["href",""],hostVars:14,hostBindings:function(t,e){1&t&&s.dc("click",function(t){return e.nav.click(e.navItem),t.preventDefault()}),2&t&&(s.Vb("id",e.navItem.domId),s.Ab("role",e.role?e.role:e.nav.roles?"tab":void 0)("tabindex",e.navItem.disabled?-1:void 0)("aria-controls",e.navItem.isPanelInDom()?e.navItem.panelDomId:null)("aria-selected",e.navItem.active)("aria-disabled",e.navItem.disabled),s.Eb("nav-link",!0)("nav-item",e.hasNavItemClass())("active",e.navItem.active)("disabled",e.navItem.disabled))}}),t=Object(r.b)([Object(r.c)(0,Object(s.h)("role"))],t),t})(),Hr=(()=>{let t=class{};return t.\u0275fac=function(e){return new(e||t)},t.\u0275cmp=s.Gb({type:t,selectors:[["","ngbNavOutlet",""]],hostVars:2,hostBindings:function(t,e){2&t&&s.Eb("tab-content",!0)},inputs:{paneRole:"paneRole",nav:["ngbNavOutlet","nav"]},attrs:xt,decls:1,vars:1,consts:[["ngFor","",3,"ngForOf"],["class","tab-pane",3,"id","active",4,"ngIf"],[1,"tab-pane",3,"id"],[3,"ngTemplateOutlet","ngTemplateOutletContext"]],template:function(t,e){1&t&&s.Dc(0,jt,1,1,"ng-template",0),2&t&&s.mc("ngForOf",e.nav.items)},directives:[i.n,i.o,i.q],encapsulation:2}),t})(),Lr=(()=>{let t=class{};return t.\u0275mod=s.Kb({type:t}),t.\u0275inj=s.Jb({factory:function(e){return new(e||t)},imports:[[i.b]]}),t})(),Ur=(()=>{let t=class{};return t.\u0275mod=s.Kb({type:t}),t.\u0275inj=s.Jb({factory:function(e){return new(e||t)},imports:[[i.b]]}),t})();class zr{constructor(t,e){this.open=t,this.close=e,e||(this.close=t)}isManual(){return"manual"===this.open||"manual"===this.close}}const $r={hover:["mouseenter","mouseleave"],focus:["focusin","focusout"]},qr=t=>t>0?U(t):t=>t;let Wr=(()=>{let t=class{constructor(){this.autoClose=!0,this.placement="auto",this.triggers="click",this.disablePopover=!1,this.openDelay=0,this.closeDelay=0}};return t.\u0275fac=function(e){return new(e||t)},t.\u0275prov=Object(s.Ib)({factory:function(){return new t},token:t,providedIn:"root"}),t})(),Gr=0,Kr=(()=>{let t=class{isTitleTemplate(){return this.title instanceof s.M}};return t.\u0275fac=function(e){return new(e||t)},t.\u0275cmp=s.Gb({type:t,selectors:[["ngb-popover-window"]],hostAttrs:["role","tooltip"],hostVars:3,hostBindings:function(t,e){2&t&&(s.Vb("id",e.id),s.Bb("popover"+(e.popoverClass?" "+e.popoverClass:"")))},inputs:{title:"title",id:"id",popoverClass:"popoverClass",context:"context"},ngContentSelectors:G,decls:4,vars:1,consts:[[1,"arrow"],["class","popover-header",4,"ngIf"],[1,"popover-body"],[1,"popover-header"],["simpleTitle",""],[3,"ngTemplateOutlet","ngTemplateOutletContext"]],template:function(t,e){1&t&&(s.lc(),s.Nb(0,"div",0),s.Dc(1,Rt,4,2,"h3",1),s.Sb(2,"div",2),s.kc(3),s.Rb()),2&t&&(s.zb(1),s.mc("ngIf",null!=e.title))},directives:[i.o,i.q],styles:["ngb-popover-window.bs-popover-bottom>.arrow,ngb-popover-window.bs-popover-top>.arrow{left:50%;margin-left:-.5rem}ngb-popover-window.bs-popover-bottom-left>.arrow,ngb-popover-window.bs-popover-top-left>.arrow{left:2em}ngb-popover-window.bs-popover-bottom-right>.arrow,ngb-popover-window.bs-popover-top-right>.arrow{left:auto;right:2em}ngb-popover-window.bs-popover-left>.arrow,ngb-popover-window.bs-popover-right>.arrow{top:50%;margin-top:-.5rem}ngb-popover-window.bs-popover-left-top>.arrow,ngb-popover-window.bs-popover-right-top>.arrow{top:.7em}ngb-popover-window.bs-popover-left-bottom>.arrow,ngb-popover-window.bs-popover-right-bottom>.arrow{top:auto;bottom:.7em}"],encapsulation:2,changeDetection:0}),t})(),Qr=(()=>{let t=class{constructor(t,e,n,r,i,o,a,c,l,u){this._elementRef=t,this._renderer=e,this._ngZone=a,this._document=c,this._changeDetector=l,this.shown=new s.o,this.hidden=new s.o,this._ngbPopoverWindowId="ngb-popover-"+Gr++,this._windowRef=null,this.autoClose=o.autoClose,this.placement=o.placement,this.triggers=o.triggers,this.container=o.container,this.disablePopover=o.disablePopover,this.popoverClass=o.popoverClass,this.openDelay=o.openDelay,this.closeDelay=o.closeDelay,this._popupService=new Cr(Kr,n,i,e,r,u),this._zoneSubscription=a.onStable.subscribe(()=>{this._windowRef&&mn(this._elementRef.nativeElement,this._windowRef.location.nativeElement,this.placement,"body"===this.container,"bs-popover")})}_isDisabled(){return!!this.disablePopover||!this.ngbPopover&&!this.popoverTitle}open(t){this._windowRef||this._isDisabled()||(this._windowRef=this._popupService.open(this.ngbPopover,t),this._windowRef.instance.title=this.popoverTitle,this._windowRef.instance.context=t,this._windowRef.instance.popoverClass=this.popoverClass,this._windowRef.instance.id=this._ngbPopoverWindowId,this._renderer.setAttribute(this._elementRef.nativeElement,"aria-describedby",this._ngbPopoverWindowId),"body"===this.container&&this._document.querySelector(this.container).appendChild(this._windowRef.location.nativeElement),this._windowRef.changeDetectorRef.detectChanges(),this._windowRef.changeDetectorRef.markForCheck(),ln(this._ngZone,this._document,this.autoClose,()=>this.close(),this.hidden,[this._windowRef.location.nativeElement]),this.shown.emit())}close(){this._windowRef&&(this._renderer.removeAttribute(this._elementRef.nativeElement,"aria-describedby"),this._popupService.close(),this._windowRef=null,this.hidden.emit(),this._changeDetector.markForCheck())}toggle(){this._windowRef?this.close():this.open()}isOpen(){return null!=this._windowRef}ngOnInit(){this._unregisterListenersFn=function(t,e,n,r,s,i,o=0,a=0){const c=function(t,e=$r){const n=(t||"").trim();if(0===n.length)return[];const r=n.split(/\s+/).map(t=>t.split(":")).map(t=>{let n=e[t[0]]||t;return new zr(n[0],n[1])}),s=r.filter(t=>t.isManual());if(s.length>1)throw"Triggers parse error: only one manual trigger is allowed";if(1===s.length&&r.length>1)throw"Triggers parse error: manual trigger can't be mixed with other triggers";return r}(n);if(1===c.length&&c[0].isManual())return()=>{};const u=function(t,e,n,r){return new l.a(s=>{const i=[],o=()=>s.next(!0),a=()=>s.next(!1),c=()=>s.next(!r());return n.forEach(n=>{n.open===n.close?i.push(t.listen(e,n.open,c)):i.push(t.listen(e,n.open,o),t.listen(e,n.close,a))}),()=>{i.forEach(t=>t())}})}(t,e,c,r).pipe(function(t,e,n){return r=>{let s=null;const i=r.pipe(Object(y.a)(t=>({open:t})),Object(j.a)(t=>{const e=n();return e===t.open||s&&s.open!==e?(s&&s.open!==t.open&&(s=null),!1):(s=t,!0)}),Object(W.a)()),o=i.pipe(Object(j.a)(t=>t.open),qr(t)),a=i.pipe(Object(j.a)(t=>!t.open),qr(e));return Object(w.a)(o,a).pipe(Object(j.a)(t=>t===s&&(s=null,t.open!==n())),Object(y.a)(t=>t.open))}}(o,a,r)).subscribe(t=>t?s():i());return()=>u.unsubscribe()}(this._renderer,this._elementRef.nativeElement,this.triggers,this.isOpen.bind(this),this.open.bind(this),this.close.bind(this),+this.openDelay,+this.closeDelay)}ngOnChanges({ngbPopover:t,popoverTitle:e,disablePopover:n,popoverClass:r}){r&&this.isOpen()&&(this._windowRef.instance.popoverClass=r.currentValue),(t||e||n)&&this._isDisabled()&&this.close()}ngOnDestroy(){this.close(),this._unregisterListenersFn&&this._unregisterListenersFn(),this._zoneSubscription.unsubscribe()}};return t.\u0275fac=function(e){return new(e||t)(s.Mb(s.m),s.Mb(s.F),s.Mb(s.t),s.Mb(s.k),s.Mb(s.Q),s.Mb(Wr),s.Mb(s.B),s.Mb(i.c),s.Mb(s.i),s.Mb(s.g))},t.\u0275dir=s.Hb({type:t,selectors:[["","ngbPopover",""]],inputs:{autoClose:"autoClose",placement:"placement",triggers:"triggers",container:"container",disablePopover:"disablePopover",popoverClass:"popoverClass",openDelay:"openDelay",closeDelay:"closeDelay",ngbPopover:"ngbPopover",popoverTitle:"popoverTitle"},outputs:{shown:"shown",hidden:"hidden"},exportAs:["ngbPopover"],features:[s.xb]}),t=Object(r.b)([Object(r.c)(7,Object(s.r)(i.c))],t),t})(),Zr=(()=>{let t=class{};return t.\u0275mod=s.Kb({type:t}),t.\u0275inj=s.Jb({factory:function(e){return new(e||t)},imports:[[i.b]]}),t})(),Jr=(()=>{let t=class{};return t.\u0275mod=s.Kb({type:t}),t.\u0275inj=s.Jb({factory:function(e){return new(e||t)},imports:[[i.b]]}),t})(),Yr=(()=>{let t=class{constructor(){this.max=10,this.readonly=!1,this.resettable=!1}};return t.\u0275fac=function(e){return new(e||t)},t.\u0275prov=Object(s.Ib)({factory:function(){return new t},token:t,providedIn:"root"}),t})();const Xr={provide:o.k,useExisting:Object(s.U)(()=>ts),multi:!0};let ts=(()=>{let t=class{constructor(t,e){this._changeDetectorRef=e,this.contexts=[],this.disabled=!1,this.hover=new s.o,this.leave=new s.o,this.rateChange=new s.o(!0),this.onChange=t=>{},this.onTouched=()=>{},this.max=t.max,this.readonly=t.readonly}ariaValueText(){return`${this.nextRate} out of ${this.max}`}enter(t){this.readonly||this.disabled||this._updateState(t),this.hover.emit(t)}handleBlur(){this.onTouched()}handleClick(t){this.readonly||this.disabled||this.update(this.resettable&&this.rate===t?0:t)}handleKeyDown(t){switch(t.which){case en.ArrowDown:case en.ArrowLeft:this.update(this.rate-1);break;case en.ArrowUp:case en.ArrowRight:this.update(this.rate+1);break;case en.Home:this.update(0);break;case en.End:this.update(this.max);break;default:return}t.preventDefault()}ngOnChanges(t){t.rate&&this.update(this.rate)}ngOnInit(){this.contexts=Array.from({length:this.max},(t,e)=>({fill:0,index:e})),this._updateState(this.rate)}registerOnChange(t){this.onChange=t}registerOnTouched(t){this.onTouched=t}reset(){this.leave.emit(this.nextRate),this._updateState(this.rate)}setDisabledState(t){this.disabled=t}update(t,e=!0){const n=function(t,e,n=0){return Math.max(Math.min(t,e),n)}(t,this.max,0);this.readonly||this.disabled||this.rate===n||(this.rate=n,this.rateChange.emit(this.rate)),e&&(this.onChange(this.rate),this.onTouched()),this._updateState(this.rate)}writeValue(t){this.update(t,!1),this._changeDetectorRef.markForCheck()}_getFillValue(t){const e=this.nextRate-t;return e>=1?100:e<1&&e>0?parseInt((100*e).toFixed(2),10):0}_updateState(t){this.nextRate=t,this.contexts.forEach((t,e)=>t.fill=this._getFillValue(e))}};return t.\u0275fac=function(e){return new(e||t)(s.Mb(Yr),s.Mb(s.i))},t.\u0275cmp=s.Gb({type:t,selectors:[["ngb-rating"]],contentQueries:function(t,e,n){var r;1&t&&s.Fb(n,s.M,!0),2&t&&s.uc(r=s.ec())&&(e.starTemplateFromContent=r.first)},hostAttrs:["role","slider","aria-valuemin","0",1,"d-inline-flex"],hostVars:5,hostBindings:function(t,e){1&t&&s.dc("blur",function(){return e.handleBlur()})("keydown",function(t){return e.handleKeyDown(t)})("mouseleave",function(){return e.reset()}),2&t&&(s.Vb("tabindex",e.disabled?-1:0),s.Ab("aria-valuemax",e.max)("aria-valuenow",e.nextRate)("aria-valuetext",e.ariaValueText())("aria-disabled",!!e.readonly||null))},inputs:{max:"max",readonly:"readonly",rate:"rate",resettable:"resettable",starTemplate:"starTemplate"},outputs:{hover:"hover",leave:"leave",rateChange:"rateChange"},features:[s.yb([Xr]),s.xb],decls:3,vars:1,consts:[["t",""],["ngFor","",3,"ngForOf"],[1,"sr-only"],[3,"mouseenter","click"],[3,"ngTemplateOutlet","ngTemplateOutletContext"]],template:function(t,e){1&t&&(s.Dc(0,Mt,1,1,"ng-template",null,0,s.Ec),s.Dc(2,Nt,4,5,"ng-template",1)),2&t&&(s.zb(2),s.mc("ngForOf",e.contexts))},directives:[i.n,i.q],encapsulation:2,changeDetection:0}),t})(),es=(()=>{let t=class{};return t.\u0275mod=s.Kb({type:t}),t.\u0275inj=s.Jb({factory:function(e){return new(e||t)},imports:[[i.b]]}),t})(),ns=(()=>{let t=class{};return t.\u0275mod=s.Kb({type:t}),t.\u0275inj=s.Jb({factory:function(e){return new(e||t)},imports:[[i.b]]}),t})();class rs{constructor(t,e,n){this.hour=pe(t),this.minute=pe(e),this.second=pe(n)}changeHour(t=1){this.updateHour((isNaN(this.hour)?0:this.hour)+t)}updateHour(t){this.hour=be(t)?(t<0?24+t:t)%24:NaN}changeMinute(t=1){this.updateMinute((isNaN(this.minute)?0:this.minute)+t)}updateMinute(t){be(t)?(this.minute=t%60<0?60+t%60:t%60,this.changeHour(Math.floor(t/60))):this.minute=NaN}changeSecond(t=1){this.updateSecond((isNaN(this.second)?0:this.second)+t)}updateSecond(t){be(t)?(this.second=t<0?60+t%60:t%60,this.changeMinute(Math.floor(t/60))):this.second=NaN}isValid(t=!0){return be(this.hour)&&be(this.minute)&&(!t||be(this.second))}toString(){return`${this.hour||0}:${this.minute||0}:${this.second||0}`}}let ss=(()=>{let t=class{constructor(){this.meridian=!1,this.spinners=!0,this.seconds=!1,this.hourStep=1,this.minuteStep=1,this.secondStep=1,this.disabled=!1,this.readonlyInputs=!1,this.size="medium"}};return t.\u0275fac=function(e){return new(e||t)},t.\u0275prov=Object(s.Ib)({factory:function(){return new t},token:t,providedIn:"root"}),t})();function is(){return new as}let os=(()=>{let t=class{};return t.\u0275fac=function(e){return new(e||t)},t.\u0275prov=Object(s.Ib)({factory:is,token:t,providedIn:"root"}),t})(),as=(()=>{let t=class extends os{fromModel(t){return t&&ye(t.hour)&&ye(t.minute)?{hour:t.hour,minute:t.minute,second:ye(t.second)?t.second:null}:null}toModel(t){return t&&ye(t.hour)&&ye(t.minute)?{hour:t.hour,minute:t.minute,second:ye(t.second)?t.second:null}:null}};return t.\u0275fac=function(e){return Hs(e||t)},t.\u0275prov=s.Ib({token:t,factory:function(e){return t.\u0275fac(e)}}),t})(),cs=(()=>{let t=class{};return t.\u0275fac=function(e){return new(e||t)},t.\u0275prov=Object(s.Ib)({factory:function(){return t=Object(s.ac)(s.w),new ls(t);var t},token:t,providedIn:"root"}),t})(),ls=(()=>{let t=class extends cs{constructor(t){super(),this._periods=Object(i.y)(t,i.f.Standalone,i.u.Narrow)}getMorningPeriod(){return this._periods[0]}getAfternoonPeriod(){return this._periods[1]}};return t.\u0275fac=function(e){return new(e||t)(s.ac(s.w))},t.\u0275prov=s.Ib({token:t,factory:function(e){return t.\u0275fac(e)}}),t=Object(r.b)([Object(r.c)(0,Object(s.r)(s.w))],t),t})();const us=/[^0-9]/g,hs={provide:o.k,useExisting:Object(s.U)(()=>ds),multi:!0};let ds=(()=>{let t=class{constructor(t,e,n,r){this._config=t,this._ngbTimeAdapter=e,this._cd=n,this.i18n=r,this.onChange=t=>{},this.onTouched=()=>{},this.meridian=t.meridian,this.spinners=t.spinners,this.seconds=t.seconds,this.hourStep=t.hourStep,this.minuteStep=t.minuteStep,this.secondStep=t.secondStep,this.disabled=t.disabled,this.readonlyInputs=t.readonlyInputs,this.size=t.size}set hourStep(t){this._hourStep=ye(t)?t:this._config.hourStep}get hourStep(){return this._hourStep}set minuteStep(t){this._minuteStep=ye(t)?t:this._config.minuteStep}get minuteStep(){return this._minuteStep}set secondStep(t){this._secondStep=ye(t)?t:this._config.secondStep}get secondStep(){return this._secondStep}writeValue(t){const e=this._ngbTimeAdapter.fromModel(t);this.model=e?new rs(e.hour,e.minute,e.second):new rs,this.seconds||e&&be(e.second)||(this.model.second=0),this._cd.markForCheck()}registerOnChange(t){this.onChange=t}registerOnTouched(t){this.onTouched=t}setDisabledState(t){this.disabled=t}changeHour(t){this.model.changeHour(t),this.propagateModelChange()}changeMinute(t){this.model.changeMinute(t),this.propagateModelChange()}changeSecond(t){this.model.changeSecond(t),this.propagateModelChange()}updateHour(t){const e=this.model.hour>=12,n=pe(t);this.model.updateHour(this.meridian&&(e&&n<12||!e&&12===n)?n+12:n),this.propagateModelChange()}updateMinute(t){this.model.updateMinute(pe(t)),this.propagateModelChange()}updateSecond(t){this.model.updateSecond(pe(t)),this.propagateModelChange()}toggleMeridian(){this.meridian&&this.changeHour(12)}formatInput(t){t.value=t.value.replace(us,"")}formatHour(t){return be(t)?ve(this.meridian?t%12==0?12:t%12:t%24):ve(NaN)}formatMinSec(t){return ve(be(t)?t:NaN)}get isSmallSize(){return"small"===this.size}get isLargeSize(){return"large"===this.size}ngOnChanges(t){t.seconds&&!this.seconds&&this.model&&!be(this.model.second)&&(this.model.second=0,this.propagateModelChange(!1))}propagateModelChange(t=!0){t&&this.onTouched(),this.model.isValid(this.seconds)?this.onChange(this._ngbTimeAdapter.toModel({hour:this.model.hour,minute:this.model.minute,second:this.model.second})):this.onChange(this._ngbTimeAdapter.toModel(null))}};return t.\u0275fac=function(e){return new(e||t)(s.Mb(ss),s.Mb(os),s.Mb(s.i),s.Mb(cs))},t.\u0275cmp=s.Gb({type:t,selectors:[["ngb-timepicker"]],inputs:{meridian:"meridian",spinners:"spinners",seconds:"seconds",hourStep:"hourStep",minuteStep:"minuteStep",secondStep:"secondStep",readonlyInputs:"readonlyInputs",size:"size"},features:[s.yb([hs]),s.xb],decls:18,vars:25,consts:[[3,"disabled"],[1,"ngb-tp"],[1,"ngb-tp-input-container","ngb-tp-hour"],["tabindex","-1","type","button","class","btn btn-link",3,"btn-sm","btn-lg","disabled","click",4,"ngIf"],["type","text","maxlength","2","inputmode","numeric",1,"ngb-tp-input","form-control",3,"value","readOnly","disabled","change","input","keydown.ArrowUp","keydown.ArrowDown",6,"placeholder","aria-label"],[1,"ngb-tp-spacer"],[1,"ngb-tp-input-container","ngb-tp-minute"],["class","ngb-tp-spacer",4,"ngIf"],["class","ngb-tp-input-container ngb-tp-second",4,"ngIf"],["class","ngb-tp-meridian",4,"ngIf"],["tabindex","-1","type","button",1,"btn","btn-link",3,"disabled","click"],[1,"chevron","ngb-tp-chevron"],[1,"sr-only"],[1,"chevron","ngb-tp-chevron","bottom"],[1,"ngb-tp-input-container","ngb-tp-second"],[1,"ngb-tp-meridian"],["type","button",1,"btn","btn-outline-primary",3,"disabled","click"],[4,"ngIf","ngIfElse"],["am",""]],template:function(t,e){1&t&&(s.Sb(0,"fieldset",0),s.Sb(1,"div",1),s.Sb(2,"div",2),s.Dc(3,$t,4,7,"button",3),s.Sb(4,"input",4),s.Yb(5,Vt),s.dc("change",function(t){return e.updateHour(t.target.value)})("input",function(t){return e.formatInput(t.target)})("keydown.ArrowUp",function(t){return e.changeHour(e.hourStep),t.preventDefault()})("keydown.ArrowDown",function(t){return e.changeHour(0-e.hourStep),t.preventDefault()}),s.Rb(),s.Dc(6,qt,4,7,"button",3),s.Rb(),s.Sb(7,"div",5),s.Fc(8,":"),s.Rb(),s.Sb(9,"div",6),s.Dc(10,Wt,4,7,"button",3),s.Sb(11,"input",4),s.Yb(12,Bt),s.dc("change",function(t){return e.updateMinute(t.target.value)})("input",function(t){return e.formatInput(t.target)})("keydown.ArrowUp",function(t){return e.changeMinute(e.minuteStep),t.preventDefault()})("keydown.ArrowDown",function(t){return e.changeMinute(0-e.minuteStep),t.preventDefault()}),s.Rb(),s.Dc(13,Gt,4,7,"button",3),s.Rb(),s.Dc(14,Kt,2,0,"div",7),s.Dc(15,ne,5,9,"div",8),s.Dc(16,re,1,0,"div",7),s.Dc(17,oe,5,9,"div",9),s.Rb(),s.Rb()),2&t&&(s.Eb("disabled",e.disabled),s.mc("disabled",e.disabled),s.zb(3),s.mc("ngIf",e.spinners),s.zb(1),s.Eb("form-control-sm",e.isSmallSize)("form-control-lg",e.isLargeSize),s.mc("value",e.formatHour(null==e.model?null:e.model.hour))("readOnly",e.readonlyInputs)("disabled",e.disabled),s.zb(2),s.mc("ngIf",e.spinners),s.zb(4),s.mc("ngIf",e.spinners),s.zb(1),s.Eb("form-control-sm",e.isSmallSize)("form-control-lg",e.isLargeSize),s.mc("value",e.formatMinSec(null==e.model?null:e.model.minute))("readOnly",e.readonlyInputs)("disabled",e.disabled),s.zb(2),s.mc("ngIf",e.spinners),s.zb(1),s.mc("ngIf",e.seconds),s.zb(1),s.mc("ngIf",e.seconds),s.zb(1),s.mc("ngIf",e.meridian),s.zb(1),s.mc("ngIf",e.meridian))},directives:[i.o],styles:['ngb-timepicker{font-size:1rem}.ngb-tp{display:-ms-flexbox;display:flex;-ms-flex-align:center;align-items:center}.ngb-tp-input-container{width:4em}.ngb-tp-chevron::before{border-style:solid;border-width:.29em .29em 0 0;content:"";display:inline-block;height:.69em;left:.05em;position:relative;top:.15em;-webkit-transform:rotate(-45deg);transform:rotate(-45deg);vertical-align:middle;width:.69em}.ngb-tp-chevron.bottom:before{top:-.3em;-webkit-transform:rotate(135deg);transform:rotate(135deg)}.ngb-tp-input{text-align:center}.ngb-tp-hour,.ngb-tp-meridian,.ngb-tp-minute,.ngb-tp-second{display:-ms-flexbox;display:flex;-ms-flex-direction:column;flex-direction:column;-ms-flex-align:center;align-items:center;-ms-flex-pack:distribute;justify-content:space-around}.ngb-tp-spacer{width:1em;text-align:center}'],encapsulation:2}),t})(),fs=(()=>{let t=class{};return t.\u0275mod=s.Kb({type:t}),t.\u0275inj=s.Jb({factory:function(e){return new(e||t)},imports:[[i.b]]}),t})(),ps=(()=>{let t=class{};return t.\u0275mod=s.Kb({type:t}),t.\u0275inj=s.Jb({factory:function(e){return new(e||t)},imports:[[i.b]]}),t})(),ms=(()=>{let t=class{};return t.\u0275mod=s.Kb({type:t}),t.\u0275inj=s.Jb({factory:function(e){return new(e||t)}}),t})(),gs=(()=>{let t=class{constructor(){this.highlightClass="ngb-highlight"}ngOnChanges(t){const e=me(this.result),n=(Array.isArray(this.term)?this.term:[this.term]).map(t=>me(t).replace(/[-[\]{}()*+?.,\\^$|#\s]/g,"\\$&")).filter(t=>t);this.parts=n.length?e.split(new RegExp(`(${n.join("|")})`,"gmi")):[e]}};return t.\u0275fac=function(e){return new(e||t)},t.\u0275cmp=s.Gb({type:t,selectors:[["ngb-highlight"]],inputs:{highlightClass:"highlightClass",result:"result",term:"term"},features:[s.xb],decls:1,vars:1,consts:[["ngFor","",3,"ngForOf"],[3,"class",4,"ngIf","ngIfElse"],["even",""]],template:function(t,e){1&t&&s.Dc(0,le,3,2,"ng-template",0),2&t&&s.mc("ngForOf",e.parts)},directives:[i.n,i.o],styles:[".ngb-highlight{font-weight:700}"],encapsulation:2,changeDetection:0}),t})(),bs=(()=>{let t=class{constructor(){this.activeIdx=0,this.focusFirst=!0,this.formatter=me,this.selectEvent=new s.o,this.activeChangeEvent=new s.o}hasActive(){return this.activeIdx>-1&&this.activeIdx<this.results.length}getActive(){return this.results[this.activeIdx]}markActive(t){this.activeIdx=t,this._activeChanged()}next(){this.activeIdx===this.results.length-1?this.activeIdx=this.focusFirst?(this.activeIdx+1)%this.results.length:-1:this.activeIdx++,this._activeChanged()}prev(){this.activeIdx<0?this.activeIdx=this.results.length-1:0===this.activeIdx?this.activeIdx=this.focusFirst?this.results.length-1:-1:this.activeIdx--,this._activeChanged()}resetActive(){this.activeIdx=this.focusFirst?0:-1,this._activeChanged()}select(t){this.selectEvent.emit(t)}ngOnInit(){this.resetActive()}_activeChanged(){this.activeChangeEvent.emit(this.activeIdx>=0?this.id+"-"+this.activeIdx:void 0)}};return t.\u0275fac=function(e){return new(e||t)},t.\u0275cmp=s.Gb({type:t,selectors:[["ngb-typeahead-window"]],hostAttrs:["role","listbox",1,"dropdown-menu","show"],hostVars:1,hostBindings:function(t,e){1&t&&s.dc("mousedown",function(t){return t.preventDefault()}),2&t&&s.Vb("id",e.id)},inputs:{focusFirst:"focusFirst",formatter:"formatter",id:"id",results:"results",term:"term",resultTemplate:"resultTemplate"},outputs:{selectEvent:"select",activeChangeEvent:"activeChange"},exportAs:["ngbTypeaheadWindow"],decls:3,vars:1,consts:[["rt",""],["ngFor","",3,"ngForOf"],[3,"result","term"],["type","button","role","option",1,"dropdown-item",3,"id","mouseenter","click"],[3,"ngTemplateOutlet","ngTemplateOutletContext"]],template:function(t,e){1&t&&(s.Dc(0,ue,1,2,"ng-template",null,0,s.Ec),s.Dc(2,fe,2,9,"ng-template",1)),2&t&&(s.zb(2),s.mc("ngForOf",e.results))},directives:[i.n,gs,i.q],encapsulation:2}),t})();const ys=new s.s("live announcer delay",{providedIn:"root",factory:function(){return 100}});function _s(t,e=!1){let n=t.body.querySelector("#ngb-live");return null==n&&e&&(n=t.createElement("div"),n.setAttribute("id","ngb-live"),n.setAttribute("aria-live","polite"),n.setAttribute("aria-atomic","true"),n.classList.add("sr-only"),t.body.appendChild(n)),n}let vs=(()=>{let t=class{constructor(t,e){this._document=t,this._delay=e}ngOnDestroy(){const t=_s(this._document);t&&t.parentElement.removeChild(t)}say(t){const e=_s(this._document,!0),n=this._delay;if(null!=e){e.textContent="";const r=()=>e.textContent=t;null===n?r():setTimeout(r,n)}}};return t.\u0275fac=function(e){return new(e||t)(s.ac(i.c),s.ac(ys))},t.\u0275prov=Object(s.Ib)({factory:function(){return new t(Object(s.ac)(i.c),Object(s.ac)(ys))},token:t,providedIn:"root"}),t=Object(r.b)([Object(r.c)(0,Object(s.r)(i.c)),Object(r.c)(1,Object(s.r)(ys))],t),t})(),ws=(()=>{let t=class{constructor(){this.editable=!0,this.focusFirst=!0,this.showHint=!1,this.placement=["bottom-left","bottom-right","top-left","top-right"]}};return t.\u0275fac=function(e){return new(e||t)},t.\u0275prov=Object(s.Ib)({factory:function(){return new t},token:t,providedIn:"root"}),t})();const Cs={provide:o.k,useExisting:Object(s.U)(()=>Es),multi:!0};let Ds=0,Es=(()=>{let t=class{constructor(t,e,n,r,i,o,l,u,h,d,f,p){this._elementRef=t,this._renderer=n,this._live=u,this._document=h,this._ngZone=d,this._changeDetector=f,this._subscription=null,this._closed$=new a.a,this._inputValueBackup=null,this._windowRef=null,this.autocomplete="off",this.placement="bottom-left",this.selectItem=new s.o,this.activeDescendant=null,this.popupId="ngb-typeahead-"+Ds++,this._onTouched=()=>{},this._onChange=t=>{},this.container=o.container,this.editable=o.editable,this.focusFirst=o.focusFirst,this.showHint=o.showHint,this.placement=o.placement,this._valueChanges=_(t.nativeElement,"input").pipe(Object(y.a)(t=>t.target.value)),this._resubscribeTypeahead=new c.a(null),this._popupService=new Cr(bs,r,e,n,i,p),this._zoneSubscription=l.onStable.subscribe(()=>{this.isPopupOpen()&&mn(this._elementRef.nativeElement,this._windowRef.location.nativeElement,this.placement,"body"===this.container)})}ngOnInit(){const t=this._valueChanges.pipe(Object(I.a)(t=>{this._inputValueBackup=this.showHint?t:null,this._onChange(this.editable?t:void 0)})).pipe(this.ngbTypeahead),e=this._resubscribeTypeahead.pipe(Object(x.a)(()=>t));this._subscription=this._subscribeToUserInput(e)}ngOnDestroy(){this._closePopup(),this._unsubscribeFromUserInput(),this._zoneSubscription.unsubscribe()}registerOnChange(t){this._onChange=t}registerOnTouched(t){this._onTouched=t}writeValue(t){this._writeInputValue(this._formatItemForInput(t)),this.showHint&&(this._inputValueBackup=t)}setDisabledState(t){this._renderer.setProperty(this._elementRef.nativeElement,"disabled",t)}dismissPopup(){this.isPopupOpen()&&(this._resubscribeTypeahead.next(null),this._closePopup(),this.showHint&&null!==this._inputValueBackup&&this._writeInputValue(this._inputValueBackup),this._changeDetector.markForCheck())}isPopupOpen(){return null!=this._windowRef}handleBlur(){this._resubscribeTypeahead.next(null),this._onTouched()}handleKeyDown(t){if(this.isPopupOpen())switch(t.which){case en.ArrowDown:t.preventDefault(),this._windowRef.instance.next(),this._showHint();break;case en.ArrowUp:t.preventDefault(),this._windowRef.instance.prev(),this._showHint();break;case en.Enter:case en.Tab:const e=this._windowRef.instance.getActive();_e(e)&&(t.preventDefault(),t.stopPropagation(),this._selectResult(e)),this._closePopup()}}_openPopup(){this.isPopupOpen()||(this._inputValueBackup=this._elementRef.nativeElement.value,this._windowRef=this._popupService.open(),this._windowRef.instance.id=this.popupId,this._windowRef.instance.selectEvent.subscribe(t=>this._selectResultClosePopup(t)),this._windowRef.instance.activeChangeEvent.subscribe(t=>this.activeDescendant=t),"body"===this.container&&this._document.querySelector(this.container).appendChild(this._windowRef.location.nativeElement),this._changeDetector.markForCheck(),ln(this._ngZone,this._document,"outside",()=>this.dismissPopup(),this._closed$,[this._elementRef.nativeElement,this._windowRef.location.nativeElement]))}_closePopup(){this._closed$.next(),this._popupService.close(),this._windowRef=null,this.activeDescendant=null}_selectResult(t){let e=!1;this.selectItem.emit({item:t,preventDefault:()=>{e=!0}}),this._resubscribeTypeahead.next(null),e||(this.writeValue(t),this._onChange(t))}_selectResultClosePopup(t){this._selectResult(t),this._closePopup()}_showHint(){var t;if(this.showHint&&(null===(t=this._windowRef)||void 0===t?void 0:t.instance.hasActive())&&null!=this._inputValueBackup){const t=this._inputValueBackup.toLowerCase(),e=this._formatItemForInput(this._windowRef.instance.getActive());t===e.substr(0,this._inputValueBackup.length).toLowerCase()?(this._writeInputValue(this._inputValueBackup+e.substr(this._inputValueBackup.length)),this._elementRef.nativeElement.setSelectionRange.apply(this._elementRef.nativeElement,[this._inputValueBackup.length,e.length])):this._writeInputValue(e)}}_formatItemForInput(t){return null!=t&&this.inputFormatter?this.inputFormatter(t):me(t)}_writeInputValue(t){this._renderer.setProperty(this._elementRef.nativeElement,"value",me(t))}_subscribeToUserInput(t){return t.subscribe(t=>{t&&0!==t.length?(this._openPopup(),this._windowRef.instance.focusFirst=this.focusFirst,this._windowRef.instance.results=t,this._windowRef.instance.term=this._elementRef.nativeElement.value,this.resultFormatter&&(this._windowRef.instance.formatter=this.resultFormatter),this.resultTemplate&&(this._windowRef.instance.resultTemplate=this.resultTemplate),this._windowRef.instance.resetActive(),this._windowRef.changeDetectorRef.detectChanges(),this._showHint()):this._closePopup();const e=t?t.length:0;this._live.say(0===e?"No results available":`${e} result${1===e?"":"s"} available`)})}_unsubscribeFromUserInput(){this._subscription&&this._subscription.unsubscribe(),this._subscription=null}};return t.\u0275fac=function(e){return new(e||t)(s.Mb(s.m),s.Mb(s.Q),s.Mb(s.F),s.Mb(s.t),s.Mb(s.k),s.Mb(ws),s.Mb(s.B),s.Mb(vs),s.Mb(i.c),s.Mb(s.B),s.Mb(s.i),s.Mb(s.g))},t.\u0275dir=s.Hb({type:t,selectors:[["input","ngbTypeahead",""]],hostAttrs:["autocapitalize","off","autocorrect","off","role","combobox","aria-multiline","false"],hostVars:7,hostBindings:function(t,e){1&t&&s.dc("blur",function(){return e.handleBlur()})("keydown",function(t){return e.handleKeyDown(t)}),2&t&&(s.Vb("autocomplete",e.autocomplete),s.Ab("aria-autocomplete",e.showHint?"both":"list")("aria-activedescendant",e.activeDescendant)("aria-owns",e.isPopupOpen()?e.popupId:null)("aria-expanded",e.isPopupOpen()),s.Eb("open",e.isPopupOpen()))},inputs:{autocomplete:"autocomplete",placement:"placement",container:"container",editable:"editable",focusFirst:"focusFirst",showHint:"showHint",inputFormatter:"inputFormatter",ngbTypeahead:"ngbTypeahead",resultFormatter:"resultFormatter",resultTemplate:"resultTemplate"},outputs:{selectItem:"selectItem"},exportAs:["ngbTypeahead"],features:[s.yb([Cs])]}),t=Object(r.b)([Object(r.c)(8,Object(s.r)(i.c))],t),t})(),Ss=(()=>{let t=class{};return t.\u0275mod=s.Kb({type:t}),t.\u0275inj=s.Jb({factory:function(e){return new(e||t)},imports:[[i.b]]}),t})();const Os=[Ce,De,Te,je,Ie,ur,_r,Fr,Lr,Ur,Zr,Jr,es,fs,ps,ms,Ss,ns];let xs=(()=>{let t=class{};return t.\u0275mod=s.Kb({type:t}),t.\u0275inj=s.Jb({factory:function(e){return new(e||t)},imports:[Os,Ce,De,Te,je,Ie,ur,_r,Fr,Lr,Ur,Zr,Jr,es,fs,ps,ms,Ss,ns]}),t})();const ks=s.Ub(Be),As=s.Ub(Je),Ts=s.Ub(yn),js=s.Ub(_n),Fs=s.Ub(Sn),Is=s.Ub(Tn),Rs=s.Ub(Mn),Ms=s.Ub($n),Ps=s.Ub(rr),Ns=s.Ub(ar),Vs=s.Ub(cr),Bs=s.Ub(lr),Hs=s.Ub(as)},"2QA8":function(t,e,n){"use strict";n.d(e,"a",function(){return r});const r=(()=>"function"==typeof Symbol?Symbol("rxSubscriber"):"@@rxSubscriber_"+Math.random())()},"2Vo4":function(t,e,n){"use strict";n.d(e,"a",function(){return i});var r=n("XNiG"),s=n("9ppp");class i extends r.a{constructor(t){super(),this._value=t}get value(){return this.getValue()}_subscribe(t){const e=super._subscribe(t);return e&&!e.closed&&t.next(this._value),e}getValue(){if(this.hasError)throw this.thrownError;if(this.closed)throw new s.a;return this._value}next(t){super.next(this._value=t)}}},"2fFW":function(t,e,n){"use strict";n.d(e,"a",function(){return s});let r=!1;const s={Promise:void 0,set useDeprecatedSynchronousErrorHandling(t){if(t){const t=new Error;console.warn("DEPRECATED! RxJS was set to use deprecated synchronous error handling behavior by code at: \n"+t.stack)}else r&&console.log("RxJS: Back to a better error behavior. Thank you. <3");r=t},get useDeprecatedSynchronousErrorHandling(){return r}}},"3Pt+":function(t,e,n){"use strict";n.d(e,"a",function(){return f}),n.d(e,"b",function(){return g}),n.d(e,"c",function(){return zt}),n.d(e,"d",function(){return Yt}),n.d(e,"e",function(){return Wt}),n.d(e,"f",function(){return Bt}),n.d(e,"g",function(){return Lt}),n.d(e,"h",function(){return Xt}),n.d(e,"i",function(){return Zt}),n.d(e,"j",function(){return x}),n.d(e,"k",function(){return h}),n.d(e,"l",function(){return D}),n.d(e,"m",function(){return E}),n.d(e,"n",function(){return Mt}),n.d(e,"o",function(){return Z}),n.d(e,"p",function(){return N}),n.d(e,"q",function(){return H}),n.d(e,"r",function(){return te}),n.d(e,"s",function(){return Kt}),n.d(e,"t",function(){return Q}),n.d(e,"u",function(){return T}),n.d(e,"v",function(){return tt}),n.d(e,"w",function(){return Pt});var r=n("fXoL"),s=n("ofXK"),i=n("HDdC"),o=n("DH7j"),a=n("lJxs"),c=n("XoHu"),l=n("Cfvw");function u(t,e){return new i.a(n=>{const r=t.length;if(0===r)return void n.complete();const s=new Array(r);let i=0,o=0;for(let a=0;a<r;a++){const c=Object(l.a)(t[a]);let u=!1;n.add(c.subscribe({next:t=>{u||(u=!0,o++),s[a]=t},error:t=>n.error(t),complete:()=>{i++,i!==r&&u||(o===r&&n.next(e?e.reduce((t,e,n)=>(t[e]=s[n],t),{}):s),n.complete())}}))}})}const h=new r.s("NgValueAccessor"),d={provide:h,useExisting:Object(r.U)(()=>f),multi:!0};let f=(()=>{class t{constructor(t,e){this._renderer=t,this._elementRef=e,this.onChange=t=>{},this.onTouched=()=>{}}writeValue(t){this._renderer.setProperty(this._elementRef.nativeElement,"checked",t)}registerOnChange(t){this.onChange=t}registerOnTouched(t){this.onTouched=t}setDisabledState(t){this._renderer.setProperty(this._elementRef.nativeElement,"disabled",t)}}return t.\u0275fac=function(e){return new(e||t)(r.Mb(r.F),r.Mb(r.m))},t.\u0275dir=r.Hb({type:t,selectors:[["input","type","checkbox","formControlName",""],["input","type","checkbox","formControl",""],["input","type","checkbox","ngModel",""]],hostBindings:function(t,e){1&t&&r.dc("change",function(t){return e.onChange(t.target.checked)})("blur",function(){return e.onTouched()})},features:[r.yb([d])]}),t})();const p={provide:h,useExisting:Object(r.U)(()=>g),multi:!0},m=new r.s("CompositionEventMode");let g=(()=>{class t{constructor(t,e,n){this._renderer=t,this._elementRef=e,this._compositionMode=n,this.onChange=t=>{},this.onTouched=()=>{},this._composing=!1,null==this._compositionMode&&(this._compositionMode=!function(){const t=Object(s.E)()?Object(s.E)().getUserAgent():"";return/android (\d+)/.test(t.toLowerCase())}())}writeValue(t){this._renderer.setProperty(this._elementRef.nativeElement,"value",null==t?"":t)}registerOnChange(t){this.onChange=t}registerOnTouched(t){this.onTouched=t}setDisabledState(t){this._renderer.setProperty(this._elementRef.nativeElement,"disabled",t)}_handleInput(t){(!this._compositionMode||this._compositionMode&&!this._composing)&&this.onChange(t)}_compositionStart(){this._composing=!0}_compositionEnd(t){this._composing=!1,this._compositionMode&&this.onChange(t)}}return t.\u0275fac=function(e){return new(e||t)(r.Mb(r.F),r.Mb(r.m),r.Mb(m,8))},t.\u0275dir=r.Hb({type:t,selectors:[["input","formControlName","",3,"type","checkbox"],["textarea","formControlName",""],["input","formControl","",3,"type","checkbox"],["textarea","formControl",""],["input","ngModel","",3,"type","checkbox"],["textarea","ngModel",""],["","ngDefaultControl",""]],hostBindings:function(t,e){1&t&&r.dc("input",function(t){return e._handleInput(t.target.value)})("blur",function(){return e.onTouched()})("compositionstart",function(){return e._compositionStart()})("compositionend",function(t){return e._compositionEnd(t.target.value)})},features:[r.yb([p])]}),t})(),b=(()=>{class t{get value(){return this.control?this.control.value:null}get valid(){return this.control?this.control.valid:null}get invalid(){return this.control?this.control.invalid:null}get pending(){return this.control?this.control.pending:null}get disabled(){return this.control?this.control.disabled:null}get enabled(){return this.control?this.control.enabled:null}get errors(){return this.control?this.control.errors:null}get pristine(){return this.control?this.control.pristine:null}get dirty(){return this.control?this.control.dirty:null}get touched(){return this.control?this.control.touched:null}get status(){return this.control?this.control.status:null}get untouched(){return this.control?this.control.untouched:null}get statusChanges(){return this.control?this.control.statusChanges:null}get valueChanges(){return this.control?this.control.valueChanges:null}get path(){return null}reset(t){this.control&&this.control.reset(t)}hasError(t,e){return!!this.control&&this.control.hasError(t,e)}getError(t,e){return this.control?this.control.getError(t,e):null}}return t.\u0275fac=function(e){return new(e||t)},t.\u0275dir=r.Hb({type:t}),t})(),y=(()=>{class t extends b{get formDirective(){return null}get path(){return null}}return t.\u0275fac=function(e){return _(e||t)},t.\u0275dir=r.Hb({type:t,features:[r.wb]}),t})();const _=r.Ub(y);function v(){throw new Error("unimplemented")}class w extends b{constructor(){super(...arguments),this._parent=null,this.name=null,this.valueAccessor=null,this._rawValidators=[],this._rawAsyncValidators=[]}get validator(){return v()}get asyncValidator(){return v()}}class C{constructor(t){this._cd=t}get ngClassUntouched(){return!!this._cd.control&&this._cd.control.untouched}get ngClassTouched(){return!!this._cd.control&&this._cd.control.touched}get ngClassPristine(){return!!this._cd.control&&this._cd.control.pristine}get ngClassDirty(){return!!this._cd.control&&this._cd.control.dirty}get ngClassValid(){return!!this._cd.control&&this._cd.control.valid}get ngClassInvalid(){return!!this._cd.control&&this._cd.control.invalid}get ngClassPending(){return!!this._cd.control&&this._cd.control.pending}}let D=(()=>{class t extends C{constructor(t){super(t)}}return t.\u0275fac=function(e){return new(e||t)(r.Mb(w,2))},t.\u0275dir=r.Hb({type:t,selectors:[["","formControlName",""],["","ngModel",""],["","formControl",""]],hostVars:14,hostBindings:function(t,e){2&t&&r.Eb("ng-untouched",e.ngClassUntouched)("ng-touched",e.ngClassTouched)("ng-pristine",e.ngClassPristine)("ng-dirty",e.ngClassDirty)("ng-valid",e.ngClassValid)("ng-invalid",e.ngClassInvalid)("ng-pending",e.ngClassPending)},features:[r.wb]}),t})(),E=(()=>{class t extends C{constructor(t){super(t)}}return t.\u0275fac=function(e){return new(e||t)(r.Mb(y,2))},t.\u0275dir=r.Hb({type:t,selectors:[["","formGroupName",""],["","formArrayName",""],["","ngModelGroup",""],["","formGroup",""],["form",3,"ngNoForm",""],["","ngForm",""]],hostVars:14,hostBindings:function(t,e){2&t&&r.Eb("ng-untouched",e.ngClassUntouched)("ng-touched",e.ngClassTouched)("ng-pristine",e.ngClassPristine)("ng-dirty",e.ngClassDirty)("ng-valid",e.ngClassValid)("ng-invalid",e.ngClassInvalid)("ng-pending",e.ngClassPending)},features:[r.wb]}),t})();function S(t){return null==t||0===t.length}function O(t){return null!=t&&"number"==typeof t.length}const x=new r.s("NgValidators"),k=new r.s("NgAsyncValidators"),A=/^(?=.{1,254}$)(?=.{1,64}@)[a-zA-Z0-9!#$%&'*+/=?^_`{|}~-]+(?:\.[a-zA-Z0-9!#$%&'*+/=?^_`{|}~-]+)*@[a-zA-Z0-9](?:[a-zA-Z0-9-]{0,61}[a-zA-Z0-9])?(?:\.[a-zA-Z0-9](?:[a-zA-Z0-9-]{0,61}[a-zA-Z0-9])?)*$/;class T{static min(t){return e=>{if(S(e.value)||S(t))return null;const n=parseFloat(e.value);return!isNaN(n)&&n<t?{min:{min:t,actual:e.value}}:null}}static max(t){return e=>{if(S(e.value)||S(t))return null;const n=parseFloat(e.value);return!isNaN(n)&&n>t?{max:{max:t,actual:e.value}}:null}}static required(t){return S(t.value)?{required:!0}:null}static requiredTrue(t){return!0===t.value?null:{required:!0}}static email(t){return S(t.value)||A.test(t.value)?null:{email:!0}}static minLength(t){return e=>S(e.value)||!O(e.value)?null:e.value.length<t?{minlength:{requiredLength:t,actualLength:e.value.length}}:null}static maxLength(t){return e=>O(e.value)&&e.value.length>t?{maxlength:{requiredLength:t,actualLength:e.value.length}}:null}static pattern(t){if(!t)return T.nullValidator;let e,n;return"string"==typeof t?(n="","^"!==t.charAt(0)&&(n+="^"),n+=t,"$"!==t.charAt(t.length-1)&&(n+="$"),e=new RegExp(n)):(n=t.toString(),e=t),t=>{if(S(t.value))return null;const r=t.value;return e.test(r)?null:{pattern:{requiredPattern:n,actualValue:r}}}}static nullValidator(t){return null}static compose(t){if(!t)return null;const e=t.filter(j);return 0==e.length?null:function(t){return I(function(t,e){return e.map(e=>e(t))}(t,e))}}static composeAsync(t){if(!t)return null;const e=t.filter(j);return 0==e.length?null:function(t){return function(...t){if(1===t.length){const e=t[0];if(Object(o.a)(e))return u(e,null);if(Object(c.a)(e)&&Object.getPrototypeOf(e)===Object.prototype){const t=Object.keys(e);return u(t.map(t=>e[t]),t)}}if("function"==typeof t[t.length-1]){const e=t.pop();return u(t=1===t.length&&Object(o.a)(t[0])?t[0]:t,null).pipe(Object(a.a)(t=>e(...t)))}return u(t,null)}(function(t,e){return e.map(e=>e(t))}(t,e).map(F)).pipe(Object(a.a)(I))}}}function j(t){return null!=t}function F(t){const e=Object(r.rb)(t)?Object(l.a)(t):t;if(!Object(r.qb)(e))throw new Error("Expected validator to return Promise or Observable.");return e}function I(t){let e={};return t.forEach(t=>{e=null!=t?Object.assign(Object.assign({},e),t):e}),0===Object.keys(e).length?null:e}function R(t){return t.validate?e=>t.validate(e):t}function M(t){return t.validate?e=>t.validate(e):t}const P={provide:h,useExisting:Object(r.U)(()=>N),multi:!0};let N=(()=>{class t{constructor(t,e){this._renderer=t,this._elementRef=e,this.onChange=t=>{},this.onTouched=()=>{}}writeValue(t){this._renderer.setProperty(this._elementRef.nativeElement,"value",null==t?"":t)}registerOnChange(t){this.onChange=e=>{t(""==e?null:parseFloat(e))}}registerOnTouched(t){this.onTouched=t}setDisabledState(t){this._renderer.setProperty(this._elementRef.nativeElement,"disabled",t)}}return t.\u0275fac=function(e){return new(e||t)(r.Mb(r.F),r.Mb(r.m))},t.\u0275dir=r.Hb({type:t,selectors:[["input","type","number","formControlName",""],["input","type","number","formControl",""],["input","type","number","ngModel",""]],hostBindings:function(t,e){1&t&&r.dc("input",function(t){return e.onChange(t.target.value)})("blur",function(){return e.onTouched()})},features:[r.yb([P])]}),t})();const V={provide:h,useExisting:Object(r.U)(()=>H),multi:!0};let B=(()=>{class t{constructor(){this._accessors=[]}add(t,e){this._accessors.push([t,e])}remove(t){for(let e=this._accessors.length-1;e>=0;--e)if(this._accessors[e][1]===t)return void this._accessors.splice(e,1)}select(t){this._accessors.forEach(e=>{this._isSameGroup(e,t)&&e[1]!==t&&e[1].fireUncheck(t.value)})}_isSameGroup(t,e){return!!t[0].control&&t[0]._parent===e._control._parent&&t[1].name===e.name}}return t.\u0275fac=function(e){return new(e||t)},t.\u0275prov=r.Ib({token:t,factory:t.\u0275fac}),t})(),H=(()=>{class t{constructor(t,e,n,r){this._renderer=t,this._elementRef=e,this._registry=n,this._injector=r,this.onChange=()=>{},this.onTouched=()=>{}}ngOnInit(){this._control=this._injector.get(w),this._checkName(),this._registry.add(this._control,this)}ngOnDestroy(){this._registry.remove(this)}writeValue(t){this._state=t===this.value,this._renderer.setProperty(this._elementRef.nativeElement,"checked",this._state)}registerOnChange(t){this._fn=t,this.onChange=()=>{t(this.value),this._registry.select(this)}}fireUncheck(t){this.writeValue(t)}registerOnTouched(t){this.onTouched=t}setDisabledState(t){this._renderer.setProperty(this._elementRef.nativeElement,"disabled",t)}_checkName(){this.name&&this.formControlName&&this.name!==this.formControlName&&this._throwNameError(),!this.name&&this.formControlName&&(this.name=this.formControlName)}_throwNameError(){throw new Error('\n      If you define both a name and a formControlName attribute on your radio button, their values\n      must match. Ex: <input type="radio" formControlName="food" name="food">\n    ')}}return t.\u0275fac=function(e){return new(e||t)(r.Mb(r.F),r.Mb(r.m),r.Mb(B),r.Mb(r.t))},t.\u0275dir=r.Hb({type:t,selectors:[["input","type","radio","formControlName",""],["input","type","radio","formControl",""],["input","type","radio","ngModel",""]],hostBindings:function(t,e){1&t&&r.dc("change",function(){return e.onChange()})("blur",function(){return e.onTouched()})},inputs:{name:"name",formControlName:"formControlName",value:"value"},features:[r.yb([V])]}),t})();const L={provide:h,useExisting:Object(r.U)(()=>U),multi:!0};let U=(()=>{class t{constructor(t,e){this._renderer=t,this._elementRef=e,this.onChange=t=>{},this.onTouched=()=>{}}writeValue(t){this._renderer.setProperty(this._elementRef.nativeElement,"value",parseFloat(t))}registerOnChange(t){this.onChange=e=>{t(""==e?null:parseFloat(e))}}registerOnTouched(t){this.onTouched=t}setDisabledState(t){this._renderer.setProperty(this._elementRef.nativeElement,"disabled",t)}}return t.\u0275fac=function(e){return new(e||t)(r.Mb(r.F),r.Mb(r.m))},t.\u0275dir=r.Hb({type:t,selectors:[["input","type","range","formControlName",""],["input","type","range","formControl",""],["input","type","range","ngModel",""]],hostBindings:function(t,e){1&t&&r.dc("change",function(t){return e.onChange(t.target.value)})("input",function(t){return e.onChange(t.target.value)})("blur",function(){return e.onTouched()})},features:[r.yb([L])]}),t})();const z='\n    <div [formGroup]="myGroup">\n      <input formControlName="firstName">\n    </div>\n\n    In your class:\n\n    this.myGroup = new FormGroup({\n       firstName: new FormControl()\n    });',$='\n    <div [formGroup]="myGroup">\n       <div formGroupName="person">\n          <input formControlName="firstName">\n       </div>\n    </div>\n\n    In your class:\n\n    this.myGroup = new FormGroup({\n       person: new FormGroup({ firstName: new FormControl() })\n    });',q='\n    <form>\n       <div ngModelGroup="person">\n          <input [(ngModel)]="person.name" name="firstName">\n       </div>\n    </form>';class W{static controlParentException(){throw new Error("formControlName must be used with a parent formGroup directive.  You'll want to add a formGroup\n       directive and pass it an existing FormGroup instance (you can create one in your class).\n\n      Example:\n\n      "+z)}static ngModelGroupException(){throw new Error(`formControlName cannot be used with an ngModelGroup parent. It is only compatible with parents\n       that also have a "form" prefix: formGroupName, formArrayName, or formGroup.\n\n       Option 1:  Update the parent to be formGroupName (reactive form strategy)\n\n        ${$}\n\n        Option 2: Use ngModel instead of formControlName (template-driven strategy)\n\n        ${q}`)}static missingFormException(){throw new Error("formGroup expects a FormGroup instance. Please pass one in.\n\n       Example:\n\n       "+z)}static groupParentException(){throw new Error("formGroupName must be used with a parent formGroup directive.  You'll want to add a formGroup\n      directive and pass it an existing FormGroup instance (you can create one in your class).\n\n      Example:\n\n      "+$)}static arrayParentException(){throw new Error('formArrayName must be used with a parent formGroup directive.  You\'ll want to add a formGroup\n       directive and pass it an existing FormGroup instance (you can create one in your class).\n\n        Example:\n\n        \n    <div [formGroup]="myGroup">\n      <div formArrayName="cities">\n        <div *ngFor="let city of cityArray.controls; index as i">\n          <input [formControlName]="i">\n        </div>\n      </div>\n    </div>\n\n    In your class:\n\n    this.cityArray = new FormArray([new FormControl(\'SF\')]);\n    this.myGroup = new FormGroup({\n      cities: this.cityArray\n    });')}static disabledAttrWarning(){console.warn("\n      It looks like you're using the disabled attribute with a reactive form directive. If you set disabled to true\n      when you set up this control in your component class, the disabled attribute will actually be set in the DOM for\n      you. We recommend using this approach to avoid 'changed after checked' errors.\n\n      Example:\n      form = new FormGroup({\n        first: new FormControl({value: 'Nancy', disabled: true}, Validators.required),\n        last: new FormControl('Drew', Validators.required)\n      });\n    ")}static ngModelWarning(t){console.warn(`\n    It looks like you're using ngModel on the same form field as ${t}.\n    Support for using the ngModel input property and ngModelChange event with\n    reactive form directives has been deprecated in Angular v6 and will be removed\n    in a future version of Angular.\n\n    For more information on this, see our API docs here:\n    https://angular.io/api/forms/${"formControl"===t?"FormControlDirective":"FormControlName"}#use-with-ngmodel\n    `)}}const G={provide:h,useExisting:Object(r.U)(()=>Q),multi:!0};function K(t,e){return null==t?""+e:(e&&"object"==typeof e&&(e="Object"),`${t}: ${e}`.slice(0,50))}let Q=(()=>{class t{constructor(t,e){this._renderer=t,this._elementRef=e,this._optionMap=new Map,this._idCounter=0,this.onChange=t=>{},this.onTouched=()=>{},this._compareWith=Object.is}set compareWith(t){if("function"!=typeof t)throw new Error("compareWith must be a function, but received "+JSON.stringify(t));this._compareWith=t}writeValue(t){this.value=t;const e=this._getOptionId(t);null==e&&this._renderer.setProperty(this._elementRef.nativeElement,"selectedIndex",-1);const n=K(e,t);this._renderer.setProperty(this._elementRef.nativeElement,"value",n)}registerOnChange(t){this.onChange=e=>{this.value=this._getOptionValue(e),t(this.value)}}registerOnTouched(t){this.onTouched=t}setDisabledState(t){this._renderer.setProperty(this._elementRef.nativeElement,"disabled",t)}_registerOption(){return(this._idCounter++).toString()}_getOptionId(t){for(const e of Array.from(this._optionMap.keys()))if(this._compareWith(this._optionMap.get(e),t))return e;return null}_getOptionValue(t){const e=function(t){return t.split(":")[0]}(t);return this._optionMap.has(e)?this._optionMap.get(e):t}}return t.\u0275fac=function(e){return new(e||t)(r.Mb(r.F),r.Mb(r.m))},t.\u0275dir=r.Hb({type:t,selectors:[["select","formControlName","",3,"multiple",""],["select","formControl","",3,"multiple",""],["select","ngModel","",3,"multiple",""]],hostBindings:function(t,e){1&t&&r.dc("change",function(t){return e.onChange(t.target.value)})("blur",function(){return e.onTouched()})},inputs:{compareWith:"compareWith"},features:[r.yb([G])]}),t})(),Z=(()=>{class t{constructor(t,e,n){this._element=t,this._renderer=e,this._select=n,this._select&&(this.id=this._select._registerOption())}set ngValue(t){null!=this._select&&(this._select._optionMap.set(this.id,t),this._setElementValue(K(this.id,t)),this._select.writeValue(this._select.value))}set value(t){this._setElementValue(t),this._select&&this._select.writeValue(this._select.value)}_setElementValue(t){this._renderer.setProperty(this._element.nativeElement,"value",t)}ngOnDestroy(){this._select&&(this._select._optionMap.delete(this.id),this._select.writeValue(this._select.value))}}return t.\u0275fac=function(e){return new(e||t)(r.Mb(r.m),r.Mb(r.F),r.Mb(Q,9))},t.\u0275dir=r.Hb({type:t,selectors:[["option"]],inputs:{ngValue:"ngValue",value:"value"}}),t})();const J={provide:h,useExisting:Object(r.U)(()=>X),multi:!0};function Y(t,e){return null==t?""+e:("string"==typeof e&&(e=`'${e}'`),e&&"object"==typeof e&&(e="Object"),`${t}: ${e}`.slice(0,50))}let X=(()=>{class t{constructor(t,e){this._renderer=t,this._elementRef=e,this._optionMap=new Map,this._idCounter=0,this.onChange=t=>{},this.onTouched=()=>{},this._compareWith=Object.is}set compareWith(t){if("function"!=typeof t)throw new Error("compareWith must be a function, but received "+JSON.stringify(t));this._compareWith=t}writeValue(t){let e;if(this.value=t,Array.isArray(t)){const n=t.map(t=>this._getOptionId(t));e=(t,e)=>{t._setSelected(n.indexOf(e.toString())>-1)}}else e=(t,e)=>{t._setSelected(!1)};this._optionMap.forEach(e)}registerOnChange(t){this.onChange=e=>{const n=[];if(void 0!==e.selectedOptions){const t=e.selectedOptions;for(let e=0;e<t.length;e++){const r=t.item(e),s=this._getOptionValue(r.value);n.push(s)}}else{const t=e.options;for(let e=0;e<t.length;e++){const r=t.item(e);if(r.selected){const t=this._getOptionValue(r.value);n.push(t)}}}this.value=n,t(n)}}registerOnTouched(t){this.onTouched=t}setDisabledState(t){this._renderer.setProperty(this._elementRef.nativeElement,"disabled",t)}_registerOption(t){const e=(this._idCounter++).toString();return this._optionMap.set(e,t),e}_getOptionId(t){for(const e of Array.from(this._optionMap.keys()))if(this._compareWith(this._optionMap.get(e)._value,t))return e;return null}_getOptionValue(t){const e=function(t){return t.split(":")[0]}(t);return this._optionMap.has(e)?this._optionMap.get(e)._value:t}}return t.\u0275fac=function(e){return new(e||t)(r.Mb(r.F),r.Mb(r.m))},t.\u0275dir=r.Hb({type:t,selectors:[["select","multiple","","formControlName",""],["select","multiple","","formControl",""],["select","multiple","","ngModel",""]],hostBindings:function(t,e){1&t&&r.dc("change",function(t){return e.onChange(t.target)})("blur",function(){return e.onTouched()})},inputs:{compareWith:"compareWith"},features:[r.yb([J])]}),t})(),tt=(()=>{class t{constructor(t,e,n){this._element=t,this._renderer=e,this._select=n,this._select&&(this.id=this._select._registerOption(this))}set ngValue(t){null!=this._select&&(this._value=t,this._setElementValue(Y(this.id,t)),this._select.writeValue(this._select.value))}set value(t){this._select?(this._value=t,this._setElementValue(Y(this.id,t)),this._select.writeValue(this._select.value)):this._setElementValue(t)}_setElementValue(t){this._renderer.setProperty(this._element.nativeElement,"value",t)}_setSelected(t){this._renderer.setProperty(this._element.nativeElement,"selected",t)}ngOnDestroy(){this._select&&(this._select._optionMap.delete(this.id),this._select.writeValue(this._select.value))}}return t.\u0275fac=function(e){return new(e||t)(r.Mb(r.m),r.Mb(r.F),r.Mb(X,9))},t.\u0275dir=r.Hb({type:t,selectors:[["option"]],inputs:{ngValue:"ngValue",value:"value"}}),t})();function et(t,e){return[...e.path,t]}function nt(t,e){t||ot(e,"Cannot find control with"),e.valueAccessor||ot(e,"No value accessor for form control with"),t.validator=T.compose([t.validator,e.validator]),t.asyncValidator=T.composeAsync([t.asyncValidator,e.asyncValidator]),e.valueAccessor.writeValue(t.value),function(t,e){e.valueAccessor.registerOnChange(n=>{t._pendingValue=n,t._pendingChange=!0,t._pendingDirty=!0,"change"===t.updateOn&&rt(t,e)})}(t,e),function(t,e){t.registerOnChange((t,n)=>{e.valueAccessor.writeValue(t),n&&e.viewToModelUpdate(t)})}(t,e),function(t,e){e.valueAccessor.registerOnTouched(()=>{t._pendingTouched=!0,"blur"===t.updateOn&&t._pendingChange&&rt(t,e),"submit"!==t.updateOn&&t.markAsTouched()})}(t,e),e.valueAccessor.setDisabledState&&t.registerOnDisabledChange(t=>{e.valueAccessor.setDisabledState(t)}),e._rawValidators.forEach(e=>{e.registerOnValidatorChange&&e.registerOnValidatorChange(()=>t.updateValueAndValidity())}),e._rawAsyncValidators.forEach(e=>{e.registerOnValidatorChange&&e.registerOnValidatorChange(()=>t.updateValueAndValidity())})}function rt(t,e){t._pendingDirty&&t.markAsDirty(),t.setValue(t._pendingValue,{emitModelToViewChange:!1}),e.viewToModelUpdate(t._pendingValue),t._pendingChange=!1}function st(t,e){null==t&&ot(e,"Cannot find control with"),t.validator=T.compose([t.validator,e.validator]),t.asyncValidator=T.composeAsync([t.asyncValidator,e.asyncValidator])}function it(t){return ot(t,"There is no FormControl instance attached to form control element with")}function ot(t,e){let n;throw n=t.path.length>1?`path: '${t.path.join(" -> ")}'`:t.path[0]?`name: '${t.path}'`:"unspecified name attribute",new Error(`${e} ${n}`)}function at(t){return null!=t?T.compose(t.map(R)):null}function ct(t){return null!=t?T.composeAsync(t.map(M)):null}function lt(t,e){if(!t.hasOwnProperty("model"))return!1;const n=t.model;return!!n.isFirstChange()||!Object.is(e,n.currentValue)}const ut=[f,U,N,Q,X,H];function ht(t,e){t._syncPendingControls(),e.forEach(t=>{const e=t.control;"submit"===e.updateOn&&e._pendingChange&&(t.viewToModelUpdate(e._pendingValue),e._pendingChange=!1)})}function dt(t,e){if(!e)return null;Array.isArray(e)||ot(t,"Value accessor was not provided as an array for form control with");let n=void 0,r=void 0,s=void 0;return e.forEach(e=>{var i;e.constructor===g?n=e:(i=e,ut.some(t=>i.constructor===t)?(r&&ot(t,"More than one built-in value accessor matches form control with"),r=e):(s&&ot(t,"More than one custom value accessor matches form control with"),s=e))}),s||r||n||(ot(t,"No valid value accessor for form control with"),null)}function ft(t,e){const n=t.indexOf(e);n>-1&&t.splice(n,1)}const pt="VALID",mt="INVALID",gt="PENDING",bt="DISABLED";function yt(t){const e=vt(t)?t.validators:t;return Array.isArray(e)?at(e):e||null}function _t(t,e){const n=vt(e)?e.asyncValidators:t;return Array.isArray(n)?ct(n):n||null}function vt(t){return null!=t&&!Array.isArray(t)&&"object"==typeof t}class wt{constructor(t,e){this.validator=t,this.asyncValidator=e,this._onCollectionChange=()=>{},this.pristine=!0,this.touched=!1,this._onDisabledChange=[]}get parent(){return this._parent}get valid(){return this.status===pt}get invalid(){return this.status===mt}get pending(){return this.status==gt}get disabled(){return this.status===bt}get enabled(){return this.status!==bt}get dirty(){return!this.pristine}get untouched(){return!this.touched}get updateOn(){return this._updateOn?this._updateOn:this.parent?this.parent.updateOn:"change"}setValidators(t){this.validator=yt(t)}setAsyncValidators(t){this.asyncValidator=_t(t)}clearValidators(){this.validator=null}clearAsyncValidators(){this.asyncValidator=null}markAsTouched(t={}){this.touched=!0,this._parent&&!t.onlySelf&&this._parent.markAsTouched(t)}markAllAsTouched(){this.markAsTouched({onlySelf:!0}),this._forEachChild(t=>t.markAllAsTouched())}markAsUntouched(t={}){this.touched=!1,this._pendingTouched=!1,this._forEachChild(t=>{t.markAsUntouched({onlySelf:!0})}),this._parent&&!t.onlySelf&&this._parent._updateTouched(t)}markAsDirty(t={}){this.pristine=!1,this._parent&&!t.onlySelf&&this._parent.markAsDirty(t)}markAsPristine(t={}){this.pristine=!0,this._pendingDirty=!1,this._forEachChild(t=>{t.markAsPristine({onlySelf:!0})}),this._parent&&!t.onlySelf&&this._parent._updatePristine(t)}markAsPending(t={}){this.status=gt,!1!==t.emitEvent&&this.statusChanges.emit(this.status),this._parent&&!t.onlySelf&&this._parent.markAsPending(t)}disable(t={}){const e=this._parentMarkedDirty(t.onlySelf);this.status=bt,this.errors=null,this._forEachChild(e=>{e.disable(Object.assign(Object.assign({},t),{onlySelf:!0}))}),this._updateValue(),!1!==t.emitEvent&&(this.valueChanges.emit(this.value),this.statusChanges.emit(this.status)),this._updateAncestors(Object.assign(Object.assign({},t),{skipPristineCheck:e})),this._onDisabledChange.forEach(t=>t(!0))}enable(t={}){const e=this._parentMarkedDirty(t.onlySelf);this.status=pt,this._forEachChild(e=>{e.enable(Object.assign(Object.assign({},t),{onlySelf:!0}))}),this.updateValueAndValidity({onlySelf:!0,emitEvent:t.emitEvent}),this._updateAncestors(Object.assign(Object.assign({},t),{skipPristineCheck:e})),this._onDisabledChange.forEach(t=>t(!1))}_updateAncestors(t){this._parent&&!t.onlySelf&&(this._parent.updateValueAndValidity(t),t.skipPristineCheck||this._parent._updatePristine(),this._parent._updateTouched())}setParent(t){this._parent=t}updateValueAndValidity(t={}){this._setInitialStatus(),this._updateValue(),this.enabled&&(this._cancelExistingSubscription(),this.errors=this._runValidator(),this.status=this._calculateStatus(),this.status!==pt&&this.status!==gt||this._runAsyncValidator(t.emitEvent)),!1!==t.emitEvent&&(this.valueChanges.emit(this.value),this.statusChanges.emit(this.status)),this._parent&&!t.onlySelf&&this._parent.updateValueAndValidity(t)}_updateTreeValidity(t={emitEvent:!0}){this._forEachChild(e=>e._updateTreeValidity(t)),this.updateValueAndValidity({onlySelf:!0,emitEvent:t.emitEvent})}_setInitialStatus(){this.status=this._allControlsDisabled()?bt:pt}_runValidator(){return this.validator?this.validator(this):null}_runAsyncValidator(t){if(this.asyncValidator){this.status=gt;const e=F(this.asyncValidator(this));this._asyncValidationSubscription=e.subscribe(e=>this.setErrors(e,{emitEvent:t}))}}_cancelExistingSubscription(){this._asyncValidationSubscription&&this._asyncValidationSubscription.unsubscribe()}setErrors(t,e={}){this.errors=t,this._updateControlsErrors(!1!==e.emitEvent)}get(t){return function(t,e,n){if(null==e)return null;if(Array.isArray(e)||(e=e.split(".")),Array.isArray(e)&&0===e.length)return null;let r=t;return e.forEach(t=>{r=r instanceof Dt?r.controls.hasOwnProperty(t)?r.controls[t]:null:r instanceof Et&&r.at(t)||null}),r}(this,t)}getError(t,e){const n=e?this.get(e):this;return n&&n.errors?n.errors[t]:null}hasError(t,e){return!!this.getError(t,e)}get root(){let t=this;for(;t._parent;)t=t._parent;return t}_updateControlsErrors(t){this.status=this._calculateStatus(),t&&this.statusChanges.emit(this.status),this._parent&&this._parent._updateControlsErrors(t)}_initObservables(){this.valueChanges=new r.o,this.statusChanges=new r.o}_calculateStatus(){return this._allControlsDisabled()?bt:this.errors?mt:this._anyControlsHaveStatus(gt)?gt:this._anyControlsHaveStatus(mt)?mt:pt}_anyControlsHaveStatus(t){return this._anyControls(e=>e.status===t)}_anyControlsDirty(){return this._anyControls(t=>t.dirty)}_anyControlsTouched(){return this._anyControls(t=>t.touched)}_updatePristine(t={}){this.pristine=!this._anyControlsDirty(),this._parent&&!t.onlySelf&&this._parent._updatePristine(t)}_updateTouched(t={}){this.touched=this._anyControlsTouched(),this._parent&&!t.onlySelf&&this._parent._updateTouched(t)}_isBoxedValue(t){return"object"==typeof t&&null!==t&&2===Object.keys(t).length&&"value"in t&&"disabled"in t}_registerOnCollectionChange(t){this._onCollectionChange=t}_setUpdateStrategy(t){vt(t)&&null!=t.updateOn&&(this._updateOn=t.updateOn)}_parentMarkedDirty(t){return!t&&this._parent&&this._parent.dirty&&!this._parent._anyControlsDirty()}}class Ct extends wt{constructor(t=null,e,n){super(yt(e),_t(n,e)),this._onChange=[],this._applyFormState(t),this._setUpdateStrategy(e),this.updateValueAndValidity({onlySelf:!0,emitEvent:!1}),this._initObservables()}setValue(t,e={}){this.value=this._pendingValue=t,this._onChange.length&&!1!==e.emitModelToViewChange&&this._onChange.forEach(t=>t(this.value,!1!==e.emitViewToModelChange)),this.updateValueAndValidity(e)}patchValue(t,e={}){this.setValue(t,e)}reset(t=null,e={}){this._applyFormState(t),this.markAsPristine(e),this.markAsUntouched(e),this.setValue(this.value,e),this._pendingChange=!1}_updateValue(){}_anyControls(t){return!1}_allControlsDisabled(){return this.disabled}registerOnChange(t){this._onChange.push(t)}_clearChangeFns(){this._onChange=[],this._onDisabledChange=[],this._onCollectionChange=()=>{}}registerOnDisabledChange(t){this._onDisabledChange.push(t)}_forEachChild(t){}_syncPendingControls(){return!("submit"!==this.updateOn||(this._pendingDirty&&this.markAsDirty(),this._pendingTouched&&this.markAsTouched(),!this._pendingChange)||(this.setValue(this._pendingValue,{onlySelf:!0,emitModelToViewChange:!1}),0))}_applyFormState(t){this._isBoxedValue(t)?(this.value=this._pendingValue=t.value,t.disabled?this.disable({onlySelf:!0,emitEvent:!1}):this.enable({onlySelf:!0,emitEvent:!1})):this.value=this._pendingValue=t}}class Dt extends wt{constructor(t,e,n){super(yt(e),_t(n,e)),this.controls=t,this._initObservables(),this._setUpdateStrategy(e),this._setUpControls(),this.updateValueAndValidity({onlySelf:!0,emitEvent:!1})}registerControl(t,e){return this.controls[t]?this.controls[t]:(this.controls[t]=e,e.setParent(this),e._registerOnCollectionChange(this._onCollectionChange),e)}addControl(t,e){this.registerControl(t,e),this.updateValueAndValidity(),this._onCollectionChange()}removeControl(t){this.controls[t]&&this.controls[t]._registerOnCollectionChange(()=>{}),delete this.controls[t],this.updateValueAndValidity(),this._onCollectionChange()}setControl(t,e){this.controls[t]&&this.controls[t]._registerOnCollectionChange(()=>{}),delete this.controls[t],e&&this.registerControl(t,e),this.updateValueAndValidity(),this._onCollectionChange()}contains(t){return this.controls.hasOwnProperty(t)&&this.controls[t].enabled}setValue(t,e={}){this._checkAllValuesPresent(t),Object.keys(t).forEach(n=>{this._throwIfControlMissing(n),this.controls[n].setValue(t[n],{onlySelf:!0,emitEvent:e.emitEvent})}),this.updateValueAndValidity(e)}patchValue(t,e={}){Object.keys(t).forEach(n=>{this.controls[n]&&this.controls[n].patchValue(t[n],{onlySelf:!0,emitEvent:e.emitEvent})}),this.updateValueAndValidity(e)}reset(t={},e={}){this._forEachChild((n,r)=>{n.reset(t[r],{onlySelf:!0,emitEvent:e.emitEvent})}),this._updatePristine(e),this._updateTouched(e),this.updateValueAndValidity(e)}getRawValue(){return this._reduceChildren({},(t,e,n)=>(t[n]=e instanceof Ct?e.value:e.getRawValue(),t))}_syncPendingControls(){let t=this._reduceChildren(!1,(t,e)=>!!e._syncPendingControls()||t);return t&&this.updateValueAndValidity({onlySelf:!0}),t}_throwIfControlMissing(t){if(!Object.keys(this.controls).length)throw new Error("\n        There are no form controls registered with this group yet.  If you're using ngModel,\n        you may want to check next tick (e.g. use setTimeout).\n      ");if(!this.controls[t])throw new Error(`Cannot find form control with name: ${t}.`)}_forEachChild(t){Object.keys(this.controls).forEach(e=>t(this.controls[e],e))}_setUpControls(){this._forEachChild(t=>{t.setParent(this),t._registerOnCollectionChange(this._onCollectionChange)})}_updateValue(){this.value=this._reduceValue()}_anyControls(t){for(const e of Object.keys(this.controls)){const n=this.controls[e];if(this.contains(e)&&t(n))return!0}return!1}_reduceValue(){return this._reduceChildren({},(t,e,n)=>((e.enabled||this.disabled)&&(t[n]=e.value),t))}_reduceChildren(t,e){let n=t;return this._forEachChild((t,r)=>{n=e(n,t,r)}),n}_allControlsDisabled(){for(const t of Object.keys(this.controls))if(this.controls[t].enabled)return!1;return Object.keys(this.controls).length>0||this.disabled}_checkAllValuesPresent(t){this._forEachChild((e,n)=>{if(void 0===t[n])throw new Error(`Must supply a value for form control with name: '${n}'.`)})}}class Et extends wt{constructor(t,e,n){super(yt(e),_t(n,e)),this.controls=t,this._initObservables(),this._setUpdateStrategy(e),this._setUpControls(),this.updateValueAndValidity({onlySelf:!0,emitEvent:!1})}at(t){return this.controls[t]}push(t){this.controls.push(t),this._registerControl(t),this.updateValueAndValidity(),this._onCollectionChange()}insert(t,e){this.controls.splice(t,0,e),this._registerControl(e),this.updateValueAndValidity()}removeAt(t){this.controls[t]&&this.controls[t]._registerOnCollectionChange(()=>{}),this.controls.splice(t,1),this.updateValueAndValidity()}setControl(t,e){this.controls[t]&&this.controls[t]._registerOnCollectionChange(()=>{}),this.controls.splice(t,1),e&&(this.controls.splice(t,0,e),this._registerControl(e)),this.updateValueAndValidity(),this._onCollectionChange()}get length(){return this.controls.length}setValue(t,e={}){this._checkAllValuesPresent(t),t.forEach((t,n)=>{this._throwIfControlMissing(n),this.at(n).setValue(t,{onlySelf:!0,emitEvent:e.emitEvent})}),this.updateValueAndValidity(e)}patchValue(t,e={}){t.forEach((t,n)=>{this.at(n)&&this.at(n).patchValue(t,{onlySelf:!0,emitEvent:e.emitEvent})}),this.updateValueAndValidity(e)}reset(t=[],e={}){this._forEachChild((n,r)=>{n.reset(t[r],{onlySelf:!0,emitEvent:e.emitEvent})}),this._updatePristine(e),this._updateTouched(e),this.updateValueAndValidity(e)}getRawValue(){return this.controls.map(t=>t instanceof Ct?t.value:t.getRawValue())}clear(){this.controls.length<1||(this._forEachChild(t=>t._registerOnCollectionChange(()=>{})),this.controls.splice(0),this.updateValueAndValidity())}_syncPendingControls(){let t=this.controls.reduce((t,e)=>!!e._syncPendingControls()||t,!1);return t&&this.updateValueAndValidity({onlySelf:!0}),t}_throwIfControlMissing(t){if(!this.controls.length)throw new Error("\n        There are no form controls registered with this array yet.  If you're using ngModel,\n        you may want to check next tick (e.g. use setTimeout).\n      ");if(!this.at(t))throw new Error("Cannot find form control at index "+t)}_forEachChild(t){this.controls.forEach((e,n)=>{t(e,n)})}_updateValue(){this.value=this.controls.filter(t=>t.enabled||this.disabled).map(t=>t.value)}_anyControls(t){return this.controls.some(e=>e.enabled&&t(e))}_setUpControls(){this._forEachChild(t=>this._registerControl(t))}_checkAllValuesPresent(t){this._forEachChild((e,n)=>{if(void 0===t[n])throw new Error(`Must supply a value for form control at index: ${n}.`)})}_allControlsDisabled(){for(const t of this.controls)if(t.enabled)return!1;return this.controls.length>0||this.disabled}_registerControl(t){t.setParent(this),t._registerOnCollectionChange(this._onCollectionChange)}}const St={provide:y,useExisting:Object(r.U)(()=>xt)},Ot=(()=>Promise.resolve(null))();let xt=(()=>{class t extends y{constructor(t,e){super(),this.submitted=!1,this._directives=[],this.ngSubmit=new r.o,this.form=new Dt({},at(t),ct(e))}ngAfterViewInit(){this._setUpdateStrategy()}get formDirective(){return this}get control(){return this.form}get path(){return[]}get controls(){return this.form.controls}addControl(t){Ot.then(()=>{const e=this._findContainer(t.path);t.control=e.registerControl(t.name,t.control),nt(t.control,t),t.control.updateValueAndValidity({emitEvent:!1}),this._directives.push(t)})}getControl(t){return this.form.get(t.path)}removeControl(t){Ot.then(()=>{const e=this._findContainer(t.path);e&&e.removeControl(t.name),ft(this._directives,t)})}addFormGroup(t){Ot.then(()=>{const e=this._findContainer(t.path),n=new Dt({});st(n,t),e.registerControl(t.name,n),n.updateValueAndValidity({emitEvent:!1})})}removeFormGroup(t){Ot.then(()=>{const e=this._findContainer(t.path);e&&e.removeControl(t.name)})}getFormGroup(t){return this.form.get(t.path)}updateModel(t,e){Ot.then(()=>{this.form.get(t.path).setValue(e)})}setValue(t){this.control.setValue(t)}onSubmit(t){return this.submitted=!0,ht(this.form,this._directives),this.ngSubmit.emit(t),!1}onReset(){this.resetForm()}resetForm(t){this.form.reset(t),this.submitted=!1}_setUpdateStrategy(){this.options&&null!=this.options.updateOn&&(this.form._updateOn=this.options.updateOn)}_findContainer(t){return t.pop(),t.length?this.form.get(t):this.form}}return t.\u0275fac=function(e){return new(e||t)(r.Mb(x,10),r.Mb(k,10))},t.\u0275dir=r.Hb({type:t,selectors:[["form",3,"ngNoForm","",3,"formGroup",""],["ng-form"],["","ngForm",""]],hostBindings:function(t,e){1&t&&r.dc("submit",function(t){return e.onSubmit(t)})("reset",function(){return e.onReset()})},inputs:{options:["ngFormOptions","options"]},outputs:{ngSubmit:"ngSubmit"},exportAs:["ngForm"],features:[r.yb([St]),r.wb]}),t})(),kt=(()=>{class t extends y{ngOnInit(){this._checkParentType(),this.formDirective.addFormGroup(this)}ngOnDestroy(){this.formDirective&&this.formDirective.removeFormGroup(this)}get control(){return this.formDirective.getFormGroup(this)}get path(){return et(null==this.name?this.name:this.name.toString(),this._parent)}get formDirective(){return this._parent?this._parent.formDirective:null}get validator(){return at(this._validators)}get asyncValidator(){return ct(this._asyncValidators)}_checkParentType(){}}return t.\u0275fac=function(e){return At(e||t)},t.\u0275dir=r.Hb({type:t,features:[r.wb]}),t})();const At=r.Ub(kt);class Tt{static modelParentException(){throw new Error(`\n      ngModel cannot be used to register form controls with a parent formGroup directive.  Try using\n      formGroup's partner directive "formControlName" instead.  Example:\n\n      ${z}\n\n      Or, if you'd like to avoid registering this form control, indicate that it's standalone in ngModelOptions:\n\n      Example:\n\n      \n    <div [formGroup]="myGroup">\n       <input formControlName="firstName">\n       <input [(ngModel)]="showMoreControls" [ngModelOptions]="{standalone: true}">\n    </div>\n  `)}static formGroupNameException(){throw new Error(`\n      ngModel cannot be used to register form controls with a parent formGroupName or formArrayName directive.\n\n      Option 1: Use formControlName instead of ngModel (reactive strategy):\n\n      ${$}\n\n      Option 2:  Update ngModel's parent be ngModelGroup (template-driven strategy):\n\n      ${q}`)}static missingNameException(){throw new Error('If ngModel is used within a form tag, either the name attribute must be set or the form\n      control must be defined as \'standalone\' in ngModelOptions.\n\n      Example 1: <input [(ngModel)]="person.firstName" name="first">\n      Example 2: <input [(ngModel)]="person.firstName" [ngModelOptions]="{standalone: true}">')}static modelGroupParentException(){throw new Error(`\n      ngModelGroup cannot be used with a parent formGroup directive.\n\n      Option 1: Use formGroupName instead of ngModelGroup (reactive strategy):\n\n      ${$}\n\n      Option 2:  Use a regular form tag instead of the formGroup directive (template-driven strategy):\n\n      ${q}`)}}const jt={provide:y,useExisting:Object(r.U)(()=>Ft)};let Ft=(()=>{class t extends kt{constructor(t,e,n){super(),this._parent=t,this._validators=e,this._asyncValidators=n}_checkParentType(){this._parent instanceof t||this._parent instanceof xt||Tt.modelGroupParentException()}}return t.\u0275fac=function(e){return new(e||t)(r.Mb(y,5),r.Mb(x,10),r.Mb(k,10))},t.\u0275dir=r.Hb({type:t,selectors:[["","ngModelGroup",""]],inputs:{name:["ngModelGroup","name"]},exportAs:["ngModelGroup"],features:[r.yb([jt]),r.wb]}),t})();const It={provide:w,useExisting:Object(r.U)(()=>Mt)},Rt=(()=>Promise.resolve(null))();let Mt=(()=>{class t extends w{constructor(t,e,n,s){super(),this.control=new Ct,this._registered=!1,this.update=new r.o,this._parent=t,this._rawValidators=e||[],this._rawAsyncValidators=n||[],this.valueAccessor=dt(this,s)}ngOnChanges(t){this._checkForErrors(),this._registered||this._setUpControl(),"isDisabled"in t&&this._updateDisabled(t),lt(t,this.viewModel)&&(this._updateValue(this.model),this.viewModel=this.model)}ngOnDestroy(){this.formDirective&&this.formDirective.removeControl(this)}get path(){return this._parent?et(this.name,this._parent):[this.name]}get formDirective(){return this._parent?this._parent.formDirective:null}get validator(){return at(this._rawValidators)}get asyncValidator(){return ct(this._rawAsyncValidators)}viewToModelUpdate(t){this.viewModel=t,this.update.emit(t)}_setUpControl(){this._setUpdateStrategy(),this._isStandalone()?this._setUpStandalone():this.formDirective.addControl(this),this._registered=!0}_setUpdateStrategy(){this.options&&null!=this.options.updateOn&&(this.control._updateOn=this.options.updateOn)}_isStandalone(){return!this._parent||!(!this.options||!this.options.standalone)}_setUpStandalone(){nt(this.control,this),this.control.updateValueAndValidity({emitEvent:!1})}_checkForErrors(){this._isStandalone()||this._checkParentType(),this._checkName()}_checkParentType(){!(this._parent instanceof Ft)&&this._parent instanceof kt?Tt.formGroupNameException():this._parent instanceof Ft||this._parent instanceof xt||Tt.modelParentException()}_checkName(){this.options&&this.options.name&&(this.name=this.options.name),this._isStandalone()||this.name||Tt.missingNameException()}_updateValue(t){Rt.then(()=>{this.control.setValue(t,{emitViewToModelChange:!1})})}_updateDisabled(t){const e=t.isDisabled.currentValue,n=""===e||e&&"false"!==e;Rt.then(()=>{n&&!this.control.disabled?this.control.disable():!n&&this.control.disabled&&this.control.enable()})}}return t.\u0275fac=function(e){return new(e||t)(r.Mb(y,9),r.Mb(x,10),r.Mb(k,10),r.Mb(h,10))},t.\u0275dir=r.Hb({type:t,selectors:[["","ngModel","",3,"formControlName","",3,"formControl",""]],inputs:{name:"name",isDisabled:["disabled","isDisabled"],model:["ngModel","model"],options:["ngModelOptions","options"]},outputs:{update:"ngModelChange"},exportAs:["ngModel"],features:[r.yb([It]),r.wb,r.xb]}),t})(),Pt=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275dir=r.Hb({type:t,selectors:[["form",3,"ngNoForm","",3,"ngNativeValidate",""]],hostAttrs:["novalidate",""]}),t})();const Nt=new r.s("NgModelWithFormControlWarning"),Vt={provide:y,useExisting:Object(r.U)(()=>Bt)};let Bt=(()=>{class t extends y{constructor(t,e){super(),this._validators=t,this._asyncValidators=e,this.submitted=!1,this.directives=[],this.form=null,this.ngSubmit=new r.o}ngOnChanges(t){this._checkFormPresent(),t.hasOwnProperty("form")&&(this._updateValidators(),this._updateDomValue(),this._updateRegistrations())}get formDirective(){return this}get control(){return this.form}get path(){return[]}addControl(t){const e=this.form.get(t.path);return nt(e,t),e.updateValueAndValidity({emitEvent:!1}),this.directives.push(t),e}getControl(t){return this.form.get(t.path)}removeControl(t){ft(this.directives,t)}addFormGroup(t){const e=this.form.get(t.path);st(e,t),e.updateValueAndValidity({emitEvent:!1})}removeFormGroup(t){}getFormGroup(t){return this.form.get(t.path)}addFormArray(t){const e=this.form.get(t.path);st(e,t),e.updateValueAndValidity({emitEvent:!1})}removeFormArray(t){}getFormArray(t){return this.form.get(t.path)}updateModel(t,e){this.form.get(t.path).setValue(e)}onSubmit(t){return this.submitted=!0,ht(this.form,this.directives),this.ngSubmit.emit(t),!1}onReset(){this.resetForm()}resetForm(t){this.form.reset(t),this.submitted=!1}_updateDomValue(){this.directives.forEach(t=>{const e=this.form.get(t.path);t.control!==e&&(function(t,e){e.valueAccessor.registerOnChange(()=>it(e)),e.valueAccessor.registerOnTouched(()=>it(e)),e._rawValidators.forEach(t=>{t.registerOnValidatorChange&&t.registerOnValidatorChange(null)}),e._rawAsyncValidators.forEach(t=>{t.registerOnValidatorChange&&t.registerOnValidatorChange(null)}),t&&t._clearChangeFns()}(t.control,t),e&&nt(e,t),t.control=e)}),this.form._updateTreeValidity({emitEvent:!1})}_updateRegistrations(){this.form._registerOnCollectionChange(()=>this._updateDomValue()),this._oldForm&&this._oldForm._registerOnCollectionChange(()=>{}),this._oldForm=this.form}_updateValidators(){const t=at(this._validators);this.form.validator=T.compose([this.form.validator,t]);const e=ct(this._asyncValidators);this.form.asyncValidator=T.composeAsync([this.form.asyncValidator,e])}_checkFormPresent(){this.form||W.missingFormException()}}return t.\u0275fac=function(e){return new(e||t)(r.Mb(x,10),r.Mb(k,10))},t.\u0275dir=r.Hb({type:t,selectors:[["","formGroup",""]],hostBindings:function(t,e){1&t&&r.dc("submit",function(t){return e.onSubmit(t)})("reset",function(){return e.onReset()})},inputs:{form:["formGroup","form"]},outputs:{ngSubmit:"ngSubmit"},exportAs:["ngForm"],features:[r.yb([Vt]),r.wb,r.xb]}),t})();const Ht={provide:y,useExisting:Object(r.U)(()=>Lt)};let Lt=(()=>{class t extends kt{constructor(t,e,n){super(),this._parent=t,this._validators=e,this._asyncValidators=n}_checkParentType(){$t(this._parent)&&W.groupParentException()}}return t.\u0275fac=function(e){return new(e||t)(r.Mb(y,13),r.Mb(x,10),r.Mb(k,10))},t.\u0275dir=r.Hb({type:t,selectors:[["","formGroupName",""]],inputs:{name:["formGroupName","name"]},features:[r.yb([Ht]),r.wb]}),t})();const Ut={provide:y,useExisting:Object(r.U)(()=>zt)};let zt=(()=>{class t extends y{constructor(t,e,n){super(),this._parent=t,this._validators=e,this._asyncValidators=n}ngOnInit(){this._checkParentType(),this.formDirective.addFormArray(this)}ngOnDestroy(){this.formDirective&&this.formDirective.removeFormArray(this)}get control(){return this.formDirective.getFormArray(this)}get formDirective(){return this._parent?this._parent.formDirective:null}get path(){return et(null==this.name?this.name:this.name.toString(),this._parent)}get validator(){return at(this._validators)}get asyncValidator(){return ct(this._asyncValidators)}_checkParentType(){$t(this._parent)&&W.arrayParentException()}}return t.\u0275fac=function(e){return new(e||t)(r.Mb(y,13),r.Mb(x,10),r.Mb(k,10))},t.\u0275dir=r.Hb({type:t,selectors:[["","formArrayName",""]],inputs:{name:["formArrayName","name"]},features:[r.yb([Ut]),r.wb]}),t})();function $t(t){return!(t instanceof Lt||t instanceof Bt||t instanceof zt)}const qt={provide:w,useExisting:Object(r.U)(()=>Wt)};let Wt=(()=>{class t extends w{constructor(t,e,n,s,i){super(),this._ngModelWarningConfig=i,this._added=!1,this.update=new r.o,this._ngModelWarningSent=!1,this._parent=t,this._rawValidators=e||[],this._rawAsyncValidators=n||[],this.valueAccessor=dt(this,s)}set isDisabled(t){W.disabledAttrWarning()}ngOnChanges(e){var n,s;this._added||this._setUpControl(),lt(e,this.viewModel)&&("formControlName",n=t,this,s=this._ngModelWarningConfig,Object(r.V)()&&"never"!==s&&((null!==s&&"once"!==s||n._ngModelWarningSentOnce)&&("always"!==s||this._ngModelWarningSent)||(W.ngModelWarning("formControlName"),n._ngModelWarningSentOnce=!0,this._ngModelWarningSent=!0)),this.viewModel=this.model,this.formDirective.updateModel(this,this.model))}ngOnDestroy(){this.formDirective&&this.formDirective.removeControl(this)}viewToModelUpdate(t){this.viewModel=t,this.update.emit(t)}get path(){return et(null==this.name?this.name:this.name.toString(),this._parent)}get formDirective(){return this._parent?this._parent.formDirective:null}get validator(){return at(this._rawValidators)}get asyncValidator(){return ct(this._rawAsyncValidators)}_checkParentType(){!(this._parent instanceof Lt)&&this._parent instanceof kt?W.ngModelGroupException():this._parent instanceof Lt||this._parent instanceof Bt||this._parent instanceof zt||W.controlParentException()}_setUpControl(){this._checkParentType(),this.control=this.formDirective.addControl(this),this.control.disabled&&this.valueAccessor.setDisabledState&&this.valueAccessor.setDisabledState(!0),this._added=!0}}return t.\u0275fac=function(e){return new(e||t)(r.Mb(y,13),r.Mb(x,10),r.Mb(k,10),r.Mb(h,10),r.Mb(Nt,8))},t.\u0275dir=r.Hb({type:t,selectors:[["","formControlName",""]],inputs:{isDisabled:["disabled","isDisabled"],name:["formControlName","name"],model:["ngModel","model"]},outputs:{update:"ngModelChange"},features:[r.yb([qt]),r.wb,r.xb]}),t._ngModelWarningSentOnce=!1,t})();const Gt={provide:x,useExisting:Object(r.U)(()=>Kt),multi:!0};let Kt=(()=>{class t{get required(){return this._required}set required(t){this._required=null!=t&&!1!==t&&""+t!="false",this._onChange&&this._onChange()}validate(t){return this.required?T.required(t):null}registerOnValidatorChange(t){this._onChange=t}}return t.\u0275fac=function(e){return new(e||t)},t.\u0275dir=r.Hb({type:t,selectors:[["","required","","formControlName","",3,"type","checkbox"],["","required","","formControl","",3,"type","checkbox"],["","required","","ngModel","",3,"type","checkbox"]],hostVars:1,hostBindings:function(t,e){2&t&&r.Ab("required",e.required?"":null)},inputs:{required:"required"},features:[r.yb([Gt])]}),t})();const Qt={provide:x,useExisting:Object(r.U)(()=>Zt),multi:!0};let Zt=(()=>{class t{ngOnChanges(t){"maxlength"in t&&(this._createValidator(),this._onChange&&this._onChange())}validate(t){return null!=this.maxlength?this._validator(t):null}registerOnValidatorChange(t){this._onChange=t}_createValidator(){this._validator=T.maxLength("number"==typeof this.maxlength?this.maxlength:parseInt(this.maxlength,10))}}return t.\u0275fac=function(e){return new(e||t)},t.\u0275dir=r.Hb({type:t,selectors:[["","maxlength","","formControlName",""],["","maxlength","","formControl",""],["","maxlength","","ngModel",""]],hostVars:1,hostBindings:function(t,e){2&t&&r.Ab("maxlength",e.maxlength?e.maxlength:null)},inputs:{maxlength:"maxlength"},features:[r.yb([Qt]),r.xb]}),t})(),Jt=(()=>{class t{}return t.\u0275mod=r.Kb({type:t}),t.\u0275inj=r.Jb({factory:function(e){return new(e||t)}}),t})(),Yt=(()=>{class t{group(t,e=null){const n=this._reduceControls(t);let r=null,s=null,i=void 0;return null!=e&&(function(t){return void 0!==t.asyncValidators||void 0!==t.validators||void 0!==t.updateOn}(e)?(r=null!=e.validators?e.validators:null,s=null!=e.asyncValidators?e.asyncValidators:null,i=null!=e.updateOn?e.updateOn:void 0):(r=null!=e.validator?e.validator:null,s=null!=e.asyncValidator?e.asyncValidator:null)),new Dt(n,{asyncValidators:s,updateOn:i,validators:r})}control(t,e,n){return new Ct(t,e,n)}array(t,e,n){const r=t.map(t=>this._createControl(t));return new Et(r,e,n)}_reduceControls(t){const e={};return Object.keys(t).forEach(n=>{e[n]=this._createControl(t[n])}),e}_createControl(t){return t instanceof Ct||t instanceof Dt||t instanceof Et?t:Array.isArray(t)?this.control(t[0],t.length>1?t[1]:null,t.length>2?t[2]:null):this.control(t)}}return t.\u0275fac=function(e){return new(e||t)},t.\u0275prov=r.Ib({token:t,factory:t.\u0275fac}),t})(),Xt=(()=>{class t{}return t.\u0275mod=r.Kb({type:t}),t.\u0275inj=r.Jb({factory:function(e){return new(e||t)},providers:[B],imports:[Jt]}),t})(),te=(()=>{class t{static withConfig(e){return{ngModule:t,providers:[{provide:Nt,useValue:e.warnOnNgModelWithFormControl}]}}}return t.\u0275mod=r.Kb({type:t}),t.\u0275inj=r.Jb({factory:function(e){return new(e||t)},providers:[Yt,B],imports:[Jt]}),t})()},"4I5i":function(t,e,n){"use strict";n.d(e,"a",function(){return r});const r=(()=>{function t(){return Error.call(this),this.message="argument out of range",this.name="ArgumentOutOfRangeError",this}return t.prototype=Object.create(Error.prototype),t})()},"5+tZ":function(t,e,n){"use strict";n.d(e,"a",function(){return c});var r=n("ZUHj"),s=n("l7GE"),i=n("51Dv"),o=n("lJxs"),a=n("Cfvw");function c(t,e,n=Number.POSITIVE_INFINITY){return"function"==typeof e?r=>r.pipe(c((n,r)=>Object(a.a)(t(n,r)).pipe(Object(o.a)((t,s)=>e(n,t,r,s))),n)):("number"==typeof e&&(n=e),e=>e.lift(new l(t,n)))}class l{constructor(t,e=Number.POSITIVE_INFINITY){this.project=t,this.concurrent=e}call(t,e){return e.subscribe(new u(t,this.project,this.concurrent))}}class u extends s.a{constructor(t,e,n=Number.POSITIVE_INFINITY){super(t),this.project=e,this.concurrent=n,this.hasCompleted=!1,this.buffer=[],this.active=0,this.index=0}_next(t){this.active<this.concurrent?this._tryNext(t):this.buffer.push(t)}_tryNext(t){let e;const n=this.index++;try{e=this.project(t,n)}catch(r){return void this.destination.error(r)}this.active++,this._innerSub(e,t,n)}_innerSub(t,e,n){const s=new i.a(this,e,n),o=this.destination;o.add(s);const a=Object(r.a)(this,t,void 0,void 0,s);a!==s&&o.add(a)}_complete(){this.hasCompleted=!0,0===this.active&&0===this.buffer.length&&this.destination.complete(),this.unsubscribe()}notifyNext(t,e,n,r,s){this.destination.next(e)}notifyComplete(t){const e=this.buffer;this.remove(t),this.active--,e.length>0?this._next(e.shift()):0===this.active&&this.hasCompleted&&this.destination.complete()}}},"51Dv":function(t,e,n){"use strict";n.d(e,"a",function(){return s});var r=n("7o/Q");class s extends r.a{constructor(t,e,n){super(),this.parent=t,this.outerValue=e,this.outerIndex=n,this.index=0}_next(t){this.parent.notifyNext(this.outerValue,t,this.outerIndex,this.index++,this)}_error(t){this.parent.notifyError(t,this),this.unsubscribe()}_complete(){this.parent.notifyComplete(this),this.unsubscribe()}}},"5eHb":function(t,e,n){"use strict";n.d(e,"a",function(){return R}),n.d(e,"b",function(){return j});var r=n("fXoL"),s=n("R0Ic"),i=n("XNiG"),o=n("jhN1"),a=n("ofXK");const c=["toast-component",""];function l(t,e){if(1&t){const t=r.Tb();r.Sb(0,"button",5),r.dc("click",function(){return r.wc(t),r.fc().remove()}),r.Sb(1,"span",6),r.Fc(2,"\xd7"),r.Rb(),r.Rb()}}function u(t,e){if(1&t&&(r.Qb(0),r.Fc(1),r.Pb()),2&t){const t=r.fc(2);r.zb(1),r.Hc("[",t.duplicatesCount+1,"]")}}function h(t,e){if(1&t&&(r.Sb(0,"div"),r.Fc(1),r.Dc(2,u,2,1,"ng-container",4),r.Rb()),2&t){const t=r.fc();r.Bb(t.options.titleClass),r.Ab("aria-label",t.title),r.zb(1),r.Hc(" ",t.title," "),r.zb(1),r.mc("ngIf",t.duplicatesCount)}}function d(t,e){if(1&t&&r.Nb(0,"div",7),2&t){const t=r.fc();r.Bb(t.options.messageClass),r.mc("innerHTML",t.message,r.xc)}}function f(t,e){if(1&t&&(r.Sb(0,"div",8),r.Fc(1),r.Rb()),2&t){const t=r.fc();r.Bb(t.options.messageClass),r.Ab("aria-label",t.message),r.zb(1),r.Hc(" ",t.message," ")}}function p(t,e){if(1&t&&(r.Sb(0,"div"),r.Nb(1,"div",9),r.Rb()),2&t){const t=r.fc();r.zb(1),r.Cc("width",t.width+"%")}}function m(t,e){if(1&t){const t=r.Tb();r.Sb(0,"button",5),r.dc("click",function(){return r.wc(t),r.fc().remove()}),r.Sb(1,"span",6),r.Fc(2,"\xd7"),r.Rb(),r.Rb()}}function g(t,e){if(1&t&&(r.Qb(0),r.Fc(1),r.Pb()),2&t){const t=r.fc(2);r.zb(1),r.Hc("[",t.duplicatesCount+1,"]")}}function b(t,e){if(1&t&&(r.Sb(0,"div"),r.Fc(1),r.Dc(2,g,2,1,"ng-container",4),r.Rb()),2&t){const t=r.fc();r.Bb(t.options.titleClass),r.Ab("aria-label",t.title),r.zb(1),r.Hc(" ",t.title," "),r.zb(1),r.mc("ngIf",t.duplicatesCount)}}function y(t,e){if(1&t&&r.Nb(0,"div",7),2&t){const t=r.fc();r.Bb(t.options.messageClass),r.mc("innerHTML",t.message,r.xc)}}function _(t,e){if(1&t&&(r.Sb(0,"div",8),r.Fc(1),r.Rb()),2&t){const t=r.fc();r.Bb(t.options.messageClass),r.Ab("aria-label",t.message),r.zb(1),r.Hc(" ",t.message," ")}}function v(t,e){if(1&t&&(r.Sb(0,"div"),r.Nb(1,"div",9),r.Rb()),2&t){const t=r.fc();r.zb(1),r.Cc("width",t.width+"%")}}class w{constructor(t,e,n,r,s,o){this.toastId=t,this.config=e,this.message=n,this.title=r,this.toastType=s,this.toastRef=o,this._onTap=new i.a,this._onAction=new i.a,this.toastRef.afterClosed().subscribe(()=>{this._onAction.complete(),this._onTap.complete()})}triggerTap(){this._onTap.next(),this.config.tapToDismiss&&this._onTap.complete()}onTap(){return this._onTap.asObservable()}triggerAction(t){this._onAction.next(t)}onAction(){return this._onAction.asObservable()}}const C={maxOpened:0,autoDismiss:!1,newestOnTop:!0,preventDuplicates:!1,countDuplicates:!1,resetTimeoutOnDuplicate:!1,iconClasses:{error:"toast-error",info:"toast-info",success:"toast-success",warning:"toast-warning"},closeButton:!1,disableTimeOut:!1,timeOut:5e3,extendedTimeOut:1e3,enableHtml:!1,progressBar:!1,toastClass:"ngx-toastr",positionClass:"toast-top-right",titleClass:"toast-title",messageClass:"toast-message",easing:"ease-in",easeTime:300,tapToDismiss:!0,onActivateTick:!1,progressAnimation:"decreasing"},D=new r.s("ToastConfig");class E{constructor(t,e){this.component=t,this.injector=e}attach(t,e){return this._attachedHost=t,t.attach(this,e)}detach(){const t=this._attachedHost;if(t)return this._attachedHost=void 0,t.detach()}get isAttached(){return null!=this._attachedHost}setAttachedHost(t){this._attachedHost=t}}class S extends class{attach(t,e){return this._attachedPortal=t,this.attachComponentPortal(t,e)}detach(){this._attachedPortal&&this._attachedPortal.setAttachedHost(),this._attachedPortal=void 0,this._disposeFn&&(this._disposeFn(),this._disposeFn=void 0)}setDisposeFn(t){this._disposeFn=t}}{constructor(t,e,n){super(),this._hostDomElement=t,this._componentFactoryResolver=e,this._appRef=n}attachComponentPortal(t,e){const n=this._componentFactoryResolver.resolveComponentFactory(t.component);let r;return r=n.create(t.injector),this._appRef.attachView(r.hostView),this.setDisposeFn(()=>{this._appRef.detachView(r.hostView),r.destroy()}),e?this._hostDomElement.insertBefore(this._getComponentRootNode(r),this._hostDomElement.firstChild):this._hostDomElement.appendChild(this._getComponentRootNode(r)),r}_getComponentRootNode(t){return t.hostView.rootNodes[0]}}let O=(()=>{class t{constructor(t){this._document=t}ngOnDestroy(){this._containerElement&&this._containerElement.parentNode&&this._containerElement.parentNode.removeChild(this._containerElement)}getContainerElement(){return this._containerElement||this._createContainer(),this._containerElement}_createContainer(){const t=this._document.createElement("div");t.classList.add("overlay-container"),this._document.body.appendChild(t),this._containerElement=t}}return t.\u0275fac=function(e){return new(e||t)(r.ac(a.c))},t.\u0275prov=Object(r.Ib)({factory:function(){return new t(Object(r.ac)(a.c))},token:t,providedIn:"root"}),t})();class x{constructor(t){this._portalHost=t}attach(t,e=!0){return this._portalHost.attach(t,e)}detach(){return this._portalHost.detach()}}let k=(()=>{class t{constructor(t,e,n,r){this._overlayContainer=t,this._componentFactoryResolver=e,this._appRef=n,this._document=r,this._paneElements=new Map}create(t,e){return this._createOverlayRef(this.getPaneElement(t,e))}getPaneElement(t="",e){return this._paneElements.get(e)||this._paneElements.set(e,{}),this._paneElements.get(e)[t]||(this._paneElements.get(e)[t]=this._createPaneElement(t,e)),this._paneElements.get(e)[t]}_createPaneElement(t,e){const n=this._document.createElement("div");return n.id="toast-container",n.classList.add(t),n.classList.add("toast-container"),e?e.getContainerElement().appendChild(n):this._overlayContainer.getContainerElement().appendChild(n),n}_createPortalHost(t){return new S(t,this._componentFactoryResolver,this._appRef)}_createOverlayRef(t){return new x(this._createPortalHost(t))}}return t.\u0275fac=function(e){return new(e||t)(r.ac(O),r.ac(r.k),r.ac(r.g),r.ac(a.c))},t.\u0275prov=Object(r.Ib)({factory:function(){return new t(Object(r.ac)(O),Object(r.ac)(r.k),Object(r.ac)(r.g),Object(r.ac)(a.c))},token:t,providedIn:"root"}),t})();class A{constructor(t){this._overlayRef=t,this.duplicatesCount=0,this._afterClosed=new i.a,this._activate=new i.a,this._manualClose=new i.a,this._resetTimeout=new i.a,this._countDuplicate=new i.a}manualClose(){this._manualClose.next(),this._manualClose.complete()}manualClosed(){return this._manualClose.asObservable()}timeoutReset(){return this._resetTimeout.asObservable()}countDuplicate(){return this._countDuplicate.asObservable()}close(){this._overlayRef.detach(),this._afterClosed.next(),this._manualClose.next(),this._afterClosed.complete(),this._manualClose.complete(),this._activate.complete(),this._resetTimeout.complete(),this._countDuplicate.complete()}afterClosed(){return this._afterClosed.asObservable()}isInactive(){return this._activate.isStopped}activate(){this._activate.next(),this._activate.complete()}afterActivate(){return this._activate.asObservable()}onDuplicate(t,e){t&&this._resetTimeout.next(),e&&this._countDuplicate.next(++this.duplicatesCount)}}class T{constructor(t,e){this._toastPackage=t,this._parentInjector=e}get(t,e,n){return t===w?this._toastPackage:this._parentInjector.get(t,e,n)}}let j=(()=>{class t{constructor(t,e,n,r,s){this.overlay=e,this._injector=n,this.sanitizer=r,this.ngZone=s,this.currentlyActive=0,this.toasts=[],this.index=0,this.toastrConfig=Object.assign(Object.assign({},t.default),t.config),t.config.iconClasses&&(this.toastrConfig.iconClasses=Object.assign(Object.assign({},t.default.iconClasses),t.config.iconClasses))}show(t,e,n={},r=""){return this._preBuildNotification(r,t,e,this.applyConfig(n))}success(t,e,n={}){return this._preBuildNotification(this.toastrConfig.iconClasses.success||"",t,e,this.applyConfig(n))}error(t,e,n={}){return this._preBuildNotification(this.toastrConfig.iconClasses.error||"",t,e,this.applyConfig(n))}info(t,e,n={}){return this._preBuildNotification(this.toastrConfig.iconClasses.info||"",t,e,this.applyConfig(n))}warning(t,e,n={}){return this._preBuildNotification(this.toastrConfig.iconClasses.warning||"",t,e,this.applyConfig(n))}clear(t){for(const e of this.toasts)if(void 0!==t){if(e.toastId===t)return void e.toastRef.manualClose()}else e.toastRef.manualClose()}remove(t){const e=this._findToast(t);if(!e)return!1;if(e.activeToast.toastRef.close(),this.toasts.splice(e.index,1),this.currentlyActive=this.currentlyActive-1,!this.toastrConfig.maxOpened||!this.toasts.length)return!1;if(this.currentlyActive<this.toastrConfig.maxOpened&&this.toasts[this.currentlyActive]){const t=this.toasts[this.currentlyActive].toastRef;t.isInactive()||(this.currentlyActive=this.currentlyActive+1,t.activate())}return!0}findDuplicate(t="",e=!1,n=!1){for(const r of this.toasts)if(r.message===t)return r.toastRef.onDuplicate(e,n),r;return null}applyConfig(t={}){return Object.assign(Object.assign({},this.toastrConfig),t)}_findToast(t){for(let e=0;e<this.toasts.length;e++)if(this.toasts[e].toastId===t)return{index:e,activeToast:this.toasts[e]};return null}_preBuildNotification(t,e,n,r){return r.onActivateTick?this.ngZone.run(()=>this._buildNotification(t,e,n,r)):this._buildNotification(t,e,n,r)}_buildNotification(t,e,n,s){if(!s.toastComponent)throw new Error("toastComponent required");const i=this.findDuplicate(e,this.toastrConfig.resetTimeoutOnDuplicate&&s.timeOut>0,this.toastrConfig.countDuplicates);if(e&&this.toastrConfig.preventDuplicates&&null!==i)return i;this.previousToastMessage=e;let o=!1;this.toastrConfig.maxOpened&&this.currentlyActive>=this.toastrConfig.maxOpened&&(o=!0,this.toastrConfig.autoDismiss&&this.clear(this.toasts[0].toastId));const a=this.overlay.create(s.positionClass,this.overlayContainer);this.index=this.index+1;let c=e;e&&s.enableHtml&&(c=this.sanitizer.sanitize(r.J.HTML,e));const l=new A(a),u=new w(this.index,s,c,n,t,l),h=new T(u,this._injector),d=new E(s.toastComponent,h),f=a.attach(d,this.toastrConfig.newestOnTop);l.componentInstance=f.instance;const p={toastId:this.index,message:e||"",toastRef:l,onShown:l.afterActivate(),onHidden:l.afterClosed(),onTap:u.onTap(),onAction:u.onAction(),portal:f};return o||(this.currentlyActive=this.currentlyActive+1,setTimeout(()=>{p.toastRef.activate()})),this.toasts.push(p),p}}return t.\u0275fac=function(e){return new(e||t)(r.ac(D),r.ac(k),r.ac(r.t),r.ac(o.b),r.ac(r.B))},t.\u0275prov=Object(r.Ib)({factory:function(){return new t(Object(r.ac)(D),Object(r.ac)(k),Object(r.ac)(r.q),Object(r.ac)(o.b),Object(r.ac)(r.B))},token:t,providedIn:"root"}),t})(),F=(()=>{class t{constructor(t,e,n){this.toastrService=t,this.toastPackage=e,this.ngZone=n,this.width=-1,this.toastClasses="",this.state={value:"inactive",params:{easeTime:this.toastPackage.config.easeTime,easing:"ease-in"}},this.message=e.message,this.title=e.title,this.options=e.config,this.originalTimeout=e.config.timeOut,this.toastClasses=`${e.toastType} ${e.config.toastClass}`,this.sub=e.toastRef.afterActivate().subscribe(()=>{this.activateToast()}),this.sub1=e.toastRef.manualClosed().subscribe(()=>{this.remove()}),this.sub2=e.toastRef.timeoutReset().subscribe(()=>{this.resetTimeout()}),this.sub3=e.toastRef.countDuplicate().subscribe(t=>{this.duplicatesCount=t})}get displayStyle(){if("inactive"===this.state.value)return"none"}ngOnDestroy(){this.sub.unsubscribe(),this.sub1.unsubscribe(),this.sub2.unsubscribe(),this.sub3.unsubscribe(),clearInterval(this.intervalId),clearTimeout(this.timeout)}activateToast(){this.state=Object.assign(Object.assign({},this.state),{value:"active"}),!0!==this.options.disableTimeOut&&"timeOut"!==this.options.disableTimeOut&&this.options.timeOut&&(this.outsideTimeout(()=>this.remove(),this.options.timeOut),this.hideTime=(new Date).getTime()+this.options.timeOut,this.options.progressBar&&this.outsideInterval(()=>this.updateProgress(),10))}updateProgress(){if(0===this.width||100===this.width||!this.options.timeOut)return;const t=(new Date).getTime();this.width=(this.hideTime-t)/this.options.timeOut*100,"increasing"===this.options.progressAnimation&&(this.width=100-this.width),this.width<=0&&(this.width=0),this.width>=100&&(this.width=100)}resetTimeout(){clearTimeout(this.timeout),clearInterval(this.intervalId),this.state=Object.assign(Object.assign({},this.state),{value:"active"}),this.outsideTimeout(()=>this.remove(),this.originalTimeout),this.options.timeOut=this.originalTimeout,this.hideTime=(new Date).getTime()+(this.options.timeOut||0),this.width=-1,this.options.progressBar&&this.outsideInterval(()=>this.updateProgress(),10)}remove(){"removed"!==this.state.value&&(clearTimeout(this.timeout),this.state=Object.assign(Object.assign({},this.state),{value:"removed"}),this.outsideTimeout(()=>this.toastrService.remove(this.toastPackage.toastId),+this.toastPackage.config.easeTime))}tapToast(){"removed"!==this.state.value&&(this.toastPackage.triggerTap(),this.options.tapToDismiss&&this.remove())}stickAround(){"removed"!==this.state.value&&(clearTimeout(this.timeout),this.options.timeOut=0,this.hideTime=0,clearInterval(this.intervalId),this.width=0)}delayedHideToast(){!0!==this.options.disableTimeOut&&"extendedTimeOut"!==this.options.disableTimeOut&&0!==this.options.extendedTimeOut&&"removed"!==this.state.value&&(this.outsideTimeout(()=>this.remove(),this.options.extendedTimeOut),this.options.timeOut=this.options.extendedTimeOut,this.hideTime=(new Date).getTime()+(this.options.timeOut||0),this.width=-1,this.options.progressBar&&this.outsideInterval(()=>this.updateProgress(),10))}outsideTimeout(t,e){this.ngZone?this.ngZone.runOutsideAngular(()=>this.timeout=setTimeout(()=>this.runInsideAngular(t),e)):this.timeout=setTimeout(()=>t(),e)}outsideInterval(t,e){this.ngZone?this.ngZone.runOutsideAngular(()=>this.intervalId=setInterval(()=>this.runInsideAngular(t),e)):this.intervalId=setInterval(()=>t(),e)}runInsideAngular(t){this.ngZone?this.ngZone.run(()=>t()):t()}}return t.\u0275fac=function(e){return new(e||t)(r.Mb(j),r.Mb(w),r.Mb(r.B))},t.\u0275cmp=r.Gb({type:t,selectors:[["","toast-component",""]],hostVars:5,hostBindings:function(t,e){1&t&&r.dc("click",function(){return e.tapToast()})("mouseenter",function(){return e.stickAround()})("mouseleave",function(){return e.delayedHideToast()}),2&t&&(r.Lc("@flyInOut",e.state),r.Bb(e.toastClasses),r.Cc("display",e.displayStyle))},attrs:c,decls:5,vars:5,consts:[["class","toast-close-button","aria-label","Close",3,"click",4,"ngIf"],[3,"class",4,"ngIf"],["role","alertdialog","aria-live","polite",3,"class","innerHTML",4,"ngIf"],["role","alertdialog","aria-live","polite",3,"class",4,"ngIf"],[4,"ngIf"],["aria-label","Close",1,"toast-close-button",3,"click"],["aria-hidden","true"],["role","alertdialog","aria-live","polite",3,"innerHTML"],["role","alertdialog","aria-live","polite"],[1,"toast-progress"]],template:function(t,e){1&t&&(r.Dc(0,l,3,0,"button",0),r.Dc(1,h,3,5,"div",1),r.Dc(2,d,1,3,"div",2),r.Dc(3,f,2,4,"div",3),r.Dc(4,p,2,2,"div",4)),2&t&&(r.mc("ngIf",e.options.closeButton),r.zb(1),r.mc("ngIf",e.title),r.zb(1),r.mc("ngIf",e.message&&e.options.enableHtml),r.zb(1),r.mc("ngIf",e.message&&!e.options.enableHtml),r.zb(1),r.mc("ngIf",e.options.progressBar))},directives:[a.o],encapsulation:2,data:{animation:[Object(s.j)("flyInOut",[Object(s.g)("inactive",Object(s.h)({opacity:0})),Object(s.g)("active",Object(s.h)({opacity:1})),Object(s.g)("removed",Object(s.h)({opacity:0})),Object(s.i)("inactive => active",Object(s.e)("{{ easeTime }}ms {{ easing }}")),Object(s.i)("active => removed",Object(s.e)("{{ easeTime }}ms {{ easing }}"))])]}}),t})();const I=Object.assign(Object.assign({},C),{toastComponent:F});let R=(()=>{class t{static forRoot(e={}){return{ngModule:t,providers:[{provide:D,useValue:{default:I,config:e}}]}}}return t.\u0275mod=r.Kb({type:t}),t.\u0275inj=r.Jb({factory:function(e){return new(e||t)},imports:[[a.b]]}),t})(),M=(()=>{class t{constructor(t,e,n){this.toastrService=t,this.toastPackage=e,this.appRef=n,this.width=-1,this.toastClasses="",this.state="inactive",this.message=e.message,this.title=e.title,this.options=e.config,this.originalTimeout=e.config.timeOut,this.toastClasses=`${e.toastType} ${e.config.toastClass}`,this.sub=e.toastRef.afterActivate().subscribe(()=>{this.activateToast()}),this.sub1=e.toastRef.manualClosed().subscribe(()=>{this.remove()}),this.sub2=e.toastRef.timeoutReset().subscribe(()=>{this.resetTimeout()}),this.sub3=e.toastRef.countDuplicate().subscribe(t=>{this.duplicatesCount=t})}get displayStyle(){if("inactive"===this.state)return"none"}ngOnDestroy(){this.sub.unsubscribe(),this.sub1.unsubscribe(),this.sub2.unsubscribe(),this.sub3.unsubscribe(),clearInterval(this.intervalId),clearTimeout(this.timeout)}activateToast(){this.state="active",!0!==this.options.disableTimeOut&&"timeOut"!==this.options.disableTimeOut&&this.options.timeOut&&(this.timeout=setTimeout(()=>{this.remove()},this.options.timeOut),this.hideTime=(new Date).getTime()+this.options.timeOut,this.options.progressBar&&(this.intervalId=setInterval(()=>this.updateProgress(),10))),this.options.onActivateTick&&this.appRef.tick()}updateProgress(){if(0===this.width||100===this.width||!this.options.timeOut)return;const t=(new Date).getTime();this.width=(this.hideTime-t)/this.options.timeOut*100,"increasing"===this.options.progressAnimation&&(this.width=100-this.width),this.width<=0&&(this.width=0),this.width>=100&&(this.width=100)}resetTimeout(){clearTimeout(this.timeout),clearInterval(this.intervalId),this.state="active",this.options.timeOut=this.originalTimeout,this.timeout=setTimeout(()=>this.remove(),this.originalTimeout),this.hideTime=(new Date).getTime()+(this.originalTimeout||0),this.width=-1,this.options.progressBar&&(this.intervalId=setInterval(()=>this.updateProgress(),10))}remove(){"removed"!==this.state&&(clearTimeout(this.timeout),this.state="removed",this.timeout=setTimeout(()=>this.toastrService.remove(this.toastPackage.toastId)))}tapToast(){"removed"!==this.state&&(this.toastPackage.triggerTap(),this.options.tapToDismiss&&this.remove())}stickAround(){"removed"!==this.state&&(clearTimeout(this.timeout),this.options.timeOut=0,this.hideTime=0,clearInterval(this.intervalId),this.width=0)}delayedHideToast(){!0!==this.options.disableTimeOut&&"extendedTimeOut"!==this.options.disableTimeOut&&0!==this.options.extendedTimeOut&&"removed"!==this.state&&(this.timeout=setTimeout(()=>this.remove(),this.options.extendedTimeOut),this.options.timeOut=this.options.extendedTimeOut,this.hideTime=(new Date).getTime()+(this.options.timeOut||0),this.width=-1,this.options.progressBar&&(this.intervalId=setInterval(()=>this.updateProgress(),10)))}}return t.\u0275fac=function(e){return new(e||t)(r.Mb(j),r.Mb(w),r.Mb(r.g))},t.\u0275cmp=r.Gb({type:t,selectors:[["","toast-component",""]],hostVars:4,hostBindings:function(t,e){1&t&&r.dc("click",function(){return e.tapToast()})("mouseenter",function(){return e.stickAround()})("mouseleave",function(){return e.delayedHideToast()}),2&t&&(r.Bb(e.toastClasses),r.Cc("display",e.displayStyle))},attrs:c,decls:5,vars:5,consts:[["class","toast-close-button","aria-label","Close",3,"click",4,"ngIf"],[3,"class",4,"ngIf"],["role","alert","aria-live","polite",3,"class","innerHTML",4,"ngIf"],["role","alert","aria-live","polite",3,"class",4,"ngIf"],[4,"ngIf"],["aria-label","Close",1,"toast-close-button",3,"click"],["aria-hidden","true"],["role","alert","aria-live","polite",3,"innerHTML"],["role","alert","aria-live","polite"],[1,"toast-progress"]],template:function(t,e){1&t&&(r.Dc(0,m,3,0,"button",0),r.Dc(1,b,3,5,"div",1),r.Dc(2,y,1,3,"div",2),r.Dc(3,_,2,4,"div",3),r.Dc(4,v,2,2,"div",4)),2&t&&(r.mc("ngIf",e.options.closeButton),r.zb(1),r.mc("ngIf",e.title),r.zb(1),r.mc("ngIf",e.message&&e.options.enableHtml),r.zb(1),r.mc("ngIf",e.message&&!e.options.enableHtml),r.zb(1),r.mc("ngIf",e.options.progressBar))},directives:[a.o],encapsulation:2}),t})();Object.assign(Object.assign({},C),{toastComponent:M})},"7o/Q":function(t,e,n){"use strict";n.d(e,"a",function(){return l});var r=n("n6bG"),s=n("gRHU"),i=n("quSY"),o=n("2QA8"),a=n("2fFW"),c=n("NJ4a");class l extends i.a{constructor(t,e,n){switch(super(),this.syncErrorValue=null,this.syncErrorThrown=!1,this.syncErrorThrowable=!1,this.isStopped=!1,arguments.length){case 0:this.destination=s.a;break;case 1:if(!t){this.destination=s.a;break}if("object"==typeof t){t instanceof l?(this.syncErrorThrowable=t.syncErrorThrowable,this.destination=t,t.add(this)):(this.syncErrorThrowable=!0,this.destination=new u(this,t));break}default:this.syncErrorThrowable=!0,this.destination=new u(this,t,e,n)}}[o.a](){return this}static create(t,e,n){const r=new l(t,e,n);return r.syncErrorThrowable=!1,r}next(t){this.isStopped||this._next(t)}error(t){this.isStopped||(this.isStopped=!0,this._error(t))}complete(){this.isStopped||(this.isStopped=!0,this._complete())}unsubscribe(){this.closed||(this.isStopped=!0,super.unsubscribe())}_next(t){this.destination.next(t)}_error(t){this.destination.error(t),this.unsubscribe()}_complete(){this.destination.complete(),this.unsubscribe()}_unsubscribeAndRecycle(){const{_parentOrParents:t}=this;return this._parentOrParents=null,this.unsubscribe(),this.closed=!1,this.isStopped=!1,this._parentOrParents=t,this}}class u extends l{constructor(t,e,n,i){let o;super(),this._parentSubscriber=t;let a=this;Object(r.a)(e)?o=e:e&&(o=e.next,n=e.error,i=e.complete,e!==s.a&&(a=Object.create(e),Object(r.a)(a.unsubscribe)&&this.add(a.unsubscribe.bind(a)),a.unsubscribe=this.unsubscribe.bind(this))),this._context=a,this._next=o,this._error=n,this._complete=i}next(t){if(!this.isStopped&&this._next){const{_parentSubscriber:e}=this;a.a.useDeprecatedSynchronousErrorHandling&&e.syncErrorThrowable?this.__tryOrSetError(e,this._next,t)&&this.unsubscribe():this.__tryOrUnsub(this._next,t)}}error(t){if(!this.isStopped){const{_parentSubscriber:e}=this,{useDeprecatedSynchronousErrorHandling:n}=a.a;if(this._error)n&&e.syncErrorThrowable?(this.__tryOrSetError(e,this._error,t),this.unsubscribe()):(this.__tryOrUnsub(this._error,t),this.unsubscribe());else if(e.syncErrorThrowable)n?(e.syncErrorValue=t,e.syncErrorThrown=!0):Object(c.a)(t),this.unsubscribe();else{if(this.unsubscribe(),n)throw t;Object(c.a)(t)}}}complete(){if(!this.isStopped){const{_parentSubscriber:t}=this;if(this._complete){const e=()=>this._complete.call(this._context);a.a.useDeprecatedSynchronousErrorHandling&&t.syncErrorThrowable?(this.__tryOrSetError(t,e),this.unsubscribe()):(this.__tryOrUnsub(e),this.unsubscribe())}else this.unsubscribe()}}__tryOrUnsub(t,e){try{t.call(this._context,e)}catch(n){if(this.unsubscribe(),a.a.useDeprecatedSynchronousErrorHandling)throw n;Object(c.a)(n)}}__tryOrSetError(t,e,n){if(!a.a.useDeprecatedSynchronousErrorHandling)throw new Error("bad call");try{e.call(this._context,n)}catch(r){return a.a.useDeprecatedSynchronousErrorHandling?(t.syncErrorValue=r,t.syncErrorThrown=!0,!0):(Object(c.a)(r),!0)}return!1}_unsubscribe(){const{_parentSubscriber:t}=this;this._context=null,this._parentSubscriber=null,t.unsubscribe()}}},"9ppp":function(t,e,n){"use strict";n.d(e,"a",function(){return r});const r=(()=>{function t(){return Error.call(this),this.message="object unsubscribed",this.name="ObjectUnsubscribedError",this}return t.prototype=Object.create(Error.prototype),t})()},"9ryq":function(t,e,n){"use strict";n.d(e,"a",function(){return c});var r=n("mrSG"),s=n("AytR"),i=n("fXoL"),o=n("tk/3"),a=n("ZnpR");let c=(()=>{class t{constructor(t,e){this.httpClient=t,this.appContext=e,this.controllerUrl=s.a.umbracoUrl+"/contentapi/"}init(e){return Object(r.a)(this,void 0,void 0,function*(){if(t.dictonary)return;const n=yield this.httpClient.get(this.controllerUrl+"/gettranslations",{params:{language:e}}).toPromise();t.dictonary=n})}getDictionaryValue(e){return t.dictonary?t.dictonary[e]:null}getNews(){return this.httpClient.get(s.a.umbracoUrl+"/contentapi/getnews",{headers:{agencyId:this.appContext.state.agencyId.toString()}})}getFaqs(){return this.httpClient.get(s.a.umbracoUrl+"/contentapi/getfaqs",{headers:{agencyId:this.appContext.state.agencyId.toString()}})}getBenefits(){return this.httpClient.get(s.a.umbracoUrl+"/contentapi/getbenefits",{headers:{agencyId:this.appContext.state.agencyId.toString()}})}getEmployees(){return this.httpClient.get(s.a.umbracoUrl+"/contentapi/getemployees",{headers:{agencyId:this.appContext.state.agencyId.toString()}})}getOptions(){return this.httpClient.get(s.a.umbracoUrl+"/contentapi/getoptions",{headers:{agencyId:this.appContext.state.agencyId.toString()}})}getAgencySettings(){return this.httpClient.get(s.a.umbracoUrl+"/contentapi/getagencysettings",{headers:{agencyId:this.appContext.state.agencyId.toString()}})}getAllAgencySettings(){return this.httpClient.get(s.a.umbracoUrl+"/contentapi/getallagencysettings",{headers:{agencyId:this.appContext.state.agencyId.toString()}})}getActiveServices(){return this.httpClient.get(s.a.umbracoUrl+"/servicepickereditorapi/getactiveservices",{params:{agencyId:this.appContext.state.agencyId.toString()}})}getServiceCaseSections(){return this.httpClient.get(s.a.umbracoUrl+"/servicecasepickereditorapi/getactiveservicecasestatuses",{params:{agencyId:this.appContext.state.agencyId.toString()}})}}return t.\u0275fac=function(e){return new(e||t)(i.ac(o.b),i.ac(a.a))},t.\u0275prov=i.Ib({token:t,factory:t.\u0275fac,providedIn:"root"}),t})()},AytR:function(t,e,n){"use strict";n.d(e,"a",function(){return r});const r={production:!0,apiUrl:"https://husejer-service.nordseeholidays.dk",apiKey:"f4d3d16a-9255-4d3e-90b3-65ffe7341eee",apiV2Url:"https://husejer-service.nordseeholidays.dk",apiV2Key:"dd069a9effcec2435441bd6d21bc77c3",apiQuestionnarieUrl:"https://feedback.inetdesign.dk/Api",apiQuestionnarieKey:"6c84d1acb017e380e18853ad8966994a",apiHyggeUrl:"https://webservice.nordsee-holidays.de/api",umbracoUrl:"https://umbraco.houseowner.nordseeholidays.dk/umbraco/api",houseLetterUrl:"https://husejer.nordseholidays.dk/public/letter/"}},Cfvw:function(t,e,n){"use strict";n.d(e,"a",function(){return h});var r=n("HDdC"),s=n("SeVD"),i=n("quSY"),o=n("kJWO"),a=n("jZKg"),c=n("Lhse"),l=n("c2HN"),u=n("I55L");function h(t,e){return e?function(t,e){if(null!=t){if(function(t){return t&&"function"==typeof t[o.a]}(t))return function(t,e){return new r.a(n=>{const r=new i.a;return r.add(e.schedule(()=>{const s=t[o.a]();r.add(s.subscribe({next(t){r.add(e.schedule(()=>n.next(t)))},error(t){r.add(e.schedule(()=>n.error(t)))},complete(){r.add(e.schedule(()=>n.complete()))}}))})),r})}(t,e);if(Object(l.a)(t))return function(t,e){return new r.a(n=>{const r=new i.a;return r.add(e.schedule(()=>t.then(t=>{r.add(e.schedule(()=>{n.next(t),r.add(e.schedule(()=>n.complete()))}))},t=>{r.add(e.schedule(()=>n.error(t)))}))),r})}(t,e);if(Object(u.a)(t))return Object(a.a)(t,e);if(function(t){return t&&"function"==typeof t[c.a]}(t)||"string"==typeof t)return function(t,e){if(!t)throw new Error("Iterable cannot be null");return new r.a(n=>{const r=new i.a;let s;return r.add(()=>{s&&"function"==typeof s.return&&s.return()}),r.add(e.schedule(()=>{s=t[c.a](),r.add(e.schedule(function(){if(n.closed)return;let t,e;try{const n=s.next();t=n.value,e=n.done}catch(r){return void n.error(r)}e?n.complete():(n.next(t),this.schedule())}))})),r})}(t,e)}throw new TypeError((null!==t&&typeof t||t)+" is not observable")}(t,e):t instanceof r.a?t:new r.a(Object(s.a)(t))}},DH7j:function(t,e,n){"use strict";n.d(e,"a",function(){return r});const r=(()=>Array.isArray||(t=>t&&"number"==typeof t.length))()},EY2u:function(t,e,n){"use strict";n.d(e,"a",function(){return s}),n.d(e,"b",function(){return i});var r=n("HDdC");const s=new r.a(t=>t.complete());function i(t){return t?function(t){return new r.a(e=>t.schedule(()=>e.complete()))}(t):s}},HDdC:function(t,e,n){"use strict";n.d(e,"a",function(){return l});var r=n("7o/Q"),s=n("2QA8"),i=n("gRHU"),o=n("kJWO"),a=n("SpAZ"),c=n("2fFW");let l=(()=>{class t{constructor(t){this._isScalar=!1,t&&(this._subscribe=t)}lift(e){const n=new t;return n.source=this,n.operator=e,n}subscribe(t,e,n){const{operator:o}=this,a=function(t,e,n){if(t){if(t instanceof r.a)return t;if(t[s.a])return t[s.a]()}return t||e||n?new r.a(t,e,n):new r.a(i.a)}(t,e,n);if(a.add(o?o.call(a,this.source):this.source||c.a.useDeprecatedSynchronousErrorHandling&&!a.syncErrorThrowable?this._subscribe(a):this._trySubscribe(a)),c.a.useDeprecatedSynchronousErrorHandling&&a.syncErrorThrowable&&(a.syncErrorThrowable=!1,a.syncErrorThrown))throw a.syncErrorValue;return a}_trySubscribe(t){try{return this._subscribe(t)}catch(e){c.a.useDeprecatedSynchronousErrorHandling&&(t.syncErrorThrown=!0,t.syncErrorValue=e),function(t){for(;t;){const{closed:e,destination:n,isStopped:s}=t;if(e||s)return!1;t=n&&n instanceof r.a?n:null}return!0}(t)?t.error(e):console.warn(e)}}forEach(t,e){return new(e=u(e))((e,n)=>{let r;r=this.subscribe(e=>{try{t(e)}catch(s){n(s),r&&r.unsubscribe()}},n,e)})}_subscribe(t){const{source:e}=this;return e&&e.subscribe(t)}[o.a](){return this}pipe(...t){return 0===t.length?this:(0===(e=t).length?a.a:1===e.length?e[0]:function(t){return e.reduce((t,e)=>e(t),t)})(this);var e}toPromise(t){return new(t=u(t))((t,e)=>{let n;this.subscribe(t=>n=t,t=>e(t),()=>t(n))})}}return t.create=e=>new t(e),t})();function u(t){if(t||(t=c.a.Promise||Promise),!t)throw new Error("no Promise impl found");return t}},I55L:function(t,e,n){"use strict";n.d(e,"a",function(){return r});const r=t=>t&&"number"==typeof t.length&&"function"!=typeof t},IzEk:function(t,e,n){"use strict";n.d(e,"a",function(){return o});var r=n("7o/Q"),s=n("4I5i"),i=n("EY2u");function o(t){return e=>0===t?Object(i.b)():e.lift(new a(t))}class a{constructor(t){if(this.total=t,this.total<0)throw new s.a}call(t,e){return e.subscribe(new c(t,this.total))}}class c extends r.a{constructor(t,e){super(t),this.total=e,this.count=0}_next(t){const e=this.total,n=++this.count;n<=e&&(this.destination.next(t),n===e&&(this.destination.complete(),this.unsubscribe()))}}},JIr8:function(t,e,n){"use strict";n.d(e,"a",function(){return o});var r=n("l7GE"),s=n("51Dv"),i=n("ZUHj");function o(t){return function(e){const n=new a(t),r=e.lift(n);return n.caught=r}}class a{constructor(t){this.selector=t}call(t,e){return e.subscribe(new c(t,this.selector,this.caught))}}class c extends r.a{constructor(t,e,n){super(t),this.selector=e,this.caught=n}error(t){if(!this.isStopped){let n;try{n=this.selector(t,this.caught)}catch(e){return void super.error(e)}this._unsubscribeAndRecycle();const r=new s.a(this,void 0,void 0);this.add(r);const o=Object(i.a)(this,n,void 0,void 0,r);o!==r&&this.add(o)}}}},JX91:function(t,e,n){"use strict";n.d(e,"a",function(){return a});var r=n("LRne"),s=n("0EUg");function i(...t){return Object(s.a)()(Object(r.a)(...t))}var o=n("z+Ro");function a(...t){const e=t[t.length-1];return Object(o.a)(e)?(t.pop(),n=>i(t,n,e)):e=>i(t,e)}},KqfI:function(t,e,n){"use strict";function r(){}n.d(e,"a",function(){return r})},LRne:function(t,e,n){"use strict";n.d(e,"a",function(){return o});var r=n("z+Ro"),s=n("yCtX"),i=n("jZKg");function o(...t){let e=t[t.length-1];return Object(r.a)(e)?(t.pop(),Object(i.a)(t,e)):Object(s.a)(t)}},Lhse:function(t,e,n){"use strict";function r(){return"function"==typeof Symbol&&Symbol.iterator?Symbol.iterator:"@@iterator"}n.d(e,"a",function(){return s});const s=r()},NJ4a:function(t,e,n){"use strict";function r(t){setTimeout(()=>{throw t},0)}n.d(e,"a",function(){return r})},R0Ic:function(t,e,n){"use strict";n.d(e,"a",function(){return i}),n.d(e,"b",function(){return r}),n.d(e,"c",function(){return s}),n.d(e,"d",function(){return f}),n.d(e,"e",function(){return a}),n.d(e,"f",function(){return c}),n.d(e,"g",function(){return u}),n.d(e,"h",function(){return l}),n.d(e,"i",function(){return h}),n.d(e,"j",function(){return o}),n.d(e,"k",function(){return p}),n.d(e,"l",function(){return m});class r{}class s{}const i="*";function o(t,e){return{type:7,name:t,definitions:e,options:{}}}function a(t,e=null){return{type:4,styles:e,timings:t}}function c(t,e=null){return{type:2,steps:t,options:e}}function l(t){return{type:6,styles:t,offset:null}}function u(t,e,n){return{type:0,name:t,styles:e,options:n}}function h(t,e,n=null){return{type:1,expr:t,animation:e,options:n}}function d(t){Promise.resolve(null).then(t)}class f{constructor(t=0,e=0){this._onDoneFns=[],this._onStartFns=[],this._onDestroyFns=[],this._started=!1,this._destroyed=!1,this._finished=!1,this.parentPlayer=null,this.totalTime=t+e}_onFinish(){this._finished||(this._finished=!0,this._onDoneFns.forEach(t=>t()),this._onDoneFns=[])}onStart(t){this._onStartFns.push(t)}onDone(t){this._onDoneFns.push(t)}onDestroy(t){this._onDestroyFns.push(t)}hasStarted(){return this._started}init(){}play(){this.hasStarted()||(this._onStart(),this.triggerMicrotask()),this._started=!0}triggerMicrotask(){d(()=>this._onFinish())}_onStart(){this._onStartFns.forEach(t=>t()),this._onStartFns=[]}pause(){}restart(){}finish(){this._onFinish()}destroy(){this._destroyed||(this._destroyed=!0,this.hasStarted()||this._onStart(),this.finish(),this._onDestroyFns.forEach(t=>t()),this._onDestroyFns=[])}reset(){}setPosition(t){}getPosition(){return 0}triggerCallback(t){const e="start"==t?this._onStartFns:this._onDoneFns;e.forEach(t=>t()),e.length=0}}class p{constructor(t){this._onDoneFns=[],this._onStartFns=[],this._finished=!1,this._started=!1,this._destroyed=!1,this._onDestroyFns=[],this.parentPlayer=null,this.totalTime=0,this.players=t;let e=0,n=0,r=0;const s=this.players.length;0==s?d(()=>this._onFinish()):this.players.forEach(t=>{t.onDone(()=>{++e==s&&this._onFinish()}),t.onDestroy(()=>{++n==s&&this._onDestroy()}),t.onStart(()=>{++r==s&&this._onStart()})}),this.totalTime=this.players.reduce((t,e)=>Math.max(t,e.totalTime),0)}_onFinish(){this._finished||(this._finished=!0,this._onDoneFns.forEach(t=>t()),this._onDoneFns=[])}init(){this.players.forEach(t=>t.init())}onStart(t){this._onStartFns.push(t)}_onStart(){this.hasStarted()||(this._started=!0,this._onStartFns.forEach(t=>t()),this._onStartFns=[])}onDone(t){this._onDoneFns.push(t)}onDestroy(t){this._onDestroyFns.push(t)}hasStarted(){return this._started}play(){this.parentPlayer||this.init(),this._onStart(),this.players.forEach(t=>t.play())}pause(){this.players.forEach(t=>t.pause())}restart(){this.players.forEach(t=>t.restart())}finish(){this._onFinish(),this.players.forEach(t=>t.finish())}destroy(){this._onDestroy()}_onDestroy(){this._destroyed||(this._destroyed=!0,this._onFinish(),this.players.forEach(t=>t.destroy()),this._onDestroyFns.forEach(t=>t()),this._onDestroyFns=[])}reset(){this.players.forEach(t=>t.reset()),this._destroyed=!1,this._finished=!1,this._started=!1}setPosition(t){const e=t*this.totalTime;this.players.forEach(t=>{const n=t.totalTime?Math.min(1,e/t.totalTime):1;t.setPosition(n)})}getPosition(){let t=0;return this.players.forEach(e=>{const n=e.getPosition();t=Math.min(n,t)}),t}beforeDestroy(){this.players.forEach(t=>{t.beforeDestroy&&t.beforeDestroy()})}triggerCallback(t){const e="start"==t?this._onStartFns:this._onDoneFns;e.forEach(t=>t()),e.length=0}}const m="!"},SeVD:function(t,e,n){"use strict";n.d(e,"a",function(){return u});var r=n("ngJS"),s=n("NJ4a"),i=n("Lhse"),o=n("kJWO"),a=n("I55L"),c=n("c2HN"),l=n("XoHu");const u=t=>{if(t&&"function"==typeof t[o.a])return u=t,t=>{const e=u[o.a]();if("function"!=typeof e.subscribe)throw new TypeError("Provided object does not correctly implement Symbol.observable");return e.subscribe(t)};if(Object(a.a)(t))return Object(r.a)(t);if(Object(c.a)(t))return n=t,t=>(n.then(e=>{t.closed||(t.next(e),t.complete())},e=>t.error(e)).then(null,s.a),t);if(t&&"function"==typeof t[i.a])return e=t,t=>{const n=e[i.a]();for(;;){const e=n.next();if(e.done){t.complete();break}if(t.next(e.value),t.closed)break}return"function"==typeof n.return&&t.add(()=>{n.return&&n.return()}),t};{const e=Object(l.a)(t)?"an invalid object":`'${t}'`;throw new TypeError(`You provided ${e} where a stream was expected. You can provide an Observable, Promise, Array, or Iterable.`)}var e,n,u}},SpAZ:function(t,e,n){"use strict";function r(t){return t}n.d(e,"a",function(){return r})},VRyK:function(t,e,n){"use strict";n.d(e,"a",function(){return a});var r=n("HDdC"),s=n("z+Ro"),i=n("bHdf"),o=n("yCtX");function a(...t){let e=Number.POSITIVE_INFINITY,n=null,a=t[t.length-1];return Object(s.a)(a)?(n=t.pop(),t.length>1&&"number"==typeof t[t.length-1]&&(e=t.pop())):"number"==typeof a&&(e=t.pop()),null===n&&1===t.length&&t[0]instanceof r.a?t[0]:Object(i.a)(e)(Object(o.a)(t,n))}},XNiG:function(t,e,n){"use strict";n.d(e,"b",function(){return l}),n.d(e,"a",function(){return u});var r=n("HDdC"),s=n("7o/Q"),i=n("quSY"),o=n("9ppp");class a extends i.a{constructor(t,e){super(),this.subject=t,this.subscriber=e,this.closed=!1}unsubscribe(){if(this.closed)return;this.closed=!0;const t=this.subject,e=t.observers;if(this.subject=null,!e||0===e.length||t.isStopped||t.closed)return;const n=e.indexOf(this.subscriber);-1!==n&&e.splice(n,1)}}var c=n("2QA8");class l extends s.a{constructor(t){super(t),this.destination=t}}let u=(()=>{class t extends r.a{constructor(){super(),this.observers=[],this.closed=!1,this.isStopped=!1,this.hasError=!1,this.thrownError=null}[c.a](){return new l(this)}lift(t){const e=new h(this,this);return e.operator=t,e}next(t){if(this.closed)throw new o.a;if(!this.isStopped){const{observers:e}=this,n=e.length,r=e.slice();for(let s=0;s<n;s++)r[s].next(t)}}error(t){if(this.closed)throw new o.a;this.hasError=!0,this.thrownError=t,this.isStopped=!0;const{observers:e}=this,n=e.length,r=e.slice();for(let s=0;s<n;s++)r[s].error(t);this.observers.length=0}complete(){if(this.closed)throw new o.a;this.isStopped=!0;const{observers:t}=this,e=t.length,n=t.slice();for(let r=0;r<e;r++)n[r].complete();this.observers.length=0}unsubscribe(){this.isStopped=!0,this.closed=!0,this.observers=null}_trySubscribe(t){if(this.closed)throw new o.a;return super._trySubscribe(t)}_subscribe(t){if(this.closed)throw new o.a;return this.hasError?(t.error(this.thrownError),i.a.EMPTY):this.isStopped?(t.complete(),i.a.EMPTY):(this.observers.push(t),new a(this,t))}asObservable(){const t=new r.a;return t.source=this,t}}return t.create=(t,e)=>new h(t,e),t})();class h extends u{constructor(t,e){super(),this.destination=t,this.source=e}next(t){const{destination:e}=this;e&&e.next&&e.next(t)}error(t){const{destination:e}=this;e&&e.error&&this.destination.error(t)}complete(){const{destination:t}=this;t&&t.complete&&this.destination.complete()}_subscribe(t){const{source:e}=this;return e?this.source.subscribe(t):i.a.EMPTY}}},XoHu:function(t,e,n){"use strict";function r(t){return null!==t&&"object"==typeof t}n.d(e,"a",function(){return r})},ZUHj:function(t,e,n){"use strict";n.d(e,"a",function(){return o});var r=n("51Dv"),s=n("SeVD"),i=n("HDdC");function o(t,e,n,o,a=new r.a(t,n,o)){if(!a.closed)return e instanceof i.a?e.subscribe(a):Object(s.a)(e)(a)}},ZnpR:function(t,e,n){"use strict";n.d(e,"a",function(){return o});var r=n("fXoL");class s{constructor(){this.user=null,this.ownerRentalReports=[],this.isCPRNumberMissing=!1,this.isContractConfirmed=!0}}var i=n("2Vo4");let o=(()=>{class t extends class{constructor(t){this._state$=new i.a(t)}get state$(){return this._state$.asObservable()}get state(){return this._state$.getValue()}setState(t){this._state$.next(t)}}{constructor(){super(new s)}getUser(){return this.state.user}setUser(t){this.setState(Object.assign(Object.assign({},this.state),{user:t})),Object(r.V)()&&console.log("User set to: ",t)}setAgencySettings(t){this.setState(Object.assign(Object.assign({},this.state),{agencySettings:t})),Object(r.V)()&&console.log("AgencySettings set to: ",t)}getAgencySettings(){return this.state.agencySettings}setAllAgencySettings(t){this.setState(Object.assign(Object.assign({},this.state),{allAgencySettings:t})),Object(r.V)()&&console.log("All AgencySettings set to: ",t)}getAllAgencySettings(){return this.state.allAgencySettings}setAgencyId(t){this.setState(Object.assign(Object.assign({},this.state),{agencyId:t})),Object(r.V)()&&console.log("AgencyId set to: ",t)}setIsPreviousUrlAgency(t){this.setState(Object.assign(Object.assign({},this.state),{isPreviousUrlAgency:t})),Object(r.V)()&&console.log("IsPreviousUrlAgency set to: ",t)}getIsPreviousUrlAgency(){return this.state.isPreviousUrlAgency}setLanguage(t){this.setState(Object.assign(Object.assign({},this.state),{languageCode:t})),Object(r.V)()&&console.log("Language code set to: ",t)}getAgencyId(){return this.state.agencyId}setHouses(t){this.setState(Object.assign(Object.assign({},this.state),{houses:t})),Object(r.V)()&&console.log("Houses set to: ",t)}setSelectedHouse(t){this.setState(Object.assign(Object.assign({},this.state),{selectedHouse:t})),Object(r.V)()&&console.log("Selected house set to: ",t)}getSelectedHouse(){return this.state.selectedHouse}setRatings(t){this.setState(Object.assign(Object.assign({},this.state),{houseRatings:t})),Object(r.V)()&&console.log("House ratings set to: ",t)}getRatings(){return this.state.houseRatings}setOwnerBookingTypes(t){this.setState(Object.assign(Object.assign({},this.state),{ownerBookingTypes:t})),Object(r.V)()&&console.log("Owner booking types set to: ",t)}getOwnerBookingTypes(){return this.state.ownerBookingTypes}setAvailableYears(t){let e=(new Date).getFullYear()+2;3==this.getAgencyId()&&(e=(new Date).getFullYear());for(var n=[],s=e;s>=t;s--)n.push(s);this.setState(Object.assign(Object.assign({},this.state),{availableYears:n})),Object(r.V)()&&console.log("Availabe years set to: ",n)}getAvailableYears(){return this.state.availableYears}setOwnerRentalReport(t){if(this.state.ownerRentalReports.find(e=>e.year==t.year))return;let e=this.state.ownerRentalReports;e.push(t),this.setState(Object.assign(Object.assign({},this.state),{ownerRentalReports:e}))}setOwnerRentalReports(t){let e=[],n=[];if(t.forEach(t=>{this.state.ownerRentalReports.find(e=>e.year==t.year)?n.push(t):e.push(t)}),null==e&&null==n)return;let r=this.state.ownerRentalReports;null!=n&&n.forEach(t=>{let e=r.findIndex(e=>e.year==t.year);r[e]=t}),null!=e&&e.forEach(t=>{r.push(t)}),this.setState(Object.assign(Object.assign({},this.state),{ownerRentalReports:r}))}getOwnerRentalReports(){return this.state.ownerRentalReports}setReservedDates(t){this.setState(Object.assign(Object.assign({},this.state),{reservedDates:t})),Object(r.V)()&&console.log("Reserved dates set to: ",t)}getReservedDates(){return this.state.reservedDates}setOwnerRentalReportRunning(t){this.setState(Object.assign(Object.assign({},this.state),{ownerRentalReportRunning:t})),Object(r.V)()&&console.log("Owner rental report running set to: ",t)}getOwnerRentalReportRunning(){return this.state.ownerRentalReportRunning}setCPRNumberMissing(t){this.setState(Object.assign(Object.assign({},this.state),{isCPRNumberMissing:t})),Object(r.V)()&&console.log("IsCPRNumberMissing set to: ",t)}isCPRNumberMissing(){return this.state.isCPRNumberMissing}setContractConfirmed(t){this.setState(Object.assign(Object.assign({},this.state),{isContractConfirmed:t})),Object(r.V)()&&console.log("IsContractConfimed set to: ",t)}isContractConfirmed(){return this.state.isContractConfirmed}reset(){var t=new s;this.setState(t)}resetUserRelatedData(){this.state.user=null,this.state.selectedHouse=null,this.state.houses=null,this.setState(this.state)}}return t.\u0275fac=function(e){return new(e||t)},t.\u0275prov=r.Ib({token:t,factory:t.\u0275fac,providedIn:"root"}),t})()},bHdf:function(t,e,n){"use strict";n.d(e,"a",function(){return i});var r=n("5+tZ"),s=n("SpAZ");function i(t=Number.POSITIVE_INFINITY){return Object(r.a)(s.a,t)}},bOdf:function(t,e,n){"use strict";n.d(e,"a",function(){return s});var r=n("5+tZ");function s(t,e){return Object(r.a)(t,e,1)}},c2HN:function(t,e,n){"use strict";function r(t){return!!t&&"function"!=typeof t.subscribe&&"function"==typeof t.then}n.d(e,"a",function(){return r})},eIep:function(t,e,n){"use strict";n.d(e,"a",function(){return c});var r=n("l7GE"),s=n("51Dv"),i=n("ZUHj"),o=n("lJxs"),a=n("Cfvw");function c(t,e){return"function"==typeof e?n=>n.pipe(c((n,r)=>Object(a.a)(t(n,r)).pipe(Object(o.a)((t,s)=>e(n,t,r,s))))):e=>e.lift(new l(t))}class l{constructor(t){this.project=t}call(t,e){return e.subscribe(new u(t,this.project))}}class u extends r.a{constructor(t,e){super(t),this.project=e,this.index=0}_next(t){let e;const n=this.index++;try{e=this.project(t,n)}catch(r){return void this.destination.error(r)}this._innerSub(e,t,n)}_innerSub(t,e,n){const r=this.innerSubscription;r&&r.unsubscribe();const o=new s.a(this,e,n),a=this.destination;a.add(o),this.innerSubscription=Object(i.a)(this,t,void 0,void 0,o),this.innerSubscription!==o&&a.add(this.innerSubscription)}_complete(){const{innerSubscription:t}=this;t&&!t.closed||super._complete(),this.unsubscribe()}_unsubscribe(){this.innerSubscription=null}notifyComplete(t){this.destination.remove(t),this.innerSubscription=null,this.isStopped&&super._complete()}notifyNext(t,e,n,r,s){this.destination.next(e)}}},fXoL:function(t,e,n){"use strict";n.d(e,"a",function(){return Li}),n.d(e,"b",function(){return Jl}),n.d(e,"c",function(){return Wl}),n.d(e,"d",function(){return $l}),n.d(e,"e",function(){return ql}),n.d(e,"f",function(){return Lu}),n.d(e,"g",function(){return ju}),n.d(e,"h",function(){return g}),n.d(e,"i",function(){return Di}),n.d(e,"j",function(){return cu}),n.d(e,"k",function(){return ka}),n.d(e,"l",function(){return tu}),n.d(e,"m",function(){return Aa}),n.d(e,"n",function(){return xn}),n.d(e,"o",function(){return _l}),n.d(e,"p",function(){return m}),n.d(e,"q",function(){return Q}),n.d(e,"r",function(){return h}),n.d(e,"s",function(){return K}),n.d(e,"t",function(){return Hi}),n.d(e,"u",function(){return Ka}),n.d(e,"v",function(){return Qa}),n.d(e,"w",function(){return Xl}),n.d(e,"x",function(){return ut}),n.d(e,"y",function(){return Iu}),n.d(e,"z",function(){return lt}),n.d(e,"A",function(){return Ou}),n.d(e,"B",function(){return hu}),n.d(e,"C",function(){return d}),n.d(e,"D",function(){return Zl}),n.d(e,"E",function(){return Ql}),n.d(e,"F",function(){return Ia}),n.d(e,"G",function(){return ja}),n.d(e,"H",function(){return Fa}),n.d(e,"I",function(){return Ma}),n.d(e,"J",function(){return br}),n.d(e,"K",function(){return p}),n.d(e,"L",function(){return Pu}),n.d(e,"M",function(){return Xa}),n.d(e,"N",function(){return _u}),n.d(e,"O",function(){return Si}),n.d(e,"P",function(){return Pa}),n.d(e,"Q",function(){return ec}),n.d(e,"R",function(){return wt}),n.d(e,"S",function(){return xu}),n.d(e,"T",function(){return qn}),n.d(e,"U",function(){return I}),n.d(e,"V",function(){return $n}),n.d(e,"W",function(){return Bu}),n.d(e,"X",function(){return Cu}),n.d(e,"Y",function(){return Yl}),n.d(e,"Z",function(){return Oi}),n.d(e,"ab",function(){return bc}),n.d(e,"bb",function(){return mr}),n.d(e,"cb",function(){return Jn}),n.d(e,"db",function(){return Mn}),n.d(e,"eb",function(){return Nn}),n.d(e,"fb",function(){return Ln}),n.d(e,"gb",function(){return Bn}),n.d(e,"hb",function(){return Vn}),n.d(e,"ib",function(){return Hn}),n.d(e,"jb",function(){return fc}),n.d(e,"kb",function(){return Vu}),n.d(e,"lb",function(){return pc}),n.d(e,"mb",function(){return mc}),n.d(e,"nb",function(){return Pn}),n.d(e,"ob",function(){return H}),n.d(e,"pb",function(){return Wi}),n.d(e,"qb",function(){return yo}),n.d(e,"rb",function(){return bo}),n.d(e,"sb",function(){return dc}),n.d(e,"tb",function(){return Gt}),n.d(e,"ub",function(){return T}),n.d(e,"vb",function(){return Rn}),n.d(e,"wb",function(){return la}),n.d(e,"xb",function(){return ma}),n.d(e,"yb",function(){return Sa}),n.d(e,"zb",function(){return Lr}),n.d(e,"Ab",function(){return Xi}),n.d(e,"Bb",function(){return Ho}),n.d(e,"Cb",function(){return sa}),n.d(e,"Db",function(){return ia}),n.d(e,"Eb",function(){return Bo}),n.d(e,"Fb",function(){return Ml}),n.d(e,"Gb",function(){return St}),n.d(e,"Hb",function(){return Ft}),n.d(e,"Ib",function(){return v}),n.d(e,"Jb",function(){return w}),n.d(e,"Kb",function(){return At}),n.d(e,"Lb",function(){return It}),n.d(e,"Mb",function(){return io}),n.d(e,"Nb",function(){return ho}),n.d(e,"Ob",function(){return mo}),n.d(e,"Pb",function(){return po}),n.d(e,"Qb",function(){return fo}),n.d(e,"Rb",function(){return uo}),n.d(e,"Sb",function(){return lo}),n.d(e,"Tb",function(){return go}),n.d(e,"Ub",function(){return Dn}),n.d(e,"Vb",function(){return oa}),n.d(e,"Wb",function(){return Uc}),n.d(e,"Xb",function(){return Gc}),n.d(e,"Yb",function(){return zc}),n.d(e,"Zb",function(){return Wc}),n.d(e,"ac",function(){return it}),n.d(e,"bc",function(){return oo}),n.d(e,"cc",function(){return zl}),n.d(e,"dc",function(){return _o}),n.d(e,"ec",function(){return Vl}),n.d(e,"fc",function(){return Co}),n.d(e,"gc",function(){return fl}),n.d(e,"hc",function(){return pl}),n.d(e,"ic",function(){return ml}),n.d(e,"jc",function(){return gl}),n.d(e,"kc",function(){return xo}),n.d(e,"lc",function(){return Eo}),n.d(e,"mc",function(){return ao}),n.d(e,"nc",function(){return ko}),n.d(e,"oc",function(){return Ao}),n.d(e,"pc",function(){return To}),n.d(e,"qc",function(){return ol}),n.d(e,"rc",function(){return al}),n.d(e,"sc",function(){return cl}),n.d(e,"tc",function(){return ll}),n.d(e,"uc",function(){return jl}),n.d(e,"vc",function(){return so}),n.d(e,"wc",function(){return fe}),n.d(e,"xc",function(){return yr}),n.d(e,"yc",function(){return _r}),n.d(e,"zc",function(){return Tt}),n.d(e,"Ac",function(){return Pl}),n.d(e,"Bc",function(){return Fl}),n.d(e,"Cc",function(){return Vo}),n.d(e,"Dc",function(){return ro}),n.d(e,"Ec",function(){return Ul}),n.d(e,"Fc",function(){return Yo}),n.d(e,"Gc",function(){return Xo}),n.d(e,"Hc",function(){return ta}),n.d(e,"Ic",function(){return ea}),n.d(e,"Jc",function(){return na}),n.d(e,"Kc",function(){return ra}),n.d(e,"Lc",function(){return aa}),n.d(e,"Mc",function(){return Il});var r=n("XNiG"),s=n("quSY"),i=n("HDdC"),o=n("VRyK"),a=n("w1tV");function c(t){return{toString:t}.toString()}const l="__parameters__";function u(t,e,n){return c(()=>{const r=function(t){return function(...e){if(t){const n=t(...e);for(const t in n)this[t]=n[t]}}}(e);function s(...t){if(this instanceof s)return r.apply(this,t),this;const e=new s(...t);return n.annotation=e,n;function n(t,n,r){const s=t.hasOwnProperty(l)?t[l]:Object.defineProperty(t,l,{value:[]})[l];for(;s.length<=r;)s.push(null);return(s[r]=s[r]||[]).push(e),t}}return n&&(s.prototype=Object.create(n.prototype)),s.prototype.ngMetadataName=t,s.annotationCls=s,s})}const h=u("Inject",t=>({token:t})),d=u("Optional"),f=u("Self"),p=u("SkipSelf"),m=u("Host"),g=u("Attribute",t=>({attributeName:t}));var b=function(t){return t[t.Default=0]="Default",t[t.Host=1]="Host",t[t.Self=2]="Self",t[t.SkipSelf=4]="SkipSelf",t[t.Optional=8]="Optional",t}({});function y(t){for(let e in t)if(t[e]===y)return e;throw Error("Could not find renamed property on target object.")}function _(t,e){for(const n in e)e.hasOwnProperty(n)&&!t.hasOwnProperty(n)&&(t[n]=e[n])}function v(t){return{token:t.token,providedIn:t.providedIn||null,factory:t.factory,value:void 0}}function w(t){return{factory:t.factory,providers:t.providers||[],imports:t.imports||[]}}function C(t){return D(t,t[S])||D(t,t[k])}function D(t,e){return e&&e.token===t?e:null}function E(t){return t&&(t.hasOwnProperty(O)||t.hasOwnProperty(A))?t[O]:null}const S=y({"\u0275prov":y}),O=y({"\u0275inj":y}),x=y({"\u0275provFallback":y}),k=y({ngInjectableDef:y}),A=y({ngInjectorDef:y});function T(t){if("string"==typeof t)return t;if(Array.isArray(t))return"["+t.map(T).join(", ")+"]";if(null==t)return""+t;if(t.overriddenName)return""+t.overriddenName;if(t.name)return""+t.name;const e=t.toString();if(null==e)return""+e;const n=e.indexOf("\n");return-1===n?e:e.substring(0,n)}function j(t,e){return null==t||""===t?null===e?"":e:null==e||""===e?t:t+" "+e}const F=y({__forward_ref__:y});function I(t){return t.__forward_ref__=I,t.toString=function(){return T(this())},t}function R(t){return M(t)?t():t}function M(t){return"function"==typeof t&&t.hasOwnProperty(F)&&t.__forward_ref__===I}const P="undefined"!=typeof globalThis&&globalThis,N="undefined"!=typeof window&&window,V="undefined"!=typeof self&&"undefined"!=typeof WorkerGlobalScope&&self instanceof WorkerGlobalScope&&self,B="undefined"!=typeof global&&global,H=P||B||N||V,L=y({"\u0275cmp":y}),U=y({"\u0275dir":y}),z=y({"\u0275pipe":y}),$=y({"\u0275mod":y}),q=y({"\u0275loc":y}),W=y({"\u0275fac":y}),G=y({__NG_ELEMENT_ID__:y});class K{constructor(t,e){this._desc=t,this.ngMetadataName="InjectionToken",this.\u0275prov=void 0,"number"==typeof e?this.__NG_ELEMENT_ID__=e:void 0!==e&&(this.\u0275prov=v({token:this,providedIn:e.providedIn||"root",factory:e.factory}))}toString(){return"InjectionToken "+this._desc}}const Q=new K("INJECTOR",-1),Z={},J=/\n/gm,Y="__source",X=y({provide:String,useValue:y});let tt,et=void 0;function nt(t){const e=et;return et=t,e}function rt(t){const e=tt;return tt=t,e}function st(t,e=b.Default){if(void 0===et)throw new Error("inject() must be called from an injection context");return null===et?ot(t,void 0,e):et.get(t,e&b.Optional?null:void 0,e)}function it(t,e=b.Default){return(tt||st)(R(t),e)}function ot(t,e,n){const r=C(t);if(r&&"root"==r.providedIn)return void 0===r.value?r.value=r.factory():r.value;if(n&b.Optional)return null;if(void 0!==e)return e;throw new Error(`Injector: NOT_FOUND [${T(t)}]`)}function at(t){const e=[];for(let n=0;n<t.length;n++){const r=R(t[n]);if(Array.isArray(r)){if(0===r.length)throw new Error("Arguments array must have arguments.");let t=void 0,n=b.Default;for(let e=0;e<r.length;e++){const s=r[e];s instanceof d||"Optional"===s.ngMetadataName||s===d?n|=b.Optional:s instanceof p||"SkipSelf"===s.ngMetadataName||s===p?n|=b.SkipSelf:s instanceof f||"Self"===s.ngMetadataName||s===f?n|=b.Self:t=s instanceof h||s===h?s.token:s}e.push(it(t,n))}else e.push(it(r))}return e}class ct{get(t,e=Z){if(e===Z){const e=new Error(`NullInjectorError: No provider for ${T(t)}!`);throw e.name="NullInjectorError",e}return e}}class lt{}class ut{}function ht(t,e){for(let n=0;n<t.length;n++)e.push(t[n])}function dt(t,e){void 0===e&&(e=t);for(let n=0;n<t.length;n++){let r=t[n];Array.isArray(r)?(e===t&&(e=t.slice(0,n)),dt(r,e)):e!==t&&e.push(r)}return e}function ft(t,e){t.forEach(t=>Array.isArray(t)?ft(t,e):e(t))}function pt(t,e,n){e>=t.length?t.push(n):t.splice(e,0,n)}function mt(t,e){return e>=t.length-1?t.pop():t.splice(e,1)[0]}function gt(t,e){const n=[];for(let r=0;r<t;r++)n.push(e);return n}function bt(t,e,n){let r=_t(t,e);return r>=0?t[1|r]=n:(r=~r,function(t,e,n,r){let s=t.length;if(s==e)t.push(n,r);else if(1===s)t.push(r,t[0]),t[0]=n;else{for(s--,t.push(t[s-1],t[s]);s>e;)t[s]=t[s-2],s--;t[e]=n,t[e+1]=r}}(t,r,e,n)),r}function yt(t,e){const n=_t(t,e);if(n>=0)return t[1|n]}function _t(t,e){return function(t,e,n){let r=0,s=t.length>>1;for(;s!==r;){const n=r+(s-r>>1),i=t[n<<1];if(e===i)return n<<1;i>e?s=n:r=n+1}return~(s<<1)}(t,e)}var vt=function(t){return t[t.OnPush=0]="OnPush",t[t.Default=1]="Default",t}({}),wt=function(t){return t[t.Emulated=0]="Emulated",t[t.Native=1]="Native",t[t.None=2]="None",t[t.ShadowDom=3]="ShadowDom",t}({});const Ct={},Dt=[];let Et=0;function St(t){return c(()=>{const e=t.type,n=e.prototype,r={},s={type:e,providersResolver:null,decls:t.decls,vars:t.vars,factory:null,template:t.template||null,consts:t.consts||null,ngContentSelectors:t.ngContentSelectors,hostBindings:t.hostBindings||null,hostVars:t.hostVars||0,hostAttrs:t.hostAttrs||null,contentQueries:t.contentQueries||null,declaredInputs:r,inputs:null,outputs:null,exportAs:t.exportAs||null,onChanges:null,onInit:n.ngOnInit||null,doCheck:n.ngDoCheck||null,afterContentInit:n.ngAfterContentInit||null,afterContentChecked:n.ngAfterContentChecked||null,afterViewInit:n.ngAfterViewInit||null,afterViewChecked:n.ngAfterViewChecked||null,onDestroy:n.ngOnDestroy||null,onPush:t.changeDetection===vt.OnPush,directiveDefs:null,pipeDefs:null,selectors:t.selectors||Dt,viewQuery:t.viewQuery||null,features:t.features||null,data:t.data||{},encapsulation:t.encapsulation||wt.Emulated,id:"c",styles:t.styles||Dt,_:null,setInput:null,schemas:t.schemas||null,tView:null},i=t.directives,o=t.features,a=t.pipes;return s.id+=Et++,s.inputs=jt(t.inputs,r),s.outputs=jt(t.outputs),o&&o.forEach(t=>t(s)),s.directiveDefs=i?()=>("function"==typeof i?i():i).map(Ot):null,s.pipeDefs=a?()=>("function"==typeof a?a():a).map(xt):null,s})}function Ot(t){return Rt(t)||function(t){return t[U]||null}(t)}function xt(t){return function(t){return t[z]||null}(t)}const kt={};function At(t){const e={type:t.type,bootstrap:t.bootstrap||Dt,declarations:t.declarations||Dt,imports:t.imports||Dt,exports:t.exports||Dt,transitiveCompileScopes:null,schemas:t.schemas||null,id:t.id||null};return null!=t.id&&c(()=>{kt[t.id]=t.type}),e}function Tt(t,e){return c(()=>{const n=Pt(t,!0);n.declarations=e.declarations||Dt,n.imports=e.imports||Dt,n.exports=e.exports||Dt})}function jt(t,e){if(null==t)return Ct;const n={};for(const r in t)if(t.hasOwnProperty(r)){let s=t[r],i=s;Array.isArray(s)&&(i=s[1],s=s[0]),n[s]=r,e&&(e[s]=i)}return n}const Ft=St;function It(t){return{type:t.type,name:t.name,factory:null,pure:!1!==t.pure,onDestroy:t.type.prototype.ngOnDestroy||null}}function Rt(t){return t[L]||null}function Mt(t,e){return t.hasOwnProperty(W)?t[W]:null}function Pt(t,e){const n=t[$]||null;if(!n&&!0===e)throw new Error(`Type ${T(t)} does not have '\u0275mod' property.`);return n}const Nt=20,Vt=10;function Bt(t){return Array.isArray(t)&&"object"==typeof t[1]}function Ht(t){return Array.isArray(t)&&!0===t[1]}function Lt(t){return 0!=(8&t.flags)}function Ut(t){return 2==(2&t.flags)}function zt(t){return 1==(1&t.flags)}function $t(t){return null!==t.template}function qt(t){return 0!=(512&t[2])}let Wt=void 0;function Gt(t){Wt=t}function Kt(){return void 0!==Wt?Wt:"undefined"!=typeof document?document:void 0}function Qt(t){return!!t.listen}const Zt={createRenderer:(t,e)=>Kt()};function Jt(t){for(;Array.isArray(t);)t=t[0];return t}function Yt(t,e){return Jt(e[t+Nt])}function Xt(t,e){return Jt(e[t.index])}function te(t,e){return t.data[e+Nt]}function ee(t,e){return t[e+Nt]}function ne(t,e){const n=e[t];return Bt(n)?n:n[0]}function re(t){const e=function(t){return t.__ngContext__||null}(t);return e?Array.isArray(e)?e:e.lView:null}function se(t){return 4==(4&t[2])}function ie(t){return 128==(128&t[2])}function oe(t,e){return null===t||null==e?null:t[e]}function ae(t){t[18]=0}function ce(t,e){t[5]+=e;let n=t,r=t[3];for(;null!==r&&(1===e&&1===n[5]||-1===e&&0===n[5]);)r[5]+=e,n=r,r=r[3]}const le={lFrame:Fe(null),bindingsEnabled:!0,checkNoChangesMode:!1};function ue(){return le.bindingsEnabled}function he(){return le.lFrame.lView}function de(){return le.lFrame.tView}function fe(t){le.lFrame.contextLView=t}function pe(){return le.lFrame.previousOrParentTNode}function me(t,e){le.lFrame.previousOrParentTNode=t,le.lFrame.isParent=e}function ge(){return le.lFrame.isParent}function be(){le.lFrame.isParent=!1}function ye(){return le.checkNoChangesMode}function _e(t){le.checkNoChangesMode=t}function ve(){const t=le.lFrame;let e=t.bindingRootIndex;return-1===e&&(e=t.bindingRootIndex=t.tView.bindingStartIndex),e}function we(){return le.lFrame.bindingIndex}function Ce(){return le.lFrame.bindingIndex++}function De(t){const e=le.lFrame,n=e.bindingIndex;return e.bindingIndex=e.bindingIndex+t,n}function Ee(t,e){const n=le.lFrame;n.bindingIndex=n.bindingRootIndex=t,Se(e)}function Se(t){le.lFrame.currentDirectiveIndex=t}function Oe(t){const e=le.lFrame.currentDirectiveIndex;return-1===e?null:t[e]}function xe(){return le.lFrame.currentQueryIndex}function ke(t){le.lFrame.currentQueryIndex=t}function Ae(t,e){const n=je();le.lFrame=n,n.previousOrParentTNode=e,n.lView=t}function Te(t,e){const n=je(),r=t[1];le.lFrame=n,n.previousOrParentTNode=e,n.lView=t,n.tView=r,n.contextLView=t,n.bindingIndex=r.bindingStartIndex}function je(){const t=le.lFrame,e=null===t?null:t.child;return null===e?Fe(t):e}function Fe(t){const e={previousOrParentTNode:null,isParent:!0,lView:null,tView:null,selectedIndex:0,contextLView:null,elementDepthCount:0,currentNamespace:null,currentDirectiveIndex:-1,bindingRootIndex:-1,bindingIndex:-1,currentQueryIndex:0,parent:t,child:null};return null!==t&&(t.child=e),e}function Ie(){const t=le.lFrame;return le.lFrame=t.parent,t.previousOrParentTNode=null,t.lView=null,t}const Re=Ie;function Me(){const t=Ie();t.isParent=!0,t.tView=null,t.selectedIndex=0,t.contextLView=null,t.elementDepthCount=0,t.currentDirectiveIndex=-1,t.currentNamespace=null,t.bindingRootIndex=-1,t.bindingIndex=-1,t.currentQueryIndex=0}function Pe(){return le.lFrame.selectedIndex}function Ne(t){le.lFrame.selectedIndex=t}function Ve(){const t=le.lFrame;return te(t.tView,t.selectedIndex)}function Be(t,e){for(let n=e.directiveStart,r=e.directiveEnd;n<r;n++){const e=t.data[n];e.afterContentInit&&(t.contentHooks||(t.contentHooks=[])).push(-n,e.afterContentInit),e.afterContentChecked&&((t.contentHooks||(t.contentHooks=[])).push(n,e.afterContentChecked),(t.contentCheckHooks||(t.contentCheckHooks=[])).push(n,e.afterContentChecked)),e.afterViewInit&&(t.viewHooks||(t.viewHooks=[])).push(-n,e.afterViewInit),e.afterViewChecked&&((t.viewHooks||(t.viewHooks=[])).push(n,e.afterViewChecked),(t.viewCheckHooks||(t.viewCheckHooks=[])).push(n,e.afterViewChecked)),null!=e.onDestroy&&(t.destroyHooks||(t.destroyHooks=[])).push(n,e.onDestroy)}}function He(t,e,n){ze(t,e,3,n)}function Le(t,e,n,r){(3&t[2])===n&&ze(t,e,n,r)}function Ue(t,e){let n=t[2];(3&n)===e&&(n&=2047,n+=1,t[2]=n)}function ze(t,e,n,r){const s=null!=r?r:-1;let i=0;for(let o=void 0!==r?65535&t[18]:0;o<e.length;o++)if("number"==typeof e[o+1]){if(i=e[o],null!=r&&i>=r)break}else e[o]<0&&(t[18]+=65536),(i<s||-1==s)&&($e(t,n,e,o),t[18]=(4294901760&t[18])+o+2),o++}function $e(t,e,n,r){const s=n[r]<0,i=n[r+1],o=t[s?-n[r]:n[r]];s?t[2]>>11<t[18]>>16&&(3&t[2])===e&&(t[2]+=2048,i.call(o)):i.call(o)}class qe{constructor(t,e,n){this.factory=t,this.resolving=!1,this.canSeeViewProviders=e,this.injectImpl=n}}function We(t,e,n){const r=Qt(t);let s=0;for(;s<n.length;){const i=n[s];if("number"==typeof i){if(0!==i)break;s++;const o=n[s++],a=n[s++],c=n[s++];r?t.setAttribute(e,a,c,o):e.setAttributeNS(o,a,c)}else{const o=i,a=n[++s];Ke(o)?r&&t.setProperty(e,o,a):r?t.setAttribute(e,o,a):e.setAttribute(o,a),s++}}return s}function Ge(t){return 3===t||4===t||6===t}function Ke(t){return 64===t.charCodeAt(0)}function Qe(t,e){if(null===e||0===e.length);else if(null===t||0===t.length)t=e.slice();else{let n=-1;for(let r=0;r<e.length;r++){const s=e[r];"number"==typeof s?n=s:0===n||Ze(t,n,s,null,-1===n||2===n?e[++r]:null)}}return t}function Ze(t,e,n,r,s){let i=0,o=t.length;if(-1===e)o=-1;else for(;i<t.length;){const n=t[i++];if("number"==typeof n){if(n===e){o=-1;break}if(n>e){o=i-1;break}}}for(;i<t.length;){const e=t[i];if("number"==typeof e)break;if(e===n){if(null===r)return void(null!==s&&(t[i+1]=s));if(r===t[i+1])return void(t[i+2]=s)}i++,null!==r&&i++,null!==s&&i++}-1!==o&&(t.splice(o,0,e),i=o+1),t.splice(i++,0,n),null!==r&&t.splice(i++,0,r),null!==s&&t.splice(i++,0,s)}function Je(t){return-1!==t}function Ye(t){return 32767&t}function Xe(t){return t>>16}function tn(t,e){let n=Xe(t),r=e;for(;n>0;)r=r[15],n--;return r}function en(t){return"string"==typeof t?t:null==t?"":""+t}function nn(t){return"function"==typeof t?t.name||t.toString():"object"==typeof t&&null!=t&&"function"==typeof t.type?t.type.name||t.type.toString():en(t)}const rn=(()=>("undefined"!=typeof requestAnimationFrame&&requestAnimationFrame||setTimeout).bind(H))();function sn(t){return t instanceof Function?t():t}let on=!0;function an(t){const e=on;return on=t,e}let cn=0;function ln(t,e){const n=hn(t,e);if(-1!==n)return n;const r=e[1];r.firstCreatePass&&(t.injectorIndex=e.length,un(r.data,t),un(e,null),un(r.blueprint,null));const s=dn(t,e),i=t.injectorIndex;if(Je(s)){const t=Ye(s),n=tn(s,e),r=n[1].data;for(let s=0;s<8;s++)e[i+s]=n[t+s]|r[t+s]}return e[i+8]=s,i}function un(t,e){t.push(0,0,0,0,0,0,0,0,e)}function hn(t,e){return-1===t.injectorIndex||t.parent&&t.parent.injectorIndex===t.injectorIndex||null==e[t.injectorIndex+8]?-1:t.injectorIndex}function dn(t,e){if(t.parent&&-1!==t.parent.injectorIndex)return t.parent.injectorIndex;let n=e[6],r=1;for(;n&&-1===n.injectorIndex;)n=(e=e[15])?e[6]:null,r++;return n?n.injectorIndex|r<<16:-1}function fn(t,e,n){!function(t,e,n){let r;"string"==typeof n?r=n.charCodeAt(0)||0:n.hasOwnProperty(G)&&(r=n[G]),null==r&&(r=n[G]=cn++);const s=255&r,i=1<<s,o=64&s,a=32&s,c=e.data;128&s?o?a?c[t+7]|=i:c[t+6]|=i:a?c[t+5]|=i:c[t+4]|=i:o?a?c[t+3]|=i:c[t+2]|=i:a?c[t+1]|=i:c[t]|=i}(t,e,n)}function pn(t,e,n,r=b.Default,s){if(null!==t){const s=function(t){if("string"==typeof t)return t.charCodeAt(0)||0;const e=t.hasOwnProperty(G)?t[G]:void 0;return"number"==typeof e&&e>0?255&e:e}(n);if("function"==typeof s){Ae(e,t);try{const t=s();if(null!=t||r&b.Optional)return t;throw new Error(`No provider for ${nn(n)}!`)}finally{Re()}}else if("number"==typeof s){if(-1===s)return new wn(t,e);let i=null,o=hn(t,e),a=-1,c=r&b.Host?e[16][6]:null;for((-1===o||r&b.SkipSelf)&&(a=-1===o?dn(t,e):e[o+8],vn(r,!1)?(i=e[1],o=Ye(a),e=tn(a,e)):o=-1);-1!==o;){a=e[o+8];const t=e[1];if(_n(s,o,t.data)){const t=gn(o,e,n,i,r,c);if(t!==mn)return t}vn(r,e[1].data[o+8]===c)&&_n(s,o,e)?(i=t,o=Ye(a),e=tn(a,e)):o=-1}}}if(r&b.Optional&&void 0===s&&(s=null),0==(r&(b.Self|b.Host))){const t=e[9],i=rt(void 0);try{return t?t.get(n,s,r&b.Optional):ot(n,s,r&b.Optional)}finally{rt(i)}}if(r&b.Optional)return s;throw new Error(`NodeInjector: NOT_FOUND [${nn(n)}]`)}const mn={};function gn(t,e,n,r,s,i){const o=e[1],a=o.data[t+8],c=bn(a,o,n,null==r?Ut(a)&&on:r!=o&&3===a.type,s&b.Host&&i===a);return null!==c?yn(e,o,c,a):mn}function bn(t,e,n,r,s){const i=t.providerIndexes,o=e.data,a=65535&i,c=t.directiveStart,l=i>>16,u=s?a+l:t.directiveEnd;for(let h=r?a:a+l;h<u;h++){const t=o[h];if(h<c&&n===t||h>=c&&t.type===n)return h}if(s){const t=o[c];if(t&&$t(t)&&t.type===n)return c}return null}function yn(t,e,n,r){let s=t[n];const i=e.data;if(s instanceof qe){const o=s;if(o.resolving)throw new Error("Circular dep for "+nn(i[n]));const a=an(o.canSeeViewProviders);let c;o.resolving=!0,o.injectImpl&&(c=rt(o.injectImpl)),Ae(t,r);try{s=t[n]=o.factory(void 0,i,t,r),e.firstCreatePass&&n>=r.directiveStart&&function(t,e,n){const{onChanges:r,onInit:s,doCheck:i}=e;r&&((n.preOrderHooks||(n.preOrderHooks=[])).push(t,r),(n.preOrderCheckHooks||(n.preOrderCheckHooks=[])).push(t,r)),s&&(n.preOrderHooks||(n.preOrderHooks=[])).push(-t,s),i&&((n.preOrderHooks||(n.preOrderHooks=[])).push(t,i),(n.preOrderCheckHooks||(n.preOrderCheckHooks=[])).push(t,i))}(n,i[n],e)}finally{o.injectImpl&&rt(c),an(a),o.resolving=!1,Re()}}return s}function _n(t,e,n){const r=64&t,s=32&t;let i;return i=128&t?r?s?n[e+7]:n[e+6]:s?n[e+5]:n[e+4]:r?s?n[e+3]:n[e+2]:s?n[e+1]:n[e],!!(i&1<<t)}function vn(t,e){return!(t&b.Self||t&b.Host&&e)}class wn{constructor(t,e){this._tNode=t,this._lView=e}get(t,e){return pn(this._tNode,this._lView,t,void 0,e)}}function Cn(t){const e=t;if(M(t))return()=>{const t=Cn(R(e));return t?t():null};let n=Mt(e);if(null===n){const t=E(e);n=t&&t.factory}return n||null}function Dn(t){return c(()=>{const e=t.prototype.constructor,n=e[W]||Cn(e),r=Object.prototype;let s=Object.getPrototypeOf(t.prototype).constructor;for(;s&&s!==r;){const t=s[W]||Cn(s);if(t&&t!==n)return t;s=Object.getPrototypeOf(s)}return t=>new t})}function En(t){return t.ngDebugContext}function Sn(t){return t.ngOriginalError}function On(t,...e){t.error(...e)}class xn{constructor(){this._console=console}handleError(t){const e=this._findOriginalError(t),n=this._findContext(t),r=function(t){return t.ngErrorLogger||On}(t);r(this._console,"ERROR",t),e&&r(this._console,"ORIGINAL ERROR",e),n&&r(this._console,"ERROR CONTEXT",n)}_findContext(t){return t?En(t)?En(t):this._findContext(Sn(t)):null}_findOriginalError(t){let e=Sn(t);for(;e&&Sn(e);)e=Sn(e);return e}}class kn{constructor(t){this.changingThisBreaksApplicationSecurity=t}toString(){return"SafeValue must use [property]=binding: "+this.changingThisBreaksApplicationSecurity+" (see http://g.co/ng/security#xss)"}}class An extends kn{getTypeName(){return"HTML"}}class Tn extends kn{getTypeName(){return"Style"}}class jn extends kn{getTypeName(){return"Script"}}class Fn extends kn{getTypeName(){return"URL"}}class In extends kn{getTypeName(){return"ResourceURL"}}function Rn(t){return t instanceof kn?t.changingThisBreaksApplicationSecurity:t}function Mn(t,e){const n=Pn(t);if(null!=n&&n!==e){if("ResourceURL"===n&&"URL"===e)return!0;throw new Error(`Required a safe ${e}, got a ${n} (see http://g.co/ng/security#xss)`)}return n===e}function Pn(t){return t instanceof kn&&t.getTypeName()||null}function Nn(t){return new An(t)}function Vn(t){return new Tn(t)}function Bn(t){return new jn(t)}function Hn(t){return new Fn(t)}function Ln(t){return new In(t)}let Un=!0,zn=!1;function $n(){return zn=!0,Un}function qn(){if(zn)throw new Error("Cannot enable prod mode after platform setup.");Un=!1}function Wn(t){return function(){try{return!!(new window.DOMParser).parseFromString("","text/html")}catch(t){return!1}}()?new Gn:new Kn(t)}class Gn{getInertBodyElement(t){t="<body><remove></remove>"+t+"</body>";try{const e=(new window.DOMParser).parseFromString(t,"text/html").body;return e.removeChild(e.firstChild),e}catch(e){return null}}}class Kn{constructor(t){if(this.defaultDoc=t,this.inertDocument=this.defaultDoc.implementation.createHTMLDocument("sanitization-inert"),null==this.inertDocument.body){const t=this.inertDocument.createElement("html");this.inertDocument.appendChild(t);const e=this.inertDocument.createElement("body");t.appendChild(e)}}getInertBodyElement(t){const e=this.inertDocument.createElement("template");if("content"in e)return e.innerHTML=t,e;const n=this.inertDocument.createElement("body");return n.innerHTML=t,this.defaultDoc.documentMode&&this.stripCustomNsAttrs(n),n}stripCustomNsAttrs(t){const e=t.attributes;for(let r=e.length-1;0<r;r--){const n=e.item(r).name;"xmlns:ns1"!==n&&0!==n.indexOf("ns1:")||t.removeAttribute(n)}let n=t.firstChild;for(;n;)n.nodeType===Node.ELEMENT_NODE&&this.stripCustomNsAttrs(n),n=n.nextSibling}}const Qn=/^(?:(?:https?|mailto|ftp|tel|file):|[^&:/?#]*(?:[/?#]|$))/gi,Zn=/^data:(?:image\/(?:bmp|gif|jpeg|jpg|png|tiff|webp)|video\/(?:mpeg|mp4|ogg|webm)|audio\/(?:mp3|oga|ogg|opus));base64,[a-z0-9+\/]+=*$/i;function Jn(t){return(t=String(t)).match(Qn)||t.match(Zn)?t:($n()&&console.warn(`WARNING: sanitizing unsafe URL value ${t} (see http://g.co/ng/security#xss)`),"unsafe:"+t)}function Yn(t){return(t=String(t)).split(",").map(t=>Jn(t.trim())).join(", ")}function Xn(t){const e={};for(const n of t.split(","))e[n]=!0;return e}function tr(...t){const e={};for(const n of t)for(const t in n)n.hasOwnProperty(t)&&(e[t]=!0);return e}const er=Xn("area,br,col,hr,img,wbr"),nr=Xn("colgroup,dd,dt,li,p,tbody,td,tfoot,th,thead,tr"),rr=Xn("rp,rt"),sr=tr(rr,nr),ir=tr(er,tr(nr,Xn("address,article,aside,blockquote,caption,center,del,details,dialog,dir,div,dl,figure,figcaption,footer,h1,h2,h3,h4,h5,h6,header,hgroup,hr,ins,main,map,menu,nav,ol,pre,section,summary,table,ul")),tr(rr,Xn("a,abbr,acronym,audio,b,bdi,bdo,big,br,cite,code,del,dfn,em,font,i,img,ins,kbd,label,map,mark,picture,q,ruby,rp,rt,s,samp,small,source,span,strike,strong,sub,sup,time,track,tt,u,var,video")),sr),or=Xn("background,cite,href,itemtype,longdesc,poster,src,xlink:href"),ar=Xn("srcset"),cr=tr(or,ar,Xn("abbr,accesskey,align,alt,autoplay,axis,bgcolor,border,cellpadding,cellspacing,class,clear,color,cols,colspan,compact,controls,coords,datetime,default,dir,download,face,headers,height,hidden,hreflang,hspace,ismap,itemscope,itemprop,kind,label,lang,language,loop,media,muted,nohref,nowrap,open,preload,rel,rev,role,rows,rowspan,rules,scope,scrolling,shape,size,sizes,span,srclang,start,summary,tabindex,target,title,translate,type,usemap,valign,value,vspace,width"),Xn("aria-activedescendant,aria-atomic,aria-autocomplete,aria-busy,aria-checked,aria-colcount,aria-colindex,aria-colspan,aria-controls,aria-current,aria-describedby,aria-details,aria-disabled,aria-dropeffect,aria-errormessage,aria-expanded,aria-flowto,aria-grabbed,aria-haspopup,aria-hidden,aria-invalid,aria-keyshortcuts,aria-label,aria-labelledby,aria-level,aria-live,aria-modal,aria-multiline,aria-multiselectable,aria-orientation,aria-owns,aria-placeholder,aria-posinset,aria-pressed,aria-readonly,aria-relevant,aria-required,aria-roledescription,aria-rowcount,aria-rowindex,aria-rowspan,aria-selected,aria-setsize,aria-sort,aria-valuemax,aria-valuemin,aria-valuenow,aria-valuetext")),lr=Xn("script,style,template");class ur{constructor(){this.sanitizedSomething=!1,this.buf=[]}sanitizeChildren(t){let e=t.firstChild,n=!0;for(;e;)if(e.nodeType===Node.ELEMENT_NODE?n=this.startElement(e):e.nodeType===Node.TEXT_NODE?this.chars(e.nodeValue):this.sanitizedSomething=!0,n&&e.firstChild)e=e.firstChild;else for(;e;){e.nodeType===Node.ELEMENT_NODE&&this.endElement(e);let t=this.checkClobberedElement(e,e.nextSibling);if(t){e=t;break}e=this.checkClobberedElement(e,e.parentNode)}return this.buf.join("")}startElement(t){const e=t.nodeName.toLowerCase();if(!ir.hasOwnProperty(e))return this.sanitizedSomething=!0,!lr.hasOwnProperty(e);this.buf.push("<"),this.buf.push(e);const n=t.attributes;for(let r=0;r<n.length;r++){const t=n.item(r),e=t.name,s=e.toLowerCase();if(!cr.hasOwnProperty(s)){this.sanitizedSomething=!0;continue}let i=t.value;or[s]&&(i=Jn(i)),ar[s]&&(i=Yn(i)),this.buf.push(" ",e,'="',fr(i),'"')}return this.buf.push(">"),!0}endElement(t){const e=t.nodeName.toLowerCase();ir.hasOwnProperty(e)&&!er.hasOwnProperty(e)&&(this.buf.push("</"),this.buf.push(e),this.buf.push(">"))}chars(t){this.buf.push(fr(t))}checkClobberedElement(t,e){if(e&&(t.compareDocumentPosition(e)&Node.DOCUMENT_POSITION_CONTAINED_BY)===Node.DOCUMENT_POSITION_CONTAINED_BY)throw new Error("Failed to sanitize html because the element is clobbered: "+t.outerHTML);return e}}const hr=/[\uD800-\uDBFF][\uDC00-\uDFFF]/g,dr=/([^\#-~ |!])/g;function fr(t){return t.replace(/&/g,"&amp;").replace(hr,function(t){return"&#"+(1024*(t.charCodeAt(0)-55296)+(t.charCodeAt(1)-56320)+65536)+";"}).replace(dr,function(t){return"&#"+t.charCodeAt(0)+";"}).replace(/</g,"&lt;").replace(/>/g,"&gt;")}let pr;function mr(t,e){let n=null;try{pr=pr||Wn(t);let r=e?String(e):"";n=pr.getInertBodyElement(r);let s=5,i=r;do{if(0===s)throw new Error("Failed to sanitize html because the input is unstable");s--,r=i,i=n.innerHTML,n=pr.getInertBodyElement(r)}while(r!==i);const o=new ur,a=o.sanitizeChildren(gr(n)||n);return $n()&&o.sanitizedSomething&&console.warn("WARNING: sanitizing HTML stripped some content, see http://g.co/ng/security#xss"),a}finally{if(n){const t=gr(n)||n;for(;t.firstChild;)t.removeChild(t.firstChild)}}}function gr(t){return"content"in t&&function(t){return t.nodeType===Node.ELEMENT_NODE&&"TEMPLATE"===t.nodeName}(t)?t.content:null}var br=function(t){return t[t.NONE=0]="NONE",t[t.HTML=1]="HTML",t[t.STYLE=2]="STYLE",t[t.SCRIPT=3]="SCRIPT",t[t.URL=4]="URL",t[t.RESOURCE_URL=5]="RESOURCE_URL",t}({});function yr(t){const e=vr();return e?e.sanitize(br.HTML,t)||"":Mn(t,"HTML")?Rn(t):mr(Kt(),en(t))}function _r(t){const e=vr();return e?e.sanitize(br.URL,t)||"":Mn(t,"URL")?Rn(t):Jn(en(t))}function vr(){const t=he();return t&&t[12]}function wr(t,e){t.__ngContext__=e}function Cr(t){throw new Error("Multiple components match node with tagname "+t.tagName)}function Dr(){throw new Error("Cannot mix multi providers and regular providers")}function Er(t,e,n){let r=t.length;for(;;){const s=t.indexOf(e,n);if(-1===s)return s;if(0===s||t.charCodeAt(s-1)<=32){const n=e.length;if(s+n===r||t.charCodeAt(s+n)<=32)return s}n=s+1}}const Sr="ng-template";function Or(t,e,n){let r=0;for(;r<t.length;){let s=t[r++];if(n&&"class"===s){if(s=t[r],-1!==Er(s.toLowerCase(),e,0))return!0}else if(1===s){for(;r<t.length&&"string"==typeof(s=t[r++]);)if(s.toLowerCase()===e)return!0;return!1}}return!1}function xr(t){return 0===t.type&&t.tagName!==Sr}function kr(t,e,n){return e===(0!==t.type||n?t.tagName:Sr)}function Ar(t,e,n){let r=4;const s=t.attrs||[],i=function(t){for(let e=0;e<t.length;e++)if(Ge(t[e]))return e;return t.length}(s);let o=!1;for(let a=0;a<e.length;a++){const c=e[a];if("number"!=typeof c){if(!o)if(4&r){if(r=2|1&r,""!==c&&!kr(t,c,n)||""===c&&1===e.length){if(Tr(r))return!1;o=!0}}else{const l=8&r?c:e[++a];if(8&r&&null!==t.attrs){if(!Or(t.attrs,l,n)){if(Tr(r))return!1;o=!0}continue}const u=jr(8&r?"class":c,s,xr(t),n);if(-1===u){if(Tr(r))return!1;o=!0;continue}if(""!==l){let t;t=u>i?"":s[u+1].toLowerCase();const e=8&r?t:null;if(e&&-1!==Er(e,l,0)||2&r&&l!==t){if(Tr(r))return!1;o=!0}}}}else{if(!o&&!Tr(r)&&!Tr(c))return!1;if(o&&Tr(c))continue;o=!1,r=c|1&r}}return Tr(r)||o}function Tr(t){return 0==(1&t)}function jr(t,e,n,r){if(null===e)return-1;let s=0;if(r||!n){let n=!1;for(;s<e.length;){const r=e[s];if(r===t)return s;if(3===r||6===r)n=!0;else{if(1===r||2===r){let t=e[++s];for(;"string"==typeof t;)t=e[++s];continue}if(4===r)break;if(0===r){s+=4;continue}}s+=n?1:2}return-1}return function(t,e){let n=t.indexOf(4);if(n>-1)for(n++;n<t.length;){const r=t[n];if("number"==typeof r)return-1;if(r===e)return n;n++}return-1}(e,t)}function Fr(t,e,n=!1){for(let r=0;r<e.length;r++)if(Ar(t,e[r],n))return!0;return!1}function Ir(t,e){t:for(let n=0;n<e.length;n++){const r=e[n];if(t.length===r.length){for(let e=0;e<t.length;e++)if(t[e]!==r[e])continue t;return!0}}return!1}function Rr(t,e){return t?":not("+e.trim()+")":e}function Mr(t){let e=t[0],n=1,r=2,s="",i=!1;for(;n<t.length;){let o=t[n];if("string"==typeof o)if(2&r){const e=t[++n];s+="["+o+(e.length>0?'="'+e+'"':"")+"]"}else 8&r?s+="."+o:4&r&&(s+=" "+o);else""===s||Tr(o)||(e+=Rr(i,s),s=""),r=o,i=i||!Tr(r);n++}return""!==s&&(e+=Rr(i,s)),e}const Pr={};function Nr(t){const e=t[3];return Ht(e)?e[3]:e}function Vr(t){return Hr(t[13])}function Br(t){return Hr(t[4])}function Hr(t){for(;null!==t&&!Ht(t);)t=t[4];return t}function Lr(t){Ur(de(),he(),Pe()+t,ye())}function Ur(t,e,n,r){if(!r)if(3==(3&e[2])){const r=t.preOrderCheckHooks;null!==r&&He(e,r,n)}else{const r=t.preOrderHooks;null!==r&&Le(e,r,0,n)}Ne(n)}const zr={marker:"element"},$r={marker:"comment"};function qr(t,e){return t<<17|e<<2}function Wr(t){return t>>17&32767}function Gr(t){return 2|t}function Kr(t){return(131068&t)>>2}function Qr(t,e){return-131069&t|e<<2}function Zr(t){return 1|t}function Jr(t,e){const n=t.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 n=t.data[i];ke(s),n.contentQueries(2,e[i],i)}}}function Yr(t,e,n){return Qt(e)?e.createElement(t,n):null===n?e.createElement(t):e.createElementNS(n,t)}function Xr(t,e,n,r,s,i,o,a,c,l){const u=e.blueprint.slice();return u[0]=s,u[2]=140|r,ae(u),u[3]=u[15]=t,u[8]=n,u[10]=o||t&&t[10],u[11]=a||t&&t[11],u[12]=c||t&&t[12]||null,u[9]=l||t&&t[9]||null,u[6]=i,u[16]=2==e.type?t[16]:u,u}function ts(t,e,n,r,s,i){const o=n+Nt,a=t.data[o]||function(t,e,n,r,s,i){const o=pe(),a=ge(),c=a?o:o&&o.parent,l=t.data[n]=hs(0,c&&c!==e?c:null,r,n,s,i);return null===t.firstChild&&(t.firstChild=l),o&&(!a||null!=o.child||null===l.parent&&2!==o.type?a||(o.next=l):o.child=l),l}(t,e,o,r,s,i);return me(a,!0),a}function es(t,e,n){Te(e,e[6]);try{const r=t.viewQuery;null!==r&&Ms(1,r,n);const s=t.template;null!==s&&ss(t,e,s,1,n),t.firstCreatePass&&(t.firstCreatePass=!1),t.staticContentQueries&&Jr(t,e),t.staticViewQueries&&Ms(2,t.viewQuery,n);const i=t.components;null!==i&&function(t,e){for(let n=0;n<e.length;n++)Ts(t,e[n])}(e,i)}catch(r){throw t.firstCreatePass&&(t.incompleteFirstPass=!0),r}finally{e[2]&=-5,Me()}}function ns(t,e,n,r){const s=e[2];if(256==(256&s))return;Te(e,e[6]);const i=ye();try{ae(e),le.lFrame.bindingIndex=t.bindingStartIndex,null!==n&&ss(t,e,n,2,r);const o=3==(3&s);if(!i)if(o){const n=t.preOrderCheckHooks;null!==n&&He(e,n,null)}else{const n=t.preOrderHooks;null!==n&&Le(e,n,0,null),Ue(e,0)}if(function(t){for(let e=Vr(t);null!==e;e=Br(e)){if(!e[2])continue;const t=e[9];for(let e=0;e<t.length;e++){const n=t[e],r=n[3];0==(1024&n[2])&&ce(r,1),n[2]|=1024}}}(e),function(t){for(let e=Vr(t);null!==e;e=Br(e))for(let t=Vt;t<e.length;t++){const n=e[t],r=n[1];ie(n)&&ns(r,n,r.template,n[8])}}(e),null!==t.contentQueries&&Jr(t,e),!i)if(o){const n=t.contentCheckHooks;null!==n&&He(e,n)}else{const n=t.contentHooks;null!==n&&Le(e,n,1),Ue(e,1)}!function(t,e){try{const n=t.expandoInstructions;if(null!==n){let r=t.expandoStartIndex,s=-1,i=-1;for(let t=0;t<n.length;t++){const o=n[t];"number"==typeof o?o<=0?(i=0-o,Ne(i),r+=9+n[++t],s=r):r+=o:(null!==o&&(Ee(r,s),o(2,e[s])),s++)}}}finally{Ne(-1)}}(t,e);const a=t.components;null!==a&&function(t,e){for(let n=0;n<e.length;n++)ks(t,e[n])}(e,a);const c=t.viewQuery;if(null!==c&&Ms(2,c,r),!i)if(o){const n=t.viewCheckHooks;null!==n&&He(e,n)}else{const n=t.viewHooks;null!==n&&Le(e,n,2),Ue(e,2)}!0===t.firstUpdatePass&&(t.firstUpdatePass=!1),i||(e[2]&=-73),1024&e[2]&&(e[2]&=-1025,ce(e[3],-1))}finally{Me()}}function rs(t,e,n,r){const s=e[10],i=!ye(),o=se(e);try{i&&!o&&s.begin&&s.begin(),o&&es(t,e,r),ns(t,e,n,r)}finally{i&&!o&&s.end&&s.end()}}function ss(t,e,n,r,s){const i=Pe();try{Ne(-1),2&r&&e.length>Nt&&Ur(t,e,0,ye()),n(r,s)}finally{Ne(i)}}function is(t,e,n){if(Lt(e)){const r=e.directiveEnd;for(let s=e.directiveStart;s<r;s++){const e=t.data[s];e.contentQueries&&e.contentQueries(1,n[s],s)}}}function os(t,e,n){ue()&&(function(t,e,n,r){const s=n.directiveStart,i=n.directiveEnd;t.firstCreatePass||ln(n,e),wr(r,e);const o=n.initialInputs;for(let a=s;a<i;a++){const r=t.data[a],i=$t(r);i&&Ds(e,n,r);const c=yn(e,t,a,n);wr(c,e),null!==o&&Ss(0,a-s,c,r,0,o),i&&(ne(n.index,e)[8]=c)}}(t,e,n,Xt(n,e)),128==(128&n.flags)&&function(t,e,n){const r=n.directiveStart,s=n.directiveEnd,i=t.expandoInstructions,o=t.firstCreatePass,a=n.index-Nt,c=le.lFrame.currentDirectiveIndex;try{Ne(a);for(let n=r;n<s;n++){const r=t.data[n],s=e[n];Se(n),null!==r.hostBindings||0!==r.hostVars||null!==r.hostAttrs?bs(r,s):o&&i.push(null)}}finally{Ne(-1),Se(c)}}(t,e,n))}function as(t,e,n=Xt){const r=e.localNames;if(null!==r){let s=e.index+1;for(let i=0;i<r.length;i+=2){const o=r[i+1],a=-1===o?n(e,t):t[o];t[s++]=a}}}function cs(t){const e=t.tView;return null===e||e.incompleteFirstPass?t.tView=ls(1,-1,t.template,t.decls,t.vars,t.directiveDefs,t.pipeDefs,t.viewQuery,t.schemas,t.consts):e}function ls(t,e,n,r,s,i,o,a,c,l){const u=Nt+r,h=u+s,d=function(t,e){const n=[];for(let r=0;r<e;r++)n.push(r<t?null:Pr);return n}(u,h);return d[1]={type:t,id:e,blueprint:d,template:n,queries:null,viewQuery:a,node:null,data:d.slice().fill(null,u),bindingStartIndex:u,expandoStartIndex:h,expandoInstructions:null,firstCreatePass:!0,firstUpdatePass:!0,staticViewQueries:!1,staticContentQueries:!1,preOrderHooks:null,preOrderCheckHooks:null,contentHooks:null,contentCheckHooks:null,viewHooks:null,viewCheckHooks:null,destroyHooks:null,cleanup:null,contentQueries:null,components:null,directiveRegistry:"function"==typeof i?i():i,pipeRegistry:"function"==typeof o?o():o,firstChild:null,schemas:c,consts:l,incompleteFirstPass:!1}}function us(t,e,n,r){const s=Ns(e);s.push(n),t.firstCreatePass&&function(t){return t.cleanup||(t.cleanup=[])}(t).push(r,s.length-1)}function hs(t,e,n,r,s,i){return{type:n,index:r,injectorIndex:e?e.injectorIndex:-1,directiveStart:-1,directiveEnd:-1,directiveStylingLast:-1,propertyBindings:null,flags:0,providerIndexes:0,tagName:s,attrs:i,mergedAttrs:null,localNames:null,initialInputs:void 0,inputs:null,outputs:null,tViews:null,next:null,projectionNext:null,child:null,parent:e,projection:null,styles:null,stylesWithoutHost:null,residualStyles:void 0,classes:null,classesWithoutHost:null,residualClasses:void 0,classBindings:0,styleBindings:0}}function ds(t,e,n){for(let r in t)if(t.hasOwnProperty(r)){const s=t[r];(n=null===n?{}:n).hasOwnProperty(r)?n[r].push(e,s):n[r]=[e,s]}return n}function fs(t,e,n,r,s,i,o,a){const c=Xt(e,n);let l,u=e.inputs;var h;!a&&null!=u&&(l=u[r])?(Bs(t,n,l,r,s),Ut(e)&&function(t,e){const n=ne(e,t);16&n[2]||(n[2]|=64)}(n,e.index)):3===e.type&&(r="class"===(h=r)?"className":"for"===h?"htmlFor":"formaction"===h?"formAction":"innerHtml"===h?"innerHTML":"readonly"===h?"readOnly":"tabindex"===h?"tabIndex":h,s=null!=o?o(s,e.tagName||"",r):s,Qt(i)?i.setProperty(c,r,s):Ke(r)||(c.setProperty?c.setProperty(r,s):c[r]=s))}function ps(t,e,n,r){let s=!1;if(ue()){const i=function(t,e,n){const r=t.directiveRegistry;let s=null;if(r)for(let i=0;i<r.length;i++){const o=r[i];Fr(n,o.selectors,!1)&&(s||(s=[]),fn(ln(n,e),t,o.type),$t(o)?(2&n.flags&&Cr(n),_s(t,n),s.unshift(o)):s.push(o))}return s}(t,e,n),o=null===r?null:{"":-1};if(null!==i){let r=0;s=!0,ws(n,t.data.length,i.length);for(let t=0;t<i.length;t++){const e=i[t];e.providersResolver&&e.providersResolver(e)}ys(t,n,i.length);let a=!1,c=!1;for(let s=0;s<i.length;s++){const l=i[s];n.mergedAttrs=Qe(n.mergedAttrs,l.hostAttrs),Cs(t,e,l),vs(t.data.length-1,l,o),null!==l.contentQueries&&(n.flags|=8),null===l.hostBindings&&null===l.hostAttrs&&0===l.hostVars||(n.flags|=128),!a&&(l.onChanges||l.onInit||l.doCheck)&&((t.preOrderHooks||(t.preOrderHooks=[])).push(n.index-Nt),a=!0),c||!l.onChanges&&!l.doCheck||((t.preOrderCheckHooks||(t.preOrderCheckHooks=[])).push(n.index-Nt),c=!0),ms(t,l),r+=l.hostVars}!function(t,e){const n=e.directiveEnd,r=t.data,s=e.attrs,i=[];let o=null,a=null;for(let c=e.directiveStart;c<n;c++){const t=r[c],n=t.inputs,l=null===s||xr(e)?null:Os(n,s);i.push(l),o=ds(n,c,o),a=ds(t.outputs,c,a)}null!==o&&(o.hasOwnProperty("class")&&(e.flags|=16),o.hasOwnProperty("style")&&(e.flags|=32)),e.initialInputs=i,e.inputs=o,e.outputs=a}(t,n),gs(t,e,r)}o&&function(t,e,n){if(e){const r=t.localNames=[];for(let t=0;t<e.length;t+=2){const s=n[e[t+1]];if(null==s)throw new Error(`Export of name '${e[t+1]}' not found!`);r.push(e[t],s)}}}(n,r,o)}return n.mergedAttrs=Qe(n.mergedAttrs,n.attrs),s}function ms(t,e){const n=t.expandoInstructions;n.push(e.hostBindings),0!==e.hostVars&&n.push(e.hostVars)}function gs(t,e,n){for(let r=0;r<n;r++)e.push(Pr),t.blueprint.push(Pr),t.data.push(null)}function bs(t,e){null!==t.hostBindings&&t.hostBindings(1,e)}function ys(t,e,n){const r=Nt-e.index,s=t.data.length-(65535&e.providerIndexes);(t.expandoInstructions||(t.expandoInstructions=[])).push(r,s,n)}function _s(t,e){e.flags|=2,(t.components||(t.components=[])).push(e.index)}function vs(t,e,n){if(n){if(e.exportAs)for(let r=0;r<e.exportAs.length;r++)n[e.exportAs[r]]=t;$t(e)&&(n[""]=t)}}function ws(t,e,n){t.flags|=1,t.directiveStart=e,t.directiveEnd=e+n,t.providerIndexes=e}function Cs(t,e,n){t.data.push(n);const r=n.factory||(n.factory=Mt(n.type)),s=new qe(r,$t(n),null);t.blueprint.push(s),e.push(s)}function Ds(t,e,n){const r=Xt(e,t),s=cs(n),i=t[10],o=js(t,Xr(t,s,null,n.onPush?64:16,r,e,i,i.createRenderer(r,n)));t[e.index]=o}function Es(t,e,n,r,s,i){const o=Xt(t,e),a=e[11];if(null==r)Qt(a)?a.removeAttribute(o,n,i):o.removeAttribute(n);else{const e=null==s?en(r):s(r,t.tagName||"",n);Qt(a)?a.setAttribute(o,n,e,i):i?o.setAttributeNS(i,n,e):o.setAttribute(n,e)}}function Ss(t,e,n,r,s,i){const o=i[e];if(null!==o){const t=r.setInput;for(let e=0;e<o.length;){const s=o[e++],i=o[e++],a=o[e++];null!==t?r.setInput(n,a,s,i):n[i]=a}}}function Os(t,e){let n=null,r=0;for(;r<e.length;){const s=e[r];if(0!==s)if(5!==s){if("number"==typeof s)break;t.hasOwnProperty(s)&&(null===n&&(n=[]),n.push(s,t[s],e[r+1])),r+=2}else r+=2;else r+=4}return n}function xs(t,e,n,r){return new Array(t,!0,!1,e,null,0,r,n,null,null)}function ks(t,e){const n=ne(e,t);if(ie(n)){const t=n[1];80&n[2]?ns(t,n,t.template,n[8]):n[5]>0&&As(n)}}function As(t){for(let n=Vr(t);null!==n;n=Br(n))for(let t=Vt;t<n.length;t++){const e=n[t];if(1024&e[2]){const t=e[1];ns(t,e,t.template,e[8])}else e[5]>0&&As(e)}const e=t[1].components;if(null!==e)for(let n=0;n<e.length;n++){const r=ne(e[n],t);ie(r)&&r[5]>0&&As(r)}}function Ts(t,e){const n=ne(e,t),r=n[1];!function(t,e){for(let n=e.length;n<t.blueprint.length;n++)e.push(t.blueprint[n])}(r,n),es(r,n,n[8])}function js(t,e){return t[13]?t[14][4]=e:t[13]=e,t[14]=e,e}function Fs(t){for(;t;){t[2]|=64;const e=Nr(t);if(qt(t)&&!e)return t;t=e}return null}function Is(t,e,n){const r=e[10];r.begin&&r.begin();try{ns(t,e,t.template,n)}catch(s){throw Vs(e,s),s}finally{r.end&&r.end()}}function Rs(t){!function(t){for(let e=0;e<t.components.length;e++){const n=t.components[e],r=re(n),s=r[1];rs(s,r,s.template,n)}}(t[8])}function Ms(t,e,n){ke(0),e(t,n)}const Ps=(()=>Promise.resolve(null))();function Ns(t){return t[7]||(t[7]=[])}function Vs(t,e){const n=t[9],r=n?n.get(xn,null):null;r&&r.handleError(e)}function Bs(t,e,n,r,s){for(let i=0;i<n.length;){const o=n[i++],a=n[i++],c=e[o],l=t.data[o];null!==l.setInput?l.setInput(c,s,r,a):c[a]=s}}function Hs(t,e,n){const r=Yt(e,t),s=t[11];Qt(s)?s.setValue(r,n):r.textContent=n}function Ls(t,e){const n=e[3];return-1===t.index?Ht(n)?n:null:n}function Us(t,e){const n=Ls(t,e);return n?ei(e[11],n[7]):null}function zs(t,e,n,r,s){if(null!=r){let i,o=!1;Ht(r)?i=r:Bt(r)&&(o=!0,r=r[0]);const a=Jt(r);0===t&&null!==n?null==s?Xs(e,n,a):Ys(e,n,a,s||null):1===t&&null!==n?Ys(e,n,a,s||null):2===t?oi(e,a,o):3===t&&e.destroyNode(a),null!=i&&function(t,e,n,r,s){const i=n[7];i!==Jt(n)&&zs(e,t,r,i,s);for(let o=Vt;o<n.length;o++){const s=n[o];ci(s[1],s,t,e,r,i)}}(e,t,i,n,s)}}function $s(t,e){return Qt(e)?e.createText(t):e.createTextNode(t)}function qs(t,e,n,r){const s=Us(t.node,e);s&&ci(t,e,e[11],n?1:2,s,r)}function Ws(t,e){const n=t[9],r=n.indexOf(e);1024&e[2]&&ce(e[3],-1),n.splice(r,1)}function Gs(t,e){if(t.length<=Vt)return;const n=Vt+e,r=t[n];if(r){const s=r[17];null!==s&&s!==t&&Ws(s,r),e>0&&(t[n-1][4]=r[4]);const i=mt(t,Vt+e);qs(r[1],r,!1,null);const o=i[19];null!==o&&o.detachView(i[1]),r[3]=null,r[4]=null,r[2]&=-129}return r}function Ks(t,e){if(!(256&e[2])){const n=e[11];Qt(n)&&n.destroyNode&&ci(t,e,n,3,null,null),function(t){let e=t[13];if(!e)return Zs(t[1],t);for(;e;){let n=null;if(Bt(e))n=e[13];else{const t=e[10];t&&(n=t)}if(!n){for(;e&&!e[4]&&e!==t;)Bt(e)&&Zs(e[1],e),e=Qs(e,t);null===e&&(e=t),Bt(e)&&Zs(e[1],e),n=e&&e[4]}e=n}}(e)}}function Qs(t,e){let n;return Bt(t)&&(n=t[6])&&2===n.type?Ls(n,t):t[3]===e?null:t[3]}function Zs(t,e){if(!(256&e[2])){e[2]&=-129,e[2]|=256,function(t,e){let n;if(null!=t&&null!=(n=t.destroyHooks))for(let r=0;r<n.length;r+=2){const t=e[n[r]];if(!(t instanceof qe)){const e=n[r+1];if(Array.isArray(e))for(let n=0;n<e.length;n+=2)e[n+1].call(t[e[n]]);else e.call(t)}}}(t,e),function(t,e){const n=t.cleanup;if(null!==n){const t=e[7];for(let r=0;r<n.length-1;r+=2)if("string"==typeof n[r]){const s=n[r+1],i="function"==typeof s?s(e):Jt(e[s]),o=t[n[r+2]],a=n[r+3];"boolean"==typeof a?i.removeEventListener(n[r],o,a):a>=0?t[a]():t[-a].unsubscribe(),r+=2}else n[r].call(t[n[r+1]]);e[7]=null}}(t,e);const n=e[6];n&&3===n.type&&Qt(e[11])&&e[11].destroy();const r=e[17];if(null!==r&&Ht(e[3])){r!==e[3]&&Ws(r,e);const n=e[19];null!==n&&n.detachView(t)}}}function Js(t,e,n){let r=e.parent;for(;null!=r&&(4===r.type||5===r.type);)r=(e=r).parent;if(null==r){const t=n[6];return 2===t.type?Us(t,n):n[0]}if(e&&5===e.type&&4&e.flags)return Xt(e,n).parentNode;if(2&r.flags){const e=t.data,n=e[e[r.index].directiveStart].encapsulation;if(n!==wt.ShadowDom&&n!==wt.Native)return null}return Xt(r,n)}function Ys(t,e,n,r){Qt(t)?t.insertBefore(e,n,r):e.insertBefore(n,r,!0)}function Xs(t,e,n){Qt(t)?t.appendChild(e,n):e.appendChild(n)}function ti(t,e,n,r){null!==r?Ys(t,e,n,r):Xs(t,e,n)}function ei(t,e){return Qt(t)?t.parentNode(e):e.parentNode}function ni(t,e){if(2===t.type){const n=Ls(t,e);return null===n?null:ii(n.indexOf(e,Vt)-Vt,n)}return 4===t.type||5===t.type?Xt(t,e):null}function ri(t,e,n,r){const s=Js(t,r,e);if(null!=s){const t=e[11],i=ni(r.parent||e[6],e);if(Array.isArray(n))for(let e=0;e<n.length;e++)ti(t,s,n[e],i);else ti(t,s,n,i)}}function si(t,e){if(null!==e){const n=e.type;if(3===n)return Xt(e,t);if(0===n)return ii(-1,t[e.index]);if(4===n||5===n){const n=e.child;if(null!==n)return si(t,n);{const n=t[e.index];return Ht(n)?ii(-1,n):Jt(n)}}{const n=t[16],r=n[6],s=Nr(n),i=r.projection[e.projection];return null!=i?si(s,i):si(t,e.next)}}return null}function ii(t,e){const n=Vt+t+1;if(n<e.length){const t=e[n],r=t[1].firstChild;if(null!==r)return si(t,r)}return e[7]}function oi(t,e,n){const r=ei(t,e);r&&function(t,e,n,r){Qt(t)?t.removeChild(e,n,r):e.removeChild(n)}(t,r,e,n)}function ai(t,e,n,r,s,i,o){for(;null!=n;){const a=r[n.index],c=n.type;o&&0===e&&(a&&wr(Jt(a),r),n.flags|=4),64!=(64&n.flags)&&(4===c||5===c?(ai(t,e,n.child,r,s,i,!1),zs(e,t,s,a,i)):1===c?ui(t,e,r,n,s,i):zs(e,t,s,a,i)),n=o?n.projectionNext:n.next}}function ci(t,e,n,r,s,i){ai(n,r,t.node.child,e,s,i,!1)}function li(t,e,n){ui(e[11],0,e,n,Js(t,n,e),ni(n.parent||e[6],e))}function ui(t,e,n,r,s,i){const o=n[16],a=o[6].projection[r.projection];if(Array.isArray(a))for(let c=0;c<a.length;c++)zs(e,t,s,a[c],i);else ai(t,e,a,o[3],s,i,!0)}function hi(t,e,n){Qt(t)?t.setAttribute(e,"style",n):e.style.cssText=n}function di(t,e,n){Qt(t)?""===n?t.removeAttribute(e,"class"):t.setAttribute(e,"class",n):e.className=n}class fi{constructor(t,e){this._lView=t,this._cdRefInjectingView=e,this._appRef=null,this._viewContainerRef=null}get rootNodes(){const t=this._lView;return null==t[0]?mi(t[1],t,t[6].child,[]):[]}get context(){return this._lView[8]}get destroyed(){return 256==(256&this._lView[2])}destroy(){if(this._appRef)this._appRef.detachView(this);else if(this._viewContainerRef){const t=this._viewContainerRef.indexOf(this);t>-1&&this._viewContainerRef.detach(t),this._viewContainerRef=null}Ks(this._lView[1],this._lView)}onDestroy(t){us(this._lView[1],this._lView,null,t)}markForCheck(){Fs(this._cdRefInjectingView||this._lView)}detach(){this._lView[2]&=-129}reattach(){this._lView[2]|=128}detectChanges(){Is(this._lView[1],this._lView,this.context)}checkNoChanges(){!function(t,e,n){_e(!0);try{Is(t,e,n)}finally{_e(!1)}}(this._lView[1],this._lView,this.context)}attachToViewContainerRef(t){if(this._appRef)throw new Error("This view is already attached directly to the ApplicationRef!");this._viewContainerRef=t}detachFromAppRef(){var t;this._appRef=null,ci(this._lView[1],t=this._lView,t[11],2,null,null)}attachToAppRef(t){if(this._viewContainerRef)throw new Error("This view is already attached to a ViewContainer!");this._appRef=t}}class pi extends fi{constructor(t){super(t),this._view=t}detectChanges(){Rs(this._view)}checkNoChanges(){!function(t){_e(!0);try{Rs(t)}finally{_e(!1)}}(this._view)}get context(){return null}}function mi(t,e,n,r,s=!1){for(;null!==n;){const i=e[n.index];if(null!==i&&r.push(Jt(i)),Ht(i))for(let t=Vt;t<i.length;t++){const e=i[t],n=e[1].firstChild;null!==n&&mi(e[1],e,n,r)}const o=n.type;if(4===o||5===o)mi(t,e,n.child,r);else if(1===o){const t=e[16],s=t[6].projection[n.projection];if(Array.isArray(s))r.push(...s);else{const e=Nr(t);mi(e[1],e,s,r,!0)}}n=s?n.projectionNext:n.next}return r}let gi,bi,yi;function _i(t,e,n){return gi||(gi=class extends t{}),new gi(Xt(e,n))}function vi(t,e,n,r){return bi||(bi=class extends t{constructor(t,e,n){super(),this._declarationView=t,this._declarationTContainer=e,this.elementRef=n}createEmbeddedView(t){const e=this._declarationTContainer.tViews,n=Xr(this._declarationView,e,t,16,null,e.node);n[17]=this._declarationView[this._declarationTContainer.index];const r=this._declarationView[19];return null!==r&&(n[19]=r.createEmbeddedView(e)),es(e,n,t),new fi(n)}}),0===n.type?new bi(r,n,_i(e,n,r)):null}function wi(t,e,n,r){let s;yi||(yi=class extends t{constructor(t,e,n){super(),this._lContainer=t,this._hostTNode=e,this._hostView=n}get element(){return _i(e,this._hostTNode,this._hostView)}get injector(){return new wn(this._hostTNode,this._hostView)}get parentInjector(){const t=dn(this._hostTNode,this._hostView),e=tn(t,this._hostView),n=function(t,e,n){if(n.parent&&-1!==n.parent.injectorIndex){const t=n.parent.injectorIndex;let e=n.parent;for(;null!=e.parent&&t==e.parent.injectorIndex;)e=e.parent;return e}let r=Xe(t),s=e,i=e[6];for(;r>1;)s=s[15],i=s[6],r--;return i}(t,this._hostView,this._hostTNode);return Je(t)&&null!=n?new wn(n,e):new wn(null,this._hostView)}clear(){for(;this.length>0;)this.remove(this.length-1)}get(t){return null!==this._lContainer[8]&&this._lContainer[8][t]||null}get length(){return this._lContainer.length-Vt}createEmbeddedView(t,e,n){const r=t.createEmbeddedView(e||{});return this.insert(r,n),r}createComponent(t,e,n,r,s){const i=n||this.parentInjector;if(!s&&null==t.ngModule&&i){const t=i.get(lt,null);t&&(s=t)}const o=t.create(i,r,void 0,s);return this.insert(o.hostView,e),o}insert(t,e){const n=t._lView,r=n[1];if(t.destroyed)throw new Error("Cannot insert a destroyed View in a ViewContainer!");if(this.allocateContainerIfNeeded(),Ht(n[3])){const e=this.indexOf(t);if(-1!==e)this.detach(e);else{const e=n[3],r=new yi(e,e[6],e[3]);r.detach(r.indexOf(t))}}const s=this._adjustIndex(e);return function(t,e,n,r){const s=Vt+r,i=n.length;r>0&&(n[s-1][4]=e),r<i-Vt?(e[4]=n[s],pt(n,Vt+r,e)):(n.push(e),e[4]=null),e[3]=n;const o=e[17];null!==o&&n!==o&&function(t,e){const n=t[9];e[16]!==e[3][3][16]&&(t[2]=!0),null===n?t[9]=[e]:n.push(e)}(o,e);const a=e[19];null!==a&&a.insertView(t),e[2]|=128}(r,n,this._lContainer,s),qs(r,n,!0,ii(s,this._lContainer)),t.attachToViewContainerRef(this),pt(this._lContainer[8],s,t),t}move(t,e){if(t.destroyed)throw new Error("Cannot move a destroyed View in a ViewContainer!");return this.insert(t,e)}indexOf(t){const e=this._lContainer[8];return null!==e?e.indexOf(t):-1}remove(t){this.allocateContainerIfNeeded();const e=this._adjustIndex(t,-1);!function(t,e){const n=Gs(t,e);n&&Ks(n[1],n)}(this._lContainer,e),mt(this._lContainer[8],e)}detach(t){this.allocateContainerIfNeeded();const e=this._adjustIndex(t,-1),n=Gs(this._lContainer,e);return n&&null!=mt(this._lContainer[8],e)?new fi(n):null}_adjustIndex(t,e=0){return null==t?this.length+e:t}allocateContainerIfNeeded(){null===this._lContainer[8]&&(this._lContainer[8]=[])}});const i=r[n.index];if(Ht(i))s=i;else{let t;if(4===n.type)t=Jt(i);else if(t=r[11].createComment(""),qt(r)){const e=r[11],s=Xt(n,r);Ys(e,ei(e,s),t,function(t,e){return Qt(t)?t.nextSibling(e):e.nextSibling}(e,s))}else ri(r[1],r,t,n);r[n.index]=s=xs(i,r,t,n),js(r,s)}return new yi(s,n,r)}function Ci(t=!1){return function(t,e,n){if(!n&&Ut(t)){const n=ne(t.index,e);return new fi(n,n)}return 3===t.type||0===t.type||4===t.type||5===t.type?new fi(e[16],e):null}(pe(),he(),t)}let Di=(()=>{class t{}return t.__NG_ELEMENT_ID__=()=>Ei(),t})();const Ei=Ci,Si=Function,Oi=new K("Set Injector scope."),xi={},ki={},Ai=[];let Ti=void 0;function ji(){return void 0===Ti&&(Ti=new ct),Ti}function Fi(t,e=null,n=null,r){return new Ii(t,n,e||ji(),r)}class Ii{constructor(t,e,n,r=null){this.parent=n,this.records=new Map,this.injectorDefTypes=new Set,this.onDestroy=new Set,this._destroyed=!1;const s=[];e&&ft(e,n=>this.processProvider(n,t,e)),ft([t],t=>this.processInjectorType(t,[],s)),this.records.set(Q,Pi(void 0,this));const i=this.records.get(Oi);this.scope=null!=i?i.value:null,this.source=r||("object"==typeof t?null:T(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,e=Z,n=b.Default){this.assertNotDestroyed();const r=nt(this);try{if(!(n&b.SkipSelf)){let e=this.records.get(t);if(void 0===e){const n=("function"==typeof(s=t)||"object"==typeof s&&s instanceof K)&&C(t);e=n&&this.injectableDefInScope(n)?Pi(Ri(t),xi):null,this.records.set(t,e)}if(null!=e)return this.hydrate(t,e)}return(n&b.Self?ji():this.parent).get(t,e=n&b.Optional&&e===Z?null:e)}catch(i){if("NullInjectorError"===i.name){if((i.ngTempTokenPath=i.ngTempTokenPath||[]).unshift(T(t)),r)throw i;return function(t,e,n,r){const s=t.ngTempTokenPath;throw e[Y]&&s.unshift(e[Y]),t.message=function(t,e,n,r=null){t=t&&"\n"===t.charAt(0)&&"\u0275"==t.charAt(1)?t.substr(2):t;let s=T(e);if(Array.isArray(e))s=e.map(T).join(" -> ");else if("object"==typeof e){let t=[];for(let n in e)if(e.hasOwnProperty(n)){let r=e[n];t.push(n+":"+("string"==typeof r?JSON.stringify(r):T(r)))}s=`{${t.join(", ")}}`}return`${n}${r?"("+r+")":""}[${s}]: ${t.replace(J,"\n  ")}`}("\n"+t.message,s,n,r),t.ngTokenPath=s,t.ngTempTokenPath=null,t}(i,t,"R3InjectorError",this.source)}throw i}finally{nt(r)}var s}_resolveInjectorDefTypes(){this.injectorDefTypes.forEach(t=>this.get(t))}toString(){const t=[];return this.records.forEach((e,n)=>t.push(T(n))),`R3Injector[${t.join(", ")}]`}assertNotDestroyed(){if(this._destroyed)throw new Error("Injector has already been destroyed.")}processInjectorType(t,e,n){if(!(t=R(t)))return!1;let r=E(t);const s=null==r&&t.ngModule||void 0,i=void 0===s?t:s,o=-1!==n.indexOf(i);if(void 0!==s&&(r=E(s)),null==r)return!1;if(null!=r.imports&&!o){let t;n.push(i);try{ft(r.imports,r=>{this.processInjectorType(r,e,n)&&(void 0===t&&(t=[]),t.push(r))})}finally{}if(void 0!==t)for(let e=0;e<t.length;e++){const{ngModule:n,providers:r}=t[e];ft(r,t=>this.processProvider(t,n,r||Ai))}}this.injectorDefTypes.add(i),this.records.set(i,Pi(r.factory,xi));const a=r.providers;if(null!=a&&!o){const e=t;ft(a,t=>this.processProvider(t,e,a))}return void 0!==s&&void 0!==t.providers}processProvider(t,e,n){let r=Vi(t=R(t))?t:R(t&&t.provide);const s=function(t,e,n){return Ni(t)?Pi(void 0,t.useValue):Pi(Mi(t,e,n),xi)}(t,e,n);if(Vi(t)||!0!==t.multi){const t=this.records.get(r);t&&void 0!==t.multi&&Dr()}else{let e=this.records.get(r);e?void 0===e.multi&&Dr():(e=Pi(void 0,xi,!0),e.factory=()=>at(e.multi),this.records.set(r,e)),r=t,e.multi.push(t)}this.records.set(r,s)}hydrate(t,e){var n;return e.value===ki?function(t){throw new Error("Cannot instantiate cyclic dependency! "+t)}(T(t)):e.value===xi&&(e.value=ki,e.value=e.factory()),"object"==typeof e.value&&e.value&&null!==(n=e.value)&&"object"==typeof n&&"function"==typeof n.ngOnDestroy&&this.onDestroy.add(e.value),e.value}injectableDefInScope(t){return!!t.providedIn&&("string"==typeof t.providedIn?"any"===t.providedIn||t.providedIn===this.scope:this.injectorDefTypes.has(t.providedIn))}}function Ri(t){const e=C(t),n=null!==e?e.factory:Mt(t);if(null!==n)return n;const r=E(t);if(null!==r)return r.factory;if(t instanceof K)throw new Error(`Token ${T(t)} is missing a \u0275prov definition.`);if(t instanceof Function)return function(t){const e=t.length;if(e>0){const n=gt(e,"?");throw new Error(`Can't resolve all parameters for ${T(t)}: (${n.join(", ")}).`)}const n=function(t){const e=t&&(t[S]||t[k]||t[x]&&t[x]());if(e){const n=function(t){if(t.hasOwnProperty("name"))return t.name;const e=(""+t).match(/^function\s*([^\s(]+)/);return null===e?"":e[1]}(t);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.`),e}return null}(t);return null!==n?()=>n.factory(t):()=>new t}(t);throw new Error("unreachable")}function Mi(t,e,n){let r=void 0;if(Vi(t)){const e=R(t);return Mt(e)||Ri(e)}if(Ni(t))r=()=>R(t.useValue);else if((s=t)&&s.useFactory)r=()=>t.useFactory(...at(t.deps||[]));else if(function(t){return!(!t||!t.useExisting)}(t))r=()=>it(R(t.useExisting));else{const s=R(t&&(t.useClass||t.provide));if(s||function(t,e,n){let r="";throw t&&e&&(r=` - only instances of Provider and Type are allowed, got: [${e.map(t=>t==n?"?"+n+"?":"...").join(", ")}]`),new Error(`Invalid provider for the NgModule '${T(t)}'`+r)}(e,n,t),!function(t){return!!t.deps}(t))return Mt(s)||Ri(s);r=()=>new s(...at(t.deps))}var s;return r}function Pi(t,e,n=!1){return{factory:t,value:e,multi:n?[]:void 0}}function Ni(t){return null!==t&&"object"==typeof t&&X in t}function Vi(t){return"function"==typeof t}const Bi=function(t,e,n){return function(t,e=null,n=null,r){const s=Fi(t,e,n,r);return s._resolveInjectorDefTypes(),s}({name:n},e,t,n)};let Hi=(()=>{class t{static create(t,e){return Array.isArray(t)?Bi(t,e,""):Bi(t.providers,t.parent,t.name||"")}}return t.THROW_IF_NOT_FOUND=Z,t.NULL=new ct,t.\u0275prov=v({token:t,providedIn:"any",factory:()=>it(Q)}),t.__NG_ELEMENT_ID__=-1,t})();const Li=new K("AnalyzeForEntryComponents");function Ui(t,e,n){let r=n?t.styles:null,s=n?t.classes:null,i=0;if(null!==e)for(let o=0;o<e.length;o++){const t=e[o];"number"==typeof t?i=t:1==i?s=j(s,t):2==i&&(r=j(r,t+": "+e[++o]+";"))}n?t.styles=r:t.stylesWithoutHost=r,n?t.classes=s:t.classesWithoutHost=s}let zi=null;function $i(){if(!zi){const t=H.Symbol;if(t&&t.iterator)zi=t.iterator;else{const t=Object.getOwnPropertyNames(Map.prototype);for(let e=0;e<t.length;++e){const n=t[e];"entries"!==n&&"size"!==n&&Map.prototype[n]===Map.prototype.entries&&(zi=n)}}}return zi}class qi{constructor(t){this.wrapped=t}static wrap(t){return new qi(t)}static unwrap(t){return qi.isWrapped(t)?t.wrapped:t}static isWrapped(t){return t instanceof qi}}function Wi(t){return!!Gi(t)&&(Array.isArray(t)||!(t instanceof Map)&&$i()in t)}function Gi(t){return null!==t&&("function"==typeof t||"object"==typeof t)}function Ki(t,e,n){return t[e]=n}function Qi(t,e,n){return!Object.is(t[e],n)&&(t[e]=n,!0)}function Zi(t,e,n,r){const s=Qi(t,e,n);return Qi(t,e+1,r)||s}function Ji(t,e,n,r,s){const i=Zi(t,e,n,r);return Qi(t,e+2,s)||i}function Yi(t,e,n,r,s,i){const o=Zi(t,e,n,r);return Zi(t,e+2,s,i)||o}function Xi(t,e,n,r){const s=he();return Qi(s,Ce(),e)&&(de(),Es(Ve(),s,t,e,n,r)),Xi}function to(t,e,n,r){return Qi(t,Ce(),n)?e+en(n)+r:Pr}function eo(t,e,n,r,s,i){const o=Zi(t,we(),n,s);return De(2),o?e+en(n)+r+en(s)+i:Pr}function no(t,e,n,r,s,i,o,a,c,l){const u=Yi(t,we(),n,s,o,c);return De(4),u?e+en(n)+r+en(s)+i+en(o)+a+en(c)+l:Pr}function ro(t,e,n,r,s,i,o,a){const c=he(),l=de(),u=t+Nt,h=l.firstCreatePass?function(t,e,n,r,s,i,o,a,c){const l=e.consts,u=ts(e,n[6],t,0,o||null,oe(l,a));ps(e,n,u,oe(l,c)),Be(e,u);const h=u.tViews=ls(2,-1,r,s,i,e.directiveRegistry,e.pipeRegistry,null,e.schemas,l),d=hs(0,null,2,-1,null,null);return d.injectorIndex=u.injectorIndex,h.node=d,null!==e.queries&&(e.queries.template(e,u),h.queries=e.queries.embeddedTView(u)),u}(t,l,c,e,n,r,s,i,o):l.data[u];me(h,!1);const d=c[11].createComment("");ri(l,c,d,h),wr(d,c),js(c,c[u]=xs(d,c,d,h)),zt(h)&&os(l,c,h),null!=o&&as(c,h,a)}function so(t){return ee(le.lFrame.contextLView,t)}function io(t,e=b.Default){const n=he();return null==n?it(t,e):pn(pe(),n,R(t),e)}function oo(t){return function(t,e){if("class"===e)return t.classes;if("style"===e)return t.styles;const n=t.attrs;if(n){const t=n.length;let r=0;for(;r<t;){const s=n[r];if(Ge(s))break;if(0===s)r+=2;else if("number"==typeof s)for(r++;r<t&&"string"==typeof n[r];)r++;else{if(s===e)return n[r+1];r+=2}}}return null}(pe(),t)}function ao(t,e,n){const r=he();return Qi(r,Ce(),e)&&fs(de(),Ve(),r,t,e,r[11],n,!1),ao}function co(t,e,n,r,s){const i=s?"class":"style";Bs(t,n,e.inputs[i],i,r)}function lo(t,e,n,r){const s=he(),i=de(),o=Nt+t,a=s[11],c=s[o]=Yr(e,a,le.lFrame.currentNamespace),l=i.firstCreatePass?function(t,e,n,r,s,i,o){const a=e.consts,c=oe(a,i),l=ts(e,n[6],t,3,s,c);return ps(e,n,l,oe(a,o)),null!==l.attrs&&Ui(l,l.attrs,!1),null!==l.mergedAttrs&&Ui(l,l.mergedAttrs,!0),null!==e.queries&&e.queries.elementStart(e,l),l}(t,i,s,0,e,n,r):i.data[o];me(l,!0);const u=l.mergedAttrs;null!==u&&We(a,c,u);const h=l.classes;null!==h&&di(a,c,h);const d=l.styles;null!==d&&hi(a,c,d),ri(i,s,c,l),0===le.lFrame.elementDepthCount&&wr(c,s),le.lFrame.elementDepthCount++,zt(l)&&(os(i,s,l),is(i,l,s)),null!==r&&as(s,l)}function uo(){let t=pe();ge()?be():(t=t.parent,me(t,!1));const e=t;le.lFrame.elementDepthCount--;const n=de();n.firstCreatePass&&(Be(n,t),Lt(t)&&n.queries.elementEnd(t)),null!=e.classesWithoutHost&&function(t){return 0!=(16&t.flags)}(e)&&co(n,e,he(),e.classesWithoutHost,!0),null!=e.stylesWithoutHost&&function(t){return 0!=(32&t.flags)}(e)&&co(n,e,he(),e.stylesWithoutHost,!1)}function ho(t,e,n,r){lo(t,e,n,r),uo()}function fo(t,e,n){const r=he(),s=de(),i=t+Nt,o=s.firstCreatePass?function(t,e,n,r,s){const i=e.consts,o=oe(i,r),a=ts(e,n[6],t,4,"ng-container",o);return null!==o&&Ui(a,o,!0),ps(e,n,a,oe(i,s)),null!==e.queries&&e.queries.elementStart(e,a),a}(t,s,r,e,n):s.data[i];me(o,!0);const a=r[i]=r[11].createComment("");ri(s,r,a,o),wr(a,r),zt(o)&&(os(s,r,o),is(s,o,r)),null!=n&&as(r,o)}function po(){let t=pe();const e=de();ge()?be():(t=t.parent,me(t,!1)),e.firstCreatePass&&(Be(e,t),Lt(t)&&e.queries.elementEnd(t))}function mo(t,e,n){fo(t,e,n),po()}function go(){return he()}function bo(t){return!!t&&"function"==typeof t.then}function yo(t){return!!t&&"function"==typeof t.subscribe}function _o(t,e,n=!1,r){const s=he(),i=de(),o=pe();return function(t,e,n,r,s,i,o=!1,a){const c=zt(r),l=t.firstCreatePass&&(t.cleanup||(t.cleanup=[])),u=Ns(e);let h=!0;if(3===r.type){const d=Xt(r,e),f=a?a(d):Ct,p=f.target||d,m=u.length,g=a?t=>a(Jt(t[r.index])).target:r.index;if(Qt(n)){let o=null;if(!a&&c&&(o=function(t,e,n,r){const s=t.cleanup;if(null!=s)for(let i=0;i<s.length-1;i+=2){const t=s[i];if(t===n&&s[i+1]===r){const t=e[7],n=s[i+2];return t.length>n?t[n]:null}"string"==typeof t&&(i+=2)}return null}(t,e,s,r.index)),null!==o)(o.__ngLastListenerFn__||o).__ngNextListenerFn__=i,o.__ngLastListenerFn__=i,h=!1;else{i=wo(r,e,i,!1);const t=n.listen(f.name||p,s,i);u.push(i,t),l&&l.push(s,g,m,m+1)}}else i=wo(r,e,i,!0),p.addEventListener(s,i,o),u.push(i),l&&l.push(s,g,m,o)}const d=r.outputs;let f;if(h&&null!==d&&(f=d[s])){const t=f.length;if(t)for(let n=0;n<t;n+=2){const t=e[f[n]][f[n+1]].subscribe(i),o=u.length;u.push(i,t),l&&l.push(s,r.index,o,-(o+1))}}}(i,s,s[11],o,t,e,n,r),_o}function vo(t,e,n){try{return!1!==e(n)}catch(r){return Vs(t,r),!1}}function wo(t,e,n,r){return function s(i){if(i===Function)return n;const o=2&t.flags?ne(t.index,e):e;0==(32&e[2])&&Fs(o);let a=vo(e,n,i),c=s.__ngNextListenerFn__;for(;c;)a=vo(e,c,i)&&a,c=c.__ngNextListenerFn__;return r&&!1===a&&(i.preventDefault(),i.returnValue=!1),a}}function Co(t=1){return function(t){return(le.lFrame.contextLView=function(t,e){for(;t>0;)e=e[15],t--;return e}(t,le.lFrame.contextLView))[8]}(t)}function Do(t,e){let n=null;const r=function(t){const e=t.attrs;if(null!=e){const t=e.indexOf(5);if(0==(1&t))return e[t+1]}return null}(t);for(let s=0;s<e.length;s++){const i=e[s];if("*"!==i){if(null===r?Fr(t,i,!0):Ir(r,i))return s}else n=s}return n}function Eo(t){const e=he()[16][6];if(!e.projection){const n=e.projection=gt(t?t.length:1,null),r=n.slice();let s=e.child;for(;null!==s;){const e=t?Do(s,t):0;null!==e&&(r[e]?r[e].projectionNext=s:n[e]=s,r[e]=s),s=s.next}}}let So=!1;function Oo(t){So=t}function xo(t,e=0,n){const r=he(),s=de(),i=ts(s,r[6],t,1,null,n||null);null===i.projection&&(i.projection=e),be(),So||li(s,r,i)}function ko(t,e,n){return Ao(t,"",e,"",n),ko}function Ao(t,e,n,r,s){const i=he(),o=to(i,e,n,r);return o!==Pr&&fs(de(),Ve(),i,t,o,i[11],s,!1),Ao}function To(t,e,n,r,s,i,o){const a=he(),c=eo(a,e,n,r,s,i);return c!==Pr&&fs(de(),Ve(),a,t,c,a[11],o,!1),To}const jo=[];function Fo(t,e,n,r,s){const i=t[n+1],o=null===e;let a=r?Wr(i):Kr(i),c=!1;for(;0!==a&&(!1===c||o);){const n=t[a+1];Io(t[a],e)&&(c=!0,t[a+1]=r?Zr(n):Gr(n)),a=r?Wr(n):Kr(n)}c&&(t[n+1]=r?Gr(i):Zr(i))}function Io(t,e){return null===t||null==e||(Array.isArray(t)?t[1]:t)===e||!(!Array.isArray(t)||"string"!=typeof e)&&_t(t,e)>=0}const Ro={textEnd:0,key:0,keyEnd:0,value:0,valueEnd:0};function Mo(t){return t.substring(Ro.key,Ro.keyEnd)}function Po(t,e){const n=Ro.textEnd;return n===e?-1:(e=Ro.keyEnd=function(t,e,n){for(;e<n&&t.charCodeAt(e)>32;)e++;return e}(t,Ro.key=e,n),No(t,e,n))}function No(t,e,n){for(;e<n&&t.charCodeAt(e)<=32;)e++;return e}function Vo(t,e,n){return Uo(t,e,n,!1),Vo}function Bo(t,e){return Uo(t,e,null,!0),Bo}function Ho(t){zo(bt,Lo,t,!0)}function Lo(t,e){for(let n=function(t){return function(t){Ro.key=0,Ro.keyEnd=0,Ro.value=0,Ro.valueEnd=0,Ro.textEnd=t.length}(t),Po(t,No(t,0,Ro.textEnd))}(e);n>=0;n=Po(e,n))bt(t,Mo(e),!0)}function Uo(t,e,n,r){const s=he(),i=de(),o=De(2);i.firstUpdatePass&&qo(i,t,o,r),e!==Pr&&Qi(s,o,e)&&Ko(i,i.data[Pe()+Nt],s,s[11],t,s[o+1]=function(t,e){return null==t||("string"==typeof e?t+=e:"object"==typeof t&&(t=T(Rn(t)))),t}(e,n),r,o)}function zo(t,e,n,r){const s=de(),i=De(2);s.firstUpdatePass&&qo(s,null,i,r);const o=he();if(n!==Pr&&Qi(o,i,n)){const a=s.data[Pe()+Nt];if(Jo(a,r)&&!$o(s,i)){let t=r?a.classesWithoutHost:a.stylesWithoutHost;null!==t&&(n=j(t,n||"")),co(s,a,o,n,r)}else!function(t,e,n,r,s,i,o,a){s===Pr&&(s=jo);let c=0,l=0,u=0<s.length?s[0]:null,h=0<i.length?i[0]:null;for(;null!==u||null!==h;){const d=c<s.length?s[c+1]:void 0,f=l<i.length?i[l+1]:void 0;let p=null,m=void 0;u===h?(c+=2,l+=2,d!==f&&(p=h,m=f)):null===h||null!==u&&u<h?(c+=2,p=u):(l+=2,p=h,m=f),null!==p&&Ko(t,e,n,r,p,m,o,a),u=c<s.length?s[c]:null,h=l<i.length?i[l]:null}}(s,a,o,o[11],o[i+1],o[i+1]=function(t,e,n){if(null==n||""===n)return jo;const r=[],s=Rn(n);if(Array.isArray(s))for(let i=0;i<s.length;i++)t(r,s[i],!0);else if("object"==typeof s)for(const i in s)s.hasOwnProperty(i)&&t(r,i,s[i]);else"string"==typeof s&&e(r,s);return r}(t,e,n),r,i)}}function $o(t,e){return e>=t.expandoStartIndex}function qo(t,e,n,r){const s=t.data;if(null===s[n+1]){const i=s[Pe()+Nt],o=$o(t,n);Jo(i,r)&&null===e&&!o&&(e=!1),e=function(t,e,n,r){const s=Oe(t);let i=r?e.residualClasses:e.residualStyles;if(null===s)0===(r?e.classBindings:e.styleBindings)&&(n=Go(n=Wo(null,t,e,n,r),e.attrs,r),i=null);else{const o=e.directiveStylingLast;if(-1===o||t[o]!==s)if(n=Wo(s,t,e,n,r),null===i){let n=function(t,e,n){const r=n?e.classBindings:e.styleBindings;if(0!==Kr(r))return t[Wr(r)]}(t,e,r);void 0!==n&&Array.isArray(n)&&(n=Wo(null,t,e,n[1],r),n=Go(n,e.attrs,r),function(t,e,n,r){t[Wr(n?e.classBindings:e.styleBindings)]=r}(t,e,r,n))}else i=function(t,e,n){let r=void 0;const s=e.directiveEnd;for(let i=1+e.directiveStylingLast;i<s;i++)r=Go(r,t[i].hostAttrs,n);return Go(r,e.attrs,n)}(t,e,r)}return void 0!==i&&(r?e.residualClasses=i:e.residualStyles=i),n}(s,i,e,r),function(t,e,n,r,s,i){let o=i?e.classBindings:e.styleBindings,a=Wr(o),c=Kr(o);t[r]=n;let l,u=!1;if(Array.isArray(n)){const t=n;l=t[1],(null===l||_t(t,l)>0)&&(u=!0)}else l=n;if(s)if(0!==c){const e=Wr(t[a+1]);t[r+1]=qr(e,a),0!==e&&(t[e+1]=Qr(t[e+1],r)),t[a+1]=131071&t[a+1]|r<<17}else t[r+1]=qr(a,0),0!==a&&(t[a+1]=Qr(t[a+1],r)),a=r;else t[r+1]=qr(c,0),0===a?a=r:t[c+1]=Qr(t[c+1],r),c=r;u&&(t[r+1]=Gr(t[r+1])),Fo(t,l,r,!0),Fo(t,l,r,!1),function(t,e,n,r,s){const i=s?t.residualClasses:t.residualStyles;null!=i&&"string"==typeof e&&_t(i,e)>=0&&(n[r+1]=Zr(n[r+1]))}(e,l,t,r,i),o=qr(a,c),i?e.classBindings=o:e.styleBindings=o}(s,i,e,n,o,r)}}function Wo(t,e,n,r,s){let i=null;const o=n.directiveEnd;let a=n.directiveStylingLast;for(-1===a?a=n.directiveStart:a++;a<o&&(i=e[a],r=Go(r,i.hostAttrs,s),i!==t);)a++;return null!==t&&(n.directiveStylingLast=a),r}function Go(t,e,n){const r=n?1:2;let s=-1;if(null!==e)for(let i=0;i<e.length;i++){const o=e[i];"number"==typeof o?s=o:s===r&&(Array.isArray(t)||(t=void 0===t?[]:["",t]),bt(t,o,!!n||e[++i]))}return void 0===t?null:t}function Ko(t,e,n,r,s,i,o,a){if(3!==e.type)return;const c=t.data,l=c[a+1];Zo(1==(1&l)?Qo(c,e,n,s,Kr(l),o):void 0)||(Zo(i)||2==(2&l)&&(i=Qo(c,null,n,s,a,o)),function(t,e,n,r,s){const i=Qt(t);if(e)s?i?t.addClass(n,r):n.classList.add(r):i?t.removeClass(n,r):n.classList.remove(r);else{const e=-1==r.indexOf("-")?void 0:2;null==s?i?t.removeStyle(n,r,e):n.style.removeProperty(r):i?t.setStyle(n,r,s,e):n.style.setProperty(r,s)}}(r,o,Yt(Pe(),n),s,i))}function Qo(t,e,n,r,s,i){const o=null===e;let a=void 0;for(;s>0;){const e=t[s],i=Array.isArray(e),c=i?e[1]:e,l=null===c;let u=n[s+1];u===Pr&&(u=l?jo:void 0);let h=l?yt(u,r):c===r?u:void 0;if(i&&!Zo(h)&&(h=yt(e,r)),Zo(h)&&(a=h,o))return a;const d=t[s+1];s=o?Wr(d):Kr(d)}if(null!==e){let t=i?e.residualClasses:e.residualStyles;null!=t&&(a=yt(t,r))}return a}function Zo(t){return void 0!==t}function Jo(t,e){return 0!=(t.flags&(e?16:32))}function Yo(t,e=""){const n=he(),r=de(),s=t+Nt,i=r.firstCreatePass?ts(r,n[6],t,3,null,null):r.data[s],o=n[s]=$s(e,n[11]);ri(r,n,o,i),me(i,!1)}function Xo(t){return ta("",t,""),Xo}function ta(t,e,n){const r=he(),s=to(r,t,e,n);return s!==Pr&&Hs(r,Pe(),s),ta}function ea(t,e,n,r,s){const i=he(),o=eo(i,t,e,n,r,s);return o!==Pr&&Hs(i,Pe(),o),ea}function na(t,e,n,r,s,i,o){const a=he(),c=function(t,e,n,r,s,i,o,a){const c=Ji(t,we(),n,s,o);return De(3),c?e+en(n)+r+en(s)+i+en(o)+a:Pr}(a,t,e,n,r,s,i,o);return c!==Pr&&Hs(a,Pe(),c),na}function ra(t,e,n,r,s,i,o,a,c){const l=he(),u=no(l,t,e,n,r,s,i,o,a,c);return u!==Pr&&Hs(l,Pe(),u),ra}function sa(t,e,n){zo(bt,Lo,to(he(),t,e,n),!0)}function ia(t,e,n,r,s,i,o,a,c){zo(bt,Lo,no(he(),t,e,n,r,s,i,o,a,c),!0)}function oa(t,e,n){const r=he();return Qi(r,Ce(),e)&&fs(de(),Ve(),r,t,e,r[11],n,!0),oa}function aa(t,e,n){const r=he();if(Qi(r,Ce(),e)){const s=de(),i=Ve();fs(s,i,r,t,e,function(t,e,n){return(null===t||$t(t))&&(n=function(t){for(;Array.isArray(t);){if("object"==typeof t[1])return t;t=t[0]}return null}(n[e.index])),n[11]}(Oe(s.data),i,r),n,!0)}return aa}function ca(t,e){const n=re(t)[1],r=n.data.length-1;Be(n,{directiveStart:r,directiveEnd:r+1})}function la(t){let e=Object.getPrototypeOf(t.type.prototype).constructor,n=!0;const r=[t];for(;e;){let s=void 0;if($t(t))s=e.\u0275cmp||e.\u0275dir;else{if(e.\u0275cmp)throw new Error("Directives cannot inherit Components");s=e.\u0275dir}if(s){if(n){r.push(s);const e=t;e.inputs=ua(t.inputs),e.declaredInputs=ua(t.declaredInputs),e.outputs=ua(t.outputs);const n=s.hostBindings;n&&fa(t,n);const i=s.viewQuery,o=s.contentQueries;if(i&&ha(t,i),o&&da(t,o),_(t.inputs,s.inputs),_(t.declaredInputs,s.declaredInputs),_(t.outputs,s.outputs),$t(s)&&s.data.animation){const e=t.data;e.animation=(e.animation||[]).concat(s.data.animation)}e.afterContentChecked=e.afterContentChecked||s.afterContentChecked,e.afterContentInit=t.afterContentInit||s.afterContentInit,e.afterViewChecked=t.afterViewChecked||s.afterViewChecked,e.afterViewInit=t.afterViewInit||s.afterViewInit,e.doCheck=t.doCheck||s.doCheck,e.onDestroy=t.onDestroy||s.onDestroy,e.onInit=t.onInit||s.onInit}const e=s.features;if(e)for(let r=0;r<e.length;r++){const s=e[r];s&&s.ngInherit&&s(t),s===la&&(n=!1)}}e=Object.getPrototypeOf(e)}!function(t){let e=0,n=null;for(let r=t.length-1;r>=0;r--){const s=t[r];s.hostVars=e+=s.hostVars,s.hostAttrs=Qe(s.hostAttrs,n=Qe(n,s.hostAttrs))}}(r)}function ua(t){return t===Ct?{}:t===Dt?[]:t}function ha(t,e){const n=t.viewQuery;t.viewQuery=n?(t,r)=>{e(t,r),n(t,r)}:e}function da(t,e){const n=t.contentQueries;t.contentQueries=n?(t,r,s)=>{e(t,r,s),n(t,r,s)}:e}function fa(t,e){const n=t.hostBindings;t.hostBindings=n?(t,r)=>{e(t,r),n(t,r)}:e}class pa{constructor(t,e,n){this.previousValue=t,this.currentValue=e,this.firstChange=n}isFirstChange(){return this.firstChange}}function ma(t){t.type.prototype.ngOnChanges&&(t.setInput=ga,t.onChanges=function(){const t=ba(this),e=t&&t.current;if(e){const n=t.previous;if(n===Ct)t.previous=e;else for(let t in e)n[t]=e[t];t.current=null,this.ngOnChanges(e)}})}function ga(t,e,n,r){const s=ba(t)||function(t,e){return t.__ngSimpleChanges__=e}(t,{previous:Ct,current:null}),i=s.current||(s.current={}),o=s.previous,a=this.declaredInputs[n],c=o[a];i[a]=new pa(c&&c.currentValue,e,o===Ct),t[r]=e}function ba(t){return t.__ngSimpleChanges__||null}function ya(t,e,n,r,s){if(t=R(t),Array.isArray(t))for(let i=0;i<t.length;i++)ya(t[i],e,n,r,s);else{const i=de(),o=he();let a=Vi(t)?t:R(t.provide),c=Mi(t);const l=pe(),u=65535&l.providerIndexes,h=l.directiveStart,d=l.providerIndexes>>16;if(Vi(t)||!t.multi){const r=new qe(c,s,io),f=wa(a,e,s?u:u+d,h);-1===f?(fn(ln(l,o),i,a),_a(i,t,e.length),e.push(a),l.directiveStart++,l.directiveEnd++,s&&(l.providerIndexes+=65536),n.push(r),o.push(r)):(n[f]=r,o[f]=r)}else{const f=wa(a,e,u+d,h),p=wa(a,e,u,u+d),m=f>=0&&n[f],g=p>=0&&n[p];if(s&&!g||!s&&!m){fn(ln(l,o),i,a);const u=function(t,e,n,r,s){const i=new qe(t,n,io);return i.multi=[],i.index=e,i.componentProviders=0,va(i,s,r&&!n),i}(s?Da:Ca,n.length,s,r,c);!s&&g&&(n[p].providerFactory=u),_a(i,t,e.length,0),e.push(a),l.directiveStart++,l.directiveEnd++,s&&(l.providerIndexes+=65536),n.push(u),o.push(u)}else _a(i,t,f>-1?f:p,va(n[s?p:f],c,!s&&r));!s&&r&&g&&n[p].componentProviders++}}}function _a(t,e,n,r){const s=Vi(e);if(s||e.useClass){const i=(e.useClass||e).prototype.ngOnDestroy;if(i){const o=t.destroyHooks||(t.destroyHooks=[]);if(!s&&e.multi){const t=o.indexOf(n);-1===t?o.push(n,[r,i]):o[t+1].push(r,i)}else o.push(n,i)}}}function va(t,e,n){return n&&t.componentProviders++,t.multi.push(e)-1}function wa(t,e,n,r){for(let s=n;s<r;s++)if(e[s]===t)return s;return-1}function Ca(t,e,n,r){return Ea(this.multi,[])}function Da(t,e,n,r){const s=this.multi;let i;if(this.providerFactory){const t=this.providerFactory.componentProviders,e=yn(n,n[1],this.providerFactory.index,r);i=e.slice(0,t),Ea(s,i);for(let n=t;n<e.length;n++)i.push(e[n])}else i=[],Ea(s,i);return i}function Ea(t,e){for(let n=0;n<t.length;n++)e.push((0,t[n])());return e}function Sa(t,e=[]){return n=>{n.providersResolver=(n,r)=>function(t,e,n){const r=de();if(r.firstCreatePass){const s=$t(t);ya(n,r.data,r.blueprint,s,!0),ya(e,r.data,r.blueprint,s,!1)}}(n,r?r(t):t,e)}}ma.ngInherit=!0;class Oa{}class xa{resolveComponentFactory(t){throw function(t){const e=Error(`No component factory found for ${T(t)}. Did you add it to @NgModule.entryComponents?`);return e.ngComponent=t,e}(t)}}let ka=(()=>{class t{}return t.NULL=new xa,t})(),Aa=(()=>{class t{constructor(t){this.nativeElement=t}}return t.__NG_ELEMENT_ID__=()=>Ta(t),t})();const Ta=function(t){return _i(t,pe(),he())};class ja{}var Fa=function(t){return t[t.Important=1]="Important",t[t.DashCase=2]="DashCase",t}({});let Ia=(()=>{class t{}return t.__NG_ELEMENT_ID__=()=>Ra(),t})();const Ra=function(){const t=he(),e=ne(pe().index,t);return function(t){const e=t[11];if(Qt(e))return e;throw new Error("Cannot inject Renderer2 when the application uses Renderer3!")}(Bt(e)?e:t)};let Ma=(()=>{class t{}return t.\u0275prov=v({token:t,providedIn:"root",factory:()=>null}),t})();class Pa{constructor(t){this.full=t,this.major=t.split(".")[0],this.minor=t.split(".")[1],this.patch=t.split(".").slice(2).join(".")}}const Na=new Pa("10.0.2");class Va{constructor(){}supports(t){return Wi(t)}create(t){return new Ha(t)}}const Ba=(t,e)=>e;class Ha{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||Ba}forEachItem(t){let e;for(e=this._itHead;null!==e;e=e._next)t(e)}forEachOperation(t){let e=this._itHead,n=this._removalsHead,r=0,s=null;for(;e||n;){const i=!n||e&&e.currentIndex<$a(n,r,s)?e:n,o=$a(i,r,s),a=i.currentIndex;if(i===n)r--,n=n._nextRemoved;else if(e=e._next,null==i.previousIndex)r++;else{s||(s=[]);const t=o-r,e=a-r;if(t!=e){for(let n=0;n<t;n++){const r=n<s.length?s[n]:s[n]=0,i=r+n;e<=i&&i<t&&(s[n]=r+1)}s[i.previousIndex]=e-t}}o!==a&&t(i,o,a)}}forEachPreviousItem(t){let e;for(e=this._previousItHead;null!==e;e=e._nextPrevious)t(e)}forEachAddedItem(t){let e;for(e=this._additionsHead;null!==e;e=e._nextAdded)t(e)}forEachMovedItem(t){let e;for(e=this._movesHead;null!==e;e=e._nextMoved)t(e)}forEachRemovedItem(t){let e;for(e=this._removalsHead;null!==e;e=e._nextRemoved)t(e)}forEachIdentityChange(t){let e;for(e=this._identityChangesHead;null!==e;e=e._nextIdentityChange)t(e)}diff(t){if(null==t&&(t=[]),!Wi(t))throw new Error(`Error trying to diff '${T(t)}'. Only arrays and iterables are allowed`);return this.check(t)?this:null}onDestroy(){}check(t){this._reset();let e,n,r,s=this._itHead,i=!1;if(Array.isArray(t)){this.length=t.length;for(let e=0;e<this.length;e++)n=t[e],r=this._trackByFn(e,n),null!==s&&Object.is(s.trackById,r)?(i&&(s=this._verifyReinsertion(s,n,r,e)),Object.is(s.item,n)||this._addIdentityChange(s,n)):(s=this._mismatch(s,n,r,e),i=!0),s=s._next}else e=0,function(t,e){if(Array.isArray(t))for(let n=0;n<t.length;n++)e(t[n]);else{const n=t[$i()]();let r;for(;!(r=n.next()).done;)e(r.value)}}(t,t=>{r=this._trackByFn(e,t),null!==s&&Object.is(s.trackById,r)?(i&&(s=this._verifyReinsertion(s,t,r,e)),Object.is(s.item,t)||this._addIdentityChange(s,t)):(s=this._mismatch(s,t,r,e),i=!0),s=s._next,e++}),this.length=e;return this._truncate(s),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,e;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=e)t.previousIndex=t.currentIndex,e=t._nextMoved;this._movesHead=this._movesTail=null,this._removalsHead=this._removalsTail=null,this._identityChangesHead=this._identityChangesTail=null}}_mismatch(t,e,n,r){let s;return null===t?s=this._itTail:(s=t._prev,this._remove(t)),null!==(t=null===this._linkedRecords?null:this._linkedRecords.get(n,r))?(Object.is(t.item,e)||this._addIdentityChange(t,e),this._moveAfter(t,s,r)):null!==(t=null===this._unlinkedRecords?null:this._unlinkedRecords.get(n,null))?(Object.is(t.item,e)||this._addIdentityChange(t,e),this._reinsertAfter(t,s,r)):t=this._addAfter(new La(e,n),s,r),t}_verifyReinsertion(t,e,n,r){let s=null===this._unlinkedRecords?null:this._unlinkedRecords.get(n,null);return null!==s?t=this._reinsertAfter(s,t._prev,r):t.currentIndex!=r&&(t.currentIndex=r,this._addToMoves(t,r)),t}_truncate(t){for(;null!==t;){const e=t._next;this._addToRemovals(this._unlink(t)),t=e}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,e,n){null!==this._unlinkedRecords&&this._unlinkedRecords.remove(t);const r=t._prevRemoved,s=t._nextRemoved;return null===r?this._removalsHead=s:r._nextRemoved=s,null===s?this._removalsTail=r:s._prevRemoved=r,this._insertAfter(t,e,n),this._addToMoves(t,n),t}_moveAfter(t,e,n){return this._unlink(t),this._insertAfter(t,e,n),this._addToMoves(t,n),t}_addAfter(t,e,n){return this._insertAfter(t,e,n),this._additionsTail=null===this._additionsTail?this._additionsHead=t:this._additionsTail._nextAdded=t,t}_insertAfter(t,e,n){const r=null===e?this._itHead:e._next;return t._next=r,t._prev=e,null===r?this._itTail=t:r._prev=t,null===e?this._itHead=t:e._next=t,null===this._linkedRecords&&(this._linkedRecords=new za),this._linkedRecords.put(t),t.currentIndex=n,t}_remove(t){return this._addToRemovals(this._unlink(t))}_unlink(t){null!==this._linkedRecords&&this._linkedRecords.remove(t);const e=t._prev,n=t._next;return null===e?this._itHead=n:e._next=n,null===n?this._itTail=e:n._prev=e,t}_addToMoves(t,e){return t.previousIndex===e||(this._movesTail=null===this._movesTail?this._movesHead=t:this._movesTail._nextMoved=t),t}_addToRemovals(t){return null===this._unlinkedRecords&&(this._unlinkedRecords=new za),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,e){return t.item=e,this._identityChangesTail=null===this._identityChangesTail?this._identityChangesHead=t:this._identityChangesTail._nextIdentityChange=t,t}}class La{constructor(t,e){this.item=t,this.trackById=e,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 Ua{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,e){let n;for(n=this._head;null!==n;n=n._nextDup)if((null===e||e<=n.currentIndex)&&Object.is(n.trackById,t))return n;return null}remove(t){const e=t._prevDup,n=t._nextDup;return null===e?this._head=n:e._nextDup=n,null===n?this._tail=e:n._prevDup=e,null===this._head}}class za{constructor(){this.map=new Map}put(t){const e=t.trackById;let n=this.map.get(e);n||(n=new Ua,this.map.set(e,n)),n.add(t)}get(t,e){const n=this.map.get(t);return n?n.get(t,e):null}remove(t){const e=t.trackById;return this.map.get(e).remove(t)&&this.map.delete(e),t}get isEmpty(){return 0===this.map.size}clear(){this.map.clear()}}function $a(t,e,n){const r=t.previousIndex;if(null===r)return r;let s=0;return n&&r<n.length&&(s=n[r]),r+e+s}class qa{constructor(){}supports(t){return t instanceof Map||Gi(t)}create(){return new Wa}}class Wa{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 e;for(e=this._mapHead;null!==e;e=e._next)t(e)}forEachPreviousItem(t){let e;for(e=this._previousMapHead;null!==e;e=e._nextPrevious)t(e)}forEachChangedItem(t){let e;for(e=this._changesHead;null!==e;e=e._nextChanged)t(e)}forEachAddedItem(t){let e;for(e=this._additionsHead;null!==e;e=e._nextAdded)t(e)}forEachRemovedItem(t){let e;for(e=this._removalsHead;null!==e;e=e._nextRemoved)t(e)}diff(t){if(t){if(!(t instanceof Map||Gi(t)))throw new Error(`Error trying to diff '${T(t)}'. Only maps and objects are allowed`)}else t=new Map;return this.check(t)?this:null}onDestroy(){}check(t){this._reset();let e=this._mapHead;if(this._appendAfter=null,this._forEach(t,(t,n)=>{if(e&&e.key===n)this._maybeAddToChanges(e,t),this._appendAfter=e,e=e._next;else{const r=this._getOrCreateRecordForKey(n,t);e=this._insertBeforeOrAppend(e,r)}}),e){e._prev&&(e._prev._next=null),this._removalsHead=e;for(let t=e;null!==t;t=t._nextRemoved)t===this._mapHead&&(this._mapHead=null),this._records.delete(t.key),t._nextRemoved=t._next,t.previousValue=t.currentValue,t.currentValue=null,t._prev=null,t._next=null}return this._changesTail&&(this._changesTail._nextChanged=null),this._additionsTail&&(this._additionsTail._nextAdded=null),this.isDirty}_insertBeforeOrAppend(t,e){if(t){const n=t._prev;return e._next=t,e._prev=n,t._prev=e,n&&(n._next=e),t===this._mapHead&&(this._mapHead=e),this._appendAfter=t,t}return this._appendAfter?(this._appendAfter._next=e,e._prev=this._appendAfter):this._mapHead=e,this._appendAfter=e,null}_getOrCreateRecordForKey(t,e){if(this._records.has(t)){const n=this._records.get(t);this._maybeAddToChanges(n,e);const r=n._prev,s=n._next;return r&&(r._next=s),s&&(s._prev=r),n._next=null,n._prev=null,n}const n=new Ga(t);return this._records.set(t,n),n.currentValue=e,this._addToAdditions(n),n}_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,e){Object.is(e,t.currentValue)||(t.previousValue=t.currentValue,t.currentValue=e,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,e){t instanceof Map?t.forEach(e):Object.keys(t).forEach(n=>e(t[n],n))}}class Ga{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}}let Ka=(()=>{class t{constructor(t){this.factories=t}static create(e,n){if(null!=n){const t=n.factories.slice();e=e.concat(t)}return new t(e)}static extend(e){return{provide:t,useFactory:n=>{if(!n)throw new Error("Cannot extend IterableDiffers without a parent injector");return t.create(e,n)},deps:[[t,new p,new d]]}}find(t){const e=this.factories.find(e=>e.supports(t));if(null!=e)return e;throw new Error(`Cannot find a differ supporting object '${t}' of type '${n=t,n.name||typeof n}'`);var n}}return t.\u0275prov=v({token:t,providedIn:"root",factory:()=>new t([new Va])}),t})(),Qa=(()=>{class t{constructor(t){this.factories=t}static create(e,n){if(n){const t=n.factories.slice();e=e.concat(t)}return new t(e)}static extend(e){return{provide:t,useFactory:n=>{if(!n)throw new Error("Cannot extend KeyValueDiffers without a parent injector");return t.create(e,n)},deps:[[t,new p,new d]]}}find(t){const e=this.factories.find(e=>e.supports(t));if(e)return e;throw new Error(`Cannot find a differ supporting object '${t}'`)}}return t.\u0275prov=v({token:t,providedIn:"root",factory:()=>new t([new qa])}),t})();const Za=[new qa],Ja=new Ka([new Va]),Ya=new Qa(Za);let Xa=(()=>{class t{}return t.__NG_ELEMENT_ID__=()=>tc(t,Aa),t})();const tc=function(t,e){return vi(t,e,pe(),he())};let ec=(()=>{class t{}return t.__NG_ELEMENT_ID__=()=>nc(t,Aa),t})();const nc=function(t,e){return wi(t,e,pe(),he())},rc={};class sc extends ka{constructor(t){super(),this.ngModule=t}resolveComponentFactory(t){const e=Rt(t);return new ac(e,this.ngModule)}}function ic(t){const e=[];for(let n in t)t.hasOwnProperty(n)&&e.push({propName:t[n],templateName:n});return e}const oc=new K("SCHEDULER_TOKEN",{providedIn:"root",factory:()=>rn});class ac extends Oa{constructor(t,e){super(),this.componentDef=t,this.ngModule=e,this.componentType=t.type,this.selector=t.selectors.map(Mr).join(","),this.ngContentSelectors=t.ngContentSelectors?t.ngContentSelectors:[],this.isBoundToModule=!!e}get inputs(){return ic(this.componentDef.inputs)}get outputs(){return ic(this.componentDef.outputs)}create(t,e,n,r){const s=(r=r||this.ngModule)?function(t,e){return{get:(n,r,s)=>{const i=t.get(n,rc,s);return i!==rc||r===rc?i:e.get(n,r,s)}}}(t,r.injector):t,i=s.get(ja,Zt),o=s.get(Ma,null),a=i.createRenderer(null,this.componentDef),c=this.componentDef.selectors[0][0]||"div",l=n?function(t,e,n){if(Qt(t))return t.selectRootElement(e,n===wt.ShadowDom);let r="string"==typeof e?t.querySelector(e):e;return r.textContent="",r}(a,n,this.componentDef.encapsulation):Yr(c,i.createRenderer(null,this.componentDef),function(t){const e=t.toLowerCase();return"svg"===e?"http://www.w3.org/2000/svg":"math"===e?"http://www.w3.org/1998/MathML/":null}(c)),u=this.componentDef.onPush?576:528,h={components:[],scheduler:rn,clean:Ps,playerHandler:null,flags:0},d=ls(0,-1,null,1,0,null,null,null,null,null),f=Xr(null,d,h,u,null,null,i,a,o,s);let p,m;Te(f,null);try{const t=function(t,e,n,r,s,i){const o=n[1];n[20]=t;const a=ts(o,null,0,3,null,null),c=a.mergedAttrs=e.hostAttrs;null!==c&&(Ui(a,c,!0),null!==t&&(We(s,t,c),null!==a.classes&&di(s,t,a.classes),null!==a.styles&&hi(s,t,a.styles)));const l=r.createRenderer(t,e),u=Xr(n,cs(e),null,e.onPush?64:16,n[20],a,r,l,void 0);return o.firstCreatePass&&(fn(ln(a,n),o,e.type),_s(o,a),ws(a,n.length,1)),js(n,u),n[20]=u}(l,this.componentDef,f,i,a);if(l)if(n)We(a,l,["ng-version",Na.full]);else{const{attrs:t,classes:e}=function(t){const e=[],n=[];let r=1,s=2;for(;r<t.length;){let i=t[r];if("string"==typeof i)2===s?""!==i&&e.push(i,t[++r]):8===s&&n.push(i);else{if(!Tr(s))break;s=i}r++}return{attrs:e,classes:n}}(this.componentDef.selectors[0]);t&&We(a,l,t),e&&e.length>0&&di(a,l,e.join(" "))}if(m=te(d,0),void 0!==e){const t=m.projection=[];for(let n=0;n<this.ngContentSelectors.length;n++){const r=e[n];t.push(null!=r?Array.from(r):null)}}p=function(t,e,n,r,s){const i=n[1],o=function(t,e,n){const r=pe();t.firstCreatePass&&(n.providersResolver&&n.providersResolver(n),ys(t,r,1),Cs(t,e,n));const s=yn(e,t,e.length-1,r);wr(s,e);const i=Xt(r,e);return i&&wr(i,e),s}(i,n,e);r.components.push(o),t[8]=o,s&&s.forEach(t=>t(o,e)),e.contentQueries&&e.contentQueries(1,o,n.length-1);const a=pe();if(i.firstCreatePass&&(null!==e.hostBindings||null!==e.hostAttrs)){Ne(a.index-Nt);const t=n[1];ms(t,e),gs(t,n,e.hostVars),bs(e,o)}return o}(t,this.componentDef,f,h,[ca]),es(d,f,null)}finally{Me()}const g=new cc(this.componentType,p,_i(Aa,m,f),f,m);return d.node.child=m,g}}class cc extends class{}{constructor(t,e,n,r,s){super(),this.location=n,this._rootLView=r,this._tNode=s,this.destroyCbs=[],this.instance=e,this.hostView=this.changeDetectorRef=new pi(r),function(t,e,n,r){let s=t.node;null==s&&(t.node=s=hs(0,null,2,-1,null,null)),r[6]=s}(r[1],0,0,r),this.componentType=t}get injector(){return new wn(this._tNode,this._rootLView)}destroy(){this.destroyCbs&&(this.destroyCbs.forEach(t=>t()),this.destroyCbs=null,!this.hostView.destroyed&&this.hostView.destroy())}onDestroy(t){this.destroyCbs&&this.destroyCbs.push(t)}}const lc=void 0;var uc=["en",[["a","p"],["AM","PM"],lc],[["AM","PM"],lc,lc],[["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"]],lc,[["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"]],lc,[["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}",lc,"{1} 'at' {0}",lc],[".",",",";","%","+","-","E","\xd7","\u2030","\u221e","NaN",":"],["#,##0.###","#,##0%","\xa4#,##0.00","#E0"],"USD","$","US Dollar",{},"ltr",function(t){let e=Math.floor(Math.abs(t)),n=t.toString().replace(/^[^.]*\.?/,"").length;return 1===e&&0===n?1:5}];let hc={};function dc(t,e,n){"string"!=typeof e&&(n=e,e=t[bc.LocaleId]),e=e.toLowerCase().replace(/_/g,"-"),hc[e]=t,n&&(hc[e][bc.ExtraData]=n)}function fc(t){const e=function(t){return t.toLowerCase().replace(/_/g,"-")}(t);let n=gc(e);if(n)return n;const r=e.split("-")[0];if(n=gc(r),n)return n;if("en"===r)return uc;throw new Error(`Missing locale data for the locale "${t}".`)}function pc(t){return fc(t)[bc.CurrencyCode]||null}function mc(t){return fc(t)[bc.PluralCase]}function gc(t){return t in hc||(hc[t]=H.ng&&H.ng.common&&H.ng.common.locales&&H.ng.common.locales[t]),hc[t]}var bc=function(t){return t[t.LocaleId=0]="LocaleId",t[t.DayPeriodsFormat=1]="DayPeriodsFormat",t[t.DayPeriodsStandalone=2]="DayPeriodsStandalone",t[t.DaysFormat=3]="DaysFormat",t[t.DaysStandalone=4]="DaysStandalone",t[t.MonthsFormat=5]="MonthsFormat",t[t.MonthsStandalone=6]="MonthsStandalone",t[t.Eras=7]="Eras",t[t.FirstDayOfWeek=8]="FirstDayOfWeek",t[t.WeekendRange=9]="WeekendRange",t[t.DateFormat=10]="DateFormat",t[t.TimeFormat=11]="TimeFormat",t[t.DateTimeFormat=12]="DateTimeFormat",t[t.NumberSymbols=13]="NumberSymbols",t[t.NumberFormats=14]="NumberFormats",t[t.CurrencyCode=15]="CurrencyCode",t[t.CurrencySymbol=16]="CurrencySymbol",t[t.CurrencyName=17]="CurrencyName",t[t.Currencies=18]="Currencies",t[t.Directionality=19]="Directionality",t[t.PluralCase=20]="PluralCase",t[t.ExtraData=21]="ExtraData",t}({});const yc=["zero","one","two","few","many"],_c="en-US",vc=/^\s*(\ufffd\d+:?\d*\ufffd)\s*,\s*(select|plural)\s*,/,wc=/\ufffd\/?\*(\d+:\d+)\ufffd/gi,Cc=/\ufffd(\/?[#*!]\d+):?\d*\ufffd/gi,Dc=/\ufffd(\d+):?\d*\ufffd/gi,Ec=/({\s*\ufffd\d+:?\d*\ufffd\s*,\s*\S{6}\s*,[\s\S]*})/gi;function Sc(t){if(!t)return[];let e=0;const n=[],r=[],s=/[{}]/g;let i;for(s.lastIndex=0;i=s.exec(t);){const s=i.index;if("}"==i[0]){if(n.pop(),0==n.length){const n=t.substring(e,s);vc.test(n)?r.push(Oc(n)):r.push(n),e=s+1}}else{if(0==n.length){const n=t.substring(e,s);r.push(n),e=s+1}n.push("{")}}const o=t.substring(e);return r.push(o),r}function Oc(t){const e=[],n=[];let r=1,s=0;const i=Sc(t=t.replace(vc,function(t,e,n){return r="select"===n?0:1,s=parseInt(e.substr(1),10),""}));for(let o=0;o<i.length;){let t=i[o++].trim();1===r&&(t=t.replace(/\s*(?:=)?(\w+)\s*/,"$1")),t.length&&e.push(t);const s=Sc(i[o++]);e.length>n.length&&n.push(s)}return{type:r,mainBinding:s,cases:e,values:n}}function xc(t){let e,n,r="",s=0,i=!1;for(;null!==(e=wc.exec(t));)i?e[0]===`\ufffd/*${n}\ufffd`&&(s=e.index,i=!1):(r+=t.substring(s,e.index+e[0].length),n=e[1],i=!0);return r+=t.substr(s),r}function kc(t,e,n,r=null){const s=[null,null],i=t.split(Dc);let o=0;for(let a=0;a<i.length;a++){const t=i[a];if(1&a){const e=parseInt(t,10);s.push(-1-e),o|=Fc(e)}else""!==t&&s.push(t)}return s.push(e<<2|(n?1:0)),n&&s.push(n,r),s[0]=o,s[1]=s.length-2,s}function Ac(t,e=0){let n;e|=Fc(t.mainBinding);for(let r=0;r<t.values.length;r++){const s=t.values[r];for(let t=0;t<s.length;t++){const r=s[t];if("string"==typeof r)for(;n=Dc.exec(r);)e|=Fc(parseInt(n[1],10));else e=Ac(r,e)}}return e}const Tc=[];let jc=-1;function Fc(t){return 1<<Math.min(t,31)}const Ic=[];let Rc;function Mc(t){return t+Rc++}function Pc(t,e,n,r,s){const i=e.next;r||(r=n),r===n&&e!==n.child?(e.next=n.child,n.child=e):r!==n&&e!==r.next?(e.next=r.next,r.next=e):e.next=null,n!==s[6]&&(e.parent=n);let o=e.next;for(;o;)o.next===e&&(o.next=i),o=o.next;if(1===e.type)return li(t,s,e),e;ri(t,s,Xt(e,s),e);const a=s[e.index];return 0!==e.type&&Ht(a)&&ri(t,s,a[7],e),e}function Nc(t){return void 0===t}function Vc(t,e,n,r,s,i){const o=pe();e[n+Nt]=s;const a=ts(t,e[6],n,r,i,null);return o&&o.next===a&&(o.next=null),a}function Bc(t,e,n,r){const s=r[11];let i=null,o=null;const a=[];for(let c=0;c<e.length;c++){const l=e[c];if("string"==typeof l){const t=$s(l,s),u=e[++c];o=i,i=Vc(n,r,u,3,t,null),a.push(u),be()}else if("number"==typeof l)switch(7&l){case 1:const s=l>>>17;let u;u=s===t?r[6]:te(n,s),o=Pc(n,i,u,o,r);break;case 0:const h=l>=0,d=(h?l:~l)>>>3;a.push(d),o=i,i=te(n,d),i&&me(i,h);break;case 5:o=i=te(n,l>>>3),me(i,!1);break;case 4:const f=e[++c],p=e[++c];Es(te(n,l>>>3),r,f,p,null,null);break;default:throw new Error(`Unable to determine the type of mutate operation for "${l}"`)}else switch(l){case $r:const t=e[++c],u=e[++c],h=s.createComment(t);o=i,i=Vc(n,r,u,5,h,null),a.push(u),wr(h,r),i.activeCaseIndex=null,be();break;case zr:const d=e[++c],f=e[++c];o=i,i=Vc(n,r,f,3,s.createElement(d),d),a.push(f);break;default:throw new Error(`Unable to determine the type of mutate operation for "${l}"`)}}return be(),a}function Hc(t,e,n,r,s,i,o=!1){let a=!1;for(let c=0;c<t.length;c++){const l=t[c],u=t[++c];if(o||l&r){let o="";for(let l=c+1;l<=c+u;l++){const c=t[l];if("string"==typeof c)o+=c;else if("number"==typeof c)if(c<0)o+=en(i[n-c]);else{const u=c>>>2;let h,d,f;switch(3&c){case 1:const c=t[++l],p=t[++l];fs(s,te(s,u),i,c,o,i[11],p,!1);break;case 0:Hs(i,u,o);break;case 2:if(h=t[++l],d=e[h],f=te(s,u),null!==f.activeCaseIndex){const t=d.remove[f.activeCaseIndex];for(let n=0;n<t.length;n++){const r=t[n];switch(7&r){case 3:Lc(s,i,r>>>3,!1);break;case 6:const o=te(s,t[n+1]>>>3).activeCaseIndex;null!==o&&ht(e[r>>>3].remove[o],t)}}}const m=Kc(d,o);f.activeCaseIndex=-1!==m?m:null,m>-1&&(Bc(-1,d.create[m],s,i),a=!0);break;case 3:h=t[++l],d=e[h],f=te(s,u),null!==f.activeCaseIndex&&Hc(d.update[f.activeCaseIndex],e,n,r,s,i,a)}}}}c+=u}}function Lc(t,e,n,r){const s=te(t,n),i=Yt(n,e);i&&oi(e[11],i);const o=ee(e,n);if(Ht(o)){const t=o;0!==s.type&&oi(e[11],t[7])}r&&(s.flags|=64)}function Uc(t,e,n){(function(t,e,n){const r=de();Tc[++jc]=t,Oo(!0),r.firstCreatePass&&null===r.data[t+Nt]&&function(t,e,n,r,s){const i=e.blueprint.length-Nt;Rc=0;const o=pe(),a=ge()?o:o&&o.parent;let c=a&&a!==t[6]?a.index-Nt:n,l=0;Ic[l]=c;const u=[];if(n>0&&o!==a){let t=o.index-Nt;ge()||(t=~t),u.push(t<<3|0)}const h=[],d=[];if(""===r&&Nc(s))u.push(r,Mc(i),c<<17|1);else{const t=function(t,e){if(Nc(e))return xc(t);{const n=t.indexOf(`:${e}\ufffd`)+2+e.toString().length,r=t.search(new RegExp(`\ufffd\\/\\*\\d+:${e}\ufffd`));return xc(t.substring(n,r))}}(r,s),e=(f=t,f.replace(Xc," ")).split(Cc);for(let n=0;n<e.length;n++){let r=e[n];if(1&n)if("/"===r.charAt(0)){if("#"===r.charAt(1)){const t=parseInt(r.substr(2),10);c=Ic[--l],u.push(t<<3|5)}}else{const t=parseInt(r.substr(1),10),e="#"===r.charAt(0);u.push((e?t:~t)<<3|0,c<<17|1),e&&(Ic[++l]=c=t)}else{const e=Sc(r);for(let n=0;n<e.length;n++)if(1&n){const r=e[n];if("object"!=typeof r)throw new Error(`Unable to parse ICU expression in "${t}" message.`);const s=Mc(i);u.push($r,"",s,c<<17|1);const o=Ac(r);Qc(d,r,s,s);const a=d.length-1;h.push(Fc(r.mainBinding),3,-1-r.mainBinding,s<<2|2,a,o,2,s<<2|3,a)}else if(""!==e[n]){const t=e[n],r=t.match(Dc),s=Mc(i);u.push(r?"":t,s,c<<17|1),r&&ht(kc(t,s),h)}}}}var f;Rc>0&&function(t,e,n){if(n>0&&t.firstCreatePass){for(let r=0;r<n;r++)t.blueprint.push(null),t.data.push(null),e.push(null);t.expandoInstructions?t.expandoInstructions.push(n):t.expandoStartIndex+=n}}(e,t,Rc),e.data[n+Nt]={vars:Rc,create:u,update:h,icus:d.length?d:null}}(he(),r,t,e,n)})(t,e,n),function(){const t=he();!function(t,e){const n=Tc[jc--],r=t.data[n+Nt],s=pe(),i=Bc(n,r.create,t,e);let o=n+1;for(;o<=s.index-Nt;){-1===i.indexOf(o)&&Lc(t,e,o,!0);const n=te(t,o);!n||0!==n.type&&3!==n.type&&4!==n.type||null===n.localNames||(o+=n.localNames.length>>1),o++}}(de(),t),Oo(!1)}()}function zc(t,e){!function(t,e,n,r){const s=pe().index-Nt,i=[];for(let o=0;o<r.length;o+=2){const a=r[o],c=r[o+1].split(Ec);for(let r=0;r<c.length;r++){const o=c[r];if(1&r)throw new Error("ICU expressions are not yet supported in attributes");if(""!==o)if(o.match(Dc))e.firstCreatePass&&null===e.data[n+Nt]&&ht(kc(o,s,a),i);else{const n=te(e,s);3===n.type&&Es(n,t,a,o,null,null);const r=null!==n.inputs&&n.inputs[a];r&&Bs(e,t,r,a,o)}}}e.firstCreatePass&&null===e.data[n+Nt]&&(e.data[n+Nt]=i)}(he(),de(),t,e)}let $c=0,qc=0;function Wc(t){return Qi(he(),Ce(),t)&&($c|=1<<qc),qc++,Wc}function Gc(t){if(qc){const e=de(),n=e.data[t+Nt];let r,s=null;Array.isArray(n)?r=n:(r=n.update,s=n.icus);const i=we()-qc-1,o=he();Hc(r,s,i,$c,e,o),$c=0,qc=0}}function Kc(t,e){let n=t.cases.indexOf(e);if(-1===n)switch(t.type){case 1:{const r=function(t,e){const n=mc(e)(parseInt(t,10)),r=yc[n];return void 0!==r?r:"other"}(e,tl);n=t.cases.indexOf(r),-1===n&&"other"!==r&&(n=t.cases.indexOf("other"));break}case 0:n=t.cases.indexOf("other")}return n}function Qc(t,e,n,r){const s=[],i=[],o=[],a=[],c=[];for(let l=0;l<e.values.length;l++){const u=e.values[l],h=[];for(let t=0;t<u.length;t++){const e=u[t];if("string"!=typeof e){const n=h.push(e)-1;u[t]=`\x3c!--\ufffd${n}\ufffd--\x3e`}}const d=Zc(u.join(""),n,h,t,r);s.push(d.create),i.push(d.remove),o.push(d.update),a.push(d.vars),c.push(d.childIcus)}t.push({type:e.type,vars:a,childIcus:c,cases:e.cases,create:s,remove:i,update:o}),Rc+=Math.max(...a)}function Zc(t,e,n,r,s){const i=Wn(Kt()).getInertBodyElement(t);if(!i)throw new Error("Unable to generate inert body element");const o={vars:0,childIcus:[],create:[],remove:[],update:[]};return Yc((gr(i)||i).firstChild,o,e,n,r,s),o}const Jc=/\ufffd(\d+)\ufffd/;function Yc(t,e,n,r,s,i){if(t){const o=[];for(;t;){const a=t.nextSibling,c=i+ ++e.vars;switch(t.nodeType){case Node.ELEMENT_NODE:const a=t,l=a.tagName.toLowerCase();if(ir.hasOwnProperty(l)){e.create.push(zr,l,c,n<<17|1);const o=a.attributes;for(let t=0;t<o.length;t++){const n=o.item(t),r=n.name.toLowerCase();n.value.match(Dc)?cr.hasOwnProperty(r)&&ht(or[r]?kc(n.value,c,n.name,Jn):ar[r]?kc(n.value,c,n.name,Yn):kc(n.value,c,n.name),e.update):e.create.push(c<<3|4,n.name,n.value)}Yc(t.firstChild,e,c,r,s,i),e.remove.push(c<<3|3)}else e.vars--;break;case Node.TEXT_NODE:const u=t.textContent||"",h=u.match(Dc);e.create.push(h?"":u,c,n<<17|1),e.remove.push(c<<3|3),h&&ht(kc(u,c),e.update);break;case Node.COMMENT_NODE:const d=Jc.exec(t.textContent||"");if(d){const t=parseInt(d[1],10);e.create.push($r,"",c,n<<17|1),o.push([r[t],c])}else e.vars--;break;default:e.vars--}t=a}for(let t=0;t<o.length;t++){const n=o[t][0],r=o[t][1];Qc(s,n,r,i+e.vars);const a=s.length-1;e.vars+=Math.max(...s[a].vars),e.childIcus.push(a);const c=Ac(n);e.update.push(Fc(n.mainBinding),3,-1-n.mainBinding,r<<2|2,a,c,2,r<<2|3,a),e.remove.push(a<<3|6,r<<3|3)}}}const Xc=/\uE500/g;let tl=_c;function el(t){var e,n;n="Expected localeId to be defined",null==(e=t)&&function(t,e,n,r){throw new Error("ASSERTION ERROR: "+t+` [Expected=> null != ${e} <=Actual]`)}(n,e),"string"==typeof t&&(tl=t.toLowerCase().replace(/_/g,"-"))}const nl=new Map;function rl(t){if(null!==t.\u0275mod.id){const e=t.\u0275mod.id;(function(t,e,n){if(e&&e!==n)throw new Error(`Duplicate module registered for ${t} - ${T(e)} vs ${T(e.name)}`)})(e,nl.get(e),t),nl.set(e,t)}let e=t.\u0275mod.imports;e instanceof Function&&(e=e()),e&&e.forEach(t=>rl(t))}class sl extends lt{constructor(t,e){super(),this._parent=e,this._bootstrapComponents=[],this.injector=this,this.destroyCbs=[],this.componentFactoryResolver=new sc(this);const n=Pt(t),r=t[q]||null;r&&el(r),this._bootstrapComponents=sn(n.bootstrap),this._r3Injector=Fi(t,e,[{provide:lt,useValue:this},{provide:ka,useValue:this.componentFactoryResolver}],T(t)),this._r3Injector._resolveInjectorDefTypes(),this.instance=this.get(t)}get(t,e=Hi.THROW_IF_NOT_FOUND,n=b.Default){return t===Hi||t===lt||t===Q?this:this._r3Injector.get(t,e,n)}destroy(){const t=this._r3Injector;!t.destroyed&&t.destroy(),this.destroyCbs.forEach(t=>t()),this.destroyCbs=null}onDestroy(t){this.destroyCbs.push(t)}}class il extends ut{constructor(t){super(),this.moduleType=t,null!==Pt(t)&&rl(t)}create(t){return new sl(this.moduleType,t)}}function ol(t,e,n){const r=ve()+t,s=he();return s[r]===Pr?Ki(s,r,n?e.call(n):e()):function(t,e){return t[e]}(s,r)}function al(t,e,n,r){return hl(he(),ve(),t,e,n,r)}function cl(t,e,n,r,s){return dl(he(),ve(),t,e,n,r,s)}function ll(t,e,n,r,s,i){return function(t,e,n,r,s,i,o,a){const c=e+n;return Ji(t,c,s,i,o)?Ki(t,c+3,a?r.call(a,s,i,o):r(s,i,o)):ul(t,c+3)}(he(),ve(),t,e,n,r,s,i)}function ul(t,e){const n=t[e];return n===Pr?void 0:n}function hl(t,e,n,r,s,i){const o=e+n;return Qi(t,o,s)?Ki(t,o+1,i?r.call(i,s):r(s)):ul(t,o+1)}function dl(t,e,n,r,s,i,o){const a=e+n;return Zi(t,a,s,i)?Ki(t,a+2,o?r.call(o,s,i):r(s,i)):ul(t,a+2)}function fl(t,e){const n=de();let r;const s=t+Nt;n.firstCreatePass?(r=function(t,e){if(e)for(let n=e.length-1;n>=0;n--){const r=e[n];if(t===r.name)return r}throw new Error(`The pipe '${t}' could not be found!`)}(e,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=Mt(r.type)),o=rt(io),a=an(!1),c=i();return an(a),rt(o),function(t,e,n,r){const s=n+Nt;s>=t.data.length&&(t.data[s]=null,t.blueprint[s]=null),e[s]=r}(n,he(),t,c),c}function pl(t,e,n){const r=he(),s=ee(r,t);return yl(r,bl(r,t)?hl(r,ve(),e,s.transform,n,s):s.transform(n))}function ml(t,e,n,r){const s=he(),i=ee(s,t);return yl(s,bl(s,t)?dl(s,ve(),e,i.transform,n,r,i):i.transform(n,r))}function gl(t,e,n,r,s,i){const o=he(),a=ee(o,t);return yl(o,bl(o,t)?function(t,e,n,r,s,i,o,a,c){const l=e+n;return Yi(t,l,s,i,o,a)?Ki(t,l+4,c?r.call(c,s,i,o,a):r(s,i,o,a)):ul(t,l+4)}(o,ve(),e,a.transform,n,r,s,i,a):a.transform(n,r,s,i))}function bl(t,e){return t[1].data[e+Nt].pure}function yl(t,e){return qi.isWrapped(e)&&(e=qi.unwrap(e),t[we()]=Pr),e}const _l=class extends r.a{constructor(t=!1){super(),this.__isAsync=t}emit(t){super.next(t)}subscribe(t,e,n){let r,i=t=>null,o=()=>null;t&&"object"==typeof t?(r=this.__isAsync?e=>{setTimeout(()=>t.next(e))}:e=>{t.next(e)},t.error&&(i=this.__isAsync?e=>{setTimeout(()=>t.error(e))}:e=>{t.error(e)}),t.complete&&(o=this.__isAsync?()=>{setTimeout(()=>t.complete())}:()=>{t.complete()})):(r=this.__isAsync?e=>{setTimeout(()=>t(e))}:e=>{t(e)},e&&(i=this.__isAsync?t=>{setTimeout(()=>e(t))}:t=>{e(t)}),n&&(o=this.__isAsync?()=>{setTimeout(()=>n())}:()=>{n()}));const a=super.subscribe(r,i,o);return t instanceof s.a&&t.add(a),a}};function vl(){return this._results[$i()]()}class wl{constructor(){this.dirty=!0,this._results=[],this.changes=new _l,this.length=0;const t=$i(),e=wl.prototype;e[t]||(e[t]=vl)}map(t){return this._results.map(t)}filter(t){return this._results.filter(t)}find(t){return this._results.find(t)}reduce(t,e){return this._results.reduce(t,e)}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){this._results=dt(t),this.dirty=!1,this.length=this._results.length,this.last=this._results[this.length-1],this.first=this._results[0]}notifyOnChanges(){this.changes.emit(this)}setDirty(){this.dirty=!0}destroy(){this.changes.complete(),this.changes.unsubscribe()}}class Cl{constructor(t){this.queryList=t,this.matches=null}clone(){return new Cl(this.queryList)}setDirty(){this.queryList.setDirty()}}class Dl{constructor(t=[]){this.queries=t}createEmbeddedView(t){const e=t.queries;if(null!==e){const n=null!==t.contentQueries?t.contentQueries[0]:e.length,r=[];for(let t=0;t<n;t++){const n=e.getByIndex(t);r.push(this.queries[n.indexInDeclarationView].clone())}return new Dl(r)}return null}insertView(t){this.dirtyQueriesWithMatches(t)}detachView(t){this.dirtyQueriesWithMatches(t)}dirtyQueriesWithMatches(t){for(let e=0;e<this.queries.length;e++)null!==Ll(t,e).matches&&this.queries[e].setDirty()}}class El{constructor(t,e,n,r=null){this.predicate=t,this.descendants=e,this.isStatic=n,this.read=r}}class Sl{constructor(t=[]){this.queries=t}elementStart(t,e){for(let n=0;n<this.queries.length;n++)this.queries[n].elementStart(t,e)}elementEnd(t){for(let e=0;e<this.queries.length;e++)this.queries[e].elementEnd(t)}embeddedTView(t){let e=null;for(let n=0;n<this.length;n++){const r=null!==e?e.length:0,s=this.getByIndex(n).embeddedTView(t,r);s&&(s.indexInDeclarationView=n,null!==e?e.push(s):e=[s])}return null!==e?new Sl(e):null}template(t,e){for(let n=0;n<this.queries.length;n++)this.queries[n].template(t,e)}getByIndex(t){return this.queries[t]}get length(){return this.queries.length}track(t){this.queries.push(t)}}class Ol{constructor(t,e=-1){this.metadata=t,this.matches=null,this.indexInDeclarationView=-1,this.crossesNgTemplate=!1,this._appliesToNextNode=!0,this._declarationNodeIndex=e}elementStart(t,e){this.isApplyingToNode(e)&&this.matchTNode(t,e)}elementEnd(t){this._declarationNodeIndex===t.index&&(this._appliesToNextNode=!1)}template(t,e){this.elementStart(t,e)}embeddedTView(t,e){return this.isApplyingToNode(t)?(this.crossesNgTemplate=!0,this.addMatch(-t.index,e),new Ol(this.metadata)):null}isApplyingToNode(t){if(this._appliesToNextNode&&!1===this.metadata.descendants){const e=this._declarationNodeIndex;let n=t.parent;for(;null!==n&&4===n.type&&n.index!==e;)n=n.parent;return e===(null!==n?n.index:-1)}return this._appliesToNextNode}matchTNode(t,e){if(Array.isArray(this.metadata.predicate)){const n=this.metadata.predicate;for(let r=0;r<n.length;r++)this.matchTNodeWithReadOption(t,e,xl(e,n[r]))}else{const n=this.metadata.predicate;n===Xa?0===e.type&&this.matchTNodeWithReadOption(t,e,-1):this.matchTNodeWithReadOption(t,e,bn(e,t,n,!1,!1))}}matchTNodeWithReadOption(t,e,n){if(null!==n){const r=this.metadata.read;if(null!==r)if(r===Aa||r===ec||r===Xa&&0===e.type)this.addMatch(e.index,-2);else{const n=bn(e,t,r,!1,!1);null!==n&&this.addMatch(e.index,n)}else this.addMatch(e.index,n)}}addMatch(t,e){null===this.matches?this.matches=[t,e]:this.matches.push(t,e)}}function xl(t,e){const n=t.localNames;if(null!==n)for(let r=0;r<n.length;r+=2)if(n[r]===e)return n[r+1];return null}function kl(t,e,n,r){return-1===n?function(t,e){return 3===t.type||4===t.type?_i(Aa,t,e):0===t.type?vi(Xa,Aa,t,e):null}(e,t):-2===n?function(t,e,n){return n===Aa?_i(Aa,e,t):n===Xa?vi(Xa,Aa,e,t):n===ec?wi(ec,Aa,e,t):void 0}(t,e,r):yn(t,t[1],n,e)}function Al(t,e,n,r){const s=e[19].queries[r];if(null===s.matches){const r=t.data,i=n.matches,o=[];for(let t=0;t<i.length;t+=2){const s=i[t];o.push(s<0?null:kl(e,r[s],i[t+1],n.metadata.read))}s.matches=o}return s.matches}function Tl(t,e,n,r){const s=t.queries.getByIndex(n),i=s.matches;if(null!==i){const o=Al(t,e,s,n);for(let t=0;t<i.length;t+=2){const n=i[t];if(n>0)r.push(o[t/2]);else{const s=i[t+1],o=e[-n];for(let t=Vt;t<o.length;t++){const e=o[t];e[17]===e[3]&&Tl(e[1],e,s,r)}if(null!==o[9]){const t=o[9];for(let e=0;e<t.length;e++){const n=t[e];Tl(n[1],n,s,r)}}}}}return r}function jl(t){const e=he(),n=de(),r=xe();ke(r+1);const s=Ll(n,r);if(t.dirty&&se(e)===s.metadata.isStatic){if(null===s.matches)t.reset([]);else{const i=s.crossesNgTemplate?Tl(n,e,r,[]):Al(n,e,s,r);t.reset(i),t.notifyOnChanges()}return!0}return!1}function Fl(t,e,n){Rl(de(),he(),t,e,n,!0)}function Il(t,e,n){Rl(de(),he(),t,e,n,!1)}function Rl(t,e,n,r,s,i){t.firstCreatePass&&(Hl(t,new El(n,r,i,s),-1),i&&(t.staticViewQueries=!0)),Bl(t,e)}function Ml(t,e,n,r){Nl(de(),he(),e,n,r,!1,pe(),t)}function Pl(t,e,n,r){Nl(de(),he(),e,n,r,!0,pe(),t)}function Nl(t,e,n,r,s,i,o,a){t.firstCreatePass&&(Hl(t,new El(n,r,i,s),o.index),function(t,e){const n=t.contentQueries||(t.contentQueries=[]);e!==(t.contentQueries.length?n[n.length-1]:-1)&&n.push(t.queries.length-1,e)}(t,a),i&&(t.staticContentQueries=!0)),Bl(t,e)}function Vl(){return t=he(),e=xe(),t[19].queries[e].queryList;var t,e}function Bl(t,e){const n=new wl;us(t,e,n,n.destroy),null===e[19]&&(e[19]=new Dl),e[19].queries.push(new Cl(n))}function Hl(t,e,n){null===t.queries&&(t.queries=new Sl),t.queries.track(new Ol(e,n))}function Ll(t,e){return t.queries.getByIndex(e)}function Ul(t,e){return vi(Xa,Aa,t,e)}function zl(t=b.Default){const e=Ci(!0);if(null!=e||t&b.Optional)return e;throw new Error("No provider for ChangeDetectorRef!")}const $l=new K("Application Initializer");let ql=(()=>{class t{constructor(t){this.appInits=t,this.initialized=!1,this.done=!1,this.donePromise=new Promise((t,e)=>{this.resolve=t,this.reject=e})}runInitializers(){if(this.initialized)return;const t=[],e=()=>{this.done=!0,this.resolve()};if(this.appInits)for(let n=0;n<this.appInits.length;n++){const e=this.appInits[n]();bo(e)&&t.push(e)}Promise.all(t).then(()=>{e()}).catch(t=>{this.reject(t)}),0===t.length&&e(),this.initialized=!0}}return t.\u0275fac=function(e){return new(e||t)(it($l,8))},t.\u0275prov=v({token:t,factory:t.\u0275fac}),t})();const Wl=new K("AppId"),Gl={provide:Wl,useFactory:function(){return`${Kl()}${Kl()}${Kl()}`},deps:[]};function Kl(){return String.fromCharCode(97+Math.floor(25*Math.random()))}const Ql=new K("Platform Initializer"),Zl=new K("Platform ID"),Jl=new K("appBootstrapListener");let Yl=(()=>{class t{log(t){console.log(t)}warn(t){console.warn(t)}}return t.\u0275fac=function(e){return new(e||t)},t.\u0275prov=v({token:t,factory:t.\u0275fac}),t})();const Xl=new K("LocaleId"),tu=new K("DefaultCurrencyCode");class eu{constructor(t,e){this.ngModuleFactory=t,this.componentFactories=e}}const nu=function(t){return new il(t)},ru=nu,su=function(t){return Promise.resolve(nu(t))},iu=function(t){const e=nu(t),n=sn(Pt(t).declarations).reduce((t,e)=>{const n=Rt(e);return n&&t.push(new ac(n)),t},[]);return new eu(e,n)},ou=iu,au=function(t){return Promise.resolve(iu(t))};let cu=(()=>{class t{constructor(){this.compileModuleSync=ru,this.compileModuleAsync=su,this.compileModuleAndAllComponentsSync=ou,this.compileModuleAndAllComponentsAsync=au}clearCache(){}clearCacheFor(t){}getModuleId(t){}}return t.\u0275fac=function(e){return new(e||t)},t.\u0275prov=v({token:t,factory:t.\u0275fac}),t})();const lu=(()=>Promise.resolve(0))();function uu(t){"undefined"==typeof Zone?lu.then(()=>{t&&t.apply(null,null)}):Zone.current.scheduleMicroTask("scheduleMicrotask",t)}class hu{constructor({enableLongStackTrace:t=!1,shouldCoalesceEventChangeDetection:e=!1}){if(this.hasPendingMacrotasks=!1,this.hasPendingMicrotasks=!1,this.isStable=!0,this.onUnstable=new _l(!1),this.onMicrotaskEmpty=new _l(!1),this.onStable=new _l(!1),this.onError=new _l(!1),"undefined"==typeof Zone)throw new Error("In this configuration Angular requires Zone.js");Zone.assertZonePatched();const n=this;n._nesting=0,n._outer=n._inner=Zone.current,Zone.wtfZoneSpec&&(n._inner=n._inner.fork(Zone.wtfZoneSpec)),Zone.TaskTrackingZoneSpec&&(n._inner=n._inner.fork(new Zone.TaskTrackingZoneSpec)),t&&Zone.longStackTraceZoneSpec&&(n._inner=n._inner.fork(Zone.longStackTraceZoneSpec)),n.shouldCoalesceEventChangeDetection=e,n.lastRequestAnimationFrameId=-1,n.nativeRequestAnimationFrame=function(){let t=H.requestAnimationFrame,e=H.cancelAnimationFrame;if("undefined"!=typeof Zone&&t&&e){const n=t[Zone.__symbol__("OriginalDelegate")];n&&(t=n);const r=e[Zone.__symbol__("OriginalDelegate")];r&&(e=r)}return{nativeRequestAnimationFrame:t,nativeCancelAnimationFrame:e}}().nativeRequestAnimationFrame,function(t){const e=!!t.shouldCoalesceEventChangeDetection&&t.nativeRequestAnimationFrame&&(()=>{!function(t){-1===t.lastRequestAnimationFrameId&&(t.lastRequestAnimationFrameId=t.nativeRequestAnimationFrame.call(H,()=>{t.fakeTopEventTask||(t.fakeTopEventTask=Zone.root.scheduleEventTask("fakeTopEventTask",()=>{t.lastRequestAnimationFrameId=-1,mu(t),pu(t)},void 0,()=>{},()=>{})),t.fakeTopEventTask.invoke()}),mu(t))}(t)});t._inner=t._inner.fork({name:"angular",properties:{isAngularZone:!0,maybeDelayChangeDetection:e},onInvokeTask:(n,r,s,i,o,a)=>{try{return gu(t),n.invokeTask(s,i,o,a)}finally{e&&"eventTask"===i.type&&e(),bu(t)}},onInvoke:(e,n,r,s,i,o,a)=>{try{return gu(t),e.invoke(r,s,i,o,a)}finally{bu(t)}},onHasTask:(e,n,r,s)=>{e.hasTask(r,s),n===r&&("microTask"==s.change?(t._hasPendingMicrotasks=s.microTask,mu(t),pu(t)):"macroTask"==s.change&&(t.hasPendingMacrotasks=s.macroTask))},onHandleError:(e,n,r,s)=>(e.handleError(r,s),t.runOutsideAngular(()=>t.onError.emit(s)),!1)})}(n)}static isInAngularZone(){return!0===Zone.current.get("isAngularZone")}static assertInAngularZone(){if(!hu.isInAngularZone())throw new Error("Expected to be in Angular Zone, but it is not!")}static assertNotInAngularZone(){if(hu.isInAngularZone())throw new Error("Expected to not be in Angular Zone, but it is!")}run(t,e,n){return this._inner.run(t,e,n)}runTask(t,e,n,r){const s=this._inner,i=s.scheduleEventTask("NgZoneEvent: "+r,t,fu,du,du);try{return s.runTask(i,e,n)}finally{s.cancelTask(i)}}runGuarded(t,e,n){return this._inner.runGuarded(t,e,n)}runOutsideAngular(t){return this._outer.run(t)}}function du(){}const fu={};function pu(t){if(0==t._nesting&&!t.hasPendingMicrotasks&&!t.isStable)try{t._nesting++,t.onMicrotaskEmpty.emit(null)}finally{if(t._nesting--,!t.hasPendingMicrotasks)try{t.runOutsideAngular(()=>t.onStable.emit(null))}finally{t.isStable=!0}}}function mu(t){t.hasPendingMicrotasks=!!(t._hasPendingMicrotasks||t.shouldCoalesceEventChangeDetection&&-1!==t.lastRequestAnimationFrameId)}function gu(t){t._nesting++,t.isStable&&(t.isStable=!1,t.onUnstable.emit(null))}function bu(t){t._nesting--,pu(t)}class yu{constructor(){this.hasPendingMicrotasks=!1,this.hasPendingMacrotasks=!1,this.isStable=!0,this.onUnstable=new _l,this.onMicrotaskEmpty=new _l,this.onStable=new _l,this.onError=new _l}run(t,e,n){return t.apply(e,n)}runGuarded(t,e,n){return t.apply(e,n)}runOutsideAngular(t){return t()}runTask(t,e,n,r){return t.apply(e,n)}}let _u=(()=>{class t{constructor(t){this._ngZone=t,this._pendingCount=0,this._isZoneStable=!0,this._didWork=!1,this._callbacks=[],this.taskTrackingZone=null,this._watchAngularEvents(),t.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:()=>{hu.assertNotInAngularZone(),uu(()=>{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())uu(()=>{for(;0!==this._callbacks.length;){let t=this._callbacks.pop();clearTimeout(t.timeoutId),t.doneCb(this._didWork)}this._didWork=!1});else{let t=this.getPendingTasks();this._callbacks=this._callbacks.filter(e=>!e.updateCb||!e.updateCb(t)||(clearTimeout(e.timeoutId),!1)),this._didWork=!0}}getPendingTasks(){return this.taskTrackingZone?this.taskTrackingZone.macroTasks.map(t=>({source:t.source,creationLocation:t.creationLocation,data:t.data})):[]}addCallback(t,e,n){let r=-1;e&&e>0&&(r=setTimeout(()=>{this._callbacks=this._callbacks.filter(t=>t.timeoutId!==r),t(this._didWork,this.getPendingTasks())},e)),this._callbacks.push({doneCb:t,timeoutId:r,updateCb:n})}whenStable(t,e,n){if(n&&!this.taskTrackingZone)throw new Error('Task tracking zone is required when passing an update callback to whenStable(). Is "zone.js/dist/task-tracking.js" loaded?');this.addCallback(t,e,n),this._runCallbacksIfReady()}getPendingRequestCount(){return this._pendingCount}findProviders(t,e,n){return[]}}return t.\u0275fac=function(e){return new(e||t)(it(hu))},t.\u0275prov=v({token:t,factory:t.\u0275fac}),t})(),vu=(()=>{class t{constructor(){this._applications=new Map,Eu.addToWindow(this)}registerApplication(t,e){this._applications.set(t,e)}unregisterApplication(t){this._applications.delete(t)}unregisterAllApplications(){this._applications.clear()}getTestability(t){return this._applications.get(t)||null}getAllTestabilities(){return Array.from(this._applications.values())}getAllRootElements(){return Array.from(this._applications.keys())}findTestabilityInTree(t,e=!0){return Eu.findTestabilityInTree(this,t,e)}}return t.\u0275fac=function(e){return new(e||t)},t.\u0275prov=v({token:t,factory:t.\u0275fac}),t})();class wu{addToWindow(t){}findTestabilityInTree(t,e,n){return null}}function Cu(t){Eu=t}let Du,Eu=new wu;const Su=new K("AllowMultipleToken");class Ou{constructor(t,e){this.name=t,this.token=e}}function xu(t,e,n=[]){const r="Platform: "+e,s=new K(r);return(e=[])=>{let i=ku();if(!i||i.injector.get(Su,!1))if(t)t(n.concat(e).concat({provide:s,useValue:!0}));else{const t=n.concat(e).concat({provide:s,useValue:!0},{provide:Oi,useValue:"platform"});!function(t){if(Du&&!Du.destroyed&&!Du.injector.get(Su,!1))throw new Error("There can be only one platform. Destroy the previous one to create a new one.");Du=t.get(Au);const e=t.get(Ql,null);e&&e.forEach(t=>t())}(Hi.create({providers:t,name:r}))}return function(t){const e=ku();if(!e)throw new Error("No platform exists!");if(!e.injector.get(t,null))throw new Error("A platform with a different configuration has been created. Please destroy it first.");return e}(s)}}function ku(){return Du&&!Du.destroyed?Du:null}let Au=(()=>{class t{constructor(t){this._injector=t,this._modules=[],this._destroyListeners=[],this._destroyed=!1}bootstrapModuleFactory(t,e){const n=function(t,e){let n;return n="noop"===t?new yu:("zone.js"===t?void 0:t)||new hu({enableLongStackTrace:$n(),shouldCoalesceEventChangeDetection:e}),n}(e?e.ngZone:void 0,e&&e.ngZoneEventCoalescing||!1),r=[{provide:hu,useValue:n}];return n.run(()=>{const e=Hi.create({providers:r,parent:this.injector,name:t.moduleType.name}),s=t.create(e),i=s.injector.get(xn,null);if(!i)throw new Error("No ErrorHandler. Is platform module (BrowserModule) included?");return s.onDestroy(()=>Fu(this._modules,s)),n.runOutsideAngular(()=>n.onError.subscribe({next:t=>{i.handleError(t)}})),function(t,e,n){try{const r=n();return bo(r)?r.catch(n=>{throw e.runOutsideAngular(()=>t.handleError(n)),n}):r}catch(r){throw e.runOutsideAngular(()=>t.handleError(r)),r}}(i,n,()=>{const t=s.injector.get(ql);return t.runInitializers(),t.donePromise.then(()=>(el(s.injector.get(Xl,_c)||_c),this._moduleDoBootstrap(s),s))})})}bootstrapModule(t,e=[]){const n=Tu({},e);return function(t,e,n){const r=new il(n);return Promise.resolve(r)}(0,0,t).then(t=>this.bootstrapModuleFactory(t,n))}_moduleDoBootstrap(t){const e=t.injector.get(ju);if(t._bootstrapComponents.length>0)t._bootstrapComponents.forEach(t=>e.bootstrap(t));else{if(!t.instance.ngDoBootstrap)throw new Error(`The module ${T(t.instance.constructor)} was bootstrapped, but it does not declare "@NgModule.bootstrap" components nor a "ngDoBootstrap" method. Please define one of these.`);t.instance.ngDoBootstrap(e)}this._modules.push(t)}onDestroy(t){this._destroyListeners.push(t)}get injector(){return this._injector}destroy(){if(this._destroyed)throw new Error("The platform has already been destroyed!");this._modules.slice().forEach(t=>t.destroy()),this._destroyListeners.forEach(t=>t()),this._destroyed=!0}get destroyed(){return this._destroyed}}return t.\u0275fac=function(e){return new(e||t)(it(Hi))},t.\u0275prov=v({token:t,factory:t.\u0275fac}),t})();function Tu(t,e){return Array.isArray(e)?e.reduce(Tu,t):Object.assign(Object.assign({},t),e)}let ju=(()=>{class t{constructor(t,e,n,r,s,c){this._zone=t,this._console=e,this._injector=n,this._exceptionHandler=r,this._componentFactoryResolver=s,this._initStatus=c,this._bootstrapListeners=[],this._views=[],this._runningTick=!1,this._enforceNoNewChanges=!1,this._stable=!0,this.componentTypes=[],this.components=[],this._enforceNoNewChanges=$n(),this._zone.onMicrotaskEmpty.subscribe({next:()=>{this._zone.run(()=>{this.tick()})}});const l=new i.a(t=>{this._stable=this._zone.isStable&&!this._zone.hasPendingMacrotasks&&!this._zone.hasPendingMicrotasks,this._zone.runOutsideAngular(()=>{t.next(this._stable),t.complete()})}),u=new i.a(t=>{let e;this._zone.runOutsideAngular(()=>{e=this._zone.onStable.subscribe(()=>{hu.assertNotInAngularZone(),uu(()=>{this._stable||this._zone.hasPendingMacrotasks||this._zone.hasPendingMicrotasks||(this._stable=!0,t.next(!0))})})});const n=this._zone.onUnstable.subscribe(()=>{hu.assertInAngularZone(),this._stable&&(this._stable=!1,this._zone.runOutsideAngular(()=>{t.next(!1)}))});return()=>{e.unsubscribe(),n.unsubscribe()}});this.isStable=Object(o.a)(l,u.pipe(Object(a.a)()))}bootstrap(t,e){if(!this._initStatus.done)throw new Error("Cannot bootstrap as there are still asynchronous initializers running. Bootstrap components in the `ngDoBootstrap` method of the root module.");let n;n=t instanceof Oa?t:this._componentFactoryResolver.resolveComponentFactory(t),this.componentTypes.push(n.componentType);const r=n.isBoundToModule?void 0:this._injector.get(lt),s=n.create(Hi.NULL,[],e||n.selector,r);s.onDestroy(()=>{this._unloadComponent(s)});const i=s.injector.get(_u,null);return i&&s.injector.get(vu).registerApplication(s.location.nativeElement,i),this._loadComponent(s),$n()&&this._console.log("Angular is running in development mode. Call enableProdMode() to enable production mode."),s}tick(){if(this._runningTick)throw new Error("ApplicationRef.tick is called recursively");try{this._runningTick=!0;for(let t of this._views)t.detectChanges();if(this._enforceNoNewChanges)for(let t of this._views)t.checkNoChanges()}catch(t){this._zone.runOutsideAngular(()=>this._exceptionHandler.handleError(t))}finally{this._runningTick=!1}}attachView(t){const e=t;this._views.push(e),e.attachToAppRef(this)}detachView(t){const e=t;Fu(this._views,e),e.detachFromAppRef()}_loadComponent(t){this.attachView(t.hostView),this.tick(),this.components.push(t),this._injector.get(Jl,[]).concat(this._bootstrapListeners).forEach(e=>e(t))}_unloadComponent(t){this.detachView(t.hostView),Fu(this.components,t)}ngOnDestroy(){this._views.slice().forEach(t=>t.destroy())}get viewCount(){return this._views.length}}return t.\u0275fac=function(e){return new(e||t)(it(hu),it(Yl),it(Hi),it(xn),it(ka),it(ql))},t.\u0275prov=v({token:t,factory:t.\u0275fac}),t})();function Fu(t,e){const n=t.indexOf(e);n>-1&&t.splice(n,1)}class Iu{}class Ru{}const Mu={factoryPathPrefix:"",factoryPathSuffix:".ngfactory"};let Pu=(()=>{class t{constructor(t,e){this._compiler=t,this._config=e||Mu}load(t){return this.loadAndCompile(t)}loadAndCompile(t){let[e,r]=t.split("#");return void 0===r&&(r="default"),n("zn8P")(e).then(t=>t[r]).then(t=>Nu(t,e,r)).then(t=>this._compiler.compileModuleAsync(t))}loadFactory(t){let[e,r]=t.split("#"),s="NgFactory";return void 0===r&&(r="default",s=""),n("zn8P")(this._config.factoryPathPrefix+e+this._config.factoryPathSuffix).then(t=>t[r+s]).then(t=>Nu(t,e,r))}}return t.\u0275fac=function(e){return new(e||t)(it(cu),it(Ru,8))},t.\u0275prov=v({token:t,factory:t.\u0275fac}),t})();function Nu(t,e,n){if(!t)throw new Error(`Cannot find '${n}' in '${e}'`);return t}const Vu=function(t){return null},Bu=xu(null,"core",[{provide:Zl,useValue:"unknown"},{provide:Au,deps:[Hi]},{provide:vu,deps:[]},{provide:Yl,deps:[]}]),Hu=[{provide:ju,useClass:ju,deps:[hu,Yl,Hi,xn,ka,ql]},{provide:oc,deps:[hu],useFactory:function(t){let e=[];return t.onStable.subscribe(()=>{for(;e.length;)e.pop()()}),function(t){e.push(t)}}},{provide:ql,useClass:ql,deps:[[new d,$l]]},{provide:cu,useClass:cu,deps:[]},Gl,{provide:Ka,useFactory:function(){return Ja},deps:[]},{provide:Qa,useFactory:function(){return Ya},deps:[]},{provide:Xl,useFactory:function(t){return el(t=t||"undefined"!=typeof $localize&&$localize.locale||_c),t},deps:[[new h(Xl),new d,new p]]},{provide:tu,useValue:"USD"}];let Lu=(()=>{class t{constructor(t){}}return t.\u0275mod=At({type:t}),t.\u0275inj=w({factory:function(e){return new(e||t)(it(ju))},providers:Hu}),t})()},gRHU:function(t,e,n){"use strict";n.d(e,"a",function(){return i});var r=n("2fFW"),s=n("NJ4a");const i={closed:!0,next(t){},error(t){if(r.a.useDeprecatedSynchronousErrorHandling)throw t;Object(s.a)(t)},complete(){}}},itXk:function(t,e,n){"use strict";n.d(e,"a",function(){return l});var r=n("z+Ro"),s=n("DH7j"),i=n("l7GE"),o=n("ZUHj"),a=n("yCtX");const c={};function l(...t){let e=null,n=null;return Object(r.a)(t[t.length-1])&&(n=t.pop()),"function"==typeof t[t.length-1]&&(e=t.pop()),1===t.length&&Object(s.a)(t[0])&&(t=t[0]),Object(a.a)(t,n).lift(new u(e))}class u{constructor(t){this.resultSelector=t}call(t,e){return e.subscribe(new h(t,this.resultSelector))}}class h extends i.a{constructor(t,e){super(t),this.resultSelector=e,this.active=0,this.values=[],this.observables=[]}_next(t){this.values.push(c),this.observables.push(t)}_complete(){const t=this.observables,e=t.length;if(0===e)this.destination.complete();else{this.active=e,this.toRespond=e;for(let n=0;n<e;n++){const e=t[n];this.add(Object(o.a)(this,e,e,n))}}}notifyComplete(t){0==(this.active-=1)&&this.destination.complete()}notifyNext(t,e,n,r,s){const i=this.values,o=this.toRespond?i[n]===c?--this.toRespond:this.toRespond:0;i[n]=e,0===o&&(this.resultSelector?this._tryResultSelector(i):this.destination.next(i.slice()))}_tryResultSelector(t){let e;try{e=this.resultSelector.apply(this,t)}catch(n){return void this.destination.error(n)}this.destination.next(e)}}},jZKg:function(t,e,n){"use strict";n.d(e,"a",function(){return i});var r=n("HDdC"),s=n("quSY");function i(t,e){return new r.a(n=>{const r=new s.a;let i=0;return r.add(e.schedule(function(){i!==t.length?(n.next(t[i++]),n.closed||r.add(this.schedule())):n.complete()})),r})}},jhN1:function(t,e,n){"use strict";n.d(e,"a",function(){return N}),n.d(e,"b",function(){return j}),n.d(e,"c",function(){return B}),n.d(e,"d",function(){return M}),n.d(e,"e",function(){return w});var r=n("ofXK"),s=n("fXoL");class i extends r.C{constructor(){super()}supportsDOMEvents(){return!0}}class o extends i{static makeCurrent(){Object(r.G)(new o)}getProperty(t,e){return t[e]}log(t){window.console&&window.console.log&&window.console.log(t)}logGroup(t){window.console&&window.console.group&&window.console.group(t)}logGroupEnd(){window.console&&window.console.groupEnd&&window.console.groupEnd()}onAndCancel(t,e,n){return t.addEventListener(e,n,!1),()=>{t.removeEventListener(e,n,!1)}}dispatchEvent(t,e){t.dispatchEvent(e)}remove(t){return t.parentNode&&t.parentNode.removeChild(t),t}getValue(t){return t.value}createElement(t,e){return(e=e||this.getDefaultDocument()).createElement(t)}createHtmlDocument(){return document.implementation.createHTMLDocument("fakeTitle")}getDefaultDocument(){return document}isElementNode(t){return t.nodeType===Node.ELEMENT_NODE}isShadowRoot(t){return t instanceof DocumentFragment}getGlobalEventTarget(t,e){return"window"===e?window:"document"===e?t:"body"===e?t.body:null}getHistory(){return window.history}getLocation(){return window.location}getBaseHref(t){const e=c||(c=document.querySelector("base"),c)?c.getAttribute("href"):null;return null==e?null:(n=e,a||(a=document.createElement("a")),a.setAttribute("href",n),"/"===a.pathname.charAt(0)?a.pathname:"/"+a.pathname);var n}resetBaseElement(){c=null}getUserAgent(){return window.navigator.userAgent}performanceNow(){return window.performance&&window.performance.now?window.performance.now():(new Date).getTime()}supportsCookies(){return!0}getCookie(t){return Object(r.F)(document.cookie,t)}}let a,c=null;const l=new s.s("TRANSITION_ID"),u=[{provide:s.d,useFactory:function(t,e,n){return()=>{n.get(s.e).donePromise.then(()=>{const n=Object(r.E)();Array.prototype.slice.apply(e.querySelectorAll("style[ng-transition]")).filter(e=>e.getAttribute("ng-transition")===t).forEach(t=>n.remove(t))})}},deps:[l,r.c,s.t],multi:!0}];class h{static init(){Object(s.X)(new h)}addToWindow(t){s.ob.getAngularTestability=(e,n=!0)=>{const r=t.findTestabilityInTree(e,n);if(null==r)throw new Error("Could not find testability for element.");return r},s.ob.getAllAngularTestabilities=()=>t.getAllTestabilities(),s.ob.getAllAngularRootElements=()=>t.getAllRootElements(),s.ob.frameworkStabilizers||(s.ob.frameworkStabilizers=[]),s.ob.frameworkStabilizers.push(t=>{const e=s.ob.getAllAngularTestabilities();let n=e.length,r=!1;const i=function(e){r=r||e,n--,0==n&&t(r)};e.forEach(function(t){t.whenStable(i)})})}findTestabilityInTree(t,e,n){if(null==e)return null;const s=t.getTestability(e);return null!=s?s:n?Object(r.E)().isShadowRoot(e)?this.findTestabilityInTree(t,e.host,!0):this.findTestabilityInTree(t,e.parentElement,!0):null}}const d=new s.s("EventManagerPlugins");let f=(()=>{class t{constructor(t,e){this._zone=e,this._eventNameToPlugin=new Map,t.forEach(t=>t.manager=this),this._plugins=t.slice().reverse()}addEventListener(t,e,n){return this._findPluginFor(e).addEventListener(t,e,n)}addGlobalEventListener(t,e,n){return this._findPluginFor(e).addGlobalEventListener(t,e,n)}getZone(){return this._zone}_findPluginFor(t){const e=this._eventNameToPlugin.get(t);if(e)return e;const n=this._plugins;for(let r=0;r<n.length;r++){const e=n[r];if(e.supports(t))return this._eventNameToPlugin.set(t,e),e}throw new Error("No event manager plugin found for event "+t)}}return t.\u0275fac=function(e){return new(e||t)(s.ac(d),s.ac(s.B))},t.\u0275prov=s.Ib({token:t,factory:t.\u0275fac}),t})();class p{constructor(t){this._doc=t}addGlobalEventListener(t,e,n){const s=Object(r.E)().getGlobalEventTarget(this._doc,t);if(!s)throw new Error(`Unsupported event target ${s} for event ${e}`);return this.addEventListener(s,e,n)}}let m=(()=>{class t{constructor(){this._stylesSet=new Set}addStyles(t){const e=new Set;t.forEach(t=>{this._stylesSet.has(t)||(this._stylesSet.add(t),e.add(t))}),this.onStylesAdded(e)}onStylesAdded(t){}getAllStyles(){return Array.from(this._stylesSet)}}return t.\u0275fac=function(e){return new(e||t)},t.\u0275prov=s.Ib({token:t,factory:t.\u0275fac}),t})(),g=(()=>{class t extends m{constructor(t){super(),this._doc=t,this._hostNodes=new Set,this._styleNodes=new Set,this._hostNodes.add(t.head)}_addStylesToHost(t,e){t.forEach(t=>{const n=this._doc.createElement("style");n.textContent=t,this._styleNodes.add(e.appendChild(n))})}addHost(t){this._addStylesToHost(this._stylesSet,t),this._hostNodes.add(t)}removeHost(t){this._hostNodes.delete(t)}onStylesAdded(t){this._hostNodes.forEach(e=>this._addStylesToHost(t,e))}ngOnDestroy(){this._styleNodes.forEach(t=>Object(r.E)().remove(t))}}return t.\u0275fac=function(e){return new(e||t)(s.ac(r.c))},t.\u0275prov=s.Ib({token:t,factory:t.\u0275fac}),t})();const b={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/"},y=/%COMP%/g;function _(t,e,n){for(let r=0;r<e.length;r++){let s=e[r];Array.isArray(s)?_(t,s,n):(s=s.replace(y,t),n.push(s))}return n}function v(t){return e=>{if("__ngUnwrap__"===e)return t;!1===t(e)&&(e.preventDefault(),e.returnValue=!1)}}let w=(()=>{class t{constructor(t,e,n){this.eventManager=t,this.sharedStylesHost=e,this.appId=n,this.rendererByCompId=new Map,this.defaultRenderer=new C(t)}createRenderer(t,e){if(!t||!e)return this.defaultRenderer;switch(e.encapsulation){case s.R.Emulated:{let n=this.rendererByCompId.get(e.id);return n||(n=new D(this.eventManager,this.sharedStylesHost,e,this.appId),this.rendererByCompId.set(e.id,n)),n.applyToHost(t),n}case s.R.Native:case s.R.ShadowDom:return new E(this.eventManager,this.sharedStylesHost,t,e);default:if(!this.rendererByCompId.has(e.id)){const t=_(e.id,e.styles,[]);this.sharedStylesHost.addStyles(t),this.rendererByCompId.set(e.id,this.defaultRenderer)}return this.defaultRenderer}}begin(){}end(){}}return t.\u0275fac=function(e){return new(e||t)(s.ac(f),s.ac(g),s.ac(s.c))},t.\u0275prov=s.Ib({token:t,factory:t.\u0275fac}),t})();class C{constructor(t){this.eventManager=t,this.data=Object.create(null)}destroy(){}createElement(t,e){return e?document.createElementNS(b[e]||e,t):document.createElement(t)}createComment(t){return document.createComment(t)}createText(t){return document.createTextNode(t)}appendChild(t,e){t.appendChild(e)}insertBefore(t,e,n){t&&t.insertBefore(e,n)}removeChild(t,e){t&&t.removeChild(e)}selectRootElement(t,e){let n="string"==typeof t?document.querySelector(t):t;if(!n)throw new Error(`The selector "${t}" did not match any elements`);return e||(n.textContent=""),n}parentNode(t){return t.parentNode}nextSibling(t){return t.nextSibling}setAttribute(t,e,n,r){if(r){e=r+":"+e;const s=b[r];s?t.setAttributeNS(s,e,n):t.setAttribute(e,n)}else t.setAttribute(e,n)}removeAttribute(t,e,n){if(n){const r=b[n];r?t.removeAttributeNS(r,e):t.removeAttribute(`${n}:${e}`)}else t.removeAttribute(e)}addClass(t,e){t.classList.add(e)}removeClass(t,e){t.classList.remove(e)}setStyle(t,e,n,r){r&s.H.DashCase?t.style.setProperty(e,n,r&s.H.Important?"important":""):t.style[e]=n}removeStyle(t,e,n){n&s.H.DashCase?t.style.removeProperty(e):t.style[e]=""}setProperty(t,e,n){t[e]=n}setValue(t,e){t.nodeValue=e}listen(t,e,n){return"string"==typeof t?this.eventManager.addGlobalEventListener(t,e,v(n)):this.eventManager.addEventListener(t,e,v(n))}}class D extends C{constructor(t,e,n,r){super(t),this.component=n;const s=_(r+"-"+n.id,n.styles,[]);e.addStyles(s),this.contentAttr="_ngcontent-%COMP%".replace(y,r+"-"+n.id),this.hostAttr="_nghost-%COMP%".replace(y,r+"-"+n.id)}applyToHost(t){super.setAttribute(t,this.hostAttr,"")}createElement(t,e){const n=super.createElement(t,e);return super.setAttribute(n,this.contentAttr,""),n}}class E extends C{constructor(t,e,n,r){super(t),this.sharedStylesHost=e,this.hostEl=n,this.component=r,this.shadowRoot=r.encapsulation===s.R.ShadowDom?n.attachShadow({mode:"open"}):n.createShadowRoot(),this.sharedStylesHost.addHost(this.shadowRoot);const i=_(r.id,r.styles,[]);for(let s=0;s<i.length;s++){const t=document.createElement("style");t.textContent=i[s],this.shadowRoot.appendChild(t)}}nodeOrShadowRoot(t){return t===this.hostEl?this.shadowRoot:t}destroy(){this.sharedStylesHost.removeHost(this.shadowRoot)}appendChild(t,e){return super.appendChild(this.nodeOrShadowRoot(t),e)}insertBefore(t,e,n){return super.insertBefore(this.nodeOrShadowRoot(t),e,n)}removeChild(t,e){return super.removeChild(this.nodeOrShadowRoot(t),e)}parentNode(t){return this.nodeOrShadowRoot(super.parentNode(this.nodeOrShadowRoot(t)))}}let S=(()=>{class t extends p{constructor(t){super(t)}supports(t){return!0}addEventListener(t,e,n){return t.addEventListener(e,n,!1),()=>this.removeEventListener(t,e,n)}removeEventListener(t,e,n){return t.removeEventListener(e,n)}}return t.\u0275fac=function(e){return new(e||t)(s.ac(r.c))},t.\u0275prov=s.Ib({token:t,factory:t.\u0275fac}),t})();const O=["alt","control","meta","shift"],x={"\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"},k={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"},A={alt:t=>t.altKey,control:t=>t.ctrlKey,meta:t=>t.metaKey,shift:t=>t.shiftKey};let T=(()=>{class t extends p{constructor(t){super(t)}supports(e){return null!=t.parseEventName(e)}addEventListener(e,n,s){const i=t.parseEventName(n),o=t.eventCallback(i.fullKey,s,this.manager.getZone());return this.manager.getZone().runOutsideAngular(()=>Object(r.E)().onAndCancel(e,i.domEventName,o))}static parseEventName(e){const n=e.toLowerCase().split("."),r=n.shift();if(0===n.length||"keydown"!==r&&"keyup"!==r)return null;const s=t._normalizeKey(n.pop());let i="";if(O.forEach(t=>{const e=n.indexOf(t);e>-1&&(n.splice(e,1),i+=t+".")}),i+=s,0!=n.length||0===s.length)return null;const o={};return o.domEventName=r,o.fullKey=i,o}static getEventFullKey(t){let e="",n=function(t){let e=t.key;if(null==e){if(e=t.keyIdentifier,null==e)return"Unidentified";e.startsWith("U+")&&(e=String.fromCharCode(parseInt(e.substring(2),16)),3===t.location&&k.hasOwnProperty(e)&&(e=k[e]))}return x[e]||e}(t);return n=n.toLowerCase()," "===n?n="space":"."===n&&(n="dot"),O.forEach(r=>{r!=n&&(0,A[r])(t)&&(e+=r+".")}),e+=n,e}static eventCallback(e,n,r){return s=>{t.getEventFullKey(s)===e&&r.runGuarded(()=>n(s))}}static _normalizeKey(t){switch(t){case"esc":return"escape";default:return t}}}return t.\u0275fac=function(e){return new(e||t)(s.ac(r.c))},t.\u0275prov=s.Ib({token:t,factory:t.\u0275fac}),t})(),j=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275prov=Object(s.Ib)({factory:function(){return Object(s.ac)(I)},token:t,providedIn:"root"}),t})();function F(t){return new I(t.get(r.c))}let I=(()=>{class t extends j{constructor(t){super(),this._doc=t}sanitize(t,e){if(null==e)return null;switch(t){case s.J.NONE:return e;case s.J.HTML:return Object(s.db)(e,"HTML")?Object(s.vb)(e):Object(s.bb)(this._doc,String(e));case s.J.STYLE:return Object(s.db)(e,"Style")?Object(s.vb)(e):e;case s.J.SCRIPT:if(Object(s.db)(e,"Script"))return Object(s.vb)(e);throw new Error("unsafe value used in a script context");case s.J.URL:return Object(s.nb)(e),Object(s.db)(e,"URL")?Object(s.vb)(e):Object(s.cb)(String(e));case s.J.RESOURCE_URL:if(Object(s.db)(e,"ResourceURL"))return Object(s.vb)(e);throw new Error("unsafe value used in a resource URL context (see http://g.co/ng/security#xss)");default:throw new Error(`Unexpected SecurityContext ${t} (see http://g.co/ng/security#xss)`)}}bypassSecurityTrustHtml(t){return Object(s.eb)(t)}bypassSecurityTrustStyle(t){return Object(s.hb)(t)}bypassSecurityTrustScript(t){return Object(s.gb)(t)}bypassSecurityTrustUrl(t){return Object(s.ib)(t)}bypassSecurityTrustResourceUrl(t){return Object(s.fb)(t)}}return t.\u0275fac=function(e){return new(e||t)(s.ac(r.c))},t.\u0275prov=Object(s.Ib)({factory:function(){return F(Object(s.ac)(s.q))},token:t,providedIn:"root"}),t})();const R=[{provide:s.D,useValue:r.D},{provide:s.E,useValue:function(){o.makeCurrent(),h.init()},multi:!0},{provide:r.c,useFactory:function(){return Object(s.tb)(document),document},deps:[]}],M=Object(s.S)(s.W,"browser",R),P=[[],{provide:s.Z,useValue:"root"},{provide:s.n,useFactory:function(){return new s.n},deps:[]},{provide:d,useClass:S,multi:!0,deps:[r.c,s.B,s.D]},{provide:d,useClass:T,multi:!0,deps:[r.c]},[],{provide:w,useClass:w,deps:[f,g,s.c]},{provide:s.G,useExisting:w},{provide:m,useExisting:g},{provide:g,useClass:g,deps:[r.c]},{provide:s.N,useClass:s.N,deps:[s.B]},{provide:f,useClass:f,deps:[d,s.B]},[]];let N=(()=>{class t{constructor(t){if(t)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(e){return{ngModule:t,providers:[{provide:s.c,useValue:e.appId},{provide:l,useExisting:s.c},u]}}}return t.\u0275mod=s.Kb({type:t}),t.\u0275inj=s.Jb({factory:function(e){return new(e||t)(s.ac(t,12))},providers:P,imports:[r.b,s.f]}),t})();function V(){return new B(Object(s.ac)(r.c))}let B=(()=>{class t{constructor(t){this._doc=t}getTitle(){return this._doc.title}setTitle(t){this._doc.title=t||""}}return t.\u0275fac=function(e){return new(e||t)(s.ac(r.c))},t.\u0275prov=Object(s.Ib)({factory:V,token:t,providedIn:"root"}),t})();"undefined"!=typeof window&&window},kJWO:function(t,e,n){"use strict";n.d(e,"a",function(){return r});const r=(()=>"function"==typeof Symbol&&Symbol.observable||"@@observable")()},l7GE:function(t,e,n){"use strict";n.d(e,"a",function(){return s});var r=n("7o/Q");class s extends r.a{notifyNext(t,e,n,r,s){this.destination.next(e)}notifyError(t,e){this.destination.error(t)}notifyComplete(t){this.destination.complete()}}},lJxs:function(t,e,n){"use strict";n.d(e,"a",function(){return s});var r=n("7o/Q");function s(t,e){return function(n){if("function"!=typeof t)throw new TypeError("argument is not a function. Are you looking for `mapTo()`?");return n.lift(new i(t,e))}}class i{constructor(t,e){this.project=t,this.thisArg=e}call(t,e){return e.subscribe(new o(t,this.project,this.thisArg))}}class o extends r.a{constructor(t,e,n){super(t),this.project=e,this.count=0,this.thisArg=n||this}_next(t){let e;try{e=this.project.call(this.thisArg,t,this.count++)}catch(n){return void this.destination.error(n)}this.destination.next(e)}}},mrSG:function(t,e,n){"use strict";function r(t,e){var n={};for(var r in t)Object.prototype.hasOwnProperty.call(t,r)&&e.indexOf(r)<0&&(n[r]=t[r]);if(null!=t&&"function"==typeof Object.getOwnPropertySymbols){var s=0;for(r=Object.getOwnPropertySymbols(t);s<r.length;s++)e.indexOf(r[s])<0&&Object.prototype.propertyIsEnumerable.call(t,r[s])&&(n[r[s]]=t[r[s]])}return n}function s(t,e,n,r){var s,i=arguments.length,o=i<3?e:null===r?r=Object.getOwnPropertyDescriptor(e,n):r;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)o=Reflect.decorate(t,e,n,r);else for(var a=t.length-1;a>=0;a--)(s=t[a])&&(o=(i<3?s(o):i>3?s(e,n,o):s(e,n))||o);return i>3&&o&&Object.defineProperty(e,n,o),o}function i(t,e){return function(n,r){e(n,r,t)}}function o(t,e,n,r){return new(n||(n=Promise))(function(s,i){function o(t){try{c(r.next(t))}catch(e){i(e)}}function a(t){try{c(r.throw(t))}catch(e){i(e)}}function c(t){var e;t.done?s(t.value):(e=t.value,e instanceof n?e:new n(function(t){t(e)})).then(o,a)}c((r=r.apply(t,e||[])).next())})}n.d(e,"d",function(){return r}),n.d(e,"b",function(){return s}),n.d(e,"c",function(){return i}),n.d(e,"a",function(){return o})},n6bG:function(t,e,n){"use strict";function r(t){return"function"==typeof t}n.d(e,"a",function(){return r})},ngJS:function(t,e,n){"use strict";n.d(e,"a",function(){return r});const r=t=>e=>{for(let n=0,r=t.length;n<r&&!e.closed;n++)e.next(t[n]);e.complete()}},ofXK:function(t,e,n){"use strict";n.d(e,"a",function(){return v}),n.d(e,"b",function(){return jt}),n.d(e,"c",function(){return c}),n.d(e,"d",function(){return xt}),n.d(e,"e",function(){return Tt}),n.d(e,"f",function(){return k}),n.d(e,"g",function(){return C}),n.d(e,"h",function(){return kt}),n.d(e,"i",function(){return h}),n.d(e,"j",function(){return D}),n.d(e,"k",function(){return y}),n.d(e,"l",function(){return Et}),n.d(e,"m",function(){return pt}),n.d(e,"n",function(){return gt}),n.d(e,"o",function(){return yt}),n.d(e,"p",function(){return wt}),n.d(e,"q",function(){return Ct}),n.d(e,"r",function(){return w}),n.d(e,"s",function(){return l}),n.d(e,"t",function(){return Ot}),n.d(e,"u",function(){return A}),n.d(e,"v",function(){return Rt}),n.d(e,"w",function(){return Q}),n.d(e,"x",function(){return I}),n.d(e,"y",function(){return F}),n.d(e,"z",function(){return R}),n.d(e,"A",function(){return It}),n.d(e,"B",function(){return dt}),n.d(e,"C",function(){return a}),n.d(e,"D",function(){return Ft}),n.d(e,"E",function(){return i}),n.d(e,"F",function(){return ft}),n.d(e,"G",function(){return o});var r=n("fXoL");let s=null;function i(){return s}function o(t){s||(s=t)}class a{}const c=new r.s("DocumentToken");let l=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275prov=Object(r.Ib)({factory:u,token:t,providedIn:"platform"}),t})();function u(){return Object(r.ac)(d)}const h=new r.s("Location Initialized");let d=(()=>{class t extends l{constructor(t){super(),this._doc=t,this._init()}_init(){this.location=i().getLocation(),this._history=i().getHistory()}getBaseHrefFromDOM(){return i().getBaseHref(this._doc)}onPopState(t){i().getGlobalEventTarget(this._doc,"window").addEventListener("popstate",t,!1)}onHashChange(t){i().getGlobalEventTarget(this._doc,"window").addEventListener("hashchange",t,!1)}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(t){this.location.pathname=t}pushState(t,e,n){f()?this._history.pushState(t,e,n):this.location.hash=n}replaceState(t,e,n){f()?this._history.replaceState(t,e,n):this.location.hash=n}forward(){this._history.forward()}back(){this._history.back()}getState(){return this._history.state}}return t.\u0275fac=function(e){return new(e||t)(r.ac(c))},t.\u0275prov=Object(r.Ib)({factory:p,token:t,providedIn:"platform"}),t})();function f(){return!!window.history.pushState}function p(){return new d(Object(r.ac)(c))}function m(t,e){if(0==t.length)return e;if(0==e.length)return t;let n=0;return t.endsWith("/")&&n++,e.startsWith("/")&&n++,2==n?t+e.substring(1):1==n?t+e:t+"/"+e}function g(t){const e=t.match(/#|\?|$/),n=e&&e.index||t.length;return t.slice(0,n-("/"===t[n-1]?1:0))+t.slice(n)}function b(t){return t&&"?"!==t[0]?"?"+t:t}let y=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275prov=Object(r.Ib)({factory:_,token:t,providedIn:"root"}),t})();function _(t){const e=Object(r.ac)(c).location;return new w(Object(r.ac)(l),e&&e.origin||"")}const v=new r.s("appBaseHref");let w=(()=>{class t extends y{constructor(t,e){if(super(),this._platformLocation=t,null==e&&(e=this._platformLocation.getBaseHrefFromDOM()),null==e)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=e}onPopState(t){this._platformLocation.onPopState(t),this._platformLocation.onHashChange(t)}getBaseHref(){return this._baseHref}prepareExternalUrl(t){return m(this._baseHref,t)}path(t=!1){const e=this._platformLocation.pathname+b(this._platformLocation.search),n=this._platformLocation.hash;return n&&t?`${e}${n}`:e}pushState(t,e,n,r){const s=this.prepareExternalUrl(n+b(r));this._platformLocation.pushState(t,e,s)}replaceState(t,e,n,r){const s=this.prepareExternalUrl(n+b(r));this._platformLocation.replaceState(t,e,s)}forward(){this._platformLocation.forward()}back(){this._platformLocation.back()}}return t.\u0275fac=function(e){return new(e||t)(r.ac(l),r.ac(v,8))},t.\u0275prov=r.Ib({token:t,factory:t.\u0275fac}),t})(),C=(()=>{class t extends y{constructor(t,e){super(),this._platformLocation=t,this._baseHref="",null!=e&&(this._baseHref=e)}onPopState(t){this._platformLocation.onPopState(t),this._platformLocation.onHashChange(t)}getBaseHref(){return this._baseHref}path(t=!1){let e=this._platformLocation.hash;return null==e&&(e="#"),e.length>0?e.substring(1):e}prepareExternalUrl(t){const e=m(this._baseHref,t);return e.length>0?"#"+e:e}pushState(t,e,n,r){let s=this.prepareExternalUrl(n+b(r));0==s.length&&(s=this._platformLocation.pathname),this._platformLocation.pushState(t,e,s)}replaceState(t,e,n,r){let s=this.prepareExternalUrl(n+b(r));0==s.length&&(s=this._platformLocation.pathname),this._platformLocation.replaceState(t,e,s)}forward(){this._platformLocation.forward()}back(){this._platformLocation.back()}}return t.\u0275fac=function(e){return new(e||t)(r.ac(l),r.ac(v,8))},t.\u0275prov=r.Ib({token:t,factory:t.\u0275fac}),t})(),D=(()=>{class t{constructor(t,e){this._subject=new r.o,this._urlChangeListeners=[],this._platformStrategy=t;const n=this._platformStrategy.getBaseHref();this._platformLocation=e,this._baseHref=g(S(n)),this._platformStrategy.onPopState(t=>{this._subject.emit({url:this.path(!0),pop:!0,state:t.state,type:t.type})})}path(t=!1){return this.normalize(this._platformStrategy.path(t))}getState(){return this._platformLocation.getState()}isCurrentPathEqualTo(t,e=""){return this.path()==this.normalize(t+b(e))}normalize(e){return t.stripTrailingSlash(function(t,e){return t&&e.startsWith(t)?e.substring(t.length):e}(this._baseHref,S(e)))}prepareExternalUrl(t){return t&&"/"!==t[0]&&(t="/"+t),this._platformStrategy.prepareExternalUrl(t)}go(t,e="",n=null){this._platformStrategy.pushState(n,"",t,e),this._notifyUrlChangeListeners(this.prepareExternalUrl(t+b(e)),n)}replaceState(t,e="",n=null){this._platformStrategy.replaceState(n,"",t,e),this._notifyUrlChangeListeners(this.prepareExternalUrl(t+b(e)),n)}forward(){this._platformStrategy.forward()}back(){this._platformStrategy.back()}onUrlChange(t){this._urlChangeListeners.push(t),this._urlChangeSubscription||(this._urlChangeSubscription=this.subscribe(t=>{this._notifyUrlChangeListeners(t.url,t.state)}))}_notifyUrlChangeListeners(t="",e){this._urlChangeListeners.forEach(n=>n(t,e))}subscribe(t,e,n){return this._subject.subscribe({next:t,error:e,complete:n})}}return t.\u0275fac=function(e){return new(e||t)(r.ac(y),r.ac(l))},t.normalizeQueryParams=b,t.joinWithSlash=m,t.stripTrailingSlash=g,t.\u0275prov=Object(r.Ib)({factory:E,token:t,providedIn:"root"}),t})();function E(){return new D(Object(r.ac)(y),Object(r.ac)(l))}function S(t){return t.replace(/\/index.html$/,"")}var O=function(t){return t[t.Decimal=0]="Decimal",t[t.Percent=1]="Percent",t[t.Currency=2]="Currency",t[t.Scientific=3]="Scientific",t}({}),x=function(t){return t[t.Zero=0]="Zero",t[t.One=1]="One",t[t.Two=2]="Two",t[t.Few=3]="Few",t[t.Many=4]="Many",t[t.Other=5]="Other",t}({}),k=function(t){return t[t.Format=0]="Format",t[t.Standalone=1]="Standalone",t}({}),A=function(t){return t[t.Narrow=0]="Narrow",t[t.Abbreviated=1]="Abbreviated",t[t.Wide=2]="Wide",t[t.Short=3]="Short",t}({}),T=function(t){return t[t.Short=0]="Short",t[t.Medium=1]="Medium",t[t.Long=2]="Long",t[t.Full=3]="Full",t}({}),j=function(t){return t[t.Decimal=0]="Decimal",t[t.Group=1]="Group",t[t.List=2]="List",t[t.PercentSign=3]="PercentSign",t[t.PlusSign=4]="PlusSign",t[t.MinusSign=5]="MinusSign",t[t.Exponential=6]="Exponential",t[t.SuperscriptingExponent=7]="SuperscriptingExponent",t[t.PerMille=8]="PerMille",t[t[1/0]=9]="Infinity",t[t.NaN=10]="NaN",t[t.TimeSeparator=11]="TimeSeparator",t[t.CurrencyDecimal=12]="CurrencyDecimal",t[t.CurrencyGroup=13]="CurrencyGroup",t}({});function F(t,e,n){const s=Object(r.jb)(t),i=L([s[r.ab.DayPeriodsFormat],s[r.ab.DayPeriodsStandalone]],e);return L(i,n)}function I(t,e,n){const s=Object(r.jb)(t),i=L([s[r.ab.DaysFormat],s[r.ab.DaysStandalone]],e);return L(i,n)}function R(t,e,n){const s=Object(r.jb)(t),i=L([s[r.ab.MonthsFormat],s[r.ab.MonthsStandalone]],e);return L(i,n)}function M(t,e){return L(Object(r.jb)(t)[r.ab.DateFormat],e)}function P(t,e){return L(Object(r.jb)(t)[r.ab.TimeFormat],e)}function N(t,e){return L(Object(r.jb)(t)[r.ab.DateTimeFormat],e)}function V(t,e){const n=Object(r.jb)(t),s=n[r.ab.NumberSymbols][e];if(void 0===s){if(e===j.CurrencyDecimal)return n[r.ab.NumberSymbols][j.Decimal];if(e===j.CurrencyGroup)return n[r.ab.NumberSymbols][j.Group]}return s}const B=r.mb;function H(t){if(!t[r.ab.ExtraData])throw new Error(`Missing extra locale data for the locale "${t[r.ab.LocaleId]}". Use "registerLocaleData" to load new data. See the "I18n guide" on angular.io to know more.`)}function L(t,e){for(let n=e;n>-1;n--)if(void 0!==t[n])return t[n];throw new Error("Locale data API: locale data undefined")}function U(t){const[e,n]=t.split(":");return{hours:+e,minutes:+n}}const z=/^(\d{4})-?(\d\d)-?(\d\d)(?:T(\d\d)(?::?(\d\d)(?::?(\d\d)(?:\.(\d+))?)?)?(Z|([+-])(\d\d):?(\d\d))?)?$/,$={},q=/((?:[^GyMLwWdEabBhHmsSzZO']+)|(?:'(?:[^']|'')*')|(?:G{1,5}|y{1,4}|M{1,5}|L{1,5}|w{1,2}|W{1}|d{1,2}|E{1,6}|a{1,5}|b{1,5}|B{1,5}|h{1,2}|H{1,2}|m{1,2}|s{1,2}|S{1,3}|z{1,4}|Z{1,5}|O{1,4}))([\s\S]*)/;var W=function(t){return t[t.Short=0]="Short",t[t.ShortGMT=1]="ShortGMT",t[t.Long=2]="Long",t[t.Extended=3]="Extended",t}({}),G=function(t){return t[t.FullYear=0]="FullYear",t[t.Month=1]="Month",t[t.Date=2]="Date",t[t.Hours=3]="Hours",t[t.Minutes=4]="Minutes",t[t.Seconds=5]="Seconds",t[t.FractionalSeconds=6]="FractionalSeconds",t[t.Day=7]="Day",t}({}),K=function(t){return t[t.DayPeriods=0]="DayPeriods",t[t.Days=1]="Days",t[t.Months=2]="Months",t[t.Eras=3]="Eras",t}({});function Q(t,e,n,r){let s=function(t){if(it(t))return t;if("number"==typeof t&&!isNaN(t))return new Date(t);if("string"==typeof t){t=t.trim();const e=parseFloat(t);if(!isNaN(t-e))return new Date(e);if(/^(\d{4}-\d{1,2}-\d{1,2})$/.test(t)){const[e,n,r]=t.split("-").map(t=>+t);return new Date(e,n-1,r)}let n;if(n=t.match(z))return function(t){const e=new Date(0);let n=0,r=0;const s=t[8]?e.setUTCFullYear:e.setFullYear,i=t[8]?e.setUTCHours:e.setHours;t[9]&&(n=Number(t[9]+t[10]),r=Number(t[9]+t[11])),s.call(e,Number(t[1]),Number(t[2])-1,Number(t[3]));const o=Number(t[4]||0)-n,a=Number(t[5]||0)-r,c=Number(t[6]||0),l=Math.round(1e3*parseFloat("0."+(t[7]||0)));return i.call(e,o,a,c,l),e}(n)}const e=new Date(t);if(!it(e))throw new Error(`Unable to convert "${t}" into a date`);return e}(t);e=Z(n,e)||e;let i,o=[];for(;e;){if(i=q.exec(e),!i){o.push(e);break}{o=o.concat(i.slice(1));const t=o.pop();if(!t)break;e=t}}let a=s.getTimezoneOffset();r&&(a=st(r,a),s=function(t,e,n){const r=t.getTimezoneOffset();return function(t,e){return(t=new Date(t.getTime())).setMinutes(t.getMinutes()+e),t}(t,-1*(st(e,r)-r))}(s,r));let c="";return o.forEach(t=>{const e=function(t){if(rt[t])return rt[t];let e;switch(t){case"G":case"GG":case"GGG":e=tt(K.Eras,A.Abbreviated);break;case"GGGG":e=tt(K.Eras,A.Wide);break;case"GGGGG":e=tt(K.Eras,A.Narrow);break;case"y":e=X(G.FullYear,1,0,!1,!0);break;case"yy":e=X(G.FullYear,2,0,!0,!0);break;case"yyy":e=X(G.FullYear,3,0,!1,!0);break;case"yyyy":e=X(G.FullYear,4,0,!1,!0);break;case"M":case"L":e=X(G.Month,1,1);break;case"MM":case"LL":e=X(G.Month,2,1);break;case"MMM":e=tt(K.Months,A.Abbreviated);break;case"MMMM":e=tt(K.Months,A.Wide);break;case"MMMMM":e=tt(K.Months,A.Narrow);break;case"LLL":e=tt(K.Months,A.Abbreviated,k.Standalone);break;case"LLLL":e=tt(K.Months,A.Wide,k.Standalone);break;case"LLLLL":e=tt(K.Months,A.Narrow,k.Standalone);break;case"w":e=nt(1);break;case"ww":e=nt(2);break;case"W":e=nt(1,!0);break;case"d":e=X(G.Date,1);break;case"dd":e=X(G.Date,2);break;case"E":case"EE":case"EEE":e=tt(K.Days,A.Abbreviated);break;case"EEEE":e=tt(K.Days,A.Wide);break;case"EEEEE":e=tt(K.Days,A.Narrow);break;case"EEEEEE":e=tt(K.Days,A.Short);break;case"a":case"aa":case"aaa":e=tt(K.DayPeriods,A.Abbreviated);break;case"aaaa":e=tt(K.DayPeriods,A.Wide);break;case"aaaaa":e=tt(K.DayPeriods,A.Narrow);break;case"b":case"bb":case"bbb":e=tt(K.DayPeriods,A.Abbreviated,k.Standalone,!0);break;case"bbbb":e=tt(K.DayPeriods,A.Wide,k.Standalone,!0);break;case"bbbbb":e=tt(K.DayPeriods,A.Narrow,k.Standalone,!0);break;case"B":case"BB":case"BBB":e=tt(K.DayPeriods,A.Abbreviated,k.Format,!0);break;case"BBBB":e=tt(K.DayPeriods,A.Wide,k.Format,!0);break;case"BBBBB":e=tt(K.DayPeriods,A.Narrow,k.Format,!0);break;case"h":e=X(G.Hours,1,-12);break;case"hh":e=X(G.Hours,2,-12);break;case"H":e=X(G.Hours,1);break;case"HH":e=X(G.Hours,2);break;case"m":e=X(G.Minutes,1);break;case"mm":e=X(G.Minutes,2);break;case"s":e=X(G.Seconds,1);break;case"ss":e=X(G.Seconds,2);break;case"S":e=X(G.FractionalSeconds,1);break;case"SS":e=X(G.FractionalSeconds,2);break;case"SSS":e=X(G.FractionalSeconds,3);break;case"Z":case"ZZ":case"ZZZ":e=et(W.Short);break;case"ZZZZZ":e=et(W.Extended);break;case"O":case"OO":case"OOO":case"z":case"zz":case"zzz":e=et(W.ShortGMT);break;case"OOOO":case"ZZZZ":case"zzzz":e=et(W.Long);break;default:return null}return rt[t]=e,e}(t);c+=e?e(s,n,a):"''"===t?"'":t.replace(/(^'|'$)/g,"").replace(/''/g,"'")}),c}function Z(t,e){const n=function(t){return Object(r.jb)(t)[r.ab.LocaleId]}(t);if($[n]=$[n]||{},$[n][e])return $[n][e];let s="";switch(e){case"shortDate":s=M(t,T.Short);break;case"mediumDate":s=M(t,T.Medium);break;case"longDate":s=M(t,T.Long);break;case"fullDate":s=M(t,T.Full);break;case"shortTime":s=P(t,T.Short);break;case"mediumTime":s=P(t,T.Medium);break;case"longTime":s=P(t,T.Long);break;case"fullTime":s=P(t,T.Full);break;case"short":const e=Z(t,"shortTime"),n=Z(t,"shortDate");s=J(N(t,T.Short),[e,n]);break;case"medium":const r=Z(t,"mediumTime"),i=Z(t,"mediumDate");s=J(N(t,T.Medium),[r,i]);break;case"long":const o=Z(t,"longTime"),a=Z(t,"longDate");s=J(N(t,T.Long),[o,a]);break;case"full":const c=Z(t,"fullTime"),l=Z(t,"fullDate");s=J(N(t,T.Full),[c,l])}return s&&($[n][e]=s),s}function J(t,e){return e&&(t=t.replace(/\{([^}]+)}/g,function(t,n){return null!=e&&n in e?e[n]:t})),t}function Y(t,e,n="-",r,s){let i="";(t<0||s&&t<=0)&&(s?t=1-t:(t=-t,i=n));let o=String(t);for(;o.length<e;)o="0"+o;return r&&(o=o.substr(o.length-e)),i+o}function X(t,e,n=0,r=!1,s=!1){return function(i,o){let a=function(t,e){switch(t){case G.FullYear:return e.getFullYear();case G.Month:return e.getMonth();case G.Date:return e.getDate();case G.Hours:return e.getHours();case G.Minutes:return e.getMinutes();case G.Seconds:return e.getSeconds();case G.FractionalSeconds:return e.getMilliseconds();case G.Day:return e.getDay();default:throw new Error(`Unknown DateType value "${t}".`)}}(t,i);if((n>0||a>-n)&&(a+=n),t===G.Hours)0===a&&-12===n&&(a=12);else if(t===G.FractionalSeconds)return c=e,Y(a,3).substr(0,c);var c;const l=V(o,j.MinusSign);return Y(a,e,l,r,s)}}function tt(t,e,n=k.Format,s=!1){return function(i,o){return function(t,e,n,s,i,o){switch(n){case K.Months:return R(e,i,s)[t.getMonth()];case K.Days:return I(e,i,s)[t.getDay()];case K.DayPeriods:const a=t.getHours(),c=t.getMinutes();if(o){const t=function(t){const e=Object(r.jb)(t);return H(e),(e[r.ab.ExtraData][2]||[]).map(t=>"string"==typeof t?U(t):[U(t[0]),U(t[1])])}(e),n=function(t,e,n){const s=Object(r.jb)(t);H(s);const i=L([s[r.ab.ExtraData][0],s[r.ab.ExtraData][1]],e)||[];return L(i,n)||[]}(e,i,s),o=t.findIndex(t=>{if(Array.isArray(t)){const[e,n]=t,r=a>=e.hours&&c>=e.minutes,s=a<n.hours||a===n.hours&&c<n.minutes;if(e.hours<n.hours){if(r&&s)return!0}else if(r||s)return!0}else if(t.hours===a&&t.minutes===c)return!0;return!1});if(-1!==o)return n[o]}return F(e,i,s)[a<12?0:1];case K.Eras:return function(t,e){return L(Object(r.jb)(t)[r.ab.Eras],e)}(e,s)[t.getFullYear()<=0?0:1];default:throw new Error("unexpected translation type "+n)}}(i,o,t,e,n,s)}}function et(t){return function(e,n,r){const s=-1*r,i=V(n,j.MinusSign),o=s>0?Math.floor(s/60):Math.ceil(s/60);switch(t){case W.Short:return(s>=0?"+":"")+Y(o,2,i)+Y(Math.abs(s%60),2,i);case W.ShortGMT:return"GMT"+(s>=0?"+":"")+Y(o,1,i);case W.Long:return"GMT"+(s>=0?"+":"")+Y(o,2,i)+":"+Y(Math.abs(s%60),2,i);case W.Extended:return 0===r?"Z":(s>=0?"+":"")+Y(o,2,i)+":"+Y(Math.abs(s%60),2,i);default:throw new Error(`Unknown zone width "${t}"`)}}}function nt(t,e=!1){return function(n,r){let s;if(e){const t=new Date(n.getFullYear(),n.getMonth(),1).getDay()-1,e=n.getDate();s=1+Math.floor((e+t)/7)}else{const t=function(t){const e=new Date(t,0,1).getDay();return new Date(t,0,1+(e<=4?4:11)-e)}(n.getFullYear()),e=(i=n,new Date(i.getFullYear(),i.getMonth(),i.getDate()+(4-i.getDay()))).getTime()-t.getTime();s=1+Math.round(e/6048e5)}var i;return Y(s,t,V(r,j.MinusSign))}}const rt={};function st(t,e){t=t.replace(/:/g,"");const n=Date.parse("Jan 01, 1970 00:00:00 "+t)/6e4;return isNaN(n)?e:n}function it(t){return t instanceof Date&&!isNaN(t.valueOf())}const ot=/^(\d+)?\.((\d+)(-(\d+))?)?$/,at=".",ct="0";function lt(t){const e=parseInt(t);if(isNaN(e))throw new Error("Invalid integer literal when parsing "+t);return e}class ut{}let ht=(()=>{class t extends ut{constructor(t){super(),this.locale=t}getPluralCategory(t,e){switch(B(e||this.locale)(t)){case x.Zero:return"zero";case x.One:return"one";case x.Two:return"two";case x.Few:return"few";case x.Many:return"many";default:return"other"}}}return t.\u0275fac=function(e){return new(e||t)(r.ac(r.w))},t.\u0275prov=r.Ib({token:t,factory:t.\u0275fac}),t})();function dt(t,e,n){return Object(r.sb)(t,e,n)}function ft(t,e){e=encodeURIComponent(e);for(const n of t.split(";")){const t=n.indexOf("="),[r,s]=-1==t?[n,""]:[n.slice(0,t),n.slice(t+1)];if(r.trim()===e)return decodeURIComponent(s)}return null}let pt=(()=>{class t{constructor(t,e,n,r){this._iterableDiffers=t,this._keyValueDiffers=e,this._ngEl=n,this._renderer=r,this._iterableDiffer=null,this._keyValueDiffer=null,this._initialClasses=[],this._rawClass=null}set klass(t){this._removeClasses(this._initialClasses),this._initialClasses="string"==typeof t?t.split(/\s+/):[],this._applyClasses(this._initialClasses),this._applyClasses(this._rawClass)}set ngClass(t){this._removeClasses(this._rawClass),this._applyClasses(this._initialClasses),this._iterableDiffer=null,this._keyValueDiffer=null,this._rawClass="string"==typeof t?t.split(/\s+/):t,this._rawClass&&(Object(r.pb)(this._rawClass)?this._iterableDiffer=this._iterableDiffers.find(this._rawClass).create():this._keyValueDiffer=this._keyValueDiffers.find(this._rawClass).create())}ngDoCheck(){if(this._iterableDiffer){const t=this._iterableDiffer.diff(this._rawClass);t&&this._applyIterableChanges(t)}else if(this._keyValueDiffer){const t=this._keyValueDiffer.diff(this._rawClass);t&&this._applyKeyValueChanges(t)}}_applyKeyValueChanges(t){t.forEachAddedItem(t=>this._toggleClass(t.key,t.currentValue)),t.forEachChangedItem(t=>this._toggleClass(t.key,t.currentValue)),t.forEachRemovedItem(t=>{t.previousValue&&this._toggleClass(t.key,!1)})}_applyIterableChanges(t){t.forEachAddedItem(t=>{if("string"!=typeof t.item)throw new Error("NgClass can only toggle CSS classes expressed as strings, got "+Object(r.ub)(t.item));this._toggleClass(t.item,!0)}),t.forEachRemovedItem(t=>this._toggleClass(t.item,!1))}_applyClasses(t){t&&(Array.isArray(t)||t instanceof Set?t.forEach(t=>this._toggleClass(t,!0)):Object.keys(t).forEach(e=>this._toggleClass(e,!!t[e])))}_removeClasses(t){t&&(Array.isArray(t)||t instanceof Set?t.forEach(t=>this._toggleClass(t,!1)):Object.keys(t).forEach(t=>this._toggleClass(t,!1)))}_toggleClass(t,e){(t=t.trim())&&t.split(/\s+/g).forEach(t=>{e?this._renderer.addClass(this._ngEl.nativeElement,t):this._renderer.removeClass(this._ngEl.nativeElement,t)})}}return t.\u0275fac=function(e){return new(e||t)(r.Mb(r.u),r.Mb(r.v),r.Mb(r.m),r.Mb(r.F))},t.\u0275dir=r.Hb({type:t,selectors:[["","ngClass",""]],inputs:{klass:["class","klass"],ngClass:"ngClass"}}),t})();class mt{constructor(t,e,n,r){this.$implicit=t,this.ngForOf=e,this.index=n,this.count=r}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 gt=(()=>{class t{constructor(t,e,n){this._viewContainer=t,this._template=e,this._differs=n,this._ngForOf=null,this._ngForOfDirty=!0,this._differ=null}set ngForOf(t){this._ngForOf=t,this._ngForOfDirty=!0}set ngForTrackBy(t){Object(r.V)()&&null!=t&&"function"!=typeof t&&console&&console.warn&&console.warn(`trackBy must be a function, but received ${JSON.stringify(t)}. See https://angular.io/api/common/NgForOf#change-propagation for more information.`),this._trackByFn=t}get ngForTrackBy(){return this._trackByFn}set ngForTemplate(t){t&&(this._template=t)}ngDoCheck(){if(this._ngForOfDirty){this._ngForOfDirty=!1;const n=this._ngForOf;if(!this._differ&&n)try{this._differ=this._differs.find(n).create(this.ngForTrackBy)}catch(e){throw new Error(`Cannot find a differ supporting object '${n}' of type '${t=n,t.name||typeof t}'. NgFor only supports binding to Iterables such as Arrays.`)}}var t;if(this._differ){const t=this._differ.diff(this._ngForOf);t&&this._applyChanges(t)}}_applyChanges(t){const e=[];t.forEachOperation((t,n,r)=>{if(null==t.previousIndex){const n=this._viewContainer.createEmbeddedView(this._template,new mt(null,this._ngForOf,-1,-1),null===r?void 0:r),s=new bt(t,n);e.push(s)}else if(null==r)this._viewContainer.remove(null===n?void 0:n);else if(null!==n){const s=this._viewContainer.get(n);this._viewContainer.move(s,r);const i=new bt(t,s);e.push(i)}});for(let n=0;n<e.length;n++)this._perViewChange(e[n].view,e[n].record);for(let n=0,r=this._viewContainer.length;n<r;n++){const t=this._viewContainer.get(n);t.context.index=n,t.context.count=r,t.context.ngForOf=this._ngForOf}t.forEachIdentityChange(t=>{this._viewContainer.get(t.currentIndex).context.$implicit=t.item})}_perViewChange(t,e){t.context.$implicit=e.item}static ngTemplateContextGuard(t,e){return!0}}return t.\u0275fac=function(e){return new(e||t)(r.Mb(r.Q),r.Mb(r.M),r.Mb(r.u))},t.\u0275dir=r.Hb({type:t,selectors:[["","ngFor","","ngForOf",""]],inputs:{ngForOf:"ngForOf",ngForTrackBy:"ngForTrackBy",ngForTemplate:"ngForTemplate"}}),t})();class bt{constructor(t,e){this.record=t,this.view=e}}let yt=(()=>{class t{constructor(t,e){this._viewContainer=t,this._context=new _t,this._thenTemplateRef=null,this._elseTemplateRef=null,this._thenViewRef=null,this._elseViewRef=null,this._thenTemplateRef=e}set ngIf(t){this._context.$implicit=this._context.ngIf=t,this._updateView()}set ngIfThen(t){vt("ngIfThen",t),this._thenTemplateRef=t,this._thenViewRef=null,this._updateView()}set ngIfElse(t){vt("ngIfElse",t),this._elseTemplateRef=t,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(t,e){return!0}}return t.\u0275fac=function(e){return new(e||t)(r.Mb(r.Q),r.Mb(r.M))},t.\u0275dir=r.Hb({type:t,selectors:[["","ngIf",""]],inputs:{ngIf:"ngIf",ngIfThen:"ngIfThen",ngIfElse:"ngIfElse"}}),t})();class _t{constructor(){this.$implicit=null,this.ngIf=null}}function vt(t,e){if(e&&!e.createEmbeddedView)throw new Error(`${t} must be a TemplateRef, but received '${Object(r.ub)(e)}'.`)}let wt=(()=>{class t{constructor(t,e,n){this._ngEl=t,this._differs=e,this._renderer=n,this._ngStyle=null,this._differ=null}set ngStyle(t){this._ngStyle=t,!this._differ&&t&&(this._differ=this._differs.find(t).create())}ngDoCheck(){if(this._differ){const t=this._differ.diff(this._ngStyle);t&&this._applyChanges(t)}}_setStyle(t,e){const[n,r]=t.split(".");null!=(e=null!=e&&r?`${e}${r}`:e)?this._renderer.setStyle(this._ngEl.nativeElement,n,e):this._renderer.removeStyle(this._ngEl.nativeElement,n)}_applyChanges(t){t.forEachRemovedItem(t=>this._setStyle(t.key,null)),t.forEachAddedItem(t=>this._setStyle(t.key,t.currentValue)),t.forEachChangedItem(t=>this._setStyle(t.key,t.currentValue))}}return t.\u0275fac=function(e){return new(e||t)(r.Mb(r.m),r.Mb(r.v),r.Mb(r.F))},t.\u0275dir=r.Hb({type:t,selectors:[["","ngStyle",""]],inputs:{ngStyle:"ngStyle"}}),t})(),Ct=(()=>{class t{constructor(t){this._viewContainerRef=t,this._viewRef=null,this.ngTemplateOutletContext=null,this.ngTemplateOutlet=null}ngOnChanges(t){if(this._shouldRecreateView(t)){const t=this._viewContainerRef;this._viewRef&&t.remove(t.indexOf(this._viewRef)),this._viewRef=this.ngTemplateOutlet?t.createEmbeddedView(this.ngTemplateOutlet,this.ngTemplateOutletContext):null}else this._viewRef&&this.ngTemplateOutletContext&&this._updateExistingContext(this.ngTemplateOutletContext)}_shouldRecreateView(t){const e=t.ngTemplateOutletContext;return!!t.ngTemplateOutlet||e&&this._hasContextShapeChanged(e)}_hasContextShapeChanged(t){const e=Object.keys(t.previousValue||{}),n=Object.keys(t.currentValue||{});if(e.length===n.length){for(let t of n)if(-1===e.indexOf(t))return!0;return!1}return!0}_updateExistingContext(t){for(let e of Object.keys(t))this._viewRef.context[e]=this.ngTemplateOutletContext[e]}}return t.\u0275fac=function(e){return new(e||t)(r.Mb(r.Q))},t.\u0275dir=r.Hb({type:t,selectors:[["","ngTemplateOutlet",""]],inputs:{ngTemplateOutletContext:"ngTemplateOutletContext",ngTemplateOutlet:"ngTemplateOutlet"},features:[r.xb]}),t})();function Dt(t,e){return Error(`InvalidPipeArgument: '${e}' for pipe '${Object(r.ub)(t)}'`)}let Et=(()=>{class t{transform(e){if(!e)return e;if("string"!=typeof e)throw Dt(t,e);return e.toLowerCase()}}return t.\u0275fac=function(e){return new(e||t)},t.\u0275pipe=r.Lb({name:"lowercase",type:t,pure:!0}),t})();const St=/(?:[A-Za-z\xAA\xB5\xBA\xC0-\xD6\xD8-\xF6\xF8-\u02C1\u02C6-\u02D1\u02E0-\u02E4\u02EC\u02EE\u0370-\u0374\u0376\u0377\u037A-\u037D\u037F\u0386\u0388-\u038A\u038C\u038E-\u03A1\u03A3-\u03F5\u03F7-\u0481\u048A-\u052F\u0531-\u0556\u0559\u0561-\u0587\u05D0-\u05EA\u05F0-\u05F2\u0620-\u064A\u066E\u066F\u0671-\u06D3\u06D5\u06E5\u06E6\u06EE\u06EF\u06FA-\u06FC\u06FF\u0710\u0712-\u072F\u074D-\u07A5\u07B1\u07CA-\u07EA\u07F4\u07F5\u07FA\u0800-\u0815\u081A\u0824\u0828\u0840-\u0858\u0860-\u086A\u08A0-\u08B4\u08B6-\u08BD\u0904-\u0939\u093D\u0950\u0958-\u0961\u0971-\u0980\u0985-\u098C\u098F\u0990\u0993-\u09A8\u09AA-\u09B0\u09B2\u09B6-\u09B9\u09BD\u09CE\u09DC\u09DD\u09DF-\u09E1\u09F0\u09F1\u09FC\u0A05-\u0A0A\u0A0F\u0A10\u0A13-\u0A28\u0A2A-\u0A30\u0A32\u0A33\u0A35\u0A36\u0A38\u0A39\u0A59-\u0A5C\u0A5E\u0A72-\u0A74\u0A85-\u0A8D\u0A8F-\u0A91\u0A93-\u0AA8\u0AAA-\u0AB0\u0AB2\u0AB3\u0AB5-\u0AB9\u0ABD\u0AD0\u0AE0\u0AE1\u0AF9\u0B05-\u0B0C\u0B0F\u0B10\u0B13-\u0B28\u0B2A-\u0B30\u0B32\u0B33\u0B35-\u0B39\u0B3D\u0B5C\u0B5D\u0B5F-\u0B61\u0B71\u0B83\u0B85-\u0B8A\u0B8E-\u0B90\u0B92-\u0B95\u0B99\u0B9A\u0B9C\u0B9E\u0B9F\u0BA3\u0BA4\u0BA8-\u0BAA\u0BAE-\u0BB9\u0BD0\u0C05-\u0C0C\u0C0E-\u0C10\u0C12-\u0C28\u0C2A-\u0C39\u0C3D\u0C58-\u0C5A\u0C60\u0C61\u0C80\u0C85-\u0C8C\u0C8E-\u0C90\u0C92-\u0CA8\u0CAA-\u0CB3\u0CB5-\u0CB9\u0CBD\u0CDE\u0CE0\u0CE1\u0CF1\u0CF2\u0D05-\u0D0C\u0D0E-\u0D10\u0D12-\u0D3A\u0D3D\u0D4E\u0D54-\u0D56\u0D5F-\u0D61\u0D7A-\u0D7F\u0D85-\u0D96\u0D9A-\u0DB1\u0DB3-\u0DBB\u0DBD\u0DC0-\u0DC6\u0E01-\u0E30\u0E32\u0E33\u0E40-\u0E46\u0E81\u0E82\u0E84\u0E87\u0E88\u0E8A\u0E8D\u0E94-\u0E97\u0E99-\u0E9F\u0EA1-\u0EA3\u0EA5\u0EA7\u0EAA\u0EAB\u0EAD-\u0EB0\u0EB2\u0EB3\u0EBD\u0EC0-\u0EC4\u0EC6\u0EDC-\u0EDF\u0F00\u0F40-\u0F47\u0F49-\u0F6C\u0F88-\u0F8C\u1000-\u102A\u103F\u1050-\u1055\u105A-\u105D\u1061\u1065\u1066\u106E-\u1070\u1075-\u1081\u108E\u10A0-\u10C5\u10C7\u10CD\u10D0-\u10FA\u10FC-\u1248\u124A-\u124D\u1250-\u1256\u1258\u125A-\u125D\u1260-\u1288\u128A-\u128D\u1290-\u12B0\u12B2-\u12B5\u12B8-\u12BE\u12C0\u12C2-\u12C5\u12C8-\u12D6\u12D8-\u1310\u1312-\u1315\u1318-\u135A\u1380-\u138F\u13A0-\u13F5\u13F8-\u13FD\u1401-\u166C\u166F-\u167F\u1681-\u169A\u16A0-\u16EA\u16F1-\u16F8\u1700-\u170C\u170E-\u1711\u1720-\u1731\u1740-\u1751\u1760-\u176C\u176E-\u1770\u1780-\u17B3\u17D7\u17DC\u1820-\u1877\u1880-\u1884\u1887-\u18A8\u18AA\u18B0-\u18F5\u1900-\u191E\u1950-\u196D\u1970-\u1974\u1980-\u19AB\u19B0-\u19C9\u1A00-\u1A16\u1A20-\u1A54\u1AA7\u1B05-\u1B33\u1B45-\u1B4B\u1B83-\u1BA0\u1BAE\u1BAF\u1BBA-\u1BE5\u1C00-\u1C23\u1C4D-\u1C4F\u1C5A-\u1C7D\u1C80-\u1C88\u1CE9-\u1CEC\u1CEE-\u1CF1\u1CF5\u1CF6\u1D00-\u1DBF\u1E00-\u1F15\u1F18-\u1F1D\u1F20-\u1F45\u1F48-\u1F4D\u1F50-\u1F57\u1F59\u1F5B\u1F5D\u1F5F-\u1F7D\u1F80-\u1FB4\u1FB6-\u1FBC\u1FBE\u1FC2-\u1FC4\u1FC6-\u1FCC\u1FD0-\u1FD3\u1FD6-\u1FDB\u1FE0-\u1FEC\u1FF2-\u1FF4\u1FF6-\u1FFC\u2071\u207F\u2090-\u209C\u2102\u2107\u210A-\u2113\u2115\u2119-\u211D\u2124\u2126\u2128\u212A-\u212D\u212F-\u2139\u213C-\u213F\u2145-\u2149\u214E\u2183\u2184\u2C00-\u2C2E\u2C30-\u2C5E\u2C60-\u2CE4\u2CEB-\u2CEE\u2CF2\u2CF3\u2D00-\u2D25\u2D27\u2D2D\u2D30-\u2D67\u2D6F\u2D80-\u2D96\u2DA0-\u2DA6\u2DA8-\u2DAE\u2DB0-\u2DB6\u2DB8-\u2DBE\u2DC0-\u2DC6\u2DC8-\u2DCE\u2DD0-\u2DD6\u2DD8-\u2DDE\u2E2F\u3005\u3006\u3031-\u3035\u303B\u303C\u3041-\u3096\u309D-\u309F\u30A1-\u30FA\u30FC-\u30FF\u3105-\u312E\u3131-\u318E\u31A0-\u31BA\u31F0-\u31FF\u3400-\u4DB5\u4E00-\u9FEA\uA000-\uA48C\uA4D0-\uA4FD\uA500-\uA60C\uA610-\uA61F\uA62A\uA62B\uA640-\uA66E\uA67F-\uA69D\uA6A0-\uA6E5\uA717-\uA71F\uA722-\uA788\uA78B-\uA7AE\uA7B0-\uA7B7\uA7F7-\uA801\uA803-\uA805\uA807-\uA80A\uA80C-\uA822\uA840-\uA873\uA882-\uA8B3\uA8F2-\uA8F7\uA8FB\uA8FD\uA90A-\uA925\uA930-\uA946\uA960-\uA97C\uA984-\uA9B2\uA9CF\uA9E0-\uA9E4\uA9E6-\uA9EF\uA9FA-\uA9FE\uAA00-\uAA28\uAA40-\uAA42\uAA44-\uAA4B\uAA60-\uAA76\uAA7A\uAA7E-\uAAAF\uAAB1\uAAB5\uAAB6\uAAB9-\uAABD\uAAC0\uAAC2\uAADB-\uAADD\uAAE0-\uAAEA\uAAF2-\uAAF4\uAB01-\uAB06\uAB09-\uAB0E\uAB11-\uAB16\uAB20-\uAB26\uAB28-\uAB2E\uAB30-\uAB5A\uAB5C-\uAB65\uAB70-\uABE2\uAC00-\uD7A3\uD7B0-\uD7C6\uD7CB-\uD7FB\uF900-\uFA6D\uFA70-\uFAD9\uFB00-\uFB06\uFB13-\uFB17\uFB1D\uFB1F-\uFB28\uFB2A-\uFB36\uFB38-\uFB3C\uFB3E\uFB40\uFB41\uFB43\uFB44\uFB46-\uFBB1\uFBD3-\uFD3D\uFD50-\uFD8F\uFD92-\uFDC7\uFDF0-\uFDFB\uFE70-\uFE74\uFE76-\uFEFC\uFF21-\uFF3A\uFF41-\uFF5A\uFF66-\uFFBE\uFFC2-\uFFC7\uFFCA-\uFFCF\uFFD2-\uFFD7\uFFDA-\uFFDC]|\uD800[\uDC00-\uDC0B\uDC0D-\uDC26\uDC28-\uDC3A\uDC3C\uDC3D\uDC3F-\uDC4D\uDC50-\uDC5D\uDC80-\uDCFA\uDE80-\uDE9C\uDEA0-\uDED0\uDF00-\uDF1F\uDF2D-\uDF40\uDF42-\uDF49\uDF50-\uDF75\uDF80-\uDF9D\uDFA0-\uDFC3\uDFC8-\uDFCF]|\uD801[\uDC00-\uDC9D\uDCB0-\uDCD3\uDCD8-\uDCFB\uDD00-\uDD27\uDD30-\uDD63\uDE00-\uDF36\uDF40-\uDF55\uDF60-\uDF67]|\uD802[\uDC00-\uDC05\uDC08\uDC0A-\uDC35\uDC37\uDC38\uDC3C\uDC3F-\uDC55\uDC60-\uDC76\uDC80-\uDC9E\uDCE0-\uDCF2\uDCF4\uDCF5\uDD00-\uDD15\uDD20-\uDD39\uDD80-\uDDB7\uDDBE\uDDBF\uDE00\uDE10-\uDE13\uDE15-\uDE17\uDE19-\uDE33\uDE60-\uDE7C\uDE80-\uDE9C\uDEC0-\uDEC7\uDEC9-\uDEE4\uDF00-\uDF35\uDF40-\uDF55\uDF60-\uDF72\uDF80-\uDF91]|\uD803[\uDC00-\uDC48\uDC80-\uDCB2\uDCC0-\uDCF2]|\uD804[\uDC03-\uDC37\uDC83-\uDCAF\uDCD0-\uDCE8\uDD03-\uDD26\uDD50-\uDD72\uDD76\uDD83-\uDDB2\uDDC1-\uDDC4\uDDDA\uDDDC\uDE00-\uDE11\uDE13-\uDE2B\uDE80-\uDE86\uDE88\uDE8A-\uDE8D\uDE8F-\uDE9D\uDE9F-\uDEA8\uDEB0-\uDEDE\uDF05-\uDF0C\uDF0F\uDF10\uDF13-\uDF28\uDF2A-\uDF30\uDF32\uDF33\uDF35-\uDF39\uDF3D\uDF50\uDF5D-\uDF61]|\uD805[\uDC00-\uDC34\uDC47-\uDC4A\uDC80-\uDCAF\uDCC4\uDCC5\uDCC7\uDD80-\uDDAE\uDDD8-\uDDDB\uDE00-\uDE2F\uDE44\uDE80-\uDEAA\uDF00-\uDF19]|\uD806[\uDCA0-\uDCDF\uDCFF\uDE00\uDE0B-\uDE32\uDE3A\uDE50\uDE5C-\uDE83\uDE86-\uDE89\uDEC0-\uDEF8]|\uD807[\uDC00-\uDC08\uDC0A-\uDC2E\uDC40\uDC72-\uDC8F\uDD00-\uDD06\uDD08\uDD09\uDD0B-\uDD30\uDD46]|\uD808[\uDC00-\uDF99]|\uD809[\uDC80-\uDD43]|[\uD80C\uD81C-\uD820\uD840-\uD868\uD86A-\uD86C\uD86F-\uD872\uD874-\uD879][\uDC00-\uDFFF]|\uD80D[\uDC00-\uDC2E]|\uD811[\uDC00-\uDE46]|\uD81A[\uDC00-\uDE38\uDE40-\uDE5E\uDED0-\uDEED\uDF00-\uDF2F\uDF40-\uDF43\uDF63-\uDF77\uDF7D-\uDF8F]|\uD81B[\uDF00-\uDF44\uDF50\uDF93-\uDF9F\uDFE0\uDFE1]|\uD821[\uDC00-\uDFEC]|\uD822[\uDC00-\uDEF2]|\uD82C[\uDC00-\uDD1E\uDD70-\uDEFB]|\uD82F[\uDC00-\uDC6A\uDC70-\uDC7C\uDC80-\uDC88\uDC90-\uDC99]|\uD835[\uDC00-\uDC54\uDC56-\uDC9C\uDC9E\uDC9F\uDCA2\uDCA5\uDCA6\uDCA9-\uDCAC\uDCAE-\uDCB9\uDCBB\uDCBD-\uDCC3\uDCC5-\uDD05\uDD07-\uDD0A\uDD0D-\uDD14\uDD16-\uDD1C\uDD1E-\uDD39\uDD3B-\uDD3E\uDD40-\uDD44\uDD46\uDD4A-\uDD50\uDD52-\uDEA5\uDEA8-\uDEC0\uDEC2-\uDEDA\uDEDC-\uDEFA\uDEFC-\uDF14\uDF16-\uDF34\uDF36-\uDF4E\uDF50-\uDF6E\uDF70-\uDF88\uDF8A-\uDFA8\uDFAA-\uDFC2\uDFC4-\uDFCB]|\uD83A[\uDC00-\uDCC4\uDD00-\uDD43]|\uD83B[\uDE00-\uDE03\uDE05-\uDE1F\uDE21\uDE22\uDE24\uDE27\uDE29-\uDE32\uDE34-\uDE37\uDE39\uDE3B\uDE42\uDE47\uDE49\uDE4B\uDE4D-\uDE4F\uDE51\uDE52\uDE54\uDE57\uDE59\uDE5B\uDE5D\uDE5F\uDE61\uDE62\uDE64\uDE67-\uDE6A\uDE6C-\uDE72\uDE74-\uDE77\uDE79-\uDE7C\uDE7E\uDE80-\uDE89\uDE8B-\uDE9B\uDEA1-\uDEA3\uDEA5-\uDEA9\uDEAB-\uDEBB]|\uD869[\uDC00-\uDED6\uDF00-\uDFFF]|\uD86D[\uDC00-\uDF34\uDF40-\uDFFF]|\uD86E[\uDC00-\uDC1D\uDC20-\uDFFF]|\uD873[\uDC00-\uDEA1\uDEB0-\uDFFF]|\uD87A[\uDC00-\uDFE0]|\uD87E[\uDC00-\uDE1D])\S*/g;let Ot=(()=>{class t{transform(e){if(!e)return e;if("string"!=typeof e)throw Dt(t,e);return e.replace(St,t=>t[0].toUpperCase()+t.substr(1).toLowerCase())}}return t.\u0275fac=function(e){return new(e||t)},t.\u0275pipe=r.Lb({name:"titlecase",type:t,pure:!0}),t})(),xt=(()=>{class t{constructor(t){this.locale=t}transform(e,n="mediumDate",r,s){if(null==e||""===e||e!=e)return null;try{return Q(e,n,s||this.locale,r)}catch(i){throw Dt(t,i.message)}}}return t.\u0275fac=function(e){return new(e||t)(r.Mb(r.w))},t.\u0275pipe=r.Lb({name:"date",type:t,pure:!0}),t})(),kt=(()=>{class t{constructor(t){this.differs=t,this.keyValues=[]}transform(t,e=At){if(!t||!(t instanceof Map)&&"object"!=typeof t)return null;this.differ||(this.differ=this.differs.find(t).create());const n=this.differ.diff(t);return n&&(this.keyValues=[],n.forEachItem(t=>{this.keyValues.push({key:t.key,value:t.currentValue})}),this.keyValues.sort(e)),this.keyValues}}return t.\u0275fac=function(e){return new(e||t)(r.Mb(r.v))},t.\u0275pipe=r.Lb({name:"keyvalue",type:t,pure:!1}),t})();function At(t,e){const n=t.key,r=e.key;if(n===r)return 0;if(void 0===n)return 1;if(void 0===r)return-1;if(null===n)return 1;if(null===r)return-1;if("string"==typeof n&&"string"==typeof r)return n<r?-1:1;if("number"==typeof n&&"number"==typeof r)return n-r;if("boolean"==typeof n&&"boolean"==typeof r)return n<r?-1:1;const s=String(n),i=String(r);return s==i?0:s<i?-1:1}let Tt=(()=>{class t{constructor(t){this._locale=t}transform(e,n,s){if(function(t){return null==t||""===t||t!=t}(e))return null;s=s||this._locale;try{return function(t,e,n){return function(t,e,n,r,s,i,o=!1){let a="",c=!1;if(isFinite(t)){let l=function(t){let e,n,r,s,i,o=Math.abs(t)+"",a=0;for((n=o.indexOf(at))>-1&&(o=o.replace(at,"")),(r=o.search(/e/i))>0?(n<0&&(n=r),n+=+o.slice(r+1),o=o.substring(0,r)):n<0&&(n=o.length),r=0;o.charAt(r)===ct;r++);if(r===(i=o.length))e=[0],n=1;else{for(i--;o.charAt(i)===ct;)i--;for(n-=r,e=[],s=0;r<=i;r++,s++)e[s]=Number(o.charAt(r))}return n>22&&(e=e.splice(0,21),a=n-1,n=1),{digits:e,exponent:a,integerLen:n}}(t);o&&(l=function(t){if(0===t.digits[0])return t;const e=t.digits.length-t.integerLen;return t.exponent?t.exponent+=2:(0===e?t.digits.push(0,0):1===e&&t.digits.push(0),t.integerLen+=2),t}(l));let u=e.minInt,h=e.minFrac,d=e.maxFrac;if(i){const t=i.match(ot);if(null===t)throw new Error(i+" is not a valid digit info");const e=t[1],n=t[3],r=t[5];null!=e&&(u=lt(e)),null!=n&&(h=lt(n)),null!=r?d=lt(r):null!=n&&h>d&&(d=h)}!function(t,e,n){if(e>n)throw new Error(`The minimum number of digits after fraction (${e}) is higher than the maximum (${n}).`);let r=t.digits,s=r.length-t.integerLen;const i=Math.min(Math.max(e,s),n);let o=i+t.integerLen,a=r[o];if(o>0){r.splice(Math.max(t.integerLen,o));for(let t=o;t<r.length;t++)r[t]=0}else{s=Math.max(0,s),t.integerLen=1,r.length=Math.max(1,o=i+1),r[0]=0;for(let t=1;t<o;t++)r[t]=0}if(a>=5)if(o-1<0){for(let e=0;e>o;e--)r.unshift(0),t.integerLen++;r.unshift(1),t.integerLen++}else r[o-1]++;for(;s<Math.max(0,i);s++)r.push(0);let c=0!==i;const l=e+t.integerLen,u=r.reduceRight(function(t,e,n,r){return r[n]=(e+=t)<10?e:e-10,c&&(0===r[n]&&n>=l?r.pop():c=!1),e>=10?1:0},0);u&&(r.unshift(u),t.integerLen++)}(l,h,d);let f=l.digits,p=l.integerLen;const m=l.exponent;let g=[];for(c=f.every(t=>!t);p<u;p++)f.unshift(0);for(;p<0;p++)f.unshift(0);p>0?g=f.splice(p,f.length):(g=f,f=[0]);const b=[];for(f.length>=e.lgSize&&b.unshift(f.splice(-e.lgSize,f.length).join(""));f.length>e.gSize;)b.unshift(f.splice(-e.gSize,f.length).join(""));f.length&&b.unshift(f.join("")),a=b.join(V(n,r)),g.length&&(a+=V(n,s)+g.join("")),m&&(a+=V(n,j.Exponential)+"+"+m)}else a=V(n,j.Infinity);return a=t<0&&!c?e.negPre+a+e.negSuf:e.posPre+a+e.posSuf,a}(t,function(t,e="-"){const n={minInt:1,minFrac:0,maxFrac:0,posPre:"",posSuf:"",negPre:"",negSuf:"",gSize:0,lgSize:0},r=t.split(";"),s=r[0],i=r[1],o=-1!==s.indexOf(at)?s.split(at):[s.substring(0,s.lastIndexOf(ct)+1),s.substring(s.lastIndexOf(ct)+1)],a=o[0],c=o[1]||"";n.posPre=a.substr(0,a.indexOf("#"));for(let u=0;u<c.length;u++){const t=c.charAt(u);t===ct?n.minFrac=n.maxFrac=u+1:"#"===t?n.maxFrac=u+1:n.posSuf+=t}const l=a.split(",");if(n.gSize=l[1]?l[1].length:0,n.lgSize=l[2]||l[1]?(l[2]||l[1]).length:0,i){const t=s.length-n.posPre.length-n.posSuf.length,e=i.indexOf("#");n.negPre=i.substr(0,e).replace(/'/g,""),n.negSuf=i.substr(e+t).replace(/'/g,"")}else n.negPre=e+n.posPre,n.negSuf=n.posSuf;return n}(function(t,e){return Object(r.jb)(t)[r.ab.NumberFormats][e]}(e,O.Decimal),V(e,j.MinusSign)),e,j.Group,j.Decimal,n)}(function(t){if("string"==typeof t&&!isNaN(Number(t)-parseFloat(t)))return Number(t);if("number"!=typeof t)throw new Error(t+" is not a number");return t}(e),s,n)}catch(i){throw Dt(t,i.message)}}}return t.\u0275fac=function(e){return new(e||t)(r.Mb(r.w))},t.\u0275pipe=r.Lb({name:"number",type:t,pure:!0}),t})(),jt=(()=>{class t{}return t.\u0275mod=r.Kb({type:t}),t.\u0275inj=r.Jb({factory:function(e){return new(e||t)},providers:[{provide:ut,useClass:ht}]}),t})();const Ft="browser";function It(t){return t===Ft}let Rt=(()=>{class t{}return t.\u0275prov=Object(r.Ib)({token:t,providedIn:"root",factory:()=>new Mt(Object(r.ac)(c),window,Object(r.ac)(r.n))}),t})();class Mt{constructor(t,e,n){this.document=t,this.window=e,this.errorHandler=n,this.offset=()=>[0,0]}setOffset(t){this.offset=Array.isArray(t)?()=>t:t}getScrollPosition(){return this.supportScrollRestoration()?[this.window.scrollX,this.window.scrollY]:[0,0]}scrollToPosition(t){this.supportScrollRestoration()&&this.window.scrollTo(t[0],t[1])}scrollToAnchor(t){if(this.supportScrollRestoration()){t=this.window.CSS&&this.window.CSS.escape?this.window.CSS.escape(t):t.replace(/(\"|\'\ |:|\.|\[|\]|,|=)/g,"\\$1");try{const e=this.document.querySelector("#"+t);if(e)return void this.scrollToElement(e);const n=this.document.querySelector(`[name='${t}']`);if(n)return void this.scrollToElement(n)}catch(e){this.errorHandler.handleError(e)}}}setHistoryScrollRestoration(t){if(this.supportScrollRestoration()){const e=this.window.history;e&&e.scrollRestoration&&(e.scrollRestoration=t)}}scrollToElement(t){const e=t.getBoundingClientRect(),n=e.left+this.window.pageXOffset,r=e.top+this.window.pageYOffset,s=this.offset();this.window.scrollTo(n-s[0],r-s[1])}supportScrollRestoration(){try{return!!this.window&&!!this.window.scrollTo}catch(t){return!1}}}},pLZG:function(t,e,n){"use strict";n.d(e,"a",function(){return s});var r=n("7o/Q");function s(t,e){return function(n){return n.lift(new i(t,e))}}class i{constructor(t,e){this.predicate=t,this.thisArg=e}call(t,e){return e.subscribe(new o(t,this.predicate,this.thisArg))}}class o extends r.a{constructor(t,e,n){super(t),this.predicate=e,this.thisArg=n,this.count=0}_next(t){let e;try{e=this.predicate.call(this.thisArg,t,this.count++)}catch(n){return void this.destination.error(n)}e&&this.destination.next(t)}}},quSY:function(t,e,n){"use strict";n.d(e,"a",function(){return a});var r=n("DH7j"),s=n("XoHu"),i=n("n6bG");const o=(()=>{function t(t){return Error.call(this),this.message=t?`${t.length} errors occurred during unsubscription:\n${t.map((t,e)=>`${e+1}) ${t.toString()}`).join("\n  ")}`:"",this.name="UnsubscriptionError",this.errors=t,this}return t.prototype=Object.create(Error.prototype),t})();let a=(()=>{class t{constructor(t){this.closed=!1,this._parentOrParents=null,this._subscriptions=null,t&&(this._unsubscribe=t)}unsubscribe(){let e;if(this.closed)return;let{_parentOrParents:n,_unsubscribe:a,_subscriptions:l}=this;if(this.closed=!0,this._parentOrParents=null,this._subscriptions=null,n instanceof t)n.remove(this);else if(null!==n)for(let t=0;t<n.length;++t)n[t].remove(this);if(Object(i.a)(a))try{a.call(this)}catch(u){e=u instanceof o?c(u.errors):[u]}if(Object(r.a)(l)){let t=-1,n=l.length;for(;++t<n;){const n=l[t];if(Object(s.a)(n))try{n.unsubscribe()}catch(u){e=e||[],u instanceof o?e=e.concat(c(u.errors)):e.push(u)}}}if(e)throw new o(e)}add(e){let n=e;if(!e)return t.EMPTY;switch(typeof e){case"function":n=new t(e);case"object":if(n===this||n.closed||"function"!=typeof n.unsubscribe)return n;if(this.closed)return n.unsubscribe(),n;if(!(n instanceof t)){const e=n;n=new t,n._subscriptions=[e]}break;default:throw new Error("unrecognized teardown "+e+" added to Subscription.")}let{_parentOrParents:r}=n;if(null===r)n._parentOrParents=this;else if(r instanceof t){if(r===this)return n;n._parentOrParents=[r,this]}else{if(-1!==r.indexOf(this))return n;r.push(this)}const s=this._subscriptions;return null===s?this._subscriptions=[n]:s.push(n),n}remove(t){const e=this._subscriptions;if(e){const n=e.indexOf(t);-1!==n&&e.splice(n,1)}}}var e;return t.EMPTY=((e=new t).closed=!0,e),t})();function c(t){return t.reduce((t,e)=>t.concat(e instanceof o?e.errors:e),[])}},"tk/3":function(t,e,n){"use strict";n.d(e,"a",function(){return k}),n.d(e,"b",function(){return O}),n.d(e,"c",function(){return L}),n.d(e,"d",function(){return E}),n.d(e,"e",function(){return d}),n.d(e,"f",function(){return m}),n.d(e,"g",function(){return D});var r=n("fXoL"),s=n("LRne"),i=n("HDdC"),o=n("bOdf"),a=n("pLZG"),c=n("lJxs"),l=n("ofXK");class u{}class h{}class d{constructor(t){this.normalizedNames=new Map,this.lazyUpdate=null,t?this.lazyInit="string"==typeof t?()=>{this.headers=new Map,t.split("\n").forEach(t=>{const e=t.indexOf(":");if(e>0){const n=t.slice(0,e),r=n.toLowerCase(),s=t.slice(e+1).trim();this.maybeSetNormalizedName(n,r),this.headers.has(r)?this.headers.get(r).push(s):this.headers.set(r,[s])}})}:()=>{this.headers=new Map,Object.keys(t).forEach(e=>{let n=t[e];const r=e.toLowerCase();"string"==typeof n&&(n=[n]),n.length>0&&(this.headers.set(r,n),this.maybeSetNormalizedName(e,r))})}:this.headers=new Map}has(t){return this.init(),this.headers.has(t.toLowerCase())}get(t){this.init();const e=this.headers.get(t.toLowerCase());return e&&e.length>0?e[0]:null}keys(){return this.init(),Array.from(this.normalizedNames.values())}getAll(t){return this.init(),this.headers.get(t.toLowerCase())||null}append(t,e){return this.clone({name:t,value:e,op:"a"})}set(t,e){return this.clone({name:t,value:e,op:"s"})}delete(t,e){return this.clone({name:t,value:e,op:"d"})}maybeSetNormalizedName(t,e){this.normalizedNames.has(e)||this.normalizedNames.set(e,t)}init(){this.lazyInit&&(this.lazyInit instanceof d?this.copyFrom(this.lazyInit):this.lazyInit(),this.lazyInit=null,this.lazyUpdate&&(this.lazyUpdate.forEach(t=>this.applyUpdate(t)),this.lazyUpdate=null))}copyFrom(t){t.init(),Array.from(t.headers.keys()).forEach(e=>{this.headers.set(e,t.headers.get(e)),this.normalizedNames.set(e,t.normalizedNames.get(e))})}clone(t){const e=new d;return e.lazyInit=this.lazyInit&&this.lazyInit instanceof d?this.lazyInit:this,e.lazyUpdate=(this.lazyUpdate||[]).concat([t]),e}applyUpdate(t){const e=t.name.toLowerCase();switch(t.op){case"a":case"s":let n=t.value;if("string"==typeof n&&(n=[n]),0===n.length)return;this.maybeSetNormalizedName(t.name,e);const r=("a"===t.op?this.headers.get(e):void 0)||[];r.push(...n),this.headers.set(e,r);break;case"d":const s=t.value;if(s){let t=this.headers.get(e);if(!t)return;t=t.filter(t=>-1===s.indexOf(t)),0===t.length?(this.headers.delete(e),this.normalizedNames.delete(e)):this.headers.set(e,t)}else this.headers.delete(e),this.normalizedNames.delete(e)}}forEach(t){this.init(),Array.from(this.normalizedNames.keys()).forEach(e=>t(this.normalizedNames.get(e),this.headers.get(e)))}}class f{encodeKey(t){return p(t)}encodeValue(t){return p(t)}decodeKey(t){return decodeURIComponent(t)}decodeValue(t){return decodeURIComponent(t)}}function p(t){return encodeURIComponent(t).replace(/%40/gi,"@").replace(/%3A/gi,":").replace(/%24/gi,"$").replace(/%2C/gi,",").replace(/%3B/gi,";").replace(/%2B/gi,"+").replace(/%3D/gi,"=").replace(/%3F/gi,"?").replace(/%2F/gi,"/")}class m{constructor(t={}){if(this.updates=null,this.cloneFrom=null,this.encoder=t.encoder||new f,t.fromString){if(t.fromObject)throw new Error("Cannot specify both fromString and fromObject.");this.map=function(t,e){const n=new Map;return t.length>0&&t.split("&").forEach(t=>{const r=t.indexOf("="),[s,i]=-1==r?[e.decodeKey(t),""]:[e.decodeKey(t.slice(0,r)),e.decodeValue(t.slice(r+1))],o=n.get(s)||[];o.push(i),n.set(s,o)}),n}(t.fromString,this.encoder)}else t.fromObject?(this.map=new Map,Object.keys(t.fromObject).forEach(e=>{const n=t.fromObject[e];this.map.set(e,Array.isArray(n)?n:[n])})):this.map=null}has(t){return this.init(),this.map.has(t)}get(t){this.init();const e=this.map.get(t);return e?e[0]:null}getAll(t){return this.init(),this.map.get(t)||null}keys(){return this.init(),Array.from(this.map.keys())}append(t,e){return this.clone({param:t,value:e,op:"a"})}set(t,e){return this.clone({param:t,value:e,op:"s"})}delete(t,e){return this.clone({param:t,value:e,op:"d"})}toString(){return this.init(),this.keys().map(t=>{const e=this.encoder.encodeKey(t);return this.map.get(t).map(t=>e+"="+this.encoder.encodeValue(t)).join("&")}).filter(t=>""!==t).join("&")}clone(t){const e=new m({encoder:this.encoder});return e.cloneFrom=this.cloneFrom||this,e.updates=(this.updates||[]).concat([t]),e}init(){null===this.map&&(this.map=new Map),null!==this.cloneFrom&&(this.cloneFrom.init(),this.cloneFrom.keys().forEach(t=>this.map.set(t,this.cloneFrom.map.get(t))),this.updates.forEach(t=>{switch(t.op){case"a":case"s":const e=("a"===t.op?this.map.get(t.param):void 0)||[];e.push(t.value),this.map.set(t.param,e);break;case"d":if(void 0===t.value){this.map.delete(t.param);break}{let e=this.map.get(t.param)||[];const n=e.indexOf(t.value);-1!==n&&e.splice(n,1),e.length>0?this.map.set(t.param,e):this.map.delete(t.param)}}}),this.cloneFrom=this.updates=null)}}function g(t){return"undefined"!=typeof ArrayBuffer&&t instanceof ArrayBuffer}function b(t){return"undefined"!=typeof Blob&&t instanceof Blob}function y(t){return"undefined"!=typeof FormData&&t instanceof FormData}class _{constructor(t,e,n,r){let s;if(this.url=e,this.body=null,this.reportProgress=!1,this.withCredentials=!1,this.responseType="json",this.method=t.toUpperCase(),function(t){switch(t){case"DELETE":case"GET":case"HEAD":case"OPTIONS":case"JSONP":return!1;default:return!0}}(this.method)||r?(this.body=void 0!==n?n:null,s=r):s=n,s&&(this.reportProgress=!!s.reportProgress,this.withCredentials=!!s.withCredentials,s.responseType&&(this.responseType=s.responseType),s.headers&&(this.headers=s.headers),s.params&&(this.params=s.params)),this.headers||(this.headers=new d),this.params){const t=this.params.toString();if(0===t.length)this.urlWithParams=e;else{const n=e.indexOf("?");this.urlWithParams=e+(-1===n?"?":n<e.length-1?"&":"")+t}}else this.params=new m,this.urlWithParams=e}serializeBody(){return null===this.body?null:g(this.body)||b(this.body)||y(this.body)||"string"==typeof this.body?this.body:this.body instanceof m?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||y(this.body)?null:b(this.body)?this.body.type||null:g(this.body)?null:"string"==typeof this.body?"text/plain":this.body instanceof m?"application/x-www-form-urlencoded;charset=UTF-8":"object"==typeof this.body||"number"==typeof this.body||Array.isArray(this.body)?"application/json":null}clone(t={}){const e=t.method||this.method,n=t.url||this.url,r=t.responseType||this.responseType,s=void 0!==t.body?t.body:this.body,i=void 0!==t.withCredentials?t.withCredentials:this.withCredentials,o=void 0!==t.reportProgress?t.reportProgress:this.reportProgress;let a=t.headers||this.headers,c=t.params||this.params;return void 0!==t.setHeaders&&(a=Object.keys(t.setHeaders).reduce((e,n)=>e.set(n,t.setHeaders[n]),a)),t.setParams&&(c=Object.keys(t.setParams).reduce((e,n)=>e.set(n,t.setParams[n]),c)),new _(e,n,s,{params:c,headers:a,reportProgress:o,responseType:r,withCredentials:i})}}var v=function(t){return t[t.Sent=0]="Sent",t[t.UploadProgress=1]="UploadProgress",t[t.ResponseHeader=2]="ResponseHeader",t[t.DownloadProgress=3]="DownloadProgress",t[t.Response=4]="Response",t[t.User=5]="User",t}({});class w{constructor(t,e=200,n="OK"){this.headers=t.headers||new d,this.status=void 0!==t.status?t.status:e,this.statusText=t.statusText||n,this.url=t.url||null,this.ok=this.status>=200&&this.status<300}}class C extends w{constructor(t={}){super(t),this.type=v.ResponseHeader}clone(t={}){return new C({headers:t.headers||this.headers,status:void 0!==t.status?t.status:this.status,statusText:t.statusText||this.statusText,url:t.url||this.url||void 0})}}class D extends w{constructor(t={}){super(t),this.type=v.Response,this.body=void 0!==t.body?t.body:null}clone(t={}){return new D({body:void 0!==t.body?t.body:this.body,headers:t.headers||this.headers,status:void 0!==t.status?t.status:this.status,statusText:t.statusText||this.statusText,url:t.url||this.url||void 0})}}class E extends w{constructor(t){super(t,0,"Unknown Error"),this.name="HttpErrorResponse",this.ok=!1,this.message=this.status>=200&&this.status<300?"Http failure during parsing for "+(t.url||"(unknown url)"):`Http failure response for ${t.url||"(unknown url)"}: ${t.status} ${t.statusText}`,this.error=t.error||null}}function S(t,e){return{body:e,headers:t.headers,observe:t.observe,params:t.params,reportProgress:t.reportProgress,responseType:t.responseType,withCredentials:t.withCredentials}}let O=(()=>{class t{constructor(t){this.handler=t}request(t,e,n={}){let r;if(t instanceof _)r=t;else{let s=void 0;s=n.headers instanceof d?n.headers:new d(n.headers);let i=void 0;n.params&&(i=n.params instanceof m?n.params:new m({fromObject:n.params})),r=new _(t,e,void 0!==n.body?n.body:null,{headers:s,params:i,reportProgress:n.reportProgress,responseType:n.responseType||"json",withCredentials:n.withCredentials})}const i=Object(s.a)(r).pipe(Object(o.a)(t=>this.handler.handle(t)));if(t instanceof _||"events"===n.observe)return i;const l=i.pipe(Object(a.a)(t=>t instanceof D));switch(n.observe||"body"){case"body":switch(r.responseType){case"arraybuffer":return l.pipe(Object(c.a)(t=>{if(null!==t.body&&!(t.body instanceof ArrayBuffer))throw new Error("Response is not an ArrayBuffer.");return t.body}));case"blob":return l.pipe(Object(c.a)(t=>{if(null!==t.body&&!(t.body instanceof Blob))throw new Error("Response is not a Blob.");return t.body}));case"text":return l.pipe(Object(c.a)(t=>{if(null!==t.body&&"string"!=typeof t.body)throw new Error("Response is not a string.");return t.body}));case"json":default:return l.pipe(Object(c.a)(t=>t.body))}case"response":return l;default:throw new Error(`Unreachable: unhandled observe type ${n.observe}}`)}}delete(t,e={}){return this.request("DELETE",t,e)}get(t,e={}){return this.request("GET",t,e)}head(t,e={}){return this.request("HEAD",t,e)}jsonp(t,e){return this.request("JSONP",t,{params:(new m).append(e,"JSONP_CALLBACK"),observe:"body",responseType:"json"})}options(t,e={}){return this.request("OPTIONS",t,e)}patch(t,e,n={}){return this.request("PATCH",t,S(n,e))}post(t,e,n={}){return this.request("POST",t,S(n,e))}put(t,e,n={}){return this.request("PUT",t,S(n,e))}}return t.\u0275fac=function(e){return new(e||t)(r.ac(u))},t.\u0275prov=r.Ib({token:t,factory:t.\u0275fac}),t})();class x{constructor(t,e){this.next=t,this.interceptor=e}handle(t){return this.interceptor.intercept(t,this.next)}}const k=new r.s("HTTP_INTERCEPTORS");let A=(()=>{class t{intercept(t,e){return e.handle(t)}}return t.\u0275fac=function(e){return new(e||t)},t.\u0275prov=r.Ib({token:t,factory:t.\u0275fac}),t})();const T=/^\)\]\}',?\n/;class j{}let F=(()=>{class t{constructor(){}build(){return new XMLHttpRequest}}return t.\u0275fac=function(e){return new(e||t)},t.\u0275prov=r.Ib({token:t,factory:t.\u0275fac}),t})(),I=(()=>{class t{constructor(t){this.xhrFactory=t}handle(t){if("JSONP"===t.method)throw new Error("Attempted to construct Jsonp request without JsonpClientModule installed.");return new i.a(e=>{const n=this.xhrFactory.build();if(n.open(t.method,t.urlWithParams),t.withCredentials&&(n.withCredentials=!0),t.headers.forEach((t,e)=>n.setRequestHeader(t,e.join(","))),t.headers.has("Accept")||n.setRequestHeader("Accept","application/json, text/plain, */*"),!t.headers.has("Content-Type")){const e=t.detectContentTypeHeader();null!==e&&n.setRequestHeader("Content-Type",e)}if(t.responseType){const e=t.responseType.toLowerCase();n.responseType="json"!==e?e:"text"}const r=t.serializeBody();let s=null;const i=()=>{if(null!==s)return s;const e=1223===n.status?204:n.status,r=n.statusText||"OK",i=new d(n.getAllResponseHeaders()),o=function(t){return"responseURL"in t&&t.responseURL?t.responseURL:/^X-Request-URL:/m.test(t.getAllResponseHeaders())?t.getResponseHeader("X-Request-URL"):null}(n)||t.url;return s=new C({headers:i,status:e,statusText:r,url:o}),s},o=()=>{let{headers:r,status:s,statusText:o,url:a}=i(),c=null;204!==s&&(c=void 0===n.response?n.responseText:n.response),0===s&&(s=c?200:0);let l=s>=200&&s<300;if("json"===t.responseType&&"string"==typeof c){const t=c;c=c.replace(T,"");try{c=""!==c?JSON.parse(c):null}catch(u){c=t,l&&(l=!1,c={error:u,text:c})}}l?(e.next(new D({body:c,headers:r,status:s,statusText:o,url:a||void 0})),e.complete()):e.error(new E({error:c,headers:r,status:s,statusText:o,url:a||void 0}))},a=t=>{const{url:r}=i(),s=new E({error:t,status:n.status||0,statusText:n.statusText||"Unknown Error",url:r||void 0});e.error(s)};let c=!1;const l=r=>{c||(e.next(i()),c=!0);let s={type:v.DownloadProgress,loaded:r.loaded};r.lengthComputable&&(s.total=r.total),"text"===t.responseType&&n.responseText&&(s.partialText=n.responseText),e.next(s)},u=t=>{let n={type:v.UploadProgress,loaded:t.loaded};t.lengthComputable&&(n.total=t.total),e.next(n)};return n.addEventListener("load",o),n.addEventListener("error",a),t.reportProgress&&(n.addEventListener("progress",l),null!==r&&n.upload&&n.upload.addEventListener("progress",u)),n.send(r),e.next({type:v.Sent}),()=>{n.removeEventListener("error",a),n.removeEventListener("load",o),t.reportProgress&&(n.removeEventListener("progress",l),null!==r&&n.upload&&n.upload.removeEventListener("progress",u)),n.readyState!==n.DONE&&n.abort()}})}}return t.\u0275fac=function(e){return new(e||t)(r.ac(j))},t.\u0275prov=r.Ib({token:t,factory:t.\u0275fac}),t})();const R=new r.s("XSRF_COOKIE_NAME"),M=new r.s("XSRF_HEADER_NAME");class P{}let N=(()=>{class t{constructor(t,e,n){this.doc=t,this.platform=e,this.cookieName=n,this.lastCookieString="",this.lastToken=null,this.parseCount=0}getToken(){if("server"===this.platform)return null;const t=this.doc.cookie||"";return t!==this.lastCookieString&&(this.parseCount++,this.lastToken=Object(l.F)(t,this.cookieName),this.lastCookieString=t),this.lastToken}}return t.\u0275fac=function(e){return new(e||t)(r.ac(l.c),r.ac(r.D),r.ac(R))},t.\u0275prov=r.Ib({token:t,factory:t.\u0275fac}),t})(),V=(()=>{class t{constructor(t,e){this.tokenService=t,this.headerName=e}intercept(t,e){const n=t.url.toLowerCase();if("GET"===t.method||"HEAD"===t.method||n.startsWith("http://")||n.startsWith("https://"))return e.handle(t);const r=this.tokenService.getToken();return null===r||t.headers.has(this.headerName)||(t=t.clone({headers:t.headers.set(this.headerName,r)})),e.handle(t)}}return t.\u0275fac=function(e){return new(e||t)(r.ac(P),r.ac(M))},t.\u0275prov=r.Ib({token:t,factory:t.\u0275fac}),t})(),B=(()=>{class t{constructor(t,e){this.backend=t,this.injector=e,this.chain=null}handle(t){if(null===this.chain){const t=this.injector.get(k,[]);this.chain=t.reduceRight((t,e)=>new x(t,e),this.backend)}return this.chain.handle(t)}}return t.\u0275fac=function(e){return new(e||t)(r.ac(h),r.ac(r.t))},t.\u0275prov=r.Ib({token:t,factory:t.\u0275fac}),t})(),H=(()=>{class t{static disable(){return{ngModule:t,providers:[{provide:V,useClass:A}]}}static withOptions(e={}){return{ngModule:t,providers:[e.cookieName?{provide:R,useValue:e.cookieName}:[],e.headerName?{provide:M,useValue:e.headerName}:[]]}}}return t.\u0275mod=r.Kb({type:t}),t.\u0275inj=r.Jb({factory:function(e){return new(e||t)},providers:[V,{provide:k,useExisting:V,multi:!0},{provide:P,useClass:N},{provide:R,useValue:"XSRF-TOKEN"},{provide:M,useValue:"X-XSRF-TOKEN"}]}),t})(),L=(()=>{class t{}return t.\u0275mod=r.Kb({type:t}),t.\u0275inj=r.Jb({factory:function(e){return new(e||t)},providers:[O,{provide:u,useClass:B},I,{provide:h,useExisting:I},F,{provide:j,useExisting:F}],imports:[[H.withOptions({cookieName:"XSRF-TOKEN",headerName:"X-XSRF-TOKEN"})]]}),t})()},tyNb:function(t,e,n){"use strict";n.d(e,"a",function(){return se}),n.d(e,"b",function(){return yn}),n.d(e,"c",function(){return _n}),n.d(e,"d",function(){return Cn}),n.d(e,"e",function(){return vn}),n.d(e,"f",function(){return In}),n.d(e,"g",function(){return Dn});var r=n("ofXK"),s=n("fXoL"),i=n("LRne"),o=n("Cfvw"),a=n("2Vo4"),c=n("HDdC");const l=(()=>{function t(){return Error.call(this),this.message="no elements in sequence",this.name="EmptyError",this}return t.prototype=Object.create(Error.prototype),t})();var u=n("itXk"),h=n("EY2u");function d(t){return new c.a(e=>{let n;try{n=t()}catch(r){return void e.error(r)}return(n?Object(o.a)(n):Object(h.b)()).subscribe(e)})}var f=n("XNiG"),p=n("lJxs"),m=n("0EUg"),g=n("pLZG"),b=n("7o/Q"),y=n("4I5i");function _(t){return function(e){return 0===t?Object(h.b)():e.lift(new v(t))}}class v{constructor(t){if(this.total=t,this.total<0)throw new y.a}call(t,e){return e.subscribe(new w(t,this.total))}}class w extends b.a{constructor(t,e){super(t),this.total=e,this.ring=new Array,this.count=0}_next(t){const e=this.ring,n=this.total,r=this.count++;e.length<n?e.push(t):e[r%n]=t}_complete(){const t=this.destination;let e=this.count;if(e>0){const n=this.count>=this.total?this.total:this.count,r=this.ring;for(let s=0;s<n;s++){const s=e++%n;t.next(r[s])}}t.complete()}}function C(t=S){return e=>e.lift(new D(t))}class D{constructor(t){this.errorFactory=t}call(t,e){return e.subscribe(new E(t,this.errorFactory))}}class E extends b.a{constructor(t,e){super(t),this.errorFactory=e,this.hasValue=!1}_next(t){this.hasValue=!0,this.destination.next(t)}_complete(){if(this.hasValue)return this.destination.complete();{let e;try{e=this.errorFactory()}catch(t){e=t}this.destination.error(e)}}}function S(){return new l}function O(t=null){return e=>e.lift(new x(t))}class x{constructor(t){this.defaultValue=t}call(t,e){return e.subscribe(new k(t,this.defaultValue))}}class k extends b.a{constructor(t,e){super(t),this.defaultValue=e,this.isEmpty=!0}_next(t){this.isEmpty=!1,this.destination.next(t)}_complete(){this.isEmpty&&this.destination.next(this.defaultValue),this.destination.complete()}}var A=n("SpAZ"),T=n("JIr8"),j=n("IzEk");function F(t,e){const n=arguments.length>=2;return r=>r.pipe(t?Object(g.a)((e,n)=>t(e,n,r)):A.a,Object(j.a)(1),n?O(e):C(()=>new l))}var I=n("5+tZ"),R=n("vkgz");class M{constructor(t,e,n){this.predicate=t,this.thisArg=e,this.source=n}call(t,e){return e.subscribe(new P(t,this.predicate,this.thisArg,this.source))}}class P extends b.a{constructor(t,e,n,r){super(t),this.predicate=e,this.thisArg=n,this.source=r,this.index=0,this.thisArg=n||this}notifyComplete(t){this.destination.next(t),this.destination.complete()}_next(t){let e=!1;try{e=this.predicate.call(this.thisArg,t,this.index++,this.source)}catch(n){return void this.destination.error(n)}e||this.notifyComplete(!1)}_complete(){this.notifyComplete(!0)}}var N=n("eIep"),V=n("JX91");class B{constructor(t,e,n=!1){this.accumulator=t,this.seed=e,this.hasSeed=n}call(t,e){return e.subscribe(new H(t,this.accumulator,this.seed,this.hasSeed))}}class H extends b.a{constructor(t,e,n,r){super(t),this.accumulator=e,this._seed=n,this.hasSeed=r,this.index=0}get seed(){return this._seed}set seed(t){this.hasSeed=!0,this._seed=t}_next(t){if(this.hasSeed)return this._tryNext(t);this.seed=t,this.destination.next(t)}_tryNext(t){const e=this.index++;let n;try{n=this.accumulator(this.seed,t,e)}catch(r){this.destination.error(r)}this.seed=n,this.destination.next(n)}}var L=n("bOdf"),U=n("quSY");class z{constructor(t){this.callback=t}call(t,e){return e.subscribe(new $(t,this.callback))}}class $ extends b.a{constructor(t,e){super(t),this.add(new U.a(e))}}var q=n("bHdf");class W{constructor(t,e){this.id=t,this.url=e}}class G extends W{constructor(t,e,n="imperative",r=null){super(t,e),this.navigationTrigger=n,this.restoredState=r}toString(){return`NavigationStart(id: ${this.id}, url: '${this.url}')`}}class K extends W{constructor(t,e,n){super(t,e),this.urlAfterRedirects=n}toString(){return`NavigationEnd(id: ${this.id}, url: '${this.url}', urlAfterRedirects: '${this.urlAfterRedirects}')`}}class Q extends W{constructor(t,e,n){super(t,e),this.reason=n}toString(){return`NavigationCancel(id: ${this.id}, url: '${this.url}')`}}class Z extends W{constructor(t,e,n){super(t,e),this.error=n}toString(){return`NavigationError(id: ${this.id}, url: '${this.url}', error: ${this.error})`}}class J extends W{constructor(t,e,n,r){super(t,e),this.urlAfterRedirects=n,this.state=r}toString(){return`RoutesRecognized(id: ${this.id}, url: '${this.url}', urlAfterRedirects: '${this.urlAfterRedirects}', state: ${this.state})`}}class Y extends W{constructor(t,e,n,r){super(t,e),this.urlAfterRedirects=n,this.state=r}toString(){return`GuardsCheckStart(id: ${this.id}, url: '${this.url}', urlAfterRedirects: '${this.urlAfterRedirects}', state: ${this.state})`}}class X extends W{constructor(t,e,n,r,s){super(t,e),this.urlAfterRedirects=n,this.state=r,this.shouldActivate=s}toString(){return`GuardsCheckEnd(id: ${this.id}, url: '${this.url}', urlAfterRedirects: '${this.urlAfterRedirects}', state: ${this.state}, shouldActivate: ${this.shouldActivate})`}}class tt extends W{constructor(t,e,n,r){super(t,e),this.urlAfterRedirects=n,this.state=r}toString(){return`ResolveStart(id: ${this.id}, url: '${this.url}', urlAfterRedirects: '${this.urlAfterRedirects}', state: ${this.state})`}}class et extends W{constructor(t,e,n,r){super(t,e),this.urlAfterRedirects=n,this.state=r}toString(){return`ResolveEnd(id: ${this.id}, url: '${this.url}', urlAfterRedirects: '${this.urlAfterRedirects}', state: ${this.state})`}}class nt{constructor(t){this.route=t}toString(){return`RouteConfigLoadStart(path: ${this.route.path})`}}class rt{constructor(t){this.route=t}toString(){return`RouteConfigLoadEnd(path: ${this.route.path})`}}class st{constructor(t){this.snapshot=t}toString(){return`ChildActivationStart(path: '${this.snapshot.routeConfig&&this.snapshot.routeConfig.path||""}')`}}class it{constructor(t){this.snapshot=t}toString(){return`ChildActivationEnd(path: '${this.snapshot.routeConfig&&this.snapshot.routeConfig.path||""}')`}}class ot{constructor(t){this.snapshot=t}toString(){return`ActivationStart(path: '${this.snapshot.routeConfig&&this.snapshot.routeConfig.path||""}')`}}class at{constructor(t){this.snapshot=t}toString(){return`ActivationEnd(path: '${this.snapshot.routeConfig&&this.snapshot.routeConfig.path||""}')`}}class ct{constructor(t,e,n){this.routerEvent=t,this.position=e,this.anchor=n}toString(){return`Scroll(anchor: '${this.anchor}', position: '${this.position?`${this.position[0]}, ${this.position[1]}`:null}')`}}let lt=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275cmp=s.Gb({type:t,selectors:[["ng-component"]],decls:1,vars:0,template:function(t,e){1&t&&s.Nb(0,"router-outlet")},directives:function(){return[Dn]},encapsulation:2}),t})();const ut="primary";class ht{constructor(t){this.params=t||{}}has(t){return Object.prototype.hasOwnProperty.call(this.params,t)}get(t){if(this.has(t)){const e=this.params[t];return Array.isArray(e)?e[0]:e}return null}getAll(t){if(this.has(t)){const e=this.params[t];return Array.isArray(e)?e:[e]}return[]}get keys(){return Object.keys(this.params)}}function dt(t){return new ht(t)}function ft(t){const e=Error("NavigationCancelingError: "+t);return e.ngNavigationCancelingError=!0,e}function pt(t,e,n){const r=n.path.split("/");if(r.length>t.length)return null;if("full"===n.pathMatch&&(e.hasChildren()||r.length<t.length))return null;const s={};for(let i=0;i<r.length;i++){const e=r[i],n=t[i];if(e.startsWith(":"))s[e.substring(1)]=n;else if(e!==n.path)return null}return{consumed:t.slice(0,r.length),posParams:s}}class mt{constructor(t,e){this.routes=t,this.module=e}}function gt(t,e=""){for(let n=0;n<t.length;n++){const r=t[n];bt(r,yt(e,r))}}function bt(t,e){if(!t)throw new Error(`\n      Invalid configuration of route '${e}': Encountered undefined route.\n      The reason might be an extra comma.\n\n      Example:\n      const routes: Routes = [\n        { path: '', redirectTo: '/dashboard', pathMatch: 'full' },\n        { path: 'dashboard',  component: DashboardComponent },, << two commas\n        { path: 'detail/:id', component: HeroDetailComponent }\n      ];\n    `);if(Array.isArray(t))throw new Error(`Invalid configuration of route '${e}': Array cannot be specified`);if(!t.component&&!t.children&&!t.loadChildren&&t.outlet&&t.outlet!==ut)throw new Error(`Invalid configuration of route '${e}': a componentless route without children or loadChildren cannot have a named outlet set`);if(t.redirectTo&&t.children)throw new Error(`Invalid configuration of route '${e}': redirectTo and children cannot be used together`);if(t.redirectTo&&t.loadChildren)throw new Error(`Invalid configuration of route '${e}': redirectTo and loadChildren cannot be used together`);if(t.children&&t.loadChildren)throw new Error(`Invalid configuration of route '${e}': children and loadChildren cannot be used together`);if(t.redirectTo&&t.component)throw new Error(`Invalid configuration of route '${e}': redirectTo and component cannot be used together`);if(t.path&&t.matcher)throw new Error(`Invalid configuration of route '${e}': path and matcher cannot be used together`);if(void 0===t.redirectTo&&!t.component&&!t.children&&!t.loadChildren)throw new Error(`Invalid configuration of route '${e}'. One of the following must be provided: component, redirectTo, children or loadChildren`);if(void 0===t.path&&void 0===t.matcher)throw new Error(`Invalid configuration of route '${e}': routes must have either a path or a matcher specified`);if("string"==typeof t.path&&"/"===t.path.charAt(0))throw new Error(`Invalid configuration of route '${e}': path cannot start with a slash`);if(""===t.path&&void 0!==t.redirectTo&&void 0===t.pathMatch)throw new Error(`Invalid configuration of route '{path: "${e}", redirectTo: "${t.redirectTo}"}': please provide 'pathMatch'. The default value of 'pathMatch' is 'prefix', but often the intent is to use 'full'.`);if(void 0!==t.pathMatch&&"full"!==t.pathMatch&&"prefix"!==t.pathMatch)throw new Error(`Invalid configuration of route '${e}': pathMatch can only be set to 'prefix' or 'full'`);t.children&&gt(t.children,e)}function yt(t,e){return e?t||e.path?t&&!e.path?t+"/":!t&&e.path?e.path:`${t}/${e.path}`:"":t}function _t(t){const e=t.children&&t.children.map(_t),n=e?Object.assign(Object.assign({},t),{children:e}):Object.assign({},t);return!n.component&&(e||n.loadChildren)&&n.outlet&&n.outlet!==ut&&(n.component=lt),n}function vt(t,e){const n=Object.keys(t),r=Object.keys(e);if(!n||!r||n.length!=r.length)return!1;let s;for(let i=0;i<n.length;i++)if(s=n[i],!wt(t[s],e[s]))return!1;return!0}function wt(t,e){return Array.isArray(t)&&Array.isArray(e)?t.length==e.length&&t.every(t=>e.indexOf(t)>-1):t===e}function Ct(t){return Array.prototype.concat.apply([],t)}function Dt(t){return t.length>0?t[t.length-1]:null}function Et(t,e){for(const n in t)t.hasOwnProperty(n)&&e(t[n],n)}function St(t){return Object(s.qb)(t)?t:Object(s.rb)(t)?Object(o.a)(Promise.resolve(t)):Object(i.a)(t)}function Ot(t,e,n){return n?function(t,e){return vt(t,e)}(t.queryParams,e.queryParams)&&xt(t.root,e.root):function(t,e){return Object.keys(e).length<=Object.keys(t).length&&Object.keys(e).every(n=>wt(t[n],e[n]))}(t.queryParams,e.queryParams)&&kt(t.root,e.root)}function xt(t,e){if(!It(t.segments,e.segments))return!1;if(t.numberOfChildren!==e.numberOfChildren)return!1;for(const n in e.children){if(!t.children[n])return!1;if(!xt(t.children[n],e.children[n]))return!1}return!0}function kt(t,e){return At(t,e,e.segments)}function At(t,e,n){if(t.segments.length>n.length)return!!It(t.segments.slice(0,n.length),n)&&!e.hasChildren();if(t.segments.length===n.length){if(!It(t.segments,n))return!1;for(const n in e.children){if(!t.children[n])return!1;if(!kt(t.children[n],e.children[n]))return!1}return!0}{const r=n.slice(0,t.segments.length),s=n.slice(t.segments.length);return!!It(t.segments,r)&&!!t.children.primary&&At(t.children.primary,e,s)}}class Tt{constructor(t,e,n){this.root=t,this.queryParams=e,this.fragment=n}get queryParamMap(){return this._queryParamMap||(this._queryParamMap=dt(this.queryParams)),this._queryParamMap}toString(){return Nt.serialize(this)}}class jt{constructor(t,e){this.segments=t,this.children=e,this.parent=null,Et(e,(t,e)=>t.parent=this)}hasChildren(){return this.numberOfChildren>0}get numberOfChildren(){return Object.keys(this.children).length}toString(){return Vt(this)}}class Ft{constructor(t,e){this.path=t,this.parameters=e}get parameterMap(){return this._parameterMap||(this._parameterMap=dt(this.parameters)),this._parameterMap}toString(){return qt(this)}}function It(t,e){return t.length===e.length&&t.every((t,n)=>t.path===e[n].path)}function Rt(t,e){let n=[];return Et(t.children,(t,r)=>{r===ut&&(n=n.concat(e(t,r)))}),Et(t.children,(t,r)=>{r!==ut&&(n=n.concat(e(t,r)))}),n}class Mt{}class Pt{parse(t){const e=new Zt(t);return new Tt(e.parseRootSegment(),e.parseQueryParams(),e.parseFragment())}serialize(t){return`${"/"+Bt(t.root,!0)}${function(t){const e=Object.keys(t).map(e=>{const n=t[e];return Array.isArray(n)?n.map(t=>`${Lt(e)}=${Lt(t)}`).join("&"):`${Lt(e)}=${Lt(n)}`});return e.length?"?"+e.join("&"):""}(t.queryParams)}${"string"==typeof t.fragment?"#"+encodeURI(t.fragment):""}`}}const Nt=new Pt;function Vt(t){return t.segments.map(t=>qt(t)).join("/")}function Bt(t,e){if(!t.hasChildren())return Vt(t);if(e){const e=t.children.primary?Bt(t.children.primary,!1):"",n=[];return Et(t.children,(t,e)=>{e!==ut&&n.push(`${e}:${Bt(t,!1)}`)}),n.length>0?`${e}(${n.join("//")})`:e}{const e=Rt(t,(e,n)=>n===ut?[Bt(t.children.primary,!1)]:[`${n}:${Bt(e,!1)}`]);return`${Vt(t)}/(${e.join("//")})`}}function Ht(t){return encodeURIComponent(t).replace(/%40/g,"@").replace(/%3A/gi,":").replace(/%24/g,"$").replace(/%2C/gi,",")}function Lt(t){return Ht(t).replace(/%3B/gi,";")}function Ut(t){return Ht(t).replace(/\(/g,"%28").replace(/\)/g,"%29").replace(/%26/gi,"&")}function zt(t){return decodeURIComponent(t)}function $t(t){return zt(t.replace(/\+/g,"%20"))}function qt(t){return`${Ut(t.path)}${e=t.parameters,Object.keys(e).map(t=>`;${Ut(t)}=${Ut(e[t])}`).join("")}`;var e}const Wt=/^[^\/()?;=#]+/;function Gt(t){const e=t.match(Wt);return e?e[0]:""}const Kt=/^[^=?&#]+/,Qt=/^[^?&#]+/;class Zt{constructor(t){this.url=t,this.remaining=t}parseRootSegment(){return this.consumeOptional("/"),""===this.remaining||this.peekStartsWith("?")||this.peekStartsWith("#")?new jt([],{}):new jt([],this.parseChildren())}parseQueryParams(){const t={};if(this.consumeOptional("?"))do{this.parseQueryParam(t)}while(this.consumeOptional("&"));return t}parseFragment(){return this.consumeOptional("#")?decodeURIComponent(this.remaining):null}parseChildren(){if(""===this.remaining)return{};this.consumeOptional("/");const t=[];for(this.peekStartsWith("(")||t.push(this.parseSegment());this.peekStartsWith("/")&&!this.peekStartsWith("//")&&!this.peekStartsWith("/(");)this.capture("/"),t.push(this.parseSegment());let e={};this.peekStartsWith("/(")&&(this.capture("/"),e=this.parseParens(!0));let n={};return this.peekStartsWith("(")&&(n=this.parseParens(!1)),(t.length>0||Object.keys(e).length>0)&&(n.primary=new jt(t,e)),n}parseSegment(){const t=Gt(this.remaining);if(""===t&&this.peekStartsWith(";"))throw new Error(`Empty path url segment cannot have parameters: '${this.remaining}'.`);return this.capture(t),new Ft(zt(t),this.parseMatrixParams())}parseMatrixParams(){const t={};for(;this.consumeOptional(";");)this.parseParam(t);return t}parseParam(t){const e=Gt(this.remaining);if(!e)return;this.capture(e);let n="";if(this.consumeOptional("=")){const t=Gt(this.remaining);t&&(n=t,this.capture(n))}t[zt(e)]=zt(n)}parseQueryParam(t){const e=function(t){const e=t.match(Kt);return e?e[0]:""}(this.remaining);if(!e)return;this.capture(e);let n="";if(this.consumeOptional("=")){const t=function(t){const e=t.match(Qt);return e?e[0]:""}(this.remaining);t&&(n=t,this.capture(n))}const r=$t(e),s=$t(n);if(t.hasOwnProperty(r)){let e=t[r];Array.isArray(e)||(e=[e],t[r]=e),e.push(s)}else t[r]=s}parseParens(t){const e={};for(this.capture("(");!this.consumeOptional(")")&&this.remaining.length>0;){const n=Gt(this.remaining),r=this.remaining[n.length];if("/"!==r&&")"!==r&&";"!==r)throw new Error(`Cannot parse url '${this.url}'`);let s=void 0;n.indexOf(":")>-1?(s=n.substr(0,n.indexOf(":")),this.capture(s),this.capture(":")):t&&(s=ut);const i=this.parseChildren();e[s]=1===Object.keys(i).length?i.primary:new jt([],i),this.consumeOptional("//")}return e}peekStartsWith(t){return this.remaining.startsWith(t)}consumeOptional(t){return!!this.peekStartsWith(t)&&(this.remaining=this.remaining.substring(t.length),!0)}capture(t){if(!this.consumeOptional(t))throw new Error(`Expected "${t}".`)}}class Jt{constructor(t){this._root=t}get root(){return this._root.value}parent(t){const e=this.pathFromRoot(t);return e.length>1?e[e.length-2]:null}children(t){const e=Yt(t,this._root);return e?e.children.map(t=>t.value):[]}firstChild(t){const e=Yt(t,this._root);return e&&e.children.length>0?e.children[0].value:null}siblings(t){const e=Xt(t,this._root);return e.length<2?[]:e[e.length-2].children.map(t=>t.value).filter(e=>e!==t)}pathFromRoot(t){return Xt(t,this._root).map(t=>t.value)}}function Yt(t,e){if(t===e.value)return e;for(const n of e.children){const e=Yt(t,n);if(e)return e}return null}function Xt(t,e){if(t===e.value)return[e];for(const n of e.children){const r=Xt(t,n);if(r.length)return r.unshift(e),r}return[]}class te{constructor(t,e){this.value=t,this.children=e}toString(){return`TreeNode(${this.value})`}}function ee(t){const e={};return t&&t.children.forEach(t=>e[t.value.outlet]=t),e}class ne extends Jt{constructor(t,e){super(t),this.snapshot=e,ce(this,t)}toString(){return this.snapshot.toString()}}function re(t,e){const n=function(t,e){const n=new oe([],{},{},"",{},ut,e,null,t.root,-1,{});return new ae("",new te(n,[]))}(t,e),r=new a.a([new Ft("",{})]),s=new a.a({}),i=new a.a({}),o=new a.a({}),c=new a.a(""),l=new se(r,s,o,c,i,ut,e,n.root);return l.snapshot=n.root,new ne(new te(l,[]),n)}class se{constructor(t,e,n,r,s,i,o,a){this.url=t,this.params=e,this.queryParams=n,this.fragment=r,this.data=s,this.outlet=i,this.component=o,this._futureSnapshot=a}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(Object(p.a)(t=>dt(t)))),this._paramMap}get queryParamMap(){return this._queryParamMap||(this._queryParamMap=this.queryParams.pipe(Object(p.a)(t=>dt(t)))),this._queryParamMap}toString(){return this.snapshot?this.snapshot.toString():`Future(${this._futureSnapshot})`}}function ie(t,e="emptyOnly"){const n=t.pathFromRoot;let r=0;if("always"!==e)for(r=n.length-1;r>=1;){const t=n[r],e=n[r-1];if(t.routeConfig&&""===t.routeConfig.path)r--;else{if(e.component)break;r--}}return function(t){return t.reduce((t,e)=>({params:Object.assign(Object.assign({},t.params),e.params),data:Object.assign(Object.assign({},t.data),e.data),resolve:Object.assign(Object.assign({},t.resolve),e._resolvedData)}),{params:{},data:{},resolve:{}})}(n.slice(r))}class oe{constructor(t,e,n,r,s,i,o,a,c,l,u){this.url=t,this.params=e,this.queryParams=n,this.fragment=r,this.data=s,this.outlet=i,this.component=o,this.routeConfig=a,this._urlSegment=c,this._lastPathIndex=l,this._resolve=u}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=dt(this.params)),this._paramMap}get queryParamMap(){return this._queryParamMap||(this._queryParamMap=dt(this.queryParams)),this._queryParamMap}toString(){return`Route(url:'${this.url.map(t=>t.toString()).join("/")}', path:'${this.routeConfig?this.routeConfig.path:""}')`}}class ae extends Jt{constructor(t,e){super(e),this.url=t,ce(this,e)}toString(){return le(this._root)}}function ce(t,e){e.value._routerState=t,e.children.forEach(e=>ce(t,e))}function le(t){const e=t.children.length>0?` { ${t.children.map(le).join(", ")} } `:"";return`${t.value}${e}`}function ue(t){if(t.snapshot){const e=t.snapshot,n=t._futureSnapshot;t.snapshot=n,vt(e.queryParams,n.queryParams)||t.queryParams.next(n.queryParams),e.fragment!==n.fragment&&t.fragment.next(n.fragment),vt(e.params,n.params)||t.params.next(n.params),function(t,e){if(t.length!==e.length)return!1;for(let n=0;n<t.length;++n)if(!vt(t[n],e[n]))return!1;return!0}(e.url,n.url)||t.url.next(n.url),vt(e.data,n.data)||t.data.next(n.data)}else t.snapshot=t._futureSnapshot,t.data.next(t._futureSnapshot.data)}function he(t,e){var n,r;return vt(t.params,e.params)&&It(n=t.url,r=e.url)&&n.every((t,e)=>vt(t.parameters,r[e].parameters))&&!(!t.parent!=!e.parent)&&(!t.parent||he(t.parent,e.parent))}function de(t,e,n){if(n&&t.shouldReuseRoute(e.value,n.value.snapshot)){const r=n.value;r._futureSnapshot=e.value;const s=function(t,e,n){return e.children.map(e=>{for(const r of n.children)if(t.shouldReuseRoute(r.value.snapshot,e.value))return de(t,e,r);return de(t,e)})}(t,e,n);return new te(r,s)}{const n=t.retrieve(e.value);if(n){const t=n.route;return fe(e,t),t}{const n=new se(new a.a((r=e.value).url),new a.a(r.params),new a.a(r.queryParams),new a.a(r.fragment),new a.a(r.data),r.outlet,r.component,r),s=e.children.map(e=>de(t,e));return new te(n,s)}}var r}function fe(t,e){if(t.value.routeConfig!==e.value.routeConfig)throw new Error("Cannot reattach ActivatedRouteSnapshot created from a different route");if(t.children.length!==e.children.length)throw new Error("Cannot reattach ActivatedRouteSnapshot with a different number of children");e.value._futureSnapshot=t.value;for(let n=0;n<t.children.length;++n)fe(t.children[n],e.children[n])}function pe(t){return"object"==typeof t&&null!=t&&!t.outlets&&!t.segmentPath}function me(t,e,n,r,s){let i={};return r&&Et(r,(t,e)=>{i[e]=Array.isArray(t)?t.map(t=>""+t):""+t}),new Tt(n.root===t?e:ge(n.root,t,e),i,s)}function ge(t,e,n){const r={};return Et(t.children,(t,s)=>{r[s]=t===e?n:ge(t,e,n)}),new jt(t.segments,r)}class be{constructor(t,e,n){if(this.isAbsolute=t,this.numberOfDoubleDots=e,this.commands=n,t&&n.length>0&&pe(n[0]))throw new Error("Root segment cannot have matrix parameters");const r=n.find(t=>"object"==typeof t&&null!=t&&t.outlets);if(r&&r!==Dt(n))throw new Error("{outlets:{}} has to be the last command")}toRoot(){return this.isAbsolute&&1===this.commands.length&&"/"==this.commands[0]}}class ye{constructor(t,e,n){this.segmentGroup=t,this.processChildren=e,this.index=n}}function _e(t){return"object"==typeof t&&null!=t&&t.outlets?t.outlets.primary:""+t}function ve(t,e,n){if(t||(t=new jt([],{})),0===t.segments.length&&t.hasChildren())return we(t,e,n);const r=function(t,e,n){let r=0,s=e;const i={match:!1,pathIndex:0,commandIndex:0};for(;s<t.segments.length;){if(r>=n.length)return i;const e=t.segments[s],o=_e(n[r]),a=r<n.length-1?n[r+1]:null;if(s>0&&void 0===o)break;if(o&&a&&"object"==typeof a&&void 0===a.outlets){if(!Se(o,a,e))return i;r+=2}else{if(!Se(o,{},e))return i;r++}s++}return{match:!0,pathIndex:s,commandIndex:r}}(t,e,n),s=n.slice(r.commandIndex);if(r.match&&r.pathIndex<t.segments.length){const e=new jt(t.segments.slice(0,r.pathIndex),{});return e.children.primary=new jt(t.segments.slice(r.pathIndex),t.children),we(e,0,s)}return r.match&&0===s.length?new jt(t.segments,{}):r.match&&!t.hasChildren()?Ce(t,e,n):r.match?we(t,0,s):Ce(t,e,n)}function we(t,e,n){if(0===n.length)return new jt(t.segments,{});{const r=function(t){return"object"==typeof t[0]&&null!==t[0]&&t[0].outlets?t[0].outlets:{[ut]:t}}(n),s={};return Et(r,(n,r)=>{null!==n&&(s[r]=ve(t.children[r],e,n))}),Et(t.children,(t,e)=>{void 0===r[e]&&(s[e]=t)}),new jt(t.segments,s)}}function Ce(t,e,n){const r=t.segments.slice(0,e);let s=0;for(;s<n.length;){if("object"==typeof n[s]&&null!==n[s]&&void 0!==n[s].outlets){const t=De(n[s].outlets);return new jt(r,t)}if(0===s&&pe(n[0])){r.push(new Ft(t.segments[e].path,n[0])),s++;continue}const i=_e(n[s]),o=s<n.length-1?n[s+1]:null;i&&o&&pe(o)?(r.push(new Ft(i,Ee(o))),s+=2):(r.push(new Ft(i,{})),s++)}return new jt(r,{})}function De(t){const e={};return Et(t,(t,n)=>{null!==t&&(e[n]=Ce(new jt([],{}),0,t))}),e}function Ee(t){const e={};return Et(t,(t,n)=>e[n]=""+t),e}function Se(t,e,n){return t==n.path&&vt(e,n.parameters)}class Oe{constructor(t,e,n,r){this.routeReuseStrategy=t,this.futureState=e,this.currState=n,this.forwardEvent=r}activate(t){const e=this.futureState._root,n=this.currState?this.currState._root:null;this.deactivateChildRoutes(e,n,t),ue(this.futureState.root),this.activateChildRoutes(e,n,t)}deactivateChildRoutes(t,e,n){const r=ee(e);t.children.forEach(t=>{const e=t.value.outlet;this.deactivateRoutes(t,r[e],n),delete r[e]}),Et(r,(t,e)=>{this.deactivateRouteAndItsChildren(t,n)})}deactivateRoutes(t,e,n){const r=t.value,s=e?e.value:null;if(r===s)if(r.component){const s=n.getContext(r.outlet);s&&this.deactivateChildRoutes(t,e,s.children)}else this.deactivateChildRoutes(t,e,n);else s&&this.deactivateRouteAndItsChildren(e,n)}deactivateRouteAndItsChildren(t,e){this.routeReuseStrategy.shouldDetach(t.value.snapshot)?this.detachAndStoreRouteSubtree(t,e):this.deactivateRouteAndOutlet(t,e)}detachAndStoreRouteSubtree(t,e){const n=e.getContext(t.value.outlet);if(n&&n.outlet){const e=n.outlet.detach(),r=n.children.onOutletDeactivated();this.routeReuseStrategy.store(t.value.snapshot,{componentRef:e,route:t,contexts:r})}}deactivateRouteAndOutlet(t,e){const n=e.getContext(t.value.outlet);if(n){const r=ee(t),s=t.value.component?n.children:e;Et(r,(t,e)=>this.deactivateRouteAndItsChildren(t,s)),n.outlet&&(n.outlet.deactivate(),n.children.onOutletDeactivated())}}activateChildRoutes(t,e,n){const r=ee(e);t.children.forEach(t=>{this.activateRoutes(t,r[t.value.outlet],n),this.forwardEvent(new at(t.value.snapshot))}),t.children.length&&this.forwardEvent(new it(t.value.snapshot))}activateRoutes(t,e,n){const r=t.value,s=e?e.value:null;if(ue(r),r===s)if(r.component){const s=n.getOrCreateContext(r.outlet);this.activateChildRoutes(t,e,s.children)}else this.activateChildRoutes(t,e,n);else if(r.component){const e=n.getOrCreateContext(r.outlet);if(this.routeReuseStrategy.shouldAttach(r.snapshot)){const t=this.routeReuseStrategy.retrieve(r.snapshot);this.routeReuseStrategy.store(r.snapshot,null),e.children.onOutletReAttached(t.contexts),e.attachRef=t.componentRef,e.route=t.route.value,e.outlet&&e.outlet.attach(t.componentRef,t.route.value),xe(t.route)}else{const n=function(t){for(let e=t.parent;e;e=e.parent){const t=e.routeConfig;if(t&&t._loadedConfig)return t._loadedConfig;if(t&&t.component)return null}return null}(r.snapshot),s=n?n.module.componentFactoryResolver:null;e.attachRef=null,e.route=r,e.resolver=s,e.outlet&&e.outlet.activateWith(r,s),this.activateChildRoutes(t,null,e.children)}}else this.activateChildRoutes(t,null,n)}}function xe(t){ue(t.value),t.children.forEach(xe)}function ke(t){return"function"==typeof t}function Ae(t){return t instanceof Tt}class Te{constructor(t){this.segmentGroup=t||null}}class je{constructor(t){this.urlTree=t}}function Fe(t){return new c.a(e=>e.error(new Te(t)))}function Ie(t){return new c.a(e=>e.error(new je(t)))}function Re(t){return new c.a(e=>e.error(new Error(`Only absolute redirects can have named outlets. redirectTo: '${t}'`)))}class Me{constructor(t,e,n,r,i){this.configLoader=e,this.urlSerializer=n,this.urlTree=r,this.config=i,this.allowRedirects=!0,this.ngModule=t.get(s.z)}apply(){return this.expandSegmentGroup(this.ngModule,this.config,this.urlTree.root,ut).pipe(Object(p.a)(t=>this.createUrlTree(t,this.urlTree.queryParams,this.urlTree.fragment))).pipe(Object(T.a)(t=>{if(t instanceof je)return this.allowRedirects=!1,this.match(t.urlTree);if(t instanceof Te)throw this.noMatchError(t);throw t}))}match(t){return this.expandSegmentGroup(this.ngModule,this.config,t.root,ut).pipe(Object(p.a)(e=>this.createUrlTree(e,t.queryParams,t.fragment))).pipe(Object(T.a)(t=>{if(t instanceof Te)throw this.noMatchError(t);throw t}))}noMatchError(t){return new Error(`Cannot match any routes. URL Segment: '${t.segmentGroup}'`)}createUrlTree(t,e,n){const r=t.segments.length>0?new jt([],{[ut]:t}):t;return new Tt(r,e,n)}expandSegmentGroup(t,e,n,r){return 0===n.segments.length&&n.hasChildren()?this.expandChildren(t,e,n).pipe(Object(p.a)(t=>new jt([],t))):this.expandSegment(t,n,e,n.segments,r,!0)}expandChildren(t,e,n){return function(t,e){if(0===Object.keys(t).length)return Object(i.a)({});const n=[],r=[],s={};return Et(t,(t,i)=>{const o=e(i,t).pipe(Object(p.a)(t=>s[i]=t));i===ut?n.push(o):r.push(o)}),i.a.apply(null,n.concat(r)).pipe(Object(m.a)(),function(t,e){const n=arguments.length>=2;return r=>r.pipe(t?Object(g.a)((e,n)=>t(e,n,r)):A.a,_(1),n?O(e):C(()=>new l))}(),Object(p.a)(()=>s))}(n.children,(n,r)=>this.expandSegmentGroup(t,e,r,n))}expandSegment(t,e,n,r,s,o){return Object(i.a)(...n).pipe(Object(p.a)(a=>this.expandSegmentAgainstRoute(t,e,n,a,r,s,o).pipe(Object(T.a)(t=>{if(t instanceof Te)return Object(i.a)(null);throw t}))),Object(m.a)(),F(t=>!!t),Object(T.a)((t,n)=>{if(t instanceof l||"EmptyError"===t.name){if(this.noLeftoversInUrl(e,r,s))return Object(i.a)(new jt([],{}));throw new Te(e)}throw t}))}noLeftoversInUrl(t,e,n){return 0===e.length&&!t.children[n]}expandSegmentAgainstRoute(t,e,n,r,s,i,o){return Be(r)!==i?Fe(e):void 0===r.redirectTo?this.matchSegmentAgainstRoute(t,e,r,s):o&&this.allowRedirects?this.expandSegmentAgainstRouteUsingRedirect(t,e,n,r,s,i):Fe(e)}expandSegmentAgainstRouteUsingRedirect(t,e,n,r,s,i){return"**"===r.path?this.expandWildCardWithParamsAgainstRouteUsingRedirect(t,n,r,i):this.expandRegularSegmentAgainstRouteUsingRedirect(t,e,n,r,s,i)}expandWildCardWithParamsAgainstRouteUsingRedirect(t,e,n,r){const s=this.applyRedirectCommands([],n.redirectTo,{});return n.redirectTo.startsWith("/")?Ie(s):this.lineralizeSegments(n,s).pipe(Object(I.a)(n=>{const s=new jt(n,{});return this.expandSegment(t,s,e,n,r,!1)}))}expandRegularSegmentAgainstRouteUsingRedirect(t,e,n,r,s,i){const{matched:o,consumedSegments:a,lastChild:c,positionalParamSegments:l}=Pe(e,r,s);if(!o)return Fe(e);const u=this.applyRedirectCommands(a,r.redirectTo,l);return r.redirectTo.startsWith("/")?Ie(u):this.lineralizeSegments(r,u).pipe(Object(I.a)(r=>this.expandSegment(t,e,n,r.concat(s.slice(c)),i,!1)))}matchSegmentAgainstRoute(t,e,n,r){if("**"===n.path)return n.loadChildren?this.configLoader.load(t.injector,n).pipe(Object(p.a)(t=>(n._loadedConfig=t,new jt(r,{})))):Object(i.a)(new jt(r,{}));const{matched:s,consumedSegments:o,lastChild:a}=Pe(e,n,r);if(!s)return Fe(e);const c=r.slice(a);return this.getChildConfig(t,n,r).pipe(Object(I.a)(t=>{const n=t.module,r=t.routes,{segmentGroup:s,slicedSegments:a}=function(t,e,n,r){return n.length>0&&function(t,e,n){return n.some(n=>Ve(t,e,n)&&Be(n)!==ut)}(t,n,r)?{segmentGroup:Ne(new jt(e,function(t,e){const n={};n.primary=e;for(const r of t)""===r.path&&Be(r)!==ut&&(n[Be(r)]=new jt([],{}));return n}(r,new jt(n,t.children)))),slicedSegments:[]}:0===n.length&&function(t,e,n){return n.some(n=>Ve(t,e,n))}(t,n,r)?{segmentGroup:Ne(new jt(t.segments,function(t,e,n,r){const s={};for(const i of n)Ve(t,e,i)&&!r[Be(i)]&&(s[Be(i)]=new jt([],{}));return Object.assign(Object.assign({},r),s)}(t,n,r,t.children))),slicedSegments:n}:{segmentGroup:t,slicedSegments:n}}(e,o,c,r);return 0===a.length&&s.hasChildren()?this.expandChildren(n,r,s).pipe(Object(p.a)(t=>new jt(o,t))):0===r.length&&0===a.length?Object(i.a)(new jt(o,{})):this.expandSegment(n,s,r,a,ut,!0).pipe(Object(p.a)(t=>new jt(o.concat(t.segments),t.children)))}))}getChildConfig(t,e,n){return e.children?Object(i.a)(new mt(e.children,t)):e.loadChildren?void 0!==e._loadedConfig?Object(i.a)(e._loadedConfig):this.runCanLoadGuards(t.injector,e,n).pipe(Object(I.a)(n=>n?this.configLoader.load(t.injector,e).pipe(Object(p.a)(t=>(e._loadedConfig=t,t))):function(t){return new c.a(e=>e.error(ft(`Cannot load children because the guard of the route "path: '${t.path}'" returned false`)))}(e))):Object(i.a)(new mt([],t))}runCanLoadGuards(t,e,n){const r=e.canLoad;return r&&0!==r.length?Object(o.a)(r).pipe(Object(p.a)(r=>{const s=t.get(r);let i;if(function(t){return t&&ke(t.canLoad)}(s))i=s.canLoad(e,n);else{if(!ke(s))throw new Error("Invalid CanLoad guard");i=s(e,n)}return St(i)})).pipe(Object(m.a)(),Object(R.a)(t=>{if(!Ae(t))return;const e=ft(`Redirecting to "${this.urlSerializer.serialize(t)}"`);throw e.url=t,e}),(s=t=>!0===t,t=>t.lift(new M(s,void 0,t)))):Object(i.a)(!0);var s}lineralizeSegments(t,e){let n=[],r=e.root;for(;;){if(n=n.concat(r.segments),0===r.numberOfChildren)return Object(i.a)(n);if(r.numberOfChildren>1||!r.children.primary)return Re(t.redirectTo);r=r.children.primary}}applyRedirectCommands(t,e,n){return this.applyRedirectCreatreUrlTree(e,this.urlSerializer.parse(e),t,n)}applyRedirectCreatreUrlTree(t,e,n,r){const s=this.createSegmentGroup(t,e.root,n,r);return new Tt(s,this.createQueryParams(e.queryParams,this.urlTree.queryParams),e.fragment)}createQueryParams(t,e){const n={};return Et(t,(t,r)=>{if("string"==typeof t&&t.startsWith(":")){const s=t.substring(1);n[r]=e[s]}else n[r]=t}),n}createSegmentGroup(t,e,n,r){const s=this.createSegments(t,e.segments,n,r);let i={};return Et(e.children,(e,s)=>{i[s]=this.createSegmentGroup(t,e,n,r)}),new jt(s,i)}createSegments(t,e,n,r){return e.map(e=>e.path.startsWith(":")?this.findPosParam(t,e,r):this.findOrReturn(e,n))}findPosParam(t,e,n){const r=n[e.path.substring(1)];if(!r)throw new Error(`Cannot redirect to '${t}'. Cannot find '${e.path}'.`);return r}findOrReturn(t,e){let n=0;for(const r of e){if(r.path===t.path)return e.splice(n),r;n++}return t}}function Pe(t,e,n){if(""===e.path)return"full"===e.pathMatch&&(t.hasChildren()||n.length>0)?{matched:!1,consumedSegments:[],lastChild:0,positionalParamSegments:{}}:{matched:!0,consumedSegments:[],lastChild:0,positionalParamSegments:{}};const r=(e.matcher||pt)(n,t,e);return r?{matched:!0,consumedSegments:r.consumed,lastChild:r.consumed.length,positionalParamSegments:r.posParams}:{matched:!1,consumedSegments:[],lastChild:0,positionalParamSegments:{}}}function Ne(t){if(1===t.numberOfChildren&&t.children.primary){const e=t.children.primary;return new jt(t.segments.concat(e.segments),e.children)}return t}function Ve(t,e,n){return(!(t.hasChildren()||e.length>0)||"full"!==n.pathMatch)&&""===n.path&&void 0!==n.redirectTo}function Be(t){return t.outlet||ut}class He{constructor(t){this.path=t,this.route=this.path[this.path.length-1]}}class Le{constructor(t,e){this.component=t,this.route=e}}function Ue(t,e,n){const r=t._root;return $e(r,e?e._root:null,n,[r.value])}function ze(t,e,n){const r=function(t){if(!t)return null;for(let e=t.parent;e;e=e.parent){const t=e.routeConfig;if(t&&t._loadedConfig)return t._loadedConfig}return null}(e);return(r?r.module.injector:n).get(t)}function $e(t,e,n,r,s={canDeactivateChecks:[],canActivateChecks:[]}){const i=ee(e);return t.children.forEach(t=>{!function(t,e,n,r,s={canDeactivateChecks:[],canActivateChecks:[]}){const i=t.value,o=e?e.value:null,a=n?n.getContext(t.value.outlet):null;if(o&&i.routeConfig===o.routeConfig){const c=function(t,e,n){if("function"==typeof n)return n(t,e);switch(n){case"pathParamsChange":return!It(t.url,e.url);case"pathParamsOrQueryParamsChange":return!It(t.url,e.url)||!vt(t.queryParams,e.queryParams);case"always":return!0;case"paramsOrQueryParamsChange":return!he(t,e)||!vt(t.queryParams,e.queryParams);case"paramsChange":default:return!he(t,e)}}(o,i,i.routeConfig.runGuardsAndResolvers);c?s.canActivateChecks.push(new He(r)):(i.data=o.data,i._resolvedData=o._resolvedData),$e(t,e,i.component?a?a.children:null:n,r,s),c&&s.canDeactivateChecks.push(new Le(a&&a.outlet&&a.outlet.component||null,o))}else o&&qe(e,a,s),s.canActivateChecks.push(new He(r)),$e(t,null,i.component?a?a.children:null:n,r,s)}(t,i[t.value.outlet],n,r.concat([t.value]),s),delete i[t.value.outlet]}),Et(i,(t,e)=>qe(t,n.getContext(e),s)),s}function qe(t,e,n){const r=ee(t),s=t.value;Et(r,(t,r)=>{qe(t,s.component?e?e.children.getContext(r):null:e,n)}),n.canDeactivateChecks.push(new Le(s.component&&e&&e.outlet&&e.outlet.isActivated?e.outlet.component:null,s))}const We=Symbol("INITIAL_VALUE");function Ge(){return Object(N.a)(t=>Object(u.a)(...t.map(t=>t.pipe(Object(j.a)(1),Object(V.a)(We)))).pipe(function(t,e){let n=!1;return arguments.length>=2&&(n=!0),function(r){return r.lift(new B(t,e,n))}}((t,e)=>{let n=!1;return e.reduce((t,r,s)=>{if(t!==We)return t;if(r===We&&(n=!0),!n){if(!1===r)return r;if(s===e.length-1||Ae(r))return r}return t},t)},We),Object(g.a)(t=>t!==We),Object(p.a)(t=>Ae(t)?t:!0===t),Object(j.a)(1)))}function Ke(t,e){return null!==t&&e&&e(new ot(t)),Object(i.a)(!0)}function Qe(t,e){return null!==t&&e&&e(new st(t)),Object(i.a)(!0)}function Ze(t,e,n){const r=e.routeConfig?e.routeConfig.canActivate:null;if(!r||0===r.length)return Object(i.a)(!0);const s=r.map(r=>d(()=>{const s=ze(r,e,n);let i;if(function(t){return t&&ke(t.canActivate)}(s))i=St(s.canActivate(e,t));else{if(!ke(s))throw new Error("Invalid CanActivate guard");i=St(s(e,t))}return i.pipe(F())}));return Object(i.a)(s).pipe(Ge())}function Je(t,e,n){const r=e[e.length-1],s=e.slice(0,e.length-1).reverse().map(t=>function(t){const e=t.routeConfig?t.routeConfig.canActivateChild:null;return e&&0!==e.length?{node:t,guards:e}:null}(t)).filter(t=>null!==t).map(e=>d(()=>{const s=e.guards.map(s=>{const i=ze(s,e.node,n);let o;if(function(t){return t&&ke(t.canActivateChild)}(i))o=St(i.canActivateChild(r,t));else{if(!ke(i))throw new Error("Invalid CanActivateChild guard");o=St(i(r,t))}return o.pipe(F())});return Object(i.a)(s).pipe(Ge())}));return Object(i.a)(s).pipe(Ge())}class Ye{}class Xe{constructor(t,e,n,r,s,i){this.rootComponentType=t,this.config=e,this.urlTree=n,this.url=r,this.paramsInheritanceStrategy=s,this.relativeLinkResolution=i}recognize(){try{const t=nn(this.urlTree.root,[],[],this.config,this.relativeLinkResolution).segmentGroup,e=this.processSegmentGroup(this.config,t,ut),n=new oe([],Object.freeze({}),Object.freeze(Object.assign({},this.urlTree.queryParams)),this.urlTree.fragment,{},ut,this.rootComponentType,null,this.urlTree.root,-1,{}),r=new te(n,e),s=new ae(this.url,r);return this.inheritParamsAndData(s._root),Object(i.a)(s)}catch(t){return new c.a(e=>e.error(t))}}inheritParamsAndData(t){const e=t.value,n=ie(e,this.paramsInheritanceStrategy);e.params=Object.freeze(n.params),e.data=Object.freeze(n.data),t.children.forEach(t=>this.inheritParamsAndData(t))}processSegmentGroup(t,e,n){return 0===e.segments.length&&e.hasChildren()?this.processChildren(t,e):this.processSegment(t,e,e.segments,n)}processChildren(t,e){const n=Rt(e,(e,n)=>this.processSegmentGroup(t,e,n));return function(t){const e={};t.forEach(t=>{const n=e[t.value.outlet];if(n){const e=n.url.map(t=>t.toString()).join("/"),r=t.value.url.map(t=>t.toString()).join("/");throw new Error(`Two segments cannot have the same outlet name: '${e}' and '${r}'.`)}e[t.value.outlet]=t.value})}(n),n.sort((t,e)=>t.value.outlet===ut?-1:e.value.outlet===ut?1:t.value.outlet.localeCompare(e.value.outlet)),n}processSegment(t,e,n,r){for(const i of t)try{return this.processSegmentAgainstRoute(i,e,n,r)}catch(s){if(!(s instanceof Ye))throw s}if(this.noLeftoversInUrl(e,n,r))return[];throw new Ye}noLeftoversInUrl(t,e,n){return 0===e.length&&!t.children[n]}processSegmentAgainstRoute(t,e,n,r){if(t.redirectTo)throw new Ye;if((t.outlet||ut)!==r)throw new Ye;let s,i=[],o=[];if("**"===t.path){const i=n.length>0?Dt(n).parameters:{};s=new oe(n,i,Object.freeze(Object.assign({},this.urlTree.queryParams)),this.urlTree.fragment,on(t),r,t.component,t,tn(e),en(e)+n.length,an(t))}else{const a=function(t,e,n){if(""===e.path){if("full"===e.pathMatch&&(t.hasChildren()||n.length>0))throw new Ye;return{consumedSegments:[],lastChild:0,parameters:{}}}const r=(e.matcher||pt)(n,t,e);if(!r)throw new Ye;const s={};Et(r.posParams,(t,e)=>{s[e]=t.path});const i=r.consumed.length>0?Object.assign(Object.assign({},s),r.consumed[r.consumed.length-1].parameters):s;return{consumedSegments:r.consumed,lastChild:r.consumed.length,parameters:i}}(e,t,n);i=a.consumedSegments,o=n.slice(a.lastChild),s=new oe(i,a.parameters,Object.freeze(Object.assign({},this.urlTree.queryParams)),this.urlTree.fragment,on(t),r,t.component,t,tn(e),en(e)+i.length,an(t))}const a=function(t){return t.children?t.children:t.loadChildren?t._loadedConfig.routes:[]}(t),{segmentGroup:c,slicedSegments:l}=nn(e,i,o,a,this.relativeLinkResolution);if(0===l.length&&c.hasChildren()){const t=this.processChildren(a,c);return[new te(s,t)]}if(0===a.length&&0===l.length)return[new te(s,[])];const u=this.processSegment(a,c,l,ut);return[new te(s,u)]}}function tn(t){let e=t;for(;e._sourceSegment;)e=e._sourceSegment;return e}function en(t){let e=t,n=e._segmentIndexShift?e._segmentIndexShift:0;for(;e._sourceSegment;)e=e._sourceSegment,n+=e._segmentIndexShift?e._segmentIndexShift:0;return n-1}function nn(t,e,n,r,s){if(n.length>0&&function(t,e,n){return n.some(n=>rn(t,e,n)&&sn(n)!==ut)}(t,n,r)){const s=new jt(e,function(t,e,n,r){const s={};s.primary=r,r._sourceSegment=t,r._segmentIndexShift=e.length;for(const i of n)if(""===i.path&&sn(i)!==ut){const n=new jt([],{});n._sourceSegment=t,n._segmentIndexShift=e.length,s[sn(i)]=n}return s}(t,e,r,new jt(n,t.children)));return s._sourceSegment=t,s._segmentIndexShift=e.length,{segmentGroup:s,slicedSegments:[]}}if(0===n.length&&function(t,e,n){return n.some(n=>rn(t,e,n))}(t,n,r)){const i=new jt(t.segments,function(t,e,n,r,s,i){const o={};for(const a of r)if(rn(t,n,a)&&!s[sn(a)]){const n=new jt([],{});n._sourceSegment=t,n._segmentIndexShift="legacy"===i?t.segments.length:e.length,o[sn(a)]=n}return Object.assign(Object.assign({},s),o)}(t,e,n,r,t.children,s));return i._sourceSegment=t,i._segmentIndexShift=e.length,{segmentGroup:i,slicedSegments:n}}const i=new jt(t.segments,t.children);return i._sourceSegment=t,i._segmentIndexShift=e.length,{segmentGroup:i,slicedSegments:n}}function rn(t,e,n){return(!(t.hasChildren()||e.length>0)||"full"!==n.pathMatch)&&""===n.path&&void 0===n.redirectTo}function sn(t){return t.outlet||ut}function on(t){return t.data||{}}function an(t){return t.resolve||{}}function cn(t){return function(e){return e.pipe(Object(N.a)(e=>{const n=t(e);return n?Object(o.a)(n).pipe(Object(p.a)(()=>e)):Object(o.a)([e])}))}}class ln{shouldDetach(t){return!1}store(t,e){}shouldAttach(t){return!1}retrieve(t){return null}shouldReuseRoute(t,e){return t.routeConfig===e.routeConfig}}const un=new s.s("ROUTES");class hn{constructor(t,e,n,r){this.loader=t,this.compiler=e,this.onLoadStartListener=n,this.onLoadEndListener=r}load(t,e){return this.onLoadStartListener&&this.onLoadStartListener(e),this.loadModuleFactory(e.loadChildren).pipe(Object(p.a)(n=>{this.onLoadEndListener&&this.onLoadEndListener(e);const r=n.create(t);return new mt(Ct(r.injector.get(un)).map(_t),r)}))}loadModuleFactory(t){return"string"==typeof t?Object(o.a)(this.loader.load(t)):St(t()).pipe(Object(I.a)(t=>t instanceof s.x?Object(i.a)(t):Object(o.a)(this.compiler.compileModuleAsync(t))))}}class dn{constructor(){this.outlet=null,this.route=null,this.resolver=null,this.children=new fn,this.attachRef=null}}class fn{constructor(){this.contexts=new Map}onChildOutletCreated(t,e){const n=this.getOrCreateContext(t);n.outlet=e,this.contexts.set(t,n)}onChildOutletDestroyed(t){const e=this.getContext(t);e&&(e.outlet=null)}onOutletDeactivated(){const t=this.contexts;return this.contexts=new Map,t}onOutletReAttached(t){this.contexts=t}getOrCreateContext(t){let e=this.getContext(t);return e||(e=new dn,this.contexts.set(t,e)),e}getContext(t){return this.contexts.get(t)||null}}class pn{shouldProcessUrl(t){return!0}extract(t){return t}merge(t,e){return t}}function mn(t){throw t}function gn(t,e,n){return e.parse("/")}function bn(t,e){return Object(i.a)(null)}let yn=(()=>{class t{constructor(t,e,n,r,i,o,c,l){this.rootComponentType=t,this.urlSerializer=e,this.rootContexts=n,this.location=r,this.config=l,this.lastSuccessfulNavigation=null,this.currentNavigation=null,this.navigationId=0,this.isNgZoneEnabled=!1,this.events=new f.a,this.errorHandler=mn,this.malformedUriErrorHandler=gn,this.navigated=!1,this.lastSuccessfulId=-1,this.hooks={beforePreactivation:bn,afterPreactivation:bn},this.urlHandlingStrategy=new pn,this.routeReuseStrategy=new ln,this.onSameUrlNavigation="ignore",this.paramsInheritanceStrategy="emptyOnly",this.urlUpdateStrategy="deferred",this.relativeLinkResolution="legacy",this.ngModule=i.get(s.z),this.console=i.get(s.Y);const u=i.get(s.B);this.isNgZoneEnabled=u instanceof s.B,this.resetConfig(l),this.currentUrlTree=new Tt(new jt([],{}),{},null),this.rawUrlTree=this.currentUrlTree,this.browserUrlTree=this.currentUrlTree,this.configLoader=new hn(o,c,t=>this.triggerEvent(new nt(t)),t=>this.triggerEvent(new rt(t))),this.routerState=re(this.currentUrlTree,this.rootComponentType),this.transitions=new a.a({id: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()}setupNavigations(t){const e=this.events;return t.pipe(Object(g.a)(t=>0!==t.id),Object(p.a)(t=>Object.assign(Object.assign({},t),{extractedUrl:this.urlHandlingStrategy.extract(t.rawUrl)})),Object(N.a)(t=>{let n=!1,r=!1;return Object(i.a)(t).pipe(Object(R.a)(t=>{this.currentNavigation={id:t.id,initialUrl:t.currentRawUrl,extractedUrl:t.extractedUrl,trigger:t.source,extras:t.extras,previousNavigation:this.lastSuccessfulNavigation?Object.assign(Object.assign({},this.lastSuccessfulNavigation),{previousNavigation:null}):null}}),Object(N.a)(t=>{const n=!this.navigated||t.extractedUrl.toString()!==this.browserUrlTree.toString();if(("reload"===this.onSameUrlNavigation||n)&&this.urlHandlingStrategy.shouldProcessUrl(t.rawUrl))return Object(i.a)(t).pipe(Object(N.a)(t=>{const n=this.transitions.getValue();return e.next(new G(t.id,this.serializeUrl(t.extractedUrl),t.source,t.restoredState)),n!==this.transitions.getValue()?h.a:[t]}),Object(N.a)(t=>Promise.resolve(t)),(r=this.ngModule.injector,s=this.configLoader,o=this.urlSerializer,a=this.config,function(t){return t.pipe(Object(N.a)(t=>function(t,e,n,r,s){return new Me(t,e,n,r,s).apply()}(r,s,o,t.extractedUrl,a).pipe(Object(p.a)(e=>Object.assign(Object.assign({},t),{urlAfterRedirects:e})))))}),Object(R.a)(t=>{this.currentNavigation=Object.assign(Object.assign({},this.currentNavigation),{finalUrl:t.urlAfterRedirects})}),function(t,e,n,r,s){return function(i){return i.pipe(Object(I.a)(i=>function(t,e,n,r,s="emptyOnly",i="legacy"){return new Xe(t,e,n,r,s,i).recognize()}(t,e,i.urlAfterRedirects,n(i.urlAfterRedirects),r,s).pipe(Object(p.a)(t=>Object.assign(Object.assign({},i),{targetSnapshot:t})))))}}(this.rootComponentType,this.config,t=>this.serializeUrl(t),this.paramsInheritanceStrategy,this.relativeLinkResolution),Object(R.a)(t=>{"eager"===this.urlUpdateStrategy&&(t.extras.skipLocationChange||this.setBrowserUrl(t.urlAfterRedirects,!!t.extras.replaceUrl,t.id,t.extras.state),this.browserUrlTree=t.urlAfterRedirects)}),Object(R.a)(t=>{const n=new J(t.id,this.serializeUrl(t.extractedUrl),this.serializeUrl(t.urlAfterRedirects),t.targetSnapshot);e.next(n)}));var r,s,o,a;if(n&&this.rawUrlTree&&this.urlHandlingStrategy.shouldProcessUrl(this.rawUrlTree)){const{id:n,extractedUrl:r,source:s,restoredState:o,extras:a}=t,c=new G(n,this.serializeUrl(r),s,o);e.next(c);const l=re(r,this.rootComponentType).snapshot;return Object(i.a)(Object.assign(Object.assign({},t),{targetSnapshot:l,urlAfterRedirects:r,extras:Object.assign(Object.assign({},a),{skipLocationChange:!1,replaceUrl:!1})}))}return this.rawUrlTree=t.rawUrl,this.browserUrlTree=t.urlAfterRedirects,t.resolve(null),h.a}),cn(t=>{const{targetSnapshot:e,id:n,extractedUrl:r,rawUrl:s,extras:{skipLocationChange:i,replaceUrl:o}}=t;return this.hooks.beforePreactivation(e,{navigationId:n,appliedUrlTree:r,rawUrlTree:s,skipLocationChange:!!i,replaceUrl:!!o})}),Object(R.a)(t=>{const e=new Y(t.id,this.serializeUrl(t.extractedUrl),this.serializeUrl(t.urlAfterRedirects),t.targetSnapshot);this.triggerEvent(e)}),Object(p.a)(t=>Object.assign(Object.assign({},t),{guards:Ue(t.targetSnapshot,t.currentSnapshot,this.rootContexts)})),function(t,e){return function(n){return n.pipe(Object(I.a)(n=>{const{targetSnapshot:r,currentSnapshot:s,guards:{canActivateChecks:a,canDeactivateChecks:c}}=n;return 0===c.length&&0===a.length?Object(i.a)(Object.assign(Object.assign({},n),{guardsResult:!0})):function(t,e,n,r){return Object(o.a)(t).pipe(Object(I.a)(t=>function(t,e,n,r,s){const o=e&&e.routeConfig?e.routeConfig.canDeactivate:null;if(!o||0===o.length)return Object(i.a)(!0);const a=o.map(i=>{const o=ze(i,e,s);let a;if(function(t){return t&&ke(t.canDeactivate)}(o))a=St(o.canDeactivate(t,e,n,r));else{if(!ke(o))throw new Error("Invalid CanDeactivate guard");a=St(o(t,e,n,r))}return a.pipe(F())});return Object(i.a)(a).pipe(Ge())}(t.component,t.route,n,e,r)),F(t=>!0!==t,!0))}(c,r,s,t).pipe(Object(I.a)(n=>n&&"boolean"==typeof n?function(t,e,n,r){return Object(o.a)(e).pipe(Object(L.a)(e=>Object(o.a)([Qe(e.route.parent,r),Ke(e.route,r),Je(t,e.path,n),Ze(t,e.route,n)]).pipe(Object(m.a)(),F(t=>!0!==t,!0))),F(t=>!0!==t,!0))}(r,a,t,e):Object(i.a)(n)),Object(p.a)(t=>Object.assign(Object.assign({},n),{guardsResult:t})))}))}}(this.ngModule.injector,t=>this.triggerEvent(t)),Object(R.a)(t=>{if(Ae(t.guardsResult)){const e=ft(`Redirecting to "${this.serializeUrl(t.guardsResult)}"`);throw e.url=t.guardsResult,e}}),Object(R.a)(t=>{const e=new X(t.id,this.serializeUrl(t.extractedUrl),this.serializeUrl(t.urlAfterRedirects),t.targetSnapshot,!!t.guardsResult);this.triggerEvent(e)}),Object(g.a)(t=>{if(!t.guardsResult){this.resetUrlToCurrentUrlTree();const n=new Q(t.id,this.serializeUrl(t.extractedUrl),"");return e.next(n),t.resolve(!1),!1}return!0}),cn(t=>{if(t.guards.canActivateChecks.length)return Object(i.a)(t).pipe(Object(R.a)(t=>{const e=new tt(t.id,this.serializeUrl(t.extractedUrl),this.serializeUrl(t.urlAfterRedirects),t.targetSnapshot);this.triggerEvent(e)}),Object(N.a)(t=>{let n=!1;return Object(i.a)(t).pipe((r=this.paramsInheritanceStrategy,s=this.ngModule.injector,function(t){return t.pipe(Object(I.a)(t=>{const{targetSnapshot:e,guards:{canActivateChecks:n}}=t;if(!n.length)return Object(i.a)(t);let a=0;return Object(o.a)(n).pipe(Object(L.a)(t=>function(t,e,n,r){return function(t,e,n,r){const s=Object.keys(t);if(0===s.length)return Object(i.a)({});const a={};return Object(o.a)(s).pipe(Object(I.a)(s=>function(t,e,n,r){const s=ze(t,e,r);return St(s.resolve?s.resolve(e,n):s(e,n))}(t[s],e,n,r).pipe(Object(R.a)(t=>{a[s]=t}))),_(1),Object(I.a)(()=>Object.keys(a).length===s.length?Object(i.a)(a):h.a))}(t._resolve,t,e,r).pipe(Object(p.a)(e=>(t._resolvedData=e,t.data=Object.assign(Object.assign({},t.data),ie(t,n).resolve),null)))}(t.route,e,r,s)),Object(R.a)(()=>a++),_(1),Object(I.a)(e=>a===n.length?Object(i.a)(t):h.a))}))}),Object(R.a)({next:()=>n=!0,complete:()=>{if(!n){const n=new Q(t.id,this.serializeUrl(t.extractedUrl),"At least one route resolver didn't emit any value.");e.next(n),t.resolve(!1)}}}));var r,s}),Object(R.a)(t=>{const e=new et(t.id,this.serializeUrl(t.extractedUrl),this.serializeUrl(t.urlAfterRedirects),t.targetSnapshot);this.triggerEvent(e)}))}),cn(t=>{const{targetSnapshot:e,id:n,extractedUrl:r,rawUrl:s,extras:{skipLocationChange:i,replaceUrl:o}}=t;return this.hooks.afterPreactivation(e,{navigationId:n,appliedUrlTree:r,rawUrlTree:s,skipLocationChange:!!i,replaceUrl:!!o})}),Object(p.a)(t=>{const e=function(t,e,n){const r=de(t,e._root,n?n._root:void 0);return new ne(r,e)}(this.routeReuseStrategy,t.targetSnapshot,t.currentRouterState);return Object.assign(Object.assign({},t),{targetRouterState:e})}),Object(R.a)(t=>{this.currentUrlTree=t.urlAfterRedirects,this.rawUrlTree=this.urlHandlingStrategy.merge(this.currentUrlTree,t.rawUrl),this.routerState=t.targetRouterState,"deferred"===this.urlUpdateStrategy&&(t.extras.skipLocationChange||this.setBrowserUrl(this.rawUrlTree,!!t.extras.replaceUrl,t.id,t.extras.state),this.browserUrlTree=t.urlAfterRedirects)}),(a=this.rootContexts,c=this.routeReuseStrategy,l=t=>this.triggerEvent(t),Object(p.a)(t=>(new Oe(c,t.targetRouterState,t.currentRouterState,l).activate(a),t))),Object(R.a)({next(){n=!0},complete(){n=!0}}),(s=()=>{if(!n&&!r){this.resetUrlToCurrentUrlTree();const n=new Q(t.id,this.serializeUrl(t.extractedUrl),`Navigation ID ${t.id} is not equal to the current navigation id ${this.navigationId}`);e.next(n),t.resolve(!1)}this.currentNavigation=null},t=>t.lift(new z(s))),Object(T.a)(n=>{if(r=!0,(s=n)&&s.ngNavigationCancelingError){const r=Ae(n.url);r||(this.navigated=!0,this.resetStateAndUrl(t.currentRouterState,t.currentUrlTree,t.rawUrl));const s=new Q(t.id,this.serializeUrl(t.extractedUrl),n.message);e.next(s),r?setTimeout(()=>{const e=this.urlHandlingStrategy.merge(n.url,this.rawUrlTree);return this.scheduleNavigation(e,"imperative",null,{skipLocationChange:t.extras.skipLocationChange,replaceUrl:"eager"===this.urlUpdateStrategy},{resolve:t.resolve,reject:t.reject,promise:t.promise})},0):t.resolve(!1)}else{this.resetStateAndUrl(t.currentRouterState,t.currentUrlTree,t.rawUrl);const r=new Z(t.id,this.serializeUrl(t.extractedUrl),n);e.next(r);try{t.resolve(this.errorHandler(n))}catch(i){t.reject(i)}}var s;return h.a}));var s,a,c,l}))}resetRootComponentType(t){this.rootComponentType=t,this.routerState.root.component=this.rootComponentType}getTransition(){const t=this.transitions.value;return t.urlAfterRedirects=this.browserUrlTree,t}setTransition(t){this.transitions.next(Object.assign(Object.assign({},this.getTransition()),t))}initialNavigation(){this.setUpLocationChangeListener(),0===this.navigationId&&this.navigateByUrl(this.location.path(!0),{replaceUrl:!0})}setUpLocationChangeListener(){this.locationSubscription||(this.locationSubscription=this.location.subscribe(t=>{let e=this.parseUrl(t.url);const n="popstate"===t.type?"popstate":"hashchange",r=t.state&&t.state.navigationId?t.state:null;setTimeout(()=>{this.scheduleNavigation(e,n,r,{replaceUrl:!0})},0)}))}get url(){return this.serializeUrl(this.currentUrlTree)}getCurrentNavigation(){return this.currentNavigation}triggerEvent(t){this.events.next(t)}resetConfig(t){gt(t),this.config=t.map(_t),this.navigated=!1,this.lastSuccessfulId=-1}ngOnDestroy(){this.dispose()}dispose(){this.locationSubscription&&(this.locationSubscription.unsubscribe(),this.locationSubscription=null)}createUrlTree(t,e={}){const{relativeTo:n,queryParams:r,fragment:i,preserveQueryParams:o,queryParamsHandling:a,preserveFragment:c}=e;Object(s.V)()&&o&&console&&console.warn&&console.warn("preserveQueryParams is deprecated, use queryParamsHandling instead.");const l=n||this.routerState.root,u=c?this.currentUrlTree.fragment:i;let h=null;if(a)switch(a){case"merge":h=Object.assign(Object.assign({},this.currentUrlTree.queryParams),r);break;case"preserve":h=this.currentUrlTree.queryParams;break;default:h=r||null}else h=o?this.currentUrlTree.queryParams:r||null;return null!==h&&(h=this.removeEmptyProps(h)),function(t,e,n,r,s){if(0===n.length)return me(e.root,e.root,e,r,s);const i=function(t){if("string"==typeof t[0]&&1===t.length&&"/"===t[0])return new be(!0,0,t);let e=0,n=!1;const r=t.reduce((t,r,s)=>{if("object"==typeof r&&null!=r){if(r.outlets){const e={};return Et(r.outlets,(t,n)=>{e[n]="string"==typeof t?t.split("/"):t}),[...t,{outlets:e}]}if(r.segmentPath)return[...t,r.segmentPath]}return"string"!=typeof r?[...t,r]:0===s?(r.split("/").forEach((r,s)=>{0==s&&"."===r||(0==s&&""===r?n=!0:".."===r?e++:""!=r&&t.push(r))}),t):[...t,r]},[]);return new be(n,e,r)}(n);if(i.toRoot())return me(e.root,new jt([],{}),e,r,s);const o=function(t,e,n){if(t.isAbsolute)return new ye(e.root,!0,0);if(-1===n.snapshot._lastPathIndex){const t=n.snapshot._urlSegment;return new ye(t,t===e.root,0)}const r=pe(t.commands[0])?0:1;return function(t,e,n){let r=t,s=e,i=n;for(;i>s;){if(i-=s,r=r.parent,!r)throw new Error("Invalid number of '../'");s=r.segments.length}return new ye(r,!1,s-i)}(n.snapshot._urlSegment,n.snapshot._lastPathIndex+r,t.numberOfDoubleDots)}(i,e,t),a=o.processChildren?we(o.segmentGroup,o.index,i.commands):ve(o.segmentGroup,o.index,i.commands);return me(o.segmentGroup,a,e,r,s)}(l,this.currentUrlTree,t,h,u)}navigateByUrl(t,e={skipLocationChange:!1}){Object(s.V)()&&this.isNgZoneEnabled&&!s.B.isInAngularZone()&&this.console.warn("Navigation triggered outside Angular zone, did you forget to call 'ngZone.run()'?");const n=Ae(t)?t:this.parseUrl(t),r=this.urlHandlingStrategy.merge(n,this.rawUrlTree);return this.scheduleNavigation(r,"imperative",null,e)}navigate(t,e={skipLocationChange:!1}){return function(t){for(let e=0;e<t.length;e++){const n=t[e];if(null==n)throw new Error(`The requested path contains ${n} segment at index ${e}`)}}(t),this.navigateByUrl(this.createUrlTree(t,e),e)}serializeUrl(t){return this.urlSerializer.serialize(t)}parseUrl(t){let e;try{e=this.urlSerializer.parse(t)}catch(n){e=this.malformedUriErrorHandler(n,this.urlSerializer,t)}return e}isActive(t,e){if(Ae(t))return Ot(this.currentUrlTree,t,e);const n=this.parseUrl(t);return Ot(this.currentUrlTree,n,e)}removeEmptyProps(t){return Object.keys(t).reduce((e,n)=>{const r=t[n];return null!=r&&(e[n]=r),e},{})}processNavigations(){this.navigations.subscribe(t=>{this.navigated=!0,this.lastSuccessfulId=t.id,this.events.next(new K(t.id,this.serializeUrl(t.extractedUrl),this.serializeUrl(this.currentUrlTree))),this.lastSuccessfulNavigation=this.currentNavigation,this.currentNavigation=null,t.resolve(!0)},t=>{this.console.warn("Unhandled Navigation Error: ")})}scheduleNavigation(t,e,n,r,s){const i=this.getTransition();if(i&&"imperative"!==e&&"imperative"===i.source&&i.rawUrl.toString()===t.toString())return Promise.resolve(!0);if(i&&"hashchange"==e&&"popstate"===i.source&&i.rawUrl.toString()===t.toString())return Promise.resolve(!0);if(i&&"popstate"==e&&"hashchange"===i.source&&i.rawUrl.toString()===t.toString())return Promise.resolve(!0);let o,a,c;s?(o=s.resolve,a=s.reject,c=s.promise):c=new Promise((t,e)=>{o=t,a=e});const l=++this.navigationId;return this.setTransition({id:l,source:e,restoredState:n,currentUrlTree:this.currentUrlTree,currentRawUrl:this.rawUrlTree,rawUrl:t,extras:r,resolve:o,reject:a,promise:c,currentSnapshot:this.routerState.snapshot,currentRouterState:this.routerState}),c.catch(t=>Promise.reject(t))}setBrowserUrl(t,e,n,r){const s=this.urlSerializer.serialize(t);r=r||{},this.location.isCurrentPathEqualTo(s)||e?this.location.replaceState(s,"",Object.assign(Object.assign({},r),{navigationId:n})):this.location.go(s,"",Object.assign(Object.assign({},r),{navigationId:n}))}resetStateAndUrl(t,e,n){this.routerState=t,this.currentUrlTree=e,this.rawUrlTree=this.urlHandlingStrategy.merge(this.currentUrlTree,n),this.resetUrlToCurrentUrlTree()}resetUrlToCurrentUrlTree(){this.location.replaceState(this.urlSerializer.serialize(this.rawUrlTree),"",{navigationId:this.lastSuccessfulId})}}return t.\u0275fac=function(e){return new(e||t)(s.ac(s.O),s.ac(Mt),s.ac(fn),s.ac(r.j),s.ac(s.t),s.ac(s.y),s.ac(s.j),s.ac(void 0))},t.\u0275prov=s.Ib({token:t,factory:t.\u0275fac}),t})(),_n=(()=>{class t{constructor(t,e,n,r,s){this.router=t,this.route=e,this.commands=[],null==n&&r.setAttribute(s.nativeElement,"tabindex","0")}set routerLink(t){this.commands=null!=t?Array.isArray(t)?t:[t]:[]}set preserveQueryParams(t){Object(s.V)()&&console&&console.warn&&console.warn("preserveQueryParams is deprecated!, use queryParamsHandling instead."),this.preserve=t}onClick(){const t={skipLocationChange:wn(this.skipLocationChange),replaceUrl:wn(this.replaceUrl),state:this.state};return this.router.navigateByUrl(this.urlTree,t),!0}get urlTree(){return this.router.createUrlTree(this.commands,{relativeTo:this.route,queryParams:this.queryParams,fragment:this.fragment,preserveQueryParams:wn(this.preserve),queryParamsHandling:this.queryParamsHandling,preserveFragment:wn(this.preserveFragment)})}}return t.\u0275fac=function(e){return new(e||t)(s.Mb(yn),s.Mb(se),s.bc("tabindex"),s.Mb(s.F),s.Mb(s.m))},t.\u0275dir=s.Hb({type:t,selectors:[["","routerLink","",5,"a",5,"area"]],hostBindings:function(t,e){1&t&&s.dc("click",function(){return e.onClick()})},inputs:{routerLink:"routerLink",preserveQueryParams:"preserveQueryParams",queryParams:"queryParams",fragment:"fragment",queryParamsHandling:"queryParamsHandling",preserveFragment:"preserveFragment",skipLocationChange:"skipLocationChange",replaceUrl:"replaceUrl",state:"state"}}),t})(),vn=(()=>{class t{constructor(t,e,n){this.router=t,this.route=e,this.locationStrategy=n,this.commands=[],this.subscription=t.events.subscribe(t=>{t instanceof K&&this.updateTargetUrlAndHref()})}set routerLink(t){this.commands=null!=t?Array.isArray(t)?t:[t]:[]}set preserveQueryParams(t){Object(s.V)()&&console&&console.warn&&console.warn("preserveQueryParams is deprecated, use queryParamsHandling instead."),this.preserve=t}ngOnChanges(t){this.updateTargetUrlAndHref()}ngOnDestroy(){this.subscription.unsubscribe()}onClick(t,e,n,r){if(0!==t||e||n||r)return!0;if("string"==typeof this.target&&"_self"!=this.target)return!0;const s={skipLocationChange:wn(this.skipLocationChange),replaceUrl:wn(this.replaceUrl),state:this.state};return this.router.navigateByUrl(this.urlTree,s),!1}updateTargetUrlAndHref(){this.href=this.locationStrategy.prepareExternalUrl(this.router.serializeUrl(this.urlTree))}get urlTree(){return this.router.createUrlTree(this.commands,{relativeTo:this.route,queryParams:this.queryParams,fragment:this.fragment,preserveQueryParams:wn(this.preserve),queryParamsHandling:this.queryParamsHandling,preserveFragment:wn(this.preserveFragment)})}}return t.\u0275fac=function(e){return new(e||t)(s.Mb(yn),s.Mb(se),s.Mb(r.k))},t.\u0275dir=s.Hb({type:t,selectors:[["a","routerLink",""],["area","routerLink",""]],hostVars:2,hostBindings:function(t,e){1&t&&s.dc("click",function(t){return e.onClick(t.button,t.ctrlKey,t.metaKey,t.shiftKey)}),2&t&&(s.Vb("href",e.href,s.yc),s.Ab("target",e.target))},inputs:{routerLink:"routerLink",preserveQueryParams:"preserveQueryParams",target:"target",queryParams:"queryParams",fragment:"fragment",queryParamsHandling:"queryParamsHandling",preserveFragment:"preserveFragment",skipLocationChange:"skipLocationChange",replaceUrl:"replaceUrl",state:"state"},features:[s.xb]}),t})();function wn(t){return""===t||!!t}let Cn=(()=>{class t{constructor(t,e,n,r,s,i){this.router=t,this.element=e,this.renderer=n,this.cdr=r,this.link=s,this.linkWithHref=i,this.classes=[],this.isActive=!1,this.routerLinkActiveOptions={exact:!1},this.subscription=t.events.subscribe(t=>{t instanceof K&&this.update()})}ngAfterContentInit(){this.links.changes.subscribe(t=>this.update()),this.linksWithHrefs.changes.subscribe(t=>this.update()),this.update()}set routerLinkActive(t){const e=Array.isArray(t)?t:t.split(" ");this.classes=e.filter(t=>!!t)}ngOnChanges(t){this.update()}ngOnDestroy(){this.subscription.unsubscribe()}update(){this.links&&this.linksWithHrefs&&this.router.navigated&&Promise.resolve().then(()=>{const t=this.hasActiveLinks();this.isActive!==t&&(this.isActive=t,this.cdr.markForCheck(),this.classes.forEach(e=>{t?this.renderer.addClass(this.element.nativeElement,e):this.renderer.removeClass(this.element.nativeElement,e)}))})}isLinkActive(t){return e=>t.isActive(e.urlTree,this.routerLinkActiveOptions.exact)}hasActiveLinks(){const t=this.isLinkActive(this.router);return this.link&&t(this.link)||this.linkWithHref&&t(this.linkWithHref)||this.links.some(t)||this.linksWithHrefs.some(t)}}return t.\u0275fac=function(e){return new(e||t)(s.Mb(yn),s.Mb(s.m),s.Mb(s.F),s.Mb(s.i),s.Mb(_n,8),s.Mb(vn,8))},t.\u0275dir=s.Hb({type:t,selectors:[["","routerLinkActive",""]],contentQueries:function(t,e,n){var r;1&t&&(s.Fb(n,_n,!0),s.Fb(n,vn,!0)),2&t&&(s.uc(r=s.ec())&&(e.links=r),s.uc(r=s.ec())&&(e.linksWithHrefs=r))},inputs:{routerLinkActiveOptions:"routerLinkActiveOptions",routerLinkActive:"routerLinkActive"},exportAs:["routerLinkActive"],features:[s.xb]}),t})(),Dn=(()=>{class t{constructor(t,e,n,r,i){this.parentContexts=t,this.location=e,this.resolver=n,this.changeDetector=i,this.activated=null,this._activatedRoute=null,this.activateEvents=new s.o,this.deactivateEvents=new s.o,this.name=r||ut,t.onChildOutletCreated(this.name,this)}ngOnDestroy(){this.parentContexts.onChildOutletDestroyed(this.name)}ngOnInit(){if(!this.activated){const t=this.parentContexts.getContext(this.name);t&&t.route&&(t.attachRef?this.attach(t.attachRef,t.route):this.activateWith(t.route,t.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 t=this.activated;return this.activated=null,this._activatedRoute=null,t}attach(t,e){this.activated=t,this._activatedRoute=e,this.location.insert(t.hostView)}deactivate(){if(this.activated){const t=this.component;this.activated.destroy(),this.activated=null,this._activatedRoute=null,this.deactivateEvents.emit(t)}}activateWith(t,e){if(this.isActivated)throw new Error("Cannot activate an already activated outlet");this._activatedRoute=t;const n=(e=e||this.resolver).resolveComponentFactory(t._futureSnapshot.routeConfig.component),r=this.parentContexts.getOrCreateContext(this.name).children,s=new En(t,r,this.location.injector);this.activated=this.location.createComponent(n,this.location.length,s),this.changeDetector.markForCheck(),this.activateEvents.emit(this.activated.instance)}}return t.\u0275fac=function(e){return new(e||t)(s.Mb(fn),s.Mb(s.Q),s.Mb(s.k),s.bc("name"),s.Mb(s.i))},t.\u0275dir=s.Hb({type:t,selectors:[["router-outlet"]],outputs:{activateEvents:"activate",deactivateEvents:"deactivate"},exportAs:["outlet"]}),t})();class En{constructor(t,e,n){this.route=t,this.childContexts=e,this.parent=n}get(t,e){return t===se?this.route:t===fn?this.childContexts:this.parent.get(t,e)}}class Sn{}class On{preload(t,e){return Object(i.a)(null)}}let xn=(()=>{class t{constructor(t,e,n,r,s){this.router=t,this.injector=r,this.preloadingStrategy=s,this.loader=new hn(e,n,e=>t.triggerEvent(new nt(e)),e=>t.triggerEvent(new rt(e)))}setUpPreloading(){this.subscription=this.router.events.pipe(Object(g.a)(t=>t instanceof K),Object(L.a)(()=>this.preload())).subscribe(()=>{})}preload(){const t=this.injector.get(s.z);return this.processRoutes(t,this.router.config)}ngOnDestroy(){this.subscription.unsubscribe()}processRoutes(t,e){const n=[];for(const r of e)if(r.loadChildren&&!r.canLoad&&r._loadedConfig){const t=r._loadedConfig;n.push(this.processRoutes(t.module,t.routes))}else r.loadChildren&&!r.canLoad?n.push(this.preloadConfig(t,r)):r.children&&n.push(this.processRoutes(t,r.children));return Object(o.a)(n).pipe(Object(q.a)(),Object(p.a)(t=>{}))}preloadConfig(t,e){return this.preloadingStrategy.preload(e,()=>this.loader.load(t.injector,e).pipe(Object(I.a)(t=>(e._loadedConfig=t,this.processRoutes(t.module,t.routes)))))}}return t.\u0275fac=function(e){return new(e||t)(s.ac(yn),s.ac(s.y),s.ac(s.j),s.ac(s.t),s.ac(Sn))},t.\u0275prov=s.Ib({token:t,factory:t.\u0275fac}),t})(),kn=(()=>{class t{constructor(t,e,n={}){this.router=t,this.viewportScroller=e,this.options=n,this.lastId=0,this.lastSource="imperative",this.restoredId=0,this.store={},n.scrollPositionRestoration=n.scrollPositionRestoration||"disabled",n.anchorScrolling=n.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(t=>{t instanceof G?(this.store[this.lastId]=this.viewportScroller.getScrollPosition(),this.lastSource=t.navigationTrigger,this.restoredId=t.restoredState?t.restoredState.navigationId:0):t instanceof K&&(this.lastId=t.id,this.scheduleScrollEvent(t,this.router.parseUrl(t.urlAfterRedirects).fragment))})}consumeScrollEvents(){return this.router.events.subscribe(t=>{t instanceof ct&&(t.position?"top"===this.options.scrollPositionRestoration?this.viewportScroller.scrollToPosition([0,0]):"enabled"===this.options.scrollPositionRestoration&&this.viewportScroller.scrollToPosition(t.position):t.anchor&&"enabled"===this.options.anchorScrolling?this.viewportScroller.scrollToAnchor(t.anchor):"disabled"!==this.options.scrollPositionRestoration&&this.viewportScroller.scrollToPosition([0,0]))})}scheduleScrollEvent(t,e){this.router.triggerEvent(new ct(t,"popstate"===this.lastSource?this.store[this.restoredId]:null,e))}ngOnDestroy(){this.routerEventsSubscription&&this.routerEventsSubscription.unsubscribe(),this.scrollEventsSubscription&&this.scrollEventsSubscription.unsubscribe()}}return t.\u0275fac=function(e){return new(e||t)(s.ac(yn),s.ac(r.v),s.ac(void 0))},t.\u0275prov=s.Ib({token:t,factory:t.\u0275fac}),t})();const An=new s.s("ROUTER_CONFIGURATION"),Tn=new s.s("ROUTER_FORROOT_GUARD"),jn=[r.j,{provide:Mt,useClass:Pt},{provide:yn,useFactory:function(t,e,n,s,i,o,a,c={},l,u){const h=new yn(null,t,e,n,s,i,o,Ct(a));if(l&&(h.urlHandlingStrategy=l),u&&(h.routeReuseStrategy=u),c.errorHandler&&(h.errorHandler=c.errorHandler),c.malformedUriErrorHandler&&(h.malformedUriErrorHandler=c.malformedUriErrorHandler),c.enableTracing){const t=Object(r.E)();h.events.subscribe(e=>{t.logGroup("Router Event: "+e.constructor.name),t.log(e.toString()),t.log(e),t.logGroupEnd()})}return c.onSameUrlNavigation&&(h.onSameUrlNavigation=c.onSameUrlNavigation),c.paramsInheritanceStrategy&&(h.paramsInheritanceStrategy=c.paramsInheritanceStrategy),c.urlUpdateStrategy&&(h.urlUpdateStrategy=c.urlUpdateStrategy),c.relativeLinkResolution&&(h.relativeLinkResolution=c.relativeLinkResolution),h},deps:[Mt,fn,r.j,s.t,s.y,s.j,un,An,[class{},new s.C],[class{},new s.C]]},fn,{provide:se,useFactory:function(t){return t.routerState.root},deps:[yn]},{provide:s.y,useClass:s.L},xn,On,class{preload(t,e){return e().pipe(Object(T.a)(()=>Object(i.a)(null)))}},{provide:An,useValue:{enableTracing:!1}}];function Fn(){return new s.A("Router",yn)}let In=(()=>{class t{constructor(t,e){}static forRoot(e,n){return{ngModule:t,providers:[jn,Nn(e),{provide:Tn,useFactory:Pn,deps:[[yn,new s.C,new s.K]]},{provide:An,useValue:n||{}},{provide:r.k,useFactory:Mn,deps:[r.s,[new s.r(r.a),new s.C],An]},{provide:kn,useFactory:Rn,deps:[yn,r.v,An]},{provide:Sn,useExisting:n&&n.preloadingStrategy?n.preloadingStrategy:On},{provide:s.A,multi:!0,useFactory:Fn},[Vn,{provide:s.d,multi:!0,useFactory:Bn,deps:[Vn]},{provide:Ln,useFactory:Hn,deps:[Vn]},{provide:s.b,multi:!0,useExisting:Ln}]]}}static forChild(e){return{ngModule:t,providers:[Nn(e)]}}}return t.\u0275mod=s.Kb({type:t}),t.\u0275inj=s.Jb({factory:function(e){return new(e||t)(s.ac(Tn,8),s.ac(yn,8))}}),t})();function Rn(t,e,n){return n.scrollOffset&&e.setOffset(n.scrollOffset),new kn(t,e,n)}function Mn(t,e,n={}){return n.useHash?new r.g(t,e):new r.r(t,e)}function Pn(t){if(t)throw new Error("RouterModule.forRoot() called twice. Lazy loaded modules should use RouterModule.forChild() instead.");return"guarded"}function Nn(t){return[{provide:s.a,multi:!0,useValue:t},{provide:un,multi:!0,useValue:t}]}let Vn=(()=>{class t{constructor(t){this.injector=t,this.initNavigation=!1,this.resultOfPreactivationDone=new f.a}appInitializer(){return this.injector.get(r.i,Promise.resolve(null)).then(()=>{let t=null;const e=new Promise(e=>t=e),n=this.injector.get(yn),r=this.injector.get(An);if(this.isLegacyDisabled(r)||this.isLegacyEnabled(r))t(!0);else if("disabled"===r.initialNavigation)n.setUpLocationChangeListener(),t(!0);else{if("enabled"!==r.initialNavigation)throw new Error(`Invalid initialNavigation options: '${r.initialNavigation}'`);n.hooks.afterPreactivation=()=>this.initNavigation?Object(i.a)(null):(this.initNavigation=!0,t(!0),this.resultOfPreactivationDone),n.initialNavigation()}return e})}bootstrapListener(t){const e=this.injector.get(An),n=this.injector.get(xn),r=this.injector.get(kn),i=this.injector.get(yn),o=this.injector.get(s.g);t===o.components[0]&&(this.isLegacyEnabled(e)?i.initialNavigation():this.isLegacyDisabled(e)&&i.setUpLocationChangeListener(),n.setUpPreloading(),r.init(),i.resetRootComponentType(o.componentTypes[0]),this.resultOfPreactivationDone.next(null),this.resultOfPreactivationDone.complete())}isLegacyEnabled(t){return"legacy_enabled"===t.initialNavigation||!0===t.initialNavigation||void 0===t.initialNavigation}isLegacyDisabled(t){return"legacy_disabled"===t.initialNavigation||!1===t.initialNavigation}}return t.\u0275fac=function(e){return new(e||t)(s.ac(s.t))},t.\u0275prov=s.Ib({token:t,factory:t.\u0275fac}),t})();function Bn(t){return t.appInitializer.bind(t)}function Hn(t){return t.bootstrapListener.bind(t)}const Ln=new s.s("Router Initializer")},uc9y:function(t,e,n){var r,s,i;!function(o){if("object"==typeof t.exports){var a=o(0,e);void 0!==a&&(t.exports=a)}else s=[n,e],void 0===(i="function"==typeof(r=o)?r.apply(e,s):r)||(t.exports=i)}(function(t,e){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var n=void 0;e.default=["da",[["a","p"],["AM","PM"],n],[["AM","PM"],n,n],[["S","M","T","O","T","F","L"],["s\xf8n.","man.","tir.","ons.","tor.","fre.","l\xf8r."],["s\xf8ndag","mandag","tirsdag","onsdag","torsdag","fredag","l\xf8rdag"],["s\xf8","ma","ti","on","to","fr","l\xf8"]],[["S","M","T","O","T","F","L"],["s\xf8n","man","tir","ons","tor","fre","l\xf8r"],["s\xf8ndag","mandag","tirsdag","onsdag","torsdag","fredag","l\xf8rdag"],["s\xf8","ma","ti","on","to","fr","l\xf8"]],[["J","F","M","A","M","J","J","A","S","O","N","D"],["jan.","feb.","mar.","apr.","maj","jun.","jul.","aug.","sep.","okt.","nov.","dec."],["januar","februar","marts","april","maj","juni","juli","august","september","oktober","november","december"]],n,[["fKr","eKr"],["f.Kr.","e.Kr."],n],1,[6,0],["dd.MM.y","d. MMM y","d. MMMM y","EEEE 'den' d. MMMM y"],["HH.mm","HH.mm.ss","HH.mm.ss z","HH.mm.ss zzzz"],["{1} {0}",n,"{1} 'kl'. {0}",n],[",",".",";","%","+","-","E","\xd7","\u2030","\u221e","NaN","."],["#,##0.###","#,##0\xa0%","#,##0.00\xa0\xa4","#E0"],"DKK","kr.","dansk krone",{AUD:["AU$","$"],DKK:["kr."],ISK:[n,"kr."],JPY:["JP\xa5","\xa5"],NOK:[n,"kr."],RON:[n,"L"],SEK:[n,"kr."],THB:["\u0e3f"],TWD:["NT$"],USD:["US$","$"]},"ltr",function(t){var e=Math.floor(Math.abs(t)),n=parseInt(t.toString().replace(/^[^.]*\.?|0+$/g,""),10)||0;return 1===t||0!==n&&(0===e||1===e)?1:5}]})},vkgz:function(t,e,n){"use strict";n.d(e,"a",function(){return o});var r=n("7o/Q"),s=n("KqfI"),i=n("n6bG");function o(t,e,n){return function(r){return r.lift(new a(t,e,n))}}class a{constructor(t,e,n){this.nextOrObserver=t,this.error=e,this.complete=n}call(t,e){return e.subscribe(new c(t,this.nextOrObserver,this.error,this.complete))}}class c extends r.a{constructor(t,e,n,r){super(t),this._tapNext=s.a,this._tapError=s.a,this._tapComplete=s.a,this._tapError=n||s.a,this._tapComplete=r||s.a,Object(i.a)(e)?(this._context=this,this._tapNext=e):e&&(this._context=e,this._tapNext=e.next||s.a,this._tapError=e.error||s.a,this._tapComplete=e.complete||s.a)}_next(t){try{this._tapNext.call(this._context,t)}catch(e){return void this.destination.error(e)}this.destination.next(t)}_error(t){try{this._tapError.call(this._context,t)}catch(t){return void this.destination.error(t)}this.destination.error(t)}_complete(){try{this._tapComplete.call(this._context)}catch(t){return void this.destination.error(t)}return this.destination.complete()}}},w1tV:function(t,e,n){"use strict";n.d(e,"a",function(){return p});var r=n("XNiG"),s=n("HDdC"),i=n("7o/Q"),o=n("quSY");function a(){return function(t){return t.lift(new c(t))}}class c{constructor(t){this.connectable=t}call(t,e){const{connectable:n}=this;n._refCount++;const r=new l(t,n),s=e.subscribe(r);return r.closed||(r.connection=n.connect()),s}}class l extends i.a{constructor(t,e){super(t),this.connectable=e}_unsubscribe(){const{connectable:t}=this;if(!t)return void(this.connection=null);this.connectable=null;const e=t._refCount;if(e<=0)return void(this.connection=null);if(t._refCount=e-1,e>1)return void(this.connection=null);const{connection:n}=this,r=t._connection;this.connection=null,!r||n&&r!==n||r.unsubscribe()}}class u extends s.a{constructor(t,e){super(),this.source=t,this.subjectFactory=e,this._refCount=0,this._isComplete=!1}_subscribe(t){return this.getSubject().subscribe(t)}getSubject(){const t=this._subject;return t&&!t.isStopped||(this._subject=this.subjectFactory()),this._subject}connect(){let t=this._connection;return t||(this._isComplete=!1,t=this._connection=new o.a,t.add(this.source.subscribe(new d(this.getSubject(),this))),t.closed&&(this._connection=null,t=o.a.EMPTY)),t}refCount(){return a()(this)}}const h=(()=>{const t=u.prototype;return{operator:{value:null},_refCount:{value:0,writable:!0},_subject:{value:null,writable:!0},_connection:{value:null,writable:!0},_subscribe:{value:t._subscribe},_isComplete:{value:t._isComplete,writable:!0},getSubject:{value:t.getSubject},connect:{value:t.connect},refCount:{value:t.refCount}}})();class d extends r.b{constructor(t,e){super(t),this.connectable=e}_error(t){this._unsubscribe(),super._error(t)}_complete(){this.connectable._isComplete=!0,this._unsubscribe(),super._complete()}_unsubscribe(){const t=this.connectable;if(t){this.connectable=null;const e=t._connection;t._refCount=0,t._subject=null,t._connection=null,e&&e.unsubscribe()}}}function f(){return new r.a}function p(){return t=>{return a()((e=f,function(t){let n;n="function"==typeof e?e:function(){return e};const r=Object.create(t,h);return r.source=t,r.subjectFactory=n,r})(t));var e}}},yCtX:function(t,e,n){"use strict";n.d(e,"a",function(){return o});var r=n("HDdC"),s=n("ngJS"),i=n("jZKg");function o(t,e){return e?Object(i.a)(t,e):new r.a(Object(s.a)(t))}},"z+Ro":function(t,e,n){"use strict";function r(t){return t&&"function"==typeof t.schedule}n.d(e,"a",function(){return r})},z6cu:function(t,e,n){"use strict";n.d(e,"a",function(){return s});var r=n("HDdC");function s(t,e){return new r.a(e?n=>e.schedule(i,0,{error:t,subscriber:n}):e=>e.error(t))}function i({error:t,subscriber:e}){e.error(t)}},zUnb:function(t,e,n){"use strict";n.r(e);var r=n("fXoL"),s=n("AytR"),i=n("ofXK"),o=n("tk/3"),a=n("uc9y"),c=n.n(a),l=n("3Pt+"),u=n("jhN1"),h=n("R0Ic");function d(){return"undefined"!=typeof process&&"[object process]"==={}.toString.call(process)}function f(t){switch(t.length){case 0:return new h.d;case 1:return t[0];default:return new h.k(t)}}function p(t,e,n,r,s={},i={}){const o=[],a=[];let c=-1,l=null;if(r.forEach(t=>{const n=t.offset,r=n==c,u=r&&l||{};Object.keys(t).forEach(n=>{let r=n,a=t[n];if("offset"!==n)switch(r=e.normalizePropertyName(r,o),a){case h.l:a=s[n];break;case h.a:a=i[n];break;default:a=e.normalizeStyleValue(n,r,a,o)}u[r]=a}),r||a.push(u),l=u,c=n}),o.length){const t="\n - ";throw new Error(`Unable to animate due to the following errors:${t}${o.join(t)}`)}return a}function m(t,e,n,r){switch(e){case"start":t.onStart(()=>r(n&&g(n,"start",t)));break;case"done":t.onDone(()=>r(n&&g(n,"done",t)));break;case"destroy":t.onDestroy(()=>r(n&&g(n,"destroy",t)))}}function g(t,e,n){const r=n.totalTime,s=b(t.element,t.triggerName,t.fromState,t.toState,e||t.phaseName,null==r?t.totalTime:r,!!n.disabled),i=t._data;return null!=i&&(s._data=i),s}function b(t,e,n,r,s="",i=0,o){return{element:t,triggerName:e,fromState:n,toState:r,phaseName:s,totalTime:i,disabled:!!o}}function y(t,e,n){let r;return t instanceof Map?(r=t.get(e),r||t.set(e,r=n)):(r=t[e],r||(r=t[e]=n)),r}function _(t){const e=t.indexOf(":");return[t.substring(1,e),t.substr(e+1)]}let v=(t,e)=>!1,w=(t,e)=>!1,C=(t,e,n)=>[];const D=d();(D||"undefined"!=typeof Element)&&(v=(t,e)=>t.contains(e),w=(()=>{if(D||Element.prototype.matches)return(t,e)=>t.matches(e);{const t=Element.prototype,e=t.matchesSelector||t.mozMatchesSelector||t.msMatchesSelector||t.oMatchesSelector||t.webkitMatchesSelector;return e?(t,n)=>e.apply(t,[n]):w}})(),C=(t,e,n)=>{let r=[];if(n)r.push(...t.querySelectorAll(e));else{const n=t.querySelector(e);n&&r.push(n)}return r});let E=null,S=!1;function O(t){E||(E=("undefined"!=typeof document?document.body:null)||{},S=!!E.style&&"WebkitAppearance"in E.style);let e=!0;return E.style&&!function(t){return"ebkit"==t.substring(1,6)}(t)&&(e=t in E.style,!e&&S)&&(e="Webkit"+t.charAt(0).toUpperCase()+t.substr(1)in E.style),e}const x=w,k=v,A=C;function T(t){const e={};return Object.keys(t).forEach(n=>{const r=n.replace(/([a-z])([A-Z])/g,"$1-$2");e[r]=t[n]}),e}let j=(()=>{class t{validateStyleProperty(t){return O(t)}matchesElement(t,e){return x(t,e)}containsElement(t,e){return k(t,e)}query(t,e,n){return A(t,e,n)}computeStyle(t,e,n){return n||""}animate(t,e,n,r,s,i=[],o){return new h.d(n,r)}}return t.\u0275fac=function(e){return new(e||t)},t.\u0275prov=r.Ib({token:t,factory:t.\u0275fac}),t})(),F=(()=>{class t{}return t.NOOP=new j,t})();const I="ng-enter",R="ng-leave",M="ng-trigger",P=".ng-trigger",N="ng-animating",V=".ng-animating";function B(t){if("number"==typeof t)return t;const e=t.match(/^(-?[\.\d]+)(m?s)/);return!e||e.length<2?0:H(parseFloat(e[1]),e[2])}function H(t,e){switch(e){case"s":return 1e3*t;default:return t}}function L(t,e,n){return t.hasOwnProperty("duration")?t:function(t,e,n){let r,s=0,i="";if("string"==typeof t){const n=t.match(/^(-?[\.\d]+)(m?s)(?:\s+(-?[\.\d]+)(m?s))?(?:\s+([-a-z]+(?:\(.+?\))?))?$/i);if(null===n)return e.push(`The provided timing value "${t}" is invalid.`),{duration:0,delay:0,easing:""};r=H(parseFloat(n[1]),n[2]);const o=n[3];null!=o&&(s=H(parseFloat(o),n[4]));const a=n[5];a&&(i=a)}else r=t;if(!n){let n=!1,i=e.length;r<0&&(e.push("Duration values below 0 are not allowed for this animation step."),n=!0),s<0&&(e.push("Delay values below 0 are not allowed for this animation step."),n=!0),n&&e.splice(i,0,`The provided timing value "${t}" is invalid.`)}return{duration:r,delay:s,easing:i}}(t,e,n)}function U(t,e={}){return Object.keys(t).forEach(n=>{e[n]=t[n]}),e}function z(t,e,n={}){if(e)for(let r in t)n[r]=t[r];else U(t,n);return n}function $(t,e,n){return n?e+":"+n+";":""}function q(t){let e="";for(let n=0;n<t.style.length;n++){const r=t.style.item(n);e+=$(0,r,t.style.getPropertyValue(r))}for(const n in t.style)t.style.hasOwnProperty(n)&&!n.startsWith("_")&&(e+=$(0,n.replace(/([a-z])([A-Z])/g,"$1-$2").toLowerCase(),t.style[n]));t.setAttribute("style",e)}function W(t,e,n){t.style&&(Object.keys(e).forEach(r=>{const s=tt(r);n&&!n.hasOwnProperty(r)&&(n[r]=t.style[s]),t.style[s]=e[r]}),d()&&q(t))}function G(t,e){t.style&&(Object.keys(e).forEach(e=>{const n=tt(e);t.style[n]=""}),d()&&q(t))}function K(t){return Array.isArray(t)?1==t.length?t[0]:Object(h.f)(t):t}const Q=new RegExp("{{\\s*(.+?)\\s*}}","g");function Z(t){let e=[];if("string"==typeof t){let n;for(;n=Q.exec(t);)e.push(n[1]);Q.lastIndex=0}return e}function J(t,e,n){const r=t.toString(),s=r.replace(Q,(t,r)=>{let s=e[r];return e.hasOwnProperty(r)||(n.push("Please provide a value for the animation param "+r),s=""),s.toString()});return s==r?t:s}function Y(t){const e=[];let n=t.next();for(;!n.done;)e.push(n.value),n=t.next();return e}const X=/-+([a-z0-9])/g;function tt(t){return t.replace(X,(...t)=>t[1].toUpperCase())}function et(t,e){return 0===t||0===e}function nt(t,e,n){const r=Object.keys(n);if(r.length&&e.length){let i=e[0],o=[];if(r.forEach(t=>{i.hasOwnProperty(t)||o.push(t),i[t]=n[t]}),o.length)for(var s=1;s<e.length;s++){let n=e[s];o.forEach(function(e){n[e]=st(t,e)})}}return e}function rt(t,e,n){switch(e.type){case 7:return t.visitTrigger(e,n);case 0:return t.visitState(e,n);case 1:return t.visitTransition(e,n);case 2:return t.visitSequence(e,n);case 3:return t.visitGroup(e,n);case 4:return t.visitAnimate(e,n);case 5:return t.visitKeyframes(e,n);case 6:return t.visitStyle(e,n);case 8:return t.visitReference(e,n);case 9:return t.visitAnimateChild(e,n);case 10:return t.visitAnimateRef(e,n);case 11:return t.visitQuery(e,n);case 12:return t.visitStagger(e,n);default:throw new Error("Unable to resolve animation metadata node #"+e.type)}}function st(t,e){return window.getComputedStyle(t)[e]}const it="*";function ot(t,e){const n=[];return"string"==typeof t?t.split(/\s*,\s*/).forEach(t=>function(t,e,n){if(":"==t[0]){const r=function(t,e){switch(t){case":enter":return"void => *";case":leave":return"* => void";case":increment":return(t,e)=>parseFloat(e)>parseFloat(t);case":decrement":return(t,e)=>parseFloat(e)<parseFloat(t);default:return e.push(`The transition alias value "${t}" is not supported`),"* => *"}}(t,n);if("function"==typeof r)return void e.push(r);t=r}const r=t.match(/^(\*|[-\w]+)\s*(<?[=-]>)\s*(\*|[-\w]+)$/);if(null==r||r.length<4)return n.push(`The provided transition expression "${t}" is not supported`),e;const s=r[1],i=r[2],o=r[3];e.push(lt(s,o)),"<"!=i[0]||s==it&&o==it||e.push(lt(o,s))}(t,n,e)):n.push(t),n}const at=new Set(["true","1"]),ct=new Set(["false","0"]);function lt(t,e){const n=at.has(t)||ct.has(t),r=at.has(e)||ct.has(e);return(s,i)=>{let o=t==it||t==s,a=e==it||e==i;return!o&&n&&"boolean"==typeof s&&(o=s?at.has(t):ct.has(t)),!a&&r&&"boolean"==typeof i&&(a=i?at.has(e):ct.has(e)),o&&a}}const ut=new RegExp("s*:selfs*,?","g");function ht(t,e,n){return new dt(t).build(e,n)}class dt{constructor(t){this._driver=t}build(t,e){const n=new ft(e);return this._resetContextStyleTimingState(n),rt(this,K(t),n)}_resetContextStyleTimingState(t){t.currentQuerySelector="",t.collectedStyles={},t.collectedStyles[""]={},t.currentTime=0}visitTrigger(t,e){let n=e.queryCount=0,r=e.depCount=0;const s=[],i=[];return"@"==t.name.charAt(0)&&e.errors.push("animation triggers cannot be prefixed with an `@` sign (e.g. trigger('@foo', [...]))"),t.definitions.forEach(t=>{if(this._resetContextStyleTimingState(e),0==t.type){const n=t,r=n.name;r.toString().split(/\s*,\s*/).forEach(t=>{n.name=t,s.push(this.visitState(n,e))}),n.name=r}else if(1==t.type){const s=this.visitTransition(t,e);n+=s.queryCount,r+=s.depCount,i.push(s)}else e.errors.push("only state() and transition() definitions can sit inside of a trigger()")}),{type:7,name:t.name,states:s,transitions:i,queryCount:n,depCount:r,options:null}}visitState(t,e){const n=this.visitStyle(t.styles,e),r=t.options&&t.options.params||null;if(n.containsDynamicStyles){const s=new Set,i=r||{};if(n.styles.forEach(t=>{if(pt(t)){const e=t;Object.keys(e).forEach(t=>{Z(e[t]).forEach(t=>{i.hasOwnProperty(t)||s.add(t)})})}}),s.size){const n=Y(s.values());e.errors.push(`state("${t.name}", ...) must define default values for all the following style substitutions: ${n.join(", ")}`)}}return{type:0,name:t.name,style:n,options:r?{params:r}:null}}visitTransition(t,e){e.queryCount=0,e.depCount=0;const n=rt(this,K(t.animation),e);return{type:1,matchers:ot(t.expr,e.errors),animation:n,queryCount:e.queryCount,depCount:e.depCount,options:mt(t.options)}}visitSequence(t,e){return{type:2,steps:t.steps.map(t=>rt(this,t,e)),options:mt(t.options)}}visitGroup(t,e){const n=e.currentTime;let r=0;const s=t.steps.map(t=>{e.currentTime=n;const s=rt(this,t,e);return r=Math.max(r,e.currentTime),s});return e.currentTime=r,{type:3,steps:s,options:mt(t.options)}}visitAnimate(t,e){const n=function(t,e){let n=null;if(t.hasOwnProperty("duration"))n=t;else if("number"==typeof t)return gt(L(t,e).duration,0,"");const r=t;if(r.split(/\s+/).some(t=>"{"==t.charAt(0)&&"{"==t.charAt(1))){const t=gt(0,0,"");return t.dynamic=!0,t.strValue=r,t}return n=n||L(r,e),gt(n.duration,n.delay,n.easing)}(t.timings,e.errors);let r;e.currentAnimateTimings=n;let s=t.styles?t.styles:Object(h.h)({});if(5==s.type)r=this.visitKeyframes(s,e);else{let s=t.styles,i=!1;if(!s){i=!0;const t={};n.easing&&(t.easing=n.easing),s=Object(h.h)(t)}e.currentTime+=n.duration+n.delay;const o=this.visitStyle(s,e);o.isEmptyStep=i,r=o}return e.currentAnimateTimings=null,{type:4,timings:n,style:r,options:null}}visitStyle(t,e){const n=this._makeStyleAst(t,e);return this._validateStyleAst(n,e),n}_makeStyleAst(t,e){const n=[];Array.isArray(t.styles)?t.styles.forEach(t=>{"string"==typeof t?t==h.a?n.push(t):e.errors.push(`The provided style string value ${t} is not allowed.`):n.push(t)}):n.push(t.styles);let r=!1,s=null;return n.forEach(t=>{if(pt(t)){const e=t,n=e.easing;if(n&&(s=n,delete e.easing),!r)for(let t in e)if(e[t].toString().indexOf("{{")>=0){r=!0;break}}}),{type:6,styles:n,easing:s,offset:t.offset,containsDynamicStyles:r,options:null}}_validateStyleAst(t,e){const n=e.currentAnimateTimings;let r=e.currentTime,s=e.currentTime;n&&s>0&&(s-=n.duration+n.delay),t.styles.forEach(t=>{"string"!=typeof t&&Object.keys(t).forEach(n=>{if(!this._driver.validateStyleProperty(n))return void e.errors.push(`The provided animation property "${n}" is not a supported CSS property for animations`);const i=e.collectedStyles[e.currentQuerySelector],o=i[n];let a=!0;o&&(s!=r&&s>=o.startTime&&r<=o.endTime&&(e.errors.push(`The CSS property "${n}" that exists between the times of "${o.startTime}ms" and "${o.endTime}ms" is also being animated in a parallel animation between the times of "${s}ms" and "${r}ms"`),a=!1),s=o.startTime),a&&(i[n]={startTime:s,endTime:r}),e.options&&function(t,e,n){const r=e.params||{},s=Z(t);s.length&&s.forEach(t=>{r.hasOwnProperty(t)||n.push(`Unable to resolve the local animation param ${t} in the given list of values`)})}(t[n],e.options,e.errors)})})}visitKeyframes(t,e){const n={type:5,styles:[],options:null};if(!e.currentAnimateTimings)return e.errors.push("keyframes() must be placed inside of a call to animate()"),n;let r=0;const s=[];let i=!1,o=!1,a=0;const c=t.steps.map(t=>{const n=this._makeStyleAst(t,e);let c=null!=n.offset?n.offset:function(t){if("string"==typeof t)return null;let e=null;if(Array.isArray(t))t.forEach(t=>{if(pt(t)&&t.hasOwnProperty("offset")){const n=t;e=parseFloat(n.offset),delete n.offset}});else if(pt(t)&&t.hasOwnProperty("offset")){const n=t;e=parseFloat(n.offset),delete n.offset}return e}(n.styles),l=0;return null!=c&&(r++,l=n.offset=c),o=o||l<0||l>1,i=i||l<a,a=l,s.push(l),n});o&&e.errors.push("Please ensure that all keyframe offsets are between 0 and 1"),i&&e.errors.push("Please ensure that all keyframe offsets are in order");const l=t.steps.length;let u=0;r>0&&r<l?e.errors.push("Not all style() steps within the declared keyframes() contain offsets"):0==r&&(u=1/(l-1));const h=l-1,d=e.currentTime,f=e.currentAnimateTimings,p=f.duration;return c.forEach((t,r)=>{const i=u>0?r==h?1:u*r:s[r],o=i*p;e.currentTime=d+f.delay+o,f.duration=o,this._validateStyleAst(t,e),t.offset=i,n.styles.push(t)}),n}visitReference(t,e){return{type:8,animation:rt(this,K(t.animation),e),options:mt(t.options)}}visitAnimateChild(t,e){return e.depCount++,{type:9,options:mt(t.options)}}visitAnimateRef(t,e){return{type:10,animation:this.visitReference(t.animation,e),options:mt(t.options)}}visitQuery(t,e){const n=e.currentQuerySelector,r=t.options||{};e.queryCount++,e.currentQuery=t;const[s,i]=function(t){const e=!!t.split(/\s*,\s*/).find(t=>":self"==t);return e&&(t=t.replace(ut,"")),[t=t.replace(/@\*/g,P).replace(/@\w+/g,t=>".ng-trigger-"+t.substr(1)).replace(/:animating/g,V),e]}(t.selector);e.currentQuerySelector=n.length?n+" "+s:s,y(e.collectedStyles,e.currentQuerySelector,{});const o=rt(this,K(t.animation),e);return e.currentQuery=null,e.currentQuerySelector=n,{type:11,selector:s,limit:r.limit||0,optional:!!r.optional,includeSelf:i,animation:o,originalSelector:t.selector,options:mt(t.options)}}visitStagger(t,e){e.currentQuery||e.errors.push("stagger() can only be used inside of query()");const n="full"===t.timings?{duration:0,delay:0,easing:"full"}:L(t.timings,e.errors,!0);return{type:12,animation:rt(this,K(t.animation),e),timings:n,options:null}}}class ft{constructor(t){this.errors=t,this.queryCount=0,this.depCount=0,this.currentTransition=null,this.currentQuery=null,this.currentQuerySelector=null,this.currentAnimateTimings=null,this.currentTime=0,this.collectedStyles={},this.options=null}}function pt(t){return!Array.isArray(t)&&"object"==typeof t}function mt(t){var e;return t?(t=U(t)).params&&(t.params=(e=t.params)?U(e):null):t={},t}function gt(t,e,n){return{duration:t,delay:e,easing:n}}function bt(t,e,n,r,s,i,o=null,a=!1){return{type:1,element:t,keyframes:e,preStyleProps:n,postStyleProps:r,duration:s,delay:i,totalTime:s+i,easing:o,subTimeline:a}}class yt{constructor(){this._map=new Map}consume(t){let e=this._map.get(t);return e?this._map.delete(t):e=[],e}append(t,e){let n=this._map.get(t);n||this._map.set(t,n=[]),n.push(...e)}has(t){return this._map.has(t)}clear(){this._map.clear()}}const _t=new RegExp(":enter","g"),vt=new RegExp(":leave","g");function wt(t,e,n,r,s,i={},o={},a,c,l=[]){return(new Ct).buildKeyframes(t,e,n,r,s,i,o,a,c,l)}class Ct{buildKeyframes(t,e,n,r,s,i,o,a,c,l=[]){c=c||new yt;const u=new Et(t,e,c,r,s,l,[]);u.options=a,u.currentTimeline.setStyles([i],null,u.errors,a),rt(this,n,u);const h=u.timelines.filter(t=>t.containsAnimation());if(h.length&&Object.keys(o).length){const t=h[h.length-1];t.allowOnlyTimelineStyles()||t.setStyles([o],null,u.errors,a)}return h.length?h.map(t=>t.buildKeyframes()):[bt(e,[],[],[],0,0,"",!1)]}visitTrigger(t,e){}visitState(t,e){}visitTransition(t,e){}visitAnimateChild(t,e){const n=e.subInstructions.consume(e.element);if(n){const r=e.createSubContext(t.options),s=e.currentTimeline.currentTime,i=this._visitSubInstructions(n,r,r.options);s!=i&&e.transformIntoNewTimeline(i)}e.previousNode=t}visitAnimateRef(t,e){const n=e.createSubContext(t.options);n.transformIntoNewTimeline(),this.visitReference(t.animation,n),e.transformIntoNewTimeline(n.currentTimeline.currentTime),e.previousNode=t}_visitSubInstructions(t,e,n){let r=e.currentTimeline.currentTime;const s=null!=n.duration?B(n.duration):null,i=null!=n.delay?B(n.delay):null;return 0!==s&&t.forEach(t=>{const n=e.appendInstructionToTimeline(t,s,i);r=Math.max(r,n.duration+n.delay)}),r}visitReference(t,e){e.updateOptions(t.options,!0),rt(this,t.animation,e),e.previousNode=t}visitSequence(t,e){const n=e.subContextCount;let r=e;const s=t.options;if(s&&(s.params||s.delay)&&(r=e.createSubContext(s),r.transformIntoNewTimeline(),null!=s.delay)){6==r.previousNode.type&&(r.currentTimeline.snapshotCurrentStyles(),r.previousNode=Dt);const t=B(s.delay);r.delayNextStep(t)}t.steps.length&&(t.steps.forEach(t=>rt(this,t,r)),r.currentTimeline.applyStylesToKeyframe(),r.subContextCount>n&&r.transformIntoNewTimeline()),e.previousNode=t}visitGroup(t,e){const n=[];let r=e.currentTimeline.currentTime;const s=t.options&&t.options.delay?B(t.options.delay):0;t.steps.forEach(i=>{const o=e.createSubContext(t.options);s&&o.delayNextStep(s),rt(this,i,o),r=Math.max(r,o.currentTimeline.currentTime),n.push(o.currentTimeline)}),n.forEach(t=>e.currentTimeline.mergeTimelineCollectedStyles(t)),e.transformIntoNewTimeline(r),e.previousNode=t}_visitTiming(t,e){if(t.dynamic){const n=t.strValue;return L(e.params?J(n,e.params,e.errors):n,e.errors)}return{duration:t.duration,delay:t.delay,easing:t.easing}}visitAnimate(t,e){const n=e.currentAnimateTimings=this._visitTiming(t.timings,e),r=e.currentTimeline;n.delay&&(e.incrementTime(n.delay),r.snapshotCurrentStyles());const s=t.style;5==s.type?this.visitKeyframes(s,e):(e.incrementTime(n.duration),this.visitStyle(s,e),r.applyStylesToKeyframe()),e.currentAnimateTimings=null,e.previousNode=t}visitStyle(t,e){const n=e.currentTimeline,r=e.currentAnimateTimings;!r&&n.getCurrentStyleProperties().length&&n.forwardFrame();const s=r&&r.easing||t.easing;t.isEmptyStep?n.applyEmptyStep(s):n.setStyles(t.styles,s,e.errors,e.options),e.previousNode=t}visitKeyframes(t,e){const n=e.currentAnimateTimings,r=e.currentTimeline.duration,s=n.duration,i=e.createSubContext().currentTimeline;i.easing=n.easing,t.styles.forEach(t=>{i.forwardTime((t.offset||0)*s),i.setStyles(t.styles,t.easing,e.errors,e.options),i.applyStylesToKeyframe()}),e.currentTimeline.mergeTimelineCollectedStyles(i),e.transformIntoNewTimeline(r+s),e.previousNode=t}visitQuery(t,e){const n=e.currentTimeline.currentTime,r=t.options||{},s=r.delay?B(r.delay):0;s&&(6===e.previousNode.type||0==n&&e.currentTimeline.getCurrentStyleProperties().length)&&(e.currentTimeline.snapshotCurrentStyles(),e.previousNode=Dt);let i=n;const o=e.invokeQuery(t.selector,t.originalSelector,t.limit,t.includeSelf,!!r.optional,e.errors);e.currentQueryTotal=o.length;let a=null;o.forEach((n,r)=>{e.currentQueryIndex=r;const o=e.createSubContext(t.options,n);s&&o.delayNextStep(s),n===e.element&&(a=o.currentTimeline),rt(this,t.animation,o),o.currentTimeline.applyStylesToKeyframe(),i=Math.max(i,o.currentTimeline.currentTime)}),e.currentQueryIndex=0,e.currentQueryTotal=0,e.transformIntoNewTimeline(i),a&&(e.currentTimeline.mergeTimelineCollectedStyles(a),e.currentTimeline.snapshotCurrentStyles()),e.previousNode=t}visitStagger(t,e){const n=e.parentContext,r=e.currentTimeline,s=t.timings,i=Math.abs(s.duration),o=i*(e.currentQueryTotal-1);let a=i*e.currentQueryIndex;switch(s.duration<0?"reverse":s.easing){case"reverse":a=o-a;break;case"full":a=n.currentStaggerTime}const c=e.currentTimeline;a&&c.delayNextStep(a);const l=c.currentTime;rt(this,t.animation,e),e.previousNode=t,n.currentStaggerTime=r.currentTime-l+(r.startTime-n.currentTimeline.startTime)}}const Dt={};class Et{constructor(t,e,n,r,s,i,o,a){this._driver=t,this.element=e,this.subInstructions=n,this._enterClassName=r,this._leaveClassName=s,this.errors=i,this.timelines=o,this.parentContext=null,this.currentAnimateTimings=null,this.previousNode=Dt,this.subContextCount=0,this.options={},this.currentQueryIndex=0,this.currentQueryTotal=0,this.currentStaggerTime=0,this.currentTimeline=a||new St(this._driver,e,0),o.push(this.currentTimeline)}get params(){return this.options.params}updateOptions(t,e){if(!t)return;const n=t;let r=this.options;null!=n.duration&&(r.duration=B(n.duration)),null!=n.delay&&(r.delay=B(n.delay));const s=n.params;if(s){let t=r.params;t||(t=this.options.params={}),Object.keys(s).forEach(n=>{e&&t.hasOwnProperty(n)||(t[n]=J(s[n],t,this.errors))})}}_copyOptions(){const t={};if(this.options){const e=this.options.params;if(e){const n=t.params={};Object.keys(e).forEach(t=>{n[t]=e[t]})}}return t}createSubContext(t=null,e,n){const r=e||this.element,s=new Et(this._driver,r,this.subInstructions,this._enterClassName,this._leaveClassName,this.errors,this.timelines,this.currentTimeline.fork(r,n||0));return s.previousNode=this.previousNode,s.currentAnimateTimings=this.currentAnimateTimings,s.options=this._copyOptions(),s.updateOptions(t),s.currentQueryIndex=this.currentQueryIndex,s.currentQueryTotal=this.currentQueryTotal,s.parentContext=this,this.subContextCount++,s}transformIntoNewTimeline(t){return this.previousNode=Dt,this.currentTimeline=this.currentTimeline.fork(this.element,t),this.timelines.push(this.currentTimeline),this.currentTimeline}appendInstructionToTimeline(t,e,n){const r={duration:null!=e?e:t.duration,delay:this.currentTimeline.currentTime+(null!=n?n:0)+t.delay,easing:""},s=new Ot(this._driver,t.element,t.keyframes,t.preStyleProps,t.postStyleProps,r,t.stretchStartingKeyframe);return this.timelines.push(s),r}incrementTime(t){this.currentTimeline.forwardTime(this.currentTimeline.duration+t)}delayNextStep(t){t>0&&this.currentTimeline.delayNextStep(t)}invokeQuery(t,e,n,r,s,i){let o=[];if(r&&o.push(this.element),t.length>0){t=(t=t.replace(_t,"."+this._enterClassName)).replace(vt,"."+this._leaveClassName);let e=this._driver.query(this.element,t,1!=n);0!==n&&(e=n<0?e.slice(e.length+n,e.length):e.slice(0,n)),o.push(...e)}return s||0!=o.length||i.push(`\`query("${e}")\` returned zero elements. (Use \`query("${e}", { optional: true })\` if you wish to allow this.)`),o}}class St{constructor(t,e,n,r){this._driver=t,this.element=e,this.startTime=n,this._elementTimelineStylesLookup=r,this.duration=0,this._previousKeyframe={},this._currentKeyframe={},this._keyframes=new Map,this._styleSummary={},this._pendingStyles={},this._backFill={},this._currentEmptyStepKeyframe=null,this._elementTimelineStylesLookup||(this._elementTimelineStylesLookup=new Map),this._localTimelineStyles=Object.create(this._backFill,{}),this._globalTimelineStyles=this._elementTimelineStylesLookup.get(e),this._globalTimelineStyles||(this._globalTimelineStyles=this._localTimelineStyles,this._elementTimelineStylesLookup.set(e,this._localTimelineStyles)),this._loadKeyframe()}containsAnimation(){switch(this._keyframes.size){case 0:return!1;case 1:return this.getCurrentStyleProperties().length>0;default:return!0}}getCurrentStyleProperties(){return Object.keys(this._currentKeyframe)}get currentTime(){return this.startTime+this.duration}delayNextStep(t){const e=1==this._keyframes.size&&Object.keys(this._pendingStyles).length;this.duration||e?(this.forwardTime(this.currentTime+t),e&&this.snapshotCurrentStyles()):this.startTime+=t}fork(t,e){return this.applyStylesToKeyframe(),new St(this._driver,t,e||this.currentTime,this._elementTimelineStylesLookup)}_loadKeyframe(){this._currentKeyframe&&(this._previousKeyframe=this._currentKeyframe),this._currentKeyframe=this._keyframes.get(this.duration),this._currentKeyframe||(this._currentKeyframe=Object.create(this._backFill,{}),this._keyframes.set(this.duration,this._currentKeyframe))}forwardFrame(){this.duration+=1,this._loadKeyframe()}forwardTime(t){this.applyStylesToKeyframe(),this.duration=t,this._loadKeyframe()}_updateStyle(t,e){this._localTimelineStyles[t]=e,this._globalTimelineStyles[t]=e,this._styleSummary[t]={time:this.currentTime,value:e}}allowOnlyTimelineStyles(){return this._currentEmptyStepKeyframe!==this._currentKeyframe}applyEmptyStep(t){t&&(this._previousKeyframe.easing=t),Object.keys(this._globalTimelineStyles).forEach(t=>{this._backFill[t]=this._globalTimelineStyles[t]||h.a,this._currentKeyframe[t]=h.a}),this._currentEmptyStepKeyframe=this._currentKeyframe}setStyles(t,e,n,r){e&&(this._previousKeyframe.easing=e);const s=r&&r.params||{},i=function(t,e){const n={};let r;return t.forEach(t=>{"*"===t?(r=r||Object.keys(e),r.forEach(t=>{n[t]=h.a})):z(t,!1,n)}),n}(t,this._globalTimelineStyles);Object.keys(i).forEach(t=>{const e=J(i[t],s,n);this._pendingStyles[t]=e,this._localTimelineStyles.hasOwnProperty(t)||(this._backFill[t]=this._globalTimelineStyles.hasOwnProperty(t)?this._globalTimelineStyles[t]:h.a),this._updateStyle(t,e)})}applyStylesToKeyframe(){const t=this._pendingStyles,e=Object.keys(t);0!=e.length&&(this._pendingStyles={},e.forEach(e=>{this._currentKeyframe[e]=t[e]}),Object.keys(this._localTimelineStyles).forEach(t=>{this._currentKeyframe.hasOwnProperty(t)||(this._currentKeyframe[t]=this._localTimelineStyles[t])}))}snapshotCurrentStyles(){Object.keys(this._localTimelineStyles).forEach(t=>{const e=this._localTimelineStyles[t];this._pendingStyles[t]=e,this._updateStyle(t,e)})}getFinalKeyframe(){return this._keyframes.get(this.duration)}get properties(){const t=[];for(let e in this._currentKeyframe)t.push(e);return t}mergeTimelineCollectedStyles(t){Object.keys(t._styleSummary).forEach(e=>{const n=this._styleSummary[e],r=t._styleSummary[e];(!n||r.time>n.time)&&this._updateStyle(e,r.value)})}buildKeyframes(){this.applyStylesToKeyframe();const t=new Set,e=new Set,n=1===this._keyframes.size&&0===this.duration;let r=[];this._keyframes.forEach((s,i)=>{const o=z(s,!0);Object.keys(o).forEach(n=>{const r=o[n];r==h.l?t.add(n):r==h.a&&e.add(n)}),n||(o.offset=i/this.duration),r.push(o)});const s=t.size?Y(t.values()):[],i=e.size?Y(e.values()):[];if(n){const t=r[0],e=U(t);t.offset=0,e.offset=1,r=[t,e]}return bt(this.element,r,s,i,this.duration,this.startTime,this.easing,!1)}}class Ot extends St{constructor(t,e,n,r,s,i,o=!1){super(t,e,i.delay),this.element=e,this.keyframes=n,this.preStyleProps=r,this.postStyleProps=s,this._stretchStartingKeyframe=o,this.timings={duration:i.duration,delay:i.delay,easing:i.easing}}containsAnimation(){return this.keyframes.length>1}buildKeyframes(){let t=this.keyframes,{delay:e,duration:n,easing:r}=this.timings;if(this._stretchStartingKeyframe&&e){const s=[],i=n+e,o=e/i,a=z(t[0],!1);a.offset=0,s.push(a);const c=z(t[0],!1);c.offset=xt(o),s.push(c);const l=t.length-1;for(let r=1;r<=l;r++){let o=z(t[r],!1);o.offset=xt((e+o.offset*n)/i),s.push(o)}n=i,e=0,r="",t=s}return bt(this.element,t,this.preStyleProps,this.postStyleProps,n,e,r,!0)}}function xt(t,e=3){const n=Math.pow(10,e-1);return Math.round(t*n)/n}class kt{}class At extends kt{normalizePropertyName(t,e){return tt(t)}normalizeStyleValue(t,e,n,r){let s="";const i=n.toString().trim();if(Tt[e]&&0!==n&&"0"!==n)if("number"==typeof n)s="px";else{const e=n.match(/^[+-]?[\d\.]+([a-z]*)$/);e&&0==e[1].length&&r.push(`Please provide a CSS unit value for ${t}:${n}`)}return i+s}}const Tt=(()=>function(t){const e={};return t.forEach(t=>e[t]=!0),e}("width,height,minWidth,minHeight,maxWidth,maxHeight,left,top,bottom,right,fontSize,outlineWidth,outlineOffset,paddingTop,paddingLeft,paddingBottom,paddingRight,marginTop,marginLeft,marginBottom,marginRight,borderRadius,borderWidth,borderTopWidth,borderLeftWidth,borderRightWidth,borderBottomWidth,textIndent,perspective".split(",")))();function jt(t,e,n,r,s,i,o,a,c,l,u,h,d){return{type:0,element:t,triggerName:e,isRemovalTransition:s,fromState:n,fromStyles:i,toState:r,toStyles:o,timelines:a,queriedElements:c,preStyleProps:l,postStyleProps:u,totalTime:h,errors:d}}const Ft={};class It{constructor(t,e,n){this._triggerName=t,this.ast=e,this._stateStyles=n}match(t,e,n,r){return function(t,e,n,r,s){return t.some(t=>t(e,n,r,s))}(this.ast.matchers,t,e,n,r)}buildStyles(t,e,n){const r=this._stateStyles["*"],s=this._stateStyles[t],i=r?r.buildStyles(e,n):{};return s?s.buildStyles(e,n):i}build(t,e,n,r,s,i,o,a,c,l){const u=[],h=this.ast.options&&this.ast.options.params||Ft,d=this.buildStyles(n,o&&o.params||Ft,u),f=a&&a.params||Ft,p=this.buildStyles(r,f,u),m=new Set,g=new Map,b=new Map,_="void"===r,v={params:Object.assign(Object.assign({},h),f)},w=l?[]:wt(t,e,this.ast.animation,s,i,d,p,v,c,u);let C=0;if(w.forEach(t=>{C=Math.max(t.duration+t.delay,C)}),u.length)return jt(e,this._triggerName,n,r,_,d,p,[],[],g,b,C,u);w.forEach(t=>{const n=t.element,r=y(g,n,{});t.preStyleProps.forEach(t=>r[t]=!0);const s=y(b,n,{});t.postStyleProps.forEach(t=>s[t]=!0),n!==e&&m.add(n)});const D=Y(m.values());return jt(e,this._triggerName,n,r,_,d,p,w,D,g,b,C)}}class Rt{constructor(t,e){this.styles=t,this.defaultParams=e}buildStyles(t,e){const n={},r=U(this.defaultParams);return Object.keys(t).forEach(e=>{const n=t[e];null!=n&&(r[e]=n)}),this.styles.styles.forEach(t=>{if("string"!=typeof t){const s=t;Object.keys(s).forEach(t=>{let i=s[t];i.length>1&&(i=J(i,r,e)),n[t]=i})}}),n}}class Mt{constructor(t,e){this.name=t,this.ast=e,this.transitionFactories=[],this.states={},e.states.forEach(t=>{this.states[t.name]=new Rt(t.style,t.options&&t.options.params||{})}),Pt(this.states,"true","1"),Pt(this.states,"false","0"),e.transitions.forEach(e=>{this.transitionFactories.push(new It(t,e,this.states))}),this.fallbackTransition=new It(t,{type:1,animation:{type:2,steps:[],options:null},matchers:[(t,e)=>!0],options:null,queryCount:0,depCount:0},this.states)}get containsQueries(){return this.ast.queryCount>0}matchTransition(t,e,n,r){return this.transitionFactories.find(s=>s.match(t,e,n,r))||null}matchStyles(t,e,n){return this.fallbackTransition.buildStyles(t,e,n)}}function Pt(t,e,n){t.hasOwnProperty(e)?t.hasOwnProperty(n)||(t[n]=t[e]):t.hasOwnProperty(n)&&(t[e]=t[n])}const Nt=new yt;class Vt{constructor(t,e,n){this.bodyNode=t,this._driver=e,this._normalizer=n,this._animations={},this._playersById={},this.players=[]}register(t,e){const n=[],r=ht(this._driver,e,n);if(n.length)throw new Error("Unable to build the animation due to the following errors: "+n.join("\n"));this._animations[t]=r}_buildPlayer(t,e,n){const r=t.element,s=p(0,this._normalizer,0,t.keyframes,e,n);return this._driver.animate(r,s,t.duration,t.delay,t.easing,[],!0)}create(t,e,n={}){const r=[],s=this._animations[t];let i;const o=new Map;if(s?(i=wt(this._driver,e,s,I,R,{},{},n,Nt,r),i.forEach(t=>{const e=y(o,t.element,{});t.postStyleProps.forEach(t=>e[t]=null)})):(r.push("The requested animation doesn't exist or has already been destroyed"),i=[]),r.length)throw new Error("Unable to create the animation due to the following errors: "+r.join("\n"));o.forEach((t,e)=>{Object.keys(t).forEach(n=>{t[n]=this._driver.computeStyle(e,n,h.a)})});const a=f(i.map(t=>{const e=o.get(t.element);return this._buildPlayer(t,{},e)}));return this._playersById[t]=a,a.onDestroy(()=>this.destroy(t)),this.players.push(a),a}destroy(t){const e=this._getPlayer(t);e.destroy(),delete this._playersById[t];const n=this.players.indexOf(e);n>=0&&this.players.splice(n,1)}_getPlayer(t){const e=this._playersById[t];if(!e)throw new Error("Unable to find the timeline player referenced by "+t);return e}listen(t,e,n,r){const s=b(e,"","","");return m(this._getPlayer(t),n,s,r),()=>{}}command(t,e,n,r){if("register"==n)return void this.register(t,r[0]);if("create"==n)return void this.create(t,e,r[0]||{});const s=this._getPlayer(t);switch(n){case"play":s.play();break;case"pause":s.pause();break;case"reset":s.reset();break;case"restart":s.restart();break;case"finish":s.finish();break;case"init":s.init();break;case"setPosition":s.setPosition(parseFloat(r[0]));break;case"destroy":this.destroy(t)}}}const Bt="ng-animate-queued",Ht="ng-animate-disabled",Lt=".ng-animate-disabled",Ut=[],zt={namespaceId:"",setForRemoval:!1,setForMove:!1,hasAnimation:!1,removedBeforeQueried:!1},$t={namespaceId:"",setForMove:!1,setForRemoval:!1,hasAnimation:!1,removedBeforeQueried:!0};class qt{constructor(t,e=""){this.namespaceId=e;const n=t&&t.hasOwnProperty("value");if(this.value=null!=(r=n?t.value:t)?r:null,n){const e=U(t);delete e.value,this.options=e}else this.options={};var r;this.options.params||(this.options.params={})}get params(){return this.options.params}absorbOptions(t){const e=t.params;if(e){const t=this.options.params;Object.keys(e).forEach(n=>{null==t[n]&&(t[n]=e[n])})}}}const Wt="void",Gt=new qt(Wt);class Kt{constructor(t,e,n){this.id=t,this.hostElement=e,this._engine=n,this.players=[],this._triggers={},this._queue=[],this._elementListeners=new Map,this._hostClassName="ng-tns-"+t,ee(e,this._hostClassName)}listen(t,e,n,r){if(!this._triggers.hasOwnProperty(e))throw new Error(`Unable to listen on the animation trigger event "${n}" because the animation trigger "${e}" doesn't exist!`);if(null==n||0==n.length)throw new Error(`Unable to listen on the animation trigger "${e}" because the provided event is undefined!`);if("start"!=(s=n)&&"done"!=s)throw new Error(`The provided animation trigger event "${n}" for the animation trigger "${e}" is not supported!`);var s;const i=y(this._elementListeners,t,[]),o={name:e,phase:n,callback:r};i.push(o);const a=y(this._engine.statesByElement,t,{});return a.hasOwnProperty(e)||(ee(t,M),ee(t,"ng-trigger-"+e),a[e]=Gt),()=>{this._engine.afterFlush(()=>{const t=i.indexOf(o);t>=0&&i.splice(t,1),this._triggers[e]||delete a[e]})}}register(t,e){return!this._triggers[t]&&(this._triggers[t]=e,!0)}_getTrigger(t){const e=this._triggers[t];if(!e)throw new Error(`The provided animation trigger "${t}" has not been registered!`);return e}trigger(t,e,n,r=!0){const s=this._getTrigger(e),i=new Zt(this.id,e,t);let o=this._engine.statesByElement.get(t);o||(ee(t,M),ee(t,"ng-trigger-"+e),this._engine.statesByElement.set(t,o={}));let a=o[e];const c=new qt(n,this.id);if(!(n&&n.hasOwnProperty("value"))&&a&&c.absorbOptions(a.options),o[e]=c,a||(a=Gt),c.value!==Wt&&a.value===c.value){if(!function(t,e){const n=Object.keys(t),r=Object.keys(e);if(n.length!=r.length)return!1;for(let s=0;s<n.length;s++){const r=n[s];if(!e.hasOwnProperty(r)||t[r]!==e[r])return!1}return!0}(a.params,c.params)){const e=[],n=s.matchStyles(a.value,a.params,e),r=s.matchStyles(c.value,c.params,e);e.length?this._engine.reportError(e):this._engine.afterFlush(()=>{G(t,n),W(t,r)})}return}const l=y(this._engine.playersByElement,t,[]);l.forEach(t=>{t.namespaceId==this.id&&t.triggerName==e&&t.queued&&t.destroy()});let u=s.matchTransition(a.value,c.value,t,c.params),h=!1;if(!u){if(!r)return;u=s.fallbackTransition,h=!0}return this._engine.totalQueuedPlayers++,this._queue.push({element:t,triggerName:e,transition:u,fromState:a,toState:c,player:i,isFallbackTransition:h}),h||(ee(t,Bt),i.onStart(()=>{ne(t,Bt)})),i.onDone(()=>{let e=this.players.indexOf(i);e>=0&&this.players.splice(e,1);const n=this._engine.playersByElement.get(t);if(n){let t=n.indexOf(i);t>=0&&n.splice(t,1)}}),this.players.push(i),l.push(i),i}deregister(t){delete this._triggers[t],this._engine.statesByElement.forEach((e,n)=>{delete e[t]}),this._elementListeners.forEach((e,n)=>{this._elementListeners.set(n,e.filter(e=>e.name!=t))})}clearElementCache(t){this._engine.statesByElement.delete(t),this._elementListeners.delete(t);const e=this._engine.playersByElement.get(t);e&&(e.forEach(t=>t.destroy()),this._engine.playersByElement.delete(t))}_signalRemovalForInnerTriggers(t,e){const n=this._engine.driver.query(t,P,!0);n.forEach(t=>{if(t.__ng_removed)return;const n=this._engine.fetchNamespacesByElement(t);n.size?n.forEach(n=>n.triggerLeaveAnimation(t,e,!1,!0)):this.clearElementCache(t)}),this._engine.afterFlushAnimationsDone(()=>n.forEach(t=>this.clearElementCache(t)))}triggerLeaveAnimation(t,e,n,r){const s=this._engine.statesByElement.get(t);if(s){const i=[];if(Object.keys(s).forEach(e=>{if(this._triggers[e]){const n=this.trigger(t,e,Wt,r);n&&i.push(n)}}),i.length)return this._engine.markElementAsRemoved(this.id,t,!0,e),n&&f(i).onDone(()=>this._engine.processLeaveNode(t)),!0}return!1}prepareLeaveAnimationListeners(t){const e=this._elementListeners.get(t);if(e){const n=new Set;e.forEach(e=>{const r=e.name;if(n.has(r))return;n.add(r);const s=this._triggers[r].fallbackTransition,i=this._engine.statesByElement.get(t)[r]||Gt,o=new qt(Wt),a=new Zt(this.id,r,t);this._engine.totalQueuedPlayers++,this._queue.push({element:t,triggerName:r,transition:s,fromState:i,toState:o,player:a,isFallbackTransition:!0})})}}removeNode(t,e){const n=this._engine;if(t.childElementCount&&this._signalRemovalForInnerTriggers(t,e),this.triggerLeaveAnimation(t,e,!0))return;let r=!1;if(n.totalAnimations){const e=n.players.length?n.playersByQueriedElement.get(t):[];if(e&&e.length)r=!0;else{let e=t;for(;e=e.parentNode;)if(n.statesByElement.get(e)){r=!0;break}}}if(this.prepareLeaveAnimationListeners(t),r)n.markElementAsRemoved(this.id,t,!1,e);else{const r=t.__ng_removed;r&&r!==zt||(n.afterFlush(()=>this.clearElementCache(t)),n.destroyInnerAnimations(t),n._onRemovalComplete(t,e))}}insertNode(t,e){ee(t,this._hostClassName)}drainQueuedTransitions(t){const e=[];return this._queue.forEach(n=>{const r=n.player;if(r.destroyed)return;const s=n.element,i=this._elementListeners.get(s);i&&i.forEach(e=>{if(e.name==n.triggerName){const r=b(s,n.triggerName,n.fromState.value,n.toState.value);r._data=t,m(n.player,e.phase,r,e.callback)}}),r.markedForDestroy?this._engine.afterFlush(()=>{r.destroy()}):e.push(n)}),this._queue=[],e.sort((t,e)=>{const n=t.transition.ast.depCount,r=e.transition.ast.depCount;return 0==n||0==r?n-r:this._engine.driver.containsElement(t.element,e.element)?1:-1})}destroy(t){this.players.forEach(t=>t.destroy()),this._signalRemovalForInnerTriggers(this.hostElement,t)}elementContainsData(t){let e=!1;return this._elementListeners.has(t)&&(e=!0),e=!!this._queue.find(e=>e.element===t)||e,e}}class Qt{constructor(t,e,n){this.bodyNode=t,this.driver=e,this._normalizer=n,this.players=[],this.newHostElements=new Map,this.playersByElement=new Map,this.playersByQueriedElement=new Map,this.statesByElement=new Map,this.disabledNodes=new Set,this.totalAnimations=0,this.totalQueuedPlayers=0,this._namespaceLookup={},this._namespaceList=[],this._flushFns=[],this._whenQuietFns=[],this.namespacesByHostElement=new Map,this.collectedEnterElements=[],this.collectedLeaveElements=[],this.onRemovalComplete=(t,e)=>{}}_onRemovalComplete(t,e){this.onRemovalComplete(t,e)}get queuedPlayers(){const t=[];return this._namespaceList.forEach(e=>{e.players.forEach(e=>{e.queued&&t.push(e)})}),t}createNamespace(t,e){const n=new Kt(t,e,this);return e.parentNode?this._balanceNamespaceList(n,e):(this.newHostElements.set(e,n),this.collectEnterElement(e)),this._namespaceLookup[t]=n}_balanceNamespaceList(t,e){const n=this._namespaceList.length-1;if(n>=0){let r=!1;for(let s=n;s>=0;s--)if(this.driver.containsElement(this._namespaceList[s].hostElement,e)){this._namespaceList.splice(s+1,0,t),r=!0;break}r||this._namespaceList.splice(0,0,t)}else this._namespaceList.push(t);return this.namespacesByHostElement.set(e,t),t}register(t,e){let n=this._namespaceLookup[t];return n||(n=this.createNamespace(t,e)),n}registerTrigger(t,e,n){let r=this._namespaceLookup[t];r&&r.register(e,n)&&this.totalAnimations++}destroy(t,e){if(!t)return;const n=this._fetchNamespace(t);this.afterFlush(()=>{this.namespacesByHostElement.delete(n.hostElement),delete this._namespaceLookup[t];const e=this._namespaceList.indexOf(n);e>=0&&this._namespaceList.splice(e,1)}),this.afterFlushAnimationsDone(()=>n.destroy(e))}_fetchNamespace(t){return this._namespaceLookup[t]}fetchNamespacesByElement(t){const e=new Set,n=this.statesByElement.get(t);if(n){const t=Object.keys(n);for(let r=0;r<t.length;r++){const s=n[t[r]].namespaceId;if(s){const t=this._fetchNamespace(s);t&&e.add(t)}}}return e}trigger(t,e,n,r){if(Jt(e)){const s=this._fetchNamespace(t);if(s)return s.trigger(e,n,r),!0}return!1}insertNode(t,e,n,r){if(!Jt(e))return;const s=e.__ng_removed;if(s&&s.setForRemoval){s.setForRemoval=!1,s.setForMove=!0;const t=this.collectedLeaveElements.indexOf(e);t>=0&&this.collectedLeaveElements.splice(t,1)}if(t){const r=this._fetchNamespace(t);r&&r.insertNode(e,n)}r&&this.collectEnterElement(e)}collectEnterElement(t){this.collectedEnterElements.push(t)}markElementAsDisabled(t,e){e?this.disabledNodes.has(t)||(this.disabledNodes.add(t),ee(t,Ht)):this.disabledNodes.has(t)&&(this.disabledNodes.delete(t),ne(t,Ht))}removeNode(t,e,n,r){if(Jt(e)){const s=t?this._fetchNamespace(t):null;if(s?s.removeNode(e,r):this.markElementAsRemoved(t,e,!1,r),n){const n=this.namespacesByHostElement.get(e);n&&n.id!==t&&n.removeNode(e,r)}}else this._onRemovalComplete(e,r)}markElementAsRemoved(t,e,n,r){this.collectedLeaveElements.push(e),e.__ng_removed={namespaceId:t,setForRemoval:r,hasAnimation:n,removedBeforeQueried:!1}}listen(t,e,n,r,s){return Jt(e)?this._fetchNamespace(t).listen(e,n,r,s):()=>{}}_buildInstruction(t,e,n,r,s){return t.transition.build(this.driver,t.element,t.fromState.value,t.toState.value,n,r,t.fromState.options,t.toState.options,e,s)}destroyInnerAnimations(t){let e=this.driver.query(t,P,!0);e.forEach(t=>this.destroyActiveAnimationsForElement(t)),0!=this.playersByQueriedElement.size&&(e=this.driver.query(t,V,!0),e.forEach(t=>this.finishActiveQueriedAnimationOnElement(t)))}destroyActiveAnimationsForElement(t){const e=this.playersByElement.get(t);e&&e.forEach(t=>{t.queued?t.markedForDestroy=!0:t.destroy()})}finishActiveQueriedAnimationOnElement(t){const e=this.playersByQueriedElement.get(t);e&&e.forEach(t=>t.finish())}whenRenderingDone(){return new Promise(t=>{if(this.players.length)return f(this.players).onDone(()=>t());t()})}processLeaveNode(t){const e=t.__ng_removed;if(e&&e.setForRemoval){if(t.__ng_removed=zt,e.namespaceId){this.destroyInnerAnimations(t);const n=this._fetchNamespace(e.namespaceId);n&&n.clearElementCache(t)}this._onRemovalComplete(t,e.setForRemoval)}this.driver.matchesElement(t,Lt)&&this.markElementAsDisabled(t,!1),this.driver.query(t,Lt,!0).forEach(t=>{this.markElementAsDisabled(t,!1)})}flush(t=-1){let e=[];if(this.newHostElements.size&&(this.newHostElements.forEach((t,e)=>this._balanceNamespaceList(t,e)),this.newHostElements.clear()),this.totalAnimations&&this.collectedEnterElements.length)for(let n=0;n<this.collectedEnterElements.length;n++)ee(this.collectedEnterElements[n],"ng-star-inserted");if(this._namespaceList.length&&(this.totalQueuedPlayers||this.collectedLeaveElements.length)){const n=[];try{e=this._flushAnimations(n,t)}finally{for(let t=0;t<n.length;t++)n[t]()}}else for(let n=0;n<this.collectedLeaveElements.length;n++)this.processLeaveNode(this.collectedLeaveElements[n]);if(this.totalQueuedPlayers=0,this.collectedEnterElements.length=0,this.collectedLeaveElements.length=0,this._flushFns.forEach(t=>t()),this._flushFns=[],this._whenQuietFns.length){const t=this._whenQuietFns;this._whenQuietFns=[],e.length?f(e).onDone(()=>{t.forEach(t=>t())}):t.forEach(t=>t())}}reportError(t){throw new Error("Unable to process animations due to the following failed trigger transitions\n "+t.join("\n"))}_flushAnimations(t,e){const n=new yt,r=[],s=new Map,i=[],o=new Map,a=new Map,c=new Map,l=new Set;this.disabledNodes.forEach(t=>{l.add(t);const e=this.driver.query(t,".ng-animate-queued",!0);for(let n=0;n<e.length;n++)l.add(e[n])});const u=this.bodyNode,d=Array.from(this.statesByElement.keys()),p=te(d,this.collectedEnterElements),m=new Map;let g=0;p.forEach((t,e)=>{const n=I+g++;m.set(e,n),t.forEach(t=>ee(t,n))});const b=[],_=new Set,v=new Set;for(let h=0;h<this.collectedLeaveElements.length;h++){const t=this.collectedLeaveElements[h],e=t.__ng_removed;e&&e.setForRemoval&&(b.push(t),_.add(t),e.hasAnimation?this.driver.query(t,".ng-star-inserted",!0).forEach(t=>_.add(t)):v.add(t))}const w=new Map,C=te(d,Array.from(_));C.forEach((t,e)=>{const n=R+g++;w.set(e,n),t.forEach(t=>ee(t,n))}),t.push(()=>{p.forEach((t,e)=>{const n=m.get(e);t.forEach(t=>ne(t,n))}),C.forEach((t,e)=>{const n=w.get(e);t.forEach(t=>ne(t,n))}),b.forEach(t=>{this.processLeaveNode(t)})});const D=[],E=[];for(let h=this._namespaceList.length-1;h>=0;h--)this._namespaceList[h].drainQueuedTransitions(e).forEach(t=>{const e=t.player,s=t.element;if(D.push(e),this.collectedEnterElements.length){const t=s.__ng_removed;if(t&&t.setForMove)return void e.destroy()}const l=!u||!this.driver.containsElement(u,s),h=w.get(s),d=m.get(s),f=this._buildInstruction(t,n,d,h,l);if(f.errors&&f.errors.length)E.push(f);else{if(l)return e.onStart(()=>G(s,f.fromStyles)),e.onDestroy(()=>W(s,f.toStyles)),void r.push(e);if(t.isFallbackTransition)return e.onStart(()=>G(s,f.fromStyles)),e.onDestroy(()=>W(s,f.toStyles)),void r.push(e);f.timelines.forEach(t=>t.stretchStartingKeyframe=!0),n.append(s,f.timelines),i.push({instruction:f,player:e,element:s}),f.queriedElements.forEach(t=>y(o,t,[]).push(e)),f.preStyleProps.forEach((t,e)=>{const n=Object.keys(t);if(n.length){let t=a.get(e);t||a.set(e,t=new Set),n.forEach(e=>t.add(e))}}),f.postStyleProps.forEach((t,e)=>{const n=Object.keys(t);let r=c.get(e);r||c.set(e,r=new Set),n.forEach(t=>r.add(t))})}});if(E.length){const t=[];E.forEach(e=>{t.push(`@${e.triggerName} has failed due to:\n`),e.errors.forEach(e=>t.push(`- ${e}\n`))}),D.forEach(t=>t.destroy()),this.reportError(t)}const S=new Map,O=new Map;i.forEach(t=>{const e=t.element;n.has(e)&&(O.set(e,e),this._beforeAnimationBuild(t.player.namespaceId,t.instruction,S))}),r.forEach(t=>{const e=t.element;this._getPreviousPlayers(e,!1,t.namespaceId,t.triggerName,null).forEach(t=>{y(S,e,[]).push(t),t.destroy()})});const x=b.filter(t=>ie(t,a,c)),k=new Map;Xt(k,this.driver,v,c,h.a).forEach(t=>{ie(t,a,c)&&x.push(t)});const A=new Map;p.forEach((t,e)=>{Xt(A,this.driver,new Set(t),a,h.l)}),x.forEach(t=>{const e=k.get(t),n=A.get(t);k.set(t,Object.assign(Object.assign({},e),n))});const T=[],j=[],F={};i.forEach(t=>{const{element:e,player:i,instruction:o}=t;if(n.has(e)){if(l.has(e))return i.onDestroy(()=>W(e,o.toStyles)),i.disabled=!0,i.overrideTotalTime(o.totalTime),void r.push(i);let t=F;if(O.size>1){let n=e;const r=[];for(;n=n.parentNode;){const e=O.get(n);if(e){t=e;break}r.push(n)}r.forEach(e=>O.set(e,t))}const n=this._buildAnimation(i.namespaceId,o,S,s,A,k);if(i.setRealPlayer(n),t===F)T.push(i);else{const e=this.playersByElement.get(t);e&&e.length&&(i.parentPlayer=f(e)),r.push(i)}}else G(e,o.fromStyles),i.onDestroy(()=>W(e,o.toStyles)),j.push(i),l.has(e)&&r.push(i)}),j.forEach(t=>{const e=s.get(t.element);if(e&&e.length){const n=f(e);t.setRealPlayer(n)}}),r.forEach(t=>{t.parentPlayer?t.syncPlayerEvents(t.parentPlayer):t.destroy()});for(let h=0;h<b.length;h++){const t=b[h],e=t.__ng_removed;if(ne(t,R),e&&e.hasAnimation)continue;let n=[];if(o.size){let e=o.get(t);e&&e.length&&n.push(...e);let r=this.driver.query(t,V,!0);for(let t=0;t<r.length;t++){let e=o.get(r[t]);e&&e.length&&n.push(...e)}}const r=n.filter(t=>!t.destroyed);r.length?re(this,t,r):this.processLeaveNode(t)}return b.length=0,T.forEach(t=>{this.players.push(t),t.onDone(()=>{t.destroy();const e=this.players.indexOf(t);this.players.splice(e,1)}),t.play()}),T}elementContainsData(t,e){let n=!1;const r=e.__ng_removed;return r&&r.setForRemoval&&(n=!0),this.playersByElement.has(e)&&(n=!0),this.playersByQueriedElement.has(e)&&(n=!0),this.statesByElement.has(e)&&(n=!0),this._fetchNamespace(t).elementContainsData(e)||n}afterFlush(t){this._flushFns.push(t)}afterFlushAnimationsDone(t){this._whenQuietFns.push(t)}_getPreviousPlayers(t,e,n,r,s){let i=[];if(e){const e=this.playersByQueriedElement.get(t);e&&(i=e)}else{const e=this.playersByElement.get(t);if(e){const t=!s||s==Wt;e.forEach(e=>{e.queued||(t||e.triggerName==r)&&i.push(e)})}}return(n||r)&&(i=i.filter(t=>!(n&&n!=t.namespaceId||r&&r!=t.triggerName))),i}_beforeAnimationBuild(t,e,n){const r=e.element,s=e.isRemovalTransition?void 0:t,i=e.isRemovalTransition?void 0:e.triggerName;for(const o of e.timelines){const t=o.element,a=t!==r,c=y(n,t,[]);this._getPreviousPlayers(t,a,s,i,e.toState).forEach(t=>{const e=t.getRealPlayer();e.beforeDestroy&&e.beforeDestroy(),t.destroy(),c.push(t)})}G(r,e.fromStyles)}_buildAnimation(t,e,n,r,s,i){const o=e.triggerName,a=e.element,c=[],l=new Set,u=new Set,d=e.timelines.map(e=>{const d=e.element;l.add(d);const f=d.__ng_removed;if(f&&f.removedBeforeQueried)return new h.d(e.duration,e.delay);const m=d!==a,g=function(t){const e=[];return se(t,e),e}((n.get(d)||Ut).map(t=>t.getRealPlayer())).filter(t=>!!t.element&&t.element===d),b=s.get(d),y=i.get(d),_=p(0,this._normalizer,0,e.keyframes,b,y),v=this._buildPlayer(e,_,g);if(e.subTimeline&&r&&u.add(d),m){const e=new Zt(t,o,d);e.setRealPlayer(v),c.push(e)}return v});c.forEach(t=>{y(this.playersByQueriedElement,t.element,[]).push(t),t.onDone(()=>function(t,e,n){let r;if(t instanceof Map){if(r=t.get(e),r){if(r.length){const t=r.indexOf(n);r.splice(t,1)}0==r.length&&t.delete(e)}}else if(r=t[e],r){if(r.length){const t=r.indexOf(n);r.splice(t,1)}0==r.length&&delete t[e]}return r}(this.playersByQueriedElement,t.element,t))}),l.forEach(t=>ee(t,N));const m=f(d);return m.onDestroy(()=>{l.forEach(t=>ne(t,N)),W(a,e.toStyles)}),u.forEach(t=>{y(r,t,[]).push(m)}),m}_buildPlayer(t,e,n){return e.length>0?this.driver.animate(t.element,e,t.duration,t.delay,t.easing,n):new h.d(t.duration,t.delay)}}class Zt{constructor(t,e,n){this.namespaceId=t,this.triggerName=e,this.element=n,this._player=new h.d,this._containsRealPlayer=!1,this._queuedCallbacks={},this.destroyed=!1,this.markedForDestroy=!1,this.disabled=!1,this.queued=!0,this.totalTime=0}setRealPlayer(t){this._containsRealPlayer||(this._player=t,Object.keys(this._queuedCallbacks).forEach(e=>{this._queuedCallbacks[e].forEach(n=>m(t,e,void 0,n))}),this._queuedCallbacks={},this._containsRealPlayer=!0,this.overrideTotalTime(t.totalTime),this.queued=!1)}getRealPlayer(){return this._player}overrideTotalTime(t){this.totalTime=t}syncPlayerEvents(t){const e=this._player;e.triggerCallback&&t.onStart(()=>e.triggerCallback("start")),t.onDone(()=>this.finish()),t.onDestroy(()=>this.destroy())}_queueEvent(t,e){y(this._queuedCallbacks,t,[]).push(e)}onDone(t){this.queued&&this._queueEvent("done",t),this._player.onDone(t)}onStart(t){this.queued&&this._queueEvent("start",t),this._player.onStart(t)}onDestroy(t){this.queued&&this._queueEvent("destroy",t),this._player.onDestroy(t)}init(){this._player.init()}hasStarted(){return!this.queued&&this._player.hasStarted()}play(){!this.queued&&this._player.play()}pause(){!this.queued&&this._player.pause()}restart(){!this.queued&&this._player.restart()}finish(){this._player.finish()}destroy(){this.destroyed=!0,this._player.destroy()}reset(){!this.queued&&this._player.reset()}setPosition(t){this.queued||this._player.setPosition(t)}getPosition(){return this.queued?0:this._player.getPosition()}triggerCallback(t){const e=this._player;e.triggerCallback&&e.triggerCallback(t)}}function Jt(t){return t&&1===t.nodeType}function Yt(t,e){const n=t.style.display;return t.style.display=null!=e?e:"none",n}function Xt(t,e,n,r,s){const i=[];n.forEach(t=>i.push(Yt(t)));const o=[];r.forEach((n,r)=>{const i={};n.forEach(t=>{const n=i[t]=e.computeStyle(r,t,s);n&&0!=n.length||(r.__ng_removed=$t,o.push(r))}),t.set(r,i)});let a=0;return n.forEach(t=>Yt(t,i[a++])),o}function te(t,e){const n=new Map;if(t.forEach(t=>n.set(t,[])),0==e.length)return n;const r=new Set(e),s=new Map;function i(t){if(!t)return 1;let e=s.get(t);if(e)return e;const o=t.parentNode;return e=n.has(o)?o:r.has(o)?1:i(o),s.set(t,e),e}return e.forEach(t=>{const e=i(t);1!==e&&n.get(e).push(t)}),n}function ee(t,e){if(t.classList)t.classList.add(e);else{let n=t.$$classes;n||(n=t.$$classes={}),n[e]=!0}}function ne(t,e){if(t.classList)t.classList.remove(e);else{let n=t.$$classes;n&&delete n[e]}}function re(t,e,n){f(n).onDone(()=>t.processLeaveNode(e))}function se(t,e){for(let n=0;n<t.length;n++){const r=t[n];r instanceof h.k?se(r.players,e):e.push(r)}}function ie(t,e,n){const r=n.get(t);if(!r)return!1;let s=e.get(t);return s?r.forEach(t=>s.add(t)):e.set(t,r),n.delete(t),!0}class oe{constructor(t,e,n){this.bodyNode=t,this._driver=e,this._triggerCache={},this.onRemovalComplete=(t,e)=>{},this._transitionEngine=new Qt(t,e,n),this._timelineEngine=new Vt(t,e,n),this._transitionEngine.onRemovalComplete=(t,e)=>this.onRemovalComplete(t,e)}registerTrigger(t,e,n,r,s){const i=t+"-"+r;let o=this._triggerCache[i];if(!o){const t=[],e=ht(this._driver,s,t);if(t.length)throw new Error(`The animation trigger "${r}" has failed to build due to the following errors:\n - ${t.join("\n - ")}`);o=function(t,e){return new Mt(t,e)}(r,e),this._triggerCache[i]=o}this._transitionEngine.registerTrigger(e,r,o)}register(t,e){this._transitionEngine.register(t,e)}destroy(t,e){this._transitionEngine.destroy(t,e)}onInsert(t,e,n,r){this._transitionEngine.insertNode(t,e,n,r)}onRemove(t,e,n,r){this._transitionEngine.removeNode(t,e,r||!1,n)}disableAnimations(t,e){this._transitionEngine.markElementAsDisabled(t,e)}process(t,e,n,r){if("@"==n.charAt(0)){const[t,s]=_(n);this._timelineEngine.command(t,e,s,r)}else this._transitionEngine.trigger(t,e,n,r)}listen(t,e,n,r,s){if("@"==n.charAt(0)){const[t,r]=_(n);return this._timelineEngine.listen(t,e,r,s)}return this._transitionEngine.listen(t,e,n,r,s)}flush(t=-1){this._transitionEngine.flush(t)}get players(){return this._transitionEngine.players.concat(this._timelineEngine.players)}whenRenderingDone(){return this._transitionEngine.whenRenderingDone()}}function ae(t,e){let n=null,r=null;return Array.isArray(e)&&e.length?(n=le(e[0]),e.length>1&&(r=le(e[e.length-1]))):e&&(n=le(e)),n||r?new ce(t,n,r):null}let ce=(()=>{class t{constructor(e,n,r){this._element=e,this._startStyles=n,this._endStyles=r,this._state=0;let s=t.initialStylesByElement.get(e);s||t.initialStylesByElement.set(e,s={}),this._initialStyles=s}start(){this._state<1&&(this._startStyles&&W(this._element,this._startStyles,this._initialStyles),this._state=1)}finish(){this.start(),this._state<2&&(W(this._element,this._initialStyles),this._endStyles&&(W(this._element,this._endStyles),this._endStyles=null),this._state=1)}destroy(){this.finish(),this._state<3&&(t.initialStylesByElement.delete(this._element),this._startStyles&&(G(this._element,this._startStyles),this._endStyles=null),this._endStyles&&(G(this._element,this._endStyles),this._endStyles=null),W(this._element,this._initialStyles),this._state=3)}}return t.initialStylesByElement=new WeakMap,t})();function le(t){let e=null;const n=Object.keys(t);for(let r=0;r<n.length;r++){const s=n[r];ue(s)&&(e=e||{},e[s]=t[s])}return e}function ue(t){return"display"===t||"position"===t}const he="animation",de="animationend";class fe{constructor(t,e,n,r,s,i,o){this._element=t,this._name=e,this._duration=n,this._delay=r,this._easing=s,this._fillMode=i,this._onDoneFn=o,this._finished=!1,this._destroyed=!1,this._startTime=0,this._position=0,this._eventFn=t=>this._handleCallback(t)}apply(){!function(t,e){const n=_e(t,"").trim();n.length&&(function(t,e){let n=0;for(let r=0;r<t.length;r++)","===t.charAt(r)&&n++}(n),e=`${n}, ${e}`),ye(t,"",e)}(this._element,`${this._duration}ms ${this._easing} ${this._delay}ms 1 normal ${this._fillMode} ${this._name}`),be(this._element,this._eventFn,!1),this._startTime=Date.now()}pause(){pe(this._element,this._name,"paused")}resume(){pe(this._element,this._name,"running")}setPosition(t){const e=me(this._element,this._name);this._position=t*this._duration,ye(this._element,"Delay",`-${this._position}ms`,e)}getPosition(){return this._position}_handleCallback(t){const e=t._ngTestManualTimestamp||Date.now(),n=1e3*parseFloat(t.elapsedTime.toFixed(3));t.animationName==this._name&&Math.max(e-this._startTime,0)>=this._delay&&n>=this._duration&&this.finish()}finish(){this._finished||(this._finished=!0,this._onDoneFn(),be(this._element,this._eventFn,!0))}destroy(){this._destroyed||(this._destroyed=!0,this.finish(),function(t,e){const n=_e(t,"").split(","),r=ge(n,e);r>=0&&(n.splice(r,1),ye(t,"",n.join(",")))}(this._element,this._name))}}function pe(t,e,n){ye(t,"PlayState",n,me(t,e))}function me(t,e){const n=_e(t,"");return n.indexOf(",")>0?ge(n.split(","),e):ge([n],e)}function ge(t,e){for(let n=0;n<t.length;n++)if(t[n].indexOf(e)>=0)return n;return-1}function be(t,e,n){n?t.removeEventListener(de,e):t.addEventListener(de,e)}function ye(t,e,n,r){const s=he+e;if(null!=r){const e=t.style[s];if(e.length){const t=e.split(",");t[r]=n,n=t.join(",")}}t.style[s]=n}function _e(t,e){return t.style[he+e]}class ve{constructor(t,e,n,r,s,i,o,a){this.element=t,this.keyframes=e,this.animationName=n,this._duration=r,this._delay=s,this._finalStyles=o,this._specialStyles=a,this._onDoneFns=[],this._onStartFns=[],this._onDestroyFns=[],this._started=!1,this.currentSnapshot={},this._state=0,this.easing=i||"linear",this.totalTime=r+s,this._buildStyler()}onStart(t){this._onStartFns.push(t)}onDone(t){this._onDoneFns.push(t)}onDestroy(t){this._onDestroyFns.push(t)}destroy(){this.init(),this._state>=4||(this._state=4,this._styler.destroy(),this._flushStartFns(),this._flushDoneFns(),this._specialStyles&&this._specialStyles.destroy(),this._onDestroyFns.forEach(t=>t()),this._onDestroyFns=[])}_flushDoneFns(){this._onDoneFns.forEach(t=>t()),this._onDoneFns=[]}_flushStartFns(){this._onStartFns.forEach(t=>t()),this._onStartFns=[]}finish(){this.init(),this._state>=3||(this._state=3,this._styler.finish(),this._flushStartFns(),this._specialStyles&&this._specialStyles.finish(),this._flushDoneFns())}setPosition(t){this._styler.setPosition(t)}getPosition(){return this._styler.getPosition()}hasStarted(){return this._state>=2}init(){this._state>=1||(this._state=1,this._styler.apply(),this._delay&&this._styler.pause())}play(){this.init(),this.hasStarted()||(this._flushStartFns(),this._state=2,this._specialStyles&&this._specialStyles.start()),this._styler.resume()}pause(){this.init(),this._styler.pause()}restart(){this.reset(),this.play()}reset(){this._styler.destroy(),this._buildStyler(),this._styler.apply()}_buildStyler(){this._styler=new fe(this.element,this.animationName,this._duration,this._delay,this.easing,"forwards",()=>this.finish())}triggerCallback(t){const e="start"==t?this._onStartFns:this._onDoneFns;e.forEach(t=>t()),e.length=0}beforeDestroy(){this.init();const t={};if(this.hasStarted()){const e=this._state>=3;Object.keys(this._finalStyles).forEach(n=>{"offset"!=n&&(t[n]=e?this._finalStyles[n]:st(this.element,n))})}this.currentSnapshot=t}}class we extends h.d{constructor(t,e){super(),this.element=t,this._startingStyles={},this.__initialized=!1,this._styles=T(e)}init(){!this.__initialized&&this._startingStyles&&(this.__initialized=!0,Object.keys(this._styles).forEach(t=>{this._startingStyles[t]=this.element.style[t]}),super.init())}play(){this._startingStyles&&(this.init(),Object.keys(this._styles).forEach(t=>this.element.style.setProperty(t,this._styles[t])),super.play())}destroy(){this._startingStyles&&(Object.keys(this._startingStyles).forEach(t=>{const e=this._startingStyles[t];e?this.element.style.setProperty(t,e):this.element.style.removeProperty(t)}),this._startingStyles=null,super.destroy())}}class Ce{constructor(){this._count=0,this._head=document.querySelector("head"),this._warningIssued=!1}validateStyleProperty(t){return O(t)}matchesElement(t,e){return x(t,e)}containsElement(t,e){return k(t,e)}query(t,e,n){return A(t,e,n)}computeStyle(t,e,n){return window.getComputedStyle(t)[e]}buildKeyframeElement(t,e,n){n=n.map(t=>T(t));let r=`@keyframes ${e} {\n`,s="";n.forEach(t=>{s=" ";const e=parseFloat(t.offset);r+=`${s}${100*e}% {\n`,s+=" ",Object.keys(t).forEach(e=>{const n=t[e];switch(e){case"offset":return;case"easing":return void(n&&(r+=`${s}animation-timing-function: ${n};\n`));default:return void(r+=`${s}${e}: ${n};\n`)}}),r+=s+"}\n"}),r+="}\n";const i=document.createElement("style");return i.innerHTML=r,i}animate(t,e,n,r,s,i=[],o){o&&this._notifyFaultyScrubber();const a=i.filter(t=>t instanceof ve),c={};et(n,r)&&a.forEach(t=>{let e=t.currentSnapshot;Object.keys(e).forEach(t=>c[t]=e[t])});const l=function(t){let e={};return t&&(Array.isArray(t)?t:[t]).forEach(t=>{Object.keys(t).forEach(n=>{"offset"!=n&&"easing"!=n&&(e[n]=t[n])})}),e}(e=nt(t,e,c));if(0==n)return new we(t,l);const u="gen_css_kf_"+this._count++,h=this.buildKeyframeElement(t,u,e);document.querySelector("head").appendChild(h);const d=ae(t,e),f=new ve(t,e,u,n,r,s,l,d);return f.onDestroy(()=>{var t;(t=h).parentNode.removeChild(t)}),f}_notifyFaultyScrubber(){this._warningIssued||(console.warn("@angular/animations: please load the web-animations.js polyfill to allow programmatic access...\n","  visit http://bit.ly/IWukam to learn more about using the web-animation-js polyfill."),this._warningIssued=!0)}}class De{constructor(t,e,n,r){this.element=t,this.keyframes=e,this.options=n,this._specialStyles=r,this._onDoneFns=[],this._onStartFns=[],this._onDestroyFns=[],this._initialized=!1,this._finished=!1,this._started=!1,this._destroyed=!1,this.time=0,this.parentPlayer=null,this.currentSnapshot={},this._duration=n.duration,this._delay=n.delay||0,this.time=this._duration+this._delay}_onFinish(){this._finished||(this._finished=!0,this._onDoneFns.forEach(t=>t()),this._onDoneFns=[])}init(){this._buildPlayer(),this._preparePlayerBeforeStart()}_buildPlayer(){if(this._initialized)return;this._initialized=!0;const t=this.keyframes;this.domPlayer=this._triggerWebAnimation(this.element,t,this.options),this._finalKeyframe=t.length?t[t.length-1]:{},this.domPlayer.addEventListener("finish",()=>this._onFinish())}_preparePlayerBeforeStart(){this._delay?this._resetDomPlayerState():this.domPlayer.pause()}_triggerWebAnimation(t,e,n){return t.animate(e,n)}onStart(t){this._onStartFns.push(t)}onDone(t){this._onDoneFns.push(t)}onDestroy(t){this._onDestroyFns.push(t)}play(){this._buildPlayer(),this.hasStarted()||(this._onStartFns.forEach(t=>t()),this._onStartFns=[],this._started=!0,this._specialStyles&&this._specialStyles.start()),this.domPlayer.play()}pause(){this.init(),this.domPlayer.pause()}finish(){this.init(),this._specialStyles&&this._specialStyles.finish(),this._onFinish(),this.domPlayer.finish()}reset(){this._resetDomPlayerState(),this._destroyed=!1,this._finished=!1,this._started=!1}_resetDomPlayerState(){this.domPlayer&&this.domPlayer.cancel()}restart(){this.reset(),this.play()}hasStarted(){return this._started}destroy(){this._destroyed||(this._destroyed=!0,this._resetDomPlayerState(),this._onFinish(),this._specialStyles&&this._specialStyles.destroy(),this._onDestroyFns.forEach(t=>t()),this._onDestroyFns=[])}setPosition(t){this.domPlayer.currentTime=t*this.time}getPosition(){return this.domPlayer.currentTime/this.time}get totalTime(){return this._delay+this._duration}beforeDestroy(){const t={};this.hasStarted()&&Object.keys(this._finalKeyframe).forEach(e=>{"offset"!=e&&(t[e]=this._finished?this._finalKeyframe[e]:st(this.element,e))}),this.currentSnapshot=t}triggerCallback(t){const e="start"==t?this._onStartFns:this._onDoneFns;e.forEach(t=>t()),e.length=0}}class Ee{constructor(){this._isNativeImpl=/\{\s*\[native\s+code\]\s*\}/.test(Se().toString()),this._cssKeyframesDriver=new Ce}validateStyleProperty(t){return O(t)}matchesElement(t,e){return x(t,e)}containsElement(t,e){return k(t,e)}query(t,e,n){return A(t,e,n)}computeStyle(t,e,n){return window.getComputedStyle(t)[e]}overrideWebAnimationsSupport(t){this._isNativeImpl=t}animate(t,e,n,r,s,i=[],o){if(!o&&!this._isNativeImpl)return this._cssKeyframesDriver.animate(t,e,n,r,s,i);const a={duration:n,delay:r,fill:0==r?"both":"forwards"};s&&(a.easing=s);const c={},l=i.filter(t=>t instanceof De);et(n,r)&&l.forEach(t=>{let e=t.currentSnapshot;Object.keys(e).forEach(t=>c[t]=e[t])});const u=ae(t,e=nt(t,e=e.map(t=>z(t,!1)),c));return new De(t,e,a,u)}}function Se(){return"undefined"!=typeof window&&void 0!==window.document&&Element.prototype.animate||{}}let Oe=(()=>{class t extends h.b{constructor(t,e){super(),this._nextAnimationId=0,this._renderer=t.createRenderer(e.body,{id:"0",encapsulation:r.R.None,styles:[],data:{animation:[]}})}build(t){const e=this._nextAnimationId.toString();this._nextAnimationId++;const n=Array.isArray(t)?Object(h.f)(t):t;return Ae(this._renderer,null,e,"register",[n]),new xe(e,this._renderer)}}return t.\u0275fac=function(e){return new(e||t)(r.ac(r.G),r.ac(i.c))},t.\u0275prov=r.Ib({token:t,factory:t.\u0275fac}),t})();class xe extends h.c{constructor(t,e){super(),this._id=t,this._renderer=e}create(t,e){return new ke(this._id,t,e||{},this._renderer)}}class ke{constructor(t,e,n,r){this.id=t,this.element=e,this._renderer=r,this.parentPlayer=null,this._started=!1,this.totalTime=0,this._command("create",n)}_listen(t,e){return this._renderer.listen(this.element,`@@${this.id}:${t}`,e)}_command(t,...e){return Ae(this._renderer,this.element,this.id,t,e)}onDone(t){this._listen("done",t)}onStart(t){this._listen("start",t)}onDestroy(t){this._listen("destroy",t)}init(){this._command("init")}hasStarted(){return this._started}play(){this._command("play"),this._started=!0}pause(){this._command("pause")}restart(){this._command("restart")}finish(){this._command("finish")}destroy(){this._command("destroy")}reset(){this._command("reset")}setPosition(t){this._command("setPosition",t)}getPosition(){return 0}}function Ae(t,e,n,r,s){return t.setProperty(e,`@@${n}:${r}`,s)}const Te="@",je="@.disabled";let Fe=(()=>{class t{constructor(t,e,n){this.delegate=t,this.engine=e,this._zone=n,this._currentId=0,this._microtaskId=1,this._animationCallbacksBuffer=[],this._rendererCache=new Map,this._cdRecurDepth=0,this.promise=Promise.resolve(0),e.onRemovalComplete=(t,e)=>{e&&e.parentNode(t)&&e.removeChild(t.parentNode,t)}}createRenderer(t,e){const n=this.delegate.createRenderer(t,e);if(!(t&&e&&e.data&&e.data.animation)){let t=this._rendererCache.get(n);return t||(t=new Ie("",n,this.engine),this._rendererCache.set(n,t)),t}const r=e.id,s=e.id+"-"+this._currentId;this._currentId++,this.engine.register(s,t);const i=e=>{Array.isArray(e)?e.forEach(i):this.engine.registerTrigger(r,s,t,e.name,e)};return e.data.animation.forEach(i),new Re(this,s,n,this.engine)}begin(){this._cdRecurDepth++,this.delegate.begin&&this.delegate.begin()}_scheduleCountTask(){this.promise.then(()=>{this._microtaskId++})}scheduleListenerCallback(t,e,n){t>=0&&t<this._microtaskId?this._zone.run(()=>e(n)):(0==this._animationCallbacksBuffer.length&&Promise.resolve(null).then(()=>{this._zone.run(()=>{this._animationCallbacksBuffer.forEach(t=>{const[e,n]=t;e(n)}),this._animationCallbacksBuffer=[]})}),this._animationCallbacksBuffer.push([e,n]))}end(){this._cdRecurDepth--,0==this._cdRecurDepth&&this._zone.runOutsideAngular(()=>{this._scheduleCountTask(),this.engine.flush(this._microtaskId)}),this.delegate.end&&this.delegate.end()}whenRenderingDone(){return this.engine.whenRenderingDone()}}return t.\u0275fac=function(e){return new(e||t)(r.ac(r.G),r.ac(oe),r.ac(r.B))},t.\u0275prov=r.Ib({token:t,factory:t.\u0275fac}),t})();class Ie{constructor(t,e,n){this.namespaceId=t,this.delegate=e,this.engine=n,this.destroyNode=this.delegate.destroyNode?t=>e.destroyNode(t):null}get data(){return this.delegate.data}destroy(){this.engine.destroy(this.namespaceId,this.delegate),this.delegate.destroy()}createElement(t,e){return this.delegate.createElement(t,e)}createComment(t){return this.delegate.createComment(t)}createText(t){return this.delegate.createText(t)}appendChild(t,e){this.delegate.appendChild(t,e),this.engine.onInsert(this.namespaceId,e,t,!1)}insertBefore(t,e,n){this.delegate.insertBefore(t,e,n),this.engine.onInsert(this.namespaceId,e,t,!0)}removeChild(t,e,n){this.engine.onRemove(this.namespaceId,e,this.delegate,n)}selectRootElement(t,e){return this.delegate.selectRootElement(t,e)}parentNode(t){return this.delegate.parentNode(t)}nextSibling(t){return this.delegate.nextSibling(t)}setAttribute(t,e,n,r){this.delegate.setAttribute(t,e,n,r)}removeAttribute(t,e,n){this.delegate.removeAttribute(t,e,n)}addClass(t,e){this.delegate.addClass(t,e)}removeClass(t,e){this.delegate.removeClass(t,e)}setStyle(t,e,n,r){this.delegate.setStyle(t,e,n,r)}removeStyle(t,e,n){this.delegate.removeStyle(t,e,n)}setProperty(t,e,n){e.charAt(0)==Te&&e==je?this.disableAnimations(t,!!n):this.delegate.setProperty(t,e,n)}setValue(t,e){this.delegate.setValue(t,e)}listen(t,e,n){return this.delegate.listen(t,e,n)}disableAnimations(t,e){this.engine.disableAnimations(t,e)}}class Re extends Ie{constructor(t,e,n,r){super(e,n,r),this.factory=t,this.namespaceId=e}setProperty(t,e,n){e.charAt(0)==Te?"."==e.charAt(1)&&e==je?this.disableAnimations(t,n=void 0===n||!!n):this.engine.process(this.namespaceId,t,e.substr(1),n):this.delegate.setProperty(t,e,n)}listen(t,e,n){if(e.charAt(0)==Te){const r=function(t){switch(t){case"body":return document.body;case"document":return document;case"window":return window;default:return t}}(t);let s=e.substr(1),i="";return s.charAt(0)!=Te&&([s,i]=function(t){const e=t.indexOf(".");return[t.substring(0,e),t.substr(e+1)]}(s)),this.engine.listen(this.namespaceId,r,s,i,t=>{this.factory.scheduleListenerCallback(t._data||-1,n,t)})}return this.delegate.listen(t,e,n)}}let Me=(()=>{class t extends oe{constructor(t,e,n){super(t.body,e,n)}}return t.\u0275fac=function(e){return new(e||t)(r.ac(i.c),r.ac(F),r.ac(kt))},t.\u0275prov=r.Ib({token:t,factory:t.\u0275fac}),t})();const Pe=[{provide:F,useFactory:function(){return"function"==typeof Se()?new Ee:new Ce}},{provide:new r.s("AnimationModuleType"),useValue:"BrowserAnimations"},{provide:h.b,useClass:Oe},{provide:kt,useFactory:function(){return new At}},{provide:oe,useClass:Me},{provide:r.G,useFactory:function(t,e,n){return new Fe(t,e,n)},deps:[u.e,oe,r.B]}];let Ne=(()=>{class t{}return t.\u0275mod=r.Kb({type:t}),t.\u0275inj=r.Jb({factory:function(e){return new(e||t)},providers:Pe,imports:[u.a]}),t})();var Ve=n("1kSV"),Be=n("5eHb"),He=n("tyNb");const Le=[{path:"public",loadChildren:()=>Promise.all([n.e(0),n.e(49)]).then(n.bind(null,"UFnY")).then(t=>t.PublicModule)},{path:"",loadChildren:()=>Promise.all([n.e(0),n.e(29)]).then(n.bind(null,"HcS4")).then(t=>t.InternalModule)},{path:"**",redirectTo:""}];let Ue=(()=>{class t{}return t.\u0275mod=r.Kb({type:t}),t.\u0275inj=r.Jb({factory:function(e){return new(e||t)},imports:[[He.f.forRoot(Le)],He.f]}),t})(),ze=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275cmp=r.Gb({type:t,selectors:[["app-root"]],decls:1,vars:0,template:function(t,e){1&t&&r.Nb(0,"router-outlet")},directives:[He.g],styles:[""]}),t})();var $e=n("z6cu"),qe=n("vkgz"),We=n("9ryq");let Ge=(()=>{class t{constructor(t,e,n){this.router=t,this.toastr=e,this.umbracoService=n}intercept(t,e){if(t.url.includes(s.a.apiV2Url)){let e=localStorage.getItem("token");t=t.clone({setHeaders:{"api-key":s.a.apiV2Key,Authorization:"Bearer "+e}})}else t.url.includes(s.a.apiUrl)?t=t.clone({setHeaders:{"api-key":s.a.apiKey}}):t.url.includes(s.a.apiQuestionnarieUrl)&&(t=t.clone({setHeaders:{"api-key":s.a.apiQuestionnarieKey}}));return e.handle(t).pipe(Object(qe.a)(t=>{if(t instanceof o.g&&t&&t.body&&!t.body.successful)return Object($e.a)(t)},t=>{t instanceof o.d&&(401!==t.status&&403!==t.status||this.router.navigate(["auth","login"]),500===t.status&&this.toastr.error(this.umbracoService.getDictionaryValue("global.GenericError"),this.umbracoService.getDictionaryValue("global.Error")))}))}}return t.\u0275fac=function(e){return new(e||t)(r.ac(He.b),r.ac(Be.b),r.ac(We.a))},t.\u0275prov=r.Ib({token:t,factory:t.\u0275fac}),t})();Object(i.B)(c.a);let Ke=(()=>{class t{}return t.\u0275mod=r.Kb({type:t,bootstrap:[ze]}),t.\u0275inj=r.Jb({factory:function(e){return new(e||t)},providers:[{provide:o.a,useClass:Ge,multi:!0},{provide:r.w,useValue:"da-DA"},u.c,We.a],imports:[[u.a,Ue,o.c,Ve.q,Ne,l.r,Be.a.forRoot()]]}),t})();s.a.production&&Object(r.T)(),u.d().bootstrapModule(Ke).catch(t=>console.error(t))},zn8P:function(t,e){function n(t){return Promise.resolve().then(function(){var e=new Error("Cannot find module '"+t+"'");throw e.code="MODULE_NOT_FOUND",e})}n.keys=function(){return[]},n.resolve=n,t.exports=n,n.id="zn8P"}},[[0,1]]]);